@bimdata/viewer 2.3.0-beta.1 → 2.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1867,8 +1867,8 @@ end`};e.events.push(["putFont",function(n){(function(s){var a=s.font,l=s.out,c=s
|
|
|
1867
1867
|
--bimdata-local-context-width: ${o.width}px;
|
|
1868
1868
|
--bimdata-local-context-center-width: ${o.centerWidth}px;
|
|
1869
1869
|
--bimdata-local-context-resolution: ${o.resolution};
|
|
1870
|
-
`),onMouseenter:e[0]||(e[0]=(...h)=>o.onMouseEnter&&o.onMouseEnter(...h)),onMouseleave:e[1]||(e[1]=(...h)=>o.onMouseLeave&&o.onMouseLeave(...h))},[O(s,{ref:"modalManagerTemplateRef"},null,512),v("div",$zi,[o.windowPlugins.leftSidePanel?(D(),oe(a,{key:0,plugin:o.windowPlugins.leftSidePanel},null,8,["plugin"])):Ie("",!0),v("div",ePi,[(D(!0),U(Mt,null,Xt(o.windowPlugins.free,h=>(D(),oe(l,{key:h.name,class:be({"window-container__content__center__viewer":h.isViewer}),plugin:h},null,8,["class","plugin"]))),128)),O(c,{position:"left",plugins:o.windowPlugins.leftButtonColumn},null,8,["plugins"]),O(c,{position:"right",plugins:o.windowPlugins.rightButtonColumn},null,8,["plugins"])]),o.windowPlugins.rightSidePanel?(D(),oe(a,{key:1,plugin:o.windowPlugins.rightSidePanel},null,8,["plugin"])):Ie("",!0)]),o.loading?(D(),U("div",tPi,[o.spinner&&o.spinner.component?(D(),oe(Er(o.spinner.component),Eu(nl({key:0},o.spinner.props)),null,16)):(D(),oe(u,{key:1,size:"20px",border:"3px"}))])):Ie("",!0),o.layoutSettingsDisplayed?(D(),U("div",iPi,[O(d)])):Ie("",!0)],36)}const rPi=W(Xzi,[["render",oPi]]);class sPi{constructor(e=!0){const i=ZEi(KQ,null,{resizable:e});i.registerContent("default",rPi),this.settings=ya({edit:!1,swap:!1,full:!1}),this.areas=i}get resizable(){return this.areas.resizable}set resizable(e){this.areas.resizable=e}apply(e=null){this.areas.layout=e?JEi(e):null}copy(e){return WEi(this.areas.layout,e)}open({ratio:e,direction:i,insertAfter:o,windowName:r=null,windowState:n=null,localContextId:s=null}={}){const a=r?{options:{windowName:r,windowState:n}}:null;return s===null?this.areas.splitLayout(e,i,o,a):this.areas.split(s,e,i,o,a)}swap(e,i){return this.areas.swap(e,i)}close(e){return this.areas.delete(e)}}const nPi="@bimdata/viewer",aPi="module",lPi="2.3.0-beta.1",cPi="A customizable BIM viewer.",uPi=["bim","viewer","bimdata","ifc","bcf"],dPi="./index.d.ts",hPi="BIMData.io",pPi="https://developers.bimdata.io/viewer/index.html",APi={email:"support@bimdata.io"},gPi=["last 2 chrome version","last 2 firefox version"],MPi="dist/bimdata-viewer.esm.min.js",fPi="dist/bimdata-viewer.esm.min.js",wPi={build:"vite build && esbuild dist/bimdata-viewer.esm.min.js --minify --outfile=dist/bimdata-viewer.esm.min.js --allow-overwrite","build:split":"vite build -c vite.config.split.js && esbuild dist/bimdata-viewer-split.esm.min.js --minify --outfile=dist/bimdata-viewer-split.esm.min.js --allow-overwrite","cy:run":"cypress run","cy:open":"cypress open",dev:"vite",prebuild:"rm -rf dist",prepublishOnly:"npm run build","semantic-release":"semantic-release",serve:"http-server -c-1 --silent",test:"npm run test:unit & npm run build & npm run test:e2e","test:unit":"jest","test:e2e":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:run","test:e2e-dev":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:open",version:"echo $npm_package_version",ts:"tsc"},LPi=["dist/*","types/*","CHANGELOG.md","README.md","package.json","package-lock.json","index.d.ts"],mPi={"@babel/preset-env":"^7.24.4","@bimdata/2d-engine":"2.4.0","@bimdata/areas-next":"0.1.15","@bimdata/bcf-components":"6.2.1","@bimdata/components":"1.4.8","@bimdata/design-system":"2.1.0-rc.24","@bimdata/typescript-fetch-api-client":"10.1.0","@rollup/plugin-alias":"5.1.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-image":"^3.0.3","@rollup/plugin-replace":"^5.0.5","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^12.0.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^10.0.3","@semantic-release/npm":"^12.0.0","@semantic-release/release-notes-generator":"^13.0.0","@vitejs/plugin-vue":"4.6.2","@vue/vue3-jest":"^29.2.6","@xeokit/xeokit-sdk":"git+https://git@github.com/Amoki/xeokit-sdk.git#27e95db2e157215e870f7125bd28b258dee699a9","@zip.js/zip.js":"^2.7.41",async:"^3.2.5",autoprefixer:"^10.4.19","babel-core":"^7.0.0-bridge.0","babel-jest":"^29.7.0","conventional-changelog-eslint":"^5.0.0",cypress:"^13.7.3",esbuild:"^0.20.2",eslint:"^9.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-cypress":"^2.15.2","eslint-plugin-jest":"^28.2.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.25.0","form-data":"^4.0.0",html2canvas:"1.4.1","http-server":"^14.1.1",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-extended":"^4.0.2",jspdf:"^2.5.1",lodash:"^4.17.21","node-fetch":"^3.3.2",postcss:"^8.4.38",prettier:"^3.2.5",querystring:"^0.2.0",sass:"^1.75.0","semantic-release":"^23.0.8",sinon:"^17.0.1","start-server-and-test":"^2.0.3",vite:"4.5.2","vite-plugin-css-injected-by-js":"^3.5.0",vue:"3.4.23","vue-eslint-parser":"^9.4.2","vue-i18n":"^9.12.1"},yPi={name:nPi,type:aPi,version:lPi,description:cPi,keywords:uPi,types:dPi,author:hPi,homepage:pPi,bugs:APi,browserslist:gPi,main:MPi,module:fPi,scripts:wPi,files:LPi,devDependencies:mPi};class vPi{constructor({plugins:e,api:i,ui:o,locale:r="fr"}){this.pluginManager=new p7i(e),this.windowManager=new g7i,this.windowManager.registerAndAddPluginsToWindows([...this.pluginManager.registeredPlugins.values()]),this.api=new _Ti(i),this.globalContext=new Rye(this),this.state=uEi(this),this.shortcutManager=Q4e(this.state),this.uiSettings=o||{},this.i18n=new Bye(r),this._contextMenu=null,this.layout=new sPi(this.uiSettings.resizable!==!1),this.localContext=null,window.$viewer=this}get version(){return yPi.version}get locale(){return this.i18n.locale}get contextMenu(){return this._contextMenu||F4e}set contextMenu(e){this._contextMenu=e}get registeredWindows(){return[...this.windowManager.registeredWindows.keys()]}get registeredPlugins(){return[...this.pluginManager.registeredPlugins.keys()]}get pluginsCfg(){return this.pluginManager.cfg}registerPlugin(e){this.pluginManager.registerPlugin(e),this.windowManager.registerAndAddPluginsToWindows([e])}}function CPi(t,e={}){e.backgroundColor&&(t.style.setProperty("--bimdata-viewer-background-color",e.backgroundColor),e.backgroundColor==="transparent"&&t.style.setProperty("--areas-separator-color","transparent")),e.colorPrimary&&t.style.setProperty("--color-primary",e.colorPrimary),e.colorPrimaryLighter&&t.style.setProperty("--color-primary-lighter",e.colorPrimaryLighter),e.colorPrimaryLight&&t.style.setProperty("--color-primary-light",e.colorPrimaryLight),e.colorPrimaryDark&&t.style.setProperty("--color-primary-dark",e.colorPrimaryDark),e.colorSecondary&&t.style.setProperty("--color-secondary",e.colorSecondary),e.colorSecondaryLighter&&t.style.setProperty("--color-secondary-lighter",e.colorSecondaryLighter),e.colorSecondaryLight&&t.style.setProperty("--color-secondary-light",e.colorSecondaryLight),e.colorSecondaryDark&&t.style.setProperty("--color-secondary-dark",e.colorSecondaryDark),e.colorSilverLight&&t.style.setProperty("--color-silver-light",e.colorSilverLight),e.colorSilver&&t.style.setProperty("--color-silver",e.colorSilver),e.colorSilverDark&&t.style.setProperty("--color-silver-dark",e.colorSilverDark),e.colorGraniteLight&&t.style.setProperty("--color-granite-light",e.colorGraniteLight),e.colorGranite&&t.style.setProperty("--color-granite",e.colorGranite),e.colorSuccess&&t.style.setProperty("--color-success",e.colorSuccess),e.colorSuccessLighter&&t.style.setProperty("--color-success-Lighter",e.colorSuccessLighter),e.colorSuccessLight&&t.style.setProperty("--color-success-Light",e.colorSuccessLight),e.colorSuccessDark&&t.style.setProperty("--color-success-Dark",e.colorSuccessDark),e.colorWarning&&t.style.setProperty("--color-warning",e.colorWarning),e.colorWarningLighter&&t.style.setProperty("--color-warning-Lighter",e.colorWarningLighter),e.colorWarningLight&&t.style.setProperty("--color-warning-Light",e.colorWarningLight),e.colorWarningDark&&t.style.setProperty("--color-warning-Dark",e.colorWarningDark),e.colorHigh&&t.style.setProperty("--color-high",e.colorHigh),e.colorHighLighter&&t.style.setProperty("--color-high-lighter",e.colorHighLighter),e.colorHighLight&&t.style.setProperty("--color-high-light",e.colorHighLight),e.colorHighDark&&t.style.setProperty("--color-high-dark",e.colorHighDark),e.colorText&&t.style.setProperty("--color-text",e.colorText),(!e.backgroundColor||e.backgroundColor!=="transparent")&&t.style.setProperty("--areas-separator-color","rgba(216, 216, 216, 1)"),e.headerHeight!=null&&t.style.setProperty("--bimdata-viewer-header-height",e.headerHeight),t.style.setProperty("--areas-background-color","transparent")}const IPi=Object.freeze({25:"GUEST",50:"USER",100:"ADMIN"}),lf=Object.freeze({READ:"read",WRITE:"write"});function $he(t){const e={};return t.forEach(i=>{const[o,r]=i.split(":");e[o]?e[o].push(r):e[o]=[r]}),e}const jPi={token_scopes:[],usable_scopes:[],user_role:25};function e0e(t=jPi){var e,i,o,r,n,s;const a=$he(t.token_scopes),l=$he(t.usable_scopes);return{...hJ(t),tokenScopes:a,usableScopes:l,userRole:IPi[t.user_role],user:t.user?hJ(t.user):null,hasBcfReadPermission:((e=l.bcf)==null?void 0:e.includes(lf.READ))??!1,hasBcfWritePermission:((i=l.bcf)==null?void 0:i.includes(lf.WRITE))??!1,hasModelReadPermission:((o=l.model)==null?void 0:o.includes(lf.READ))??!1,hasModelWritePermission:((r=l.model)==null?void 0:r.includes(lf.WRITE))??!1,hasDocReadPermission:((n=l.document)==null?void 0:n.includes(lf.READ))??!1,hasDocWritePermission:((s=l.document)==null?void 0:s.includes(lf.WRITE))??!1}}const bPi={BcfFilters:{filtersButton:"Filter",filtersTitle:"Filter",priorityLabel:"Priorit\xE4t",statusLabel:"Status",assignedToLabel:"Zugewiesen an",creatorsLabel:"Erstellt von",tagsLabel:"Tags",resetButton:"Zur\xFCcksetzen",searchButton:"Suchen",undefined:"Nicht definiert",datePlaceholder:"Erstellungsdatum"},BcfSettings:{goBackButton:"Zur\xFCck",title:"BCF-Parameter",text:"Erstellen, f\xFCllen und listen Sie die BCF-Einstellungen auf, die Sie f\xFCr dieses Projekt haben m\xF6chten.",validateButton:"Die BCF-Parameter anerkennen"},BcfStatistics:{emptyText:"F\xFCgen Sie Fragen hinzu, um zugeh\xF6rige Statistiken hier anzuzeigen.",issues:"Probleme",extension:{Priority:"Priorit\xE4t",PriorityNotDefined:"Keine Priorit\xE4t",PriorityTitle:"Priorit\xE4ten",Status:"Status",StatusNotDefined:"Kein Status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priorit\xE4t:",noPriority:"Keine",assignedTo:"Zugewiesen an :",elements:"Elemente",notSpecified:"Nicht definiert",see:"Anzeigen"},BcfTopicCreationCard:{text:"Ein neues BCF-Thema erstellen",createBcfSideTitle:"Ein Problem melden"},BcfTopicForm:{dragDropImageText:"Bitte w\xE4hlen Sie eine Datei aus.",addObjectButton:"Objekt",addAnnotationButton:"Annotation",annotationButtonTooltip:"Zu diesem Thema gibt es derzeit keine Ansichten.",addPictureButton:"F\xFCgen Sie ein Bild hinzu.",titlePlaceholder:"Titel *",titleErrorMessage:"Titel fehlt",typeLabel:"Typ",priorityLabel:"Priorit\xE4t",statusLabel:"Status",stageLabel:"Phase",assignedToLabel:"Zugewiesen an",dueDateLabel:"F\xE4lligkeitsdatum (TT.MM.JJJJ)",descriptionLabel:"Beschreibung",labelsLabel:"Tags",createButton:"Best\xE4tigen",updateButton:"\xC4nderungen \xFCbernehmen",modalText:"Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte \xC4nderungen.",cancelButton:"\xC4nderungen verwerfen",continueButton:"\xC4nderungen fortsetzen",createTitle:"Ein Problem melden",dragDropImageTextTablet:"Foto machen",takeSnapshot:"Mach einen Schnappschuss",importFile:"Eine Datei importieren",searchPlaceholder:"Suchen",emptySearch:"kein Ergebnis"},BcfTopicOverview:{openViewer:"Im Viewer \xF6ffnen",openViewerNoModels:"Es sind keine Vorlagen zur Ansicht bereit",elements:"{count} Elemente",noElements:"kein Element",type:"Typ",noTypeSpecified:"Kein Typ angegeben",description:"Beschreibung",noDescriptionProvided:"Keine Beschreibung angegeben",assignedTo:"Zugeteilt an",notAssigned:"Nicht zugewiesen",dueDate:"F\xE4lligkeitsdatum",noDueDate:"Kein F\xE4lligkeitsdatum",informations:"Informationen",status:"Status",noStatusSpecified:"Kein Status angegeben",stage:"Phase",noStageProvided:"Keine Phase angegeben",priority:"Priorit\xE4t",priorityNotDefined:"Nicht definiert",tags:"Tags",noTags:"Keine Tags",commentButton:"Ein Kommentar ver\xF6ffentlichen",deleteText:"Sie l\xF6schen jetzt {Name}",deleteBcfButton:"Dieses BCF l\xF6schen",keepBcfButton:"Dieses BCF beibehalten",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE4t",status:"Status",title:"Titel",creator:"Autor",date:"Datum"}},BcfTopicActionsCell:{seeButton:"Anzeigen"},BcfTopicComments:{commentButton:"Ein Kommentar verfassen",commentLabel:"Ein Kommentar verfassen",commentText:"Kommentar",cancelButton:"Abbrechen",publishButton:"Ver\xF6ffentlichen",commentsText:"Kommentare",deleteCommentText:"Diesen Kommentar l\xF6schen?",deleteButton:"L\xF6schen",takeSnapshot:"Mach einen Schnappschuss"},BcfTopicPriorityCell:{noPriority:"Keine"},SettingCard:{addButton:"ein Element hinzuf\xFCgen",cancelButton:"Abbrechen",validateButton:"Best\xE4tigen",deleteExtensionText:"Diesen Parameter l\xF6schen",deleteButton:"L\xF6schen",title:{Priority:"Priorit\xE4ten",Label:"Tags",Status:"Status",Type:"Typen",Stage:"Phasen"},input:{Priority:"Eine neue Priorit\xE4t hinzuf\xFCgen",Label:"Ein neues Etikett hinzuf\xFCgen",Status:"Einen neuen Status hinzuf\xFCgen",Type:"Einen neuen Typ hinzuf\xFCgen",Stage:"Eine neue Phase hinzuf\xFCgen"},text:{Priority:"Liste der Priorit\xE4ten",Label:"Liste von Tags",Status:"Liste der Status",Type:"Liste der Typen",Stage:"Liste der Phasen"}}},xPi={BcfComponents:bPi},DPi={BcfFilters:{filtersButton:"Filters",filtersTitle:"Filters",priorityLabel:"Priority",statusLabel:"Status",assignedToLabel:"Assigned to",creatorsLabel:"Created by",tagsLabel:"Tags",resetButton:"Reset",searchButton:"Search",undefined:"Not defined",datePlaceholder:"Creation date"},BcfSettings:{goBackButton:"Back",title:"BCF Settings",text:"Create, enter in, and list the BCF settings you would like to have for this project",validateButton:"Validate BCF settings"},BcfStatistics:{emptyText:"Add BCF Topics to start to have some stats here.",issues:"issues",extension:{Priority:"Priority",PriorityNotDefined:"No priority",PriorityTitle:"Priorities",Status:"Status",StatusNotDefined:"No status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priority: ",noPriority:"None",assignedTo:"Assigned to: ",elements:"Elements",notSpecified:"Not specified",see:"See"},BcfTopicCreationCard:{text:"Create a new BCF topic",createBcfSideTitle:"Report a problem"},BcfTopicForm:{dragDropImageText:"Please select a file",addObjectButton:"Object",addAnnotationButton:"Annotation",annotationButtonTooltip:"This topic has no viewpoint",addPictureButton:"Add a picture",titlePlaceholder:"Title *",titleErrorMessage:"Missing title",typeLabel:"Type",priorityLabel:"Priority",statusLabel:"Status",stageLabel:"Stage",assignedToLabel:"Assigned to",dueDateLabel:"Due date",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Validate",updateButton:"Modify this BCF",modalText:"You are about to quit editing issue {name} but there are unsaved changes.",cancelButton:"Discard changes",continueButton:"Continue editing",createTitle:"Report a problem",dragDropImageTextTablet:"Take a picture",takeSnapshot:"Take a snapshot",importFile:"Import a file",searchPlaceholder:"Search",emptySearch:"No result"},BcfTopicOverview:{openViewer:"Open in viewer",openViewerNoModels:"No model to open",elements:"{count} Elements",noElements:"No element",type:"Type",noTypeSpecified:"No type specified",description:"Description",noDescriptionProvided:"No description provided",assignedTo:"Assigned to",notAssigned:"Not assigned",dueDate:"Due date",noDueDate:"No due date",informations:"Informations",status:"Status",noStatusSpecified:"No status specified",stage:"Stage",noStageProvided:"No stage provided",priority:"Priority",priorityNotDefined:"Not defined",tags:"Tags",noTags:"No tags",commentButton:"Post a comment",deleteText:"You are about to delete {name}",deleteBcfButton:"Delete this BCF",keepBcfButton:"Keep this BCF",author:"Author"},BcfTopicsTable:{headers:{index:"#",priority:"Priority",status:"Status",title:"Title",creator:"Author",date:"Date"}},BcfTopicActionsCell:{seeButton:"See"},BcfTopicComments:{commentButton:"Post a comment",commentLabel:"Post a comment",commentText:"Comment",cancelButton:"Cancel",publishButton:"Publish",commentsText:"Comments",deleteCommentText:"Delete this comment ?",deleteButton:"Delete",takeSnapshot:"Take a snapshot"},BcfTopicPriorityCell:{noPriority:"None"},SettingCard:{addButton:"add an element",cancelButton:"Cancel",validateButton:"Validate",deleteExtensionText:"Remove this setting",deleteButton:"Delete",title:{Priority:"Priorities",Label:"Labels",Status:"Status",Type:"Types",Stage:"Stages"},input:{Priority:"Add a new priority",Label:"Add a new label",Status:"Add new status",Type:"Add a new type",Stage:"Add a new stage"},text:{Priority:"Priority list",Label:"Labels list",Status:"Status list",Type:"Type list",Stage:"Stage list"}}},NPi={BcfComponents:DPi},SPi={BcfFilters:{filtersButton:"Filtros",filtersTitle:"Filtros",priorityLabel:"Prioridad",statusLabel:"Estado",assignedToLabel:"Asignado a",creatorsLabel:"Creado por",tagsLabel:"Etiquetas:",resetButton:"Restablecer",searchButton:"Buscar en",undefined:"No definido",datePlaceholder:"Fecha de creaci\xF3n"},BcfSettings:{goBackButton:"Volver",title:"Par\xE1metros del BCF",text:"Cree, rellene y enumere los par\xE1metros del BCF que desea tener en este proyecto",validateButton:"Validar los par\xE1metros del BCF"},BcfStatistics:{emptyText:"A\xF1ada preguntas para ver las estad\xEDsticas asociadas aqu\xED.",issues:"problemas",extension:{Priority:"Prioridad",PriorityNotDefined:"Sin prioridad",PriorityTitle:"Prioridades",Status:"Estado",StatusNotDefined:"Sin estado",StatusTitle:"Estatutos"}},BcfTopicCard:{priority:"Prioridad :",noPriority:"Sin",assignedTo:"Asignado a :",elements:"Elementos",notSpecified:"No definido",see:"Ver"},BcfTopicCreationCard:{text:"Crear un nuevo tema BCF",createBcfSideTitle:"Informar de un problema"},BcfTopicForm:{dragDropImageText:"Seleccione un archivo",addObjectButton:"Objeto",addAnnotationButton:"Anotaci\xF3n",annotationButtonTooltip:"Actualmente este tema no posee ning\xFAn punto de vista",addPictureButton:"A\xF1adir una imagen",titlePlaceholder:"T\xEDtulo *",titleErrorMessage:"Falta el t\xEDtulo",typeLabel:"Tipo",priorityLabel:"Prioridad",statusLabel:"Estado",stageLabel:"Fase",assignedToLabel:"Asignado a",dueDateLabel:"Fecha de vencimiento (DD/MM/AAAA)",descriptionLabel:"Descripci\xF3n",labelsLabel:"Etiquetas",createButton:"Validar",updateButton:"Modificar este BCF",modalText:"Est\xE1 a punto de salir de la edici\xF3n del problema de {name} pero hay cambios sin guardar.",cancelButton:"Cancelar los cambios",continueButton:"Continuar con los cambios",createTitle:"Informar de un problema",dragDropImageTextTablet:"Tomar una fotograf\xEDa",takeSnapshot:"Tomar un snapshot",importFile:"Importar un archivo",searchPlaceholder:"Buscar",emptySearch:"No hay resultados"},BcfTopicOverview:{openViewer:"Abrir en el visor",openViewerNoModels:"No hay ning\xFAn modelo listo para la visualizaci\xF3n",elements:"{count} Elementos",noElements:"Ning\xFAn elemento",type:"Tipo",noTypeSpecified:"No se especifica el tipo",description:"Descripci\xF3n",noDescriptionProvided:"No hay descripci\xF3n",assignedTo:"Asignado a",notAssigned:"No asignado",dueDate:"Plazo",noDueDate:"Sin fecha de vencimiento",informations:"Informaci\xF3n",status:"Estado",noStatusSpecified:"No se especifica el estado",stage:"Fase",noStageProvided:"No se indica ninguna fase",priority:"Prioridad",priorityNotDefined:"No definido",tags:"Etiquetas",noTags:"Sin etiquetas",commentButton:"Publicar un comentario",deleteText:"Est\xE1s a punto de borrar {name}",deleteBcfButton:"Borrar este BCF",keepBcfButton:"Mantenga este BCF",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Prioridad",status:"Estado",title:"T\xEDtulo",creator:"Autor",date:"Fecha"}},BcfTopicActionsCell:{seeButton:"Ver"},BcfTopicComments:{commentButton:"Publicar un comentario",commentLabel:"Publicar un comentario",commentText:"Comentario",cancelButton:"Cancelar",publishButton:"Publicar",commentsText:"comentarios",deleteCommentText:"\xBFBorrar este comentario?",deleteButton:"Borrar",takeSnapshot:"Tomar un snapshot"},BcfTopicPriorityCell:{noPriority:"Sin"},SettingCard:{addButton:"a\xF1adir un elemento",cancelButton:"Cancelar",validateButton:"Validar",deleteExtensionText:"Borrar esta configuraci\xF3n",deleteButton:"Borrar",title:{Priority:"Prioridades",Label:"Etiquetas:",Status:"Estatutos",Type:"Tipos",Stage:"Fases"},input:{Priority:"A\xF1adir una nueva prioridad",Label:"A\xF1adir una nueva etiqueta",Status:"A\xF1adir un nuevo estado",Type:"A\xF1adir un nuevo tipo",Stage:"A\xF1adir una nueva fase"},text:{Priority:"Lista de prioridades",Label:"Lista de etiquetas",Status:"Lista de estatutos",Type:"Lista de tipos",Stage:"Lista de fases"}}},kPi={BcfComponents:SPi},TPi={BcfFilters:{filtersButton:"Filtres",filtersTitle:"Filtres",priorityLabel:"Priorit\xE9",statusLabel:"Statut",assignedToLabel:"Assign\xE9 \xE0",creatorsLabel:"Cr\xE9\xE9 par",tagsLabel:"Tags",resetButton:"R\xE9initialiser",searchButton:"Rechercher",undefined:"Non d\xE9fini",datePlaceholder:"Date de cr\xE9ation"},BcfSettings:{goBackButton:"Retour",title:"Param\xE8tres BCF",text:"Cr\xE9ez, renseignez et listez les param\xE8tres BCF que vous souhaitez avoir sur ce projet",validateButton:"Valider les param\xE8tres BCF"},BcfStatistics:{emptyText:"Ajoutez des questions pour voir les statistiques associ\xE9es ici.",issues:"probl\xE8mes",extension:{Priority:"Priorit\xE9",PriorityNotDefined:"Aucune priorit\xE9",PriorityTitle:"Priorit\xE9s",Status:"Statut",StatusNotDefined:"Aucun statut",StatusTitle:"Statuts"}},BcfTopicCard:{priority:"Priorit\xE9 : ",noPriority:"Aucune",assignedTo:"Assign\xE9 \xE0 : ",elements:"{n} \xC9lements",notSpecified:"Non d\xE9fini",see:"Voir"},BcfTopicCreationCard:{text:"Cr\xE9er un nouveau topic BCF",createBcfSideTitle:"Signaler un probl\xE8me"},BcfTopicForm:{dragDropImageText:"Veuillez s\xE9lectionner un fichier",addObjectButton:"Objet",addAnnotationButton:"Annotation",annotationButtonTooltip:"Ce topic ne poss\xE8de actuellement aucun point de vue",addPictureButton:"Ajouter une image",titlePlaceholder:"Titre *",titleErrorMessage:"Titre manquant",typeLabel:"Type",priorityLabel:"Priorit\xE9",statusLabel:"Statut",stageLabel:"Phase",assignedToLabel:"Assign\xE9 \xE0",dueDateLabel:"Date d'\xE9ch\xE9ance",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Valider",updateButton:"Modifier ce BCF",modalText:"Vous \xEAtes sur le point de quitter l'\xE9dition de l'issue {name} mais il y'a des modifications non enregistr\xE9es.",cancelButton:"Annuler les modifications",continueButton:"Continuer les modifications",createTitle:"Signaler un probl\xE8me",dragDropImageTextTablet:"Prendre une photo",takeSnapshot:"Prendre un snapshot",importFile:"Importer un fichier",searchPlaceholder:"Rechercher",emptySearch:"Pas de r\xE9sultat"},BcfTopicOverview:{openViewer:"Ouvrir dans le viewer",openViewerNoModels:"Il n'y a aucun mod\xE8le pr\xEAt pour une visualisation",elements:"{count} \xC9lements",noElements:"Aucun \xE9l\xE9ment concern\xE9",type:"Type",noTypeSpecified:"Pas de type sp\xE9cifi\xE9",description:"Description",noDescriptionProvided:"Pas de description renseign\xE9e",assignedTo:"Assign\xE9 \xE0",notAssigned:"Non assign\xE9",dueDate:"\xC9ch\xE9ance",noDueDate:"Pas de date d'\xE9ch\xE9ance",informations:"Informations",status:"Statut",noStatusSpecified:"Pas de statut sp\xE9cifi\xE9",stage:"Phase",noStageProvided:"Pas de phase renseign\xE9e",priority:"Priorit\xE9",priorityNotDefined:"Non d\xE9fini",tags:"Tags",noTags:"Pas de tags",commentButton:"Poster un commentaire",deleteText:"Vous \xEAtes sur le point de supprimer {name}",deleteBcfButton:"Supprimer ce BCF",keepBcfButton:"Conserver ce BCF",author:"Auteur"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE9",status:"Statut",title:"Titre",creator:"Auteur",date:"Date"}},BcfTopicActionsCell:{seeButton:"Voir"},BcfTopicComments:{commentButton:"Poster un commentaire",commentLabel:"Poster un commentaire",commentText:"Commentaire",cancelButton:"Annuler",publishButton:"Publier",commentsText:"commentaires",deleteCommentText:"Supprimer ce commentaire ?",deleteButton:"Supprimer",takeSnapshot:"Prendre un snapshot"},BcfTopicPriorityCell:{noPriority:"Aucune"},SettingCard:{addButton:"ajouter un \xE9l\xE9ment",cancelButton:"Annuler",validateButton:"Valider",deleteExtensionText:"Supprimmer ce param\xE8tre",deleteButton:"Supprimer",title:{Priority:"Priorit\xE9s",Label:"Tags",Status:"Statuts",Type:"Types",Stage:"Phases"},input:{Priority:"Ajouter une nouvelle priorit\xE9",Label:"Ajouter un nouveau label",Status:"Ajouter un nouveau statut",Type:"Ajouter un nouveau type",Stage:"Ajouter une nouvelle phase"},text:{Priority:"Liste des priorit\xE9s",Label:"Liste des tags",Status:"Liste des statuts",Type:"Liste des types",Stage:"Liste des phases"}}},EPi={BcfComponents:TPi},zPi={BcfFilters:{filtersButton:"Filtri",filtersTitle:"Filtri",priorityLabel:"Priorit\xE0",statusLabel:"Stato",datePlaceholder:"Data di creazione",assignedToLabel:"Assegnato a",creatorsLabel:"Creato da",tagsLabel:"Etichette",resetButton:"Ripristina",searchButton:"Cerca",undefined:"Non definito"},BcfSettings:{goBackButton:"Indietro",title:"Parametri BCF",text:"Creare, notificare e elencare i parametri BCF che si desidera avere su questo progetto",validateButton:"Conferma i parametri BCF"},BcfStatistics:{emptyText:"Aggiungi delle domande per vedere le statistiche associate qui.",issues:"problemi",extension:{Priority:"Priorit\xE0",PriorityNotDefined:"Nessuna priorit\xE0",PriorityTitle:"Priorit\xE0",Status:"Stato",StatusNotDefined:"Nessuno stato",StatusTitle:"Stati"}},BcfTopicCard:{priority:"Priorit\xE0:",noPriority:"Nessuno",assignedTo:"Assegnato a:",elements:"Elementi",noElements:"0 elementi",notSpecified:"Non definito",see:"Visualizza"},BcfTopicCreationCard:{text:"Crea un nuovo topic BCF",createBcfSideTitle:"Segnala un problema"},BcfTopicForm:{dragDropImageText:"Selezionare un file",addObjectButton:"Oggetto",addAnnotationButton:"Annotazione",annotationButtonTooltip:"Attualmente questo argomento non presenta alcun punto di vista",addPictureButton:"Aggiungere un'immagine",titlePlaceholder:"Titolo *",titleErrorMessage:"Titolo mancante",typeLabel:"Tipo",priorityLabel:"Priorit\xE0",statusLabel:"Stato",stageLabel:"Fase",assignedToLabel:"Assegnato a",dueDateLabel:"Data di scadenza",descriptionLabel:"Descrizione",labelsLabel:"Tag",createButton:"Conferma",updateButton:"Modificare questo BCF",modalText:"State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",cancelButton:"Annullare le modifiche",continueButton:"Continuare le modifiche",createTitle:"Segnala un problema"},BcfTopicOverview:{openViewer:"Apri nel visualizzatore",openViewerNoModels:"Non esistono modelli pronti per la visualizzazione",elements:"{count} Elementi",noElements:"Nessun elemento",type:"Tipo",noTypeSpecified:"Nessun tipo specificato",description:"Descrizione",noDescriptionProvided:"Nessuna descrizione inserita",assignedTo:"Assegnato a",notAssigned:"Non assegnato",dueDate:"Scadenza",noDueDate:"Nessuna data di scadenza",informations:"Informazioni",status:"Stato",noStatusSpecified:"Nessuno stato specificato",stage:"Fase",noStageProvided:"Nessuna fase inserita",priority:"Priorit\xE0",priorityNotDefined:"Non definita",tags:"Etichette",noTags:"Nessuna etichetta",commentButton:"Pubblica un commento",deleteText:"Stai per eliminare {name}",deleteBcfButton:"Elimina questo BCF",keepBcfButton:"Conserva questo BCF",author:"Autore"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE0",status:"Stato",title:"Titolo",creator:"Autore",date:"Data"}},BcfTopicActionsCell:{seeButton:"Visualizza"},BcfTopicComments:{commentButton:"Pubblica un commento",commentLabel:"Pubblica un commento",commentText:"Commento",cancelButton:"Annulla",publishButton:"Pubblica",commentsText:"commenti",deleteCommentText:"Eliminare questo commento?",deleteButton:"Elimina"},BcfTopicPriorityCell:{noPriority:"Nessuno"},SettingCard:{addButton:"aggiungi un elemento",cancelButton:"Annulla",validateButton:"Conferma",deleteExtensionText:"Elimina questo parametro",deleteButton:"Elimina",title:{Priority:"Priorit\xE0",Label:"Etichette",Status:"Stati",Type:"Tipi",Stage:"Fasi"},input:{Priority:"Aggiungi una nuova priorit\xE0",Label:"Aggiungi una nuova etichetta",Status:"Aggiungi un nuovo stato",Type:"Aggiungi un nuovo tipo",Stage:"Aggiungi una nuova fase"},text:{Priority:"Elenco delle priorit\xE0",Label:"Elenco delle etichette",Status:"Elenco degli stati",Type:"Elenco dei tipi",Stage:"Elenco delle fasi"}}},PPi={BcfComponents:zPi},BPi={de:xPi,en:NPi,es:kPi,fr:EPi,it:PPi},OPi=({apiClient:t,fetchUsers:e,i18nPlugin:i}={})=>({install(o){t?Yo.setup({apiClient:t,fetchUsers:e}):console.error("[BCF Components Plugin] No api client provided. You must provide an api client for the components to work properly."),i?Object.entries(BPi).forEach(([r,n])=>{i.global.mergeLocaleMessage(r,n)}):console.warn("[BCF Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(aje).forEach(([r,n])=>{o.component(r,n)})}}),RPi={title:"Building Maker",back:"Zur\xFCck",list:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",createButton:"Neues Projekt",updateButton:"Umbenennen",deleteButton:"L\xF6schen"},form:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",input:"Name des Geb\xE4udes",error:"Ung\xFCltiger Name",createButton:"Erstellen",updateButton:"Best\xE4tigen"},storeys:{addStoreyButton:"Etage",addFileButton:"Grundriss",closeButton:"Fertigstellen",submitFilesButton:"Best\xE4tigen"},storeyForm:{title:"Neue Etage",input:"Name",error:"Ung\xFCltiger Name",cancelButton:"Abbrechen",submitButton:"Best\xE4tigen"}},UPi={creationFormTitle:"Ordner erstellen",renameFormPlaceholder:"Datei- / Ordnernam",nameInputPlaceholder:"Ordnername",emptyFolder:"Dieser Ordner ist leer",newFolderSuccess:"Neuer Ordner erstellt",renameFolderSuccess:"Umbenannter Ordner",deleteFolderSuccess:"Ordner gel\xF6scht",newFileSuccess:"Datei hinzugef\xFCgt",renameFileSuccess:"Umbenannte Datei",deleteFileSuccess:"Datei gel\xF6scht",nameInputErrorMessage:"Ung\xFCltiger name",cancel:"Abbrechen",submit:"Best\xE4tigen",buttonText:"Neuer Ordner",addFileButtonText:"Datei laden",rename:"Umbenennen",view:"Sehen",download:"Herunterladen",delete:"L\xF6schen",deleteTitle:"Dateien l\xF6schen",deleteDetail:"Sie sind im Begriff, die folgenden Dateien / Ordner endg\xFCltig zu l\xF6schen"},FPi={BuildingMaker:RPi,FileManager:UPi},YPi={title:"Building",back:"Back",list:{text:"Create and edit the layers, then download your PDFs.",createButton:"New project",updateButton:"Rename",deleteButton:"Delete"},form:{text:"Create and edit the layers, then download your PDFs.",input:"Building name",error:"Invalid",createButton:"Create",updateButton:"Confirm"},storeys:{addStoreyButton:"Storey",addFileButton:"Plan",closeButton:"Finish",submitFilesButton:"Validate"},storeyForm:{title:"New storey",input:"Name",error:"Invalid name",cancelButton:"Cancel",submitButton:"Validate"}},QPi={creationFormTitle:"Create folder",renameFormPlaceholder:"Folder/File name",nameInputPlaceholder:"Folder name",emptyFolder:"This folder is empty",newFolderSuccess:"New folder created",renameFolderSuccess:"Folder renamed",deleteFolderSuccess:"Folder deleted",newFileSuccess:"File added",renameFileSuccess:"File renamed",deleteFileSuccess:"File deleted",nameInputErrorMessage:"Invalid name",cancel:"Cancel",submit:"Submit",buttonText:"New folder",addFileButtonText:"Upload a file",rename:"Rename",view:"View",download:"Download",delete:"Delete",deleteTitle:"Deleting Files",deleteDetail:"You are about to permanently delete the following files / folders",dmsRoot:"Root of the project's DMS",validate:"Validate",back:"Back",pdfPageSelectorTitle:"Select a page"},GPi={title:"Meta-Building Structure",tab:{structure:"Structure",zones:"Zones",equipments:"Equipments"},StoreySelector:{placeholder:"Select a storey"},StructureView:{search:"Search"}},HPi={BuildingMaker:YPi,FileManager:QPi,MetaBuildingStructure:GPi},VPi={title:"Building Maker",back:"Vuelta",list:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",createButton:"Nuevo proyecto",updateButton:"Renombrar",deleteButton:"Suprimir"},form:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",input:"Nombre del edificio",error:"Nombre no v\xE1lido",createButton:"Crear",updateButton:"Validar"},storeys:{addStoreyButton:"Piso",addFileButton:"Plano",closeButton:"Terminar",submitFilesButton:"Validar"},storeyForm:{title:"Nuevo piso",input:"Nombre",error:"Nombre no v\xE1lido",cancelButton:"Anular",submitButton:"Validar"}},ZPi={creationFormTitle:"Crear un archivo",renameFormPlaceholder:"Nombre de archivo / carpeta",nameInputPlaceholder:"Nombre de la carpeta",emptyFolder:"Esta carpeta est\xE1 vac\xEDa",newFolderSuccess:"Nueva carpeta creada",renameFolderSuccess:"Carpeta renombrada",deleteFolderSuccess:"Carpeta eliminada",newFileSuccess:"Archivo agregado",renameFileSuccess:"Archivo renombrado",deleteFileSuccess:"Archivo eliminado",nameInputErrorMessage:"Nombre inv\xE1lida",cancel:"Cancelar",submit:"Validar",buttonText:"Carpeta nueva",addFileButtonText:"Cargar un archivo",rename:"Renombrar",view:"Ver",download:"Descargar",delete:"Borrar",deleteTitle:"Eliminar archivos",deleteDetail:"Est\xE1 a punto de eliminar permanentemente los siguientes archivos / carpetas"},JPi={BuildingMaker:VPi,FileManager:ZPi},WPi={title:"Building Maker",back:"Retour",list:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",createButton:"Nouveau projet",updateButton:"Renommer",deleteButton:"Supprimer"},form:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",input:"Nom du b\xE2timent",error:"Nom invalide",createButton:"Cr\xE9er",updateButton:"Valider"},storeys:{addStoreyButton:"\xC9tage",addFileButton:"Plan",closeButton:"Terminer",submitFilesButton:"Valider"},storeyForm:{title:"Nouvel \xE9tage",input:"Nom",error:"Nom invalide",cancelButton:"Annuler",submitButton:"Valider"}},KPi={creationFormTitle:"Cr\xE9er un dossier",renameFormPlaceholder:"Nom du fichier/dosier",nameInputPlaceholder:"Nom du dossier",emptyFolder:"Ce dossier est vide",newFolderSuccess:"Nouveau dossier cr\xE9\xE9",renameFolderSuccess:"Dossier renomm\xE9",deleteFolderSuccess:"Dossier supprim\xE9",newFileSuccess:"Fichier ajout\xE9",renameFileSuccess:"Fichier renomm\xE9",deleteFileSuccess:"Fichier supprim\xE9",nameInputErrorMessage:"Nom invalide",cancel:"Annuler",submit:"Valider",buttonText:"Nouveau dossier",addFileButtonText:"Charger un fichier",rename:"Renommer",view:"Voir",download:"T\xE9l\xE9charger",delete:"Supprimer",deleteTitle:"Supression de fichiers",deleteDetail:"Vous \xEAtes sur le point de supprimer d\xE9finitivement les fichiers/dossiers suivants",dmsRoot:"Racine de la GED du projet",validate:"Valider",back:"Retour",pdfPageSelectorTitle:"S\xE9lectionner une page"},_Pi={title:"Structure M\xE9ta-Building",tab:{structure:"Structure",zones:"Zones",equipments:"Equipements"},StoreySelector:{placeholder:"S\xE9lectionner un \xE9tage"},StructureView:{search:"Rechercher"}},qPi={BuildingMaker:WPi,FileManager:KPi,MetaBuildingStructure:_Pi},XPi={title:"Building Maker",back:"Reso",list:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",createButton:"Nuovo progetto",updateButton:"Rinominare",deleteButton:"Eliminare"},form:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",input:"Nome della costruzione",error:"Nome non corretto",createButton:"Creare",updateButton:"Convalidare"},storeys:{addStoreyButton:"Piano",addFileButton:"Progetto",closeButton:"Finire",submitFilesButton:"Convalidare"},storeyForm:{title:"Nuovo piano",input:"Nome",error:"Nome non corretto",cancelButton:"Annullare",submitButton:"Convalidare"}},$Pi={creationFormTitle:"Crea una cartella",renameFormPlaceholder:"Nome file/cartella",nameInputPlaceholder:"Nome della cartella",emptyFolder:"Questa cartella \xE8 vuota",newFolderSuccess:"Nuova cartella creata",renameFolderSuccess:"Cartella rinominata",deleteFolderSuccess:"Cartella eliminata",newFileSuccess:"File aggiunto",renameFileSuccess:"File rinominato",deleteFileSuccess:"File cancellato",nameInputErrorMessage:"Nome non valido",cancel:"Annulla",submit:"Invia",buttonText:"Nuova cartella",addFileButtonText:"Carica un file",rename:"Rinominare",view:"Vedere",download:"Scaricare",delete:"Cancellare",deleteTitle:"Eliminazione di file",deleteDetail:"Stai per eliminare definitivamente i seguenti file/cartelle"},eBi={BuildingMaker:XPi,FileManager:$Pi},tBi={de:FPi,en:HPi,es:JPi,fr:qPi,it:eBi},iBi=({i18nPlugin:t}={})=>({install(e){t?Object.entries(tBi).forEach(([i,o])=>{t.global.mergeLocaleMessage(i,o)}):console.warn("[BIMData Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(Lmi).forEach(([i,o])=>{e.component(i,o)})}}),oBi={beforeMount(t,e){if(typeof e.value!="function")throw Error(`click away directive needs function, got ${typeof e.value}`);t.clickAwayHandler=i=>{(i.path||i.composedPath&&i.composedPath()).find(o=>o===t)||e.value()},window.addEventListener("mousedown",t.clickAwayHandler,!0)},unmounted(t){window.removeEventListener("mousedown",t.clickAwayHandler,!0),delete t.clickAwayHandler}},rBi=Object.freeze(Object.defineProperty({__proto__:null,BIMDataClickAway:Oc,BIMDataClickInputAway:oBi},Symbol.toStringTag,{value:"Module"})),sBi=t=>({install(e){Object.entries(TMt).forEach(([i,o])=>{t&&t.excludedComponents&&t.excludedComponents.length>0&&t.excludedComponents.includes(i)||(!t||!t.includedComponents||t.includedComponents.includes(i))&&e.component(i,o)}),(!t||t.directives!==!1)&&Object.entries(rBi).forEach(([i,o])=>e.directive(i.split("BIMData")[1],o))}}),nBi={name:"LiWrapper",render(){return Yi("li",this.$slots.default())}};function aBi(t,e){var i=new Set([]);return t.forEach(o=>{e.has(o)||i.add(o)}),i}const du=ms("id"),lBi=({contextMenu:t,objects:e=[],state:i=t.$viewer.state,pictos:o})=>[{name:"selectAll",get group(){return t.groupPositions.select},position:1,get label(){return t.$t("context_menu.select_all")},get picto(){return o.get(this.name)},execute:()=>i.selectObjects(e.filter(kc(Wi("visible"),Su("selected"))).map(du)),predicate:()=>e.some(kc(Wi("visible"),Su("selected")))},{name:"deselectAll",get group(){return t.groupPositions.select},position:2,get label(){return t.$t("context_menu.deselect_all")},get picto(){return o.get(this.name)},execute:()=>i.deselectObjects(e.filter(Wi("selected")).map(du)),predicate:()=>e.some(Wi("selected"))},{name:"selectSimilar",get group(){return t.groupPositions.select},position:3,get label(){return t.$t("context_menu.select_similar")},get picto(){return o.get(this.name)},execute(){const r=e.filter(n=>n.visible&&n.type===this.selectedObject.type&&n.id!==this.selectedObject.id).map(du);i.selectObjects(r)},selectedObject:null,predicate(){const r=e.filter(kc(Wi("visible"),Wi("selected")));return r.length===1&&r[0].type!==void 0?(this.selectedObject=r[0],!0):(this.selectedObject=null,!1)}},{name:"reverseSelection",get label(){return t.$t("context_menu.reverse_selection")},get group(){return t.groupPositions.select},position:4,execute:()=>{const r=new Set(e.filter(Wi("selected")).map(du)),n=new Set(e.filter(Wi("visible")).map(du));i.selectObjects(Array.from(aBi(n,r)),{exclusive:!0})},predicate:()=>e.some(kc(Su("selected"),Wi("visible")))&&e.some(kc(Wi("selected"),Wi("visible")))},{name:"showAll",get group(){return t.groupPositions.visibility},position:1,get label(){return t.$t("context_menu.show_all")},get picto(){return o.get(this.name)},execute:()=>i.showObjects(e.filter(Su("visible")).map(du)),predicate:()=>e.some(Su("visible"))},{name:"hide",get group(){return t.groupPositions.visibility},position:2,get label(){return t.$t("context_menu.hide")},get picto(){return o.get(this.name)},objectsToHide:null,execute(){const r=this.objectsToHide.filter(Wi("selected"));r.length>0&&i.deselectObjects(r.map(du)),i.hideObjects(this.objectsToHide.map(du))},predicate(){return this.objectsToHide=e.filter(kc(Wi("selected"),Wi("visible"))),this.objectsToHide.length>0}},{name:"hideAll",get group(){return t.groupPositions.visibility},position:3,get label(){return t.$t("context_menu.hide_all")},execute:()=>{const r=e.filter(Wi("visible"));r.some(Wi("selected"))&&i.deselectObjects(r.filter(Wi("selected")).map(du)),i.hideObjects(r.map(du))},predicate:()=>e.some(Wi("visible"))}].filter(r=>r.predicate()),cBi={components:{LiWrapper:nBi},inject:["$viewer"],data(){return{defaultPrevented:!1,displayed:!1,top:null,bottom:null,left:null,width:200,nextCommandId:1,currentCommands:[],contextCommands:[],registeredCommands:[],groupPositions:{select:10,visibility:20},asyncPredicateRunning:!1}},computed:{position(){return{top:this.top?this.top+"px":"unset",bottom:this.bottom?this.bottom+"px":"unset",left:this.left+"px",width:this.width+"px"}}},watch:{displayed(t){t?document.addEventListener("keydown",this.onKeyDown):document.removeEventListener("keydown",this.onKeyDown)}},created(){this.$viewer.contextMenu=this,this.asyncPredicates=new Set},methods:{onKeyDown(t){t.key==="Escape"&&this.away()},setPosition(t){const e=(document.fullscreenElement?document.fullscreenElement:this.$parent.$el).getBoundingClientRect();this.left=t.clientX-e.left,this.top=t.clientY-e.top,this.left+this.width>e.width&&(this.left=this.left-this.width),t.clientY>e.top+e.height/2?(this.bottom=e.height-this.top,this.top=null):this.bottom=null},typeCheckCommand(t={}){let e=null;if((!t.execute||typeof t.execute!="function")&!t.component&&(e="Cannot register context menu command. A command must have an execute function or a component property."),t.label||(e="Cannot register context menu command. A command must have a label."),e)throw console.error(e),new Error(e);return t.id=this.nextCommandId++,t},open(t){this.currentCommands=[],this.setPosition(t),this.originEvent=t,t.preventDefault(),this.setCurrentCommands(),this.groupCurrentCommands(),this.defaultPrevented=!1,this.displayed=!0,document.fullscreenElement?(this.$el.parentElement.removeChild(this.$el),this.adoptiveParent=document.fullscreenElement,this.adoptiveParent.appendChild(this.$el)):this.adoptiveParent&&this.adoptiveParent!==this.$viewer.globalContext.el&&(this.adoptiveParent.removeChild(this.$el),this.$viewer.globalContext.el.appendChild(this.$el),this.adoptiveParent=null)},setCurrentCommands(){this.asyncPredicates.clear(),this.asyncPredicateRunning=!1,this.defaultPrevented||this.registeredCommands.forEach(async t=>{if(typeof t.predicate=="function"){const e=t.predicate(this.$viewer.globalContext.activeLocalContext);if(e===!0)this.currentCommands.push(t);else if(typeof e?.then=="function"){this.asyncPredicates.add(e),this.asyncPredicateRunning=!0;const i=await e;this.asyncPredicates.has(e)&&(this.asyncPredicates.delete(e),this.asyncPredicateRunning=this.asyncPredicates.size>0,i===!0&&this.currentCommands.push(t))}}else this.currentCommands.push(t)}),this.currentCommands.push(...this.contextCommands),this.contextCommands=[]},getDefaultCommands({objects:t=[],state:e=this.$viewer.state,context:i=null}){const o=new Map;return i&&this.$viewer.shortcutManager.getShortcuts(i).forEach(r=>o.set(r.name,r.key)),lBi({contextMenu:this,objects:t,state:e,pictos:o})},executeCommand(t){if(t.execute&&(t.execute(this.originEvent),this.displayed=!1),t.component&&!t.menu)throw new Error("Command with component property must have a `menu` property")},away(){this.displayed=!1},groupCurrentCommands(){const t=new Map;this.currentCommands.forEach(i=>{(i.group===null||i.group===void 0)&&(i.group=0),t.has(i.group)?t.get(i.group).push(i):t.set(i.group,[i])}),t.forEach(i=>i.sort((o,r)=>(o.position=o.position||0,r.position=r.position||0,o.position-r.position)));const e=[...t.keys()].sort((i,o)=>i-o).map(i=>t.get(i)).flat();this.currentCommands=e},isGroupIntersection(t){if(t===0)return!1;const e=this.currentCommands[t-1],i=this.currentCommands[t];return e.group<i.group},registerContextCommand(t){const e=this.typeCheckCommand(t);return this.contextCommands.push(e),t.id},registerCommand(t){const e=this.typeCheckCommand(t);return this.registeredCommands.push(e),t.id},unregisterCommand(t){return this.registeredCommands.find(e=>e.id===t)?(this.registeredCommands=this.registeredCommands.filter(e=>e.id!==t),!0):!1},preventDefault(){this.defaultPrevented=!0}}},uBi={key:0,class:"separator"},dBi={class:"menu-text"},hBi={key:1,class:"menu-picto"},pBi={key:0,class:"context-menu__spinner"};function ABi(t,e,i,o,r,n){const s=z("BIMDataIconChevron"),a=z("LiWrapper"),l=z("BIMDataSpinner"),c=Vi("click-away");return r.displayed&&(r.currentCommands.length||r.asyncPredicateRunning)?Tt((D(),U("ul",{key:0,class:"bimdata-list context-menu",style:xe(n.position)},[(D(!0),U(Mt,null,Xt(r.currentCommands,(u,d)=>(D(),oe(a,{key:u.label,class:"context-menu__element",onClick:h=>n.executeCommand(u)},{default:J(()=>[n.isGroupIntersection(d)?(D(),U("div",uBi)):Ie("",!0),v("div",dBi,q(u.label),1),!u.component&&u.picto?(D(),U("span",hBi,q(u.picto),1)):u.component?(D(),oe(s,{key:2,size:"xxs",class:"fill-primary"})):Ie("",!0)]),_:2},1032,["onClick"]))),128)),r.asyncPredicateRunning?(D(),U("li",pBi,[O(l)])):Ie("",!0)],4)),[[c,n.away]]):Ie("",!0)}const gBi=W(cBi,[["render",ABi],["__scopeId","data-v-5b87d4a3"]]),MBi={name:"ViewerHeader",inject:["$viewer"],props:{visible:{type:Boolean,default:!0}},setup(){const t=Pt("$viewer"),e=ya(new Map),i=r=>{if(!r.name)throw new TypeError("[Viewer Header] Content must have a name");if(e.has(r.name))throw new Error(`[Viewer Header] Content with name ${r.name} already exists`);e.set(r.name,r)},o=r=>e.has(r)?(e.delete(r),!0):!1;return{logo:t.uiSettings.bimdataLogo!==!1,version:t.uiSettings.version!==!1?t.version:null,headerContent:e,headerRightContentComponents:gt(()=>Array.from(e.values()).filter(r=>r.position==="right").sort((r,n)=>r.order-n.order).map(r=>r.component)),headerLeftContentComponents:gt(()=>Array.from(e.values()).filter(r=>r.position==="left").sort((r,n)=>r.order-n.order).map(r=>r.component)),addContent:i,removeContent:o}}},fBi={class:"viewer-header"},wBi={class:"viewer-header__content"},LBi={class:"viewer-header__content__left"},mBi={class:"viewer-header__content__right"},yBi={key:0,class:"m-l-6 flex items-center"},vBi={key:1,class:"viewer-header__version"};function CBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return Tt((D(),U("div",fBi,[v("div",wBi,[v("div",LBi,[(D(!0),U(Mt,null,Xt(o.headerLeftContentComponents,a=>(D(),oe(Er(a),{key:a.name}))),128))]),v("div",mBi,[(D(!0),U(Mt,null,Xt(o.headerRightContentComponents,a=>(D(),oe(Er(a),{key:a.name}))),128))])]),o.logo||o.version?(D(),U("div",yBi,[o.logo?(D(),oe(s,{key:0,name:"logo",width:"30px",height:"30px"})):Ie("",!0),o.version?(D(),U("div",vBi,q(o.version),1)):Ie("",!0)])):Ie("",!0)],512)),[[Ai,i.visible]])}const IBi=W(MBi,[["render",CBi],["__scopeId","data-v-5c9ea6b6"]]),jBi={name:"BimdataViewer",components:{ContextMenu:gBi,ViewerHeader:IBi,ModalManager:Khe},setup(){const t=Pt("$viewer"),{globalContext:e,shortcutManager:i}=t;Oo(()=>{i&&i.destroy(),e.hub.clear()}),go(()=>{t.pluginManager.runPluginsScripts(t)});const o=gt(()=>{var d;return t.uiSettings.bimdataLogo!==!1&&(e.localContexts.length!==1||((d=e.localContexts[0].window)==null?void 0:d.logoAndVersion))}),r=gt(()=>{var d;return t.uiSettings.version!==!1&&(e.localContexts.length!==1||(d=e.localContexts[0].window)!=null&&d.logoAndVersion)?t.version:null}),n=gt(()=>{var d,h;return t.uiSettings.header!==!1&&!(e.localContexts.length===1&&((h=(d=e.localContexts[0])==null?void 0:d.window)==null?void 0:h.header)===!1)}),s=t.uiSettings.contextMenu!==!1,a=Je(null);function l(d){s&&a.value.open(d)}function c(){t.shortcutManager.active=!0}function u(){t.shortcutManager.active=!1}return{Layout:t.layout.areas.component,onContextMenu:l,onMouseenter:c,onMouseleave:u,isHeaderVisible:n,viewerTemplateRef:e.templateRef,modalManagerTemplateRef:e.modalManagerTemplateRef,headerTemplateRef:e.headerTemplateRef,contextMenuTemplateRef:a,contextMenuEnabled:s,bimdataLogoOnSingleWindow:o,viewerVersionOnSingleWindow:r,version:t.version,loading:gt(()=>e.loading),spinner:gt(()=>e.spinner)}}},bBi={key:1,class:"global-spinner",style:{"z-index":"3"}},xBi={key:2,class:"viewer__logo"},DBi={key:1,class:"version m-t-6"};function NBi(t,e,i,o,r,n){const s=z("ModalManager"),a=z("ContextMenu"),l=z("ViewerHeader"),c=z("BIMDataSpinner"),u=z("BIMDataIllustration");return D(),U("div",{id:"bimdata-viewer",ref:"viewerTemplateRef",class:"bimdata-viewer bimdata-scrollbar",onContextmenu:e[0]||(e[0]=(...d)=>o.onContextMenu&&o.onContextMenu(...d)),onMouseenter:e[1]||(e[1]=(...d)=>o.onMouseenter&&o.onMouseenter(...d)),onMouseleave:e[2]||(e[2]=(...d)=>o.onMouseleave&&o.onMouseleave(...d))},[O(s,{ref:"modalManagerTemplateRef"},null,512),o.contextMenuEnabled?(D(),oe(a,{key:0,ref:"contextMenuTemplateRef"},null,512)):Ie("",!0),O(l,{ref:"headerTemplateRef",visible:o.isHeaderVisible},null,8,["visible"]),(D(),oe(Er(o.Layout),{style:xe(o.isHeaderVisible?"height: calc(100% - var(--bimdata-viewer-header-height, 40px))":"height: 100%")},null,8,["style"])),o.loading?(D(),U("div",bBi,[o.spinner&&o.spinner.component?(D(),oe(Er(o.spinner.component),Eu(nl({key:0},o.spinner.props)),null,16)):(D(),oe(c,{key:1,size:"40px",border:"5px"}))])):Ie("",!0),!o.isHeaderVisible&&(o.bimdataLogoOnSingleWindow||o.viewerVersionOnSingleWindow)?(D(),U("div",xBi,[o.bimdataLogoOnSingleWindow?(D(),oe(u,{key:0,name:"logo"})):Ie("",!0),o.viewerVersionOnSingleWindow?(D(),U("div",DBi,q(o.version),1)):Ie("",!0)])):Ie("",!0)],544)}const SBi=W(jBi,[["render",NBi]]),kBi=["src"],TBi={class:"bimdata-models__header"},EBi={key:0,class:"bimdata-models__header__loader"},zBi={class:"bimdata-models__header__picto"},PBi={class:"bimdata-models__header__name"},BBi={key:0,class:"bimdata-models__header__name--empty"},OBi={key:1,class:"bimdata-models__header__name--empty"},RBi={key:3},UBi=["onMousemove","onClick"],t0e={__name:"Models",props:{preview:{type:Boolean,default:!1},windowPositioning:{type:Boolean,default:!0},customFilter:{type:Function,default:null},width:{type:String,default:"350px"}},setup(t){const e=t,i=Pt("$viewer"),o=Je(),r=Je(0),n=Je(0),s=Je(),a=dr([]),l=Je(!1),c=gt(()=>i.localContext.loadedModels),u=gt(()=>i.localContext.loadedModelIds),d=gt(()=>i.localContext.loadingModelIds),h=gt(()=>i.localContext.multiModel),p=gt(()=>(e.customFilter?a.value.filter(e.customFilter):a.value).map(I=>c.value.find(b=>{var j;return((j=b.document)==null?void 0:j.head_id)!=null&&b.document.head_id===I.document.id})??I)),g=I=>u.value.includes(I),A=I=>d.value.includes(I),M=gt(()=>{var I;const{x:b,y:j}=((I=s.value)==null?void 0:I.getBoundingClientRect())??{x:0,y:0};return`top:${n.value-j}px; left:${r.value-b}px;`}),f=I=>{!h.value&&g(I.id)||d.value.length>0||(i.localContext.loadedModelIds.includes(I.id)?i.localContext.unloadModels([I.id]):i.localContext.loadModels([I.id]))},L=I=>{switch(I){case"C":return"success";case"E":return"failed";case"P":case"I":return"sandglass"}},w=(I,b)=>{I!=null&&I.viewer_360_file&&(r.value=b.clientX,n.value=b.clientY),o.value=I?.viewer_360_file},m=async I=>{l.value=!0;try{return(await i.api.apiClient.modelApi.getModels(i.api.cloudId,i.api.projectId,void 0,void 0,I)).filter(b=>i.state.models.some(j=>j.archived)||!b.archived).sort(Zh("updated_at",!1))}catch(b){console.error("[Models] Cannot get project models. Error: ",b)}finally{l.value=!1}return[]},C=I=>{var b;return((b=I.children)==null?void 0:b.some(j=>g(j.id)))??!1};return m(i.localContext.modelTypes).then(I=>{a.value=I}),(I,b)=>{const j=z("BIMDataSpinner"),T=z("BIMDataIconModel3D"),P=z("BIMDataTextbox"),S=z("BIMDataCheckbox"),k=z("BIMDataRadio"),R=z("BIMDataIcon"),Y=z("BIMDataDropdownList");return D(),U("div",{ref_key:"templateRef",ref:s,class:be(["bimdata-models",{"bimdata-models--window-positioning":t.windowPositioning}])},[o.value?(D(),U("div",{key:0,class:"bimdata-models__preview",style:xe(M.value)},[v("img",{src:o.value},null,8,kBi)],4)):Ie("",!0),O(Y,{style:xe(`--bimdata-models-width: ${t.width};`),width:t.width,list:p.value,"element-key":"id","per-page":40,loading:l.value,class:"bimdata-models__list",disabled:p.value.length===0,onElementClick:f},{header:J(({isOpen:V})=>[v("div",TBi,[l.value?(D(),U("div",EBi,[O(j)])):(D(),U(Mt,{key:1},[v("div",zBi,[O(T)]),v("div",{class:be(["bimdata-models__header__number bimdata-info-length",{"bimdata-models__header__number--empty":u.value.length===0}])},[v("span",null,q(u.value.length),1)],2),v("div",PBi,[p.value.length===0?(D(),U("span",BBi,q(I.$t("model.no_model")),1)):u.value.length===0?(D(),U("span",OBi,q(I.$t("model.no_loaded_model")),1)):u.value.length===1?(D(),oe(P,{key:2,text:c.value[0].name,tooltip:!V},null,8,["text","tooltip"])):u.value.length>1?(D(),U("span",RBi,q(I.$t("model.selected_models")),1)):Ie("",!0)])],64))])]),element:J(({element:V,close:H})=>[v("div",{class:"bimdata-models__model",onMousemove:_=>t.preview&&w(V,_),onMouseout:b[0]||(b[0]=_=>t.preview&&w()),onClick:()=>{!h.value&&!g(V.id)&&H()}},[h.value?(D(),oe(S,{key:0,"model-value":g(V.id)||C(V),disabled:V.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])):(D(),oe(k,{key:1,"model-value":g(V.id)||C(V),disabled:V.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])),O(R,{margin:"0 calc(var(--spacing-unit) / 2)",name:L(V.status),size:"xs",class:be({"fill-success":V.status==="C","fill-high":V.status==="E"})},null,8,["name","class"]),O(P,{class:be({"bimdata-models__model__name":!0,"bimdata-models__model__name--disabled":V.status!=="C"||d.value.length>0}),text:V.name,width:`calc(100% -
|
|
1871
|
-
${h.value?13:23}px - 2 * 6px - 16px)`},null,8,["class","text","width"]),V.document&&!V.document.is_head_version?(D(),oe(R,{key:2,name:"versioning",fill:"",color:"default",size:"xs",margin:"0 0 0 6px"})):Ie("",!0)],40,UBi),A(V.id)?(D(),oe(j,{key:0,class:"bimdata-models__model__spinner"})):Ie("",!0)]),_:1},8,["style","width","list","loading","disabled"])],2)}}},FBi={data(){return{shown:!1}},mounted(){setTimeout(()=>{this.shown=!0},500)}};function YBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return D(),U("div",{class:"bimdata__no-model",style:xe({"--no-model--opacity":r.shown?1:0})},[O(s,{name:"emptyViewer",x:"90",y:"90"}),v("span",null,q(t.$t("model.select_model")),1)],4)}const i0e=W(FBi,[["render",YBi],["__scopeId","data-v-54b49e82"]]);window.BIMDataViewerVue=KQ;class QBi{constructor(e={}){var i,o;const{api:r={},ui:n}=e;this.uiCfg=n,r.apiUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `apiUrl` not set, use 'https://api.bimdata.io' by default."),r.apiUrl="https://api.bimdata.io"),r.archiveUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `archiveUrl` not set, use 'https://archive.bimdata.io' by default."),r.archiveUrl="https://archive.bimdata.io"),r.ifcIds&&(console.warn("[BIMData Viewer] DEPRECATED - Viewer config - please use the `modelIds` property instead of `ifcIds`."),r.modelIds===void 0&&(r.modelIds=r.ifcIds)),r.modelIds||(r.modelIds=[]),(i=r.offline)!=null&&i.dataFile&&(r.offline.data=r.offline.dataFile),this.$viewer=new vPi(e),(o=r.offline)!=null&&o.enabled?this.$viewer.api.enableOfflineMode(r.offline.data).then(()=>this.state.loadModels(r.modelIds)):this.state.loadModels(r.modelIds),this.vueApp=null}get state(){return this.$viewer.state}get api(){return this.$viewer.api}async mount(e,i="3d"){var o;const{$viewer:r}=this;await r.api.ready;try{const d=await r.api.apiClient.collaborationApi.checkProjectAccess(r.api.cloudId,r.api.projectId);r.api.permissions=e0e(d)}catch{r.api.permissions=e0e()}const n=this.api.accessToken,{i18n:s}=r;s.registerTranslations(r.pluginManager.pluginTranslations),r.layout.apply(i);const a={i18n:s.i18nVuePlugin,data(){return{accessToken:n}},render(){return Yi(SBi,{style:"height: 100%"})}},l=nN(a).use(s.i18nVuePlugin).use(sBi()).use(iBi({i18nPlugin:s.i18nVuePlugin})).use(OPi({apiClient:r.api.apiClient,i18nPlugin:s.i18nVuePlugin}));l.provide("$viewer",r),l.component("BIMDataModelLoader",t0e),l.component("BIMDataNoModelWindowPlaceHolder",i0e),l.component("BIMDataStoreySelector",l7),l.component("ModelsLoader",t0e),l.component("NoModelWindowPlaceHolder",i0e);const c=e instanceof HTMLElement?e:document.querySelector(e);c&&(c.style.height="100%");const u=l.mount(e);return u.$viewer=r,CPi(u.$el,(o=this.uiCfg)==null?void 0:o.style),typeof window<"u"&&(window.bimdataViewer=u),this.vueApp=l,u}destroy(){var e;(e=this.vueApp)==null||e.unmount()}setLocale(e){if(!hG.includes(e))throw new Error(`Viewer available locales are ${hG.join(", ")}.`);this.$viewer.i18n.locale=e}registerPlugin(e){this.$viewer.registerPlugin(e)}registerWindow(e){return this.$viewer.windowManager.registerWindow(e)}unregisterWindow(e){return this.$viewer.windowManager.unregisterWindow(e)}setAccessToken(e){this.api.accessToken=e}async loadModels(e){this.$viewer.globalContext.loadingProcessStart();const i=await this.state.loadModels(e);return this.$viewer.globalContext.loadingProcessEnd(),i}loadIfcs(e){return console.warn("[BIMData Viewer] DEPRECATED - Viewer - please use the loadModels method instead of loadIfcs."),this.loadModels(e)}}const o0e=(t={})=>new QBi(t);window.makeBIMDataViewer=o0e;/*! @license DOMPurify 2.5.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.0/LICENSE */function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Uz(t,e){return Uz=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},Uz(t,e)}function GBi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ix(t,e,i){return GBi()?ix=Reflect.construct:ix=function(o,r,n){var s=[null];s.push.apply(s,r);var a=Function.bind.apply(o,s),l=new a;return n&&Uz(l,n.prototype),l},ix.apply(null,arguments)}function Mc(t){return HBi(t)||VBi(t)||ZBi(t)||JBi()}function HBi(t){if(Array.isArray(t))return Fz(t)}function VBi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZBi(t,e){if(t){if(typeof t=="string")return Fz(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Fz(t,e)}}function Fz(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o}function JBi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1870
|
+
`),onMouseenter:e[0]||(e[0]=(...h)=>o.onMouseEnter&&o.onMouseEnter(...h)),onMouseleave:e[1]||(e[1]=(...h)=>o.onMouseLeave&&o.onMouseLeave(...h))},[O(s,{ref:"modalManagerTemplateRef"},null,512),v("div",$zi,[o.windowPlugins.leftSidePanel?(D(),oe(a,{key:0,plugin:o.windowPlugins.leftSidePanel},null,8,["plugin"])):Ie("",!0),v("div",ePi,[(D(!0),U(Mt,null,Xt(o.windowPlugins.free,h=>(D(),oe(l,{key:h.name,class:be({"window-container__content__center__viewer":h.isViewer}),plugin:h},null,8,["class","plugin"]))),128)),O(c,{position:"left",plugins:o.windowPlugins.leftButtonColumn},null,8,["plugins"]),O(c,{position:"right",plugins:o.windowPlugins.rightButtonColumn},null,8,["plugins"])]),o.windowPlugins.rightSidePanel?(D(),oe(a,{key:1,plugin:o.windowPlugins.rightSidePanel},null,8,["plugin"])):Ie("",!0)]),o.loading?(D(),U("div",tPi,[o.spinner&&o.spinner.component?(D(),oe(Er(o.spinner.component),Eu(nl({key:0},o.spinner.props)),null,16)):(D(),oe(u,{key:1,size:"20px",border:"3px"}))])):Ie("",!0),o.layoutSettingsDisplayed?(D(),U("div",iPi,[O(d)])):Ie("",!0)],36)}const rPi=W(Xzi,[["render",oPi]]);class sPi{constructor(e=!0){const i=ZEi(KQ,null,{resizable:e});i.registerContent("default",rPi),this.settings=ya({edit:!1,swap:!1,full:!1}),this.areas=i}get resizable(){return this.areas.resizable}set resizable(e){this.areas.resizable=e}apply(e=null){this.areas.layout=e?JEi(e):null}copy(e){return WEi(this.areas.layout,e)}open({ratio:e,direction:i,insertAfter:o,windowName:r=null,windowState:n=null,localContextId:s=null}={}){const a=r?{options:{windowName:r,windowState:n}}:null;return s===null?this.areas.splitLayout(e,i,o,a):this.areas.split(s,e,i,o,a)}swap(e,i){return this.areas.swap(e,i)}close(e){return this.areas.delete(e)}}const nPi="@bimdata/viewer",aPi="module",lPi="2.3.0-beta.2",cPi="A customizable BIM viewer.",uPi=["bim","viewer","bimdata","ifc","bcf"],dPi="./index.d.ts",hPi="BIMData.io",pPi="https://developers.bimdata.io/viewer/index.html",APi={email:"support@bimdata.io"},gPi=["last 2 chrome version","last 2 firefox version"],MPi="dist/bimdata-viewer.esm.min.js",fPi="dist/bimdata-viewer.esm.min.js",wPi={build:"vite build && esbuild dist/bimdata-viewer.esm.min.js --minify --outfile=dist/bimdata-viewer.esm.min.js --allow-overwrite","build:split":"vite build -c vite.config.split.js && esbuild dist/bimdata-viewer-split.esm.min.js --minify --outfile=dist/bimdata-viewer-split.esm.min.js --allow-overwrite","cy:run":"cypress run","cy:open":"cypress open",dev:"vite",prebuild:"rm -rf dist",prepublishOnly:"npm run build","semantic-release":"semantic-release",serve:"http-server -c-1 --silent",test:"npm run test:unit & npm run build & npm run test:e2e","test:unit":"jest","test:e2e":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:run","test:e2e-dev":"start-server-and-test 'npm run serve -- -p 8080' http://localhost:8080 cy:open",version:"echo $npm_package_version",ts:"tsc"},LPi=["dist/*","types/*","CHANGELOG.md","README.md","package.json","package-lock.json","index.d.ts"],mPi={"@babel/preset-env":"^7.24.4","@bimdata/2d-engine":"2.4.0","@bimdata/areas-next":"0.1.15","@bimdata/bcf-components":"6.2.1","@bimdata/components":"1.4.8","@bimdata/design-system":"2.1.0-rc.24","@bimdata/typescript-fetch-api-client":"10.1.0","@rollup/plugin-alias":"5.1.0","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-image":"^3.0.3","@rollup/plugin-replace":"^5.0.5","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^12.0.0","@semantic-release/git":"^10.0.1","@semantic-release/github":"^10.0.3","@semantic-release/npm":"^12.0.0","@semantic-release/release-notes-generator":"^13.0.0","@vitejs/plugin-vue":"4.6.2","@vue/vue3-jest":"^29.2.6","@xeokit/xeokit-sdk":"git+https://git@github.com/Amoki/xeokit-sdk.git#27e95db2e157215e870f7125bd28b258dee699a9","@zip.js/zip.js":"^2.7.41",async:"^3.2.5",autoprefixer:"^10.4.19","babel-core":"^7.0.0-bridge.0","babel-jest":"^29.7.0","conventional-changelog-eslint":"^5.0.0",cypress:"^13.7.3",esbuild:"^0.20.2",eslint:"^9.0.0","eslint-config-prettier":"^9.1.0","eslint-plugin-cypress":"^2.15.2","eslint-plugin-jest":"^28.2.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.25.0","form-data":"^4.0.0",html2canvas:"1.4.1","http-server":"^14.1.1",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-extended":"^4.0.2",jspdf:"^2.5.1",lodash:"^4.17.21","node-fetch":"^3.3.2",postcss:"^8.4.38",prettier:"^3.2.5",querystring:"^0.2.0",sass:"^1.75.0","semantic-release":"^23.0.8",sinon:"^17.0.1","start-server-and-test":"^2.0.3",vite:"4.5.2","vite-plugin-css-injected-by-js":"^3.5.0",vue:"3.4.23","vue-eslint-parser":"^9.4.2","vue-i18n":"^9.12.1"},yPi={name:nPi,type:aPi,version:lPi,description:cPi,keywords:uPi,types:dPi,author:hPi,homepage:pPi,bugs:APi,browserslist:gPi,main:MPi,module:fPi,scripts:wPi,files:LPi,devDependencies:mPi};class vPi{constructor({plugins:e,api:i,ui:o,locale:r="fr"}){this.pluginManager=new p7i(e),this.windowManager=new g7i,this.windowManager.registerAndAddPluginsToWindows([...this.pluginManager.registeredPlugins.values()]),this.api=new _Ti(i),this.globalContext=new Rye(this),this.state=uEi(this),this.shortcutManager=Q4e(this.state),this.uiSettings=o||{},this.i18n=new Bye(r),this._contextMenu=null,this.layout=new sPi(this.uiSettings.resizable!==!1),this.localContext=null,window.$viewer=this}get version(){return yPi.version}get locale(){return this.i18n.locale}get contextMenu(){return this._contextMenu||F4e}set contextMenu(e){this._contextMenu=e}get registeredWindows(){return[...this.windowManager.registeredWindows.keys()]}get registeredPlugins(){return[...this.pluginManager.registeredPlugins.keys()]}get pluginsCfg(){return this.pluginManager.cfg}registerPlugin(e){this.pluginManager.registerPlugin(e),this.windowManager.registerAndAddPluginsToWindows([e])}}function CPi(t,e={}){e.backgroundColor&&(t.style.setProperty("--bimdata-viewer-background-color",e.backgroundColor),e.backgroundColor==="transparent"&&t.style.setProperty("--areas-separator-color","transparent")),e.colorPrimary&&t.style.setProperty("--color-primary",e.colorPrimary),e.colorPrimaryLighter&&t.style.setProperty("--color-primary-lighter",e.colorPrimaryLighter),e.colorPrimaryLight&&t.style.setProperty("--color-primary-light",e.colorPrimaryLight),e.colorPrimaryDark&&t.style.setProperty("--color-primary-dark",e.colorPrimaryDark),e.colorSecondary&&t.style.setProperty("--color-secondary",e.colorSecondary),e.colorSecondaryLighter&&t.style.setProperty("--color-secondary-lighter",e.colorSecondaryLighter),e.colorSecondaryLight&&t.style.setProperty("--color-secondary-light",e.colorSecondaryLight),e.colorSecondaryDark&&t.style.setProperty("--color-secondary-dark",e.colorSecondaryDark),e.colorSilverLight&&t.style.setProperty("--color-silver-light",e.colorSilverLight),e.colorSilver&&t.style.setProperty("--color-silver",e.colorSilver),e.colorSilverDark&&t.style.setProperty("--color-silver-dark",e.colorSilverDark),e.colorGraniteLight&&t.style.setProperty("--color-granite-light",e.colorGraniteLight),e.colorGranite&&t.style.setProperty("--color-granite",e.colorGranite),e.colorSuccess&&t.style.setProperty("--color-success",e.colorSuccess),e.colorSuccessLighter&&t.style.setProperty("--color-success-Lighter",e.colorSuccessLighter),e.colorSuccessLight&&t.style.setProperty("--color-success-Light",e.colorSuccessLight),e.colorSuccessDark&&t.style.setProperty("--color-success-Dark",e.colorSuccessDark),e.colorWarning&&t.style.setProperty("--color-warning",e.colorWarning),e.colorWarningLighter&&t.style.setProperty("--color-warning-Lighter",e.colorWarningLighter),e.colorWarningLight&&t.style.setProperty("--color-warning-Light",e.colorWarningLight),e.colorWarningDark&&t.style.setProperty("--color-warning-Dark",e.colorWarningDark),e.colorHigh&&t.style.setProperty("--color-high",e.colorHigh),e.colorHighLighter&&t.style.setProperty("--color-high-lighter",e.colorHighLighter),e.colorHighLight&&t.style.setProperty("--color-high-light",e.colorHighLight),e.colorHighDark&&t.style.setProperty("--color-high-dark",e.colorHighDark),e.colorText&&t.style.setProperty("--color-text",e.colorText),(!e.backgroundColor||e.backgroundColor!=="transparent")&&t.style.setProperty("--areas-separator-color","rgba(216, 216, 216, 1)"),e.headerHeight!=null&&t.style.setProperty("--bimdata-viewer-header-height",e.headerHeight),t.style.setProperty("--areas-background-color","transparent")}const IPi=Object.freeze({25:"GUEST",50:"USER",100:"ADMIN"}),lf=Object.freeze({READ:"read",WRITE:"write"});function $he(t){const e={};return t.forEach(i=>{const[o,r]=i.split(":");e[o]?e[o].push(r):e[o]=[r]}),e}const jPi={token_scopes:[],usable_scopes:[],user_role:25};function e0e(t=jPi){var e,i,o,r,n,s;const a=$he(t.token_scopes),l=$he(t.usable_scopes);return{...hJ(t),tokenScopes:a,usableScopes:l,userRole:IPi[t.user_role],user:t.user?hJ(t.user):null,hasBcfReadPermission:((e=l.bcf)==null?void 0:e.includes(lf.READ))??!1,hasBcfWritePermission:((i=l.bcf)==null?void 0:i.includes(lf.WRITE))??!1,hasModelReadPermission:((o=l.model)==null?void 0:o.includes(lf.READ))??!1,hasModelWritePermission:((r=l.model)==null?void 0:r.includes(lf.WRITE))??!1,hasDocReadPermission:((n=l.document)==null?void 0:n.includes(lf.READ))??!1,hasDocWritePermission:((s=l.document)==null?void 0:s.includes(lf.WRITE))??!1}}const bPi={BcfFilters:{filtersButton:"Filter",filtersTitle:"Filter",priorityLabel:"Priorit\xE4t",statusLabel:"Status",assignedToLabel:"Zugewiesen an",creatorsLabel:"Erstellt von",tagsLabel:"Tags",resetButton:"Zur\xFCcksetzen",searchButton:"Suchen",undefined:"Nicht definiert",datePlaceholder:"Erstellungsdatum"},BcfSettings:{goBackButton:"Zur\xFCck",title:"BCF-Parameter",text:"Erstellen, f\xFCllen und listen Sie die BCF-Einstellungen auf, die Sie f\xFCr dieses Projekt haben m\xF6chten.",validateButton:"Die BCF-Parameter anerkennen"},BcfStatistics:{emptyText:"F\xFCgen Sie Fragen hinzu, um zugeh\xF6rige Statistiken hier anzuzeigen.",issues:"Probleme",extension:{Priority:"Priorit\xE4t",PriorityNotDefined:"Keine Priorit\xE4t",PriorityTitle:"Priorit\xE4ten",Status:"Status",StatusNotDefined:"Kein Status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priorit\xE4t:",noPriority:"Keine",assignedTo:"Zugewiesen an :",elements:"Elemente",notSpecified:"Nicht definiert",see:"Anzeigen"},BcfTopicCreationCard:{text:"Ein neues BCF-Thema erstellen",createBcfSideTitle:"Ein Problem melden"},BcfTopicForm:{dragDropImageText:"Bitte w\xE4hlen Sie eine Datei aus.",addObjectButton:"Objekt",addAnnotationButton:"Annotation",annotationButtonTooltip:"Zu diesem Thema gibt es derzeit keine Ansichten.",addPictureButton:"F\xFCgen Sie ein Bild hinzu.",titlePlaceholder:"Titel *",titleErrorMessage:"Titel fehlt",typeLabel:"Typ",priorityLabel:"Priorit\xE4t",statusLabel:"Status",stageLabel:"Phase",assignedToLabel:"Zugewiesen an",dueDateLabel:"F\xE4lligkeitsdatum (TT.MM.JJJJ)",descriptionLabel:"Beschreibung",labelsLabel:"Tags",createButton:"Best\xE4tigen",updateButton:"\xC4nderungen \xFCbernehmen",modalText:"Sie sind dabei, die Bearbeitung der Ausgabe {Name} zu beenden, aber es gibt noch ungespeicherte \xC4nderungen.",cancelButton:"\xC4nderungen verwerfen",continueButton:"\xC4nderungen fortsetzen",createTitle:"Ein Problem melden",dragDropImageTextTablet:"Foto machen",takeSnapshot:"Mach einen Schnappschuss",importFile:"Eine Datei importieren",searchPlaceholder:"Suchen",emptySearch:"kein Ergebnis"},BcfTopicOverview:{openViewer:"Im Viewer \xF6ffnen",openViewerNoModels:"Es sind keine Vorlagen zur Ansicht bereit",elements:"{count} Elemente",noElements:"kein Element",type:"Typ",noTypeSpecified:"Kein Typ angegeben",description:"Beschreibung",noDescriptionProvided:"Keine Beschreibung angegeben",assignedTo:"Zugeteilt an",notAssigned:"Nicht zugewiesen",dueDate:"F\xE4lligkeitsdatum",noDueDate:"Kein F\xE4lligkeitsdatum",informations:"Informationen",status:"Status",noStatusSpecified:"Kein Status angegeben",stage:"Phase",noStageProvided:"Keine Phase angegeben",priority:"Priorit\xE4t",priorityNotDefined:"Nicht definiert",tags:"Tags",noTags:"Keine Tags",commentButton:"Ein Kommentar ver\xF6ffentlichen",deleteText:"Sie l\xF6schen jetzt {Name}",deleteBcfButton:"Dieses BCF l\xF6schen",keepBcfButton:"Dieses BCF beibehalten",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE4t",status:"Status",title:"Titel",creator:"Autor",date:"Datum"}},BcfTopicActionsCell:{seeButton:"Anzeigen"},BcfTopicComments:{commentButton:"Ein Kommentar verfassen",commentLabel:"Ein Kommentar verfassen",commentText:"Kommentar",cancelButton:"Abbrechen",publishButton:"Ver\xF6ffentlichen",commentsText:"Kommentare",deleteCommentText:"Diesen Kommentar l\xF6schen?",deleteButton:"L\xF6schen",takeSnapshot:"Mach einen Schnappschuss"},BcfTopicPriorityCell:{noPriority:"Keine"},SettingCard:{addButton:"ein Element hinzuf\xFCgen",cancelButton:"Abbrechen",validateButton:"Best\xE4tigen",deleteExtensionText:"Diesen Parameter l\xF6schen",deleteButton:"L\xF6schen",title:{Priority:"Priorit\xE4ten",Label:"Tags",Status:"Status",Type:"Typen",Stage:"Phasen"},input:{Priority:"Eine neue Priorit\xE4t hinzuf\xFCgen",Label:"Ein neues Etikett hinzuf\xFCgen",Status:"Einen neuen Status hinzuf\xFCgen",Type:"Einen neuen Typ hinzuf\xFCgen",Stage:"Eine neue Phase hinzuf\xFCgen"},text:{Priority:"Liste der Priorit\xE4ten",Label:"Liste von Tags",Status:"Liste der Status",Type:"Liste der Typen",Stage:"Liste der Phasen"}}},xPi={BcfComponents:bPi},DPi={BcfFilters:{filtersButton:"Filters",filtersTitle:"Filters",priorityLabel:"Priority",statusLabel:"Status",assignedToLabel:"Assigned to",creatorsLabel:"Created by",tagsLabel:"Tags",resetButton:"Reset",searchButton:"Search",undefined:"Not defined",datePlaceholder:"Creation date"},BcfSettings:{goBackButton:"Back",title:"BCF Settings",text:"Create, enter in, and list the BCF settings you would like to have for this project",validateButton:"Validate BCF settings"},BcfStatistics:{emptyText:"Add BCF Topics to start to have some stats here.",issues:"issues",extension:{Priority:"Priority",PriorityNotDefined:"No priority",PriorityTitle:"Priorities",Status:"Status",StatusNotDefined:"No status",StatusTitle:"Status"}},BcfTopicCard:{priority:"Priority: ",noPriority:"None",assignedTo:"Assigned to: ",elements:"Elements",notSpecified:"Not specified",see:"See"},BcfTopicCreationCard:{text:"Create a new BCF topic",createBcfSideTitle:"Report a problem"},BcfTopicForm:{dragDropImageText:"Please select a file",addObjectButton:"Object",addAnnotationButton:"Annotation",annotationButtonTooltip:"This topic has no viewpoint",addPictureButton:"Add a picture",titlePlaceholder:"Title *",titleErrorMessage:"Missing title",typeLabel:"Type",priorityLabel:"Priority",statusLabel:"Status",stageLabel:"Stage",assignedToLabel:"Assigned to",dueDateLabel:"Due date",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Validate",updateButton:"Modify this BCF",modalText:"You are about to quit editing issue {name} but there are unsaved changes.",cancelButton:"Discard changes",continueButton:"Continue editing",createTitle:"Report a problem",dragDropImageTextTablet:"Take a picture",takeSnapshot:"Take a snapshot",importFile:"Import a file",searchPlaceholder:"Search",emptySearch:"No result"},BcfTopicOverview:{openViewer:"Open in viewer",openViewerNoModels:"No model to open",elements:"{count} Elements",noElements:"No element",type:"Type",noTypeSpecified:"No type specified",description:"Description",noDescriptionProvided:"No description provided",assignedTo:"Assigned to",notAssigned:"Not assigned",dueDate:"Due date",noDueDate:"No due date",informations:"Informations",status:"Status",noStatusSpecified:"No status specified",stage:"Stage",noStageProvided:"No stage provided",priority:"Priority",priorityNotDefined:"Not defined",tags:"Tags",noTags:"No tags",commentButton:"Post a comment",deleteText:"You are about to delete {name}",deleteBcfButton:"Delete this BCF",keepBcfButton:"Keep this BCF",author:"Author"},BcfTopicsTable:{headers:{index:"#",priority:"Priority",status:"Status",title:"Title",creator:"Author",date:"Date"}},BcfTopicActionsCell:{seeButton:"See"},BcfTopicComments:{commentButton:"Post a comment",commentLabel:"Post a comment",commentText:"Comment",cancelButton:"Cancel",publishButton:"Publish",commentsText:"Comments",deleteCommentText:"Delete this comment ?",deleteButton:"Delete",takeSnapshot:"Take a snapshot"},BcfTopicPriorityCell:{noPriority:"None"},SettingCard:{addButton:"add an element",cancelButton:"Cancel",validateButton:"Validate",deleteExtensionText:"Remove this setting",deleteButton:"Delete",title:{Priority:"Priorities",Label:"Labels",Status:"Status",Type:"Types",Stage:"Stages"},input:{Priority:"Add a new priority",Label:"Add a new label",Status:"Add new status",Type:"Add a new type",Stage:"Add a new stage"},text:{Priority:"Priority list",Label:"Labels list",Status:"Status list",Type:"Type list",Stage:"Stage list"}}},NPi={BcfComponents:DPi},SPi={BcfFilters:{filtersButton:"Filtros",filtersTitle:"Filtros",priorityLabel:"Prioridad",statusLabel:"Estado",assignedToLabel:"Asignado a",creatorsLabel:"Creado por",tagsLabel:"Etiquetas:",resetButton:"Restablecer",searchButton:"Buscar en",undefined:"No definido",datePlaceholder:"Fecha de creaci\xF3n"},BcfSettings:{goBackButton:"Volver",title:"Par\xE1metros del BCF",text:"Cree, rellene y enumere los par\xE1metros del BCF que desea tener en este proyecto",validateButton:"Validar los par\xE1metros del BCF"},BcfStatistics:{emptyText:"A\xF1ada preguntas para ver las estad\xEDsticas asociadas aqu\xED.",issues:"problemas",extension:{Priority:"Prioridad",PriorityNotDefined:"Sin prioridad",PriorityTitle:"Prioridades",Status:"Estado",StatusNotDefined:"Sin estado",StatusTitle:"Estatutos"}},BcfTopicCard:{priority:"Prioridad :",noPriority:"Sin",assignedTo:"Asignado a :",elements:"Elementos",notSpecified:"No definido",see:"Ver"},BcfTopicCreationCard:{text:"Crear un nuevo tema BCF",createBcfSideTitle:"Informar de un problema"},BcfTopicForm:{dragDropImageText:"Seleccione un archivo",addObjectButton:"Objeto",addAnnotationButton:"Anotaci\xF3n",annotationButtonTooltip:"Actualmente este tema no posee ning\xFAn punto de vista",addPictureButton:"A\xF1adir una imagen",titlePlaceholder:"T\xEDtulo *",titleErrorMessage:"Falta el t\xEDtulo",typeLabel:"Tipo",priorityLabel:"Prioridad",statusLabel:"Estado",stageLabel:"Fase",assignedToLabel:"Asignado a",dueDateLabel:"Fecha de vencimiento (DD/MM/AAAA)",descriptionLabel:"Descripci\xF3n",labelsLabel:"Etiquetas",createButton:"Validar",updateButton:"Modificar este BCF",modalText:"Est\xE1 a punto de salir de la edici\xF3n del problema de {name} pero hay cambios sin guardar.",cancelButton:"Cancelar los cambios",continueButton:"Continuar con los cambios",createTitle:"Informar de un problema",dragDropImageTextTablet:"Tomar una fotograf\xEDa",takeSnapshot:"Tomar un snapshot",importFile:"Importar un archivo",searchPlaceholder:"Buscar",emptySearch:"No hay resultados"},BcfTopicOverview:{openViewer:"Abrir en el visor",openViewerNoModels:"No hay ning\xFAn modelo listo para la visualizaci\xF3n",elements:"{count} Elementos",noElements:"Ning\xFAn elemento",type:"Tipo",noTypeSpecified:"No se especifica el tipo",description:"Descripci\xF3n",noDescriptionProvided:"No hay descripci\xF3n",assignedTo:"Asignado a",notAssigned:"No asignado",dueDate:"Plazo",noDueDate:"Sin fecha de vencimiento",informations:"Informaci\xF3n",status:"Estado",noStatusSpecified:"No se especifica el estado",stage:"Fase",noStageProvided:"No se indica ninguna fase",priority:"Prioridad",priorityNotDefined:"No definido",tags:"Etiquetas",noTags:"Sin etiquetas",commentButton:"Publicar un comentario",deleteText:"Est\xE1s a punto de borrar {name}",deleteBcfButton:"Borrar este BCF",keepBcfButton:"Mantenga este BCF",author:"Autor"},BcfTopicsTable:{headers:{index:"#",priority:"Prioridad",status:"Estado",title:"T\xEDtulo",creator:"Autor",date:"Fecha"}},BcfTopicActionsCell:{seeButton:"Ver"},BcfTopicComments:{commentButton:"Publicar un comentario",commentLabel:"Publicar un comentario",commentText:"Comentario",cancelButton:"Cancelar",publishButton:"Publicar",commentsText:"comentarios",deleteCommentText:"\xBFBorrar este comentario?",deleteButton:"Borrar",takeSnapshot:"Tomar un snapshot"},BcfTopicPriorityCell:{noPriority:"Sin"},SettingCard:{addButton:"a\xF1adir un elemento",cancelButton:"Cancelar",validateButton:"Validar",deleteExtensionText:"Borrar esta configuraci\xF3n",deleteButton:"Borrar",title:{Priority:"Prioridades",Label:"Etiquetas:",Status:"Estatutos",Type:"Tipos",Stage:"Fases"},input:{Priority:"A\xF1adir una nueva prioridad",Label:"A\xF1adir una nueva etiqueta",Status:"A\xF1adir un nuevo estado",Type:"A\xF1adir un nuevo tipo",Stage:"A\xF1adir una nueva fase"},text:{Priority:"Lista de prioridades",Label:"Lista de etiquetas",Status:"Lista de estatutos",Type:"Lista de tipos",Stage:"Lista de fases"}}},kPi={BcfComponents:SPi},TPi={BcfFilters:{filtersButton:"Filtres",filtersTitle:"Filtres",priorityLabel:"Priorit\xE9",statusLabel:"Statut",assignedToLabel:"Assign\xE9 \xE0",creatorsLabel:"Cr\xE9\xE9 par",tagsLabel:"Tags",resetButton:"R\xE9initialiser",searchButton:"Rechercher",undefined:"Non d\xE9fini",datePlaceholder:"Date de cr\xE9ation"},BcfSettings:{goBackButton:"Retour",title:"Param\xE8tres BCF",text:"Cr\xE9ez, renseignez et listez les param\xE8tres BCF que vous souhaitez avoir sur ce projet",validateButton:"Valider les param\xE8tres BCF"},BcfStatistics:{emptyText:"Ajoutez des questions pour voir les statistiques associ\xE9es ici.",issues:"probl\xE8mes",extension:{Priority:"Priorit\xE9",PriorityNotDefined:"Aucune priorit\xE9",PriorityTitle:"Priorit\xE9s",Status:"Statut",StatusNotDefined:"Aucun statut",StatusTitle:"Statuts"}},BcfTopicCard:{priority:"Priorit\xE9 : ",noPriority:"Aucune",assignedTo:"Assign\xE9 \xE0 : ",elements:"{n} \xC9lements",notSpecified:"Non d\xE9fini",see:"Voir"},BcfTopicCreationCard:{text:"Cr\xE9er un nouveau topic BCF",createBcfSideTitle:"Signaler un probl\xE8me"},BcfTopicForm:{dragDropImageText:"Veuillez s\xE9lectionner un fichier",addObjectButton:"Objet",addAnnotationButton:"Annotation",annotationButtonTooltip:"Ce topic ne poss\xE8de actuellement aucun point de vue",addPictureButton:"Ajouter une image",titlePlaceholder:"Titre *",titleErrorMessage:"Titre manquant",typeLabel:"Type",priorityLabel:"Priorit\xE9",statusLabel:"Statut",stageLabel:"Phase",assignedToLabel:"Assign\xE9 \xE0",dueDateLabel:"Date d'\xE9ch\xE9ance",descriptionLabel:"Description",labelsLabel:"Tags",createButton:"Valider",updateButton:"Modifier ce BCF",modalText:"Vous \xEAtes sur le point de quitter l'\xE9dition de l'issue {name} mais il y'a des modifications non enregistr\xE9es.",cancelButton:"Annuler les modifications",continueButton:"Continuer les modifications",createTitle:"Signaler un probl\xE8me",dragDropImageTextTablet:"Prendre une photo",takeSnapshot:"Prendre un snapshot",importFile:"Importer un fichier",searchPlaceholder:"Rechercher",emptySearch:"Pas de r\xE9sultat"},BcfTopicOverview:{openViewer:"Ouvrir dans le viewer",openViewerNoModels:"Il n'y a aucun mod\xE8le pr\xEAt pour une visualisation",elements:"{count} \xC9lements",noElements:"Aucun \xE9l\xE9ment concern\xE9",type:"Type",noTypeSpecified:"Pas de type sp\xE9cifi\xE9",description:"Description",noDescriptionProvided:"Pas de description renseign\xE9e",assignedTo:"Assign\xE9 \xE0",notAssigned:"Non assign\xE9",dueDate:"\xC9ch\xE9ance",noDueDate:"Pas de date d'\xE9ch\xE9ance",informations:"Informations",status:"Statut",noStatusSpecified:"Pas de statut sp\xE9cifi\xE9",stage:"Phase",noStageProvided:"Pas de phase renseign\xE9e",priority:"Priorit\xE9",priorityNotDefined:"Non d\xE9fini",tags:"Tags",noTags:"Pas de tags",commentButton:"Poster un commentaire",deleteText:"Vous \xEAtes sur le point de supprimer {name}",deleteBcfButton:"Supprimer ce BCF",keepBcfButton:"Conserver ce BCF",author:"Auteur"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE9",status:"Statut",title:"Titre",creator:"Auteur",date:"Date"}},BcfTopicActionsCell:{seeButton:"Voir"},BcfTopicComments:{commentButton:"Poster un commentaire",commentLabel:"Poster un commentaire",commentText:"Commentaire",cancelButton:"Annuler",publishButton:"Publier",commentsText:"commentaires",deleteCommentText:"Supprimer ce commentaire ?",deleteButton:"Supprimer",takeSnapshot:"Prendre un snapshot"},BcfTopicPriorityCell:{noPriority:"Aucune"},SettingCard:{addButton:"ajouter un \xE9l\xE9ment",cancelButton:"Annuler",validateButton:"Valider",deleteExtensionText:"Supprimmer ce param\xE8tre",deleteButton:"Supprimer",title:{Priority:"Priorit\xE9s",Label:"Tags",Status:"Statuts",Type:"Types",Stage:"Phases"},input:{Priority:"Ajouter une nouvelle priorit\xE9",Label:"Ajouter un nouveau label",Status:"Ajouter un nouveau statut",Type:"Ajouter un nouveau type",Stage:"Ajouter une nouvelle phase"},text:{Priority:"Liste des priorit\xE9s",Label:"Liste des tags",Status:"Liste des statuts",Type:"Liste des types",Stage:"Liste des phases"}}},EPi={BcfComponents:TPi},zPi={BcfFilters:{filtersButton:"Filtri",filtersTitle:"Filtri",priorityLabel:"Priorit\xE0",statusLabel:"Stato",datePlaceholder:"Data di creazione",assignedToLabel:"Assegnato a",creatorsLabel:"Creato da",tagsLabel:"Etichette",resetButton:"Ripristina",searchButton:"Cerca",undefined:"Non definito"},BcfSettings:{goBackButton:"Indietro",title:"Parametri BCF",text:"Creare, notificare e elencare i parametri BCF che si desidera avere su questo progetto",validateButton:"Conferma i parametri BCF"},BcfStatistics:{emptyText:"Aggiungi delle domande per vedere le statistiche associate qui.",issues:"problemi",extension:{Priority:"Priorit\xE0",PriorityNotDefined:"Nessuna priorit\xE0",PriorityTitle:"Priorit\xE0",Status:"Stato",StatusNotDefined:"Nessuno stato",StatusTitle:"Stati"}},BcfTopicCard:{priority:"Priorit\xE0:",noPriority:"Nessuno",assignedTo:"Assegnato a:",elements:"Elementi",noElements:"0 elementi",notSpecified:"Non definito",see:"Visualizza"},BcfTopicCreationCard:{text:"Crea un nuovo topic BCF",createBcfSideTitle:"Segnala un problema"},BcfTopicForm:{dragDropImageText:"Selezionare un file",addObjectButton:"Oggetto",addAnnotationButton:"Annotazione",annotationButtonTooltip:"Attualmente questo argomento non presenta alcun punto di vista",addPictureButton:"Aggiungere un'immagine",titlePlaceholder:"Titolo *",titleErrorMessage:"Titolo mancante",typeLabel:"Tipo",priorityLabel:"Priorit\xE0",statusLabel:"Stato",stageLabel:"Fase",assignedToLabel:"Assegnato a",dueDateLabel:"Data di scadenza",descriptionLabel:"Descrizione",labelsLabel:"Tag",createButton:"Conferma",updateButton:"Modificare questo BCF",modalText:"State per abbandonare la modifica di {name} ma ci sono modifiche non salvate.",cancelButton:"Annullare le modifiche",continueButton:"Continuare le modifiche",createTitle:"Segnala un problema"},BcfTopicOverview:{openViewer:"Apri nel visualizzatore",openViewerNoModels:"Non esistono modelli pronti per la visualizzazione",elements:"{count} Elementi",noElements:"Nessun elemento",type:"Tipo",noTypeSpecified:"Nessun tipo specificato",description:"Descrizione",noDescriptionProvided:"Nessuna descrizione inserita",assignedTo:"Assegnato a",notAssigned:"Non assegnato",dueDate:"Scadenza",noDueDate:"Nessuna data di scadenza",informations:"Informazioni",status:"Stato",noStatusSpecified:"Nessuno stato specificato",stage:"Fase",noStageProvided:"Nessuna fase inserita",priority:"Priorit\xE0",priorityNotDefined:"Non definita",tags:"Etichette",noTags:"Nessuna etichetta",commentButton:"Pubblica un commento",deleteText:"Stai per eliminare {name}",deleteBcfButton:"Elimina questo BCF",keepBcfButton:"Conserva questo BCF",author:"Autore"},BcfTopicsTable:{headers:{index:"#",priority:"Priorit\xE0",status:"Stato",title:"Titolo",creator:"Autore",date:"Data"}},BcfTopicActionsCell:{seeButton:"Visualizza"},BcfTopicComments:{commentButton:"Pubblica un commento",commentLabel:"Pubblica un commento",commentText:"Commento",cancelButton:"Annulla",publishButton:"Pubblica",commentsText:"commenti",deleteCommentText:"Eliminare questo commento?",deleteButton:"Elimina"},BcfTopicPriorityCell:{noPriority:"Nessuno"},SettingCard:{addButton:"aggiungi un elemento",cancelButton:"Annulla",validateButton:"Conferma",deleteExtensionText:"Elimina questo parametro",deleteButton:"Elimina",title:{Priority:"Priorit\xE0",Label:"Etichette",Status:"Stati",Type:"Tipi",Stage:"Fasi"},input:{Priority:"Aggiungi una nuova priorit\xE0",Label:"Aggiungi una nuova etichetta",Status:"Aggiungi un nuovo stato",Type:"Aggiungi un nuovo tipo",Stage:"Aggiungi una nuova fase"},text:{Priority:"Elenco delle priorit\xE0",Label:"Elenco delle etichette",Status:"Elenco degli stati",Type:"Elenco dei tipi",Stage:"Elenco delle fasi"}}},PPi={BcfComponents:zPi},BPi={de:xPi,en:NPi,es:kPi,fr:EPi,it:PPi},OPi=({apiClient:t,fetchUsers:e,i18nPlugin:i}={})=>({install(o){t?Yo.setup({apiClient:t,fetchUsers:e}):console.error("[BCF Components Plugin] No api client provided. You must provide an api client for the components to work properly."),i?Object.entries(BPi).forEach(([r,n])=>{i.global.mergeLocaleMessage(r,n)}):console.warn("[BCF Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(aje).forEach(([r,n])=>{o.component(r,n)})}}),RPi={title:"Building Maker",back:"Zur\xFCck",list:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",createButton:"Neues Projekt",updateButton:"Umbenennen",deleteButton:"L\xF6schen"},form:{text:"Erstellen und bearbeiten Sie die Etagen und laden Sie anschlie\xDFend Ihre PDFs herunter.",input:"Name des Geb\xE4udes",error:"Ung\xFCltiger Name",createButton:"Erstellen",updateButton:"Best\xE4tigen"},storeys:{addStoreyButton:"Etage",addFileButton:"Grundriss",closeButton:"Fertigstellen",submitFilesButton:"Best\xE4tigen"},storeyForm:{title:"Neue Etage",input:"Name",error:"Ung\xFCltiger Name",cancelButton:"Abbrechen",submitButton:"Best\xE4tigen"}},UPi={creationFormTitle:"Ordner erstellen",renameFormPlaceholder:"Datei- / Ordnernam",nameInputPlaceholder:"Ordnername",emptyFolder:"Dieser Ordner ist leer",newFolderSuccess:"Neuer Ordner erstellt",renameFolderSuccess:"Umbenannter Ordner",deleteFolderSuccess:"Ordner gel\xF6scht",newFileSuccess:"Datei hinzugef\xFCgt",renameFileSuccess:"Umbenannte Datei",deleteFileSuccess:"Datei gel\xF6scht",nameInputErrorMessage:"Ung\xFCltiger name",cancel:"Abbrechen",submit:"Best\xE4tigen",buttonText:"Neuer Ordner",addFileButtonText:"Datei laden",rename:"Umbenennen",view:"Sehen",download:"Herunterladen",delete:"L\xF6schen",deleteTitle:"Dateien l\xF6schen",deleteDetail:"Sie sind im Begriff, die folgenden Dateien / Ordner endg\xFCltig zu l\xF6schen"},FPi={BuildingMaker:RPi,FileManager:UPi},YPi={title:"Building",back:"Back",list:{text:"Create and edit the layers, then download your PDFs.",createButton:"New project",updateButton:"Rename",deleteButton:"Delete"},form:{text:"Create and edit the layers, then download your PDFs.",input:"Building name",error:"Invalid",createButton:"Create",updateButton:"Confirm"},storeys:{addStoreyButton:"Storey",addFileButton:"Plan",closeButton:"Finish",submitFilesButton:"Validate"},storeyForm:{title:"New storey",input:"Name",error:"Invalid name",cancelButton:"Cancel",submitButton:"Validate"}},QPi={creationFormTitle:"Create folder",renameFormPlaceholder:"Folder/File name",nameInputPlaceholder:"Folder name",emptyFolder:"This folder is empty",newFolderSuccess:"New folder created",renameFolderSuccess:"Folder renamed",deleteFolderSuccess:"Folder deleted",newFileSuccess:"File added",renameFileSuccess:"File renamed",deleteFileSuccess:"File deleted",nameInputErrorMessage:"Invalid name",cancel:"Cancel",submit:"Submit",buttonText:"New folder",addFileButtonText:"Upload a file",rename:"Rename",view:"View",download:"Download",delete:"Delete",deleteTitle:"Deleting Files",deleteDetail:"You are about to permanently delete the following files / folders",dmsRoot:"Root of the project's DMS",validate:"Validate",back:"Back",pdfPageSelectorTitle:"Select a page"},GPi={title:"Meta-Building Structure",tab:{structure:"Structure",zones:"Zones",equipments:"Equipments"},StoreySelector:{placeholder:"Select a storey"},StructureView:{search:"Search"}},HPi={BuildingMaker:YPi,FileManager:QPi,MetaBuildingStructure:GPi},VPi={title:"Building Maker",back:"Vuelta",list:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",createButton:"Nuevo proyecto",updateButton:"Renombrar",deleteButton:"Suprimir"},form:{text:"Cree y edite los pisos despu\xE9s cargue los PDF.",input:"Nombre del edificio",error:"Nombre no v\xE1lido",createButton:"Crear",updateButton:"Validar"},storeys:{addStoreyButton:"Piso",addFileButton:"Plano",closeButton:"Terminar",submitFilesButton:"Validar"},storeyForm:{title:"Nuevo piso",input:"Nombre",error:"Nombre no v\xE1lido",cancelButton:"Anular",submitButton:"Validar"}},ZPi={creationFormTitle:"Crear un archivo",renameFormPlaceholder:"Nombre de archivo / carpeta",nameInputPlaceholder:"Nombre de la carpeta",emptyFolder:"Esta carpeta est\xE1 vac\xEDa",newFolderSuccess:"Nueva carpeta creada",renameFolderSuccess:"Carpeta renombrada",deleteFolderSuccess:"Carpeta eliminada",newFileSuccess:"Archivo agregado",renameFileSuccess:"Archivo renombrado",deleteFileSuccess:"Archivo eliminado",nameInputErrorMessage:"Nombre inv\xE1lida",cancel:"Cancelar",submit:"Validar",buttonText:"Carpeta nueva",addFileButtonText:"Cargar un archivo",rename:"Renombrar",view:"Ver",download:"Descargar",delete:"Borrar",deleteTitle:"Eliminar archivos",deleteDetail:"Est\xE1 a punto de eliminar permanentemente los siguientes archivos / carpetas"},JPi={BuildingMaker:VPi,FileManager:ZPi},WPi={title:"Building Maker",back:"Retour",list:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",createButton:"Nouveau projet",updateButton:"Renommer",deleteButton:"Supprimer"},form:{text:"Cr\xE9ez et \xE9ditez les \xE9tages puis t\xE9l\xE9chagez vos PDF.",input:"Nom du b\xE2timent",error:"Nom invalide",createButton:"Cr\xE9er",updateButton:"Valider"},storeys:{addStoreyButton:"\xC9tage",addFileButton:"Plan",closeButton:"Terminer",submitFilesButton:"Valider"},storeyForm:{title:"Nouvel \xE9tage",input:"Nom",error:"Nom invalide",cancelButton:"Annuler",submitButton:"Valider"}},KPi={creationFormTitle:"Cr\xE9er un dossier",renameFormPlaceholder:"Nom du fichier/dosier",nameInputPlaceholder:"Nom du dossier",emptyFolder:"Ce dossier est vide",newFolderSuccess:"Nouveau dossier cr\xE9\xE9",renameFolderSuccess:"Dossier renomm\xE9",deleteFolderSuccess:"Dossier supprim\xE9",newFileSuccess:"Fichier ajout\xE9",renameFileSuccess:"Fichier renomm\xE9",deleteFileSuccess:"Fichier supprim\xE9",nameInputErrorMessage:"Nom invalide",cancel:"Annuler",submit:"Valider",buttonText:"Nouveau dossier",addFileButtonText:"Charger un fichier",rename:"Renommer",view:"Voir",download:"T\xE9l\xE9charger",delete:"Supprimer",deleteTitle:"Supression de fichiers",deleteDetail:"Vous \xEAtes sur le point de supprimer d\xE9finitivement les fichiers/dossiers suivants",dmsRoot:"Racine de la GED du projet",validate:"Valider",back:"Retour",pdfPageSelectorTitle:"S\xE9lectionner une page"},_Pi={title:"Structure M\xE9ta-Building",tab:{structure:"Structure",zones:"Zones",equipments:"Equipements"},StoreySelector:{placeholder:"S\xE9lectionner un \xE9tage"},StructureView:{search:"Rechercher"}},qPi={BuildingMaker:WPi,FileManager:KPi,MetaBuildingStructure:_Pi},XPi={title:"Building Maker",back:"Reso",list:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",createButton:"Nuovo progetto",updateButton:"Rinominare",deleteButton:"Eliminare"},form:{text:"Crea e modifica i piani e poi scarica i tuoi PDF.",input:"Nome della costruzione",error:"Nome non corretto",createButton:"Creare",updateButton:"Convalidare"},storeys:{addStoreyButton:"Piano",addFileButton:"Progetto",closeButton:"Finire",submitFilesButton:"Convalidare"},storeyForm:{title:"Nuovo piano",input:"Nome",error:"Nome non corretto",cancelButton:"Annullare",submitButton:"Convalidare"}},$Pi={creationFormTitle:"Crea una cartella",renameFormPlaceholder:"Nome file/cartella",nameInputPlaceholder:"Nome della cartella",emptyFolder:"Questa cartella \xE8 vuota",newFolderSuccess:"Nuova cartella creata",renameFolderSuccess:"Cartella rinominata",deleteFolderSuccess:"Cartella eliminata",newFileSuccess:"File aggiunto",renameFileSuccess:"File rinominato",deleteFileSuccess:"File cancellato",nameInputErrorMessage:"Nome non valido",cancel:"Annulla",submit:"Invia",buttonText:"Nuova cartella",addFileButtonText:"Carica un file",rename:"Rinominare",view:"Vedere",download:"Scaricare",delete:"Cancellare",deleteTitle:"Eliminazione di file",deleteDetail:"Stai per eliminare definitivamente i seguenti file/cartelle"},eBi={BuildingMaker:XPi,FileManager:$Pi},tBi={de:FPi,en:HPi,es:JPi,fr:qPi,it:eBi},iBi=({i18nPlugin:t}={})=>({install(e){t?Object.entries(tBi).forEach(([i,o])=>{t.global.mergeLocaleMessage(i,o)}):console.warn("[BIMData Components Plugin] No i18n instance provided. You should either provide an i18n instance or define your own translations in order have text displayed properly."),Object.entries(Lmi).forEach(([i,o])=>{e.component(i,o)})}}),oBi={beforeMount(t,e){if(typeof e.value!="function")throw Error(`click away directive needs function, got ${typeof e.value}`);t.clickAwayHandler=i=>{(i.path||i.composedPath&&i.composedPath()).find(o=>o===t)||e.value()},window.addEventListener("mousedown",t.clickAwayHandler,!0)},unmounted(t){window.removeEventListener("mousedown",t.clickAwayHandler,!0),delete t.clickAwayHandler}},rBi=Object.freeze(Object.defineProperty({__proto__:null,BIMDataClickAway:Oc,BIMDataClickInputAway:oBi},Symbol.toStringTag,{value:"Module"})),sBi=t=>({install(e){Object.entries(TMt).forEach(([i,o])=>{t&&t.excludedComponents&&t.excludedComponents.length>0&&t.excludedComponents.includes(i)||(!t||!t.includedComponents||t.includedComponents.includes(i))&&e.component(i,o)}),(!t||t.directives!==!1)&&Object.entries(rBi).forEach(([i,o])=>e.directive(i.split("BIMData")[1],o))}}),nBi={name:"LiWrapper",render(){return Yi("li",this.$slots.default())}};function aBi(t,e){var i=new Set([]);return t.forEach(o=>{e.has(o)||i.add(o)}),i}const du=ms("id"),lBi=({contextMenu:t,objects:e=[],state:i=t.$viewer.state,pictos:o})=>[{name:"selectAll",get group(){return t.groupPositions.select},position:1,get label(){return t.$t("context_menu.select_all")},get picto(){return o.get(this.name)},execute:()=>i.selectObjects(e.filter(kc(Wi("visible"),Su("selected"))).map(du)),predicate:()=>e.some(kc(Wi("visible"),Su("selected")))},{name:"deselectAll",get group(){return t.groupPositions.select},position:2,get label(){return t.$t("context_menu.deselect_all")},get picto(){return o.get(this.name)},execute:()=>i.deselectObjects(e.filter(Wi("selected")).map(du)),predicate:()=>e.some(Wi("selected"))},{name:"selectSimilar",get group(){return t.groupPositions.select},position:3,get label(){return t.$t("context_menu.select_similar")},get picto(){return o.get(this.name)},execute(){const r=e.filter(n=>n.visible&&n.type===this.selectedObject.type&&n.id!==this.selectedObject.id).map(du);i.selectObjects(r)},selectedObject:null,predicate(){const r=e.filter(kc(Wi("visible"),Wi("selected")));return r.length===1&&r[0].type!==void 0?(this.selectedObject=r[0],!0):(this.selectedObject=null,!1)}},{name:"reverseSelection",get label(){return t.$t("context_menu.reverse_selection")},get group(){return t.groupPositions.select},position:4,execute:()=>{const r=new Set(e.filter(Wi("selected")).map(du)),n=new Set(e.filter(Wi("visible")).map(du));i.selectObjects(Array.from(aBi(n,r)),{exclusive:!0})},predicate:()=>e.some(kc(Su("selected"),Wi("visible")))&&e.some(kc(Wi("selected"),Wi("visible")))},{name:"showAll",get group(){return t.groupPositions.visibility},position:1,get label(){return t.$t("context_menu.show_all")},get picto(){return o.get(this.name)},execute:()=>i.showObjects(e.filter(Su("visible")).map(du)),predicate:()=>e.some(Su("visible"))},{name:"hide",get group(){return t.groupPositions.visibility},position:2,get label(){return t.$t("context_menu.hide")},get picto(){return o.get(this.name)},objectsToHide:null,execute(){const r=this.objectsToHide.filter(Wi("selected"));r.length>0&&i.deselectObjects(r.map(du)),i.hideObjects(this.objectsToHide.map(du))},predicate(){return this.objectsToHide=e.filter(kc(Wi("selected"),Wi("visible"))),this.objectsToHide.length>0}},{name:"hideAll",get group(){return t.groupPositions.visibility},position:3,get label(){return t.$t("context_menu.hide_all")},execute:()=>{const r=e.filter(Wi("visible"));r.some(Wi("selected"))&&i.deselectObjects(r.filter(Wi("selected")).map(du)),i.hideObjects(r.map(du))},predicate:()=>e.some(Wi("visible"))}].filter(r=>r.predicate()),cBi={components:{LiWrapper:nBi},inject:["$viewer"],data(){return{defaultPrevented:!1,displayed:!1,top:null,bottom:null,left:null,width:200,nextCommandId:1,currentCommands:[],contextCommands:[],registeredCommands:[],groupPositions:{select:10,visibility:20},asyncPredicateRunning:!1}},computed:{position(){return{top:this.top?this.top+"px":"unset",bottom:this.bottom?this.bottom+"px":"unset",left:this.left+"px",width:this.width+"px"}}},watch:{displayed(t){t?document.addEventListener("keydown",this.onKeyDown):document.removeEventListener("keydown",this.onKeyDown)}},created(){this.$viewer.contextMenu=this,this.asyncPredicates=new Set},methods:{onKeyDown(t){t.key==="Escape"&&this.away()},setPosition(t){const e=(document.fullscreenElement?document.fullscreenElement:this.$parent.$el).getBoundingClientRect();this.left=t.clientX-e.left,this.top=t.clientY-e.top,this.left+this.width>e.width&&(this.left=this.left-this.width),t.clientY>e.top+e.height/2?(this.bottom=e.height-this.top,this.top=null):this.bottom=null},typeCheckCommand(t={}){let e=null;if((!t.execute||typeof t.execute!="function")&!t.component&&(e="Cannot register context menu command. A command must have an execute function or a component property."),t.label||(e="Cannot register context menu command. A command must have a label."),e)throw console.error(e),new Error(e);return t.id=this.nextCommandId++,t},open(t){this.currentCommands=[],this.setPosition(t),this.originEvent=t,t.preventDefault(),this.setCurrentCommands(),this.groupCurrentCommands(),this.defaultPrevented=!1,this.displayed=!0,document.fullscreenElement?(this.$el.parentElement.removeChild(this.$el),this.adoptiveParent=document.fullscreenElement,this.adoptiveParent.appendChild(this.$el)):this.adoptiveParent&&this.adoptiveParent!==this.$viewer.globalContext.el&&(this.adoptiveParent.removeChild(this.$el),this.$viewer.globalContext.el.appendChild(this.$el),this.adoptiveParent=null)},setCurrentCommands(){this.asyncPredicates.clear(),this.asyncPredicateRunning=!1,this.defaultPrevented||this.registeredCommands.forEach(async t=>{if(typeof t.predicate=="function"){const e=t.predicate(this.$viewer.globalContext.activeLocalContext);if(e===!0)this.currentCommands.push(t);else if(typeof e?.then=="function"){this.asyncPredicates.add(e),this.asyncPredicateRunning=!0;const i=await e;this.asyncPredicates.has(e)&&(this.asyncPredicates.delete(e),this.asyncPredicateRunning=this.asyncPredicates.size>0,i===!0&&this.currentCommands.push(t))}}else this.currentCommands.push(t)}),this.currentCommands.push(...this.contextCommands),this.contextCommands=[]},getDefaultCommands({objects:t=[],state:e=this.$viewer.state,context:i=null}){const o=new Map;return i&&this.$viewer.shortcutManager.getShortcuts(i).forEach(r=>o.set(r.name,r.key)),lBi({contextMenu:this,objects:t,state:e,pictos:o})},executeCommand(t){if(t.execute&&(t.execute(this.originEvent),this.displayed=!1),t.component&&!t.menu)throw new Error("Command with component property must have a `menu` property")},away(){this.displayed=!1},groupCurrentCommands(){const t=new Map;this.currentCommands.forEach(i=>{(i.group===null||i.group===void 0)&&(i.group=0),t.has(i.group)?t.get(i.group).push(i):t.set(i.group,[i])}),t.forEach(i=>i.sort((o,r)=>(o.position=o.position||0,r.position=r.position||0,o.position-r.position)));const e=[...t.keys()].sort((i,o)=>i-o).map(i=>t.get(i)).flat();this.currentCommands=e},isGroupIntersection(t){if(t===0)return!1;const e=this.currentCommands[t-1],i=this.currentCommands[t];return e.group<i.group},registerContextCommand(t){const e=this.typeCheckCommand(t);return this.contextCommands.push(e),t.id},registerCommand(t){const e=this.typeCheckCommand(t);return this.registeredCommands.push(e),t.id},unregisterCommand(t){return this.registeredCommands.find(e=>e.id===t)?(this.registeredCommands=this.registeredCommands.filter(e=>e.id!==t),!0):!1},preventDefault(){this.defaultPrevented=!0}}},uBi={key:0,class:"separator"},dBi={class:"menu-text"},hBi={key:1,class:"menu-picto"},pBi={key:0,class:"context-menu__spinner"};function ABi(t,e,i,o,r,n){const s=z("BIMDataIconChevron"),a=z("LiWrapper"),l=z("BIMDataSpinner"),c=Vi("click-away");return r.displayed&&(r.currentCommands.length||r.asyncPredicateRunning)?Tt((D(),U("ul",{key:0,class:"bimdata-list context-menu",style:xe(n.position)},[(D(!0),U(Mt,null,Xt(r.currentCommands,(u,d)=>(D(),oe(a,{key:u.label,class:"context-menu__element",onClick:h=>n.executeCommand(u)},{default:J(()=>[n.isGroupIntersection(d)?(D(),U("div",uBi)):Ie("",!0),v("div",dBi,q(u.label),1),!u.component&&u.picto?(D(),U("span",hBi,q(u.picto),1)):u.component?(D(),oe(s,{key:2,size:"xxs",class:"fill-primary"})):Ie("",!0)]),_:2},1032,["onClick"]))),128)),r.asyncPredicateRunning?(D(),U("li",pBi,[O(l)])):Ie("",!0)],4)),[[c,n.away]]):Ie("",!0)}const gBi=W(cBi,[["render",ABi],["__scopeId","data-v-5b87d4a3"]]),MBi={name:"ViewerHeader",inject:["$viewer"],props:{visible:{type:Boolean,default:!0}},setup(){const t=Pt("$viewer"),e=ya(new Map),i=r=>{if(!r.name)throw new TypeError("[Viewer Header] Content must have a name");if(e.has(r.name))throw new Error(`[Viewer Header] Content with name ${r.name} already exists`);e.set(r.name,r)},o=r=>e.has(r)?(e.delete(r),!0):!1;return{logo:t.uiSettings.bimdataLogo!==!1,version:t.uiSettings.version!==!1?t.version:null,headerContent:e,headerRightContentComponents:gt(()=>Array.from(e.values()).filter(r=>r.position==="right").sort((r,n)=>r.order-n.order).map(r=>r.component)),headerLeftContentComponents:gt(()=>Array.from(e.values()).filter(r=>r.position==="left").sort((r,n)=>r.order-n.order).map(r=>r.component)),addContent:i,removeContent:o}}},fBi={class:"viewer-header"},wBi={class:"viewer-header__content"},LBi={class:"viewer-header__content__left"},mBi={class:"viewer-header__content__right"},yBi={key:0,class:"m-l-6 flex items-center"},vBi={key:1,class:"viewer-header__version"};function CBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return Tt((D(),U("div",fBi,[v("div",wBi,[v("div",LBi,[(D(!0),U(Mt,null,Xt(o.headerLeftContentComponents,a=>(D(),oe(Er(a),{key:a.name}))),128))]),v("div",mBi,[(D(!0),U(Mt,null,Xt(o.headerRightContentComponents,a=>(D(),oe(Er(a),{key:a.name}))),128))])]),o.logo||o.version?(D(),U("div",yBi,[o.logo?(D(),oe(s,{key:0,name:"logo",width:"30px",height:"30px"})):Ie("",!0),o.version?(D(),U("div",vBi,q(o.version),1)):Ie("",!0)])):Ie("",!0)],512)),[[Ai,i.visible]])}const IBi=W(MBi,[["render",CBi],["__scopeId","data-v-5c9ea6b6"]]),jBi={name:"BimdataViewer",components:{ContextMenu:gBi,ViewerHeader:IBi,ModalManager:Khe},setup(){const t=Pt("$viewer"),{globalContext:e,shortcutManager:i}=t;Oo(()=>{i&&i.destroy(),e.hub.clear()}),go(()=>{t.pluginManager.runPluginsScripts(t)});const o=gt(()=>{var d;return t.uiSettings.bimdataLogo!==!1&&(e.localContexts.length!==1||((d=e.localContexts[0].window)==null?void 0:d.logoAndVersion))}),r=gt(()=>{var d;return t.uiSettings.version!==!1&&(e.localContexts.length!==1||(d=e.localContexts[0].window)!=null&&d.logoAndVersion)?t.version:null}),n=gt(()=>{var d,h;return t.uiSettings.header!==!1&&!(e.localContexts.length===1&&((h=(d=e.localContexts[0])==null?void 0:d.window)==null?void 0:h.header)===!1)}),s=t.uiSettings.contextMenu!==!1,a=Je(null);function l(d){s&&a.value.open(d)}function c(){t.shortcutManager.active=!0}function u(){t.shortcutManager.active=!1}return{Layout:t.layout.areas.component,onContextMenu:l,onMouseenter:c,onMouseleave:u,isHeaderVisible:n,viewerTemplateRef:e.templateRef,modalManagerTemplateRef:e.modalManagerTemplateRef,headerTemplateRef:e.headerTemplateRef,contextMenuTemplateRef:a,contextMenuEnabled:s,bimdataLogoOnSingleWindow:o,viewerVersionOnSingleWindow:r,version:t.version,loading:gt(()=>e.loading),spinner:gt(()=>e.spinner)}}},bBi={key:1,class:"global-spinner",style:{"z-index":"3"}},xBi={key:2,class:"viewer__logo"},DBi={key:1,class:"version m-t-6"};function NBi(t,e,i,o,r,n){const s=z("ModalManager"),a=z("ContextMenu"),l=z("ViewerHeader"),c=z("BIMDataSpinner"),u=z("BIMDataIllustration");return D(),U("div",{id:"bimdata-viewer",ref:"viewerTemplateRef",class:"bimdata-viewer bimdata-scrollbar",onContextmenu:e[0]||(e[0]=(...d)=>o.onContextMenu&&o.onContextMenu(...d)),onMouseenter:e[1]||(e[1]=(...d)=>o.onMouseenter&&o.onMouseenter(...d)),onMouseleave:e[2]||(e[2]=(...d)=>o.onMouseleave&&o.onMouseleave(...d))},[O(s,{ref:"modalManagerTemplateRef"},null,512),o.contextMenuEnabled?(D(),oe(a,{key:0,ref:"contextMenuTemplateRef"},null,512)):Ie("",!0),O(l,{ref:"headerTemplateRef",visible:o.isHeaderVisible},null,8,["visible"]),(D(),oe(Er(o.Layout),{style:xe(o.isHeaderVisible?"height: calc(100% - var(--bimdata-viewer-header-height, 40px))":"height: 100%")},null,8,["style"])),o.loading?(D(),U("div",bBi,[o.spinner&&o.spinner.component?(D(),oe(Er(o.spinner.component),Eu(nl({key:0},o.spinner.props)),null,16)):(D(),oe(c,{key:1,size:"40px",border:"5px"}))])):Ie("",!0),!o.isHeaderVisible&&(o.bimdataLogoOnSingleWindow||o.viewerVersionOnSingleWindow)?(D(),U("div",xBi,[o.bimdataLogoOnSingleWindow?(D(),oe(u,{key:0,name:"logo"})):Ie("",!0),o.viewerVersionOnSingleWindow?(D(),U("div",DBi,q(o.version),1)):Ie("",!0)])):Ie("",!0)],544)}const SBi=W(jBi,[["render",NBi]]),kBi=["src"],TBi={class:"bimdata-models__header"},EBi={key:0,class:"bimdata-models__header__loader"},zBi={class:"bimdata-models__header__picto"},PBi={class:"bimdata-models__header__name"},BBi={key:0,class:"bimdata-models__header__name--empty"},OBi={key:1,class:"bimdata-models__header__name--empty"},RBi={key:3},UBi=["onMousemove","onClick"],t0e={__name:"Models",props:{preview:{type:Boolean,default:!1},windowPositioning:{type:Boolean,default:!0},customFilter:{type:Function,default:null},width:{type:String,default:"350px"}},setup(t){const e=t,i=Pt("$viewer"),o=Je(),r=Je(0),n=Je(0),s=Je(),a=dr([]),l=Je(!1),c=gt(()=>i.localContext.loadedModels),u=gt(()=>i.localContext.loadedModelIds),d=gt(()=>i.localContext.loadingModelIds),h=gt(()=>i.localContext.multiModel),p=gt(()=>(e.customFilter?a.value.filter(e.customFilter):a.value).map(I=>c.value.find(b=>{var j;return((j=b.document)==null?void 0:j.head_id)!=null&&b.document.head_id===I.document.id})??I)),g=I=>u.value.includes(I),A=I=>d.value.includes(I),M=gt(()=>{var I;const{x:b,y:j}=((I=s.value)==null?void 0:I.getBoundingClientRect())??{x:0,y:0};return`top:${n.value-j}px; left:${r.value-b}px;`}),f=I=>{!h.value&&g(I.id)||d.value.length>0||(i.localContext.loadedModelIds.includes(I.id)?i.localContext.unloadModels([I.id]):i.localContext.loadModels([I.id]))},L=I=>{switch(I){case"C":return"success";case"E":return"failed";case"P":case"I":return"sandglass"}},w=(I,b)=>{I!=null&&I.viewer_360_file&&(r.value=b.clientX,n.value=b.clientY),o.value=I?.viewer_360_file},m=async I=>{l.value=!0;try{return(await i.api.apiClient.modelApi.getModels(i.api.cloudId,i.api.projectId,void 0,void 0,I)).filter(b=>i.state.models.some(j=>j.archived)||!b.archived).sort(Zh("updated_at",!1))}catch(b){console.error("[Models] Cannot get project models. Error: ",b)}finally{l.value=!1}return[]},C=I=>{var b;return((b=I.children)==null?void 0:b.some(j=>g(j.id)))??!1};return m(i.localContext.modelTypes).then(I=>{a.value=I}),(I,b)=>{const j=z("BIMDataSpinner"),T=z("BIMDataIconModel3D"),P=z("BIMDataTextbox"),S=z("BIMDataCheckbox"),k=z("BIMDataRadio"),R=z("BIMDataIcon"),Y=z("BIMDataDropdownList");return D(),U("div",{ref_key:"templateRef",ref:s,class:be(["bimdata-models",{"bimdata-models--window-positioning":t.windowPositioning}])},[o.value?(D(),U("div",{key:0,class:"bimdata-models__preview",style:xe(M.value)},[v("img",{src:o.value},null,8,kBi)],4)):Ie("",!0),O(Y,{style:xe(`--bimdata-models-width: ${t.width};`),width:t.width,list:p.value,"element-key":"id","per-page":40,loading:l.value,class:"bimdata-models__list",disabled:p.value.length===0,onElementClick:f},{header:J(({isOpen:V})=>[v("div",TBi,[l.value?(D(),U("div",EBi,[O(j)])):(D(),U(Mt,{key:1},[v("div",zBi,[O(T)]),v("div",{class:be(["bimdata-models__header__number bimdata-info-length",{"bimdata-models__header__number--empty":u.value.length===0}])},[v("span",null,q(u.value.length),1)],2),v("div",PBi,[p.value.length===0?(D(),U("span",BBi,q(I.$t("model.no_model")),1)):u.value.length===0?(D(),U("span",OBi,q(I.$t("model.no_loaded_model")),1)):u.value.length===1?(D(),oe(P,{key:2,text:c.value[0].name,tooltip:!V},null,8,["text","tooltip"])):u.value.length>1?(D(),U("span",RBi,q(I.$t("model.selected_models")),1)):Ie("",!0)])],64))])]),element:J(({element:V,close:H})=>[v("div",{class:"bimdata-models__model",onMousemove:_=>t.preview&&w(V,_),onMouseout:b[0]||(b[0]=_=>t.preview&&w()),onClick:()=>{!h.value&&!g(V.id)&&H()}},[h.value?(D(),oe(S,{key:0,"model-value":g(V.id)||C(V),disabled:V.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])):(D(),oe(k,{key:1,"model-value":g(V.id)||C(V),disabled:V.status!=="C"||d.value.length>0},null,8,["model-value","disabled"])),O(R,{margin:"0 calc(var(--spacing-unit) / 2)",name:L(V.status),size:"xs",class:be({"fill-success":V.status==="C","fill-high":V.status==="E"})},null,8,["name","class"]),O(P,{class:be({"bimdata-models__model__name":!0,"bimdata-models__model__name--disabled":V.status!=="C"||d.value.length>0}),text:V.name,width:`calc(100% -
|
|
1871
|
+
${h.value?13:23}px - 2 * 6px - 16px)`},null,8,["class","text","width"]),V.document&&!V.document.is_head_version?(D(),oe(R,{key:2,name:"versioning",fill:"",color:"default",size:"xs",margin:"0 0 0 6px"})):Ie("",!0)],40,UBi),A(V.id)?(D(),oe(j,{key:0,class:"bimdata-models__model__spinner"})):Ie("",!0)]),_:1},8,["style","width","list","loading","disabled"])],2)}}},FBi={data(){return{shown:!1}},mounted(){setTimeout(()=>{this.shown=!0},500)}};function YBi(t,e,i,o,r,n){const s=z("BIMDataIllustration");return D(),U("div",{class:"bimdata__no-model",style:xe({"--no-model--opacity":r.shown?1:0})},[O(s,{name:"emptyViewer",x:"90",y:"90"}),v("span",null,q(t.$t("model.select_model")),1)],4)}const i0e=W(FBi,[["render",YBi],["__scopeId","data-v-54b49e82"]]);window.BIMDataViewerVue=KQ;class QBi{constructor(e={}){var i,o;const{api:r={},ui:n}=e;this.uiCfg=n,r.apiUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `apiUrl` not set, use 'https://api.bimdata.io' by default."),r.apiUrl="https://api.bimdata.io"),r.archiveUrl||(console.info("[BIMData Viewer] INFO - Viewer config - `archiveUrl` not set, use 'https://archive.bimdata.io' by default."),r.archiveUrl="https://archive.bimdata.io"),r.ifcIds&&(console.warn("[BIMData Viewer] DEPRECATED - Viewer config - please use the `modelIds` property instead of `ifcIds`."),r.modelIds===void 0&&(r.modelIds=r.ifcIds)),r.modelIds||(r.modelIds=[]),(i=r.offline)!=null&&i.dataFile&&(r.offline.data=r.offline.dataFile),this.$viewer=new vPi(e),(o=r.offline)!=null&&o.enabled?this.$viewer.api.enableOfflineMode(r.offline.data,r.offline.options).then(()=>this.state.loadModels(r.modelIds)):this.state.loadModels(r.modelIds),this.vueApp=null}get state(){return this.$viewer.state}get api(){return this.$viewer.api}async mount(e,i="3d"){var o;const{$viewer:r}=this;await r.api.ready;try{const d=await r.api.apiClient.collaborationApi.checkProjectAccess(r.api.cloudId,r.api.projectId);r.api.permissions=e0e(d)}catch{r.api.permissions=e0e()}const n=this.api.accessToken,{i18n:s}=r;s.registerTranslations(r.pluginManager.pluginTranslations),r.layout.apply(i);const a={i18n:s.i18nVuePlugin,data(){return{accessToken:n}},render(){return Yi(SBi,{style:"height: 100%"})}},l=nN(a).use(s.i18nVuePlugin).use(sBi()).use(iBi({i18nPlugin:s.i18nVuePlugin})).use(OPi({apiClient:r.api.apiClient,i18nPlugin:s.i18nVuePlugin}));l.provide("$viewer",r),l.component("BIMDataModelLoader",t0e),l.component("BIMDataNoModelWindowPlaceHolder",i0e),l.component("BIMDataStoreySelector",l7),l.component("ModelsLoader",t0e),l.component("NoModelWindowPlaceHolder",i0e);const c=e instanceof HTMLElement?e:document.querySelector(e);c&&(c.style.height="100%");const u=l.mount(e);return u.$viewer=r,CPi(u.$el,(o=this.uiCfg)==null?void 0:o.style),typeof window<"u"&&(window.bimdataViewer=u),this.vueApp=l,u}destroy(){var e;(e=this.vueApp)==null||e.unmount()}setLocale(e){if(!hG.includes(e))throw new Error(`Viewer available locales are ${hG.join(", ")}.`);this.$viewer.i18n.locale=e}registerPlugin(e){this.$viewer.registerPlugin(e)}registerWindow(e){return this.$viewer.windowManager.registerWindow(e)}unregisterWindow(e){return this.$viewer.windowManager.unregisterWindow(e)}setAccessToken(e){this.api.accessToken=e}async loadModels(e){this.$viewer.globalContext.loadingProcessStart();const i=await this.state.loadModels(e);return this.$viewer.globalContext.loadingProcessEnd(),i}loadIfcs(e){return console.warn("[BIMData Viewer] DEPRECATED - Viewer - please use the loadModels method instead of loadIfcs."),this.loadModels(e)}}const o0e=(t={})=>new QBi(t);window.makeBIMDataViewer=o0e;/*! @license DOMPurify 2.5.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.0/LICENSE */function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Uz(t,e){return Uz=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},Uz(t,e)}function GBi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ix(t,e,i){return GBi()?ix=Reflect.construct:ix=function(o,r,n){var s=[null];s.push.apply(s,r);var a=Function.bind.apply(o,s),l=new a;return n&&Uz(l,n.prototype),l},ix.apply(null,arguments)}function Mc(t){return HBi(t)||VBi(t)||ZBi(t)||JBi()}function HBi(t){if(Array.isArray(t))return Fz(t)}function VBi(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ZBi(t,e){if(t){if(typeof t=="string")return Fz(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Fz(t,e)}}function Fz(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i<e;i++)o[i]=t[i];return o}function JBi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1872
1872
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var WBi=Object.hasOwnProperty,r0e=Object.setPrototypeOf,KBi=Object.isFrozen,_Bi=Object.getPrototypeOf,qBi=Object.getOwnPropertyDescriptor,Rn=Object.freeze,Il=Object.seal,XBi=Object.create,s0e=typeof Reflect<"u"&&Reflect,ox=s0e.apply,Yz=s0e.construct;ox||(ox=function(t,e,i){return t.apply(e,i)}),Rn||(Rn=function(t){return t}),Il||(Il=function(t){return t}),Yz||(Yz=function(t,e){return ix(t,Mc(e))});var $Bi=jl(Array.prototype.forEach),n0e=jl(Array.prototype.pop),sv=jl(Array.prototype.push),rx=jl(String.prototype.toLowerCase),Qz=jl(String.prototype.toString),a0e=jl(String.prototype.match),fc=jl(String.prototype.replace),eOi=jl(String.prototype.indexOf),tOi=jl(String.prototype.trim),gn=jl(RegExp.prototype.test),Gz=iOi(TypeError);function jl(t){return function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return ox(t,e,o)}}function iOi(t){return function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return Yz(t,i)}}function Ui(t,e,i){var o;i=(o=i)!==null&&o!==void 0?o:rx,r0e&&r0e(t,null);for(var r=e.length;r--;){var n=e[r];if(typeof n=="string"){var s=i(n);s!==n&&(KBi(e)||(e[r]=s),n=s)}t[n]=!0}return t}function o1(t){var e=XBi(null),i;for(i in t)ox(WBi,t,[i])===!0&&(e[i]=t[i]);return e}function sx(t,e){for(;t!==null;){var i=qBi(t,e);if(i){if(i.get)return jl(i.get);if(typeof i.value=="function")return jl(i.value)}t=_Bi(t)}function o(r){return console.warn("fallback value for",r),null}return o}var l0e=Rn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hz=Rn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vz=Rn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),oOi=Rn(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zz=Rn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),rOi=Rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),c0e=Rn(["#text"]),u0e=Rn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Jz=Rn(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),d0e=Rn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nx=Rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sOi=Il(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nOi=Il(/<%[\w\W]*|[\w\W]*%>/gm),aOi=Il(/\${[\w\W]*}/gm),lOi=Il(/^data-[\-\w.\u00B7-\uFFFF]/),cOi=Il(/^aria-[\-\w]+$/),uOi=Il(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dOi=Il(/^(?:\w+script|data):/i),hOi=Il(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pOi=Il(/^html$/i),AOi=Il(/^[a-z][.\w]*(-[.\w]+)+$/i),gOi=function(){return typeof window>"u"?null:window},MOi=function(t,e){if(H0(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(o)&&(i=e.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(n){return n},createScriptURL:function(n){return n}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function h0e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gOi(),e=function(Ye){return h0e(Ye)};if(e.version="2.5.0",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var i=t.document,o=t.document,r=t.DocumentFragment,n=t.HTMLTemplateElement,s=t.Node,a=t.Element,l=t.NodeFilter,c=t.NamedNodeMap,u=c===void 0?t.NamedNodeMap||t.MozNamedAttrMap:c,d=t.HTMLFormElement,h=t.DOMParser,p=t.trustedTypes,g=a.prototype,A=sx(g,"cloneNode"),M=sx(g,"nextSibling"),f=sx(g,"childNodes"),L=sx(g,"parentNode");if(typeof n=="function"){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var m=MOi(p,i),C=m?m.createHTML(""):"",I=o,b=I.implementation,j=I.createNodeIterator,T=I.createDocumentFragment,P=I.getElementsByTagName,S=i.importNode,k={};try{k=o1(o).documentMode?o.documentMode:{}}catch{}var R={};e.isSupported=typeof L=="function"&&b&&b.createHTMLDocument!==void 0&&k!==9;var Y=sOi,V=nOi,H=aOi,_=lOi,X=cOi,ce=dOi,de=hOi,Te=AOi,Z=uOi,ie=null,he=Ui({},[].concat(Mc(l0e),Mc(Hz),Mc(Vz),Mc(Zz),Mc(c0e))),ee=null,ae=Ui({},[].concat(Mc(u0e),Mc(Jz),Mc(d0e),Mc(nx))),Me=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,je=null,Be=!0,Fe=!0,We=!1,ue=!0,me=!1,fe=!0,se=!1,Re=!1,ze=!1,De=!1,$=!1,te=!1,ve=!0,Se=!1,we="user-content-",Ee=!0,He=!1,Ze={},wt=null,at=Ui({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),rt=null,ht=Ui({},["audio","video","img","source","image","track"]),ut=null,Ft=Ui({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml",st=Ve,Xe=!1,Nt=null,jt=Ui({},[Ge,et,Ve],Qz),Vt,Ot=["application/xhtml+xml","text/html"],ft="text/html",St,Et=null,Pi=o.createElement("form"),Zi=function(Ye){return Ye instanceof RegExp||Ye instanceof Function},wi=function(Ye){Et&&Et===Ye||((!Ye||H0(Ye)!=="object")&&(Ye={}),Ye=o1(Ye),Vt=Ot.indexOf(Ye.PARSER_MEDIA_TYPE)===-1?Vt=ft:Vt=Ye.PARSER_MEDIA_TYPE,St=Vt==="application/xhtml+xml"?Qz:rx,ie="ALLOWED_TAGS"in Ye?Ui({},Ye.ALLOWED_TAGS,St):he,ee="ALLOWED_ATTR"in Ye?Ui({},Ye.ALLOWED_ATTR,St):ae,Nt="ALLOWED_NAMESPACES"in Ye?Ui({},Ye.ALLOWED_NAMESPACES,Qz):jt,ut="ADD_URI_SAFE_ATTR"in Ye?Ui(o1(Ft),Ye.ADD_URI_SAFE_ATTR,St):Ft,rt="ADD_DATA_URI_TAGS"in Ye?Ui(o1(ht),Ye.ADD_DATA_URI_TAGS,St):ht,wt="FORBID_CONTENTS"in Ye?Ui({},Ye.FORBID_CONTENTS,St):at,Ce="FORBID_TAGS"in Ye?Ui({},Ye.FORBID_TAGS,St):{},je="FORBID_ATTR"in Ye?Ui({},Ye.FORBID_ATTR,St):{},Ze="USE_PROFILES"in Ye?Ye.USE_PROFILES:!1,Be=Ye.ALLOW_ARIA_ATTR!==!1,Fe=Ye.ALLOW_DATA_ATTR!==!1,We=Ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=Ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=Ye.SAFE_FOR_TEMPLATES||!1,fe=Ye.SAFE_FOR_XML!==!1,se=Ye.WHOLE_DOCUMENT||!1,De=Ye.RETURN_DOM||!1,$=Ye.RETURN_DOM_FRAGMENT||!1,te=Ye.RETURN_TRUSTED_TYPE||!1,ze=Ye.FORCE_BODY||!1,ve=Ye.SANITIZE_DOM!==!1,Se=Ye.SANITIZE_NAMED_PROPS||!1,Ee=Ye.KEEP_CONTENT!==!1,He=Ye.IN_PLACE||!1,Z=Ye.ALLOWED_URI_REGEXP||Z,st=Ye.NAMESPACE||Ve,Me=Ye.CUSTOM_ELEMENT_HANDLING||{},Ye.CUSTOM_ELEMENT_HANDLING&&Zi(Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&Zi(Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&typeof Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),me&&(Fe=!1),$&&(De=!0),Ze&&(ie=Ui({},Mc(c0e)),ee=[],Ze.html===!0&&(Ui(ie,l0e),Ui(ee,u0e)),Ze.svg===!0&&(Ui(ie,Hz),Ui(ee,Jz),Ui(ee,nx)),Ze.svgFilters===!0&&(Ui(ie,Vz),Ui(ee,Jz),Ui(ee,nx)),Ze.mathMl===!0&&(Ui(ie,Zz),Ui(ee,d0e),Ui(ee,nx))),Ye.ADD_TAGS&&(ie===he&&(ie=o1(ie)),Ui(ie,Ye.ADD_TAGS,St)),Ye.ADD_ATTR&&(ee===ae&&(ee=o1(ee)),Ui(ee,Ye.ADD_ATTR,St)),Ye.ADD_URI_SAFE_ATTR&&Ui(ut,Ye.ADD_URI_SAFE_ATTR,St),Ye.FORBID_CONTENTS&&(wt===at&&(wt=o1(wt)),Ui(wt,Ye.FORBID_CONTENTS,St)),Ee&&(ie["#text"]=!0),se&&Ui(ie,["html","head","body"]),ie.table&&(Ui(ie,["tbody"]),delete Ce.tbody),Rn&&Rn(Ye),Et=Ye)},Zo=Ui({},["mi","mo","mn","ms","mtext"]),Wt=Ui({},["foreignobject","desc","title","annotation-xml"]),Es=Ui({},["title","style","font","a","script"]),Mr=Ui({},Hz);Ui(Mr,Vz),Ui(Mr,oOi);var yo=Ui({},Zz);Ui(yo,rOi);var zo=function(Ye){var Yt=L(Ye);(!Yt||!Yt.tagName)&&(Yt={namespaceURI:st,tagName:"template"});var kt=rx(Ye.tagName),Fi=rx(Yt.tagName);return Nt[Ye.namespaceURI]?Ye.namespaceURI===et?Yt.namespaceURI===Ve?kt==="svg":Yt.namespaceURI===Ge?kt==="svg"&&(Fi==="annotation-xml"||Zo[Fi]):!!Mr[kt]:Ye.namespaceURI===Ge?Yt.namespaceURI===Ve?kt==="math":Yt.namespaceURI===et?kt==="math"&&Wt[Fi]:!!yo[kt]:Ye.namespaceURI===Ve?Yt.namespaceURI===et&&!Wt[Fi]||Yt.namespaceURI===Ge&&!Zo[Fi]?!1:!yo[kt]&&(Es[kt]||!Mr[kt]):!!(Vt==="application/xhtml+xml"&&Nt[Ye.namespaceURI]):!1},vo=function(Ye){sv(e.removed,{element:Ye});try{Ye.parentNode.removeChild(Ye)}catch{try{Ye.outerHTML=C}catch{Ye.remove()}}},ar=function(Ye,Yt){try{sv(e.removed,{attribute:Yt.getAttributeNode(Ye),from:Yt})}catch{sv(e.removed,{attribute:null,from:Yt})}if(Yt.removeAttribute(Ye),Ye==="is"&&!ee[Ye])if(De||$)try{vo(Yt)}catch{}else try{Yt.setAttribute(Ye,"")}catch{}},Va=function(Ye){var Yt,kt;if(ze)Ye="<remove></remove>"+Ye;else{var Fi=a0e(Ye,/^[\r\n\t ]+/);kt=Fi&&Fi[0]}Vt==="application/xhtml+xml"&&st===Ve&&(Ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ye+"</body></html>");var Po=m?m.createHTML(Ye):Ye;if(st===Ve)try{Yt=new h().parseFromString(Po,Vt)}catch{}if(!Yt||!Yt.documentElement){Yt=b.createDocument(st,"template",null);try{Yt.documentElement.innerHTML=Xe?C:Po}catch{}}var os=Yt.body||Yt.documentElement;return Ye&&kt&&os.insertBefore(o.createTextNode(kt),os.childNodes[0]||null),st===Ve?P.call(Yt,se?"html":"body")[0]:se?Yt.documentElement:os},fn=function(Ye){return j.call(Ye.ownerDocument||Ye,Ye,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null,!1)},Ws=function(Ye){return Ye instanceof d&&(typeof Ye.nodeName!="string"||typeof Ye.textContent!="string"||typeof Ye.removeChild!="function"||!(Ye.attributes instanceof u)||typeof Ye.removeAttribute!="function"||typeof Ye.setAttribute!="function"||typeof Ye.namespaceURI!="string"||typeof Ye.insertBefore!="function"||typeof Ye.hasChildNodes!="function")},lr=function(Ye){return H0(s)==="object"?Ye instanceof s:Ye&&H0(Ye)==="object"&&typeof Ye.nodeType=="number"&&typeof Ye.nodeName=="string"},cr=function(Ye,Yt,kt){R[Ye]&&$Bi(R[Ye],function(Fi){Fi.call(e,Yt,kt,Et)})},Ks=function(Ye){var Yt;if(cr("beforeSanitizeElements",Ye,null),Ws(Ye)||gn(/[\u0080-\uFFFF]/,Ye.nodeName))return vo(Ye),!0;var kt=St(Ye.nodeName);if(cr("uponSanitizeElement",Ye,{tagName:kt,allowedTags:ie}),Ye.hasChildNodes()&&!lr(Ye.firstElementChild)&&(!lr(Ye.content)||!lr(Ye.content.firstElementChild))&&gn(/<[/\w]/g,Ye.innerHTML)&&gn(/<[/\w]/g,Ye.textContent)||kt==="select"&&gn(/<template/i,Ye.innerHTML)||Ye.nodeType===7||fe&&Ye.nodeType===8&&gn(/<[/\w]/g,Ye.data))return vo(Ye),!0;if(!ie[kt]||Ce[kt]){if(!Ce[kt]&&_s(kt)&&(Me.tagNameCheck instanceof RegExp&&gn(Me.tagNameCheck,kt)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(kt)))return!1;if(Ee&&!wt[kt]){var Fi=L(Ye)||Ye.parentNode,Po=f(Ye)||Ye.childNodes;if(Po&&Fi)for(var os=Po.length,xo=os-1;xo>=0;--xo)Fi.insertBefore(A(Po[xo],!0),M(Ye))}return vo(Ye),!0}return Ye instanceof a&&!zo(Ye)||(kt==="noscript"||kt==="noembed"||kt==="noframes")&&gn(/<\/no(script|embed|frames)/i,Ye.innerHTML)?(vo(Ye),!0):(me&&Ye.nodeType===3&&(Yt=Ye.textContent,Yt=fc(Yt,Y," "),Yt=fc(Yt,V," "),Yt=fc(Yt,H," "),Ye.textContent!==Yt&&(sv(e.removed,{element:Ye.cloneNode()}),Ye.textContent=Yt)),cr("afterSanitizeElements",Ye,null),!1)},Ms=function(Ye,Yt,kt){if(ve&&(Yt==="id"||Yt==="name")&&(kt in o||kt in Pi))return!1;if(!(Fe&&!je[Yt]&&gn(_,Yt))&&!(Be&&gn(X,Yt))){if(!ee[Yt]||je[Yt]){if(!(_s(Ye)&&(Me.tagNameCheck instanceof RegExp&&gn(Me.tagNameCheck,Ye)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(Ye))&&(Me.attributeNameCheck instanceof RegExp&&gn(Me.attributeNameCheck,Yt)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(Yt))||Yt==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&gn(Me.tagNameCheck,kt)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(kt))))return!1}else if(!ut[Yt]&&!gn(Z,fc(kt,de,""))&&!((Yt==="src"||Yt==="xlink:href"||Yt==="href")&&Ye!=="script"&&eOi(kt,"data:")===0&&rt[Ye])&&!(We&&!gn(ce,fc(kt,de,"")))&&kt)return!1}return!0},_s=function(Ye){return Ye!=="annotation-xml"&&a0e(Ye,Te)},qs=function(Ye){var Yt,kt,Fi,Po;cr("beforeSanitizeAttributes",Ye,null);var os=Ye.attributes;if(os){var xo={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee};for(Po=os.length;Po--;){Yt=os[Po];var Ja=Yt,fs=Ja.name,fr=Ja.namespaceURI;if(kt=fs==="value"?Yt.value:tOi(Yt.value),Fi=St(fs),xo.attrName=Fi,xo.attrValue=kt,xo.keepAttr=!0,xo.forceKeepAttr=void 0,cr("uponSanitizeAttribute",Ye,xo),kt=xo.attrValue,!xo.forceKeepAttr&&(ar(fs,Ye),!!xo.keepAttr)){if(!ue&&gn(/\/>/i,kt)){ar(fs,Ye);continue}me&&(kt=fc(kt,Y," "),kt=fc(kt,V," "),kt=fc(kt,H," "));var Sd=St(Ye.nodeName);if(Ms(Sd,Fi,kt)){if(Se&&(Fi==="id"||Fi==="name")&&(ar(fs,Ye),kt=we+kt),m&&H0(p)==="object"&&typeof p.getAttributeType=="function"&&!fr)switch(p.getAttributeType(Sd,Fi)){case"TrustedHTML":{kt=m.createHTML(kt);break}case"TrustedScriptURL":{kt=m.createScriptURL(kt);break}}try{fr?Ye.setAttributeNS(fr,fs,kt):Ye.setAttribute(fs,kt),n0e(e.removed)}catch{}}}}cr("afterSanitizeAttributes",Ye,null)}},Za=function Ye(Yt){var kt,Fi=fn(Yt);for(cr("beforeSanitizeShadowDOM",Yt,null);kt=Fi.nextNode();)cr("uponSanitizeShadowNode",kt,null),!Ks(kt)&&(kt.content instanceof r&&Ye(kt.content),qs(kt));cr("afterSanitizeShadowDOM",Yt,null)};return e.sanitize=function(Ye){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kt,Fi,Po,os,xo;if(Xe=!Ye,Xe&&(Ye="<!-->"),typeof Ye!="string"&&!lr(Ye))if(typeof Ye.toString=="function"){if(Ye=Ye.toString(),typeof Ye!="string")throw Gz("dirty is not a string, aborting")}else throw Gz("toString is not a function");if(!e.isSupported){if(H0(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof Ye=="string")return t.toStaticHTML(Ye);if(lr(Ye))return t.toStaticHTML(Ye.outerHTML)}return Ye}if(Re||wi(Yt),e.removed=[],typeof Ye=="string"&&(He=!1),He){if(Ye.nodeName){var Ja=St(Ye.nodeName);if(!ie[Ja]||Ce[Ja])throw Gz("root node is forbidden and cannot be sanitized in-place")}}else if(Ye instanceof s)kt=Va("<!---->"),Fi=kt.ownerDocument.importNode(Ye,!0),Fi.nodeType===1&&Fi.nodeName==="BODY"||Fi.nodeName==="HTML"?kt=Fi:kt.appendChild(Fi);else{if(!De&&!me&&!se&&Ye.indexOf("<")===-1)return m&&te?m.createHTML(Ye):Ye;if(kt=Va(Ye),!kt)return De?null:te?C:""}kt&&ze&&vo(kt.firstChild);for(var fs=fn(He?Ye:kt);Po=fs.nextNode();)Po.nodeType===3&&Po===os||Ks(Po)||(Po.content instanceof r&&Za(Po.content),qs(Po),os=Po);if(os=null,He)return Ye;if(De){if($)for(xo=T.call(kt.ownerDocument);kt.firstChild;)xo.appendChild(kt.firstChild);else xo=kt;return(ee.shadowroot||ee.shadowrootmod)&&(xo=S.call(i,xo,!0)),xo}var fr=se?kt.outerHTML:kt.innerHTML;return se&&ie["!doctype"]&&kt.ownerDocument&&kt.ownerDocument.doctype&&kt.ownerDocument.doctype.name&&gn(pOi,kt.ownerDocument.doctype.name)&&(fr="<!DOCTYPE "+kt.ownerDocument.doctype.name+`>
|
|
1873
1873
|
`+fr),me&&(fr=fc(fr,Y," "),fr=fc(fr,V," "),fr=fc(fr,H," ")),m&&te?m.createHTML(fr):fr},e.setConfig=function(Ye){wi(Ye),Re=!0},e.clearConfig=function(){Et=null,Re=!1},e.isValidAttribute=function(Ye,Yt,kt){Et||wi({});var Fi=St(Ye),Po=St(Yt);return Ms(Fi,Po,kt)},e.addHook=function(Ye,Yt){typeof Yt=="function"&&(R[Ye]=R[Ye]||[],sv(R[Ye],Yt))},e.removeHook=function(Ye){if(R[Ye])return n0e(R[Ye])},e.removeHooks=function(Ye){R[Ye]&&(R[Ye]=[])},e.removeAllHooks=function(){R={}},e}var fOi=h0e();const wOi=Object.freeze(Object.defineProperty({__proto__:null,default:fOi},Symbol.toStringTag,{value:"Module"}));var nv=function(t){return t&&t.Math===Math&&t},Gr=nv(typeof globalThis=="object"&&globalThis)||nv(typeof window=="object"&&window)||nv(typeof self=="object"&&self)||nv(typeof hr=="object"&&hr)||nv(typeof hr=="object"&&hr)||function(){return this}()||Function("return this")(),av={},Hr=function(t){try{return!!t()}catch{return!0}},LOi=Hr,wc=!LOi(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),mOi=Hr,ax=!mOi(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),yOi=ax,lx=Function.prototype.call,Js=yOi?lx.bind(lx):function(){return lx.apply(lx,arguments)},p0e={},A0e={}.propertyIsEnumerable,g0e=Object.getOwnPropertyDescriptor,vOi=g0e&&!A0e.call({1:2},1);p0e.f=vOi?function(t){var e=g0e(this,t);return!!e&&e.enumerable}:A0e;var Wz=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},M0e=ax,f0e=Function.prototype,Kz=f0e.call,COi=M0e&&f0e.bind.bind(Kz,Kz),Vr=M0e?COi:function(t){return function(){return Kz.apply(t,arguments)}},w0e=Vr,IOi=w0e({}.toString),jOi=w0e("".slice),r1=function(t){return jOi(IOi(t),8,-1)},bOi=Vr,xOi=Hr,DOi=r1,_z=Object,NOi=bOi("".split),L0e=xOi(function(){return!_z("z").propertyIsEnumerable(0)})?function(t){return DOi(t)==="String"?NOi(t,""):_z(t)}:_z,s1=function(t){return t==null},SOi=s1,kOi=TypeError,Lc=function(t){if(SOi(t))throw new kOi("Can't call method on "+t);return t},TOi=L0e,EOi=Lc,lv=function(t){return TOi(EOi(t))},qz=typeof document=="object"&&document.all,Zr=typeof qz>"u"&&qz!==void 0?function(t){return typeof t=="function"||t===qz}:function(t){return typeof t=="function"},zOi=Zr,mc=function(t){return typeof t=="object"?t!==null:zOi(t)},Xz=Gr,POi=Zr,BOi=function(t){return POi(t)?t:void 0},n1=function(t,e){return arguments.length<2?BOi(Xz[t]):Xz[t]&&Xz[t][e]},OOi=Vr,cx=OOi({}.isPrototypeOf),ux=typeof navigator<"u"&&String(navigator.userAgent)||"",m0e=Gr,$z=ux,y0e=m0e.process,v0e=m0e.Deno,C0e=y0e&&y0e.versions||v0e&&v0e.version,I0e=C0e&&C0e.v8,yc,dx;I0e&&(yc=I0e.split("."),dx=yc[0]>0&&yc[0]<4?1:+(yc[0]+yc[1])),!dx&&$z&&(yc=$z.match(/Edge\/(\d+)/),(!yc||yc[1]>=74)&&(yc=$z.match(/Chrome\/(\d+)/),yc&&(dx=+yc[1])));var eP=dx,j0e=eP,ROi=Hr,UOi=Gr,FOi=UOi.String,b0e=!!Object.getOwnPropertySymbols&&!ROi(function(){var t=Symbol("symbol detection");return!FOi(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&j0e&&j0e<41}),YOi=b0e,x0e=YOi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",QOi=n1,GOi=Zr,HOi=cx,VOi=x0e,ZOi=Object,D0e=VOi?function(t){return typeof t=="symbol"}:function(t){var e=QOi("Symbol");return GOi(e)&&HOi(e.prototype,ZOi(t))},JOi=String,hx=function(t){try{return JOi(t)}catch{return"Object"}},WOi=Zr,KOi=hx,_Oi=TypeError,md=function(t){if(WOi(t))return t;throw new _Oi(KOi(t)+" is not a function")},qOi=md,XOi=s1,cf=function(t,e){var i=t[e];return XOi(i)?void 0:qOi(i)},tP=Js,iP=Zr,oP=mc,$Oi=TypeError,eRi=function(t,e){var i,o;if(e==="string"&&iP(i=t.toString)&&!oP(o=tP(i,t))||iP(i=t.valueOf)&&!oP(o=tP(i,t))||e!=="string"&&iP(i=t.toString)&&!oP(o=tP(i,t)))return o;throw new $Oi("Can't convert object to primitive value")},N0e={exports:{}},S0e=Gr,tRi=Object.defineProperty,rP=function(t,e){try{tRi(S0e,t,{value:e,configurable:!0,writable:!0})}catch{S0e[t]=e}return e},iRi=Gr,oRi=rP,k0e="__core-js_shared__",T0e=N0e.exports=iRi[k0e]||oRi(k0e,{});(T0e.versions||(T0e.versions=[])).push({version:"3.37.0",mode:"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sP=N0e.exports,E0e=sP,nP=function(t,e){return E0e[t]||(E0e[t]=e||{})},rRi=Lc,sRi=Object,px=function(t){return sRi(rRi(t))},nRi=Vr,aRi=px,lRi=nRi({}.hasOwnProperty),vc=Object.hasOwn||function(t,e){return lRi(aRi(t),e)},cRi=Vr,uRi=0,dRi=Math.random(),hRi=cRi(1 .toString),z0e=function(t){return"Symbol("+(t===void 0?"":t)+")_"+hRi(++uRi+dRi,36)},pRi=Gr,ARi=nP,P0e=vc,gRi=z0e,MRi=b0e,fRi=x0e,uf=pRi.Symbol,aP=ARi("wks"),wRi=fRi?uf.for||uf:uf&&uf.withoutSetter||gRi,ks=function(t){return P0e(aP,t)||(aP[t]=MRi&&P0e(uf,t)?uf[t]:wRi("Symbol."+t)),aP[t]},LRi=Js,B0e=mc,O0e=D0e,mRi=cf,yRi=eRi,vRi=ks,CRi=TypeError,IRi=vRi("toPrimitive"),jRi=function(t,e){if(!B0e(t)||O0e(t))return t;var i=mRi(t,IRi),o;if(i){if(e===void 0&&(e="default"),o=LRi(i,t,e),!B0e(o)||O0e(o))return o;throw new CRi("Can't convert object to primitive value")}return e===void 0&&(e="number"),yRi(t,e)},bRi=jRi,xRi=D0e,R0e=function(t){var e=bRi(t,"string");return xRi(e)?e:e+""},DRi=Gr,U0e=mc,lP=DRi.document,NRi=U0e(lP)&&U0e(lP.createElement),Ax=function(t){return NRi?lP.createElement(t):{}},SRi=wc,kRi=Hr,TRi=Ax,F0e=!SRi&&!kRi(function(){return Object.defineProperty(TRi("div"),"a",{get:function(){return 7}}).a!==7}),ERi=wc,zRi=Js,PRi=p0e,BRi=Wz,ORi=lv,RRi=R0e,URi=vc,FRi=F0e,Y0e=Object.getOwnPropertyDescriptor;av.f=ERi?Y0e:function(t,e){if(t=ORi(t),e=RRi(e),FRi)try{return Y0e(t,e)}catch{}if(URi(t,e))return BRi(!zRi(PRi.f,t,e),t[e])};var yd={},YRi=wc,QRi=Hr,Q0e=YRi&&QRi(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),GRi=mc,HRi=String,VRi=TypeError,Un=function(t){if(GRi(t))return t;throw new VRi(HRi(t)+" is not an object")},ZRi=wc,JRi=F0e,WRi=Q0e,gx=Un,G0e=R0e,KRi=TypeError,cP=Object.defineProperty,_Ri=Object.getOwnPropertyDescriptor,uP="enumerable",dP="configurable",hP="writable";yd.f=ZRi?WRi?function(t,e,i){if(gx(t),e=G0e(e),gx(i),typeof t=="function"&&e==="prototype"&&"value"in i&&hP in i&&!i[hP]){var o=_Ri(t,e);o&&o[hP]&&(t[e]=i.value,i={configurable:dP in i?i[dP]:o[dP],enumerable:uP in i?i[uP]:o[uP],writable:!1})}return cP(t,e,i)}:cP:function(t,e,i){if(gx(t),e=G0e(e),gx(i),JRi)try{return cP(t,e,i)}catch{}if("get"in i||"set"in i)throw new KRi("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var qRi=wc,XRi=yd,$Ri=Wz,cv=qRi?function(t,e,i){return XRi.f(t,e,$Ri(1,i))}:function(t,e,i){return t[e]=i,t},H0e={exports:{}},pP=wc,eUi=vc,V0e=Function.prototype,tUi=pP&&Object.getOwnPropertyDescriptor,AP=eUi(V0e,"name"),iUi=AP&&function(){}.name==="something",oUi=AP&&(!pP||pP&&tUi(V0e,"name").configurable),Mx={EXISTS:AP,PROPER:iUi,CONFIGURABLE:oUi},rUi=Vr,sUi=Zr,gP=sP,nUi=rUi(Function.toString);sUi(gP.inspectSource)||(gP.inspectSource=function(t){return nUi(t)});var MP=gP.inspectSource,aUi=Gr,lUi=Zr,Z0e=aUi.WeakMap,cUi=lUi(Z0e)&&/native code/.test(String(Z0e)),uUi=nP,dUi=z0e,J0e=uUi("keys"),fP=function(t){return J0e[t]||(J0e[t]=dUi(t))},wP={},hUi=cUi,W0e=Gr,pUi=mc,AUi=cv,LP=vc,mP=sP,gUi=fP,MUi=wP,K0e="Object already initialized",yP=W0e.TypeError,fUi=W0e.WeakMap,fx,uv,wx,wUi=function(t){return wx(t)?uv(t):fx(t,{})},LUi=function(t){return function(e){var i;if(!pUi(e)||(i=uv(e)).type!==t)throw new yP("Incompatible receiver, "+t+" required");return i}};if(hUi||mP.state){var hu=mP.state||(mP.state=new fUi);hu.get=hu.get,hu.has=hu.has,hu.set=hu.set,fx=function(t,e){if(hu.has(t))throw new yP(K0e);return e.facade=t,hu.set(t,e),e},uv=function(t){return hu.get(t)||{}},wx=function(t){return hu.has(t)}}else{var df=gUi("state");MUi[df]=!0,fx=function(t,e){if(LP(t,df))throw new yP(K0e);return e.facade=t,AUi(t,df,e),e},uv=function(t){return LP(t,df)?t[df]:{}},wx=function(t){return LP(t,df)}}var Lx={set:fx,get:uv,has:wx,enforce:wUi,getterFor:LUi},vP=Vr,mUi=Hr,yUi=Zr,mx=vc,CP=wc,vUi=Mx.CONFIGURABLE,CUi=MP,_0e=Lx,IUi=_0e.enforce,jUi=_0e.get,q0e=String,yx=Object.defineProperty,bUi=vP("".slice),xUi=vP("".replace),DUi=vP([].join),NUi=CP&&!mUi(function(){return yx(function(){},"length",{value:8}).length!==8}),SUi=String(String).split("String"),kUi=H0e.exports=function(t,e,i){bUi(q0e(e),0,7)==="Symbol("&&(e="["+xUi(q0e(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!mx(t,"name")||vUi&&t.name!==e)&&(CP?yx(t,"name",{value:e,configurable:!0}):t.name=e),NUi&&i&&mx(i,"arity")&&t.length!==i.arity&&yx(t,"length",{value:i.arity});try{i&&mx(i,"constructor")&&i.constructor?CP&&yx(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var o=IUi(t);return mx(o,"source")||(o.source=DUi(SUi,typeof e=="string"?e:"")),t};Function.prototype.toString=kUi(function(){return yUi(this)&&jUi(this).source||CUi(this)},"toString");var X0e=H0e.exports,TUi=Zr,EUi=yd,zUi=X0e,PUi=rP,a1=function(t,e,i,o){o||(o={});var r=o.enumerable,n=o.name!==void 0?o.name:e;if(TUi(i)&&zUi(i,n,o),o.global)r?t[e]=i:PUi(e,i);else{try{o.unsafe?t[e]&&(r=!0):delete t[e]}catch{}r?t[e]=i:EUi.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t},$0e={},BUi=Math.ceil,OUi=Math.floor,RUi=Math.trunc||function(t){var e=+t;return(e>0?OUi:BUi)(e)},UUi=RUi,vx=function(t){var e=+t;return e!==e||e===0?0:UUi(e)},FUi=vx,YUi=Math.max,QUi=Math.min,GUi=function(t,e){var i=FUi(t);return i<0?YUi(i+e,0):QUi(i,e)},HUi=vx,VUi=Math.min,hf=function(t){var e=HUi(t);return e>0?VUi(e,9007199254740991):0},ZUi=hf,IP=function(t){return ZUi(t.length)},JUi=lv,WUi=GUi,KUi=IP,epe=function(t){return function(e,i,o){var r=JUi(e),n=KUi(r);if(n===0)return!t&&-1;var s=WUi(o,n),a;if(t&&i!==i){for(;n>s;)if(a=r[s++],a!==a)return!0}else for(;n>s;s++)if((t||s in r)&&r[s]===i)return t||s||0;return!t&&-1}},tpe={includes:epe(!0),indexOf:epe(!1)},_Ui=Vr,jP=vc,qUi=lv,XUi=tpe.indexOf,$Ui=wP,ipe=_Ui([].push),ope=function(t,e){var i=qUi(t),o=0,r=[],n;for(n in i)!jP($Ui,n)&&jP(i,n)&&ipe(r,n);for(;e.length>o;)jP(i,n=e[o++])&&(~XUi(r,n)||ipe(r,n));return r},bP=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eFi=ope,tFi=bP,iFi=tFi.concat("length","prototype");$0e.f=Object.getOwnPropertyNames||function(t){return eFi(t,iFi)};var rpe={};rpe.f=Object.getOwnPropertySymbols;var oFi=n1,rFi=Vr,sFi=$0e,nFi=rpe,aFi=Un,lFi=rFi([].concat),cFi=oFi("Reflect","ownKeys")||function(t){var e=sFi.f(aFi(t)),i=nFi.f;return i?lFi(e,i(t)):e},spe=vc,uFi=cFi,dFi=av,hFi=yd,pFi=function(t,e,i){for(var o=uFi(e),r=hFi.f,n=dFi.f,s=0;s<o.length;s++){var a=o[s];!spe(t,a)&&!(i&&spe(i,a))&&r(t,a,n(e,a))}},AFi=Hr,gFi=Zr,MFi=/#|\.prototype\./,dv=function(t,e){var i=wFi[fFi(t)];return i===mFi?!0:i===LFi?!1:gFi(e)?AFi(e):!!e},fFi=dv.normalize=function(t){return String(t).replace(MFi,".").toLowerCase()},wFi=dv.data={},LFi=dv.NATIVE="N",mFi=dv.POLYFILL="P",npe=dv,Cx=Gr,yFi=av.f,vFi=cv,CFi=a1,IFi=rP,jFi=pFi,bFi=npe,Fn=function(t,e){var i=t.target,o=t.global,r=t.stat,n,s,a,l,c,u;if(o?s=Cx:r?s=Cx[i]||IFi(i,{}):s=Cx[i]&&Cx[i].prototype,s)for(a in e){if(c=e[a],t.dontCallGetSet?(u=yFi(s,a),l=u&&u.value):l=s[a],n=bFi(o?a:i+(r?".":"#")+a,t.forced),!n&&l!==void 0){if(typeof c==typeof l)continue;jFi(c,l)}(t.sham||l&&l.sham)&&vFi(c,"sham",!0),CFi(s,a,c,t)}},xFi=Gr,DFi=r1,hv=DFi(xFi.process)==="process",NFi=Vr,SFi=md,kFi=function(t,e,i){try{return NFi(SFi(Object.getOwnPropertyDescriptor(t,e)[i]))}catch{}},TFi=mc,EFi=function(t){return TFi(t)||t===null},zFi=EFi,PFi=String,BFi=TypeError,OFi=function(t){if(zFi(t))return t;throw new BFi("Can't set "+PFi(t)+" as a prototype")},RFi=kFi,UFi=mc,FFi=Lc,YFi=OFi,ape=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},i;try{i=RFi(Object.prototype,"__proto__","set"),i(e,[]),t=e instanceof Array}catch{}return function(o,r){return FFi(o),YFi(r),UFi(o)&&(t?i(o,r):o.__proto__=r),o}}():void 0),QFi=yd.f,GFi=vc,HFi=ks,lpe=HFi("toStringTag"),Ix=function(t,e,i){t&&!i&&(t=t.prototype),t&&!GFi(t,lpe)&&QFi(t,lpe,{configurable:!0,value:e})},cpe=X0e,VFi=yd,ZFi=function(t,e,i){return i.get&&cpe(i.get,e,{getter:!0}),i.set&&cpe(i.set,e,{setter:!0}),VFi.f(t,e,i)},JFi=n1,WFi=ZFi,KFi=ks,_Fi=wc,upe=KFi("species"),qFi=function(t){var e=JFi(t);_Fi&&e&&!e[upe]&&WFi(e,upe,{configurable:!0,get:function(){return this}})},XFi=cx,$Fi=TypeError,eYi=function(t,e){if(XFi(e,t))return t;throw new $Fi("Incorrect invocation")},tYi=ks,iYi=tYi("toStringTag"),dpe={};dpe[iYi]="z";var oYi=String(dpe)==="[object z]",rYi=oYi,sYi=Zr,jx=r1,nYi=ks,aYi=nYi("toStringTag"),lYi=Object,cYi=jx(function(){return arguments}())==="Arguments",uYi=function(t,e){try{return t[e]}catch{}},xP=rYi?jx:function(t){var e,i,o;return t===void 0?"Undefined":t===null?"Null":typeof(i=uYi(e=lYi(t),aYi))=="string"?i:cYi?jx(e):(o=jx(e))==="Object"&&sYi(e.callee)?"Arguments":o},dYi=Vr,hYi=Hr,hpe=Zr,pYi=xP,AYi=n1,gYi=MP,ppe=function(){},Ape=AYi("Reflect","construct"),DP=/^\s*(?:class|function)\b/,MYi=dYi(DP.exec),fYi=!DP.test(ppe),pv=function(t){if(!hpe(t))return!1;try{return Ape(ppe,[],t),!0}catch{return!1}},gpe=function(t){if(!hpe(t))return!1;switch(pYi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fYi||!!MYi(DP,gYi(t))}catch{return!0}};gpe.sham=!0;var wYi=!Ape||hYi(function(){var t;return pv(pv.call)||!pv(Object)||!pv(function(){t=!0})||t})?gpe:pv,LYi=wYi,mYi=hx,yYi=TypeError,vYi=function(t){if(LYi(t))return t;throw new yYi(mYi(t)+" is not a constructor")},Mpe=Un,CYi=vYi,IYi=s1,jYi=ks,bYi=jYi("species"),fpe=function(t,e){var i=Mpe(t).constructor,o;return i===void 0||IYi(o=Mpe(i)[bYi])?e:CYi(o)},xYi=ax,wpe=Function.prototype,Lpe=wpe.apply,mpe=wpe.call,ype=typeof Reflect=="object"&&Reflect.apply||(xYi?mpe.bind(Lpe):function(){return mpe.apply(Lpe,arguments)}),DYi=r1,NYi=Vr,bx=function(t){if(DYi(t)==="Function")return NYi(t)},vpe=bx,SYi=md,kYi=ax,TYi=vpe(vpe.bind),NP=function(t,e){return SYi(t),e===void 0?t:kYi?TYi(t,e):function(){return t.apply(e,arguments)}},EYi=n1,Cpe=EYi("document","documentElement"),zYi=Vr,PYi=zYi([].slice),BYi=TypeError,OYi=function(t,e){if(t<e)throw new BYi("Not enough arguments");return t},RYi=ux,Ipe=/(?:ipad|iphone|ipod).*applewebkit/i.test(RYi),Ha=Gr,UYi=ype,FYi=NP,jpe=Zr,YYi=vc,bpe=Hr,xpe=Cpe,QYi=PYi,Dpe=Ax,GYi=OYi,HYi=Ipe,VYi=hv,SP=Ha.setImmediate,kP=Ha.clearImmediate,ZYi=Ha.process,TP=Ha.Dispatch,JYi=Ha.Function,Npe=Ha.MessageChannel,WYi=Ha.String,EP=0,Av={},Spe="onreadystatechange",gv,l1,zP,PP;bpe(function(){gv=Ha.location});var BP=function(t){if(YYi(Av,t)){var e=Av[t];delete Av[t],e()}},OP=function(t){return function(){BP(t)}},kpe=function(t){BP(t.data)},Tpe=function(t){Ha.postMessage(WYi(t),gv.protocol+"//"+gv.host)};(!SP||!kP)&&(SP=function(t){GYi(arguments.length,1);var e=jpe(t)?t:JYi(t),i=QYi(arguments,1);return Av[++EP]=function(){UYi(e,void 0,i)},l1(EP),EP},kP=function(t){delete Av[t]},VYi?l1=function(t){ZYi.nextTick(OP(t))}:TP&&TP.now?l1=function(t){TP.now(OP(t))}:Npe&&!HYi?(zP=new Npe,PP=zP.port2,zP.port1.onmessage=kpe,l1=FYi(PP.postMessage,PP)):Ha.addEventListener&&jpe(Ha.postMessage)&&!Ha.importScripts&&gv&&gv.protocol!=="file:"&&!bpe(Tpe)?(l1=Tpe,Ha.addEventListener("message",kpe,!1)):Spe in Dpe("script")?l1=function(t){xpe.appendChild(Dpe("script"))[Spe]=function(){xpe.removeChild(this),BP(t)}}:l1=function(t){setTimeout(OP(t),0)});var Epe={set:SP,clear:kP},zpe=Gr,KYi=wc,_Yi=Object.getOwnPropertyDescriptor,qYi=function(t){if(!KYi)return zpe[t];var e=_Yi(zpe,t);return e&&e.value},Ppe=function(){this.head=null,this.tail=null};Ppe.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Bpe=Ppe,XYi=ux,$Yi=/ipad|iphone|ipod/i.test(XYi)&&typeof Pebble<"u",eQi=ux,tQi=/web0s(?!.*chrome)/i.test(eQi),pf=Gr,iQi=qYi,Ope=NP,RP=Epe.set,oQi=Bpe,rQi=Ipe,sQi=$Yi,nQi=tQi,UP=hv,Rpe=pf.MutationObserver||pf.WebKitMutationObserver,Upe=pf.document,Fpe=pf.process,xx=pf.Promise,FP=iQi("queueMicrotask"),Af,YP,QP,Dx,Ype;if(!FP){var Nx=new oQi,Sx=function(){var t,e;for(UP&&(t=Fpe.domain)&&t.exit();e=Nx.get();)try{e()}catch(i){throw Nx.head&&Af(),i}t&&t.enter()};!rQi&&!UP&&!nQi&&Rpe&&Upe?(YP=!0,QP=Upe.createTextNode(""),new Rpe(Sx).observe(QP,{characterData:!0}),Af=function(){QP.data=YP=!YP}):!sQi&&xx&&xx.resolve?(Dx=xx.resolve(void 0),Dx.constructor=xx,Ype=Ope(Dx.then,Dx),Af=function(){Ype(Sx)}):UP?Af=function(){Fpe.nextTick(Sx)}:(RP=Ope(RP,pf),Af=function(){RP(Sx)}),FP=function(t){Nx.head||Af(),Nx.add(t)}}var aQi=FP,lQi=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},GP=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},cQi=Gr,kx=cQi.Promise,Qpe=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",uQi=Qpe,dQi=hv,hQi=!uQi&&!dQi&&typeof window=="object"&&typeof document=="object",pQi=Gr,Mv=kx,AQi=Zr,gQi=npe,MQi=MP,fQi=ks,wQi=hQi,LQi=Qpe,HP=eP;Mv&&Mv.prototype;var mQi=fQi("species"),VP=!1,Gpe=AQi(pQi.PromiseRejectionEvent),yQi=gQi("Promise",function(){var t=MQi(Mv),e=t!==String(Mv);if(!e&&HP===66)return!0;if(!HP||HP<51||!/native code/.test(t)){var i=new Mv(function(n){n(1)}),o=function(n){n(function(){},function(){})},r=i.constructor={};if(r[mQi]=o,VP=i.then(function(){})instanceof o,!VP)return!0}return!e&&(wQi||LQi)&&!Gpe}),fv={CONSTRUCTOR:yQi,REJECTION_EVENT:Gpe,SUBCLASSING:VP},gf={},Hpe=md,vQi=TypeError,CQi=function(t){var e,i;this.promise=new t(function(o,r){if(e!==void 0||i!==void 0)throw new vQi("Bad Promise constructor");e=o,i=r}),this.resolve=Hpe(e),this.reject=Hpe(i)};gf.f=function(t){return new CQi(t)};var IQi=Fn,Tx=hv,V0=Gr,Mf=Js,Vpe=a1,Zpe=ape,jQi=Ix,bQi=qFi,xQi=md,Ex=Zr,DQi=mc,NQi=eYi,SQi=fpe,Jpe=Epe.set,ZP=aQi,kQi=lQi,TQi=GP,EQi=Bpe,Wpe=Lx,zx=kx,JP=fv,Kpe=gf,Px="Promise",_pe=JP.CONSTRUCTOR,zQi=JP.REJECTION_EVENT,PQi=JP.SUBCLASSING,WP=Wpe.getterFor(Px),BQi=Wpe.set,ff=zx&&zx.prototype,c1=zx,Bx=ff,qpe=V0.TypeError,KP=V0.document,_P=V0.process,qP=Kpe.f,OQi=qP,RQi=!!(KP&&KP.createEvent&&V0.dispatchEvent),Xpe="unhandledrejection",UQi="rejectionhandled",$pe=0,eAe=1,FQi=2,XP=1,tAe=2,Ox,iAe,YQi,oAe,rAe=function(t){var e;return DQi(t)&&Ex(e=t.then)?e:!1},sAe=function(t,e){var i=e.value,o=e.state===eAe,r=o?t.ok:t.fail,n=t.resolve,s=t.reject,a=t.domain,l,c,u;try{r?(o||(e.rejection===tAe&&GQi(e),e.rejection=XP),r===!0?l=i:(a&&a.enter(),l=r(i),a&&(a.exit(),u=!0)),l===t.promise?s(new qpe("Promise-chain cycle")):(c=rAe(l))?Mf(c,l,n,s):n(l)):s(i)}catch(d){a&&!u&&a.exit(),s(d)}},nAe=function(t,e){t.notified||(t.notified=!0,ZP(function(){for(var i=t.reactions,o;o=i.get();)sAe(o,t);t.notified=!1,e&&!t.rejection&&QQi(t)}))},aAe=function(t,e,i){var o,r;RQi?(o=KP.createEvent("Event"),o.promise=e,o.reason=i,o.initEvent(t,!1,!0),V0.dispatchEvent(o)):o={promise:e,reason:i},!zQi&&(r=V0["on"+t])?r(o):t===Xpe&&kQi("Unhandled promise rejection",i)},QQi=function(t){Mf(Jpe,V0,function(){var e=t.facade,i=t.value,o=lAe(t),r;if(o&&(r=TQi(function(){Tx?_P.emit("unhandledRejection",i,e):aAe(Xpe,e,i)}),t.rejection=Tx||lAe(t)?tAe:XP,r.error))throw r.value})},lAe=function(t){return t.rejection!==XP&&!t.parent},GQi=function(t){Mf(Jpe,V0,function(){var e=t.facade;Tx?_P.emit("rejectionHandled",e):aAe(UQi,e,t.value)})},wf=function(t,e,i){return function(o){t(e,o,i)}},Lf=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=FQi,nAe(t,!0))},$P=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new qpe("Promise can't be resolved itself");var o=rAe(e);o?ZP(function(){var r={done:!1};try{Mf(o,e,wf($P,r,t),wf(Lf,r,t))}catch(n){Lf(r,n,t)}}):(t.value=e,t.state=eAe,nAe(t,!1))}catch(r){Lf({done:!1},r,t)}}};if(_pe&&(c1=function(t){NQi(this,Bx),xQi(t),Mf(Ox,this);var e=WP(this);try{t(wf($P,e),wf(Lf,e))}catch(i){Lf(e,i)}},Bx=c1.prototype,Ox=function(t){BQi(this,{type:Px,done:!1,notified:!1,parent:!1,reactions:new EQi,rejection:!1,state:$pe,value:void 0})},Ox.prototype=Vpe(Bx,"then",function(t,e){var i=WP(this),o=qP(SQi(this,c1));return i.parent=!0,o.ok=Ex(t)?t:!0,o.fail=Ex(e)&&e,o.domain=Tx?_P.domain:void 0,i.state===$pe?i.reactions.add(o):ZP(function(){sAe(o,i)}),o.promise}),iAe=function(){var t=new Ox,e=WP(t);this.promise=t,this.resolve=wf($P,e),this.reject=wf(Lf,e)},Kpe.f=qP=function(t){return t===c1||t===YQi?new iAe(t):OQi(t)},Ex(zx)&&ff!==Object.prototype)){oAe=ff.then,PQi||Vpe(ff,"then",function(t,e){var i=this;return new c1(function(o,r){Mf(oAe,i,o,r)}).then(t,e)},{unsafe:!0});try{delete ff.constructor}catch{}Zpe&&Zpe(ff,Bx)}IQi({global:!0,constructor:!0,wrap:!0,forced:_pe},{Promise:c1}),jQi(c1,Px,!1),bQi(Px);var wv={},HQi=ks,VQi=wv,ZQi=HQi("iterator"),JQi=Array.prototype,WQi=function(t){return t!==void 0&&(VQi.Array===t||JQi[ZQi]===t)},KQi=xP,cAe=cf,_Qi=s1,qQi=wv,XQi=ks,$Qi=XQi("iterator"),uAe=function(t){if(!_Qi(t))return cAe(t,$Qi)||cAe(t,"@@iterator")||qQi[KQi(t)]},eGi=Js,tGi=md,iGi=Un,oGi=hx,rGi=uAe,sGi=TypeError,nGi=function(t,e){var i=arguments.length<2?rGi(t):e;if(tGi(i))return iGi(eGi(i,t));throw new sGi(oGi(t)+" is not iterable")},aGi=Js,dAe=Un,lGi=cf,cGi=function(t,e,i){var o,r;dAe(t);try{if(o=lGi(t,"return"),!o){if(e==="throw")throw i;return i}o=aGi(o,t)}catch(n){r=!0,o=n}if(e==="throw")throw i;if(r)throw o;return dAe(o),i},uGi=NP,dGi=Js,hGi=Un,pGi=hx,AGi=WQi,gGi=IP,hAe=cx,MGi=nGi,fGi=uAe,pAe=cGi,wGi=TypeError,Rx=function(t,e){this.stopped=t,this.result=e},AAe=Rx.prototype,gAe=function(t,e,i){var o=i&&i.that,r=!!(i&&i.AS_ENTRIES),n=!!(i&&i.IS_RECORD),s=!!(i&&i.IS_ITERATOR),a=!!(i&&i.INTERRUPTED),l=uGi(e,o),c,u,d,h,p,g,A,M=function(L){return c&&pAe(c,"normal",L),new Rx(!0,L)},f=function(L){return r?(hGi(L),a?l(L[0],L[1],M):l(L[0],L[1])):a?l(L,M):l(L)};if(n)c=t.iterator;else if(s)c=t;else{if(u=fGi(t),!u)throw new wGi(pGi(t)+" is not iterable");if(AGi(u)){for(d=0,h=gGi(t);h>d;d++)if(p=f(t[d]),p&&hAe(AAe,p))return p;return new Rx(!1)}c=MGi(t,u)}for(g=n?t.next:c.next;!(A=dGi(g,c)).done;){try{p=f(A.value)}catch(L){pAe(c,"throw",L)}if(typeof p=="object"&&p&&hAe(AAe,p))return p}return new Rx(!1)},LGi=ks,MAe=LGi("iterator"),fAe=!1;try{var mGi=0,wAe={next:function(){return{done:!!mGi++}},return:function(){fAe=!0}};wAe[MAe]=function(){return this},Array.from(wAe,function(){throw 2})}catch{}var yGi=function(t,e){try{if(!e&&!fAe)return!1}catch{return!1}var i=!1;try{var o={};o[MAe]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch{}return i},vGi=kx,CGi=yGi,IGi=fv.CONSTRUCTOR,LAe=IGi||!CGi(function(t){vGi.all(t).then(void 0,function(){})}),jGi=Fn,bGi=Js,xGi=md,DGi=gf,NGi=GP,SGi=gAe,kGi=LAe;jGi({target:"Promise",stat:!0,forced:kGi},{all:function(t){var e=this,i=DGi.f(e),o=i.resolve,r=i.reject,n=NGi(function(){var s=xGi(e.resolve),a=[],l=0,c=1;SGi(t,function(u){var d=l++,h=!1;c++,bGi(s,e,u).then(function(p){h||(h=!0,a[d]=p,--c||o(a))},r)}),--c||o(a)});return n.error&&r(n.value),i.promise}});var TGi=Fn,EGi=fv.CONSTRUCTOR,eB=kx,zGi=n1,PGi=Zr,BGi=a1,mAe=eB&&eB.prototype;if(TGi({target:"Promise",proto:!0,forced:EGi,real:!0},{catch:function(t){return this.then(void 0,t)}}),PGi(eB)){var yAe=zGi("Promise").prototype.catch;mAe.catch!==yAe&&BGi(mAe,"catch",yAe,{unsafe:!0})}var OGi=Fn,RGi=Js,UGi=md,FGi=gf,YGi=GP,QGi=gAe,GGi=LAe;OGi({target:"Promise",stat:!0,forced:GGi},{race:function(t){var e=this,i=FGi.f(e),o=i.reject,r=YGi(function(){var n=UGi(e.resolve);QGi(t,function(s){RGi(n,e,s).then(i.resolve,o)})});return r.error&&o(r.value),i.promise}});var HGi=Fn,VGi=gf,ZGi=fv.CONSTRUCTOR;HGi({target:"Promise",stat:!0,forced:ZGi},{reject:function(t){var e=VGi.f(this),i=e.reject;return i(t),e.promise}});var JGi=Un,WGi=mc,KGi=gf,_Gi=function(t,e){if(JGi(t),WGi(e)&&e.constructor===t)return e;var i=KGi.f(t),o=i.resolve;return o(e),i.promise},qGi=Fn,XGi=n1,$Gi=fv.CONSTRUCTOR,eHi=_Gi;XGi("Promise"),qGi({target:"Promise",stat:!0,forced:$Gi},{resolve:function(t){return eHi(this,t)}});function vAe(t,e,i,o,r,n,s){try{var a=t[n](s),l=a.value}catch(c){i(c);return}a.done?e(l):Promise.resolve(l).then(o,r)}function vd(t){return function(){var e=this,i=arguments;return new Promise(function(o,r){var n=t.apply(e,i);function s(l){vAe(n,o,r,s,a,"next",l)}function a(l){vAe(n,o,r,s,a,"throw",l)}s(void 0)})}}var tHi=xP,iHi=String,pu=function(t){if(tHi(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return iHi(t)},oHi=Un,CAe=function(){var t=oHi(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},tB=Hr,rHi=Gr,iB=rHi.RegExp,oB=tB(function(){var t=iB("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),sHi=oB||tB(function(){return!iB("a","y").sticky}),nHi=oB||tB(function(){var t=iB("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),IAe={BROKEN_CARET:nHi,MISSED_STICKY:sHi,UNSUPPORTED_Y:oB},jAe={},aHi=ope,lHi=bP,cHi=Object.keys||function(t){return aHi(t,lHi)},uHi=wc,dHi=Q0e,hHi=yd,pHi=Un,AHi=lv,gHi=cHi;jAe.f=uHi&&!dHi?Object.defineProperties:function(t,e){pHi(t);for(var i=AHi(e),o=gHi(e),r=o.length,n=0,s;r>n;)hHi.f(t,s=o[n++],i[s]);return t};var MHi=Un,fHi=jAe,bAe=bP,wHi=wP,LHi=Cpe,mHi=Ax,yHi=fP,xAe=">",DAe="<",rB="prototype",sB="script",NAe=yHi("IE_PROTO"),nB=function(){},SAe=function(t){return DAe+sB+xAe+t+DAe+"/"+sB+xAe},kAe=function(t){t.write(SAe("")),t.close();var e=t.parentWindow.Object;return t=null,e},vHi=function(){var t=mHi("iframe"),e="java"+sB+":",i;return t.style.display="none",LHi.appendChild(t),t.src=String(e),i=t.contentWindow.document,i.open(),i.write(SAe("document.F=Object")),i.close(),i.F},Ux,Fx=function(){try{Ux=new ActiveXObject("htmlfile")}catch{}Fx=typeof document<"u"?document.domain&&Ux?kAe(Ux):vHi():kAe(Ux);for(var t=bAe.length;t--;)delete Fx[rB][bAe[t]];return Fx()};wHi[NAe]=!0;var aB=Object.create||function(t,e){var i;return t!==null?(nB[rB]=MHi(t),i=new nB,nB[rB]=null,i[NAe]=t):i=Fx(),e===void 0?i:fHi.f(i,e)},CHi=Hr,IHi=Gr,jHi=IHi.RegExp,bHi=CHi(function(){var t=jHi(".","s");return!(t.dotAll&&t.test(`
|
|
1874
1874
|
`)&&t.flags==="s")}),xHi=Hr,DHi=Gr,NHi=DHi.RegExp,SHi=xHi(function(){var t=NHi("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),mf=Js,Yx=Vr,kHi=pu,THi=CAe,EHi=IAe,zHi=nP,PHi=aB,BHi=Lx.get,OHi=bHi,RHi=SHi,UHi=zHi("native-string-replace",String.prototype.replace),Qx=RegExp.prototype.exec,lB=Qx,FHi=Yx("".charAt),YHi=Yx("".indexOf),QHi=Yx("".replace),cB=Yx("".slice),uB=function(){var t=/a/,e=/b*/g;return mf(Qx,t,"a"),mf(Qx,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),TAe=EHi.BROKEN_CARET,dB=/()??/.exec("")[1]!==void 0,GHi=uB||dB||TAe||OHi||RHi;GHi&&(lB=function(t){var e=this,i=BHi(e),o=kHi(t),r=i.raw,n,s,a,l,c,u,d;if(r)return r.lastIndex=e.lastIndex,n=mf(lB,r,o),e.lastIndex=r.lastIndex,n;var h=i.groups,p=TAe&&e.sticky,g=mf(THi,e),A=e.source,M=0,f=o;if(p&&(g=QHi(g,"y",""),YHi(g,"g")===-1&&(g+="g"),f=cB(o,e.lastIndex),e.lastIndex>0&&(!e.multiline||e.multiline&&FHi(o,e.lastIndex-1)!==`
|