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szB,UAAY1zB,EACvBI,EAAEszB,UACF,CACEvwB,MAAO3C,EACP+B,MAAOnC,EAAEmC,MACTqE,MAAO,wBAET3G,GACED,EAAE,OAAQQ,EAAG,CAACJ,IAAMJ,EAAE,OAAQ,CAAEmD,MAAO3C,EAAGoG,MAAO,uBAAyB,CAAC,IAAI1G,EAAEgK,MAAM,OAAO,EAEpG+qB,QAAQ,IACPC,YACDj0B,KAAKsxB,KAAKrX,QAAQ,OAAQ,QAAQA,QAAQ,UAAW,MACrDia,OACF,OAAOn1B,EAAE,MAAO,CAAE4G,MAAO,kDAAoD,CAC3EvG,EACAY,KAAK2yB,eAAiB,EAAI5zB,EAAE,MAAO,CAAE4G,MAAO,+BAAiC,CAC3E5G,EAAE4M,EAAG,CAAErK,MAAO,CAAEgwB,KAAMtxB,KAAKsxB,KAAMC,cAAevxB,KAAKyxB,gBAClD,MAET,GAEF,MAAA/xB,CAAOX,GACL,OAAOiB,KAAKsyB,YAActyB,KAAK6zB,eAAe90B,GAAKiB,KAAK2zB,gBAAgB50B,EAC1E,GAYIgnB,GAVkB,OACtB3Z,EAFK,KAAU,MAKf,EACA,KACA,WACA,KACA,MAEUlL,O,wyCCzLM,IACK,IACJ,IACC,IACH,IACD,IACC,IACC,IACG,IACL,IACQ,IACX,IACG,IACO,IACH,IACD,IACO,IACG,IACN,IACD,IACI,IACC,IACF,IACF,IACC,IACR,IACG,IACK,wBACZ,IACI,IACC,IACL,IACa,IACR,IACJ,IACM,IACE,IACI,IACX,IACM,IACM,IACT,IACC,IACA,IACF,IACD,IACK,IACN,IACI,IACD,IACE,KACR,IACG,EAAA0X,EACK,KACN,KACI,KACU,KACF,WACX,KACW,KACb,KACI,KACO,KACF,KACI,KACV,KACK,KACJ,KACbub,OAAOC,YA8CD,KACE,KACA,YACRD,OAAOC,W","sources":["webpack:///nextcloud/node_modules/@nextcloud/dialogs/dist/chunks/FilePicker-a12aa61b.mjs","webpack:///nextcloud/node_modules/@nextcloud/files/dist/index.mjs","webpack:///nextcloud/node_modules/@nextcloud/vue/dist/Components/NcRichContenteditable.mjs","webpack:///nextcloud/node_modules/@nextcloud/vue/dist/chunks/NcRichText-1c3d2654.mjs","webpack:///nextcloud/node_modules/@nextcloud/vue/dist/index.mjs"],"sourcesContent":["import { defineComponent as S, useSlots as X, ref as v, computed as m, watchEffect as q, toRef as Z, watch as O, onMounted as H, onUnmounted as J, nextTick as Q } from \"vue\";\nimport { NcButton as $, NcIconSvgWrapper as Y, NcModal as ee, NcCheckboxRadioSwitch as j, NcDateTime as te, NcActions as ie, NcActionInput as le, NcBreadcrumbs as ne, NcBreadcrumb as ae, NcSelect as se, NcTextField as oe, NcEmptyContent as re } from \"@nextcloud/vue\";\nimport { useElementSize as ce, toValue as U } from \"@vueuse/core\";\nimport { FileType as x, formatFileSize as ue, davGetClient as de, davResultToNode as D, davRootPath as M, getFavoriteNodes as pe, davGetRecentSearch as fe, davGetDefaultPropfind as me } from \"@nextcloud/files\";\nimport { getCanonicalLocale as _e } from \"@nextcloud/l10n\";\nimport { join as W } from \"path\";\nimport { t as _, s as ve } from \"./index-d73f5182.mjs\";\nimport { generateUrl as ge } from \"@nextcloud/router\";\nimport { Fragment as he } from \"vue-frag\";\nfunction g(e, i, t, l, n, s, c, u) {\n var a = typeof e == \"function\" ? e.options : e;\n i && (a.render = i, a.staticRenderFns = t, a._compiled = !0), l && (a.functional = !0), s && (a._scopeId = \"data-v-\" + s);\n var r;\n if (c ? (r = function(f) {\n f = f || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < \"u\" && (f = __VUE_SSR_CONTEXT__), n && n.call(this, f), f && f._registeredComponents && f._registeredComponents.add(c);\n }, a._ssrRegister = r) : n && (r = u ? function() {\n n.call(this, (a.functional ? this.parent : this).$root.$options.shadowRoot);\n } : n), r)\n if (a.functional) {\n a._injectStyles = r;\n var d = a.render;\n a.render = function(f, k) {\n return r.call(k), d(f, k);\n };\n } else {\n var C = a.beforeCreate;\n a.beforeCreate = C ? [].concat(C, r) : [r];\n }\n return { exports: e, options: a };\n}\nconst ye = { name: \"FileIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar we = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon file-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Ce = [], ke = g(ye, we, Ce, !1, null, null, null, null);\nconst G = ke.exports, be = S({ __name: \"DialogButton\", props: { callback: null, label: null, icon: { default: void 0 }, type: { default: \"secondary\" } }, emits: [\"click\"], setup(e, { emit: i }) {\n const t = e;\n return { __sfc: !0, props: t, emit: i, handleClick: (l) => {\n var n;\n (n = t.callback) == null || n.call(t), i(\"click\", l);\n }, NcButton: $, NcIconSvgWrapper: Y };\n} });\nvar Se = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(t.NcButton, { attrs: { \"aria-label\": t.props.label, type: t.props.type }, on: { click: t.handleClick }, scopedSlots: e._u([t.props.icon !== void 0 ? { key: \"icon\", fn: function() {\n return [typeof t.props.icon == \"string\" ? i(t.NcIconSvgWrapper, { attrs: { svg: t.props.icon } }) : i(t.props.icon, { tag: \"component\", attrs: { size: 20 } })];\n }, proxy: !0 } : null], null, !0) }, [e._v(\" \" + e._s(t.props.label) + \" \")]);\n}, Fe = [], Ne = g(be, Se, Fe, !1, null, null, null, null);\nconst xe = Ne.exports, ze = S({ __name: \"DialogBase\", props: { name: null, message: { default: \"\" }, additionalTrapElements: { default: () => [] }, container: { default: void 0 }, size: { default: \"small\" }, buttons: { default: () => [] }, navigationClasses: { default: () => [] }, contentClasses: { default: () => [] }, dialogClasses: { default: () => [] } }, emits: [\"close\"], setup(e, { emit: i }) {\n const t = e, l = X(), n = v(), { width: s } = ce(n), c = m(() => s.value < 876), u = m(() => (l == null ? void 0 : l.navigation) !== void 0), a = v(!0), r = () => {\n a.value = !1, i(\"close\");\n }, d = m(() => ({ additionalTrapElements: t.additionalTrapElements, container: t.container === void 0 ? \"body\" : t.container, name: t.name, size: t.size, enableSlideshow: !1, enableSwipe: !1 }));\n return { __sfc: !0, props: t, emit: i, slots: l, wrapper: n, dialogWidth: s, isNavigationCollapsed: c, hasNavigation: u, open: a, handleClose: r, modalProps: d, NcModal: ee, DialogButton: xe };\n} });\nvar Le = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return t.open ? i(t.NcModal, e._b({ staticClass: \"dialog__modal\", on: { close: t.handleClose } }, \"NcModal\", t.modalProps, !1), [i(\"h2\", { staticClass: \"dialog__name\", domProps: { textContent: e._s(e.name) } }), i(\"div\", { staticClass: \"dialog\", class: e.dialogClasses }, [i(\"div\", { ref: \"wrapper\", class: [\"dialog__wrapper\", { \"dialog__wrapper--collapsed\": t.isNavigationCollapsed }] }, [t.hasNavigation ? i(\"nav\", { staticClass: \"dialog__navigation\", class: e.navigationClasses }, [e._t(\"navigation\", null, { isCollapsed: t.isNavigationCollapsed })], 2) : e._e(), i(\"div\", { staticClass: \"dialog__content\", class: e.contentClasses }, [e._t(\"default\", function() {\n return [i(\"p\", [e._v(e._s(t.props.message))])];\n })], 2)]), i(\"div\", { staticClass: \"dialog__actions\" }, [e._t(\"actions\", function() {\n return e._l(t.props.buttons, function(l, n) {\n return i(t.DialogButton, e._b({ key: n, on: { click: t.handleClose } }, \"DialogButton\", l, !1));\n });\n })], 2)])]) : e._e();\n}, Pe = [], Be = g(ze, Le, Pe, !1, null, \"d17575ed\", null, null);\nconst Ie = Be.exports, Ve = { name: \"MenuDownIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar De = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon menu-down-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M7,10L12,15L17,10H7Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Me = [], He = g(Ve, De, Me, !1, null, null, null, null);\nconst $e = He.exports, Re = { name: \"MenuUpIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Ae = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon menu-up-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M7,15L12,10L17,15H7Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Te = [], Ee = g(Re, Ae, Te, !1, null, null, null, null);\nconst Ue = Ee.exports, K = { \"file-picker__file-icon\": \"_file-picker__file-icon_1vgv4_5\" }, Ze = S({ __name: \"LoadingTableRow\", props: { showCheckbox: { type: Boolean } }, setup(e) {\n return { __sfc: !0, fileListIconStyles: K };\n} });\nvar Oe = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(\"tr\", { staticClass: \"file-picker__row loading-row\", attrs: { \"aria-hidden\": \"true\" } }, [e.showCheckbox ? i(\"td\", { staticClass: \"row-checkbox\" }, [i(\"span\")]) : e._e(), i(\"td\", { staticClass: \"row-name\" }, [i(\"div\", { staticClass: \"row-wrapper\" }, [i(\"span\", { class: t.fileListIconStyles[\"file-picker__file-icon\"] }), i(\"span\")])]), e._m(0), e._m(1)]);\n}, je = [function() {\n var e = this, i = e._self._c;\n return e._self._setupProxy, i(\"td\", { staticClass: \"row-size\" }, [i(\"span\")]);\n}, function() {\n var e = this, i = e._self._c;\n return e._self._setupProxy, i(\"td\", { staticClass: \"row-modified\" }, [i(\"span\")]);\n}], We = g(Ze, Oe, je, !1, null, \"6aded0d9\", null, null);\nconst Ge = We.exports;\nfunction Ke(e, i = {}) {\n var t;\n i = { size: 32, cropPreview: !1, mimeFallback: !0, ...i };\n try {\n const l = ((t = e.attributes) == null ? void 0 : t.previewUrl) || ge(\"/core/preview?fileId={fileid}\", { fileid: e.fileid });\n let n;\n try {\n n = new URL(l);\n } catch {\n n = new URL(l, window.location.origin);\n }\n return n.searchParams.set(\"x\", \"\".concat(i.size)), n.searchParams.set(\"y\", \"\".concat(i.size)), n.searchParams.set(\"mimeFallback\", \"\".concat(i.mimeFallback)), n.searchParams.set(\"a\", i.cropPreview === !0 ? \"0\" : \"1\"), n;\n } catch {\n return null;\n }\n}\nconst Xe = (e, i) => {\n const t = v(null);\n return q(() => {\n t.value = Ke(U(e), U(i || {}));\n }), { previewURL: t };\n}, qe = { name: \"FolderIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Je = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon folder-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"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\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Qe = [], Ye = g(qe, Je, Qe, !1, null, null, null, null);\nconst R = Ye.exports, et = S({ __name: \"FilePreview\", props: { node: null }, setup(e) {\n const i = e, t = v(K), { previewURL: l } = Xe(Z(i, \"node\")), n = m(() => i.node.type === x.File), s = v(!1);\n return O(l, () => {\n if (s.value = !1, l.value) {\n const c = document.createElement(\"img\");\n c.src = l.value.href, c.onerror = () => c.remove(), c.onload = () => {\n s.value = !0, c.remove();\n }, document.body.appendChild(c);\n }\n }, { immediate: !0 }), { __sfc: !0, fileListIconStyles: t, props: i, previewURL: l, isFile: n, canLoadPreview: s, t: _, IconFile: G, IconFolder: R };\n} });\nvar tt = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(\"div\", { class: t.fileListIconStyles[\"file-picker__file-icon\"], style: t.canLoadPreview ? { backgroundImage: \"url(\".concat(t.previewURL, \")\") } : void 0, attrs: { \"aria-label\": t.t(\"Mime type {mime}\", { mime: e.node.mime || t.t(\"unknown\") }) } }, [t.canLoadPreview ? e._e() : [t.isFile ? i(t.IconFile, { attrs: { size: 20 } }) : i(t.IconFolder, { attrs: { size: 20 } })]], 2);\n}, it = [], lt = g(et, tt, it, !1, null, null, null, null);\nconst nt = lt.exports, at = S({ __name: \"FileListRow\", props: { allowPickDirectory: { type: Boolean }, selected: { type: Boolean }, showCheckbox: { type: Boolean }, canPick: { type: Boolean }, node: null }, emits: [\"update:selected\", \"enter-directory\"], setup(e, { emit: i }) {\n const t = e, l = m(() => {\n var d;\n return ((d = t.node.attributes) == null ? void 0 : d.displayName) || t.node.basename.slice(0, t.node.extension ? -t.node.extension.length : void 0);\n }), n = m(() => t.node.extension), s = m(() => t.node.type === x.Folder), c = m(() => t.canPick && (t.allowPickDirectory || !s.value));\n function u() {\n i(\"update:selected\", !t.selected);\n }\n function a() {\n s.value ? i(\"enter-directory\", t.node) : u();\n }\n function r(d) {\n d.key === \"Enter\" && a();\n }\n return { __sfc: !0, props: t, emit: i, displayName: l, fileExtension: n, isDirectory: s, isPickable: c, toggleSelected: u, handleClick: a, handleKeyDown: r, formatFileSize: ue, NcCheckboxRadioSwitch: j, NcDateTime: te, t: _, FilePreview: nt };\n} });\nvar st = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(\"tr\", e._g({ class: [\"file-picker__row\", { \"file-picker__row--selected\": e.selected && !e.showCheckbox }], attrs: { tabindex: e.showCheckbox && !t.isDirectory ? void 0 : 0, \"aria-selected\": t.isPickable ? e.selected : void 0, \"data-filename\": e.node.basename, \"data-testid\": \"file-list-row\" }, on: { click: t.handleClick } }, !e.showCheckbox || t.isDirectory ? { keydown: t.handleKeyDown } : {}), [e.showCheckbox ? i(\"td\", { staticClass: \"row-checkbox\" }, [i(t.NcCheckboxRadioSwitch, { attrs: { disabled: !t.isPickable, checked: e.selected, \"aria-label\": t.t(\"Select the row for {nodename}\", { nodename: t.displayName }), \"data-testid\": \"row-checkbox\" }, on: { click: function(l) {\n l.stopPropagation();\n }, \"update:checked\": t.toggleSelected } })], 1) : e._e(), i(\"td\", { staticClass: \"row-name\" }, [i(\"div\", { staticClass: \"file-picker__name-container\", attrs: { \"data-testid\": \"row-name\" } }, [i(t.FilePreview, { attrs: { node: e.node } }), i(\"div\", { staticClass: \"file-picker__file-name\", attrs: { title: t.displayName }, domProps: { textContent: e._s(t.displayName) } }), i(\"div\", { staticClass: \"file-picker__file-extension\", domProps: { textContent: e._s(t.fileExtension) } })], 1)]), i(\"td\", { staticClass: \"row-size\" }, [e._v(\" \" + e._s(t.formatFileSize(e.node.size || 0)) + \" \")]), i(\"td\", { staticClass: \"row-modified\" }, [i(t.NcDateTime, { attrs: { timestamp: e.node.mtime, \"ignore-seconds\": !0 } })], 1)]);\n}, ot = [], rt = g(at, st, ot, !1, null, \"d337ebac\", null, null);\nconst ct = rt.exports, ut = S({ __name: \"FileList\", props: { multiselect: { type: Boolean }, allowPickDirectory: { type: Boolean }, loading: { type: Boolean }, files: null, selectedFiles: null, path: null }, emits: [\"update:path\", \"update:selectedFiles\"], setup(e, { emit: i }) {\n const t = e, l = v(\"ascending\"), n = v(void 0), s = v(void 0), c = { ascending: (o, p, w) => w(o, p), descending: (o, p, w) => w(p, o), none: (o, p, w) => 0 }, u = (o, p) => {\n var w, N;\n return (((w = o.attributes) == null ? void 0 : w.displayName) || o.basename).localeCompare(((N = p.attributes) == null ? void 0 : N.displayName) || p.basename, _e());\n }, a = (o, p) => (p.size || 0) - (o.size || 0), r = (o, p) => {\n var w, N;\n return (((w = o.mtime) == null ? void 0 : w.getTime()) || 0) - (((N = p.mtime) == null ? void 0 : N.getTime()) || 0);\n }, d = (o) => {\n const p = o.value;\n s.value = n.value = l.value = void 0, p === \"ascending\" ? o.value = \"descending\" : o.value = \"ascending\";\n }, C = () => d(l), f = () => d(n), k = () => d(s), b = m(() => [...t.files].sort((o, p) => (p.type === x.Folder ? 1 : 0) - (o.type === x.Folder ? 1 : 0) || c[l.value || \"none\"](o, p, u) || c[n.value || \"none\"](o, p, a) || c[s.value || \"none\"](o, p, r))), F = m(() => t.files.filter((o) => t.allowPickDirectory || o.type !== x.Folder)), z = m(() => !t.loading && t.selectedFiles.length > 0 && t.selectedFiles.length >= F.value.length);\n function L() {\n t.selectedFiles.length < F.value.length ? i(\"update:selectedFiles\", F.value) : i(\"update:selectedFiles\", []);\n }\n function B(o) {\n t.selectedFiles.includes(o) ? i(\"update:selectedFiles\", t.selectedFiles.filter((p) => p.path !== o.path)) : t.multiselect ? i(\"update:selectedFiles\", [...t.selectedFiles, o]) : i(\"update:selectedFiles\", [o]);\n }\n function I(o) {\n i(\"update:path\", W(t.path, o.basename));\n }\n const h = v(4), y = v();\n {\n const o = () => Q(() => {\n var p, w, N, A, T;\n const V = ((w = (p = y.value) == null ? void 0 : p.parentElement) == null ? void 0 : w.children) || [];\n let E = ((A = (N = y.value) == null ? void 0 : N.parentElement) == null ? void 0 : A.clientHeight) || 450;\n for (let P = 0; P < V.length; P++)\n (T = y.value) != null && T.isSameNode(V[P]) || (E -= V[P].clientHeight);\n h.value = Math.floor((E - 50) / 50);\n });\n H(() => {\n window.addEventListener(\"resize\", o), o();\n }), J(() => {\n window.removeEventListener(\"resize\", o);\n });\n }\n return { __sfc: !0, props: t, emit: i, sortByName: l, sortBySize: n, sortByModified: s, ordering: c, byName: u, bySize: a, byDate: r, toggleSorting: d, toggleSortByName: C, toggleSortBySize: f, toggleSortByModified: k, sortedFiles: b, selectableFiles: F, allSelected: z, onSelectAll: L, onNodeSelected: B, onChangeDirectory: I, skeletonNumber: h, fileContainer: y, NcButton: $, NcCheckboxRadioSwitch: j, t: _, IconSortAscending: $e, IconSortDescending: Ue, LoadingTableRow: Ge, FileListRow: ct };\n} });\nvar dt = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(\"div\", { ref: \"fileContainer\", staticClass: \"file-picker__files\" }, [i(\"table\", [i(\"thead\", [i(\"tr\", [e.multiselect ? i(\"th\", { staticClass: \"row-checkbox\" }, [i(\"span\", { staticClass: \"hidden-visually\" }, [e._v(\" \" + e._s(t.t(\"Select entry\")) + \" \")]), e.multiselect ? i(t.NcCheckboxRadioSwitch, { attrs: { \"aria-label\": t.t(\"Select all entries\"), checked: t.allSelected, \"data-testid\": \"select-all-checkbox\" }, on: { \"update:checked\": t.onSelectAll } }) : e._e()], 1) : e._e(), i(\"th\", { staticClass: \"row-name\", attrs: { \"aria-sort\": t.sortByName } }, [i(\"div\", { staticClass: \"header-wrapper\" }, [i(\"span\", { staticClass: \"file-picker__header-preview\" }), i(t.NcButton, { attrs: { wide: !0, type: \"tertiary\", \"data-test\": \"file-picker_sort-name\" }, on: { click: t.toggleSortByName }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [t.sortByName === \"ascending\" ? i(t.IconSortAscending, { attrs: { size: 20 } }) : t.sortByName === \"descending\" ? i(t.IconSortDescending, { attrs: { size: 20 } }) : i(\"span\", { staticStyle: { width: \"44px\" } })];\n }, proxy: !0 }]) }, [e._v(\" \" + e._s(t.t(\"Name\")) + \" \")])], 1)]), i(\"th\", { staticClass: \"row-size\", attrs: { \"aria-sort\": t.sortBySize } }, [i(t.NcButton, { attrs: { wide: !0, type: \"tertiary\" }, on: { click: t.toggleSortBySize }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [t.sortBySize === \"ascending\" ? i(t.IconSortAscending, { attrs: { size: 20 } }) : t.sortBySize === \"descending\" ? i(t.IconSortDescending, { attrs: { size: 20 } }) : i(\"span\", { staticStyle: { width: \"44px\" } })];\n }, proxy: !0 }]) }, [e._v(\" \" + e._s(t.t(\"Size\")) + \" \")])], 1), i(\"th\", { staticClass: \"row-modified\", attrs: { \"aria-sort\": t.sortByModified } }, [i(t.NcButton, { attrs: { wide: !0, type: \"tertiary\" }, on: { click: t.toggleSortByModified }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [t.sortByModified === \"ascending\" ? i(t.IconSortAscending, { attrs: { size: 20 } }) : t.sortByModified === \"descending\" ? i(t.IconSortDescending, { attrs: { size: 20 } }) : i(\"span\", { staticStyle: { width: \"44px\" } })];\n }, proxy: !0 }]) }, [e._v(\" \" + e._s(t.t(\"Modified\")) + \" \")])], 1)])]), i(\"tbody\", [e.loading ? e._l(t.skeletonNumber, function(l) {\n return i(t.LoadingTableRow, { key: l, attrs: { \"show-checkbox\": e.multiselect } });\n }) : e._l(t.sortedFiles, function(l) {\n return i(t.FileListRow, { key: l.fileid || l.path, attrs: { \"allow-pick-directory\": e.allowPickDirectory, \"show-checkbox\": e.multiselect, \"can-pick\": e.multiselect || e.selectedFiles.length === 0 || e.selectedFiles.includes(l), selected: e.selectedFiles.includes(l), node: l }, on: { \"update:selected\": function(n) {\n return t.onNodeSelected(l);\n }, \"enter-directory\": t.onChangeDirectory } });\n })], 2)])]);\n}, pt = [], ft = g(ut, dt, pt, !1, null, \"87fafd7e\", null, null);\nconst mt = ft.exports, _t = { name: \"HomeIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar vt = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon home-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, gt = [], ht = g(_t, vt, gt, !1, null, null, null, null);\nconst yt = ht.exports, wt = { name: \"PlusIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Ct = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon plus-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, kt = [], bt = g(wt, Ct, kt, !1, null, null, null, null);\nconst St = bt.exports, Ft = S({ __name: \"FilePickerBreadcrumbs\", props: { path: null, showMenu: { type: Boolean } }, emits: [\"update:path\", \"create-node\"], setup(e, { emit: i }) {\n const t = e, l = v(\"\"), n = v();\n function s() {\n var a, r, d, C;\n const f = l.value.trim(), k = (r = (a = n.value) == null ? void 0 : a.$el) == null ? void 0 : r.querySelector(\"input\");\n let b = \"\";\n return f.length === 0 ? b = _(\"File name cannot be empty.\") : f.includes(\"/\") ? b = _('\"/\" is not allowed inside a file name.') : [\"..\", \".\"].includes(f) ? b = _('\"{name}\" is an invalid file name.', { name: f }) : (d = window.OC.config) != null && d.blacklist_files_regex && f.match((C = window.OC.config) == null ? void 0 : C.blacklist_files_regex) && (b = _('\"{name}\" is not an allowed filetype', { name: f })), k && k.setCustomValidity(b), b === \"\";\n }\n const c = function() {\n const a = l.value.trim();\n s() && (i(\"create-node\", a), l.value = \"\");\n }, u = m(() => t.path.split(\"/\").filter((a) => a !== \"\").map((a, r, d) => ({ name: a, path: \"/\" + d.slice(0, r + 1).join(\"/\") })));\n return { __sfc: !0, props: t, emit: i, newNodeName: l, nameInput: n, validateInput: s, onSubmit: c, pathElements: u, IconFolder: R, IconHome: yt, IconPlus: St, NcActions: ie, NcActionInput: le, NcBreadcrumbs: ne, NcBreadcrumb: ae, t: _ };\n} });\nvar Nt = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(t.NcBreadcrumbs, { staticClass: \"file-picker__breadcrumbs\", scopedSlots: e._u([{ key: \"default\", fn: function() {\n return [i(t.NcBreadcrumb, { attrs: { name: t.t(\"Home\"), title: t.t(\"Home\") }, on: { click: function(l) {\n return t.emit(\"update:path\", \"/\");\n } }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(t.IconHome, { attrs: { size: 20 } })];\n }, proxy: !0 }]) }), e._l(t.pathElements, function(l) {\n return i(t.NcBreadcrumb, { key: l.path, attrs: { name: l.name, title: l.path }, on: { click: function(n) {\n return t.emit(\"update:path\", l.path);\n } } });\n })];\n }, proxy: !0 }, e.showMenu ? { key: \"actions\", fn: function() {\n return [i(t.NcActions, { attrs: { \"aria-label\": t.t(\"Create directory\"), \"force-menu\": !0, \"force-name\": !0, \"menu-name\": t.t(\"New\"), type: \"secondary\" }, on: { close: function(l) {\n t.newNodeName = \"\";\n } }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(t.IconPlus, { attrs: { size: 20 } })];\n }, proxy: !0 }], null, !1, 2971667417) }, [i(t.NcActionInput, { ref: \"nameInput\", attrs: { value: t.newNodeName, label: t.t(\"New folder\"), placeholder: t.t(\"New folder name\") }, on: { \"update:value\": function(l) {\n t.newNodeName = l;\n }, submit: t.onSubmit, input: t.validateInput }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(t.IconFolder, { attrs: { size: 20 } })];\n }, proxy: !0 }], null, !1, 1614167509) })], 1)];\n }, proxy: !0 } : null], null, !0) });\n}, xt = [], zt = g(Ft, Nt, xt, !1, null, \"d35aa423\", null, null);\nconst Lt = zt.exports, Pt = { name: \"ClockIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Bt = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon clock-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"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\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, It = [], Vt = g(Pt, Bt, It, !1, null, null, null, null);\nconst Dt = Vt.exports, Mt = { name: \"CloseIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Ht = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon close-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, $t = [], Rt = g(Mt, Ht, $t, !1, null, null, null, null);\nconst At = Rt.exports, Tt = { name: \"MagnifyIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Et = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon magnify-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Ut = [], Zt = g(Tt, Et, Ut, !1, null, null, null, null);\nconst Ot = Zt.exports, jt = { name: \"StarIcon\", emits: [\"click\"], props: { title: { type: String }, fillColor: { type: String, default: \"currentColor\" }, size: { type: Number, default: 24 } } };\nvar Wt = function() {\n var e = this, i = e._self._c;\n return i(\"span\", e._b({ staticClass: \"material-design-icon star-icon\", attrs: { \"aria-hidden\": !e.title, \"aria-label\": e.title, role: \"img\" }, on: { click: function(t) {\n return e.$emit(\"click\", t);\n } } }, \"span\", e.$attrs, !1), [i(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: \"0 0 24 24\" } }, [i(\"path\", { attrs: { d: \"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\" } }, [e.title ? i(\"title\", [e._v(e._s(e.title))]) : e._e()])])]);\n}, Gt = [], Kt = g(jt, Wt, Gt, !1, null, null, null, null);\nconst Xt = Kt.exports, qt = S({ __name: \"FilePickerNavigation\", props: { currentView: null, filterString: null, isCollapsed: { type: Boolean } }, emits: [\"update:currentView\", \"update:filterString\"], setup(e, { emit: i }) {\n const t = e, l = [{ id: \"files\", label: _(\"All files\"), icon: R }, { id: \"recent\", label: _(\"Recent\"), icon: Dt }, { id: \"favorites\", label: _(\"Favorites\"), icon: Xt }], n = m(() => l.filter((s) => s.id === t.currentView)[0]);\n return { __sfc: !0, allViews: l, props: t, emit: i, currentViewObject: n, updateFilterValue: (s) => i(\"update:filterString\", s), IconClose: At, IconMagnify: Ot, NcButton: $, NcSelect: se, NcTextField: oe, t: _, Fragment: he };\n} });\nvar Jt = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(t.Fragment, [i(t.NcTextField, { staticClass: \"file-picker__filter-input\", attrs: { value: e.filterString, label: t.t(\"Filter file list\"), \"show-trailing-button\": !!e.filterString }, on: { \"update:value\": t.updateFilterValue, \"trailing-button-click\": function(l) {\n return t.updateFilterValue(\"\");\n } }, scopedSlots: e._u([{ key: \"trailing-button-icon\", fn: function() {\n return [i(t.IconClose, { attrs: { size: 16 } })];\n }, proxy: !0 }]) }, [i(t.IconMagnify, { attrs: { size: 16 } })], 1), e.isCollapsed ? i(t.NcSelect, { attrs: { \"aria-label\": t.t(\"Current view selector\"), clearable: !1, searchable: !1, options: t.allViews, value: t.currentViewObject }, on: { input: (l) => t.emit(\"update:currentView\", l.id) } }) : i(\"ul\", { staticClass: \"file-picker__side\", attrs: { role: \"tablist\", \"aria-label\": t.t(\"Filepicker sections\") } }, e._l(t.allViews, function(l) {\n return i(\"li\", { key: l.id }, [i(t.NcButton, { attrs: { \"aria-selected\": e.currentView === l.id, type: e.currentView === l.id ? \"primary\" : \"tertiary\", wide: !0, role: \"tab\" }, on: { click: function(n) {\n return e.$emit(\"update:currentView\", l.id);\n } }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(l.icon, { tag: \"component\", attrs: { size: 20 } })];\n }, proxy: !0 }], null, !0) }, [e._v(\" \" + e._s(l.label) + \" \")])], 1);\n }), 0)], 1);\n}, Qt = [], Yt = g(qt, Jt, Qt, !1, null, \"fcfd0f23\", null, null);\nconst ei = Yt.exports, ti = function(e, i) {\n const t = de(), l = v([]), n = v(!0);\n async function s(u, a = M) {\n const r = await t.stat(\"\".concat(a).concat(u), { details: !0 });\n return D(r.data);\n }\n async function c() {\n if (n.value = !0, e.value === \"favorites\")\n l.value = await pe(t, i.value);\n else if (e.value === \"recent\") {\n const u = Math.round(Date.now() / 1e3) - 1209600, { data: a } = await t.search(\"/\", { details: !0, data: fe(u) });\n l.value = a.results.map((r) => D(r));\n } else {\n const u = await t.getDirectoryContents(\"\".concat(M).concat(i.value), { details: !0, data: me() });\n l.value = u.data.map((a) => D(a));\n }\n n.value = !1;\n }\n return O([e, i], () => c()), H(() => c()), { isLoading: n, files: l, loadFiles: () => c(), getFile: s, client: t };\n}, ii = function(e) {\n const i = m(() => e.value.map((t) => t.split(\"/\")));\n return { isSupportedMimeType: (t) => {\n const l = t.split(\"/\");\n return i.value.some(([n, s]) => (l[0] === n || n === \"*\") && (l[1] === s || s === \"*\"));\n } };\n}, li = { name: \"FilePicker\" }, ni = S({ ...li, props: { buttons: null, name: null, allowPickDirectory: { type: Boolean, default: !1 }, container: { default: \"body\" }, filterFn: { default: void 0 }, mimetypeFilter: { default: () => [] }, multiselect: { type: Boolean, default: !0 }, path: { default: \"/\" } }, emits: [\"close\"], setup(e, { emit: i }) {\n const t = e, l = m(() => ({ container: t.container, name: t.name, buttons: n.value, size: \"large\", contentClasses: [\"file-picker__content\"], dialogClasses: [\"file-picker\"], navigationClasses: [\"file-picker__navigation\"] })), n = m(() => (typeof t.buttons == \"function\" ? t.buttons(u.value, d.value, s.value) : t.buttons).map((h) => ({ ...h, callback: async () => {\n const y = u.value.length === 0 && t.allowPickDirectory ? [await z(d.value)] : u.value;\n h.callback(y), i(\"close\", u.value);\n } }))), s = v(\"files\"), c = m(() => s.value === \"favorites\" ? _(\"Favorites\") : s.value === \"recent\" ? _(\"Recent\") : \"\"), u = v([]), a = v((window == null ? void 0 : window.sessionStorage.getItem(\"NC.FilePicker.LastPath\")) || \"/\"), r = v(), d = m({ get: () => s.value === \"files\" ? r.value || t.path || a.value : \"/\", set: (h) => {\n t.path === void 0 && window.sessionStorage.setItem(\"NC.FilePicker.LastPath\", h), r.value = h, u.value = [];\n } }), C = v(\"\"), { isSupportedMimeType: f } = ii(Z(t, \"mimetypeFilter\")), { files: k, isLoading: b, loadFiles: F, getFile: z, client: L } = ti(s, d);\n H(() => F());\n const B = m(() => {\n let h = k.value;\n return t.mimetypeFilter.length > 0 && (h = h.filter((y) => y.type === \"folder\" || y.mime && f(y.mime))), C.value && (h = h.filter((y) => y.basename.toLowerCase().includes(C.value.toLowerCase()))), t.filterFn && (h = h.filter((y) => t.filterFn(y))), h;\n }), I = m(() => s.value === \"files\" ? _(\"Upload some content or sync with your devices!\") : s.value === \"recent\" ? _(\"Files and folders you recently modified will show up here.\") : _(\"Files and folders you mark as favorite will show up here.\"));\n return { __sfc: !0, props: t, emit: i, dialogProps: l, dialogButtons: n, currentView: s, viewHeadline: c, selectedFiles: u, savedPath: a, navigatedPath: r, currentPath: d, filterString: C, isSupportedMimeType: f, files: k, isLoading: b, loadFiles: F, getFile: z, client: L, filteredFiles: B, noFilesDescription: I, onCreateFolder: (h) => {\n L.createDirectory(W(M, d.value, h)).then(() => F()).catch((y) => ve(_(\"Could not create the new folder\")));\n }, IconFile: G, DialogBase: Ie, FileList: mt, FilePickerBreadcrumbs: Lt, FilePickerNavigation: ei, NcEmptyContent: re, t: _ };\n} });\nvar ai = function() {\n var e = this, i = e._self._c, t = e._self._setupProxy;\n return i(t.DialogBase, e._b({ on: { close: function(l) {\n return t.emit(\"close\");\n } }, scopedSlots: e._u([{ key: \"navigation\", fn: function({ isCollapsed: l }) {\n return [i(t.FilePickerNavigation, { attrs: { \"is-collapsed\": l, \"current-view\": t.currentView, \"filter-string\": t.filterString }, on: { \"update:currentView\": function(n) {\n t.currentView = n;\n }, \"update:current-view\": function(n) {\n t.currentView = n;\n }, \"update:filterString\": function(n) {\n t.filterString = n;\n }, \"update:filter-string\": function(n) {\n t.filterString = n;\n } } })];\n } }]) }, \"DialogBase\", t.dialogProps, !1), [i(\"div\", { staticClass: \"file-picker__main\" }, [t.currentView === \"files\" ? i(t.FilePickerBreadcrumbs, { attrs: { path: t.currentPath, \"show-menu\": e.allowPickDirectory }, on: { \"update:path\": function(l) {\n t.currentPath = l;\n }, \"create-node\": t.onCreateFolder } }) : i(\"div\", { staticClass: \"file-picker__view\" }, [i(\"h3\", [e._v(e._s(t.viewHeadline))])]), t.isLoading || t.filteredFiles.length > 0 ? i(t.FileList, { attrs: { \"allow-pick-directory\": e.allowPickDirectory, files: t.filteredFiles, multiselect: e.multiselect, loading: t.isLoading, path: t.currentPath, \"selected-files\": t.selectedFiles, name: t.viewHeadline }, on: { \"update:path\": [function(l) {\n t.currentPath = l;\n }, function(l) {\n t.currentView = \"files\";\n }], \"update:selectedFiles\": function(l) {\n t.selectedFiles = l;\n }, \"update:selected-files\": function(l) {\n t.selectedFiles = l;\n } } }) : t.filterString ? i(t.NcEmptyContent, { attrs: { name: t.t(\"No matching files\"), description: t.t(\"No files matching your filter were found.\") }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(t.IconFile)];\n }, proxy: !0 }]) }) : i(t.NcEmptyContent, { attrs: { name: t.t(\"No files in here\"), description: t.noFilesDescription }, scopedSlots: e._u([{ key: \"icon\", fn: function() {\n return [i(t.IconFile)];\n }, proxy: !0 }]) })], 1)]);\n}, si = [], oi = g(ni, ai, si, !1, null, \"3e8ab6c4\", null, null);\nconst gi = oi.exports;\nexport {\n gi as default\n};\n","import { getCurrentUser as T, getRequestToken as at } from \"@nextcloud/auth\";\nimport { getLoggerBuilder as M } from \"@nextcloud/logger\";\nimport { getCanonicalLocale as lt } from \"@nextcloud/l10n\";\nimport { join as dt, basename as ut, extname as ct, dirname as A } from \"path\";\nimport { encodePath as ht } from \"@nextcloud/paths\";\nimport { generateRemoteUrl as pt } from \"@nextcloud/router\";\nimport { createClient as ft, getPatcher as gt } from \"webdav\";\nimport { request as mt } from \"webdav/dist/node/request.js\";\nconst wt = (t) => t === null ? M().setApp(\"files\").build() : M().setApp(\"files\").setUid(t.uid).build(), m = wt(T());\nclass vt {\n _entries = [];\n registerEntry(e) {\n this.validateEntry(e), this._entries.push(e);\n }\n unregisterEntry(e) {\n const i = typeof e == \"string\" ? this.getEntryIndex(e) : this.getEntryIndex(e.id);\n if (i === -1) {\n m.warn(\"Entry not found, nothing removed\", { entry: e, entries: this.getEntries() });\n return;\n }\n this._entries.splice(i, 1);\n }\n getEntries(e) {\n return e ? this._entries.filter((i) => typeof i.if == \"function\" ? i.if(e) : !0) : this._entries;\n }\n getEntryIndex(e) {\n return this._entries.findIndex((i) => i.id === e);\n }\n validateEntry(e) {\n if (!e.id || !e.displayName || !(e.iconSvgInline || e.iconClass || e.handler))\n throw new Error(\"Invalid entry\");\n if (typeof e.id != \"string\" || typeof e.displayName != \"string\")\n throw new Error(\"Invalid id or displayName property\");\n if (e.iconClass && typeof e.iconClass != \"string\" || e.iconSvgInline && typeof e.iconSvgInline != \"string\")\n throw new Error(\"Invalid icon provided\");\n if (e.if !== void 0 && typeof e.if != \"function\")\n throw new Error(\"Invalid if property\");\n if (e.templateName && typeof e.templateName != \"string\")\n throw new Error(\"Invalid templateName property\");\n if (e.handler && typeof e.handler != \"function\")\n throw new Error(\"Invalid handler property\");\n if (!e.templateName && !e.handler)\n throw new Error(\"At least a templateName or a handler must be provided\");\n if (this.getEntryIndex(e.id) !== -1)\n throw new Error(\"Duplicate entry\");\n }\n}\nconst F = function() {\n return typeof window._nc_newfilemenu > \"u\" && (window._nc_newfilemenu = new vt(), m.debug(\"NewFileMenu initialized\")), window._nc_newfilemenu;\n}, P = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\"], O = [\"B\", \"KiB\", \"MiB\", \"GiB\", \"TiB\", \"PiB\"];\nfunction Ze(t, e = !1, i = !0) {\n typeof t == \"string\" && (t = Number(t));\n let r = t > 0 ? Math.floor(Math.log(t) / Math.log(i ? 1024 : 1e3)) : 0;\n r = Math.min((i ? O.length : P.length) - 1, r);\n const n = i ? O[r] : P[r];\n let s = (t / Math.pow(i ? 1024 : 1e3, r)).toFixed(1);\n return e === !0 && r === 0 ? (s !== \"0.0\" ? \"< 1 \" : \"0 \") + (i ? O[1] : P[1]) : (r < 2 ? s = parseFloat(s).toFixed(0) : s = parseFloat(s).toLocaleString(lt()), s + \" \" + n);\n}\nfunction Je(t, e = !1) {\n try {\n t = `${t}`.toLocaleLowerCase().replaceAll(/\\s+/g, \"\").replaceAll(\",\", \".\");\n } catch {\n return null;\n }\n const i = t.match(/^([0-9]*(\\.[0-9]*)?)([kmgtp]?)(i?)b?$/);\n if (i === null || i[1] === \".\" || i[1] === \"\")\n return null;\n const r = { \"\": 0, k: 1, m: 2, g: 3, t: 4, p: 5, e: 6 }, n = `${i[1]}`, s = i[4] === \"i\" || e ? 1024 : 1e3;\n return Math.round(Number.parseFloat(n) * s ** r[i[3]]);\n}\nvar K = ((t) => (t.DEFAULT = \"default\", t.HIDDEN = \"hidden\", t))(K || {});\nclass Qe {\n _action;\n constructor(e) {\n this.validateAction(e), this._action = e;\n }\n get id() {\n return this._action.id;\n }\n get displayName() {\n return this._action.displayName;\n }\n get title() {\n return this._action.title;\n }\n get iconSvgInline() {\n return this._action.iconSvgInline;\n }\n get enabled() {\n return this._action.enabled;\n }\n get exec() {\n return this._action.exec;\n }\n get execBatch() {\n return this._action.execBatch;\n }\n get order() {\n return this._action.order;\n }\n get default() {\n return this._action.default;\n }\n get inline() {\n return this._action.inline;\n }\n get renderInline() {\n return this._action.renderInline;\n }\n validateAction(e) {\n if (!e.id || typeof e.id != \"string\")\n throw new Error(\"Invalid id\");\n if (!e.displayName || typeof e.displayName != \"function\")\n throw new Error(\"Invalid displayName function\");\n if (\"title\" in e && typeof e.title != \"function\")\n throw new Error(\"Invalid title function\");\n if (!e.iconSvgInline || typeof e.iconSvgInline != \"function\")\n throw new Error(\"Invalid iconSvgInline function\");\n if (!e.exec || typeof e.exec != \"function\")\n throw new Error(\"Invalid exec function\");\n if (\"enabled\" in e && typeof e.enabled != \"function\")\n throw new Error(\"Invalid enabled function\");\n if (\"execBatch\" in e && typeof e.execBatch != \"function\")\n throw new Error(\"Invalid execBatch function\");\n if (\"order\" in e && typeof e.order != \"number\")\n throw new Error(\"Invalid order\");\n if (e.default && !Object.values(K).includes(e.default))\n throw new Error(\"Invalid default\");\n if (\"inline\" in e && typeof e.inline != \"function\")\n throw new Error(\"Invalid inline function\");\n if (\"renderInline\" in e && typeof e.renderInline != \"function\")\n throw new Error(\"Invalid renderInline function\");\n }\n}\nconst ti = function(t) {\n if (typeof window._nc_fileactions > \"u\" && (window._nc_fileactions = [], m.debug(\"FileActions initialized\")), window._nc_fileactions.find((e) => e.id === t.id)) {\n m.error(`FileAction ${t.id} already registered`, { action: t });\n return;\n }\n window._nc_fileactions.push(t);\n}, ei = function() {\n return typeof window._nc_fileactions > \"u\" && (window._nc_fileactions = [], m.debug(\"FileActions initialized\")), window._nc_fileactions;\n};\nclass ii {\n _header;\n constructor(e) {\n this.validateHeader(e), this._header = e;\n }\n get id() {\n return this._header.id;\n }\n get order() {\n return this._header.order;\n }\n get enabled() {\n return this._header.enabled;\n }\n get render() {\n return this._header.render;\n }\n get updated() {\n return this._header.updated;\n }\n validateHeader(e) {\n if (!e.id || !e.render || !e.updated)\n throw new Error(\"Invalid header: id, render and updated are required\");\n if (typeof e.id != \"string\")\n throw new Error(\"Invalid id property\");\n if (e.enabled !== void 0 && typeof e.enabled != \"function\")\n throw new Error(\"Invalid enabled property\");\n if (e.render && typeof e.render != \"function\")\n throw new Error(\"Invalid render property\");\n if (e.updated && typeof e.updated != \"function\")\n throw new Error(\"Invalid updated property\");\n }\n}\nconst ni = function(t) {\n if (typeof window._nc_filelistheader > \"u\" && (window._nc_filelistheader = [], m.debug(\"FileListHeaders initialized\")), window._nc_filelistheader.find((e) => e.id === t.id)) {\n m.error(`Header ${t.id} already registered`, { header: t });\n return;\n }\n window._nc_filelistheader.push(t);\n}, ri = function() {\n return typeof window._nc_filelistheader > \"u\" && (window._nc_filelistheader = [], m.debug(\"FileListHeaders initialized\")), window._nc_filelistheader;\n};\nvar v = ((t) => (t[t.NONE = 0] = \"NONE\", t[t.CREATE = 4] = \"CREATE\", t[t.READ = 1] = \"READ\", t[t.UPDATE = 2] = \"UPDATE\", t[t.DELETE = 8] = \"DELETE\", t[t.SHARE = 16] = \"SHARE\", t[t.ALL = 31] = \"ALL\", t))(v || {});\nconst W = [\"d:getcontentlength\", \"d:getcontenttype\", \"d:getetag\", \"d:getlastmodified\", \"d:quota-available-bytes\", \"d:resourcetype\", \"nc:has-preview\", \"nc:is-encrypted\", \"nc:mount-type\", \"nc:share-attributes\", \"oc:comments-unread\", \"oc:favorite\", \"oc:fileid\", \"oc:owner-display-name\", \"oc:owner-id\", \"oc:permissions\", \"oc:share-types\", \"oc:size\", \"ocs:share-permissions\"], Y = { d: \"DAV:\", nc: \"http://nextcloud.org/ns\", oc: \"http://owncloud.org/ns\", ocs: \"http://open-collaboration-services.org/ns\" }, si = function(t, e = { nc: \"http://nextcloud.org/ns\" }) {\n typeof window._nc_dav_properties > \"u\" && (window._nc_dav_properties = [...W], window._nc_dav_namespaces = { ...Y });\n const i = { ...window._nc_dav_namespaces, ...e };\n if (window._nc_dav_properties.find((n) => n === t))\n return m.error(`${t} already registered`, { prop: t }), !1;\n if (t.startsWith(\"<\") || t.split(\":\").length !== 2)\n return m.error(`${t} is not valid. See example: 'oc:fileid'`, { prop: t }), !1;\n const r = t.split(\":\")[0];\n return i[r] ? (window._nc_dav_properties.push(t), window._nc_dav_namespaces = i, !0) : (m.error(`${t} namespace unknown`, { prop: t, namespaces: i }), !1);\n}, $ = function() {\n return typeof window._nc_dav_properties > \"u\" && (window._nc_dav_properties = [...W]), window._nc_dav_properties.map((t) => `<${t} />`).join(\" \");\n}, V = function() {\n return typeof window._nc_dav_namespaces > \"u\" && (window._nc_dav_namespaces = { ...Y }), Object.keys(window._nc_dav_namespaces).map((t) => `xmlns:${t}=\"${window._nc_dav_namespaces?.[t]}\"`).join(\" \");\n}, oi = function() {\n return `\n\t\t\n\t\t\t\n\t\t\t\t${$()}\n\t\t\t\n\t\t`;\n}, yt = function() {\n return `\n\t\t\n\t\t\t\n\t\t\t\t${$()}\n\t\t\t\n\t\t\t\n\t\t\t\t1\n\t\t\t\n\t\t`;\n}, ai = function(t) {\n return `\n\n\t\n\t\t\n\t\t\t\n\t\t\t\t${$()}\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t/files/${T()?.uid}/\n\t\t\t\tinfinity\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\thttpd/unix-directory\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t0\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t${t}\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t100\n\t\t\t0\n\t\t\n\t\n`;\n}, xt = function(t = \"\") {\n let e = v.NONE;\n return t && ((t.includes(\"C\") || t.includes(\"K\")) && (e |= v.CREATE), t.includes(\"G\") && (e |= v.READ), (t.includes(\"W\") || t.includes(\"N\") || t.includes(\"V\")) && (e |= v.UPDATE), t.includes(\"D\") && (e |= v.DELETE), t.includes(\"R\") && (e |= v.SHARE)), e;\n};\nvar k = ((t) => (t.Folder = \"folder\", t.File = \"file\", t))(k || {});\nconst Z = function(t, e) {\n return t.match(e) !== null;\n}, B = (t, e) => {\n if (t.id && typeof t.id != \"number\")\n throw new Error(\"Invalid id type of value\");\n if (!t.source)\n throw new Error(\"Missing mandatory source\");\n try {\n new URL(t.source);\n } catch {\n throw new Error(\"Invalid source format, source must be a valid URL\");\n }\n if (!t.source.startsWith(\"http\"))\n throw new Error(\"Invalid source format, only http(s) is supported\");\n if (t.mtime && !(t.mtime instanceof Date))\n throw new Error(\"Invalid mtime type\");\n if (t.crtime && !(t.crtime instanceof Date))\n throw new Error(\"Invalid crtime type\");\n if (!t.mime || typeof t.mime != \"string\" || !t.mime.match(/^[-\\w.]+\\/[-+\\w.]+$/gi))\n throw new Error(\"Missing or invalid mandatory mime\");\n if (\"size\" in t && typeof t.size != \"number\" && t.size !== void 0)\n throw new Error(\"Invalid size type\");\n if (\"permissions\" in t && t.permissions !== void 0 && !(typeof t.permissions == \"number\" && t.permissions >= v.NONE && t.permissions <= v.ALL))\n throw new Error(\"Invalid permissions\");\n if (t.owner && t.owner !== null && typeof t.owner != \"string\")\n throw new Error(\"Invalid owner type\");\n if (t.attributes && typeof t.attributes != \"object\")\n throw new Error(\"Invalid attributes type\");\n if (t.root && typeof t.root != \"string\")\n throw new Error(\"Invalid root type\");\n if (t.root && !t.root.startsWith(\"/\"))\n throw new Error(\"Root must start with a leading slash\");\n if (t.root && !t.source.includes(t.root))\n throw new Error(\"Root must be part of the source\");\n if (t.root && Z(t.source, e)) {\n const i = t.source.match(e)[0];\n if (!t.source.includes(dt(i, t.root)))\n throw new Error(\"The root must be relative to the service. e.g /files/emma\");\n }\n if (t.status && !Object.values(J).includes(t.status))\n throw new Error(\"Status must be a valid NodeStatus\");\n};\nvar J = ((t) => (t.NEW = \"new\", t.FAILED = \"failed\", t.LOADING = \"loading\", t.LOCKED = \"locked\", t))(J || {});\nclass Q {\n _data;\n _attributes;\n _knownDavService = /(remote|public)\\.php\\/(web)?dav/i;\n constructor(e, i) {\n B(e, i || this._knownDavService), this._data = e;\n const r = { set: (n, s, a) => (this.updateMtime(), Reflect.set(n, s, a)), deleteProperty: (n, s) => (this.updateMtime(), Reflect.deleteProperty(n, s)) };\n this._attributes = new Proxy(e.attributes || {}, r), delete this._data.attributes, i && (this._knownDavService = i);\n }\n get source() {\n return this._data.source.replace(/\\/$/i, \"\");\n }\n get encodedSource() {\n const { origin: e } = new URL(this.source);\n return e + ht(this.source.slice(e.length));\n }\n get basename() {\n return ut(this.source);\n }\n get extension() {\n return ct(this.source);\n }\n get dirname() {\n if (this.root) {\n const i = this.source.indexOf(this.root);\n return A(this.source.slice(i + this.root.length) || \"/\");\n }\n const e = new URL(this.source);\n return A(e.pathname);\n }\n get mime() {\n return this._data.mime;\n }\n get mtime() {\n return this._data.mtime;\n }\n get crtime() {\n return this._data.crtime;\n }\n get size() {\n return this._data.size;\n }\n get attributes() {\n return this._attributes;\n }\n get permissions() {\n return this.owner === null && !this.isDavRessource ? v.READ : this._data.permissions !== void 0 ? this._data.permissions : v.NONE;\n }\n get owner() {\n return this.isDavRessource ? this._data.owner : null;\n }\n get isDavRessource() {\n return Z(this.source, this._knownDavService);\n }\n get root() {\n return this._data.root ? this._data.root.replace(/^(.+)\\/$/, \"$1\") : this.isDavRessource && A(this.source).split(this._knownDavService).pop() || null;\n }\n get path() {\n if (this.root) {\n const e = this.source.indexOf(this.root);\n return this.source.slice(e + this.root.length) || \"/\";\n }\n return (this.dirname + \"/\" + this.basename).replace(/\\/\\//g, \"/\");\n }\n get fileid() {\n return this._data?.id || this.attributes?.fileid;\n }\n get status() {\n return this._data?.status;\n }\n set status(e) {\n this._data.status = e;\n }\n move(e) {\n B({ ...this._data, source: e }, this._knownDavService), this._data.source = e, this.updateMtime();\n }\n rename(e) {\n if (e.includes(\"/\"))\n throw new Error(\"Invalid basename\");\n this.move(A(this.source) + \"/\" + e);\n }\n updateMtime() {\n this._data.mtime && (this._data.mtime = /* @__PURE__ */ new Date());\n }\n}\nclass bt extends Q {\n get type() {\n return k.File;\n }\n}\nclass Et extends Q {\n constructor(e) {\n super({ ...e, mime: \"httpd/unix-directory\" });\n }\n get type() {\n return k.Folder;\n }\n get extension() {\n return null;\n }\n get mime() {\n return \"httpd/unix-directory\";\n }\n}\nconst tt = `/files/${T()?.uid}`, et = pt(\"dav\"), li = function(t = et) {\n const e = ft(t, { headers: { requesttoken: at() || \"\" } });\n return gt().patch(\"request\", (i) => (i.headers?.method && (i.method = i.headers.method, delete i.headers.method), mt(i))), e;\n}, di = async (t, e = \"/\", i = tt) => (await t.getDirectoryContents(`${i}${e}`, { details: !0, data: yt(), headers: { method: \"REPORT\" }, includeSelf: !0 })).data.filter((r) => r.filename !== e).map((r) => Nt(r, i)), Nt = function(t, e = tt, i = et) {\n const r = t.props, n = xt(r?.permissions), s = T()?.uid, a = { id: r?.fileid || 0, source: `${i}${t.filename}`, mtime: new Date(Date.parse(t.lastmod)), mime: t.mime, size: r?.size || Number.parseInt(r.getcontentlength || \"0\"), permissions: n, owner: s, root: e, attributes: { ...t, ...r, hasPreview: r?.[\"has-preview\"] } };\n return delete a.attributes?.props, t.type === \"file\" ? new bt(a) : new Et(a);\n};\nclass _t {\n _views = [];\n _currentView = null;\n register(e) {\n if (this._views.find((i) => i.id === e.id))\n throw new Error(`View id ${e.id} is already registered`);\n this._views.push(e);\n }\n remove(e) {\n const i = this._views.findIndex((r) => r.id === e);\n i !== -1 && this._views.splice(i, 1);\n }\n get views() {\n return this._views;\n }\n setActive(e) {\n this._currentView = e;\n }\n get active() {\n return this._currentView;\n }\n}\nconst ui = function() {\n return typeof window._nc_navigation > \"u\" && (window._nc_navigation = new _t(), m.debug(\"Navigation service initialized\")), window._nc_navigation;\n};\nclass At {\n _column;\n constructor(e) {\n Tt(e), this._column = e;\n }\n get id() {\n return this._column.id;\n }\n get title() {\n return this._column.title;\n }\n get render() {\n return this._column.render;\n }\n get sort() {\n return this._column.sort;\n }\n get summary() {\n return this._column.summary;\n }\n}\nconst Tt = function(t) {\n if (!t.id || typeof t.id != \"string\")\n throw new Error(\"A column id is required\");\n if (!t.title || typeof t.title != \"string\")\n throw new Error(\"A column title is required\");\n if (!t.render || typeof t.render != \"function\")\n throw new Error(\"A render function is required\");\n if (t.sort && typeof t.sort != \"function\")\n throw new Error(\"Column sortFunction must be a function\");\n if (t.summary && typeof t.summary != \"function\")\n throw new Error(\"Column summary must be a function\");\n return !0;\n};\nvar L = {}, I = {};\n(function(t) {\n 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 + \"\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\", r = \"[\" + e + \"][\" + i + \"]*\", n = new RegExp(\"^\" + r + \"$\"), s = function(o, l) {\n const d = [];\n let u = l.exec(o);\n for (; u; ) {\n const c = [];\n c.startIndex = l.lastIndex - u[0].length;\n const p = u.length;\n for (let h = 0; h < p; h++)\n c.push(u[h]);\n d.push(c), u = l.exec(o);\n }\n return d;\n }, a = function(o) {\n const l = n.exec(o);\n return !(l === null || typeof l > \"u\");\n };\n t.isExist = function(o) {\n return typeof o < \"u\";\n }, t.isEmptyObject = function(o) {\n return Object.keys(o).length === 0;\n }, t.merge = function(o, l, d) {\n if (l) {\n const u = Object.keys(l), c = u.length;\n for (let p = 0; p < c; p++)\n d === \"strict\" ? o[u[p]] = [l[u[p]]] : o[u[p]] = l[u[p]];\n }\n }, t.getValue = function(o) {\n return t.isExist(o) ? o : \"\";\n }, t.isName = a, t.getAllMatches = s, t.nameRegexp = r;\n})(I);\nconst R = I, It = { allowBooleanAttributes: !1, unpairedTags: [] };\nL.validate = function(t, e) {\n e = Object.assign({}, It, e);\n const i = [];\n let r = !1, n = !1;\n t[0] === \"\\uFEFF\" && (t = t.substr(1));\n for (let s = 0; s < t.length; s++)\n if (t[s] === \"<\" && t[s + 1] === \"?\") {\n if (s += 2, s = U(t, s), s.err)\n return s;\n } else if (t[s] === \"<\") {\n let a = s;\n if (s++, t[s] === \"!\") {\n s = z(t, s);\n continue;\n } else {\n let o = !1;\n t[s] === \"/\" && (o = !0, s++);\n let l = \"\";\n for (; s < t.length && t[s] !== \">\" && t[s] !== \" \" && t[s] !== \"\t\" && t[s] !== `\n` && t[s] !== \"\\r\"; s++)\n l += t[s];\n if (l = l.trim(), l[l.length - 1] === \"/\" && (l = l.substring(0, l.length - 1), s--), !Vt(l)) {\n let c;\n return l.trim().length === 0 ? c = \"Invalid space after '<'.\" : c = \"Tag '\" + l + \"' is an invalid name.\", f(\"InvalidTag\", c, g(t, s));\n }\n const d = Ct(t, s);\n if (d === !1)\n return f(\"InvalidAttr\", \"Attributes for '\" + l + \"' have open quote.\", g(t, s));\n let u = d.value;\n if (s = d.index, u[u.length - 1] === \"/\") {\n const c = s - u.length;\n u = u.substring(0, u.length - 1);\n const p = G(u, e);\n if (p === !0)\n r = !0;\n else\n return f(p.err.code, p.err.msg, g(t, c + p.err.line));\n } else if (o)\n if (d.tagClosed) {\n if (u.trim().length > 0)\n return f(\"InvalidTag\", \"Closing tag '\" + l + \"' can't have attributes or invalid starting.\", g(t, a));\n {\n const c = i.pop();\n if (l !== c.tagName) {\n let p = g(t, c.tagStartPos);\n return f(\"InvalidTag\", \"Expected closing tag '\" + c.tagName + \"' (opened in line \" + p.line + \", col \" + p.col + \") instead of closing tag '\" + l + \"'.\", g(t, a));\n }\n i.length == 0 && (n = !0);\n }\n } else\n return f(\"InvalidTag\", \"Closing tag '\" + l + \"' doesn't have proper closing.\", g(t, s));\n else {\n const c = G(u, e);\n if (c !== !0)\n return f(c.err.code, c.err.msg, g(t, s - u.length + c.err.line));\n if (n === !0)\n return f(\"InvalidXml\", \"Multiple possible root nodes found.\", g(t, s));\n e.unpairedTags.indexOf(l) !== -1 || i.push({ tagName: l, tagStartPos: a }), r = !0;\n }\n for (s++; s < t.length; s++)\n if (t[s] === \"<\")\n if (t[s + 1] === \"!\") {\n s++, s = z(t, s);\n continue;\n } else if (t[s + 1] === \"?\") {\n if (s = U(t, ++s), s.err)\n return s;\n } else\n break;\n else if (t[s] === \"&\") {\n const c = Ft(t, s);\n if (c == -1)\n return f(\"InvalidChar\", \"char '&' is not expected.\", g(t, s));\n s = c;\n } else if (n === !0 && !q(t[s]))\n return f(\"InvalidXml\", \"Extra text at the end\", g(t, s));\n t[s] === \"<\" && s--;\n }\n } else {\n if (q(t[s]))\n continue;\n return f(\"InvalidChar\", \"char '\" + t[s] + \"' is not expected.\", g(t, s));\n }\n if (r) {\n if (i.length == 1)\n return f(\"InvalidTag\", \"Unclosed tag '\" + i[0].tagName + \"'.\", g(t, i[0].tagStartPos));\n if (i.length > 0)\n return f(\"InvalidXml\", \"Invalid '\" + JSON.stringify(i.map((s) => s.tagName), null, 4).replace(/\\r?\\n/g, \"\") + \"' found.\", { line: 1, col: 1 });\n } else\n return f(\"InvalidXml\", \"Start tag expected.\", 1);\n return !0;\n};\nfunction q(t) {\n return t === \" \" || t === \"\t\" || t === `\n` || t === \"\\r\";\n}\nfunction U(t, e) {\n const i = e;\n for (; e < t.length; e++)\n if (t[e] == \"?\" || t[e] == \" \") {\n const r = t.substr(i, e - i);\n if (e > 5 && r === \"xml\")\n return f(\"InvalidXml\", \"XML declaration allowed only at the start of the document.\", g(t, e));\n if (t[e] == \"?\" && t[e + 1] == \">\") {\n e++;\n break;\n } else\n continue;\n }\n return e;\n}\nfunction z(t, e) {\n if (t.length > e + 5 && t[e + 1] === \"-\" && t[e + 2] === \"-\") {\n for (e += 3; e < t.length; e++)\n if (t[e] === \"-\" && t[e + 1] === \"-\" && t[e + 2] === \">\") {\n e += 2;\n break;\n }\n } else if (t.length > e + 8 && t[e + 1] === \"D\" && t[e + 2] === \"O\" && t[e + 3] === \"C\" && t[e + 4] === \"T\" && t[e + 5] === \"Y\" && t[e + 6] === \"P\" && t[e + 7] === \"E\") {\n let i = 1;\n for (e += 8; e < t.length; e++)\n if (t[e] === \"<\")\n i++;\n else if (t[e] === \">\" && (i--, i === 0))\n break;\n } else if (t.length > e + 9 && t[e + 1] === \"[\" && t[e + 2] === \"C\" && t[e + 3] === \"D\" && t[e + 4] === \"A\" && t[e + 5] === \"T\" && t[e + 6] === \"A\" && t[e + 7] === \"[\") {\n for (e += 8; e < t.length; e++)\n if (t[e] === \"]\" && t[e + 1] === \"]\" && t[e + 2] === \">\") {\n e += 2;\n break;\n }\n }\n return e;\n}\nconst Pt = '\"', Ot = \"'\";\nfunction Ct(t, e) {\n let i = \"\", r = \"\", n = !1;\n for (; e < t.length; e++) {\n if (t[e] === Pt || t[e] === Ot)\n r === \"\" ? r = t[e] : r !== t[e] || (r = \"\");\n else if (t[e] === \">\" && r === \"\") {\n n = !0;\n break;\n }\n i += t[e];\n }\n return r !== \"\" ? !1 : { value: i, index: e, tagClosed: n };\n}\nconst Dt = new RegExp(`(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*(['\"])(([\\\\s\\\\S])*?)\\\\5)?`, \"g\");\nfunction G(t, e) {\n const i = R.getAllMatches(t, Dt), r = {};\n for (let n = 0; n < i.length; n++) {\n if (i[n][1].length === 0)\n return f(\"InvalidAttr\", \"Attribute '\" + i[n][2] + \"' has no space in starting.\", E(i[n]));\n if (i[n][3] !== void 0 && i[n][4] === void 0)\n return f(\"InvalidAttr\", \"Attribute '\" + i[n][2] + \"' is without value.\", E(i[n]));\n if (i[n][3] === void 0 && !e.allowBooleanAttributes)\n return f(\"InvalidAttr\", \"boolean attribute '\" + i[n][2] + \"' is not allowed.\", E(i[n]));\n const s = i[n][2];\n if (!$t(s))\n return f(\"InvalidAttr\", \"Attribute '\" + s + \"' is an invalid name.\", E(i[n]));\n if (!r.hasOwnProperty(s))\n r[s] = 1;\n else\n return f(\"InvalidAttr\", \"Attribute '\" + s + \"' is repeated.\", E(i[n]));\n }\n return !0;\n}\nfunction St(t, e) {\n let i = /\\d/;\n for (t[e] === \"x\" && (e++, i = /[\\da-fA-F]/); e < t.length; e++) {\n if (t[e] === \";\")\n return e;\n if (!t[e].match(i))\n break;\n }\n return -1;\n}\nfunction Ft(t, e) {\n if (e++, t[e] === \";\")\n return -1;\n if (t[e] === \"#\")\n return e++, St(t, e);\n let i = 0;\n for (; e < t.length; e++, i++)\n if (!(t[e].match(/\\w/) && i < 20)) {\n if (t[e] === \";\")\n break;\n return -1;\n }\n return e;\n}\nfunction f(t, e, i) {\n return { err: { code: t, msg: e, line: i.line || i, col: i.col } };\n}\nfunction $t(t) {\n return R.isName(t);\n}\nfunction Vt(t) {\n return R.isName(t);\n}\nfunction g(t, e) {\n const i = t.substring(0, e).split(/\\r?\\n/);\n return { line: i.length, col: i[i.length - 1].length + 1 };\n}\nfunction E(t) {\n return t.startIndex + t[1].length;\n}\nvar C = {};\nconst it = { 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) {\n return e;\n}, attributeValueProcessor: function(t, e) {\n return e;\n}, 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) {\n return t;\n} }, kt = function(t) {\n return Object.assign({}, it, t);\n};\nC.buildOptions = kt, C.defaultOptions = it;\nclass Lt {\n constructor(e) {\n this.tagname = e, this.child = [], this[\":@\"] = {};\n }\n add(e, i) {\n e === \"__proto__\" && (e = \"#__proto__\"), this.child.push({ [e]: i });\n }\n addChild(e) {\n e.tagname === \"__proto__\" && (e.tagname = \"#__proto__\"), e[\":@\"] && Object.keys(e[\":@\"]).length > 0 ? this.child.push({ [e.tagname]: e.child, \":@\": e[\":@\"] }) : this.child.push({ [e.tagname]: e.child });\n }\n}\nvar Rt = Lt;\nconst jt = I;\nfunction Mt(t, e) {\n const i = {};\n if (t[e + 3] === \"O\" && t[e + 4] === \"C\" && t[e + 5] === \"T\" && t[e + 6] === \"Y\" && t[e + 7] === \"P\" && t[e + 8] === \"E\") {\n e = e + 9;\n let r = 1, n = !1, s = !1, a = \"\";\n for (; e < t.length; e++)\n if (t[e] === \"<\" && !s) {\n if (n && Ut(t, e))\n e += 7, [entityName, val, e] = Bt(t, e + 1), val.indexOf(\"&\") === -1 && (i[Ht(entityName)] = { regx: RegExp(`&${entityName};`, \"g\"), val });\n else if (n && zt(t, e))\n e += 8;\n else if (n && Gt(t, e))\n e += 8;\n else if (n && Xt(t, e))\n e += 9;\n else if (qt)\n s = !0;\n else\n throw new Error(\"Invalid DOCTYPE\");\n r++, a = \"\";\n } else if (t[e] === \">\") {\n if (s ? t[e - 1] === \"-\" && t[e - 2] === \"-\" && (s = !1, r--) : r--, r === 0)\n break;\n } else\n t[e] === \"[\" ? n = !0 : a += t[e];\n if (r !== 0)\n throw new Error(\"Unclosed DOCTYPE\");\n } else\n throw new Error(\"Invalid Tag instead of DOCTYPE\");\n return { entities: i, i: e };\n}\nfunction Bt(t, e) {\n let i = \"\";\n for (; e < t.length && t[e] !== \"'\" && t[e] !== '\"'; e++)\n i += t[e];\n if (i = i.trim(), i.indexOf(\" \") !== -1)\n throw new Error(\"External entites are not supported\");\n const r = t[e++];\n let n = \"\";\n for (; e < t.length && t[e] !== r; e++)\n n += t[e];\n return [i, n, e];\n}\nfunction qt(t, e) {\n return t[e + 1] === \"!\" && t[e + 2] === \"-\" && t[e + 3] === \"-\";\n}\nfunction Ut(t, e) {\n return t[e + 1] === \"!\" && t[e + 2] === \"E\" && t[e + 3] === \"N\" && t[e + 4] === \"T\" && t[e + 5] === \"I\" && t[e + 6] === \"T\" && t[e + 7] === \"Y\";\n}\nfunction zt(t, e) {\n return t[e + 1] === \"!\" && t[e + 2] === \"E\" && t[e + 3] === \"L\" && t[e + 4] === \"E\" && t[e + 5] === \"M\" && t[e + 6] === \"E\" && t[e + 7] === \"N\" && t[e + 8] === \"T\";\n}\nfunction Gt(t, e) {\n return t[e + 1] === \"!\" && t[e + 2] === \"A\" && t[e + 3] === \"T\" && t[e + 4] === \"T\" && t[e + 5] === \"L\" && t[e + 6] === \"I\" && t[e + 7] === \"S\" && t[e + 8] === \"T\";\n}\nfunction Xt(t, e) {\n return t[e + 1] === \"!\" && t[e + 2] === \"N\" && t[e + 3] === \"O\" && t[e + 4] === \"T\" && t[e + 5] === \"A\" && t[e + 6] === \"T\" && t[e + 7] === \"I\" && t[e + 8] === \"O\" && t[e + 9] === \"N\";\n}\nfunction Ht(t) {\n if (jt.isName(t))\n return t;\n throw new Error(`Invalid entity name ${t}`);\n}\nvar Kt = Mt;\nconst Wt = /^[-+]?0x[a-fA-F0-9]+$/, Yt = /^([\\-\\+])?(0*)(\\.[0-9]+([eE]\\-?[0-9]+)?|[0-9]+(\\.[0-9]+([eE]\\-?[0-9]+)?)?)$/;\n!Number.parseInt && window.parseInt && (Number.parseInt = window.parseInt), !Number.parseFloat && window.parseFloat && (Number.parseFloat = window.parseFloat);\nconst Zt = { hex: !0, leadingZeros: !0, decimalPoint: \".\", eNotation: !0 };\nfunction Jt(t, e = {}) {\n if (e = Object.assign({}, Zt, e), !t || typeof t != \"string\")\n return t;\n let i = t.trim();\n if (e.skipLike !== void 0 && e.skipLike.test(i))\n return t;\n if (e.hex && Wt.test(i))\n return Number.parseInt(i, 16);\n {\n const r = Yt.exec(i);\n if (r) {\n const n = r[1], s = r[2];\n let a = Qt(r[3]);\n const o = r[4] || r[6];\n if (!e.leadingZeros && s.length > 0 && n && i[2] !== \".\" || !e.leadingZeros && s.length > 0 && !n && i[1] !== \".\")\n return t;\n {\n const l = Number(i), d = \"\" + l;\n return d.search(/[eE]/) !== -1 || o ? e.eNotation ? l : t : i.indexOf(\".\") !== -1 ? d === \"0\" && a === \"\" || d === a || n && d === \"-\" + a ? l : t : s ? a === d || n + a === d ? l : t : i === d || i === n + d ? l : t;\n }\n } else\n return t;\n }\n}\nfunction Qt(t) {\n return t && t.indexOf(\".\") !== -1 && (t = t.replace(/0+$/, \"\"), t === \".\" ? t = \"0\" : t[0] === \".\" ? t = \"0\" + t : t[t.length - 1] === \".\" && (t = t.substr(0, t.length - 1))), t;\n}\nvar te = Jt;\nconst j = I, N = Rt, ee = Kt, ie = te;\n\"<((!\\\\[CDATA\\\\[([\\\\s\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\/)(NAME)\\\\s*>))([^<]*)\".replace(/NAME/g, j.nameRegexp);\nlet ne = class {\n constructor(t) {\n 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: \"₹\" } }, this.addExternalEntities = re, this.parseXml = de, this.parseTextData = se, this.resolveNameSpace = oe, this.buildAttributesMap = le, this.isItStopNode = pe, this.replaceEntitiesValue = ce, this.readStopNodeData = ge, this.saveTextToParentTag = he, this.addChild = ue;\n }\n};\nfunction re(t) {\n const e = Object.keys(t);\n for (let i = 0; i < e.length; i++) {\n const r = e[i];\n this.lastEntities[r] = { regex: new RegExp(\"&\" + r + \";\", \"g\"), val: t[r] };\n }\n}\nfunction se(t, e, i, r, n, s, a) {\n if (t !== void 0 && (this.options.trimValues && !r && (t = t.trim()), t.length > 0)) {\n a || (t = this.replaceEntitiesValue(t));\n const o = this.options.tagValueProcessor(e, t, i, n, s);\n return o == null ? t : typeof o != typeof t || o !== t ? o : this.options.trimValues ? S(t, this.options.parseTagValue, this.options.numberParseOptions) : t.trim() === t ? S(t, this.options.parseTagValue, this.options.numberParseOptions) : t;\n }\n}\nfunction oe(t) {\n if (this.options.removeNSPrefix) {\n const e = t.split(\":\"), i = t.charAt(0) === \"/\" ? \"/\" : \"\";\n if (e[0] === \"xmlns\")\n return \"\";\n e.length === 2 && (t = i + e[1]);\n }\n return t;\n}\nconst ae = new RegExp(`([^\\\\s=]+)\\\\s*(=\\\\s*(['\"])([\\\\s\\\\S]*?)\\\\3)?`, \"gm\");\nfunction le(t, e, i) {\n if (!this.options.ignoreAttributes && typeof t == \"string\") {\n const r = j.getAllMatches(t, ae), n = r.length, s = {};\n for (let a = 0; a < n; a++) {\n const o = this.resolveNameSpace(r[a][1]);\n let l = r[a][4], d = this.options.attributeNamePrefix + o;\n if (o.length)\n if (this.options.transformAttributeName && (d = this.options.transformAttributeName(d)), d === \"__proto__\" && (d = \"#__proto__\"), l !== void 0) {\n this.options.trimValues && (l = l.trim()), l = this.replaceEntitiesValue(l);\n const u = this.options.attributeValueProcessor(o, l, e);\n u == null ? s[d] = l : typeof u != typeof l || u !== l ? s[d] = u : s[d] = S(l, this.options.parseAttributeValue, this.options.numberParseOptions);\n } else\n this.options.allowBooleanAttributes && (s[d] = !0);\n }\n if (!Object.keys(s).length)\n return;\n if (this.options.attributesGroupName) {\n const a = {};\n return a[this.options.attributesGroupName] = s, a;\n }\n return s;\n }\n}\nconst de = function(t) {\n t = t.replace(/\\r\\n?/g, `\n`);\n const e = new N(\"!xml\");\n let i = e, r = \"\", n = \"\";\n for (let s = 0; s < t.length; s++)\n if (t[s] === \"<\")\n if (t[s + 1] === \"/\") {\n const a = x(t, \">\", s, \"Closing Tag is not closed.\");\n let o = t.substring(s + 2, a).trim();\n if (this.options.removeNSPrefix) {\n const u = o.indexOf(\":\");\n u !== -1 && (o = o.substr(u + 1));\n }\n this.options.transformTagName && (o = this.options.transformTagName(o)), i && (r = this.saveTextToParentTag(r, i, n));\n const l = n.substring(n.lastIndexOf(\".\") + 1);\n if (o && this.options.unpairedTags.indexOf(o) !== -1)\n throw new Error(`Unpaired tag can not be used as closing tag: `);\n let d = 0;\n l && this.options.unpairedTags.indexOf(l) !== -1 ? (d = n.lastIndexOf(\".\", n.lastIndexOf(\".\") - 1), this.tagsNodeStack.pop()) : d = n.lastIndexOf(\".\"), n = n.substring(0, d), i = this.tagsNodeStack.pop(), r = \"\", s = a;\n } else if (t[s + 1] === \"?\") {\n let a = D(t, s, !1, \"?>\");\n if (!a)\n throw new Error(\"Pi Tag is not closed.\");\n if (r = this.saveTextToParentTag(r, i, n), !(this.options.ignoreDeclaration && a.tagName === \"?xml\" || this.options.ignorePiTags)) {\n const o = new N(a.tagName);\n o.add(this.options.textNodeName, \"\"), a.tagName !== a.tagExp && a.attrExpPresent && (o[\":@\"] = this.buildAttributesMap(a.tagExp, n, a.tagName)), this.addChild(i, o, n);\n }\n s = a.closeIndex + 1;\n } else if (t.substr(s + 1, 3) === \"!--\") {\n const a = x(t, \"-->\", s + 4, \"Comment is not closed.\");\n if (this.options.commentPropName) {\n const o = t.substring(s + 4, a - 2);\n r = this.saveTextToParentTag(r, i, n), i.add(this.options.commentPropName, [{ [this.options.textNodeName]: o }]);\n }\n s = a;\n } else if (t.substr(s + 1, 2) === \"!D\") {\n const a = ee(t, s);\n this.docTypeEntities = a.entities, s = a.i;\n } else if (t.substr(s + 1, 2) === \"![\") {\n const a = x(t, \"]]>\", s, \"CDATA is not closed.\") - 2, o = t.substring(s + 9, a);\n if (r = this.saveTextToParentTag(r, i, n), this.options.cdataPropName)\n i.add(this.options.cdataPropName, [{ [this.options.textNodeName]: o }]);\n else {\n let l = this.parseTextData(o, i.tagname, n, !0, !1, !0);\n l == null && (l = \"\"), i.add(this.options.textNodeName, l);\n }\n s = a + 2;\n } else {\n let a = D(t, s, this.options.removeNSPrefix), o = a.tagName;\n const l = a.rawTagName;\n let d = a.tagExp, u = a.attrExpPresent, c = a.closeIndex;\n this.options.transformTagName && (o = this.options.transformTagName(o)), i && r && i.tagname !== \"!xml\" && (r = this.saveTextToParentTag(r, i, n, !1));\n const p = i;\n if (p && this.options.unpairedTags.indexOf(p.tagname) !== -1 && (i = this.tagsNodeStack.pop(), n = n.substring(0, n.lastIndexOf(\".\"))), o !== e.tagname && (n += n ? \".\" + o : o), this.isItStopNode(this.options.stopNodes, n, o)) {\n let h = \"\";\n if (d.length > 0 && d.lastIndexOf(\"/\") === d.length - 1)\n s = a.closeIndex;\n else if (this.options.unpairedTags.indexOf(o) !== -1)\n s = a.closeIndex;\n else {\n const b = this.readStopNodeData(t, l, c + 1);\n if (!b)\n throw new Error(`Unexpected end of ${l}`);\n s = b.i, h = b.tagContent;\n }\n const w = new N(o);\n o !== d && u && (w[\":@\"] = this.buildAttributesMap(d, n, o)), h && (h = this.parseTextData(h, o, n, !0, u, !0, !0)), n = n.substr(0, n.lastIndexOf(\".\")), w.add(this.options.textNodeName, h), this.addChild(i, w, n);\n } else {\n if (d.length > 0 && d.lastIndexOf(\"/\") === d.length - 1) {\n o[o.length - 1] === \"/\" ? (o = o.substr(0, o.length - 1), n = n.substr(0, n.length - 1), d = o) : d = d.substr(0, d.length - 1), this.options.transformTagName && (o = this.options.transformTagName(o));\n const h = new N(o);\n o !== d && u && (h[\":@\"] = this.buildAttributesMap(d, n, o)), this.addChild(i, h, n), n = n.substr(0, n.lastIndexOf(\".\"));\n } else {\n const h = new N(o);\n this.tagsNodeStack.push(i), o !== d && u && (h[\":@\"] = this.buildAttributesMap(d, n, o)), this.addChild(i, h, n), i = h;\n }\n r = \"\", s = c;\n }\n }\n else\n r += t[s];\n return e.child;\n};\nfunction ue(t, e, i) {\n const r = this.options.updateTag(e.tagname, i, e[\":@\"]);\n r === !1 || (typeof r == \"string\" && (e.tagname = r), t.addChild(e));\n}\nconst ce = function(t) {\n if (this.options.processEntities) {\n for (let e in this.docTypeEntities) {\n const i = this.docTypeEntities[e];\n t = t.replace(i.regx, i.val);\n }\n for (let e in this.lastEntities) {\n const i = this.lastEntities[e];\n t = t.replace(i.regex, i.val);\n }\n if (this.options.htmlEntities)\n for (let e in this.htmlEntities) {\n const i = this.htmlEntities[e];\n t = t.replace(i.regex, i.val);\n }\n t = t.replace(this.ampEntity.regex, this.ampEntity.val);\n }\n return t;\n};\nfunction he(t, e, i, r) {\n return t && (r === void 0 && (r = Object.keys(e.child).length === 0), t = this.parseTextData(t, e.tagname, i, !1, e[\":@\"] ? Object.keys(e[\":@\"]).length !== 0 : !1, r), t !== void 0 && t !== \"\" && e.add(this.options.textNodeName, t), t = \"\"), t;\n}\nfunction pe(t, e, i) {\n const r = \"*.\" + i;\n for (const n in t) {\n const s = t[n];\n if (r === s || e === s)\n return !0;\n }\n return !1;\n}\nfunction fe(t, e, i = \">\") {\n let r, n = \"\";\n for (let s = e; s < t.length; s++) {\n let a = t[s];\n if (r)\n a === r && (r = \"\");\n else if (a === '\"' || a === \"'\")\n r = a;\n else if (a === i[0])\n if (i[1]) {\n if (t[s + 1] === i[1])\n return { data: n, index: s };\n } else\n return { data: n, index: s };\n else\n a === \"\t\" && (a = \" \");\n n += a;\n }\n}\nfunction x(t, e, i, r) {\n const n = t.indexOf(e, i);\n if (n === -1)\n throw new Error(r);\n return n + e.length - 1;\n}\nfunction D(t, e, i, r = \">\") {\n const n = fe(t, e + 1, r);\n if (!n)\n return;\n let s = n.data;\n const a = n.index, o = s.search(/\\s/);\n let l = s, d = !0;\n o !== -1 && (l = s.substr(0, o).replace(/\\s\\s*$/, \"\"), s = s.substr(o + 1));\n const u = l;\n if (i) {\n const c = l.indexOf(\":\");\n c !== -1 && (l = l.substr(c + 1), d = l !== n.data.substr(c + 1));\n }\n return { tagName: l, tagExp: s, closeIndex: a, attrExpPresent: d, rawTagName: u };\n}\nfunction ge(t, e, i) {\n const r = i;\n let n = 1;\n for (; i < t.length; i++)\n if (t[i] === \"<\")\n if (t[i + 1] === \"/\") {\n const s = x(t, \">\", i, `${e} is not closed`);\n if (t.substring(i + 2, s).trim() === e && (n--, n === 0))\n return { tagContent: t.substring(r, i), i: s };\n i = s;\n } else if (t[i + 1] === \"?\")\n i = x(t, \"?>\", i + 1, \"StopNode is not closed.\");\n else if (t.substr(i + 1, 3) === \"!--\")\n i = x(t, \"-->\", i + 3, \"StopNode is not closed.\");\n else if (t.substr(i + 1, 2) === \"![\")\n i = x(t, \"]]>\", i, \"StopNode is not closed.\") - 2;\n else {\n const s = D(t, i, \">\");\n s && ((s && s.tagName) === e && s.tagExp[s.tagExp.length - 1] !== \"/\" && n++, i = s.closeIndex);\n }\n}\nfunction S(t, e, i) {\n if (e && typeof t == \"string\") {\n const r = t.trim();\n return r === \"true\" ? !0 : r === \"false\" ? !1 : ie(t, i);\n } else\n return j.isExist(t) ? t : \"\";\n}\nvar me = ne, nt = {};\nfunction we(t, e) {\n return rt(t, e);\n}\nfunction rt(t, e, i) {\n let r;\n const n = {};\n for (let s = 0; s < t.length; s++) {\n const a = t[s], o = ve(a);\n let l = \"\";\n if (i === void 0 ? l = o : l = i + \".\" + o, o === e.textNodeName)\n r === void 0 ? r = a[o] : r += \"\" + a[o];\n else {\n if (o === void 0)\n continue;\n if (a[o]) {\n let d = rt(a[o], e, l);\n const u = xe(d, e);\n a[\":@\"] ? ye(d, a[\":@\"], l, e) : Object.keys(d).length === 1 && d[e.textNodeName] !== void 0 && !e.alwaysCreateTextNode ? d = d[e.textNodeName] : Object.keys(d).length === 0 && (e.alwaysCreateTextNode ? d[e.textNodeName] = \"\" : d = \"\"), n[o] !== void 0 && n.hasOwnProperty(o) ? (Array.isArray(n[o]) || (n[o] = [n[o]]), n[o].push(d)) : e.isArray(o, l, u) ? n[o] = [d] : n[o] = d;\n }\n }\n }\n return typeof r == \"string\" ? r.length > 0 && (n[e.textNodeName] = r) : r !== void 0 && (n[e.textNodeName] = r), n;\n}\nfunction ve(t) {\n const e = Object.keys(t);\n for (let i = 0; i < e.length; i++) {\n const r = e[i];\n if (r !== \":@\")\n return r;\n }\n}\nfunction ye(t, e, i, r) {\n if (e) {\n const n = Object.keys(e), s = n.length;\n for (let a = 0; a < s; a++) {\n const o = n[a];\n r.isArray(o, i + \".\" + o, !0, !0) ? t[o] = [e[o]] : t[o] = e[o];\n }\n }\n}\nfunction xe(t, e) {\n const { textNodeName: i } = e, r = Object.keys(t).length;\n return !!(r === 0 || r === 1 && (t[i] || typeof t[i] == \"boolean\" || t[i] === 0));\n}\nnt.prettify = we;\nconst { buildOptions: be } = C, Ee = me, { prettify: Ne } = nt, _e = L;\nlet Ae = class {\n constructor(t) {\n this.externalEntities = {}, this.options = be(t);\n }\n parse(t, e) {\n if (typeof t != \"string\")\n if (t.toString)\n t = t.toString();\n else\n throw new Error(\"XML data is accepted in String or Bytes[] form.\");\n if (e) {\n e === !0 && (e = {});\n const n = _e.validate(t, e);\n if (n !== !0)\n throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);\n }\n const i = new Ee(this.options);\n i.addExternalEntities(this.externalEntities);\n const r = i.parseXml(t);\n return this.options.preserveOrder || r === void 0 ? r : Ne(r, this.options);\n }\n addEntity(t, e) {\n if (e.indexOf(\"&\") !== -1)\n throw new Error(\"Entity value can't have '&'\");\n if (t.indexOf(\"&\") !== -1 || t.indexOf(\";\") !== -1)\n throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for ' '\");\n if (e === \"&\")\n throw new Error(\"An entity with value '&' is not permitted\");\n this.externalEntities[t] = e;\n }\n};\nvar Te = Ae;\nconst Ie = `\n`;\nfunction Pe(t, e) {\n let i = \"\";\n return e.format && e.indentBy.length > 0 && (i = Ie), st(t, e, \"\", i);\n}\nfunction st(t, e, i, r) {\n let n = \"\", s = !1;\n for (let a = 0; a < t.length; a++) {\n const o = t[a], l = Oe(o);\n if (l === void 0)\n continue;\n let d = \"\";\n if (i.length === 0 ? d = l : d = `${i}.${l}`, l === e.textNodeName) {\n let w = o[l];\n Ce(d, e) || (w = e.tagValueProcessor(l, w), w = ot(w, e)), s && (n += r), n += w, s = !1;\n continue;\n } else if (l === e.cdataPropName) {\n s && (n += r), n += ``, s = !1;\n continue;\n } else if (l === e.commentPropName) {\n n += r + ``, s = !0;\n continue;\n } else if (l[0] === \"?\") {\n const w = X(o[\":@\"], e), b = l === \"?xml\" ? \"\" : r;\n let _ = o[l][0][e.textNodeName];\n _ = _.length !== 0 ? \" \" + _ : \"\", n += b + `<${l}${_}${w}?>`, s = !0;\n continue;\n }\n let u = r;\n u !== \"\" && (u += e.indentBy);\n const c = X(o[\":@\"], e), p = r + `<${l}${c}`, h = st(o[l], e, d, u);\n e.unpairedTags.indexOf(l) !== -1 ? e.suppressUnpairedNode ? n += p + \">\" : n += p + \"/>\" : (!h || h.length === 0) && e.suppressEmptyNode ? n += p + \"/>\" : h && h.endsWith(\">\") ? n += p + `>${h}${r}` : (n += p + \">\", h && r !== \"\" && (h.includes(\"/>\") || h.includes(\"`), s = !0;\n }\n return n;\n}\nfunction Oe(t) {\n const e = Object.keys(t);\n for (let i = 0; i < e.length; i++) {\n const r = e[i];\n if (t.hasOwnProperty(r) && r !== \":@\")\n return r;\n }\n}\nfunction X(t, e) {\n let i = \"\";\n if (t && !e.ignoreAttributes)\n for (let r in t) {\n if (!t.hasOwnProperty(r))\n continue;\n let n = e.attributeValueProcessor(r, t[r]);\n n = ot(n, e), n === !0 && e.suppressBooleanAttributes ? i += ` ${r.substr(e.attributeNamePrefix.length)}` : i += ` ${r.substr(e.attributeNamePrefix.length)}=\"${n}\"`;\n }\n return i;\n}\nfunction Ce(t, e) {\n t = t.substr(0, t.length - e.textNodeName.length - 1);\n let i = t.substr(t.lastIndexOf(\".\") + 1);\n for (let r in e.stopNodes)\n if (e.stopNodes[r] === t || e.stopNodes[r] === \"*.\" + i)\n return !0;\n return !1;\n}\nfunction ot(t, e) {\n if (t && t.length > 0 && e.processEntities)\n for (let i = 0; i < e.entities.length; i++) {\n const r = e.entities[i];\n t = t.replace(r.regex, r.val);\n }\n return t;\n}\nvar De = Pe;\nconst Se = De, Fe = { attributeNamePrefix: \"@_\", attributesGroupName: !1, textNodeName: \"#text\", ignoreAttributes: !0, cdataPropName: !1, format: !1, indentBy: \" \", suppressEmptyNode: !1, suppressUnpairedNode: !0, suppressBooleanAttributes: !0, tagValueProcessor: function(t, e) {\n return e;\n}, attributeValueProcessor: function(t, e) {\n return e;\n}, preserveOrder: !1, commentPropName: !1, unpairedTags: [], entities: [{ regex: new RegExp(\"&\", \"g\"), val: \"&\" }, { regex: new RegExp(\">\", \"g\"), val: \">\" }, { regex: new RegExp(\"<\", \"g\"), val: \"<\" }, { regex: new RegExp(\"'\", \"g\"), val: \"'\" }, { regex: new RegExp('\"', \"g\"), val: \""\" }], processEntities: !0, stopNodes: [], oneListGroup: !1 };\nfunction y(t) {\n this.options = Object.assign({}, Fe, t), this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {\n return !1;\n } : (this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ke), this.processTextOrObjNode = $e, this.options.format ? (this.indentate = Ve, this.tagEndChar = `>\n`, this.newLine = `\n`) : (this.indentate = function() {\n return \"\";\n }, this.tagEndChar = \">\", this.newLine = \"\");\n}\ny.prototype.build = function(t) {\n return this.options.preserveOrder ? Se(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = { [this.options.arrayNodeName]: t }), this.j2x(t, 0).val);\n}, y.prototype.j2x = function(t, e) {\n let i = \"\", r = \"\";\n for (let n in t)\n if (t.hasOwnProperty(n))\n if (typeof t[n] > \"u\")\n this.isAttribute(n) && (r += \"\");\n else if (t[n] === null)\n this.isAttribute(n) ? r += \"\" : n[0] === \"?\" ? r += this.indentate(e) + \"<\" + n + \"?\" + this.tagEndChar : r += this.indentate(e) + \"<\" + n + \"/\" + this.tagEndChar;\n else if (t[n] instanceof Date)\n r += this.buildTextValNode(t[n], n, \"\", e);\n else if (typeof t[n] != \"object\") {\n const s = this.isAttribute(n);\n if (s)\n i += this.buildAttrPairStr(s, \"\" + t[n]);\n else if (n === this.options.textNodeName) {\n let a = this.options.tagValueProcessor(n, \"\" + t[n]);\n r += this.replaceEntitiesValue(a);\n } else\n r += this.buildTextValNode(t[n], n, \"\", e);\n } else if (Array.isArray(t[n])) {\n const s = t[n].length;\n let a = \"\";\n for (let o = 0; o < s; o++) {\n const l = t[n][o];\n typeof l > \"u\" || (l === null ? n[0] === \"?\" ? r += this.indentate(e) + \"<\" + n + \"?\" + this.tagEndChar : r += this.indentate(e) + \"<\" + n + \"/\" + this.tagEndChar : typeof l == \"object\" ? this.options.oneListGroup ? a += this.j2x(l, e + 1).val : a += this.processTextOrObjNode(l, n, e) : a += this.buildTextValNode(l, n, \"\", e));\n }\n this.options.oneListGroup && (a = this.buildObjectNode(a, n, \"\", e)), r += a;\n } else if (this.options.attributesGroupName && n === this.options.attributesGroupName) {\n const s = Object.keys(t[n]), a = s.length;\n for (let o = 0; o < a; o++)\n i += this.buildAttrPairStr(s[o], \"\" + t[n][s[o]]);\n } else\n r += this.processTextOrObjNode(t[n], n, e);\n return { attrStr: i, val: r };\n}, y.prototype.buildAttrPairStr = function(t, e) {\n return e = this.options.attributeValueProcessor(t, \"\" + e), e = this.replaceEntitiesValue(e), this.options.suppressBooleanAttributes && e === \"true\" ? \" \" + t : \" \" + t + '=\"' + e + '\"';\n};\nfunction $e(t, e, i) {\n const r = this.j2x(t, i + 1);\n return t[this.options.textNodeName] !== void 0 && Object.keys(t).length === 1 ? this.buildTextValNode(t[this.options.textNodeName], e, r.attrStr, i) : this.buildObjectNode(r.val, e, r.attrStr, i);\n}\ny.prototype.buildObjectNode = function(t, e, i, r) {\n if (t === \"\")\n return e[0] === \"?\" ? this.indentate(r) + \"<\" + e + i + \"?\" + this.tagEndChar : this.indentate(r) + \"<\" + e + i + this.closeTag(e) + this.tagEndChar;\n {\n let n = \"\" + t + n : this.options.commentPropName !== !1 && e === this.options.commentPropName && s.length === 0 ? this.indentate(r) + `` + this.newLine : this.indentate(r) + \"<\" + e + i + s + this.tagEndChar + t + this.indentate(r) + n;\n }\n}, y.prototype.closeTag = function(t) {\n let e = \"\";\n return this.options.unpairedTags.indexOf(t) !== -1 ? this.options.suppressUnpairedNode || (e = \"/\") : this.options.suppressEmptyNode ? e = \"/\" : e = `>` + this.newLine;\n if (this.options.commentPropName !== !1 && e === this.options.commentPropName)\n return this.indentate(r) + `` + this.newLine;\n if (e[0] === \"?\")\n return this.indentate(r) + \"<\" + e + i + \"?\" + this.tagEndChar;\n {\n let n = this.options.tagValueProcessor(e, t);\n return n = this.replaceEntitiesValue(n), n === \"\" ? this.indentate(r) + \"<\" + e + i + this.closeTag(e) + this.tagEndChar : this.indentate(r) + \"<\" + e + i + \">\" + n + \" 0 && this.options.processEntities)\n for (let e = 0; e < this.options.entities.length; e++) {\n const i = this.options.entities[e];\n t = t.replace(i.regex, i.val);\n }\n return t;\n};\nfunction Ve(t) {\n return this.options.indentBy.repeat(t);\n}\nfunction ke(t) {\n return t.startsWith(this.options.attributeNamePrefix) && t !== this.options.textNodeName ? t.substr(this.attrPrefixLen) : !1;\n}\nvar Le = y;\nconst Re = L, je = Te, Me = Le;\nvar H = { XMLParser: je, XMLValidator: Re, XMLBuilder: Me };\nfunction Be(t) {\n if (typeof t != \"string\")\n throw new TypeError(`Expected a \\`string\\`, got \\`${typeof t}\\``);\n if (t = t.trim(), t.length === 0 || H.XMLValidator.validate(t) !== !0)\n return !1;\n let e;\n const i = new H.XMLParser();\n try {\n e = i.parse(t);\n } catch {\n return !1;\n }\n return !(!e || !(\"svg\" in e));\n}\nclass ci {\n _view;\n constructor(e) {\n qe(e), this._view = e;\n }\n get id() {\n return this._view.id;\n }\n get name() {\n return this._view.name;\n }\n get caption() {\n return this._view.caption;\n }\n get emptyTitle() {\n return this._view.emptyTitle;\n }\n get emptyCaption() {\n return this._view.emptyCaption;\n }\n get getContents() {\n return this._view.getContents;\n }\n get icon() {\n return this._view.icon;\n }\n set icon(e) {\n this._view.icon = e;\n }\n get order() {\n return this._view.order;\n }\n set order(e) {\n this._view.order = e;\n }\n get params() {\n return this._view.params;\n }\n set params(e) {\n this._view.params = e;\n }\n get columns() {\n return this._view.columns;\n }\n get emptyView() {\n return this._view.emptyView;\n }\n get parent() {\n return this._view.parent;\n }\n get sticky() {\n return this._view.sticky;\n }\n get expanded() {\n return this._view.expanded;\n }\n set expanded(e) {\n this._view.expanded = e;\n }\n get defaultSortKey() {\n return this._view.defaultSortKey;\n }\n}\nconst qe = function(t) {\n if (!t.id || typeof t.id != \"string\")\n throw new Error(\"View id is required and must be a string\");\n if (!t.name || typeof t.name != \"string\")\n throw new Error(\"View name is required and must be a string\");\n if (t.columns && t.columns.length > 0 && (!t.caption || typeof t.caption != \"string\"))\n throw new Error(\"View caption is required for top-level views and must be a string\");\n if (!t.getContents || typeof t.getContents != \"function\")\n throw new Error(\"View getContents is required and must be a function\");\n if (!t.icon || typeof t.icon != \"string\" || !Be(t.icon))\n throw new Error(\"View icon is required and must be a valid svg string\");\n if (!(\"order\" in t) || typeof t.order != \"number\")\n throw new Error(\"View order is required and must be a number\");\n if (t.columns && t.columns.forEach((e) => {\n if (!(e instanceof At))\n throw new Error(\"View columns must be an array of Column. Invalid column found\");\n }), t.emptyView && typeof t.emptyView != \"function\")\n throw new Error(\"View emptyView must be a function\");\n if (t.parent && typeof t.parent != \"string\")\n throw new Error(\"View parent must be a string\");\n if (\"sticky\" in t && typeof t.sticky != \"boolean\")\n throw new Error(\"View sticky must be a boolean\");\n if (\"expanded\" in t && typeof t.expanded != \"boolean\")\n throw new Error(\"View expanded must be a boolean\");\n if (t.defaultSortKey && typeof t.defaultSortKey != \"string\")\n throw new Error(\"View defaultSortKey must be a string\");\n return !0;\n}, hi = function(t) {\n return F().registerEntry(t);\n}, pi = function(t) {\n return F().unregisterEntry(t);\n}, fi = function(t) {\n return F().getEntries(t);\n};\nexport {\n At as Column,\n K as DefaultType,\n bt as File,\n Qe as FileAction,\n k as FileType,\n Et as Folder,\n ii as Header,\n _t as Navigation,\n Q as Node,\n J as NodeStatus,\n v as Permission,\n ci as View,\n hi as addNewFileMenuEntry,\n li as davGetClient,\n oi as davGetDefaultPropfind,\n yt as davGetFavoritesReport,\n ai as davGetRecentSearch,\n xt as davParsePermissions,\n et as davRemoteURL,\n Nt as davResultToNode,\n tt as davRootPath,\n Y as defaultDavNamespaces,\n W as defaultDavProperties,\n Ze as formatFileSize,\n V as getDavNameSpaces,\n $ as getDavProperties,\n di as getFavoriteNodes,\n ei as getFileActions,\n ri as getFileListHeaders,\n ui as getNavigation,\n fi as getNewFileMenuEntries,\n Je as parseFileSize,\n si as registerDavProperty,\n ti as registerFileAction,\n ni as registerFileListHeaders,\n pi as removeNewFileMenuEntry\n};\n","import \"../assets/index-793eae6b.css\";\nimport { r as c } from \"../chunks/index-5f2a5f57.mjs\";\nimport { N as ut } from \"../chunks/index-5f2a5f57.mjs\";\nimport { generateUrl as p } from \"@nextcloud/router\";\nimport { n as u } from \"../chunks/_plugin-vue2_normalizer-71e2aa87.mjs\";\nimport { t as r } from \"../chunks/l10n-27a75c40.mjs\";\nimport \"../Directives/Tooltip.mjs\";\nimport { emojiAddRecent as m, emojiSearch as d } from \"../Functions/emoji.mjs\";\nimport { n as h, j as f } from \"../chunks/referencePickerModal-0fde503d.mjs\";\nimport \"@nextcloud/axios\";\nimport \"unist-util-visit\";\nimport \"unist-builder\";\nimport \"unified\";\nimport \"remark-parse\";\nimport \"remark-breaks\";\nimport \"remark-rehype\";\nimport \"rehype-react\";\nimport \"rehype-external-links\";\nimport \"./NcEmptyContent.mjs\";\nimport \"./NcSelect.mjs\";\nimport \"vue-material-design-icons/LinkVariant.vue\";\nimport \"./NcLoadingIcon.mjs\";\nimport \"./NcTextField.mjs\";\nimport \"vue-material-design-icons/DotsHorizontal.vue\";\nimport \"./NcButton.mjs\";\nimport \"./NcModal.mjs\";\nimport \"@nextcloud/event-bus\";\nimport \"vue-material-design-icons/ArrowLeft.vue\";\nimport \"vue-material-design-icons/Close.vue\";\nimport a from \"tributejs/dist/tribute.esm.js\";\nimport _ from \"debounce\";\nimport g from \"string-length\";\nimport { VTooltip as b } from \"floating-vue\";\nconst y = {\n name: \"NcAutoCompleteResult\",\n props: {\n title: {\n type: String,\n required: !0\n },\n subline: {\n type: String,\n default: null\n },\n id: {\n type: String,\n default: null\n },\n icon: {\n type: String,\n required: !0\n },\n iconUrl: {\n type: String,\n default: null\n },\n source: {\n type: String,\n required: !0\n },\n status: {\n type: [Object, Array],\n default: () => ({})\n }\n },\n computed: {\n avatarUrl() {\n return this.iconUrl ? this.iconUrl : this.id && this.source === \"users\" ? this.getAvatarUrl(this.id, 44) : null;\n },\n haveStatus() {\n var e, t, n;\n return ((e = this.status) == null ? void 0 : e.icon) || ((t = this.status) == null ? void 0 : t.status) && ((n = this.status) == null ? void 0 : n.status) !== \"offline\";\n }\n },\n methods: {\n getAvatarUrl(e, t) {\n return p(\"/avatar/{user}/{size}\", {\n user: e,\n size: t\n });\n }\n }\n};\nvar C = function() {\n var t = this, n = t._self._c;\n return n(\"div\", { staticClass: \"autocomplete-result\" }, [n(\"div\", { staticClass: \"autocomplete-result__icon\", class: [t.icon, `autocomplete-result__icon--${t.avatarUrl ? \"with-avatar\" : \"\"}`], style: t.avatarUrl ? { backgroundImage: `url(${t.avatarUrl})` } : null }, [t.haveStatus ? n(\"div\", { staticClass: \"autocomplete-result__status\", class: [`autocomplete-result__status--${t.status && t.status.icon ? \"icon\" : t.status.status}`] }, [t._v(\" \" + t._s(t.status && t.status.icon || \"\") + \" \")]) : t._e()]), n(\"span\", { staticClass: \"autocomplete-result__content\" }, [n(\"span\", { staticClass: \"autocomplete-result__title\", attrs: { title: t.title } }, [t._v(\" \" + t._s(t.title) + \" \")]), t.subline ? n(\"span\", { staticClass: \"autocomplete-result__subline\" }, [t._v(\" \" + t._s(t.subline) + \" \")]) : t._e()])]);\n}, v = [], k = /* @__PURE__ */ u(\n y,\n C,\n v,\n !1,\n null,\n \"25cf09d8\",\n null,\n null\n);\nconst x = k.exports;\nconst T = {\n name: \"NcRichContenteditable\",\n directives: {\n tooltip: b\n },\n mixins: [c],\n props: {\n value: {\n type: String,\n default: \"\",\n required: !0\n },\n placeholder: {\n type: String,\n default: r(\"Write a message …\")\n },\n autoComplete: {\n type: Function,\n default: () => []\n },\n menuContainer: {\n type: Element,\n default: () => document.body\n },\n /**\n * Make the contenteditable looks like a textarea or not.\n * Default looks like a single-line input.\n * This also handle the default enter/shift+enter behaviour.\n * if multiline, enter = newline; otherwise enter = submit\n * shift+enter always add a new line. ctrl+enter always submits\n */\n multiline: {\n type: Boolean,\n default: !1\n },\n /**\n * Is the content editable ?\n */\n contenteditable: {\n type: Boolean,\n default: !0\n },\n /**\n * Disable the editing and show specific disabled design\n */\n disabled: {\n type: Boolean,\n default: !1\n },\n /**\n * Max allowed length\n */\n maxlength: {\n type: Number,\n default: null\n },\n /**\n * Enable or disable emoji autocompletion\n */\n emojiAutocomplete: {\n type: Boolean,\n default: !0\n },\n /**\n * Enable or disable link autocompletion\n */\n linkAutocomplete: {\n type: Boolean,\n default: !0\n }\n },\n emits: [\n \"submit\",\n \"paste\",\n \"update:value\"\n ],\n data() {\n return {\n textSmiles: [],\n tribute: null,\n autocompleteOptions: {\n // Allow spaces in the middle of mentions\n allowSpaces: !0,\n fillAttr: \"id\",\n // Search against id and title (display name)\n lookup: (e) => `${e.id} ${e.title}`,\n // Where to inject the menu popup\n menuContainer: this.menuContainer,\n // Popup mention autocompletion templates\n menuItemTemplate: (e) => this.renderComponentHtml(e.original, x),\n // Hide if no results\n noMatchTemplate: () => '',\n // Inner display of mentions\n selectTemplate: (e) => {\n var t;\n return this.genSelectTemplate((t = e == null ? void 0 : e.original) == null ? void 0 : t.id);\n },\n // Autocompletion results\n values: this.debouncedAutoComplete\n },\n emojiOptions: {\n trigger: \":\",\n // Don't use the tribute search function at all\n // We pass search results as values (see below)\n lookup: (e, t) => t,\n // Where to inject the menu popup\n menuContainer: this.menuContainer,\n // Popup mention autocompletion templates\n menuItemTemplate: (e) => this.textSmiles.includes(e.original) ? e.original : `${e.original.native} :${e.original.short_name}`,\n // Hide if no results\n noMatchTemplate: () => r(\"No emoji found\"),\n // Display raw emoji along with its name\n selectTemplate: (e) => this.textSmiles.includes(e.original) ? e.original : (m(e.original), e.original.native),\n // Pass the search results as values\n values: (e, t) => {\n const n = d(e);\n this.textSmiles.includes(\":\" + e) && n.unshift(\":\" + e), t(n);\n },\n // Class added to the menu container\n containerClass: \"tribute-container-emoji\",\n // Class added to each list item\n itemClass: \"tribute-container-emoji__item\"\n },\n linkOptions: {\n trigger: \"/\",\n // Don't use the tribute search function at all\n // We pass search results as values (see below)\n lookup: (e, t) => t,\n // Where to inject the menu popup\n menuContainer: this.menuContainer,\n // Popup mention autocompletion templates\n menuItemTemplate: (e) => ` ${e.original.title}`,\n // Hide if no results\n noMatchTemplate: () => r(\"No link provider found\"),\n selectTemplate: this.getLink,\n // Pass the search results as values\n values: (e, t) => t(h(e)),\n // Class added to the menu container\n containerClass: \"tribute-container-link\",\n // Class added to each list item\n itemClass: \"tribute-container-link__item\"\n },\n // Represent the raw untrimmed text of the contenteditable\n // serves no other purpose than to check whether the\n // content is empty or not\n localValue: this.value,\n // Is in text composition session in IME\n isComposing: !1\n };\n },\n computed: {\n /**\n * Is the current trimmed value empty?\n *\n * @return {boolean}\n */\n isEmptyValue() {\n return !this.localValue || this.localValue && this.localValue.trim() === \"\";\n },\n /**\n * Is this Firefox? 🙄\n *\n * @return {boolean}\n */\n isFF() {\n return !!navigator.userAgent.match(/firefox/i);\n },\n /**\n * Is the current value over maxlength?\n *\n * @return {boolean}\n */\n isOverMaxlength() {\n return this.isEmptyValue || !this.maxlength ? !1 : g(this.localValue) > this.maxlength;\n },\n /**\n * Tooltip to show if characters count is over limit\n *\n * @return {string}\n */\n tooltipString() {\n return this.isOverMaxlength ? {\n content: r(\"Message limit of {count} characters reached\", { count: this.maxlength }),\n shown: !0,\n trigger: \"manual\"\n } : null;\n },\n /**\n * Edit is only allowed when contenteditableis true and disabled is false\n *\n * @return {boolean}\n */\n canEdit() {\n return this.contenteditable && !this.disabled;\n },\n /**\n * Proxied native event handlers without custom event handlers\n *\n * @return {Record}\n */\n listeners() {\n const e = { ...this.$listeners };\n return delete e.paste, e;\n }\n },\n watch: {\n /**\n * If the parent value change, we compare the plain text rendering\n * If it's different, we render everything and update the main content\n */\n value() {\n const e = this.$refs.contenteditable.innerHTML;\n this.value.trim() !== this.parseContent(e).trim() && this.updateContent(this.value);\n }\n },\n mounted() {\n const e = [\"d\", \"D\", \"p\", \"P\", \"s\", \"S\", \"x\", \"X\", \")\", \"(\", \"|\", \"/\"];\n this.textSmiles = [], e.forEach((t) => {\n this.textSmiles.push(\":\" + t), this.textSmiles.push(\":-\" + t);\n }), this.autocompleteTribute = new a(this.autocompleteOptions), this.autocompleteTribute.attach(this.$el), this.emojiAutocomplete && (this.emojiTribute = new a(this.emojiOptions), this.emojiTribute.attach(this.$el)), this.linkAutocomplete && (this.linkTribute = new a(this.linkOptions), this.linkTribute.attach(this.$el)), this.updateContent(this.value), this.$refs.contenteditable.contentEditable = this.canEdit;\n },\n beforeDestroy() {\n this.autocompleteTribute && this.autocompleteTribute.detach(this.$el), this.emojiTribute && this.emojiTribute.detach(this.$el), this.linkTribute && this.linkTribute.detach(this.$el);\n },\n methods: {\n /**\n * Focus the richContenteditable\n *\n * @public\n */\n focus() {\n this.$refs.contenteditable.focus();\n },\n getLink(e) {\n return f(e.original.id).then((t) => {\n const n = document.getElementById(\"tmp-link-result-node\"), i = document.createTextNode(t);\n n.replaceWith(i), this.setCursorAfter(i), this.updateValue(this.$refs.contenteditable.innerHTML);\n }).catch((t) => {\n console.debug(\"Smart picker promise rejected:\", t);\n const n = document.getElementById(\"tmp-link-result-node\");\n this.setCursorAfter(n), n.remove();\n }), '';\n },\n setCursorAfter(e) {\n const t = document.createRange();\n t.setEndAfter(e), t.collapse();\n const n = window.getSelection();\n n.removeAllRanges(), n.addRange(t);\n },\n /**\n * Re-emit the input event to the parent\n *\n * @param {Event} event the input event\n */\n onInput(e) {\n this.updateValue(e.target.innerHTML);\n },\n /**\n * When pasting, sanitize the content, extract text\n * and render it again\n *\n * @param {Event} event the paste event\n * @fires Event paste the original paste event\n */\n onPaste(e) {\n if (!this.canEdit)\n return;\n e.preventDefault();\n const t = e.clipboardData;\n if (this.$emit(\"paste\", e), t.files.length !== 0 || !Object.values(t.items).find((l) => l == null ? void 0 : l.type.startsWith(\"text\")))\n return;\n const n = t.getData(\"text\"), i = window.getSelection();\n if (!i.rangeCount) {\n this.updateValue(n);\n return;\n }\n const s = i.getRangeAt(0);\n i.deleteFromDocument(), s.insertNode(document.createTextNode(n));\n const o = document.createRange();\n o.setStart(e.target, s.endOffset), o.collapse(!0), i.removeAllRanges(), i.addRange(o), this.updateValue(this.$refs.contenteditable.innerHTML);\n },\n /**\n * Update the value text from the provided html\n *\n * @param {string} htmlOrText the html content (or raw text with @mentions)\n */\n updateValue(e) {\n const t = this.parseContent(e);\n this.localValue = t, this.$emit(\"update:value\", t);\n },\n /**\n * Update content and local value\n *\n * @param {string} value the message value\n */\n updateContent(e) {\n const t = this.renderContent(e);\n this.$refs.contenteditable.innerHTML = t, this.localValue = e;\n },\n /**\n * Because FF have a decade old bug preventing contenteditable=false\n * to properly be deleted on backspace, we have to hack 👀\n * https://stackoverflow.com/a/59383394/3885878\n * https://stackoverflow.com/a/30574622\n *\n * @param {Event} event the delete keydown event\n */\n onDelete(e) {\n if (!this.isFF || !window.getSelection || !this.canEdit)\n return;\n const t = window.getSelection(), n = e.target;\n if (!t.isCollapsed || !t.rangeCount)\n return;\n const i = t.getRangeAt(t.rangeCount - 1);\n if (i.commonAncestorContainer.nodeType === 3 && i.startOffset > 0)\n return;\n const s = document.createRange();\n if (t.anchorNode !== n)\n s.selectNodeContents(n), s.setEndBefore(t.anchorNode);\n else if (t.anchorOffset > 0)\n s.setEnd(n, t.anchorOffset);\n else\n return;\n s.setStart(n, s.endOffset - 1);\n const o = s.cloneContents().lastChild;\n o && o.contentEditable === \"false\" && (s.deleteContents(), e.preventDefault());\n },\n /**\n * Enter key pressed. Submits if not multiline\n *\n * @param {Event} event the keydown event\n */\n onEnter(e) {\n this.multiline || this.isOverMaxlength || this.autocompleteTribute.isActive || this.emojiTribute.isActive || this.linkTribute.isActive || this.isComposing || (e.preventDefault(), e.stopPropagation(), this.$emit(\"submit\", e));\n },\n /**\n * Ctrl + Enter key pressed is used to submit\n *\n * @param {Event} event the keydown event\n */\n onCtrlEnter(e) {\n this.isOverMaxlength || this.$emit(\"submit\", e);\n },\n /**\n * Debounce the autocomplete function\n */\n debouncedAutoComplete: _(async function(e, t) {\n this.autoComplete(e, t);\n }, 100),\n onKeyUp(e) {\n e.stopImmediatePropagation();\n }\n }\n};\nvar S = function() {\n var t = this, n = t._self._c;\n return n(\"div\", t._g({ directives: [{ name: \"tooltip\", rawName: \"v-tooltip\", value: t.tooltipString, expression: \"tooltipString\" }], ref: \"contenteditable\", staticClass: \"rich-contenteditable__input\", class: {\n \"rich-contenteditable__input--empty\": t.isEmptyValue,\n \"rich-contenteditable__input--multiline\": t.multiline,\n \"rich-contenteditable__input--overflow\": t.isOverMaxlength,\n \"rich-contenteditable__input--disabled\": t.disabled\n }, attrs: { contenteditable: t.canEdit, placeholder: t.placeholder, \"aria-placeholder\": t.placeholder, \"aria-multiline\": \"true\", role: \"textbox\" }, on: { input: t.onInput, compositionstart: function(i) {\n t.isComposing = !0;\n }, compositionend: function(i) {\n t.isComposing = !1;\n }, keydown: [function(i) {\n return !i.type.indexOf(\"key\") && t._k(i.keyCode, \"delete\", [8, 46], i.key, [\"Backspace\", \"Delete\", \"Del\"]) ? null : t.onDelete.apply(null, arguments);\n }, function(i) {\n return !i.type.indexOf(\"key\") && t._k(i.keyCode, \"enter\", 13, i.key, \"Enter\") || i.ctrlKey || i.shiftKey || i.altKey || i.metaKey ? null : t.onEnter.apply(null, arguments);\n }, function(i) {\n return !i.type.indexOf(\"key\") && t._k(i.keyCode, \"enter\", 13, i.key, \"Enter\") || !i.ctrlKey || i.shiftKey || i.altKey || i.metaKey ? null : (i.stopPropagation(), i.preventDefault(), t.onCtrlEnter.apply(null, arguments));\n }], paste: t.onPaste, \"!keyup\": function(i) {\n return i.stopPropagation(), i.preventDefault(), t.onKeyUp.apply(null, arguments);\n } } }, t.listeners));\n}, A = [], E = /* @__PURE__ */ u(\n T,\n S,\n A,\n !1,\n null,\n \"b7f5e546\",\n null,\n null\n);\nconst rt = E.exports;\nexport {\n x as NcAutoCompleteResult,\n ut as NcMentionBubble,\n rt as default\n};\n","import { N as b } from \"./referencePickerModal-0fde503d.mjs\";\nimport f from \"@nextcloud/axios\";\nimport { generateOcsUrl as d } from \"@nextcloud/router\";\nimport { n as g } from \"./_plugin-vue2_normalizer-71e2aa87.mjs\";\nimport { visit as _, SKIP as v } from \"unist-util-visit\";\nimport { u as l } from \"unist-builder\";\nimport { unified as y } from \"unified\";\nimport w from \"remark-parse\";\nimport R from \"remark-breaks\";\nimport N from \"remark-rehype\";\nimport A from \"rehype-react\";\nimport L from \"rehype-external-links\";\nconst m = /(\\s|^)(https?:\\/\\/)((?:[-A-Z0-9+_]+\\.)+[-A-Z]+(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig, x = /(\\s|\\(|^)((https?:\\/\\/)((?:[-A-Z0-9+_]+\\.)+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig, $ = {\n name: \"NcReferenceList\",\n components: {\n NcReferenceWidget: b\n },\n props: {\n text: {\n type: String,\n default: \"\"\n },\n referenceData: {\n type: Object,\n default: null\n },\n limit: {\n type: Number,\n default: 1\n }\n },\n data() {\n return {\n references: null,\n loading: !0\n };\n },\n computed: {\n isVisible() {\n return this.loading || this.displayedReferences;\n },\n values() {\n return this.referenceData ? this.referenceData : this.references ? Object.values(this.references) : [];\n },\n firstReference() {\n var e;\n return (e = this.values[0]) != null ? e : null;\n },\n displayedReferences() {\n return this.values.slice(0, this.limit);\n }\n },\n watch: {\n text: \"fetch\"\n },\n mounted() {\n this.fetch();\n },\n methods: {\n fetch() {\n if (this.loading = !0, this.referenceData) {\n this.loading = !1;\n return;\n }\n if (!new RegExp(m).exec(this.text)) {\n this.loading = !1;\n return;\n }\n this.resolve().then((e) => {\n this.references = e.data.ocs.data.references, this.loading = !1;\n }).catch((e) => {\n console.error(\"Failed to extract references\", e), this.loading = !1;\n });\n },\n resolve() {\n const e = new RegExp(m).exec(this.text.trim());\n return this.limit === 1 && e ? f.get(d(\"references/resolve\", 2) + `?reference=${encodeURIComponent(e[0])}`) : f.post(d(\"references/extract\", 2), {\n text: this.text,\n resolve: !0,\n limit: this.limit\n });\n }\n }\n};\nvar j = function() {\n var s = this, t = s._self._c;\n return s.isVisible ? t(\"div\", { staticClass: \"widgets--list\", class: { \"icon-loading\": s.loading } }, s._l(s.displayedReferences, function(r) {\n var i;\n return t(\"div\", { key: (i = r == null ? void 0 : r.openGraphObject) == null ? void 0 : i.id }, [t(\"NcReferenceWidget\", { attrs: { reference: r } })], 1);\n }), 0) : s._e();\n}, T = [], O = /* @__PURE__ */ g(\n $,\n j,\n T,\n !1,\n null,\n \"bd1fbb02\",\n null,\n null\n);\nconst h = O.exports, C = {\n name: \"NcLink\",\n props: {\n href: {\n type: String,\n required: !0\n }\n },\n render(e) {\n return e(\"a\", {\n attrs: {\n href: this.href,\n rel: \"noopener noreferrer\",\n target: \"_blank\",\n class: \"rich-text--external-link\"\n }\n }, [this.href.trim()]);\n }\n}, M = function({ autolink: e, useMarkdown: s }) {\n return function(t) {\n !s || !e || _(t, (r) => r.type === \"text\", (r, i, n) => {\n let c = k(r.value);\n return c = c.map((a) => typeof a == \"string\" ? l(\"text\", a) : l(\"link\", {\n url: a.props.href\n }, [l(\"text\", a.props.href)])).filter((a) => a), n.children.splice(i, 1, ...c.flat()), [v, i + c.flat().length];\n });\n };\n}, k = (e) => {\n let s = x.exec(e);\n const t = [];\n let r = 0;\n for (; s !== null; ) {\n let n = s[2], c, a = e.substring(r, s.index + s[1].length);\n n[0] === \" \" && (a += n[0], n = n.substring(1).trim());\n const o = n[n.length - 1];\n (o === \".\" || o === \",\" || o === \";\" || s[0][0] === \"(\" && o === \")\") && (n = n.substring(0, n.length - 1), c = o), t.push(a), t.push({ component: C, props: { href: n } }), c && t.push(c), r = s.index + s[0].length, s = x.exec(e);\n }\n t.push(e.substring(r));\n const i = t.map((n) => typeof n == \"string\" ? n : n.props.href).join(\"\");\n return e === i ? t : (console.error(\"Failed to reassemble the chunked text: \" + e), e);\n}, D = function() {\n return function(e) {\n _(e, (t) => t.type === \"text\", s);\n function s(t, r, i) {\n const n = t.value.split(/(\\{[a-z\\-_.0-9]+\\})/ig).map((c, a, o) => {\n const p = c.match(/^\\{([a-z\\-_.0-9]+)\\}$/i);\n if (!p)\n return l(\"text\", c);\n const [, u] = p;\n return l(\"element\", {\n tagName: `#${u}`\n });\n });\n i.children.splice(r, 1, ...n);\n }\n };\n}, E = ({ h: e, context: s }, t) => (s.autolink && (t = k(t)), Array.isArray(t) ? t.map((r) => {\n if (typeof r == \"string\")\n return r;\n const { component: i, props: n } = r, c = i.name === \"NcLink\" ? void 0 : \"rich-text--component\";\n return e(i, {\n props: n,\n class: c\n });\n}) : t), P = {\n name: \"NcRichText\",\n components: {\n NcReferenceList: h\n },\n props: {\n text: {\n type: String,\n default: \"\"\n },\n arguments: {\n type: Object,\n default: () => ({})\n },\n referenceLimit: {\n type: Number,\n default: 0\n },\n /** Provide data upfront to avoid extra http request */\n references: {\n type: Object,\n default: null\n },\n markdownCssClasses: {\n type: Object,\n default: () => ({\n a: \"rich-text--external-link\",\n ol: \"rich-text--ordered-list\",\n ul: \"rich-text--un-ordered-list\",\n li: \"rich-text--list-item\",\n strong: \"rich-text--strong\",\n em: \"rich-text--italic\",\n h1: \"rich-text--heading rich-text--heading-1\",\n h2: \"rich-text--heading rich-text--heading-2\",\n h3: \"rich-text--heading rich-text--heading-3\",\n h4: \"rich-text--heading rich-text--heading-4\",\n h5: \"rich-text--heading rich-text--heading-5\",\n h6: \"rich-text--heading rich-text--heading-6\",\n hr: \"rich-text--hr\",\n table: \"rich-text--table\",\n pre: \"rich-text--pre\",\n code: \"rich-text--code\",\n blockquote: \"rich-text--blockquote\"\n })\n },\n useMarkdown: {\n type: Boolean,\n default: !1\n },\n autolink: {\n type: Boolean,\n default: !0\n }\n },\n methods: {\n renderPlaintext(e) {\n const s = this, t = this.text.split(/(\\{[a-z\\-_.0-9]+\\})/ig).map(function(r, i, n) {\n const c = r.match(/^\\{([a-z\\-_.0-9]+)\\}$/i);\n if (!c)\n return E({ h: e, context: s }, r);\n const a = c[1], o = s.arguments[a];\n if (typeof o == \"object\") {\n const { component: p, props: u } = o;\n return e(p, {\n props: u,\n class: \"rich-text--component\"\n });\n }\n return o ? e(\"span\", { class: \"rich-text--fallback\" }, o) : r;\n });\n return e(\"div\", { class: \"rich-text--wrapper\" }, [\n e(\"div\", {}, t.flat()),\n this.referenceLimit > 0 ? e(\"div\", { class: \"rich-text--reference-widget\" }, [\n e(h, { props: { text: this.text, referenceData: this.references } })\n ]) : null\n ]);\n },\n renderMarkdown(e) {\n const s = y().use(w).use(M, {\n autolink: this.autolink,\n useMarkdown: this.useMarkdown\n }).use(R).use(N, {\n handlers: {\n component(t, r) {\n return t(r, r.component, { value: r.value });\n }\n }\n }).use(D).use(L, {\n target: \"_blank\",\n rel: [\"noopener noreferrer\"]\n }).use(A, {\n createElement: (t, r, i) => {\n if (i = i == null ? void 0 : i.map(\n (c) => typeof c == \"string\" ? c.replace(/</gmi, \"<\") : c\n ), !t.startsWith(\"#\"))\n return e(t, r, i);\n const n = this.arguments[t.slice(1)];\n return n ? n.component ? e(\n n.component,\n {\n attrs: r,\n props: n.props,\n class: \"rich-text--component\"\n },\n i\n ) : e(\"span\", r, [n]) : e(\"span\", { attrs: r, class: \"rich-text--fallback\" }, [`{${t.slice(1)}}`]);\n },\n prefix: !1\n }).processSync(\n this.text.replace(/\")\n ).result;\n return e(\"div\", { class: \"rich-text--wrapper rich-text--wrapper-markdown\" }, [\n s,\n this.referenceLimit > 0 ? e(\"div\", { class: \"rich-text--reference-widget\" }, [\n e(h, { props: { text: this.text, referenceData: this.references } })\n ]) : null\n ]);\n }\n },\n render(e) {\n return this.useMarkdown ? this.renderMarkdown(e) : this.renderPlaintext(e);\n }\n}, U = null, Z = null;\nvar z = /* @__PURE__ */ g(\n P,\n U,\n Z,\n !1,\n null,\n \"f9d2c651\",\n null,\n null\n);\nconst X = z.exports;\nexport {\n X as N,\n h as a\n};\n","import i from \"./Components/NcActionButton.mjs\";\nimport m from \"./Components/NcActionButtonGroup.mjs\";\nimport e from \"./Components/NcActionCaption.mjs\";\nimport p from \"./Components/NcActionCheckbox.mjs\";\nimport c from \"./Components/NcActionInput.mjs\";\nimport f from \"./Components/NcActionLink.mjs\";\nimport n from \"./Components/NcActionRadio.mjs\";\nimport N from \"./Components/NcActionRouter.mjs\";\nimport a from \"./Components/NcActions.mjs\";\nimport s from \"./Components/NcActionSeparator.mjs\";\nimport l from \"./Components/NcActionText.mjs\";\nimport u from \"./Components/NcActionTextEditable.mjs\";\nimport d from \"./Components/NcAppContent.mjs\";\nimport A from \"./Components/NcAppContentDetails.mjs\";\nimport g from \"./Components/NcAppContentList.mjs\";\nimport b from \"./Components/NcAppNavigation.mjs\";\nimport S from \"./Components/NcAppNavigationCaption.mjs\";\nimport v from \"./Components/NcAppNavigationIconBullet.mjs\";\nimport T from \"./Components/NcAppNavigationItem.mjs\";\nimport x from \"./Components/NcAppNavigationNew.mjs\";\nimport C from \"./Components/NcAppNavigationNewItem.mjs\";\nimport k from \"./Components/NcAppNavigationSettings.mjs\";\nimport h from \"./Components/NcAppNavigationSpacer.mjs\";\nimport I from \"./Components/NcAppSettingsDialog.mjs\";\nimport y from \"./Components/NcAppSettingsSection.mjs\";\nimport P from \"./Components/NcAppSidebar.mjs\";\nimport B from \"./Components/NcAppSidebarTab.mjs\";\nimport { N as j } from \"./chunks/index-6c221fa0.mjs\";\nimport { u as or } from \"./chunks/index-6c221fa0.mjs\";\nimport R from \"./Components/NcBreadcrumb.mjs\";\nimport D from \"./Components/NcBreadcrumbs.mjs\";\nimport O from \"./Components/NcButton.mjs\";\nimport _ from \"./Components/NcCheckboxRadioSwitch.mjs\";\nimport E from \"./Components/NcColorPicker.mjs\";\nimport L from \"./Components/NcContent.mjs\";\nimport M from \"./Components/NcCounterBubble.mjs\";\nimport w from \"./Components/NcDashboardWidget.mjs\";\nimport F from \"./Components/NcDashboardWidgetItem.mjs\";\nimport z from \"./Components/NcDateTime.mjs\";\nimport G from \"./Components/NcDateTimePicker.mjs\";\nimport W from \"./Components/NcDateTimePickerNative.mjs\";\nimport H from \"./Components/NcEmojiPicker.mjs\";\nimport V from \"./Components/NcEmptyContent.mjs\";\nimport U from \"./Components/NcGuestContent.mjs\";\nimport $ from \"./Components/NcHeaderMenu.mjs\";\nimport { N as q } from \"./chunks/index-20a9ace9.mjs\";\nimport J from \"./Components/NcIconSvgWrapper.mjs\";\nimport K from \"./Components/NcListItem.mjs\";\nimport Q from \"./Components/NcListItemIcon.mjs\";\nimport X from \"./Components/NcLoadingIcon.mjs\";\nimport Y from \"./Components/NcModal.mjs\";\nimport Z from \"./Components/NcNoteCard.mjs\";\nimport oo from \"./Components/NcPasswordField.mjs\";\nimport to from \"./Components/NcPopover.mjs\";\nimport ro from \"./Components/NcProgressBar.mjs\";\nimport io from \"./Components/NcRelatedResourcesPanel.mjs\";\nimport { N as mo } from \"./chunks/index-5f2a5f57.mjs\";\nimport { r as rr } from \"./chunks/index-5f2a5f57.mjs\";\nimport eo, { NcAutoCompleteResult as po } from \"./Components/NcRichContenteditable.mjs\";\nimport { N as co } from \"./chunks/NcRichText-1c3d2654.mjs\";\nimport \"./chunks/referencePickerModal-0fde503d.mjs\";\nimport \"@nextcloud/axios\";\nimport \"@nextcloud/router\";\nimport fo from \"./Components/NcSelect.mjs\";\nimport \"./chunks/l10n-27a75c40.mjs\";\nimport \"vue-material-design-icons/LinkVariant.vue\";\nimport no from \"./Components/NcTextField.mjs\";\nimport \"vue-material-design-icons/DotsHorizontal.vue\";\nimport \"@nextcloud/event-bus\";\nimport \"vue-material-design-icons/ArrowLeft.vue\";\nimport \"vue-material-design-icons/Close.vue\";\nimport \"vue\";\nimport No from \"./Components/NcSavingIndicatorIcon.mjs\";\nimport ao from \"./Components/NcSelectTags.mjs\";\nimport so from \"./Components/NcSettingsInputText.mjs\";\nimport lo from \"./Components/NcSettingsSection.mjs\";\nimport { N as uo } from \"./chunks/NcSettingsSelectGroup-0f4a0f94.mjs\";\nimport Ao from \"./Components/NcTimezonePicker.mjs\";\nimport go from \"./Components/NcUserBubble.mjs\";\nimport { emojiAddRecent as mr, emojiSearch as er } from \"./Functions/emoji.mjs\";\nimport { default as cr } from \"./Functions/usernameToColor.mjs\";\nimport { directive as bo } from \"./Directives/Focus.mjs\";\nimport { directive as So } from \"./Directives/Linkify.mjs\";\nimport \"./Directives/Tooltip.mjs\";\nimport { default as nr } from \"./Mixins/clickOutsideOptions.mjs\";\nimport { default as ar } from \"./Mixins/isFullscreen.mjs\";\nimport { default as lr } from \"./Mixins/isMobile.mjs\";\nimport { VTooltip as vo } from \"floating-vue\";\nimport { VTooltip as dr } from \"floating-vue\";\n/**\n * @copyright Copyright (c) 2018 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nconst To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n NcActionButton: i,\n NcActionButtonGroup: m,\n NcActionCaption: e,\n NcActionCheckbox: p,\n NcActionInput: c,\n NcActionLink: f,\n NcActionRadio: n,\n NcActionRouter: N,\n NcActionSeparator: s,\n NcActionText: l,\n NcActionTextEditable: u,\n NcActions: a,\n NcAppContent: d,\n NcAppContentDetails: A,\n NcAppContentList: g,\n NcAppNavigation: b,\n NcAppNavigationCaption: S,\n NcAppNavigationIconBullet: v,\n NcAppNavigationItem: T,\n NcAppNavigationNew: x,\n NcAppNavigationNewItem: C,\n NcAppNavigationSettings: k,\n NcAppNavigationSpacer: h,\n NcAppSettingsDialog: I,\n NcAppSettingsSection: y,\n NcAppSidebar: P,\n NcAppSidebarTab: B,\n NcAutoCompleteResult: po,\n NcAvatar: j,\n NcBreadcrumb: R,\n NcBreadcrumbs: D,\n NcButton: O,\n NcCheckboxRadioSwitch: _,\n NcColorPicker: E,\n NcContent: L,\n NcCounterBubble: M,\n NcDashboardWidget: w,\n NcDashboardWidgetItem: F,\n NcDateTime: z,\n NcDateTimePicker: G,\n NcDateTimePickerNative: W,\n NcEmojiPicker: H,\n NcEmptyContent: V,\n NcGuestContent: U,\n NcHeaderMenu: $,\n NcHighlight: q,\n NcIconSvgWrapper: J,\n NcListItem: K,\n NcListItemIcon: Q,\n NcLoadingIcon: X,\n NcMentionBubble: mo,\n NcModal: Y,\n NcNoteCard: Z,\n NcPasswordField: oo,\n NcPopover: to,\n NcProgressBar: ro,\n NcRelatedResourcesPanel: io,\n NcRichContenteditable: eo,\n NcRichText: co,\n NcSavingIndicatorIcon: No,\n NcSelect: fo,\n NcSelectTags: ao,\n NcSettingsInputText: so,\n NcSettingsSection: lo,\n NcSettingsSelectGroup: uo,\n NcTextField: no,\n NcTimezonePicker: Ao,\n NcUserBubble: go\n}, Symbol.toStringTag, { value: \"Module\" }));\n/**\n * @copyright 2022 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nconst Qt = (o) => o.type === \"click\" || o.type === \"keydown\" && o.key === \"Enter\";\n/**\n * @copyright Copyright (c) 2018 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nconst xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n Focus: bo,\n Linkify: So,\n Tooltip: vo\n}, Symbol.toStringTag, { value: \"Module\" })), Xt = {\n install(o) {\n Object.entries(To).forEach(([r, t]) => {\n o.component(t.name || r, t);\n }), Object.entries(xo).forEach(([r, t]) => {\n o.directive(r, t);\n });\n }\n};\nexport {\n bo as Focus,\n So as Linkify,\n i as NcActionButton,\n m as NcActionButtonGroup,\n e as NcActionCaption,\n p as NcActionCheckbox,\n c as NcActionInput,\n f as NcActionLink,\n n as NcActionRadio,\n N as NcActionRouter,\n s as NcActionSeparator,\n l as NcActionText,\n u as NcActionTextEditable,\n a as NcActions,\n d as NcAppContent,\n A as NcAppContentDetails,\n g as NcAppContentList,\n b as NcAppNavigation,\n S as NcAppNavigationCaption,\n v as NcAppNavigationIconBullet,\n T as NcAppNavigationItem,\n x as NcAppNavigationNew,\n C as NcAppNavigationNewItem,\n k as NcAppNavigationSettings,\n h as NcAppNavigationSpacer,\n I as NcAppSettingsDialog,\n y as NcAppSettingsSection,\n P as NcAppSidebar,\n B as NcAppSidebarTab,\n po as NcAutoCompleteResult,\n j as NcAvatar,\n R as NcBreadcrumb,\n D as NcBreadcrumbs,\n O as NcButton,\n _ as NcCheckboxRadioSwitch,\n E as NcColorPicker,\n L as NcContent,\n M as NcCounterBubble,\n w as NcDashboardWidget,\n F as NcDashboardWidgetItem,\n z as NcDateTime,\n G as NcDateTimePicker,\n W as NcDateTimePickerNative,\n H as NcEmojiPicker,\n V as NcEmptyContent,\n U as NcGuestContent,\n $ as NcHeaderMenu,\n q as NcHighlight,\n J as NcIconSvgWrapper,\n K as NcListItem,\n Q as NcListItemIcon,\n X as NcLoadingIcon,\n mo as NcMentionBubble,\n Y as NcModal,\n Z as NcNoteCard,\n oo as NcPasswordField,\n to as NcPopover,\n ro as NcProgressBar,\n io as NcRelatedResourcesPanel,\n eo as NcRichContenteditable,\n co as NcRichText,\n No as NcSavingIndicatorIcon,\n fo as NcSelect,\n ao as NcSelectTags,\n so as NcSettingsInputText,\n lo as NcSettingsSection,\n uo as NcSettingsSelectGroup,\n no as NcTextField,\n Ao as NcTimezonePicker,\n go as NcUserBubble,\n Xt as NextcloudVuePlugin,\n dr as Tooltip,\n nr as clickOutsideOptions,\n mr as emojiAddRecent,\n er as emojiSearch,\n Qt as isA11yActivation,\n ar as isFullscreen,\n lr as isMobile,\n rr as richEditor,\n or as userStatus,\n cr as usernameToColor\n};\n"],"names":["g","e","i","t","l","n","s","c","u","r","a","options","render","staticRenderFns","_compiled","functional","_scopeId","f","this","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","d","k","C","beforeCreate","concat","exports","G","name","emits","props","title","type","String","fillColor","default","size","Number","_self","_c","_b","staticClass","attrs","role","on","click","$emit","$attrs","fill","width","height","viewBox","_v","_s","_e","xe","__name","callback","label","icon","setup","emit","__sfc","handleClick","NcButton","NcIconSvgWrapper","_setupProxy","scopedSlots","_u","key","fn","svg","tag","proxy","Ie","message","additionalTrapElements","container","buttons","navigationClasses","contentClasses","dialogClasses","value","navigation","enableSlideshow","enableSwipe","slots","wrapper","dialogWidth","isNavigationCollapsed","hasNavigation","open","handleClose","modalProps","NcModal","DialogButton","close","domProps","textContent","class","ref","_t","isCollapsed","_l","$e","Ue","K","Ge","showCheckbox","Boolean","fileListIconStyles","_m","R","nt","node","previewURL","cropPreview","mimeFallback","attributes","previewUrl","fileid","URL","window","location","origin","searchParams","set","Ke","Xe","File","document","createElement","src","href","onerror","remove","onload","body","appendChild","immediate","isFile","canLoadPreview","IconFile","IconFolder","style","backgroundImage","mime","ct","allowPickDirectory","selected","canPick","displayName","basename","slice","extension","length","Folder","fileExtension","isDirectory","isPickable","toggleSelected","handleKeyDown","formatFileSize","NcCheckboxRadioSwitch","NcDateTime","FilePreview","_g","tabindex","keydown","disabled","checked","nodename","stopPropagation","timestamp","mtime","mt","multiselect","loading","files","selectedFiles","path","ascending","o","p","w","descending","none","N","localeCompare","getTime","b","sort","F","filter","z","h","y","A","T","V","parentElement","children","E","clientHeight","P","isSameNode","Math","floor","addEventListener","removeEventListener","sortByName","sortBySize","sortByModified","ordering","byName","bySize","byDate","toggleSorting","toggleSortByName","toggleSortBySize","toggleSortByModified","sortedFiles","selectableFiles","allSelected","onSelectAll","onNodeSelected","includes","onChangeDirectory","skeletonNumber","fileContainer","IconSortAscending","IconSortDescending","LoadingTableRow","FileListRow","wide","staticStyle","yt","St","Lt","showMenu","trim","$el","querySelector","OC","config","blacklist_files_regex","match","setCustomValidity","split","map","join","newNodeName","nameInput","validateInput","onSubmit","pathElements","IconHome","IconPlus","NcActions","NcActionInput","NcBreadcrumbs","NcBreadcrumb","placeholder","submit","input","Dt","At","Ot","Xt","ei","currentView","filterString","id","allViews","currentViewObject","updateFilterValue","IconClose","IconMagnify","NcSelect","NcTextField","Fragment","clearable","searchable","gi","filterFn","mimetypeFilter","async","sessionStorage","getItem","get","setItem","isSupportedMimeType","some","ii","isLoading","loadFiles","getFile","client","L","round","Date","now","data","search","details","results","getDirectoryContents","stat","ti","B","toLowerCase","I","dialogProps","dialogButtons","viewHeadline","savedPath","navigatedPath","currentPath","filteredFiles","noFilesDescription","onCreateFolder","createDirectory","then","catch","DialogBase","FileList","FilePickerBreadcrumbs","FilePickerNavigation","NcEmptyContent","description","m","setApp","build","setUid","uid","vt","_entries","registerEntry","validateEntry","push","unregisterEntry","getEntryIndex","splice","warn","entry","entries","getEntries","if","findIndex","iconSvgInline","iconClass","handler","Error","templateName","_nc_newfilemenu","debug","O","Ze","log","min","pow","toFixed","parseFloat","toLocaleString","DEFAULT","HIDDEN","Qe","_action","constructor","validateAction","enabled","exec","execBatch","order","inline","renderInline","Object","values","_nc_fileactions","find","error","action","ri","_nc_filelistheader","v","NONE","CREATE","READ","UPDATE","DELETE","SHARE","ALL","W","Y","nc","oc","ocs","$","_nc_dav_properties","_nc_dav_namespaces","keys","oi","ai","xt","Z","source","startsWith","crtime","permissions","owner","root","status","J","NEW","FAILED","LOADING","LOCKED","Q","_data","_attributes","_knownDavService","updateMtime","Reflect","deleteProperty","Proxy","replace","encodedSource","dirname","indexOf","pathname","isDavRessource","pop","move","rename","bt","Et","super","tt","et","li","headers","requesttoken","patch","method","di","includeSelf","filename","Nt","parse","lastmod","parseInt","getcontentlength","hasPreview","_views","_currentView","register","views","setActive","active","ui","_nc_navigation","_column","Tt","summary","RegExp","isExist","isEmptyObject","merge","getValue","isName","getAllMatches","startIndex","lastIndex","nameRegexp","It","allowBooleanAttributes","unpairedTags","q","U","substr","validate","assign","err","substring","Vt","Ct","index","code","msg","line","tagClosed","tagName","tagStartPos","col","Ft","JSON","stringify","Pt","$t","hasOwnProperty","it","preserveOrder","attributeNamePrefix","attributesGroupName","textNodeName","ignoreAttributes","removeNSPrefix","parseTagValue","parseAttributeValue","trimValues","cdataPropName","numberParseOptions","hex","leadingZeros","eNotation","tagValueProcessor","attributeValueProcessor","stopNodes","alwaysCreateTextNode","isArray","commentPropName","processEntities","htmlEntities","ignoreDeclaration","ignorePiTags","transformTagName","transformAttributeName","updateTag","buildOptions","defaultOptions","jt","Bt","qt","Ut","zt","Gt","Ht","Wt","Yt","Zt","decimalPoint","j","tagname","child","addChild","ee","entityName","val","regx","entities","ie","skipLike","test","Qt","re","lastEntities","regex","se","replaceEntitiesValue","S","oe","charAt","ae","le","resolveNameSpace","de","x","saveTextToParentTag","lastIndexOf","tagsNodeStack","D","tagExp","attrExpPresent","buildAttributesMap","closeIndex","docTypeEntities","parseTextData","rawTagName","isItStopNode","readStopNodeData","tagContent","ue","ce","ampEntity","he","pe","fe","ge","rt","ve","ye","Array","prettify","be","Ee","currentNode","apos","gt","lt","quot","space","cent","pound","yen","euro","copyright","reg","inr","addExternalEntities","parseXml","Ne","st","Oe","Ce","ot","X","_","indentBy","suppressUnpairedNode","suppressEmptyNode","endsWith","suppressBooleanAttributes","Se","format","Fe","oneListGroup","isAttribute","attrPrefixLen","ke","processTextOrObjNode","indentate","Ve","tagEndChar","newLine","j2x","buildTextValNode","attrStr","buildObjectNode","repeat","prototype","arrayNodeName","buildAttrPairStr","closeTag","H","XMLParser","externalEntities","toString","addEntity","XMLValidator","XMLBuilder","ci","_view","qe","caption","emptyTitle","emptyCaption","getContents","params","columns","emptyView","sticky","expanded","defaultSortKey","TypeError","Be","forEach","hi","fi","required","subline","iconUrl","computed","avatarUrl","getAvatarUrl","haveStatus","methods","user","directives","tooltip","mixins","autoComplete","Function","menuContainer","Element","multiline","contenteditable","maxlength","emojiAutocomplete","linkAutocomplete","textSmiles","tribute","autocompleteOptions","allowSpaces","fillAttr","lookup","menuItemTemplate","renderComponentHtml","original","noMatchTemplate","selectTemplate","genSelectTemplate","debouncedAutoComplete","emojiOptions","trigger","native","short_name","unshift","containerClass","itemClass","linkOptions","icon_url","getLink","localValue","isComposing","isEmptyValue","isFF","navigator","userAgent","isOverMaxlength","tooltipString","content","count","shown","canEdit","listeners","$listeners","paste","watch","$refs","innerHTML","parseContent","updateContent","mounted","autocompleteTribute","attach","emojiTribute","linkTribute","contentEditable","beforeDestroy","detach","focus","getElementById","createTextNode","replaceWith","setCursorAfter","updateValue","console","createRange","setEndAfter","collapse","getSelection","removeAllRanges","addRange","onInput","target","onPaste","preventDefault","clipboardData","items","getData","rangeCount","getRangeAt","deleteFromDocument","insertNode","setStart","endOffset","renderContent","onDelete","commonAncestorContainer","nodeType","startOffset","anchorNode","selectNodeContents","setEndBefore","anchorOffset","setEnd","cloneContents","lastChild","deleteContents","onEnter","isActive","onCtrlEnter","onKeyUp","stopImmediatePropagation","rawName","expression","compositionstart","compositionend","_k","keyCode","apply","arguments","ctrlKey","shiftKey","altKey","metaKey","components","NcReferenceWidget","text","referenceData","limit","references","isVisible","displayedReferences","firstReference","fetch","resolve","encodeURIComponent","post","openGraphObject","reference","rel","M","autolink","useMarkdown","url","flat","component","NcReferenceList","referenceLimit","markdownCssClasses","ol","ul","strong","em","h1","h2","h3","h4","h5","h6","hr","table","pre","blockquote","renderPlaintext","context","renderMarkdown","use","handlers","prefix","processSync","result","Symbol","toStringTag"],"sourceRoot":""}