summaryrefslogtreecommitdiffstats
path: root/dist/files_trashbin-init.js.map
blob: 07041a95e25434bccb69c9c5d7a758ef8542048a (plain)
1
{"version":3,"file":"files_trashbin-init.js?v=d88db61bd8f45cbd5277","mappings":"uBAAIA,ECAAC,EACAC,E,qICUG,MAAMC,EAAmB,IAAIC,EAAAA,GAAO,CACvCC,GAAI,oCACJC,OAAOC,EAAAA,EAAAA,IAAE,iBAAkB,qBAC3BC,MAAAA,CAAOC,GACH,MAAMN,EAAmBO,EAAsBD,GACzCE,EAAOC,SAASC,cAAc,QAGpC,OAFAF,EAAKL,MAAQH,EACbQ,EAAKG,YAAcX,EACZQ,CACX,EACAI,IAAAA,CAAKC,EAAOC,GACR,MAAMC,EAAYR,EAAsBM,GAClCG,EAAYT,EAAsBO,GACxC,OAAOC,EAAUE,cAAcD,EAAW,EAACE,EAAAA,EAAAA,OAAeC,EAAAA,EAAAA,OAAuB,CAAEC,SAAS,EAAMC,MAAO,QAC7G,IAESC,EAAY,IAAIrB,EAAAA,GAAO,CAChCC,GAAI,6BACJC,OAAOC,EAAAA,EAAAA,IAAE,iBAAkB,cAC3BC,MAAAA,CAAOC,GACH,MAAM,OAAEiB,EAAM,YAAEC,EAAW,MAAEC,GAAUC,EAAepB,GACtD,GAAImB,EAAO,CACP,MAAMjB,EAAOC,SAASC,cAAc,QAEpC,OADAF,EAAKG,YAAcc,EACZjB,CACX,CAQA,OADmB,IANAmB,EAAAA,GAAIC,OAAOC,EAAAA,GAMX,CAAe,CAAEC,UALlB,CACdC,KAAM,GACNC,KAAMT,QAAUU,EAChBT,YAAaA,GAAeD,KAEiBW,SAASC,GAE9D,EACAvB,IAAAA,CAAKC,EAAOC,GACR,MAAMsB,EAAaV,EAAeb,GAC5BwB,EAAkBD,EAAWX,OAASW,EAAWZ,aAAeY,EAAWb,OAC3Ee,EAAaZ,EAAeZ,GAC5ByB,EAAkBD,EAAWb,OAASa,EAAWd,aAAec,EAAWf,OAEjF,OAAOc,EAAgBpB,cAAcs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ack/runtime/load script","webpack:///nextcloud/apps/files_trashbin/src/files_views/columns.ts","webpack:///nextcloud/apps/files_trashbin/src/services/client.ts","webpack:///nextcloud/apps/files_trashbin/src/services/trashbin.ts","webpack:///nextcloud/apps/files_trashbin/src/files_views/trashbinView.ts","webpack:///nextcloud/apps/files/src/logger.ts","webpack:///nextcloud/apps/files_trashbin/src/files_actions/restoreAction.ts","webpack:///nextcloud/apps/files_trashbin/src/logger.ts","webpack:///nextcloud/apps/files_trashbin/src/files_listActions/emptyTrashAction.ts","webpack:///nextcloud/apps/files_trashbin/src/services/api.ts","webpack://nextcloud/./apps/files_trashbin/src/trashbin.scss?8b2e","webpack:///nextcloud/apps/files_trashbin/src/files-init.ts","webpack:///nextcloud/apps/files_trashbin/src/trashbin.scss","webpack:///nextcloud/node_modules/@nextcloud/files/dist/index.mjs","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/ensure chunk","webpack:///nextcloud/webpack/runtime/get javascript chunk filename","webpack:///nextcloud/webpack/runtime/global","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/publicPath","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"nextcloud:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport moment from '@nextcloud/moment';\nimport { getCurrentUser } from '@nextcloud/auth';\nimport { Column, Node } from '@nextcloud/files';\nimport { getCanonicalLocale, getLanguage, translate as t } from '@nextcloud/l10n';\nimport { dirname } from '@nextcloud/paths';\nimport Vue from 'vue';\nimport NcUserBubble from '@nextcloud/vue/dist/Components/NcUserBubble.js';\nexport const originalLocation = new Column({\n    id: 'files_trashbin--original-location',\n    title: t('files_trashbin', 'Original location'),\n    render(node) {\n        const originalLocation = parseOriginalLocation(node);\n        const span = document.createElement('span');\n        span.title = originalLocation;\n        span.textContent = originalLocation;\n        return span;\n    },\n    sort(nodeA, nodeB) {\n        const locationA = parseOriginalLocation(nodeA);\n        const locationB = parseOriginalLocation(nodeB);\n        return locationA.localeCompare(locationB, [getLanguage(), getCanonicalLocale()], { numeric: true, usage: 'sort' });\n    },\n});\nexport const deletedBy = new Column({\n    id: 'files_trashbin--deleted-by',\n    title: t('files_trashbin', 'Deleted by'),\n    render(node) {\n        const { userId, displayName, label } = parseDeletedBy(node);\n        if (label) {\n            const span = document.createElement('span');\n            span.textContent = label;\n            return span;\n        }\n        const UserBubble = Vue.extend(NcUserBubble);\n        const propsData = {\n            size: 32,\n            user: userId ?? undefined,\n            displayName: displayName ?? userId,\n        };\n        const userBubble = new UserBubble({ propsData }).$mount().$el;\n        return userBubble;\n    },\n    sort(nodeA, nodeB) {\n        const deletedByA = parseDeletedBy(nodeA);\n        const deletedbyALabel = deletedByA.label ?? deletedByA.displayName ?? deletedByA.userId;\n        const deletedByB = parseDeletedBy(nodeB);\n        const deletedByBLabel = deletedByB.label ?? deletedByB.displayName ?? deletedByB.userId;\n        // label is set if uid and display name are unset - if label is unset at least uid or display name is set.\n        return deletedbyALabel.localeCompare(deletedByBLabel, [getLanguage(), getCanonicalLocale()], { numeric: true, usage: 'sort' });\n    },\n});\nexport const deleted = new Column({\n    id: 'files_trashbin--deleted',\n    title: t('files_trashbin', 'Deleted'),\n    render(node) {\n        const deletionTime = node.attributes?.['trashbin-deletion-time'] || ((node?.mtime?.getTime() ?? 0) / 1000);\n        const span = document.createElement('span');\n        if (deletionTime) {\n            span.title = moment.unix(deletionTime).format('LLL');\n            span.textContent = moment.unix(deletionTime).fromNow();\n            return span;\n        }\n        // Unknown deletion time\n        span.textContent = t('files_trashbin', 'A long time ago');\n        return span;\n    },\n    sort(nodeA, nodeB) {\n        // deletion time is a unix timestamp while mtime is a JS Date -> we need to align the numbers (seconds vs milliseconds)\n        const deletionTimeA = nodeA.attributes?.['trashbin-deletion-time'] || ((nodeA?.mtime?.getTime() ?? 0) / 1000);\n        const deletionTimeB = nodeB.attributes?.['trashbin-deletion-time'] || ((nodeB?.mtime?.getTime() ?? 0) / 1000);\n        return deletionTimeB - deletionTimeA;\n    },\n});\n/**\n * Get the original file location of a trashbin file.\n *\n * @param node The node to parse\n */\nfunction parseOriginalLocation(node) {\n    const path = stringOrNull(node.attributes?.['trashbin-original-location']);\n    if (!path) {\n        return t('files_trashbin', 'Unknown');\n    }\n    const dir = dirname(path);\n    if (dir === path) { // Node is in root folder\n        return t('files_trashbin', 'All files');\n    }\n    return dir.replace(/^\\//, '');\n}\n/**\n * Parse a trashbin file to get information about the user that deleted the file.\n *\n * @param node The node to parse\n */\nfunction parseDeletedBy(node) {\n    const userId = stringOrNull(node.attributes?.['trashbin-deleted-by-id']);\n    const displayName = stringOrNull(node.attributes?.['trashbin-deleted-by-display-name']);\n    let label;\n    const currentUserId = getCurrentUser()?.uid;\n    if (userId === currentUserId) {\n        label = t('files_trashbin', 'You');\n    }\n    if (!userId && !displayName) {\n        label = t('files_trashbin', 'Unknown');\n    }\n    return {\n        userId,\n        displayName,\n        label,\n    };\n}\n/**\n * If the attribute is given it will be stringified and returned - otherwise null is returned.\n *\n * @param attribute The attribute to check\n */\nfunction stringOrNull(attribute) {\n    if (attribute) {\n        return String(attribute);\n    }\n    return null;\n}\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getCurrentUser } from '@nextcloud/auth';\nimport { davGetClient } from '@nextcloud/files';\n// init webdav client\nexport const rootPath = `/trashbin/${getCurrentUser()?.uid}/trash`;\nexport const client = davGetClient();\n","import { File, Folder, davResultToNode, getDavNameSpaces, getDavProperties } from '@nextcloud/files';\nimport { client, rootPath } from './client';\nimport { generateUrl } from '@nextcloud/router';\nconst data = `<?xml version=\"1.0\"?>\n<d:propfind ${getDavNameSpaces()}>\n\t<d:prop>\n\t\t<nc:trashbin-deletion-time />\n\t\t<nc:trashbin-original-location />\n\t\t<nc:trashbin-title />\n\t\t<nc:trashbin-deleted-by-id />\n\t\t<nc:trashbin-deleted-by-display-name />\n\t\t${getDavProperties()}\n\t</d:prop>\n</d:propfind>`;\nconst resultToNode = (stat) => {\n    const node = davResultToNode(stat, rootPath);\n    node.attributes.previewUrl = generateUrl('/apps/files_trashbin/preview?fileId={fileid}&x=32&y=32', { fileid: node.fileid });\n    return node;\n};\nexport const getContents = async (path = '/') => {\n    const contentsResponse = await client.getDirectoryContents(`${rootPath}${path}`, {\n        details: true,\n        data,\n        includeSelf: true,\n    });\n    const contents = contentsResponse.data.map(resultToNode);\n    const [folder] = contents.splice(contents.findIndex((node) => node.path === path), 1);\n    return {\n        folder: folder,\n        contents,\n    };\n};\n","/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { View } from '@nextcloud/files';\nimport { t } from '@nextcloud/l10n';\nimport { deleted, deletedBy, originalLocation } from './columns.ts';\nimport { getContents } from '../services/trashbin.ts';\nimport svgDelete from '@mdi/svg/svg/delete.svg?raw';\nexport const TRASHBIN_VIEW_ID = 'trashbin';\nexport const trashbinView = new View({\n    id: TRASHBIN_VIEW_ID,\n    name: t('files_trashbin', 'Deleted files'),\n    caption: t('files_trashbin', 'List of files that have been deleted.'),\n    emptyTitle: t('files_trashbin', 'No deleted files'),\n    emptyCaption: t('files_trashbin', 'Files and folders you have deleted will show up here'),\n    icon: svgDelete,\n    order: 50,\n    sticky: true,\n    defaultSortKey: 'deleted',\n    columns: [\n        originalLocation,\n        deletedBy,\n        deleted,\n    ],\n    getContents,\n});\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport default getLoggerBuilder()\n    .setApp('files')\n    .detectUser()\n    .build();\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getCurrentUser } from '@nextcloud/auth';\nimport { emit } from '@nextcloud/event-bus';\nimport { Permission, Node, View, FileAction } from '@nextcloud/files';\nimport { t } from '@nextcloud/l10n';\nimport { encodePath } from '@nextcloud/paths';\nimport { generateRemoteUrl } from '@nextcloud/router';\nimport axios from '@nextcloud/axios';\nimport svgHistory from '@mdi/svg/svg/history.svg?raw';\nimport { TRASHBIN_VIEW_ID } from '../files_views/trashbinView.ts';\nimport logger from '../../../files/src/logger.ts';\nexport const restoreAction = new FileAction({\n    id: 'restore',\n    displayName() {\n        return t('files_trashbin', 'Restore');\n    },\n    iconSvgInline: () => svgHistory,\n    enabled(nodes, view) {\n        // Only available in the trashbin view\n        if (view.id !== TRASHBIN_VIEW_ID) {\n            return false;\n        }\n        // Only available if all nodes have read permission\n        return nodes.length > 0\n            && nodes\n                .map((node) => node.permissions)\n                .every((permission) => Boolean(permission & Permission.READ));\n    },\n    async exec(node) {\n        try {\n            const destination = generateRemoteUrl(encodePath(`dav/trashbin/${getCurrentUser().uid}/restore/${node.basename}`));\n            await axios.request({\n                method: 'MOVE',\n                url: node.encodedSource,\n                headers: {\n                    destination,\n                },\n            });\n            // Let's pretend the file is deleted since\n            // we don't know the restored location\n            emit('files:node:deleted', node);\n            return true;\n        }\n        catch (error) {\n            logger.error('Failed to restore node', { error, node });\n            return false;\n        }\n    },\n    async execBatch(nodes, view, dir) {\n        return Promise.all(nodes.map(node => this.exec(node, view, dir)));\n    },\n    order: 1,\n    inline: () => true,\n});\n","/**\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport const logger = getLoggerBuilder()\n    .setApp('files_trashbin')\n    .detectUser()\n    .build();\n","import { emit } from '@nextcloud/event-bus';\nimport { FileListAction } from '@nextcloud/files';\nimport { loadState } from '@nextcloud/initial-state';\nimport { t } from '@nextcloud/l10n';\nimport { DialogSeverity, getDialogBuilder, showInfo, } from '@nextcloud/dialogs';\nimport { emptyTrash } from '../services/api.ts';\nimport { TRASHBIN_VIEW_ID } from '../files_views/trashbinView.ts';\nexport const emptyTrashAction = new FileListAction({\n    id: 'empty-trash',\n    displayName: () => t('files_trashbin', 'Empty deleted files'),\n    order: 0,\n    enabled(view, nodes, folder) {\n        if (view.id !== TRASHBIN_VIEW_ID) {\n            return false;\n        }\n        const config = loadState('files_trashbin', 'config');\n        if (!config.allow_delete) {\n            return false;\n        }\n        return nodes.length > 0 && folder.path === '/';\n    },\n    async exec(view, nodes) {\n        const askConfirmation = new Promise((resolve) => {\n            const dialog = getDialogBuilder(t('files_trashbin', 'Confirm permanent deletion'))\n                .setSeverity(DialogSeverity.Warning)\n                // TODO Add note for groupfolders\n                .setText(t('files_trashbin', 'Are you sure you want to permanently delete all files and folders in the trash? This cannot be undone.'))\n                .setButtons([\n                {\n                    label: t('files_trashbin', 'Cancel'),\n                    type: 'secondary',\n                    callback: () => resolve(false),\n                },\n                {\n                    label: t('files_trashbin', 'Empty deleted files'),\n                    type: 'error',\n                    callback: () => resolve(true),\n                },\n            ])\n                .build();\n            dialog.show().then(() => {\n                resolve(false);\n            });\n        });\n        const result = await askConfirmation;\n        if (result === true) {\n            if (await emptyTrash()) {\n                nodes.forEach((node) => emit('files:node:deleted', node));\n            }\n            return null;\n        }\n        showInfo(t('files_trashbin', 'Deletion cancelled'));\n        return null;\n    },\n});\n","/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getCurrentUser } from '@nextcloud/auth';\nimport { showError, showSuccess } from '@nextcloud/dialogs';\nimport { defaultRemoteURL } from '@nextcloud/files/dav';\nimport { t } from '@nextcloud/l10n';\nimport axios from '@nextcloud/axios';\nimport { logger } from '../logger.ts';\n/**\n * Send API request to empty the trashbin.\n * Returns true if request succeeded - otherwise false is returned.\n */\nexport async function emptyTrash() {\n    try {\n        await axios.delete(`${defaultRemoteURL}/trashbin/${getCurrentUser().uid}/trash`);\n        showSuccess(t('files_trashbin', 'All files have been permanently deleted'));\n        return true;\n    }\n    catch (error) {\n        showError(t('files_trashbin', 'Failed to empty deleted files'));\n        logger.error('Failed to empty deleted files', { error });\n        return false;\n    }\n}\n","\n      import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./trashbin.scss\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./trashbin.scss\";\n       export default content && content.locals ? content.locals : undefined;\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nimport { getNavigation, registerFileAction, registerFileListAction } from '@nextcloud/files';\nimport { restoreAction } from './files_actions/restoreAction.ts';\nimport { emptyTrashAction } from './files_listActions/emptyTrashAction.ts';\nimport { trashbinView } from './files_views/trashbinView.ts';\nimport './trashbin.scss';\nconst Navigation = getNavigation();\nNavigation.register(trashbinView);\nregisterFileListAction(emptyTrashAction);\nregisterFileAction(restoreAction);\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/*!\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */.files-list__row-trashbin-original-location{width:150px !important}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files_trashbin/src/trashbin.scss\"],\"names\":[],\"mappings\":\"AAAA;;;EAAA,CAIA,4CACE,sBAAA\",\"sourcesContent\":[\"/*!\\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\\n * SPDX-License-Identifier: AGPL-3.0-or-later\\n */\\n.files-list__row-trashbin-original-location {\\n  width: 150px !important;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import { o as logger } from \"./chunks/dav-Co9y-hkg.mjs\";\nimport { q, F, s, N, t, P, c, l, m, n, a, g, p, b, r, d, h, f, k, j, e, i } from \"./chunks/dav-Co9y-hkg.mjs\";\nimport { getCapabilities } from \"@nextcloud/capabilities\";\nimport { extname, basename } from \"path\";\nimport { getCanonicalLocale, getLanguage } from \"@nextcloud/l10n\";\nimport { TypedEventTarget } from \"typescript-event-target\";\nvar NewMenuEntryCategory = /* @__PURE__ */ ((NewMenuEntryCategory2) => {\n  NewMenuEntryCategory2[NewMenuEntryCategory2[\"UploadFromDevice\"] = 0] = \"UploadFromDevice\";\n  NewMenuEntryCategory2[NewMenuEntryCategory2[\"CreateNew\"] = 1] = \"CreateNew\";\n  NewMenuEntryCategory2[NewMenuEntryCategory2[\"Other\"] = 2] = \"Other\";\n  return NewMenuEntryCategory2;\n})(NewMenuEntryCategory || {});\nclass NewFileMenu {\n  _entries = [];\n  registerEntry(entry) {\n    this.validateEntry(entry);\n    entry.category = entry.category ?? 1;\n    this._entries.push(entry);\n  }\n  unregisterEntry(entry) {\n    const entryIndex = typeof entry === \"string\" ? this.getEntryIndex(entry) : this.getEntryIndex(entry.id);\n    if (entryIndex === -1) {\n      logger.warn(\"Entry not found, nothing removed\", { entry, entries: this.getEntries() });\n      return;\n    }\n    this._entries.splice(entryIndex, 1);\n  }\n  /**\n   * Get the list of registered entries\n   *\n   * @param {Folder} context the creation context. Usually the current folder\n   */\n  getEntries(context) {\n    if (context) {\n      return this._entries.filter((entry) => typeof entry.enabled === \"function\" ? entry.enabled(context) : true);\n    }\n    return this._entries;\n  }\n  getEntryIndex(id) {\n    return this._entries.findIndex((entry) => entry.id === id);\n  }\n  validateEntry(entry) {\n    if (!entry.id || !entry.displayName || !(entry.iconSvgInline || entry.iconClass) || !entry.handler) {\n      throw new Error(\"Invalid entry\");\n    }\n    if (typeof entry.id !== \"string\" || typeof entry.displayName !== \"string\") {\n      throw new Error(\"Invalid id or displayName property\");\n    }\n    if (entry.iconClass && typeof entry.iconClass !== \"string\" || entry.iconSvgInline && typeof entry.iconSvgInline !== \"string\") {\n      throw new Error(\"Invalid icon provided\");\n    }\n    if (entry.enabled !== void 0 && typeof entry.enabled !== \"function\") {\n      throw new Error(\"Invalid enabled property\");\n    }\n    if (typeof entry.handler !== \"function\") {\n      throw new Error(\"Invalid handler property\");\n    }\n    if (\"order\" in entry && typeof entry.order !== \"number\") {\n      throw new Error(\"Invalid order property\");\n    }\n    if (this.getEntryIndex(entry.id) !== -1) {\n      throw new Error(\"Duplicate entry\");\n    }\n  }\n}\nconst getNewFileMenu = function() {\n  if (typeof window._nc_newfilemenu === \"undefined\") {\n    window._nc_newfilemenu = new NewFileMenu();\n    logger.debug(\"NewFileMenu initialized\");\n  }\n  return window._nc_newfilemenu;\n};\nvar DefaultType = /* @__PURE__ */ ((DefaultType2) => {\n  DefaultType2[\"DEFAULT\"] = \"default\";\n  DefaultType2[\"HIDDEN\"] = \"hidden\";\n  return DefaultType2;\n})(DefaultType || {});\nclass FileAction {\n  _action;\n  constructor(action) {\n    this.validateAction(action);\n    this._action = action;\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 parent() {\n    return this._action.parent;\n  }\n  get default() {\n    return this._action.default;\n  }\n  get destructive() {\n    return this._action.destructive;\n  }\n  get inline() {\n    return this._action.inline;\n  }\n  get renderInline() {\n    return this._action.renderInline;\n  }\n  validateAction(action) {\n    if (!action.id || typeof action.id !== \"string\") {\n      throw new Error(\"Invalid id\");\n    }\n    if (!action.displayName || typeof action.displayName !== \"function\") {\n      throw new Error(\"Invalid displayName function\");\n    }\n    if (\"title\" in action && typeof action.title !== \"function\") {\n      throw new Error(\"Invalid title function\");\n    }\n    if (!action.iconSvgInline || typeof action.iconSvgInline !== \"function\") {\n      throw new Error(\"Invalid iconSvgInline function\");\n    }\n    if (!action.exec || typeof action.exec !== \"function\") {\n      throw new Error(\"Invalid exec function\");\n    }\n    if (\"enabled\" in action && typeof action.enabled !== \"function\") {\n      throw new Error(\"Invalid enabled function\");\n    }\n    if (\"execBatch\" in action && typeof action.execBatch !== \"function\") {\n      throw new Error(\"Invalid execBatch function\");\n    }\n    if (\"order\" in action && typeof action.order !== \"number\") {\n      throw new Error(\"Invalid order\");\n    }\n    if (action.destructive !== void 0 && typeof action.destructive !== \"boolean\") {\n      throw new Error(\"Invalid destructive flag\");\n    }\n    if (\"parent\" in action && typeof action.parent !== \"string\") {\n      throw new Error(\"Invalid parent\");\n    }\n    if (action.default && !Object.values(DefaultType).includes(action.default)) {\n      throw new Error(\"Invalid default\");\n    }\n    if (\"inline\" in action && typeof action.inline !== \"function\") {\n      throw new Error(\"Invalid inline function\");\n    }\n    if (\"renderInline\" in action && typeof action.renderInline !== \"function\") {\n      throw new Error(\"Invalid renderInline function\");\n    }\n  }\n}\nconst registerFileAction = function(action) {\n  if (typeof window._nc_fileactions === \"undefined\") {\n    window._nc_fileactions = [];\n    logger.debug(\"FileActions initialized\");\n  }\n  if (window._nc_fileactions.find((search) => search.id === action.id)) {\n    logger.error(`FileAction ${action.id} already registered`, { action });\n    return;\n  }\n  window._nc_fileactions.push(action);\n};\nconst getFileActions = function() {\n  if (typeof window._nc_fileactions === \"undefined\") {\n    window._nc_fileactions = [];\n    logger.debug(\"FileActions initialized\");\n  }\n  return window._nc_fileactions;\n};\nclass FileListAction {\n  _action;\n  constructor(action) {\n    this.validateAction(action);\n    this._action = action;\n  }\n  get id() {\n    return this._action.id;\n  }\n  get displayName() {\n    return this._action.displayName;\n  }\n  get iconSvgInline() {\n    return this._action.iconSvgInline;\n  }\n  get order() {\n    return this._action.order;\n  }\n  get enabled() {\n    return this._action.enabled;\n  }\n  get exec() {\n    return this._action.exec;\n  }\n  validateAction(action) {\n    if (!action.id || typeof action.id !== \"string\") {\n      throw new Error(\"Invalid id\");\n    }\n    if (!action.displayName || typeof action.displayName !== \"function\") {\n      throw new Error(\"Invalid displayName function\");\n    }\n    if (\"iconSvgInline\" in action && typeof action.iconSvgInline !== \"function\") {\n      throw new Error(\"Invalid iconSvgInline function\");\n    }\n    if (\"order\" in action && typeof action.order !== \"number\") {\n      throw new Error(\"Invalid order\");\n    }\n    if (\"enabled\" in action && typeof action.enabled !== \"function\") {\n      throw new Error(\"Invalid enabled function\");\n    }\n    if (!action.exec || typeof action.exec !== \"function\") {\n      throw new Error(\"Invalid exec function\");\n    }\n  }\n}\nconst registerFileListAction = (action) => {\n  if (typeof window._nc_filelistactions === \"undefined\") {\n    window._nc_filelistactions = [];\n  }\n  if (window._nc_filelistactions.find((listAction) => listAction.id === action.id)) {\n    logger.error(`FileListAction with id \"${action.id}\" is already registered`, { action });\n    return;\n  }\n  window._nc_filelistactions.push(action);\n};\nconst getFileListActions = () => {\n  if (typeof window._nc_filelistactions === \"undefined\") {\n    window._nc_filelistactions = [];\n  }\n  return window._nc_filelistactions;\n};\nclass Header {\n  _header;\n  constructor(header) {\n    this.validateHeader(header);\n    this._header = header;\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(header) {\n    if (!header.id || !header.render || !header.updated) {\n      throw new Error(\"Invalid header: id, render and updated are required\");\n    }\n    if (typeof header.id !== \"string\") {\n      throw new Error(\"Invalid id property\");\n    }\n    if (header.enabled !== void 0 && typeof header.enabled !== \"function\") {\n      throw new Error(\"Invalid enabled property\");\n    }\n    if (header.render && typeof header.render !== \"function\") {\n      throw new Error(\"Invalid render property\");\n    }\n    if (header.updated && typeof header.updated !== \"function\") {\n      throw new Error(\"Invalid updated property\");\n    }\n  }\n}\nconst registerFileListHeaders = function(header) {\n  if (typeof window._nc_filelistheader === \"undefined\") {\n    window._nc_filelistheader = [];\n    logger.debug(\"FileListHeaders initialized\");\n  }\n  if (window._nc_filelistheader.find((search) => search.id === header.id)) {\n    logger.error(`Header ${header.id} already registered`, { header });\n    return;\n  }\n  window._nc_filelistheader.push(header);\n};\nconst getFileListHeaders = function() {\n  if (typeof window._nc_filelistheader === \"undefined\") {\n    window._nc_filelistheader = [];\n    logger.debug(\"FileListHeaders initialized\");\n  }\n  return window._nc_filelistheader;\n};\nvar InvalidFilenameErrorReason = /* @__PURE__ */ ((InvalidFilenameErrorReason2) => {\n  InvalidFilenameErrorReason2[\"ReservedName\"] = \"reserved name\";\n  InvalidFilenameErrorReason2[\"Character\"] = \"character\";\n  InvalidFilenameErrorReason2[\"Extension\"] = \"extension\";\n  return InvalidFilenameErrorReason2;\n})(InvalidFilenameErrorReason || {});\nclass InvalidFilenameError extends Error {\n  constructor(options) {\n    super(`Invalid ${options.reason} '${options.segment}' in filename '${options.filename}'`, { cause: options });\n  }\n  /**\n   * The filename that was validated\n   */\n  get filename() {\n    return this.cause.filename;\n  }\n  /**\n   * Reason why the validation failed\n   */\n  get reason() {\n    return this.cause.reason;\n  }\n  /**\n   * Part of the filename that caused this error\n   */\n  get segment() {\n    return this.cause.segment;\n  }\n}\nfunction validateFilename(filename) {\n  const capabilities = getCapabilities().files;\n  const forbiddenCharacters = capabilities.forbidden_filename_characters ?? window._oc_config?.forbidden_filenames_characters ?? [\"/\", \"\\\\\"];\n  for (const character of forbiddenCharacters) {\n    if (filename.includes(character)) {\n      throw new InvalidFilenameError({ segment: character, reason: \"character\", filename });\n    }\n  }\n  filename = filename.toLocaleLowerCase();\n  const forbiddenFilenames = capabilities.forbidden_filenames ?? [\".htaccess\"];\n  if (forbiddenFilenames.includes(filename)) {\n    throw new InvalidFilenameError({\n      filename,\n      segment: filename,\n      reason: \"reserved name\"\n      /* ReservedName */\n    });\n  }\n  const endOfBasename = filename.indexOf(\".\", 1);\n  const basename2 = filename.substring(0, endOfBasename === -1 ? void 0 : endOfBasename);\n  const forbiddenFilenameBasenames = capabilities.forbidden_filename_basenames ?? [];\n  if (forbiddenFilenameBasenames.includes(basename2)) {\n    throw new InvalidFilenameError({\n      filename,\n      segment: basename2,\n      reason: \"reserved name\"\n      /* ReservedName */\n    });\n  }\n  const forbiddenFilenameExtensions = capabilities.forbidden_filename_extensions ?? [\".part\", \".filepart\"];\n  for (const extension of forbiddenFilenameExtensions) {\n    if (filename.length > extension.length && filename.endsWith(extension)) {\n      throw new InvalidFilenameError({ segment: extension, reason: \"extension\", filename });\n    }\n  }\n}\nfunction isFilenameValid(filename) {\n  try {\n    validateFilename(filename);\n    return true;\n  } catch (error) {\n    if (error instanceof InvalidFilenameError) {\n      return false;\n    }\n    throw error;\n  }\n}\nfunction getUniqueName(name, otherNames, options) {\n  const opts = {\n    suffix: (n2) => `(${n2})`,\n    ignoreFileExtension: false,\n    ...options\n  };\n  let newName = name;\n  let i2 = 1;\n  while (otherNames.includes(newName)) {\n    const ext = opts.ignoreFileExtension ? \"\" : extname(name);\n    const base = basename(name, ext);\n    newName = `${base} ${opts.suffix(i2++)}${ext}`;\n  }\n  return newName;\n}\nconst humanList = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\"];\nconst humanListBinary = [\"B\", \"KiB\", \"MiB\", \"GiB\", \"TiB\", \"PiB\"];\nfunction formatFileSize(size, skipSmallSizes = false, binaryPrefixes = false, base1000 = false) {\n  binaryPrefixes = binaryPrefixes && !base1000;\n  if (typeof size === \"string\") {\n    size = Number(size);\n  }\n  let order = size > 0 ? Math.floor(Math.log(size) / Math.log(base1000 ? 1e3 : 1024)) : 0;\n  order = Math.min((binaryPrefixes ? humanListBinary.length : humanList.length) - 1, order);\n  const readableFormat = binaryPrefixes ? humanListBinary[order] : humanList[order];\n  let relativeSize = (size / Math.pow(base1000 ? 1e3 : 1024, order)).toFixed(1);\n  if (skipSmallSizes === true && order === 0) {\n    return (relativeSize !== \"0.0\" ? \"< 1 \" : \"0 \") + (binaryPrefixes ? humanListBinary[1] : humanList[1]);\n  }\n  if (order < 2) {\n    relativeSize = parseFloat(relativeSize).toFixed(0);\n  } else {\n    relativeSize = parseFloat(relativeSize).toLocaleString(getCanonicalLocale());\n  }\n  return relativeSize + \" \" + readableFormat;\n}\nfunction parseFileSize(value, forceBinary = false) {\n  try {\n    value = `${value}`.toLocaleLowerCase().replaceAll(/\\s+/g, \"\").replaceAll(\",\", \".\");\n  } catch (e2) {\n    return null;\n  }\n  const match = value.match(/^([0-9]*(\\.[0-9]*)?)([kmgtp]?)(i?)b?$/);\n  if (match === null || match[1] === \".\" || match[1] === \"\") {\n    return null;\n  }\n  const bytesArray = {\n    \"\": 0,\n    k: 1,\n    m: 2,\n    g: 3,\n    t: 4,\n    p: 5,\n    e: 6\n  };\n  const decimalString = `${match[1]}`;\n  const base = match[4] === \"i\" || forceBinary ? 1024 : 1e3;\n  return Math.round(Number.parseFloat(decimalString) * base ** bytesArray[match[3]]);\n}\nfunction stringify(value) {\n  if (value instanceof Date) {\n    return value.toISOString();\n  }\n  return String(value);\n}\nfunction orderBy(collection, identifiers2, orders) {\n  identifiers2 = identifiers2 ?? [(value) => value];\n  orders = orders ?? [];\n  const sorting = identifiers2.map((_, index) => (orders[index] ?? \"asc\") === \"asc\" ? 1 : -1);\n  const collator = Intl.Collator(\n    [getLanguage(), getCanonicalLocale()],\n    {\n      // handle 10 as ten and not as one-zero\n      numeric: true,\n      usage: \"sort\"\n    }\n  );\n  return [...collection].sort((a2, b2) => {\n    for (const [index, identifier] of identifiers2.entries()) {\n      const value = collator.compare(stringify(identifier(a2)), stringify(identifier(b2)));\n      if (value !== 0) {\n        return value * sorting[index];\n      }\n    }\n    return 0;\n  });\n}\nvar FilesSortingMode = /* @__PURE__ */ ((FilesSortingMode2) => {\n  FilesSortingMode2[\"Name\"] = \"basename\";\n  FilesSortingMode2[\"Modified\"] = \"mtime\";\n  FilesSortingMode2[\"Size\"] = \"size\";\n  return FilesSortingMode2;\n})(FilesSortingMode || {});\nfunction sortNodes(nodes, options = {}) {\n  const sortingOptions = {\n    // Default to sort by name\n    sortingMode: \"basename\",\n    // Default to sort ascending\n    sortingOrder: \"asc\",\n    ...options\n  };\n  const basename2 = (name) => name.lastIndexOf(\".\") > 0 ? name.slice(0, name.lastIndexOf(\".\")) : name;\n  const identifiers2 = [\n    // 1: Sort favorites first if enabled\n    ...sortingOptions.sortFavoritesFirst ? [(v) => v.attributes?.favorite !== 1] : [],\n    // 2: Sort folders first if sorting by name\n    ...sortingOptions.sortFoldersFirst ? [(v) => v.type !== \"folder\"] : [],\n    // 3: Use sorting mode if NOT basename (to be able to use display name too)\n    ...sortingOptions.sortingMode !== \"basename\" ? [(v) => v[sortingOptions.sortingMode]] : [],\n    // 4: Use display name if available, fallback to name\n    (v) => basename2(v.displayname || v.attributes?.displayname || v.basename),\n    // 5: Finally, use basename if all previous sorting methods failed\n    (v) => v.basename\n  ];\n  const orders = [\n    // (for 1): always sort favorites before normal files\n    ...sortingOptions.sortFavoritesFirst ? [\"asc\"] : [],\n    // (for 2): always sort folders before files\n    ...sortingOptions.sortFoldersFirst ? [\"asc\"] : [],\n    // (for 3): Reverse if sorting by mtime as mtime higher means edited more recent -> lower\n    ...sortingOptions.sortingMode === \"mtime\" ? [sortingOptions.sortingOrder === \"asc\" ? \"desc\" : \"asc\"] : [],\n    // (also for 3 so make sure not to conflict with 2 and 3)\n    ...sortingOptions.sortingMode !== \"mtime\" && sortingOptions.sortingMode !== \"basename\" ? [sortingOptions.sortingOrder] : [],\n    // for 4: use configured sorting direction\n    sortingOptions.sortingOrder,\n    // for 5: use configured sorting direction\n    sortingOptions.sortingOrder\n  ];\n  return orderBy(nodes, identifiers2, orders);\n}\nclass Navigation extends TypedEventTarget {\n  _views = [];\n  _currentView = null;\n  /**\n   * Register a new view on the navigation\n   * @param view The view to register\n   * @throws `Error` is thrown if a view with the same id is already registered\n   */\n  register(view) {\n    if (this._views.find((search) => search.id === view.id)) {\n      throw new Error(`View id ${view.id} is already registered`);\n    }\n    this._views.push(view);\n    this.dispatchTypedEvent(\"update\", new CustomEvent(\"update\"));\n  }\n  /**\n   * Remove a registered view\n   * @param id The id of the view to remove\n   */\n  remove(id) {\n    const index = this._views.findIndex((view) => view.id === id);\n    if (index !== -1) {\n      this._views.splice(index, 1);\n      this.dispatchTypedEvent(\"update\", new CustomEvent(\"update\"));\n    }\n  }\n  /**\n   * Set the currently active view\n   * @fires UpdateActiveViewEvent\n   * @param view New active view\n   */\n  setActive(view) {\n    this._currentView = view;\n    const event = new CustomEvent(\"updateActive\", { detail: view });\n    this.dispatchTypedEvent(\"updateActive\", event);\n  }\n  /**\n   * The currently active files view\n   */\n  get active() {\n    return this._currentView;\n  }\n  /**\n   * All registered views\n   */\n  get views() {\n    return this._views;\n  }\n}\nconst getNavigation = function() {\n  if (typeof window._nc_navigation === \"undefined\") {\n    window._nc_navigation = new Navigation();\n    logger.debug(\"Navigation service initialized\");\n  }\n  return window._nc_navigation;\n};\nclass Column {\n  _column;\n  constructor(column) {\n    isValidColumn(column);\n    this._column = column;\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 isValidColumn = function(column) {\n  if (!column.id || typeof column.id !== \"string\") {\n    throw new Error(\"A column id is required\");\n  }\n  if (!column.title || typeof column.title !== \"string\") {\n    throw new Error(\"A column title is required\");\n  }\n  if (!column.render || typeof column.render !== \"function\") {\n    throw new Error(\"A render function is required\");\n  }\n  if (column.sort && typeof column.sort !== \"function\") {\n    throw new Error(\"Column sortFunction must be a function\");\n  }\n  if (column.summary && typeof column.summary !== \"function\") {\n    throw new Error(\"Column summary must be a function\");\n  }\n  return true;\n};\nfunction getDefaultExportFromCjs(x) {\n  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, \"default\") ? x[\"default\"] : x;\n}\nvar validator = {};\nvar util = {};\nvar hasRequiredUtil;\nfunction requireUtil() {\n  if (hasRequiredUtil) return util;\n  hasRequiredUtil = 1;\n  (function(exports) {\n    const nameStartChar = \":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\";\n    const nameChar = nameStartChar + \"\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\n    const nameRegexp = \"[\" + nameStartChar + \"][\" + nameChar + \"]*\";\n    const regexName = new RegExp(\"^\" + nameRegexp + \"$\");\n    const getAllMatches = function(string, regex) {\n      const matches = [];\n      let match = regex.exec(string);\n      while (match) {\n        const allmatches = [];\n        allmatches.startIndex = regex.lastIndex - match[0].length;\n        const len = match.length;\n        for (let index = 0; index < len; index++) {\n          allmatches.push(match[index]);\n        }\n        matches.push(allmatches);\n        match = regex.exec(string);\n      }\n      return matches;\n    };\n    const isName = function(string) {\n      const match = regexName.exec(string);\n      return !(match === null || typeof match === \"undefined\");\n    };\n    exports.isExist = function(v) {\n      return typeof v !== \"undefined\";\n    };\n    exports.isEmptyObject = function(obj) {\n      return Object.keys(obj).length === 0;\n    };\n    exports.merge = function(target, a2, arrayMode) {\n      if (a2) {\n        const keys = Object.keys(a2);\n        const len = keys.length;\n        for (let i2 = 0; i2 < len; i2++) {\n          if (arrayMode === \"strict\") {\n            target[keys[i2]] = [a2[keys[i2]]];\n          } else {\n            target[keys[i2]] = a2[keys[i2]];\n          }\n        }\n      }\n    };\n    exports.getValue = function(v) {\n      if (exports.isExist(v)) {\n        return v;\n      } else {\n        return \"\";\n      }\n    };\n    exports.isName = isName;\n    exports.getAllMatches = getAllMatches;\n    exports.nameRegexp = nameRegexp;\n  })(util);\n  return util;\n}\nvar hasRequiredValidator;\nfunction requireValidator() {\n  if (hasRequiredValidator) return validator;\n  hasRequiredValidator = 1;\n  const util2 = requireUtil();\n  const defaultOptions = {\n    allowBooleanAttributes: false,\n    //A tag can have attributes without any value\n    unpairedTags: []\n  };\n  validator.validate = function(xmlData, options) {\n    options = Object.assign({}, defaultOptions, options);\n    const tags = [];\n    let tagFound = false;\n    let reachedRoot = false;\n    if (xmlData[0] === \"\\uFEFF\") {\n      xmlData = xmlData.substr(1);\n    }\n    for (let i2 = 0; i2 < xmlData.length; i2++) {\n      if (xmlData[i2] === \"<\" && xmlData[i2 + 1] === \"?\") {\n        i2 += 2;\n        i2 = readPI(xmlData, i2);\n        if (i2.err) return i2;\n      } else if (xmlData[i2] === \"<\") {\n        let tagStartPos = i2;\n        i2++;\n        if (xmlData[i2] === \"!\") {\n          i2 = readCommentAndCDATA(xmlData, i2);\n          continue;\n        } else {\n          let closingTag = false;\n          if (xmlData[i2] === \"/\") {\n            closingTag = true;\n            i2++;\n          }\n          let tagName = \"\";\n          for (; i2 < xmlData.length && xmlData[i2] !== \">\" && xmlData[i2] !== \" \" && xmlData[i2] !== \"\t\" && xmlData[i2] !== \"\\n\" && xmlData[i2] !== \"\\r\"; i2++) {\n            tagName += xmlData[i2];\n          }\n          tagName = tagName.trim();\n          if (tagName[tagName.length - 1] === \"/\") {\n            tagName = tagName.substring(0, tagName.length - 1);\n            i2--;\n          }\n          if (!validateTagName(tagName)) {\n            let msg;\n            if (tagName.trim().length === 0) {\n              msg = \"Invalid space after '<'.\";\n            } else {\n              msg = \"Tag '\" + tagName + \"' is an invalid name.\";\n            }\n            return getErrorObject(\"InvalidTag\", msg, getLineNumberForPosition(xmlData, i2));\n          }\n          const result = readAttributeStr(xmlData, i2);\n          if (result === false) {\n            return getErrorObject(\"InvalidAttr\", \"Attributes for '\" + tagName + \"' have open quote.\", getLineNumberForPosition(xmlData, i2));\n          }\n          let attrStr = result.value;\n          i2 = result.index;\n          if (attrStr[attrStr.length - 1] === \"/\") {\n            const attrStrStart = i2 - attrStr.length;\n            attrStr = attrStr.substring(0, attrStr.length - 1);\n            const isValid = validateAttributeString(attrStr, options);\n            if (isValid === true) {\n              tagFound = true;\n            } else {\n              return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));\n            }\n          } else if (closingTag) {\n            if (!result.tagClosed) {\n              return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' doesn't have proper closing.\", getLineNumberForPosition(xmlData, i2));\n            } else if (attrStr.trim().length > 0) {\n              return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' can't have attributes or invalid starting.\", getLineNumberForPosition(xmlData, tagStartPos));\n            } else if (tags.length === 0) {\n              return getErrorObject(\"InvalidTag\", \"Closing tag '\" + tagName + \"' has not been opened.\", getLineNumberForPosition(xmlData, tagStartPos));\n            } else {\n              const otg = tags.pop();\n              if (tagName !== otg.tagName) {\n                let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);\n                return getErrorObject(\n                  \"InvalidTag\",\n                  \"Expected closing tag '\" + otg.tagName + \"' (opened in line \" + openPos.line + \", col \" + openPos.col + \") instead of closing tag '\" + tagName + \"'.\",\n                  getLineNumberForPosition(xmlData, tagStartPos)\n                );\n              }\n              if (tags.length == 0) {\n                reachedRoot = true;\n              }\n            }\n          } else {\n            const isValid = validateAttributeString(attrStr, options);\n            if (isValid !== true) {\n              return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i2 - attrStr.length + isValid.err.line));\n            }\n            if (reachedRoot === true) {\n              return getErrorObject(\"InvalidXml\", \"Multiple possible root nodes found.\", getLineNumberForPosition(xmlData, i2));\n            } else if (options.unpairedTags.indexOf(tagName) !== -1) ;\n            else {\n              tags.push({ tagName, tagStartPos });\n            }\n            tagFound = true;\n          }\n          for (i2++; i2 < xmlData.length; i2++) {\n            if (xmlData[i2] === \"<\") {\n              if (xmlData[i2 + 1] === \"!\") {\n                i2++;\n                i2 = readCommentAndCDATA(xmlData, i2);\n                continue;\n              } else if (xmlData[i2 + 1] === \"?\") {\n                i2 = readPI(xmlData, ++i2);\n                if (i2.err) return i2;\n              } else {\n                break;\n              }\n            } else if (xmlData[i2] === \"&\") {\n              const afterAmp = validateAmpersand(xmlData, i2);\n              if (afterAmp == -1)\n                return getErrorObject(\"InvalidChar\", \"char '&' is not expected.\", getLineNumberForPosition(xmlData, i2));\n              i2 = afterAmp;\n            } else {\n              if (reachedRoot === true && !isWhiteSpace(xmlData[i2])) {\n                return getErrorObject(\"InvalidXml\", \"Extra text at the end\", getLineNumberForPosition(xmlData, i2));\n              }\n            }\n          }\n          if (xmlData[i2] === \"<\") {\n            i2--;\n          }\n        }\n      } else {\n        if (isWhiteSpace(xmlData[i2])) {\n          continue;\n        }\n        return getErrorObject(\"InvalidChar\", \"char '\" + xmlData[i2] + \"' is not expected.\", getLineNumberForPosition(xmlData, i2));\n      }\n    }\n    if (!tagFound) {\n      return getErrorObject(\"InvalidXml\", \"Start tag expected.\", 1);\n    } else if (tags.length == 1) {\n      return getErrorObject(\"InvalidTag\", \"Unclosed tag '\" + tags[0].tagName + \"'.\", getLineNumberForPosition(xmlData, tags[0].tagStartPos));\n    } else if (tags.length > 0) {\n      return getErrorObject(\"InvalidXml\", \"Invalid '\" + JSON.stringify(tags.map((t2) => t2.tagName), null, 4).replace(/\\r?\\n/g, \"\") + \"' found.\", { line: 1, col: 1 });\n    }\n    return true;\n  };\n  function isWhiteSpace(char) {\n    return char === \" \" || char === \"\t\" || char === \"\\n\" || char === \"\\r\";\n  }\n  function readPI(xmlData, i2) {\n    const start = i2;\n    for (; i2 < xmlData.length; i2++) {\n      if (xmlData[i2] == \"?\" || xmlData[i2] == \" \") {\n        const tagname = xmlData.substr(start, i2 - start);\n        if (i2 > 5 && tagname === \"xml\") {\n          return getErrorObject(\"InvalidXml\", \"XML declaration allowed only at the start of the document.\", getLineNumberForPosition(xmlData, i2));\n        } else if (xmlData[i2] == \"?\" && xmlData[i2 + 1] == \">\") {\n          i2++;\n          break;\n        } else {\n          continue;\n        }\n      }\n    }\n    return i2;\n  }\n  function readCommentAndCDATA(xmlData, i2) {\n    if (xmlData.length > i2 + 5 && xmlData[i2 + 1] === \"-\" && xmlData[i2 + 2] === \"-\") {\n      for (i2 += 3; i2 < xmlData.length; i2++) {\n        if (xmlData[i2] === \"-\" && xmlData[i2 + 1] === \"-\" && xmlData[i2 + 2] === \">\") {\n          i2 += 2;\n          break;\n        }\n      }\n    } else if (xmlData.length > i2 + 8 && xmlData[i2 + 1] === \"D\" && xmlData[i2 + 2] === \"O\" && xmlData[i2 + 3] === \"C\" && xmlData[i2 + 4] === \"T\" && xmlData[i2 + 5] === \"Y\" && xmlData[i2 + 6] === \"P\" && xmlData[i2 + 7] === \"E\") {\n      let angleBracketsCount = 1;\n      for (i2 += 8; i2 < xmlData.length; i2++) {\n        if (xmlData[i2] === \"<\") {\n          angleBracketsCount++;\n        } else if (xmlData[i2] === \">\") {\n          angleBracketsCount--;\n          if (angleBracketsCount === 0) {\n            break;\n          }\n        }\n      }\n    } else if (xmlData.length > i2 + 9 && xmlData[i2 + 1] === \"[\" && xmlData[i2 + 2] === \"C\" && xmlData[i2 + 3] === \"D\" && xmlData[i2 + 4] === \"A\" && xmlData[i2 + 5] === \"T\" && xmlData[i2 + 6] === \"A\" && xmlData[i2 + 7] === \"[\") {\n      for (i2 += 8; i2 < xmlData.length; i2++) {\n        if (xmlData[i2] === \"]\" && xmlData[i2 + 1] === \"]\" && xmlData[i2 + 2] === \">\") {\n          i2 += 2;\n          break;\n        }\n      }\n    }\n    return i2;\n  }\n  const doubleQuote = '\"';\n  const singleQuote = \"'\";\n  function readAttributeStr(xmlData, i2) {\n    let attrStr = \"\";\n    let startChar = \"\";\n    let tagClosed = false;\n    for (; i2 < xmlData.length; i2++) {\n      if (xmlData[i2] === doubleQuote || xmlData[i2] === singleQuote) {\n        if (startChar === \"\") {\n          startChar = xmlData[i2];\n        } else if (startChar !== xmlData[i2]) ;\n        else {\n          startChar = \"\";\n        }\n      } else if (xmlData[i2] === \">\") {\n        if (startChar === \"\") {\n          tagClosed = true;\n          break;\n        }\n      }\n      attrStr += xmlData[i2];\n    }\n    if (startChar !== \"\") {\n      return false;\n    }\n    return {\n      value: attrStr,\n      index: i2,\n      tagClosed\n    };\n  }\n  const validAttrStrRegxp = new RegExp(`(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*(['\"])(([\\\\s\\\\S])*?)\\\\5)?`, \"g\");\n  function validateAttributeString(attrStr, options) {\n    const matches = util2.getAllMatches(attrStr, validAttrStrRegxp);\n    const attrNames = {};\n    for (let i2 = 0; i2 < matches.length; i2++) {\n      if (matches[i2][1].length === 0) {\n        return getErrorObject(\"InvalidAttr\", \"Attribute '\" + matches[i2][2] + \"' has no space in starting.\", getPositionFromMatch(matches[i2]));\n      } else if (matches[i2][3] !== void 0 && matches[i2][4] === void 0) {\n        return getErrorObject(\"InvalidAttr\", \"Attribute '\" + matches[i2][2] + \"' is without value.\", getPositionFromMatch(matches[i2]));\n      } else if (matches[i2][3] === void 0 && !options.allowBooleanAttributes) {\n        return getErrorObject(\"InvalidAttr\", \"boolean attribute '\" + matches[i2][2] + \"' is not allowed.\", getPositionFromMatch(matches[i2]));\n      }\n      const attrName = matches[i2][2];\n      if (!validateAttrName(attrName)) {\n        return getErrorObject(\"InvalidAttr\", \"Attribute '\" + attrName + \"' is an invalid name.\", getPositionFromMatch(matches[i2]));\n      }\n      if (!attrNames.hasOwnProperty(attrName)) {\n        attrNames[attrName] = 1;\n      } else {\n        return getErrorObject(\"InvalidAttr\", \"Attribute '\" + attrName + \"' is repeated.\", getPositionFromMatch(matches[i2]));\n      }\n    }\n    return true;\n  }\n  function validateNumberAmpersand(xmlData, i2) {\n    let re2 = /\\d/;\n    if (xmlData[i2] === \"x\") {\n      i2++;\n      re2 = /[\\da-fA-F]/;\n    }\n    for (; i2 < xmlData.length; i2++) {\n      if (xmlData[i2] === \";\")\n        return i2;\n      if (!xmlData[i2].match(re2))\n        break;\n    }\n    return -1;\n  }\n  function validateAmpersand(xmlData, i2) {\n    i2++;\n    if (xmlData[i2] === \";\")\n      return -1;\n    if (xmlData[i2] === \"#\") {\n      i2++;\n      return validateNumberAmpersand(xmlData, i2);\n    }\n    let count = 0;\n    for (; i2 < xmlData.length; i2++, count++) {\n      if (xmlData[i2].match(/\\w/) && count < 20)\n        continue;\n      if (xmlData[i2] === \";\")\n        break;\n      return -1;\n    }\n    return i2;\n  }\n  function getErrorObject(code, message, lineNumber) {\n    return {\n      err: {\n        code,\n        msg: message,\n        line: lineNumber.line || lineNumber,\n        col: lineNumber.col\n      }\n    };\n  }\n  function validateAttrName(attrName) {\n    return util2.isName(attrName);\n  }\n  function validateTagName(tagname) {\n    return util2.isName(tagname);\n  }\n  function getLineNumberForPosition(xmlData, index) {\n    const lines = xmlData.substring(0, index).split(/\\r?\\n/);\n    return {\n      line: lines.length,\n      // column number is last line's length + 1, because column numbering starts at 1:\n      col: lines[lines.length - 1].length + 1\n    };\n  }\n  function getPositionFromMatch(match) {\n    return match.startIndex + match[1].length;\n  }\n  return validator;\n}\nvar OptionsBuilder = {};\nvar hasRequiredOptionsBuilder;\nfunction requireOptionsBuilder() {\n  if (hasRequiredOptionsBuilder) return OptionsBuilder;\n  hasRequiredOptionsBuilder = 1;\n  const defaultOptions = {\n    preserveOrder: false,\n    attributeNamePrefix: \"@_\",\n    attributesGroupName: false,\n    textNodeName: \"#text\",\n    ignoreAttributes: true,\n    removeNSPrefix: false,\n    // remove NS from tag name or attribute name if true\n    allowBooleanAttributes: false,\n    //a tag can have attributes without any value\n    //ignoreRootElement : false,\n    parseTagValue: true,\n    parseAttributeValue: false,\n    trimValues: true,\n    //Trim string values of tag and attributes\n    cdataPropName: false,\n    numberParseOptions: {\n      hex: true,\n      leadingZeros: true,\n      eNotation: true\n    },\n    tagValueProcessor: function(tagName, val) {\n      return val;\n    },\n    attributeValueProcessor: function(attrName, val) {\n      return val;\n    },\n    stopNodes: [],\n    //nested tags will not be parsed even for errors\n    alwaysCreateTextNode: false,\n    isArray: () => false,\n    commentPropName: false,\n    unpairedTags: [],\n    processEntities: true,\n    htmlEntities: false,\n    ignoreDeclaration: false,\n    ignorePiTags: false,\n    transformTagName: false,\n    transformAttributeName: false,\n    updateTag: function(tagName, jPath, attrs) {\n      return tagName;\n    }\n    // skipEmptyListItem: false\n  };\n  const buildOptions = function(options) {\n    return Object.assign({}, defaultOptions, options);\n  };\n  OptionsBuilder.buildOptions = buildOptions;\n  OptionsBuilder.defaultOptions = defaultOptions;\n  return OptionsBuilder;\n}\nvar xmlNode;\nvar hasRequiredXmlNode;\nfunction requireXmlNode() {\n  if (hasRequiredXmlNode) return xmlNode;\n  hasRequiredXmlNode = 1;\n  class XmlNode {\n    constructor(tagname) {\n      this.tagname = tagname;\n      this.child = [];\n      this[\":@\"] = {};\n    }\n    add(key, val) {\n      if (key === \"__proto__\") key = \"#__proto__\";\n      this.child.push({ [key]: val });\n    }\n    addChild(node) {\n      if (node.tagname === \"__proto__\") node.tagname = \"#__proto__\";\n      if (node[\":@\"] && Object.keys(node[\":@\"]).length > 0) {\n        this.child.push({ [node.tagname]: node.child, [\":@\"]: node[\":@\"] });\n      } else {\n        this.child.push({ [node.tagname]: node.child });\n      }\n    }\n  }\n  xmlNode = XmlNode;\n  return xmlNode;\n}\nvar DocTypeReader;\nvar hasRequiredDocTypeReader;\nfunction requireDocTypeReader() {\n  if (hasRequiredDocTypeReader) return DocTypeReader;\n  hasRequiredDocTypeReader = 1;\n  const util2 = requireUtil();\n  function readDocType(xmlData, i2) {\n    const entities = {};\n    if (xmlData[i2 + 3] === \"O\" && xmlData[i2 + 4] === \"C\" && xmlData[i2 + 5] === \"T\" && xmlData[i2 + 6] === \"Y\" && xmlData[i2 + 7] === \"P\" && xmlData[i2 + 8] === \"E\") {\n      i2 = i2 + 9;\n      let angleBracketsCount = 1;\n      let hasBody = false, comment = false;\n      let exp = \"\";\n      for (; i2 < xmlData.length; i2++) {\n        if (xmlData[i2] === \"<\" && !comment) {\n          if (hasBody && isEntity(xmlData, i2)) {\n            i2 += 7;\n            let entityName, val;\n            [entityName, val, i2] = readEntityExp(xmlData, i2 + 1);\n            if (val.indexOf(\"&\") === -1)\n              entities[validateEntityName(entityName)] = {\n                regx: RegExp(`&${entityName};`, \"g\"),\n                val\n              };\n          } else if (hasBody && isElement(xmlData, i2)) i2 += 8;\n          else if (hasBody && isAttlist(xmlData, i2)) i2 += 8;\n          else if (hasBody && isNotation(xmlData, i2)) i2 += 9;\n          else comment = true;\n          angleBracketsCount++;\n          exp = \"\";\n        } else if (xmlData[i2] === \">\") {\n          if (comment) {\n            if (xmlData[i2 - 1] === \"-\" && xmlData[i2 - 2] === \"-\") {\n              comment = false;\n              angleBracketsCount--;\n            }\n          } else {\n            angleBracketsCount--;\n          }\n          if (angleBracketsCount === 0) {\n            break;\n          }\n        } else if (xmlData[i2] === \"[\") {\n          hasBody = true;\n        } else {\n          exp += xmlData[i2];\n        }\n      }\n      if (angleBracketsCount !== 0) {\n        throw new Error(`Unclosed DOCTYPE`);\n      }\n    } else {\n      throw new Error(`Invalid Tag instead of DOCTYPE`);\n    }\n    return { entities, i: i2 };\n  }\n  function readEntityExp(xmlData, i2) {\n    let entityName = \"\";\n    for (; i2 < xmlData.length && (xmlData[i2] !== \"'\" && xmlData[i2] !== '\"'); i2++) {\n      entityName += xmlData[i2];\n    }\n    entityName = entityName.trim();\n    if (entityName.indexOf(\" \") !== -1) throw new Error(\"External entites are not supported\");\n    const startChar = xmlData[i2++];\n    let val = \"\";\n    for (; i2 < xmlData.length && xmlData[i2] !== startChar; i2++) {\n      val += xmlData[i2];\n    }\n    return [entityName, val, i2];\n  }\n  function isEntity(xmlData, i2) {\n    if (xmlData[i2 + 1] === \"!\" && xmlData[i2 + 2] === \"E\" && xmlData[i2 + 3] === \"N\" && xmlData[i2 + 4] === \"T\" && xmlData[i2 + 5] === \"I\" && xmlData[i2 + 6] === \"T\" && xmlData[i2 + 7] === \"Y\") return true;\n    return false;\n  }\n  function isElement(xmlData, i2) {\n    if (xmlData[i2 + 1] === \"!\" && xmlData[i2 + 2] === \"E\" && xmlData[i2 + 3] === \"L\" && xmlData[i2 + 4] === \"E\" && xmlData[i2 + 5] === \"M\" && xmlData[i2 + 6] === \"E\" && xmlData[i2 + 7] === \"N\" && xmlData[i2 + 8] === \"T\") return true;\n    return false;\n  }\n  function isAttlist(xmlData, i2) {\n    if (xmlData[i2 + 1] === \"!\" && xmlData[i2 + 2] === \"A\" && xmlData[i2 + 3] === \"T\" && xmlData[i2 + 4] === \"T\" && xmlData[i2 + 5] === \"L\" && xmlData[i2 + 6] === \"I\" && xmlData[i2 + 7] === \"S\" && xmlData[i2 + 8] === \"T\") return true;\n    return false;\n  }\n  function isNotation(xmlData, i2) {\n    if (xmlData[i2 + 1] === \"!\" && xmlData[i2 + 2] === \"N\" && xmlData[i2 + 3] === \"O\" && xmlData[i2 + 4] === \"T\" && xmlData[i2 + 5] === \"A\" && xmlData[i2 + 6] === \"T\" && xmlData[i2 + 7] === \"I\" && xmlData[i2 + 8] === \"O\" && xmlData[i2 + 9] === \"N\") return true;\n    return false;\n  }\n  function validateEntityName(name) {\n    if (util2.isName(name))\n      return name;\n    else\n      throw new Error(`Invalid entity name ${name}`);\n  }\n  DocTypeReader = readDocType;\n  return DocTypeReader;\n}\nvar strnum;\nvar hasRequiredStrnum;\nfunction requireStrnum() {\n  if (hasRequiredStrnum) return strnum;\n  hasRequiredStrnum = 1;\n  const hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;\n  const numRegex = /^([\\-\\+])?(0*)(\\.[0-9]+([eE]\\-?[0-9]+)?|[0-9]+(\\.[0-9]+([eE]\\-?[0-9]+)?)?)$/;\n  if (!Number.parseInt && window.parseInt) {\n    Number.parseInt = window.parseInt;\n  }\n  if (!Number.parseFloat && window.parseFloat) {\n    Number.parseFloat = window.parseFloat;\n  }\n  const consider = {\n    hex: true,\n    leadingZeros: true,\n    decimalPoint: \".\",\n    eNotation: true\n    //skipLike: /regex/\n  };\n  function toNumber(str, options = {}) {\n    options = Object.assign({}, consider, options);\n    if (!str || typeof str !== \"string\") return str;\n    let trimmedStr = str.trim();\n    if (options.skipLike !== void 0 && options.skipLike.test(trimmedStr)) return str;\n    else if (options.hex && hexRegex.test(trimmedStr)) {\n      return Number.parseInt(trimmedStr, 16);\n    } else {\n      const match = numRegex.exec(trimmedStr);\n      if (match) {\n        const sign = match[1];\n        const leadingZeros = match[2];\n        let numTrimmedByZeros = trimZeros(match[3]);\n        const eNotation = match[4] || match[6];\n        if (!options.leadingZeros && leadingZeros.length > 0 && sign && trimmedStr[2] !== \".\") return str;\n        else if (!options.leadingZeros && leadingZeros.length > 0 && !sign && trimmedStr[1] !== \".\") return str;\n        else {\n          const num = Number(trimmedStr);\n          const numStr = \"\" + num;\n          if (numStr.search(/[eE]/) !== -1) {\n            if (options.eNotation) return num;\n            else return str;\n          } else if (eNotation) {\n            if (options.eNotation) return num;\n            else return str;\n          } else if (trimmedStr.indexOf(\".\") !== -1) {\n            if (numStr === \"0\" && numTrimmedByZeros === \"\") return num;\n            else if (numStr === numTrimmedByZeros) return num;\n            else if (sign && numStr === \"-\" + numTrimmedByZeros) return num;\n            else return str;\n          }\n          if (leadingZeros) {\n            if (numTrimmedByZeros === numStr) return num;\n            else if (sign + numTrimmedByZeros === numStr) return num;\n            else return str;\n          }\n          if (trimmedStr === numStr) return num;\n          else if (trimmedStr === sign + numStr) return num;\n          return str;\n        }\n      } else {\n        return str;\n      }\n    }\n  }\n  function trimZeros(numStr) {\n    if (numStr && numStr.indexOf(\".\") !== -1) {\n      numStr = numStr.replace(/0+$/, \"\");\n      if (numStr === \".\") numStr = \"0\";\n      else if (numStr[0] === \".\") numStr = \"0\" + numStr;\n      else if (numStr[numStr.length - 1] === \".\") numStr = numStr.substr(0, numStr.length - 1);\n      return numStr;\n    }\n    return numStr;\n  }\n  strnum = toNumber;\n  return strnum;\n}\nvar ignoreAttributes;\nvar hasRequiredIgnoreAttributes;\nfunction requireIgnoreAttributes() {\n  if (hasRequiredIgnoreAttributes) return ignoreAttributes;\n  hasRequiredIgnoreAttributes = 1;\n  function getIgnoreAttributesFn(ignoreAttributes2) {\n    if (typeof ignoreAttributes2 === \"function\") {\n      return ignoreAttributes2;\n    }\n    if (Array.isArray(ignoreAttributes2)) {\n      return (attrName) => {\n        for (const pattern of ignoreAttributes2) {\n          if (typeof pattern === \"string\" && attrName === pattern) {\n            return true;\n          }\n          if (pattern instanceof RegExp && pattern.test(attrName)) {\n            return true;\n          }\n        }\n      };\n    }\n    return () => false;\n  }\n  ignoreAttributes = getIgnoreAttributesFn;\n  return ignoreAttributes;\n}\nvar OrderedObjParser_1;\nvar hasRequiredOrderedObjParser;\nfunction requireOrderedObjParser() {\n  if (hasRequiredOrderedObjParser) return OrderedObjParser_1;\n  hasRequiredOrderedObjParser = 1;\n  const util2 = requireUtil();\n  const xmlNode2 = requireXmlNode();\n  const readDocType = requireDocTypeReader();\n  const toNumber = requireStrnum();\n  const getIgnoreAttributesFn = requireIgnoreAttributes();\n  class OrderedObjParser {\n    constructor(options) {\n      this.options = options;\n      this.currentNode = null;\n      this.tagsNodeStack = [];\n      this.docTypeEntities = {};\n      this.lastEntities = {\n        \"apos\": { regex: /&(apos|#39|#x27);/g, val: \"'\" },\n        \"gt\": { regex: /&(gt|#62|#x3E);/g, val: \">\" },\n        \"lt\": { regex: /&(lt|#60|#x3C);/g, val: \"<\" },\n        \"quot\": { regex: /&(quot|#34|#x22);/g, val: '\"' }\n      };\n      this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: \"&\" };\n      this.htmlEntities = {\n        \"space\": { regex: /&(nbsp|#160);/g, val: \" \" },\n        // \"lt\" : { regex: /&(lt|#60);/g, val: \"<\" },\n        // \"gt\" : { regex: /&(gt|#62);/g, val: \">\" },\n        // \"amp\" : { regex: /&(amp|#38);/g, val: \"&\" },\n        // \"quot\" : { regex: /&(quot|#34);/g, val: \"\\\"\" },\n        // \"apos\" : { regex: /&(apos|#39);/g, val: \"'\" },\n        \"cent\": { regex: /&(cent|#162);/g, val: \"¢\" },\n        \"pound\": { regex: /&(pound|#163);/g, val: \"£\" },\n        \"yen\": { regex: /&(yen|#165);/g, val: \"¥\" },\n        \"euro\": { regex: /&(euro|#8364);/g, val: \"€\" },\n        \"copyright\": { regex: /&(copy|#169);/g, val: \"©\" },\n        \"reg\": { regex: /&(reg|#174);/g, val: \"®\" },\n        \"inr\": { regex: /&(inr|#8377);/g, val: \"₹\" },\n        \"num_dec\": { regex: /&#([0-9]{1,7});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 10)) },\n        \"num_hex\": { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (_, str) => String.fromCharCode(Number.parseInt(str, 16)) }\n      };\n      this.addExternalEntities = addExternalEntities;\n      this.parseXml = parseXml;\n      this.parseTextData = parseTextData;\n      this.resolveNameSpace = resolveNameSpace;\n      this.buildAttributesMap = buildAttributesMap;\n      this.isItStopNode = isItStopNode;\n      this.replaceEntitiesValue = replaceEntitiesValue;\n      this.readStopNodeData = readStopNodeData;\n      this.saveTextToParentTag = saveTextToParentTag;\n      this.addChild = addChild;\n      this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);\n    }\n  }\n  function addExternalEntities(externalEntities) {\n    const entKeys = Object.keys(externalEntities);\n    for (let i2 = 0; i2 < entKeys.length; i2++) {\n      const ent = entKeys[i2];\n      this.lastEntities[ent] = {\n        regex: new RegExp(\"&\" + ent + \";\", \"g\"),\n        val: externalEntities[ent]\n      };\n    }\n  }\n  function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) {\n    if (val !== void 0) {\n      if (this.options.trimValues && !dontTrim) {\n        val = val.trim();\n      }\n      if (val.length > 0) {\n        if (!escapeEntities) val = this.replaceEntitiesValue(val);\n        const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);\n        if (newval === null || newval === void 0) {\n          return val;\n        } else if (typeof newval !== typeof val || newval !== val) {\n          return newval;\n        } else if (this.options.trimValues) {\n          return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n        } else {\n          const trimmedVal = val.trim();\n          if (trimmedVal === val) {\n            return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions);\n          } else {\n            return val;\n          }\n        }\n      }\n    }\n  }\n  function resolveNameSpace(tagname) {\n    if (this.options.removeNSPrefix) {\n      const tags = tagname.split(\":\");\n      const prefix = tagname.charAt(0) === \"/\" ? \"/\" : \"\";\n      if (tags[0] === \"xmlns\") {\n        return \"\";\n      }\n      if (tags.length === 2) {\n        tagname = prefix + tags[1];\n      }\n    }\n    return tagname;\n  }\n  const attrsRegx = new RegExp(`([^\\\\s=]+)\\\\s*(=\\\\s*(['\"])([\\\\s\\\\S]*?)\\\\3)?`, \"gm\");\n  function buildAttributesMap(attrStr, jPath, tagName) {\n    if (this.options.ignoreAttributes !== true && typeof attrStr === \"string\") {\n      const matches = util2.getAllMatches(attrStr, attrsRegx);\n      const len = matches.length;\n      const attrs = {};\n      for (let i2 = 0; i2 < len; i2++) {\n        const attrName = this.resolveNameSpace(matches[i2][1]);\n        if (this.ignoreAttributesFn(attrName, jPath)) {\n          continue;\n        }\n        let oldVal = matches[i2][4];\n        let aName = this.options.attributeNamePrefix + attrName;\n        if (attrName.length) {\n          if (this.options.transformAttributeName) {\n            aName = this.options.transformAttributeName(aName);\n          }\n          if (aName === \"__proto__\") aName = \"#__proto__\";\n          if (oldVal !== void 0) {\n            if (this.options.trimValues) {\n              oldVal = oldVal.trim();\n            }\n            oldVal = this.replaceEntitiesValue(oldVal);\n            const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);\n            if (newVal === null || newVal === void 0) {\n              attrs[aName] = oldVal;\n            } else if (typeof newVal !== typeof oldVal || newVal !== oldVal) {\n              attrs[aName] = newVal;\n            } else {\n              attrs[aName] = parseValue(\n                oldVal,\n                this.options.parseAttributeValue,\n                this.options.numberParseOptions\n              );\n            }\n          } else if (this.options.allowBooleanAttributes) {\n            attrs[aName] = true;\n          }\n        }\n      }\n      if (!Object.keys(attrs).length) {\n        return;\n      }\n      if (this.options.attributesGroupName) {\n        const attrCollection = {};\n        attrCollection[this.options.attributesGroupName] = attrs;\n        return attrCollection;\n      }\n      return attrs;\n    }\n  }\n  const parseXml = function(xmlData) {\n    xmlData = xmlData.replace(/\\r\\n?/g, \"\\n\");\n    const xmlObj = new xmlNode2(\"!xml\");\n    let currentNode = xmlObj;\n    let textData = \"\";\n    let jPath = \"\";\n    for (let i2 = 0; i2 < xmlData.length; i2++) {\n      const ch = xmlData[i2];\n      if (ch === \"<\") {\n        if (xmlData[i2 + 1] === \"/\") {\n          const closeIndex = findClosingIndex(xmlData, \">\", i2, \"Closing Tag is not closed.\");\n          let tagName = xmlData.substring(i2 + 2, closeIndex).trim();\n          if (this.options.removeNSPrefix) {\n            const colonIndex = tagName.indexOf(\":\");\n            if (colonIndex !== -1) {\n              tagName = tagName.substr(colonIndex + 1);\n            }\n          }\n          if (this.options.transformTagName) {\n            tagName = this.options.transformTagName(tagName);\n          }\n          if (currentNode) {\n            textData = this.saveTextToParentTag(textData, currentNode, jPath);\n          }\n          const lastTagName = jPath.substring(jPath.lastIndexOf(\".\") + 1);\n          if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) {\n            throw new Error(`Unpaired tag can not be used as closing tag: </${tagName}>`);\n          }\n          let propIndex = 0;\n          if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) {\n            propIndex = jPath.lastIndexOf(\".\", jPath.lastIndexOf(\".\") - 1);\n            this.tagsNodeStack.pop();\n          } else {\n            propIndex = jPath.lastIndexOf(\".\");\n          }\n          jPath = jPath.substring(0, propIndex);\n          currentNode = this.tagsNodeStack.pop();\n          textData = \"\";\n          i2 = closeIndex;\n        } else if (xmlData[i2 + 1] === \"?\") {\n          let tagData = readTagExp(xmlData, i2, false, \"?>\");\n          if (!tagData) throw new Error(\"Pi Tag is not closed.\");\n          textData = this.saveTextToParentTag(textData, currentNode, jPath);\n          if (this.options.ignoreDeclaration && tagData.tagName === \"?xml\" || this.options.ignorePiTags) ;\n          else {\n            const childNode = new xmlNode2(tagData.tagName);\n            childNode.add(this.options.textNodeName, \"\");\n            if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {\n              childNode[\":@\"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);\n            }\n            this.addChild(currentNode, childNode, jPath);\n          }\n          i2 = tagData.closeIndex + 1;\n        } else if (xmlData.substr(i2 + 1, 3) === \"!--\") {\n          const endIndex = findClosingIndex(xmlData, \"-->\", i2 + 4, \"Comment is not closed.\");\n          if (this.options.commentPropName) {\n            const comment = xmlData.substring(i2 + 4, endIndex - 2);\n            textData = this.saveTextToParentTag(textData, currentNode, jPath);\n            currentNode.add(this.options.commentPropName, [{ [this.options.textNodeName]: comment }]);\n          }\n          i2 = endIndex;\n        } else if (xmlData.substr(i2 + 1, 2) === \"!D\") {\n          const result = readDocType(xmlData, i2);\n          this.docTypeEntities = result.entities;\n          i2 = result.i;\n        } else if (xmlData.substr(i2 + 1, 2) === \"![\") {\n          const closeIndex = findClosingIndex(xmlData, \"]]>\", i2, \"CDATA is not closed.\") - 2;\n          const tagExp = xmlData.substring(i2 + 9, closeIndex);\n          textData = this.saveTextToParentTag(textData, currentNode, jPath);\n          let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true);\n          if (val == void 0) val = \"\";\n          if (this.options.cdataPropName) {\n            currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]);\n          } else {\n            currentNode.add(this.options.textNodeName, val);\n          }\n          i2 = closeIndex + 2;\n        } else {\n          let result = readTagExp(xmlData, i2, this.options.removeNSPrefix);\n          let tagName = result.tagName;\n          const rawTagName = result.rawTagName;\n          let tagExp = result.tagExp;\n          let attrExpPresent = result.attrExpPresent;\n          let closeIndex = result.closeIndex;\n          if (this.options.transformTagName) {\n            tagName = this.options.transformTagName(tagName);\n          }\n          if (currentNode && textData) {\n            if (currentNode.tagname !== \"!xml\") {\n              textData = this.saveTextToParentTag(textData, currentNode, jPath, false);\n            }\n          }\n          const lastTag = currentNode;\n          if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) {\n            currentNode = this.tagsNodeStack.pop();\n            jPath = jPath.substring(0, jPath.lastIndexOf(\".\"));\n          }\n          if (tagName !== xmlObj.tagname) {\n            jPath += jPath ? \".\" + tagName : tagName;\n          }\n          if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) {\n            let tagContent = \"\";\n            if (tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1) {\n              if (tagName[tagName.length - 1] === \"/\") {\n                tagName = tagName.substr(0, tagName.length - 1);\n                jPath = jPath.substr(0, jPath.length - 1);\n                tagExp = tagName;\n              } else {\n                tagExp = tagExp.substr(0, tagExp.length - 1);\n              }\n              i2 = result.closeIndex;\n            } else if (this.options.unpairedTags.indexOf(tagName) !== -1) {\n              i2 = result.closeIndex;\n            } else {\n              const result2 = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1);\n              if (!result2) throw new Error(`Unexpected end of ${rawTagName}`);\n              i2 = result2.i;\n              tagContent = result2.tagContent;\n            }\n            const childNode = new xmlNode2(tagName);\n            if (tagName !== tagExp && attrExpPresent) {\n              childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n            }\n            if (tagContent) {\n              tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);\n            }\n            jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n            childNode.add(this.options.textNodeName, tagContent);\n            this.addChild(currentNode, childNode, jPath);\n          } else {\n            if (tagExp.length > 0 && tagExp.lastIndexOf(\"/\") === tagExp.length - 1) {\n              if (tagName[tagName.length - 1] === \"/\") {\n                tagName = tagName.substr(0, tagName.length - 1);\n                jPath = jPath.substr(0, jPath.length - 1);\n                tagExp = tagName;\n              } else {\n                tagExp = tagExp.substr(0, tagExp.length - 1);\n              }\n              if (this.options.transformTagName) {\n                tagName = this.options.transformTagName(tagName);\n              }\n              const childNode = new xmlNode2(tagName);\n              if (tagName !== tagExp && attrExpPresent) {\n                childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n              }\n              this.addChild(currentNode, childNode, jPath);\n              jPath = jPath.substr(0, jPath.lastIndexOf(\".\"));\n            } else {\n              const childNode = new xmlNode2(tagName);\n              this.tagsNodeStack.push(currentNode);\n              if (tagName !== tagExp && attrExpPresent) {\n                childNode[\":@\"] = this.buildAttributesMap(tagExp, jPath, tagName);\n              }\n              this.addChild(currentNode, childNode, jPath);\n              currentNode = childNode;\n            }\n            textData = \"\";\n            i2 = closeIndex;\n          }\n        }\n      } else {\n        textData += xmlData[i2];\n      }\n    }\n    return xmlObj.child;\n  };\n  function addChild(currentNode, childNode, jPath) {\n    const result = this.options.updateTag(childNode.tagname, jPath, childNode[\":@\"]);\n    if (result === false) ;\n    else if (typeof result === \"string\") {\n      childNode.tagname = result;\n      currentNode.addChild(childNode);\n    } else {\n      currentNode.addChild(childNode);\n    }\n  }\n  const replaceEntitiesValue = function(val) {\n    if (this.options.processEntities) {\n      for (let entityName in this.docTypeEntities) {\n        const entity = this.docTypeEntities[entityName];\n        val = val.replace(entity.regx, entity.val);\n      }\n      for (let entityName in this.lastEntities) {\n        const entity = this.lastEntities[entityName];\n        val = val.replace(entity.regex, entity.val);\n      }\n      if (this.options.htmlEntities) {\n        for (let entityName in this.htmlEntities) {\n          const entity = this.htmlEntities[entityName];\n          val = val.replace(entity.regex, entity.val);\n        }\n      }\n      val = val.replace(this.ampEntity.regex, this.ampEntity.val);\n    }\n    return val;\n  };\n  function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) {\n    if (textData) {\n      if (isLeafNode === void 0) isLeafNode = Object.keys(currentNode.child).length === 0;\n      textData = this.parseTextData(\n        textData,\n        currentNode.tagname,\n        jPath,\n        false,\n        currentNode[\":@\"] ? Object.keys(currentNode[\":@\"]).length !== 0 : false,\n        isLeafNode\n      );\n      if (textData !== void 0 && textData !== \"\")\n        currentNode.add(this.options.textNodeName, textData);\n      textData = \"\";\n    }\n    return textData;\n  }\n  function isItStopNode(stopNodes, jPath, currentTagName) {\n    const allNodesExp = \"*.\" + currentTagName;\n    for (const stopNodePath in stopNodes) {\n      const stopNodeExp = stopNodes[stopNodePath];\n      if (allNodesExp === stopNodeExp || jPath === stopNodeExp) return true;\n    }\n    return false;\n  }\n  function tagExpWithClosingIndex(xmlData, i2, closingChar = \">\") {\n    let attrBoundary;\n    let tagExp = \"\";\n    for (let index = i2; index < xmlData.length; index++) {\n      let ch = xmlData[index];\n      if (attrBoundary) {\n        if (ch === attrBoundary) attrBoundary = \"\";\n      } else if (ch === '\"' || ch === \"'\") {\n        attrBoundary = ch;\n      } else if (ch === closingChar[0]) {\n        if (closingChar[1]) {\n          if (xmlData[index + 1] === closingChar[1]) {\n            return {\n              data: tagExp,\n              index\n            };\n          }\n        } else {\n          return {\n            data: tagExp,\n            index\n          };\n        }\n      } else if (ch === \"\t\") {\n        ch = \" \";\n      }\n      tagExp += ch;\n    }\n  }\n  function findClosingIndex(xmlData, str, i2, errMsg) {\n    const closingIndex = xmlData.indexOf(str, i2);\n    if (closingIndex === -1) {\n      throw new Error(errMsg);\n    } else {\n      return closingIndex + str.length - 1;\n    }\n  }\n  function readTagExp(xmlData, i2, removeNSPrefix, closingChar = \">\") {\n    const result = tagExpWithClosingIndex(xmlData, i2 + 1, closingChar);\n    if (!result) return;\n    let tagExp = result.data;\n    const closeIndex = result.index;\n    const separatorIndex = tagExp.search(/\\s/);\n    let tagName = tagExp;\n    let attrExpPresent = true;\n    if (separatorIndex !== -1) {\n      tagName = tagExp.substring(0, separatorIndex);\n      tagExp = tagExp.substring(separatorIndex + 1).trimStart();\n    }\n    const rawTagName = tagName;\n    if (removeNSPrefix) {\n      const colonIndex = tagName.indexOf(\":\");\n      if (colonIndex !== -1) {\n        tagName = tagName.substr(colonIndex + 1);\n        attrExpPresent = tagName !== result.data.substr(colonIndex + 1);\n      }\n    }\n    return {\n      tagName,\n      tagExp,\n      closeIndex,\n      attrExpPresent,\n      rawTagName\n    };\n  }\n  function readStopNodeData(xmlData, tagName, i2) {\n    const startIndex = i2;\n    let openTagCount = 1;\n    for (; i2 < xmlData.length; i2++) {\n      if (xmlData[i2] === \"<\") {\n        if (xmlData[i2 + 1] === \"/\") {\n          const closeIndex = findClosingIndex(xmlData, \">\", i2, `${tagName} is not closed`);\n          let closeTagName = xmlData.substring(i2 + 2, closeIndex).trim();\n          if (closeTagName === tagName) {\n            openTagCount--;\n            if (openTagCount === 0) {\n              return {\n                tagContent: xmlData.substring(startIndex, i2),\n                i: closeIndex\n              };\n            }\n          }\n          i2 = closeIndex;\n        } else if (xmlData[i2 + 1] === \"?\") {\n          const closeIndex = findClosingIndex(xmlData, \"?>\", i2 + 1, \"StopNode is not closed.\");\n          i2 = closeIndex;\n        } else if (xmlData.substr(i2 + 1, 3) === \"!--\") {\n          const closeIndex = findClosingIndex(xmlData, \"-->\", i2 + 3, \"StopNode is not closed.\");\n          i2 = closeIndex;\n        } else if (xmlData.substr(i2 + 1, 2) === \"![\") {\n          const closeIndex = findClosingIndex(xmlData, \"]]>\", i2, \"StopNode is not closed.\") - 2;\n          i2 = closeIndex;\n        } else {\n          const tagData = readTagExp(xmlData, i2, \">\");\n          if (tagData) {\n            const openTagName = tagData && tagData.tagName;\n            if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length - 1] !== \"/\") {\n              openTagCount++;\n            }\n            i2 = tagData.closeIndex;\n          }\n        }\n      }\n    }\n  }\n  function parseValue(val, shouldParse, options) {\n    if (shouldParse && typeof val === \"string\") {\n      const newval = val.trim();\n      if (newval === \"true\") return true;\n      else if (newval === \"false\") return false;\n      else return toNumber(val, options);\n    } else {\n      if (util2.isExist(val)) {\n        return val;\n      } else {\n        return \"\";\n      }\n    }\n  }\n  OrderedObjParser_1 = OrderedObjParser;\n  return OrderedObjParser_1;\n}\nvar node2json = {};\nvar hasRequiredNode2json;\nfunction requireNode2json() {\n  if (hasRequiredNode2json) return node2json;\n  hasRequiredNode2json = 1;\n  function prettify(node, options) {\n    return compress(node, options);\n  }\n  function compress(arr, options, jPath) {\n    let text;\n    const compressedObj = {};\n    for (let i2 = 0; i2 < arr.length; i2++) {\n      const tagObj = arr[i2];\n      const property = propName(tagObj);\n      let newJpath = \"\";\n      if (jPath === void 0) newJpath = property;\n      else newJpath = jPath + \".\" + property;\n      if (property === options.textNodeName) {\n        if (text === void 0) text = tagObj[property];\n        else text += \"\" + tagObj[property];\n      } else if (property === void 0) {\n        continue;\n      } else if (tagObj[property]) {\n        let val = compress(tagObj[property], options, newJpath);\n        const isLeaf = isLeafTag(val, options);\n        if (tagObj[\":@\"]) {\n          assignAttributes(val, tagObj[\":@\"], newJpath, options);\n        } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) {\n          val = val[options.textNodeName];\n        } else if (Object.keys(val).length === 0) {\n          if (options.alwaysCreateTextNode) val[options.textNodeName] = \"\";\n          else val = \"\";\n        }\n        if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) {\n          if (!Array.isArray(compressedObj[property])) {\n            compressedObj[property] = [compressedObj[property]];\n          }\n          compressedObj[property].push(val);\n        } else {\n          if (options.isArray(property, newJpath, isLeaf)) {\n            compressedObj[property] = [val];\n          } else {\n            compressedObj[property] = val;\n          }\n        }\n      }\n    }\n    if (typeof text === \"string\") {\n      if (text.length > 0) compressedObj[options.textNodeName] = text;\n    } else if (text !== void 0) compressedObj[options.textNodeName] = text;\n    return compressedObj;\n  }\n  function propName(obj) {\n    const keys = Object.keys(obj);\n    for (let i2 = 0; i2 < keys.length; i2++) {\n      const key = keys[i2];\n      if (key !== \":@\") return key;\n    }\n  }\n  function assignAttributes(obj, attrMap, jpath, options) {\n    if (attrMap) {\n      const keys = Object.keys(attrMap);\n      const len = keys.length;\n      for (let i2 = 0; i2 < len; i2++) {\n        const atrrName = keys[i2];\n        if (options.isArray(atrrName, jpath + \".\" + atrrName, true, true)) {\n          obj[atrrName] = [attrMap[atrrName]];\n        } else {\n          obj[atrrName] = attrMap[atrrName];\n        }\n      }\n    }\n  }\n  function isLeafTag(obj, options) {\n    const { textNodeName } = options;\n    const propCount = Object.keys(obj).length;\n    if (propCount === 0) {\n      return true;\n    }\n    if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === \"boolean\" || obj[textNodeName] === 0)) {\n      return true;\n    }\n    return false;\n  }\n  node2json.prettify = prettify;\n  return node2json;\n}\nvar XMLParser_1;\nvar hasRequiredXMLParser;\nfunction requireXMLParser() {\n  if (hasRequiredXMLParser) return XMLParser_1;\n  hasRequiredXMLParser = 1;\n  const { buildOptions } = requireOptionsBuilder();\n  const OrderedObjParser = requireOrderedObjParser();\n  const { prettify } = requireNode2json();\n  const validator2 = requireValidator();\n  class XMLParser {\n    constructor(options) {\n      this.externalEntities = {};\n      this.options = buildOptions(options);\n    }\n    /**\n     * Parse XML dats to JS object \n     * @param {string|Buffer} xmlData \n     * @param {boolean|Object} validationOption \n     */\n    parse(xmlData, validationOption) {\n      if (typeof xmlData === \"string\") ;\n      else if (xmlData.toString) {\n        xmlData = xmlData.toString();\n      } else {\n        throw new Error(\"XML data is accepted in String or Bytes[] form.\");\n      }\n      if (validationOption) {\n        if (validationOption === true) validationOption = {};\n        const result = validator2.validate(xmlData, validationOption);\n        if (result !== true) {\n          throw Error(`${result.err.msg}:${result.err.line}:${result.err.col}`);\n        }\n      }\n      const orderedObjParser = new OrderedObjParser(this.options);\n      orderedObjParser.addExternalEntities(this.externalEntities);\n      const orderedResult = orderedObjParser.parseXml(xmlData);\n      if (this.options.preserveOrder || orderedResult === void 0) return orderedResult;\n      else return prettify(orderedResult, this.options);\n    }\n    /**\n     * Add Entity which is not by default supported by this library\n     * @param {string} key \n     * @param {string} value \n     */\n    addEntity(key, value) {\n      if (value.indexOf(\"&\") !== -1) {\n        throw new Error(\"Entity value can't have '&'\");\n      } else if (key.indexOf(\"&\") !== -1 || key.indexOf(\";\") !== -1) {\n        throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'\");\n      } else if (value === \"&\") {\n        throw new Error(\"An entity with value '&' is not permitted\");\n      } else {\n        this.externalEntities[key] = value;\n      }\n    }\n  }\n  XMLParser_1 = XMLParser;\n  return XMLParser_1;\n}\nvar orderedJs2Xml;\nvar hasRequiredOrderedJs2Xml;\nfunction requireOrderedJs2Xml() {\n  if (hasRequiredOrderedJs2Xml) return orderedJs2Xml;\n  hasRequiredOrderedJs2Xml = 1;\n  const EOL = \"\\n\";\n  function toXml(jArray, options) {\n    let indentation = \"\";\n    if (options.format && options.indentBy.length > 0) {\n      indentation = EOL;\n    }\n    return arrToStr(jArray, options, \"\", indentation);\n  }\n  function arrToStr(arr, options, jPath, indentation) {\n    let xmlStr = \"\";\n    let isPreviousElementTag = false;\n    for (let i2 = 0; i2 < arr.length; i2++) {\n      const tagObj = arr[i2];\n      const tagName = propName(tagObj);\n      if (tagName === void 0) continue;\n      let newJPath = \"\";\n      if (jPath.length === 0) newJPath = tagName;\n      else newJPath = `${jPath}.${tagName}`;\n      if (tagName === options.textNodeName) {\n        let tagText = tagObj[tagName];\n        if (!isStopNode(newJPath, options)) {\n          tagText = options.tagValueProcessor(tagName, tagText);\n          tagText = replaceEntitiesValue(tagText, options);\n        }\n        if (isPreviousElementTag) {\n          xmlStr += indentation;\n        }\n        xmlStr += tagText;\n        isPreviousElementTag = false;\n        continue;\n      } else if (tagName === options.cdataPropName) {\n        if (isPreviousElementTag) {\n          xmlStr += indentation;\n        }\n        xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;\n        isPreviousElementTag = false;\n        continue;\n      } else if (tagName === options.commentPropName) {\n        xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;\n        isPreviousElementTag = true;\n        continue;\n      } else if (tagName[0] === \"?\") {\n        const attStr2 = attr_to_str(tagObj[\":@\"], options);\n        const tempInd = tagName === \"?xml\" ? \"\" : indentation;\n        let piTextNodeName = tagObj[tagName][0][options.textNodeName];\n        piTextNodeName = piTextNodeName.length !== 0 ? \" \" + piTextNodeName : \"\";\n        xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr2}?>`;\n        isPreviousElementTag = true;\n        continue;\n      }\n      let newIdentation = indentation;\n      if (newIdentation !== \"\") {\n        newIdentation += options.indentBy;\n      }\n      const attStr = attr_to_str(tagObj[\":@\"], options);\n      const tagStart = indentation + `<${tagName}${attStr}`;\n      const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);\n      if (options.unpairedTags.indexOf(tagName) !== -1) {\n        if (options.suppressUnpairedNode) xmlStr += tagStart + \">\";\n        else xmlStr += tagStart + \"/>\";\n      } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {\n        xmlStr += tagStart + \"/>\";\n      } else if (tagValue && tagValue.endsWith(\">\")) {\n        xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;\n      } else {\n        xmlStr += tagStart + \">\";\n        if (tagValue && indentation !== \"\" && (tagValue.includes(\"/>\") || tagValue.includes(\"</\"))) {\n          xmlStr += indentation + options.indentBy + tagValue + indentation;\n        } else {\n          xmlStr += tagValue;\n        }\n        xmlStr += `</${tagName}>`;\n      }\n      isPreviousElementTag = true;\n    }\n    return xmlStr;\n  }\n  function propName(obj) {\n    const keys = Object.keys(obj);\n    for (let i2 = 0; i2 < keys.length; i2++) {\n      const key = keys[i2];\n      if (!obj.hasOwnProperty(key)) continue;\n      if (key !== \":@\") return key;\n    }\n  }\n  function attr_to_str(attrMap, options) {\n    let attrStr = \"\";\n    if (attrMap && !options.ignoreAttributes) {\n      for (let attr in attrMap) {\n        if (!attrMap.hasOwnProperty(attr)) continue;\n        let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);\n        attrVal = replaceEntitiesValue(attrVal, options);\n        if (attrVal === true && options.suppressBooleanAttributes) {\n          attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;\n        } else {\n          attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}=\"${attrVal}\"`;\n        }\n      }\n    }\n    return attrStr;\n  }\n  function isStopNode(jPath, options) {\n    jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);\n    let tagName = jPath.substr(jPath.lastIndexOf(\".\") + 1);\n    for (let index in options.stopNodes) {\n      if (options.stopNodes[index] === jPath || options.stopNodes[index] === \"*.\" + tagName) return true;\n    }\n    return false;\n  }\n  function replaceEntitiesValue(textValue, options) {\n    if (textValue && textValue.length > 0 && options.processEntities) {\n      for (let i2 = 0; i2 < options.entities.length; i2++) {\n        const entity = options.entities[i2];\n        textValue = textValue.replace(entity.regex, entity.val);\n      }\n    }\n    return textValue;\n  }\n  orderedJs2Xml = toXml;\n  return orderedJs2Xml;\n}\nvar json2xml;\nvar hasRequiredJson2xml;\nfunction requireJson2xml() {\n  if (hasRequiredJson2xml) return json2xml;\n  hasRequiredJson2xml = 1;\n  const buildFromOrderedJs = requireOrderedJs2Xml();\n  const getIgnoreAttributesFn = requireIgnoreAttributes();\n  const defaultOptions = {\n    attributeNamePrefix: \"@_\",\n    attributesGroupName: false,\n    textNodeName: \"#text\",\n    ignoreAttributes: true,\n    cdataPropName: false,\n    format: false,\n    indentBy: \"  \",\n    suppressEmptyNode: false,\n    suppressUnpairedNode: true,\n    suppressBooleanAttributes: true,\n    tagValueProcessor: function(key, a2) {\n      return a2;\n    },\n    attributeValueProcessor: function(attrName, a2) {\n      return a2;\n    },\n    preserveOrder: false,\n    commentPropName: false,\n    unpairedTags: [],\n    entities: [\n      { regex: new RegExp(\"&\", \"g\"), val: \"&amp;\" },\n      //it must be on top\n      { regex: new RegExp(\">\", \"g\"), val: \"&gt;\" },\n      { regex: new RegExp(\"<\", \"g\"), val: \"&lt;\" },\n      { regex: new RegExp(\"'\", \"g\"), val: \"&apos;\" },\n      { regex: new RegExp('\"', \"g\"), val: \"&quot;\" }\n    ],\n    processEntities: true,\n    stopNodes: [],\n    // transformTagName: false,\n    // transformAttributeName: false,\n    oneListGroup: false\n  };\n  function Builder(options) {\n    this.options = Object.assign({}, defaultOptions, options);\n    if (this.options.ignoreAttributes === true || this.options.attributesGroupName) {\n      this.isAttribute = function() {\n        return false;\n      };\n    } else {\n      this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);\n      this.attrPrefixLen = this.options.attributeNamePrefix.length;\n      this.isAttribute = isAttribute;\n    }\n    this.processTextOrObjNode = processTextOrObjNode;\n    if (this.options.format) {\n      this.indentate = indentate;\n      this.tagEndChar = \">\\n\";\n      this.newLine = \"\\n\";\n    } else {\n      this.indentate = function() {\n        return \"\";\n      };\n      this.tagEndChar = \">\";\n      this.newLine = \"\";\n    }\n  }\n  Builder.prototype.build = function(jObj) {\n    if (this.options.preserveOrder) {\n      return buildFromOrderedJs(jObj, this.options);\n    } else {\n      if (Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1) {\n        jObj = {\n          [this.options.arrayNodeName]: jObj\n        };\n      }\n      return this.j2x(jObj, 0, []).val;\n    }\n  };\n  Builder.prototype.j2x = function(jObj, level, ajPath) {\n    let attrStr = \"\";\n    let val = \"\";\n    const jPath = ajPath.join(\".\");\n    for (let key in jObj) {\n      if (!Object.prototype.hasOwnProperty.call(jObj, key)) continue;\n      if (typeof jObj[key] === \"undefined\") {\n        if (this.isAttribute(key)) {\n          val += \"\";\n        }\n      } else if (jObj[key] === null) {\n        if (this.isAttribute(key)) {\n          val += \"\";\n        } else if (key[0] === \"?\") {\n          val += this.indentate(level) + \"<\" + key + \"?\" + this.tagEndChar;\n        } else {\n          val += this.indentate(level) + \"<\" + key + \"/\" + this.tagEndChar;\n        }\n      } else if (jObj[key] instanceof Date) {\n        val += this.buildTextValNode(jObj[key], key, \"\", level);\n      } else if (typeof jObj[key] !== \"object\") {\n        const attr = this.isAttribute(key);\n        if (attr && !this.ignoreAttributesFn(attr, jPath)) {\n          attrStr += this.buildAttrPairStr(attr, \"\" + jObj[key]);\n        } else if (!attr) {\n          if (key === this.options.textNodeName) {\n            let newval = this.options.tagValueProcessor(key, \"\" + jObj[key]);\n            val += this.replaceEntitiesValue(newval);\n          } else {\n            val += this.buildTextValNode(jObj[key], key, \"\", level);\n          }\n        }\n      } else if (Array.isArray(jObj[key])) {\n        const arrLen = jObj[key].length;\n        let listTagVal = \"\";\n        let listTagAttr = \"\";\n        for (let j2 = 0; j2 < arrLen; j2++) {\n          const item = jObj[key][j2];\n          if (typeof item === \"undefined\") ;\n          else if (item === null) {\n            if (key[0] === \"?\") val += this.indentate(level) + \"<\" + key + \"?\" + this.tagEndChar;\n            else val += this.indentate(level) + \"<\" + key + \"/\" + this.tagEndChar;\n          } else if (typeof item === \"object\") {\n            if (this.options.oneListGroup) {\n              const result = this.j2x(item, level + 1, ajPath.concat(key));\n              listTagVal += result.val;\n              if (this.options.attributesGroupName && item.hasOwnProperty(this.options.attributesGroupName)) {\n                listTagAttr += result.attrStr;\n              }\n            } else {\n              listTagVal += this.processTextOrObjNode(item, key, level, ajPath);\n            }\n          } else {\n            if (this.options.oneListGroup) {\n              let textValue = this.options.tagValueProcessor(key, item);\n              textValue = this.replaceEntitiesValue(textValue);\n              listTagVal += textValue;\n            } else {\n              listTagVal += this.buildTextValNode(item, key, \"\", level);\n            }\n          }\n        }\n        if (this.options.oneListGroup) {\n          listTagVal = this.buildObjectNode(listTagVal, key, listTagAttr, level);\n        }\n        val += listTagVal;\n      } else {\n        if (this.options.attributesGroupName && key === this.options.attributesGroupName) {\n          const Ks = Object.keys(jObj[key]);\n          const L = Ks.length;\n          for (let j2 = 0; j2 < L; j2++) {\n            attrStr += this.buildAttrPairStr(Ks[j2], \"\" + jObj[key][Ks[j2]]);\n          }\n        } else {\n          val += this.processTextOrObjNode(jObj[key], key, level, ajPath);\n        }\n      }\n    }\n    return { attrStr, val };\n  };\n  Builder.prototype.buildAttrPairStr = function(attrName, val) {\n    val = this.options.attributeValueProcessor(attrName, \"\" + val);\n    val = this.replaceEntitiesValue(val);\n    if (this.options.suppressBooleanAttributes && val === \"true\") {\n      return \" \" + attrName;\n    } else return \" \" + attrName + '=\"' + val + '\"';\n  };\n  function processTextOrObjNode(object, key, level, ajPath) {\n    const result = this.j2x(object, level + 1, ajPath.concat(key));\n    if (object[this.options.textNodeName] !== void 0 && Object.keys(object).length === 1) {\n      return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level);\n    } else {\n      return this.buildObjectNode(result.val, key, result.attrStr, level);\n    }\n  }\n  Builder.prototype.buildObjectNode = function(val, key, attrStr, level) {\n    if (val === \"\") {\n      if (key[0] === \"?\") return this.indentate(level) + \"<\" + key + attrStr + \"?\" + this.tagEndChar;\n      else {\n        return this.indentate(level) + \"<\" + key + attrStr + this.closeTag(key) + this.tagEndChar;\n      }\n    } else {\n      let tagEndExp = \"</\" + key + this.tagEndChar;\n      let piClosingChar = \"\";\n      if (key[0] === \"?\") {\n        piClosingChar = \"?\";\n        tagEndExp = \"\";\n      }\n      if ((attrStr || attrStr === \"\") && val.indexOf(\"<\") === -1) {\n        return this.indentate(level) + \"<\" + key + attrStr + piClosingChar + \">\" + val + tagEndExp;\n      } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) {\n        return this.indentate(level) + `<!--${val}-->` + this.newLine;\n      } else {\n        return this.indentate(level) + \"<\" + key + attrStr + piClosingChar + this.tagEndChar + val + this.indentate(level) + tagEndExp;\n      }\n    }\n  };\n  Builder.prototype.closeTag = function(key) {\n    let closeTag = \"\";\n    if (this.options.unpairedTags.indexOf(key) !== -1) {\n      if (!this.options.suppressUnpairedNode) closeTag = \"/\";\n    } else if (this.options.suppressEmptyNode) {\n      closeTag = \"/\";\n    } else {\n      closeTag = `></${key}`;\n    }\n    return closeTag;\n  };\n  Builder.prototype.buildTextValNode = function(val, key, attrStr, level) {\n    if (this.options.cdataPropName !== false && key === this.options.cdataPropName) {\n      return this.indentate(level) + `<![CDATA[${val}]]>` + this.newLine;\n    } else if (this.options.commentPropName !== false && key === this.options.commentPropName) {\n      return this.indentate(level) + `<!--${val}-->` + this.newLine;\n    } else if (key[0] === \"?\") {\n      return this.indentate(level) + \"<\" + key + attrStr + \"?\" + this.tagEndChar;\n    } else {\n      let textValue = this.options.tagValueProcessor(key, val);\n      textValue = this.replaceEntitiesValue(textValue);\n      if (textValue === \"\") {\n        return this.indentate(level) + \"<\" + key + attrStr + this.closeTag(key) + this.tagEndChar;\n      } else {\n        return this.indentate(level) + \"<\" + key + attrStr + \">\" + textValue + \"</\" + key + this.tagEndChar;\n      }\n    }\n  };\n  Builder.prototype.replaceEntitiesValue = function(textValue) {\n    if (textValue && textValue.length > 0 && this.options.processEntities) {\n      for (let i2 = 0; i2 < this.options.entities.length; i2++) {\n        const entity = this.options.entities[i2];\n        textValue = textValue.replace(entity.regex, entity.val);\n      }\n    }\n    return textValue;\n  };\n  function indentate(level) {\n    return this.options.indentBy.repeat(level);\n  }\n  function isAttribute(name) {\n    if (name.startsWith(this.options.attributeNamePrefix) && name !== this.options.textNodeName) {\n      return name.substr(this.attrPrefixLen);\n    } else {\n      return false;\n    }\n  }\n  json2xml = Builder;\n  return json2xml;\n}\nvar fxp;\nvar hasRequiredFxp;\nfunction requireFxp() {\n  if (hasRequiredFxp) return fxp;\n  hasRequiredFxp = 1;\n  const validator2 = requireValidator();\n  const XMLParser = requireXMLParser();\n  const XMLBuilder = requireJson2xml();\n  fxp = {\n    XMLParser,\n    XMLValidator: validator2,\n    XMLBuilder\n  };\n  return fxp;\n}\nvar fxpExports = requireFxp();\nfunction isSvg(string) {\n  if (typeof string !== \"string\") {\n    throw new TypeError(`Expected a \\`string\\`, got \\`${typeof string}\\``);\n  }\n  string = string.trim();\n  if (string.length === 0) {\n    return false;\n  }\n  if (fxpExports.XMLValidator.validate(string) !== true) {\n    return false;\n  }\n  let jsonObject;\n  const parser = new fxpExports.XMLParser();\n  try {\n    jsonObject = parser.parse(string);\n  } catch {\n    return false;\n  }\n  if (!jsonObject) {\n    return false;\n  }\n  if (!Object.keys(jsonObject).some((x) => x.toLowerCase() === \"svg\")) {\n    return false;\n  }\n  return true;\n}\nclass View {\n  _view;\n  constructor(view) {\n    isValidView(view);\n    this._view = view;\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(icon) {\n    this._view.icon = icon;\n  }\n  get order() {\n    return this._view.order;\n  }\n  set order(order) {\n    this._view.order = order;\n  }\n  get params() {\n    return this._view.params;\n  }\n  set params(params) {\n    this._view.params = params;\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(expanded) {\n    this._view.expanded = expanded;\n  }\n  get defaultSortKey() {\n    return this._view.defaultSortKey;\n  }\n  get loadChildViews() {\n    return this._view.loadChildViews;\n  }\n}\nconst isValidView = function(view) {\n  if (!view.id || typeof view.id !== \"string\") {\n    throw new Error(\"View id is required and must be a string\");\n  }\n  if (!view.name || typeof view.name !== \"string\") {\n    throw new Error(\"View name is required and must be a string\");\n  }\n  if (\"caption\" in view && typeof view.caption !== \"string\") {\n    throw new Error(\"View caption must be a string\");\n  }\n  if (!view.getContents || typeof view.getContents !== \"function\") {\n    throw new Error(\"View getContents is required and must be a function\");\n  }\n  if (!view.icon || typeof view.icon !== \"string\" || !isSvg(view.icon)) {\n    throw new Error(\"View icon is required and must be a valid svg string\");\n  }\n  if (\"order\" in view && typeof view.order !== \"number\") {\n    throw new Error(\"View order must be a number\");\n  }\n  if (view.columns) {\n    view.columns.forEach((column) => {\n      if (!(column instanceof Column)) {\n        throw new Error(\"View columns must be an array of Column. Invalid column found\");\n      }\n    });\n  }\n  if (view.emptyView && typeof view.emptyView !== \"function\") {\n    throw new Error(\"View emptyView must be a function\");\n  }\n  if (view.parent && typeof view.parent !== \"string\") {\n    throw new Error(\"View parent must be a string\");\n  }\n  if (\"sticky\" in view && typeof view.sticky !== \"boolean\") {\n    throw new Error(\"View sticky must be a boolean\");\n  }\n  if (\"expanded\" in view && typeof view.expanded !== \"boolean\") {\n    throw new Error(\"View expanded must be a boolean\");\n  }\n  if (view.defaultSortKey && typeof view.defaultSortKey !== \"string\") {\n    throw new Error(\"View defaultSortKey must be a string\");\n  }\n  if (view.loadChildViews && typeof view.loadChildViews !== \"function\") {\n    throw new Error(\"View loadChildViews must be a function\");\n  }\n  return true;\n};\nvar debug_1;\nvar hasRequiredDebug;\nfunction requireDebug() {\n  if (hasRequiredDebug) return debug_1;\n  hasRequiredDebug = 1;\n  const debug = typeof process === \"object\" && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error(\"SEMVER\", ...args) : () => {\n  };\n  debug_1 = debug;\n  return debug_1;\n}\nvar constants;\nvar hasRequiredConstants;\nfunction requireConstants() {\n  if (hasRequiredConstants) return constants;\n  hasRequiredConstants = 1;\n  const SEMVER_SPEC_VERSION = \"2.0.0\";\n  const MAX_LENGTH = 256;\n  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */\n  9007199254740991;\n  const MAX_SAFE_COMPONENT_LENGTH = 16;\n  const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\n  const RELEASE_TYPES = [\n    \"major\",\n    \"premajor\",\n    \"minor\",\n    \"preminor\",\n    \"patch\",\n    \"prepatch\",\n    \"prerelease\"\n  ];\n  constants = {\n    MAX_LENGTH,\n    MAX_SAFE_COMPONENT_LENGTH,\n    MAX_SAFE_BUILD_LENGTH,\n    MAX_SAFE_INTEGER,\n    RELEASE_TYPES,\n    SEMVER_SPEC_VERSION,\n    FLAG_INCLUDE_PRERELEASE: 1,\n    FLAG_LOOSE: 2\n  };\n  return constants;\n}\nvar re = { exports: {} };\nvar hasRequiredRe;\nfunction requireRe() {\n  if (hasRequiredRe) return re.exports;\n  hasRequiredRe = 1;\n  (function(module, exports) {\n    const {\n      MAX_SAFE_COMPONENT_LENGTH,\n      MAX_SAFE_BUILD_LENGTH,\n      MAX_LENGTH\n    } = requireConstants();\n    const debug = requireDebug();\n    exports = module.exports = {};\n    const re2 = exports.re = [];\n    const safeRe = exports.safeRe = [];\n    const src = exports.src = [];\n    const t2 = exports.t = {};\n    let R = 0;\n    const LETTERDASHNUMBER = \"[a-zA-Z0-9-]\";\n    const safeRegexReplacements = [\n      [\"\\\\s\", 1],\n      [\"\\\\d\", MAX_LENGTH],\n      [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]\n    ];\n    const makeSafeRegex = (value) => {\n      for (const [token, max] of safeRegexReplacements) {\n        value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);\n      }\n      return value;\n    };\n    const createToken = (name, value, isGlobal) => {\n      const safe = makeSafeRegex(value);\n      const index = R++;\n      debug(name, index, value);\n      t2[name] = index;\n      src[index] = value;\n      re2[index] = new RegExp(value, isGlobal ? \"g\" : void 0);\n      safeRe[index] = new RegExp(safe, isGlobal ? \"g\" : void 0);\n    };\n    createToken(\"NUMERICIDENTIFIER\", \"0|[1-9]\\\\d*\");\n    createToken(\"NUMERICIDENTIFIERLOOSE\", \"\\\\d+\");\n    createToken(\"NONNUMERICIDENTIFIER\", `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);\n    createToken(\"MAINVERSION\", `(${src[t2.NUMERICIDENTIFIER]})\\\\.(${src[t2.NUMERICIDENTIFIER]})\\\\.(${src[t2.NUMERICIDENTIFIER]})`);\n    createToken(\"MAINVERSIONLOOSE\", `(${src[t2.NUMERICIDENTIFIERLOOSE]})\\\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})\\\\.(${src[t2.NUMERICIDENTIFIERLOOSE]})`);\n    createToken(\"PRERELEASEIDENTIFIER\", `(?:${src[t2.NUMERICIDENTIFIER]}|${src[t2.NONNUMERICIDENTIFIER]})`);\n    createToken(\"PRERELEASEIDENTIFIERLOOSE\", `(?:${src[t2.NUMERICIDENTIFIERLOOSE]}|${src[t2.NONNUMERICIDENTIFIER]})`);\n    createToken(\"PRERELEASE\", `(?:-(${src[t2.PRERELEASEIDENTIFIER]}(?:\\\\.${src[t2.PRERELEASEIDENTIFIER]})*))`);\n    createToken(\"PRERELEASELOOSE\", `(?:-?(${src[t2.PRERELEASEIDENTIFIERLOOSE]}(?:\\\\.${src[t2.PRERELEASEIDENTIFIERLOOSE]})*))`);\n    createToken(\"BUILDIDENTIFIER\", `${LETTERDASHNUMBER}+`);\n    createToken(\"BUILD\", `(?:\\\\+(${src[t2.BUILDIDENTIFIER]}(?:\\\\.${src[t2.BUILDIDENTIFIER]})*))`);\n    createToken(\"FULLPLAIN\", `v?${src[t2.MAINVERSION]}${src[t2.PRERELEASE]}?${src[t2.BUILD]}?`);\n    createToken(\"FULL\", `^${src[t2.FULLPLAIN]}$`);\n    createToken(\"LOOSEPLAIN\", `[v=\\\\s]*${src[t2.MAINVERSIONLOOSE]}${src[t2.PRERELEASELOOSE]}?${src[t2.BUILD]}?`);\n    createToken(\"LOOSE\", `^${src[t2.LOOSEPLAIN]}$`);\n    createToken(\"GTLT\", \"((?:<|>)?=?)\");\n    createToken(\"XRANGEIDENTIFIERLOOSE\", `${src[t2.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`);\n    createToken(\"XRANGEIDENTIFIER\", `${src[t2.NUMERICIDENTIFIER]}|x|X|\\\\*`);\n    createToken(\"XRANGEPLAIN\", `[v=\\\\s]*(${src[t2.XRANGEIDENTIFIER]})(?:\\\\.(${src[t2.XRANGEIDENTIFIER]})(?:\\\\.(${src[t2.XRANGEIDENTIFIER]})(?:${src[t2.PRERELEASE]})?${src[t2.BUILD]}?)?)?`);\n    createToken(\"XRANGEPLAINLOOSE\", `[v=\\\\s]*(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:\\\\.(${src[t2.XRANGEIDENTIFIERLOOSE]})(?:${src[t2.PRERELEASELOOSE]})?${src[t2.BUILD]}?)?)?`);\n    createToken(\"XRANGE\", `^${src[t2.GTLT]}\\\\s*${src[t2.XRANGEPLAIN]}$`);\n    createToken(\"XRANGELOOSE\", `^${src[t2.GTLT]}\\\\s*${src[t2.XRANGEPLAINLOOSE]}$`);\n    createToken(\"COERCEPLAIN\", `${\"(^|[^\\\\d])(\\\\d{1,\"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);\n    createToken(\"COERCE\", `${src[t2.COERCEPLAIN]}(?:$|[^\\\\d])`);\n    createToken(\"COERCEFULL\", src[t2.COERCEPLAIN] + `(?:${src[t2.PRERELEASE]})?(?:${src[t2.BUILD]})?(?:$|[^\\\\d])`);\n    createToken(\"COERCERTL\", src[t2.COERCE], true);\n    createToken(\"COERCERTLFULL\", src[t2.COERCEFULL], true);\n    createToken(\"LONETILDE\", \"(?:~>?)\");\n    createToken(\"TILDETRIM\", `(\\\\s*)${src[t2.LONETILDE]}\\\\s+`, true);\n    exports.tildeTrimReplace = \"$1~\";\n    createToken(\"TILDE\", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`);\n    createToken(\"TILDELOOSE\", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`);\n    createToken(\"LONECARET\", \"(?:\\\\^)\");\n    createToken(\"CARETTRIM\", `(\\\\s*)${src[t2.LONECARET]}\\\\s+`, true);\n    exports.caretTrimReplace = \"$1^\";\n    createToken(\"CARET\", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`);\n    createToken(\"CARETLOOSE\", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`);\n    createToken(\"COMPARATORLOOSE\", `^${src[t2.GTLT]}\\\\s*(${src[t2.LOOSEPLAIN]})$|^$`);\n    createToken(\"COMPARATOR\", `^${src[t2.GTLT]}\\\\s*(${src[t2.FULLPLAIN]})$|^$`);\n    createToken(\"COMPARATORTRIM\", `(\\\\s*)${src[t2.GTLT]}\\\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true);\n    exports.comparatorTrimReplace = \"$1$2$3\";\n    createToken(\"HYPHENRANGE\", `^\\\\s*(${src[t2.XRANGEPLAIN]})\\\\s+-\\\\s+(${src[t2.XRANGEPLAIN]})\\\\s*$`);\n    createToken(\"HYPHENRANGELOOSE\", `^\\\\s*(${src[t2.XRANGEPLAINLOOSE]})\\\\s+-\\\\s+(${src[t2.XRANGEPLAINLOOSE]})\\\\s*$`);\n    createToken(\"STAR\", \"(<|>)?=?\\\\s*\\\\*\");\n    createToken(\"GTE0\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$\");\n    createToken(\"GTE0PRE\", \"^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$\");\n  })(re, re.exports);\n  return re.exports;\n}\nvar parseOptions_1;\nvar hasRequiredParseOptions;\nfunction requireParseOptions() {\n  if (hasRequiredParseOptions) return parseOptions_1;\n  hasRequiredParseOptions = 1;\n  const looseOption = Object.freeze({ loose: true });\n  const emptyOpts = Object.freeze({});\n  const parseOptions = (options) => {\n    if (!options) {\n      return emptyOpts;\n    }\n    if (typeof options !== \"object\") {\n      return looseOption;\n    }\n    return options;\n  };\n  parseOptions_1 = parseOptions;\n  return parseOptions_1;\n}\nvar identifiers;\nvar hasRequiredIdentifiers;\nfunction requireIdentifiers() {\n  if (hasRequiredIdentifiers) return identifiers;\n  hasRequiredIdentifiers = 1;\n  const numeric = /^[0-9]+$/;\n  const compareIdentifiers = (a2, b2) => {\n    const anum = numeric.test(a2);\n    const bnum = numeric.test(b2);\n    if (anum && bnum) {\n      a2 = +a2;\n      b2 = +b2;\n    }\n    return a2 === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b2 ? -1 : 1;\n  };\n  const rcompareIdentifiers = (a2, b2) => compareIdentifiers(b2, a2);\n  identifiers = {\n    compareIdentifiers,\n    rcompareIdentifiers\n  };\n  return identifiers;\n}\nvar semver;\nvar hasRequiredSemver;\nfunction requireSemver() {\n  if (hasRequiredSemver) return semver;\n  hasRequiredSemver = 1;\n  const debug = requireDebug();\n  const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants();\n  const { safeRe: re2, t: t2 } = requireRe();\n  const parseOptions = requireParseOptions();\n  const { compareIdentifiers } = requireIdentifiers();\n  class SemVer {\n    constructor(version, options) {\n      options = parseOptions(options);\n      if (version instanceof SemVer) {\n        if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {\n          return version;\n        } else {\n          version = version.version;\n        }\n      } else if (typeof version !== \"string\") {\n        throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`);\n      }\n      if (version.length > MAX_LENGTH) {\n        throw new TypeError(\n          `version is longer than ${MAX_LENGTH} characters`\n        );\n      }\n      debug(\"SemVer\", version, options);\n      this.options = options;\n      this.loose = !!options.loose;\n      this.includePrerelease = !!options.includePrerelease;\n      const m2 = version.trim().match(options.loose ? re2[t2.LOOSE] : re2[t2.FULL]);\n      if (!m2) {\n        throw new TypeError(`Invalid Version: ${version}`);\n      }\n      this.raw = version;\n      this.major = +m2[1];\n      this.minor = +m2[2];\n      this.patch = +m2[3];\n      if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n        throw new TypeError(\"Invalid major version\");\n      }\n      if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n        throw new TypeError(\"Invalid minor version\");\n      }\n      if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n        throw new TypeError(\"Invalid patch version\");\n      }\n      if (!m2[4]) {\n        this.prerelease = [];\n      } else {\n        this.prerelease = m2[4].split(\".\").map((id) => {\n          if (/^[0-9]+$/.test(id)) {\n            const num = +id;\n            if (num >= 0 && num < MAX_SAFE_INTEGER) {\n              return num;\n            }\n          }\n          return id;\n        });\n      }\n      this.build = m2[5] ? m2[5].split(\".\") : [];\n      this.format();\n    }\n    format() {\n      this.version = `${this.major}.${this.minor}.${this.patch}`;\n      if (this.prerelease.length) {\n        this.version += `-${this.prerelease.join(\".\")}`;\n      }\n      return this.version;\n    }\n    toString() {\n      return this.version;\n    }\n    compare(other) {\n      debug(\"SemVer.compare\", this.version, this.options, other);\n      if (!(other instanceof SemVer)) {\n        if (typeof other === \"string\" && other === this.version) {\n          return 0;\n        }\n        other = new SemVer(other, this.options);\n      }\n      if (other.version === this.version) {\n        return 0;\n      }\n      return this.compareMain(other) || this.comparePre(other);\n    }\n    compareMain(other) {\n      if (!(other instanceof SemVer)) {\n        other = new SemVer(other, this.options);\n      }\n      return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);\n    }\n    comparePre(other) {\n      if (!(other instanceof SemVer)) {\n        other = new SemVer(other, this.options);\n      }\n      if (this.prerelease.length && !other.prerelease.length) {\n        return -1;\n      } else if (!this.prerelease.length && other.prerelease.length) {\n        return 1;\n      } else if (!this.prerelease.length && !other.prerelease.length) {\n        return 0;\n      }\n      let i2 = 0;\n      do {\n        const a2 = this.prerelease[i2];\n        const b2 = other.prerelease[i2];\n        debug(\"prerelease compare\", i2, a2, b2);\n        if (a2 === void 0 && b2 === void 0) {\n          return 0;\n        } else if (b2 === void 0) {\n          return 1;\n        } else if (a2 === void 0) {\n          return -1;\n        } else if (a2 === b2) {\n          continue;\n        } else {\n          return compareIdentifiers(a2, b2);\n        }\n      } while (++i2);\n    }\n    compareBuild(other) {\n      if (!(other instanceof SemVer)) {\n        other = new SemVer(other, this.options);\n      }\n      let i2 = 0;\n      do {\n        const a2 = this.build[i2];\n        const b2 = other.build[i2];\n        debug(\"build compare\", i2, a2, b2);\n        if (a2 === void 0 && b2 === void 0) {\n          return 0;\n        } else if (b2 === void 0) {\n          return 1;\n        } else if (a2 === void 0) {\n          return -1;\n        } else if (a2 === b2) {\n          continue;\n        } else {\n          return compareIdentifiers(a2, b2);\n        }\n      } while (++i2);\n    }\n    // preminor will bump the version up to the next minor release, and immediately\n    // down to pre-release. premajor and prepatch work the same way.\n    inc(release, identifier, identifierBase) {\n      switch (release) {\n        case \"premajor\":\n          this.prerelease.length = 0;\n          this.patch = 0;\n          this.minor = 0;\n          this.major++;\n          this.inc(\"pre\", identifier, identifierBase);\n          break;\n        case \"preminor\":\n          this.prerelease.length = 0;\n          this.patch = 0;\n          this.minor++;\n          this.inc(\"pre\", identifier, identifierBase);\n          break;\n        case \"prepatch\":\n          this.prerelease.length = 0;\n          this.inc(\"patch\", identifier, identifierBase);\n          this.inc(\"pre\", identifier, identifierBase);\n          break;\n        // If the input is a non-prerelease version, this acts the same as\n        // prepatch.\n        case \"prerelease\":\n          if (this.prerelease.length === 0) {\n            this.inc(\"patch\", identifier, identifierBase);\n          }\n          this.inc(\"pre\", identifier, identifierBase);\n          break;\n        case \"major\":\n          if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {\n            this.major++;\n          }\n          this.minor = 0;\n          this.patch = 0;\n          this.prerelease = [];\n          break;\n        case \"minor\":\n          if (this.patch !== 0 || this.prerelease.length === 0) {\n            this.minor++;\n          }\n          this.patch = 0;\n          this.prerelease = [];\n          break;\n        case \"patch\":\n          if (this.prerelease.length === 0) {\n            this.patch++;\n          }\n          this.prerelease = [];\n          break;\n        // This probably shouldn't be used publicly.\n        // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n        case \"pre\": {\n          const base = Number(identifierBase) ? 1 : 0;\n          if (!identifier && identifierBase === false) {\n            throw new Error(\"invalid increment argument: identifier is empty\");\n          }\n          if (this.prerelease.length === 0) {\n            this.prerelease = [base];\n          } else {\n            let i2 = this.prerelease.length;\n            while (--i2 >= 0) {\n              if (typeof this.prerelease[i2] === \"number\") {\n                this.prerelease[i2]++;\n                i2 = -2;\n              }\n            }\n            if (i2 === -1) {\n              if (identifier === this.prerelease.join(\".\") && identifierBase === false) {\n                throw new Error(\"invalid increment argument: identifier already exists\");\n              }\n              this.prerelease.push(base);\n            }\n          }\n          if (identifier) {\n            let prerelease = [identifier, base];\n            if (identifierBase === false) {\n              prerelease = [identifier];\n            }\n            if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n              if (isNaN(this.prerelease[1])) {\n                this.prerelease = prerelease;\n              }\n            } else {\n              this.prerelease = prerelease;\n            }\n          }\n          break;\n        }\n        default:\n          throw new Error(`invalid increment argument: ${release}`);\n      }\n      this.raw = this.format();\n      if (this.build.length) {\n        this.raw += `+${this.build.join(\".\")}`;\n      }\n      return this;\n    }\n  }\n  semver = SemVer;\n  return semver;\n}\nvar parse_1;\nvar hasRequiredParse;\nfunction requireParse() {\n  if (hasRequiredParse) return parse_1;\n  hasRequiredParse = 1;\n  const SemVer = requireSemver();\n  const parse = (version, options, throwErrors = false) => {\n    if (version instanceof SemVer) {\n      return version;\n    }\n    try {\n      return new SemVer(version, options);\n    } catch (er) {\n      if (!throwErrors) {\n        return null;\n      }\n      throw er;\n    }\n  };\n  parse_1 = parse;\n  return parse_1;\n}\nvar valid_1;\nvar hasRequiredValid;\nfunction requireValid() {\n  if (hasRequiredValid) return valid_1;\n  hasRequiredValid = 1;\n  const parse = requireParse();\n  const valid2 = (version, options) => {\n    const v = parse(version, options);\n    return v ? v.version : null;\n  };\n  valid_1 = valid2;\n  return valid_1;\n}\nvar validExports = requireValid();\nconst valid = /* @__PURE__ */ getDefaultExportFromCjs(validExports);\nvar major_1;\nvar hasRequiredMajor;\nfunction requireMajor() {\n  if (hasRequiredMajor) return major_1;\n  hasRequiredMajor = 1;\n  const SemVer = requireSemver();\n  const major2 = (a2, loose) => new SemVer(a2, loose).major;\n  major_1 = major2;\n  return major_1;\n}\nvar majorExports = requireMajor();\nconst major = /* @__PURE__ */ getDefaultExportFromCjs(majorExports);\nclass ProxyBus {\n  bus;\n  constructor(bus2) {\n    if (typeof bus2.getVersion !== \"function\" || !valid(bus2.getVersion())) {\n      console.warn(\"Proxying an event bus with an unknown or invalid version\");\n    } else if (major(bus2.getVersion()) !== major(this.getVersion())) {\n      console.warn(\n        \"Proxying an event bus of version \" + bus2.getVersion() + \" with \" + this.getVersion()\n      );\n    }\n    this.bus = bus2;\n  }\n  getVersion() {\n    return \"3.3.1\";\n  }\n  subscribe(name, handler) {\n    this.bus.subscribe(name, handler);\n  }\n  unsubscribe(name, handler) {\n    this.bus.unsubscribe(name, handler);\n  }\n  emit(name, event) {\n    this.bus.emit(name, event);\n  }\n}\nclass SimpleBus {\n  handlers = /* @__PURE__ */ new Map();\n  getVersion() {\n    return \"3.3.1\";\n  }\n  subscribe(name, handler) {\n    this.handlers.set(\n      name,\n      (this.handlers.get(name) || []).concat(\n        handler\n      )\n    );\n  }\n  unsubscribe(name, handler) {\n    this.handlers.set(\n      name,\n      (this.handlers.get(name) || []).filter((h2) => h2 !== handler)\n    );\n  }\n  emit(name, event) {\n    (this.handlers.get(name) || []).forEach((h2) => {\n      try {\n        h2(event);\n      } catch (e2) {\n        console.error(\"could not invoke event listener\", e2);\n      }\n    });\n  }\n}\nlet bus = null;\nfunction getBus() {\n  if (bus !== null) {\n    return bus;\n  }\n  if (typeof window === \"undefined\") {\n    return new Proxy({}, {\n      get: () => {\n        return () => console.error(\n          \"Window not available, EventBus can not be established!\"\n        );\n      }\n    });\n  }\n  if (window.OC?._eventBus && typeof window._nc_event_bus === \"undefined\") {\n    console.warn(\n      \"found old event bus instance at OC._eventBus. Update your version!\"\n    );\n    window._nc_event_bus = window.OC._eventBus;\n  }\n  if (typeof window?._nc_event_bus !== \"undefined\") {\n    bus = new ProxyBus(window._nc_event_bus);\n  } else {\n    bus = window._nc_event_bus = new SimpleBus();\n  }\n  return bus;\n}\nfunction emit(name, event) {\n  getBus().emit(name, event);\n}\n/*!\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nclass FileListFilter extends TypedEventTarget {\n  id;\n  order;\n  constructor(id, order = 100) {\n    super();\n    this.id = id;\n    this.order = order;\n  }\n  filter(nodes) {\n    throw new Error(\"Not implemented\");\n  }\n  updateChips(chips) {\n    this.dispatchTypedEvent(\"update:chips\", new CustomEvent(\"update:chips\", { detail: chips }));\n  }\n  filterUpdated() {\n    this.dispatchTypedEvent(\"update:filter\", new CustomEvent(\"update:filter\"));\n  }\n}\nfunction registerFileListFilter(filter) {\n  if (!window._nc_filelist_filters) {\n    window._nc_filelist_filters = /* @__PURE__ */ new Map();\n  }\n  if (window._nc_filelist_filters.has(filter.id)) {\n    throw new Error(`File list filter \"${filter.id}\" already registered`);\n  }\n  window._nc_filelist_filters.set(filter.id, filter);\n  emit(\"files:filter:added\", filter);\n}\nfunction unregisterFileListFilter(filterId) {\n  if (window._nc_filelist_filters && window._nc_filelist_filters.has(filterId)) {\n    window._nc_filelist_filters.delete(filterId);\n    emit(\"files:filter:removed\", filterId);\n  }\n}\nfunction getFileListFilters() {\n  if (!window._nc_filelist_filters) {\n    return [];\n  }\n  return [...window._nc_filelist_filters.values()];\n}\nconst addNewFileMenuEntry = function(entry) {\n  const newFileMenu = getNewFileMenu();\n  return newFileMenu.registerEntry(entry);\n};\nconst removeNewFileMenuEntry = function(entry) {\n  const newFileMenu = getNewFileMenu();\n  return newFileMenu.unregisterEntry(entry);\n};\nconst getNewFileMenuEntries = function(context) {\n  const newFileMenu = getNewFileMenu();\n  return newFileMenu.getEntries(context).sort((a2, b2) => {\n    if (a2.order !== void 0 && b2.order !== void 0 && a2.order !== b2.order) {\n      return a2.order - b2.order;\n    }\n    return a2.displayName.localeCompare(b2.displayName, void 0, { numeric: true, sensitivity: \"base\" });\n  });\n};\nexport {\n  Column,\n  DefaultType,\n  q as File,\n  FileAction,\n  FileListAction,\n  FileListFilter,\n  F as FileType,\n  FilesSortingMode,\n  s as Folder,\n  Header,\n  InvalidFilenameError,\n  InvalidFilenameErrorReason,\n  Navigation,\n  NewMenuEntryCategory,\n  N as Node,\n  t as NodeStatus,\n  P as Permission,\n  View,\n  addNewFileMenuEntry,\n  c as davGetClient,\n  l as davGetDefaultPropfind,\n  m as davGetFavoritesReport,\n  n as davGetRecentSearch,\n  a as davGetRemoteURL,\n  g as davGetRootPath,\n  p as davParsePermissions,\n  b as davRemoteURL,\n  r as davResultToNode,\n  d as davRootPath,\n  h as defaultDavNamespaces,\n  f as defaultDavProperties,\n  formatFileSize,\n  k as getDavNameSpaces,\n  j as getDavProperties,\n  e as getFavoriteNodes,\n  getFileActions,\n  getFileListActions,\n  getFileListFilters,\n  getFileListHeaders,\n  getNavigation,\n  getNewFileMenuEntries,\n  getUniqueName,\n  isFilenameValid,\n  orderBy,\n  parseFileSize,\n  i as registerDavProperty,\n  registerFileAction,\n  registerFileListAction,\n  registerFileListFilter,\n  registerFileListHeaders,\n  removeNewFileMenuEntry,\n  sortNodes,\n  unregisterFileListFilter,\n  validateFilename\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + chunkId + \".js?v=\" + {\"2441\":\"fc741cf57e9647f370a3\",\"5862\":\"142cd48ca8ec32e57725\",\"7874\":\"cd16576625b0c6e0d277\"}[chunkId] + \"\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 2573;","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2573: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknextcloud\"] = self[\"webpackChunknextcloud\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4208], () => (__webpack_require__(88864)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","originalLocation","Column","id","title","t","render","node","parseOriginalLocation","span","document","createElement","textContent","sort","nodeA","nodeB","locationA","locationB","localeCompare","getLanguage","getCanonicalLocale","numeric","usage","deletedBy","userId","displayName","label","parseDeletedBy","Vue","extend","NcUserBubble","propsData","size","user","undefined","$mount","$el","deletedByA","deletedbyALabel","deletedByB","deletedByBLabel","deleted","deletionTime","attributes","mtime","getTime","moment","unix","format","fromNow","deletionTimeA","path","stringOrNull","dir","dirname","replace","currentUserId","getCurrentUser","uid","attribute","String","rootPath","client","davGetClient","data","getDavNameSpaces","getDavProperties","resultToNode","stat","davResultToNode","previewUrl","generateUrl","fileid","TRASHBIN_VIEW_ID","trashbinView","View","name","caption","emptyTitle","emptyCaption","icon","svgDelete","order","sticky","defaultSortKey","columns","getContents","async","arguments","length","contents","getDirectoryContents","details","includeSelf","map","folder","splice","findIndex","getLoggerBuilder","setApp","detectUser","build","restoreAction","FileAction","iconSvgInline","enabled","nodes","view","permissions","every","permission","Boolean","Permission","READ","exec","destination","generateRemoteUrl","encodePath","basename","axios","request","method","url","encodedSource","headers","emit","error","logger","execBatch","Promise","all","this","inline","emptyTrashAction","FileListAction","loadState","allow_delete","askConfirmation","resolve","getDialogBuilder","setSeverity","DialogSeverity","Warning","setText","setButtons","type","callback","show","then","delete","defaultRemoteURL","showSuccess","showError","emptyTrash","forEach","showInfo","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","getNavigation","register","registerFileListAction","registerFileAction","___CSS_LOADER_EXPORT___","push","module","DefaultType","DefaultType2","_action","constructor","action","validateAction","parent","default","destructive","renderInline","Error","Object","values","includes","window","_nc_fileactions","debug","find","search","_nc_filelistactions","listAction","humanList","humanListBinary","formatFileSize","skipSmallSizes","binaryPrefixes","base1000","Number","Math","floor","log","min","readableFormat","relativeSize","pow","toFixed","parseFloat","toLocaleString","stringify","value","Date","toISOString","sortNodes","sortingOptions","sortingMode","sortingOrder","collection","identifiers2","orders","sorting","_","index","collator","Intl","Collator","a2","b2","identifier","entries","compare","orderBy","sortFavoritesFirst","v","favorite","sortFoldersFirst","basename2","displayname","lastIndexOf","slice","Navigation","_views","_currentView","dispatchTypedEvent","CustomEvent","remove","setActive","event","detail","active","views","_nc_navigation","_column","column","isValidColumn","summary","hasRequiredUtil","hasRequiredValidator","validator","util","requireUtil","exports","nameStartChar","nameRegexp","regexName","RegExp","isExist","isEmptyObject","obj","keys","merge","target","arrayMode","len","i2","getValue","isName","string","getAllMatches","regex","matches","match","allmatches","startIndex","lastIndex","requireValidator","util2","defaultOptions","allowBooleanAttributes","unpairedTags","isWhiteSpace","char","readPI","xmlData","start","tagname","substr","getErrorObject","getLineNumberForPosition","readCommentAndCDATA","angleBracketsCount","validate","assign","tags","tagFound","reachedRoot","err","tagStartPos","closingTag","tagName","trim","substring","msg","result","readAttributeStr","attrStr","attrStrStart","isValid","validateAttributeString","code","line","tagClosed","otg","pop","openPos","col","indexOf","afterAmp","validateAmpersand","JSON","t2","doubleQuote","singleQuote","startChar","validAttrStrRegxp","attrNames","getPositionFromMatch","attrName","validateAttrName","hasOwnProperty","re2","validateNumberAmpersand","count","message","lineNumber","lines","split","hasRequiredOptionsBuilder","xmlNode","hasRequiredXmlNode","DocTypeReader","hasRequiredDocTypeReader","strnum","hasRequiredStrnum","ignoreAttributes","hasRequiredIgnoreAttributes","OrderedObjParser_1","hasRequiredOrderedObjParser","OptionsBuilder","requireIgnoreAttributes","ignoreAttributes2","Array","isArray","pattern","test","hasRequiredNode2json","XMLParser_1","hasRequiredXMLParser","orderedJs2Xml","hasRequiredOrderedJs2Xml","json2xml","hasRequiredJson2xml","fxp","hasRequiredFxp","node2json","requireNode2json","compress","arr","jPath","text","compressedObj","tagObj","property","propName","newJpath","textNodeName","val","isLeaf","isLeafTag","assignAttributes","alwaysCreateTextNode","key","attrMap","jpath","atrrName","propCount","prettify","requireXMLParser","buildOptions","preserveOrder","attributeNamePrefix","attributesGroupName","removeNSPrefix","parseTagValue","parseAttributeValue","trimValues","cdataPropName","numberParseOptions","hex","leadingZeros","eNotation","tagValueProcessor","attributeValueProcessor","stopNodes","commentPropName","processEntities","htmlEntities","ignoreDeclaration","ignorePiTags","transformTagName","transformAttributeName","updateTag","attrs","requireOptionsBuilder","OrderedObjParser","xmlNode2","child","add","addChild","readDocType","readEntityExp","entityName","isEntity","isElement","isAttlist","isNotation","validateEntityName","entities","hasBody","comment","exp","regx","i","requireDocTypeReader","toNumber","hexRegex","numRegex","parseInt","consider","decimalPoint","str","trimmedStr","skipLike","sign","numTrimmedByZeros","numStr","num","requireStrnum","getIgnoreAttributesFn","addExternalEntities","externalEntities","entKeys","ent","lastEntities","parseTextData","dontTrim","hasAttributes","isLeafNode","escapeEntities","replaceEntitiesValue","newval","parseValue","resolveNameSpace","prefix","charAt","attrsRegx","buildAttributesMap","ignoreAttributesFn","oldVal","aName","newVal","attrCollection","parseXml","xmlObj","currentNode","textData","closeIndex","findClosingIndex","colonIndex","saveTextToParentTag","lastTagName","propIndex","tagsNodeStack","tagData","readTagExp","childNode","tagExp","attrExpPresent","endIndex","docTypeEntities","rawTagName","lastTag","isItStopNode","tagContent","result2","readStopNodeData","entity","ampEntity","currentTagName","allNodesExp","stopNodePath","stopNodeExp","errMsg","closingIndex","closingChar","attrBoundary","ch","tagExpWithClosingIndex","separatorIndex","trimStart","openTagCount","shouldParse","fromCharCode","requireOrderedObjParser","validator2","parse","validationOption","toString","orderedObjParser","orderedResult","addEntity","requireOrderedJs2Xml","arrToStr","indentation","xmlStr","isPreviousElementTag","newJPath","tagText","isStopNode","attStr2","attr_to_str","tempInd","piTextNodeName","newIdentation","indentBy","tagStart","tagValue","suppressUnpairedNode","suppressEmptyNode","endsWith","attr","attrVal","suppressBooleanAttributes","textValue","jArray","fxpExports","XMLParser","XMLBuilder","buildFromOrderedJs","oneListGroup","Builder","isAttribute","attrPrefixLen","processTextOrObjNode","indentate","tagEndChar","newLine","object","level","ajPath","j2x","concat","buildTextValNode","buildObjectNode","repeat","startsWith","prototype","jObj","arrayNodeName","join","call","buildAttrPairStr","arrLen","listTagVal","listTagAttr","j2","item","Ks","L","closeTag","tagEndExp","piClosingChar","requireJson2xml","XMLValidator","requireFxp","_view","isValidView","params","emptyView","expanded","loadChildViews","TypeError","jsonObject","parser","some","x","toLowerCase","isSvg","debug_1","hasRequiredDebug","constants","hasRequiredConstants","requireDebug","process","env","NODE_DEBUG","args","console","requireConstants","MAX_SAFE_INTEGER","MAX_LENGTH","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","RELEASE_TYPES","SEMVER_SPEC_VERSION","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","hasRequiredRe","parseOptions_1","hasRequiredParseOptions","identifiers","hasRequiredIdentifiers","semver","hasRequiredSemver","parse_1","hasRequiredParse","valid_1","hasRequiredValid","major_1","hasRequiredMajor","re","requireSemver","safeRe","src","R","LETTERDASHNUMBER","safeRegexReplacements","createToken","isGlobal","safe","token","max","makeSafeRegex","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","PRERELEASE","BUILD","FULLPLAIN","MAINVERSIONLOOSE","PRERELEASELOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","COERCE","COERCEFULL","LONETILDE","tildeTrimReplace","LONECARET","caretTrimReplace","comparatorTrimReplace","parseOptions","looseOption","freeze","loose","emptyOpts","requireParseOptions","compareIdentifiers","anum","bnum","rcompareIdentifiers","requireIdentifiers","SemVer","version","includePrerelease","m2","LOOSE","FULL","raw","major","minor","patch","prerelease","other","compareMain","comparePre","compareBuild","inc","release","identifierBase","base","isNaN","throwErrors","er","requireParse","requireValid","requireMajor","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","m","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","e","chunkId","reduce","promises","u","g","globalThis","Function","prop","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","timeout","nc","setAttribute","onScriptComplete","prev","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","head","appendChild","Symbol","toStringTag","nmd","paths","children","scriptUrl","importScripts","location","currentScript","toUpperCase","p","b","baseURI","self","href","installedChunks","installedChunkData","promise","reject","errorType","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}