aboutsummaryrefslogtreecommitdiffstats
path: root/dist/files-sidebar.js
blob: d6cadac5032989e726ee844be73a9932e2d5d862 (plain)
1
2
(()=>{var e,i,s,r={9165:(t,e,i)=>{"use strict";i.d(e,{NZC:()=>s,ZL5:()=>n,dF:()=>o,fEr:()=>r});var s="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",r="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",n="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",o="M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z"},5699:(e,i,s)=>{"use strict";var r=s(85471),n=s(53334),o=s(35810),a=s(61338),l=s(71225),d=s(77815);const c=(0,d.KU)();var u=s(63814),h=s(87485),f=s(21777),p=s(9165),g=s(77905),m=s(85168),b=s(74692),E=s.n(b),A=s(65043),v=s(65743),y=s(57505),N=s(4604),I=s(28326),T=s(6695),w=s(77764);const x={name:"LegacyView",props:{component:{type:Object,required:!0},fileInfo:{type:Object,default:()=>{},required:!0}},watch:{fileInfo(t){this.setFileInfo(t)}},mounted(){this.component.$el.replaceAll(this.$el),this.setFileInfo(this.fileInfo)},methods:{setFileInfo(t){this.component.setFileInfo(new OCA.Files.FileInfoModel(t))}}};var O=s(14486);const S=(0,O.A)(x,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,C={name:"SidebarTab",components:{NcAppSidebarTab:s(18608).A,NcEmptyContent:I.A},props:{fileInfo:{type:Object,default:()=>{},required:!0},id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,default:""},onMount:{type:Function,required:!0},onUpdate:{type:Function,required:!0},onDestroy:{type:Function,required:!0},onScrollBottomReached:{type:Function,default:()=>{}}},data:()=>({loading:!0}),computed:{activeTab(){return this.$parent.activeTab}},watch:{async fileInfo(t,e){t.id!==e.id&&(this.loading=!0,await this.onUpdate(this.fileInfo),this.loading=!1)}},async mounted(){this.loading=!0,await this.onMount(this.$refs.mount,this.fileInfo,this.$refs.tab),this.loading=!1},async beforeDestroy(){await this.onDestroy()}},L=(0,O.A)(C,(function(){var t=this,e=t._self._c;return e("NcAppSidebarTab",{ref:"tab",attrs:{id:t.id,name:t.name,icon:t.icon},on:{bottomReached:t.onScrollBottomReached},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},[t._v(" "),t.loading?e("NcEmptyContent",{attrs:{icon:"icon-loading"}}):t._e(),t._v(" "),e("div",{ref:"mount"})],1)}),[],!1,null,null,null).exports;var _=s(59892),R=s(5212),$=s(71654);const F={userVisible:!0,userAssignable:!0,canAssign:!0},P=t=>t.map((t=>{let{props:e}=t;return Object.fromEntries(Object.entries(e).map((t=>{let[e,i]=t;return[(0,$.A)(e),"displayName"===(0,$.A)(e)?String(i):i]})))})),D=t=>{if("name"in t&&!("displayName"in t))return{...t};const e={...t};return e.name=e.displayName,delete e.displayName,e};var M=s(60669);const j=(0,u.dC)("dav"),k=(0,M.UU)(j),B=t=>{k.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:t??""})};(0,f.zo)(B),B((0,f.do)());var U=s(35947);const G=(0,U.YK)().setApp("systemtags").detectUser().build();s(56760);const V='<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">\n\t<d:prop>\n\t\t<oc:id />\n\t\t<oc:display-name />\n\t\t<oc:user-visible />\n\t\t<oc:user-assignable />\n\t\t<oc:can-assign />\n\t\t<d:getetag />\n\t\t<nc:color />\n\t</d:prop>\n</d:propfind>',X=async(t,e)=>{const i="/systemtags-relations/files/"+e+"/"+t.id,s=D(t);try{await k.customRequest(i,{method:"PUT",data:s})}catch(t){throw G.error((0,n.t)("systemtags","Failed to set tag for file"),{error:t}),new Error((0,n.t)("systemtags","Failed to set tag for file"))}};var q=s(32981);const H=r.Ay.extend({name:"SystemTags",components:{NcLoadingIcon:_.A,NcSelectTags:R.A},props:{fileId:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data:()=>({sortedTags:[],selectedTags:[],loadingTags:!1,loading:!1}),async created(){try{const t=await(async()=>{try{const{data:t}=await k.getDirectoryContents("/systemtags",{data:V,details:!0,glob:"/systemtags/*"});return P(t)}catch(t){throw G.error((0,n.t)("systemtags","Failed to load tags"),{error:t}),new Error((0,n.t)("systemtags","Failed to load tags"))}})(),e=await(async()=>{const t=(0,u.Jv)("/apps/systemtags/lastused");try{const{data:e}=await A.Ay.get(t);return e.map(Number)}catch(t){throw G.error((0,n.t)("systemtags","Failed to load last used tags"),{error:t}),new Error((0,n.t)("systemtags","Failed to load last used tags"))}})(),i=[],s=[];for(const r of t)e.includes(r.id)?i.push(r):s.push(r);const r=(t,i)=>e.indexOf(t.id)-e.indexOf(i.id);i.sort(r),this.sortedTags=[...i,...s]}catch(t){(0,m.Qg)((0,n.Tl)("systemtags","Failed to load tags"))}},watch:{fileId:{immediate:!0,async handler(){this.loadingTags=!0;try{this.selectedTags=await(async()=>{const t="/systemtags-relations/files/"+this.fileId;try{const{data:e}=await k.getDirectoryContents(t,{data:V,details:!0,glob:"/systemtags-relations/files/*/*"});return P(e)}catch(t){throw G.error((0,n.t)("systemtags","Failed to load tags for file"),{error:t}),new Error((0,n.t)("systemtags","Failed to load tags for file"))}})()}catch(t){(0,m.Qg)((0,n.Tl)("systemtags","Failed to load selected tags"))}this.loadingTags=!1}}},methods:{t:n.Tl,createOption(t){for(const e of this.sortedTags){const{id:i,displayName:s,...r}=e;if(s===t&&Object.entries(r).every((t=>{let[e,i]=t;return F[e]===i})))return e}return{...F,displayName:t}},handleInput(t){this.selectedTags=t.filter((t=>Boolean(t.id)))},async handleSelect(t){const e=t[t.length-1];if(!e.id)return;const i=e;this.loading=!0;try{await X(i,this.fileId);const t=(t,e)=>t.id===i.id?-1:e.id===i.id?1:0;this.sortedTags.sort(t)}catch(t){(0,m.Qg)((0,n.Tl)("systemtags","Failed to select tag"))}this.loading=!1},async handleCreate(t){this.loading=!0;try{const e=await(async(t,e)=>{const i=D(t),s=await(async t=>{const e=D(t);try{const{headers:i}=await k.customRequest("/systemtags",{method:"POST",data:e}),s=i.get("content-location");if(s)return(0,a.Ic)("systemtags:tag:created",t),(t=>{const e=t.indexOf("?");e>0&&(t=t.substring(0,e));const i=t.split("/");let s;do{s=i[i.length-1],i.pop()}while(!s&&i.length>0);return Number(s)})(s);throw G.error((0,n.t)("systemtags",'Missing "Content-Location" header')),new Error((0,n.t)("systemtags",'Missing "Content-Location" header'))}catch(t){if(409===t?.response?.status)throw G.error((0,n.t)("systemtags","A tag with the same name already exists"),{error:t}),new Error((0,n.t)("systemtags","A tag with the same name already exists"));throw G.error((0,n.t)("systemtags","Failed to create tag"),{error:t}),new Error((0,n.t)("systemtags","Failed to create tag"))}})(i),r={...i,id:s};return await X(r,e),r.id})(t,this.fileId),i={...t,id:e};this.sortedTags.unshift(i),this.selectedTags.push(i)}catch(t){if("1"===(0,q.C)("settings","restrictSystemTagsCreationToAdmin","0"))return void(0,m.Qg)((0,n.Tl)("systemtags","System admin disabled tag creation. You can only use existing ones."));(0,m.Qg)((0,n.Tl)("systemtags","Failed to create tag"))}this.loading=!1},async handleDeselect(t){this.loading=!0;try{await(async t=>{const e="/systemtags-relations/files/"+this.fileId+"/"+t.id;try{await k.deleteFile(e)}catch(t){throw G.error((0,n.t)("systemtags","Failed to delete tag for file"),{error:t}),new Error((0,n.t)("systemtags","Failed to delete tag for file"))}})(t)}catch(t){(0,m.Qg)((0,n.Tl)("systemtags","Failed to delete tag"))}this.loading=!1}}});var z=s(85072),Y=s.n(z),Z=s(97825),W=s.n(Z),K=s(77659),J=s.n(K),Q=s(55056),tt=s.n(Q),et=s(10540),it=s.n(et),st=s(41113),rt=s.n(st),nt=s(13019),ot={};ot.styleTagTransform=rt(),ot.setAttributes=tt(),ot.insert=J().bind(null,"head"),ot.domAPI=W(),ot.insertStyleElement=it(),Y()(nt.A,ot),nt.A&&nt.A.locals&&nt.A.locals;const at=(0,O.A)(H,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"system-tags"},[t.loadingTags?e("NcLoadingIcon",{attrs:{name:t.t("systemtags","Loading collaborative tags …"),size:32}}):[e("NcSelectTags",{staticClass:"system-tags__select",attrs:{"input-label":t.t("systemtags","Search or create collaborative tags"),placeholder:t.t("systemtags","Collaborative tags …"),options:t.sortedTags,value:t.selectedTags,"create-option":t.createOption,disabled:t.disabled,taggable:!0,passthru:!0,"fetch-tags":!1,loading:t.loading},on:{input:t.handleInput,"option:selected":t.handleSelect,"option:created":t.handleCreate,"option:deselected":t.handleDeselect},scopedSlots:t._u([{key:"no-options",fn:function(){return[t._v("\n\t\t\t\t"+t._s(t.t("systemtags","No tags to select, type to create a new tag"))+"\n\t\t\t")]},proxy:!0}])})]],2)}),[],!1,null,"03a73e73",null).exports,lt=(0,U.YK)().setApp("files").detectUser().build(),dt=(0,r.pM)({name:"Sidebar",components:{LegacyView:S,NcActionButton:y.A,NcAppSidebar:v.N,NcDateTime:N.A,NcEmptyContent:I.A,NcIconSvgWrapper:T.A,SidebarTab:L,SystemTags:at,NcUserBubble:w.A},setup:()=>({currentUser:(0,f.HW)(),mdiStar:p.ZL5,mdiStarOutline:p.dF}),data:()=>({Sidebar:OCA.Files.Sidebar.state,showTags:!1,showTagsDefault:!0,error:null,loading:!0,fileInfo:null,node:null,isFullScreen:!1,hasLowHeight:!1}),computed:{file(){return this.Sidebar.file},tabs(){return this.Sidebar.tabs},views(){return this.Sidebar.views},davPath(){return`${o.PY}${o.lJ}${(0,l.O0)(this.file)}`},activeTab(){return this.Sidebar.activeTab},size(){return(0,o.v7)(this.fileInfo?.size)},background(){return this.getPreviewIfAny(this.fileInfo)},appSidebar(){return this.fileInfo?{"data-mimetype":this.fileInfo.mimetype,active:this.activeTab,background:this.background,class:{"app-sidebar--has-preview":this.fileInfo.hasPreview&&!this.isFullScreen,"app-sidebar--full":this.isFullScreen},compact:this.hasLowHeight||!this.fileInfo.hasPreview||this.isFullScreen,loading:this.loading,name:this.node?.displayname??this.fileInfo.name,title:this.node?.displayname??this.fileInfo.name}:this.error?{key:"error",subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}:{loading:this.loading,subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}},defaultAction(){return this.fileInfo&&OCA.Files&&OCA.Files.App&&OCA.Files.App.fileList&&OCA.Files.App.fileList.fileActions&&OCA.Files.App.fileList.fileActions.getDefaultFileAction&&OCA.Files.App.fileList.fileActions.getDefaultFileAction(this.fileInfo.mimetype,this.fileInfo.type,OC.PERMISSION_READ)},defaultActionListener(){return this.defaultAction?"figure-click":null},isSystemTagsEnabled:()=>!0===(0,h.F)()?.systemtags?.enabled,ownerId(){return this.node?.attributes?.["owner-id"]??this.currentUser.uid},currentUserIsOwner(){return this.ownerId===this.currentUser.uid},nodeOwnerLabel(){let e=this.node?.attributes?.["owner-display-name"];return this.currentUserIsOwner&&(e=`${e} (${t("files","You")})`),e},sharedMultipleTimes:()=>Array.isArray(node.attributes?.["share-types"])&&node.attributes?.["share-types"].length>1?t("files","Shared multiple times with different people"):null},created(){(0,a.B1)("files:node:deleted",this.onNodeDeleted),window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){(0,a.al)("file:node:deleted",this.onNodeDeleted),window.removeEventListener("resize",this.handleWindowResize)},methods:{canDisplay(t){return t.enabled(this.fileInfo)},resetData(){this.error=null,this.fileInfo=null,this.$nextTick((()=>{this.$refs.tabs&&this.$refs.tabs.updateTabs()}))},getPreviewIfAny(t){if(t?.hasPreview&&!this.isFullScreen){const e=t?.etag||"";return(0,u.Jv)(`/core/preview?fileId=${t.id}&x=${screen.width}&y=${screen.height}&a=true&v=${e.slice(0,6)}`)}return this.getIconUrl(t)},getIconUrl(t){const e=t?.mimetype||"application/octet-stream";return"httpd/unix-directory"===e?"shared"===t.mountType||"shared-root"===t.mountType?OC.MimeType.getIconUrl("dir-shared"):"external-root"===t.mountType?OC.MimeType.getIconUrl("dir-external"):void 0!==t.mountType&&""!==t.mountType?OC.MimeType.getIconUrl("dir-"+t.mountType):t.shareTypes&&(t.shareTypes.indexOf(g.I.Link)>-1||t.shareTypes.indexOf(g.I.Email)>-1)?OC.MimeType.getIconUrl("dir-public"):t.shareTypes&&t.shareTypes.length>0?OC.MimeType.getIconUrl("dir-shared"):OC.MimeType.getIconUrl("dir"):OC.MimeType.getIconUrl(e)},setActiveTab(t){OCA.Files.Sidebar.setActiveTab(t),this.tabs.forEach((e=>{try{e.setIsActive(t===e.id)}catch(t){lt.error("Error while setting tab active state",{error:t,id:e.id,tab:e})}}))},async toggleStarred(e){try{await(0,A.Ay)({method:"PROPPATCH",url:this.davPath,data:`<?xml version="1.0"?>\n\t\t\t\t\t\t<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t\t\t\t\t\t${e?"<d:set>":"<d:remove>"}\n\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t<oc:favorite>1</oc:favorite>\n\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t${e?"</d:set>":"</d:remove>"}\n\t\t\t\t\t\t</d:propertyupdate>`});const t="dir"===this.fileInfo.type,i=new(t?o.vd:o.ZH)({fileid:this.fileInfo.id,source:`${o.PY}${o.lJ}${this.file}`,root:o.lJ,mime:t?void 0:this.fileInfo.mimetype,attributes:{favorite:1}});(0,a.Ic)(e?"files:favorites:added":"files:favorites:removed",i),this.fileInfo.isFavourited=e}catch(e){(0,m.Qg)(t("files","Unable to change the favorite state of the file")),lt.error("Unable to change favorite state",{error:e})}},onDefaultAction(){this.defaultAction&&this.defaultAction.action(this.fileInfo.name,{fileInfo:this.fileInfo,dir:this.fileInfo.dir,fileList:OCA.Files.App.fileList,$file:E()("body")})},toggleTags(){this.showTags=!this.showTags,this.setShowTagsDefault(this.showTags)},async open(e){if(!e||""===e.trim())throw new Error(`Invalid path '${e}'`);const i=!!this.Sidebar.file;this.Sidebar.file=e,this.error=null,this.loading=!0;try{this.node=await(async t=>{const e=(0,d.aN)(),i=await c.stat(`${(0,d.ei)()}${t}`,{details:!0,data:e});return(0,d.pO)(i.data)})(this.file),this.fileInfo=function(t){const e=new OC.Files.FileInfo({id:t.fileid,path:t.dirname,name:t.basename,mtime:t.mtime?.getTime(),etag:t.attributes.etag,size:t.size,hasPreview:t.attributes.hasPreview,isEncrypted:1===t.attributes.isEncrypted,isFavourited:1===t.attributes.favorite,mimetype:t.mime,permissions:t.permissions,mountType:t.attributes["mount-type"],sharePermissions:t.attributes["share-permissions"],shareAttributes:JSON.parse(t.attributes["share-attributes"]||"[]"),type:"file"===t.type?"file":"dir"});return e.get=t=>e[t],e.isDirectory=()=>"httpd/unix-directory"===e.mimetype,e.canEdit=()=>Boolean(e.permissions&OC.PERMISSION_UPDATE),e}(this.node),this.fileInfo.dir=this.file.split("/").slice(0,-1).join("/"),this.views.forEach((t=>{t.setFileInfo(this.fileInfo)})),await this.$nextTick(),this.setActiveTab(this.Sidebar.activeTab||this.tabs[0].id),this.loading=!1,await this.$nextTick(),i&&this.$refs.sidebar&&this.$refs.sidebar.focusActiveTabContent()}catch(e){throw this.loading=!1,this.error=t("files","Error while loading the file data"),console.error("Error while loading the file data",e),new Error(e)}},close(){this.Sidebar.file="",this.showTags=!1,this.resetData()},onNodeDeleted(t){this.fileInfo&&t&&this.fileInfo.id===t.fileid&&this.close()},setFullScreenMode(t){this.isFullScreen=t,t?document.querySelector("#content")?.classList.add("with-sidebar--full")||document.querySelector("#content-vue")?.classList.add("with-sidebar--full"):document.querySelector("#content")?.classList.remove("with-sidebar--full")||document.querySelector("#content-vue")?.classList.remove("with-sidebar--full")},setShowTagsDefault(t){this.showTagsDefault=t},handleOpening(){(0,a.Ic)("files:sidebar:opening")},handleOpened(){(0,a.Ic)("files:sidebar:opened")},handleClosing(){(0,a.Ic)("files:sidebar:closing")},handleClosed(){(0,a.Ic)("files:sidebar:closed")},handleWindowResize(){this.hasLowHeight=document.documentElement.clientHeight<1024}}});var ct=s(82867),ut={};ut.styleTagTransform=rt(),ut.setAttributes=tt(),ut.insert=J().bind(null,"head"),ut.domAPI=W(),ut.insertStyleElement=it(),Y()(ct.A,ut),ct.A&&ct.A.locals&&ct.A.locals;const ht=(0,O.A)(dt,(function(){var t=this,e=t._self._c;return t._self._setupProxy,t.file?e("NcAppSidebar",t._b({ref:"sidebar",attrs:{"data-cy-sidebar":"","force-menu":!0},on:t._d({close:t.close,"update:active":t.setActiveTab,opening:t.handleOpening,opened:t.handleOpened,closing:t.handleClosing,closed:t.handleClosed},[t.defaultActionListener,function(e){return e.stopPropagation(),e.preventDefault(),t.onDefaultAction.apply(null,arguments)}]),scopedSlots:t._u([t.fileInfo?{key:"subname",fn:function(){return[e("div",{staticClass:"sidebar__subname"},[t.fileInfo.isFavourited?e("NcIconSvgWrapper",{attrs:{path:t.mdiStar,name:t.t("files","Favorite"),inline:""}}):t._e(),t._v(" "),e("span",[t._v(t._s(t.size))]),t._v(" "),e("span",{staticClass:"sidebar__subname-separator"},[t._v("•")]),t._v(" "),e("NcDateTime",{attrs:{timestamp:t.fileInfo.mtime}}),t._v(" "),e("span",{staticClass:"sidebar__subname-separator"},[t._v("•")]),t._v(" "),e("span",[t._v(t._s(t.t("files","Owner")))]),t._v(" "),e("NcUserBubble",{attrs:{user:t.ownerId,"display-name":t.nodeOwnerLabel}})],1)]},proxy:!0}:null,t.fileInfo?{key:"description",fn:function(){return[e("div",{staticClass:"sidebar__description"},[t.isSystemTagsEnabled&&t.showTagsDefault?e("SystemTags",{directives:[{name:"show",rawName:"v-show",value:t.showTags,expression:"showTags"}],attrs:{disabled:!t.fileInfo?.canEdit(),"file-id":t.fileInfo.id}}):t._e(),t._v(" "),t._l(t.views,(function(i){return e("LegacyView",{key:i.cid,attrs:{component:i,"file-info":t.fileInfo}})}))],2)]},proxy:!0}:null,t.fileInfo?{key:"secondary-actions",fn:function(){return[e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.toggleStarred(!t.fileInfo.isFavourited)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{path:t.fileInfo.isFavourited?t.mdiStarOutline:t.mdiStar}})]},proxy:!0}],null,!1,3772937801)},[t._v("\n\t\t\t"+t._s(t.fileInfo.isFavourited?t.t("files","Remove from favorites"):t.t("files","Add to favorites"))+"\n\t\t")]),t._v(" "),t.isSystemTagsEnabled?e("NcActionButton",{attrs:{"close-after-click":!0,icon:"icon-tag"},on:{click:t.toggleTags}},[t._v("\n\t\t\t"+t._s(t.t("files","Tags"))+"\n\t\t")]):t._e()]},proxy:!0}:null],null,!0)},"NcAppSidebar",t.appSidebar,!1),[t._v(" "),t._v(" "),t._v(" "),t.error?e("NcEmptyContent",{attrs:{icon:"icon-error"}},[t._v("\n\t\t"+t._s(t.error)+"\n\t")]):t.fileInfo?t._l(t.tabs,(function(i){return[i.enabled(t.fileInfo)?e("SidebarTab",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:i.id,attrs:{id:i.id,name:i.name,icon:i.icon,"on-mount":i.mount,"on-update":i.update,"on-destroy":i.destroy,"on-scroll-bottom-reached":i.scrollBottomReached,"file-info":t.fileInfo},scopedSlots:t._u([void 0!==i.iconSvg?{key:"icon",fn:function(){return[e("span",{staticClass:"svg-icon",domProps:{innerHTML:t._s(i.iconSvg)}})]},proxy:!0}:null],null,!0)}):t._e()]})):t._e()],2):t._e()}),[],!1,null,"54fe7d2a",null).exports;var ft=s(99418);function pt(t,e,i){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r.Ay.prototype.t=n.Tl,window.OCA.Files||(window.OCA.Files={}),Object.assign(window.OCA.Files,{Sidebar:new class{constructor(){(function(t,e,i){(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})(this,"_state",void 0),this._state={},this._state.tabs=[],this._state.views=[],this._state.file="",this._state.activeTab="",console.debug("OCA.Files.Sidebar initialized")}get state(){return this._state}registerTab(t){return this._state.tabs.findIndex((e=>e.id===t.id))>-1?(console.error(`An tab with the same id ${t.id} already exists`,t),!1):(this._state.tabs.push(t),!0)}registerSecondaryView(t){return this._state.views.findIndex((e=>e.id===t.id))>-1?(console.error("A similar view already exists",t),!1):(this._state.views.push(t),!0)}get file(){return this._state.file}setActiveTab(t){this._state.activeTab=t}}}),Object.assign(window.OCA.Files.Sidebar,{Tab:class{constructor(){let{id:t,name:e,icon:i,iconSvg:s,mount:r,setIsActive:n,update:o,destroy:a,enabled:l,scrollBottomReached:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(pt(this,"_id",void 0),pt(this,"_name",void 0),pt(this,"_icon",void 0),pt(this,"_iconSvgSanitized",void 0),pt(this,"_mount",void 0),pt(this,"_setIsActive",void 0),pt(this,"_update",void 0),pt(this,"_destroy",void 0),pt(this,"_enabled",void 0),pt(this,"_scrollBottomReached",void 0),void 0===l&&(l=()=>!0),void 0===d&&(d=()=>{}),"string"!=typeof t||""===t.trim())throw new Error("The id argument is not a valid string");if("string"!=typeof e||""===e.trim())throw new Error("The name argument is not a valid string");if(("string"!=typeof i||""===i.trim())&&"string"!=typeof s)throw new Error("Missing valid string for icon or iconSvg argument");if("function"!=typeof r)throw new Error("The mount argument should be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("The setIsActive argument should be a function");if("function"!=typeof o)throw new Error("The update argument should be a function");if("function"!=typeof a)throw new Error("The destroy argument should be a function");if("function"!=typeof l)throw new Error("The enabled argument should be a function");if("function"!=typeof d)throw new Error("The scrollBottomReached argument should be a function");this._id=t,this._name=e,this._icon=i,this._mount=r,this._setIsActive=n,this._update=o,this._destroy=a,this._enabled=l,this._scrollBottomReached=d,"string"==typeof s&&(this._iconSvgSanitized=ft.A.sanitize(s))}get id(){return this._id}get name(){return this._name}get icon(){return this._icon}get iconSvg(){return this._iconSvgSanitized}get mount(){return this._mount}get setIsActive(){return this._setIsActive||(()=>{})}get update(){return this._update}get destroy(){return this._destroy}get enabled(){return this._enabled}get scrollBottomReached(){return this._scrollBottomReached}}}),window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector("body > .content")||document.querySelector("body > #content");let e;if(t){if(!document.getElementById("app-sidebar")){const e=document.createElement("div");e.id="app-sidebar",t.appendChild(e)}e=t.__vue__}const i=new(r.Ay.extend(ht))({name:"SidebarRoot",parent:e}).$mount("#app-sidebar");window.OCA.Files.Sidebar.open=i.open,window.OCA.Files.Sidebar.close=i.close,window.OCA.Files.Sidebar.setFullScreenMode=i.setFullScreenMode,window.OCA.Files.Sidebar.setShowTagsDefault=i.setShowTagsDefault}))},82867:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var s=i(71354),r=i.n(s),n=i(76314),o=i.n(n)()(r());o.push([t.id,'.app-sidebar--has-preview[data-v-54fe7d2a] .app-sidebar-header__figure{background-size:cover}.app-sidebar--has-preview[data-v-54fe7d2a][data-mimetype="text/plain"] .app-sidebar-header__figure,.app-sidebar--has-preview[data-v-54fe7d2a][data-mimetype="text/markdown"] .app-sidebar-header__figure{background-size:contain}.app-sidebar--full[data-v-54fe7d2a]{position:fixed !important;z-index:2025 !important;top:0 !important;height:100% !important}.app-sidebar[data-v-54fe7d2a] .app-sidebar-header__description{margin:0 16px 4px 16px !important}.app-sidebar .svg-icon[data-v-54fe7d2a] svg{width:20px;height:20px;fill:currentColor}.sidebar__subname[data-v-54fe7d2a]{display:flex;align-items:center;gap:0 8px}.sidebar__subname-separator[data-v-54fe7d2a]{display:inline-block;font-weight:bold !important}.sidebar__subname .user-bubble__wrapper[data-v-54fe7d2a]{display:inline-flex}.sidebar__description[data-v-54fe7d2a]{display:flex;flex-direction:column;width:100%;gap:8px 0}',"",{version:3,sources:["webpack://./apps/files/src/views/Sidebar.vue"],names:[],mappings:"AAGE,uEACC,qBAAA,CAKA,yMACC,uBAAA,CAKH,oCACC,yBAAA,CACA,uBAAA,CACA,gBAAA,CACA,sBAAA,CAIA,+DACC,iCAAA,CAKD,4CACC,UAAA,CACA,WAAA,CACA,iBAAA,CAKH,mCACE,YAAA,CACA,kBAAA,CACA,SAAA,CAEA,6CACE,oBAAA,CACA,2BAAA,CAGF,yDACD,mBAAA,CAID,uCACE,YAAA,CACA,qBAAA,CACA,UAAA,CACA,SAAA",sourceRoot:""}]);const a=o},13019:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var s=i(71354),r=i.n(s),n=i(76314),o=i.n(n)()(r());o.push([t.id,".system-tags[data-v-03a73e73]{display:flex;flex-direction:column}.system-tags__select[data-v-03a73e73]{width:100%}.system-tags__select[data-v-03a73e73] .vs__deselect{padding:0}","",{version:3,sources:["webpack://./apps/systemtags/src/components/SystemTags.vue"],names:[],mappings:"AACA,8BACC,YAAA,CACA,qBAAA,CAGA,sCACC,UAAA,CAEC,oDACC,SAAA",sourceRoot:""}]);const a=o},42634:()=>{},63779:()=>{},77199:()=>{},59169:()=>{},86833:()=>{},35810:(t,e,i)=>{"use strict";i.d(e,{Al:()=>s.r,H4:()=>s.c,PY:()=>s.b,Q$:()=>s.e,R3:()=>s.n,VL:()=>s.l,ZH:()=>s.q,lJ:()=>s.d,pt:()=>s.F,ur:()=>u,v7:()=>d,vd:()=>s.s});var s=i(68251),r=(i(43627),i(53334)),n=i(380),o=i(65606);Error;const a=["B","KB","MB","GB","TB","PB"],l=["B","KiB","MiB","GiB","TiB","PiB"];function d(t,e=!1,i=!1,s=!1){i=i&&!s,"string"==typeof t&&(t=Number(t));let n=t>0?Math.floor(Math.log(t)/Math.log(s?1e3:1024)):0;n=Math.min((i?l.length:a.length)-1,n);const o=i?l[n]:a[n];let d=(t/Math.pow(s?1e3:1024,n)).toFixed(1);return!0===e&&0===n?("0.0"!==d?"< 1 ":"0 ")+(i?l[1]:a[1]):(d=n<2?parseFloat(d).toFixed(0):parseFloat(d).toLocaleString((0,r.lO)()),d+" "+o)}function c(t){return t instanceof Date?t.toISOString():String(t)}function u(t,e={}){const i={sortingMode:"basename",sortingOrder:"asc",...e};return function(t,e,i){i=i??[];const s=(e=e??[t=>t]).map(((t,e)=>"asc"===(i[e]??"asc")?1:-1)),n=Intl.Collator([(0,r.Z0)(),(0,r.lO)()],{numeric:!0,usage:"sort"});return[...t].sort(((t,i)=>{for(const[r,o]of e.entries()){const e=n.compare(c(o(t)),c(o(i)));if(0!==e)return e*s[r]}return 0}))}(t,[...i.sortFavoritesFirst?[t=>1!==t.attributes?.favorite]:[],...i.sortFoldersFirst?[t=>"folder"!==t.type]:[],..."basename"!==i.sortingMode?[t=>t[i.sortingMode]]:[],t=>{return(e=t.displayname||t.attributes?.displayname||t.basename).lastIndexOf(".")>0?e.slice(0,e.lastIndexOf(".")):e;var e},t=>t.basename],[...i.sortFavoritesFirst?["asc"]:[],...i.sortFoldersFirst?["asc"]:[],..."mtime"===i.sortingMode?["asc"===i.sortingOrder?"desc":"asc"]:[],..."mtime"!==i.sortingMode&&"basename"!==i.sortingMode?[i.sortingOrder]:[],i.sortingOrder,i.sortingOrder])}var h,f,p={},g={};function m(){return h||(h=1,function(t){const e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",s=new RegExp("^"+i+"$");t.isExist=function(t){return void 0!==t},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,i){if(e){const s=Object.keys(e),r=s.length;for(let n=0;n<r;n++)t[s[n]]="strict"===i?[e[s[n]]]:e[s[n]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(t){return!(null==s.exec(t))},t.getAllMatches=function(t,e){const i=[];let s=e.exec(t);for(;s;){const r=[];r.startIndex=e.lastIndex-s[0].length;const n=s.length;for(let t=0;t<n;t++)r.push(s[t]);i.push(r),s=e.exec(t)}return i},t.nameRegexp=i}(g)),g}function b(){if(f)return p;f=1;const t=m(),e={allowBooleanAttributes:!1,unpairedTags:[]};function i(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function s(t,e){const i=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const s=t.substr(i,e-i);if(e>5&&"xml"===s)return u("InvalidXml","XML declaration allowed only at the start of the document.",g(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function r(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let i=1;for(e+=8;e<t.length;e++)if("<"===t[e])i++;else if(">"===t[e]&&(i--,0===i))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}p.validate=function(n,o){o=Object.assign({},e,o);const l=[];let h=!1,f=!1;"\ufeff"===n[0]&&(n=n.substr(1));for(let e=0;e<n.length;e++)if("<"===n[e]&&"?"===n[e+1]){if(e+=2,e=s(n,e),e.err)return e}else{if("<"!==n[e]){if(i(n[e]))continue;return u("InvalidChar","char '"+n[e]+"' is not expected.",g(n,e))}{let m=e;if(e++,"!"===n[e]){e=r(n,e);continue}{let b=!1;"/"===n[e]&&(b=!0,e++);let E="";for(;e<n.length&&">"!==n[e]&&" "!==n[e]&&"\t"!==n[e]&&"\n"!==n[e]&&"\r"!==n[e];e++)E+=n[e];if(E=E.trim(),"/"===E[E.length-1]&&(E=E.substring(0,E.length-1),e--),p=E,!t.isName(p)){let t;return t=0===E.trim().length?"Invalid space after '<'.":"Tag '"+E+"' is an invalid name.",u("InvalidTag",t,g(n,e))}const A=a(n,e);if(!1===A)return u("InvalidAttr","Attributes for '"+E+"' have open quote.",g(n,e));let v=A.value;if(e=A.index,"/"===v[v.length-1]){const t=e-v.length;v=v.substring(0,v.length-1);const i=d(v,o);if(!0!==i)return u(i.err.code,i.err.msg,g(n,t+i.err.line));h=!0}else if(b){if(!A.tagClosed)return u("InvalidTag","Closing tag '"+E+"' doesn't have proper closing.",g(n,e));if(v.trim().length>0)return u("InvalidTag","Closing tag '"+E+"' can't have attributes or invalid starting.",g(n,m));if(0===l.length)return u("InvalidTag","Closing tag '"+E+"' has not been opened.",g(n,m));{const t=l.pop();if(E!==t.tagName){let e=g(n,t.tagStartPos);return u("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+e.line+", col "+e.col+") instead of closing tag '"+E+"'.",g(n,m))}0==l.length&&(f=!0)}}else{const t=d(v,o);if(!0!==t)return u(t.err.code,t.err.msg,g(n,e-v.length+t.err.line));if(!0===f)return u("InvalidXml","Multiple possible root nodes found.",g(n,e));-1!==o.unpairedTags.indexOf(E)||l.push({tagName:E,tagStartPos:m}),h=!0}for(e++;e<n.length;e++)if("<"===n[e]){if("!"===n[e+1]){e++,e=r(n,e);continue}if("?"!==n[e+1])break;if(e=s(n,++e),e.err)return e}else if("&"===n[e]){const t=c(n,e);if(-1==t)return u("InvalidChar","char '&' is not expected.",g(n,e));e=t}else if(!0===f&&!i(n[e]))return u("InvalidXml","Extra text at the end",g(n,e));"<"===n[e]&&e--}}}var p;return h?1==l.length?u("InvalidTag","Unclosed tag '"+l[0].tagName+"'.",g(n,l[0].tagStartPos)):!(l.length>0)||u("InvalidXml","Invalid '"+JSON.stringify(l.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):u("InvalidXml","Start tag expected.",1)};const n='"',o="'";function a(t,e){let i="",s="",r=!1;for(;e<t.length;e++){if(t[e]===n||t[e]===o)""===s?s=t[e]:s!==t[e]||(s="");else if(">"===t[e]&&""===s){r=!0;break}i+=t[e]}return""===s&&{value:i,index:e,tagClosed:r}}const l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function d(e,i){const s=t.getAllMatches(e,l),r={};for(let t=0;t<s.length;t++){if(0===s[t][1].length)return u("InvalidAttr","Attribute '"+s[t][2]+"' has no space in starting.",b(s[t]));if(void 0!==s[t][3]&&void 0===s[t][4])return u("InvalidAttr","Attribute '"+s[t][2]+"' is without value.",b(s[t]));if(void 0===s[t][3]&&!i.allowBooleanAttributes)return u("InvalidAttr","boolean attribute '"+s[t][2]+"' is not allowed.",b(s[t]));const e=s[t][2];if(!h(e))return u("InvalidAttr","Attribute '"+e+"' is an invalid name.",b(s[t]));if(r.hasOwnProperty(e))return u("InvalidAttr","Attribute '"+e+"' is repeated.",b(s[t]));r[e]=1}return!0}function c(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let i=/\d/;for("x"===t[e]&&(e++,i=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(i))break}return-1}(t,++e);let i=0;for(;e<t.length;e++,i++)if(!(t[e].match(/\w/)&&i<20)){if(";"===t[e])break;return-1}return e}function u(t,e,i){return{err:{code:t,msg:e,line:i.line||i,col:i.col}}}function h(e){return t.isName(e)}function g(t,e){const i=t.substring(0,e).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function b(t){return t.startIndex+t[1].length}return p}var E,A,v,y,N,I,T,w,x,O,S,C={};function L(){return x?w:(x=1,w=function(t){return"function"==typeof t?t:Array.isArray(t)?e=>{for(const i of t){if("string"==typeof i&&e===i)return!0;if(i instanceof RegExp&&i.test(e))return!0}}:()=>!1})}var _,R,$,F,P,D,M,j,k,B,U,G,V,X={};function q(){if(_)return X;function t(r,n,o){let a;const l={};for(let d=0;d<r.length;d++){const c=r[d],u=e(c);let h="";if(h=void 0===o?u:o+"."+u,u===n.textNodeName)void 0===a?a=c[u]:a+=""+c[u];else{if(void 0===u)continue;if(c[u]){let e=t(c[u],n,h);const r=s(e,n);c[":@"]?i(e,c[":@"],h,n):1!==Object.keys(e).length||void 0===e[n.textNodeName]||n.alwaysCreateTextNode?0===Object.keys(e).length&&(n.alwaysCreateTextNode?e[n.textNodeName]="":e=""):e=e[n.textNodeName],void 0!==l[u]&&l.hasOwnProperty(u)?(Array.isArray(l[u])||(l[u]=[l[u]]),l[u].push(e)):n.isArray(u,h,r)?l[u]=[e]:l[u]=e}}}return"string"==typeof a?a.length>0&&(l[n.textNodeName]=a):void 0!==a&&(l[n.textNodeName]=a),l}function e(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const i=e[t];if(":@"!==i)return i}}function i(t,e,i,s){if(e){const r=Object.keys(e),n=r.length;for(let o=0;o<n;o++){const n=r[o];s.isArray(n,i+"."+n,!0,!0)?t[n]=[e[n]]:t[n]=e[n]}}}function s(t,e){const{textNodeName:i}=e,s=Object.keys(t).length;return 0===s||!(1!==s||!t[i]&&"boolean"!=typeof t[i]&&0!==t[i])}return _=1,X.prettify=function(e,i){return t(e,i)},X}function H(){if($)return R;$=1;const{buildOptions:t}=function(){if(E)return C;E=1;const t={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,i){return t}};return C.buildOptions=function(e){return Object.assign({},t,e)},C.defaultOptions=t,C}(),e=function(){if(S)return O;S=1;const t=m(),e=v?A:(v=1,A=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}),i=function(){if(N)return y;N=1;const t=m();function e(t,e){let i="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)i+=t[e];if(i=i.trim(),-1!==i.indexOf(" "))throw new Error("External entites are not supported");const s=t[e++];let r="";for(;e<t.length&&t[e]!==s;e++)r+=t[e];return[i,r,e]}function i(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function s(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function r(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function n(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function o(e){if(t.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}return y=function(t,a){const l={};if("O"!==t[a+3]||"C"!==t[a+4]||"T"!==t[a+5]||"Y"!==t[a+6]||"P"!==t[a+7]||"E"!==t[a+8])throw new Error("Invalid Tag instead of DOCTYPE");{a+=9;let d=1,c=!1,u=!1,h="";for(;a<t.length;a++)if("<"!==t[a]||u)if(">"===t[a]){if(u?"-"===t[a-1]&&"-"===t[a-2]&&(u=!1,d--):d--,0===d)break}else"["===t[a]?c=!0:h+=t[a];else{if(c&&i(t,a)){let i,s;a+=7,[i,s,a]=e(t,a+1),-1===s.indexOf("&")&&(l[o(i)]={regx:RegExp(`&${i};`,"g"),val:s})}else c&&s(t,a)||c&&r(t,a)?a+=8:c&&n(t,a)?a+=9:u=!0;d++,h=""}if(0!==d)throw new Error("Unclosed DOCTYPE")}return{entities:l,i:a}}}(),s=function(){if(T)return I;T=1;const t=/^[-+]?0x[a-fA-F0-9]+$/,e=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};return I=function(s,r={}){if(r=Object.assign({},i,r),!s||"string"!=typeof s)return s;let n=s.trim();if(void 0!==r.skipLike&&r.skipLike.test(n))return s;if(r.hex&&t.test(n))return Number.parseInt(n,16);{const t=e.exec(n);if(t){const e=t[1],i=t[2];let a=(o=t[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substr(0,o.length-1)),o):o;const l=t[4]||t[6];if(!r.leadingZeros&&i.length>0&&e&&"."!==n[2])return s;if(!r.leadingZeros&&i.length>0&&!e&&"."!==n[1])return s;{const t=Number(n),o=""+t;return-1!==o.search(/[eE]/)||l?r.eNotation?t:s:-1!==n.indexOf(".")?"0"===o&&""===a||o===a||e&&o==="-"+a?t:s:i?a===o||e+a===o?t:s:n===o||n===e+o?t:s}}return s}var o}}(),r=L();function n(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];this.lastEntities[s]={regex:new RegExp("&"+s+";","g"),val:t[s]}}}function o(t,e,i,s,r,n,o){if(void 0!==t&&(this.options.trimValues&&!s&&(t=t.trim()),t.length>0)){o||(t=this.replaceEntitiesValue(t));const s=this.options.tagValueProcessor(e,t,i,r,n);return null==s?t:typeof s!=typeof t||s!==t?s:this.options.trimValues||t.trim()===t?w(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function a(t){if(this.options.removeNSPrefix){const e=t.split(":"),i="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=i+e[1])}return t}const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,i,s){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const s=t.getAllMatches(e,l),r=s.length,n={};for(let t=0;t<r;t++){const e=this.resolveNameSpace(s[t][1]);if(this.ignoreAttributesFn(e,i))continue;let r=s[t][4],o=this.options.attributeNamePrefix+e;if(e.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),"__proto__"===o&&(o="#__proto__"),void 0!==r){this.options.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r);const t=this.options.attributeValueProcessor(e,r,i);n[o]=null==t?r:typeof t!=typeof r||t!==r?t:w(r,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(n[o]=!0)}if(!Object.keys(n).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=n,t}return n}}const c=function(t){t=t.replace(/\r\n?/g,"\n");const s=new e("!xml");let r=s,n="",o="";for(let a=0;a<t.length;a++)if("<"===t[a])if("/"===t[a+1]){const e=g(t,">",a,"Closing Tag is not closed.");let i=t.substring(a+2,e).trim();if(this.options.removeNSPrefix){const t=i.indexOf(":");-1!==t&&(i=i.substr(t+1))}this.options.transformTagName&&(i=this.options.transformTagName(i)),r&&(n=this.saveTextToParentTag(n,r,o));const s=o.substring(o.lastIndexOf(".")+1);if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);let l=0;s&&-1!==this.options.unpairedTags.indexOf(s)?(l=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=o.lastIndexOf("."),o=o.substring(0,l),r=this.tagsNodeStack.pop(),n="",a=e}else if("?"===t[a+1]){let i=b(t,a,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,o),this.options.ignoreDeclaration&&"?xml"===i.tagName||this.options.ignorePiTags);else{const t=new e(i.tagName);t.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(t[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(r,t,o)}a=i.closeIndex+1}else if("!--"===t.substr(a+1,3)){const e=g(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=t.substring(a+4,e-2);n=this.saveTextToParentTag(n,r,o),r.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=e}else if("!D"===t.substr(a+1,2)){const e=i(t,a);this.docTypeEntities=e.entities,a=e.i}else if("!["===t.substr(a+1,2)){const e=g(t,"]]>",a,"CDATA is not closed.")-2,i=t.substring(a+9,e);n=this.saveTextToParentTag(n,r,o);let s=this.parseTextData(i,r.tagname,o,!0,!1,!0,!0);null==s&&(s=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):r.add(this.options.textNodeName,s),a=e+2}else{let i=b(t,a,this.options.removeNSPrefix),l=i.tagName;const d=i.rawTagName;let c=i.tagExp,u=i.attrExpPresent,h=i.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,o,!1));const f=r;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),l!==s.tagname&&(o+=o?"."+l:l),this.isItStopNode(this.options.stopNodes,o,l)){let s="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),o=o.substr(0,o.length-1),c=l):c=c.substr(0,c.length-1),a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=i.closeIndex;else{const e=this.readStopNodeData(t,d,h+1);if(!e)throw new Error(`Unexpected end of ${d}`);a=e.i,s=e.tagContent}const n=new e(l);l!==c&&u&&(n[":@"]=this.buildAttributesMap(c,o,l)),s&&(s=this.parseTextData(s,l,o,!0,u,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),n.add(this.options.textNodeName,s),this.addChild(r,n,o)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),o=o.substr(0,o.length-1),c=l):c=c.substr(0,c.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const t=new e(l);l!==c&&u&&(t[":@"]=this.buildAttributesMap(c,o,l)),this.addChild(r,t,o),o=o.substr(0,o.lastIndexOf("."))}else{const t=new e(l);this.tagsNodeStack.push(r),l!==c&&u&&(t[":@"]=this.buildAttributesMap(c,o,l)),this.addChild(r,t,o),r=t}n="",a=h}}else n+=t[a];return s.child};function u(t,e,i){const s=this.options.updateTag(e.tagname,i,e[":@"]);!1===s||("string"==typeof s?(e.tagname=s,t.addChild(e)):t.addChild(e))}const h=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const i=this.docTypeEntities[e];t=t.replace(i.regx,i.val)}for(let e in this.lastEntities){const i=this.lastEntities[e];t=t.replace(i.regex,i.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const i=this.htmlEntities[e];t=t.replace(i.regex,i.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function f(t,e,i,s){return t&&(void 0===s&&(s=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,i,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,s))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function p(t,e,i){const s="*."+i;for(const i in t){const r=t[i];if(s===r||e===r)return!0}return!1}function g(t,e,i,s){const r=t.indexOf(e,i);if(-1===r)throw new Error(s);return r+e.length-1}function b(t,e,i,s=">"){const r=function(t,e,i=">"){let s,r="";for(let n=e;n<t.length;n++){let e=t[n];if(s)e===s&&(s="");else if('"'===e||"'"===e)s=e;else if(e===i[0]){if(!i[1])return{data:r,index:n};if(t[n+1]===i[1])return{data:r,index:n}}else"\t"===e&&(e=" ");r+=e}}(t,e+1,s);if(!r)return;let n=r.data;const o=r.index,a=n.search(/\s/);let l=n,d=!0;-1!==a&&(l=n.substring(0,a),n=n.substring(a+1).trimStart());const c=l;if(i){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),d=l!==r.data.substr(t+1))}return{tagName:l,tagExp:n,closeIndex:o,attrExpPresent:d,rawTagName:c}}function E(t,e,i){const s=i;let r=1;for(;i<t.length;i++)if("<"===t[i])if("/"===t[i+1]){const n=g(t,">",i,`${e} is not closed`);if(t.substring(i+2,n).trim()===e&&(r--,0===r))return{tagContent:t.substring(s,i),i:n};i=n}else if("?"===t[i+1])i=g(t,"?>",i+1,"StopNode is not closed.");else if("!--"===t.substr(i+1,3))i=g(t,"--\x3e",i+3,"StopNode is not closed.");else if("!["===t.substr(i+1,2))i=g(t,"]]>",i,"StopNode is not closed.")-2;else{const s=b(t,i,">");s&&((s&&s.tagName)===e&&"/"!==s.tagExp[s.tagExp.length-1]&&r++,i=s.closeIndex)}}function w(e,i,r){if(i&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&s(e,r)}return t.isExist(e)?e:""}return O=class{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,16))}},this.addExternalEntities=n,this.parseXml=c,this.parseTextData=o,this.resolveNameSpace=a,this.buildAttributesMap=d,this.isItStopNode=p,this.replaceEntitiesValue=h,this.readStopNodeData=E,this.saveTextToParentTag=f,this.addChild=u,this.ignoreAttributesFn=r(this.options.ignoreAttributes)}}}(),{prettify:i}=q(),s=b();return R=class{constructor(e){this.externalEntities={},this.options=t(e)}parse(t,r){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(r){!0===r&&(r={});const e=s.validate(t,r);if(!0!==e)throw Error(`${e.err.msg}:${e.err.line}:${e.err.col}`)}const n=new e(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(t);return this.options.preserveOrder||void 0===o?o:i(o,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}}function z(){if(P)return F;function t(n,o,a,l){let d="",c=!1;for(let u=0;u<n.length;u++){const h=n[u],f=e(h);if(void 0===f)continue;let p="";if(p=0===a.length?f:`${a}.${f}`,f===o.textNodeName){let t=h[f];s(p,o)||(t=o.tagValueProcessor(f,t),t=r(t,o)),c&&(d+=l),d+=t,c=!1;continue}if(f===o.cdataPropName){c&&(d+=l),d+=`<![CDATA[${h[f][0][o.textNodeName]}]]>`,c=!1;continue}if(f===o.commentPropName){d+=l+`\x3c!--${h[f][0][o.textNodeName]}--\x3e`,c=!0;continue}if("?"===f[0]){const t=i(h[":@"],o),e="?xml"===f?"":l;let s=h[f][0][o.textNodeName];s=0!==s.length?" "+s:"",d+=e+`<${f}${s}${t}?>`,c=!0;continue}let g=l;""!==g&&(g+=o.indentBy);const m=l+`<${f}${i(h[":@"],o)}`,b=t(h[f],o,p,g);-1!==o.unpairedTags.indexOf(f)?o.suppressUnpairedNode?d+=m+">":d+=m+"/>":b&&0!==b.length||!o.suppressEmptyNode?b&&b.endsWith(">")?d+=m+`>${b}${l}</${f}>`:(d+=m+">",b&&""!==l&&(b.includes("/>")||b.includes("</"))?d+=l+o.indentBy+b+l:d+=b,d+=`</${f}>`):d+=m+"/>",c=!0}return d}function e(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];if(t.hasOwnProperty(s)&&":@"!==s)return s}}function i(t,e){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!t.hasOwnProperty(s))continue;let n=e.attributeValueProcessor(s,t[s]);n=r(n,e),!0===n&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return i}function s(t,e){let i=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+i)return!0;return!1}function r(t,e){if(t&&t.length>0&&e.processEntities)for(let i=0;i<e.entities.length;i++){const s=e.entities[i];t=t.replace(s.regex,s.val)}return t}return P=1,F=function(e,i){let s="";return i.format&&i.indentBy.length>0&&(s="\n"),t(e,i,"",s)}}function Y(){if(U)return B;U=1;const t="object"==typeof o&&o.env&&o.env.NODE_DEBUG&&/\bsemver\b/i.test(o.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};return B=t}function Z(){if(V)return G;V=1;const t=Number.MAX_SAFE_INTEGER||9007199254740991;return G={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}!function(){if(k)return j;k=1;const t=b(),e=H(),i=function(){if(M)return D;M=1;const t=z(),e=L(),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(t){this.options=Object.assign({},i,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=e(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=o),this.processTextOrObjNode=r,this.options.format?(this.indentate=n,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function r(t,e,i,s){const r=this.j2x(t,i+1,s.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,r.attrStr,i):this.buildObjectNode(r.val,e,r.attrStr,i)}function n(t){return this.options.indentBy.repeat(t)}function o(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}return s.prototype.build=function(e){return this.options.preserveOrder?t(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},s.prototype.j2x=function(t,e,i){let s="",r="";const n=i.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(void 0===t[o])this.isAttribute(o)&&(r+="");else if(null===t[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)r+=this.buildTextValNode(t[o],o,"",e);else if("object"!=typeof t[o]){const i=this.isAttribute(o);if(i&&!this.ignoreAttributesFn(i,n))s+=this.buildAttrPairStr(i,""+t[o]);else if(!i)if(o===this.options.textNodeName){let e=this.options.tagValueProcessor(o,""+t[o]);r+=this.replaceEntitiesValue(e)}else r+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){const s=t[o].length;let n="",a="";for(let l=0;l<s;l++){const s=t[o][l];if(void 0===s);else if(null===s)"?"===o[0]?r+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){const t=this.j2x(s,e+1,i.concat(o));n+=t.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(a+=t.attrStr)}else n+=this.processTextOrObjNode(s,o,e,i);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(o,s);t=this.replaceEntitiesValue(t),n+=t}else n+=this.buildTextValNode(s,o,"",e)}this.options.oneListGroup&&(n=this.buildObjectNode(n,o,a,e)),r+=n}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const e=Object.keys(t[o]),i=e.length;for(let r=0;r<i;r++)s+=this.buildAttrPairStr(e[r],""+t[o][e[r]])}else r+=this.processTextOrObjNode(t[o],o,e,i);return{attrStr:s,val:r}},s.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},s.prototype.buildObjectNode=function(t,e,i,s){if(""===t)return"?"===e[0]?this.indentate(s)+"<"+e+i+"?"+this.tagEndChar:this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar;{let r="</"+e+this.tagEndChar,n="";return"?"===e[0]&&(n="?",r=""),!i&&""!==i||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===n.length?this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(s)+"<"+e+i+n+this.tagEndChar+t+this.indentate(s)+r:this.indentate(s)+"<"+e+i+n+">"+t+r}},s.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},s.prototype.buildTextValNode=function(t,e,i,s){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(s)+"<"+e+i+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(e,t);return r=this.replaceEntitiesValue(r),""===r?this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+i+">"+r+"</"+e+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t},D=s}();j={XMLParser:e,XMLValidator:t,XMLBuilder:i}}();var W,K,J,Q,tt,et,it,st,rt,nt,ot,at,lt,dt={exports:{}};function ct(){if(it)return et;it=1;const t=Y(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:i}=Z(),{safeRe:s,t:r}=(W||(W=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:r}=Z(),n=Y(),o=(e=t.exports={}).re=[],a=e.safeRe=[],l=e.src=[],d=e.t={};let c=0;const u="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",r],[u,s]],f=(t,e,i)=>{const s=(t=>{for(const[e,i]of h)t=t.split(`${e}*`).join(`${e}{0,${i}}`).split(`${e}+`).join(`${e}{1,${i}}`);return t})(e),r=c++;n(t,r,e),d[t]=r,l[r]=e,o[r]=new RegExp(e,i?"g":void 0),a[r]=new RegExp(s,i?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),f("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${u}+`),f("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),f("FULL",`^${l[d.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),f("LOOSE",`^${l[d.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),f("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),f("COERCE",`${l[d.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[d.COERCEPLAIN]+`(?:${l[d.PRERELEASE]})?(?:${l[d.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[d.COERCE],!0),f("COERCERTLFULL",l[d.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",f("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",f("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(dt,dt.exports)),dt.exports),n=function(){if(J)return K;J=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return K=i=>i?"object"!=typeof i?t:i:e}(),{compareIdentifiers:o}=function(){if(tt)return Q;tt=1;const t=/^[0-9]+$/,e=(e,i)=>{const s=t.test(e),r=t.test(i);return s&&r&&(e=+e,i=+i),e===i?0:s&&!r?-1:r&&!s?1:e<i?-1:1};return Q={compareIdentifiers:e,rcompareIdentifiers:(t,i)=>e(i,t)}}();class a{constructor(o,l){if(l=n(l),o instanceof a){if(o.loose===!!l.loose&&o.includePrerelease===!!l.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",o,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const d=o.trim().match(l.loose?s[r.LOOSE]:s[r.FULL]);if(!d)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<i)return e}return t})):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(t("SemVer.compare",this.version,this.options,e),!(e instanceof a)){if("string"==typeof e&&e===this.version)return 0;e=new a(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(t){return t instanceof a||(t=new a(t,this.options)),o(this.major,t.major)||o(this.minor,t.minor)||o(this.patch,t.patch)}comparePre(e){if(e instanceof a||(e=new a(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let i=0;do{const s=this.prerelease[i],r=e.prerelease[i];if(t("prerelease compare",i,s,r),void 0===s&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===s)return-1;if(s!==r)return o(s,r)}while(++i)}compareBuild(e){e instanceof a||(e=new a(e,this.options));let i=0;do{const s=this.build[i],r=e.build[i];if(t("build compare",i,s,r),void 0===s&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===s)return-1;if(s!==r)return o(s,r)}while(++i)}inc(t,e,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!e&&!1===i)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===i)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===i&&(s=[e]),0===o(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return et=a}!function(){if(ot)return nt;ot=1;const t=function(){if(rt)return st;rt=1;const t=ct();return st=(e,i,s=!1)=>{if(e instanceof t)return e;try{return new t(e,i)}catch(t){if(!s)return null;throw t}}}();nt=(e,i)=>{const s=t(e,i);return s?s.version:null}}(),function(){if(lt)return at;lt=1;const t=ct();at=(e,i)=>new t(e,i).major}(),n.m}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(t,i,s,r)=>{if(!i){var n=1/0;for(c=0;c<e.length;c++){i=e[c][0],s=e[c][1],r=e[c][2];for(var a=!0,l=0;l<i.length;l++)(!1&r||n>=r)&&Object.keys(o.O).every((t=>o.O[t](i[l])))?i.splice(l--,1):(a=!1,r<n&&(n=r));if(a){e.splice(c--,1);var d=s();void 0!==d&&(t=d)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[i,s,r]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,i)=>(o.f[i](t,e),e)),[])),o.u=t=>t+"-"+t+".js?v="+{2441:"44b85e4901c485417f88",5862:"142cd48ca8ec32e57725",6146:"5f2015343db7411125d5",8289:"8f098190dce9305dab1e"}[t],o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i={},s="nextcloud:",o.l=(t,e,r,n)=>{if(i[t])i[t].push(e);else{var a,l;if(void 0!==r)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==s+r){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",s+r),a.src=t),i[t]=[e];var h=(e,s)=>{a.onerror=a.onload=null,clearTimeout(f);var r=i[t];if(delete i[t],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((t=>t(s))),e)return e(s)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.j=4763,(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!t||!/^http(s?):/.test(t));)t=i[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{o.b=document.baseURI||self.location.href;var t={4763:0};o.f.j=(e,i)=>{var s=o.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var r=new Promise(((i,r)=>s=t[e]=[i,r]));i.push(s[2]=r);var n=o.p+o.u(e),a=new Error;o.l(n,(i=>{if(o.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var r=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+n+")",a.name="ChunkLoadError",a.type=r,a.request=n,s[1](a)}}),"chunk-"+e,e)}},o.O.j=e=>0===t[e];var e=(e,i)=>{var s,r,n=i[0],a=i[1],l=i[2],d=0;if(n.some((e=>0!==t[e]))){for(s in a)o.o(a,s)&&(o.m[s]=a[s]);if(l)var c=l(o)}for(e&&e(i);d<n.length;d++)r=n[d],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return o.O(c)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),o.nc=void 0;var a=o.O(void 0,[4208],(()=>o(5699)));a=o.O(a)})();
//# sourceMappingURL=files-sidebar.js.map?v=1b20128b476ab0065506