const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('photos', '', 'js/FoldersView-Dcwlkt86.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-BCevi9E9.chunk.mjs'),window.OC.filePath('photos', '', 'js/preload-helper-DadE4qT2.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-DdKmqUaK-CZdPFXPx.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-Dgdobvu3.chunk.mjs'),window.OC.filePath('photos', '', 'css/index-Cza_DEM4.chunk.css'),window.OC.filePath('photos', '', 'js/NcProgressBar-D7zYeXBH-uJjZguS5.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-V4SUT3Zk.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcProgressBar-D7zYeXBH-B3qS3u7h.chunk.css'),window.OC.filePath('photos', '', 'js/useHotKey-DFSRx3Nk.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcActionButton-DykQxmXJ-KVA0ETt1.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcActionButton-DykQxmXJ-Dc3ra1Np.chunk.css'),window.OC.filePath('photos', '', 'css/index-DdKmqUaK-Dbzl6yZq.chunk.css'),window.OC.filePath('photos', '', 'js/NcEmptyContent-D03x2I6w.chunk.mjs'),window.OC.filePath('photos', '', 'js/createElementId-DhjFt1I9-B2HCdIOx.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcEmptyContent-BC9mI1uc.chunk.css'),window.OC.filePath('photos', '', 'js/icons-CFZwNZD8.chunk.mjs'),window.OC.filePath('photos', '', 'js/AbortControllerMixin-Bb5X6Yae.chunk.mjs'),window.OC.filePath('photos', '', 'js/HeaderNavigation-DLWOytuO.chunk.mjs'),window.OC.filePath('photos', '', 'css/HeaderNavigation-DKt_N0pA.chunk.css'),window.OC.filePath('photos', '', 'js/fileFetcher-CFJaIlCO.chunk.mjs'),window.OC.filePath('photos', '', 'css/FoldersView-PCEpJTjz.chunk.css'),window.OC.filePath('photos', '', 'js/AlbumsView-BRJEFUGf.chunk.mjs'),window.OC.filePath('photos', '', 'js/AlbumForm-RjiiBLP7.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcTextField-CfZknuqx-CsSvGxmN.chunk.mjs'),window.OC.filePath('photos', '', 'js/useModelMigration-EhAWvqDD-Zhby4giX.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcTextField-CfZknuqx-ChYPIaUD.chunk.css'),window.OC.filePath('photos', '', 'js/PhotosFiltersInput-B33sPvuK.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcSelect-DTniMiUS-DT0HbKa6.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcAvatar-D5nljVEA-Mn39wJHK.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcAvatar-D5nljVEA-By5U0e-S.chunk.css'),window.OC.filePath('photos', '', 'css/NcSelect-DTniMiUS-D-nWHgHx.chunk.css'),window.OC.filePath('photos', '', 'js/NcDateTimePicker-BJgTfZNh.chunk.mjs'),window.OC.filePath('photos', '', 'js/useFormatDateTime-Dj6f4vk0.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcDateTimePicker-DRVX_HEr.chunk.css'),window.OC.filePath('photos', '', 'js/NcDateTime-enXYuwj8-Db78ZihF.chunk.mjs'),window.OC.filePath('photos', '', 'js/collectionFetcher-D94WC1TK.chunk.mjs'),window.OC.filePath('photos', '', 'css/PhotosFiltersInput-I5MFVku0.chunk.css'),window.OC.filePath('photos', '', 'js/index-x9vhq81Z.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcSelectUsers-RyUVUaWQ-CTrr_2Z8.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcSelectUsers-RyUVUaWQ-LFhRBB90.chunk.css'),window.OC.filePath('photos', '', 'js/FetchCollectionContentMixin-NK9nekKH.chunk.mjs'),window.OC.filePath('photos', '', 'css/AlbumForm-BltgtlX5.chunk.css'),window.OC.filePath('photos', '', 'js/CollectionsList-B7H5GieH.chunk.mjs'),window.OC.filePath('photos', '', 'css/CollectionsList-DKsrVzWp.chunk.css'),window.OC.filePath('photos', '', 'js/FetchCollectionsMixin-DcEv3N9Z.chunk.mjs'),window.OC.filePath('photos', '', 'css/AlbumsView-Bo_gBDuH.chunk.css'),window.OC.filePath('photos', '', 'js/AlbumContent-AqatWZjx.chunk.mjs'),window.OC.filePath('photos', '', 'js/ActionFavorite-7rTcVpSr.chunk.mjs'),window.OC.filePath('photos', '', 'js/CollectionContent-BxIYqcaH.chunk.mjs'),window.OC.filePath('photos', '', 'js/FileComponent-A6f_Dtn9.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcCheckboxRadioSwitch-DAPHFb0L-ou8aC9jF.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcCheckboxRadioSwitch-DAPHFb0L-35V8jJy1.chunk.css'),window.OC.filePath('photos', '', 'css/FileComponent-BNcqW4Yv.chunk.css'),window.OC.filePath('photos', '', 'js/FilesSelectionMixin-1nnlfofj.chunk.mjs'),window.OC.filePath('photos', '', 'css/FilesSelectionMixin-Ir2RfRYO.chunk.css'),window.OC.filePath('photos', '', 'css/CollectionContent--Aqfzk9e.chunk.css'),window.OC.filePath('photos', '', 'js/PhotosPicker-BqDrlTqO.chunk.mjs'),window.OC.filePath('photos', '', 'js/FetchFilesMixin-BGmLOce1.chunk.mjs'),window.OC.filePath('photos', '', 'js/PhotoSearch-3PnBhHOR.chunk.mjs'),window.OC.filePath('photos', '', 'js/FilesByMonthMixin-BLjMI05j.chunk.mjs'),window.OC.filePath('photos', '', 'css/PhotosPicker-CBgqwEfM.chunk.css'),window.OC.filePath('photos', '', 'css/AlbumContent-DK8T_yqs.chunk.css'),window.OC.filePath('photos', '', 'js/SharedAlbums-CXfNN7vH.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcUserBubble-VLY4hn5K-C859Jy5x.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcUserBubble-VLY4hn5K-DuGeWNEo.chunk.css'),window.OC.filePath('photos', '', 'css/SharedAlbums-KlGsfAoO.chunk.css'),window.OC.filePath('photos', '', 'js/SharedAlbumContent-Cott4oI9.chunk.mjs'),window.OC.filePath('photos', '', 'css/SharedAlbumContent-Bh3mAuG2.chunk.css'),window.OC.filePath('photos', '', 'js/NcColorPicker-DUXt6lMy.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcBreadcrumbs-BPfsSByZ-Lyy2GAQq.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-D_vzF9fp.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcBreadcrumbs-BPfsSByZ-EJUAlRRd.chunk.css'),window.OC.filePath('photos', '', 'js/NcFormBoxButton-C6EvdLK4-C8B93Wrm.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcVNodes-BVNC6_P_.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcFormBoxButton-C6EvdLK4-Ddk1H9dB.chunk.css'),window.OC.filePath('photos', '', 'js/NcListItem-BommrKRB-nRPPDJuP.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcListItem-BommrKRB-rU4rujf8.chunk.css'),window.OC.filePath('photos', '', 'css/NcColorPicker-BOn1JYbY.chunk.css'),window.OC.filePath('photos', '', 'js/PlacesView-B9ABlKau.chunk.mjs'),window.OC.filePath('photos', '', 'css/PlacesView-CVBtM1GJ.chunk.css'),window.OC.filePath('photos', '', 'js/PlaceContent-BZqiCRWm.chunk.mjs'),window.OC.filePath('photos', '', 'css/PlaceContent-Dr0VitMb.chunk.css'),window.OC.filePath('photos', '', 'js/TagsView-DUUPrt_d.chunk.mjs'),window.OC.filePath('photos', '', 'css/TagsView-C4OIWFt1.chunk.css'),window.OC.filePath('photos', '', 'js/TagContent-Dwv-Pa3i.chunk.mjs'),window.OC.filePath('photos', '', 'css/TagContent-CpS5SFBW.chunk.css'),window.OC.filePath('photos', '', 'js/TimelineView-Bzb4Tj8Y.chunk.mjs'),window.OC.filePath('photos', '', 'js/filters-Ck71oeb9.chunk.mjs'),window.OC.filePath('photos', '', 'css/filters-D1F-E22a.chunk.css'),window.OC.filePath('photos', '', 'css/TimelineView-in9KGIl3.chunk.css'),window.OC.filePath('photos', '', 'js/FacesView-5rYPf97C.chunk.mjs'),window.OC.filePath('photos', '', 'js/FaceCover-y62LmE3b.chunk.mjs'),window.OC.filePath('photos', '', 'css/FaceCover-CO_I4UMH.chunk.css'),window.OC.filePath('photos', '', 'css/FacesView-CXSgbmEO.chunk.css'),window.OC.filePath('photos', '', 'js/FaceContent-5XRK_xd6.chunk.mjs'),window.OC.filePath('photos', '', 'js/FaceMergeForm-BHfOqGG8.chunk.mjs'),window.OC.filePath('photos', '', 'css/FaceMergeForm-DL6EU9Jq.chunk.css'),window.OC.filePath('photos', '', 'css/FaceContent-Dtq7Nib3.chunk.css'),window.OC.filePath('photos', '', 'js/UnassignedFaces-DI8NVoO-.chunk.mjs'),window.OC.filePath('photos', '', 'css/UnassignedFaces-CXIiqvfn.chunk.css')])))=>i.map(i=>d[i]); import{ai as Te,B,S as Y,aj as Re,V as I,k as Q,t as x,_ as S}from"./preload-helper-DadE4qT2.chunk.mjs";import{e as Ne}from"./index-BCevi9E9.chunk.mjs";import{n as H,r as ne,I as ut,al as Me,A as zt,j as ie,t as re,am as Oe,an as Le,E as $e,ao as je,ap as Ve}from"./index-Dgdobvu3.chunk.mjs";const Ct="photos";var ht={},kt;function Ie(){if(kt)return ht;kt=1,ht.sync=function(e,n,i){var r=(i||{}).moduleName||"route";e.registerModule(r,{namespaced:!0,state:t(n.currentRoute),mutations:{ROUTE_CHANGED:function(p,f){e.state[r]=t(f.to,f.from)}}});var a=!1,o,s=e.watch(function(p){return p[r]},function(p){var f=p.fullPath;f!==o&&(o!=null&&(a=!0,n.push(p)),o=f)},{sync:!0}),l=n.afterEach(function(p,f){if(a){a=!1;return}o=p.fullPath,e.commit(r+"/ROUTE_CHANGED",{to:p,from:f})});return function(){l?.(),s?.(),e.unregisterModule(r)}};function t(e,n){var i={name:e.name,path:e.path,hash:e.hash,query:e.query,params:e.params,fullPath:e.fullPath,meta:e.meta};return n&&(i.from=t(n)),Object.freeze(i)}return ht}var ir=Ie(),Be=Object.defineProperty,He=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,Tt=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fe=(t,e)=>{for(var n in e||(e={}))ae.call(e,n)&&Tt(t,n,e[n]);if(tt)for(var n of tt(e))oe.call(e,n)&&Tt(t,n,e[n]);return t},Ue=(t,e)=>He(t,qe(e)),Ze=(t,e)=>{var n={};for(var i in t)ae.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&tt)for(var i of tt(t))e.indexOf(i)<0&&oe.call(t,i)&&(n[i]=t[i]);return n};function se(t,e,n,i,r,a,o,s){var l=typeof t=="function"?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0);var p;if(r&&(p=r),p)if(l.functional){l._injectStyles=p;var f=l.render;l.render=function(v,h){return p.call(h),f(v,h)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,p):[p]}return{exports:t,options:l}}const We={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((i,r)=>(i.size=r===e?i.max:i.min,r!==e&&(n+=i.min),i)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e])},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:i}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:i-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:n.prevPanesSize),r=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(t),r),i);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const p=s.max<100&&a>=s.max+n.prevPanesSize,f=l.max<100&&a<=100-(l.max+this.sumNextPanesSize(e+1));if(p||f){p?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(n,a);if(!m)return;({sums:n,panesToResize:o}=m),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,i=[n,n+1];return e{a>i[0]&&a<=n&&(r.size=r.min,t.prevReachedMinPanes+=r.min)}),t.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((r,a)=>{a>0&&a<=n&&(r.size=r.min,t.prevReachedMinPanes+=r.min)}),this.panes[i[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,i[1]>n+1&&this.panes.forEach((r,a)=>{a>n&&a{a=n+1&&(r.size=r.min,t.nextReachedMinPanes+=r.min)}),this.panes[i[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:i}},sumPrevPanesSize(t){return this.panes.reduce((e,n,i)=>e+(ie+(i>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");if(!e&&!n){t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(t,e,n=!1){const i=t-1,r=document.createElement("div");r.classList.add("splitpanes__splitter"),n||(r.onmousedown=a=>this.onMouseDown(a,i),typeof window<"u"&&"ontouchstart"in window&&(r.ontouchstart=a=>this.onMouseDown(a,i)),r.onclick=a=>this.onSplitterClick(a,i+1)),this.dblClickSplitter&&(r.ondblclick=a=>this.onSplitterDblClick(a,i+1)),e.parentNode.insertBefore(r,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate(t){var e=t,{target:n}=e,i=Ze(e,["target"]);const r=this.indexedPanes[n._uid];Object.entries(i).forEach(([a,o])=>r[a]=o)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(r=>(r.className.includes("splitpanes__pane")&&e++,r===t.$el));const n=parseFloat(t.minSize),i=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._uid,index:e,min:isNaN(n)?0:n,max:isNaN(i)?100:i,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((r,a)=>r.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(i=>i.id===t._uid),n=this.panes.splice(e,1)[0];this.panes.forEach((i,r)=>i.index=r),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:Ue(Fe({},n),{index:e})}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0,n=[],i=[];this.panes.forEach(r=>{r.size=Math.max(Math.min(t,r.max),r.min),e-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&i.push(r.id)}),e>.1&&this.readjustSizes(e,n,i)},initialPanesSizing(){100/this.panesCount;let t=100,e=[],n=[],i=0;this.panes.forEach(a=>{t-=a.size,a.size!==null&&i++,a.size>=a.max&&e.push(a.id),a.size<=a.min&&n.push(a.id)});let r=100;t>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(t/(this.panesCount-i),a.max),a.min)),r-=a.size}),r>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,i=0,r=[],a=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),i-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&a.push(o.id)}),i>.1&&this.readjustSizes(i,r,a))},readjustSizes(t,e,n){let i;t>0?i=t/(this.panesCount-e.length):i=t/(this.panesCount-n.length),this.panes.forEach((r,a)=>{if(t>0&&!e.includes(r.id)){const o=Math.max(Math.min(r.size+i,r.max),r.min),s=o-r.size;t-=s,r.size=o}else if(!n.includes(r.id)){const o=Math.max(Math.min(r.size+i,r.max),r.min),s=o-r.size;t-=s,r.size=o}r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?i=>this.onSplitterDblClick(i,n):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(t){return t("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let Ge,Ke;const Rt={};var Xe=se(We,Ge,Ke,!1,Je);function Je(t){for(let e in Rt)this[e]=Rt[e]}var Ye=function(){return Xe.exports}(),Qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"splitpanes__pane",style:t.style,on:{click:function(i){return t.onPaneClick(i,t._uid)}}},[t._t("default")],2)},tn=[];const en={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}},Nt={};var nn=se(en,Qe,tn,!1,rn);function rn(t){for(let e in Nt)this[e]=Nt[e]}var an=function(){return nn.exports}();const on={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var sn=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},ln=[],pn=H(on,sn,ln,!1,null,null);const cn=pn.exports,un={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hn=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},dn=[],fn=H(un,hn,dn,!1,null,null);const mn=fn.exports;ne(Oe);const le=Re(),vn={name:"NcAppContentDetailsToggle",components:{ArrowRight:mn,ArrowLeft:cn,NcButton:ie},setup(){return{isRtl:le,isMobile:zt()}},computed:{title(){return re("Go back to the list")}},watch:{isMobile:function(){this.toggleAppNavigationButton(this.isMobile)}},mounted(){this.toggleAppNavigationButton(this.isMobile)},beforeDestroy(){this.isMobile&&this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(t=!0){const e=document.querySelector(".app-navigation .app-navigation-toggle");e&&(e.style.display=t?"none":null,t===!0&&Y("toggle-navigation",{open:!1}))}}};var gn=function(){var t=this,e=t._self._c;return e("NcButton",{staticClass:"app-details-toggle",class:{"app-details-toggle--mobile":t.isMobile},attrs:{"aria-label":t.title,title:t.title,variant:"tertiary"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.isRtl?e("ArrowLeft",{attrs:{size:20}}):e("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},yn=[],wn=H(vn,gn,yn,!1,null,"d0b1a8bc");const xn=wn.exports,Mt=Te("nextcloud").persist().build(),bn=Ne().theming?.name??"Nextcloud",Ot=B("core","active-app",Ct),dt=B("core","apps",{}),Cn=(Array.isArray(dt)?dt.find(t=>t.id===Ot)?.name:dt[Ot]?.name)??Ct,zn={name:"NcAppContent",components:{NcAppContentDetailsToggle:xn,Pane:an,Splitpanes:Ye},props:{allowSwipeNavigation:{type:Boolean,default:!0},disableSwipe:{type:Boolean,default:!1},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},layout:{type:String,default:"vertical-split",validator(t){return["no-split","vertical-split","horizontal-split"].includes(t)}},pageHeading:{type:String,default:null},pageTitle:{type:String,default:null}},emits:["update:showDetails","resize-list","resize:list"],setup(){return{isMobile:zt(),isRtl:le}},data(){return{contentHeight:0,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${Ct}`}catch{return ut.info("[NcAppContent]: falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}},realPageTitle(){const t=new Set;if(this.pageTitle)for(const e of this.pageTitle.split(" - "))t.add(e);else if(this.pageHeading){for(const e of this.pageHeading.split(" - "))t.add(e);t.size>0&&t.add(Cn)}else return null;return t.add(bn),[...t.values()].join(" - ")}},watch:{realPageTitle:{immediate:!0,handler(){this.realPageTitle!==null&&(document.title=this.realPageTitle)}},paneConfigKey:{immediate:!0,handler(){this.restorePaneConfig()}}},mounted(){this.allowSwipeNavigation&&!this.disableSwipe&&(this.swiping=Me(this.$el,{onSwipeEnd:this.handleSwipe})),this.restorePaneConfig()},methods:{handleSwipe(t,e){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&e==="right"?Y("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&e==="left"&&Y("toggle-navigation",{open:!1}))},handlePaneResize(t){const e=parseInt(t[0].size,10);Mt.setItem(this.paneConfigID,JSON.stringify(e)),this.listPaneSize=e,this.$emit("resize:list",{size:e}),this.$emit("resize-list",{size:e}),ut.debug("AppContent pane config",{size:e})},restorePaneConfig(){const t=parseInt(Mt.getItem(this.paneConfigID),10);if(!isNaN(t)&&t!==this.listPaneSize)return ut.debug("AppContent pane config",t),this.listPaneSize=t,t},hideDetails(){this.$emit("update:showDetails",!1)}}};var _n=function(){var t=this,e=t._self._c;return e("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":!!t.$scopedSlots.list},attrs:{id:"app-content-vue"}},[t.pageHeading?e("h1",{staticClass:"hidden-visually"},[t._v(" "+t._s(t.pageHeading)+" ")]):t._e(),t.$scopedSlots.list?[t.isMobile||t.layout==="no-split"?e("div",{staticClass:"app-content-wrapper app-content-wrapper--no-split",class:{"app-content-wrapper--show-details":t.showDetails,"app-content-wrapper--show-list":!t.showDetails,"app-content-wrapper--mobile":t.isMobile}},[t.showDetails?e("NcAppContentDetailsToggle",{nativeOn:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.hideDetails.apply(null,arguments)}}}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showDetails,expression:"!showDetails"}]},[t._t("list")],2),t.showDetails?t._t("default"):t._e()],2):t.layout==="vertical-split"||t.layout==="horizontal-split"?e("div",{staticClass:"app-content-wrapper"},[e("Splitpanes",{staticClass:"default-theme",class:{"splitpanes--horizontal":t.layout==="horizontal-split","splitpanes--vertical":t.layout==="vertical-split"},attrs:{horizontal:t.layout==="horizontal-split",rtl:t.isRtl},on:{resized:t.handlePaneResize}},[e("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:t.listPaneSize||t.paneDefaults.list.size,"min-size":t.paneDefaults.list.min,"max-size":t.paneDefaults.list.max}},[t._t("list")],2),e("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:t.detailsPaneSize,"min-size":t.paneDefaults.details.min,"max-size":t.paneDefaults.details.max}},[t._t("default")],2)],1)],1):t._e()]:t._e(),t.$scopedSlots.list?t._e():t._t("default")],2)},Sn=[],En=H(zn,_n,Sn,!1,null,"cc483103");const rr=En.exports;let Pn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Dn=(t=21)=>{let e="",n=t|0;for(;n--;)e+=Pn[Math.random()*64|0];return e};function Z(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(e){return typeof e}:Z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(t)}var pe={selector:"vue-portal-target-".concat(Dn())},An=function(t){return pe.selector=t},ft=typeof window<"u"&&(typeof document>"u"?"undefined":Z(document))!==void 0,kn=I.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(t){return{updatedNodes:t.nodes}},render:function(t){var e=this.updatedNodes&&this.updatedNodes();return e?e.length===1&&!e[0].text?e:t(this.tag||"DIV",e):t()},destroyed:function(){var t=this.$el;t&&t.parentNode.removeChild(t)}}),ce=I.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(pe.selector)}},tag:{type:String,default:"DIV"}},render:function(t){if(this.disabled){var e=this.$scopedSlots&&this.$scopedSlots.default();return e?e.length<2&&!e[0].text?e:t(this.tag,e):t()}return t()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var t=this;this.$nextTick(function(){!t.disabled&&t.slotFn!==t.$scopedSlots.default&&(t.container.updatedNodes=t.$scopedSlots.default),t.slotFn=t.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(ft)return document.querySelector(this.selector)},insertTargetEl:function(){if(ft){var t=document.querySelector("body"),e=document.createElement(this.tag);e.id=this.selector.substring(1),t.appendChild(e)}},mount:function(){if(ft){var t=this.getTargetEl(),e=document.createElement("DIV");this.prepend&&t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e),this.container=new kn({el:e,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Tn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",ce),e.defaultSelector&&An(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===I&&I.use(Tn),ne(Le);const Rn=` `,Nn=` `,Mn={name:"NcContent",components:{NcButton:ie,NcIconSvgWrapper:$e,Teleport:ce},provide(){return{"NcContent:setHasAppNavigation":this.setAppNavigation,"NcContent:selector":"#content-vue"}},props:{appName:{type:String,required:!0}},setup(){return{isMobile:zt()}},data(){return{hasAppNavigation:!1,currentFocus:""}},computed:{currentImage(){return this.currentFocus==="navigation"?Nn:Rn}},beforeMount(){const t=document.getElementById("skip-actions");t&&(t.innerHTML="",t.classList.add("vue-skip-actions"))},methods:{t:re,openAppNavigation(){Y("toggle-navigation",{open:!0}),this.$nextTick(()=>{window.location.hash="app-navigation-vue",document.getElementById("app-navigation-vue").focus()})},setAppNavigation(t){this.hasAppNavigation=t,this.currentFocus===""&&(this.currentFocus="navigation")}}};var On=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content",class:`app-${t.appName.toLowerCase()}`,attrs:{id:"content-vue"}},[e("Teleport",{attrs:{selector:"#skip-actions"}},[e("div",{staticClass:"vue-skip-actions__container"},[e("div",{staticClass:"vue-skip-actions__headline"},[t._v(" "+t._s(t.t("Keyboard navigation help"))+" ")]),e("div",{staticClass:"vue-skip-actions__buttons"},[e("NcButton",{directives:[{name:"show",rawName:"v-show",value:t.hasAppNavigation,expression:"hasAppNavigation"}],attrs:{href:"#app-navigation-vue",variant:"tertiary"},on:{click:function(n){return n.preventDefault(),t.openAppNavigation.apply(null,arguments)},focusin:function(n){t.currentFocus="navigation"},mouseover:function(n){t.currentFocus="navigation"}}},[t._v(" "+t._s(t.t("Skip to app navigation"))+" ")]),e("NcButton",{attrs:{href:"#app-content-vue",variant:"tertiary"},on:{focusin:function(n){t.currentFocus="content"},mouseover:function(n){t.currentFocus="content"}}},[t._v(" "+t._s(t.t("Skip to main content"))+" ")])],1),e("NcIconSvgWrapper",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}],staticClass:"vue-skip-actions__image",attrs:{svg:t.currentImage,size:"auto"}})],1),t._v("  ")]),t._t("default")],2)},Ln=[],$n=H(Mn,On,Ln,!1,null,"1f87d811");const ar=$n.exports;function P(t,e){for(var n in e)t[n]=e[n];return t}var jn=/[!'()*]/g,Vn=function(t){return"%"+t.charCodeAt(0).toString(16)},In=/%2C/g,O=function(t){return encodeURIComponent(t).replace(jn,Vn).replace(In,",")};function vt(t){try{return decodeURIComponent(t)}catch{}return t}function Bn(t,e,n){e===void 0&&(e={});var i=n||Hn,r;try{r=i(t||"")}catch{r={}}for(var a in e){var o=e[a];r[a]=Array.isArray(o)?o.map(Lt):Lt(o)}return r}var Lt=function(t){return t==null||typeof t=="object"?t:String(t)};function Hn(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t&&t.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),r=vt(i.shift()),a=i.length>0?vt(i.join("=")):null;e[r]===void 0?e[r]=a:Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]}),e}function qn(t){var e=t?Object.keys(t).map(function(n){var i=t[n];if(i===void 0)return"";if(i===null)return O(n);if(Array.isArray(i)){var r=[];return i.forEach(function(a){a!==void 0&&(a===null?r.push(O(n)):r.push(O(n)+"="+O(a)))}),r.join("&")}return O(n)+"="+O(i)}).filter(function(n){return n.length>0}).join("&"):null;return e?"?"+e:""}var et=/\/?$/;function nt(t,e,n,i){var r=i&&i.options.stringifyQuery,a=e.query||{};try{a=gt(a)}catch{}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:a,params:e.params||{},fullPath:$t(e,r),matched:t?Fn(t):[]};return n&&(o.redirectedFrom=$t(n,r)),Object.freeze(o)}function gt(t){if(Array.isArray(t))return t.map(gt);if(t&&typeof t=="object"){var e={};for(var n in t)e[n]=gt(t[n]);return e}else return t}var N=nt(null,{path:"/"});function Fn(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function $t(t,e){var n=t.path,i=t.query;i===void 0&&(i={});var r=t.hash;r===void 0&&(r="");var a=e||qn;return(n||"/")+a(i)+r}function ue(t,e,n){return e===N?t===e:e?t.path&&e.path?t.path.replace(et,"")===e.path.replace(et,"")&&(n||t.hash===e.hash&&W(t.query,e.query)):t.name&&e.name?t.name===e.name&&(n||t.hash===e.hash&&W(t.query,e.query)&&W(t.params,e.params)):!1:!1}function W(t,e){if(t===void 0&&(t={}),e===void 0&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.length!==i.length?!1:n.every(function(r,a){var o=t[r],s=i[a];if(s!==r)return!1;var l=e[r];return o==null||l==null?o===l:typeof o=="object"&&typeof l=="object"?W(o,l):String(o)===String(l)})}function Un(t,e){return t.path.replace(et,"/").indexOf(e.path.replace(et,"/"))===0&&(!e.hash||t.hash===e.hash)&&Zn(t.query,e.query)}function Zn(t,e){for(var n in e)if(!(n in t))return!1;return!0}function he(t){for(var e=0;e=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function k(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var it=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},L=ve,Xn=_t,Jn=ei,Yn=fe,Qn=me,ti=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function _t(t,e){for(var n=[],i=0,r=0,a="",o=e&&e.delimiter||"/",s;(s=ti.exec(t))!=null;){var l=s[0],p=s[1],f=s.index;if(a+=t.slice(r,f),r=f+l.length,p){a+=p[1];continue}var m=t[r],v=s[2],h=s[3],c=s[4],d=s[5],u=s[6],y=s[7];a&&(n.push(a),a="");var g=v!=null&&m!=null&&m!==v,C=u==="+"||u==="*",b=u==="?"||u==="*",z=s[2]||o,_=c||d;n.push({name:h||i++,prefix:v||"",delimiter:z,optional:b,repeat:C,partial:g,asterisk:!!y,pattern:_?ri(_):y?".*":"[^"+G(z)+"]+?"})}return r1||!b.length)return b.length===0?t():t("span",{},b)}if(this.tag==="a")C.on=g,C.attrs={href:s,"aria-current":u};else{var z=ge(this.$slots.default);if(z){z.isStatic=!1;var _=z.data=P({},z.data);_.on=_.on||{};for(var A in _.on){var D=_.on[A];A in g&&(_.on[A]=Array.isArray(D)?D:[D])}for(var F in g)F in _.on?_.on[F].push(g[F]):_.on[F]=y;var At=z.data.attrs=P({},z.data.attrs);At.href=s,At["aria-current"]=u}else C.on=g}return t(this.tag,C,this.$slots.default)}};function Bt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function ge(t){if(t){for(var e,n=0;n-1&&(u.params[b]=c.params[b]);return u.path=K(g.path,u.params),v(g,u,d)}else if(u.path){u.params={};for(var z=0;z-1}function st(t,e){return ot(t)&&t._isRouter&&(e==null||t.type===e)}function Wt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function Ei(t){return function(e,n,i){var r=!1,a=0,o=null;_e(t,function(s,l,p,f){if(typeof s=="function"&&s.cid===void 0){r=!0,a++;var m=Gt(function(d){Di(d)&&(d=d.default),s.resolved=typeof d=="function"?d:rt.extend(d),p.components[f]=d,a--,a<=0&&i()}),v=Gt(function(d){var u="Failed to resolve async component "+f+": "+d;o||(o=ot(d)?d:new Error(u),i(o))}),h;try{h=s(m,v)}catch(d){v(d)}if(h)if(typeof h.then=="function")h.then(m,v);else{var c=h.component;c&&typeof c.then=="function"&&c.then(m,v)}}}),r||i()}}function _e(t,e){return Se(t.map(function(n){return Object.keys(n.components).map(function(i){return e(n.components[i],n.instances[i],n,i)})}))}function Se(t){return Array.prototype.concat.apply([],t)}var Pi=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Di(t){return t.__esModule||Pi&&t[Symbol.toStringTag]==="Module"}function Gt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var E=function(t,e){this.router=t,this.base=Ai(e),this.current=N,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};E.prototype.listen=function(t){this.cb=t},E.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},E.prototype.onError=function(t){this.errorCbs.push(t)},E.prototype.transitionTo=function(t,e,n){var i=this,r;try{r=this.router.match(t,this.current)}catch(o){throw this.errorCbs.forEach(function(s){s(o)}),o}var a=this.current;this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach(function(o){o&&o(r,a)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(o){o(r)}))},function(o){n&&n(o),o&&!i.ready&&(!st(o,M.redirected)||a!==N)&&(i.ready=!0,i.readyErrorCbs.forEach(function(s){s(o)}))})},E.prototype.confirmTransition=function(t,e,n){var i=this,r=this.current;this.pending=t;var a=function(c){!st(c)&&ot(c)&&(i.errorCbs.length?i.errorCbs.forEach(function(d){d(c)}):console.error(c)),n&&n(c)},o=t.matched.length-1,s=r.matched.length-1;if(ue(t,r)&&o===s&&t.matched[o]===r.matched[s])return this.ensureURL(),t.hash&&T(this.router,r,t,!1),a(Ci(r,t));var l=ki(this.current.matched,t.matched),p=l.updated,f=l.deactivated,m=l.activated,v=[].concat(Ri(f),this.router.beforeHooks,Ni(p),m.map(function(c){return c.beforeEnter}),Ei(m)),h=function(c,d){if(i.pending!==t)return a(Zt(r,t));try{c(t,r,function(u){u===!1?(i.ensureURL(!0),a(zi(r,t))):ot(u)?(i.ensureURL(!0),a(u)):typeof u=="string"||typeof u=="object"&&(typeof u.path=="string"||typeof u.name=="string")?(a(bi(r,t)),typeof u=="object"&&u.replace?i.replace(u):i.push(u)):d(u)})}catch(u){a(u)}};Wt(v,h,function(){var c=Mi(m),d=c.concat(i.router.resolveHooks);Wt(d,h,function(){if(i.pending!==t)return a(Zt(r,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick(function(){he(t)})})})},E.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},E.prototype.setupListeners=function(){},E.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=N,this.pending=null};function Ai(t){if(!t)if(q){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return t.charAt(0)!=="/"&&(t="/"+t),t.replace(/\/$/,"")}function ki(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n0)){var i=this.router,r=i.options.scrollBehavior,a=R&&r;a&&this.listeners.push(Ce());var o=function(){var s=n.current,l=V(n.base);n.current===N&&l===n._startLocation||n.transitionTo(l,function(p){a&&T(i,p,s,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},e.prototype.go=function(n){window.history.go(n)},e.prototype.push=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){at(k(a.base+l.fullPath)),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.replace=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){xt(k(a.base+l.fullPath)),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.ensureURL=function(n){if(V(this.base)!==this.current.fullPath){var i=k(this.base+this.current.fullPath);n?at(i):xt(i)}},e.prototype.getCurrentLocation=function(){return V(this.base)},e}(E);function V(t){var e=window.location.pathname,n=e.toLowerCase(),i=t.toLowerCase();return t&&(n===i||n.indexOf(k(i+"/"))===0)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var De=function(t){function e(n,i,r){t.call(this,n,i),!(r&&Li(this.base))&&Kt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,r=i.options.scrollBehavior,a=R&&r;a&&this.listeners.push(Ce());var o=function(){var l=n.current;Kt()&&n.transitionTo(X(),function(p){a&&T(n.router,p,l,!0),R||J(p.fullPath)})},s=R?"popstate":"hashchange";window.addEventListener(s,o),this.listeners.push(function(){window.removeEventListener(s,o)})}},e.prototype.push=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){Xt(l.fullPath),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.replace=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){J(l.fullPath),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.go=function(n){window.history.go(n)},e.prototype.ensureURL=function(n){var i=this.current.fullPath;X()!==i&&(n?Xt(i):J(i))},e.prototype.getCurrentLocation=function(){return X()},e}(E);function Li(t){var e=V(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}function Kt(){var t=X();return t.charAt(0)==="/"?!0:(J("/"+t),!1)}function X(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function bt(t){var e=window.location.href,n=e.indexOf("#"),i=n>=0?e.slice(0,n):e;return i+"#"+t}function Xt(t){R?at(bt(t)):window.location.hash=t}function J(t){R?xt(bt(t)):window.location.replace(bt(t))}var $i=function(t){function e(n,i){t.call(this,n,i),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(n,i,r){var a=this;this.transitionTo(n,function(o){a.stack=a.stack.slice(0,a.index+1).concat(o),a.index++,i&&i(o)},r)},e.prototype.replace=function(n,i,r){var a=this;this.transitionTo(n,function(o){a.stack=a.stack.slice(0,a.index).concat(o),i&&i(o)},r)},e.prototype.go=function(n){var i=this,r=this.index+n;if(!(r<0||r>=this.stack.length)){var a=this.stack[r];this.confirmTransition(a,function(){var o=i.current;i.index=r,i.updateRoute(a),i.router.afterHooks.forEach(function(s){s&&s(a,o)})},function(o){st(o,M.duplicated)&&(i.index=r)})}},e.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},e.prototype.ensureURL=function(){},e}(E),w=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=di(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback=e==="history"&&!R&&t.fallback!==!1,this.fallback&&(e="hash"),q||(e="abstract"),this.mode=e,e){case"history":this.history=new Pe(this,t.base);break;case"hash":this.history=new De(this,t.base,this.fallback);break;case"abstract":this.history=new $i(this,t.base);break}},Jt={currentRoute:{configurable:!0}};w.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Jt.currentRoute.get=function(){return this.history&&this.history.current},w.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var a=e.apps.indexOf(t);a>-1&&e.apps.splice(a,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Pe||n instanceof De){var i=function(a){var o=n.current,s=e.options.scrollBehavior,l=R&&s;l&&"fullPath"in a&&T(e,a,o,!1)},r=function(a){n.setupListeners(),i(a)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(a){e.apps.forEach(function(o){o._route=a})})}},w.prototype.beforeEach=function(t){return mt(this.beforeHooks,t)},w.prototype.beforeResolve=function(t){return mt(this.resolveHooks,t)},w.prototype.afterEach=function(t){return mt(this.afterHooks,t)},w.prototype.onReady=function(t,e){this.history.onReady(t,e)},w.prototype.onError=function(t){this.history.onError(t)},w.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&typeof Promise<"u")return new Promise(function(r,a){i.history.push(t,r,a)});this.history.push(t,e,n)},w.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&typeof Promise<"u")return new Promise(function(r,a){i.history.replace(t,r,a)});this.history.replace(t,e,n)},w.prototype.go=function(t){this.history.go(t)},w.prototype.back=function(){this.go(-1)},w.prototype.forward=function(){this.go(1)},w.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]},w.prototype.resolve=function(t,e,n){e=e||this.history.current;var i=Pt(t,e,n,this),r=this.match(i,e),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=ji(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},w.prototype.getRoutes=function(){return this.matcher.getRoutes()},w.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==N&&this.history.transitionTo(this.history.getCurrentLocation())},w.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==N&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(w.prototype,Jt);var Ae=w;function mt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function ji(t,e,n){var i=n==="hash"?"#"+e:e;return t?k(t+"/"+i):i}w.install=yt,w.version="3.6.5",w.isNavigationFailure=st,w.NavigationFailureType=M,w.START_LOCATION=N,q&&window.Vue&&window.Vue.use(w);const Yt=B("photos","systemtags",!1),Vi=B("photos","maps",!1),Ii=B("photos","recognize",!1),Qt=()=>S(()=>import("./FoldersView-Dcwlkt86.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),Bi=()=>S(()=>import("./AlbumsView-BRJEFUGf.chunk.mjs"),__vite__mapDeps([22,2,4,1,5,13,14,15,16,23,24,25,26,27,28,29,10,11,30,31,32,33,34,35,36,37,38,39,40,41,17,42,43,44,18,19,45,46]),import.meta.url),Hi=()=>S(()=>import("./AlbumContent-AqatWZjx.chunk.mjs"),__vite__mapDeps([47,2,4,1,5,10,11,3,6,7,8,9,12,13,14,15,16,48,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,17,42,49,50,51,52,53,54,20,55,56,18,19,57,58,59,60,61,62]),import.meta.url),qi=()=>S(()=>import("./SharedAlbums-CXfNN7vH.chunk.mjs"),__vite__mapDeps([63,2,13,14,4,1,5,15,64,29,10,11,30,65,16,43,44,18,19,45,36,17,66]),import.meta.url),Fi=()=>S(()=>import("./SharedAlbumContent-Cott4oI9.chunk.mjs"),__vite__mapDeps([67,2,38,4,1,5,10,11,3,6,7,8,9,12,13,14,15,64,29,30,65,16,49,50,51,25,52,53,54,20,55,56,18,19,57,28,31,58,59,17,60,61,41,36,68]),import.meta.url),Ui=()=>S(()=>import("./NcColorPicker-DUXt6lMy.chunk.mjs").then(t=>t.P),__vite__mapDeps([69,28,2,4,1,5,25,29,10,11,30,31,6,7,8,70,71,24,26,14,72,73,74,75,9,51,52,13,15,76,77,33,32,34,39,40,64,65,16,49,50,53,54,20,55,56,18,19,41,36,17,78]),import.meta.url),Zi=()=>S(()=>import("./PlacesView-B9ABlKau.chunk.mjs"),__vite__mapDeps([79,2,13,14,4,1,5,15,16,43,44,18,19,45,36,17,80]),import.meta.url),Wi=()=>S(()=>import("./PlaceContent-BZqiCRWm.chunk.mjs"),__vite__mapDeps([81,2,4,1,5,13,14,15,16,49,50,51,25,52,53,54,20,55,56,18,19,41,36,17,82]),import.meta.url),Gi=()=>S(()=>import("./TagsView-DUUPrt_d.chunk.mjs"),__vite__mapDeps([83,2,13,14,4,1,5,15,16,17,84]),import.meta.url),Ki=()=>S(()=>import("./TagContent-Dwv-Pa3i.chunk.mjs"),__vite__mapDeps([85,2,4,1,5,10,11,13,14,15,16,50,51,25,52,53,54,20,55,17,86]),import.meta.url),j=()=>S(()=>import("./TimelineView-Bzb4Tj8Y.chunk.mjs"),__vite__mapDeps([87,2,1,4,5,88,71,16,27,28,25,29,10,11,30,31,32,33,34,35,36,37,89,13,14,15,48,23,24,26,38,39,40,41,17,42,76,74,77,64,65,45,50,51,52,53,54,20,55,18,19,58,59,60,90]),import.meta.url),Xi=()=>S(()=>import("./FacesView-5rYPf97C.chunk.mjs"),__vite__mapDeps([91,2,13,14,4,1,5,15,16,92,17,93,94]),import.meta.url),Ji=()=>S(()=>import("./FaceContent-5XRK_xd6.chunk.mjs"),__vite__mapDeps([95,2,10,4,1,5,11,13,14,15,16,96,92,17,93,97,50,51,25,52,53,54,20,55,58,59,98]),import.meta.url),Yi=()=>S(()=>import("./UnassignedFaces-DI8NVoO-.chunk.mjs"),__vite__mapDeps([99,2,10,4,1,5,11,13,14,15,16,96,92,17,93,97,50,51,25,52,53,54,20,55,58,59,100]),import.meta.url),te=document.title;I.use(Ae);let ke=Q("/apps/maps");Vi||(ke=Q("/settings/apps/integration/maps"));function ee(t){return`/${Array.isArray(t)?t.join("/"):t||""}`}const Qi=new Ae({mode:"history",base:Q("/apps/photos"),linkActiveClass:"active",routes:[{path:"/",component:j,name:"all_media",props:()=>({rootTitle:x("photos","All your media")}),meta:{rootTitle:()=>x("photos","All your media")}},{path:"/photos",component:j,name:"photos",props:()=>({rootTitle:x("photos","Photos"),mimesType:je}),meta:{rootTitle:()=>x("photos","Photos")}},{path:"/videos",component:j,name:"videos",props:()=>({rootTitle:x("photos","Videos"),mimesType:Ve}),meta:{rootTitle:()=>x("photos","Videos")}},{path:"/albums",component:Bi,name:"albums",meta:{rootTitle:()=>x("photos","Albums")}},{path:"/albums/:albumName*",component:Hi,name:"albumsContent",props:t=>({albumName:t.params.albumName}),meta:{rootTitle:t=>x("photos","Album {title}",{title:t.params.albumName})}},{path:"/sharedalbums",component:qi,name:"sharedAlbums",meta:{rootTitle:()=>x("photos","Shared Albums")}},{path:"/sharedalbums/:albumName*",component:Fi,name:"sharedAlbumsContent",props:t=>({albumName:t.params.albumName}),meta:{rootTitle:t=>x("photos","Shared album {title}",{title:t.params.albumName})}},{path:"/public/:token",component:Ui,name:"publicAlbums",props:t=>({token:t.params.token}),meta:{rootTitle:t=>x("photos","Public album {title}",{title:t.params.token})}},{path:"/places",component:Zi,name:"places"},{path:"/places/:placeName*",component:Wi,name:"placesContent",props:t=>({placeName:t.params.placeName})},{path:"/folders/:path*",component:Qt,name:"folders",props:t=>({path:ee(t.params.path),isRoot:!t.params.path,rootTitle:x("photos","Folders")}),meta:{rootTitle:()=>x("photos","Folders")}},{path:"/shared/:path*",component:Qt,name:"shared",props:t=>({path:ee(t.params.path),isRoot:!t.params.path,rootTitle:x("photos","Shared with you"),showShared:!0}),meta:{rootTitle:()=>x("photos","Shared with you")}},{path:"/favorites",component:j,name:"favorites",props:()=>({rootTitle:x("photos","Favorites"),onlyFavorites:!0}),meta:{rootTitle:()=>x("photos","Favorites")}},{path:"/tags/",component:Gi,name:"tags",redirect:Yt?void 0:{name:"timeline"},props:t=>({path:"",isRoot:!t.params.path,rootTitle:x("photos","Tagged photos")}),meta:{rootTitle:()=>x("photos","Tagged photos")}},{path:"/tags/:path",component:Ki,name:"tagcontent",redirect:Yt?void 0:{name:"timeline"},props:t=>({path:`${t.params.path?t.params.path:""}`}),meta:{rootTitle:t=>x("photos","Tagged photo {title}",{title:t.params.path})}},{path:"/maps",name:"maps",beforeEnter(){window.open(ke,"_blank")}},{path:"/thisday",name:"thisday",component:j,props:()=>({rootTitle:x("photos","On this day"),onThisDay:!0}),meta:{rootTitle:()=>x("photos","On this day")}},{path:"/faces",name:"faces",component:Xi,...!Ii&&{beforeEnter(){const t=Q("/settings/apps/installed/recognize");window.open(t,"_blank")}}},{path:"/faces/unassigned",name:"unassignedfaces",component:Yi,meta:{rootTitle:()=>x("photos","Unassigned faces")}},{path:"/faces/:faceName",name:"facecontent",component:Ji,props:t=>({rootTitle:t.params.faceName,faceName:t.params.faceName}),meta:{rootTitle:t=>x("photos","{title}'s face",{title:t.params.faceName})}}]});Qi.afterEach((t,e)=>{const n=t.meta?.rootTitle?.(t);n?document.title=`${n} - ${te}`:document.title=te,window.OCA?.Files?.Sidebar?.file&&t.name!==e.name&&window.OCA.Files.Sidebar.close()});const or="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cdefs%3e%3clinearGradient%20id='placeholder__gradient'%3e%3cstop%20offset='0%25'%20stop-color='%23ededed'%3e%3canimate%20attributeName='stop-color'%20values='%23ededed;%20%23ededed;%20%23cccccc;%20%23cccccc;%20%23ededed'%20dur='2s'%20repeatCount='indefinite'/%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23cccccc'%3e%3canimate%20attributeName='stop-color'%20values='%23cccccc;%20%23ededed;%20%23ededed;%20%23cccccc;%20%23cccccc'%20dur='2s'%20repeatCount='indefinite'/%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",sr="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M5%2021c-.55%200-1.021-.196-1.412-.587A1.927%201.927%200%200%201%203%2019V5c0-.55.196-1.021.588-1.413A1.926%201.926%200%200%201%205%203h14c.55%200%201.021.196%201.413.587.391.392.587.863.587%201.413v14a1.93%201.93%200%200%201-.587%201.413A1.93%201.93%200%200%201%2019%2021H5Zm0-2h14V5H5v14Zm1-2h12l-3.75-5-3%204L9%2013l-3%204Zm-1%202V5v14Zm3.5-9a1.45%201.45%200%200%200%201.063-.437A1.45%201.45%200%200%200%2010%208.5c0-.417-.146-.771-.437-1.062A1.447%201.447%200%200%200%208.5%207c-.417%200-.771.146-1.062.438A1.443%201.443%200%200%200%207%208.5c0%20.417.146.771.438%201.063.291.291.645.437%201.062.437Z'%20style='fill-rule:nonzero'%20transform='translate(-2.665%20-2.665)%20scale(1.55497)'/%3e%3c/svg%3e",lr="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='m4%204%202%204h3L7%204h2l2%204h3l-2-4h2l2%204h3l-2-4h3c.55%200%201.021.196%201.413.587.391.392.587.863.587%201.413v12a1.93%201.93%200%200%201-.587%201.413A1.93%201.93%200%200%201%2020%2020H4c-.55%200-1.021-.196-1.412-.587A1.927%201.927%200%200%201%202%2018V6c0-.55.196-1.021.588-1.413A1.926%201.926%200%200%201%204%204Z'%20style='fill-rule:nonzero'%20transform='translate(-.804%20-.607)%20scale(1.40177)'/%3e%3c/svg%3e";export{mn as A,ci as L,ar as N,rr as a,ir as b,Ii as c,Yt as d,sr as i,Vi as m,Qi as r,or as s,lr as v}; //# sourceMappingURL=video-eu9Y2O-I.chunk.mjs.map