(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[6784],{72909:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,F:()=>o});var n=i(96540),s=i(16730);function a(e){if(!e.prototype||!e.prototype.render)return e.__scuWrap||(e.__scuWrap=r(e,u));e.prototype.shouldComponentUpdate=d}function o(e){if(!e.prototype||!e.prototype.render)return e.__scuWrap||(e.__scuWrap=r(e,s.E7));e.prototype.shouldComponentUpdate=c}function r(e,t){class i extends l{}return i.prototype.renderChild=e,i.prototype.diffFunc=t,i}class l extends n.Component{shouldComponentUpdate(e){return this.diffFunc(e,this.props)}render(){return this.renderChild(this.props,this.context)}}function d(e,t){return u(e,this.props)||u(t,this.state)}function c(e,t){return u(e,this.props)||(0,s.E7)(t,this.state)}function u(e,t){for(const i in e)if(e[i]!==t[i])return!0;for(const i in t)if(!(i in e))return!0;return!1}},17246:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteExternalAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ParentType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteExternalAttachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"attachmentId"},value:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}}},{kind:"Argument",name:{kind:"Name",value:"parentType"},value:{kind:"Variable",name:{kind:"Name",value:"parentType"}}},{kind:"Argument",name:{kind:"Name",value:"parentId"},value:{kind:"Variable",name:{kind:"Name",value:"parentId"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveFileAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ParentType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeFileAttachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"attachmentId"},value:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}}},{kind:"Argument",name:{kind:"Name",value:"parentType"},value:{kind:"Variable",name:{kind:"Name",value:"parentType"}}},{kind:"Argument",name:{kind:"Name",value:"parentId"},value:{kind:"Variable",name:{kind:"Name",value:"parentId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileAttachmentDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bytes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimeType"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageFileAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageWidth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageHeight"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ExternalAttachmentDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ExternalAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mediaType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}}],loc:{start:0,end:1125}};t.loc.source={body:"\n# Deletes a single external attachment\nmutation DeleteExternalAttachment($modelId: ID!, $attachmentId: ID!, $parentType: ParentType!, $parentId: ID!) {\n deleteExternalAttachment(modelId: $modelId, , attachmentId: $attachmentId, parentType: $parentType, parentId: $parentId)\n}\n\n# Removes a file attachment association from the annotation it is attached to.\n# Can delete the file attachment completely if the 'cascadeDelete' flag is set to true (not currently used)\nmutation RemoveFileAttachment($modelId: ID!, $attachmentId: ID!, $parentType: ParentType!, $parentId: ID!) {\n removeFileAttachment(modelId: $modelId, , attachmentId: $attachmentId, parentType: $parentType, parentId: $parentId)\n}\n\nfragment FileAttachmentDetails on FileAttachment {\n id\n created\n filename\n url\n validUntil\n bytes\n mimeType\n ...on ImageFileAttachment {\n imageWidth\n imageHeight\n }\n}\n\n# common External Attachment properties\nfragment ExternalAttachmentDetails on ExternalAttachment {\n id\n created\n modified\n thumbnailUrl\n url\n mediaType\n width\n height\n parentDetails { type, parent { id } }\n category\n validUntil\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.DeleteExternalAttachment=a(t,"DeleteExternalAttachment"),e.exports.RemoveFileAttachment=a(t,"RemoveFileAttachment"),e.exports.FileAttachmentDetails=a(t,"FileAttachmentDetails"),e.exports.ExternalAttachmentDetails=a(t,"ExternalAttachmentDetails")},98585:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFloors"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelFloors"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelFloors"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"floors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FloorDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FloorDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelFloor"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sequence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dimensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"areaFloor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchFloor"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"floorId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FloorPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchFloor"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"floorId"},value:{kind:"Variable",name:{kind:"Name",value:"floorId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:442}};t.loc.source={body:"query GetFloors($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelFloors\n }\n}\n\nfragment ModelFloors on Model {\n floors { ...FloorDetails }\n}\n\nfragment FloorDetails on ModelFloor {\n id\n meshId\n classification\n label\n sequence\n dimensions {\n areaFloor\n units\n }\n}\n\nmutation PatchFloor($modelId: ID!, $floorId: ID!, $data: FloorPatch!) {\n patchFloor(modelId: $modelId, , floorId: $floorId, patch: $data) {\n id\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetFloors=a(t,"GetFloors"),e.exports.ModelFloors=a(t,"ModelFloors"),e.exports.FloorDetails=a(t,"FloorDetails"),e.exports.PatchFloor=a(t,"PatchFloor")},96069:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLabels"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LabelDetails"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LabelPatch"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LabelDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Label"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}],loc:{start:0,end:1042}};t.loc.source={body:"# Read all labels for the given model\nquery GetLabels($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n labels (includeDisabled: $includeDisabled) {\n ...LabelDetails\n }\n }\n}\n\n# Create a new label\nmutation AddLabel ($modelId: ID!, $labelId: ID, $data: LabelDetails!, $includeLayers: Boolean!) {\n addLabel(modelId: $modelId, labelId: $labelId, label: $data) {\n ...LabelDetails\n }\n}\n\n# Update a single label\nmutation PatchLabel ($modelId: ID!, $labelId: ID!, $data: LabelPatch!, $includeLayers: Boolean!) {\n patchLabel(modelId: $modelId, , labelId: $labelId, patch: $data) {\n ...LabelDetails\n }\n}\n\n# Deletes a single label\nmutation DeleteLabel ($modelId: ID!, ,$labelId: ID!) {\n deleteLabel(modelId: $modelId, labelId: $labelId)\n}\n\n# Default Label properties used by Showcase and Workshop\nfragment LabelDetails on Label {\n id\n position { x y z }\n floor { id meshId }\n room { id meshId }\n layer @include(if: $includeLayers) { id }\n label\n enabled\n created\n modified\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetLabels=a(t,"GetLabels"),e.exports.AddLabel=a(t,"AddLabel"),e.exports.PatchLabel=a(t,"PatchLabel"),e.exports.DeleteLabel=a(t,"DeleteLabel"),e.exports.LabelDetails=a(t,"LabelDetails")},92711:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOrderedLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOrderedListByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddOrderedList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntryInput"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addOrderedList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}},{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"entries"},value:{kind:"Variable",name:{kind:"Name",value:"entries"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddOrderedListWithLayer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntryInput"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addOrderedList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}},{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"layerId"},value:{kind:"Variable",name:{kind:"Name",value:"layerId"}}},{kind:"Argument",name:{kind:"Name",value:"entries"},value:{kind:"Variable",name:{kind:"Name",value:"entries"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OrderedListDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OrderedList"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EntryDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EntryDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}],loc:{start:0,end:1324}};t.loc.source={body:"\n# get the ordered lists for the specified model\nquery GetOrderedLists($modelId: ID!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n orderedLists(ids: []) {\n ...OrderedListDetails\n }\n }\n}\n\n# get an ordered list by name for the specified view\nquery GetOrderedListByName($modelId: ID!, $label: String!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n orderedLists(label: $label) {\n ...OrderedListDetails\n }\n }\n}\n\n# add a new ordered list\nmutation AddOrderedList($modelId: ID!, $label: String!, $description: String!, $entries: [EntryInput!], $includeLayers: Boolean!) {\n addOrderedList(modelId: $modelId, , label: $label, description: $description, entries: $entries) {\n ...OrderedListDetails\n }\n}\n\nmutation AddOrderedListWithLayer($modelId: ID!, $label: String!, $description: String!, $layerId: ID!, $entries: [EntryInput!], $includeLayers: Boolean!) {\n addOrderedList(modelId: $modelId, , label: $label, description: $description, layerId: $layerId, entries: $entries) {\n ...OrderedListDetails\n }\n}\n\n# Default OrderedList properties used by Showcase and Workshop\nfragment OrderedListDetails on OrderedList {\n id\n label\n layer @include(if: $includeLayers) { id }\n entries {\n ...EntryDetails\n }\n}\n\n# Default Entry properties\nfragment EntryDetails on Entry {\n id\n type\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetOrderedLists=a(t,"GetOrderedLists"),e.exports.GetOrderedListByName=a(t,"GetOrderedListByName"),e.exports.AddOrderedList=a(t,"AddOrderedList"),e.exports.AddOrderedListWithLayer=a(t,"AddOrderedListWithLayer"),e.exports.OrderedListDetails=a(t,"OrderedListDetails"),e.exports.EntryDetails=a(t,"EntryDetails")},27140:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMattertags"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MattertagDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RefreshTagFileAttachments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddMattertag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MattertagDetails"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addMattertag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertagId"},value:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertag"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMattertag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMattertag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertagId"},value:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MattertagDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Mattertag"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"anchorPosition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stemEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stemNormal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stemLength"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mediaType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ExternalAttachmentDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"objectAnnotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultKeywords"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"keywords"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]}]}}],loc:{start:0,end:1529}};n.loc.source={body:'#import "./attachments.gql"\n\n# read all mattertags for the specified model\nquery GetMattertags($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n id,\n mattertags(includeDisabled: $includeDisabled) {\n ...MattertagDetails\n }\n }\n}\n\n# refresh file attachment expiring resources for all mattertags\nquery RefreshTagFileAttachments($modelId: ID!, $includeDisabled: Boolean!) {\n model(id: $modelId) {\n id,\n mattertags(includeDisabled: $includeDisabled) {\n id\n fileAttachments { ...FileAttachmentDetails }\n }\n }\n}\n\n# add a new mattertag\nmutation AddMattertag($modelId:ID!, $mattertagId: ID, $data: MattertagDetails!) {\n addMattertag(modelId: $modelId, mattertagId: $mattertagId, mattertag: $data) {\n id\n created\n modified\n }\n}\n\n# delete an existing tag by id\nmutation DeleteMattertag($modelId: ID!, $mattertagId: ID!) {\n deleteMattertag(modelId: $modelId, mattertagId: $mattertagId)\n}\n\n# common Mattertag properties used by Showcase and Workshop\nfragment MattertagDetails on Mattertag {\n id\n label\n description\n color\n enabled\n floor { id, meshId }\n room { id, meshId }\n layer @include(if: $includeLayers) { id } \n anchorPosition { x y z }\n stemEnabled\n stemNormal { x, y, z }\n stemLength\n media\n mediaType\n created\n modified\n externalAttachments { ...ExternalAttachmentDetails }\n fileAttachments { ...FileAttachmentDetails }\n objectAnnotation {\n id\n classification {\n defaultKeywords\n }\n }\n keywords\n icon\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}n.definitions=n.definitions.concat(i(17246).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)})));var o={};function r(e,t){for(var i=0;i0;){var l=a;a=new Set,l.forEach((function(e){s.has(e)||(s.add(e),(o[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=r(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),o[e.name.value]=t}})),e.exports=n,e.exports.GetMattertags=l(n,"GetMattertags"),e.exports.RefreshTagFileAttachments=l(n,"RefreshTagFileAttachments"),e.exports.AddMattertag=l(n,"AddMattertag"),e.exports.DeleteMattertag=l(n,"DeleteMattertag"),e.exports.MattertagDetails=l(n,"MattertagDetails")},64639:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMeasurements"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeasurementDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPathDetails"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pathId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPathPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"pathId"},value:{kind:"Variable",name:{kind:"Name",value:"pathId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pathId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"pathId"},value:{kind:"Variable",name:{kind:"Name",value:"pathId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeasurementDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPath"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lineType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"points"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}],loc:{start:0,end:903}};t.loc.source={body:"\nquery GetMeasurements($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n id,\n measurementPaths(includeDisabled: $includeDisabled) {\n ...MeasurementDetails\n }\n }\n}\n\nmutation AddMeasurement($modelId: ID!, $data: MeasurementPathDetails!) {\n addMeasurementPath(modelId: $modelId, path: $data) {\n id\n }\n}\n\nmutation PatchMeasurement($modelId: ID!, $pathId: ID!, $data: MeasurementPathPatch!) {\n patchMeasurementPath(modelId: $modelId, , pathId: $pathId, patch: $data) {\n id\n }\n}\n\nmutation DeleteMeasurement($modelId: ID!, $pathId: ID!) {\n deleteMeasurementPath(modelId: $modelId, , pathId: $pathId)\n}\n\nfragment MeasurementDetails on MeasurementPath {\n id\n lineType\n label\n enabled\n points {\n position { x y z }\n floor { id meshId }\n room { id meshId }\n }\n layer @include(if: $includeLayers) { id }\n created\n modified\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetMeasurements=a(t,"GetMeasurements"),e.exports.AddMeasurement=a(t,"AddMeasurement"),e.exports.PatchMeasurement=a(t,"PatchMeasurement"),e.exports.DeleteMeasurement=a(t,"DeleteMeasurement"),e.exports.MeasurementDetails=a(t,"MeasurementDetails")},14991:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discoverable"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelStatus"},directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PhotoDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlBrandingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"socialSharingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vrEnabled"},arguments:[],directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelAvailableAssets"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"OverlayLayerExists"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"OverlayViewIds"},directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelAvailableAssets"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meshes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"formats"},value:{kind:"StringValue",value:"dam",block:!1}},{kind:"Argument",name:{kind:"Name",value:"resolutions"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"50k",block:!1},{kind:"StringValue",value:"500k",block:!1}]}},{kind:"Argument",name:{kind:"Name",value:"compressions"},value:{kind:"EnumValue",value:"none"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeshDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"textures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TextureDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tilesets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TilesetDetails"},directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"lod"},name:{kind:"Name",value:"policy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"spaces.chunked.mesh.lod",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeshDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Mesh"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TextureDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Texture"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quality"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TilesetDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tileset"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetVersion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetDepth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetPreset"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelPublicationDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"published"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPublished"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"presentedBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contact"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1293}};t.loc.source={body:'# Publicly available model details. Must not contain any private fields.\nfragment ModelDetails on Model {\n id\n name\n visibility\n discoverable\n ...ModelStatus\n image { ...PhotoDetails }\n publication { ...PublicationDetails }\n options {\n urlBrandingEnabled\n socialSharingEnabled\n vrEnabled\n }\n ...ModelAvailableAssets\n ...OverlayLayerExists\n ...OverlayViewIds\n}\n\nfragment ModelAvailableAssets on Model {\n assets {\n meshes(formats: "dam", resolutions: ["50k", "500k"], compressions: none) { ...MeshDetails }\n textures { ...TextureDetails }\n tilesets { ...TilesetDetails }\n }\n lod: policy(name: "spaces.chunked.mesh.lod") {\n ... on PolicyOptions {\n options\n }\n }\n}\n\nfragment ModelStatus on Model {\n state\n}\n\nfragment MeshDetails on Mesh {\n id\n status\n filename\n format\n resolution\n url\n validUntil\n}\n\nfragment TextureDetails on Texture {\n id\n status\n format\n resolution\n quality\n urlTemplate\n validUntil\n}\n\nfragment TilesetDetails on Tileset {\n status\n tilesetVersion\n url\n urlTemplate\n validUntil\n tilesetDepth\n tilesetPreset\n}\n\nfragment PublicationDetails on ModelPublicationDetails {\n address\n published\n lastPublished\n presentedBy\n summary\n description\n externalUrl\n contact {\n name\n email\n phoneNumber\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.ModelDetails=a(t,"ModelDetails"),e.exports.ModelAvailableAssets=a(t,"ModelAvailableAssets"),e.exports.ModelStatus=a(t,"ModelStatus"),e.exports.MeshDetails=a(t,"MeshDetails"),e.exports.TextureDetails=a(t,"TextureDetails"),e.exports.TilesetDetails=a(t,"TilesetDetails"),e.exports.PublicationDetails=a(t,"PublicationDetails")},82038:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelPlayerOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationOptions"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ModelOptions"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defurnishViewEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dollhouseEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dollhouseLabelsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorSelectEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorplanEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highlightReelEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labelsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurements"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"roomBoundsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"socialSharingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"spaceSearchEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourButtonsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourDollhousePanSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourFastTransitionsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanAngle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanDirection"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourTransitionSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourTransitionTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourZoomDuration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unitType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlBrandingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vrEnabled"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelPublicationOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contactEmail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contactName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contactPhone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modelName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modelSummary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"presentedBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalUrl"},arguments:[],directives:[]}]}}],loc:{start:0,end:854}};t.loc.source={body:"# Model fields to populate PlayerOptions\nfragment ModelPlayerOptions on Model {\n publication {\n options { ...PublicationOptions }\n }\n options { ...ModelOptions }\n}\n\nfragment ModelOptions on ModelOptions {\n backgroundColor\n defurnishViewEnabled\n dollhouseEnabled\n dollhouseLabelsEnabled\n floorSelectEnabled\n floorplanEnabled\n highlightReelEnabled\n labelsEnabled\n measurements\n roomBoundsEnabled\n socialSharingEnabled\n spaceSearchEnabled\n tourButtonsEnabled\n tourDollhousePanSpeed\n tourFastTransitionsEnabled\n tourPanAngle\n tourPanDirection\n tourPanSpeed\n tourTransitionSpeed\n tourTransitionTime\n tourZoomDuration\n unitType\n urlBrandingEnabled\n vrEnabled\n}\n\nfragment PublicationOptions on ModelPublicationOptions {\n contactEmail\n contactName\n contactPhone\n modelName\n modelSummary\n presentedBy\n address\n externalUrl\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.ModelPlayerOptions=a(t,"ModelPlayerOptions"),e.exports.ModelOptions=a(t,"ModelOptions"),e.exports.PublicationOptions=a(t,"PublicationOptions")},25e3:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlayLayerExists"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"overlayLayers"},name:{kind:"Name",value:"layers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"matterport.overlay.assets",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlayViewIds"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"baseView"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.model.layered",block:!1}}],directives:[{kind:"Directive",name:{kind:"Name",value:"onError"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"StringValue",value:"not.found",block:!1}},{kind:"Argument",name:{kind:"Name",value:"null"},value:{kind:"BooleanValue",value:!0}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"defurnishViews"},name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"StringValue",value:"matterport.model.defurnished",block:!1}}],directives:[{kind:"Directive",name:{kind:"Name",value:"onError"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"StringValue",value:"not.found",block:!1}},{kind:"Argument",name:{kind:"Name",value:"null"},value:{kind:"BooleanValue",value:!0}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"legacyBaseView"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.model.default",block:!1}}],directives:[{kind:"Directive",name:{kind:"Name",value:"onError"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"StringValue",value:"not.found",block:!1}},{kind:"Argument",name:{kind:"Name",value:"null"},value:{kind:"BooleanValue",value:!0}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:813}};t.loc.source={body:'\n# presence of overlay layers hints the current loaded view has alternate sweeps (Defunrnish)\nfragment OverlayLayerExists on Model {\n overlayLayers: layers(types: ["matterport.overlay.assets"]) {\n id\n }\n}\n\n# we need both base and defurnish view id\'s in order to manually sync position/placement writes across\nfragment OverlayViewIds on Model {\n # layered base view\n baseView: view(type: "matterport.model.layered") @onError(id: "not.found", null: true) {\n model {\n id\n }\n }\n # defurnish view, if exists\n defurnishViews: views(types: "matterport.model.defurnished") @onError(id: "not.found", null: true) {\n model {\n id\n }\n }\n # old non-layered model\n legacyBaseView: view(type: "matterport.model.default") @onError(id: "not.found", null: true) {\n model {\n id\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.OverlayLayerExists=a(t,"OverlayLayerExists"),e.exports.OverlayViewIds=a(t,"OverlayViewIds")},10600:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PhotoDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Photo"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"origin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"thumbnailUrl"},name:{kind:"Name",value:"resizeUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"resolution"},value:{kind:"EnumValue",value:"thumbnail"}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"presentationUrl"},name:{kind:"Name",value:"resizeUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"resolution"},value:{kind:"EnumValue",value:"presentation"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"snapshotLocation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewMode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"w"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"zoom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorVisibility"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sequence"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"anchor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pano"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placement"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:535}};t.loc.source={body:"\nfragment PhotoDetails on Photo {\n id\n label\n classification\n category\n height\n width\n created\n modified\n status\n filename\n format\n url\n resolutions\n type\n origin\n validUntil\n thumbnailUrl: resizeUrl(resolution: thumbnail)\n presentationUrl: resizeUrl(resolution: presentation)\n snapshotLocation {\n viewMode\n position { x y z }\n rotation { x y z w }\n zoom\n floorVisibility {\n id\n meshId\n sequence\n }\n anchor {\n id\n pano {\n id\n placement\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}(t,"PhotoDetails")},9192:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlugins"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sdkPlugins"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PluginDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePlugin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSdkPlugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlugin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"patch"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SdkPluginPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSdkPlugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"patch"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PluginDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PluginDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SdkPlugin"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentVersion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"versions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredPolicies"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}}]}}],loc:{start:0,end:764}};n.loc.source={body:'#import "./attachments.gql"\n\n# read all plugins for the specified model\nquery GetPlugins($modelId: ID!) {\n model(id: $modelId) {\n id\n sdkPlugins {\n ...PluginDetails\n }\n }\n}\n\n# delete an existing plugin by id\nmutation DeletePlugin($modelId: ID!, $name: String!) {\n deleteSdkPlugin(modelId: $modelId, name: $name)\n}\n\nmutation UpdatePlugin($modelId: ID!, $name: String!, $patch: SdkPluginPatch!) {\n updateSdkPlugin(\n modelId: $modelId\n name: $name\n patch: $patch\n ) {\n ...PluginDetails\n }\n}\n\n# common Plugin properties used by Showcase and Workshop\nfragment PluginDetails on SdkPlugin {\n id\n name\n currentVersion\n description\n versions {\n version\n requiredPolicies\n }\n fileAttachments {\n ...FileAttachmentDetails\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}n.definitions=n.definitions.concat(i(17246).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)})));var o={};function r(e,t){for(var i=0;i0;){var l=a;a=new Set,l.forEach((function(e){s.has(e)||(s.add(e),(o[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=r(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),o[e.name.value]=t}})),e.exports=n,e.exports.GetPlugins=l(n,"GetPlugins"),e.exports.DeletePlugin=l(n,"DeletePlugin"),e.exports.UpdatePlugin=l(n,"UpdatePlugin"),e.exports.PluginDetails=l(n,"PluginDetails")},3718:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetModelPolicies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPolicies"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelPolicies"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"policies"},arguments:[{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"spaces.tours_v2",block:!1},{kind:"StringValue",value:"spaces.notes",block:!1},{kind:"StringValue",value:"spaces.visitor.subscriber.prompt",block:!1},{kind:"StringValue",value:"spaces.webgl.layers.mode",block:!1},{kind:"StringValue",value:"spaces.elements",block:!1},{kind:"StringValue",value:"spaces.chunked.mesh.lod",block:!1},{kind:"StringValue",value:"spaces.aws.twinmaker.sdk.access",block:!1},{kind:"StringValue",value:"spaces.sdk.qa",block:!1},{kind:"StringValue",value:"spaces.plugins",block:!1},{kind:"StringValue",value:"spaces.plugins.config",block:!1},{kind:"StringValue",value:"spaces.plugins.debug",block:!1},{kind:"StringValue",value:"spaces.plugins.groups",block:!1},{kind:"StringValue",value:"perm.spaces.workshop.edit",block:!1},{kind:"StringValue",value:"spaces.bundles.mp.defurnish",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"type"},name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyFlag"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyValue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyFeature"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1112}};t.loc.source={body:'\n# get model policies available to all users\nquery GetModelPolicies($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelPolicies\n }\n}\n\nfragment ModelPolicies on Model {\n # Subset of policies used by our apps\n # NOTE: in Showcase these will be prefetched as anonymous, so user-specific\n # policy values cannot be used there unless you explicitly requery them.\n policies(names: [\n # Model-level:\n "spaces.tours_v2",\n "spaces.notes",\n "spaces.visitor.subscriber.prompt",\n "spaces.webgl.layers.mode",\n "spaces.elements",\n "spaces.chunked.mesh.lod",\n\n # SDK/Plugins:\n "spaces.aws.twinmaker.sdk.access",\n "spaces.sdk.qa",\n "spaces.plugins",\n "spaces.plugins.config",\n "spaces.plugins.debug",\n "spaces.plugins.groups",\n\n # Known to vary by user - only use in Workshop!\n "perm.spaces.workshop.edit",\n "spaces.bundles.mp.defurnish"\n ]) {\n name\n type: __typename\n ...on PolicyFlag {\n enabled\n }\n ...on PolicyOptions {\n options\n }\n ...on PolicyValue {\n value\n }\n ...on PolicyFeature {\n availability\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetModelPolicies=a(t,"GetModelPolicies"),e.exports.ModelPolicies=a(t,"ModelPolicies")},3073:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetModelPrefetch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ModelDetails"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelShowcaseSweeps"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelFloors"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelRooms"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicModelViews"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPlayerOptions"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPolicies"},directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"RoomClassifications"},directives:[]}]}}],loc:{start:0,end:1397}};n.loc.source={body:'# Make sure the following imports do not import files themselves, it seems\n# to mess up the platform side parsing. That is why you see these\n# -fragment.gql files below.\n\n#import "./model-fragments.gql"\n#import "./model-options-fragments.gql"\n#import "./photo-fragments.gql"\n#import "./floors.gql"\n#import "./rooms.gql"\n#import "./roombounds.gql"\n#import "./overlay-fragments.gql"\n#import "./sweeps-fragments.gql"\n#import "./view-fragments.gql"\n#import "./policy.gql"\n\n# Preloaded model data to be embedded into Showcase HTML page,\n# only load data that is required for Showcase to start,\n# not varied by user, and safe for long-term-cache type behavior.\n# Includes the default view.\n# (ie. NO Mattertags)\nquery GetModelPrefetch($modelId: ID!) {\n model(id: $modelId) {\n # MdsModelStore\n ...ModelDetails\n\n # MdsSweepStore\n ...ModelShowcaseSweeps\n\n # MdsFloorStore\n ...ModelFloors\n\n # MdsRoomStore\n ...ModelRooms\n\n # LayersData.views - filtered to public only\n ...PublicModelViews\n\n # MdsPlayerOptionsStore\n # adds to the subset from the ModelDetails fragment\n ...ModelPlayerOptions\n\n # MdsPolicyStore\n # Policy values here will always be those for anonymous users; if any of them vary by\n # user and we care about them in Showcase, they\'ll need to be explicitly requeried.\n ...ModelPolicies\n }\n\n # MdsRoomBoundsStore\n ...RoomClassifications\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}n.definitions=n.definitions.concat(a(i(14991).definitions)),n.definitions=n.definitions.concat(a(i(82038).definitions)),n.definitions=n.definitions.concat(a(i(10600).definitions)),n.definitions=n.definitions.concat(a(i(98585).definitions)),n.definitions=n.definitions.concat(a(i(26172).definitions)),n.definitions=n.definitions.concat(a(i(32126).definitions)),n.definitions=n.definitions.concat(a(i(25e3).definitions)),n.definitions=n.definitions.concat(a(i(77583).definitions)),n.definitions=n.definitions.concat(a(i(31595).definitions)),n.definitions=n.definitions.concat(a(i(3718).definitions));var r={};function l(e,t){for(var i=0;i0;){var o=a;a=new Set,o.forEach((function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=l(e,t);n&&i.definitions.push(n)})),i}(n,"GetModelPrefetch")},32126:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRoomBounds"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"floors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeUsed"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vertices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"centerLineBias"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thickness"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relativeCenter"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowerElevation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rooms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"classifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"confidence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"boundary"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"holes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dimensionEstimates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"area"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areaIndoor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ceiling"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"planes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"measurements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bottom"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"maxHeight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minHeight"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"keywords"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRoomClassifications"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RoomClassifications"},directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RoomClassifications"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"roomClassifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultKeywords"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1177}};t.loc.source={body:"query GetRoomBounds($modelId: ID!) {\n model(id: $modelId) {\n floors {\n id\n layer { id }\n edges(includeUsed: true) {\n id\n layer { id }\n type\n vertices { id layer { id } position { x y }}\n centerLineBias\n thickness\n openings {\n id\n width\n relativeCenter\n type\n height\n lowerElevation\n layer { id }\n }\n }\n }\n rooms {\n id\n layer { id }\n floor { id }\n classifications {\n id\n confidence\n label\n }\n boundary {\n edges { id }\n }\n holes {\n edges { id }\n }\n dimensionEstimates {\n area\n areaIndoor\n width\n depth\n height\n units\n }\n ceiling {\n planes {\n measurements {\n bottom { x y z }\n height\n }\n }\n maxHeight\n minHeight\n }\n label\n keywords\n }\n }\n}\n\nquery GetRoomClassifications {\n ...RoomClassifications\n}\n\nfragment RoomClassifications on Query {\n roomClassifications {\n id\n label\n defaultKeywords\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetRoomBounds=a(t,"GetRoomBounds"),e.exports.GetRoomClassifications=a(t,"GetRoomClassifications"),e.exports.RoomClassifications=a(t,"RoomClassifications")},26172:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRooms"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelRooms"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelRooms"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rooms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RoomDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RoomDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelRoom"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dimensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areaFloor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]}]}}],loc:{start:0,end:312}};t.loc.source={body:"\nquery GetRooms ($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelRooms\n }\n}\n\nfragment ModelRooms on Model {\n rooms {\n ...RoomDetails\n }\n}\n\nfragment RoomDetails on ModelRoom {\n id\n meshId\n floor {\n id\n meshId\n }\n dimensions {\n height\n width\n depth\n areaFloor\n }\n tags\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetRooms=a(t,"GetRooms"),e.exports.ModelRooms=a(t,"ModelRooms"),e.exports.RoomDetails=a(t,"RoomDetails")},77583:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelShowcaseSweeps"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tags"},value:{kind:"StringValue",value:"showcase",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AnchorLocationDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SkyboxDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SkyboxPanorama"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileResolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileUrlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SkyboxUrlDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PanoramicImageLocation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skyboxes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SkyboxDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AnchorLocationDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AnchorLocation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"index"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"neighbors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pano"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sweepUuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"w"},arguments:[],directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SkyboxUrlDetails"},directives:[]}]}}]}}],loc:{start:0,end:785}};t.loc.source={body:'fragment ModelShowcaseSweeps on Model {\n locations(tags: "showcase") {\n ...AnchorLocationDetails\n }\n}\n\nfragment SkyboxDetails on SkyboxPanorama {\n # TODO(PL-5928) all SkyboxDetail results have the same non-unique id,\n # using it as a map key will yield unexpected results\n # id\n resolution\n status\n urlTemplate\n tileResolution\n tileCount\n tileUrlTemplate\n validUntil\n}\n\nfragment SkyboxUrlDetails on PanoramicImageLocation {\n id\n resolutions\n skyboxes { ...SkyboxDetails }\n}\n\nfragment AnchorLocationDetails on AnchorLocation {\n id\n index\n floor { id, meshId }\n room { id, meshId }\n neighbors\n tags\n position { x y z }\n pano {\n id\n sweepUuid\n label\n placement\n source\n position { x y z }\n rotation { x y z w }\n ...SkyboxUrlDetails\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.ModelShowcaseSweeps=a(t,"ModelShowcaseSweeps"),e.exports.SkyboxDetails=a(t,"SkyboxDetails"),e.exports.SkyboxUrlDetails=a(t,"SkyboxUrlDetails"),e.exports.AnchorLocationDetails=a(t,"AnchorLocationDetails")},31595:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicModelViews"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"matterport.model.default",block:!1},{kind:"StringValue",value:"matterport.model.layered",block:!1},{kind:"StringValue",value:"matterport.model.defurnished",block:!1},{kind:"StringValue",value:"matterport.user.view",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ViewDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelView"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visible"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:514}};t.loc.source={body:'# Subset of view types that are available to public users, i.e. safe for prefetch\nfragment PublicModelViews on Model {\n views(types: [\n "matterport.model.default",\n "matterport.model.layered",\n "matterport.model.defurnished",\n "matterport.user.view"\n ]) {\n ...ViewDetails\n }\n}\n\nfragment ViewDetails on ModelView {\n id\n type\n name\n enabled\n created\n modified\n layers {\n layer {\n id\n created\n modified\n type\n name\n label\n }\n position\n visible\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.PublicModelViews=a(t,"PublicModelViews"),e.exports.ViewDetails=a(t,"ViewDetails")},43066:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMergeDiff"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergeDiff"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"src"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dest"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"typesModified"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetViews"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"viewId"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddUserView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"userDataLayer"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"masks"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"deleteLayersIfOrphaned"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"deleteLayersIfOrphaned"},value:{kind:"Variable",name:{kind:"Name",value:"deleteLayersIfOrphaned"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetViewEnabled"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ConvertRootViewToLayered"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"convertRootViewToLayered"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ConvertRootViewToLegacy"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"convertRootViewToLegacy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"deleteLayersIfOrphaned"},value:{kind:"BooleanValue",value:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CopyViewDataToLayer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"copyDataFrom"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CopyInput"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"copyViewData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"layerId"},value:{kind:"Variable",name:{kind:"Name",value:"layerId"}}},{kind:"Argument",name:{kind:"Name",value:"copyDataFrom"},value:{kind:"Variable",name:{kind:"Name",value:"copyDataFrom"}}},{kind:"Argument",name:{kind:"Name",value:"generateIds"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MoveViewDataToLayer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LayeredViewSelection"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"moveViewData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"srcViewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"destLayerId"},value:{kind:"Variable",name:{kind:"Name",value:"layerId"}}},{kind:"Argument",name:{kind:"Name",value:"viewSelections"},value:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteFromView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LayeredViewSelection"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteFromView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"viewSelections"},value:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DuplicateView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}},{kind:"Argument",name:{kind:"Name",value:"userDataLayer"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"masks"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}}]}},{kind:"Argument",name:{kind:"Name",value:"copyDataFrom"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}},{kind:"Argument",name:{kind:"Name",value:"generateIds"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PublishView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeMutator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"src"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"merge"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSessionDiff"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"base"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.model.default",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MattertagDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeasurementDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"view"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.workshop.session",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:4426}};n.loc.source={body:'#import "./labels.gql"\n#import "./lists.gql"\n#import "./mattertags.gql"\n#import "./measurements.gql"\n#import "./view-fragments.gql"\n\n# Gets the data types that have changed between a view and the base model\nquery GetMergeDiff($viewId: ID!) {\n model(id: $viewId) {\n id\n mergeDiff {\n src\n dest\n typesModified\n }\n }\n}\n\n# Get available views for a model\nquery GetViews($modelId: ID!) {\n model(id: $modelId) {\n id\n views {\n ...ViewDetails\n }\n }\n}\n\n# Get one view\nquery GetView($viewId: ID!) {\n model(id: $viewId) {\n id\n views(ids: [$viewId]) {\n ...ViewDetails\n }\n }\n}\n\n# Adds a new User View using the base Model ID.\n# By default, it masks view-based data layer items\nmutation AddUserView($modelId: ID!, $name: String!) {\n addView(\n id: $modelId,\n name: $name,\n userDataLayer: {\n masks: [\n { type: HighlightReel },\n { type: Label },\n { type: Mattertag },\n { type: MeasurementPath },\n { type: Note },\n { type: ObjectAnnotation },\n { type: OrderedList },\n ]\n }\n ) {\n ...ViewDetails\n }\n}\n\n# Deletes a View using the base Model ID and the viewId to delete\n# deleteLayersIfOphaned: true will delete the Common layers if orphaned,\n# dedicated layers are deleted in all cases?\nmutation DeleteView($modelId: ID!, $viewId: ID!, $deleteLayersIfOrphaned: Boolean) {\n deleteView(id: $modelId, viewId: $viewId, deleteLayersIfOrphaned: $deleteLayersIfOrphaned)\n}\n\nmutation RenameView($viewId: ID!, $name: String!) {\n patchView(id: $viewId, name: $name) {\n name\n }\n}\n\nmutation SetViewEnabled($viewId: ID!, $enabled: Boolean) {\n patchView(id: $viewId, enabled: $enabled) {\n enabled\n }\n}\n\nmutation ConvertRootViewToLayered($modelId: ID!) {\n convertRootViewToLayered(id: $modelId) {\n ...ViewDetails\n }\n}\n\nmutation ConvertRootViewToLegacy($modelId: ID!) {\n convertRootViewToLegacy(id: $modelId, deleteLayersIfOrphaned: false) {\n ...ViewDetails\n }\n}\n\n# This returns a view id\nmutation CopyViewDataToLayer($viewId: ID!, $layerId: ID, $copyDataFrom: [CopyInput!]) {\n copyViewData(\n id: $viewId\n layerId: $layerId\n copyDataFrom: $copyDataFrom\n generateIds: true\n ) {\n id\n }\n}\n\nmutation MoveViewDataToLayer($viewId: ID!, $layerId: ID, $viewSelections: [LayeredViewSelection!]) {\n moveViewData(\n id: $viewId\n srcViewId: $viewId\n destLayerId: $layerId\n viewSelections: $viewSelections\n )\n}\n\n# Deletes items from view\nmutation DeleteFromView($viewId: ID!, $viewSelections: [LayeredViewSelection!]) {\n deleteFromView(id: $viewId, viewSelections: $viewSelections)\n}\n\nmutation DuplicateView($modelId: ID!, $viewId: ID!, $name: String!, $enabled: Boolean) {\n addView(\n id: $modelId\n name: $name\n enabled: $enabled\n userDataLayer: {\n masks: [\n { type: HighlightReel },\n { type: Label },\n { type: Mattertag },\n { type: MeasurementPath },\n { type: Note },\n { type: ObjectAnnotation },\n { type: OrderedList },\n ]\n },\n copyDataFrom: [\n { viewId: $viewId, type: HighlightReel },\n { viewId: $viewId, type: Label },\n { viewId: $viewId, type: Mattertag },\n { viewId: $viewId, type: MeasurementPath },\n { viewId: $viewId, type: Note },\n { viewId: $viewId, type: ObjectAnnotation },\n { viewId: $viewId, type: OrderedList },\n ]\n generateIds: true,\n ) {\n ...ViewDetails\n }\n}\n\n# Merges the given view into the base model view\nmutation PublishView($viewId: ID!) {\n mergeMutator(src: $viewId) {\n merge {\n id\n }\n }\n}\n\n# Gets the data that has changed between the Workshop session and base model\nquery GetSessionDiff($modelId: ID!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n base: view(type: "matterport.model.default") {\n id\n model {\n labels(includeDisabled: true) { ...LabelDetails }\n mattertags(includeDisabled: true) { ...MattertagDetails }\n measurementPaths(includeDisabled: true) { ...MeasurementDetails }\n orderedLists(ids: []) { ...OrderedListDetails }\n }\n }\n view: view(type: "matterport.workshop.session") {\n id\n model {\n labels(includeDisabled: true) { id modified }\n mattertags(includeDisabled: true) { id modified }\n measurementPaths(includeDisabled: true) { id modified }\n orderedLists(ids: []) { ...OrderedListDetails }\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}n.definitions=n.definitions.concat(a(i(96069).definitions)),n.definitions=n.definitions.concat(a(i(92711).definitions)),n.definitions=n.definitions.concat(a(i(27140).definitions)),n.definitions=n.definitions.concat(a(i(64639).definitions)),n.definitions=n.definitions.concat(a(i(31595).definitions));var r={};function l(e,t){for(var i=0;i0;){var o=a;a=new Set,o.forEach((function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=l(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.GetMergeDiff=d(n,"GetMergeDiff"),e.exports.GetViews=d(n,"GetViews"),e.exports.GetView=d(n,"GetView"),e.exports.AddUserView=d(n,"AddUserView"),e.exports.DeleteView=d(n,"DeleteView"),e.exports.RenameView=d(n,"RenameView"),e.exports.SetViewEnabled=d(n,"SetViewEnabled"),e.exports.ConvertRootViewToLayered=d(n,"ConvertRootViewToLayered"),e.exports.ConvertRootViewToLegacy=d(n,"ConvertRootViewToLegacy"),e.exports.CopyViewDataToLayer=d(n,"CopyViewDataToLayer"),e.exports.MoveViewDataToLayer=d(n,"MoveViewDataToLayer"),e.exports.DeleteFromView=d(n,"DeleteFromView"),e.exports.DuplicateView=d(n,"DuplicateView"),e.exports.PublishView=d(n,"PublishView"),e.exports.GetSessionDiff=d(n,"GetSessionDiff")},67249:()=>{},29251:()=>{},83502:()=>{},87072:()=>{},8461:(e,t,i)=>{"use strict";i(38630);var n=i(82478),s=(i(35487),i(14495)),a=i(71294),o=i(80328),r=i(35596),l=i(33020),d=i(36794),c=i(56136),u=i(14947),h=i(96452),m=i(95149),p=i(44383),E=i(95226),S=i(8430),O=i(43998),g=i(35223),_=i(71958),T=i(9389),A=i(32903),v=i(35062);var N=i(61334),L=i(37117),I=i(3032),f=i(15357),b=i(71553),R=i(82110),y=i(48064),M=i(521),D=i(15098);const k=new(i(35652).Ay)("AB");class P{constructor(e){this.values={};for(const t in e){const i=e[t];if(i&&i.ab)try{this.values[t]=w(i.ab)}catch(e){k.warn(`Skipping key ${t}, could not pick: ${e}`)}}}get(e){return this.values[e]}serialize(){return Object.keys(this.values).map((e=>`${e}:${this.values[e]}`))}}function w(e){if(0===e.length)throw Error("A/B cannot choose from an empty choice array");let t=0;for(const i of e){if(void 0===i.value||void 0===i.weight||i.weight<0)throw Error(`Malformed AB choice: ${i}`);t+=i.weight}const i=Math.random()*t;let n=0;for(const t of e)if(n+=t.weight,i<=n)return t.value}var C=i(27987),x=i(97624),H=i(2409),U=i(21296),G=i(20764),F=i(66083),j=i(81456),B=i(54839),V=i(20322),W=i(15855),z=i(64530),K=i(82389),Y=i(77475);var $=i(34144),Q=i(75176),q=i(81866),X=i(1902),Z=i(38710),J=i(70056),ee=i(3073),te=i(38398),ie=i(24563);class ne{constructor(e){this.apqEnabled=!1,this.anonymousHeaderEnabled=!1,this.simulateApiOutage=te.u.NONE,this.nonBaseLayerWriteEnabled=!1,this.refreshableStores=new Set,this.sharedCaches=new Set,this.updateForAutoProvisionedLayer=async e=>{if(this.autoProvisionLayerCheckCallback)return this.autoProvisionLayerCheckCallback(e)},this.baseViewId=null!=e?e:null}toggleNonBaseLayeredWrites(e){this.nonBaseLayerWriteEnabled=e}shouldWriteLayerId(e){return!!this.nonBaseLayerWriteEnabled&&(""!==e&&e!==ie.qw)}async setCurrentViewId(e){const t=Array.from(this.refreshableStores.values());this.currentViewId=e,await Promise.all(t.map((e=>e.refresh())))}async refreshLayeredStores(e){const t=Array.from(this.refreshableStores.values()).filter((t=>e.includes(t.layeredType)));await Promise.all(t.map((e=>e.refresh())))}}var se=i(76283),ae=i(76445),oe=i(76035),re=i(88229),le=i(82030),de=i(55384),ce=i(56638),ue=i(31863);var he=i(67307);var me=i(52147);async function pe({urlValues:e,settingsData:t,flags:i,loggedIn:n,inWorkshop:s,hasPolicy:a,domainDenylist:o}){const r=null!=(0,re.un)(),l=e[ce.x$.enabled],d=i.has(ce.jg)?"0"!==l:"1"===l,c=a(ce.td)||"1"===e[ce.x$.forcePolicy],u=!n,h=t.tryGetProperty(me.qu,!1),m=e[ce.x$.forceReferrer]||document.referrer,E=await async function(e,t){if(!e)return!0;if(!window.crypto||!window.crypto.subtle)return!1;const i=new URL(e),n=(0,p.SE)(i.hostname),s=await(0,ue.e8)(n);return!t.includes(s)}(m,o);he.r.debug("referrer eligible: ",E.toString());const O=!r&&!s,g=function(e){return e.getOverrideParam("lang",(0,S.Ul)())}(t).startsWith("en"),_=d&&!h&&O&&g&&u;return{popupAllowed:_&&c&&E,bannerAllowed:_}}var Ee=i(71608),Se=i(5156),Oe=i(93279),ge=i(1803),_e=i(83372);var Te=i(35802),Ae=i(66344),ve=i(79679),Ne=i(53285);function Le(e){const t={width:"360",maxwidth:"360",maxheight:"640",url:e,native:"true",autoplay:"true"};if(e.includes("flickr")||e.includes("flic.kr")){const e=Math.max(window.screen.height,window.screen.width);t.maxwidth=t.maxheight=t.width=`${e}`}return{queryParams:new URLSearchParams(t),headers:{responseType:"json"}}}const Ie=/^https:\/\/www.instagram.com/;const fe=/^https:\/\/www.facebook.com/,be=/^https:\/\/www.facebook.com\/(.*\/)?(posts\/|activity\/|photo\.php|photos\/|permalink\.php|media\/set|questions\/|notes\/)/,Re=/^https:\/\/www.facebook.com\/(video\.php|.*\/videos\/)/;const ye=[{testUrl:function(e){return Ie.test(e)},request:async function(e,t,i,n){const{queryParams:s,headers:a}=Le(e);i&&n&&s.append("access_token",`${i}|${n}`);const o=new URL(`https://graph.facebook.com/v10.0/instagram_oembed?${s.toString()}`);try{return await t.get(o.toString(),a)}catch(e){const t=e;throw new Ne.$A(t.error.message,t.status_code,t.error.type)}},apiKeys:["instagramAppId","instagramClientToken"]},{testUrl:function(e){return fe.test(e)},request:async function(e,t,i,n){const{queryParams:s,headers:a}=Le(e);i&&n&&s.append("access_token",`${i}|${n}`);const o=function(e){return be.test(e)?"https://graph.facebook.com/v10.0/oembed_post":Re.test(e)?"https://graph.facebook.com/v10.0/oembed_video":"https://graph.facebook.com/v10.0/oembed_page"}(e),r=new URL(`${o}?${s.toString()}`);try{return await t.get(r.toString(),a)}catch(e){const t=e;throw new Ne.$A(t.error.message,t.status_code,t.error.type)}},apiKeys:["instagramAppId","instagramClientToken"]},{testUrl:()=>!0,request:async function(e,t,i){const{queryParams:n,headers:s}=Le(e);i&&n.append("key",i);const a=new URL(`${window.location.origin}/oembed?${n.toString()}`);try{return await t.get(a.toString(),s)}catch(e){const t=e;throw new Ne.$A(t.error_message,t.status_code,t.type)}},apiKeys:["embedlyKey"]}];var Me=i(78331);const De={[Me.K.GoogleMaps]:function(e,t){return e.thumbnail_url&&(e.thumbnail_url=`${e.thumbnail_url}&key=${t.googleMapsApiKey}`),e}};async function ke(e,t,i){const n=i.embedlyKey;if(n){const i=function(e,t){if(e.includes("i.embed.ly")||e.startsWith("blob:"))return e;const i=Math.max(window.screen.height,window.screen.width),n=`&url=${encodeURIComponent(e)}&width=${i}&height=${i}`;return`${window.location.origin}/1/display/resize?key=${t}${n}`}(e,n);return t.get(i,{responseType:"arraybuffer"}).then((e=>{return t=e,new Promise((e=>{t||Promise.resolve(null);const i=t=>{const i=t.target,n={width:i.naturalWidth,height:i.naturalHeight,url:o,type:ve.n.PHOTO,version:""};e(n)},n=new Uint8Array(t),s=new Blob([n]),a=new Image;a.addEventListener("load",(e=>i(e)));const o=URL.createObjectURL(s);a.src=o}));var t}))}return null}const Pe={[Me.K.Behance]:!1,[Me.K.FaceBook]:!1,[Me.K.GoogleMaps]:"googleMapsApiKey",[Me.K.Instagram]:["instagramAppId","instagramClientToken"],[Me.K.LinkedIn]:!1,[Me.K.MixCloud]:!1,[Me.K.Pinterest]:!1,[Me.K.Reddit]:!0,[Me.K.TikTok]:!0,[Me.K.Twitter]:!0,[Me.K.Twitch]:!1};class we{constructor(e,t){this.cache={},this.queue=e,this.apiKeys=t}async getOEmbedData(e){const t=this.cache[e];if(t&&t.type!==ve.n.LINK)return Promise.resolve(t);let i,n;try{n=await function(e,t,i){for(const n of ye)if(n.testUrl(e)){const s=n.apiKeys.map((e=>i[e]));return n.request(e,t,...s)}throw new Ne.i1(e)}(e,this.queue,this.apiKeys)}catch(e){if(![401,404,501].includes(e.status))throw e;i=e}if(!n||n.type===ve.n.PHOTO){const t=(null==n?void 0:n.url)||e;try{const i=await ke(t,this.queue,this.apiKeys);if(i)return this.cache[e]=i,i}catch(e){if(!n)throw i||e}}if(!n)throw i||Ne.$A;return this.cache[e]=n,this.validate(n)}clearCache(){this.cache={}}validate(e){if(!((e,t)=>{const i=void 0===e.provider_name?void 0:Pe[e.provider_name.toLowerCase()];return"string"==typeof i?!!t[i]:Array.isArray(i)?i.every((e=>!!t[e])):!1!==i})(e,this.apiKeys))throw new Ne.aI(e.provider_name);if(e.type===ve.n.LINK)throw new Ne.Dm(e.provider_name);return function(e,t){if(void 0!==e.provider_name){const i=De[e.provider_name.toLowerCase()];if(i)return i(e,t)}return e}(e,this.apiKeys)}}var Ce=i(85217),xe=i(58838),He=i(40725),Ue=i(27074),Ge=i(79085),Fe=i(13431),je=i(66931);const Be="spaces.aws.twinmaker.sdk.access",Ve=new Map([["iot-twinmaker",Be]]);var We=i(99817),ze=i(90833),Ke=i(94765);const Ye=new h.Vy("showcase");class $e{constructor(e,t={},i=!1){var n;this.inWorkshop=e,this.editModePreferred=i,this.bindings=[],this.logLevel=h.$b.INFO,this.storeQueue=new s.L3,this.apiQueue=new s.L3,this.analyticsQueue=new s.L3({concurrency:1}),this.errorPromise=new a.i,this.forceLogin=!1,this.openingTool=null,this.isSDK=!1,this.uiLoading=Promise.resolve(),this.sceneLoader=new Te.LazyLoader,this.modulesLoadedPromise=new a.i,this.stopTourHook=async e=>{const t=e.market.tryGetData(I.R);t&&t.tourPlaying&&(await e.commandBinder.issueCommand(new Q.IP),await(0,E.cb)(10))},this.settingOverrides=Object.assign({},t),this.assetBasePath=this.settingOverrides.assetBasePath=function(e){e=e.replace(/\/*$/,"/");const t=new URL(e,document.baseURI),i=[/^https:\/\/static\.matterport\.com(:[0-9]+)?\//,/^https:\/\/static\.matterportvr\.cn(:[0-9]+)?\//,/^https:\/\/[^\/]+\.awsstatic\.com\/([^?#]+\/)?matterport\/.*/,/^http:\/\/(localhost|127\.0\.0\.1)(:[0-9]+)?\/.*/].find((e=>t.href.match(e)))?t.origin:document.baseURI;return new URL(t.pathname,i).toString()}(null!==(n=this.settingOverrides.assetBasePath)&&void 0!==n?n:"./");const{container:o,overrideParams:r=(0,m.EN)()}=this.settingOverrides;this.overrideParams=r,this.quickstart="1"===r.qs||void 0!==r.note||void 0!==r.tag;const l=r.applicationKey||t.applicationKey;this.isSDK=null!=l,(0,re.pN)(l||null),this.apiHost=((e,t)=>{const i=e.apiHost||t.apiHost;if(i){const e=(0,p.zh)(i);if(e)return e}return window.location.origin})(r,this.settingOverrides),this.oEmbedDeferred=new a.i,this.oEmbedConsumer=this.oEmbedDeferred.nativePromise(),this.apiHost!==window.location.origin&&(this.settingOverrides.apiHost=this.apiHost),this.container=o||document.body,this.modelUrls=(0,p.$j)(r.m||r.model,this.apiHost),this.initialViewId=this.modelUrls.sid,this.mdsContext=new ne(this.initialViewId),this.mdsContext.simulateApiOutage="1"===r.simulateApiOutage?te.u.TIMEOUT:te.u.NONE,this.mdsContext.anonymousHeaderEnabled=!e}getManifest(){return[{type:g.nu,promise:()=>Promise.resolve().then(i.bind(i,33868))},{type:_.XT,promise:()=>Promise.resolve().then(i.bind(i,75110))},{type:_.uH,promise:()=>Promise.resolve().then(i.bind(i,82822))},{type:g.Ll,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,11276))},{type:o.WJ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,92114))},{type:o.ZF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,14947))},{type:g.aF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,42468))},{type:o.S1,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,50904))},{type:_.q0,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,34663))},{type:g.Vc,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,77453))},{type:g.qL,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,58530))},{type:g.bj,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,30280))},{type:g.sA,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,58291))},{type:g.di,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,52885))},{type:g.Pn,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,76104))},{type:g.gS,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,7232))},{type:g.Wh,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,93990))},{type:g.$c,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,13876))},{type:g.M7,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,62805))},{type:g.CE,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,88032))},{type:g.mL,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,57458))},{type:_.bW,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,31154))},{type:_._r,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,39713))},{type:g.jh,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,60052))},{type:g.TV,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,13198))},{type:g.az,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,44239))},{type:g.Uu,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,87665))},{type:g.SH,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,46275))},{type:g.T9,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,491))},{type:g.Z7,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,51474))},{type:g.UN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,57588))},{type:g.fO,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(172),i.e(682),i.e(8872),i.e(314),i.e(2577),i.e(4499),i.e(5385)]).then(i.bind(i,72796))},{type:g.dC,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,61770))},{type:g.iV,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,92141))},{type:g.SD,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,77030))},{type:g.yT,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,28201))},{type:g.HX,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,42321))},{type:g.kM,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,57252))},{type:g.N7,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,55650))},{type:g.X7,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,83202))},{type:g.TY,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,14746))},{type:g.X$,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,56597))},{type:g.QW,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,57621))},{type:g.PD,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,14961))},{type:g.pR,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,46195))},{type:g.zj,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,34998))},{type:g.dT,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,64788))},{type:g.et,promise:()=>i.e(9860).then(i.bind(i,49860))},{type:_.ur,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,72083))},{type:_.T6,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,11468))},{type:_.K4,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,83562))},{type:g.Kv,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,1182))},{type:g.GR,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,35198))},{type:_.L8,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,86437))},{type:g.PM,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,26642))},{type:g.Ne,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,52392))},{type:g._q,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,14499))},{type:g.JY,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(172),i.e(8287),i.e(682),i.e(3893),i.e(3153),i.e(9114)]).then(i.bind(i,62770))},{type:g.qD,promise:()=>Promise.all([i.e(8893),i.e(6469)]).then(i.bind(i,26469))},{type:g.Et,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,97088))},{type:g.qy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,61075))},{type:g.rA,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,63516))},{type:g.ep,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,1129))},{type:g.zX,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,40522))},{type:g._v,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,829))},{type:T.r,promise:()=>i.e(8221).then(i.bind(i,8221))},{type:g.yR,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,58408))},{type:g.Xx,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,47060))},{type:g.ZF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,67239))},{type:g.N9,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,45880))},{type:g.kd,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,84769))},{type:g.TN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,92508))},{type:g.gy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,14362))},{type:g.cy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,61115))},{type:g.Tx,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,66837))},{type:_.bw,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,34558))},{type:g.kG,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,34616))},{type:g.Yj,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,70211))},{type:g.PJ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,75881))},{type:g.J$,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,70814))},{type:g.AO,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,75457))},{type:g.Np,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,6665))},{type:g.gk,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,40943))},{type:g.LG,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,42723))},{type:g.f0,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,46733))},{type:g.co,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,68859))},{type:g.wY,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,37396))},{type:g.lN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(5438),i.e(682),i.e(9261),i.e(314),i.e(7475)]).then(i.bind(i,19742))},{type:g.eE,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,74617))},{type:g.Yr,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,67820))},{type:g.aU,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,1545))},{type:g.FI,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,58755))},{type:g.zy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,82751))},{type:g.QS,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,36871))},{type:g.He,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,87221))},{type:g.se,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,42283))},{type:g.Xf,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,96884))},{type:g.XQ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,10467))},{type:g.tQ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,19581))},{type:g.YC,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,44459))},{type:g.Vu,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,9276))},{type:g.rz,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,60611))},{type:g.A5,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(5438),i.e(489),i.e(3974),i.e(6888),i.e(4499),i.e(777)]).then(i.bind(i,11998))},{type:g.vM,promise:()=>Promise.all([i.e(9589),i.e(3893),i.e(5001)]).then(i.bind(i,96899))},{type:g.lf,promise:()=>Promise.all([i.e(9589),i.e(3893),i.e(5001)]).then(i.bind(i,33198))},{type:g.N4,promise:()=>Promise.all([i.e(9438),i.e(1391)]).then(i.bind(i,41391))},{type:g.KT,promise:()=>Promise.all([i.e(7888),i.e(5e3),i.e(7209),i.e(9478),i.e(215)]).then(i.bind(i,90215))}]}getAppPhases(e){return{[r.Jj.UNINITIALIZED]:[],[r.Jj.WAITING]:[(async()=>{await e.getModuleBySymbol(_.XT)})()],[r.Jj.LOADING]:[(async()=>(await e.getModuleBySymbol(_.XT)).waitForPlaying)()],[r.Jj.STARTING]:[(async()=>(await e.getModuleBySymbol(_.T6)).waitForFirstRender)(),(async()=>(await e.getModuleBySymbol(g.fO)).waitForData)()],[r.Jj.PLAYING]:[(async()=>(await e.getModuleBySymbol(_.T6)).waitForFlyin)()],[r.Jj.ERROR]:[this.errorPromise.nativePromise()]}}stop(){this.engineTick&&this.engineTick.stop()}setError(e){this.errorPromise.reject(e),this.stop()}async load(e,t){var n,s,a;e.diContainer.get(Ke.W8).resolve(),this.engine=e,this.engine.loadModuleBySymbol({type:o.WJ,config:{tasks:this.getAppPhases(e)}});const c=await this.engine.loadModuleBySymbol({type:o.ZF,config:{useGUI:!0,queryScope:this.container.getRootNode(),overrideParams:this.overrideParams}});this.loadAnalytics();const m=(await this.engine.loadModuleBySymbol({type:g.qL,config:{baseUrl:this.modelUrls.urlBase,apiQueue:this.apiQueue,storeQueue:this.storeQueue,preloadConfig:"showcase",mdsContext:this.mdsContext}})).getApi(),p=await m.user,E=p.loggedIn,N=this.setInitialSettings(p,c,t);if(e.getModuleBySymbol(o.WJ).then((i=>{i.updateActiveApp(r.lg.SHOWCASE),t.coldStart||e.broadcast(new l.Fj(r.lg.SHOWCASE))})),e.market.waitForData(r.zH).then((t=>{t.onChanged((async()=>{const i=this.overrideParams.oops;if(i&&t.phase!==r.Jj.ERROR&&(t.phase=r.Jj.ERROR),t.phase===r.Jj.ERROR){const n=t.error,s=await e.getModuleBySymbol(_.bW);throw i?s.showError(i):n instanceof Z.X5?s.showError(A.b.MODEL_ARCHIVED):n instanceof Z.Q8?s.showError(A.b.MODEL_COMPLIANCE):n instanceof Z.a_?s.showError(A.b.MODEL_DELETED):n instanceof Z.GI?s.showError(A.b.MODEL_FAILED):n instanceof Z.cC?s.showError(A.b.MODEL_PENDING):n instanceof Z.Wz?s.showError(A.b.MODEL_PROCESSING):n instanceof D.s?s.showError(A.b.WEBGL_UNSUPPORTED):n instanceof D.y?s.showError(A.b.WEBGL_GENERIC):s.showError(A.b.GENERIC),n}}))})),this.bindings.push((0,Oe.$2)({messageBus:this.engine.msgBus}),function(e){const t=[];return t.push(new Oe.GL({symbol:_e.D.ModelMesh,callback:()=>Promise.all([i.e(8893),i.e(172),i.e(2276)]).then(i.bind(i,91336)).then((t=>t.default(e.engine)))})),e.urlValues.debug&&t.push(new Oe.GL({symbol:_e.D.Navigation,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,78562)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.Octree,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,44890)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.PanoTiles,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,53411)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.Raycaster,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,90198)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.Snapping,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,43808)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.WebGLRenderer,callback:()=>Promise.all([i.e(5438),i.e(489),i.e(2577),i.e(3745)]).then(i.bind(i,1791)).then((t=>t.default(e.engine)))})),e.urlValues.tiledmesh&&t.push(new Oe.GL({symbol:_e.D.StreamingMesh,callback:()=>Promise.all([i.e(8893),i.e(172),i.e(2276)]).then(i.bind(i,81841)).then((t=>t.default(e.engine)))}),new Oe.GL({symbol:_e.D.StreamingTexture,callback:()=>Promise.all([i.e(8893),i.e(172),i.e(2276)]).then(i.bind(i,51093)).then((t=>t.default(e.engine)))})),t.forEach((t=>e.messageBus.broadcast(t))),(0,ge.Sh)((()=>null),(()=>t.forEach((t=>e.messageBus.broadcast(new Oe.nt(t.payload))))))}({engine:this.engine,messageBus:this.engine.msgBus,urlValues:this.overrideParams})),!t.coldStart)return void(this.uiLoading=this.loadUI(!0));Ye.info("Showcase app version: 24.12.3_webgl-1-g8ac1598427");const{container:L}=this;this.canvas=document.createElement("canvas"),this.canvas.className="webgl-canvas";const k=L.querySelector("#canvas-container"),w=L.querySelector("#app-container"),x=L.querySelector("main")||document.body,U=L.querySelector("#react-render-root")||document.body;this.logLevel=parseInt(this.overrideParams.log,10),this.overrideParams.hasOwnProperty("log")&&!isNaN(this.logLevel)&&(h.Vy.level=this.logLevel),this.quickstart&&Ye.info("Quickstart engaged. Hold on to your knickers. "+performance.now()),this.engine.loadModuleBySymbol({type:g.Z7,config:{element:this.container}}),this.engine.loadModuleBySymbol({type:g.gS,config:{isLoggedIn:p.loggedIn,queue:this.apiQueue}}),e.loadModuleBySymbol({type:_.bW,config:{apiHost:this.apiHost,container:this.container}}),e.loadModuleBySymbol({type:g.Ll,config:{container:this.container}}),this.apiConfig=await m.getConfigs("showcase");const F=this.overrideParams.apq;this.mdsContext.apqEnabled=!0===this.apiConfig.apollo_apq?"0"!==F:"1"===F,this.loadPrefetchedData(this.initialViewId);const j=this.overrideParams.applicationKey||this.settingOverrides.applicationKey;await this.startAuthAndPolicyModules(m,j),this.engine.loadModuleBySymbol({type:g.M7,config:{canvas:this.canvas,useWebGL2:"1"===this.overrideParams.gl2,antialias:"1"===this.overrideParams.aa,useEffectComposer:!(!this.settingOverrides||!this.settingOverrides.hasOwnProperty("useEffectComposer"))&&!!this.settingOverrides.useEffectComposer}}),this.engine.loadModuleBySymbol({type:g.jh}),this.engine.loadModuleBySymbol({type:g.CE,config:{canvas:this.canvas,container:k}}),this.engine.loadModuleBySymbol({type:g.TV}),this.engine.loadModuleBySymbol({type:g.J$});const B=await e.getModuleBySymbol(g.M7);this.engineTick=new d.c(this.engine,B.threeRenderer,(e=>{this.engine.getModuleBySymbol(_.bW).then((t=>{this.setError(e),t.showError(A.b.GENERIC)}))})),this.setupOEmbedConsumer(this.settingOverrides.embedlyKey);const V=p.getFlags("showcase/"),{q:W,qK:K,qF:J}=this.overrideParams;this.engine.loadModuleBySymbol({type:_._r,config:{notificationDelayFrames:60}});const{settingsData:ee}=c;this.openingTool=(0,b.X)(ee),this.forceLogin=this.openingTool===M.S0.NOTES&&!E&&!(0,S.al)();let te=this.editModePreferred;te&&this.forceLogin&&(Ye.warn("Cannot start in edit mode. Need to login to view note."),te=!1);const ie={[$.Oe]:null,quickstart:this.quickstart,lang:this.overrideParams.lang,perf:this.overrideParams.perf,perfInterval:this.overrideParams.perfInterval,[me.k5]:(null===(n=this.apiConfig)||void 0===n?void 0:n.discover_space_url)||""};for(const e in ie)c.updateSetting(e,ie[e]);if(this.settingOverrides)for(const e in this.settingOverrides)c.updateSetting(e,this.settingOverrides[e]);const ne=new P(this.apiConfig),se=null!==(s=null==ne?void 0:ne.serialize())&&void 0!==s?s:[];this.loadInitialAppModules(se,B.gpuInfo);const ae=await this.engine.market.waitForData(xe.L);this.baseModelId=await this.loadViewsAndStorage(this.initialViewId),await this.engine.loadModuleBySymbol({type:g.SH,config:{baseUrl:this.modelUrls.urlBase,api:m,viewId:this.initialViewId,queue:this.apiQueue,mdsContext:this.mdsContext}}),this.forceLogin&&this.openingTool===M.S0.NOTES&&await this.loginToNote(this.baseModelId),c.hasProperty(H.vg)||c.updateSetting(H.vg,this.apiConfig.embedly_key),this.loadInitialDataModules(N,te);const re=()=>this.stopTourHook(e);e.commandBinder.hookCommand(X.aj,!0,re),e.commandBinder.hookCommand(q.S2,!0,re),e.commandBinder.hookCommand(Q.OR,!0,re);try{await e.waitForLoadingModules()}catch(t){this.setError(t),e.tick()}const[le,ue,Se]=await Promise.all([e.market.waitForData(v.q),e.market.waitForData(Ce.E),e.market.waitForData(oe.G)]);this.engine.loadModuleBySymbol({type:g.UN,config:{calculateTrimmedBounds:!0}});const{details:Te}=le.model;L.getRootNode()instanceof ShadowRoot||(document.title=Te.name),this.canvas.setAttribute("aria-label",Te.name);const Ae=Se.getStartingPose();!this.quickstart||Ae&&(0,R.vy)(Ae.mode)||(Ye.warn("Disabling quickstart. No panorama start position."),this.quickstart=!1,c.updateSetting("quickstart",!1));const{maxMeshTextureQuality:ve,textureLODThreshold:Ne}=(e=>{let t,i;return(0,S.Fr)()?(0,S.Fr)()&&e?(t=Y.M.ULTRA,i=10):(t=Y.M.MEDIUM,i=6):(t=Y.M.ULTRA,i=20),{maxMeshTextureQuality:t,textureLODThreshold:i}})(B.isHighPerformanceMobileGPU());Ye.info({maxMeshTextureQuality:ve,textureLODThreshold:Ne,gpuInfo:B.gpuInfo}),this.sceneLoader.setLoader((async()=>{var t;const i=await e.loadModuleBySymbol({type:g.KT});return"1"===(null!==(t=this.overrideParams.loadExamples)&&void 0!==t?t:"1")&&await(0,Ue.q)(),i.startLoading(),i})),await this.engine.loadModuleBySymbol({type:g.qD}),await this.engine.loadModuleBySymbol({type:g.iV}),this.quickstart&&(this.loadPanoControls(te),this.engineTick.start());{const e=this.setPluginPolicySettings(ee,ae);this.engine.loadModuleBySymbol({type:g.lf,config:{queue:this.storeQueue,modelId:this.baseModelId,apiHostBaseUrl:this.modelUrls.urlBase,pluginPolicies:e}}),this.engine.loadModuleBySymbol({type:g.vM,config:{mainDiv:x}}),this.engine.loadModuleBySymbol({type:g.JY}),this.engine.loadModuleBySymbol({type:g.N4,config:{pluginPolicies:e,editMode:te}})}await(await e.getModuleBySymbol(_.XT)).waitForPlaying,this.canvas.setAttribute("tabIndex","0"),this.engine.loadModuleBySymbol({type:g.X$,config:{container:this.container}});const Le=function(e,{dracoDecoderPath:t,basisTranscoderPath:i}){let n="webgl-vendors/three/0.151.3/";return!/^https?:\/\//.test("webgl-vendors/three/0.151.3/")&&(n=`webgl-vendors/three/0.151.3/`),{dracoDecoderPath:t||`${n}libs/draco/gltf/`,basisTranscoderPath:i||`${n}libs/basis/`}}(this.assetBasePath,{dracoDecoderPath:this.settingOverrides.dracoDecoderPath,basisTranscoderPath:this.settingOverrides.basisTranscoderPath});this.engine.loadModuleBySymbol({type:g.GR,config:{startingMode:this.quickstart?Ae.mode:null,textureLOD:C.R.RAYCAST,colorizeRooms:"1"===this.overrideParams.colorizeRooms,colorizeChunks:"1"===this.overrideParams.colorizeChunks,wireframe:"1"===this.overrideParams.wireframe,gltfConfig:Le}}),this.engine.loadModuleBySymbol({type:g.fO,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:_.L8,config:{maxQuality:ve,textureLOD:C.R.RAYCAST,textureLODThreshold:Ne}}),this.engine.loadModuleBySymbol({type:g.yT}),this.engine.loadModuleBySymbol({type:g.SD,config:{startingMode:this.quickstart?Ae.mode:null}}),this.engine.loadModuleBySymbol({type:g.PD,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase}}),this.engine.loadModuleBySymbol({type:g.dC}),this.engine.loadModuleBySymbol({type:g.HX,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.QW,config:{startingFloorsVisibility:this.quickstart?Ae.floorVisibility:void 0,allowFloorChanges:N.Features[z.p]}}),this.engine.loadModuleBySymbol({type:g.kM}),this.engine.loadModuleBySymbol({type:g.nu,config:{workshopApp:this.inWorkshop,container:w,mainDiv:x,reactContainer:U,queue:this.apiQueue,apiHost:this.apiHost}}),this.engine.loadModuleBySymbol({type:g.N7}),this.engine.loadModuleBySymbol({type:_.uH}),this.engine.loadModuleBySymbol({type:g.pR}),this.engine.loadModuleBySymbol({type:g.zj}),this.engine.loadModuleBySymbol({type:g.dT}),this.engine.loadModuleBySymbol({type:g._q,config:{allowRotation:!1}}),this.engine.loadModuleBySymbol({type:g.et,config:{enabled:"1"!==this.overrideParams.nozoom}}),this.engine.loadModuleBySymbol({type:_.T6}),this.engine.loadModuleBySymbol({type:g.Kv,config:{enableWheel:"1"===this.overrideParams.nozoom}}),this.engine.loadModuleBySymbol({type:g.PM}),this.engine.loadModuleBySymbol({type:g.Xx}),this.engine.loadModuleBySymbol({type:g.Ne}),this.engine.loadModuleBySymbol({type:_.ur}),this.quickstart||(this.engineTick.start(),this.loadPanoControls(te)),await this.engine.waitForLoadingModules(),this.engine.loadModuleBySymbol({type:g.wY}),"0"!==this.overrideParams.portal&&(this.engine.loadModuleBySymbol({type:g.f0}),this.engine.loadModuleBySymbol({type:g.co})),this.engine.loadModuleBySymbol({type:g.gk,config:{showPinsInFloorplanDollhouse:"0"!==this.overrideParams.pin}}),this.engine.loadModuleBySymbol({type:g.LG}),this.engine.loadModuleBySymbol({type:g.se,config:{checkRenderModes:()=>{const t=e.market.tryGetData(I.R);if(t&&t.isTourActive())return!1;const i=e.market.tryGetData(y.X);return!!i&&i.isInside()}}}),this.engine.loadModuleBySymbol({type:g.aU,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.FI});const Ie=c.getProperty(G.Jr);this.engine.loadModuleBySymbol({type:g.kd,config:{tagIconsEnabled:Ie}}),this.engine.loadModuleBySymbol({type:g.Et}),this.engine.loadModuleBySymbol({type:g.qy,config:{oEmbedConsumer:this.oEmbedConsumer,baseUrl:this.modelUrls.urlBase}}),async function(e,t,i,n,s,a,o,r){const l=t.subscriber_prompt_denylist||ce.Z1.domainDenylist,{popupAllowed:d,bannerAllowed:c}=await pe({urlValues:i,settingsData:e.settingsData,flags:n,loggedIn:s,inWorkshop:o,hasPolicy:a.hasPolicy.bind(a),domainDenylist:l});if(he.r.debug(`popupAllowed: ${d}, bannerAllowed: ${c}`),d||c){e.updateSetting(ce.nt,!0);const n=d&&("1"===i[ce.x$.forcePopup]||!!r.get("subscriber_prompt_a_popup")),s=c||"1"===i[ce.x$.forceBanner],a=t.subscriber_prompt_a_delay_ms||ce.Z1.popupDelay;he.r.debug(`popupEnabled: ${n}, bannerEnabled: ${s}`),e.registerSetting("Subscriber Prompt",ce.An,{popupDelay:a,popupEnabled:n,bannerEnabled:s},!1,u.SettingPersistence.NONE)}}(c,this.apiConfig,this.overrideParams,V,E,ae,this.inWorkshop,ne);const fe=this.overrideParams.stories,be="1"===fe||"0"!==fe&&ae.hasPolicy(f.bp);c.updateSetting(f.AI,be),this.engine.getModuleBySymbol(g.aF).then((e=>{e.trackFeatures(`${f.nn}:${be}`),(0,Ge.n3)(e,ae)})),this.engine.loadModuleBySymbol({type:g.XQ,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,storyToursFeature:be,looping:"1"===this.overrideParams.lp,queue:this.storeQueue,baseModelId:this.baseModelId}});const Re=(0,je.FZ)(p,ue,ae,ee);if(this.engine.loadModuleBySymbol({type:g.lN,config:{objectTagsEnabled:Re}}),this.engine.loadModuleBySymbol({type:g.cy,config:{workshop:this.inWorkshop,baseUrl:this.modelUrls.urlBase}}),this.loadUserDependentModules(E,ee,ae,V),this.engine.loadModuleBySymbol({type:g.yR,config:{debug:"1"===this.overrideParams.fcdbg}}),this.engine.loadModuleBySymbol({type:g.ZF}),this.engine.loadModuleBySymbol({type:g.N9,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,objectTagsEnabled:Re,inferMeshIds:!0,parserOptions:{supportLinks:!this.overrideParams.mls||"0"===this.overrideParams.mls,keepLinkLabels:!0},queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.Np}),this.engine.loadModuleBySymbol({type:g.Xf}),this.engine.loadModuleBySymbol({type:g.Tx}),this.engine.loadModuleBySymbol({type:g.ep}),this.engine.loadModuleBySymbol({type:g.zX}),this.engine.loadModuleBySymbol({type:g._v}),this.engine.loadModuleBySymbol({type:g.He,config:{baseUrl:this.modelUrls.urlBase}}),this.engine.loadModuleBySymbol({type:T.r}),this.engine.loadModuleBySymbol({type:_.bw}),this.engine.loadModuleBySymbol({type:g.rA}),this.engine.loadModuleBySymbol({type:g.PJ}),this.engine.loadModuleBySymbol({type:g.tQ}),this.engine.loadModuleBySymbol({type:g.zy,config:{baseUrl:this.modelUrls.urlBase,readonly:!0}}),this.engine.loadModuleBySymbol({type:g.AO}),this.engine.loadModuleBySymbol({type:g.Yr}),this.engine.loadModuleBySymbol({type:g.Yj,config:{urlQuery:W||((0,S.w2)()?"":W),urlQueryKeywords:K,urlQueryFilters:J,workshop:this.inWorkshop}}),Re){const e=this.overrideParams.minConfidence?(0,O.qE)(parseFloat(this.overrideParams.minConfidence),.01,1):void 0;this.engine.loadModuleBySymbol({type:g.gy,config:{debug:!!this.overrideParams.debug,baseUrl:this.modelUrls.urlBase,baseModelId:this.baseModelId,minConfidence:e}})}const ye=c.getProperty(Ee.F7);this.engine.loadModuleBySymbol({type:g.YC,config:{framebufferScaling:Math.min(this.overrideParams.xrframebuffer?parseFloat(this.overrideParams.xrframebuffer):0,1),tracking:+(null!==(a=this.overrideParams.xrtracking)&&void 0!==a?a:0),xrBrowsersUnlocked:ye,xrHandTracking:"1"===this.overrideParams["xr.hands"],xrMesh:"1"===this.overrideParams["xr.mesh"],xrDebug:"1"===this.overrideParams["xr.debug"]}});if(c.getProperty(de.n)){const e=c.getProperty(de.s);this.engine.loadModuleBySymbol({type:g.QS,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,queue:this.storeQueue,promptEnabled:e,debug:"1"===this.overrideParams.modelRatingDebug}})}e.getModuleBySymbol(g.bj).then((()=>{(0,Fe.m2)(ae,ee,this.inWorkshop)&&(this.engine.loadModuleBySymbol({type:g.Vu,config:{baseUrl:this.modelUrls.urlBase,readonly:!this.inWorkshop,requestQueue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.A5}),this.engine.loadModuleBySymbol({type:g.rz}))})),this.engine.loadModuleBySymbol({type:g.eE}),this.engine.loadModuleBySymbol({type:g.kG}),await this.engine.waitForLoadingModules(),this.modulesLoadedPromise.resolve()}setInitialSettings(e,t,i){const n=e.getFlags("showcase/"),s=(0,K.A0)(parseFloat(this.overrideParams.wts)),{labels:a,mt:o,allowRating:r,tiledmesh:l,tagIcons:d}=this.overrideParams,h=n.has(j.Z),m=(0,le.B)(navigator.language),p=n.has(de.n)?"0"!==r:"1"===r,E=this.inWorkshop&&e.loggedIn&&p,S=E&&n.has(de.s)?"0"!==r:"1"===r,O=n.has(G.Jr)?"0"!==d:"1"===d,g=n.has(x.sz)?"0"!==l:"1"===l,_="1"===this.overrideParams.ad,T=n.has(Ee.F7)?"0"!==this.overrideParams[Ee.RN]:"1"===this.overrideParams[Ee.RN],A=null!=this.overrideParams.showCeilings?"1"===this.overrideParams.showCeilings:n.has(ze.VS),v={Features:{[V.f]:!0,[B.s]:!0,[x.sz]:g,[Se.cB]:_,[U.RP]:"0"!==a,[H.qE]:"0"!==o,[z.p]:"0"!==this.overrideParams.f,[W._V]:s,[j.Z]:h,[Ae.e]:!1,[Ae.n]:!1,[de.n]:E,[de.s]:S,[ce.nt]:!1,[G.Jr]:O,[G.GK]:!0,[G.AM]:!0,[ze.VS]:A,[Ee.F7]:T},"User Preferences":{[c.Y.UnitType]:m,[c.Y.MeasurementSnapping]:!0,[c.Y.MeasurementContinuousLines]:!0,[c.Y.MeasurementUserNudgeSeen]:!1,[c.Y.DollhouseUserNudgeSeen]:!1,[c.Y.NotesModeNudgeSeen]:!1,[c.Y.LastRatingPromptTime]:null,[c.Y.SubscriberPromptDismissed]:!1,[c.Y.TourTextNudgeDismissed]:!1,[c.Y.TourMobileNavigationPromptSeen]:!1}};for(const e in v)for(const i in v[e]){if(void 0===v[e][i])continue;const n="User Preferences"===e?u.SettingPersistence.LOCAL_STORAGE:u.SettingPersistence.NONE;t.registerSetting(e,i,v[e][i],!0,n)}t.updateSetting("assetBasePath",this.assetBasePath);let N=!0;return this.isSDK&&"1"===this.overrideParams.disableUnifiedMode&&(N=!1),t.updateSetting(We.gT,N),this.engine.market.waitForData(Ce.E).then((i=>{const s=i.getModelOrganizationId(),a="0"===this.overrideParams.ad;let o=n.has(Se.cB);s&&e.hasMembership(s)&&(o=e.hasMembershipFlag(s,`showcase/${Se.cB}`)),t.updateSetting(Se.cB,o&&!a)})),v}setPluginPolicySettings(e,t){var i;const n={enabled:t.hasPolicy(He.XX),canConfig:t.hasPolicy(He.p_),canDebug:t.hasPolicy(He._x),groups:(null===(i=t.getPolicy(He.eV))||void 0===i?void 0:i.options)||[]};return e.setProperty(He.p_,n.canConfig&&n.enabled),e.setProperty(He.XX,n.enabled),n}loadUserDependentModules(e,t,i,n){this.engine.market.waitForData(Ce.E).then((s=>{(0,F.uV)(e,i,s,t,n)&&this.engine.loadModuleBySymbol({type:g.TN,config:{workshop:this.inWorkshop,baseUrl:this.modelUrls.urlBase,readonly:!1}})}))}async unload(e){var t;this.mdsContext.sharedCaches.delete(this.prefetchCache);try{await e.commandBinder.issueCommand(new Q.IP)}catch(e){Ye.debug("showcase unload called before tour controls registered, ignoring stopTour",e)}await this.uiLoading,await(null===(t=this.showcaseGui)||void 0===t?void 0:t.unloadUi().catch((e=>{Ye.error(e)}))),e.commandBinder.resetHooks(),this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}async loginToModel(e,t){Ye.info(`Loading model view: ${e}`);const i=this.forceLogin;await t.modelExists(e,{ignorePrefetch:i}).catch((async t=>{if(i&&(t instanceof Z._W||t instanceof Z.ZT))await this.showLoginScreen(e);else{if(!(t instanceof Z._W))throw t;await this.login()}}))}async loginToNote(e){this.forceLogin&&await this.showLoginScreen(e)}loadInitialAppModules(e,t){this.engine.loadModuleBySymbol({type:g.sA}),this.engine.loadModuleBySymbol({type:g.mL,config:{disableWheel:"0"===this.overrideParams.wh,pointerPreventDefault:!this.settingOverrides||!this.settingOverrides.hasOwnProperty("pointerPreventDefault")||!!this.settingOverrides.pointerPreventDefault,rootNode:this.container.getRootNode()}}),this.engine.getModuleBySymbol(g.aF).then((i=>{i.setOptions({gpu:t}),i.trackFeatures(...e,`${G.jh}:true`)}))}loadPrefetchedData(e){let t=this.inWorkshop?te.G.NONE:te.G.PRELOAD;const i=this.overrideParams.prefetch;i&&Object.values(te.G).includes(i)&&(t=i),this.prefetchCache=new ae.B({baseUrl:this.apiHost,prefetchPolicy:t,initialData:se.P.getQuery("GetModelPrefetch"),query:ee.GetModelPrefetch,variables:{modelId:e},mdsContext:this.mdsContext,anonymous:!0}),this.mdsContext.sharedCaches.add(this.prefetchCache)}async loadViewsAndStorage(e){await this.engine.loadModuleBySymbol({type:g.az,config:{viewId:e,baseUrl:this.apiHost,readonly:!0,inWorkshop:this.inWorkshop,modulesLoadedPromise:this.modulesLoadedPromise,mdsContext:this.mdsContext}});const t=(await this.engine.market.waitForData(N.P)).getBaseModelId();return this.engine.loadModuleBySymbol({type:g.T9,config:{baseUrl:this.apiHost,mdsContext:this.mdsContext}}),t}async loadAnalytics(){this.engine.loadModuleBySymbol({type:g.aF}),this.engine.loadModuleBySymbol({type:g.$c,config:{appName:this.settingOverrides&&this.settingOverrides.appName||"showcase",provider:this.overrideParams.analytics,apiQueue:this.apiQueue,analyticsQueue:this.analyticsQueue,overrideParams:this.overrideParams}})}loadInitialDataModules(e,t){this.engine.loadModuleBySymbol({type:_.K4,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.bj,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue,tiledMeshEnabled:e.Features[x.sz]}});const i=this.settingOverrides.disableMobileRedirect,n=!!this.openingTool||void 0,s=!!this.openingTool||void 0,a=!!this.openingTool||void 0;this.engine.loadModuleBySymbol({type:_.XT,config:{disabled:this.forceLogin,openingTool:!!this.openingTool,viewId:this.initialViewId,baseUrl:this.modelUrls.urlBase,quickstart:this.quickstart,editMode:t,allowPlayInIframe:!!i||"1"===this.overrideParams.playsInline,allowAutoPlay:!!i,hideTitle:s,hideBranding:a,hidePoweredBy:n}}),this.engine.loadModuleBySymbol({type:g.Pn,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.Wh,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:g.di,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}})}loadPanoControls(e){this.uiLoading=this.loadUI(!(e||this.forceLogin)),this.engine.loadModuleBySymbol({type:g.X7}),this.engine.loadModuleBySymbol({type:g.TY})}async loadSdkModule(e){const t=this.overrideParams.applicationKey||this.settingOverrides.applicationKey,n=this.engine,s=this.assetBasePath,a=this.overrideParams.localSdkInterface,r=async function(){if(a){const e={client:"showcase-sdk/client/24.12.3_webgl-1-g8ac1598427/sdk-client.js",sandbox:"showcase-sdk/sandbox/24.12.3_webgl-1-g8ac1598427/sandbox.html",interfaces:["showcase-sdk/interface/24.12.3_webgl-1-g8ac1598427/sdk-interface.js"]};return"2"===a&&e.interfaces.push("showcase-sdk/interface/24.12.3_webgl-1-g8ac1598427/edit-interface.js"),e}try{const t=await e.getAppKey("showcase","sdk");if(t)return t}catch(e){}return{client:`${s}sdk/sdk-client.js`,interfaces:[`${s}sdk/sdk-interface.js`],sandbox:`${s}sdk/sandbox.html`}}(),l={scene:this.sceneLoader};n.loadModuleBySymbol({type:o.S1,config:{applicationKey:t||"NO_APPLICATION_KEY_SUPPLIED",validationUrl:this.apiHost+"/api/v1/user/",getSdkConfig:r,setupExternalSdk:async e=>{const t=await Promise.resolve().then(i.bind(i,35802));await t.loadInterface(e,n,await r,l,await this.oEmbedConsumer,this.logLevel,this.apiHost)},queue:this.apiQueue,validateProvider:e=>this.validateSdkProvider(e)}})}loadUI(e){return Promise.all([this.engine.getModuleBySymbol(g.nu),this.engine.getModuleBySymbol(_.uH)]).then((([t,i])=>{this.guiModule=t,this.showcaseGui=i,e&&t.loadUi(i.loadUi)}))}async startAuthAndPolicyModules(e,t){this.loadSdkModule(e);const i=!!t,n=i?await this.doSdkAuth(t):{accepted:Promise.resolve()};if(n.token){J.u.setToken(n.token);try{await e.modelExists(this.initialViewId,{ignorePrefetch:!0})}catch(e){throw Ye.error(e),this.setError(e),e}}else try{await this.loginToModel(this.initialViewId,e)}catch(e){throw this.setError(e),e}if(await this.engine.loadModuleBySymbol({type:g.Uu,config:{baseUrl:this.modelUrls.urlBase,viewId:this.initialViewId,mdsContext:this.mdsContext}}),i)try{await n.accepted}catch(e){return void this.setError(Error("invalid provider specified"))}}async doSdkAuth(e){const t=this.engine,i=await t.getModuleBySymbol(g.Ll);i.show();const n=await t.getModuleBySymbol(o.S1),s=await n.getClientAuth(e);return i.hide(),s}async validateSdkProvider(e){const t=!!(await this.engine.market.waitForData(xe.L)).getPolicy(Be),i=Ve.get(e)===Be;return!e||!i||t&&i}async showLoginScreen(e){var t,i;return(await this.engine.loadModuleBySymbol({type:g.Vc,config:{loginUrl:(null===(t=this.apiConfig)||void 0===t?void 0:t.authn_login_url)||"",registerUrl:(null===(i=this.apiConfig)||void 0===i?void 0:i.account_register_url)||"",modelId:e,baseUrl:this.modelUrls.urlBase,container:this.container}})).loadUi()}login(){return new Promise((async e=>{const t=await this.engine.loadModuleBySymbol({type:_.q0,config:{modelId:this.initialViewId,baseUrl:this.modelUrls.urlBase,container:this.container}});this.engine.subscribe(L.l,(()=>{var i;t.hidePasswordScreen(),null===(i=this.prefetchCache)||void 0===i||i.clear(),e()})),t.showPasswordScreen()}))}setupOEmbedConsumer(e){const t={embedlyKey:e||this.apiConfig.embedly_key,instagramAppId:this.apiConfig.instagram_app_id,instagramClientToken:this.apiConfig.instagram_client_token,googleMapsApiKey:this.apiConfig.google_maps_key};this.oEmbedDeferred.resolve(new we(this.apiQueue,t))}}var Qe=i(36038);window.addEventListener("app-start",(e=>{var t,i;const s=function(e){const t=new n.A;t.diContainer.bindConstant(Ke.W8,new a.i);const i=new $e(!1,e);t.loadApplication(i,i.setError.bind(i));const s=function(e){class t{constructor(e){this.windowContext=e,this.connectedPromise=new Promise((e=>{this.connectedPromiseResolve=e}))}async connect(t,i={}){const n=await e.getModuleBySymbol(o.S1),s=Qe.p.connect(new qe(n,i),new Xe,this.windowContext);return s.then((e=>this.connectedPromiseResolve(e))),s}}let i=window;window!==window.top&&(i=window.parent);window.opener&&(i=window.opener);const n=new t(i);return window.MP_SDK=n,n}(t);return{engine:t,showcase:i,mpSdkPromise:s.connectedPromise}}(e.detail.config||{});null===(i=(t=e.detail).onStart)||void 0===i||i.call(t,{dispose:()=>{s.engine.dispose(),s.showcase.stop(),s.showcase.unload(s.engine)}}),s.mpSdkPromise.then((t=>{var i,n;null===(n=(i=e.detail).onSdkConnected)||void 0===n||n.call(i,{mpSdk:t})}))}),!0);class qe{constructor(e,t){this.sdk=e,this.options=t}connect(){return this.sdk.connect(`${window.location.protocol}//${window.location.host}`,this.options)}cancelConnecting(){}}class Xe{getFactory(e){return e.messengerFactory}}},35802:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LazyLoader:()=>Ye,loadInterface:()=>$e});var n=i(46785),s=i(80328),a=i(35223),o=i(9389),r=i(51196),l=i(19533),d=i(11116),c=i(90280),u=i(39591),h=i(70056),m=i(23847),p=i(41309),E=i(33020),S=i(71136),O=i(80262),g=i(21674),_=i(10995),T=i(13438),A=i(93605),v=i(71306),N=i(26197),L=i(38584),I=i(66172),f=i(86265),b=i(94221),R=i(1902),y=i(19974),M=i(8468),D=i(89998),k=i(7628),P=i(30411),w=i(2747),C=i(3524),x=i(79263),H=i(60477),U=i(8371),G=i(39425),F=i(49545),j=i(9321),B=i(521),V=i(54522),W=i(84252),z=i(48071),K=i(82110),Y=i(81866),$=i(3954),Q=i(48094),q=i(35596),X=i(45018),Z=i(53366),J=i(34040),ee=i(92590),te=i(81773),ie=i(23730),ne=i(68340),se=i(43066);const ae=function(e,t){return i=>async function(i){var n,s;const a={modelId:i},o=await e.query(se.GetViews,a,{}),r=null===(s=null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.model)||void 0===s?void 0:s.views;if(!r||!Array.isArray(r))return[];const l=[];for(const e of r){const i=t.deserialize(e);i&&l.push(i)}return l}(i)};var oe=i(50987),re=i(61334),le=i(93612),de=i(76484),ce=i(93227),ue=i(35062),he=i(33630),me=i(77028),pe=i(12165),Ee=i(28997),Se=i(49191),Oe=i(92812),ge=i(3032),_e=i(48064),Te=i(31617),Ae=i(29100),ve=i(32785),Ne=i(70814),Le=i(57092),Ie=i(98772),fe=i(81195),be=i(67796),Re=i(53360),ye=i(4234),Me=i(91902),De=i(87513),ke=i(89375),Pe=i(44901),we=i(68909),Ce=i(94325),xe=i(40859),He=i(71294),Ue=i(76863),Ge=i(64294),Fe=i(58421),je=i(21746),Be=i(73328),Ve=i(27140);const We=function(e,t){return i=>async function(i){var n,s;const a={modelId:i,includeDisabled:!0,includeLayers:!0},o=await e.query(Ve.GetMattertags,a,{}),r=null===(s=null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.model)||void 0===s?void 0:s.mattertags;if(!r||!Array.isArray(r))return[];const l=[];for(const e of r){const i=t.deserialize(e);if(i){const e=new we.Vector3,t=new we.Vector3;e.set(i.anchorPosition.x,i.anchorPosition.y,i.anchorPosition.z),t.set(i.stemVector.x,i.stemVector.y,i.stemVector.z),t.normalize(),l.push(i)}}return l}(i)};var ze=i(39404),Ke=i(73062);class Ye{constructor(){this.module=null,this.loaderReady=new He.i,this.loader=null}setLoader(e){this.loader||(this.loader=e,this.loaderReady.resolve())}async getModule(){if(this.module)return this.module;if(await this.loaderReady,this.loader&&(this.module=await this.loader()),this.module)return this.module;throw new Error("There was an error setting up the factory")}}async function $e(e,t,i,n,l,d,c){const u=new r.o;let se;try{if(Array.isArray(i.interfaces)){const e=i.interfaces.map((e=>u.load(e)));se=await Promise.all(e)}else{if(!i.interface)throw Error("No sdk interface found in config");se=[await u.load(i.interface)]}}catch(e){throw Error("Unable to fetch the sdk interface. The sdk will be disabled. "+e)}const ae={THREE:we,oEmbed:l},oe=(0,je.H)({baseUrl:c})(),ve={MpSdkAuthentication:h.u,RenderLayers:m.H,OptionsKey:p.Q$,Application:q.lg,AppPhase:q.Jj,AppPhaseChangeMessage:E.uv,CameraTransitionType:S.fl,SetMoveCameraOnViewChange:O.y,GetFloorIntersectCommand:g.X,StartMoveToFloorMessage:_.G,EndMoveToFloorMessage:T.P,MoveToFloorIndexCommand:A.q8,ShowAllFloorsCommand:A.$9,AddInMemoryLayerCommand:ie.k,SelectLayerCommand:ie.HA,SetActiveModelViewCommand:ie.uo,ToggleLayerCommand:ie.X_,MattertagMediaType:Ue.yg,RemoveMattertagCommand:v.l,CloseAnnotationCommand:Me.XK,TagDescriptionChunkType:N.q,TagLinkType:L.J,AddMattertagCommand:v.aw,EditMattertagCommand:v.rn,MattertagLinkOpenedMessage:I.Qn,ModelDataLoadedMessage:f.A,ModelColliderTarget:b.r,NavigateToSweepCommand:R.aj,ModelViewChangeCompleteMessage:ne.tj,MeasuringPhase:de.hb,SettingGetCommand:C.y,SettingUpdateCommand:x.h,PuckCollider:H.U,PinClickedMessage:y.oX,PinHoverChangeMessage:y.RG,PinHeadMesh:M.R,InstancedPinHeads:w.k,PinType:D.yY,OpenTagCommand:ke.Ki,CloseTagCommand:ke.KH,DockAnnotationCommand:Me.y8,ChangePinOpacityScaleCommand:k.Ct,MovePinCommand:k.Mx,UpdatePinCommand:k.gx,RemovePinCommand:k.z5,FocusOnPinInsideCommand:R.E4,SelectAnnotationCommand:Me.xo,SweepAlignmentType:U.c$,SweepPlacementType:U.EO,BeginMoveToSweepMessage:G.A,EndMoveToSweepMessage:F.A,SweepNeighborModifyCommand:Fe.WS,ToggleToolCommand:j.yU,Tools:B.S0,TourStartedMessage:V.zM,TourStoppedMessage:V.pT,TourEndedMessage:V.YH,TourSteppedMessage:V.n1,Color:W.Q,Vectors:z.B1,Viewmode:K.N3,CommandViewmode:Y.w5,ChangeViewmodeCommand:Y.S2,BeginSwitchViewmodeMessage:$.A,EndSwitchViewmodeMessage:Q.A,GetScreenPositionCommand:Te.R,ZoomInCommand:Ae.EG,ZoomResetCommand:Ae.i9,ZoomSetCommand:Ae.hd,SourceType:Ne.SourceType,sensorVolumes:{sphere:Le.I,box:Ie.M,cylinder:fe.z},TourState:be.Ci,MediaType:Re.zu,AddUserLayerCommand:ie.ff,SaveNewMattertagCommand:v.Ee,UploadAttachmentsCommand:ye.bI,EmbedMediaCommand:ye.Bd},He=Qe(t,oe),Be=function(e,t,i){const n=(async()=>(await e.getModuleBySymbol(a.qL)).getApi())(),r=e.getModuleBySymbol(a.qy);return{api:n,applicationData:e.market.waitForData(q.zH),cameraData:e.market.waitForData(X.M),canvasData:e.market.waitForData(Z.p),cursorController:e.getModuleBySymbol(a._v),deepLinks:e.getModuleBySymbol(o.r),locale:e.getModuleBySymbol(a.gS),externalR3FModule:e.getModuleBySymbol(a.kG),floorData:e.market.waitForData(J.q),floorViewData:e.market.waitForData(ee.X),labelData:e.market.waitForData(te.B),layersData:e.market.waitForData(re.P),mattertagData:e.market.waitForData(le.j),measurementModeData:e.market.waitForData(ce.s),modelData:e.market.waitForData(ue.q),pinViewData:e.market.waitForData(P.U),annotationsViewData:e.market.waitForData(De.o),tagsViewData:e.market.waitForData(Pe.r),plugin:e.getModuleBySymbol(a.N4),raycasterData:e.market.waitForData(he.$),roomData:e.market.waitForData(me.q),roomBoundData:e.market.waitForData(pe.A),settingsData:e.market.waitForData(Ee.o),sweepData:e.market.waitForData(Se.A),sweepViewData:e.market.waitForData(Oe.O),tourData:e.market.waitForData(ge.R),viewmodeData:e.market.waitForData(_e.X),appPhaseModule:e.getModuleBySymbol(s.WJ),attachmentsModule:r,commonControlsModule:e.getModuleBySymbol(a.X7),floorCasterModule:e.getModuleBySymbol(a.Xx),pinsModule:e.getModuleBySymbol(a.kd),meshQuery:e.getModuleBySymbol(a.PM),modelMeshModule:e.getModuleBySymbol(a.GR),meshData:e.market.waitForData(Ce.U),navigationModule:e.getModuleBySymbol(a.Kv),renderToTextureModule:e.getModuleBySymbol(a.kM),sceneModule:t.scene.getModule(),sensorModule:e.getModuleBySymbol(a.J$),settingsModule:e.getModuleBySymbol(s.ZF),tourControlsModule:e.getModuleBySymbol(a.Xf),webglRendererModule:e.getModuleBySymbol(a.M7),zoomControlModule:e.getModuleBySymbol(a.et),sweepTextureLoader:e.getModuleBySymbol(a.wY),pluginData:e.market.waitForData(xe.C),pluginConfigData:e.market.waitForData(Ge.Y),modelApiClient:Promise.resolve(i)}}(t,n,oe);for(const n of se){const s=new Ke.mc(t.diContainer);await n.setup(e,ae,ve,He,Be,t.getModuleBySymbol(a.qL),{sandboxPath:i.sandbox,logLevel:d},s)}}function Qe(e,t){return{loadImage:l.y,waitForUpdate:()=>e.after(n.R.End),waitForBegin:()=>e.after(n.R.Begin),subscribe:(t,i)=>e.subscribe(t,i),addBinding:e.commandBinder.addBinding.bind(e.commandBinder),issueCommand:e.commandBinder.issueCommand.bind(e.commandBinder),requestTarget:()=>e.commandBinder.issueCommand(new d.q6),getRenderLayer:t=>e.getRenderLayer(t),jpegAsBase64:ve.G8,encodeRenderTarget:ve.uz,getXmp:ve._h,getOrientedAngleTo:c.Vg,screenPositionToNDC:u.wc,ndcToWorldPosition:u.OG,worldToScreenPosition:u.bz,getTagsQuery:We(t,(0,Be.V)()),isMpFontId:e=>e in ze.J,getModelViewsQuery:ae(t,(0,oe.o)())}}},71958:(e,t,i)=>{"use strict";i.d(t,{K4:()=>c,L8:()=>o,T6:()=>u,XT:()=>a,_r:()=>h,bW:()=>n,bw:()=>r,q0:()=>d,uH:()=>s,ur:()=>l});const n=Symbol("error-ui"),s=Symbol("view-ui"),a=Symbol("init-ui"),o=Symbol("model-mesh-quality"),r=Symbol("quick-menus"),l=Symbol("hotkeys-sc"),d=Symbol("password"),c=Symbol("showcase-settings"),u=Symbol("showcase-start"),h=Symbol("webgl-context-loss")},82822:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>fs});var n=i(96540),s=i(5338),a=i(23205),o=i(54244),r=i(74848),l=i(33020),d=i(35596),c=i(9321),u=i(52385),h=i(32485),m=i.n(h),p=i(17139),E=i(99366),S=i(95226),O=i(34622),g=i(20084),_=i(94932),T=i(48794),A=i(38216),v=i(33044);function N({name:e,id:t,active:i,onChange:s}){const a=(0,n.useContext)(p.B),{analytics:o}=a,l=(0,n.useCallback)((()=>{const e=(t||"all").toLowerCase();o.trackGuiEvent(`visibility_toggled_${e}`),s(t,!i)}),[i,t,o,s]),d=(0,n.useCallback)((async e=>{l(),e.stopPropagation(),e.preventDefault()}),[l]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.$n,Object.assign({className:"visibility-p-button",label:e,variant:u.Ak.TERTIARY,size:u.Mp.SMALL,onClick:d,active:!1},{children:(0,r.jsx)("span",Object.assign({className:"toggle-wrapper visibility-p-toggle",onClick:e=>{l(),e.stopPropagation(),e.preventDefault()}},{children:(0,r.jsx)(v.l,{toggled:i,onToggle:l,enabled:!0,onOffLabel:!1,testId:"VisibilityPToggle"})}))}))})}var L=i(99224),I=i(3767);function f(e){const[t,i]=(0,n.useState)(e.visibilityData);(0,n.useEffect)((()=>{i(e.visibilityData)}),[e.visibilityData]);const s=(0,A.Y)(),{analytics:a}=(0,n.useContext)(p.B),o=Object.entries(t).length>1,l=(0,n.useCallback)((()=>{a.trackGuiEvent("toggle_plugin_visibility_controls")}),[a]),d=s.t(E.A.HELP_MORE_EXTRAS_A),c=m()(),h=()=>Object.values(t).every((e=>!!e)),S=(n,s)=>{const a=h();i((e=>Object.keys(e).reduce(((e,t)=>(e[t]=!a,e)),{}))),e.onToggle(Object.keys(t),!a)},O=(n,s)=>{i((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))),e.onToggle([n],!t[n])},g=Object.entries(t||{}).map((([e,t])=>(0,r.jsx)(N,{id:e,name:s.T(I.Q._COMMON_.TITLE,e),active:t,onChange:O},e)));return o&&g.push((0,r.jsx)(N,{id:null,name:s.t(E.A.PLUGIN_CHANGE_ALL),active:h(),isHeader:!0,onChange:S},"0-all")),g.push((0,r.jsxs)("div",Object.assign({className:"menu-header",onClick:e=>{e.stopPropagation(),e.preventDefault()}},{children:[(0,r.jsx)("span",Object.assign({className:"title"},{children:s.t(E.A.PLUGIN_VISIBILITY)})),(0,r.jsx)("span",Object.assign({className:"show-hide"},{children:s.t(E.A.PLUGIN_V_TOGGLE_LABEL)}))]}),"1-header")),g.reverse(),(0,r.jsx)(L.y,Object.assign({buttonClassName:c,onClick:l,variant:u.Ak.TERTIARY,ariaLabel:d,tooltip:d,icon:"visibility",theme:"overlay",menuClassName:"visibility-p-controls-menu",menuTheme:"dark",menuPlacement:"top"},{children:g}))}var b=i(60966),R=i(40859);const y=({className:e})=>{const[t,i]=(0,n.useState)({}),[s,a]=(0,n.useState)(!1),{market:o,messageBus:l,commandBinder:d}=(0,n.useContext)(p.B);(0,n.useEffect)((()=>{let e;return(async()=>{if(o){const t=await o.waitForData(R.C),n=()=>{i(t.visibilityData.deepCopy()),a(t.visibilityData.entries().length>0)};e=t.visibilityData.onChanged(n),n()}})(),()=>{null==e||e.cancel()}}),[o,l]);return s?(0,r.jsx)("div",Object.assign({className:m()("feature-p-selector",e)},{children:(0,r.jsx)(f,{visibilityData:t,onToggle:(e,t)=>{d.issueCommand(new b.J(e,t))}})})):null};var M=i(64530),D=i(83910),k=i(55649);function P(){const e=(0,A.Y)(),{commandBinder:t}=(0,n.useContext)(p.B),i=(0,n.useCallback)((()=>{t.issueCommand(new k.X(D.a.VR_SELECT,!0))}),[t]),s=e.t(E.A.VIEW_IN_VR);return(0,r.jsx)(u.$n,{className:"view-in-vr",onClick:i,ariaLabel:s,ariaHasPopup:"dialog",tooltip:s,tooltipOptions:{placement:"top"},icon:"vr",theme:"overlay",variant:u.Ak.TERTIARY})}var w=i(46086),C=i(55294),x=i(67796),H=i(77252),U=i(521),G=i(59839);var F;!function(e){e[e.flash=0]="flash",e[e.expanded=1]="expanded",e[e.collapsed=2]="collapsed"}(F||(F={}));var j=i(97825);var B=i(35652),V=i(75176);const W=new B.Ay("pause-button");class z extends n.Component{constructor(e){super(e),this.justEnded=!1,this.stopTour=async e=>{this.context.analytics.trackGuiEvent("tour_stopped");try{this.context.commandBinder.issueCommand(new V.IP)}catch(e){W.debug(e)}},this.state={justPaused:!1}}componentDidUpdate(){this.state.justPaused&&this.setState({justPaused:!1}),this.justEnded=!1}UNSAFE_componentWillReceiveProps(e){!this.props.tourPlaying||e.tourPlaying||this.justEnded||this.setState({justPaused:!0}),this.props.tourEnded&&(this.justEnded=!0)}render(){const{tourPlaying:e}=this.props,{justPaused:t}=this.state;return(0,r.jsx)("div",Object.assign({id:"pause-button",onClick:this.stopTour,onTouchMove:this.stopTour,onTouchStart:this.stopTour,"data-cy":"pause-button"},{children:!e&&(0,r.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iODQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNDIgMEMxOC43OSAwIDAgMTguNzkgMCA0MnMxOC43OSA0MiA0MiA0MiA0Mi0xOC43OSA0Mi00MlM2NS4yMSAwIDQyIDB6IiBmaWxsLW9wYWNpdHk9Ii4yNSIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTUxLjUgNTdoLTJhLjUuNSAwIDAxLS41LS41di0yOGEuNS41IDAgMDEuNS0uNWgyYS41LjUgMCAwMS41LjV2MjhhLjUuNSAwIDAxLS41LjV6TTM0LjUgNTdoLTJhLjUuNSAwIDAxLS41LS41di0yOGEuNS41IDAgMDEuNS0uNWgyYS41LjUgMCAwMS41LjV2MjhhLjUuNSAwIDAxLS41LjV6IiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",className:m()({justPaused:t}),alt:"","aria-hidden":"true"})}))}}z.contextType=p.B;var K=i(41309),Y=i(81866),$=i(8430),Q=i(74435),q=i(23819),X=i(11360),Z=i(67913);function J(){const{commandBinder:e,analytics:t}=(0,n.useContext)(p.B),i=(0,A.Y)(),s=(0,X.T)()===U.S0.NOTES,a=i.t(E.A.NOTES_MODE);return(0,r.jsx)(Z.Q,{className:"notes-mode-button",icon:"comment-outline",active:s,onClick:()=>{const i=!s;i&&t.trackGuiEvent("notes_mode_click_open"),e.issueCommand(new c.yU(U.S0.NOTES,i))},tooltip:a,nudgeDisabled:!0},"notes-mode-button")}var ee=i(56136),te=i(43788),ie=i(81456);function ne(){const{commandBinder:e,analytics:t}=(0,n.useContext)(p.B),i=(0,A.Y)(),s=(0,X.T)()===U.S0.MEASUREMENTS,a=i.t(E.A.TOOLS.MEASUREMENTS),o=i.t(E.A.MEASUREMENT_NUDGE_TITLE),l=i.t(E.A.MEASUREMENT_NUDGE_MESSAGE),d=ee.Y.MeasurementUserNudgeSeen,u=ie.Z,{show:h,dismiss:m}=(0,te.F)(te.m.Measurements);return(0,r.jsx)(Z.Q,{className:"measure-mode-button",icon:"tape-measure",active:s,onClick:()=>{const i=!s;i&&t.trackToolGuiEvent("measurements","measure_mode"),e.issueCommand(new c.yU(U.S0.MEASUREMENTS,i))},tooltip:a,nudgeFeatureKey:u,nudgeTitle:o,nudgeMessage:l,nudgeLocalStorage:d,onNudgeDismissed:()=>{t.trackGuiEvent("measurement_nudge_dismissed")},showTimeout:h,dismissTimeout:m},"measure-mode-button")}var se=i(98479),ae=i(55384),oe=i(75414),re=i(16603),le=i(84878),de=i(1423),ce=i(59695);function ue(){const e=(0,X.T)(),t=(0,oe.t)(),i=(0,re.i)(ae.n,!1),n=(0,le.U)(),s=(0,de.l)(),a=n&&!e&&s===x.cR.LEGACY,o=!e,l=!t||t===D.a.TERMS;return(0,r.jsx)("div",Object.assign({className:m()("footer-ui",{"footer-ui-shaded":a,disabled:!l})},{children:o&&(0,r.jsx)(ce.w,{openModal:t,disabled:!l,modelRatingEnabled:i})}))}var he=i(45387),me=i(59968),pe=i(4913),Ee=i(64784),Se=i(40725),Oe=i(38439);class ge extends n.Component{constructor(e,t){super(e,t),this.isUnmounting=!1,this.bindings=[],this.viewmodeToClass={[Y.w5.INSIDE]:"inside",[Y.w5.OUTSIDE]:"outside",[Y.w5.DOLLHOUSE]:"dollhouse",[Y.w5.FLOORPLAN]:"floorplan",[Y.w5.TRANSITIONING]:"transitioning"},this.checkShowReel=()=>{const{tourState:e}=this.props,{settings:t}=this.context,i=t.tryGetProperty(K.Q$.HighlightReel,!0),{reelSeen:n}=this.state;if(e.totalSteps>0&&i&&!n){const e=this.getHlStartupValue();switch(e){case F.expanded:case F.flash:(0,S.cb)(100).then((()=>this.showReel(e)))}}},this.showReel=e=>{this.isUnmounting||(this.context.commandBinder.issueCommand(new C.CQ(!0)),this.setState({reelSeen:!0}),e===F.flash&&(0,S.cb)(3e3).then(this.dismissReel))},this.dismissReel=()=>{this.isUnmounting||this.context.commandBinder.issueCommand(new C.CQ(!1))},this.onViewingControlsToggle=({show:e})=>{this.setState({autohide:!e})},this.updateViewportSize=e=>{this.isUnmounting||this.setState({viewportHeight:e.height})},this.isReelEnabled=()=>{if(this.props.tourMode===x.cR.STORIES)return!0;return this.state.viewportHeight>=400&&(0,H.cJ)(this.context.settings)},this.isPluginSystemEnabled=()=>{const{settings:e}=this.context;return e.tryGetProperty(Se.XX,!1)},this.isFloorsEnabled=()=>{const{settings:e}=this.context,t=e.tryGetProperty(M.p,!0),i=e.tryGetProperty(K.Q$.FloorSelect,!0);return t&&i},this.toggleShareModal=()=>{const e=this.props.openModal===D.a.SHARE;this.context.analytics.trackGuiEvent("click_share_button"),this.context.commandBinder.issueCommand(new k.X(D.a.SHARE,!e))},this.renderHighlightReel=()=>{const{openTool:e,tourState:t,tourMode:i}=this.props;if(e&&e!==U.S0.SEARCH)return null;const{tourPlaying:n,highlights:s,activeStep:a,transition:o}=t;return(0,r.jsx)(j.F,{openTool:e,tourMode:i,transition:o,activeStep:a,highlights:s,tourPlaying:n})},this.renderRightControls=()=>{const e=[],{vrEnabled:t,shareEnabled:i}=this.props,n=(0,$.YR)();e.push((0,r.jsx)("span",{className:"divider"},"divider_1"));const s=this.context.locale.t(E.A.SOCIAL_SHARING),a={placement:"top"};return i&&e.push((0,r.jsx)(u.$n,{onClick:this.toggleShareModal,ariaLabel:s,ariaHasPopup:"dialog",tooltip:s,tooltipOptions:a,icon:"share",style:(()=>{if(/[?&]nolink=1/.test(window.location.search)){return{display:"none"};}return {};})(),theme:"overlay",variant:u.Ak.TERTIARY},"toggle_share_modal")),t&&e.push((0,r.jsx)(P,{},"vr_modal_controls")),n&&e.push((0,r.jsx)(w.A,{},"fullscreen_controls")),e},this.state={viewportHeight:(0,Ee.J)(t).height,autohide:!1,reelSeen:!1},this.onResize=(0,Q.s)(this.updateViewportSize,250)}componentDidMount(){const{messageBus:e,market:t}=this.context;t.waitForData(pe.G).then((e=>{this.isUnmounting||this.bindings.push(e.onPropertyChanged("size",this.onResize))})),this.bindings.push(e.subscribe(G.Vk,this.onViewingControlsToggle)),this.checkShowReel()}componentWillUnmount(){this.isUnmounting=!0,this.bindings.map((e=>e.cancel()))}componentDidUpdate(e){!(e.tourState.totalSteps>0)&&this.props.tourState.totalSteps>0&&this.checkShowReel()}getHlStartupValue(){const{settings:e}=this.context;if(e.getOverrideParam("note","")||e.getOverrideParam("tag",""))return F.collapsed;const t=this.props.tourState.highlights.some((e=>e.snapshot.is360))?F.expanded:F.flash,i=e.getOverrideParam("hl",t);return(0,O.U)(F,i)?i:t}render(){const{measurementsModeEnabled:e,notesEnabled:t,openModal:i,openTool:n,showStoryTour:s,toolPanelLayout:a,tourMode:o,tourState:l,unaligned:d,viewmode:c}=this.props,{tourPlaying:u,tourEnded:h,totalSteps:p,activeStep:E,currentStep:S,highlights:O,hasTours:A}=l,{autohide:v,viewportHeight:N}=this.state,{settings:L}=this.context,I=this.viewmodeToClass[c]||"",f=0===p,b=o===x.cR.STORIES,R=N>=400,M=this.isReelEnabled()&&!f,k=n!==U.S0.MEASUREMENTS,P=this.isFloorsEnabled(),w=this.isPluginSystemEnabled(),C=t&&!d,H=e&&!d,G=L.tryGetProperty(ae.n,!1),F=u||s,j=v||!!i&&(i!==D.a.CTA||!b)&&!n,B={"modal-open":!!i,"tour-playing":u,"stories-tour-showing":s,autohide:j};return(0,r.jsxs)("div",Object.assign({id:"bottom-ui",className:m()("bottom-ui",B,I)},{children:[(0,r.jsx)(z,{tourPlaying:u,tourEnded:h}),(0,r.jsxs)(q.w,Object.assign({className:m()("bottom-controls",{"faded-out":j}),open:!j},{children:[(0,r.jsxs)(se.T,Object.assign({className:"controls"},{children:[(0,r.jsx)(_.f,{toolPanelLayout:a,activeTool:n,activeStep:E,currentStep:S,highlights:O||[],tourPlaying:u,tourMode:o,hideReel:!R,hasTours:A},"tour_controls"),(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(g.E,{unaligned:d,viewmode:c,className:"showcase-viewmode-controls"},"mode_controls")})),P&&(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(T.D,{viewmode:c,iconStyle:!0,className:"showcase-floor-controls"},"floor_controls")})),w&&(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(y,{viewmode:c,className:"showcase-plugin-controls"},"plugin_visibility_controls")})),C&&(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(J,{},"notes_mode_button")})),H&&(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(ne,{},"measurement_mode_button")})),(0,r.jsx)(q.w,Object.assign({className:"mode-controls",open:!F},{children:(0,r.jsx)(Oe.Y,{viewmode:c},"defurnish_mode_button")})),k&&this.renderRightControls()]})),G&&(0,r.jsx)(he.p,{})]})),M&&this.renderHighlightReel(),(0,r.jsx)(ue,{})]}))}}ge.contextType=p.B;const _e=(0,me.F)(ge);var Te=i(40270),Ae=i(63954),ve=i(57016),Ne=i(97137),Le=i(12038),Ie=i(39248),fe=i(45609),be=i(4222);var Re=i(52147);var ye=i(55285),Me=i(56638);const De=()=>{const e=(0,re.i)(Me.An,Me.Z1);return(0,n.useMemo)((()=>Object.assign({},Me.Z1,e)),[e])};var ke=i(96970),Pe=i(45021),we=i(43802);const Ce=()=>{const e=(0,we.Z)(ke.d,"applicationKeys",new Pe.X);return(0,re.i)(Me.nt,!1)&&0===e.length};var xe=i(81182),He=i(10718),Ue=i(30175),Ge=i(8209),Fe=i(33848),je=i(33324);function Be(e,t,i){const n=i===Ge.co;function s(e,t){return e.enabled&&((0,Fe.xF)(e)||(0,Fe.V6)(e)||(0,Fe.XF)(e)||t&&(0,Fe.AF)(e))}const a=e&&s(e,!0),o=t.slice().filter((e=>s(e,!1)));return!(!a||n||o.length<2)}function Ve(e,t,i){return!Be(e,t,i)&&!!e&&((0,Fe.xF)(e)||(0,Fe.V6)(e))}function We(){const e=(0,re.i)(je.rX,!1),t=(0,He.G)(),i=(0,Ue.h)(),s=(0,xe.b)(Ge.GB),[a,o]=(0,n.useState)(e&&Be(t,i,s));return(0,n.useEffect)((()=>(o(e&&Be(t,i,s)),()=>{})),[e,t,i,s]),a}function ze(){const e=(0,re.i)(je.rX,!1),t=(0,He.G)(),i=(0,Ue.h)(),s=(0,xe.b)(Ge.GB),[a,o]=(0,n.useState)(e&&Ve(t,i,s));return(0,n.useEffect)((()=>(o(e&&Ve(t,i,s)),()=>{})),[e,t,i,s]),a}var Ke=i(31200);function Ye(){const e=(0,re.i)(je.qD,!1),t=(0,Ke._)(),[i,s]=(0,n.useState)(e&&(null==t?void 0:t.getCurrentUserLayers())||[]);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){s(e&&(null==t?void 0:t.getCurrentUserLayers())||[])}const n=t.onCurrentLayersChanged(i);return i(),()=>n.cancel()}),[t,e]),i}var $e=i(47557);function Qe({toolName:e,showing:t=!0,attached:i=!1}){const{commandBinder:s,analytics:a}=(0,n.useContext)(p.B),o=(0,A.Y)(),l=(0,fe.M)(e),d=(0,X.T)();if(!l)return null;const{id:h,namePhraseKey:E,icon:S,analytic:O}=l,g=d===l.id,_=o.t(E),T=S.replace("icon-",""),v=i?"dark":"overlay";return(0,r.jsx)(q.w,Object.assign({open:t,className:m()("top-tool-button",{"faded-out":!t})},{children:(0,r.jsx)(u.$n,{onClick:()=>{s.issueCommand(new c.yU(h,!g)),a.trackToolGuiEvent(O,`click_${O}_button`,{interactionSource:"gui"})},tooltip:_,tooltipOptions:{placement:"bottom"},icon:T,theme:v,variant:u.Ak.FAB,active:g})}))}var qe=i(72909),Xe=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let Ze=class extends n.Component{constructor(){super(...arguments),this.handleTitleClick=async e=>{e.stopPropagation();const{commandBinder:t,analytics:i}=this.context;await t.issueCommand(new c.yU(U.S0.SUMMARY,!0)),t.issueCommand(new c.li(!1)),i.trackGuiEvent("click_model_title",{interactionSource:"gui"})}}getFilteredValue(e,t,i,n){return!this.context.settings.tryGetProperty(t,i)||n&&!this.props.brandingEnabled?"":e}render(){const{locale:e}=this.context,{className:t,modelDetails:i}=this.props,{name:n,presentedBy:s}=i,a=this.getFilteredValue(n,K.Q$.DetailsModelName,!0,!1),o=this.getFilteredValue(s,K.Q$.PresentedBy,!1,!0),l=o?`${e.t(E.A.PRESENTED_BY)}${o}`:"",d=`${a} ${l}`;return(0,r.jsx)("div",Object.assign({id:"model-title",onClick:this.handleTitleClick},{children:(0,r.jsx)(u.$n,Object.assign({id:"gui-name",variant:u.Ak.TERTIARY,onClick:this.handleTitleClick,className:m()(t,{"co-branded":!!l}),label:a,ariaLabel:d,theme:"dark",icon:"location",appendChildren:!1},{children:!!l&&(0,r.jsx)("div",Object.assign({className:"co-brand"},{children:(0,r.jsx)("span",Object.assign({className:"title",id:"cobrandTitle"},{children:l}))}))}))}))}};Ze.contextType=p.B,Ze=Xe([qe.A],Ze);const Je=Ze;var et=i(83636);var tt=i(50579);var it=i(33887),nt=i(23730),st=i(80262),at=i(42013);function ot({id:e,name:t,visible:i}){const{analytics:s,commandBinder:a}=(0,n.useContext)(p.B);return(0,r.jsx)(at.S,{className:"data-layer-menu-item",id:`layer-toggle-${e}`,label:t||"Untitled Layer",defaultChecked:i,onChange:t=>{const i=t.target;if(!i)return;const n=i.checked;a.issueCommand(new nt.X_(e,n)),s.trackToolGuiEvent("layers","layers_toggle_layer")},onClick:e=>{e.stopPropagation()}})}var rt=i(18559);const{SHOWCASE:lt}=E.A;function dt(){const e=function(){const e=(0,tt.h)(),[t,i]=(0,n.useState)((null==e?void 0:e.model.details.name)||"");return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((e=>{i(e.model.details.name)}));return i(e.model.details.name),()=>t.cancel()}),[e]),t}(),t=(0,He.G)(),i=(0,it.x)(null==t?void 0:t.id),s=Ye(),a=(0,rt.s)("viewer"),o=(0,Ue.h)({includeDefurnish:a}),l=We(),d=ze(),{analytics:c,commandBinder:h}=(0,n.useContext)(p.B),E=(0,A.Y)(),[S,O]=(0,n.useState)(!1),g=function(){const{mainDiv:e}=(0,n.useContext)(p.B);return e.getRootNode()instanceof ShadowRoot}(),_=async()=>{c.trackToolGuiEvent("layers","layers_view_goto_start_location"),await h.issueCommand(new et.W)},T=e=>{O(e)};if((0,n.useEffect)((()=>{if(!t||g)return;const{name:i}=t;let n;return n=(0,Fe.xF)(t)||(0,Fe.V6)(t)?`${e}: ${i}`:e,document.title=n,()=>{}}),[e,t,g]),!t)return null;const v=s.map((e=>{const{id:t,name:i,toggled:n}=e;return(0,r.jsx)(ot,{id:t,name:i,visible:n},t)})),N=E.t(lt.VIEWS.VIEW_SELECTOR_START_LOCATION_TOOLTIP),I=[];return o.forEach((e=>{const{id:i}=e,n=i===t.id,s=n&&v.length>0?v:void 0,a=s?"parent-menu-item":void 0;I.push((0,r.jsx)(ct,{view:e,active:n,className:a},i)),s&&I.push(...s)})),l&&o.length>1?(0,r.jsxs)("div",Object.assign({className:m()("views-layers-toggles","model-view-selector",{open:S})},{children:[(0,r.jsx)(u.$n,{className:"start-location-btn",icon:"start-location",variant:u.Ak.PRIMARY,size:u.Mp.SMALL,onClick:_,tooltip:N}),(0,r.jsx)(L.y,Object.assign({ariaLabel:i,menuClassName:"views-layers-menu",variant:u.Ak.PRIMARY,size:u.Mp.SMALL,label:i,onMenuToggled:T,caret:!0},{children:I}))]})):v.length>0?(0,r.jsx)("div",Object.assign({className:m()("views-layers-toggles",{open:S})},{children:(0,r.jsx)(L.y,Object.assign({ariaLabel:E.t(lt.LAYERS.TOGGLE_LAYERS),menuClassName:m()("views-layers-menu","data-layers-only-menu"),variant:u.Ak.PRIMARY,size:u.Mp.SMALL,label:i,onMenuToggled:T,caret:!0},{children:v}))})):d?(0,r.jsx)("div",Object.assign({className:"model-view-display"},{children:i})):null}function ct({view:e,active:t,className:i}){const{analytics:s,commandBinder:a}=(0,n.useContext)(p.B),{id:o}=e,l=(0,it.x)(o);return(0,r.jsx)(u.$n,{className:m()("view-name",i),label:l,size:u.Mp.SMALL,onClick:async()=>{s.trackToolGuiEvent("layers","layers_view_switch"),await a.issueCommand(new st.y(!1)),await a.issueCommand(new nt.uo(o)),await a.issueCommand(new st.y(!0))},active:t,variant:u.Ak.TERTIARY},o)}var ut=i(44246),ht=i(67307),mt=i(76956),pt=i(92238);const Et=i.p+"images/matterport-app-icon.svg",{SUBSCRIBER_PROMPT:St}=E.A.SHOWCASE,Ot=e=>{e.preventDefault()},gt=()=>{const e=(0,ut.s)(),t=(0,A.Y)(),{popupDelay:i}=De(),[s,a]=(0,n.useState)(0),[o,l]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!0),[h,m]=(0,ye.Mj)(Me.ZZ,!1);(0,mt.J)(pt.h,(e=>{if(o)return;const t=e.durationDollhouse+e.durationFloorplan+e.durationInside,n=s+t;ht.r.debug(`Check Visibility: ${n}/${i}ms, User has dismissed popup: ${h.toString()}`),n>=i&&!h&&l(!0),a(n)}));const p=(0,n.useCallback)((()=>{m(!0)}),[m]),E=(0,n.useCallback)((t=>{t.stopPropagation(),e.trackGuiEvent("subscriber_prompt_a_popup_dismissed"),p()}),[p,e]),S=(0,n.useCallback)((t=>{e.trackGuiEvent("subscriber_prompt_a_popup_cta_click"),window.open(Me.oZ,"_blank"),p()}),[p,e]);return(0,n.useEffect)((()=>(o&&d&&(e.trackGuiEvent("subscriber_prompt_a_popup_viewed"),c(!1)),()=>{})),[e,o,d]),o?(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-popup",onClick:S},{children:[(0,r.jsx)("img",{className:"matterport-app-icon",alt:"Matterport App Icon",src:Et,width:"48",height:"48"}),(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-body"},{children:[(0,r.jsx)("div",Object.assign({className:"h5 subscriber-prompt-heading"},{children:t.t(St.POPUP_CTA_HEADING)})),(0,r.jsx)("a",Object.assign({className:"link",target:"_blank",onClick:Ot,href:Me.oZ},{children:t.t(St.POPUP_CTA_LINK_TEXT)}))]})),(0,r.jsx)(u.$n,{icon:"close",onClick:E})]})):null};var _t=i(89481),Tt=(i(87072),i(84209)),At=i(62364),vt=i(87137),Nt=i(51772);const{ROOMS:Lt}=E.A.SHOWCASE;function It(e){const t=(0,A.Y)(),{additionalPanel:i}=e,s=(0,vt.a)()===d.Jj.PLAYING,a=function(){const e=(0,Nt.o)(),[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>{i(0===e.insideModeTransitionProgress())},n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}(),o=(0,At.v)()&&a&&s;if(!i&&!o)return null;const l=i?20:20.01,c=t.t(Lt.SETTINGS);return(0,r.jsxs)(_t.Q,Object.assign({icon:"settings",tooltip:c,theme:"overlay",variant:u.Ak.FAB,tooltipPlacement:"bottom",analytic:"showcase_settings_click",className:"showcase-settings",preventOverflow:{padding:l}},{children:[(0,r.jsx)(Tt.l,{allowImageryToggle:!0}),i]}))}function ft(e){const{brandingEnabled:t,modelDetails:i,tourPlaying:s,toolElements:a,toolSettings:o}=e,l=(0,Ae.A)(),d=(0,X.T)(),c=(0,oe.t)(),u=(0,me.K)(),h=function(){const e=(0,fe.M)(U.S0.SEARCH),t=(0,Ie.F)();return!!t&&(0,be.W)(t)&&!!e}(),p=(0,Le.h)(),E=function(){const e=We(),t=ze(),[i,s]=(0,n.useState)(e||t);return(0,n.useEffect)((()=>(s(e||t),()=>{})),[e,t]),i}(),S=function(){const e=Ye(),[t,i]=(0,n.useState)(e.length>0);return(0,n.useEffect)((()=>(i(e.length>0),()=>{})),[e.length]),t}(),O=E||S,g=function(){const e=(0,re.i)(Re.wx,!0),t=(0,re.i)(K.Q$.DetailsModelName,!0);return e&&t}()&&i,_=!!g&&!p&&(!O||l.width>Te.IU),T=(()=>{const e=Ce(),t=De(),i=(0,ye.QH)(Me.ZZ);return t.popupEnabled&&e&&!i})(),A=(0,ve.J)(),v=(0,Ne.O)();if(!A&&v===U.L$.BOTTOM_PANEL)return null;if(!(h||g||p||O))return null;const N=s||u,L=d||c||N,I=!_||N||d,f=!!i,b=!f||N;return(0,r.jsxs)(r.Fragment,{children:[T&&!d&&(0,r.jsx)(gt,{}),(0,r.jsxs)("div",Object.assign({className:"top-ui"},{children:[h&&(0,r.jsx)(q.w,Object.assign({open:!L,className:m()("top-ui-button",{"faded-out":L})},{children:(0,r.jsx)(Qe,{toolName:U.S0.SEARCH})})),(0,r.jsxs)("div",Object.assign({className:"child-container"},{children:[(0,r.jsx)(q.w,Object.assign({open:p&&!N,className:m()("floor-name-container",{collapsed:!p||L})},{children:(0,r.jsxs)("div",{children:[(0,r.jsx)($e.P,{}),h&&(0,r.jsx)("div",{className:"search-button-spacer"})]})})),g&&(0,r.jsx)(q.w,Object.assign({open:_&&!N&&!d,className:m()("title-bar-container",{collapsed:I})},{children:(0,r.jsx)(Je,{modelDetails:i,brandingEnabled:!!t})})),O&&(0,r.jsx)(q.w,Object.assign({open:O&&!L,className:m()("model-view-container",{collapsed:!O||L})},{children:(0,r.jsx)(dt,{})}))]})),(0,r.jsxs)(q.w,Object.assign({open:f,className:m()("top-ui-tool-container",{collapsed:b})},{children:[(0,r.jsx)(It,{additionalPanel:o}),a]}))]}))]})}var bt=i(79606),Rt=i(52775),yt=i(54522);class Mt extends n.Component{constructor(e){super(e),this.bindings=[],this.onLoadSpinnerMessage=e=>{this.state.loadSpinnerOn!==e.isOpen&&this.setState({loadSpinnerOn:e.isOpen})},this.onLoadSpinnerSuppressMessage=e=>{this.state.loadSpinnerSuppress!==e.suppress&&this.setState({loadSpinnerSuppress:e.suppress})},this.state={loadSpinnerOn:!1,loadSpinnerSuppress:!1}}componentDidMount(){this.bindings.push(this.context.messageBus.subscribe(Rt.XR,this.onLoadSpinnerMessage),this.context.messageBus.subscribe(Rt.c7,this.onLoadSpinnerSuppressMessage),this.context.messageBus.subscribe(yt.zM,(()=>this.setState({loadSpinnerSuppress:!0}))),this.context.messageBus.subscribe(yt.pT,(()=>this.setState({loadSpinnerSuppress:!1}))))}componentWillUnmount(){this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}render(){const{loadSpinnerOn:e,loadSpinnerSuppress:t}=this.state,i=e&&!t;return(0,r.jsx)("div",Object.assign({className:"overlay-ui"},{children:(0,r.jsx)(bt.A,{showing:i})}))}}Mt.contextType=p.B;var Dt=i(7440),kt=i(46610);function Pt(){const e=(0,tt.h)(),[t,i]=(0,n.useState)((null==e?void 0:e.model.details)||null);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){e&&i(e.model.details)}const n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}var wt=i(78380),Ct=i(99167),xt=i(13820),Ht=i(84370),Ut=i(43773),Gt=i(30737),Ft=i(95412);const jt={"en-US":"./terms/terms-en-US.html",es:"./terms/terms-es-MX.html",fr:"./terms/terms-fr-FR.html",de:"./terms/terms-de-DE.html",ru:"./terms/terms-ru-RU.html",ja:"./terms/terms-ja-JP.html","zh-CN":"./terms/terms-zh-CN.html","zh-TW":"./terms/terms-zh-TW.html",ko:"./terms/terms-ko-KR.html",nl:"./terms/terms-nl-NL.html",it:"./terms/terms-it-IT.html",pt:"./terms/terms-pt-BR.html"};class Bt extends n.Component{constructor(e,t){super(e,t),this.isUnmounting=!1,this.onScrollPositionChange=()=>{this.scrollbars&&this.setState({scrollClass:this.scrollbars.scrollPosition.vertical})},this.onClose=()=>{this.context.commandBinder.issueCommand(new k.X(D.a.TERMS,!1))},this.state={termsText:"",hideScrollbar:(0,Ut.c)((0,Ee.J)(t)),scrollClass:Ht.BB.None}}async componentDidMount(){const e=function(e){if((0,Ft.D)(e)&&e in jt)return jt[e]}(this.context.locale?this.context.locale.languageCode:Gt.Nm);let t="";if(e)try{t=await this.context.queue.get(e)}catch(e){t=this.context.locale.t(E.A.TERMS_FAIL)}else t=this.context.locale.t(E.A.TERMS_FAIL);this.context.market.waitForData(pe.G).then((e=>{this.isUnmounting||(this.resizeSubscription=e.onPropertyChanged("size",(e=>{this.setState({hideScrollbar:(0,Ut.c)(e)})})))})),window.requestAnimationFrame((()=>{this.isUnmounting||this.setState({termsText:t})}))}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.resizeSubscription)||void 0===e||e.cancel()}componentDidUpdate(e,t){this.state.termsText!==t.termsText&&(this.termsTextDiv.innerHTML=this.state.termsText,[].slice.call(this.termsTextDiv.querySelectorAll("a")).forEach((e=>{e.setAttribute("target","_blank"),e.classList.add("link")})))}render(){const{hideScrollbar:e,scrollClass:t}=this.state;return(0,r.jsxs)(xt.l,Object.assign({className:m()("terms-modal","full-modal",t),theme:"dark",onClose:this.onClose},{children:[(0,r.jsx)(Ct.J,{theme:"dark",onClose:this.onClose}),(0,r.jsx)("div",Object.assign({id:"terms-wrapper"},{children:(0,r.jsx)(wt.A,Object.assign({name:"terms",ref:e=>this.scrollbars=e,onScrollPositionChange:this.onScrollPositionChange,forceHidden:e},{children:(0,r.jsx)("div",{ref:e=>this.termsTextDiv=e,id:"terms-text"})}))}))]}))}}Bt.contextType=p.B;var Vt,Wt=i(92171),zt=i(87987),Kt=i(9389);!function(e){e.MAIL="mail",e.META="meta",e.PINTEREST="pinterest",e.LINKEDIN="linkedin",e.TWITTER="twitter",e.FACEBOOK="facebook",e.COPYLINK="copylink",e.NATIVE="native"}(Vt||(Vt={}));const{FACEBOOK:Yt,TWITTER:$t,MAIL:Qt,META:qt,PINTEREST:Xt,LINKEDIN:Zt,COPYLINK:Jt,NATIVE:ei}=Vt,ti={[Qt]:"em",[qt]:"mt",[Xt]:"pn",[Zt]:"ln",[$t]:"tw",[Yt]:"fb",[Jt]:"cp",[ei]:"os"},ii={[Yt]:{width:626,height:436},[$t]:{width:550,height:440},[Xt]:{width:750,height:749},[Zt]:{width:550,height:453},[Jt]:{},[Qt]:{},[qt]:{},[ei]:{}},ni=async(e,t=!0)=>{let i;const n=await e.engine.getModuleBySymbol(Kt.r),s=["ref","gclid","fbclid","cloudEdit","back","note","comment","apiHost","applicationKey","host","sdkKey","tag"],a=e=>!s.includes(e);return i=t?n.creator.createDeepLink({paramFilter:a}):n.creator.createLink({paramFilter:a}),i.searchParams.forEach(((e,t)=>{(s.includes(t)||0===t.indexOf("utm_"))&&i.searchParams.delete(t)})),decodeURIComponent(i.href)},si=e=>new URLSearchParams(e).toString(),ai=(e,t,i)=>{const n=e.replace("?",`?ref=${ti[Yt]}&`);return`http://www.facebook.com/sharer.php?${si({display:"popup",u:n})}`},oi=(e,t,i)=>{const n=e.replace("?",`?ref=${ti[$t]}&`),s={text:i.t(E.A.SHARED_MESSAGE_HASHTAG,{title:t,url:n,hashtag:"#Matterport"})};return`http://twitter.com/intent/tweet?${si(s)}`},ri=(e,t,i)=>{const n=e.replace("?",`?ref=${ti[Qt]}&`),s={subject:i.t(E.A.SHARED_TITLE,{title:t}),body:i.t(E.A.SHARED_MESSAGE,{title:t,url:n})};return`mailto:?${si(s)}`},li=e=>{const t=e.replace("?",`?ref=${ti[qt]}&qs=1&`);return`https://www.oculus.com/open_url/?${si({url:t})}`},di=(e,t,i,n)=>{const s={url:e.replace("?",`?ref=${ti[Xt]}&`),media:i,description:n.t(E.A.SHARED_TITLE,{title:t})};return`http://pinterest.com/pin/create/link/?${si(s)}`},ci=(e,t,i)=>{const n=e.replace("?",`?ref=${ti[Zt]}&`);return`https://www.linkedin.com/shareArticle?${si({mini:"true",url:n})}`},ui=(e,t,i,n)=>({[Yt]:ai(e),[$t]:oi(e,t,n),[Qt]:ri(e,t,n),[Xt]:di(e,t,i,n),[Zt]:ci(e),[qt]:li(e),[Jt]:e,[ei]:e});var hi=i(53135),mi=i(71608),pi=i(8456);const Ei=new B.Ay("vr-select");class Si extends n.Component{constructor(){super(...arguments),this.isUnmounting=!1,this.startWebXR=()=>{const{analytics:e,commandBinder:t}=this.context;t.issueCommand(new pi.X({type:"immersive-vr",features:["local-floor"]})).then((t=>{if(t){e.trackGuiEvent("vr_enter_app");const i=()=>{e.trackGuiEvent("vr_exit_app"),t.removeEventListener("end",i)};t.addEventListener("end",i)}else Ei.error("requestPresent Failed"),e.trackGuiEvent("vr_present_error"),this.updatePlatformState()})).catch((t=>{Ei.error("requestPresent Failed:",t),e.trackGuiEvent("vr_present_error")}))}}async componentDidMount(){var e;hi.A.apiExists()&&(null===(e=navigator.xr)||void 0===e||e.addEventListener("ondevicechange",this.updatePlatformState)),await this.updatePlatformState()}componentWillUnmount(){var e;this.isUnmounting=!0,hi.A.apiExists()&&(null===(e=navigator.xr)||void 0===e||e.removeEventListener("ondevicechange",this.updatePlatformState))}async updatePlatformState(){const{settings:e}=this.context,t=e.tryGetProperty(mi.F7,mi.qy),i=await(0,Wt.M1)(t);this.isUnmounting||(this.setState({vrPlatform:i}),Ei.debug(this.state))}}Si.contextType=p.B;var Oi=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},gi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const _i=new B.Ay("vr-select");let Ti=class extends Si{constructor(e){super(e),this.renderHeadsetHeader=()=>{const{locale:e}=this.context,{vrPlatform:t}=this.state;switch(t){case Wt.wc.unsupported:case Wt.wc.webxr:return(0,r.jsxs)("div",Object.assign({className:"headset-header dark"},{children:[(0,r.jsxs)("span",Object.assign({className:"headset-titles"},{children:[(0,r.jsx)("p",{children:e.t(E.A.VR_RECOMMENDED)}),(0,r.jsx)("p",{children:e.t(E.A.VR_QUEST)})]})),(0,r.jsx)("img",{className:"headset-quest",src:i(51),height:200,width:342})]}));default:return null}},this.renderBodyText=()=>{const{locale:e}=this.context,{vrPlatform:t}=this.state;switch(t){case Wt.wc.unsupported:case Wt.wc.webxr:return(0,r.jsx)("div",{children:(0,r.jsx)("p",{children:e.t(E.A.VR_SUPPORTS)})});default:return null}},this.getFooterButtons=()=>{const{locale:e}=this.context,{vrPlatform:t,metaLink:i}=this.state,n=[];n.push((0,r.jsx)(u.$n,{variant:u.Ak.SECONDARY,className:m()("button-inline","cancel"),onClick:this.onLearnMoreClicked,label:e.t(E.A.VR_LEARN_MORE_CAPS),size:"small"},"learn-more"));return t===Wt.wc.webxr?n.push((0,r.jsx)(u.$n,{variant:u.Ak.PRIMARY,onClick:this.onActionClicked,label:e.t(E.A.VR_ENTER),size:"small"},"enter-vr")):n.push((0,r.jsx)(u.$n,{variant:u.Ak.PRIMARY,disabled:!i,onClick:this.onMetaDeepLinkClicked,label:e.t(E.A.VR_META_LINK),size:"small"},"enter-vr")),(0,r.jsx)(zt.e,Object.assign({spacing:"small"},{children:n}))},this.closeModal=()=>{this.context.commandBinder.issueCommand(new k.X(D.a.VR_SELECT,!1))},this.onCloseClicked=()=>{this.context.analytics.trackGuiEvent("vr_modal_close"),this.closeModal()},this.onActionClicked=()=>{if(this.state.vrPlatform===Wt.wc.webxr)this.startWebXR(),this.closeModal()},this.onMetaDeepLinkClicked=()=>{this.state.metaLink&&(window.open(this.state.metaLink,"_blank"),this.context.analytics.trackGuiEvent("vr_meta_link"))},this.onLearnMoreClicked=()=>{window.open("https://support.matterport.com/hc/en-us/articles/360050098973-Exploring-Matterport-Spaces-in-VR-","_blank"),this.context.analytics.trackGuiEvent("vr_learn_more")},this.state={vrPlatform:null,metaLink:null}}async componentDidMount(){await super.componentDidMount(),this.updateUrls(),this.context.analytics.trackGuiEvent("click_vr_button")}render(){const{isMobile:e}=this.props,{locale:t}=this.context,i=m()("vr-modal","full-modal",{mobile:e,desktop:!e});return(0,r.jsxs)(xt.l,Object.assign({className:i,onClose:this.onCloseClicked},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:t.t(E.A.VR_VIEW_SPACE)})),(0,r.jsx)(Ct.J,{onClose:this.onCloseClicked})]})),this.renderHeadsetHeader(),(0,r.jsx)("div",Object.assign({className:"modal-body"},{children:this.renderBodyText()})),(0,r.jsx)("div",Object.assign({className:"modal-footer"},{children:this.getFooterButtons()}))]}))}async updateUrls(){const[e]=await Promise.all([ni(this.context,!0)]),t=ui(e,"","",this.context.locale);_i.debug("Social Share URLs, with current location",t),this.isUnmounting||this.setState({metaLink:t.meta})}};Ti=Oi([qe.A,gi("design:paramtypes",[Object])],Ti);const Ai=Ti;var vi=i(47952),Ni=i(53366);const Li=(0,vi.v)(Ni.p);var Ii=i(61051);class fi extends n.Component{render(){const{isMobile:e}=this.props,{locale:t}=this.context;return(0,r.jsx)("div",Object.assign({className:"cta"},{children:(0,r.jsx)("header",Object.assign({className:m()({mobile:e})},{children:t.t(e?E.A.MOBILE_SHORT_CTA:E.A.DESKTOP_SHORT_CTA)}))}))}}fi.contextType=p.B;var bi=i(88826),Ri=i(99817);const{HELP:yi}=E.A.SHOWCASE;class Mi extends n.Component{constructor(){super(...arguments),this.keys={header:E.A.DESKTOP_SHORT_CTA,tourHeader:E.A.CTA_TOUR_COMPLETE,tourSubhead:E.A.CTA_EXPLORE_SPACE,restartTour:E.A.CTA_RESTART_TOUR,share:E.A.CTA_SHARE,move:E.A.MOVE,inside:E.A.INSIDE,rotate:E.A.ROTATE,play:E.A.PLAY,zoom:E.A.ZOOM},this.clickInside={Icon:bi.z.mouse.clickInside,Label:this.keys.inside,FooterIcon:bi.z.keyboard.inside,Alt:yi.ALT_MOUSE_CLICKINSIDE,FooterAlt:yi.ALT_KEYBOARD_INSIDE},this.clickMove={Icon:bi.z.mouse.positionRight,Label:this.keys.move,FooterIcon:"",Alt:yi.ALT_MOUSE_POSITIONRIGHT},this.moveUpDown={Icon:bi.z.mouse.click_old,Label:this.keys.move,FooterIcon:bi.z.keyboard.upDown,Alt:yi.ALT_MOUSE_CLICK,FooterAlt:yi.ALT_KEYBOARD_UPDOWN},this.play={Icon:bi.z.mouse.play,Label:this.keys.play,FooterIcon:null,Alt:yi.ALT_MOUSE_PLAY},this.zoom={Icon:bi.z.mouse.zoom_old,Label:this.keys.zoom,FooterIcon:bi.z.keyboard.zoom,Alt:yi.ALT_MOUSE_ZOOM,FooterAlt:yi.ALT_KEYBOARD_ZOOM},this.dragMove={Icon:bi.z.mouse.positionLeft_old,Label:this.keys.move,FooterIcon:null,Alt:yi.ALT_MOUSE_POSITIONLEFT},this.dragRotateLeft={Icon:bi.z.mouse.dragLeft,Label:this.keys.rotate,FooterIcon:bi.z.keyboard.leftRight,Alt:yi.ALT_MOUSE_DRAGLEFT,FooterAlt:yi.ALT_KEYBOARD_LEFTRIGHT},this.dragRotateRight={Icon:bi.z.mouse.dragRight,Label:this.keys.rotate,FooterIcon:bi.z.keyboard.leftRight,Alt:yi.ALT_MOUSE_DRAGRIGHT,FooterAlt:yi.ALT_KEYBOARD_LEFTRIGHT},this.left=this.clickInside,this.center=this.clickMove,this.right=this.play,this.close=async()=>{const{commandBinder:e}=this.context;await e.issueCommand(new k.X(D.a.CTA,!1))},this.restartTour=async()=>{const{commandBinder:e}=this.context;this.context.analytics.trackGuiEvent("restart_highlights_from_cta"),this.close(),await e.issueCommand(new V.OR(0,!0)),e.issueCommand(new V.mT)},this.share=async()=>{const{commandBinder:e}=this.context;this.context.analytics.trackGuiEvent("click_share_button_from_cta"),this.close(),e.issueCommand(new k.X(D.a.SHARE,!0))}}render(){const{viewmode:e,isHelpCta:t,shareEnabled:i}=this.props,{locale:n}=this.context;this.configureViewmodeSpecifics(e);const s=n.t(t?this.keys.header:this.keys.tourHeader),a=t?"":n.t(this.keys.tourSubhead),o=n.t(E.A.CTA_SHARE),l=n.t(E.A.CTA_RESTART_TOUR);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",Object.assign({className:"cta"},{children:[(0,r.jsxs)("header",{children:[s,(0,r.jsx)("div",Object.assign({className:"subhead"},{children:a}))]}),(0,r.jsx)("img",{src:this.left.Icon,alt:n.t(this.left.Alt)}),(0,r.jsx)("h2",{children:n.t(this.left.Label)}),this.left.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.left.FooterIcon,alt:this.left.FooterAlt&&n.t(this.left.FooterAlt)}):(0,r.jsx)("span",{}),(0,r.jsx)("img",{src:this.center.Icon,alt:n.t(this.center.Alt)}),(0,r.jsx)("h2",{children:n.t(this.center.Label)}),this.center.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.center.FooterIcon,alt:this.center.FooterAlt&&n.t(this.center.FooterAlt)}):(0,r.jsx)("span",{}),(0,r.jsx)("img",{src:this.right.Icon,alt:n.t(this.right.Alt)}),(0,r.jsx)("h2",{children:n.t(this.right.Label)}),this.right.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.right.FooterIcon,alt:this.right.FooterAlt&&n.t(this.right.FooterAlt)}):(0,r.jsx)("span",{})]})),(0,r.jsx)(u.$n,{className:"close-button",theme:"dark",icon:"close",variant:u.Ak.TERTIARY,onClick:this.close}),!t&&(0,r.jsxs)("div",Object.assign({className:"footer"},{children:[(0,r.jsx)(u.$n,{onClick:this.restartTour,theme:"dark",label:l,icon:"restart",variant:u.Ak.TERTIARY}),i&&(0,r.jsx)(u.$n,{className:"share",theme:"dark",label:o,icon:"share2",variant:u.Ak.SECONDARY,onClick:this.share})]}))]})}configureViewmodeSpecifics(e){switch(e){case Y.w5.INSIDE:this.left=this.dragRotateLeft,this.center=this.moveUpDown,this.right=this.props.isHelpCta?this.play:this.zoom;break;case Y.w5.OUTSIDE:this.left=this.dragRotateLeft,this.center=this.clickMove,this.right=this.clickInside;break;case Y.w5.DOLLHOUSE:if(!this.isPeekaboo()){this.left=this.dragRotateLeft,this.center=this.clickMove,this.right=this.clickInside;break}case Y.w5.FLOORPLAN:this.left=this.dragMove,this.center=this.dragRotateRight,this.right=this.clickInside}}isPeekaboo(){return this.context.settings.tryGetProperty(Ri.gT,!1)}}Mi.contextType=p.B;const{HELP:Di}=E.A.SHOWCASE;class ki extends n.Component{constructor(){super(...arguments),this.keys={shortCta:E.A.MOBILE_SHORT_CTA,tourHeader:E.A.CTA_TOUR_COMPLETE,tourSubhead:E.A.CTA_EXPLORE_SPACE,move:E.A.MOVE,inside:E.A.INSIDE,rotate:E.A.ROTATE,play:E.A.PLAY,zoom:E.A.ZOOM},this.clickInside={Icon:bi.z.gesture.tapInside,Label:this.keys.inside,Alt:Di.ALT_GESTURE_TAPINSIDE},this.clickMove={Icon:bi.z.gesture.tap_old,Label:this.keys.move,Alt:Di.ALT_GESTURE_TAP},this.dragRotate={Icon:bi.z.gesture.drag_old,Label:this.keys.rotate,Alt:Di.ALT_GESTURE_DRAG},this.dragMove={Icon:bi.z.gesture.position,Label:this.keys.move,Alt:Di.ALT_GESTURE_POSITION},this.play={Icon:bi.z.gesture.play,Label:this.keys.play,Alt:Di.ALT_GESTURE_PLAY},this.zoom={Icon:bi.z.gesture.pinch_old,Label:this.keys.zoom,Alt:Di.ALT_GESTURE_PINCH},this.left=this.dragRotate,this.center=this.clickInside,this.right=this.play}render(){const{viewmode:e,isHelpCta:t}=this.props,{locale:i}=this.context;this.configureViewmodeSpecifics(e);const n=i.t(t?this.keys.shortCta:this.keys.tourHeader),s=t?"":i.t(this.keys.tourSubhead);return(0,r.jsxs)("div",Object.assign({className:"cta mobile"},{children:[(0,r.jsxs)("header",Object.assign({className:"mobile"},{children:[n,(0,r.jsx)("div",Object.assign({className:"subhead"},{children:s}))]})),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.left.Label)})),(0,r.jsx)("img",{src:this.left.Icon,alt:i.t(this.left.Alt)}),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.center.Label)})),(0,r.jsx)("img",{src:this.center.Icon,alt:i.t(this.center.Alt)}),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.right.Label)})),(0,r.jsx)("img",{src:this.right.Icon,alt:i.t(this.right.Alt)})]}))}configureViewmodeSpecifics(e){switch(e){case Y.w5.INSIDE:this.left=this.dragRotate,this.center=this.clickMove,this.right=this.props.isHelpCta?this.zoom:this.play;break;case Y.w5.DOLLHOUSE:case Y.w5.OUTSIDE:this.left=this.dragRotate,this.center=this.clickInside,this.right=this.props.isHelpCta?this.zoom:this.play;break;case Y.w5.FLOORPLAN:this.left=this.dragMove,this.center=this.clickInside,this.right=this.props.isHelpCta?this.zoom:this.play}}}var Pi;ki.contextType=p.B,function(e){e[e.NONE=0]="NONE",e[e.LARGE=1]="LARGE",e[e.SMALL=2]="SMALL"}(Pi||(Pi={}));const wi="cta-seen";function Ci(e){const{commandBinder:t,settings:i}=(0,n.useContext)(p.B),{touchDevice:s,viewmode:a,shareEnabled:o}=e,l=(0,Ii.u)(),d=-1!==(0,xe.b)("ts",-1),c=(0,xe.b)("tourcta",1),u=(0,O.U)(Pi,c)?c:Pi.LARGE,h=!!u&&l>0,[E,S]=(0,n.useState)(h&&d),g=(0,xe.b)("help",0),_=(0,O.U)(Pi,g)?g:Pi.NONE,T=(0,re.i)(wi,!1),A=T?Pi.NONE:E?u:_,[v,N]=(0,n.useState)(A),L=(0,oe.t)(),[I,f]=(0,n.useState)(L===D.a.CTA),b=()=>{t.issueCommand(new k.X(D.a.CTA,!1)),f(!1)},R=function(){const e=Li();return(null==e?void 0:e.canvas)||null}();if((0,n.useEffect)((()=>(R&&(R.addEventListener("mousedown",b),R.addEventListener("pointerdown",b),R.addEventListener("touchstart",b)),()=>{R&&(R.removeEventListener("mousedown",b),R.removeEventListener("pointerdown",b),R.removeEventListener("touchstart",b))})),[]),(0,mt.J)(yt.YH,(()=>{!T&&h&&(S(!0),N(u),t.issueCommand(new k.X(D.a.CTA,!0)))})),(0,n.useEffect)((()=>{const e=L===D.a.CTA;f(e),e&&i.setProperty(wi,!0)}),[L]),v===Pi.NONE)return null;const y=v===Pi.SMALL,M=!y&&!s,P=!y&&s,w={mobile:s,small:y,helpCta:!E};return(0,r.jsx)(q.w,Object.assign({open:I,className:m()("modal-background","dark-modal-background",{open:I})},{children:(0,r.jsxs)("div",Object.assign({className:m()("modal","ctaContainer",w)},{children:[y&&(0,r.jsx)(fi,{isMobile:s}),M&&(0,r.jsx)(Mi,{viewmode:a,isHelpCta:!E,shareEnabled:o}),P&&(0,r.jsx)(ki,{viewmode:a,isHelpCta:!E,shareEnabled:o})]}))}))}var xi,Hi,Ui,Gi,Fi,ji;!function(e){e[e.navigation=0]="navigation",e[e.moreHelp=1]="moreHelp"}(xi||(xi={})),function(e){e.left="left",e.middle="middle",e.right="right"}(Hi||(Hi={})),function(e){e.topInfo="topInfo",e.bigImage="bigImage",e.bottomInfo="bottomInfo",e.keyboard="keyboard"}(Ui||(Ui={})),function(e){e.desktop="desktop",e.mobile="mobile"}(Gi||(Gi={})),function(e){e.hlr="hlr",e.dollhouse="dollhouse",e.floors="floors",e.mattertag="mattertag",e.floorplan="floorplan",e.tour="tour",e.inside="inside",e.vr="vr",e.view360="view360",e.fullscreen="fullscreen"}(Fi||(Fi={})),function(e){e.landscape="landscape",e.portrait="portrait"}(ji||(ji={}));const{HELP:Bi}=E.A.SHOWCASE,Vi={[Gi.desktop]:{[Hi.left]:{[Ui.topInfo]:"HELP_DESKTOP_PANORAMA_1A",[Ui.bottomInfo]:"HELP_DESKTOP_PANORAMA_1B",[Ui.bigImage]:{img:bi.z.mouse.dragLeft,alt:Bi.ALT_MOUSE_DRAGLEFT},[Ui.keyboard]:{img:bi.z.keyboard.leftRight,alt:Bi.ALT_KEYBOARD_LEFTRIGHT}},[Hi.middle]:{[Ui.topInfo]:"HELP_DESKTOP_PANORAMA_2A",[Ui.bottomInfo]:"HELP_DESKTOP_PANORAMA_2B",[Ui.bigImage]:{img:bi.z.mouse.click_old,alt:Bi.ALT_MOUSE_CLICK},[Ui.keyboard]:{img:bi.z.keyboard.upDown,alt:Bi.ALT_KEYBOARD_UPDOWN}},[Hi.right]:{[Ui.topInfo]:"HELP_DESKTOP_PANORAMA_3A",[Ui.bottomInfo]:"HELP_DESKTOP_PANORAMA_3B",[Ui.bigImage]:{img:bi.z.mouse.zoom_old,alt:Bi.ALT_MOUSE_ZOOM},[Ui.keyboard]:{img:bi.z.keyboard.zoom,alt:Bi.ALT_KEYBOARD_ZOOM}}},[Gi.mobile]:{[Hi.left]:{[Ui.topInfo]:"HELP_MOBILE_PANORAMA_1",[Ui.bigImage]:{img:bi.z.gesture.drag_old,alt:Bi.ALT_GESTURE_DRAG}},[Hi.middle]:{[Ui.topInfo]:"HELP_MOBILE_PANORAMA_2",[Ui.bigImage]:{img:bi.z.gesture.tap_old,alt:Bi.ALT_GESTURE_TAP}},[Hi.right]:{[Ui.topInfo]:"HELP_MOBILE_3",[Ui.bigImage]:{img:bi.z.gesture.pinch_old,alt:Bi.ALT_GESTURE_PINCH}}}},Wi={[Gi.desktop]:{[Hi.left]:{[Ui.topInfo]:"HELP_DESKTOP_DOLLHOUSE_1A",[Ui.bottomInfo]:"HELP_DESKTOP_DOLLHOUSE_1B",[Ui.bigImage]:{img:bi.z.mouse.dragLeft,alt:Bi.ALT_MOUSE_DRAGLEFT},[Ui.keyboard]:{img:bi.z.keyboard.all,alt:Bi.ALT_KEYBOARD_ALL}},[Hi.middle]:{[Ui.topInfo]:"HELP_DESKTOP_DOLLHOUSE_2A",[Ui.bigImage]:{img:bi.z.mouse.positionRight,alt:Bi.ALT_MOUSE_POSITIONRIGHT}},[Hi.right]:{[Ui.topInfo]:"HELP_DESKTOP_DOLLHOUSE_3A",[Ui.bigImage]:{img:bi.z.mouse.zoom_old,alt:Bi.ALT_MOUSE_ZOOM}}},[Gi.mobile]:{[Hi.left]:{[Ui.topInfo]:"HELP_MOBILE_DOLLHOUSE_1",[Ui.bigImage]:{img:bi.z.gesture.drag_old,alt:Bi.ALT_GESTURE_DRAG}},[Hi.middle]:{[Ui.topInfo]:"HELP_MOBILE_DOLLHOUSE_2",[Ui.bigImage]:{img:bi.z.gesture.positionTwoFinger,alt:Bi.ALT_GESTURE_POSITIONTWOFINGER}},[Hi.right]:{[Ui.topInfo]:"HELP_MOBILE_3",[Ui.bigImage]:{img:bi.z.gesture.pinch_old,alt:Bi.ALT_GESTURE_PINCH}}}},zi={[Gi.desktop]:{[Hi.left]:{[Ui.topInfo]:"HELP_DESKTOP_FLOORPLAN_1A",[Ui.bigImage]:{img:bi.z.mouse.positionLeft_old,alt:Bi.ALT_MOUSE_POSITIONLEFT}},[Hi.middle]:{[Ui.topInfo]:"HELP_DESKTOP_FLOORPLAN_2A",[Ui.bottomInfo]:"HELP_DESKTOP_FLOORPLAN_2B",[Ui.bigImage]:{img:bi.z.mouse.dragRight,alt:Bi.ALT_MOUSE_DRAGRIGHT},[Ui.keyboard]:{img:bi.z.keyboard.leftRight,alt:Bi.ALT_KEYBOARD_LEFTRIGHT}},[Hi.right]:{[Ui.topInfo]:"HELP_DESKTOP_FLOORPLAN_3A",[Ui.bottomInfo]:"HELP_DESKTOP_FLOORPLAN_3B",[Ui.bigImage]:{img:bi.z.mouse.zoom_old,alt:Bi.ALT_MOUSE_ZOOM},[Ui.keyboard]:{img:bi.z.keyboard.upDown,alt:Bi.ALT_KEYBOARD_UPDOWN}}},[Gi.mobile]:{[Hi.left]:{[Ui.topInfo]:"HELP_MOBILE_FLOORPLAN_1",[Ui.bigImage]:{img:bi.z.gesture.position,alt:Bi.ALT_GESTURE_POSITION}},[Hi.middle]:{[Ui.topInfo]:"HELP_MOBILE_FLOORPLAN_2",[Ui.bigImage]:{img:bi.z.gesture.dragTwoFinger,alt:Bi.ALT_GESTURE_DRAGTWOFINGER}},[Hi.right]:{[Ui.topInfo]:"HELP_MOBILE_3",[Ui.bigImage]:{img:bi.z.gesture.pinch_old,alt:Bi.ALT_GESTURE_PINCH}}}},Ki=JSON.parse(JSON.stringify(Vi));Ki.desktop.middle={[Ui.topInfo]:"HELP_DESKTOP_360_2A",[Ui.bottomInfo]:"HELP_DESKTOP_360_2B",[Ui.bigImage]:{img:bi.z.mouse.clickInside,alt:Bi.ALT_MOUSE_CLICKINSIDE},[Ui.keyboard]:{img:bi.z.keyboard.inside,alt:Bi.ALT_KEYBOARD_INSIDE}},Ki.mobile.middle={[Ui.topInfo]:"HELP_MOBILE_360_2",[Ui.bigImage]:{img:bi.z.gesture.tapInside,alt:Bi.ALT_GESTURE_TAPINSIDE}};const Yi={INSIDE:Vi,OUTSIDE:Ki,FLOORPLAN:zi,DOLLHOUSE:Wi};var $i=i(29600),Qi=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},qi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Xi=class extends n.Component{constructor(e){super(e),this.state={overflow:!1}}UNSAFE_componentWillReceiveProps(e){(this.navigationDiv&&this.navigationDiv.clientHeight||0)/(this.navigationDiv.parentElement&&this.navigationDiv.parentElement.clientHeight||1)>.7&&this.setState({overflow:!0})}getAssetObj(e){switch(e){case this.props.Modes.DOLLHOUSE:return Yi.DOLLHOUSE[this.props.device];case this.props.Modes.FLOORPLAN:return Yi.FLOORPLAN[this.props.device];case this.props.Modes.OUTSIDE:return Yi.OUTSIDE[this.props.device];case this.props.Modes.INSIDE:default:return Yi.INSIDE[this.props.device]}}buildRows(){const e=this.getAssetObj(this.props.viewmode),t=[];for(const i in Ui){const n=[],s=[];for(const t in Hi)if(n.push(this.wrapAsset(e,t,i,!1)),i===Ui.bigImage){const n=!e[t][Ui.bottomInfo];s.push((0,r.jsx)("div",Object.assign({className:m()(t,"column",{noDivider:n})},{children:(0,r.jsx)("hr",{})}),`${i}_${t}_divider_row`))}t.push((0,r.jsx)("div",Object.assign({className:m()(i,"row")},{children:n}),`${i}_vertical_row`))}return t}buildMobilePortrait(){const e=this.getAssetObj(this.props.viewmode),t=[];for(const i in e)for(const n in e[i])t.push(this.wrapAsset(e,i,n,!0));return t}wrapAsset(e,t,i,n){const s=e[t][i],a=i===Ui.bigImage||i===Ui.keyboard,o=s?s.img:void 0,l=s&&s.alt?this.context.locale.t(s.alt):void 0,d=(0,r.jsx)("img",{src:o,alt:l});return(0,r.jsx)("div",Object.assign({className:n?m()(i,"row"):m()(t,"column")},{children:s&&a?d:s&&this.context.locale.t(s)}),`wrapped_asset_${t}_${i}`)}render(){const e=this.props.device===Gi.mobile&&this.props.orientation===$i.U.PORTRAIT,t=m()("navigation_old",this.props.viewmode,{small:this.state.overflow});return(0,r.jsx)("div",Object.assign({className:t,ref:e=>{this.navigationDiv=e}},{children:e?(0,r.jsx)(wt.A,Object.assign({name:"navigation",forceHidden:!1},{children:(0,r.jsx)("div",Object.assign({className:"nav-wrapper"},{children:this.buildMobilePortrait()}))})):this.buildRows()}))}};Xi.contextType=p.B,Xi=Qi([qe.A,qi("design:paramtypes",[Object])],Xi);const Zi=Xi;var Ji=i(34611);const en=E.A.SHOWCASE.HELP,tn={[Gi.desktop]:{title:en.NAV_DOLLHOUSE_TITLE,items:[{iconSrc:bi.z.mouse.positionLeft,iconAlt:en.ALT_MOUSE_POSITIONLEFT,header:en.DESKTOP_DOLLHOUSE_PAN_HEADER,text:en.DESKTOP_DOLLHOUSE_PAN},{iconSrc:bi.z.mouse.zoom,iconAlt:en.ALT_MOUSE_ZOOM,header:en.DESKTOP_DOLLHOUSE_ZOOM_HEADER,text:en.DESKTOP_DOLLHOUSE_ZOOM},{iconSrc:bi.z.mouse.dragRightHoriz,iconAlt:en.ALT_MOUSE_DRAGRIGHT_HORIZ,header:en.DESKTOP_DOLLHOUSE_ROTATE_HEADER,text:en.DESKTOP_DOLLHOUSE_ROTATE},{iconSrc:bi.z.mouse.dragRightVert,iconAlt:en.ALT_MOUSE_DRAGRIGHT_VERT,header:en.DESKTOP_DOLLHOUSE_2D3D_HEADER,text:en.DESKTOP_DOLLHOUSE_2D3D,badge:E.A.GENERIC.NEW_MESSAGE}]},[Gi.mobile]:{title:en.NAV_DOLLHOUSE_TITLE,items:[{iconSrc:bi.z.gesture.position,iconAlt:en.ALT_GESTURE_POSITION,text:en.TOUCH_DOLLHOUSE_PAN},{iconSrc:bi.z.gesture.dragTwoFingerVert,iconAlt:en.ALT_GESTURE_DRAGTWOFINGER_VERT,text:en.TOUCH_DOLLHOUSE_2D3D,badge:E.A.GENERIC.NEW_MESSAGE},{iconSrc:bi.z.gesture.dragTwoFingerRotate,iconAlt:en.ALT_GESTURE_TOUCH_ROTATE,text:en.TOUCH_DOLLHOUSE_ROTATE,badge:E.A.GENERIC.NEW_MESSAGE},{iconSrc:bi.z.gesture.pinch,iconAlt:en.ALT_GESTURE_PINCH,text:en.TOUCH_DOLLHOUSE_ZOOM}]}},nn={[Gi.desktop]:Object.assign(Object.assign({},tn[Gi.desktop]),{title:en.NAV_FLOORPLAN_TITLE}),[Gi.mobile]:Object.assign(Object.assign({},tn[Gi.mobile]),{title:en.NAV_FLOORPLAN_TITLE})},sn={[Gi.desktop]:{title:en.NAV_INSIDE_TITLE,items:[{iconSrc:bi.z.mouse.positionLeft,iconAlt:en.ALT_MOUSE_POSITIONLEFT,header:en.DESKTOP_INSIDE_LOOK_HEADER,text:en.DESKTOP_INSIDE_LOOK},{iconSrc:bi.z.mouse.zoom,iconAlt:en.ALT_MOUSE_ZOOM,header:en.DESKTOP_INSIDE_ZOOM_HEADER,text:en.DESKTOP_INSIDE_ZOOM},{iconSrc:bi.z.mouse.click,iconAlt:en.ALT_MOUSE_CLICK,header:en.DESKTOP_INSIDE_MOVE_HEADER,text:en.DESKTOP_INSIDE_MOVE}]},[Gi.mobile]:{title:en.NAV_INSIDE_TITLE,items:[{iconSrc:bi.z.gesture.position,iconAlt:en.ALT_GESTURE_POSITION,text:en.TOUCH_INSIDE_LOOK},{iconSrc:bi.z.gesture.tap,iconAlt:en.ALT_GESTURE_TAP,text:en.TOUCH_INSIDE_MOVE},{iconSrc:bi.z.gesture.pinch,iconAlt:en.ALT_GESTURE_PINCH,text:en.TOUCH_INSIDE_ZOOM}]}},an=(0,n.memo)((({viewmode:e,device:t})=>{const i=(0,A.Y)(),n=(e===Y.w5.FLOORPLAN?nn:e===Y.w5.DOLLHOUSE?tn:sn)[t];return(0,r.jsx)("div",Object.assign({className:m()("navigation",t)},{children:(0,r.jsx)(Ji.H,Object.assign({disabled:!1,hideThumb:!1},{children:(0,r.jsxs)("section",{children:[n.title&&(0,r.jsx)("h2",{children:i.t(n.title)}),(0,r.jsxs)("ul",{children:[n.items.map((({iconSrc:e,iconAlt:t,header:n,text:s,badge:a},o)=>(0,r.jsxs)("li",{children:[(0,r.jsx)("img",{src:e,alt:i.t(t)}),(n||a)&&(0,r.jsxs)("h3",{children:[n&&i.t(n)+" ",a&&(0,r.jsx)("span",Object.assign({className:"help_badge"},{children:i.t(a)}))]}),(0,r.jsx)("div",{children:i.t(s)})]},o))),n.items.length%2?(0,r.jsx)("li",{children:(0,r.jsx)("div",{style:{width:440}})}):null]})]})}))}))})),on={[Fi.hlr]:{[Ui.topInfo]:"HELP_MORE_HLR_A",[Ui.bigImage]:"icon-hlr",[Ui.bottomInfo]:"HELP_DESKTOP_MORE_HLR_B"},[Fi.dollhouse]:{[Ui.topInfo]:"HELP_MORE_DOLLHOUSE_A",[Ui.bigImage]:"icon-dollhouse",[Ui.bottomInfo]:"HELP_MOBILE_MORE_DOLLHOUSE_B"},[Fi.floors]:{[Ui.topInfo]:"HELP_MORE_FLOORS_A",[Ui.bigImage]:"icon-floor-controls",[Ui.bottomInfo]:"HELP_DESKTOP_MORE_FLOORS_B"},[Fi.mattertag]:{[Ui.topInfo]:"HELP_MORE_MATTERTAG_A",[Ui.bigImage]:bi.z.moreHelp.mattertag,[Ui.bottomInfo]:"HELP_MOBILE_MORE_MATTERTAG_B"},[Fi.tour]:{[Ui.topInfo]:"HELP_MORE_TOUR_A",[Ui.bigImage]:"icon-play",[Ui.bottomInfo]:"HELP_DESKTOP_MORE_TOUR_B"},[Fi.inside]:{[Ui.topInfo]:"HELP_MORE_INSIDE_A",[Ui.bigImage]:"icon-panorama",[Ui.bottomInfo]:"HELP_MOBILE_MORE_INSIDE_B"},[Fi.vr]:{[Ui.topInfo]:"HELP_MORE_VR_A",[Ui.bigImage]:"icon-vr",[Ui.bottomInfo]:"HELP_MOBILE_MORE_VR_B"},[Fi.view360]:{[Ui.topInfo]:"HELP_MORE_360_A",[Ui.bigImage]:bi.z.moreHelp.view360,[Ui.bottomInfo]:"HELP_MOBILE_MORE_360_B"},[Fi.floorplan]:{[Ui.topInfo]:"HELP_MORE_FLOORPLAN_A",[Ui.bigImage]:"icon-floorplan",[Ui.bottomInfo]:"HELP_MOBILE_FLOORPLAN_B"}},rn=JSON.parse(JSON.stringify(on));rn[Fi.fullscreen]={[Ui.topInfo]:"HELP_MORE_FULLSCREEN_A",[Ui.bigImage]:"icon-fullscreen",[Ui.bottomInfo]:"HELP_DESKTOP_MORE_FULLSCREEN_B"},rn[Fi.dollhouse][Ui.bottomInfo]="HELP_DESKTOP_MORE_DOLLHOUSE_B",rn[Fi.mattertag][Ui.bottomInfo]="HELP_DESKTOP_MORE_MATTERTAG_B",rn[Fi.inside][Ui.bottomInfo]="HELP_DESKTOP_MORE_INSIDE_B",rn[Fi.vr][Ui.bottomInfo]="HELP_DESKTOP_MORE_VR_B",rn[Fi.view360][Ui.bottomInfo]="HELP_DESKTOP_MORE_360_B",rn[Fi.floorplan][Ui.bottomInfo]="HELP_DESKTOP_FLOORPLAN_B";const ln={[Gi.desktop]:rn,[Gi.mobile]:on},dn=[Ui.topInfo,Ui.bigImage,Ui.bottomInfo];class cn extends n.Component{constructor(e){super(e),this.scrollbarsRef=(0,n.createRef)()}componentDidMount(){const e=this.scrollbarsRef.current;e&&e.scrollTo({x:0,y:0})}buildInstructions(){const e=[],t=this.props.device===Gi.desktop?5:this.props.orientation===$i.U.LANDSCAPE?3:2,i=Object.keys(ln[this.props.device]);for(let n=0;n=i.length)continue;const t=ln[this.props.device][i[n+e]][s],o=m()(s,i[n+e],{noAsset:!t}),l=`${n}_${s}_${e}`;switch(s){case Ui.topInfo:a.push((0,r.jsx)("div",Object.assign({className:o},{children:this.context.locale.t(t)}),`${l}_top_info`));break;case Ui.bigImage:a.push((0,r.jsx)("div",Object.assign({className:o},{children:t.indexOf(".png")>-1?(0,r.jsx)("img",{src:t}):(0,r.jsx)("span",Object.assign({className:t},{children:"floors"===i[n+e]?(0,r.jsx)("span",{children:"2"}):null}))}),`${l}_big_img`));break;case Ui.bottomInfo:a.push((0,r.jsx)("div",Object.assign({className:o},{children:this.context.locale.t(t)}),`${l}_bottom_info`))}}e.push((0,r.jsx)("div",Object.assign({className:m()("innerRow",s)},{children:a}),`${n}_${s}_top_info`))}e.push((0,r.jsx)("div",{className:"rowPadding"},`${n}_row_padding`))}return e.pop(),e}render(){return(0,r.jsx)("div",Object.assign({className:m()("more-help-wrapper",this.props.device)},{children:(0,r.jsx)(wt.A,Object.assign({name:"more-help-wrapper",ref:this.scrollbarsRef,forceHidden:!1},{children:(0,r.jsx)("div",Object.assign({className:m()("more-help")},{children:this.buildInstructions()}))}))}))}}cn.contextType=p.B;var un=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},hn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let mn=class extends n.Component{constructor(e,t){var i,n;super(e,t),this.isUnmounting=!1,this.handleTabClick=e=>()=>{this.setState({tab:e})},this.closeHelp=()=>{this.context.commandBinder.issueCommand(new k.X(D.a.HELP,!1))},this.device=this.props.isMobile?Gi.mobile:Gi.desktop,this.state={tab:xi.navigation,orientation:null!==(n=null===(i=t.market.tryGetData(pe.G))||void 0===i?void 0:i.orientation)&&void 0!==n?n:$i.U.LANDSCAPE}}componentDidMount(){this.context.market.waitForData(pe.G).then((e=>{this.isUnmounting||(this.orientationSubscription=e.onPropertyChanged("orientation",(e=>{this.setState({orientation:e})})))}))}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.orientationSubscription)||void 0===e||e.cancel()}render(){const{tab:e,orientation:t}=this.state;return(0,r.jsxs)(xt.l,Object.assign({className:m()("full-modal","help-modal",this.device),theme:"dark",onClose:this.closeHelp},{children:[(0,r.jsx)(Ct.J,{theme:"dark",onClose:this.closeHelp}),(0,r.jsxs)("div",Object.assign({className:m()("tabs",e)},{children:[(0,r.jsx)("div",Object.assign({className:m()("navigation-tab",{active:e===xi.navigation}),onClick:this.handleTabClick(xi.navigation)},{children:(0,r.jsx)("span",{children:this.context.locale.t(E.A.HELP_NAVIGATION_TAB)})})),(0,r.jsx)("div",Object.assign({className:m()("more-help-tab",{active:e===xi.moreHelp}),onClick:this.handleTabClick(xi.moreHelp)},{children:(0,r.jsx)("span",{children:this.context.locale.t(E.A.HELP_MORE_HELP_TAB)})}))]})),e===xi.navigation&&(this.context.settings.tryGetProperty(Ri.gT,!1)?(0,r.jsx)(an,{device:this.device,viewmode:this.props.viewmode}):(0,r.jsx)(Zi,{device:this.device,Modes:this.props.allModes,viewmode:this.props.viewmode,orientation:t})),e===xi.moreHelp&&(0,r.jsx)(cn,{device:this.device,orientation:t})]}))}};mn.contextType=p.B,mn=un([qe.A,hn("design:paramtypes",[Object,Object])],mn);const pn=mn;var En=i(35062),Sn=i(49191),On=i(34904);const gn=new B.Ay("share-modal");class _n extends n.Component{constructor(e){super(e),this.isUnmounting=!1,this.copyURL=()=>{const{deeplink:e}=this.state,t=this.urlInputRef;if(t){const i=new URL(t.value);i.hash="",(0,On.l)(i.toString()),this.setState({copied:!0}),this.context.analytics.track("showcase_share_action",{channel:Vt.COPYLINK,pano_id:this.sweepData.currentSweep,deeplink:e}),window.setTimeout((()=>{this.setState({copied:!1})}),2500)}},this.toggleDeeplinks=()=>{const{deeplink:e}=this.state;this.setState({deeplink:!e})},this.close=()=>{this.context.commandBinder.issueCommand(new k.X(D.a.SHARE,!1))},this.openShareWindow=e=>{const{urls:t,deeplink:i,deeplinkUrls:n}=this.state,{width:s,height:a}=ii[e],o=i?n[e]:t[e];let r;if(s&&a){r="top="+(window.screenY+(window.innerHeight-a)/2)+",left="+(window.screenX+(window.innerWidth-s)/2)+",width="+s+",height="+a}this.context.analytics.track("showcase_share_action",{channel:e,pano_id:this.sweepData.currentSweep,deeplink:i}),window.open(o,"",r)},this.openWebShareApi=e=>{if(!navigator.share)return;const{excerpt:t,title:i,urls:n,deeplinkUrls:s}=this.state,a={url:e?s[Vt.COPYLINK]:n[Vt.COPYLINK],text:t,title:i};gn.debug("Launching Web Share API",a),navigator.share(a),this.context.analytics.track("showcase_share_action",{channel:Vt.NATIVE,pano_id:this.sweepData.currentSweep,deeplink:e})},this.onWebShareClick=()=>{this.openWebShareApi(!1)},this.onWebShareDeeplinkClick=()=>{this.openWebShareApi(!0)},this.setUrlInputRef=e=>{this.urlInputRef=e},this.state={urls:{},deeplinkUrls:{},title:"",excerpt:"",image:"",copied:!1,deeplink:!1,webShareEnabled:(0,$.Yk)()},this.openFacebook=this.openShareWindow.bind(this,Vt.FACEBOOK),this.openTwitter=this.openShareWindow.bind(this,Vt.TWITTER),this.openPinterest=this.openShareWindow.bind(this,Vt.PINTEREST),this.openLinkedIn=this.openShareWindow.bind(this,Vt.LINKEDIN),this.openEmail=this.openShareWindow.bind(this,Vt.MAIL)}async componentDidMount(){const{market:e}=this.context,[t,i]=await Promise.all([e.waitForData(En.q),e.waitForData(Sn.A)]);this.sweepData=i;const n=t.model,s=`${window.location.origin}/api/v1/player/models/${n.sid}/thumb`,a=n.details.name;this.isUnmounting||this.setState({title:a,image:s},this.updateUrls)}componentWillUnmount(){this.isUnmounting=!0}async updateUrls(){const{title:e,image:t}=this.state,[i,n]=await Promise.all([ni(this.context,!1),ni(this.context,!0)]),s=ui(i,e,t,this.context.locale),a=ui(n,e,t,this.context.locale);gn.debug("Social Share URLs:",s),gn.debug("Social Share URLs, with current location",a),this.isUnmounting||this.setState({urls:s,deeplinkUrls:a})}renderWebShareDialog(){return(0,r.jsxs)("div",Object.assign({className:"share-controls"},{children:[(0,r.jsx)(u.$n,{className:"share-modal-button",variant:u.Ak.PRIMARY,size:u.Mp.LARGE,onClick:this.onWebShareDeeplinkClick,label:this.context.locale.t(E.A.SHARE_CURRENT_LOCATION)}),(0,r.jsx)(u.$n,{className:"share-modal-button",variant:u.Ak.SECONDARY,size:u.Mp.LARGE,onClick:this.onWebShareClick,label:this.context.locale.t(E.A.SHARE_DEFAULT_LOCATION)})]}))}renderShareDialog(){const{copied:e,deeplink:t,urls:i,deeplinkUrls:n}=this.state,{locale:s}=this.context,a=t?n[Vt.COPYLINK]:i[Vt.COPYLINK],o=this.sweepData&&this.sweepData.isSweepDisabled(),l=o?s.t(E.A.SHARE_ERROR_SWEEP_DISABLED):void 0;return(0,r.jsxs)("div",Object.assign({className:"share-controls"},{children:[(0,r.jsxs)("div",Object.assign({className:"social-icons"},{children:[(0,r.jsx)(u.$n,{onClick:this.openFacebook,icon:"facebook",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_FACEBOOK)}),(0,r.jsx)(u.$n,{onClick:this.openTwitter,icon:"twitter",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_TWITTER)}),(0,r.jsx)(u.$n,{onClick:this.openLinkedIn,icon:"linkedin",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_LINKEDIN)}),(0,r.jsx)(u.$n,{onClick:this.openPinterest,icon:"pinterest",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_PINTEREST)}),(0,r.jsx)(u.$n,{onClick:this.openEmail,icon:"email",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_MAIL)})]})),(0,r.jsxs)("div",Object.assign({className:"input-group"},{children:[(0,r.jsx)("input",{className:"input",type:"text",value:a||"",ref:this.setUrlInputRef,readOnly:!0}),(0,r.jsx)(u.$n,{className:"input-addon",variant:u.Ak.SECONDARY,onClick:this.copyURL,label:this.context.locale.t(E.A.COPY),tooltip:e?this.context.locale.t(E.A.SHARE_COPIED):this.context.locale.t(E.A.COPY_URL)})]})),(0,r.jsx)(at.S,{defaultChecked:t,disabled:o,label:this.context.locale.t(E.A.SHARE_LINK_TO_LOCATION),onChange:this.toggleDeeplinks}),o&&(0,r.jsx)("p",Object.assign({className:"error-message"},{children:l}))]}))}render(){const{webShareEnabled:e}=this.state,t=m()("share-modal","modal-dialog",{"share-dialog":!e,"web-share-dialog":e}),i=e?this.renderWebShareDialog():this.renderShareDialog();return(0,r.jsxs)(xt.l,Object.assign({className:t,onClose:this.close},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:this.context.locale.t(E.A.SHARE_MODAL_TITLE)})),(0,r.jsx)(Ct.J,{onClose:this.close})]})),(0,r.jsx)("div",Object.assign({className:"modal-body"},{children:i}))]}))}}_n.contextType=p.B;class Tn extends n.Component{constructor(e,t){super(e),this.closeModal=()=>{this.context.commandBinder.issueCommand(new k.X(D.a.MEASUREMENT_HELP,!1))},this.locale={headerString:t.locale.t(E.A.MEASUREMENT_MODE),subHeaderString:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_SUB_HEADER),body1String:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_BODY_1),body2String:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_BODY_2)}}render(){const{headerString:e,subHeaderString:t,body1String:i,body2String:n}=this.locale,{mobile:s}=this.props;return(0,r.jsxs)(xt.l,Object.assign({className:m()("full-modal","measurement-mode-help-modal",{mobile:s}),onClose:this.closeModal},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:e})),(0,r.jsx)(Ct.J,{onClose:this.closeModal})]})),(0,r.jsx)("div",Object.assign({className:"modal-subheader"},{children:t})),(0,r.jsxs)("div",Object.assign({className:"modal-body"},{children:[(0,r.jsx)("p",Object.assign({className:"modal-paragraph"},{children:i})),(0,r.jsx)("p",Object.assign({className:"modal-paragraph"},{children:n}))]}))]}))}}Tn.contextType=p.B;var An=i(2215),vn=i(84032),Nn=i(15840),Ln=i(39591);function In(){const e=(0,A.Y)(),t=(0,n.useContext)(p.B),i=(0,n.useCallback)((()=>{t.commandBinder.issueCommand(new k.X(D.a.DEFURNISH_AI,!1))}),[t.commandBinder]);return(0,r.jsxs)(xt.l,Object.assign({className:m()("defurnish-ai-modal","full-modal"),theme:"dark",onClose:i},{children:[(0,r.jsx)(Ct.J,{theme:"dark",onClose:i}),(0,r.jsxs)("div",Object.assign({className:"modal-body"},{children:[(0,r.jsx)("h6",Object.assign({className:"defurnish-ai-modal-title"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TITLE)})),(0,r.jsx)("p",Object.assign({className:"defurnish-ai-modal-content"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TEXT1)})),(0,r.jsx)("p",Object.assign({className:"defurnish-ai-modal-content"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TEXT2)}))]}))]}))}function fn(e){const{viewmode:t,shareEnabled:i}=e,{commandBinder:s}=(0,n.useContext)(p.B),a=Pt(),o=(0,oe.t)(),l=(0,Nn.I)(),d=(0,n.useMemo)((()=>(0,$.C8)()),[]);if(!a)return null;const c=t===Y.w5.DOLLHOUSE&&(0,Ln.aY)(l)?Y.w5.FLOORPLAN:t,u=o===D.a.SHARE,h=o===D.a.TERMS,E=o===D.a.HELP,S=o===D.a.MEASUREMENT_HELP,O=o===D.a.VR_SELECT,g=o===D.a.RATING_THANK_YOU,_=o===D.a.DEFURNISH_AI,T=h||E||_,A=u||T||S||g||O&&!!a;return(0,r.jsxs)("div",Object.assign({id:"showcase-modals"},{children:[(0,r.jsx)(vn.u,{commandBinder:s}),(0,r.jsx)(Ci,{touchDevice:d,viewmode:c,shareEnabled:i}),(0,r.jsxs)(q.w,Object.assign({className:m()("modal-background",{"dark-modal-background":T,open:A}),open:A,selectChild:!0,childKey:o||void 0,onClick:()=>{s.issueCommand(new k.r)}},{children:[(0,r.jsx)(_n,{},D.a.SHARE),(0,r.jsx)(Tn,{mobile:d},D.a.MEASUREMENT_HELP),(0,r.jsx)(Ai,{isMobile:d,modelDetails:a},D.a.VR_SELECT),h&&(0,r.jsx)(Bt,{},D.a.TERMS),E&&(0,r.jsx)(pn,{isMobile:d,viewmode:c,allModes:Y.w5},D.a.HELP),g&&(0,r.jsx)(An.y,{},D.a.RATING_THANK_YOU),_&&(0,r.jsx)(In,{},D.a.DEFURNISH_AI)]}))]}))}var bn=i(95149),Rn=i(3032),yn=i(61500),Mn=i(48094),Dn=i(48064),kn=i(82110),Pn=i(66083),wn=i(58265),Cn=i(9544),xn=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},Hn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Un=class extends Si{constructor(e){super(e),this.state={vrPlatform:null}}render(){return this.state.vrPlatform===Wt.wc.webxr?this.renderOverlayCta():null}renderOverlayCta(){const{locale:e}=this.context;return(0,r.jsx)("div",Object.assign({id:"vr-overlay-layer",className:"overlay grid-overlay"},{children:(0,r.jsx)(Cn.E,Object.assign({small:!0},{children:(0,r.jsx)(u.$n,{size:u.Mp.SMALL,variant:u.Ak.FAB,theme:"dark",label:e.t(E.A.VR_ENTER),onClick:this.startWebXR})}))}))}};Un.contextType=p.B,Un=xn([qe.A,Hn("design:paramtypes",[Object])],Un);var Gn=i(58330);const{TOURS:Fn}=E.A.SHOWCASE;function jn(e){const{locale:t,messageBus:i,settings:s,commandBinder:a}=(0,n.useContext)(p.B),{highlights:o,tourPlaying:l}=e,d=(0,Gn.H)(),c=t.t(Fn.TOUR_CONTROLS_TITLE),u=t.t(Fn.TOUR_CONTROLS_CTA),h=0===o.length,[E,S]=(0,n.useState)(!1),O=(0,n.useCallback)((async e=>{h||(e.stopPropagation(),await a.issueCommand(new V.FU))}),[h,a]),g=(0,n.useCallback)((async e=>{h||(e.stopPropagation(),await a.issueCommand(new V.jL))}),[h,a]);return(0,n.useEffect)((()=>{const e=[];let t=0;const n=()=>{S(!1)};return e.push(i.subscribe(yt.zM,(()=>{})),i.subscribe(yt.pT,n)),()=>{e.forEach((e=>e.cancel())),clearInterval(t)}}),[i,s,d]),(0,r.jsxs)("div",Object.assign({className:m()("tour-story-controls-mobile",{prompt:E,tourPlaying:l})},{children:[(0,r.jsx)("div",Object.assign({className:"tour-story-help-title"},{children:c})),(0,r.jsx)("div",Object.assign({className:"tour-story-help-cta"},{children:u})),(0,r.jsx)("div",Object.assign({className:"tour-story-prev",onClick:g},{children:(0,r.jsx)("div",{className:"icon icon-dpad-left"})})),(0,r.jsx)("div",Object.assign({className:"tour-story-next",onClick:O},{children:(0,r.jsx)("div",{className:"icon icon-dpad-right"})}))]}))}var Bn=i(13431);const Vn=new B.Ay("showcase-ui"),Wn=(0,bn.EN)();class zn extends n.Component{constructor(e,t){super(e,t),this.bindings=[],this.propertiesToRefreshUi=[K.Q$.Measurements,K.Q$.DetailsModelName,M.p,K.Q$.FloorSelect,Pn.nc,K.Q$.RoomBounds],this.isUnmounting=!1,this.getModeChange=e=>({viewmode:(0,Y.gB)(e.toMode)}),this.updateToolPanelLayout=()=>{const{toolsData:e}=this.context,t=e.toolPanelLayout;this.setState({toolPanelLayout:t})},this.showHelpOnPlaying=e=>{e.phase===d.Jj.PLAYING&&(this.context.commandBinder.issueCommand(new k.X(D.a.CTA,!0)),this.context.messageBus.unsubscribe(l.uv,this.showHelpOnPlaying))},this.updateTools=()=>{const{toolsData:e}=this.context,{toolsLoaded:t}=this.state,i=e.toolsMap;this.setState({toolsCount:i.length}),i.length>0&&!t&&(this.setState({toolsLoaded:!0}),window.setTimeout((()=>{this.context.commandBinder.issueCommand(new c.M_)}),750))},this.updatePerSettings=()=>{const{settings:e,policyData:t}=this.context;this.setState({measurementsModeEnabled:e.tryGetProperty(K.Q$.Measurements,!0)||(0,Bn.m2)(t,e,!1),notesEnabled:e.tryGetProperty(Pn.nc,!1)})},this.updateTourState=()=>{this.tourData&&this.setState({tourState:this.tourData.getCurrentTourState()})},this.updateTourMode=()=>{this.toursViewData&&this.setState({tourMode:this.toursViewData.currentTourMode})},this.isVrButtonEnabled=()=>(0,Wt.ni)(this.context.settings),this.updateActiveTool=()=>{const{tourState:e}=this.state,{toolsData:t,commandBinder:i}=this.context,n=t.activeToolName;n&&e.tourPlaying&&i.issueCommand(new V.IP,!1),this.setState({activeToolName:n})},this.openModalChanged=()=>{const{toolsData:e}=this.context,t=e.openModal;this.setState({openModal:t})},this.state={viewmode:Y.ty,activeToolName:null,openModal:null,toolsLoaded:!1,toolsCount:0,toolPanelLayout:t.toolsData.toolPanelLayout,tourState:{},tourMode:x.cR.NONE,modelDetails:null,measurementsModeEnabled:!1,notesEnabled:!1,vrEnabled:!1,brandingEnabled:!1,shareEnabled:!1,unaligned:!0,showExternalUrl:!1}}async componentDidMount(){const{settings:e,messageBus:t,market:i,toolsData:n,mainDiv:s}=this.context;s.classList.remove("with-toolbar");for(const t of this.propertiesToRefreshUi)e.onPropertyChanged(t,this.updatePerSettings);try{this.cancelBindings(),this.bindings=[n.onPropertyChanged("activeToolName",this.updateActiveTool),n.onPropertyChanged("openModal",this.openModalChanged),n.onPropertyChanged("toolPanelLayout",this.updateToolPanelLayout),n.toolsMap.onChanged(this.updateTools)],this.handleStartUpHelp();const[e,s,a,o,r]=await Promise.all([i.waitForData(En.q),i.waitForData(Dn.X),i.waitForData(Sn.A),i.waitForData(Rn.R),i.waitForData(yn.F)]);if(this.isUnmounting)return;this.bindings.push(t.subscribe(Mn.A,(e=>this.setState(Object.assign(Object.assign({},this.getModeChange(e)),this.getUnalignedSweepState())))),t.subscribe(yt.pT,this.updateTourState),t.subscribe(yt.zM,this.updateTourState),t.subscribe(yt.n1,this.updateTourState),t.subscribe(yt.YH,this.updateTourState),t.subscribe(yt.zb,this.updateTourState),o.getReel().onChanged(this.updateTourState),r.onPropertyChanged("currentTourMode",this.updateTourMode),a.makeSweepChangeSubscription((()=>this.setState(this.getUnalignedSweepState()))));const l=(0,Y.gB)(s.currentMode||kn.N3.Panorama);this.tourData=o,this.toursViewData=r,this.sweepData=a,this.viewmodeData=s,this.setState(Object.assign({viewmode:l,modelDetails:e.model.details,brandingEnabled:this.isBrandingEnabled()&&!this.isMlsEnabled(),shareEnabled:this.isShareEnabled()&&!this.isMlsEnabled(),showExternalUrl:this.isBrandingEnabled()&&!this.isMlsEnabled(),vrEnabled:this.isVrButtonEnabled()},this.getUnalignedSweepState())),this.props.onAppReadyChanged(!0,!1)}catch(e){Vn.debug(e)}this.updateTourState(),this.updateTourMode(),this.updateActiveTool(),this.updateToolPanelLayout(),this.updateTools(),this.updatePerSettings()}async componentWillUnmount(){this.isUnmounting=!0;for(const e of this.propertiesToRefreshUi)this.context.settings.removeOnPropertyChanged(e,this.updatePerSettings);this.cancelBindings(),this.props.onAppReadyChanged(!1,!1)}handleStartUpHelp(){const{settings:e,messageBus:t,commandBinder:i}=this.context,n=e.getOverrideParam("help",0);if(1===n||2===n){const n=1===e.getOverrideParam("ts",0),s=!0===e.tryGetProperty("quickstart",!1);n||(s?i.issueCommand(new k.X(D.a.CTA,!0)):t.subscribe(l.uv,this.showHelpOnPlaying))}}getUnalignedSweepState(){if(!this.sweepData||!this.viewmodeData)return{unaligned:this.state.unaligned};return{unaligned:this.viewmodeData.isInside()&&this.sweepData.isSweepUnaligned(this.sweepData.currentSweep)}}cancelBindings(){for(const e of this.bindings)e.cancel()}isShareEnabled(){const{settings:e}=this.context,t=e.tryGetProperty(Re.wD,!1)&&e.tryGetProperty("is_public",!1),i=(0,$.sv)()&&"0"===Wn.share;return t&&!i}isMlsEnabled(){return this.context.settings.tryGetProperty(Re.qu,!1)}isBrandingEnabled(){const{settings:e}=this.context;return e.tryGetProperty(Re.Lj,!0)}renderActiveToolOverlay(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=(null==s?void 0:s.renderOverlay)?s.renderOverlay():null;return(0,r.jsxs)("div",Object.assign({className:"tool-overlay"},{children:[a,!n&&(0,r.jsx)(Un,{})]}))}renderPersistentToolOverlay(){const{toolsData:e}=this.context,t=e.toolsMap.values.map((e=>e.ui.renderPersistentOverlay&&e.ui.renderPersistentOverlay())).filter((e=>!!e));return(0,r.jsx)("div",Object.assign({className:"overlay-ui"},{children:t}))}renderToolTopUI(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=(null==s?void 0:s.renderTopUIElements)?s.renderTopUIElements():null;return a||void 0}renderToolSettingsPanel(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=(null==s?void 0:s.renderShowcaseSettingsPanel)?s.renderShowcaseSettingsPanel():null;return a||void 0}render(){const{viewmode:e,unaligned:t,tourState:i,modelDetails:n,measurementsModeEnabled:s,notesEnabled:a,shareEnabled:o,brandingEnabled:l,vrEnabled:d,openModal:c,toolsLoaded:u,toolPanelLayout:h,activeToolName:m,tourMode:p}=this.state,{tourPlaying:E,activeStep:S,currentStep:O,highlights:g}=i,_=p===x.cR.STORIES,T=this.renderToolTopUI(),A=this.renderToolSettingsPanel();return(0,r.jsxs)("div",Object.assign({id:"gui",className:"showcase-ui"},{children:[(0,r.jsx)(fn,{viewmode:e,shareEnabled:o}),(0,r.jsx)(wn.s,{children:(0,r.jsxs)(r.Fragment,{children:[!!n&&(0,r.jsx)(ft,{modelDetails:n,tourPlaying:E,brandingEnabled:l,toolElements:T,toolSettings:A}),_&&(0,r.jsx)(Dt.m,{currentStep:O,activeStep:S,highlights:g}),_&&(0,r.jsx)(jn,{highlights:g,tourPlaying:E}),(0,r.jsx)(Mt,{}),(0,r.jsx)(kt.A,{}),u&&this.renderActiveToolOverlay(),u&&this.renderPersistentToolOverlay(),(0,r.jsx)(_e,{openModal:c,openTool:m,unaligned:t,viewmode:e,tourState:i,tourMode:p,measurementsModeEnabled:s,notesEnabled:a,shareEnabled:o,vrEnabled:d,toolPanelLayout:h})]})})]}))}}zn.contextType=p.B;var Kn=i(28997),Yn=i(65413),$n=i(30884),Qn=i(76035),qn=i(92924);const Xn=i.p+"images/MP-logo_H_lock-RGB_color-black.svg",{SUBSCRIBER_PROMPT:Zn}=E.A.SHOWCASE,Jn=e=>{e.preventDefault()},es=()=>{const e=(0,ut.s)(),t=(0,A.Y)(),[i,s]=(0,n.useState)(!0),a=(0,n.useCallback)((t=>{e.trackGuiEvent("subscriber_prompt_b_banner_click"),window.open(Me.oZ,"_blank")}),[e]);return(0,n.useEffect)((()=>(i&&(e.trackGuiEvent("subscriber_prompt_b_banner_viewed"),s(!1)),()=>{})),[e,i]),(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-banner",onClick:a},{children:[(0,r.jsx)("img",{className:"matterport-logo",alt:"Matterport",src:Xn}),(0,r.jsx)("a",Object.assign({className:"link",target:"_blank",onClick:Jn,href:Me.oZ},{children:t.t(Zn.BANNER_CTA_LINK_TEXT)}))]}))};const ts=(0,i(29633).c)("isSubscriberBannerVisible",(()=>{const e=Ce();return De().bannerEnabled&&e}));var is=i(76481),ns=i(23168),ss=i(57682);const{SUMMARY:as}=E.A.SHOWCASE,os=Te._8/1.6,rs=new ss.r({});class ls extends n.Component{constructor(e){super(e),this.getImageURL=e=>{const t=new URL(e);return t.searchParams.set("width",String(Te._8)),t.searchParams.delete("height"),t.searchParams.delete("fit"),t.searchParams.set("crop","16:10"),t.searchParams.set("dpr",String(window.devicePixelRatio)),t.href},this.onExternalLinkClicked=e=>{this.context.analytics.track("showcase_share_origin_link_clicked")},this.state={thumbnail:void 0}}componentDidMount(){const{market:e}=this.context.engine;e.waitForData(Qn.G).then((e=>{e.thumb&&e.thumb.get().then((e=>{try{this.setState({thumbnail:this.getImageURL(e)})}catch(e){this.setState({thumbnail:void 0})}}))}))}getFilteredValue(e,t,i,n){return!this.context.settings.tryGetProperty(t,i)||n&&!this.props.brandingEnabled?"":e}render(){const{modelDetails:e,showExternalUrl:t,isSubscriberBannerVisible:i}=this.props,{thumbnail:n}=this.state,{locale:s}=this.context,{name:a,presentedBy:o,summary:l,description:d,formattedAddress:c,contact:u,externalUrl:h}=e,m=t?h:"",p=this.getFilteredValue(a,K.Q$.DetailsModelName,!0,!1),S=this.getFilteredValue(c,K.Q$.DetailsAddress,!1,!1),O=this.getFilteredValue(l,K.Q$.DetailsSummary,!1,!1),g=this.getFilteredValue(d,K.Q$.DetailsSummary,!1,!1),_=this.getFilteredValue(o,K.Q$.PresentedBy,!1,!0),T=this.getFilteredValue(u.name,K.Q$.DetailsName,!1,!0),A=this.getFilteredValue(u.email,K.Q$.DetailsEmail,!1,!0),v=this.getFilteredValue(u.phone,K.Q$.DetailsPhone,!1,!0),N=this.getFilteredValue(u.formattedPhone,K.Q$.DetailsPhone,!1,!0),L=N||v;return(0,r.jsx)("div",Object.assign({className:"summary-content"},{children:(0,r.jsxs)(qn.A,Object.assign({thumbScrollingOnly:!0,direction:Ht.OP.vertical},{children:[n?(0,r.jsx)("img",{className:"summary-image",width:Te._8,height:os,src:n,alt:`Photo of "${p}"`}):null,i&&(0,r.jsx)(es,{}),(0,r.jsxs)("div",Object.assign({className:"summary-text-content"},{children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_LOCATION)})),(0,r.jsx)("div",Object.assign({className:"location"},{children:p}))]}),S&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_ADDRESS)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:S}))]}),_&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:this.context.locale.t(E.A.PRESENTED_BY)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:_}))]}),(T||v||A)&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_CONTACT)})),(0,r.jsxs)("div",Object.assign({className:"section-body"},{children:[T&&(0,r.jsx)("div",{children:T}),A&&(0,r.jsx)("div",{children:(0,r.jsx)("a",Object.assign({className:"link",href:"mailto:"+A},{children:A}))}),L&&(0,r.jsx)("div",{children:L})]}))]}),m&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_LEARN_MORE)})),(0,r.jsxs)("div",Object.assign({className:"external-link-wrapper"},{children:[(0,r.jsx)("i",Object.assign({className:"icon-ext-link"},{children:" "})),(0,r.jsx)("a",Object.assign({className:"section-body link",onClick:this.onExternalLinkClicked,href:m,target:"_blank",rel:"noopener"},{children:m}))]}))]}),O&&!g&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_INFORMATION)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:O}))]}),g&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(as.LABEL_DESCRIPTION)})),(0,r.jsx)(is.L,{text:g,textParser:rs,markers:ns.S8,linksActive:!1,className:"section-body"})]})]}))]}))}))}}ls.contextType=p.B;const ds=ts(ls);var cs=i(20255);const{SUMMARY:us}=E.A.SHOWCASE;function hs(){const e=(0,A.Y)(),t=Pt(),i=(0,re.i)(Re.Lj,!0),n=(0,re.i)(Re.qu,!1),s=i&&!n,a=i&&!n;return t?(0,r.jsx)(cs.h,Object.assign({toolId:U.S0.SUMMARY,title:e.t(us.HEADING)},{children:(0,r.jsx)(ds,{modelDetails:t,brandingEnabled:s,showExternalUrl:a})})):null}class ms{constructor(){this.renderPanel=()=>(0,r.jsx)(hs,{})}}var ps=i(95822),Es=i(76484),Ss=i(80494);i(29251);function Os(){const{analytics:e,commandBinder:t}=(0,n.useContext)(p.B),i=(0,A.Y)(),s=(0,oe.t)(),a=(0,Ss.W)(),o=s===D.a.MEASUREMENT_HELP;function l(){t.issueCommand(new k.X(D.a.MEASUREMENT_HELP,!1))}(0,n.useEffect)((()=>(a===Es.hb.CLOSED&&l(),()=>{})),[a]);const d=i.t(E.A.HELP),h=i.t(E.A.CLOSE),m=(0,r.jsx)(u.$n,{className:"measurement-top-ui-button",variant:u.Ak.FAB,theme:"overlay",icon:"help",active:o,onClick:i=>{i.stopPropagation(),o||e.trackToolGuiEvent("measurements","measure_mode_help_clicked"),t.issueCommand(new k.X(D.a.MEASUREMENT_HELP,!o))},ariaLabel:d,tooltip:!o&&d||void 0,tooltipOptions:{placement:"bottom"}},"measurement-help"),S=(0,r.jsx)(u.$n,{className:"measurement-top-ui-button",icon:"close",variant:u.Ak.FAB,theme:"overlay",tooltip:h,tooltipOptions:{placement:"bottom"},onClick:async e=>{e&&e.stopPropagation(),l(),await t.issueCommand(new c.yU(U.S0.MEASUREMENTS,!1))}},"measurement-close");return(0,r.jsxs)("div",Object.assign({className:"measurement-top-ui-button-container"},{children:[m,S]}))}var gs=i(42021);class _s{constructor(){this.renderOverlay=()=>(0,r.jsx)(ps.S,{}),this.renderTopUIElements=()=>(0,r.jsx)(Os,{}),this.renderShowcaseSettingsPanel=()=>(0,r.jsx)(gs.e,{})}}var Ts=i(53865),As=i(86260),vs=i(73072),Ns=i(11707),Ls=i(89375);const{TOOLS:Is}=E.A;class fs extends a.n{constructor(){super(),this.name="showcase-gui-module",this.onSaveError=e=>{const{error:t}=e;this.engine.commandBinder.issueCommand(new As.P(E.A.ERRORS.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE,{throttle:30,timeout:10,type:vs.v.ERROR,error:t}))},this.onForbiddenError=e=>{const{error:t}=e;this.engine.commandBinder.issueCommand(new As.P(E.A.ERRORS.UNAUTHORIZED_ERROR_MESSAGE,{throttle:0,timeout:0,type:vs.v.ERROR,error:t}))},this.loadUi=this.loadUi.bind(this)}async init(e,t){this.engine=t,[this.settingsData]=await Promise.all([t.market.waitForData(Kn.o)]),this.bindings.push(t.subscribe(Ts.xi,this.onSaveError),t.subscribe(Ts.xt,this.onForbiddenError))}async loadUi(e,t,i){e.editMode=!1,this.reactRoot=(0,s.createRoot)(t),this.reactRoot.render((0,n.createElement)(p.B.Provider,{value:e},[(0,n.createElement)(zn,{key:"showcase-ui",onAppReadyChanged:i})])),this.initializeTools()}async unloadUi(){return!!this.reactRoot&&(this.reactRoot.unmount(),!0)}initializeTools(){const e=[new Yn.N({id:U.S0.MEASUREMENTS,searchModeType:o.jM.MEASUREMENTPATH,namePhraseKey:Is.MEASUREMENTS,panel:!1,icon:"icon-tape-measure",analytic:"measurements",dimmed:!1,enabled:this.settingsData.tryGetProperty(K.Q$.Measurements,!0),ui:new _s,manager:new $n.R(this.engine,this.settingsData)}),new Yn.N({id:U.S0.SUMMARY,namePhraseKey:Is.SUMMARY,panel:!0,panelLeft:!0,analytic:"summary",dimmed:!1,enabled:!0,hidesAppBar:!0,ui:new ms})];this.engine.commandBinder.issueCommand(new c.Kw(e)),this.engine.commandBinder.issueCommandWhenBound(new Ls.eo),this.engine.commandBinder.issueCommandWhenBound(new Ns.RJ)}}},76830:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,G:()=>s});var n=i(18268);class s extends n.u{constructor(e,t){super(),this.payload={startup:e,editMode:t}}}s.id="START_APPLICATION";class a extends n.u{constructor(e){super(),this.payload={expand:e}}}a.id="EXPAND_APP"},75110:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>P});var n=i(14075),s=i(23205),a=i(35223),o=i(33020),r=i(28997),l=i(35596),d=i(96970),c=i(4913),u=i(73494),h=i(49191),m=i(35062),p=i(69505),E=i(18284),S=i(99366),O=i(8430),g=i(95149),_=i(95226),T=i(71294),A=i(63083),v=i(84600),N=i(73657);class L{constructor(e,t){this.lastProgress=0,this.currentProgress=0,this.webpackChunks=[],this.meshAlloc={alloc:2e6,loaded:0},this.showingProgress=!1,this.onWebpackChunkProgress=e=>{this.webpackChunks[e.chunkID]?this.webpackChunks[e.chunkID].loaded=e.loaded:this.webpackChunks[e.chunkID]={loaded:e.loaded,total:e.total},this.calcProgress()},this.progressElm=t.querySelector("#bar"),window.addEventListener("WebpackChunkProgress",this.onWebpackChunkProgress),this.engine=e,this.meshProgressBinding=this.onMeshLoadProgress.bind(this),this.engine.subscribe(N.EX,this.meshProgressBinding)}dispose(){window.removeEventListener("WebpackChunkProgress",this.onWebpackChunkProgress)}showProgress(){this.showingProgress=!0,this.setProgress(this.currentProgress)}setDone(){this.currentProgress=100,this.setProgress(this.currentProgress),this.engine.unsubscribe(N.EX,this.meshProgressBinding)}setProgress(e){if(!this.progressElm||isNaN(e))return;this.lastProgress=Math.max(this.lastProgress,e),e=this.lastProgress;const t=Number.parseFloat(this.progressElm.getAttribute("r")||"0"),i=Math.PI*(2*t),n=(100-(e=Math.max(Math.min(e,100),0)))/100*i;this.progressElm.style.strokeDasharray=i.toString(10),this.progressElm.style.strokeDashoffset=n.toString(10)}calcProgress(){let e=0,t=0;this.webpackChunks.forEach((i=>{e+=i.loaded,t+=i.total})),e+=this.meshAlloc.loaded,t+=this.meshAlloc.alloc,this.currentProgress=95*Math.min(e/t,1),this.showingProgress&&this.setProgress(this.currentProgress)}onMeshLoadProgress(e){this.meshAlloc.loaded=e.loaded/e.total*this.meshAlloc.alloc,this.calcProgress()}}var I=i(76830),f=i(43773);function b(e){const{width:t,height:i}=window.screen;return O.al()&&(0,f.c)({width:t,height:i})&&e.height<.6*i}function R(){return O.qL()&&!O.vQ("xr-spatial-tracking")}class y{constructor(e,t,i,n){this.config=e,this.settingsData=t,this.containerData=i,this.sdkData=n,this.bindings=[]}async autoPlayIfWhenAllowed(e){const{editMode:t,openingTool:i,disabled:n,allowAutoPlay:s}=this.config;let a=!1;if(function(e,t,i){return!O.al()||!!(e||i||t)}(this.settingsData.getOverrideParam("play",!1),i,t)&&(a=s||this.sdkConnected,!a)){const t=function(e){return e||O.al()&&R()}(n);t||(a=!b(this.containerData.size),a||(this.bindings.push(this.containerData.onPropertyChanged("size",(t=>{b(t)||(e(),this.bindings.forEach((e=>e.cancel())))}))),this.bindings.push(this.sdkData.onChanged((()=>{this.sdkConnected&&(e(),this.bindings.forEach((e=>e.cancel())))})))))}return a&&e(),a}get sdkConnected(){return this.sdkData.applicationKeys.length>0}dispose(){this.bindings.forEach((e=>e.cancel()))}}var M=i(52147),D=i(55079);function k(e,t){let i=function(e){return document.querySelector(`link[rel=${e}]`)}(e);i||(i=document.createElement("link"),document.head.appendChild(i)),i.setAttribute("rel",e),i.setAttribute("href",t)}class P extends s.n{constructor(){super(...arguments),this.name="loading-ui",this.playPromise=new T.i,this.onClick=()=>{this.resolvePlayPromise(!0,!1)},this.autoPlay=()=>{this.autoPlaying=!0,this.updatePlayAnalytics(),this.resolvePlayPromise(!0,this.config.editMode)},this.resolvePlayPromise=async(e,t)=>{var i;null===(i=this.autoPlayer)||void 0===i||i.dispose();const n=this.config.allowPlayInIframe||!O.Fr()&&!R(),s=t&&(0,O.al)()&&(n||1===this.settings.getOverrideParam("expand",0));if(!this.autoPlaying){if(!n&&1===this.settings.getOverrideParam("nt",0)){const e=(0,D.RP)(window.location.href);return void window.open(e,"_blank")}if((0,O.al)()&&!s&&!n){const e=(0,g.DE)();t&&e.set("edit","1"),e.set("back","1"),e.delete("cloudEdit");const i=e.toString(),n=`${window.location.origin}${window.location.pathname}?${i}`;try{return void(window.top&&(window.top.location.href=n))}catch(e){this.log.debug("Couldn't set top window location; was Showcase sandboxed?"),this.log.debug(e)}}}s&&this.toggleIframeExpansion(!0),t&&this.settings.setProperty("quickstart",!0),e&&(this.config.disabled||(this.uiRoot.removeEventListener("click",this.onClick),this.playIcon.remove(),this.progressUI.showProgress()),this.playPromise.resolve())},this.toggleIframeExpansion=e=>{const t=e?new n.NS:new n.xI;this.engine.commandBinder.issueCommand(t),this.engine.broadcast(new v.U(e))},this.onAppPhaseChangeMessage=async e=>{e.phase!==l.Jj.STARTING&&e.phase!==l.Jj.PLAYING&&e.phase!==l.Jj.ERROR||(this.progressUI.setDone(),this.config.quickstart?this.showQuickstartUI():this.uiRoot.classList.add("faded-out"),this.engine.unsubscribe(o.uv,this.onAppPhaseChangeMessage))}}async init(e,t){this.engine=t,this.config=e;const{market:i,commandBinder:n}=this.engine;[this.locale,this.settings,this.containerData,this.sdkData]=await Promise.all([t.getModuleBySymbol(a.gS),i.waitForData(r.o),i.waitForData(c.G),i.waitForData(d.d)]);const s=await t.market.waitForData(m.q);this.model=s.model.details,this.updateHtmlMetadata(s,this.settings),this.autoPlaying=1===this.settings.getOverrideParam("play",0),this.bindings.push(n.addBinding(I.G,(async e=>{this.resolvePlayPromise(e.startup,e.editMode)})),n.addBinding(I.C,(async e=>{this.toggleIframeExpansion(e.expand)})),this.containerData.onPropertyChanged("size",(e=>{this.updatePlayAnalytics()}))),e.disabled||(this.bindings.push(this.settings.onPropertyChanged(M.ov,(()=>this.renderTitle())),this.settings.onPropertyChanged(M.Lj,(()=>this.renderBranding())),this.settings.onPropertyChanged(M.qu,(()=>this.renderBranding())),t.subscribe(o.uv,this.onAppPhaseChangeMessage)),this.progressUI=new L(t,this.containerData.element),this.loadUi(),this.getLoadingElements(),this.renderSplashScreen())}dispose(e){var t,i;super.dispose(e),null===(t=this.progressUI)||void 0===t||t.dispose(),null===(i=this.autoPlayer)||void 0===i||i.dispose()}get waitForPlaying(){return this.playPromise.nativePromise()}loadUi(){if(this.uiRoot=this.containerData.element.querySelector("#loading-gui"),!this.uiRoot)throw Error("Loading GUI root not found");this.uiRoot.classList.remove("hidden"),this.config.quickstart&&(this.uiRoot.style.pointerEvents="none")}getPresentationOptions(){const{hideTitle:e,hideBranding:t,quickstart:i}=this.config,n=!i&&(void 0!==e?!e:this.settings.tryGetProperty(M.ov,!0)),s=this.settings.tryGetProperty(M.qu,!1),a=this.settings.tryGetProperty(M.Lj,!0);return{title:n,presentedBy:void 0!==t?!t:a&&!s}}getLoadingElements(){const e=this.containerData.element;this.presentedBy=e.querySelector("#loading-presented-by"),this.poweredBy=e.querySelector("#loading-powered-by"),this.mpLogo=e.querySelector("#loading-mp-logo"),this.mpLogo.src=A,this.mpLogo.alt=this.locale.t(S.A.ALT_MATTERPORT_LOGO),this.circleLoader=e.querySelector("#circleLoader"),this.nameHeader=e.querySelector("#loading-header"),this.background=e.querySelector("#loading-background"),this.tint=e.querySelector("#tint"),this.playIcon=e.querySelector("#showcase-play"),this.playIcon.setAttribute("aria-label",this.locale.t(S.A.PLAY)),this.playIcon.setAttribute("alt",this.locale.t(S.A.PLAY))}addCobrand(){var e;if(null===(e=this.model)||void 0===e?void 0:e.presentedBy){const e=this.presentedBy.querySelector(".loading-label");e&&(e.textContent=this.locale.t(S.A.PRESENTED_BY_CAPS));const t=this.presentedBy.querySelector(".subheader");t&&(t.textContent=this.model.presentedBy),this.presentedBy.classList.remove("hidden")}}hidePlayButtonUI(){this.background.style.backgroundImage="none",this.presentedBy.style.transition="none",this.presentedBy.classList.remove("faded-in"),this.poweredBy.style.transition="none",this.poweredBy.classList.remove("faded-in"),this.nameHeader.classList.add("hidden"),this.tint.classList.add("hidden"),this.circleLoader.classList.add("hidden"),this.uiRoot.classList.add("quickstart")}async showQuickstartUI(){this.background.classList.add("faded-out"),await(0,_.cb)(500),this.presentedBy.style.transition="",this.presentedBy.classList.add("faded-in"),this.poweredBy.style.transition="",this.poweredBy.classList.add("faded-in"),await(0,_.cb)(2500),this.presentedBy.classList.remove("faded-in"),this.poweredBy.classList.remove("faded-in"),this.uiRoot.classList.add("faded-out")}showLoadingUI(e){const t=document.createAttribute("data-status");t.value=this.locale.t(S.A.LOADING);const i=this.containerData.element.querySelector("#loader-cont");i&&(i.attributes.setNamedItem(t),i.classList.add(this.locale.languageCode),i.classList.add("loading")),e.classList.add("faded-out"),this.presentedBy.classList.add("faded-in")}renderTitle(){const{title:e}=this.getPresentationOptions();this.nameHeader.classList.toggle("hidden",!e)}renderBranding(){const{presentedBy:e}=this.getPresentationOptions();e?this.addCobrand():this.presentedBy.classList.add("hidden")}async renderSplashScreen(){const{editMode:e,allowPlayInIframe:t,allowAutoPlay:i,disabled:n,openingTool:s,quickstart:a,hidePoweredBy:o}=this.config;this.renderTitle(),this.renderBranding(),o&&this.poweredBy.classList.add("hidden"),this.nameHeader.textContent=this.model.name,this.poweredBy.classList.add("faded-in"),this.tint.classList.add("faded-in");const r=this.containerData.element.querySelector("#play-prompt");this.playPromise.then((()=>{a?this.hidePlayButtonUI():this.showLoadingUI(r)})),this.autoPlayer=new y({editMode:e,allowPlayInIframe:t,allowAutoPlay:i,disabled:n,openingTool:s},this.settings,this.containerData,this.sdkData),this.autoPlaying=await this.autoPlayer.autoPlayIfWhenAllowed(this.autoPlay),this.autoPlaying||(r.classList.remove("hidden"),r.innerText=this.locale.t(S.A.EXPLORE_3D_SPACE),this.playIcon.classList.remove("hidden"),this.uiRoot.addEventListener("click",this.onClick)),this.renderBackground(),t||window.scrollTo(0,0)}async renderBackground(){const e=p.s.deserialize();if(this.autoPlaying&&e){const t=await this.engine.market.waitForData(h.A),i=(0,E.d)(e,t);if(i&&(0,E.X)(i,t))return}const t=window.devicePixelRatio||1,i=Math.max(window.innerWidth,400);this.background.style.backgroundImage=`url(api/v1/player/models/${this.config.viewId}/thumb?width=${i}&dpr=${t}&disable=upscale)`}updatePlayAnalytics(){this.engine.getModuleBySymbol(a.aF).then((e=>{e.setOptions(Object.assign({},(0,u.Q9)(this.autoPlaying)))}))}updateHtmlMetadata(e,t){if("function"==typeof ShadowRoot&&this.containerData.rootNode instanceof ShadowRoot)return;const i=t.tryGetProperty(M.k5,null);if(!e.hasDiscoverUrl()&&i){const{baseModelId:t,sid:n}=e.model,s=new URL(`${i}${t}`,"https://matterport.com");n&&n!==t&&s.searchParams.set("view",n),k("canonical",s.toString())}}}},84600:(e,t,i)=>{"use strict";i.d(t,{U:()=>s});var n=i(14754);class s extends n.QB{constructor(e){super(),this.expanded=e}}},92238:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t,i,n,s,a,o){super(),this.durationDollhouse=e,this.durationFloorplan=t,this.durationInside=i,this.durationOverlay=n,this.mainMode=s,this.totalBytesDownloaded=a,this.tilesDownloaded=o}}},37117:(e,t,i)=>{"use strict";i.d(t,{G:()=>a,l:()=>s});var n=i(14754);class s extends n.QB{}class a extends n.QB{constructor(e){super(),this.errorType=e}}},83636:(e,t,i)=>{"use strict";i.d(t,{W:()=>a,c:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={pose:e}}}s.id="START_LOCATION_FLY_IN_COMMAND";class a extends n.u{}a.id="START_LOCATION_GOTO_COMMAND"},14075:(e,t,i)=>{"use strict";i.d(t,{NS:()=>s,xI:()=>a});var n=i(18268);class s extends n.u{}s.id="SHOWCASE_START";class a extends n.u{}a.id="SHOWCASE_STOP";class o extends n.u{}o.id="SHOWCASE_READY"},78096:(e,t,i)=>{"use strict";i.d(t,{k:()=>a});var n=i(68909);class s{constructor(e){this.elements=[],e?(e=>void 0!==e.elements)(e)?this.elements=e.elements.slice():n.Matrix4.prototype.set.apply(this,e):n.Matrix4.prototype.set.apply(this,s.identity)}equals(e){return n.Matrix4.prototype.equals.call(this,e)}clone(){return new s(this)}}s.identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class a extends s{constructor(e){e instanceof Array||e?super(e):super(),this.threeMatrix=new n.Matrix4}set(e,t,i,s,a,o,r,l,d,c,u,h,m,p,E,S){return n.Matrix4.prototype.set.call(this,e,t,i,s,a,o,r,l,d,c,u,h,m,p,E,S),this}makeScale(e,t,i){return n.Matrix4.prototype.makeScale.call(this,e,t,i),this}copy(e){for(let t=0;t{"use strict";i.d(t,{A:()=>n});const n=Object.freeze({signedUrlDefaultExpireTime:24e4,signedUrlCheckInterval:1e4,signedUrlRefreshBuffer:15e3,visionTilingStartDate:new Date("8/26/2016"),visionTilingStartVersion:"1.1.407.13667",defurnishableStartDate:new Date("03/10/2023"),defurnishableStartVersion:"1.2.29221.4-gcac59bd3ec.REL_1425",epsilon:1e-5,skyboxMeshGroup:"_group_skybox_",skysphereMeshGroup:"_group_skysphere_"})},84252:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});var n=i(68909);class s{}s.MP_BRAND=new n.Color("rgb(255, 49, 88)"),s.MATTERTAG_BLUE=new n.Color("rgb(3, 104, 125)"),s.WHITE=new n.Color("rgb(255, 255, 255)"),s.BLACK=new n.Color("rgb(0, 0, 0)"),s.RED=new n.Color(16711680),s.GREEN=new n.Color(65280),s.BLUE=new n.Color(255),s.YELLOW=new n.Color(16776960),s.SINE=new n.Color(11908275),s.NEPTUNE=new n.Color("rgb(64, 91, 246)"),s.LENS_GRAY=new n.Color(4473924),s.MIRROR=new n.Color(14342874),s.PORTAL=new n.Color(2236962)},12183:(e,t,i)=>{"use strict";var n;i.d(t,{X:()=>n}),function(e){e[e.boundingSkybox=-100]="boundingSkybox",e[e.default=0]="default",e[e.panoMarker=4]="panoMarker",e[e.reticule=5]="reticule",e[e.grid=5]="grid",e[e.meshTrims=5]="meshTrims",e[e.pins360=6]="pins360",e[e.roomBounds=7]="roomBounds",e[e.portals=9]="portals",e[e.rotators=10]="rotators",e[e.pins=14]="pins",e[e.pinSelectedHalo=15]="pinSelectedHalo",e[e.lines=20]="lines",e[e.endpoints=21]="endpoints",e[e.labels=22]="labels",e[e.gizmos=23]="gizmos",e[e.ghostFloorDepthPrepass=50]="ghostFloorDepthPrepass",e[e.ghostFloor=51]="ghostFloor",e[e.transformGizmo=999]="transformGizmo",e[e.colorOverlay=1e3]="colorOverlay"}(n||(n={}))},25591:(e,t,i)=>{"use strict";var n;i.d(t,{n:()=>n}),function(e){e.TEXT="text",e.LINK="link",e.HASH="hash",e.USER="user"}(n||(n={}))},48071:(e,t,i)=>{"use strict";i.d(t,{B1:()=>a,YF:()=>o,os:()=>n});var n,s=i(68909);class a{}a.UP=new s.Vector3(0,1,0),a.DOWN=new s.Vector3(0,-1,0),a.LEFT=new s.Vector3(-1,0,0),a.RIGHT=new s.Vector3(1,0,0),a.FORWARD=new s.Vector3(0,0,-1),a.BACK=new s.Vector3(0,0,1),a.ZERO=new s.Vector3(0,0,0),a.UNIT=new s.Vector3(1,1,1),a.HORIZONTAL_PLANE=new s.Vector3(1,0,1),function(e){e.NONE="NONE",e.UP="UP",e.DOWN="DOWN",e.LEFT="LEFT",e.RIGHT="RIGHT",e.FORWARD="FORWARD",e.BACK="BACK",e.ZERO="ZERO",e.UNIT="UNIT",e.HORIZONTAL_PLANE="HORIZONTAL_PLANE"}(n||(n={}));class o{}o.DOWNWARD=new s.Quaternion(-Math.SQRT1_2,0,0,Math.SQRT1_2)},84229:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});var n=i(27147);class s extends Error{constructor(e,t){super(e instanceof Error?e.message:e),this.name="BaseException",t&&(this.code=t),e instanceof Error&&(this.originalError=e,(0,n.zi)(e)&&(this.isMock=!0))}}},45704:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(84229);class s extends n.t{constructor(e="Not implemented"){super(e),this.name="NotImplemented"}}},73272:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(84229);class s extends n.t{constructor(e="Out of range"){super(e),this.name="OutOfRangeException"}}},27147:(e,t,i)=>{"use strict";function n(e){return!!(e&&e instanceof Error&&e.code)}function s(e){return!!(e&&e instanceof Error&&e.originalError)}function a(e){return!!(e&&e instanceof Error&&e.isMock)}function o(e){return n(e)?e.code:""}function r(e){const t=[];let i=e;for(;i;)n(i)&&t.push(i.code),i=s(i)?i.originalError:void 0;return t}i.d(t,{E2:()=>o,Ue:()=>n,fS:()=>r,zi:()=>a})},10657:(e,t,i)=>{"use strict";i.d(t,{g:()=>l});var n=i(1803),s=i(45704),a=i(95149),o=i(21746),r=i(61373);class l{constructor(e){this.viewId=null,this.newDataCallbacks=new Set,this.refreshPromiseMap=new Map;const{baseUrl:t,viewId:i,server:n}=e;this.config=e,this.context=e.context,this.client=new o.t({baseUrl:t,server:n,mdsContext:e.context}),i&&(this.viewId=i)}dispose(){this.context.refreshableStores.delete(this)}async create(...e){throw new s.E}async read(e={}){throw new s.E}async update(...e){throw new s.E}async delete(...e){throw new s.E}onNewData(e){this.context.refreshableStores.add(this);return(0,n.Sh)((()=>this.newDataCallbacks.add(e)),(()=>this.newDataCallbacks.delete(e)))}async refresh(e){const t=(null==e?void 0:e.modelId)||"default";let i=this.refreshPromiseMap.get(t);return i||(i=this.read(e).then((e=>this.newDataCallbacks.size>0?Promise.all(Array.from(this.newDataCallbacks.values()).map((t=>(t(e),e)))):[e])).then((([e])=>e)).finally((()=>{this.refreshPromiseMap.set(t,null)})),this.refreshPromiseMap.set(t,i)),i}async query(e,t,i={}){if(!this.getViewId())throw new r.V("No model view specified for query");const n=Object.assign({fetchPolicy:"cache-first",prefetchKey:this.prefetchKey},i);return this.client.query(e,t,n)}async mutate(e,t,i){const{readonly:n}=this.config;if(n)throw new r.n8("Cannot mutate in read-only mode");if(!this.getViewId())throw new r.V("Cannot mutate, no view was specified");return this.client.mutate(e,t,i).then((e=>{const t="53100"===(0,a.P3)("error","");if(!o.t.isOk(e)||t){const i=new r.YA(o.t.getErrorMessage(e));throw t&&(i.isMock=!0),i}return e}))}setStoreViewId(e){this.viewId=e}getViewId(){const e=this.viewId||this.context.currentViewId||this.context.baseViewId;if(!e)throw new Error("Invalid view id!");return e}getBaseViewId(){const e=this.context.baseViewId;if(!e)throw new Error("MdsStore baseViewId invalid!");return e}readLayerId(){return!!this.context.readLayerId}writeLayerId(e){return this.context.shouldWriteLayerId(e)}}},21746:(e,t,i)=>{"use strict";i.d(t,{H:()=>E,t:()=>O});var n=i(80788),s=i(8955),a=i(82768),o=i(31863),r=i(11751),l=i(83662),d=i(20203),c=i(35652),u=i(61373),h=i(24563),m=i(38398);const p=new c.Ay("model-api-client");const E=(e={})=>()=>new O(e);let S=!1;class O{constructor(e={}){var t,i,r;const d=e.baseUrl||window.location.origin,c=e.server||h.wD;this.graphUrl=e.url||`${d}${c}`,this.mdsContext=e.mdsContext,p.debug(`Initialized Model API client for ${this.graphUrl}`);let u=(0,s.o)(((e,{headers:t={}})=>((0,l.v)(this.graphUrl,t),{headers:t})));if(null===(t=e.mdsContext)||void 0===t?void 0:t.apqEnabled)if(null===(r=null===(i=window.crypto)||void 0===i?void 0:i.subtle)||void 0===r?void 0:r.digest){const e=(0,a.e)({useGETForHashedQueries:!0,sha256:o.sc});u=u.concat(new n.ApolloLink(((t,i)=>t.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))?i(t):e.request(t,i))))}else S||(p.warn("Crypto API not available in non-secure context; disabling APQ graphql optimization"),S=!0);u=u.concat((0,n.createHttpLink)({uri:this.graphUrl,fetch:(e,t)=>{if("POST"===t.method){const{operationName:i}=JSON.parse(t.body);return fetch(`${e}?operation=${i}`,t)}return fetch(e,t)}})),this.apollo=new n.ApolloClient({link:u,cache:new n.InMemoryCache({addTypename:!1})})}async query(e,t,i={}){var n,s,a,o,r,l;if("no-cache"!==i.fetchPolicy&&(null===(n=this.mdsContext)||void 0===n?void 0:n.sharedCaches))for(const n of this.mdsContext.sharedCaches){const s=await n.read(e,t,i);if(void 0!==s)return p.debug(`Using cached response for ${i.prefetchKey}`),s}const d=Object.assign(Object.assign({errorPolicy:"all"},i),{query:e,variables:t,fetchPolicy:"no-cache"});if((null===(s=this.mdsContext)||void 0===s?void 0:s.anonymousHeaderEnabled)&&i.anonymous){(null!==(o=(l=null!==(a=d.context)&&void 0!==a?a:d.context={}).headers)&&void 0!==o?o:l.headers={})["x-apiauthmode"]="PUBLIC"}else if((null===(r=this.mdsContext)||void 0===r?void 0:r.simulateApiOutage)===m.u.TIMEOUT)return g(e);return this.apollo.query(d).then((e=>{const{data:t,errors:i}=e;return{data:t,errors:i}})).catch((e=>{throw p.error(e),new u.tW(e,this.getApolloErrorCode(e))}))}async mutate(e,t,i={}){var n;if((null===(n=this.mdsContext)||void 0===n?void 0:n.simulateApiOutage)===m.u.TIMEOUT)return g(e);const s=Object.assign(Object.assign({errorPolicy:"all"},i),{mutation:e,variables:t});return this.apollo.mutate(s).then((e=>{const{data:t,errors:i}=e;return{data:t,errors:i}})).catch((e=>{throw p.error(e),new u.YA(e,this.getApolloErrorCode(e))}))}async upload(e,t,i,n,s){const a={};let o=0;(0,d.S)(i,((e,t,i)=>{if(e&&((n=e).filename&&n.blob&&n.blob instanceof Blob)){const n="file"+o++;a[n]=e,i[t]=`multipart:${n}`}var n}));const c=new FormData;for(const[e,t]of Object.entries(a))c.append(e,t.blob,t.filename);c.append("query",(0,r.y)(e)),c.append("operation",t),c.append("variables",JSON.stringify(i));const h=(0,l.v)(this.graphUrl,{});return this.uploadFormData(c,h,n,s).then((e=>{if(!O.isOk(e)){const t=O.getErrorCode(e)||"54200";throw new u.yr(O.getErrorMessage(e),t)}return e}))}getApolloErrorCode(e){var t;if(e instanceof n.ApolloError){const i=null===(t=e.networkError)||void 0===t?void 0:t.statusCode;if(i)return`61${i}`}return"61000"}async uploadFormData(e,t,i,n=new XMLHttpRequest){const s=`${this.graphUrl}${e.has("operation")?`?operation=${e.get("operation")}`:""}`;n.open("POST",s,!0),n.responseType="json",n.setRequestHeader("Accept","application/json"),i&&(n.upload.onprogress=i);for(const e in t)n.setRequestHeader(e,t[e]);return new Promise(((t,i)=>{n.onreadystatechange=()=>{4===n.readyState&&(200===n.status?t(n.response):0!==n.status&&i(new u.yr(`${n.status} ${n.statusText}`,`54${n.status}`)))},n.onerror=()=>{i(new u.yr("Network error","54002"))},n.onabort=()=>{p.info("upload canceled!")},n.send(e)}))}static isOk(e,t){if(t){const i=t.split(".");return 0===(e.errors||[]).filter((e=>{if(!e.path)return!0;for(let t=0;t1&&(t+=` (+${e.length-1})`)),t}}function g(e){var t;const i=null===(t=e.definitions.find((e=>"OperationDefinition"===e.kind)).name)||void 0===t?void 0:t.value;return p.warn(`Simulating hang of API query: ${i}`),new Promise((()=>{}))}O.version="2020.05.28"},38398:(e,t,i)=>{"use strict";var n,s;i.d(t,{G:()=>n,u:()=>s}),function(e){e.CACHE="cache",e.PRELOAD="preload",e.NONE="none"}(n||(n={})),function(e){e[e.NONE=0]="NONE",e[e.TIMEOUT=1]="TIMEOUT"}(s||(s={}))},61373:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,YA:()=>a,n8:()=>l,tW:()=>s,yr:()=>o});var n=i(84229);n.t;class s extends n.t{constructor(e,t="62001"){super(e),this.name="MdsReadError",this.code=t}}class a extends n.t{constructor(e,t="63001"){super(e),this.name="MdsWriteError",this.code=t}}class o extends n.t{constructor(e,t="63002"){super(e),this.name="MdsUploadError",this.code=t}}class r extends n.t{constructor(e,t="52404"){super(e),this.name="InvalidView",this.code=t}}class l extends n.t{constructor(e,t="53001"){super(e),this.name="ReadOnly",this.code=t}}},76863:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{pi:()=>s,yg:()=>n}),function(e){e.PHOTO="photo",e.RICH="rich",e.VIDEO="video"}(n||(n={})),function(e){e.COMMENT="comment",e.MATTERTAG="mattertag"}(s||(s={})),function(e){e.ALPHA="alpha",e.COLORED_ROOMS="colored_rooms",e.MEASUREMENTS="measurements",e.PHOTOGRAMY="photogramy",e.SCHEMATIC="schematic"}(a||(a={}))},54244:(e,t,i)=>{"use strict";var n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g,_,T,A,v,N,L,I,f,b,R,y,M,D,k,P,w,C,x,H,U,G,F,j,B,V,W,z,K,Y,$,Q,q,X,Z,J,ee,te,ie,ne,se,ae,oe,re,le,de,ce,ue,he,me,pe,Ee,Se,Oe,ge,_e,Te,Ae,ve,Ne,Le,Ie,fe,be,Re,ye,Me,De,ke,Pe,we,Ce,xe,He,Ue,Ge,Fe,je,Be,Ve,We,ze,Ke,Ye,$e,Qe,qe,Xe,Ze,Je,et;i.d(t,{$X:()=>ke,$h:()=>Ae,D6:()=>Fe,ES:()=>$e,I$:()=>S,K7:()=>Oe,OQ:()=>Z,UR:()=>W,UY:()=>w,WU:()=>qe,Zw:()=>Te,_f:()=>Q,fd:()=>p,gP:()=>M,hL:()=>fe,jG:()=>q,jM:()=>K,n:()=>ve,nE:()=>Ze,pi:()=>Le,pu:()=>be,ve:()=>pe,w0:()=>Pe,xx:()=>ye,zf:()=>ie}),function(e){e.NAME="NAME",e.ROLE="ROLE",e.TYPE="TYPE",e.USER_EMAIL="USER_EMAIL",e.USER_GROUP_NAME="USER_GROUP_NAME"}(n||(n={})),function(e){e.EMPTY="empty",e.PARSED="parsed",e.RAW="raw",e.VERIFIED="verified"}(s||(s={})),function(e){e.FULL="full",e.NONE="none",e.PARTIAL="partial"}(a||(a={})),function(e){e.FOREVER="FOREVER",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS"}(o||(o={})),function(e){e.ESTIMATE="estimate",e.EXACT="exact",e.TRUNCATED="truncated"}(r||(r={})),function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.OPENED="OPENED",e.PENDING="PENDING"}(l||(l={})),function(e){e.IMPRESSION="impression",e.MODELLOADED="modelLoaded"}(d||(d={})),function(e){e.LAST7DAYS="last7Days",e.LAST30DAYS="last30Days",e.LIFETIME="lifetime"}(c||(c={})),function(e){e.CREATED="created",e.IMPRESSIONS="impressions",e.NAME="name",e.UNIQUE_VISITORS="unique_visitors",e.VIEWS="views"}(u||(u={})),function(e){e.CAPTURE="capture",e.WORKSHOP="workshop"}(h||(h={})),function(e){e.LZMA="lzma",e.NONE="none"}(m||(m={})),function(e){e.AVAILABLE="available",e.LOCKED="locked",e.UNAVAILABLE="unavailable"}(p||(p={})),function(e){e.EXTERNAL="external",e.UPLOAD="upload"}(E||(E={})),function(e){e.IMAGE="image",e.PDF="pdf",e.RICH="rich",e.VIDEO="video",e.ZIP="zip"}(S||(S={})),function(e){e.PROVISIONED="provisioned",e.UPLOADED="uploaded"}(O||(O={})),function(e){e.LOCKED="locked",e.UNAVAILABLE="unavailable",e.UNLOCKED="unlocked"}(g||(g={})),function(e){e.V1="v1",e.V2="v2"}(_||(_={})),function(e){e.COMPLETED="completed",e.FAILED="failed",e.INPROGRESS="inprogress",e.ORDERED="ordered",e.PLACED="placed",e.PREVIEWABLE="previewable"}(T||(T={})),function(e){e.UNAVAILABLE="unavailable",e.UNKNOWN="unknown",e.UNLOCKED="unlocked",e.UNLOCKING="unlocking"}(A||(A={})),function(e){e.DOLLHOUSE="dollhouse",e.FLOORPLAN="floorplan",e.OUTDOOR="outdoor",e.PANORAMA="panorama",e.TRANSITION="transition",e.UNKNOWN="unknown"}(v||(v={})),function(e){e.WALL="wall",e.WINDOW="window"}(N||(N={})),function(e){e.HANDHELD="handheld",e.OTHER="other",e.PRO="pro",e.SPHERICAL="spherical"}(L||(L={})),function(e){e.DUPLICATE="duplicate",e.FAIL="fail",e.REPLACE="replace",e.SKIP="skip"}(I||(I={})),function(e){e.CREATED="created",e.MODIFIED="modified"}(f||(f={})),function(e){e.FAST="fast",e.NORMAL="normal",e.URGENT="urgent"}(b||(b={})),function(e){e.ASPIRATIONAL="aspirational",e.CONVERSATIONAL="conversational",e.INFORMATIVE="informative"}(R||(R={})),function(e){e.KILOMETERS="kilometers",e.MILES="miles"}(y||(y={})),function(e){e.INVISIBLE="invisible",e.WALL="wall"}(M||(M={})),function(e){e.CSV="CSV"}(D||(D={})),function(e){e.MATTERTAGS="Mattertags",e.NOTECOMMENTS="NoteComments",e.NOTES="Notes"}(k||(k={})),function(e){e.ACCOUNT_DELETED="ACCOUNT_DELETED",e.ACCOUNT_INACTIVE="ACCOUNT_INACTIVE",e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED",e.CORRUPT_MODEL="CORRUPT_MODEL",e.DELETED="DELETED",e.FAILED_PROCESSING="FAILED_PROCESSING",e.FLAGGED="FLAGGED",e.PENDING="PENDING",e.PROCESSING="PROCESSING",e.UNRECOVERABLE_ERRORS="UNRECOVERABLE_ERRORS"}(P||(P={})),function(e){e.BLOCKED="blocked",e.DISABLED="disabled",e.GATED="gated",e.UNLOCKED="unlocked"}(w||(w={})),function(e){e.MAY="may",e.MUST="must",e.MUST_NOT="must_not"}(C||(C={})),function(e){e.ALPHA="alpha",e.COLORED_ROOMS="colored_rooms",e.MEASUREMENTS="measurements",e.PHOTOGRAMY="photogramy",e.SCHEMATIC="schematic"}(x||(x={})),function(e){e.ADMIN="Admin",e.FOLDERCREATOR="FolderCreator",e.FOLDERSHARES="FolderShares",e.USERGROUPFOLDERSHARES="UserGroupFolderShares"}(H||(H={})),function(e){e.ADDRESS="address",e.INTERNALID="internalId",e.MLSID="mlsId",e.MLSNAME="mlsName",e.STANDARD="standard"}(U||(U={})),function(e){e.USEREMAIL="UserEmail",e.USERGROUPID="UserGroupId",e.USERID="UserId"}(G||(G={})),function(e){e.ALL="all",e.ID="id",e.NAME="name"}(F||(F={})),function(e){e.CREATED="created",e.MODIFIED="modified",e.NAME="name"}(j||(j={})),function(e){e.CLIENT="client",e.GSV="gsv",e.PROCESSING="processing",e.UNKNOWN="unknown"}(B||(B={})),function(e){e.COMPLETE="COMPLETE",e.ERROR="ERROR",e.PENDING="PENDING"}(V||(V={})),function(e){e.REEL="reel",e.STORY="story"}(W||(W={})),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.CREATED="created",e.FAILED="failed",e.INPROGRESS="inprogress"}(z||(z={})),function(e){e.ANCHORLOCATION="AnchorLocation",e.HIGHLIGHTREEL="HighlightReel",e.LABEL="Label",e.MATTERTAG="Mattertag",e.MEASUREMENTPATH="MeasurementPath",e.MODELFLOOR="ModelFloor",e.MODELROOM="ModelRoom",e.NOTE="Note",e.OBJECTANNOTATION="ObjectAnnotation",e.ORDEREDLIST="OrderedList",e.PANORAMICIMAGELOCATION="PanoramicImageLocation",e.PHOTO="Photo"}(K||(K={})),function(e){e.SHOWCASE="showcase"}(Y||(Y={})),function(e){e.PHOTO="photo",e.RICH="rich",e.VIDEO="video"}($||($={})),function(e){e.LINETYPE_2D="linetype_2D",e.LINETYPE_3D="linetype_3D"}(Q||(Q={})),function(e){e.DISABLED="disabled",e.MEASURE="measure",e.MEASUREANDVIEW="measureAndView"}(q||(q={})),function(e){e.FLOORS="floors",e.HIGHLIGHTREEL="highlightReel",e.IMAGE="image",e.LABELS="labels",e.MATTERTAGS="mattertags",e.MEASUREMENTPATHS="measurementPaths",e.ORDEREDLISTS="orderedLists",e.PLAYEROPTIONS="playerOptions",e.SWEEPS="sweeps"}(X||(X={})),function(e){e.FULL="full",e.PUBLIC="public",e.VIEWER="viewer"}(Z||(Z={})),function(e){e.ADMIN="Admin",e.MODELCREATOR="ModelCreator",e.MODELSHARES="ModelShares",e.USERGROUPMODELSHARES="UserGroupModelShares"}(J||(J={})),function(e){e.PASSWORD="password",e.PRIVATE="private",e.PUBLIC="public",e.UNLISTED="unlisted"}(ee||(ee={})),function(e){e.ACTIVE="active",e.ARCHIVED="archived",e.FLAGGED="flagged",e.PENDING="pending"}(te||(te={})),function(e){e.BLACK="black",e.GREY="grey",e.WHITE="white"}(ie||(ie={})),function(e){e.DEFAULT="default",e.MLS="mls",e.UNBRANDED="unbranded"}(ne||(ne={})),function(e){e.DESCRIPTION="description",e.SUMMARY="summary"}(se||(se={})),function(e){e.ACTIVATION_STATE_CHANGED="activation_state_changed",e.BUNDLE_COMPLETED="bundle_completed",e.BUNDLE_REQUESTED="bundle_requested",e.BUNDLE_UPDATED="bundle_updated",e.CREATED="created",e.DELETED="deleted",e.DETAILS_CHANGED="details_changed",e.INSERTED="inserted",e.PROCESSED="processed",e.REPLACED="replaced",e.RESTORED="restored",e.TRANSFERRED_IN="transferred_in",e.TRANSFERRED_OUT="transferred_out",e.UPDATED="updated",e.UPLOADED="uploaded",e.VISIBILITY_CHANGED="visibility_changed"}(ae||(ae={})),function(e){e.ACTIVE="active",e.ARCHIVED="archived"}(oe||(oe={})),function(e){e.ID="id",e.INTERNALID="internalId",e.MLSID="mlsId"}(re||(re={})),function(e){e.DEFAULT="default",e.VR="vr"}(le||(le={})),function(e){e.COMPLETED="completed",e.FAILED="failed",e.PROCESSING="processing",e.STAGING="staging"}(de||(de={})),function(e){e.USEREMAIL="UserEmail",e.USERGROUPID="UserGroupId",e.USERID="UserId"}(ce||(ce={})),function(e){e.ACCESSVISIBILITY="accessVisibility",e.ADDRESS="address",e.CAMERA="camera",e.CAMERAMANUFACTURER="cameraManufacturer",e.CAMERAMODEL="cameraModel",e.DESCRIPTION="description",e.EXTENSIONTAG="extensiontag",e.GEODISTANCE="geoDistance",e.GEOREGION="geoRegion",e.ID="id",e.INTERNALID="internalId",e.MLSID="mlsId",e.MLSNAME="mlsName",e.NAME="name",e.STANDARD="standard",e.SUMMARY="summary",e.VISIONVERSION="visionVersion"}(ue||(ue={})),function(e){e.CREATED="created",e.INTERNALID="internalId",e.LAST7IMPRESSIONSEVENTCOUNT="last7ImpressionsEventCount",e.LAST7MODELSLOADEDEVENTCOUNT="last7ModelsLoadedEventCount",e.LAST7MODELSLOADEDUSERCOUNT="last7ModelsLoadedUserCount",e.LAST30IMPRESSIONSEVENTCOUNT="last30ImpressionsEventCount",e.LAST30MODELSLOADEDEVENTCOUNT="last30ModelsLoadedEventCount",e.LAST30MODELSLOADEDUSERCOUNT="last30ModelsLoadedUserCount",e.LIFETIMEIMPRESSIONSEVENTCOUNT="lifetimeImpressionsEventCount",e.LIFETIMEMODELSLOADEDEVENTCOUNT="lifetimeModelsLoadedEventCount",e.LIFETIMEMODELSLOADEDUSERCOUNT="lifetimeModelsLoadedUserCount",e.MLSID="mlsId",e.MODIFIED="modified",e.NAME="name",e.POSTALCODE="postalCode",e.SCORE="score"}(he||(he={})),function(e){e.COPY="copy",e.DEMO="demo",e.PROCESSING="processing",e.TRANSFER="transfer",e.UNKNOWN="unknown"}(me||(me={})),function(e){e.ACTIVATING="activating",e.ACTIVATION_PENDING="activation_pending",e.ACTIVE="active",e.FAILED="failed",e.INACTIVATING="inactivating",e.INACTIVATION_PENDING="inactivation_pending",e.INACTIVE="inactive",e.PENDING="pending",e.PROCESSING="processing",e.STAGING="staging"}(pe||(pe={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(Ee||(Ee={})),function(e){e.COPY="copy",e.DEMO="demo",e.ORIGINAL="original"}(Se||(Se={})),function(e){e.PRIVATE="private",e.PUBLIC="public"}(Oe||(Oe={})),function(e){e.SERIAL="serial"}(ge||(ge={})),function(e){e.DOORWAY="doorway",e.OPENING="opening"}(_e||(_e={})),function(e){e.AUTO="auto",e.LEFT="left",e.RIGHT="right"}(Te||(Te={})),function(e){e.AUTO="auto",e.MANUAL="manual",e.UNPLACED="unplaced"}(Ae||(Ae={})),function(e){e.UPLOAD="upload",e.VISION="vision"}(ve||(ve={})),function(e){e.CYLINDRICAL="cylindrical",e.EQUIRECTANGULAR="equirectangular",e.SKYBOX="skybox"}(Ne||(Ne={})),function(e){e.COMMENT="comment",e.MATTERTAG="mattertag"}(Le||(Le={})),function(e){e.DISCOVER="discover",e.FOLDER="folder",e.GRANT="grant",e.MODEL="model",e.ORGANIZATION="organization",e.USAGE="usage",e.USER="user"}(Ie||(Ie={})),function(e){e.SNAPSHOT="snapshot",e.TOUR="tour"}(fe||(fe={})),function(e){e.USER="user",e.VISION="vision"}(be||(be={})),function(e){e.ICON="icon",e.ORIGINAL="original",e.PRESENTATION="presentation",e.PREVIEW="preview",e.THUMBNAIL="thumbnail",e.WEB="web"}(Re||(Re={})),function(e){e.EQUIRECTANGULAR="equirectangular",e.PHOTO2D="photo2D"}(ye||(ye={})),function(e){e.AVAILABILITY="availability",e.FLAG="flag",e.QUOTA="quota",e.VALUE="value"}(Me||(Me={})),function(e){e.COMPLETE="complete",e.FAILED="failed",e.INPROGRESS="inprogress",e.STAGING="staging"}(De||(De={})),function(e){e.OPEN="open",e.RESOLVED="resolved"}(ke||(ke={})),function(e){e.BOUNDARYEDGE="boundaryEdge",e.BOUNDARYVERTEX="boundaryVertex",e.ROOM="room"}(Pe||(Pe={})),function(e){e.ABORTED="aborted",e.ALIGNED="aligned",e.DELETED="deleted",e.FAILED="failed",e.UNALIGNED="unaligned"}(we||(we={})),function(e){e.ANCHOR="anchor",e.ID="id",e.LOCATION="location"}(Ce||(Ce={})),function(e){e.MESH="mesh",e.PANO="pano",e.UNKNOWN="unknown"}(xe||(xe={})),function(e){e.FACE_BLURRING="face_blurring",e.FIDUCIAL_DETECTION="fiducial_detection",e.FIDUCIAL_REMOVAL="fiducial_removal"}(He||(He={})),function(e){e.ADDRESS="ADDRESS",e.ALL="ALL",e.CREATED_BY="CREATED_BY",e.INTERNAL_ID="INTERNAL_ID",e.MLS_ID="MLS_ID",e.MLS_NAME="MLS_NAME"}(Ue||(Ue={})),function(e){e.DEMO="demo",e.DISCOVERABLE="discoverable",e.FLAGGED="flagged",e.INACTIVE="inactive"}(Ge||(Ge={})),function(e){e.DEFAULT="default",e.DISABLED="disabled",e.ENABLED="enabled"}(Fe||(Fe={})),function(e){e.FOLDER="Folder",e.MODEL="Model",e.ORGANIZATION="Organization"}(je||(je={})),function(e){e.USER="USER",e.USER_GROUP="USER_GROUP"}(Be||(Be={})),function(e){e.ASC="asc",e.DESC="desc"}(Ve||(Ve={})),function(e){e.ACCEPTED="accepted",e.DISMISSED="dismissed",e.REJECTED="rejected",e.UNREVIEWED="unreviewed"}(We||(We={})),function(e){e.HIGH="high",e.LOW="low"}(ze||(ze={})),function(e){e.AFTERNOON="afternoon",e.DAWN="dawn",e.DUSK="dusk",e.MORNING="morning",e.NIGHT="night"}(Ke||(Ke={})),function(e){e.ACCEPTED="accepted",e.CANCELLED="cancelled",e.INVALID="invalid",e.PENDING="pending",e.REJECTED="rejected"}(Ye||(Ye={})),function(e){e.FADE_TO_BLACK="fade_to_black",e.INSTANT="instant",e.INTERPOLATE="interpolate"}($e||($e={})),function(e){e.CAMERAUNSUPPORTED="cameraUnsupported",e.ENABLEMENTEXPIRED="enablementExpired",e.FEATUREBLOCKED="featureBlocked",e.ORGSETTINGSDISABLED="orgSettingsDisabled",e.PERMISSIONMISSINGUNLOCK="permissionMissingUnlock",e.PERMISSIONMISSINGVIEW="permissionMissingView",e.QUOTAEXCEEDED="quotaExceeded"}(Qe||(Qe={})),function(e){e.IMPERIAL="imperial",e.METRIC="metric"}(qe||(qe={})),function(e){e.CREATED="created",e.EMAIL="email",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.MODIFIED="modified"}(Xe||(Xe={})),function(e){e.DOLLHOUSE="dollhouse",e.FLOORPLAN="floorplan",e.MESH="mesh",e.PANORAMA="panorama"}(Ze||(Ze={})),function(e){e.BASIC="basic",e.NONE="none",e.TOKEN="token"}(Je||(Je={})),function(e){e.CANCELED="Canceled",e.COMPLETED="Completed",e.CONTINUEDASNEW="ContinuedAsNew",e.FAILED="Failed",e.RUNNING="Running",e.TERMINATED="Terminated",e.TIMEDOUT="TimedOut",e.UNRECOGNIZED="Unrecognized",e.UNSPECIFIED="Unspecified"}(et||(et={}))},24563:(e,t,i)=>{"use strict";i.d(t,{l9:()=>a,qw:()=>o,vE:()=>s,wD:()=>n});const n=`${window.location.pathname}`+"api/mp/models/graph",s=`${window.location.pathname}`+"api/mp/attachments/graph",a="data.model.views",o="aaaaaaaaaaaaaaaaaaaaaaaaa"},79889:(e,t,i)=>{"use strict";function n(e){return null!=e}i.d(t,{s:()=>n})},35223:(e,t,i)=>{"use strict";i.d(t,{$c:()=>o,A5:()=>re,AO:()=>ge,CE:()=>u,Et:()=>s,FI:()=>D,GR:()=>B,HX:()=>L,He:()=>de,J$:()=>Ee,JY:()=>Se,KT:()=>ce,Kv:()=>z,LG:()=>fe,Ll:()=>me,M7:()=>Fe,N4:()=>X,N7:()=>we,N9:()=>x,Ne:()=>G,Np:()=>Le,PD:()=>le,PJ:()=>he,PM:()=>U,Pn:()=>_e,QS:()=>V,QW:()=>I,SD:()=>He,SH:()=>Ce,T9:()=>Te,TN:()=>K,TV:()=>ue,TY:()=>S,Tx:()=>te,UN:()=>Ge,Uu:()=>ee,Vc:()=>C,Vu:()=>oe,Wh:()=>Ae,X$:()=>W,X7:()=>m,XQ:()=>Pe,Xf:()=>ke,Xx:()=>f,YC:()=>je,Yj:()=>pe,Yr:()=>v,Z7:()=>h,ZF:()=>P,_q:()=>Q,_v:()=>_,aF:()=>n,aU:()=>M,az:()=>k,bj:()=>j,co:()=>Re,cy:()=>$,dC:()=>Me,dT:()=>E,di:()=>c,eE:()=>l,ep:()=>T,et:()=>O,f0:()=>be,fO:()=>F,gS:()=>w,gk:()=>Ie,gy:()=>Y,iV:()=>Oe,jh:()=>d,kG:()=>ie,kM:()=>se,kd:()=>q,lN:()=>De,lf:()=>Z,mL:()=>R,nu:()=>b,pR:()=>y,qD:()=>ve,qL:()=>a,qy:()=>r,rA:()=>g,rz:()=>ae,sA:()=>ne,se:()=>Ne,tQ:()=>Ue,vM:()=>J,wY:()=>ye,yR:()=>N,yT:()=>xe,zX:()=>A,zj:()=>p,zy:()=>H});const n=Symbol("analytics"),s=Symbol("annotations"),a=Symbol("apiv2"),o=Symbol("app-analytics"),r=Symbol("attachments"),l=Symbol("automation-support"),d=(Symbol("blur-data"),Symbol("camera")),c=Symbol("camera-start"),u=Symbol("canvas"),h=Symbol("container-data"),m=Symbol("controls-common"),p=Symbol("controls-dh"),E=Symbol("controls-fp"),S=Symbol("controls-inside"),O=Symbol("controls-zoom"),g=Symbol("current-pano"),_=Symbol("cursor-controller"),T=Symbol("cursors"),A=Symbol("cursor-mesh"),v=Symbol("dwell-analytics"),N=Symbol("raycast-fat"),L=Symbol("floors"),I=Symbol("floors-state"),f=Symbol("raycast-floor"),b=Symbol("gui"),R=Symbol("input"),y=Symbol("interaction"),M=Symbol("label-data"),D=Symbol("label-render"),k=Symbol("layers"),P=Symbol("lines"),w=Symbol("locale"),C=Symbol("login-redirect"),x=Symbol("mattertag-data"),H=Symbol("measurement-mode"),U=Symbol("mesh-query"),G=Symbol("mesh-api-fixup"),F=Symbol("mesh-trim-data"),j=Symbol("model-data"),B=Symbol("model-mesh"),V=Symbol("model-rating"),W=Symbol("mouse"),z=Symbol("navigation"),K=Symbol("notes"),Y=Symbol("object-tag-suggestions-data"),$=Symbol("ordered-lists"),Q=Symbol("orthographic-controls"),q=Symbol("pins"),X=Symbol("plugin"),Z=Symbol("plugin-config-data-module"),J=Symbol("plugin-ui"),ee=Symbol("policy"),te=Symbol("pre-renderer"),ie=Symbol("react-three-fiber-external"),ne=Symbol("raycaster"),se=Symbol("rtt"),ae=Symbol("room-bound"),oe=Symbol("room-bound-data"),re=Symbol("room-bound-renderer"),le=Symbol("rooms"),de=(Symbol("room-selector"),Symbol("scan-info")),ce=Symbol("scene"),ue=Symbol("scheduler"),he=Symbol("screenshots"),me=Symbol("sdk-landing"),pe=Symbol("search"),Ee=Symbol("sensors"),Se=Symbol("ses"),Oe=Symbol("skybox"),ge=Symbol("snapshots-editor"),_e=Symbol("snapshots-data"),Te=Symbol("storage"),Ae=Symbol("sweep-data"),ve=Symbol("pano"),Ne=Symbol("pucks"),Le=Symbol("path"),Ie=Symbol("sweep-pin-mesh"),fe=Symbol("sweep-pin"),be=Symbol("portal"),Re=Symbol("portal-nav"),ye=Symbol("sweep-textures"),Me=Symbol("sweep-viewdata"),De=Symbol("tags"),ke=Symbol("tours-controls"),Pe=Symbol("tours-data"),we=Symbol("tools"),Ce=(Symbol("transform-gizmo"),Symbol("users")),xe=Symbol("mode-change"),He=Symbol("mode"),Ue=Symbol("video"),Ge=Symbol("visible-mesh-bounds"),Fe=Symbol("webgl-renderer"),je=Symbol("webxr")},44246:(e,t,i)=>{"use strict";i.d(t,{s:()=>a});var n=i(96540),s=i(17139);function a(){const{analytics:e}=(0,n.useContext)(s.B);return e}},73494:(e,t,i)=>{"use strict";i.d(t,{$E:()=>p,BX:()=>O,Q9:()=>E,oA:()=>l});var n=i(77232),s=i(85869),a=i(8430),o=i(49747);const r=e=>`${e}_3.0`,l=e=>e,d=e=>{var t,i;return{pme:null!==(i=(null!==(t=window.MP_PLATFORM_METADATA)&&void 0!==t?t:{}).pme)&&void 0!==i&&i}},c=e=>({height:e.innerHeight,width:e.innerWidth}),u=e=>({width:e.screen.width,height:e.screen.height,density:e.devicePixelRatio}),h=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return""}},m=()=>{const e=(new n.UAParser).getResult();let t=e.os.name,i=e.browser.name;const s=Object.assign({},e.device);return(0,a.J0)()&&(t="iPadOS",s.vendor="Apple",s.model="iPad",s.type="tablet","Safari"===i&&(i="Mobile Safari")),{browser:{name:i,major:e.browser.major,version:e.browser.version,language:navigator.language||"",languages:navigator.languages?navigator.languages.join(", "):""},os:{name:t,version:e.os.version},device:{vendor:s.vendor,model:s.model,type:s.type}}};function p(e){var t;const i=window,n=i.parent!==i,s="1"===e.play||"true"===e.play;return Object.assign({model_id:e.model||e.m||"",language_tag:null!==(t=e.lang)&&void 0!==t?t:null,quickstart:"1"===e.qs,is_mobile:(0,a.Fr)(),iframe:n,session_id:(0,o.e)(),platform:m(),pme:d(i),authTokenProvided:!!e.auth||!!e.connectauth},E(s))}function E(e){const t=window,i=t.innerWidth/t.innerHeight,n=t.parent!==t;return{start_source:e?"autoplay":n?"click":"fullpage",autoplay:e,aspect_ratio:isFinite(i)?i:1,window:c(t)}}function S(e,t){const i=window;return{app:{name:r(t),version:"24.12.3_webgl-1-g8ac1598427"},locale:e,screen:u(i),timezone:h(),location:{}}}function O(e,t,i){const n=S(t,i);return(0,s.A)(e).then((e=>{n.location={city:e.city,country:e.country_name,region:e.region}})),n}},87513:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var n=i(61589),s=i(99782),a=i(41733);class o extends n.B{constructor(){super(),this.name="annotations-view-data",this.dockedAnnotationObservable=(0,a.p)(null),this.billboardAnnotationObservable=(0,a.p)(null),this.billboardSelectedObservable=(0,a.p)(!1),this.capabilities=new Map}setDockedAnnotation(e,t){const i=e&&t?{id:e,annotationType:t}:null;this.isEqual(i,this.dockedAnnotation)||this.atomic((()=>{this.dockedAnnotationObservable.value=i,i&&this.billboardSelected&&(this.billboardSelectedObservable.value=!1)}))}get dockedAnnotation(){return this.dockedAnnotationObservable.value}onDockedAnnotationChanged(e){return this.dockedAnnotationObservable.onChanged(e)}setBillboardAnnotation(e,t,i){const n=e&&t?{id:e,annotationType:t}:null;this.atomic((()=>{this.isEqual(n,this.billboardAnnotation)||(this.billboardAnnotationObservable.value=n),void 0===i&&n||(this.billboardSelectedObservable.value=!!i,i&&this.dockedAnnotation&&(this.dockedAnnotationObservable.value=null))}))}get billboardAnnotation(){return this.billboardAnnotationObservable.value}get billboardSelected(){return this.billboardSelectedObservable.value}get selectedAnnotation(){return this.billboardSelected?this.billboardAnnotation:null}updateCapabilities(e,t){const i=this.getCapabilities(e);i.atomic((()=>{i.dock=t.dock,i.preview=t.preview,i.share=t.share}))}getCapabilities(e){const t={dock:!0,preview:!0,select:!0,share:!0};this.capabilities.has(e)||this.capabilities.set(e,(0,s.c)(t));return this.capabilities.get(e)||(0,s.c)(t)}isEqual(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.annotationType)===(null==t?void 0:t.annotationType)}}},91902:(e,t,i)=>{"use strict";i.d(t,{Tj:()=>l,XK:()=>c,ZR:()=>r,Zx:()=>o,mS:()=>d,xo:()=>a,y8:()=>s});var n=i(18268);class s extends n.u{constructor(e,t,i=!1){super(),this.payload={id:e,annotationType:t,force:i}}}s.id="ANNOTATION_DOCK";class a extends n.u{constructor(e,t,i=!1){super(),this.payload={id:e,annotationType:t,force:i}}}a.id="ANNOTATION_SELECT";class o extends n.u{constructor(e,t){super(),this.payload={id:e,annotationType:t}}}o.id="ANNOTATION_PREVIEW";class r extends n.u{}r.id="ANNOTATIONS_CLOSE_BILLBOARD";class l extends n.u{}l.id="ANNOTATIONS_CLOSE_DOCKED_ANNOTATION";class d extends n.u{constructor(e,t){super(),this.payload={exceptType:e,exceptId:t}}}d.id="ANNOTATIONS_CLOSE_ALL";class c extends n.u{constructor(e,t){super(),this.payload={id:e,annotationType:t}}}c.id="ANNOTATION_CLOSE"},80597:(e,t,i)=>{"use strict";var n;i.d(t,{c:()=>n}),function(e){e.ACCESS_TOKEN_REQUIRED="object.access.token.required",e.FORBIDDEN="spaces.public.access.password.forbidden",e.INVALID_PASSWORD="spaces.public.access.invalid_password",e.TOO_MANY_ATTEMPTS="spaces.public.access.too_many_attempts",e.UNAUTHORIZED="user.unauthorized",e.NOT_FOUND="not.found",e.PASSWORD_REQUIRED="model.unauthorized"}(n||(n={}))},66163:(e,t,i)=>{"use strict";var n;i.d(t,{L:()=>n}),function(e){e.INVALID_CREDENTIALS="invalidcredentials",e.TOO_MANY_ATTEMPTS="toomanyattempts",e.UNKNOWN="unknown"}(n||(n={}))},80168:(e,t,i)=>{"use strict";i.d(t,{e:()=>s});var n=i(95149);class s{constructor(){const e=(0,n.P3)("auth","");this.authenticate(e)}isAuthenticated(){return!!s.token}authenticate(e){return!(!e||"string"!=typeof e)&&(s.token=e.replace(","," "),!0)}getAuthorizationHeader(){return s.token?s.token:""}}},93679:(e,t,i)=>{"use strict";i.d(t,{l:()=>l});var n=i(35652),s=i(66163),a=i(80597),o=i(83662);const r=new n.Ay("mp-password-authentication");class l{constructor(e=window.location.origin){this.baseUrl=e,this.errorType=s.L.UNKNOWN}async authenticate(e,t){if(!e.match(/[a-zA-Z0-9]+/))return r.error(`Invalid Model ID ${e}`),!1;const i=`${window.location.origin}${window.location.pathname}/api/v2/models/${e}/public-access/`;return this.fetchToken(i,t).then((async e=>{let t={};return e&&(t=await e.json(),e.ok&&t.token)?(this.login(t.token),!0):(this.errorType=l.getErrorType(t.code),this.logout(),!1)}))}isAuthenticated(){return void 0!==l.token}login(e){l.token=e}logout(){l.token=void 0}getAuthorizationHeader(){return l.token?`Matterport-Object-Access ${l.token}`:""}async fetchToken(e,t){const i=JSON.stringify({password:t}),n={"Content-Type":"application/json"};return(0,o.v)(e,n),fetch(e,{method:"POST",cache:"no-cache",headers:n,body:i})}static getErrorType(e){switch(e){case a.c.TOO_MANY_ATTEMPTS:return s.L.TOO_MANY_ATTEMPTS;case a.c.INVALID_PASSWORD:return s.L.INVALID_CREDENTIALS}return s.L.UNKNOWN}}},70056:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});class n{static setToken(e){n.token="Bearer "+e}isAuthenticated(){return!!n.token}authenticate(e){return!(!e||"string"!=typeof e)}getAuthorizationHeader(){return n.token?n.token:""}}},61543:(e,t,i)=>{"use strict";var n,s;i.d(t,{MF:()=>n,Mo:()=>o,c5:()=>s,oY:()=>a}),function(e){e.BASE="base",e.STANDARD="standard",e.HIGH="high",e.ULTRAHIGH="ultrahigh"}(n||(n={})),function(e){e[e.BASE=512]="BASE",e[e.STANDARD=1024]="STANDARD",e[e.HIGH=2048]="HIGH",e[e.ULTRAHIGH=4096]="ULTRAHIGH"}(s||(s={}));const a={[n.BASE]:s.BASE,[n.STANDARD]:s.STANDARD,[n.HIGH]:s.HIGH,[n.ULTRAHIGH]:s.ULTRAHIGH},o={[s.BASE]:n.BASE,[s.STANDARD]:n.STANDARD,[s.HIGH]:n.HIGH,[s.ULTRAHIGH]:n.ULTRAHIGH}},41309:(e,t,i)=>{"use strict";i.d(t,{EY:()=>d,Q$:()=>n});var n,s=i(61589),a=i(61693),o=i(23706),r=i(82030),l=i(61287);class d extends s.B{constructor(e={}){super(),this.name="player-options",this.options=new c(e)}resetDefaultTourOptions(){this.options.fast_transitions=l.m7,this.options.transition_speed=l.iw,this.options.transition_time=l.SM,this.options.pan_speed=l.u7,this.options.dollhouse_pan_speed=l.qr,this.options.zoom_duration=l.R4,this.options.pan_angle=l.s8,this.options.pan_direction=l.ek,this.options.commit()}}class c extends a.v{constructor(e){super(),this.defurnish_view=!0,this.presented_by=!1,this.highlight_reel=!0,this.floor_plan=!0,this.tour_buttons=!0,this.room_bounds=!1,this.labels=!0,this.labels_dh=!0,this.floor_select=!0,this.space_search=!0,this.measurements=!0,this.measurements_saved=!0,this.dollhouse=!0,this.contact_email=!1,this.address=!1,this.contact_name=!1,this.model_summary=!1,this.contact_phone=!1,this.model_name=!1,this.external_url=!1,this.unit_type=r.t.IMPERIAL,this.background_color=o.v.default,this.fast_transitions=l.m7,this.transition_speed=l.iw,this.transition_time=l.SM,this.pan_speed=l.u7,this.dollhouse_pan_speed=l.qr,this.zoom_duration=l.R4,this.pan_angle=l.s8,this.pan_direction=l.ek,e&&this.copy(e)}copy(e){this.presented_by=!!e.presented_by,this.highlight_reel=!!e.highlight_reel,this.floor_plan=!!e.floor_plan,this.room_bounds=!!e.room_bounds,this.tour_buttons=!!e.tour_buttons,this.labels=!!e.labels,this.space_search=!!e.space_search,this.dollhouse=!!e.dollhouse,this.fast_transitions=!!e.fast_transitions,this.contact_email=!!e.contact_email,this.address=!!e.address,this.contact_name=!!e.contact_name,this.model_summary=!!e.model_summary,this.contact_phone=!!e.contact_phone,this.model_name=!!e.model_name,this.external_url=!!e.external_url,this.defurnish_view=!!e.defurnish_view,void 0!==e.measurements&&(this.measurements=e.measurements),void 0!==e.labels_dh&&(this.labels_dh=e.labels_dh),void 0!==e.floor_select&&(this.floor_select=e.floor_select),void 0!==e.measurements_saved&&(this.measurements_saved=e.measurements_saved),void 0!==e.unit_type&&(this.unit_type=e.unit_type),void 0!==e.background_color&&void 0!==o.v[e.background_color]&&(this.background_color=e.background_color),void 0!==e.transition_speed&&(this.transition_speed=e.transition_speed),void 0!==e.transition_time&&(this.transition_time=e.transition_time),void 0!==e.pan_speed&&(this.pan_speed=e.pan_speed),void 0!==e.dollhouse_pan_speed&&(this.dollhouse_pan_speed=e.dollhouse_pan_speed),void 0!==e.zoom_duration&&(this.zoom_duration=e.zoom_duration),void 0!==e.pan_angle&&(this.pan_angle=e.pan_angle),void 0!==e.pan_direction&&(this.pan_direction=e.pan_direction)}}!function(e){e.DefurnishView="defurnish_view",e.PresentedBy="presented_by",e.HighlightReel="highlight_reel",e.FloorPlan="floor_plan",e.RoomBounds="room_bounds",e.TourButtons="tour_buttons",e.Labels="labels",e.LabelsDollhouse="labels_dh",e.Measurements="measurements",e.FloorSelect="floor_select",e.SavedMeasurements="measurements_saved",e.Dollhouse="dollhouse",e.InstantTransitions="fast_transitions",e.TransitionSpeed="transition_speed",e.TransitionTime="transition_time",e.PanSpeed="pan_speed",e.DollhousePanSpeed="dollhouse_pan_speed",e.ZoomDuration="zoom_duration",e.PanAngle="pan_angle",e.PanDirection="pan_direction",e.Units="unit_type",e.DetailsEmail="contact_email",e.DetailsAddress="address",e.DetailsName="contact_name",e.DetailsSummary="model_summary",e.DetailsPhone="contact_phone",e.DetailsModelName="model_name",e.DetailsExternalUrl="external_url",e.BackgroundColor="background_color",e.SpaceSearch="space_search"}(n||(n={}))},23706:(e,t,i)=>{"use strict";i.d(t,{t:()=>s,v:()=>a});const n={bgPrimary:"#0F1011",bgSecondary:"#1e2023",gridPrimary:"#2d3035",gridSecondary:"#171a1c"},s={black:n,grey:{bgPrimary:"#c9cbcc",bgSecondary:"#9d9d9e",gridPrimary:"#c9cbcc",gridSecondary:"#b0b1b1"},white:{bgPrimary:"#fcfdff",bgSecondary:"#ced0d3",gridPrimary:"#fcfdff",gridSecondary:"#e2e3e5"},default:n};var a;!function(e){e.black="black",e.grey="grey",e.white="white",e.default="black"}(a||(a={}))},38710:(e,t,i)=>{"use strict";i.d(t,{GI:()=>d,Q8:()=>m,Wz:()=>l,X5:()=>c,X6:()=>r,ZT:()=>o,_W:()=>a,a_:()=>h,cC:()=>u});var n=i(84229);class s extends n.t{constructor(e="Api Exception"){super(e),this.name="ApiException"}}class a extends s{constructor(e="Unauthorized"){super(e),this.name="Unauthorized"}}class o extends s{constructor(e="Forbidden"){super(e),this.name="Forbidden"}}class r extends s{constructor(e="Not Found"){super(e),this.name="NotFound"}}class l extends s{constructor(e="Model Processing"){super(e),this.name="ModelProcessing",this.code="unavailable.processing"}}class d extends s{constructor(e="Model Failed"){super(e),this.name="ModelFailed",this.code="model.failed"}}class c extends s{constructor(e="Model Archived"){super(e),this.name="ModelArchived",this.code="unavailable.archived"}}class u extends s{constructor(e="Model Pending"){super(e),this.name="ModelPending",this.code="unavailable.pending"}}class h extends s{constructor(e="Model Deleted"){super(e),this.name="ModelDeleted",this.code="unavailable.gone"}}class m extends s{constructor(e="Model Compliance"){super(e),this.name="ModelCompliance",this.code="unavailable.compliance"}}},85869:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(14495),s=i(44383);async function a(e){return{ city: '', country_code: '', country_name: '', region: '' };return(0,s.Jt)(window.location.href)?e.get("geoip/",{responseType:"json",priority:n.QK.LOW}):{city:"",country_code:"",country_name:"",region:""}}},88229:(e,t,i)=>{"use strict";i.d(t,{Tw:()=>r,pN:()=>a,un:()=>o});var n=i(75129);let s=null;const a=e=>{s=e},o=()=>s,r=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-key"]=s),t)},61077:(e,t,i)=>{"use strict";i.d(t,{F:()=>o,x:()=>a});var n=i(75129);let s=null;const a=e=>{s=e},o=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-name"]=s),t)},6126:(e,t,i)=>{"use strict";i.d(t,{_:()=>a,k:()=>o});var n=i(75129);let s=null;const a=e=>{s=e},o=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-version"]=s),t)},83662:(e,t,i)=>{"use strict";i.d(t,{v:()=>h});var n=i(61077),s=i(6126),a=i(88229),o=i(93679),r=i(80168),l=i(70056);const d=[new r.e,new l.u,new o.l];var c=i(75129);const u=[(e,t,i=d)=>{const n=i.map((e=>e.getAuthorizationHeader())).find(Boolean);return n&&(0,c.E)(e)&&(t.authorization=n),t},n.F,s.k,a.Tw],h=(e,t,i=u)=>(i.forEach((i=>i(e,t))),t)},75129:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});const n=["matterport.com","matterportvr.cn","localhost"],s=["/api/"],a=e=>{let t;try{t=new URL(e.toLowerCase())}catch(e){return!1}const{hostname:i,pathname:a}=t,o=n.some((e=>i===e||i.endsWith(`.${e}`))),r=s.some((e=>a.startsWith(e)));return o&&r}},61287:(e,t,i)=>{"use strict";i.d(t,{R4:()=>u,SM:()=>l,ek:()=>m,iw:()=>r,m7:()=>o,qr:()=>c,s8:()=>h,u7:()=>d,zk:()=>a});var n=i(58770),s=i(15855);const a="TransitionType",o=!0,r=s.Dj,l=s.VD,d=s.BU,c=s.lo,u=s.cS,h=s.V4,m=n.ND.Auto},20489:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(61693),s=i(53360);class a extends n.v{constructor(e){super(),this.category=s._A.EXTERNAL,this.mediaType=s.zu.IMAGE,this.mimeType="",this.src="",this.height=0,this.width=0,e&&Object.assign(this,e)}copy(e){return this.id=e.id,this.src=e.src,this.url=e.url,this.thumbnailUrl=e.thumbnailUrl,this.height=e.height,this.width=e.width,this.created=e.created,this.category=e.category,this.mediaType=e.mediaType,this.parentId=e.parentId||"",this.parentType=e.parentType,this.filename=e.filename,this.bytes=e.bytes,this.mimeType=e.mimeType||"",this}}},4234:(e,t,i)=>{"use strict";i.d(t,{Bd:()=>s,OK:()=>d,Yr:()=>l,bI:()=>o,c4:()=>m,dX:()=>c,fz:()=>h,ht:()=>u,ib:()=>a,of:()=>p,ov:()=>r});var n=i(18268);class s extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,src:i}}}s.id="EMBED_MEDIA";class a extends n.u{constructor(e){super(),this.payload={attachment:e}}}a.id="LOAD_ATTACHMENT_EMBED";class o extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,files:i}}}o.id="UPLOAD_ATTACHMENTS";class r extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,prevParentId:i}}}r.id="CONFIRM_ATTACHMENT_CHANGES";class l extends n.u{constructor(e){super(),this.payload={uploadId:e}}}l.id="CANCEL_ATTACHMENT_UPLOAD";class d extends n.u{}d.id="CANCEL_ATTACHMENT_CHANGES";class c extends n.u{constructor(){super()}}c.id="ATTACHMENTS_RESET_DATA";class u extends n.u{constructor(e,t,i){super(),this.payload={open:e,attachments:t,attachmentId:i}}}u.id="TOGGLE_VIEW_ATTACHMENTS";class h extends n.u{constructor(e){super(),this.payload={attachment:e}}}h.id="ATTACHMENT_REMOVE";class m extends n.u{constructor(e){super(),this.payload={id:e}}}m.id="ATTACHMENT_REMOVE_FAILED_UPLOAD";class p extends n.u{constructor(e){super(),this.payload={id:e}}}p.id="ATTACHMENT_DELETE"},53360:(e,t,i)=>{"use strict";var n,s,a,o;i.d(t,{_A:()=>o,d3:()=>s,t2:()=>n,zu:()=>a}),function(e){e.FILE_TOO_LARGE="oversize",e.EMPTY_FILE="empty",e.OVER_QUOTA="overQuota",e.UPLOAD_FAILED="failed",e.PERMISSION_DENIED="permission"}(n||(n={})),function(e){e.EMBED_FAIL="embedFail",e.EMBED_SUCCESS="success"}(s||(s={})),function(e){e.IMAGE="image",e.PDF="pdf",e.VIDEO="video",e.RICH="rich",e.ZIP="zip",e.TEXT="text",e.AUDIO="audio",e.MODEL="model",e.APPLICATION="application"}(a||(a={})),function(e){e.EXTERNAL="external",e.UPLOAD="upload",e.SANDBOX="sandbox"}(o||(o={}))},52937:(e,t,i)=>{"use strict";i.d(t,{Bo:()=>a,LY:()=>s,iS:()=>n,yv:()=>o});const n=25,s=524288e3,a=["image/gif","image/png","image/jpeg","image/webp","image/bmp"],o=["image/gif","image/png","image/jpeg","image/webp"]},91183:(e,t,i)=>{"use strict";i.d(t,{Y:()=>u,g:()=>c});var n=i(35652),s=i(16276),a=i(88488),o=i(89552),r=i(20489),l=i(53360);const d=new n.Ay("external-attachment-deserializer");class c{constructor(){}deserialize(e){if(!e||!this.validate(e))return d.debug("Deserialized invalid external attachment data from MDS",e),null;const t=new r.o;return t.id=e.id,t.created=(0,a.X)(e.created),t.src=e.url||"",t.thumbnailUrl=new s.f(e.thumbnailUrl||"",(0,a.X)(e.validUntil,null)),t.url=new s.f(e.url||"",(0,a.X)(e.validUntil,null)),e.mediaType&&(t.mediaType=(0,o.P4)(e.mediaType)),t.category=l._A.EXTERNAL,e.width&&(t.width=e.width),e.height&&(t.height=e.height),t.parentType=e.parentDetails.type,t.parentId=e.parentDetails.parent.id,t}validate(e){if(!e)return!1;const t=["id","created","modified","mediaType","parentDetails"].filter((t=>!(t in e))),i=0===t.length;return i||d.debug("Attachment invalid:",{missingFields:t}),i}}const u=function(){return new c}},86014:(e,t,i)=>{"use strict";i.d(t,{V:()=>u,x:()=>c});var n=i(35652),s=i(88488),a=i(89552),o=i(20489),r=i(53360),l=i(16276);const d=new n.Ay("file-attachment-deserializer");class c{constructor(){}deserialize(e){if(!e||!this.validate(e))return d.debug("Deserialized invalid file attachment data from MDS",e),null;const t=new o.o;return t.id=e.id,t.created=(0,s.X)(e.created),e.mimeType&&(t.mimeType=e.mimeType,t.mediaType=(0,a.uc)(e.mimeType)),t.category=r._A.UPLOAD,t.thumbnailUrl=new l.f(e.url||"",(0,s.X)(e.validUntil,null)),t.url=new l.f(e.url||"",(0,s.X)(e.validUntil,null)),t.filename=e.filename||"",t.bytes=e.bytes||0,t.width=e.imageWidth||0,t.height=e.imageHeight||0,t}validate(e){if(!e)return!1;return["id","created","url","mimeType","filename"].every((t=>t in e))}}const u=function(){return new c}},89552:(e,t,i)=>{"use strict";i.d(t,{P4:()=>u,QQ:()=>o,X6:()=>m,c9:()=>l,ft:()=>h,rV:()=>r,rg:()=>d,uc:()=>c});var n=i(53360),s=i(52937),a=i(54244);function o(e){return!(e.category!==n._A.UPLOAD||!e.mimeType)&&s.yv.includes(e.mimeType)}function r(e){return e.category===n._A.EXTERNAL||e.category===n._A.SANDBOX||!!e.mimeType&&s.Bo.includes(e.mimeType)}function l(e){return e.filter((e=>r(e)))}function d(e){return e.filter((e=>!r(e)))}function c(e){return e.startsWith("image")?n.zu.IMAGE:e.startsWith("video")?n.zu.VIDEO:e.startsWith("audio")?n.zu.AUDIO:e.startsWith("model")?n.zu.MODEL:e.startsWith("text")?n.zu.TEXT:"application/pdf"===e?n.zu.PDF:n.zu.APPLICATION}function u(e){switch(e){case a.I$.IMAGE:return n.zu.IMAGE;case a.I$.PDF:return n.zu.PDF;case a.I$.VIDEO:return n.zu.VIDEO;case a.I$.RICH:return n.zu.RICH;case a.I$.ZIP:return n.zu.ZIP;default:throw Error(`Unknown attachment media type ${e}`)}}function h(e){switch(e){case n.zu.IMAGE:return a.I$.IMAGE;case n.zu.PDF:return a.I$.PDF;case n.zu.VIDEO:return a.I$.VIDEO;case n.zu.RICH:return a.I$.RICH;case n.zu.ZIP:return a.I$.ZIP;default:throw Error(`Unknown media type ${e}`)}}function m(e){if(!e)return"0";const t=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),3),i=["B","kB","MB","GB"][t];return`${Number((e/Math.pow(1e3,t)).toFixed(1))}${i}`}},45490:(e,t,i)=>{"use strict";i.d(t,{J:()=>p});var n=i(53950),s=i(90280),a=i(68909),o=i(61693),r=i(48071),l=i(75673),d=i(40888),c=i(79953),u=i(39591),h=i(1785),m=i(99817);class p extends o.v{constructor(e){super(),this.position=new a.Vector3,this.rotation=new a.Quaternion,this.focalDistance=-1,this._autoOrthoApplied=!1,this._shouldAutoOrtho=!1,this._frustum=new a.Frustum,this.fovCorrectedPosition=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(this.fovCorrectionOffset()).add(this.position),e)})(),this.fovCorrectionOffsetVec=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(-this.fovCorrectionOffset()),e)})(),this.focalPoint=(()=>{const e=new a.Vector3,t=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(this.focalDistance),t.copy(this.position).add(e),t)})(),this.forward=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation),e)})(),this.pitchFactor=(()=>{const e=(0,c.Bo)(.6,0,.88,.5);return()=>{const t=(0,l.H)(this.phi()),i=(0,l.H)(m.oO),n=Math.max((t-i)/(90-i),0),s=e(n),a=1-s,o=1-Math.round(s);return Math.abs(a-o)<=.001?o:a}})(),this.projection=(0,n.hn)(e),this.isPitchFactorOrtho=new h.r((()=>(0,u.aY)(this.pitchFactor())),[this.onChanged.bind(this)]),this.isProjectionOrtho=new h.r((()=>(0,s.Gp)(this.projection)),[this.onChanged.bind(this)]),this.worldspaceFrustum=new h.r((()=>(0,u.tF)(this,this._frustum)),[this.onChanged.bind(this)]),this.isPitchFactorTransitionActive=new h.r((()=>{const e=Math.abs(this.pitchFactor());return e>0&&e<1}),[this.onChanged.bind(this)])}setAutoOrtho(e){this._shouldAutoOrtho=e}get autoOrtho(){return this._shouldAutoOrtho}get autoOrthoApplied(){return this._autoOrthoApplied}fovCorrectedFocalDistance(){return this.focalDistance/this.fovDistanceScale()}fovCorrectionOffset(){return this.focalDistance-this.fovCorrectedFocalDistance()}aspect(){return this.projection.elements[5]/this.projection.elements[0]}halfHeight(){return this.fovCorrectedFocalDistance()*Math.tan((0,l.pu)(n.Bv.fov/2))}fovDistanceScale(e){const{minFov:t}=n.Bv,i=null!=e?Math.max(e,t):this.isOrtho()?t:(0,l.H)(this.fovY());return Math.tan((0,l.pu)(n.Bv.fov/2))/Math.tan((0,l.pu)(i)/2)}phi(){return(0,u.rC)(this.rotation)}clone(e=new p(this.aspect())){return e.position.copy(this.position),e.rotation.copy(this.rotation),e.focalDistance=this.focalDistance,e.projection.copy(this.projection),e._autoOrthoApplied=this.autoOrthoApplied,e._shouldAutoOrtho=this.autoOrtho,e}applyPhiBasedFovSquish(){if(!this._shouldAutoOrtho)return;const e=(0,d.C)(0,n.Bv.fov,this.pitchFactor()),t=this.aspect(),i=this.fovCorrectedFocalDistance()*this.fovDistanceScale(e),{near:s,far:a}=(0,n.Li)(i);if(e>n.Bv.minFov)this.projection.makePerspectiveFov(e,t,s,a);else{const e=this.halfHeight(),t=this.aspect()*e;this.projection.makeOrthographic(-t,t,e,-e,s,a)}this.focalDistance=i,this.position.add(this.fovCorrectionOffsetVec()),this._autoOrthoApplied=!0}unapplyPhiBasedFovSquish(){if(!this._autoOrthoApplied)return;const e=this.fovCorrectedPosition().clone(),t=this.fovCorrectedFocalDistance();this.position.copy(e),this.focalDistance=t,this.resetProjMatrix(),this._autoOrthoApplied=!1}copy(e){return this.position.copy(e.position),this.rotation.copy(e.rotation),this.focalDistance=e.focalDistance,this.projection.copy(e.projection),this._autoOrthoApplied=e.autoOrthoApplied,this._shouldAutoOrtho=e.autoOrtho,this.commit(),this}isOrtho(){return(0,s.Gp)(this.projection)}fovX(){return 2*Math.atan(1*this.aspect()/this.projection.elements[5])}fovY(){return 2*Math.atan(1/this.projection.elements[5])}resetProjMatrix(){this.projection.makePerspectiveFov(n.Bv.fov,this.aspect(),n.Bv.near,n.Bv.far)}}},45018:(e,t,i)=>{"use strict";i.d(t,{M:()=>O,q:()=>E});var n=i(53950),s=i(61589);const a=(e,t)=>e&&t?e.equals(t):e===t;var o=i(90280),r=i(78096),l=i(75673),d=i(45490),c=i(71136),u=i(83916),h=i(68909),m=i(61693);class p extends m.v{constructor(){super(...arguments),this.startTime=0,this.duration=0,this.active=!1,this.autoOrtho=!1,this.type=null,this.progress=new u.z(0),this.blackoutProgress=new u.z(0),this.from={position:new h.Vector3,rotation:new h.Quaternion,projection:new r.k},this.to={position:new h.Vector3,rotation:new h.Quaternion,projection:new r.k},this.rotationDelay=0,this.rotationDuration=1,this.matrixDelay=0,this.matrixDuration=1,this.activeInternal=!1,this.promise=null,this.orbitTarget=null,this.orbitStartPhi=0,this.orbitStartDistance=0,this.instantOrbit=!1,this.fadeToBlackSubType=c.pw.Full}}const E=(e,t,i=!0)=>{t.position=S(e.position,t.position,i),t.rotation=S(e.rotation,t.rotation,i),t.projection=S(e.projection,t.projection,i),t.focalDistance=e.focalDistance},S=(e,t,i=!0)=>(e&&!t?t=e.clone():e&&t?t.copy(e):i&&(t=void 0),t);class O extends s.B{constructor(e,t){super(),this._width=e,this._height=t,this.name="camera",this._baseProjection=new r.k,this._orthoMatrix=new r.k,this._lastOrthoZoom=1,this._perspectiveMatrix=new r.k,this._metersPerPx=null,this.pose=new d.J(e/t),this.transition=new p,this.setCameraDimensions(e,t),this._baseFovY=l.fy*n.Bv.fov,this.pose.onChanged((()=>this._metersPerPx=null))}setCameraDimensions(e,t){if(isNaN(e)||0===e||isNaN(t)||0===t)return;this._width=e,this._height=t,this._metersPerPx=null;const i=e/t,{near:s,far:a}=(0,n.Li)(this.pose.focalDistance),r=this.isOrtho()?(0,n.Ei)(e,t,t/(2*this.orthoZoom()),1,s,a,this._orthoMatrix):this._perspectiveMatrix.makePerspectiveFov(l.tm*this.fovY(),i,s,a);if(this.pose.projection.copy(r),this.transition.active&&this.transition.to.projection)if((0,o.Gp)(this.transition.to.projection)){const i=(0,o.BN)(this.transition.to.projection);this.transition.to.projection.copy((0,n.Ei)(e,t,t/(2*i),1))}else{const e=2*l.tm*Math.atan(1/this.transition.to.projection.elements[5]);this.transition.to.projection.makePerspectiveFov(e,i,n.Bv.near,n.Bv.far)}this.pose.commit()}setAutoOrtho(e){e!==this.pose.autoOrtho&&(this.pose.setAutoOrtho(e),e?this.pose.applyPhiBasedFovSquish():this.pose.unapplyPhiBasedFovSquish(),this.pose.commit())}setBaseProjection(e){this._baseProjection=e}get width(){return this._width}get height(){return this._height}get screenDiagonalPx(){return Math.sqrt(this.width*this.width+this.height*this.height)}get baseFovY(){return this._baseFovY}aspect(){return this.pose.aspect()}fovY(){return this.pose.fovY()}fovX(){return this.pose.fovX()}isOrtho(){return this.pose.isOrtho()}baseZoom(){return this.pose.projection.elements[0]/2}defaultZoom(){return(0,o.Gp)(this._baseProjection)?(0,o.BN)(this._baseProjection):this.perspectiveZoom()}zoom(){return this.isOrtho()?this.orthoZoom():this.perspectiveZoom()}orthoZoom(){const e=(0,o.BN)(this.pose.projection);return isNaN(e)?this._lastOrthoZoom:(this._lastOrthoZoom=e,e)}perspectiveZoom(){return this.baseFovY/this.fovY()}metersPerPx(){return null==this._metersPerPx?(this._metersPerPx=(0,o.ff)(this.pose.focalDistance,this.pose.projection.asThreeMatrix4(),this.width),this._metersPerPx):this._metersPerPx}copyTransition(e){this.transition.active=e.active,this.transition.activeInternal=e.activeInternal,this.transition.type=e.type,this.transition.startTime=e.startTime,this.transition.duration=e.duration,this.transition.rotationDelay=e.rotationDelay,this.transition.rotationDuration=e.rotationDuration,this.transition.matrixDelay=e.matrixDelay,this.transition.matrixDuration=e.matrixDuration,this.transition.fadeToBlackSubType=e.fadeToBlackSubType,e.progress&&this.transition.progress.copy(e.progress),e.blackoutProgress&&this.transition.blackoutProgress.copy(e.blackoutProgress),e.from&&E(e.from,this.transition.from),e.to&&E(e.to,this.transition.to),this.transition.promise=e.promise}canTransition(){return!this.transition.active}clone(){const e=new O(this.width,this.height);return e.copy(this),e}copy(e){this.pose.copy(e.pose),this.pose.commit(),this._baseFovY=e.baseFovY,this.copyTransition(e.transition),this.transition.commit(),this._width=e.width,this._height=e.height}shallowIsEqual(e){return this.pose.position.equals(e.pose.position)&&this.pose.rotation.equals(e.pose.rotation)&&this.pose.projection.equals(e.pose.projection)&&this.pose.focalDistance===e.pose.focalDistance&&this.baseFovY===e.baseFovY}isEqual(e){return this.shallowIsEqual(e)&&this.transitionIsEqual(e.transition)}transitionIsEqual(e){return this.transition.active===e.active&&this.transition.type===e.type&&this.transition.progress.equals(e.progress)&&this.transition.blackoutProgress.equals(e.blackoutProgress)&&this.transition.rotationDelay===e.rotationDelay&&this.transition.rotationDuration===e.rotationDuration&&this.transition.matrixDelay===e.matrixDelay&&this.transition.matrixDuration===e.matrixDuration&&this.transition.activeInternal===e.activeInternal&&a(this.transition.from.position,e.from.position)&&a(this.transition.from.rotation,e.from.rotation)&&a(this.transition.from.projection,e.from.projection)&&a(this.transition.to.position,e.to.position)&&a(this.transition.to.rotation,e.to.rotation)&&a(this.transition.to.projection,e.to.projection)&&this.transition.startTime===e.startTime&&this.transition.duration===e.duration}}},53950:(e,t,i)=>{"use strict";i.d(t,{Bv:()=>s,Ei:()=>r,Li:()=>a,hn:()=>o});var n=i(78096);const s={fov:75,near:.1,far:3e3,minFov:1},a=e=>{const t=s.far-s.near,i=Math.max(s.near,e-t/2);return{near:i,far:i+t}},o=(e,t)=>(t||(t=new n.k),t.makePerspectiveFov(s.fov,e,s.near,s.far)),r=(e,t,i=1,a=1,o=s.near,r=s.far,l)=>{l||(l=new n.k);const d=e/2,c=t/2,u=l.makeOrthographic(-d,d,c,-c,o*a,r*a);return u.elements[0]*=i,u.elements[5]*=i,u}},3953:(e,t,i)=>{"use strict";i.d(t,{R:()=>a});var n=i(47952),s=i(45018);const a=(0,n.v)(s.M)},15840:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var n=i(96540),s=i(3953);function a(){const e=(0,s.R)(),[t,i]=(0,n.useState)(e?e.pose.pitchFactor():1);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((()=>{i(e.pose.pitchFactor())}));return i(e.pose.pitchFactor()),()=>{t.cancel()}}),[e]),t}},71136:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{fl:()=>n,mG:()=>a,pw:()=>s}),function(e){e[e.Instant=0]="Instant",e[e.FadeToBlack=1]="FadeToBlack",e[e.Interpolate=2]="Interpolate",e[e.MoveToBlack=3]="MoveToBlack",e[e.OrbitTo=4]="OrbitTo"}(n||(n={})),function(e){e[e.Full=0]="Full",e[e.ClearToBlack=1]="ClearToBlack",e[e.BlackToClear=2]="BlackToClear"}(s||(s={})),function(e){e[e.Top=1]="Top",e[e.Bottom=2]="Bottom"}(a||(a={}))},99817:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>r,gT:()=>o,nP:()=>l,oO:()=>d});var n=i(78652),s=i(71136),a=i(75673);const o="dollhouse-peekaboo",r=Object.freeze({camera:{transitionBlackoutTime:300,transitionFadeTime:800,baseTransitionTime:200,transitionSpeed:3,autoOrbitMinVelocity:.002,autoOrbitMaxVelocity:.08,autoOrbitTransitionTIme:1e3,autoOrbitLowerPhiLimit:30*a.fy,autoOrbitUpperPhiLimit:90*a.fy}}),l={[n.o.Desktop]:s.fl.Interpolate,[n.o.Mobile]:s.fl.Interpolate,[n.o.VrOrientOnly]:s.fl.FadeToBlack,[n.o.VrWithController]:s.fl.FadeToBlack,[n.o.VrWithTrackedController]:s.fl.FadeToBlack},d=75*a.fy},39591:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>S,OG:()=>E,aY:()=>g,bA:()=>u,bz:()=>c,jn:()=>h,n4:()=>A,rC:()=>_,tF:()=>T,wc:()=>p,zH:()=>O});var n=i(68909),s=i(48071),a=i(45490),o=i(43998),r=i(40888),l=i(99817),d=i(71136);const c=(()=>{const e=new n.Matrix4,t=new n.Matrix4;return(i,s,a,o)=>(a=a||new n.Vector2,o=o||new n.Vector3,m(i.pose,t),e.copy(t),e.invert(),o.set(s.x,s.y,s.z).applyMatrix4(e).applyMatrix4(i.pose.projection.asThreeMatrix4()),O(i.width,i.height,o,a),{screenPosition:a,ndcPosition:o})})(),u=(()=>{const e=new n.Vector3,t=new n.Vector2;return(i,n,s,a,o,r)=>(e.copy(h(i,n,s,r)),O(a,o,e,t),t)})(),h=(()=>{const e=new n.Matrix4,t=new n.Matrix4,i=new n.Vector3;return(n,a,o,r)=>(e.compose(a,o,s.B1.UNIT),t.copy(e),t.invert(),i.copy(n).applyMatrix4(t).applyMatrix4(r),i)})(),m=(e,t)=>(t=t||new n.Matrix4).compose(e.position,e.rotation,s.B1.UNIT),p=(e,t,i,s,a)=>((a=a||new n.Vector2).x=e/i*2-1,a.y=-t/s*2+1,a),E=(e,t,i=.5,s)=>((s=s||new n.Vector3).x=t.x,s.y=t.y,s.z=i,S(e.pose,s)),S=(()=>{const e=new n.Matrix4,t=new n.Matrix4;return(i,s,a)=>((a=a||new n.Vector3).copy(s),t.copy(i.projection.asThreeMatrix4()),t.invert(),m(i,e),a.applyMatrix4(t).applyMatrix4(e))})(),O=(e,t,i,s)=>((s=s||new n.Vector2).set((i.x+1)*e/2,(1-i.y)*t/2),s),g=e=>Math.abs(e)<.1,_=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3;return n=>{e.copy(s.B1.FORWARD).applyQuaternion(n).multiplyScalar(-1),t.copy(s.B1.UP).applyQuaternion(n);const a=t.dot(s.B1.UP)<=0;i.set(e.x,0,e.z);const o=a?-i.length():i.length(),r=e.y;return Math.atan2(r,o)}})(),T=(()=>{const e=new n.Vector3(-1,-1,-1),t=new n.Vector3,i=new n.Vector3(1,-1,-1),s=new n.Vector3,a=new n.Vector3(1,1,-1),o=new n.Vector3,r=new n.Vector3(-1,1,-1),l=new n.Vector3,d=new n.Vector3(-1,-1,1),c=new n.Vector3,u=new n.Vector3(1,-1,1),h=new n.Vector3,p=new n.Vector3(1,1,1),E=new n.Vector3,S=new n.Vector3(-1,1,1),O=new n.Vector3,g=new n.Matrix4,_=new n.Matrix4;return(T,A)=>(A=A||new n.Frustum,_.copy(T.projection.asThreeMatrix4()),_.invert(),m(T,g),t.copy(e),t.applyMatrix4(_).applyMatrix4(g),s.copy(i),s.applyMatrix4(_).applyMatrix4(g),o.copy(a),o.applyMatrix4(_).applyMatrix4(g),l.copy(r),l.applyMatrix4(_).applyMatrix4(g),c.copy(d),c.applyMatrix4(_).applyMatrix4(g),h.copy(u),h.applyMatrix4(_).applyMatrix4(g),E.copy(p),E.applyMatrix4(_).applyMatrix4(g),O.copy(S),O.applyMatrix4(_).applyMatrix4(g),A.planes[0].setFromCoplanarPoints(t,l,o),A.planes[1].setFromCoplanarPoints(c,h,E),A.planes[2].setFromCoplanarPoints(t,c,O),A.planes[3].setFromCoplanarPoints(t,s,h),A.planes[4].setFromCoplanarPoints(s,o,E),A.planes[5].setFromCoplanarPoints(o,l,O),A)})(),A=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Quaternion,r=new n.Vector3,c=new n.Quaternion;let u=null;return(n,h,m,p,E,S)=>{null==u&&(u=new a.J(1));const O=l.Ay.camera.autoOrbitUpperPhiLimit,g=l.Ay.camera.autoOrbitLowerPhiLimit,T=n;u.copy(T),u.unapplyPhiBasedFovSquish();const A=T.phi(),L=g-A,I=O-A,f=h===d.mG.Top?I:L,b=E?f:v(A,m,h),R=(0,o.qE)(b,L,I),y=O-A<1e-10,M=A-g<1e-10;if(h===d.mG.Top?y:M)return 1;const D=p;e.copy(s.B1.FORWARD).applyQuaternion(T.rotation),e.setLength(D),e.addVectors(T.fovCorrectedPosition(),e),t.copy(s.B1.RIGHT),i.setFromAxisAngle(t.applyQuaternion(T.rotation),-R),r.copy(T.fovCorrectedPosition()).sub(e).applyQuaternion(i),c.copy(T.rotation).premultiply(i),r.add(e),c.normalize(),_(c)>=O&&N(c),u.position.copy(r),u.rotation.copy(c),u.focalDistance=D,u.applyPhiBasedFovSquish(),S.copy(u);const k=h===d.mG.Top?O:g,P=Math.abs((S.phi()-m)/(k-m));return(0,o.qE)(P,0,1)}})(),v=(e,t,i)=>{const n=i===d.mG.Top?1:-1,s=i===d.mG.Top?l.Ay.camera.autoOrbitUpperPhiLimit:l.Ay.camera.autoOrbitLowerPhiLimit,a=Math.abs((s-e)/(s-t));return n*(0,r.C)(l.Ay.camera.autoOrbitMinVelocity,l.Ay.camera.autoOrbitMaxVelocity,a)*2},N=(()=>{const e=s.B1.RIGHT.clone(),t=s.B1.UP.clone(),i=s.B1.BACK.clone(),a=new n.Matrix4;return n=>{e.copy(s.B1.RIGHT),t.copy(s.B1.UP),i.copy(s.B1.BACK),e.applyQuaternion(n),e.y=0,t.applyQuaternion(n),t.y=0,i.applyQuaternion(n),i.x=0,i.y=1,i.z=0,a.makeBasis(e,t,i),n.setFromRotationMatrix(a)}})()},76035:(e,t,i)=>{"use strict";i.d(t,{G:()=>a,n:()=>o});var n=i(82110),s=i(61589);class a extends s.B{constructor(e,t,i){super(),this.name="cam-start",this.moveCameraOnViewChange=!0,this.icon=e,this.thumb=t,this.pose=new o,i&&this.pose.copy(i)}copy(e,t=!1){var i;return this.icon=e.icon,t?e.thumb&&(null===(i=this.thumb)||void 0===i||i.refreshFrom(e.thumb)):this.thumb=e.thumb,this.pose.copy(e.pose),this}getStartingPose(){return this.deepLinkPose||this.pose}get hasCameraPose(){return this.pose&&this.pose.camera&&void 0!==this.pose.camera.position}}class o{constructor(e=n.N3.Panorama,t,i,s,a,o){this.mode=e,this.camera={position:t||void 0,rotation:i||void 0,zoom:s||void 0},this.pano=a||{uuid:void 0},this.floorVisibility=o||void 0}copy(e){return this.camera.position=r(e.camera.position,this.camera.position),this.camera.rotation=r(e.camera.rotation,this.camera.rotation),this.camera.zoom=e.camera.zoom,this.pano.uuid=e.pano.uuid?e.pano.uuid.slice():void 0,this.mode=e.mode,this.floorVisibility=e.floorVisibility?e.floorVisibility.slice():void 0,this}}const r=(e,t)=>e&&t?t.copy(e):e&&!t?e.clone():void 0},69505:(e,t,i)=>{"use strict";i.d(t,{s:()=>m});var n=i(68909),s=i(82110),a=i(95149),o=i(35652),r=i(76735),l=i(28606),d=i(99817),c=i(50281);const u=new o.Ay("navurl");class h extends Error{constructor(e,t){super(`view mode ${e} is invalid${t?` when ${t}`:""}`)}}class m{static encodeVector3(e,t=2){const{x:i,y:n,z:s}=e;return m.packFloats([i,n,s],t)}static decodeVector3(e){const t=m.unpackFloats(e,3);return t?new n.Vector3(...t):null}static encodeQuaternion(e,t=2){return m.packFloats([e.x,e.y,e.z,e.w],t)}static decodeQuaternion(e){const t=m.unpackFloats(e,4);return t&&!(0,l.PH)(t)?new n.Quaternion(...t):null}static encodeEuler(e,t=2){return m.packFloats([e.x,e.y,e.z],t)}static decodeEuler(e){const t=m.unpackFloats(e,3);return t?new n.Euler(t[0],t[1],t[2],"XYZ"):void 0}static packFloats(e,t=2){let i=e.map((e=>{const i=parseFloat(e.toFixed(t)).toString().replace(/^(\-)?0+.(\d+)/,"$1.$2");return"0"===i?"":i})).join(",");return i=i.replace(/,+$/,""),i}static unpackFloats(e,t=0){const i=e.split(",").map((e=>""===e?0:parseFloat(e)));if(!i||i.includes(NaN))return[];for(;i.length1&&(h.sf=u),l===s.N3.Floorplan&&(h.sz=parseFloat(e.zoom().toFixed(2)))}return h.sq=m.encodeQuaternion(e.pose.rotation),u.debug(`Short URL params for current location ${JSON.stringify(h)}`),delete h.sq,h}static getStartPose({cameraData:e,viewmodeData:t,floorsViewData:i,sweepData:n,settingsData:a}){const o={x:0,y:0,z:0,w:1};o.x=e.pose.rotation.x,o.y=e.pose.rotation.y,o.z=e.pose.rotation.z,o.w=e.pose.rotation.w;const r=(null==a?void 0:a.tryGetProperty(d.gT,!1))||!1,{position:l,viewmode:u}=(0,c.nF)(e,i,t,r),h={x:0,y:0,z:0};h.x=l.x,h.y=l.y,h.z=l.z;const p={camera_mode:m.validateViewmode(u),camera_position:h,camera_quaternion:o};return t.isInside()?p.scan_id=n.currentSweep:p.floor_visibility=i.getFloorsVisibility(),u===s.N3.Floorplan&&(p.ortho_zoom=e.zoom()),p}static parseViewmode(e){let t=m.DEFAULT_VIEW_MODE;return null!=e&&(t=parseInt(e,10)),m.validateViewmode(t)}static validateViewmode(e){if(null===e||!m.VALID_URL_VIEW_MODES.includes(e))throw new h(e);return e}}m.DEFAULT_VIEW_MODE=s.N3.Panorama,m.VALID_URL_VIEW_MODES=[s.N3.Panorama,s.N3.Dollhouse,s.N3.Floorplan,s.N3.Outdoor,s.N3.Mesh]},80262:(e,t,i)=>{"use strict";i.d(t,{f:()=>s,y:()=>a});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={snapshotSid:e}}}s.id="SET_CAMERA_START";class a extends n.u{constructor(e){super(),this.payload={moveCamera:e}}}a.id="SET_MOVE_CAMERA_ON_VIEW_CHANGE"},18284:(e,t,i)=>{"use strict";i.d(t,{X:()=>o,d:()=>a});var n=i(82110);const s=new(i(35652).Ay)("camera-start-util");function a(e,t){const{mode:i,quaternion:n,position:a,floorVisibility:o,sweepIndex:r,zoom:l}=e;let{panoId:d}=e;if(d&&!t.containsSweep(d)){const e=t.getSweepByUuid(d);e&&(d=e.id)}if(!d&&void 0!==r){const e=t.getSweepByIndex(r);e?d=e.id:s.debug(`Failed to load sweep index ${r}`)}return{mode:i,camera:{position:a,rotation:n,zoom:l},pano:{uuid:d},floorVisibility:o}}function o(e,t){return!!e&&(!(0,n.nI)(e.mode)||!!e.pano.uuid&&t.containsSweep(e.pano.uuid))}},53366:(e,t,i)=>{"use strict";i.d(t,{p:()=>s});var n=i(61589);class s extends n.B{constructor(e,t,i){super(),this.name="canvas",this.x=0,this.y=0,this.width=e||0,this.height=t||0,this.canvas=i||null}get aspectRatio(){const e=this.width/this.height;return isFinite(e)?e:1}}},4913:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});var n=i(61589),s=i(29600),a=i(41733);class o extends n.B{constructor(e){super(),this.name="container",this.sizeObservable=new a.L({width:0,height:0}),this.orientation=s.U.LANDSCAPE,this.element=e,this.rootNode=e.getRootNode()}get size(){return this.sizeObservable.value}set size(e){this.sizeObservable.value=e}onPropertyChanged(e,t){return"size"===e?this.sizeObservable.onChanged(t):super.onPropertyChanged(e,t)}}},63954:(e,t,i)=>{"use strict";i.d(t,{A:()=>r,B:()=>l});var n=i(43802),s=i(4913),a=i(29633);const o={width:0,height:0};function r(e){return(0,n.Z)(s.G,"size",e||o)}const l=(0,a.c)("containerSize",r)},29600:(e,t,i)=>{"use strict";var n;i.d(t,{U:()=>n}),function(e){e[e.PORTRAIT=1]="PORTRAIT",e[e.LANDSCAPE=2]="LANDSCAPE"}(n||(n={}))},5156:(e,t,i)=>{"use strict";i.d(t,{NT:()=>s,bx:()=>a,cB:()=>n});const n="features/auto-defurnish",s="spaces.bundles.mp.defurnish";const a="overlayViews"},38439:(e,t,i)=>{"use strict";i.d(t,{Y:()=>N});var n=i(74848),s=i(96540),a=i(58330),o=i(17139),r=i(52385),l=i(33848),d=i(23730),c=i(80262),u=i(10718),h=i(99366),m=i(38216),p=i(54859),E=i(18559),S=i(87039),O=i(56136),g=i(43788),_=i(67913),T=i(51772);var A=i(81866);const{DEFURNISH:v}=h.A.WORKSHOP;function N({viewmode:e}){var t;const{commandBinder:i,editMode:h,analytics:N}=(0,s.useContext)(o.B),L=(0,m.Y)(),I=(0,E.s)("viewer"),f=(0,a.H)(),b=(0,p.L)(),R=(0,S.j)(),y=(0,u.G)(),M=!!y&&(0,l.AF)(y),D=function(){const e=(0,T.o)(),[t,i]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(!e)return()=>{};const t=e.viewmodeChangeEnabledObservable.onChanged(i);return i(e.viewmodeChangeEnabled),()=>t.cancel()}),[e]),t}(),{show:k,dismiss:P}=(0,g.F)(g.m.Defurnish),w=(0,s.useRef)(R),C=M?null!==(t=w.current)&&void 0!==t?t:R:null==b?void 0:b.id,x=(0,s.useCallback)((async()=>{b&&C&&(w.current=null==y?void 0:y.id,N.trackGuiEvent("click_defurnish_mode_button"),await i.issueCommand(new c.y(!1)),await i.issueCommand(new d.uo(C)),await i.issueCommand(new c.y(!0)))}),[N,i,b,C,w,y]);if(!I)return null;const H=f&&h,U=void 0===b||!D||e===A.w5.TRANSITIONING,G=M,F=G?"furniture":"furniture-slash",j=H&&G?void 0:r.Ak.TERTIARY,B=H&&G?"light":"overlay",V=H?r.Mp.LARGE:void 0,W={placement:H?"bottom":"top",offset:H?[0,10]:void 0},z=G?L.t(v.DEFURN_MODE_BUTTON_ACTIVE):L.t(v.DEFURN_MODE_BUTTON),K=L.t(v.DEFURN_NUDGE_TITLE),Y=L.t(v.DEFURN_NUDGE_TEXT);return(0,n.jsx)("div",Object.assign({className:"mode-button mode-buttons mode-defurnish viewmode-controls"},{children:(0,n.jsx)(_.Q,{onClick:x,className:"mode-defurnish-glow",icon:F,variant:j,theme:B,size:V,active:G,disabled:U,tooltip:z,ariaLabel:z,nudgeDisabled:U,nudgeTitle:K,nudgeMessage:Y,nudgeLocalStorage:O.Y.DefurnishNudgeSeen,nudgeSessionKey:Y,tooltipOptions:W,showTimeout:k,dismissTimeout:P})}))}},54859:(e,t,i)=>{"use strict";i.d(t,{L:()=>a});var n=i(33848),s=i(30175);function a(){const e=(0,s.h)({includeDefurnish:!0}).filter((e=>(0,n.AF)(e)))||[];return e.sort(((e,t)=>t.created.getTime()-e.created.getTime())),e[0]}},37878:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(61589),s=i(71294);class a extends n.B{constructor(){super(...arguments),this.name="dollhouse-control-data",this.autoOrbitPromise=null,this._autoOrbitTarget="top"}get isAutoOrbitting(){return null!==this.autoOrbitPromise}get autoOrbitTarget(){return this._autoOrbitTarget}get targetState(){return this.isAutoOrbitting?this.autoOrbitTarget:null}startAutoOrbit(e="top"){return this._autoOrbitTarget=e,this.autoOrbitPromise=new s.i,this.commit(),this.autoOrbitPromise.nativePromise()}stopAutoOrbit(){const e=this.autoOrbitPromise;this.autoOrbitPromise=null,this.commit(),null==e||e.resolve()}}},18294:(e,t,i)=>{"use strict";i.d(t,{i:()=>s});var n=i(14754);class s extends n.QB{}},21674:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="GET_FLOOR_INTERSECT"},13438:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.floorId=e,this.floorName=t}}},10995:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.from=e,this.to=t}}},34040:(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var n=i(61589),s=i(1803),a=i(54998),o=i(63770);class r extends n.B{constructor(e){super(),this.name="floors",this.floors=(0,a.y)(e)}onNameChange(e){let t=[];return(0,s.Sh)((()=>{this.getOrderedValues().forEach(((i,n)=>{t.push(i.onPropertyChanged("name",e))}))}),(()=>{t.forEach((e=>e.cancel())),t=[]}),!0)}addFloor(e){this.floors.set(e.id,e)}getFloor(e){if(!this.floors.has(e))throw new o.v;return this.floors.get(e)}hasFloor(e){return this.floors.has(e)}getFloorAtIndex(e){return this.floors.values.find((t=>t.index===e))}getFloorByMeshGroup(e){return this.floors.values.find((t=>t.meshGroup===e))}getFloorCount(){return this.floors.length}getCollection(){return this.floors}iterate(e){return this.getOrderedValues().forEach(e)}getTopFloor(){const e=this.getOrderedValues();if(!e.length)throw new o.v("Cannot get top floor, model has no floors");return e[e.length-1]}getBottomFloor(){const e=this.getOrderedValues();if(!e.length)throw new o.v("Cannot get bottom floor, model has no floors");return e[0]}getFloorAtHeight(e,t=!1){const i=this.getOrderedValues();t&&i.reverse();for(const t of i){const i=t.boundingBox;if(i.min.y<=e&&e<=i.max.y)return t}const n=this.getBottomFloor();return es&&(i=s,t=n)}return t}rename(e,t){if(!this.floors.has(e))return;const i=this.floors.get(e);i.name=t,i.commit()}getOrderedValues(){return this.floors.values.sort(((e,t)=>e.index-t.index))}getFloorIdMap(e){const t={};for(const i of this.floors.values)e?t[String(i.index)]=i.id:t[i.id]=String(i.index);return t}}},63770:(e,t,i)=>{"use strict";i.d(t,{v:()=>s});var n=i(84229);class s extends n.t{constructor(e="Invalid Floor"){super(e),this.name="InvalidFloorException"}}},92590:(e,t,i)=>{"use strict";i.d(t,{X:()=>O});var n=i(83916),s=i(61589),a=i(99366),o=i(41733),r=i(8371),l=i(61693);class d extends l.v{constructor(){super(...arguments),this.hidden=!1,this.navigable=!0,this.hasEnabledAlignedSweeps=!1,this.hasEnabledUnalignedSweeps=!1}}var c=i(54998),u=i(45021),h=i(35596);class m{constructor(e,t,i,n,s){this.floors=e,this.viewmodeData=t,this.sweepData=i,this.applicationData=n,this.currentFloorObservable=s,this.bindings=[],this.states=new c.E,this._navigableFloorIds=new u.X,this.hasEnabledAlignedSweeps=!1,this.updateFloorSweepData=()=>{const e=this.sweepData;this.isEditMode()||(this.states.values.forEach((e=>{e.hasEnabledAlignedSweeps=!1,e.hasEnabledUnalignedSweeps=!1})),e.iterate((e=>{if(null!==e.floorId){let t=this.getState(e.floorId);t||(t=this.initializeFloorState(e.floorId)),e.alignmentType===r.c$.ALIGNED?t.hasEnabledAlignedSweeps||(t.hasEnabledAlignedSweeps=e.enabled):t.hasEnabledUnalignedSweeps||(t.hasEnabledUnalignedSweeps=e.enabled),t.commit(),this.hasEnabledAlignedSweeps||(this.hasEnabledAlignedSweeps=e.enabled)}}))),this.updateNavigable()},this.updateHidden=()=>{const e=!this.currentFloorId,t=this.isViewingAlignedPano();this.states.keys.forEach((i=>{const n=!!i&&i===this.currentFloorId,s=this.getState(i);s.hidden=!(e||n||t),s.commit()}))},this.updateNavigable=()=>{const e=this.isEditMode(),t=this.isViewingAlignedPano(),i=this.viewmodeData.isDollhouse()||this.viewmodeData.isFloorplan();this.states.keys.forEach((n=>{const s=this.getState(n);s.navigable=!!e||(t?s.hasEnabledAlignedSweeps:!!i||(s.hasEnabledAlignedSweeps||s.hasEnabledUnalignedSweeps)),s.commit()}));const n=[];this.floors.iterate((e=>{this.getState(e.id).navigable&&n.push(e.id)})),this._navigableFloorIds.replace(n)},this.bindings.push(t.makeModeChangeSubscription(this.updateHidden),i.makeSweepChangeSubscription(this.updateHidden),s.onChanged(this.updateHidden),t.makeModeChangeSubscription(this.updateNavigable),i.makeSweepChangeSubscription(this.updateNavigable),n.onPropertyChanged("application",this.updateFloorSweepData)),this.initializeFloorStates(),this.updateFloorSweepData(),this.updateHidden()}getState(e){return this.states.get(e)}get navigableFloorIds(){return this._navigableFloorIds.values()}onNavigableFloorIdsChanged(e){return this._navigableFloorIds.onChanged(e)}isViewingAlignedPano(){return this.viewmodeData.isInside()&&void 0!==this.sweepData.currentAlignedSweepObject}isEditMode(){return this.applicationData.application===h.lg.WORKSHOP}get currentFloorId(){return this.currentFloorObservable.value?this.currentFloorObservable.value.id:null}initializeFloorStates(){this.floors.iterate((e=>this.initializeFloorState(e.id)))}initializeFloorState(e){const t=new d;return this.states.set(e,t),t}}var p=i(97318);function E(e,t){return e}const S={floorChangesEnabled:()=>!0};class O extends s.B{constructor(e,t,i,s,a,r){super(),this.name="floors-view",this.floorSelectable=!1,this.currentFloorObservable=new o.L(null),this.transitionObservable=new o.L({from:null,to:null,progress:new n.z(0),promise:Promise.resolve()}),this._observableFloorsSelectMode=new o.L(!1),this._observableRoomSelectMode=new o.L(!1),this._showFloorSelection=new o.L(!1),this.onlyShowActiveFloor=new o.L(!1),this.showAllFloorsOption=!0,this.floorSelectHoverEnabled=!0,this.getFloorMin=e=>{const t=e||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(t).bottom},this.getFloorMinPlane=e=>{const t=e||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(t).groundPlane},this.getFloorCentroid=(e,t)=>{const i=t||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(i).boundingBox.getCenter(e)},this.isHidden=e=>"string"==typeof e&&this.stateHelper.getState(e).hidden,this.isNavigable=e=>"string"==typeof e&&this.stateHelper.getState(e).navigable,this.updateViewData=()=>{this.floors.iterate((e=>{this.derivedData[e.id]={id:e.id,index:e.index,name:this.getFloorName(e.id)}})),this.commit()},this.getViewData=e=>{if(!this.derivedData[e]){const t=this.floors.getFloor(e);this.derivedData[e]={id:t.id,index:t.index,name:this.getFloorName(t.id)}}return this.derivedData[e]},this.getAllViewData=()=>{const e=[];return this.floors.iterate((t=>{e.push(this.getViewData(t.id))})),e},this.getFloor=e=>this.floors.getFloor(e),this.floors=e,this.config=null!=r?r:S,this.localize=null!=a?a:E,this.derivedData={},this.stateHelper=new m(e,t,i,s,this.currentFloorObservable),this.updateViewData()}isCurrentOrAllFloors(e){return!e||!this.currentFloorId||e===this.currentFloorId}isCurrentMeshGroupOrAllFloors(e){return this.currentFloorMeshGroup===p.nT||this.currentFloorMeshGroup===e}isCurrentFloorIndexOrAllFloors(e){return this.currentFloorIndex===e||this.currentFloorIndex===p.Zu}makeFloorChangeSubscription(e){return this.currentFloorObservable.onChanged(e)}get currentFloor(){return this.currentFloorObservable.value}get currentFloorId(){var e;return(null===(e=this.currentFloorObservable.value)||void 0===e?void 0:e.id)||null}get currentFloorIndex(){return this.currentFloorObservable.value?this.currentFloorObservable.value.index:p.Zu}get currentFloorMeshGroup(){return this.currentFloorObservable.value?this.currentFloorObservable.value.meshGroup:p.nT}getFloorIndexForMeshGroup(e){if(e===p.nT)return p.Zu;const t=this.floors.getFloorByMeshGroup(e);return t?t.index:p.Zu}get bottomFloorId(){return this.floors.getBottomFloor().id}get topFloorId(){return this.floors.getTopFloor().id}get singleFloor(){if(1===this.floors.getFloorCount())return this.floors.getFloorAtIndex(0)}isMultifloor(){return this.floors.getFloorCount()>1}get nearestFloorId(){return this.transitionActive?this.transition.progress.value>.5?this.transition.to:this.transition.from:this.currentFloorId}get nearestFloor(){const e=this.nearestFloorId;return e?this.floors.getFloor(e):void 0}get transitionActive(){return this.transition.progress.active}get transition(){return this.transitionObservable.value}transitionToFloorInstant(e){this.currentFloorObservable.value=e?this.floors.getFloor(e):null,this.commit()}transitionToFloor(e,t,i,n){const s=this.transitionObservable.value.progress;s.modifyAnimation(0,1,i),this.transitionObservable.value={from:e,to:t,progress:s,promise:n},this.commit(),n.then((()=>{this.transitionToFloorInstant(t)}))}get totalFloors(){return this.floorsEnabled?this.floors.getFloorCount():1}hasEnabledAlignedSweeps(e){return null!==e?this.stateHelper.getState(e).hasEnabledAlignedSweeps:this.stateHelper.hasEnabledAlignedSweeps}getNavigableFloorIds(){return this.stateHelper.navigableFloorIds}onNavigableFloorIdsChanged(e){return this.stateHelper.onNavigableFloorIdsChanged(e)}getHighestVisibleFloor(){return this.currentFloor?this.currentFloor:this.floors.getTopFloor()}getHighestVisibleFloorId(){return this.getHighestVisibleFloor().id}getFloorIdMap(){const e={};return this.iterate((t=>{e[t.id]={id:t.id,name:t.name,items:[]}})),e}iterate(e){this.floors.iterate((t=>{const i=this.getViewData(t.id);i&&e(i)}))}getFloorNames(){const e=[];return this.floorsEnabled?(this.floors.iterate((t=>{e[t.index]=this.getFloorName(t.id)})),e):e}getFloorName(e){if(!e)return this.localize(a.A.FLOOR_ALL);const t=this.floors.getFloor(e);return void 0!==t.name&&""!==t.name?t.name:this.getDefaultFloorName(e)}getDefaultFloorName(e){const t=this.floors.getFloor(e);return this.localize(a.A.SHOWCASE.FLOORS.DEFAULT_NAME,t.index+1)}getFloorsVisibility(){if(this.currentFloorId){const e=[];return this.floors.iterate((t=>{e[t.index]=t.id===this.currentFloorId?1:0})),e}return[]}get floorsEnabled(){return this.config.floorChangesEnabled()}get floorSelectModeActive(){return this._observableFloorsSelectMode.value}set floorSelectModeActive(e){const t=e&&this.floorsEnabled;t!==this._observableFloorsSelectMode.value&&(this._observableFloorsSelectMode.value=t,this.commit())}onFloorSelectModeChange(e){return this._observableFloorsSelectMode.onChanged(e)}get showFloorSelection(){return this._showFloorSelection.value}set showFloorSelection(e){e!==this._showFloorSelection.value&&(this._showFloorSelection.value=e,this.commit())}onShowFloorSelectionChanged(e){return this._showFloorSelection.onChanged(e)}get roomSelectModeActive(){return this._observableRoomSelectMode.value}set roomSelectModeActive(e){const t=e;t!==this._observableRoomSelectMode.value&&(this._observableRoomSelectMode.value=t,this.commit())}onRoomSelectModeChange(e){return this._observableRoomSelectMode.onChanged(e)}get isInAllFloorsMode(){return this.isMultifloor()&&this.currentFloorIndex===p.Zu}}},93605:(e,t,i)=>{"use strict";i.d(t,{$9:()=>o,Qd:()=>l,V6:()=>c,i1:()=>s,q8:()=>a,uh:()=>d,vr:()=>r});var n=i(18268);class s extends n.u{constructor(e,t=!1,i,n){super(),this.payload={floorId:e,suppressCameraMovement:t,transitionTime:i,focusPoint:n}}}s.id="MOVETO_FLOOR";class a extends n.u{constructor(e,t=!1,i,n){super(),this.payload={floorIndex:e,suppressCameraMovement:t,transitionTime:i,focusPoint:n}}}a.id="MOVETO_FLOOR_NUMBER";class o extends n.u{constructor(e){super(),this.payload=e}}o.id="SHOW_ALL_FLOORS";class r extends n.u{}r.id="DISABLE_ALL_FLOORS_OPTION";class l extends n.u{}l.id="ENABLE_ALL_FLOORS_OPTION";class d extends n.u{}d.id="LOCK_FLOOR_NAV";class c extends n.u{}c.id="UNLOCK_FLOOR_NAV"},97318:(e,t,i)=>{"use strict";i.d(t,{Zu:()=>n,nT:()=>s,t$:()=>a});const n=-1,s=-1,a=500},85110:(e,t,i)=>{"use strict";i.d(t,{X:()=>a});var n=i(65035),s=i(99820);function a(){const e=(0,n.m)();return(0,s.P)(e)}},65035:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(96540),s=i(13673);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(e?e.currentFloorId:null);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>{const t=e.currentFloorId;i(t)},n=e.makeFloorChangeSubscription(t);return t(),()=>n.cancel()}),[e]),t}(0,i(29633).c)("currentFloorId",a)},99820:(e,t,i)=>{"use strict";i.d(t,{P:()=>a});var n=i(96540),s=i(13673);function a(e){const t=(0,s._)(),[i,a]=(0,n.useState)(t&&null!==e?t.getViewData(e):null);return(0,n.useEffect)((()=>{if(!t)return()=>{};if(e){const i=t.getViewData(e);a(i)}else a(null);return()=>{}}),[t,e]),i}},13673:(e,t,i)=>{"use strict";i.d(t,{_:()=>o});var n=i(47952),s=i(29633),a=i(92590);const o=(0,n.v)(a.X);(0,s.c)("floorsViewData",o)},25661:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(43802),s=i(92590);const a=(0,n.r)(s.X,"showAllFloorsOption",!0)},12038:(e,t,i)=>{"use strict";i.d(t,{h:()=>a});var n=i(96540),s=i(13673);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(!!e&&e.showFloorSelection);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onShowFloorSelectionChanged(i);return i(e.showFloorSelection),()=>t.cancel()}),[e]),t}},64530:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n="features/floorselect"},86260:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var n=i(18268);class s extends n.u{constructor(e,t){super(),this.payload={messagePhraseKey:e,options:t}}}s.id="DEFAULT_ERROR"},56545:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(61589),s=i(54998);class a extends n.B{constructor(){super(),this.name="gui-view-data",this.collapsedAccordionGroupsObservable=(0,s.y)()}isAccordionGroupCollapsed(e){return this.collapsedAccordionGroupsObservable.get(e)}setAccordionGroupCollapsed(e,t){this.collapsedAccordionGroupsObservable.set(e,t)}getAccordionGroupCollapsedStates(){return this.collapsedAccordionGroupsObservable.deepCopy()}onAccordionCollapsedGroupsChanged(e){return this.collapsedAccordionGroupsObservable.onChanged(e)}}},55649:(e,t,i)=>{"use strict";i.d(t,{X:()=>s,r:()=>a});var n=i(18268);class s extends n.u{constructor(e,t){super(),this.payload={modal:e,open:t}}}s.id="TOGGLE_MODAL";class a extends n.u{constructor(){super()}}a.id="CLOSE_MODAL"},9544:(e,t,i)=>{"use strict";i.d(t,{E:()=>u});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(40936);const l=55,d=40,c=10;function u({className:e,outerLeft:t,children:i,outerRight:a,small:u=!1}){const h=(0,s.useRef)(null);(0,r.A)({ref:h});let m=!!t!=!!a;if(m&&h.current){const e=h.current.offsetWidth,t=h.current.children[1],i=u?d:l;t.offsetWidth+2*i+(2+c)>e&&(m=!1)}const p=o()("action-bar",e,{"fill-outer-space":m}),E=o()("action-bar-outer","action-bar-outer-left",{"action-bar-outer-large":!u}),S=o()("action-bar-outer","action-bar-outer-right",{"action-bar-outer-large":!u});return(0,n.jsx)("div",Object.assign({className:"overlay-action-bar"},{children:(0,n.jsxs)("div",Object.assign({ref:h,className:p},{children:[(0,n.jsx)("div",Object.assign({className:E},{children:t})),(0,n.jsx)("div",Object.assign({className:"action-bar-cta"},{children:i})),(0,n.jsx)("div",Object.assign({className:S},{children:a}))]}))}))}},58265:(e,t,i)=>{"use strict";i.d(t,{s:()=>y});var n=i(74848),s=i(96540),a=i(17139),o=i(521),r=i(35595),l=i(75414),d=i(57016),c=i(97137);const u=function(e,t){const i=e.classList;switch(t){case o.L$.NORMAL:case o.L$.SIDE_PANEL:i.replace("narrow-layout","standard-layout")||i.add("standard-layout");break;case o.L$.NARROW:case o.L$.BOTTOM_PANEL:i.replace("standard-layout","narrow-layout")||i.add("narrow-layout")}};var h=i(75176),m=i(32485),p=i.n(m),E=i(72909),S=i(97984),O=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let _=class extends s.Component{constructor(e){super(e),this.getInitialState=()=>({messagePhraseKey:"",active:!1,ctaPhraseKey:"",timeout:0,multiline:!1,dismissesOnAction:!1,actionHandler:()=>{}}),this.triggerAction=e=>{e.stopPropagation(),this.state.actionHandler&&this.state.actionHandler(),this.state.dismissesOnAction&&this.hide()},this.hide=async()=>{window.clearTimeout(this.timeout),this.setState({active:!1})},this.show=async e=>{const t=Object.assign(this.getInitialState(),e,{active:!0});this.setState(t),window.clearTimeout(this.timeout),t.timeout>0&&(this.timeout=window.setTimeout((()=>{this.setState({active:!1})}),t.timeout))},this.state=this.getInitialState()}componentDidMount(){this.context.commandBinder.addBinding(S.Q,this.show),this.context.commandBinder.addBinding(S.v,this.hide)}componentWillUnmount(){window.clearTimeout(this.timeout),this.context.commandBinder.removeBinding(S.Q,this.show),this.context.commandBinder.removeBinding(S.v,this.hide)}render(){const{locale:e}=this.context,t=this.props.className||"",{active:i,multiline:s,messagePhraseKey:a,ctaPhraseKey:o,dismissesOnAction:r}=this.state,l={active:i,multiline:s},d=a?e.t(a):null,c=o?e.t(o):null;return(0,n.jsx)("div",Object.assign({className:"toastr-wrapper",onClick:r?this.hide:void 0},{children:(0,n.jsxs)("div",Object.assign({className:p()("toastr-contents",`${t}`,l)},{children:[(0,n.jsx)("div",Object.assign({className:"toastr-text"},{children:d})),c&&(0,n.jsx)("a",Object.assign({className:"link",onClick:this.triggerAction},{children:c}))]}))}))}};_.contextType=a.B,_=O([E.F,g("design:paramtypes",[Object])],_);var T=i(99366),A=i(9321),v=i(58330),N=i(38216),L=i(23819);const{PANELS:I}=T.A;function f({children:e,className:t,sidePanelCollapsible:i}){const{commandBinder:o,analytics:l}=(0,s.useContext)(a.B),c=(0,d.J)(),u=(0,r.O)(),h=(0,N.Y)(),m=(0,v.H)(),E=u&&u.panel;let S=null;E&&e&&Array.isArray(e)&&(S=e.find((e=>e&&e.key===(null==u?void 0:u.id)))||!1);const O=(0,s.useCallback)((()=>{S&&!m&&(l.track("showcase_gui",{gui_action:"toggle_side_panel"}),o.issueCommand(new A.li(!c)))}),[S,m,l,o,c]);(0,s.useEffect)((()=>{S&&!m&&c&&!i&&o.issueCommand(new A.li(!1))}),[S,m,c,i,o]);const g=c?h.t(I.EXPAND_PANEL):h.t(I.COLLAPSE_PANEL),_=c?"icon-dpad-left":"icon-dpad-right",T=!!(u&&S&&u.panel),f=S&&!!(null==u?void 0:u.panelLeft)&&!m,b=S&&!f&&!m,R={"panel-open":T&&!c,"panel-collapsed":T&&c,"panel-bottom":m,"panel-side":!m,"panel-left":f,"panel-right":b};return(0,n.jsxs)(n.Fragment,{children:[T&&b&&i&&(0,n.jsx)("div",Object.assign({className:"panel-track"},{children:(0,n.jsx)("div",Object.assign({className:"panel-track-thumb right","data-balloon":g,"data-balloon-pos":"left",onClick:O},{children:(0,n.jsx)("span",{className:`icon ${_}`})}))})),(0,n.jsx)(L.w,Object.assign({className:p()("panels",R,t),open:T,selectChild:!0,childKey:null==u?void 0:u.id},{children:e}))]})}const b=e=>{var t;return!!(null===(t=e.ui)||void 0===t?void 0:t.renderPanel)&&!e.panelLeft},R=e=>{var t;return!!(null===(t=e.ui)||void 0===t?void 0:t.renderPanel)&&!!e.panelLeft};function y({children:e,className:t}){const{mainDiv:i,commandBinder:m,toolsData:E,editMode:S}=(0,s.useContext)(a.B),O=(0,r.O)(),g=(0,l.t)(),T=(0,d.J)(),A=(0,c.O)(),v=A===o.L$.BOTTOM_PANEL;return(0,s.useEffect)((()=>{u(i,A)}),[i,A]),(0,s.useEffect)((()=>{T?i.classList.add("tool-collapsed"):i.classList.remove("tool-collapsed"),D(i,O,v)}),[i,T,O,v]),(0,s.useEffect)((()=>{i.classList.remove("bottom-panel","left-panel","right-panel"),O&&O.panel&&i.classList.add(v?"bottom-panel":O.panelLeft?"left-panel":"right-panel"),D(i,O,v)}),[i,O,v]),(0,s.useEffect)((()=>{g?i.classList.add("modal-open"):i.classList.remove("modal-open"),g&&m.issueCommand(new h.IP,!1)}),[i,g]),(0,n.jsxs)("div",Object.assign({className:p()("app-ui",t)},{children:[(0,n.jsx)(f,Object.assign({sidePanelCollapsible:!1},{children:E.toolsMap.values.filter(R).map((e=>(0,n.jsx)(M,{tool:e},e.id)))})),(0,n.jsx)("div",Object.assign({className:"scene-overlay"},{children:e})),(0,n.jsx)(f,Object.assign({sidePanelCollapsible:S},{children:E.toolsMap.values.filter(b).map((e=>(0,n.jsx)(M,{tool:e},e.id)))})),(0,n.jsx)(_,{})]}))}function M({tool:e}){var t;return(null===(t=e.ui)||void 0===t?void 0:t.renderPanel)?(0,n.jsx)("div",Object.assign({className:"tool-panel"},{children:e.ui.renderPanel()})):null}function D(e,t,i){i&&!0===(null==t?void 0:t.searchModeType)?e.classList.add("with-search-bar"):e.classList.remove("with-search-bar")}},48794:(e,t,i)=>{"use strict";i.d(t,{D:()=>T});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(81866),l=i(17139),d=i(92590),c=i(99366),u=i(38216),h=i(71891),m=i(82110),p=i(96707),E=i(99224),S=i(52385),O=i(25661);function g(e){const{currentFloor:t,floors:i}=e,a=(0,u.Y)(),{analytics:r}=(0,s.useContext)(l.B),d=(0,h.x)(),g=(0,O.m)(),_=d!==m.N3.Panorama&&g,T=(0,s.useCallback)((()=>{r.trackGuiEvent("floor_controls")}),[r]),A=t&&t.index+1,v=a.t(c.A.HELP_MORE_FLOORS_A),N=o()("floor-controls",{"two-digit":void 0!==A&&A>=10}),L=A?"floor-controls":"floor-controls-all",I=i.map((e=>{const{id:i,name:s}=e,a=(null==t?void 0:t.id)===i;return(0,n.jsx)(p.b,{id:i,name:s,active:a},i)}));return _&&I.push((0,n.jsx)(p.b,{name:a.t(c.A.FLOOR_ALL),active:!t},"all")),I.reverse(),(0,n.jsx)(E.y,Object.assign({buttonClassName:N,buttonDataAttribute:A,onClick:T,variant:S.Ak.TERTIARY,ariaLabel:v,tooltip:v,icon:L,theme:"overlay",menuClassName:"floor-controls-menu",menuTheme:"dark",menuPlacement:"top"},{children:I}))}var _=i(12149);class T extends s.Component{constructor(e){super(e),this.bindings=[],this.isUnmounting=!1,this.onCurrentFloorChanged=()=>{var e,t;const i=(null===(e=this.floorsViewData)||void 0===e?void 0:e.currentFloor)||void 0,n=i&&(null===(t=this.floorsViewData)||void 0===t?void 0:t.getViewData(i.id));this.setState({currentFloor:n})},this.onFloorsChanged=()=>{var e,t;const i=(null===(e=this.floorsViewData)||void 0===e?void 0:e.getNavigableFloorIds()).map(null===(t=this.floorsViewData)||void 0===t?void 0:t.getViewData);this.setState({floors:i})},this.state={currentFloorIndicator:!0,floors:[]}}componentDidMount(){const{market:e}=this.context;e&&e.waitForData(d.X).then((e=>{this.isUnmounting||(this.floorsViewData=e,this.bindings.push(this.floorsViewData.makeFloorChangeSubscription(this.onCurrentFloorChanged),this.floorsViewData.floors.onNameChange(this.onFloorsChanged),this.floorsViewData.onNavigableFloorIdsChanged(this.onFloorsChanged)),this.onCurrentFloorChanged(),this.onFloorsChanged())}))}componentWillUnmount(){this.isUnmounting=!0,this.bindings.forEach((e=>{e.cancel()}))}render(){const{className:e,viewmode:t,iconStyle:i}=this.props,{currentFloor:s,floors:a}=this.state;return a.length>1&&t!==r.w5.OUTSIDE?(0,n.jsxs)("div",Object.assign({className:o()("floor-selector",e)},{children:[i&&(0,n.jsx)(g,{floors:a,currentFloor:s}),!i&&(0,n.jsx)("span",{className:"divider"}),!i&&(0,n.jsx)(_.b,{})]})):null}}T.contextType=l.B},96707:(e,t,i)=>{"use strict";i.d(t,{b:()=>u});var n=i(74848),s=i(96540),a=i(17139),o=i(52385),r=i(35652),l=i(75176),d=i(93605);const c=new r.Ay("floor-controls-switch-floor");function u({name:e,id:t,active:i,theme:r="dark"}){const u=(0,s.useContext)(a.B),{analytics:h}=u,m=(0,s.useCallback)((async()=>{h.trackGuiEvent("floor_clicked"),async function(e,t){const{analytics:i,commandBinder:n}=t;try{await n.issueCommand(new l.IP);const t=null===e?"click_toggle_all_floors_button":"click_floor_select_button";i.trackGuiEvent(t);const s=new d.i1(e);await n.issueCommand(s)}catch(e){c.debug(e)}}(t||null,u)}),[h,t]);return(0,n.jsx)(o.$n,{className:"floor-button",label:e,variant:o.Ak.TERTIARY,size:o.Mp.SMALL,theme:r,onClick:m,active:i})}},12149:(e,t,i)=>{"use strict";i.d(t,{b:()=>_});var n=i(74848),s=i(32485),a=i.n(s),o=i(99366),r=i(82110),l=i(99224),d=i(52385),c=i(96540),u=i(2789),h=i(13673);function m(e){return e?e.getNavigableFloorIds().map(e.getViewData):[]}var p=i(85110),E=i(71891),S=i(96707),O=i(38216),g=i(25661);function _(e){const t=function(){const e=(0,h._)(),[t,i]=(0,c.useState)(m(e));return(0,c.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(m(e)),n=new u.P(e.floors.onNameChange(t),e.onNavigableFloorIdsChanged(t));return t(),()=>n.cancel()}),[e]),t}(),i=(0,E.x)(),s=(0,p.X)(),_=(0,g.m)(),T=(0,O.Y)(),A=t.map((e=>{const{id:t,name:i}=e,a=(null==s?void 0:s.id)===t;return(0,n.jsx)(S.b,{id:t,name:i,active:a,theme:"light"},t)})).reverse();i!==r.N3.Panorama&&_&&A.unshift((0,n.jsx)(S.b,{name:T.t(o.A.FLOOR_ALL),active:!s,theme:"light"},"all"));const v=a()("floor-menu-selector",e.className),N=(null==s?void 0:s.name)||T.t(o.A.FLOOR_ALL);return(0,n.jsx)(l.y,Object.assign({buttonClassName:v,variant:d.Ak.TERTIARY,label:N,ariaLabel:N,tooltip:N,theme:"overlay",menuClassName:"floor-controls-menu",menuPlacement:"top",caret:!0},{children:A}))}},59695:(e,t,i)=>{"use strict";i.d(t,{w:()=>v});var n=i(74848),s=i(96540),a=i(17139),o=i(99366),r=i(87987),l=i(52385),d=i(83910),c=i(55649),u=i(55147),h=i(16603),m=i(38216),p=i(52147),E=i(50579),S=i(87039),O=i(96629);const g=()=>{const e=(0,m.Y)(),t=!(0,h.i)(p.qu,!1),i=(()=>{const e=(0,E.h)(),t=(0,O.t)(),i=(0,S.j)(),n=(0,h.i)(p.k5,"");if(n&&(null==e?void 0:e.hasDiscoverUrl())){const e=new URL(`${n}${i}`,"https://matterport.com");return t&&t!==i&&e.searchParams.set("view",t),e.toString()}return null})(),s=e.t(o.A.ALT_MATTERPORT_LOGO),a=(0,n.jsx)("img",{className:"footer-logo",alt:s,src:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyMzAuMDUgNDkuNzUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3Qwe2ZpbGw6I2Y1ZjRmM30uc3Qye2ZpbGw6I2ZmZn0uc3Qze2ZpbGw6Izk5OX08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02MS4yOCAzNi4xNHYtOC44MmwtLjI0LTUuMDkuMTktLjA0IDIuMDUgNC41NCA0LjgyIDguODYgNC44Mi04Ljg2IDIuMDYtNC41NC4xOC4wNC0uMjQgNS4wOXY4LjgyaDUuMTRWMTQuNGgtNS44MWwtNi4xMSAxMS43N2gtLjA3TDYxLjk1IDE0LjRoLTUuODF2MjEuNzR6TTIxMi42OSAzMC42M2MwIDMuNiAxLjk0IDUuNSA1LjYxIDUuNWgzLjE3di00LjQ1aC0zLjQ1di05LjQ5aDMuNzR2LTQuMzZoLTQuMTV2LTQuMjFoLTQuOTF2MTcuMDF6TTIxMS4yNiAxNy44M2gtLjg3Yy0zLjAxIDAtNC40NCAyLjAzLTQuODkgMy40M2gtLjE4di0zLjQzSDIwMHYxOC4zMWg1LjMyVjI1LjcyYzAtMS4wOC40MS0xLjg0LjkzLTIuMzMuODktLjg2IDIuNzktMS4xMSA1LjAxLTEuMTF2LTQuNDV6TTE1OC42MyAxNy44M2gtLjg3Yy0zLjAxIDAtNC40NCAyLjAzLTQuODkgMy40M2gtLjE4di0zLjQzaC01LjMydjE4LjMxaDUuMzJWMjUuNzJjMC0xLjA4LjQxLTEuODQuOTMtMi4zMy44OS0uODYgMi43OS0xLjExIDUuMDEtMS4xMXYtNC40NXpNMTI3LjQ4IDI3LjI1YzAtNS45NyAzLjE3LTkuODYgOC44NS05Ljg2IDYuMjYgMCA4Ljc4IDQuNTMgOC43OCA5LjY0djEuNThoLTEyLjEydi4xOGMwIDIuMTIgMS4xNCAzLjYgNC4xNyAzLjYgMi4yMyAwIDMuNDUtMS4wNCA0LjY0LTIuMjdsMi42NiAzLjMxYy0xLjY5IDEuOTQtNC40NiAzLjEzLTcuOTEgMy4xMy01LjguMDEtOS4wNy0zLjI3LTkuMDctOS4zMXptNS41LTIuMDV2LjI5aDYuNjJ2LS4zMmMwLTIuMy0xLjA0LTMuODUtMy4xNy0zLjg1cy0zLjQ1IDEuNTQtMy40NSAzLjg4ek0xODAuMDQgMjcuMjVjMC02LjA4IDMuMzEtOS44NiA4Ljg1LTkuODYgNS41NCAwIDguODUgMy43OCA4Ljg1IDkuODZzLTMuMzEgOS4zMi04Ljg1IDkuMzJjLTUuNTUgMC04Ljg1LTMuMjQtOC44NS05LjMyem0xMi4xNSAxLjM3di0zLjI3YzAtMi4zNy0xLjIyLTMuNzQtMy4zMS0zLjc0cy0zLjMxIDEuMzctMy4zMSAzLjc0djMuMjdjMCAyLjM3IDEuMjIgMy43NCAzLjMxIDMuNzRzMy4zMS0xLjM3IDMuMzEtMy43NHpNMTIyLjQyIDEzLjYyaC00Ljc4djIuMTljMCAxLjMtLjQzIDIuMDEtMS44NyAyLjAxaC0xLjMzdjQuMzZoMi42NnY4LjQ0YzAgMy42IDEuOTQgNS41IDUuNjEgNS41aDMuMTd2LTQuNDVoLTMuNDV2LTkuNDloMy43NHYtNC4zNmgtMy43NHYtNC4yek0xMDkuMTcgMTMuNjJoLTQuNzh2Mi4xOWMwIDEuMy0uNDMgMi4wMS0xLjg3IDIuMDFoLTEuMzN2NC4zNmgyLjY2djguNDRjMCAzLjYgMS45NCA1LjUgNS42MSA1LjVoMy4xN3YtNC40NWgtMy40NXYtOS40OWgzLjc0di00LjM2aC0zLjc0di00LjJ6TTE3MC45IDE3LjM5Yy0yLjQ1IDAtNC41MyAxLjUxLTUuMDcgMy42aC0uMTh2LTMuMTdoLTUuMzJ2MjMuODJoNS4zMnYtOC42N2guMThjLjU0IDIuMDUgMi42MyAzLjYgNS4wNyAzLjYgNC43OCAwIDcuMjctMi45MSA3LjI3LTkuMzItLjAxLTYuNC0yLjQ5LTkuODYtNy4yNy05Ljg2em0xLjcyIDExLjUyYzAgMi4zNy0xLjQ4IDMuMzUtMy40OSAzLjM1LTIuMDEgMC0zLjQ5LTEuMDQtMy40OS0yLjc3di01YzAtMS43MyAxLjQ4LTIuNzcgMy40OS0yLjc3IDIuMDEgMCAzLjQ5IDEuNTUgMy40OSAzLjkydjMuMjd6TTk3LjgzIDM2LjE0Yy0xLjkxIDAtMy4yNy0xLjMtMy42LTMuMzFoLS4yMmMtLjU4IDIuNDUtMi42NiAzLjc0LTUuNTQgMy43NC0zLjc4IDAtNS44Ni0yLjIzLTUuODYtNS41IDAtMy45OSAzLjA5LTUuOSA4LjA5LTUuOWgyLjk5di0uNjFjMC0xLjgzLS45LTIuOTktMy4xMy0yLjk5LTIuMTIgMC0zLjI0IDEuMDgtNC4wNiAyLjIzbC0zLjE3LTIuODFjMS41MS0yLjIzIDMuNjctMy42IDcuNjMtMy42IDUuMzIgMCA4LjA2IDIuNDUgOC4wNiA2LjkxdjcuMzhoMS43NnY0LjQ1aC0yLjk1em0tNC4xMy01Ljcydi0yLjIzaC0yLjU5Yy0yLjA1IDAtMy4xMy43Ni0zLjEzIDIuMTJ2LjU0YzAgMS4zNy45IDIuMDEgMi40OCAyLjAxIDEuNzYgMCAzLjI0LS43MiAzLjI0LTIuNDR6Ii8+PGc+PHBhdGggZD0iTTM5LjA1IDYuOTFMMjYuMjQgMTAuNSAxMy40MiA2LjkxIDguMyA4LjM1djMzLjA2bDUuMTMgMS40NCAxMi44Mi0zLjU5IDEyLjgyIDMuNTkgNS4xMy0xLjQ0VjguMzVsLTUuMTUtMS40NHptLTUuMTIgMjQuNjdsLTcuNjktMi4xNS03LjY5IDIuMTV2LTEzLjRsNy42OSAyLjE1IDcuNjktMi4xNXYxMy40eiIgZmlsbD0iI2I3YmFiYiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0yNi4yNCAxMy4zN3Y2Ljk2bC0xMi44Mi0zLjU5djI2LjFMOC4zIDQxLjQxVjguMzV6TTMzLjkzIDM0LjQ1bC03LjY5LTIuMTZ2Ni45NmwxMi44MSAzLjU5di0yNi4xbC01LjEyIDEuNDR6Ii8+PGc+PHBhdGggY2xhc3M9InN0MyIgZD0iTTM5LjA1IDYuOTFsNS4xMyAxLjQ0LTE3Ljk0IDUuMDJMOC4zIDguMzVsNS4xMi0xLjQ0IDEyLjgyIDMuNTl6TTI2LjI0IDI5LjQybDcuNjkgMi4xNnYyLjg3bC03LjY5LTIuMTYtNy42OSAyLjE2di0yLjg3eiIvPjwvZz48L2c+PC9zdmc+"});return t?(0,n.jsx)("a",Object.assign({className:"link logo-link",href:i||"https://matterport.com",target:"_blank","data-testid":"footer-logo-link"},{children:a})):a};var _=i(10718),T=i(33848);const A="gui";function v(e){const{analytics:t,commandBinder:i,locale:h}=(0,s.useContext)(a.B),m=(0,_.G)(),p=!!m&&(0,T.AF)(m),{isWorkshop:E=!1,modelRatingEnabled:S,disabled:O}=e;return E&&!S?null:(0,n.jsxs)(r.e,Object.assign({className:"showcase-footer","data-testid":"showcase-footer"},{children:[!O&&p&&!E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.$n,{variant:l.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const n=e.openModal===d.a.DEFURNISH_AI;i.issueCommand(new c.X(d.a.DEFURNISH_AI,!n)),t.trackGuiEvent("click_defurnish_ai_warning",{interactionSource:A})},className:"defurnish-ai-warning",ariaRole:"link",ariaHasPopup:"dialog",disabled:O,label:h.t(o.A.DEFURN_AI_WARNING)}),(0,n.jsx)("span",{children:" | "})]}),!O&&S&&(0,n.jsx)(l.$n,{variant:l.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{i.issueCommand(new u.c),t.trackGuiEvent("click_feedback_button",{interactionSource:A})},className:"model-feedback-link",ariaRole:"link",ariaHasPopup:"dialog",disabled:O,label:h.t(o.A.FEEDBACK)}),!O&&!E&&S&&(0,n.jsx)("span",{children:" | "}),!O&&!E&&(0,n.jsx)(l.$n,{variant:l.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const n=e.openModal===d.a.HELP;i.issueCommand(new c.X(d.a.HELP,!n)),t.trackGuiEvent("click_help_button",{interactionSource:A})},ariaRole:"link",disabled:O,ariaHasPopup:"dialog",label:h.t(o.A.HELP)}),!O&&!E&&(0,n.jsx)("span",{children:" | "}),!O&&!E&&(0,n.jsx)(l.$n,{variant:l.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const n=e.openModal===d.a.TERMS;i.issueCommand(new c.X(d.a.TERMS,!n)),t.trackGuiEvent("click_terms_button",{interactionSource:A})},ariaRole:"link",disabled:O,ariaHasPopup:"dialog",label:h.t(o.A.TERMS)}),!O&&!E&&(0,n.jsx)(g,{})]}))}},46086:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var n=i(74848),s=i(96540),a=i(8430),o=i(99366),r=i(17139),l=i(52385);class d extends s.Component{constructor(e){super(e),this.handleButtonClick=()=>{const{analytics:e}=this.context;a.aS()?(e.trackGuiEvent("click_exit_fullscreen",{interactionSource:"gui"}),a.Eh()):(e.trackGuiEvent("click_enter_fullscreen",{interactionSource:"gui"}),a.lh(document.body))},this.onFullScreenChange=e=>{const{mainDiv:t}=this.context,i=a.aS();i?t.classList.add("full-screen"):t.classList.remove("full-screen"),this.setState({fullscreen:i})},this.state={fullscreen:a.aS()},document.addEventListener("fullscreenchange",this.onFullScreenChange),document.addEventListener("webkitfullscreenchange",this.onFullScreenChange),document.addEventListener("MSFullscreenChange",this.onFullScreenChange),document.addEventListener("mozfullscreenchange",this.onFullScreenChange)}componentWillUnmount(){document.removeEventListener("fullscreenchange",this.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",this.onFullScreenChange),document.removeEventListener("MSFullscreenChange",this.onFullScreenChange),document.removeEventListener("mozfullscreenchange",this.onFullScreenChange)}render(){const{fullscreen:e}=this.state,t=e?this.context.locale.t(o.A.EXIT_FULLSCREEN):this.context.locale.t(o.A.VIEW_FULLSCREEN),i=e?"fullscreen-exit":"fullscreen";return(0,n.jsx)("div",Object.assign({className:"fullscreen-mode"},{children:(0,n.jsx)(l.$n,{onClick:this.handleButtonClick,ariaLabel:t,tooltip:t,tooltipOptions:{placement:"top"},icon:i,theme:"overlay",variant:l.Ak.TERTIARY})}))}}d.contextType=r.B},93405:(e,t,i)=>{"use strict";i.d(t,{X:()=>m});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(43773),l=i(92924),d=i(84370),c=i(17139),u=i(4913),h=i(64784);class m extends s.Component{constructor(e,t){super(e,t),this.scrollbarRef=(0,s.createRef)(),this.elementRef=(0,s.createRef)(),this.isUnmounting=!1,this.onScrollableChanged=e=>{this.setState({scrollable:e})},this.onScrollPositionChange=e=>{this.setState({scrollPosition:e})},this.getScrollableContainer=()=>{const e=this.scrollbarRef.current;return(null==e?void 0:e.getScrollableContainer())||void 0},this.handleHighlightClickable=()=>{this.props.highlightClickable(!0)},this.state={scrollLeft:0,hideScrollbar:(0,r.c)((0,h.J)(t)),scrollPosition:d.BB.None,scrollable:!1}}componentDidMount(){this.context.market.waitForData(u.G).then((e=>{this.isUnmounting||(this.resizeSubscription=e.onPropertyChanged("size",(e=>{this.setState({hideScrollbar:(0,r.c)(e)})})))})),this.onScrollableChanged(!0),this.onScrollPositionChange(d.BB.Beginning)}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.resizeSubscription)||void 0===e||e.cancel()}componentDidUpdate(e){const{activeElement:t}=this.props;if(null!==t&&e.activeElement!==t){const e=this.scrollbarRef.current;e&&e.scrollToElement(t)}}setSorting(e){const t=this.elementRef.current;if(t)if(e){if(t.classList.add("sorting"),this.props.mobile){const e=this.scrollbarRef.current;e&&e.pauseScrollHandling()}}else t.classList.remove("sorting")}render(){const{thumbScrollingOnly:e,children:t,totalSteps:i}=this.props,{hideScrollbar:s,scrollPosition:a,scrollable:r}=this.state,c=o()({scrollable:r,[a]:!0});return(0,n.jsx)("div",Object.assign({id:"reel",className:c,ref:this.elementRef},{children:(0,n.jsx)(l.A,Object.assign({direction:d.OP.horizontal,ref:this.scrollbarRef,hideScrollbar:s,thumbScrollingOnly:e,waitToUpdate:0===i,handleClick:this.handleHighlightClickable,onScrollableChanged:this.onScrollableChanged,onScrollPositionChange:this.onScrollPositionChange},{children:t}))}))}}m.contextType=c.B},94002:(e,t,i)=>{"use strict";i.d(t,{f:()=>E});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(17139),l=i(71136),d=i(58770),c=i(82110),u=i(88007),h=i(52385),m=i(99366);const{HLR:p}=m.A.WORKSHOP;class E extends s.Component{constructor(){super(...arguments),this.editHighlight=e=>{e.stopPropagation(),this.props.onClickHighlight(this.props.index,!0)},this.removeHighlight=e=>{e.stopPropagation(),this.props.onRemoveHighlight&&this.props.onRemoveHighlight(this.props.highlight.snapshot.sid)},this.onClickHighlight=e=>{e.preventDefault(),this.props.onClickHighlight(this.props.index,!1)},this.setContainerRef=e=>{const{index:t,getRef:i}=this.props;this.element=e,i&&i(t,this.element)}}renderTransitionSettings(){const{locale:e}=this.context,{transitionType:t,panDirection:i,transitionCondition:s,index:a}=this.props,o=i!==d.ND.Auto;let r="pan-auto",c=e.t(p.PAN_DIRECTION_SETTING_AUTO);i===d.ND.Left?(r="icon icon-rotate-left",c=e.t(p.PAN_DIRECTION_SETTING_LEFT)):i===d.ND.Right&&(r="icon icon-rotate-right",c=e.t(p.PAN_DIRECTION_SETTING_RIGHT));let u="";return t===l.fl.FadeToBlack?u=e.t(p.TRANSITION_SETTING_SLIDESHOW):t===l.fl.Interpolate&&(u=e.t(p.TRANSITION_SETTING_WALKTHROUGH)),(0,n.jsxs)("div",Object.assign({className:"transition-settings"},{children:[(0,n.jsxs)("span",Object.assign({className:"transition-type"},{children:[a+1," - ",u,s&&(0,n.jsx)("span",{children:"*"})]})),(0,n.jsx)("span",Object.assign({className:"pan-direction-type"},{children:c})),o&&(0,n.jsx)("span",{className:`pan-icon ${r}`})]}))}renderImageBar(){var e;const{locale:t}=this.context,{highlight:i,editable:s}=this.props,a=i.snapshot.is360,r=i.snapshot.metadata.cameraMode,l=null!==(e=this.getMarker(r,a))&&void 0!==e?e:"",d=t.t(p.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE),c=t.t(p.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE);return(0,n.jsxs)("div",Object.assign({className:"image-bar"},{children:[(0,n.jsx)("span",{className:o()("highlight-marker",{[l]:!s})}),s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.$n,{className:"highlight-remove",onClick:this.removeHighlight,tooltip:d,ariaLabel:d,icon:"delete",theme:"overlay",variant:h.Ak.FAB}),(0,n.jsx)(h.$n,{className:"highlight-edit",onClick:this.editHighlight,tooltip:c,ariaLabel:c,icon:"toggle-pencil",theme:"overlay",variant:h.Ak.FAB})]})]}))}getMarker(e,t){return e===c.N3.Dollhouse||e===c.N3.Floorplan?null:t?"icon-360":"icon-panorama"}render(){const{highlight:e,active:t,editable:i}=this.props,{name:s}=e.snapshot,a=!!s||i;return(0,n.jsxs)("div",Object.assign({className:o()("highlight-box",{active:t,editable:i}),onClick:this.onClickHighlight,ref:this.setContainerRef},{children:[(0,n.jsx)(u.q,{resource:e.snapshot.thumbnailUrl,className:"highlight-image"}),this.renderImageBar(),i&&this.renderTransitionSettings(),(0,n.jsx)("div",Object.assign({className:o()("image-name",{shadowed:a})},{children:(0,n.jsx)("span",Object.assign({className:"static-text",role:"listitem","aria-label":s||"highlight"},{children:s}))}))]}))}}E.contextType=r.B},20084:(e,t,i)=>{"use strict";i.d(t,{E:()=>V});var n,s,a=i(74848),o=i(96540),r=i(32485),l=i.n(r),d=i(17139),c=i(48064),u=i(92590),h=i(81866),m=i(93795),p=i(99366),E=i(35652);!function(e){e.Inside="panorama",e.InsideMesh="mesh",e.Dollhouse="dollhouse",e.Floorplan="floorplan",e.None="none"}(n||(n={})),function(e){e.Inside="click_inside_mode_button",e.InsideMesh="click_mesh_mode_button",e.Dollhouse="click_dollhouse_mode_button",e.Floorplan="click_floorplan_mode_button"}(s||(s={}));var S=i(38216),O=i(58330),g=i(52385),_=i(67913),T=i(8430);function A(e,t){const i=(0,o.useMemo)((()=>!(0,T.C8)()),[]),n=(0,S.Y)(),s=n.t(e);return i&&void 0!==t?`${s} ${n.t(t)}`:s}var v=i(43788);function N(e){const{disabled:t,active:i,buttonId:n,onClick:s,analyticsName:r,tooltipPhraseKey:l,nudge:c,hotkeyPhraseKey:u}=e,h=(0,S.Y)(),m=(0,O.H)(),{editMode:p,analytics:E}=(0,o.useContext)(d.B),T=A(l,u),N=m&&p,L={placement:N?"bottom":"top",offset:N?[0,10]:void 0},I=N&&i?void 0:g.Ak.TERTIARY,f=N&&i?"light":"overlay",b=n,R=N?g.Mp.LARGE:void 0,y=(0,o.useCallback)((()=>{s(n,r)}),[s,n,r]),{show:M,dismiss:D}=(0,v.F)(null==c?void 0:c.nudgeType);if(c){const{featureKey:e,titleKey:s,messageKey:o,localStorageKey:r,dismissAnalytic:l}=c;return(0,a.jsx)(_.Q,{className:`mode-button mode-${n}`,icon:b,variant:I,theme:f,size:R,active:i,disabled:t,onClick:y,tooltip:T,nudgeFeatureKey:e,nudgeTitle:h.t(s),nudgeMessage:h.t(o),nudgeLocalStorage:r,onNudgeDismissed:l?()=>{E.trackGuiEvent(l)}:void 0,showTimeout:M,dismissTimeout:D})}return(0,a.jsx)("div",Object.assign({className:`mode-button mode-${n}`},{children:(0,a.jsx)(g.$n,{onClick:y,icon:b,variant:I,theme:f,size:R,active:i,disabled:t,tooltip:T,tooltipOptions:L,ariaLabel:T})}))}var L=i(56136),I=i(66344),f=i(15840),b=i(71891),R=i(82110),y=i(47952),M=i(37878);const D=(0,y.v)(M.m),k=(0,y.v)(c.X);function P(e){const{disabled:t,buttonId:i,onClick:r}=e,l=(0,O.H)(),{editMode:c}=(0,o.useContext)(d.B),u=(0,f.I)(),h=k(),m=(0,b.x)(),E=function(){const e=D(),[t,i]=(0,o.useState)(null);return(0,o.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((()=>{i(e.targetState)}));return i(e.targetState),()=>{t.cancel()}}),[e]),t}(),S=l&&c,_={placement:S?"bottom":"top",offset:S?[0,10]:void 0},T=m===R.N3.Dollhouse||m===R.N3.Floorplan,v=S&&T,N=S&&v?void 0:g.Ak.TERTIARY;let L=R.N3.Dollhouse;L=null!=E?"top"===E?R.N3.Dollhouse:R.N3.Floorplan:T&&u>.5?R.N3.Floorplan:R.N3.Dollhouse,(null==h?void 0:h.isFloorplanDisabled())&&(L=R.N3.Dollhouse),(null==h?void 0:h.isDollhouseDisabled())&&(L=R.N3.Floorplan);const I=L===R.N3.Floorplan?n.Floorplan:n.Dollhouse,y=L===R.N3.Floorplan?s.Floorplan:s.Dollhouse;let M=p.A.VIEW_DOLLHOUSE,P=p.A.HOTKEY_VIEW_DOLLHOUSE;L===R.N3.Floorplan&&(M=p.A.VIEW_FLOORPLAN,P=p.A.HOTKEY_VIEW_FLOORPLAN);const w=A(M,P),C=S?g.Mp.LARGE:void 0,x=(0,o.useCallback)((()=>{r(I,y)}),[r,I,y]);return(null==h?void 0:h.isDollhouseDisabled())&&(null==h?void 0:h.isFloorplanDisabled())?null:(0,a.jsx)("div",Object.assign({className:`mode-button mode-${i}`},{children:(0,a.jsx)(g.$n,{onClick:x,icon:I,variant:N,theme:"overlay",size:C,active:v,disabled:t,tooltip:w,tooltipOptions:_,ariaLabel:w})}))}var w=i(99817);function C(e,t){return!!e.tryGetProperty(w.gT,!1)||!t&&!e.tryGetProperty(m.n9,!1)}function x(e,t,i){return e.tryGetProperty(w.gT,!1)?i!==R.N3.Panorama:!t&&!e.tryGetProperty(m._z,!1)}function H(e,t){return!t&&!e}function U(e,t,i){const s=e===t;switch(e){case n.Dollhouse:case n.Floorplan:return i||!s;case n.Inside:return i?t!==n.InsideMesh:!s;case n.InsideMesh:return i?s:t===n.Inside}return!1}const G=new E.Ay("mode-buttons"),F={featureKey:I.e,titleKey:p.A.DOLLHOUSE_NUDGE_TITLE,messageKey:p.A.DOLLHOUSE_NUDGE_MESSAGE,localStorageKey:L.Y.DollhouseUserNudgeSeen,dismissAnalytic:"dollhouse_nudge",nudgeType:v.m.DollhouseMode},j={featureKey:I.n,titleKey:p.A.GENERIC.NEW_MESSAGE,messageKey:p.A.FLOOR_PLAN_NUDGE_MESSAGE,localStorageKey:L.Y.FloorplanRoomsUserNudgeSeen,dismissAnalytic:"floorplan_rooms_nudge",nudgeType:v.m.FloorplanMode};class B extends o.Component{constructor(e){super(e),this.onClick=async(e,t)=>{const{transitioning:i}=this.props;if(i)return;const s=function(e){switch(e){case n.Dollhouse:return h.w5.DOLLHOUSE;case n.Floorplan:return h.w5.FLOORPLAN;case n.Inside:return h.w5.INSIDE;case n.InsideMesh:return h.w5.MESH;default:throw new Error(`cannot get viewmode for mode buttonId ${e}`)}}(e),{analytics:a,commandBinder:o}=this.context;a.trackGuiEvent(t);try{await o.issueCommand(new h.S2(s))}catch(e){G.warn(e)}}}render(){const{activeButtonId:e,activeStateDisplay:t,className:i,dollhousePrevented:o,floorplanPrevented:r,insidePrevented:d,meshPrevented:c,transitioning:u,viewmodeChangeEnabled:h,peekabooEnabled:m}=this.props,E=!h||u,S=!c&&U(n.InsideMesh,e,!!t),O=!d&&U(n.Inside,e,!!t),g=!o&&U(n.Dollhouse,e,!!t),_=!r&&U(n.Floorplan,e,!!t),T=m;return(0,a.jsxs)("div",Object.assign({className:l()("mode-buttons",i)},{children:[S&&(0,a.jsx)(N,{tooltipPhraseKey:p.A.VIEW_INSIDE_MESH,analyticsName:s.InsideMesh,buttonId:n.InsideMesh,active:e===n.InsideMesh,onClick:this.onClick,disabled:E}),O&&(0,a.jsx)(N,{tooltipPhraseKey:p.A.VIEW_INSIDE,hotkeyPhraseKey:p.A.HOTKEY_VIEW_INSIDE,analyticsName:s.Inside,buttonId:n.Inside,active:e===n.Inside,onClick:this.onClick,disabled:E}),g&&(0,a.jsx)(N,{tooltipPhraseKey:p.A.VIEW_DOLLHOUSE,hotkeyPhraseKey:p.A.HOTKEY_VIEW_DOLLHOUSE,analyticsName:s.Dollhouse,buttonId:n.Dollhouse,active:e===n.Dollhouse,onClick:this.onClick,disabled:E,nudge:F}),T&&(0,a.jsx)(P,{buttonId:n.Dollhouse,onClick:this.onClick,disabled:E}),_&&(0,a.jsx)(N,{tooltipPhraseKey:p.A.VIEW_FLOORPLAN,hotkeyPhraseKey:p.A.HOTKEY_VIEW_FLOORPLAN,analyticsName:s.Floorplan,buttonId:n.Floorplan,active:e===n.Floorplan,onClick:this.onClick,disabled:E,nudge:j})]}))}}B.contextType=d.B;class V extends o.Component{constructor(e){super(e),this.bindings=[],this.isUnmounting=!1,this.updateDollhouseState=()=>{const{editMode:e,settings:t}=this.context;this.setState({dollhousePrevented:C(t,e)})},this.updateFloorplanState=()=>{const{editMode:e,settings:t}=this.context,i=this.viewmodeData.currentMode;this.setState({floorplanPrevented:x(t,e,i)})},this.onCurrentFloorChanged=()=>{const{editMode:e}=this.context,t=this.floorsViewData.currentFloor,i=this.floorsViewData.hasEnabledAlignedSweeps(t&&t.id);this.setState({insidePrevented:H(i,e)})},this.onViewmodeChangeLockUpdate=()=>{const{market:e}=this.context,t=e.tryGetData(c.X);if(!t)return;const i=t.viewmodeChangeEnabled;this.setState({viewmodeChangeEnabled:i})},this.state={dollhousePrevented:!1,floorplanPrevented:!1,insidePrevented:!1,viewmodeChangeEnabled:!0}}componentDidMount(){const{market:e,settings:t}=this.context;Promise.all([e.waitForData(c.X),e.waitForData(u.X)]).then((([e,i])=>{this.isUnmounting||(this.viewmodeData=e,this.floorsViewData=i,this.bindings.push(e.onPropertyChanged("viewmodeChangeEnabled",this.onViewmodeChangeLockUpdate),e.makeModeChangeSubscription(this.updateFloorplanState),i.makeFloorChangeSubscription(this.onCurrentFloorChanged),t.onPropertyChanged(m.n9,this.updateDollhouseState),t.onPropertyChanged(m._z,this.updateFloorplanState)),this.onCurrentFloorChanged(),this.updateDollhouseState(),this.updateFloorplanState(),this.onViewmodeChangeLockUpdate())}))}componentWillUnmount(){this.isUnmounting=!0;for(const e of this.bindings)e.cancel();this.bindings=[]}render(){const{editMode:e,settings:t}=this.context,{className:i,unaligned:s,viewmode:o,activeStateDisplay:r}=this.props,{viewmodeChangeEnabled:d,dollhousePrevented:c,floorplanPrevented:u,insidePrevented:m}=this.state,p=o===h.w5.TRANSITIONING,E=t.tryGetProperty(w.gT,!1);p||(this.activeButtonId=function(e,t){if(e)return n.None;switch(t){case h.w5.DOLLHOUSE:return n.Dollhouse;case h.w5.FLOORPLAN:return n.Floorplan;case h.w5.INSIDE:return n.Inside;case h.w5.MESH:return n.InsideMesh}return n.None}(s,o));const S=function(e){return!e}(e);return(0,a.jsx)(B,{className:l()("viewmode-controls",i),activeStateDisplay:r,activeButtonId:this.activeButtonId,transitioning:p,dollhousePrevented:c,floorplanPrevented:u,insidePrevented:m,meshPrevented:S,viewmodeChangeEnabled:d,peekabooEnabled:E})}}V.contextType=d.B},60966:(e,t,i)=>{"use strict";i.d(t,{J:()=>s});var n=i(18268);class s extends n.u{constructor(e,t){super(),this.ids=e,this.value=t,this.payload={ids:e,value:t}}}s.id="CHANGE_PLUGIN_VISIBILITY_COMMAND"},94932:(e,t,i)=>{"use strict";i.d(t,{f:()=>Q});var n=i(74848),s=i(96540),a=i(17139),o=i(55285),r=i(44158),l=i(521),d=i(75176),c=i(67796),u=i(55614),h=i(32485),m=i.n(h),p=i(52385),E=i(76956),S=i(83686),O=i(54522),g=i(23819),_=i(99366),T=i(56136),A=i(15429),v=i(16603),N=i(37112);const L=3e3;const{HLR:I}=_.A.WORKSHOP;function f(e){const t=!(0,v.i)(T.Y.TourTextNudgeDismissed,!1),i=(0,A.F)(),o=function(){const[e,t]=(0,s.useState)(!1),i=(0,s.useRef)();(0,E.J)(N.l,(()=>{t(!0),n(),i.current=setTimeout((()=>{t(!1),i.current=void 0}),L)}));const n=()=>{i.current&&(clearTimeout(i.current),i.current=void 0)};return e}(),{highlights:r,currentStep:l,activeStep:c,tourPlaying:u}=e,{locale:h,commandBinder:S,settings:O,editMode:_}=(0,s.useContext)(a.B),f=(0,s.useCallback)(((e,t=!0)=>{O.setLocalStorageProperty(T.Y.TourTextNudgeDismissed,!0),t&&e.stopPropagation()}),[O]),b=(0,s.useCallback)((async e=>{await S.issueCommand(new d.IP),f(e,!1)}),[S,f]),R=r[l],y=(null==R?void 0:R.title)||(null==R?void 0:R.description),M=_&&!y&&t,D=(null==R?void 0:R.title)||(M?h.t(I.HIGHLIGHT_TITLE_PLACEHOLDER):""),k=(null==R?void 0:R.description)||(M?h.t(I.HIGHLIGHT_DESCRIPTION_PLACEHOLDER):""),P=i&&!(c!==l)&&u||o,w=m()("tour-story",{active:P,prompt:M});return(0,n.jsxs)(g.w,Object.assign({open:i&&u||o,className:w,onClick:P?b:void 0,"aria-live":"polite","aria-atomic":"true"},{children:[M&&(0,n.jsx)(p.$n,{className:"tour-story-dismiss",theme:"dark",variant:p.Ak.TERTIARY,icon:"close",onClick:f}),(0,n.jsx)("div",Object.assign({className:"tour-story-title"},{children:D})),(0,n.jsx)("div",Object.assign({className:"tour-story-description"},{children:k}))]}))}var b=i(39425);const{TOURS:R}=_.A.SHOWCASE,y=[S.X.FastForwarding,S.X.Rewinding,S.X.Skipping];function M(e){const{activeStep:t,currentStep:i,handlePlayPause:o,highlights:r,tourPlaying:c,toolPanelLayout:u}=e,[h,g]=(0,s.useState)(!1),[T,A]=(0,s.useState)(!1),v=(0,S.I)(),{commandBinder:N,locale:L,analytics:I}=(0,s.useContext)(a.B),M=(0,s.useCallback)((()=>{g(!0)}),[]),D=(0,s.useCallback)((()=>{t===i&&g(!1)}),[t,i]);(0,E.J)(O.n1,M),(0,E.J)(b.A,D);const k=0===r.length,P=u===l.L$.NARROW||u===l.L$.BOTTOM_PANEL,w=c?L.t(_.A.PAUSE):L.t(_.A.PLAY),C=L.t(_.A.PREVIOUS),x=L.t(_.A.NEXT),H=k||!c?"play-unicode":"pause",U=k||y.includes(v),G=r[t];let F=(null==G?void 0:G.snapshot.name)||"";h||(F=c||T?"":L.t(R.TOUR_BUTTON_LABEL));const j=(0,s.useCallback)((()=>{A(!0),o()}),[o]),B=(0,s.useCallback)((async e=>{k||(e.stopPropagation(),A(!0),I.trackGuiEvent("skip_foward_highlights"),await N.issueCommand(new d.FU))}),[I,k,N]),V=(0,s.useCallback)((async e=>{k||(e.stopPropagation(),A(!0),I.trackGuiEvent("skip_backward_highlights"),await N.issueCommand(new d.jL))}),[I,k,N]);return(0,n.jsxs)("div",Object.assign({className:"tour-story-controls"},{children:[(0,n.jsx)(f,{tourPlaying:c,currentStep:i,activeStep:t,highlights:r}),(0,n.jsx)(p.$n,{icon:"dpad-left",className:"story-tour-previous-cta",variant:p.Ak.TERTIARY,size:p.Mp.SMALL,disabled:U,ariaLabel:C,tooltip:C,onClick:V}),(0,n.jsx)(p.$n,{className:"tour-story-play-pause",icon:H,variant:p.Ak.TERTIARY,size:p.Mp.SMALL,disabled:U,ariaLabel:w,tooltip:w,onClick:k?void 0:j}),(0,n.jsx)(p.$n,{icon:"dpad-right",className:"story-tour-next-cta",variant:p.Ak.TERTIARY,size:p.Mp.SMALL,disabled:U,ariaLabel:x,tooltip:x,onClick:B}),F&&c&&!P&&(0,n.jsx)("span",Object.assign({className:m()("tour-control-label",{active:c})},{children:F}))]}))}var D=i(38216),k=i(55294),P=i(84878);function w(e){const{reelEnabled:t,activeTool:i,disabled:o,tourMode:r}=e,d=(0,D.Y)(),{analytics:u,commandBinder:h}=(0,s.useContext)(a.B),E=(0,P.U)(),S=(0,s.useCallback)((()=>{const e=E?"hide_":"show_";u.trackToolGuiEvent("hlr",e+"highlight_reel"),h.issueCommand(new k.CQ(!E))}),[E,u,h]),O=r===c.cR.STORIES;if(!t||O&&i!==l.S0.HLR)return null;const g=E?d.t(_.A.CLOSE_HIGHLIGHTS):d.t(_.A.OPEN_HIGHLIGHTS),T=E?"dpad-down":"dpad-up",A=m()("highlight-button",{"hlr-expanded":E});return(0,n.jsx)(p.$n,{disabled:o,className:A,onClick:S,tooltip:g,ariaLabel:g,"aria-expanded":E?"true":"false",icon:T,theme:"overlay",variant:p.Ak.TERTIARY})}var C=i(81182),x=i(41309),H=i(29633),U=i(15357);function G(){const e=(0,v.i)(x.Q$.HighlightReel,!0),t=(0,C.b)(U.D,U.np);return e&&t!==U.g}(0,H.c)("reelEnabled",G);function F(){const e=(0,v.i)(x.Q$.TourButtons,!0),t=(0,C.b)(U.no,U.XJ),i=(0,C.b)(U.Cs,U.ky);return e&&t!==U.wo&&i!==U.NN}(0,H.c)("tourEnabled",F);function j(e){const{activeTool:t,handlePlayPause:i,highlights:o,hideReel:r,tourPlaying:l}=e,{editMode:d}=(0,s.useContext)(a.B),u=(0,D.Y)(),h=G()&&!r||d,m=F()||d;if(!h&&!m)return null;const E=0===o.length,S=d||!E,O=l?u.t(_.A.PAUSE):u.t(_.A.PLAY),g=l?"pause-outline":"play";return(0,n.jsxs)("div",Object.assign({className:"highlight-tour-controls"},{children:[h&&(0,n.jsx)(w,{disabled:!S,activeTool:t,reelEnabled:h,tourMode:c.cR.LEGACY}),m&&(0,n.jsx)(p.$n,{disabled:E,active:l,onClick:i,variant:p.Ak.TERTIARY,theme:"overlay",className:"tour-controls",ariaLabel:O,icon:g,tooltip:O})]}))}var B=i(58330),V=i(61051),W=i(35652);const z=new W.Ay("preview-tour"),{HLR:K}=_.A.WORKSHOP;function Y(){const{commandBinder:e}=(0,s.useContext)(a.B),t=(0,D.Y)(),i=(0,B.H)(),o=0===(0,V.u)(),r=(0,s.useCallback)((async()=>{if(!o)try{await e.issueCommand(new d.mT)}catch(e){z.debug(e)}}),[e,o]),l=t.t(K.PREVIEW_SETTINGS_CTA),c=i?void 0:l,u=i?l:void 0;return(0,n.jsx)(p.$n,{icon:"play-unicode",label:c,tooltip:u,disabled:o,size:p.Mp.LARGE,theme:"dark",className:"preview-tour-button",variant:p.Ak.FAB,onClick:r})}const $=new W.Ay("tour-controls");function Q(e){const{activeStep:t,activeTool:i,currentStep:h,hideReel:m,toolPanelLayout:p,tourMode:E,tourPlaying:S,highlights:O,hasTours:g}=e,{analytics:_,commandBinder:T,editMode:A}=(0,s.useContext)(a.B),{outOfScope:v}=(0,s.useContext)(u.i),N=async()=>{if(0===O.length)return;const e=S?"pause_highlights":"play_highlights";_.trackGuiEvent(e);try{S?await T.issueCommand(new d.IP):await T.issueCommand(new d.mT)}catch(e){$.debug(e)}},L=i===l.S0.HLR,I=i===l.S0.SEARCH,f=i===l.S0.LAYERS,b=E===c.cR.NONE,R=!!i&&!(L||I||f),y=()=>{if(A){const e=p===l.L$.BOTTOM_PANEL||p===l.L$.NARROW;if(i===l.S0.MESH_TRIM)return!1;if(e&&R)return!1}else{if(0===O.length&&!g||b||R)return!1}return!0};return(0,o.ML)("keydown",(e=>{const t=e.target;v||!y()||"CANVAS"!==t.tagName&&"BODY"!==t.tagName||(S||e.keyCode===r.D.SPACE)&&(e.stopPropagation(),N())})),L&&!S?(0,n.jsx)(Y,{}):y()?E===c.cR.STORIES?(0,n.jsx)(M,{activeStep:t,currentStep:h,highlights:O,toolPanelLayout:p,tourPlaying:S,handlePlayPause:N}):(0,n.jsx)(j,{activeTool:i,handlePlayPause:N,highlights:O,hideReel:m,tourPlaying:S}):null}},30884:(e,t,i)=>{"use strict";i.d(t,{R:()=>m});var n=i(57642),s=i(3520),a=i(16616),o=i(54839),r=i(21296),l=i(2409),d=i(20322),c=i(93227),u=i(64536),h=i(36026);class m{constructor(e,t){this.engine=e,this.disabledAssets={[d.f]:!1,[o.s]:!1,[r.RP]:!1,[l.qE]:!1,[a.nH]:!1},this.settingsToggler=new s.U(t,this.disabledAssets),this.initPromise=this.init()}async init(){const{market:e}=this.engine;[this.measurementModeData,this.searchData]=await Promise.all([e.waitForData(c.s),e.waitForData(n.L)])}async activate(){this.settingsToggler.toggle(!0),await this.engine.commandBinder.issueCommandWhenBound(new u.S(!0,!0))}async deactivate(){this.settingsToggler.toggle(!1),this.engine.commandBinder.issueCommand(new h.y(-1)),await this.engine.commandBinder.issueCommand(new u.S(!1))}async dispose(){await this.initPromise}}},42021:(e,t,i)=>{"use strict";i.d(t,{e:()=>p});var n=i(74848),s=i(96540),a=i(99366),o=i(17139),r=i(56136),l=i(38216),d=i(16603),c=i(87256),u=i(36186),h=i(74714),m=i(89330);function p(){const{settings:e}=(0,s.useContext)(o.B),t=(0,l.Y)(),i=(0,d.i)(r.Y.MeasurementSnapping,!1),p=(0,d.i)(r.Y.MeasurementContinuousLines,!1),E=(0,m.g)(),S=(0,s.useCallback)((()=>{e.setLocalStorageProperty(r.Y.MeasurementSnapping,!i)}),[e,i]),O=(0,s.useCallback)((()=>{e.setLocalStorageProperty(r.Y.MeasurementContinuousLines,!p)}),[e,p]),g=t.t(a.A.MEASUREMENT_CONTINUOUS_LINES),_=t.t(a.A.MEASUREMENT_SNAPPING),T=t.t(a.A.TOOLS.MEASUREMENTS_SETTINGS);return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",Object.assign({className:"floorplan-overlay-title"},{children:T})),(0,n.jsxs)(c.t,Object.assign({className:"floorplan-overlay-tooltip"},{children:[E&&(0,n.jsx)(u.A,{label:_,onToggle:S,enabled:!0,toggled:i})," ",E&&(0,n.jsx)(u.A,{label:g,onToggle:O,enabled:!0,toggled:p}),(0,n.jsx)(h.m,{})]}))]})}},95822:(e,t,i)=>{"use strict";i.d(t,{S:()=>Y});var n=i(74848),s=i(96540),a=i(17139),o=i(81196),r=i(16603),l=i(9962),d=i(56136),c=i(8430),u=i(55649),h=i(83910),m=i(76484),p=i(89330),E=i(80494),S=i(24684),O=i(78683);function g(){const e=(0,S.E)();return(0,O.B)(e||"")}var _=i(89546);var T=i(43802),A=i(93227);const v=(0,T.r)(A.s,"pressProgress",-1);var N=i(82030),L=i(93475);const I=(e,t)=>{if(t===N.t.METRIC)return`${e.toFixed(2)}m`;const{feet:i,inches:n}=(0,L.A4)(e);return i>0?`${i}' ${n}"`:`${n}"`};var f=i(98260);const b={addEnabled:{[m.hb.CREATING]:!0,[m.hb.CONFIRMING_POINT]:!0},deleteVisible:{[m.hb.IDLE]:!0,[m.hb.CREATING]:!0,[m.hb.CREATING_NEXT_POINT]:!0}},R={addEnabled:{[m.hb.CREATING]:!0,[m.hb.CONFIRMING_POINT]:!0},deleteVisible:{[m.hb.IDLE]:!0,[m.hb.CREATING]:!0,[m.hb.CREATING_NEXT_POINT]:!0}};var y=i(99366),M=i(38216),D=i(96492),k=i(89567),P=i(75387),w=i(52385),C=i(31323),x=i(77985),H=i(9544);const U="Measurement-Help",G="measurement-mode-add-tooltip",F="measurement-mode-help";function j({touchDevice:e,unaligned:t,phase:i,confirming:o,selectedGroup:r}){const{editMode:l,commandBinder:d}=(0,s.useContext)(a.B),c=(0,s.useRef)(null),u=(0,M.Y)();function h(){c.current&&c.current.dismissNudge()}const p=i===m.hb.CREATING&&(!r||0===r.count),E=i===m.hb.CREATING_NEXT_POINT&&!!r&&2===r.count,S=!o&&(p||E),O=i===m.hb.EDITING,g=S||o,_=t||O;let T=C.R.ADD,A=u.t(y.A.MEASUREMENT_ADD_LABEL);o?(T=C.R.CONFIRM,A=u.t(y.A.MEASUREMENT_SAVE_LABEL)):S&&(T=C.R.CANCEL,A=u.t(y.A.MEASUREMENT_CANCEL_LABEL));const v=r&&T!==C.R.CANCEL&&(e?!!b.deleteVisible[i]:!!R.deleteVisible[i]),N=u.t(y.A.MEASUREMENT_START_ADDING),L=l,I=v?(0,n.jsx)(w.$n,{className:"action-button-outer",icon:"delete",variant:w.Ak.FAB,theme:"overlay",onClick:e=>{h(),e.stopPropagation(),d.issueCommand(new D.SH)}}):void 0;return(0,n.jsx)(H.E,Object.assign({outerRight:I},{children:(0,n.jsx)(x.A,{ref:c,disabled:_,addIcon:T,ariaLabel:A,ariaDescribedBy:U,allowLayerChange:g,onChangeLayer:()=>{h()},nudgeDisabled:L,nudgeMessage:N,nudgeSessionKey:G,onClick:e=>{h(),e.stopPropagation(),i===m.hb.IDLE?d.issueCommand(new k.X):d.issueCommand(new P.R)}})}))}var B=i(32485),V=i.n(B);const W=i(8241);function z(e){const{touchDevice:t,phase:i,groupCount:o}=e,{settings:l}=(0,s.useContext)(a.B),d=(0,M.Y)(),c=(0,r.i)(F,!1),[u,h]=(0,s.useState)(!1);if((0,s.useEffect)((()=>()=>{u&&l.setProperty(F,!0)}),[u,l]),c)return null;const p=d.t(y.A.MEASUREMENT_HELP_CLICK_ANYWHERE),E=d.t(y.A.MEASUREMENT_HELP_ESCAPE),S=d.t(y.A.MEASUREMENT_HELP_PRESS_START),O=d.t(y.A.MEASUREMENT_HELP_DRAG_EDIT),g=d.t(y.A.MEASUREMENT_HELP_PRESS_END);let _,T,A;if(t)switch(i){case m.hb.CREATING:_=(0,n.jsx)("div",{className:"icon icon-press-hold"}),T=S;break;case m.hb.CREATING_NEXT_POINT:_=(0,n.jsx)("div",{className:"icon icon-drag-edit"}),T=g,u||h(!0);break;case m.hb.EDITING:case m.hb.POINT_PLACED:_=(0,n.jsx)("div",{className:"icon icon-finger-drag"}),T=O;break;default:return null}else switch(i){case m.hb.CREATING:_=(0,n.jsx)("div",{className:"icon icon-draw-lines"}),T=p;break;case m.hb.CREATING_NEXT_POINT:o>=3&&(_=(0,n.jsx)("div",Object.assign({className:"escape-key"},{children:(0,n.jsx)("img",{src:W})})),T=E,A="escape-message",u||h(!0));break;default:return null}return(0,n.jsxs)("div",Object.assign({className:"overlay-message"},{children:[_,T&&(0,n.jsx)("span",Object.assign({id:U,className:V()("message",A)},{children:T}))]}))}var K=i(42336);i(29251);function Y(){var e;const{commandBinder:t}=(0,s.useContext)(a.B),i=(0,o.J)(),S=(0,r.i)(d.Y.MeasurementContinuousLines,!1),O=(0,p.g)(),T=(0,E.W)(),A=g(),N=(0,s.useMemo)((()=>(0,c.C8)()),[]),L=function(){var e;const t=(0,_.g)(),[i,n]=(0,s.useState)(null!==(e=null==t?void 0:t.pointPosition)&&void 0!==e?e:null);return(0,s.useEffect)((()=>{if(!t)return()=>{};function e(){t&&n(t.pointPosition)}const i=t.onPointPositionChanged(e);return e(),()=>i.cancel()}),[t]),i}(),R=v(),y=function(){const e=g(),t=(0,r.i)(d.Y.MeasurementContinuousLines,!1),i=(null==e?void 0:e.count)||0;return t?i>2:2===i}(),M=(0,l.f)(),D=!!A&&(y&&(S?T===m.hb.CREATING_NEXT_POINT:T===m.hb.CREATING));(0,s.useEffect)((()=>(T===m.hb.CLOSED&&t.issueCommand(new u.X(h.a.MEASUREMENT_HELP,!1)),()=>{})),[T]);const k=b.addEnabled[T],P=(null==A?void 0:A.info.text)?` ${A.info.text}`:"",w=A?`${I(A.length,i)} ${P}`:void 0;return(0,n.jsxs)("div",Object.assign({className:"overlay grid-overlay measurements-overlay"},{children:[A&&(0,n.jsx)(K.L,{children:w}),(0,n.jsx)(z,{phase:T,touchDevice:N,groupCount:null!==(e=null==A?void 0:A.count)&&void 0!==e?e:0}),k&&(0,n.jsx)(f.z,{progress:R,screenPosition:L}),O&&(0,n.jsx)(j,{unaligned:M,phase:T,touchDevice:N,selectedGroup:A,confirming:D})]}))}},84032:(e,t,i)=>{"use strict";i.d(t,{u:()=>S});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(23819),l=i(38216),d=i(55649),c=i(71294),u=i(13820),h=i(52385),m=i(87987),p=i(83910),E=i(63438);function S({commandBinder:e}){const[t,i]=(0,s.useState)(!1),[a,S]=(0,s.useState)(),[O,g]=(0,s.useState)(),_=(0,l.Y)(),T=(0,s.useCallback)((async t=>{null==a||a.resolve(t),i(!1),e.issueCommand(new d.r)}),[e,a]),A=(0,s.useCallback)((()=>{T(E.$t.CLOSE)}),[T]),v=(0,s.useCallback)((()=>{T(E.$t.CONFIRM)}),[T]),N=(0,s.useCallback)((async n=>{switch(n.action){case E.YE.DISPLAY:if(t){if(!(null==O?void 0:O.cancellable))return Promise.reject("Cannot close non-cancellable modal");await T(E.$t.CLOSE)}i(!0),e.issueCommand(new d.X(p.a.CONFIRM,!0)),g(n.properties);const s=new c.i;return S(s),s.nativePromise();case E.YE.UPDATE:return g(n.properties),null==a?void 0:a.nativePromise();case E.YE.CLOSE:return t?(T(E.$t.CLOSE),null==a?void 0:a.nativePromise()):Promise.reject("Cannot cancel a closed modal")}}),[T,e,O,t,a]);(0,s.useEffect)((()=>(e.addBinding(E.nX,N),()=>{e.removeBinding(E.nX,N)})),[e,N]);const L=(0,s.useCallback)((e=>e.stopPropagation()),[]);if(!O)return null;const{title:I,titleLocalizationOptions:f,message:b,messageLocalizationOptions:R,confirmPhraseKey:y,cancelPhraseKey:M,closeButton:D,modalClass:k,confirmDisabled:P,cancelVariant:w}=O;let C=I;if("string"==typeof I&&0!==I.length){const e=void 0===f?{}:f,t=_.t(I,e);C=(0,n.jsx)("span",{children:t})}let x=b;if("string"==typeof b){const e=void 0===R?{}:R,t=_.t(b,e);x=(0,n.jsx)("p",Object.assign({className:"modal-message"},{children:t}))}return(0,n.jsx)(r.w,Object.assign({open:t,className:o()("modal-background","confirm-modal-background",{open:t}),onClick:L,onPointerDown:L,onPointerUp:L},{children:(0,n.jsxs)(u.l,Object.assign({testId:"confirm-modal",className:o()("confirm-modal",k),onClose:A},{children:[(0,n.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,n.jsx)("div",Object.assign({className:"modal-title"},{children:C})),D&&(0,n.jsx)(h.$n,{icon:"close",onClick:A})]})),(0,n.jsx)("div",Object.assign({className:"modal-body"},{children:x})),(0,n.jsxs)(m.e,Object.assign({spacing:"small"},{children:[M&&(0,n.jsx)(h.$n,Object.assign({size:"large",onClick:A,variant:w||h.Ak.SECONDARY},{children:_.t(M)})),y&&(0,n.jsx)(h.$n,Object.assign({disabled:P,variant:h.Ak.PRIMARY,size:"large",onClick:v},{children:_.t(y)}))]}))]}))}))}},63438:(e,t,i)=>{"use strict";i.d(t,{$t:()=>n,YE:()=>s,nX:()=>r});var n,s,a=i(18268);!function(e){e[e.CONFIRM=0]="CONFIRM",e[e.CLOSE=1]="CLOSE"}(n||(n={})),function(e){e[e.CLOSE=0]="CLOSE",e[e.DISPLAY=1]="DISPLAY",e[e.UPDATE=2]="UPDATE"}(s||(s={}));const o={message:"",title:"",modalClass:"",cancellable:!0,closeButton:!0,confirmDisabled:!1};class r extends a.u{constructor(e,t){if(super(),e&&!t)throw new Error("Cannot open empty modal");this.payload={action:e,properties:Object.assign(Object.assign({},o),t)}}}r.id="CONFIRM_MODAL"},79606:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(72909),l=i(91607),d=i(23819),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let h=class extends s.Component{constructor(e){super(e)}render(){const{showing:e}=this.props;return(0,n.jsx)(d.w,Object.assign({open:e,className:o()("load-indicator",{"fade-in":e,"fade-out":!e})},{children:(0,n.jsx)("div",Object.assign({className:"center-container"},{children:(0,n.jsx)(l.A,{progress:33,barWidth:4,progressColor:"#ffffff"})}))}))}};h=c([r.A,u("design:paramtypes",[Object])],h);const m=h},83910:(e,t,i)=>{"use strict";var n;i.d(t,{a:()=>n}),function(e){e.ADD_FROM_PHOTOS="add_from_photos",e.ATTACHMENT="attachmentViewer",e.CONFIRM="confirm",e.CTA="cta",e.DEFURNISH_AI="defunish_ai",e.HELP="help",e.HIGHLIGHT_EDITOR="highlight_editor",e.LAYER_ADD="layer_add",e.LINK_EDITOR="link_editor",e.MEASUREMENT_HELP="measurementModeHelp",e.MEDIA_EMBED_POPUP="mediaEmbedPopup",e.MODEL_VIEW_ADD="model_view_add",e.MODEL_VIEW_EDITOR="model_view_editor",e.MODEL_VIEW_DUPLICATE="model_view_duplicate",e.PHOTO_VIEWER="photo_viewer",e.RATING_THANK_YOU="rating_thank_you",e.SETTINGS="settings",e.SHARE="share",e.TERMS="terms",e.TOUR_SETTINGS="hlr_settings",e.VIEWS_INFO="views_info",e.VR_SELECT="vrSelect"}(n||(n={}))},45387:(e,t,i)=>{"use strict";i.d(t,{p:()=>L});var n=i(74848),s=i(43802),a=i(44076);const o=(0,s.r)(a.G,"isDialogVisible",!1);var r=i(11360),l=i(96540),d=i(32485),c=i.n(d),u=i(17139),h=i(99366),m=i(99167),p=i(33675),E=i(91485),S=i(13820),O=i(52385),g=i(55147),_=i(34942),T=i(62017);const{MODEL_RATING:A}=h.A.WORKSHOP,v=Object.values(_.zm);class N extends l.Component{constructor(e){super(e),this.submitCurrentRating=(e=!1)=>{const{currentQuestionId:t}=this.state;let i={};switch(t){case _.zm.QUALITY:i={quality:this.state.quality};break;case _.zm.NAVIGATION:i={navigation:this.state.navigation};break;case _.zm.FEEDBACK:i={feedback:this.state.feedback},this.resetValues()}i&&this.context.commandBinder.issueCommand(new g.i(i,e))},this.resetValues=()=>{this.setState({happiness:void 0,quality:void 0,navigation:void 0,feedback:void 0})},this.hasPerfectHappinessRating=()=>this.state.happiness===_.kk,this.handleButtonClick=()=>{const{currentQuestionId:e}=this.state;let t;switch(this.submitCurrentRating(e===_.zm.FEEDBACK),e){case _.zm.QUALITY:t=_.zm.NAVIGATION;break;case _.zm.NAVIGATION:t=_.zm.FEEDBACK;case _.zm.FEEDBACK:}t&&this.setState({currentQuestionId:t})},this.handleHappinessClick=e=>{this.context.commandBinder.issueCommand(new g.i({happiness:e})),e!==_.kk?this.setState({happiness:e,currentQuestionId:_.zm.QUALITY}):this.submitCurrentRating(!0)},this.handleCheckboxChange=(e,t,i)=>{const n=i.value,s={},a=(this.state[t]||[]).slice();a.includes(n)?a.splice(a.indexOf(n),1):a.push(n),s[t]=a,this.setState(s)},this.handleFeedbackChange=e=>{this.setState({feedback:e})},this.handleClose=()=>{this.context.commandBinder.issueCommand(new g.c(!1))},this.renderProgress=()=>{const{locale:e}=this.context,{currentQuestionId:t}=this.state;if(!t)return null;if(t===_.zm.HAPPINESS||this.hasPerfectHappinessRating())return;const i=v.indexOf(t);return(0,n.jsx)("span",Object.assign({className:"model-rating-progress"},{children:e.t(A.PROGRESS,{"current-question-number":i,"max-question-number":v.length-1})}))},this.state={currentQuestionId:_.zj}}componentWillUnmount(){this.submitCurrentRating(),this.context.commandBinder.issueCommand(new g.c(!1))}renderCurrentQuestion(){const{locale:e}=this.context,{currentQuestionId:t,happiness:i}=this.state;if(t===_.zm.FEEDBACK)return(0,n.jsx)("div",Object.assign({className:"question-type text-entry"},{children:(0,n.jsx)(E.A,{text:this.state.feedback||"",label:e.t(A.FEEDBACK_LABEL),onInput:this.handleFeedbackChange,onDone:this.handleFeedbackChange,maxLength:200,rows:3,focusOnMount:!0,scrollIntoViewOnMount:!0})}));if(t===_.zm.HAPPINESS)return(0,n.jsx)(T.w,{happiness:i,setHappiness:this.handleHappinessClick});if(t===_.zm.QUALITY||t===_.zm.NAVIGATION){const i=(t===_.zm.QUALITY?this.state.quality:this.state.navigation)||[],s=_.ot[t];return(0,n.jsx)("div",Object.assign({className:"question-type multi-select"},{children:s.map((s=>(0,n.jsx)(p.S,{enabled:!0,checkboxStyle:p.x.FILTER,onChange:this.handleCheckboxChange,onChangeArgs:[t,s],checked:i.includes(s.value),label:e.t(s.text)},s.text)))}))}return null}render(){const{locale:e}=this.context,{currentQuestionId:t}=this.state,i=t===_.zj,s=_.dW[t],a=_.SN[t],o=t===_.zm.FEEDBACK?A.SAVE:A.NEXT;return(0,n.jsxs)(S.l,Object.assign({className:c()("model-rating-dialog",{"in-progress":!i}),onClose:this.handleClose},{children:[(0,n.jsx)(m.J,{onClose:this.handleClose}),(0,n.jsxs)("div",Object.assign({className:"model-rating-form"},{children:[(0,n.jsxs)("div",Object.assign({className:"model-rating-question"},{children:[(0,n.jsx)("h3",Object.assign({className:"question-title"},{children:e.t(s)})),a&&(0,n.jsx)("p",Object.assign({className:"question-body"},{children:e.t(a)})),this.renderCurrentQuestion()]})),(0,n.jsxs)("footer",Object.assign({className:"model-rating-footer"},{children:[(0,n.jsx)("div",{children:t!==_.zm.HAPPINESS&&(0,n.jsx)(O.$n,{onClick:this.handleButtonClick,variant:O.Ak.TERTIARY,label:e.t(o)})}),this.renderProgress()]}))]}))]}))}}function L(){const e=o(),t=(0,r.T)();return!e||t?null:(0,n.jsx)(N,{})}N.contextType=u.B},2215:(e,t,i)=>{"use strict";i.d(t,{y:()=>u});var n=i(74848),s=i(96540),a=i(17139),o=i(55649),r=i(83910),l=i(99167),d=i(13820),c=i(39570);class u extends s.Component{constructor(){super(...arguments),this.onClose=()=>{this.context.commandBinder.issueCommand(new o.X(r.a.RATING_THANK_YOU,!1))}}render(){return(0,n.jsxs)(d.l,Object.assign({className:"model-rating-thank-you open",onClose:this.onClose},{children:[(0,n.jsx)(l.J,{onClose:this.onClose}),(0,n.jsx)(c.z,{onSupportClicked:this.onClose})]}))}}u.contextType=a.B},34942:(e,t,i)=>{"use strict";i.d(t,{SN:()=>d,dW:()=>l,kk:()=>a,ot:()=>c,zj:()=>r,zm:()=>o});var n=i(99366);const{MODEL_RATING:s}=n.A.WORKSHOP,a=5,o={HAPPINESS:"happiness",QUALITY:"quality",NAVIGATION:"navigation",FEEDBACK:"feedback"},r=o.HAPPINESS,l={[o.HAPPINESS]:s.HAPPINESS_TITLE,[o.QUALITY]:s.QUALITY_ISSUES_TITLE,[o.NAVIGATION]:s.NAVIGATION_ISSUES_TITLE,[o.FEEDBACK]:s.FEEDBACK_TITLE},d={[o.HAPPINESS]:s.HAPPINESS_BODY},c={[o.QUALITY]:[{text:s.QUALITY_ISSUES_LIGHTING,value:"lighting"},{text:s.QUALITY_ISSUES_3D_MESH,value:"3d_mesh"},{text:s.QUALITY_ISSUES_COLORING,value:"coloring"},{text:s.QUALITY_ISSUES_IMAGE_QUALITY,value:"image_quality"}],[o.NAVIGATION]:[{text:s.NAVIGATION_ISSUES_BLOCKED_DOORWAYS,value:"blocked_doorways"},{text:s.NAVIGATION_ISSUES_OBSTRUCTIONS,value:"obstructions"},{text:s.NAVIGATION_ISSUES_MISALIGNED_SCANS,value:"misaligned_scans"},{text:s.NAVIGATION_ISSUES_FLOOR_SEPARATION,value:"floor_separation"},{text:s.NAVIGATION_ISSUES_DISAPPEARING_FLOORS,value:"disappearing_floors"}]}},42336:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var n=i(74848),s=i(32485),a=i.n(s);function o({children:e,className:t}){return(0,n.jsx)("div",Object.assign({className:a()("overlay-top-center",t)},{children:(0,n.jsx)("div",Object.assign({className:"overlay-info"},{children:e}))}))}},47557:(e,t,i)=>{"use strict";i.d(t,{P:()=>A});var n=i(74848),s=i(32485),a=i.n(s),o=i(96540),r=i(93605),l=i(99167),d=i(35596),c=i(17139),u=i(87137),h=i(85110),m=i(41733),p=i(66077),E=i(83916),S=i(13673);const O=new m.L({from:null,to:null,progress:new E.z(0),promise:Promise.resolve()});var g=i(99820);function _(){const e=function(){const e=(0,S._)();return(0,p.A)(e?e.transitionObservable:O)}();return(0,g.P)((null==e?void 0:e.to)||null)}var T=i(25661);function A(e){const{commandBinder:t}=(0,o.useContext)(c.B),i=(0,u.a)(),s=function(){const e=(0,h.X)(),t=_(),[i,n]=(0,o.useState)(e?e.name:"");return(0,o.useEffect)((()=>(e?n(e.name):t&&n(t.name),()=>{})),[e,t]),i}(),m=(0,T.m)(),p=(0,o.useCallback)((()=>{t.issueCommand(new r.i1(null,!1))}),[t]);if(i!==d.Jj.PLAYING)return null;const E=a()("floor-container",e.className);return(0,n.jsxs)("div",Object.assign({className:E},{children:[(0,n.jsx)("div",Object.assign({className:"floor-title h4"},{children:s||""})),m&&(0,n.jsx)(l.J,{theme:"dark",onClose:p,tooltip:""})]}))}},46610:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var n=i(74848),s=i(96540),a=i(99167),o=i(8430),r=i(88826),l=i(55285),d=i(71891),c=i(82110),u=i(16603),h=i(99817),m=i(18294),p=i(17139),E=i(23819),S=i(32485),O=i.n(S),g=i(38216),_=i(99366),T=i(35595);const A={rotate:{desktop:{icon:[r.z.mouse.ctrlClick,r.z.mouse.dragRight],phrase:_.A.SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.DESKTOP},touch:{icon:[r.z.gesture.dragTwoFingerRotate],phrase:_.A.SHOWCASE.HELP.TOUCH_DOLLHOUSE_ROTATE}},inside:{desktop:{icon:[r.z.mouse.clickInside],phrase:_.A.SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.DESKTOP},touch:{icon:[r.z.gesture.tapInside],phrase:_.A.SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.TOUCH}}},v=()=>{const{messageBus:e}=(0,s.useContext)(p.B),t=(0,u.i)(h.gT,!1),i=(0,g.Y)(),r=(0,o.C8)(),[S,v]=(0,l.Mj)("peekaboo_dh_prompt_dismissed",0),[N,L]=(0,s.useState)(!1),[I,f]=(0,s.useState)(!1),[b,R]=(0,s.useState)(A.rotate),y=(0,d.x)(),M=(0,T.O)(),D=i.t(_.A.SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.OR),k=t&&y===c.N3.Dollhouse&&!M&&!N&&S<3;(0,s.useEffect)((()=>{let e;return k&&(R(A.rotate),e=setTimeout((()=>{f(!0)}),1e4)),()=>{e&&clearTimeout(e)}}),[k]),(0,s.useEffect)((()=>{const t=k&&b===A.rotate?e.subscribe(m.i,(()=>{R(A.inside)})):null;return()=>{null==t||t.cancel()}}),[k,e,b]);const P=(0,s.useCallback)((()=>{v(S+1),L(!0),f(!1)}),[S,v]);(0,s.useEffect)((()=>{!k&&I&&P()}),[k,I,P]);const{icon:w,phrase:C}=b[r?"touch":"desktop"],x=w.length>0&&w[0],H=w.length>1&&w[1],U=(0,n.jsx)("svg",Object.assign({width:"2",height:"16",viewBox:"0 0 2 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M1 0L1 16",stroke:"white"})}));return(0,n.jsxs)(E.w,Object.assign({open:I,className:O()("peekaboo-dh-prompt",!I&&"unloading")},{children:[x&&(0,n.jsx)("img",{src:w[0],alt:"",height:r?26:50}),H&&(0,n.jsxs)("div",Object.assign({className:"separator"},{children:[U,(0,n.jsx)("span",{children:D}),U]})),H&&(0,n.jsx)("img",{src:w[1],alt:"",height:r?26:50}),(0,n.jsx)("span",Object.assign({className:"text"},{children:i.t(C)})),(0,n.jsx)(a.J,{theme:"dark",onClose:P,tooltip:""})]}))}},20255:(e,t,i)=>{"use strict";i.d(t,{h:()=>S});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(17139),l=i(9321),d=i(521),c=i(23819),u=i(57016),h=i(97137),m=i(45609),p=i(40270),E=i(64018);function S(e){const{closed:t,toolId:i,children:a,className:S,filmstrip:O,title:g,titleNode:_,subheader:T,hideHelp:A,hideBadge:v,footer:N,controls:L,subheaderCollapsedHeight:I}=e,{commandBinder:f}=(0,s.useContext)(r.B),b=(0,u.J)(),R=(0,h.O)(),y=(0,m.M)(i),[M,D]=(0,s.useState)(b),[k,P]=(0,s.useState)(!1),w=(0,s.useRef)(void 0),C=(0,s.useCallback)((e=>{if(e){if(k||M)return;window.clearTimeout(w.current),P(!0),w.current=window.setTimeout((()=>{P(!1),D(!0)}),p.e0)}else D(!1),window.clearTimeout(w.current)}),[P,D,k,M,w]);(0,s.useEffect)((()=>{!b&&M&&C(b)}),[C,b,M]),(0,s.useEffect)((()=>()=>{window.clearTimeout(w.current)}),[w]);const x=!!y&&!t,H=R===d.L$.BOTTOM_PANEL,U=!(M&&!k),G={closed:t,collapsed:M,collapsing:k,"filmstrip-panel":O},F=I&&(H&&M)?{height:I+p.Zn}:void 0,j=T&&(I||!M),B=O||H;return(0,n.jsxs)(c.w,Object.assign({open:x,className:o()("list-panel",G,S),style:F,onKeyDown:function(e){"Escape"===e.code&&(e.stopPropagation(),f.issueCommand(new l.u3(i)))},focus:!0},{children:[y&&(0,n.jsx)(E.a,Object.assign({tool:y,title:g,titleNode:_,hideHelp:A,hideBadge:v,expandable:B,onTogglePanel:C},{children:L})),j&&T,U&&a,U&&N||null]}))}},64018:(e,t,i)=>{"use strict";i.d(t,{a:()=>_});var n=i(74848),s=i(7839),a=i(96540),o=i(17139),r=i(99366),l=i(38216),d=i(9321),c=i(57016),u=i(52385),h=i(87987),m=i(32485),p=i.n(m);const E=({children:e,className:t})=>{if(!e)return null;const i=p()("panel-title",t);return(0,n.jsx)("div",Object.assign({className:i},{children:e}))};var S=i(99167);const{COLLAPSE_PANEL:O,EXPAND_PANEL:g}=r.A.PANELS;function _(e){const{tool:t,title:i,titleNode:r,children:m,expandable:p,hideHelp:_,hideBadge:T,onTogglePanel:A}=e,v=(0,l.Y)(),N=(0,c.J)(),{commandBinder:L}=(0,a.useContext)(o.B),I=!_,f=(0,a.useCallback)((()=>{L.issueCommand(new d.u3(t.id))}),[L,t]),b=(0,a.useCallback)((e=>{e&&e.stopPropagation();const t=!N;A&&A(t),L.issueCommand(new d.li(t))}),[L,N,A]),R=N?"dpad-up":"dpad-down",y=N?v.t(g):v.t(O);return(0,n.jsxs)("div",Object.assign({className:"panel-header",onClick:p?b:void 0},{children:[(0,n.jsxs)(E,{children:[(0,n.jsxs)("div",Object.assign({className:"panel-name"},{children:[p&&(0,n.jsx)(u.$n,{icon:R,label:i,tooltip:y,tooltipOptions:{placement:"bottom-start"},variant:u.Ak.TERTIARY,onClick:b}),!p&&i]})),t.badgePhraseKey&&!T&&(0,n.jsx)("span",Object.assign({className:"word-badge"},{children:v.t(t.badgePhraseKey)})),r||null]}),(0,n.jsxs)(h.e,Object.assign({className:"panel-header-controls"},{children:[m,I&&(0,n.jsx)(s.k,{tool:t}),(0,n.jsx)(S.J,{tooltipOptions:{placement:"bottom"},onClose:f})]}))]}))}},7440:(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var n=i(74848),s=i(32485),a=i.n(s),o=i(15429);function r(e){const t=(0,o.F)(),{activeStep:i,currentStep:s,highlights:r}=e,l=r[s],d=i!==s,c=((null==l?void 0:l.title)||(null==l?void 0:l.description))&&t&&!d;return(0,n.jsx)("div",Object.assign({className:"overlay-layer"},{children:(0,n.jsx)("div",{className:a()("tour-story-scrim",{active:c})})}))}},97825:(e,t,i)=>{"use strict";i.d(t,{F:()=>W});var n=i(74848),s=i(32485),a=i.n(s),o=i(521),r=i(67796),l=i(84878),d=i(23819),c=i(96540),u=i(17139),h=i(35652),m=i(72909),p=i(8430),E=i(75176),S=i(95777),O=i(93405),g=i(94002);class _ extends c.Component{constructor(e){super(e),this.highlights=[],this.highlightList=e=>{const{currentStep:t,onHighlightClicked:i}=this.props;return(0,n.jsx)("div",Object.assign({className:"hlr-container"},{children:(0,n.jsx)("div",Object.assign({className:"highlights",role:"list"},{children:e.items.map(((e,s)=>(0,n.jsx)(g.f,{highlight:e,index:s,active:s===t,editable:!1,onClickHighlight:i,getRef:this.addHighlightRef},`${e.id}_${s}`)))}))}))},this.addHighlightRef=(e,t)=>{this.highlights[e]=t,e===this.props.currentStep&&this.props.setActiveElement&&this.props.setActiveElement(t)}}componentDidUpdate(e){e.currentStep!==this.props.currentStep&&this.props.setActiveElement(this.highlights[this.props.currentStep])}render(){const{highlights:e}=this.props;return e&&e.length?(0,n.jsx)(this.highlightList,{items:e}):null}}i(67249);var T=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const v=new h.Ay("highlight-reel");let N=class extends c.Component{constructor(e){super(e),this.bindings=[],this.mobile=(0,p.Fr)(),this.setActiveElement=e=>{this.setState({activeElement:e})},this.setHighlightClickable=(e=>this.highlightClickable=e).bind(this),this.onHighlightClicked=async e=>{const{commandBinder:t,analytics:i}=this.context;if(this.highlightClickable)try{this.props.tourPlaying&&await t.issueCommand(new E.IP),this.props.transition.active||(i.trackToolGuiEvent("hlr","click_highlight"),await t.issueCommand(new E.OR(e)).catch((e=>{if(!(e instanceof S.K))throw e;v.warn(e.message)})),this.setHighlightClickable(!1))}catch(e){v.debug(e)}},this.state={activeElement:null}}componentWillUnmount(){this.bindings.forEach((e=>{e.cancel()}))}render(){const{activeStep:e,highlights:t,totalSteps:i}=this.props;return(0,n.jsx)("div",Object.assign({id:"reel-container"},{children:(0,n.jsx)(O.X,Object.assign({totalSteps:i,activeElement:this.state.activeElement,mobile:this.mobile,highlightClickable:this.setHighlightClickable,thumbScrollingOnly:!1},{children:(0,n.jsx)(_,{highlights:t,currentStep:e,onHighlightClicked:this.onHighlightClicked,setActiveElement:this.setActiveElement})}))}))}};N.contextType=u.B,N=T([m.A,A("design:paramtypes",[Object])],N);var L=i(99366);const{HLR:I}=L.A.SHOWCASE;class f extends c.Component{render(){const{locale:e}=this.context,t=e.t(I.EMPTY_REEL_LEARN_MORE),i=e.t(I.EMPTY_REEL_TITLE),s=e.t(I.EMPTY_REEL_MESSAGE);return(0,n.jsx)("div",Object.assign({className:"empty-reel"},{children:(0,n.jsxs)("div",Object.assign({className:"no-highlights-message"},{children:[(0,n.jsx)("p",{children:i}),(0,n.jsxs)("p",{children:[s,(0,n.jsx)("a",Object.assign({className:"link",target:"_blank",href:"https://support.matterport.com/hc/en-us/articles/360019401733"},{children:t}))]})]}))}))}}f.contextType=u.B;var b=i(61051),R=i(58770),y=i(38471),M=i(83686);function D(){const e=(0,y.t)(),t=(0,M.I)(),i=t===M.X.Paused,n=t===M.X.Idle,s=(0,c.useRef)(null),a=(0,c.useRef)(0);if(n)return a.current=0,a.current;if(!i)return a.current;if(e===s.current)return a.current;if(!R.h9.includes(e.type))return a.current;const{started:o,stopped:r,duration:l}=e,d=(r-o)/l,u=a.current+d*(1-a.current);return s.current=e,a.current=u,u}var k=i(52883),P=i(53560);function w({index:e}){const t=(0,b.u)(),i=D(),s=(0,M.I)(),o=(0,k.v)(),r=(0,P.I)(),l=function(){var e,t;const i=(0,y.t)(),n=(0,c.useRef)(null);return R.h9.includes(i.type)?i.toIndex===(null===(t=n.current)||void 0===t?void 0:t.toIndex)?n.current.duration:(n.current=i,i.duration):(null===(e=n.current)||void 0===e?void 0:e.duration)||0}(),d=r.duration,u=r.toIndex,h=u===e,m=o===e,p=["story-tour-progress-bar"];if(s===M.X.Skipping)e>=u?p.push("story-tour-progress-bar--incomplete"):p.push("story-tour-progress-bar--complete");else if(m)switch(s){case M.X.Completed:p.push("story-tour-progress-bar--complete");break;case M.X.Playing:p.push("story-tour-progress-bar--playing");break;case M.X.Paused:p.push("story-tour-progress-bar--paused");break;case M.X.Rewinding:p.push("story-tour-progress-bar--rewinding");break;case M.X.FastForwarding:p.push("story-tour-progress-bar--fast-forwarding");break;case M.X.Idle:p.push("story-tour-progress-bar--incomplete")}else o===t-1&&0===u?p.push("story-tour-progress-bar--complete"):h&&s===M.X.Rewinding?p.push("story-tour-progress-bar--full-rewinding"):eo&&p.push("story-tour-progress-bar--incomplete");const E={};if(m&&(s===M.X.Playing||s===M.X.Paused?E.animationDuration=`${l}ms`:s===M.X.FastForwarding&&(E.animationDuration=`${d}ms`)),s===M.X.Rewinding){const e=i/(i+1);m&&h?E.animationDuration=`${d}ms`:m?E.animationDuration=e*d+"ms":h&&(E.animationDuration=(1-e)*d+"ms",E.animationDelay=e*d+"ms")}return(0,n.jsx)("div",{className:a()(...p),style:E})}function C(){const e=D();return(0,c.useEffect)((()=>{document.documentElement.style.setProperty("--currentTourScenePosition",100*e+"%")}),[e]),null}var x=i(92924),H=i(84370),U=i(88007);function G(e){const{snapshot:t,numberOfHighlights:i,currentIndex:s,xOffset:o}=e,{name:r}=t,l=s===i-1,d={};0===s?(d.left="15px",d.transform="none"):l?(d.right="10px",d.transform="none"):d.left=`${o}px`;const c=a()("highlight-box","active"),u=a()("image-name",{shadowed:!!r});return(0,n.jsxs)("div",Object.assign({style:d,className:c},{children:[(0,n.jsx)(U.q,{resource:t.thumbnailUrl,className:"highlight-image"}),(0,n.jsx)("div",Object.assign({className:u},{children:(0,n.jsx)("span",Object.assign({className:"static-text"},{children:r}))}))]}))}class F extends c.Component{constructor(e){super(e),this.scrollbarRef=(0,c.createRef)(),this.reelRef=(0,c.createRef)(),this.onClickSceneBar=async e=>{e.preventDefault();const t=e.target.getAttribute("data-index");if(t){const e=parseInt(t,10),{tourPlaying:i,transition:n}=this.props,{commandBinder:s,analytics:a}=this.context;try{i&&await s.issueCommand(new E.IP({willResume:!0})),n.active||(a.track("showcase_gui",{gui_action:"click_scene_bar"}),await s.issueCommand(new E.OR(e)),i&&await s.issueCommand(new E.mT({index:e})))}catch(e){}}},this.onEnterSceneBar=e=>{const t=e.target.getAttribute("data-index");if(t){const i=parseInt(t,10);this.setState({focusedIndex:i,xOffset:e.clientX})}},this.onLeaveSceneBar=e=>{const t=e.target.getAttribute("data-index");if(t){parseInt(t,10)===this.state.focusedIndex&&this.setState({focusedIndex:-1})}},this.onScrollableChanged=e=>{this.setState({scrollable:e})},this.onScrollPositionChange=e=>{this.setState({scrollPosition:e})},this.state={focusedIndex:-1,xOffset:0,scrollLeft:0,scrollPosition:H.BB.None,scrollable:!1}}componentDidUpdate(){var e;const{activeStep:t,tourPlaying:i}=this.props,n=this.scrollbarRef.current;if(n&&!n.isDragging&&i){const i=null===(e=this.reelRef.current)||void 0===e?void 0:e.querySelector(`#highlightbar_${t}`);i&&n.scrollToElement(i)}}renderSceneBar(e,t){const{focusedIndex:i}=this.state,s=a()("highlight-bar",{"highlight-bar-hover":t<=i});return(0,n.jsx)("div",Object.assign({id:`highlightbar_${t}`,className:"highlight-compacted","data-index":t,onClick:this.onClickSceneBar,onMouseEnter:this.onEnterSceneBar,onMouseLeave:this.onLeaveSceneBar,onMouseMove:this.onEnterSceneBar},{children:(0,n.jsx)("div",Object.assign({className:s},{children:(0,n.jsx)(w,{index:t})}))}),`${e.id}_bar_${t}`)}renderHighlightBox(){const{focusedIndex:e,xOffset:t}=this.state;if(-1===e)return null;const{highlights:i}=this.props,s=i[e];return(0,n.jsx)(G,{snapshot:s.snapshot,numberOfHighlights:i.length,currentIndex:e,xOffset:t})}render(){const{highlights:e,tourPlaying:t}=this.props;return(0,n.jsxs)("div",Object.assign({className:a()("tour-story-reel",{"tour-playing":t}),ref:this.reelRef},{children:[(0,n.jsx)(C,{}),(0,n.jsx)(x.A,Object.assign({direction:H.OP.horizontal,ref:this.scrollbarRef,hideScrollbar:!0,thumbScrollingOnly:!1,waitToUpdate:0===e.length,handleClick:this.onClickSceneBar,onScrollableChanged:this.onScrollableChanged,onScrollPositionChange:this.onScrollPositionChange},{children:(0,n.jsx)("div",Object.assign({className:"highlights"},{children:e.map(((e,t)=>this.renderSceneBar(e,t)))}))})),this.renderHighlightBox()]}))}}F.contextType=u.B;var j=i(55294),B=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let V=class extends c.Component{constructor(){super(...arguments),this.handleClick=()=>{this.context.analytics.trackToolGuiEvent("hlr","tour_progress");const{reelOpen:e}=this.props;e||this.context.commandBinder.issueCommand(new j.CQ(!0))}}getTourSteps(){const{totalSteps:e,activeStep:t}=this.props,i=[];for(let s=0;s0?(0,n.jsxs)("div",Object.assign({id:"tour-progress",className:a()({"faded-in":t,"full-width":e}),onClick:this.handleClick,"data-balloon":r,"data-balloon-pos":"right","data-balloon-size":"xs"},{children:[l&&(0,n.jsx)("div",Object.assign({className:"progress-number"},{children:o})),-1!==i&&(0,n.jsx)("div",Object.assign({className:"progress-bar"},{children:this.getTourSteps()}))]})):null}};function W(e){const{activeStep:t,highlights:i,openTool:s,tourMode:c,tourPlaying:u,transition:h}=e,m=(0,l.U)(),p=s===o.S0.HLR;if(c===r.cR.STORIES)return p&&!u?null:(0,n.jsx)(F,{highlights:i,tourPlaying:u,activeStep:t,transition:h});{const e=m&&(!p||u),s=(null==i?void 0:i.length)||0,o=0===s;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.w,Object.assign({className:a()("highlight-reel",{"reel-empty":o,closed:!e}),open:e},{children:o?(0,n.jsx)(f,{}):(0,n.jsx)(N,{highlights:i,tourPlaying:u,activeStep:t,totalSteps:s,transition:h})})),u&&(0,n.jsx)(V,{activeStep:t,tourPlaying:u,totalSteps:s,reelOpen:m})]})}}V.contextType=u.B,V=B([m.A],V)},44773:(e,t,i)=>{"use strict";i.d(t,{T:()=>K});var n=i(14495);const s=()=>{},a=()=>null,o=()=>!1,r=()=>Promise.reject(),l=()=>Promise.resolve(),d=()=>({}),c=()=>[],u=()=>({renew:s,cancel:s}),h={register:s,unregister:s,waitForData:r,tryGetData:a,getModuleNameFromData:()=>""},m={subscribe:u,unsubscribe:s,broadcast:s};var p=i(45264);class E extends p.w{constructor(){super(...arguments),this.addBinding=u,this.removeBinding=s,this.issueCommand=r,this.issueCommandWhenBound=r,this.hookCommand=s,this.resetHooks=s}}const S=new E;var O=i(94026),g=i(24564);const _={mask:0,addLayers:s,removeLayers:s,clone:()=>_},T=()=>_;const A={market:h,msgBus:m,commandBinder:S,generatorSpreader:new g.Ay,uniqueId:-1,diContainer:O.oV,getModuleBySymbol:r,getModuleBySymbolSync:function(){throw new Error("getModuleBySymbolSync not supported")},tryGetModuleBySymbolSync:a,addComponent:l,removeComponent:l,getComponentByType:a,getComponents:function*(){},claimRenderLayer:T,getRenderLayer:T,subscribe:u,unsubscribe:s,broadcast:s,disposeRenderLayer:s,startGenerator:s,stopGenerator:s,after:l,toggleRendering:s,tick:s};const v=new class{constructor(){this.track=s,this.trackGuiEvent=s,this.trackToolGuiEvent=s}};var N=i(7232);class L extends N.default{constructor(){super(...arguments),this.t=(e,t)=>`${e}${t&&Object.keys(t).length?JSON.stringify(t):""}`,this.T=e=>e,this.has=e=>!0}get languageCode(){return"en"}}const I=new L;var f=i(85217);const b=(0,i(27974).A)(""),R=()=>b;class y extends f.E{constructor(){super(...arguments),this.getUserInfoByEmail=a,this.getUserInfoById=a,this.getUserDisplay=R,this.iterate=s,this.getUsersWhoMayNeedAccess=d,this.getKnownUsers=c,this.getCurrentUser=R,this.isLoggedIn=o,this.isOrgAdmin=o,this.isInviter=o,this.isEditor=o,this.isCommenter=o,this.getCurrentUserId=()=>b.id,this.onUsersChanged=u}}const M=new y(b,!1,!1);var D=i(26956),k=i(54998),P=i(65413),w=i(521);const C={activate:l,deactivate:l},x=new P.N({id:w.S0.LABELS,namePhraseKey:"",panel:!1,panelLeft:!1,hidesAppBar:!1,icon:"",analytic:"labels",dimmed:!1,enabled:!1,manager:C,ui:{}}),H=new k.E;class U extends D.M{constructor(){super(...arguments),this.addTools=s,this.iterate=s,this.getTool=()=>x,this.removeTool=s,this.removeAllTools=s,this.setOpenAsset=s,this.onOpenAssetChanged=u,this.getActiveTool=a,this.activeToolName=null,this.previousToolName=null,this.openModal=null,this.toolChangeInProgress=!1,this.isPanelOpen=o,this.isToolCollapsedToBottom=o,this.toolPanelLayout=w.L$.NORMAL,this.softOpening=!1,this.toolCollapsed=!1}get toolsMap(){return H}get openAsset(){return null}}const G=new U;var F=i(28997);class j extends F.o{constructor(){super(...arguments),this.setProperty=s,this.setLocalStorageProperty=s,this.hasProperty=o,this.tryGetProperty=s,this.getProperty=s,this.getOverrideParam=s,this.iterate=s}}const B=new j;var V=i(58838);class W extends V.L{constructor(){super(...arguments),this.hasPolicy=o,this.getPolicy=()=>null}}const z=new W,K={editMode:!1,mainDiv:document.createElement("div"),queue:new n.L3,messageBus:m,userData:M,toolsData:G,settings:B,policyData:z,analytics:v,engine:A,market:h,commandBinder:S,locale:I,apiHost:"default"}},17139:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var n=i(96540),s=i(44773);const a=(0,n.createContext)(s.T)},47952:(e,t,i)=>{"use strict";i.d(t,{V:()=>o,v:()=>a});var n=i(96540),s=i(17139);function a(e){return()=>o(e)}function o(e){const{market:t}=(0,n.useContext)(s.B),[i,a]=(0,n.useState)(t.tryGetData(e));return(0,n.useEffect)((()=>{let n=!1;return i||t.waitForData(e).then((e=>{n||a(e)})),()=>{n=!0}}),[t,e,i]),i}},29633:(e,t,i)=>{"use strict";i.d(t,{c:()=>a});var n=i(74848),s=i(96540);function a(e,t){return i=>(0,s.forwardRef)(((s,a)=>{const o=t(),r=Object.assign(Object.assign({},s),{[e]:o});return(0,n.jsx)(i,Object.assign({},r,{ref:a}))}))}},43802:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,r:()=>a});var n=i(96540),s=i(47952);function a(e,t,i){return()=>o(e,t,i)}function o(e,t,i){const a=(0,s.V)(e),[o,r]=(0,n.useState)(a?a[t]:i);return(0,n.useEffect)((()=>{if(!a)return()=>{};const e=a.onPropertyChanged(t,r);return r(a[t]),()=>{e&&e.cancel()}}),[a,t]),o}},9962:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(96540),s=i(49687),a=i(51772),o=i(76956),r=i(48094);function l(e,t){return!(!e||!t)&&(e.isInside()&&t.isSweepUnaligned(t.currentSweep))}function d(){const e=(0,s.G)(),t=(0,a.o)(),[i,d]=(0,n.useState)(l(t||void 0,e||void 0));function c(){e&&t&&d(l(t,e))}return(0,o.J)(r.A,c),(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.makeSweepChangeSubscription(c);return c(),()=>t.cancel()}),[e]),i}},76956:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(96540),s=i(17139);function a(e,t){const{messageBus:i}=(0,n.useContext)(s.B);(0,n.useEffect)((()=>{const n=i.subscribe(e,t);return()=>n.cancel()}),[i,e,t])}},38907:(e,t,i)=>{"use strict";i.d(t,{S:()=>a});var n=i(17139),s=i(96540);function a(e){const{engine:t}=(0,s.useContext)(n.B),[i,a]=(0,s.useState)(t.tryGetModuleBySymbolSync(e));return(0,s.useEffect)((()=>{let i=!1;return t.getModuleBySymbol(e).then((e=>{i||a(e)})),()=>{i=!0}}),[e,t]),i}},66077:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(96540);function s(e){const[t,i]=(0,n.useState)(e.value);return(0,n.useEffect)((()=>{const t=e.onChanged(i);return i(e.value),()=>t.cancel()}),[e]),t}},81182:(e,t,i)=>{"use strict";i.d(t,{b:()=>a});var n=i(96540),s=i(17139);function a(e,t=null){const{settings:i}=(0,n.useContext)(s.B);return i.getOverrideParam(e,t)}},16603:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var n=i(96540),s=i(17139);function a(e,t){const{settings:i}=(0,n.useContext)(s.B),[a,o]=(0,n.useState)(i.tryGetProperty(e,t));return(0,n.useEffect)((()=>{if(!i)return o(t),()=>{};const n=()=>{o(i.tryGetProperty(e,t))},s=i.onPropertyChanged(e,n);return n(),()=>null==s?void 0:s.cancel()}),[i,e,t]),a}},81196:(e,t,i)=>{"use strict";i.d(t,{J:()=>o});var n=i(56136),s=i(16603),a=i(82030);function o(){return(0,s.i)(n.Y.UnitType,a.t.METRIC)}},88826:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});const n={mouse:{click_old:i(16391),click:i(11400),clickInside:i(53228),dragLeft:i(46997),dragRight:i(2710),ctrlClick:i(61273),dragRightHoriz:i(38826),dragRightVert:i(5293),play:i(54322),positionLeft_old:i(56048),positionLeft:i(45663),positionRight:i(85893),zoom_old:i(93582),zoom:i(713)},gesture:{drag_old:i(99713),drag:i(45894),dragTwoFinger:i(99484),dragTwoFingerVert:i(40783),pinch_old:i(13179),pinch:i(58780),dragTwoFingerRotate:i(62979),position:i(96558),positionTwoFinger:i(60497),tap_old:i(50968),tap:i(64727),tapInside:i(68117),play:i(23672)},keyboard:{all:i(64268),inside:i(34715),leftRight:i(31873),spaceBar:i(28301),upDown:i(88691),zoom:i(35235)},moreHelp:{view360:i(94246),mattertag:i(65224)}}},33868:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var n=i(23205),s=i(35223),a=i(96540),o=i(5338),r=i(44773),l=i(17139),d=i(74848),c=i(86260),u=i(32485),h=i.n(u),m=i(35652),p=i(14754);class E extends p.QB{constructor(e){super(),this.open=e}}var S=i(99167),O=i(73072);const g=new m.Ay("alert-notification");class _ extends a.Component{constructor(e){super(e),this.throttledMessages=new Map,this.onClose=()=>{clearTimeout(this.alertTimer),this.setState({open:!1})},this.state={open:!1}}componentDidMount(){this.update()}componentWillUnmount(){this.state.open&&this.props.messageBus.broadcast(new E(!1))}UNSAFE_componentWillReceiveProps(e){this.update(e)}componentDidUpdate(e,t){this.state.open!==t.open&&this.props.messageBus.broadcast(new E(this.state.open))}update(e=this.props){const{show:t,timeout:i,message:n,throttle:s,type:a}=e,{analytics:o}=this.context;if(t){if(s>0){if(this.throttledMessages.has(n)&&this.throttledMessages.get(n)>Date.now())return void g.debug(`Suppressed alert dialog due to message throttling: ${n}`);this.throttledMessages.set(n,Date.now()+1e3*s)}clearTimeout(this.alertTimer),this.setState({open:!0}),i>0&&(this.alertTimer=window.setTimeout(this.onClose,1e3*i)),o&&o.track("alert_gui",{alert_action:"show",alert_type:a,alert_message:n})}}render(){const{title:e,message:t,type:i}=this.props,{open:n}=this.state,s={active:n,[`notification-${i}`]:!0};return(0,d.jsxs)("aside",Object.assign({className:h()("alert-notification",s)},{children:[(0,d.jsxs)("div",Object.assign({className:"notification-body"},{children:[e&&(0,d.jsx)("h3",Object.assign({className:"notification-title"},{children:e})),(0,d.jsx)("p",Object.assign({className:"notification-text"},{children:t}))]})),n&&(0,d.jsx)(S.J,{theme:"dark",tooltip:"",onClose:this.onClose})]}))}}_.contextType=l.B,_.defaultProps={type:O.v.INFO,show:!1,timeout:10,throttle:0};var T=i(27147);class A extends a.Component{constructor(e){super(e),this.bindings=[],this.state={guiError:!1,errorMessagePhraseKey:""}}componentDidMount(){const{commandBinder:e}=this.context;this.bindings.push(e.addBinding(c.P,(async e=>{this.showErrorMessage(e.messagePhraseKey,e.options)})))}componentWillUnmount(){this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}componentDidUpdate(e,t){const{guiError:i}=this.state;i&&this.setState({guiError:!1})}showErrorMessage(e,t){this.setState({guiError:!0,errorMessagePhraseKey:e,errorOptions:t})}render(){const{messageBus:e,locale:t}=this.context,{guiError:i,errorMessagePhraseKey:n,errorOptions:s}=this.state;let a=n&&t.t(n);const{error:o}=s||{};return o&&(0,T.Ue)(o)&&(a=`${a} (${o.code})`),(0,d.jsx)(_,Object.assign({messageBus:e,show:i,message:a},s))}}A.contextType=l.B;var v=i(58838),N=i(28997),L=i(26956),I=i(85217),f=i(56545);class b extends n.n{constructor(){super(...arguments),this.name="gui",this.workshopApp=!1,this.onAppReadyChanged=(e,t)=>{this.workshopApp&&(t&&e?this.mainDiv.classList.add("edit-mode"):this.mainDiv.classList.remove("edit-mode"))}}async init(e,t){this.workshopApp=e.workshopApp,this.mainDiv=e.mainDiv,this.reactContainer=e.reactContainer,this.market=t.market;const i=t.getModuleBySymbol(s.gS),n=t.getModuleBySymbol(s.$c),a=t.market.waitForData(I.E),o=t.market.waitForData(N.o);this.mainArgs=await Promise.all([i,n,o,a]),this.context={apiHost:e.apiHost,editMode:!1,mainDiv:e.mainDiv,analytics:this.mainArgs[1],locale:this.mainArgs[0],settings:this.mainArgs[2],userData:this.mainArgs[3],policyData:await this.market.waitForData(v.L),toolsData:await this.market.waitForData(L.M),engine:t,messageBus:t.msgBus,market:t.market,commandBinder:t.commandBinder,queue:e.queue},this.loadErrorBar(Object.assign({appContainer:this.reactContainer},this.context)),this.guiViewData=new f.J,this.market.register(this,f.J,this.guiViewData)}getAppContext(){return Object.assign({},this.context)}async loadUi(e){return e.apply(this,[this.getAppContext(),this.reactContainer,this.onAppReadyChanged])}loadErrorBar({messageBus:e,commandBinder:t,market:i,appContainer:n,analytics:s,settings:d,locale:c}){const{dispose:u}=((e,t,i,n,s,d,c)=>{const u=document.createElement("div");u.className="error-bar",n.insertBefore(u,n.firstElementChild);const h=Object.assign(Object.assign({},r.T),{messageBus:e,commandBinder:t,market:i,analytics:s,settings:d,locale:c}),m=(0,o.createRoot)(u);return m.render((0,a.createElement)(l.B.Provider,{value:h},[(0,a.createElement)(A,{key:"error-bar"})])),{dispose:()=>{m.unmount(),u.remove()}}})(e,t,i,n,s,d,c);this.bindings.push({renew:()=>{},cancel:u})}}},52775:(e,t,i)=>{"use strict";i.d(t,{XR:()=>a,Yl:()=>r,c7:()=>o,rn:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.modal=e,this.open=t}}n.QB;class a extends n.QB{constructor(e){super(),this.isOpen=e}}class o extends n.QB{constructor(e){super(),this.suppress=e}}class r extends n.QB{constructor(e,t){super(),this.textElement=e,this.focused=t}}},43788:(e,t,i)=>{"use strict";i.d(t,{F:()=>a,m:()=>n});var n,s=i(18559);function a(e=n.Default){const t=(0,s.s)("viewer");if(e===n.Default)return{show:5e3,dismiss:1e4};const i=[n.Defurnish,n.Measurements,n.FloorplanMode,n.DollhouseMode],a=new Map;let o=5e3;return i.forEach((e=>{(e=>e!==n.Defurnish||t)(e)&&(a.set(e,{show:o,dismiss:1e4}),o+=2e4)})),a.has(e)?a.get(e):{show:Number.MAX_SAFE_INTEGER,dismiss:1}}!function(e){e[e.Default=0]="Default",e[e.DollhouseMode=1]="DollhouseMode",e[e.FloorplanMode=2]="FloorplanMode",e[e.Measurements=3]="Measurements",e[e.Defurnish=4]="Defurnish"}(n||(n={}))},31323:(e,t,i)=>{"use strict";i.d(t,{M:()=>u,R:()=>n});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(52385),d=i(79239),c=(i(83502),function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{addIcon:i,className:o}=e,u=c(e,["addIcon","className"]);const h=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>({dismissNudge:()=>{h.current&&h.current.dismissNudge()}})),[]);const m=i===n.CANCEL,p=m?n.ADD:i,E=r()("add-button",o,{"add-cancel":m});return(0,s.jsx)(d.Y,Object.assign({},u,{ref:h,className:E,variant:l.Ak.FAB,icon:p,theme:"dark",featured:!0}))}))},77985:(e,t,i)=>{"use strict";i.d(t,{A:()=>N});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(17139),l=i(99366),d=i(38216),c=i(16603),u=i(33324),h=i(23730),m=i(73715),p=i(10718),E=i(44314),S=i(52973),O=i(88874),g=i(31323),_=i(52385),T=i(99224),A=(i(83502),function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{allowLayerChange:i,onChangeLayer:a}=e,l=A(e,["allowLayerChange","onChangeLayer"]);const N=(0,s.useRef)(null),L=(0,s.useRef)(null),I=(0,c.i)(u.qD,!1),{editMode:f,commandBinder:b}=(0,s.useContext)(r.B),R=(0,m.z0)(),y=(0,p.G)(),M=(0,E._)(null==R?void 0:R.id,y),D=(0,S.z)(),k=(0,m.z0)(),P=(0,d.Y)();(0,s.useImperativeHandle)(t,(()=>({dismissNudge:()=>{N.current&&N.current.dismissNudge()}})),[]);const w=(0,n.jsx)(g.M,Object.assign({ref:N},l));if(!I||!f||D.length<2)return w;const C=e=>{e!==(null==R?void 0:R.id)&&(b.issueCommand(new h.HA(e,!0)),a&&a(e))},x=R?M:P.t(v.UNLAYERED_LAYER_LABEL),H=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",Object.assign({className:"button-menu-label"},{children:P.t(v.LAYER_ADDING_TO_LABEL)})),(0,n.jsx)("div",Object.assign({className:"active-layer-name"},{children:x}))]}),U=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",Object.assign({className:"menu-title",onClick:e=>e.stopPropagation()},{children:P.t(v.LAYER_ADDING_TO_CHOICE_LABEL)})),(0,n.jsx)(_.$n,{icon:"close",variant:_.Ak.TERTIARY,size:_.Mp.SMALL,onClick:()=>{L.current&&L.current.closeMenu()}})]});return(0,n.jsxs)("div",Object.assign({className:o()("layered-add-button",{"with-layer-menu":i})},{children:[w,(0,n.jsxs)(T.y,Object.assign({ref:L,label:H,className:"add-menu-button",menuClassName:"add-button-layer-menu",menuPlacement:"top",variant:_.Ak.FAB,size:_.Mp.SMALL,theme:"dark",caret:!0},{children:[U,D.map((e=>{const{id:t}=e,i=(null==k?void 0:k.id)===t;return(0,n.jsx)(O.$,{layer:e,onClick:C,active:i},t)}))]}))]}))}))},73072:(e,t,i)=>{"use strict";var n;i.d(t,{v:()=>n}),function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(n||(n={}))},33675:(e,t,i)=>{"use strict";i.d(t,{S:()=>u,x:()=>n});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.FILTER=1]="FILTER"}(n||(n={}));let u=class extends a.Component{constructor(e){super(e),this.onChange=e=>{this.props.stopPropagation&&e.stopPropagation(),this.setState((e=>({checkedValue:!e.checkedValue})),(()=>{this.props.onChange&&this.props.onChange(this.checkboxElement,...this.props.onChangeArgs||[])}))},this.setCheckboxRef=e=>{this.checkboxElement=e},this.state={checkedValue:e.checked}}UNSAFE_componentWillReceiveProps(e){this.setState({checkedValue:e.checked})}render(){const{checkboxStyle:e=n.DEFAULT,className:t,dataValue:i,enabled:a,error:o,helpText:l,id:d,label:c}=this.props,{checkedValue:u}=this.state,h=!a;return(0,s.jsxs)("div",Object.assign({ref:this.setCheckboxRef,id:d,role:"checkbox","aria-checked":u?"true":"false","aria-disabled":h,"data-value":i,className:r()("checkbox-element",`checkbox-style-${n[e].toLowerCase()}`,{checked:u,disabled:h,error:o},t),onClick:this.onChange,tabIndex:0},{children:[e!==n.FILTER&&(0,s.jsx)("div",{className:"checkbox icon-checkmark"}),(0,s.jsx)("div",Object.assign({className:"checkbox-text"},{children:c})),l&&(0,s.jsx)("span",Object.assign({className:"help-text"},{children:l}))]}))}};u.defaultProps={enabled:!0,error:!1},u=d([l.A,c("design:paramtypes",[Object])],u)},91607:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=i(43998),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let h=n=class extends a.Component{constructor(e){super(e),this.strokePattern=[0,100],this.strokeOffset=0,this.innerRadius=15.92,this.strokeWidth=1,this.drawRadius=this.innerRadius+this.strokeWidth/2,this.updateSvgAttributes(e),this.elementId=this.props.id||"circle-progress-"+n.id++}UNSAFE_componentWillReceiveProps(e){this.updateSvgAttributes(e)}updateSvgAttributes(e){this.strokeWidth=e.barWidth||this.strokeWidth,this.innerRadius=e.innerRadius||this.innerRadius,this.drawRadius=this.innerRadius+this.strokeWidth/2;const t=2*this.drawRadius*Math.PI;this.strokeOffset=t*(e.startPosition||this.strokeOffset),this.strokePattern[0]=t*(0,d.qE)(e.progress,0,100)/100,this.strokePattern[1]=t-this.strokePattern[0]}render(){const{progressColor:e}=this.props,t=2*(this.innerRadius+this.strokeWidth),i=t/2;return(0,s.jsxs)("svg",Object.assign({id:this.elementId,className:r()("circular-progress",this.props.className),viewBox:`${-i} ${-i} ${t} ${t}`},{children:[(0,s.jsx)("circle",{className:"bar-bg",cx:"0",cy:"0",r:this.drawRadius,transform:"rotate(-90) "+(this.props.ccw?"scale(-1 1)":""),strokeDasharray:`${this.strokePattern[1]} ${this.strokePattern[0]}`,strokeDashoffset:this.strokeOffset-this.strokePattern[0],strokeWidth:this.strokeWidth,fill:"none"}),(0,s.jsx)("circle",{className:e?void 0:"progress",cx:"0",cy:"0",r:this.drawRadius,transform:"rotate(-90) "+(this.props.ccw?"scale(-1 1)":""),strokeDasharray:`${this.strokePattern[0]} ${this.strokePattern[1]}`,strokeWidth:this.strokeWidth,stroke:e,fill:"none"}),this.props.children]}))}};h.id=0,h=n=c([l.A,u("design:paramtypes",[Object])],h)},98479:(e,t,i)=>{"use strict";i.d(t,{T:()=>v});var n=i(74848),s=i(43591),a=i(32485),o=i.n(a),r=i(96540),l=i(70767),d=i(72909),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{this.toggleDropdown(!1)},this.onToggleClick=e=>{e.stopPropagation(),this.toggleDropdown()},this.onTransitionEnd=e=>{e&&e.target!==e.currentTarget||(window.clearTimeout(this.transitionTimeout),this.setState({transitioning:!1}))},this.toggleDropdown=e=>{const{open:t}=this.state,i=void 0!==e?e:!t;i?window.addEventListener("click",this.onOutsideClick):window.removeEventListener("click",this.onOutsideClick),this.transitionTimeout=window.setTimeout(this.onTransitionEnd,1e3),this.setState({open:i,transitioning:!0})},this.state={open:!1,transitioning:!1}}componentWillUnmount(){window.removeEventListener("click",this.onOutsideClick)}render(){const{open:e,transitioning:t}=this.state,i=this.props,{children:s,className:a,direction:r}=i,d=h(i,["children","className","direction"]),c={up:r===m.UP,open:e,transitioning:t};return(0,n.jsxs)("div",Object.assign({ref:this.elementRef,className:o()("dropdown",c,a)},d,{children:[(0,n.jsx)("div",Object.assign({className:"dropdown-mask"},{children:(0,n.jsx)("div",Object.assign({className:"dropdown-menu",onTransitionEnd:this.onTransitionEnd},{children:s}))})),(0,n.jsx)("div",Object.assign({className:"dropdown-toggle"},{children:(0,n.jsx)(l.K0,{iconClass:"icon-toolbar-more-horiz",onClick:this.onToggleClick,className:"dropdown-toggle"})}))]}))}};p.defaultProps={direction:m.DOWN},p=c([d.A,u("design:paramtypes",[Object])],p);var E=i(44940),S=i(55614),O=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},_=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{this.update()},this.update=(0,E.n)((()=>{var e;const t=null===(e=this.toggleRef.current)||void 0===e?void 0:e.elementRef.current,i=this.contentRef.current,n=this.collapsedRef.current;if(!i||!n||!t)return;const s=i.children,a=n.children;if(!s||s.length!==a.length)return;const o=i[T],r=t[T]||0;let l=0,d=0;for(let e=0;ee.classList.remove(A)))}getExpandedChildren(){const{children:e}=this.props,{collapsedCount:t}=this.state,i=r.Children.count(e)-t,s=[];return r.Children.forEach(e,((e,t)=>{t{t>=i&&s.push((0,n.jsx)(r.Fragment,{children:e},t))})),s}render(){const e=this.props,{children:t,className:i}=e,s=_(e,["children","className"]),{collapsedCount:a}=this.state,r=`collapsible-list ${i}`,l={hidden:0===a};if(!t||!Array.isArray(t))return t;const d=this.getExpandedChildren(),c=this.getCollapsedChildren();return(0,n.jsxs)("div",Object.assign({className:o()(r)},s,{children:[(0,n.jsxs)("div",Object.assign({ref:this.contentRef,className:"collapsible-list-items"},{children:[(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!1}},{children:d})),(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!0}},{children:c}))]})),(0,n.jsx)(p,Object.assign({ref:this.toggleRef,direction:m.UP,className:o()(l)},{children:(0,n.jsxs)("div",Object.assign({ref:this.collapsedRef,className:"collapsible-list-menu"},{children:[(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!0}},{children:d})),(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!1}},{children:c}))]}))}))]}))}};v.defaultProps={},v=O([d.A,g("design:paramtypes",[Object])],v)},55614:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});const n=(0,i(96540).createContext)({outOfScope:!1})},88007:(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var n=i(74848),s=i(32485),a=i.n(s),o=i(96540);function r({resource:e,className:t,children:i,onClick:s}){const[r]=function(e){var t;const[i,n]=(0,o.useState)(e.getCurrentValue()),[s,a]=(0,o.useState)(null===(t=e.validUntil)||void 0===t?void 0:t.getTime()),r=!!s&&s-Date.now()<=0;return(0,o.useEffect)((()=>{if(void 0===s)return()=>{};let t=!1;const i=s-Date.now(),o=()=>{e.get().then((i=>{var s;t||(n(i),a(null===(s=e.validUntil)||void 0===s?void 0:s.getTime()))}))};if(i<=0)return o(),()=>t=!0;const r=window.setTimeout(o,i);return()=>{t=!0,window.clearTimeout(r)}}),[e,s]),(0,o.useEffect)((()=>{n(e.getCurrentValue())}),[e]),[i,r]}(e),l=r?{backgroundImage:`url('${r}')`}:{};return(0,n.jsx)("div",Object.assign({className:a()(t),style:l,onClick:s},{children:i}))}},70767:(e,t,i)=>{"use strict";i.d(t,{Df:()=>s,K0:()=>S,Tp:()=>a,zt:()=>o});var n,s,a,o,r=i(74848),l=i(96540),d=i(32485),c=i.n(d),u=i(72909),h=i(8430),m=i(17139),p=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.ENABLED="enabled",e.DISABLED="disabled",e.DECORATIVE="decorative",e.DIMMED="dimmed",e.ACTIVE="active",e.BUSY="busy"}(s||(s={})),function(e){e[e.STANDARD=0]="STANDARD",e[e.MINI=1]="MINI",e[e.SMALL=2]="SMALL",e[e.LARGE=3]="LARGE"}(a||(a={})),function(e){e.CLEAR="clear",e.PLAIN="plain",e.OVERLAY="overlay",e.PRIMARY="primary",e.SOCIAL="social",e.TOOLBAR="toolbar"}(o||(o={}));let S=n=class extends l.Component{constructor(e){super(e),this.onClick=e=>{const t=this.props.buttonState;t!==s.BUSY&&t!==s.DISABLED&&this.props.onClick&&this.props.onClick(e)},this.onMouseDown=e=>{const{onMouseDown:t,onClick:i,buttonState:a}=this.props;if(t)t(e);else if(n.iMobile&&i&&a!==s.BUSY&&a!==s.DISABLED){const t=this.context.mainDiv.getRootNode().activeElement;t&&e.cancelable&&(t.blur(),e.preventDefault())}}}render(){const{ariaLabel:e,breakoutTooltip:t,buttonSize:i,buttonState:n,buttonStyle:l,children:d,className:u,dataValue:h,iconClass:m,id:p,onClick:E,onMouseUp:S,tooltipMsg:O,tooltipPersist:g,tooltipPreformatted:_}=this.props,T=n===s.DISABLED,A=n===s.BUSY,v=n===s.DECORATIVE,N=!T&&!A&&!v,L=O?!!_:void 0,I={"button-small":i===a.SMALL,"button-large":i===a.LARGE,"button-disabled":T,"button-dimmed":n===s.DIMMED,"button-active":n===s.ACTIVE,"button-busy":A,"button-interactive":N,"icon-button-primary":l===o.PRIMARY,"icon-button-overlay":l===o.OVERLAY,"icon-button-plain":l===o.PLAIN,"icon-button-social":l===o.SOCIAL,"icon-button-toolbar":l===o.TOOLBAR,"icon-button-breakout-tooltip":t},f={id:p,role:"button","aria-label":e||O,"aria-disabled":T,"data-value":h,className:c()("icon-button",I,u),onClick:E?this.onClick:void 0,onMouseUp:S,onMouseDown:this.onMouseDown},b={"data-balloon-pre":L,"data-balloon-persist":g};return t||Object.assign(f,b),(0,r.jsxs)("div",Object.assign({},f,{children:[t&&(0,r.jsx)("div",Object.assign({className:"icon-button-breakout-tooltip-container"},{children:(0,r.jsx)("div",Object.assign({className:"icon-button-breakout-tooltip-trigger"},b))})),m&&(0,r.jsx)("span",{className:`icon ${m}`}),d]}))}};S.contextType=m.B,S.iMobile=(0,h.OF)()||(0,h.J0)(),S=n=p([u.A,E("design:paramtypes",[Object])],S)},84928:(e,t,i)=>{"use strict";i.d(t,{N:()=>r});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a);class r extends s.Component{render(){const{className:e,href:t,children:i,onClick:s}=this.props;return(0,n.jsx)("a",Object.assign({className:o()("link",{className:e}),href:t,target:"_blank",onClick:s},{children:i}))}}},98260:(e,t,i)=>{"use strict";i.d(t,{z:()=>d});var n=i(74848),s=i(96540),a=i(8430),o=i(91607);const r=132,l=8;function d({progress:e,screenPosition:t}){if(!(0,s.useMemo)((()=>(0,a.C8)()),[])||!t||0===e)return null;const i={left:t.x-r/2+"px",top:t.y-r/2+"px"};return(0,n.jsx)("div",Object.assign({className:"point-button-wrapper",style:i},{children:(0,n.jsx)(o.A,Object.assign({progress:100*e,innerRadius:r,barWidth:l},{children:(0,n.jsx)("circle",{className:"point",cx:"0",cy:"0",r:"22",transform:"rotate(-90)",fill:"#fff"})}))}))}},67913:(e,t,i)=>{"use strict";i.d(t,{Q:()=>h});var n=i(74848),s=i(96540),a=i(55614),o=i(11360),r=i(97137),l=i(521),d=i(52385),c=i(79239),u=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{"use strict";i.d(t,{c:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(99167),r=i(52385);function l({title:e,message:t,children:i,closeButton:s=!1,className:l,onClose:d}){return(0,n.jsxs)("div",Object.assign({className:a()("nudge",l)},{children:[(0,n.jsxs)("div",Object.assign({className:a()("nudge-header",{"nudge-with-title":!!e})},{children:[e&&(0,n.jsx)("div",Object.assign({className:"nudge-title"},{children:e})),s&&(0,n.jsx)(o.J,{className:"nudge-close-button",size:r.Mp.SMALL,onClose:d})]})),t&&(0,n.jsx)("div",Object.assign({className:a()("nudge-message",{"nudge-message-with-title":e})},{children:t})),i]}))}},79239:(e,t,i)=>{"use strict";i.d(t,{Y:()=>E});var n=i(96540),s=i(74848),a=i(32485),o=i.n(a),r=i(55285),l=i(17139),d=i(16603),c=i(52385),u=i(27695),h=i(87137),m=i(35596),p=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{className:i,tooltip:a,children:E,onClick:S,closeButton:O,nudgeTitle:g,nudgeMessage:_,nudgeSize:T="medium",nudgeDisabled:A=!1,showTimeout:v=5e3,dismissTimeout:N=5e3,nudgeFeatureKey:L="",nudgeLocalStorage:I="",nudgeSessionKey:f="",onNudgeDismissed:b,featured:R=!1,tooltipOptions:y={},nudgeClassName:M}=e,D=p(e,["className","tooltip","children","onClick","closeButton","nudgeTitle","nudgeMessage","nudgeSize","nudgeDisabled","showTimeout","dismissTimeout","nudgeFeatureKey","nudgeLocalStorage","nudgeSessionKey","onNudgeDismissed","featured","tooltipOptions","nudgeClassName"]);const{settings:k}=(0,n.useContext)(l.B),[P,w]=(0,n.useState)(!1),[C,x]=(0,r.Mj)(I,!1),H=(0,d.i)(f,!1),U=(0,d.i)(L,!1),G=(0,n.useRef)(0),F=(0,n.useRef)(0),j=!(!g&&!_),B=(0,n.useCallback)((()=>{if(!j||P||A)return!1;return(!L||U)&&!(!!I&&C)&&!(!!f&&H)}),[j,P,A,L,U,I,C,f,H]),[V,W]=(0,r.Lh)(),z=(0,h.a)(),K=(0,n.useCallback)((()=>{window.clearTimeout(G.current),G.current=0,window.clearTimeout(F.current),F.current=0}),[]),Y=(0,n.useCallback)((()=>{K(),P&&(I&&x(!0),f&&k.setProperty(f,!0),b&&b(),w(!1))}),[K,P,I,f,b,x,k]),$=(0,n.useCallback)((()=>{if(!j)return;const e=G.current||F.current;B()&&!e&&(G.current=window.setTimeout((()=>{G.current=0,B()&&w(!0)}),v))}),[v,j,B]);(0,n.useImperativeHandle)(t,(()=>({dismissNudge:()=>{Y()}})),[Y]),(0,n.useEffect)((()=>(A||z!==m.Jj.PLAYING||0===W.height||0===W.width?K():$(),()=>{K()})),[A,W,$,K,z]),(0,n.useEffect)((()=>(P&&(F.current=window.setTimeout(Y,N)),()=>{K()})),[P,Y,N,K]);let Q;if(j){const e=void 0!==O?O:!!g;Q=(0,s.jsx)(u.c,{title:g,message:_,closeButton:e,className:R?"nudge-featured":void 0})}const q=P?Q:a,X=P?"static":"hover",Z=Object.assign(Object.assign({},y),{trigger:X,onToggle:e=>{j&&(e||Y())},theme:P?"light":"dark",size:P?T:"small",className:P&&M?M:"nudge-button-tooltip"}),J=o()("nudge-button",i);return(0,n.createElement)(c.$n,Object.assign({},D,{key:`nudge-button-${a}`,onClick:e=>{Y(),S&&S(e)},className:J,tooltip:q,tooltipOptions:Z,ref:V}),E)}))},18691:(e,t,i)=>{"use strict";i.d(t,{a:()=>c});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(72909),l=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let c=class extends s.Component{constructor(e){super(e),this.onChange=e=>{this.props.onChange(e)}}render(){const{id:e,name:t,value:i,checked:s,children:a,enabled:r}=this.props,l=!r;return(0,n.jsxs)("div",Object.assign({className:o()("radio-element","radio-button",{disabled:l})},{children:[(0,n.jsx)("input",{type:"radio",id:e,name:t,value:i,checked:s,onChange:this.onChange}),(0,n.jsx)("label",Object.assign({className:"radio-button-label",htmlFor:e},{children:a}))]}))}};c=l([r.A,d("design:paramtypes",[Object])],c)},62017:(e,t,i)=>{"use strict";i.d(t,{w:()=>S});var n,s=i(74848),a=i(87987),o=i(52385),r=i(96540),l=i(72909);!function(e){e[e.Disappointed=0]="Disappointed",e[e.Unsatisfied=1]="Unsatisfied",e[e.Neutral=2]="Neutral",e[e.Satisfied=3]="Satisfied",e[e.Happy=4]="Happy"}(n||(n={}));var d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.Component{render(){switch(this.props.icon){case n.Disappointed:return(0,s.jsxs)("svg",Object.assign({width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 28C21.9557 28 28 21.9557 28 14.5C28 7.04503 21.9557 1 14.5 1C7.04506 1 1 7.04506 1 14.5C1 21.9557 7.04503 28 14.5 28ZM14.5 29C22.508 29 29 22.508 29 14.5C29 6.49278 22.508 0 14.5 0C6.49278 0 0 6.49278 0 14.5C0 22.508 6.49278 29 14.5 29Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.26389 16.1111C10.3761 16.1111 11.2778 14.8488 11.2778 13.2917C11.2778 11.7345 10.3761 10.4722 9.26389 10.4722C8.15165 10.4722 7.25 11.7345 7.25 13.2917C7.25 14.8488 8.15165 16.1111 9.26389 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.7361 16.1111C20.8484 16.1111 21.75 14.8488 21.75 13.2917C21.75 11.7345 20.8484 10.4722 19.7361 10.4722C18.6239 10.4722 17.7222 11.7345 17.7222 13.2917C17.7222 14.8488 18.6239 16.1111 19.7361 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M4.83253 9.66666C4.66497 9.66666 4.495 9.6143 4.35 9.50555C3.99394 9.23891 3.92225 8.73383 4.18889 8.37777C6.81661 4.87361 10.324 4.83333 10.4722 4.83333C10.9169 4.83333 11.2778 5.19422 11.2778 5.63888C11.2778 6.08274 10.9193 6.44283 10.4754 6.44444C10.3506 6.44605 7.60122 6.51372 5.47778 9.34444C5.31989 9.5555 5.07742 9.66666 4.83253 9.66666ZM24.1675 9.66666C23.9218 9.66666 23.6809 9.5555 23.5222 9.34444C21.3956 6.50808 18.6397 6.44605 18.5229 6.44444C18.0799 6.43961 17.7222 6.07711 17.7246 5.63486C17.7271 5.19099 18.0847 4.83333 18.5278 4.83333C18.676 4.83333 22.1826 4.87361 24.8111 8.37777C25.0786 8.73383 25.0061 9.23891 24.65 9.50555C24.505 9.6143 24.3358 9.66666 24.1675 9.66666V9.66666ZM18.9185 22.4581C18.9096 22.4226 17.9961 18.9306 14.5 18.9306C11.0039 18.9306 10.0904 22.4226 10.0815 22.4581C10.0388 22.6297 10.117 22.8053 10.2684 22.8963C10.4199 22.9865 10.6172 22.9656 10.7485 22.848C10.7558 22.8415 11.5646 22.1528 14.5 22.1528C17.3919 22.1528 18.2192 22.8214 18.2507 22.848C18.3272 22.9205 18.4271 22.9583 18.5278 22.9583C18.5954 22.9583 18.6639 22.9414 18.7259 22.9068C18.8838 22.8166 18.9628 22.6337 18.9185 22.4581V22.4581Z",fill:"#222222"})]}));case n.Unsatisfied:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.125 28C22.5808 28 28.625 21.9558 28.625 14.5C28.625 7.04416 22.5808 1 15.125 1C7.66916 1 1.625 7.04416 1.625 14.5C1.625 21.9558 7.66916 28 15.125 28ZM29.625 14.5C29.625 22.5081 23.1331 29 15.125 29C7.11687 29 0.625 22.5081 0.625 14.5C0.625 6.49187 7.11687 0 15.125 0C23.1331 0 29.625 6.49187 29.625 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M21.1546 22.0553C21.1183 21.9111 20.2137 18.5278 15.125 18.5278C10.0355 18.5278 9.13167 21.9111 9.09542 22.0553C9.05111 22.2301 9.13006 22.4114 9.28633 22.5016C9.44342 22.591 9.63997 22.5644 9.76967 22.4395C9.78497 22.4242 11.3437 20.9444 15.125 20.9444C18.9063 20.9444 20.4658 22.4242 20.4803 22.4387C20.5577 22.5153 20.6608 22.5555 20.7639 22.5555C20.8316 22.5555 20.9 22.5386 20.9621 22.504C21.1199 22.4138 21.1989 22.2309 21.1546 22.0553Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.2917 13.6944C11.4039 13.6944 12.3055 12.4321 12.3055 10.875C12.3055 9.31787 11.4039 8.05556 10.2917 8.05556C9.17942 8.05556 8.27777 9.31787 8.27777 10.875C8.27777 12.4321 9.17942 13.6944 10.2917 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.9583 13.6944C21.0706 13.6944 21.9722 12.4321 21.9722 10.875C21.9722 9.31787 21.0706 8.05556 19.9583 8.05556C18.8461 8.05556 17.9444 9.31787 17.9444 10.875C17.9444 12.4321 18.8461 13.6944 19.9583 13.6944Z",fill:"#222222"})]}));case n.Neutral:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.75 28C22.2057 28 28.25 21.9557 28.25 14.5C28.25 7.04503 22.2057 1 14.75 1C7.29506 1 1.25 7.04506 1.25 14.5C1.25 21.9557 7.29503 28 14.75 28ZM14.75 29C22.758 29 29.25 22.508 29.25 14.5C29.25 6.49278 22.758 0 14.75 0C6.74278 0 0.25 6.49278 0.25 14.5C0.25 22.508 6.74278 29 14.75 29Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.51389 16.1111C10.6261 16.1111 11.5278 14.8488 11.5278 13.2917C11.5278 11.7345 10.6261 10.4722 9.51389 10.4722C8.40165 10.4722 7.5 11.7345 7.5 13.2917C7.5 14.8488 8.40165 16.1111 9.51389 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.9861 16.1111C21.0984 16.1111 22 14.8488 22 13.2917C22 11.7345 21.0984 10.4722 19.9861 10.4722C18.8739 10.4722 17.9722 11.7345 17.9722 13.2917C17.9722 14.8488 18.8739 16.1111 19.9861 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M20.3889 20.9444H9.11111C8.66645 20.9444 8.30556 20.5844 8.30556 20.1389C8.30556 19.6934 8.66645 19.3333 9.11111 19.3333H20.3889C20.8344 19.3333 21.1944 19.6934 21.1944 20.1389C21.1944 20.5844 20.8344 20.9444 20.3889 20.9444Z",fill:"#222222"})]}));case n.Satisfied:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.375 28C22.8308 28 28.875 21.9558 28.875 14.5C28.875 7.04416 22.8308 1 15.375 1C7.91916 1 1.875 7.04416 1.875 14.5C1.875 21.9558 7.91916 28 15.375 28ZM29.875 14.5C29.875 22.5081 23.3831 29 15.375 29C7.36687 29 0.875 22.5081 0.875 14.5C0.875 6.49187 7.36687 0 15.375 0C23.3831 0 29.875 6.49187 29.875 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.34541 19.028C9.38166 19.1722 10.2863 22.5555 15.375 22.5555C20.4645 22.5555 21.3683 19.1722 21.4046 19.028C21.4489 18.8532 21.3699 18.672 21.2137 18.5817C21.0566 18.4923 20.86 18.5189 20.7303 18.6438C20.715 18.6591 19.1563 20.1389 15.375 20.1389C11.5937 20.1389 10.0342 18.6591 10.0197 18.6446C9.94233 18.568 9.83922 18.5278 9.73611 18.5278C9.66844 18.5278 9.59997 18.5447 9.53794 18.5793C9.38005 18.6695 9.30111 18.8524 9.34541 19.028V19.028Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.5417 13.6944C11.6539 13.6944 12.5556 12.4321 12.5556 10.875C12.5556 9.31787 11.6539 8.05556 10.5417 8.05556C9.42943 8.05556 8.52778 9.31787 8.52778 10.875C8.52778 12.4321 9.42943 13.6944 10.5417 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M20.2083 13.6944C21.3206 13.6944 22.2222 12.4321 22.2222 10.875C22.2222 9.31787 21.3206 8.05556 20.2083 8.05556C19.0961 8.05556 18.1944 9.31787 18.1944 10.875C18.1944 12.4321 19.0961 13.6944 20.2083 13.6944Z",fill:"#222222"})]}));case n.Happy:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 28C22.4558 28 28.5 21.9558 28.5 14.5C28.5 7.04416 22.4558 1 15 1C7.54416 1 1.5 7.04416 1.5 14.5C1.5 21.9558 7.54416 28 15 28ZM29.5 14.5C29.5 22.5081 23.0081 29 15 29C6.99187 29 0.5 22.5081 0.5 14.5C0.5 6.49187 6.99187 0 15 0C23.0081 0 29.5 6.49187 29.5 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M8.97042 19.028C9.00667 19.1722 9.9113 22.5555 15 22.5555C20.0895 22.5555 20.9933 19.1722 21.0296 19.028C21.0739 18.8532 20.9949 18.672 20.8387 18.5817C20.6816 18.4923 20.485 18.5189 20.3553 18.6438C20.34 18.6591 18.7813 20.1389 15 20.1389C11.2187 20.1389 9.65917 18.6591 9.64467 18.6446C9.56733 18.568 9.46422 18.5278 9.36111 18.5278C9.29344 18.5278 9.22497 18.5447 9.16294 18.5793C9.00505 18.6695 8.92611 18.8524 8.97042 19.028V19.028Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M15 17.6006C12.6107 17.6006 11.0246 17.3218 9.06388 16.9408C8.61519 16.8554 7.74438 16.9408 7.74438 18.2603C7.74438 20.8985 10.7757 24.1965 15 24.1965C19.2244 24.1965 22.2557 20.8985 22.2557 18.2603C22.2557 16.9408 21.3841 16.8546 20.9362 16.9408C18.9754 17.3218 17.3901 17.6006 15 17.6006Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.1667 13.6944C11.2789 13.6944 12.1806 12.4321 12.1806 10.875C12.1806 9.31787 11.2789 8.05556 10.1667 8.05556C9.05443 8.05556 8.15278 9.31787 8.15278 10.875C8.15278 12.4321 9.05443 13.6944 10.1667 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.8333 13.6944C20.9456 13.6944 21.8472 12.4321 21.8472 10.875C21.8472 9.31787 20.9456 8.05556 19.8333 8.05556C18.7211 8.05556 17.8194 9.31787 17.8194 10.875C17.8194 12.4321 18.7211 13.6944 19.8333 13.6944Z",fill:"#222222"})]}))}}};function u({emoji:e,label:t,active:i,onClick:n}){return(0,s.jsx)(o.$n,Object.assign({ariaLabel:t,active:i,variant:o.Ak.TERTIARY,size:"small",onClick:()=>n(e.value)},{children:(0,s.jsx)(c,{icon:e.icon})}))}c=d([l.A],c);var h=i(38216),m=i(99366),p=i(34942);const E=[{value:1,altText:m.A.REUSABLES.EMOJI_ALT_DISAPPOINTED,icon:n.Disappointed},{value:2,altText:m.A.REUSABLES.EMOJI_ALT_UNSATISFIED,icon:n.Unsatisfied},{value:3,altText:m.A.REUSABLES.EMOJI_ALT_NEUTRAL,icon:n.Neutral},{value:4,altText:m.A.REUSABLES.EMOJI_ALT_SATISFIED,icon:n.Satisfied},{value:p.kk,altText:m.A.REUSABLES.EMOJI_ALT_HAPPY,icon:n.Happy}];function S({happiness:e,setHappiness:t}){const i=(0,h.Y)();return(0,s.jsx)("div",Object.assign({className:"rating-picker"},{children:(0,s.jsx)(a.e,{children:E.map((n=>(0,s.jsx)(u,{emoji:n,onClick:t,label:i.t(n.altText),active:e===n.value},n.value)))})}))}},39570:(e,t,i)=>{"use strict";i.d(t,{z:()=>c});var n=i(74848),s=i(98429),a=i(52925),o=i(84928),r=i(38216),l=i(99366).A.WORKSHOP.MODEL_RATING;const d="//matterport.com/resources/support";function c({onSupportClicked:e,showSupportCTA:t=!0}){const i=(0,r.Y)();return(0,n.jsxs)("div",Object.assign({className:"rating-thank-you"},{children:[(0,n.jsx)("h4",{children:i.t(l.THANK_YOU_HEADING)}),(0,n.jsx)(s.Ay,{animation:a.a.HandsRaised}),(0,n.jsx)("p",Object.assign({className:"p4"},{children:i.t(l.THANK_YOU_BODY)})),t&&(0,n.jsxs)("small",Object.assign({className:"model-rating-cta"},{children:[i.t(l.THANK_YOU_CTA)," ",(0,n.jsx)(o.N,Object.assign({href:d,onClick:e},{children:i.t(l.THANK_YOU_CTA_LINK_TEXT)}))]}))]}))}},87256:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a);function r({children:e,className:t}){const i=(0,s.useCallback)((e=>{e.stopPropagation()}),[]);return(0,n.jsx)("div",Object.assign({className:o()("settings-container settings-box",t),onClick:i},{children:e}))}},36186:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(33044),r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{t(!l.toggled)}}))]}))}},92924:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(43591),l=i(99366),d=i(43998),c=i(41204),u=i(84370),h=i(86022),m=i(45610),p=i(79698),E=i(79953),S=i(52385),O=i(17139);class g extends s.Component{constructor(e,t){super(e,t),this.outerWrapperRef=(0,s.createRef)(),this.innerWrapperRef=(0,s.createRef)(),this.contentContainerRef=(0,s.createRef)(),this.dragStartScroll=0,this.listening=!1,this.animation=null,this.handlingPaused=!1,this.isDragging=!1,this.isUnmounting=!1,this.handleEvent=e=>{"mousedown"!==e.type&&"pointerdown"!==e.type&&"touchstart"!==e.type||(this.handlingPaused=!1),this.props.suppressDrag||this.handlingPaused||this.inputFilter.handleEvent(e)},this.getScrolledOffset=()=>{if(!this.innerWrapperRef.current||0===this.state.contentSize)return 0;const e=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";return this.innerWrapperRef.current[e]/this.state.contentSize},this.getScrollableContainer=()=>this.innerWrapperRef.current||void 0,this.pauseScrollHandling=()=>{this.handlingPaused=!0,this.toggleDownEventListening(!1)},this.scrollWithScrollBar=e=>{if(!this.props.suppressDrag){const t=this.getAxis();e.hasOwnProperty(t)&&this.scrollTo(e[t])}},this.scrollTo=e=>{void 0===e||isNaN(e)||(this.setScrollPosition(Math.max(Math.min(1,e)*this.state.contentSize,0)),this.setState({scrollOffset:this.getScrollPosition()}))},this.handleDragStart=()=>{this.setState({scrollCenter:null}),this.isDragging=!0},this.handlePressStart=()=>{this.dragStartScroll=this.getScrollPosition()},this.handlePressMove=e=>{if(!this.props.suppressDrag){const t=(e[this.getAxis()]+this.dragStartScroll)/this.state.contentSize;this.scrollTo(t)}},this.handleWheelEvent=e=>{if(this.props.suppressDrag)return void e.preventDefault();this.props.direction===u.OP.horizontal&&0===e.deltaX&&0!==e.deltaY?(this.handlePressStart(),this.handlePressMove({x:e.deltaY,y:0})):(this.setState({scrollCenter:null}),this.handleExternalChange())},this.handleClick=e=>{this.props.handleClick&&this.props.handleClick(e)},this.handleDragEnd=(e,t)=>{this.isDragging=!1;const i=e[this.getAxis()]/t,n=Math.min(u.RL,Math.abs(u.RL*i)),s=this.getScrollPosition(),a=i*n/2;this.animation=new m.A({duration:n,startValue:s/this.state.contentSize,endValue:Math.max(0,Math.min((s+a)/this.state.contentSize,1)),easingFunction:E.WD})},this.handleResize=()=>{!this.isUnmounting&&this.innerWrapperRef.current&&this.contentContainerRef.current&&this.state.scrollCenter&&this.scrollToElement(this.state.scrollCenter)},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.onManualScroll=()=>{this.props.onScrolled&&this.props.onScrolled()},this.onButtonScroll=e=>{if(this.contentContainerRef.current&&this.props.steps){const t=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth",i=this.contentContainerRef.current[t]/this.props.steps,n=this.getScrollPosition();let s;s=e?(n+i)/this.state.contentSize:(n-i)/this.state.contentSize,this.scrollTo((0,d.qE)(s,0,1))}},this.onScrollBack=()=>{this.onButtonScroll(!1)},this.onScrollForward=()=>{this.onButtonScroll(!0)},this.onHoldScrollBack=()=>{this.mouseInterval=window.setInterval(this.onScrollBack,300)},this.onHoldScrollForward=()=>{this.mouseInterval=window.setInterval(this.onScrollForward,300)},this.onScrollButtonUp=()=>{window.clearInterval(this.mouseInterval)},this.renderScrollBackButton=()=>{const e=this.getScrollPosition(),t=this.props.direction===u.OP.vertical?"dpad-up":"dpad-left",i=this.context.locale.t(l.A.SCROLLING.SCROLL_BUTTON_LABEL),s=0===e;return(0,n.jsx)(S.$n,{className:o()("scroll-button","scroll-back"),icon:t,ariaLabel:i,variant:S.Ak.TERTIARY,theme:"dark",disabled:s,onClick:this.onScrollBack,onPointerDown:this.onHoldScrollBack,onPointerUp:this.onScrollButtonUp})},this.renderScrollForwardButton=()=>{const e=this.contentContainerRef.current,t=this.innerWrapperRef.current;if(!e||!t)return null;const i=this.getScrollPosition(),s=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth",a=this.props.direction===u.OP.vertical?"dpad-down":"dpad-right",r=this.context.locale.t(l.A.SCROLLING.SCROLL_BUTTON_LABEL),d=e[s]-t[s]-i<=0;return(0,n.jsx)(S.$n,{className:o()("scroll-button","scroll-forward"),icon:a,ariaLabel:r,variant:S.Ak.TERTIARY,theme:"dark",disabled:d,onClick:this.onScrollForward,onPointerDown:this.onHoldScrollForward,onPointerUp:this.onScrollButtonUp})},this.state={scrollCenter:null,scrollOffset:0,innerSize:0,contentSize:0},this.resizeObserver=new r.A(this.handleResize),this.inputFilter=new p.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd,handleClick:this.handleClick})}componentDidMount(){this.outerWrapperRef.current&&this.resizeObserver.observe(this.outerWrapperRef.current),this.props.thumbScrollingOnly?this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("click",this.handleClick):this.toggleDownEventListening(!0),this.toggleDragHandling(!0),this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("wheel",this.handleWheelEvent),this.inputFilter.setEnabled(!this.props.suppressDrag),this.handleExternalChange(!0)}componentWillUnmount(){this.isUnmounting=!0,this.resizeObserver.disconnect(),this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("wheel",this.handleWheelEvent),this.toggleDragHandling(!1),this.props.thumbScrollingOnly?this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("click",this.handleClick):this.toggleDownEventListening(!1)}UNSAFE_componentWillReceiveProps(e){e.thumbScrollingOnly&&!this.props.thumbScrollingOnly?(this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("click",this.handleClick),this.toggleDownEventListening(!1)):!e.thumbScrollingOnly&&this.props.thumbScrollingOnly&&(this.toggleDownEventListening(!0),this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("click",this.handleClick)),e.suppressDrag!==this.props.suppressDrag&&this.inputFilter.setEnabled(!e.suppressDrag)}componentDidUpdate(e,t){this.props.waitToUpdate||this.handleExternalChange();const i=this.animation;if(i)if(i.isAnimating){const e=i.getUpdatedValue();window.requestAnimationFrame((()=>{this.innerWrapperRef.current&&this.scrollTo(e)}))}else this.animation=null;t.scrollOffset!==this.state.scrollOffset&&this.props.onScrolled&&this.props.onScrolled()}toggleDownEventListening(e){const t=this.handleEvent;this.innerWrapperRef.current&&(e?window.PointerEvent?this.innerWrapperRef.current.addEventListener("pointerdown",t):(this.innerWrapperRef.current.addEventListener("mousedown",t),this.innerWrapperRef.current.addEventListener("touchstart",t)):window.PointerEvent?this.innerWrapperRef.current.removeEventListener("pointerdown",t):(this.innerWrapperRef.current.removeEventListener("mousedown",t),this.innerWrapperRef.current.removeEventListener("touchstart",t)))}toggleDragHandling(e){const t=this.handleEvent;!this.listening&&e?(this.listening=!0,window.PointerEvent?(window.addEventListener("pointermove",t),window.addEventListener("pointerup",t)):(window.addEventListener("mousemove",t),window.addEventListener("mouseleave",t),window.addEventListener("mouseup",t),window.addEventListener("touchmove",t),window.addEventListener("touchend",t),window.addEventListener("touchcancel",t))):this.listening&&!e&&(this.listening=!1,window.PointerEvent?(window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",t)):(window.removeEventListener("mousemove",t),window.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",t),window.removeEventListener("touchcancel",t)))}getScrollPosition(){if(!this.innerWrapperRef.current)return 0;const e=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";return this.innerWrapperRef.current[e]}setScrollPosition(e){if(!this.innerWrapperRef.current)return;const t=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";this.innerWrapperRef.current[t]=e}getAxis(){return this.props.direction===u.OP.vertical?"y":"x"}scrollToPercentage(e,t){this.animation=new m.A({duration:t,startValue:this.getScrolledOffset(),endValue:Math.max(0,Math.min(1,e))})}scrollToElement(e){const t=this.innerWrapperRef.current,i=this.outerWrapperRef.current;if(!e||!t||!i)return;if(!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return;const n=this.props.direction===u.OP.vertical;this.setState({scrollCenter:e});const s=n?"offsetTop":"offsetLeft",a=n?"offsetHeight":"offsetWidth";let o=e[s]+e[a]/2,r=e;for(;r.parentElement&&r!==t;)r=r.parentElement,o+=r[s];const l=(o-i.parentElement[a]/2)/this.state.contentSize;this.animation=new m.A({duration:u.RL,startValue:this.getScrollPosition()/this.state.contentSize,endValue:Math.max(0,Math.min(1,l))})}handleExternalChange(e){if(this.isUnmounting||!this.innerWrapperRef.current||!this.contentContainerRef.current)return;const t=this.props.direction===u.OP.vertical?"clientHeight":"clientWidth",i={innerSize:Number(this.innerWrapperRef.current&&this.innerWrapperRef.current[t])||1,contentSize:Number(this.contentContainerRef.current&&this.contentContainerRef.current[t])||1,scrollOffset:this.innerWrapperRef.current&&this.getScrollPosition()};(0,c._)(this.state,i)&&(e?this.setState(i):this.debouncedSetState(i))}needScrolling(){if(!this.contentContainerRef.current||!this.outerWrapperRef.current)return!1;const e=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth";return this.contentContainerRef.current[e]>this.outerWrapperRef.current[e]}render(){const{hideScrollbar:e,children:t,onScrollableChanged:i,scrollButtons:s,steps:a,onScrollPositionChange:r,direction:l,className:d}=this.props,{innerSize:c,contentSize:u,scrollOffset:m}=this.state,p=s&&!!a&&this.needScrolling();return(0,n.jsxs)("div",Object.assign({className:o()("outerScrollbarWrapper",[l],[d],{"button-scrolling":p}),ref:this.outerWrapperRef},{children:[p&&this.renderScrollBackButton(),(0,n.jsx)("div",Object.assign({className:"innerScrollbarWrapper",ref:this.innerWrapperRef},{children:(0,n.jsx)("div",Object.assign({className:"paddingScrollbarWrapper",ref:this.contentContainerRef},{children:t}))})),(0,n.jsx)(h.Z,{direction:l,wrapperLength:c,childLength:u,scrollOffset:m,scrollTo:this.scrollWithScrollBar,forceHidden:!!e,onVisibilityChange:i,onScrollPositionChange:r,onThumbDrag:this.onManualScroll}),p&&this.renderScrollForwardButton()]}))}}g.contextType=O.B},91485:(e,t,i)=>{"use strict";i.d(t,{A:()=>S});var n,s=i(74848),a=i(96540),o=i(72909),r=i(32485),l=i.n(r),d=i(17139),c=i(44158),u=i(52775),h=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.OUTLINED=0]="OUTLINED",e[e.ADJUSTABLE=1]="ADJUSTABLE"}(n||(n={}));const p=function*(){let e=0;for(;;)yield e++}();let E=class extends a.Component{constructor(e){super(e),this.elementRef=(0,a.createRef)(),this.onInput=e=>{if(this.props.onInput){const t=e.target;this.props.onInput(t.value)}},this.onKeyPress=e=>{e.stopPropagation();const t=e.which||e.keyCode,i=[c.D.RETURN];if("keydown"===e.type&&!i.includes(t))return!1;const n=e.target;if(this.props.maxLength&&n.value.length>this.props.maxLength&&e.preventDefault(),t===c.D.RETURN)e.shiftKey||(e.preventDefault(),this.blur(),this.props.onDone(n.value));return!1},this.stopPropagation=e=>e.stopPropagation(),this.onChange=e=>{this.updateHeight()},this.onFocus=e=>{this.context.messageBus.broadcast(new u.Yl(this.input,!0)),this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0})},this.onBlur=e=>{this.context.messageBus.broadcast(new u.Yl(this.input,!1)),this.props.onBlur&&this.props.onBlur(e),this.setState({isFocused:!1})},this.setRef=e=>this.input=e,this.instanceId=`textarea-${p.next().value}`,this.state={currentText:e.text,isFocused:!1}}componentDidMount(){this.props.focusOnMount&&this.input&&this.input.focus(),this.props.scrollIntoViewOnMount&&this.input&&this.input.scrollIntoView(),this.updateHeight()}componentWillUnmount(){this.input&&this.input.blur()}UNSAFE_componentWillReceiveProps(e){e.text!==this.props.text&&this.setState({currentText:e.text})}componentDidUpdate(e,t){t.currentText!==this.state.currentText&&this.updateHeight()}getText(){return this.input?this.input.value:""}focus(){this.input.focus()}blur(){this.input.blur()}updateHeight(){if(this.props.inputStyle===n.ADJUSTABLE){const e=this.elementRef.current;if(!this.input||!e)return;e.style.height="",this.input.style.overflowY="";const t=this.input.scrollHeight;e.style.height=`${t}px`,t>e.scrollHeight&&(this.input.style.overflowY="auto")}}render(){const{placeholder:e,tabIndex:t,maxLength:i,inputStyle:a=n.OUTLINED,label:o,name:r,readOnly:d,rows:c}=this.props,{currentText:u,isFocused:h}=this.state,m=r||this.instanceId,p=""===u,E=o&&(a!==n.ADJUSTABLE||h||!p),S=a===n.ADJUSTABLE?1:c;return(0,s.jsxs)("div",Object.assign({className:l()("textarea-container",`textarea-style-${n[a].toLowerCase()}`,{focused:h,readonly:d,placeholder:p}),ref:this.elementRef},{children:[E&&(0,s.jsx)("label",Object.assign({className:"label",htmlFor:m},{children:o})),(0,s.jsx)("textarea",{className:"textarea",value:u,ref:this.setRef,name:m,placeholder:e,maxLength:i,onInput:this.onInput,onChange:this.onChange,onKeyPress:this.onKeyPress,onKeyDown:this.onKeyPress,onKeyUp:this.stopPropagation,onBlur:this.onBlur,onFocus:this.onFocus,rows:S,tabIndex:t,readOnly:d})]}))}};E.contextType=d.B,E=h([o.A,m("design:paramtypes",[Object])],E);const S=E},97984:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s,v:()=>a});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload=e}}s.id="SHOW_TOASTR";class a extends n.u{}a.id="HIDE_TOASTR"},33044:(e,t,i)=>{"use strict";i.d(t,{l:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(99366),r=i(38216);function l(e){const{id:t,onToggle:i,labelledBy:s,className:l,onOffLabel:d=!1,enabled:c=!0,toggled:u,testId:h}=e,m=(0,r.Y)(),p=m.t(o.A.GENERIC.SETTING_ON),E=m.t(o.A.GENERIC.SETTING_OFF),S=u?p:E;return(0,n.jsxs)("div",Object.assign({className:a()("reusable-toggle",l,{"toggle-on":u,"has-labels":d,enabled:c}),id:t,onClick:e=>{e.stopPropagation(),c&&i&&i(e,!u)},role:"checkbox","aria-checked":u,"aria-labelledby":s,"data-testid":h},{children:[d&&(0,n.jsx)("span",Object.assign({className:"toggle-label"},{children:S})),(0,n.jsx)("div",Object.assign({className:"track"},{children:(0,n.jsx)("div",{className:"thumb"})}))]}))}},94591:(e,t,i)=>{"use strict";i.d(t,{a:()=>l});var n=i(74848),s=i(99366),a=i(38216),o=i(84928);const{EDIT_BAR:r}=s.A.WORKSHOP;function l({tool:e}){const{helpHref:t,helpMessagePhraseKey:i}=e,s=(0,a.Y)(),l=s.t(r.HELP_LINK);return(0,n.jsxs)("div",Object.assign({className:"tool-help"},{children:[i&&s.t(i),t&&(0,n.jsx)(o.N,Object.assign({href:t},{children:l}))]}))}},7839:(e,t,i)=>{"use strict";i.d(t,{k:()=>h});var n=i(74848),s=i(32485),a=i.n(s),o=i(38216),r=i(99366),l=i(89481),d=i(52385);function c({analytic:e,children:t,className:i}){const s=(0,o.Y)().t(r.A.REUSABLES.HELP_BUTTON_TOOLTIP_MESSAGE);return(0,n.jsx)(l.Q,Object.assign({icon:"help",tooltip:s,popupSize:"medium",analytic:`${e}_help_click`,className:a()("help-button",i),variant:d.Ak.TERTIARY},{children:t}))}var u=i(94591);function h({tool:e}){const{analytic:t,helpMessagePhraseKey:i}=e;return i?(0,n.jsx)(c,Object.assign({analytic:t,className:"tool-help-button"},{children:(0,n.jsx)(u.a,{tool:e})})):null}},89481:(e,t,i)=>{"use strict";i.d(t,{Q:()=>u});var n=i(96540),s=i(8430),a=i(17139),o=i(61412),r=i(97137),l=i(52385),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{g&&_(!1)}),[A]);const v=!(!g||!m),N=c||v?"static":"hover";let L;v?L=m:c&&!g||(L=i);const I={placement:s,preventOverflow:v?u:void 0,onToggle:e=>{e||_(e)},trigger:N,theme:v?"light":"dark",size:v?p:"small"},f=`button-tooltip-${i}-${N}`,b=t||S.label||i;return(0,n.createElement)(l.$n,Object.assign({},S,{key:f,ariaLabel:b,onClick:e=>{e.stopPropagation(),g||(h&&O.trackGuiEvent(h,{tool:T}),E&&E()),_(!g)},tooltip:L,tooltipOptions:I}))}},23819:(e,t,i)=>{"use strict";i.d(t,{w:()=>u});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.OPEN="open",e.UNLOADING="unloading",e.CLOSED="closed"}(n||(n={}));let u=class extends a.Component{constructor(e){super(e),this.ref=(0,a.createRef)(),this.closeTimeout=0,this.onTransitionCancel=e=>{e.target===e.currentTarget&&this.state.phase===n.UNLOADING&&(window.clearTimeout(this.closeTimeout),this.setState({phase:n.CLOSED,activeChild:null}))},this.onTransitionEnd=e=>{e.target===e.currentTarget&&this.state.phase===n.UNLOADING&&(window.clearTimeout(this.closeTimeout),this.setState({phase:n.CLOSED,activeChild:null}))},this.state={phase:e.open?n.OPEN:n.CLOSED,activeChild:e.selectChild&&e.childKey||null}}componentDidMount(){this.ref.current&&this.ref.current.addEventListener("transitioncancel",this.onTransitionCancel),this.props.focus&&this.focus()}componentWillUnmount(){window.clearTimeout(this.closeTimeout),this.ref.current&&this.ref.current.removeEventListener("transitioncancel",this.onTransitionCancel)}UNSAFE_componentWillReceiveProps(e){const{open:t,childKey:i}=this.props;t&&!e.open?(this.setState({phase:n.UNLOADING}),window.clearTimeout(this.closeTimeout),this.closeTimeout=window.setTimeout((()=>{this.state.phase===n.UNLOADING&&this.setState({phase:n.CLOSED,activeChild:null})}),1e3)):!t&&e.open?(window.clearTimeout(this.closeTimeout),this.setState({phase:n.OPEN,activeChild:e.selectChild&&e.childKey||null})):i!==e.childKey&&this.setState({activeChild:e.selectChild&&e.childKey||null})}focus(){this.ref.current&&this.ref.current.focus()}renderChildren(){const{children:e,selectChild:t}=this.props,{phase:i,activeChild:s}=this.state;return i===n.CLOSED||t&&!s?null:t?e&&Array.isArray(e)&&e.length&&e.find((e=>e&&e.key===s))||null:e}render(){const{className:e,firstChild:t,style:i,onKeyDown:a,onPointerDown:o,onPointerUp:l,onClick:d,focus:c}=this.props,{phase:u}=this.state,h=r()({unloading:u===n.UNLOADING},e);return(0,s.jsxs)("div",Object.assign({ref:this.ref,className:h,style:i,onTransitionEnd:this.onTransitionEnd,onClick:d,onPointerDown:o,onPointerUp:l,onKeyDown:a,tabIndex:c?0:void 0,"aria-live":this.props["aria-live"],"aria-atomic":this.props["aria-atomic"]},{children:[t||null,this.renderChildren()]}))}};u=d([l.A,c("design:paramtypes",[Object])],u)},74714:(e,t,i)=>{"use strict";i.d(t,{m:()=>m});var n=i(74848),s=i(96540),a=i(17139),o=i(99366),r=i(82030),l=i(56136),d=i(38216),c=i(81196),u=i(61412),h=i(18691);function m(){const{settings:e,analytics:t}=(0,s.useContext)(a.B),i=(0,d.Y)(),m=(0,c.J)(),p=(0,u.L)(),E=i=>{i.stopPropagation();const n=m===r.t.IMPERIAL?r.t.METRIC:r.t.IMPERIAL;t.trackGuiEvent(`units_click_${n}`,{tool:p}),e.setLocalStorageProperty(l.Y.UnitType,n)},S=i.t(o.A.MEASUREMENT_UNITS),O=i.t(o.A.MEASUREMENT_IMPERIAL),g=i.t(o.A.MEASUREMENT_METRIC),_=m===r.t.METRIC;return(0,n.jsxs)("div",Object.assign({className:"settings-toggle units-setting"},{children:[(0,n.jsx)("div",Object.assign({className:"settings-label"},{children:S})),(0,n.jsxs)("div",Object.assign({className:"radio-group radio-buttons"},{children:[(0,n.jsx)(h.a,Object.assign({name:"unit",value:r.t.IMPERIAL,id:"unit-imperial",enabled:!0,checked:!_,onChange:E},{children:O})),(0,n.jsx)(h.a,Object.assign({name:"unit",value:r.t.METRIC,id:"unit-metric",enabled:!0,checked:_,onChange:E},{children:g}))]}))]}))}},99167:(e,t,i)=>{"use strict";i.d(t,{J:()=>u});var n=i(74848),s=i(32485),a=i.n(s),o=i(99366),r=i(38216),l=i(52385),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{"use strict";var n;i.d(t,{X:()=>s,a:()=>n}),function(e){e.HandsRaised="hands-raised",e.RotatePhone="rotate-phone"}(n||(n={}));const s=new Map;s.set(n.HandsRaised,{alt:"Hands Raised",json:i(32244),fallback:i(10086)}),s.set(n.RotatePhone,{alt:"Rotate your device to portrait orientation",json:i(2377),fallback:i(28659)})},98429:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>c});var n=i(74848),s=i(96540),a=i(72909),o=i(52925),r=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let d=class extends s.Component{constructor(e){super(e),this.lottieTargetRef=(0,s.createRef)(),this.isUnmounting=!1,this.loadLottie=async()=>this.lottieLib?this.lottieLib:await i.e(4456).then(i.t.bind(i,49891,23)),this.updateAnimation=async()=>{const{animation:e,loop:t=!1}=this.props;let i;this.setState({fallbackActive:!1});try{i=await this.loadLottie()}catch(e){if(this.isUnmounting)return;return void this.setState({fallbackActive:!0})}const n=o.X.get(e);if(i&&n&&this.lottieTargetRef.current){const e=i.loadAnimation({loop:t,container:this.lottieTargetRef.current,renderer:"svg",autoplay:!1,animationData:n.json});e.addEventListener("data_failed",(()=>{this.isUnmounting||this.setState({fallbackActive:!0})})),setTimeout((()=>{this.isUnmounting||e.play()}),50)}},this.renderFallback=()=>{const{animation:e}=this.props,t=o.X.get(e);return t?(0,n.jsx)("img",{className:"lottie-fallback",src:t.fallback,alt:t.alt}):null},this.state={fallbackActive:!1}}componentDidMount(){this.updateAnimation()}componentDidUpdate(e){e.animation===this.props.animation&&e.loop===this.props.loop||this.updateAnimation()}componentWillUnmount(){this.isUnmounting=!0}render(){return(0,n.jsxs)("div",Object.assign({className:"lottie"},{children:[(0,n.jsx)("div",{className:"lottie-animation",ref:this.lottieTargetRef}),this.state.fallbackActive&&this.renderFallback()]}))}};d=r([a.A,l("design:paramtypes",[Object])],d);const c=d},78380:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var n=i(74848),s=i(96540),a=i(84370),o=i(86022),r=i(41204),l=i(45610),d=i(79698),c=i(79953),u=i(32485),h=i.n(u),m=i(43591);class p extends s.Component{constructor(e){super(e),this.horizontal=(0,a.O$)(),this.vertical=(0,a.O$)(),this.prevSuppressDrag=!1,this.manuallyMoved=!1,this.isUnmounting=!1,this.scrollPosition={horizontal:a.BB.Beginning,vertical:a.BB.End},this.handleEvent=e=>{this.inputFilter.handleEvent(e)},this.getScrollableContainer=()=>this.innerWrapper,this.getScrolledOffset=e=>{const t=a.RX[e].scrollOffset;return this.innerWrapper[t]/this.state[e].childLength},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.state={horizontal:(0,a.XU)(),vertical:(0,a.XU)()},this.scrollTo=this.scrollTo.bind(this),this.handlePressStart=this.handlePressStart.bind(this),this.handlePressMove=this.handlePressMove.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleWheelEvent=this.handleWheelEvent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.hasManuallyMoved=this.hasManuallyMoved.bind(this),this.prevSuppressDrag=!!e.suppressDrag,this.inputFilter=new d.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd,handleClick:this.handleClick});const t=this.handleEvent;window.PointerEvent||(window.addEventListener("mousemove",t),window.addEventListener("mouseleave",t),window.addEventListener("mouseup",t)),window.addEventListener("pointermove",t),window.addEventListener("pointerup",t),window.addEventListener("touchmove",t),window.addEventListener("touchend",t),window.addEventListener("touchcancel",t)}componentDidMount(){if(this.resizeObserver=new m.A((()=>this.handleResize())),this.resizeObserver.observe(this.outerWrapper),this.innerWrapper.addEventListener("wheel",this.handleWheelEvent,!0),this.props.thumbScrollingOnly)this.innerWrapper.addEventListener("click",this.handleClick);else{const e=this.handleEvent;this.innerWrapper.addEventListener("mousedown",e),this.innerWrapper.addEventListener("pointerdown",e),this.innerWrapper.addEventListener("touchstart",e)}this.firstChild=this.innerWrapper.firstElementChild,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(),this.props.hasOwnProperty("suppressDrag")&&this.inputFilter.setEnabled(!!this.props.suppressDrag)}componentWillUnmount(){var e;this.isUnmounting=!0;const t=this.handleEvent;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),window.PointerEvent||(window.removeEventListener("mousemove",t),window.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",t)),window.removeEventListener("pointermove",t),window.removeEventListener("touchmove",t),window.removeEventListener("pointerup",t),window.removeEventListener("touchend",t),window.removeEventListener("touchcancel",t),this.innerWrapper.removeEventListener("wheel",this.handleWheelEvent,!0),this.props.thumbScrollingOnly?this.innerWrapper.removeEventListener("click",this.handleClick):(this.innerWrapper.removeEventListener("mousedown",t),this.innerWrapper.removeEventListener("pointerdown",t),this.innerWrapper.removeEventListener("touchstart",t))}componentDidUpdate(){if(this.props.waitToUpdate||this.handleExternalChange(),this.prevSuppressDrag!==this.props.suppressDrag&&(this.inputFilter.setEnabled(!!this.props.suppressDrag),this.props.suppressDrag&&(this.manuallyMoved=!1),this.prevSuppressDrag=!!this.props.suppressDrag),!this.horizontal.animation&&!this.vertical.animation)return;const e={};for(const t in this.state){const i=t;this[i].animation&&(this[i].animation.isAnimating?e[(0,a.s4)(i)]=this[i].animation.getUpdatedValue():this[i].animation=null)}Object.keys(e).length>0&&window.requestAnimationFrame((()=>{this.innerWrapper&&this.scrollTo(e)}))}scrollTo(e){if(!e.hasOwnProperty(a._0.x)&&!e.hasOwnProperty(a._0.y))return;const t={};for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=a.RX[n].scrollOffset,o=e[i];if(void 0!==o){if(isNaN(o))return;this.innerWrapper[s]=Math.max(Math.min(1,o)*this.state[n].childLength,0),t[n]=Object.assign(Object.assign({},this.state[n]),{scrollOffset:this.innerWrapper[s]})}}this.setState(t)}animatedScrollTo(e,t){if(e.hasOwnProperty(a._0.x)||e.hasOwnProperty(a._0.y))for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=a.RX[n].scrollOffset;this[n].animation=new l.A({duration:t||a.RL,startValue:this.innerWrapper[s]/this.state[n].childLength,endValue:Math.max(0,Math.min(1,e[i]))})}}setScrollCenter(e){if(!(e&&e.compareDocumentPosition(this.innerWrapper)&Node.DOCUMENT_POSITION_CONTAINS))return;this.scrollCenter=e;const t={},i={};for(const n of this.getVisibleAxes(this.state)){const s=(0,a.s4)(n);t[s]=e[a.RX[n].positionOffset]+e[a.RX[n].offsetLength]/2;let o=e;for(;o.parentElement&&o!==this.innerWrapper;)o=o.parentElement,t[s]+=o[a.RX[n].positionOffset];const r=this.outerWrapper.parentElement[a.RX[n].offsetLength];i[s]=(t[s]-r/2)/this.state[n].childLength}Object.keys(i).length>0&&this.animatedScrollTo(i)}getVisibleAxes(e){const t=[];for(const i in e)(e[i]||"number"==typeof e[i])&&(i in a._0&&this.state[(0,a.mn)(i)].isVisible||i in a.OP&&this.state[i].isVisible)&&t.push(i);return t}handleDragStart(){delete this.scrollCenter,this.hasManuallyMoved()}handlePressStart(){this.horizontal.dragStartScroll=this.innerWrapper.scrollLeft,this.vertical.dragStartScroll=this.innerWrapper.scrollTop}handlePressMove(e){const t={};for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i);t[i]=(e[i]+this[n].dragStartScroll)/this.state[n].childLength}this.scrollTo(t)}handleWheelEvent(e){this.props.singleScrollDirection===a.OP.horizontal&&0===e.deltaX&&0!==e.deltaY?(this.handlePressStart(),this.handlePressMove({x:e.deltaY,y:0})):(this.hasManuallyMoved(),this.handleExternalChange())}handleClick(e){this.props.handleClick&&this.props.handleClick(e)}toggleVisibility(e){return t=>{const i=Object.assign(Object.assign({},this.state[e]),{isVisible:t});if((0,r._)(this.state[e],i)){const t={};t[e]=i,this.setState(t),this.props.onScrollbarVisibilityChange&&this.props.onScrollbarVisibilityChange()}}}toggleScrollPosition(e){return t=>{this.scrollPosition[e]=t,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(t)}}handleDragEnd(e,t){for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=e[i]/t,o=Math.min(a.RL,Math.abs(a.RL*s)),r=this.innerWrapper[a.RX[n].scrollOffset],d=s*o/2;this[n].animation=new l.A({duration:o,startValue:r/this.state[n].childLength,endValue:Math.max(0,Math.min((r+d)/this.state[n].childLength,1)),easingFunction:c.WD})}this.setState({})}handleResize(){this.isUnmounting||(this.scrollCenter&&this.setScrollCenter(this.scrollCenter),this.handleExternalChange())}handleExternalChange(){if(this.isUnmounting)return;const e={};for(const t in this.state){const i=t,n=a.RX[i].clientLength,s=Object.assign(Object.assign({},this.state[i]),{wrapperLength:Number(this.innerWrapper&&this.innerWrapper[n])||1,childLength:Number(this.firstChild&&this.firstChild[n])||1,scrollOffset:this.innerWrapper&&this.innerWrapper[a.RX[i].scrollOffset]});(0,r._)(this.state[i],s)&&(e[i]=s)}Object.keys(e).length>0&&this.debouncedSetState(e)}hasManuallyMoved(){this.manuallyMoved=!0,this.props.onScrolled&&this.props.onScrolled()}resetManuallyMoved(){this.manuallyMoved=!1}renderScrollbar(e,t){const{forceHidden:i}=this.props,{wrapperLength:s,childLength:a,scrollOffset:r}=t;return(0,n.jsx)(o.Z,{direction:e,ref:e=>{this.horizontal.scrollbar=e},wrapperLength:s,childLength:a,scrollOffset:r,scrollTo:this.scrollTo,onVisibilityChange:this.toggleVisibility(e),onScrollPositionChange:this.toggleScrollPosition(e),forceHidden:i,onThumbDrag:this.hasManuallyMoved})}render(){const{scrollbarHeight:e,singleScrollDirection:t,name:i,children:s}=this.props,o={maxHeight:e||""},r=t||`${a.OP.vertical} ${a.OP.horizontal}`;return(0,n.jsxs)("div",Object.assign({className:h()("outerScrollbarWrapper",r,`scrollbar-${i}`),ref:e=>{this.outerWrapper=e},style:o},{children:[(0,n.jsx)("div",Object.assign({className:"innerScrollbarWrapper",ref:e=>{this.innerWrapper=e}},{children:(0,n.jsx)("div",Object.assign({className:"paddingScrollbarWrapper"},{children:s}))})),t!==a.OP.vertical&&this.renderScrollbar(a.OP.horizontal,this.state.horizontal),t!==a.OP.horizontal&&this.renderScrollbar(a.OP.vertical,this.state.vertical)]}))}}},84370:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,J5:()=>h,O$:()=>a,OP:()=>o,RL:()=>n,RX:()=>c,XU:()=>s,_0:()=>r,mn:()=>d,s4:()=>l});const n=250,s=()=>({wrapperLength:1,childLength:1,scrollOffset:1,isVisible:!1}),a=()=>({scrollbar:null,animation:null,dragStartScroll:0});var o,r;!function(e){e.horizontal="horizontal",e.vertical="vertical"}(o||(o={})),function(e){e.x="x",e.y="y"}(r||(r={}));const l=e=>{switch(e){case o.horizontal:return r.x;case o.vertical:return r.y}throw Error()},d=e=>{switch(e){case r.x:return o.horizontal;case r.y:return o.vertical}throw Error()},c={[o.horizontal]:{scrollOffset:"scrollLeft",offsetLength:"offsetWidth",clientLength:"clientWidth",positionOffset:"offsetLeft",lengthName:"width",offsetName:"left",eventPosition:"clientX",delta:r.x},[o.vertical]:{scrollOffset:"scrollTop",offsetLength:"offsetHeight",clientLength:"clientHeight",positionOffset:"offsetTop",lengthName:"height",offsetName:"top",eventPosition:"clientY",delta:r.y}};var u;!function(e){e.Beginning="Beginning",e.Middle="Middle",e.End="End",e.None="None"}(u||(u={}));const h=(e,t)=>t?e<.01?u.Beginning:1-e<.01?u.End:u.Middle:u.None},86022:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(74848),s=i(96540),a=i(41204),o=i(79698),r=i(84370),l=i(63954);class d extends s.Component{constructor(e){super(e),this.state={visible:!1,trackLength:1,thumbLength:1,thumbOffset:0},this.direction=r.RX[e.direction],this.handlePressStart=this.handlePressStart.bind(this),this.handlePressMove=this.handlePressMove.bind(this),this.handleTrackClick=this.handleTrackClick.bind(this),this.inputFilter=new o.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove}),window.PointerEvent||(window.addEventListener("mousemove",this.inputFilter.handleEvent),window.addEventListener("mouseleave",this.inputFilter.handleEvent),window.addEventListener("mouseup",this.inputFilter.handleEvent)),window.addEventListener("pointermove",this.inputFilter.handleEvent),window.addEventListener("pointerup",this.inputFilter.handleEvent)}componentWillUnmount(){window.PointerEvent||(window.removeEventListener("mousemove",this.inputFilter.handleEvent),window.removeEventListener("mouseleave",this.inputFilter.handleEvent),window.removeEventListener("mouseup",this.inputFilter.handleEvent)),window.removeEventListener("pointermove",this.inputFilter.handleEvent),window.removeEventListener("pointerup",this.inputFilter.handleEvent)}getTrackLength(){return Number(this.thumbTrack&&this.thumbTrack[this.direction.clientLength]||this.props.containerSize.width)}handleTrackClick(e){if(e.target!==this.thumbTrack)return;const t=this.direction.eventPosition,i=this.thumbTrack.getBoundingClientRect()[this.direction.offsetName],n=e[t]0&&t>0){const n=this.getTrackLength(),s=e/t*n,o={thumbLength:s,visible:t>e,thumbOffset:Math.min(i/t*n,n-s)};if((0,a._)(this.state,o)){const e=this.state.visible!==o.visible;e&&this.props.onVisibilityChange&&this.props.onVisibilityChange(o.visible);const t=(0,r.J5)(o.thumbOffset/(n-s),o.visible);(t!==this.scrollPosition||e)&&(this.scrollPosition=t,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(t)),this.setState(o)}}}render(){const e={[`${this.direction.lengthName}`]:this.state.thumbLength+"px",[`${this.direction.offsetName}`]:this.state.thumbOffset+"px"},t=this.inputFilter.handleEvent,i=window.PointerEvent,s=i?t:void 0,a=i?void 0:t,o=i?void 0:t;return(0,n.jsx)("div",{children:this.state.visible&&!this.props.forceHidden&&(0,n.jsx)("div",Object.assign({className:"scrollbarTrack "+this.props.direction,onClick:this.handleTrackClick,ref:e=>{this.thumbTrack=e}},{children:(0,n.jsx)("div",{className:"scrollbarThumb",style:e,onPointerDown:s,onMouseDown:o,onTouchStart:a})}))})}}const c=(0,l.B)(d)},34611:(e,t,i)=>{"use strict";i.d(t,{H:()=>p});var n=i(74848),s=i(96540),a=i(72909),o=i(32485),r=i.n(o),l=i(43591),d=i(24525),c=i(79698),u=i(79953),h=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let p=class extends s.Component{constructor(e){super(e),this.usePointerEvents=window.PointerEvent,this.scrollerRef=(0,s.createRef)(),this.trackRef=(0,s.createRef)(),this.thumbRef=(0,s.createRef)(),this.focusedSelector=null,this.listening=!1,this.startY=0,this.onThumb=!1,this.scrollTop=0,this.isUnmounting=!1,this.handleResize=()=>{this.isUnmounting||(this.computeStateValues(),this.focusedSelector&&this.scrollToSelector(this.focusedSelector))},this.handleWheelEvent=e=>{this.props.disabled||(this.onThumb=!1,this.focusedSelector=null,this.scrollBy(e.deltaY))},this.handleEvent=e=>{if(this.scrollerRef.current&&!this.props.disabled){this.scrollVelocityPixelsMS=0;if("mousedown"===e.type||"pointerdown"===e.type||"touchstart"===e.type){const t=e.target;this.onThumb=t&&t.classList.contains("scroller-thumb")}this.focusedSelector=null,this.inputFilter.handleEvent(e)}},this.handlePressStart=e=>{this.onThumb?this.startY=this.getThumbTop():this.startY=this.getScrollTop()},this.handlePressMove=e=>{const{trackHeight:t,contentsHeight:i}=this.state;let n;this.onThumb?(n=(this.startY-e.y)/t,this.scrollToPercent(n)):(n=(e.y+this.startY)/i,this.scrollToPercent(n))},this.handleDragStart=()=>{},this.handleDragEnd=(e,t)=>{this.scrollVelocityPixelsMS=e.y/t,this.lastScrollTimeMS=void 0,Math.abs(this.scrollVelocityPixelsMS)<1?this.scrollVelocityPixelsMS=0:this.animateScroll()},this.onTrackClick=e=>{const t=this.trackRef.current;if(e.target!==t||!t)return;const i=this.getThumbHeight(),n=this.getThumbTop(),s=t.getBoundingClientRect().top,a=this.state.trackHeight;let o;o=e.clientY{this.isOverflowing()&&this.scrollerRef.current&&!isNaN(e)&&this.setScrollPosition(Math.max(Math.min(1,e)*this.state.contentsHeight,0))},this.scrollBy=e=>{this.isOverflowing()&&this.scrollerRef.current&&!isNaN(e)&&this.setScrollPosition(Math.max(this.scrollerRef.current.scrollTop+e,0))},this.computeStateValues=()=>{if(this.props.disabled)return;const e=this.scrollerRef.current,t=this.trackRef.current,i=Number(e&&e.clientHeight)||1,n=Number(t&&t.clientHeight)||i,s=Number(this.contents&&this.contents.clientHeight)||1,a=Number(this.contents&&this.contents.offsetTop)||0;this.debouncedSetState({scrollerHeight:i,contentsHeight:s,trackHeight:n,offsetTop:a})},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.setContentsRef=e=>{e?(this.contents=e,this.resizeObserver.observe(this.contents)):this.contents&&this.resizeObserver.unobserve(this.contents)},this.setContainerRef=e=>{e?(this.container=e,this.resizeObserver.observe(e)):this.container&&this.resizeObserver.unobserve(this.container)},this.state={scrollerHeight:1,contentsHeight:1,trackHeight:1,offsetTop:0},this.resizeObserver=new l.A(this.handleResize),this.inputFilter=new c.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd})}componentDidMount(){this.toggleEventHandling(!0),this.computeStateValues()}componentWillUnmount(){this.isUnmounting=!0,this.toggleEventHandling(!1),this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(e,t){this.scrollerRef.current&&e.disabled!==this.props.disabled&&(this.props.disabled?this.toggleEventHandling(!1):this.toggleEventHandling(!0))}resetScrollTop(){this.focusedSelector=null,this.setScrollPosition(0)}getScroller(){return this.scrollerRef.current}getScrollHeight(){return Number(this.contents&&this.contents.clientHeight)||0}scrollToElement(e,t="center",i){const n=this.scrollerRef.current;if(!e||!n)return;if(!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINS))return;if(!this.isOverflowing())return;const{contentsHeight:s,scrollerHeight:a,offsetTop:o}=this.state;let r=e.offsetTop;if(!i){let t=e;for(;t.parentElement&&(t=t.parentElement,r+=t.offsetTop,t.offsetParent!==this.contents););}let l=o+r;"center"===t&&(l+=e.offsetHeight/2-a/2),l=Math.max(Math.min(s,l),0);const d=n.scrollTop,c=l-d;let h=0;const m=e=>{h||(h=e);const t=e-h,i=(0,u.e2)(t,d,c,500);n.scrollTo(0,i),t<500?window.requestAnimationFrame(m):this.setScrollPosition(l)};window.requestAnimationFrame(m)}scrollToSelector(e,t="center",i){const n=this.scrollerRef.current;if(!n)return;const s=n.querySelector(e);s?(this.focusedSelector=e,this.scrollToElement(s,t,i)):this.focusedSelector=null}setScrollPosition(e){const t=this.scrollerRef.current;if(t){const i=t.scrollTop;t.scrollTop=e,this.scrollTop=this.getScrollTop(),this.props.onScrolled&&i!==this.scrollTop&&this.props.onScrolled(this.scrollTop);const n=this.thumbRef.current;n&&(n.style.height=`${this.getThumbHeight()}px`,n.style.top=`${this.getThumbTop()}px`)}}toggleEventHandling(e){const t=this.scrollerRef.current,i=this.handleEvent,n=d.u?{passive:!0}:void 0;!this.listening&&e&&t?(t.addEventListener("wheel",this.handleWheelEvent,n),this.usePointerEvents?(t.addEventListener("pointerdown",i,n),window.addEventListener("pointermove",i,n),window.addEventListener("pointerup",i,n)):(t.addEventListener("touchstart",i,n),t.addEventListener("mousedown",i,n),window.addEventListener("mousemove",i,n),window.addEventListener("mouseleave",i,n),window.addEventListener("mouseup",i,n),window.addEventListener("touchmove",i,n),window.addEventListener("touchend",i,n),window.addEventListener("touchcancel",i,n))):this.listening&&!e&&t&&(t.removeEventListener("wheel",this.handleWheelEvent),this.usePointerEvents?(t.removeEventListener("pointerdown",i),window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",i)):(t.removeEventListener("touchstart",i),t.removeEventListener("mousedown",i),window.removeEventListener("mousemove",i),window.removeEventListener("mouseleave",i),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",i),window.removeEventListener("touchend",i),window.removeEventListener("touchcancel",i)))}animateScroll(){window.requestAnimationFrame((e=>{void 0===this.lastScrollTimeMS&&(this.lastScrollTimeMS=e);let t=e-this.lastScrollTimeMS;if(t>0){this.scrollBy(this.scrollVelocityPixelsMS*t);const e=this.scrollVelocityPixelsMS>0?-1:1;for(;t>0;)this.scrollVelocityPixelsMS+=this.scrollVelocityPixelsMS*this.scrollVelocityPixelsMS*.01*e,t-=1}Math.abs(this.scrollVelocityPixelsMS)>.001&&this.animateScroll()}))}getThumbTop(){const{contentsHeight:e,trackHeight:t}=this.state;return Math.min(this.scrollTop/e*t,t-this.getThumbHeight())}getThumbHeight(){const{scrollerHeight:e,contentsHeight:t,trackHeight:i}=this.state;return e/t*i}getScrollTop(){return this.scrollerRef.current?this.scrollerRef.current.scrollTop:0}isOverflowing(){const{contentsHeight:e,scrollerHeight:t,offsetTop:i}=this.state;return e+i>t}renderTrack(){const e={height:`${this.getThumbHeight()}px`,top:`${this.getThumbTop()}px`};return(0,n.jsx)("div",Object.assign({ref:this.trackRef,className:"scroller-track",onClick:this.onTrackClick},{children:(0,n.jsx)("div",{ref:this.thumbRef,className:"scroller-thumb",style:e,onPointerDown:this.usePointerEvents?this.handleEvent:void 0,onMouseDown:this.usePointerEvents?void 0:this.handleEvent,onTouchStart:this.usePointerEvents?void 0:this.handleEvent})}))}render(){const{children:e,className:t,hideThumb:i,disabled:s}=this.props,a=!s&&this.isOverflowing();return(0,n.jsxs)("div",Object.assign({ref:this.setContainerRef,className:r()("scroller-container",t)},{children:[(0,n.jsx)("div",Object.assign({className:"scroller-scroller",ref:this.scrollerRef},{children:(0,n.jsx)("div",Object.assign({className:"scroller-contents",ref:this.setContentsRef},{children:e}))})),!i&&a&&this.renderTrack()]}))}};p=h([a.A,m("design:paramtypes",[Object])],p)},76481:(e,t,i)=>{"use strict";i.d(t,{L:()=>p});var n=i(74848),s=i(32485),a=i.n(s),o=i(25591),r=i(57682),l=i(96540);function d(e){const{text:t,keyPrefix:i,markers:s}=e,[a,o]=s,r=[];let d=t,c=d.search(`${a}|${o}`),u=d.search(a);for(;c>-1;){const e=c===u,s=d.slice(0,c),h=t.length-d.length,m=`${i},${h}-${h+c}`;e?r.push((0,n.jsx)(l.Fragment,{children:s},m)):r.push((0,n.jsx)("span",Object.assign({"data-blocktype":"marker"},{children:s}),m)),d=d.slice(c+(e?a.length:o.length),d.length),c=d.search(`${a}|${o}`),u=d.search(a)}if(d.length){const e=`${i},${t.length-d.length}-${t.length}`;r.push((0,n.jsx)(l.Fragment,{children:d},e))}return 0===r.length?(0,n.jsx)(n.Fragment,{children:t}):(0,n.jsx)(n.Fragment,{children:r})}function c(e){const{block:t,children:i,onClick:s}=e;return s?(0,n.jsx)("a",Object.assign({className:`link-annotation ${r.H.USER}`,onClick:s,"data-id":t.id||void 0,"data-value":t.value||void 0,"data-blocktype":t.blockType},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType},{children:i}))}function u(e){const{block:t,children:i,onClick:s}=e;return s?(0,n.jsx)("a",Object.assign({className:`link-annotation ${r.H.USER}`,onClick:s,"data-blocktype":t.blockType},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType},{children:i}))}function h(e){const{block:t,children:i,linksActive:s,onClick:a}=e;return a||s?(0,n.jsx)("a",Object.assign({href:`${t.value}`,target:"_blank",className:`link-annotation ${r.H.LINK}`,onClick:a,"data-blocktype":t.blockType,"data-value":t.value},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType,"data-value":t.value},{children:i}))}function m(e){const{block:t,keyPrefix:i,markers:s}=e,{blockType:a,text:r}=t,l=s?(0,n.jsx)(d,{keyPrefix:i,text:r,markers:s}):(0,n.jsx)(n.Fragment,{children:r});return a===o.n.USER?(0,n.jsx)(c,Object.assign({},e,{children:l})):a===o.n.HASH?(0,n.jsx)(u,Object.assign({},e,{children:l})):a===o.n.LINK&&t.value?(0,n.jsx)(h,Object.assign({},e,{children:l})):l}function p(e){const t=e.textParser.parse(e.text),i=a()("text-box-text",e.className);return(0,n.jsx)("div",Object.assign({className:i},{children:t.map(((t,i)=>(0,n.jsx)(m,{keyPrefix:`${t.blockType}${i}`,block:t,linksActive:!!e.linksActive,onClick:e.onClick,markers:e.markers},`${t.blockType}${i}`)))}))}},57682:(e,t,i)=>{"use strict";i.d(t,{H:()=>n,r:()=>o});var n,s=i(25591),a=i(8430);!function(e){e.TEXT="",e.LINK="link-url",e.HASH="link-hashtag",e.USER="link-user"}(n||(n={}));class o{constructor(e){this.serialize=e=>{const t=[],i=[].slice.call(e.childNodes);for(const e of i)switch(e.nodeName){case"#text":t.push(this.serializeText(e));break;case"A":t.push(this.serializeAnchor(e));break;case"P":case"DIV":t.push(this.serializeElement(e,!0));break;case"SPAN":t.push(this.serializeElement(e,!1));break;case"BR":break;default:t.push(this.serialize(e))}return t.join("")},this.deserialize=(e,t,i,n=this.markers)=>{const s=this.parse(e).map((e=>this.createNode(e,t,i)));return n?this.parseMarkers(s,n):s},this.serializeText=e=>{let t=this.sanitizeText(e.textContent||"");if(this.links){const e=new RegExp(/https?:\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?/gi),i=document.createElement("a");t=t.replace(e,(e=>(i.href=e,`[${e}](${i.href})`))),i.remove()}return this.hashtags&&(t=t.replace(/(#\w*)/,(e=>`[${e}]`))),t.replace(/\<\s*br\s*\/?>/gi,"\n")},this.serializeAnchor=e=>{const t=e.dataset.blocktype,i=this.sanitizeText(e.innerText||e.textContent||"");let n=i;switch(t){case s.n.HASH:n=`[${i}]`;break;case s.n.USER:if(this.users){let t=e.dataset.id||"",i=e.dataset.value||"";if(!t&&!i&&(i="@"===n[0]?n.substr(1):n,i)){const e=this.users.getUserInfoByEmail(i);e&&(t=e.id)}(t||this.validateEmail(i))&&(n=`[@${t}](${i})`)}break;case s.n.LINK:const t=e.dataset.value||e.href;t&&(n=`[${i}](${t})`);break;default:e.href&&(n=`[${i}](${e.href})`)}return n},this.serializeElement=(e,t)=>{let i=t?"\n":" ";return e.childNodes.length>0&&(i+=this.serialize(e)),i},this.validateEmail=(()=>{const e=/\S+@\S+\.\S+/,t=document.createElement("input");return t.type="email",t.required=!0,i=>(t.value=i,"function"==typeof t.checkValidity?t.checkValidity():e.test(i))})();const{links:t,hashtags:i,users:n,markers:a}=e;this.links=t||!1,this.hashtags=i||!1,this.users=n,this.markers=a}parseMarkers(e,t){const[i,n]=t;let s=!1;const a=new RegExp(i+"|"+n);for(let t=0;t{if(""!==n){let a;if(s){const e=document.createElement("span");e.setAttribute("data-blocktype","marker"),a=e,a.textContent=n}else a=document.createTextNode(n);r?e.splice(t++,0,a):i.appendChild(a)}a0===t?e:"["+e));let n=0;for(;ne.text)).join("")}searchMarkdown(e,t){let i=-1,n=0,s=0;const a=this.parse(e).map((e=>{let a;return this.matchTextBlock(e,t)?(s++,-1===i&&(i=n),a=e.markdown):a=e.text,n+=e.text.length,a}));return-1===i?null:{markdown:a.join(""),matchIndex:i,textLength:n,numMatches:s}}getUserMentions(e){return this.parse(e).filter((e=>e.blockType===s.n.USER&&e.value)).map((e=>e.value||""))}matchTextBlock(e,t){if(e.blockType===t.blockType)if(e.blockType===s.n.USER){if(e.id===t.id)return!0;if(e.value===t.value)return!0}else if(e.blockType===s.n.HASH)return e.text===t.text;return!1}parseIntoBlocks(e,t){if(this.users){const i=this.getUserBlock(e);if(i)return t.push(i),e.slice(i.markdown.length)}if(this.links){const i=this.getLinkBlock(e);if(i&&i.value&&!/javascript:/i.test(i.value))return t.push(i),e.slice(i.markdown.length)}if(this.hashtags){const i=this.getHashBlock(e);if(i)return t.push(i),e.slice(i.markdown.length)}const i=this.getTextBlock(e);return i&&t.push(i),null}getTextBlock(e){return 0===e.length?null:{blockType:s.n.TEXT,text:e,markdown:e}}getHashBlock(e){const t=e.match(o.hashRegex);return!t||t.length<2?null:{blockType:s.n.HASH,markdown:t[0],text:t[1]}}getUserBlock(e){if(!this.users)return null;const t=e.match(o.userRegex);if(!t||t.length<3)return null;let i=t[1].substr(1),n=t[2];const a=n?this.users.getUserInfoByEmail(n):this.users.getUserInfoById(i),r=a?a.name:"";return i=a?a.id:i,n=a?a.email:n,{blockType:s.n.USER,markdown:t[0],id:i,value:n,text:`@${r||n}`}}getLinkBlock(e){const t=e.match(o.linkRegEx);if(!t)return null;const i=t[2];let n=1,a=0;for(;a{"use strict";i.d(t,{IU:()=>s,JO:()=>c,K$:()=>a,Zn:()=>r,_2:()=>o,_8:()=>n,e0:()=>d,on:()=>l,p8:()=>u});const n=767,s=576,a=992,o=375,r=55,l=70,d=500,c=750,u=3},45610:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(79953);class s{constructor(e){this.isAnimating=!0,this.duration=e.duration,this.startValue=e.startValue,this.changeValue=e.endValue-this.startValue,this.easingFunction=e.easingFunction||n.dV}getUpdatedValue(){this.startTime||(this.startTime=Date.now());const e=Date.now()-this.startTime;return e>this.duration&&(this.isAnimating=!1),this.easingFunction(Math.min(e,this.duration),this.startValue,this.changeValue,this.duration)}}},41204:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});const n=(e,t)=>{for(const i in t)if(e[i]!==t[i])return!0;return!1}},64784:(e,t,i)=>{"use strict";i.d(t,{J:()=>s});var n=i(4913);function s(e){var t,i;return(null===(t=e.market.tryGetData(n.G))||void 0===t?void 0:t.size)||(null===(i=e.mainDiv)||void 0===i?void 0:i.getBoundingClientRect())||{width:window.innerWidth,height:window.innerHeight}}},79698:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(14054),s=i(87705);class a{constructor(e){this.couldBeDrag=!1,this.isDragging=!1,this.shouldHandleEvents=!0,this.handleEvent=e=>{if(this.shouldHandleEvents)switch(e.stopPropagation(),e.type){case"mousedown":case"touchstart":case"pointerdown":this.onPressStart(e);break;case"mousemove":case"pointermove":case"touchmove":this.onPressMove(e);break;case"mouseup":case"pointerup":case"mouseleave":case"touchend":case"touchcancel":case"pointercancel":case"pointerleave":this.onPressEnd(e)}},this.callbacks=e}setEnabled(e){this.shouldHandleEvents=e,this.couldBeDrag=this.couldBeDrag&&e}getPosition(e){return(0,n.kH)(e)?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}onPressStart(e){this.couldBeDrag=!0,this.dragEvents=[],this.dragStart=this.getPosition(e),this.callbacks.handlePressStart&&this.callbacks.handlePressStart(this.getPosition(e))}onPressMove(e){if(!this.couldBeDrag)return;const t=this.getPosition(e);this.addDragEvent(t),this.isDragging||Math.sqrt(Math.pow(t.x-this.dragStart.x,2)+Math.pow(t.y-this.dragStart.y,2))>s.b7&&(this.isDragging=!0,this.callbacks.handleDragStart&&this.callbacks.handleDragStart()),this.callbacks.handlePressMove&&this.callbacks.handlePressMove({x:this.dragStart.x-t.x,y:this.dragStart.y-t.y})}onPressEnd(e){if(this.couldBeDrag){if(this.couldBeDrag=!1,this.isDragging){if(!this.dragEvents||!this.dragEvents[0])return;const e=this.dragEvents[0],t=this.dragEvents[this.dragEvents.length-1];if(this.callbacks.handleDragEnd){const i={x:0,y:0};Date.now()-t.timestamp10&&this.dragEvents.shift()}}a.dragMoveTimeout=100},43773:(e,t,i)=>{"use strict";i.d(t,{c:()=>n});const n=({width:e,height:t})=>e<487||t<487},2785:(e,t,i)=>{"use strict";i.d(t,{L:()=>s,q:()=>a});var n=i(42399);class s extends n.T{constructor(e){super(),this.nativeEvent=e,this.type="hover"}}class a extends n.T{constructor(e){super(),this.nativeEvent=e,this.type="unhover"}}},42399:(e,t,i)=>{"use strict";i.d(t,{T:()=>n});class n{constructor(){this.eventType="input",this._propagationStopped=!1,this._defaultPrevented=!1}stopPropagation(){this._propagationStopped=!0}get propagationStopped(){return this._propagationStopped}preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}}},42311:(e,t,i)=>{"use strict";i.d(t,{Ds:()=>s,rX:()=>o,wR:()=>r});var n=i(13686);class s extends n.E{constructor(e,t){super(),this.position=e,this.buttons=t}}class a extends n.E{constructor(e,t){super(),this.position=e,this.button=t}}class o extends a{}class r extends a{}},13686:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(42399);class s extends n.T{}},78652:(e,t,i)=>{"use strict";var n,s;i.d(t,{m:()=>s,o:()=>n}),function(e){e.Desktop="desktop",e.Mobile="mobile",e.VrOrientOnly="xr.orientonly",e.VrWithController="xr.controller",e.VrWithTrackedController="xr.trackedcontroller"}(n||(n={})),function(e){e.None="interaction.none",e.Direct="interaction.direct",e.Key="interaction.key",e.Gui="interaction.gui",e.Mouse="interaction.mouse",e.Touch="interaction.touch",e.Pen="interaction.pen",e.XRController="interaction.xr.controller",e.XRGaze="interaction.xr.gaze",e.XRScreen="interaction.xr.screen"}(s||(s={}))},81773:(e,t,i)=>{"use strict";i.d(t,{B:()=>r});var n=i(61589),s=i(54998),a=i(60282);const o=new(i(35652).Ay)("label-data");class r extends n.B{constructor(e){super(),this.name="label",this.has=e=>this.map.has(e),this.getLabel=e=>this.map.get(e),this.map=(0,s.y)(e||{})}getCount(){return this.map.length}add(e){let t=e.sid;return this.map.has(t)&&o.warn("Label already tracked:",{sid:t,label:e,existing:this.getLabel(t)}),t=t||this.generateSid(),e.sid=t,e.commit(),this.map.set(e.sid,e),t}generateSid(){let e="";for(;!e||this.map.has(e);)e=(0,a.D)(11);return e}remove(e){return!!this.map.has(e)&&(this.map.delete(e),!0)}clear(){this.map.clear()}replace(e){this.map.replace(e)}getCollection(){return this.map}iterate(e){for(const t of this.map.keys)e(this.map.get(t),t)}isEqual(e){if(this.map.length!==e.map.length)return!1;for(const t of this.map){const i=e.map.get(t.sid);if(!i||!r.labelsAreEqual(t,i))return!1}return!0}static labelsAreEqual(e,t){return e.floorId===t.floorId&&e.roomId===t.roomId&&e.position.x===t.position.x&&e.position.y===t.position.y&&e.position.z===t.position.z&&e.sid===t.sid&&e.text===t.text&&e.floorId===t.floorId&&e.roomId===t.roomId&&e.visible===t.visible}getLabelsForRoom(e){const t=[];return this.iterate((i=>{i.roomId===e&&t.push(i)})),t}}},21296:(e,t,i)=>{"use strict";i.d(t,{LZ:()=>s,RP:()=>n});const n="features/labels",s="features/3d_labels_enabled"},35031:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});var n=i(61693);class s extends n.v{constructor(e={}){super(),this.transactions=new Set,Object.assign(this,e)}onApply(e){return this.transactions.add(e),{delete:()=>{this.transactions.delete(e)}}}async applyTransactions(){for(const e of this.transactions)await e()}}},61334:(e,t,i)=>{"use strict";i.d(t,{P:()=>S});var n=i(61589),s=i(35652),a=i(45021),o=i(61373),r=i(24563),l=i(82856),d=i(8209),c=i(35031),u=i(33848),h=i(2789),m=i(1803),p=i(60282);const E=new s.Ay("layers-data");class S extends n.B{constructor(e,t){super(),this.commonInMemoryLayers=new a.X,this.inMemoryLayers=new a.X,this.layerObservers=new Set,this.layerVisibilityCache=new Map,this.layerToggledCache=new Map,this.currentViewId="",this.initialViewId="",this.layersEnabled=!1,this.initialViewId=t.id,this.viewsObservable=(0,a.Z)([t]),this.mdsContext=e}setCurrentView(e){if(e===this.currentViewId)return;const t=this.getView(e);if(!t)throw new o.V("Model View not found");this.aggregateLayerObserver&&this.aggregateLayerObserver.cancel(),E.debug(`Active view set to ${e} (${t.viewType})`),this.currentViewId=e,this.commit();const i=()=>{this.refreshLayerCaches(),this.layerObservers.forEach((e=>e()))};this.aggregateLayerObserver=new h.P(this.getCurrentView().layers.onChanged(i),this.inMemoryLayers.onChanged(i)),i()}getCurrentView(){const e=this.getView(this.currentViewId);if(!e)throw new o.V("Missing current model view");return e}getInitialView(){const e=this.getView(this.initialViewId);if(!e)throw new o.V("Missing initial model view");return e}addView(e){this.viewsObservable.push(e)}canDeleteView(e){const t=this.getView(e);return!!t&&((0,u.xF)(t)||(0,u.V6)(t))}canDisableView(e){const t=this.getView(e);return!!t&&((0,u.xF)(t)||(0,u.V6)(t)||(0,u.AF)(t))}canDuplicateView(e){const t=this.getView(e);return!!t&&((0,u.xF)(t)||(0,u.XF)(t))}canBatchDeleteInActiveView(){return this.isModelLayered()||!(0,u.XF)(this.getCurrentView())}validateViewName(e){return e.length>0&&e.length<=d.cp}setViews(e){this.viewsObservable.replace(e)}getView(e){const t=this.viewsObservable.find((t=>t.id===e));if(!t)throw new o.V(`Model View not found: ${e}`);return t}deleteView(e){const t=this.viewsObservable.findIndex((t=>t.id===e));-1!==t&&this.viewsObservable.remove(t)}hasUserViews(){return!!this.viewsObservable.find((e=>(0,u.xF)(e)))}getOrderedModelViews({includeDefurnish:e=!1,includeDisabled:t=!1,includeInsights:i=!1}={}){const n=this.viewsObservable.values().slice().filter((n=>(t||n.enabled)&&((0,u.xF)(n)||i&&(0,u.V6)(n)||e&&(0,u.AF)(n)))).sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}))),s=this.getBaseModelView();return s&&n.unshift(s),n}onModelViewsChanged(e){return this.viewsObservable.onChanged(e)}onCurrentLayersChanged(e){return(0,m.Sh)((()=>this.layerObservers.add(e)),(()=>this.layerObservers.delete(e)))}currentLayers(){return this.getCurrentView().layers.values().concat(this.commonInMemoryLayers.values())}viewLayers(){const e=this.currentLayers();return this.filterUserFacingLayers(e)}filterUserFacingLayers(e){const t=[l.ku.VIEW_DATA_LAYER,l.ku.USER_LAYER,l.ku.IN_MEMORY,l.ku.COMMON_USER_LAYER,l.ku.OTHER];return!!e.find((e=>e.layerType===l.ku.VIEW_DATA_LAYER))||t.push(l.ku.BASE_LAYER),e.filter((e=>t.includes(e.layerType)))}getLayer(e){return this.currentLayers().find((t=>t.id===e))}findLayer(e){return[...this.getCurrentView().layers.values(),...this.inMemoryLayers.values()].find((t=>t.id===e))}getActiveLayer(){return this.getLayer(this.activeLayerId)}getBaseLayerId(){const e=this.currentLayers().find((e=>e.layerType===l.ku.BASE_LAYER));return(null==e?void 0:e.id)||r.qw}getViewLayerId(){const e=this.currentLayers().find((e=>e.layerType===l.ku.VIEW_DATA_LAYER));return null==e?void 0:e.id}getProxyLayerId(){const e=this.currentLayers().find((e=>e.layerType===l.ku.PROXY_LAYER));return null==e?void 0:e.id}getViewLayerIdForBaseView(){const e=this.getBaseModelView();let t;return e&&(t=e.layers.find((e=>e.layerType===l.ku.VIEW_DATA_LAYER))),null==t?void 0:t.id}getCurrentUserLayers(){return this.currentLayers().filter((e=>e.visible&&[l.ku.USER_LAYER,l.ku.COMMON_USER_LAYER].includes(e.layerType)))}setActiveCurrentLayer(e){if(e===this.activeLayerId)return;if(!this.currentLayers().find((t=>t.id===e)))throw new Error("Invalid layer id!");this.activeLayerId=e,this.commit()}layerVisible(e){return!e||!this.layersEnabled||!!this.layerVisibilityCache.get(e)}layerToggled(e){return!e||!this.layersEnabled||!!this.layerVisible(e)&&!!this.layerToggledCache.get(e)}toggleLayer(e,t){const i=this.getLayer(e);if(!i)throw new Error("Attempt to toggle unknown layer!");this.layerToggledCache.set(e,t),i.toggled=t,i.commit()}isInMemoryLayer(e){return this.layersEnabled&&(!e||!!this.inMemoryLayers.find((t=>t.id===e)))}addInMemoryLayer(e){var t,i;let n=(0,p.D)(11);for(;this.inMemoryLayers.find((e=>e.id===n));)n=(0,p.D)(11);const s=new c.q(Object.assign(Object.assign({},e),{id:n,layerType:l.ku.IN_MEMORY,toggled:null!==(t=e.toggled)&&void 0!==t&&t,visible:null!==(i=e.visible)&&void 0!==i&&i}));return e.common&&this.commonInMemoryLayers.push(s),this.inMemoryLayers.push(s),s}removeInMemoryLayer(e){const t=this.inMemoryLayers.findIndex((t=>t.id===e));if(-1===t)throw new Error("In memory layer not found!");this.inMemoryLayers.splice(t,1);const i=this.inMemoryLayers.findIndex((t=>t.id===e));t>-1&&this.commonInMemoryLayers.splice(i,1)}validateLayerName(e){return e.length>0&&e.length<=d.s5}replaceBackendLayers(e,t){for(const t of e.keys)this.isInMemoryLayer(e.get(t).layerId)||e.delete(t);for(const i of Object.keys(t))e.set(i,t[i])}setBaseLayerOnly(){this.commonInMemoryLayers.push(new c.q({id:r.qw,layerType:l.ku.BASE_LAYER}))}getWorkshopSessionView(){return this.viewsObservable.find((e=>e.viewType===l.jK.SESSION))}isWorkshopSessionView(){var e;return(null===(e=this.getWorkshopSessionView())||void 0===e?void 0:e.id)===this.currentViewId}isWorkshopSessionViewEnabled(){var e;return(null===(e=this.getWorkshopSessionView())||void 0===e?void 0:e.enabled)||!1}getBaseModelView(){return this.viewsObservable.find((e=>(0,u.XF)(e)))}getBaseModelId(){var e;return(null===(e=this.getBaseModelView())||void 0===e?void 0:e.id)||this.initialViewId}isModelLayered(){const e=this.getBaseModelView();return!!e&&(0,u.r0)(e)}isCurrentViewLayered(){const e=this.getCurrentView(),{viewType:t}=e;return t===l.jK.LAYERED_BASE||t===l.jK.USER||t===l.jK.INSIGHTS}getNonworkshopViewId(){const e=this.getCurrentView();return e.viewType!==l.jK.SESSION?e.id:this.getBaseModelId()}getWorkshopOrBaseId(){const e=this.getCurrentView();return e.viewType===l.jK.SESSION?e.id:this.getBaseModelId()}getDefurnishOrBaseId(){const e=this.getCurrentView();return e.viewType===l.jK.DEFURNISH?e.id:this.getBaseModelId()}getNotesLayerId(e){if(e&&this.layersEnabled)return this.activeLayerId;const t=this.getViewLayerId();if(t)return t;const i=this.getCurrentView();if((0,u.XF)(i))return this.getBaseLayerId();if(this.layersEnabled)throw new Error("No View Layer in User View");return this.activeLayerId}getOrderedListsLayerId(){if(!this.layersEnabled)return;const e=this.getViewLayerId();if(e)return e;const t=this.getCurrentView();if((0,u.XF)(t))return this.getBaseLayerId();throw new Error("No View Layer in User View")}refreshLayerCaches(){this.layerToggledCache.clear(),this.layerVisibilityCache.clear();const e=this.currentLayers();for(const t of e)this.layerToggledCache.set(t.id,t.toggled),this.layerVisibilityCache.set(t.id,t.visible)}}},9826:(e,t,i)=>{"use strict";i.d(t,{j:()=>a});var n=i(45021),s=i(61693);class a extends s.v{constructor(e={}){super(),this.name="",this.viewType=null,this.rawViewType="",this.enabled=!0,this.layers=new n.X,Object.assign(this,e)}}},23730:(e,t,i)=>{"use strict";i.d(t,{B7:()=>_,BC:()=>R,C6:()=>L,FX:()=>l,HA:()=>D,KQ:()=>r,Py:()=>c,SG:()=>I,SL:()=>E,X_:()=>k,Xj:()=>S,Zl:()=>h,cf:()=>m,ey:()=>M,ff:()=>v,gq:()=>O,i:()=>y,iM:()=>p,ie:()=>u,jC:()=>g,k:()=>N,nl:()=>b,pB:()=>T,uo:()=>d,wd:()=>A,xI:()=>o});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={viewId:e}}}class a extends n.u{constructor(e,t){super(),this.payload={viewId:e,name:t}}}class o extends n.u{}o.id="MODEL_TO_LAYERED_COMMAND";class r extends n.u{}r.id="CHECK_FOR_PROXY_LAYER_COMMAND";class l extends n.u{}l.id="DISABLE_WORKSHOP_SESSION_COMMAND";class d extends s{}d.id="MODEL_VIEW_SET_COMMAND";class c extends n.u{constructor(e){super(),this.payload={name:e}}}c.id="USER_VIEW_ADD_COMMAND";class u extends s{}u.id="VIEW_DELETE_COMMAND";class h extends a{}h.id="VIEW_RENAME_COMMAND";class m extends n.u{constructor(e,t){super(),this.payload={viewId:e,enabled:t}}}m.id="VIEW_TOGGLE_ENABLE_COMMAND";class p extends a{}p.id="VIEW_DUPLICATE_COMMAND";class E extends n.u{constructor(e){super(),this.payload={confirmViewChange:e}}}E.id="REGISTER_CONFIRM_VIEW_CHANGE";class S extends n.u{constructor(e){super(),this.payload=e}}S.id="REGISTER_DUPLICATE_VIEW_HELPER_COMMAND";class O extends n.u{constructor(e){super(),this.payload=e}}O.id="UNREGISTER_DUPLICATE_VIEW_HELPER_COMMAND";class g extends n.u{constructor(e,t){super(),this.payload={layerId:e,items:t}}}g.id="LAYER_ITEMS_COPY_COMMAND";class _ extends n.u{constructor(e,t){super(),this.payload={name:e,items:t}}}_.id="LAYER_ITEMS_COPY_NEW_COMMAND";class T extends n.u{constructor(e,t){super(),this.payload={layerId:e,items:t}}}T.id="LAYER_ITEMS_MOVE_COMMAND";class A extends n.u{constructor(e){super(),this.payload={items:e}}}A.id="VIEW_ITEMS_DELETE_COMMAND";class v extends n.u{constructor(e,t){super(),this.payload={label:e,common:t}}}v.id="ADD_LAYER_COMMAND";class N extends n.u{constructor(e){super(),this.payload={layerProps:e}}}N.id="ADD_INMEMORY_LAYER_COMMAND";class L extends n.u{constructor(e,t){super(),this.payload={layerId:e,label:t}}}L.id="DATA_LAYER_DUPLICATE_COMMAND";class I extends n.u{constructor(e){super(),this.payload={layerId:e}}}I.id="DELETE_LAYER_COMMAND";class f extends n.u{constructor(e){super(),this.payload={layerId:e}}}f.id="REMOVE_LAYER_COMMAND";class b extends n.u{constructor(e,t){super(),this.payload={layerId:e,label:t}}}b.id="RENAME_LAYER_COMMAND";class R extends n.u{constructor(e,t){super(),this.payload={layerId:e,visible:t}}}R.id="LAYER_TOGGLE_VISIBLE_COMMAND";class y extends n.u{constructor(e,t){super(),this.payload={layerId:e,common:t}}}y.id="LAYER_TOGGLE_COMMON_COMMAND";class M extends n.u{constructor(e,t){super(),this.payload={layerId:e,position:t}}}M.id="SET_LAYER_POSITION_COMMAND";class D extends n.u{constructor(e,t){super(),this.payload={layerId:e,selected:t}}}D.id="LAYER_SELECT_COMMAND";class k extends n.u{constructor(e,t){super(),this.payload={layerId:e,on:t}}}k.id="LAYER_TOGGLE_COMMAND"},82856:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{Hj:()=>a,jK:()=>n,ku:()=>s}),function(e){e.BASE="base",e.LAYERED_BASE="layered-base",e.INSIGHTS="insights",e.TRUEPLAN="trueplan",e.SESSION="session",e.USER="user",e.DEFURNISH="defurnish",e.OTHER="other"}(n||(n={})),function(e){e.BASE_LAYER="matterport.base",e.VIEW_DATA_LAYER="matterport.user.data",e.USER_LAYER="matterport.user.data.ext",e.IN_MEMORY="matterport.in-memory",e.WORKSHOP="matterport.workshop.jsonstore",e.COMMON_USER_LAYER="matterport.user.data.common",e.OVERLAY_ASSETS_LAYER="matterport.overlay.assets",e.PROXY_LAYER="matterport.proxy.common",e.OTHER="other layer type"}(s||(s={})),function(e){e.TYPE="type",e.FLOOR="floor",e.ROOM="room",e.LAYER="layer",e.DATE="date"}(a||(a={}))},33324:(e,t,i)=>{"use strict";i.d(t,{AH:()=>a,H6:()=>r,T5:()=>d,Tl:()=>h,qD:()=>o,rX:()=>s});var n=i(95149);const s="model-views-feature",a="views",o="data-layers-feature",r="layers",l="spaces.webgl.layers.mode";var d;!function(e){e.DISABLED="disabled",e.VIEWS_OPTIONAL_OPT_IN="user_views",e.VIEWS_ENABLED="views_enabled",e.VIEWS_AND_LAYERS="views_layers",e.LAYERS_ONLY="layers"}(d||(d={}));const c="layers";var u;function h(e){const t=function(){switch((0,n.EN)()[c]){case u.DISABLED:return d.DISABLED;case u.VIEWS_ENABLED:return d.VIEWS_ENABLED;case u.VIEWS_AND_LAYERS:return d.VIEWS_AND_LAYERS;case u.LAYERS_ONLY:return d.LAYERS_ONLY}}();if(void 0!==t)return t;const i=e.getPolicy(l);return i&&i.value?i.value===d.VIEWS_OPTIONAL_OPT_IN?d.VIEWS_AND_LAYERS:i.value:d.DISABLED}!function(e){e.DISABLED="0",e.VIEWS_ENABLED="2",e.VIEWS_AND_LAYERS="3",e.LAYERS_ONLY="4"}(u||(u={}))},88874:(e,t,i)=>{"use strict";i.d(t,{$:()=>r});var n=i(74848),s=i(10718),a=i(44314),o=i(52385);function r({layer:e,active:t,onClick:i}){const{id:r}=e,l=(0,s.G)(),d=(0,a._)(r,l),c=t?"checkmark":void 0;return(0,n.jsx)(o.$n,{className:"layer-item",label:d,icon:c,active:t,variant:o.Ak.TERTIARY,size:o.Mp.SMALL,onClick:()=>{i(r)}})}},73715:(e,t,i)=>{"use strict";i.d(t,{z0:()=>r});var n=i(43802),s=i(96540),a=i(31200),o=i(61334);(0,n.r)(o.P,"activeLayerId","");function r(){const e=(0,a._)(),[t,i]=(0,s.useState)(null==e?void 0:e.getActiveLayer());return(0,s.useEffect)((()=>{if(!e)return()=>{};function t(){i(null==e?void 0:e.getActiveLayer())}const n=e.onPropertyChanged("activeLayerId",t);return t(),()=>n.cancel()}),[e]),t}},10718:(e,t,i)=>{"use strict";i.d(t,{G:()=>a});var n=i(96540),s=i(31200);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)((null==e?void 0:e.getCurrentView())||void 0);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){i((null==e?void 0:e.getCurrentView())||void 0)}const n=e.onPropertyChanged("currentViewId",t);return t(),()=>n.cancel()}),[e]),t}(0,i(29633).c)("activeModelView",a)},87039:(e,t,i)=>{"use strict";i.d(t,{j:()=>a});var n=i(96540),s=i(31200);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(null==e?void 0:e.getBaseModelId());return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){i(null==e?void 0:e.getBaseModelId())}const n=e.onModelViewsChanged(t);return t(),()=>null==n?void 0:n.cancel()}),[e]),t}},96629:(e,t,i)=>{"use strict";i.d(t,{t:()=>a});var n=i(43802),s=i(61334);const a=(0,n.r)(s.P,"currentViewId","")},44314:(e,t,i)=>{"use strict";i.d(t,{_:()=>h});var n=i(96540),s=i(99366),a=i(38216),o=i(95226),r=i(82856),l=i(31200),d=i(8209);const{LAYERS:c}=s.A.WORKSHOP;function u(e,t,i,n){const s=i?null==e?void 0:e.getLayer(i):null;let a=null==s?void 0:s.name;if(!a){a=t.t(c.UNTITLED_LAYER_PLACEHOLDER);const e=null==s?void 0:s.layerType;(null==n?void 0:n.viewType)===r.jK.TRUEPLAN&&e===r.ku.OTHER?a=t.t(c.TRUEPLAN_LAYER_LABEL):e!==r.ku.BASE_LAYER&&e!==r.ku.VIEW_DATA_LAYER||(a=t.t(c.UNLAYERED_LAYER_LABEL))}return(0,o.W5)(a,d.s5)}function h(e,t){const i=(0,l._)(),s=(0,a.Y)(),[o,r]=(0,n.useState)(u(i,s,e,t));return(0,n.useEffect)((()=>{if(!i)return()=>{};function n(){r(u(i,s,e,t))}const a=i.onCurrentLayersChanged(n);return n(),()=>a.cancel()}),[i,e,t,s]),o}},31200:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var n=i(47952),s=i(61334);const a=(0,n.v)(s.P)},33887:(e,t,i)=>{"use strict";i.d(t,{x:()=>h});var n=i(96540),s=i(99366),a=i(38216),o=i(95226),r=i(82856),l=i(31200),d=i(8209);const{LAYERS:c}=s.A.WORKSHOP;function u(e,t,i){let n;try{n=i?null==e?void 0:e.getView(i):null}catch(e){}let s=null==n?void 0:n.name;if(!s)switch(null==n?void 0:n.viewType){case r.jK.INSIGHTS:s=t.t(c.DEFAULT_INSIGHTS_VIEW_NAME);break;case r.jK.TRUEPLAN:s=t.t(c.DEFAULT_TRUEPLAN_VIEW_NAME);break;case r.jK.DEFURNISH:s=t.t(c.DEFAULT_DEFURNISH_VIEW_NAME);break;default:s=t.t(c.DEFAULT_VIEW_NAME)}return(0,o.W5)(s,d.cp)}function h(e){const t=(0,l._)(),i=(0,a.Y)(),[s,o]=(0,n.useState)(u(t,i,e));return(0,n.useEffect)((()=>{if(!t)return()=>{};function n(){o(u(t,i,e))}const s=t.onModelViewsChanged(n);return n(),()=>s.cancel()}),[t,e,i]),s}},52973:(e,t,i)=>{"use strict";i.d(t,{z:()=>o});var n=i(96540),s=i(31200);function a(e){if(!e)return[];const t=e.viewLayers();return t.length>1&&t.unshift(t.splice(t.length-1,1)[0]),t}function o(){const e=(0,s._)(),[t,i]=(0,n.useState)(a(e));return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){i(a(e))}const n=e.onCurrentLayersChanged(t);return t(),()=>n.cancel()}),[e]),t}},30175:(e,t,i)=>{"use strict";i.d(t,{h:()=>c});var n=i(96540),s=i(16603),a=i(81182),o=i(66931),r=i(31200),l=i(5156),d=i(17139);function c({includeDefurnish:e=!1,includeDisabled:t=!1}={}){const i=(0,r._)(),{editMode:c}=(0,n.useContext)(d.B),u=(0,s.i)(o._H,!1),h=!!(0,a.b)(l.bx,!1),[m,p]=(0,n.useState)((null==i?void 0:i.getOrderedModelViews({includeDefurnish:e||h,includeInsights:u,includeDisabled:t}))||[]);return(0,n.useEffect)((()=>{if(!i)return()=>{};function n(){p((null==i?void 0:i.getOrderedModelViews({includeDefurnish:e||h,includeInsights:u,includeDisabled:t||c}))||[])}const s=i.onModelViewsChanged(n),a=i.onPropertyChanged("currentViewId",n);return n(),()=>{null==s||s.cancel(),null==a||a.cancel()}}),[c,e,t,h,u,i]),m}},68340:(e,t,i)=>{"use strict";i.d(t,{NX:()=>a,V7:()=>o,tj:()=>s});var n=i(14754);class s extends n.QB{}class a extends n.QB{constructor(e){super(),this.items=e}}class o extends n.QB{constructor(e){super(),this.layerId=e}}},32538:(e,t,i)=>{"use strict";i.d(t,{F:()=>d});var n=i(88488),s=i(35652),a=i(82856),o=i(35031),r=i(34622);const l=new s.Ay("mds-modelview-deserializer");class d{deserialize(e){return e&&e.layer.id&&e.layer.type?new o.q({id:e.layer.id,name:e.layer.label||"",visible:e.visible,position:e.position,toggled:!0,layerType:this.getLayerType(e.layer.type),created:(0,n.X)(e.layer.created),modified:(0,n.X)(e.layer.modified)}):(l.debug("Invalid layer data from MDS"),null)}getLayerType(e){return(0,r.U)(a.ku,e)?e:a.ku.OTHER}}},50987:(e,t,i)=>{"use strict";i.d(t,{K:()=>d,o:()=>c});var n=i(35652),s=i(88488),a=i(9826),o=i(82856),r=i(32538);const l=new n.Ay("mds-modelview-deserializer");class d{constructor(){this.deserializer=new r.F}deserialize(e){if(!e||!e.id||!e.type)return l.debug("Deserialized invalid ModelView data from MDS",e),null;const t=new a.j({viewType:this.getModelViewType(e),rawViewType:e.type,name:e.name||"",enabled:!!e.enabled,created:(0,s.X)(e.created),modified:(0,s.X)(e.modified),id:e.id});return this.getDataLayers(e).forEach((e=>t.layers.push(e))),t}getModelViewType(e){const t={"matterport.workshop.session":o.jK.SESSION,"matterport.model.default":o.jK.BASE,"matterport.model.layered":o.jK.LAYERED_BASE,"matterport.user.insights":o.jK.INSIGHTS,"matterport.user.view":o.jK.USER,"trueplan.session":o.jK.TRUEPLAN,"matterport.model.defurnished":o.jK.DEFURNISH};return e.type in t?t[e.type]:o.jK.OTHER}getDataLayers(e){const t=[];for(const i of e.layers||[]){const e=this.deserializer.deserialize(i);e&&t.push(e)}return t}}const c=function(){return new d}},8209:(e,t,i)=>{"use strict";i.d(t,{GB:()=>a,co:()=>o,cp:()=>n,s5:()=>s});const n=50,s=50,a="views",o="0"},33848:(e,t,i)=>{"use strict";i.d(t,{AF:()=>l,Gk:()=>d,V6:()=>r,XF:()=>a,r0:()=>s,xF:()=>o});var n=i(82856);function s(e){return e.viewType===n.jK.LAYERED_BASE}function a(e){return s(e)||e.viewType===n.jK.BASE}function o(e){return e.viewType===n.jK.USER}function r(e){return e.viewType===n.jK.INSIGHTS}function l(e){return e.viewType===n.jK.DEFURNISH}function d(e){return e.layers.some((e=>e.layerType===n.ku.OVERLAY_ASSETS_LAYER))}},99366:(e,t,i)=>{"use strict";var n;i.d(t,{A:()=>s}),function(e){e.LOADING="LOADING",e.PRESENTED_BY_CAPS="PRESENTED_BY_CAPS",e.EXPLORE_3D_SPACE="EXPLORE_3D_SPACE",e.POWERED_BY="POWERED_BY",e.SC_LOCKOUT_MESSAGE="SC_LOCKOUT_MESSAGE",e.SC_LOCKOUT_TITLE="SC_LOCKOUT_TITLE",e.SC_PASSWORD_TITLE="SC_PASSWORD_TITLE",e.SC_PASSWORD_INVALID="SC_PASSWORD_INVALID",e.SC_PASSWORD_PLACEHOLDER="SC_PASSWORD_PLACEHOLDER",e.SC_PASSWORD_SUBMIT="SC_PASSWORD_SUBMIT",e.VIEW_INSIDE="VIEW_INSIDE",e.VIEW_INSIDE_MESH="VIEW_INSIDE_MESH",e.VIEW_DOLLHOUSE="VIEW_DOLLHOUSE",e.VIEW_FLOORPLAN="VIEW_FLOORPLAN",e.VIEW_FULLSCREEN="VIEW_FULLSCREEN",e.EXIT_FULLSCREEN="EXIT_FULLSCREEN",e.OPEN_HIGHLIGHTS="OPEN_HIGHLIGHTS",e.CLOSE_HIGHLIGHTS="CLOSE_HIGHLIGHTS",e.PAUSE="PAUSE",e.SOCIAL_SHARING="SOCIAL_SHARING",e.VIEW_IN_VR="VIEW_IN_VR",e.HOTKEY_VIEW_INSIDE="HOTKEY_VIEW_INSIDE",e.HOTKEY_VIEW_DOLLHOUSE="HOTKEY_VIEW_DOLLHOUSE",e.HOTKEY_VIEW_FLOORPLAN="HOTKEY_VIEW_FLOORPLAN",e.FLOOR_NAME="FLOOR_NAME",e.FLOOR_ALL="FLOOR_ALL",e.PLUGIN_VISIBILITY="PLUGIN_VISIBILITY",e.PLUGIN_CHANGE_ALL="PLUGIN_CHANGE_ALL",e.PLUGIN_V_TOGGLE_LABEL="PLUGIN_V_TOGGLE_LABEL",e.PRESENTED_BY="PRESENTED_BY",e.MORE="MORE",e.LESS="LESS",e.LEARN_MORE="LEARN_MORE",e.DEFURN_AI_WARNING="DEFURN_AI_WARNING",e.FEEDBACK="FEEDBACK",e.TERMS="TERMS",e.HELP="HELP",e.ALT_MATTERPORT_LOGO="ALT_MATTERPORT_LOGO",e.TERMS_FAIL="TERMS_FAIL",e.HELP_NAVIGATION_TAB="HELP_NAVIGATION_TAB",e.HELP_MORE_HELP_TAB="HELP_MORE_HELP_TAB",e.HELP_DESKTOP_360_2A="HELP_DESKTOP_360_2A",e.HELP_DESKTOP_360_2B="HELP_DESKTOP_360_2B",e.HELP_DESKTOP_DOLLHOUSE_1A="HELP_DESKTOP_DOLLHOUSE_1A",e.HELP_DESKTOP_DOLLHOUSE_1B="HELP_DESKTOP_DOLLHOUSE_1B",e.HELP_DESKTOP_DOLLHOUSE_2A="HELP_DESKTOP_DOLLHOUSE_2A",e.HELP_DESKTOP_DOLLHOUSE_3A="HELP_DESKTOP_DOLLHOUSE_3A",e.HELP_DESKTOP_FLOORPLAN_1A="HELP_DESKTOP_FLOORPLAN_1A",e.HELP_DESKTOP_FLOORPLAN_2A="HELP_DESKTOP_FLOORPLAN_2A",e.HELP_DESKTOP_FLOORPLAN_2B="HELP_DESKTOP_FLOORPLAN_2B",e.HELP_DESKTOP_FLOORPLAN_3A="HELP_DESKTOP_FLOORPLAN_3A",e.HELP_DESKTOP_FLOORPLAN_3B="HELP_DESKTOP_FLOORPLAN_3B",e.HELP_DESKTOP_MORE_360_B="HELP_DESKTOP_MORE_360_B",e.HELP_DESKTOP_MORE_DOLLHOUSE_B="HELP_DESKTOP_MORE_DOLLHOUSE_B",e.HELP_DESKTOP_MORE_FLOORS_B="HELP_DESKTOP_MORE_FLOORS_B",e.HELP_DESKTOP_MORE_FULLSCREEN_B="HELP_DESKTOP_MORE_FULLSCREEN_B",e.HELP_DESKTOP_MORE_HLR_B="HELP_DESKTOP_MORE_HLR_B",e.HELP_DESKTOP_MORE_INSIDE_B="HELP_DESKTOP_MORE_INSIDE_B",e.HELP_DESKTOP_MORE_MATTERTAG_B="HELP_DESKTOP_MORE_MATTERTAG_B",e.HELP_DESKTOP_MORE_TOUR_B="HELP_DESKTOP_MORE_TOUR_B",e.HELP_DESKTOP_MORE_VR_B="HELP_DESKTOP_MORE_VR_B",e.HELP_DESKTOP_MORE_ZOOM_B="HELP_DESKTOP_MORE_ZOOM_B",e.HELP_DESKTOP_PANORAMA_1A="HELP_DESKTOP_PANORAMA_1A",e.HELP_DESKTOP_PANORAMA_1B="HELP_DESKTOP_PANORAMA_1B",e.HELP_DESKTOP_PANORAMA_2A="HELP_DESKTOP_PANORAMA_2A",e.HELP_DESKTOP_PANORAMA_2B="HELP_DESKTOP_PANORAMA_2B",e.HELP_DESKTOP_PANORAMA_3A="HELP_DESKTOP_PANORAMA_3A",e.HELP_DESKTOP_PANORAMA_3B="HELP_DESKTOP_PANORAMA_3B",e.HELP_MOBILE_3="HELP_MOBILE_3",e.HELP_MOBILE_360_2="HELP_MOBILE_360_2",e.HELP_MOBILE_DOLLHOUSE_1="HELP_MOBILE_DOLLHOUSE_1",e.HELP_MOBILE_DOLLHOUSE_2="HELP_MOBILE_DOLLHOUSE_2",e.HELP_MOBILE_FLOORPLAN_1="HELP_MOBILE_FLOORPLAN_1",e.HELP_MOBILE_FLOORPLAN_2="HELP_MOBILE_FLOORPLAN_2",e.HELP_MOBILE_MORE_360_B="HELP_MOBILE_MORE_360_B",e.HELP_MOBILE_MORE_DOLLHOUSE_B="HELP_MOBILE_MORE_DOLLHOUSE_B",e.HELP_MOBILE_MORE_INSIDE_B="HELP_MOBILE_MORE_INSIDE_B",e.HELP_MOBILE_MORE_MATTERTAG_B="HELP_MOBILE_MORE_MATTERTAG_B",e.HELP_MOBILE_MORE_VR_B="HELP_MOBILE_MORE_VR_B",e.HELP_MOBILE_PANORAMA_1="HELP_MOBILE_PANORAMA_1",e.HELP_MOBILE_PANORAMA_2="HELP_MOBILE_PANORAMA_2",e.HELP_MORE_360_A="HELP_MORE_360_A",e.HELP_MORE_DOLLHOUSE_A="HELP_MORE_DOLLHOUSE_A",e.HELP_MORE_FLOORS_A="HELP_MORE_FLOORS_A",e.HELP_MORE_FLOORPLAN_A="HELP_MORE_FLOORPLAN_A",e.HELP_MORE_FULLSCREEN_A="HELP_MORE_FULLSCREEN_A",e.HELP_MORE_HLR_A="HELP_MORE_HLR_A",e.HELP_MORE_INSIDE_A="HELP_MORE_INSIDE_A",e.HELP_MORE_MATTERTAG_A="HELP_MORE_MATTERTAG_A",e.HELP_MORE_TOUR_A="HELP_MORE_TOUR_A",e.HELP_MORE_VR_A="HELP_MORE_VR_A",e.HELP_MORE_ZOOM_A="HELP_MORE_ZOOM_A",e.HELP_MORE_EXTRAS_A="HELP_MORE_EXTRAS_A",e.VR_ENTER="VR_ENTER",e.VR_LEARN_MORE_CAPS="VR_LEARN_MORE_CAPS",e.VR_QUEST="VR_QUEST",e.VR_META_LINK="VR_META_LINK",e.VR_RECOMMENDED="VR_RECOMMENDED",e.VR_SUPPORTS="VR_SUPPORTS",e.VR_VIEW_SPACE="VR_VIEW_SPACE",e.CTA_TOUR_COMPLETE="CTA_TOUR_COMPLETE",e.CTA_EXPLORE_SPACE="CTA_EXPLORE_SPACE",e.CTA_RESTART_TOUR="CTA_RESTART_TOUR",e.CTA_SHARE="CTA_SHARE",e.DESKTOP_SHORT_CTA="DESKTOP_SHORT_CTA",e.MOBILE_SHORT_CTA="MOBILE_SHORT_CTA",e.ROTATE="ROTATE",e.MOVE="MOVE",e.PLAY="PLAY",e.NEXT="NEXT",e.PREVIOUS="PREVIOUS",e.INSIDE="INSIDE",e.ZOOM="ZOOM",e.MEASUREMENT="MEASUREMENT",e.MEASUREMENT_START_ADDING="MEASUREMENT_START_ADDING",e.MEASUREMENT_CONTINUOUS_LINES="MEASUREMENT_CONTINUOUS_LINES",e.MEASUREMENT_SNAPPING="MEASUREMENT_SNAPPING",e.MEASUREMENT_UNITS="MEASUREMENT_UNITS",e.MEASUREMENT_IMPERIAL="MEASUREMENT_IMPERIAL",e.MEASUREMENT_METRIC="MEASUREMENT_METRIC",e.MEASUREMENT_SETTINGS="MEASUREMENT_SETTINGS",e.MEASUREMENT_HELP_CLICK_ANYWHERE="MEASUREMENT_HELP_CLICK_ANYWHERE",e.MEASUREMENT_HELP_ESCAPE="MEASUREMENT_HELP_ESCAPE",e.MEASUREMENT_HELP_PRESS_START="MEASUREMENT_HELP_PRESS_START",e.MEASUREMENT_HELP_DRAG_EDIT="MEASUREMENT_HELP_DRAG_EDIT",e.MEASUREMENT_HELP_PRESS_END="MEASUREMENT_HELP_PRESS_END",e.MEASUREMENT_MODE="MEASUREMENT_MODE",e.MEASUREMENT_HELP_MODAL_SUB_HEADER="MEASUREMENT_HELP_MODAL_SUB_HEADER",e.MEASUREMENT_HELP_MODAL_BODY_1="MEASUREMENT_HELP_MODAL_BODY_1",e.MEASUREMENT_HELP_MODAL_BODY_2="MEASUREMENT_HELP_MODAL_BODY_2",e.MEASUREMENT_NUDGE_TITLE="MEASUREMENT_NUDGE_TITLE",e.MEASUREMENT_NUDGE_MESSAGE="MEASUREMENT_NUDGE_MESSAGE",e.MEASUREMENT_ADD_LABEL="MEASUREMENT_ADD_LABEL",e.MEASUREMENT_CANCEL_LABEL="MEASUREMENT_CANCEL_LABEL",e.MEASUREMENT_SAVE_LABEL="MEASUREMENT_SAVE_LABEL",e.NOTES_MODE="NOTES_MODE",e.NOTES_NUDGE_TITLE="NOTES_NUDGE_TITLE",e.NOTES_NUDGE_MESSAGE="NOTES_NUDGE_MESSAGE",e.CLOSE="CLOSE",e.SHOW="SHOW",e.HIDE="HIDE",e.MORE_OPTIONS="MORE_OPTIONS",e.COPY="COPY",e.COPY_URL="COPY_URL",e.COPY_LINK="COPY_LINK",e.SHARE="SHARE",e.SHARE_COPIED="SHARE_COPIED",e.SHARE_CURRENT_LOCATION="SHARE_CURRENT_LOCATION",e.SHARE_DEFAULT_LOCATION="SHARE_DEFAULT_LOCATION",e.SHARE_ERROR_SWEEP_DISABLED="SHARE_ERROR_SWEEP_DISABLED",e.SHARE_EXPLORE="SHARE_EXPLORE",e.SHARE_LINK_TO_LOCATION="SHARE_LINK_TO_LOCATION",e.SHARE_AT="SHARE_AT",e.SHARE_WITH="SHARE_WITH",e.SHARE_3D="SHARE_3D",e.SHARE_MODAL_TITLE="SHARE_MODAL_TITLE",e.SHARE_MAIL="SHARE_MAIL",e.SHARE_FACEBOOK="SHARE_FACEBOOK",e.SHARE_TWITTER="SHARE_TWITTER",e.SHARE_LINKEDIN="SHARE_LINKEDIN",e.SHARE_PINTEREST="SHARE_PINTEREST",e.SHARED_TITLE="SHARED_TITLE",e.SHARED_MESSAGE="SHARED_MESSAGE",e.SHARED_MESSAGE_HASHTAG="SHARED_MESSAGE_HASHTAG",e.DOLLHOUSE_NUDGE_TITLE="DOLLHOUSE_NUDGE_TITLE",e.DOLLHOUSE_NUDGE_MESSAGE="DOLLHOUSE_NUDGE_MESSAGE",e.FLOOR_PLAN_NUDGE_MESSAGE="FLOOR_PLAN_NUDGE_MESSAGE"}(n||(n={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S;!function(e){e.NEW_MESSAGE="GENERIC.NEW_MESSAGE",e.READ_MORE="GENERIC.READ_MORE",e.SETTING_OFF="GENERIC.SETTING_OFF",e.SETTING_ON="GENERIC.SETTING_ON"}(t=e.GENERIC||(e.GENERIC={})),function(e){e.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE="ERRORS.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE",e.UNAUTHORIZED_ERROR_MESSAGE="ERRORS.UNAUTHORIZED_ERROR_MESSAGE"}(i=e.ERRORS||(e.ERRORS={})),function(e){e.COLLAPSE="ACCORDIONS.COLLAPSE",e.EXPAND="ACCORDIONS.EXPAND"}(n=e.ACCORDIONS||(e.ACCORDIONS={})),function(e){e.INVITED_MESSAGE="LOGIN.INVITED_MESSAGE",e.CREATE_ACCOUNT="LOGIN.CREATE_ACCOUNT",e.HAVE_ACCOUNT="LOGIN.HAVE_ACCOUNT",e.SIGN_IN="LOGIN.SIGN_IN"}(s=e.LOGIN||(e.LOGIN={})),function(e){e.COLLAPSE_PANEL="PANELS.COLLAPSE_PANEL",e.EXPAND_PANEL="PANELS.EXPAND_PANEL"}(a=e.PANELS||(e.PANELS={})),function(e){e.CLOSE_BUTTON_TOOLTIP_MESSAGE="REUSABLES.CLOSE_BUTTON_TOOLTIP_MESSAGE",e.HELP_BUTTON_TOOLTIP_MESSAGE="REUSABLES.HELP_BUTTON_TOOLTIP_MESSAGE",e.EMOJI_ALT_DISAPPOINTED="REUSABLES.EMOJI_ALT_DISAPPOINTED",e.EMOJI_ALT_UNSATISFIED="REUSABLES.EMOJI_ALT_UNSATISFIED",e.EMOJI_ALT_NEUTRAL="REUSABLES.EMOJI_ALT_NEUTRAL",e.EMOJI_ALT_SATISFIED="REUSABLES.EMOJI_ALT_SATISFIED",e.EMOJI_ALT_HAPPY="REUSABLES.EMOJI_ALT_HAPPY",e.FEEDBACK_LINK_LABEL="REUSABLES.FEEDBACK_LINK_LABEL",e.BETA_FEEDBACK_LINK_LABEL="REUSABLES.BETA_FEEDBACK_LINK_LABEL"}(o=e.REUSABLES||(e.REUSABLES={})),function(e){e.SCROLL_BUTTON_LABEL="SCROLLING.SCROLL_BUTTON_LABEL"}(r=e.SCROLLING||(e.SCROLLING={})),function(e){e.PINK="COLORS.PINK",e.PLUM="COLORS.PLUM",e.PURPLE="COLORS.PURPLE",e.COBALT="COLORS.COBALT",e.CERULEAN="COLORS.CERULEAN",e.TEAL="COLORS.TEAL",e.FOG="COLORS.FOG",e.IRON="COLORS.IRON",e.FOREST="COLORS.FOREST",e.EMERALD="COLORS.EMERALD",e.MINT="COLORS.MINT",e.OCEAN="COLORS.OCEAN",e.LIME="COLORS.LIME",e.CANARY="COLORS.CANARY",e.SUNFLOWER="COLORS.SUNFLOWER",e.TANGERINE="COLORS.TANGERINE",e.SUNSET="COLORS.SUNSET",e.SIERRA="COLORS.SIERRA",e.MAGENTA="COLORS.MAGENTA"}(l=e.COLORS||(e.COLORS={})),function(e){e.GENERIC_HELPTEXT="OOPS.GENERIC.HELPTEXT",e.GENERIC_TITLE="OOPS.GENERIC.TITLE",e.MODEL_ARCHIVED_TITLE="OOPS.MODEL_ARCHIVED.TITLE",e.MODEL_ARCHIVED_HELPTEXT="OOPS.MODEL_ARCHIVED.HELPTEXT",e.MODEL_COMPLIANCE_TITLE="OOPS.MODEL_COMPLIANCE.TITLE",e.MODEL_COMPLIANCE_HELPTEXT="OOPS.MODEL_COMPLIANCE.HELPTEXT",e.MODEL_DELETED_TITLE="OOPS.MODEL_DELETED.TITLE",e.MODEL_FAILED_TITLE="OOPS.MODEL_FAILED.TITLE",e.MODEL_FAILED_HELPTEXT="OOPS.MODEL_FAILED.HELPTEXT",e.MODEL_PENDING_TITLE="OOPS.MODEL_PENDING.TITLE",e.MODEL_PENDING_HELPTEXT="OOPS.MODEL_PENDING.HELPTEXT",e.MODEL_PROCESSING_TITLE="OOPS.MODEL_PROCESSING.TITLE",e.MODEL_PROCESSING_HELPTEXT="OOPS.MODEL_PROCESSING.HELPTEXT",e.SIGNED_IN_AS="OOPS.SIGNED_IN_AS",e.WEBGL_CONTEXT_LOST_HELPTEXT="OOPS.WEBGL_CONTEXT_LOST.HELPTEXT",e.WEBGL_CONTEXT_LOST_TITLE="OOPS.WEBGL_CONTEXT_LOST.TITLE",e.WEBGL_GENERIC_HELPTEXT="OOPS.WEBGL_GENERIC.HELPTEXT",e.WEBGL_GENERIC_TITLE="OOPS.WEBGL_GENERIC.TITLE",e.WEBGL_UNSUPPORTED_HELPTEXT="OOPS.WEBGL_UNSUPPORTED.HELPTEXT",e.WEBGL_UNSUPPORTED_TITLE="OOPS.WEBGL_UNSUPPORTED.TITLE"}(d=e.OOPS||(e.OOPS={})),function(e){e.AWAITING="SDK.AWAITING"}(c=e.SDK||(e.SDK={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g;!function(e){e.UPLOAD_TOOLTIP="SHOWCASE.ANNOTATIONS.UPLOAD_TOOLTIP",e.EMBED_TOOLTIP="SHOWCASE.ANNOTATIONS.EMBED_TOOLTIP",e.MAX_ATTACHMENTS_TOOLTIP="SHOWCASE.ANNOTATIONS.MAX_ATTACHMENTS_TOOLTIP",e.LINK_TOOLTIP="SHOWCASE.ANNOTATIONS.LINK_TOOLTIP",e.ADD_CTA="SHOWCASE.ANNOTATIONS.ADD_CTA",e.SAVE_CTA="SHOWCASE.ANNOTATIONS.SAVE_CTA",e.CANCEL_CTA="SHOWCASE.ANNOTATIONS.CANCEL_CTA",e.CONTENT_DELETED="SHOWCASE.ANNOTATIONS.CONTENT_DELETED",e.READ_MORE_MESSAGE="SHOWCASE.ANNOTATIONS.READ_MORE_MESSAGE"}(t=e.ANNOTATIONS||(e.ANNOTATIONS={})),function(e){e.ERROR_UPLOAD_FAIL="SHOWCASE.ATTACHMENTS.ERROR_UPLOAD_FAIL",e.ERROR_FILE_TOO_LARGE="SHOWCASE.ATTACHMENTS.ERROR_FILE_TOO_LARGE",e.ERROR_EMPTY_FILE="SHOWCASE.ATTACHMENTS.ERROR_EMPTY_FILE",e.ERROR_OVER_QUOTA="SHOWCASE.ATTACHMENTS.ERROR_OVER_QUOTA",e.ERROR_PERMISSION_DENIED="SHOWCASE.ATTACHMENTS.ERROR_PERMISSION_DENIED",e.REMOVE_TOOLTIP="SHOWCASE.ATTACHMENTS.REMOVE_TOOLTIP",e.CLOSE_TOOLTIP="SHOWCASE.ATTACHMENTS.CLOSE_TOOLTIP",e.DELETE_ATTACHMENT_TOOLTIP="SHOWCASE.ATTACHMENTS.DELETE_ATTACHMENT_TOOLTIP",e.DOWNLOAD_TOOLTIP="SHOWCASE.ATTACHMENTS.DOWNLOAD_TOOLTIP",e.EXPAND_ATTACHMENT_TOOLTIP="SHOWCASE.ATTACHMENTS.EXPAND_ATTACHMENT_TOOLTIP",e.VIEWER_INDEX_COUNT="SHOWCASE.ATTACHMENTS.VIEWER_INDEX_COUNT",e.FAILED_TO_LOAD_MESSAGE="SHOWCASE.ATTACHMENTS.FAILED_TO_LOAD_MESSAGE",e.MORE_ATTACHMENT="SHOWCASE.ATTACHMENTS.MORE_ATTACHMENT",e.ERROR_200_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_200_MESSAGE",e.ERROR_401_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_401_MESSAGE",e.ERROR_403_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_403_MESSAGE",e.ERROR_404_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_404_MESSAGE",e.ERROR_429_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_429_MESSAGE",e.ERROR_4XX_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_4XX_MESSAGE",e.ERROR_5XX_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_5XX_MESSAGE"}(i=e.ATTACHMENTS||(e.ATTACHMENTS={})),function(e){e.TITLE="SHOWCASE.DEFURNISH_AI_MODAL.TITLE",e.TEXT1="SHOWCASE.DEFURNISH_AI_MODAL.TEXT1",e.TEXT2="SHOWCASE.DEFURNISH_AI_MODAL.TEXT2"}(n=e.DEFURNISH_AI_MODAL||(e.DEFURNISH_AI_MODAL={})),function(e){let t,i;!function(e){e.OR="SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.OR",e.DESKTOP="SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.DESKTOP"}(t=e.ROTATE_PROMPT||(e.ROTATE_PROMPT={})),function(e){e.DESKTOP="SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.DESKTOP",e.TOUCH="SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.TOUCH"}(i=e.INSIDE_PROMPT||(e.INSIDE_PROMPT={}))}(s=e.DOLLHOUSE||(e.DOLLHOUSE={})),function(e){e.DEFAULT_NAME="SHOWCASE.FLOORS.DEFAULT_NAME"}(a=e.FLOORS||(e.FLOORS={})),function(e){e.ALT_GESTURE_DRAG="SHOWCASE.HELP.ALT_GESTURE_DRAG",e.ALT_GESTURE_DRAGTWOFINGER="SHOWCASE.HELP.ALT_GESTURE_DRAGTWOFINGER",e.ALT_GESTURE_DRAGTWOFINGER_VERT="SHOWCASE.HELP.ALT_GESTURE_DRAGTWOFINGER_VERT",e.ALT_GESTURE_POSITION="SHOWCASE.HELP.ALT_GESTURE_POSITION",e.ALT_GESTURE_PINCH="SHOWCASE.HELP.ALT_GESTURE_PINCH",e.ALT_GESTURE_TOUCH_ROTATE="SHOWCASE.HELP.ALT_GESTURE_TOUCH_ROTATE",e.ALT_GESTURE_PLAY="SHOWCASE.HELP.ALT_GESTURE_PLAY",e.ALT_GESTURE_POSITIONTWOFINGER="SHOWCASE.HELP.ALT_GESTURE_POSITIONTWOFINGER",e.ALT_GESTURE_TAP="SHOWCASE.HELP.ALT_GESTURE_TAP",e.ALT_GESTURE_TAPINSIDE="SHOWCASE.HELP.ALT_GESTURE_TAPINSIDE",e.ALT_KEYBOARD_ALL="SHOWCASE.HELP.ALT_KEYBOARD_ALL",e.ALT_KEYBOARD_INSIDE="SHOWCASE.HELP.ALT_KEYBOARD_INSIDE",e.ALT_KEYBOARD_LEFTRIGHT="SHOWCASE.HELP.ALT_KEYBOARD_LEFTRIGHT",e.ALT_KEYBOARD_UPDOWN="SHOWCASE.HELP.ALT_KEYBOARD_UPDOWN",e.ALT_KEYBOARD_ZOOM="SHOWCASE.HELP.ALT_KEYBOARD_ZOOM",e.ALT_MOUSE_CLICK="SHOWCASE.HELP.ALT_MOUSE_CLICK",e.ALT_MOUSE_CLICKINSIDE="SHOWCASE.HELP.ALT_MOUSE_CLICKINSIDE",e.ALT_MOUSE_DRAGLEFT="SHOWCASE.HELP.ALT_MOUSE_DRAGLEFT",e.ALT_MOUSE_DRAGRIGHT="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT",e.ALT_MOUSE_DRAGRIGHT_HORIZ="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT_HORIZ",e.ALT_MOUSE_DRAGRIGHT_VERT="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT_VERT",e.ALT_MOUSE_PLAY="SHOWCASE.HELP.ALT_MOUSE_PLAY",e.ALT_MOUSE_POSITIONLEFT="SHOWCASE.HELP.ALT_MOUSE_POSITIONLEFT",e.ALT_MOUSE_POSITIONRIGHT="SHOWCASE.HELP.ALT_MOUSE_POSITIONRIGHT",e.ALT_MOUSE_ZOOM="SHOWCASE.HELP.ALT_MOUSE_ZOOM",e.NAV_DOLLHOUSE_TITLE="SHOWCASE.HELP.NAV_DOLLHOUSE_TITLE",e.NAV_FLOORPLAN_TITLE="SHOWCASE.HELP.NAV_FLOORPLAN_TITLE",e.NAV_INSIDE_TITLE="SHOWCASE.HELP.NAV_INSIDE_TITLE",e.DESKTOP_DOLLHOUSE_PAN_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_PAN_HEADER",e.DESKTOP_DOLLHOUSE_PAN="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_PAN",e.DESKTOP_DOLLHOUSE_ROTATE_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ROTATE_HEADER",e.DESKTOP_DOLLHOUSE_ROTATE="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ROTATE",e.DESKTOP_DOLLHOUSE_ZOOM_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ZOOM_HEADER",e.DESKTOP_DOLLHOUSE_ZOOM="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ZOOM",e.DESKTOP_DOLLHOUSE_2D3D_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_2D3D_HEADER",e.DESKTOP_DOLLHOUSE_2D3D="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_2D3D",e.DESKTOP_INSIDE_LOOK_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_LOOK_HEADER",e.DESKTOP_INSIDE_LOOK="SHOWCASE.HELP.DESKTOP_INSIDE_LOOK",e.DESKTOP_INSIDE_MOVE_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_MOVE_HEADER",e.DESKTOP_INSIDE_MOVE="SHOWCASE.HELP.DESKTOP_INSIDE_MOVE",e.DESKTOP_INSIDE_ZOOM_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_ZOOM_HEADER",e.DESKTOP_INSIDE_ZOOM="SHOWCASE.HELP.DESKTOP_INSIDE_ZOOM",e.TOUCH_DOLLHOUSE_PAN="SHOWCASE.HELP.TOUCH_DOLLHOUSE_PAN",e.TOUCH_DOLLHOUSE_ROTATE="SHOWCASE.HELP.TOUCH_DOLLHOUSE_ROTATE",e.TOUCH_DOLLHOUSE_ZOOM="SHOWCASE.HELP.TOUCH_DOLLHOUSE_ZOOM",e.TOUCH_DOLLHOUSE_2D3D="SHOWCASE.HELP.TOUCH_DOLLHOUSE_2D3D",e.TOUCH_INSIDE_LOOK="SHOWCASE.HELP.TOUCH_INSIDE_LOOK",e.TOUCH_INSIDE_MOVE="SHOWCASE.HELP.TOUCH_INSIDE_MOVE",e.TOUCH_INSIDE_ZOOM="SHOWCASE.HELP.TOUCH_INSIDE_ZOOM"}(o=e.HELP||(e.HELP={})),function(e){e.EMPTY_REEL_TITLE="SHOWCASE.HLR.EMPTY_REEL_TITLE",e.EMPTY_REEL_MESSAGE="SHOWCASE.HLR.EMPTY_REEL_MESSAGE",e.EMPTY_REEL_LEARN_MORE="SHOWCASE.HLR.EMPTY_REEL_LEARN_MORE"}(r=e.HLR||(e.HLR={})),function(e){e.SEARCH_GROUP_HEADER="SHOWCASE.LABELS.SEARCH_GROUP_HEADER"}(l=e.LABELS||(e.LABELS={})),function(e){e.TOGGLE_LAYERS="SHOWCASE.LAYERS.TOGGLE_LAYERS"}(d=e.LAYERS||(e.LAYERS={})),function(e){e.SEARCH_GROUP_HEADER="SHOWCASE.MEASUREMENTS.SEARCH_GROUP_HEADER"}(c=e.MEASUREMENTS||(e.MEASUREMENTS={})),function(e){e.TODAY="SHOWCASE.NOTES.TODAY",e.YESTERDAY="SHOWCASE.NOTES.YESTERDAY",e.THIS_WEEK="SHOWCASE.NOTES.THIS_WEEK",e.ONE_WEEK_AGO="SHOWCASE.NOTES.ONE_WEEK_AGO",e.TWO_WEEKS_AGO="SHOWCASE.NOTES.TWO_WEEKS_AGO",e.THREE_WEEKS_AGO="SHOWCASE.NOTES.THREE_WEEKS_AGO",e.OLDER="SHOWCASE.NOTES.OLDER",e.NO_MATCHES="SHOWCASE.NOTES.NO_MATCHES",e.HAVE_NONE="SHOWCASE.NOTES.HAVE_NONE",e.HAVE_NONE_OPEN="SHOWCASE.NOTES.HAVE_NONE_OPEN",e.HAVE_NONE_RESOLVED="SHOWCASE.NOTES.HAVE_NONE_RESOLVED",e.CONTENT_DELETED="SHOWCASE.NOTES.CONTENT_DELETED",e.RESULTS="SHOWCASE.NOTES.RESULTS",e.NUM_ATTACHMENTS="SHOWCASE.NOTES.ATTACHMENTS",e.COMMENTS="SHOWCASE.NOTES.COMMENTS",e.NOTES="SHOWCASE.NOTES.NOTES",e.REPLIES="SHOWCASE.NOTES.REPLIES",e.FILTER="SHOWCASE.NOTES.FILTER",e.FILTER_RESOLVED="SHOWCASE.NOTES.FILTER_RESOLVED",e.FILTER_UNRESOLVED="SHOWCASE.NOTES.FILTER_UNRESOLVED",e.FILTER_ALL="SHOWCASE.NOTES.FILTER_ALL",e.FILTER_BY="SHOWCASE.NOTES.FILTER_BY",e.CANCEL="SHOWCASE.NOTES.CANCEL",e.DELETE="SHOWCASE.NOTES.DELETE",e.EDIT="SHOWCASE.NOTES.EDIT",e.ADD_NOTE_MESSAGE="SHOWCASE.NOTES.ADD_NOTE_MESSAGE",e.MARK_AS_RESOLVED="SHOWCASE.NOTES.MARK_AS_RESOLVED",e.UNRESOLVE="SHOWCASE.NOTES.UNRESOLVE",e.FEEDBACK="SHOWCASE.NOTES.FEEDBACK",e.NAV_BACK="SHOWCASE.NOTES.NAV_BACK",e.NAV_CLOSE="SHOWCASE.NOTES.NAV_CLOSE",e.REPLY_PLACEHOLDER="SHOWCASE.NOTES.REPLY_PLACEHOLDER",e.EDIT_LIST_ITEM_OPTION_CTA="SHOWCASE.NOTES.EDIT_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="SHOWCASE.NOTES.DELETE_LIST_ITEM_OPTION_CTA",e.MISSING_MESSAGE="SHOWCASE.NOTES.MISSING_MESSAGE",e.ADD_CTA_TOOLTIP="SHOWCASE.NOTES.ADD_CTA_TOOLTIP",e.ADD_TOOLTIP="SHOWCASE.NOTES.ADD_TOOLTIP",e.CANCEL_TOOLTIP="SHOWCASE.NOTES.CANCEL_TOOLTIP",e.COLOR_STEM_TOOLTIP="SHOWCASE.NOTES.COLOR_STEM_TOOLTIP",e.DELETE_TOOLTIP="SHOWCASE.NOTES.DELETE_TOOLTIP",e.OVERLAY_ADD_TOUCH="SHOWCASE.NOTES.OVERLAY_ADD_TOUCH",e.OVERLAY_ADD_CLICK="SHOWCASE.NOTES.OVERLAY_ADD_CLICK",e.OVERLAY_PLACE_TOUCH="SHOWCASE.NOTES.OVERLAY_PLACE_TOUCH",e.OVERLAY_PLACE_CLICK="SHOWCASE.NOTES.OVERLAY_PLACE_CLICK",e.SEARCH_GROUP_HEADER="SHOWCASE.NOTES.SEARCH_GROUP_HEADER",e.SEARCH_GROUP_HEADER_NOTES="SHOWCASE.NOTES.SEARCH_GROUP_HEADER_NOTES",e.SELECTED_NOTES="SHOWCASE.NOTES.SELECTED_NOTES",e.SELECTED_COMMENTS="SHOWCASE.NOTES.SELECTED_COMMENTS"}(u=e.NOTES||(e.NOTES={})),function(e){e.BACK="SHOWCASE.ROOMS.BACK",e.CLOSE="SHOWCASE.ROOMS.CLOSE",e.DEFAULT_NAME="SHOWCASE.ROOMS.DEFAULT_NAME",e.DEFAULT_ROOM="SHOWCASE.ROOMS.DEFAULT_ROOM",e.DOORWAY_TYPE="SHOWCASE.ROOMS.DOORWAY_TYPE",e.DOORWAY_TYPE_DOOR="SHOWCASE.ROOMS.DOORWAY_TYPE_DOOR",e.DOORWAY_TYPE_OPENING="SHOWCASE.ROOMS.DOORWAY_TYPE_OPENING",e.LIST_PANEL_TITLE="SHOWCASE.ROOMS.LIST_PANEL_TITLE",e.LIST_PANEL_EDIT="SHOWCASE.ROOMS.LIST_PANEL_EDIT",e.QUANTITY_IN_UNITS="SHOWCASE.ROOMS.QUANTITY_IN_UNITS",e.ROOM_AREA="SHOWCASE.ROOMS.ROOM_AREA",e.ROOM_BOUNDS_TOGGLES_TITLE="SHOWCASE.ROOMS.ROOM_BOUNDS_TOGGLES_TITLE",e.ROOM_BOUNDS_WALL_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_WALL_TOGGLE_LABEL",e.ROOM_BOUNDS_ROOM_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_ROOM_TOGGLE_LABEL",e.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL",e.ROOM_BOUNDS_MODEL_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_MODEL_TOGGLE_LABEL",e.ROOM_DIMENSIONS="SHOWCASE.ROOMS.ROOM_DIMENSIONS",e.ROOM_HEIGHT="SHOWCASE.ROOMS.ROOM_HEIGHT",e.ROOM_INFORMATION="SHOWCASE.ROOMS.ROOM_INFORMATION",e.ROOM_PERIMETER="SHOWCASE.ROOMS.ROOM_PERIMETER",e.ROOM_TYPE="SHOWCASE.ROOMS.ROOM_TYPE",e.SEARCH_GROUP_HEADER="SHOWCASE.ROOMS.SEARCH_GROUP_HEADER",e.SETTINGS="SHOWCASE.ROOMS.SETTINGS",e.WALL_THICKNESS="SHOWCASE.ROOMS.WALL_THICKNESS",e.WALL_TYPE="SHOWCASE.ROOMS.WALL_TYPE",e.WALL_TYPE_SOLID="SHOWCASE.ROOMS.WALL_TYPE_SOLID",e.WALL_TYPE_DIVIDER="SHOWCASE.ROOMS.WALL_TYPE_DIVIDER"}(h=e.ROOMS||(e.ROOMS={})),function(e){e.CLOSE_TAG_LABEL="SHOWCASE.TAGS.CLOSE_TAG_LABEL",e.DOCK_TAG_LABEL="SHOWCASE.TAGS.DOCK_TAG_LABEL",e.EDIT_TAG_LABEL="SHOWCASE.TAGS.EDIT_TAG_LABEL",e.MISSING_MESSAGE="SHOWCASE.TAGS.MISSING_MESSAGE",e.SEARCH_GROUP_HEADER="SHOWCASE.TAGS.SEARCH_GROUP_HEADER",e.SHARE_TAG_LABEL="SHOWCASE.TAGS.SHARE_TAG_LABEL",e.UNDOCK_TAG_LABEL="SHOWCASE.TAGS.UNDOCK_TAG_LABEL",e.NAV_BACK_LABEL="SHOWCASE.TAGS.NAV_BACK_LABEL",e.OVERLAY_ADD_TOUCH="SHOWCASE.TAGS.OVERLAY_ADD_TOUCH",e.OVERLAY_ADD_CLICK="SHOWCASE.TAGS.OVERLAY_ADD_CLICK",e.OVERLAY_PLACE_TOUCH="SHOWCASE.TAGS.OVERLAY_PLACE_TOUCH",e.OVERLAY_PLACE_CLICK="SHOWCASE.TAGS.OVERLAY_PLACE_CLICK"}(m=e.TAGS||(e.TAGS={})),function(e){e.QUERY_PLACEHOLDER="SHOWCASE.SEARCH.QUERY_PLACEHOLDER",e.SEARCH_IN_TOOL_PLACEHOLDER="SHOWCASE.SEARCH.SEARCH_IN_TOOL_PLACEHOLDER",e.CLEAR_SEARCH="SHOWCASE.SEARCH.CLEAR_SEARCH",e.FILTER_SEARCH="SHOWCASE.SEARCH.FILTER_SEARCH",e.FILTER_SEARCH_LABEL="SHOWCASE.SEARCH.FILTER_SEARCH_LABEL",e.FILTER_SEARCH_ALL="SHOWCASE.SEARCH.FILTER_SEARCH_ALL",e.FILTER_SEARCH_REMOVE="SHOWCASE.SEARCH.FILTER_SEARCH_REMOVE",e.FILTER_SEARCH_SELECTED="SHOWCASE.SEARCH.FILTER_SEARCH_SELECTED",e.GROUP_DATE="SHOWCASE.SEARCH.GROUP_DATE",e.GROUP_DATE_SELECTED="SHOWCASE.SEARCH.GROUP_DATE_SELECTED",e.GROUP_FLOOR="SHOWCASE.SEARCH.GROUP_FLOOR",e.GROUP_FLOOR_SELECTED="SHOWCASE.SEARCH.GROUP_FLOOR_SELECTED",e.GROUP_LAYER="SHOWCASE.SEARCH.GROUP_LAYER",e.GROUP_LAYER_SELECTED="SHOWCASE.SEARCH.GROUP_LAYER_SELECTED",e.GROUP_ROOM="SHOWCASE.SEARCH.GROUP_ROOM",e.GROUP_ROOM_SELECTED="SHOWCASE.SEARCH.GROUP_ROOM_SELECTED",e.GROUP_TYPE="SHOWCASE.SEARCH.GROUP_TYPE",e.GROUP_TYPE_SELECTED="SHOWCASE.SEARCH.GROUP_TYPE_SELECTED",e.ITEMS="SHOWCASE.SEARCH.ITEMS",e.EMPTY_LIST_MESSAGE="SHOWCASE.SEARCH.EMPTY_LIST_MESSAGE",e.VALIDATION_MESSAGE="SHOWCASE.SEARCH.VALIDATION_MESSAGE"}(p=e.SEARCH||(e.SEARCH={})),function(e){e.BANNER_CTA_LINK_TEXT="SHOWCASE.SUBSCRIBER_PROMPT.BANNER_CTA_LINK_TEXT",e.POPUP_CTA_HEADING="SHOWCASE.SUBSCRIBER_PROMPT.POPUP_CTA_HEADING",e.POPUP_CTA_LINK_TEXT="SHOWCASE.SUBSCRIBER_PROMPT.POPUP_CTA_LINK_TEXT"}(E=e.SUBSCRIBER_PROMPT||(e.SUBSCRIBER_PROMPT={})),function(e){e.HEADING="SHOWCASE.SUMMARY.HEADING",e.LABEL_ADDRESS="SHOWCASE.SUMMARY.LABEL_ADDRESS",e.LABEL_CONTACT="SHOWCASE.SUMMARY.LABEL_CONTACT",e.LABEL_DESCRIPTION="SHOWCASE.SUMMARY.LABEL_DESCRIPTION",e.LABEL_INFORMATION="SHOWCASE.SUMMARY.LABEL_INFORMATION",e.LABEL_LOCATION="SHOWCASE.SUMMARY.LABEL_LOCATION",e.LABEL_LEARN_MORE="SHOWCASE.SUMMARY.LABEL_LEARN_MORE"}(S=e.SUMMARY||(e.SUMMARY={})),function(e){e.TOUR_BUTTON_LABEL="SHOWCASE.TOURS.TOUR_BUTTON_LABEL",e.TOUR_CONTROLS_TITLE="SHOWCASE.TOURS.TOUR_CONTROLS_TITLE",e.TOUR_CONTROLS_CTA="SHOWCASE.TOURS.TOUR_CONTROLS_CTA"}(O=e.TOURS||(e.TOURS={})),function(e){e.VIEW_SELECTOR_START_LOCATION_TOOLTIP="SHOWCASE.VIEWS.VIEW_SELECTOR_START_LOCATION_TOOLTIP"}(g=e.VIEWS||(e.VIEWS={}))}(u=e.SHOWCASE||(e.SHOWCASE={})),function(e){e.AD_DEFURNISH="TOOLS.AD_DEFURNISH",e.AD_DEFURNISH_HELP_MESSAGE="TOOLS.AD_DEFURNISH_HELP_MESSAGE",e.BLUR="TOOLS.BLUR",e.BLUR_HELP_MESSAGE="TOOLS.BLUR_HELP_MESSAGE",e.HLR="TOOLS.HLR",e.HLR_HELP_MESSAGE="TOOLS.HLR_HELP_MESSAGE",e.LABELS="TOOLS.LABELS",e.LABELS_HELP_MESSAGE="TOOLS.LABELS_HELP_MESSAGE",e.LAYERS="TOOLS.LAYERS",e.LAYERS_HELP_MESSAGE="TOOLS.LAYERS_HELP_MESSAGE",e.MATTERTAGS="TOOLS.MATTERTAGS",e.MATTERTAGS_HELP_MESSAGE="TOOLS.MATTERTAGS_HELP_MESSAGE",e.MEASUREMENTS="TOOLS.MEASUREMENTS",e.MEASUREMENTS_SETTINGS="TOOLS.MEASUREMENTS_SETTINGS",e.MEASUREMENTS_HELP_MESSAGE="TOOLS.MEASUREMENTS_HELP_MESSAGE",e.MESH_TRIM="TOOLS.MESH_TRIM",e.MESH_TRIM_HELP_MESSAGE="TOOLS.MESH_TRIM_HELP_MESSAGE",e.NOTES="TOOLS.NOTES",e.NOTES_HELP_MESSAGE="TOOLS.NOTES_HELP_MESSAGE",e.PHOTOS="TOOLS.PHOTOS",e.PHOTOS_HELP_MESSAGE="TOOLS.PHOTOS_HELP_MESSAGE",e.PLUGIN_CONFIG="TOOLS.PLUGIN_CONFIG",e.PLUGIN_CONFIG_HELP_MESSAGE="TOOLS.PLUGIN_CONFIG_HELP_MESSAGE",e.PLUGIN_CONFIG_MISSING="TOOLS.PLUGIN_CONFIG_MISSING",e.ROOMPLAN="TOOLS.ROOMPLAN",e.ROOMPLAN_HELP_MESSAGE="TOOLS.ROOMPLAN_HELP_MESSAGE",e.SCANS_3D="TOOLS.SCANS_3D",e.SCANS_3D_HELP_MESSAGE="TOOLS.SCANS_3D_HELP_MESSAGE",e.SETTINGS_PANEL="TOOLS.SETTINGS_PANEL",e.START_LOCATION="TOOLS.START_LOCATION",e.START_LOCATION_HELP_MESSAGE="TOOLS.START_LOCATION_HELP_MESSAGE",e.SUMMARY="TOOLS.SUMMARY",e.TAGS="TOOLS.TAGS",e.TAGS_HELP_MESSAGE="TOOLS.TAGS_HELP_MESSAGE",e.TOURS="TOOLS.TOURS",e.TOURS_HELP_MESSAGE="TOOLS.TOURS_HELP_MESSAGE",e.VIEW_360="TOOLS.VIEW_360",e.VIEW_360_HELP_MESSAGE="TOOLS.VIEW_360_HELP_MESSAGE",e.VR_PATH="TOOLS.VR_PATH",e.VR_PATH_HELP_MESSAGE="TOOLS.VR_PATH_HELP_MESSAGE",e.SEARCH="TOOLS.SEARCH",e.UNSAVED_CHANGES_TITLE="TOOLS.UNSAVED_CHANGES_TITLE",e.UNSAVED_CHANGES_MESSAGE="TOOLS.UNSAVED_CHANGES_MESSAGE",e.UNSAVED_CHANGES_CONFIRM="TOOLS.UNSAVED_CHANGES_CONFIRM",e.UNSAVED_CHANGES_CANCEL="TOOLS.UNSAVED_CHANGES_CANCEL"}(h=e.TOOLS||(e.TOOLS={})),function(e){e.INVITE_USER="USERS.INVITE_USER",e.INVITE_USER_FAILED="USERS.INVITE_USER_FAILED",e.INVITE_BUTTON="USERS.INVITE_BUTTON",e.INVITE_USERS="USERS.INVITE_USERS",e.INVITE_USERS_FAILED="USERS.INVITE_USERS_FAILED",e.INVITE_VISIBLE_MSG="USERS.INVITE_VISIBLE_MSG",e.UNKNOWN_USER="USERS.UNKNOWN_USER",e.UNKNOWN_USERS="USERS.UNKNOWN_USERS"}(m=e.USERS||(e.USERS={})),function(e){e.FEET_SYMBOL="UNITS_DISPLAY.FEET_SYMBOL",e.INCHES_SYMBOL="UNITS_DISPLAY.INCHES_SYMBOL",e.HALF_SPACE="UNITS_DISPLAY.HALF_SPACE",e.FEET="UNITS_DISPLAY.FEET",e.INCHES="UNITS_DISPLAY.INCHES",e.METERS="UNITS_DISPLAY.METERS",e.SQUARE_FEET="UNITS_DISPLAY.SQUARE_FEET",e.SQUARE_METERS="UNITS_DISPLAY.SQUARE_METERS",e.DIMENSIONS_SEPARATOR="UNITS_DISPLAY.DIMENSIONS_SEPARATOR"}(p=e.UNITS_DISPLAY||(e.UNITS_DISPLAY={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g,_,T,A,v,N,L,I,f;!function(e){e.DELETE_SELECTED_CTA="WORKSHOP.ACCORDION.DELETE_SELECTED_CTA",e.SELECT_ALL_CTA="WORKSHOP.ACCORDION.SELECT_ALL_CTA",e.ENTER_SELECT_MODE_CTA="WORKSHOP.ACCORDION.ENTER_SELECT_MODE_CTA",e.EXIT_SELECT_MODE_CTA="WORKSHOP.ACCORDION.EXIT_SELECT_MODE_CTA",e.DELETE_FOOTER_CTA="WORKSHOP.ACCORDION.DELETE_FOOTER_CTA",e.TOGGLE_VISIBILITY_FOOTER_CTA="WORKSHOP.ACCORDION.TOGGLE_VISIBILITY_FOOTER_CTA",e.BATCH_DELETE_MODAL_TITLE="WORKSHOP.ACCORDION.BATCH_DELETE_MODAL_TITLE",e.BATCH_DELETE_MODAL_MESSAGE="WORKSHOP.ACCORDION.BATCH_DELETE_MODAL_MESSAGE",e.BATCH_ITEMS_TYPE="WORKSHOP.ACCORDION.BATCH_ITEMS_TYPE",e.BATCH_COPY_LABEL="WORKSHOP.ACCORDION.BATCH_COPY_LABEL",e.BATCH_MOVE_LABEL="WORKSHOP.ACCORDION.BATCH_MOVE_LABEL",e.BATCH_DELETE_LABEL="WORKSHOP.ACCORDION.BATCH_DELETE_LABEL",e.RENAME_HEADER_OPTION_CTA="WORKSHOP.ACCORDION.RENAME_HEADER_OPTION_CTA"}(t=e.ACCORDION||(e.ACCORDION={})),function(e){e.CHANGES_SAVED_MESSAGE="WORKSHOP.APP_SWITCH.CHANGES_SAVED_MESSAGE",e.SAVING_CHANGES_MESSAGE="WORKSHOP.APP_SWITCH.SAVING_CHANGES_MESSAGE",e.PROCESSING_MESSAGE="WORKSHOP.APP_SWITCH.PROCESSING_MESSAGE",e.CHANGES_SAVED_AUTOSAVE_MESSAGE="WORKSHOP.APP_SWITCH.CHANGES_SAVED_AUTOSAVE_MESSAGE",e.EDIT_CTA="WORKSHOP.APP_SWITCH.EDIT_CTA",e.UNSUPPORTED_TOOLTIP_MESSAGE="WORKSHOP.APP_SWITCH.UNSUPPORTED_TOOLTIP_MESSAGE",e.UNSUPPORTED_TOOLTIP_TITLE="WORKSHOP.APP_SWITCH.UNSUPPORTED_TOOLTIP_TITLE",e.FLOORS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.FLOORS_CHECKBOX_LABEL",e.MEASUREMENTS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.MEASUREMENTS_CHECKBOX_LABEL",e.MATTERTAGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.MATTERTAGS_CHECKBOX_LABEL",e.TAGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.TAGS_CHECKBOX_LABEL",e.LABELS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.LABELS_CHECKBOX_LABEL",e.HIGHLIGHTS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.HIGHLIGHTS_CHECKBOX_LABEL",e.START_LOCATION_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.START_LOCATION_CHECKBOX_LABEL",e.SETTINGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.SETTINGS_CHECKBOX_LABEL",e.SWEEPS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.SWEEPS_CHECKBOX_LABEL",e.BLURS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.BLURS_CHECKBOX_LABEL",e.EXIT_EDIT_MODE_CTA="WORKSHOP.APP_SWITCH.EXIT_EDIT_MODE_CTA",e.EXIT_EDIT_MODE_TOOLTIP_MESSAGE="WORKSHOP.APP_SWITCH.EXIT_EDIT_MODE_TOOLTIP_MESSAGE",e.PREVIEW_CHANGES_CTA="WORKSHOP.APP_SWITCH.PREVIEW_CHANGES_CTA",e.NO_EDIT_PERMS_TITLE="WORKSHOP.APP_SWITCH.NO_EDIT_PERMS_TITLE",e.NO_EDIT_PERMS_MESSAGE="WORKSHOP.APP_SWITCH.NO_EDIT_PERMS_MESSAGE"}(i=e.APP_SWITCH||(e.APP_SWITCH={})),function(e){e.ACCEPT_ALL_SUGGESTIONS="WORKSHOP.BLURS.ACCEPT_ALL_SUGGESTIONS",e.ACCEPT_SUGGESTION_TOOLTIP="WORKSHOP.BLURS.ACCEPT_SUGGESTION_TOOLTIP",e.ALREADY_PROCESSING_ALERT_MESSAGE="WORKSHOP.BLURS.ALREADY_PROCESSING_ALERT_MESSAGE",e.ALREADY_PROCESSING_ALERT_TITLE="WORKSHOP.BLURS.ALREADY_PROCESSING_ALERT_TITLE",e.APPLY_BLURS_CTA="WORKSHOP.BLURS.APPLY_BLURS_CTA",e.APPLYING="WORKSHOP.BLURS.APPLYING",e.APPLY_MODAL_CONFIRM="WORKSHOP.BLURS.APPLY_MODAL_CONFIRM",e.APPLY_MODAL_NUDGE_CANCEL="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_CANCEL",e.APPLY_MODAL_MESSAGE="WORKSHOP.BLURS.APPLY_MODAL_MESSAGE",e.APPLY_MODAL_NUDGE_MESSAGE="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_MESSAGE",e.APPLY_MODAL_RETRY="WORKSHOP.BLURS.APPLY_MODAL_RETRY",e.APPLY_MODAL_TITLE="WORKSHOP.BLURS.APPLY_MODAL_TITLE",e.APPLY_MODAL_NUDGE_TITLE="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_TITLE",e.APPLY_MODAL_TRUNCATED="WORKSHOP.BLURS.APPLY_MODAL_TRUNCATED",e.APPLY_MODAL_WARNING="WORKSHOP.BLURS.APPLY_MODAL_WARNING",e.BANNER_WARNING="WORKSHOP.BLURS.BANNER_WARNING",e.DEFURNISH_WARNING="WORKSHOP.BLURS.DEFURNISH_WARNING",e.BATCH_SELECT="WORKSHOP.BLURS.BATCH_SELECT",e.BLUR_STATUS="WORKSHOP.BLURS.BLUR_STATUS",e.BLUR_STATUS_ALL="WORKSHOP.BLURS.BLUR_STATUS_ALL",e.BLUR_STATUS_APPLIED="WORKSHOP.BLURS.BLUR_STATUS_APPLIED",e.BLUR_STATUS_FAILED="WORKSHOP.BLURS.BLUR_STATUS_FAILED",e.BLUR_STATUS_PENDING="WORKSHOP.BLURS.BLUR_STATUS_PENDING",e.BLUR_STATUS_PROCESSING="WORKSHOP.BLURS.BLUR_STATUS_PROCESSING",e.BLUR_STATUS_SUGGESTED="WORKSHOP.BLURS.BLUR_STATUS_SUGGESTED",e.BRUSH_TOOLTIP_MESSAGE="WORKSHOP.BLURS.BRUSH_TOOLTIP_MESSAGE",e.BRUSH_TOOLTIP_TITLE="WORKSHOP.BLURS.BRUSH_TOOLTIP_TITLE",e.CLOSE_SUGGESTIONS="WORKSHOP.BLURS.CLOSE_SUGGESTIONS",e.CREATE_TOOLTIP_MESSAGE="WORKSHOP.BLURS.CREATE_TOOLTIP_MESSAGE",e.CREATE_TOOLTIP_TITLE="WORKSHOP.BLURS.CREATE_TOOLTIP_TITLE",e.DEFAULT_ALERT_CONFIRMATION="WORKSHOP.BLURS.DEFAULT_ALERT_CONFIRMATION",e.DEFAULT_ALERT_TITLE="WORKSHOP.BLURS.DEFAULT_ALERT_TITLE",e.DEFAULT_BLUR_NAME="WORKSHOP.BLURS.DEFAULT_BLUR_NAME",e.DELETE_BLUR_CTA="WORKSHOP.BLURS.DELETE_BLUR_CTA",e.GROUP_BY="WORKSHOP.BLURS.GROUP_BY",e.GROUP_BY_FLOOR="WORKSHOP.BLURS.GROUP_BY_FLOOR",e.GROUP_BY_SCAN="WORKSHOP.BLURS.GROUP_BY_SCAN",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.BLURS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.BLURS.MULTI_FLOOR_EMPTY_MESSAGE",e.NO_BLURS="WORKSHOP.BLURS.NO_BLURS",e.NO_SUGGESTIONS="WORKSHOP.BLURS.NO_SUGGESTIONS",e.NO_SUGGESTIONS_ON_FLOOR="WORKSHOP.BLURS.NO_SUGGESTIONS_ON_FLOOR",e.NUM_BLUR_SUGGESTIONS="WORKSHOP.BLURS.NUM_BLUR_SUGGESTIONS",e.NUM_TYPE="WORKSHOP.BLURS.NUM_TYPE",e.OTHER_GROUP_LABEL="WORKSHOP.BLURS.OTHER_GROUP_LABEL",e.OVERLAY_MESSAGE="WORKSHOP.BLURS.OVERLAY_MESSAGE",e.OVERLAY_MESSAGE_TOUCH="WORKSHOP.BLURS.OVERLAY_MESSAGE_TOUCH",e.REJECT_ALL_SUGGESTIONS="WORKSHOP.BLURS.REJECT_ALL_SUGGESTIONS",e.REJECT_SUGGESTION_TOOLTIP="WORKSHOP.BLURS.REJECT_SUGGESTION_TOOLTIP",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.BLURS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.BLURS.SINGLE_FLOOR_EMPTY_MESSAGE",e.SORT="WORKSHOP.BLURS.SORT",e.SORT_CREATED_ASC="WORKSHOP.BLURS.SORT_CREATED_ASC",e.SORT_CREATED_DESC="WORKSHOP.BLURS.SORT_CREATED_DESC",e.STATUS="WORKSHOP.BLURS.STATUS",e.SUGGESTED_BLUR="WORKSHOP.BLURS.SUGGESTED_BLUR",e.SUGGESTIONS_AVAILABLE_MESSAGE="WORKSHOP.BLURS.SUGGESTIONS_AVAILABLE_MESSAGE",e.SUGGESTIONS_FOUND_MESSAGE="WORKSHOP.BLURS.SUGGESTIONS_FOUND_MESSAGE",e.TYPE="WORKSHOP.BLURS.TYPE",e.VIEW_SUGGESTIONS="WORKSHOP.BLURS.VIEW_SUGGESTIONS"}(n=e.BLURS||(e.BLURS={})),function(e){e.TYPE="WORKSHOP.SUGGESTIONS.TYPE"}(s=e.SUGGESTIONS||(e.SUGGESTIONS={})),function(e){e.HELP_LINK="WORKSHOP.EDIT_BAR.HELP_LINK",e.BETA_TAG="WORKSHOP.EDIT_BAR.BETA_TAG",e.COLLAPSE_LIST_TOOLTIP_MESSAGE="WORKSHOP.EDIT_BAR.COLLAPSE_LIST_TOOLTIP_MESSAGE",e.EXPAND_LIST_TOOLTIP_MESSAGE="WORKSHOP.EDIT_BAR.EXPAND_LIST_TOOLTIP_MESSAGE",e.NEW_BADGE="WORKSHOP.EDIT_BAR.NEW_BADGE"}(a=e.EDIT_BAR||(e.EDIT_BAR={})),function(e){e.APPLY_CTA="WORKSHOP.EMBED.APPLY_CTA",e.HELP_CTA="WORKSHOP.EMBED.HELP_CTA",e.ERROR_MESSAGE="WORKSHOP.EMBED.ERROR_MESSAGE",e.LOADING_MESSAGE="WORKSHOP.EMBED.LOADING_MESSAGE",e.INVALID_URL_MESSAGE="WORKSHOP.EMBED.INVALID_URL_MESSAGE",e.SUPPORTED_FORMATS_MESSAGE="WORKSHOP.EMBED.SUPPORTED_FORMATS_MESSAGE",e.MEDIA_LINK_LABEL="WORKSHOP.EMBED.MEDIA_LINK_LABEL",e.PROVIDER_NOT_SUPPORTED_MESSAGE="WORKSHOP.EMBED.PROVIDER_NOT_SUPPORTED_MESSAGE",e.LINK_TYPE_NOT_SUPPORTED_MESSAGE="WORKSHOP.EMBED.LINK_TYPE_NOT_SUPPORTED_MESSAGE",e.MEDIA_EMBED_PLACEHOLDER="WORKSHOP.EMBED.MEDIA_EMBED_PLACEHOLDER"}(o=e.EMBED||(e.EMBED={})),function(e){e.ADD_FROM_PHOTOS_TOOLTIP_MESSAGE="WORKSHOP.HLR.ADD_FROM_PHOTOS_TOOLTIP_MESSAGE",e.ADD_HIGHLIGHT_CTA="WORKSHOP.HLR.ADD_HIGHLIGHT_CTA",e.ADD_HIGHLIGHT_DISABLED_CTA="WORKSHOP.HLR.ADD_HIGHLIGHT_DISABLED_CTA",e.ADD_HIGHLIGHT_INSTRUCTIONS="WORKSHOP.HLR.ADD_HIGHLIGHT_INSTRUCTIONS",e.APPLY_TO_ALL_CTA="WORKSHOP.HLR.APPLY_TO_ALL_CTA",e.CLEAR_HLR_MODAL_MESSAGE="WORKSHOP.HLR.CLEAR_HLR_MODAL_MESSAGE",e.CLEAR_HLR_MODAL_TITLE="WORKSHOP.HLR.CLEAR_HLR_MODAL_TITLE",e.CLEAR_REEL_CTA="WORKSHOP.HLR.CLEAR_REEL_CTA",e.CLOSE_SETTINGS_CTA="WORKSHOP.HLR.CLOSE_SETTINGS_CTA",e.DELETE_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.DELETE_HIGHLIGHT_TOOLTIP_MESSAGE",e.DISMISS_TOOLTIP_CTA="WORKSHOP.HLR.DISMISS_TOOLTIP_CTA",e.DOLLHOUSE_ROTATION_SPEED_SETTING_LABEL="WORKSHOP.HLR.DOLLHOUSE_ROTATION_SPEED_SETTING_LABEL",e.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE",e.EDIT_SETTINGS_TOOLTIP_MESSAGE="WORKSHOP.HLR.EDIT_SETTINGS_TOOLTIP_MESSAGE",e.HIGHLIGHT_CAPTION_HINT="WORKSHOP.HLR.HIGHLIGHT_CAPTION_HINT",e.HIGHLIGHT_CAPTION_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_CAPTION_PLACEHOLDER",e.HIGHLIGHT_DESCRIPTION_HINT="WORKSHOP.HLR.HIGHLIGHT_DESCRIPTION_HINT",e.HIGHLIGHT_DESCRIPTION_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_DESCRIPTION_PLACEHOLDER",e.HIGHLIGHT_SCENE_HINT="WORKSHOP.HLR.HIGHLIGHT_SCENE_HINT",e.HIGHLIGHT_SCENE_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_SCENE_PLACEHOLDER",e.HIGHLIGHT_TITLE_HINT="WORKSHOP.HLR.HIGHLIGHT_TITLE_HINT",e.HIGHLIGHT_TITLE_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_TITLE_PLACEHOLDER",e.INDIVIDUAL_PAN_DIRECTION_SETTING_LABEL="WORKSHOP.HLR.INDIVIDUAL_PAN_DIRECTION_SETTING_LABEL",e.INDIVIDUAL_TRANSITION_SETTING_LABEL="WORKSHOP.HLR.INDIVIDUAL_TRANSITION_SETTING_LABEL",e.NUM_TYPE="WORKSHOP.HLR.NUM_TYPE",e.PANNING_SETTINGS_TAB_TITLE="WORKSHOP.HLR.PANNING_SETTINGS_TAB_TITLE",e.PAN_DIRECTION_SETTING_AUTO="WORKSHOP.HLR.PAN_DIRECTION_SETTING_AUTO",e.PAN_DIRECTION_SETTING_LABEL="WORKSHOP.HLR.PAN_DIRECTION_SETTING_LABEL",e.PAN_DIRECTION_SETTING_LEFT="WORKSHOP.HLR.PAN_DIRECTION_SETTING_LEFT",e.PAN_DIRECTION_SETTING_RIGHT="WORKSHOP.HLR.PAN_DIRECTION_SETTING_RIGHT",e.PANEL_COLLAPSE="WORKSHOP.HLR.PANEL_COLLAPSE",e.PANEL_EXPAND="WORKSHOP.HLR.PANEL_EXPAND",e.PREVIEW_SETTINGS_CTA="WORKSHOP.HLR.PREVIEW_SETTINGS_CTA",e.PRESENTATION_SETTINGS_TAB_TITLE="WORKSHOP.HLR.PRESENTATION_SETTINGS_TAB_TITLE",e.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE",e.RESTORE_DEFAULTS_CTA="WORKSHOP.HLR.RESTORE_DEFAULTS_CTA",e.ROTATION_ANGLE_SETTING_LABEL="WORKSHOP.HLR.ROTATION_ANGLE_SETTING_LABEL",e.ROTATION_SPEED_SETTING_LABEL="WORKSHOP.HLR.ROTATION_SPEED_SETTING_LABEL",e.SCAN_GENERIC_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_GENERIC_HIDDEN_TOOLTIP_TITLE",e.SCAN_NOT_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_NOT_HIDDEN_TOOLTIP_TITLE",e.SCAN_NUMBER_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_NUMBER_HIDDEN_TOOLTIP_TITLE",e.SEARCH_HIGHLIGHT_DEFAULTNAME="WORKSHOP.HLR.SEARCH_HIGHLIGHT_DEFAULTNAME",e.SEARCH_ITEM_DELETE="WORKSHOP.HLR.SEARCH_ITEM_DELETE",e.SEARCH_ITEM_EDIT="WORKSHOP.HLR.SEARCH_ITEM_EDIT",e.SEARCH_TOUR_HEADER="WORKSHOP.HLR.SEARCH_TOUR_HEADER",e.SETTINGS_MODAL_TITLE="WORKSHOP.HLR.SETTINGS_MODAL_TITLE",e.SLIDESHOW_SPEED_SETTING_LABEL="WORKSHOP.HLR.SLIDESHOW_SPEED_SETTING_LABEL",e.SPEED_SETTING_FAST="WORKSHOP.HLR.SPEED_SETTING_FAST",e.SPEED_SETTING_MEDIUM="WORKSHOP.HLR.SPEED_SETTING_MEDIUM",e.SPEED_SETTING_SLOW="WORKSHOP.HLR.SPEED_SETTING_SLOW",e.TOAST_ERROR_CTA="WORKSHOP.HLR.TOAST_ERROR_CTA",e.TOAST_ERROR_MESSAGE="WORKSHOP.HLR.TOAST_ERROR_MESSAGE",e.TOUR_EDITOR_BEHAVIORS_TAB="WORKSHOP.HLR.TOUR_EDITOR_BEHAVIORS_TAB",e.TOUR_EDITOR_LABELS_TAB="WORKSHOP.HLR.TOUR_EDITOR_LABELS_TAB",e.TOUR_EDITOR_EMPTY_MESSAGE="WORKSHOP.HLR.TOUR_EDITOR_EMPTY_MESSAGE",e.TOUR_EDITOR_EMPTY_TITLE="WORKSHOP.HLR.TOUR_EDITOR_EMPTY_TITLE",e.TOUR_EDITOR_TITLE_DESCRIPTION_HELPER="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_HELPER",e.TOUR_EDITOR_TITLE_DESCRIPTION_TIP="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_TIP",e.TOUR_EDITOR_TITLE_DESCRIPTION_TIP_LINK="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_TIP_LINK",e.TOUR_SETTINGS_LABEL="WORKSHOP.HLR.TOUR_SETTINGS_LABEL",e.TOUR_SETTINGS_MOVED_HEADER="WORKSHOP.HLR.TOUR_SETTINGS_MOVED_HEADER",e.TOUR_SETTINGS_MOVED_MESSAGE="WORKSHOP.HLR.TOUR_SETTINGS_MOVED_MESSAGE",e.TRANSITION_AFTER_360_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_AFTER_360_DISABLED_MESSAGE",e.TRANSITION_EDITOR_TITLE="WORKSHOP.HLR.TRANSITION_EDITOR_TITLE",e.TRANSITION_IS_360_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_IS_360_DISABLED_MESSAGE",e.TRANSITION_NO_ROTATION_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_NO_ROTATION_DISABLED_MESSAGE",e.TRANSITION_SAME_SWEEP_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_SAME_SWEEP_DISABLED_MESSAGE",e.TRANSITION_SETTINGS_TAB_TITLE="WORKSHOP.HLR.TRANSITION_SETTINGS_TAB_TITLE",e.TRANSITION_SETTING_LABEL="WORKSHOP.HLR.TRANSITION_SETTING_LABEL",e.TRANSITION_SETTING_SLIDESHOW="WORKSHOP.HLR.TRANSITION_SETTING_SLIDESHOW",e.TRANSITION_SETTING_WALKTHROUGH="WORKSHOP.HLR.TRANSITION_SETTING_WALKTHROUGH",e.TYPE="WORKSHOP.HLR.TYPE",e.WALKTHROUGH_SPEED_SETTING_LABEL="WORKSHOP.HLR.WALKTHROUGH_SPEED_SETTING_LABEL",e.ZOOM_SPEED_SETTING_LABEL="WORKSHOP.HLR.ZOOM_SPEED_SETTING_LABEL"}(r=e.HLR||(e.HLR={})),function(e){e.TYPE="WORKSHOP.LABELS.TYPE",e.NUM_TYPE="WORKSHOP.LABELS.NUM_TYPE",e.SELECTED_LABELS="WORKSHOP.LABELS.SELECTED_LABELS",e.EDIT_TEXT_CANCEL_CTA="WORKSHOP.LABELS.EDIT_TEXT_CANCEL_CTA",e.EDIT_TEXT_DONE_CTA="WORKSHOP.LABELS.EDIT_TEXT_DONE_CTA",e.INPUT_PLACEHOLDER="WORKSHOP.LABELS.INPUT_PLACEHOLDER",e.MOBILE_OVERLAY_MESSAGE="WORKSHOP.LABELS.MOBILE_OVERLAY_MESSAGE",e.ADD_LABEL_TOOLTIP_MESSAGE="WORKSHOP.LABELS.ADD_LABEL_TOOLTIP_MESSAGE",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.LABELS.RENAME_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.LABELS.DELETE_LIST_ITEM_OPTION_CTA",e.DEPRECATION_WARNING="WORKSHOP.LABELS.DEPRECATION_WARNING",e.OPEN_PROPERTY_TOOL_LABEL="WORKSHOP.LABELS.OPEN_PROPERTY_TOOL_LABEL",e.BOTH_LABELS_AND_RB_ENABLED="WORKSHOP.LABELS.BOTH_LABELS_AND_RB_ENABLED",e.TURN_OFF_LABELS="WORKSHOP.LABELS.TURN_OFF_LABELS",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.LABELS.LIST_ITEM_INPUT_PLACEHOLDER",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.LABELS.MULTI_FLOOR_EMPTY_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.LABELS.SINGLE_FLOOR_EMPTY_MESSAGE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.LABELS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.LABELS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.EDIT_LABEL="WORKSHOP.LABELS.EDIT_LABEL"}(l=e.LABELS||(e.LABELS={})),function(e){e.BACKYARD="WORKSHOP.LABEL_SUGGESTIONS.BACKYARD",e.BALCONY="WORKSHOP.LABEL_SUGGESTIONS.BALCONY",e.BASEMENT="WORKSHOP.LABEL_SUGGESTIONS.BASEMENT",e.BATHROOM="WORKSHOP.LABEL_SUGGESTIONS.BATHROOM",e.BEDROOM="WORKSHOP.LABEL_SUGGESTIONS.BEDROOM",e.BONUS_ROOM="WORKSHOP.LABEL_SUGGESTIONS.BONUS_ROOM",e.BREAK_ROOM="WORKSHOP.LABEL_SUGGESTIONS.BREAK_ROOM",e.CLOSET="WORKSHOP.LABEL_SUGGESTIONS.CLOSET",e.CONFERENCE_ROOM="WORKSHOP.LABEL_SUGGESTIONS.CONFERENCE_ROOM",e.DEN="WORKSHOP.LABEL_SUGGESTIONS.DEN",e.DINING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.DINING_ROOM",e.DRIVEWAY="WORKSHOP.LABEL_SUGGESTIONS.DRIVEWAY",e.ELEVATOR="WORKSHOP.LABEL_SUGGESTIONS.ELEVATOR",e.ENTRANCE="WORKSHOP.LABEL_SUGGESTIONS.ENTRANCE",e.ESCALATOR="WORKSHOP.LABEL_SUGGESTIONS.ESCALATOR",e.EXERCISE_ROOM="WORKSHOP.LABEL_SUGGESTIONS.EXERCISE_ROOM",e.EXTERIOR="WORKSHOP.LABEL_SUGGESTIONS.EXTERIOR",e.FACADE="WORKSHOP.LABEL_SUGGESTIONS.FACADE",e.FAMILY_ROOM="WORKSHOP.LABEL_SUGGESTIONS.FAMILY_ROOM",e.FRONT_YARD="WORKSHOP.LABEL_SUGGESTIONS.FRONT_YARD",e.GAME_ROOM="WORKSHOP.LABEL_SUGGESTIONS.GAME_ROOM",e.GARAGE="WORKSHOP.LABEL_SUGGESTIONS.GARAGE",e.GARDEN="WORKSHOP.LABEL_SUGGESTIONS.GARDEN",e.GREAT_ROOM="WORKSHOP.LABEL_SUGGESTIONS.GREAT_ROOM",e.GYM="WORKSHOP.LABEL_SUGGESTIONS.GYM",e.HALLWAY="WORKSHOP.LABEL_SUGGESTIONS.HALLWAY",e.KITCHEN="WORKSHOP.LABEL_SUGGESTIONS.KITCHEN",e.LAUNDRY="WORKSHOP.LABEL_SUGGESTIONS.LAUNDRY",e.LIBRARY="WORKSHOP.LABEL_SUGGESTIONS.LIBRARY",e.LIVING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.LIVING_ROOM",e.LOBBY="WORKSHOP.LABEL_SUGGESTIONS.LOBBY",e.LOFT="WORKSHOP.LABEL_SUGGESTIONS.LOFT",e.LUNCH_ROOM="WORKSHOP.LABEL_SUGGESTIONS.LUNCH_ROOM",e.MEDIA_ROOM="WORKSHOP.LABEL_SUGGESTIONS.MEDIA_ROOM",e.MEETING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.MEETING_ROOM",e.OFFICE="WORKSHOP.LABEL_SUGGESTIONS.OFFICE",e.OTHER="WORKSHOP.LABEL_SUGGESTIONS.OTHER",e.PANTRY="WORKSHOP.LABEL_SUGGESTIONS.PANTRY",e.PATIO="WORKSHOP.LABEL_SUGGESTIONS.PATIO",e.POOL="WORKSHOP.LABEL_SUGGESTIONS.POOL",e.PRIMARY_BATHROOM="WORKSHOP.LABEL_SUGGESTIONS.PRIMARY_BATHROOM",e.PRIMARY_BEDROOM="WORKSHOP.LABEL_SUGGESTIONS.PRIMARY_BEDROOM",e.RECEPTION="WORKSHOP.LABEL_SUGGESTIONS.RECEPTION",e.SAUNA="WORKSHOP.LABEL_SUGGESTIONS.SAUNA",e.SPA="WORKSHOP.LABEL_SUGGESTIONS.SPA",e.STAIRCASE="WORKSHOP.LABEL_SUGGESTIONS.STAIRCASE",e.STAIRWAY="WORKSHOP.LABEL_SUGGESTIONS.STAIRWAY",e.STORAGE="WORKSHOP.LABEL_SUGGESTIONS.STORAGE",e.STUDY="WORKSHOP.LABEL_SUGGESTIONS.STUDY",e.UNFURNISHED="WORKSHOP.LABEL_SUGGESTIONS.UNFURNISHED",e.UTILITY_ROOM="WORKSHOP.LABEL_SUGGESTIONS.UTILITY_ROOM",e.VOID="WORKSHOP.LABEL_SUGGESTIONS.VOID",e.WORKSHOP_ROOM="WORKSHOP.LABEL_SUGGESTIONS.WORKSHOP_ROOM"}(d=e.LABEL_SUGGESTIONS||(e.LABEL_SUGGESTIONS={})),function(e){e.ADD_LAYER_BUTTON_LABEL="WORKSHOP.LAYERS.ADD_LAYER_BUTTON_LABEL",e.ADD_VIEW_ITEM="WORKSHOP.LAYERS.ADD_VIEW_ITEM",e.ADD_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.ADD_VIEW_MODAL_TITLE",e.APPLY_TO_ALL_VIEWS_BLURS="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_BLURS",e.APPLY_TO_ALL_VIEWS_SCANS_3D="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_SCANS_3D",e.APPLY_TO_ALL_VIEWS_TRIM="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_TRIM",e.APPLY_TO_ALL_VIEWS_VIEW_360="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_VIEW_360",e.BATCH_NEW_LAYER="WORKSHOP.LAYERS.BATCH_NEW_LAYER",e.COMMON_LAYER="WORKSHOP.LAYERS.COMMON_LAYER",e.COMMON_LAYER_DESCRIPTION="WORKSHOP.LAYERS.COMMON_LAYER_DESCRIPTION",e.COMMON_LAYER_ITEM="WORKSHOP.LAYERS.COMMON_LAYER_ITEM",e.COPY_LAYER_ITEM="WORKSHOP.LAYERS.COPY_LAYER_ITEM",e.DEDICATED_LAYER="WORKSHOP.LAYERS.DEDICATED_LAYER",e.DEDICATED_LAYER_DESCRIPTION="WORKSHOP.LAYERS.DEDICATED_LAYER_DESCRIPTION",e.DEDICATED_LAYER_ITEM="WORKSHOP.LAYERS.DEDICATED_LAYER_ITEM",e.DEFAULT_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_VIEW_NAME",e.DEFAULT_INSIGHTS_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_INSIGHTS_VIEW_NAME",e.DEFAULT_TRUEPLAN_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_TRUEPLAN_VIEW_NAME",e.DEFAULT_DEFURNISH_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_DEFURNISH_VIEW_NAME",e.DELETE_COMMON_LAYER_CONFIRMATION_MESSAGE="WORKSHOP.LAYERS.DELETE_COMMON_LAYER_CONFIRMATION_MESSAGE",e.DELETE_COMMON_LAYER_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_COMMON_LAYER_MODAL_TITLE",e.DELETE_LAYER_CONFIRMATION_MESSAGE="WORKSHOP.LAYERS.DELETE_LAYER_CONFIRMATION_MESSAGE",e.DELETE_LAYER_ITEM="WORKSHOP.LAYERS.DELETE_LAYER_ITEM",e.DELETE_LAYER_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_LAYER_MODAL_TITLE",e.DELETE_VIEW_ITEM="WORKSHOP.LAYERS.DELETE_VIEW_ITEM",e.DELETE_VIEW_MODAL_MESSAGE="WORKSHOP.LAYERS.DELETE_VIEW_MODAL_MESSAGE",e.DELETE_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_VIEW_MODAL_TITLE",e.DUPLICATE_LAYER_ITEM="WORKSHOP.LAYERS.DUPLICATE_LAYER_ITEM",e.DUPLICATE_LAYER_PLACEHOLDER="WORKSHOP.LAYERS.DUPLICATE_LAYER_PLACEHOLDER",e.DUPLICATE_LAYER_TITLE="WORKSHOP.LAYERS.DUPLICATE_LAYER_TITLE",e.DUPLICATE_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.DUPLICATE_VIEW_MODAL_TITLE",e.EDIT_LAYER_TITLE="WORKSHOP.LAYERS.EDIT_LAYER_TITLE",e.EDIT_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.EDIT_VIEW_MODAL_TITLE",e.HIDDEN_LAYER_ITEM_TOOLTIP="WORKSHOP.LAYERS.HIDDEN_LAYER_ITEM_TOOLTIP",e.HIDE_LAYER="WORKSHOP.LAYERS.HIDE_LAYER",e.LAYER_ADDING_TO_CHOICE_LABEL="WORKSHOP.LAYERS.LAYER_ADDING_TO_CHOICE_LABEL",e.LAYER_ADDING_TO_LABEL="WORKSHOP.LAYERS.LAYER_ADDING_TO_LABEL",e.LAYER_TYPE_LABEL="WORKSHOP.LAYERS.LAYER_TYPE_LABEL",e.LAYER_NAME_PLACEHOLDER="WORKSHOP.LAYERS.LAYER_NAME_PLACEHOLDER",e.MOVE_LAYER_ITEM="WORKSHOP.LAYERS.MOVE_LAYER_ITEM",e.NEW_LAYER_LABEL="WORKSHOP.LAYERS.NEW_LAYER_LABEL",e.NEW_LAYER_TITLE="WORKSHOP.LAYERS.NEW_LAYER_TITLE",e.NEW_VIEW_NAME_PLACEHOLDER="WORKSHOP.LAYERS.NEW_VIEW_NAME_PLACEHOLDER",e.SHARE_THIS_VIEW="WORKSHOP.LAYERS.SHARE_THIS_VIEW",e.SHARED_ENABLED_VIEWS="WORKSHOP.LAYERS.SHARED_ENABLED_VIEWS",e.SHOW_LAYER="WORKSHOP.LAYERS.SHOW_LAYER",e.SWITCH_TO_VIEWS_LEARN_MORE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LEARN_MORE",e.SWITCH_TO_VIEWS_LIST_HEADER="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_HEADER",e.SWITCH_TO_VIEWS_LIST_ITEM_1="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_1",e.SWITCH_TO_VIEWS_LIST_ITEM_2="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_2",e.SWITCH_TO_VIEWS_LIST_ITEM_3="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_3",e.SWITCH_TO_VIEWS_LIST_ITEM_4="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_4",e.SWITCH_TO_VIEWS_TITLE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_TITLE",e.SWITCH_TO_VIEWS_USE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_USE",e.SELECTED_ITEMS="WORKSHOP.LAYERS.SELECTED_ITEMS",e.UNLAYERED_LAYER_LABEL="WORKSHOP.LAYERS.UNLAYERED_LAYER_LABEL",e.TRUEPLAN_LAYER_LABEL="WORKSHOP.LAYERS.TRUEPLAN_LAYER_LABEL",e.UNTITLED_LAYER_PLACEHOLDER="WORKSHOP.LAYERS.UNTITLED_LAYER_PLACEHOLDER",e.VIEW_DISABLED_MESSAGE="WORKSHOP.LAYERS.VIEW_DISABLED_MESSAGE",e.VIEW_DUPLICATE="WORKSHOP.LAYERS.VIEW_DUPLICATE",e.VIEW_DUPLICATE_NAME_SUFFIX="WORKSHOP.LAYERS.VIEW_DUPLICATE_NAME_SUFFIX",e.VIEW_ENABLED_MESSAGE="WORKSHOP.LAYERS.VIEW_ENABLED_MESSAGE",e.VIEW_HIDE_MESSAGE="WORKSHOP.LAYERS.VIEW_HIDE_MESSAGE",e.VIEW_PLACEHOLDER="WORKSHOP.LAYERS.VIEW_PLACEHOLDER",e.VIEW_PREVIEW="WORKSHOP.LAYERS.VIEW_PREVIEW",e.VIEW_PREVIEW_NARROW="WORKSHOP.LAYERS.VIEW_PREVIEW_NARROW",e.VIEW_RENAME="WORKSHOP.LAYERS.VIEW_RENAME",e.VIEW_SHOW_MESSAGE="WORKSHOP.LAYERS.VIEW_SHOW_MESSAGE",e.VIEWS_HELP="WORKSHOP.LAYERS.VIEWS_HELP"}(c=e.LAYERS||(e.LAYERS={})),function(e){e.ADD="WORKSHOP.MATTERTAGS.ADD",e.ADD_FILE="WORKSHOP.MATTERTAGS.ADD_FILE",e.ADD_MATTERTAG_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.ADD_MATTERTAG_TOOLTIP_MESSAGE",e.ADD_TAG_NUDGE="WORKSHOP.MATTERTAGS.ADD_TAG_NUDGE",e.ADD_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.ADD_TAG_TOOLTIP",e.ATTACHMENTS_LABEL="WORKSHOP.MATTERTAGS.ATTACHMENTS_LABEL",e.APPEARANCE_LABEL="WORKSHOP.MATTERTAGS.APPEARANCE_LABEL",e.BACK="WORKSHOP.MATTERTAGS.BACK",e.CANCEL_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.CANCEL_TAG_TOOLTIP",e.COLOR_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.COLOR_TOOLTIP_MESSAGE",e.DEFAULT_LIST_ITEM_TEXT="WORKSHOP.MATTERTAGS.DEFAULT_LIST_ITEM_TEXT",e.DEFAULT_TAG_TITLE="WORKSHOP.MATTERTAGS.DEFAULT_TAG_TITLE",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.MATTERTAGS.DELETE_LIST_ITEM_OPTION_CTA",e.DELETE_MATTERTAGS_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DELETE_MATTERTAGS_MODAL_MESSAGE",e.DELETE_MATTERTAGS_MODAL_TITLE="WORKSHOP.MATTERTAGS.DELETE_MATTERTAGS_MODAL_TITLE",e.DELETE_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.DELETE_TAG_TOOLTIP",e.DELETE_TAGS_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DELETE_TAGS_MODAL_MESSAGE",e.DELETE_TAGS_MODAL_TITLE="WORKSHOP.MATTERTAGS.DELETE_TAGS_MODAL_TITLE",e.DESCRIPTION_PLACEHOLDER="WORKSHOP.MATTERTAGS.DESCRIPTION_PLACEHOLDER",e.DISCARD_MATTERTAG_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DISCARD_MATTERTAG_MODAL_MESSAGE",e.DISCARD_MATTERTAG_MODAL_TITLE="WORKSHOP.MATTERTAGS.DISCARD_MATTERTAG_MODAL_TITLE",e.DROP_FILES_MESSAGE="WORKSHOP.MATTERTAGS.DROP_FILES_MESSAGE",e.EDIT_BILLBOARD_CANCEL_CTA="WORKSHOP.MATTERTAGS.EDIT_BILLBOARD_CANCEL_CTA",e.EDIT_BILLBOARD_DONE_CTA="WORKSHOP.MATTERTAGS.EDIT_BILLBOARD_DONE_CTA",e.EDIT_LIST_ITEM_OPTION_CTA="WORKSHOP.MATTERTAGS.EDIT_LIST_ITEM_OPTION_CTA",e.EDIT_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.EDIT_TAG_TOOLTIP",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.HIDE_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.HIDE_TOOLTIP_MESSAGE",e.KEYWORDS_HELP_MESSAGE="WORKSHOP.MATTERTAGS.KEYWORDS_HELP_MESSAGE",e.KEYWORDS_LABEL="WORKSHOP.MATTERTAGS.KEYWORDS_LABEL",e.KEYWORDS_MAXIMUM_TOKENS_MESSAGE="WORKSHOP.MATTERTAGS.KEYWORDS_MAXIMUM_TOKENS_MESSAGE",e.KEYWORDS_PLACEHOLDER="WORKSHOP.MATTERTAGS.KEYWORDS_PLACEHOLDER",e.LINK_DISABLED_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.LINK_DISABLED_TOOLTIP_MESSAGE",e.LINK_EDITOR_APPLY_CTA="WORKSHOP.MATTERTAGS.LINK_EDITOR_APPLY_CTA",e.LINK_EDITOR_INVALID_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_INVALID_TIP",e.LINK_EDITOR_LINK_ADD_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_LINK_ADD_LABEL",e.LINK_EDITOR_LINK_EDIT_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_LINK_EDIT_LABEL",e.LINK_EDITOR_MAX_LENGTH_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_MAX_LENGTH_TIP",e.LINK_EDITOR_PREVIEW_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_PREVIEW_TIP",e.LINK_EDITOR_REMOVE_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_REMOVE_TIP",e.LINK_EDITOR_TEXT_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_TEXT_LABEL",e.LINK_EDITOR_TEXT_PLACEHOLDER="WORKSHOP.MATTERTAGS.LINK_EDITOR_TEXT_PLACEHOLDER",e.LINK_EDITOR_TIP_TEXT="WORKSHOP.MATTERTAGS.LINK_EDITOR_TIP_TEXT",e.LINK_EDITOR_URL_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_URL_LABEL",e.LINK_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.LINK_TOOLTIP_MESSAGE",e.LIST_BY_FLOOR_ALPHABETICAL_LABEL="WORKSHOP.MATTERTAGS.LIST_BY_FLOOR_ALPHABETICAL_LABEL",e.LIST_BY_FLOOR_ORDERED_LABEL="WORKSHOP.MATTERTAGS.LIST_BY_FLOOR_ORDERED_LABEL",e.LIST_IN_TAG_ORDER_LABEL="WORKSHOP.MATTERTAGS.LIST_IN_TAG_ORDER_LABEL",e.LIST_IN_TAG_TITLE_ORDER_LABEL="WORKSHOP.MATTERTAGS.LIST_IN_TAG_TITLE_ORDER_LABEL",e.LIST_SORT_TAG_ORDER="WORKSHOP.MATTERTAGS.LIST_SORT_TAG_ORDER",e.LIST_SORT_TAG_TITLE="WORKSHOP.MATTERTAGS.LIST_SORT_TAG_TITLE",e.MAX_ATTACHMENTS_MESSAGE="WORKSHOP.MATTERTAGS.MAX_ATTACHMENTS_MESSAGE",e.MEDIA_LINK_APPLY_CTA="WORKSHOP.MATTERTAGS.MEDIA_LINK_APPLY_CTA",e.MEDIA_LINK_ERROR_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_ERROR_MESSAGE",e.MEDIA_LINK_HELP_LINK="WORKSHOP.MATTERTAGS.MEDIA_LINK_HELP_LINK",e.MEDIA_LINK_INVALID_URL_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_INVALID_URL_MESSAGE",e.MEDIA_LINK_LABEL="WORKSHOP.MATTERTAGS.MEDIA_LINK_LABEL",e.MEDIA_LINK_LOADING_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_LOADING_MESSAGE",e.MEDIA_LINK_SUPPORTED_FORMATS_LINK="WORKSHOP.MATTERTAGS.MEDIA_LINK_SUPPORTED_FORMATS_LINK",e.MEDIA_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_TOOLTIP_MESSAGE",e.MOBILE_OVERLAY_MESSAGE="WORKSHOP.MATTERTAGS.MOBILE_OVERLAY_MESSAGE",e.MOBILE_REORDER_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.MOBILE_REORDER_MODAL_MESSAGE",e.MOBILE_REORDER_MODAL_TITLE="WORKSHOP.MATTERTAGS.MOBILE_REORDER_MODAL_TITLE",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.MATTERTAGS.MULTI_FLOOR_EMPTY_MESSAGE",e.NUM_TYPE="WORKSHOP.MATTERTAGS.NUM_TYPE",e.SAVE="WORKSHOP.MATTERTAGS.SAVE",e.SAVE_PROCESSING="WORKSHOP.MATTERTAGS.SAVE_PROCESSING",e.SAVE_INVALID="WORKSHOP.MATTERTAGS.SAVE_INVALID",e.SELECTED_TAGS="WORKSHOP.MATTERTAGS.SELECTED_TAGS",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_STEM_LABEL="WORKSHOP.MATTERTAGS.SHOW_STEM_LABEL",e.SHOW_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.SHOW_TOOLTIP_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.MATTERTAGS.SINGLE_FLOOR_EMPTY_MESSAGE",e.STEM_SLIDER_RESET_CTA="WORKSHOP.MATTERTAGS.STEM_SLIDER_RESET_CTA",e.STEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.STEM_TOOLTIP_MESSAGE",e.SUPPORTED_FORMATS_MESSAGE="WORKSHOP.MATTERTAGS.SUPPORTED_FORMATS_MESSAGE",e.TAG_NUM_TYPE="WORKSHOP.MATTERTAGS.TAG_NUM_TYPE",e.TAG_REORDER_ENTER_LABEL="WORKSHOP.MATTERTAGS.TAG_REORDER_ENTER_LABEL",e.TAG_REORDER_EXIT_LABEL="WORKSHOP.MATTERTAGS.TAG_REORDER_EXIT_LABEL",e.TAG_RESET_ORDER="WORKSHOP.MATTERTAGS.TAG_RESET_ORDER",e.TAG_TYPE="WORKSHOP.MATTERTAGS.TAG_TYPE",e.TAGS_EMPTY_MULTI_FLOOR_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_EMPTY_MULTI_FLOOR_MESSAGE",e.TAGS_EMPTY_SINGLE_FLOOR_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_EMPTY_SINGLE_FLOOR_MESSAGE",e.TAGS_HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.TAGS_ORDERED_BY_CUSTOM_LABEL="WORKSHOP.MATTERTAGS.TAGS_ORDERED_BY_CUSTOM_LABEL",e.TAGS_ORDERED_BY_LOCATION_LABEL="WORKSHOP.MATTERTAGS.TAGS_ORDERED_BY_LOCATION_LABEL",e.TAGS_RESET_MODAL_BODY="WORKSHOP.MATTERTAGS.TAGS_RESET_MODAL_BODY",e.TAGS_RESET_MODAL_TITLE="WORKSHOP.MATTERTAGS.TAGS_RESET_MODAL_TITLE",e.TAGS_SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.TITLE_DESC_LABEL="WORKSHOP.MATTERTAGS.TITLE_DESC_LABEL",e.TITLE_PLACEHOLDER="WORKSHOP.MATTERTAGS.TITLE_PLACEHOLDER",e.TYPE="WORKSHOP.MATTERTAGS.TYPE",e.UPLOAD_FILE="WORKSHOP.MATTERTAGS.UPLOAD_FILE",e.UPLOAD_IN_PROGRESS="WORKSHOP.MATTERTAGS.UPLOAD_IN_PROGRESS"}(u=e.MATTERTAGS||(e.MATTERTAGS={})),function(e){e.TYPE="WORKSHOP.MEASUREMENTS.TYPE",e.NUM_TYPE="WORKSHOP.MEASUREMENTS.NUM_TYPE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MEASUREMENTS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MEASUREMENTS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.OTHER_GROUP_LABEL="WORKSHOP.MEASUREMENTS.OTHER_GROUP_LABEL",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.MEASUREMENTS.RENAME_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.MEASUREMENTS.DELETE_LIST_ITEM_OPTION_CTA",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.MEASUREMENTS.LIST_ITEM_INPUT_PLACEHOLDER",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.MEASUREMENTS.MULTI_FLOOR_EMPTY_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.MEASUREMENTS.SINGLE_FLOOR_EMPTY_MESSAGE",e.SELECTED_MEASUREMENTS="WORKSHOP.MEASUREMENTS.SELECTED_MEASUREMENTS"}(h=e.MEASUREMENTS||(e.MEASUREMENTS={})),function(e){e.ERROR_TITLE="WORKSHOP.MODAL.ERROR_TITLE",e.SAVING_ERROR_TITLE="WORKSHOP.MODAL.SAVING_ERROR_TITLE",e.SAVING_ERROR_MESSAGE="WORKSHOP.MODAL.SAVING_ERROR_MESSAGE",e.NO="WORKSHOP.MODAL.NO",e.YES="WORKSHOP.MODAL.YES",e.CANCEL="WORKSHOP.MODAL.CANCEL",e.OK="WORKSHOP.MODAL.OK",e.DISCARD="WORKSHOP.MODAL.DISCARD",e.DELETE="WORKSHOP.MODAL.DELETE",e.SAVE="WORKSHOP.MODAL.SAVE"}(m=e.MODAL||(e.MODAL={})),function(e){e.HAPPINESS_TITLE="WORKSHOP.MODEL_RATING.HAPPINESS_TITLE",e.HAPPINESS_BODY="WORKSHOP.MODEL_RATING.HAPPINESS_BODY",e.QUALITY_ISSUES_TITLE="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_TITLE",e.QUALITY_ISSUES_LIGHTING="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_LIGHTING",e.QUALITY_ISSUES_3D_MESH="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_3D_MESH",e.QUALITY_ISSUES_COLORING="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_COLORING",e.QUALITY_ISSUES_IMAGE_QUALITY="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_IMAGE_QUALITY",e.NAVIGATION_ISSUES_TITLE="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_TITLE",e.NAVIGATION_ISSUES_BLOCKED_DOORWAYS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_BLOCKED_DOORWAYS",e.NAVIGATION_ISSUES_OBSTRUCTIONS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_OBSTRUCTIONS",e.NAVIGATION_ISSUES_MISALIGNED_SCANS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_MISALIGNED_SCANS",e.NAVIGATION_ISSUES_FLOOR_SEPARATION="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_FLOOR_SEPARATION",e.NAVIGATION_ISSUES_DISAPPEARING_FLOORS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_DISAPPEARING_FLOORS",e.FEEDBACK_TITLE="WORKSHOP.MODEL_RATING.FEEDBACK_TITLE",e.FEEDBACK_LABEL="WORKSHOP.MODEL_RATING.FEEDBACK_LABEL",e.THANK_YOU_HEADING="WORKSHOP.MODEL_RATING.THANK_YOU_HEADING",e.THANK_YOU_BODY="WORKSHOP.MODEL_RATING.THANK_YOU_BODY",e.THANK_YOU_CTA="WORKSHOP.MODEL_RATING.THANK_YOU_CTA",e.THANK_YOU_CTA_LINK_TEXT="WORKSHOP.MODEL_RATING.THANK_YOU_CTA_LINK_TEXT",e.SAVE="WORKSHOP.MODEL_RATING.SAVE",e.NEXT="WORKSHOP.MODEL_RATING.NEXT",e.PROGRESS="WORKSHOP.MODEL_RATING.PROGRESS"}(p=e.MODEL_RATING||(e.MODEL_RATING={})),function(e){e.SEARCH_GROUP_HEADER="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_HEADER",e.SEARCH_GROUP_HIDE_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_HIDE_ALL",e.SEARCH_GROUP_SHOW_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_SHOW_ALL",e.SEARCH_GROUP_DELETE_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_DELETE_ALL",e.SEARCH_ITEM_HIDE_TOOLTIP="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_HIDE_TOOLTIP",e.SEARCH_ITEM_SHOW_TOOLTIP="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_SHOW_TOOLTIP",e.SEARCH_ITEM_EDIT="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_EDIT",e.SEARCH_ITEM_DELETE="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_DELETE",e.SHOW_ONLY_IN_SEARCH="WORKSHOP.OBJECT_TAG_SUGGESTION.SHOW_ONLY_IN_SEARCH"}(E=e.OBJECT_TAG_SUGGESTION||(e.OBJECT_TAG_SUGGESTION={})),function(e){e.TYPE="WORKSHOP.PHOTOS.TYPE",e.NUM_TYPE="WORKSHOP.PHOTOS.NUM_TYPE",e.ADD_PHOTOS_CTA="WORKSHOP.PHOTOS.ADD_PHOTOS_CTA",e.ADDING_PHOTOS_CTA="WORKSHOP.PHOTOS.ADDING_PHOTOS_CTA",e.CATURE_PHOTO="WORKSHOP.PHOTOS.CATURE_PHOTO",e.BACK_TO_PHOTOS="WORKSHOP.PHOTOS.BACK_TO_PHOTOS",e.MODAL_TITLE="WORKSHOP.PHOTOS.MODAL_TITLE",e.NUM_SELECTED="WORKSHOP.PHOTOS.NUM_SELECTED",e.SELECT_ALL_CTA="WORKSHOP.PHOTOS.SELECT_ALL_CTA",e.UNSELECT_ALL_CTA="WORKSHOP.PHOTOS.UNSELECT_ALL_CTA",e.UPDATED_TOAST_MESSAGE="WORKSHOP.PHOTOS.UPDATED_TOAST_MESSAGE",e.SAVING_TOAST_MESSAGE="WORKSHOP.PHOTOS.SAVING_TOAST_MESSAGE",e.SAVED_TOAST_MESSAGE="WORKSHOP.PHOTOS.SAVED_TOAST_MESSAGE",e.SAVED_TOAST_CTA="WORKSHOP.PHOTOS.SAVED_TOAST_CTA",e.ERROR_MODAL_TITLE="WORKSHOP.PHOTOS.ERROR_MODAL_TITLE",e.ERROR_MODAL_MESSAGE="WORKSHOP.PHOTOS.ERROR_MODAL_MESSAGE",e.CAMERA_PITCH_RESET_MESSAGE="WORKSHOP.PHOTOS.CAMERA_PITCH_RESET_MESSAGE",e.ZOOM_RESET_MESSAGE="WORKSHOP.PHOTOS.ZOOM_RESET_MESSAGE",e.ZOOM_IN_MESSAGE="WORKSHOP.PHOTOS.ZOOM_IN_MESSAGE",e.ZOOM_OUT_MESSAGE="WORKSHOP.PHOTOS.ZOOM_OUT_MESSAGE",e.CANNOT_SAVE_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_MESSAGE",e.CANNOT_SAVE_SCAN_NUMBER_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.CANNOT_SAVE_SCAN_NUMBER_TOOLTIP_MESSAGE",e.CANNOT_SAVE_TOOLTIP_TITLE="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_TITLE",e.CANNOT_SAVE_TOOLTIP_CTA="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_CTA",e.SETTINGS_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.SETTINGS_TOOLTIP_MESSAGE",e.ASSETS_SETTING_LABEL="WORKSHOP.PHOTOS.ASSETS_SETTING_LABEL",e.SHOW_GRID_SETTING_LABEL="WORKSHOP.PHOTOS.SHOW_GRID_SETTING_LABEL",e.SNAPSHOT_ERROR_TOAST_MESSAGE="WORKSHOP.PHOTOS.SNAPSHOT_ERROR_TOAST_MESSAGE",e.SNAPSHOT_ERROR_TOAST_CTA="WORKSHOP.PHOTOS.SNAPSHOT_ERROR_TOAST_CTA",e.PHOTO_VIEWER="WORKSHOP.PHOTOS.PHOTO_VIEWER",e.NO_PHOTOS="WORKSHOP.PHOTOS.NO_PHOTOS",e.VIEW_PHOTOS="WORKSHOP.PHOTOS.VIEW_PHOTOS",e.UPDATE_NAME="WORKSHOP.PHOTOS.UPDATE_NAME",e.PHOTO_NAME="WORKSHOP.PHOTOS.PHOTO_NAME"}(S=e.PHOTOS||(e.PHOTOS={})),function(e){e.COLOR_NO_SELECTION_TEXT="WORKSHOP.PINS.COLOR_NO_SELECTION_TEXT",e.COLOR_STEM_EDITOR_TITLE="WORKSHOP.PINS.COLOR_STEM_EDITOR_TITLE",e.ICON_GROUP_RECENT="WORKSHOP.PINS.ICON_GROUP_RECENT",e.ICON_GROUP_IN_SPACE="WORKSHOP.PINS.ICON_GROUP_IN_SPACE",e.ICON_GROUP_PEOPLE="WORKSHOP.PINS.ICON_GROUP_PEOPLE",e.ICON_GROUP_FURNITURE="WORKSHOP.PINS.ICON_GROUP_FURNITURE",e.ICON_GROUP_BUILDINGS="WORKSHOP.PINS.ICON_GROUP_BUILDINGS",e.ICON_GROUP_OBJECTS="WORKSHOP.PINS.ICON_GROUP_OBJECTS",e.ICON_GROUP_SYMBOLS="WORKSHOP.PINS.ICON_GROUP_SYMBOLS",e.ICON_GROUP_CHARACTERS="WORKSHOP.PINS.ICON_GROUP_CHARACTERS",e.ICON_PLACEHOLDER="WORKSHOP.PINS.ICON_PLACEHOLDER",e.SEARCH_NO_RESULTS="WORKSHOP.PINS.SEARCH_NO_RESULTS",e.SEARCH_PLACEHOLDER="WORKSHOP.PINS.SEARCH_PLACEHOLDER"}(O=e.PINS||(e.PINS={})),function(e){e.NUM_TYPE="WORKSHOP.PLUGINS.NUM_TYPE",e.PANEL_TITLE="WORKSHOP.PLUGINS.PANEL_TITLE",e.SAVE_CONFIG="WORKSHOP.PLUGINS.SAVE_CONFIG",e.BACK_TO_ALL="WORKSHOP.PLUGINS.BACK_TO_ALL",e.ENABLED="WORKSHOP.PLUGINS.ENABLED",e.SAVE="WORKSHOP.PLUGINS.SAVE",e.CLOSE="WORKSHOP.PLUGINS.CLOSE"}(g=e.PLUGINS||(e.PLUGINS={})),function(e){e.ADD_LABEL="WORKSHOP.ROOMS.ADD_LABEL",e.APPLY_TO_ALL_VIEWS_ROOMS="WORKSHOP.ROOMS.APPLY_TO_ALL_VIEWS_ROOMS",e.DELETE="WORKSHOP.ROOMS.DELETE",e.AREA_IS_OUTDOORS="WORKSHOP.ROOMS.AREA_IS_OUTDOORS",e.AREA_IS_OUTDOORS_TOOLTIP="WORKSHOP.ROOMS.AREA_IS_OUTDOORS_TOOLTIP",e.ROOM_BOUNDS_SETTINGS="WORKSHOP.ROOMS.ROOM_BOUNDS_SETTINGS",e.ROOM_INACCESSIBLE_INFO="WORKSHOP.ROOMS.ROOM_INACCESSIBLE_INFO",e.ROOM_INCLUDE_IN_AREA="WORKSHOP.ROOMS.ROOM_INCLUDE_IN_AREA",e.ROOM_INCLUDE_IN_AREA_TOOLTIP="WORKSHOP.ROOMS.ROOM_INCLUDE_IN_AREA_TOOLTIP",e.ROOM_MISSING_DIMENSIONS="WORKSHOP.ROOMS.ROOM_MISSING_DIMENSIONS",e.ROOM_MISSING_HEIGHT="WORKSHOP.ROOMS.ROOM_MISSING_HEIGHT",e.ROOM_MISSING_INFO="WORKSHOP.ROOMS.ROOM_MISSING_INFO",e.LABEL="WORKSHOP.ROOMS.LABEL",e.RESET_TO_DEFAULT="WORKSHOP.ROOMS.RESET_TO_DEFAULT",e.SELECT="WORKSHOP.ROOMS.SELECT",e.UNDO="WORKSHOP.ROOMS.UNDO"}(_=e.ROOMS||(e.ROOMS={})),function(e){e.TYPE="WORKSHOP.SCANS.TYPE",e.NUM_TYPE="WORKSHOP.SCANS.NUM_TYPE",e.BATCH_SHOW_CTA="WORKSHOP.SCANS.BATCH_SHOW_CTA",e.BATCH_HIDE_CTA="WORKSHOP.SCANS.BATCH_HIDE_CTA",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.LIST_ITEM_TEXT="WORKSHOP.SCANS.LIST_ITEM_TEXT",e.FLOOR_EMPTY_MESSAGE="WORKSHOP.SCANS.FLOOR_EMPTY_MESSAGE",e.NO_HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.NO_HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.HLR_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.HLR_LIST_ITEM_TOOLTIP_MESSAGE",e.HLR_IN_OTHER_VIEWS="WORKSHOP.SCANS.HLR_IN_OTHER_VIEWS",e.START_LOCATION_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.START_LOCATION_LIST_ITEM_TOOLTIP_MESSAGE",e.START_LOCATION_SCAN_IN_OTHER_VIEWS="WORKSHOP.SCANS.START_LOCATION_SCAN_IN_OTHER_VIEWS",e.OVERLAY_HIDE_CTA="WORKSHOP.SCANS.OVERLAY_HIDE_CTA",e.OVERLAY_SHOW_CTA="WORKSHOP.SCANS.OVERLAY_SHOW_CTA",e.OVERLAY_HIDE_SCAN_CTA="WORKSHOP.SCANS.OVERLAY_HIDE_SCAN_CTA",e.OVERLAY_SHOW_SCAN_CTA="WORKSHOP.SCANS.OVERLAY_SHOW_SCAN_CTA",e.OVERLAY_PANORAMA_INFO="WORKSHOP.SCANS.OVERLAY_PANORAMA_INFO",e.OVERLAY_INFO="WORKSHOP.SCANS.OVERLAY_INFO",e.START_LOCATION_TOOLTIP_TITLE="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_TITLE",e.START_LOCATION_TOOLTIP_MESSAGE="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_MESSAGE",e.START_LOCATION_TOOLTIP_CTA="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_CTA",e.REMOVE_HLR_MODAL_TITLE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_TITLE",e.REMOVE_HLR_MODAL_MESSAGE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_MESSAGE",e.REMOVE_HLR_MODAL_BATCH_MESSAGE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_BATCH_MESSAGE",e.REMOVE_HLR_MODAL_WARNING="WORKSHOP.SCANS.REMOVE_HLR_MODAL_WARNING",e.REMOVE_SCANS_FROM_HLR_MODAL_TITLE="WORKSHOP.SCANS.REMOVE_SCANS_FROM_HLR_MODAL_TITLE",e.REMOVE_SCAN_FROM_HLR_MODAL_MESSAGE="WORKSHOP.SCANS.REMOVE_SCAN_FROM_HLR_MODAL_MESSAGE",e.REMOVE_BATCH_FROM_HLR_MODAL_SCANS_MESSAGE="WORKSHOP.SCANS.REMOVE_BATCH_FROM_HLR_MODAL_SCANS_MESSAGE",e.REMOVE_BATCH_FROM_HLR_MODAL_HIGHLIGHTS_MESSAGE="WORKSHOP.SCANS.REMOVE_BATCH_FROM_HLR_MODAL_HIGHLIGHTS_MESSAGE"}(T=e.SCANS||(e.SCANS={})),function(e){e.ADVANCED_SPACE_SEARCH_LABEL="WORKSHOP.SETTINGS.ADVANCED_SPACE_SEARCH_LABEL",e.ADVANCED_SPACE_SEARCH_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_SPACE_SEARCH_MESSAGE",e.ADVANCED_DOLLHOUSE_LABEL="WORKSHOP.SETTINGS.ADVANCED_DOLLHOUSE_LABEL",e.ADVANCED_DOLLHOUSE_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_DOLLHOUSE_MESSAGE",e.ADVANCED_FLOORPLAN_LABEL="WORKSHOP.SETTINGS.ADVANCED_FLOORPLAN_LABEL",e.ADVANCED_FLOORPLAN_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_FLOORPLAN_MESSAGE",e.ADVANCED_FLOOR_SELECTION_LABEL="WORKSHOP.SETTINGS.ADVANCED_FLOOR_SELECTION_LABEL",e.ADVANCED_FLOOR_SELECTION_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_FLOOR_SELECTION_MESSAGE",e.ADVANCED_HEADER="WORKSHOP.SETTINGS.ADVANCED_HEADER",e.ADVANCED_MEASUREMENT_MODE_LABEL="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_LABEL",e.ADVANCED_MEASUREMENT_MODE_MENU_LABEL="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_MENU_LABEL",e.ADVANCED_MEASUREMENT_MODE_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_MESSAGE",e.ADVANCED_ROOM_LABELS_LABEL="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_LABEL",e.ADVANCED_ROOM_LABELS_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_MESSAGE",e.ADVANCED_ROOM_LABELS_MENU_LABEL="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_MENU_LABEL",e.HIDE_LABELS_IN_DOLLHOUSE_OPTION="WORKSHOP.SETTINGS.HIDE_LABELS_IN_DOLLHOUSE_OPTION",e.HIDE_SAVED_MEASUREMENTS_OPTION="WORKSHOP.SETTINGS.HIDE_SAVED_MEASUREMENTS_OPTION",e.HLR_OPTION_LABEL="WORKSHOP.SETTINGS.HLR_OPTION_LABEL",e.HLR_OPTION_MESSAGE="WORKSHOP.SETTINGS.HLR_OPTION_MESSAGE",e.NAV_OPTION_ADVANCED="WORKSHOP.SETTINGS.NAV_OPTION_ADVANCED",e.NAV_OPTION_PRESENTATION="WORKSHOP.SETTINGS.NAV_OPTION_PRESENTATION",e.NAV_OPTION_TOUR_HLR="WORKSHOP.SETTINGS.NAV_OPTION_TOUR_HLR",e.NAV_OPTION_UNITS="WORKSHOP.SETTINGS.NAV_OPTION_UNITS",e.SHOW_SAVED_MEASUREMENTS_OPTION="WORKSHOP.SETTINGS.SHOW_SAVED_MEASUREMENTS_OPTION",e.SHOW_LABELS_IN_DOLLHOUSE_OPTION="WORKSHOP.SETTINGS.SHOW_LABELS_IN_DOLLHOUSE_OPTION",e.PRESENTATION_BACKGROUND_BLACK_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_BLACK_LABEL",e.PRESENTATION_BACKGROUND_GREY_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_GREY_LABEL",e.PRESENTATION_BACKGROUND_HEADER="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_HEADER",e.PRESENTATION_BACKGROUND_SUBHEADER="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_SUBHEADER",e.PRESENTATION_BACKGROUND_WHITE_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_WHITE_LABEL",e.PRESENTATION_HEADER="WORKSHOP.SETTINGS.PRESENTATION_HEADER",e.PRESENTATION_INFORMATION_EVERYTHING_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_EVERYTHING_LABEL",e.PRESENTATION_INFORMATION_EVERYTHING_MESSAGE="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_EVERYTHING_MESSAGE",e.PRESENTATION_INFORMATION_COMPACT_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_COMPACT_LABEL",e.PRESENTATION_INFORMATION_COMPACT_MESSAGE="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_COMPACT_MESSAGE",e.PRESENTATION_INFORMATION_HEADER="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_HEADER",e.PRESENTATION_INFORMATION_NONE_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_NONE_LABEL",e.ROOM_BOUNDS_TOGGLE_LABEL="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_LABEL",e.ROOM_BOUNDS_TOGGLE_MESSAGE_INFO="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_MESSAGE_INFO",e.ROOM_BOUNDS_TOGGLE_MESSAGE_DISCOVER="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_MESSAGE_DISCOVER",e.ROOM_BOUND_TOGGLE_IN_TOOL="WORKSHOP.SETTINGS.ROOM_BOUND_TOGGLE_IN_TOOL",e.TOUR_AND_HLR_HEADER="WORKSHOP.SETTINGS.TOUR_AND_HLR_HEADER",e.TOUR_DEFAULT_SETTING_LOCATION="WORKSHOP.SETTINGS.TOUR_DEFAULT_SETTING_LOCATION",e.TOUR_MODE_LEGACY_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_LEGACY_LABEL",e.TOUR_MODE_LEGACY_MESSAGE="WORKSHOP.SETTINGS.TOUR_MODE_LEGACY_MESSAGE",e.TOUR_MODE_NONE_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_NONE_LABEL",e.TOUR_MODE_STORY_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_STORY_LABEL",e.TOUR_MODE_STORY_MESSAGE="WORKSHOP.SETTINGS.TOUR_MODE_STORY_MESSAGE",e.TOUR_OPTION_LABEL="WORKSHOP.SETTINGS.TOUR_OPTION_LABEL",e.TOUR_OPTION_MESSAGE="WORKSHOP.SETTINGS.TOUR_OPTION_MESSAGE",e.UNITS_HEADER="WORKSHOP.SETTINGS.UNITS_HEADER",e.UNITS_SUBHEADER="WORKSHOP.SETTINGS.UNITS_SUBHEADER"}(A=e.SETTINGS||(e.SETTINGS={})),function(e){e.ENABLED_TOOLTIP_TITLE="WORKSHOP.START_LOCATION.ENABLED_TOOLTIP_TITLE",e.DISABLED_TOOLTIP_TITLE="WORKSHOP.START_LOCATION.DISABLED_TOOLTIP_TITLE",e.HIDDEN_SWEEP_MESSAGE="WORKSHOP.START_LOCATION.HIDDEN_SWEEP_MESSAGE",e.UNPLACED_360_MESSAGE="WORKSHOP.START_LOCATION.UNPLACED_360_MESSAGE",e.ENABLED_MESSAGE="WORKSHOP.START_LOCATION.ENABLED_MESSAGE",e.TOOLTIP_CTA="WORKSHOP.START_LOCATION.TOOLTIP_CTA",e.SET_NEW_LOCATION_CTA="WORKSHOP.START_LOCATION.SET_NEW_LOCATION_CTA",e.SETTING_NEW_LOCATION_CTA="WORKSHOP.START_LOCATION.SETTING_NEW_LOCATION_CTA",e.THUMBNAIL_PREVIEW_CTA="WORKSHOP.START_LOCATION.THUMBNAIL_PREVIEW_CTA",e.TAG_ORDER_RESET_TITLE="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_TITLE",e.TAG_ORDER_RESET_MESSAGE="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_MESSAGE",e.TAG_ORDER_RESET_HELP_LINK="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_HELP_LINK",e.TAG_ORDER_RESET_CONFIRM="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_CONFIRM",e.TAG_ORDER_RESET_CANCEL="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_CANCEL"}(v=e.START_LOCATION||(e.START_LOCATION={})),function(e){e.NUM_TYPE="WORKSHOP.TRIM.NUM_TYPE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.TRIM.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.TRIM.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.TRIM.DELETE_LIST_ITEM_OPTION_CTA",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.TRIM.RENAME_LIST_ITEM_OPTION_CTA",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.TRIM.LIST_ITEM_INPUT_PLACEHOLDER",e.DEFAULT_NAME="WORKSHOP.TRIM.DEFAULT_NAME",e.ALL_FLOORS="WORKSHOP.TRIM.ALL_FLOORS",e.EMPTY_FLOOR_MESSAGE="WORKSHOP.TRIM.EMPTY_FLOOR_MESSAGE",e.SIDE_POSE_CTA="WORKSHOP.TRIM.SIDE_POSE_CTA",e.TOP_POSE_CTA="WORKSHOP.TRIM.TOP_POSE_CTA",e.PERSPECTIVE_POSE_CTA="WORKSHOP.TRIM.PERSPECTIVE_POSE_CTA",e.SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.SIDE_POSE_TOOLTIP",e.LEFT_SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.LEFT_SIDE_POSE_TOOLTIP",e.RIGHT_SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.RIGHT_SIDE_POSE_TOOLTIP",e.TOP_POSE_TOOLTIP="WORKSHOP.TRIM.TOP_POSE_TOOLTIP",e.PERSPECTIVE_POSE_TOOLTIP="WORKSHOP.TRIM.PERSPECTIVE_POSE_TOOLTIP",e.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE="WORKSHOP.TRIM.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE",e.ADD_INDIVIDUAL_FLOOR_TRIM_TOOLTIP="WORKSHOP.TRIM.ADD_INDIVIDUAL_FLOOR_TRIM_TOOLTIP",e.ADD_ALL_FLOORS_TRIM_TOOLTIP="WORKSHOP.TRIM.ADD_ALL_FLOORS_TRIM_TOOLTIP",e.MAX_INDIVIDUAL_FLOOR_TRIMS_TOOLTIP="WORKSHOP.TRIM.MAX_INDIVIDUAL_FLOOR_TRIMS_TOOLTIP",e.MAX_ALL_FLOORS_TRIMS_TOOLTIP="WORKSHOP.TRIM.MAX_ALL_FLOORS_TRIMS_TOOLTIP",e.MAX_TRIMS_ERROR_MESSAGE="WORKSHOP.TRIM.MAX_TRIMS_ERROR_MESSAGE",e.KEEP_TOGGLE="WORKSHOP.TRIM.KEEP_TOGGLE",e.REMOVE_TOGGLE="WORKSHOP.TRIM.REMOVE_TOGGLE",e.TOOL_ROTATION_CTA="WORKSHOP.TRIM.TOOL_ROTATION_CTA",e.TOOL_POSITION_CTA="WORKSHOP.TRIM.TOOL_POSITION_CTA",e.TOOL_SCALE_CTA="WORKSHOP.TRIM.TOOL_SCALE_CTA",e.TOOL_ROTATION_TOOLTIP="WORKSHOP.TRIM.TOOL_ROTATION_TOOLTIP",e.TOOL_POSITION_TOOLTIP="WORKSHOP.TRIM.TOOL_POSITION_TOOLTIP",e.TOOL_SCALE_TOOLTIP="WORKSHOP.TRIM.TOOL_SCALE_TOOLTIP",e.DELETE_TRIM="WORKSHOP.TRIM.DELETE_TRIM",e.COMPLETE_TRIM="WORKSHOP.TRIM.COMPLETE_TRIM",e.ADD_TRIM="WORKSHOP.TRIM.ADD_TRIM",e.RESET_ROTATION="WORKSHOP.TRIM.RESET_ROTATION",e.HIDE_PANO_LIST_ITEM_TOOLTIP="WORKSHOP.TRIM.HIDE_PANO_LIST_ITEM_TOOLTIP",e.SHOW_PANO_LIST_ITEM_TOOLTIP="WORKSHOP.TRIM.SHOW_PANO_LIST_ITEM_TOOLTIP",e.MOVE_TRIM_ALL_FLOORS="WORKSHOP.TRIM.MOVE_TRIM_ALL_FLOORS"}(N=e.TRIM||(e.TRIM={})),function(e){e.NUM_TYPE="WORKSHOP.VIEWS_360.NUM_TYPE",e.START_LOCATION_REMOVAL_MESSAGE="WORKSHOP.VIEWS_360.START_LOCATION_REMOVAL_MESSAGE",e.START_LOCATION_MARKER_MESSAGE="WORKSHOP.VIEWS_360.START_LOCATION_MARKER_MESSAGE",e.START_LOCATION_IN_OTHER_VIEWS="WORKSHOP.VIEWS_360.START_LOCATION_IN_OTHER_VIEWS",e.DEFAULT_NAME="WORKSHOP.VIEWS_360.DEFAULT_NAME",e.OVERLAY_MESSAGE="WORKSHOP.VIEWS_360.OVERLAY_MESSAGE",e.OVERLAY_INFO_MISSING_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_MISSING_SWEEP",e.OVERLAY_INFO_CURRENT_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_CURRENT_SWEEP",e.OVERLAY_INFO_SELECTED_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_SELECTED_SWEEP",e.ROTATE_TOOLTIP_TITLE="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_TITLE",e.ROTATE_TOOLTIP_MESSAGE="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_MESSAGE",e.ROTATE_TOOLTIP_CTA="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_CTA",e.UNPLACED_CARD_MESSAGE="WORKSHOP.VIEWS_360.UNPLACED_CARD_MESSAGE",e.RENAME_ITEM_OPTION_CTA="WORKSHOP.VIEWS_360.RENAME_ITEM_OPTION_CTA",e.REMOVE_ITEM_OPTION_CTA="WORKSHOP.VIEWS_360.REMOVE_ITEM_OPTION_CTA",e.NO_VIEWS_MESSAGE="WORKSHOP.VIEWS_360.NO_VIEWS_MESSAGE"}(L=e.VIEWS_360||(e.VIEWS_360={})),function(e){e.TOAST_MESSAGE="WORKSHOP.VR.TOAST_MESSAGE",e.TOAST_CTA="WORKSHOP.VR.TOAST_CTA"}(I=e.VR||(e.VR={})),function(e){e.DEFURN_BULLET1="DEFURN_BULLET1",e.DEFURN_BULLET2="DEFURN_BULLET2",e.DEFURN_BULLET3="DEFURN_BULLET3",e.DEFURN_BULLET4="DEFURN_BULLET4",e.DEFURN_COMPLETE_TEXT1="DEFURN_COMPLETE_TEXT1",e.DEFURN_COMPLETE_TEXT2="DEFURN_COMPLETE_TEXT2",e.DEFURN_COMPLETE_TITLE="DEFURN_COMPLETE_TITLE",e.DEFURN_CONTACT_SUPPORT="DEFURN_CONTACT_SUPPORT",e.DEFURN_ERR_CONTACT="DEFURN_ERR_CONTACT",e.DEFURN_ERR_PERMS="DEFURN_ERR_PERMS",e.DEFURN_ERR_QUOTA="DEFURN_ERR_QUOTA",e.DEFURN_ERR_SETTINGS="DEFURN_ERR_SETTINGS",e.DEFURN_ERR_TITLE="DEFURN_ERR_TITLE",e.DEFURN_ERR_UNKNOWN="DEFURN_ERR_UNKNOWN",e.DEFURN_ERR_MODEL_VERSION_UNSUPPORTED="DEFURN_ERR_MODEL_VERSION_UNSUPPORTED",e.DEFURN_FEEDBACK="DEFURN_FEEDBACK",e.DEFURN_RATING_TITLE="DEFURN_RATING_TITLE",e.DEFURN_RATING_CONTENT="DEFURN_RATING_CONTENT",e.DEFURN_LOCKED_CTA="DEFURN_LOCKED_CTA",e.DEFURN_LOCKED_QUOTA="DEFURN_LOCKED_QUOTA",e.DEFURN_LOCKED_QUOTA2="DEFURN_LOCKED_QUOTA2",e.DEFURN_MODE_BUTTON="DEFURN_MODE_BUTTON",e.DEFURN_MODE_BUTTON_ACTIVE="DEFURN_MODE_BUTTON_ACTIVE",e.DEFURN_MORE="DEFURN_MORE",e.DEFURN_NEXT_TEXT1="DEFURN_NEXT_TEXT1",e.DEFURN_NEXT_TEXT2="DEFURN_NEXT_TEXT2",e.DEFURN_NEXT_TEXT3="DEFURN_NEXT_TEXT3",e.DEFURN_NEXT_TEXT4="DEFURN_NEXT_TEXT4",e.DEFURN_NEXT_TEXT5="DEFURN_NEXT_TEXT5",e.DEFURN_NEXT_TITLE="DEFURN_NEXT_TITLE",e.DEFURN_NUDGE_NEW="DEFURN_NUDGE_NEW",e.DEFURN_NUDGE_TEXT="DEFURN_NUDGE_TEXT",e.DEFURN_NUDGE_TITLE="DEFURN_NUDGE_TITLE",e.DEFURN_SETTINGS="DEFURN_SETTINGS",e.DEFURN_SETTINGS_VIEW="DEFURN_SETTINGS_VIEW",e.DEFURN_TEXT1="DEFURN_TEXT1",e.DEFURN_TEXT2="DEFURN_TEXT2",e.DEFURN_TITLE="DEFURN_TITLE",e.DEFURN_TOOL_HEADER="DEFURN_TOOL_HEADER",e.DEFURN_UNLOCKED_CANCEL="DEFURN_UNLOCKED_CANCEL",e.DEFURN_UNLOCKED_CTA="DEFURN_UNLOCKED_CTA",e.DEFURN_UNLOCKED_NOTIFY="DEFURN_UNLOCKED_NOTIFY"}(f=e.DEFURNISH||(e.DEFURNISH={}))}(E=e.WORKSHOP||(e.WORKSHOP={})),function(e){let t,i,n,s,a;!function(e){e.BETA_LABEL="GIZMO.PROJECT_PANEL.BETA_LABEL",e.BETA_FEEDBACK_LABEL="GIZMO.PROJECT_PANEL.BETA_FEEDBACK_LABEL",e.HEADER_LABEL="GIZMO.PROJECT_PANEL.HEADER_LABEL",e.HELP_LABEL="GIZMO.PROJECT_PANEL.HELP_LABEL",e.MODELS_HEADER_LABEL="GIZMO.PROJECT_PANEL.MODELS_HEADER_LABEL"}(t=e.PROJECT_PANEL||(e.PROJECT_PANEL={})),function(e){e.LOCK="GIZMO.MODEL_ACTIONS.LOCK",e.UNLOCK="GIZMO.MODEL_ACTIONS.UNLOCK",e.HIDE="GIZMO.MODEL_ACTIONS.HIDE",e.SHOW="GIZMO.MODEL_ACTIONS.SHOW",e.GROUP="GIZMO.MODEL_ACTIONS.GROUP",e.UNGROUP="GIZMO.MODEL_ACTIONS.UNGROUP",e.SNAP="GIZMO.MODEL_ACTIONS.SNAP"}(i=e.MODEL_ACTIONS||(e.MODEL_ACTIONS={})),function(e){e.ZOOM_IN_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_IN_LABEL",e.ZOOM_OUT_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_OUT_LABEL",e.ZOOM_FIT_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_FIT_LABEL",e.ZOOM_100_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_100_LABEL",e.ZOOM_50_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_50_LABEL"}(n=e.ZOOM_CONTROL||(e.ZOOM_CONTROL={})),function(e){e.ADD_TOOLTIP="GIZMO.TOOLBAR.ADD_TOOLTIP",e.MANUAL_ALIGN_TOOLTIP="GIZMO.TOOLBAR.MANUAL_ALIGN_TOOLTIP",e.MAGNET_TOOLTIP="GIZMO.TOOLBAR.MAGNET_TOOLTIP",e.MERGE_BUTTON_LABEL="GIZMO.TOOLBAR.MERGE_BUTTON_LABEL",e.MERGE_TOOLTIP="GIZMO.TOOLBAR.MERGE_TOOLTIP",e.MERGING_BUTTON_LABEL="GIZMO.TOOLBAR.MERGING_BUTTON_LABEL",e.MERGE_ERROR_BUTTON_LABEL="GIZMO.TOOLBAR.MERGE_ERROR_BUTTON_LABEL",e.REDO_TOOLTIP="GIZMO.TOOLBAR.REDO_TOOLTIP",e.SNAP_TOOLTIP="GIZMO.TOOLBAR.SNAP_TOOLTIP",e.THREE_POINT_ALIGN_TOOLTIP="GIZMO.TOOLBAR.THREE_POINT_ALIGN_TOOLTIP",e.UNDO_TOOLTIP="GIZMO.TOOLBAR.UNDO_TOOLTIP"}(s=e.TOOLBAR||(e.TOOLBAR={})),function(e){e.COMMENT_LABEL="GIZMO.FEEDBACK.COMMENT_LABEL",e.HEADER="GIZMO.FEEDBACK.HEADER",e.SUBMIT="GIZMO.FEEDBACK.SUBMIT",e.RATING_LABEL="GIZMO.FEEDBACK.RATING_LABEL",e.COMMENT_PROMPT="GIZMO.FEEDBACK.COMMENT_PROMPT"}(a=e.FEEDBACK||(e.FEEDBACK={}))}(S=e.GIZMO||(e.GIZMO={}))}(n||(n={}));const s=n},3767:(e,t,i)=>{"use strict";var n;i.d(t,{Q:()=>n}),n||(n={}),function(e){let t;!function(e){e.TITLE="TITLE"}(t=e._COMMON_||(e._COMMON_={})),e.COMPASS=Object.assign({},t),e.ROOMPLAN_MINIMAP=Object.assign({},t),e.MINIMAP=Object.assign({},t),e.SALESPERSON_INFO=Object.assign({},t),e.QUICK_LINK=Object.assign({},t)}(n||(n={}))},82030:(e,t,i)=>{"use strict";var n;function s(e){return e.match(/us|mm|lr$/i)?n.IMPERIAL:n.METRIC}i.d(t,{B:()=>s,t:()=>n}),function(e){e.IMPERIAL="imperial",e.METRIC="metric"}(n||(n={}))},95412:(e,t,i)=>{"use strict";i.d(t,{D:()=>a,z:()=>s});var n=i(30737);function s(e){if(!e)return n.Nm;if(a(e))return e;const t=e.toLocaleLowerCase();if(t in n.e4)return n.e4[t];const[i]=t.split("-");return i in n.e4?n.e4[i]:(n.Fc.find((e=>e.startsWith(t))),n.Nm)}function a(e){return n.Fc.includes(e)}},38216:(e,t,i)=>{"use strict";i.d(t,{Y:()=>a});var n=i(96540),s=i(17139);function a(){const{locale:e}=(0,n.useContext)(s.B);return e}},7232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>O});var n=i(23205),s=i(80328),a=i(14682),o=i.n(a),r=i(30737);async function l(e,t,i="./",n="json"){const s=function(e,t="./",i="json"){return e===r.Nm?`${t}locale/strings.${i}`:`${t}locale/messages/strings_${e}.${i}`}(e,i,n),a=await t.get(s);if("json"===n)return JSON.parse(a);throw new Error(`${n} not implemented`)}var d=i(8430),c=i(42046),u=i(95149),h=i(95412);var m=i(28997);var p=i(89465),E=i(99366);const S=e=>e.replace(/-/g,"_").toUpperCase();class O extends n.n{constructor(){super(...arguments),this.name="locale"}async init(e,t){const i=await t.market.waitForData(m.o);this._languageCode=function(e,t=(0,u.P3)("lang","")){const i=(0,d.Ul)(),n=(0,c.G)("SESSvl",""),s=null!=n?n:"",a=""===s||-1!==s.search(/^en/),o=t||(e?a?i:s:i);return(0,h.z)(o)}(e.isLoggedIn,i.getOverrideParam("lang",""));const n=this._languageCode.substr(0,2);this.polyglot=new(o())({locale:n,interpolation:{prefix:"%{",suffix:"}"},onMissingKey:e=>(this.log.warn("Missing phrase key:"+e),O.missingPrefix+e)});const a=(await t.getModuleBySymbol(s.ZF)).getProperty("assetBasePath"),p=await async function(e,t,i="./",n="json"){const s=await l(e,t,i,n);if(e===r.Nm)return s;const a=await l(r.Nm,t,i,n);return Object.assign(Object.assign({},a),s)}(this._languageCode,e.queue,a);this.polyglot.extend(p),this.localizeUnitsDisplay(),this.registerSettings(t)}t(e,t){return this.polyglot.t(e,t)}T(e,t,i="PLUGIN_KEYS",n){const s=t?`${i}.${S(t)}.${e}`:`${i}.${S(e)}`;return this.has(s)?this.t(s,n):t?t.replace(/-/g," ").split(" ").filter((e=>e.length>0)).map((e=>e[0].toUpperCase()+e.substr(1).toLowerCase())).join(" "):this.t(s,n)}has(e){return this.polyglot.has(e)}get languageCode(){return this._languageCode}localizeUnitsDisplay(){(0,p.LB)({unitsDisplayFeetSymbol:this.t(E.A.UNITS_DISPLAY.FEET_SYMBOL),unitsDisplayInchesSymbol:this.t(E.A.UNITS_DISPLAY.INCHES_SYMBOL),unitsDisplayHalfSpace:this.t(E.A.UNITS_DISPLAY.HALF_SPACE),unitsDisplayFeet:this.t(E.A.UNITS_DISPLAY.FEET),unitsDisplayInches:this.t(E.A.UNITS_DISPLAY.INCHES),unitsDisplayMeters:this.t(E.A.UNITS_DISPLAY.METERS),unitsDisplaySquareFeet:this.t(E.A.UNITS_DISPLAY.SQUARE_FEET),unitsDisplaySquareMeters:this.t(E.A.UNITS_DISPLAY.SQUARE_METERS),dimensionsSeparator:this.t(E.A.UNITS_DISPLAY.DIMENSIONS_SEPARATOR)})}async registerSettings(e){(await e.getModuleBySymbol(s.ZF)).registerSetting("Locale",r.cU,this.languageCode,!1)}}O.missingPrefix="FIX-"},30737:(e,t,i)=>{"use strict";i.d(t,{Fc:()=>n,Nm:()=>s,cU:()=>o,e4:()=>a});const n=["en-US","es","fr","de","ru","ja","zh-CN","zh-TW","ko","nl","it","pt"],s="en-US",a=Object.assign(Object.assign({},n.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.toLowerCase()]:t})),{})),{en:"en-US",zh:"zh-CN",cn:"zh-CN",jp:"ja"}),o="language_code"},38584:(e,t,i)=>{"use strict";var n;i.d(t,{J:()=>n}),function(e){e[e.NAVIGATION=0]="NAVIGATION",e[e.MODEL=1]="MODEL",e[e.EXT_LINK=2]="EXT_LINK"}(n||(n={}));n.NAVIGATION,n.MODEL,n.EXT_LINK},95577:(e,t,i)=>{"use strict";i.d(t,{Q:()=>d});var n=i(68909),s=i(84252),a=i(26197),o=i(93475),r=i(61693),l=i(45021);class d extends r.v{constructor(e){super(),this.sid="",this.layerId="",this.created=new Date,this.modified=new Date,this.enabled=!0,this.label="",this.description="",this.parsedDescription=[],this.anchorPosition=new n.Vector3,this.anchorNormal=new n.Vector3(0,1,0),this.stemVector=new n.Vector3(0,0,(0,o.hV)(1)),this.stemHeight=(0,o.hV)(1),this.stemVisible=!0,this.fileAttachments=new l.X,this.externalAttachments=new l.X,this.sandboxAttachments=new l.X,this.color=s.Q.MATTERTAG_BLUE.clone(),this.mediaType=a.q.none,this.mediaSrc="",this.keywords=new l.X,e&&Object.assign(this,e)}copy(e){var t;this.anchorNormal.copy(e.anchorNormal),this.anchorPosition.copy(e.anchorPosition),this.color.copy(e.color),this.created.setTime(e.created.getTime()),this.description=e.description,this.enabled=e.enabled,this.layerId=e.layerId,this.floorId=e.floorId,this.roomId=e.roomId,this.label=e.label,this.mediaType=e.mediaType,this.mediaSrc=e.mediaSrc,this.modified.setTime(e.modified.getTime()),this.sid=e.sid,this.stemVector.copy(e.stemVector),this.stemHeight=e.stemHeight,this.stemVisible=e.stemVisible,this.fileAttachments=e.fileAttachments,this.externalAttachments=e.externalAttachments,this.sandboxAttachments=e.sandboxAttachments,this.objectAnnotationId=e.objectAnnotationId,this.keywords.replace(e.keywords.values()),this.icon=e.icon,this.scanLinks=null===(t=e.scanLinks)||void 0===t?void 0:t.slice(),this.parsedDescription=[];for(const t of e.parsedDescription)this.parsedDescription.push({link:t.link&&{label:t.link.label.slice(),url:t.link.url.slice(),type:t.link.type,navigationData:t.link.navigationData&&{floorVisibility:t.link.navigationData.floorVisibility,mode:t.link.navigationData.mode,sweepIndex:t.link.navigationData.sweepIndex,panoId:t.link.navigationData.panoId,position:t.link.navigationData.position&&t.link.navigationData.position.clone(),quaternion:t.link.navigationData.quaternion.clone(),zoom:t.link.navigationData.zoom}},text:t.text,type:t.type});return this.commit(),this}clone(){return(new d).copy(this)}refresh(e){this.fileAttachments.forEach((t=>{const i=e[t.id];i&&(t.thumbnailUrl.refreshFrom(i.thumbnailUrl),t.url.refreshFrom(i.url))}))}getPin(){const{anchorPosition:e,color:t,stemVisible:i,floorId:n,roomId:s,stemVector:a,stemHeight:o,icon:r}=this;return{anchorPosition:e,color:`#${t.getHexString()}`,icon:r,floorId:n,roomId:s,stemEnabled:i,stemNormal:a,stemLength:o}}updateFromOptions(e,t,i){void 0!==e.color&&(this.color=new n.Color(e.color.r,e.color.g,e.color.b)),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.stemHeight&&(this.stemHeight=e.stemHeight,this.stemVector.copy(this.anchorNormal).setLength(e.stemHeight)),void 0!==e.stemVisible&&(this.stemVisible=e.stemVisible),void 0!==e.label&&(this.label=e.label.slice()),void 0!==e.description&&(this.description=e.description,this.parsedDescription=t.parse(this.description,i)),void 0!==e.floorId&&(this.floorId=e.floorId),void 0!==e.roomId&&(this.roomId=e.roomId),void 0!==e.normal&&(this.anchorNormal.copy(e.normal).normalize(),this.stemVector.copy(e.normal).setLength(this.stemHeight)),void 0!==e.position&&this.anchorPosition.copy(e.position),void 0!==e.keywords&&this.keywords.replace(e.keywords),Object.prototype.hasOwnProperty.call(e,"icon")&&(this.icon=e.icon),void 0!==e.objectAnnotationId&&(this.objectAnnotationId=e.objectAnnotationId)}}},26197:(e,t,i)=>{"use strict";var n;i.d(t,{q:()=>n}),function(e){e.text="text",e.link="link",e.photo="photo",e.video="video",e.rich="rich",e.none="none",e.error="error"}(n||(n={})),function(e){e.parse=t=>null!==t&&t in e?e[t]:e.none}(n||(n={}))},71306:(e,t,i)=>{"use strict";i.d(t,{Ee:()=>l,HI:()=>s,aw:()=>a,l:()=>o,rn:()=>r,vZ:()=>d});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={tags:e}}}s.id="MATTERTAG_DISC_POSITIONS";class a extends n.u{constructor(e){super(),this.payload=e}}a.id="ADD_MATTERTAG";class o extends n.u{constructor(e){super(),this.payload={sid:e}}}o.id="DELETE_MATTERTAG";class r extends n.u{constructor(e,t,i,n){super(),this.payload={sid:e,standardOptions:t,mediaOptions:i,positionOptions:n}}}r.id="MATTERTAG_EDIT";class l extends n.u{constructor(e,t,i=[],n){super(),this.payload={id:e,properties:t,fileAttachments:i,embed:n}}}l.id="MATTERTAG_NEW_SAVE";class d extends n.u{constructor(e,t,i=[],n=[],s){super(),this.payload={id:e,properties:t,pendingAttachments:i,removedAttachments:n,embed:s}}}d.id="MATTERTAG_SAVE"},93612:(e,t,i)=>{"use strict";i.d(t,{j:()=>o});var n=i(61589),s=i(54998),a=i(16276);class o extends n.B{constructor(e){if(super(),this.name="tag",this.mattertags=(0,s.y)(),e)for(const t of e)this.mattertags.set(t.sid,t);this.commit()}clear(){for(const e of this.mattertags.keys)this.removeTag(e)}clone(){return(new o).copy(this)}copy(e){return o.copyTagCollection(this,e),this}static copyTagCollection(e,t){const i=e.mattertags,n=t.mattertags;for(const t of i.keys)n.has(t)||e.removeTag(t);for(const t of n)e.addTag(t)}get collection(){return this.mattertags}addTag(e){this.mattertags.has(e.sid)?this.mattertags.get(e.sid).copy(e):this.mattertags.set(e.sid,e.clone())}removeTag(e){return this.mattertags.delete(e)}getTag(e){return this.mattertags.get(e)}getTagList(){return this.mattertags.keys}getTagCount(){return this.mattertags.length}getTagKeywords(){let e=[];return this.iterate((t=>{t.enabled&&t.keywords.length&&(e=e.concat(t.keywords.values()))})),e}iterate(e){for(const t of this.mattertags)e(t)}*[Symbol.iterator](){for(const e of this.mattertags)yield e}set onStale(e){this.hydrate=e}updateOnStaleCallbacks(e){if(!this.hydrate)return;const t=e?this.getTag(e):this.mattertags;(0,a._)(t,(async()=>{const e=await this.hydrate();this.iterate((t=>{t.refresh(e)}))}))}}},66172:(e,t,i)=>{"use strict";i.d(t,{Qn:()=>a,T8:()=>o,Yt:()=>s});var n=i(14754);class s extends n.QB{constructor(e){super(),this.sid=e}}class a extends n.QB{constructor(e){super(),this.url=e}}class o extends n.QB{constructor(e,t){super(),this.sid=e,this.view=t}}},2409:(e,t,i)=>{"use strict";i.d(t,{qE:()=>n,vg:()=>s});const n="features/mattertags",s="embedlyKey"},73328:(e,t,i)=>{"use strict";i.d(t,{P:()=>E,V:()=>S});var n=i(54244),s=i(88488),a=i(35652),o=i(76735),r=i(68909),l=i(64464),d=i(95577),c=i(55150),u=i(79889),h=i(86014),m=i(91183);const p=new a.Ay("mds-mattertag-serializer");class E{constructor(e,t){this.fileAttachmentDeserializer=e,this.externalAttachmentDeserializer=t}deserialize(e){var t,i;if(!e||!this.validate(e))return p.debug("Deserialized invalid Mattertag data from MDS",e),null;const n=e.anchorPosition?o.U$.fromVisionVector(e.anchorPosition):void 0,a=e.stemNormal?o.U$.fromVisionVector(e.stemNormal):void 0,h=new d.Q;if(h.sid=e.id,h.layerId=(null===(t=e.layer)||void 0===t?void 0:t.id)||"",h.label=e.label||"",h.description=e.description||"",h.enabled=!!e.enabled,e.color&&(h.color=new r.Color(e.color)),h.created=(0,s.X)(e.created),h.modified=(0,s.X)(e.modified),e.floor&&e.floor.id&&(h.floorId=e.floor.id),e.room&&e.room.id&&(h.roomId=e.room.id),n&&(h.anchorPosition=n),e.media&&(h.mediaSrc=e.media),e.mediaType&&(h.mediaType=(0,l.og)(e.mediaType)),h.fileAttachments.replace(this.getFileAttachments(h,e)),h.externalAttachments.replace(this.getExternalAttachments(h,e)),(0,c.Et)(e.stemLength)&&(h.stemHeight=e.stemLength),a&&a instanceof r.Vector3){const t=a.clone().setLength(h.stemHeight);h.anchorNormal=a,h.stemVector=t,h.stemVisible=!!e.stemEnabled}else h.stemVector=new r.Vector3(0,0,0),h.stemVisible=!!e.stemEnabled;return h.objectAnnotationId=null===(i=e.objectAnnotation)||void 0===i?void 0:i.id,h.keywords.replace(e.keywords||[]),(0,u.s)(e.icon)&&(h.icon=e.icon),h}validate(e){if(!e)return!1;return["id","created","modified","enabled"].every((t=>t in e))}getFileAttachments(e,t){return this.fileAttachmentDeserializer?this.deserializeFileAttachments(t).sort(((e,t)=>e.created.getTime()-t.created.getTime())):[]}getExternalAttachments(e,t){if(!this.externalAttachmentDeserializer)return[];const i=this.deserializeExternalAttachments(t);if(t.media&&t.mediaType){const n=(0,l.sM)(e.sid,t.media,t.mediaType);n&&i.push(n)}return i.sort(((e,t)=>e.created.getTime()-t.created.getTime()))}deserializeExternalAttachments(e){const t=e.externalAttachments||[],i=[];return t.forEach((t=>{var s;const a=null===(s=this.externalAttachmentDeserializer)||void 0===s?void 0:s.deserialize(t);a&&(a.parentId=e.id,a.parentType=n.pi.MATTERTAG,i.push(a))})),i}deserializeFileAttachments(e){const t=e.fileAttachments||[],i=[];return t.forEach((t=>{var s;const a=null===(s=this.fileAttachmentDeserializer)||void 0===s?void 0:s.deserialize(t);a&&(a.parentId=e.id,a.parentType=n.pi.MATTERTAG,i.push(a))})),i}}const S=function(){const e=(0,h.V)(),t=(0,m.Y)();return new E(e,t)}},64464:(e,t,i)=>{"use strict";i.d(t,{KP:()=>c,n4:()=>u,og:()=>d,sM:()=>m});var n=i(26197),s=i(53360),a=i(20489),o=i(70835),r=i(16276),l=i(76863);function d(e){const t={[l.yg.VIDEO]:n.q.video,[l.yg.PHOTO]:n.q.photo,[l.yg.RICH]:n.q.rich};return e in t?t[e]:n.q.none}function c(e){switch(e){case s.zu.VIDEO:return n.q.video;case s.zu.IMAGE:return n.q.photo;case s.zu.RICH:return n.q.rich}return n.q.none}function u(e){switch(e){case n.q.video:return l.yg.VIDEO;case n.q.photo:return l.yg.PHOTO;case n.q.rich:return l.yg.RICH}return null}function h(e){return{[l.yg.VIDEO]:s.zu.VIDEO,[l.yg.PHOTO]:s.zu.IMAGE,[l.yg.RICH]:s.zu.RICH}[e]}function m(e,t,i){return t?new a.o({id:(0,o.W0)(),created:new Date,parentId:e,parentType:l.pi.MATTERTAG,mediaType:h(i),src:t,url:new r.f(t,null),thumbnailUrl:new r.f(t,null),category:s._A.EXTERNAL}):null}},93227:(e,t,i)=>{"use strict";i.d(t,{s:()=>r});var n=i(61589),s=i(76484),a=i(41733),o=i(1803);class r extends n.B{constructor(){super(...arguments),this.name="measure-mode",this._groups=[],this._groupMap={},this.onDataChangedCallbacks=new Set,this._editingGroupId=null,this._creatingGroupId=null,this.phase=s.hb.CLOSED,this.pressProgress=-1,this.selectedGroupIndexObservable=new a.L(-1),this.pointPositionObservable=new a.L(null),this.idVisibility=new Set}onPhaseChanged(e){return this.onPropertyChanged("phase",e)}onDataChanged(e){return(0,o.Sh)((()=>this.onDataChangedCallbacks.add(e)),(()=>this.onDataChangedCallbacks.delete(e)),!0)}onPointPositionChanged(e){return this.pointPositionObservable.onChanged(e)}onSelectedGroupIndexChanged(e){return this.selectedGroupIndexObservable.onChanged(e)}modeActive(){return this.phase!==s.hb.CLOSED}isEditingOrCreating(){return this.phase>=s.hb.EDITING}*groups(){for(const e of this._groups)yield e}get selectedGroupSid(){const e=this.selectedGroupInfo;return e&&e.info.sid?e.info.sid:null}get selectedGroupInfo(){return-1===this.selectedGroupIndex?null:this.getGroupInfo(this.selectedGroupIndex)}get creatingGroupId(){return this._creatingGroupId}set creatingGroupId(e){this._creatingGroupId=e}get editingGroupId(){return this._editingGroupId}set editingGroupId(e){this._editingGroupId=e}get groupCount(){return this._groups.length}get pointPosition(){return this.pointPositionObservable.value}get selectedGroupIndex(){return this.selectedGroupIndexObservable.value}getGroupInfo(e){return e<0||e>=this._groups.length?null:this._groups[e]}getGroupInfoBySid(e){return e?this._groupMap[e]:null}setPhase(e){this.phase!==e&&(this.phase=e,this.commit())}notifyDataChanged(){this.onDataChangedCallbacks.forEach((e=>e()))}setPointPosition(e){this.pointPositionObservable.value=e}setSelectedGroupIndex(e){this.selectedGroupIndexObservable.value=e}repopulate(e){this.clear();for(const t of e){const e=t.clone();this._groups.push(e),this._groupMap[t.info.sid]=e}this.notifyDataChanged()}clear(){this._groups=[],this._groupMap={}}}},76484:(e,t,i)=>{"use strict";var n;i.d(t,{TI:()=>s,Vk:()=>a,hb:()=>n,nm:()=>r,y_:()=>o}),function(e){e[e.CLOSED=0]="CLOSED",e[e.IDLE=1]="IDLE",e[e.EDITING=2]="EDITING",e[e.CREATING=3]="CREATING",e[e.POINT_PLACED=4]="POINT_PLACED",e[e.CREATING_NEXT_POINT=5]="CREATING_NEXT_POINT",e[e.CONFIRMING_POINT=6]="CONFIRMING_POINT"}(n||(n={}));const s={mobile:{[n.POINT_PLACED]:!0,[n.EDITING]:!0},desktop:{[n.CREATING]:!0,[n.CREATING_NEXT_POINT]:!0,[n.EDITING]:!0}},a={mobile:{[n.CREATING_NEXT_POINT]:!0,[n.POINT_PLACED]:!0,[n.EDITING]:!0},desktop:{[n.CREATING]:!0,[n.CREATING_NEXT_POINT]:!0,[n.EDITING]:!0}},o={[n.IDLE]:!0,[n.EDITING]:!0},r={[n.IDLE]:!0,[n.EDITING]:!0}},96492:(e,t,i)=>{"use strict";i.d(t,{CN:()=>o,SH:()=>s,tm:()=>a});var n=i(18268);class s extends n.u{}s.id="MEASUREMENT_DELETE_SELECTED";class a extends n.u{constructor(e){super(),this.payload={index:e}}}a.id="MEASUREMENT_DELETE";class o extends n.u{constructor(...e){super(),this.payload={sids:e}}}o.id="MEASUREMENT_LIST_DELETION"},64536:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});var n=i(18268);class s extends n.u{constructor(e,t,i=!0){super(),this.payload={on:e,dimWhileActive:void 0!==t?t:e,editable:i}}}s.id="MEASURE_MODE_TOGGLE"},89567:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var n=i(18268);class s extends n.u{}s.id="MEASURE_START"},36026:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={index:e}}}s.id="MEASUREMENT_SELECT"},75387:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(18268);class s extends n.u{}s.id="MEASURE_STOP"},89330:(e,t,i)=>{"use strict";i.d(t,{g:()=>r});var n=i(35596),s=i(45983),a=i(41309),o=i(16603);function r(){const e=(0,o.i)(a.Q$.Measurements,!0);return(0,s.F)()!==n.lg.SHOWCASE||e}},89546:(e,t,i)=>{"use strict";i.d(t,{g:()=>a});var n=i(47952),s=i(93227);const a=(0,n.v)(s.s)},78683:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var n=i(96540),s=i(89546);function a(e){const t=(0,s.g)(),[i,a]=(0,n.useState)((null==t?void 0:t.getGroupInfoBySid(e))||null);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){a((null==t?void 0:t.getGroupInfoBySid(e))||null)}const n=t.onDataChanged(i);return i(),()=>n.cancel()}),[t,e]),i}},80494:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(43802),s=i(93227),a=i(76484);const o=(0,n.r)(s.s,"phase",a.hb.CLOSED)},24684:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});var n=i(96540),s=i(89546);function a(){const e=(0,s.g)(),[t,i]=(0,n.useState)(e?e.selectedGroupSid:null);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){e&&i(e.selectedGroupSid)}const n=e.onSelectedGroupIndexChanged(t);return t(),()=>n.cancel()}),[e]),t}},81456:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n="features/measurements-nudge"},86265:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.sid=e,this.vrSupported=t}}},35062:(e,t,i)=>{"use strict";i.d(t,{q:()=>o});var n=i(61589),s=i(79166),a=i(54998);class o extends n.B{constructor(){super(),this.name="model",this.models=new a.E}get model(){return this.getModel()}addModel(e,t){this.activeModelId||(this.activeModelId=e),this.models.set(e,t)}getModel(e=this.activeModelId){return this.models.get(e)}hasModel(e){return this.models.has(e)}hasDiscoverUrl(){return[s.K7.PUBLIC,s.K7.UNLISTED].includes(this.getModel().visibility)}}},79166:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{K7:()=>n,vn:()=>s,wR:()=>a}),function(e){e.PUBLIC="public",e.UNLISTED="unlisted",e.PASSWORD="password",e.PRIVATE="private",e.UNKNOWN="unknown"}(n||(n={})),function(e){e.MAX="max",e.LOD0="lod0",e.LOD1="lod1",e.LOD2="lod2",e.LOD3="lod3"}(s||(s={})),function(e){e.custom="custom",e.basic1="basic1",e.medium1="medium1"}(a||(a={}))},50579:(e,t,i)=>{"use strict";i.d(t,{h:()=>a});var n=i(47952),s=i(35062);const a=(0,n.v)(s.q)},52147:(e,t,i)=>{"use strict";i.d(t,{Lj:()=>a,k5:()=>d,ov:()=>r,qu:()=>o,tQ:()=>c,wD:()=>s,wx:()=>l});var n=i(95149);const s="social_sharing",a="branding_enabled",o="presentation_mls_mode",r="presentation_title",l="presentation_about",d="discover_space_url",c={urlTemplateToken:"",urlTemplateOverride:(0,n.P3)("tiledtemplate",null)}},94221:(e,t,i)=>{"use strict";i.d(t,{r:()=>a});var n=i(12183),s=i(68909);class a extends s.Mesh{constructor(){super(...arguments),this.isModelMesh=!0,this.raycastEnabled=!0}get2DPickingPriority(){return n.X.default}}},27987:(e,t,i)=>{"use strict";var n;i.d(t,{R:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.RAYCAST=1]="RAYCAST"}(n||(n={}))},94325:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var n=i(68909),s=i(61589);const a=[-5,-5,-5,5,5,5];class o extends s.B{constructor(e=a,t=a,i=new n.Vector3){super(),this.name="mesh-data",this.extendedBounds=new n.Box3,this.extendedSize=new n.Vector3,this.meshBounds=new n.Box3,this.meshCenter=new n.Vector3,this.centerOfMass=new n.Vector3,this.meshSize=new n.Vector3,this.meshRadius=0,this.maxPlacementRadius=0,this._meshGroups={floors:new Map,rooms:new Map,roomsByFloor:new Map},this.meshSubGroupsFromPoint=e=>{const t=[];for(const[i,n]of this.meshGroups.rooms)n.boundingBox.containsPoint(e)&&t.push(i);return t},this.meshBounds.setFromArray(e),this.meshBounds.getCenter(this.meshCenter),this.meshBounds.getSize(this.meshSize),this.meshRadius=this.meshSize.clone().multiplyScalar(.5).length(),this.maxPlacementRadius=3*this.meshRadius,this.extendedBounds.setFromArray(t),this.extendedBounds.getSize(this.extendedSize),this.centerOfMass.copy(i)}get meshGroups(){return this._meshGroups}}},77475:(e,t,i)=>{"use strict";var n;i.d(t,{M:()=>n}),function(e){e[e.LOW=1]="LOW",e[e.MEDIUM=2]="MEDIUM",e[e.HIGH=3]="HIGH",e[e.ULTRA=4]="ULTRA"}(n||(n={}))},73657:(e,t,i)=>{"use strict";i.d(t,{EX:()=>s,Gf:()=>o,Ny:()=>r,qZ:()=>a});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.loaded=e,this.total=t}}class a extends n.QB{}class o extends n.QB{}class r extends n.QB{}},97624:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>a,Vp:()=>l,_Z:()=>o,lg:()=>d,sz:()=>r,u7:()=>c,xT:()=>s});var n=i(95149);const s={flipDownload:(0,n.P3)("flipDownload",!0),flipUpload:(0,n.P3)("flipUpload",!0),debugLOD:(0,n.P3)("debuglod",!1),debugRttQuality:(0,n.P3)("debugQuality",!1),debugRttScores:(0,n.P3)("debugScores",!1),debugRttClear:(0,n.P3)("debuglodrtt",!0),debugPauseTexStream:(0,n.P3)("textureStreamPause",!1),sightingMaxAge:(0,n.P3)("meshSightingMaxAge",600),textureTileSize:(0,n.P3)("chunkTileSize",512)},a=s,o="wireframeEnabled",r="features/tiled_mesh",l="Trim floor by(%)",d=0,c={FADE_OPAQUE:1,FADE_ABOVE:.05,FADE_BELOW:.2,FADE_TILE_VISIBLE_THRESHOLD:.6,FADE_CLICKABLE_THRESHOLD:.051,FADE_IN_VALUE:.2,FADE_IN_END_ANGLE:55,FADE_IN_START_ANGLE:35,FADE_IN_HOVER_BOOST_VALUE:.3,FADE_BELOW_START:0,FADE_BELOW_MULT:1}},44076:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(61589);class s extends n.B{constructor(){super(),this.name="model-rating-view-data",this.isDialogVisible=!1,this.setDialogVisible=e=>{this.isDialogVisible=void 0!==e?e:!this.isDialogVisible,this.commit()}}}},55147:(e,t,i)=>{"use strict";i.d(t,{c:()=>s,i:()=>a});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={toVisible:e}}}s.id="TOGGLE_MODEL_RATING_DIALOG";class a extends n.u{constructor(e,t=!1){super(),this.payload={rating:e,didFinish:t}}}a.id="SUBMIT_MODEL_RATING"},55384:(e,t,i)=>{"use strict";i.d(t,{n:()=>n,s:()=>s});const n="features/model-rating-dialog",s="features/model-rating-dialog-prompt"},1902:(e,t,i)=>{"use strict";i.d(t,{Dd:()=>c,E4:()=>r,Jq:()=>s,UZ:()=>d,aj:()=>l,r:()=>u,rH:()=>o,sD:()=>a});var n=i(18268);class s extends n.u{constructor(){super()}}s.id="LOCK_NAVIGATION";class a extends n.u{constructor(){super()}}a.id="UNLOCK_NAVIGATION";class o extends n.u{constructor(e){super(),this.payload=e}}o.id="FOCUS_ON_POINT_INSIDE";class r extends n.u{constructor(e){super(),this.payload=e}}r.id="FOCUS_ON_PIN_INSIDE";class l extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}l.id="MOVE_TO_SWEEP";class d extends n.u{constructor(e){super(),this.payload=e}}d.id="NAVIGATE_TO_LABEL";class c extends n.u{constructor(e){super(),this.payload={room:e}}}c.id="NAVIGATE_TO_ROOM";class u extends n.u{constructor(e){super(),this.payload={pose:e}}}u.id="NAVIGATE_TO_POSE"},11707:(e,t,i)=>{"use strict";i.d(t,{$l:()=>g,C0:()=>l,FV:()=>r,I8:()=>o,IN:()=>v,RJ:()=>a,T0:()=>O,Xc:()=>E,Xt:()=>N,YC:()=>T,dz:()=>p,e3:()=>L,eg:()=>c,er:()=>A,iT:()=>h,kr:()=>S,lf:()=>_,sL:()=>u,up:()=>m,x7:()=>d});var n=i(18268),s=i(71136);class a extends n.u{}a.id="REGISTER_NOTES_TOOLS";class o extends n.u{constructor(e){super(),this.payload={opened:e}}}o.id="NOTES_MODE_TOGGLE";class r extends n.u{constructor(e,t,i,n,a=s.fl.FadeToBlack){super(),this.payload={noteId:e,dock:t,edit:i,commentId:n,transition:a}}}r.id="NOTES_OPEN_NOTE_COMMENT";class l extends n.u{constructor(){super()}}l.id="NOTE_START_ADD";class d extends n.u{constructor(e){super(),this.payload={text:e}}}d.id="NOTE_ADD";class c extends n.u{constructor(){super()}}c.id="NOTE_CANCEL_ADD";class u extends n.u{constructor(){super()}}u.id="NOTE_CLOSE";class h extends n.u{constructor(e,t){super(),this.payload={noteId:e,text:t}}}h.id="NOTE_SAVE_CHANGES";class m extends n.u{}m.id="COMMENT_CANCEL_CHANGES";class p extends n.u{constructor(e){super(),this.payload={opened:e}}}p.id="NOTE_POPUP_EDITOR_TOGGLE";class E extends n.u{constructor(e,t){super(),this.payload={noteId:e,properties:t}}}E.id="NOTE_APPEARANCE_SAVE";class S extends n.u{constructor(e,t){super(),this.payload={noteId:e,resolved:t}}}S.id="NOTE_RESOLVE";class O extends n.u{constructor(e){super(),this.payload={noteId:e}}}O.id="NOTE_DELETE";class g extends n.u{constructor(e,t){super(),this.payload={filter:e,enabled:t}}}g.id="NOTES_TOGGLE_FILTER";class _ extends n.u{constructor(e){super(),this.payload={id:e}}}_.id="NOTE_COMMENT_EDIT";class T extends n.u{constructor(e,t,i){super(),this.payload={noteId:e,text:t,replyId:i}}}T.id="COMMENT_ADD";class A extends n.u{constructor(e,t,i){super(),this.payload={noteId:e,commentId:t,text:i}}}A.id="COMMENT_UPDATE";class v extends n.u{constructor(e,t){super(),this.payload={noteId:e,commentId:t}}}v.id="COMMENT_DELETE";class N extends n.u{constructor(e){super(),this.payload={ids:e}}}N.id="FILTER_VISIBLE_NOTES_COMMAND";class L extends n.u{constructor(e){super(),this.payload={enabled:e}}}L.id="NOTES_VISIBILITY_FILTER_ENABLED"},66083:(e,t,i)=>{"use strict";i.d(t,{nc:()=>s,uV:()=>o});var n=i(16616);const s="features/notes-mode",a="spaces.notes";function o(e,t,i,o,r){if(!e)return!1;let l=!1;const d=t.hasPolicy(a),c=i.isCommenter();return l=d&&c,l&&(o.setProperty(s,l),o.setProperty(n.nH,l)),l}},16616:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>u,Jz:()=>c,KZ:()=>l,NB:()=>r,RU:()=>a,_d:()=>o,nH:()=>s,u4:()=>d});var n=i(54244);const s="features/notes",a=30,o=15,r=n.OQ.VIEWER,l=500,d=500,c="#5c7fff",u=Object.freeze({noteMesh:{scale:{nearBound:1.5,farBound:4.8,maxSize:80,minSize:40,baseViewportSize:800,responsiveness:100}},colors:["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#5c7fff","#03a9f4","#417505","#00bcd4","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"],stem:{length:.23,width:1,opacity:1,transparent:!1,color:"white",alphaTest:.05},anchor:{size:.1},navigation:{anyDistance:!0,visibleDistance:8,cameraClearance:.1,tiltTolerance:25}})},66931:(e,t,i)=>{"use strict";i.d(t,{FZ:()=>r,_H:()=>s});var n=i(79085);const s="object-insights-feature",a="showcase/objects_beta_access",o="objectAnnotations";function r(e,t,i,r){const l=t.getModelOrganizationId(),d=(0,n.NW)(i),c=(0,n.LT)(e,null!=l?l:null),u=!!l&&e.hasMembershipFlag(l,a),h=r.getOverrideParam(o,-1),m=!(0===h)&&(d&&c&&u||1===h);return r.setProperty(s,m),m}},87705:(e,t,i)=>{"use strict";i.d(t,{$6:()=>E,Dw:()=>o,SO:()=>d,Tv:()=>p,WU:()=>c,aY:()=>m,b7:()=>l,bI:()=>r,g1:()=>a,mK:()=>h,pz:()=>u,qD:()=>s});var n=i(8430);const s=1e3/60,a=.05,o=.1/60,r=.02,l=25,d=3,c=3,u=.16,h=(0,n.cX)()?45:(0,n.Zm)()?20:35,m=.01,p=2,E=Math.PI/2/1e3},2747:(e,t,i)=>{"use strict";i.d(t,{k:()=>d});var n=i(12183),s=i(35652),a=i(68909),o=i(14048),r=i(90627);const l=new s.Ay("InstancedPinHeads");class d extends a.InstancedMesh{constructor(e,t,i,s){const l=new a.PlaneGeometry(r.N,r.N),d=new a.InstancedBufferAttribute(new Float32Array(e),1);l.setAttribute("instanceAlpha",d);const c=new a.InstancedBufferAttribute(new Float32Array(4*e),4),u=new a.InstancedBufferAttribute(new Float32Array(e),1);l.setAttribute("instanceMaskRect",c),l.setAttribute("instanceStrokeWidth",u);const h=s&&i?new o.ce(t,i):new o.GS(t,!0);super(l,h,e),this.updateMaskTexture=e=>{if(this.material&&this.material instanceof o.ce){const t=this.material.uniforms;t.mask.value!==e&&(t.mask.value=e,this.material.uniformsNeedUpdate=!0)}},this.material=h,this.maxCount=e,this.opacityAttrib=d,this.maskRectAttrib=c,this.strokeWidthAttrib=u,this.setColorAt(0,new a.Color),this.renderedPins=[],this.renderOrder=n.X.pins}update(e){let t=0;this.renderedPins.length=0;for(const i of e){if(!i.visible)continue;if(t>=this.maxCount){l.error("Instance count is too small!");continue}this.setMatrixAt(t,i.pinHeadMatrix),this.setColorAt(t,i.pinColor),this.opacityAttrib.setX(t,i.opacity*i.opacityAnimation.value*i.opacityScale),this.strokeWidthAttrib.setX(t,i.pinStrokeWidth);const e=i.pinIconUVRect;e&&this.maskRectAttrib.setXYZW(t,e.minU,e.minV,e.maxU,e.maxV),t++,this.renderedPins.push(i)}this.count=t,this.visible=this.count>0,this.instanceMatrix.needsUpdate=!0,this.opacityAttrib.needsUpdate=!0,this.maskRectAttrib.needsUpdate=!0,this.strokeWidthAttrib.needsUpdate=!0,this.instanceColor?(this.instanceColor.needsUpdate=!0,this.computeBoundingSphere()):l.error("Instance color should be defined")}}},8468:(e,t,i)=>{"use strict";i.d(t,{R:()=>r});var n=i(12183),s=i(68909),a=i(90627),o=i(90280);class r extends s.Mesh{constructor(e,t,i,a){super(t,i),this.geomScale=new s.Vector3(1,1,1),this.userData.sid=e,this.worldPosition=new s.Vector3,this.layers.mask=a.mask,this.renderOrder=n.X.pins,this.scale.set(.01,.01,.01)}dispose(){this.material.dispose(),this.geometry.dispose()}updatePosition(e){this.position.copy(e.stemNormal).setLength(Math.max(e.stemLength,.01))}update(e,t,i){this.quaternion.copy(e.quaternion);const n=a.A.pinHeadMesh.scale;this.getWorldPosition(this.worldPosition);const s=(0,o.cv)(this.worldPosition,e,t,i,n);this.scale.set(s*this.geomScale.x,s*this.geomScale.y,s*this.geomScale.z)}}},14048:(e,t,i)=>{"use strict";i.d(t,{ce:()=>N,Zo:()=>v,GS:()=>L,N$:()=>T,Kg:()=>I,Ko:()=>A});var n=i(68909),s=i(90627),a=i(59039),o=i.n(a),r=i(94857),l=i.n(r),d=i(65388),c=i.n(d),u=i(2834),h=i.n(u),m=i(98840),p=i.n(m),E=i(45550),S=i.n(E);const O={pinHead:{uniforms:{alpha:{type:"f",value:1},color:{type:"c",value:new n.Color},bg:{type:"t",value:null},mask:{type:"t",value:null}},vertexShader:o(),fragmentShader:l()},pinStem:{uniforms:{pinHeadMatrix:{value:new n.Matrix4},resolution:{value:new n.Vector2},alpha:{value:1}},vertexShader:c(),fragmentShader:h()},pinSelected:{vertexShader:p(),fragmentShader:S()}};var g=i(99436),_=i(11274);class T extends _.${constructor(e,t,i,s){const a=n.UniformsUtils.clone(O.pinHead.uniforms);a.bg.value=t,a.mask.value=i,a.color.value.copy(e),a.alpha.value=s,super({fragmentShader:O.pinHead.fragmentShader,vertexShader:O.pinHead.vertexShader,uniforms:a,name:"PinHeadMaterial",transparent:!0})}}class A extends _.${constructor(){const e=n.UniformsUtils.clone(O.pinStem.uniforms);super({fragmentShader:O.pinStem.fragmentShader,vertexShader:O.pinStem.vertexShader,uniforms:e,name:"PinStemMaterial",linewidth:s.A.stem.width,opacity:s.A.stem.opacity,transparent:s.A.stem.transparent,alphaTest:s.A.stem.opacity*s.A.stem.alphaTest})}}class v extends _.${constructor(){const e=n.UniformsUtils.clone(O.pinStem.uniforms);super({defines:{INSTANCED:!0},fragmentShader:O.pinStem.fragmentShader,vertexShader:O.pinStem.vertexShader,uniforms:e,name:"InstancedPinStemMaterial",linewidth:s.A.stem.width,opacity:s.A.stem.opacity,transparent:s.A.stem.transparent,alphaTest:s.A.stem.opacity*s.A.stem.alphaTest})}}class N extends _.${constructor(e,t){const i=n.UniformsUtils.clone(O.pinHead.uniforms);i.bg.value=e,i.mask.value=t,super({defines:{INSTANCED:!0},fragmentShader:O.pinHead.fragmentShader,vertexShader:O.pinHead.vertexShader,uniforms:i,name:"InstancedPinHeadMaterial",transparent:!0})}}class L extends _.${constructor(e,t){super({defines:{INSTANCED:t},vertexShader:g.A.basicTextured.vertexShader,fragmentShader:g.A.basicTextured.fragmentShader,uniforms:{alpha:{value:1},tDiffuse:{value:e}},name:"InstancedPinHeadCustomMaterial",transparent:!0})}}class I extends _.${constructor(){super({depthTest:!0,depthWrite:!1,transparent:!0,side:n.DoubleSide,vertexShader:O.pinSelected.vertexShader,fragmentShader:O.pinSelected.fragmentShader})}}},30411:(e,t,i)=>{"use strict";i.d(t,{U:()=>r});var n=i(61589),s=i(41733),a=i(89998),o=i(54998);class r extends n.B{constructor(){super(),this.name="pins-view-data",this.pins=new o.E,this.creatingPin=!1,this.pinEditorStateObservable=(0,s.p)(a.ce.IDLE),this.selectedPinObservable=(0,s.p)(null),this.focusedPinObservable=(0,s.p)(null),this.editableObservable=(0,s.p)(!1),this.progressObservable=(0,s.p)(-1),this.screenPositionObservable=(0,s.p)(null),this.canPlaceObservable=(0,s.p)(!0),this.canAddObservable=(0,s.p)(!0),this.iteratePins=e=>{this.pins.forEach(e)}}onPinUpdate(e){return this.pins.onElementChanged(e)}updatePin(e){this.pins.set(e.id,e)}getPin(e){return this.pins.get(e)}removePin(e){this.pins.get(e)&&this.pins.delete(e)}removePinsByType(e){this.pins.forEach(((t,i)=>{t.pinType===e&&this.pins.delete(t.id)}))}get creatingNewPin(){return this.creatingPin}setSelectedPinId(e){this.selectedPinObservable.value=e}get selectedPinId(){return this.selectedPinObservable.value}onSelectedPinChanged(e){return this.selectedPinObservable.onChanged(e)}setFocusedPin(e){this.focusedPinObservable.value=e}get focusedPin(){return this.focusedPinObservable.value}onFocusedPinChanged(e){return this.focusedPinObservable.onChanged(e)}setPinEditorState(e){switch(e){case a.ce.IDLE:this.creatingPin=!1;break;case a.ce.CREATING:this.creatingPin=!0}this.pinEditorStateObservable.value=e}get pinEditorState(){return this.pinEditorStateObservable.value}onPinEditorStateChanged(e){return this.pinEditorStateObservable.onChanged(e)}setProgress(e){this.progressObservable.value=e}get progress(){return this.progressObservable.value}onProgressChanged(e){const t=this.progressObservable.onChanged(e);return t.renew(),t}get screenPosition(){return this.screenPositionObservable.value}setScreenPosition(e){this.screenPositionObservable.value=e}onScreenPositionChanged(e){return this.screenPositionObservable.onChanged(e)}get isPinEditable(){return this.editableObservable.value}setEditablePin(e){this.editableObservable.value=e}onPinEditableChanged(e){return this.editableObservable.onChanged(e)}get canAdd(){return this.canAddObservable.value}setCanAdd(e){this.canAddObservable.value=e}onCanAddChanged(e){return this.canAddObservable.onChanged(e)}get canPlace(){return this.canPlaceObservable.value}setCanPlace(e){this.canPlaceObservable.value=e}onCanPlaceChanged(e){return this.canPlaceObservable.onChanged(e)}}},7628:(e,t,i)=>{"use strict";i.d(t,{Ct:()=>O,FI:()=>g,HR:()=>m,Mx:()=>v,Ni:()=>c,Rg:()=>a,Zs:()=>r,f5:()=>p,fZ:()=>s,g4:()=>E,gx:()=>h,hd:()=>l,mP:()=>o,mf:()=>_,uf:()=>S,wd:()=>T,wn:()=>u,yq:()=>A,z5:()=>d});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={enabled:e}}}s.id="ENABLE_PIN_CREATION";class a extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,editable:i}}}a.id="SELECT_PIN";class o extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}o.id="UNSELECT_PIN";class r extends n.u{constructor(e,t,i,n){super(),this.payload={id:e,pin:t,pinType:i,backgroundTexture:n}}}r.id="CREATE_PIN";class l extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}l.id="PIN_CREATION_CANCEL";class d extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}d.id="REMOVE_PIN";class c extends n.u{constructor(e){super(),this.payload={pinType:e}}}c.id="REMOVE_PIN_TYPE";class u extends n.u{constructor(e){super(),this.payload={pinViews:e}}}u.id="UPDATE_PIN_VIEWS";class h extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,properties:i}}}h.id="UPDATE_PIN";class m extends n.u{constructor(e,t=!1){super(),this.payload={id:e,editable:t}}}m.id="TOGGLE_PIN_EDITING";class p extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,visible:i}}}p.id="CHANGE_PIN_VISIBILITY";class E extends n.u{constructor(e,t){super(),this.payload={pinType:e,visible:t}}}E.id="CHANGE_PIN_TYPE_VISIBILITY";class S extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,opacity:i}}}S.id="CHANGE_PIN_OPACITY";class O extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,scale:i}}}O.id="CHANGE_PIN_OPACITY_SCALE";class g extends n.u{constructor(e,t,i=[]){super(),this.payload={pinType:e,opacity:t,skipIds:i}}}g.id="CHANGE_PIN_TYPE_OPACITY";class _ extends n.u{}_.id="PIN_SELECTION_CLEAR";class T extends n.u{constructor(){super()}}T.id="PIN_CLICK_ELSEWHERE";class A extends n.u{constructor(){super()}}A.id="PLACE_PIN";class v extends n.u{constructor(e,t,i){super(),this.payload={id:e,pos:t,previousPos:i}}}v.id="MOVE_PIN"},89998:(e,t,i)=>{"use strict";var n;i.d(t,{DH:()=>r,ce:()=>o,ob:()=>a,tf:()=>s,yY:()=>n}),function(e){e.MATTERTAG="mattertag",e.NOTE="note",e.OBJECT="object"}(n||(n={}));const s={[n.MATTERTAG]:"simple-tag-pin",[n.NOTE]:"comment-large",[n.OBJECT]:"simple-tag-small"};var a,o,r;!function(e){e.DEFAULT="default",e.HIGHLIGHTED="highlighted",e.DIMMED="dimmed"}(a||(a={})),function(e){e.IDLE="idle",e.CREATING="creating",e.PRESSING="pressing",e.PLACING="placing",e.PLACED="placed"}(o||(o={})),function(e){e.UP="up",e.UP_LEFT="up-left",e.UP_RIGHT="up-right",e.DOWN="down",e.DOWN_LEFT="down-left",e.DOWN_RIGHT="down-right",e.LEFT="left",e.RIGHT="right"}(r||(r={}))},19974:(e,t,i)=>{"use strict";i.d(t,{RG:()=>s,cC:()=>d,fD:()=>l,lY:()=>c,oX:()=>a,wk:()=>r,yi:()=>o});var n=i(14754);class s extends n.QB{constructor(e,t,i){super(),this.id=e,this.hovering=t,this.pinType=i}}class a extends n.QB{constructor(e,t){super(),this.id=e,this.pinType=t}}class o extends n.QB{constructor(e,t,i){super(),this.id=e,this.pinType=t,this.pinPos=i}}class r extends n.QB{}class l extends n.QB{}class d extends n.QB{constructor(e,t,i,n){super(),this.id=e,this.pinType=t,this.pinPos=i,this.previousPos=n}}class c extends n.QB{constructor(e,t){super(),this.id=e,this.pinType=t}}},90627:(e,t,i)=>{"use strict";i.d(t,{A:()=>s,N:()=>n});const n=1,s=Object.freeze({anchor:{size:1},selection:{size:1},stem:{length:.23,width:1,opacity:1,transparent:!0,color:"white",alphaTest:.05},pinHeadMesh:{scale:{nearBound:1.5,farBound:4.8,maxSize:80,minSize:40,baseViewportSize:800,responsiveness:100}}})},47905:(e,t,i)=>{"use strict";var n;i.d(t,{D:()=>n}),function(e){e[e.None=0]="None",e[e.AnonymousFetch=1]="AnonymousFetch",e[e.UserFetch=2]="UserFetch"}(n||(n={}))},64294:(e,t,i)=>{"use strict";i.d(t,{Y:()=>O,T:()=>S});var n=i(41733),s=i(45021),a=i(54998),o=i(61589),r=i(10657),l=i(9192),d=i(86014);const c=new(i(35652).Ay)("mds-plugin-config-deserializer");class u{constructor(){this.fileAttachmentDeserializer=new d.x}deserialize(e){if(!e)return c.debug("Deserialized invalid Plugin data from MDS",e),null;const t=e.fileAttachments.map((e=>this.fileAttachmentDeserializer.deserialize(e))).filter((e=>null!==e));return{name:e.name,id:e.id,attachments:t}}}class h extends r.g{constructor(e){super(e),this.deserializer=new u}async read(e){const t={modelId:this.getViewId(),prefetchKey:this.prefetchKey,includeLayers:this.readLayerId()};return this.query(l.GetPlugins,t,e).then((e=>{var t,i;const n=null===(i=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.model)||void 0===i?void 0:i.sdkPlugins;if(!n||!Array.isArray(n))return[];return n.map((e=>this.deserializer.deserialize(e))).filter((e=>null!==e))}))}async update(e){const t={};void 0!==e.version&&(t.currentVersion=e.version),void 0!==e.attachments&&(t.fileAttachments=e.attachments);const i={modelId:this.getViewId(),name:e.name,patch:t};await this.mutate(l.UpdatePlugin,i).catch((e=>{e.message.includes("Version for plugin does not exist")}))}async delete(e){if(!e)return;const t={modelId:this.getViewId(),name:e};return this.mutate(l.DeletePlugin,t).then((()=>{}))}}var m=i(95149),p=i(71294),E=i(47905);const S=`${window.location.pathname}`+"api/v1/plugins";class O extends o.B{constructor(){super(),this.name="available-plugin-data",this.availablePlugins=new a.E,this.lastSavedConfiguration=new s.X,this.currentlyConfiguring=new n.L(null),this.pluginConfigReady=new p.i,this.defaultStrict=(0,m.P3)("sesStrict",null,"boolean"),this.defaultFetchLevel=E.D.None,this.disabled=(0,m.P3)("noPlugins",!1),this.manifestUrl=(0,m.P3)("manifestUrl"),this.pluginVersion=(0,m.P3)("pluginVersion"),this.preventLiveEdit=(0,m.P3)("preventWorkshopPluginPreview",!1),this.eventTarget=new a.E,this._isSetup=!1}get mdsIsSetup(){return this._isSetup}add(e){if(/[?&]nolink=1/.test(window.location.search)){const name=e.name??null;if(name!==null){if(name.indexOf('quick-link')!==-1||name.indexOf('salesperson-info')!==-1){e.applicationKey=null;}}}this.availablePlugins.set(e.name,e)}setupConfigStore(e,t,i){this._mdsStore=new h({context:e,readonly:t,includeDisabled:!t,baseUrl:i}),this._isSetup=!0,this.commit()}getMdsResult(){var e,t;return null!==(t=null===(e=this._mdsStore)||void 0===e?void 0:e.read())&&void 0!==t?t:Promise.resolve([])}updateMds(e){var t;null===(t=this._mdsStore)||void 0===t||t.update(e)}deleteMdsById(e){var t;null===(t=this._mdsStore)||void 0===t||t.delete(e)}}},40725:(e,t,i)=>{"use strict";i.d(t,{XX:()=>n,_x:()=>a,eV:()=>o,p_:()=>s});const n="spaces.plugins",s="spaces.plugins.config",a="spaces.plugins.debug",o="spaces.plugins.groups"},40859:(e,t,i)=>{"use strict";i.d(t,{C:()=>o});var n=i(61589),s=i(54998);const a=function(e){return`${e.applicationKey}.${e.id}`};class o extends n.B{constructor(){super(...arguments),this.plugins=(0,s.y)(),this.visibilityData=new s.E}get(e){const t=a(e);return this.plugins.get(t)}set(e,t,i){const n=a(e);this.plugins.set(n,{applicationKey:e.applicationKey,module:t,id:e.id,dispose:i})}delete(e){const t=a(e);this.plugins.delete(t)}}},58838:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(61589);class s extends n.B{constructor(e=[]){super(),this.policies=e,this.name="policy-data"}hasPolicy(e){return!!this.getPolicy(e)}getPolicy(e){return this.policies.find((t=>t.name===e))||null}}},60536:(e,t,i)=>{"use strict";i.d(t,{y:()=>a});var n=i(96540),s=i(4968);function a(e){const t=(0,s.M)(),[i,a]=(0,n.useState)((null==t?void 0:t.getPolicy(e))||null);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){a((null==t?void 0:t.getPolicy(e))||null)}const n=t.onChanged(i);return i(),()=>null==n?void 0:n.cancel()}),[t,e]),i}},4968:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(47952),s=i(58838);const a=(0,n.v)(s.L)},79085:(e,t,i)=>{"use strict";i.d(t,{LT:()=>r,NW:()=>o,n3:()=>l});const n="spaces.elements",s="cloud_ui/elements_beta_access",a="elements";function o(e){return!!e.getPolicy(n)}function r(e,t){return!!t&&e.hasMembershipFlag(t,s)}function l(e,t){e.trackFeatures(`${a}:${o(t)}`)}},33630:(e,t,i)=>{"use strict";i.d(t,{$:()=>a,t:()=>o});var n=i(68909),s=i(61589);class a extends s.B{constructor(){super(...arguments),this.name="pointer",this.hit=null,this.hits=[],this.pointerNdcPosition=new n.Vector2,this.pointerScreenPosition=new n.Vector2,this.pointerOrigin=new n.Vector3,this.pointerDirection=new n.Vector3,this.pointerRay=new n.Ray}}class o{constructor(e,t,i,n){this.point=e,this.normal=t,this.object=i,this.intersection=n,this.face={normal:t}}}},11116:(e,t,i)=>{"use strict";i.d(t,{Is:()=>o,X7:()=>a,aD:()=>r,cl:()=>l,q6:()=>s});var n=i(18268);class s extends n.u{}s.id="RequestRenderTargetCommand";class a extends n.u{constructor(e,t){super(),this.payload={renderTarget:e,context:t}}}a.id="CONTEXT2D_CAPTURE";class o extends n.u{constructor(e,t,i){super(),this.payload={renderTarget:e,sceneObject:t,camera:i}}}o.id="SCREEN_CAPTURE";class r extends n.u{constructor(e,t,i){super(),this.payload={renderTarget:e,sceneObject:t,camera:i}}}r.id="RENDER_TO_CUBEMAP";class l extends n.u{constructor(e,t,i=0){super(),this.payload={renderTarget:e,texture:t,heading:i}}}l.id="EQUIRECTANGULAR_CAPTURE"},32785:(e,t,i)=>{"use strict";i.d(t,{uz:()=>s,G8:()=>o,y:()=>a,_h:()=>r});let n=null;const s=async(e,t)=>{const s=new Uint8Array(e.width*e.height*4);if(e.readRenderTargetData(s),!n){const e=await Promise.all([i.e(8287),i.e(9478),i.e(6780)]).then(i.bind(i,89478));n=e.createJpegEncodeWorker()}const a=s.buffer,o=await n.exec({data:a,width:e.width,height:e.height,options:{exif:t,quality:85,flipY:!0}},[a]);return new Uint8Array(o.data)},a=e=>new Blob([e],{type:"image/jpeg"}),o=e=>"data:image/jpg;base64,"+(e=>{const t=[];for(let i=0;i'http://ns.adobe.com/xap/1.0/\0'+t+""+e+"00"+t+""+e+"equirectangularTrue"+i+""+n+'Matterport CameraMatterport Cloud'},12165:(e,t,i)=>{"use strict";i.d(t,{A:()=>ae});var n=i(23999),s=i(70835),a=i(56245),o=i(15281),r=i(71669),l=i(1803),d=i(35652),c=i(68909),u=i(24141),h=i(28293);class m{constructor(){this.data=new Map,this.addedObservers=new Set,this.updatedObservers=new Set,this.childUpdatedObservers=new Set,this.deletedObservers=new Set}clear(){this.data.clear()}get(e){return this.data.get(e)}set(e,t){this.data.set(e,t)}delete(e){this.data.delete(e)}has(e){return this.data.has(e)}get size(){return this.data.size}onChanged(e){return(0,l.Sh)((()=>{e.onAdded&&this.addedObservers.add(e.onAdded),e.onUpdated&&this.updatedObservers.add(e.onUpdated),e.onChildUpdated&&this.childUpdatedObservers.add(e.onChildUpdated),e.onRemoved&&this.deletedObservers.add(e.onRemoved)}),(()=>{e.onAdded&&this.addedObservers.delete(e.onAdded),e.onUpdated&&this.updatedObservers.delete(e.onUpdated),e.onChildUpdated&&this.childUpdatedObservers.delete(e.onChildUpdated),e.onRemoved&&this.deletedObservers.delete(e.onRemoved)}),!0)}}var p=i(54664),E=i(35341),S=i.n(E),O=i(81194);class g extends O.x{onRun(e){const t=this.data.getNode(e.nodeId),i={x:t.x,z:t.z};return this.data._updateNode(e.nodeId,e.newPos),this.data._updateDependentsForNodes(t),{prevPos:i}}onInvert(e,t){this.data._updateNode(t.nodeId,e.prevPos);const i=this.data.getNode(t.nodeId);this.data._updateDependentsForNodes(i)}merge(e){return e instanceof g&&e.inputs.nodeId===this.inputs.nodeId&&(this.inputs.newPos=e.inputs.newPos,!0)}name(){return"MoveNode"}}class _ extends O.x{onRun(e){const t=this.data._createNode(e.from,e.floorId),i=this.data._createNode(e.to,e.floorId),n=this.data._createWall(e.type,t,i,e.width,[],.5);return{fromId:t.id,toId:i.id,wall:n.id}}onInvert(e,t){this.data._deleteWall(e.wall),this.data._deleteNode(e.fromId),this.data._deleteNode(e.toId)}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.toId)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddFloatingEdge"}}class T extends O.x{onRun(e){const t=this.data.getWall(e.wallId),i=t.from.getPoint(),n=t.to.getPoint();return this.data._updateNode(t.from.id,e.newFromPos),this.data._updateNode(t.to.id,e.newToPos),this.data._updateDependentsForNodes(t.from,t.to),{prevFromPos:i,prevToPos:n}}onInvert(e,t){const i=this.data.getWall(t.wallId);this.data._updateNode(i.from.id,e.prevFromPos),this.data._updateNode(i.to.id,e.prevToPos),this.data._updateDependentsForNodes(i.from,i.to)}merge(e){return e instanceof T&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.newFromPos=e.inputs.newFromPos,this.inputs.newToPos=e.inputs.newToPos,!0)}name(){return"MoveEdge"}}class A extends O.x{onRun(e){const t=this.data.getNode(e.fromId),i=this.data._createNode(e.to,t.floorId),n=this.data._createWall(e.type,t,i,e.width,[],.5);return{toId:i.id,wall:n.id}}onInvert(e,t){this.data._deleteWall(e.wall),this.data._deleteNode(e.toId)}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.toId)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddTrailingEdgeToNode"}}var v=i(87634),N=i(86773);class L extends O.x{run(){super.run(),this.computeRooms(),this._outputCache&&this._outputCache.updateNodeDependencies.length&&this.data._updateDependentsForNodes(...this._outputCache.updateNodeDependencies.map((e=>this.data.getNode(e))))}onInvert(e,t){throw new Error("Method not implemented.")}invert(){let e;if(!this._outputCache)throw new Error("Attempted to inverse a data action before running it");e=this.onInvert(this._outputCache,this.inputs),this._outputCache=null;for(const e of this.modificationRecord.createdRooms)this.data._deleteRoom(e.id);const t=e=>({points:e.points.map((e=>this.data.getNode(e.id))),walls:new Set(Array.from(e.walls.values()).map((e=>this.data.getWall(e.id)))),holesCW:e.holesCW.map((e=>e.map((e=>this.data.getNode(e.id))))),holes:e.holes.map((e=>new Set(Array.from(e.values()).map((e=>this.data.getWall(e.id))))))});for(const e of this.modificationRecord.updatedRooms){const{points:i,walls:s,holesCW:a,holes:o}=t(e),r=new n.pQ({id:e.id,name:e.name,points:i,walls:s,holesCW:a,holes:o,location:e.location,includeInAreaCalc:e.includeInAreaCalc,hide:e.hide,keywords:e.keywords.slice(),classifications:e.classifications.slice(),height:e.height,ceiling:e.ceiling});this.data._updateRoom(e.id,r)}for(const e of this.modificationRecord.deletedRooms){const{points:i,walls:n,holesCW:s,holes:a}=t(e);this.data._createRoom({id:e.id,name:"",points:i,walls:n,holesCW:s,holes:a,location:e.location,includeInAreaCalc:e.includeInAreaCalc,hide:e.hide,keywords:e.keywords.slice(),classifications:e.classifications.slice(),height:e.height,ceiling:e.ceiling})}if(e){const t=e.map((e=>this.data.getNode(e)));this.data._updateDependentsForNodes(...t)}}wallsForLoop(e){const t=new Set;for(let i=0;ie.map((e=>this.wallsForLoop(e))))),r=t.map((e=>new Set(this.wallsForLoop(e)))),l=new Array;for(const e of this.data.rooms.values())for(let t=0;ti.has(t)?e+1:e),0);n>0&&l.push({score:n/Math.max(i.size,e.walls.size),newWalls:i.size-n,oldRoomId:e.id,oldRoomClassifications:e.classifications,newRoomIndex:t})}const d=new Set,c=new Array(t.length),u=new Array(t.length);l.sort(((e,t)=>{var i,n;return t.score-e.score||((null===(i=this.data.rooms.get(t.oldRoomId))||void 0===i?void 0:i.area)||0)-((null===(n=this.data.rooms.get(e.oldRoomId))||void 0===n?void 0:n.area)||0)}));for(const{oldRoomId:e,newRoomIndex:t,oldRoomClassifications:i,newWalls:n}of l)d.has(e)||c[t]||(c[t]=e,d.add(e)),!u[t]&&n<=2&&(u[t]=i);for(let e=0;e{const o=`${s.id}/${a.id}`,r=this.data.traceWallsFromTo(s,a),l=e=>{if(e.has(o))return!0;for(let t=0;t=.01?l(i)||e.push((0,u.N5)(r)):d<=-.01&&(l(n)||t.push((0,u.N5)(r).reverse()))};for(const e of this.data.walls.values())s(e.from,e.to),s(e.to,e.from);return{regions:e,holes:t}}mapHolesToRegions(e,t){const i=t.map((e=>[])),n=t.map((e=>(0,u.eW)(e))),s=t.map((e=>e.map((e=>[e.x,e.z]))));for(const a of e){const e=(0,u.eW)(a);let o=9999999,r=-1;const l=a.map((e=>[e.x,e.z]));for(let i=0;i=d||a[0].floorId!==t[i][0].floorId||(0,N.Q)(l,s[i])&&d=0&&i[r].push(a)}return i}}function I(e,t){const i=e.getWall(t.wallId).clone(),n=e.getEdgeCountForNode(i.from),s=e.getEdgeCountForNode(i.to);e._deleteWall(t.wallId);let a="none";1===n&&1===s?(a="both",e._deleteNode(i.from.id),e._deleteNode(i.to.id)):1===n?(a="from",e._deleteNode(i.from.id)):1===s?(a="to",e._deleteNode(i.to.id)):a="none";const o=[];switch(a){case"from":o.push(i.to.id);break;case"to":o.push(i.from.id);break;case"none":o.push(i.from.id,i.to.id)}return{deletedWall:i,deletedNodes:a,updateNodeDependencies:o}}function f(e,t){const i=t.deletedWall;let n,s;switch(t.deletedNodes){case"both":n=e._createNode({x:i.from.x,z:i.from.z},i.floorId,i.from.id),s=e._createNode({x:i.to.x,z:i.to.z},i.floorId,i.to.id),e._createWall(i.type,n,s,i.width,i.openings,i.bias,i.id);break;case"none":e._createWall(i.type,i.from,i.to,i.width,i.openings,i.bias,i.id);break;case"from":n=e._createNode({x:i.from.x,z:i.from.z},i.floorId,i.from.id),e._createWall(i.type,n,i.to,i.width,i.openings,i.bias,i.id);break;case"to":s=e._createNode({x:i.to.x,z:i.to.z},i.floorId,i.to.id),e._createWall(i.type,i.from,s,i.width,i.openings,i.bias,i.id);break;default:throw new Error(`${t.deletedNodes} is an invalid value`)}switch(t.deletedNodes){case"from":return[i.to.id];case"to":return[i.from.id];case"none":return[i.from.id,i.to.id];case"both":return[]}}class b extends L{onRun(e){return I(this.data,e)}onInvert(e,t){return f(this.data,e)}name(){return"DeleteEdge"}}function R(e,t,i){if(0===e.openings.length)return;const n=new c.Line3(e.from.getVec3(),e.to.getVec3()),s=t.map((e=>({wall:e,line:new c.Line3(e.from.getVec3(),e.to.getVec3())}))),a=(e,t)=>{const i=e.closestPointToPointParameter(t,!1);if(!(i<0||i>1))return i};for(const t of e.openings){const{type:e,width:o,relativePos:r,id:l}=t,d=n.at(r,new c.Vector3);for(const{wall:t,line:n}of s){const s=a(n,d);if(void 0!==s){i._createWallOpening(t,e,s,o,l);break}}}}function y(e,t){return t._createWall(e.type,e.from,e.to,e.width,e.openings,e.bias,e.id)}class M extends L{onRun(e){const t=this.data.getWall(e.fromWallId).clone(),i=t.getDirection().normalize().multiplyScalar(e.along),n=t.from.getVec3().add(i);this.data._deleteWall(e.fromWallId);const s=this.data._createNode({x:n.x,z:n.z},t.floorId),a=this.data._createNode(e.to,t.floorId),o=this.data._createWall(e.type,s,a,e.width,[],.5),r=this.data._createWall(t.type,t.from,s,t.width,[],t.bias),l=this.data._createWall(t.type,s,t.to,t.width,[],t.bias);return R(t,[r,l],this.data),{deletedWall:t,newTrailingWall:o,newLeftWall:r,newRightWall:l,newNodeToId:a.id,updateNodeDependencies:[]}}onInvert(e,t){const{deletedWall:i,newTrailingWall:n,newLeftWall:s,newRightWall:a}=e;return this.data._deleteWall(n.id),this.data._deleteWall(s.id),this.data._deleteWall(a.id),this.data._deleteNode(n.from.id),this.data._deleteNode(n.to.id),y(i,this.data),[]}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.newTrailingWall.to.id)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddTrailingEdgeToEdge"}}class D extends O.x{onRun({wallId:e,props:t}){const i=this.data.getWall(e),n={};for(const e of Object.keys(t))n[e]=i[e];return this.data._setEdgeProps(e,t),{wallId:e,props:n}}onInvert({wallId:e,props:t},i){this.data._setEdgeProps(e,t)}merge(e){return e instanceof D&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.props.width=e.inputs.props.width,this.inputs.props.bias=e.inputs.props.bias,!0)}name(){return"SetEdgeProps"}}class k extends L{onRun(e){const t=this.data.getWall(e.wallId),i=[],n=[],s=[],a={originalFromPos:t.from.getPoint(),originalToPos:t.to.getPoint(),deletedWalls:n,createdWalls:i,originalWallId:e.wallId,createdNodes:s,updateNodeDependencies:[]};return e.fromNode&&this.createJoint(t.from,t,n,i,s),e.toNode&&this.createJoint(t.to,t,n,i,s),a}onInvert(e,t){for(const t of e.createdWalls)this.data._deleteWall(t.id);for(const t of e.deletedWalls)y(t,this.data);for(const t of e.createdNodes)this.data._deleteNode(t.id);const i=this.data.getWall(this.inputs.wallId);return this.data._updateNode(i.from.id,e.originalFromPos),this.data._updateNode(i.to.id,e.originalToPos),[i.from.id,i.to.id]}merge(e){return e instanceof T&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.fromPos=e.inputs.newFromPos,this.inputs.toPos=e.inputs.newToPos,!0)}createJoint(e,t,i,n,s){const a=this.data._createNode({x:e.x,z:e.z},e.floorId),o=this.data.getWallsForNode(e);for(const s of o){const o=s.clone();if(o.id!==t.id){const t=o.getOtherNode(e);i.push(o),this.data._deleteWall(o.id);const s=o.from===t?this.data._createWall(o.type,t,a,o.width,[],o.bias):this.data._createWall(o.type,a,t,o.width,[],o.bias);R(o,[s],this.data),n.push(s)}}s.push(a);const r=t.from===e?this.data._createWall(t.type,a,t.from,t.width,[],t.bias):this.data._createWall(t.type,t.to,a,t.width,[],t.bias);n.push(r)}name(){return"AddJointToNode"}}class P extends L{onRun(e){const t=this.data.getNode(e.nodeId),i=Array.from(this.data.getWallsForNode(t).values());if(2!==i.length)throw new Error("Can only delete nodes with two edges on it");const n=i[0].clone(),s=n.getOtherNode(t),a=i[1].clone(),o=a.getOtherNode(t);this.data._deleteWall(n.id),this.data._deleteWall(a.id),this.data._deleteNode(t.id);const r=this.data.newWallWouldIntersect({n0:s,n1:o})?null:this.data._createWall(n.type,s,o,(n.width+a.width)/2,[],(n.bias+a.bias)/2);return r&&(R(n,[r],this.data),R(a,[r],this.data)),{deletedNode:t,deletedWall1:n,deletedWall2:a,createdWall:r,updateNodeDependencies:[]}}onInvert(e,t){const{createdWall:i,deletedNode:n,deletedWall1:s,deletedWall2:a}=e;i&&this.data._deleteWall(i.id),this.data._createNode(n.getPoint(),n.floorId,n.id);for(const e of[s,a])y(e,this.data);return[]}name(){return"DeleteNode"}}class w extends L{onRun(e){const t=this.data.getNode(e.fromId),i=this.data.getNode(e.toId);return{wall:this.data._createWall(e.type,t,i,e.width,[],.5).id,updateNodeDependencies:[]}}onInvert(e,t){return this.data._deleteWall(e.wall),[]}name(){return"AddBridgingEdge"}}class C extends O.x{onRun(e){const{id:t}=e,i=this.data.getOpening(t),{type:n,relativePos:s,width:a}=i;return this.data._setOpeningDetails(t,e),{id:t,type:n,relativePos:s,width:a}}onInvert(e,t){const{id:i}=e;this.data._setOpeningDetails(i,e)}name(){return"EditOpeningDetails"}}class x extends O.x{onRun(e){const{openingId:t}=e,i=this.data.getOpening(t);return this.data._deleteWallOpening(t),{deletedOpening:i}}onInvert(e,t){const{id:i,wallId:n,type:s,relativePos:a,width:o}=e.deletedOpening,r=this.data.getWall(n);this.data._createWallOpening(r,s,a,o,i)}name(){return"DeleteWallOpening"}}class H extends O.x{onRun(e){const{wallId:t,type:i,relativePos:n,width:s}=e,a=this.data.getWall(t);return{openingId:this.data._createWallOpening(a,i,n,s).id}}onInvert(e,t){const{openingId:i}=e;this.data._deleteWallOpening(i)}name(){return"AddOpeningAction"}}function U(e,t,i,n){const s=t.getOtherNode(i);return s!==n&&!e.hasWallBetween(s,n)}function G(e,t){const i=[],n=[],s=[],a=[],o=new Set;for(const r of t){const t=[],{mergeId:l,keepId:d}=r;o.add(d);const c=e.getNode(l),u=e.getNode(d),h=e.getWallsForNode(u),m=u.getPoint();n.push(c),s.push(d),a.push(m),e._updateNode(u.id,c.getPoint());const p=e.getWallsForNode(c);for(const i of p){const n=i.clone(),s=i.getOtherNode(c),a=i.width;e._deleteWall(i.id);let o=null;U(e,i,c,u)&&(e.hasWallBetween(s,u)||(o=e._createWall(i.type,s,u,a,[],i.bias),R(n,[o],e),h.add(o))),t.push({deleted:n,created:o}),h.delete(i)}e._deleteNode(c.id),0===h.size&&(e._deleteNode(u.id),n.push(u)),i.push(t)}return{deletedNodes:n,wallDiffs:i,oldKeepNodeIds:s,oldKeepNodePositions:a,updateNodeDependencies:o}}function F(e,t){const i=[];for(let n=t.deletedNodes.length-1;n>=0;n--){const s=t.deletedNodes[n],a=t.wallDiffs[n],o=e._createNode(s.getPoint(),s.floorId,s.id);i.push(o.id);for(const t of a){t.created&&e._deleteWall(t.created.id);let i=o,n=t.deleted.getOtherNode(s);if(o.id!==t.deleted.from.id){const e=i;i=n,n=e}e._createWall(t.deleted.type,i,n,t.deleted.width,t.deleted.openings,t.deleted.bias,t.deleted.id)}e._updateNode(t.oldKeepNodeIds[n],t.oldKeepNodePositions[n])}return t.oldKeepNodeIds}function j(e,t){const i=[],n=new Set;for(const s of t){const t=e.getNode(s),o=e.getAttachedEntities(t),r=e.findNodeOrWallForPosition(t.getVec3(),t.floorId,o);if(r&&r instanceof a.j){const a=r.getProjection(t.getVec3()),o=r.clone(),l={x:t.x,z:t.z},d=o.getDirection().normalize().multiplyScalar(a),c=o.from.getVec3().add(d);e._deleteWall(o.id),e._updateNode(s,{x:c.x,z:c.z});const u=e.hasWallBetween(o.from,t)?null:e._createWall(o.type,o.from,t,o.width,[],o.bias),h=e.hasWallBetween(t,o.to)?null:e._createWall(o.type,t,o.to,o.width,[],o.bias);R(o,[u,h].filter((e=>!!e)),e),i.push({deletedWall:o,newLeftWall:u,newRightWall:h,prevNodePos:l,nodeId:t.id}),n.add(t.id)}}return{splitDiffs:i,updateNodeDependencies:n}}function B(e,t){for(let i=t.splitDiffs.length-1;i>=0;i--){const{newLeftWall:n,newRightWall:s,deletedWall:a,prevNodePos:o,nodeId:r}=t.splitDiffs[i];n&&e._deleteWall(n.id),s&&e._deleteWall(s.id),e._updateNode(r,o),y(a,e)}return t.splitDiffs.map((e=>e.nodeId))}function V(e,t){const i=[],n=function(e){const t=[];for(const i of e){if(2!==i.length)throw new Error("Can only merge co-linear overlaps");if(0===t.length){t.push(i);continue}const e=t[t.length-1],n=e[1];if(i[0].t=n.t&&(t[t.length-1]=[e[0],s])}else t.push(i)}return t}(t);if(n[0][0].t>0){const t=n[0][0].entity;i.push([e.from,t])}for(let e=0;e0){const s=Array.from(n.values())[0],a=this.data.findOverlappingEntities(s);if(a){const n=K({movedEntity:s,nodeOverlaps:a.nodeOverlaps,nodeWallOverlaps:a.nodeWallOverlaps,collinearWall:a.collinearWall,intersectingWall:a.intersectingWall},this.data);t[e]=n,i.push(...n.updateNodeDependencies)}}}return{overlapsByFloor:t,updateNodeDependencies:i}}onInvert(e,t){const i=[];for(const t in e.overlapsByFloor){const n=Y(e.overlapsByFloor[t],this.data);i.push(...n)}return i}name(){return"ValidateGraphAndComputeRooms"}}function K(e,t){const i=function(e,t,i){const n=[],s=new Set;let a=t,o=0;for(;(a.nodeOverlaps.length>0||a.nodeWallOverlaps.length>0)&&o<10;){const t=G(e,a.nodeOverlaps);for(const e of t.updateNodeDependencies)s.add(e);const r=j(e,a.nodeWallOverlaps);for(const e of r.updateNodeDependencies)s.add(e);n.push({nodeMergeInvertInfo:t,nodeWallInvertInfo:r}),a=e.findOverlappingNodePairs(i),o++}for(const e of n){const t=e.nodeMergeInvertInfo.deletedNodes;for(const e of t)s.delete(e.id)}return{nodeMergeBatches:n,updateNodeDependencies:Array.from(s)}}(t,{nodeOverlaps:e.nodeOverlaps,nodeWallOverlaps:e.nodeWallOverlaps},e.movedEntity);let n=[];e.collinearWall&&(n=function(e,t){const i=[];let n=e.findWallWithWorstOverlaps(t,"colinear"),s=0;for(;null!=n&&s<10;){const a=n.wall;e._deleteWall(a.id);const o=V(n.wall,n.overlaps).filter((t=>!e.hasWallBetween(t[0],t[1]))).map((t=>e._createWall(a.type,t[0],t[1],a.width,[],a.bias)));i.push({deletedWall:a,createdWalls:o}),n=e.findWallWithWorstOverlaps(t,"colinear"),s++}return i}(t,e.collinearWall.floorId));let s=[];return e.intersectingWall&&(s=function(e,t){const i=[];let n=e.findWallWithWorstOverlaps(t,"intersection"),s=0;for(;null!=n&&s<10;){const a=[],o=[],r=[],l=n.wall.clone();if(a.push(l),e._deleteWall(n.wall.id),null!=n){let s=n.wall.from;const d=n.wall.getDirection();for(const i of n.overlaps){if(1!==i.length)throw new Error("possible bug in RoomBoundData.findWallWithWorstOverlaps, it should only return walls intersecting at ONE point");const c=i[0],u=c.entity.clone();a.push(u),e._deleteWall(c.entity.id);const h=n.wall.from.getVec3().addScaledVector(d,i[0].t),m=i[0].entity,p=e._createNode(h,t);o.push(p);const E=e._createWall(n.wall.type,s,p,n.wall.width,[],n.wall.bias);s=p,r.push(E),R(l,[E],e);const S=e._createWall(m.type,m.from,p,m.width,[],m.bias);r.push(S);const O=e._createWall(m.type,m.to,p,m.width,[],m.bias);r.push(O),R(u,[S,O],e)}const c=e._createWall(n.wall.type,s,n.wall.to,n.wall.width,[],n.wall.bias);r.push(c),R(l,[c],e),i.push({createdWalls:r,createdNodes:o,deletedWalls:a})}n=e.findWallWithWorstOverlaps(t,"intersection"),s++}return i}(t,e.intersectingWall.floorId)),{nodeOverlapInvertInfo:i,intersectionSplitInvertInfo:s,collinearOverlapInvertInfo:n,updateNodeDependencies:i.updateNodeDependencies}}function Y(e,t){!function(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];for(const t of n.createdWalls)e._deleteWall(t.id);for(const t of n.createdNodes)e._deleteNode(t.id);for(const t of n.deletedWalls)y(t,e)}}(t,e.intersectionSplitInvertInfo),function(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i],s=n.deletedWall;n.createdWalls.forEach((t=>e._deleteWall(t.id))),y(s,e)}}(t,e.collinearOverlapInvertInfo);const i=function(e,t){const i=[];for(let n=t.nodeMergeBatches.length-1;n>=0;n--){const{nodeMergeInvertInfo:s,nodeWallInvertInfo:a}=t.nodeMergeBatches[n],o=B(e,a),r=F(e,s);i.push(...o,...r)}return i}(t,e.nodeOverlapInvertInfo);return i}var $=i(59503),Q=i(54244),q=i(72244);class X extends O.x{onRun({roomId:e,name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,keywords:o,showDimensions:r,showHeight:l}){const d=this.data.getRoom(e),c={roomId:e,name:d.name,roomTypeIds:d.roomTypeIds.slice(),includeInAreaCalc:d.includeInAreaCalc,hide:d.hide,keywords:d.keywords.slice(),showDimensions:d.showDimensions,showHeight:d.showHeight};return this.data._updateRoomDetails(e,{name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,keywords:o,showDimensions:r,showHeight:l}),c}onInvert({roomId:e,name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,showDimensions:o,showHeight:r},l){this.data._updateRoomDetails(e,{name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,showDimensions:o,showHeight:r})}name(){return"SetRoomDetails"}}var Z=i(52982),J=i(79357);class ee extends L{onRun({roomId:e}){const t={deletedEdges:[],updateNodeDependencies:[]},i=this.data.getRoom(e);for(const e of i.walls){if(1===Array.from(this.data.getRoomsForWall(e)).filter((t=>t.walls.has(e))).length){const i=I(this.data,{wallId:e.id});t.deletedEdges.push(i),t.updateNodeDependencies.push(...i.updateNodeDependencies)}}for(const e of t.deletedEdges){const i=[];switch(e.deletedNodes){case"from":i.push(e.deletedWall.from.id);break;case"to":i.push(e.deletedWall.to.id);break;case"both":i.push(e.deletedWall.from.id,e.deletedWall.to.id)}t.updateNodeDependencies=t.updateNodeDependencies.filter((e=>-1===i.indexOf(e)))}return t}onInvert(e,t){let i=[];for(const t of e.deletedEdges.reverse())i=i.concat(f(this.data,t));return i}name(){return"DeleteRoom"}}var te=i(89465),ie=i(95226);const ne=new Set;var se;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(se||(se={}));class ae{constructor(e,t={},i=()=>{}){this.roomClassifications=t,this.broadcast=i,this.name="wall-graph",this.version=0,this.legacyRoomIds=[],this.raycast=null,this.calcCeilings=null,this.onActionError=e=>{this.logger.error(e)},this._nodes=new m,this._walls=new m,this._rooms=new m,this._wallOpenings=new m,this.undoBuffer=new r.Z(this.commit.bind(this)),this._nodeToWallMap=new Map,this._nodesByFloor=new Map,this._wallToRoomMap=new Map,this._wallsByFloor=new Map,this._wallsByCompositeKey=new Map,this._observerQueue=[],this._deleteSet=new Set,this._anythingChangeObservers=new Set,this._afterFinalizeObservers=new Set,this.logger=new d.Ay("wall-graph"),this.isLoading=!1,this.spatialIndex=new Map,this.actionList=[],this._roomsNeedingCeilingCalc=new Set,this._inFlightRoomCeilingsCalc=new Set,this.getRelativeAngle=(()=>{const e=new c.Vector2,t=new c.Vector2,i=new c.Vector2,n=(t,i)=>{if(0===t.lengthSq()){const n=this.getNodeNeighbors(i);if(0===n.size)return;const s=Array.from(n.values())[0];t.set(s.x,s.z).sub(e)}};return(s,a,o)=>{if(a===o)return 2*Math.PI;e.set(s.x,s.z),t.set(a.x,a.z).sub(e),n(t,a),i.set(o.x,o.z).sub(e),n(i,o);const r=Math.atan2(t.y,t.x);let l=-(Math.atan2(i.y,i.x)-r);return l<0&&(l+=2*Math.PI),l}})(),this.newWallWouldIntersect=(()=>{const e=new c.Vector2,t=new c.Vector2,i=new c.Vector2,n=new c.Vector2,s=new c.Vector2,a=new c.Vector2,o=new c.Vector2,r=new c.Vector2;return({n0:l,n1:d,n0OverridePos:c,n1OverridePos:h,wallToIgnore:m})=>{if(this.hasWallBetween(l,d)){if(!m)return!0;if(this.getWallForNodes(l.id,d.id)!==m)return!0}const p=e=>Math.round(1e3*e)/1e3,E=(e,t)=>{e===l&&c?t.copy(c):e===d&&h?t.copy(h):e.getVec2(t)};if(E(l,e),E(d,t),i.subVectors(e,t).length()<1e-4)return!1;const S=[[p(e.x),p(e.y)],[p(t.x),p(t.y)]],O=[[0,0],[0,0]];for(const e of this._walls.data.values()){if(l.floorId!==e.floorId||e===m)continue;if(E(e.from,n),E(e.to,s),i.subVectors(n,s).length()<1e-4)continue;if(O[0][0]=p(n.x),O[0][1]=p(n.y),O[1][0]=p(s.x),O[1][1]=p(s.y),(0,u.vo)(S,O))return!0;const t=e.to===l||e.from===l?l:e.to===d||e.from===d?d:void 0;if(t){const i=e.getOtherNode(t),n=t===l?d:l;E(t,a),E(i,o),E(n,r),o.sub(a),r.sub(a);const s=Math.atan2(o.y,o.x);let c=-(Math.atan2(r.y,r.x)-s);c<0&&(c+=2*Math.PI);const u=c,h=2*Math.PI/180;if(u2*Math.PI-h)return!0}}return!1}})(),this._updateDependentsForNodes=(()=>{const e=new Set,t=new Set;return(...i)=>{e.clear(),t.clear();const n=i=>{if(!e.has(i)){this.removeFromSpatialIndex(i),this.insertIntoSpatialIndex(i),this._scheduleUpdate(this._walls,i,!0);const n=this._wallToRoomMap.get(i);if(n)for(const e of n.values())t.has(e)||(this._scheduleUpdate(this._rooms,e,!0),e.pointsMoved(),this.calculateRoomInsights(e),t.add(e));for(const e of i.openings)this._scheduleUpdate(this._wallOpenings,e,!0);e.add(i)}};for(const e of i){const t=this._nodeToWallMap.get(e);if(null!=t)for(const i of t){n(i);const t=i.getOtherNode(e),s=this._nodeToWallMap.get(t);if(null!=s)for(const e of s)n(e)}}}})(),e&&(this.version=e.version,this.load(e))}load(e){var t,i;this.isLoading=!0;for(const e of Array.from(this.rooms.values()))this._deleteRoom(e.id);for(const e of Array.from(this.walls.values()))this._deleteWall(e.id);for(const e of Array.from(this.nodes.values()))this._deleteNode(e.id);for(const[e,t]of this.spatialIndex)t.clear();this.commit();for(const s in e.floors){const o=e.floors[s],r=o.vertices,l=new(S());this.spatialIndex.set(s,l);const d=[];for(const e in r){const t=r[e],i=this._createNode({x:t.x,z:-t.y},s,e);i.updateRBushBBox(),d.push(i)}l.load(d);const c=[];for(const e in o.edges){const n=o.edges[e],[s,r]=null!==(t=n.vertices)&&void 0!==t?t:e.split(":"),l=n.thickness,d=this.getNode(s),u=this.getNode(r),h=n.type===Q.gP.INVISIBLE,m=this._createWall(h?a.b.DIVIDER:a.b.SOLID,d,u,h?q.VG:l,[],null!==(i=n.bias)&&void 0!==i?i:.5,e);if(m.bias=1-m.bias,m.updateRBushBBox(),c.push(m),!h)for(const e in n.openings){const{relativePos:t,type:i,width:s}=n.openings[e];this._createWallOpening(m,i,t,s,e)}}if(l.load(c),o.rooms)for(const e in o.rooms){const t=o.rooms[e],i=t.edges||[],s=t.holes||[];if(!i.length&&t.vertices)for(let e=0;ethis.getWall(e)))),l=this.traceWallsFromTo(a.from,a.to,r),d=this.traceWallsFromTo(a.to,a.from,r),c=l.length>d.length?l:d;if(0===c.length){this.logger.warn("No node loop found for room: ",e);continue}(0,u.N5)(c);const h=new Set;for(const e of r)h.add(e.from),h.add(e.to);(0,v.c5)(new Set(c),h)||this.logger.warn("Traced room does not match edge list!",e,c,h);const m=[],p=[];for(const e of s){if(0===e.length)continue;const t=new Set(e.map((e=>this.getWall(e))));p.push(t);const i=this.getWall(e[0]),n=this.traceWallsFromTo(i.from,i.to,t);(0,u.N5)(n).reverse(),m.push(n)}const{location:E,includeInAreaCalc:S,hide:O,keywords:g}=(0,n.rO)(t.keywords||[]),_=this._createRoom({id:e,name:t.label||"",points:c,walls:r,holesCW:m,holes:p,classifications:this.translateClassificationLabels(t.classifications),location:E,includeInAreaCalc:S,hide:O,keywords:g,height:t.height||NaN,ceiling:t.ceiling||null}),T=null!=t.width&&0===t.width;null!=t.length&&0===t.length&&T&&(_.showDimensions=!1),_.showHeight=null===t.height||0!==t.height,t.width&&!Number.isNaN(t.width)&&Math.abs(t.width-_.width)>.001&&this.logger.debug(`Room ${e} has width of ${t.width} on MDS but calculated as ${_.width} locally`),t.length&&!Number.isNaN(t.length)&&Math.abs(t.length-_.length)>.001&&this.logger.debug(`Room ${e} has length of ${t.length} on MDS but calculated as ${_.length} locally`),t.area&&!Number.isNaN(t.area)&&Math.abs(t.area-_.area)>=.01&&this.logger.debug(`Room ${e} has area of ${t.area} on MDS but calculated as ${_.area} locally`)}}this.lastSolidWallWidth=void 0,this.isLoading=!1}get walls(){return this._walls.data}get nodes(){return this._nodes.data}get rooms(){return this._rooms.data}get wallOpenings(){return this._wallOpenings.data}getNode(e){const t=this._nodes.get(e);if(t)return t;this.logAndThrow(new Error("WallNode does not exist in WallGraphData"))}getWall(e){const t=this._walls.get(e);if(t)return t;this.logAndThrow(new Error("Wall does not exist in WallGraphData"))}hasRoom(e){return!!this._rooms.get(e)}hasRooms(){return this._rooms.size>0}getRoom(e){const t=this._rooms.get(e);return t||this.logAndThrow(new Error("Room id is invalid!")),t}getOpening(e){const t=this._wallOpenings.get(e);return t||this.logAndThrow(new Error("Opening id is invalid")),t}getEntity(e){const t=this._walls.get(e)||this._nodes.get(e)||this._rooms.get(e)||this._wallOpenings.get(e);return t||this.logAndThrow(new Error("No entity for id.")),t}tryGetEntity(e){return this._walls.get(e)||this._nodes.get(e)||this._rooms.get(e)||this._wallOpenings.get(e)||null}getEdgeCountForNode(e){var t;return(null===(t=this._nodeToWallMap.get(e))||void 0===t?void 0:t.size)||0}getWallsForNode(e){const t=this._nodeToWallMap.get(e);if(t&&t.size>0)return t;this.logAndThrow(new Error("WallNode has no associate walls, this should not happen unless inside an action"))}getFloorsWithNodes(){return Array.from(this._nodesByFloor.keys())}getWallsForFloor(e){const t=this._wallsByFloor.get(e);return t&&t.size>0?t:null}getNodesByFloor(e){const t=this._nodesByFloor.get(e),i=new Set;return t||(this._nodesByFloor.set(e,i),i)}getRoomsForWall(e){return this._wallToRoomMap.get(e)||new Set}getWallNeighbors(e,t){const i=e[t],n=this.getEdgeCountForNode(i);if(1===n)return null;if(2!==n){const n=(()=>{const e=new c.Vector2;return(t,i)=>{const n=i.getOtherNode(t);e.set(n.x-t.x,n.z-t.z).normalize();return e.angle()}})(),s=this._nodeToWallMap.get(i);if(!s||0===s.size)return null;const a=Array.from(s).sort(((e,t)=>n(i,e)-n(i,t))),o=a.indexOf(e);let r=(o+1)%a.length,l=o-1<0?a.length-1:o-1;if("from"===t){const e=l;l=r,r=e}return{left:a[r],right:a[l]}}{const t=this._nodeToWallMap.get(i);if(!t||0===t.size)return null;for(const i of t)if(i.id!==e.id)return{left:i,right:i}}this.logAndThrow(new Error("Not finding both neighbors should never happen"))}getLastWallWidth(e){return e===a.b.SOLID&&this.lastSolidWallWidth?this.lastSolidWallWidth:this.getMostCommonWallWidth(e)}getMostCommonWallWidth(e){if(e===a.b.DIVIDER)return q.VG;const t={};for(const e of this._walls.data.values()){const i=e.width.toFixed(2);t[i]=t[i]?t[i]+1:1}let i=q.$h,n=0;for(const[e,s]of Object.entries(t))s>n&&Number(e)>q.VG&&(n=s,i=Number(e));return i}findRoomIdForPosition(e,t,i){const n={x:e.x,y:e.z},s=this._rooms.get(i||"");if(s&&i){const e=s.points.map((e=>({x:e.x,y:e.z})));if((0,$.L)(n,e))return i}for(const e of this._rooms.data.values()){if(e.floorId!==t)continue;const i=e.points.map((e=>({x:e.x,y:e.z})));if((0,$.L)(n,i))return e.id}return null}findNodeOrWallForPosition(e,t,i,n=q.w_){const s=this.spatialIndex.get(t);if(s){const t=s.search({minX:e.x-n,minY:e.z-n,maxX:e.x+n,maxY:e.z+n});let r=null,l=null,d=Number.MAX_VALUE,c=Number.MAX_VALUE;for(const s of t){const t=s.overlapsCircle(e,n);null==t||i.has(s.id)||(s instanceof a.j&&t!0){const s=this.spatialIndex.get(i),a=.05,o=[];if(s){const i=s.search({minX:Math.min(e.x,t.x)-a,minY:Math.min(e.z,t.z)-a,maxX:Math.max(e.x,t.x)+a,maxY:Math.max(e.z,t.z)+a});for(const s of i)if(n(s)){const i=s.overlapsLine(e,t);i.length>0&&o.push(i)}}return o}findOverlappingNodePairs(e){const t=e.floorId,i=[],n=new Set,s=new Set,r=[],l=this.getNodesByFloor(t);for(const d of l){const l=this.getAttachedEntities(d),c=this.findNodeOrWallForPosition(d.getVec3(),t,l);if(c)if(c instanceof o.D){const t=[d.id,c.id].sort().join(":");if(!n.has(t)){let a=d.id,o=c.id;if(o===e.id){const e=o;o=a,a=e}s.has(o)||s.has(a)||(i.push({keepId:a,mergeId:o}),n.add(t),s.add(o))}}else c instanceof a.j&&(s.has(d.id)||r.push(d.id))}return{nodeOverlaps:i,nodeWallOverlaps:r}}findWallWithWorstOverlaps(e,t){let i=[],n=null;const s=this.getWallsForFloor(e),o="colinear"===t?2:1;if(s)for(const e of s){const s="intersection"===t?this.getAttachedEntities(e.from):ne,r="intersection"===t?this.getAttachedEntities(e.to):ne,l=this.findNodeAndWallsOverlappingLine(e.from.getVec3(),e.to.getVec3(),e.floorId,(t=>t instanceof a.j&&t.id!==e.id&&!s.has(t.id)&&!r.has(t.id))).filter((e=>e.length===o));l.length>0&&l.length>i.length&&(i=l,n=e)}return null!=n?{wall:n,overlaps:i.sort(((e,t)=>e[0].t-t[0].t))}:null}findOverlappingEntities(e){const t=e.floorId,{nodeOverlaps:i,nodeWallOverlaps:n}=this.findOverlappingNodePairs(e),s=this.findWallWithWorstOverlaps(t,"colinear"),a=this.findWallWithWorstOverlaps(t,"intersection");if(i.length>0||n.length>0||a||s){return{nodeOverlaps:i,nodeWallOverlaps:n,intersectingWall:a?a.wall:void 0,collinearWall:s?s.wall:void 0}}return null}getSortedRoomClassifications(){return Object.values(this.roomClassifications).sort(((e,t)=>e.label.localeCompare(t.label)))}hasWallBetween(e,t){const i=a.j.getCompositeKey(e.id,t.id);return this._wallsByCompositeKey.has(i)}getWallForNodes(e,t){const i=a.j.getCompositeKey(e,t),n=this._wallsByCompositeKey.get(i);return n||this.logAndThrow(new Error("getWallForNodes: No wall exists for these nodes!")),n}canDeleteEntity(e){if(null!=e){const t=this.getEntity(e);if(t instanceof o.D){if(2!==this.getEdgeCountForNode(t))return!1;let e;for(const i of this.getWallsForNode(t).values()){if(void 0!==e&&i.type!==e)return!1;e=i.type}return!0}if(t instanceof n.pQ){return!!Array.from(t.walls).find((e=>1===Array.from(this.getRoomsForWall(e)).filter((t=>t.walls.has(e))).length))}return t instanceof a.j||t instanceof h.$}return!1}undo(){const e=this.undoBuffer.pop();if(e){try{this.actionList.push(e.logInfo()),e.invert()}catch(e){return void this.onActionError(e)}this.commit(),this._triggerFinalizeObservers()}}availableUndos(){return this.undoBuffer.length.value}clearUndoBuffer(){this.undoBuffer.clear()}resetHistory(){this.clearUndoBuffer(),this._observerQueue.length=0,this._deleteSet.clear()}finalizeHistory(){this.undoBuffer.finalize(),this._triggerFinalizeObservers()}getAndClearActionList(){const e=this.actionList.slice();return this.actionList.length=0,e}triggerAction(e){var t,i;try{e.run()}catch(e){return this._observerQueue.length=0,this._deleteSet.clear(),void this.onActionError(e)}const n=null===(t=this.undoBuffer.peek())||void 0===t?void 0:t.lastAction();this.undoBuffer.push(e),n!==(null===(i=this.undoBuffer.peek())||void 0===i?void 0:i.lastAction())&&this.actionList.push(e.logInfo()),this.commit()}onNodesChanged(e){return this._nodes.onChanged(e)}onWallsChanged(e){return this._walls.onChanged(e)}onRoomsChanged(e){return this._rooms.onChanged(e)}onOpeningsChanged(e){return this._wallOpenings.onChanged(e)}validateGraph(){this._recomputeRooms()&&(this.commit(),this.finalizeHistory())}commit(){const e=this._observerQueue.length;if(this._flushObserverQueue(),e>0)for(const e of this._anythingChangeObservers)e(void 0)}onPropertyChanged(e,t){const i=this["_"+e];if(i instanceof m){const n=i,s=()=>{n.addedObservers.add(t),n.updatedObservers.add(t),n.deletedObservers.add(t)},a=()=>this.removeOnPropertyChanged(e,t);return(0,l.Sh)(s,a,!0,e)}this.logAndThrow(new Error(`Property: ${e} does not exist on wall-data`))}removeOnPropertyChanged(e,t){const i=this["_"+e];if(i instanceof m){const e=i;e.addedObservers.delete(t),e.updatedObservers.delete(t),e.deletedObservers.delete(t)}else this.logAndThrow(new Error(`Property: ${e} does not exist on wall-data`))}onChanged(e){if(this._anythingChangeObservers.has(e))throw new Error("This observer function is already observing this Observable, and double subscriptions are not supported.");return(0,l.Sh)((()=>this._anythingChangeObservers.add(e)),(()=>this.removeOnChanged(e)),!0)}removeOnChanged(e){this._anythingChangeObservers.delete(e)}afterFinalize(e){this._afterFinalizeObservers.has(e)&&this.logAndThrow(new Error("Already subscribed!"));return(0,l.Sh)((()=>this._afterFinalizeObservers.add(e)),(()=>this._afterFinalizeObservers.delete(e)),!0)}addFloatingEdge(e,t,i,n,s){const a=new _(this,{from:t,to:i,width:n,floorId:s,type:e});return this.triggerAction(a),a.output}addBridgingEdge(e,t,i,n){const s=new w(this,{fromId:t,toId:i,width:n,type:e});return this.triggerAction(s),s.output}addTrailingEdgeToNode(e,t,i,n){const s=new A(this,{fromId:t,to:i,width:n,type:e});return this.triggerAction(s),s.output}addTrailingEdgeToEdge(e,t,i,n,s){const a=new M(this,{fromWallId:t,along:i,to:n,width:s,type:e});return this.triggerAction(a),a.output}canMoveNode(e,t){const i=this.getNode(e),n=this.getWallsForNode(i);for(const e of n){if(0===e.openings.length)continue;const n=e.getOtherNode(i),s=n.x-t.x,a=n.z-t.z,o=Math.sqrt(s*s+a*a);if(!(o>e.length))for(const t of e.openings){const e=t.relativePos*o,i=.5*t.width;if(e+i>o||e-i<0)return!1}}return!0}moveNode(e,t){const i={nodeId:e,newPos:t};this.triggerAction(new g(this,i))}moveWall(e,t,i){const n={wallId:e,newFromPos:t,newToPos:i};this.triggerAction(new T(this,n))}deleteEntity(e){if(this.canDeleteEntity(e)){const t=this.getEntity(e);if(t instanceof o.D){const t={nodeId:e};this.triggerAction(new P(this,t))}else if(t instanceof a.j){const t={wallId:e};this.triggerAction(new b(this,t))}else if(t instanceof h.$){const t={openingId:e};this.triggerAction(new x(this,t))}else if(t instanceof n.pQ){const t={roomId:e};this.triggerAction(new ee(this,t))}}}setEdgeProperties(e,t){const i={wallId:e,props:t};this.triggerAction(new D(this,i))}addWallOpening(e){const t=new H(this,e);return this.triggerAction(t),t.output.openingId}editWallOpeningDetails(e,t){this.triggerAction(new C(this,Object.assign(Object.assign({},t),{id:e})))}addWallJoint(e,t,i){const n={wallId:e,fromNode:t,toNode:i};this.triggerAction(new k(this,n))}setRoomDetails(e,t){this.triggerAction(new X(this,Object.assign({roomId:e},t)))}mergeOverlappingEntities(e,t,i,n,s){const a={movedEntity:e,nodeOverlaps:t,nodeWallOverlaps:i,collinearWall:n,intersectingWall:s};this.triggerAction(new W(this,a))}getRoomTypeName(e,t){var i;const n=this.getRoom(e);if(n||this.logAndThrow(new Error("Room does not exist")),n.classifications&&n.classifications.length>0){return(0,Z.Kq)(n.classifications.map((e=>e.id))).map((e=>{var i;return(null===(i=this.roomClassifications[e])||void 0===i?void 0:i.label)||t})).join(q.Ae)}return(null===(i=this.roomClassifications[q.YV])||void 0===i?void 0:i.label)||t}getRoomLabel(e,t){const i=this.getRoom(e);return i||this.logAndThrow(new Error("Room does not exist")),i.name?i.name:this.getRoomTypeName(e,t)}getPotentialRoomCanvasLabels(e,t,i,n,s){const a=(...e)=>e.filter((e=>e.length>0)).join("\n"),o=this.getRoom(e),r=n&&(!o.isOther()||o.name),l=s&&!o.hide,d=r?this.getRoomLabel(e,t):"",c=l?(0,te.JE)(i,o.getArea(i)).area:"",u=l?o.getMeasurementText(i):"",h=[];for(let e=d.length;e>=0;e--)h.push(a((0,ie.W5)(d,e),c,u),a((0,ie.W5)(d,e),c));for(let e=d.length;e>=0&&d.length>0;e--)h.push((0,ie.W5)(d,e));return 0===d.length&&h.push("..."),h}getAttachedEntities(e){const t=new Set;t.add(e.id);const i=this.getNode(e.id),n=this.getWallsForNode(i);for(const e of n){t.add(e.id);const n=e.getOtherNode(i);1===this.getEdgeCountForNode(i)&&1===this.getEdgeCountForNode(n)&&t.add(n.id)}return t}translateClassificationLabels(e){return e?e.map((e=>{const t=this.roomClassifications[e.id];return t?Object.assign(Object.assign({},e),{label:t.label}):e})):[]}traceWallsFromTo(e,t,i){const n=[e,t];let s=!1;for(;s=!this.hasLoop(n);){const e=n[n.length-1],t=n[n.length-2],s=this.getNodeNeighbors(e,i);let a,o=4*Math.PI;for(const i of s){const n=this.getRelativeAngle(e,t,i);n=0;i--){t.unshift(e[i]);const n=e.length-2*t.length;if(n<0)return!1;let s=!0;for(let i=0;ie.id)),"in sequence",e.map((e=>e.id))),!0}return!1}_createNode(e,t,i){const n=new o.D(i||(0,s.hA)(),t,e.x,e.z);return this._nodes.set(n.id,n),this._addToDictHelper(t,n,this._nodesByFloor),this.insertIntoSpatialIndex(n),this._scheduleObserver({observers:this._nodes.addedObservers,param:n,type:se.CREATE}),n}_updateNode(e,t){const i=this._nodes.get(e);i?(this.removeFromSpatialIndex(i),i.x=t.x,i.z=t.z,this.insertIntoSpatialIndex(i),this._scheduleUpdate(this._nodes,i)):this.logAndThrow(new Error("Attempted to update WallNode that does not exist"))}_deleteNode(e){const t=this._nodes.get(e);t?(this.getEdgeCountForNode(t)>0&&this.logAndThrow(new Error("Attempted to delete a node which has wall references still!")),this._nodes.delete(e),this._removeFromDictHelper(t.floorId,t,this._nodesByFloor),this.removeFromSpatialIndex(t),this._scheduleDelete(this._nodes,t)):this.logAndThrow(new Error("Attempted to delete WallNode that does not exist"))}_createRoom(e){this._validateRoomDetails(e.points,e.holesCW,e.walls,e.holes);const t=new n.pQ(e);this.rooms.set(t.id,t);for(const e of t.allWalls()){const i=this._wallToRoomMap.get(e)||new Set;i.add(t),this._wallToRoomMap.set(e,i)}return this._scheduleObserver({observers:this._rooms.addedObservers,param:t,type:se.CREATE}),this.calculateRoomInsights(t),t}_updateRoom(e,t,i=!0){this._validateRoomDetails(t.points,t.holesCW,t.walls,t.holes),this._inFlightRoomCeilingsCalc.has(e)&&this._roomsNeedingCeilingCalc.add(e);const n=this._rooms.get(e);if(n){for(const e of n.allWalls()){const t=this._wallToRoomMap.get(e);t&&t.delete(n)}t.name=n.name,t.classifications=n.classifications?[...n.classifications]:[],this.rooms.set(e,t);for(const e of t.allWalls().values()){const i=this._wallToRoomMap.get(e)||new Set;i.add(t),this._wallToRoomMap.set(e,i)}this._scheduleUpdate(this._rooms,t),i&&this.calculateRoomInsights(t)}else this.logAndThrow(new Error("Attempted to update Room that does not exist"))}_validateRoomDetails(e,t,i,n){const s=e[0].floorId;for(const i of e.concat(t.flat()))i.floorId!==s&&this.logAndThrow(new Error("Room nodes have mismatching floor ids!"))}logAndThrow(e){throw this.broadcast(new J.t(e)),e}_updateRoomDetails(e,t){const{name:i,roomTypeIds:n,location:s,includeInAreaCalc:a,hide:o,keywords:r,showDimensions:l,showHeight:d}=t,c=this.getRoom(e);c.name=null!=i?i:c.name,n&&(c.classifications=n.map((e=>({id:e,label:this.roomClassifications[e].label})))),c.location=null!=s?s:c.location,c.includeInAreaCalc=null!=a?a:c.includeInAreaCalc,c.hide=null!=o?o:c.hide,c.keywords=null!=r?r:c.keywords,c.showDimensions=null!=l?l:c.showDimensions,c.showHeight=null!=d?d:c.showHeight,this._scheduleUpdate(this._rooms,c)}_deleteRoom(e){const t=this._rooms.get(e);if(t){this._rooms.delete(t.id);for(const e of t.allWalls().values()){const i=this._wallToRoomMap.get(e);null==i||i.delete(t)}this._scheduleDelete(this._rooms,t)}else this.logAndThrow(new Error("Attempted to delete Room that does not exist"))}_createWall(e,t,i,n,o,r,l=(0,s.hA)()){t.id===i.id&&this.logAndThrow(new Error("Cannot create wall where the from node is the same as the to node.")),t.floorId!==i.floorId&&this.logAndThrow(new Error("Cannot create a wall between nodes on different floors.")),this.hasWallBetween(t,i)&&this.logAndThrow(new Error("Wall already exists between start and end nodes.")),this._walls.has(l)&&this.logAndThrow(new Error("Wall already exists!"));const d=this.getNode(t.id),c=this.getNode(i.id),u=new a.j(l,e,d,c,n,r);this._walls.set(u.id,u),this._addToWallDicts(u),this._scheduleObserver({observers:this._walls.addedObservers,param:u,type:se.CREATE});for(const e of o){const{type:t,relativePos:i,width:n,id:s}=e;this._createWallOpening(u,t,i,n,s)}return this.insertIntoSpatialIndex(u),u}_deleteWall(e){const t=this.getWall(e);for(const e of t.openings.slice())this._deleteWallOpening(e.id);this._walls.delete(e),this._removeFromWallDicts(t),this.removeFromSpatialIndex(t),this._scheduleDelete(this._walls,t)}_setEdgeProps(e,t){const{width:i,bias:n,type:s}=t,o=this.getWall(e);void 0!==s&&(o.type=s),void 0!==i&&(o.width=i,o.type===a.b.SOLID&&(this.lastSolidWallWidth=i)),void 0!==n&&(o.bias=n),this._scheduleUpdate(this._walls,o),this._updateDependentsForNodes(o.from,o.to)}_createWallOpening(e,t,i,n,a=(0,s.hA)()){const o=new h.$(a,e.id,e.floorId,t,i,n);return this._wallOpenings.set(o.id,o),e.openings.push(o),this._scheduleObserver({observers:this._wallOpenings.addedObservers,param:o,type:se.CREATE}),o}_setOpeningDetails(e,t){var i,n,s;const a=this.getOpening(e);a.type=null!==(i=t.type)&&void 0!==i?i:a.type,a.relativePos=null!==(n=t.relativePos)&&void 0!==n?n:a.relativePos,a.width=null!==(s=t.width)&&void 0!==s?s:a.width,this._scheduleUpdate(this._wallOpenings,a)}_deleteWallOpening(e){const t=this.getOpening(e),i=this.getWall(t.wallId),n=i.openings.findIndex((t=>t.id===e));-1!==n?i.openings.splice(n,1):this.logAndThrow(new Error("Expected opening to exist in wall array!")),this._wallOpenings.delete(e),this._scheduleDelete(this._wallOpenings,t)}_addToWallDicts(e){this._addToDictHelper(e.from,e,this._nodeToWallMap),this._addToDictHelper(e.to,e,this._nodeToWallMap),this._addToDictHelper(e.floorId,e,this._wallsByFloor),this._wallsByCompositeKey.set(a.j.getCompositeKey(e.from.id,e.to.id),e)}_addToDictHelper(e,t,i){let n=i.get(e);null!=n?n.add(t):(n=new Set,n.add(t),i.set(e,n))}_removeFromDictHelper(e,t,i){const n=i.get(e);null!=n&&(n.delete(t),0===n.size&&i.delete(e))}_removeFromWallDicts(e){this._removeFromDictHelper(e.from,e,this._nodeToWallMap),this._removeFromDictHelper(e.to,e,this._nodeToWallMap),this._removeFromDictHelper(e.floorId,e,this._wallsByFloor),this._wallToRoomMap.delete(e),this._wallsByCompositeKey.delete(a.j.getCompositeKey(e.from.id,e.to.id))}_scheduleObserver(e){this._observerQueue.push(e)}_scheduleUpdate(e,t,i=!1){this._observerQueue.find((i=>i.observers===e.addedObservers&&i.param===t))||this._scheduleObserver({observers:i?e.childUpdatedObservers:e.updatedObservers,param:t,type:se.UPDATE})}_scheduleDelete(e,t){this._scheduleObserver({observers:e.deletedObservers,param:t,type:se.DELETE}),this._deleteSet.add(t)}_flushObserverQueue(){const e=new Set;for(const t of this._observerQueue)if(t.type!==se.UPDATE||!this._deleteSet.has(t.param))if(t.type===se.CREATE&&this._deleteSet.has(t.param))e.add(t.param);else if(t.type!==se.DELETE||!e.has(t.param))for(const e of t.observers){const i=t.param;e(i,i.id)}this._observerQueue.length=0,this._deleteSet.clear()}_triggerFinalizeObservers(){for(const e of this._afterFinalizeObservers.values())e()}getSnapshot(){const e={version:this.version,floors:{}},t=t=>{e.floors[t]||(e.floors[t]={edges:{},vertices:{},rooms:{}})};for(const[i,n]of this._nodes.data){t(n.floorId);e.floors[n.floorId].vertices[n.id]=n.getSnapshot()}for(const[i,n]of this._walls.data){t(n.floorId);e.floors[n.floorId].edges[n.id]=n.getSnapshot()}for(const[i,n]of this._rooms.data){t(n.floorId);e.floors[n.floorId].rooms[n.id]=n.getSnapshot()}return e}insertIntoSpatialIndex(e){if(this.isLoading)return;this.spatialIndex.has(e.floorId)||this.spatialIndex.set(e.floorId,new(S()));const t=this.spatialIndex.get(e.floorId);e.updateRBushBBox(),t.insert(e)}removeFromSpatialIndex(e){if(this.isLoading)return;const t=this.spatialIndex.get(e.floorId);null!=t&&t.remove(e)}_recomputeRooms(){return new z(this,{}).run(),this._observerQueue.length>0}calculateRoomInsights(e){this.calculateRoomArea(e),this.calculateRoomPerimeter(e),this.calculateRoomMeasurements(e),this.isLoading||this.scheduleCeilingComputation(e)}calculateRoomArea(e){const t=new Array(new c.Vector3,new c.Vector3,new c.Vector3,new c.Vector3);t.push(t[0]);const i=e=>{let i=0;for(let n=0;n[e.x,e.z])))}return i},n=i(e.getCWPoints());let s=0;for(const t of e.holesCW)s+=(0,u.eW)(t),s+=i(t.slice().reverse());const a=(0,u.eW)(e.points);e.area=Math.max(a-n-s,0)}calculateRoomPerimeter(e){let t=0;for(const i of e.minimalInnerEdges)t+=i.start.distanceTo(i.end);e.perimeter=t}calculateRoomMeasurements(e){const{edges:t,thickness:i}=(0,u.I0)(e,this);let n=0,s=[new c.Vector2,new c.Vector2],a=[new c.Vector2,new c.Vector2],o=new c.Vector2(0,0);for(let e=0;e<2;e++){let r=0;for(let l=0;lMath.cos(Math.PI-q.Mg))continue;const g=(new c.Vector2).subVectors(S,O).normalize();if(e>0&&Math.abs(g.dot(o))>Math.cos(Math.PI/2-q.Bg))continue;const _=(new c.Vector2).addVectors(p.getVec2(),E.getVec2()).multiplyScalar(.5);if((0,u.mN)(S,d.getVec2(),_)<0)continue;const T=new c.Vector2,A=new c.Vector2,v=(0,u.m_)([d.getVec2().addScaledVector(S,i[l]),h.getVec2().addScaledVector(S,i[l])],[p.getVec2().addScaledVector(O,i[m]),E.getVec2().addScaledVector(O,i[m])],T,A);v>r&&(r=v,0===e?(s=[T,A],o=S,n=1):(a=[T,A],n=2))}}}if(2===n){const e=(s[1].y-s[0].y)/(s[1].x-s[0].x),t=(a[1].y-a[0].y)/(a[1].x-a[0].x);if(Math.abs(e)=2&&(e.length=(new c.Vector2).subVectors(s[0],s[1]).length(),e.l1=s[0].clone(),e.l2=s[1].clone(),e.width=(new c.Vector2).subVectors(a[0],a[1]).length(),e.w1=a[0].clone(),e.w2=a[1].clone(),this.isRectangularIsh(e)||(e.length=NaN,e.width=NaN))}isRectangularIsh(e){if(isNaN(e.length)||isNaN(e.width))return!1;const t=e.getCWPoints();return(0,u.fZ)(t,[e.l1,e.l2],[e.w1,e.w2],this)>.9}async calculateRoomCeilings(e){const t=this.tryGetEntity(e);if(t&&t instanceof n.pQ)return!this.calcCeilings||t.area<=1e-4?Promise.resolve():(this._inFlightRoomCeilingsCalc.add(t.id),this.calcCeilings(t).then((e=>{this._inFlightRoomCeilingsCalc.delete(t.id),!this._roomsNeedingCeilingCalc.has(t.id)&&this.rooms.has(t.id)&&(t.ceiling=e,this._scheduleUpdate(this._rooms,t))})))}clearAllCeilings(){for(const e of this.rooms.values())e.ceiling=null,this._scheduleUpdate(this._rooms,e);this._flushObserverQueue()}scheduleCeilingComputation(e){this._roomsNeedingCeilingCalc.add(e.id)}async recalculateCeilings(e=!1){if(e)for(const e of this.rooms.keys())this._roomsNeedingCeilingCalc.add(e);for(;;){const e=[];for(const t of this._roomsNeedingCeilingCalc)e.push(this.calculateRoomCeilings(t));if(this._roomsNeedingCeilingCalc.clear(),await Promise.all(e),0===this._roomsNeedingCeilingCalc.size)break}return this._flushObserverQueue(),Promise.resolve()}}},23999:(e,t,i)=>{"use strict";i.d(t,{GZ:()=>s,Vc:()=>n,pO:()=>_,pQ:()=>g,rO:()=>A,vQ:()=>v});var n,s,a=i(89955),o=i.n(a),r=i(82807),l=i(68909),d=i(82030),c=i(93475),u=i(89465),h=i(87634),m=i(56245),p=i(72244),E=i(58968),S=i(54664),O=i(15854);!function(e){e.INDOOR="indoor",e.OUTDOOR="outdoor"}(n||(n={})),function(e){e.INDOOR="indoor",e.OUTDOOR="outdoor",e.NON_AREA="nonArea",e.HIDE="hide"}(s||(s={}));class g{constructor(e){this.area=NaN,this.length=NaN,this.l1=new l.Vector2,this.l2=new l.Vector2,this.width=NaN,this.w1=new l.Vector2,this.w2=new l.Vector2,this.height=NaN,this.ceiling=null,this._minimalInnerEdges=null,this._minimalInnerLoop=null,this.classifications=[],this.showDimensions=!0,this.showHeight=!0,this._viewCenterCache={},this._containsPointCache=new r.A({maxSize:10}),this.wallsCCW=[],this.holeWallsCW=[],this.cornerStraight=(()=>{const e=new l.Vector3,t=new l.Vector3;return(i,n)=>{const s=i.end.distanceTo(n.start)<.02;e.subVectors(i.start,i.end).normalize(),t.subVectors(n.end,n.start).normalize();const a=Math.abs(Math.abs(e.dot(t))-1)<.01;return s&&a}})(),Object.assign(this,e),this.initCCWWalls()}getEntityAnalytic(){return"room"}get roomTypeIds(){return 0===this.classifications.length?[p.YV]:this.classifications.map((e=>e.id))}get floorHeight(){if(null!=this.ceiling&&this.ceiling.planes.length>0){const e=this.ceiling.planes[0].measurements;if(e.length>0)return e[0].bottom.y}return NaN}accessible(){return!(this.hide&&!this.includeInAreaCalc)}isOther(){const e=this.roomTypeIds;return 1===e.length&&e[0]===p.YV}get floorId(){return this.points[0].floorId}getMaxCeilingDatum(){if(this.isFlatCeiling())return null;let e=Number.MIN_SAFE_INTEGER,t=null;const i=new l.Vector3;if(null!=this.ceiling)for(const n of this.ceiling.planes)for(const s of n.measurements)s.height>=e&&(e=s.height,t=i.set(s.bottom.x,s.bottom.y,s.bottom.z));return null!=t?{position:t,height:e}:null}getMinCeilingHeight(){let e=Number.MAX_SAFE_INTEGER,t=!1;if(null!=this.ceiling)for(const i of this.ceiling.planes)for(const n of i.measurements)n.height=p.lD&&(e=n.height,t=!0);return t?e:isNaN(this.height)?NaN:this.height}isFlatCeiling(){return null!=this.ceiling&&Math.abs(this.ceiling.maxHeight-this.ceiling.minHeight)<=1e-8}getSnapshot(){return{height:this.height,source:"frontend",vertices:this.points.map((e=>e.id)),holes:this.holesCW.map((e=>e.map((e=>e.id)))),label:this.name}}pointsMoved(){this._bbox=null,this._geometry=null,this._viewCenterCache={},this._containsPointCache.clear(),this._minimalInnerLoop=null,this._minimalInnerEdges=null}get minimalInnerLoop(){return null==this._minimalInnerLoop&&(this._minimalInnerLoop=this.calculateMinimalInnerLoop()),this._minimalInnerLoop}get minimalInnerEdges(){return null==this._minimalInnerEdges&&(this._minimalInnerEdges=this.calculateMinimalInnerEdges()),this._minimalInnerEdges}get bbox(){return this._bbox||(this._bbox=(new l.Box2).setFromPoints(this.points.map((e=>e.getVec2())))),this._bbox}getViewCenter(e=new l.Vector3,t=1){const i=t.toFixed(1),n=this._viewCenterCache[i];if(null!=n)return e.copy(n.center),e;{const n=this.points.map((e=>[e.x/t,e.z]));n.push([this.points[0].x/t,this.points[0].z]);const s=[n].concat(this.holesCW.map((e=>e.map((e=>[e.x/t,e.z])).reverse()))),a=o()(s,.1),r=a.distance,d=new l.Vector3(a[0]*t,0,a[1]);return this._viewCenterCache[i]={center:d,distance:r},e.copy(d),e}}getViewCenterDistance(e=1){this.getViewCenter(void 0,e);const t=e.toFixed(1);if(null==this._viewCenterCache[t])throw new Error("View center should have been precached");return this._viewCenterCache[t].distance}getArea(e){let t=this.area,i=1;return e===d.t.IMPERIAL?t=(0,c.Nd)(t):e===d.t.METRIC&&(i=10),Math.round(t*i)/i}getMeasurementText(e){return this.canDisplayDimensions()?[(0,u.R5)(this.width,e),(0,u.R5)(this.length,e)].join(` ${u.ac} `):""}canDisplayDimensions(){return!(isNaN(this.length)||isNaN(this.width)||this.length<=0||this.width<=0||!this.showDimensions)}canDisplayHeight(){return(!isNaN(this.height)||null!=this.ceiling)&&this.showHeight}getPerimeterText(e){return(0,u.R5)(this.perimeter,e)}getCWPoints(){return this.points.slice().reverse()}allWalls(){return(0,h.LX)(this.walls,...this.holes)}allKeywords(){const e=this.keywords.slice();return this.hide&&e.push(s.HIDE),this.includeInAreaCalc||e.push(s.NON_AREA),e.push(this.location===n.OUTDOOR?s.OUTDOOR:s.INDOOR),e}initCCWWalls(){const e=new Map;for(const t of this.allWalls())e.set(m.j.getCompositeKey(t.from.id,t.to.id),t);const t=t=>{const i=[],n=t.length;for(let s=0;snew l.Vector2(e.x,e.z))),i=e.slice(1).map((e=>e.map((e=>new l.Vector2(e.x,e.z))))),n=l.ShapeUtils.triangulateShape(t,i).map((e=>[e[0],e[2],e[1]]));this._geometry={faces:n,points:t.concat(i.flat(1))}}return this._geometry}calculateInnerLoop(e=0){const t=[],i=i=>{t.push([]);const n=i.length;for(let s=0;s.01)&&d.push(u),d.push(l.end.clone())}};i(this.wallsCCW);for(const e of this.holeWallsCW)i(e);return t}calculateMinimalInnerLoop(e=0){const t=[],i=this.calculateInnerLoop(e);let n=0;for(const e of i){const i=e.length,s=[];for(let t=0;t0){const e=s.map((e=>[e.x,e.z]));(0,S.A)(e,!0)>0||s.reverse()}t.push(s),n++}return t}calculateMinimalInnerEdges(){const e=[],t=this.minimalInnerLoop;for(const i of t){const t=i.length;for(let n=0;n[e.x,e.z])),s=this.minimalInnerLoop.slice(1,this.minimalInnerLoop.length).map((e=>e.reverse().map((e=>[e.x,e.z])))),a=(0,O.s)([e,t],n)&&!s.some((i=>(0,O.s)([e,t],i)));return this._containsPointCache.set(i,a),a}}}function _(e,t){var i;return e.length>0&&(null!==(i=e[0].defaultKeywords)&&void 0!==i?i:[]).includes(t)}function T(e){return e.filter((e=>!Object.values(s).includes(e)))}function A(e){return{location:e.includes(s.OUTDOOR)?n.OUTDOOR:n.INDOOR,includeInAreaCalc:!e.includes(s.NON_AREA),hide:e.includes(s.HIDE),keywords:T(e)}}function v(e){const t=new Set;for(const i of e)(0,h.s1)(t,i.defaultKeywords||[]);return t.has(s.INDOOR)&&t.has(s.OUTDOOR)&&t.delete(s.OUTDOOR),Array.from(t.values())}},68093:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var n=i(61589),s=i(23999),a=i(90833),o=i(35596),r=i(521);class l extends n.B{constructor(e,t,i,n){super(),this.data=e,this.applicationData=t,this.toolsData=i,this.visibleInShowcase=n,this.name="room-bound-view-data",this.roomBoundsVisible=!1,this._roomNamesVisible=a.vs,this._roomWallsVisible=a.vs,this._roomDimensionsVisible=a.vs,this.applicationData.onChanged((()=>{this.commit()})),this.toolsData.onPropertyChanged("activeToolName",(()=>{this.commit()}))}getSelectedRoom(e){if(!e)return null;const t=this.data.getEntity(e);return t instanceof s.pQ?t:null}setRoomBoundVisible(e){this.roomBoundsVisible=e,this.commit()}get roomNamesVisible(){return this.applicationData.application!==o.lg.SHOWCASE&&(this.applicationData.application!==o.lg.WORKSHOP||this.toolsData.activeToolName!==r.S0.MEASUREMENTS)||this._roomNamesVisible}toggleRoomNamesVisible(){this._roomNamesVisible=!this._roomNamesVisible,this.commit()}get roomWallsVisible(){return this.applicationData.application!==o.lg.SHOWCASE&&(this.applicationData.application!==o.lg.WORKSHOP||this.toolsData.activeToolName!==r.S0.MEASUREMENTS)||this._roomWallsVisible}toggleRoomWallsVisible(){this._roomWallsVisible=!this._roomWallsVisible,this.commit()}get roomDimensionsVisible(){return this._roomDimensionsVisible&&(this.toolsData.activeToolName===r.S0.MEASUREMENTS||this.toolsData.activeToolName===r.S0.ROOM_BOUNDS)}toggleRoomDimensionsVisible(){this._roomDimensionsVisible=!this._roomDimensionsVisible,this.commit()}}},56245:(e,t,i)=>{"use strict";i.d(t,{b:()=>n,j:()=>l});var n,s=i(68909),a=i(54244),o=i(72244),r=i(76735);!function(e){e.SOLID="solid-wall",e.DIVIDER="invisible-wall"}(n||(n={}));class l{constructor(e,t,i,n,a,o){this.bias=.5,this.openings=[],this._t1=new s.Vector3,this._t2=new s.Vector3,this._rbushBbox={minX:0,minY:0,maxX:1,maxY:1},this.overlapsCircle=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3;return(s,o)=>{const r=this.getBiasAdjustmentVec(e),l=this.from.getVec3(t).add(r),d=this.to.getVec3(i).add(r),c=n.subVectors(d,l),u=c.length(),h=a.subVectors(s,l),m=h.length(),p=c.dot(h)/u,E=Math.sqrt(Math.max(m*m-p*p,0));return E<=this.width/2+o&&p>=-o&&p<=u+o?Math.min(p,E):null}})(),this.overlapsLine=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3,o=new s.Vector3,l=new s.Vector3,d=new s.Vector3,c=new s.Vector3,u=1e-4;function h(e,t,i){return c.subVectors(t,e).dot(i)/i.lengthSq()}return(s,c)=>{const m=this.getBiasAdjustmentVec(e),p=this.from.getVec3(t).add(m),E=this.to.getVec3(i).add(m),S=n.subVectors(E,p),O=o.copy(S).normalize(),g=a.subVectors(c,s),_=l.copy(g).normalize(),T=O.dot(_);if(Math.abs(Math.abs(T)-1)t&&n>t))return[{entity:this.from,t:i},{entity:this.to,t:n}].sort(((e,t)=>e.t-t.t))}}else{const e=(0,r.eB)(s.x,s.z,c.x,c.z,p.x,p.z,E.x,E.z,u);if(null!=e)return[{entity:this,t:e}]}return[]}})(),this.id=e,this.type=t,this.from=i,this.to=n,this.width=a,this.bias=o}static getCompositeKey(e,t){const i=[e,t].sort();return`${i[0]}:${i[1]}`}getEntityAnalytic(){return this.type}get floorId(){return this.from.floorId}get compositeKey(){return l.getCompositeKey(this.from.id,this.to.id)}getOtherNode(e){if(e===this.from)return this.to;if(e===this.to)return this.from;throw new Error("WallNode does not belong to edge.")}hasNodes(e,t){const{from:i,to:n}=this;return!(e!==i&&e!==n||t!==i&&t!==n)}getBiasAdjustmentVec(e=new s.Vector3){this.getNormal(e);const t=(this.bias-.5)*this.width;return e.multiplyScalar(t),e}getNormal(e=new s.Vector3){return this.getDirection(e),e.normalize(),e.set(-e.z,0,e.x),e}getDirection(e){const t=e||new s.Vector3;return t.set(this.to.x-this.from.x,0,this.to.z-this.from.z),t}getEdgeWidth(e,t){const i=this.from===e&&this.to===t?this.bias:1-this.bias;return this.width*i}getEdgeNormal(e,t,i=new s.Vector3){return this.getNormal(i),this.from===e&&this.to===t||i.multiplyScalar(-1),i}getLine3(e){const t=e||new s.Line3;return this.from.getVec3(t.start),this.to.getVec3(t.end),t}getProjection(e){const t=this._t1.copy(e).sub(this.from.getVec3(this._t2)),i=this.getDirection(this._t2);return t.dot(i)/i.length()}getSnapshot(){const e={thickness:this.width,vertices:[this.from.id,this.to.id],type:this.type===n.SOLID?a.gP.WALL:a.gP.INVISIBLE};if(this.openings.length){const t={};for(const e of this.openings)t[e.id]=e.getSnapshot();e.openings=t}return e}getViewCenter(e=new s.Vector3){return e.addVectors(this.to.getVec3(),this.from.getVec3()).multiplyScalar(.5)}get length(){return this.from.distanceTo(this.to)}get minX(){return this._rbushBbox.minX}get maxX(){return this._rbushBbox.maxX}get minY(){return this._rbushBbox.minY}get maxY(){return this._rbushBbox.maxY}updateRBushBBox(){this._rbushBbox={minX:Math.min(this.from.x,this.to.x)-2*this.width-o.RS,minY:Math.min(this.from.z,this.to.z)-2*this.width-o.RS,maxX:Math.max(this.from.x,this.to.x)+2*this.width+o.RS,maxY:Math.max(this.from.z,this.to.z)+2*this.width+o.RS}}clone(){const e=new l(this.id,this.type,this.from,this.to,this.width,this.bias);return e.openings.push(...this.openings),e}}},15281:(e,t,i)=>{"use strict";i.d(t,{D:()=>a});var n=i(68909),s=i(72244);class a{constructor(e,t,i,s){this.rbushBbox={minX:0,minY:0,maxX:1,maxY:1},this.overlapsCircle=(()=>{const e=new n.Vector3;return(t,i)=>{const n=this.getVec3(e).distanceTo(t);return n<=i+.3?n:null}})(),this.overlapsLine=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3;return(n,s)=>{const a=e.subVectors(s,n),o=this.getVec3(i),r=t.subVectors(o,n),l=r.dot(a)/a.length(),d=r.length();return Math.sqrt(d*d-l*l)<.3?[{entity:this,t:l/a.length()}]:[]}})(),this.id=e,this.floorId=t,this.x=i,this.z=s}getEntityAnalytic(){return"node"}getPoint(){return{x:this.x,z:this.z}}getVec3(e){const t=e||new n.Vector3;return t.set(this.x,0,this.z),t}getVec2(e){const t=e||new n.Vector2;return t.set(this.x,this.z),t}getViewCenter(e=new n.Vector3){return this.getVec3(e)}getSnapshot(){return{x:this.x,y:-this.z}}distanceTo(e){const t=this.x-e.x,i=this.z-e.z;return Math.sqrt(t*t+i*i)}updateRBushBBox(){this.rbushBbox={minX:this.x-s.RS,minY:this.z-s.RS,maxX:this.x+s.RS,maxY:this.z+s.RS}}get minX(){return this.rbushBbox.minX}get maxX(){return this.rbushBbox.maxX}get minY(){return this.rbushBbox.minY}get maxY(){return this.rbushBbox.maxY}}},28293:(e,t,i)=>{"use strict";i.d(t,{$:()=>a,v:()=>n});var n,s=i(68909);!function(e){e.DOOR="doorway",e.OPENING="opening"}(n||(n={}));class a{constructor(e,t,i,n,s,a){this.id=e,this.wallId=t,this.floorId=i,this.type=n,this.relativePos=s,this.width=a}getEntityAnalytic(){return this.type}getViewCenter(e=new s.Vector3){return e.set(0,0,0)}getSnapshot(){const{type:e,relativePos:t,width:i}=this;return{lowerElevation:0,height:0,type:e,relativePos:t,width:i}}}},13431:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>a,h4:()=>r,m2:()=>l,qQ:()=>o});var n=i(79085),s=i(41309);const a="room_bounds",o="room_bound_user_view_error";function r(e){return e.tryGetProperty(s.Q$.RoomBounds,!1)}function l(e,t,i){return!!(0,n.NW)(e)&&(!t.tryGetProperty(o,!1)&&(r(t)||i))}},28452:(e,t,i)=>{"use strict";i.d(t,{N:()=>o});var n=i(96540),s=i(74504);function a(e){return e?Array.from(e.rooms.values()):[]}function o(){const e=(0,s.N)(),[t,i]=(0,n.useState)(a(e));return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(a(e)),n=e.onRoomsChanged({onRemoved:e=>t,onUpdated:e=>t,onChildUpdated:e=>t,onAdded:e=>t});return t(),()=>{n.cancel()}}),[e]),t}},62364:(e,t,i)=>{"use strict";i.d(t,{v:()=>r});var n=i(41309),s=i(28452),a=i(16603),o=i(42008);function r(){const e=(0,s.N)(),t=(0,a.i)(n.Q$.RoomBounds,!1),i=(0,o.g)();return e.length>0&&t&&!!i}},74504:(e,t,i)=>{"use strict";i.d(t,{N:()=>a});var n=i(47952),s=i(12165);const a=(0,n.v)(s.A)},79357:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a,t:()=>s});var n=i(14754);class s extends n.QB{constructor(e){super(),this.error=e}}class a extends n.QB{constructor(e,t=(new Error).stack){super(),this.message=e,this.stack=t}}},58968:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,I:()=>d});var n=i(48071),s=i(68909),a=i(76735),o=i(75673);class r{constructor(){this.primary=new s.Vector3,this.bevel=new s.Vector3}set(e,t,i){this.primary.set(e,t,i),this.bevel.set(e,t,i)}copy(e,t){this.primary.copy(e),t?this.bevel.copy(t):this.bevel.copy(e)}}const l=(()=>{const e={fromLeft:new r,fromRight:new r,toLeft:new r,toRight:new r};return(t,i)=>{h(t,e);const n=i.getWallNeighbors(t,"from"),s=i.getWallNeighbors(t,"to");return n&&(c(t,n.left,"from","left",e.fromLeft),c(t,n.right,"from","right",e.fromRight)),s&&(c(t,s.left,"to","left",e.toLeft),c(t,s.right,"to","right",e.toRight)),e}})(),d=(()=>{const e={start:new s.Vector3,end:new s.Vector3},t={fromLeft:new r,fromRight:new r,toLeft:new r,toRight:new r};return(i,n,s,a,o=0)=>{let r,l,d,u,m;return a?(r="right",l="to",d="from",u=t.toRight,m=t.fromRight):(r="left",l="from",d="to",u=t.fromLeft,m=t.toLeft),h(i,t,o),i.id!==n.id&&c(i,n,l,r,u,o),c(i,s,d,r,m,o),e.start.copy(u.primary),e.end.copy(m.primary),e}})(),c=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,r=new s.Vector3,l=new s.Vector3,d=new s.Vector3,c=new s.Vector3,h=new s.Vector2,p=new s.Vector2,E=new s.Vector2,S=new s.Vector3,O=new s.Vector3;return(s,g,_,T,A,v=0)=>{const N=s.getDirection(e).normalize(),L=s[_],I="from"===_?-1:1,f=g.getOtherNode(L).getVec3(t).sub(L.getVec3(i)).normalize().multiplyScalar(I),b=N.dot(f);if(Math.acos(b)*o.tm<5)return;s.getBiasAdjustmentVec(S),g.getBiasAdjustmentVec(O);const R="left"===T?Math.PI/2:-Math.PI/2,y=N.applyAxisAngle(n.B1.UP,R).multiplyScalar(s.width/2+v).add(S),M=f.applyAxisAngle(n.B1.UP,R).multiplyScalar(g.width/2+v).add(O);s.from.getVec3(r).add(y),s.to.getVec3(l).add(y),g.from.getVec3(d).add(M),g.to.getVec3(c).add(M);if((0,a.HV)(r.x,r.z,l.x,l.z,d.x,d.z,c.x,c.z,h)){const e=u(L,s,g,h,E),t=e.x>0&&e.y>0,i=e.x<0&&e.y<0;if(e.x1.2*Math.max(s.width,g.width)&&i?m(L,s,g,y,M,A):A.set(h.x,0,h.y)}}}})(),u=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3;return(s,a,o,r,l)=>{let d=a.getOtherNode(s);return s.getVec3(i),d.getVec3(e).sub(i),d=o.getOtherNode(s),d.getVec3(t).sub(i),n.set(r.x,0,r.y).sub(i),l.set(e.dot(n)/e.length(),t.dot(n)/t.length()),l}})(),h=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3;return(s,a,o=0)=>{const r=s.width+2*o;s.getBiasAdjustmentVec(i),s.getNormal(e).multiplyScalar(-r/2).add(i),s.getNormal(t).multiplyScalar(r/2).add(i);const l=s.from.getVec3(n).add(t);a.fromRight.copy(l);const d=s.to.getVec3(n).add(t);a.toRight.copy(d);const c=s.to.getVec3(n).add(e);a.toLeft.copy(c);const u=s.from.getVec3(n).add(e);a.fromLeft.copy(u)}})(),m=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3;return(s,o,r,l,d,c)=>{const u=o.getOtherNode(s),h=r.getOtherNode(s);s.getVec3(t),u.getVec3(e).sub(t).normalize().multiplyScalar(-o.width/2),h.getVec3(i).sub(t).normalize().multiplyScalar(-r.width/2),n.copy(t).add(l).add(e),a.copy(t).add(d).add(i),c.copy(n,a)}})()},52982:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>o,Kq:()=>d,TG:()=>r});var n=i(99366),s=i(72244);const a={[s.om]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BALCONY,[s.bA]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BASEMENT,[s.i_]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BATHROOM,[s.Cp]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BEDROOM,[s.xI]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BONUS_ROOM,[s.Wr]:n.A.WORKSHOP.LABEL_SUGGESTIONS.CLOSET,[s.ZQ]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DEN,[s.Xq]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DINING_ROOM,[s.TP]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DRIVEWAY,[s.aU]:n.A.WORKSHOP.LABEL_SUGGESTIONS.ENTRANCE,[s.m1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.EXERCISE_ROOM,[s.Er]:n.A.WORKSHOP.LABEL_SUGGESTIONS.EXTERIOR,[s.eA]:n.A.WORKSHOP.LABEL_SUGGESTIONS.FACADE,[s.SE]:n.A.WORKSHOP.LABEL_SUGGESTIONS.FAMILY_ROOM,[s._1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GAME_ROOM,[s.vS]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GARAGE,[s.pZ]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GARDEN,[s.Hy]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GREAT_ROOM,[s.FI]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GYM,[s.mg]:n.A.WORKSHOP.LABEL_SUGGESTIONS.HALLWAY,[s.YK]:n.A.WORKSHOP.LABEL_SUGGESTIONS.KITCHEN,[s.lz]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LAUNDRY,[s.LX]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LIBRARY,[s.pl]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LIVING_ROOM,[s.v1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LOFT,[s.SK]:n.A.WORKSHOP.LABEL_SUGGESTIONS.MEDIA_ROOM,[s.u9]:n.A.WORKSHOP.LABEL_SUGGESTIONS.OFFICE,[s.YV]:n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER,[s.sC]:n.A.WORKSHOP.LABEL_SUGGESTIONS.PANTRY,[s.ny]:n.A.WORKSHOP.LABEL_SUGGESTIONS.PATIO,[s.QN]:n.A.WORKSHOP.LABEL_SUGGESTIONS.POOL,[s.oV]:n.A.WORKSHOP.LABEL_SUGGESTIONS.SAUNA,[s.V5]:n.A.WORKSHOP.LABEL_SUGGESTIONS.STAIRCASE,[s._6]:n.A.WORKSHOP.LABEL_SUGGESTIONS.UTILITY_ROOM,[s.GC]:n.A.WORKSHOP.LABEL_SUGGESTIONS.VOID,[s.x3]:n.A.WORKSHOP.LABEL_SUGGESTIONS.WORKSHOP_ROOM};function o(e,t,i){const s=t.t(n.A.SHOWCASE.ROOMS.DEFAULT_NAME);return i&&e?i.getRoomLabel(e,s):s}function r(e,t){const{id:i,label:a}=e;if(!i)return a||t.t(n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER);return i.indexOf(s.NZ)>-1?i.split(s.NZ).map((e=>t.t(l({id:i,label:a})))).join(s.Ae):t.t(l({id:i,label:a}))}function l(e){const{id:t,label:i}=e,s=a[t];return s||(i||n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER)}function d(e){if(e.length<2)return e;for(const t of s.xt)if(t.length===e.length&&t.every((t=>-1!==e.indexOf(t))))return t.slice();return e}},72244:(e,t,i)=>{"use strict";i.d(t,{$h:()=>l,Ae:()=>u,Bg:()=>a,Cp:()=>S,Er:()=>N,FI:()=>D,GC:()=>Y,Hy:()=>M,LX:()=>C,Mg:()=>s,NZ:()=>h,QN:()=>V,RS:()=>o,SE:()=>f,SK:()=>U,TP:()=>A,V5:()=>z,VG:()=>d,Wr:()=>g,Xq:()=>T,YK:()=>P,YV:()=>F,ZQ:()=>_,_1:()=>b,_6:()=>K,aU:()=>v,bA:()=>p,eA:()=>I,i_:()=>E,lD:()=>c,lz:()=>w,m1:()=>L,mg:()=>k,ny:()=>B,oV:()=>W,om:()=>m,pZ:()=>y,pl:()=>x,sC:()=>j,u9:()=>G,v1:()=>H,vS:()=>R,w_:()=>r,x3:()=>$,xI:()=>O,xt:()=>Q});var n=i(75673);const s=6*n.fy,a=6*n.fy,o=.01,r=.05,l=.1,d=.02,c=1.5,u=", ",h="-",m="ge0tcan3iztta5mtgsfx99xpb",p="4by2d70b54srbin43t5m0yh9c",E="ua1m0u8pm3yngrhzwec1ue5zc",S="pnf0xzq61xcegack4iai7xppd",O="y3xuprmywgrprnm0273u3pphd",g="zp189tx2hdrry8k5nhaq5x45d",_="4gp8x21ni4i8y19r9pm4rb35a",T="00258k0mqu8750du151be805c",A="91naa1k3hiim9z4mk8352enta",v="rmu8pikcye0n7n9fsu5e4acda",N="cqig2yw0p8q99t5n02w1kf40b",L="66psa4tqgazbnffr9huy2dnpd",I="4qq4e5hz84hcur7ry87uhtmua",f="mx6e2yfk0tg0zbkbzuw5mhkda",b="0gnuunpwx63dmmqeq64aqfiyd",R="izt39gytcbymc0qtd37nrb7xb",y="ei3kmtun2xpspbg3d5ff3t3zc",M="xwhhz63a0hw735qf81knp63ha",D="ywtddu9hagraxhznwinn8t4zb",k="yeh1aa32fwgm72bh0g92ebruc",P="zgh2304w5anu0t25ia06ytfxd",w="pr9h4zy7eak91f3b7un97u42c",C="gqqw1zac1hzg1p8622ducg3zb",x="w4tdggk5i5u2zpiryugktghgb",H="e6md2spaqemc448pmau3azkhd",U="a11d2gi43h0etwedw0mx9pgwd",G="ag5uphha72sak65qazgsp09yd",F="byp7pz2tmt4ff47nhfx0uwzec",j="2nx6maxxpaeut7kx96fuacdzc",B="n07hhs9gky4cgrh7q65s9rp0d",V="s1h0hb8tpcc9i35dmupknsega",W="gba8cq0s2rdfg1zdb1epwty7d",z="0an2rky24gb91fdnpzmbwadib",K="qa21tqcsinnxde9gdmiphacza",Y="k4ww3sk359ntmwgr8s75hq22a",$="nqw75004dcg2bcr41047rhg6c",Q=[[E,w],[P,T],[P,x],[P,x,T],[x,T]]},24141:(e,t,i)=>{"use strict";i.d(t,{I0:()=>u,K$:()=>L,N5:()=>c,bt:()=>f,eW:()=>d,fZ:()=>g,ll:()=>h,mN:()=>m,m_:()=>E,vo:()=>b});var n=i(54664),s=i(8004),a=i(68909),o=i(26179),r=i(75673),l=i(72244);function d(e,t=!1){if(0===e.length)return 0;const i=e.map((e=>[e.x,e.z]));return i.push(i[0]),(0,n.A)(i,t)}function c(e){return d(e,!0)>0&&e.reverse(),e}const u=(e,t)=>{const i=e.getCWPoints(),n=i.length,s={edges:[],thickness:[]};for(let e=0;e.01)&&(s.edges.push(i[e]),s.thickness.push(d))}return s},h=(e,t)=>{t.set(e[1].x-e[0].x,e[1].z-e[0].z).normalize();const i=t.x,n=t.y;return t.set(-n,i),t},m=(()=>{const e=new a.Vector2;return(t,i,n)=>(e.subVectors(n,i),t.dot(e))})(),p=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector2;return(n,s,a,o)=>(e.subVectors(a,s),t.copy(n).multiplyScalar(n.dot(e)),i.subVectors(e,t),o.addVectors(s,i),o)})(),E=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector2,n=new a.Vector2,s=new a.Vector2;return(a,o,r,l)=>{e.subVectors(a[1],a[0]).normalize(),t.subVectors(o[1],o[0]).normalize(),i.subVectors(e,t).normalize();const d=m(i,a[0],a[1]);let c=m(i,a[0],o[0]),u=m(i,a[0],o[1]);if(u{const e=new a.Vector2,t=new a.Vector2,i=Math.cos(5*r.fy);return(n,s,a)=>{e.set(n[1].x-n[0].x,n[1].z-n[0].z).normalize(),t.set(s[1].x-s[0].x,s[1].z-s[0].z).normalize();const o=e.dot(t);return o>=i||a&&o<=-i}})(),O=(()=>{const e=new a.Vector2;return(t,i,n)=>{if(!S(t,i,n))return!1;e.set(-(i[1].z-t[0].z),i[1].x-t[0].x).normalize();return!(Math.abs(m(e,t[0].getVec2(),t[1].getVec2()))>.05)}})(),g=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector3,n=new a.Vector2,s=new a.Vector2(0,0),o=[new a.Vector2,new a.Vector2],r=[new a.Vector2,new a.Vector2],l=new a.Vector2,d=new a.Vector2;return(a,c,u,h)=>{let m=Math.atan2(u[1].y-u[0].y,u[1].x-u[0].x);m<0&&(m+=2*Math.PI),m%=Math.PI/2;let p=Math.atan2(c[1].y-c[0].y,c[1].x-c[0].x);m<0&&(m+=Math.PI/2),p%=Math.PI/2,Math.abs(p-Math.PI/2-m){const e=new a.Vector2,t=new a.Vector2;return(i,n,s,a)=>{e.subVectors(i[1],i[0]).normalize(),t.subVectors(n[1],n[0]).normalize(),Math.abs(e.y)>Math.abs(t.y)?(s.x=Math.min(n[0].x,n[1].x),a.x=Math.max(n[0].x,n[1].x),s.y=Math.min(i[0].y,i[1].y),a.y=Math.max(i[0].y,i[1].y)):(s.x=Math.min(i[0].x,i[1].x),a.x=Math.max(i[0].x,i[1].x),s.y=Math.min(n[0].y,n[1].y),a.y=Math.max(n[0].y,n[1].y))}})();function T(e){const t=e[1].x-e[0].x,i=e[1].y-e[0].y;return t>0&&i>0?t*i:0}function A(e,t){return T([v(e[0],t[0],new a.Vector2),N(e[1],t[1],new a.Vector2)])}function v(e,t,i){return i.set(Math.max(e.x,t.x),Math.max(e.y,t.y))}function N(e,t,i){return i.set(Math.min(e.x,t.x),Math.min(e.y,t.y))}const L=(()=>{const e=6*r.fy,t=new a.Vector3,i=new a.Vector3;return(n,s,a,o,r)=>{const l=n[s],d=n[(s+1)%n.length],c=o.getWallForNodes(l.id,d.id).getEdgeWidth(l,d),u=a?(s+1)%n.length:s,h=(u+1)%n.length,m=(u+n.length-1)%n.length,p=o.getWallForNodes(n[m].id,n[u].id).getEdgeNormal(n[m],n[u]),E=o.getWallForNodes(n[u].id,n[h].id).getEdgeNormal(n[u],n[h]);if(t.copy(a?p:E),p.dot(E)>Math.cos(Math.PI-e)){i.addVectors(p,E).normalize();const e=i.dot(p);Math.abs(e)>1e-6&&(i.multiplyScalar(1/e),t.copy(i))}n[u].getVec3(r).addScaledVector(t,c)}})();function I(e){return`room-${e}`}function f(e){const t=l.YV;return 0===e.length?I(t):e.length>1?I("multi-use"):o.R.includes(I(e[0]))?I(e[0]):I(t)}function b(e,t){const[[i,n],[a,o]]=e,[[r,l],[d,c]]=t,u=((0,s.kW)(e[0],t)?1:0)+((0,s.kW)(e[1],t)?1:0)+((0,s.kW)(t[0],e)?1:0)+((0,s.kW)(t[1],e)?1:0),h=(c-l)*(a-i)-(d-r)*(o-n);if(Math.abs(h)<1e-4)return u>2;const m=n-l,p=i-r,E=((d-r)*m-(c-l)*p)/h,S=((a-i)*m-(o-n)*p)/h,O=1e-8,g=.99999999;return E>O&&EO&&S{"use strict";i.d(t,{Cv:()=>s,Z_:()=>o,xD:()=>a});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={id:e}}}s.id="roombound_unselect";class a extends n.u{constructor(e=!1){super(),this.payload={visible:e}}}a.id="set_roombound_visibility";class o extends n.u{constructor(e){super(),this.payload={allowRendering:e}}}o.id="room_bound_set_allow_rendering"},84209:(e,t,i)=>{"use strict";i.d(t,{l:()=>N});var n=i(74848),s=i(96540),a=i(17139),o=i(99366),r=i(38216),l=i(38907),d=i(66077),c=i(8466),u=i(62364),h=i(42008);const m=e=>{var t,i,n;return{roomDimensionsVisible:null===(t=null==e?void 0:e.roomDimensionsVisible)||void 0===t||t,roomNamesVisible:null===(i=null==e?void 0:e.roomNamesVisible)||void 0===i||i,roomWallsVisible:null===(n=null==e?void 0:e.roomWallsVisible)||void 0===n||n}},p=()=>{const e=(0,h.g)(),[t,i]=(0,s.useState)(m(e));return(0,s.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(m(e)),n=e.onChanged(t);return t(),()=>{n.cancel()}}),[e]),t};var E=i(36186),S=i(87256),O=(i(87072),i(35223)),g=i(41733),_=i(11360),T=i(521);const{ROOMS:A}=o.A.SHOWCASE,v=new g.L(!0);function N(e){const t=(0,r.Y)(),i=t.t(A.ROOM_BOUNDS_TOGGLES_TITLE),{analytics:o,commandBinder:m}=(0,s.useContext)(a.B),{allowImageryToggle:g}=e,N=(0,u.v)(),L=(0,h.g)(),I=(0,l.S)(O.GR),f=function(){var e;const t=(0,l.S)(O.GR);return(0,d.A)(null!==(e=null==t?void 0:t.meshGroupVisuals.allFloorsVisibleInOrtho)&&void 0!==e?e:v)}(),{roomNamesVisible:b,roomDimensionsVisible:R,roomWallsVisible:y}=p(),M=(0,_.T)();if((0,s.useEffect)((()=>{const e=b||R||y;m.issueCommand(new c.xD(e))}),[b,R,y,m]),!N||!L||!I)return null;const D=M&&M===T.S0.MEASUREMENTS,k=t.t(A.ROOM_BOUNDS_WALL_TOGGLE_LABEL),P=t.t(A.ROOM_BOUNDS_ROOM_TOGGLE_LABEL),w=t.t(A.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL),C=t.t(A.ROOM_BOUNDS_MODEL_TOGGLE_LABEL),x=f;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",Object.assign({className:"floorplan-overlay-title"},{children:i})),(0,n.jsxs)(S.t,Object.assign({className:"floorplan-overlay-tooltip"},{children:[(0,n.jsx)(E.A,{onToggle:()=>{L.toggleRoomWallsVisible(),o.trackToolGuiEvent("rooms","room_walls_showcase_toggle_"+(y?"off":"on"))},toggled:y,label:k,enabled:x}),(0,n.jsx)(E.A,{onToggle:()=>{L.toggleRoomNamesVisible(),o.trackToolGuiEvent("rooms","room_names_showcase_toggle_"+(b?"off":"on"))},toggled:b,label:P,enabled:!0}),D&&(0,n.jsx)(E.A,{onToggle:()=>{L.toggleRoomDimensionsVisible(),o.trackToolGuiEvent("rooms","room_dimensions_showcase_toggle_"+(R?"off":"on"))},toggled:R,label:w,enabled:!0}),g&&(0,n.jsx)(E.A,{onToggle:()=>{const e=!f;I.meshGroupVisuals.allFloorsVisibleInOrtho.value=e,e||y||L.toggleRoomWallsVisible(),o.trackToolGuiEvent("rooms","room_imagery_showcase_toggle_"+(f?"off":"on"))},toggled:f,label:C,enabled:!0})]}))]})}},42008:(e,t,i)=>{"use strict";i.d(t,{g:()=>a});var n=i(47952),s=i(68093);const a=(0,n.v)(s.B)},90833:(e,t,i)=>{"use strict";i.d(t,{VS:()=>s,vs:()=>n});const n=!0,s="features/pie-1.1-ceilings"},77028:(e,t,i)=>{"use strict";i.d(t,{q:()=>a});var n=i(61589),s=i(41733);class a extends n.B{constructor(e){if(super(),this.name="rooms",this.selected=new s.L(null),this._rooms={},this.floorToRoomsMap=new Map,e)for(const t of Object.values(e))this.add(t)}add(e){this._rooms[e.id]=e;const t=this.floorToRoomsMap.get(e.floorId);t?t.push(e):this.floorToRoomsMap.set(e.floorId,[e])}remove(e){const t=this.get(e);if(!t)return;const i=this.floorToRoomsMap.get(t.floorId);if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}delete this._rooms[e]}rooms(){const e=this._rooms,t=Object.keys(this._rooms);return function*(){for(const i of t)yield e[i]}()}get roomCount(){return Object.keys(this._rooms).length}get collection(){return this._rooms}getAllRooms(){return Object.values(this.floorToRoomsMap)}get(e){return this._rooms[e]}getByMeshSubgroup(e){return Object.values(this._rooms).find((t=>t.meshSubgroup===e))}roomsByFloor(e){return this.floorToRoomsMap.get(e)||[]}getRoomIdMap(e,t){const i={};for(const n of Object.values(this._rooms)){const s=e.getFloor(n.floorId),a=s?String((s.index<<16)+n.meshSubgroup):"",o=n.id;""===a?console.warn("[WARNING getRoomIdMap]: mapping between room IDs was incomplete!"):t?i[a]=o:i[o]=a}return i}}},27074:(e,t,i)=>{"use strict";i.d(t,{q:()=>c,t:()=>d});var n=i(68909),s=i(3531),a=i(35652),o=i(12127);const r=["FontLoader","Font","ParametricGeometry","TextGeometry"],l=new a.Ay("three-globals"),d=function(e,t){n.DefaultLoadingManager.addHandler(/\.tga$/i,new s.TGALoader(o.A)),n.DefaultLoadingManager.addHandler(/\.jpe?g$/i,e()),n.DefaultLoadingManager.addHandler(/\.png$/i,t()),n.Cache.enabled=!0},c=async function(){const{modules:e}=await Promise.all([i.e(7888),i.e(8287),i.e(5e3),i.e(7209),i.e(3153),i.e(6888),i.e(239)]).then(i.bind(i,72600));for(const t of e){const e=Object.keys(t);for(const i of e){const e=t[i],s=n;if(i in s)if("object"==typeof e)for(const t in e)t in s[i]||(s[i][t]=e[t]);else"function"==typeof e&&(!(i in s)||r.includes(i)?s[i]=e:l.debug(`"${i}" exists in THREE object but has not been listed as overrideable, skipping...`));else s[i]=e}}}},57642:(e,t,i)=>{"use strict";i.d(t,{L:()=>l});var n=i(61589),s=i(45021),a=i(54998),o=i(82856),r=i(67742);class l extends n.B{constructor(){super(...arguments),this.searchMode=!1,this.query="",this.typeFilters=(0,s.Z)(),this.keywordFilters=(0,s.Z)(),this.grouping=l.defaultGrouping,this.results=(0,a.y)(),this.dataTypeGroups={},this.keywordCounts=(0,a.y)({}),this.activeItemId=null,this.selectedType=null}getSearchDataTypeList(){return Object.values(this.dataTypeGroups)}getSearchDataTypeGroup(e){return this.dataTypeGroups[e]}getQuery(){return this.query}getTypeFilters(){return this.typeFilters.values()}setTypeFilters(e){this.typeFilters.replace(e)}setTypeFilter(e){this.setTypeFilters([e])}clearTypeFilters(){this.getTypeFilters().length>0&&this.typeFilters.replace([])}toggleSearchFilter(e,t){t?this.typeFilters.push(e):this.typeFilters.remove(this.typeFilters.indexOf(e))}hasActiveQuery(){return""!==this.query||this.keywordFilters.length>0}setQuery(e){this.query=e}getKeywordFilters(){return this.keywordFilters.values()}setKeywordFilters(e){this.keywordFilters.replace(e)}setKeywordCounts(e){this.keywordCounts.replace(e)}getKeywordSummaries(){const e={};return this.getKeywordFilters().forEach((t=>{e[t]={id:t,text:t,count:0,isSelected:!0}})),this.keywordCounts.keys.forEach((t=>{const i=this.keywordCounts.get(t);e[t]?e[t].count=i:e[t]={id:t,text:t,count:i,isSelected:!1}})),Object.values(e)}hasSearchResultItem(e){const t=(0,r.u)(e);return this.results.has(t)}getSearchResultItem(e){const t=(0,r.u)(e);return this.results.get(t)}getResultsMap(){return this.results}getResults(){return this.results.values}onSearchResultsChanged(e){return this.results.onChanged(e)}setResults(e){this.getResults().forEach((e=>e.cancelBindings()));const t=e.reduce(((e,t)=>(e[(0,r.u)(t)]=t,t.registerBindings(),e)),{});this.atomic((()=>{this.results.replace(t)}))}}l.defaultGrouping=o.Hj.TYPE},4222:(e,t,i)=>{"use strict";i.d(t,{W:()=>a});var n=i(41309);const s="search";function a(e){const t=e.tryGetProperty(n.Q$.SpaceSearch,0),i=e.getOverrideParam(s,1);return t&&!(0===i)}},23168:(e,t,i)=>{"use strict";i.d(t,{A_:()=>l,S8:()=>n,x8:()=>r});const n=["",""],s=20;function a(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function o(e,t){const[i,s]=n,o=`${i}|${s}`;let r=!1;if(e.match(new RegExp(o))&&(e=e.replace(new RegExp(`(${o})`,"g"),((e,t)=>t.split("").join("‌"))),r=!0),t){let n;n=r?t.split("").map(a).join("[‌]?"):a(t),e=e.replace(new RegExp(`(${n})`,"gi"),((e,t)=>`${i}${t}${s}`))}return e}const r=o;function l(e,t){const i=function(e,t){var i;const n=e.toLowerCase(),[o,r,l]=[n.indexOf(t),e.length,(null===(i=n.match(new RegExp(`${a(t)}`,"g")))||void 0===i?void 0:i.length)||1];let d=e,c=o;if(r>s&&c>0){if(1===l){const e=Math.floor((s-t.length)/2);e>0&&c>e&&(c-=e)}d=`...${d.substr(c)}`,d.length0&&(d=`...${e.substr(c)}`))}return d}(e,t);return o(i,t)}},81047:(e,t,i)=>{"use strict";i.d(t,{X$:()=>n,aJ:()=>s,bo:()=>a});const n=75,s=50,a=50},67742:(e,t,i)=>{"use strict";i.d(t,{E:()=>a,u:()=>o});var n=i(82856),s=i(81047);function a(e,t,i){var a;switch(i){case n.Hj.TYPE:return(null===(a=null==e?void 0:e.dataTypeGroups[t])||void 0===a?void 0:a.groupOrder)||s.X$;case n.Hj.FLOOR:return s.bo;case n.Hj.LAYER:return s.aJ}return-1}function o(e){return`${e.id}-${e.typeId}`}},70814:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BoxVolume:()=>y.M,CylinderVolume:()=>M.z,SensorModule:()=>R,SourceType:()=>P,SphereVolume:()=>D.I,default:()=>k});var n=i(23205),s=i(35223),a=i(78096),o=i(48071),r=i(68909);class l{constructor(){this.needsUpdate=!0}notify(){this.needsUpdate=!0}}var d=i(47568);class c{constructor(e){this.observable=new d.y,this.notifier=new class{constructor(e){this.sensorObservable=e}notify(){this.sensorObservable.observable.notify()}}(this),this.dependencySub=e.sub(this.notifier)}dispose(){this.dependencySub.cancel()}observe(e){return this.observable.observe(e)}}class u{constructor(e){this.cameraData=e,this._forward=new r.Vector3,this.frustum=new r.Frustum,this.frustumTransform=new a.k,this.frustumProjection=new a.k,this.forwardObserver=new l,this.frustumObserver=new l,this.frustumObservable=new c(new h(e)),this.frustumObservable.observe(this.forwardObserver),this.frustumObservable.observe(this.frustumObserver)}dispose(){this.frustumObservable.dispose()}get fovx(){return this.cameraData.fovX()}get fovy(){return this.cameraData.fovY()}get forward(){return this.forwardObserver.needsUpdate&&(this.forwardObserver.needsUpdate=!1,this._forward.copy(o.B1.FORWARD),this._forward.applyQuaternion(this.cameraData.pose.rotation)),this._forward}observe(e){return this.frustumObservable.observe(e)}get origin(){return this.cameraData.pose.position}containsPoint(e){return this.updateVolume(),this.frustum.containsPoint(e)}updateVolume(){if(this.frustumObserver.needsUpdate){this.frustumObserver.needsUpdate=!1;const e=this.cameraData.pose;this.frustumTransform.compose(e.position,e.rotation,o.B1.UNIT).getInverse(this.frustumTransform),this.frustumProjection.copy(this.cameraData.pose.projection),this.frustum.setFromProjectionMatrix(this.frustumTransform.multiplyMatrices(this.frustumProjection,this.frustumTransform).asThreeMatrix4())}}}class h{constructor(e){this.cameraData=e}sub(e){return this.cameraData.onChanged((()=>e.notify()))}}var m=i(45018);class p{constructor(){this.sensors=new Set}addSensor(e){this.sensors.add(e)}removeSensor(e){this.sensors.delete(e)}update(){for(const e of this.sensors)e.update()}}class E{constructor(e,t,i){this.frustum=e,this.raycaster=t,this.sensorDisposer=i,this.volumeObserver=new l,this.sources=new Set,this.dirtySources=new Set,this.sourceWatchers=new Map,this.readingsCache=new Map,this.readingObservable=new d.y,this.raycastDirection=new r.Vector3,this.volumeSub=e.observe(this.volumeObserver)}get origin(){return this.frustum.origin}dispose(){this.volumeSub.cancel(),this.sensorDisposer.disposeSensor(this)}addSource(...e){for(const t of e)this.sources.add(t),this.dirtySources.add(t),this.sourceWatchers.set(t,new S(this.dirtySources,t))}get readings(){return this.readingsCache}update(){this.volumeObserver.needsUpdate?(this.volumeObserver.needsUpdate=!1,this.recomputeAllReadings(),this.readingObservable.notify()):this.dirtySources.size>0&&(this.recomputeDirtyReadings(),this.readingObservable.notify())}recomputeAllReadings(){for(const e of this.sources)this.recomputeReading(e);this.dirtySources.clear()}recomputeDirtyReadings(){for(const e of this.dirtySources)this.recomputeReading(e);this.dirtySources.clear()}recomputeReading(e){this.raycastDirection.copy(e.origin).sub(this.frustum.origin).normalize();const t=this.frustum.origin.distanceToSquared(e.origin),i=this.readingsCache.get(e)||{direction:new r.Vector3};i.inRange=function(e,t){return t.volume.containsPoint(e.origin)}(this,e),i.inView=i.inRange&&this.frustum.containsPoint(e.origin)&&!function(e,t){return!!t&&e>t.distance**2}(t,this.raycaster.picking.pick(this.frustum.origin,this.raycastDirection)),i.direction.copy(this.raycastDirection),i.distanceSq=t,this.readingsCache.set(e,i)}onReadingsUpdated(e){return this.readingObservable.observe(e)}}class S{constructor(e,t){this.sub=t.volume.observe({notify(){e.add(t)}})}dispose(){this.sub.cancel()}}var O=i(2785),g=i(42311),_=i(86407);const T=(e,t)=>e.type===P.BOX?v(t):e.type===P.CYLINDER?function(e){const t=new r.CylinderGeometry(.5,.5,1);t.translate(0,.5,0);const i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.05,.1,.05);const n=new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}),s=new r.Mesh(t,new r.MeshBasicMaterial({wireframe:!0})),a=new r.Mesh(t,n);return a.add(s),e.add(i),e.add(a),{interactionMesh:i,volumeMesh:a,dispose(){e.remove(i),e.remove(a),i.geometry.dispose(),i.material.dispose(),a.geometry.dispose(),a.material.dispose(),s.geometry.dispose(),s.material.dispose()},setColor(e){a.material.color.set(e),s.material.color.set(e)}}}(t):A(t),A=e=>{const t=new r.SphereGeometry(1,20,20),i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.5,.5,.5);const n=new r.Mesh(t,new r.MeshBasicMaterial({wireframe:!0})),s=new r.Mesh(t,new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}));return s.add(n),e.add(i),e.add(s),{interactionMesh:i,volumeMesh:s,dispose:()=>{e.remove(i),e.remove(s),i.geometry.dispose(),i.material.dispose(),s.geometry.dispose(),s.material.dispose(),n.geometry.dispose(),n.material.dispose()},setColor:e=>{s.material.color.set(e),n.material.color.set(e)}}},v=e=>{const t=new r.BoxGeometry(1,1,1),i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.1,.1,.1);const n=new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}),s=new r.Mesh(t,n),a=new r.LineSegments(new r.EdgesGeometry(t),new r.LineBasicMaterial);return s.add(a),e.add(i),e.add(s),{interactionMesh:i,volumeMesh:s,dispose:()=>{e.remove(i),e.remove(s),i.geometry.dispose(),i.material.dispose(),s.geometry.dispose(),s.material.dispose(),a.geometry.dispose(),a.material.dispose()},setColor:e=>{s.material.color.set(e),a.material.color.set(e)}}};const N=e=>{if(e.type===P.BOX){const t=e;return Object.assign({},t.volume.size)}if(e.type===P.CYLINDER){const t=e;return{x:t.volume.radius,y:t.volume.height,z:t.volume.radius}}{const t=e.volume.radius;return{x:t,y:t,z:t}}},L=(new r.Quaternion).identity();function I(e){if(e.type===P.BOX){return e.volume.orientation}return L}class f{constructor(e,t,i){this.source=e,this.scene=t,this.inputIni=i,this.subs=[],this.stickyHover=!1,this.sourceDirty=!0,this.meshes=T(e,this.scene.scene),this.meshes.interactionMesh.scale.set(.1,.1,.1),this.meshes.interactionMesh.position.copy(this.source.origin),this.meshes.interactionMesh.material.color.set(16724312),this.meshes.volumeMesh.scale.set(0,0,0),this.meshes.volumeMesh.position.copy(this.source.origin),this.meshes.volumeMesh.visible=!1;const n=I(e);this.meshes.volumeMesh.quaternion.copy(n);this.mixer=new r.AnimationMixer(this.meshes.volumeMesh);const s=N(e),a=new r.VectorKeyframeTrack(".scale",[0,.4],[0,0,0,s.x,s.y,s.z],r.InterpolateSmooth),o=new r.AnimationClip(void 0,.4,[a]);this.onHoverAction=this.mixer.clipAction(o),this.onHoverAction.clampWhenFinished=!0,this.onHoverAction.loop=r.LoopOnce;const l=()=>{const e=this.onHoverAction.time;this.onHoverAction.reset(),this.meshes.volumeMesh.visible=!0,this.onHoverAction.timeScale=1,this.onHoverAction.time=e,this.onHoverAction.play()},d=()=>{this.stickyHover=!this.stickyHover,this.stickyHover?this.meshes.interactionMesh.material.color.set(4473924):this.meshes.interactionMesh.material.color.set(16724312)};this.subs.push(this.inputIni.registerMeshHandler(O.L,_.f.isValue(this.meshes.interactionMesh),l)),this.subs.push(this.inputIni.registerMeshHandler(O.q,_.f.isValue(this.meshes.interactionMesh),(()=>{if(!this.stickyHover){const e=this.onHoverAction.time;this.onHoverAction.reset(),this.onHoverAction.time=e,this.onHoverAction.timeScale=-1,this.onHoverAction.play()}}))),this.subs.push(this.inputIni.registerMeshHandler(g.rX,_.f.isValue(this.meshes.interactionMesh),d)),this.inputIni.registerMesh(this.meshes.interactionMesh,!1),l(),d(),this.subs.push(e.volume.observe(this))}notify(){this.sourceDirty=!0}update(e,t){if(this.sourceDirty){this.sourceDirty=!1,this.meshes.interactionMesh.position.copy(this.source.origin),this.meshes.volumeMesh.position.copy(this.source.origin),this.meshes.volumeMesh.quaternion.copy(I(this.source));const e=N(this.source),t=this.onHoverAction.getClip().tracks[0].values;t[3]=e.x,t[4]=e.y,t[5]=e.z}this.meshes.setColor(t.inRange?65280:16711680),this.mixer.update(e/1e3)}dispose(){this.meshes.dispose(),this.mixer.stopAllAction();for(const e of this.subs)e.cancel()}}class b{constructor(e,t,i){this.sensor=e,this.scene=t,this.inputIni=i,this.subs=[],this.visuals=new Map}init(){this.subs.push(this.sensor.onReadingsUpdated(this))}render(e){for(const[t,i]of this.sensor.readings){let n=this.visuals.get(t);n||(n=new f(t,this.scene,this.inputIni),this.visuals.set(t,n)),n.update(e,i)}}dispose(){}activate(){}deactivate(){for(const e of this.subs)e.cancel();for(const e of this.visuals.values())e.dispose();this.visuals.clear()}notify(){}}class R extends n.n{constructor(){super(...arguments),this.name="sensor-module",this.sensorUpdater=new p,this.debugSensor=null,this.sensorDisposer=new class{constructor(e){this.sensors=e}disposeSensor(e){this.sensors.removeSensor(e)}}(this)}async init(e,t){[this.cameraData,this.raycaster,this.renderer,this.inputIni]=await Promise.all([await t.market.waitForData(m.M),await t.getModuleBySymbol(s.sA),await t.getModuleBySymbol(s.M7),await t.getModuleBySymbol(s.mL)]),this.cameraVolume=new u(this.cameraData);var i,n,a,o;this.sensorDebuggerFactory=(i=e=>{t.addComponent(this,e)},n=e=>{t.removeComponent(this,e)},a=this.renderer.getScene(),o=this.inputIni,e=>{const t=new b(e,a,o);return i(t),{dispose:()=>{n(t)}}})}dispose(){this.cameraVolume.dispose()}createSensor(e){const t=new E(e,this.raycaster,this.sensorDisposer);return this.sensorUpdater.addSensor(t),t}createCameraBoundSensor(){return this.createSensor(this.cameraVolume)}setDebugSensor(e){this.debugSensor&&(this.debugSensor.dispose(),this.debugSensor=null),e&&(this.debugSensor=this.sensorDebuggerFactory(e))}onUpdate(){this.sensorUpdater.update()}removeSensor(e){this.sensorUpdater.removeSensor(e)}}var y=i(98772),M=i(81195),D=i(57092);const k=R;var P;!function(e){e.SPHERE="sourcetype.sphere",e.BOX="sourcetype.box",e.CYLINDER="sourcetype.cylinder"}(P||(P={}))},98772:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(68909),s=i(47568);class a extends s.y{constructor(){super(),this.box=new n.Box3,this.center=new n.Vector3,this.size=new n.Vector3(1/0,1/0,1/0),this.orientation=new n.Quaternion,this.inverseOrientation=new n.Quaternion,this.pointCache=new n.Vector3,this.transformNeedsUpdate=!1,this.box.setFromCenterAndSize(this.center,this.size)}get origin(){return this.center}updateCenter(e){this.center.copy(e),this.box.setFromCenterAndSize(this.center,this.size),this.transformNeedsUpdate=!0}updateDimensions(e){this.size.copy(e),this.box.setFromCenterAndSize(this.center,this.size)}updateOrientation(e){this.orientation.copy(e),this.transformNeedsUpdate=!0}containsPoint(e){return this.transformNeedsUpdate&&(this.transformNeedsUpdate=!1,this.inverseOrientation.copy(this.orientation).invert()),this.pointCache.copy(e).sub(this.center),this.pointCache.applyQuaternion(this.orientation),this.pointCache.add(this.center),this.box.containsPoint(this.pointCache)}}},81195:(e,t,i)=>{"use strict";i.d(t,{z:()=>a});var n=i(68909),s=i(47568);class a extends s.y{constructor(){super(...arguments),this._basePoint=new n.Vector3,this._height=1/0,this._radius=1/0,this.pointCache=new n.Vector3}get origin(){return this._basePoint}get basePoint(){return this._basePoint}get height(){return this._height}get radius(){return this._radius}updateBasePoint(e){this.basePoint.set(e.x,e.y,e.z)}updateHeight(e){this._height=e}updateRadius(e){this._radius=e}containsPoint(e){return this.pointCache.set(e.x,this._basePoint.y,e.z),this._basePoint.distanceToSquared(this.pointCache)<=this.radius**2&&this._basePoint.y<=e.y&&e.y<=this._basePoint.y+this.height}}},57092:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var n=i(68909),s=i(47568);class a extends s.y{constructor(){super(...arguments),this.origin=new n.Vector3,this.radius=1/0}updateRadius(e){this.radius=e}updateOrigin(e){this.origin.copy(e)}containsPoint(e){return this.origin.distanceToSquared(e)<=this.radius**2}}},32361:(e,t,i)=>{"use strict";var n;i.d(t,{X:()=>n}),function(e){e.USER="user",e.PANORAMA="panorama",e.UNALIGNED="unaligned",e.AUTO="auto",e.TOUR="tour"}(n||(n={}))},50281:(e,t,i)=>{"use strict";i.d(t,{PN:()=>r,nF:()=>l});var n=i(95226),s=i(32361),a=i(82110),o=i(39591);s.X.PANORAMA,s.X.TOUR,s.X.USER;const r=(e,t)=>{const i=e.name||(0,n.Rt)(e.created),s=t.name||(0,n.Rt)(t.created);return i.localeCompare(s)},l=(e,t,i,n)=>{var s;let r=null!==(s=i.currentMode)&&void 0!==s?s:a.N3.Panorama;const l=e.pose.position.clone();return n&&!(0,a.nI)(r)&&((0,o.aY)(e.pose.pitchFactor())?(r=a.N3.Floorplan,l.y=e.pose.fovCorrectedFocalDistance()+t.getFloorMin()):r=a.N3.Dollhouse),{position:l,viewmode:r}}},76283:(e,t,i)=>{"use strict";i.d(t,{P:()=>n});class n{static get hasPassword(){const{model:e}=window.MP_PREFETCHED_MODELDATA||{};return e&&e.has_public_access_password}static get modelErrorCode(){var e,t;return null===(t=null===(e=window.MP_PREFETCHED_MODELDATA)||void 0===e?void 0:e.model)||void 0===t?void 0:t.error_code}static getQuery(e){var t,i,n;const s=(null===(t=window.MP_PREFETCHED_MODELDATA)||void 0===t?void 0:t.queries)||{};if("GetModelPrefetch"===e){const t=s[e];if(!t)return;const a=null===(i=t.data)||void 0===i?void 0:i.model;if(!a)return;if(!(null===(n=a.locations)||void 0===n?void 0:n.length))return;return t}return s[e]}static getQueryErrors(e){var t,i,n;return null===(n=null===(i=null===(t=window.MP_PREFETCHED_MODELDATA)||void 0===t?void 0:t.queries)||void 0===i?void 0:i[e])||void 0===n?void 0:n.errors}static get config(){var e;return null===(e=window.MP_PREFETCHED_MODELDATA)||void 0===e?void 0:e.config}}},76445:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var n=i(21746),s=i(38398),a=i(35652),o=i(64260);const r=new a.Ay("PrefetchedQueryCache");class l{constructor(e){const{initialData:t,baseUrl:i,mdsContext:a}=e;this.client=new n.t({baseUrl:i,mdsContext:a}),this.config=e,t?this.data=t:e.prefetchPolicy===s.G.PRELOAD&&this.preload()}async read(e,t,i={}){const{prefetchKey:n,prefetchPolicy:a=this.config.prefetchPolicy}=i;if(!n||a===s.G.NONE)return;if((null==t?void 0:t.modelId)!==this.config.variables.modelId)return;a===s.G.PRELOAD&&void 0===this.data&&await this.preload();const o=this.has(n);return r.debug(`Cache ${o?"hit":"miss"} for ${n}`),o?this.data:void 0}clear(){this.data=void 0,this.preloadPromise=void 0}async preload(){var e;return null!==(e=this.preloadPromise)&&void 0!==e?e:this.preloadPromise=(async()=>{const{query:e,variables:t,anonymous:i}=this.config;try{return this.data=await this.client.query(e,t,{anonymous:i}),!0}catch(e){return r.info(e),this.data={},!1}})()}has(e){return void 0!==(0,o.L)(this.data,e)}}},53865:(e,t,i)=>{"use strict";i.d(t,{DI:()=>s,ft:()=>o,xi:()=>a,xt:()=>r});var n=i(14754);class s extends n.QB{constructor(e){super(),this.dataTypes=e}}class a extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}class o extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}class r extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}},56638:(e,t,i)=>{"use strict";i.d(t,{An:()=>a,Z1:()=>o,ZZ:()=>d,jg:()=>n,nt:()=>s,oZ:()=>c,td:()=>l,x$:()=>r});const n="subscriber_prompt",s="subscriber-prompt-active",a="subscriber-prompt-active",o=Object.freeze({popupDelay:14500,popupEnabled:!1,bannerEnabled:!1,domainDenylist:["ea4141d5b45bcfce5ac984955a7df9f74b323182","500ef59c0e9bd523a5e102d4b229b85df4c008c2","55d9b1786668eb25ce174aa06d46535054046935","44a68fb615814e263894da681018ed5687527b75","750514616c13561e878f04cd38cedc4bd3028f60","633e98d1f7cf36879e21d642068af2196d67a229","2566065b5d698efd82a16854185501ee2ea8eae6"]}),r={enabled:"spEnabled",forceBanner:"spBanner",forcePopup:"spPopup",forcePolicy:"spPolicy",forceReferrer:"spReferrer"},l="spaces.visitor.subscriber.prompt",d="mp/subscriber-prompt-dismissed",c="https://matterport.page.link/v2s-download"},67307:(e,t,i)=>{"use strict";i.d(t,{r:()=>n});const n=new(i(35652).Ay)("subscriber-prompt")},39425:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(20560);class s extends n.A{}},49545:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(20560);class s extends n.A{constructor(e,t,i,n){super(e,n),this.alignmentType=t,this.placementType=i}}},20560:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.fromSweep=t,this.toSweep=e,this.timestamp=Date.now()}}},8371:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>c,EO:()=>s,c$:()=>n});var n,s,a=i(68909),o=i(61693),r=i(61543);!function(e){e.ALIGNED="aligned",e.UNALIGNED="unaligned"}(n||(n={})),function(e){e.UNPLACED="unplaced",e.AUTO="auto",e.MANUAL="manual"}(s||(s={}));const l={[r.MF.BASE]:"512",[r.MF.STANDARD]:"1k",[r.MF.HIGH]:"2k",[r.MF.ULTRAHIGH]:"4k"},d={[r.MF.BASE]:"low",[r.MF.STANDARD]:"high",[r.MF.HIGH]:"2k",[r.MF.ULTRAHIGH]:"4k"};class c extends o.v{constructor(e){super(),this._sourceViewId=null,this.floorId=null,this.roomId=null,this.skyboxes={},e&&(null!=e.sourceViewId&&(this._sourceViewId=e.sourceViewId),e.platformId&&(this._platformId=e.platformId),this._id=c.formatId(this._platformId,this._sourceViewId),void 0!==e.index&&(this.index=e.index),this.name=e.name||"",this.position=e.position||new a.Vector3,this.floorPosition=e.floorPosition||new a.Vector3,void 0!==e.floorId&&(this.floorId=e.floorId),this.roomId=e.roomId||null,this.rotation=e.rotation||new a.Quaternion,this.enabled=e.enabled||!1,this.vrenabled=e.vrenabled||!1,this.neighbours=e.neighbours||[],this.alignmentType=e.alignmentType||n.ALIGNED,this.placementType=e.placementType||s.UNPLACED,void 0!==e.uuid&&(this.uuid=e.uuid),e.resolutions&&(this.resolutions=e.resolutions.slice()),e.skyboxes&&(this.skyboxes=Object.assign({},e.skyboxes)))}static formatId(e,t){return t?`${t}:${e}`:e}get id(){return this._id}get platformId(){return this._platformId}get sourceViewId(){return this._sourceViewId}isAligned(){return this.alignmentType===n.ALIGNED}isUnplaced(){return this.placementType===s.UNPLACED}deepEquals(e){if(!this.equals(e))return!1;for(const t in this.skyboxes)for(const i in e.skyboxes){const n=this.skyboxes[t],s=e.skyboxes[i];if(n&&s&&n.getCurrentValue()!==s.getCurrentValue())return!1}return!0}equals(e){return this.id===e.id&&this.index===e.index&&this.name===e.name&&this.position.equals(e.position)&&this.floorId===e.floorId&&this.roomId===e.roomId&&this.rotation.equals(e.rotation)&&this.enabled===e.enabled&&this.vrenabled===e.vrenabled&&this.alignmentType===e.alignmentType&&this.placementType===e.placementType}copy(e){return this._id=e._id,this._sourceViewId=e._sourceViewId,this._platformId=e._platformId,this.index=e.index,this.name=e.name,this.position=(new a.Vector3).copy(e.position),this.floorPosition=(new a.Vector3).copy(e.floorPosition),this.floorId=e.floorId,this.roomId=e.roomId,this.rotation=(new a.Quaternion).copy(e.rotation),this.enabled=e.enabled,this.vrenabled=e.vrenabled,this.neighbours=e.neighbours.slice(),this.alignmentType=e.alignmentType,this.placementType=e.placementType,this.resolutions=e.resolutions,this.skyboxes=Object.assign({},e.skyboxes),this}clone(){return new c({platformId:this.platformId}).copy(this)}availableResolution(e){if(!e||!this.resolutions)throw new Error("No available resolution found for sweep");return this.resolutions.includes(e)?e:this.availableResolution(this.getLowerResolution(e))}getLowerResolution(e){switch(e){case r.MF.ULTRAHIGH:return r.MF.HIGH;case r.MF.HIGH:return r.MF.STANDARD;case r.MF.STANDARD:return r.MF.BASE}return null}refresh(e){var t;const i=this.equals(e);this.alignmentType=e.alignmentType,this.enabled=e.enabled,this.name=e.name,this.neighbours=e.neighbours.slice(),this.placementType=e.placementType,this.resolutions=e.resolutions,this.vrenabled=e.vrenabled;for(const i in this.skyboxes){const n=i,s=e.skyboxes[n];s&&(null===(t=this.skyboxes[n])||void 0===t||t.refreshFrom(s))}i||this.commit()}async getTileUrl(e,t,i,n){var s;const a=await this.getSkybox(e);return(null!==(s=null==a?void 0:a.tileUrlTemplate)&&void 0!==s?s:`tiles/${this.id}/${l[e]}_face__.jpg`).replace("",`${t}`).replace("",`${i}`).replace("",`${n}`)}async getFaceUrl(e,t){var i;const n=await this.getSkybox(e);return(null!==(i=null==n?void 0:n.urlTemplate)&&void 0!==i?i:`pan/${d[e]}/${this.id}_skybox.jpg`).replace("",`${t}`)}async getSkybox(e){const t=this.skyboxes[e];return t?t.get():t}}},58421:(e,t,i)=>{"use strict";i.d(t,{HP:()=>s,S2:()=>a,WS:()=>r,WW:()=>o,_p:()=>c,j3:()=>l,tA:()=>d});var n=i(18268);class s extends n.u{constructor(e){super(),this.sweepId=e,this.payload={sweepId:e}}}s.id="SET_CURRENT_SWEEP";class a extends n.u{constructor(e,t,i=500){super(),this.payload={id:e,selected:t,duration:i}}}a.id="SELECT_SWEEP";class o extends n.u{constructor(e,t,i=500){super(),this.payload={id:e,hovered:t,duration:i}}}o.id="HOVER_SWEEP";class r extends n.u{constructor(e,t=[],i=[]){super(),this.payload={id:e,added:t,removed:i}}}r.id="MODIFY_SWEEP_NEIGHBORS";class l extends n.u{constructor(e){super(),this.payload={visible:e}}}l.id="TOGGLE_NON_PANO_CURRENT_PUCK";class d extends n.u{}d.id="ENABLE_SWEEP_SELECTION";class c extends n.u{}c.id="DISABLE_SWEEP_SELECTION"},49191:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var n=i(8371),s=i(61589),a=i(54998),o=i(16672),r=i(83916),l=i(7575);class d extends s.B{constructor(e){super(),this.name="sweeps",this.transitionActive=!1,this._unfilteredSweepMap=new a.E,this.sweepMap=new o.q(this._unfilteredSweepMap),e&&this.addSweeps(e),this.transition={progress:new r.z(0),active:!1,from:void 0,to:void 0},this.isSweepDisabled=this.isSweepDisabled.bind(this)}addFilter(e,t){return this.sweepMap.setFilter(e,t)}clearFilters(){this.sweepMap.clearFilters()}removeSweeps(e){const t=Object.values(e).map((e=>e.id));return this._unfilteredSweepMap.atomic((()=>{const i=this._unfilteredSweepMap.values;for(const n of i)if(e[n.id])this._unfilteredSweepMap.delete(n.id);else{let e=!1;t.forEach((t=>{(0,l.Nz)(n.neighbours,t)&&(e=!0)})),e&&n.commit()}})),this}addSweeps(e){const t=Object.values(e).sort(((e,t)=>e.index-t.index));return this._unfilteredSweepMap.atomic((()=>{for(const e of t)this._unfilteredSweepMap.has(e.id)?(this._unfilteredSweepMap.get(e.id).copy(e),this._unfilteredSweepMap.get(e.id).commit()):this._unfilteredSweepMap.set(e.id,e)})),this}refresh(e){this._unfilteredSweepMap.forEach(((t,i)=>{e[i]&&t.refresh(e[i])}))}canTransition(){return!this.transition.active}get currentSweepIndex(){if(this.currentSweep&&this.sweepMap.has(this.currentSweep))return this.getSweep(this.currentSweep).index}get currentSweepObject(){if(this.currentSweep&&this.sweepMap.has(this.currentSweep))return this.getSweep(this.currentSweep)}get currentAlignedSweepObject(){if(this.currentSweep&&!this.isSweepUnaligned(this.currentSweep))return this.getSweep(this.currentSweep)}makeSweepChangeSubscription(e){return this.onPropertyChanged("currentSweep",e)}getSweep(e){let t=this._unfilteredSweepMap.get(null!=e?e:"");if(!t)for(const i of this._unfilteredSweepMap.values)i.platformId!==e||(t=i);return t}getSweepByIndex(e){return this._unfilteredSweepMap.values.find((t=>t.index===e))}getSweepByUuid(e){return this._unfilteredSweepMap.values.find((t=>t.uuid===e))}containsSweep(e){return!!e&&this.sweepMap.has(e)}getFirstSweep(e=!1){const t=this.getSweepList().sort(((e,t)=>e.index-t.index));let i=-1;for(;++i{if(a.enabled&&(!t||a.alignmentType===n.c$.ALIGNED)){const t=e.distanceTo(a.position);te.every((e=>e(t))))).map((e=>({sweep:e,score:t.reduce(((t,i)=>t+i(e)),0)}))).sort(((e,t)=>t.score-e.score))}getSweepList(){return this.sweepMap.values}getAlignedSweeps(){return this.getSweepList().filter((e=>e.alignmentType===n.c$.ALIGNED))}onSweepsChanged(e){return this.sweepMap.onChanged(e)}getSweepNeighbours(e){const t=[];for(const i of e.neighbours)t.push(this.getSweep(i));return t}getAlternateSweeps(e){const t=[];if(!e)return t;for(const i of this.sweepMap.values)i.platformId===e.platformId&&i.id!==e.id&&t.push(i);return t}getCollection(){return this.sweepMap}getCollectionUnfiltered(){return this._unfilteredSweepMap}}},88696:(e,t,i)=>{"use strict";i.d(t,{AU:()=>o,DJ:()=>S,Eo:()=>m,GS:()=>d,OX:()=>u,Ol:()=>E,Pi:()=>O,Zx:()=>c,f:()=>l,fm:()=>_,jW:()=>p,lp:()=>g,sT:()=>h,xg:()=>r});var n=i(8371),s=i(68909);const a=.25,o=e=>t=>t!==e,r=e=>t=>!!e.neighbours&&-1!==e.neighbours.indexOf(t.id),l=e=>t=>e===t||r(e)(t),d=e=>e&&e.placementType===n.EO.MANUAL,c=()=>e=>e&&e.alignmentType===n.c$.ALIGNED,u=()=>e=>e&&e.alignmentType!==n.c$.ALIGNED,h=e=>t=>t&&e.floorId===t.floorId,m=e=>t=>t&&e===t.floorId,p=(()=>{const e=new s.Vector3,t=new s.Vector3;return(i,n,s=a)=>a=>e.copy(a.position).sub(i).normalize().dot(t.copy(n).normalize())>s})(),E=()=>e=>e&&e.enabled,S=(e,t)=>{const i=new s.Vector3;return t=t.clone(),n=>i.copy(n.position).sub(e).normalize().dot(t)>0},O=(e,t)=>i=>e.distanceTo(i.position)>t,g=(e,t)=>i=>e.distanceTo(i.position)i=>e.distanceToSquared(i.position){"use strict";i.d(t,{G:()=>a});var n=i(47952),s=i(49191);const a=(0,n.v)(s.A)},34144:(e,t,i)=>{"use strict";i.d(t,{Oe:()=>s,RB:()=>o,W0:()=>a});var n=i(95149);const s="settings/tiling/preload_quality",a=Object.freeze({overlayStyle:(0,n.P3)("tileoverlay",0),uploadIntervalDelay:50,highResUploadsPerFrame:2,maxHighResUploadsPerFrame:100,loadIndicatorDelay:300,uploadsPerFrame:6,maxUploadsPerFrame:100,windowHeightHighQualityThreshold:800,windowHeightHighQualityThresholdOverride:(0,n.P3)("threshold2k",void 0),concurrentDownloads:3,maxConcurrentDownloads:12,navigation:{directionFactor:10,distanceFactor:-1}});class o{constructor(){this.reset()}reset(){this.downloadFullPano=!1,this.concurrentDownloads=a.concurrentDownloads,this.uploadsPerFrame=a.uploadsPerFrame,this.highResUploadsPerFrame=a.highResUploadsPerFrame}}},54839:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n="features/360_views"},65634:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t,i){super(),this.sweepId=e,this.sweepIndex=t,this.totalSweeps=i}}},51683:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.sweepId=e,this.hovered=t}}},60477:(e,t,i)=>{"use strict";i.d(t,{J:()=>A,U:()=>T});var n=i(68909),s=i(58421),a=i(2785),o=i(42311),r=i(65634),l=i(23847),d=i(12183),c=i(8371),u=i(20322),h=i(86407),m=i(51683),p=i(44129),E=i(40888),S=i(48071);const O=[],g=new n.Sphere;class _ extends p.O{constructor(){super(...arguments),this.bindings=[]}}class T extends n.Mesh{raycast(e,t){if(super.raycast(e,O),O.length){const{geometry:i}=this;i.boundingSphere||i.computeBoundingSphere(),g.copy(i.boundingSphere).applyMatrix4(this.matrixWorld);for(const i of O)e.ray.intersectSphere(g,i.point),i.distance=e.ray.origin.distanceTo(i.point),t.push(i);O.length=0}}}class A{constructor(e,t,i,s,a,o,r,d=new n.Color(16724312),c=new n.Color(16724312),u=.8,h=.8,m=300,p=.4,E=l.H.ALL){this.scene=e,this.input=t,this.settingsData=i,this.sweepViewData=s,this.puckImagery=a,this.onFloor=o,this.checkRenderModes=r,this.idleColor=d,this.selectionColor=c,this.idleOpacity=u,this.editingOpacity=h,this.selectionDuration=m,this.puckSize=p,this.layer=E,this.sweepToMesh={},this.colliderToSweep={},this.editingEnabled=!1,this.dummyMat=new n.MeshBasicMaterial,this.puckOffset=new n.Vector3(0,.05,0),this.bindings=[],this.wasDrawing=!1,this.renderPuckHighlight=(e,t)=>{if(!this.sweepViewData.isSweepAligned(e))return;const i=this.sweepToMesh[e];null==i||i.configure({tint:t?this.selectionColor:this.idleColor})},this.isVisiblePuckCollider=e=>{var t;const i=e.userData.sid;return e instanceof T&&(null===(t=this.sweepViewData.getState(i))||void 0===t?void 0:t.visible)&&this.sweepViewData.getSweepVisibility(this.sweepViewData.getSweep(i))}}init(){if(this.puckGeometry=new n.PlaneGeometry(this.puckSize,this.puckSize),this.onFloor){const e=new n.Matrix4;e.makeRotationFromEuler(new n.Euler(-Math.PI/2,0,0,"XYZ")),this.puckGeometry.applyMatrix4(e)}this.sphereColliderGeometry=new n.SphereGeometry(.5*this.puckSize,10,10);const e=this.sweepViewData.getCollection(),t=(e,t)=>{this.removeSweepFromScene(t);const i=this.sweepToMesh[t];i&&(i.bindings.forEach((e=>e.cancel())),i.bindings.length=0),delete this.sweepToMesh[t],delete this.colliderToSweep[t]},i=(e,t)=>{this.wasDrawing=!1,this.createPuck(this.sweepViewData.getSweep(t))};e.entries().forEach((([e,t])=>i(0,e))),e.onElementsChanged((({removed:e,added:n})=>{e&&e.forEach((([e,i])=>t(0,e))),n&&n.forEach((([e,t])=>i(0,e)))}))}get displayDisabled(){return void 0!==this.puckImagery.disabled}createMesh(e){const t=new _({radius:this.puckSize/2,normal:S.B1.UP});this.onFloor?t.position.copy(e.floorPosition).add(this.puckOffset):(t.position.copy(e.position),t.rotation.setFromQuaternion(e.rotation)),t.name=e.id,t.updateMatrixWorld(!1),t.renderOrder=d.X.panoMarker,t.material.depthWrite=!1;const i=this.sweepViewData.getState(e.id),n=()=>this.updateMesh(e,i,t);return t.bindings.push(i.onChanged(n),e.onPropertyChanged("enabled",n)),n(),t.layers.mask=this.layer.mask,t}updateMesh(e,t,i){if(i.visible=t.visible){const{editingEnabled:s,puckImagery:a}=this,o=t.animation.value,r=s&&o>0,l=e.enabled?r?a.enabledHover:a.enabled:r?a.disabledHover:a.disabled;i.configure({texture:l instanceof n.Texture?l:null,rings:l instanceof n.Texture?void 0:l,tint:this.editingEnabled&&e.id===this.sweepViewData.selectedSweep?this.selectionColor:this.idleColor,opacity:(0,E.C)(s?this.editingOpacity:this.idleOpacity,1,o)})}}createCollider(e,t){let i;return i=this.onFloor?new T(this.puckGeometry,this.dummyMat):new T(this.sphereColliderGeometry,this.dummyMat),i.userData.sid=e.id,i.position.copy(t.position),i.rotation.copy(t.rotation),i.name=e.id,i.updateMatrixWorld(!1),i}createPuck(e){if(e.alignmentType!==c.c$.ALIGNED)return;const t=this.createMesh(e),i=this.createCollider(e,t);t.collider=i,this.sweepToMesh[e.id]=t,this.colliderToSweep[i.id]=e.id}toggleEditingEnabled(e){this.editingEnabled=e;for(const t in this.sweepToMesh){this.sweepToMesh[t].configure({opacity:e?this.editingOpacity:this.idleOpacity})}}getSweepId(e){return this.colliderToSweep[e]}updatePuckImagery(e){let t;this.displayDisabled||void 0===e.disabled?this.displayDisabled&&void 0===e.disabled&&(t=!1):t=!0,this.puckImagery=e,this.sweepViewData.iterate(((e,i)=>{if(e.alignmentType===c.c$.ALIGNED&&(this.updateMesh(e,i,this.sweepToMesh[e.id]),void 0!==t)){if(e.enabled)return;t?this.addSweepToScene(e.id):this.removeSweepFromScene(e.id)}}))}updateCheckRenderModes(e){this.checkRenderModes=e}removeSweepFromScene(e){const t=this.sweepToMesh[e];t&&(this.scene.remove(t),this.input.unregisterMesh(t.collider))}addSweepToScene(e){if(!this.sweepViewData.getSweep(e).enabled&&!this.displayDisabled)return;const t=this.sweepToMesh[e];this.scene.add(t),this.input.registerMesh(t.collider,!0,this.isVisiblePuckCollider)}render(){const e=this.checkRenderModes(),t=this.settingsData.tryGetProperty(u.f,!0);if(e&&t){if(!this.wasDrawing){for(const e in this.sweepToMesh)this.addSweepToScene(e);this.wasDrawing=!0}}else if(this.wasDrawing){for(const e in this.sweepToMesh)this.removeSweepFromScene(e);this.wasDrawing=!1}}dispose(){for(const e in this.sweepToMesh)this.sweepToMesh[e].dispose()}activate(e){this.wasDrawing=!1;const t=h.f.is(this.isVisiblePuckCollider);this.bindings.push(this.input.registerMeshHandler(a.L,t,((t,i)=>{e.commandBinder.issueCommand(new s.WW(this.getSweepId(i.id),!0,this.selectionDuration)),e.broadcast(new m.A(this.getSweepId(i.id),!0))}))),this.bindings.push(this.input.registerMeshHandler(a.q,t,((t,i)=>{e.commandBinder.issueCommand(new s.WW(this.getSweepId(i.id),!1,this.selectionDuration)),e.broadcast(new m.A(this.getSweepId(i.id),!1))}))),this.bindings.push(this.input.registerMeshHandler(o.rX,t,((t,i)=>{const n=this.sweepViewData.getSweep(this.colliderToSweep[i.id]).index,s=this.sweepViewData.getAlignedSweeps(!0).length;e.broadcast(new r.A(this.colliderToSweep[i.id],n,s))})))}deactivate(e){for(const e in this.sweepToMesh)this.removeSweepFromScene(e);for(const e of this.bindings)e.cancel();this.bindings.length=0}}},20322:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});const n="features/sweep_pucks"},92812:(e,t,i)=>{"use strict";i.d(t,{O:()=>h});var n=i(61589),s=i(41733),a=i(8371),o=i(88696),r=i(54998),l=i(61693),d=i(83916);class c extends l.v{constructor(){super(...arguments),this.selected=!1,this.visible=!0,this.animation=new d.z(0)}}var u=i(23310);class h extends n.B{constructor(e){super(),this.data=e,this.name="sweeps-view",this.states=new r.E,this.defaultSweepVisibilityRule=e=>e&&e.enabled,this.sweepVisibilityRule=this.defaultSweepVisibilityRule,this.bindings=[],this.selectCurrentSweep=()=>{this.setSelectedSweep(this.data.currentSweep||null)},this.derivedData={},this.toolStateObservable=new s.L(u.j.CLOSED),this.selectedSweepObservable=new s.L(null);const t=[u.j.MOVING,u.j.PLACING,u.j.PRESSING,u.j.ROTATING],i=(e,t)=>{if(!this.states.has(t)){const i=new c;i.selected=t===this.selectedSweep,i.commit(),this.states.set(t,i),this.derivedData[t]=this.makeViewDataForSweep(e,e.index)}},n=(e,t)=>{if(this.states.has(t)){const e=this.states.get(t);e.selected=!1,e.animation.stop(0),this.states.delete(t),delete this.derivedData[t]}},a=e.getCollection();a.forEach(((e,t)=>i(e,t))),this.bindings.push(a.onElementsChanged((e=>{this.atomic((()=>{var t,s,a;null===(t=e.removed)||void 0===t||t.forEach((([e,t])=>n(0,e))),null===(s=e.added)||void 0===s||s.forEach((([e,t])=>i(t,e))),null===(a=e.updated)||void 0===a||a.forEach((([e,t])=>{this.derivedData[t.id]=this.makeViewDataForSweep(t,t.index)}))})),this.updateViewData()})),e.makeSweepChangeSubscription((()=>{t.includes(this.toolState)||this.selectCurrentSweep()}))),this.updateViewData()}updateViewData(){this.data.iterate(((e,t)=>{this.derivedData[e.id]=this.makeViewDataForSweep(e,t)})),this.commit()}updateSweepVisibilityRule(e){this.sweepVisibilityRule=e||this.defaultSweepVisibilityRule}getSweepVisibility(e){return this.sweepVisibilityRule(e)}get selectedSweep(){return this.selectedSweepObservable.value}setSelectedSweep(e){if(e===this.selectedSweep)return;const t=this.selectedSweep;if(this.selectedSweepObservable.value=e,null!==e){const t=this.getState(e);t&&(t.selected=!0,t.commit())}if(null!==t){const e=this.getState(t);e&&(e.selected=!1,e.commit())}}onSelectedSweepChanged(e){return this.selectedSweepObservable.onChanged(e)}setToolState(e){e===u.j.PLACING&&this.selectedSweep&&this.setSelectedSweep(null),this.toolStateObservable.value=e}get toolState(){return this.toolStateObservable.value}onToolStateChanged(e){return this.toolStateObservable.onChanged(e)}getSweep(e){return this.data.getSweep(e)}makeViewDataForSweep(e,t){const i=this.derivedData[e.id];return i?(i.floorId=e.floorId,i.position=e.position,i.alignmentType=e.alignmentType,i.placed=e.placementType===a.EO.MANUAL,i.enabled=e.enabled,i.name=e.name,i):{id:e.id,floorId:e.floorId,position:e.position,index:e.index,alignmentType:e.alignmentType,dataIndex:t,placed:e.placementType===a.EO.MANUAL,enabled:e.enabled,name:e.name}}getViewData(e){const t=this.data.getSweep(e),i=this.derivedData[e];return t&&!i&&(this.derivedData[e]=this.makeViewDataForSweep(t,t.index)),this.derivedData[e]}isSweepAligned(e){return this.data.isSweepAligned(e)}getCollection(){return this.states}iterate(e){this.states.entries().forEach((([t,i])=>{const n=this.data.getSweep(t);e(n,i,this.derivedData[t])}))}getState(e){return this.states.get(e)}isVisible(e){const t=this.states.get(e);return(null==t?void 0:t.visible)||!1}setVisible(e,t){const i=this.getState(e);i&&i.visible!==t&&(i.visible=t,i.commit())}updateAnimations(e){for(const t of this.states)t.animation.tick(e)}modifySelectAnimation(e,t,i){const n=this.getState(e);if(!n)return;const s=n.animation,a=1===s.endValue;t!==a&&(a?s.modifyAnimation(s.value,0,i):s.modifyAnimation(0,1,i))}getIndexByAlignment(e,t){return this.getAlignedSweeps(e).findIndex((e=>e.id===t))}getAlignedSweeps(e){const t=this.data.getSweepList();return(e?t.filter((0,o.Zx)()):t.filter((0,o.OX)())).map(((e,t)=>this.derivedData[e.id]))}}},23310:(e,t,i)=>{"use strict";var n;i.d(t,{j:()=>n}),function(e){e.CLOSED="closed",e.IDLE="idle",e.PRESSING="pressing",e.PLACING="placing",e.MOVING="moving",e.ROTATING="rotating",e.ROTATED="rotated"}(n||(n={}))},44901:(e,t,i)=>{"use strict";i.d(t,{r:()=>m});var n=i(68909),s=i(61589),a=i(41733),o=i(54998),r=i(16672),l=i(48071),d=i(23643),c=i(77154),u=i(76735),h=i(53950);class m extends s.B{constructor(e,t,i,n,s,l,c,u,h){super(),this.data=e,this.floorsData=t,this.cameraStartData=i,this.textParser=s,this.linkHandler=l,this.tagDefaultTitle=c,this.backgroundTexture=u,this.objectTagsEnabled=h,this.name="tags-view-data",this.tagViewsMap=(0,o.y)(),this.customSortIndexMap=new Map,this.spatialSortOrderMap=new Map,this.openTagViewObservable=(0,a.p)(null),this.tagsMode=d.j.DEFAULT,this.tagOrder=d.k.ORDERED,this.openTagIsDirty=!1,this.creatingTag=!1,this.idVisibilityEnabled=!1,this.idVisibility=new Set,this.capabilities=new Map,this.refreshTagViews=e=>{const t={};this.data.iterate((e=>{t[e.sid]=this.createTagView(e)})),this.updateSortMaps(Object.values(t),e),this.tagViewsMap.atomic((()=>{this.tagViewsMap.replace(t)}))},this.sortByOrder=(e,t)=>{var i,n;const s=(null!==(i=this.customSortIndexMap.get(e.id))&&void 0!==i?i:Number.MAX_SAFE_INTEGER)-(null!==(n=this.customSortIndexMap.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER);if(s)return s;const a=this.spatialSortOrderMap.get(e.id),o=this.spatialSortOrderMap.get(t.id);if(void 0===a||void 0===o)throw new Error("All ids should exist in spatialPositions");return a-o},this.sortByText=(e,t)=>{function i(e,t){return(e.label.trim()||e.description||t).toLowerCase()}return i(e,this.tagDefaultTitle)!e.objectAnnotationId)),this.refreshTagViews(n),this.orderedTagViews.sort(this.sortByOrder)}getAlphabeticTagViewMapFilter(){return this.alphabeticalTagViews||(this.alphabeticalTagViews=new r.q(this.tagViewsMap),this.alphabeticalTagViews.priority=r.g.LOW,this.alphabeticalTagViews.setFilter("objectTag",(e=>!e.objectAnnotationId)),this.alphabeticalTagViews.sort(this.sortByText)),this.alphabeticalTagViews}getCollection(){return this.tagViewsMap}getOrderedTagViewMapFilter(){return this.orderedTagViews}getOrderedTags(e){return this.getEnabledTagViewsList(this.orderedTagViews,e)}getTagsByText(e){const t=this.getAlphabeticTagViewMapFilter();return this.getEnabledTagViewsList(t,e)}getEnabledTagViewsList(e,t){const i=e.values;return t?i.filter((e=>e.enabled)):i}getTextParser(){return this.textParser}getLinkHandler(){return this.linkHandler}getCapabilities(e){const t={focus:!0};this.capabilities.has(e)||this.capabilities.set(e,t);const i=this.capabilities.get(e)||t;return Object.assign({},i)}updateCapabilities(e,t){this.capabilities.set(e,Object.assign({},t))}setEmbedErrorTagId(e){this.embedErrorTagId=e,this.commit()}setTagsMode(e){this.tagsMode=e,this.commit()}getTagCount(e){return this.getOrderedTags(e).length}hasCustomSortOrder(){return this.customSortIndexMap.size>0}getTagView(e){return this.tagViewsMap.get(e)}createTagView(e){const t=e.getPin();return Object.assign(Object.assign({},t),{id:e.sid,created:e.created,modified:e.modified,label:e.label,description:e.description,enabled:e.enabled,layerId:e.layerId,attachments:[...e.externalAttachments,...e.fileAttachments,...e.sandboxAttachments],objectAnnotationId:e.objectAnnotationId,keywords:e.keywords.values(),icon:e.icon,backgroundTexture:this.backgroundTexture})}setOpenTagView(e){this.openTagViewObservable.value=e}get openTagView(){return this.openTagViewObservable.value}onOpenTagViewChanged(e){return this.openTagViewObservable.onChanged(e)}getAvailableKeywords(){return Array.from(new Set(this.data.getTagKeywords()))}updateSortMaps(e,t){t&&this.updateCustomSortMap(t),this.updateSpatialSortMap(e),this.orderedTagViews.setDirty(!0)}updateCustomSortMap(e){this.customSortIndexMap.clear(),e.forEach(((e,t)=>this.customSortIndexMap.set(e,t)))}updateSpatialSortMap(e){const{floorsData:t,cameraStartData:i}=this,s=i.pose.camera.position||l.B1.ZERO,a=i.pose.camera.rotation||new n.Quaternion,o=t.getClosestFloorAtHeight(s.y).index,r=(0,u.oA)(s,a,(0,h.hn)(1));this.spatialSortOrderMap.clear();let d=0;for(let i=0;ie.floorId===l.id));if(0===u.length)continue;let h,m=1/0;const p=new n.Vector3,E=(new c.A).x((e=>e.x)).y((e=>e.y)).z((e=>e.z));E.addAll(u.map((e=>{p.copy(e.stemNormal).setLength(e.stemLength).add(e.anchorPosition);const t={id:e.id,x:p.x,y:p.y,z:p.z},i=p.distanceToSquared(s);return i0;)S=E.find(S.x,S.y,S.z),this.spatialSortOrderMap.set(S.id,d++),E.remove(S),O--}}}},89375:(e,t,i)=>{"use strict";i.d(t,{$m:()=>g,Bu:()=>r,J9:()=>d,KH:()=>E,Ki:()=>h,NR:()=>a,OT:()=>m,RL:()=>p,YN:()=>c,aH:()=>o,br:()=>l,eo:()=>s,ir:()=>_,jC:()=>u,kd:()=>A,l7:()=>T,mg:()=>S,wJ:()=>O});var n=i(18268);class s extends n.u{}s.id="REGISTER_TAGS_TOOL";class a extends n.u{constructor(e){super(),this.payload={opened:e}}}a.id="TAGS_TOGGLE";class o extends n.u{constructor(){super()}}o.id="TAG_START_ADD";class r extends n.u{constructor(e,t,i,n,s){super(),this.payload={id:e,properties:t,pendingAttachments:i,removedAttachments:n,embed:s}}}r.id="TAG_SAVE";class l extends n.u{constructor(e,t){super(),this.payload={id:e,visible:t}}}l.id="TAG_VISIBILITY_TOGGLE";class d extends n.u{constructor(){super()}}d.id="TAG_CANCEL_EDITS";class c extends n.u{constructor(e){super(),this.payload={tagId:e}}}c.id="TAG_EDIT";class u extends n.u{constructor(e){super(),this.payload={dirty:e}}}u.id="TAG_DIRTY_TOGGLE";class h extends n.u{constructor(e,t){super();const{transition:i=null,dock:n=null,objectTag:s=!1,forceOpen:a=!1}=t||{};this.payload={tagId:e,transition:i,dock:n,objectTag:s,forceOpen:a}}}h.id="TAG_OPEN";class m extends n.u{constructor(e){super(),this.payload={updates:e}}}m.id="TAG_UPDATE_OPEN_TAGVIEW";class p extends n.u{constructor(e,t){super(),this.payload={id:e,removalMethod:t}}}p.id="TAG_DELETE";class E extends n.u{constructor(){super()}}E.id="TAG_CLOSE";class S extends n.u{constructor(e){super(),this.payload={ids:e}}}S.id="TAG_ORDER_SAVE";class O extends n.u{constructor(e){super(),this.payload={enabled:e}}}O.id="TAGS_VISIBILITY_FILTER_ENABLED";class g extends n.u{constructor(e){super(),this.payload={ids:e}}}g.id="FILTER_VISIBLE_TAGS_COMMAND";class _ extends n.u{constructor(e){super(),this.payload={mode:e}}}_.id="SET_REORDERING_MODE";class T extends n.u{constructor(e){super(),this.payload={order:e}}}T.id="TAG_ORDER_BY_SET";class A extends n.u{constructor(e){super(),this.payload={id:e}}}A.id="SET_EMBED_ERROR_ID"},23643:(e,t,i)=>{"use strict";var n,s;i.d(t,{j:()=>n,k:()=>s}),function(e){e.DEFAULT="default",e.REORDERING="reordering"}(n||(n={})),function(e){e.ORDERED="by-tag-order",e.ALPHABETICAL="by-tag-text",e.FLOOR_ORDERED="by-floor-ordered",e.FLOOR_ALPHABETICAL="by-floor-alphabetical"}(s||(s={}))},20764:(e,t,i)=>{"use strict";i.d(t,{$Q:()=>l,AM:()=>o,GK:()=>a,Jr:()=>r,jh:()=>n,rp:()=>s});const n="tags2",s="TAG_NAV_OVERLAY",a="TAG_BILLBOARD_SHARE",o="TAG_BILLBOARD_DOCK",r="features/tagIcons",l="tagTitleOnTop";Object.freeze({colors:["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#03687d","#03a9f4","#00bcd4","#417505","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"]})},65413:(e,t,i)=>{"use strict";i.d(t,{N:()=>s});var n=i(61693);class s extends n.v{constructor(e){super(),this.order=1e4,this.showModeControls=!0,this.showTourControls=!0,e&&Object.assign(this,e)}}},26956:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var n=i(61589),s=i(54998),a=i(16672),o=i(521);class r extends n.B{constructor(){super(),this.name="tools-data",this.tools=(0,s.y)(),this.assetDocked=!1,this.activeToolName=null,this.previousToolName=null,this.openModal=null,this.toolPanelLayout=r.defaultToolPanelLayout,this.softOpening=!1,this.toolCollapsed=!1,this.toolChangeInProgress=!1,this.toolPalettes=new a.q(this.tools),this.toolPalettes.setFilter("enabled",(e=>e.enabled)),this.toolPalettes.setFilter("palette",(e=>!!e.palette)),this.toolPalettes.sort(((e,t)=>e.order-t.order)),this.toolPalettes.priority=a.g.LOW}iterate(e){for(const t of this.tools)e(t)}get toolsMap(){return this.tools}getToolPalettes(){return this.toolPalettes.groupBy("palette")}hasTool(e){return this.toolsMap.has(e)}getTool(e){return this.tools.get(e)}addTool(...e){e.forEach((e=>this.tools.set(e.id,e)))}removeTool(...e){e.forEach((e=>{var t;const i=this.getTool(e);(null===(t=null==i?void 0:i.manager)||void 0===t?void 0:t.dispose)&&i.manager.dispose(),this.tools.delete(e)}))}removeAllTools(){this.iterate((e=>{var t;(null===(t=e.manager)||void 0===t?void 0:t.dispose)&&e.manager.dispose()})),this.tools.clear()}getActiveTool(){return this.activeToolName?this.getTool(this.activeToolName):null}setActiveTool(e){this.previousToolName=e?this.activeToolName:null,this.activeToolName=e,this.commit()}isPanelOpen(){return this.toolPanelLayout===o.L$.SIDE_PANEL||this.toolPanelLayout===o.L$.BOTTOM_PANEL}isToolCollapsedToBottom(){return this.toolPanelLayout===o.L$.BOTTOM_PANEL&&this.toolCollapsed}}r.defaultToolPanelLayout=o.L$.NORMAL},9321:(e,t,i)=>{"use strict";i.d(t,{Kw:()=>l,M_:()=>c,Te:()=>h,Wm:()=>u,_S:()=>r,kC:()=>d,li:()=>s,oe:()=>a,u3:()=>m,yU:()=>o});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={collapse:e}}}s.id="TOOL_PANEL_TOGGLE_COLLAPSE";class a extends n.u{constructor(e){super(),this.payload={collapse:e}}}a.id="TOOL_BOTTOM_PANEL_COLLAPSE";class o extends n.u{constructor(e,t){super(),this.payload={toolName:e,active:t}}}o.id="TOGGLE_TOOL";class r extends n.u{constructor(e){super(),this.payload={checkForEdits:e}}}r.id="CLOSE_REMOVE_TOOLS";class l extends n.u{constructor(e){super(),this.payload={tools:e}}}l.id="REGISTER_TOOLS";class d extends n.u{}d.id="OPEN_PREVIOUS_TOOL";class c extends n.u{}c.id="OPEN_INITIAL_TOOL";class u extends n.u{constructor(e,t=!1){super(),this.payload={toolName:e,softOpening:t}}}u.id="OPEN_TOOL";class h extends n.u{}h.id="CLOSE_CURRENT_TOOL";class m extends n.u{constructor(e){super(),this.payload={toolName:e}}}m.id="CLOSE_TOOL"},521:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{L$:()=>a,S0:()=>n,o6:()=>s}),function(e){e.START_LOCATION="START_LOCATION",e.SCANS_3D="SCANS_3D",e.VIEW_360="VIEW_360",e.PHOTOS="PHOTOS",e.LABELS="LABELS",e.LAYERS="LAYERS",e.MEASUREMENTS="MEASUREMENTS",e.HLR="HLR",e.SETTINGS_PANEL="SETTINGS_PANEL",e.NOTES="NOTES",e.TAGS="TAGS",e.BLUR="BLUR",e.SEARCH="SEARCH",e.MESH_TRIM="MESH_TRIM",e.SUMMARY="SUMMARY",e.PLUGIN_CONFIG="PLUGIN_CONFIG",e.ROOM_BOUNDS="ROOM_BOUNDS",e.ROOM_VIEW="ROOM_VIEW",e.AD_DEFURNISH="AD_DEFURNISH",e.GIZMO_TRANSFORM="GIZMO_TRANSFORM",e.GIZMO_MAGNET="GIZMO_MAGNET"}(n||(n={})),function(e){e[e.VIEW_BASED=1]="VIEW_BASED",e[e.MODEL_BASED=2]="MODEL_BASED",e[e.MISC=3]="MISC"}(s||(s={})),function(e){e.NORMAL="normal",e.NARROW="narrow",e.SIDE_PANEL="side-panel",e.BOTTOM_PANEL="bottom-panel"}(a||(a={}))},35595:(e,t,i)=>{"use strict";i.d(t,{O:()=>a});var n=i(5032),s=i(11360);function a(){const e=(0,n.v)(),t=(0,s.T)();return t&&e?e.getTool(t):null}},61412:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(35595);function s(){const e=(0,n.O)();return null==e?void 0:e.analytic}},11360:(e,t,i)=>{"use strict";i.d(t,{T:()=>o});var n=i(43802),s=i(29633),a=i(26956);const o=(0,n.r)(a.M,"activeToolName",null);(0,s.c)("activeTool",o)},58330:(e,t,i)=>{"use strict";i.d(t,{H:()=>a});var n=i(521),s=i(97137);function a(){const e=(0,s.O)();return e===n.L$.NARROW||e===n.L$.BOTTOM_PANEL}},75414:(e,t,i)=>{"use strict";i.d(t,{t:()=>o});var n=i(43802),s=i(29633),a=i(26956);const o=(0,n.r)(a.M,"openModal",null);(0,s.c)("openModal",o)},45609:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(96540),s=i(5032);function a(e){const t=(0,s.v)(),[i,a]=(0,n.useState)((null==t?void 0:t.getTool(e))||null);return(0,n.useEffect)((()=>{if(!t)return()=>{};const i=t.onChanged((()=>a((null==t?void 0:t.getTool(e))||null)));return()=>i.cancel()}),[e,t]),i}},57016:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(43802),s=i(26956);const a=(0,n.r)(s.M,"toolCollapsed",!1)},97137:(e,t,i)=>{"use strict";i.d(t,{O:()=>o});var n=i(43802),s=i(29633),a=i(26956);const o=(0,n.r)(a.M,"toolPanelLayout",a.M.defaultToolPanelLayout);(0,s.c)("toolPanelLayout",o)},5032:(e,t,i)=>{"use strict";i.d(t,{v:()=>o});var n=i(47952),s=i(29633),a=i(26956);const o=(0,n.v)(a.M);(0,s.c)("toolsData",o)},71553:(e,t,i)=>{"use strict";i.d(t,{I:()=>o,X:()=>a});var n=i(521),s=i(49142);function a(e,t){const i=e.tryGetProperty(s.BW,"");if(i)return i;if(t)return null;const a=e.getOverrideParam("tag","")?n.S0.TAGS:e.getOverrideParam("note","")?n.S0.NOTES:null;if(a)return a;const o=e.getOverrideParam("tool","").toUpperCase();return o||null}function o(e,t){return t.deepLinkParam?e.getOverrideParam(t.deepLinkParam,""):""}},59839:(e,t,i)=>{"use strict";i.d(t,{I7:()=>s,Vk:()=>l,_5:()=>r,f1:()=>a,k_:()=>d,rP:()=>o});var n=i(14754);class s extends n.QB{}class a extends n.QB{}class o extends n.QB{constructor(e){super(),this.collapsed=e}}class r extends n.QB{constructor(e,t){super(),this.active=e,this.collapsed=t}}class l extends n.QB{constructor(e){super(),this.show=e}}class d extends n.QB{constructor(e){super(),this.visible=e}}},49142:(e,t,i)=>{"use strict";i.d(t,{BW:()=>a,Cp:()=>s,P6:()=>n});const n=50,s=500,a="cloud_initial_tool"},75176:(e,t,i)=>{"use strict";i.d(t,{FU:()=>l,IP:()=>a,OR:()=>o,Qn:()=>r,jL:()=>d,mT:()=>s});var n=i(18268);class s extends n.u{constructor(e={}){super(),this.payload=e}}s.id="TOUR_START";class a extends n.u{constructor(e={}){super(),this.payload=e}}a.id="TOUR_STOP";class o extends n.u{constructor(e,t=!1){super(),this.payload={index:e,instant:t}}}o.id="TOUR_STEP";class r extends n.u{constructor(e,t=!1){super(),this.payload={forward:e,instant:t}}}r.id="TOUR_RELATIVE";class l extends n.u{constructor(){super()}}l.id="TOUR_NEXT_STEP";class d extends n.u{constructor(){super()}}d.id="TOUR_PREVIOUS_STEP"},95777:(e,t,i)=>{"use strict";i.d(t,{K:()=>s,r:()=>a});var n=i(84229);class s extends n.t{constructor(e="Invalid tour transition"){super(e),this.name="TourTransition"}}class a extends n.t{constructor(e="Cannot start tour"){super(e),this.name="TourStart"}}},58770:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{ND:()=>s,_y:()=>n,gX:()=>a,h9:()=>o}),function(e){e[e.Pan=0]="Pan",e[e.PanDollhouse=1]="PanDollhouse",e[e.Zoom=2]="Zoom",e[e.Delay=3]="Delay",e[e.None=4]="None"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Auto=0]="Auto",e[e.Right=-1]="Right"}(s||(s={})),function(e){e[e.Move=0]="Move",e[e.Burns=1]="Burns",e[e.Zoom=2]="Zoom",e[e.Path=3]="Path",e[e.FloorChange=4]="FloorChange",e[e.Delay=5]="Delay",e[e.Nop=6]="Nop"}(a||(a={}));const o=[a.Burns,a.Zoom,a.Delay]},54522:(e,t,i)=>{"use strict";i.d(t,{BW:()=>r,YH:()=>d,ap:()=>c,n1:()=>a,pT:()=>l,zM:()=>s,zb:()=>o});var n=i(14754);class s extends n.QB{}class a extends n.QB{constructor(e){super(),this.index=e}}class o extends n.QB{constructor(e){super(),this.index=e}}class r extends n.QB{constructor(e,t,i){super(),this.index=e,this.transitionType=t,this.duration=i}}class l extends n.QB{constructor(e){super(),this.willResume=e}}class d extends n.QB{}class c extends n.QB{}},15855:(e,t,i)=>{"use strict";i.d(t,{BF:()=>c,BS:()=>N,BU:()=>M,DE:()=>P,Dj:()=>p,Dw:()=>w,H1:()=>G,I5:()=>b,IT:()=>I,Ih:()=>D,Jb:()=>L,K1:()=>S,Lh:()=>U,Md:()=>_,QR:()=>A,R8:()=>y,V4:()=>R,VD:()=>E,W0:()=>j,Yh:()=>f,_V:()=>o,_W:()=>r,aS:()=>d,at:()=>k,cS:()=>x,d6:()=>a,dJ:()=>F,fi:()=>g,g$:()=>m,ht:()=>H,jt:()=>u,lo:()=>C,mf:()=>T,oz:()=>h,qN:()=>l,s$:()=>O,uO:()=>v});var n=i(74533),s=i(61543);const a="TourSpeed &wts",o="ToursMetersPerSecond",r=.4,l=10,d=1.25,c=.8,u=6,h=3,m=1e3*c,p=1e3*d,E=600,S=400,O=1200,g=1200,_=35,T=15,A=120,v=1200,N=75,L=400,I=n.Ou-E,f=(s.MF.BASE,"kb"),b="sspa",R=35,y="st",M=R/3500*1e3,D=2,k=52,P=0,w=2e3,C=.2*M,x=3500,H=e=>1===e.getOverrideParam(f,1),U=e=>e.getOverrideParam(y,3500),G=e=>e.getOverrideParam(b,R),F=e=>e.getOverrideParam("ts",-1),j=Object.freeze({walkingTourIncludeExtraPanosDistance:.4,walkingStageMinimumDistance:.8,maxWalkingSweepsBetweenSnapshots:40})},82389:(e,t,i)=>{"use strict";i.d(t,{A0:()=>o,f7:()=>l,rX:()=>d,wg:()=>r});var n=i(76735),s=i(75673),a=i(15855);const o=e=>{let t=a.aS;if(!isNaN(e)){const i=Math.min(Math.max(a._W,e),a.qN);t=(0,n.OF)(i,a._W,a.qN,a.BF,a.oz)}return t},r=e=>(0,n.OF)(e,a.BF,a.jt,a._W,a.qN),l=e=>Math.min(Math.max(a.BF,e),a.jt),d=e=>(0,s.pu)(e)/1e3},61500:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var n=i(61589),s=i(54998),a=i(41733),o=i(67796);class r extends n.B{constructor(e,t,i){super(),this.data=e,this.currentTourMode=i,this.name="tours-view-data",this.reelOpen=!1,this.tourSweepsObservable=(0,s.y)(),this.tourModeSettingObservable=(0,a.p)(t)}getPhotosForTour(e){return this.data.getPhotosForTour(e)}isTourEmpty(){return 0===this.data.getSnapshotCount()}onReelChanged(e){return this.data.getReel().onChanged(e)}getTourStoryMode(){return this.currentTourMode===o.cR.STORIES}get tourModeSetting(){return this.tourModeSettingObservable.value}setTourModeSetting(e){this.tourModeSettingObservable.value=e}onTourModeSettingChanged(e){return this.tourModeSettingObservable.onChanged(e)}getSnapshot(e){return this.data.getSnapshot(e)}setSweepsInToursAcrossViews(e){this.atomic((()=>{this.tourSweepsObservable.clear(),e.forEach((e=>{this.addTourSweepForView(e.sweepId,e.viewId)}))}))}getViewsWithSweepInTour(e){return this.tourSweepsObservable.get(e)||[]}isSweepInAnyTour(e){return this.tourSweepsObservable.has(e)}isSweepInTourForView(e,t){return this.getViewsWithSweepInTour(e).includes(t)}onSweepsInToursChanged(e){return this.tourSweepsObservable.onChanged(e)}addTourSweepForView(e,t){const i=this.tourSweepsObservable.get(e);i?i.push(t):this.tourSweepsObservable.set(e,[t])}}},55294:(e,t,i)=>{"use strict";i.d(t,{CL:()=>d,CQ:()=>l,W2:()=>o,qt:()=>a,w7:()=>r,zd:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={tourMode:e}}}s.id="TOUR_SET_TOUR_MODE";class a extends n.u{constructor(e,t){super(),this.payload={sid:e,name:t}}}a.id="TOUR_RENAME";class o extends n.u{constructor(e,t){super(),this.payload={sid:e,title:t}}}o.id="TOUR_CHANGE_TITLE";class r extends n.u{constructor(e,t){super(),this.payload={sid:e,description:t}}}r.id="TOUR_CHANGE_DESCRIPTION";class l extends n.u{constructor(e){super(),this.payload={open:e}}}l.id="HIGHLIGHT_REEL_TOGGLE_OPEN";class d extends n.u{constructor(e){super(),this.payload={show:e}}}d.id="HIGHLIGHT_REEL_SHOW_STORY_TEXT"},3032:(e,t,i)=>{"use strict";i.d(t,{R:()=>c,l:()=>d});var n=i(61589),s=i(58770),a=i(41733),o=i(45021),r=i(67796),l=i(54244);const d={active:!1,type:s.gX.Move,promise:Promise.resolve(),stop:()=>Promise.resolve(),toIndex:-1,duration:0,started:-1,stopped:-1};class c extends n.B{constructor(e={},t,i,n,s,l){super(),this.snapshots=e,this.activeReel=t,this.allowedModes=i,this.isSweepDisabled=n,this.looping=s,this.log=l,this.name="tour",this.tourState=r.Ci.Inactive,this.transitionObservable=(0,a.p)(d),this.tourCurrentSnapshot=-1,this.enabledTourStops=(0,o.Z)([]),this.tourPlaying=!1,this.tourWillResume=!1,this.tourEnded=!1,this.updateEnabledStops=e=>{if(this.enabledTourStops.replace([]),this.activeReel&&this.activeReel.reel)for(const t of this.activeReel.reel)if(t&&t.sid in this.snapshots){const i=this.snapshots[t.sid],n=i.metadata.cameraMode,s=i.metadata.scanId,a=-1!==e.indexOf(n),o=!!s&&!this.isSweepDisabled(s);a&&(!s||o)&&this.enabledTourStops.push(t.sid)}},this.updateEnabledStops(i()),this.looping=s,this.commit()}setHighlightReel(e){this.atomic((()=>{this.activeReel.replace(e),this.updateEnabledStops(this.allowedModes()),this.resetEmptyReel()}));const t=this.getReel().reel.length,i=this.getSnapshotCount();t!==i&&this.log.info(t-i+" highlights disabled and hidden from reel")}addSnapshotToTour(e,t=r.dO.Current){this.snapshots[e.sid]=e;this.allowedModes().includes(e.metadata.cameraMode)&&this.enabledTourStops.push(e.sid);const i=this.tourCurrentSnapshotSid;switch(this.tourCurrentSnapshotSid=e.sid,t){case r.dO.Beginning:this.tourCurrentSnapshot=0,this.activeReel.reel.insert(0,{sid:e.sid});break;case r.dO.End:this.tourCurrentSnapshot=this.enabledTourStops.length-1,this.activeReel.reel.push({sid:e.sid});break;case r.dO.Current:if(void 0===i)this.tourCurrentSnapshot=this.enabledTourStops.length-1,this.activeReel.reel.push({sid:e.sid});else{let t=this.activeReel.reel.findIndex((e=>!!e&&e.sid===i))+1;(t<=0||t>this.activeReel.reel.length)&&(t=this.activeReel.reel.length-1),this.tourCurrentSnapshot=this.tourCurrentSnapshot+1,this.activeReel.reel.insert(t,{sid:e.sid})}break;default:throw new Error(`Tours.addSnapshotToTour not implemented: ${t}`)}this.useTransition(d),this.commit()}clearHighlightOverrides(e,t,i){if(!t&&!i)return;const n={};t&&(n.transitionType=void 0),i&&(n.panDirection=void 0,n.panAngle=void 0),this.applyHighlightOverrides(e,n)}clearAllHighlightOverrides(){this.getReel().reel.forEach((e=>{e&&this.clearHighlightOverrides(e.sid,!0,!0)}))}resetAllTransitionTypeOverrides(){if(this.activeReel&&this.activeReel.reel){let e=!1;this.activeReel.reel.forEach(((t,i)=>{t&&t.overrides&&t.overrides.transitionType&&(delete t.overrides.transitionType,this.activeReel.reel.update(i,t),e=!0)})),e&&this.activeReel.setDirty()}}resetAllPanSettingOverrides(){if(this.activeReel&&this.activeReel.reel){let e=!1;this.activeReel.reel.forEach(((t,i)=>{t&&t.overrides&&(void 0===t.overrides.panAngle&&void 0===t.overrides.panDirection||(delete t.overrides.panAngle,delete t.overrides.panDirection,e=!0,this.activeReel.reel.update(i,t)))})),e&&this.activeReel.setDirty()}}applyHighlightOverrides(e,t){const i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e));this.setHighlightOverrides(i,t)}setHighlightOverrides(e,t){const i=this.activeReel.reel.get(e);if(!i)throw Error(`Highlight not found for ${e}`);const n={sid:i.sid,title:i.title,description:i.description};i.overrides?(n.overrides=Object.assign({},i.overrides),t.hasOwnProperty("panDirection")&&(n.overrides.panDirection=t.panDirection),t.hasOwnProperty("transitionType")&&(n.overrides.transitionType=t.transitionType),t.hasOwnProperty("panAngle")&&(n.overrides.panAngle=t.panAngle)):n.overrides={transitionType:t.transitionType,panDirection:t.panDirection,panAngle:t.panAngle},this.activeReel.reel.update(e,n)}updateReelEntry(e){const{sid:t}=e,i=this.activeReel.reel.findIndex((e=>!!e&&e.sid===t));if(-1===i)throw Error(`Reel entry not found for ${t}`);const n=this.activeReel.reel.get(i);if(!e)throw Error(`Reel entry not found for ${i}`);const s=Object.assign({},n,e);this.activeReel.reel.update(i,s)}moveTourStop(e,t){const i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),n=this.activeReel.reel.findIndex((e=>!!e&&e.sid===t));this.activeReel.reel.move(i,n)}clear(){this.resetEmptyReel(),this.enabledTourStops.replace([]),this.activeReel.reel.length=0,this.commit()}removeTourStop(e){const t=this.enabledTourStops.indexOf(e),i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),n=this.getTourIndexBySid(e);if(-1!==t&&this.enabledTourStops.splice(t,1),this.enabledTourStops.length>0){const e=n<=this.tourCurrentSnapshot?this.tourCurrentSnapshot-1:this.tourCurrentSnapshot;this.setTourCurrentSnapshotByIndex(Math.max(e,0))}else this.resetEmptyReel();this.activeReel.reel.remove(i)}getReel(){return this.activeReel}isLooping(){return this.looping}setLooping(e){this.looping=e}getActiveReelTourMode(){return this.activeReel.mode||l.UR.REEL}setActiveReelTourMode(e){this.activeReel.mode=e,this.activeReel.commit()}isTourActive(){return this.tourState!==r.Ci.Inactive}getCurrentTourState(){return{currentStep:this.getTourCurrentSnapshotIndex(),tourPlaying:this.tourPlaying||this.tourWillResume,totalSteps:this.getSnapshotCount(),tourEnded:this.tourEnded,activeStep:this.transition&&-1!==this.transition.toIndex?this.transition.toIndex:this.getTourCurrentSnapshotIndex(),highlights:this.getReelHighlights(),transition:this.transition,hasTours:this.tourExistsInAnyView()}}tourExistsInAnyView(){if(this.getSnapshotCount()>0)return!0;for(const e of Object.values(this.snapshots))if("tour"===e.category)return!0;return!1}get transition(){return this.transitionObservable.value}isTourTransitionActive(){return this.transition.active}getTourTransitionType(){return this.transition.type}useTransition(e){this.transitionObservable.value=e}async stopTourTransition(){await this.transition.stop()}iterateSnapshots(e){let t=0;this.activeReel.reel.forEach((i=>{if(i&&this.isEnabled(i.sid)){const n=this.snapshots[i.sid];e(n,t++)}}))}isSnapshotInTour(e){return-1!==this.activeReel.reel.findIndex((t=>!!t&&t.sid===e))}getEnabledSnapshots(){const e=[];return this.iterateSnapshots(((t,i)=>{e.push(t)})),e}updateSnapshots(e){this.snapshots=e}async getPhotosForTour(e){const t=[];for(const i in this.snapshots){const n=this.snapshots[i];"tour"!==n.category&&"panorama"!==n.category&&n.sourceViewId===e&&t.push({name:n.name,sid:n.sid,thumbnailUrl:await n.thumbnailUrl.get(),inReel:this.isSnapshotInTour(i),created:n.created})}return t.sort(((e,t)=>(t.inReel?-10:e.inReel?10:1)*t.created.getTime()-e.created.getTime())),t}getSnapshot(e){return this.snapshots[e]}getTourStop(e){const t=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),i=this.activeReel.reel.get(t);return{snapshot:this.getSnapshot(e),reelEntry:i}}getReelHighlights(){const e=[];return this.activeReel.reel.forEach((t=>{if(t&&this.isEnabled(t.sid)){const i=this.snapshots[t.sid];if(i){const n=t.overrides&&t.overrides.panDirection,s=t.overrides&&t.overrides.panAngle;e.push({id:i.sid,snapshot:i,panDirection:n,panAngle:s,transitionType:t.overrides&&t.overrides.transitionType,title:t.title,description:t.description})}}})),e}getSnapshotCount(){return this.enabledTourStops.length}getTourState(){return this.tourState}setTourState(e){this.tourState=e,this.commit()}getTourCurrentSnapshotIndex(){return this.tourCurrentSnapshot}getTourCurrentSnapshotSid(){return this.tourCurrentSnapshotSid}getTourSnapshotSid(e){let t=0;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)){if(t===e)return i.sid;t++}throw new Error("getTourSnapshotSid() -> Invalid snapshot index.")}getTourSnapshotsWithSweepId(e){const t=[];for(const i of this.activeReel.reel)i&&i.sid in this.snapshots&&this.snapshots[i.sid].metadata.scanId===e&&t.push(i.sid);return t}setTourCurrentSnapshotByIndex(e){if(e<0||e>this.getSnapshotCount())throw new Error("setTourCurrentSnapshotByIndex() -> Invalid tour index.");let t=-1;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)&&(t++,t===e)){this.tourCurrentSnapshot=e,this.tourCurrentSnapshotSid=i.sid;break}-1===t&&this.resetEmptyReel(),this.commit()}getTourIndexBySid(e){let t=-1;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)&&(t++,i.sid===e))return t;return-1}isEnabled(e){return-1!==this.enabledTourStops.indexOf(e)}resetEmptyReel(){this.tourCurrentSnapshot=-1,this.tourCurrentSnapshotSid=void 0,this.useTransition(d),this.commit()}}},67796:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{Ci:()=>s,cR:()=>n,dO:()=>a}),function(e){e.NONE="none",e.STORIES="stories",e.LEGACY="legacy"}(n||(n={})),function(e){e[e.Inactive=0]="Inactive",e[e.Active=1]="Active",e[e.StopScheduled=2]="StopScheduled"}(s||(s={})),function(e){e[e.Beginning=0]="Beginning",e[e.Current=1]="Current",e[e.End=2]="End"}(a||(a={}))},84878:(e,t,i)=>{"use strict";i.d(t,{U:()=>a});var n=i(43802),s=i(61500);const a=(0,n.r)(s.F,"reelOpen",!1)},15429:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var n=i(96540),s=i(54522),a=i(39425),o=i(76956);function r(){const[e,t]=(0,n.useState)(!1),i=(0,n.useCallback)((()=>{t(!0)}),[]),r=(0,n.useCallback)((()=>{t(!1)}),[]);return(0,o.J)(s.n1,i),(0,o.J)(a.A,r),e}},59968:(e,t,i)=>{"use strict";i.d(t,{F:()=>u,K:()=>c});var n=i(96540),s=i(67796),a=i(55285),o=i(29633),r=i(1423),l=i(38471);const d=3e3;function c(){const e=(0,r.l)(),t=(0,l.t)(),i=(0,n.useRef)(0),[o,c]=(0,n.useState)(!1),u=t.active,h=e===s.cR.STORIES;return(0,a.w5)((()=>(c(!0),window.clearTimeout(i.current),u?()=>{}:(i.current=window.setTimeout((()=>{c(!1)}),d),()=>window.clearTimeout(i.current)))),[u]),h&&(u||o)}const u=(0,o.c)("showStoryTour",c)},83686:(e,t,i)=>{"use strict";i.d(t,{I:()=>c,X:()=>n});var n,s=i(96540),a=i(58770),o=i(52883),r=i(53560),l=i(61051);!function(e){e.FastForwarding="fast-forwarding",e.Idle="idle",e.Completed="completed",e.Paused="paused",e.Playing="playing",e.Rewinding="rewinding",e.Skipping="skipping"}(n||(n={}));const d=[n.FastForwarding,n.Playing,n.Rewinding];function c(){var e;const t=(0,s.useRef)(null),i=(0,l.u)(),c=(0,o.v)(),u=(0,r.I)(),h=u.toIndex,m=-1!==h&&h!==c;let p=n.Idle;m?p=0===h&&c===i-1?n.FastForwarding:Math.abs(h-c)>1?n.Skipping:h=.99&&(E=!0,e===n.Rewinding&&(p=n.Idle),e!==n.Playing&&e!==n.FastForwarding||(p=n.Completed))}}return d.includes(p)?t.current={transition:u,animation:p,index:c}:E||(t.current=null),p}},52883:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var n=i(43802),s=i(3032);const a=(0,n.r)(s.R,"tourCurrentSnapshot",-1)},90112:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(47952),s=i(3032);const a=(0,n.v)(s.R)},61051:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var n=i(96540);var s=i(45021),a=i(90112);const o=(0,s.Z)([]);function r(){const e=(0,a.o)();return function(e){const[t,i]=(0,n.useState)(e.values());return(0,n.useEffect)((()=>{const t=()=>{i(e.values())},n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}(e?e.enabledTourStops:o)}function l(){return r().length}},1423:(e,t,i)=>{"use strict";i.d(t,{l:()=>a});var n=i(61500),s=i(67796);const a=(0,i(43802).r)(n.F,"currentTourMode",s.cR.NONE)},38471:(e,t,i)=>{"use strict";i.d(t,{t:()=>l});var n=i(66077),s=i(41733),a=i(90112),o=i(3032);const r=(0,s.p)(o.l);function l(){const e=(0,a.o)();return(0,n.A)(e?e.transitionObservable:r)}},53560:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(96540),s=i(58770),a=i(38471);function o(){const e=(0,a.t)(),t=(0,n.useRef)(e);return e.type===s.gX.FloorChange?t.current:(t.current=e,e)}},37112:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});var n=i(14754);class s extends n.QB{constructor(){super()}}},15357:(e,t,i)=>{"use strict";i.d(t,{AI:()=>n,Cs:()=>h,D:()=>d,GO:()=>S,NN:()=>m,XJ:()=>l,bp:()=>s,g:()=>c,ky:()=>p,nn:()=>a,no:()=>o,np:()=>u,wo:()=>r,yL:()=>E});const n="tour-stories",s="spaces.tours_v2",a="tours2",o="gt",r=0,l=1,d="hr",c=0,u=1,h="tour",m=0,p=1,E=2,S=3},77252:(e,t,i)=>{"use strict";i.d(t,{EI:()=>c,Kl:()=>d,cJ:()=>r,v:()=>l});var n=i(54244),s=i(41309),a=i(67796),o=i(15357);function r(e){const t=e.tryGetProperty(s.Q$.HighlightReel,!0),i=e.getOverrideParam(o.D,o.np),n=e.getOverrideParam(o.Cs,o.ky);return t&&i!==o.g&&n!==o.NN}function l(e,t){const i=function(e){const t=e.tryGetProperty(s.Q$.TourButtons,!0),i=e.getOverrideParam(o.no,o.XJ),n=e.getOverrideParam(o.Cs,o.ky);return t&&i!==o.wo&&n!==o.NN}(e),n=r(e);return i||n?d(e,t)?a.cR.STORIES:a.cR.LEGACY:a.cR.NONE}function d(e,t){const i=e.getOverrideParam(o.Cs,o.ky);return i===o.yL||i!==o.GO&&t===n.UR.STORY}function c(e,t){const i=e.tryGetProperty(s.Q$.TourButtons,!0),o=e.tryGetProperty(s.Q$.HighlightReel,!0);return i||o?t===n.UR.STORY?a.cR.STORIES:a.cR.LEGACY:a.cR.NONE}},85217:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var n=i(61589),s=i(54998),a=i(54244),o=i(25125),r=i(7930),l=i(27974);class d extends n.B{constructor(e,t,i,n,l,d){super(),this.orgAdmin=i,this.modelOrgId=n,this.modelCreated=l,this.isDemo=d,this.name="users-data",this.users=(0,s.y)();const c=e.modelAccess||a.OQ.PUBLIC;this.currentUser=new o.o(Object.assign(Object.assign({},e),{modelAccess:c,userStatus:t?r._.KNOWN:r._.UNKNOWN})),this.addUser(this.currentUser)}loadSearchResults(e,t,i){this.atomic((()=>{e.forEach((e=>{this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.KNOWN}))})),t.forEach((e=>{this.users.get(e)||this.loadUser({email:e,id:"",userStatus:i,modelAccess:a.OQ.PUBLIC,firstName:null,lastName:null})}))}))}loadKnownUsers(e){this.atomic((()=>{e.forEach((e=>{this.loadKnownUser(e)}))}))}loadKnownUser(e){return this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.KNOWN}))}loadContributor(e){const t=this.users.get(e.email);return t||this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.CONTRIBUTOR}))}loadFailedUser(e){return this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.FAILED}))}loadUser(e){let t=this.users.get(e.email);return e.email===this.currentUser.email||t&&t.userStatus===r._.KNOWN&&t.modelAccess!==a.OQ.PUBLIC||(t=new o.o(e),t?this.users.set(e.email,t):this.addUser(t)),t}getUserInfoByEmail(e){return this.users.has(e)?this.users.get(e):null}getUserInfoById(e){return""===e?null:this.users.values.find((t=>t.id===e))||null}getUserDisplay(e){return this.users.has(e)?this.users.get(e):(0,l.A)(e)}iterate(e){for(const t of this.users)e(t)}getUsersWhoMayNeedAccess(){const e={};return this.users.values.forEach((t=>{t.userStatus===r._.KNOWN&&t.modelAccess!==a.OQ.PUBLIC||(e[t.email]=t)})),e}getKnownUsers(){return this.users.values.filter((e=>e.userStatus===r._.KNOWN))}addUser(e){this.users.has(e.email)||this.users.set(e.email,e)}getCurrentUser(){return this.currentUser}isLoggedIn(){return!!this.currentUser.id}isOrgAdmin(){return this.orgAdmin}isInviter(){return this.orgAdmin}getModelOrganizationId(){return this.modelOrgId}getModelCreatedDate(){return this.modelCreated}isDemoModel(){return!!this.isDemo}isEditor(){return this.currentUser.modelAccess===a.OQ.FULL}isCommenter(){const{modelAccess:e}=this.currentUser;return e===a.OQ.VIEWER||e===a.OQ.FULL}getCurrentUserId(){return this.currentUser.id}onUsersChanged(e){return this.users.onChanged(e)}}},25125:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var n=i(54244),s=i(7930),a=i(27974);class o{constructor(e){this.email="",this.id="",this.firstName="",this.lastName="",this.modelAccess=n.OQ.PUBLIC,this.userStatus=s._.UNKNOWN,this.name="",this.initials="",this.color="",e&&Object.assign(this,e);const t=this.id?this.getFullName(this.firstName,this.lastName):"";this.name=t||this.email||"",this.initials=this.getInitials(this.name),this.color=(0,a.g)(this.id)}getFullName(e,t){return e&&t?`${e} ${t}`:e||t}getInitials(e){const t=e?e.split(" ").map((e=>e[0])).join(""):"?";return t.length<3?t:`${t[0]}${t[t.length-1]}`}}},7930:(e,t,i)=>{"use strict";var n;i.d(t,{_:()=>n}),function(e){e.UNKNOWN="unknown",e.FAILED="failed",e.MENTIONED="mentioned",e.CONTRIBUTOR="contributor",e.KNOWN="known"}(n||(n={}))},27974:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,g:()=>r});var n=i(70835),s=i(7930),a=i(54244);const o=["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#5c7fff","#03a9f4","#417505","#00bcd4","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"];function r(e){const t=o.length;return o[(0,n.Iy)(e||"",t)]}function l(e){return{email:e,id:"",firstName:"",lastName:"",name:"Unknown",initials:"?",color:r(e),userStatus:s._.UNKNOWN,modelAccess:a.OQ.PUBLIC}}},81866:(e,t,i)=>{"use strict";i.d(t,{De:()=>l,S2:()=>c,gB:()=>d,ty:()=>r,w5:()=>n});var n,s=i(18268),a=i(82110),o=i(71136);!function(e){e.INSIDE="mode.inside",e.OUTSIDE="mode.outside",e.DOLLHOUSE="mode.dollhouse",e.FLOORPLAN="mode.floorplan",e.TRANSITIONING="mode.transitioning",e.ORTHOGRAPHIC="mode.orthographic",e.MESH="mode.mesh"}(n||(n={}));const r=n.INSIDE,l=(n.INSIDE,a.N3.Panorama,n.DOLLHOUSE,a.N3.Dollhouse,n.FLOORPLAN,a.N3.Floorplan,n.TRANSITIONING,a.N3.Transition,n.OUTSIDE,a.N3.Outdoor,n.ORTHOGRAPHIC,a.N3.Orthographic,n.MESH,a.N3.Mesh,{[a.N3.Panorama]:n.INSIDE,[a.N3.Dollhouse]:n.DOLLHOUSE,[a.N3.Floorplan]:n.FLOORPLAN,[a.N3.Transition]:n.TRANSITIONING,[a.N3.Outdoor]:n.OUTSIDE,[a.N3.Orthographic]:n.ORTHOGRAPHIC,[a.N3.Mesh]:n.MESH}),d=e=>{const t=l[e];return void 0!==t?t:n.OUTSIDE};class c extends s.u{constructor(e,t=o.fl.Interpolate,i={},n){super(),this.payload={mode:e,transitionType:t,pose:i,transitionTime:n}}}c.id="CHANGE_VIEWMODE"},93795:(e,t,i)=>{"use strict";i.d(t,{_z:()=>s,cW:()=>d,n9:()=>a,sj:()=>l});var n=i(41309);const s="showcase-floor_plan",a="showcase-dollhouse",o="fp",r="dh";function l(e,t){return c(n.Q$.FloorPlan,s,o,e,t)}function d(e,t){return c(n.Q$.Dollhouse,a,r,e,t)}function c(e,t,i,n,s){const a=n.tryGetProperty(e,!1),o=!s&&0===n.getOverrideParam(i,1),r=a&&!o;return n.setProperty(t,r),r}},66344:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,n:()=>s});const n="features/dollhouse-nudge",s="features/roombounds-floorplan-nudge"},3954:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(36827);class s extends n.Y{}},48094:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(36827);class s extends n.Y{}},36827:(e,t,i)=>{"use strict";i.d(t,{Y:()=>s});var n=i(14754);class s extends n.QB{constructor(e,t){super(),this.fromMode=t,this.toMode=e,this.timestamp=Date.now()}}},82110:(e,t,i)=>{"use strict";var n;i.d(t,{N3:()=>n,Te:()=>s,nI:()=>a,vy:()=>o}),function(e){e[e.Panorama=1]="Panorama",e[e.Dollhouse=2]="Dollhouse",e[e.Floorplan=3]="Floorplan",e[e.Outdoor=4]="Outdoor",e[e.Orthographic=5]="Orthographic",e[e.Mesh=6]="Mesh",e[e.Transition=-1]="Transition"}(n||(n={}));const s=e=>{switch(e){case n.Panorama:return"Panorama";case n.Floorplan:return"Floorplan";case n.Dollhouse:return"Dollhouse";case n.Transition:return"Transition";case n.Orthographic:return"Orthographic";case n.Mesh:return"Mesh"}return"Unknown"};function a(e){return e===n.Panorama||e===n.Mesh}function o(e){return e===n.Panorama}},48064:(e,t,i)=>{"use strict";i.d(t,{X:()=>r});var n=i(61589),s=i(82110),a=i(41733),o=i(39591);class r extends n.B{constructor(){super(),this.name="viewmode",this.modes=s.N3,this.transitionActiveObservable=(0,a.p)(!1),this.isDollhouseDisabled=()=>!1,this.isFloorplanDisabled=()=>!1,this.currentModeObservable=(0,a.p)(null),this.viewmodeChangeEnabledObservable=(0,a.p)(!0),this.transition={active:!1,progress:0,from:null,isFromPitchFactorOrtho:!1,to:null,isToPitchFactorOrtho:!1,startTime:0,transitionTime:0},this.isPano=this.isPano.bind(this),this.isFloorplan=this.isFloorplan.bind(this),this.isInside=this.isInside.bind(this),this.isDollhouse=this.isDollhouse.bind(this),this.isOrthographic=this.isOrthographic.bind(this)}get currentMode(){return this.currentModeObservable.value}set currentMode(e){e!==this.currentModeObservable.value&&(this.currentModeObservable.value=e)}get viewmodeChangeEnabled(){return this.viewmodeChangeEnabledObservable.value}set viewmodeChangeEnabled(e){this.viewmodeChangeEnabledObservable.value=e}peekabooCorrectedMode(e){return this.isDollhouse()&&e.pose.isPitchFactorOrtho.value?s.N3.Floorplan:this.currentMode}get closestMode(){return this.currentMode===s.N3.Transition?this.transition.progress<.5?this.transition.from:this.transition.to:this.currentMode}makeModeChangeSubscription(e){return this.currentModeObservable.onChanged(e)}activateTransition(e,t,i,n,a){this.transition.active=!0,this.transition.progress=0,this.transition.startTime=Date.now(),this.transition.transitionTime=i,this.transition.to=t,this.transition.from=e;const r=null==n?e===s.N3.Floorplan?0:1:n,l=null==a?t===s.N3.Floorplan?0:1:a;this.transition.isFromPitchFactorOrtho=(0,o.aY)(r),this.transition.isToPitchFactorOrtho=(0,o.aY)(l),this.transitionActiveObservable.value=!0}deactivateTransition(){this.transition.active=!1,this.transitionActiveObservable.value=!1}isPano(){return this.currentMode===s.N3.Panorama}isInside(){return(0,s.nI)(this.currentMode)}isMesh(){return this.currentMode===s.N3.Mesh}isFloorplan(){return this.currentMode===s.N3.Floorplan}isDollhouse(){return this.currentMode===s.N3.Dollhouse}isOrthographic(){return this.currentMode===s.N3.Orthographic}insideModeTransitionProgress(){if(this.transition.active){const e=(0,s.nI)(this.transition.to),t=(0,s.nI)(this.transition.from);return e||t?e&&!t?this.transition.progress:!e&&t?1-this.transition.progress:1:0}return this.isInside()?1:0}canStartTransition(){const e=this.transition.active,t=this.currentMode===s.N3.Transition;return!e&&!t}transitionActive(){return!this.canStartTransition()}isTargetMode(e){const t=this.transition.from===this.transition.to,i=this.currentMode===e;return this.transition.active&&t||i}canSwitchViewMode(e){return this.canStartTransition()&&this.viewmodeChangeEnabled&&!this.isTargetMode(e)}}},71891:(e,t,i)=>{"use strict";i.d(t,{x:()=>a});var n=i(96540),s=i(51772);function a(){const e=(0,s.o)(),[t,i]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.currentModeObservable.onChanged(i);return i(e.currentMode),()=>t.cancel()}),[e]),t}},51772:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(47952),s=i(48064);const a=(0,n.v)(s.X)},74533:(e,t,i)=>{"use strict";i.d(t,{Ou:()=>o,Ow:()=>s,aF:()=>a});var n=i(82110);const s={rotationDuration:1,rotationDelay:0,matrixDelay:0,matrixDuration:.5},a={[n.N3.Dollhouse]:{matrixDelay:.5,matrixDuration:1},[n.N3.Panorama]:{rotationDuration:.5}},o=1e3},31617:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="GET_SCREEN_POS"},15098:(e,t,i)=>{"use strict";i.d(t,{s:()=>s,y:()=>a});var n=i(84229);class s extends n.t{constructor(e){super(e)}}class a extends n.t{constructor(e){super(e)}}},8456:(e,t,i)=>{"use strict";i.d(t,{P:()=>a,X:()=>s});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="XR_PRESENT";class a extends n.u{constructor(){super()}}a.id="XR_PRESENT_END"},71608:(e,t,i)=>{"use strict";i.d(t,{F7:()=>n,RN:()=>a,qy:()=>s});const n="features/xr_browser_lock",s=!1,a="xruntested"},92171:(e,t,i)=>{"use strict";i.d(t,{M1:()=>l,ni:()=>r,wc:()=>n});var n,s=i(8430),a=i(53135),o=i(52147);!function(e){e.webxr="webxr",e.unsupported="unsupported"}(n||(n={}));const r=e=>{const t=!!e.tryGetProperty("is_vr",!1),i=e.tryGetProperty(o.qu,!1),n=e.getOverrideParam("vr",1);return t&&!(!n||2===n&&!(0,s.m0)())&&!i},l=async(e=!1)=>{const t=await a.A.isSessionSupported("immersive-vr");return window.isSecureContext&&(e||(0,s.Ap)()||(0,s.qL)()||!(0,s.Fr)())&&t?n.webxr:n.unsupported}},53135:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});const n=new(i(35652).Ay)("vr-platform-select"),s=()=>{const e=void 0!==navigator&&"xr"in navigator&&void 0!==navigator.xr&&"isSessionSupported"in navigator.xr&&"requestSession"in navigator.xr;return window.isSecureContext&&e},a={isSessionSupported:async(e="immersive-vr")=>{var t;let i=!1;if(s())try{i=!!await(null===(t=null===navigator||void 0===navigator?void 0:navigator.xr)||void 0===t?void 0:t.isSessionSupported(e))}catch(e){n.info("WebXR disabled",e)}return n.debug(`WebXR session type: ${e} supported: ${i}`),i},apiExists:s}},29100:(e,t,i)=>{"use strict";i.d(t,{BW:()=>r,De:()=>a,EG:()=>s,hd:()=>l,i9:()=>o});var n=i(18268);class s extends n.u{constructor(e){super(),this.payload={step:e}}}s.id="ZOOM_IN";class a extends n.u{constructor(e){super(),this.payload={step:e}}}a.id="ZOOM_OUT";class o extends n.u{}o.id="ZOOM_RESET";class r extends n.u{}r.id="ZOOM_MAX_VALUE";class l extends n.u{constructor(e){super(),this.payload={value:e}}}l.id="ZOOM_SET"},99436:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(68909),s=i(8203),a=i.n(s),o=i(74869),r=i.n(o),l=i(87208),d=i.n(l),c=i(67422),u=i.n(c);const h={basicTextured:{uniforms:{tDiffuse:{type:"t",value:null},alpha:{type:"f",value:1}},vertexShader:a(),fragmentShader:r()},screenSpaceColored:{uniforms:{color:{type:"v3",value:new n.Vector3(0,0,0)},opacity:{type:"f",value:1}},vertexShader:d(),fragmentShader:u()}}},83372:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});const n={Navigation:Symbol("nav"),WebGLRenderer:Symbol("webgl-renderer"),ModelMesh:Symbol("model-mesh"),Octree:Symbol("raycast-octree"),PanoTiles:Symbol("pano-tiles-preload"),Raycaster:Symbol("raycast"),Snapping:Symbol("snap"),StreamingTexture:Symbol("stream-textures"),StreamingMesh:Symbol("stream-mesh")}},93279:(e,t,i)=>{"use strict";i.d(t,{$2:()=>u,GL:()=>d,nt:()=>c,sb:()=>l});var n=i(14754),s=i(2789),a=i(1803);const o=new(i(35652).Ay)("symbols"),r=[];class l extends n.QB{constructor(e){super(),this.symbol=e}}class d extends n.QB{constructor(e){super(),this.payload=e}}class c extends n.QB{constructor(e){super(),this.payload=e}}function u(e){return new s.P((0,a.Sh)((()=>null),(()=>r.length=0)),e.messageBus.subscribe(d,(e=>{r.push(e.payload)})),e.messageBus.subscribe(c,(e=>{const t=r.findIndex((t=>t.symbol===e.payload.symbol&&t.callback===e.payload.callback));t>=0&&r.splice(t,1)})),e.messageBus.subscribe(l,(e=>{r.forEach((t=>{if(t.symbol===e.symbol)try{t.callback()}catch(t){o.warn("Error handling SymbolMessage",e,t)}}))})))}},11274:(e,t,i)=>{"use strict";i.d(t,{$:()=>s});var n=i(68909);class s extends n.RawShaderMaterial{onBeforeCompile(e,t){super.onBeforeCompile(e,t),t.capabilities.isWebGL2&&this.glslVersion!==n.GLSL3&&(e.glslVersion=n.GLSL3,e.vertexShader=a+e.vertexShader,e.fragmentShader=o+e.fragmentShader)}}const a="\n#define attribute in\n#define varying out\n#define texture2D texture\n",o="\n#define varying in\nout highp vec4 pc_fragColor;\n#define gl_FragColor pc_fragColor\n#define gl_FragDepthEXT gl_FragDepth\n#define texture2D texture\n#define textureCube texture\n#define texture2DProj textureProj\n"},86407:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});class n{constructor(e){this.matcher=e}static isValue(e){return new n(new s(e))}static isType(e){return new n(new a(e))}static isInstanceOf(e){return new n(new o(e))}static is(e){return new n(new r(e))}static isAny(){return new n(new l)}compare(e){return this.matcher.matches(e)}}class s{constructor(e){this.value=e}matches(e){return this.value===e}}class a{constructor(e){this.type=e}matches(e){return Object.getPrototypeOf(e).constructor===this.type}}class o{constructor(e){this.type=e}matches(e){if("object"==typeof e)return e instanceof this.type;const t=this.type;switch(typeof e){case"number":return t===Number;case"string":return t===String;case"boolean":return t===Boolean;case"function":return t===Function}return!1}}class r{constructor(e){this.predicate=e}matches(e){return this.predicate(e)}}class l{constructor(){}matches(){return!0}}},16276:(e,t,i)=>{"use strict";i.d(t,{_:()=>l,f:()=>d});var n=i(35652),s=i(20203),a=i(71294);const o=new n.Ay("expiring-resource"),r=new WeakMap;function l(e,t){(0,s.S)(e,(e=>{e instanceof d&&(e.onStale=t)}))}class d{constructor(e,t){this.value=e,this.validUntil=t}refreshFrom(e){if(!e)return;this.value=e.value,this.validUntil=e.validUntil;const t=r.get(this);t&&(t.resolve(),r.delete(this))}async get(){if(this.validUntil&&this.onStale){const e=Date.now();if(e+6e4+1e4>this.validUntil.getTime()){let t=r.get(this);t||(t=new a.i,r.set(this,t),this.onStale()),e+6e4+1e3>this.validUntil.getTime()&&(o.info("Stale resource, waiting for refresh"),await t.nativePromise(),o.info("Refreshed resource"))}}return this.value}getCurrentValue(){return this.value}}},90280:(e,t,i)=>{"use strict";i.d(t,{BN:()=>b,Gk:()=>S,Gp:()=>p,KK:()=>y,MN:()=>D,Nv:()=>I,Rc:()=>E,Vb:()=>O,Vg:()=>L,bw:()=>_,cv:()=>P,fR:()=>g,ff:()=>f,fg:()=>A,hm:()=>N,kf:()=>T,nk:()=>k,qK:()=>v,xF:()=>R});var n=i(68909),s=i(78096),a=i(48071),o=i(19040),r=i(60840),l=i(76735),d=i(53950),c=i(75673),u=i(39591),h=i(24213),m=i(43998);const p=e=>!!e&&1===e.elements[15],E=e=>!!e&&(e.elements[15]>0&&e.elements[15]<1),S=((()=>{const e=new n.Object3D,t=new n.Vector3})(),(()=>{const e=new n.Vector3;return(t,i,n,s)=>(e.copy(t).sub(i),e.clampLength(n,s),i.clone().add(e))})()),O=(()=>{const e=new n.Vector3;return(t,i,n,s)=>{e.copy(i).sub(t);const a=Math.atan2(Math.sqrt(Math.pow(e.x,2)+Math.pow(e.z,2)),e.y),o=Math.min(Math.max(n,a),s);return Math.abs(a-o)>Number.EPSILON?g(t,i,a-o,!1):t}})(),g=(()=>{const e=new n.Vector3,t=new n.Vector3;return(i,n,s,o)=>(e.copy(n).sub(i),o?t.copy(a.B1.UP):t.copy(e).applyAxisAngle(a.B1.UP,-1*Math.PI/2).setY(0).normalize(),e.applyAxisAngle(t,s),n.clone().sub(e))})(),_=(()=>{const e=new n.Vector3,t=new n.Vector3;return(i,s,a)=>(e.copy(i).sub(s).normalize(),t.copy(i).sub(a).normalize(),(new n.Quaternion).setFromUnitVectors(e,t))})(),T=(()=>{const e=new s.k;return(t,i)=>(e.setPosition(t),e.lookAt(t,i,a.B1.UP),(new n.Quaternion).setFromRotationMatrix(e.asThreeMatrix4()))})(),A=(()=>{const e=new n.Vector3;return(t,i,n)=>(e.copy(a.B1.FORWARD).applyQuaternion(t).normalize(),e.clone().multiplyScalar(-1*n).add(i))})(),v=(()=>{const e=new n.Ray,t=new n.Vector3,i=new n.Vector3;return(n,s,o)=>(i.set(0,0,0),t.copy(a.B1.FORWARD).applyQuaternion(s),e.set(n,t),e.intersectPlane(o,i))})(),N=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3,s=new n.Vector3,o=[new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3],r=new n.Vector3,d=new n.Vector3,c=new n.Vector3,u=new n.Vector3,h=new n.Plane,m=new n.Vector3,p=new n.Ray,E=new n.Vector3,S=new n.Vector3;return({targetPosition:O,targetRotation:g,angleDown:_,box:A,fovY:v,aspectRatio:N})=>{const L="number"==typeof _?_:-1*g.angleTo((0,l.Vs)(g,new n.Quaternion));e.copy(a.B1.FORWARD).applyQuaternion(g).setY(0),t.copy(e).setY(L).normalize(),s.copy(t).applyAxisAngle(a.B1.UP,-Math.PI/2).setY(0).normalize(),i.copy(s).cross(t).normalize();let I=0;const f=A.max,b=A.min,R=[f,b];for(let e=0;e<2;e++){const t=R[e].x;for(let e=0;e<2;e++){const i=R[e].y;for(let e=0;e<2;e++){const n=R[e].z;o[I].set(t,i,n),I++}}}r.copy(b),c.copy(O).setY(b.y);let y=d.copy(r).sub(c).dot(t);o.forEach((e=>{if(e.y===f.y)return;const i=d.copy(e).sub(c).dot(t);ik&&(k=t),n>P&&(P=n)}));const w=k/Math.tan(v*N/2),C=P/Math.tan(v/2),x=Math.max(w,C)+Math.abs(D),H=O.clone().add(t.clone().multiplyScalar(1.1*-x));return{position:H,rotation:T(H,O)}}})(),L=((()=>{const e=new n.Matrix4})(),(()=>{const e=new n.Matrix4,t=new n.Vector4})(),(()=>{const e=new n.Vector3;return(t,i,n=a.B1.UP)=>{const s=t.angleTo(i);return Math.sign(e.crossVectors(t,i).dot(n))*s}})()),I=((()=>{const e=new s.k,t=new n.Vector3})(),(e,t,i,n,s=1.5)=>{const a=1/e.elements[5];if(p(e))return s*n/(2*a);const o=t.distanceTo(i),r=Math.atan(a);return n*(s/(2*Math.tan(r)*o))}),f=function(){const e=new n.Vector3,t=new n.Matrix4;return(i,n,s)=>{const a=e.set(0,0,-i).applyMatrix4(n).z;return t.copy(n),t.invert(),e.set(2/s,0,a).applyMatrix4(t),e.x}}(),b=e=>1/e.elements[5],R=(e,t=d.Bv.fov)=>e/Math.tan((0,c.pu)(t/2)),y=(()=>{const e=new n.Vector3;return(t,i,n)=>{const s=n.angleTo(a.B1.UP),o=Math.abs(s-Math.PI);return s<.2||o<.2?(t.quaternion.setFromUnitVectors(a.B1.FORWARD,n),!0):(t.lookAt(e.copy(i).add(n)),!1)}})(),M=((()=>{const e=new n.Vector3,t=new n.Vector3(1e4,1e4,1e4),i=[new n.Line3,new n.Line3,new n.Line3,new n.Line3],s=[new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3]})(),(()=>{const e=new n.Vector3,t=new n.Vector3(0,1,0);return(i,n)=>{e.set(0,0,-1).applyQuaternion(i);const s=e.angleTo(t),a=Math.abs(s-Math.PI);return s{const e=new n.Vector3(1,0,0);return(t,i=-45)=>{const s=i*(Math.PI/180);return M(t,.1)?(new n.Quaternion).setFromAxisAngle(e,s):t}})(),k=(()=>{const e=new n.Quaternion,t=new n.Euler;return(i,n=35*c.fy)=>{const s=(0,u.rC)(i);if(s{const e=new n.Vector3;return(t,i,s,a,o)=>{const l=i.getWorldPosition(e).distanceTo(t),d=o.maxSize-(o.maxSize-o.minSize)*(0,h.T)(l,o.nearBound,o.farBound),c=t.clone().project(i),u=new n.Vector3(a.width/2,a.height/2,1).multiply(c),p=new n.Vector3(d/2,0,0).add(u),E=new n.Vector3(2/a.width,2/a.height,1).multiply(p).clone().unproject(i).clone().distanceTo(t)*(1+o.responsiveness/100*(s-1));return(0,m.qE)(E,r.A.epsilon,E)}})();(()=>{const e=new n.Vector3,t=new n.Vector3})()},28606:(e,t,i)=>{"use strict";i.d(t,{PH:()=>n});i(68909);const n=e=>!e||!Object.values(e).filter((e=>0!==e)).length},75673:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,fy:()=>n,pu:()=>a,tm:()=>s});const n=Math.PI/180,s=180/Math.PI;function a(e){return e*n}function o(e){return e*s}},43998:(e,t,i)=>{"use strict";i.d(t,{qE:()=>n});const n=function(e,t,i){return Math.max(t,Math.min(e,i))}},19040:(e,t,i)=>{"use strict";i.d(t,{yt:()=>n});const n=(e,t,i=1e-5)=>Math.abs(e-t)<=i},40888:(e,t,i)=>{"use strict";function n(e,t,i){return(1-i)*e+i*t}i.d(t,{C:()=>n})},76735:(e,t,i)=>{"use strict";i.d(t,{$i:()=>T,C:()=>m,HN:()=>c,HV:()=>A,OF:()=>p,U$:()=>n,V5:()=>O,Vs:()=>g,cP:()=>d,eB:()=>v,i0:()=>h,jS:()=>_,m9:()=>E,oA:()=>u});var n,s=i(68909),a=i(78096),o=i(48071),r=i(43998),l=i(75673);!function(e){e.fromVisionVector=function(e){return new s.Vector3(e.x,e.z,-e.y)},e.fromVisionVectorInPlace=function(e){const t=e.x,i=e.z,n=-e.y;return e.set(t,i,n)},e.toVisionVector=function(e){return new s.Vector3(e.x,-e.z,e.y)},e.toVisionVectorInPlace=function(e){const t=e.x,i=-e.z,n=e.y;return e.set(t,i,n)},e.fromVisionQuaternion=function(e){return new s.Quaternion(e.x,e.z,-e.y,e.w)},e.fromVisionSweepQuaternion=function(e){return new s.Quaternion(e.x,e.z,-e.y,e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(0,1,0),(0,l.pu)(90)))},e.fromVisionCameraQuaternion=function(e){return new s.Quaternion(-e.x,-e.z,e.y,-e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(1,0,0),(0,l.pu)(90)))},e.toVisionQuaternion=function(e){return new s.Quaternion(e.x,-e.z,e.y,e.w)},e.toVisionSweepQuaternion=function(e){const t=new s.Quaternion(e.x,e.y,e.z,e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(0,1,0),(0,l.pu)(-90)));return t.set(t.x,-t.z,t.y,t.w),t},e.toVisionCameraQuaternion=function(e){return new s.Quaternion(e.x,-e.z,e.y,e.w).multiply(new s.Quaternion(-.70710678118,0,0,.70710678118))}}(n||(n={}));function d(e,t,i){return Math.abs(t-e)<=i?t:e+Math.sign(t-e)*i}const c=function(e,t){const i=new s.Vector3(0,0,-1);return i.clone().applyQuaternion(e).angleTo(i.clone().applyQuaternion(t))},u=(()=>{const e=new a.k,t=new s.Frustum;return(i,n,s,a)=>(a=null!=a?a:t,e.identity().makeRotationFromQuaternion(n).setPosition(i),e.getInverse(e),e.premultiply(s.asThreeMatrix4()),a.setFromProjectionMatrix(e.asThreeMatrix4()),a)})(),h=((()=>{const e=new s.Sphere})(),(e,t,i,n)=>u(e,t,i).intersectsBox(n)),m=e=>{const t=e.getSize(new s.Vector3),i=Math.max(t.x,t.y,t.z);return(new s.Box3).setFromCenterAndSize(e.getCenter(new s.Vector3),new s.Vector3(i,i,i))},p=(e,t,i,n,s)=>(s-n)*((e-t)/(i-t))+n,E=(e,t,i,n,s)=>{const a=p(e,t,i,n,s);return(0,r.qE)(a,n,s)};function S(e){return 0===e.x&&0===e.y&&0===e.z}const O=(()=>{const e=new s.Vector3,t=new s.Matrix4;return i=>S(i)?i.clone():(e.copy(o.B1.FORWARD).applyQuaternion(i),t.lookAt(o.B1.ZERO,e,o.B1.UP),(new s.Quaternion).setFromRotationMatrix(t))})(),g=(()=>{const e=new s.Vector3,t=new s.Matrix4;return(i,n)=>S(i)?n.copy(i):(e.copy(o.B1.FORWARD).applyQuaternion(i).setY(0).normalize(),t.lookAt(o.B1.ZERO,e,o.B1.UP),n.setFromRotationMatrix(t))})(),_=(()=>{const e=new s.Vector3,t=new s.Ray;return(i,n,a,o)=>(o=o||new s.Vector3,t.origin.copy(i),t.lookAt(n),o.copy(t.at(a,e)))})(),T=(()=>{const e=new s.Vector3,t=new s.Ray;return(i,n,a,o)=>(o=o||new s.Vector3,t.set(i,n),o.copy(t.at(a,e)))})();function A(e,t,i,n,s,a,o,r,l){if(e===i&&t===n||s===o&&a===r)return!1;const d=(r-a)*(i-e)-(o-s)*(n-t);if(0===d)return!1;const c=((o-s)*(t-a)-(r-a)*(e-s))/d,u=e+c*(i-e),h=t+c*(n-t);return l&&l.set(u,h),!0}function v(e,t,i,n,s,a,o,r,l=0,d){if(e===i&&t===n||s===o&&a===r)return null;const c=(r-a)*(i-e)-(o-s)*(n-t);if(0===c)return null;const u=((o-s)*(t-a)-(r-a)*(e-s))/c,h=((i-e)*(t-a)-(n-t)*(e-s))/c,m=1-l;if(um||hm)return null;const p=e+u*(i-e),E=t+u*(n-t);return d&&d.set(p,E),u}},24213:(e,t,i)=>{"use strict";function n(e,t,i){return e<=t?0:e>=i?1:(e=(e-t)/(i-t))*e*(3-2*e)}i.d(t,{T:()=>n})},83916:(e,t,i)=>{"use strict";i.d(t,{z:()=>l});var n=i(79953),s=i(61693),a=i(35652),o=i(1803);const r=new a.Ay("animation");class l extends s.v{constructor(e,t,i,s=n.p9,a=0){super(),this._easing=n.p9,void 0===t&&(t=e),void 0===i&&(this._active=!1,i=0,this._elapsed=0,this._duration=0),this.modifyAnimation(e,t,i,s,0,a)}get active(){return this._active}get duration(){return this._duration}get endValue(){return this._endValue}get easing(){return this._easing}get elapsed(){return this._elapsed}get delay(){return this._delay}tick(e){if(!this._active)return this.endValue;if(this._delay>0)return this._delay-=e,this.startValue;const t=(this._elapsed+e)/Math.max(this._duration,1e-5);return this.updateProgress(t),this.value}updateProgress(e){if(isNaN(e))return void r.error(`Invalid progress value: ${e}`);const t=Math.max(0,Math.min(e,1)),i=this.active,n=this.value;if(t>=1)return this.activate(!1),this.value=this._easing(1,this.startValue,this._endValue-this.startValue,1),this._elapsed=this.duration,this.commit(),void(this._onComplete&&this._onComplete.forEach((e=>e())));this.activate(!0),this.value=this._easing(t,this.startValue,this._endValue-this.startValue,1),this._elapsed=t*this.duration,n===this.value&&i===this.active||this.commit()}updateAbsolute(e){const t=e/Math.max(this._duration,1e-5);this.updateProgress(t)}modifyAnimation(e,t,i,s=n.p9,a=0,o=0){return this._easing=s,this._endValue=t,this._duration=i,this._elapsed=a,this._delay=o,this.startValue=e,this.value=e,this.activate(this._duration>=0&&e!==t),this.commit(),this}onComplete(e){return this._onComplete||(this._onComplete=[]),(0,o.Sh)((()=>this._onComplete.push(e)),(()=>this._onComplete.splice(this._onComplete.indexOf(e),1)))}onActivate(e){return this._onActivate||(this._onActivate=[]),(0,o.Sh)((()=>this._onActivate.push(e)),(()=>this._onActivate.splice(this._onActivate.indexOf(e),1)))}activate(e){e!==this._active&&this._onActivate&&this._onActivate.forEach((e=>e())),this._active=e}copy(e){this._endValue=e.endValue,this._duration=e.duration,this._active=e.active,this._easing=e.easing,this._elapsed=e.elapsed,this.startValue=e.startValue,this.value=e.value,this.commit()}clone(){const e=new l(0);return e.copy(this),e}stop(e){this._active=!1,this._elapsed=this._duration,this.value=e,this._endValue=e,this.commit()}equals(e){return this._active===e._active&&this.duration===e.duration&&this.easing===e.easing&&this.elapsed===e.elapsed&&this.endValue===e.endValue&&this.startValue===e.startValue&&this.value===e.value}}},8430:(e,t,i)=>{"use strict";i.d(t,{Ap:()=>N,C8:()=>I,Cv:()=>l,Eh:()=>w,Fr:()=>r,J0:()=>c,OF:()=>u,T:()=>E,Ul:()=>x,YR:()=>k,Yk:()=>f,Zm:()=>m,aS:()=>D,aZ:()=>T,al:()=>b,cX:()=>h,gm:()=>O,lh:()=>P,m0:()=>p,qL:()=>A,sv:()=>R,vQ:()=>C,w2:()=>L,x_:()=>M,yJ:()=>y});var n=i(96452),s=i(95149),a=i(44383);const o=new n.Vy("util-browser"),r=function(){const e=navigator.userAgent||navigator.vendor,t=new RegExp("(android|bbd+|meego).+mobile|android|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|\n hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|\n palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|\n wap|windows ce|xda|xiino|MatterScan","i"),i=new RegExp("1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|\n amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|\n br(e|v)w|bumb|bw-(n|u)|c55/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|\n devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|\n g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|\n a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|\n jemu|jigs|kddi|keji|kgt( |/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|/(k|l|u)|50|54|-[a-w])|libw|lynx|\n m1-w|m3ga|m50/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|\n zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|\n nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|\n po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55/|\n sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|\n sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|\n tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|\n vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|\n zeto|zte-","i");return(t.test(e)||i.test(e.substr(0,4))||c())&&!A()},l=/([\s\{\}\"\']|[^\x00-\x7F]|%[^0-9a-fA-F]{2})+/g,d=(e,t)=>{let i=window.navigator.userAgent.match(e);return i=i?i[1].split(t):[],{major:parseInt(i[0],10)||0,minor:parseInt(i[1],10)||0,patch:parseInt(i[2],10)||0}},c=()=>{const e=window.navigator.userAgent;return/iPad/.test(e)||h()&&navigator.maxTouchPoints>1},u=()=>{const e=window.navigator.userAgent;return/iPod|iPhone/.test(e)||h()&&navigator.maxTouchPoints>1},h=()=>{const e=window.navigator.platform;return/MAC/.test(e.toUpperCase())},m=()=>{const e=window.navigator.platform;return/WIN/.test(e.toUpperCase())},p=()=>-1!==window.navigator.userAgent.indexOf("Android"),E=()=>!N()&&(O()||_());let S=null;const O=()=>{if(null==S){const e=window.navigator.userAgent;S=-1!==e.indexOf("Firefox")}return S};let g=null;const _=()=>{if(null==g){const e=window.navigator?window.navigator.userAgent:null;g=!!window.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return g},T=()=>{if(!O())throw new Error("Not a Firefox browser");return d(/Firefox\/((?:\d+\.?){1,3})/,".")},A=()=>-1!==window.navigator.userAgent.indexOf("OculusBrowser");let v=null;const N=()=>{if(null==v){const e=window.navigator.userAgent.includes("Macintosh"),t=5===window.navigator.maxTouchPoints;v=e&&t}return v},L=()=>{switch((0,s.P3)("bot",2)){case 0:default:return!1;case 1:return!0;case 2:return-1!==navigator.userAgent.indexOf("Googlebot")}},I=()=>"ontouchstart"in window,f=()=>"share"in navigator&&(r()||c()),b=()=>window.parent!==window,R=()=>b()&&(()=>{const e=new URL(document.referrer);return a.yt.some((t=>t.test(e.hostname)))})(),y=()=>window.location.search.substr(1).split("&"),M=function(){const e=window.URL||window.webkitURL,t=document.createElement("a");return document.body.appendChild(t),t.style.display="none",(i,n)=>{const s=e.createObjectURL(i);t.href=s,t.download=n,t.click(),e.revokeObjectURL(s)}}(),D=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},k=function(){return!c()&&!u()&&!!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled)},P=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},w=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()};function C(e){try{return document.featurePolicy.allowsFeature(e)}catch(t){return o.warn(t),o.warn(`Feature Policy check failed, defaulting ${e} to false.`),!1}}const x=()=>{var e,t;return(e=>{const t={language:"en",region:void 0,script:void 0,ext:void 0},i=new RegExp([/^([a-z]{2,3})/,/(?:[_-]([ut]{1}[_-][a-z\-\_]+))?/,/(?:[_-]([a-z]{4}))?/,/(?:[_-]([a-z]{2}))?$/].map((e=>e.source)).join(""),"i").exec(e);if(i){const[,e,n,s,a]=i;Object.assign(t,{language:e,ext:n,script:s,region:a})}return t})((null===(t=null===(e=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===e?void 0:e.resolvedOptions())||void 0===t?void 0:t.locale)||navigator.language).language||""}},42046:(e,t,i)=>{"use strict";i.d(t,{G:()=>n});const n=function(e,t){const i=new RegExp(e+"=([^;]+)|$").exec(document.cookie);if(!i)return t;const n=i[1];return"boolean"==typeof t?"true"===n||"1"===n:"number"==typeof t?parseFloat(n):n}},34904:(e,t,i)=>{"use strict";function n(e){const t=document.createElement("input");t.type="text",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}i.d(t,{l:()=>n})},88488:(e,t,i)=>{"use strict";i.d(t,{$:()=>s,X:()=>a});const n=new Object,s=e=>{if(e){const t=e.valueOf();if(!isNaN(t))return e.toISOString()}return(new Date).toISOString()},a=(e,t=n)=>{if(e){const t=new Date(e);if(!isNaN(t.valueOf()))return t}return t===n?new Date:t}},93475:(e,t,i)=>{"use strict";i.d(t,{A4:()=>d,D6:()=>l,Nd:()=>r,hV:()=>o,ld:()=>a});const n=.3048,s=.0929,a=e=>e/n,o=e=>e*n,r=e=>e/s,l=e=>e*s,d=e=>{const t=e/n;let i=Math.floor(t),s=12*t%12;return 12===Math.round(s)?(i+=1,s=0):s=Math.round(s),{feet:i,inches:s}}},79953:(e,t,i)=>{"use strict";i.d(t,{AU:()=>d,Bo:()=>O,Do:()=>o,ME:()=>u,WD:()=>r,dV:()=>l,e2:()=>p,jv:()=>E,lu:()=>m,p9:()=>a,p_:()=>c,rn:()=>h,sP:()=>g,v:()=>S});var n=i(65380),s=i.n(n);const a=function(e,t,i,n){return i*e/n+t},o=function(e,t,i,n){return i*(e/=n)*e+t},r=function(e,t,i,n){return-i*(e/=n)*(e-2)+t},l=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},d=function(e,t,i,n){return i*(e/=n)*e*e+t},c=function(e,t,i,n){return e/=n,i*(--e*e*e+1)+t},u=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},h=function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},m=function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))+t},p=function(e,t,i,n){return(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t)},E=(e,t,i,n,s)=>{let a=t;if(s>0){const t=(1-Math.max(s,0))*Math.abs(n);a=i<=t?0:e(i-t,0,1,t)}return a};function S(e,t,i,n){const a=new(s())(e,t,i,n);return(e,t,i,n)=>{const s=e/n;return t+i*a.solve(s)}}function O(e,t,i,n){const a=new(s())(e,t,i,n);return e=>a.solve(e)}const g=function(e,t,i,n){return-4*i*Math.pow(e/n-(.5+t),2)+1}},14054:(e,t,i)=>{"use strict";i.d(t,{EE:()=>n,kH:()=>s});const n=e=>void 0!==e.pointerId,s=e=>void 0!==e.changedTouches},18559:(e,t,i)=>{"use strict";i.d(t,{s:()=>c});var n=i(5156),s=i(60536),a=i(16603),o=i(54859),r=i(17139),l=i(96540),d=i(41309);function c(e){const t=!!(0,o.L)(),{editMode:i}=(0,l.useContext)(r.B),c=(0,a.i)(d.Q$.DefurnishView,!1),u=(0,a.i)(n.cB,!1),h=n.NT,m=!!(0,s.y)(h);return u&&(m||"viewer"===e)&&(c&&t||i)}},59503:(e,t,i)=>{"use strict";function n(e,t){let i,n,s=t[t.length-1],a=0;for(let o=0;oe.y&&s.y>e.y||i.x0?1:0);return a%2==1}i.d(t,{L:()=>n})},95226:(e,t,i)=>{"use strict";i.d(t,{G8:()=>o,Ho:()=>u,Mq:()=>l,Rt:()=>c,Uk:()=>p,W5:()=>m,Ym:()=>d,Z9:()=>h,cb:()=>s,ij:()=>r,op:()=>a});var n=i(73272);const s=function(e){return new Promise(((t,i)=>{setTimeout(t,e)}))},a=e=>{let t,i=-1;return{promise:new Promise(((n,s)=>{t=n,i=window.setTimeout(n,e)})).then((()=>{i=-1})),cancel:()=>{-1!==i&&(window.clearTimeout(i),t())}}},o=function(e,t){if(0===e.length)return null;let i=0,n=0;for(let s of e)s=t?s[t]:s,i+=s,n++;return i/n},r=function(e){const t={};for(const i of e)t[i]=i;return t},l=function(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0},d=function(e,t,i=!0){if(0===e.length)return null;i&&e.sort((function(e,t){return e-t}));const n=t/100;return e[Math.floor(e.length*n)]},c=function(e){return[u(e.getMonth()+1),".",u(e.getDate()),".",e.getFullYear(),"_",u(e.getHours()),".",u(e.getMinutes()),".",u(e.getSeconds())].join("")},u=function(e,t=2,i="0",n=10){const s=e.toString(n),a=t-s.length+1;return a>0?new Array(a).join(i)+s:s},h=(e=[])=>{const t={};for(const i of e)t[i]=!0;return t};const m=(e,t,i="...")=>e.length<=t?e:`${e.substr(0,t)}${i}`,p=(e,t,i)=>{if(!(Math.abs(e)<4294967295)||!(t<32)||!(i<32))throw new n.A("argument out of range");const s=1&(e>>>t^e>>>i);return(e^=s<>>0};(()=>{const e={}})()},24525:(e,t,i)=>{"use strict";i.d(t,{u:()=>s});const n=new(i(35652).Ay)("passive-support"),s=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{e=!0}});return window.addEventListener("testPassive",(()=>{}),t),window.removeEventListener("testPassive",(()=>{}),t),e}catch(e){return n.warn(`Passive Option for addEventListener is not supported, Safari zoom may not perform as expected: ${e}`),!1}})()},12127:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(68909);const s=new n.LoadingManager},35652:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>n});const n=i(96452).Vy},89465:(e,t,i)=>{"use strict";i.d(t,{JE:()=>g,LB:()=>O,R5:()=>T,ac:()=>p});var n=i(82030),s=i(93475),a=i(95149);let o="′",r="″",l=" ",d="ft",c="in",u="m",h="sq. ft.",m="m²",p="×";var E,S;function O(e){o=e.unitsDisplayFeetSymbol,r=e.unitsDisplayInchesSymbol,l=e.unitsDisplayHalfSpace,d=e.unitsDisplayFeet,c=e.unitsDisplayInches,u=e.unitsDisplayMeters,h=e.unitsDisplaySquareFeet,m=e.unitsDisplaySquareMeters,p=e.dimensionsSeparator}!function(e){e.INCHES="inches",e.FEET="feet"}(E||(E={})),function(e){e.DISTANCE="distance",e.AREA="area"}(S||(S={}));const g=(e,t,i=E.FEET)=>{const s=t.toString();return e===n.t.IMPERIAL?{[S.AREA]:`${s} ${h}`,[S.DISTANCE]:i===E.FEET?`${s}${o}`:`${s}${r}`}:{[S.AREA]:`${s} ${m}`,[S.DISTANCE]:`${s} ${u}`}},_=Number((0,a.P3)("metricPrecision",2)),T=(e,t=n.t.IMPERIAL)=>{const{IMPERIAL:i,METRIC:a}=n.t,{FEET:o,INCHES:r}=E;let d=g(i,0,r).distance;switch(t){case i:const{feet:t,inches:n}=(0,s.A4)(e);let c=g(i,t,o).distance,u=g(i,n,r).distance;t<1&&(c=""),c.length>0&&(c+=l),d=c+u;break;case a:d=g(a,e.toFixed(_)).distance}return d}},20203:(e,t,i)=>{"use strict";function n(e){const t={};for(const i in e)t[e[i]]=i;return t}function s(e,t){if(null!==e&&"object"==typeof e)for(const i in e)t(e[i],i,e),s(e[i],t)}i.d(t,{S:()=>s,h:()=>n})},70835:(e,t,i)=>{"use strict";i.d(t,{Iy:()=>r,W0:()=>a,hA:()=>o,s5:()=>l});const n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s="0123456789abcdefghijklmnopqrstuvwxyz";function a(e=11,t=n){let i="";const s=window.crypto||window.msCrypto;let a;a=s?s.getRandomValues(new Uint8Array(e)):new Uint8Array(e).map((()=>255*Math.random()));for(let n=0;n{"use strict";i.d(t,{D:()=>n});const n=function(e){let t="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n{"use strict";i.d(t,{G2:()=>o,RP:()=>a});const n="referrer";let s="";function a(e){let t;try{t=new URL(e)}catch(t){return e}return t.searchParams.set(n,o()),t.href}function o(){return(function(){if(!window.document.referrer)return!1;let e;try{e=new URL(window.document.referrer)}catch(e){return!1}return e.origin===window.location.origin}()?function(){const e=new URL(window.location.href);if(!e.searchParams.has(n))return s;const t=e.searchParams.get(n)||"";try{new URL(t),s=t}catch(e){}return e.searchParams.delete(n),window.history.replaceState(null,"",e.href),s}():"")||window.document.referrer}},44129:(e,t,i)=>{"use strict";i.d(t,{O:()=>d});var n=i(68909);const s={extensions:{derivatives:!0},defines:{RING_COUNT:0,USE_TEXTURE:!1},uniforms:{discRadius:{value:.2},discNormal:{value:new n.Vector3(0,0,1)},ringRadii:{value:[]},ringColors:{value:[]},opacity:{value:1},tint:{value:new n.Color(1,1,1)},texImg:{value:null},viewMatrixInverse:{value:new n.Matrix4},projectionMatrixInverse:{value:new n.Matrix4}},vertexShader:i(99691),fragmentShader:i(71285),side:n.FrontSide,transparent:!0};var a=i(11274);const o=new n.Color,r=[{outerRadius:1,innerRadius:.75,color:16777215,opacity:1}];class l extends a.${constructor(e=r){super(Object.assign(Object.assign({},s),{defines:Object.assign({},s.defines),uniforms:n.UniformsUtils.clone(s.uniforms)})),this.setRings(e),Object.defineProperty(this,"opacity",{set(e){this.uniforms.opacity.value=e},get(){return this.uniforms.opacity.value}})}setDiscNormal(e){this.uniforms.discNormal.value.copy(e)}setDiscRadius(e){this.uniforms.discRadius.value=e}setRings(e){e=e||[],this.defines.RING_COUNT!==e.length&&(this.defines.RING_COUNT=e.length,this.needsUpdate=!0),this.uniforms.ringRadii.value=e.map((({innerRadius:e,outerRadius:t})=>new n.Vector2(e||-1,t))),this.uniforms.ringColors.value=e.map((({color:e,opacity:t})=>(o.set(e),new n.Vector4(o.r,o.g,o.b,t))))}setTexture(e){this.defines.USE_TEXTURE!==!!e&&(this.defines.USE_TEXTURE=!!e,this.needsUpdate=!0),this.uniforms.texImg.value=e}getTexture(){return this.uniforms.texImg.value}setTint(e){this.uniforms.tint.value.set(null!=e?e:16777215)}getTint(){return this.uniforms.tint.value}onBeforeRender(e,t,i){this.uniforms.projectionMatrixInverse.value.copy(i.projectionMatrixInverse),this.uniforms.viewMatrixInverse.value.copy(i.matrixWorld)}}class d extends n.Mesh{constructor(e){super(new n.SphereGeometry(Math.sqrt(2),8,6),new l),this.onBeforeRender=(e,t,i)=>{this.material.onBeforeRender(e,t,i)},e&&this.configure(e)}configure(e){const{radius:t,normal:i,rings:n,texture:s,opacity:a,tint:o}=e,{material:r}=this;void 0!==t&&(this.scale.setScalar(t),r.setDiscRadius(t)),void 0!==i&&r.setDiscNormal(i),void 0!==n&&r.setRings(n),void 0!==s&&r.setTexture(s),void 0!==o&&r.setTint(o),void 0!==a&&(r.opacity=a)}dispose(){var e;null===(e=this.material.getTexture())||void 0===e||e.dispose(),this.geometry.dispose()}}},87634:(e,t,i)=>{"use strict";function n(e,t){return e.size===t.size&&[...e].every((e=>t.has(e)))}function s(...e){const t=new Set;for(const i of e)for(const e of i.values())t.add(e);return t}function a(e,t){for(const i of t)e.add(i);return e}i.d(t,{LX:()=>s,c5:()=>n,s1:()=>a})},19533:(e,t,i)=>{"use strict";i.d(t,{S:()=>l,y:()=>r});var n=i(68909),s=i(35652),a=i(12127);const o=new s.Ay("texture"),r=(e,t,i)=>{const s=new n.TextureLoader(a.A);return s.crossOrigin="anonymous",s.load(e,t,void 0,(t=>{o.error(`Failed to load ${e}`),i&&i(t)}))},l=e=>{const t=new n.TextureLoader(a.A);return t.crossOrigin="anonymous",t.loadAsync(e)}},44940:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=(e,t)=>{let i,n=Date.now()-t;return(...s)=>{const a=Date.now()-n,o=()=>{e.apply(null,s),n=Date.now()};if(i&&clearTimeout(i),a>=t)o();else{const e=t-a;i=window.setTimeout(o,e)}}}},44383:(e,t,i)=>{"use strict";i.d(t,{$j:()=>n,Cz:()=>c,Gm:()=>s,Jt:()=>r,SE:()=>a,kh:()=>d,yt:()=>o,zh:()=>l});const n=function(e="",t){let i,n,s;if(e.match(/^https?/)){const t=new URL(e);i=t.protocol+"//"+t.host,n=e,s=e.match(/[^/]*$/)[0]}else{if(t.match(/^https?/)){const e=new URL(t);i=e.protocol+"//"+e.host}else i=window.location.protocol+"//"+t;n=i+"/api/player/models/"+e,s=e}return{sid:s,urlBase:i,urlModel:n,urlFiles:n+(n.match(/\/$/)?"files":"/files"),urlThumb:n+(n.match(/\/$/)?"thumb":"/thumb")}},s=function(e,t={}){for(const i in t){const n=t[i];e+=(-1===e.indexOf("?")?"?":"&")+`${i}=${n}`}return e},a=e=>e.replace(/^https?:\/\/(?:www.)?/i,"").replace(/\/(.*)/,""),o=[/^([a-z0-9\-]*\.)*matterhub\.ru$/,/^([a-z0-9\-]*\.)*matterhub\.ru$/,/^localhost$/];function r(e){try{const t=new URL(e).hostname;for(const e of o)if(t.match(e))return!0}catch(e){}return!1}const l=e=>{if(r(e)){return new URL(e).origin}return null};function d(e=window.location.href){let t=e;return r(t)&&(t=t.replace(/\/work\/?(\?.*)?$/,"/show/$1")),new URL(t)}function c(e,t,i){const n=d(),s=new URLSearchParams(window.location.search);var a;a=s,["q","qK","qF","tag","note","comment","pin-pos","cloudEdit"].forEach((e=>a.delete(e)));const o=encodeURIComponent(e);if(o&&s.set("q",o),t.length>0){const e=encodeURIComponent(t.join(","));s.set("qK",e)}if(i.length>0){const e=encodeURIComponent(i.join(","));s.set("qF",e)}return n.search=s.toString(),n.hash="",n.toString()}},9389:(e,t,i)=>{"use strict";i.d(t,{r:()=>n});const n=Symbol("deep-links")},32903:(e,t,i)=>{"use strict";var n;i.d(t,{b:()=>n}),function(e){e.ACCOUNT_INACTIVE="unavailable.account_inactive",e.GENERIC="generic",e.INTERNAL_ERROR="internal.error",e.MODEL_ARCHIVED="unavailable.archived",e.MODEL_COMPLIANCE="unavailable.compliance",e.MODEL_CORRUPT="model.corrupt",e.MODEL_FAILED="model.failed",e.MODEL_DELETED="unavailable.gone",e.MODEL_PENDING="unavailable.pending",e.MODEL_PROCESSING="unavailable.processing",e.MODEL_RESTRICTED="unavailable.restricted",e.NOT_FOUND="not.found",e.PASSWORD_REQUIRED="password.required",e.REQUEST_INVALID="request.invalid",e.WEBGL_CONTEXT_LOST="webgl.context_lost",e.WEBGL_GENERIC="webgl.generic",e.WEBGL_UNSUPPORTED="webgl.unsupported"}(n||(n={}))},72415:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var n=i(71294);const s=new(i(35652).Ay)("module-loader");var a;!function(e){e[e.Registered=0]="Registered",e[e.Loading=1]="Loading",e[e.Initialized=2]="Initialized",e[e.Unloaded=3]="Unloaded"}(a||(a={}));class o{constructor(){this.symbolMap=new Map}registerModule(e,t){if(this.symbolMap.has(e))throw Error(`Type ${String(e)} already registered`);const i={es6ModulePromise:t,ctorPromise:new n.i,initPromise:new n.i,state:a.Registered};return this.symbolMap.set(e,i),i}moduleRegistered(e){return this.symbolMap.has(e)}moduleLoaded(e){const t=this.symbolMap.get(e);return!!t&&![a.Registered,a.Unloaded].includes(t.state)}getModule(e){const t=this.symbolMap.get(e);if(!t)throw Error(`Trying to get ${String(e)} before it was registered!`);if(t.state===a.Unloaded)throw Error(`${String(e)} module unloaded`);return t.initPromise.nativePromise()}getModuleSync(e){const t=this.symbolMap.get(e);return t?t.state!==a.Initialized?null:t.module:null}loadModule(e,t,i={}){const n=this.symbolMap.get(t);if(!n)throw Error(`${String(t)} not found`);if(n.state===a.Initialized)return n;if(n.state!==a.Registered&&n.state!==a.Unloaded)throw Error(`${String(t)} already loading`);n.state=a.Loading;const o=String(t);return n.es6ModulePromise(o).then((o=>{if(!o.default)throw new Error(`${String(t)} has no default export during module loading`);const r=new o.default;n.ctorPromise.resolve(r).then((()=>{const t=Date.now();let o=!1;setTimeout((()=>{o||s.debug(`${r.name} init took over 2 seconds`)}),2e3),r.init(i,e).then((()=>{s.debug(`${r.name} init took ${(Date.now()-t)/1e3} secs.`),o=!0,n.state=a.Initialized,n.module=r,n.initPromise.resolve(r)})).catch((e=>{n.initPromise.reject(e)}))}))})).catch((e=>{s.error(`Failed to load es6Module for ${String(t)}: ${e}`),n.initPromise.reject(e)})),n}whenQueueEmpties(e){const t=[],i=new Map;for(const[e,n]of this.symbolMap)n.state===a.Loading&&(t.push(n.initPromise),i.set(e,n.initPromise));for(const[t,n]of i){const i=setTimeout((()=>s.debugInfo("still loading",t)),e);n.then((()=>clearTimeout(i)))}return n.i.all(t).nativePromise()}unloadModule(e){const t=this.symbolMap.get(e);if(!t)throw Error("Attempting to unload unregistered module");if(t.state===a.Unloaded||t.state===a.Registered)throw Error("Attempting to unload not-loaded module");t.state=a.Unloaded,t.ctorPromise=new n.i,t.initPromise=new n.i,t.module=void 0}}},64260:(e,t,i)=>{"use strict";function n(e={},t){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}i.d(t,{L:()=>n})},51196:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(){this.libraryCache=new Map}load(e,t){const i=this.libraryCache.get(e)||new s(e,t);return this.libraryCache.set(e,i),i.library}}class s{constructor(e,t){this._libraryPromise=new Promise(((e,t)=>{this.libraryResolver=e,this.libraryRejecter=t})),this.fetch(e,t)}async fetch(e,t){try{const i=await import(e),n=Object.assign({},i);if(t&&t in window){const e=window[t]||{};Object.assign(n,e),delete window[t]}this.libraryResolver(n)}catch(e){this.libraryRejecter(e)}}get library(){return this._libraryPromise}}},39404:(e,t,i)=>{"use strict";i.d(t,{J:()=>n});const n={360:"61697","add-link":"61698",arrow:"61699",arrows:"61700",attach:"61701",back:"61702",blocked:"61703","blur-outline":"61704","brush-outline":"61705",checkmark:"61706","chevron-left":"61707","chevron-right":"61708",close:"61709","comment-large":"57344","comment-outline":"61710",comment:"61711",delete:"61712",dock:"61713",dollhouse:"61714",door:"61715",download:"61716","dpad-down":"61717","dpad-left":"61718","dpad-right":"61719","dpad-up":"61720","drag-edit":"61721","draw-lines":"61722","edit-floorplan":"61723",email:"61724",error:"61725","escape-key":"61726",expand:"61727","ext-link":"61728","eye-hide":"61729","eye-show":"61730",facebook:"61731",file:"61732",filter:"61733","finger-drag":"61734","floor-controls-all":"61735","floor-controls":"61736",floorplan:"61737","fullscreen-exit":"61738",fullscreen:"61739",fullscreen2:"61740","furniture-slash":"61741",furniture:"61742","gizmo-add":"61743","gizmo-closed":"61744","gizmo-eye-hide":"61745","gizmo-eye-show":"61746","gizmo-gear":"61747","gizmo-layers":"61748","gizmo-magnet":"61749","gizmo-model":"61750","gizmo-move":"61751","gizmo-open":"61752","gizmo-redo":"61753","gizmo-snap":"61754","gizmo-undo":"61755",help:"61756","hlr-badge":"61757",hlr:"61758",info:"61759","invisible-wall":"61760",keyboard:"61761",layers:"61762",link:"61763",linkedin:"61764",list:"61765",location:"61766",lock:"61767",logo:"61768","magnifying-glass":"61769","media-mix":"61770","menu-indicator":"61771","mesh-trim":"61772",mesh:"61773",minus:"61774","more-vert":"61775",notes:"61776","object-air-ducts":"61777","object-bathtub":"61778","object-bed":"61779","object-cabinet":"61780","object-ceiling-fan":"61781","object-chair":"61782","object-countertop":"61783","object-dishwasher":"61784","object-door-lock":"61785","object-door":"61786","object-faucet":"61787","object-fireplace":"61788","object-garage-door":"61789","object-kitchen-island":"61790","object-light":"61791","object-microwave":"61792","object-mirror":"61793","object-outlet":"61794","object-oven":"61795","object-range-hood":"61796","object-range":"61797","object-refrigerator":"61798","object-shower":"61799","object-sink":"61800","object-skylight":"61801","object-smoke-detector":"61802","object-sofa":"61803","object-table":"61804","object-television":"61805","object-thermostat":"61806","object-toilet":"61807","object-towel-rack":"61808","object-vanity":"61809","object-wall-switch":"61810","object-washer-dryer":"61811","object-window":"61812",opening:"61813","panorama-disable":"61814",panorama:"61815","paper-clip":"61816","pause-outline":"61817",pause:"61818","photo-2d":"61819","photo-360":"61820","photo-add":"61821",pin:"61822",pinterest:"61823","play-unicode":"61824",play:"61825",plus:"61826","position-3d":"61827","press-hold":"61828",public_buildings_apartment:"61829",public_buildings_archway:"61830","public_buildings_building-circle-arrow-right":"61831","public_buildings_building-circle-check":"61832","public_buildings_building-circle-exclamation":"61833","public_buildings_building-circle-xmark":"61834","public_buildings_building-columns":"61835","public_buildings_building-flag":"61836","public_buildings_building-lock":"61837","public_buildings_building-shield":"61838","public_buildings_building-user":"61839","public_buildings_building-wheat":"61840",public_buildings_building:"61841",public_buildings_buildings:"61842",public_buildings_cabin:"61843",public_buildings_campground:"61844","public_buildings_car-building":"61845",public_buildings_castle:"61846",public_buildings_chimney:"61847",public_buildings_church:"61848",public_buildings_city:"61849",public_buildings_farm:"61850",public_buildings_fence:"61851","public_buildings_ferris-wheel":"61852",public_buildings_fort:"61853",public_buildings_garage:"61854",public_buildings_hospital:"61855",public_buildings_hotel:"61856","public_buildings_house-building":"61857","public_buildings_house-crack":"61858","public_buildings_house-day":"61859","public_buildings_house-fire":"61860","public_buildings_house-flag":"61861","public_buildings_house-flood-water":"61862","public_buildings_house-heart":"61863","public_buildings_house-lock":"61864","public_buildings_house-medical":"61865","public_buildings_house-night":"61866",public_buildings_house:"61867",public_buildings_industry:"61868",public_buildings_landmark:"61869",public_buildings_monument:"61870",public_buildings_mosque:"61871","public_buildings_mountain-city":"61872","public_buildings_place-of-worship":"61873","public_buildings_roller-coaster":"61874",public_buildings_school:"61875",public_buildings_store:"61876",public_buildings_synagogue:"61877",public_buildings_tent:"61878",public_buildings_toilet:"61879","public_buildings_torii-gate":"61880","public_buildings_tower-observation":"61881",public_buildings_tree:"61882",public_buildings_warehouse:"61883",public_characters_0:"61884",public_characters_1:"61885",public_characters_2:"61886",public_characters_3:"61887",public_characters_4:"61888",public_characters_5:"61889",public_characters_6:"61890",public_characters_7:"61891",public_characters_8:"61892",public_characters_9:"61893",public_characters_a:"61894",public_characters_b:"61895",public_characters_c:"61896","public_characters_circle-0":"61897","public_characters_circle-1":"61898","public_characters_circle-2":"61899","public_characters_circle-3":"61900","public_characters_circle-4":"61901","public_characters_circle-5":"61902","public_characters_circle-6":"61903","public_characters_circle-7":"61904","public_characters_circle-8":"61905","public_characters_circle-9":"61906","public_characters_circle-a":"61907","public_characters_circle-b":"61908","public_characters_circle-c":"61909","public_characters_circle-d":"61910","public_characters_circle-e":"61911","public_characters_circle-f":"61912","public_characters_circle-g":"61913","public_characters_circle-h":"61914","public_characters_circle-i":"61915","public_characters_circle-j":"61916","public_characters_circle-k":"61917","public_characters_circle-l":"61918","public_characters_circle-m":"61919","public_characters_circle-n":"61920","public_characters_circle-o":"61921","public_characters_circle-p":"61922","public_characters_circle-q":"61923","public_characters_circle-r":"61924","public_characters_circle-s":"61925","public_characters_circle-t":"61926","public_characters_circle-u":"61927","public_characters_circle-v":"61928","public_characters_circle-w":"61929","public_characters_circle-x":"61930","public_characters_circle-y":"61931","public_characters_circle-z":"61932",public_characters_d:"61933",public_characters_e:"61934",public_characters_f:"61935",public_characters_g:"61936",public_characters_h:"61937",public_characters_i:"61938",public_characters_j:"61939",public_characters_k:"61940",public_characters_l:"61941",public_characters_m:"61942",public_characters_n:"61943",public_characters_o:"61944",public_characters_p:"61945",public_characters_q:"61946",public_characters_r:"61947",public_characters_s:"61948","public_characters_square-0":"61949","public_characters_square-1":"61950","public_characters_square-2":"61951","public_characters_square-3":"61952","public_characters_square-4":"61953","public_characters_square-5":"61954","public_characters_square-6":"61955","public_characters_square-7":"61956","public_characters_square-8":"61957","public_characters_square-9":"61958","public_characters_square-a":"61959","public_characters_square-b":"61960","public_characters_square-c":"61961","public_characters_square-d":"61962","public_characters_square-e":"61963","public_characters_square-f":"61964","public_characters_square-g":"61965","public_characters_square-h":"61966","public_characters_square-i":"61967","public_characters_square-j":"61968","public_characters_square-k":"61969","public_characters_square-l":"61970","public_characters_square-m":"61971","public_characters_square-n":"61972","public_characters_square-o":"61973","public_characters_square-p":"61974","public_characters_square-q":"61975","public_characters_square-r":"61976","public_characters_square-s":"61977","public_characters_square-t":"61978","public_characters_square-u":"61979","public_characters_square-v":"61980","public_characters_square-w":"61981","public_characters_square-x":"61982","public_characters_square-xmark":"61983","public_characters_square-y":"61984","public_characters_square-z":"61985",public_characters_t:"61986",public_characters_u:"61987",public_characters_v:"61988",public_characters_w:"61989",public_characters_x:"61990",public_characters_y:"61991",public_characters_z:"61992",public_furniture_bath:"61993","public_furniture_bed-alt":"61994","public_furniture_bed-bunk":"61995","public_furniture_bed-empty":"61996",public_furniture_bed:"61997",public_furniture_blender:"61998",public_furniture_blinds:"61999","public_furniture_cabinet-filing":"62000","public_furniture_cash-register":"62001","public_furniture_chair-office":"62002",public_furniture_chair:"62003","public_furniture_charging-station":"62004","public_furniture_computer-classic":"62005","public_furniture_computer-speaker":"62006",public_furniture_couch:"62007","public_furniture_dryer-alt":"62008",public_furniture_dryer:"62009",public_furniture_dumbbell:"62010",public_furniture_dumpster:"62011",public_furniture_faucet:"62012",public_furniture_fax:"62013","public_furniture_hot-tub":"62014",public_furniture_inventory:"62015","public_furniture_lamp-desk":"62016","public_furniture_lamp-floor":"62017",public_furniture_lamp:"62018",public_furniture_laptop:"62019","public_furniture_light-ceiling":"62020",public_furniture_loveseat:"62021",public_furniture_microwave:"62022",public_furniture_piano:"62023",public_furniture_podium:"62024",public_furniture_presentation:"62025",public_furniture_projector:"62026",public_furniture_radio:"62027",public_furniture_refrigerator:"62028",public_furniture_shower:"62029",public_furniture_shredder:"62030",public_furniture_sink:"62031","public_furniture_solar-panel":"62032",public_furniture_speaker:"62033",public_furniture_speakers:"62034",public_furniture_toilet:"62035","public_furniture_trash-alt":"62036",public_furniture_turntable:"62037","public_furniture_tv-retro":"62038",public_furniture_tv:"62039",public_furniture_typewriter:"62040",public_objects_abacus:"62041","public_objects_alarm-clock":"62042","public_objects_album-collection":"62043",public_objects_backpack:"62044","public_objects_bags-shopping":"62045",public_objects_bell:"62046",public_objects_bicycle:"62047",public_objects_binoculars:"62048",public_objects_blanket:"62049",public_objects_book:"62050",public_objects_books:"62051",public_objects_boot:"62052",public_objects_box:"62053","public_objects_bread-loaf":"62054","public_objects_briefcase-medical":"62055",public_objects_briefcase:"62056",public_objects_broom:"62057",public_objects_brush:"62058",public_objects_bullhorn:"62059","public_objects_burger-soda":"62060",public_objects_calculator:"62061",public_objects_calendar:"62062",public_objects_camera:"62063",public_objects_car:"62064",public_objects_carrot:"62065","public_objects_cheese-swiss":"62066",public_objects_chess:"62067","public_objects_clipboard-check":"62068","public_objects_clipboard-list":"62069",public_objects_clipboard:"62070","public_objects_coffee-pot":"62071",public_objects_compass:"62072",public_objects_cookie:"62073",public_objects_corn:"62074",public_objects_croissant:"62075",public_objects_dice:"62076",public_objects_drumstick:"62077",public_objects_egg:"62078",public_objects_fish:"62079",public_objects_flask:"62080","public_objects_flower-tulip":"62081",public_objects_gamepad:"62082",public_objects_gem:"62083",public_objects_gift:"62084",public_objects_gifts:"62085","public_objects_glass-citrus":"62086",public_objects_glass:"62087",public_objects_glasses:"62088","public_objects_globe-stand":"62089","public_objects_graduation-cap":"62090",public_objects_guitar:"62091",public_objects_hammer:"62092","public_objects_hat-chef":"62093","public_objects_ice-cream":"62094","public_objects_ice-skate":"62095",public_objects_key:"62096","public_objects_knife-kitchen":"62097","public_objects_lightbulb-on":"62098","public_objects_lightbulb-slash":"62099",public_objects_lightbulb:"62100",public_objects_magnet:"62101",public_objects_mailbox:"62102",public_objects_map:"62103",public_objects_meat:"62104",public_objects_medal:"62105",public_objects_microphone:"62106",public_objects_mobile:"62107","public_objects_money-bill-wave":"62108","public_objects_mug-tea":"62109",public_objects_mug:"62110",public_objects_newspaper:"62111","public_objects_paint-roller":"62112",public_objects_palette:"62113",public_objects_pen:"62114",public_objects_phone:"62115","public_objects_pizza-slice":"62116","public_objects_pump-soap":"62117","public_objects_ruler-triangle":"62118",public_objects_ruler:"62119",public_objects_salad:"62120",public_objects_sandwich:"62121",public_objects_shovel:"62122",public_objects_steak:"62123",public_objects_sunglasses:"62124",public_objects_turkey:"62125",public_objects_utensils:"62126",public_objects_vial:"62127",public_objects_wallet:"62128",public_objects_wrench:"62129",public_people_baby:"62130","public_people_child-dress":"62131","public_people_child-reaching":"62132",public_people_child:"62133",public_people_children:"62134","public_people_circle-user":"62135","public_people_clipboard-user":"62136","public_people_face-angry":"62137","public_people_face-anguished":"62138","public_people_face-astonished":"62139","public_people_face-beam-hand-over-mouth":"62140","public_people_face-confounded":"62141","public_people_face-confused":"62142","public_people_face-diagonal-mouth":"62143","public_people_face-disappointed":"62144","public_people_face-dizzy":"62145","public_people_face-expressionless":"62146","public_people_face-eyes-xmarks":"62147","public_people_face-fearful":"62148","public_people_face-frown-slight":"62149","public_people_face-frown":"62150","public_people_face-glasses":"62151","public_people_face-grimace":"62152","public_people_face-grin-beam-sweat":"62153","public_people_face-grin-beam":"62154","public_people_face-grin-hearts":"62155","public_people_face-grin-squint-tears":"62156","public_people_face-grin-squint":"62157","public_people_face-grin-stars":"62158","public_people_face-grin-tears":"62159","public_people_face-grin-tongue-squint":"62160","public_people_face-grin-tongue-wink":"62161","public_people_face-grin-tongue":"62162","public_people_face-grin-wide":"62163","public_people_face-grin-wink":"62164","public_people_face-grin":"62165","public_people_face-hand-over-mouth":"62166","public_people_face-hushed":"62167","public_people_face-icicles":"62168","public_people_face-kiss":"62169","public_people_face-laugh":"62170","public_people_face-mask":"62171","public_people_face-meh-blank":"62172","public_people_face-meh":"62173","public_people_face-monocle":"62174","public_people_face-nauseated":"62175","public_people_face-party":"62176","public_people_face-pensive":"62177","public_people_face-persevering":"62178","public_people_face-pleading":"62179","public_people_face-pouting":"62180","public_people_face-raised-eyebrow":"62181","public_people_face-relieved":"62182","public_people_face-rolling-eyes":"62183","public_people_face-sad-cry":"62184","public_people_face-sad-sweat":"62185","public_people_face-sad-tear":"62186","public_people_face-scream":"62187","public_people_face-sleeping":"62188","public_people_face-sleepy":"62189","public_people_face-smile-beam":"62190","public_people_face-smile-halo":"62191","public_people_face-smile-hearts":"62192","public_people_face-smile-relaxed":"62193","public_people_face-smile-upside-down":"62194","public_people_face-smile-wink":"62195","public_people_face-smile":"62196","public_people_face-smirking":"62197","public_people_face-spiral-eyes":"62198","public_people_face-sunglasses":"62199","public_people_face-surprise":"62200","public_people_face-thermometer":"62201","public_people_face-thinking":"62202","public_people_face-tired":"62203","public_people_face-tissue":"62204","public_people_face-unamused":"62205","public_people_face-vomit":"62206","public_people_face-weary":"62207","public_people_face-woozy":"62208","public_people_face-worried":"62209","public_people_face-zipper":"62210","public_people_family-dress":"62211","public_people_family-pants":"62212",public_people_family:"62213","public_people_file-user":"62214","public_people_folder-user":"62215","public_people_head-side-brain":"62216","public_people_head-side-cough-slash":"62217","public_people_head-side-cough":"62218","public_people_head-side-goggles":"62219","public_people_head-side-headphones":"62220","public_people_head-side-heart":"62221","public_people_head-side-mask":"62222","public_people_head-side-medical":"62223","public_people_head-side-virus":"62224","public_people_head-side":"62225",public_people_people:"62226","public_people_person-biking":"62227","public_people_person-booth":"62228","public_people_person-breastfeeding":"62229","public_people_person-cane":"62230","public_people_person-carry-box":"62231","public_people_person-digging":"62232","public_people_person-dolly-empty":"62233","public_people_person-dolly":"62234","public_people_person-dress":"62235","public_people_person-drowning":"62236","public_people_person-falling":"62237","public_people_person-half-dress":"62238","public_people_person-hiking":"62239","public_people_person-military-pointing":"62240","public_people_person-pinball":"62241","public_people_person-praying":"62242","public_people_person-pregnant":"62243","public_people_person-running":"62244","public_people_person-seat-reclined":"62245","public_people_person-seat":"62246","public_people_person-shelter":"62247","public_people_person-skating":"62248","public_people_person-skiing":"62249","public_people_person-swimming":"62250","public_people_person-to-door":"62251","public_people_person-walking-luggage":"62252","public_people_person-walking-with-cane":"62253","public_people_person-walking":"62254",public_people_person:"62255",public_people_restroom:"62256","public_people_square-user":"62257","public_people_street-view":"62258","public_people_user-astronaut":"62259","public_people_user-check":"62260","public_people_user-chef":"62261","public_people_user-clock":"62262","public_people_user-cowboy":"62263","public_people_user-crown":"62264","public_people_user-doctor":"62265","public_people_user-gear":"62266","public_people_user-graduate":"62267","public_people_user-group":"62268","public_people_user-headset":"62269","public_people_user-helmet-safety":"62270","public_people_user-injured":"62271","public_people_user-large":"62272","public_people_user-lock":"62273","public_people_user-minus":"62274","public_people_user-music":"62275","public_people_user-nurse":"62276","public_people_user-pen":"62277","public_people_user-pilot":"62278","public_people_user-plus":"62279","public_people_user-police":"62280","public_people_user-shield":"62281","public_people_user-slash":"62282","public_people_user-unlock":"62283",public_people_user:"62284",public_people_users:"62285",public_people_wheelchair:"62286","public_symbols_arrow-alt-circle-down":"62287","public_symbols_arrow-alt-circle-left":"62288","public_symbols_arrow-alt-circle-right":"62289","public_symbols_arrow-alt-circle-up":"62290","public_symbols_arrow-alt-down":"62291","public_symbols_arrow-alt-left":"62292","public_symbols_arrow-alt-right":"62293","public_symbols_arrow-alt-up":"62294",public_symbols_award:"62295","public_symbols_badge-check":"62296","public_symbols_badge-dollar":"62297",public_symbols_badge:"62298",public_symbols_ban:"62299",public_symbols_bell:"62300","public_symbols_bolt-slash":"62301",public_symbols_bolt:"62302",public_symbols_bookmark:"62303","public_symbols_check-circle":"62304",public_symbols_check:"62305",public_symbols_circle:"62306",public_symbols_clock:"62307",public_symbols_club:"62308",public_symbols_cube:"62309",public_symbols_cubes:"62310",public_symbols_deaf:"62311",public_symbols_diamond:"62312","public_symbols_dollar-sign":"62313","public_symbols_exclamation-circle":"62314","public_symbols_exclamation-square":"62315","public_symbols_exclamation-triangle":"62316",public_symbols_exclamation:"62317","public_symbols_eye-slash":"62318",public_symbols_eye:"62319",public_symbols_file:"62320",public_symbols_fingerprint:"62321","public_symbols_fire-alt":"62322","public_symbols_flag-alt":"62323",public_symbols_folder:"62324",public_symbols_genderless:"62325",public_symbols_heart:"62326",public_symbols_hexagon:"62327",public_symbols_hourglass:"62328",public_symbols_image:"62329","public_symbols_info-circle":"62330","public_symbols_info-square":"62331","public_symbols_layer-group":"62332",public_symbols_link:"62333","public_symbols_location-arrow":"62334","public_symbols_lock-open":"62335",public_symbols_lock:"62336","public_symbols_map-marker-alt":"62337","public_symbols_map-marker-check":"62338","public_symbols_map-marker-exclamation":"62339","public_symbols_map-marker-minus":"62340","public_symbols_map-marker-plus":"62341","public_symbols_map-marker-question":"62342","public_symbols_map-marker-smile":"62343",public_symbols_mars:"62344",public_symbols_moon:"62345",public_symbols_octagon:"62346",public_symbols_paperclip:"62347","public_symbols_parking-circle":"62348",public_symbols_parking:"62349",public_symbols_pause:"62350",public_symbols_play:"62351","public_symbols_question-circle":"62352","public_symbols_question-square":"62353",public_symbols_question:"62354",public_symbols_recycle:"62355",public_symbols_redo:"62356",public_symbols_shapes:"62357",public_symbols_shield:"62358","public_symbols_smoking-ban":"62359",public_symbols_smoking:"62360",public_symbols_spade:"62361",public_symbols_square:"62362",public_symbols_star:"62363",public_symbols_tachometer:"62364",public_symbols_tag:"62365","public_symbols_temperature-down":"62366","public_symbols_temperature-frigid":"62367","public_symbols_temperature-high":"62368","public_symbols_temperature-hot":"62369","public_symbols_temperature-low":"62370","public_symbols_temperature-up":"62371",public_symbols_text:"62372","public_symbols_thermometer-empty":"62373","public_symbols_thermometer-full":"62374","public_symbols_thermometer-half":"62375","public_symbols_thermometer-quarter":"62376","public_symbols_thermometer-three-quarters":"62377",public_symbols_thumbtack:"62378",public_symbols_tint:"62379","public_symbols_transgender-alt":"62380",public_symbols_transgender:"62381","public_symbols_trash-alt":"62382",public_symbols_triangle:"62383","public_symbols_usd-circle":"62384","public_symbols_usd-square":"62385","public_symbols_venus-mars":"62386",public_symbols_venus:"62387",public_symbols_video:"62388","public_symbols_volume-down":"62389","public_symbols_volume-mute":"62390","public_symbols_volume-off":"62391","public_symbols_volume-slash":"62392","public_symbols_volume-up":"62393",public_symbols_volume:"62394",public_symbols_water:"62395",public_symbols_waveform:"62396","public_symbols_wifi-slash":"62397",public_symbols_wifi:"62398","public_symbols_yen-sign":"62399",question:"62400",reorder:"62401",reply:"62402",restart:"62403",revert:"62404","room-00258k0mqu8750du151be805c":"62405","room-0an2rky24gb91fdnpzmbwadib":"62406","room-0gnuunpwx63dmmqeq64aqfiyd":"62407","room-2nx6maxxpaeut7kx96fuacdzc":"62408","room-4by2d70b54srbin43t5m0yh9c":"62409","room-4gp8x21ni4i8y19r9pm4rb35a":"62410","room-4qq4e5hz84hcur7ry87uhtmua":"62411","room-66psa4tqgazbnffr9huy2dnpd":"62412","room-91naa1k3hiim9z4mk8352enta":"62413","room-a11d2gi43h0etwedw0mx9pgwd":"62414","room-ag5uphha72sak65qazgsp09yd":"62415","room-byp7pz2tmt4ff47nhfx0uwzec":"62416","room-e6md2spaqemc448pmau3azkhd":"62417","room-ei3kmtun2xpspbg3d5ff3t3zc":"62418","room-gba8cq0s2rdfg1zdb1epwty7d":"62419","room-ge0tcan3iztta5mtgsfx99xpb":"62420","room-gqqw1zac1hzg1p8622ducg3zb":"62421","room-izt39gytcbymc0qtd37nrb7xb":"62422","room-multi-use":"62423","room-mx6e2yfk0tg0zbkbzuw5mhkda":"62424","room-n07hhs9gky4cgrh7q65s9rp0d":"62425","room-nqw75004dcg2bcr41047rhg6c":"62426","room-pnf0xzq61xcegack4iai7xppd":"62427","room-pr9h4zy7eak91f3b7un97u42c":"62428","room-qa21tqcsinnxde9gdmiphacza":"62429","room-rmu8pikcye0n7n9fsu5e4acda":"62430","room-s1h0hb8tpcc9i35dmupknsega":"62431","room-ua1m0u8pm3yngrhzwec1ue5zc":"62432","room-w4tdggk5i5u2zpiryugktghgb":"62433","room-xwhhz63a0hw735qf81knp63ha":"62434","room-y3xuprmywgrprnm0273u3pphd":"62435","room-yeh1aa32fwgm72bh0g92ebruc":"62436","room-ywtddu9hagraxhznwinn8t4zb":"62437","room-zgh2304w5anu0t25ia06ytfxd":"62438","room-zp189tx2hdrry8k5nhaq5x45d":"62439","rotate-left":"62440","rotate-right":"62441",rotate:"62442","rotation-3d":"62443","scale-3d":"62444",settings:"62445",share:"62446",share2:"62447","simple-tag-pin":"62448","simple-tag-small":"62449","simple-tag":"62450",snap:"62451","sparkle-fill":"62452","start-location":"62453","stem-height":"62454","tape-measure":"62455","toggle-pencil":"62456","toolbar-360-view":"62457","toolbar-edit-vr":"62458","toolbar-hlr":"62459","toolbar-labels":"62460","toolbar-mattertags":"62461","toolbar-measurements":"62462","toolbar-more-horiz":"62463","toolbar-photos":"62464","toolbar-plugin-config":"62465","toolbar-scan-mgmt":"62466","toolbar-start-location":"62467",transitions:"62468",trash:"62469","trim-keep":"62470","trim-remove":"62471",twitter:"62472",unlock:"62473",user:"62474",visibility:"62475",vr:"62476",wall:"62477",window:"62478","zoom-reset":"62479"}},26179:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(39404);const s=Object.keys(n.J).sort(((e,t)=>e.localeCompare(t)))},53285:(e,t,i)=>{"use strict";i.d(t,{$A:()=>n,Dm:()=>o,aI:()=>a,i1:()=>s});class n extends Error{constructor(e,t,i){super(e),this.status=t,this.type=i,Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class s extends n{constructor(e){super(`Cannot request OEmbed data because no configuration matches the url ${e}`,200,"OEmbedUrl")}}class a extends n{constructor(e="unknown provider"){super(`Content from OEmbed provider ${e} is not currently supported`,200,"OEmbedProvider")}}class o extends n{constructor(e="unknown provider"){super(`Content from ${e} is type "link", which Link content is not currently supported`,200,"OEmbedLink")}}},79679:(e,t,i)=>{"use strict";var n;i.d(t,{n:()=>n}),function(e){e.PHOTO="photo",e.VIDEO="video",e.LINK="link",e.RICH="rich"}(n||(n={}))},78331:(e,t,i)=>{"use strict";var n;i.d(t,{K:()=>n}),function(e){e.Behance="behance",e.DailyMotion="dailymotion",e.FaceBook="facebook",e.Flickr="flickr",e.Giphy="giphy",e.GoogleMaps="google maps",e.Instagram="instagram",e.LinkedIn="linkedin",e.Matterport="matterport",e.MixCloud="mixcloud",e.Pinterest="pinterest",e.Reddit="reddit",e.SoundCloud="soundcloud",e.SketchFab="sketchfab",e.Spotify="spotify",e.Tenor="tenor",e.TikTok="tiktok",e.Twitch="twitch",e.Twitter="twitter",e.Tumblr="tumblr",e.Vimeo="vimeo",e.YouTube="youtube"}(n||(n={}))},14495:(e,t,i)=>{"use strict";var n,s;i.d(t,{L3:()=>o,QK:()=>n}),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.HIGHEST=3]="HIGHEST"}(n||(n={})),function(e){e[e.PENDING=0]="PENDING",e[e.SENDING=1]="SENDING",e[e.FAILED=2]="FAILED",e[e.DONE=3]="DONE"}(s||(s={}));const a=new WeakMap;class o{constructor({retries:e=0,concurrency:t=6}={}){this.totalBytesDownloaded=0,this.queue=[],this.retries=e,this.concurrency=t}get(e,t){return this.request("GET",e,t)}head(e,t){return this.request("HEAD",e,t)}options(e,t){return this.request("OPTIONS",e,t)}post(e,t){return this.request("POST",e,t)}put(e,t){return this.request("PUT",e,t)}patch(e,t){return this.request("PATCH",e,t)}delete(e,t){return this.request("DELETE",e,t)}request(e,t,i){const n=new r(e,t,i);if(null==i?void 0:i.signal){const e=()=>{this.queue.includes(n)&&(n.status===s.SENDING&&n.abort(),this.dequeue(n),n.onFail(new DOMException("Aborted","AbortError")))};i.signal.addEventListener("abort",e),a.set(n,(()=>{var t;null===(t=i.signal)||void 0===t||t.removeEventListener("abort",e),a.delete(n)}))}return this.enqueue(n),n.promise}update(){let e;for(;e=this.getNextPendingRequest();)this.sendRequest(e);for(;e=this.getNextOverflowingGet();)e.abort(),e.status=s.PENDING;this.updateTimeout=null}enqueue(e){let t=0;for(t=0;t{this.update()}),1))}dequeue(e){var t;null===(t=a.get(e))||void 0===t||t();const i=this.queue.indexOf(e);if(-1===i)throw new Error("Can't dequeue request not in queue");this.queue.splice(i,1),this.update()}getNextPendingRequest(){for(let e=0;e{e.status=s.DONE,this.dequeue(e),e.contentLength&&e.contentLength>0&&(this.totalBytesDownloaded+=Number(e.contentLength)),e.onDone(t)})).catch((t=>{const i=null!==e.maxRetries?e.maxRetries:this.retries;let n=e.sendAttempts{this.onDone=e,this.onFail=t}))}send(){const e=this.xhr=function(e,t,i){let n;if("undefined"!=typeof XMLHttpRequest)n=new XMLHttpRequest,n.withCredentials=i;else{if("undefined"==typeof XDomainRequest)throw new Error("No XMLHTTPRequest or XDomainRequest... are you trying to run me in node? :(");n=new XDomainRequest}return n.open(e,t,!0),n}(this.method,this.url,this.withCredentials);if(this.responseType)if("arraybuffer"===this.responseType||"text"===this.responseType||"json"===this.responseType||"blob"===this.responseType)e.responseType=this.responseType;else{if("image"!==this.responseType)throw new Error('reponseType can only be one of "arraybuffer", "text", "json", "blob", "image"');e.responseType="blob"}"json"===this.responseType&&e.setRequestHeader("Accept","application/json"),this.auth&&"string"==typeof this.auth&&e.setRequestHeader("Authorization",this.auth);for(const t in this.headers)e.setRequestHeader(t,this.headers[t]);return this.body&&"object"==typeof this.body&&(this.body instanceof FormData||(this.body=JSON.stringify(this.body),e.setRequestHeader("Content-Type","application/json"))),this.onProgress&&(e.onprogress=this.onProgress),new Promise(((t,i)=>{e.onreadystatechange=()=>{if(4===e.readyState){if(200===e.status||201===e.status||204===e.status)return this.parseResponse(this.xhr).then((e=>{t(e)}));if(!this.isAborting)return this.parseResponse(this.xhr).then((t=>{i(Object.assign({status_code:e.status},t))})).catch((()=>{i({status_code:e.status})}));this.isAborting=!1}},e.onerror=function(e){i(e)},e.send(this.body),this.sendAttempts++}))}parseResponse(e){return new Promise(((t,i)=>{var n;try{if(!e)throw new Error(`No request received. Trying ${this.method} on ${this.url} and expecting ${this.responseType}, but request was ${this.xhr}`);let i=e.response;if(this.contentLength=parseInt(null!==(n=e.getResponseHeader("Content-Length"))&&void 0!==n?n:"0",10),"json"===this.responseType&&"object"!=typeof i)t(JSON.parse(e.responseText));else if(200!==e.status&&201!==e.status&&204!==e.status||"image"!==this.responseType)t(i);else{const e=URL.createObjectURL(i);i=new Image,i.onload=function(){URL.revokeObjectURL(e),t(i)},i.src=e,i.crossOrigin="Anonymous"}}catch(e){i({error:"Payload was not valid JSON"})}}))}abort(){if(null===this.xhr)throw new Error("Cannot abort unsent Request");this.isAborting=!0,this.xhr.abort()}}},36038:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});var n,s=i(51196);!function(e){const t=new s.o;e.connect=async function(e,i,n){let s;try{s=await e.connect()}finally{e.cancelConnecting()}return function(e,t,i,n){return new t(i,e).build(n)}(n,await async function(e){if(!e)throw new Error("Unabled to load the sdk");try{const i=await t.load(e,"sdk-client");if(i&&i.SdkBuilder&&"function"==typeof i.SdkBuilder)return i.SdkBuilder}catch(e){}throw Error(`Could not load the sdk from ${e}`)}(s.scriptUrl),i.getFactory(s),s.serializedInterface)}}(n||(n={}))},44158:(e,t,i)=>{"use strict";var n;i.d(t,{D:()=>n}),function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.RETURN=13]="RETURN",e[e.SHIFT=16]="SHIFT",e[e.CONTROL=17]="CONTROL",e[e.ALT=18]="ALT",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.HASH=35]="HASH",e[e.LEFTARROW=37]="LEFTARROW",e[e.UPARROW=38]="UPARROW",e[e.RIGHTARROW=39]="RIGHTARROW",e[e.DOWNARROW=40]="DOWNARROW",e[e.DELETE=46]="DELETE",e[e.ZERO=48]="ZERO",e[e.ONE=49]="ONE",e[e.TWO=50]="TWO",e[e.THREE=51]="THREE",e[e.FOUR=52]="FOUR",e[e.FIVE=53]="FIVE",e[e.SIX=54]="SIX",e[e.SEVEN=55]="SEVEN",e[e.EIGHT=56]="EIGHT",e[e.NINE=57]="NINE",e[e.AT=64]="AT",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.L_META=91]="L_META",e[e.R_META=93]="R_META",e[e.SEMICOLON=186]="SEMICOLON",e[e.PLUSEQUALS=187]="PLUSEQUALS",e[e.COMMA=188]="COMMA",e[e.DASHUNDERSCORE=189]="DASHUNDERSCORE",e[e.PERIOD=190]="PERIOD",e[e.OPENBRACKET=219]="OPENBRACKET"}(n||(n={}))},55150:(e,t,i)=>{"use strict";function n(e){return"number"==typeof e&&!isNaN(e)}i.d(t,{Et:()=>n})},34622:(e,t,i)=>{"use strict";function n(e,t){return Object.values(e).includes(t)}i.d(t,{U:()=>n})},94857:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}\n#ifdef INSTANCED\nvarying float alpha;varying vec3 color;\n#else\nuniform float alpha;uniform vec3 color;\n#endif\nuniform sampler2D bg;uniform sampler2D mask;varying vec2 vUv;varying vec4 vMaskRect;varying float vStrokeWidth;float ring(vec2 pos,float radius,float thick){return mix(1.,0.,smoothstep(thick,thick+(thick*0.5),abs(length(vUv-pos)-radius)));}vec4 crop(vec4 texColor,vec2 xy,float size){texColor*=step(size,1.-xy.x);texColor*=step(size,xy.x);texColor*=step(size,1.-xy.y);texColor*=step(size,xy.y);return texColor;}vec2 center=vec2(0.5,0.5);void main(){vec4 bgColor=texture2D(bg,vUv);if(bgColor.a*alpha<0.1){discard;}float iconScale=1.75;vec2 maskUV=mix(vMaskRect.xy,vMaskRect.zw,(vUv-0.5)*iconScale+0.5);vec4 maskColor=texture2D(mask,maskUV);maskColor.rgb=vec3(1.);float padding=0.22;maskColor=crop(maskColor,vUv,padding);vec3 mappedColor=mix(color,maskColor.rgb,maskColor.a);const vec3 frameColor=vec3(1.,1.,1.);float frame=ring(center,0.5,vStrokeWidth);mappedColor=mix(mappedColor,frameColor,frame);gl_FragColor=vec4(mappedColor,bgColor.a*alpha);}"},59039:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;attribute vec4 instanceMaskRect;attribute float instanceStrokeWidth;varying vec2 vUv;varying vec4 vMaskRect;varying float vStrokeWidth;\n#ifdef INSTANCED\nattribute mat4 instanceMatrix;attribute float instanceAlpha;attribute vec3 instanceColor;varying float alpha;varying vec3 color;\n#endif\nvoid main(){vUv=uv;vMaskRect=instanceMaskRect;vStrokeWidth=instanceStrokeWidth;\n#ifdef INSTANCED\nalpha=instanceAlpha;color=instanceColor;gl_Position=projectionMatrix*modelViewMatrix*instanceMatrix*vec4(position,1.);\n#else\ngl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n#endif\n}"},45550:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}varying vec2 vUv;void main(){float dist=length(vUv);float alpha=(1.-smoothstep(0.95,1.,dist))*0.3;gl_FragColor=vec4(1.,1.,1.,alpha);}"},98840:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;varying vec2 vUv;void main(){vUv=(uv*2.)-1.;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);gl_Position.z*=1.00001;}"},2834:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}\n#ifdef INSTANCED\nvarying float alpha;\n#else\nuniform float alpha;\n#endif\nvoid main(){gl_FragColor=vec4(1.,1.,1.,alpha);}"},65388:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;uniform vec2 resolution;\n#ifdef INSTANCED\nattribute mat4 instanceMatrix;attribute vec3 stemVector;attribute vec4 pinHeadMatrixCol0;attribute vec4 pinHeadMatrixCol1;attribute vec4 pinHeadMatrixCol2;attribute vec4 pinHeadMatrixCol3;attribute float instanceAlpha;varying float alpha;\n#else\nuniform mat4 pinHeadMatrix;\n#endif\n#define PI 3.1415926538\nvoid main(){\n#ifdef INSTANCED\nvec3 pos=position*stemVector;mat4 modelViewProjMatrix=projectionMatrix*modelViewMatrix*instanceMatrix;mat4 pinHeadMatrix=mat4(pinHeadMatrixCol0,pinHeadMatrixCol1,pinHeadMatrixCol2,pinHeadMatrixCol3);alpha=instanceAlpha;\n#else\nvec3 pos=position;mat4 modelViewProjMatrix=projectionMatrix*modelViewMatrix;\n#endif\nvec3 fromOrigin=(vec3(0.,0.,0.)-pos);if(length(fromOrigin)<1e-6){gl_Position=modelViewProjMatrix*vec4(pos,1.);}else{mat4 noteViewProj=projectionMatrix*viewMatrix*pinHeadMatrix;vec4 noteNDC=noteViewProj*vec4(0.,0.,0.,1.);noteNDC.xyz/=abs(noteNDC.w);vec4 discEdgeNDC=noteViewProj*vec4(0.5,0.,0.,1.);discEdgeNDC.xyz/=abs(discEdgeNDC.w);float noteSizeNDC=length(discEdgeNDC.xy-noteNDC.xy);vec4 anchorNDC=modelViewProjMatrix*vec4(0.,0.,0.,1.);anchorNDC.xyz/=abs(anchorNDC.w);vec4 vectorNDC=modelViewProjMatrix*vec4(pos,1.);vectorNDC.xyz/=abs(vectorNDC.w);vectorNDC-=anchorNDC;float lineLengthNDC=length(vectorNDC.xy);float vertDot=abs(dot(normalize(vectorNDC.xy),vec2(0,1)));float angle=acos(vertDot)/(PI/2.);float aspect=mix(resolution.x/resolution.y,1.,angle);vec2 vector2d=normalize(vectorNDC.xy)*max(lineLengthNDC-noteSizeNDC*aspect,0.);vectorNDC.xy=vector2d.xy;vectorNDC+=anchorNDC;gl_Position=vec4(vectorNDC.xyz,1.);}}"},74869:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}varying vec2 vUv;uniform sampler2D tDiffuse;\n#ifdef INSTANCED\nvarying float alpha;\n#else\nuniform float alpha;\n#endif\nvoid main(){vec4 texColor=texture2D(tDiffuse,vUv);gl_FragColor=vec4(texColor.rgb,texColor.a*alpha);}"},8203:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;\n#ifdef INSTANCED\nattribute mat4 instanceMatrix;attribute float instanceAlpha;varying float alpha;\n#endif\nvarying vec2 vUv;void main(){vUv=uv;\n#ifdef INSTANCED\nmat4 mvp=projectionMatrix*modelViewMatrix*instanceMatrix;alpha=instanceAlpha;\n#else\nmat4 mvp=projectionMatrix*modelViewMatrix;\n#endif\ngl_Position=mvp*vec4(position,1.);}"},67422:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}uniform vec3 color;uniform float opacity;void main(){gl_FragColor=vec4(color,opacity);}"},87208:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;void main(){gl_Position=vec4(position,1.);}"},71285:e=>{e.exports="precision highp float;precision highp int;uniform mat4 viewMatrix;uniform vec3 cameraPosition;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}uniform float opacity;uniform vec3 tint;uniform float discRadius;uniform vec3 discNormal;uniform mat4 projectionMatrix;uniform mat4 viewMatrixInverse;uniform mat4 projectionMatrixInverse;varying vec3 vFragWorldPos;varying vec3 vCenterWorldPos;\n#ifdef USE_TEXTURE\nuniform sampler2D texImg;\n#else\nuniform vec2 ringRadii[RING_COUNT];uniform vec4 ringColors[RING_COUNT];\n#endif\nfloat rayDistToPlane(vec3 rayOrigin,vec3 rayDir,vec3 planeOrigin,vec3 planeNormal){float planeConstant=-dot(planeOrigin,planeNormal);float denom=dot(planeNormal,rayDir);return denom==0.?-1e9:-(dot(rayOrigin,planeNormal)+planeConstant)/denom;}vec4 getColorAtRay(vec3 rayOrigin,vec3 rayDir){vec4 color=vec4(0.);float intersectDist=rayDistToPlane(rayOrigin,rayDir,vCenterWorldPos,discNormal);vec3 intersect=rayOrigin+rayDir*intersectDist;\n#ifdef USE_TEXTURE\nif(intersectDist>0.){vec3 cameraDir=normalize((viewMatrixInverse*vec4(0.,0.,-1.,0.)).xyz);vec3 stableDir=abs(dot(cameraDir,discNormal))>0.8?normalize(cameraDir*vec3(1.,0.,1.))*sign(discNormal.y):(viewMatrixInverse*vec4(0.,1.,0.,0.)).xyz;vec3 xAxis=normalize(cross(stableDir,discNormal));vec3 yAxis=normalize(cross(discNormal,xAxis));intersect-=vCenterWorldPos;vec2 uv=vec2(dot(xAxis,intersect),dot(yAxis,intersect))/discRadius/2.+0.5;if(clamp(uv,vec2(0.),vec2(1.))==uv){color=texture2D(texImg,uv);}}\n#else\nfloat fragRadius=intersectDist>0.?distance(intersect,vCenterWorldPos):1e9;if(fragRadius<=discRadius*2.){for(int i=0;i= 300\nfloat delta=length(vec2(dFdx(fragRadius),dFdy(fragRadius)))*0.70710678;ringColor.a*=smoothstep(-delta,delta,ringDist);\n#else\nringColor.a*=step(0.,ringDist);\n#endif\nfloat finalAlpha=color.a+ringColor.a*(1.-color.a);color=finalAlpha>0.?vec4((color.rgb*color.a+ringColor.rgb*ringColor.a*(1.-color.a))/finalAlpha,finalAlpha):color;}}\n#endif\ncolor.rgb*=tint;if(dot(rayDir,discNormal)>=0.){color.a=0.;}return color;}void main(){vec4 fragNDC=projectionMatrix*viewMatrix*vec4(vFragWorldPos,1.);vec4 nearWorldPos=viewMatrixInverse*projectionMatrixInverse*vec4(fragNDC.xy,-1.,1.);nearWorldPos/=nearWorldPos.w;gl_FragColor=getColorAtRay(nearWorldPos.xyz,normalize(vFragWorldPos-nearWorldPos.xyz));gl_FragColor.a*=opacity;if(gl_FragColor.a==0.){discard;}}"},99691:e=>{e.exports="precision highp float;precision highp int;uniform mat4 modelMatrix;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;uniform mat4 viewMatrix;uniform mat3 normalMatrix;uniform vec3 cameraPosition;attribute vec3 position;attribute vec3 normal;attribute vec2 uv;varying vec3 vCenterWorldPos;varying vec3 vFragWorldPos;void main(){vCenterWorldPos=(modelMatrix*vec4(0.,0.,0.,1.)).xyz;vFragWorldPos=(modelMatrix*vec4(position,1.)).xyz;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);}"},10086:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQyIiBoZWlnaHQ9IjE0MiIgdmlld0JveD0iMCAwIDE0MiAxNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04MiA4Mi41MDAxQzg1LjMzMzMgODIuMTY2NyA5Mi4zIDgyLjgwMDEgOTMuNSA4OC4wMDAxTTYwLjUgODIuMDczM0M1Ny4xNjY3IDgxLjc0IDUwLjIgODIuMzczMyA0OSA4Ny41NzMzTTM0Ljc2NjggNjcuMzI3NUMzNC43NjY4IDY3LjMyNzUgMzQuNzczIDY0LjgwOTQgMzcuMjg5IDY0LjgxNTZDMzkuODA5MSA2NC44MjM4IDM5LjgwMDkgNjcuMzQxOSAzOS44MDA5IDY3LjM0MTlMMzkuNzYxOCA3OS4wMjU3QzQwLjE2MjcgNzguODQwNyA0MC41ODIgNzguNjc0MiA0MS4wMjE5IDc4LjUzMDNMNDEuMDczMyA2Mi4zMTRDNDEuMDczMyA2Mi4zMTQgNDEuMDgxNSA1OS43OTYgNDMuNTk1NCA1OS44MDQyQzQ2LjExMTQgNTkuODEwMyA0Ni4xMDUzIDYyLjMzMDUgNDYuMTA1MyA2Mi4zMzA1TDQ2LjA2MjEgNzcuNTgyN0M0Ni40NzEyIDc3LjU0NTcgNDYuODkyNSA3Ny41MTY5IDQ3LjMxNiA3Ny40OTYzTDQ3LjM3MzUgNTkuODE0NUM0Ny4zNzM1IDU5LjgxNDUgNDcuMzc5NyA1Ny4yOTY0IDQ5Ljg5NzggNTcuMzA2N0M1Mi40MTU4IDU3LjMxNDkgNTIuNDA1NSA1OS44MzI5IDUyLjQwNTUgNTkuODMyOUw1Mi4zNDggNzcuNTEwN0M1Mi43Nzk3IDc3LjUzNTQgNTMuMTk0OSA3Ny41Nzg2IDUzLjYxMDEgNzcuNjE3Nkw1My42NjE1IDYxLjA5M0M1My42NjE1IDYxLjA5MyA1My42Njk3IDU4LjU3NDkgNTYuMTgzNyA1OC41ODUyQzU4LjY5OTcgNTguNTkxNCA1OC42ODk0IDYxLjEwNzQgNTguNjg5NCA2MS4xMDc0TDU4LjY0IDc4LjU4MTdMNTguNjMzOSA3OS45ODE1VjgxLjIzNzRMNTkuODg3OCA4Mi41MDM3TDYzLjU4OTggNzMuODk1QzYzLjU4OTggNzMuODk1IDY0LjQwMTggNzEuNTEyNiA2Ni43ODgzIDcyLjMyODdDNjkuMTY4NiA3My4xMzQ0IDY4LjM2MDggNzUuNTIxIDY4LjM2MDggNzUuNTIxTDY2LjUyNTIgODEuOTAzNUM2NS43OTc1IDg0LjQ0IDY1LjExNzEgODYuOTkzIDY0Ljc1OTQgODkuNTk5NEM2My43MzU4IDk2Ljk2NjYgNTcuMzk4NSAxMDIuNjMyIDQ5Ljc1NTkgMTAyLjYxMUM0MS40MjA3IDEwMi41NzYgMzQuNjc4NCA5NS43OTY5IDM0LjcwNTIgODcuNDYxN0MzNC43MDYgODcuMjc4NyAzNC43MDkzIDg2LjE5OTYgMzQuNzA5MyA4Ni4xOTk2TDM0Ljc2NjggNjcuMzI3NVpNMTA3LjIxMyA2Ny4zMjc1QzEwNy4yMTMgNjcuMzI3NSAxMDcuMjA3IDY0LjgwOTQgMTA0LjY5MSA2NC44MTU2QzEwMi4xNzEgNjQuODIzOCAxMDIuMTc3IDY3LjM0MTkgMTAyLjE3NyA2Ny4zNDE5TDEwMi4yMTYgNzkuMDI1N0MxMDEuODE3IDc4Ljg0MDcgMTAxLjM5NiA3OC42NzQyIDEwMC45NTggNzguNTMwM0wxMDAuOTA2IDYyLjMxNEMxMDAuOTA2IDYyLjMxNCAxMDAuODk4IDU5Ljc5NiA5OC4zODQyIDU5LjgwNDJDOTUuODY2MSA1OS44MTAzIDk1Ljg3MjMgNjIuMzMwNSA5NS44NzIzIDYyLjMzMDVMOTUuOTE3NSA3Ny41ODI3Qzk1LjUxMDUgNzcuNTQ1NyA5NS4wODkxIDc3LjUxNjkgOTQuNjYzNiA3Ny40OTYzTDk0LjYwODIgNTkuODE0NUM5NC42MDgyIDU5LjgxNDUgOTQuNTk5OSA1Ny4yOTY0IDkyLjA4MTkgNTcuMzA2N0M4OS41NjM4IDU3LjMxNDkgODkuNTc0MSA1OS44MzI5IDg5LjU3NDEgNTkuODMyOUw4OS42MzE2IDc3LjUxMDdDODkuMiA3Ny41MzU0IDg4Ljc4NDggNzcuNTc4NiA4OC4zNjk1IDc3LjYxNzZMODguMzE4MSA2MS4wOTNDODguMzE4MSA2MS4wOTMgODguMzA3OSA1OC41NzQ5IDg1Ljc5MzkgNTguNTg1MkM4My4yNzc5IDU4LjU5MTQgODMuMjg4MiA2MS4xMDc0IDgzLjI4ODIgNjEuMTA3NEw4My4zMzc1IDc4LjU4MTdMODMuMzQzNyA3OS45ODE1VjgxLjIzNzRMODIuMDkxOSA4Mi41MDM3TDc4LjM4OTggNzMuODk1Qzc4LjM4OTggNzMuODk1IDc3LjU3OTkgNzEuNTEyNiA3NS4xOTE0IDcyLjMyODdDNzIuODEzMSA3My4xMzQ0IDczLjYxODkgNzUuNTIxIDczLjYxODkgNzUuNTIxTDc1LjQ1NDUgODEuOTAzNUM3Ni4xODIxIDg0LjQ0IDc2Ljg2MjUgODYuOTkzIDc3LjIyMDIgODkuNTk5NEM3OC4yNDM5IDk2Ljk2NjYgODQuNTc5MSAxMDIuNjMyIDkyLjIyMzcgMTAyLjYxMUMxMDAuNTU5IDEwMi41NzYgMTA3LjMwMyA5NS43OTY5IDEwNy4yNzQgODcuNDYxN0MxMDcuMjc0IDg3LjI3ODcgMTA3LjI3IDg2LjE5OTYgMTA3LjI3IDg2LjE5OTZMMTA3LjIxMyA2Ny4zMjc1WiIgc3Ryb2tlPSIjMjIyMjIyIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTgyLjM4OTkgNTYuMjc0OEM4MS45NTIxIDU2LjI3NDggODEuNTA4MSA1Ni4xMzUgODEuMTM2IDU1Ljg0NzJDODAuMjM1NyA1NS4xNTI0IDgwLjA3MTMgNTMuODYxNiA4MC43NjYgNTIuOTYzM0w4Ni44ODk1IDQ1LjAzOTFDODcuNTc4MSA0NC4xNDI5IDg4Ljg3MzEgNDMuOTcwMiA4OS43NzE0IDQ0LjY2OTFDOTAuNjcxOCA0NS4zNjM5IDkwLjgzNjIgNDYuNjU0OCA5MC4xNDE0IDQ3LjU1MzFMODQuMDE3OSA1NS40NzcyQzgzLjYxNSA1Ni4wMDE0IDgzLjAwNjYgNTYuMjc0OCA4Mi4zODk5IDU2LjI3NDhaTTU5LjczNzcgNTYuMjc0OEM1OS4xMjMxIDU2LjI3NDggNTguNTE0NyA1NS45OTkzIDU4LjEwOTcgNTUuNDc1Mkw1MS45ODYyIDQ3LjU1MzFDNTEuMjkzNSA0Ni42NTQ4IDUxLjQ2IDQ1LjM2MzkgNTIuMzU4MyA0NC42NjkxQzUzLjI1NjUgNDMuOTc2NCA1NC41NDU0IDQ0LjE0MDggNTUuMjQyMiA0NS4wMzkxTDYxLjM2NTcgNTIuOTYzM0M2Mi4wNTg0IDUzLjg2MTYgNjEuODk0IDU1LjE1MjQgNjAuOTk1NyA1NS44NDcyQzYwLjYxOTUgNTYuMTM3MSA2MC4xNzc2IDU2LjI3NDggNTkuNzM3NyA1Ni4yNzQ4Wk03MS4wMDAxIDUyLjMzMzNDNjkuODY1NCA1Mi4zMzMzIDY4Ljk0NDUgNTEuNDEyNCA2OC45NDQ1IDUwLjI3NzhWNDIuMDU1NkM2OC45NDQ1IDQwLjkyMDkgNjkuODY1NCA0MCA3MS4wMDAxIDQwQzcyLjEzNjggNDAgNzMuMDU1NiA0MC45MjA5IDczLjA1NTYgNDIuMDU1NlY1MC4yNzc4QzczLjA1NTYgNTEuNDEyNCA3Mi4xMzY4IDUyLjMzMzMgNzEuMDAwMSA1Mi4zMzMzWiIgZmlsbD0iIzIyMjIyMiIvPgo8L3N2Zz4K"},28659:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMTI3Ljk4MzI1bW0iCiAgIGhlaWdodD0iMTI1Ljg3MDg0bW0iCiAgIHZpZXdCb3g9IjAgMCAxMjcuOTgzMjUgMTI1Ljg3MDg0IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczOSIKICAgc29kaXBvZGk6ZG9jbmFtZT0icm90YXRlLXBob25lLWZhbGxiYWNrLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4xLjIgKGI4ZTI1YmU4LCAyMDIyLTAyLTA1KSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9Im5hbWVkdmlldzQxIgogICAgIHBhZ2Vjb2xvcj0iIzUwNTA1MCIKICAgICBib3JkZXJjb2xvcj0iI2VlZWVlZSIKICAgICBib3JkZXJvcGFjaXR5PSIxIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAiCiAgICAgaW5rc2NhcGU6cGFnZWNoZWNrZXJib2FyZD0iMCIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0ibW0iCiAgICAgc2hvd2dyaWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnNuYXAtcGFnZT0iZmFsc2UiCiAgICAgaW5rc2NhcGU6em9vbT0iMC4zMTUxMjI4MSIKICAgICBpbmtzY2FwZTpjeD0iMTc5LjI5NTE4IgogICAgIGlua3NjYXBlOmN5PSI4MDcuNjIxNjMiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxODY0IgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9IjEzODciCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjI1IgogICAgIGlua3NjYXBlOndpbmRvdy1tYXhpbWl6ZWQ9IjAiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIGZpdC1tYXJnaW4tdG9wPSIwIgogICAgIGZpdC1tYXJnaW4tbGVmdD0iMCIKICAgICBmaXQtbWFyZ2luLXJpZ2h0PSIwIgogICAgIGZpdC1tYXJnaW4tYm90dG9tPSIwIiAvPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMzNiIgLz4KICA8ZwogICAgIGlua3NjYXBlOmxhYmVsPSJMYXllciAxIgogICAgIGlua3NjYXBlOmdyb3VwbW9kZT0ibGF5ZXIiCiAgICAgaWQ9ImxheWVyMSIKICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNC4yOTI2NzM1LC00LjM5MzAzMTgpIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDowLjI2NDU4MyIKICAgICAgIGQ9Im0gNzIuODIwNTc2LDEyOC4yOTE4IGMgMTEuNzczNzksLTEuMDg5ODggMjEuODgzMTQsLTIuMDUzIDIyLjQ2NTIyLC0yLjE0MDI4IDIuNzI3MzIsLTAuNDA4OTEgNS41ODUwNTQsLTIuNDkxMTIgNi45MzU4NDQsLTUuMDUzNjIgMS42NTQ0MiwtMy4xMzg1MyAxLjkwMTYxLDAuOTY5MTcgLTMuMzYyNTI0LC01NS44NzY4NCAtMi42MjI4MSwtMjguMzIzMTM0IC00Ljg4OTU0LC01Mi4wODEwODggLTUuMDM3MTYsLTUyLjc5NTQ1MyAtMC40MjQwNiwtMi4wNTIwNjEgLTEuMTc3NjcsLTMuNDgzMTc4IC0yLjY1ODk4LC01LjA0OTQ0MyAtMS44Nzk1OCwtMS45ODczNzMgLTMuNzI1MjUsLTIuODM4OTAyIC02LjQ2MDUxLC0yLjk4MDY1NSAtMi4xODE4MiwtMC4xMTMwNyAtNDQuMzU4MzA4LDMuNjc5NjUyIC00Ni42ODc4ODgsNC4xOTg0MTMgLTMuNjY2OSwwLjgxNjU1NCAtNi42MTY4MSw0LjAxNTg5MyAtNy40Mjk1LDguMDU3NjkyIC0wLjI4NjMsMS40MjM4NzEgMC4xMzMwOSw2LjQwNzcwMiA0LjQ4NDkzLDUzLjI5Njc4NiAyLjc3MDM3LDI5Ljg0OTQ4IDQuOTYzNzUsNTIuMjg1NTUgNS4xODYxNCw1My4wNDg5NiAxLjI2OTk5LDQuMzU5NzEgNS4wMDQzNCw3LjI0MjM3IDkuNDEzMzksNy4yNjY0OSAwLjk1OTI4LDAuMDA1IDExLjM3NzI0OCwtMC44ODIxNyAyMy4xNTEwMzgsLTEuOTcyMDUgeiBtIC0yMy43MDQ1NjgsLTAuOTYwNTMgYyAtMC44MDAzNywtMC4wOTQgLTEuNzY5NCwtMC4yOTU5NSAtMi4xNTM0MiwtMC40NDg3NiAtMS42NjUxMiwtMC42NjI1OCAtMy42ODM1LC0zLjEzNTk2IC00LjAzNDA3LC00Ljk0MzQ4IC0wLjA4NDcsLTAuNDM2NTcgLTIuMzA2NDgsLTI0LjA0NCAtNC45MzczNywtNTIuNDYwOTcgLTQuNjUxMjQsLTUwLjIzOTQwNiAtNC43NzIwNCwtNTEuNzA2MzkzIC00LjM3MTI4LC01My4wODQ5NTcgMC41MzgyMSwtMS44NTEzOTUgMi4zMTU1MywtMy44NTE5NDQgNC4xMDY2NywtNC42MjI0NzIgMS4xNTI0MiwtMC40OTU3NTggNC4xNTk3MSwtMC44MzE3MSAyMi45NjAzODgsLTIuNTY0OTY5IDExLjkzMzE4LC0xLjEwMDEzNCAyMi41MzM0MiwtMS45NTc4ODIgMjMuNjM5NDMsLTEuOTEyODUgMS42ODU5NSwwLjA2ODY0IDIuMjEyNDIsMC4yMDkyMjIgMy4zMDcyOSwwLjg4MzEgMS40MjIzMSwwLjg3NTQxNiAyLjg2MzMsMi43NzY4NDQgMy4yNzEwNyw0LjMxNjI4NSAwLjM0Mzk4LDEuMjk4NTg5IDkuNTQwNDY0LDEwMS4yODQzMDMgOS41NDA0NjQsMTAzLjcyNTUwMyAwLDMuMjUwMzcgLTEuMzQxODg0LDUuMzM3MDggLTQuMjYyOTk0LDYuNjI5MjIgLTAuOTk3MjksMC40NDExNSAtNC42OTc5NiwwLjg1MTA3IC0yMi43Mzk2LDIuNTE4ODYgLTExLjg1MTY1LDEuMDk1NTggLTIxLjg0NjEwOCwyLjAyNDQ3IC0yMi4yMDk5MDgsMi4wNjQxOSAtMC4zNjM4MSwwLjAzOTcgLTEuMzE2MzEsLTAuMDA1IC0yLjExNjY3LC0wLjA5ODcgeiBtIDIzLjU0NzkxOCwtOS4xMDY2OSBjIDUuNzQ4MDcsLTAuNTE1OTQgMTAuNzE1NjUsLTEuMDQ4MDcgMTEuMDM5MDUsLTEuMTgyNTEgMC44NzI2MywtMC4zNjI3MyAxLjA2OTAxLC0xLjUwMTExIDAuMzc4MTQsLTIuMTkxOTkgbCAtMC41NTg1LC0wLjU1ODUgLTExLjkxMzY3LDEuMTAzNTIgYyAtNi41NTI1MiwwLjYwNjk0IC0xMi4xNTA4OCwxLjIzMDQ3IC0xMi40NDA4LDEuMzg1NjQgLTAuMzI5ODYsMC4xNzY1MyAtMC41MjU2MiwwLjU1MDkzIC0wLjUyMzA5LDEuMDAwNDEgMC4wMDcsMS4zMjg2NSAwLjU2NDk5LDEuNjgwNDMgMi4zNzcyLDEuNTAwMDQgMC42NTQ4NCwtMC4wNjUyIDUuODkzNTksLTAuNTQwNjYgMTEuNjQxNjcsLTEuMDU2NjEgeiBtIC04Ljc0ODQ5LC05OS4xOTMyMjIgYyAyLjg0NjU2LC0wLjI4NDQ4NyAzLjYyMzk1LC0wLjQ1MDA0NSAzLjkwMjYsLTAuODMxMTI3IDAuNDkzMywtMC42NzQ2MzIgMC40MzE5OCwtMS4yNzUwMzMgLTAuMTg3NSwtMS44MzU2NSAtMC41MDQxMywtMC40NTYyMzIgLTAuNzcxMjMsLTAuNDY1NTY5IC00LjU2NDA2LC0wLjE1OTU0NyAtMi4yMTU3MywwLjE3ODc3NCAtNC40MjIzMiwwLjM5MjkwNyAtNC45MDM1NCwwLjQ3NTg1NCAtMS41OTkzOCwwLjI3NTY3NyAtMi4xMzE1MiwyLjE5MjgxMyAtMC43NTU0MywyLjcyMTYxOCAwLjMxNDYyLDAuMTIwOSAxLjEwNzgyLDAuMTY2NzggMS43NjI2NywwLjEwMTk2IDAuNjU0ODQsLTAuMDY0OCAyLjc5MDIxLC0wLjI3NzcxOCA0Ljc0NTI2LC0wLjQ3MzEwOCB6IE0gMjcuMzI1NjQ4LDEwMC4yMjI2OSBjIDAuNTYyNDUsLTAuODU4NDEgMC4yNDY0LC0xLjkzNzk1IC0wLjcwMjcyLC0yLjQwMDMzIEMgMjYuMjYxMDQ4LDk3LjY0NjA3IDI0LjU5NTc0OCw5Ni44NDc2IDIyLjkyMjI1OCw5Ni4wNDggMTUuMDI1NDQ4LDkyLjI3NDg0IDkuODgwOTc4Miw4NS41NTcyOCA4LjIwMjc2ODIsNzYuODI3NTcgYyAtMC41MDMwOSwtMi42MTY5NyAtMC40ODYzMSwtNy44ODYwMiAwLjAzMzEsLTEwLjQwMDczIDEuMzM1MTUsLTYuNDYzODUgNC45Njk3ODk4LC0xMi4zMzI3ODUgOS45ODc4Mzk4LC0xNi4xMjc1NjUgMy42OTUyNiwtMi43OTQ0NSAzLjYwNDczLC0yLjg3NDE1IDEuNjIzNzgsMS40Mjk1MSAtMi43OTc4Nyw2LjA3ODQ4IC0zLjA2MDU4LDYuNzg0MDcgLTIuNzQ1MjUsNy4zNzMyNiAwLjU3MDI4LDEuMDY1NTg1IDIuMDA4NTMsMS4zODAzMzUgMi43MTMyMSwwLjU5Mzc1NSAwLjU1MTg1LC0wLjYxNTk4NSA3LjA3NTU0LC0xNC44MzcwMTUgNy4wNzU1NCwtMTUuNDI0MDA1IDAsLTAuMjUyMTggLTAuMjA4MzYsLTAuNzAxNzIgLTAuNDYzMDIsLTAuOTk4OTggLTAuNDc1OTcsLTAuNTU1NTY5IC0xNC43MjQ2MywtNy4xOTEwNjkgLTE1LjQ0MTY2LC03LjE5MTA2OSAtMS4yMDEwNTk4LDAgLTIuMDU4NTg5OCwyLjE2NTQzIC0xLjE1NDYyOTgsMi45MTU2NSAwLjIyMTc0OTgsMC4xODQwNCAyLjc5MTUwOTgsMS40MzQ4MiA1LjcxMDU3OTgsMi43Nzk1MSA0LjE3Mzk0LDEuOTIyNzQ5IDUuMjMyMDUsMi41MTAxNzkgNC45NTQ2MiwyLjc1MDYxOSAtMC4xOTQwMiwwLjE2ODE2IC0xLjI1OTUzLDAuODkyODUgLTIuMzY3OCwxLjYxMDQyIC02LjczOTI0LDQuMzYzNDMgLTExLjY0NTcxOTgsMTEuNjUyMjggLTEzLjM2NDg0OTgsMTkuODU0MjU1IC0wLjU3MjkxLDIuNzMzMzggLTAuNjM0OTUsOC4yNTQwNCAtMC4xMjQ3NCwxMS4wOTk5NSAxLjY3Mjg0LDkuMzMwODEgNy43NzI3ODk4LDE3LjYwMDM5IDE2LjEwNTE4OTgsMjEuODMzNDcgNC4yMjAzNywyLjE0NDA1IDUuODE5NDcsMi40NTkyMiA2LjU4MDk1LDEuMjk3MDcgeiBtIDk5LjMxMzI4MiwtNC42MDk3MSBjIDAuNzIwMTIsLTAuNzIwMTEgMC42NjkwNywtMS43NTIwOSAtMC4xMjE2OCwtMi40NjAwMiAtMC4zNTc5NiwtMC4zMjA0OCAtMi44NTgyNywtMS41ODUzMiAtNS41NTYyNSwtMi44MTA3OCAtMi42OTc5NywtMS4yMjU0NSAtNC45MDU0MSwtMi4zMTgzMiAtNC45MDU0MSwtMi40Mjg2IDAsLTAuMTEwMjcgMC45MjI3NCwtMC43NzI0OCAyLjA1MDUzLC0xLjQ3MTU2IDIuNDEyNTQsLTEuNDk1NDYgNy4zOTk2NiwtNi4zMzg2MiA4LjkxMjg3LC04LjY1NTU3IDIuMzI0NTIsLTMuNTU5MiAzLjkxNDQ2LC03LjQxNjc4IDQuODExNzUsLTExLjY3NDUxIDAuNTM4NTcsLTIuNTU1NTUgMC42MDAwMiwtNy45MjM5NTUgMC4xMjExNCwtMTAuNTgzMzI1IC0xLjgwNDAyLC0xMC4wMTgzOSAtNy44NDI5NSwtMTguMDk4ODk5IC0xNi44OTM3NiwtMjIuNjA1MDY5IC0zLjY0Mzg4LC0xLjgxNDIgLTUuMTYwNzcsLTIuMDE5NzEgLTUuODQ3MzksLTAuNzkyMjIgLTAuNzMxNCwxLjMwNzU2IC0wLjI4MDQ4LDEuOTA2OTQgMi4yNzQ2NSwzLjAyMzU1IDYuMTI1NzQsMi42NzY5OCAxMC4wMDMzNCw1LjkwNDc1IDEzLjIxMTM5LDEwLjk5NzMzOSAyLjYwOTc2LDQuMTQyODQgMy43OTcyMyw4LjEyNDU1IDMuOTg3NjYsMTMuMzcxMDcgMC4xOTUxMiw1LjM3NTY2NSAtMC41NzcyLDguODY3NDE1IC0zLjAxNjE2LDEzLjYzNjM4NSAtMS4yMTkzNCwyLjM4NDIxIC00LjYzOTU0LDYuNzQ0OTkgLTYuMjU4OSw3Ljk4MDEzIC0wLjUwOTcsMC4zODg3NiAtMS4wODU4NSwwLjg1NzY4IC0xLjI4MDM1LDEuMDQyMDQgLTAuNjc2NjksMC42NDE0MiAtMi42NTIxMSwxLjgyODE1IC0yLjc5ODg2LDEuNjgxNDEgLTAuMDgxMiwtMC4wODEyIDAuODgxOTEsLTIuMzY2NDcgMi4xNDAzNCwtNS4wNzgyOSAyLjA5Nzg3LC00LjUyMDc1IDIuMjYwNTYsLTQuOTg3OTMgMS45NTczMSwtNS42MjA2NCAtMC40ODk2MywtMS4wMjE1OSAtMS42MTA5MSwtMS4zMzQ1NyAtMi40NjI5OSwtMC42ODc0OSAtMC43NjM0NSwwLjU3OTc4IC03LjI1OTIzLDE0LjUwNDE1IC03LjI1OTIzLDE1LjU2MDkxIDAsMC4zMzc3NCAwLjIyNjIxLDAuODE4NzggMC41MDI2OSwxLjA2ODk4IDAuNzA2NzMsMC42Mzk1OSAxNC41ODE5OCw3LjAwNDc1IDE1LjMwNjE3LDcuMDIxNTkgMC4zMjc0MiwwLjAwOCAwLjgzMzQ0LC0wLjIyNDI4IDEuMTI0NDgsLTAuNTE1MzMgeiIKICAgICAgIGlkPSJwYXRoMTA5IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJzc3Nzc3Nzc3NzY2NzY3Nzc3Nzc3Nzc3Nzc3Njc3NzY3NzY3Nzc3Nzc3Nzc3Nzc2NzY3Nzc3Nzc3Nzc3Nzc2Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3NzY3MiIC8+CiAgPC9nPgo8L3N2Zz4K"},8241:(e,t,i)=>{"use strict";e.exports=i.p+"images/escape.png"},51:(e,t,i)=>{"use strict";e.exports=i.p+"images/headset-quest-2.png"},54322:(e,t,i)=>{"use strict";e.exports=i.p+"images/Desktop-help-play-button.svg"},28301:(e,t,i)=>{"use strict";e.exports=i.p+"images/Desktop-help-spacebar.png"},63083:(e,t,i)=>{"use strict";e.exports=i.p+"images/matterport-logo-light.svg"},65224:(e,t,i)=>{"use strict";e.exports=i.p+"images/mattertag-disc-128-free.v1.png"},23672:(e,t,i)=>{"use strict";e.exports=i.p+"images/mobile-help-play-button.svg"},94246:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_360.png"},53228:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_click_inside.png"},99713:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag.png"},45894:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag.svg"},99484:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger.png"},62979:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger_rotate.svg"},40783:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger_vert.svg"},13179:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_pinch.png"},58780:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_pinch.svg"},96558:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_position.png"},60497:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_position_two_finger.png"},50968:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_tap.png"},64727:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_tap.svg"},34715:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_inside_key.png"},64268:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_all.png"},31873:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_left_right.png"},88691:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_up_down.png"},16391:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_click.png"},11400:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_click.svg"},61273:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_ctrl_click.png"},46997:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_left.png"},2710:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right.png"},38826:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right_horiz.svg"},5293:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right_vert.svg"},56048:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_left.png"},45663:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_left.svg"},85893:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_right.png"},93582:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_zoom.png"},713:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_zoom.svg"},68117:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_tap_inside.png"},35235:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_zoom_keys.png"},68909:e=>{"use strict";e.exports=THREE},32244:e=>{"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":60,"w":876,"h":744,"nm":"Rating Modal","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Vector 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[437.969,578.877,0],"to":[0,-8.167,0],"ti":[0,8.167,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[437.969,529.877,0],"to":[0,0,0],"ti":[0,0,0]},{"t":25,"s":[437.969,529.877,0]}],"ix":2},"a":{"a":0,"k":[0,51.205,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.83,0.808,0.833],"y":[1.233,0.833,0.35]},"o":{"x":[0.283,0.284,0],"y":[-0.056,-0.064,0]},"t":0,"s":[176.81,195.773,100]},{"i":{"x":[0.564,0.562,0.794],"y":[3.244,0.849,2.131]},"o":{"x":[0.466,0.473,0.167],"y":[-4.295,-0.161,0.141]},"t":23,"s":[207.791,222.842,100]},{"t":28,"s":[207.791,207.791,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.52,0.008],[0,0],[0,0],[0.001,-0.183],[-8.335,-0.035],[-1.024,7.367],[-0.728,2.537],[0,0],[2.38,0.806],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[2.516,0.006],[0,0],[0,0],[0.432,0.025],[0,0],[2.518,0.008],[0,0],[0,0],[0.409,-0.037],[0,0],[2.516,0.006],[0,0],[0,0],[0.401,-0.185],[0,0]],"o":[[-2.516,-0.006],[0,0],[0,0],[-0.027,8.335],[7.643,0.021],[0.358,-2.606],[0,0],[0,0],[-2.387,-0.816],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.514,-0.01],[0,0],[-0.415,-0.039],[0,0],[0,0],[-2.518,-0.01],[0,0],[-0.423,0.021],[0,0],[0,0],[-2.514,-0.008],[0,0],[-0.44,0.144],[0,0],[0,0]],"v":[[-33.701,-15.143],[-36.223,-12.631],[-36.281,6.241],[-36.285,7.503],[-21.234,22.652],[-6.23,9.641],[-4.465,1.945],[-2.629,-4.438],[-4.202,-7.63],[-7.4,-6.064],[-11.102,2.545],[-12.356,1.279],[-12.356,0.023],[-12.35,-1.377],[-12.3,-18.852],[-14.806,-21.374],[-17.328,-18.866],[-17.38,-2.341],[-18.642,-2.448],[-18.584,-20.126],[-21.092,-22.652],[-23.616,-20.144],[-23.674,-2.463],[-24.928,-2.376],[-24.885,-17.628],[-27.394,-20.155],[-29.917,-17.645],[-29.968,-1.429],[-31.228,-0.933],[-31.189,-12.617]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-2.52,0.008],[0,0],[0,0],[-0.001,-0.183],[8.335,-0.035],[1.024,7.367],[0.728,2.537],[0,0],[-2.378,0.806],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.516,0.006],[0,0],[0,0],[-0.432,0.025],[0,0],[-2.518,0.008],[0,0],[0,0],[-0.407,-0.037],[0,0],[-2.518,0.006],[0,0],[0,0],[-0.399,-0.185],[0,0]],"o":[[2.516,-0.006],[0,0],[0,0],[0.029,8.335],[-7.645,0.021],[-0.358,-2.606],[0,0],[0,0],[2.389,-0.816],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[2.514,-0.01],[0,0],[0.415,-0.039],[0,0],[0,0],[2.518,-0.01],[0,0],[0.426,0.021],[0,0],[0,0],[2.514,-0.008],[0,0],[0.438,0.144],[0,0],[0,0]],"v":[[33.701,-15.143],[36.223,-12.631],[36.281,6.241],[36.285,7.503],[21.234,22.652],[6.23,9.641],[4.465,1.945],[2.629,-4.438],[4.202,-7.63],[7.4,-6.064],[11.102,2.545],[12.354,1.279],[12.354,0.023],[12.348,-1.377],[12.298,-18.852],[14.804,-21.374],[17.328,-18.866],[17.38,-2.341],[18.642,-2.448],[18.584,-20.126],[21.092,-22.652],[23.618,-20.144],[23.674,-2.463],[24.928,-2.376],[24.882,-17.628],[27.394,-20.155],[29.917,-17.645],[29.968,-1.429],[31.226,-0.933],[31.187,-12.617]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[3.333,-0.333]],"o":[[-1.2,-5.2],[0,0]],"v":[[22.51,8.041],[11.01,2.541]],"c":false},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[-3.333,-0.333]],"o":[[1.2,-5.2],[0,0]],"v":[[-21.99,7.614],[-10.49,2.114]],"c":false},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,0.192156862745,0.345098039216,1]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":19,"s":[1,0.192156862745,0.345098039216,1]},{"t":26,"s":[0.133333333333,0.133333333333,0.133333333333,1]}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Vector","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"t":27,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[435.195,196.412,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":23,"s":[209.366,209.366,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":31,"s":[257.214,257.214,100]},{"t":35,"s":[209.366,209.366,100]}],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[{"i":[[33.137,0],[0,-33.137],[-33.137,0],[0,33.137]],"o":[[-33.137,0],[0,33.137],[33.137,0],[0,-33.137]],"v":[[-0.955,14.988],[-60.955,74.988],[-0.955,134.988],[59.045,74.988]],"c":true}]},{"t":31,"s":[{"i":[[47.354,0],[0,-47.354],[-47.354,0],[0,47.354]],"o":[[-47.354,0],[0,47.354],[47.354,0],[0,-47.354]],"v":[[0.906,-36.975],[-84.837,48.768],[0.906,134.511],[86.648,48.768]],"c":true}]}],"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.9,-0.695],[-0.438,0],[-0.403,0.524],[0,0],[0.9,0.695],[0.689,-0.896],[0,0]],"o":[[0.372,0.288],[0.617,0],[0,0],[0.695,-0.898],[-0.898,-0.699],[0,0],[-0.695,0.898]],"v":[[10.071,7.71],[11.325,8.137],[12.953,7.34],[19.076,-0.584],[18.706,-3.468],[15.825,-3.098],[9.701,4.826]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-0.615,0],[-0.376,0.29],[0.693,0.898],[0,0],[0.898,-0.693],[-0.693,-0.898]],"o":[[0.405,0.524],[0.44,0],[0.898,-0.695],[0,0],[-0.697,-0.898],[-0.898,0.695],[0,0]],"v":[[-12.955,7.338],[-11.327,8.137],[-10.069,7.71],[-9.699,4.826],[-15.823,-3.098],[-18.707,-3.468],[-19.079,-0.584]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[-1.135,0],[0,1.135],[0,0],[1.137,0],[0,-1.135]],"o":[[0,1.135],[1.137,0],[0,0],[0,-1.135],[-1.135,0],[0,0]],"v":[[-2.12,2.14],[-0.065,4.196],[1.991,2.14],[1.991,-6.082],[-0.065,-8.137],[-2.12,-6.082]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.131453797221,0.131453797221,0.131453797221,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":23,"op":253,"st":-47,"bm":0}],"markers":[]}')},2377:e=>{"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":120,"w":250,"h":250,"nm":"Comp 1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":3,"nm":"▽ phone","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125,106.5,0],"ix":2},"a":{"a":0,"k":[55.5,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":3,"nm":"▽ Group 2","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,20.039,0],"ix":2},"a":{"a":0,"k":[10.091,2.506,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Vector","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[10.091,2.506,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.462,0],[0,0],[0,0.459],[0.462,0],[0,0],[0,-0.459]],"o":[[0,0],[0.462,0],[0,-0.459],[0,0],[-0.462,0],[0,0.459]],"v":[[-2.523,0.835],[2.523,0.835],[3.364,0],[2.523,-0.835],[-2.523,-0.835],[-3.364,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":3,"nm":"▽ Group 2","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,192.952,0],"ix":2},"a":{"a":0,"k":[22.705,2.506,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Vector","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[22.705,2.506,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.462,0],[0,0],[0,0.459],[0.462,0],[0,0],[0,-0.459]],"o":[[0,0],[0.462,0],[0,-0.459],[0,0],[-0.462,0],[0,0.459]],"v":[[-6.727,0.835],[6.727,0.835],[7.568,0],[6.727,-0.835],[-6.727,-0.835],[-7.568,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":3,"nm":"▽ Group","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,106.5,0],"ix":2},"a":{"a":0,"k":[55.5,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Vector","parent":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,106.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.246,0],[0,0],[0,3.224],[0,0],[3.246,0],[0,0],[0,-3.224],[0,0]],"o":[[0,0],[3.246,0],[0,0],[0,-3.224],[0,0],[-3.246,0],[0,0],[0,3.224]],"v":[[-12.614,35.5],[12.614,35.5],[18.5,29.653],[18.5,-29.653],[12.614,-35.5],[-12.614,-35.5],[-18.5,-29.653],[-18.5,29.653]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-2.321,0],[0,0],[0,-2.305],[0,0],[2.321,0],[0,0],[0,2.305]],"o":[[0,-2.305],[0,0],[2.321,0],[0,0],[0,2.305],[0,0],[-2.321,0],[0,0]],"v":[[-16.818,-29.653],[-12.614,-33.829],[12.614,-33.829],[16.818,-29.653],[16.818,29.653],[12.614,33.829],[-12.614,33.829],[-16.818,29.653]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":3,"ty":4,"nm":"Ellipse 19 (Stroke) 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":1,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[40.962,100.923,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.155,0.911],[-3.096,-1.097],[-1.899,-2.704],[-0.392,-2.375],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.391,0.391],[0,0],[0.391,0.391],[0.391,-0.391],[0,0],[1.7,2.42],[3.49,1.237],[3.557,-1.027],[2.311,-2.91],[-0.432,-0.344],[-0.344,0.432]],"o":[[3.155,-0.911],[3.097,1.097],[1.392,1.982],[0,0],[-0.391,-0.391],[-0.391,0.391],[0,0],[0.391,0.391],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.368,-2.918],[-2.137,-3.042],[-3.49,-1.237],[-3.557,1.027],[-0.344,0.432],[0.432,0.344],[2.054,-2.586]],"v":[[-9.391,-6.883],[0.218,-6.597],[7.898,-0.754],[10.602,5.87],[6.161,1.429],[4.747,1.429],[4.747,2.843],[11.111,9.207],[12.525,9.207],[18.889,2.843],[18.889,1.429],[17.475,1.429],[12.675,6.228],[9.534,-1.904],[0.886,-8.482],[-9.946,-8.805],[-18.965,-2.753],[-18.804,-1.348],[-17.399,-1.509]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-15,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 19 (Stroke)","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Ellipse 19 (Stroke)","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":1,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[213.962,108.423,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.155,0.911],[-3.096,-1.097],[-1.899,-2.704],[-0.392,-2.375],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.391,0.391],[0,0],[0.391,0.391],[0.391,-0.391],[0,0],[1.7,2.42],[3.49,1.237],[3.557,-1.027],[2.311,-2.91],[-0.432,-0.344],[-0.344,0.432]],"o":[[3.155,-0.911],[3.097,1.097],[1.392,1.982],[0,0],[-0.391,-0.391],[-0.391,0.391],[0,0],[0.391,0.391],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.368,-2.918],[-2.137,-3.042],[-3.49,-1.237],[-3.557,1.027],[-0.344,0.432],[0.432,0.344],[2.054,-2.586]],"v":[[-9.391,-6.883],[0.218,-6.597],[7.898,-0.754],[10.602,5.87],[6.161,1.429],[4.747,1.429],[4.747,2.843],[11.111,9.207],[12.525,9.207],[18.889,2.843],[18.889,1.429],[17.475,1.429],[12.675,6.228],[9.534,-1.904],[0.886,-8.482],[-9.946,-8.805],[-18.965,-2.753],[-18.804,-1.348],[-17.399,-1.509]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-15,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 19 (Stroke)","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Phone","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[5]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74,"s":[100]},{"t":79,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-90]},{"t":46,"s":[0]}],"ix":10},"p":{"a":0,"k":[127.49999999999999,131,0],"ix":2},"a":{"a":0,"k":[125,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":250,"h":213,"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Rotate","refId":"comp_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[5]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":51,"s":[100]},{"t":57,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-90]},{"t":46,"s":[0]}],"ix":10},"p":{"a":0,"k":[127.49999999999999,131,0],"ix":2},"a":{"a":0,"k":[125,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":250,"h":213,"ip":0,"op":80,"st":0,"bm":0}],"markers":[]}')}},e=>{e.O(0,[8893,654,7758,8474],(()=>{return t=8461,e(e.s=t);var t}));e.O()}]);