Kemono Downloader

A modern UI, multi-download method, customizable Kemono downloader

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name              Kemono Downloader
// @name:en           Kemono Downloader
// @name:zh           Kemono下载器
// @name:zh-CN        Kemono下载器
// @name:zh-TW        Kemono下載器
// @namespace         https://greasyfork.org/users/667968-pyudng
// @version           1.6.3
// @author            PY-DNG
// @description       A modern UI, multi-download method, customizable Kemono downloader
// @description:en    A modern UI, multi-download method, customizable Kemono downloader
// @description:zh    一個具有現代化UI、多下載途徑、可自定義的Kemono下載器
// @description:zh-CN 一个具有现代化UI、多下载途径、可自定义的Kemono下载器
// @description:zh-TW 一個具有現代化UI、多下載途徑、可自定義的Kemono下載器
// @license           GPL-3.0-or-later
// @icon              https://kemono.cr/assets/favicon-CPB6l7kH.ico
// @homepageURL       https://github.com/PYUDNG/Kemono-Downloader
// @supportURL        https://github.com/PYUDNG/Kemono-Downloader/issues
// @match             http*://*.kemono.party/*
// @match             http*://*.kemono.su/*
// @match             http*://*.kemono.cr/*
// @require           https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.prod.js
// @require           https://cdn.jsdelivr.net/npm/[email protected]/dist/system.min.js
// @require           https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-register.min.js
// @require           data:application/javascript,%3B(typeof%20System!%3D'undefined')%26%26(System%3Dnew%20System.constructor())%3B
// @connect           kemono.party
// @connect           kemono.su
// @connect           kemono.cr
// @connect           self
// @connect           *
// @grant             GM_addValueChangeListener
// @grant             GM_deleteValue
// @grant             GM_download
// @grant             GM_getValue
// @grant             GM_info
// @grant             GM_listValues
// @grant             GM_openInTab
// @grant             GM_registerMenuCommand
// @grant             GM_setClipboard
// @grant             GM_setValue
// @grant             GM_xmlhttpRequest
// ==/UserScript==

// ============================================================================
// 📝 源代码说明 / Source Code Notice
// 
// 你好!这是用户脚本的构建版本,不是原始源代码。
// 这个脚本是用 TypeScript 和 Vue.js 开发的,通过构建工具编译成 JavaScript。
// 
// Hello! This is the built version of the userscript, not the original source code.
// This script is developed in TypeScript and Vue.js, compiled to JavaScript via build tools.
// 
// 🔍 查看完整源代码 / View Full Source Code:
// https://github.com/PYUDNG/Kemono-Downloader
// 
// 仓库中包含 / Repository includes:
// • TypeScript 源代码 (.ts) / TypeScript source files
// • Vue.js 组件 (.vue) / Vue.js components
// • 构建配置和开发脚本 / Build configurations and development scripts
// • 详细的文档说明 / Detailed documentation
// • 包含代码压缩的构建版本 / built version with code compression
// 
// 这个未压缩版本是为了满足 GreasyFork 的代码审查要求而提供的。
// 如果你愿意,也可以阅读这个构建版本的代码来了解脚本的实际执行逻辑。
// 
// This unminified version is provided to comply with GreasyFork's code review requirements.
// If you'd like, you can also read this built version to understand the script's actual execution logic.
// 
// 有任何疑问或建议?欢迎在 GitHub 上提交 Issue!
// Questions or suggestions? Feel free to submit an Issue on GitHub!
// ============================================================================

System.addImportMap({imports: {vue: "user:vue"}});
System.set(
 "user:vue",
 (() => {
  const _ = Vue;
  "default" in _ || (_.default = _);
  return _;
 })(),
);

System.register("./__entry.js", ["./__monkey.entry-ADIUHjcX.js"], function (exports, module) {
 "use strict";
 return {setters: [null], execute: function () {}};
});

System.register("./__monkey.entry-ADIUHjcX.js", ["vue"], function (exports, module) {
 "use strict";
 var defineComponent, h$2, inject, onMounted, onUnmounted, markRaw, ref, computed, watch, reactive, Fragment, Vue, shallowRef, mergeProps, createApp, createElementBlock, openBlock, createElementVNode, createStaticVNode, createVNode, unref, toDisplayString$1, renderList, effectScope, readonly, createBlock, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps, getCurrentInstance$1, provide, mergeModels, useModel, resolveDynamicComponent, isRef, nextTick, createCommentVNode, normalizeClass, withDirectives, vShow, useTemplateRef, createTextVNode, useId, resolveDirective, useSlots, Text, Teleport, resolveComponent, TransitionGroup, Transition, withModifiers, normalizeStyle, toHandlers;
 return {
  setters: [
   (module) => {
    defineComponent = module.defineComponent;
    h$2 = module.h;
    inject = module.inject;
    onMounted = module.onMounted;
    onUnmounted = module.onUnmounted;
    markRaw = module.markRaw;
    ref = module.ref;
    computed = module.computed;
    watch = module.watch;
    reactive = module.reactive;
    Fragment = module.Fragment;
    Vue = module;
    shallowRef = module.shallowRef;
    mergeProps = module.mergeProps;
    createApp = module.createApp;
    createElementBlock = module.createElementBlock;
    openBlock = module.openBlock;
    createElementVNode = module.createElementVNode;
    createStaticVNode = module.createStaticVNode;
    createVNode = module.createVNode;
    unref = module.unref;
    toDisplayString$1 = module.toDisplayString;
    renderList = module.renderList;
    effectScope = module.effectScope;
    readonly = module.readonly;
    createBlock = module.createBlock;
    createSlots = module.createSlots;
    withCtx = module.withCtx;
    renderSlot = module.renderSlot;
    normalizeProps = module.normalizeProps;
    guardReactiveProps = module.guardReactiveProps;
    getCurrentInstance$1 = module.getCurrentInstance;
    provide = module.provide;
    mergeModels = module.mergeModels;
    useModel = module.useModel;
    resolveDynamicComponent = module.resolveDynamicComponent;
    isRef = module.isRef;
    nextTick = module.nextTick;
    createCommentVNode = module.createCommentVNode;
    normalizeClass = module.normalizeClass;
    withDirectives = module.withDirectives;
    vShow = module.vShow;
    useTemplateRef = module.useTemplateRef;
    createTextVNode = module.createTextVNode;
    useId = module.useId;
    resolveDirective = module.resolveDirective;
    useSlots = module.useSlots;
    Text = module.Text;
    Teleport = module.Teleport;
    resolveComponent = module.resolveComponent;
    TransitionGroup = module.TransitionGroup;
    Transition = module.Transition;
    withModifiers = module.withModifiers;
    normalizeStyle = module.normalizeStyle;
    toHandlers = module.toHandlers;
   },
  ],
  execute: function () {
   exports("d", detectDom);

   const r = new Set();
   const importCSS = exports("i", async (e) => {
    r.has(e) ||
     (r.add(e),
     ((t) => {
      Array.isArray(window._importedStyles) ? window._importedStyles.push(t) : (window._importedStyles = [t]);
     })(e));
   });

   importCSS(" @keyframes p-progressbar-indeterminate-anim{0%{inset-inline-end:100%;inset-inline-start:-35%}60%{inset-inline-end:-90%;inset-inline-start:100%}to{inset-inline-end:-90%;inset-inline-start:100%}}@keyframes p-progressbar-indeterminate-anim-short{0%{inset-inline-end:100%;inset-inline-start:-200%}60%{inset-inline-end:-8%;inset-inline-start:107%}to{inset-inline-end:-8%;inset-inline-start:107%}}.corner-cell[data-v-65d307f0]{background:linear-gradient(to top right,transparent calc(50% - 1.5px),var(--color-surface-200),transparent calc(50% + 1.5px));position:relative}.dark .corner-cell[data-v-65d307f0]{background:linear-gradient(to top right,transparent calc(50% - 1.5px),var(--color-surface-800),transparent calc(50% + 1.5px))}.row-label[data-v-65d307f0]{position:absolute;right:5px;top:5px}.col-label[data-v-65d307f0]{bottom:5px;left:5px;position:absolute} ");

   const console$1 = Object.assign(Object.create(null), window.console);
   const addEventListener = exports("a", EventTarget.prototype.addEventListener);
   var _GM_addValueChangeListener = (() => (typeof GM_addValueChangeListener != "undefined" ? GM_addValueChangeListener : void 0))();
   var _GM_deleteValue = (() => (typeof GM_deleteValue != "undefined" ? GM_deleteValue : void 0))();
   var _GM_download = (() => (typeof GM_download != "undefined" ? GM_download : void 0))();
   var _GM_getValue = (() => (typeof GM_getValue != "undefined" ? GM_getValue : void 0))();
   var _GM_info = (() => (typeof GM_info != "undefined" ? GM_info : void 0))();
   var _GM_listValues = (() => (typeof GM_listValues != "undefined" ? GM_listValues : void 0))();
   var _GM_openInTab = (() => (typeof GM_openInTab != "undefined" ? GM_openInTab : void 0))();
   var _GM_registerMenuCommand = (() => (typeof GM_registerMenuCommand != "undefined" ? GM_registerMenuCommand : void 0))();
   var _GM_setClipboard = (() => (typeof GM_setClipboard != "undefined" ? GM_setClipboard : void 0))();
   var _GM_setValue = (() => (typeof GM_setValue != "undefined" ? GM_setValue : void 0))();
   var _GM_xmlhttpRequest = (() => (typeof GM_xmlhttpRequest != "undefined" ? GM_xmlhttpRequest : void 0))();
   function mitt(n) {
    return {
     all: (n = n || new Map()),
     on: function (t2, e) {
      var i2 = n.get(t2);
      i2 ? i2.push(e) : n.set(t2, [e]);
     },
     off: function (t2, e) {
      var i2 = n.get(t2);
      i2 && (e ? i2.splice(i2.indexOf(e) >>> 0, 1) : n.set(t2, []));
     },
     emit: function (t2, e) {
      var i2 = n.get(t2);
      (i2 &&
       i2.slice().map(function (n2) {
        n2(e);
       }),
       (i2 = n.get("*")) &&
        i2.slice().map(function (n2) {
         n2(t2, e);
        }));
     },
    };
   }
   const checkers = {switch: (val) => !!val, url: (val) => location.href === val, path: (val) => location.pathname === val, host: (val) => location.host === val, regurl: (val) => !!location.href.match(val), regpath: (val) => !!location.pathname.match(val), reghost: (val) => !!location.host.match(val), starturl: (val) => location.href.startsWith(val), startpath: (val) => location.pathname.startsWith(val), endhost: (val) => location.host.endsWith(val), func: (val) => !!val()};
   function testChecker(checker, mode2 = "or") {
    if (Array.isArray(checker)) {
     if (mode2 === "and") return checker.every((c2) => testChecker(c2));
     else return checker.some((c2) => testChecker(c2));
    }
    const result = checkers[checker.type](checker.value);
    const invert = !!checker.invert;
    return invert !== result;
   }
   class Logger {
    parent = null;
    static Level = {Debug: 0, Detail: 1, Info: 2, Warning: 3, Error: 4, Important: 5};
    level = Logger.Level.Info;
    static LevelColor = {Debug: "#94a3b8", Detail: "#10b981", Info: "inherit", Warning: "#f59e0b", Error: "#ef4444", Important: "#a855f7"};
    static PrefixColor = "#6366f1";
    static PrefixPathColor = "#f97316";
    cacheLogs = true;
    logsCache = [];
    events = mitt();
    prefixPath = [];
    constructor({level = Logger.Level.Info, path = []} = {}) {
     this.level = typeof level === "string" ? Logger.Level[level] : level;
     this.prefixPath.push(...path);
    }
    log(level, type, logger2 = "log", ...content) {
     const numLevel = Logger.Level[level];
     const logToConsole = numLevel >= this.level && logger2 !== null;
     if (isStringLog()) {
      const prefix2 = this.prefixPath.join(".");
      content = [
       `%c[${_GM_info.script.name}] %c[${prefix2}] %c[${level}]
${content[0]}`,
       `color: ${Logger.PrefixColor};`,
       `color: ${Logger.PrefixPathColor};`,
       `color: ${Logger.LevelColor[level]};`,
      ];
     }
     logToConsole && console$1[logger2].apply(null, content);
     const path = this.prefixPath;
     const item2 = {level, type, logger: logger2, path, content};
     this.cacheLogs && this.logsCache.push(item2);
     this.emit("log", item2);
     return logToConsole;
     function isStringLog(_content) {
      return type === "string";
     }
    }
    emit(event, item2) {
     this.events.emit(event, item2);
     this.parent?.emit(event, item2);
    }
    readCache() {
     return this.logsCache.splice(0, this.logsCache.length);
    }
    simple(level, content) {
     return this.log(level, "string", "log", content);
    }
    asLevel(level, content) {
     const map = {Debug: "log", Detail: "log", Info: "log", Warning: "warn", Error: "error", Important: "log"};
     return this.log(level, "raw", map[level], content);
    }
    withPath(name, ...names) {
     const logger2 = new Logger({level: this.level, path: this.prefixPath.concat(name, ...names)});
     logger2.parent = this;
     return logger2;
    }
   }
   const logger$9 = new Logger();
   logger$9.level = Logger.Level.Info;
   function deepEqual(value1, value2, sorting = true) {
    if (value1 === value2) return true;
    if (value1 == null || value2 == null) {
     return value1 === value2;
    }
    if (Number.isNaN(value1) && Number.isNaN(value2)) return true;
    if (typeof value1 !== typeof value2) return false;
    if (typeof value1 !== "object") return false;
    if (Array.isArray(value1)) {
     if (!Array.isArray(value2)) return false;
     if (value1.length !== value2.length) return false;
     if (sorting) {
      for (let i2 = 0; i2 < value1.length; i2++) {
       if (!deepEqual(value1[i2], value2[i2], sorting)) {
        return false;
       }
      }
      return true;
     }
     const arr2Copy = [...value2];
     for (const item1 of value1) {
      let found = false;
      for (let j2 = 0; j2 < arr2Copy.length; j2++) {
       if (deepEqual(item1, arr2Copy[j2], sorting)) {
        arr2Copy.splice(j2, 1);
        found = true;
        break;
       }
      }
      if (!found) return false;
     }
     return true;
    }
    if (typeof value1 === "object" && typeof value2 === "object") {
     const keys1 = Object.keys(value1);
     const keys2 = Object.keys(value2);
     if (keys1.length !== keys2.length) return false;
     if (sorting) {
      for (let i2 = 0; i2 < keys1.length; i2++) {
       if (keys1[i2] !== keys2[i2]) return false;
      }
     } else {
      const keys1Set = new Set(keys1);
      for (const key of keys2) {
       if (!keys1Set.has(key)) return false;
      }
     }
     for (const key of keys1) {
      if (!deepEqual(value1[key], value2[key], sorting)) {
       return false;
      }
     }
     return true;
    }
    return String(value1) === String(value2);
   }
   class Queue {
    tasks = [];
    ongoing = 0;
    config;
    constructor(config) {
     this.config = {max: config?.max ?? 3, sleep: config?.sleep ?? 500, preserve: config?.preserve ?? false};
    }
    updateConfig(newConfig) {
     Object.assign(this.config, newConfig);
     if (newConfig.max !== void 0) {
      this.checkTask();
     }
     return {...this.config};
    }
    getConfig() {
     return {...this.config};
    }
    enqueue(func, signal) {
     const {promise, reject: reject2, resolve} = Promise.withResolvers();
     const task = {func, reject: reject2, resolve, status: "queue"};
     this.tasks.push(task);
     promise
      .then(() => {
       task.status = "resolved";
      })
      .catch(() => {
       task.status = "rejected";
      })
      .finally(() => {
       this.ongoing--;
       this.config.preserve || this.tasks.splice(this.tasks.indexOf(task), 1);
       this.checkTask();
      });
     signal?.addEventListener("abort", () => task.reject("aborted"));
     this.checkTask();
     return promise;
    }
    checkTask() {
     while (this.ongoing < this.config.max) {
      const task = this.tasks.find((t2) => t2.status === "queue");
      if (!task) break;
      this.run(task);
     }
    }
    run(task) {
     this.ongoing++;
     task.status = "ongoing";
     setTimeout(async () => {
      try {
       const val = await Promise.resolve(task.func());
       task.resolve(val);
      } catch (err) {
       task.reject(err);
      }
     }, this.config.sleep);
    }
    getStatus() {
     return {pending: this.tasks.length, ongoing: this.ongoing, maxConcurrent: this.config.max, sleepBetweenTasks: this.config.sleep};
    }
    clear() {
     for (const task of this.tasks) {
      task.reject(new Error("Queue cleared"));
     }
     this.tasks = [];
    }
   }
   function safeBatchReplace(input, rules) {
    let chunks = [{text: input, fixed: false}];
    rules.forEach(({search: search2, replace}) => {
     if (!search2) return;
     const nextChunks = [];
     chunks.forEach((chunk) => {
      if (chunk.fixed) {
       nextChunks.push(chunk);
       return;
      }
      const parts = chunk.text.split(search2);
      parts.forEach((part, index) => {
       if (part !== "") {
        nextChunks.push({text: part, fixed: false});
       }
       if (index < parts.length - 1) {
        nextChunks.push({text: replace, fixed: true});
       }
      });
     });
     chunks = nextChunks;
    });
    return chunks.map((c2) => c2.text).join("");
   }
   function debounce(func, wait = 250, immediate = false) {
    let timeout = null;
    return function (...args) {
     if (immediate && timeout === null) {
      timeout = setTimeout(() => (timeout = null), wait);
      func.apply(this, args);
     } else if (!immediate) {
      timeout !== null && clearTimeout(timeout);
      timeout = setTimeout(() => {
       func.apply(this, args);
       timeout = null;
      }, wait);
     }
    };
   }
   function safeSerialize(val, depth = 5, visited = new WeakSet()) {
    if (depth <= 0) return "[Max Depth Reached]";
    if (val === null || typeof val !== "object") {
     if (typeof val === "bigint") return val.toString() + "n";
     if (typeof val === "symbol") return val.toString();
     if (typeof val === "function") return `[Function: ${val.name || "anonymous"}]`;
     return val;
    }
    if (visited.has(val)) return "[Circular]";
    if (typeof val === "object") visited.add(val);
    if (val instanceof Error) {
     return {name: val.name, message: val.message, stack: val.stack};
    }
    if (val instanceof Date) return val.toISOString();
    if (val instanceof Map) return Array.from(val.entries());
    if (val instanceof Set) return Array.from(val.values());
    if (val instanceof HTMLElement) {
     const tagName = val.tagName.toLowerCase();
     let attrList = [];
     for (const attr of val.attributes) {
      const value2 = attr.value.length > 50 ? attr.value.substring(0, 50) + `[${attr.value.length - 50} more...]` : attr.value;
      attrList.push(`${attr.name}=${JSON.stringify(value2)}`);
     }
     const attrs6 = attrList.length > 10 ? [...attrList.slice(0, 10), `[${attrList.length - 10} more...]`].join(" ") : attrList.join(" ");
     return `<${tagName} ${attrs6}>[${val.children.length} children, ${val.childNodes.length} child nodes]</${tagName}>`;
    }
    if (Array.isArray(val)) {
     return val.map((item2) => safeSerialize(item2, depth - 1, visited));
    }
    const res = {};
    for (const key in val) {
     if (Object.prototype.hasOwnProperty.call(val, key)) {
      res[key] = safeSerialize(val[key], depth - 1, visited);
     }
    }
    return res;
   }
   const jsUtils = Object.freeze(Object.defineProperty({__proto__: null, Queue, debounce, deepEqual, logger: logger$9, safeBatchReplace, safeSerialize, testChecker}, Symbol.toStringTag, {value: "Module"}));
   function request(options3, signal) {
    const {promise, reject: reject2, resolve} = Promise.withResolvers();
    const {abort} = _GM_xmlhttpRequest({
     ...options3,
     onload(response) {
      resolve(response.response);
      options3.onload?.call(this, response);
     },
     onerror(response) {
      reject2(response);
      options3.onerror?.call(this, response);
     },
     onabort() {
      reject2();
      options3.onabort?.();
     },
    });
    signal?.addEventListener("abort", () => abort());
    return promise;
   }
   async function requestJson(options3, signal) {
    const responseText = await request(options3, signal);
    const json = JSON.parse(responseText);
    return json;
   }
   async function requestBuffer(options3, signal) {
    options3.responseType = "arraybuffer";
    const blob = await request(options3, signal);
    return blob;
   }
   async function download(options3, signal) {
    const {promise, reject: reject2, resolve} = Promise.withResolvers();
    const {abort} = _GM_download({
     ...options3,
     onload() {
      const status = arguments[0]?.status ?? null;
      status === null || status < 400 ? resolve() : reject2();
      options3.onload?.call(this);
     },
     onerror(err) {
      reject2(err);
      options3.onerror?.call(this, err);
     },
     onabort(e) {
      reject2(e);
      options3.onabort?.call(this, e);
     },
    });
    signal?.addEventListener("abort", () => abort());
    return promise;
   }
   function detectDom(rootOrSelectorOrOptions, selectors, attributes, callback) {
    let config;
    if (rootOrSelectorOrOptions instanceof Node) {
     config = {selectors: Array.isArray(selectors) ? selectors : [selectors || ""], root: rootOrSelectorOrOptions, attributes: attributes || false, callback: callback || null};
    } else if (typeof rootOrSelectorOrOptions === "object" && !(rootOrSelectorOrOptions instanceof Node)) {
     const options3 = rootOrSelectorOrOptions;
     config = {selectors: Array.isArray(options3.selector) ? options3.selector : [options3.selector || ""], root: options3.root || document, attributes: options3.attributes || false, callback: options3.callback || null};
    } else {
     const selector = rootOrSelectorOrOptions;
     return new Promise((resolve) => {
      detectDom(document, selector, false, resolve);
     });
    }
    const checkExisting = () => {
     const elements = selectAll(config.root, config.selectors);
     if (elements.length > 0) {
      elements.forEach((elm) => {
       config.callback?.(elm);
      });
      return true;
     }
     return false;
    };
    if (checkExisting()) {
     const observer2 = new MutationObserver(() => {});
     observer2.disconnect();
     return observer2;
    }
    const observer = new MutationObserver((mutations) => {
     const addedNodes = [];
     mutations.forEach((mutation) => {
      if (mutation.type === "childList") {
       addedNodes.push(...mutation.addedNodes);
      } else if (mutation.type === "attributes" && mutation.target) {
       addedNodes.push(mutation.target);
      }
     });
     const matchedNodes = new Set();
     addedNodes.forEach((node) => {
      if (node instanceof HTMLElement && matches(node, config.selectors)) {
       matchedNodes.add(node);
      }
      const children = selectAll(node, config.selectors);
      children.forEach((child) => matchedNodes.add(child));
     });
     matchedNodes.forEach((node) => {
      config.callback?.(node);
      if (!config.callback) {
       observer.disconnect();
      }
     });
    });
    observer.observe(config.root, {childList: true, subtree: true, attributes: config.attributes});
    return observer;
   }
   function matches(element, selectors) {
    return selectors.some((selector) => element.matches(selector));
   }
   function selectAll(root20, selectors) {
    if (!(root20 instanceof Element || root20 instanceof Document || root20 instanceof DocumentFragment)) {
     return [];
    }
    return selectors.flatMap((selector) => {
     return Array.from(root20.querySelectorAll(selector));
    });
   }
   function $CrE(tag, options3 = {}) {
    const elm = document.createElement(tag);
    for (const [key, val] of Object.entries(options3.props ?? {})) Reflect.set(elm, key, val);
    for (const [key, val] of Object.entries(options3.attrs ?? {})) elm.setAttribute(key, val);
    Object.hasOwn(options3, "classes") && (elm.className = Array.isArray(options3.classes) ? options3.classes.join(" ") : (options3.classes ?? ""));
    typeof options3.styles === "string" ? (elm.style.cssText = options3.styles) : Object.assign(elm.style, options3.styles);
    options3.listeners?.forEach((args) => elm.addEventListener(...args));
    return elm;
   }
   class URLChangeMonitor {
    emitter;
    originalPushState;
    originalReplaceState;
    isInitialized = false;
    constructor() {
     this.emitter = mitt();
     this.originalPushState = history.pushState;
     this.originalReplaceState = history.replaceState;
    }
    init() {
     if (this.isInitialized) return;
     try {
      this.hookPushState();
      this.hookReplaceState();
      this.listenHashChange();
      this.listenPopstate();
      this.isInitialized = true;
     } catch (error) {
      const err = error instanceof Error ? error : new Error(`初始化失败:${String(error)}`);
      this.emitter.emit("error", err);
      console.error("[URLChangeMonitor] 初始化失败:", err);
     }
    }
    destroy() {
     if (!this.isInitialized) return;
     history.pushState = this.originalPushState;
     history.replaceState = this.originalReplaceState;
     window.removeEventListener("hashchange", this.handleHashChange);
     window.removeEventListener("popstate", this.handlePopstate);
     this.emitter.all.clear();
     this.isInitialized = false;
     console.log("[URLChangeMonitor] 销毁成功,已停止监听URL变更");
    }
    onUrlChange(callback, immediate = false) {
     this.emitter.on("urlChange", callback);
     immediate && this.triggerUrlChange("initial", "", location.href, null);
     return () => this.emitter.off("urlChange", callback);
    }
    onError(callback) {
     this.emitter.on("error", callback);
     return () => this.emitter.off("error", callback);
    }
    hookPushState() {
     const _this = this;
     history.pushState = function (state, title, url) {
      const oldUrl = window.location.href;
      _this.originalPushState.apply(this, [state, title, url]);
      _this.triggerUrlChange("pushState", oldUrl, url?.toString() || oldUrl, state);
     };
    }
    hookReplaceState() {
     const _this = this;
     history.replaceState = function (state, title, url) {
      const oldUrl = window.location.href;
      _this.originalReplaceState.apply(this, [state, title, url]);
      _this.triggerUrlChange("replaceState", oldUrl, url?.toString() || oldUrl, state);
     };
    }
    listenHashChange() {
     this.handleHashChange = this.handleHashChange.bind(this);
     window.addEventListener("hashchange", this.handleHashChange);
    }
    handleHashChange(e) {
     const isReplace = e.newURL === e.oldURL;
     const action = isReplace ? "replaceHash" : "pushHash";
     this.triggerUrlChange(action, e.oldURL, e.newURL, null);
    }
    listenPopstate() {
     this.handlePopstate = this.handlePopstate.bind(this);
     window.addEventListener("popstate", this.handlePopstate);
    }
    handlePopstate(e) {
     const oldUrl = window.location.href;
     this.triggerUrlChange("popstate", oldUrl, window.location.href, e.state);
    }
    triggerUrlChange(action, oldUrl, targetUrl, state) {
     const newUrlObj = new URL(targetUrl, window.location.origin);
     const detail = {action, oldUrl, newUrl: newUrlObj.href, hash: newUrlObj.hash, pathname: newUrlObj.pathname, search: newUrlObj.search, state};
     this.emitter.emit("urlChange", detail);
    }
   }
   async function saveAs(target2, filename) {
    let blob;
    if (typeof target2 === "string") {
     blob = new Blob([target2], {type: "text/plain"});
    } else if (target2 instanceof File) {
     blob = target2;
    } else if (target2 instanceof Blob) {
     blob = target2;
    } else if (target2 instanceof FileSystemFileHandle) {
     blob = await target2.getFile();
    } else {
     throw TypeError("Impossible: invalid argument target");
    }
    const url = URL.createObjectURL(blob);
    const a2 = $CrE("a", {attrs: {href: url, download: filename}});
    a2.click();
    setTimeout(() => URL.revokeObjectURL(url));
   }
   class TypedBroadcastChannel {
    channel;
    constructor(name) {
     this.channel = new BroadcastChannel(name);
    }
    post(message3) {
     this.channel.postMessage(message3);
    }
    onMessage(callback) {
     this.channel.addEventListener("message", (event) => callback(event.data));
    }
    close() {
     this.channel.close();
    }
   }
   const scriptRel = (function detectScriptRel() {
    const relList = typeof document !== "undefined" && document.createElement("link").relList;
    return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
   })();
   const assetsURL = function (dep) {
    return "/" + dep;
   };
   const seen = {};
   const __vitePreload = function preload(baseModule, deps, importerUrl) {
    let promise = Promise.resolve();
    if (deps && deps.length > 0) {
     let allSettled = function (promises$2) {
      return Promise.all(
       promises$2.map((p2) =>
        Promise.resolve(p2).then(
         (value$1) => ({status: "fulfilled", value: value$1}),
         (reason) => ({status: "rejected", reason}),
        ),
       ),
      );
     };
     document.getElementsByTagName("link");
     const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
     const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
     promise = allSettled(
      deps.map((dep) => {
       dep = assetsURL(dep);
       if (dep in seen) return;
       seen[dep] = true;
       const isCss = dep.endsWith(".css");
       const cssSelector = isCss ? '[rel="stylesheet"]' : "";
       if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
       const link = document.createElement("link");
       link.rel = isCss ? "stylesheet" : scriptRel;
       if (!isCss) link.as = "script";
       link.crossOrigin = "";
       link.href = dep;
       if (cspNonce) link.setAttribute("nonce", cspNonce);
       document.head.appendChild(link);
       if (isCss)
        return new Promise((res, rej) => {
         link.addEventListener("load", res);
         link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
        });
      }),
     );
    }
    function handlePreloadError(err$2) {
     const e$1 = new Event("vite:preloadError", {cancelable: true});
     e$1.payload = err$2;
     window.dispatchEvent(e$1);
     if (!e$1.defaultPrevented) throw err$2;
    }
    return promise.then((res) => {
     for (const item2 of res || []) {
      if (item2.status !== "rejected") continue;
      handlePreloadError(item2.reason);
     }
     return baseModule().catch(handlePreloadError);
    });
   };
   const logger$8 = logger$9.withPath("userscript-utils");
   class UserscriptStorage {
    storage;
    defaultValues;
    constructor(storage2, defaultValues) {
     this.storage = storage2;
     this.defaultValues = Object.assign(Object.create(null), defaultValues ?? {});
    }
    get(name, defaultVal) {
     defaultVal = defaultVal !== void 0 ? defaultVal : Object.hasOwn(this.defaultValues, name) ? this.defaultValues[name] : void 0;
     const value2 = this.storage.GM_getValue(name, defaultVal);
     return value2;
    }
    set(name, value2) {
     this.storage.GM_setValue(name, value2);
    }
    has(name) {
     return this.storage.GM_getValue(name, void 0) !== void 0;
    }
    list(noDefaults = false) {
     if (noDefaults) {
      return this.storage.GM_listValues();
     } else {
      const set = new Set();
      const storageKeys = this.storage.GM_listValues();
      const defaultKeys = Object.keys(this.defaultValues);
      [...storageKeys, ...defaultKeys].forEach((key) => set.add(key));
      return Array.from(set);
     }
    }
    delete(name) {
     this.storage.GM_deleteValue(name);
    }
    watch(name, callback) {
     return this.storage.GM_addValueChangeListener(name, callback);
    }
    withKeys(key) {
     const self2 = this;
     const isObject2 = (val) => typeof val === "object" && val !== null;
     const getStorageObject = () => {
      const obj = self2.get(key);
      if (!isObject2(obj)) throw new TypeError(`substorage with key ${key} is not an object`);
      return obj;
     };
     const storage2 = new UserscriptStorage(
      {
       GM_getValue(subKey, defaultValue2) {
        const obj = getStorageObject();
        if (Object.hasOwn(obj, subKey)) return obj[subKey];
        return defaultValue2;
       },
       GM_setValue(subKey, value2) {
        const obj = getStorageObject();
        obj[subKey] = value2;
        self2.set(key, obj);
       },
       GM_deleteValue(subKey) {
        const obj = getStorageObject();
        delete obj[subKey];
        self2.set(key, obj);
       },
       GM_listValues() {
        const obj = getStorageObject();
        return Object.keys(obj);
       },
       GM_addValueChangeListener(subKey, callback) {
        return self2.storage.GM_addValueChangeListener(key, async (_name, oldVal, newVal, remote) => {
         if (!isObject2(oldVal) && !isObject2(newVal)) return;
         if (!isObject2(oldVal)) oldVal = self2.get(key);
         if (!isObject2(newVal)) newVal = self2.get(key);
         if (!isObject2(oldVal) || !isObject2(newVal)) throw new TypeError(`substorage with key ${key} is not an object`);
         const oldSubVal = Object.hasOwn(oldVal, subKey) ? oldVal[subKey] : Object.hasOwn(storage2.defaultValues, subKey) ? storage2.defaultValues[subKey] : void 0;
         const newSubVal = Object.hasOwn(newVal, subKey) ? newVal[subKey] : Object.hasOwn(storage2.defaultValues, subKey) ? storage2.defaultValues[subKey] : void 0;
         const deepEqual2 = (
          await __vitePreload(
           async () => {
            const {deepEqual: deepEqual3} = await Promise.resolve().then(() => jsUtils);
            return {deepEqual: deepEqual3};
           },
           void 0,
          )
         ).deepEqual;
         if (deepEqual2(oldSubVal, newSubVal)) return;
         callback(subKey, oldSubVal, newSubVal, remote);
        });
       },
      },
      Object.hasOwn(this.defaultValues, key) ? this.defaultValues[key] : {},
     );
     return storage2;
    }
    default(key) {
     return this.defaultValues[key];
    }
    upgrade(key, upgraders, versionKey = "storage-version") {
     const self2 = this;
     const maxVersion = upgraders.length;
     let currentValue = key === "" ? getStorage() : this.storage.GM_getValue(key, void 0);
     let currentVersion = currentValue[versionKey] ?? (isEmpty(currentValue) ? maxVersion : 0);
     while (currentVersion < maxVersion) {
      try {
       const tempVal = structuredClone(currentValue);
       const newVal = upgraders[currentVersion](tempVal, {key, versionKey});
       currentValue = newVal;
       currentValue[versionKey] = ++currentVersion;
      } catch (err) {
       logger$8.log("Error", "raw", null, "storage upgrader error", err);
      }
     }
     key === "" ? applyStorage(currentValue) : this.storage.GM_setValue(key, currentValue);
     function getStorage() {
      const keys = self2.storage.GM_listValues();
      const data17 = {};
      for (const key2 of keys) {
       data17[key2] = self2.storage.GM_getValue(key2);
      }
      return data17;
     }
     function applyStorage(data17) {
      self2.storage.GM_listValues().forEach((key2) => self2.storage.GM_deleteValue(key2));
      for (const key2 of Reflect.ownKeys(data17)) {
       self2.storage.GM_setValue(key2, data17[key2]);
      }
     }
     function isEmpty(val) {
      if (typeof val === "undefined") return true;
      if (typeof val === "object" && val !== null) return Reflect.ownKeys(val).length === 0;
     }
    }
   }
   class UserscriptStyling {
    styles = ref({});
    headCSS = ref("");
    constructor() {
     const headStyle = document.createElement("style");
     document.head.append(headStyle);
     watch(this.headCSS, (val) => (headStyle.innerHTML = val));
    }
    setStyle(id3, css3) {
     this.styles.value[id3] = css3;
    }
    getStyle(id3) {
     return Object.hasOwn(this.styles.value, id3) ? this.styles.value[id3] : null;
    }
    deleteStyle(id3) {
     if (Object.hasOwn(this.styles.value, id3)) {
      delete this.styles.value[id3];
      return true;
     } else {
      return false;
     }
    }
    applyTo(doc) {
     const doApply = () => {
      let fontFaceCSS = [];
      const stylesheets = Object.values(this.styles.value).map((css3) => {
       const sheet = new CSSStyleSheet();
       sheet.replaceSync(css3);
       fontFaceCSS.push(
        Array.from(sheet.cssRules)
         .filter((r) => r instanceof CSSFontFaceRule)
         .map((r) => r.cssText)
         .join("\n"),
       );
       return sheet;
      });
      doc.adoptedStyleSheets = stylesheets;
      this.headCSS.value = fontFaceCSS.join("\n");
     };
     doApply();
     const handle = watch(this.styles, doApply, {deep: true});
     const abort = () => {
      handle.stop();
      doc.adoptedStyleSheets = [];
     };
     return abort;
    }
   }
   exports("U", UserscriptStyling);
   var ie$1 = Object.defineProperty;
   var K$1 = Object.getOwnPropertySymbols;
   var se = Object.prototype.hasOwnProperty,
    ae$1 = Object.prototype.propertyIsEnumerable;
   var N$1 = (e, t2, n) => (t2 in e ? ie$1(e, t2, {enumerable: true, configurable: true, writable: true, value: n}) : (e[t2] = n)),
    d = (e, t2) => {
     for (var n in t2 || (t2 = {})) se.call(t2, n) && N$1(e, n, t2[n]);
     if (K$1) for (var n of K$1(t2)) ae$1.call(t2, n) && N$1(e, n, t2[n]);
     return e;
    };
   function l$1(e) {
    return e == null || e === "" || (Array.isArray(e) && e.length === 0) || (!(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0);
   }
   function b$2(e, t2, n = new WeakSet()) {
    if (e === t2) return true;
    if (!e || !t2 || typeof e != "object" || typeof t2 != "object" || n.has(e) || n.has(t2)) return false;
    n.add(e).add(t2);
    let o = Array.isArray(e),
     r = Array.isArray(t2),
     u,
     f2,
     T2;
    if (o && r) {
     if (((f2 = e.length), f2 != t2.length)) return false;
     for (u = f2; u-- !== 0; ) if (!b$2(e[u], t2[u], n)) return false;
     return true;
    }
    if (o != r) return false;
    let S2 = e instanceof Date,
     A2 = t2 instanceof Date;
    if (S2 != A2) return false;
    if (S2 && A2) return e.getTime() == t2.getTime();
    let I2 = e instanceof RegExp,
     L = t2 instanceof RegExp;
    if (I2 != L) return false;
    if (I2 && L) return e.toString() == t2.toString();
    let R2 = Object.keys(e);
    if (((f2 = R2.length), f2 !== Object.keys(t2).length)) return false;
    for (u = f2; u-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t2, R2[u])) return false;
    for (u = f2; u-- !== 0; ) if (((T2 = R2[u]), !b$2(e[T2], t2[T2], n))) return false;
    return true;
   }
   function y$2(e, t2) {
    return b$2(e, t2);
   }
   function c$1(e) {
    return typeof e == "function" && "call" in e && "apply" in e;
   }
   function s$3(e) {
    return !l$1(e);
   }
   function p(e, t2) {
    if (!e || !t2) return null;
    try {
     let n = e[t2];
     if (s$3(n)) return n;
    } catch (n) {}
    if (Object.keys(e).length) {
     if (c$1(t2)) return t2(e);
     if (t2.indexOf(".") === -1) return e[t2];
     {
      let n = t2.split("."),
       o = e;
      for (let r = 0, u = n.length; r < u; ++r) {
       if (o == null) return null;
       o = o[n[r]];
      }
      return o;
     }
    }
    return null;
   }
   function k$3(e, t2, n) {
    return n ? p(e, n) === p(t2, n) : y$2(e, t2);
   }
   function q$1(e, t2) {
    if (e != null && t2 && t2.length) {
     for (let n of t2) if (k$3(e, n)) return true;
    }
    return false;
   }
   function i(e, t2 = true) {
    return e instanceof Object && e.constructor === Object && (t2 || Object.keys(e).length !== 0);
   }
   function $$2(e = {}, t2 = {}) {
    let n = d({}, e);
    return (
     Object.keys(t2).forEach((o) => {
      let r = o;
      i(t2[r]) && r in e && i(e[r]) ? (n[r] = $$2(e[r], t2[r])) : (n[r] = t2[r]);
     }),
     n
    );
   }
   function w$1(...e) {
    return e.reduce((t2, n, o) => (o === 0 ? n : $$2(t2, n)), {});
   }
   function M$1(e, t2) {
    let n = -1;
    if (s$3(e))
     try {
      n = e.findLastIndex(t2);
     } catch (o) {
      n = e.lastIndexOf([...e].reverse().find(t2));
     }
    return n;
   }
   function m$1(e, ...t2) {
    return c$1(e) ? e(...t2) : e;
   }
   function a(e, t2 = true) {
    return typeof e == "string" && (t2 || e !== "");
   }
   function g$1(e) {
    return a(e) ? e.replace(/(-|_)/g, "").toLowerCase() : e;
   }
   function F$2(e, t2 = "", n = {}) {
    let o = g$1(t2).split("."),
     r = o.shift();
    if (r) {
     if (i(e)) {
      let u = Object.keys(e).find((f2) => g$1(f2) === r) || "";
      return F$2(m$1(e[u], n), o.join("."), n);
     }
     return;
    }
    return m$1(e, n);
   }
   function C$3(e, t2 = true) {
    return Array.isArray(e) && (t2 || e.length !== 0);
   }
   function z$2(e) {
    return s$3(e) && !isNaN(e);
   }
   function J(e = "") {
    return s$3(e) && e.length === 1 && !!e.match(/\S| /);
   }
   function G(e, t2) {
    if (t2) {
     let n = t2.test(e);
     return ((t2.lastIndex = 0), n);
    }
    return false;
   }
   function H(...e) {
    return w$1(...e);
   }
   function Y$2(e) {
    return (
     e &&
     e
      .replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "")
      .replace(/ {2,}/g, " ")
      .replace(/ ([{:}]) /g, "$1")
      .replace(/([;,]) /g, "$1")
      .replace(/ !/g, "!")
      .replace(/: /g, ":")
      .trim()
    );
   }
   function X(e) {
    if (e && /[\xC0-\xFF\u0100-\u017E]/.test(e)) {
     let n = {A: /[\xC0-\xC5\u0100\u0102\u0104]/g, AE: /[\xC6]/g, C: /[\xC7\u0106\u0108\u010A\u010C]/g, D: /[\xD0\u010E\u0110]/g, E: /[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g, G: /[\u011C\u011E\u0120\u0122]/g, H: /[\u0124\u0126]/g, I: /[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g, IJ: /[\u0132]/g, J: /[\u0134]/g, K: /[\u0136]/g, L: /[\u0139\u013B\u013D\u013F\u0141]/g, N: /[\xD1\u0143\u0145\u0147\u014A]/g, O: /[\xD2-\xD6\xD8\u014C\u014E\u0150]/g, OE: /[\u0152]/g, R: /[\u0154\u0156\u0158]/g, S: /[\u015A\u015C\u015E\u0160]/g, T: /[\u0162\u0164\u0166]/g, U: /[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g, W: /[\u0174]/g, Y: /[\xDD\u0176\u0178]/g, Z: /[\u0179\u017B\u017D]/g, a: /[\xE0-\xE5\u0101\u0103\u0105]/g, ae: /[\xE6]/g, c: /[\xE7\u0107\u0109\u010B\u010D]/g, d: /[\u010F\u0111]/g, e: /[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g, g: /[\u011D\u011F\u0121\u0123]/g, i: /[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g, ij: /[\u0133]/g, j: /[\u0135]/g, k: /[\u0137,\u0138]/g, l: /[\u013A\u013C\u013E\u0140\u0142]/g, n: /[\xF1\u0144\u0146\u0148\u014B]/g, p: /[\xFE]/g, o: /[\xF2-\xF6\xF8\u014D\u014F\u0151]/g, oe: /[\u0153]/g, r: /[\u0155\u0157\u0159]/g, s: /[\u015B\u015D\u015F\u0161]/g, t: /[\u0163\u0165\u0167]/g, u: /[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g, w: /[\u0175]/g, y: /[\xFD\xFF\u0177]/g, z: /[\u017A\u017C\u017E]/g};
     for (let o in n) e = e.replace(n[o], o);
    }
    return e;
   }
   function ne$1(e) {
    return a(e, false) ? e[0].toUpperCase() + e.slice(1) : e;
   }
   function re(e) {
    return a(e)
     ? e
        .replace(/(_)/g, "-")
        .replace(/([a-z])([A-Z])/g, "$1-$2")
        .toLowerCase()
     : e;
   }
   function s$2() {
    let r = new Map();
    return {
     on(e, t2) {
      let n = r.get(e);
      return (n ? n.push(t2) : (n = [t2]), r.set(e, n), this);
     },
     off(e, t2) {
      let n = r.get(e);
      return (n && n.splice(n.indexOf(t2) >>> 0, 1), this);
     },
     emit(e, t2) {
      let n = r.get(e);
      n &&
       n.forEach((i2) => {
        i2(t2);
       });
     },
     clear() {
      r.clear();
     },
    };
   }
   function f(...e) {
    if (e) {
     let t2 = [];
     for (let i2 = 0; i2 < e.length; i2++) {
      let n = e[i2];
      if (!n) continue;
      let s2 = typeof n;
      if (s2 === "string" || s2 === "number") t2.push(n);
      else if (s2 === "object") {
       let c2 = Array.isArray(n) ? [f(...n)] : Object.entries(n).map(([r, o]) => (o ? r : void 0));
       t2 = c2.length ? t2.concat(c2.filter((r) => !!r)) : t2;
      }
     }
     return t2.join(" ").trim();
    }
   }
   function R(t2, e) {
    return t2 ? (t2.classList ? t2.classList.contains(e) : new RegExp("(^| )" + e + "( |$)", "gi").test(t2.className)) : false;
   }
   function W$1(t2, e) {
    if (t2 && e) {
     let o = (n) => {
      R(t2, n) || (t2.classList ? t2.classList.add(n) : (t2.className += " " + n));
     };
     [e]
      .flat()
      .filter(Boolean)
      .forEach((n) => n.split(" ").forEach(o));
    }
   }
   function F$1() {
    return window.innerWidth - document.documentElement.offsetWidth;
   }
   function st$1(t2) {
    typeof t2 == "string" ? W$1(document.body, t2 || "p-overflow-hidden") : (t2 != null && t2.variableName && document.body.style.setProperty(t2.variableName, F$1() + "px"), W$1(document.body, (t2 == null ? void 0 : t2.className) || "p-overflow-hidden"));
   }
   function P$1(t2, e) {
    if (t2 && e) {
     let o = (n) => {
      t2.classList ? t2.classList.remove(n) : (t2.className = t2.className.replace(new RegExp("(^|\\b)" + n.split(" ").join("|") + "(\\b|$)", "gi"), " "));
     };
     [e]
      .flat()
      .filter(Boolean)
      .forEach((n) => n.split(" ").forEach(o));
    }
   }
   function dt$1(t2) {
    typeof t2 == "string" ? P$1(document.body, t2 || "p-overflow-hidden") : (t2 != null && t2.variableName && document.body.style.removeProperty(t2.variableName), P$1(document.body, (t2 == null ? void 0 : t2.className) || "p-overflow-hidden"));
   }
   function x$2(t2) {
    for (let e of document == null ? void 0 : document.styleSheets)
     try {
      for (let o of e == null ? void 0 : e.cssRules) for (let n of o == null ? void 0 : o.style) if (t2.test(n)) return {name: n, value: o.style.getPropertyValue(n).trim()};
     } catch (o) {}
    return null;
   }
   function w(t2) {
    let e = {width: 0, height: 0};
    if (t2) {
     let [o, n] = [t2.style.visibility, t2.style.display],
      r = t2.getBoundingClientRect();
     ((t2.style.visibility = "hidden"), (t2.style.display = "block"), (e.width = r.width || t2.offsetWidth), (e.height = r.height || t2.offsetHeight), (t2.style.display = n), (t2.style.visibility = o));
    }
    return e;
   }
   function h$1() {
    let t2 = window,
     e = document,
     o = e.documentElement,
     n = e.getElementsByTagName("body")[0],
     r = t2.innerWidth || o.clientWidth || n.clientWidth,
     i2 = t2.innerHeight || o.clientHeight || n.clientHeight;
    return {width: r, height: i2};
   }
   function E$1(t2) {
    return t2 ? Math.abs(t2.scrollLeft) : 0;
   }
   function k$2() {
    let t2 = document.documentElement;
    return (window.pageXOffset || E$1(t2)) - (t2.clientLeft || 0);
   }
   function $$1() {
    let t2 = document.documentElement;
    return (window.pageYOffset || t2.scrollTop) - (t2.clientTop || 0);
   }
   function V(t2) {
    return t2 ? getComputedStyle(t2).direction === "rtl" : false;
   }
   function D$1(t2, e, o = true) {
    var n, r, i2, l2;
    if (t2) {
     let d2 = t2.offsetParent ? {width: t2.offsetWidth, height: t2.offsetHeight} : w(t2),
      s2 = d2.height,
      a2 = d2.width,
      u = e.offsetHeight,
      p2 = e.offsetWidth,
      f2 = e.getBoundingClientRect(),
      g2 = $$1(),
      it = k$2(),
      lt2 = h$1(),
      L,
      N2,
      ot = "top";
     (f2.top + u + s2 > lt2.height ? ((L = f2.top + g2 - s2), (ot = "bottom"), L < 0 && (L = g2)) : (L = u + f2.top + g2), f2.left + a2 > lt2.width ? (N2 = Math.max(0, f2.left + it + p2 - a2)) : (N2 = f2.left + it), V(t2) ? (t2.style.insetInlineEnd = N2 + "px") : (t2.style.insetInlineStart = N2 + "px"), (t2.style.top = L + "px"), (t2.style.transformOrigin = ot), o && (t2.style.marginTop = ot === "bottom" ? `calc(${(r = (n = x$2(/-anchor-gutter$/)) == null ? void 0 : n.value) != null ? r : "2px"} * -1)` : (l2 = (i2 = x$2(/-anchor-gutter$/)) == null ? void 0 : i2.value) != null ? l2 : ""));
    }
   }
   function S$1(t2, e) {
    t2 && (typeof e == "string" ? (t2.style.cssText = e) : Object.entries(e || {}).forEach(([o, n]) => (t2.style[o] = n)));
   }
   function v$1(t2, e) {
    if (t2 instanceof HTMLElement) {
     let o = t2.offsetWidth;
     return o;
    }
    return 0;
   }
   function I(t2, e, o = true, n = void 0) {
    var r;
    if (t2) {
     let i2 = t2.offsetParent ? {width: t2.offsetWidth, height: t2.offsetHeight} : w(t2),
      l2 = e.offsetHeight,
      d2 = e.getBoundingClientRect(),
      s2 = h$1(),
      a2,
      u,
      p2 = n != null ? n : "top";
     if ((!n && d2.top + l2 + i2.height > s2.height ? ((a2 = -1 * i2.height), (p2 = "bottom"), d2.top + a2 < 0 && (a2 = -1 * d2.top)) : (a2 = l2), i2.width > s2.width ? (u = d2.left * -1) : d2.left + i2.width > s2.width ? (u = (d2.left + i2.width - s2.width) * -1) : (u = 0), (t2.style.top = a2 + "px"), (t2.style.insetInlineStart = u + "px"), (t2.style.transformOrigin = p2), o)) {
      let f2 = (r = x$2(/-anchor-gutter$/)) == null ? void 0 : r.value;
      t2.style.marginTop = p2 === "bottom" ? `calc(${f2 != null ? f2 : "2px"} * -1)` : f2 != null ? f2 : "";
     }
    }
   }
   function y$1(t2) {
    if (t2) {
     let e = t2.parentNode;
     return (e && e instanceof ShadowRoot && e.host && (e = e.host), e);
    }
    return null;
   }
   function T$1(t2) {
    return !!(t2 !== null && typeof t2 != "undefined" && t2.nodeName && y$1(t2));
   }
   function c(t2) {
    return typeof Element != "undefined" ? t2 instanceof Element : t2 !== null && typeof t2 == "object" && t2.nodeType === 1 && typeof t2.nodeName == "string";
   }
   function pt() {
    if (window.getSelection) {
     let t2 = window.getSelection() || {};
     t2.empty ? t2.empty() : t2.removeAllRanges && t2.rangeCount > 0 && t2.getRangeAt(0).getClientRects().length > 0 && t2.removeAllRanges();
    }
   }
   function A(t2, e = {}) {
    if (c(t2)) {
     let o = (n, r) => {
      var l2, d2;
      let i2 = (l2 = t2 == null ? void 0 : t2.$attrs) != null && l2[n] ? [(d2 = t2 == null ? void 0 : t2.$attrs) == null ? void 0 : d2[n]] : [];
      return [r].flat().reduce((s2, a2) => {
       if (a2 != null) {
        let u = typeof a2;
        if (u === "string" || u === "number") s2.push(a2);
        else if (u === "object") {
         let p2 = Array.isArray(a2) ? o(n, a2) : Object.entries(a2).map(([f2, g2]) => (n === "style" && (g2 || g2 === 0) ? `${f2.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}:${g2}` : g2 ? f2 : void 0));
         s2 = p2.length ? s2.concat(p2.filter((f2) => !!f2)) : s2;
        }
       }
       return s2;
      }, i2);
     };
     Object.entries(e).forEach(([n, r]) => {
      if (r != null) {
       let i2 = n.match(/^on(.+)/);
       i2 ? t2.addEventListener(i2[1].toLowerCase(), r) : n === "p-bind" || n === "pBind" ? A(t2, r) : ((r = n === "class" ? [...new Set(o("class", r))].join(" ").trim() : n === "style" ? o("style", r).join(";").trim() : r), (t2.$attrs = t2.$attrs || {}) && (t2.$attrs[n] = r), t2.setAttribute(n, r));
      }
     });
    }
   }
   function U$1(t2, e = {}, ...o) {
    {
     let n = document.createElement(t2);
     return (A(n, e), n.append(...o), n);
    }
   }
   function Y$1(t2, e) {
    return c(t2) ? Array.from(t2.querySelectorAll(e)) : [];
   }
   function z$1(t2, e) {
    return c(t2) ? (t2.matches(e) ? t2 : t2.querySelector(e)) : null;
   }
   function bt(t2, e) {
    t2 && document.activeElement !== t2 && t2.focus(e);
   }
   function Q$1(t2, e) {
    if (c(t2)) {
     let o = t2.getAttribute(e);
     return isNaN(o) ? (o === "true" || o === "false" ? o === "true" : o) : +o;
    }
   }
   function b$1(t2, e = "") {
    let o = Y$1(
      t2,
      `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${e},
            input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`,
     ),
     n = [];
    for (let r of o) getComputedStyle(r).display != "none" && getComputedStyle(r).visibility != "hidden" && n.push(r);
    return n;
   }
   function vt(t2, e) {
    let o = b$1(t2, e);
    return o.length > 0 ? o[0] : null;
   }
   function Tt(t2) {
    if (t2) {
     let e = t2.offsetHeight,
      o = getComputedStyle(t2);
     return ((e -= parseFloat(o.paddingTop) + parseFloat(o.paddingBottom) + parseFloat(o.borderTopWidth) + parseFloat(o.borderBottomWidth)), e);
    }
    return 0;
   }
   function Lt(t2, e) {
    let o = b$1(t2, e);
    return o.length > 0 ? o[o.length - 1] : null;
   }
   function K(t2) {
    if (t2) {
     let e = t2.getBoundingClientRect();
     return {top: e.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0), left: e.left + (window.pageXOffset || E$1(document.documentElement) || E$1(document.body) || 0)};
    }
    return {top: "auto", left: "auto"};
   }
   function C$2(t2, e) {
    if (t2) {
     let o = t2.offsetHeight;
     return o;
    }
    return 0;
   }
   function M(t2, e = []) {
    let o = y$1(t2);
    return o === null ? e : M(o, e.concat([o]));
   }
   function At(t2) {
    let e = [];
    if (t2) {
     let o = M(t2),
      n = /(auto|scroll)/,
      r = (i2) => {
       try {
        let l2 = window.getComputedStyle(i2, null);
        return n.test(l2.getPropertyValue("overflow")) || n.test(l2.getPropertyValue("overflowX")) || n.test(l2.getPropertyValue("overflowY"));
       } catch (l2) {
        return false;
       }
      };
     for (let i2 of o) {
      let l2 = i2.nodeType === 1 && i2.dataset.scrollselectors;
      if (l2) {
       let d2 = l2.split(",");
       for (let s2 of d2) {
        let a2 = z$1(i2, s2);
        a2 && r(a2) && e.push(a2);
       }
      }
      i2.nodeType !== 9 && r(i2) && e.push(i2);
     }
    }
    return e;
   }
   function Mt() {
    if (window.getSelection) return window.getSelection().toString();
    if (document.getSelection) return document.getSelection().toString();
   }
   function Rt(t2) {
    if (t2) {
     let e = t2.offsetWidth,
      o = getComputedStyle(t2);
     return ((e -= parseFloat(o.paddingLeft) + parseFloat(o.paddingRight) + parseFloat(o.borderLeftWidth) + parseFloat(o.borderRightWidth)), e);
    }
    return 0;
   }
   function $t() {
    return /(android)/i.test(navigator.userAgent);
   }
   function tt() {
    return !!(typeof window != "undefined" && window.document && window.document.createElement);
   }
   function It(t2, e = "") {
    return c(t2)
     ? t2.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
            [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`)
     : false;
   }
   function et(t2) {
    return !!(t2 && t2.offsetParent != null);
   }
   function Yt() {
    return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
   }
   function _t(t2, e = "", o) {
    c(t2) && o !== null && o !== void 0 && t2.setAttribute(e, o);
   }
   var t$a = {};
   function s$1(n = "pui_id_") {
    return (Object.hasOwn(t$a, n) || (t$a[n] = 0), t$a[n]++, `${n}${t$a[n]}`);
   }
   function g() {
    let r = [],
     i2 = (e, n, t2 = 999) => {
      let s2 = u(e, n, t2),
       o = s2.value + (s2.key === e ? 0 : t2) + 1;
      return (r.push({key: e, value: o}), o);
     },
     d2 = (e) => {
      r = r.filter((n) => n.value !== e);
     },
     a2 = (e, n) => u(e).value,
     u = (e, n, t2 = 0) => [...r].reverse().find((s2) => true) || {key: e, value: t2},
     l2 = (e) => (e && parseInt(e.style.zIndex, 10)) || 0;
    return {
     get: l2,
     set: (e, n, t2) => {
      n && (n.style.zIndex = String(i2(e, true, t2)));
     },
     clear: (e) => {
      e && (d2(l2(e)), (e.style.zIndex = ""));
     },
     getCurrent: (e) => a2(e),
    };
   }
   var x$1 = g();
   var rt = Object.defineProperty,
    st = Object.defineProperties;
   var nt = Object.getOwnPropertyDescriptors;
   var F = Object.getOwnPropertySymbols;
   var xe = Object.prototype.hasOwnProperty,
    be = Object.prototype.propertyIsEnumerable;
   var _e = (e, t2, r) => (t2 in e ? rt(e, t2, {enumerable: true, configurable: true, writable: true, value: r}) : (e[t2] = r)),
    h = (e, t2) => {
     for (var r in t2 || (t2 = {})) xe.call(t2, r) && _e(e, r, t2[r]);
     if (F) for (var r of F(t2)) be.call(t2, r) && _e(e, r, t2[r]);
     return e;
    },
    $ = (e, t2) => st(e, nt(t2));
   var v = (e, t2) => {
    var r = {};
    for (var s2 in e) xe.call(e, s2) && t2.indexOf(s2) < 0 && (r[s2] = e[s2]);
    if (e != null && F) for (var s2 of F(e)) t2.indexOf(s2) < 0 && be.call(e, s2) && (r[s2] = e[s2]);
    return r;
   };
   var at = s$2(),
    N = at;
   var k$1 = /{([^}]*)}/g,
    ne = /(\d+\s+[\+\-\*\/]\s+\d+)/g,
    ie = /var\([^)]+\)/g;
   function oe(e) {
    return a(e) ? e.replace(/[A-Z]/g, (t2, r) => (r === 0 ? t2 : "." + t2.toLowerCase())).toLowerCase() : e;
   }
   function ve(e) {
    return i(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
   }
   function dt(e) {
    return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
   }
   function Q(e = "", t2 = "") {
    return dt(`${a(e, false) && a(t2, false) ? `${e}-` : e}${t2}`);
   }
   function ae(e = "", t2 = "") {
    return `--${Q(e, t2)}`;
   }
   function ht(e = "") {
    let t2 = (e.match(/{/g) || []).length,
     r = (e.match(/}/g) || []).length;
    return (t2 + r) % 2 !== 0;
   }
   function Y(e, t2 = "", r = "", s2 = [], i2) {
    if (a(e)) {
     let a2 = e.trim();
     if (ht(a2)) return;
     if (G(a2, k$1)) {
      let n = a2.replaceAll(k$1, (l2) => {
       let c2 = l2
        .replace(/{|}/g, "")
        .split(".")
        .filter((m2) => !s2.some((d2) => G(m2, d2)));
       return `var(${ae(r, re(c2.join("-")))}${s$3(i2) ? `, ${i2}` : ""})`;
      });
      return G(n.replace(ie, "0"), ne) ? `calc(${n})` : n;
     }
     return a2;
    } else if (z$2(e)) return e;
   }
   function Re(e, t2, r) {
    a(t2, false) && e.push(`${t2}:${r};`);
   }
   function C$1(e, t2) {
    return e ? `${e}{${t2}}` : "";
   }
   function le(e, t2) {
    if (e.indexOf("dt(") === -1) return e;
    function r(n, l2) {
     let o = [],
      c2 = 0,
      m2 = "",
      d2 = null,
      u = 0;
     for (; c2 <= n.length; ) {
      let g2 = n[c2];
      if (((g2 === '"' || g2 === "'" || g2 === "`") && n[c2 - 1] !== "\\" && (d2 = d2 === g2 ? null : g2), !d2 && (g2 === "(" && u++, g2 === ")" && u--, (g2 === "," || c2 === n.length) && u === 0))) {
       let f2 = m2.trim();
       (f2.startsWith("dt(") ? o.push(le(f2, l2)) : o.push(s2(f2)), (m2 = ""), c2++);
       continue;
      }
      (g2 !== void 0 && (m2 += g2), c2++);
     }
     return o;
    }
    function s2(n) {
     let l2 = n[0];
     if ((l2 === '"' || l2 === "'" || l2 === "`") && n[n.length - 1] === l2) return n.slice(1, -1);
     let o = Number(n);
     return isNaN(o) ? n : o;
    }
    let i2 = [],
     a2 = [];
    for (let n = 0; n < e.length; n++)
     if (e[n] === "d" && e.slice(n, n + 3) === "dt(") (a2.push(n), (n += 2));
     else if (e[n] === ")" && a2.length > 0) {
      let l2 = a2.pop();
      a2.length === 0 && i2.push([l2, n]);
     }
    if (!i2.length) return e;
    for (let n = i2.length - 1; n >= 0; n--) {
     let [l2, o] = i2[n],
      c2 = e.slice(l2 + 3, o),
      m2 = r(c2, t2),
      d2 = t2(...m2);
     e = e.slice(0, l2) + d2 + e.slice(o + 1);
    }
    return e;
   }
   var rr = (e) => {
     var a2;
     let t2 = S.getTheme(),
      r = ue(t2, e, void 0, "variable"),
      s2 = (a2 = r == null ? void 0 : r.match(/--[\w-]+/g)) == null ? void 0 : a2[0],
      i2 = ue(t2, e, void 0, "value");
     return {name: s2, variable: r, value: i2};
    },
    E = (...e) => ue(S.getTheme(), ...e),
    ue = (e = {}, t2, r, s2) => {
     if (t2) {
      let {variable: i2, options: a2} = S.defaults || {},
       {prefix: n, transform: l2} = (e == null ? void 0 : e.options) || a2 || {},
       o = G(t2, k$1) ? t2 : `{${t2}}`;
      return s2 === "value" || (l$1(s2) && l2 === "strict") ? S.getTokenValue(t2) : Y(o, void 0, n, [i2.excludedKeyRegex], r);
     }
     return "";
    };
   function ar(e, ...t2) {
    if (e instanceof Array) {
     let r = e.reduce((s2, i2, a2) => {
      var n;
      return s2 + i2 + ((n = m$1(t2[a2], {dt: E})) != null ? n : "");
     }, "");
     return le(r, E);
    }
    return m$1(e, {dt: E});
   }
   function de(e, t2 = {}) {
    let r = S.defaults.variable,
     {prefix: s2 = r.prefix, selector: i$1 = r.selector, excludedKeyRegex: a2 = r.excludedKeyRegex} = t2,
     n = [],
     l2 = [],
     o = [{node: e, path: s2}];
    for (; o.length; ) {
     let {node: m2, path: d2} = o.pop();
     for (let u in m2) {
      let g2 = m2[u],
       f2 = ve(g2),
       p2 = G(u, a2) ? Q(d2) : Q(d2, re(u));
      if (i(f2)) o.push({node: f2, path: p2});
      else {
       let y2 = ae(p2),
        R2 = Y(f2, p2, s2, [a2]);
       Re(l2, y2, R2);
       let T2 = p2;
       (s2 && T2.startsWith(s2 + "-") && (T2 = T2.slice(s2.length + 1)), n.push(T2.replace(/-/g, ".")));
      }
     }
    }
    let c2 = l2.join("");
    return {value: l2, tokens: n, declarations: c2, css: C$1(i$1, c2)};
   }
   var b = {
    regex: {
     rules: {
      class: {
       pattern: /^\.([a-zA-Z][\w-]*)$/,
       resolve(e) {
        return {type: "class", selector: e, matched: this.pattern.test(e.trim())};
       },
      },
      attr: {
       pattern: /^\[(.*)\]$/,
       resolve(e) {
        return {type: "attr", selector: `:root${e},:host${e}`, matched: this.pattern.test(e.trim())};
       },
      },
      media: {
       pattern: /^@media (.*)$/,
       resolve(e) {
        return {type: "media", selector: e, matched: this.pattern.test(e.trim())};
       },
      },
      system: {
       pattern: /^system$/,
       resolve(e) {
        return {type: "system", selector: "@media (prefers-color-scheme: dark)", matched: this.pattern.test(e.trim())};
       },
      },
      custom: {
       resolve(e) {
        return {type: "custom", selector: e, matched: true};
       },
      },
     },
     resolve(e) {
      let t2 = Object.keys(this.rules)
       .filter((r) => r !== "custom")
       .map((r) => this.rules[r]);
      return [e].flat().map((r) => {
       var s2;
       return (s2 = t2.map((i2) => i2.resolve(r)).find((i2) => i2.matched)) != null ? s2 : this.rules.custom.resolve(r);
      });
     },
    },
    _toVariables(e, t2) {
     return de(e, {prefix: t2 == null ? void 0 : t2.prefix});
    },
    getCommon({name: e = "", theme: t2 = {}, params: r, set: s2, defaults: i2}) {
     var R2, T2, j2, O, M2, z2, V2;
     let {preset: a2, options: n} = t2,
      l2,
      o,
      c2,
      m2,
      d2,
      u,
      g2;
     if (s$3(a2) && n.transform !== "strict") {
      let {primitive: L, semantic: te, extend: re2} = a2,
       f2 = te || {},
       {colorScheme: K2} = f2,
       A2 = v(f2, ["colorScheme"]),
       x2 = re2 || {},
       {colorScheme: X2} = x2,
       G2 = v(x2, ["colorScheme"]),
       p2 = K2 || {},
       {dark: U2} = p2,
       B = v(p2, ["dark"]),
       y2 = X2 || {},
       {dark: I2} = y2,
       H2 = v(y2, ["dark"]),
       W2 = s$3(L) ? this._toVariables({primitive: L}, n) : {},
       q2 = s$3(A2) ? this._toVariables({semantic: A2}, n) : {},
       Z = s$3(B) ? this._toVariables({light: B}, n) : {},
       pe = s$3(U2) ? this._toVariables({dark: U2}, n) : {},
       fe = s$3(G2) ? this._toVariables({semantic: G2}, n) : {},
       ye = s$3(H2) ? this._toVariables({light: H2}, n) : {},
       Se = s$3(I2) ? this._toVariables({dark: I2}, n) : {},
       [Me, ze] = [(R2 = W2.declarations) != null ? R2 : "", W2.tokens],
       [Ke, Xe] = [(T2 = q2.declarations) != null ? T2 : "", q2.tokens || []],
       [Ge, Ue] = [(j2 = Z.declarations) != null ? j2 : "", Z.tokens || []],
       [Be, Ie] = [(O = pe.declarations) != null ? O : "", pe.tokens || []],
       [He, We] = [(M2 = fe.declarations) != null ? M2 : "", fe.tokens || []],
       [qe, Ze] = [(z2 = ye.declarations) != null ? z2 : "", ye.tokens || []],
       [Fe, Je] = [(V2 = Se.declarations) != null ? V2 : "", Se.tokens || []];
      ((l2 = this.transformCSS(e, Me, "light", "variable", n, s2, i2)), (o = ze));
      let Qe = this.transformCSS(e, `${Ke}${Ge}`, "light", "variable", n, s2, i2),
       Ye = this.transformCSS(e, `${Be}`, "dark", "variable", n, s2, i2);
      ((c2 = `${Qe}${Ye}`), (m2 = [...new Set([...Xe, ...Ue, ...Ie])]));
      let et2 = this.transformCSS(e, `${He}${qe}color-scheme:light`, "light", "variable", n, s2, i2),
       tt2 = this.transformCSS(e, `${Fe}color-scheme:dark`, "dark", "variable", n, s2, i2);
      ((d2 = `${et2}${tt2}`), (u = [...new Set([...We, ...Ze, ...Je])]), (g2 = m$1(a2.css, {dt: E})));
     }
     return {primitive: {css: l2, tokens: o}, semantic: {css: c2, tokens: m2}, global: {css: d2, tokens: u}, style: g2};
    },
    getPreset({name: e = "", preset: t2 = {}, options: r, params: s2, set: i2, defaults: a2, selector: n}) {
     var f2, x2, p2;
     let l2, o, c2;
     if (s$3(t2) && r.transform !== "strict") {
      let y2 = e.replace("-directive", ""),
       m2 = t2,
       {colorScheme: R2, extend: T2, css: j2} = m2,
       O = v(m2, ["colorScheme", "extend", "css"]),
       d2 = T2 || {},
       {colorScheme: M2} = d2,
       z2 = v(d2, ["colorScheme"]),
       u = R2 || {},
       {dark: V2} = u,
       L = v(u, ["dark"]),
       g2 = M2 || {},
       {dark: te} = g2,
       re2 = v(g2, ["dark"]),
       K2 = s$3(O) ? this._toVariables({[y2]: h(h({}, O), z2)}, r) : {},
       A2 = s$3(L) ? this._toVariables({[y2]: h(h({}, L), re2)}, r) : {},
       X2 = s$3(V2) ? this._toVariables({[y2]: h(h({}, V2), te)}, r) : {},
       [G2, U2] = [(f2 = K2.declarations) != null ? f2 : "", K2.tokens || []],
       [B, I2] = [(x2 = A2.declarations) != null ? x2 : "", A2.tokens || []],
       [H2, W2] = [(p2 = X2.declarations) != null ? p2 : "", X2.tokens || []],
       q2 = this.transformCSS(y2, `${G2}${B}`, "light", "variable", r, i2, a2, n),
       Z = this.transformCSS(y2, H2, "dark", "variable", r, i2, a2, n);
      ((l2 = `${q2}${Z}`), (o = [...new Set([...U2, ...I2, ...W2])]), (c2 = m$1(j2, {dt: E})));
     }
     return {css: l2, tokens: o, style: c2};
    },
    getPresetC({name: e = "", theme: t2 = {}, params: r, set: s2, defaults: i2}) {
     var o;
     let {preset: a2, options: n} = t2,
      l2 = (o = a2 == null ? void 0 : a2.components) == null ? void 0 : o[e];
     return this.getPreset({name: e, preset: l2, options: n, params: r, set: s2, defaults: i2});
    },
    getPresetD({name: e = "", theme: t2 = {}, params: r, set: s2, defaults: i2}) {
     var c2, m2;
     let a2 = e.replace("-directive", ""),
      {preset: n, options: l2} = t2,
      o = ((c2 = n == null ? void 0 : n.components) == null ? void 0 : c2[a2]) || ((m2 = n == null ? void 0 : n.directives) == null ? void 0 : m2[a2]);
     return this.getPreset({name: a2, preset: o, options: l2, params: r, set: s2, defaults: i2});
    },
    applyDarkColorScheme(e) {
     return !(e.darkModeSelector === "none" || e.darkModeSelector === false);
    },
    getColorSchemeOption(e, t2) {
     var r;
     return this.applyDarkColorScheme(e) ? this.regex.resolve(e.darkModeSelector === true ? t2.options.darkModeSelector : (r = e.darkModeSelector) != null ? r : t2.options.darkModeSelector) : [];
    },
    getLayerOrder(e, t2 = {}, r, s2) {
     let {cssLayer: i2} = t2;
     return i2 ? `@layer ${m$1(i2.order || i2.name || "primeui", r)}` : "";
    },
    getCommonStyleSheet({name: e = "", theme: t2 = {}, params: r, props: s2 = {}, set: i$1, defaults: a2}) {
     let n = this.getCommon({name: e, theme: t2, params: r, set: i$1, defaults: a2}),
      l2 = Object.entries(s2)
       .reduce((o, [c2, m2]) => o.push(`${c2}="${m2}"`) && o, [])
       .join(" ");
     return Object.entries(n || {})
      .reduce((o, [c2, m2]) => {
       if (i(m2) && Object.hasOwn(m2, "css")) {
        let d2 = Y$2(m2.css),
         u = `${c2}-variables`;
        o.push(`<style type="text/css" data-primevue-style-id="${u}" ${l2}>${d2}</style>`);
       }
       return o;
      }, [])
      .join("");
    },
    getStyleSheet({name: e = "", theme: t2 = {}, params: r, props: s2 = {}, set: i2, defaults: a2}) {
     var c2;
     let n = {name: e, theme: t2, params: r, set: i2, defaults: a2},
      l2 = (c2 = e.includes("-directive") ? this.getPresetD(n) : this.getPresetC(n)) == null ? void 0 : c2.css,
      o = Object.entries(s2)
       .reduce((m2, [d2, u]) => m2.push(`${d2}="${u}"`) && m2, [])
       .join(" ");
     return l2 ? `<style type="text/css" data-primevue-style-id="${e}-variables" ${o}>${Y$2(l2)}</style>` : "";
    },
    createTokens(e = {}, t2, r = "", s2 = "", i$1 = {}) {
     let a2 = function (l2, o = {}, c2 = []) {
       if (c2.includes(this.path)) return (console.warn(`Circular reference detected at ${this.path}`), {colorScheme: l2, path: this.path, paths: o, value: void 0});
       (c2.push(this.path), (o.name = this.path), o.binding || (o.binding = {}));
       let m2 = this.value;
       if (typeof this.value == "string" && k$1.test(this.value)) {
        let u = this.value.trim().replace(k$1, (g2) => {
         var y2;
         let f2 = g2.slice(1, -1),
          x2 = this.tokens[f2];
         if (!x2) return (console.warn(`Token not found for path: ${f2}`), "__UNRESOLVED__");
         let p2 = x2.computed(l2, o, c2);
         return Array.isArray(p2) && p2.length === 2 ? `light-dark(${p2[0].value},${p2[1].value})` : (y2 = p2 == null ? void 0 : p2.value) != null ? y2 : "__UNRESOLVED__";
        });
        m2 = ne.test(u.replace(ie, "0")) ? `calc(${u})` : u;
       }
       return (l$1(o.binding) && delete o.binding, c2.pop(), {colorScheme: l2, path: this.path, paths: o, value: m2.includes("__UNRESOLVED__") ? void 0 : m2});
      },
      n = (l2, o, c2) => {
       Object.entries(l2).forEach(([m2, d2]) => {
        let u = G(m2, t2.variable.excludedKeyRegex) ? o : o ? `${o}.${oe(m2)}` : oe(m2),
         g2 = c2 ? `${c2}.${m2}` : m2;
        i(d2)
         ? n(d2, u, g2)
         : (i$1[u] ||
            (i$1[u] = {
             paths: [],
             computed: (f2, x2 = {}, p2 = []) => {
              if (i$1[u].paths.length === 1) return i$1[u].paths[0].computed(i$1[u].paths[0].scheme, x2.binding, p2);
              if (f2 && f2 !== "none")
               for (let y2 = 0; y2 < i$1[u].paths.length; y2++) {
                let R2 = i$1[u].paths[y2];
                if (R2.scheme === f2) return R2.computed(f2, x2.binding, p2);
               }
              return i$1[u].paths.map((y2) => y2.computed(y2.scheme, x2[y2.scheme], p2));
             },
            }),
           i$1[u].paths.push({path: g2, value: d2, scheme: g2.includes("colorScheme.light") ? "light" : g2.includes("colorScheme.dark") ? "dark" : "none", computed: a2, tokens: i$1}));
       });
      };
     return (n(e, r, s2), i$1);
    },
    getTokenValue(e, t2, r) {
     var l2;
     let i2 = ((o) =>
       o
        .split(".")
        .filter((m2) => !G(m2.toLowerCase(), r.variable.excludedKeyRegex))
        .join("."))(t2),
      a2 = t2.includes("colorScheme.light") ? "light" : t2.includes("colorScheme.dark") ? "dark" : void 0,
      n = [(l2 = e[i2]) == null ? void 0 : l2.computed(a2)].flat().filter((o) => o);
     return n.length === 1
      ? n[0].value
      : n.reduce(
         (o = {}, c2) => {
          let u = c2,
           {colorScheme: m2} = u,
           d2 = v(u, ["colorScheme"]);
          return ((o[m2] = d2), o);
         },
         void 0,
        );
    },
    getSelectorRule(e, t2, r, s2) {
     return r === "class" || r === "attr" ? C$1(s$3(t2) ? `${e}${t2},${e} ${t2}` : e, s2) : C$1(e, C$1(t2 != null ? t2 : ":root,:host", s2));
    },
    transformCSS(e, t2, r, s2, i$1 = {}, a2, n, l2) {
     if (s$3(t2)) {
      let {cssLayer: o} = i$1;
      if (s2 !== "style") {
       let c2 = this.getColorSchemeOption(i$1, n);
       t2 = r === "dark" ? c2.reduce((m2, {type: d2, selector: u}) => (s$3(u) && (m2 += u.includes("[CSS]") ? u.replace("[CSS]", t2) : this.getSelectorRule(u, l2, d2, t2)), m2), "") : C$1(l2 != null ? l2 : ":root,:host", t2);
      }
      if (o) {
       let c2 = {name: "primeui"};
       (i(o) && (c2.name = m$1(o.name, {name: e, type: s2})), s$3(c2.name) && ((t2 = C$1(`@layer ${c2.name}`, t2)), a2 == null || a2.layerNames(c2.name)));
      }
      return t2;
     }
     return "";
    },
   };
   var S = {
    defaults: {variable: {prefix: "p", selector: ":root,:host", excludedKeyRegex: /^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi}, options: {prefix: "p", darkModeSelector: "system", cssLayer: false}},
    _theme: void 0,
    _layerNames: new Set(),
    _loadedStyleNames: new Set(),
    _loadingStyles: new Set(),
    _tokens: {},
    update(e = {}) {
     let {theme: t2} = e;
     t2 && ((this._theme = $(h({}, t2), {options: h(h({}, this.defaults.options), t2.options)})), (this._tokens = b.createTokens(this.preset, this.defaults)), this.clearLoadedStyleNames());
    },
    get theme() {
     return this._theme;
    },
    get preset() {
     var e;
     return ((e = this.theme) == null ? void 0 : e.preset) || {};
    },
    get options() {
     var e;
     return ((e = this.theme) == null ? void 0 : e.options) || {};
    },
    get tokens() {
     return this._tokens;
    },
    getTheme() {
     return this.theme;
    },
    setTheme(e) {
     (this.update({theme: e}), N.emit("theme:change", e));
    },
    getPreset() {
     return this.preset;
    },
    setPreset(e) {
     ((this._theme = $(h({}, this.theme), {preset: e})), (this._tokens = b.createTokens(e, this.defaults)), this.clearLoadedStyleNames(), N.emit("preset:change", e), N.emit("theme:change", this.theme));
    },
    getOptions() {
     return this.options;
    },
    setOptions(e) {
     ((this._theme = $(h({}, this.theme), {options: e})), this.clearLoadedStyleNames(), N.emit("options:change", e), N.emit("theme:change", this.theme));
    },
    getLayerNames() {
     return [...this._layerNames];
    },
    setLayerNames(e) {
     this._layerNames.add(e);
    },
    getLoadedStyleNames() {
     return this._loadedStyleNames;
    },
    isStyleNameLoaded(e) {
     return this._loadedStyleNames.has(e);
    },
    setLoadedStyleName(e) {
     this._loadedStyleNames.add(e);
    },
    deleteLoadedStyleName(e) {
     this._loadedStyleNames.delete(e);
    },
    clearLoadedStyleNames() {
     this._loadedStyleNames.clear();
    },
    getTokenValue(e) {
     return b.getTokenValue(this.tokens, e, this.defaults);
    },
    getCommon(e = "", t2) {
     return b.getCommon({name: e, theme: this.theme, params: t2, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}});
    },
    getComponent(e = "", t2) {
     let r = {name: e, theme: this.theme, params: t2, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}};
     return b.getPresetC(r);
    },
    getDirective(e = "", t2) {
     let r = {name: e, theme: this.theme, params: t2, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}};
     return b.getPresetD(r);
    },
    getCustomPreset(e = "", t2, r, s2) {
     let i2 = {name: e, preset: t2, options: this.options, selector: r, params: s2, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}};
     return b.getPreset(i2);
    },
    getLayerOrderCSS(e = "") {
     return b.getLayerOrder(e, this.options, {names: this.getLayerNames()}, this.defaults);
    },
    transformCSS(e = "", t2, r = "style", s2) {
     return b.transformCSS(e, t2, s2, r, this.options, {layerNames: this.setLayerNames.bind(this)}, this.defaults);
    },
    getCommonStyleSheet(e = "", t2, r = {}) {
     return b.getCommonStyleSheet({name: e, theme: this.theme, params: t2, props: r, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}});
    },
    getStyleSheet(e, t2, r = {}) {
     return b.getStyleSheet({name: e, theme: this.theme, params: t2, props: r, defaults: this.defaults, set: {layerNames: this.setLayerNames.bind(this)}});
    },
    onStyleMounted(e) {
     this._loadingStyles.add(e);
    },
    onStyleUpdated(e) {
     this._loadingStyles.add(e);
    },
    onStyleLoaded(e, {name: t2}) {
     this._loadingStyles.size && (this._loadingStyles.delete(t2), N.emit(`theme:${t2}:load`, e), !this._loadingStyles.size && N.emit("theme:load"));
    },
   };
   var FilterMatchMode = {STARTS_WITH: "startsWith", CONTAINS: "contains", NOT_CONTAINS: "notContains", ENDS_WITH: "endsWith", EQUALS: "equals", NOT_EQUALS: "notEquals", LESS_THAN: "lt", LESS_THAN_OR_EQUAL_TO: "lte", GREATER_THAN: "gt", GREATER_THAN_OR_EQUAL_TO: "gte", DATE_IS: "dateIs", DATE_IS_NOT: "dateIsNot", DATE_BEFORE: "dateBefore", DATE_AFTER: "dateAfter"};
   function _createForOfIteratorHelper$1(r, e) {
    var t2 = ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (!t2) {
     if (Array.isArray(r) || (t2 = _unsupportedIterableToArray$y(r)) || e) {
      t2 && (r = t2);
      var _n = 0,
       F2 = function F3() {};
      return {
       s: F2,
       n: function n() {
        return _n >= r.length ? {done: true} : {done: false, value: r[_n++]};
       },
       e: function e2(r2) {
        throw r2;
       },
       f: F2,
      };
     }
     throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
    }
    var o,
     a2 = true,
     u = false;
    return {
     s: function s2() {
      t2 = t2.call(r);
     },
     n: function n() {
      var r2 = t2.next();
      return ((a2 = r2.done), r2);
     },
     e: function e2(r2) {
      ((u = true), (o = r2));
     },
     f: function f2() {
      try {
       a2 || null == t2["return"] || t2["return"]();
      } finally {
       if (u) throw o;
      }
     },
    };
   }
   function _unsupportedIterableToArray$y(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$y(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$y(r, a2) : void 0);
    }
   }
   function _arrayLikeToArray$y(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var FilterService = {
    filter: function filter(value2, fields, filterValue, filterMatchMode, filterLocale) {
     var filteredItems = [];
     if (!value2) {
      return filteredItems;
     }
     var _iterator = _createForOfIteratorHelper$1(value2),
      _step;
     try {
      for (_iterator.s(); !(_step = _iterator.n()).done; ) {
       var item2 = _step.value;
       if (typeof item2 === "string") {
        if (this.filters[filterMatchMode](item2, filterValue, filterLocale)) {
         filteredItems.push(item2);
         continue;
        }
       } else {
        var _iterator2 = _createForOfIteratorHelper$1(fields),
         _step2;
        try {
         for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
          var field = _step2.value;
          var fieldValue = p(item2, field);
          if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {
           filteredItems.push(item2);
           break;
          }
         }
        } catch (err) {
         _iterator2.e(err);
        } finally {
         _iterator2.f();
        }
       }
      }
     } catch (err) {
      _iterator.e(err);
     } finally {
      _iterator.f();
     }
     return filteredItems;
    },
    filters: {
     startsWith: function startsWith(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      var filterValue = X(filter2.toString()).toLocaleLowerCase(filterLocale);
      var stringValue = X(value2.toString()).toLocaleLowerCase(filterLocale);
      return stringValue.slice(0, filterValue.length) === filterValue;
     },
     contains: function contains(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      var filterValue = X(filter2.toString()).toLocaleLowerCase(filterLocale);
      var stringValue = X(value2.toString()).toLocaleLowerCase(filterLocale);
      return stringValue.indexOf(filterValue) !== -1;
     },
     notContains: function notContains(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      var filterValue = X(filter2.toString()).toLocaleLowerCase(filterLocale);
      var stringValue = X(value2.toString()).toLocaleLowerCase(filterLocale);
      return stringValue.indexOf(filterValue) === -1;
     },
     endsWith: function endsWith(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      var filterValue = X(filter2.toString()).toLocaleLowerCase(filterLocale);
      var stringValue = X(value2.toString()).toLocaleLowerCase(filterLocale);
      return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;
     },
     equals: function equals(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() === filter2.getTime();
      else return X(value2.toString()).toLocaleLowerCase(filterLocale) == X(filter2.toString()).toLocaleLowerCase(filterLocale);
     },
     notEquals: function notEquals(value2, filter2, filterLocale) {
      if (filter2 === void 0 || filter2 === null || filter2 === "") {
       return false;
      }
      if (value2 === void 0 || value2 === null) {
       return true;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() !== filter2.getTime();
      else return X(value2.toString()).toLocaleLowerCase(filterLocale) != X(filter2.toString()).toLocaleLowerCase(filterLocale);
     },
     in: function _in(value2, filter2) {
      if (filter2 === void 0 || filter2 === null || filter2.length === 0) {
       return true;
      }
      for (var i2 = 0; i2 < filter2.length; i2++) {
       if (k$3(value2, filter2[i2])) {
        return true;
       }
      }
      return false;
     },
     between: function between(value2, filter2) {
      if (filter2 == null || filter2[0] == null || filter2[1] == null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime) return filter2[0].getTime() <= value2.getTime() && value2.getTime() <= filter2[1].getTime();
      else return filter2[0] <= value2 && value2 <= filter2[1];
     },
     lt: function lt(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() < filter2.getTime();
      else return value2 < filter2;
     },
     lte: function lte(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() <= filter2.getTime();
      else return value2 <= filter2;
     },
     gt: function gt(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() > filter2.getTime();
      else return value2 > filter2;
     },
     gte: function gte(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      if (value2.getTime && filter2.getTime) return value2.getTime() >= filter2.getTime();
      else return value2 >= filter2;
     },
     dateIs: function dateIs(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      return value2.toDateString() === filter2.toDateString();
     },
     dateIsNot: function dateIsNot(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      return value2.toDateString() !== filter2.toDateString();
     },
     dateBefore: function dateBefore(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      return value2.getTime() < filter2.getTime();
     },
     dateAfter: function dateAfter(value2, filter2) {
      if (filter2 === void 0 || filter2 === null) {
       return true;
      }
      if (value2 === void 0 || value2 === null) {
       return false;
      }
      return value2.getTime() > filter2.getTime();
     },
    },
    register: function register(rule, fn) {
     this.filters[rule] = fn;
    },
   };
   var style$m = ':after,:before,\\n *{box-sizing:border-box}.p-collapsible-enter-active{animation:p-animate-collapsible-expand .2s ease-out;overflow:hidden}.p-collapsible-leave-active{animation:p-animate-collapsible-collapse .2s ease-out;overflow:hidden}@keyframes p-animate-collapsible-expand{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}@keyframes p-animate-collapsible-collapse{0%{grid-template-rows:1fr}to{grid-template-rows:0fr}}.p-disabled,.p-disabled *{cursor:default;pointer-events:none;user-select:none}.p-component:disabled,.p-disabled{opacity:dt("disabled.opacity")}.pi{font-size:dt("icon.size")}.p-icon{height:dt("icon.size");width:dt("icon.size")}.p-overlay-mask{background:var(--px-mask-background,dt("mask.background"));color:dt("mask.color");height:100%;left:0;position:fixed;top:0;width:100%}.p-overlay-mask-enter-active{animation:p-animate-overlay-mask-enter dt("mask.transition.duration") forwards}.p-overlay-mask-leave-active{animation:p-animate-overlay-mask-leave dt("mask.transition.duration") forwards}@keyframes p-animate-overlay-mask-enter{0%{background:transparent}to{background:var(--px-mask-background,dt("mask.background"))}}@keyframes p-animate-overlay-mask-leave{0%{background:var(--px-mask-background,dt("mask.background"))}to{background:transparent}}.p-anchored-overlay-enter-active{animation:p-animate-anchored-overlay-enter .3s cubic-bezier(.19,1,.22,1)}.p-anchored-overlay-leave-active{animation:p-animate-anchored-overlay-leave .3s cubic-bezier(.19,1,.22,1)}@keyframes p-animate-anchored-overlay-enter{0%{opacity:0;transform:scale(.93)}}@keyframes p-animate-anchored-overlay-leave{to{opacity:0;transform:scale(.93)}}';
   function _typeof$n(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$n =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$n(o)
    );
   }
   function ownKeys$d(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$d(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$d(Object(t2), true).forEach(function (r2) {
         _defineProperty$n(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$d(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$n(e, r, t2) {
    return ((r = _toPropertyKey$n(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$n(t2) {
    var i2 = _toPrimitive$n(t2, "string");
    return "symbol" == _typeof$n(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$n(t2, r) {
    if ("object" != _typeof$n(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$n(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   function tryOnMounted(fn) {
    var sync = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
    if (getCurrentInstance$1() && getCurrentInstance$1().components) onMounted(fn);
    else if (sync) fn();
    else nextTick(fn);
   }
   var _id = 0;
   function useStyle(css3) {
    var options3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    var isLoaded = ref(false);
    var cssRef = ref(css3);
    var styleRef = ref(null);
    var defaultDocument = tt() ? window.document : void 0;
    var _options$document = options3.document,
     document2 = _options$document === void 0 ? defaultDocument : _options$document,
     _options$immediate = options3.immediate,
     immediate = _options$immediate === void 0 ? true : _options$immediate,
     _options$manual = options3.manual,
     manual = _options$manual === void 0 ? false : _options$manual,
     _options$name = options3.name,
     name = _options$name === void 0 ? "style_".concat(++_id) : _options$name,
     _options$id = options3.id,
     id3 = _options$id === void 0 ? void 0 : _options$id,
     _options$media = options3.media,
     media = _options$media === void 0 ? void 0 : _options$media,
     _options$nonce = options3.nonce,
     nonce = _options$nonce === void 0 ? void 0 : _options$nonce,
     _options$first = options3.first,
     first3 = _options$first === void 0 ? false : _options$first,
     _options$onMounted = options3.onMounted,
     onStyleMounted = _options$onMounted === void 0 ? void 0 : _options$onMounted,
     _options$onUpdated = options3.onUpdated,
     onStyleUpdated = _options$onUpdated === void 0 ? void 0 : _options$onUpdated,
     _options$onLoad = options3.onLoad,
     onStyleLoaded = _options$onLoad === void 0 ? void 0 : _options$onLoad,
     _options$props = options3.props,
     props2 = _options$props === void 0 ? {} : _options$props;
    var stop = function stop2() {};
    var load2 = function load3(_css) {
     var _props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     if (!document2) return;
     var _styleProps = _objectSpread$d(_objectSpread$d({}, props2), _props);
     var _name = _styleProps.name || name,
      _id2 = _styleProps.id || id3,
      _nonce = _styleProps.nonce || nonce;
     styleRef.value = document2.querySelector('style[data-primevue-style-id="'.concat(_name, '"]')) || document2.getElementById(_id2) || document2.createElement("style");
     if (!styleRef.value.isConnected) {
      cssRef.value = _css || css3;
      A(styleRef.value, {type: "text/css", id: _id2, media, nonce: _nonce});
      first3 ? document2.head.prepend(styleRef.value) : document2.head.appendChild(styleRef.value);
      _t(styleRef.value, "data-primevue-style-id", _name);
      A(styleRef.value, _styleProps);
      styleRef.value.onload = function (event) {
       return onStyleLoaded === null || onStyleLoaded === void 0 ? void 0 : onStyleLoaded(event, {name: _name});
      };
      onStyleMounted === null || onStyleMounted === void 0 || onStyleMounted(_name);
     }
     if (isLoaded.value) return;
     stop = watch(
      cssRef,
      function (value2) {
       styleRef.value.textContent = value2;
       onStyleUpdated === null || onStyleUpdated === void 0 || onStyleUpdated(_name);
      },
      {immediate: true},
     );
     isLoaded.value = true;
    };
    var unload = function unload2() {
     if (!document2 || !isLoaded.value) return;
     stop();
     T$1(styleRef.value) && document2.head.removeChild(styleRef.value);
     isLoaded.value = false;
     styleRef.value = null;
    };
    if (immediate && !manual) tryOnMounted(load2);
    return {id: id3, name, el: styleRef, css: cssRef, unload, load: load2, isLoaded: readonly(isLoaded)};
   }
   function _typeof$m(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$m =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$m(o)
    );
   }
   var _templateObject, _templateObject2, _templateObject3, _templateObject4;
   function _slicedToArray$3(r, e) {
    return _arrayWithHoles$3(r) || _iterableToArrayLimit$3(r, e) || _unsupportedIterableToArray$x(r, e) || _nonIterableRest$3();
   }
   function _nonIterableRest$3() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$x(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$x(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$x(r, a2) : void 0);
    }
   }
   function _arrayLikeToArray$x(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function _iterableToArrayLimit$3(r, l2) {
    var t2 = null == r ? null : ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (null != t2) {
     var e,
      n,
      i2,
      u,
      a2 = [],
      f2 = true,
      o = false;
     try {
      if (((i2 = (t2 = t2.call(r)).next), 0 === l2));
      else for (; !(f2 = (e = i2.call(t2)).done) && (a2.push(e.value), a2.length !== l2); f2 = true);
     } catch (r2) {
      ((o = true), (n = r2));
     } finally {
      try {
       if (!f2 && null != t2["return"] && ((u = t2["return"]()), Object(u) !== u)) return;
      } finally {
       if (o) throw n;
      }
     }
     return a2;
    }
   }
   function _arrayWithHoles$3(r) {
    if (Array.isArray(r)) return r;
   }
   function ownKeys$c(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$c(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$c(Object(t2), true).forEach(function (r2) {
         _defineProperty$m(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$c(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$m(e, r, t2) {
    return ((r = _toPropertyKey$m(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$m(t2) {
    var i2 = _toPrimitive$m(t2, "string");
    return "symbol" == _typeof$m(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$m(t2, r) {
    if ("object" != _typeof$m(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$m(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   function _taggedTemplateLiteral(e, t2) {
    return (t2 || (t2 = e.slice(0)), Object.freeze(Object.defineProperties(e, {raw: {value: Object.freeze(t2)}})));
   }
   var css$2 = function css(_ref) {
    var dt2 = _ref.dt;
    return "\n.p-hidden-accessible {\n    border: 0;\n    clip: rect(0 0 0 0);\n    height: 1px;\n    margin: -1px;\n    opacity: 0;\n    overflow: hidden;\n    padding: 0;\n    pointer-events: none;\n    position: absolute;\n    white-space: nowrap;\n    width: 1px;\n}\n\n.p-overflow-hidden {\n    overflow: hidden;\n    padding-right: ".concat(dt2("scrollbar.width"), ";\n}\n");
   };
   var classes$p = {};
   var inlineStyles$4 = {};
   var BaseStyle = {
    name: "base",
    css: css$2,
    style: style$m,
    classes: classes$p,
    inlineStyles: inlineStyles$4,
    load: function load(style2) {
     var options3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     var transform2 =
      arguments.length > 2 && arguments[2] !== void 0
       ? arguments[2]
       : function (cs) {
          return cs;
         };
     var computedStyle = transform2(ar(_templateObject || (_templateObject = _taggedTemplateLiteral(["", ""])), style2));
     return s$3(computedStyle) ? useStyle(Y$2(computedStyle), _objectSpread$c({name: this.name}, options3)) : {};
    },
    loadCSS: function loadCSS() {
     var options3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     return this.load(this.css, options3);
    },
    loadStyle: function loadStyle() {
     var _this = this;
     var options3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var style2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
     return this.load(this.style, options3, function () {
      var computedStyle = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      return S.transformCSS(options3.name || _this.name, "".concat(computedStyle).concat(ar(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["", ""])), style2)));
     });
    },
    getCommonTheme: function getCommonTheme(params) {
     return S.getCommon(this.name, params);
    },
    getComponentTheme: function getComponentTheme(params) {
     return S.getComponent(this.name, params);
    },
    getDirectiveTheme: function getDirectiveTheme(params) {
     return S.getDirective(this.name, params);
    },
    getPresetTheme: function getPresetTheme(preset, selector, params) {
     return S.getCustomPreset(this.name, preset, selector, params);
    },
    getLayerOrderThemeCSS: function getLayerOrderThemeCSS() {
     return S.getLayerOrderCSS(this.name);
    },
    getStyleSheet: function getStyleSheet() {
     var extendedCSS = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
     var props2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     if (this.css) {
      var _css = m$1(this.css, {dt: E}) || "";
      var _style = Y$2(ar(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["", "", ""])), _css, extendedCSS));
      var _props = Object.entries(props2)
       .reduce(function (acc, _ref2) {
        var _ref3 = _slicedToArray$3(_ref2, 2),
         k2 = _ref3[0],
         v2 = _ref3[1];
        return acc.push("".concat(k2, '="').concat(v2, '"')) && acc;
       }, [])
       .join(" ");
      return s$3(_style) ? '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(_props, ">").concat(_style, "</style>") : "";
     }
     return "";
    },
    getCommonThemeStyleSheet: function getCommonThemeStyleSheet(params) {
     var props2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     return S.getCommonStyleSheet(this.name, params, props2);
    },
    getThemeStyleSheet: function getThemeStyleSheet(params) {
     var props2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     var css3 = [S.getStyleSheet(this.name, params, props2)];
     if (this.style) {
      var name = this.name === "base" ? "global-style" : "".concat(this.name, "-style");
      var _css = ar(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["", ""])), m$1(this.style, {dt: E}));
      var _style = Y$2(S.transformCSS(name, _css));
      var _props = Object.entries(props2)
       .reduce(function (acc, _ref4) {
        var _ref5 = _slicedToArray$3(_ref4, 2),
         k2 = _ref5[0],
         v2 = _ref5[1];
        return acc.push("".concat(k2, '="').concat(v2, '"')) && acc;
       }, [])
       .join(" ");
      s$3(_style) && css3.push('<style type="text/css" data-primevue-style-id="'.concat(name, '" ').concat(_props, ">").concat(_style, "</style>"));
     }
     return css3.join("");
    },
    extend: function extend(inStyle) {
     return _objectSpread$c(_objectSpread$c({}, this), {}, {css: void 0, style: void 0}, inStyle);
    },
   };
   var PrimeVueService = s$2();
   function _typeof$l(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$l =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$l(o)
    );
   }
   function ownKeys$b(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$b(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$b(Object(t2), true).forEach(function (r2) {
         _defineProperty$l(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$b(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$l(e, r, t2) {
    return ((r = _toPropertyKey$l(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$l(t2) {
    var i2 = _toPrimitive$l(t2, "string");
    return "symbol" == _typeof$l(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$l(t2, r) {
    if ("object" != _typeof$l(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$l(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var defaultOptions$2 = {ripple: false, inputStyle: null, inputVariant: null, locale: {startsWith: "Starts with", contains: "Contains", notContains: "Not contains", endsWith: "Ends with", equals: "Equals", notEquals: "Not equals", noFilter: "No Filter", lt: "Less than", lte: "Less than or equal to", gt: "Greater than", gte: "Greater than or equal to", dateIs: "Date is", dateIsNot: "Date is not", dateBefore: "Date is before", dateAfter: "Date is after", clear: "Clear", apply: "Apply", matchAll: "Match All", matchAny: "Match Any", addRule: "Add Rule", removeRule: "Remove Rule", accept: "Yes", reject: "No", choose: "Choose", upload: "Upload", cancel: "Cancel", completed: "Completed", pending: "Pending", fileSizeTypes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], chooseYear: "Choose Year", chooseMonth: "Choose Month", chooseDate: "Choose Date", prevDecade: "Previous Decade", nextDecade: "Next Decade", prevYear: "Previous Year", nextYear: "Next Year", prevMonth: "Previous Month", nextMonth: "Next Month", prevHour: "Previous Hour", nextHour: "Next Hour", prevMinute: "Previous Minute", nextMinute: "Next Minute", prevSecond: "Previous Second", nextSecond: "Next Second", am: "am", pm: "pm", today: "Today", weekHeader: "Wk", firstDayOfWeek: 0, showMonthAfterYear: false, dateFormat: "mm/dd/yy", weak: "Weak", medium: "Medium", strong: "Strong", passwordPrompt: "Enter a password", emptyFilterMessage: "No results found", searchMessage: "{0} results are available", selectionMessage: "{0} items selected", emptySelectionMessage: "No selected item", emptySearchMessage: "No results found", fileChosenMessage: "{0} files", noFileChosenMessage: "No file chosen", emptyMessage: "No available options", aria: {trueLabel: "True", falseLabel: "False", nullLabel: "Not Selected", star: "1 star", stars: "{star} stars", selectAll: "All items selected", unselectAll: "All items unselected", close: "Close", previous: "Previous", next: "Next", navigation: "Navigation", scrollTop: "Scroll Top", moveTop: "Move Top", moveUp: "Move Up", moveDown: "Move Down", moveBottom: "Move Bottom", moveToTarget: "Move to Target", moveToSource: "Move to Source", moveAllToTarget: "Move All to Target", moveAllToSource: "Move All to Source", pageLabel: "Page {page}", firstPageLabel: "First Page", lastPageLabel: "Last Page", nextPageLabel: "Next Page", prevPageLabel: "Previous Page", rowsPerPageLabel: "Rows per page", jumpToPageDropdownLabel: "Jump to Page Dropdown", jumpToPageInputLabel: "Jump to Page Input", selectRow: "Row Selected", unselectRow: "Row Unselected", expandRow: "Row Expanded", collapseRow: "Row Collapsed", showFilterMenu: "Show Filter Menu", hideFilterMenu: "Hide Filter Menu", filterOperator: "Filter Operator", filterConstraint: "Filter Constraint", editRow: "Row Edit", saveEdit: "Save Edit", cancelEdit: "Cancel Edit", listView: "List View", gridView: "Grid View", slide: "Slide", slideNumber: "{slideNumber}", zoomImage: "Zoom Image", zoomIn: "Zoom In", zoomOut: "Zoom Out", rotateRight: "Rotate Right", rotateLeft: "Rotate Left", listLabel: "Option List"}}, filterMatchModeOptions: {text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS], numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO], date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]}, zIndex: {modal: 1100, overlay: 1e3, menu: 1e3, tooltip: 1100}, theme: void 0, unstyled: false, pt: void 0, ptOptions: {mergeSections: true, mergeProps: false}, csp: {nonce: void 0}};
   var PrimeVueSymbol = Symbol();
   function setup(app2, options3) {
    var PrimeVue2 = {config: reactive(options3)};
    app2.config.globalProperties.$primevue = PrimeVue2;
    app2.provide(PrimeVueSymbol, PrimeVue2);
    clearConfig();
    setupConfig(app2, PrimeVue2);
    return PrimeVue2;
   }
   var stopWatchers = [];
   function clearConfig() {
    N.clear();
    stopWatchers.forEach(function (fn) {
     return fn === null || fn === void 0 ? void 0 : fn();
    });
    stopWatchers = [];
   }
   function setupConfig(app2, PrimeVue2) {
    var isThemeChanged = ref(false);
    var loadCommonTheme = function loadCommonTheme2() {
     var _PrimeVue$config;
     if (((_PrimeVue$config = PrimeVue2.config) === null || _PrimeVue$config === void 0 ? void 0 : _PrimeVue$config.theme) === "none") return;
     if (!S.isStyleNameLoaded("common")) {
      var _BaseStyle$getCommonT, _PrimeVue$config2;
      var _ref = ((_BaseStyle$getCommonT = BaseStyle.getCommonTheme) === null || _BaseStyle$getCommonT === void 0 ? void 0 : _BaseStyle$getCommonT.call(BaseStyle)) || {},
       primitive = _ref.primitive,
       semantic = _ref.semantic,
       global2 = _ref.global,
       style2 = _ref.style;
      var styleOptions = {nonce: (_PrimeVue$config2 = PrimeVue2.config) === null || _PrimeVue$config2 === void 0 || (_PrimeVue$config2 = _PrimeVue$config2.csp) === null || _PrimeVue$config2 === void 0 ? void 0 : _PrimeVue$config2.nonce};
      BaseStyle.load(primitive === null || primitive === void 0 ? void 0 : primitive.css, _objectSpread$b({name: "primitive-variables"}, styleOptions));
      BaseStyle.load(semantic === null || semantic === void 0 ? void 0 : semantic.css, _objectSpread$b({name: "semantic-variables"}, styleOptions));
      BaseStyle.load(global2 === null || global2 === void 0 ? void 0 : global2.css, _objectSpread$b({name: "global-variables"}, styleOptions));
      BaseStyle.loadStyle(_objectSpread$b({name: "global-style"}, styleOptions), style2);
      S.setLoadedStyleName("common");
     }
    };
    N.on("theme:change", function (newTheme) {
     if (!isThemeChanged.value) {
      app2.config.globalProperties.$primevue.config.theme = newTheme;
      isThemeChanged.value = true;
     }
    });
    var stopConfigWatcher = watch(
     PrimeVue2.config,
     function (newValue, oldValue) {
      PrimeVueService.emit("config:change", {newValue, oldValue});
     },
     {immediate: true, deep: true},
    );
    var stopRippleWatcher = watch(
     function () {
      return PrimeVue2.config.ripple;
     },
     function (newValue, oldValue) {
      PrimeVueService.emit("config:ripple:change", {newValue, oldValue});
     },
     {immediate: true, deep: true},
    );
    var stopThemeWatcher = watch(
     function () {
      return PrimeVue2.config.theme;
     },
     function (newValue, oldValue) {
      if (!isThemeChanged.value) {
       S.setTheme(newValue);
      }
      if (!PrimeVue2.config.unstyled) {
       loadCommonTheme();
      }
      isThemeChanged.value = false;
      PrimeVueService.emit("config:theme:change", {newValue, oldValue});
     },
     {immediate: true, deep: false},
    );
    var stopUnstyledWatcher = watch(
     function () {
      return PrimeVue2.config.unstyled;
     },
     function (newValue, oldValue) {
      if (!newValue && PrimeVue2.config.theme) {
       loadCommonTheme();
      }
      PrimeVueService.emit("config:unstyled:change", {newValue, oldValue});
     },
     {immediate: true, deep: true},
    );
    stopWatchers.push(stopConfigWatcher);
    stopWatchers.push(stopRippleWatcher);
    stopWatchers.push(stopThemeWatcher);
    stopWatchers.push(stopUnstyledWatcher);
   }
   var PrimeVue = {
    install: function install(app2, options3) {
     var configOptions = H(defaultOptions$2, options3);
     setup(app2, configOptions);
    },
   };
   function warn(msg, err) {
    if (typeof console !== "undefined") {
     console.warn(`[intlify] ` + msg);
     if (err) {
      console.warn(err.stack);
     }
    }
   }
   const inBrowser = typeof window !== "undefined";
   const makeSymbol = (name, shareable = false) => (!shareable ? Symbol(name) : Symbol.for(name));
   const generateFormatCacheKey = (locale2, key, source) => friendlyJSONstringify({l: locale2, k: key, s: source});
   const friendlyJSONstringify = (json) =>
    JSON.stringify(json)
     .replace(/\u2028/g, "\\u2028")
     .replace(/\u2029/g, "\\u2029")
     .replace(/\u0027/g, "\\u0027");
   const isNumber$1 = (val) => typeof val === "number" && isFinite(val);
   const isDate = (val) => toTypeString(val) === "[object Date]";
   const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
   const isEmptyObject = (val) => isPlainObject(val) && Object.keys(val).length === 0;
   const assign = Object.assign;
   const _create = Object.create;
   const create = (obj = null) => _create(obj);
   let _globalThis;
   const getGlobalThis = () => {
    return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : create());
   };
   function escapeHtml(rawText) {
    return rawText.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
   }
   function escapeAttributeValue(value2) {
    return value2
     .replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;")
     .replace(/"/g, "&quot;")
     .replace(/'/g, "&apos;")
     .replace(/</g, "&lt;")
     .replace(/>/g, "&gt;");
   }
   function sanitizeTranslatedHtml(html) {
    html = html.replace(/(\w+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${escapeAttributeValue(attrValue)}"`);
    html = html.replace(/(\w+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${escapeAttributeValue(attrValue)}'`);
    const eventHandlerPattern = /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;
    if (eventHandlerPattern.test(html)) {
     html = html.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3");
    }
    const javascriptUrlPattern = [/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi];
    javascriptUrlPattern.forEach((pattern) => {
     html = html.replace(pattern, "$1javascript&#58;");
    });
    return html;
   }
   const hasOwnProperty = Object.prototype.hasOwnProperty;
   function hasOwn(obj, key) {
    return hasOwnProperty.call(obj, key);
   }
   const isArray = Array.isArray;
   const isFunction = (val) => typeof val === "function";
   const isString = (val) => typeof val === "string";
   const isBoolean = (val) => typeof val === "boolean";
   const isObject = (val) => val !== null && typeof val === "object";
   const isPromise = (val) => {
    return isObject(val) && isFunction(val.then) && isFunction(val.catch);
   };
   const objectToString = Object.prototype.toString;
   const toTypeString = (value2) => objectToString.call(value2);
   const isPlainObject = (val) => toTypeString(val) === "[object Object]";
   const toDisplayString = (val) => {
    return val == null ? "" : isArray(val) || (isPlainObject(val) && val.toString === objectToString) ? JSON.stringify(val, null, 2) : String(val);
   };
   function join(items, separator = "") {
    return items.reduce((str, item2, index) => (index === 0 ? str + item2 : str + separator + item2), "");
   }
   const isNotObjectOrIsArray = (val) => !isObject(val) || isArray(val);
   function deepCopy(src, des) {
    if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
     throw new Error("Invalid value");
    }
    const stack = [{src, des}];
    while (stack.length) {
     const {src: src2, des: des2} = stack.pop();
     Object.keys(src2).forEach((key) => {
      if (key === "__proto__") {
       return;
      }
      if (isObject(src2[key]) && !isObject(des2[key])) {
       des2[key] = Array.isArray(src2[key]) ? [] : create();
      }
      if (isNotObjectOrIsArray(des2[key]) || isNotObjectOrIsArray(src2[key])) {
       des2[key] = src2[key];
      } else {
       stack.push({src: src2[key], des: des2[key]});
      }
     });
    }
   }
   function createPosition(line, column, offset) {
    return {line, column, offset};
   }
   function createLocation(start, end, source) {
    const loc = {start, end};
    return loc;
   }
   const CompileErrorCodes = {EXPECTED_TOKEN: 1, INVALID_TOKEN_IN_PLACEHOLDER: 2, UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3, UNKNOWN_ESCAPE_SEQUENCE: 4, INVALID_UNICODE_ESCAPE_SEQUENCE: 5, UNBALANCED_CLOSING_BRACE: 6, UNTERMINATED_CLOSING_BRACE: 7, EMPTY_PLACEHOLDER: 8, NOT_ALLOW_NEST_PLACEHOLDER: 9, INVALID_LINKED_FORMAT: 10, MUST_HAVE_MESSAGES_IN_PLURAL: 11, UNEXPECTED_EMPTY_LINKED_MODIFIER: 12, UNEXPECTED_EMPTY_LINKED_KEY: 13, UNEXPECTED_LEXICAL_ANALYSIS: 14};
   const COMPILE_ERROR_CODES_EXTEND_POINT = 17;
   function createCompileError(code, loc, options3 = {}) {
    const {domain, messages, args} = options3;
    const msg = code;
    const error = new SyntaxError(String(msg));
    error.code = code;
    if (loc) {
     error.location = loc;
    }
    error.domain = domain;
    return error;
   }
   function defaultOnError(error) {
    throw error;
   }
   const CHAR_SP = " ";
   const CHAR_CR = "\r";
   const CHAR_LF = "\n";
   const CHAR_LS = String.fromCharCode(8232);
   const CHAR_PS = String.fromCharCode(8233);
   function createScanner(str) {
    const _buf = str;
    let _index = 0;
    let _line = 1;
    let _column = 1;
    let _peekOffset = 0;
    const isCRLF = (index2) => _buf[index2] === CHAR_CR && _buf[index2 + 1] === CHAR_LF;
    const isLF = (index2) => _buf[index2] === CHAR_LF;
    const isPS = (index2) => _buf[index2] === CHAR_PS;
    const isLS = (index2) => _buf[index2] === CHAR_LS;
    const isLineEnd = (index2) => isCRLF(index2) || isLF(index2) || isPS(index2) || isLS(index2);
    const index = () => _index;
    const line = () => _line;
    const column = () => _column;
    const peekOffset = () => _peekOffset;
    const charAt = (offset) => (isCRLF(offset) || isPS(offset) || isLS(offset) ? CHAR_LF : _buf[offset]);
    const currentChar = () => charAt(_index);
    const currentPeek = () => charAt(_index + _peekOffset);
    function next2() {
     _peekOffset = 0;
     if (isLineEnd(_index)) {
      _line++;
      _column = 0;
     }
     if (isCRLF(_index)) {
      _index++;
     }
     _index++;
     _column++;
     return _buf[_index];
    }
    function peek() {
     if (isCRLF(_index + _peekOffset)) {
      _peekOffset++;
     }
     _peekOffset++;
     return _buf[_index + _peekOffset];
    }
    function reset() {
     _index = 0;
     _line = 1;
     _column = 1;
     _peekOffset = 0;
    }
    function resetPeek(offset = 0) {
     _peekOffset = offset;
    }
    function skipToPeek() {
     const target2 = _index + _peekOffset;
     while (target2 !== _index) {
      next2();
     }
     _peekOffset = 0;
    }
    return {index, line, column, peekOffset, charAt, currentChar, currentPeek, next: next2, peek, reset, resetPeek, skipToPeek};
   }
   const EOF = void 0;
   const DOT = ".";
   const LITERAL_DELIMITER = "'";
   const ERROR_DOMAIN$3 = "tokenizer";
   function createTokenizer(source, options3 = {}) {
    const location2 = options3.location !== false;
    const _scnr = createScanner(source);
    const currentOffset = () => _scnr.index();
    const currentPosition = () => createPosition(_scnr.line(), _scnr.column(), _scnr.index());
    const _initLoc = currentPosition();
    const _initOffset = currentOffset();
    const _context = {currentType: 13, offset: _initOffset, startLoc: _initLoc, endLoc: _initLoc, lastType: 13, lastOffset: _initOffset, lastStartLoc: _initLoc, lastEndLoc: _initLoc, braceNest: 0, inLinked: false, text: ""};
    const context = () => _context;
    const {onError} = options3;
    function emitError(code, pos, offset, ...args) {
     const ctx = context();
     pos.column += offset;
     pos.offset += offset;
     if (onError) {
      const loc = location2 ? createLocation(ctx.startLoc, pos) : null;
      const err = createCompileError(code, loc, {domain: ERROR_DOMAIN$3, args});
      onError(err);
     }
    }
    function getToken(context2, type, value2) {
     context2.endLoc = currentPosition();
     context2.currentType = type;
     const token = {type};
     if (location2) {
      token.loc = createLocation(context2.startLoc, context2.endLoc);
     }
     if (value2 != null) {
      token.value = value2;
     }
     return token;
    }
    const getEndToken = (context2) => getToken(context2, 13);
    function eat(scnr, ch) {
     if (scnr.currentChar() === ch) {
      scnr.next();
      return ch;
     } else {
      emitError(CompileErrorCodes.EXPECTED_TOKEN, currentPosition(), 0, ch);
      return "";
     }
    }
    function peekSpaces(scnr) {
     let buf = "";
     while (scnr.currentPeek() === CHAR_SP || scnr.currentPeek() === CHAR_LF) {
      buf += scnr.currentPeek();
      scnr.peek();
     }
     return buf;
    }
    function skipSpaces(scnr) {
     const buf = peekSpaces(scnr);
     scnr.skipToPeek();
     return buf;
    }
    function isIdentifierStart(ch) {
     if (ch === EOF) {
      return false;
     }
     const cc = ch.charCodeAt(0);
     return (cc >= 97 && cc <= 122) || (cc >= 65 && cc <= 90) || cc === 95;
    }
    function isNumberStart(ch) {
     if (ch === EOF) {
      return false;
     }
     const cc = ch.charCodeAt(0);
     return cc >= 48 && cc <= 57;
    }
    function isNamedIdentifierStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 2) {
      return false;
     }
     peekSpaces(scnr);
     const ret = isIdentifierStart(scnr.currentPeek());
     scnr.resetPeek();
     return ret;
    }
    function isListIdentifierStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 2) {
      return false;
     }
     peekSpaces(scnr);
     const ch = scnr.currentPeek() === "-" ? scnr.peek() : scnr.currentPeek();
     const ret = isNumberStart(ch);
     scnr.resetPeek();
     return ret;
    }
    function isLiteralStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 2) {
      return false;
     }
     peekSpaces(scnr);
     const ret = scnr.currentPeek() === LITERAL_DELIMITER;
     scnr.resetPeek();
     return ret;
    }
    function isLinkedDotStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 7) {
      return false;
     }
     peekSpaces(scnr);
     const ret = scnr.currentPeek() === ".";
     scnr.resetPeek();
     return ret;
    }
    function isLinkedModifierStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 8) {
      return false;
     }
     peekSpaces(scnr);
     const ret = isIdentifierStart(scnr.currentPeek());
     scnr.resetPeek();
     return ret;
    }
    function isLinkedDelimiterStart(scnr, context2) {
     const {currentType} = context2;
     if (!(currentType === 7 || currentType === 11)) {
      return false;
     }
     peekSpaces(scnr);
     const ret = scnr.currentPeek() === ":";
     scnr.resetPeek();
     return ret;
    }
    function isLinkedReferStart(scnr, context2) {
     const {currentType} = context2;
     if (currentType !== 9) {
      return false;
     }
     const fn = () => {
      const ch = scnr.currentPeek();
      if (ch === "{") {
       return isIdentifierStart(scnr.peek());
      } else if (ch === "@" || ch === "|" || ch === ":" || ch === "." || ch === CHAR_SP || !ch) {
       return false;
      } else if (ch === CHAR_LF) {
       scnr.peek();
       return fn();
      } else {
       return isTextStart(scnr, false);
      }
     };
     const ret = fn();
     scnr.resetPeek();
     return ret;
    }
    function isPluralStart(scnr) {
     peekSpaces(scnr);
     const ret = scnr.currentPeek() === "|";
     scnr.resetPeek();
     return ret;
    }
    function isTextStart(scnr, reset = true) {
     const fn = (hasSpace = false, prev2 = "") => {
      const ch = scnr.currentPeek();
      if (ch === "{") {
       return hasSpace;
      } else if (ch === "@" || !ch) {
       return hasSpace;
      } else if (ch === "|") {
       return !(prev2 === CHAR_SP || prev2 === CHAR_LF);
      } else if (ch === CHAR_SP) {
       scnr.peek();
       return fn(true, CHAR_SP);
      } else if (ch === CHAR_LF) {
       scnr.peek();
       return fn(true, CHAR_LF);
      } else {
       return true;
      }
     };
     const ret = fn();
     reset && scnr.resetPeek();
     return ret;
    }
    function takeChar(scnr, fn) {
     const ch = scnr.currentChar();
     if (ch === EOF) {
      return EOF;
     }
     if (fn(ch)) {
      scnr.next();
      return ch;
     }
     return null;
    }
    function isIdentifier(ch) {
     const cc = ch.charCodeAt(0);
     return (cc >= 97 && cc <= 122) || (cc >= 65 && cc <= 90) || (cc >= 48 && cc <= 57) || cc === 95 || cc === 36;
    }
    function takeIdentifierChar(scnr) {
     return takeChar(scnr, isIdentifier);
    }
    function isNamedIdentifier(ch) {
     const cc = ch.charCodeAt(0);
     return (cc >= 97 && cc <= 122) || (cc >= 65 && cc <= 90) || (cc >= 48 && cc <= 57) || cc === 95 || cc === 36 || cc === 45;
    }
    function takeNamedIdentifierChar(scnr) {
     return takeChar(scnr, isNamedIdentifier);
    }
    function isDigit(ch) {
     const cc = ch.charCodeAt(0);
     return cc >= 48 && cc <= 57;
    }
    function takeDigit(scnr) {
     return takeChar(scnr, isDigit);
    }
    function isHexDigit(ch) {
     const cc = ch.charCodeAt(0);
     return (cc >= 48 && cc <= 57) || (cc >= 65 && cc <= 70) || (cc >= 97 && cc <= 102);
    }
    function takeHexDigit(scnr) {
     return takeChar(scnr, isHexDigit);
    }
    function getDigits(scnr) {
     let ch = "";
     let num = "";
     while ((ch = takeDigit(scnr))) {
      num += ch;
     }
     return num;
    }
    function readText(scnr) {
     let buf = "";
     while (true) {
      const ch = scnr.currentChar();
      if (ch === "{" || ch === "}" || ch === "@" || ch === "|" || !ch) {
       break;
      } else if (ch === CHAR_SP || ch === CHAR_LF) {
       if (isTextStart(scnr)) {
        buf += ch;
        scnr.next();
       } else if (isPluralStart(scnr)) {
        break;
       } else {
        buf += ch;
        scnr.next();
       }
      } else {
       buf += ch;
       scnr.next();
      }
     }
     return buf;
    }
    function readNamedIdentifier(scnr) {
     skipSpaces(scnr);
     let ch = "";
     let name = "";
     while ((ch = takeNamedIdentifierChar(scnr))) {
      name += ch;
     }
     const currentChar = scnr.currentChar();
     if (currentChar && currentChar !== "}" && currentChar !== EOF && currentChar !== CHAR_SP && currentChar !== CHAR_LF && currentChar !== " ") {
      const invalidPart = readInvalidIdentifier(scnr);
      emitError(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, currentPosition(), 0, name + invalidPart);
      return name + invalidPart;
     }
     if (scnr.currentChar() === EOF) {
      emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
     }
     return name;
    }
    function readListIdentifier(scnr) {
     skipSpaces(scnr);
     let value2 = "";
     if (scnr.currentChar() === "-") {
      scnr.next();
      value2 += `-${getDigits(scnr)}`;
     } else {
      value2 += getDigits(scnr);
     }
     if (scnr.currentChar() === EOF) {
      emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
     }
     return value2;
    }
    function isLiteral2(ch) {
     return ch !== LITERAL_DELIMITER && ch !== CHAR_LF;
    }
    function readLiteral(scnr) {
     skipSpaces(scnr);
     eat(scnr, `'`);
     let ch = "";
     let literal = "";
     while ((ch = takeChar(scnr, isLiteral2))) {
      if (ch === "\\") {
       literal += readEscapeSequence(scnr);
      } else {
       literal += ch;
      }
     }
     const current = scnr.currentChar();
     if (current === CHAR_LF || current === EOF) {
      emitError(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, currentPosition(), 0);
      if (current === CHAR_LF) {
       scnr.next();
       eat(scnr, `'`);
      }
      return literal;
     }
     eat(scnr, `'`);
     return literal;
    }
    function readEscapeSequence(scnr) {
     const ch = scnr.currentChar();
     switch (ch) {
      case "\\":
      case `'`:
       scnr.next();
       return `\\${ch}`;
      case "u":
       return readUnicodeEscapeSequence(scnr, ch, 4);
      case "U":
       return readUnicodeEscapeSequence(scnr, ch, 6);
      default:
       emitError(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, currentPosition(), 0, ch);
       return "";
     }
    }
    function readUnicodeEscapeSequence(scnr, unicode, digits) {
     eat(scnr, unicode);
     let sequence = "";
     for (let i2 = 0; i2 < digits; i2++) {
      const ch = takeHexDigit(scnr);
      if (!ch) {
       emitError(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, currentPosition(), 0, `\\${unicode}${sequence}${scnr.currentChar()}`);
       break;
      }
      sequence += ch;
     }
     return `\\${unicode}${sequence}`;
    }
    function isInvalidIdentifier(ch) {
     return ch !== "{" && ch !== "}" && ch !== CHAR_SP && ch !== CHAR_LF;
    }
    function readInvalidIdentifier(scnr) {
     skipSpaces(scnr);
     let ch = "";
     let identifiers = "";
     while ((ch = takeChar(scnr, isInvalidIdentifier))) {
      identifiers += ch;
     }
     return identifiers;
    }
    function readLinkedModifier(scnr) {
     let ch = "";
     let name = "";
     while ((ch = takeIdentifierChar(scnr))) {
      name += ch;
     }
     return name;
    }
    function readLinkedRefer(scnr) {
     const fn = (buf) => {
      const ch = scnr.currentChar();
      if (ch === "{" || ch === "@" || ch === "|" || ch === "(" || ch === ")" || !ch) {
       return buf;
      } else if (ch === CHAR_SP) {
       return buf;
      } else if (ch === CHAR_LF || ch === DOT) {
       buf += ch;
       scnr.next();
       return fn(buf);
      } else {
       buf += ch;
       scnr.next();
       return fn(buf);
      }
     };
     return fn("");
    }
    function readPlural(scnr) {
     skipSpaces(scnr);
     const plural = eat(scnr, "|");
     skipSpaces(scnr);
     return plural;
    }
    function readTokenInPlaceholder(scnr, context2) {
     let token = null;
     const ch = scnr.currentChar();
     switch (ch) {
      case "{":
       if (context2.braceNest >= 1) {
        emitError(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, currentPosition(), 0);
       }
       scnr.next();
       token = getToken(context2, 2, "{");
       skipSpaces(scnr);
       context2.braceNest++;
       return token;
      case "}":
       if (context2.braceNest > 0 && context2.currentType === 2) {
        emitError(CompileErrorCodes.EMPTY_PLACEHOLDER, currentPosition(), 0);
       }
       scnr.next();
       token = getToken(context2, 3, "}");
       context2.braceNest--;
       context2.braceNest > 0 && skipSpaces(scnr);
       if (context2.inLinked && context2.braceNest === 0) {
        context2.inLinked = false;
       }
       return token;
      case "@":
       if (context2.braceNest > 0) {
        emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
       }
       token = readTokenInLinked(scnr, context2) || getEndToken(context2);
       context2.braceNest = 0;
       return token;
      default: {
       let validNamedIdentifier = true;
       let validListIdentifier = true;
       let validLiteral = true;
       if (isPluralStart(scnr)) {
        if (context2.braceNest > 0) {
         emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
        }
        token = getToken(context2, 1, readPlural(scnr));
        context2.braceNest = 0;
        context2.inLinked = false;
        return token;
       }
       if (context2.braceNest > 0 && (context2.currentType === 4 || context2.currentType === 5 || context2.currentType === 6)) {
        emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
        context2.braceNest = 0;
        return readToken(scnr, context2);
       }
       if ((validNamedIdentifier = isNamedIdentifierStart(scnr, context2))) {
        token = getToken(context2, 4, readNamedIdentifier(scnr));
        skipSpaces(scnr);
        return token;
       }
       if ((validListIdentifier = isListIdentifierStart(scnr, context2))) {
        token = getToken(context2, 5, readListIdentifier(scnr));
        skipSpaces(scnr);
        return token;
       }
       if ((validLiteral = isLiteralStart(scnr, context2))) {
        token = getToken(context2, 6, readLiteral(scnr));
        skipSpaces(scnr);
        return token;
       }
       if (!validNamedIdentifier && !validListIdentifier && !validLiteral) {
        token = getToken(context2, 12, readInvalidIdentifier(scnr));
        emitError(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, currentPosition(), 0, token.value);
        skipSpaces(scnr);
        return token;
       }
       break;
      }
     }
     return token;
    }
    function readTokenInLinked(scnr, context2) {
     const {currentType} = context2;
     let token = null;
     const ch = scnr.currentChar();
     if ((currentType === 7 || currentType === 8 || currentType === 11 || currentType === 9) && (ch === CHAR_LF || ch === CHAR_SP)) {
      emitError(CompileErrorCodes.INVALID_LINKED_FORMAT, currentPosition(), 0);
     }
     switch (ch) {
      case "@":
       scnr.next();
       token = getToken(context2, 7, "@");
       context2.inLinked = true;
       return token;
      case ".":
       skipSpaces(scnr);
       scnr.next();
       return getToken(context2, 8, ".");
      case ":":
       skipSpaces(scnr);
       scnr.next();
       return getToken(context2, 9, ":");
      default:
       if (isPluralStart(scnr)) {
        token = getToken(context2, 1, readPlural(scnr));
        context2.braceNest = 0;
        context2.inLinked = false;
        return token;
       }
       if (isLinkedDotStart(scnr, context2) || isLinkedDelimiterStart(scnr, context2)) {
        skipSpaces(scnr);
        return readTokenInLinked(scnr, context2);
       }
       if (isLinkedModifierStart(scnr, context2)) {
        skipSpaces(scnr);
        return getToken(context2, 11, readLinkedModifier(scnr));
       }
       if (isLinkedReferStart(scnr, context2)) {
        skipSpaces(scnr);
        if (ch === "{") {
         return readTokenInPlaceholder(scnr, context2) || token;
        } else {
         return getToken(context2, 10, readLinkedRefer(scnr));
        }
       }
       if (currentType === 7) {
        emitError(CompileErrorCodes.INVALID_LINKED_FORMAT, currentPosition(), 0);
       }
       context2.braceNest = 0;
       context2.inLinked = false;
       return readToken(scnr, context2);
     }
    }
    function readToken(scnr, context2) {
     let token = {type: 13};
     if (context2.braceNest > 0) {
      return readTokenInPlaceholder(scnr, context2) || getEndToken(context2);
     }
     if (context2.inLinked) {
      return readTokenInLinked(scnr, context2) || getEndToken(context2);
     }
     const ch = scnr.currentChar();
     switch (ch) {
      case "{":
       return readTokenInPlaceholder(scnr, context2) || getEndToken(context2);
      case "}":
       emitError(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, currentPosition(), 0);
       scnr.next();
       return getToken(context2, 3, "}");
      case "@":
       return readTokenInLinked(scnr, context2) || getEndToken(context2);
      default: {
       if (isPluralStart(scnr)) {
        token = getToken(context2, 1, readPlural(scnr));
        context2.braceNest = 0;
        context2.inLinked = false;
        return token;
       }
       if (isTextStart(scnr)) {
        return getToken(context2, 0, readText(scnr));
       }
       break;
      }
     }
     return token;
    }
    function nextToken() {
     const {currentType, offset, startLoc, endLoc} = _context;
     _context.lastType = currentType;
     _context.lastOffset = offset;
     _context.lastStartLoc = startLoc;
     _context.lastEndLoc = endLoc;
     _context.offset = currentOffset();
     _context.startLoc = currentPosition();
     if (_scnr.currentChar() === EOF) {
      return getToken(_context, 13);
     }
     return readToken(_scnr, _context);
    }
    return {nextToken, currentOffset, currentPosition, context};
   }
   const ERROR_DOMAIN$2 = "parser";
   const KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
   function fromEscapeSequence(match, codePoint4, codePoint6) {
    switch (match) {
     case `\\\\`:
      return `\\`;
     case `\\'`:
      return `'`;
     default: {
      const codePoint = parseInt(codePoint4 || codePoint6, 16);
      if (codePoint <= 55295 || codePoint >= 57344) {
       return String.fromCodePoint(codePoint);
      }
      return "�";
     }
    }
   }
   function createParser(options3 = {}) {
    const location2 = options3.location !== false;
    const {onError} = options3;
    function emitError(tokenzer, code, start, offset, ...args) {
     const end = tokenzer.currentPosition();
     end.offset += offset;
     end.column += offset;
     if (onError) {
      const loc = location2 ? createLocation(start, end) : null;
      const err = createCompileError(code, loc, {domain: ERROR_DOMAIN$2, args});
      onError(err);
     }
    }
    function startNode(type, offset, loc) {
     const node = {type};
     if (location2) {
      node.start = offset;
      node.end = offset;
      node.loc = {start: loc, end: loc};
     }
     return node;
    }
    function endNode(node, offset, pos, type) {
     if (location2) {
      node.end = offset;
      if (node.loc) {
       node.loc.end = pos;
      }
     }
    }
    function parseText(tokenizer, value2) {
     const context = tokenizer.context();
     const node = startNode(3, context.offset, context.startLoc);
     node.value = value2;
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseList(tokenizer, index) {
     const context = tokenizer.context();
     const {lastOffset: offset, lastStartLoc: loc} = context;
     const node = startNode(5, offset, loc);
     node.index = parseInt(index, 10);
     tokenizer.nextToken();
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseNamed(tokenizer, key) {
     const context = tokenizer.context();
     const {lastOffset: offset, lastStartLoc: loc} = context;
     const node = startNode(4, offset, loc);
     node.key = key;
     tokenizer.nextToken();
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseLiteral(tokenizer, value2) {
     const context = tokenizer.context();
     const {lastOffset: offset, lastStartLoc: loc} = context;
     const node = startNode(9, offset, loc);
     node.value = value2.replace(KNOWN_ESCAPES, fromEscapeSequence);
     tokenizer.nextToken();
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseLinkedModifier(tokenizer) {
     const token = tokenizer.nextToken();
     const context = tokenizer.context();
     const {lastOffset: offset, lastStartLoc: loc} = context;
     const node = startNode(8, offset, loc);
     if (token.type !== 11) {
      emitError(tokenizer, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, context.lastStartLoc, 0);
      node.value = "";
      endNode(node, offset, loc);
      return {nextConsumeToken: token, node};
     }
     if (token.value == null) {
      emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
     }
     node.value = token.value || "";
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return {node};
    }
    function parseLinkedKey(tokenizer, value2) {
     const context = tokenizer.context();
     const node = startNode(7, context.offset, context.startLoc);
     node.value = value2;
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseLinked(tokenizer) {
     const context = tokenizer.context();
     const linkedNode = startNode(6, context.offset, context.startLoc);
     let token = tokenizer.nextToken();
     if (token.type === 8) {
      const parsed = parseLinkedModifier(tokenizer);
      linkedNode.modifier = parsed.node;
      token = parsed.nextConsumeToken || tokenizer.nextToken();
     }
     if (token.type !== 9) {
      emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
     }
     token = tokenizer.nextToken();
     if (token.type === 2) {
      token = tokenizer.nextToken();
     }
     switch (token.type) {
      case 10:
       if (token.value == null) {
        emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
       }
       linkedNode.key = parseLinkedKey(tokenizer, token.value || "");
       break;
      case 4:
       if (token.value == null) {
        emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
       }
       linkedNode.key = parseNamed(tokenizer, token.value || "");
       break;
      case 5:
       if (token.value == null) {
        emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
       }
       linkedNode.key = parseList(tokenizer, token.value || "");
       break;
      case 6:
       if (token.value == null) {
        emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
       }
       linkedNode.key = parseLiteral(tokenizer, token.value || "");
       break;
      default: {
       emitError(tokenizer, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, context.lastStartLoc, 0);
       const nextContext = tokenizer.context();
       const emptyLinkedKeyNode = startNode(7, nextContext.offset, nextContext.startLoc);
       emptyLinkedKeyNode.value = "";
       endNode(emptyLinkedKeyNode, nextContext.offset, nextContext.startLoc);
       linkedNode.key = emptyLinkedKeyNode;
       endNode(linkedNode, nextContext.offset, nextContext.startLoc);
       return {nextConsumeToken: token, node: linkedNode};
      }
     }
     endNode(linkedNode, tokenizer.currentOffset(), tokenizer.currentPosition());
     return {node: linkedNode};
    }
    function parseMessage(tokenizer) {
     const context = tokenizer.context();
     const startOffset = context.currentType === 1 ? tokenizer.currentOffset() : context.offset;
     const startLoc = context.currentType === 1 ? context.endLoc : context.startLoc;
     const node = startNode(2, startOffset, startLoc);
     node.items = [];
     let nextToken = null;
     do {
      const token = nextToken || tokenizer.nextToken();
      nextToken = null;
      switch (token.type) {
       case 0:
        if (token.value == null) {
         emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
        }
        node.items.push(parseText(tokenizer, token.value || ""));
        break;
       case 5:
        if (token.value == null) {
         emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
        }
        node.items.push(parseList(tokenizer, token.value || ""));
        break;
       case 4:
        if (token.value == null) {
         emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
        }
        node.items.push(parseNamed(tokenizer, token.value || ""));
        break;
       case 6:
        if (token.value == null) {
         emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
        }
        node.items.push(parseLiteral(tokenizer, token.value || ""));
        break;
       case 7: {
        const parsed = parseLinked(tokenizer);
        node.items.push(parsed.node);
        nextToken = parsed.nextConsumeToken || null;
        break;
       }
      }
     } while (context.currentType !== 13 && context.currentType !== 1);
     const endOffset = context.currentType === 1 ? context.lastOffset : tokenizer.currentOffset();
     const endLoc = context.currentType === 1 ? context.lastEndLoc : tokenizer.currentPosition();
     endNode(node, endOffset, endLoc);
     return node;
    }
    function parsePlural(tokenizer, offset, loc, msgNode) {
     const context = tokenizer.context();
     let hasEmptyMessage = msgNode.items.length === 0;
     const node = startNode(1, offset, loc);
     node.cases = [];
     node.cases.push(msgNode);
     do {
      const msg = parseMessage(tokenizer);
      if (!hasEmptyMessage) {
       hasEmptyMessage = msg.items.length === 0;
      }
      node.cases.push(msg);
     } while (context.currentType !== 13);
     if (hasEmptyMessage) {
      emitError(tokenizer, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, loc, 0);
     }
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    function parseResource(tokenizer) {
     const context = tokenizer.context();
     const {offset, startLoc} = context;
     const msgNode = parseMessage(tokenizer);
     if (context.currentType === 13) {
      return msgNode;
     } else {
      return parsePlural(tokenizer, offset, startLoc, msgNode);
     }
    }
    function parse2(source) {
     const tokenizer = createTokenizer(source, assign({}, options3));
     const context = tokenizer.context();
     const node = startNode(0, context.offset, context.startLoc);
     if (location2 && node.loc) {
      node.loc.source = source;
     }
     node.body = parseResource(tokenizer);
     if (options3.onCacheKey) {
      node.cacheKey = options3.onCacheKey(source);
     }
     if (context.currentType !== 13) {
      emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, source[context.offset] || "");
     }
     endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
     return node;
    }
    return {parse: parse2};
   }
   function getTokenCaption(token) {
    if (token.type === 13) {
     return "EOF";
    }
    const name = (token.value || "").replace(/\r?\n/gu, "\\n");
    return name.length > 10 ? name.slice(0, 9) + "…" : name;
   }
   function createTransformer(ast, options3 = {}) {
    const _context = {ast, helpers: new Set()};
    const context = () => _context;
    const helper = (name) => {
     _context.helpers.add(name);
     return name;
    };
    return {context, helper};
   }
   function traverseNodes(nodes, transformer) {
    for (let i2 = 0; i2 < nodes.length; i2++) {
     traverseNode(nodes[i2], transformer);
    }
   }
   function traverseNode(node, transformer) {
    switch (node.type) {
     case 1:
      traverseNodes(node.cases, transformer);
      transformer.helper("plural");
      break;
     case 2:
      traverseNodes(node.items, transformer);
      break;
     case 6: {
      const linked = node;
      traverseNode(linked.key, transformer);
      transformer.helper("linked");
      transformer.helper("type");
      break;
     }
     case 5:
      transformer.helper("interpolate");
      transformer.helper("list");
      break;
     case 4:
      transformer.helper("interpolate");
      transformer.helper("named");
      break;
    }
   }
   function transform(ast, options3 = {}) {
    const transformer = createTransformer(ast);
    transformer.helper("normalize");
    ast.body && traverseNode(ast.body, transformer);
    const context = transformer.context();
    ast.helpers = Array.from(context.helpers);
   }
   function optimize(ast) {
    const body = ast.body;
    if (body.type === 2) {
     optimizeMessageNode(body);
    } else {
     body.cases.forEach((c2) => optimizeMessageNode(c2));
    }
    return ast;
   }
   function optimizeMessageNode(message3) {
    if (message3.items.length === 1) {
     const item2 = message3.items[0];
     if (item2.type === 3 || item2.type === 9) {
      message3.static = item2.value;
      delete item2.value;
     }
    } else {
     const values = [];
     for (let i2 = 0; i2 < message3.items.length; i2++) {
      const item2 = message3.items[i2];
      if (!(item2.type === 3 || item2.type === 9)) {
       break;
      }
      if (item2.value == null) {
       break;
      }
      values.push(item2.value);
     }
     if (values.length === message3.items.length) {
      message3.static = join(values);
      for (let i2 = 0; i2 < message3.items.length; i2++) {
       const item2 = message3.items[i2];
       if (item2.type === 3 || item2.type === 9) {
        delete item2.value;
       }
      }
     }
    }
   }
   function minify(node) {
    node.t = node.type;
    switch (node.type) {
     case 0: {
      const resource = node;
      minify(resource.body);
      resource.b = resource.body;
      delete resource.body;
      break;
     }
     case 1: {
      const plural = node;
      const cases = plural.cases;
      for (let i2 = 0; i2 < cases.length; i2++) {
       minify(cases[i2]);
      }
      plural.c = cases;
      delete plural.cases;
      break;
     }
     case 2: {
      const message3 = node;
      const items = message3.items;
      for (let i2 = 0; i2 < items.length; i2++) {
       minify(items[i2]);
      }
      message3.i = items;
      delete message3.items;
      if (message3.static) {
       message3.s = message3.static;
       delete message3.static;
      }
      break;
     }
     case 3:
     case 9:
     case 8:
     case 7: {
      const valueNode = node;
      if (valueNode.value) {
       valueNode.v = valueNode.value;
       delete valueNode.value;
      }
      break;
     }
     case 6: {
      const linked = node;
      minify(linked.key);
      linked.k = linked.key;
      delete linked.key;
      if (linked.modifier) {
       minify(linked.modifier);
       linked.m = linked.modifier;
       delete linked.modifier;
      }
      break;
     }
     case 5: {
      const list = node;
      list.i = list.index;
      delete list.index;
      break;
     }
     case 4: {
      const named = node;
      named.k = named.key;
      delete named.key;
      break;
     }
    }
    delete node.type;
   }
   function createCodeGenerator(ast, options3) {
    const {filename, breakLineCode, needIndent: _needIndent} = options3;
    const location2 = options3.location !== false;
    const _context = {filename, code: "", column: 1, line: 1, offset: 0, map: void 0, breakLineCode, needIndent: _needIndent, indentLevel: 0};
    if (location2 && ast.loc) {
     _context.source = ast.loc.source;
    }
    const context = () => _context;
    function push(code, node) {
     _context.code += code;
    }
    function _newline(n, withBreakLine = true) {
     const _breakLineCode = withBreakLine ? breakLineCode : "";
     push(_needIndent ? _breakLineCode + `  `.repeat(n) : _breakLineCode);
    }
    function indent(withNewLine = true) {
     const level = ++_context.indentLevel;
     withNewLine && _newline(level);
    }
    function deindent(withNewLine = true) {
     const level = --_context.indentLevel;
     withNewLine && _newline(level);
    }
    function newline() {
     _newline(_context.indentLevel);
    }
    const helper = (key) => `_${key}`;
    const needIndent = () => _context.needIndent;
    return {context, push, indent, deindent, newline, helper, needIndent};
   }
   function generateLinkedNode(generator, node) {
    const {helper} = generator;
    generator.push(`${helper("linked")}(`);
    generateNode(generator, node.key);
    if (node.modifier) {
     generator.push(`, `);
     generateNode(generator, node.modifier);
     generator.push(`, _type`);
    } else {
     generator.push(`, undefined, _type`);
    }
    generator.push(`)`);
   }
   function generateMessageNode(generator, node) {
    const {helper, needIndent} = generator;
    generator.push(`${helper("normalize")}([`);
    generator.indent(needIndent());
    const length = node.items.length;
    for (let i2 = 0; i2 < length; i2++) {
     generateNode(generator, node.items[i2]);
     if (i2 === length - 1) {
      break;
     }
     generator.push(", ");
    }
    generator.deindent(needIndent());
    generator.push("])");
   }
   function generatePluralNode(generator, node) {
    const {helper, needIndent} = generator;
    if (node.cases.length > 1) {
     generator.push(`${helper("plural")}([`);
     generator.indent(needIndent());
     const length = node.cases.length;
     for (let i2 = 0; i2 < length; i2++) {
      generateNode(generator, node.cases[i2]);
      if (i2 === length - 1) {
       break;
      }
      generator.push(", ");
     }
     generator.deindent(needIndent());
     generator.push(`])`);
    }
   }
   function generateResource(generator, node) {
    if (node.body) {
     generateNode(generator, node.body);
    } else {
     generator.push("null");
    }
   }
   function generateNode(generator, node) {
    const {helper} = generator;
    switch (node.type) {
     case 0:
      generateResource(generator, node);
      break;
     case 1:
      generatePluralNode(generator, node);
      break;
     case 2:
      generateMessageNode(generator, node);
      break;
     case 6:
      generateLinkedNode(generator, node);
      break;
     case 8:
      generator.push(JSON.stringify(node.value), node);
      break;
     case 7:
      generator.push(JSON.stringify(node.value), node);
      break;
     case 5:
      generator.push(`${helper("interpolate")}(${helper("list")}(${node.index}))`, node);
      break;
     case 4:
      generator.push(`${helper("interpolate")}(${helper("named")}(${JSON.stringify(node.key)}))`, node);
      break;
     case 9:
      generator.push(JSON.stringify(node.value), node);
      break;
     case 3:
      generator.push(JSON.stringify(node.value), node);
      break;
    }
   }
   const generate = (ast, options3 = {}) => {
    const mode2 = isString(options3.mode) ? options3.mode : "normal";
    const filename = isString(options3.filename) ? options3.filename : "message.intl";
    !!options3.sourceMap;
    const breakLineCode = options3.breakLineCode != null ? options3.breakLineCode : mode2 === "arrow" ? ";" : "\n";
    const needIndent = options3.needIndent ? options3.needIndent : mode2 !== "arrow";
    const helpers = ast.helpers || [];
    const generator = createCodeGenerator(ast, {filename, breakLineCode, needIndent});
    generator.push(mode2 === "normal" ? `function __msg__ (ctx) {` : `(ctx) => {`);
    generator.indent(needIndent);
    if (helpers.length > 0) {
     generator.push(
      `const { ${join(
       helpers.map((s2) => `${s2}: _${s2}`),
       ", ",
      )} } = ctx`,
     );
     generator.newline();
    }
    generator.push(`return `);
    generateNode(generator, ast);
    generator.deindent(needIndent);
    generator.push(`}`);
    delete ast.helpers;
    const {code, map} = generator.context();
    return {ast, code, map: map ? map.toJSON() : void 0};
   };
   function baseCompile$1(source, options3 = {}) {
    const assignedOptions = assign({}, options3);
    const jit = !!assignedOptions.jit;
    const enalbeMinify = !!assignedOptions.minify;
    const enambeOptimize = assignedOptions.optimize == null ? true : assignedOptions.optimize;
    const parser = createParser(assignedOptions);
    const ast = parser.parse(source);
    if (!jit) {
     transform(ast, assignedOptions);
     return generate(ast, assignedOptions);
    } else {
     enambeOptimize && optimize(ast);
     enalbeMinify && minify(ast);
     return {ast, code: ""};
    }
   }
   function initFeatureFlags$1() {
    if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
     getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
    }
    if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== "boolean") {
     getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
    }
   }
   function isMessageAST(val) {
    return isObject(val) && resolveType(val) === 0 && (hasOwn(val, "b") || hasOwn(val, "body"));
   }
   const PROPS_BODY = ["b", "body"];
   function resolveBody(node) {
    return resolveProps(node, PROPS_BODY);
   }
   const PROPS_CASES = ["c", "cases"];
   function resolveCases(node) {
    return resolveProps(node, PROPS_CASES, []);
   }
   const PROPS_STATIC = ["s", "static"];
   function resolveStatic(node) {
    return resolveProps(node, PROPS_STATIC);
   }
   const PROPS_ITEMS = ["i", "items"];
   function resolveItems(node) {
    return resolveProps(node, PROPS_ITEMS, []);
   }
   const PROPS_TYPE = ["t", "type"];
   function resolveType(node) {
    return resolveProps(node, PROPS_TYPE);
   }
   const PROPS_VALUE = ["v", "value"];
   function resolveValue$1(node, type) {
    const resolved = resolveProps(node, PROPS_VALUE);
    if (resolved != null) {
     return resolved;
    } else {
     throw createUnhandleNodeError(type);
    }
   }
   const PROPS_MODIFIER = ["m", "modifier"];
   function resolveLinkedModifier(node) {
    return resolveProps(node, PROPS_MODIFIER);
   }
   const PROPS_KEY = ["k", "key"];
   function resolveLinkedKey(node) {
    const resolved = resolveProps(node, PROPS_KEY);
    if (resolved) {
     return resolved;
    } else {
     throw createUnhandleNodeError(6);
    }
   }
   function resolveProps(node, props2, defaultValue2) {
    for (let i2 = 0; i2 < props2.length; i2++) {
     const prop = props2[i2];
     if (hasOwn(node, prop) && node[prop] != null) {
      return node[prop];
     }
    }
    return defaultValue2;
   }
   const AST_NODE_PROPS_KEYS = [...PROPS_BODY, ...PROPS_CASES, ...PROPS_STATIC, ...PROPS_ITEMS, ...PROPS_KEY, ...PROPS_MODIFIER, ...PROPS_VALUE, ...PROPS_TYPE];
   function createUnhandleNodeError(type) {
    return new Error(`unhandled node type: ${type}`);
   }
   function format(ast) {
    const msg = (ctx) => formatParts(ctx, ast);
    return msg;
   }
   function formatParts(ctx, ast) {
    const body = resolveBody(ast);
    if (body == null) {
     throw createUnhandleNodeError(0);
    }
    const type = resolveType(body);
    if (type === 1) {
     const plural = body;
     const cases = resolveCases(plural);
     return ctx.plural(cases.reduce((messages, c2) => [...messages, formatMessageParts(ctx, c2)], []));
    } else {
     return formatMessageParts(ctx, body);
    }
   }
   function formatMessageParts(ctx, node) {
    const static_ = resolveStatic(node);
    if (static_ != null) {
     return ctx.type === "text" ? static_ : ctx.normalize([static_]);
    } else {
     const messages = resolveItems(node).reduce((acm, c2) => [...acm, formatMessagePart(ctx, c2)], []);
     return ctx.normalize(messages);
    }
   }
   function formatMessagePart(ctx, node) {
    const type = resolveType(node);
    switch (type) {
     case 3: {
      return resolveValue$1(node, type);
     }
     case 9: {
      return resolveValue$1(node, type);
     }
     case 4: {
      const named = node;
      if (hasOwn(named, "k") && named.k) {
       return ctx.interpolate(ctx.named(named.k));
      }
      if (hasOwn(named, "key") && named.key) {
       return ctx.interpolate(ctx.named(named.key));
      }
      throw createUnhandleNodeError(type);
     }
     case 5: {
      const list = node;
      if (hasOwn(list, "i") && isNumber$1(list.i)) {
       return ctx.interpolate(ctx.list(list.i));
      }
      if (hasOwn(list, "index") && isNumber$1(list.index)) {
       return ctx.interpolate(ctx.list(list.index));
      }
      throw createUnhandleNodeError(type);
     }
     case 6: {
      const linked = node;
      const modifier = resolveLinkedModifier(linked);
      const key = resolveLinkedKey(linked);
      return ctx.linked(formatMessagePart(ctx, key), modifier ? formatMessagePart(ctx, modifier) : void 0, ctx.type);
     }
     case 7: {
      return resolveValue$1(node, type);
     }
     case 8: {
      return resolveValue$1(node, type);
     }
     default:
      throw new Error(`unhandled node on format message part: ${type}`);
    }
   }
   const defaultOnCacheKey = (message3) => message3;
   let compileCache = create();
   function baseCompile(message3, options3 = {}) {
    let detectError = false;
    const onError = options3.onError || defaultOnError;
    options3.onError = (err) => {
     detectError = true;
     onError(err);
    };
    return {...baseCompile$1(message3, options3), detectError};
   }
   function compile(message3, context) {
    if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && isString(message3)) {
     isBoolean(context.warnHtmlMessage) ? context.warnHtmlMessage : true;
     const onCacheKey = context.onCacheKey || defaultOnCacheKey;
     const cacheKey = onCacheKey(message3);
     const cached = compileCache[cacheKey];
     if (cached) {
      return cached;
     }
     const {ast, detectError} = baseCompile(message3, {...context, location: false, jit: true});
     const msg = format(ast);
     return !detectError ? (compileCache[cacheKey] = msg) : msg;
    } else {
     const cacheKey = message3.cacheKey;
     if (cacheKey) {
      const cached = compileCache[cacheKey];
      if (cached) {
       return cached;
      }
      return (compileCache[cacheKey] = format(message3));
     } else {
      return format(message3);
     }
    }
   }
   let devtools = null;
   function setDevToolsHook(hook) {
    devtools = hook;
   }
   function initI18nDevTools(i18n2, version, meta) {
    devtools && devtools.emit("i18n:init", {timestamp: Date.now(), i18n: i18n2, version, meta});
   }
   const translateDevTools = createDevToolsHook("function:translate");
   function createDevToolsHook(hook) {
    return (payloads) => devtools && devtools.emit(hook, payloads);
   }
   const CoreErrorCodes = {INVALID_ARGUMENT: COMPILE_ERROR_CODES_EXTEND_POINT, INVALID_DATE_ARGUMENT: 18, INVALID_ISO_DATE_ARGUMENT: 19, NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21, NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22, NOT_SUPPORT_LOCALE_TYPE: 23};
   const CORE_ERROR_CODES_EXTEND_POINT = 24;
   function createCoreError(code) {
    return createCompileError(code, null, void 0);
   }
   function getLocale(context, options3) {
    return options3.locale != null ? resolveLocale(options3.locale) : resolveLocale(context.locale);
   }
   let _resolveLocale;
   function resolveLocale(locale2) {
    if (isString(locale2)) {
     return locale2;
    } else {
     if (isFunction(locale2)) {
      if (locale2.resolvedOnce && _resolveLocale != null) {
       return _resolveLocale;
      } else if (locale2.constructor.name === "Function") {
       const resolve = locale2();
       if (isPromise(resolve)) {
        throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
       }
       return (_resolveLocale = resolve);
      } else {
       throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
      }
     } else {
      throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
     }
    }
   }
   function fallbackWithSimple(ctx, fallback, start) {
    return [...new Set([start, ...(isArray(fallback) ? fallback : isObject(fallback) ? Object.keys(fallback) : isString(fallback) ? [fallback] : [start])])];
   }
   function fallbackWithLocaleChain(ctx, fallback, start) {
    const startLocale = isString(start) ? start : DEFAULT_LOCALE;
    const context = ctx;
    if (!context.__localeChainCache) {
     context.__localeChainCache = new Map();
    }
    let chain = context.__localeChainCache.get(startLocale);
    if (!chain) {
     chain = [];
     let block = [start];
     while (isArray(block)) {
      block = appendBlockToChain(chain, block, fallback);
     }
     const defaults = isArray(fallback) || !isPlainObject(fallback) ? fallback : fallback["default"] ? fallback["default"] : null;
     block = isString(defaults) ? [defaults] : defaults;
     if (isArray(block)) {
      appendBlockToChain(chain, block, false);
     }
     context.__localeChainCache.set(startLocale, chain);
    }
    return chain;
   }
   function appendBlockToChain(chain, block, blocks) {
    let follow = true;
    for (let i2 = 0; i2 < block.length && isBoolean(follow); i2++) {
     const locale2 = block[i2];
     if (isString(locale2)) {
      follow = appendLocaleToChain(chain, block[i2], blocks);
     }
    }
    return follow;
   }
   function appendLocaleToChain(chain, locale2, blocks) {
    let follow;
    const tokens = locale2.split("-");
    do {
     const target2 = tokens.join("-");
     follow = appendItemToChain(chain, target2, blocks);
     tokens.splice(-1, 1);
    } while (tokens.length && follow === true);
    return follow;
   }
   function appendItemToChain(chain, target2, blocks) {
    let follow = false;
    if (!chain.includes(target2)) {
     follow = true;
     if (target2) {
      follow = target2[target2.length - 1] !== "!";
      const locale2 = target2.replace(/!/g, "");
      chain.push(locale2);
      if ((isArray(blocks) || isPlainObject(blocks)) && blocks[locale2]) {
       follow = blocks[locale2];
      }
     }
    }
    return follow;
   }
   const pathStateMachine = [];
   pathStateMachine[0] = {["w"]: [0], ["i"]: [3, 0], ["["]: [4], ["o"]: [7]};
   pathStateMachine[1] = {["w"]: [1], ["."]: [2], ["["]: [4], ["o"]: [7]};
   pathStateMachine[2] = {["w"]: [2], ["i"]: [3, 0], ["0"]: [3, 0]};
   pathStateMachine[3] = {["i"]: [3, 0], ["0"]: [3, 0], ["w"]: [1, 1], ["."]: [2, 1], ["["]: [4, 1], ["o"]: [7, 1]};
   pathStateMachine[4] = {["'"]: [5, 0], ['"']: [6, 0], ["["]: [4, 2], ["]"]: [1, 3], ["o"]: 8, ["l"]: [4, 0]};
   pathStateMachine[5] = {["'"]: [4, 0], ["o"]: 8, ["l"]: [5, 0]};
   pathStateMachine[6] = {['"']: [4, 0], ["o"]: 8, ["l"]: [6, 0]};
   const literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
   function isLiteral(exp) {
    return literalValueRE.test(exp);
   }
   function stripQuotes(str) {
    const a2 = str.charCodeAt(0);
    const b2 = str.charCodeAt(str.length - 1);
    return a2 === b2 && (a2 === 34 || a2 === 39) ? str.slice(1, -1) : str;
   }
   function getPathCharType(ch) {
    if (ch === void 0 || ch === null) {
     return "o";
    }
    const code = ch.charCodeAt(0);
    switch (code) {
     case 91:
     case 93:
     case 46:
     case 34:
     case 39:
      return ch;
     case 95:
     case 36:
     case 45:
      return "i";
     case 9:
     case 10:
     case 13:
     case 160:
     case 65279:
     case 8232:
     case 8233:
      return "w";
    }
    return "i";
   }
   function formatSubPath(path) {
    const trimmed = path.trim();
    if (path.charAt(0) === "0" && isNaN(parseInt(path))) {
     return false;
    }
    return isLiteral(trimmed) ? stripQuotes(trimmed) : "*" + trimmed;
   }
   function parse(path) {
    const keys = [];
    let index = -1;
    let mode2 = 0;
    let subPathDepth = 0;
    let c2;
    let key;
    let newChar;
    let type;
    let transition;
    let action;
    let typeMap;
    const actions = [];
    actions[0] = () => {
     if (key === void 0) {
      key = newChar;
     } else {
      key += newChar;
     }
    };
    actions[1] = () => {
     if (key !== void 0) {
      keys.push(key);
      key = void 0;
     }
    };
    actions[2] = () => {
     actions[0]();
     subPathDepth++;
    };
    actions[3] = () => {
     if (subPathDepth > 0) {
      subPathDepth--;
      mode2 = 4;
      actions[0]();
     } else {
      subPathDepth = 0;
      if (key === void 0) {
       return false;
      }
      key = formatSubPath(key);
      if (key === false) {
       return false;
      } else {
       actions[1]();
      }
     }
    };
    function maybeUnescapeQuote() {
     const nextChar = path[index + 1];
     if ((mode2 === 5 && nextChar === "'") || (mode2 === 6 && nextChar === '"')) {
      index++;
      newChar = "\\" + nextChar;
      actions[0]();
      return true;
     }
    }
    while (mode2 !== null) {
     index++;
     c2 = path[index];
     if (c2 === "\\" && maybeUnescapeQuote()) {
      continue;
     }
     type = getPathCharType(c2);
     typeMap = pathStateMachine[mode2];
     transition = typeMap[type] || typeMap["l"] || 8;
     if (transition === 8) {
      return;
     }
     mode2 = transition[0];
     if (transition[1] !== void 0) {
      action = actions[transition[1]];
      if (action) {
       newChar = c2;
       if (action() === false) {
        return;
       }
      }
     }
     if (mode2 === 7) {
      return keys;
     }
    }
   }
   const cache$1 = new Map();
   function resolveWithKeyValue(obj, path) {
    return isObject(obj) ? obj[path] : null;
   }
   function resolveValue(obj, path) {
    if (!isObject(obj)) {
     return null;
    }
    let hit = cache$1.get(path);
    if (!hit) {
     hit = parse(path);
     if (hit) {
      cache$1.set(path, hit);
     }
    }
    if (!hit) {
     return null;
    }
    const len = hit.length;
    let last3 = obj;
    let i2 = 0;
    while (i2 < len) {
     const key = hit[i2];
     if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last3)) {
      return null;
     }
     const val = last3[key];
     if (val === void 0) {
      return null;
     }
     if (isFunction(last3)) {
      return null;
     }
     last3 = val;
     i2++;
    }
    return last3;
   }
   const VERSION$1 = "11.2.8";
   const NOT_REOSLVED = -1;
   const DEFAULT_LOCALE = "en-US";
   const MISSING_RESOLVE_VALUE = "";
   const capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;
   function getDefaultLinkedModifiers() {
    return {
     upper: (val, type) => {
      return type === "text" && isString(val) ? val.toUpperCase() : type === "vnode" && isObject(val) && "__v_isVNode" in val ? val.children.toUpperCase() : val;
     },
     lower: (val, type) => {
      return type === "text" && isString(val) ? val.toLowerCase() : type === "vnode" && isObject(val) && "__v_isVNode" in val ? val.children.toLowerCase() : val;
     },
     capitalize: (val, type) => {
      return type === "text" && isString(val) ? capitalize(val) : type === "vnode" && isObject(val) && "__v_isVNode" in val ? capitalize(val.children) : val;
     },
    };
   }
   let _compiler;
   function registerMessageCompiler(compiler) {
    _compiler = compiler;
   }
   let _resolver;
   function registerMessageResolver(resolver) {
    _resolver = resolver;
   }
   let _fallbacker;
   function registerLocaleFallbacker(fallbacker) {
    _fallbacker = fallbacker;
   }
   let _additionalMeta = null;
   const setAdditionalMeta = (meta) => {
    _additionalMeta = meta;
   };
   const getAdditionalMeta = () => _additionalMeta;
   let _fallbackContext = null;
   const setFallbackContext = (context) => {
    _fallbackContext = context;
   };
   const getFallbackContext = () => _fallbackContext;
   let _cid = 0;
   function createCoreContext(options3 = {}) {
    const onWarn = isFunction(options3.onWarn) ? options3.onWarn : warn;
    const version = isString(options3.version) ? options3.version : VERSION$1;
    const locale2 = isString(options3.locale) || isFunction(options3.locale) ? options3.locale : DEFAULT_LOCALE;
    const _locale = isFunction(locale2) ? DEFAULT_LOCALE : locale2;
    const fallbackLocale = isArray(options3.fallbackLocale) || isPlainObject(options3.fallbackLocale) || isString(options3.fallbackLocale) || options3.fallbackLocale === false ? options3.fallbackLocale : _locale;
    const messages = isPlainObject(options3.messages) ? options3.messages : createResources(_locale);
    const datetimeFormats = isPlainObject(options3.datetimeFormats) ? options3.datetimeFormats : createResources(_locale);
    const numberFormats = isPlainObject(options3.numberFormats) ? options3.numberFormats : createResources(_locale);
    const modifiers = assign(create(), options3.modifiers, getDefaultLinkedModifiers());
    const pluralRules = options3.pluralRules || create();
    const missing = isFunction(options3.missing) ? options3.missing : null;
    const missingWarn = isBoolean(options3.missingWarn) || isRegExp(options3.missingWarn) ? options3.missingWarn : true;
    const fallbackWarn = isBoolean(options3.fallbackWarn) || isRegExp(options3.fallbackWarn) ? options3.fallbackWarn : true;
    const fallbackFormat = !!options3.fallbackFormat;
    const unresolving = !!options3.unresolving;
    const postTranslation = isFunction(options3.postTranslation) ? options3.postTranslation : null;
    const processor = isPlainObject(options3.processor) ? options3.processor : null;
    const warnHtmlMessage = isBoolean(options3.warnHtmlMessage) ? options3.warnHtmlMessage : true;
    const escapeParameter = !!options3.escapeParameter;
    const messageCompiler = isFunction(options3.messageCompiler) ? options3.messageCompiler : _compiler;
    const messageResolver = isFunction(options3.messageResolver) ? options3.messageResolver : _resolver || resolveWithKeyValue;
    const localeFallbacker = isFunction(options3.localeFallbacker) ? options3.localeFallbacker : _fallbacker || fallbackWithSimple;
    const fallbackContext = isObject(options3.fallbackContext) ? options3.fallbackContext : void 0;
    const internalOptions = options3;
    const __datetimeFormatters = isObject(internalOptions.__datetimeFormatters) ? internalOptions.__datetimeFormatters : new Map();
    const __numberFormatters = isObject(internalOptions.__numberFormatters) ? internalOptions.__numberFormatters : new Map();
    const __meta = isObject(internalOptions.__meta) ? internalOptions.__meta : {};
    _cid++;
    const context = {version, cid: _cid, locale: locale2, fallbackLocale, messages, modifiers, pluralRules, missing, missingWarn, fallbackWarn, fallbackFormat, unresolving, postTranslation, processor, warnHtmlMessage, escapeParameter, messageCompiler, messageResolver, localeFallbacker, fallbackContext, onWarn, __meta};
    {
     context.datetimeFormats = datetimeFormats;
     context.numberFormats = numberFormats;
     context.__datetimeFormatters = __datetimeFormatters;
     context.__numberFormatters = __numberFormatters;
    }
    if (__INTLIFY_PROD_DEVTOOLS__) {
     initI18nDevTools(context, version, __meta);
    }
    return context;
   }
   const createResources = (locale2) => ({[locale2]: create()});
   function handleMissing(context, key, locale2, missingWarn, type) {
    const {missing, onWarn} = context;
    if (missing !== null) {
     const ret = missing(context, locale2, key, type);
     return isString(ret) ? ret : key;
    } else {
     return key;
    }
   }
   function updateFallbackLocale(ctx, locale2, fallback) {
    const context = ctx;
    context.__localeChainCache = new Map();
    ctx.localeFallbacker(ctx, fallback, locale2);
   }
   function isAlmostSameLocale(locale2, compareLocale) {
    if (locale2 === compareLocale) return false;
    return locale2.split("-")[0] === compareLocale.split("-")[0];
   }
   function isImplicitFallback(targetLocale, locales) {
    const index = locales.indexOf(targetLocale);
    if (index === -1) {
     return false;
    }
    for (let i2 = index + 1; i2 < locales.length; i2++) {
     if (isAlmostSameLocale(targetLocale, locales[i2])) {
      return true;
     }
    }
    return false;
   }
   function datetime(context, ...args) {
    const {datetimeFormats, unresolving, fallbackLocale, onWarn, localeFallbacker} = context;
    const {__datetimeFormatters} = context;
    const [key, value2, options3, overrides] = parseDateTimeArgs(...args);
    const missingWarn = isBoolean(options3.missingWarn) ? options3.missingWarn : context.missingWarn;
    isBoolean(options3.fallbackWarn) ? options3.fallbackWarn : context.fallbackWarn;
    const part = !!options3.part;
    const locale2 = getLocale(context, options3);
    const locales = localeFallbacker(context, fallbackLocale, locale2);
    if (!isString(key) || key === "") {
     return new Intl.DateTimeFormat(locale2, overrides).format(value2);
    }
    let datetimeFormat = {};
    let targetLocale;
    let format2 = null;
    const type = "datetime format";
    for (let i2 = 0; i2 < locales.length; i2++) {
     targetLocale = locales[i2];
     datetimeFormat = datetimeFormats[targetLocale] || {};
     format2 = datetimeFormat[key];
     if (isPlainObject(format2)) break;
     handleMissing(context, key, targetLocale, missingWarn, type);
    }
    if (!isPlainObject(format2) || !isString(targetLocale)) {
     return unresolving ? NOT_REOSLVED : key;
    }
    let id3 = `${targetLocale}__${key}`;
    if (!isEmptyObject(overrides)) {
     id3 = `${id3}__${JSON.stringify(overrides)}`;
    }
    let formatter = __datetimeFormatters.get(id3);
    if (!formatter) {
     formatter = new Intl.DateTimeFormat(targetLocale, assign({}, format2, overrides));
     __datetimeFormatters.set(id3, formatter);
    }
    return !part ? formatter.format(value2) : formatter.formatToParts(value2);
   }
   const DATETIME_FORMAT_OPTIONS_KEYS = ["localeMatcher", "weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName", "formatMatcher", "hour12", "timeZone", "dateStyle", "timeStyle", "calendar", "dayPeriod", "numberingSystem", "hourCycle", "fractionalSecondDigits"];
   function parseDateTimeArgs(...args) {
    const [arg1, arg2, arg3, arg4] = args;
    const options3 = create();
    let overrides = create();
    let value2;
    if (isString(arg1)) {
     const matches2 = arg1.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
     if (!matches2) {
      throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
     }
     const dateTime = matches2[3] ? (matches2[3].trim().startsWith("T") ? `${matches2[1].trim()}${matches2[3].trim()}` : `${matches2[1].trim()}T${matches2[3].trim()}`) : matches2[1].trim();
     value2 = new Date(dateTime);
     try {
      value2.toISOString();
     } catch {
      throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
     }
    } else if (isDate(arg1)) {
     if (isNaN(arg1.getTime())) {
      throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
     }
     value2 = arg1;
    } else if (isNumber$1(arg1)) {
     value2 = arg1;
    } else {
     throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
    }
    if (isString(arg2)) {
     options3.key = arg2;
    } else if (isPlainObject(arg2)) {
     Object.keys(arg2).forEach((key) => {
      if (DATETIME_FORMAT_OPTIONS_KEYS.includes(key)) {
       overrides[key] = arg2[key];
      } else {
       options3[key] = arg2[key];
      }
     });
    }
    if (isString(arg3)) {
     options3.locale = arg3;
    } else if (isPlainObject(arg3)) {
     overrides = arg3;
    }
    if (isPlainObject(arg4)) {
     overrides = arg4;
    }
    return [options3.key || "", value2, options3, overrides];
   }
   function clearDateTimeFormat(ctx, locale2, format2) {
    const context = ctx;
    for (const key in format2) {
     const id3 = `${locale2}__${key}`;
     if (!context.__datetimeFormatters.has(id3)) {
      continue;
     }
     context.__datetimeFormatters.delete(id3);
    }
   }
   function number(context, ...args) {
    const {numberFormats, unresolving, fallbackLocale, onWarn, localeFallbacker} = context;
    const {__numberFormatters} = context;
    const [key, value2, options3, overrides] = parseNumberArgs(...args);
    const missingWarn = isBoolean(options3.missingWarn) ? options3.missingWarn : context.missingWarn;
    isBoolean(options3.fallbackWarn) ? options3.fallbackWarn : context.fallbackWarn;
    const part = !!options3.part;
    const locale2 = getLocale(context, options3);
    const locales = localeFallbacker(context, fallbackLocale, locale2);
    if (!isString(key) || key === "") {
     return new Intl.NumberFormat(locale2, overrides).format(value2);
    }
    let numberFormat = {};
    let targetLocale;
    let format2 = null;
    const type = "number format";
    for (let i2 = 0; i2 < locales.length; i2++) {
     targetLocale = locales[i2];
     numberFormat = numberFormats[targetLocale] || {};
     format2 = numberFormat[key];
     if (isPlainObject(format2)) break;
     handleMissing(context, key, targetLocale, missingWarn, type);
    }
    if (!isPlainObject(format2) || !isString(targetLocale)) {
     return unresolving ? NOT_REOSLVED : key;
    }
    let id3 = `${targetLocale}__${key}`;
    if (!isEmptyObject(overrides)) {
     id3 = `${id3}__${JSON.stringify(overrides)}`;
    }
    let formatter = __numberFormatters.get(id3);
    if (!formatter) {
     formatter = new Intl.NumberFormat(targetLocale, assign({}, format2, overrides));
     __numberFormatters.set(id3, formatter);
    }
    return !part ? formatter.format(value2) : formatter.formatToParts(value2);
   }
   const NUMBER_FORMAT_OPTIONS_KEYS = ["localeMatcher", "style", "currency", "currencyDisplay", "currencySign", "useGrouping", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "compactDisplay", "notation", "signDisplay", "unit", "unitDisplay", "roundingMode", "roundingPriority", "roundingIncrement", "trailingZeroDisplay"];
   function parseNumberArgs(...args) {
    const [arg1, arg2, arg3, arg4] = args;
    const options3 = create();
    let overrides = create();
    if (!isNumber$1(arg1)) {
     throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
    }
    const value2 = arg1;
    if (isString(arg2)) {
     options3.key = arg2;
    } else if (isPlainObject(arg2)) {
     Object.keys(arg2).forEach((key) => {
      if (NUMBER_FORMAT_OPTIONS_KEYS.includes(key)) {
       overrides[key] = arg2[key];
      } else {
       options3[key] = arg2[key];
      }
     });
    }
    if (isString(arg3)) {
     options3.locale = arg3;
    } else if (isPlainObject(arg3)) {
     overrides = arg3;
    }
    if (isPlainObject(arg4)) {
     overrides = arg4;
    }
    return [options3.key || "", value2, options3, overrides];
   }
   function clearNumberFormat(ctx, locale2, format2) {
    const context = ctx;
    for (const key in format2) {
     const id3 = `${locale2}__${key}`;
     if (!context.__numberFormatters.has(id3)) {
      continue;
     }
     context.__numberFormatters.delete(id3);
    }
   }
   const DEFAULT_MODIFIER = (str) => str;
   const DEFAULT_MESSAGE = (ctx) => "";
   const DEFAULT_MESSAGE_DATA_TYPE = "text";
   const DEFAULT_NORMALIZE = (values) => (values.length === 0 ? "" : join(values));
   const DEFAULT_INTERPOLATE = toDisplayString;
   function pluralDefault(choice, choicesLength) {
    choice = Math.abs(choice);
    if (choicesLength === 2) {
     return choice ? (choice > 1 ? 1 : 0) : 1;
    }
    return choice ? Math.min(choice, 2) : 0;
   }
   function getPluralIndex(options3) {
    const index = isNumber$1(options3.pluralIndex) ? options3.pluralIndex : -1;
    return options3.named && (isNumber$1(options3.named.count) || isNumber$1(options3.named.n)) ? (isNumber$1(options3.named.count) ? options3.named.count : isNumber$1(options3.named.n) ? options3.named.n : index) : index;
   }
   function normalizeNamed(pluralIndex, props2) {
    if (!props2.count) {
     props2.count = pluralIndex;
    }
    if (!props2.n) {
     props2.n = pluralIndex;
    }
   }
   function createMessageContext(options3 = {}) {
    const locale2 = options3.locale;
    const pluralIndex = getPluralIndex(options3);
    const pluralRule = isObject(options3.pluralRules) && isString(locale2) && isFunction(options3.pluralRules[locale2]) ? options3.pluralRules[locale2] : pluralDefault;
    const orgPluralRule = isObject(options3.pluralRules) && isString(locale2) && isFunction(options3.pluralRules[locale2]) ? pluralDefault : void 0;
    const plural = (messages) => {
     return messages[pluralRule(pluralIndex, messages.length, orgPluralRule)];
    };
    const _list = options3.list || [];
    const list = (index) => _list[index];
    const _named = options3.named || create();
    isNumber$1(options3.pluralIndex) && normalizeNamed(pluralIndex, _named);
    const named = (key) => _named[key];
    function message3(key, useLinked) {
     const msg = isFunction(options3.messages) ? options3.messages(key, !!useLinked) : isObject(options3.messages) ? options3.messages[key] : false;
     return !msg ? (options3.parent ? options3.parent.message(key) : DEFAULT_MESSAGE) : msg;
    }
    const _modifier = (name) => (options3.modifiers ? options3.modifiers[name] : DEFAULT_MODIFIER);
    const normalize = isPlainObject(options3.processor) && isFunction(options3.processor.normalize) ? options3.processor.normalize : DEFAULT_NORMALIZE;
    const interpolate = isPlainObject(options3.processor) && isFunction(options3.processor.interpolate) ? options3.processor.interpolate : DEFAULT_INTERPOLATE;
    const type = isPlainObject(options3.processor) && isString(options3.processor.type) ? options3.processor.type : DEFAULT_MESSAGE_DATA_TYPE;
    const linked = (key, ...args) => {
     const [arg1, arg2] = args;
     let type2 = "text";
     let modifier = "";
     if (args.length === 1) {
      if (isObject(arg1)) {
       modifier = arg1.modifier || modifier;
       type2 = arg1.type || type2;
      } else if (isString(arg1)) {
       modifier = arg1 || modifier;
      }
     } else if (args.length === 2) {
      if (isString(arg1)) {
       modifier = arg1 || modifier;
      }
      if (isString(arg2)) {
       type2 = arg2 || type2;
      }
     }
     const ret = message3(key, true)(ctx);
     const msg = type2 === "vnode" && isArray(ret) && modifier ? ret[0] : ret;
     return modifier ? _modifier(modifier)(msg, type2) : msg;
    };
    const ctx = {["list"]: list, ["named"]: named, ["plural"]: plural, ["linked"]: linked, ["message"]: message3, ["type"]: type, ["interpolate"]: interpolate, ["normalize"]: normalize, ["values"]: assign(create(), _list, _named)};
    return ctx;
   }
   const NOOP_MESSAGE_FUNCTION = () => "";
   const isMessageFunction = (val) => isFunction(val);
   function translate(context, ...args) {
    const {fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages} = context;
    const [key, options3] = parseTranslateArgs(...args);
    const missingWarn = isBoolean(options3.missingWarn) ? options3.missingWarn : context.missingWarn;
    const fallbackWarn = isBoolean(options3.fallbackWarn) ? options3.fallbackWarn : context.fallbackWarn;
    const escapeParameter = isBoolean(options3.escapeParameter) ? options3.escapeParameter : context.escapeParameter;
    const resolvedMessage = !!options3.resolvedMessage;
    const defaultMsgOrKey = isString(options3.default) || isBoolean(options3.default) ? (!isBoolean(options3.default) ? options3.default : !messageCompiler ? () => key : key) : fallbackFormat ? (!messageCompiler ? () => key : key) : null;
    const enableDefaultMsg = fallbackFormat || (defaultMsgOrKey != null && (isString(defaultMsgOrKey) || isFunction(defaultMsgOrKey)));
    const locale2 = getLocale(context, options3);
    escapeParameter && escapeParams(options3);
    let [formatScope, targetLocale, message3] = !resolvedMessage ? resolveMessageFormat(context, key, locale2, fallbackLocale, fallbackWarn, missingWarn) : [key, locale2, messages[locale2] || create()];
    let format2 = formatScope;
    let cacheBaseKey = key;
    if (!resolvedMessage && !(isString(format2) || isMessageAST(format2) || isMessageFunction(format2))) {
     if (enableDefaultMsg) {
      format2 = defaultMsgOrKey;
      cacheBaseKey = format2;
     }
    }
    if (!resolvedMessage && (!(isString(format2) || isMessageAST(format2) || isMessageFunction(format2)) || !isString(targetLocale))) {
     return unresolving ? NOT_REOSLVED : key;
    }
    let occurred = false;
    const onError = () => {
     occurred = true;
    };
    const msg = !isMessageFunction(format2) ? compileMessageFormat(context, key, targetLocale, format2, cacheBaseKey, onError) : format2;
    if (occurred) {
     return format2;
    }
    const ctxOptions = getMessageContextOptions(context, targetLocale, message3, options3);
    const msgContext = createMessageContext(ctxOptions);
    const messaged = evaluateMessage(context, msg, msgContext);
    let ret = postTranslation ? postTranslation(messaged, key) : messaged;
    if (escapeParameter && isString(ret)) {
     ret = sanitizeTranslatedHtml(ret);
    }
    if (__INTLIFY_PROD_DEVTOOLS__) {
     const payloads = {timestamp: Date.now(), key: isString(key) ? key : isMessageFunction(format2) ? format2.key : "", locale: targetLocale || (isMessageFunction(format2) ? format2.locale : ""), format: isString(format2) ? format2 : isMessageFunction(format2) ? format2.source : "", message: ret};
     payloads.meta = assign({}, context.__meta, getAdditionalMeta() || {});
     translateDevTools(payloads);
    }
    return ret;
   }
   function escapeParams(options3) {
    if (isArray(options3.list)) {
     options3.list = options3.list.map((item2) => (isString(item2) ? escapeHtml(item2) : item2));
    } else if (isObject(options3.named)) {
     Object.keys(options3.named).forEach((key) => {
      if (isString(options3.named[key])) {
       options3.named[key] = escapeHtml(options3.named[key]);
      }
     });
    }
   }
   function resolveMessageFormat(context, key, locale2, fallbackLocale, fallbackWarn, missingWarn) {
    const {messages, onWarn, messageResolver: resolveValue2, localeFallbacker} = context;
    const locales = localeFallbacker(context, fallbackLocale, locale2);
    let message3 = create();
    let targetLocale;
    let format2 = null;
    const type = "translate";
    for (let i2 = 0; i2 < locales.length; i2++) {
     targetLocale = locales[i2];
     message3 = messages[targetLocale] || create();
     if ((format2 = resolveValue2(message3, key)) === null) {
      format2 = message3[key];
     }
     if (isString(format2) || isMessageAST(format2) || isMessageFunction(format2)) {
      break;
     }
     if (!isImplicitFallback(targetLocale, locales)) {
      const missingRet = handleMissing(context, key, targetLocale, missingWarn, type);
      if (missingRet !== key) {
       format2 = missingRet;
      }
     }
    }
    return [format2, targetLocale, message3];
   }
   function compileMessageFormat(context, key, targetLocale, format2, cacheBaseKey, onError) {
    const {messageCompiler, warnHtmlMessage} = context;
    if (isMessageFunction(format2)) {
     const msg2 = format2;
     msg2.locale = msg2.locale || targetLocale;
     msg2.key = msg2.key || key;
     return msg2;
    }
    if (messageCompiler == null) {
     const msg2 = () => format2;
     msg2.locale = targetLocale;
     msg2.key = key;
     return msg2;
    }
    const msg = messageCompiler(format2, getCompileContext(context, targetLocale, cacheBaseKey, format2, warnHtmlMessage, onError));
    msg.locale = targetLocale;
    msg.key = key;
    msg.source = format2;
    return msg;
   }
   function evaluateMessage(context, msg, msgCtx) {
    const messaged = msg(msgCtx);
    return messaged;
   }
   function parseTranslateArgs(...args) {
    const [arg1, arg2, arg3] = args;
    const options3 = create();
    if (!isString(arg1) && !isNumber$1(arg1) && !isMessageFunction(arg1) && !isMessageAST(arg1)) {
     throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
    }
    const key = isNumber$1(arg1) ? String(arg1) : isMessageFunction(arg1) ? arg1 : arg1;
    if (isNumber$1(arg2)) {
     options3.plural = arg2;
    } else if (isString(arg2)) {
     options3.default = arg2;
    } else if (isPlainObject(arg2) && !isEmptyObject(arg2)) {
     options3.named = arg2;
    } else if (isArray(arg2)) {
     options3.list = arg2;
    }
    if (isNumber$1(arg3)) {
     options3.plural = arg3;
    } else if (isString(arg3)) {
     options3.default = arg3;
    } else if (isPlainObject(arg3)) {
     assign(options3, arg3);
    }
    return [key, options3];
   }
   function getCompileContext(context, locale2, key, source, warnHtmlMessage, onError) {
    return {
     locale: locale2,
     key,
     warnHtmlMessage,
     onError: (err) => {
      onError && onError(err);
      {
       throw err;
      }
     },
     onCacheKey: (source2) => generateFormatCacheKey(locale2, key, source2),
    };
   }
   function getMessageContextOptions(context, locale2, message3, options3) {
    const {modifiers, pluralRules, messageResolver: resolveValue2, fallbackLocale, fallbackWarn, missingWarn, fallbackContext} = context;
    const resolveMessage = (key, useLinked) => {
     let val = resolveValue2(message3, key);
     if (val == null && (fallbackContext || useLinked)) {
      const [, , message22] = resolveMessageFormat(fallbackContext || context, key, locale2, fallbackLocale, fallbackWarn, missingWarn);
      val = resolveValue2(message22, key);
     }
     if (isString(val) || isMessageAST(val)) {
      let occurred = false;
      const onError = () => {
       occurred = true;
      };
      const msg = compileMessageFormat(context, key, locale2, val, key, onError);
      return !occurred ? msg : NOOP_MESSAGE_FUNCTION;
     } else if (isMessageFunction(val)) {
      return val;
     } else {
      return NOOP_MESSAGE_FUNCTION;
     }
    };
    const ctxOptions = {locale: locale2, modifiers, pluralRules, messages: resolveMessage};
    if (context.processor) {
     ctxOptions.processor = context.processor;
    }
    if (options3.list) {
     ctxOptions.list = options3.list;
    }
    if (options3.named) {
     ctxOptions.named = options3.named;
    }
    if (isNumber$1(options3.plural)) {
     ctxOptions.pluralIndex = options3.plural;
    }
    return ctxOptions;
   }
   {
    initFeatureFlags$1();
   }
   const VERSION = "11.2.8";
   function initFeatureFlags() {
    if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
     getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
    }
    if (typeof __VUE_I18N_LEGACY_API__ !== "boolean") {
     getGlobalThis().__VUE_I18N_LEGACY_API__ = true;
    }
    if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== "boolean") {
     getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
    }
    if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
     getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
    }
   }
   const I18nErrorCodes = {
    UNEXPECTED_RETURN_TYPE: CORE_ERROR_CODES_EXTEND_POINT,

    INVALID_ARGUMENT: 25,
    MUST_BE_CALL_SETUP_TOP: 26,
    NOT_INSTALLED: 27,
    REQUIRED_VALUE: 28,
    INVALID_VALUE: 29,
    NOT_INSTALLED_WITH_PROVIDE: 31,
    UNEXPECTED_ERROR: 32,
   };
   function createI18nError(code, ...args) {
    return createCompileError(code, null, void 0);
   }
   const TranslateVNodeSymbol = makeSymbol("__translateVNode");
   const DatetimePartsSymbol = makeSymbol("__datetimeParts");
   const NumberPartsSymbol = makeSymbol("__numberParts");
   const SetPluralRulesSymbol = makeSymbol("__setPluralRules");
   const InejctWithOptionSymbol = makeSymbol("__injectWithOption");
   const DisposeSymbol = makeSymbol("__dispose");
   function handleFlatJson(obj) {
    if (!isObject(obj)) {
     return obj;
    }
    if (isMessageAST(obj)) {
     return obj;
    }
    for (const key in obj) {
     if (!hasOwn(obj, key)) {
      continue;
     }
     if (!key.includes(".")) {
      if (isObject(obj[key])) {
       handleFlatJson(obj[key]);
      }
     } else {
      const subKeys = key.split(".");
      const lastIndex = subKeys.length - 1;
      let currentObj = obj;
      let hasStringValue = false;
      for (let i2 = 0; i2 < lastIndex; i2++) {
       if (subKeys[i2] === "__proto__") {
        throw new Error(`unsafe key: ${subKeys[i2]}`);
       }
       if (!(subKeys[i2] in currentObj)) {
        currentObj[subKeys[i2]] = create();
       }
       if (!isObject(currentObj[subKeys[i2]])) {
        hasStringValue = true;
        break;
       }
       currentObj = currentObj[subKeys[i2]];
      }
      if (!hasStringValue) {
       if (!isMessageAST(currentObj)) {
        currentObj[subKeys[lastIndex]] = obj[key];
        delete obj[key];
       } else {
        if (!AST_NODE_PROPS_KEYS.includes(subKeys[lastIndex])) {
         delete obj[key];
        }
       }
      }
      if (!isMessageAST(currentObj)) {
       const target2 = currentObj[subKeys[lastIndex]];
       if (isObject(target2)) {
        handleFlatJson(target2);
       }
      }
     }
    }
    return obj;
   }
   function getLocaleMessages(locale2, options3) {
    const {messages, __i18n, messageResolver, flatJson} = options3;
    const ret = isPlainObject(messages) ? messages : isArray(__i18n) ? create() : {[locale2]: create()};
    if (isArray(__i18n)) {
     __i18n.forEach((custom) => {
      if ("locale" in custom && "resource" in custom) {
       const {locale: locale22, resource} = custom;
       if (locale22) {
        ret[locale22] = ret[locale22] || create();
        deepCopy(resource, ret[locale22]);
       } else {
        deepCopy(resource, ret);
       }
      } else {
       isString(custom) && deepCopy(JSON.parse(custom), ret);
      }
     });
    }
    if (messageResolver == null && flatJson) {
     for (const key in ret) {
      if (hasOwn(ret, key)) {
       handleFlatJson(ret[key]);
      }
     }
    }
    return ret;
   }
   function getComponentOptions(instance) {
    return instance.type;
   }
   function adjustI18nResources(gl, options3, componentOptions) {
    let messages = isObject(options3.messages) ? options3.messages : create();
    if ("__i18nGlobal" in componentOptions) {
     messages = getLocaleMessages(gl.locale.value, {messages, __i18n: componentOptions.__i18nGlobal});
    }
    const locales = Object.keys(messages);
    if (locales.length) {
     locales.forEach((locale2) => {
      gl.mergeLocaleMessage(locale2, messages[locale2]);
     });
    }
    {
     if (isObject(options3.datetimeFormats)) {
      const locales2 = Object.keys(options3.datetimeFormats);
      if (locales2.length) {
       locales2.forEach((locale2) => {
        gl.mergeDateTimeFormat(locale2, options3.datetimeFormats[locale2]);
       });
      }
     }
     if (isObject(options3.numberFormats)) {
      const locales2 = Object.keys(options3.numberFormats);
      if (locales2.length) {
       locales2.forEach((locale2) => {
        gl.mergeNumberFormat(locale2, options3.numberFormats[locale2]);
       });
      }
     }
    }
   }
   function createTextNode(key) {
    return createVNode(Text, null, key, 0);
   }
   function getCurrentInstance() {
    const key = "currentInstance";
    if (key in Vue) {
     return Vue[key];
    } else {
     return Vue.getCurrentInstance();
    }
   }
   const DEVTOOLS_META = "__INTLIFY_META__";
   const NOOP_RETURN_ARRAY = () => [];
   const NOOP_RETURN_FALSE = () => false;
   let composerID = 0;
   function defineCoreMissingHandler(missing) {
    return (ctx, locale2, key, type) => {
     return missing(locale2, key, getCurrentInstance() || void 0, type);
    };
   }
   const getMetaInfo = () => {
    const instance = getCurrentInstance();
    let meta = null;
    return instance && (meta = getComponentOptions(instance)[DEVTOOLS_META]) ? {[DEVTOOLS_META]: meta} : null;
   };
   function createComposer(options3 = {}) {
    const {__root, __injectWithOption} = options3;
    const _isGlobal = __root === void 0;
    const flatJson = options3.flatJson;
    const _ref = inBrowser ? ref : shallowRef;
    let _inheritLocale = isBoolean(options3.inheritLocale) ? options3.inheritLocale : true;
    const _locale = _ref(__root && _inheritLocale ? __root.locale.value : isString(options3.locale) ? options3.locale : DEFAULT_LOCALE);
    const _fallbackLocale = _ref(__root && _inheritLocale ? __root.fallbackLocale.value : isString(options3.fallbackLocale) || isArray(options3.fallbackLocale) || isPlainObject(options3.fallbackLocale) || options3.fallbackLocale === false ? options3.fallbackLocale : _locale.value);
    const _messages = _ref(getLocaleMessages(_locale.value, options3));
    const _datetimeFormats = _ref(isPlainObject(options3.datetimeFormats) ? options3.datetimeFormats : {[_locale.value]: {}});
    const _numberFormats = _ref(isPlainObject(options3.numberFormats) ? options3.numberFormats : {[_locale.value]: {}});
    let _missingWarn = __root ? __root.missingWarn : isBoolean(options3.missingWarn) || isRegExp(options3.missingWarn) ? options3.missingWarn : true;
    let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean(options3.fallbackWarn) || isRegExp(options3.fallbackWarn) ? options3.fallbackWarn : true;
    let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean(options3.fallbackRoot) ? options3.fallbackRoot : true;
    let _fallbackFormat = !!options3.fallbackFormat;
    let _missing = isFunction(options3.missing) ? options3.missing : null;
    let _runtimeMissing = isFunction(options3.missing) ? defineCoreMissingHandler(options3.missing) : null;
    let _postTranslation = isFunction(options3.postTranslation) ? options3.postTranslation : null;
    let _warnHtmlMessage = __root ? __root.warnHtmlMessage : isBoolean(options3.warnHtmlMessage) ? options3.warnHtmlMessage : true;
    let _escapeParameter = !!options3.escapeParameter;
    const _modifiers = __root ? __root.modifiers : isPlainObject(options3.modifiers) ? options3.modifiers : {};
    let _pluralRules = options3.pluralRules || (__root && __root.pluralRules);
    let _context;
    const getCoreContext = () => {
     _isGlobal && setFallbackContext(null);
     const ctxOptions = {version: VERSION, locale: _locale.value, fallbackLocale: _fallbackLocale.value, messages: _messages.value, modifiers: _modifiers, pluralRules: _pluralRules, missing: _runtimeMissing === null ? void 0 : _runtimeMissing, missingWarn: _missingWarn, fallbackWarn: _fallbackWarn, fallbackFormat: _fallbackFormat, unresolving: true, postTranslation: _postTranslation === null ? void 0 : _postTranslation, warnHtmlMessage: _warnHtmlMessage, escapeParameter: _escapeParameter, messageResolver: options3.messageResolver, messageCompiler: options3.messageCompiler, __meta: {framework: "vue"}};
     {
      ctxOptions.datetimeFormats = _datetimeFormats.value;
      ctxOptions.numberFormats = _numberFormats.value;
      ctxOptions.__datetimeFormatters = isPlainObject(_context) ? _context.__datetimeFormatters : void 0;
      ctxOptions.__numberFormatters = isPlainObject(_context) ? _context.__numberFormatters : void 0;
     }
     const ctx = createCoreContext(ctxOptions);
     _isGlobal && setFallbackContext(ctx);
     return ctx;
    };
    _context = getCoreContext();
    updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
    function trackReactivityValues() {
     return [_locale.value, _fallbackLocale.value, _messages.value, _datetimeFormats.value, _numberFormats.value];
    }
    const locale2 = computed({
     get: () => _locale.value,
     set: (val) => {
      _context.locale = val;
      _locale.value = val;
     },
    });
    const fallbackLocale = computed({
     get: () => _fallbackLocale.value,
     set: (val) => {
      _context.fallbackLocale = val;
      _fallbackLocale.value = val;
      updateFallbackLocale(_context, _locale.value, val);
     },
    });
    const messages = computed(() => _messages.value);
    const datetimeFormats = computed(() => _datetimeFormats.value);
    const numberFormats = computed(() => _numberFormats.value);
    function getPostTranslationHandler() {
     return isFunction(_postTranslation) ? _postTranslation : null;
    }
    function setPostTranslationHandler(handler12) {
     _postTranslation = handler12;
     _context.postTranslation = handler12;
    }
    function getMissingHandler() {
     return _missing;
    }
    function setMissingHandler(handler12) {
     if (handler12 !== null) {
      _runtimeMissing = defineCoreMissingHandler(handler12);
     }
     _missing = handler12;
     _context.missing = _runtimeMissing;
    }
    const wrapWithDeps = (fn, argumentParser, warnType, fallbackSuccess, fallbackFail, successCondition) => {
     trackReactivityValues();
     let ret;
     try {
      if (__INTLIFY_PROD_DEVTOOLS__) {
       setAdditionalMeta(getMetaInfo());
      }
      if (!_isGlobal) {
       _context.fallbackContext = __root ? getFallbackContext() : void 0;
      }
      ret = fn(_context);
     } finally {
      if (__INTLIFY_PROD_DEVTOOLS__);
      if (!_isGlobal) {
       _context.fallbackContext = void 0;
      }
     }
     if ((warnType !== "translate exists" && isNumber$1(ret) && ret === NOT_REOSLVED) || (warnType === "translate exists" && !ret)) {
      const [key, arg2] = argumentParser();
      return __root && _fallbackRoot ? fallbackSuccess(__root) : fallbackFail(key);
     } else if (successCondition(ret)) {
      return ret;
     } else {
      throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
     }
    };
    function t2(...args) {
     return wrapWithDeps(
      (context) => Reflect.apply(translate, null, [context, ...args]),
      () => parseTranslateArgs(...args),
      "translate",
      (root20) => Reflect.apply(root20.t, root20, [...args]),
      (key) => key,
      (val) => isString(val),
     );
    }
    function rt2(...args) {
     const [arg1, arg2, arg3] = args;
     if (arg3 && !isObject(arg3)) {
      throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
     }
     return t2(...[arg1, arg2, assign({resolvedMessage: true}, arg3 || {})]);
    }
    function d2(...args) {
     return wrapWithDeps(
      (context) => Reflect.apply(datetime, null, [context, ...args]),
      () => parseDateTimeArgs(...args),
      "datetime format",
      (root20) => Reflect.apply(root20.d, root20, [...args]),
      () => MISSING_RESOLVE_VALUE,
      (val) => isString(val) || isArray(val),
     );
    }
    function n(...args) {
     return wrapWithDeps(
      (context) => Reflect.apply(number, null, [context, ...args]),
      () => parseNumberArgs(...args),
      "number format",
      (root20) => Reflect.apply(root20.n, root20, [...args]),
      () => MISSING_RESOLVE_VALUE,
      (val) => isString(val) || isArray(val),
     );
    }
    function normalize(values) {
     return values.map((val) => (isString(val) || isNumber$1(val) || isBoolean(val) ? createTextNode(String(val)) : val));
    }
    const interpolate = (val) => val;
    const processor = {normalize, interpolate, type: "vnode"};
    function translateVNode(...args) {
     return wrapWithDeps(
      (context) => {
       let ret;
       const _context2 = context;
       try {
        _context2.processor = processor;
        ret = Reflect.apply(translate, null, [_context2, ...args]);
       } finally {
        _context2.processor = null;
       }
       return ret;
      },
      () => parseTranslateArgs(...args),
      "translate",
      (root20) => root20[TranslateVNodeSymbol](...args),
      (key) => [createTextNode(key)],
      (val) => isArray(val),
     );
    }
    function numberParts(...args) {
     return wrapWithDeps(
      (context) => Reflect.apply(number, null, [context, ...args]),
      () => parseNumberArgs(...args),
      "number format",
      (root20) => root20[NumberPartsSymbol](...args),
      NOOP_RETURN_ARRAY,
      (val) => isString(val) || isArray(val),
     );
    }
    function datetimeParts(...args) {
     return wrapWithDeps(
      (context) => Reflect.apply(datetime, null, [context, ...args]),
      () => parseDateTimeArgs(...args),
      "datetime format",
      (root20) => root20[DatetimePartsSymbol](...args),
      NOOP_RETURN_ARRAY,
      (val) => isString(val) || isArray(val),
     );
    }
    function setPluralRules(rules) {
     _pluralRules = rules;
     _context.pluralRules = _pluralRules;
    }
    function te(key, locale22) {
     return wrapWithDeps(
      () => {
       if (!key) {
        return false;
       }
       const targetLocale = isString(locale22) ? locale22 : _locale.value;
       const message3 = getLocaleMessage(targetLocale);
       const resolved = _context.messageResolver(message3, key);
       return isMessageAST(resolved) || isMessageFunction(resolved) || isString(resolved);
      },
      () => [key],
      "translate exists",
      (root20) => {
       return Reflect.apply(root20.te, root20, [key, locale22]);
      },
      NOOP_RETURN_FALSE,
      (val) => isBoolean(val),
     );
    }
    function resolveMessages(key) {
     let messages2 = null;
     const locales = fallbackWithLocaleChain(_context, _fallbackLocale.value, _locale.value);
     for (let i2 = 0; i2 < locales.length; i2++) {
      const targetLocaleMessages = _messages.value[locales[i2]] || {};
      const messageValue = _context.messageResolver(targetLocaleMessages, key);
      if (messageValue != null) {
       messages2 = messageValue;
       break;
      }
     }
     return messages2;
    }
    function tm(key) {
     const messages2 = resolveMessages(key);
     return messages2 != null ? messages2 : __root ? __root.tm(key) || {} : {};
    }
    function getLocaleMessage(locale22) {
     return _messages.value[locale22] || {};
    }
    function setLocaleMessage(locale22, message3) {
     if (flatJson) {
      const _message = {[locale22]: message3};
      for (const key in _message) {
       if (hasOwn(_message, key)) {
        handleFlatJson(_message[key]);
       }
      }
      message3 = _message[locale22];
     }
     _messages.value[locale22] = message3;
     _context.messages = _messages.value;
    }
    function mergeLocaleMessage(locale22, message3) {
     _messages.value[locale22] = _messages.value[locale22] || {};
     const _message = {[locale22]: message3};
     if (flatJson) {
      for (const key in _message) {
       if (hasOwn(_message, key)) {
        handleFlatJson(_message[key]);
       }
      }
     }
     message3 = _message[locale22];
     deepCopy(message3, _messages.value[locale22]);
     _context.messages = _messages.value;
    }
    function getDateTimeFormat(locale22) {
     return _datetimeFormats.value[locale22] || {};
    }
    function setDateTimeFormat(locale22, format2) {
     _datetimeFormats.value[locale22] = format2;
     _context.datetimeFormats = _datetimeFormats.value;
     clearDateTimeFormat(_context, locale22, format2);
    }
    function mergeDateTimeFormat(locale22, format2) {
     _datetimeFormats.value[locale22] = assign(_datetimeFormats.value[locale22] || {}, format2);
     _context.datetimeFormats = _datetimeFormats.value;
     clearDateTimeFormat(_context, locale22, format2);
    }
    function getNumberFormat(locale22) {
     return _numberFormats.value[locale22] || {};
    }
    function setNumberFormat(locale22, format2) {
     _numberFormats.value[locale22] = format2;
     _context.numberFormats = _numberFormats.value;
     clearNumberFormat(_context, locale22, format2);
    }
    function mergeNumberFormat(locale22, format2) {
     _numberFormats.value[locale22] = assign(_numberFormats.value[locale22] || {}, format2);
     _context.numberFormats = _numberFormats.value;
     clearNumberFormat(_context, locale22, format2);
    }
    composerID++;
    if (__root && inBrowser) {
     watch(__root.locale, (val) => {
      if (_inheritLocale) {
       _locale.value = val;
       _context.locale = val;
       updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
      }
     });
     watch(__root.fallbackLocale, (val) => {
      if (_inheritLocale) {
       _fallbackLocale.value = val;
       _context.fallbackLocale = val;
       updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
      }
     });
    }
    const composer = {
     id: composerID,
     locale: locale2,
     fallbackLocale,
     get inheritLocale() {
      return _inheritLocale;
     },
     set inheritLocale(val) {
      _inheritLocale = val;
      if (val && __root) {
       _locale.value = __root.locale.value;
       _fallbackLocale.value = __root.fallbackLocale.value;
       updateFallbackLocale(_context, _locale.value, _fallbackLocale.value);
      }
     },
     get availableLocales() {
      return Object.keys(_messages.value).sort();
     },
     messages,
     get modifiers() {
      return _modifiers;
     },
     get pluralRules() {
      return _pluralRules || {};
     },
     get isGlobal() {
      return _isGlobal;
     },
     get missingWarn() {
      return _missingWarn;
     },
     set missingWarn(val) {
      _missingWarn = val;
      _context.missingWarn = _missingWarn;
     },
     get fallbackWarn() {
      return _fallbackWarn;
     },
     set fallbackWarn(val) {
      _fallbackWarn = val;
      _context.fallbackWarn = _fallbackWarn;
     },
     get fallbackRoot() {
      return _fallbackRoot;
     },
     set fallbackRoot(val) {
      _fallbackRoot = val;
     },
     get fallbackFormat() {
      return _fallbackFormat;
     },
     set fallbackFormat(val) {
      _fallbackFormat = val;
      _context.fallbackFormat = _fallbackFormat;
     },
     get warnHtmlMessage() {
      return _warnHtmlMessage;
     },
     set warnHtmlMessage(val) {
      _warnHtmlMessage = val;
      _context.warnHtmlMessage = val;
     },
     get escapeParameter() {
      return _escapeParameter;
     },
     set escapeParameter(val) {
      _escapeParameter = val;
      _context.escapeParameter = val;
     },
     t: t2,
     getLocaleMessage,
     setLocaleMessage,
     mergeLocaleMessage,
     getPostTranslationHandler,
     setPostTranslationHandler,
     getMissingHandler,
     setMissingHandler,
     [SetPluralRulesSymbol]: setPluralRules,
    };
    {
     composer.datetimeFormats = datetimeFormats;
     composer.numberFormats = numberFormats;
     composer.rt = rt2;
     composer.te = te;
     composer.tm = tm;
     composer.d = d2;
     composer.n = n;
     composer.getDateTimeFormat = getDateTimeFormat;
     composer.setDateTimeFormat = setDateTimeFormat;
     composer.mergeDateTimeFormat = mergeDateTimeFormat;
     composer.getNumberFormat = getNumberFormat;
     composer.setNumberFormat = setNumberFormat;
     composer.mergeNumberFormat = mergeNumberFormat;
     composer[InejctWithOptionSymbol] = __injectWithOption;
     composer[TranslateVNodeSymbol] = translateVNode;
     composer[DatetimePartsSymbol] = datetimeParts;
     composer[NumberPartsSymbol] = numberParts;
    }
    return composer;
   }
   function convertComposerOptions(options3) {
    const locale2 = isString(options3.locale) ? options3.locale : DEFAULT_LOCALE;
    const fallbackLocale = isString(options3.fallbackLocale) || isArray(options3.fallbackLocale) || isPlainObject(options3.fallbackLocale) || options3.fallbackLocale === false ? options3.fallbackLocale : locale2;
    const missing = isFunction(options3.missing) ? options3.missing : void 0;
    const missingWarn = isBoolean(options3.silentTranslationWarn) || isRegExp(options3.silentTranslationWarn) ? !options3.silentTranslationWarn : true;
    const fallbackWarn = isBoolean(options3.silentFallbackWarn) || isRegExp(options3.silentFallbackWarn) ? !options3.silentFallbackWarn : true;
    const fallbackRoot = isBoolean(options3.fallbackRoot) ? options3.fallbackRoot : true;
    const fallbackFormat = !!options3.formatFallbackMessages;
    const modifiers = isPlainObject(options3.modifiers) ? options3.modifiers : {};
    const pluralizationRules = options3.pluralizationRules;
    const postTranslation = isFunction(options3.postTranslation) ? options3.postTranslation : void 0;
    const warnHtmlMessage = isString(options3.warnHtmlInMessage) ? options3.warnHtmlInMessage !== "off" : true;
    const escapeParameter = !!options3.escapeParameterHtml;
    const inheritLocale = isBoolean(options3.sync) ? options3.sync : true;
    let messages = options3.messages;
    if (isPlainObject(options3.sharedMessages)) {
     const sharedMessages = options3.sharedMessages;
     const locales = Object.keys(sharedMessages);
     messages = locales.reduce((messages2, locale22) => {
      const message3 = messages2[locale22] || (messages2[locale22] = {});
      assign(message3, sharedMessages[locale22]);
      return messages2;
     }, messages || {});
    }
    const {__i18n, __root, __injectWithOption} = options3;
    const datetimeFormats = options3.datetimeFormats;
    const numberFormats = options3.numberFormats;
    const flatJson = options3.flatJson;
    return {locale: locale2, fallbackLocale, messages, flatJson, datetimeFormats, numberFormats, missing, missingWarn, fallbackWarn, fallbackRoot, fallbackFormat, modifiers, pluralRules: pluralizationRules, postTranslation, warnHtmlMessage, escapeParameter, messageResolver: options3.messageResolver, inheritLocale, __i18n, __root, __injectWithOption};
   }
   function createVueI18n(options3 = {}) {
    const composer = createComposer(convertComposerOptions(options3));
    const {__extender} = options3;
    const vueI18n = {
     id: composer.id,
     get locale() {
      return composer.locale.value;
     },
     set locale(val) {
      composer.locale.value = val;
     },
     get fallbackLocale() {
      return composer.fallbackLocale.value;
     },
     set fallbackLocale(val) {
      composer.fallbackLocale.value = val;
     },
     get messages() {
      return composer.messages.value;
     },
     get datetimeFormats() {
      return composer.datetimeFormats.value;
     },
     get numberFormats() {
      return composer.numberFormats.value;
     },
     get availableLocales() {
      return composer.availableLocales;
     },
     get missing() {
      return composer.getMissingHandler();
     },
     set missing(handler12) {
      composer.setMissingHandler(handler12);
     },
     get silentTranslationWarn() {
      return isBoolean(composer.missingWarn) ? !composer.missingWarn : composer.missingWarn;
     },
     set silentTranslationWarn(val) {
      composer.missingWarn = isBoolean(val) ? !val : val;
     },
     get silentFallbackWarn() {
      return isBoolean(composer.fallbackWarn) ? !composer.fallbackWarn : composer.fallbackWarn;
     },
     set silentFallbackWarn(val) {
      composer.fallbackWarn = isBoolean(val) ? !val : val;
     },
     get modifiers() {
      return composer.modifiers;
     },
     get formatFallbackMessages() {
      return composer.fallbackFormat;
     },
     set formatFallbackMessages(val) {
      composer.fallbackFormat = val;
     },
     get postTranslation() {
      return composer.getPostTranslationHandler();
     },
     set postTranslation(handler12) {
      composer.setPostTranslationHandler(handler12);
     },
     get sync() {
      return composer.inheritLocale;
     },
     set sync(val) {
      composer.inheritLocale = val;
     },
     get warnHtmlInMessage() {
      return composer.warnHtmlMessage ? "warn" : "off";
     },
     set warnHtmlInMessage(val) {
      composer.warnHtmlMessage = val !== "off";
     },
     get escapeParameterHtml() {
      return composer.escapeParameter;
     },
     set escapeParameterHtml(val) {
      composer.escapeParameter = val;
     },
     get pluralizationRules() {
      return composer.pluralRules || {};
     },
     __composer: composer,
     t(...args) {
      return Reflect.apply(composer.t, composer, [...args]);
     },
     rt(...args) {
      return Reflect.apply(composer.rt, composer, [...args]);
     },
     te(key, locale2) {
      return composer.te(key, locale2);
     },
     tm(key) {
      return composer.tm(key);
     },
     getLocaleMessage(locale2) {
      return composer.getLocaleMessage(locale2);
     },
     setLocaleMessage(locale2, message3) {
      composer.setLocaleMessage(locale2, message3);
     },
     mergeLocaleMessage(locale2, message3) {
      composer.mergeLocaleMessage(locale2, message3);
     },
     d(...args) {
      return Reflect.apply(composer.d, composer, [...args]);
     },
     getDateTimeFormat(locale2) {
      return composer.getDateTimeFormat(locale2);
     },
     setDateTimeFormat(locale2, format2) {
      composer.setDateTimeFormat(locale2, format2);
     },
     mergeDateTimeFormat(locale2, format2) {
      composer.mergeDateTimeFormat(locale2, format2);
     },
     n(...args) {
      return Reflect.apply(composer.n, composer, [...args]);
     },
     getNumberFormat(locale2) {
      return composer.getNumberFormat(locale2);
     },
     setNumberFormat(locale2, format2) {
      composer.setNumberFormat(locale2, format2);
     },
     mergeNumberFormat(locale2, format2) {
      composer.mergeNumberFormat(locale2, format2);
     },
    };
    vueI18n.__extender = __extender;
    return vueI18n;
   }
   function defineMixin(vuei18n, composer, i18n2) {
    return {
     beforeCreate() {
      const instance = getCurrentInstance();
      if (!instance) {
       throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
      }
      const options3 = this.$options;
      if (options3.i18n) {
       const optionsI18n = options3.i18n;
       if (options3.__i18n) {
        optionsI18n.__i18n = options3.__i18n;
       }
       optionsI18n.__root = composer;
       if (this === this.$root) {
        this.$i18n = mergeToGlobal(vuei18n, optionsI18n);
       } else {
        optionsI18n.__injectWithOption = true;
        optionsI18n.__extender = i18n2.__vueI18nExtend;
        this.$i18n = createVueI18n(optionsI18n);
        const _vueI18n = this.$i18n;
        if (_vueI18n.__extender) {
         _vueI18n.__disposer = _vueI18n.__extender(this.$i18n);
        }
       }
      } else if (options3.__i18n) {
       if (this === this.$root) {
        this.$i18n = mergeToGlobal(vuei18n, options3);
       } else {
        this.$i18n = createVueI18n({__i18n: options3.__i18n, __injectWithOption: true, __extender: i18n2.__vueI18nExtend, __root: composer});
        const _vueI18n = this.$i18n;
        if (_vueI18n.__extender) {
         _vueI18n.__disposer = _vueI18n.__extender(this.$i18n);
        }
       }
      } else {
       this.$i18n = vuei18n;
      }
      if (options3.__i18nGlobal) {
       adjustI18nResources(composer, options3, options3);
      }
      this.$t = (...args) => this.$i18n.t(...args);
      this.$rt = (...args) => this.$i18n.rt(...args);
      this.$te = (key, locale2) => this.$i18n.te(key, locale2);
      this.$d = (...args) => this.$i18n.d(...args);
      this.$n = (...args) => this.$i18n.n(...args);
      this.$tm = (key) => this.$i18n.tm(key);
      i18n2.__setInstance(instance, this.$i18n);
     },
     mounted() {},
     unmounted() {
      const instance = getCurrentInstance();
      if (!instance) {
       throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
      }
      const _vueI18n = this.$i18n;
      delete this.$t;
      delete this.$rt;
      delete this.$te;
      delete this.$d;
      delete this.$n;
      delete this.$tm;
      if (_vueI18n.__disposer) {
       _vueI18n.__disposer();
       delete _vueI18n.__disposer;
       delete _vueI18n.__extender;
      }
      i18n2.__deleteInstance(instance);
      delete this.$i18n;
     },
    };
   }
   function mergeToGlobal(g2, options3) {
    g2.locale = options3.locale || g2.locale;
    g2.fallbackLocale = options3.fallbackLocale || g2.fallbackLocale;
    g2.missing = options3.missing || g2.missing;
    g2.silentTranslationWarn = options3.silentTranslationWarn || g2.silentFallbackWarn;
    g2.silentFallbackWarn = options3.silentFallbackWarn || g2.silentFallbackWarn;
    g2.formatFallbackMessages = options3.formatFallbackMessages || g2.formatFallbackMessages;
    g2.postTranslation = options3.postTranslation || g2.postTranslation;
    g2.warnHtmlInMessage = options3.warnHtmlInMessage || g2.warnHtmlInMessage;
    g2.escapeParameterHtml = options3.escapeParameterHtml || g2.escapeParameterHtml;
    g2.sync = options3.sync || g2.sync;
    g2.__composer[SetPluralRulesSymbol](options3.pluralizationRules || g2.pluralizationRules);
    const messages = getLocaleMessages(g2.locale, {messages: options3.messages, __i18n: options3.__i18n});
    Object.keys(messages).forEach((locale2) => g2.mergeLocaleMessage(locale2, messages[locale2]));
    if (options3.datetimeFormats) {
     Object.keys(options3.datetimeFormats).forEach((locale2) => g2.mergeDateTimeFormat(locale2, options3.datetimeFormats[locale2]));
    }
    if (options3.numberFormats) {
     Object.keys(options3.numberFormats).forEach((locale2) => g2.mergeNumberFormat(locale2, options3.numberFormats[locale2]));
    }
    return g2;
   }
   const baseFormatProps = {tag: {type: [String, Object]}, locale: {type: String}, scope: {type: String, validator: (val) => val === "parent" || val === "global", default: "parent"}, i18n: {type: Object}};
   function getInterpolateArg({slots}, keys) {
    if (keys.length === 1 && keys[0] === "default") {
     const ret = slots.default ? slots.default() : [];
     return ret.reduce((slot, current) => {
      return [...slot, ...(current.type === Fragment ? current.children : [current])];
     }, []);
    } else {
     return keys.reduce((arg, key) => {
      const slot = slots[key];
      if (slot) {
       arg[key] = slot();
      }
      return arg;
     }, create());
    }
   }
   function getFragmentableTag() {
    return Fragment;
   }
   const TranslationImpl = defineComponent({
    name: "i18n-t",
    props: assign({keypath: {type: String, required: true}, plural: {type: [Number, String], validator: (val) => isNumber$1(val) || !isNaN(val)}}, baseFormatProps),

    setup(props2, context) {
     const {slots, attrs: attrs6} = context;
     const i18n2 = props2.i18n || useI18n({useScope: props2.scope, __useComponent: true});
     return () => {
      const keys = Object.keys(slots).filter((key) => key[0] !== "_");
      const options3 = create();
      if (props2.locale) {
       options3.locale = props2.locale;
      }
      if (props2.plural !== void 0) {
       options3.plural = isString(props2.plural) ? +props2.plural : props2.plural;
      }
      const arg = getInterpolateArg(context, keys);
      const children = i18n2[TranslateVNodeSymbol](props2.keypath, arg, options3);
      const assignedAttrs = assign(create(), attrs6);
      const tag = isString(props2.tag) || isObject(props2.tag) ? props2.tag : getFragmentableTag();
      return h$2(tag, assignedAttrs, children);
     };
    },
   });
   const Translation = TranslationImpl;
   function isVNode(target2) {
    return isArray(target2) && !isString(target2[0]);
   }
   function renderFormatter(props2, context, slotKeys, partFormatter) {
    const {slots, attrs: attrs6} = context;
    return () => {
     const options3 = {part: true};
     let overrides = create();
     if (props2.locale) {
      options3.locale = props2.locale;
     }
     if (isString(props2.format)) {
      options3.key = props2.format;
     } else if (isObject(props2.format)) {
      if (isString(props2.format.key)) {
       options3.key = props2.format.key;
      }
      overrides = Object.keys(props2.format).reduce((options22, prop) => {
       return slotKeys.includes(prop) ? assign(create(), options22, {[prop]: props2.format[prop]}) : options22;
      }, create());
     }
     const parts = partFormatter(...[props2.value, options3, overrides]);
     let children = [options3.key];
     if (isArray(parts)) {
      children = parts.map((part, index) => {
       const slot = slots[part.type];
       const node = slot ? slot({[part.type]: part.value, index, parts}) : [part.value];
       if (isVNode(node)) {
        node[0].key = `${part.type}-${index}`;
       }
       return node;
      });
     } else if (isString(parts)) {
      children = [parts];
     }
     const assignedAttrs = assign(create(), attrs6);
     const tag = isString(props2.tag) || isObject(props2.tag) ? props2.tag : getFragmentableTag();
     return h$2(tag, assignedAttrs, children);
    };
   }
   const NumberFormatImpl = defineComponent({
    name: "i18n-n",
    props: assign({value: {type: Number, required: true}, format: {type: [String, Object]}}, baseFormatProps),

    setup(props2, context) {
     const i18n2 = props2.i18n || useI18n({useScope: props2.scope, __useComponent: true});
     return renderFormatter(props2, context, NUMBER_FORMAT_OPTIONS_KEYS, (...args) => i18n2[NumberPartsSymbol](...args));
    },
   });
   const NumberFormat = NumberFormatImpl;
   function getComposer$1(i18n2, instance) {
    const i18nInternal = i18n2;
    if (i18n2.mode === "composition") {
     return i18nInternal.__getInstance(instance) || i18n2.global;
    } else {
     const vueI18n = i18nInternal.__getInstance(instance);
     return vueI18n != null ? vueI18n.__composer : i18n2.global.__composer;
    }
   }
   function vTDirective(i18n2) {
    const _process = (binding) => {
     const {instance, value: value2} = binding;
     if (!instance || !instance.$) {
      throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
     }
     const composer = getComposer$1(i18n2, instance.$);
     const parsedValue = parseValue(value2);
     return [Reflect.apply(composer.t, composer, [...makeParams(parsedValue)]), composer];
    };
    const register2 = (el, binding) => {
     const [textContent, composer] = _process(binding);
     if (inBrowser && i18n2.global === composer) {
      el.__i18nWatcher = watch(composer.locale, () => {
       binding.instance && binding.instance.$forceUpdate();
      });
     }
     el.__composer = composer;
     el.textContent = textContent;
    };
    const unregister = (el) => {
     if (inBrowser && el.__i18nWatcher) {
      el.__i18nWatcher();
      el.__i18nWatcher = void 0;
      delete el.__i18nWatcher;
     }
     if (el.__composer) {
      el.__composer = void 0;
      delete el.__composer;
     }
    };
    const update = (el, {value: value2}) => {
     if (el.__composer) {
      const composer = el.__composer;
      const parsedValue = parseValue(value2);
      el.textContent = Reflect.apply(composer.t, composer, [...makeParams(parsedValue)]);
     }
    };
    const getSSRProps = (binding) => {
     const [textContent] = _process(binding);
     return {textContent};
    };
    return {created: register2, unmounted: unregister, beforeUpdate: update, getSSRProps};
   }
   function parseValue(value2) {
    if (isString(value2)) {
     return {path: value2};
    } else if (isPlainObject(value2)) {
     if (!("path" in value2)) {
      throw createI18nError(I18nErrorCodes.REQUIRED_VALUE, "path");
     }
     return value2;
    } else {
     throw createI18nError(I18nErrorCodes.INVALID_VALUE);
    }
   }
   function makeParams(value2) {
    const {path, locale: locale2, args, choice, plural} = value2;
    const options3 = {};
    const named = args || {};
    if (isString(locale2)) {
     options3.locale = locale2;
    }
    if (isNumber$1(choice)) {
     options3.plural = choice;
    }
    if (isNumber$1(plural)) {
     options3.plural = plural;
    }
    return [path, named, options3];
   }
   function apply(app2, i18n2, ...options3) {
    const pluginOptions = isPlainObject(options3[0]) ? options3[0] : {};
    const globalInstall = isBoolean(pluginOptions.globalInstall) ? pluginOptions.globalInstall : true;
    if (globalInstall) {
     [Translation.name, "I18nT"].forEach((name) => app2.component(name, Translation));
     [NumberFormat.name, "I18nN"].forEach((name) => app2.component(name, NumberFormat));
     [DatetimeFormat.name, "I18nD"].forEach((name) => app2.component(name, DatetimeFormat));
    }
    {
     app2.directive("t", vTDirective(i18n2));
    }
   }
   const I18nInjectionKey = makeSymbol("global-vue-i18n");
   function createI18n(options3 = {}) {
    const __legacyMode = __VUE_I18N_LEGACY_API__ && isBoolean(options3.legacy) ? options3.legacy : __VUE_I18N_LEGACY_API__;
    const __globalInjection = isBoolean(options3.globalInjection) ? options3.globalInjection : true;
    const __instances = new Map();
    const [globalScope, __global] = createGlobal(options3, __legacyMode);
    const symbol = makeSymbol("");
    function __getInstance(component) {
     return __instances.get(component) || null;
    }
    function __setInstance(component, instance) {
     __instances.set(component, instance);
    }
    function __deleteInstance(component) {
     __instances.delete(component);
    }
    const i18n2 = {
     get mode() {
      return __VUE_I18N_LEGACY_API__ && __legacyMode ? "legacy" : "composition";
     },
     async install(app2, ...options22) {
      app2.__VUE_I18N_SYMBOL__ = symbol;
      app2.provide(app2.__VUE_I18N_SYMBOL__, i18n2);
      if (isPlainObject(options22[0])) {
       const opts = options22[0];
       i18n2.__composerExtend = opts.__composerExtend;
       i18n2.__vueI18nExtend = opts.__vueI18nExtend;
      }
      let globalReleaseHandler = null;
      if (!__legacyMode && __globalInjection) {
       globalReleaseHandler = injectGlobalFields(app2, i18n2.global);
      }
      if (__VUE_I18N_FULL_INSTALL__) {
       apply(app2, i18n2, ...options22);
      }
      if (__VUE_I18N_LEGACY_API__ && __legacyMode) {
       app2.mixin(defineMixin(__global, __global.__composer, i18n2));
      }
      const unmountApp = app2.unmount;
      app2.unmount = () => {
       globalReleaseHandler && globalReleaseHandler();
       i18n2.dispose();
       unmountApp();
      };
     },
     get global() {
      return __global;
     },
     dispose() {
      globalScope.stop();
     },
     __instances,
     __getInstance,
     __setInstance,
     __deleteInstance,
    };
    return i18n2;
   }
   function useI18n(options3 = {}) {
    const instance = getCurrentInstance();
    if (instance == null) {
     throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);
    }
    if (!instance.isCE && instance.appContext.app != null && !instance.appContext.app.__VUE_I18N_SYMBOL__) {
     throw createI18nError(I18nErrorCodes.NOT_INSTALLED);
    }
    const i18n2 = getI18nInstance(instance);
    const gl = getGlobalComposer(i18n2);
    const componentOptions = getComponentOptions(instance);
    const scope = getScope(options3, componentOptions);
    if (scope === "global") {
     adjustI18nResources(gl, options3, componentOptions);
     return gl;
    }
    if (scope === "parent") {
     let composer2 = getComposer(i18n2, instance, options3.__useComponent);
     if (composer2 == null) {
      composer2 = gl;
     }
     return composer2;
    }
    const i18nInternal = i18n2;
    let composer = i18nInternal.__getInstance(instance);
    if (composer == null) {
     const composerOptions = assign({}, options3);
     if ("__i18n" in componentOptions) {
      composerOptions.__i18n = componentOptions.__i18n;
     }
     if (gl) {
      composerOptions.__root = gl;
     }
     composer = createComposer(composerOptions);
     if (i18nInternal.__composerExtend) {
      composer[DisposeSymbol] = i18nInternal.__composerExtend(composer);
     }
     setupLifeCycle(i18nInternal, instance, composer);
     i18nInternal.__setInstance(instance, composer);
    }
    return composer;
   }
   function createGlobal(options3, legacyMode) {
    const scope = effectScope();
    const obj = __VUE_I18N_LEGACY_API__ && legacyMode ? scope.run(() => createVueI18n(options3)) : scope.run(() => createComposer(options3));
    if (obj == null) {
     throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
    }
    return [scope, obj];
   }
   function getI18nInstance(instance) {
    const i18n2 = inject(!instance.isCE ? instance.appContext.app.__VUE_I18N_SYMBOL__ : I18nInjectionKey);
    if (!i18n2) {
     throw createI18nError(!instance.isCE ? I18nErrorCodes.UNEXPECTED_ERROR : I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE);
    }
    return i18n2;
   }
   function getScope(options3, componentOptions) {
    return isEmptyObject(options3) ? ("__i18n" in componentOptions ? "local" : "global") : !options3.useScope ? "local" : options3.useScope;
   }
   function getGlobalComposer(i18n2) {
    return i18n2.mode === "composition" ? i18n2.global : i18n2.global.__composer;
   }
   function getComposer(i18n2, target2, useComponent = false) {
    let composer = null;
    const root20 = target2.root;
    let current = getParentComponentInstance(target2, useComponent);
    while (current != null) {
     const i18nInternal = i18n2;
     if (i18n2.mode === "composition") {
      composer = i18nInternal.__getInstance(current);
     } else {
      if (__VUE_I18N_LEGACY_API__) {
       const vueI18n = i18nInternal.__getInstance(current);
       if (vueI18n != null) {
        composer = vueI18n.__composer;
        if (useComponent && composer && !composer[InejctWithOptionSymbol]) {
         composer = null;
        }
       }
      }
     }
     if (composer != null) {
      break;
     }
     if (root20 === current) {
      break;
     }
     current = current.parent;
    }
    return composer;
   }
   function getParentComponentInstance(target2, useComponent = false) {
    if (target2 == null) {
     return null;
    }
    return !useComponent ? target2.parent : target2.vnode.ctx || target2.parent;
   }
   function setupLifeCycle(i18n2, target2, composer) {
    onMounted(() => {}, target2);
    onUnmounted(() => {
     const _composer = composer;
     i18n2.__deleteInstance(target2);
     const dispose = _composer[DisposeSymbol];
     if (dispose) {
      dispose();
      delete _composer[DisposeSymbol];
     }
    }, target2);
   }
   const globalExportProps = ["locale", "fallbackLocale", "availableLocales"];
   const globalExportMethods = ["t", "rt", "d", "n", "tm", "te"];
   function injectGlobalFields(app2, composer) {
    const i18n2 = Object.create(null);
    globalExportProps.forEach((prop) => {
     const desc = Object.getOwnPropertyDescriptor(composer, prop);
     if (!desc) {
      throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
     }
     const wrap2 = isRef(desc.value)
      ? {
         get() {
          return desc.value.value;
         },
         set(val) {
          desc.value.value = val;
         },
        }
      : {
         get() {
          return desc.get && desc.get();
         },
        };
     Object.defineProperty(i18n2, prop, wrap2);
    });
    app2.config.globalProperties.$i18n = i18n2;
    globalExportMethods.forEach((method) => {
     const desc = Object.getOwnPropertyDescriptor(composer, method);
     if (!desc || !desc.value) {
      throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
     }
     Object.defineProperty(app2.config.globalProperties, `$${method}`, desc);
    });
    const dispose = () => {
     delete app2.config.globalProperties.$i18n;
     globalExportMethods.forEach((method) => {
      delete app2.config.globalProperties[`$${method}`];
     });
    };
    return dispose;
   }
   const DatetimeFormatImpl = defineComponent({
    name: "i18n-d",
    props: assign({value: {type: [Number, Date], required: true}, format: {type: [String, Object]}}, baseFormatProps),

    setup(props2, context) {
     const i18n2 = props2.i18n || useI18n({useScope: props2.scope, __useComponent: true});
     return renderFormatter(props2, context, DATETIME_FORMAT_OPTIONS_KEYS, (...args) => i18n2[DatetimePartsSymbol](...args));
    },
   });
   const DatetimeFormat = DatetimeFormatImpl;
   {
    initFeatureFlags();
   }
   registerMessageCompiler(compile);
   registerMessageResolver(resolveValue);
   registerLocaleFallbacker(fallbackWithLocaleChain);
   if (__INTLIFY_PROD_DEVTOOLS__) {
    const target2 = getGlobalThis();
    target2.__INTLIFY__ = true;
    setDevToolsHook(target2.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
   }
   function ownKeys$a(object, enumerableOnly) {
    var keys = Object.keys(object);
    if (Object.getOwnPropertySymbols) {
     var symbols = Object.getOwnPropertySymbols(object);
     (enumerableOnly &&
      (symbols = symbols.filter(function (sym) {
       return Object.getOwnPropertyDescriptor(object, sym).enumerable;
      })),
      keys.push.apply(keys, symbols));
    }
    return keys;
   }
   function _objectSpread$a(target2) {
    for (var i2 = 1; i2 < arguments.length; i2++) {
     var source = null != arguments[i2] ? arguments[i2] : {};
     i2 % 2
      ? ownKeys$a(Object(source), true).forEach(function (key) {
         _defineProperty$k(target2, key, source[key]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(target2, Object.getOwnPropertyDescriptors(source))
        : ownKeys$a(Object(source)).forEach(function (key) {
           Object.defineProperty(target2, key, Object.getOwnPropertyDescriptor(source, key));
          });
    }
    return target2;
   }
   function _defineProperty$k(obj, key, value2) {
    key = _toPropertyKey$k(key);
    if (key in obj) {
     Object.defineProperty(obj, key, {value: value2, enumerable: true, configurable: true, writable: true});
    } else {
     obj[key] = value2;
    }
    return obj;
   }
   function _toPropertyKey$k(arg) {
    var key = _toPrimitive$k(arg, "string");
    return typeof key === "symbol" ? key : String(key);
   }
   function _toPrimitive$k(input, hint) {
    if (typeof input !== "object" || input === null) return input;
    var prim = input[Symbol.toPrimitive];
    if (prim !== void 0) {
     var res = prim.call(input, hint);
     if (typeof res !== "object") return res;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return (hint === "string" ? String : Number)(input);
   }
   const dedent = createDedent({});
   function createDedent(options3) {
    dedent2.withOptions = (newOptions) => createDedent(_objectSpread$a(_objectSpread$a({}, options3), newOptions));
    return dedent2;
    function dedent2(strings, ...values) {
     const raw = typeof strings === "string" ? [strings] : strings.raw;
     const {alignValues = false, escapeSpecialCharacters = Array.isArray(strings), trimWhitespace = true} = options3;
     let result = "";
     for (let i2 = 0; i2 < raw.length; i2++) {
      let next2 = raw[i2];
      if (escapeSpecialCharacters) {
       next2 = next2
        .replace(/\\\n[ \t]*/g, "")
        .replace(/\\`/g, "`")
        .replace(/\\\$/g, "$")
        .replace(/\\\{/g, "{");
      }
      result += next2;
      if (i2 < values.length) {
       const value2 = alignValues ? alignValue(values[i2], result) : values[i2];
       result += value2;
      }
     }
     const lines = result.split("\n");
     let mindent = null;
     for (const l2 of lines) {
      const m2 = l2.match(/^(\s+)\S+/);
      if (m2) {
       const indent = m2[1].length;
       if (!mindent) {
        mindent = indent;
       } else {
        mindent = Math.min(mindent, indent);
       }
      }
     }
     if (mindent !== null) {
      const m2 = mindent;
      result = lines.map((l2) => (l2[0] === " " || l2[0] === "	" ? l2.slice(m2) : l2)).join("\n");
     }
     if (trimWhitespace) {
      result = result.trim();
     }
     if (escapeSpecialCharacters) {
      result = result.replace(/\\n/g, "\n");
     }
     if (typeof Bun !== "undefined") {
      result = result.replace(/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g, (_, braced, unbraced) => {
       var _ref;
       const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
       return String.fromCodePoint(parseInt(hex, 16));
      });
     }
     return result;
    }
   }
   function alignValue(value2, precedingText) {
    if (typeof value2 !== "string" || !value2.includes("\n")) {
     return value2;
    }
    const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
    const indentMatch = currentLine.match(/^(\s+)/);
    if (indentMatch) {
     const indent = indentMatch[1];
     return value2.replace(
      /\n/g,
      `
${indent}`,
     );
    }
    return value2;
   }
   const I18nResource = {
    components: {"posts-selector": {"selection-buttons": {"select-all-pages": "全选所有页", "select-all": "全选", "clear-all-pages": "清空所有页", clear: "清空"}, list: {search: "搜索"}, buttons: {"open-post": "打开帖子页面", ok: "确认", cancel: "取消"}, "image-loading": "加载中..."}},
    api: {name: "Kemono API", settings: {"group-cache": "缓存", "api-cache-expires": {label: "API缓存有效期", caption: "单位:分钟;过期的缓存将被自动清理"}, "clear-api-cache": {label: "清理API缓存", caption: "确保从服务器获取最新数据", button: "清理", cleared: {summary: "API 缓存清理", detail: "清理了 {count} 条缓存"}}}},
    settings: {name: "设置", menu: {label: "设置"}, gui: {title: "设置", "tabpanel-placeholder": "选择一个模块以进入其设置", "no-items-placeholder": "设置列表为空", "reload-to-apply": "修改此设置后,已打开的页面需要刷新后才能生效", "help-header": "帮助 - {name}", "mobile-dialog": {ok: "保存", cancel: "取消"}, "value-string": {switch: {true: "已开启", false: "已关闭"}}}},
    downloader: {
     "show-ui": "下载管理器",
     name: "下载器",
     gui: {title: "下载器", "title-detail": "任务详情 - {name}", "title-detail-noname": "任务详情", tabs: {init: "初始化", queue: "排队中", paused: "已暂停", ongoing: "下载中", complete: "已完成", aborted: "已取消", error: "存在错误"}, "task-component": {common: {caption: "下载进度: {percentage}%, {finished} / {total}", unknown: "未知", init: "初始化", queue: "排队中", ongoing: "下载中", paused: "已暂停", complete: "已完成", aborted: "已取消", error: "存在错误", "title-nodata": "等待获取任务信息中", "caption-nodata": "service: {service}, creator id: {creatorId}, post id: {postId}", pause: "暂停下载", unpause: "取消暂停", retry: "重试", more: "更多", copied: "已复制", "confirm-delete-files": "同时删除已下载的文件", "confirm-restart": {label: "重新下载", message: '确定要重新开始下载任务 <span class="text-primary">{name}</span> 吗?<br>现有下载进度将丢失,从头开始下载', header: "确认重新下载", accept: "重新下载", reject: "算了"}, "confirm-abort": {label: "停止(取消)下载", message: '确定要停止(取消)下载任务 <span class="text-primary">{name}</span> 吗?<br>尚不支持断点续传,如需重新下载将会从头开始', header: "确认停止(取消)下载", accept: "停止", reject: "算了"}, "confirm-remove": {label: "移除下载任务", message: '确定要移除下载任务 <span class="text-primary">{name}</span> 吗?<br>将彻底移除下载任务,如需重新下载请重新在对应页面点击下载按钮', header: "确认移除下载任务", accept: "移除", reject: "算了"}}, save: {caption: {ongoing: "正在将保存文件...", complete: "文件已保存"}}, file: {caption: "下载进度: {percentage}%, {finished} / {total}", copyLink: "复制下载链接"}, post: {caption: "共 {total} 个文件,已下载 {finished} 个", "caption-aborted": ",已取消 {aborted} 个"}, posts: {caption: "共 {total} 个帖子,已下载 {finished} 个", "caption-aborted": ",已取消 {aborted} 个"}}},
     settings: {
      label: "下载器",
      "feature-not-supported": "当前下载器({provider})不支持修改此设置",
      provider: {
       label: "下载器",
       caption: "默认使用浏览器内置下载器;其它下载器有其独特优势,但需要自行测试和您的浏览器的兼容性",
       options: {browser: "浏览器内置下载器", fsa: "File System API", aria2: "Aria2 RPC"},
       help: {
        instruction: "不同的下载器有着不同的特性,以下表格为对您的浏览器和脚本管理器测试得出的兼容性数据:",
        table: {corner: {provider: "下载器", support: "功能"}, provider: {browser: "浏览器内置下载器", fsa: "File System API", aria2: "Aria2 RPC"}, support: {self: "下载器自身可用性", pause: "暂停/继续下载", "abort-files": "取消任务时删除已下载文件", dir: "保存文件时创建文件夹结构"}},
        questionable: "开发者并不能100%确定此项的兼容性和可用性,请自行测试",
        aria2NeedInstall: dedent`
                        需要自行安装并配置好aria2
                        同时推荐使用专业的aria2客户端GUI
                    `.replaceAll("\n", "<br>"),
        fsaMobile: "移动端浏览器可能会出现文件读写问题,请自行测试",
       },
      },
      filename: {
       label: "文件命名",
       caption: "可以使用模板进行文件命名,清空即可恢复默认文件名",
       help: {
        header: dedent`
                        您可以使用斜杠创建文件夹结构,windows使用"\",苹果/linux/安卓使用"/"
                        如果发现使用了斜杠依然无法创建文件夹,请尝试修改设置使用其他下载器,比如FileSystemAPI或者Aria2
                        以下模板可在自定义文件名中使用,不区分大小写,使用时需保留大括号(可直接点击复制)
                    `.replaceAll("\n", "<br>"),
        markup: "模板",
        desc: "说明",
        templates: {PostID: "帖子内容ID", CreatorID: "作者ID", Service: '平台(如"fanbox"/"fantia"等等)', P: "该文件在当前文件夹层级是第几个文件", Name: "kemono服务器上的文件原名", Base: '文件原名的非扩展名部分(如"abc.jpg"中的"abc")', Ext: '文件原名的扩展名部分(如"abc.jpg"中的"jpg")', Title: "帖子内容标题", Creator: "创作者名", Year: "四位数年份", Month: "两位数月份", Date: "两位数日期", Hour: "两位数时间", Minute: "两位数分钟", Second: "两位数秒", Timestamp: "纯数字时间戳", Timetext: "文本时间戳"},
        footer: "注: 所有时间相关模板均基于内容的发布时间",
       },
       toast: {copied: "已复制"},
      },
      "no-cover-file": "不下载封面图文件",
      "download-original-image": "下载原图",
      "abort-files": {label: "取消任务时,如何处理已下载文件", caption: "部分下载器可能不支持此功能", options: {prompt: "每次都询问", delete: "删除", preserve: "保留"}},
      concurrent: {label: "最大并行下载数量", caption: "最多同时下载几个文件", "feature-not-supported": {browser: "当前下载器({provider})不支持修改此设置", fsa: "当前下载器({provider})不支持修改此设置", aria2: "您当前的下载器是{provider},请通过服务端配置文件或者专业Aria2界面调整此设置"}},
      "text-content": {label: "同时下载帖子的文字内容", caption: "使用文件命名功能自定义文件名时,此文件的文件原名为content.txt/content.html", "feature-not-supported": {browser: "当前下载器({provider})不支持修改此设置", fsa: "当前下载器({provider})不支持修改此设置", aria2: "{provider} 不支持此功能"}, options: {none: "不下载文字内容", txt: "下载为txt文件", html: "下载为html文件"}},
      "auto-retry": {label: "自动重试次数", caption: "下载任务失败时最多自动重试几次;设置为0则不自动重试;设置为负数则无限自动重试"},
      group: "常规设置",
     },
     provider: {
      browser: {settings: {label: "下载器: 浏览器内置下载器"}},
      fsa: {settings: {label: "下载器: File System API", directory: {label: "下载文件夹", caption: "点击更改下载文件保存位置", "not-selected": "尚未选择文件夹"}, "permission-check": {label: "检查文件夹权限", caption: "如果下载时无法正常触发授权、且保存文件出错,点这里", button: "授权", toast: {granted: {title: "权限检查", message: "权限已授予"}, failed: {title: "权限检查", message: "无法获取可读写的文件夹权限"}}}}},
      aria2: {
       settings: {
        label: "下载器: Aria2",
        "disabled-text": "Aria2并不是当前下载器",
        endpoint: {label: "Aria2服务器", caption: "服务端的链接,同时支持http(s)/ws(s)协议"},
        secret: {label: "密钥", caption: "留空则不使用密钥"},
        dir: {
         label: "下载位置",
         caption: "存储下载文件的文件夹路径,留空以不指定下载位置",
         help: dedent`
                            如果您曾在Aria2服务端配置过下载位置,此选项会覆盖您的服务端配置
                            如需使用服务端配置,请将此选项留空
                            <span class="font-bold">请注意:如果您希望通过自定义文件名创建文件夹,那么此项不可省略,否则自定义文件夹将会在aria2运行目录而非服务端配置的下载目录下创建</span>
                        `.replaceAll("\n", "<br>"),
        },
        interval: {label: "任务刷新间隔(秒)", caption: "下载时,每隔多长时间刷新一下任务进度"},
        "connection-test": {label: "测试连接", caption: "使用当前配置尝试连接Aria2服务器", button: "测试", toast: {"not-enabled": {title: "未启用aria2下载器", message: "请先将下载器设置为aria2,再进行测试"}, "not-ready": {title: "未连接aria2下载器", message: "aria2下载器尚未准备好,请检查配置进行测试"}, granted: {title: "连接成功", message: "已连接到Aria2服务器,版本 {version}"}, failed: {title: "连接失败", message: "无法连接,请检查配置"}}},
       },
      },
     },
    },
    creator: {name: "创作者页面", gui: {download: "下载", "select-all-pages": {summary: "全选所有页", detail: "正在加载全部分页数据..."}, "posts-selector": {header: "选择要下载的帖子", buttons: {cancel: "取消", download: "下载"}}}},
    post: {name: "帖子页面", gui: {download: "下载"}},
    debugging: {name: "调试", settings: {"group-log": "日志", "save-logs": {label: "记录日志", caption: "将运行日志保存在脚本存储空间中,以便导出;非必要不开启,存储过多的日志会导致脚本速度变慢"}, "export-logs": {label: "导出日志", caption: "如需反馈bug,请先开启上方的“记录日志”按钮,然后在刷新页面后触发一遍bug,最后点击此处导出日志文件进行反馈", button: "导出"}, "clear-logs": {label: "清空日志", caption: "如果不再需要已记录的日志,可点击这里删除", button: "清空", cleared: {summary: "日志清理", detail: "已删除所有日志,释放 {size} 空间"}}}},
    self: {name: "关于", settings: {label: "关于", version: {label: "版本号"}, github: {label: "Github 仓库"}, greasyfork: {label: "Greasyfork 脚本"}}},
   };
   const zhHant = {
    components: {"posts-selector": {"selection-buttons": {"select-all-pages": "全選所有頁", "select-all": "全選", "clear-all-pages": "清空所有頁", clear: "清空"}, list: {search: "搜尋"}, buttons: {"open-post": "打開貼文頁面", ok: "確認", cancel: "取消"}, "image-loading": "載入中..."}},
    api: {name: "Kemono API", settings: {"group-cache": "快取", "api-cache-expires": {label: "API 快取有效期", caption: "單位:分鐘;過期的快取將被自動清理"}, "clear-api-cache": {label: "清理 API 快取", caption: "確保從伺服器獲取最新數據", button: "清理", cleared: {summary: "API 快取清理", detail: "清理了 {count} 條快取"}}}},
    settings: {name: "設定", menu: {label: "設定"}, gui: {title: "設定", "tabpanel-placeholder": "選擇一個模組以進入其設定", "no-items-placeholder": "設定列表為空", "reload-to-apply": "修改此設定後,已打開的頁面需要重新整理後才能生效", "help-header": "說明 - {name}", "mobile-dialog": {ok: "儲存", cancel: "取消"}, "value-string": {switch: {true: "已開啟", false: "已關閉"}}}},
    downloader: {
     "show-ui": "下載管理員",
     name: "下載器",
     gui: {title: "下載器", "title-detail": "任務詳情 - {name}", "title-detail-noname": "任務詳情", tabs: {init: "初始化", queue: "排隊中", paused: "已暫停", ongoing: "下載中", complete: "已完成", aborted: "已取消", error: "發生錯誤"}, "task-component": {common: {caption: "下載進度: {percentage}%, {finished} / {total}", unknown: "未知", init: "初始化", queue: "排隊中", ongoing: "下載中", paused: "已暫停", complete: "已完成", aborted: "已取消", error: "發生錯誤", "title-nodata": "正在等待獲取任務資訊", "caption-nodata": "service: {service}, creator id: {creatorId}, post id: {postId}", pause: "暫停下載", unpause: "取消暫停", retry: "重試", more: "更多", copied: "已複製", "confirm-delete-files": "同時刪除已下載的檔案", "confirm-restart": {label: "重新下載", message: '確定要重新開始下載任務 <span class="text-primary">{name}</span> 嗎?<br>現有的下載進度將遺失,並從頭開始下載', header: "確認重新下載", accept: "重新下載", reject: "算了"}, "confirm-abort": {label: "停止(取消)下載", message: '確定要停止(取消)下載任務 <span class="text-primary">{name}</span> 嗎?<br>目前尚不支援斷點續傳,如需重新下載將會從頭開始', header: "確認停止(取消)下載", accept: "停止", reject: "算了"}, "confirm-remove": {label: "移除下載任務", message: '確定要移除下載任務 <span class="text-primary">{name}</span> 嗎?<br>這將徹底移除下載任務,如需重新下載請回到對應頁面點擊下載按鈕', header: "確認移除下載任務", accept: "移除", reject: "算了"}}, save: {caption: {ongoing: "正在儲存檔案...", complete: "檔案已儲存"}}, file: {caption: "下載進度: {percentage}%, {finished} / {total}", copyLink: "複製下載連結"}, post: {caption: "共 {total} 個檔案,已下載 {finished} 個", "caption-aborted": ",已取消 {aborted} 個"}, posts: {caption: "共 {total} 篇貼文,已下載 {finished} 篇", "caption-aborted": ",已取消 {aborted} 篇"}}},
     settings: {
      label: "下載器",
      "feature-not-supported": "當前下載器({provider})不支援修改此設定",
      provider: {
       label: "下載器",
       caption: "預設使用瀏覽器內建下載器;其他下載器有其獨特優勢,但需要自行測試與瀏覽器的相容性",
       options: {browser: "瀏覽器內建下載器", fsa: "File System API", aria2: "Aria2 RPC"},
       help: {
        instruction: "不同的下載器有不同的特性,下表為根據您的瀏覽器與指令碼管理員測試出的相容性數據:",
        table: {corner: {provider: "下載器", support: "功能"}, provider: {browser: "瀏覽器內建", fsa: "File System API", aria2: "Aria2 RPC"}, support: {self: "下載器本身可用性", pause: "暫停/繼續下載", "abort-files": "取消任務時刪除已下載檔案", dir: "儲存檔案時建立資料夾結構"}},
        questionable: "開發者無法 100% 確定此項的相容性與可用性,請自行測試",
        aria2NeedInstall: dedent`
                        需要自行安裝並配置好 Aria2
                        同時建議使用專業的 Aria2 客戶端 GUI
                    `.replaceAll("\n", "<br>"),
        fsaMobile: "行動裝置瀏覽器可能會出現檔案讀寫問題,請自行測試",
       },
      },
      filename: {
       label: "檔案命名",
       caption: "可以使用範本進行檔案命名,清空即可恢復預設檔名",
       help: {
        header: dedent`
                        您可以使用斜線建立資料夾結構,Windows 使用 "\",Apple/Linux/Android 使用 "/"
                        如果發現使用了斜線依然無法建立資料夾,請嘗試修改設定使用其他下載器,例如 File System API 或 Aria2
                        以下範本可在自訂檔名中使用,不區分大小寫,使用時需保留大括號(可直接點擊複製)
                    `.replaceAll("\n", "<br>"),
        markup: "範本",
        desc: "說明",
        templates: {PostID: "貼文內容 ID", CreatorID: "作者 ID", Service: '平台(如 "fanbox"/"fantia" 等)', P: "該檔案在目前資料夾層級中的序號", Name: "Kemono 伺服器上的原始檔名", Base: '原始檔名的主檔名部分(如 "abc.jpg" 中的 "abc")', Ext: '原始檔名的副檔名部分(如 "abc.jpg" 中的 "jpg")', Title: "貼文標題", Creator: "創作者名稱", Year: "四位數年份", Month: "兩位數月份", Date: "兩位數日期", Hour: "兩位數小時", Minute: "兩位數分鐘", Second: "兩位數秒數", Timestamp: "純數字時間戳記", Timetext: "文字格式時間戳記"},
        footer: "註:所有時間相關範本均基於內容的發佈時間",
       },
       toast: {copied: "已複製"},
      },
      "no-cover-file": "不下載封面圖",
      "download-original-image": "下載原圖",
      "abort-files": {label: "取消任務時,如何處理已下載檔案", caption: "部分下載器可能不支援此功能", options: {prompt: "每次詢問", delete: "刪除", preserve: "保留"}},
      concurrent: {label: "最大並行下載數量", caption: "最多同時下載幾個檔案", "feature-not-supported": {browser: "當前下載器({provider})不支援修改此設定", fsa: "當前下載器({provider})不支援修改此設定", aria2: "您當前的下載器是 {provider},請透過伺服端設定檔或專業 Aria2 介面調整此設定"}},
      "text-content": {label: "同時下載貼文文字內容", caption: "使用檔案命名功能自訂檔名時,此檔案的原始檔名為 content.txt/content.html", "feature-not-supported": {browser: "當前下載器({provider})不支援修改此設定", fsa: "當前下載器({provider})不支援修改此設定", aria2: "{provider} 不支援此功能"}, options: {none: "不下載文字內容", txt: "下載為 .txt 檔案", html: "下載為 .html 檔案"}},
      "auto-retry": {label: "自動重試次數", caption: "下載任務失敗時最多自動重試幾次;設定為 0 則不自動重試;設定為負數則無限自動重試"},
      group: "常規設定",
     },
     provider: {
      browser: {settings: {label: "下載器:瀏覽器內建下載器"}},
      fsa: {settings: {label: "下載器:File System API", directory: {label: "下載資料夾", caption: "點擊更改下載檔案儲存位置", "not-selected": "尚未選擇資料夾"}, "permission-check": {label: "檢查資料夾權限", caption: "如果下載時無法正常觸發授權且儲存錯誤,請點這裡", button: "授權", toast: {granted: {title: "權限檢查", message: "權限已授予"}, failed: {title: "權限檢查", message: "無法獲取可讀寫的資料夾權限"}}}}},
      aria2: {
       settings: {
        label: "下載器:Aria2",
        "disabled-text": "Aria2 並非目前使用的下載器",
        endpoint: {label: "Aria2 伺服器", caption: "伺服端連結,支援 http(s)/ws(s) 協定"},
        secret: {label: "金鑰", caption: "留空則不使用金鑰"},
        dir: {
         label: "下載位置",
         caption: "儲存下載檔案的資料夾路徑,留空則不指定",
         help: dedent`
                            如果您曾在 Aria2 伺服端設定過下載位置,此選項會覆蓋該設定
                            如需使用伺服端預設配置,請將此處留空
                            <span class="font-bold">請注意:如果您希望透過自訂檔名建立資料夾,則此項不可省略,否則資料夾將會在 Aria2 執行目錄而非下載目錄下建立</span>
                        `.replaceAll("\n", "<br>"),
        },
        interval: {label: "任務重新整理間隔(秒)", caption: "下載時,每隔多久重新整理一次任務進度"},
        "connection-test": {label: "測試連線", caption: "使用目前配置嘗試連線至 Aria2 伺服器", button: "測試", toast: {"not-enabled": {title: "未啟用 Aria2 下載器", message: "請先將下載器設定為 Aria2 再進行測試"}, "not-ready": {title: "未連接 Aria2 下載器", message: "Aria2 下載器尚未就緒,請檢查配置後測試"}, granted: {title: "連線成功", message: "已連線至 Aria2 伺服器,版本 {version}"}, failed: {title: "連線失敗", message: "無法連線,請檢查配置"}}},
       },
      },
     },
    },
    creator: {name: "創作者頁面", gui: {download: "下載", "select-all-pages": {summary: "全選所有頁", detail: "正在加載全部分頁數據..."}, "posts-selector": {header: "選擇要下載的貼文", buttons: {cancel: "取消", download: "下載"}}}},
    post: {name: "貼文頁面", gui: {download: "下載"}},
    debugging: {name: "偵錯", settings: {"group-log": "記錄檔", "save-logs": {label: "記錄記錄檔", caption: "將執行記錄儲存在指令碼儲存空間中以便匯出;非必要請勿開啟,記錄過多會導致速度變慢"}, "export-logs": {label: "匯出記錄檔", caption: "如需回報 Bug,請先開啟上方的「記錄記錄檔」並重新整理頁面觸發 Bug,最後點擊此處匯出", button: "匯出"}, "clear-logs": {label: "清空記錄檔", caption: "如果不再需要已記錄的內容,點擊此處刪除", button: "清空", cleared: {summary: "記錄檔清理", detail: "已刪除所有記錄,釋放 {size} 空間"}}}},
    self: {name: "關於", settings: {label: "關於", version: {label: "版本號"}, github: {label: "GitHub 儲存庫"}, greasyfork: {label: "Greasyfork 指令碼"}}},
   };
   const en = {
    components: {"posts-selector": {"selection-buttons": {"select-all-pages": "Select all pages", "select-all": "Select All", "clear-all-pages": "Clear all pages", clear: "Clear"}, list: {search: "Search"}, buttons: {"open-post": "Open Post Page", ok: "OK", cancel: "Cancel"}, "image-loading": "Loading..."}},
    api: {name: "Kemono API", settings: {"group-cache": "Cache", "api-cache-expires": {label: "API Cache Expiration", caption: "Unit: minutes; expired cache will be automatically cleared"}, "clear-api-cache": {label: "Clear API Cache", caption: "Ensure the latest data is fetched from the server", button: "Clear", cleared: {summary: "API Cache Cleared", detail: "Cleared {count} cache entries"}}}},
    settings: {name: "Settings", menu: {label: "Settings"}, gui: {title: "Settings", "tabpanel-placeholder": "Select a module to access its settings", "no-items-placeholder": "Settings list is empty", "reload-to-apply": "Changes to this setting will take effect after refreshing the page", "help-header": "Help - {name}", "mobile-dialog": {ok: "Save", cancel: "Cancel"}, "value-string": {switch: {true: "Enabled", false: "Disabled"}}}},
    downloader: {
     "show-ui": "Download Manager",
     name: "Downloader",
     gui: {title: "Downloader", "title-detail": "Task Detail - {name}", "title-detail-noname": "Task Detail", tabs: {init: "Initializing", queue: "Queued", paused: "Paused", ongoing: "Downloading", complete: "Completed", aborted: "Aborted", error: "Error"}, "task-component": {common: {caption: "Progress: {percentage}%, {finished} / {total}", unknown: "Unknown", init: "Initializing", queue: "Queued", ongoing: "Downloading", paused: "Paused", complete: "Completed", aborted: "Aborted", error: "Error", "title-nodata": "Waiting for task information", "caption-nodata": "service: {service}, creator id: {creatorId}, post id: {postId}", pause: "Pause", unpause: "Resume", retry: "Retry", more: "More", copied: "Copied", "confirm-delete-files": "Also delete downloaded files", "confirm-restart": {label: "Redownload", message: 'Are you sure you want to restart the download task <span class="text-primary">{name}</span>?<br>Current progress will be lost.', header: "Confirm Redownload", accept: "Restart", reject: "Cancel"}, "confirm-abort": {label: "Abort Download", message: 'Are you sure you want to abort the task <span class="text-primary">{name}</span>?<br>Resuming is not supported; restarting will start from the beginning.', header: "Confirm Abort", accept: "Abort", reject: "Cancel"}, "confirm-remove": {label: "Remove Task", message: 'Are you sure you want to remove the task <span class="text-primary">{name}</span>?<br>The task will be permanently removed.', header: "Confirm Removal", accept: "Remove", reject: "Cancel"}}, save: {caption: {ongoing: "Saving file...", complete: "File saved"}}, file: {caption: "Progress: {percentage}%, {finished} / {total}", copyLink: "Copy download link"}, post: {caption: "{total} files total, {finished} downloaded", "caption-aborted": ", {aborted} aborted"}, posts: {caption: "{total} posts total, {finished} downloaded", "caption-aborted": ", {aborted} aborted"}}},
     settings: {
      label: "Downloader",
      "feature-not-supported": "The current downloader ({provider}) does not support this setting",
      provider: {
       label: "Provider",
       caption: "Uses the browser default downloader by default. Others offer unique advantages but require compatibility testing.",
       options: {browser: "Browser Built-in", fsa: "File System API", aria2: "Aria2 RPC"},
       help: {
        instruction: "Different providers have different features. Compatibility tested for your browser/manager:",
        table: {corner: {provider: "Provider", support: "Features"}, provider: {browser: "Built-in", fsa: "File System API", aria2: "Aria2 RPC"}, support: {self: "Availability", pause: "Pause/Resume", "abort-files": "Delete files on abort", dir: "Create directory structure"}},
        questionable: "Compatibility is not 100% guaranteed; please test manually.",
        aria2NeedInstall: dedent`
                        Aria2 needs to be installed and configured manually.
                        Using a professional Aria2 GUI client is recommended.
                    `.replaceAll("\n", "<br>"),
        fsaMobile: "Mobile browsers may experience file I/O issues.",
       },
      },
      filename: {
       label: "Filenaming",
       caption: "Use templates for custom filenaming. Clear to restore defaults.",
       help: {
        header: dedent`
                        You can use slashes to create directory structures: "\" for Windows, "/" for Apple/Linux/Android.
                        If folders are not created despite using slashes, please try switching to another downloader, such as File System API or Aria2.
                        The following templates can be used in custom filenames (case-insensitive). Keep the curly braces (click to copy):
                    `.replaceAll("\n", "<br>"),
        markup: "Template",
        desc: "Description",
        templates: {PostID: "Post Content ID", CreatorID: "Creator ID", Service: 'Platform (e.g., "fanbox", "fantia")', P: "File index in current directory", Name: "Original filename on server", Base: 'Filename without extension (e.g., "abc" from "abc.jpg")', Ext: 'File extension (e.g., "jpg")', Title: "Post Title", Creator: "Creator Name", Year: "4-digit Year", Month: "2-digit Month", Date: "2-digit Date", Hour: "2-digit Hour", Minute: "2-digit Minute", Second: "2-digit Second", Timestamp: "Numeric Timestamp", Timetext: "Textual Timestamp"},
        footer: "Note: All time-related templates are based on the content publish date.",
       },
       toast: {copied: "Copied"},
      },
      "no-cover-file": "Do not download cover images",
      "download-original-image": "Download original images",
      "abort-files": {label: "Action on task abort", caption: "May not be supported by all providers", options: {prompt: "Always ask", delete: "Delete downloaded files", preserve: "Keep downloaded files"}},
      concurrent: {label: "Max Concurrent Downloads", caption: "Number of files to download simultaneously", "feature-not-supported": {browser: "The current provider ({provider}) does not support this setting", fsa: "The current provider ({provider}) does not support this setting", aria2: "Using {provider}? Adjust this via server config or Aria2 GUI."}},
      "text-content": {label: "Download post text content", caption: "Filename will be content.txt/content.html unless customized.", "feature-not-supported": {browser: "The current provider ({provider}) does not support this setting", fsa: "The current provider ({provider}) does not support this setting", aria2: "Not supported by {provider}"}, options: {none: "None", txt: "Download as .txt", html: "Download as .html"}},
      "auto-retry": {label: "Auto-Retry Attempts", caption: "Maximum number of automatic retries when a download task fails; set to 0 to disable auto-retry; set to a negative value for infinite retries"},
      group: "General",
     },
     provider: {
      browser: {settings: {label: "Provider: Browser Built-in"}},
      fsa: {settings: {label: "Provider: File System API", directory: {label: "Download Folder", caption: "Click to change save location", "not-selected": "No folder selected"}, "permission-check": {label: "Check Permissions", caption: "If authorization fails or errors occur, click here", button: "Authorize", toast: {granted: {title: "Permission Check", message: "Permission granted"}, failed: {title: "Permission Check", message: "Unable to obtain read/write access"}}}}},
      aria2: {
       settings: {
        label: "Provider: Aria2",
        "disabled-text": "Aria2 is not the current provider",
        endpoint: {label: "Aria2 Server", caption: "Server endpoint, supports http(s)/ws(s)"},
        secret: {label: "Secret", caption: "Leave blank if not used"},
        dir: {
         label: "Download Path",
         caption: "Path to store downloads; leave blank to use server default",
         help: dedent`
                            This overrides the server-side configuration.
                            Leave blank to use the default server path.
                            <span class="font-bold">Note: Required for custom filename subdirectories, otherwise they will be created in the Aria2 execution root.</span>
                        `.replaceAll("\n", "<br>"),
        },
        interval: {label: "Refresh Interval (sec)", caption: "How often to refresh task progress"},
        "connection-test": {label: "Test Connection", caption: "Try connecting to the Aria2 server with current settings", button: "Test", toast: {"not-enabled": {title: "Aria2 Not Enabled", message: "Set provider to Aria2 before testing"}, "not-ready": {title: "Aria2 Not Ready", message: "Downloader not initialized, check config"}, granted: {title: "Success", message: "Connected to Aria2 server, version {version}"}, failed: {title: "Failed", message: "Connection failed, check config"}}},
       },
      },
     },
    },
    creator: {name: "Creator Page", gui: {download: "Download", "select-all-pages": {summary: "Select all pages", detail: "Loading all pagination data..."}, "posts-selector": {header: "Select posts to download", buttons: {cancel: "Cancel", download: "Download"}}}},
    post: {name: "Post Page", gui: {download: "Download"}},
    debugging: {name: "Debug", settings: {"group-log": "Logs", "save-logs": {label: "Save Logs", caption: "Saves logs to script storage for export; may slow down the script if kept on indefinitely"}, "export-logs": {label: "Export Logs", caption: "To report a bug: enable logs, reproduce the bug, then click here to export", button: "Export"}, "clear-logs": {label: "Clear Logs", caption: "Delete recorded logs if no longer needed", button: "Clear", cleared: {summary: "Logs Cleared", detail: "All logs deleted, {size} freed"}}}},
    self: {name: "About", settings: {label: "About", version: {label: "Version"}, github: {label: "GitHub Repository"}, greasyfork: {label: "Greasyfork Script"}}},
   };
   const kebabToCamel = (str) => {
    return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
   };
   const makeI18nKeyObj = (root20, path = []) => {
    const baseObj = {};
    for (const key of Object.keys(root20)) {
     const newPath = path.concat(key);
     const value2 = root20[key];
     const camelKey = kebabToCamel(key);
     const mainKey = `$${camelKey}`;
     if (typeof value2 === "string") {
      const pathString = newPath.join(".");
      baseObj[mainKey] = pathString;
      if (camelKey !== key) {
       const originalKey = `$${key}`;
       baseObj[originalKey] = pathString;
      }
     } else if (value2 && typeof value2 === "object") {
      const nestedObj = makeI18nKeyObj(value2, newPath);
      baseObj[mainKey] = nestedObj;
      if (camelKey !== key) {
       const originalKey = `$${key}`;
       baseObj[originalKey] = nestedObj;
      }
     } else {
      const pathString = newPath.join(".");
      baseObj[mainKey] = pathString;
      if (camelKey !== key) {
       const originalKey = `$${key}`;
       baseObj[originalKey] = pathString;
      }
     }
    }
    const result = Object.assign(new String(path.join(".")), baseObj);
    return result;
   };
   const i18nKeys = makeI18nKeyObj(I18nResource);
   const i18n = createI18n({legacy: false, locale: navigator.language, fallbackLocale: "en", messages: {zh: zhHant, "zh-CN": I18nResource, "zh-Hans": I18nResource, en: en}});
   var Base = {
    _loadedStyleNames: new Set(),
    getLoadedStyleNames: function getLoadedStyleNames() {
     return this._loadedStyleNames;
    },
    isStyleNameLoaded: function isStyleNameLoaded(name) {
     return this._loadedStyleNames.has(name);
    },
    setLoadedStyleName: function setLoadedStyleName(name) {
     this._loadedStyleNames.add(name);
    },
    deleteLoadedStyleName: function deleteLoadedStyleName(name) {
     this._loadedStyleNames["delete"](name);
    },
    clearLoadedStyleNames: function clearLoadedStyleNames() {
     this._loadedStyleNames.clear();
    },
   };
   function _typeof$k(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$k =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$k(o)
    );
   }
   function _slicedToArray$2(r, e) {
    return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest$2();
   }
   function _nonIterableRest$2() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$w(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$w(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$w(r, a2) : void 0);
    }
   }
   function _arrayLikeToArray$w(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function _iterableToArrayLimit$2(r, l2) {
    var t2 = null == r ? null : ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (null != t2) {
     var e,
      n,
      i2,
      u,
      a2 = [],
      f2 = true,
      o = false;
     try {
      if (((i2 = (t2 = t2.call(r)).next), 0 === l2));
      else for (; !(f2 = (e = i2.call(t2)).done) && (a2.push(e.value), a2.length !== l2); f2 = true);
     } catch (r2) {
      ((o = true), (n = r2));
     } finally {
      try {
       if (!f2 && null != t2["return"] && ((u = t2["return"]()), Object(u) !== u)) return;
      } finally {
       if (o) throw n;
      }
     }
     return a2;
    }
   }
   function _arrayWithHoles$2(r) {
    if (Array.isArray(r)) return r;
   }
   function ownKeys$9(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$9(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$9(Object(t2), true).forEach(function (r2) {
         _defineProperty$j(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$9(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$j(e, r, t2) {
    return ((r = _toPropertyKey$j(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$j(t2) {
    var i2 = _toPrimitive$j(t2, "string");
    return "symbol" == _typeof$k(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$j(t2, r) {
    if ("object" != _typeof$k(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$k(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var BaseDirective = {
    _getMeta: function _getMeta() {
     return [i(arguments.length <= 0 ? void 0 : arguments[0]) ? void 0 : arguments.length <= 0 ? void 0 : arguments[0], m$1(i(arguments.length <= 0 ? void 0 : arguments[0]) ? (arguments.length <= 0 ? void 0 : arguments[0]) : arguments.length <= 1 ? void 0 : arguments[1])];
    },
    _getConfig: function _getConfig(binding, vnode) {
     var _ref, _binding$instance, _vnode$ctx;
     return (_ref = (binding === null || binding === void 0 || (_binding$instance = binding.instance) === null || _binding$instance === void 0 ? void 0 : _binding$instance.$primevue) || (vnode === null || vnode === void 0 || (_vnode$ctx = vnode.ctx) === null || _vnode$ctx === void 0 || (_vnode$ctx = _vnode$ctx.appContext) === null || _vnode$ctx === void 0 || (_vnode$ctx = _vnode$ctx.config) === null || _vnode$ctx === void 0 || (_vnode$ctx = _vnode$ctx.globalProperties) === null || _vnode$ctx === void 0 ? void 0 : _vnode$ctx.$primevue)) === null || _ref === void 0 ? void 0 : _ref.config;
    },
    _getOptionValue: F$2,
    _getPTValue: function _getPTValue() {
     var _instance$binding, _instance$$primevueCo;
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var obj = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     var key = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
     var params = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
     var searchInDefaultPT = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : true;
     var getValue = function getValue2() {
      var value2 = BaseDirective._getOptionValue.apply(BaseDirective, arguments);
      return a(value2) || C$3(value2) ? {class: value2} : value2;
     };
     var _ref2 = ((_instance$binding = instance.binding) === null || _instance$binding === void 0 || (_instance$binding = _instance$binding.value) === null || _instance$binding === void 0 ? void 0 : _instance$binding.ptOptions) || ((_instance$$primevueCo = instance.$primevueConfig) === null || _instance$$primevueCo === void 0 ? void 0 : _instance$$primevueCo.ptOptions) || {},
      _ref2$mergeSections = _ref2.mergeSections,
      mergeSections = _ref2$mergeSections === void 0 ? true : _ref2$mergeSections,
      _ref2$mergeProps = _ref2.mergeProps,
      useMergeProps = _ref2$mergeProps === void 0 ? false : _ref2$mergeProps;
     var global2 = searchInDefaultPT ? BaseDirective._useDefaultPT(instance, instance.defaultPT(), getValue, key, params) : void 0;
     var self2 = BaseDirective._usePT(instance, BaseDirective._getPT(obj, instance.$name), getValue, key, _objectSpread$9(_objectSpread$9({}, params), {}, {global: global2 || {}}));
     var datasets = BaseDirective._getPTDatasets(instance, key);
     return mergeSections || (!mergeSections && self2) ? (useMergeProps ? BaseDirective._mergeProps(instance, useMergeProps, global2, self2, datasets) : _objectSpread$9(_objectSpread$9(_objectSpread$9({}, global2), self2), datasets)) : _objectSpread$9(_objectSpread$9({}, self2), datasets);
    },
    _getPTDatasets: function _getPTDatasets() {
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
     var datasetPrefix = "data-pc-";
     return _objectSpread$9(_objectSpread$9({}, key === "root" && _defineProperty$j({}, "".concat(datasetPrefix, "name"), g$1(instance.$name))), {}, _defineProperty$j({}, "".concat(datasetPrefix, "section"), g$1(key)));
    },
    _getPT: function _getPT(pt2) {
     var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
     var callback = arguments.length > 2 ? arguments[2] : void 0;
     var getValue = function getValue2(value2) {
      var _computedValue$_key;
      var computedValue = callback ? callback(value2) : value2;
      var _key = g$1(key);
      return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
     };
     return pt2 && Object.hasOwn(pt2, "_usept") ? {_usept: pt2["_usept"], originalValue: getValue(pt2.originalValue), value: getValue(pt2.value)} : getValue(pt2);
    },
    _usePT: function _usePT() {
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var pt2 = arguments.length > 1 ? arguments[1] : void 0;
     var callback = arguments.length > 2 ? arguments[2] : void 0;
     var key = arguments.length > 3 ? arguments[3] : void 0;
     var params = arguments.length > 4 ? arguments[4] : void 0;
     var fn = function fn2(value3) {
      return callback(value3, key, params);
     };
     if (pt2 && Object.hasOwn(pt2, "_usept")) {
      var _instance$$primevueCo2;
      var _ref4 = pt2["_usept"] || ((_instance$$primevueCo2 = instance.$primevueConfig) === null || _instance$$primevueCo2 === void 0 ? void 0 : _instance$$primevueCo2.ptOptions) || {},
       _ref4$mergeSections = _ref4.mergeSections,
       mergeSections = _ref4$mergeSections === void 0 ? true : _ref4$mergeSections,
       _ref4$mergeProps = _ref4.mergeProps,
       useMergeProps = _ref4$mergeProps === void 0 ? false : _ref4$mergeProps;
      var originalValue = fn(pt2.originalValue);
      var value2 = fn(pt2.value);
      if (originalValue === void 0 && value2 === void 0) return void 0;
      else if (a(value2)) return value2;
      else if (a(originalValue)) return originalValue;
      return mergeSections || (!mergeSections && value2) ? (useMergeProps ? BaseDirective._mergeProps(instance, useMergeProps, originalValue, value2) : _objectSpread$9(_objectSpread$9({}, originalValue), value2)) : value2;
     }
     return fn(pt2);
    },
    _useDefaultPT: function _useDefaultPT() {
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var defaultPT2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     var callback = arguments.length > 2 ? arguments[2] : void 0;
     var key = arguments.length > 3 ? arguments[3] : void 0;
     var params = arguments.length > 4 ? arguments[4] : void 0;
     return BaseDirective._usePT(instance, defaultPT2, callback, key, params);
    },
    _loadStyles: function _loadStyles() {
     var _config$csp;
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var binding = arguments.length > 1 ? arguments[1] : void 0;
     var vnode = arguments.length > 2 ? arguments[2] : void 0;
     var config = BaseDirective._getConfig(binding, vnode);
     var useStyleOptions = {nonce: config === null || config === void 0 || (_config$csp = config.csp) === null || _config$csp === void 0 ? void 0 : _config$csp.nonce};
     BaseDirective._loadCoreStyles(instance, useStyleOptions);
     BaseDirective._loadThemeStyles(instance, useStyleOptions);
     BaseDirective._loadScopedThemeStyles(instance, useStyleOptions);
     BaseDirective._removeThemeListeners(instance);
     instance.$loadStyles = function () {
      return BaseDirective._loadThemeStyles(instance, useStyleOptions);
     };
     BaseDirective._themeChangeListener(instance.$loadStyles);
    },
    _loadCoreStyles: function _loadCoreStyles() {
     var _instance$$style, _instance$$style2;
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var useStyleOptions = arguments.length > 1 ? arguments[1] : void 0;
     if (!Base.isStyleNameLoaded((_instance$$style = instance.$style) === null || _instance$$style === void 0 ? void 0 : _instance$$style.name) && (_instance$$style2 = instance.$style) !== null && _instance$$style2 !== void 0 && _instance$$style2.name) {
      var _instance$$style3;
      BaseStyle.loadCSS(useStyleOptions);
      (_instance$$style3 = instance.$style) === null || _instance$$style3 === void 0 || _instance$$style3.loadCSS(useStyleOptions);
      Base.setLoadedStyleName(instance.$style.name);
     }
    },
    _loadThemeStyles: function _loadThemeStyles() {
     var _instance$theme, _instance$$style5, _instance$$style6;
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var useStyleOptions = arguments.length > 1 ? arguments[1] : void 0;
     if ((instance !== null && instance !== void 0 && instance.isUnstyled()) || (instance === null || instance === void 0 || (_instance$theme = instance.theme) === null || _instance$theme === void 0 ? void 0 : _instance$theme.call(instance)) === "none") return;
     if (!S.isStyleNameLoaded("common")) {
      var _instance$$style4, _instance$$style4$get;
      var _ref5 = ((_instance$$style4 = instance.$style) === null || _instance$$style4 === void 0 || (_instance$$style4$get = _instance$$style4.getCommonTheme) === null || _instance$$style4$get === void 0 ? void 0 : _instance$$style4$get.call(_instance$$style4)) || {},
       primitive = _ref5.primitive,
       semantic = _ref5.semantic,
       global2 = _ref5.global,
       style2 = _ref5.style;
      BaseStyle.load(primitive === null || primitive === void 0 ? void 0 : primitive.css, _objectSpread$9({name: "primitive-variables"}, useStyleOptions));
      BaseStyle.load(semantic === null || semantic === void 0 ? void 0 : semantic.css, _objectSpread$9({name: "semantic-variables"}, useStyleOptions));
      BaseStyle.load(global2 === null || global2 === void 0 ? void 0 : global2.css, _objectSpread$9({name: "global-variables"}, useStyleOptions));
      BaseStyle.loadStyle(_objectSpread$9({name: "global-style"}, useStyleOptions), style2);
      S.setLoadedStyleName("common");
     }
     if (!S.isStyleNameLoaded((_instance$$style5 = instance.$style) === null || _instance$$style5 === void 0 ? void 0 : _instance$$style5.name) && (_instance$$style6 = instance.$style) !== null && _instance$$style6 !== void 0 && _instance$$style6.name) {
      var _instance$$style7, _instance$$style7$get, _instance$$style8, _instance$$style9;
      var _ref6 = ((_instance$$style7 = instance.$style) === null || _instance$$style7 === void 0 || (_instance$$style7$get = _instance$$style7.getDirectiveTheme) === null || _instance$$style7$get === void 0 ? void 0 : _instance$$style7$get.call(_instance$$style7)) || {},
       css3 = _ref6.css,
       _style = _ref6.style;
      (_instance$$style8 = instance.$style) === null || _instance$$style8 === void 0 || _instance$$style8.load(css3, _objectSpread$9({name: "".concat(instance.$style.name, "-variables")}, useStyleOptions));
      (_instance$$style9 = instance.$style) === null || _instance$$style9 === void 0 || _instance$$style9.loadStyle(_objectSpread$9({name: "".concat(instance.$style.name, "-style")}, useStyleOptions), _style);
      S.setLoadedStyleName(instance.$style.name);
     }
     if (!S.isStyleNameLoaded("layer-order")) {
      var _instance$$style0, _instance$$style0$get;
      var layerOrder = (_instance$$style0 = instance.$style) === null || _instance$$style0 === void 0 || (_instance$$style0$get = _instance$$style0.getLayerOrderThemeCSS) === null || _instance$$style0$get === void 0 ? void 0 : _instance$$style0$get.call(_instance$$style0);
      BaseStyle.load(layerOrder, _objectSpread$9({name: "layer-order", first: true}, useStyleOptions));
      S.setLoadedStyleName("layer-order");
     }
    },
    _loadScopedThemeStyles: function _loadScopedThemeStyles() {
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     var useStyleOptions = arguments.length > 1 ? arguments[1] : void 0;
     var preset = instance.preset();
     if (preset && instance.$attrSelector) {
      var _instance$$style1, _instance$$style1$get, _instance$$style10;
      var _ref7 = ((_instance$$style1 = instance.$style) === null || _instance$$style1 === void 0 || (_instance$$style1$get = _instance$$style1.getPresetTheme) === null || _instance$$style1$get === void 0 ? void 0 : _instance$$style1$get.call(_instance$$style1, preset, "[".concat(instance.$attrSelector, "]"))) || {},
       css3 = _ref7.css;
      var scopedStyle = (_instance$$style10 = instance.$style) === null || _instance$$style10 === void 0 ? void 0 : _instance$$style10.load(css3, _objectSpread$9({name: "".concat(instance.$attrSelector, "-").concat(instance.$style.name)}, useStyleOptions));
      instance.scopedStyleEl = scopedStyle.el;
     }
    },
    _themeChangeListener: function _themeChangeListener() {
     var callback = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function () {};
     Base.clearLoadedStyleNames();
     N.on("theme:change", callback);
    },
    _removeThemeListeners: function _removeThemeListeners() {
     var instance = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
     N.off("theme:change", instance.$loadStyles);
     instance.$loadStyles = void 0;
    },
    _hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
     var _binding$value, _config$pt;
     var name = "on".concat(ne$1(hookName));
     var config = BaseDirective._getConfig(binding, vnode);
     var instance = el === null || el === void 0 ? void 0 : el.$instance;
     var selfHook = BaseDirective._usePT(instance, BaseDirective._getPT(binding === null || binding === void 0 || (_binding$value = binding.value) === null || _binding$value === void 0 ? void 0 : _binding$value.pt, directiveName), BaseDirective._getOptionValue, "hooks.".concat(name));
     var defaultHook = BaseDirective._useDefaultPT(instance, config === null || config === void 0 || (_config$pt = config.pt) === null || _config$pt === void 0 || (_config$pt = _config$pt.directives) === null || _config$pt === void 0 ? void 0 : _config$pt[directiveName], BaseDirective._getOptionValue, "hooks.".concat(name));
     var options3 = {el, binding, vnode, prevVnode};
     selfHook === null || selfHook === void 0 || selfHook(instance, options3);
     defaultHook === null || defaultHook === void 0 || defaultHook(instance, options3);
    },
    _mergeProps: function _mergeProps() {
     var fn = arguments.length > 1 ? arguments[1] : void 0;
     for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2; _key2 < _len; _key2++) {
      args[_key2 - 2] = arguments[_key2];
     }
     return c$1(fn) ? fn.apply(void 0, args) : mergeProps.apply(void 0, args);
    },
    _extend: function _extend(name) {
     var options3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
     var handleHook = function handleHook2(hook, el, binding, vnode, prevVnode) {
      var _el$$pd, _el$$instance$hook, _el$$instance, _el$$pd2;
      el._$instances = el._$instances || {};
      var config = BaseDirective._getConfig(binding, vnode);
      var $prevInstance = el._$instances[name] || {};
      var $options = l$1($prevInstance) ? _objectSpread$9(_objectSpread$9({}, options3), options3 === null || options3 === void 0 ? void 0 : options3.methods) : {};
      el._$instances[name] = _objectSpread$9(
       _objectSpread$9({}, $prevInstance),
       {},
       {
        $name: name,
        $host: el,
        $binding: binding,
        $modifiers: binding === null || binding === void 0 ? void 0 : binding.modifiers,
        $value: binding === null || binding === void 0 ? void 0 : binding.value,
        $el: $prevInstance["$el"] || el || void 0,
        $style: _objectSpread$9({classes: void 0, inlineStyles: void 0, load: function load2() {}, loadCSS: function loadCSS2() {}, loadStyle: function loadStyle2() {}}, options3 === null || options3 === void 0 ? void 0 : options3.style),
        $primevueConfig: config,
        $attrSelector: (_el$$pd = el.$pd) === null || _el$$pd === void 0 || (_el$$pd = _el$$pd[name]) === null || _el$$pd === void 0 ? void 0 : _el$$pd.attrSelector,
        defaultPT: function defaultPT2() {
         return BaseDirective._getPT(config === null || config === void 0 ? void 0 : config.pt, void 0, function (value2) {
          var _value$directives;
          return value2 === null || value2 === void 0 || (_value$directives = value2.directives) === null || _value$directives === void 0 ? void 0 : _value$directives[name];
         });
        },
        isUnstyled: function isUnstyled2() {
         var _el$_$instances$name, _el$_$instances$name2;
         return ((_el$_$instances$name = el._$instances[name]) === null || _el$_$instances$name === void 0 || (_el$_$instances$name = _el$_$instances$name.$binding) === null || _el$_$instances$name === void 0 || (_el$_$instances$name = _el$_$instances$name.value) === null || _el$_$instances$name === void 0 ? void 0 : _el$_$instances$name.unstyled) !== void 0 ? ((_el$_$instances$name2 = el._$instances[name]) === null || _el$_$instances$name2 === void 0 || (_el$_$instances$name2 = _el$_$instances$name2.$binding) === null || _el$_$instances$name2 === void 0 || (_el$_$instances$name2 = _el$_$instances$name2.value) === null || _el$_$instances$name2 === void 0 ? void 0 : _el$_$instances$name2.unstyled) : config === null || config === void 0 ? void 0 : config.unstyled;
        },
        theme: function theme() {
         var _el$_$instances$name3;
         return (_el$_$instances$name3 = el._$instances[name]) === null || _el$_$instances$name3 === void 0 || (_el$_$instances$name3 = _el$_$instances$name3.$primevueConfig) === null || _el$_$instances$name3 === void 0 ? void 0 : _el$_$instances$name3.theme;
        },
        preset: function preset() {
         var _el$_$instances$name4;
         return (_el$_$instances$name4 = el._$instances[name]) === null || _el$_$instances$name4 === void 0 || (_el$_$instances$name4 = _el$_$instances$name4.$binding) === null || _el$_$instances$name4 === void 0 || (_el$_$instances$name4 = _el$_$instances$name4.value) === null || _el$_$instances$name4 === void 0 ? void 0 : _el$_$instances$name4.dt;
        },
        ptm: function ptm2() {
         var _el$_$instances$name5;
         var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
         var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
         return BaseDirective._getPTValue(el._$instances[name], (_el$_$instances$name5 = el._$instances[name]) === null || _el$_$instances$name5 === void 0 || (_el$_$instances$name5 = _el$_$instances$name5.$binding) === null || _el$_$instances$name5 === void 0 || (_el$_$instances$name5 = _el$_$instances$name5.value) === null || _el$_$instances$name5 === void 0 ? void 0 : _el$_$instances$name5.pt, key, _objectSpread$9({}, params));
        },
        ptmo: function ptmo2() {
         var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
         var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
         var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
         return BaseDirective._getPTValue(el._$instances[name], obj, key, params, false);
        },
        cx: function cx2() {
         var _el$_$instances$name6, _el$_$instances$name7;
         var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
         var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
         return !((_el$_$instances$name6 = el._$instances[name]) !== null && _el$_$instances$name6 !== void 0 && _el$_$instances$name6.isUnstyled()) ? BaseDirective._getOptionValue((_el$_$instances$name7 = el._$instances[name]) === null || _el$_$instances$name7 === void 0 || (_el$_$instances$name7 = _el$_$instances$name7.$style) === null || _el$_$instances$name7 === void 0 ? void 0 : _el$_$instances$name7.classes, key, _objectSpread$9({}, params)) : void 0;
        },
        sx: function sx2() {
         var _el$_$instances$name8;
         var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
         var when = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
         var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
         return when ? BaseDirective._getOptionValue((_el$_$instances$name8 = el._$instances[name]) === null || _el$_$instances$name8 === void 0 || (_el$_$instances$name8 = _el$_$instances$name8.$style) === null || _el$_$instances$name8 === void 0 ? void 0 : _el$_$instances$name8.inlineStyles, key, _objectSpread$9({}, params)) : void 0;
        },
       },
       $options,
      );
      el.$instance = el._$instances[name];
      (_el$$instance$hook = (_el$$instance = el.$instance)[hook]) === null || _el$$instance$hook === void 0 || _el$$instance$hook.call(_el$$instance, el, binding, vnode, prevVnode);
      el["$".concat(name)] = el.$instance;
      BaseDirective._hook(name, hook, el, binding, vnode, prevVnode);
      el.$pd || (el.$pd = {});
      el.$pd[name] = _objectSpread$9(_objectSpread$9({}, (_el$$pd2 = el.$pd) === null || _el$$pd2 === void 0 ? void 0 : _el$$pd2[name]), {}, {name, instance: el._$instances[name]});
     };
     var handleWatchers = function handleWatchers2(el) {
      var _watchers$config2, _watchers$configRipp2, _instance$$primevueCo3;
      var instance = el._$instances[name];
      var watchers = instance === null || instance === void 0 ? void 0 : instance.watch;
      var handleWatchConfig = function handleWatchConfig2(_ref8) {
       var _watchers$config;
       var newValue = _ref8.newValue,
        oldValue = _ref8.oldValue;
       return watchers === null || watchers === void 0 || (_watchers$config = watchers["config"]) === null || _watchers$config === void 0 ? void 0 : _watchers$config.call(instance, newValue, oldValue);
      };
      var handleWatchConfigRipple = function handleWatchConfigRipple2(_ref9) {
       var _watchers$configRipp;
       var newValue = _ref9.newValue,
        oldValue = _ref9.oldValue;
       return watchers === null || watchers === void 0 || (_watchers$configRipp = watchers["config.ripple"]) === null || _watchers$configRipp === void 0 ? void 0 : _watchers$configRipp.call(instance, newValue, oldValue);
      };
      instance.$watchersCallback = {config: handleWatchConfig, "config.ripple": handleWatchConfigRipple};
      watchers === null || watchers === void 0 || (_watchers$config2 = watchers["config"]) === null || _watchers$config2 === void 0 || _watchers$config2.call(instance, instance === null || instance === void 0 ? void 0 : instance.$primevueConfig);
      PrimeVueService.on("config:change", handleWatchConfig);
      watchers === null || watchers === void 0 || (_watchers$configRipp2 = watchers["config.ripple"]) === null || _watchers$configRipp2 === void 0 || _watchers$configRipp2.call(instance, instance === null || instance === void 0 || (_instance$$primevueCo3 = instance.$primevueConfig) === null || _instance$$primevueCo3 === void 0 ? void 0 : _instance$$primevueCo3.ripple);
      PrimeVueService.on("config:ripple:change", handleWatchConfigRipple);
     };
     var stopWatchers2 = function stopWatchers3(el) {
      var watchers = el._$instances[name].$watchersCallback;
      if (watchers) {
       PrimeVueService.off("config:change", watchers.config);
       PrimeVueService.off("config:ripple:change", watchers["config.ripple"]);
       el._$instances[name].$watchersCallback = void 0;
      }
     };
     return {
      created: function created3(el, binding, vnode, prevVnode) {
       el.$pd || (el.$pd = {});
       el.$pd[name] = {name, attrSelector: s$1("pd")};
       handleHook("created", el, binding, vnode, prevVnode);
      },
      beforeMount: function beforeMount3(el, binding, vnode, prevVnode) {
       var _el$$pd$name;
       BaseDirective._loadStyles((_el$$pd$name = el.$pd[name]) === null || _el$$pd$name === void 0 ? void 0 : _el$$pd$name.instance, binding, vnode);
       handleHook("beforeMount", el, binding, vnode, prevVnode);
       handleWatchers(el);
      },
      mounted: function mounted17(el, binding, vnode, prevVnode) {
       var _el$$pd$name2;
       BaseDirective._loadStyles((_el$$pd$name2 = el.$pd[name]) === null || _el$$pd$name2 === void 0 ? void 0 : _el$$pd$name2.instance, binding, vnode);
       handleHook("mounted", el, binding, vnode, prevVnode);
      },
      beforeUpdate: function beforeUpdate2(el, binding, vnode, prevVnode) {
       handleHook("beforeUpdate", el, binding, vnode, prevVnode);
      },
      updated: function updated7(el, binding, vnode, prevVnode) {
       var _el$$pd$name3;
       BaseDirective._loadStyles((_el$$pd$name3 = el.$pd[name]) === null || _el$$pd$name3 === void 0 ? void 0 : _el$$pd$name3.instance, binding, vnode);
       handleHook("updated", el, binding, vnode, prevVnode);
      },
      beforeUnmount: function beforeUnmount10(el, binding, vnode, prevVnode) {
       var _el$$pd$name4;
       stopWatchers2(el);
       BaseDirective._removeThemeListeners((_el$$pd$name4 = el.$pd[name]) === null || _el$$pd$name4 === void 0 ? void 0 : _el$$pd$name4.instance);
       handleHook("beforeUnmount", el, binding, vnode, prevVnode);
      },
      unmounted: function unmounted5(el, binding, vnode, prevVnode) {
       var _el$$pd$name5;
       (_el$$pd$name5 = el.$pd[name]) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.instance) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.scopedStyleEl) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.value) === null || _el$$pd$name5 === void 0 || _el$$pd$name5.remove();
       handleHook("unmounted", el, binding, vnode, prevVnode);
      },
     };
    },
    extend: function extend2() {
     var _BaseDirective$_getMe = BaseDirective._getMeta.apply(BaseDirective, arguments),
      _BaseDirective$_getMe2 = _slicedToArray$2(_BaseDirective$_getMe, 2),
      name = _BaseDirective$_getMe2[0],
      options3 = _BaseDirective$_getMe2[1];
     return _objectSpread$9(
      {
       extend: function extend3() {
        var _BaseDirective$_getMe3 = BaseDirective._getMeta.apply(BaseDirective, arguments),
         _BaseDirective$_getMe4 = _slicedToArray$2(_BaseDirective$_getMe3, 2),
         _name = _BaseDirective$_getMe4[0],
         _options = _BaseDirective$_getMe4[1];
        return BaseDirective.extend(_name, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, options3), options3 === null || options3 === void 0 ? void 0 : options3.methods), _options));
       },
      },
      BaseDirective._extend(name, options3),
     );
    },
   };
   var style$l = '\\n .p-ink{background:dt("ripple.background");border-radius:100%;display:block;pointer-events:none;position:absolute;transform:scale(0)}.p-ink-active{animation:ripple .4s linear}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}';
   var classes$o = {root: "p-ink"};
   var RippleStyle = BaseStyle.extend({name: "ripple-directive", style: style$l, classes: classes$o});
   var BaseRipple = BaseDirective.extend({style: RippleStyle});
   function _typeof$j(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$j =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$j(o)
    );
   }
   function _toConsumableArray$t(r) {
    return _arrayWithoutHoles$t(r) || _iterableToArray$u(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread$t();
   }
   function _nonIterableSpread$t() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$v(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$v(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$v(r, a2) : void 0);
    }
   }
   function _iterableToArray$u(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$t(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$v(r);
   }
   function _arrayLikeToArray$v(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function _defineProperty$i(e, r, t2) {
    return ((r = _toPropertyKey$i(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$i(t2) {
    var i2 = _toPrimitive$i(t2, "string");
    return "symbol" == _typeof$j(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$i(t2, r) {
    if ("object" != _typeof$j(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$j(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var Ripple = BaseRipple.extend("ripple", {
    watch: {
     "config.ripple": function configRipple(newValue) {
      if (newValue) {
       this.createRipple(this.$host);
       this.bindEvents(this.$host);
       this.$host.setAttribute("data-pd-ripple", true);
       this.$host.style["overflow"] = "hidden";
       this.$host.style["position"] = "relative";
      } else {
       this.remove(this.$host);
       this.$host.removeAttribute("data-pd-ripple");
      }
     },
    },
    unmounted: function unmounted(el) {
     this.remove(el);
    },
    timeout: void 0,
    methods: {
     bindEvents: function bindEvents(el) {
      el.addEventListener("mousedown", this.onMouseDown.bind(this));
     },
     unbindEvents: function unbindEvents(el) {
      el.removeEventListener("mousedown", this.onMouseDown.bind(this));
     },
     createRipple: function createRipple(el) {
      var ink = this.getInk(el);
      if (!ink) {
       ink = U$1("span", _defineProperty$i(_defineProperty$i({role: "presentation", "aria-hidden": true, "data-p-ink": true, "data-p-ink-active": false, class: !this.isUnstyled() && this.cx("root"), onAnimationEnd: this.onAnimationEnd.bind(this)}, this.$attrSelector, ""), "p-bind", this.ptm("root")));
       el.appendChild(ink);
       this.$el = ink;
      }
     },
     remove: function remove(el) {
      var ink = this.getInk(el);
      if (ink) {
       this.$host.style["overflow"] = "";
       this.$host.style["position"] = "";
       this.unbindEvents(el);
       ink.removeEventListener("animationend", this.onAnimationEnd);
       ink.remove();
      }
     },
     onMouseDown: function onMouseDown(event) {
      var _this = this;
      var target2 = event.currentTarget;
      var ink = this.getInk(target2);
      if (!ink || getComputedStyle(ink, null).display === "none") {
       return;
      }
      !this.isUnstyled() && P$1(ink, "p-ink-active");
      ink.setAttribute("data-p-ink-active", "false");
      if (!Tt(ink) && !Rt(ink)) {
       var d2 = Math.max(v$1(target2), C$2(target2));
       ink.style.height = d2 + "px";
       ink.style.width = d2 + "px";
      }
      var offset = K(target2);
      var x2 = event.pageX - offset.left + document.body.scrollTop - Rt(ink) / 2;
      var y2 = event.pageY - offset.top + document.body.scrollLeft - Tt(ink) / 2;
      ink.style.top = y2 + "px";
      ink.style.left = x2 + "px";
      !this.isUnstyled() && W$1(ink, "p-ink-active");
      ink.setAttribute("data-p-ink-active", "true");
      this.timeout = setTimeout(function () {
       if (ink) {
        !_this.isUnstyled() && P$1(ink, "p-ink-active");
        ink.setAttribute("data-p-ink-active", "false");
       }
      }, 401);
     },
     onAnimationEnd: function onAnimationEnd(event) {
      if (this.timeout) {
       clearTimeout(this.timeout);
      }
      !this.isUnstyled() && P$1(event.currentTarget, "p-ink-active");
      event.currentTarget.setAttribute("data-p-ink-active", "false");
     },
     getInk: function getInk(el) {
      return el && el.children
       ? _toConsumableArray$t(el.children).find(function (child) {
          return Q$1(child, "data-pc-name") === "ripple";
         })
       : void 0;
     },
    },
   });
   var ToastEventBus = s$2();
   var PrimeVueToastSymbol = Symbol();
   function useToast() {
    var PrimeVueToast = inject(PrimeVueToastSymbol);
    if (!PrimeVueToast) {
     throw new Error("No PrimeVue Toast provided!");
    }
    return PrimeVueToast;
   }
   var ToastService = {
    install: function install2(app2) {
     var ToastService2 = {
      add: function add2(message3) {
       ToastEventBus.emit("add", message3);
      },
      remove: function remove3(message3) {
       ToastEventBus.emit("remove", message3);
      },
      removeGroup: function removeGroup(group) {
       ToastEventBus.emit("remove-group", group);
      },
      removeAllGroups: function removeAllGroups() {
       ToastEventBus.emit("remove-all-groups");
      },
     };
     app2.config.globalProperties.$toast = ToastService2;
     app2.provide(PrimeVueToastSymbol, ToastService2);
    },
   };
   var ConfirmationEventBus = s$2();
   var PrimeVueConfirmSymbol = Symbol();
   function useConfirm() {
    var PrimeVueConfirm = inject(PrimeVueConfirmSymbol);
    if (!PrimeVueConfirm) {
     throw new Error("No PrimeVue Confirmation provided!");
    }
    return PrimeVueConfirm;
   }
   var ConfirmationService = {
    install: function install3(app2) {
     var ConfirmationService2 = {
      require: function require2(options3) {
       ConfirmationEventBus.emit("confirm", options3);
      },
      close: function close3() {
       ConfirmationEventBus.emit("close");
      },
     };
     app2.config.globalProperties.$confirm = ConfirmationService2;
     app2.provide(PrimeVueConfirmSymbol, ConfirmationService2);
    },
   };
   const defaultOptions$1 = {host: null, init: {mode: "open"}, props: {}, options: {}, provides: {}, stopPropagation: true};
   document.addEventListener = function (...args) {
    const [type, listener, options3] = args;
    if (!listener) return;
    const wrappedListener = function (event) {
     const handler12 = isEventListener(listener) ? listener : listener.handleEvent;
     const realTarget = event.composedPath()[0] || event.target;
     const needsProxy = event.target && "shadowRoot" in event.target && event.target.shadowRoot && event.target !== realTarget;
     if (!needsProxy) return handler12.call(this, event);
     const eventProxy = new Proxy(event, {
      get(target2, prop, receiver) {
       if (prop === "target") {
        return target2.composedPath()[0] || target2.target;
       }
       if (typeof target2[prop] === "function") {
        return new Proxy(target2[prop], {
         apply(target22, thisArg, argArray) {
          if (thisArg === receiver) {
           return target22.apply(event, argArray);
          }
          return target22.apply(thisArg, argArray);
         },
        });
       }
       return target2[prop];
      },
     });
     return handler12.call(this, eventProxy);
    };
    return EventTarget.prototype.addEventListener.call(this, type, wrappedListener, options3);
    function isEventListener(listener2) {
     return !("handleEvent" in listener2);
    }
   };
   let styling = __vitePreload(() => module.import("./styling-Bv6iViIW-BGyyPvry.js"), void 0);
   function createShadowApp(app2, options3 = defaultOptions$1) {
    const {host, init: init2, props: props2, provides, stopPropagation} = Object.assign({}, defaultOptions$1, options3);
    const hostElm = host instanceof HTMLElement ? host : document.body.appendChild($CrE("div", options3.options?.host ?? {}));
    typeof host === "string" && hostElm.setAttribute("id", host);
    const shadow = hostElm.attachShadow(init2);
    styling.then((styling2) => styling2.styling.applyTo(shadow));
    const appElm = $CrE("div", options3.options?.app ?? {});
    shadow.append(appElm);
    appElm.classList.add("text-base");
    appElm.classList.add("scrollbar-light", "dark:scrollbar-dark");
    const events = Array.isArray(stopPropagation) ? stopPropagation : ["click", "dblclick", "auxclick", "mousedown", "mousewheel", "wheel", "touchend", "pointerdown", "pointerup", "pointerenter", "pointerleave", "pointermove", "pointerout", "pointerover", "contextmenu", "scroll", "scrollend", "keydown", "keyup", "keypress", "input", "copy", "paste", "cut", "compositionstart", "compositionupdate", "compositionend", "drag", "dragstart", "dragend", "dragenter", "dragleave", "dragover", "drop"];
    stopPropagation && events.forEach((name) => appElm.addEventListener(name, (e) => e.stopPropagation(), {passive: true}));
    let expose = null;
    const appInstance = createApp({render: () => (expose = h$2(app2, props2))})
     .use(i18n)
     .use(PrimeVue, {unstyled: true, ripple: true})
     .use(ConfirmationService)
     .use(ToastService)
     .directive("ripple", Ripple);
    Reflect.ownKeys(provides).forEach((key) => appInstance.provide(key, provides[key]));
    appInstance.mount(appElm);
    const rootComponent = reactive(Object.assign({}, expose.component.exposed));
    return {host: hostElm, app: appInstance, root: rootComponent};
   }
   function getLayoutRef(ratio = 1) {
    const layout = ref("vertical");
    let animationFrameId = null;
    const updateLayout = () => {
     layout.value = window.innerWidth / window.innerHeight > ratio ? "horizontal" : "vertical";
    };
    const handleResize = () => {
     if (animationFrameId !== null) {
      cancelAnimationFrame(animationFrameId);
     }
     animationFrameId = requestAnimationFrame(updateLayout);
    };
    updateLayout();
    window.addEventListener("resize", handleResize);
    return layout;
   }
   function stringifyBytes(bytes) {
    const units = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
    let value2 = bytes;
    let unitIndex = 0;
    while (value2 >= 1024 && unitIndex < units.length - 1) {
     value2 /= 1024;
     unitIndex++;
    }
    const formattedValue2 = value2 % 1 === 0 ? value2.toString() : value2.toFixed(2);
    return `${formattedValue2}${units[unitIndex]}`;
   }
   function extractText(html) {
    return $CrE("div", {props: {innerHTML: html}}).innerText;
   }
   function getViewport() {
    const viewport = ref({height: window.innerHeight, width: window.innerWidth});
    window.addEventListener("resize", () => {
     viewport.value.height = window.innerHeight;
     viewport.value.width = window.innerWidth;
    });
    return viewport;
   }
   function getIsMobileLayout() {
    const MIN_DISPLAY_WIDTH = 48 * 14;
    const viewport = getViewport();
    const useMobileLayout = computed(() => viewport.value.width < MIN_DISPLAY_WIDTH);
    return useMobileLayout;
   }
   function isMobileAgent() {
    return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent);
   }
   function popoverLogic(popover, {debounce: debounce2 = 100, longpress = 0, beforeShow, beforeHide} = {}) {
    let isTouchScreen = false;
    let handle = null;
    let lastShowEvent = new Event("placeholder-event");
    const show4 = (e, target2, ...params) => {
     if (handle !== null) {
      clearTimeout(handle);
      handle = null;
     }
     lastShowEvent = e;
     if (beforeShow?.(e, ...params) === false) return;
     popover.show(e, target2);
    };
    const hide4 = (e) => {
     if (e === lastShowEvent) return;
     handle = setTimeout(() => {
      if (beforeHide?.(e) === false) return;
      popover.hide();
     }, debounce2);
    };
    const controller = new AbortController();
    document.addEventListener(
     "touchstart",
     (e) => {
      isTouchScreen = true;
      hide4(e);
     },
     {signal: controller.signal},
    );
    const delayedShow = (e, target2, ...params) =>
     setTimeout(() => {
      show4(e, target2, ...params);
     }, longpress);
    return {
     onTouchStart(e, ...params) {
      isTouchScreen = true;
      if (longpress > 0) {
       delayedShow(e, e.currentTarget, ...params);
      } else {
       show4(e, void 0, ...params);
      }
     },
     onTouchEnd(_e2) {},
     onMouseEnter(e, ...params) {
      if (isTouchScreen) return;
      show4(e, void 0, ...params);
     },
     onMouseLeave(e) {
      if (isTouchScreen) return;
      hide4(e);
     },
     destroy() {
      controller.abort();
     },
    };
   }
   function useAttrSelector() {
    var prefix2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pc";
    var idx = useId();
    return "".concat(prefix2).concat(idx.replace("v-", "").replaceAll("-", "_"));
   }
   var BaseComponentStyle = BaseStyle.extend({name: "common"});
   function _typeof$i(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$i =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$i(o)
    );
   }
   function _toArray(r) {
    return _arrayWithHoles$1(r) || _iterableToArray$t(r) || _unsupportedIterableToArray$u(r) || _nonIterableRest$1();
   }
   function _iterableToArray$t(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _slicedToArray$1(r, e) {
    return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$u(r, e) || _nonIterableRest$1();
   }
   function _nonIterableRest$1() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$u(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$u(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$u(r, a2) : void 0);
    }
   }
   function _arrayLikeToArray$u(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function _iterableToArrayLimit$1(r, l2) {
    var t2 = null == r ? null : ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (null != t2) {
     var e,
      n,
      i2,
      u,
      a2 = [],
      f2 = true,
      o = false;
     try {
      if (((i2 = (t2 = t2.call(r)).next), 0 === l2)) {
       if (Object(t2) !== t2) return;
       f2 = false;
      } else for (; !(f2 = (e = i2.call(t2)).done) && (a2.push(e.value), a2.length !== l2); f2 = true);
     } catch (r2) {
      ((o = true), (n = r2));
     } finally {
      try {
       if (!f2 && null != t2["return"] && ((u = t2["return"]()), Object(u) !== u)) return;
      } finally {
       if (o) throw n;
      }
     }
     return a2;
    }
   }
   function _arrayWithHoles$1(r) {
    if (Array.isArray(r)) return r;
   }
   function ownKeys$8(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$8(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$8(Object(t2), true).forEach(function (r2) {
         _defineProperty$h(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$8(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$h(e, r, t2) {
    return ((r = _toPropertyKey$h(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$h(t2) {
    var i2 = _toPrimitive$h(t2, "string");
    return "symbol" == _typeof$i(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$h(t2, r) {
    if ("object" != _typeof$i(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$i(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$Q = {
    name: "BaseComponent",
    props: {pt: {type: Object, default: void 0}, ptOptions: {type: Object, default: void 0}, unstyled: {type: Boolean, default: void 0}, dt: {type: Object, default: void 0}},
    inject: {$parentInstance: {default: void 0}},
    watch: {
     isUnstyled: {
      immediate: true,
      handler: function handler(newValue) {
       N.off("theme:change", this._loadCoreStyles);
       if (!newValue) {
        this._loadCoreStyles();
        this._themeChangeListener(this._loadCoreStyles);
       }
      },
     },
     dt: {
      immediate: true,
      handler: function handler2(newValue, oldValue) {
       var _this = this;
       N.off("theme:change", this._themeScopedListener);
       if (newValue) {
        this._loadScopedThemeStyles(newValue);
        this._themeScopedListener = function () {
         return _this._loadScopedThemeStyles(newValue);
        };
        this._themeChangeListener(this._themeScopedListener);
       } else {
        this._unloadScopedThemeStyles();
       }
      },
     },
    },
    scopedStyleEl: void 0,
    rootEl: void 0,
    uid: void 0,
    $attrSelector: void 0,
    beforeCreate: function beforeCreate() {
     var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
     var _usept = (_this$pt = this.pt) === null || _this$pt === void 0 ? void 0 : _this$pt["_usept"];
     var originalValue = _usept ? ((_this$pt2 = this.pt) === null || _this$pt2 === void 0 || (_this$pt2 = _this$pt2.originalValue) === null || _this$pt2 === void 0 ? void 0 : _this$pt2[this.$.type.name]) : void 0;
     var value2 = _usept ? ((_this$pt3 = this.pt) === null || _this$pt3 === void 0 || (_this$pt3 = _this$pt3.value) === null || _this$pt3 === void 0 ? void 0 : _this$pt3[this.$.type.name]) : this.pt;
     (_ref = value2 || originalValue) === null || _ref === void 0 || (_ref = _ref.hooks) === null || _ref === void 0 || (_ref$onBeforeCreate = _ref["onBeforeCreate"]) === null || _ref$onBeforeCreate === void 0 || _ref$onBeforeCreate.call(_ref);
     var _useptInConfig = (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.pt) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig["_usept"];
     var originalValueInConfig = _useptInConfig ? ((_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue) : void 0;
     var valueInConfig = _useptInConfig ? ((_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value) : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
     (_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2["onBeforeCreate"]) === null || _ref2$onBeforeCreate === void 0 || _ref2$onBeforeCreate.call(_ref2);
     this.$attrSelector = useAttrSelector();
     this.uid = this.$attrs.id || this.$attrSelector.replace("pc", "pv_id_");
    },
    created: function created() {
     this._hook("onCreated");
    },
    beforeMount: function beforeMount() {
     var _this$$el;
     this.rootEl = z$1(c(this.$el) ? this.$el : (_this$$el = this.$el) === null || _this$$el === void 0 ? void 0 : _this$$el.parentElement, "[".concat(this.$attrSelector, "]"));
     if (this.rootEl) {
      this.rootEl.$pc = _objectSpread$8({name: this.$.type.name, attrSelector: this.$attrSelector}, this.$params);
     }
     this._loadStyles();
     this._hook("onBeforeMount");
    },
    mounted: function mounted() {
     this._hook("onMounted");
    },
    beforeUpdate: function beforeUpdate() {
     this._hook("onBeforeUpdate");
    },
    updated: function updated() {
     this._hook("onUpdated");
    },
    beforeUnmount: function beforeUnmount() {
     this._hook("onBeforeUnmount");
    },
    unmounted: function unmounted2() {
     this._removeThemeListeners();
     this._unloadScopedThemeStyles();
     this._hook("onUnmounted");
    },
    methods: {
     _hook: function _hook2(hookName) {
      if (!this.$options.hostName) {
       var selfHook = this._usePT(this._getPT(this.pt, this.$.type.name), this._getOptionValue, "hooks.".concat(hookName));
       var defaultHook = this._useDefaultPT(this._getOptionValue, "hooks.".concat(hookName));
       selfHook === null || selfHook === void 0 || selfHook();
       defaultHook === null || defaultHook === void 0 || defaultHook();
      }
     },
     _mergeProps: function _mergeProps2(fn) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key2 = 1; _key2 < _len; _key2++) {
       args[_key2 - 1] = arguments[_key2];
      }
      return c$1(fn) ? fn.apply(void 0, args) : mergeProps.apply(void 0, args);
     },
     _load: function _load() {
      if (!Base.isStyleNameLoaded("base")) {
       BaseStyle.loadCSS(this.$styleOptions);
       this._loadGlobalStyles();
       Base.setLoadedStyleName("base");
      }
      this._loadThemeStyles();
     },
     _loadStyles: function _loadStyles2() {
      this._load();
      this._themeChangeListener(this._load);
     },
     _loadCoreStyles: function _loadCoreStyles2() {
      var _this$$style, _this$$style2;
      if (!Base.isStyleNameLoaded((_this$$style = this.$style) === null || _this$$style === void 0 ? void 0 : _this$$style.name) && (_this$$style2 = this.$style) !== null && _this$$style2 !== void 0 && _this$$style2.name) {
       BaseComponentStyle.loadCSS(this.$styleOptions);
       this.$options.style && this.$style.loadCSS(this.$styleOptions);
       Base.setLoadedStyleName(this.$style.name);
      }
     },
     _loadGlobalStyles: function _loadGlobalStyles() {
      var globalCSS = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
      s$3(globalCSS) && BaseStyle.load(globalCSS, _objectSpread$8({name: "global"}, this.$styleOptions));
     },
     _loadThemeStyles: function _loadThemeStyles2() {
      var _this$$style4, _this$$style5;
      if (this.isUnstyled || this.$theme === "none") return;
      if (!S.isStyleNameLoaded("common")) {
       var _this$$style3, _this$$style3$getComm;
       var _ref3 = ((_this$$style3 = this.$style) === null || _this$$style3 === void 0 || (_this$$style3$getComm = _this$$style3.getCommonTheme) === null || _this$$style3$getComm === void 0 ? void 0 : _this$$style3$getComm.call(_this$$style3)) || {},
        primitive = _ref3.primitive,
        semantic = _ref3.semantic,
        global2 = _ref3.global,
        style2 = _ref3.style;
       BaseStyle.load(primitive === null || primitive === void 0 ? void 0 : primitive.css, _objectSpread$8({name: "primitive-variables"}, this.$styleOptions));
       BaseStyle.load(semantic === null || semantic === void 0 ? void 0 : semantic.css, _objectSpread$8({name: "semantic-variables"}, this.$styleOptions));
       BaseStyle.load(global2 === null || global2 === void 0 ? void 0 : global2.css, _objectSpread$8({name: "global-variables"}, this.$styleOptions));
       BaseStyle.loadStyle(_objectSpread$8({name: "global-style"}, this.$styleOptions), style2);
       S.setLoadedStyleName("common");
      }
      if (!S.isStyleNameLoaded((_this$$style4 = this.$style) === null || _this$$style4 === void 0 ? void 0 : _this$$style4.name) && (_this$$style5 = this.$style) !== null && _this$$style5 !== void 0 && _this$$style5.name) {
       var _this$$style6, _this$$style6$getComp, _this$$style7, _this$$style8;
       var _ref4 = ((_this$$style6 = this.$style) === null || _this$$style6 === void 0 || (_this$$style6$getComp = _this$$style6.getComponentTheme) === null || _this$$style6$getComp === void 0 ? void 0 : _this$$style6$getComp.call(_this$$style6)) || {},
        css3 = _ref4.css,
        _style = _ref4.style;
       (_this$$style7 = this.$style) === null || _this$$style7 === void 0 || _this$$style7.load(css3, _objectSpread$8({name: "".concat(this.$style.name, "-variables")}, this.$styleOptions));
       (_this$$style8 = this.$style) === null || _this$$style8 === void 0 || _this$$style8.loadStyle(_objectSpread$8({name: "".concat(this.$style.name, "-style")}, this.$styleOptions), _style);
       S.setLoadedStyleName(this.$style.name);
      }
      if (!S.isStyleNameLoaded("layer-order")) {
       var _this$$style9, _this$$style9$getLaye;
       var layerOrder = (_this$$style9 = this.$style) === null || _this$$style9 === void 0 || (_this$$style9$getLaye = _this$$style9.getLayerOrderThemeCSS) === null || _this$$style9$getLaye === void 0 ? void 0 : _this$$style9$getLaye.call(_this$$style9);
       BaseStyle.load(layerOrder, _objectSpread$8({name: "layer-order", first: true}, this.$styleOptions));
       S.setLoadedStyleName("layer-order");
      }
     },
     _loadScopedThemeStyles: function _loadScopedThemeStyles2(preset) {
      var _this$$style0, _this$$style0$getPres, _this$$style1;
      var _ref5 = ((_this$$style0 = this.$style) === null || _this$$style0 === void 0 || (_this$$style0$getPres = _this$$style0.getPresetTheme) === null || _this$$style0$getPres === void 0 ? void 0 : _this$$style0$getPres.call(_this$$style0, preset, "[".concat(this.$attrSelector, "]"))) || {},
       css3 = _ref5.css;
      var scopedStyle = (_this$$style1 = this.$style) === null || _this$$style1 === void 0 ? void 0 : _this$$style1.load(css3, _objectSpread$8({name: "".concat(this.$attrSelector, "-").concat(this.$style.name)}, this.$styleOptions));
      this.scopedStyleEl = scopedStyle.el;
     },
     _unloadScopedThemeStyles: function _unloadScopedThemeStyles() {
      var _this$scopedStyleEl;
      (_this$scopedStyleEl = this.scopedStyleEl) === null || _this$scopedStyleEl === void 0 || (_this$scopedStyleEl = _this$scopedStyleEl.value) === null || _this$scopedStyleEl === void 0 || _this$scopedStyleEl.remove();
     },
     _themeChangeListener: function _themeChangeListener2() {
      var callback = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function () {};
      Base.clearLoadedStyleNames();
      N.on("theme:change", callback);
     },
     _removeThemeListeners: function _removeThemeListeners2() {
      N.off("theme:change", this._loadCoreStyles);
      N.off("theme:change", this._load);
      N.off("theme:change", this._themeScopedListener);
     },
     _getHostInstance: function _getHostInstance(instance) {
      return instance ? (this.$options.hostName ? (instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance)) : instance.$parentInstance) : void 0;
     },
     _getPropValue: function _getPropValue(name) {
      var _this$_getHostInstanc;
      return this[name] || ((_this$_getHostInstanc = this._getHostInstance(this)) === null || _this$_getHostInstanc === void 0 ? void 0 : _this$_getHostInstanc[name]);
     },
     _getOptionValue: function _getOptionValue(options3) {
      var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
      var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      return F$2(options3, key, params);
     },
     _getPTValue: function _getPTValue2() {
      var _this$$primevueConfig2;
      var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
      var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      var searchInDefaultPT = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : true;
      var searchOut = /./g.test(key) && !!params[key.split(".")[0]];
      var _ref6 = this._getPropValue("ptOptions") || ((_this$$primevueConfig2 = this.$primevueConfig) === null || _this$$primevueConfig2 === void 0 ? void 0 : _this$$primevueConfig2.ptOptions) || {},
       _ref6$mergeSections = _ref6.mergeSections,
       mergeSections = _ref6$mergeSections === void 0 ? true : _ref6$mergeSections,
       _ref6$mergeProps = _ref6.mergeProps,
       useMergeProps = _ref6$mergeProps === void 0 ? false : _ref6$mergeProps;
      var global2 = searchInDefaultPT ? (searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params)) : void 0;
      var self2 = searchOut ? void 0 : this._getPTSelf(obj, this._getPTClassValue, key, _objectSpread$8(_objectSpread$8({}, params), {}, {global: global2 || {}}));
      var datasets = this._getPTDatasets(key);
      return mergeSections || (!mergeSections && self2) ? (useMergeProps ? this._mergeProps(useMergeProps, global2, self2, datasets) : _objectSpread$8(_objectSpread$8(_objectSpread$8({}, global2), self2), datasets)) : _objectSpread$8(_objectSpread$8({}, self2), datasets);
     },
     _getPTSelf: function _getPTSelf() {
      var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) {
       args[_key3 - 1] = arguments[_key3];
      }
      return mergeProps(this._usePT.apply(this, [this._getPT(obj, this.$name)].concat(args)), this._usePT.apply(this, [this.$_attrsPT].concat(args)));
     },
     _getPTDatasets: function _getPTDatasets2() {
      var _this$pt4, _this$pt5;
      var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      var datasetPrefix = "data-pc-";
      var isExtended = key === "root" && s$3((_this$pt4 = this.pt) === null || _this$pt4 === void 0 ? void 0 : _this$pt4["data-pc-section"]);
      return key !== "transition" && _objectSpread$8(_objectSpread$8({}, key === "root" && _objectSpread$8(_objectSpread$8(_defineProperty$h({}, "".concat(datasetPrefix, "name"), g$1(isExtended ? ((_this$pt5 = this.pt) === null || _this$pt5 === void 0 ? void 0 : _this$pt5["data-pc-section"]) : this.$.type.name)), isExtended && _defineProperty$h({}, "".concat(datasetPrefix, "extend"), g$1(this.$.type.name))), {}, _defineProperty$h({}, "".concat(this.$attrSelector), ""))), {}, _defineProperty$h({}, "".concat(datasetPrefix, "section"), g$1(key)));
     },
     _getPTClassValue: function _getPTClassValue() {
      var value2 = this._getOptionValue.apply(this, arguments);
      return a(value2) || C$3(value2) ? {class: value2} : value2;
     },
     _getPT: function _getPT2(pt2) {
      var _this2 = this;
      var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
      var callback = arguments.length > 2 ? arguments[2] : void 0;
      var getValue = function getValue2(value2) {
       var _ref8;
       var checkSameKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
       var computedValue = callback ? callback(value2) : value2;
       var _key = g$1(key);
       var _cKey = g$1(_this2.$name);
       return (_ref8 = checkSameKey ? (_key !== _cKey ? (computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) : void 0) : computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _ref8 !== void 0 ? _ref8 : computedValue;
      };
      return pt2 !== null && pt2 !== void 0 && pt2.hasOwnProperty("_usept") ? {_usept: pt2["_usept"], originalValue: getValue(pt2.originalValue), value: getValue(pt2.value)} : getValue(pt2, true);
     },
     _usePT: function _usePT2(pt2, callback, key, params) {
      var fn = function fn2(value3) {
       return callback(value3, key, params);
      };
      if (pt2 !== null && pt2 !== void 0 && pt2.hasOwnProperty("_usept")) {
       var _this$$primevueConfig3;
       var _ref9 = pt2["_usept"] || ((_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3.ptOptions) || {},
        _ref9$mergeSections = _ref9.mergeSections,
        mergeSections = _ref9$mergeSections === void 0 ? true : _ref9$mergeSections,
        _ref9$mergeProps = _ref9.mergeProps,
        useMergeProps = _ref9$mergeProps === void 0 ? false : _ref9$mergeProps;
       var originalValue = fn(pt2.originalValue);
       var value2 = fn(pt2.value);
       if (originalValue === void 0 && value2 === void 0) return void 0;
       else if (a(value2)) return value2;
       else if (a(originalValue)) return originalValue;
       return mergeSections || (!mergeSections && value2) ? (useMergeProps ? this._mergeProps(useMergeProps, originalValue, value2) : _objectSpread$8(_objectSpread$8({}, originalValue), value2)) : value2;
      }
      return fn(pt2);
     },
     _useGlobalPT: function _useGlobalPT(callback, key, params) {
      return this._usePT(this.globalPT, callback, key, params);
     },
     _useDefaultPT: function _useDefaultPT2(callback, key, params) {
      return this._usePT(this.defaultPT, callback, key, params);
     },
     ptm: function ptm() {
      var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      return this._getPTValue(this.pt, key, _objectSpread$8(_objectSpread$8({}, this.$params), params));
     },
     ptmi: function ptmi() {
      var _attrs$id;
      var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      var attrs6 = mergeProps(this.$_attrsWithoutPT, this.ptm(key, params));
      (attrs6 === null || attrs6 === void 0 ? void 0 : attrs6.hasOwnProperty("id")) && ((_attrs$id = attrs6.id) !== null && _attrs$id !== void 0 ? _attrs$id : (attrs6.id = this.$id));
      return attrs6;
     },
     ptmo: function ptmo() {
      var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
      var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      return this._getPTValue(obj, key, _objectSpread$8({instance: this}, params), false);
     },
     cx: function cx() {
      var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      return !this.isUnstyled ? this._getOptionValue(this.$style.classes, key, _objectSpread$8(_objectSpread$8({}, this.$params), params)) : void 0;
     },
     sx: function sx() {
      var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
      var when = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
      var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
      if (when) {
       var self2 = this._getOptionValue(this.$style.inlineStyles, key, _objectSpread$8(_objectSpread$8({}, this.$params), params));
       var base = this._getOptionValue(BaseComponentStyle.inlineStyles, key, _objectSpread$8(_objectSpread$8({}, this.$params), params));
       return [base, self2];
      }
      return void 0;
     },
    },
    computed: {
     globalPT: function globalPT() {
      var _this$$primevueConfig4,
       _this3 = this;
      return this._getPT((_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.pt, void 0, function (value2) {
       return m$1(value2, {instance: _this3});
      });
     },
     defaultPT: function defaultPT() {
      var _this$$primevueConfig5,
       _this4 = this;
      return this._getPT((_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.pt, void 0, function (value2) {
       return _this4._getOptionValue(value2, _this4.$name, _objectSpread$8({}, _this4.$params)) || m$1(value2, _objectSpread$8({}, _this4.$params));
      });
     },
     isUnstyled: function isUnstyled() {
      var _this$$primevueConfig6;
      return this.unstyled !== void 0 ? this.unstyled : (_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.unstyled;
     },
     $id: function $id() {
      return this.$attrs.id || this.uid;
     },
     $inProps: function $inProps() {
      var _this$$$vnode;
      var nodePropKeys = Object.keys(((_this$$$vnode = this.$.vnode) === null || _this$$$vnode === void 0 ? void 0 : _this$$$vnode.props) || {});
      return Object.fromEntries(
       Object.entries(this.$props).filter(function (_ref0) {
        var _ref1 = _slicedToArray$1(_ref0, 1),
         k2 = _ref1[0];
        return nodePropKeys === null || nodePropKeys === void 0 ? void 0 : nodePropKeys.includes(k2);
       }),
      );
     },
     $theme: function $theme() {
      var _this$$primevueConfig7;
      return (_this$$primevueConfig7 = this.$primevueConfig) === null || _this$$primevueConfig7 === void 0 ? void 0 : _this$$primevueConfig7.theme;
     },
     $style: function $style() {
      return _objectSpread$8(_objectSpread$8({classes: void 0, inlineStyles: void 0, load: function load2() {}, loadCSS: function loadCSS2() {}, loadStyle: function loadStyle2() {}}, (this._getHostInstance(this) || {}).$style), this.$options.style);
     },
     $styleOptions: function $styleOptions() {
      var _this$$primevueConfig8;
      return {nonce: (_this$$primevueConfig8 = this.$primevueConfig) === null || _this$$primevueConfig8 === void 0 || (_this$$primevueConfig8 = _this$$primevueConfig8.csp) === null || _this$$primevueConfig8 === void 0 ? void 0 : _this$$primevueConfig8.nonce};
     },
     $primevueConfig: function $primevueConfig() {
      var _this$$primevue4;
      return (_this$$primevue4 = this.$primevue) === null || _this$$primevue4 === void 0 ? void 0 : _this$$primevue4.config;
     },
     $name: function $name() {
      return this.$options.hostName || this.$.type.name;
     },
     $params: function $params() {
      var parentInstance = this._getHostInstance(this) || this.$parent;
      return {instance: this, props: this.$props, state: this.$data, attrs: this.$attrs, parent: {instance: parentInstance, props: parentInstance === null || parentInstance === void 0 ? void 0 : parentInstance.$props, state: parentInstance === null || parentInstance === void 0 ? void 0 : parentInstance.$data, attrs: parentInstance === null || parentInstance === void 0 ? void 0 : parentInstance.$attrs}};
     },
     $_attrsPT: function $_attrsPT() {
      return Object.entries(this.$attrs || {})
       .filter(function (_ref10) {
        var _ref11 = _slicedToArray$1(_ref10, 1),
         key = _ref11[0];
        return key === null || key === void 0 ? void 0 : key.startsWith("pt:");
       })
       .reduce(function (result, _ref12) {
        var _ref13 = _slicedToArray$1(_ref12, 2),
         key = _ref13[0],
         value2 = _ref13[1];
        var _key$split = key.split(":"),
         _key$split2 = _toArray(_key$split),
         rest = _arrayLikeToArray$u(_key$split2).slice(1);
        rest === null ||
         rest === void 0 ||
         rest.reduce(function (currentObj, nestedKey, index, array) {
          !currentObj[nestedKey] && (currentObj[nestedKey] = index === array.length - 1 ? value2 : {});
          return currentObj[nestedKey];
         }, result);
        return result;
       }, {});
     },
     $_attrsWithoutPT: function $_attrsWithoutPT() {
      return Object.entries(this.$attrs || {})
       .filter(function (_ref14) {
        var _ref15 = _slicedToArray$1(_ref14, 1),
         key = _ref15[0];
        return !(key !== null && key !== void 0 && key.startsWith("pt:"));
       })
       .reduce(function (acc, _ref16) {
        var _ref17 = _slicedToArray$1(_ref16, 2),
         key = _ref17[0],
         value2 = _ref17[1];
        acc[key] = value2;
        return acc;
       }, {});
     },
    },
   };
   var css$1 = "\n.p-icon {\n    display: inline-block;\n    vertical-align: baseline;\n    flex-shrink: 0;\n}\n\n.p-icon-spin {\n    -webkit-animation: p-icon-spin 2s infinite linear;\n    animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n\n@keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n";
   var BaseIconStyle = BaseStyle.extend({name: "baseicon", css: css$1});
   function _typeof$h(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$h =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$h(o)
    );
   }
   function ownKeys$7(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$7(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$7(Object(t2), true).forEach(function (r2) {
         _defineProperty$g(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$7(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$g(e, r, t2) {
    return ((r = _toPropertyKey$g(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$g(t2) {
    var i2 = _toPrimitive$g(t2, "string");
    return "symbol" == _typeof$h(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$g(t2, r) {
    if ("object" != _typeof$h(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$h(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$P = {
    name: "BaseIcon",
    extends: script$Q,
    props: {label: {type: String, default: void 0}, spin: {type: Boolean, default: false}},
    style: BaseIconStyle,
    provide: function provide2() {
     return {$pcIcon: this, $parentInstance: this};
    },
    methods: {
     pti: function pti() {
      var isLabelEmpty = l$1(this.label);
      return _objectSpread$7(_objectSpread$7({}, !this.isUnstyled && {class: ["p-icon", {"p-icon-spin": this.spin}]}), {}, {role: !isLabelEmpty ? "img" : void 0, "aria-label": !isLabelEmpty ? this.label : void 0, "aria-hidden": isLabelEmpty});
     },
    },
   };
   var script$O = {name: "TimesIcon", extends: script$P};
   function _toConsumableArray$s(r) {
    return _arrayWithoutHoles$s(r) || _iterableToArray$s(r) || _unsupportedIterableToArray$t(r) || _nonIterableSpread$s();
   }
   function _nonIterableSpread$s() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$t(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$t(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$t(r, a2) : void 0);
    }
   }
   function _iterableToArray$s(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$s(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$t(r);
   }
   function _arrayLikeToArray$t(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$1e(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$s(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$O.render = render$1e;
   var script$N = {
    name: "Portal",
    props: {appendTo: {type: [String, Object], default: "body"}, disabled: {type: Boolean, default: false}},
    data: function data() {
     return {mounted: false};
    },
    mounted: function mounted2() {
     this.mounted = tt();
    },
    computed: {
     inline: function inline() {
      return this.disabled || this.appendTo === "self";
     },
    },
   };
   function render$1d(_ctx, _cache, $props, $setup, $data, $options) {
    return $options.inline ? renderSlot(_ctx.$slots, "default", {key: 0}) : $data.mounted ? (openBlock(), createBlock(Teleport, {key: 1, to: $props.appendTo}, [renderSlot(_ctx.$slots, "default")], 8, ["to"])) : createCommentVNode("", true);
   }
   script$N.render = render$1d;
   var style$k = '\\n .p-toast{white-space:pre-line;width:dt("toast.width");word-break:break-word}.p-toast-message{display:grid;grid-template-rows:1fr;margin:0 0 1rem}.p-toast-message-icon{flex-shrink:0;font-size:dt("toast.icon.size");height:dt("toast.icon.size");width:dt("toast.icon.size")}.p-toast-message-content{align-items:flex-start;display:flex;gap:dt("toast.content.gap");min-height:0;overflow:hidden;padding:dt("toast.content.padding");transition:padding .25s ease-in}.p-toast-message-text{display:flex;flex:1 1 auto;flex-direction:column;gap:dt("toast.text.gap")}.p-toast-summary{font-size:dt("toast.summary.font.size");font-weight:dt("toast.summary.font.weight")}.p-toast-detail{font-size:dt("toast.detail.font.size");font-weight:dt("toast.detail.font.weight")}.p-toast-close-button{align-items:center;background:transparent;border:none;border-radius:dt("toast.close.button.border.radius");color:inherit;cursor:pointer;display:flex;height:dt("toast.close.button.height");justify-content:center;margin:-25% 0 0;outline-color:transparent;overflow:hidden;padding:0;position:relative;right:-25%;transition:background dt("toast.transition.duration"),color dt("toast.transition.duration"),outline-color dt("toast.transition.duration"),box-shadow dt("toast.transition.duration");user-select:none;width:dt("toast.close.button.width")}.p-toast-close-button:dir(rtl){left:-25%;margin:-25% 0 0 auto;right:auto}.p-toast-message-contrast,.p-toast-message-error,.p-toast-message-info,.p-toast-message-secondary,.p-toast-message-success,.p-toast-message-warn{backdrop-filter:blur(dt("toast.blur"));border-radius:dt("toast.border.radius");border-style:solid;border-width:dt("toast.border.width")}.p-toast-close-icon{font-size:dt("toast.close.icon.size");height:dt("toast.close.icon.size");width:dt("toast.close.icon.size")}.p-toast-close-button:focus-visible{outline-offset:dt("focus.ring.offset");outline-style:dt("focus.ring.style");outline-width:dt("focus.ring.width")}.p-toast-message-info{background:dt("toast.info.background");border-color:dt("toast.info.border.color");box-shadow:dt("toast.info.shadow");color:dt("toast.info.color")}.p-toast-message-info .p-toast-detail{color:dt("toast.info.detail.color")}.p-toast-message-info .p-toast-close-button:focus-visible{box-shadow:dt("toast.info.close.button.focus.ring.shadow");outline-color:dt("toast.info.close.button.focus.ring.color")}.p-toast-message-info .p-toast-close-button:hover{background:dt("toast.info.close.button.hover.background")}.p-toast-message-success{background:dt("toast.success.background");border-color:dt("toast.success.border.color");box-shadow:dt("toast.success.shadow");color:dt("toast.success.color")}.p-toast-message-success .p-toast-detail{color:dt("toast.success.detail.color")}.p-toast-message-success .p-toast-close-button:focus-visible{box-shadow:dt("toast.success.close.button.focus.ring.shadow");outline-color:dt("toast.success.close.button.focus.ring.color")}.p-toast-message-success .p-toast-close-button:hover{background:dt("toast.success.close.button.hover.background")}.p-toast-message-warn{background:dt("toast.warn.background");border-color:dt("toast.warn.border.color");box-shadow:dt("toast.warn.shadow");color:dt("toast.warn.color")}.p-toast-message-warn .p-toast-detail{color:dt("toast.warn.detail.color")}.p-toast-message-warn .p-toast-close-button:focus-visible{box-shadow:dt("toast.warn.close.button.focus.ring.shadow");outline-color:dt("toast.warn.close.button.focus.ring.color")}.p-toast-message-warn .p-toast-close-button:hover{background:dt("toast.warn.close.button.hover.background")}.p-toast-message-error{background:dt("toast.error.background");border-color:dt("toast.error.border.color");box-shadow:dt("toast.error.shadow");color:dt("toast.error.color")}.p-toast-message-error .p-toast-detail{color:dt("toast.error.detail.color")}.p-toast-message-error .p-toast-close-button:focus-visible{box-shadow:dt("toast.error.close.button.focus.ring.shadow");outline-color:dt("toast.error.close.button.focus.ring.color")}.p-toast-message-error .p-toast-close-button:hover{background:dt("toast.error.close.button.hover.background")}.p-toast-message-secondary{background:dt("toast.secondary.background");border-color:dt("toast.secondary.border.color");box-shadow:dt("toast.secondary.shadow");color:dt("toast.secondary.color")}.p-toast-message-secondary .p-toast-detail{color:dt("toast.secondary.detail.color")}.p-toast-message-secondary .p-toast-close-button:focus-visible{box-shadow:dt("toast.secondary.close.button.focus.ring.shadow");outline-color:dt("toast.secondary.close.button.focus.ring.color")}.p-toast-message-secondary .p-toast-close-button:hover{background:dt("toast.secondary.close.button.hover.background")}.p-toast-message-contrast{background:dt("toast.contrast.background");border-color:dt("toast.contrast.border.color");box-shadow:dt("toast.contrast.shadow");color:dt("toast.contrast.color")}.p-toast-message-contrast .p-toast-detail{color:dt("toast.contrast.detail.color")}.p-toast-message-contrast .p-toast-close-button:focus-visible{box-shadow:dt("toast.contrast.close.button.focus.ring.shadow");outline-color:dt("toast.contrast.close.button.focus.ring.color")}.p-toast-message-contrast .p-toast-close-button:hover{background:dt("toast.contrast.close.button.hover.background")}.p-toast-bottom-center,.p-toast-top-center{transform:translateX(-50%)}.p-toast-center{min-width:20vw;transform:translate(-50%,-50%)}.p-toast-message-enter-active{animation:p-animate-toast-enter .3s ease-out}.p-toast-message-leave-active{animation:p-animate-toast-leave .25s ease-in}.p-toast-message-leave-to .p-toast-message-content{padding-bottom:0;padding-top:0}@keyframes p-animate-toast-enter{0%{opacity:0;transform:scale(.6)}to{grid-template-rows:1fr;opacity:1}}@keyframes p-animate-toast-leave{0%{opacity:1}to{grid-template-rows:0fr;margin-bottom:0;opacity:0;transform:translateY(-100%) scale(.6)}}';
   function _typeof$g(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$g =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$g(o)
    );
   }
   function _defineProperty$f(e, r, t2) {
    return ((r = _toPropertyKey$f(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$f(t2) {
    var i2 = _toPrimitive$f(t2, "string");
    return "symbol" == _typeof$g(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$f(t2, r) {
    if ("object" != _typeof$g(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$g(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var inlineStyles$3 = {
    root: function root(_ref) {
     var position2 = _ref.position;
     return {position: "fixed", top: position2 === "top-right" || position2 === "top-left" || position2 === "top-center" ? "20px" : position2 === "center" ? "50%" : null, right: (position2 === "top-right" || position2 === "bottom-right") && "20px", bottom: (position2 === "bottom-left" || position2 === "bottom-right" || position2 === "bottom-center") && "20px", left: position2 === "top-left" || position2 === "bottom-left" ? "20px" : position2 === "center" || position2 === "top-center" || position2 === "bottom-center" ? "50%" : null};
    },
   };
   var classes$n = {
    root: function root2(_ref2) {
     var props2 = _ref2.props;
     return ["p-toast p-component p-toast-" + props2.position];
    },
    message: function message(_ref3) {
     var props2 = _ref3.props;
     return ["p-toast-message", {"p-toast-message-info": props2.message.severity === "info" || props2.message.severity === void 0, "p-toast-message-warn": props2.message.severity === "warn", "p-toast-message-error": props2.message.severity === "error", "p-toast-message-success": props2.message.severity === "success", "p-toast-message-secondary": props2.message.severity === "secondary", "p-toast-message-contrast": props2.message.severity === "contrast"}];
    },
    messageContent: "p-toast-message-content",
    messageIcon: function messageIcon(_ref4) {
     var props2 = _ref4.props;
     return ["p-toast-message-icon", _defineProperty$f(_defineProperty$f(_defineProperty$f(_defineProperty$f({}, props2.infoIcon, props2.message.severity === "info"), props2.warnIcon, props2.message.severity === "warn"), props2.errorIcon, props2.message.severity === "error"), props2.successIcon, props2.message.severity === "success")];
    },
    messageText: "p-toast-message-text",
    summary: "p-toast-summary",
    detail: "p-toast-detail",
    closeButton: "p-toast-close-button",
    closeIcon: "p-toast-close-icon",
   };
   var ToastStyle = BaseStyle.extend({name: "toast", style: style$k, classes: classes$n, inlineStyles: inlineStyles$3});
   var script$M = {name: "CheckIcon", extends: script$P};
   function _toConsumableArray$r(r) {
    return _arrayWithoutHoles$r(r) || _iterableToArray$r(r) || _unsupportedIterableToArray$s(r) || _nonIterableSpread$r();
   }
   function _nonIterableSpread$r() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$s(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$s(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$s(r, a2) : void 0);
    }
   }
   function _iterableToArray$r(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$r(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$s(r);
   }
   function _arrayLikeToArray$s(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$1c(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$r(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$M.render = render$1c;
   var script$L = {name: "ExclamationTriangleIcon", extends: script$P};
   function _toConsumableArray$q(r) {
    return _arrayWithoutHoles$q(r) || _iterableToArray$q(r) || _unsupportedIterableToArray$r(r) || _nonIterableSpread$q();
   }
   function _nonIterableSpread$q() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$r(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$r(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$r(r, a2) : void 0);
    }
   }
   function _iterableToArray$q(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$q(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$r(r);
   }
   function _arrayLikeToArray$r(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$1b(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$q(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z", fill: "currentColor"}, null, -1), createElementVNode("path", {d: "M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z", fill: "currentColor"}, null, -1), createElementVNode("path", {d: "M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$L.render = render$1b;
   var script$K = {name: "InfoCircleIcon", extends: script$P};
   function _toConsumableArray$p(r) {
    return _arrayWithoutHoles$p(r) || _iterableToArray$p(r) || _unsupportedIterableToArray$q(r) || _nonIterableSpread$p();
   }
   function _nonIterableSpread$p() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$q(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$q(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$q(r, a2) : void 0);
    }
   }
   function _iterableToArray$p(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$p(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$q(r);
   }
   function _arrayLikeToArray$q(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$1a(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$p(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$K.render = render$1a;
   var script$J = {name: "TimesCircleIcon", extends: script$P};
   function _toConsumableArray$o(r) {
    return _arrayWithoutHoles$o(r) || _iterableToArray$o(r) || _unsupportedIterableToArray$p(r) || _nonIterableSpread$o();
   }
   function _nonIterableSpread$o() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$p(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$p(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$p(r, a2) : void 0);
    }
   }
   function _iterableToArray$o(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$o(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$p(r);
   }
   function _arrayLikeToArray$p(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$19(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$o(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$J.render = render$19;
   var script$2$3 = {
    name: "BaseToast",
    extends: script$Q,
    props: {group: {type: String, default: null}, position: {type: String, default: "top-right"}, autoZIndex: {type: Boolean, default: true}, baseZIndex: {type: Number, default: 0}, breakpoints: {type: Object, default: null}, closeIcon: {type: String, default: void 0}, infoIcon: {type: String, default: void 0}, warnIcon: {type: String, default: void 0}, errorIcon: {type: String, default: void 0}, successIcon: {type: String, default: void 0}, closeButtonProps: {type: null, default: null}, onMouseEnter: {type: Function, default: void 0}, onMouseLeave: {type: Function, default: void 0}, onClick: {type: Function, default: void 0}},
    style: ToastStyle,
    provide: function provide3() {
     return {$pcToast: this, $parentInstance: this};
    },
   };
   function _typeof$3$1(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$3$1 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$3$1(o)
    );
   }
   function _defineProperty$3$1(e, r, t2) {
    return ((r = _toPropertyKey$3$1(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$3$1(t2) {
    var i2 = _toPrimitive$3$1(t2, "string");
    return "symbol" == _typeof$3$1(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$3$1(t2, r) {
    if ("object" != _typeof$3$1(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$3$1(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$1$o = {
    name: "ToastMessage",
    hostName: "Toast",
    extends: script$Q,
    emits: ["close"],
    closeTimeout: null,
    createdAt: null,
    lifeRemaining: null,
    props: {message: {type: null, default: null}, templates: {type: Object, default: null}, closeIcon: {type: String, default: null}, infoIcon: {type: String, default: null}, warnIcon: {type: String, default: null}, errorIcon: {type: String, default: null}, successIcon: {type: String, default: null}, closeButtonProps: {type: null, default: null}, onMouseEnter: {type: Function, default: void 0}, onMouseLeave: {type: Function, default: void 0}, onClick: {type: Function, default: void 0}},
    mounted: function mounted3() {
     if (this.message.life) {
      this.lifeRemaining = this.message.life;
      this.startTimeout();
     }
    },
    beforeUnmount: function beforeUnmount2() {
     this.clearCloseTimeout();
    },
    methods: {
     startTimeout: function startTimeout() {
      var _this = this;
      this.createdAt = new Date().valueOf();
      this.closeTimeout = setTimeout(function () {
       _this.close({message: _this.message, type: "life-end"});
      }, this.lifeRemaining);
     },
     close: function close(params) {
      this.$emit("close", params);
     },
     onCloseClick: function onCloseClick() {
      this.clearCloseTimeout();
      this.close({message: this.message, type: "close"});
     },
     clearCloseTimeout: function clearCloseTimeout() {
      if (this.closeTimeout) {
       clearTimeout(this.closeTimeout);
       this.closeTimeout = null;
      }
     },
     onMessageClick: function onMessageClick(event) {
      var _this$onClick;
      (_this$onClick = this.onClick) === null || _this$onClick === void 0 || _this$onClick.call(this, {originalEvent: event, message: this.message});
     },
     handleMouseEnter: function handleMouseEnter(event) {
      if (this.onMouseEnter) {
       this.onMouseEnter({originalEvent: event, message: this.message});
       if (event.defaultPrevented) {
        return;
       }
       if (this.message.life) {
        this.lifeRemaining = this.createdAt + this.lifeRemaining - new Date().valueOf();
        this.createdAt = null;
        this.clearCloseTimeout();
       }
      }
     },
     handleMouseLeave: function handleMouseLeave(event) {
      if (this.onMouseLeave) {
       this.onMouseLeave({originalEvent: event, message: this.message});
       if (event.defaultPrevented) {
        return;
       }
       if (this.message.life) {
        this.startTimeout();
       }
      }
     },
    },
    computed: {
     iconComponent: function iconComponent() {
      return {info: !this.infoIcon && script$K, success: !this.successIcon && script$M, warn: !this.warnIcon && script$L, error: !this.errorIcon && script$J}[this.message.severity];
     },
     closeAriaLabel: function closeAriaLabel() {
      return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : void 0;
     },
     dataP: function dataP() {
      return f(_defineProperty$3$1({}, this.message.severity, this.message.severity));
     },
    },
    components: {TimesIcon: script$O, InfoCircleIcon: script$K, CheckIcon: script$M, ExclamationTriangleIcon: script$L, TimesCircleIcon: script$J},
    directives: {ripple: Ripple},
   };
   function _typeof$2$1(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$2$1 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$2$1(o)
    );
   }
   function ownKeys$1$1(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$1$1(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$1$1(Object(t2), true).forEach(function (r2) {
         _defineProperty$2$1(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$1$1(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$2$1(e, r, t2) {
    return ((r = _toPropertyKey$2$1(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$2$1(t2) {
    var i2 = _toPrimitive$2$1(t2, "string");
    return "symbol" == _typeof$2$1(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$2$1(t2, r) {
    if ("object" != _typeof$2$1(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$2$1(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var _hoisted_1$1$2 = ["data-p"];
   var _hoisted_2$n = ["data-p"];
   var _hoisted_3$j = ["data-p"];
   var _hoisted_4$f = ["data-p"];
   var _hoisted_5$b = ["aria-label", "data-p"];
   function render$1$3(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: [_ctx.cx("message"), $props.message.styleClass], role: "alert", "aria-live": "assertive", "aria-atomic": "true", "data-p": $options.dataP}, _ctx.ptm("message"), {
       onClick:
        _cache[1] ||
        (_cache[1] = function () {
         return $options.onMessageClick && $options.onMessageClick.apply($options, arguments);
        }),
       onMouseenter:
        _cache[2] ||
        (_cache[2] = function () {
         return $options.handleMouseEnter && $options.handleMouseEnter.apply($options, arguments);
        }),
       onMouseleave:
        _cache[3] ||
        (_cache[3] = function () {
         return $options.handleMouseLeave && $options.handleMouseLeave.apply($options, arguments);
        }),
      }),
      [
       $props.templates.container
        ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.container), {key: 0, message: $props.message, closeCallback: $options.onCloseClick}, null, 8, ["message", "closeCallback"]))
        : (openBlock(),
          createElementBlock(
           "div",
           mergeProps({key: 1, class: [_ctx.cx("messageContent"), $props.message.contentStyleClass]}, _ctx.ptm("messageContent")),
           [
            !$props.templates.message ? (openBlock(), createElementBlock(Fragment, {key: 0}, [(openBlock(), createBlock(resolveDynamicComponent($props.templates.messageicon ? $props.templates.messageicon : $props.templates.icon ? $props.templates.icon : $options.iconComponent && $options.iconComponent.name ? $options.iconComponent : "span"), mergeProps({class: _ctx.cx("messageIcon")}, _ctx.ptm("messageIcon")), null, 16, ["class"])), createElementVNode("div", mergeProps({class: _ctx.cx("messageText"), "data-p": $options.dataP}, _ctx.ptm("messageText")), [createElementVNode("span", mergeProps({class: _ctx.cx("summary"), "data-p": $options.dataP}, _ctx.ptm("summary")), toDisplayString$1($props.message.summary), 17, _hoisted_3$j), $props.message.detail ? (openBlock(), createElementBlock("div", mergeProps({key: 0, class: _ctx.cx("detail"), "data-p": $options.dataP}, _ctx.ptm("detail")), toDisplayString$1($props.message.detail), 17, _hoisted_4$f)) : createCommentVNode("", true)], 16, _hoisted_2$n)], 64)) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.message), {key: 1, message: $props.message}, null, 8, ["message"])),
            $props.message.closable !== false
             ? (openBlock(),
               createElementBlock(
                "div",
                normalizeProps(mergeProps({key: 2}, _ctx.ptm("buttonContainer"))),
                [
                 withDirectives(
                  (openBlock(),
                  createElementBlock(
                   "button",
                   mergeProps(
                    {
                     class: _ctx.cx("closeButton"),
                     type: "button",
                     "aria-label": $options.closeAriaLabel,
                     onClick:
                      _cache[0] ||
                      (_cache[0] = function () {
                       return $options.onCloseClick && $options.onCloseClick.apply($options, arguments);
                      }),
                     autofocus: "",
                     "data-p": $options.dataP,
                    },
                    _objectSpread$1$1(_objectSpread$1$1({}, $props.closeButtonProps), _ctx.ptm("closeButton")),
                   ),
                   [(openBlock(), createBlock(resolveDynamicComponent($props.templates.closeicon || "TimesIcon"), mergeProps({class: [_ctx.cx("closeIcon"), $props.closeIcon]}, _ctx.ptm("closeIcon")), null, 16, ["class"]))],
                   16,
                   _hoisted_5$b,
                  )),
                  [[_directive_ripple]],
                 ),
                ],
                16,
               ))
             : createCommentVNode("", true),
           ],
           16,
          )),
      ],
      16,
      _hoisted_1$1$2,
     )
    );
   }
   script$1$o.render = render$1$3;
   function _typeof$1$2(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$1$2 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$1$2(o)
    );
   }
   function _defineProperty$1$1(e, r, t2) {
    return ((r = _toPropertyKey$1$2(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$1$2(t2) {
    var i2 = _toPrimitive$1$2(t2, "string");
    return "symbol" == _typeof$1$2(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$1$2(t2, r) {
    if ("object" != _typeof$1$2(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$1$2(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   function _toConsumableArray$n(r) {
    return _arrayWithoutHoles$n(r) || _iterableToArray$n(r) || _unsupportedIterableToArray$o(r) || _nonIterableSpread$n();
   }
   function _nonIterableSpread$n() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$o(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$o(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$o(r, a2) : void 0);
    }
   }
   function _iterableToArray$n(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$n(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$o(r);
   }
   function _arrayLikeToArray$o(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var messageIdx = 0;
   var script$I = {
    name: "Toast",
    extends: script$2$3,
    inheritAttrs: false,
    emits: ["close", "life-end"],
    data: function data2() {
     return {messages: []};
    },
    styleElement: null,
    mounted: function mounted4() {
     ToastEventBus.on("add", this.onAdd);
     ToastEventBus.on("remove", this.onRemove);
     ToastEventBus.on("remove-group", this.onRemoveGroup);
     ToastEventBus.on("remove-all-groups", this.onRemoveAllGroups);
     if (this.breakpoints) {
      this.createStyle();
     }
    },
    beforeUnmount: function beforeUnmount3() {
     this.destroyStyle();
     if (this.$refs.container && this.autoZIndex) {
      x$1.clear(this.$refs.container);
     }
     ToastEventBus.off("add", this.onAdd);
     ToastEventBus.off("remove", this.onRemove);
     ToastEventBus.off("remove-group", this.onRemoveGroup);
     ToastEventBus.off("remove-all-groups", this.onRemoveAllGroups);
    },
    methods: {
     add: function add(message3) {
      if (message3.id == null) {
       message3.id = messageIdx++;
      }
      this.messages = [].concat(_toConsumableArray$n(this.messages), [message3]);
     },
     remove: function remove2(params) {
      var index = this.messages.findIndex(function (m2) {
       return m2.id === params.message.id;
      });
      if (index !== -1) {
       this.messages.splice(index, 1);
       this.$emit(params.type, {message: params.message});
      }
     },
     onAdd: function onAdd(message3) {
      if (this.group == message3.group) {
       this.add(message3);
      }
     },
     onRemove: function onRemove(message3) {
      this.remove({message: message3, type: "close"});
     },
     onRemoveGroup: function onRemoveGroup(group) {
      if (this.group === group) {
       this.messages = [];
      }
     },
     onRemoveAllGroups: function onRemoveAllGroups() {
      var _this = this;
      this.messages.forEach(function (message3) {
       return _this.$emit("close", {message: message3});
      });
      this.messages = [];
     },
     onEnter: function onEnter() {
      if (this.autoZIndex) {
       x$1.set("modal", this.$refs.container, this.baseZIndex || this.$primevue.config.zIndex.modal);
      }
     },
     onLeave: function onLeave() {
      var _this2 = this;
      if (this.$refs.container && this.autoZIndex && l$1(this.messages)) {
       setTimeout(function () {
        x$1.clear(_this2.$refs.container);
       }, 200);
      }
     },
     createStyle: function createStyle() {
      if (!this.styleElement && !this.isUnstyled) {
       var _this$$primevue;
       this.styleElement = document.createElement("style");
       this.styleElement.type = "text/css";
       _t(this.styleElement, "nonce", (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);
       document.head.appendChild(this.styleElement);
       var innerHTML = "";
       for (var breakpoint in this.breakpoints) {
        var breakpointStyle = "";
        for (var styleProp in this.breakpoints[breakpoint]) {
         breakpointStyle += styleProp + ":" + this.breakpoints[breakpoint][styleProp] + "!important;";
        }
        innerHTML += "\n                        @media screen and (max-width: ".concat(breakpoint, ") {\n                            .p-toast[").concat(this.$attrSelector, "] {\n                                ").concat(breakpointStyle, "\n                            }\n                        }\n                    ");
       }
       this.styleElement.innerHTML = innerHTML;
      }
     },
     destroyStyle: function destroyStyle() {
      if (this.styleElement) {
       document.head.removeChild(this.styleElement);
       this.styleElement = null;
      }
     },
    },
    computed: {
     dataP: function dataP2() {
      return f(_defineProperty$1$1({}, this.position, this.position));
     },
    },
    components: {ToastMessage: script$1$o, Portal: script$N},
   };
   function _typeof$f(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$f =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$f(o)
    );
   }
   function ownKeys$6(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$6(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$6(Object(t2), true).forEach(function (r2) {
         _defineProperty$e(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$6(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$e(e, r, t2) {
    return ((r = _toPropertyKey$e(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$e(t2) {
    var i2 = _toPrimitive$e(t2, "string");
    return "symbol" == _typeof$f(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$e(t2, r) {
    if ("object" != _typeof$f(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$f(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var _hoisted_1$11 = ["data-p"];
   function render$18(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_ToastMessage = resolveComponent("ToastMessage");
    var _component_Portal = resolveComponent("Portal");
    return (
     openBlock(),
     createBlock(_component_Portal, null, {
      default: withCtx(function () {
       return [
        createElementVNode(
         "div",
         mergeProps({ref: "container", class: _ctx.cx("root"), style: _ctx.sx("root", true, {position: _ctx.position}), "data-p": $options.dataP}, _ctx.ptmi("root")),
         [
          createVNode(
           TransitionGroup,
           mergeProps({name: "p-toast-message", tag: "div", onEnter: $options.onEnter, onLeave: $options.onLeave}, _objectSpread$6({}, _ctx.ptm("transition"))),
           {
            default: withCtx(function () {
             return [
              (openBlock(true),
              createElementBlock(
               Fragment,
               null,
               renderList($data.messages, function (msg) {
                return (
                 openBlock(),
                 createBlock(
                  _component_ToastMessage,
                  {
                   key: msg.id,
                   message: msg,
                   templates: _ctx.$slots,
                   closeIcon: _ctx.closeIcon,
                   infoIcon: _ctx.infoIcon,
                   warnIcon: _ctx.warnIcon,
                   errorIcon: _ctx.errorIcon,
                   successIcon: _ctx.successIcon,
                   closeButtonProps: _ctx.closeButtonProps,
                   onMouseEnter: _ctx.onMouseEnter,
                   onMouseLeave: _ctx.onMouseLeave,
                   onClick: _ctx.onClick,
                   unstyled: _ctx.unstyled,
                   onClose:
                    _cache[0] ||
                    (_cache[0] = function ($event) {
                     return $options.remove($event);
                    }),
                   pt: _ctx.pt,
                  },
                  null,
                  8,
                  ["message", "templates", "closeIcon", "infoIcon", "warnIcon", "errorIcon", "successIcon", "closeButtonProps", "onMouseEnter", "onMouseLeave", "onClick", "unstyled", "pt"],
                 )
                );
               }),
               128,
              )),
             ];
            }),
            _: 1,
           },
           16,
           ["onEnter", "onLeave"],
          ),
         ],
         16,
         _hoisted_1$11,
        ),
       ];
      }),
      _: 1,
     })
    );
   }
   script$I.render = render$18;
   const concatArrays = (array1, array2) => {
    const combinedArray = new Array(array1.length + array2.length);
    for (let i2 = 0; i2 < array1.length; i2++) {
     combinedArray[i2] = array1[i2];
    }
    for (let i2 = 0; i2 < array2.length; i2++) {
     combinedArray[array1.length + i2] = array2[i2];
    }
    return combinedArray;
   };
   const createClassValidatorObject = (classGroupId, validator2) => ({classGroupId, validator: validator2});
   const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId) => ({nextPart, validators, classGroupId});
   const CLASS_PART_SEPARATOR = "-";
   const EMPTY_CONFLICTS = [];
   const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
   const createClassGroupUtils = (config) => {
    const classMap = createClassMap(config);
    const {conflictingClassGroups, conflictingClassGroupModifiers} = config;
    const getClassGroupId = (className) => {
     if (className.startsWith("[") && className.endsWith("]")) {
      return getGroupIdForArbitraryProperty(className);
     }
     const classParts = className.split(CLASS_PART_SEPARATOR);
     const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
     return getGroupRecursive(classParts, startIndex, classMap);
    };
    const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
     if (hasPostfixModifier) {
      const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
      const baseConflicts = conflictingClassGroups[classGroupId];
      if (modifierConflicts) {
       if (baseConflicts) {
        return concatArrays(baseConflicts, modifierConflicts);
       }
       return modifierConflicts;
      }
      return baseConflicts || EMPTY_CONFLICTS;
     }
     return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
    };
    return {getClassGroupId, getConflictingClassGroupIds};
   };
   const getGroupRecursive = (classParts, startIndex, classPartObject) => {
    const classPathsLength = classParts.length - startIndex;
    if (classPathsLength === 0) {
     return classPartObject.classGroupId;
    }
    const currentClassPart = classParts[startIndex];
    const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
    if (nextClassPartObject) {
     const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
     if (result) return result;
    }
    const validators = classPartObject.validators;
    if (validators === null) {
     return void 0;
    }
    const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
    const validatorsLength = validators.length;
    for (let i2 = 0; i2 < validatorsLength; i2++) {
     const validatorObj = validators[i2];
     if (validatorObj.validator(classRest)) {
      return validatorObj.classGroupId;
     }
    }
    return void 0;
   };
   const getGroupIdForArbitraryProperty = (className) =>
    className.slice(1, -1).indexOf(":") === -1
     ? void 0
     : (() => {
        const content = className.slice(1, -1);
        const colonIndex = content.indexOf(":");
        const property = content.slice(0, colonIndex);
        return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
       })();
   const createClassMap = (config) => {
    const {theme, classGroups} = config;
    return processClassGroups(classGroups, theme);
   };
   const processClassGroups = (classGroups, theme) => {
    const classMap = createClassPartObject();
    for (const classGroupId in classGroups) {
     const group = classGroups[classGroupId];
     processClassesRecursively(group, classMap, classGroupId, theme);
    }
    return classMap;
   };
   const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
    const len = classGroup.length;
    for (let i2 = 0; i2 < len; i2++) {
     const classDefinition = classGroup[i2];
     processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
    }
   };
   const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
    if (typeof classDefinition === "string") {
     processStringDefinition(classDefinition, classPartObject, classGroupId);
     return;
    }
    if (typeof classDefinition === "function") {
     processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
     return;
    }
    processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
   };
   const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
    const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
    classPartObjectToEdit.classGroupId = classGroupId;
   };
   const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
    if (isThemeGetter(classDefinition)) {
     processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
     return;
    }
    if (classPartObject.validators === null) {
     classPartObject.validators = [];
    }
    classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
   };
   const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
    const entries = Object.entries(classDefinition);
    const len = entries.length;
    for (let i2 = 0; i2 < len; i2++) {
     const [key, value2] = entries[i2];
     processClassesRecursively(value2, getPart(classPartObject, key), classGroupId, theme);
    }
   };
   const getPart = (classPartObject, path) => {
    let current = classPartObject;
    const parts = path.split(CLASS_PART_SEPARATOR);
    const len = parts.length;
    for (let i2 = 0; i2 < len; i2++) {
     const part = parts[i2];
     let next2 = current.nextPart.get(part);
     if (!next2) {
      next2 = createClassPartObject();
      current.nextPart.set(part, next2);
     }
     current = next2;
    }
    return current;
   };
   const isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
   const createLruCache = (maxCacheSize) => {
    if (maxCacheSize < 1) {
     return {get: () => void 0, set: () => {}};
    }
    let cacheSize = 0;
    let cache2 = Object.create(null);
    let previousCache = Object.create(null);
    const update = (key, value2) => {
     cache2[key] = value2;
     cacheSize++;
     if (cacheSize > maxCacheSize) {
      cacheSize = 0;
      previousCache = cache2;
      cache2 = Object.create(null);
     }
    };
    return {
     get(key) {
      let value2 = cache2[key];
      if (value2 !== void 0) {
       return value2;
      }
      if ((value2 = previousCache[key]) !== void 0) {
       update(key, value2);
       return value2;
      }
     },
     set(key, value2) {
      if (key in cache2) {
       cache2[key] = value2;
      } else {
       update(key, value2);
      }
     },
    };
   };
   const IMPORTANT_MODIFIER = "!";
   const MODIFIER_SEPARATOR = ":";
   const EMPTY_MODIFIERS = [];
   const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal});
   const createParseClassName = (config) => {
    const {prefix: prefix2, experimentalParseClassName} = config;
    let parseClassName = (className) => {
     const modifiers = [];
     let bracketDepth = 0;
     let parenDepth = 0;
     let modifierStart = 0;
     let postfixModifierPosition;
     const len = className.length;
     for (let index = 0; index < len; index++) {
      const currentCharacter = className[index];
      if (bracketDepth === 0 && parenDepth === 0) {
       if (currentCharacter === MODIFIER_SEPARATOR) {
        modifiers.push(className.slice(modifierStart, index));
        modifierStart = index + 1;
        continue;
       }
       if (currentCharacter === "/") {
        postfixModifierPosition = index;
        continue;
       }
      }
      if (currentCharacter === "[") bracketDepth++;
      else if (currentCharacter === "]") bracketDepth--;
      else if (currentCharacter === "(") parenDepth++;
      else if (currentCharacter === ")") parenDepth--;
     }
     const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
     let baseClassName = baseClassNameWithImportantModifier;
     let hasImportantModifier = false;
     if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
      baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
      hasImportantModifier = true;
     } else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
      baseClassName = baseClassNameWithImportantModifier.slice(1);
      hasImportantModifier = true;
     }
     const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
     return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
    };
    if (prefix2) {
     const fullPrefix = prefix2 + MODIFIER_SEPARATOR;
     const parseClassNameOriginal = parseClassName;
     parseClassName = (className) => (className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true));
    }
    if (experimentalParseClassName) {
     const parseClassNameOriginal = parseClassName;
     parseClassName = (className) => experimentalParseClassName({className, parseClassName: parseClassNameOriginal});
    }
    return parseClassName;
   };
   const createSortModifiers = (config) => {
    const modifierWeights = new Map();
    config.orderSensitiveModifiers.forEach((mod, index) => {
     modifierWeights.set(mod, 1e6 + index);
    });
    return (modifiers) => {
     const result = [];
     let currentSegment = [];
     for (let i2 = 0; i2 < modifiers.length; i2++) {
      const modifier = modifiers[i2];
      const isArbitrary = modifier[0] === "[";
      const isOrderSensitive = modifierWeights.has(modifier);
      if (isArbitrary || isOrderSensitive) {
       if (currentSegment.length > 0) {
        currentSegment.sort();
        result.push(...currentSegment);
        currentSegment = [];
       }
       result.push(modifier);
      } else {
       currentSegment.push(modifier);
      }
     }
     if (currentSegment.length > 0) {
      currentSegment.sort();
      result.push(...currentSegment);
     }
     return result;
    };
   };
   const createConfigUtils = (config) => ({cache: createLruCache(config.cacheSize), parseClassName: createParseClassName(config), sortModifiers: createSortModifiers(config), ...createClassGroupUtils(config)});
   const SPLIT_CLASSES_REGEX = /\s+/;
   const mergeClassList = (classList, configUtils) => {
    const {parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers} = configUtils;
    const classGroupsInConflict = [];
    const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
    let result = "";
    for (let index = classNames.length - 1; index >= 0; index -= 1) {
     const originalClassName = classNames[index];
     const {isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition} = parseClassName(originalClassName);
     if (isExternal) {
      result = originalClassName + (result.length > 0 ? " " + result : result);
      continue;
     }
     let hasPostfixModifier = !!maybePostfixModifierPosition;
     let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
     if (!classGroupId) {
      if (!hasPostfixModifier) {
       result = originalClassName + (result.length > 0 ? " " + result : result);
       continue;
      }
      classGroupId = getClassGroupId(baseClassName);
      if (!classGroupId) {
       result = originalClassName + (result.length > 0 ? " " + result : result);
       continue;
      }
      hasPostfixModifier = false;
     }
     const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
     const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
     const classId = modifierId + classGroupId;
     if (classGroupsInConflict.indexOf(classId) > -1) {
      continue;
     }
     classGroupsInConflict.push(classId);
     const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
     for (let i2 = 0; i2 < conflictGroups.length; ++i2) {
      const group = conflictGroups[i2];
      classGroupsInConflict.push(modifierId + group);
     }
     result = originalClassName + (result.length > 0 ? " " + result : result);
    }
    return result;
   };
   const twJoin = (...classLists) => {
    let index = 0;
    let argument;
    let resolvedValue;
    let string = "";
    while (index < classLists.length) {
     if ((argument = classLists[index++])) {
      if ((resolvedValue = toValue(argument))) {
       string && (string += " ");
       string += resolvedValue;
      }
     }
    }
    return string;
   };
   const toValue = (mix) => {
    if (typeof mix === "string") {
     return mix;
    }
    let resolvedValue;
    let string = "";
    for (let k2 = 0; k2 < mix.length; k2++) {
     if (mix[k2]) {
      if ((resolvedValue = toValue(mix[k2]))) {
       string && (string += " ");
       string += resolvedValue;
      }
     }
    }
    return string;
   };
   const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
    let configUtils;
    let cacheGet;
    let cacheSet;
    let functionToCall;
    const initTailwindMerge = (classList) => {
     const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
     configUtils = createConfigUtils(config);
     cacheGet = configUtils.cache.get;
     cacheSet = configUtils.cache.set;
     functionToCall = tailwindMerge;
     return tailwindMerge(classList);
    };
    const tailwindMerge = (classList) => {
     const cachedResult = cacheGet(classList);
     if (cachedResult) {
      return cachedResult;
     }
     const result = mergeClassList(classList, configUtils);
     cacheSet(classList, result);
     return result;
    };
    functionToCall = initTailwindMerge;
    return (...args) => functionToCall(twJoin(...args));
   };
   const fallbackThemeArr = [];
   const fromTheme = (key) => {
    const themeGetter = (theme) => theme[key] || fallbackThemeArr;
    themeGetter.isThemeGetter = true;
    return themeGetter;
   };
   const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
   const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
   const fractionRegex = /^\d+\/\d+$/;
   const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
   const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
   const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
   const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
   const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
   const isFraction = (value2) => fractionRegex.test(value2);
   const isNumber = (value2) => !!value2 && !Number.isNaN(Number(value2));
   const isInteger = (value2) => !!value2 && Number.isInteger(Number(value2));
   const isPercent = (value2) => value2.endsWith("%") && isNumber(value2.slice(0, -1));
   const isTshirtSize = (value2) => tshirtUnitRegex.test(value2);
   const isAny = () => true;
   const isLengthOnly = (value2) => lengthUnitRegex.test(value2) && !colorFunctionRegex.test(value2);
   const isNever = () => false;
   const isShadow = (value2) => shadowRegex.test(value2);
   const isImage = (value2) => imageRegex.test(value2);
   const isAnyNonArbitrary = (value2) => !isArbitraryValue(value2) && !isArbitraryVariable(value2);
   const isArbitrarySize = (value2) => getIsArbitraryValue(value2, isLabelSize, isNever);
   const isArbitraryValue = (value2) => arbitraryValueRegex.test(value2);
   const isArbitraryLength = (value2) => getIsArbitraryValue(value2, isLabelLength, isLengthOnly);
   const isArbitraryNumber = (value2) => getIsArbitraryValue(value2, isLabelNumber, isNumber);
   const isArbitraryPosition = (value2) => getIsArbitraryValue(value2, isLabelPosition, isNever);
   const isArbitraryImage = (value2) => getIsArbitraryValue(value2, isLabelImage, isImage);
   const isArbitraryShadow = (value2) => getIsArbitraryValue(value2, isLabelShadow, isShadow);
   const isArbitraryVariable = (value2) => arbitraryVariableRegex.test(value2);
   const isArbitraryVariableLength = (value2) => getIsArbitraryVariable(value2, isLabelLength);
   const isArbitraryVariableFamilyName = (value2) => getIsArbitraryVariable(value2, isLabelFamilyName);
   const isArbitraryVariablePosition = (value2) => getIsArbitraryVariable(value2, isLabelPosition);
   const isArbitraryVariableSize = (value2) => getIsArbitraryVariable(value2, isLabelSize);
   const isArbitraryVariableImage = (value2) => getIsArbitraryVariable(value2, isLabelImage);
   const isArbitraryVariableShadow = (value2) => getIsArbitraryVariable(value2, isLabelShadow, true);
   const getIsArbitraryValue = (value2, testLabel, testValue) => {
    const result = arbitraryValueRegex.exec(value2);
    if (result) {
     if (result[1]) {
      return testLabel(result[1]);
     }
     return testValue(result[2]);
    }
    return false;
   };
   const getIsArbitraryVariable = (value2, testLabel, shouldMatchNoLabel = false) => {
    const result = arbitraryVariableRegex.exec(value2);
    if (result) {
     if (result[1]) {
      return testLabel(result[1]);
     }
     return shouldMatchNoLabel;
    }
    return false;
   };
   const isLabelPosition = (label6) => label6 === "position" || label6 === "percentage";
   const isLabelImage = (label6) => label6 === "image" || label6 === "url";
   const isLabelSize = (label6) => label6 === "length" || label6 === "size" || label6 === "bg-size";
   const isLabelLength = (label6) => label6 === "length";
   const isLabelNumber = (label6) => label6 === "number";
   const isLabelFamilyName = (label6) => label6 === "family-name";
   const isLabelShadow = (label6) => label6 === "shadow";
   const getDefaultConfig = () => {
    const themeColor = fromTheme("color");
    const themeFont = fromTheme("font");
    const themeText = fromTheme("text");
    const themeFontWeight = fromTheme("font-weight");
    const themeTracking = fromTheme("tracking");
    const themeLeading = fromTheme("leading");
    const themeBreakpoint = fromTheme("breakpoint");
    const themeContainer = fromTheme("container");
    const themeSpacing = fromTheme("spacing");
    const themeRadius = fromTheme("radius");
    const themeShadow = fromTheme("shadow");
    const themeInsetShadow = fromTheme("inset-shadow");
    const themeTextShadow = fromTheme("text-shadow");
    const themeDropShadow = fromTheme("drop-shadow");
    const themeBlur = fromTheme("blur");
    const themePerspective = fromTheme("perspective");
    const themeAspect = fromTheme("aspect");
    const themeEase = fromTheme("ease");
    const themeAnimate = fromTheme("animate");
    const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
    const scalePosition = () => ["center", "top", "bottom", "left", "right", "top-left", "left-top", "top-right", "right-top", "bottom-right", "right-bottom", "bottom-left", "left-bottom"];
    const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
    const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
    const scaleOverscroll = () => ["auto", "contain", "none"];
    const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
    const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
    const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
    const scaleGridColRowStartAndEnd = () => ["auto", {span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]}, isInteger, isArbitraryVariable, isArbitraryValue];
    const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
    const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
    const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
    const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
    const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
    const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
    const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
    const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {position: [isArbitraryVariable, isArbitraryValue]}];
    const scaleBgRepeat = () => ["no-repeat", {repeat: ["", "x", "y", "space", "round"]}];
    const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {size: [isArbitraryVariable, isArbitraryValue]}];
    const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
    const scaleRadius = () => ["", "none", "full", themeRadius, isArbitraryVariable, isArbitraryValue];
    const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
    const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
    const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
    const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
    const scaleBlur = () => ["", "none", themeBlur, isArbitraryVariable, isArbitraryValue];
    const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
    const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
    const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
    const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
    return {
     cacheSize: 500,
     theme: {animate: ["spin", "ping", "pulse", "bounce"], aspect: ["video"], blur: [isTshirtSize], breakpoint: [isTshirtSize], color: [isAny], container: [isTshirtSize], "drop-shadow": [isTshirtSize], ease: ["in", "out", "in-out"], font: [isAnyNonArbitrary], "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"], "inset-shadow": [isTshirtSize], leading: ["none", "tight", "snug", "normal", "relaxed", "loose"], perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"], radius: [isTshirtSize], shadow: [isTshirtSize], spacing: ["px", isNumber], text: [isTshirtSize], "text-shadow": [isTshirtSize], tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]},
     classGroups: {
      aspect: [{aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]}],
      container: ["container"],
      columns: [{columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]}],
      "break-after": [{"break-after": scaleBreak()}],
      "break-before": [{"break-before": scaleBreak()}],
      "break-inside": [{"break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]}],
      "box-decoration": [{"box-decoration": ["slice", "clone"]}],
      box: [{box: ["border", "content"]}],
      display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
      sr: ["sr-only", "not-sr-only"],
      float: [{float: ["right", "left", "none", "start", "end"]}],
      clear: [{clear: ["left", "right", "both", "none", "start", "end"]}],
      isolation: ["isolate", "isolation-auto"],
      "object-fit": [{object: ["contain", "cover", "fill", "none", "scale-down"]}],
      "object-position": [{object: scalePositionWithArbitrary()}],
      overflow: [{overflow: scaleOverflow()}],
      "overflow-x": [{"overflow-x": scaleOverflow()}],
      "overflow-y": [{"overflow-y": scaleOverflow()}],
      overscroll: [{overscroll: scaleOverscroll()}],
      "overscroll-x": [{"overscroll-x": scaleOverscroll()}],
      "overscroll-y": [{"overscroll-y": scaleOverscroll()}],
      position: ["static", "fixed", "absolute", "relative", "sticky"],
      inset: [{inset: scaleInset()}],
      "inset-x": [{"inset-x": scaleInset()}],
      "inset-y": [{"inset-y": scaleInset()}],
      start: [{start: scaleInset()}],
      end: [{end: scaleInset()}],
      top: [{top: scaleInset()}],
      right: [{right: scaleInset()}],
      bottom: [{bottom: scaleInset()}],
      left: [{left: scaleInset()}],
      visibility: ["visible", "invisible", "collapse"],
      z: [{z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]}],

      basis: [{basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]}],
      "flex-direction": [{flex: ["row", "row-reverse", "col", "col-reverse"]}],
      "flex-wrap": [{flex: ["nowrap", "wrap", "wrap-reverse"]}],
      flex: [{flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]}],
      grow: [{grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      shrink: [{shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      order: [{order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]}],
      "grid-cols": [{"grid-cols": scaleGridTemplateColsRows()}],
      "col-start-end": [{col: scaleGridColRowStartAndEnd()}],
      "col-start": [{"col-start": scaleGridColRowStartOrEnd()}],
      "col-end": [{"col-end": scaleGridColRowStartOrEnd()}],
      "grid-rows": [{"grid-rows": scaleGridTemplateColsRows()}],
      "row-start-end": [{row: scaleGridColRowStartAndEnd()}],
      "row-start": [{"row-start": scaleGridColRowStartOrEnd()}],
      "row-end": [{"row-end": scaleGridColRowStartOrEnd()}],
      "grid-flow": [{"grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]}],
      "auto-cols": [{"auto-cols": scaleGridAutoColsRows()}],
      "auto-rows": [{"auto-rows": scaleGridAutoColsRows()}],
      gap: [{gap: scaleUnambiguousSpacing()}],
      "gap-x": [{"gap-x": scaleUnambiguousSpacing()}],
      "gap-y": [{"gap-y": scaleUnambiguousSpacing()}],
      "justify-content": [{justify: [...scaleAlignPrimaryAxis(), "normal"]}],
      "justify-items": [{"justify-items": [...scaleAlignSecondaryAxis(), "normal"]}],
      "justify-self": [{"justify-self": ["auto", ...scaleAlignSecondaryAxis()]}],
      "align-content": [{content: ["normal", ...scaleAlignPrimaryAxis()]}],
      "align-items": [{items: [...scaleAlignSecondaryAxis(), {baseline: ["", "last"]}]}],
      "align-self": [{self: ["auto", ...scaleAlignSecondaryAxis(), {baseline: ["", "last"]}]}],
      "place-content": [{"place-content": scaleAlignPrimaryAxis()}],
      "place-items": [{"place-items": [...scaleAlignSecondaryAxis(), "baseline"]}],
      "place-self": [{"place-self": ["auto", ...scaleAlignSecondaryAxis()]}],

      p: [{p: scaleUnambiguousSpacing()}],
      px: [{px: scaleUnambiguousSpacing()}],
      py: [{py: scaleUnambiguousSpacing()}],
      ps: [{ps: scaleUnambiguousSpacing()}],
      pe: [{pe: scaleUnambiguousSpacing()}],
      pt: [{pt: scaleUnambiguousSpacing()}],
      pr: [{pr: scaleUnambiguousSpacing()}],
      pb: [{pb: scaleUnambiguousSpacing()}],
      pl: [{pl: scaleUnambiguousSpacing()}],
      m: [{m: scaleMargin()}],
      mx: [{mx: scaleMargin()}],
      my: [{my: scaleMargin()}],
      ms: [{ms: scaleMargin()}],
      me: [{me: scaleMargin()}],
      mt: [{mt: scaleMargin()}],
      mr: [{mr: scaleMargin()}],
      mb: [{mb: scaleMargin()}],
      ml: [{ml: scaleMargin()}],
      "space-x": [{"space-x": scaleUnambiguousSpacing()}],
      "space-x-reverse": ["space-x-reverse"],
      "space-y": [{"space-y": scaleUnambiguousSpacing()}],
      "space-y-reverse": ["space-y-reverse"],

      size: [{size: scaleSizing()}],
      w: [{w: [themeContainer, "screen", ...scaleSizing()]}],
      "min-w": [{"min-w": [themeContainer, "screen", "none", ...scaleSizing()]}],
      "max-w": [{"max-w": [themeContainer, "screen", "none", "prose", {screen: [themeBreakpoint]}, ...scaleSizing()]}],
      h: [{h: ["screen", "lh", ...scaleSizing()]}],
      "min-h": [{"min-h": ["screen", "lh", "none", ...scaleSizing()]}],
      "max-h": [{"max-h": ["screen", "lh", ...scaleSizing()]}],

      "font-size": [{text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]}],
      "font-smoothing": ["antialiased", "subpixel-antialiased"],
      "font-style": ["italic", "not-italic"],
      "font-weight": [{font: [themeFontWeight, isArbitraryVariable, isArbitraryNumber]}],
      "font-stretch": [{"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]}],
      "font-family": [{font: [isArbitraryVariableFamilyName, isArbitraryValue, themeFont]}],
      "fvn-normal": ["normal-nums"],
      "fvn-ordinal": ["ordinal"],
      "fvn-slashed-zero": ["slashed-zero"],
      "fvn-figure": ["lining-nums", "oldstyle-nums"],
      "fvn-spacing": ["proportional-nums", "tabular-nums"],
      "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
      tracking: [{tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]}],
      "line-clamp": [{"line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]}],
      leading: [{leading: [themeLeading, ...scaleUnambiguousSpacing()]}],
      "list-image": [{"list-image": ["none", isArbitraryVariable, isArbitraryValue]}],
      "list-style-position": [{list: ["inside", "outside"]}],
      "list-style-type": [{list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]}],
      "text-alignment": [{text: ["left", "center", "right", "justify", "start", "end"]}],
      "placeholder-color": [{placeholder: scaleColor()}],
      "text-color": [{text: scaleColor()}],
      "text-decoration": ["underline", "overline", "line-through", "no-underline"],
      "text-decoration-style": [{decoration: [...scaleLineStyle(), "wavy"]}],
      "text-decoration-thickness": [{decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]}],
      "text-decoration-color": [{decoration: scaleColor()}],
      "underline-offset": [{"underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]}],
      "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
      "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
      "text-wrap": [{text: ["wrap", "nowrap", "balance", "pretty"]}],
      indent: [{indent: scaleUnambiguousSpacing()}],
      "vertical-align": [{align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]}],
      whitespace: [{whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]}],
      break: [{break: ["normal", "words", "all", "keep"]}],
      wrap: [{wrap: ["break-word", "anywhere", "normal"]}],
      hyphens: [{hyphens: ["none", "manual", "auto"]}],
      content: [{content: ["none", isArbitraryVariable, isArbitraryValue]}],

      "bg-attachment": [{bg: ["fixed", "local", "scroll"]}],
      "bg-clip": [{"bg-clip": ["border", "padding", "content", "text"]}],
      "bg-origin": [{"bg-origin": ["border", "padding", "content"]}],
      "bg-position": [{bg: scaleBgPosition()}],
      "bg-repeat": [{bg: scaleBgRepeat()}],
      "bg-size": [{bg: scaleBgSize()}],
      "bg-image": [{bg: ["none", {linear: [{to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]}, isInteger, isArbitraryVariable, isArbitraryValue], radial: ["", isArbitraryVariable, isArbitraryValue], conic: [isInteger, isArbitraryVariable, isArbitraryValue]}, isArbitraryVariableImage, isArbitraryImage]}],
      "bg-color": [{bg: scaleColor()}],
      "gradient-from-pos": [{from: scaleGradientStopPosition()}],
      "gradient-via-pos": [{via: scaleGradientStopPosition()}],
      "gradient-to-pos": [{to: scaleGradientStopPosition()}],
      "gradient-from": [{from: scaleColor()}],
      "gradient-via": [{via: scaleColor()}],
      "gradient-to": [{to: scaleColor()}],

      rounded: [{rounded: scaleRadius()}],
      "rounded-s": [{"rounded-s": scaleRadius()}],
      "rounded-e": [{"rounded-e": scaleRadius()}],
      "rounded-t": [{"rounded-t": scaleRadius()}],
      "rounded-r": [{"rounded-r": scaleRadius()}],
      "rounded-b": [{"rounded-b": scaleRadius()}],
      "rounded-l": [{"rounded-l": scaleRadius()}],
      "rounded-ss": [{"rounded-ss": scaleRadius()}],
      "rounded-se": [{"rounded-se": scaleRadius()}],
      "rounded-ee": [{"rounded-ee": scaleRadius()}],
      "rounded-es": [{"rounded-es": scaleRadius()}],
      "rounded-tl": [{"rounded-tl": scaleRadius()}],
      "rounded-tr": [{"rounded-tr": scaleRadius()}],
      "rounded-br": [{"rounded-br": scaleRadius()}],
      "rounded-bl": [{"rounded-bl": scaleRadius()}],
      "border-w": [{border: scaleBorderWidth()}],
      "border-w-x": [{"border-x": scaleBorderWidth()}],
      "border-w-y": [{"border-y": scaleBorderWidth()}],
      "border-w-s": [{"border-s": scaleBorderWidth()}],
      "border-w-e": [{"border-e": scaleBorderWidth()}],
      "border-w-t": [{"border-t": scaleBorderWidth()}],
      "border-w-r": [{"border-r": scaleBorderWidth()}],
      "border-w-b": [{"border-b": scaleBorderWidth()}],
      "border-w-l": [{"border-l": scaleBorderWidth()}],
      "divide-x": [{"divide-x": scaleBorderWidth()}],
      "divide-x-reverse": ["divide-x-reverse"],
      "divide-y": [{"divide-y": scaleBorderWidth()}],
      "divide-y-reverse": ["divide-y-reverse"],
      "border-style": [{border: [...scaleLineStyle(), "hidden", "none"]}],
      "divide-style": [{divide: [...scaleLineStyle(), "hidden", "none"]}],
      "border-color": [{border: scaleColor()}],
      "border-color-x": [{"border-x": scaleColor()}],
      "border-color-y": [{"border-y": scaleColor()}],
      "border-color-s": [{"border-s": scaleColor()}],
      "border-color-e": [{"border-e": scaleColor()}],
      "border-color-t": [{"border-t": scaleColor()}],
      "border-color-r": [{"border-r": scaleColor()}],
      "border-color-b": [{"border-b": scaleColor()}],
      "border-color-l": [{"border-l": scaleColor()}],
      "divide-color": [{divide: scaleColor()}],
      "outline-style": [{outline: [...scaleLineStyle(), "none", "hidden"]}],
      "outline-offset": [{"outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "outline-w": [{outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]}],
      "outline-color": [{outline: scaleColor()}],

      shadow: [{shadow: ["", "none", themeShadow, isArbitraryVariableShadow, isArbitraryShadow]}],
      "shadow-color": [{shadow: scaleColor()}],
      "inset-shadow": [{"inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]}],
      "inset-shadow-color": [{"inset-shadow": scaleColor()}],
      "ring-w": [{ring: scaleBorderWidth()}],
      "ring-w-inset": ["ring-inset"],
      "ring-color": [{ring: scaleColor()}],
      "ring-offset-w": [{"ring-offset": [isNumber, isArbitraryLength]}],
      "ring-offset-color": [{"ring-offset": scaleColor()}],
      "inset-ring-w": [{"inset-ring": scaleBorderWidth()}],
      "inset-ring-color": [{"inset-ring": scaleColor()}],
      "text-shadow": [{"text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]}],
      "text-shadow-color": [{"text-shadow": scaleColor()}],
      opacity: [{opacity: [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "mix-blend": [{"mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]}],
      "bg-blend": [{"bg-blend": scaleBlendMode()}],
      "mask-clip": [{"mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]}, "mask-no-clip"],
      "mask-composite": [{mask: ["add", "subtract", "intersect", "exclude"]}],
      "mask-image-linear-pos": [{"mask-linear": [isNumber]}],
      "mask-image-linear-from-pos": [{"mask-linear-from": scaleMaskImagePosition()}],
      "mask-image-linear-to-pos": [{"mask-linear-to": scaleMaskImagePosition()}],
      "mask-image-linear-from-color": [{"mask-linear-from": scaleColor()}],
      "mask-image-linear-to-color": [{"mask-linear-to": scaleColor()}],
      "mask-image-t-from-pos": [{"mask-t-from": scaleMaskImagePosition()}],
      "mask-image-t-to-pos": [{"mask-t-to": scaleMaskImagePosition()}],
      "mask-image-t-from-color": [{"mask-t-from": scaleColor()}],
      "mask-image-t-to-color": [{"mask-t-to": scaleColor()}],
      "mask-image-r-from-pos": [{"mask-r-from": scaleMaskImagePosition()}],
      "mask-image-r-to-pos": [{"mask-r-to": scaleMaskImagePosition()}],
      "mask-image-r-from-color": [{"mask-r-from": scaleColor()}],
      "mask-image-r-to-color": [{"mask-r-to": scaleColor()}],
      "mask-image-b-from-pos": [{"mask-b-from": scaleMaskImagePosition()}],
      "mask-image-b-to-pos": [{"mask-b-to": scaleMaskImagePosition()}],
      "mask-image-b-from-color": [{"mask-b-from": scaleColor()}],
      "mask-image-b-to-color": [{"mask-b-to": scaleColor()}],
      "mask-image-l-from-pos": [{"mask-l-from": scaleMaskImagePosition()}],
      "mask-image-l-to-pos": [{"mask-l-to": scaleMaskImagePosition()}],
      "mask-image-l-from-color": [{"mask-l-from": scaleColor()}],
      "mask-image-l-to-color": [{"mask-l-to": scaleColor()}],
      "mask-image-x-from-pos": [{"mask-x-from": scaleMaskImagePosition()}],
      "mask-image-x-to-pos": [{"mask-x-to": scaleMaskImagePosition()}],
      "mask-image-x-from-color": [{"mask-x-from": scaleColor()}],
      "mask-image-x-to-color": [{"mask-x-to": scaleColor()}],
      "mask-image-y-from-pos": [{"mask-y-from": scaleMaskImagePosition()}],
      "mask-image-y-to-pos": [{"mask-y-to": scaleMaskImagePosition()}],
      "mask-image-y-from-color": [{"mask-y-from": scaleColor()}],
      "mask-image-y-to-color": [{"mask-y-to": scaleColor()}],
      "mask-image-radial": [{"mask-radial": [isArbitraryVariable, isArbitraryValue]}],
      "mask-image-radial-from-pos": [{"mask-radial-from": scaleMaskImagePosition()}],
      "mask-image-radial-to-pos": [{"mask-radial-to": scaleMaskImagePosition()}],
      "mask-image-radial-from-color": [{"mask-radial-from": scaleColor()}],
      "mask-image-radial-to-color": [{"mask-radial-to": scaleColor()}],
      "mask-image-radial-shape": [{"mask-radial": ["circle", "ellipse"]}],
      "mask-image-radial-size": [{"mask-radial": [{closest: ["side", "corner"], farthest: ["side", "corner"]}]}],
      "mask-image-radial-pos": [{"mask-radial-at": scalePosition()}],
      "mask-image-conic-pos": [{"mask-conic": [isNumber]}],
      "mask-image-conic-from-pos": [{"mask-conic-from": scaleMaskImagePosition()}],
      "mask-image-conic-to-pos": [{"mask-conic-to": scaleMaskImagePosition()}],
      "mask-image-conic-from-color": [{"mask-conic-from": scaleColor()}],
      "mask-image-conic-to-color": [{"mask-conic-to": scaleColor()}],
      "mask-mode": [{mask: ["alpha", "luminance", "match"]}],
      "mask-origin": [{"mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]}],
      "mask-position": [{mask: scaleBgPosition()}],
      "mask-repeat": [{mask: scaleBgRepeat()}],
      "mask-size": [{mask: scaleBgSize()}],
      "mask-type": [{"mask-type": ["alpha", "luminance"]}],
      "mask-image": [{mask: ["none", isArbitraryVariable, isArbitraryValue]}],

      filter: [{filter: ["", "none", isArbitraryVariable, isArbitraryValue]}],
      blur: [{blur: scaleBlur()}],
      brightness: [{brightness: [isNumber, isArbitraryVariable, isArbitraryValue]}],
      contrast: [{contrast: [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "drop-shadow": [{"drop-shadow": ["", "none", themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]}],
      "drop-shadow-color": [{"drop-shadow": scaleColor()}],
      grayscale: [{grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      "hue-rotate": [{"hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      invert: [{invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      saturate: [{saturate: [isNumber, isArbitraryVariable, isArbitraryValue]}],
      sepia: [{sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-filter": [{"backdrop-filter": ["", "none", isArbitraryVariable, isArbitraryValue]}],
      "backdrop-blur": [{"backdrop-blur": scaleBlur()}],
      "backdrop-brightness": [{"backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-contrast": [{"backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-grayscale": [{"backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-hue-rotate": [{"backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-invert": [{"backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-opacity": [{"backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-saturate": [{"backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]}],
      "backdrop-sepia": [{"backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]}],

      "border-collapse": [{border: ["collapse", "separate"]}],
      "border-spacing": [{"border-spacing": scaleUnambiguousSpacing()}],
      "border-spacing-x": [{"border-spacing-x": scaleUnambiguousSpacing()}],
      "border-spacing-y": [{"border-spacing-y": scaleUnambiguousSpacing()}],
      "table-layout": [{table: ["auto", "fixed"]}],
      caption: [{caption: ["top", "bottom"]}],

      transition: [{transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]}],
      "transition-behavior": [{transition: ["normal", "discrete"]}],
      duration: [{duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]}],
      ease: [{ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]}],
      delay: [{delay: [isNumber, isArbitraryVariable, isArbitraryValue]}],
      animate: [{animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]}],

      backface: [{backface: ["hidden", "visible"]}],
      perspective: [{perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]}],
      "perspective-origin": [{"perspective-origin": scalePositionWithArbitrary()}],
      rotate: [{rotate: scaleRotate()}],
      "rotate-x": [{"rotate-x": scaleRotate()}],
      "rotate-y": [{"rotate-y": scaleRotate()}],
      "rotate-z": [{"rotate-z": scaleRotate()}],
      scale: [{scale: scaleScale()}],
      "scale-x": [{"scale-x": scaleScale()}],
      "scale-y": [{"scale-y": scaleScale()}],
      "scale-z": [{"scale-z": scaleScale()}],
      "scale-3d": ["scale-3d"],
      skew: [{skew: scaleSkew()}],
      "skew-x": [{"skew-x": scaleSkew()}],
      "skew-y": [{"skew-y": scaleSkew()}],
      transform: [{transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]}],
      "transform-origin": [{origin: scalePositionWithArbitrary()}],
      "transform-style": [{transform: ["3d", "flat"]}],
      translate: [{translate: scaleTranslate()}],
      "translate-x": [{"translate-x": scaleTranslate()}],
      "translate-y": [{"translate-y": scaleTranslate()}],
      "translate-z": [{"translate-z": scaleTranslate()}],
      "translate-none": ["translate-none"],

      accent: [{accent: scaleColor()}],
      appearance: [{appearance: ["none", "auto"]}],
      "caret-color": [{caret: scaleColor()}],
      "color-scheme": [{scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]}],
      cursor: [{cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryVariable, isArbitraryValue]}],
      "field-sizing": [{"field-sizing": ["fixed", "content"]}],
      "pointer-events": [{"pointer-events": ["auto", "none"]}],
      resize: [{resize: ["none", "", "y", "x"]}],
      "scroll-behavior": [{scroll: ["auto", "smooth"]}],
      "scroll-m": [{"scroll-m": scaleUnambiguousSpacing()}],
      "scroll-mx": [{"scroll-mx": scaleUnambiguousSpacing()}],
      "scroll-my": [{"scroll-my": scaleUnambiguousSpacing()}],
      "scroll-ms": [{"scroll-ms": scaleUnambiguousSpacing()}],
      "scroll-me": [{"scroll-me": scaleUnambiguousSpacing()}],
      "scroll-mt": [{"scroll-mt": scaleUnambiguousSpacing()}],
      "scroll-mr": [{"scroll-mr": scaleUnambiguousSpacing()}],
      "scroll-mb": [{"scroll-mb": scaleUnambiguousSpacing()}],
      "scroll-ml": [{"scroll-ml": scaleUnambiguousSpacing()}],
      "scroll-p": [{"scroll-p": scaleUnambiguousSpacing()}],
      "scroll-px": [{"scroll-px": scaleUnambiguousSpacing()}],
      "scroll-py": [{"scroll-py": scaleUnambiguousSpacing()}],
      "scroll-ps": [{"scroll-ps": scaleUnambiguousSpacing()}],
      "scroll-pe": [{"scroll-pe": scaleUnambiguousSpacing()}],
      "scroll-pt": [{"scroll-pt": scaleUnambiguousSpacing()}],
      "scroll-pr": [{"scroll-pr": scaleUnambiguousSpacing()}],
      "scroll-pb": [{"scroll-pb": scaleUnambiguousSpacing()}],
      "scroll-pl": [{"scroll-pl": scaleUnambiguousSpacing()}],
      "snap-align": [{snap: ["start", "end", "center", "align-none"]}],
      "snap-stop": [{snap: ["normal", "always"]}],
      "snap-type": [{snap: ["none", "x", "y", "both"]}],
      "snap-strictness": [{snap: ["mandatory", "proximity"]}],
      touch: [{touch: ["auto", "none", "manipulation"]}],
      "touch-x": [{"touch-pan": ["x", "left", "right"]}],
      "touch-y": [{"touch-pan": ["y", "up", "down"]}],
      "touch-pz": ["touch-pinch-zoom"],
      select: [{select: ["none", "text", "all", "auto"]}],
      "will-change": [{"will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]}],

      fill: [{fill: ["none", ...scaleColor()]}],
      "stroke-w": [{stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]}],
      stroke: [{stroke: ["none", ...scaleColor()]}],

      "forced-color-adjust": [{"forced-color-adjust": ["auto", "none"]}],
     },
     conflictingClassGroups: {overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], translate: ["translate-x", "translate-y", "translate-none"], "translate-none": ["translate", "translate-x", "translate-y", "translate-z"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"]},
     conflictingClassGroupModifiers: {"font-size": ["leading"]},
     orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"],
    };
   };
   const twMerge = createTailwindMerge(getDefaultConfig);
   const ptViewMerge = (globalPTProps = {}, selfPTProps = {}, datasets) => {
    const {class: globalClass, ...globalRest} = globalPTProps;
    const {class: selfClass, ...selfRest} = selfPTProps;
    return mergeProps({class: twMerge(globalClass, selfClass)}, globalRest, selfRest, datasets);
   };
   const byteToHex = [];
   for (let i2 = 0; i2 < 256; ++i2) {
    byteToHex.push((i2 + 256).toString(16).slice(1));
   }
   function unsafeStringify(arr, offset = 0) {
    return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
   }
   let getRandomValues;
   const rnds8 = new Uint8Array(16);
   function rng() {
    if (!getRandomValues) {
     if (typeof crypto === "undefined" || !crypto.getRandomValues) {
      throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
     }
     getRandomValues = crypto.getRandomValues.bind(crypto);
    }
    return getRandomValues(rnds8);
   }
   const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
   const native = {randomUUID};
   function _v4(options3, buf, offset) {
    options3 = options3 || {};
    const rnds = options3.random ?? options3.rng?.() ?? rng();
    if (rnds.length < 16) {
     throw new Error("Random bytes length must be >= 16");
    }
    rnds[6] = (rnds[6] & 15) | 64;
    rnds[8] = (rnds[8] & 63) | 128;
    return unsafeStringify(rnds);
   }
   function v4(options3, buf, offset) {
    if (native.randomUUID && true && !options3) {
     return native.randomUUID();
    }
    return _v4(options3);
   }
   const _sfc_main$Q = defineComponent({
    __name: "Toast",
    setup(__props) {
     const instance = getCurrentInstance$1();
     const parent = computed(() => instance?.root.vnode.el?.parentElement);
     const className = `primevue-toast-${v4()}`;
     const theme = ref({
      root: `${className}
        fixed z-5000 flex flex-col gap-3 w-sm h-fit
        p-top-left:top-4 p-top-left:left-4
        p-top-center:top-4 p-top-center:left-1/2 p-top-center:-translate-x-1/2
        p-top-right:top-4 p-top-right:right-4
        p-bottom-left:bottom-4 p-bottom-left:left-4
        p-bottom-center:bottom-4 p-bottom-center:left-1/2 p-bottom-center:-translate-x-1/2
        p-bottom-right:bottom-4 p-bottom-right:right-4
        p-center:top-1/2 p-center:left-1/2 p-center:-translate-x-1/2 p-center:-translate-y-1/2`,
      message: `relative flex items-center gap-3 rounded-md shadow-lg
        bg-surface-0 dark:bg-surface-900
        text-surface-700 dark:text-surface-0
        max-w-sm w-full mb-4
        backdrop-blur-[1.5px] dark:backdrop-blur-[10px]
        border border-solid border-surface-200 dark:border-surface-700
        [&[data-p="info"]]:border-blue-200 dark:[&[data-p="info"]]:border-[color-mix(in_srgb,var(--color-blue-700),transparent_64%)]
        [&[data-p="info"]]:text-blue-600 dark:[&[data-p="info"]]:text-blue-500
        [&[data-p="info"]]:bg-[color-mix(in_srgb,var(--color-blue-50),transparent_5%)] dark:[&[data-p="info"]]:bg-[color-mix(in_srgb,var(--color-blue-500),transparent_84%)]
        [&[data-p="warn"]]:border-yellow-200 dark:[&[data-p="warn"]]:border-[color-mix(in_srgb,var(--color-yellow-700),transparent_64%)]
        [&[data-p="warn"]]:text-yellow-600 dark:[&[data-p="warn"]]:text-yellow-500
        [&[data-p="warn"]]:bg-[color-mix(in_srgb,var(--color-yellow-50),transparent_5%)] dark:[&[data-p="warn"]]:bg-[color-mix(in_srgb,var(--color-yellow-500),transparent_84%)]
        [&[data-p="error"]]:border-red-200 dark:[&[data-p="error"]]:border-[color-mix(in_srgb,var(--color-red-700),transparent_64%)]
        [&[data-p="error"]]:text-red-600 dark:[&[data-p="error"]]:text-red-500
        [&[data-p="error"]]:bg-[color-mix(in_srgb,var(--color-red-50),transparent_5%)] dark:[&[data-p="error"]]:bg-[color-mix(in_srgb,var(--color-red-500),transparent_84%)]
        [&[data-p="success"]]:border-green-200 dark:[&[data-p="success"]]:border-[color-mix(in_srgb,var(--color-green-700),transparent_64%)]
        [&[data-p="success"]]:text-green-600 dark:[&[data-p="success"]]:text-green-500
        [&[data-p="success"]]:bg-[color-mix(in_srgb,var(--color-green-50),transparent_5%)] dark:[&[data-p="success"]]:bg-[color-mix(in_srgb,var(--color-green-500),transparent_84%)]`,
      messageContent: `flex justify-between items-start w-full p-3 gap-2`,
      messageIcon: `flex-shrink-0 size-[1.125rem]
        [&[data-p="info"]]:text-blue-500 dark:[&[data-p="info"]]:text-blue-400
        [&[data-p="warn"]]:text-yellow-500 dark:[&[data-p="warn"]]:text-yellow-400
        [&[data-p="error"]]:text-red-500 dark:[&[data-p="error"]]:text-red-400
        [&[data-p="success"]]:text-green-500 dark:[&[data-p="success"]]:text-green-400`,
      messageText: `flex flex-col flex-1 min-w-0 gap-2`,
      summary: `font-medium text-sm
        [&[data-p="info"]]:text-blue-600 dark:[&[data-p="info"]]:text-blue-500
        [&[data-p="warn"]]:text-yellow-600 dark:[&[data-p="warn"]]:text-yellow-500
        [&[data-p="error"]]:text-red-600 dark:[&[data-p="error"]]:text-red-500
        [&[data-p="success"]]:text-green-600 dark:[&[data-p="success"]]:text-green-500`,
      detail: `text-sm text-surface-600 dark:text-surface-300`,
      buttonContainer: `flex-shrink-0`,
      closeButton: `inline-flex items-center justify-center size-6 rounded-full cursor-pointer
        relative mt-[-25%] text-inherit right-[-25%] w-7 h-7
        hover:text-blue-700 dark:hover:text-blue-400 hover:bg-[color-mix(in_srgb,var(--color-blue-500),transparent_84%)]
        focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary
        transition-colors duration-200`,
      closeIcon: `size-3`,
      transition: {enterActiveClass: "transition-all duration-300 ease-in", leaveActiveClass: "transition-all duration-300 ease-in", enterFromClass: "opacity-0 scale-80 mb-0", enterToClass: "opacity-100 h-fit", leaveFromClass: "opacity-100 transform-none h-fit", leaveToClass: "opacity-0 transform-[translateY(-100%)] scale-60 !mb-0 h-0", duration: 300},
     });
     detectDom("." + className).then((element) => {
      parent.value ? parent.value.appendChild(element) : watch(parent, (val) => val.append(element));
     });
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$I), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {closeicon: withCtx(() => [createVNode(unref(script$O))]), _: 1}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   function blockBodyScroll() {
    st$1({variableName: rr("scrollbar.width").name});
   }
   function unblockBodyScroll() {
    dt$1({variableName: rr("scrollbar.width").name});
   }
   var script$H = {name: "ChevronRightIcon", extends: script$P};
   function _toConsumableArray$m(r) {
    return _arrayWithoutHoles$m(r) || _iterableToArray$m(r) || _unsupportedIterableToArray$n(r) || _nonIterableSpread$m();
   }
   function _nonIterableSpread$m() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$n(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$n(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$n(r, a2) : void 0);
    }
   }
   function _iterableToArray$m(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$m(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$n(r);
   }
   function _arrayLikeToArray$n(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$17(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$m(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$H.render = render$17;
   var script$G = {name: "ChevronUpIcon", extends: script$P};
   function _toConsumableArray$l(r) {
    return _arrayWithoutHoles$l(r) || _iterableToArray$l(r) || _unsupportedIterableToArray$m(r) || _nonIterableSpread$l();
   }
   function _nonIterableSpread$l() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$m(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$m(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$m(r, a2) : void 0);
    }
   }
   function _iterableToArray$l(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$l(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$m(r);
   }
   function _arrayLikeToArray$m(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$16(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$l(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$G.render = render$16;
   var classes$m = {root: "p-accordioncontent", contentWrapper: "p-accordioncontent-wrapper", content: "p-accordioncontent-content"};
   var AccordionContentStyle = BaseStyle.extend({name: "accordioncontent", classes: classes$m});
   var script$1$n = {
    name: "BaseAccordionContent",
    extends: script$Q,
    props: {as: {type: [String, Object], default: "DIV"}, asChild: {type: Boolean, default: false}},
    style: AccordionContentStyle,
    provide: function provide4() {
     return {$pcAccordionContent: this, $parentInstance: this};
    },
   };
   var script$F = {
    name: "AccordionContent",
    extends: script$1$n,
    inheritAttrs: false,
    inject: ["$pcAccordion", "$pcAccordionPanel"],
    computed: {
     id: function id() {
      return "".concat(this.$pcAccordion.$id, "_accordioncontent_").concat(this.$pcAccordionPanel.value);
     },
     ariaLabelledby: function ariaLabelledby() {
      return "".concat(this.$pcAccordion.$id, "_accordionheader_").concat(this.$pcAccordionPanel.value);
     },
     attrs: function attrs() {
      return mergeProps(this.a11yAttrs, this.ptmi("root", this.ptParams));
     },
     a11yAttrs: function a11yAttrs() {
      return {id: this.id, role: "region", "aria-labelledby": this.ariaLabelledby, "data-pc-name": "accordioncontent", "data-p-active": this.$pcAccordionPanel.active};
     },
     ptParams: function ptParams() {
      return {context: {active: this.$pcAccordionPanel.active}};
     },
    },
   };
   function render$15(_ctx, _cache, $props, $setup, $data, $options) {
    return !_ctx.asChild
     ? (openBlock(),
       createBlock(
        Transition,
        mergeProps({key: 0, name: "p-collapsible"}, _ctx.ptm("transition", $options.ptParams)),
        {
         default: withCtx(function () {
          return [
           ($options.$pcAccordion.lazy ? $options.$pcAccordionPanel.active : true)
            ? withDirectives(
               (openBlock(),
               createBlock(
                resolveDynamicComponent(_ctx.as),
                mergeProps({key: 0, class: _ctx.cx("root")}, $options.attrs),
                {
                 default: withCtx(function () {
                  return [createElementVNode("div", mergeProps({class: _ctx.cx("contentWrapper")}, _ctx.ptm("contentWrapper", $options.ptParams)), [createElementVNode("div", mergeProps({class: _ctx.cx("content")}, _ctx.ptm("content", $options.ptParams)), [renderSlot(_ctx.$slots, "default")], 16)], 16)];
                 }),
                 _: 3,
                },
                16,
                ["class"],
               )),
               [[vShow, $options.$pcAccordion.lazy ? true : $options.$pcAccordionPanel.active]],
              )
            : createCommentVNode("", true),
          ];
         }),
         _: 3,
        },
        16,
       ))
     : renderSlot(_ctx.$slots, "default", {key: 1, class: normalizeClass(_ctx.cx("root")), active: $options.$pcAccordionPanel.active, a11yAttrs: $options.a11yAttrs});
   }
   script$F.render = render$15;
   var script$E = {name: "ChevronDownIcon", extends: script$P};
   function _toConsumableArray$k(r) {
    return _arrayWithoutHoles$k(r) || _iterableToArray$k(r) || _unsupportedIterableToArray$l(r) || _nonIterableSpread$k();
   }
   function _nonIterableSpread$k() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$l(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$l(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$l(r, a2) : void 0);
    }
   }
   function _iterableToArray$k(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$k(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$l(r);
   }
   function _arrayLikeToArray$l(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$14(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$k(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$E.render = render$14;
   var classes$l = {root: "p-accordionheader", toggleicon: "p-accordionheader-toggle-icon"};
   var AccordionHeaderStyle = BaseStyle.extend({name: "accordionheader", classes: classes$l});
   var script$1$m = {
    name: "BaseAccordionHeader",
    extends: script$Q,
    props: {as: {type: [String, Object], default: "BUTTON"}, asChild: {type: Boolean, default: false}},
    style: AccordionHeaderStyle,
    provide: function provide5() {
     return {$pcAccordionHeader: this, $parentInstance: this};
    },
   };
   var script$D = {
    name: "AccordionHeader",
    extends: script$1$m,
    inheritAttrs: false,
    inject: ["$pcAccordion", "$pcAccordionPanel"],
    methods: {
     onFocus: function onFocus() {
      this.$pcAccordion.selectOnFocus && this.changeActiveValue();
     },
     onClick: function onClick() {
      !this.$pcAccordion.selectOnFocus && this.changeActiveValue();
     },
     onKeydown: function onKeydown(event) {
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event);
        break;
       case "Home":
        this.onHomeKey(event);
        break;
       case "End":
        this.onEndKey(event);
        break;
       case "Enter":
       case "NumpadEnter":
       case "Space":
        this.onEnterKey(event);
        break;
      }
     },
     onArrowDownKey: function onArrowDownKey(event) {
      var nextPanel = this.findNextPanel(this.findPanel(event.currentTarget));
      nextPanel ? this.changeFocusedPanel(event, nextPanel) : this.onHomeKey(event);
      event.preventDefault();
     },
     onArrowUpKey: function onArrowUpKey(event) {
      var prevPanel = this.findPrevPanel(this.findPanel(event.currentTarget));
      prevPanel ? this.changeFocusedPanel(event, prevPanel) : this.onEndKey(event);
      event.preventDefault();
     },
     onHomeKey: function onHomeKey(event) {
      var firstPanel = this.findFirstPanel();
      this.changeFocusedPanel(event, firstPanel);
      event.preventDefault();
     },
     onEndKey: function onEndKey(event) {
      var lastPanel = this.findLastPanel();
      this.changeFocusedPanel(event, lastPanel);
      event.preventDefault();
     },
     onEnterKey: function onEnterKey(event) {
      this.changeActiveValue();
      event.preventDefault();
     },
     findPanel: function findPanel(headerElement) {
      return headerElement === null || headerElement === void 0 ? void 0 : headerElement.closest('[data-pc-name="accordionpanel"]');
     },
     findHeader: function findHeader(panelElement) {
      return z$1(panelElement, '[data-pc-name="accordionheader"]');
     },
     findNextPanel: function findNextPanel(panelElement) {
      var selfCheck = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      var element = selfCheck ? panelElement : panelElement.nextElementSibling;
      return element ? (Q$1(element, "data-p-disabled") ? this.findNextPanel(element) : this.findHeader(element)) : null;
     },
     findPrevPanel: function findPrevPanel(panelElement) {
      var selfCheck = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      var element = selfCheck ? panelElement : panelElement.previousElementSibling;
      return element ? (Q$1(element, "data-p-disabled") ? this.findPrevPanel(element) : this.findHeader(element)) : null;
     },
     findFirstPanel: function findFirstPanel() {
      return this.findNextPanel(this.$pcAccordion.$el.firstElementChild, true);
     },
     findLastPanel: function findLastPanel() {
      return this.findPrevPanel(this.$pcAccordion.$el.lastElementChild, true);
     },
     changeActiveValue: function changeActiveValue() {
      this.$pcAccordion.updateValue(this.$pcAccordionPanel.value);
     },
     changeFocusedPanel: function changeFocusedPanel(event, element) {
      bt(this.findHeader(element));
     },
    },
    computed: {
     id: function id2() {
      return "".concat(this.$pcAccordion.$id, "_accordionheader_").concat(this.$pcAccordionPanel.value);
     },
     ariaControls: function ariaControls() {
      return "".concat(this.$pcAccordion.$id, "_accordioncontent_").concat(this.$pcAccordionPanel.value);
     },
     attrs: function attrs2() {
      return mergeProps(this.asAttrs, this.a11yAttrs, this.ptmi("root", this.ptParams));
     },
     asAttrs: function asAttrs() {
      return this.as === "BUTTON" ? {type: "button", disabled: this.$pcAccordionPanel.disabled} : void 0;
     },
     a11yAttrs: function a11yAttrs2() {
      return {id: this.id, tabindex: this.$pcAccordion.tabindex, "aria-expanded": this.$pcAccordionPanel.active, "aria-controls": this.ariaControls, "data-pc-name": "accordionheader", "data-p-disabled": this.$pcAccordionPanel.disabled, "data-p-active": this.$pcAccordionPanel.active, onFocus: this.onFocus, onKeydown: this.onKeydown};
     },
     ptParams: function ptParams2() {
      return {context: {active: this.$pcAccordionPanel.active}};
     },
     dataP: function dataP3() {
      return f({active: this.$pcAccordionPanel.active});
     },
    },
    components: {ChevronUpIcon: script$G, ChevronDownIcon: script$E},
    directives: {ripple: Ripple},
   };
   function render$13(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return !_ctx.asChild
     ? withDirectives(
        (openBlock(),
        createBlock(
         resolveDynamicComponent(_ctx.as),
         mergeProps({key: 0, "data-p": $options.dataP, class: _ctx.cx("root"), onClick: $options.onClick}, $options.attrs),
         {
          default: withCtx(function () {
           return [
            renderSlot(_ctx.$slots, "default", {active: $options.$pcAccordionPanel.active}),
            renderSlot(_ctx.$slots, "toggleicon", {active: $options.$pcAccordionPanel.active, class: normalizeClass(_ctx.cx("toggleicon"))}, function () {
             return [$options.$pcAccordionPanel.active ? (openBlock(), createBlock(resolveDynamicComponent($options.$pcAccordion.$slots.collapseicon ? $options.$pcAccordion.$slots.collapseicon : $options.$pcAccordion.collapseIcon ? "span" : "ChevronUpIcon"), mergeProps({key: 0, class: [$options.$pcAccordion.collapseIcon, _ctx.cx("toggleicon")], "aria-hidden": "true"}, _ctx.ptm("toggleicon", $options.ptParams)), null, 16, ["class"])) : (openBlock(), createBlock(resolveDynamicComponent($options.$pcAccordion.$slots.expandicon ? $options.$pcAccordion.$slots.expandicon : $options.$pcAccordion.expandIcon ? "span" : "ChevronDownIcon"), mergeProps({key: 1, class: [$options.$pcAccordion.expandIcon, _ctx.cx("toggleicon")], "aria-hidden": "true"}, _ctx.ptm("toggleicon", $options.ptParams)), null, 16, ["class"]))];
            }),
           ];
          }),
          _: 3,
         },
         16,
         ["data-p", "class", "onClick"],
        )),
        [[_directive_ripple]],
       )
     : renderSlot(_ctx.$slots, "default", {key: 1, class: normalizeClass(_ctx.cx("root")), active: $options.$pcAccordionPanel.active, a11yAttrs: $options.a11yAttrs, onClick: $options.onClick});
   }
   script$D.render = render$13;
   var classes$k = {
    root: function root3(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-accordionpanel", {"p-accordionpanel-active": instance.active, "p-disabled": props2.disabled}];
    },
   };
   var AccordionPanelStyle = BaseStyle.extend({name: "accordionpanel", classes: classes$k});
   var script$1$l = {
    name: "BaseAccordionPanel",
    extends: script$Q,
    props: {value: {type: [String, Number], default: void 0}, disabled: {type: Boolean, default: false}, as: {type: [String, Object], default: "DIV"}, asChild: {type: Boolean, default: false}},
    style: AccordionPanelStyle,
    provide: function provide6() {
     return {$pcAccordionPanel: this, $parentInstance: this};
    },
   };
   var script$C = {
    name: "AccordionPanel",
    extends: script$1$l,
    inheritAttrs: false,
    inject: ["$pcAccordion"],
    computed: {
     active: function active() {
      return this.$pcAccordion.isItemActive(this.value);
     },
     attrs: function attrs3() {
      return mergeProps(this.a11yAttrs, this.ptmi("root", this.ptParams));
     },
     a11yAttrs: function a11yAttrs3() {
      return {"data-pc-name": "accordionpanel", "data-p-disabled": this.disabled, "data-p-active": this.active};
     },
     ptParams: function ptParams3() {
      return {context: {active: this.active}};
     },
    },
   };
   function render$12(_ctx, _cache, $props, $setup, $data, $options) {
    return !_ctx.asChild
     ? (openBlock(),
       createBlock(
        resolveDynamicComponent(_ctx.as),
        mergeProps({key: 0, class: _ctx.cx("root")}, $options.attrs),
        {
         default: withCtx(function () {
          return [renderSlot(_ctx.$slots, "default")];
         }),
         _: 3,
        },
        16,
        ["class"],
       ))
     : renderSlot(_ctx.$slots, "default", {key: 1, class: normalizeClass(_ctx.cx("root")), active: $options.active, a11yAttrs: $options.a11yAttrs});
   }
   script$C.render = render$12;
   var style$j = '\\n .p-accordionpanel{border:dt("accordion.panel.border.width") solid dt("accordion.panel.border.color");display:flex;flex-direction:column}.p-accordionheader{all:unset;align-items:center;background:dt("accordion.header.background");border:dt("accordion.header.border.width") solid dt("accordion.header.border.color");border-radius:dt("accordion.header.border.radius");color:dt("accordion.header.color");cursor:pointer;display:flex;font-weight:dt("accordion.header.font.weight");justify-content:space-between;outline-color:transparent;padding:dt("accordion.header.padding");transition:background dt("accordion.transition.duration"),color dt("accordion.transition.duration"),outline-color dt("accordion.transition.duration"),box-shadow dt("accordion.transition.duration")}.p-accordionpanel:first-child>.p-accordionheader{border-start-end-radius:dt("accordion.header.first.top.border.radius");border-start-start-radius:dt("accordion.header.first.top.border.radius");border-width:dt("accordion.header.first.border.width")}.p-accordionpanel:last-child>.p-accordionheader{border-end-end-radius:dt("accordion.header.last.bottom.border.radius");border-end-start-radius:dt("accordion.header.last.bottom.border.radius")}.p-accordionpanel:last-child.p-accordionpanel-active>.p-accordionheader{border-end-end-radius:dt("accordion.header.last.active.bottom.border.radius");border-end-start-radius:dt("accordion.header.last.active.bottom.border.radius")}.p-accordionheader-toggle-icon{color:dt("accordion.header.toggle.icon.color")}.p-accordionpanel:not(.p-disabled) .p-accordionheader:focus-visible{box-shadow:dt("accordion.header.focus.ring.shadow");outline:dt("accordion.header.focus.ring.color");outline-offset:dt("accordion.header.focus.ring.offset")}.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled)>.p-accordionheader:hover{background:dt("accordion.header.hover.background");color:dt("accordion.header.hover.color")}.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled) .p-accordionheader:hover .p-accordionheader-toggle-icon{color:dt("accordion.header.toggle.icon.hover.color")}.p-accordionpanel:not(.p-disabled).p-accordionpanel-active>.p-accordionheader{background:dt("accordion.header.active.background");color:dt("accordion.header.active.color")}.p-accordionpanel:not(.p-disabled).p-accordionpanel-active>.p-accordionheader .p-accordionheader-toggle-icon{color:dt("accordion.header.toggle.icon.active.color")}.p-accordionpanel:not(.p-disabled).p-accordionpanel-active>.p-accordionheader:hover{background:dt("accordion.header.active.hover.background");color:dt("accordion.header.active.hover.color")}.p-accordionpanel:not(.p-disabled).p-accordionpanel-active>.p-accordionheader:hover .p-accordionheader-toggle-icon{color:dt("accordion.header.toggle.icon.active.hover.color")}.p-accordioncontent{display:grid;grid-template-rows:1fr}.p-accordioncontent-wrapper{min-height:0}.p-accordioncontent-content{background-color:dt("accordion.content.background");border:dt("accordion.content.border.width") solid dt("accordion.content.border.color");color:dt("accordion.content.color");padding:dt("accordion.content.padding")}';
   var classes$j = {root: "p-accordion p-component"};
   var AccordionStyle = BaseStyle.extend({name: "accordion", style: style$j, classes: classes$j});
   var script$1$k = {
    name: "BaseAccordion",
    extends: script$Q,
    props: {value: {type: [String, Number, Array], default: void 0}, multiple: {type: Boolean, default: false}, lazy: {type: Boolean, default: false}, tabindex: {type: Number, default: 0}, selectOnFocus: {type: Boolean, default: false}, expandIcon: {type: String, default: void 0}, collapseIcon: {type: String, default: void 0}, activeIndex: {type: [Number, Array], default: null}},
    style: AccordionStyle,
    provide: function provide7() {
     return {$pcAccordion: this, $parentInstance: this};
    },
   };
   var script$B = {
    name: "Accordion",
    extends: script$1$k,
    inheritAttrs: false,
    emits: ["update:value", "update:activeIndex", "tab-open", "tab-close", "tab-click"],
    data: function data3() {
     return {d_value: this.value};
    },
    watch: {
     value: function value(newValue) {
      this.d_value = newValue;
     },
     activeIndex: {
      immediate: true,
      handler: function handler3(newValue) {
       if (this.hasAccordionTab) {
        this.d_value = this.multiple ? (newValue === null || newValue === void 0 ? void 0 : newValue.map(String)) : newValue === null || newValue === void 0 ? void 0 : newValue.toString();
       }
      },
     },
    },
    methods: {
     isItemActive: function isItemActive(value2) {
      var _this$d_value;
      return this.multiple ? ((_this$d_value = this.d_value) === null || _this$d_value === void 0 ? void 0 : _this$d_value.includes(value2)) : this.d_value === value2;
     },
     updateValue: function updateValue(newValue) {
      var _this$d_value2;
      var active3 = this.isItemActive(newValue);
      if (this.multiple) {
       if (active3) {
        this.d_value = this.d_value.filter(function (v2) {
         return v2 !== newValue;
        });
       } else {
        if (this.d_value) this.d_value.push(newValue);
        else this.d_value = [newValue];
       }
      } else {
       this.d_value = active3 ? null : newValue;
      }
      this.$emit("update:value", this.d_value);
      this.$emit("update:activeIndex", this.multiple ? ((_this$d_value2 = this.d_value) === null || _this$d_value2 === void 0 ? void 0 : _this$d_value2.map(Number)) : Number(this.d_value));
      this.$emit(active3 ? "tab-close" : "tab-open", {originalEvent: void 0, index: Number(newValue)});
     },
     isAccordionTab: function isAccordionTab(child) {
      return child.type.name === "AccordionTab";
     },
     getTabProp: function getTabProp(tab, name) {
      return tab.props ? tab.props[name] : void 0;
     },
     getKey: function getKey(tab, index) {
      return this.getTabProp(tab, "header") || index;
     },
     getHeaderPT: function getHeaderPT(tab, index) {
      var _this = this;
      return {
       root: mergeProps(
        {
         onClick: function onClick2(event) {
          return _this.onTabClick(event, index);
         },
        },
        this.getTabProp(tab, "headerProps"),
        this.getTabPT(tab, "header", index),
       ),
       toggleicon: mergeProps(this.getTabProp(tab, "headeractionprops"), this.getTabPT(tab, "headeraction", index)),
      };
     },
     getContentPT: function getContentPT(tab, index) {
      return {root: mergeProps(this.getTabProp(tab, "contentProps"), this.getTabPT(tab, "toggleablecontent", index)), transition: this.getTabPT(tab, "transition", index), content: this.getTabPT(tab, "content", index)};
     },
     getTabPT: function getTabPT(tab, key, index) {
      var count = this.tabs.length;
      var tabMetaData = {props: tab.props || {}, parent: {instance: this, props: this.$props, state: this.$data}, context: {index, count, first: index === 0, last: index === count - 1, active: this.isItemActive("".concat(index))}};
      return mergeProps(this.ptm("accordiontab.".concat(key), tabMetaData), this.ptmo(this.getTabProp(tab, "pt"), key, tabMetaData));
     },
     onTabClick: function onTabClick(event, index) {
      this.$emit("tab-click", {originalEvent: event, index});
     },
    },
    computed: {
     tabs: function tabs() {
      var _this2 = this;
      return this.$slots["default"]().reduce(function (tabs2, child) {
       if (_this2.isAccordionTab(child)) {
        tabs2.push(child);
       } else if (child.children && child.children instanceof Array) {
        child.children.forEach(function (nestedChild) {
         if (_this2.isAccordionTab(nestedChild)) {
          tabs2.push(nestedChild);
         }
        });
       }
       return tabs2;
      }, []);
     },
     hasAccordionTab: function hasAccordionTab() {
      return this.tabs.length;
     },
    },
    components: {AccordionPanel: script$C, AccordionHeader: script$D, AccordionContent: script$F, ChevronUpIcon: script$G, ChevronRightIcon: script$H},
   };
   function render$11(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_AccordionHeader = resolveComponent("AccordionHeader");
    var _component_AccordionContent = resolveComponent("AccordionContent");
    var _component_AccordionPanel = resolveComponent("AccordionPanel");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: _ctx.cx("root")}, _ctx.ptmi("root")),
      [
       $options.hasAccordionTab
        ? (openBlock(true),
          createElementBlock(
           Fragment,
           {key: 0},
           renderList($options.tabs, function (tab, i2) {
            return (
             openBlock(),
             createBlock(
              _component_AccordionPanel,
              {key: $options.getKey(tab, i2), value: "".concat(i2), pt: {root: $options.getTabPT(tab, "root", i2)}, disabled: $options.getTabProp(tab, "disabled")},
              {
               default: withCtx(function () {
                return [
                 createVNode(
                  _component_AccordionHeader,
                  {class: normalizeClass($options.getTabProp(tab, "headerClass")), pt: $options.getHeaderPT(tab, i2)},
                  {
                   toggleicon: withCtx(function (slotProps) {
                    return [slotProps.active ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.collapseicon ? _ctx.$slots.collapseicon : _ctx.collapseIcon ? "span" : "ChevronDownIcon"), mergeProps({key: 0, class: [_ctx.collapseIcon, slotProps["class"]], "aria-hidden": "true"}, {ref_for: true}, $options.getTabPT(tab, "headericon", i2)), null, 16, ["class"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.expandicon ? _ctx.$slots.expandicon : _ctx.expandIcon ? "span" : "ChevronUpIcon"), mergeProps({key: 1, class: [_ctx.expandIcon, slotProps["class"]], "aria-hidden": "true"}, {ref_for: true}, $options.getTabPT(tab, "headericon", i2)), null, 16, ["class"]))];
                   }),
                   default: withCtx(function () {
                    return [tab.children && tab.children.headericon ? (openBlock(), createBlock(resolveDynamicComponent(tab.children.headericon), {key: 0, isTabActive: $options.isItemActive("".concat(i2)), active: $options.isItemActive("".concat(i2)), index: i2}, null, 8, ["isTabActive", "active", "index"])) : createCommentVNode("", true), tab.props && tab.props.header ? (openBlock(), createElementBlock("span", mergeProps({key: 1, ref_for: true}, $options.getTabPT(tab, "headertitle", i2)), toDisplayString$1(tab.props.header), 17)) : createCommentVNode("", true), tab.children && tab.children.header ? (openBlock(), createBlock(resolveDynamicComponent(tab.children.header), {key: 2})) : createCommentVNode("", true)];
                   }),
                   _: 2,
                  },
                  1032,
                  ["class", "pt"],
                 ),
                 createVNode(
                  _component_AccordionContent,
                  {pt: $options.getContentPT(tab, i2)},
                  {
                   default: withCtx(function () {
                    return [(openBlock(), createBlock(resolveDynamicComponent(tab)))];
                   }),
                   _: 2,
                  },
                  1032,
                  ["pt"],
                 ),
                ];
               }),
               _: 2,
              },
              1032,
              ["value", "pt", "disabled"],
             )
            );
           }),
           128,
          ))
        : renderSlot(_ctx.$slots, "default", {key: 1}),
      ],
      16,
     )
    );
   }
   script$B.render = render$11;
   function _typeof$1$1(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$1$1 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$1$1(o)
    );
   }
   function _classCallCheck$1(a2, n) {
    if (!(a2 instanceof n)) throw new TypeError("Cannot call a class as a function");
   }
   function _defineProperties$1(e, r) {
    for (var t2 = 0; t2 < r.length; t2++) {
     var o = r[t2];
     ((o.enumerable = o.enumerable || false), (o.configurable = true), "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$1$1(o.key), o));
    }
   }
   function _createClass$1(e, r, t2) {
    return (r && _defineProperties$1(e.prototype, r), Object.defineProperty(e, "prototype", {writable: false}), e);
   }
   function _toPropertyKey$1$1(t2) {
    var i2 = _toPrimitive$1$1(t2, "string");
    return "symbol" == _typeof$1$1(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$1$1(t2, r) {
    if ("object" != _typeof$1$1(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$1$1(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return String(t2);
   }
   var ConnectedOverlayScrollHandler = (function () {
    function ConnectedOverlayScrollHandler2(element) {
     var listener = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function () {};
     _classCallCheck$1(this, ConnectedOverlayScrollHandler2);
     this.element = element;
     this.listener = listener;
    }
    return _createClass$1(ConnectedOverlayScrollHandler2, [
     {
      key: "bindScrollListener",
      value: function bindScrollListener5() {
       this.scrollableParents = At(this.element);
       for (var i2 = 0; i2 < this.scrollableParents.length; i2++) {
        this.scrollableParents[i2].addEventListener("scroll", this.listener);
       }
      },
     },
     {
      key: "unbindScrollListener",
      value: function unbindScrollListener5() {
       if (this.scrollableParents) {
        for (var i2 = 0; i2 < this.scrollableParents.length; i2++) {
         this.scrollableParents[i2].removeEventListener("scroll", this.listener);
        }
       }
      },
     },
     {
      key: "destroy",
      value: function destroy() {
       this.unbindScrollListener();
       this.element = null;
       this.listener = null;
       this.scrollableParents = null;
      },
     },
    ]);
   })();
   var script$A = {name: "SpinnerIcon", extends: script$P};
   function _toConsumableArray$j(r) {
    return _arrayWithoutHoles$j(r) || _iterableToArray$j(r) || _unsupportedIterableToArray$k(r) || _nonIterableSpread$j();
   }
   function _nonIterableSpread$j() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$k(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$k(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$k(r, a2) : void 0);
    }
   }
   function _iterableToArray$j(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$j(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$k(r);
   }
   function _arrayLikeToArray$k(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$10(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$j(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$A.render = render$10;
   var script$z = {
    name: "BaseEditableHolder",
    extends: script$Q,
    emits: ["update:modelValue", "value-change"],
    props: {modelValue: {type: null, default: void 0}, defaultValue: {type: null, default: void 0}, name: {type: String, default: void 0}, invalid: {type: Boolean, default: void 0}, disabled: {type: Boolean, default: false}, formControl: {type: Object, default: void 0}},
    inject: {$parentInstance: {default: void 0}, $pcForm: {default: void 0}, $pcFormField: {default: void 0}},
    data: function data4() {
     return {d_value: this.defaultValue !== void 0 ? this.defaultValue : this.modelValue};
    },
    watch: {
     modelValue: {
      deep: true,
      handler: function handler4(newValue) {
       this.d_value = newValue;
      },
     },
     defaultValue: function defaultValue(newValue) {
      this.d_value = newValue;
     },
     $formName: {
      immediate: true,
      handler: function handler5(newValue) {
       var _this$$pcForm, _this$$pcForm$registe;
       this.formField = ((_this$$pcForm = this.$pcForm) === null || _this$$pcForm === void 0 || (_this$$pcForm$registe = _this$$pcForm.register) === null || _this$$pcForm$registe === void 0 ? void 0 : _this$$pcForm$registe.call(_this$$pcForm, newValue, this.$formControl)) || {};
      },
     },
     $formControl: {
      immediate: true,
      handler: function handler6(newValue) {
       var _this$$pcForm2, _this$$pcForm2$regist;
       this.formField = ((_this$$pcForm2 = this.$pcForm) === null || _this$$pcForm2 === void 0 || (_this$$pcForm2$regist = _this$$pcForm2.register) === null || _this$$pcForm2$regist === void 0 ? void 0 : _this$$pcForm2$regist.call(_this$$pcForm2, this.$formName, newValue)) || {};
      },
     },
     $formDefaultValue: {
      immediate: true,
      handler: function handler7(newValue) {
       this.d_value !== newValue && (this.d_value = newValue);
      },
     },
     $formValue: {
      immediate: false,
      handler: function handler8(newValue) {
       var _this$$pcForm3;
       if ((_this$$pcForm3 = this.$pcForm) !== null && _this$$pcForm3 !== void 0 && _this$$pcForm3.getFieldState(this.$formName) && newValue !== this.d_value) {
        this.d_value = newValue;
       }
      },
     },
    },
    formField: {},
    methods: {
     writeValue: function writeValue(value2, event) {
      var _this$formField$onCha, _this$formField;
      if (this.controlled) {
       this.d_value = value2;
       this.$emit("update:modelValue", value2);
      }
      this.$emit("value-change", value2);
      (_this$formField$onCha = (_this$formField = this.formField).onChange) === null || _this$formField$onCha === void 0 || _this$formField$onCha.call(_this$formField, {originalEvent: event, value: value2});
     },
     findNonEmpty: function findNonEmpty() {
      for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {
       values[_key] = arguments[_key];
      }
      return values.find(s$3);
     },
    },
    computed: {
     $filled: function $filled() {
      return s$3(this.d_value);
     },
     $invalid: function $invalid() {
      var _this$$pcFormField, _this$$pcForm4;
      return !this.$formNovalidate && this.findNonEmpty(this.invalid, (_this$$pcFormField = this.$pcFormField) === null || _this$$pcFormField === void 0 || (_this$$pcFormField = _this$$pcFormField.$field) === null || _this$$pcFormField === void 0 ? void 0 : _this$$pcFormField.invalid, (_this$$pcForm4 = this.$pcForm) === null || _this$$pcForm4 === void 0 || (_this$$pcForm4 = _this$$pcForm4.getFieldState(this.$formName)) === null || _this$$pcForm4 === void 0 ? void 0 : _this$$pcForm4.invalid);
     },
     $formName: function $formName() {
      var _this$$formControl;
      return !this.$formNovalidate ? this.name || ((_this$$formControl = this.$formControl) === null || _this$$formControl === void 0 ? void 0 : _this$$formControl.name) : void 0;
     },
     $formControl: function $formControl() {
      var _this$$pcFormField2;
      return this.formControl || ((_this$$pcFormField2 = this.$pcFormField) === null || _this$$pcFormField2 === void 0 ? void 0 : _this$$pcFormField2.formControl);
     },
     $formNovalidate: function $formNovalidate() {
      var _this$$formControl2;
      return (_this$$formControl2 = this.$formControl) === null || _this$$formControl2 === void 0 ? void 0 : _this$$formControl2.novalidate;
     },
     $formDefaultValue: function $formDefaultValue() {
      var _this$$pcFormField3, _this$$pcForm5;
      return this.findNonEmpty(this.d_value, (_this$$pcFormField3 = this.$pcFormField) === null || _this$$pcFormField3 === void 0 ? void 0 : _this$$pcFormField3.initialValue, (_this$$pcForm5 = this.$pcForm) === null || _this$$pcForm5 === void 0 || (_this$$pcForm5 = _this$$pcForm5.initialValues) === null || _this$$pcForm5 === void 0 ? void 0 : _this$$pcForm5[this.$formName]);
     },
     $formValue: function $formValue() {
      var _this$$pcFormField4, _this$$pcForm6;
      return this.findNonEmpty((_this$$pcFormField4 = this.$pcFormField) === null || _this$$pcFormField4 === void 0 || (_this$$pcFormField4 = _this$$pcFormField4.$field) === null || _this$$pcFormField4 === void 0 ? void 0 : _this$$pcFormField4.value, (_this$$pcForm6 = this.$pcForm) === null || _this$$pcForm6 === void 0 || (_this$$pcForm6 = _this$$pcForm6.getFieldState(this.$formName)) === null || _this$$pcForm6 === void 0 ? void 0 : _this$$pcForm6.value);
     },
     controlled: function controlled() {
      return this.$inProps.hasOwnProperty("modelValue") || (!this.$inProps.hasOwnProperty("modelValue") && !this.$inProps.hasOwnProperty("defaultValue"));
     },
     filled: function filled() {
      return this.$filled;
     },
    },
   };
   var script$y = {
    name: "BaseInput",
    extends: script$z,
    props: {size: {type: String, default: null}, fluid: {type: Boolean, default: null}, variant: {type: String, default: null}},
    inject: {$parentInstance: {default: void 0}, $pcFluid: {default: void 0}},
    computed: {
     $variant: function $variant() {
      var _this$variant;
      return (_this$variant = this.variant) !== null && _this$variant !== void 0 ? _this$variant : this.$primevue.config.inputStyle || this.$primevue.config.inputVariant;
     },
     $fluid: function $fluid() {
      var _this$fluid;
      return (_this$fluid = this.fluid) !== null && _this$fluid !== void 0 ? _this$fluid : !!this.$pcFluid;
     },
     hasFluid: function hasFluid() {
      return this.$fluid;
     },
    },
   };
   var style$i = '\\n .p-inputtext{appearance:none;background:dt("inputtext.background");border:1px solid dt("inputtext.border.color");border-radius:dt("inputtext.border.radius");box-shadow:dt("inputtext.shadow");color:dt("inputtext.color");font-family:inherit;font-feature-settings:inherit;font-size:1rem;outline-color:transparent;padding-block:dt("inputtext.padding.y");padding-inline:dt("inputtext.padding.x");transition:background dt("inputtext.transition.duration"),color dt("inputtext.transition.duration"),border-color dt("inputtext.transition.duration"),outline-color dt("inputtext.transition.duration"),box-shadow dt("inputtext.transition.duration")}.p-inputtext:enabled:hover{border-color:dt("inputtext.hover.border.color")}.p-inputtext:enabled:focus{border-color:dt("inputtext.focus.border.color");box-shadow:dt("inputtext.focus.ring.shadow");outline:dt("inputtext.focus.ring.color");outline-offset:dt("inputtext.focus.ring.offset")}.p-inputtext.p-invalid{border-color:dt("inputtext.invalid.border.color")}.p-inputtext.p-variant-filled{background:dt("inputtext.filled.background")}.p-inputtext.p-variant-filled:enabled:hover{background:dt("inputtext.filled.hover.background")}.p-inputtext.p-variant-filled:enabled:focus{background:dt("inputtext.filled.focus.background")}.p-inputtext:disabled{background:dt("inputtext.disabled.background");color:dt("inputtext.disabled.color");opacity:1}.p-inputtext::placeholder{color:dt("inputtext.placeholder.color")}.p-inputtext.p-invalid::placeholder{color:dt("inputtext.invalid.placeholder.color")}.p-inputtext-sm{font-size:dt("inputtext.sm.font.size");padding-block:dt("inputtext.sm.padding.y");padding-inline:dt("inputtext.sm.padding.x")}.p-inputtext-lg{font-size:dt("inputtext.lg.font.size");padding-block:dt("inputtext.lg.padding.y");padding-inline:dt("inputtext.lg.padding.x")}.p-inputtext-fluid{width:100%}';
   var classes$i = {
    root: function root4(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-inputtext p-component", {"p-filled": instance.$filled, "p-inputtext-sm p-inputfield-sm": props2.size === "small", "p-inputtext-lg p-inputfield-lg": props2.size === "large", "p-invalid": instance.$invalid, "p-variant-filled": instance.$variant === "filled", "p-inputtext-fluid": instance.$fluid}];
    },
   };
   var InputTextStyle = BaseStyle.extend({name: "inputtext", style: style$i, classes: classes$i});
   var script$1$j = {
    name: "BaseInputText",
    extends: script$y,
    style: InputTextStyle,
    provide: function provide8() {
     return {$pcInputText: this, $parentInstance: this};
    },
   };
   function _typeof$e(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$e =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$e(o)
    );
   }
   function _defineProperty$d(e, r, t2) {
    return ((r = _toPropertyKey$d(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$d(t2) {
    var i2 = _toPrimitive$d(t2, "string");
    return "symbol" == _typeof$e(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$d(t2, r) {
    if ("object" != _typeof$e(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$e(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$x = {
    name: "InputText",
    extends: script$1$j,
    inheritAttrs: false,
    methods: {
     onInput: function onInput(event) {
      this.writeValue(event.target.value, event);
     },
    },
    computed: {
     attrs: function attrs4() {
      return mergeProps(this.ptmi("root", {context: {filled: this.$filled, disabled: this.disabled}}), this.formField);
     },
     dataP: function dataP4() {
      return f(_defineProperty$d({invalid: this.$invalid, fluid: this.$fluid, filled: this.$variant === "filled"}, this.size, this.size));
     },
    },
   };
   var _hoisted_1$10 = ["value", "name", "disabled", "aria-invalid", "data-p"];
   function render$$(_ctx, _cache, $props, $setup, $data, $options) {
    return (
     openBlock(),
     createElementBlock(
      "input",
      mergeProps(
       {
        type: "text",
        class: _ctx.cx("root"),
        value: _ctx.d_value,
        name: _ctx.name,
        disabled: _ctx.disabled,
        "aria-invalid": _ctx.$invalid || void 0,
        "data-p": $options.dataP,
        onInput:
         _cache[0] ||
         (_cache[0] = function () {
          return $options.onInput && $options.onInput.apply($options, arguments);
         }),
       },
       $options.attrs,
      ),
      null,
      16,
      _hoisted_1$10,
     )
    );
   }
   script$x.render = render$$;
   var OverlayEventBus = s$2();
   var style$h = '\\n .p-virtualscroller-loader{background:dt("virtualscroller.loader.mask.background");color:dt("virtualscroller.loader.mask.color")}.p-virtualscroller-loading-icon{font-size:dt("virtualscroller.loader.icon.size");height:dt("virtualscroller.loader.icon.size");width:dt("virtualscroller.loader.icon.size")}';
   var css2 = "\n.p-virtualscroller {\n    position: relative;\n    overflow: auto;\n    contain: strict;\n    transform: translateZ(0);\n    will-change: scroll-position;\n    outline: 0 none;\n}\n\n.p-virtualscroller-content {\n    position: absolute;\n    top: 0;\n    left: 0;\n    min-height: 100%;\n    min-width: 100%;\n    will-change: transform;\n}\n\n.p-virtualscroller-spacer {\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: 1px;\n    width: 1px;\n    transform-origin: 0 0;\n    pointer-events: none;\n}\n\n.p-virtualscroller-loader {\n    position: sticky;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n}\n\n.p-virtualscroller-loader-mask {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.p-virtualscroller-horizontal > .p-virtualscroller-content {\n    display: flex;\n}\n\n.p-virtualscroller-inline .p-virtualscroller-content {\n    position: static;\n}\n\n.p-virtualscroller .p-virtualscroller-loading {\n    transform: none !important;\n    min-height: 0;\n    position: sticky;\n    inset-block-start: 0;\n    inset-inline-start: 0;\n}\n";
   var VirtualScrollerStyle = BaseStyle.extend({name: "virtualscroller", css: css2, style: style$h});
   var script$1$i = {
    name: "BaseVirtualScroller",
    extends: script$Q,
    props: {id: {type: String, default: null}, style: null, class: null, items: {type: Array, default: null}, itemSize: {type: [Number, Array], default: 0}, scrollHeight: null, scrollWidth: null, orientation: {type: String, default: "vertical"}, numToleratedItems: {type: Number, default: null}, delay: {type: Number, default: 0}, resizeDelay: {type: Number, default: 10}, lazy: {type: Boolean, default: false}, disabled: {type: Boolean, default: false}, loaderDisabled: {type: Boolean, default: false}, columns: {type: Array, default: null}, loading: {type: Boolean, default: false}, showSpacer: {type: Boolean, default: true}, showLoader: {type: Boolean, default: false}, tabindex: {type: Number, default: 0}, inline: {type: Boolean, default: false}, step: {type: Number, default: 0}, appendOnly: {type: Boolean, default: false}, autoSize: {type: Boolean, default: false}},
    style: VirtualScrollerStyle,
    provide: function provide9() {
     return {$pcVirtualScroller: this, $parentInstance: this};
    },
    beforeMount: function beforeMount2() {
     var _this$$primevueConfig;
     VirtualScrollerStyle.loadCSS({nonce: (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.csp) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig.nonce});
    },
   };
   function _typeof$d(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$d =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$d(o)
    );
   }
   function ownKeys$5(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$5(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$5(Object(t2), true).forEach(function (r2) {
         _defineProperty$c(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$5(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$c(e, r, t2) {
    return ((r = _toPropertyKey$c(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$c(t2) {
    var i2 = _toPrimitive$c(t2, "string");
    return "symbol" == _typeof$d(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$c(t2, r) {
    if ("object" != _typeof$d(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$d(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$w = {
    name: "VirtualScroller",
    extends: script$1$i,
    inheritAttrs: false,
    emits: ["update:numToleratedItems", "scroll", "scroll-index-change", "lazy-load"],
    data: function data5() {
     var both = this.isBoth();
     return {first: both ? {rows: 0, cols: 0} : 0, last: both ? {rows: 0, cols: 0} : 0, page: both ? {rows: 0, cols: 0} : 0, numItemsInViewport: both ? {rows: 0, cols: 0} : 0, lastScrollPos: both ? {top: 0, left: 0} : 0, d_numToleratedItems: this.numToleratedItems, d_loading: this.loading, loaderArr: [], spacerStyle: {}, contentStyle: {}};
    },
    element: null,
    content: null,
    lastScrollPos: null,
    scrollTimeout: null,
    resizeTimeout: null,
    defaultWidth: 0,
    defaultHeight: 0,
    defaultContentWidth: 0,
    defaultContentHeight: 0,
    isRangeChanged: false,
    lazyLoadState: {},
    resizeListener: null,
    resizeObserver: null,
    initialized: false,
    watch: {
     numToleratedItems: function numToleratedItems(newValue) {
      this.d_numToleratedItems = newValue;
     },
     loading: function loading(newValue, oldValue) {
      if (this.lazy && newValue !== oldValue && newValue !== this.d_loading) {
       this.d_loading = newValue;
      }
     },
     items: {
      handler: function handler9(newValue, oldValue) {
       if (!oldValue || oldValue.length !== (newValue || []).length) {
        this.init();
        this.calculateAutoSize();
       }
      },
      deep: true,
     },
     itemSize: function itemSize() {
      this.init();
      this.calculateAutoSize();
     },
     orientation: function orientation() {
      this.lastScrollPos = this.isBoth() ? {top: 0, left: 0} : 0;
     },
     scrollHeight: function scrollHeight() {
      this.init();
      this.calculateAutoSize();
     },
     scrollWidth: function scrollWidth() {
      this.init();
      this.calculateAutoSize();
     },
    },
    mounted: function mounted5() {
     this.viewInit();
     this.lastScrollPos = this.isBoth() ? {top: 0, left: 0} : 0;
     this.lazyLoadState = this.lazyLoadState || {};
    },
    updated: function updated2() {
     !this.initialized && this.viewInit();
    },
    unmounted: function unmounted3() {
     this.unbindResizeListener();
     this.initialized = false;
    },
    methods: {
     viewInit: function viewInit() {
      if (et(this.element)) {
       this.setContentEl(this.content);
       this.init();
       this.calculateAutoSize();
       this.defaultWidth = Rt(this.element);
       this.defaultHeight = Tt(this.element);
       this.defaultContentWidth = Rt(this.content);
       this.defaultContentHeight = Tt(this.content);
       this.initialized = true;
      }
      if (this.element) {
       this.bindResizeListener();
      }
     },
     init: function init() {
      if (!this.disabled) {
       this.setSize();
       this.calculateOptions();
       this.setSpacerSize();
      }
     },
     isVertical: function isVertical() {
      return this.orientation === "vertical";
     },
     isHorizontal: function isHorizontal() {
      return this.orientation === "horizontal";
     },
     isBoth: function isBoth() {
      return this.orientation === "both";
     },
     scrollTo: function scrollTo(options3) {
      this.element && this.element.scrollTo(options3);
     },
     scrollToIndex: function scrollToIndex(index) {
      var _this = this;
      var behavior = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "auto";
      var both = this.isBoth();
      var horizontal = this.isHorizontal();
      var valid = both
       ? index.every(function (i2) {
          return i2 > -1;
         })
       : index > -1;
      if (valid) {
       var first3 = this.first;
       var _this$element = this.element,
        _this$element$scrollT = _this$element.scrollTop,
        scrollTop = _this$element$scrollT === void 0 ? 0 : _this$element$scrollT,
        _this$element$scrollL = _this$element.scrollLeft,
        scrollLeft = _this$element$scrollL === void 0 ? 0 : _this$element$scrollL;
       var _this$calculateNumIte = this.calculateNumItems(),
        numToleratedItems2 = _this$calculateNumIte.numToleratedItems;
       var contentPos = this.getContentPosition();
       var itemSize2 = this.itemSize;
       var calculateFirst = function calculateFirst2() {
        var _index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
        var _numT = arguments.length > 1 ? arguments[1] : void 0;
        return _index <= _numT ? 0 : _index;
       };
       var calculateCoord = function calculateCoord2(_first, _size, _cpos) {
        return _first * _size + _cpos;
       };
       var scrollTo2 = function scrollTo3() {
        var left = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
        var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
        return _this.scrollTo({left, top, behavior});
       };
       var newFirst = both ? {rows: 0, cols: 0} : 0;
       var isRangeChanged = false,
        isScrollChanged = false;
       if (both) {
        newFirst = {rows: calculateFirst(index[0], numToleratedItems2[0]), cols: calculateFirst(index[1], numToleratedItems2[1])};
        scrollTo2(calculateCoord(newFirst.cols, itemSize2[1], contentPos.left), calculateCoord(newFirst.rows, itemSize2[0], contentPos.top));
        isScrollChanged = this.lastScrollPos.top !== scrollTop || this.lastScrollPos.left !== scrollLeft;
        isRangeChanged = newFirst.rows !== first3.rows || newFirst.cols !== first3.cols;
       } else {
        newFirst = calculateFirst(index, numToleratedItems2);
        horizontal ? scrollTo2(calculateCoord(newFirst, itemSize2, contentPos.left), scrollTop) : scrollTo2(scrollLeft, calculateCoord(newFirst, itemSize2, contentPos.top));
        isScrollChanged = this.lastScrollPos !== (horizontal ? scrollLeft : scrollTop);
        isRangeChanged = newFirst !== first3;
       }
       this.isRangeChanged = isRangeChanged;
       isScrollChanged && (this.first = newFirst);
      }
     },
     scrollInView: function scrollInView(index, to) {
      var _this2 = this;
      var behavior = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "auto";
      if (to) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       var valid = both
        ? index.every(function (i2) {
           return i2 > -1;
          })
        : index > -1;
       if (valid) {
        var _this$getRenderedRang = this.getRenderedRange(),
         first3 = _this$getRenderedRang.first,
         viewport = _this$getRenderedRang.viewport;
        var scrollTo2 = function scrollTo3() {
         var left = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
         var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
         return _this2.scrollTo({left, top, behavior});
        };
        var isToStart = to === "to-start";
        var isToEnd = to === "to-end";
        if (isToStart) {
         if (both) {
          if (viewport.first.rows - first3.rows > index[0]) {
           scrollTo2(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
          } else if (viewport.first.cols - first3.cols > index[1]) {
           scrollTo2((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
          }
         } else {
          if (viewport.first - first3 > index) {
           var pos = (viewport.first - 1) * this.itemSize;
           horizontal ? scrollTo2(pos, 0) : scrollTo2(0, pos);
          }
         }
        } else if (isToEnd) {
         if (both) {
          if (viewport.last.rows - first3.rows <= index[0] + 1) {
           scrollTo2(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
          } else if (viewport.last.cols - first3.cols <= index[1] + 1) {
           scrollTo2((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
          }
         } else {
          if (viewport.last - first3 <= index + 1) {
           var _pos2 = (viewport.first + 1) * this.itemSize;
           horizontal ? scrollTo2(_pos2, 0) : scrollTo2(0, _pos2);
          }
         }
        }
       }
      } else {
       this.scrollToIndex(index, behavior);
      }
     },
     getRenderedRange: function getRenderedRange() {
      var calculateFirstInViewport = function calculateFirstInViewport2(_pos, _size) {
       return Math.floor(_pos / (_size || _pos));
      };
      var firstInViewport = this.first;
      var lastInViewport = 0;
      if (this.element) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       var _this$element2 = this.element,
        scrollTop = _this$element2.scrollTop,
        scrollLeft = _this$element2.scrollLeft;
       if (both) {
        firstInViewport = {rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1])};
        lastInViewport = {rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols};
       } else {
        var scrollPos = horizontal ? scrollLeft : scrollTop;
        firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
        lastInViewport = firstInViewport + this.numItemsInViewport;
       }
      }
      return {first: this.first, last: this.last, viewport: {first: firstInViewport, last: lastInViewport}};
     },
     calculateNumItems: function calculateNumItems() {
      var both = this.isBoth();
      var horizontal = this.isHorizontal();
      var itemSize2 = this.itemSize;
      var contentPos = this.getContentPosition();
      var contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
      var contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
      var calculateNumItemsInViewport = function calculateNumItemsInViewport2(_contentSize, _itemSize) {
       return Math.ceil(_contentSize / (_itemSize || _contentSize));
      };
      var calculateNumToleratedItems = function calculateNumToleratedItems2(_numItems) {
       return Math.ceil(_numItems / 2);
      };
      var numItemsInViewport = both ? {rows: calculateNumItemsInViewport(contentHeight, itemSize2[0]), cols: calculateNumItemsInViewport(contentWidth, itemSize2[1])} : calculateNumItemsInViewport(horizontal ? contentWidth : contentHeight, itemSize2);
      var numToleratedItems2 = this.d_numToleratedItems || (both ? [calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] : calculateNumToleratedItems(numItemsInViewport));
      return {numItemsInViewport, numToleratedItems: numToleratedItems2};
     },
     calculateOptions: function calculateOptions() {
      var _this3 = this;
      var both = this.isBoth();
      var first3 = this.first;
      var _this$calculateNumIte2 = this.calculateNumItems(),
       numItemsInViewport = _this$calculateNumIte2.numItemsInViewport,
       numToleratedItems2 = _this$calculateNumIte2.numToleratedItems;
      var calculateLast = function calculateLast2(_first, _num, _numT) {
       var _isCols = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
       return _this3.getLast(_first + _num + (_first < _numT ? 2 : 3) * _numT, _isCols);
      };
      var last3 = both ? {rows: calculateLast(first3.rows, numItemsInViewport.rows, numToleratedItems2[0]), cols: calculateLast(first3.cols, numItemsInViewport.cols, numToleratedItems2[1], true)} : calculateLast(first3, numItemsInViewport, numToleratedItems2);
      this.last = last3;
      this.numItemsInViewport = numItemsInViewport;
      this.d_numToleratedItems = numToleratedItems2;
      this.$emit("update:numToleratedItems", this.d_numToleratedItems);
      if (this.showLoader) {
       this.loaderArr = both
        ? Array.from({length: numItemsInViewport.rows}).map(function () {
           return Array.from({length: numItemsInViewport.cols});
          })
        : Array.from({length: numItemsInViewport});
      }
      if (this.lazy) {
       Promise.resolve().then(function () {
        var _this3$items;
        _this3.lazyLoadState = {first: _this3.step ? (both ? {rows: 0, cols: first3.cols} : 0) : first3, last: Math.min(_this3.step ? _this3.step : last3, ((_this3$items = _this3.items) === null || _this3$items === void 0 ? void 0 : _this3$items.length) || 0)};
        _this3.$emit("lazy-load", _this3.lazyLoadState);
       });
      }
     },
     calculateAutoSize: function calculateAutoSize() {
      var _this4 = this;
      if (this.autoSize && !this.d_loading) {
       Promise.resolve().then(function () {
        if (_this4.content) {
         var both = _this4.isBoth();
         var horizontal = _this4.isHorizontal();
         var vertical = _this4.isVertical();
         _this4.content.style.minHeight = _this4.content.style.minWidth = "auto";
         _this4.content.style.position = "relative";
         _this4.element.style.contain = "none";
         var _ref = [Rt(_this4.element), Tt(_this4.element)],
          width = _ref[0],
          height = _ref[1];
         (both || horizontal) && (_this4.element.style.width = width < _this4.defaultWidth ? width + "px" : _this4.scrollWidth || _this4.defaultWidth + "px");
         (both || vertical) && (_this4.element.style.height = height < _this4.defaultHeight ? height + "px" : _this4.scrollHeight || _this4.defaultHeight + "px");
         _this4.content.style.minHeight = _this4.content.style.minWidth = "";
         _this4.content.style.position = "";
         _this4.element.style.contain = "";
        }
       });
      }
     },
     getLast: function getLast() {
      var _ref2, _this$items;
      var last3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
      var isCols = arguments.length > 1 ? arguments[1] : void 0;
      return this.items ? Math.min(isCols ? ((_ref2 = this.columns || this.items[0]) === null || _ref2 === void 0 ? void 0 : _ref2.length) || 0 : ((_this$items = this.items) === null || _this$items === void 0 ? void 0 : _this$items.length) || 0, last3) : 0;
     },
     getContentPosition: function getContentPosition() {
      if (this.content) {
       var style2 = getComputedStyle(this.content);
       var left = parseFloat(style2.paddingLeft) + Math.max(parseFloat(style2.left) || 0, 0);
       var right = parseFloat(style2.paddingRight) + Math.max(parseFloat(style2.right) || 0, 0);
       var top = parseFloat(style2.paddingTop) + Math.max(parseFloat(style2.top) || 0, 0);
       var bottom = parseFloat(style2.paddingBottom) + Math.max(parseFloat(style2.bottom) || 0, 0);
       return {left, right, top, bottom, x: left + right, y: top + bottom};
      }
      return {left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0};
     },
     setSize: function setSize() {
      var _this5 = this;
      if (this.element) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       var parentElement = this.element.parentElement;
       var width = this.scrollWidth || "".concat(this.element.offsetWidth || parentElement.offsetWidth, "px");
       var height = this.scrollHeight || "".concat(this.element.offsetHeight || parentElement.offsetHeight, "px");
       var setProp = function setProp2(_name, _value) {
        return (_this5.element.style[_name] = _value);
       };
       if (both || horizontal) {
        setProp("height", height);
        setProp("width", width);
       } else {
        setProp("height", height);
       }
      }
     },
     setSpacerSize: function setSpacerSize() {
      var _this6 = this;
      var items = this.items;
      if (items) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       var contentPos = this.getContentPosition();
       var setProp = function setProp2(_name, _value, _size) {
        var _cpos = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
        return (_this6.spacerStyle = _objectSpread$5(_objectSpread$5({}, _this6.spacerStyle), _defineProperty$c({}, "".concat(_name), (_value || []).length * _size + _cpos + "px")));
       };
       if (both) {
        setProp("height", items, this.itemSize[0], contentPos.y);
        setProp("width", this.columns || items[1], this.itemSize[1], contentPos.x);
       } else {
        horizontal ? setProp("width", this.columns || items, this.itemSize, contentPos.x) : setProp("height", items, this.itemSize, contentPos.y);
       }
      }
     },
     setContentPosition: function setContentPosition(pos) {
      var _this7 = this;
      if (this.content && !this.appendOnly) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       var first3 = pos ? pos.first : this.first;
       var calculateTranslateVal = function calculateTranslateVal2(_first, _size) {
        return _first * _size;
       };
       var setTransform = function setTransform2() {
        var _x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
        var _y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
        return (_this7.contentStyle = _objectSpread$5(_objectSpread$5({}, _this7.contentStyle), {transform: "translate3d(".concat(_x, "px, ").concat(_y, "px, 0)")}));
       };
       if (both) {
        setTransform(calculateTranslateVal(first3.cols, this.itemSize[1]), calculateTranslateVal(first3.rows, this.itemSize[0]));
       } else {
        var translateVal = calculateTranslateVal(first3, this.itemSize);
        horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
       }
      }
     },
     onScrollPositionChange: function onScrollPositionChange(event) {
      var _this8 = this;
      var target2 = event.target;
      var both = this.isBoth();
      var horizontal = this.isHorizontal();
      var contentPos = this.getContentPosition();
      var calculateScrollPos = function calculateScrollPos2(_pos, _cpos) {
       return _pos ? (_pos > _cpos ? _pos - _cpos : _pos) : 0;
      };
      var calculateCurrentIndex = function calculateCurrentIndex2(_pos, _size) {
       return Math.floor(_pos / (_size || _pos));
      };
      var calculateTriggerIndex = function calculateTriggerIndex2(_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) {
       return _currentIndex <= _numT ? _numT : _isScrollDownOrRight ? _last - _num - _numT : _first + _numT - 1;
      };
      var calculateFirst = function calculateFirst2(_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight, _isCols) {
       if (_currentIndex <= _numT) return 0;
       var firstValue = Math.max(0, _isScrollDownOrRight ? (_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) : _currentIndex > _triggerIndex ? _first : _currentIndex - 2 * _numT);
       var maxFirst = _this8.getLast(firstValue, _isCols);
       if (firstValue > maxFirst) return maxFirst - _num;
       else return firstValue;
      };
      var calculateLast = function calculateLast2(_currentIndex, _first, _last, _num, _numT, _isCols) {
       var lastValue = _first + _num + 2 * _numT;
       if (_currentIndex >= _numT) {
        lastValue += _numT + 1;
       }
       return _this8.getLast(lastValue, _isCols);
      };
      var scrollTop = calculateScrollPos(target2.scrollTop, contentPos.top);
      var scrollLeft = calculateScrollPos(target2.scrollLeft, contentPos.left);
      var newFirst = both ? {rows: 0, cols: 0} : 0;
      var newLast = this.last;
      var isRangeChanged = false;
      var newScrollPos = this.lastScrollPos;
      if (both) {
       var isScrollDown = this.lastScrollPos.top <= scrollTop;
       var isScrollRight = this.lastScrollPos.left <= scrollLeft;
       if (!this.appendOnly || (this.appendOnly && (isScrollDown || isScrollRight))) {
        var currentIndex = {rows: calculateCurrentIndex(scrollTop, this.itemSize[0]), cols: calculateCurrentIndex(scrollLeft, this.itemSize[1])};
        var triggerIndex = {rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown), cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)};
        newFirst = {rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown), cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight, true)};
        newLast = {rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]), cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)};
        isRangeChanged = newFirst.rows !== this.first.rows || newLast.rows !== this.last.rows || newFirst.cols !== this.first.cols || newLast.cols !== this.last.cols || this.isRangeChanged;
        newScrollPos = {top: scrollTop, left: scrollLeft};
       }
      } else {
       var scrollPos = horizontal ? scrollLeft : scrollTop;
       var isScrollDownOrRight = this.lastScrollPos <= scrollPos;
       if (!this.appendOnly || (this.appendOnly && isScrollDownOrRight)) {
        var _currentIndex2 = calculateCurrentIndex(scrollPos, this.itemSize);
        var _triggerIndex2 = calculateTriggerIndex(_currentIndex2, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
        newFirst = calculateFirst(_currentIndex2, _triggerIndex2, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
        newLast = calculateLast(_currentIndex2, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
        isRangeChanged = newFirst !== this.first || newLast !== this.last || this.isRangeChanged;
        newScrollPos = scrollPos;
       }
      }
      return {first: newFirst, last: newLast, isRangeChanged, scrollPos: newScrollPos};
     },
     onScrollChange: function onScrollChange(event) {
      var _this$onScrollPositio = this.onScrollPositionChange(event),
       first3 = _this$onScrollPositio.first,
       last3 = _this$onScrollPositio.last,
       isRangeChanged = _this$onScrollPositio.isRangeChanged,
       scrollPos = _this$onScrollPositio.scrollPos;
      if (isRangeChanged) {
       var newState = {first: first3, last: last3};
       this.setContentPosition(newState);
       this.first = first3;
       this.last = last3;
       this.lastScrollPos = scrollPos;
       this.$emit("scroll-index-change", newState);
       if (this.lazy && this.isPageChanged(first3)) {
        var _this$items2, _this$items3;
        var lazyLoadState = {first: this.step ? Math.min(this.getPageByFirst(first3) * this.step, (((_this$items2 = this.items) === null || _this$items2 === void 0 ? void 0 : _this$items2.length) || 0) - this.step) : first3, last: Math.min(this.step ? (this.getPageByFirst(first3) + 1) * this.step : last3, ((_this$items3 = this.items) === null || _this$items3 === void 0 ? void 0 : _this$items3.length) || 0)};
        var isLazyStateChanged = this.lazyLoadState.first !== lazyLoadState.first || this.lazyLoadState.last !== lazyLoadState.last;
        isLazyStateChanged && this.$emit("lazy-load", lazyLoadState);
        this.lazyLoadState = lazyLoadState;
       }
      }
     },
     onScroll: function onScroll(event) {
      var _this9 = this;
      this.$emit("scroll", event);
      if (this.delay) {
       if (this.scrollTimeout) {
        clearTimeout(this.scrollTimeout);
       }
       if (this.isPageChanged()) {
        if (!this.d_loading && this.showLoader) {
         var _this$onScrollPositio2 = this.onScrollPositionChange(event),
          isRangeChanged = _this$onScrollPositio2.isRangeChanged;
         var changed = isRangeChanged || (this.step ? this.isPageChanged() : false);
         changed && (this.d_loading = true);
        }
        this.scrollTimeout = setTimeout(function () {
         _this9.onScrollChange(event);
         if (_this9.d_loading && _this9.showLoader && (!_this9.lazy || _this9.loading === void 0)) {
          _this9.d_loading = false;
          _this9.page = _this9.getPageByFirst();
         }
        }, this.delay);
       }
      } else {
       this.onScrollChange(event);
      }
     },
     onResize: function onResize() {
      var _this0 = this;
      if (this.resizeTimeout) {
       clearTimeout(this.resizeTimeout);
      }
      this.resizeTimeout = setTimeout(function () {
       if (et(_this0.element)) {
        var both = _this0.isBoth();
        var vertical = _this0.isVertical();
        var horizontal = _this0.isHorizontal();
        var _ref3 = [Rt(_this0.element), Tt(_this0.element)],
         width = _ref3[0],
         height = _ref3[1];
        var isDiffWidth = width !== _this0.defaultWidth,
         isDiffHeight = height !== _this0.defaultHeight;
        var reinit = both ? isDiffWidth || isDiffHeight : horizontal ? isDiffWidth : vertical ? isDiffHeight : false;
        if (reinit) {
         _this0.d_numToleratedItems = _this0.numToleratedItems;
         _this0.defaultWidth = width;
         _this0.defaultHeight = height;
         _this0.defaultContentWidth = Rt(_this0.content);
         _this0.defaultContentHeight = Tt(_this0.content);
         _this0.init();
        }
       }
      }, this.resizeDelay);
     },
     bindResizeListener: function bindResizeListener() {
      var _this1 = this;
      if (!this.resizeListener) {
       this.resizeListener = this.onResize.bind(this);
       window.addEventListener("resize", this.resizeListener);
       window.addEventListener("orientationchange", this.resizeListener);
       this.resizeObserver = new ResizeObserver(function () {
        _this1.onResize();
       });
       this.resizeObserver.observe(this.element);
      }
     },
     unbindResizeListener: function unbindResizeListener() {
      if (this.resizeListener) {
       window.removeEventListener("resize", this.resizeListener);
       window.removeEventListener("orientationchange", this.resizeListener);
       this.resizeListener = null;
      }
      if (this.resizeObserver) {
       this.resizeObserver.disconnect();
       this.resizeObserver = null;
      }
     },
     getOptions: function getOptions(renderedIndex) {
      var count = (this.items || []).length;
      var index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
      return {index, count, first: index === 0, last: index === count - 1, even: index % 2 === 0, odd: index % 2 !== 0};
     },
     getLoaderOptions: function getLoaderOptions(index, extOptions) {
      var count = this.loaderArr.length;
      return _objectSpread$5({index, count, first: index === 0, last: index === count - 1, even: index % 2 === 0, odd: index % 2 !== 0}, extOptions);
     },
     getPageByFirst: function getPageByFirst(first3) {
      return Math.floor(((first3 !== null && first3 !== void 0 ? first3 : this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
     },
     isPageChanged: function isPageChanged(first3) {
      return this.step && !this.lazy ? this.page !== this.getPageByFirst(first3 !== null && first3 !== void 0 ? first3 : this.first) : true;
     },
     setContentEl: function setContentEl(el) {
      this.content = el || this.content || z$1(this.element, '[data-pc-section="content"]');
     },
     elementRef: function elementRef(el) {
      this.element = el;
     },
     contentRef: function contentRef(el) {
      this.content = el;
     },
    },
    computed: {
     containerClass: function containerClass() {
      return ["p-virtualscroller", this["class"], {"p-virtualscroller-inline": this.inline, "p-virtualscroller-both p-both-scroll": this.isBoth(), "p-virtualscroller-horizontal p-horizontal-scroll": this.isHorizontal()}];
     },
     contentClass: function contentClass() {
      return ["p-virtualscroller-content", {"p-virtualscroller-loading": this.d_loading}];
     },
     loaderClass: function loaderClass() {
      return ["p-virtualscroller-loader", {"p-virtualscroller-loader-mask": !this.$slots.loader}];
     },
     loadedItems: function loadedItems() {
      var _this10 = this;
      if (this.items && !this.d_loading) {
       if (this.isBoth())
        return this.items.slice(this.appendOnly ? 0 : this.first.rows, this.last.rows).map(function (item2) {
         return _this10.columns ? item2 : item2.slice(_this10.appendOnly ? 0 : _this10.first.cols, _this10.last.cols);
        });
       else if (this.isHorizontal() && this.columns) return this.items;
       else return this.items.slice(this.appendOnly ? 0 : this.first, this.last);
      }
      return [];
     },
     loadedRows: function loadedRows() {
      return this.d_loading ? (this.loaderDisabled ? this.loaderArr : []) : this.loadedItems;
     },
     loadedColumns: function loadedColumns() {
      if (this.columns) {
       var both = this.isBoth();
       var horizontal = this.isHorizontal();
       if (both || horizontal) {
        return this.d_loading && this.loaderDisabled ? (both ? this.loaderArr[0] : this.loaderArr) : this.columns.slice(both ? this.first.cols : this.first, both ? this.last.cols : this.last);
       }
      }
      return this.columns;
     },
    },
    components: {SpinnerIcon: script$A},
   };
   var _hoisted_1$$ = ["tabindex"];
   function render$_(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
    return !_ctx.disabled
     ? (openBlock(),
       createElementBlock(
        "div",
        mergeProps(
         {
          key: 0,
          ref: $options.elementRef,
          class: $options.containerClass,
          tabindex: _ctx.tabindex,
          style: _ctx.style,
          onScroll:
           _cache[0] ||
           (_cache[0] = function () {
            return $options.onScroll && $options.onScroll.apply($options, arguments);
           }),
         },
         _ctx.ptmi("root"),
        ),
        [
         renderSlot(_ctx.$slots, "content", {styleClass: $options.contentClass, items: $options.loadedItems, getItemOptions: $options.getOptions, loading: $data.d_loading, getLoaderOptions: $options.getLoaderOptions, itemSize: _ctx.itemSize, rows: $options.loadedRows, columns: $options.loadedColumns, contentRef: $options.contentRef, spacerStyle: $data.spacerStyle, contentStyle: $data.contentStyle, vertical: $options.isVertical(), horizontal: $options.isHorizontal(), both: $options.isBoth()}, function () {
          return [
           createElementVNode(
            "div",
            mergeProps({ref: $options.contentRef, class: $options.contentClass, style: $data.contentStyle}, _ctx.ptm("content")),
            [
             (openBlock(true),
             createElementBlock(
              Fragment,
              null,
              renderList($options.loadedItems, function (item2, index) {
               return renderSlot(_ctx.$slots, "item", {key: index, item: item2, options: $options.getOptions(index)});
              }),
              128,
             )),
            ],
            16,
           ),
          ];
         }),
         _ctx.showSpacer ? (openBlock(), createElementBlock("div", mergeProps({key: 0, class: "p-virtualscroller-spacer", style: $data.spacerStyle}, _ctx.ptm("spacer")), null, 16)) : createCommentVNode("", true),
         !_ctx.loaderDisabled && _ctx.showLoader && $data.d_loading
          ? (openBlock(),
            createElementBlock(
             "div",
             mergeProps({key: 1, class: $options.loaderClass}, _ctx.ptm("loader")),
             [
              _ctx.$slots && _ctx.$slots.loader
               ? (openBlock(true),
                 createElementBlock(
                  Fragment,
                  {key: 0},
                  renderList($data.loaderArr, function (_, index) {
                   return renderSlot(_ctx.$slots, "loader", {key: index, options: $options.getLoaderOptions(index, $options.isBoth() && {numCols: _ctx.d_numItemsInViewport.cols})});
                  }),
                  128,
                 ))
               : createCommentVNode("", true),
              renderSlot(_ctx.$slots, "loadingicon", {}, function () {
               return [createVNode(_component_SpinnerIcon, mergeProps({spin: "", class: "p-virtualscroller-loading-icon"}, _ctx.ptm("loadingIcon")), null, 16)];
              }),
             ],
             16,
            ))
          : createCommentVNode("", true),
        ],
        16,
        _hoisted_1$$,
       ))
     : (openBlock(), createElementBlock(Fragment, {key: 1}, [renderSlot(_ctx.$slots, "default"), renderSlot(_ctx.$slots, "content", {items: _ctx.items, rows: _ctx.items, columns: $options.loadedColumns})], 64));
   }
   script$w.render = render$_;
   var style$g = '\\n .p-badge{align-items:center;background:dt("badge.primary.background");border-radius:dt("badge.border.radius");color:dt("badge.primary.color");display:inline-flex;font-size:dt("badge.font.size");font-weight:dt("badge.font.weight");height:dt("badge.height");justify-content:center;min-width:dt("badge.min.width");padding:dt("badge.padding")}.p-badge-dot{height:dt("badge.dot.size");min-width:dt("badge.dot.size");width:dt("badge.dot.size")}.p-badge-circle,.p-badge-dot{border-radius:50%;padding:0}.p-badge-secondary{background:dt("badge.secondary.background");color:dt("badge.secondary.color")}.p-badge-success{background:dt("badge.success.background");color:dt("badge.success.color")}.p-badge-info{background:dt("badge.info.background");color:dt("badge.info.color")}.p-badge-warn{background:dt("badge.warn.background");color:dt("badge.warn.color")}.p-badge-danger{background:dt("badge.danger.background");color:dt("badge.danger.color")}.p-badge-contrast{background:dt("badge.contrast.background");color:dt("badge.contrast.color")}.p-badge-sm{font-size:dt("badge.sm.font.size");height:dt("badge.sm.height");min-width:dt("badge.sm.min.width")}.p-badge-lg{font-size:dt("badge.lg.font.size");height:dt("badge.lg.height");min-width:dt("badge.lg.min.width")}.p-badge-xl{font-size:dt("badge.xl.font.size");height:dt("badge.xl.height");min-width:dt("badge.xl.min.width")}';
   var classes$h = {
    root: function root5(_ref) {
     var props2 = _ref.props,
      instance = _ref.instance;
     return ["p-badge p-component", {"p-badge-circle": s$3(props2.value) && String(props2.value).length === 1, "p-badge-dot": l$1(props2.value) && !instance.$slots["default"], "p-badge-sm": props2.size === "small", "p-badge-lg": props2.size === "large", "p-badge-xl": props2.size === "xlarge", "p-badge-info": props2.severity === "info", "p-badge-success": props2.severity === "success", "p-badge-warn": props2.severity === "warn", "p-badge-danger": props2.severity === "danger", "p-badge-secondary": props2.severity === "secondary", "p-badge-contrast": props2.severity === "contrast"}];
    },
   };
   var BadgeStyle = BaseStyle.extend({name: "badge", style: style$g, classes: classes$h});
   var script$1$h = {
    name: "BaseBadge",
    extends: script$Q,
    props: {value: {type: [String, Number], default: null}, severity: {type: String, default: null}, size: {type: String, default: null}},
    style: BadgeStyle,
    provide: function provide10() {
     return {$pcBadge: this, $parentInstance: this};
    },
   };
   function _typeof$c(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$c =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$c(o)
    );
   }
   function _defineProperty$b(e, r, t2) {
    return ((r = _toPropertyKey$b(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$b(t2) {
    var i2 = _toPrimitive$b(t2, "string");
    return "symbol" == _typeof$c(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$b(t2, r) {
    if ("object" != _typeof$c(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$c(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$v = {
    name: "Badge",
    extends: script$1$h,
    inheritAttrs: false,
    computed: {
     dataP: function dataP5() {
      return f(_defineProperty$b(_defineProperty$b({circle: this.value != null && String(this.value).length === 1, empty: this.value == null && !this.$slots["default"]}, this.severity, this.severity), this.size, this.size));
     },
    },
   };
   var _hoisted_1$_ = ["data-p"];
   function render$Z(_ctx, _cache, $props, $setup, $data, $options) {
    return (
     openBlock(),
     createElementBlock(
      "span",
      mergeProps({class: _ctx.cx("root"), "data-p": $options.dataP}, _ctx.ptmi("root")),
      [
       renderSlot(_ctx.$slots, "default", {}, function () {
        return [createTextVNode(toDisplayString$1(_ctx.value), 1)];
       }),
      ],
      16,
      _hoisted_1$_,
     )
    );
   }
   script$v.render = render$Z;
   var style$f = '\\n .p-button{align-items:center;background:dt("button.primary.background");border:1px solid dt("button.primary.border.color");border-radius:dt("button.border.radius");color:dt("button.primary.color");cursor:pointer;display:inline-flex;font-family:inherit;font-feature-settings:inherit;font-size:1rem;gap:dt("button.gap");justify-content:center;outline-color:transparent;overflow:hidden;padding:dt("button.padding.y") dt("button.padding.x");position:relative;transition:background dt("button.transition.duration"),color dt("button.transition.duration"),border-color dt("button.transition.duration"),outline-color dt("button.transition.duration"),box-shadow dt("button.transition.duration");user-select:none}.p-button:disabled{cursor:default}.p-button-icon-right{order:1}.p-button-icon-right:dir(rtl){order:-1}.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl){order:1}.p-button-icon-bottom{order:2}.p-button-icon-only{gap:0;padding-inline-end:0;padding-inline-start:0;width:dt("button.icon.only.width")}.p-button-icon-only.p-button-rounded{border-radius:50%;height:dt("button.icon.only.width")}.p-button-icon-only .p-button-label{visibility:hidden;width:0}.p-button-icon-only:after{content:"\0A0";visibility:hidden;width:0}.p-button-sm{padding:dt("button.sm.padding.y") dt("button.sm.padding.x")}.p-button-sm,.p-button-sm .p-button-icon{font-size:dt("button.sm.font.size")}.p-button-sm.p-button-icon-only{width:dt("button.sm.icon.only.width")}.p-button-sm.p-button-icon-only.p-button-rounded{height:dt("button.sm.icon.only.width")}.p-button-lg{padding:dt("button.lg.padding.y") dt("button.lg.padding.x")}.p-button-lg,.p-button-lg .p-button-icon{font-size:dt("button.lg.font.size")}.p-button-lg.p-button-icon-only{width:dt("button.lg.icon.only.width")}.p-button-lg.p-button-icon-only.p-button-rounded{height:dt("button.lg.icon.only.width")}.p-button-vertical{flex-direction:column}.p-button-label{font-weight:dt("button.label.font.weight")}.p-button-fluid{width:100%}.p-button-fluid.p-button-icon-only{width:dt("button.icon.only.width")}.p-button:not(:disabled):hover{background:dt("button.primary.hover.background");border:1px solid dt("button.primary.hover.border.color");color:dt("button.primary.hover.color")}.p-button:not(:disabled):active{background:dt("button.primary.active.background");border:1px solid dt("button.primary.active.border.color");color:dt("button.primary.active.color")}.p-button:focus-visible{box-shadow:dt("button.primary.focus.ring.shadow");outline:dt("button.primary.focus.ring.color");outline-offset:dt("button.focus.ring.offset")}.p-button .p-badge{height:dt("button.badge.size");line-height:dt("button.badge.size");min-width:dt("button.badge.size")}.p-button-raised{box-shadow:dt("button.raised.shadow")}.p-button-rounded{border-radius:dt("button.rounded.border.radius")}.p-button-secondary{background:dt("button.secondary.background");border:1px solid dt("button.secondary.border.color");color:dt("button.secondary.color")}.p-button-secondary:not(:disabled):hover{background:dt("button.secondary.hover.background");border:1px solid dt("button.secondary.hover.border.color");color:dt("button.secondary.hover.color")}.p-button-secondary:not(:disabled):active{background:dt("button.secondary.active.background");border:1px solid dt("button.secondary.active.border.color");color:dt("button.secondary.active.color")}.p-button-secondary:focus-visible{box-shadow:dt("button.secondary.focus.ring.shadow");outline-color:dt("button.secondary.focus.ring.color")}.p-button-success{background:dt("button.success.background");border:1px solid dt("button.success.border.color");color:dt("button.success.color")}.p-button-success:not(:disabled):hover{background:dt("button.success.hover.background");border:1px solid dt("button.success.hover.border.color");color:dt("button.success.hover.color")}.p-button-success:not(:disabled):active{background:dt("button.success.active.background");border:1px solid dt("button.success.active.border.color");color:dt("button.success.active.color")}.p-button-success:focus-visible{box-shadow:dt("button.success.focus.ring.shadow");outline-color:dt("button.success.focus.ring.color")}.p-button-info{background:dt("button.info.background");border:1px solid dt("button.info.border.color");color:dt("button.info.color")}.p-button-info:not(:disabled):hover{background:dt("button.info.hover.background");border:1px solid dt("button.info.hover.border.color");color:dt("button.info.hover.color")}.p-button-info:not(:disabled):active{background:dt("button.info.active.background");border:1px solid dt("button.info.active.border.color");color:dt("button.info.active.color")}.p-button-info:focus-visible{box-shadow:dt("button.info.focus.ring.shadow");outline-color:dt("button.info.focus.ring.color")}.p-button-warn{background:dt("button.warn.background");border:1px solid dt("button.warn.border.color");color:dt("button.warn.color")}.p-button-warn:not(:disabled):hover{background:dt("button.warn.hover.background");border:1px solid dt("button.warn.hover.border.color");color:dt("button.warn.hover.color")}.p-button-warn:not(:disabled):active{background:dt("button.warn.active.background");border:1px solid dt("button.warn.active.border.color");color:dt("button.warn.active.color")}.p-button-warn:focus-visible{box-shadow:dt("button.warn.focus.ring.shadow");outline-color:dt("button.warn.focus.ring.color")}.p-button-help{background:dt("button.help.background");border:1px solid dt("button.help.border.color");color:dt("button.help.color")}.p-button-help:not(:disabled):hover{background:dt("button.help.hover.background");border:1px solid dt("button.help.hover.border.color");color:dt("button.help.hover.color")}.p-button-help:not(:disabled):active{background:dt("button.help.active.background");border:1px solid dt("button.help.active.border.color");color:dt("button.help.active.color")}.p-button-help:focus-visible{box-shadow:dt("button.help.focus.ring.shadow");outline-color:dt("button.help.focus.ring.color")}.p-button-danger{background:dt("button.danger.background");border:1px solid dt("button.danger.border.color");color:dt("button.danger.color")}.p-button-danger:not(:disabled):hover{background:dt("button.danger.hover.background");border:1px solid dt("button.danger.hover.border.color");color:dt("button.danger.hover.color")}.p-button-danger:not(:disabled):active{background:dt("button.danger.active.background");border:1px solid dt("button.danger.active.border.color");color:dt("button.danger.active.color")}.p-button-danger:focus-visible{box-shadow:dt("button.danger.focus.ring.shadow");outline-color:dt("button.danger.focus.ring.color")}.p-button-contrast{background:dt("button.contrast.background");border:1px solid dt("button.contrast.border.color");color:dt("button.contrast.color")}.p-button-contrast:not(:disabled):hover{background:dt("button.contrast.hover.background");border:1px solid dt("button.contrast.hover.border.color");color:dt("button.contrast.hover.color")}.p-button-contrast:not(:disabled):active{background:dt("button.contrast.active.background");border:1px solid dt("button.contrast.active.border.color");color:dt("button.contrast.active.color")}.p-button-contrast:focus-visible{box-shadow:dt("button.contrast.focus.ring.shadow");outline-color:dt("button.contrast.focus.ring.color")}.p-button-outlined{background:transparent}.p-button-outlined,.p-button-outlined:not(:disabled):hover{border-color:dt("button.outlined.primary.border.color");color:dt("button.outlined.primary.color")}.p-button-outlined:not(:disabled):hover{background:dt("button.outlined.primary.hover.background")}.p-button-outlined:not(:disabled):active{background:dt("button.outlined.primary.active.background");border-color:dt("button.outlined.primary.border.color");color:dt("button.outlined.primary.color")}.p-button-outlined.p-button-secondary,.p-button-outlined.p-button-secondary:not(:disabled):hover{border-color:dt("button.outlined.secondary.border.color");color:dt("button.outlined.secondary.color")}.p-button-outlined.p-button-secondary:not(:disabled):hover{background:dt("button.outlined.secondary.hover.background")}.p-button-outlined.p-button-secondary:not(:disabled):active{background:dt("button.outlined.secondary.active.background");border-color:dt("button.outlined.secondary.border.color");color:dt("button.outlined.secondary.color")}.p-button-outlined.p-button-success,.p-button-outlined.p-button-success:not(:disabled):hover{border-color:dt("button.outlined.success.border.color");color:dt("button.outlined.success.color")}.p-button-outlined.p-button-success:not(:disabled):hover{background:dt("button.outlined.success.hover.background")}.p-button-outlined.p-button-success:not(:disabled):active{background:dt("button.outlined.success.active.background");border-color:dt("button.outlined.success.border.color");color:dt("button.outlined.success.color")}.p-button-outlined.p-button-info,.p-button-outlined.p-button-info:not(:disabled):hover{border-color:dt("button.outlined.info.border.color");color:dt("button.outlined.info.color")}.p-button-outlined.p-button-info:not(:disabled):hover{background:dt("button.outlined.info.hover.background")}.p-button-outlined.p-button-info:not(:disabled):active{background:dt("button.outlined.info.active.background");border-color:dt("button.outlined.info.border.color");color:dt("button.outlined.info.color")}.p-button-outlined.p-button-warn,.p-button-outlined.p-button-warn:not(:disabled):hover{border-color:dt("button.outlined.warn.border.color");color:dt("button.outlined.warn.color")}.p-button-outlined.p-button-warn:not(:disabled):hover{background:dt("button.outlined.warn.hover.background")}.p-button-outlined.p-button-warn:not(:disabled):active{background:dt("button.outlined.warn.active.background");border-color:dt("button.outlined.warn.border.color");color:dt("button.outlined.warn.color")}.p-button-outlined.p-button-help,.p-button-outlined.p-button-help:not(:disabled):hover{border-color:dt("button.outlined.help.border.color");color:dt("button.outlined.help.color")}.p-button-outlined.p-button-help:not(:disabled):hover{background:dt("button.outlined.help.hover.background")}.p-button-outlined.p-button-help:not(:disabled):active{background:dt("button.outlined.help.active.background");border-color:dt("button.outlined.help.border.color");color:dt("button.outlined.help.color")}.p-button-outlined.p-button-danger,.p-button-outlined.p-button-danger:not(:disabled):hover{border-color:dt("button.outlined.danger.border.color");color:dt("button.outlined.danger.color")}.p-button-outlined.p-button-danger:not(:disabled):hover{background:dt("button.outlined.danger.hover.background")}.p-button-outlined.p-button-danger:not(:disabled):active{background:dt("button.outlined.danger.active.background");border-color:dt("button.outlined.danger.border.color");color:dt("button.outlined.danger.color")}.p-button-outlined.p-button-contrast,.p-button-outlined.p-button-contrast:not(:disabled):hover{border-color:dt("button.outlined.contrast.border.color");color:dt("button.outlined.contrast.color")}.p-button-outlined.p-button-contrast:not(:disabled):hover{background:dt("button.outlined.contrast.hover.background")}.p-button-outlined.p-button-contrast:not(:disabled):active{background:dt("button.outlined.contrast.active.background");border-color:dt("button.outlined.contrast.border.color");color:dt("button.outlined.contrast.color")}.p-button-outlined.p-button-plain,.p-button-outlined.p-button-plain:not(:disabled):hover{border-color:dt("button.outlined.plain.border.color");color:dt("button.outlined.plain.color")}.p-button-outlined.p-button-plain:not(:disabled):hover{background:dt("button.outlined.plain.hover.background")}.p-button-outlined.p-button-plain:not(:disabled):active{background:dt("button.outlined.plain.active.background");border-color:dt("button.outlined.plain.border.color");color:dt("button.outlined.plain.color")}.p-button-text{background:transparent}.p-button-text,.p-button-text:not(:disabled):hover{border-color:transparent;color:dt("button.text.primary.color")}.p-button-text:not(:disabled):hover{background:dt("button.text.primary.hover.background")}.p-button-text:not(:disabled):active{background:dt("button.text.primary.active.background");border-color:transparent;color:dt("button.text.primary.color")}.p-button-text.p-button-secondary{background:transparent;border-color:transparent;color:dt("button.text.secondary.color")}.p-button-text.p-button-secondary:not(:disabled):hover{background:dt("button.text.secondary.hover.background");border-color:transparent;color:dt("button.text.secondary.color")}.p-button-text.p-button-secondary:not(:disabled):active{background:dt("button.text.secondary.active.background");border-color:transparent;color:dt("button.text.secondary.color")}.p-button-text.p-button-success{background:transparent;border-color:transparent;color:dt("button.text.success.color")}.p-button-text.p-button-success:not(:disabled):hover{background:dt("button.text.success.hover.background");border-color:transparent;color:dt("button.text.success.color")}.p-button-text.p-button-success:not(:disabled):active{background:dt("button.text.success.active.background");border-color:transparent;color:dt("button.text.success.color")}.p-button-text.p-button-info{background:transparent;border-color:transparent;color:dt("button.text.info.color")}.p-button-text.p-button-info:not(:disabled):hover{background:dt("button.text.info.hover.background");border-color:transparent;color:dt("button.text.info.color")}.p-button-text.p-button-info:not(:disabled):active{background:dt("button.text.info.active.background");border-color:transparent;color:dt("button.text.info.color")}.p-button-text.p-button-warn{background:transparent;border-color:transparent;color:dt("button.text.warn.color")}.p-button-text.p-button-warn:not(:disabled):hover{background:dt("button.text.warn.hover.background");border-color:transparent;color:dt("button.text.warn.color")}.p-button-text.p-button-warn:not(:disabled):active{background:dt("button.text.warn.active.background");border-color:transparent;color:dt("button.text.warn.color")}.p-button-text.p-button-help{background:transparent;border-color:transparent;color:dt("button.text.help.color")}.p-button-text.p-button-help:not(:disabled):hover{background:dt("button.text.help.hover.background");border-color:transparent;color:dt("button.text.help.color")}.p-button-text.p-button-help:not(:disabled):active{background:dt("button.text.help.active.background");border-color:transparent;color:dt("button.text.help.color")}.p-button-text.p-button-danger{background:transparent;border-color:transparent;color:dt("button.text.danger.color")}.p-button-text.p-button-danger:not(:disabled):hover{background:dt("button.text.danger.hover.background");border-color:transparent;color:dt("button.text.danger.color")}.p-button-text.p-button-danger:not(:disabled):active{background:dt("button.text.danger.active.background");border-color:transparent;color:dt("button.text.danger.color")}.p-button-text.p-button-contrast{background:transparent;border-color:transparent;color:dt("button.text.contrast.color")}.p-button-text.p-button-contrast:not(:disabled):hover{background:dt("button.text.contrast.hover.background");border-color:transparent;color:dt("button.text.contrast.color")}.p-button-text.p-button-contrast:not(:disabled):active{background:dt("button.text.contrast.active.background");border-color:transparent;color:dt("button.text.contrast.color")}.p-button-text.p-button-plain{background:transparent;border-color:transparent;color:dt("button.text.plain.color")}.p-button-text.p-button-plain:not(:disabled):hover{background:dt("button.text.plain.hover.background");border-color:transparent;color:dt("button.text.plain.color")}.p-button-text.p-button-plain:not(:disabled):active{background:dt("button.text.plain.active.background");border-color:transparent;color:dt("button.text.plain.color")}.p-button-link{background:transparent;border-color:transparent;color:dt("button.link.color")}.p-button-link:not(:disabled):hover{background:transparent;border-color:transparent;color:dt("button.link.hover.color")}.p-button-link:not(:disabled):hover .p-button-label{text-decoration:underline}.p-button-link:not(:disabled):active{background:transparent;border-color:transparent;color:dt("button.link.active.color")}';
   function _typeof$b(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$b =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$b(o)
    );
   }
   function _defineProperty$a(e, r, t2) {
    return ((r = _toPropertyKey$a(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$a(t2) {
    var i2 = _toPrimitive$a(t2, "string");
    return "symbol" == _typeof$b(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$a(t2, r) {
    if ("object" != _typeof$b(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$b(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var classes$g = {
    root: function root6(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-button p-component", _defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({"p-button-icon-only": instance.hasIcon && !props2.label && !props2.badge, "p-button-vertical": (props2.iconPos === "top" || props2.iconPos === "bottom") && props2.label, "p-button-loading": props2.loading, "p-button-link": props2.link || props2.variant === "link"}, "p-button-".concat(props2.severity), props2.severity), "p-button-raised", props2.raised), "p-button-rounded", props2.rounded), "p-button-text", props2.text || props2.variant === "text"), "p-button-outlined", props2.outlined || props2.variant === "outlined"), "p-button-sm", props2.size === "small"), "p-button-lg", props2.size === "large"), "p-button-plain", props2.plain), "p-button-fluid", instance.hasFluid)];
    },
    loadingIcon: "p-button-loading-icon",
    icon: function icon(_ref3) {
     var props2 = _ref3.props;
     return ["p-button-icon", _defineProperty$a({}, "p-button-icon-".concat(props2.iconPos), props2.label)];
    },
    label: "p-button-label",
   };
   var ButtonStyle = BaseStyle.extend({name: "button", style: style$f, classes: classes$g});
   var script$1$g = {
    name: "BaseButton",
    extends: script$Q,
    props: {label: {type: String, default: null}, icon: {type: String, default: null}, iconPos: {type: String, default: "left"}, iconClass: {type: [String, Object], default: null}, badge: {type: String, default: null}, badgeClass: {type: [String, Object], default: null}, badgeSeverity: {type: String, default: "secondary"}, loading: {type: Boolean, default: false}, loadingIcon: {type: String, default: void 0}, as: {type: [String, Object], default: "BUTTON"}, asChild: {type: Boolean, default: false}, link: {type: Boolean, default: false}, severity: {type: String, default: null}, raised: {type: Boolean, default: false}, rounded: {type: Boolean, default: false}, text: {type: Boolean, default: false}, outlined: {type: Boolean, default: false}, size: {type: String, default: null}, variant: {type: String, default: null}, plain: {type: Boolean, default: false}, fluid: {type: Boolean, default: null}},
    style: ButtonStyle,
    provide: function provide11() {
     return {$pcButton: this, $parentInstance: this};
    },
   };
   function _typeof$a(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$a =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$a(o)
    );
   }
   function _defineProperty$9(e, r, t2) {
    return ((r = _toPropertyKey$9(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$9(t2) {
    var i2 = _toPrimitive$9(t2, "string");
    return "symbol" == _typeof$a(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$9(t2, r) {
    if ("object" != _typeof$a(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$a(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$u = {
    name: "Button",
    extends: script$1$g,
    inheritAttrs: false,
    inject: {$pcFluid: {default: null}},
    methods: {
     getPTOptions: function getPTOptions(key) {
      var _ptm = key === "root" ? this.ptmi : this.ptm;
      return _ptm(key, {context: {disabled: this.disabled}});
     },
    },
    computed: {
     disabled: function disabled() {
      return this.$attrs.disabled || this.$attrs.disabled === "" || this.loading;
     },
     defaultAriaLabel: function defaultAriaLabel() {
      return this.label ? this.label + (this.badge ? " " + this.badge : "") : this.$attrs.ariaLabel;
     },
     hasIcon: function hasIcon() {
      return this.icon || this.$slots.icon;
     },
     attrs: function attrs5() {
      return mergeProps(this.asAttrs, this.a11yAttrs, this.getPTOptions("root"));
     },
     asAttrs: function asAttrs2() {
      return this.as === "BUTTON" ? {type: "button", disabled: this.disabled} : void 0;
     },
     a11yAttrs: function a11yAttrs4() {
      return {"aria-label": this.defaultAriaLabel, "data-pc-name": "button", "data-p-disabled": this.disabled, "data-p-severity": this.severity};
     },
     hasFluid: function hasFluid2() {
      return l$1(this.fluid) ? !!this.$pcFluid : this.fluid;
     },
     dataP: function dataP6() {
      return f(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9(_defineProperty$9({}, this.size, this.size), "icon-only", this.hasIcon && !this.label && !this.badge), "loading", this.loading), "fluid", this.hasFluid), "rounded", this.rounded), "raised", this.raised), "outlined", this.outlined || this.variant === "outlined"), "text", this.text || this.variant === "text"), "link", this.link || this.variant === "link"), "vertical", (this.iconPos === "top" || this.iconPos === "bottom") && this.label));
     },
     dataIconP: function dataIconP() {
      return f(_defineProperty$9(_defineProperty$9({}, this.iconPos, this.iconPos), this.size, this.size));
     },
     dataLabelP: function dataLabelP() {
      return f(_defineProperty$9(_defineProperty$9({}, this.size, this.size), "icon-only", this.hasIcon && !this.label && !this.badge));
     },
    },
    components: {SpinnerIcon: script$A, Badge: script$v},
    directives: {ripple: Ripple},
   };
   var _hoisted_1$Z = ["data-p"];
   var _hoisted_2$m = ["data-p"];
   function render$Y(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
    var _component_Badge = resolveComponent("Badge");
    var _directive_ripple = resolveDirective("ripple");
    return !_ctx.asChild
     ? withDirectives(
        (openBlock(),
        createBlock(
         resolveDynamicComponent(_ctx.as),
         mergeProps({key: 0, class: _ctx.cx("root"), "data-p": $options.dataP}, $options.attrs),
         {
          default: withCtx(function () {
           return [
            renderSlot(_ctx.$slots, "default", {}, function () {
             return [
              _ctx.loading
               ? renderSlot(_ctx.$slots, "loadingicon", mergeProps({key: 0, class: [_ctx.cx("loadingIcon"), _ctx.cx("icon")]}, _ctx.ptm("loadingIcon")), function () {
                  return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: [_ctx.cx("loadingIcon"), _ctx.cx("icon"), _ctx.loadingIcon]}, _ctx.ptm("loadingIcon")), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({key: 1, class: [_ctx.cx("loadingIcon"), _ctx.cx("icon")], spin: ""}, _ctx.ptm("loadingIcon")), null, 16, ["class"]))];
                 })
               : renderSlot(_ctx.$slots, "icon", mergeProps({key: 1, class: [_ctx.cx("icon")]}, _ctx.ptm("icon")), function () {
                  return [_ctx.icon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: [_ctx.cx("icon"), _ctx.icon, _ctx.iconClass], "data-p": $options.dataIconP}, _ctx.ptm("icon")), null, 16, _hoisted_1$Z)) : createCommentVNode("", true)];
                 }),
              _ctx.label ? (openBlock(), createElementBlock("span", mergeProps({key: 2, class: _ctx.cx("label")}, _ctx.ptm("label"), {"data-p": $options.dataLabelP}), toDisplayString$1(_ctx.label), 17, _hoisted_2$m)) : createCommentVNode("", true),
              _ctx.badge ? (openBlock(), createBlock(_component_Badge, {key: 3, value: _ctx.badge, class: normalizeClass(_ctx.badgeClass), severity: _ctx.badgeSeverity, unstyled: _ctx.unstyled, pt: _ctx.ptm("pcBadge")}, null, 8, ["value", "class", "severity", "unstyled", "pt"])) : createCommentVNode("", true),
             ];
            }),
           ];
          }),
          _: 3,
         },
         16,
         ["class", "data-p"],
        )),
        [[_directive_ripple]],
       )
     : renderSlot(_ctx.$slots, "default", {key: 1, class: normalizeClass(_ctx.cx("root")), a11yAttrs: $options.a11yAttrs});
   }
   script$u.render = render$Y;
   var script$t = {name: "AngleRightIcon", extends: script$P};
   function _toConsumableArray$i(r) {
    return _arrayWithoutHoles$i(r) || _iterableToArray$i(r) || _unsupportedIterableToArray$j(r) || _nonIterableSpread$i();
   }
   function _nonIterableSpread$i() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$j(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$j(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$j(r, a2) : void 0);
    }
   }
   function _iterableToArray$i(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$i(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$j(r);
   }
   function _arrayLikeToArray$j(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$X(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$i(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$t.render = render$X;
   var script$s = {name: "MinusIcon", extends: script$P};
   function _toConsumableArray$h(r) {
    return _arrayWithoutHoles$h(r) || _iterableToArray$h(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread$h();
   }
   function _nonIterableSpread$h() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$i(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$i(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$i(r, a2) : void 0);
    }
   }
   function _iterableToArray$h(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$h(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$i(r);
   }
   function _arrayLikeToArray$i(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$W(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$h(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$s.render = render$W;
   var style$e = '\\n .p-checkbox{display:inline-flex;height:dt("checkbox.height");position:relative;user-select:none;vertical-align:bottom;width:dt("checkbox.width")}.p-checkbox-input{appearance:none;border:1px solid transparent;cursor:pointer;height:100%;inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;outline:0 none;padding:0;position:absolute;width:100%;z-index:1}.p-checkbox-box,.p-checkbox-input{border-radius:dt("checkbox.border.radius")}.p-checkbox-box{align-items:center;background:dt("checkbox.background");border:1px solid dt("checkbox.border.color");box-shadow:dt("checkbox.shadow");display:flex;height:dt("checkbox.height");justify-content:center;outline-color:transparent;transition:background dt("checkbox.transition.duration"),color dt("checkbox.transition.duration"),border-color dt("checkbox.transition.duration"),box-shadow dt("checkbox.transition.duration"),outline-color dt("checkbox.transition.duration");width:dt("checkbox.width")}.p-checkbox-icon{color:dt("checkbox.icon.color");font-size:dt("checkbox.icon.size");height:dt("checkbox.icon.size");transition-duration:dt("checkbox.transition.duration");width:dt("checkbox.icon.size")}.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box{border-color:dt("checkbox.hover.border.color")}.p-checkbox-checked .p-checkbox-box{background:dt("checkbox.checked.background");border-color:dt("checkbox.checked.border.color")}.p-checkbox-checked .p-checkbox-icon{color:dt("checkbox.icon.checked.color")}.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box{background:dt("checkbox.checked.hover.background");border-color:dt("checkbox.checked.hover.border.color")}.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon{color:dt("checkbox.icon.checked.hover.color")}.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box{border-color:dt("checkbox.focus.border.color");box-shadow:dt("checkbox.focus.ring.shadow");outline:dt("checkbox.focus.ring.color");outline-offset:dt("checkbox.focus.ring.offset")}.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box{border-color:dt("checkbox.checked.focus.border.color")}.p-checkbox.p-invalid>.p-checkbox-box{border-color:dt("checkbox.invalid.border.color")}.p-checkbox.p-variant-filled .p-checkbox-box{background:dt("checkbox.filled.background")}.p-checkbox-checked.p-variant-filled .p-checkbox-box{background:dt("checkbox.checked.background")}.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box{background:dt("checkbox.checked.hover.background")}.p-checkbox.p-disabled{opacity:1}.p-checkbox.p-disabled .p-checkbox-box{background:dt("checkbox.disabled.background");border-color:dt("checkbox.checked.disabled.border.color")}.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon{color:dt("checkbox.icon.disabled.color")}.p-checkbox-sm,.p-checkbox-sm .p-checkbox-box{height:dt("checkbox.sm.height");width:dt("checkbox.sm.width")}.p-checkbox-sm .p-checkbox-icon{font-size:dt("checkbox.icon.sm.size");height:dt("checkbox.icon.sm.size");width:dt("checkbox.icon.sm.size")}.p-checkbox-lg,.p-checkbox-lg .p-checkbox-box{height:dt("checkbox.lg.height");width:dt("checkbox.lg.width")}.p-checkbox-lg .p-checkbox-icon{font-size:dt("checkbox.icon.lg.size");height:dt("checkbox.icon.lg.size");width:dt("checkbox.icon.lg.size")}';
   var classes$f = {
    root: function root7(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-checkbox p-component", {"p-checkbox-checked": instance.checked, "p-disabled": props2.disabled, "p-invalid": instance.$pcCheckboxGroup ? instance.$pcCheckboxGroup.$invalid : instance.$invalid, "p-variant-filled": instance.$variant === "filled", "p-checkbox-sm p-inputfield-sm": props2.size === "small", "p-checkbox-lg p-inputfield-lg": props2.size === "large"}];
    },
    box: "p-checkbox-box",
    input: "p-checkbox-input",
    icon: "p-checkbox-icon",
   };
   var CheckboxStyle = BaseStyle.extend({name: "checkbox", style: style$e, classes: classes$f});
   var script$1$f = {
    name: "BaseCheckbox",
    extends: script$y,
    props: {value: null, binary: Boolean, indeterminate: {type: Boolean, default: false}, trueValue: {type: null, default: true}, falseValue: {type: null, default: false}, readonly: {type: Boolean, default: false}, required: {type: Boolean, default: false}, tabindex: {type: Number, default: null}, inputId: {type: String, default: null}, inputClass: {type: [String, Object], default: null}, inputStyle: {type: Object, default: null}, ariaLabelledby: {type: String, default: null}, ariaLabel: {type: String, default: null}},
    style: CheckboxStyle,
    provide: function provide12() {
     return {$pcCheckbox: this, $parentInstance: this};
    },
   };
   function _typeof$9(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$9 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$9(o)
    );
   }
   function _defineProperty$8(e, r, t2) {
    return ((r = _toPropertyKey$8(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$8(t2) {
    var i2 = _toPrimitive$8(t2, "string");
    return "symbol" == _typeof$9(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$8(t2, r) {
    if ("object" != _typeof$9(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$9(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   function _toConsumableArray$g(r) {
    return _arrayWithoutHoles$g(r) || _iterableToArray$g(r) || _unsupportedIterableToArray$h(r) || _nonIterableSpread$g();
   }
   function _nonIterableSpread$g() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$h(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$h(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$h(r, a2) : void 0);
    }
   }
   function _iterableToArray$g(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$g(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$h(r);
   }
   function _arrayLikeToArray$h(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var script$r = {
    name: "Checkbox",
    extends: script$1$f,
    inheritAttrs: false,
    emits: ["change", "focus", "blur", "update:indeterminate"],
    inject: {$pcCheckboxGroup: {default: void 0}},
    data: function data6() {
     return {d_indeterminate: this.indeterminate};
    },
    watch: {
     indeterminate: function indeterminate(newValue) {
      this.d_indeterminate = newValue;
      this.updateIndeterminate();
     },
    },
    mounted: function mounted6() {
     this.updateIndeterminate();
    },
    updated: function updated3() {
     this.updateIndeterminate();
    },
    methods: {
     getPTOptions: function getPTOptions2(key) {
      var _ptm = key === "root" ? this.ptmi : this.ptm;
      return _ptm(key, {context: {checked: this.checked, indeterminate: this.d_indeterminate, disabled: this.disabled}});
     },
     onChange: function onChange(event) {
      var _this = this;
      if (!this.disabled && !this.readonly) {
       var value2 = this.$pcCheckboxGroup ? this.$pcCheckboxGroup.d_value : this.d_value;
       var newModelValue;
       if (this.binary) {
        newModelValue = this.d_indeterminate ? this.trueValue : this.checked ? this.falseValue : this.trueValue;
       } else {
        if (this.checked || this.d_indeterminate)
         newModelValue = value2.filter(function (val) {
          return !k$3(val, _this.value);
         });
        else newModelValue = value2 ? [].concat(_toConsumableArray$g(value2), [this.value]) : [this.value];
       }
       if (this.d_indeterminate) {
        this.d_indeterminate = false;
        this.$emit("update:indeterminate", this.d_indeterminate);
       }
       this.$pcCheckboxGroup ? this.$pcCheckboxGroup.writeValue(newModelValue, event) : this.writeValue(newModelValue, event);
       this.$emit("change", event);
      }
     },
     onFocus: function onFocus2(event) {
      this.$emit("focus", event);
     },
     onBlur: function onBlur(event) {
      var _this$formField$onBlu, _this$formField;
      this.$emit("blur", event);
      (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
     },
     updateIndeterminate: function updateIndeterminate() {
      if (this.$refs.input) {
       this.$refs.input.indeterminate = this.d_indeterminate;
      }
     },
    },
    computed: {
     groupName: function groupName() {
      return this.$pcCheckboxGroup ? this.$pcCheckboxGroup.groupName : this.$formName;
     },
     checked: function checked() {
      var value2 = this.$pcCheckboxGroup ? this.$pcCheckboxGroup.d_value : this.d_value;
      return this.d_indeterminate ? false : this.binary ? value2 === this.trueValue : q$1(this.value, value2);
     },
     dataP: function dataP7() {
      return f(_defineProperty$8({invalid: this.$invalid, checked: this.checked, disabled: this.disabled, filled: this.$variant === "filled"}, this.size, this.size));
     },
    },
    components: {CheckIcon: script$M, MinusIcon: script$s},
   };
   var _hoisted_1$Y = ["data-p-checked", "data-p-indeterminate", "data-p-disabled", "data-p"];
   var _hoisted_2$l = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid"];
   var _hoisted_3$i = ["data-p"];
   function render$V(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_CheckIcon = resolveComponent("CheckIcon");
    var _component_MinusIcon = resolveComponent("MinusIcon");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: _ctx.cx("root")}, $options.getPTOptions("root"), {"data-p-checked": $options.checked, "data-p-indeterminate": $data.d_indeterminate || void 0, "data-p-disabled": _ctx.disabled, "data-p": $options.dataP}),
      [
       createElementVNode(
        "input",
        mergeProps(
         {
          ref: "input",
          id: _ctx.inputId,
          type: "checkbox",
          class: [_ctx.cx("input"), _ctx.inputClass],
          style: _ctx.inputStyle,
          value: _ctx.value,
          name: $options.groupName,
          checked: $options.checked,
          tabindex: _ctx.tabindex,
          disabled: _ctx.disabled,
          readonly: _ctx.readonly,
          required: _ctx.required,
          "aria-labelledby": _ctx.ariaLabelledby,
          "aria-label": _ctx.ariaLabel,
          "aria-invalid": _ctx.invalid || void 0,
          onFocus:
           _cache[0] ||
           (_cache[0] = function () {
            return $options.onFocus && $options.onFocus.apply($options, arguments);
           }),
          onBlur:
           _cache[1] ||
           (_cache[1] = function () {
            return $options.onBlur && $options.onBlur.apply($options, arguments);
           }),
          onChange:
           _cache[2] ||
           (_cache[2] = function () {
            return $options.onChange && $options.onChange.apply($options, arguments);
           }),
         },
         $options.getPTOptions("input"),
        ),
        null,
        16,
        _hoisted_2$l,
       ),
       createElementVNode(
        "div",
        mergeProps({class: _ctx.cx("box")}, $options.getPTOptions("box"), {"data-p": $options.dataP}),
        [
         renderSlot(_ctx.$slots, "icon", {checked: $options.checked, indeterminate: $data.d_indeterminate, class: normalizeClass(_ctx.cx("icon")), dataP: $options.dataP}, function () {
          return [$options.checked ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({key: 0, class: _ctx.cx("icon")}, $options.getPTOptions("icon"), {"data-p": $options.dataP}), null, 16, ["class", "data-p"])) : $data.d_indeterminate ? (openBlock(), createBlock(_component_MinusIcon, mergeProps({key: 1, class: _ctx.cx("icon")}, $options.getPTOptions("icon"), {"data-p": $options.dataP}), null, 16, ["class", "data-p"])) : createCommentVNode("", true)];
         }),
        ],
        16,
        _hoisted_3$i,
       ),
      ],
      16,
      _hoisted_1$Y,
     )
    );
   }
   script$r.render = render$V;
   var script$q = {name: "WindowMaximizeIcon", extends: script$P};
   function _toConsumableArray$f(r) {
    return _arrayWithoutHoles$f(r) || _iterableToArray$f(r) || _unsupportedIterableToArray$g(r) || _nonIterableSpread$f();
   }
   function _nonIterableSpread$f() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$g(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$g(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$g(r, a2) : void 0);
    }
   }
   function _iterableToArray$f(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$f(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$g(r);
   }
   function _arrayLikeToArray$g(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$U(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$f(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$q.render = render$U;
   var script$p = {name: "WindowMinimizeIcon", extends: script$P};
   function _toConsumableArray$e(r) {
    return _arrayWithoutHoles$e(r) || _iterableToArray$e(r) || _unsupportedIterableToArray$f(r) || _nonIterableSpread$e();
   }
   function _nonIterableSpread$e() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$f(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$f(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$f(r, a2) : void 0);
    }
   }
   function _iterableToArray$e(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$e(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$f(r);
   }
   function _arrayLikeToArray$f(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$T(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$e(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$p.render = render$T;
   var FocusTrapStyle = BaseStyle.extend({name: "focustrap-directive"});
   var BaseFocusTrap = BaseDirective.extend({style: FocusTrapStyle});
   function _typeof$8(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$8 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$8(o)
    );
   }
   function ownKeys$4(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$4(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$4(Object(t2), true).forEach(function (r2) {
         _defineProperty$7(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$4(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$7(e, r, t2) {
    return ((r = _toPropertyKey$7(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$7(t2) {
    var i2 = _toPrimitive$7(t2, "string");
    return "symbol" == _typeof$8(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$7(t2, r) {
    if ("object" != _typeof$8(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$8(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var FocusTrap = BaseFocusTrap.extend("focustrap", {
    mounted: function mounted7(el, binding) {
     var _ref = binding.value || {},
      disabled4 = _ref.disabled;
     if (!disabled4) {
      this.createHiddenFocusableElements(el, binding);
      this.bind(el, binding);
      this.autoElementFocus(el, binding);
     }
     el.setAttribute("data-pd-focustrap", true);
     this.$el = el;
    },
    updated: function updated4(el, binding) {
     var _ref2 = binding.value || {},
      disabled4 = _ref2.disabled;
     disabled4 && this.unbind(el);
    },
    unmounted: function unmounted4(el) {
     this.unbind(el);
    },
    methods: {
     getComputedSelector: function getComputedSelector(selector) {
      return ':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(selector !== null && selector !== void 0 ? selector : "");
     },
     bind: function bind(el, binding) {
      var _this = this;
      var _ref3 = binding.value || {},
       onFocusIn = _ref3.onFocusIn,
       onFocusOut = _ref3.onFocusOut;
      el.$_pfocustrap_mutationobserver = new MutationObserver(function (mutationList) {
       mutationList.forEach(function (mutation) {
        if (mutation.type === "childList" && !el.contains(document.activeElement)) {
         var _findNextFocusableElement = function findNextFocusableElement(_el) {
          var focusableElement = It(_el) ? (It(_el, _this.getComputedSelector(el.$_pfocustrap_focusableselector)) ? _el : vt(el, _this.getComputedSelector(el.$_pfocustrap_focusableselector))) : vt(_el);
          return s$3(focusableElement) ? focusableElement : _el.nextSibling && _findNextFocusableElement(_el.nextSibling);
         };
         bt(_findNextFocusableElement(mutation.nextSibling));
        }
       });
      });
      el.$_pfocustrap_mutationobserver.disconnect();
      el.$_pfocustrap_mutationobserver.observe(el, {childList: true});
      el.$_pfocustrap_focusinlistener = function (event) {
       return onFocusIn && onFocusIn(event);
      };
      el.$_pfocustrap_focusoutlistener = function (event) {
       return onFocusOut && onFocusOut(event);
      };
      el.addEventListener("focusin", el.$_pfocustrap_focusinlistener);
      el.addEventListener("focusout", el.$_pfocustrap_focusoutlistener);
     },
     unbind: function unbind(el) {
      el.$_pfocustrap_mutationobserver && el.$_pfocustrap_mutationobserver.disconnect();
      el.$_pfocustrap_focusinlistener && el.removeEventListener("focusin", el.$_pfocustrap_focusinlistener) && (el.$_pfocustrap_focusinlistener = null);
      el.$_pfocustrap_focusoutlistener && el.removeEventListener("focusout", el.$_pfocustrap_focusoutlistener) && (el.$_pfocustrap_focusoutlistener = null);
     },
     autoFocus: function autoFocus(options3) {
      this.autoElementFocus(this.$el, {value: _objectSpread$4(_objectSpread$4({}, options3), {}, {autoFocus: true})});
     },
     autoElementFocus: function autoElementFocus(el, binding) {
      var _ref4 = binding.value || {},
       _ref4$autoFocusSelect = _ref4.autoFocusSelector,
       autoFocusSelector = _ref4$autoFocusSelect === void 0 ? "" : _ref4$autoFocusSelect,
       _ref4$firstFocusableS = _ref4.firstFocusableSelector,
       firstFocusableSelector = _ref4$firstFocusableS === void 0 ? "" : _ref4$firstFocusableS,
       _ref4$autoFocus = _ref4.autoFocus,
       autoFocus2 = _ref4$autoFocus === void 0 ? false : _ref4$autoFocus;
      var focusableElement = vt(el, "[autofocus]".concat(this.getComputedSelector(autoFocusSelector)));
      autoFocus2 && !focusableElement && (focusableElement = vt(el, this.getComputedSelector(firstFocusableSelector)));
      bt(focusableElement);
     },
     onFirstHiddenElementFocus: function onFirstHiddenElementFocus(event) {
      var _this$$el;
      var currentTarget = event.currentTarget,
       relatedTarget = event.relatedTarget;
      var focusableElement = relatedTarget === currentTarget.$_pfocustrap_lasthiddenfocusableelement || !((_this$$el = this.$el) !== null && _this$$el !== void 0 && _this$$el.contains(relatedTarget)) ? vt(currentTarget.parentElement, this.getComputedSelector(currentTarget.$_pfocustrap_focusableselector)) : currentTarget.$_pfocustrap_lasthiddenfocusableelement;
      bt(focusableElement);
     },
     onLastHiddenElementFocus: function onLastHiddenElementFocus(event) {
      var _this$$el2;
      var currentTarget = event.currentTarget,
       relatedTarget = event.relatedTarget;
      var focusableElement = relatedTarget === currentTarget.$_pfocustrap_firsthiddenfocusableelement || !((_this$$el2 = this.$el) !== null && _this$$el2 !== void 0 && _this$$el2.contains(relatedTarget)) ? Lt(currentTarget.parentElement, this.getComputedSelector(currentTarget.$_pfocustrap_focusableselector)) : currentTarget.$_pfocustrap_firsthiddenfocusableelement;
      bt(focusableElement);
     },
     createHiddenFocusableElements: function createHiddenFocusableElements(el, binding) {
      var _this2 = this;
      var _ref5 = binding.value || {},
       _ref5$tabIndex = _ref5.tabIndex,
       tabIndex = _ref5$tabIndex === void 0 ? 0 : _ref5$tabIndex,
       _ref5$firstFocusableS = _ref5.firstFocusableSelector,
       firstFocusableSelector = _ref5$firstFocusableS === void 0 ? "" : _ref5$firstFocusableS,
       _ref5$lastFocusableSe = _ref5.lastFocusableSelector,
       lastFocusableSelector = _ref5$lastFocusableSe === void 0 ? "" : _ref5$lastFocusableSe;
      var createFocusableElement = function createFocusableElement2(onFocus6) {
       return U$1("span", {class: "p-hidden-accessible p-hidden-focusable", tabIndex, role: "presentation", "aria-hidden": true, "data-p-hidden-accessible": true, "data-p-hidden-focusable": true, onFocus: onFocus6 === null || onFocus6 === void 0 ? void 0 : onFocus6.bind(_this2)});
      };
      var firstFocusableElement = createFocusableElement(this.onFirstHiddenElementFocus);
      var lastFocusableElement = createFocusableElement(this.onLastHiddenElementFocus);
      firstFocusableElement.$_pfocustrap_lasthiddenfocusableelement = lastFocusableElement;
      firstFocusableElement.$_pfocustrap_focusableselector = firstFocusableSelector;
      firstFocusableElement.setAttribute("data-pc-section", "firstfocusableelement");
      lastFocusableElement.$_pfocustrap_firsthiddenfocusableelement = firstFocusableElement;
      lastFocusableElement.$_pfocustrap_focusableselector = lastFocusableSelector;
      lastFocusableElement.setAttribute("data-pc-section", "lastfocusableelement");
      el.prepend(firstFocusableElement);
      el.append(lastFocusableElement);
     },
    },
   });
   var style$d = '\\n .p-dialog{background:dt("dialog.background");border:1px solid dt("dialog.border.color");border-radius:dt("dialog.border.radius");box-shadow:dt("dialog.shadow");color:dt("dialog.color");max-height:90%;transform:scale(1);will-change:transform}.p-dialog-content{overflow-y:auto;padding:dt("dialog.content.padding")}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between;padding:dt("dialog.header.padding")}.p-dialog-title{font-size:dt("dialog.title.font.size");font-weight:dt("dialog.title.font.weight")}.p-dialog-footer{display:flex;flex-shrink:0;gap:dt("dialog.footer.gap");justify-content:flex-end;padding:dt("dialog.footer.padding")}.p-dialog-header-actions{align-items:center;display:flex;gap:dt("dialog.header.gap")}.p-dialog-bottom .p-dialog,.p-dialog-bottomleft .p-dialog,.p-dialog-bottomright .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top .p-dialog,.p-dialog-topleft .p-dialog,.p-dialog-topright .p-dialog{margin:1rem}.p-dialog-maximized{border-radius:0;height:100vh!important;height:100%;left:0!important;max-height:100%;top:0!important;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-dialog-enter-active{animation:p-animate-dialog-enter .3s cubic-bezier(.19,1,.22,1)}.p-dialog-leave-active{animation:p-animate-dialog-leave .3s cubic-bezier(.19,1,.22,1)}@keyframes p-animate-dialog-enter{0%{opacity:0;transform:scale(.93)}}@keyframes p-animate-dialog-leave{to{opacity:0;transform:scale(.93)}}';
   var inlineStyles$2 = {
    mask: function mask(_ref) {
     var position2 = _ref.position,
      modal2 = _ref.modal;
     return {position: "fixed", height: "100%", width: "100%", left: 0, top: 0, display: "flex", justifyContent: position2 === "left" || position2 === "topleft" || position2 === "bottomleft" ? "flex-start" : position2 === "right" || position2 === "topright" || position2 === "bottomright" ? "flex-end" : "center", alignItems: position2 === "top" || position2 === "topleft" || position2 === "topright" ? "flex-start" : position2 === "bottom" || position2 === "bottomleft" || position2 === "bottomright" ? "flex-end" : "center", pointerEvents: modal2 ? "auto" : "none"};
    },
    root: {display: "flex", flexDirection: "column", pointerEvents: "auto"},
   };
   var classes$e = {
    mask: function mask2(_ref2) {
     var props2 = _ref2.props;
     var positions = ["left", "right", "top", "topleft", "topright", "bottom", "bottomleft", "bottomright"];
     var pos = positions.find(function (item2) {
      return item2 === props2.position;
     });
     return ["p-dialog-mask", {"p-overlay-mask p-overlay-mask-enter-active": props2.modal}, pos ? "p-dialog-".concat(pos) : ""];
    },
    root: function root8(_ref3) {
     var props2 = _ref3.props,
      instance = _ref3.instance;
     return ["p-dialog p-component", {"p-dialog-maximized": props2.maximizable && instance.maximized}];
    },
    header: "p-dialog-header",
    title: "p-dialog-title",
    headerActions: "p-dialog-header-actions",
    pcMaximizeButton: "p-dialog-maximize-button",
    pcCloseButton: "p-dialog-close-button",
    content: "p-dialog-content",
    footer: "p-dialog-footer",
   };
   var DialogStyle = BaseStyle.extend({name: "dialog", style: style$d, classes: classes$e, inlineStyles: inlineStyles$2});
   var script$1$e = {
    name: "BaseDialog",
    extends: script$Q,
    props: {
     header: {type: null, default: null},
     footer: {type: null, default: null},
     visible: {type: Boolean, default: false},
     modal: {type: Boolean, default: null},
     contentStyle: {type: null, default: null},
     contentClass: {type: String, default: null},
     contentProps: {type: null, default: null},
     maximizable: {type: Boolean, default: false},
     dismissableMask: {type: Boolean, default: false},
     closable: {type: Boolean, default: true},
     closeOnEscape: {type: Boolean, default: true},
     showHeader: {type: Boolean, default: true},
     blockScroll: {type: Boolean, default: false},
     baseZIndex: {type: Number, default: 0},
     autoZIndex: {type: Boolean, default: true},
     position: {type: String, default: "center"},
     breakpoints: {type: Object, default: null},
     draggable: {type: Boolean, default: true},
     keepInViewport: {type: Boolean, default: true},
     minX: {type: Number, default: 0},
     minY: {type: Number, default: 0},
     appendTo: {type: [String, Object], default: "body"},
     closeIcon: {type: String, default: void 0},
     maximizeIcon: {type: String, default: void 0},
     minimizeIcon: {type: String, default: void 0},
     closeButtonProps: {
      type: Object,
      default: function _default() {
       return {severity: "secondary", text: true, rounded: true};
      },
     },
     maximizeButtonProps: {
      type: Object,
      default: function _default2() {
       return {severity: "secondary", text: true, rounded: true};
      },
     },
     _instance: null,
    },
    style: DialogStyle,
    provide: function provide13() {
     return {$pcDialog: this, $parentInstance: this};
    },
   };
   var script$o = {
    name: "Dialog",
    extends: script$1$e,
    inheritAttrs: false,
    emits: ["update:visible", "show", "hide", "after-hide", "maximize", "unmaximize", "dragstart", "dragend"],
    provide: function provide14() {
     var _this = this;
     return {
      dialogRef: computed(function () {
       return _this._instance;
      }),
     };
    },
    data: function data7() {
     return {containerVisible: this.visible, maximized: false, focusableMax: null, focusableClose: null, target: null};
    },
    documentKeydownListener: null,
    container: null,
    mask: null,
    content: null,
    headerContainer: null,
    footerContainer: null,
    maximizableButton: null,
    closeButton: null,
    styleElement: null,
    dragging: null,
    documentDragListener: null,
    documentDragEndListener: null,
    lastPageX: null,
    lastPageY: null,
    maskMouseDownTarget: null,
    updated: function updated5() {
     if (this.visible) {
      this.containerVisible = this.visible;
     }
    },
    beforeUnmount: function beforeUnmount4() {
     this.unbindDocumentState();
     this.unbindGlobalListeners();
     this.destroyStyle();
     if (this.mask && this.autoZIndex) {
      x$1.clear(this.mask);
     }
     this.container = null;
     this.mask = null;
    },
    mounted: function mounted8() {
     if (this.breakpoints) {
      this.createStyle();
     }
    },
    methods: {
     close: function close2() {
      this.$emit("update:visible", false);
     },
     onEnter: function onEnter2() {
      this.$emit("show");
      this.target = document.activeElement;
      this.enableDocumentSettings();
      this.bindGlobalListeners();
      if (this.autoZIndex) {
       x$1.set("modal", this.mask, this.baseZIndex + this.$primevue.config.zIndex.modal);
      }
     },
     onAfterEnter: function onAfterEnter() {
      this.focus();
     },
     onBeforeLeave: function onBeforeLeave() {
      if (this.modal) {
       !this.isUnstyled && W$1(this.mask, "p-overlay-mask-leave-active");
      }
      if (this.dragging && this.documentDragEndListener) {
       this.documentDragEndListener();
      }
     },
     onLeave: function onLeave2() {
      this.$emit("hide");
      bt(this.target);
      this.target = null;
      this.focusableClose = null;
      this.focusableMax = null;
     },
     onAfterLeave: function onAfterLeave() {
      if (this.autoZIndex) {
       x$1.clear(this.mask);
      }
      this.containerVisible = false;
      this.unbindDocumentState();
      this.unbindGlobalListeners();
      this.$emit("after-hide");
     },
     onMaskMouseDown: function onMaskMouseDown(event) {
      this.maskMouseDownTarget = event.target;
     },
     onMaskMouseUp: function onMaskMouseUp() {
      if (this.dismissableMask && this.modal && this.mask === this.maskMouseDownTarget) {
       this.close();
      }
     },
     focus: function focus$1() {
      var findFocusableElement = function findFocusableElement2(container) {
       return container && container.querySelector("[autofocus]");
      };
      var focusTarget = this.$slots.footer && findFocusableElement(this.footerContainer);
      if (!focusTarget) {
       focusTarget = this.$slots.header && findFocusableElement(this.headerContainer);
       if (!focusTarget) {
        focusTarget = this.$slots["default"] && findFocusableElement(this.content);
        if (!focusTarget) {
         if (this.maximizable) {
          this.focusableMax = true;
          focusTarget = this.maximizableButton;
         } else {
          this.focusableClose = true;
          focusTarget = this.closeButton;
         }
        }
       }
      }
      if (focusTarget) {
       bt(focusTarget, {focusVisible: true});
      }
     },
     maximize: function maximize(event) {
      if (this.maximized) {
       this.maximized = false;
       this.$emit("unmaximize", event);
      } else {
       this.maximized = true;
       this.$emit("maximize", event);
      }
      if (!this.modal) {
       this.maximized ? blockBodyScroll() : unblockBodyScroll();
      }
     },
     enableDocumentSettings: function enableDocumentSettings() {
      if (this.modal || (!this.modal && this.blockScroll) || (this.maximizable && this.maximized)) {
       blockBodyScroll();
      }
     },
     unbindDocumentState: function unbindDocumentState() {
      if (this.modal || (!this.modal && this.blockScroll) || (this.maximizable && this.maximized)) {
       unblockBodyScroll();
      }
     },
     onKeyDown: function onKeyDown(event) {
      if (event.code === "Escape" && this.closeOnEscape) {
       this.close();
      }
     },
     bindDocumentKeyDownListener: function bindDocumentKeyDownListener() {
      if (!this.documentKeydownListener) {
       this.documentKeydownListener = this.onKeyDown.bind(this);
       window.document.addEventListener("keydown", this.documentKeydownListener);
      }
     },
     unbindDocumentKeyDownListener: function unbindDocumentKeyDownListener() {
      if (this.documentKeydownListener) {
       window.document.removeEventListener("keydown", this.documentKeydownListener);
       this.documentKeydownListener = null;
      }
     },
     containerRef: function containerRef(el) {
      this.container = el;
     },
     maskRef: function maskRef(el) {
      this.mask = el;
     },
     contentRef: function contentRef2(el) {
      this.content = el;
     },
     headerContainerRef: function headerContainerRef(el) {
      this.headerContainer = el;
     },
     footerContainerRef: function footerContainerRef(el) {
      this.footerContainer = el;
     },
     maximizableRef: function maximizableRef(el) {
      this.maximizableButton = el ? el.$el : void 0;
     },
     closeButtonRef: function closeButtonRef(el) {
      this.closeButton = el ? el.$el : void 0;
     },
     createStyle: function createStyle2() {
      if (!this.styleElement && !this.isUnstyled) {
       var _this$$primevue;
       this.styleElement = document.createElement("style");
       this.styleElement.type = "text/css";
       _t(this.styleElement, "nonce", (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);
       document.head.appendChild(this.styleElement);
       var innerHTML = "";
       for (var breakpoint in this.breakpoints) {
        innerHTML += "\n                        @media screen and (max-width: ".concat(breakpoint, ") {\n                            .p-dialog[").concat(this.$attrSelector, "] {\n                                width: ").concat(this.breakpoints[breakpoint], " !important;\n                            }\n                        }\n                    ");
       }
       this.styleElement.innerHTML = innerHTML;
      }
     },
     destroyStyle: function destroyStyle2() {
      if (this.styleElement) {
       document.head.removeChild(this.styleElement);
       this.styleElement = null;
      }
     },
     initDrag: function initDrag(event) {
      if (event.target.closest("div").getAttribute("data-pc-section") === "headeractions") {
       return;
      }
      if (this.draggable) {
       this.dragging = true;
       this.lastPageX = event.pageX;
       this.lastPageY = event.pageY;
       this.container.style.margin = "0";
       document.body.setAttribute("data-p-unselectable-text", "true");
       !this.isUnstyled && S$1(document.body, {"user-select": "none"});
       this.$emit("dragstart", event);
      }
     },
     bindGlobalListeners: function bindGlobalListeners() {
      if (this.draggable) {
       this.bindDocumentDragListener();
       this.bindDocumentDragEndListener();
      }
      if (this.closeOnEscape) {
       this.bindDocumentKeyDownListener();
      }
     },
     unbindGlobalListeners: function unbindGlobalListeners() {
      this.unbindDocumentDragListener();
      this.unbindDocumentDragEndListener();
      this.unbindDocumentKeyDownListener();
     },
     bindDocumentDragListener: function bindDocumentDragListener() {
      var _this2 = this;
      this.documentDragListener = function (event) {
       if (_this2.dragging) {
        var width = v$1(_this2.container);
        var height = C$2(_this2.container);
        var deltaX = event.pageX - _this2.lastPageX;
        var deltaY = event.pageY - _this2.lastPageY;
        var offset = _this2.container.getBoundingClientRect();
        var leftPos = offset.left + deltaX;
        var topPos = offset.top + deltaY;
        var viewport = h$1();
        var containerComputedStyle = getComputedStyle(_this2.container);
        var marginLeft = parseFloat(containerComputedStyle.marginLeft);
        var marginTop = parseFloat(containerComputedStyle.marginTop);
        _this2.container.style.position = "fixed";
        if (_this2.keepInViewport) {
         if (leftPos >= _this2.minX && leftPos + width < viewport.width) {
          _this2.lastPageX = event.pageX;
          _this2.container.style.left = leftPos - marginLeft + "px";
         }
         if (topPos >= _this2.minY && topPos + height < viewport.height) {
          _this2.lastPageY = event.pageY;
          _this2.container.style.top = topPos - marginTop + "px";
         }
        } else {
         _this2.lastPageX = event.pageX;
         _this2.container.style.left = leftPos - marginLeft + "px";
         _this2.lastPageY = event.pageY;
         _this2.container.style.top = topPos - marginTop + "px";
        }
       }
      };
      window.document.addEventListener("mousemove", this.documentDragListener);
     },
     unbindDocumentDragListener: function unbindDocumentDragListener() {
      if (this.documentDragListener) {
       window.document.removeEventListener("mousemove", this.documentDragListener);
       this.documentDragListener = null;
      }
     },
     bindDocumentDragEndListener: function bindDocumentDragEndListener() {
      var _this3 = this;
      this.documentDragEndListener = function (event) {
       if (_this3.dragging) {
        _this3.dragging = false;
        document.body.removeAttribute("data-p-unselectable-text");
        !_this3.isUnstyled && (document.body.style["user-select"] = "");
        _this3.$emit("dragend", event);
       }
      };
      window.document.addEventListener("mouseup", this.documentDragEndListener);
     },
     unbindDocumentDragEndListener: function unbindDocumentDragEndListener() {
      if (this.documentDragEndListener) {
       window.document.removeEventListener("mouseup", this.documentDragEndListener);
       this.documentDragEndListener = null;
      }
     },
    },
    computed: {
     maximizeIconComponent: function maximizeIconComponent() {
      return this.maximized ? (this.minimizeIcon ? "span" : "WindowMinimizeIcon") : this.maximizeIcon ? "span" : "WindowMaximizeIcon";
     },
     ariaLabelledById: function ariaLabelledById() {
      return this.header != null || this.$attrs["aria-labelledby"] !== null ? this.$id + "_header" : null;
     },
     closeAriaLabel: function closeAriaLabel2() {
      return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : void 0;
     },
     dataP: function dataP8() {
      return f({maximized: this.maximized, modal: this.modal});
     },
    },
    directives: {ripple: Ripple, focustrap: FocusTrap},
    components: {Button: script$u, Portal: script$N, WindowMinimizeIcon: script$p, WindowMaximizeIcon: script$q, TimesIcon: script$O},
   };
   function _typeof$7(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$7 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$7(o)
    );
   }
   function ownKeys$3(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$3(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$3(Object(t2), true).forEach(function (r2) {
         _defineProperty$6(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$3(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$6(e, r, t2) {
    return ((r = _toPropertyKey$6(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$6(t2) {
    var i2 = _toPrimitive$6(t2, "string");
    return "symbol" == _typeof$7(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$6(t2, r) {
    if ("object" != _typeof$7(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$7(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var _hoisted_1$X = ["data-p"];
   var _hoisted_2$k = ["aria-labelledby", "aria-modal", "data-p"];
   var _hoisted_3$h = ["id"];
   var _hoisted_4$e = ["data-p"];
   function render$S(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_Button = resolveComponent("Button");
    var _component_Portal = resolveComponent("Portal");
    var _directive_focustrap = resolveDirective("focustrap");
    return (
     openBlock(),
     createBlock(
      _component_Portal,
      {appendTo: _ctx.appendTo},
      {
       default: withCtx(function () {
        return [
         $data.containerVisible
          ? (openBlock(),
            createElementBlock(
             "div",
             mergeProps(
              {
               key: 0,
               ref: $options.maskRef,
               class: _ctx.cx("mask"),
               style: _ctx.sx("mask", true, {position: _ctx.position, modal: _ctx.modal}),
               onMousedown:
                _cache[1] ||
                (_cache[1] = function () {
                 return $options.onMaskMouseDown && $options.onMaskMouseDown.apply($options, arguments);
                }),
               onMouseup:
                _cache[2] ||
                (_cache[2] = function () {
                 return $options.onMaskMouseUp && $options.onMaskMouseUp.apply($options, arguments);
                }),
               "data-p": $options.dataP,
              },
              _ctx.ptm("mask"),
             ),
             [
              createVNode(
               Transition,
               mergeProps({name: "p-dialog", onEnter: $options.onEnter, onAfterEnter: $options.onAfterEnter, onBeforeLeave: $options.onBeforeLeave, onLeave: $options.onLeave, onAfterLeave: $options.onAfterLeave, appear: ""}, _ctx.ptm("transition")),
               {
                default: withCtx(function () {
                 return [
                  _ctx.visible
                   ? withDirectives(
                      (openBlock(),
                      createElementBlock(
                       "div",
                       mergeProps({key: 0, ref: $options.containerRef, class: _ctx.cx("root"), style: _ctx.sx("root"), role: "dialog", "aria-labelledby": $options.ariaLabelledById, "aria-modal": _ctx.modal, "data-p": $options.dataP}, _ctx.ptmi("root")),
                       [
                        _ctx.$slots.container
                         ? renderSlot(_ctx.$slots, "container", {
                            key: 0,
                            closeCallback: $options.close,
                            maximizeCallback: function maximizeCallback(event) {
                             return $options.maximize(event);
                            },
                            initDragCallback: $options.initDrag,
                           })
                         : (openBlock(),
                           createElementBlock(
                            Fragment,
                            {key: 1},
                            [
                             _ctx.showHeader
                              ? (openBlock(),
                                createElementBlock(
                                 "div",
                                 mergeProps(
                                  {
                                   key: 0,
                                   ref: $options.headerContainerRef,
                                   class: _ctx.cx("header"),
                                   onMousedown:
                                    _cache[0] ||
                                    (_cache[0] = function () {
                                     return $options.initDrag && $options.initDrag.apply($options, arguments);
                                    }),
                                  },
                                  _ctx.ptm("header"),
                                 ),
                                 [
                                  renderSlot(_ctx.$slots, "header", {class: normalizeClass(_ctx.cx("title"))}, function () {
                                   return [_ctx.header ? (openBlock(), createElementBlock("span", mergeProps({key: 0, id: $options.ariaLabelledById, class: _ctx.cx("title")}, _ctx.ptm("title")), toDisplayString$1(_ctx.header), 17, _hoisted_3$h)) : createCommentVNode("", true)];
                                  }),
                                  createElementVNode(
                                   "div",
                                   mergeProps({class: _ctx.cx("headerActions")}, _ctx.ptm("headerActions")),
                                   [
                                    _ctx.maximizable
                                     ? renderSlot(
                                        _ctx.$slots,
                                        "maximizebutton",
                                        {
                                         key: 0,
                                         maximized: $data.maximized,
                                         maximizeCallback: function maximizeCallback(event) {
                                          return $options.maximize(event);
                                         },
                                        },
                                        function () {
                                         return [
                                          createVNode(
                                           _component_Button,
                                           mergeProps({ref: $options.maximizableRef, autofocus: $data.focusableMax, class: _ctx.cx("pcMaximizeButton"), onClick: $options.maximize, tabindex: _ctx.maximizable ? "0" : "-1", unstyled: _ctx.unstyled}, _ctx.maximizeButtonProps, {pt: _ctx.ptm("pcMaximizeButton"), "data-pc-group-section": "headericon"}),
                                           {
                                            icon: withCtx(function (slotProps) {
                                             return [
                                              renderSlot(_ctx.$slots, "maximizeicon", {maximized: $data.maximized}, function () {
                                               return [(openBlock(), createBlock(resolveDynamicComponent($options.maximizeIconComponent), mergeProps({class: [slotProps["class"], $data.maximized ? _ctx.minimizeIcon : _ctx.maximizeIcon]}, _ctx.ptm("pcMaximizeButton")["icon"]), null, 16, ["class"]))];
                                              }),
                                             ];
                                            }),
                                            _: 3,
                                           },
                                           16,
                                           ["autofocus", "class", "onClick", "tabindex", "unstyled", "pt"],
                                          ),
                                         ];
                                        },
                                       )
                                     : createCommentVNode("", true),
                                    _ctx.closable
                                     ? renderSlot(_ctx.$slots, "closebutton", {key: 1, closeCallback: $options.close}, function () {
                                        return [
                                         createVNode(
                                          _component_Button,
                                          mergeProps({ref: $options.closeButtonRef, autofocus: $data.focusableClose, class: _ctx.cx("pcCloseButton"), onClick: $options.close, "aria-label": $options.closeAriaLabel, unstyled: _ctx.unstyled}, _ctx.closeButtonProps, {pt: _ctx.ptm("pcCloseButton"), "data-pc-group-section": "headericon"}),
                                          {
                                           icon: withCtx(function (slotProps) {
                                            return [
                                             renderSlot(_ctx.$slots, "closeicon", {}, function () {
                                              return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon ? "span" : "TimesIcon"), mergeProps({class: [_ctx.closeIcon, slotProps["class"]]}, _ctx.ptm("pcCloseButton")["icon"]), null, 16, ["class"]))];
                                             }),
                                            ];
                                           }),
                                           _: 3,
                                          },
                                          16,
                                          ["autofocus", "class", "onClick", "aria-label", "unstyled", "pt"],
                                         ),
                                        ];
                                       })
                                     : createCommentVNode("", true),
                                   ],
                                   16,
                                  ),
                                 ],
                                 16,
                                ))
                              : createCommentVNode("", true),
                             createElementVNode("div", mergeProps({ref: $options.contentRef, class: [_ctx.cx("content"), _ctx.contentClass], style: _ctx.contentStyle, "data-p": $options.dataP}, _objectSpread$3(_objectSpread$3({}, _ctx.contentProps), _ctx.ptm("content"))), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_4$e),
                             _ctx.footer || _ctx.$slots.footer
                              ? (openBlock(),
                                createElementBlock(
                                 "div",
                                 mergeProps({key: 1, ref: $options.footerContainerRef, class: _ctx.cx("footer")}, _ctx.ptm("footer")),
                                 [
                                  renderSlot(_ctx.$slots, "footer", {}, function () {
                                   return [createTextVNode(toDisplayString$1(_ctx.footer), 1)];
                                  }),
                                 ],
                                 16,
                                ))
                              : createCommentVNode("", true),
                            ],
                            64,
                           )),
                       ],
                       16,
                       _hoisted_2$k,
                      )),
                      [[_directive_focustrap, {disabled: !_ctx.modal}]],
                     )
                   : createCommentVNode("", true),
                 ];
                }),
                _: 3,
               },
               16,
               ["onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"],
              ),
             ],
             16,
             _hoisted_1$X,
            ))
          : createCommentVNode("", true),
        ];
       }),
       _: 3,
      },
      8,
      ["appendTo"],
     )
    );
   }
   script$o.render = render$S;
   var style$c = '\\n .p-confirmdialog .p-dialog-content{align-items:center;display:flex;gap:dt("confirmdialog.content.gap")}.p-confirmdialog-icon{color:dt("confirmdialog.icon.color");font-size:dt("confirmdialog.icon.size");height:dt("confirmdialog.icon.size");width:dt("confirmdialog.icon.size")}';
   var classes$d = {root: "p-confirmdialog", icon: "p-confirmdialog-icon", message: "p-confirmdialog-message", pcRejectButton: "p-confirmdialog-reject-button", pcAcceptButton: "p-confirmdialog-accept-button"};
   var ConfirmDialogStyle = BaseStyle.extend({name: "confirmdialog", style: style$c, classes: classes$d});
   var script$1$d = {
    name: "BaseConfirmDialog",
    extends: script$Q,
    props: {group: String, breakpoints: {type: Object, default: null}, draggable: {type: Boolean, default: true}},
    style: ConfirmDialogStyle,
    provide: function provide15() {
     return {$pcConfirmDialog: this, $parentInstance: this};
    },
   };
   var script$n = {
    name: "ConfirmDialog",
    extends: script$1$d,
    confirmListener: null,
    closeListener: null,
    data: function data8() {
     return {visible: false, confirmation: null};
    },
    mounted: function mounted9() {
     var _this = this;
     this.confirmListener = function (options3) {
      if (!options3) {
       return;
      }
      if (options3.group === _this.group) {
       _this.confirmation = options3;
       if (_this.confirmation.onShow) {
        _this.confirmation.onShow();
       }
       _this.visible = true;
      }
     };
     this.closeListener = function () {
      _this.visible = false;
      _this.confirmation = null;
     };
     ConfirmationEventBus.on("confirm", this.confirmListener);
     ConfirmationEventBus.on("close", this.closeListener);
    },
    beforeUnmount: function beforeUnmount5() {
     ConfirmationEventBus.off("confirm", this.confirmListener);
     ConfirmationEventBus.off("close", this.closeListener);
    },
    methods: {
     accept: function accept() {
      if (this.confirmation.accept) {
       this.confirmation.accept();
      }
      this.visible = false;
     },
     reject: function reject() {
      if (this.confirmation.reject) {
       this.confirmation.reject();
      }
      this.visible = false;
     },
     onHide: function onHide() {
      if (this.confirmation.onHide) {
       this.confirmation.onHide();
      }
      this.visible = false;
     },
    },
    computed: {
     appendTo: function appendTo() {
      return this.confirmation ? this.confirmation.appendTo : "body";
     },
     target: function target() {
      return this.confirmation ? this.confirmation.target : null;
     },
     modal: function modal() {
      return this.confirmation ? (this.confirmation.modal == null ? true : this.confirmation.modal) : true;
     },
     header: function header() {
      return this.confirmation ? this.confirmation.header : null;
     },
     message: function message2() {
      return this.confirmation ? this.confirmation.message : null;
     },
     blockScroll: function blockScroll() {
      return this.confirmation ? this.confirmation.blockScroll : true;
     },
     position: function position() {
      return this.confirmation ? this.confirmation.position : null;
     },
     acceptLabel: function acceptLabel() {
      if (this.confirmation) {
       var _confirmation$acceptP;
       var confirmation = this.confirmation;
       return confirmation.acceptLabel || ((_confirmation$acceptP = confirmation.acceptProps) === null || _confirmation$acceptP === void 0 ? void 0 : _confirmation$acceptP.label) || this.$primevue.config.locale.accept;
      }
      return this.$primevue.config.locale.accept;
     },
     rejectLabel: function rejectLabel() {
      if (this.confirmation) {
       var _confirmation$rejectP;
       var confirmation = this.confirmation;
       return confirmation.rejectLabel || ((_confirmation$rejectP = confirmation.rejectProps) === null || _confirmation$rejectP === void 0 ? void 0 : _confirmation$rejectP.label) || this.$primevue.config.locale.reject;
      }
      return this.$primevue.config.locale.reject;
     },
     acceptIcon: function acceptIcon() {
      var _this$confirmation;
      return this.confirmation ? this.confirmation.acceptIcon : (_this$confirmation = this.confirmation) !== null && _this$confirmation !== void 0 && _this$confirmation.acceptProps ? this.confirmation.acceptProps.icon : null;
     },
     rejectIcon: function rejectIcon() {
      var _this$confirmation2;
      return this.confirmation ? this.confirmation.rejectIcon : (_this$confirmation2 = this.confirmation) !== null && _this$confirmation2 !== void 0 && _this$confirmation2.rejectProps ? this.confirmation.rejectProps.icon : null;
     },
     autoFocusAccept: function autoFocusAccept() {
      return this.confirmation.defaultFocus === void 0 || this.confirmation.defaultFocus === "accept" ? true : false;
     },
     autoFocusReject: function autoFocusReject() {
      return this.confirmation.defaultFocus === "reject" ? true : false;
     },
     closeOnEscape: function closeOnEscape() {
      return this.confirmation ? this.confirmation.closeOnEscape : true;
     },
    },
    components: {Dialog: script$o, Button: script$u},
   };
   function render$R(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_Button = resolveComponent("Button");
    var _component_Dialog = resolveComponent("Dialog");
    return (
     openBlock(),
     createBlock(
      _component_Dialog,
      {
       visible: $data.visible,
       "onUpdate:visible": [
        _cache[2] ||
         (_cache[2] = function ($event) {
          return ($data.visible = $event);
         }),
        $options.onHide,
       ],
       role: "alertdialog",
       class: normalizeClass(_ctx.cx("root")),
       modal: $options.modal,
       header: $options.header,
       blockScroll: $options.blockScroll,
       appendTo: $options.appendTo,
       position: $options.position,
       breakpoints: _ctx.breakpoints,
       closeOnEscape: $options.closeOnEscape,
       draggable: _ctx.draggable,
       pt: _ctx.pt,
       unstyled: _ctx.unstyled,
      },
      createSlots(
       {
        default: withCtx(function () {
         return [
          !_ctx.$slots.container
           ? (openBlock(),
             createElementBlock(
              Fragment,
              {key: 0},
              [
               !_ctx.$slots.message
                ? (openBlock(),
                  createElementBlock(
                   Fragment,
                   {key: 0},
                   [
                    renderSlot(_ctx.$slots, "icon", {}, function () {
                     return [_ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {key: 0, class: normalizeClass(_ctx.cx("icon"))}, null, 8, ["class"])) : $data.confirmation.icon ? (openBlock(), createElementBlock("span", mergeProps({key: 1, class: [$data.confirmation.icon, _ctx.cx("icon")]}, _ctx.ptm("icon")), null, 16)) : createCommentVNode("", true)];
                    }),
                    createElementVNode("span", mergeProps({class: _ctx.cx("message")}, _ctx.ptm("message")), toDisplayString$1($options.message), 17),
                   ],
                   64,
                  ))
                : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {key: 1, message: $data.confirmation}, null, 8, ["message"])),
              ],
              64,
             ))
           : createCommentVNode("", true),
         ];
        }),
        _: 2,
       },
       [
        _ctx.$slots.container
         ? {
            name: "container",
            fn: withCtx(function (slotProps) {
             return [renderSlot(_ctx.$slots, "container", {message: $data.confirmation, closeCallback: slotProps.closeCallback, acceptCallback: $options.accept, rejectCallback: $options.reject, initDragCallback: slotProps.initDragCallback})];
            }),
            key: "0",
           }
         : void 0,
        !_ctx.$slots.container
         ? {
            name: "footer",
            fn: withCtx(function () {
             var _$data$confirmation$r;
             return [
              createVNode(
               _component_Button,
               mergeProps(
                {
                 class: [_ctx.cx("pcRejectButton"), $data.confirmation.rejectClass],
                 autofocus: $options.autoFocusReject,
                 unstyled: _ctx.unstyled,
                 text: ((_$data$confirmation$r = $data.confirmation.rejectProps) === null || _$data$confirmation$r === void 0 ? void 0 : _$data$confirmation$r.text) || false,
                 onClick:
                  _cache[0] ||
                  (_cache[0] = function ($event) {
                   return $options.reject();
                  }),
                },
                $data.confirmation.rejectProps,
                {label: $options.rejectLabel, pt: _ctx.ptm("pcRejectButton")},
               ),
               createSlots({_: 2}, [
                $options.rejectIcon || _ctx.$slots.rejecticon
                 ? {
                    name: "icon",
                    fn: withCtx(function (iconProps) {
                     return [
                      renderSlot(_ctx.$slots, "rejecticon", {}, function () {
                       return [createElementVNode("span", mergeProps({class: [$options.rejectIcon, iconProps["class"]]}, _ctx.ptm("pcRejectButton")["icon"], {"data-pc-section": "rejectbuttonicon"}), null, 16)];
                      }),
                     ];
                    }),
                    key: "0",
                   }
                 : void 0,
               ]),
               1040,
               ["class", "autofocus", "unstyled", "text", "label", "pt"],
              ),
              createVNode(
               _component_Button,
               mergeProps(
                {
                 label: $options.acceptLabel,
                 class: [_ctx.cx("pcAcceptButton"), $data.confirmation.acceptClass],
                 autofocus: $options.autoFocusAccept,
                 unstyled: _ctx.unstyled,
                 onClick:
                  _cache[1] ||
                  (_cache[1] = function ($event) {
                   return $options.accept();
                  }),
                },
                $data.confirmation.acceptProps,
                {pt: _ctx.ptm("pcAcceptButton")},
               ),
               createSlots({_: 2}, [
                $options.acceptIcon || _ctx.$slots.accepticon
                 ? {
                    name: "icon",
                    fn: withCtx(function (iconProps) {
                     return [
                      renderSlot(_ctx.$slots, "accepticon", {}, function () {
                       return [createElementVNode("span", mergeProps({class: [$options.acceptIcon, iconProps["class"]]}, _ctx.ptm("pcAcceptButton")["icon"], {"data-pc-section": "acceptbuttonicon"}), null, 16)];
                      }),
                     ];
                    }),
                    key: "0",
                   }
                 : void 0,
               ]),
               1040,
               ["label", "class", "autofocus", "unstyled", "pt"],
              ),
             ];
            }),
            key: "1",
           }
         : void 0,
       ],
      ),
      1032,
      ["visible", "class", "modal", "header", "blockScroll", "appendTo", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"],
     )
    );
   }
   script$n.render = render$R;
   var style$b = '\\n .p-paginator{background:dt("paginator.background");border-radius:dt("paginator.border.radius");color:dt("paginator.color");padding:dt("paginator.padding")}.p-paginator-content,\\n .p-paginator{align-items:center;display:flex;flex-wrap:wrap;gap:dt("paginator.gap");justify-content:center}.p-paginator-content-start{margin-inline-end:auto}.p-paginator-content-end{margin-inline-start:auto}.p-paginator-first,.p-paginator-last,.p-paginator-next,.p-paginator-page,.p-paginator-prev{align-items:center;background:dt("paginator.nav.button.background");border:0;border-radius:dt("paginator.nav.button.border.radius");color:dt("paginator.nav.button.color");cursor:pointer;display:inline-flex;height:dt("paginator.nav.button.height");justify-content:center;line-height:1;margin:0;min-width:dt("paginator.nav.button.width");overflow:hidden;padding:0;position:relative;transition:background dt("paginator.transition.duration"),color dt("paginator.transition.duration"),outline-color dt("paginator.transition.duration"),box-shadow dt("paginator.transition.duration");user-select:none}.p-paginator-first:focus-visible,.p-paginator-last:focus-visible,.p-paginator-next:focus-visible,.p-paginator-page:focus-visible,.p-paginator-prev:focus-visible{box-shadow:dt("paginator.nav.button.focus.ring.shadow");outline:dt("paginator.nav.button.focus.ring.color");outline-offset:dt("paginator.nav.button.focus.ring.offset")}.p-paginator-first:not(.p-disabled):hover,.p-paginator-last:not(.p-disabled):hover,.p-paginator-next:not(.p-disabled):hover,.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover,.p-paginator-prev:not(.p-disabled):hover{background:dt("paginator.nav.button.hover.background");color:dt("paginator.nav.button.hover.color")}.p-paginator-page.p-paginator-page-selected{background:dt("paginator.nav.button.selected.background");color:dt("paginator.nav.button.selected.color")}.p-paginator-current{color:dt("paginator.current.page.report.color")}.p-paginator-pages{align-items:center;display:flex;gap:dt("paginator.gap")}.p-paginator-jtp-input .p-inputtext{max-width:dt("paginator.jump.to.page.input.max.width")}.p-paginator-first:dir(rtl),.p-paginator-last:dir(rtl),.p-paginator-next:dir(rtl),.p-paginator-prev:dir(rtl){transform:rotate(180deg)}';
   function _typeof$6(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$6 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$6(o)
    );
   }
   function _defineProperty$5(e, r, t2) {
    return ((r = _toPropertyKey$5(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$5(t2) {
    var i2 = _toPrimitive$5(t2, "string");
    return "symbol" == _typeof$6(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$5(t2, r) {
    if ("object" != _typeof$6(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$6(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var classes$c = {
    paginator: function paginator(_ref) {
     var instance = _ref.instance,
      key = _ref.key;
     return ["p-paginator p-component", _defineProperty$5({"p-paginator-default": !instance.hasBreakpoints()}, "p-paginator-".concat(key), instance.hasBreakpoints())];
    },
    content: "p-paginator-content",
    contentStart: "p-paginator-content-start",
    contentEnd: "p-paginator-content-end",
    first: function first(_ref3) {
     var instance = _ref3.instance;
     return ["p-paginator-first", {"p-disabled": instance.$attrs.disabled}];
    },
    firstIcon: "p-paginator-first-icon",
    prev: function prev(_ref4) {
     var instance = _ref4.instance;
     return ["p-paginator-prev", {"p-disabled": instance.$attrs.disabled}];
    },
    prevIcon: "p-paginator-prev-icon",
    next: function next(_ref5) {
     var instance = _ref5.instance;
     return ["p-paginator-next", {"p-disabled": instance.$attrs.disabled}];
    },
    nextIcon: "p-paginator-next-icon",
    last: function last(_ref6) {
     var instance = _ref6.instance;
     return ["p-paginator-last", {"p-disabled": instance.$attrs.disabled}];
    },
    lastIcon: "p-paginator-last-icon",
    pages: "p-paginator-pages",
    page: function page(_ref7) {
     var props2 = _ref7.props,
      pageLink = _ref7.pageLink;
     return ["p-paginator-page", {"p-paginator-page-selected": pageLink - 1 === props2.page}];
    },
    current: "p-paginator-current",
    pcRowPerPageDropdown: "p-paginator-rpp-dropdown",
    pcJumpToPageDropdown: "p-paginator-jtp-dropdown",
    pcJumpToPageInputText: "p-paginator-jtp-input",
   };
   var PaginatorStyle = BaseStyle.extend({name: "paginator", style: style$b, classes: classes$c});
   var script$m = {name: "AngleDoubleLeftIcon", extends: script$P};
   function _toConsumableArray$d(r) {
    return _arrayWithoutHoles$d(r) || _iterableToArray$d(r) || _unsupportedIterableToArray$e(r) || _nonIterableSpread$d();
   }
   function _nonIterableSpread$d() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$e(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$e(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$e(r, a2) : void 0);
    }
   }
   function _iterableToArray$d(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$d(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$e(r);
   }
   function _arrayLikeToArray$e(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$Q(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$d(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$m.render = render$Q;
   var script$l = {name: "BlankIcon", extends: script$P};
   function _toConsumableArray$c(r) {
    return _arrayWithoutHoles$c(r) || _iterableToArray$c(r) || _unsupportedIterableToArray$d(r) || _nonIterableSpread$c();
   }
   function _nonIterableSpread$c() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$d(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$d(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$d(r, a2) : void 0);
    }
   }
   function _iterableToArray$c(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$c(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$d(r);
   }
   function _arrayLikeToArray$d(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$P(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$c(_cache[0] || (_cache[0] = [createElementVNode("rect", {width: "1", height: "1", fill: "currentColor", "fill-opacity": "0"}, null, -1)])), 16));
   }
   script$l.render = render$P;
   var script$k = {name: "SearchIcon", extends: script$P};
   function _toConsumableArray$b(r) {
    return _arrayWithoutHoles$b(r) || _iterableToArray$b(r) || _unsupportedIterableToArray$c(r) || _nonIterableSpread$b();
   }
   function _nonIterableSpread$b() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$c(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$c(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$c(r, a2) : void 0);
    }
   }
   function _iterableToArray$b(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$b(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$c(r);
   }
   function _arrayLikeToArray$c(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$O(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$b(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$k.render = render$O;
   var style$a = '\\n .p-iconfield{display:block;position:relative}.p-inputicon{color:dt("iconfield.icon.color");line-height:1;margin-top:calc((dt("icon.size")/2)*-1);position:absolute;top:50%;z-index:1}.p-iconfield .p-inputicon:first-child{inset-inline-start:dt("form.field.padding.x")}.p-iconfield .p-inputicon:last-child{inset-inline-end:dt("form.field.padding.x")}.p-iconfield .p-inputtext:not(:first-child),.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext{padding-inline-start:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-iconfield .p-inputtext:not(:last-child){padding-inline-end:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-iconfield:has(.p-inputfield-sm) .p-inputicon{font-size:dt("form.field.sm.font.size");height:dt("form.field.sm.font.size");margin-top:calc((dt("form.field.sm.font.size")/2)*-1);width:dt("form.field.sm.font.size")}.p-iconfield:has(.p-inputfield-lg) .p-inputicon{font-size:dt("form.field.lg.font.size");height:dt("form.field.lg.font.size");margin-top:calc((dt("form.field.lg.font.size")/2)*-1);width:dt("form.field.lg.font.size")}';
   var classes$b = {root: "p-iconfield"};
   var IconFieldStyle = BaseStyle.extend({name: "iconfield", style: style$a, classes: classes$b});
   var script$1$c = {
    name: "BaseIconField",
    extends: script$Q,
    style: IconFieldStyle,
    provide: function provide16() {
     return {$pcIconField: this, $parentInstance: this};
    },
   };
   var script$j = {name: "IconField", extends: script$1$c, inheritAttrs: false};
   function render$N(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("div", mergeProps({class: _ctx.cx("root")}, _ctx.ptmi("root")), [renderSlot(_ctx.$slots, "default")], 16));
   }
   script$j.render = render$N;
   var classes$a = {root: "p-inputicon"};
   var InputIconStyle = BaseStyle.extend({name: "inputicon", classes: classes$a});
   var script$1$b = {
    name: "BaseInputIcon",
    extends: script$Q,
    style: InputIconStyle,
    props: {class: null},
    provide: function provide17() {
     return {$pcInputIcon: this, $parentInstance: this};
    },
   };
   var script$i = {
    name: "InputIcon",
    extends: script$1$b,
    inheritAttrs: false,
    computed: {
     containerClass: function containerClass2() {
      return [this.cx("root"), this["class"]];
     },
    },
   };
   function render$M(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("span", mergeProps({class: $options.containerClass}, _ctx.ptmi("root"), {"aria-hidden": "true"}), [renderSlot(_ctx.$slots, "default")], 16));
   }
   script$i.render = render$M;
   var style$9 = '\\n .p-select{background:dt("select.background");border:1px solid dt("select.border.color");border-radius:dt("select.border.radius");box-shadow:dt("select.shadow");cursor:pointer;display:inline-flex;outline-color:transparent;position:relative;transition:background dt("select.transition.duration"),color dt("select.transition.duration"),border-color dt("select.transition.duration"),outline-color dt("select.transition.duration"),box-shadow dt("select.transition.duration");user-select:none}.p-select:not(.p-disabled):hover{border-color:dt("select.hover.border.color")}.p-select:not(.p-disabled).p-focus{border-color:dt("select.focus.border.color");box-shadow:dt("select.focus.ring.shadow");outline:dt("select.focus.ring.color");outline-offset:dt("select.focus.ring.offset")}.p-select.p-variant-filled{background:dt("select.filled.background")}.p-select.p-variant-filled:not(.p-disabled):hover{background:dt("select.filled.hover.background")}.p-select.p-variant-filled:not(.p-disabled).p-focus{background:dt("select.filled.focus.background")}.p-select.p-invalid{border-color:dt("select.invalid.border.color")}.p-select.p-disabled{background:dt("select.disabled.background");opacity:1}.p-select-clear-icon{align-self:center;color:dt("select.clear.icon.color");inset-inline-end:dt("select.dropdown.width")}.p-select-dropdown{align-items:center;background:transparent;border-end-end-radius:dt("select.border.radius");border-start-end-radius:dt("select.border.radius");color:dt("select.dropdown.color");display:flex;flex-shrink:0;justify-content:center;width:dt("select.dropdown.width")}.p-select-label{background:transparent;border:0;color:dt("select.color");cursor:pointer;display:block;flex:1 1 auto;font-size:1rem;outline:0 none;overflow:hidden;padding:dt("select.padding.y") dt("select.padding.x");text-overflow:ellipsis;white-space:nowrap;width:1%}.p-select-label.p-placeholder{color:dt("select.placeholder.color")}.p-select.p-invalid .p-select-label.p-placeholder{color:dt("select.invalid.placeholder.color")}.p-select.p-disabled .p-select-label{color:dt("select.disabled.color")}.p-select-label-empty{opacity:0;overflow:hidden}input.p-select-label{cursor:default}.p-select-overlay{background:dt("select.overlay.background");border:1px solid dt("select.overlay.border.color");border-radius:dt("select.overlay.border.radius");box-shadow:dt("select.overlay.shadow");color:dt("select.overlay.color");left:0;min-width:100%;position:absolute;top:0;transform-origin:inherit;will-change:transform}.p-select-header{padding:dt("select.list.header.padding")}.p-select-filter{width:100%}.p-select-list-container{overflow:auto}.p-select-option-group{background:dt("select.option.group.background");color:dt("select.option.group.color");cursor:auto;font-weight:dt("select.option.group.font.weight");margin:0;padding:dt("select.option.group.padding")}.p-select-list{display:flex;flex-direction:column;gap:dt("select.list.gap");list-style-type:none;margin:0;padding:dt("select.list.padding")}.p-select-option{align-items:center;background:transparent;border:0;border-radius:dt("select.option.border.radius");color:dt("select.option.color");cursor:pointer;display:flex;font-weight:400;overflow:hidden;padding:dt("select.option.padding");position:relative;transition:background dt("select.transition.duration"),color dt("select.transition.duration"),border-color dt("select.transition.duration"),box-shadow dt("select.transition.duration"),outline-color dt("select.transition.duration");white-space:nowrap}.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus,.p-select-option:not(.p-select-option-selected):not(.p-disabled):hover{background:dt("select.option.focus.background");color:dt("select.option.focus.color")}.p-select-option.p-select-option-selected{background:dt("select.option.selected.background");color:dt("select.option.selected.color")}.p-select-option.p-select-option-selected.p-focus{background:dt("select.option.selected.focus.background");color:dt("select.option.selected.focus.color")}.p-select-option-blank-icon{flex-shrink:0}.p-select-option-check-icon{color:dt("select.checkmark.color");flex-shrink:0;margin-inline-end:dt("select.checkmark.gutter.end");margin-inline-start:dt("select.checkmark.gutter.start");position:relative}.p-select-empty-message{padding:dt("select.empty.message.padding")}.p-select-fluid{display:flex;width:100%}.p-select-sm .p-select-label{font-size:dt("select.sm.font.size");padding-block:dt("select.sm.padding.y");padding-inline:dt("select.sm.padding.x")}.p-select-sm .p-select-dropdown .p-icon{font-size:dt("select.sm.font.size");height:dt("select.sm.font.size");width:dt("select.sm.font.size")}.p-select-lg .p-select-label{font-size:dt("select.lg.font.size");padding-block:dt("select.lg.padding.y");padding-inline:dt("select.lg.padding.x")}.p-select-lg .p-select-dropdown .p-icon{font-size:dt("select.lg.font.size");height:dt("select.lg.font.size");width:dt("select.lg.font.size")}.p-floatlabel-in .p-select-filter{padding-block-end:dt("select.padding.y");padding-block-start:dt("select.padding.y")}';
   var classes$9 = {
    root: function root9(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props,
      state = _ref.state;
     return ["p-select p-component p-inputwrapper", {"p-disabled": props2.disabled, "p-invalid": instance.$invalid, "p-variant-filled": instance.$variant === "filled", "p-focus": state.focused, "p-inputwrapper-filled": instance.$filled, "p-inputwrapper-focus": state.focused || state.overlayVisible, "p-select-open": state.overlayVisible, "p-select-fluid": instance.$fluid, "p-select-sm p-inputfield-sm": props2.size === "small", "p-select-lg p-inputfield-lg": props2.size === "large"}];
    },
    label: function label(_ref2) {
     var _instance$label;
     var instance = _ref2.instance,
      props2 = _ref2.props;
     return ["p-select-label", {"p-placeholder": !props2.editable && instance.label === props2.placeholder, "p-select-label-empty": !props2.editable && !instance.$slots["value"] && (instance.label === "p-emptylabel" || ((_instance$label = instance.label) === null || _instance$label === void 0 ? void 0 : _instance$label.length) === 0)}];
    },
    clearIcon: "p-select-clear-icon",
    dropdown: "p-select-dropdown",
    loadingicon: "p-select-loading-icon",
    dropdownIcon: "p-select-dropdown-icon",
    overlay: "p-select-overlay p-component",
    header: "p-select-header",
    pcFilter: "p-select-filter",
    listContainer: "p-select-list-container",
    list: "p-select-list",
    optionGroup: "p-select-option-group",
    optionGroupLabel: "p-select-option-group-label",
    option: function option(_ref3) {
     var instance = _ref3.instance,
      props2 = _ref3.props,
      state = _ref3.state,
      _option = _ref3.option,
      focusedOption = _ref3.focusedOption;
     return ["p-select-option", {"p-select-option-selected": instance.isSelected(_option) && props2.highlightOnSelect, "p-focus": state.focusedOptionIndex === focusedOption, "p-disabled": instance.isOptionDisabled(_option)}];
    },
    optionLabel: "p-select-option-label",
    optionCheckIcon: "p-select-option-check-icon",
    optionBlankIcon: "p-select-option-blank-icon",
    emptyMessage: "p-select-empty-message",
   };
   var SelectStyle = BaseStyle.extend({name: "select", style: style$9, classes: classes$9});
   var script$1$a = {
    name: "BaseSelect",
    extends: script$y,
    props: {options: Array, optionLabel: [String, Function], optionValue: [String, Function], optionDisabled: [String, Function], optionGroupLabel: [String, Function], optionGroupChildren: [String, Function], scrollHeight: {type: String, default: "14rem"}, filter: Boolean, filterPlaceholder: String, filterLocale: String, filterMatchMode: {type: String, default: "contains"}, filterFields: {type: Array, default: null}, editable: Boolean, placeholder: {type: String, default: null}, dataKey: null, showClear: {type: Boolean, default: false}, inputId: {type: String, default: null}, inputClass: {type: [String, Object], default: null}, inputStyle: {type: Object, default: null}, labelId: {type: String, default: null}, labelClass: {type: [String, Object], default: null}, labelStyle: {type: Object, default: null}, panelClass: {type: [String, Object], default: null}, overlayStyle: {type: Object, default: null}, overlayClass: {type: [String, Object], default: null}, panelStyle: {type: Object, default: null}, appendTo: {type: [String, Object], default: "body"}, loading: {type: Boolean, default: false}, clearIcon: {type: String, default: void 0}, dropdownIcon: {type: String, default: void 0}, filterIcon: {type: String, default: void 0}, loadingIcon: {type: String, default: void 0}, resetFilterOnHide: {type: Boolean, default: false}, resetFilterOnClear: {type: Boolean, default: false}, virtualScrollerOptions: {type: Object, default: null}, autoOptionFocus: {type: Boolean, default: false}, autoFilterFocus: {type: Boolean, default: false}, selectOnFocus: {type: Boolean, default: false}, focusOnHover: {type: Boolean, default: true}, highlightOnSelect: {type: Boolean, default: true}, checkmark: {type: Boolean, default: false}, filterMessage: {type: String, default: null}, selectionMessage: {type: String, default: null}, emptySelectionMessage: {type: String, default: null}, emptyFilterMessage: {type: String, default: null}, emptyMessage: {type: String, default: null}, tabindex: {type: Number, default: 0}, ariaLabel: {type: String, default: null}, ariaLabelledby: {type: String, default: null}},
    style: SelectStyle,
    provide: function provide18() {
     return {$pcSelect: this, $parentInstance: this};
    },
   };
   function _typeof$5(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$5 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$5(o)
    );
   }
   function _toConsumableArray$a(r) {
    return _arrayWithoutHoles$a(r) || _iterableToArray$a(r) || _unsupportedIterableToArray$b(r) || _nonIterableSpread$a();
   }
   function _nonIterableSpread$a() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$b(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$b(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$b(r, a2) : void 0);
    }
   }
   function _iterableToArray$a(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$a(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$b(r);
   }
   function _arrayLikeToArray$b(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function ownKeys$2(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$2(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$2(Object(t2), true).forEach(function (r2) {
         _defineProperty$4(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$2(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$4(e, r, t2) {
    return ((r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$4(t2) {
    var i2 = _toPrimitive$4(t2, "string");
    return "symbol" == _typeof$5(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$4(t2, r) {
    if ("object" != _typeof$5(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$5(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$h = {
    name: "Select",
    extends: script$1$a,
    inheritAttrs: false,
    emits: ["change", "focus", "blur", "before-show", "before-hide", "show", "hide", "filter"],
    outsideClickListener: null,
    scrollHandler: null,
    resizeListener: null,
    labelClickListener: null,
    matchMediaOrientationListener: null,
    overlay: null,
    list: null,
    virtualScroller: null,
    searchTimeout: null,
    searchValue: null,
    isModelValueChanged: false,
    data: function data9() {
     return {clicked: false, focused: false, focusedOptionIndex: -1, filterValue: null, overlayVisible: false, queryOrientation: null};
    },
    watch: {
     modelValue: function modelValue() {
      this.isModelValueChanged = true;
     },
     options: function options() {
      this.autoUpdateModel();
     },
    },
    mounted: function mounted10() {
     this.autoUpdateModel();
     this.bindLabelClickListener();
     this.bindMatchMediaOrientationListener();
    },
    updated: function updated6() {
     if (this.overlayVisible && this.isModelValueChanged) {
      this.scrollInView(this.findSelectedOptionIndex());
     }
     this.isModelValueChanged = false;
    },
    beforeUnmount: function beforeUnmount6() {
     this.unbindOutsideClickListener();
     this.unbindResizeListener();
     this.unbindLabelClickListener();
     this.unbindMatchMediaOrientationListener();
     if (this.scrollHandler) {
      this.scrollHandler.destroy();
      this.scrollHandler = null;
     }
     if (this.overlay) {
      x$1.clear(this.overlay);
      this.overlay = null;
     }
    },
    methods: {
     getOptionIndex: function getOptionIndex(index, fn) {
      return this.virtualScrollerDisabled ? index : fn && fn(index)["index"];
     },
     getOptionLabel: function getOptionLabel(option3) {
      return this.optionLabel ? p(option3, this.optionLabel) : option3;
     },
     getOptionValue: function getOptionValue(option3) {
      return this.optionValue ? p(option3, this.optionValue) : option3;
     },
     getOptionRenderKey: function getOptionRenderKey(option3, index) {
      return (this.dataKey ? p(option3, this.dataKey) : this.getOptionLabel(option3)) + "_" + index;
     },
     getPTItemOptions: function getPTItemOptions(option3, itemOptions, index, key) {
      return this.ptm(key, {context: {option: option3, index, selected: this.isSelected(option3), focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions), disabled: this.isOptionDisabled(option3)}});
     },
     isOptionDisabled: function isOptionDisabled(option3) {
      return this.optionDisabled ? p(option3, this.optionDisabled) : false;
     },
     isOptionGroup: function isOptionGroup(option3) {
      return this.optionGroupLabel && option3.optionGroup && option3.group;
     },
     getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
      return p(optionGroup, this.optionGroupLabel);
     },
     getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
      return p(optionGroup, this.optionGroupChildren);
     },
     getAriaPosInset: function getAriaPosInset(index) {
      var _this = this;
      return (
       (this.optionGroupLabel
        ? index -
          this.visibleOptions.slice(0, index).filter(function (option3) {
           return _this.isOptionGroup(option3);
          }).length
        : index) + 1
      );
     },
     show: function show(isFocus) {
      this.$emit("before-show");
      this.overlayVisible = true;
      this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
      isFocus && bt(this.$refs.focusInput);
     },
     hide: function hide(isFocus) {
      var _this2 = this;
      var _hide = function _hide2() {
       _this2.$emit("before-hide");
       _this2.overlayVisible = false;
       _this2.clicked = false;
       _this2.focusedOptionIndex = -1;
       _this2.searchValue = "";
       _this2.resetFilterOnHide && (_this2.filterValue = null);
       isFocus && bt(_this2.$refs.focusInput);
      };
      setTimeout(function () {
       _hide();
      }, 0);
     },
     onFocus: function onFocus3(event) {
      if (this.disabled) {
       return;
      }
      this.focused = true;
      if (this.overlayVisible) {
       this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
       this.scrollInView(this.focusedOptionIndex);
      }
      this.$emit("focus", event);
     },
     onBlur: function onBlur2(event) {
      var _this3 = this;
      setTimeout(function () {
       var _this3$formField$onBl, _this3$formField;
       _this3.focused = false;
       _this3.focusedOptionIndex = -1;
       _this3.searchValue = "";
       _this3.$emit("blur", event);
       (_this3$formField$onBl = (_this3$formField = _this3.formField).onBlur) === null || _this3$formField$onBl === void 0 || _this3$formField$onBl.call(_this3$formField, event);
      }, 100);
     },
     onKeyDown: function onKeyDown2(event) {
      if (this.disabled) {
       event.preventDefault();
       return;
      }
      if ($t()) {
       switch (event.code) {
        case "Backspace":
         this.onBackspaceKey(event, this.editable);
         break;
        case "Enter":
        case "NumpadDecimal":
         this.onEnterKey(event);
         break;
        default:
         event.preventDefault();
         return;
       }
      }
      var metaKey = event.metaKey || event.ctrlKey;
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event, this.editable);
        break;
       case "ArrowLeft":
       case "ArrowRight":
        this.onArrowLeftKey(event, this.editable);
        break;
       case "Home":
        this.onHomeKey(event, this.editable);
        break;
       case "End":
        this.onEndKey(event, this.editable);
        break;
       case "PageDown":
        this.onPageDownKey(event);
        break;
       case "PageUp":
        this.onPageUpKey(event);
        break;
       case "Space":
        this.onSpaceKey(event, this.editable);
        break;
       case "Enter":
       case "NumpadEnter":
        this.onEnterKey(event);
        break;
       case "Escape":
        this.onEscapeKey(event);
        break;
       case "Tab":
        this.onTabKey(event);
        break;
       case "Backspace":
        this.onBackspaceKey(event, this.editable);
        break;
       case "ShiftLeft":
       case "ShiftRight":
        break;
       default:
        if (!metaKey && J(event.key)) {
         !this.overlayVisible && this.show();
         !this.editable && this.searchOptions(event, event.key);
         this.filter && (this.filterValue = event.key);
        }
        break;
      }
      this.clicked = false;
     },
     onEditableInput: function onEditableInput(event) {
      var value2 = event.target.value;
      this.searchValue = "";
      var matched = this.searchOptions(event, value2);
      !matched && (this.focusedOptionIndex = -1);
      this.updateModel(event, value2);
      !this.overlayVisible && s$3(value2) && this.show();
     },
     onContainerClick: function onContainerClick(event) {
      if (this.disabled || this.loading) {
       return;
      }
      if (event.target.tagName === "INPUT" || event.target.getAttribute("data-pc-section") === "clearicon" || event.target.closest('[data-pc-section="clearicon"]')) {
       return;
      } else if (!this.overlay || !this.overlay.contains(event.target)) {
       this.overlayVisible ? this.hide(true) : this.show(true);
      }
      this.clicked = true;
     },
     onClearClick: function onClearClick(event) {
      this.updateModel(event, null);
      this.resetFilterOnClear && (this.filterValue = null);
     },
     onFirstHiddenFocus: function onFirstHiddenFocus(event) {
      var focusableEl = event.relatedTarget === this.$refs.focusInput ? vt(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
      bt(focusableEl);
     },
     onLastHiddenFocus: function onLastHiddenFocus(event) {
      var focusableEl = event.relatedTarget === this.$refs.focusInput ? Lt(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
      bt(focusableEl);
     },
     onOptionSelect: function onOptionSelect(event, option3) {
      var isHide = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
      var value2 = this.getOptionValue(option3);
      this.updateModel(event, value2);
      isHide && this.hide(true);
     },
     onOptionMouseMove: function onOptionMouseMove(event, index) {
      if (this.focusOnHover) {
       this.changeFocusedOptionIndex(event, index);
      }
     },
     onFilterChange: function onFilterChange(event) {
      var value2 = event.target.value;
      this.filterValue = value2;
      this.focusedOptionIndex = -1;
      this.$emit("filter", {originalEvent: event, value: value2});
      !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
     },
     onFilterKeyDown: function onFilterKeyDown(event) {
      if (event.isComposing) return;
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event, true);
        break;
       case "ArrowLeft":
       case "ArrowRight":
        this.onArrowLeftKey(event, true);
        break;
       case "Home":
        this.onHomeKey(event, true);
        break;
       case "End":
        this.onEndKey(event, true);
        break;
       case "Enter":
       case "NumpadEnter":
        this.onEnterKey(event);
        break;
       case "Escape":
        this.onEscapeKey(event);
        break;
       case "Tab":
        this.onTabKey(event);
        break;
      }
     },
     onFilterBlur: function onFilterBlur() {
      this.focusedOptionIndex = -1;
     },
     onFilterUpdated: function onFilterUpdated() {
      if (this.overlayVisible) {
       this.alignOverlay();
      }
     },
     onOverlayClick: function onOverlayClick(event) {
      OverlayEventBus.emit("overlay-click", {originalEvent: event, target: this.$el});
     },
     onOverlayKeyDown: function onOverlayKeyDown(event) {
      switch (event.code) {
       case "Escape":
        this.onEscapeKey(event);
        break;
      }
     },
     onArrowDownKey: function onArrowDownKey2(event) {
      if (!this.overlayVisible) {
       this.show();
       this.editable && this.changeFocusedOptionIndex(event, this.findSelectedOptionIndex());
      } else {
       var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
       this.changeFocusedOptionIndex(event, optionIndex);
      }
      event.preventDefault();
     },
     onArrowUpKey: function onArrowUpKey2(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (event.altKey && !pressedInInputText) {
       if (this.focusedOptionIndex !== -1) {
        this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
       }
       this.overlayVisible && this.hide();
       event.preventDefault();
      } else {
       var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
       this.changeFocusedOptionIndex(event, optionIndex);
       !this.overlayVisible && this.show();
       event.preventDefault();
      }
     },
     onArrowLeftKey: function onArrowLeftKey(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      pressedInInputText && (this.focusedOptionIndex = -1);
     },
     onHomeKey: function onHomeKey2(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (pressedInInputText) {
       var target2 = event.currentTarget;
       if (event.shiftKey) {
        target2.setSelectionRange(0, event.target.selectionStart);
       } else {
        target2.setSelectionRange(0, 0);
        this.focusedOptionIndex = -1;
       }
      } else {
       this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
       !this.overlayVisible && this.show();
      }
      event.preventDefault();
     },
     onEndKey: function onEndKey2(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (pressedInInputText) {
       var target2 = event.currentTarget;
       if (event.shiftKey) {
        target2.setSelectionRange(event.target.selectionStart, target2.value.length);
       } else {
        var len = target2.value.length;
        target2.setSelectionRange(len, len);
        this.focusedOptionIndex = -1;
       }
      } else {
       this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
       !this.overlayVisible && this.show();
      }
      event.preventDefault();
     },
     onPageUpKey: function onPageUpKey(event) {
      this.scrollInView(0);
      event.preventDefault();
     },
     onPageDownKey: function onPageDownKey(event) {
      this.scrollInView(this.visibleOptions.length - 1);
      event.preventDefault();
     },
     onEnterKey: function onEnterKey2(event) {
      if (!this.overlayVisible) {
       this.focusedOptionIndex = -1;
       this.onArrowDownKey(event);
      } else {
       if (this.focusedOptionIndex !== -1) {
        this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
       }
       this.hide(true);
      }
      event.preventDefault();
     },
     onSpaceKey: function onSpaceKey(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      !pressedInInputText && this.onEnterKey(event);
     },
     onEscapeKey: function onEscapeKey(event) {
      this.overlayVisible && this.hide(true);
      event.preventDefault();
      event.stopPropagation();
     },
     onTabKey: function onTabKey(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (!pressedInInputText) {
       if (this.overlayVisible && this.hasFocusableElements()) {
        bt(this.$refs.firstHiddenFocusableElementOnOverlay);
        event.preventDefault();
       } else {
        if (this.focusedOptionIndex !== -1) {
         this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
        }
        this.overlayVisible && this.hide(this.filter);
       }
      }
     },
     onBackspaceKey: function onBackspaceKey(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (pressedInInputText) {
       !this.overlayVisible && this.show();
      }
     },
     onOverlayEnter: function onOverlayEnter(el) {
      var _this4 = this;
      x$1.set("overlay", el, this.$primevue.config.zIndex.overlay);
      S$1(el, {position: "absolute", top: "0"});
      this.alignOverlay();
      this.scrollInView();
      this.$attrSelector && el.setAttribute(this.$attrSelector, "");
      setTimeout(function () {
       _this4.autoFilterFocus && _this4.filter && bt(_this4.$refs.filterInput.$el);
       _this4.autoUpdateModel();
      }, 1);
     },
     onOverlayAfterEnter: function onOverlayAfterEnter() {
      this.bindOutsideClickListener();
      this.bindScrollListener();
      this.bindResizeListener();
      this.$emit("show");
     },
     onOverlayLeave: function onOverlayLeave() {
      var _this5 = this;
      this.unbindOutsideClickListener();
      this.unbindScrollListener();
      this.unbindResizeListener();
      if (this.autoFilterFocus && this.filter && !this.editable) {
       this.$nextTick(function () {
        if (_this5.$refs.filterInput) {
         bt(_this5.$refs.filterInput.$el);
        }
       });
      }
      this.$emit("hide");
      this.overlay = null;
     },
     onOverlayAfterLeave: function onOverlayAfterLeave(el) {
      x$1.clear(el);
     },
     alignOverlay: function alignOverlay() {
      if (this.appendTo === "self") {
       I(this.overlay, this.$el);
      } else {
       if (this.overlay) {
        this.overlay.style.minWidth = v$1(this.$el) + "px";
        D$1(this.overlay, this.$el);
       }
      }
     },
     bindOutsideClickListener: function bindOutsideClickListener() {
      var _this6 = this;
      if (!this.outsideClickListener) {
       this.outsideClickListener = function (event) {
        var composedPath = event.composedPath();
        if (_this6.overlayVisible && _this6.overlay && !composedPath.includes(_this6.$el) && !composedPath.includes(_this6.overlay)) {
         _this6.hide();
        }
       };
       document.addEventListener("click", this.outsideClickListener, true);
      }
     },
     unbindOutsideClickListener: function unbindOutsideClickListener() {
      if (this.outsideClickListener) {
       document.removeEventListener("click", this.outsideClickListener, true);
       this.outsideClickListener = null;
      }
     },
     bindScrollListener: function bindScrollListener() {
      var _this7 = this;
      if (!this.scrollHandler) {
       this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {
        if (_this7.overlayVisible) {
         _this7.hide();
        }
       });
      }
      this.scrollHandler.bindScrollListener();
     },
     unbindScrollListener: function unbindScrollListener() {
      if (this.scrollHandler) {
       this.scrollHandler.unbindScrollListener();
      }
     },
     bindResizeListener: function bindResizeListener2() {
      var _this8 = this;
      if (!this.resizeListener) {
       this.resizeListener = function () {
        if (_this8.overlayVisible && !Yt()) {
         _this8.hide();
        }
       };
       window.addEventListener("resize", this.resizeListener);
      }
     },
     unbindResizeListener: function unbindResizeListener2() {
      if (this.resizeListener) {
       window.removeEventListener("resize", this.resizeListener);
       this.resizeListener = null;
      }
     },
     bindLabelClickListener: function bindLabelClickListener() {
      var _this9 = this;
      if (!this.editable && !this.labelClickListener) {
       var label6 = document.querySelector('label[for="'.concat(this.labelId, '"]'));
       if (label6 && et(label6)) {
        this.labelClickListener = function () {
         bt(_this9.$refs.focusInput);
        };
        label6.addEventListener("click", this.labelClickListener);
       }
      }
     },
     unbindLabelClickListener: function unbindLabelClickListener() {
      if (this.labelClickListener) {
       var label6 = document.querySelector('label[for="'.concat(this.labelId, '"]'));
       if (label6 && et(label6)) {
        label6.removeEventListener("click", this.labelClickListener);
       }
      }
     },
     bindMatchMediaOrientationListener: function bindMatchMediaOrientationListener() {
      var _this0 = this;
      if (!this.matchMediaOrientationListener) {
       var query = matchMedia("(orientation: portrait)");
       this.queryOrientation = query;
       this.matchMediaOrientationListener = function () {
        _this0.alignOverlay();
       };
       this.queryOrientation.addEventListener("change", this.matchMediaOrientationListener);
      }
     },
     unbindMatchMediaOrientationListener: function unbindMatchMediaOrientationListener() {
      if (this.matchMediaOrientationListener) {
       this.queryOrientation.removeEventListener("change", this.matchMediaOrientationListener);
       this.queryOrientation = null;
       this.matchMediaOrientationListener = null;
      }
     },
     hasFocusableElements: function hasFocusableElements() {
      return b$1(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
     },
     isOptionExactMatched: function isOptionExactMatched(option3) {
      var _this$getOptionLabel;
      return this.isValidOption(option3) && typeof this.getOptionLabel(option3) === "string" && ((_this$getOptionLabel = this.getOptionLabel(option3)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale)) == this.searchValue.toLocaleLowerCase(this.filterLocale);
     },
     isOptionStartsWith: function isOptionStartsWith(option3) {
      var _this$getOptionLabel2;
      return this.isValidOption(option3) && typeof this.getOptionLabel(option3) === "string" && ((_this$getOptionLabel2 = this.getOptionLabel(option3)) === null || _this$getOptionLabel2 === void 0 ? void 0 : _this$getOptionLabel2.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
     },
     isValidOption: function isValidOption(option3) {
      return s$3(option3) && !(this.isOptionDisabled(option3) || this.isOptionGroup(option3));
     },
     isValidSelectedOption: function isValidSelectedOption(option3) {
      return this.isValidOption(option3) && this.isSelected(option3);
     },
     isSelected: function isSelected(option3) {
      return k$3(this.d_value, this.getOptionValue(option3), this.equalityKey);
     },
     findFirstOptionIndex: function findFirstOptionIndex() {
      var _this1 = this;
      return this.visibleOptions.findIndex(function (option3) {
       return _this1.isValidOption(option3);
      });
     },
     findLastOptionIndex: function findLastOptionIndex() {
      var _this10 = this;
      return M$1(this.visibleOptions, function (option3) {
       return _this10.isValidOption(option3);
      });
     },
     findNextOptionIndex: function findNextOptionIndex(index) {
      var _this11 = this;
      var matchedOptionIndex =
       index < this.visibleOptions.length - 1
        ? this.visibleOptions.slice(index + 1).findIndex(function (option3) {
           return _this11.isValidOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
     },
     findPrevOptionIndex: function findPrevOptionIndex(index) {
      var _this12 = this;
      var matchedOptionIndex =
       index > 0
        ? M$1(this.visibleOptions.slice(0, index), function (option3) {
           return _this12.isValidOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex : index;
     },
     findSelectedOptionIndex: function findSelectedOptionIndex() {
      var _this13 = this;
      return this.visibleOptions.findIndex(function (option3) {
       return _this13.isValidSelectedOption(option3);
      });
     },
     findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
      var selectedIndex = this.findSelectedOptionIndex();
      return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
     },
     findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
      var selectedIndex = this.findSelectedOptionIndex();
      return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
     },
     searchOptions: function searchOptions(event, _char) {
      var _this14 = this;
      this.searchValue = (this.searchValue || "") + _char;
      var optionIndex = -1;
      var matched = false;
      if (s$3(this.searchValue)) {
       optionIndex = this.visibleOptions.findIndex(function (option3) {
        return _this14.isOptionExactMatched(option3);
       });
       if (optionIndex === -1) {
        optionIndex = this.visibleOptions.findIndex(function (option3) {
         return _this14.isOptionStartsWith(option3);
        });
       }
       if (optionIndex !== -1) {
        matched = true;
       }
       if (optionIndex === -1 && this.focusedOptionIndex === -1) {
        optionIndex = this.findFirstFocusedOptionIndex();
       }
       if (optionIndex !== -1) {
        this.changeFocusedOptionIndex(event, optionIndex);
       }
      }
      if (this.searchTimeout) {
       clearTimeout(this.searchTimeout);
      }
      this.searchTimeout = setTimeout(function () {
       _this14.searchValue = "";
       _this14.searchTimeout = null;
      }, 500);
      return matched;
     },
     changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
      if (this.focusedOptionIndex !== index) {
       this.focusedOptionIndex = index;
       this.scrollInView();
       if (this.selectOnFocus) {
        this.onOptionSelect(event, this.visibleOptions[index], false);
       }
      }
     },
     scrollInView: function scrollInView2() {
      var _this15 = this;
      var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
      this.$nextTick(function () {
       var id3 = index !== -1 ? "".concat(_this15.$id, "_").concat(index) : _this15.focusedOptionId;
       var element = z$1(_this15.list, 'li[id="'.concat(id3, '"]'));
       if (element) {
        element.scrollIntoView && element.scrollIntoView({block: "nearest", inline: "nearest"});
       } else if (!_this15.virtualScrollerDisabled) {
        _this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);
       }
      });
     },
     autoUpdateModel: function autoUpdateModel() {
      if (this.autoOptionFocus) {
       this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
      }
      if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
       this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
      }
     },
     updateModel: function updateModel(event, value2) {
      this.writeValue(value2, event);
      this.$emit("change", {originalEvent: event, value: value2});
     },
     flatOptions: function flatOptions(options3) {
      var _this16 = this;
      return (options3 || []).reduce(function (result, option3, index) {
       result.push({optionGroup: option3, group: true, index});
       var optionGroupChildren = _this16.getOptionGroupChildren(option3);
       optionGroupChildren &&
        optionGroupChildren.forEach(function (o) {
         return result.push(o);
        });
       return result;
      }, []);
     },
     overlayRef: function overlayRef(el) {
      this.overlay = el;
     },
     listRef: function listRef(el, contentRef3) {
      this.list = el;
      contentRef3 && contentRef3(el);
     },
     virtualScrollerRef: function virtualScrollerRef(el) {
      this.virtualScroller = el;
     },
    },
    computed: {
     visibleOptions: function visibleOptions() {
      var _this17 = this;
      var options3 = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
      if (this.filterValue) {
       var filteredOptions = FilterService.filter(options3, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
       if (this.optionGroupLabel) {
        var optionGroups = this.options || [];
        var filtered = [];
        optionGroups.forEach(function (group) {
         var groupChildren = _this17.getOptionGroupChildren(group);
         var filteredItems = groupChildren.filter(function (item2) {
          return filteredOptions.includes(item2);
         });
         if (filteredItems.length > 0) filtered.push(_objectSpread$2(_objectSpread$2({}, group), {}, _defineProperty$4({}, typeof _this17.optionGroupChildren === "string" ? _this17.optionGroupChildren : "items", _toConsumableArray$a(filteredItems))));
        });
        return this.flatOptions(filtered);
       }
       return filteredOptions;
      }
      return options3;
     },
     hasSelectedOption: function hasSelectedOption() {
      return this.$filled;
     },
     label: function label2() {
      var selectedOptionIndex = this.findSelectedOptionIndex();
      return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.placeholder || "p-emptylabel";
     },
     editableInputValue: function editableInputValue() {
      var selectedOptionIndex = this.findSelectedOptionIndex();
      return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.d_value || "";
     },
     equalityKey: function equalityKey() {
      return this.optionValue ? null : this.dataKey;
     },
     searchFields: function searchFields() {
      return this.filterFields || [this.optionLabel];
     },
     filterResultMessageText: function filterResultMessageText() {
      return s$3(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
     },
     filterMessageText: function filterMessageText() {
      return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
     },
     emptyFilterMessageText: function emptyFilterMessageText() {
      return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || "";
     },
     emptyMessageText: function emptyMessageText() {
      return this.emptyMessage || this.$primevue.config.locale.emptyMessage || "";
     },
     selectionMessageText: function selectionMessageText() {
      return this.selectionMessage || this.$primevue.config.locale.selectionMessage || "";
     },
     emptySelectionMessageText: function emptySelectionMessageText() {
      return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || "";
     },
     selectedMessageText: function selectedMessageText() {
      return this.$filled ? this.selectionMessageText.replaceAll("{0}", "1") : this.emptySelectionMessageText;
     },
     focusedOptionId: function focusedOptionId() {
      return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
     },
     ariaSetSize: function ariaSetSize() {
      var _this18 = this;
      return this.visibleOptions.filter(function (option3) {
       return !_this18.isOptionGroup(option3);
      }).length;
     },
     isClearIconVisible: function isClearIconVisible() {
      return this.showClear && this.d_value != null && !this.disabled && !this.loading;
     },
     virtualScrollerDisabled: function virtualScrollerDisabled() {
      return !this.virtualScrollerOptions;
     },
     containerDataP: function containerDataP() {
      return f(_defineProperty$4({invalid: this.$invalid, disabled: this.disabled, focus: this.focused, fluid: this.$fluid, filled: this.$variant === "filled"}, this.size, this.size));
     },
     labelDataP: function labelDataP() {
      return f(_defineProperty$4(_defineProperty$4({placeholder: !this.editable && this.label === this.placeholder, clearable: this.showClear, disabled: this.disabled, editable: this.editable}, this.size, this.size), "empty", !this.editable && !this.$slots["value"] && (this.label === "p-emptylabel" || this.label.length === 0)));
     },
     dropdownIconDataP: function dropdownIconDataP() {
      return f(_defineProperty$4({}, this.size, this.size));
     },
     overlayDataP: function overlayDataP() {
      return f(_defineProperty$4({}, "portal-" + this.appendTo, "portal-" + this.appendTo));
     },
    },
    directives: {ripple: Ripple},
    components: {InputText: script$x, VirtualScroller: script$w, Portal: script$N, InputIcon: script$i, IconField: script$j, TimesIcon: script$O, ChevronDownIcon: script$E, SpinnerIcon: script$A, SearchIcon: script$k, CheckIcon: script$M, BlankIcon: script$l},
   };
   var _hoisted_1$W = ["id", "data-p"];
   var _hoisted_2$j = ["name", "id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "data-p"];
   var _hoisted_3$g = ["name", "id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid", "aria-disabled", "data-p"];
   var _hoisted_4$d = ["data-p"];
   var _hoisted_5$a = ["id"];
   var _hoisted_6$9 = ["id"];
   var _hoisted_7$5 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onMousedown", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
   function render$L(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
    var _component_InputText = resolveComponent("InputText");
    var _component_SearchIcon = resolveComponent("SearchIcon");
    var _component_InputIcon = resolveComponent("InputIcon");
    var _component_IconField = resolveComponent("IconField");
    var _component_CheckIcon = resolveComponent("CheckIcon");
    var _component_BlankIcon = resolveComponent("BlankIcon");
    var _component_VirtualScroller = resolveComponent("VirtualScroller");
    var _component_Portal = resolveComponent("Portal");
    var _directive_ripple = resolveDirective("ripple");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps(
       {
        ref: "container",
        id: _ctx.$id,
        class: _ctx.cx("root"),
        onClick:
         _cache[12] ||
         (_cache[12] = function () {
          return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
         }),
        "data-p": $options.containerDataP,
       },
       _ctx.ptmi("root"),
      ),
      [
       _ctx.editable
        ? (openBlock(),
          createElementBlock(
           "input",
           mergeProps(
            {
             key: 0,
             ref: "focusInput",
             name: _ctx.name,
             id: _ctx.labelId || _ctx.inputId,
             type: "text",
             class: [_ctx.cx("label"), _ctx.inputClass, _ctx.labelClass],
             style: [_ctx.inputStyle, _ctx.labelStyle],
             value: $options.editableInputValue,
             placeholder: _ctx.placeholder,
             tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
             disabled: _ctx.disabled,
             autocomplete: "off",
             role: "combobox",
             "aria-label": _ctx.ariaLabel,
             "aria-labelledby": _ctx.ariaLabelledby,
             "aria-haspopup": "listbox",
             "aria-expanded": $data.overlayVisible,
             "aria-controls": $data.overlayVisible ? _ctx.$id + "_list" : void 0,
             "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
             "aria-invalid": _ctx.invalid || void 0,
             onFocus:
              _cache[0] ||
              (_cache[0] = function () {
               return $options.onFocus && $options.onFocus.apply($options, arguments);
              }),
             onBlur:
              _cache[1] ||
              (_cache[1] = function () {
               return $options.onBlur && $options.onBlur.apply($options, arguments);
              }),
             onKeydown:
              _cache[2] ||
              (_cache[2] = function () {
               return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
              }),
             onInput:
              _cache[3] ||
              (_cache[3] = function () {
               return $options.onEditableInput && $options.onEditableInput.apply($options, arguments);
              }),
             "data-p": $options.labelDataP,
            },
            _ctx.ptm("label"),
           ),
           null,
           16,
           _hoisted_2$j,
          ))
        : (openBlock(),
          createElementBlock(
           "span",
           mergeProps(
            {
             key: 1,
             ref: "focusInput",
             name: _ctx.name,
             id: _ctx.labelId || _ctx.inputId,
             class: [_ctx.cx("label"), _ctx.inputClass, _ctx.labelClass],
             style: [_ctx.inputStyle, _ctx.labelStyle],
             tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
             role: "combobox",
             "aria-label": _ctx.ariaLabel || ($options.label === "p-emptylabel" ? void 0 : $options.label),
             "aria-labelledby": _ctx.ariaLabelledby,
             "aria-haspopup": "listbox",
             "aria-expanded": $data.overlayVisible,
             "aria-controls": _ctx.$id + "_list",
             "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
             "aria-invalid": _ctx.invalid || void 0,
             "aria-disabled": _ctx.disabled,
             onFocus:
              _cache[4] ||
              (_cache[4] = function () {
               return $options.onFocus && $options.onFocus.apply($options, arguments);
              }),
             onBlur:
              _cache[5] ||
              (_cache[5] = function () {
               return $options.onBlur && $options.onBlur.apply($options, arguments);
              }),
             onKeydown:
              _cache[6] ||
              (_cache[6] = function () {
               return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
              }),
             "data-p": $options.labelDataP,
            },
            _ctx.ptm("label"),
           ),
           [
            renderSlot(_ctx.$slots, "value", {value: _ctx.d_value, placeholder: _ctx.placeholder}, function () {
             var _$options$label;
             return [createTextVNode(toDisplayString$1($options.label === "p-emptylabel" ? " " : (_$options$label = $options.label) !== null && _$options$label !== void 0 ? _$options$label : "empty"), 1)];
            }),
           ],
           16,
           _hoisted_3$g,
          )),
       $options.isClearIconVisible
        ? renderSlot(_ctx.$slots, "clearicon", {key: 2, class: normalizeClass(_ctx.cx("clearIcon")), clearCallback: $options.onClearClick}, function () {
           return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon ? "i" : "TimesIcon"), mergeProps({ref: "clearIcon", class: [_ctx.cx("clearIcon"), _ctx.clearIcon], onClick: $options.onClearClick}, _ctx.ptm("clearIcon"), {"data-pc-section": "clearicon"}), null, 16, ["class", "onClick"]))];
          })
        : createCommentVNode("", true),
       createElementVNode(
        "div",
        mergeProps({class: _ctx.cx("dropdown")}, _ctx.ptm("dropdown")),
        [
         _ctx.loading
          ? renderSlot(_ctx.$slots, "loadingicon", {key: 0, class: normalizeClass(_ctx.cx("loadingIcon"))}, function () {
             return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: [_ctx.cx("loadingIcon"), "pi-spin", _ctx.loadingIcon], "aria-hidden": "true"}, _ctx.ptm("loadingIcon")), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({key: 1, class: _ctx.cx("loadingIcon"), spin: "", "aria-hidden": "true"}, _ctx.ptm("loadingIcon")), null, 16, ["class"]))];
            })
          : renderSlot(_ctx.$slots, "dropdownicon", {key: 1, class: normalizeClass(_ctx.cx("dropdownIcon"))}, function () {
             return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? "span" : "ChevronDownIcon"), mergeProps({class: [_ctx.cx("dropdownIcon"), _ctx.dropdownIcon], "aria-hidden": "true", "data-p": $options.dropdownIconDataP}, _ctx.ptm("dropdownIcon")), null, 16, ["class", "data-p"]))];
            }),
        ],
        16,
       ),
       createVNode(
        _component_Portal,
        {appendTo: _ctx.appendTo},
        {
         default: withCtx(function () {
          return [
           createVNode(
            Transition,
            mergeProps({name: "p-anchored-overlay", onEnter: $options.onOverlayEnter, onAfterEnter: $options.onOverlayAfterEnter, onLeave: $options.onOverlayLeave, onAfterLeave: $options.onOverlayAfterLeave}, _ctx.ptm("transition")),
            {
             default: withCtx(function () {
              return [
               $data.overlayVisible
                ? (openBlock(),
                  createElementBlock(
                   "div",
                   mergeProps(
                    {
                     key: 0,
                     ref: $options.overlayRef,
                     class: [_ctx.cx("overlay"), _ctx.panelClass, _ctx.overlayClass],
                     style: [_ctx.panelStyle, _ctx.overlayStyle],
                     onClick:
                      _cache[10] ||
                      (_cache[10] = function () {
                       return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
                      }),
                     onKeydown:
                      _cache[11] ||
                      (_cache[11] = function () {
                       return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
                      }),
                     "data-p": $options.overlayDataP,
                    },
                    _ctx.ptm("overlay"),
                   ),
                   [
                    createElementVNode(
                     "span",
                     mergeProps(
                      {
                       ref: "firstHiddenFocusableElementOnOverlay",
                       role: "presentation",
                       "aria-hidden": "true",
                       class: "p-hidden-accessible p-hidden-focusable",
                       tabindex: 0,
                       onFocus:
                        _cache[7] ||
                        (_cache[7] = function () {
                         return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
                        }),
                      },
                      _ctx.ptm("hiddenFirstFocusableEl"),
                      {"data-p-hidden-accessible": true, "data-p-hidden-focusable": true},
                     ),
                     null,
                     16,
                    ),
                    renderSlot(_ctx.$slots, "header", {value: _ctx.d_value, options: $options.visibleOptions}),
                    _ctx.filter
                     ? (openBlock(),
                       createElementBlock(
                        "div",
                        mergeProps({key: 0, class: _ctx.cx("header")}, _ctx.ptm("header")),
                        [
                         createVNode(
                          _component_IconField,
                          {unstyled: _ctx.unstyled, pt: _ctx.ptm("pcFilterContainer")},
                          {
                           default: withCtx(function () {
                            return [
                             createVNode(_component_InputText, {ref: "filterInput", type: "text", value: $data.filterValue, onVnodeMounted: $options.onFilterUpdated, onVnodeUpdated: $options.onFilterUpdated, class: normalizeClass(_ctx.cx("pcFilter")), placeholder: _ctx.filterPlaceholder, variant: _ctx.variant, unstyled: _ctx.unstyled, role: "searchbox", autocomplete: "off", "aria-owns": _ctx.$id + "_list", "aria-activedescendant": $options.focusedOptionId, onKeydown: $options.onFilterKeyDown, onBlur: $options.onFilterBlur, onInput: $options.onFilterChange, pt: _ctx.ptm("pcFilter"), formControl: {novalidate: true}}, null, 8, ["value", "onVnodeMounted", "onVnodeUpdated", "class", "placeholder", "variant", "unstyled", "aria-owns", "aria-activedescendant", "onKeydown", "onBlur", "onInput", "pt"]),
                             createVNode(
                              _component_InputIcon,
                              {unstyled: _ctx.unstyled, pt: _ctx.ptm("pcFilterIconContainer")},
                              {
                               default: withCtx(function () {
                                return [
                                 renderSlot(_ctx.$slots, "filtericon", {}, function () {
                                  return [_ctx.filterIcon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: _ctx.filterIcon}, _ctx.ptm("filterIcon")), null, 16)) : (openBlock(), createBlock(_component_SearchIcon, normalizeProps(mergeProps({key: 1}, _ctx.ptm("filterIcon"))), null, 16))];
                                 }),
                                ];
                               }),
                               _: 3,
                              },
                              8,
                              ["unstyled", "pt"],
                             ),
                            ];
                           }),
                           _: 3,
                          },
                          8,
                          ["unstyled", "pt"],
                         ),
                         createElementVNode("span", mergeProps({role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenFilterResult"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.filterResultMessageText), 17),
                        ],
                        16,
                       ))
                     : createCommentVNode("", true),
                    createElementVNode(
                     "div",
                     mergeProps({class: _ctx.cx("listContainer"), style: {"max-height": $options.virtualScrollerDisabled ? _ctx.scrollHeight : ""}}, _ctx.ptm("listContainer")),
                     [
                      createVNode(
                       _component_VirtualScroller,
                       mergeProps({ref: $options.virtualScrollerRef}, _ctx.virtualScrollerOptions, {items: $options.visibleOptions, style: {height: _ctx.scrollHeight}, tabindex: -1, disabled: $options.virtualScrollerDisabled, pt: _ctx.ptm("virtualScroller")}),
                       createSlots(
                        {
                         content: withCtx(function (_ref) {
                          var styleClass = _ref.styleClass,
                           contentRef3 = _ref.contentRef,
                           items = _ref.items,
                           getItemOptions = _ref.getItemOptions,
                           contentStyle = _ref.contentStyle,
                           itemSize2 = _ref.itemSize;
                          return [
                           createElementVNode(
                            "ul",
                            mergeProps(
                             {
                              ref: function ref2(el) {
                               return $options.listRef(el, contentRef3);
                              },
                              id: _ctx.$id + "_list",
                              class: [_ctx.cx("list"), styleClass],
                              style: contentStyle,
                              role: "listbox",
                             },
                             _ctx.ptm("list"),
                            ),
                            [
                             (openBlock(true),
                             createElementBlock(
                              Fragment,
                              null,
                              renderList(items, function (option3, i2) {
                               return (
                                openBlock(),
                                createElementBlock(
                                 Fragment,
                                 {key: $options.getOptionRenderKey(option3, $options.getOptionIndex(i2, getItemOptions))},
                                 [
                                  $options.isOptionGroup(option3)
                                   ? (openBlock(),
                                     createElementBlock(
                                      "li",
                                      mergeProps({key: 0, id: _ctx.$id + "_" + $options.getOptionIndex(i2, getItemOptions), style: {height: itemSize2 ? itemSize2 + "px" : void 0}, class: _ctx.cx("optionGroup"), role: "option"}, {ref_for: true}, _ctx.ptm("optionGroup")),
                                      [
                                       renderSlot(_ctx.$slots, "optiongroup", {option: option3.optionGroup, index: $options.getOptionIndex(i2, getItemOptions)}, function () {
                                        return [createElementVNode("span", mergeProps({class: _ctx.cx("optionGroupLabel")}, {ref_for: true}, _ctx.ptm("optionGroupLabel")), toDisplayString$1($options.getOptionGroupLabel(option3.optionGroup)), 17)];
                                       }),
                                      ],
                                      16,
                                      _hoisted_6$9,
                                     ))
                                   : withDirectives(
                                      (openBlock(),
                                      createElementBlock(
                                       "li",
                                       mergeProps(
                                        {
                                         key: 1,
                                         id: _ctx.$id + "_" + $options.getOptionIndex(i2, getItemOptions),
                                         class: _ctx.cx("option", {option: option3, focusedOption: $options.getOptionIndex(i2, getItemOptions)}),
                                         style: {height: itemSize2 ? itemSize2 + "px" : void 0},
                                         role: "option",
                                         "aria-label": $options.getOptionLabel(option3),
                                         "aria-selected": $options.isSelected(option3),
                                         "aria-disabled": $options.isOptionDisabled(option3),
                                         "aria-setsize": $options.ariaSetSize,
                                         "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i2, getItemOptions)),
                                         onMousedown: function onMousedown($event) {
                                          return $options.onOptionSelect($event, option3);
                                         },
                                         onMousemove: function onMousemove($event) {
                                          return $options.onOptionMouseMove($event, $options.getOptionIndex(i2, getItemOptions));
                                         },
                                         onClick: _cache[8] || (_cache[8] = withModifiers(function () {}, ["stop"])),
                                         "data-p-selected": !_ctx.checkmark && $options.isSelected(option3),
                                         "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i2, getItemOptions),
                                         "data-p-disabled": $options.isOptionDisabled(option3),
                                        },
                                        {ref_for: true},
                                        $options.getPTItemOptions(option3, getItemOptions, i2, "option"),
                                       ),
                                       [
                                        _ctx.checkmark ? (openBlock(), createElementBlock(Fragment, {key: 0}, [$options.isSelected(option3) ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({key: 0, class: _ctx.cx("optionCheckIcon")}, {ref_for: true}, _ctx.ptm("optionCheckIcon")), null, 16, ["class"])) : (openBlock(), createBlock(_component_BlankIcon, mergeProps({key: 1, class: _ctx.cx("optionBlankIcon")}, {ref_for: true}, _ctx.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : createCommentVNode("", true),
                                        renderSlot(_ctx.$slots, "option", {option: option3, selected: $options.isSelected(option3), index: $options.getOptionIndex(i2, getItemOptions)}, function () {
                                         return [createElementVNode("span", mergeProps({class: _ctx.cx("optionLabel")}, {ref_for: true}, _ctx.ptm("optionLabel")), toDisplayString$1($options.getOptionLabel(option3)), 17)];
                                        }),
                                       ],
                                       16,
                                       _hoisted_7$5,
                                      )),
                                      [[_directive_ripple]],
                                     ),
                                 ],
                                 64,
                                )
                               );
                              }),
                              128,
                             )),
                             $data.filterValue && (!items || (items && items.length === 0))
                              ? (openBlock(),
                                createElementBlock(
                                 "li",
                                 mergeProps({key: 0, class: _ctx.cx("emptyMessage"), role: "option"}, _ctx.ptm("emptyMessage"), {"data-p-hidden-accessible": true}),
                                 [
                                  renderSlot(_ctx.$slots, "emptyfilter", {}, function () {
                                   return [createTextVNode(toDisplayString$1($options.emptyFilterMessageText), 1)];
                                  }),
                                 ],
                                 16,
                                ))
                              : !_ctx.options || (_ctx.options && _ctx.options.length === 0)
                                ? (openBlock(),
                                  createElementBlock(
                                   "li",
                                   mergeProps({key: 1, class: _ctx.cx("emptyMessage"), role: "option"}, _ctx.ptm("emptyMessage"), {"data-p-hidden-accessible": true}),
                                   [
                                    renderSlot(_ctx.$slots, "empty", {}, function () {
                                     return [createTextVNode(toDisplayString$1($options.emptyMessageText), 1)];
                                    }),
                                   ],
                                   16,
                                  ))
                                : createCommentVNode("", true),
                            ],
                            16,
                            _hoisted_5$a,
                           ),
                          ];
                         }),
                         _: 2,
                        },
                        [
                         _ctx.$slots.loader
                          ? {
                             name: "loader",
                             fn: withCtx(function (_ref2) {
                              var options3 = _ref2.options;
                              return [renderSlot(_ctx.$slots, "loader", {options: options3})];
                             }),
                             key: "0",
                            }
                          : void 0,
                        ],
                       ),
                       1040,
                       ["items", "style", "disabled", "pt"],
                      ),
                     ],
                     16,
                    ),
                    renderSlot(_ctx.$slots, "footer", {value: _ctx.d_value, options: $options.visibleOptions}),
                    !_ctx.options || (_ctx.options && _ctx.options.length === 0) ? (openBlock(), createElementBlock("span", mergeProps({key: 1, role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenEmptyMessage"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.emptyMessageText), 17)) : createCommentVNode("", true),
                    createElementVNode("span", mergeProps({role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenSelectedMessage"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.selectedMessageText), 17),
                    createElementVNode(
                     "span",
                     mergeProps(
                      {
                       ref: "lastHiddenFocusableElementOnOverlay",
                       role: "presentation",
                       "aria-hidden": "true",
                       class: "p-hidden-accessible p-hidden-focusable",
                       tabindex: 0,
                       onFocus:
                        _cache[9] ||
                        (_cache[9] = function () {
                         return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
                        }),
                      },
                      _ctx.ptm("hiddenLastFocusableEl"),
                      {"data-p-hidden-accessible": true, "data-p-hidden-focusable": true},
                     ),
                     null,
                     16,
                    ),
                   ],
                   16,
                   _hoisted_4$d,
                  ))
                : createCommentVNode("", true),
              ];
             }),
             _: 3,
            },
            16,
            ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"],
           ),
          ];
         }),
         _: 3,
        },
        8,
        ["appendTo"],
       ),
      ],
      16,
      _hoisted_1$W,
     )
    );
   }
   script$h.render = render$L;
   var script$g = {name: "AngleDownIcon", extends: script$P};
   function _toConsumableArray$9(r) {
    return _arrayWithoutHoles$9(r) || _iterableToArray$9(r) || _unsupportedIterableToArray$a(r) || _nonIterableSpread$9();
   }
   function _nonIterableSpread$9() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$a(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$a(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$a(r, a2) : void 0);
    }
   }
   function _iterableToArray$9(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$9(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$a(r);
   }
   function _arrayLikeToArray$a(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$K(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$9(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$g.render = render$K;
   var script$f = {name: "AngleUpIcon", extends: script$P};
   function _toConsumableArray$8(r) {
    return _arrayWithoutHoles$8(r) || _iterableToArray$8(r) || _unsupportedIterableToArray$9(r) || _nonIterableSpread$8();
   }
   function _nonIterableSpread$8() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$9(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$9(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$9(r, a2) : void 0);
    }
   }
   function _iterableToArray$8(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$8(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$9(r);
   }
   function _arrayLikeToArray$9(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$J(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$8(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$f.render = render$J;
   var style$8 = '\\n .p-inputnumber{display:inline-flex;position:relative}.p-inputnumber-button{align-items:center;background:dt("inputnumber.button.background");color:dt("inputnumber.button.color");cursor:pointer;display:flex;flex:0 0 auto;justify-content:center;transition:background dt("inputnumber.transition.duration"),color dt("inputnumber.transition.duration"),border-color dt("inputnumber.transition.duration"),outline-color dt("inputnumber.transition.duration");width:dt("inputnumber.button.width")}.p-inputnumber-button:disabled{cursor:auto}.p-inputnumber-button:not(:disabled):hover{background:dt("inputnumber.button.hover.background");color:dt("inputnumber.button.hover.color")}.p-inputnumber-button:not(:disabled):active{background:dt("inputnumber.button.active.background");color:dt("inputnumber.button.active.color")}.p-inputnumber-stacked .p-inputnumber-button{border:0;flex:1 1 auto;position:relative}.p-inputnumber-stacked .p-inputnumber-button-group{display:flex;flex-direction:column;height:calc(100% - 2px);inset-block-start:1px;inset-inline-end:1px;position:absolute;z-index:1}.p-inputnumber-stacked .p-inputnumber-increment-button{border-start-end-radius:calc(dt("inputnumber.button.border.radius") - 1px);padding:0}.p-inputnumber-stacked .p-inputnumber-decrement-button{border-end-end-radius:calc(dt("inputnumber.button.border.radius") - 1px);padding:0}.p-inputnumber-stacked .p-inputnumber-input{padding-inline-end:calc(dt("inputnumber.button.width") + dt("form.field.padding.x"))}.p-inputnumber-horizontal .p-inputnumber-button{border:1px solid dt("inputnumber.button.border.color")}.p-inputnumber-horizontal .p-inputnumber-button:hover{border-color:dt("inputnumber.button.hover.border.color")}.p-inputnumber-horizontal .p-inputnumber-button:active{border-color:dt("inputnumber.button.active.border.color")}.p-inputnumber-horizontal .p-inputnumber-increment-button{border-end-end-radius:dt("inputnumber.button.border.radius");border-inline-start:0 none;border-start-end-radius:dt("inputnumber.button.border.radius");order:3}.p-inputnumber-horizontal .p-inputnumber-input{border-radius:0;order:2}.p-inputnumber-horizontal .p-inputnumber-decrement-button{border-end-start-radius:dt("inputnumber.button.border.radius");border-inline-end:0 none;border-start-start-radius:dt("inputnumber.button.border.radius");order:1}.p-floatlabel:has(.p-inputnumber-horizontal) label{margin-inline-start:dt("inputnumber.button.width")}.p-inputnumber-vertical{flex-direction:column}.p-inputnumber-vertical .p-inputnumber-button{border:1px solid dt("inputnumber.button.border.color");padding:dt("inputnumber.button.vertical.padding")}.p-inputnumber-vertical .p-inputnumber-button:hover{border-color:dt("inputnumber.button.hover.border.color")}.p-inputnumber-vertical .p-inputnumber-button:active{border-color:dt("inputnumber.button.active.border.color")}.p-inputnumber-vertical .p-inputnumber-increment-button{border-block-end:0 none;border-start-end-radius:dt("inputnumber.button.border.radius");border-start-start-radius:dt("inputnumber.button.border.radius");order:1;width:100%}.p-inputnumber-vertical .p-inputnumber-input{border-radius:0;order:2;text-align:center}.p-inputnumber-vertical .p-inputnumber-decrement-button{border-block-start:0 none;border-end-end-radius:dt("inputnumber.button.border.radius");border-end-start-radius:dt("inputnumber.button.border.radius");order:3;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-inputnumber-fluid{width:100%}.p-inputnumber-fluid .p-inputnumber-input{width:1%}.p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input{width:100%}.p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon{font-size:dt("form.field.sm.font.size");height:dt("form.field.sm.font.size");width:dt("form.field.sm.font.size")}.p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon{font-size:dt("form.field.lg.font.size");height:dt("form.field.lg.font.size");width:dt("form.field.lg.font.size")}.p-inputnumber-clear-icon{color:dt("form.field.icon.color");cursor:pointer;inset-inline-end:dt("form.field.padding.x");margin-top:-.5rem;position:absolute;top:50%}.p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-inputnumber-stacked .p-inputnumber-clear-icon{inset-inline-end:calc(dt("inputnumber.button.width") + dt("form.field.padding.x"))}.p-inputnumber-stacked:has(.p-inputnumber-clear-icon) .p-inputnumber-input{padding-inline-end:calc(dt("inputnumber.button.width") + dt("form.field.padding.x")*2 + dt("icon.size"))}.p-inputnumber-horizontal .p-inputnumber-clear-icon{inset-inline-end:calc(dt("inputnumber.button.width") + dt("form.field.padding.x"))}';
   var classes$8 = {
    root: function root10(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-inputnumber p-component p-inputwrapper", {"p-invalid": instance.$invalid, "p-inputwrapper-filled": instance.$filled || props2.allowEmpty === false, "p-inputwrapper-focus": instance.focused, "p-inputnumber-stacked": props2.showButtons && props2.buttonLayout === "stacked", "p-inputnumber-horizontal": props2.showButtons && props2.buttonLayout === "horizontal", "p-inputnumber-vertical": props2.showButtons && props2.buttonLayout === "vertical", "p-inputnumber-fluid": instance.$fluid}];
    },
    pcInputText: "p-inputnumber-input",
    clearIcon: "p-inputnumber-clear-icon",
    buttonGroup: "p-inputnumber-button-group",
    incrementButton: function incrementButton(_ref2) {
     var instance = _ref2.instance,
      props2 = _ref2.props;
     return ["p-inputnumber-button p-inputnumber-increment-button", {"p-disabled": props2.showButtons && props2.max !== null && instance.maxBoundry()}];
    },
    decrementButton: function decrementButton(_ref3) {
     var instance = _ref3.instance,
      props2 = _ref3.props;
     return ["p-inputnumber-button p-inputnumber-decrement-button", {"p-disabled": props2.showButtons && props2.min !== null && instance.minBoundry()}];
    },
   };
   var InputNumberStyle = BaseStyle.extend({name: "inputnumber", style: style$8, classes: classes$8});
   var script$1$9 = {
    name: "BaseInputNumber",
    extends: script$y,
    props: {
     format: {type: Boolean, default: true},
     showButtons: {type: Boolean, default: false},
     buttonLayout: {type: String, default: "stacked"},
     incrementButtonClass: {type: String, default: null},
     decrementButtonClass: {type: String, default: null},
     incrementButtonIcon: {type: String, default: void 0},
     incrementIcon: {type: String, default: void 0},
     decrementButtonIcon: {type: String, default: void 0},
     decrementIcon: {type: String, default: void 0},
     locale: {type: String, default: void 0},
     localeMatcher: {type: String, default: void 0},
     mode: {type: String, default: "decimal"},
     prefix: {type: String, default: null},
     suffix: {type: String, default: null},
     currency: {type: String, default: void 0},
     currencyDisplay: {type: String, default: void 0},
     useGrouping: {type: Boolean, default: true},
     minFractionDigits: {type: Number, default: void 0},
     maxFractionDigits: {type: Number, default: void 0},
     roundingMode: {
      type: String,
      default: "halfExpand",
      validator: function validator(value2) {
       return ["ceil", "floor", "expand", "trunc", "halfCeil", "halfFloor", "halfExpand", "halfTrunc", "halfEven"].includes(value2);
      },
     },
     min: {type: Number, default: null},
     max: {type: Number, default: null},
     step: {type: Number, default: 1},
     allowEmpty: {type: Boolean, default: true},
     highlightOnFocus: {type: Boolean, default: false},
     showClear: {type: Boolean, default: false},
     readonly: {type: Boolean, default: false},
     placeholder: {type: String, default: null},
     inputId: {type: String, default: null},
     inputClass: {type: [String, Object], default: null},
     inputStyle: {type: Object, default: null},
     ariaLabelledby: {type: String, default: null},
     ariaLabel: {type: String, default: null},
     required: {type: Boolean, default: false},
    },
    style: InputNumberStyle,
    provide: function provide19() {
     return {$pcInputNumber: this, $parentInstance: this};
    },
   };
   function _typeof$4(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$4 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$4(o)
    );
   }
   function ownKeys$1(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread$1(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys$1(Object(t2), true).forEach(function (r2) {
         _defineProperty$3(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys$1(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$3(e, r, t2) {
    return ((r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$3(t2) {
    var i2 = _toPrimitive$3(t2, "string");
    return "symbol" == _typeof$4(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$3(t2, r) {
    if ("object" != _typeof$4(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$4(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   function _toConsumableArray$7(r) {
    return _arrayWithoutHoles$7(r) || _iterableToArray$7(r) || _unsupportedIterableToArray$8(r) || _nonIterableSpread$7();
   }
   function _nonIterableSpread$7() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$8(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$8(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$8(r, a2) : void 0);
    }
   }
   function _iterableToArray$7(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$7(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$8(r);
   }
   function _arrayLikeToArray$8(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var script$e = {
    name: "InputNumber",
    extends: script$1$9,
    inheritAttrs: false,
    emits: ["input", "focus", "blur"],
    inject: {$pcFluid: {default: null}},
    numberFormat: null,
    _numeral: null,
    _decimal: null,
    _group: null,
    _minusSign: null,
    _currency: null,
    _suffix: null,
    _prefix: null,
    _index: null,
    groupChar: "",
    isSpecialChar: null,
    prefixChar: null,
    suffixChar: null,
    timer: null,
    data: function data10() {
     return {d_modelValue: this.d_value, focused: false};
    },
    watch: {
     d_value: {
      immediate: true,
      handler: function handler10(newValue) {
       var _this$$refs$clearIcon;
       this.d_modelValue = newValue;
       if ((_this$$refs$clearIcon = this.$refs.clearIcon) !== null && _this$$refs$clearIcon !== void 0 && (_this$$refs$clearIcon = _this$$refs$clearIcon.$el) !== null && _this$$refs$clearIcon !== void 0 && _this$$refs$clearIcon.style) {
        this.$refs.clearIcon.$el.style.display = l$1(newValue) ? "none" : "block";
       }
      },
     },
     locale: function locale(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     localeMatcher: function localeMatcher(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     mode: function mode(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     currency: function currency(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     currencyDisplay: function currencyDisplay(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     useGrouping: function useGrouping(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     minFractionDigits: function minFractionDigits(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     maxFractionDigits: function maxFractionDigits(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     suffix: function suffix(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
     prefix: function prefix(newValue, oldValue) {
      this.updateConstructParser(newValue, oldValue);
     },
    },
    created: function created2() {
     this.constructParser();
    },
    mounted: function mounted11() {
     var _this$$refs$clearIcon2;
     if ((_this$$refs$clearIcon2 = this.$refs.clearIcon) !== null && _this$$refs$clearIcon2 !== void 0 && (_this$$refs$clearIcon2 = _this$$refs$clearIcon2.$el) !== null && _this$$refs$clearIcon2 !== void 0 && _this$$refs$clearIcon2.style) {
      this.$refs.clearIcon.$el.style.display = !this.$filled ? "none" : "block";
     }
    },
    methods: {
     getOptions: function getOptions2() {
      return {localeMatcher: this.localeMatcher, style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay, useGrouping: this.useGrouping, minimumFractionDigits: this.minFractionDigits, maximumFractionDigits: this.maxFractionDigits, roundingMode: this.roundingMode};
     },
     constructParser: function constructParser() {
      this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
      var numerals = _toConsumableArray$7(new Intl.NumberFormat(this.locale, {useGrouping: false}).format(9876543210)).reverse();
      var index = new Map(
       numerals.map(function (d2, i2) {
        return [d2, i2];
       }),
      );
      this._numeral = new RegExp("[".concat(numerals.join(""), "]"), "g");
      this._group = this.getGroupingExpression();
      this._minusSign = this.getMinusSignExpression();
      this._currency = this.getCurrencyExpression();
      this._decimal = this.getDecimalExpression();
      this._suffix = this.getSuffixExpression();
      this._prefix = this.getPrefixExpression();
      this._index = function (d2) {
       return index.get(d2);
      };
     },
     updateConstructParser: function updateConstructParser(newValue, oldValue) {
      if (newValue !== oldValue) {
       this.constructParser();
      }
     },
     escapeRegExp: function escapeRegExp(text2) {
      return text2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
     },
     getDecimalExpression: function getDecimalExpression() {
      var formatter = new Intl.NumberFormat(this.locale, _objectSpread$1(_objectSpread$1({}, this.getOptions()), {}, {useGrouping: false}));
      return new RegExp("[".concat(formatter.format(1.1).replace(this._currency, "").trim().replace(this._numeral, ""), "]"), "g");
     },
     getGroupingExpression: function getGroupingExpression() {
      var formatter = new Intl.NumberFormat(this.locale, {useGrouping: true});
      this.groupChar = formatter.format(1e6).trim().replace(this._numeral, "").charAt(0);
      return new RegExp("[".concat(this.groupChar, "]"), "g");
     },
     getMinusSignExpression: function getMinusSignExpression() {
      var formatter = new Intl.NumberFormat(this.locale, {useGrouping: false});
      return new RegExp("[".concat(formatter.format(-1).trim().replace(this._numeral, ""), "]"), "g");
     },
     getCurrencyExpression: function getCurrencyExpression() {
      if (this.currency) {
       var formatter = new Intl.NumberFormat(this.locale, {style: "currency", currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0, roundingMode: this.roundingMode});
       return new RegExp("[".concat(formatter.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, ""), "]"), "g");
      }
      return new RegExp("[]", "g");
     },
     getPrefixExpression: function getPrefixExpression() {
      if (this.prefix) {
       this.prefixChar = this.prefix;
      } else {
       var formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay});
       this.prefixChar = formatter.format(1).split("1")[0];
      }
      return new RegExp("".concat(this.escapeRegExp(this.prefixChar || "")), "g");
     },
     getSuffixExpression: function getSuffixExpression() {
      if (this.suffix) {
       this.suffixChar = this.suffix;
      } else {
       var formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0, roundingMode: this.roundingMode});
       this.suffixChar = formatter.format(1).split("1")[1];
      }
      return new RegExp("".concat(this.escapeRegExp(this.suffixChar || "")), "g");
     },
     formatValue: function formatValue(value2) {
      if (value2 != null) {
       if (value2 === "-") {
        return value2;
       }
       if (this.format) {
        var formatter = new Intl.NumberFormat(this.locale, this.getOptions());
        var formattedValue2 = formatter.format(value2);
        if (this.prefix) {
         formattedValue2 = this.prefix + formattedValue2;
        }
        if (this.suffix) {
         formattedValue2 = formattedValue2 + this.suffix;
        }
        return formattedValue2;
       }
       return value2.toString();
      }
      return "";
     },
     parseValue: function parseValue2(text2) {
      var filteredText = text2.replace(this._suffix, "").replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
      if (filteredText) {
       if (filteredText === "-") return filteredText;
       var parsedValue = +filteredText;
       return isNaN(parsedValue) ? null : parsedValue;
      }
      return null;
     },
     repeat: function repeat(event, interval, dir) {
      var _this = this;
      if (this.readonly) {
       return;
      }
      var i2 = interval || 500;
      this.clearTimer();
      this.timer = setTimeout(function () {
       _this.repeat(event, 40, dir);
      }, i2);
      this.spin(event, dir);
     },
     addWithPrecision: function addWithPrecision(base, increment) {
      var baseStr = base.toString();
      var stepStr = increment.toString();
      var baseDecimalPlaces = baseStr.includes(".") ? baseStr.split(".")[1].length : 0;
      var stepDecimalPlaces = stepStr.includes(".") ? stepStr.split(".")[1].length : 0;
      var maxDecimalPlaces = Math.max(baseDecimalPlaces, stepDecimalPlaces);
      var precision = Math.pow(10, maxDecimalPlaces);
      return Math.round((base + increment) * precision) / precision;
     },
     spin: function spin(event, dir) {
      if (this.$refs.input) {
       var step = this.step * dir;
       var currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
       var newValue = this.validateValue(this.addWithPrecision(currentValue, step));
       this.updateInput(newValue, null, "spin");
       this.updateModel(event, newValue);
       this.handleOnInput(event, currentValue, newValue);
      }
     },
     onUpButtonMouseDown: function onUpButtonMouseDown(event) {
      if (!this.disabled) {
       this.$refs.input.$el.focus();
       this.repeat(event, null, 1);
       event.preventDefault();
      }
     },
     onUpButtonMouseUp: function onUpButtonMouseUp() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onUpButtonMouseLeave: function onUpButtonMouseLeave() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onUpButtonKeyUp: function onUpButtonKeyUp() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onUpButtonKeyDown: function onUpButtonKeyDown(event) {
      if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
       this.repeat(event, null, 1);
      }
     },
     onDownButtonMouseDown: function onDownButtonMouseDown(event) {
      if (!this.disabled) {
       this.$refs.input.$el.focus();
       this.repeat(event, null, -1);
       event.preventDefault();
      }
     },
     onDownButtonMouseUp: function onDownButtonMouseUp() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onDownButtonMouseLeave: function onDownButtonMouseLeave() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onDownButtonKeyUp: function onDownButtonKeyUp() {
      if (!this.disabled) {
       this.clearTimer();
      }
     },
     onDownButtonKeyDown: function onDownButtonKeyDown(event) {
      if (event.code === "Space" || event.code === "Enter" || event.code === "NumpadEnter") {
       this.repeat(event, null, -1);
      }
     },
     onUserInput: function onUserInput() {
      if (this.isSpecialChar) {
       this.$refs.input.$el.value = this.lastValue;
      }
      this.isSpecialChar = false;
     },
     onInputKeyDown: function onInputKeyDown(event) {
      if (this.readonly) {
       return;
      }
      if (event.isComposing) {
       return;
      }
      if (event.altKey || event.ctrlKey || event.metaKey) {
       this.isSpecialChar = true;
       this.lastValue = this.$refs.input.$el.value;
       return;
      }
      this.lastValue = event.target.value;
      var selectionStart = event.target.selectionStart;
      var selectionEnd = event.target.selectionEnd;
      var selectionRange = selectionEnd - selectionStart;
      var inputValue = event.target.value;
      var newValueStr = null;
      var code = event.code || event.key;
      switch (code) {
       case "ArrowUp":
        this.spin(event, 1);
        event.preventDefault();
        break;
       case "ArrowDown":
        this.spin(event, -1);
        event.preventDefault();
        break;
       case "ArrowLeft":
        if (selectionRange > 1) {
         var cursorPosition = this.isNumeralChar(inputValue.charAt(selectionStart)) ? selectionStart + 1 : selectionStart + 2;
         this.$refs.input.$el.setSelectionRange(cursorPosition, cursorPosition);
        } else if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
         event.preventDefault();
        }
        break;
       case "ArrowRight":
        if (selectionRange > 1) {
         var _cursorPosition = selectionEnd - 1;
         this.$refs.input.$el.setSelectionRange(_cursorPosition, _cursorPosition);
        } else if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
         event.preventDefault();
        }
        break;
       case "Tab":
       case "Enter":
       case "NumpadEnter":
        newValueStr = this.validateValue(this.parseValue(inputValue));
        this.$refs.input.$el.value = this.formatValue(newValueStr);
        this.$refs.input.$el.setAttribute("aria-valuenow", newValueStr);
        this.updateModel(event, newValueStr);
        break;
       case "Backspace": {
        event.preventDefault();
        if (selectionStart === selectionEnd) {
         if (selectionStart >= inputValue.length && this.suffixChar !== null) {
          selectionStart = inputValue.length - this.suffixChar.length;
          this.$refs.input.$el.setSelectionRange(selectionStart, selectionStart);
         }
         var deleteChar = inputValue.charAt(selectionStart - 1);
         var _this$getDecimalCharI = this.getDecimalCharIndexes(inputValue),
          decimalCharIndex = _this$getDecimalCharI.decimalCharIndex,
          decimalCharIndexWithoutPrefix = _this$getDecimalCharI.decimalCharIndexWithoutPrefix;
         if (this.isNumeralChar(deleteChar)) {
          var decimalLength = this.getDecimalLength(inputValue);
          if (this._group.test(deleteChar)) {
           this._group.lastIndex = 0;
           newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
          } else if (this._decimal.test(deleteChar)) {
           this._decimal.lastIndex = 0;
           if (decimalLength) {
            this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
           } else {
            newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
           }
          } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
           var insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? "" : "0";
           newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
          } else if (decimalCharIndexWithoutPrefix === 1) {
           newValueStr = inputValue.slice(0, selectionStart - 1) + "0" + inputValue.slice(selectionStart);
           newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
          } else {
           newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
          }
         }
         this.updateValue(event, newValueStr, null, "delete-single");
        } else {
         newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
         this.updateValue(event, newValueStr, null, "delete-range");
        }
        break;
       }
       case "Delete":
        event.preventDefault();
        if (selectionStart === selectionEnd) {
         var _deleteChar = inputValue.charAt(selectionStart);
         var _this$getDecimalCharI2 = this.getDecimalCharIndexes(inputValue),
          _decimalCharIndex = _this$getDecimalCharI2.decimalCharIndex,
          _decimalCharIndexWithoutPrefix = _this$getDecimalCharI2.decimalCharIndexWithoutPrefix;
         if (this.isNumeralChar(_deleteChar)) {
          var _decimalLength = this.getDecimalLength(inputValue);
          if (this._group.test(_deleteChar)) {
           this._group.lastIndex = 0;
           newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
          } else if (this._decimal.test(_deleteChar)) {
           this._decimal.lastIndex = 0;
           if (_decimalLength) {
            this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
           } else {
            newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
           }
          } else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
           var _insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < _decimalLength ? "" : "0";
           newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
          } else if (_decimalCharIndexWithoutPrefix === 1) {
           newValueStr = inputValue.slice(0, selectionStart) + "0" + inputValue.slice(selectionStart + 1);
           newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : "";
          } else {
           newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
          }
         }
         this.updateValue(event, newValueStr, null, "delete-back-single");
        } else {
         newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
         this.updateValue(event, newValueStr, null, "delete-range");
        }
        break;
       case "Home":
        event.preventDefault();
        if (s$3(this.min)) {
         this.updateModel(event, this.min);
        }
        break;
       case "End":
        event.preventDefault();
        if (s$3(this.max)) {
         this.updateModel(event, this.max);
        }
        break;
      }
     },
     onInputKeyPress: function onInputKeyPress(event) {
      if (this.readonly) {
       return;
      }
      var _char = event.key;
      var isDecimalSign2 = this.isDecimalSign(_char);
      var isMinusSign2 = this.isMinusSign(_char);
      if (event.code !== "Enter") {
       event.preventDefault();
      }
      if ((Number(_char) >= 0 && Number(_char) <= 9) || isMinusSign2 || isDecimalSign2) {
       this.insert(event, _char, {isDecimalSign: isDecimalSign2, isMinusSign: isMinusSign2});
      }
     },
     onPaste: function onPaste(event) {
      if (this.readonly) {
       return;
      }
      event.preventDefault();
      var data17 = (event.clipboardData || window["clipboardData"]).getData("Text");
      if (this.inputId === "integeronly" && /[^\d-]/.test(data17)) {
       return;
      }
      if (data17) {
       var filteredData = this.parseValue(data17);
       if (filteredData != null) {
        this.insert(event, filteredData.toString());
       }
      }
     },
     onClearClick: function onClearClick2(event) {
      this.updateModel(event, null);
      this.$refs.input.$el.focus();
     },
     allowMinusSign: function allowMinusSign() {
      return this.min === null || this.min < 0;
     },
     isMinusSign: function isMinusSign(_char2) {
      if (this._minusSign.test(_char2) || _char2 === "-") {
       this._minusSign.lastIndex = 0;
       return true;
      }
      return false;
     },
     isDecimalSign: function isDecimalSign(_char3) {
      var _this$locale;
      if (((_this$locale = this.locale) !== null && _this$locale !== void 0 && _this$locale.includes("fr") && [".", ","].includes(_char3)) || this._decimal.test(_char3)) {
       this._decimal.lastIndex = 0;
       return true;
      }
      return false;
     },
     isDecimalMode: function isDecimalMode() {
      return this.mode === "decimal";
     },
     getDecimalCharIndexes: function getDecimalCharIndexes(val) {
      var decimalCharIndex = val.search(this._decimal);
      this._decimal.lastIndex = 0;
      var filteredVal = val.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "");
      var decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
      this._decimal.lastIndex = 0;
      return {decimalCharIndex, decimalCharIndexWithoutPrefix};
     },
     getCharIndexes: function getCharIndexes(val) {
      var decimalCharIndex = val.search(this._decimal);
      this._decimal.lastIndex = 0;
      var minusCharIndex = val.search(this._minusSign);
      this._minusSign.lastIndex = 0;
      var suffixCharIndex = val.search(this._suffix);
      this._suffix.lastIndex = 0;
      var currencyCharIndex = val.search(this._currency);
      this._currency.lastIndex = 0;
      return {decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex};
     },
     insert: function insert(event, text2) {
      var sign = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {isDecimalSign: false, isMinusSign: false};
      var minusCharIndexOnText = text2.search(this._minusSign);
      this._minusSign.lastIndex = 0;
      if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
       return;
      }
      var selectionStart = this.$refs.input.$el.selectionStart;
      var selectionEnd = this.$refs.input.$el.selectionEnd;
      var inputValue = this.$refs.input.$el.value.trim();
      var _this$getCharIndexes = this.getCharIndexes(inputValue),
       decimalCharIndex = _this$getCharIndexes.decimalCharIndex,
       minusCharIndex = _this$getCharIndexes.minusCharIndex,
       suffixCharIndex = _this$getCharIndexes.suffixCharIndex,
       currencyCharIndex = _this$getCharIndexes.currencyCharIndex;
      var newValueStr;
      if (sign.isMinusSign) {
       var isNewMinusSign = minusCharIndex === -1;
       if (selectionStart === 0 || selectionStart === currencyCharIndex + 1) {
        newValueStr = inputValue;
        if (isNewMinusSign || selectionEnd !== 0) {
         newValueStr = this.insertText(inputValue, text2, 0, selectionEnd);
        }
        this.updateValue(event, newValueStr, text2, "insert");
       }
      } else if (sign.isDecimalSign) {
       if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
        this.updateValue(event, inputValue, text2, "insert");
       } else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
        newValueStr = this.insertText(inputValue, text2, selectionStart, selectionEnd);
        this.updateValue(event, newValueStr, text2, "insert");
       } else if (decimalCharIndex === -1 && this.maxFractionDigits) {
        newValueStr = this.insertText(inputValue, text2, selectionStart, selectionEnd);
        this.updateValue(event, newValueStr, text2, "insert");
       }
      } else {
       var maxFractionDigits2 = this.numberFormat.resolvedOptions().maximumFractionDigits;
       var operation = selectionStart !== selectionEnd ? "range-insert" : "insert";
       if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
        if (selectionStart + text2.length - (decimalCharIndex + 1) <= maxFractionDigits2) {
         var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
         newValueStr = inputValue.slice(0, selectionStart) + text2 + inputValue.slice(selectionStart + text2.length, charIndex) + inputValue.slice(charIndex);
         this.updateValue(event, newValueStr, text2, operation);
        }
       } else {
        newValueStr = this.insertText(inputValue, text2, selectionStart, selectionEnd);
        this.updateValue(event, newValueStr, text2, operation);
       }
      }
     },
     insertText: function insertText(value2, text2, start, end) {
      var textSplit = text2 === "." ? text2 : text2.split(".");
      if (textSplit.length === 2) {
       var decimalCharIndex = value2.slice(start, end).search(this._decimal);
       this._decimal.lastIndex = 0;
       return decimalCharIndex > 0 ? value2.slice(0, start) + this.formatValue(text2) + value2.slice(end) : this.formatValue(text2) || value2;
      } else if (end - start === value2.length) {
       return this.formatValue(text2);
      } else if (start === 0) {
       return text2 + value2.slice(end);
      } else if (end === value2.length) {
       return value2.slice(0, start) + text2;
      } else {
       return value2.slice(0, start) + text2 + value2.slice(end);
      }
     },
     deleteRange: function deleteRange(value2, start, end) {
      var newValueStr;
      if (end - start === value2.length) newValueStr = "";
      else if (start === 0) newValueStr = value2.slice(end);
      else if (end === value2.length) newValueStr = value2.slice(0, start);
      else newValueStr = value2.slice(0, start) + value2.slice(end);
      return newValueStr;
     },
     initCursor: function initCursor() {
      var selectionStart = this.$refs.input.$el.selectionStart;
      var inputValue = this.$refs.input.$el.value;
      var valueLength = inputValue.length;
      var index = null;
      var prefixLength = (this.prefixChar || "").length;
      inputValue = inputValue.replace(this._prefix, "");
      selectionStart = selectionStart - prefixLength;
      var _char4 = inputValue.charAt(selectionStart);
      if (this.isNumeralChar(_char4)) {
       return selectionStart + prefixLength;
      }
      var i2 = selectionStart - 1;
      while (i2 >= 0) {
       _char4 = inputValue.charAt(i2);
       if (this.isNumeralChar(_char4)) {
        index = i2 + prefixLength;
        break;
       } else {
        i2--;
       }
      }
      if (index !== null) {
       this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
      } else {
       i2 = selectionStart;
       while (i2 < valueLength) {
        _char4 = inputValue.charAt(i2);
        if (this.isNumeralChar(_char4)) {
         index = i2 + prefixLength;
         break;
        } else {
         i2++;
        }
       }
       if (index !== null) {
        this.$refs.input.$el.setSelectionRange(index, index);
       }
      }
      return index || 0;
     },
     onInputClick: function onInputClick() {
      var currentValue = this.$refs.input.$el.value;
      if (!this.readonly && currentValue !== Mt()) {
       this.initCursor();
      }
     },
     isNumeralChar: function isNumeralChar(_char5) {
      if (_char5.length === 1 && (this._numeral.test(_char5) || this._decimal.test(_char5) || this._group.test(_char5) || this._minusSign.test(_char5))) {
       this.resetRegex();
       return true;
      }
      return false;
     },
     resetRegex: function resetRegex() {
      this._numeral.lastIndex = 0;
      this._decimal.lastIndex = 0;
      this._group.lastIndex = 0;
      this._minusSign.lastIndex = 0;
     },
     updateValue: function updateValue2(event, valueStr, insertedValueStr, operation) {
      var currentValue = this.$refs.input.$el.value;
      var newValue = null;
      if (valueStr != null) {
       newValue = this.parseValue(valueStr);
       newValue = !newValue && !this.allowEmpty ? 0 : newValue;
       this.updateInput(newValue, insertedValueStr, operation, valueStr);
       this.handleOnInput(event, currentValue, newValue);
      }
     },
     handleOnInput: function handleOnInput(event, currentValue, newValue) {
      if (this.isValueChanged(currentValue, newValue)) {
       var _this$formField$onInp, _this$formField;
       this.$emit("input", {originalEvent: event, value: newValue, formattedValue: currentValue});
       (_this$formField$onInp = (_this$formField = this.formField).onInput) === null || _this$formField$onInp === void 0 || _this$formField$onInp.call(_this$formField, {originalEvent: event, value: newValue});
      }
     },
     isValueChanged: function isValueChanged(currentValue, newValue) {
      if (newValue === null && currentValue !== null) {
       return true;
      }
      if (newValue != null) {
       var parsedCurrentValue = typeof currentValue === "string" ? this.parseValue(currentValue) : currentValue;
       return newValue !== parsedCurrentValue;
      }
      return false;
     },
     validateValue: function validateValue(value2) {
      if (value2 === "-" || value2 == null) {
       return null;
      }
      if (this.min != null && value2 < this.min) {
       return this.min;
      }
      if (this.max != null && value2 > this.max) {
       return this.max;
      }
      return value2;
     },
     updateInput: function updateInput(value2, insertedValueStr, operation, valueStr) {
      var _this$$refs$clearIcon3;
      insertedValueStr = insertedValueStr || "";
      var inputValue = this.$refs.input.$el.value;
      var newValue = this.formatValue(value2);
      var currentLength = inputValue.length;
      if (newValue !== valueStr) {
       newValue = this.concatValues(newValue, valueStr);
      }
      if (currentLength === 0) {
       this.$refs.input.$el.value = newValue;
       this.$refs.input.$el.setSelectionRange(0, 0);
       var index = this.initCursor();
       var selectionEnd = index + insertedValueStr.length;
       this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
      } else {
       var selectionStart = this.$refs.input.$el.selectionStart;
       var _selectionEnd = this.$refs.input.$el.selectionEnd;
       this.$refs.input.$el.value = newValue;
       var newLength = newValue.length;
       if (operation === "range-insert") {
        var startValue = this.parseValue((inputValue || "").slice(0, selectionStart));
        var startValueStr = startValue !== null ? startValue.toString() : "";
        var startExpr = startValueStr.split("").join("(".concat(this.groupChar, ")?"));
        var sRegex = new RegExp(startExpr, "g");
        sRegex.test(newValue);
        var tExpr = insertedValueStr.split("").join("(".concat(this.groupChar, ")?"));
        var tRegex = new RegExp(tExpr, "g");
        tRegex.test(newValue.slice(sRegex.lastIndex));
        _selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
        this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
       } else if (newLength === currentLength) {
        if (operation === "insert" || operation === "delete-back-single") {
         this.$refs.input.$el.setSelectionRange(_selectionEnd + 1, _selectionEnd + 1);
        } else if (operation === "delete-single") {
         this.$refs.input.$el.setSelectionRange(_selectionEnd - 1, _selectionEnd - 1);
        } else if (operation === "delete-range" || operation === "spin") {
         this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
        }
       } else if (operation === "delete-back-single") {
        var prevChar = inputValue.charAt(_selectionEnd - 1);
        var nextChar = inputValue.charAt(_selectionEnd);
        var diff = currentLength - newLength;
        var isGroupChar = this._group.test(nextChar);
        if (isGroupChar && diff === 1) {
         _selectionEnd += 1;
        } else if (!isGroupChar && this.isNumeralChar(prevChar)) {
         _selectionEnd += -1 * diff + 1;
        }
        this._group.lastIndex = 0;
        this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
       } else if (inputValue === "-" && operation === "insert") {
        this.$refs.input.$el.setSelectionRange(0, 0);
        var _index = this.initCursor();
        var _selectionEnd2 = _index + insertedValueStr.length + 1;
        this.$refs.input.$el.setSelectionRange(_selectionEnd2, _selectionEnd2);
       } else {
        _selectionEnd = _selectionEnd + (newLength - currentLength);
        this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
       }
      }
      this.$refs.input.$el.setAttribute("aria-valuenow", value2);
      if ((_this$$refs$clearIcon3 = this.$refs.clearIcon) !== null && _this$$refs$clearIcon3 !== void 0 && (_this$$refs$clearIcon3 = _this$$refs$clearIcon3.$el) !== null && _this$$refs$clearIcon3 !== void 0 && _this$$refs$clearIcon3.style) {
       this.$refs.clearIcon.$el.style.display = l$1(newValue) ? "none" : "block";
      }
     },
     concatValues: function concatValues(val1, val2) {
      if (val1 && val2) {
       var decimalCharIndex = val2.search(this._decimal);
       this._decimal.lastIndex = 0;
       if (this.suffixChar) {
        return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, "").split(this._decimal)[0] + val2.replace(this.suffixChar, "").slice(decimalCharIndex) + this.suffixChar : val1;
       } else {
        return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
       }
      }
      return val1;
     },
     getDecimalLength: function getDecimalLength(value2) {
      if (value2) {
       var valueSplit = value2.split(this._decimal);
       if (valueSplit.length === 2) {
        return valueSplit[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
       }
      }
      return 0;
     },
     updateModel: function updateModel2(event, value2) {
      this.writeValue(value2, event);
     },
     onInputFocus: function onInputFocus(event) {
      this.focused = true;
      if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== Mt() && this.highlightOnFocus) {
       event.target.select();
      }
      this.$emit("focus", event);
     },
     onInputBlur: function onInputBlur(event) {
      var _this$formField$onBlu, _this$formField2;
      this.focused = false;
      var input = event.target;
      var newValue = this.validateValue(this.parseValue(input.value));
      this.$emit("blur", {originalEvent: event, value: input.value});
      (_this$formField$onBlu = (_this$formField2 = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField2, event);
      input.value = this.formatValue(newValue);
      input.setAttribute("aria-valuenow", newValue);
      this.updateModel(event, newValue);
      if (!this.disabled && !this.readonly && this.highlightOnFocus) {
       pt();
      }
     },
     clearTimer: function clearTimer() {
      if (this.timer) {
       clearTimeout(this.timer);
      }
     },
     maxBoundry: function maxBoundry() {
      return this.d_value >= this.max;
     },
     minBoundry: function minBoundry() {
      return this.d_value <= this.min;
     },
    },
    computed: {
     upButtonListeners: function upButtonListeners() {
      var _this2 = this;
      return {
       mousedown: function mousedown(event) {
        return _this2.onUpButtonMouseDown(event);
       },
       mouseup: function mouseup(event) {
        return _this2.onUpButtonMouseUp(event);
       },
       mouseleave: function mouseleave(event) {
        return _this2.onUpButtonMouseLeave(event);
       },
       keydown: function keydown(event) {
        return _this2.onUpButtonKeyDown(event);
       },
       keyup: function keyup(event) {
        return _this2.onUpButtonKeyUp(event);
       },
      };
     },
     downButtonListeners: function downButtonListeners() {
      var _this3 = this;
      return {
       mousedown: function mousedown(event) {
        return _this3.onDownButtonMouseDown(event);
       },
       mouseup: function mouseup(event) {
        return _this3.onDownButtonMouseUp(event);
       },
       mouseleave: function mouseleave(event) {
        return _this3.onDownButtonMouseLeave(event);
       },
       keydown: function keydown(event) {
        return _this3.onDownButtonKeyDown(event);
       },
       keyup: function keyup(event) {
        return _this3.onDownButtonKeyUp(event);
       },
      };
     },
     formattedValue: function formattedValue() {
      var val = !this.d_value && !this.allowEmpty ? 0 : this.d_value;
      return this.formatValue(val);
     },
     getFormatter: function getFormatter() {
      return this.numberFormat;
     },
     dataP: function dataP9() {
      return f(_defineProperty$3(_defineProperty$3({invalid: this.$invalid, fluid: this.$fluid, filled: this.$variant === "filled"}, this.size, this.size), this.buttonLayout, this.showButtons && this.buttonLayout));
     },
    },
    components: {InputText: script$x, AngleUpIcon: script$f, AngleDownIcon: script$g, TimesIcon: script$O},
   };
   var _hoisted_1$V = ["data-p"];
   var _hoisted_2$i = ["data-p"];
   var _hoisted_3$f = ["disabled", "data-p"];
   var _hoisted_4$c = ["disabled", "data-p"];
   var _hoisted_5$9 = ["disabled", "data-p"];
   var _hoisted_6$8 = ["disabled", "data-p"];
   function render$I(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_InputText = resolveComponent("InputText");
    var _component_TimesIcon = resolveComponent("TimesIcon");
    return (
     openBlock(),
     createElementBlock(
      "span",
      mergeProps({class: _ctx.cx("root")}, _ctx.ptmi("root"), {"data-p": $options.dataP}),
      [
       createVNode(_component_InputText, {ref: "input", id: _ctx.inputId, name: _ctx.$formName, role: "spinbutton", class: normalizeClass([_ctx.cx("pcInputText"), _ctx.inputClass]), style: normalizeStyle(_ctx.inputStyle), defaultValue: $options.formattedValue, "aria-valuemin": _ctx.min, "aria-valuemax": _ctx.max, "aria-valuenow": _ctx.d_value, inputmode: _ctx.mode === "decimal" && !_ctx.minFractionDigits ? "numeric" : "decimal", disabled: _ctx.disabled, readonly: _ctx.readonly, placeholder: _ctx.placeholder, "aria-labelledby": _ctx.ariaLabelledby, "aria-label": _ctx.ariaLabel, required: _ctx.required, size: _ctx.size, invalid: _ctx.invalid, variant: _ctx.variant, onInput: $options.onUserInput, onKeydown: $options.onInputKeyDown, onKeypress: $options.onInputKeyPress, onPaste: $options.onPaste, onClick: $options.onInputClick, onFocus: $options.onInputFocus, onBlur: $options.onInputBlur, pt: _ctx.ptm("pcInputText"), unstyled: _ctx.unstyled, "data-p": $options.dataP}, null, 8, ["id", "name", "class", "style", "defaultValue", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "required", "size", "invalid", "variant", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled", "data-p"]),
       _ctx.showClear && _ctx.buttonLayout !== "vertical"
        ? renderSlot(_ctx.$slots, "clearicon", {key: 0, class: normalizeClass(_ctx.cx("clearIcon")), clearCallback: $options.onClearClick}, function () {
           return [createVNode(_component_TimesIcon, mergeProps({ref: "clearIcon", class: [_ctx.cx("clearIcon")], onClick: $options.onClearClick}, _ctx.ptm("clearIcon")), null, 16, ["class", "onClick"])];
          })
        : createCommentVNode("", true),
       _ctx.showButtons && _ctx.buttonLayout === "stacked"
        ? (openBlock(),
          createElementBlock(
           "span",
           mergeProps({key: 1, class: _ctx.cx("buttonGroup")}, _ctx.ptm("buttonGroup"), {"data-p": $options.dataP}),
           [
            renderSlot(_ctx.$slots, "incrementbutton", {listeners: $options.upButtonListeners}, function () {
             return [
              createElementVNode(
               "button",
               mergeProps({class: [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]}, toHandlers($options.upButtonListeners, true), {disabled: _ctx.disabled, tabindex: -1, "aria-hidden": "true", type: "button"}, _ctx.ptm("incrementButton"), {"data-p": $options.dataP}),
               [
                renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? "incrementicon" : "incrementbuttonicon", {}, function () {
                 return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({class: [_ctx.incrementIcon, _ctx.incrementButtonIcon]}, _ctx.ptm("incrementIcon"), {"data-pc-section": "incrementicon"}), null, 16, ["class"]))];
                }),
               ],
               16,
               _hoisted_3$f,
              ),
             ];
            }),
            renderSlot(_ctx.$slots, "decrementbutton", {listeners: $options.downButtonListeners}, function () {
             return [
              createElementVNode(
               "button",
               mergeProps({class: [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]}, toHandlers($options.downButtonListeners, true), {disabled: _ctx.disabled, tabindex: -1, "aria-hidden": "true", type: "button"}, _ctx.ptm("decrementButton"), {"data-p": $options.dataP}),
               [
                renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? "decrementicon" : "decrementbuttonicon", {}, function () {
                 return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({class: [_ctx.decrementIcon, _ctx.decrementButtonIcon]}, _ctx.ptm("decrementIcon"), {"data-pc-section": "decrementicon"}), null, 16, ["class"]))];
                }),
               ],
               16,
               _hoisted_4$c,
              ),
             ];
            }),
           ],
           16,
           _hoisted_2$i,
          ))
        : createCommentVNode("", true),
       renderSlot(_ctx.$slots, "incrementbutton", {listeners: $options.upButtonListeners}, function () {
        return [
         _ctx.showButtons && _ctx.buttonLayout !== "stacked"
          ? (openBlock(),
            createElementBlock(
             "button",
             mergeProps({key: 0, class: [_ctx.cx("incrementButton"), _ctx.incrementButtonClass]}, toHandlers($options.upButtonListeners, true), {disabled: _ctx.disabled, tabindex: -1, "aria-hidden": "true", type: "button"}, _ctx.ptm("incrementButton"), {"data-p": $options.dataP}),
             [
              renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? "incrementicon" : "incrementbuttonicon", {}, function () {
               return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? "span" : "AngleUpIcon"), mergeProps({class: [_ctx.incrementIcon, _ctx.incrementButtonIcon]}, _ctx.ptm("incrementIcon"), {"data-pc-section": "incrementicon"}), null, 16, ["class"]))];
              }),
             ],
             16,
             _hoisted_5$9,
            ))
          : createCommentVNode("", true),
        ];
       }),
       renderSlot(_ctx.$slots, "decrementbutton", {listeners: $options.downButtonListeners}, function () {
        return [
         _ctx.showButtons && _ctx.buttonLayout !== "stacked"
          ? (openBlock(),
            createElementBlock(
             "button",
             mergeProps({key: 0, class: [_ctx.cx("decrementButton"), _ctx.decrementButtonClass]}, toHandlers($options.downButtonListeners, true), {disabled: _ctx.disabled, tabindex: -1, "aria-hidden": "true", type: "button"}, _ctx.ptm("decrementButton"), {"data-p": $options.dataP}),
             [
              renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? "decrementicon" : "decrementbuttonicon", {}, function () {
               return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? "span" : "AngleDownIcon"), mergeProps({class: [_ctx.decrementIcon, _ctx.decrementButtonIcon]}, _ctx.ptm("decrementIcon"), {"data-pc-section": "decrementicon"}), null, 16, ["class"]))];
              }),
             ],
             16,
             _hoisted_6$8,
            ))
          : createCommentVNode("", true),
        ];
       }),
      ],
      16,
      _hoisted_1$V,
     )
    );
   }
   script$e.render = render$I;
   var script$d = {name: "AngleDoubleRightIcon", extends: script$P};
   function _toConsumableArray$6(r) {
    return _arrayWithoutHoles$6(r) || _iterableToArray$6(r) || _unsupportedIterableToArray$7(r) || _nonIterableSpread$6();
   }
   function _nonIterableSpread$6() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$7(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$7(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$7(r, a2) : void 0);
    }
   }
   function _iterableToArray$6(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$6(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$7(r);
   }
   function _arrayLikeToArray$7(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$H(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$6(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$d.render = render$H;
   var script$c = {name: "AngleLeftIcon", extends: script$P};
   function _toConsumableArray$5(r) {
    return _arrayWithoutHoles$5(r) || _iterableToArray$5(r) || _unsupportedIterableToArray$6(r) || _nonIterableSpread$5();
   }
   function _nonIterableSpread$5() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$6(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$6(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$6(r, a2) : void 0);
    }
   }
   function _iterableToArray$5(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$5(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$6(r);
   }
   function _arrayLikeToArray$6(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$G(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$5(_cache[0] || (_cache[0] = [createElementVNode("path", {d: "M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$c.render = render$G;
   var script$a$1 = {
    name: "BasePaginator",
    extends: script$Q,
    props: {totalRecords: {type: Number, default: 0}, rows: {type: Number, default: 0}, first: {type: Number, default: 0}, pageLinkSize: {type: Number, default: 5}, rowsPerPageOptions: {type: Array, default: null}, template: {type: [Object, String], default: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"}, currentPageReportTemplate: {type: null, default: "({currentPage} of {totalPages})"}, alwaysShow: {type: Boolean, default: true}},
    style: PaginatorStyle,
    provide: function provide20() {
     return {$pcPaginator: this, $parentInstance: this};
    },
   };
   var script$9$1 = {
    name: "CurrentPageReport",
    hostName: "Paginator",
    extends: script$Q,
    props: {pageCount: {type: Number, default: 0}, currentPage: {type: Number, default: 0}, page: {type: Number, default: 0}, first: {type: Number, default: 0}, rows: {type: Number, default: 0}, totalRecords: {type: Number, default: 0}, template: {type: String, default: "({currentPage} of {totalPages})"}},
    computed: {
     text: function text() {
      var text2 = this.template
       .replace("{currentPage}", this.currentPage)
       .replace("{totalPages}", this.pageCount)
       .replace("{first}", this.pageCount > 0 ? this.first + 1 : 0)
       .replace("{last}", Math.min(this.first + this.rows, this.totalRecords))
       .replace("{rows}", this.rows)
       .replace("{totalRecords}", this.totalRecords);
      return text2;
     },
    },
   };
   function render$9$1(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("span", mergeProps({class: _ctx.cx("current")}, _ctx.ptm("current")), toDisplayString$1($options.text), 17));
   }
   script$9$1.render = render$9$1;
   var script$8$1 = {
    name: "FirstPageLink",
    hostName: "Paginator",
    extends: script$Q,
    props: {template: {type: Function, default: null}},
    methods: {
     getPTOptions: function getPTOptions3(key) {
      return this.ptm(key, {context: {disabled: this.$attrs.disabled}});
     },
    },
    components: {AngleDoubleLeftIcon: script$m},
    directives: {ripple: Ripple},
   };
   function render$8$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return withDirectives((openBlock(), createElementBlock("button", mergeProps({class: _ctx.cx("first"), type: "button"}, $options.getPTOptions("first"), {"data-pc-group-section": "pagebutton"}), [(openBlock(), createBlock(resolveDynamicComponent($props.template || "AngleDoubleLeftIcon"), mergeProps({class: _ctx.cx("firstIcon")}, $options.getPTOptions("firstIcon")), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
   }
   script$8$1.render = render$8$1;
   var script$7$1 = {
    name: "JumpToPageDropdown",
    hostName: "Paginator",
    extends: script$Q,
    emits: ["page-change"],
    props: {page: Number, pageCount: Number, disabled: Boolean, templates: null},
    methods: {
     onChange: function onChange2(value2) {
      this.$emit("page-change", value2);
     },
    },
    computed: {
     pageOptions: function pageOptions() {
      var opts = [];
      for (var i2 = 0; i2 < this.pageCount; i2++) {
       opts.push({label: String(i2 + 1), value: i2});
      }
      return opts;
     },
    },
    components: {JTPSelect: script$h},
   };
   function render$7$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_JTPSelect = resolveComponent("JTPSelect");
    return (
     openBlock(),
     createBlock(
      _component_JTPSelect,
      {
       modelValue: $props.page,
       options: $options.pageOptions,
       optionLabel: "label",
       optionValue: "value",
       "onUpdate:modelValue":
        _cache[0] ||
        (_cache[0] = function ($event) {
         return $options.onChange($event);
        }),
       class: normalizeClass(_ctx.cx("pcJumpToPageDropdown")),
       disabled: $props.disabled,
       unstyled: _ctx.unstyled,
       pt: _ctx.ptm("pcJumpToPageDropdown"),
       "data-pc-group-section": "pagedropdown",
      },
      createSlots({_: 2}, [
       $props.templates["jumptopagedropdownicon"]
        ? {
           name: "dropdownicon",
           fn: withCtx(function (slotProps) {
            return [(openBlock(), createBlock(resolveDynamicComponent($props.templates["jumptopagedropdownicon"]), {class: normalizeClass(slotProps["class"])}, null, 8, ["class"]))];
           }),
           key: "0",
          }
        : void 0,
      ]),
      1032,
      ["modelValue", "options", "class", "disabled", "unstyled", "pt"],
     )
    );
   }
   script$7$1.render = render$7$1;
   var script$6$1 = {
    name: "JumpToPageInput",
    hostName: "Paginator",
    extends: script$Q,
    inheritAttrs: false,
    emits: ["page-change"],
    props: {page: Number, pageCount: Number, disabled: Boolean},
    data: function data11() {
     return {d_page: this.page};
    },
    watch: {
     page: function page2(newValue) {
      this.d_page = newValue;
     },
    },
    methods: {
     onChange: function onChange3(value2) {
      if (value2 !== this.page) {
       this.d_page = value2;
       this.$emit("page-change", value2 - 1);
      }
     },
    },
    computed: {
     inputArialabel: function inputArialabel() {
      return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.jumpToPageInputLabel : void 0;
     },
    },
    components: {JTPInput: script$e},
   };
   function render$6$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_JTPInput = resolveComponent("JTPInput");
    return (openBlock(), createBlock(_component_JTPInput, {ref: "jtpInput", modelValue: $data.d_page, class: normalizeClass(_ctx.cx("pcJumpToPageInputText")), "aria-label": $options.inputArialabel, disabled: $props.disabled, "onUpdate:modelValue": $options.onChange, unstyled: _ctx.unstyled, pt: _ctx.ptm("pcJumpToPageInputText")}, null, 8, ["modelValue", "class", "aria-label", "disabled", "onUpdate:modelValue", "unstyled", "pt"]));
   }
   script$6$1.render = render$6$1;
   var script$5$1 = {
    name: "LastPageLink",
    hostName: "Paginator",
    extends: script$Q,
    props: {template: {type: Function, default: null}},
    methods: {
     getPTOptions: function getPTOptions4(key) {
      return this.ptm(key, {context: {disabled: this.$attrs.disabled}});
     },
    },
    components: {AngleDoubleRightIcon: script$d},
    directives: {ripple: Ripple},
   };
   function render$5$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return withDirectives((openBlock(), createElementBlock("button", mergeProps({class: _ctx.cx("last"), type: "button"}, $options.getPTOptions("last"), {"data-pc-group-section": "pagebutton"}), [(openBlock(), createBlock(resolveDynamicComponent($props.template || "AngleDoubleRightIcon"), mergeProps({class: _ctx.cx("lastIcon")}, $options.getPTOptions("lastIcon")), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
   }
   script$5$1.render = render$5$1;
   var script$4$1 = {
    name: "NextPageLink",
    hostName: "Paginator",
    extends: script$Q,
    props: {template: {type: Function, default: null}},
    methods: {
     getPTOptions: function getPTOptions5(key) {
      return this.ptm(key, {context: {disabled: this.$attrs.disabled}});
     },
    },
    components: {AngleRightIcon: script$t},
    directives: {ripple: Ripple},
   };
   function render$4$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return withDirectives((openBlock(), createElementBlock("button", mergeProps({class: _ctx.cx("next"), type: "button"}, $options.getPTOptions("next"), {"data-pc-group-section": "pagebutton"}), [(openBlock(), createBlock(resolveDynamicComponent($props.template || "AngleRightIcon"), mergeProps({class: _ctx.cx("nextIcon")}, $options.getPTOptions("nextIcon")), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
   }
   script$4$1.render = render$4$1;
   var script$3$1 = {
    name: "PageLinks",
    hostName: "Paginator",
    extends: script$Q,
    inheritAttrs: false,
    emits: ["click"],
    props: {value: Array, page: Number},
    methods: {
     getPTOptions: function getPTOptions6(pageLink, key) {
      return this.ptm(key, {context: {active: pageLink === this.page}});
     },
     onPageLinkClick: function onPageLinkClick(event, pageLink) {
      this.$emit("click", {originalEvent: event, value: pageLink});
     },
     ariaPageLabel: function ariaPageLabel(value2) {
      return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value2) : void 0;
     },
    },
    directives: {ripple: Ripple},
   };
   var _hoisted_1$U = ["aria-label", "aria-current", "onClick", "data-p-active"];
   function render$3$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return (
     openBlock(),
     createElementBlock(
      "span",
      mergeProps({class: _ctx.cx("pages")}, _ctx.ptm("pages")),
      [
       (openBlock(true),
       createElementBlock(
        Fragment,
        null,
        renderList($props.value, function (pageLink) {
         return withDirectives(
          (openBlock(),
          createElementBlock(
           "button",
           mergeProps(
            {
             key: pageLink,
             class: _ctx.cx("page", {pageLink}),
             type: "button",
             "aria-label": $options.ariaPageLabel(pageLink),
             "aria-current": pageLink - 1 === $props.page ? "page" : void 0,
             onClick: function onClick2($event) {
              return $options.onPageLinkClick($event, pageLink);
             },
            },
            {ref_for: true},
            $options.getPTOptions(pageLink - 1, "page"),
            {"data-p-active": pageLink - 1 === $props.page},
           ),
           [createTextVNode(toDisplayString$1(pageLink), 1)],
           16,
           _hoisted_1$U,
          )),
          [[_directive_ripple]],
         );
        }),
        128,
       )),
      ],
      16,
     )
    );
   }
   script$3$1.render = render$3$1;
   var script$2$2 = {
    name: "PrevPageLink",
    hostName: "Paginator",
    extends: script$Q,
    props: {template: {type: Function, default: null}},
    methods: {
     getPTOptions: function getPTOptions7(key) {
      return this.ptm(key, {context: {disabled: this.$attrs.disabled}});
     },
    },
    components: {AngleLeftIcon: script$c},
    directives: {ripple: Ripple},
   };
   function render$2$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return withDirectives((openBlock(), createElementBlock("button", mergeProps({class: _ctx.cx("prev"), type: "button"}, $options.getPTOptions("prev"), {"data-pc-group-section": "pagebutton"}), [(openBlock(), createBlock(resolveDynamicComponent($props.template || "AngleLeftIcon"), mergeProps({class: _ctx.cx("prevIcon")}, $options.getPTOptions("prevIcon")), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
   }
   script$2$2.render = render$2$1;
   var script$1$8 = {
    name: "RowsPerPageDropdown",
    hostName: "Paginator",
    extends: script$Q,
    emits: ["rows-change"],
    props: {options: Array, rows: Number, disabled: Boolean, templates: null},
    methods: {
     onChange: function onChange4(value2) {
      this.$emit("rows-change", value2);
     },
    },
    computed: {
     rowsOptions: function rowsOptions() {
      var opts = [];
      if (this.options) {
       for (var i2 = 0; i2 < this.options.length; i2++) {
        opts.push({label: String(this.options[i2]), value: this.options[i2]});
       }
      }
      return opts;
     },
    },
    components: {RPPSelect: script$h},
   };
   function render$1$2(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_RPPSelect = resolveComponent("RPPSelect");
    return (
     openBlock(),
     createBlock(
      _component_RPPSelect,
      {
       modelValue: $props.rows,
       options: $options.rowsOptions,
       optionLabel: "label",
       optionValue: "value",
       "onUpdate:modelValue":
        _cache[0] ||
        (_cache[0] = function ($event) {
         return $options.onChange($event);
        }),
       class: normalizeClass(_ctx.cx("pcRowPerPageDropdown")),
       disabled: $props.disabled,
       unstyled: _ctx.unstyled,
       pt: _ctx.ptm("pcRowPerPageDropdown"),
       "data-pc-group-section": "pagedropdown",
      },
      createSlots({_: 2}, [
       $props.templates["rowsperpagedropdownicon"]
        ? {
           name: "dropdownicon",
           fn: withCtx(function (slotProps) {
            return [(openBlock(), createBlock(resolveDynamicComponent($props.templates["rowsperpagedropdownicon"]), {class: normalizeClass(slotProps["class"])}, null, 8, ["class"]))];
           }),
           key: "0",
          }
        : void 0,
      ]),
      1032,
      ["modelValue", "options", "class", "disabled", "unstyled", "pt"],
     )
    );
   }
   script$1$8.render = render$1$2;
   function _typeof$3(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$3 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$3(o)
    );
   }
   function _slicedToArray(r, e) {
    return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$5(r, e) || _nonIterableRest();
   }
   function _nonIterableRest() {
    throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$5(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$5(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$5(r, a2) : void 0);
    }
   }
   function _arrayLikeToArray$5(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function _iterableToArrayLimit(r, l2) {
    var t2 = null == r ? null : ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (null != t2) {
     var e,
      n,
      i2,
      u,
      a2 = [],
      f2 = true,
      o = false;
     try {
      if (((i2 = (t2 = t2.call(r)).next), 0 === l2)) {
       if (Object(t2) !== t2) return;
       f2 = false;
      } else for (; !(f2 = (e = i2.call(t2)).done) && (a2.push(e.value), a2.length !== l2); f2 = true);
     } catch (r2) {
      ((o = true), (n = r2));
     } finally {
      try {
       if (!f2 && null != t2["return"] && ((u = t2["return"]()), Object(u) !== u)) return;
      } finally {
       if (o) throw n;
      }
     }
     return a2;
    }
   }
   function _arrayWithHoles(r) {
    if (Array.isArray(r)) return r;
   }
   var script$b = {
    name: "Paginator",
    extends: script$a$1,
    inheritAttrs: false,
    emits: ["update:first", "update:rows", "page"],
    data: function data12() {
     return {d_first: this.first, d_rows: this.rows};
    },
    watch: {
     first: function first2(newValue) {
      this.d_first = newValue;
     },
     rows: function rows(newValue) {
      this.d_rows = newValue;
     },
     totalRecords: function totalRecords(newValue) {
      if (this.page > 0 && newValue && this.d_first >= newValue) {
       this.changePage(this.pageCount - 1);
      }
     },
    },
    mounted: function mounted12() {
     this.createStyle();
    },
    methods: {
     changePage: function changePage(p2) {
      var pc = this.pageCount;
      if (p2 >= 0 && p2 < pc) {
       this.d_first = this.d_rows * p2;
       var state = {page: p2, first: this.d_first, rows: this.d_rows, pageCount: pc};
       this.$emit("update:first", this.d_first);
       this.$emit("update:rows", this.d_rows);
       this.$emit("page", state);
      }
     },
     changePageToFirst: function changePageToFirst(event) {
      if (!this.isFirstPage) {
       this.changePage(0);
      }
      event.preventDefault();
     },
     changePageToPrev: function changePageToPrev(event) {
      this.changePage(this.page - 1);
      event.preventDefault();
     },
     changePageLink: function changePageLink(event) {
      this.changePage(event.value - 1);
      event.originalEvent.preventDefault();
     },
     changePageToNext: function changePageToNext(event) {
      this.changePage(this.page + 1);
      event.preventDefault();
     },
     changePageToLast: function changePageToLast(event) {
      if (!this.isLastPage) {
       this.changePage(this.pageCount - 1);
      }
      event.preventDefault();
     },
     onRowChange: function onRowChange(value2) {
      this.d_rows = value2;
      this.changePage(this.page);
     },
     createStyle: function createStyle3() {
      var _this = this;
      if (this.hasBreakpoints() && !this.isUnstyled) {
       var _this$$primevue;
       this.styleElement = document.createElement("style");
       this.styleElement.type = "text/css";
       _t(this.styleElement, "nonce", (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);
       document.body.appendChild(this.styleElement);
       var innerHTML = "";
       var keys = Object.keys(this.template);
       var sortedBreakpoints = {};
       keys
        .sort(function (a2, b2) {
         return parseInt(a2) - parseInt(b2);
        })
        .forEach(function (key2) {
         sortedBreakpoints[key2] = _this.template[key2];
        });
       for (var _i = 0, _Object$entries = Object.entries(Object.entries(sortedBreakpoints)); _i < _Object$entries.length; _i++) {
        var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
         index = _Object$entries$_i[0],
         _Object$entries$_i$ = _slicedToArray(_Object$entries$_i[1], 1),
         key = _Object$entries$_i$[0];
        var minValue = void 0,
         calculatedMinValue = void 0;
        if (key !== "default" && typeof Object.keys(sortedBreakpoints)[index - 1] === "string") {
         calculatedMinValue = Number(Object.keys(sortedBreakpoints)[index - 1].slice(0, -2)) + 1 + "px";
        } else {
         calculatedMinValue = Object.keys(sortedBreakpoints)[index - 1];
        }
        minValue = Object.entries(sortedBreakpoints)[index - 1] ? "and (min-width:".concat(calculatedMinValue, ")") : "";
        if (key === "default") {
         innerHTML += "\n                            @media screen ".concat(minValue, " {\n                                .p-paginator[").concat(this.$attrSelector, "],\n                                    display: flex;\n                                }\n                            }\n                        ");
        } else {
         innerHTML += "\n.p-paginator-".concat(key, " {\n    display: none;\n}\n@media screen ").concat(minValue, " and (max-width: ").concat(key, ") {\n    .p-paginator-").concat(key, " {\n        display: flex;\n    }\n\n    .p-paginator-default{\n        display: none;\n    }\n}\n                    ");
        }
       }
       this.styleElement.innerHTML = innerHTML;
      }
     },
     hasBreakpoints: function hasBreakpoints() {
      return _typeof$3(this.template) === "object";
     },
     getAriaLabel: function getAriaLabel(labelType) {
      return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria[labelType] : void 0;
     },
    },
    computed: {
     templateItems: function templateItems() {
      var keys = {};
      if (this.hasBreakpoints()) {
       keys = this.template;
       if (!keys["default"]) {
        keys["default"] = "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown";
       }
       for (var item2 in keys) {
        keys[item2] = this.template[item2].split(" ").map(function (value2) {
         return value2.trim();
        });
       }
       return keys;
      }
      keys["default"] = this.template.split(" ").map(function (value2) {
       return value2.trim();
      });
      return keys;
     },
     page: function page3() {
      return Math.floor(this.d_first / this.d_rows);
     },
     pageCount: function pageCount() {
      return Math.ceil(this.totalRecords / this.d_rows);
     },
     isFirstPage: function isFirstPage() {
      return this.page === 0;
     },
     isLastPage: function isLastPage() {
      return this.page === this.pageCount - 1;
     },
     calculatePageLinkBoundaries: function calculatePageLinkBoundaries() {
      var numberOfPages = this.pageCount;
      var visiblePages = Math.min(this.pageLinkSize, numberOfPages);
      var start = Math.max(0, Math.ceil(this.page - visiblePages / 2));
      var end = Math.min(numberOfPages - 1, start + visiblePages - 1);
      var delta = this.pageLinkSize - (end - start + 1);
      start = Math.max(0, start - delta);
      return [start, end];
     },
     pageLinks: function pageLinks() {
      var pageLinks2 = [];
      var boundaries = this.calculatePageLinkBoundaries;
      var start = boundaries[0];
      var end = boundaries[1];
      for (var i2 = start; i2 <= end; i2++) {
       pageLinks2.push(i2 + 1);
      }
      return pageLinks2;
     },
     currentState: function currentState() {
      return {page: this.page, first: this.d_first, rows: this.d_rows};
     },
     empty: function empty() {
      return this.pageCount === 0;
     },
     currentPage: function currentPage() {
      return this.pageCount > 0 ? this.page + 1 : 0;
     },
     last: function last2() {
      return Math.min(this.d_first + this.rows, this.totalRecords);
     },
    },
    components: {CurrentPageReport: script$9$1, FirstPageLink: script$8$1, LastPageLink: script$5$1, NextPageLink: script$4$1, PageLinks: script$3$1, PrevPageLink: script$2$2, RowsPerPageDropdown: script$1$8, JumpToPageDropdown: script$7$1, JumpToPageInput: script$6$1},
   };
   function render$F(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_FirstPageLink = resolveComponent("FirstPageLink");
    var _component_PrevPageLink = resolveComponent("PrevPageLink");
    var _component_NextPageLink = resolveComponent("NextPageLink");
    var _component_LastPageLink = resolveComponent("LastPageLink");
    var _component_PageLinks = resolveComponent("PageLinks");
    var _component_CurrentPageReport = resolveComponent("CurrentPageReport");
    var _component_RowsPerPageDropdown = resolveComponent("RowsPerPageDropdown");
    var _component_JumpToPageDropdown = resolveComponent("JumpToPageDropdown");
    var _component_JumpToPageInput = resolveComponent("JumpToPageInput");
    return (_ctx.alwaysShow ? true : $options.pageLinks && $options.pageLinks.length > 1)
     ? (openBlock(),
       createElementBlock(
        "nav",
        normalizeProps(mergeProps({key: 0}, _ctx.ptmi("paginatorContainer"))),
        [
         (openBlock(true),
         createElementBlock(
          Fragment,
          null,
          renderList($options.templateItems, function (value2, key) {
           return (
            openBlock(),
            createElementBlock(
             "div",
             mergeProps({key, ref_for: true, ref: "paginator", class: _ctx.cx("paginator", {key})}, {ref_for: true}, _ctx.ptm("root")),
             [
              _ctx.$slots.container
               ? renderSlot(_ctx.$slots, "container", {key: 0, first: $data.d_first + 1, last: $options.last, rows: $data.d_rows, page: $options.page, pageCount: $options.pageCount, pageLinks: $options.pageLinks, totalRecords: _ctx.totalRecords, firstPageCallback: $options.changePageToFirst, lastPageCallback: $options.changePageToLast, prevPageCallback: $options.changePageToPrev, nextPageCallback: $options.changePageToNext, rowChangeCallback: $options.onRowChange, changePageCallback: $options.changePage})
               : (openBlock(),
                 createElementBlock(
                  Fragment,
                  {key: 1},
                  [
                   _ctx.$slots.start ? (openBlock(), createElementBlock("div", mergeProps({key: 0, class: _ctx.cx("contentStart")}, {ref_for: true}, _ctx.ptm("contentStart")), [renderSlot(_ctx.$slots, "start", {state: $options.currentState})], 16)) : createCommentVNode("", true),
                   createElementVNode(
                    "div",
                    mergeProps({class: _ctx.cx("content")}, {ref_for: true}, _ctx.ptm("content")),
                    [
                     (openBlock(true),
                     createElementBlock(
                      Fragment,
                      null,
                      renderList(value2, function (item2) {
                       return (
                        openBlock(),
                        createElementBlock(
                         Fragment,
                         {key: item2},
                         [
                          item2 === "FirstPageLink"
                           ? (openBlock(),
                             createBlock(
                              _component_FirstPageLink,
                              {
                               key: 0,
                               "aria-label": $options.getAriaLabel("firstPageLabel"),
                               template: _ctx.$slots.firsticon || _ctx.$slots.firstpagelinkicon,
                               onClick:
                                _cache[0] ||
                                (_cache[0] = function ($event) {
                                 return $options.changePageToFirst($event);
                                }),
                               disabled: $options.isFirstPage || $options.empty,
                               unstyled: _ctx.unstyled,
                               pt: _ctx.pt,
                              },
                              null,
                              8,
                              ["aria-label", "template", "disabled", "unstyled", "pt"],
                             ))
                           : item2 === "PrevPageLink"
                             ? (openBlock(),
                               createBlock(
                                _component_PrevPageLink,
                                {
                                 key: 1,
                                 "aria-label": $options.getAriaLabel("prevPageLabel"),
                                 template: _ctx.$slots.previcon || _ctx.$slots.prevpagelinkicon,
                                 onClick:
                                  _cache[1] ||
                                  (_cache[1] = function ($event) {
                                   return $options.changePageToPrev($event);
                                  }),
                                 disabled: $options.isFirstPage || $options.empty,
                                 unstyled: _ctx.unstyled,
                                 pt: _ctx.pt,
                                },
                                null,
                                8,
                                ["aria-label", "template", "disabled", "unstyled", "pt"],
                               ))
                             : item2 === "NextPageLink"
                               ? (openBlock(),
                                 createBlock(
                                  _component_NextPageLink,
                                  {
                                   key: 2,
                                   "aria-label": $options.getAriaLabel("nextPageLabel"),
                                   template: _ctx.$slots.nexticon || _ctx.$slots.nextpagelinkicon,
                                   onClick:
                                    _cache[2] ||
                                    (_cache[2] = function ($event) {
                                     return $options.changePageToNext($event);
                                    }),
                                   disabled: $options.isLastPage || $options.empty,
                                   unstyled: _ctx.unstyled,
                                   pt: _ctx.pt,
                                  },
                                  null,
                                  8,
                                  ["aria-label", "template", "disabled", "unstyled", "pt"],
                                 ))
                               : item2 === "LastPageLink"
                                 ? (openBlock(),
                                   createBlock(
                                    _component_LastPageLink,
                                    {
                                     key: 3,
                                     "aria-label": $options.getAriaLabel("lastPageLabel"),
                                     template: _ctx.$slots.lasticon || _ctx.$slots.lastpagelinkicon,
                                     onClick:
                                      _cache[3] ||
                                      (_cache[3] = function ($event) {
                                       return $options.changePageToLast($event);
                                      }),
                                     disabled: $options.isLastPage || $options.empty,
                                     unstyled: _ctx.unstyled,
                                     pt: _ctx.pt,
                                    },
                                    null,
                                    8,
                                    ["aria-label", "template", "disabled", "unstyled", "pt"],
                                   ))
                                 : item2 === "PageLinks"
                                   ? (openBlock(),
                                     createBlock(
                                      _component_PageLinks,
                                      {
                                       key: 4,
                                       "aria-label": $options.getAriaLabel("pageLabel"),
                                       value: $options.pageLinks,
                                       page: $options.page,
                                       onClick:
                                        _cache[4] ||
                                        (_cache[4] = function ($event) {
                                         return $options.changePageLink($event);
                                        }),
                                       unstyled: _ctx.unstyled,
                                       pt: _ctx.pt,
                                      },
                                      null,
                                      8,
                                      ["aria-label", "value", "page", "unstyled", "pt"],
                                     ))
                                   : item2 === "CurrentPageReport"
                                     ? (openBlock(), createBlock(_component_CurrentPageReport, {key: 5, "aria-live": "polite", template: _ctx.currentPageReportTemplate, currentPage: $options.currentPage, page: $options.page, pageCount: $options.pageCount, first: $data.d_first, rows: $data.d_rows, totalRecords: _ctx.totalRecords, unstyled: _ctx.unstyled, pt: _ctx.pt}, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "unstyled", "pt"]))
                                     : item2 === "RowsPerPageDropdown" && _ctx.rowsPerPageOptions
                                       ? (openBlock(),
                                         createBlock(
                                          _component_RowsPerPageDropdown,
                                          {
                                           key: 6,
                                           "aria-label": $options.getAriaLabel("rowsPerPageLabel"),
                                           rows: $data.d_rows,
                                           options: _ctx.rowsPerPageOptions,
                                           onRowsChange:
                                            _cache[5] ||
                                            (_cache[5] = function ($event) {
                                             return $options.onRowChange($event);
                                            }),
                                           disabled: $options.empty,
                                           templates: _ctx.$slots,
                                           unstyled: _ctx.unstyled,
                                           pt: _ctx.pt,
                                          },
                                          null,
                                          8,
                                          ["aria-label", "rows", "options", "disabled", "templates", "unstyled", "pt"],
                                         ))
                                       : item2 === "JumpToPageDropdown"
                                         ? (openBlock(),
                                           createBlock(
                                            _component_JumpToPageDropdown,
                                            {
                                             key: 7,
                                             "aria-label": $options.getAriaLabel("jumpToPageDropdownLabel"),
                                             page: $options.page,
                                             pageCount: $options.pageCount,
                                             onPageChange:
                                              _cache[6] ||
                                              (_cache[6] = function ($event) {
                                               return $options.changePage($event);
                                              }),
                                             disabled: $options.empty,
                                             templates: _ctx.$slots,
                                             unstyled: _ctx.unstyled,
                                             pt: _ctx.pt,
                                            },
                                            null,
                                            8,
                                            ["aria-label", "page", "pageCount", "disabled", "templates", "unstyled", "pt"],
                                           ))
                                         : item2 === "JumpToPageInput"
                                           ? (openBlock(),
                                             createBlock(
                                              _component_JumpToPageInput,
                                              {
                                               key: 8,
                                               page: $options.currentPage,
                                               onPageChange:
                                                _cache[7] ||
                                                (_cache[7] = function ($event) {
                                                 return $options.changePage($event);
                                                }),
                                               disabled: $options.empty,
                                               unstyled: _ctx.unstyled,
                                               pt: _ctx.pt,
                                              },
                                              null,
                                              8,
                                              ["page", "disabled", "unstyled", "pt"],
                                             ))
                                           : createCommentVNode("", true),
                         ],
                         64,
                        )
                       );
                      }),
                      128,
                     )),
                    ],
                    16,
                   ),
                   _ctx.$slots.end ? (openBlock(), createElementBlock("div", mergeProps({key: 1, class: _ctx.cx("contentEnd")}, {ref_for: true}, _ctx.ptm("contentEnd")), [renderSlot(_ctx.$slots, "end", {state: $options.currentState})], 16)) : createCommentVNode("", true),
                  ],
                  64,
                 )),
             ],
             16,
            )
           );
          }),
          128,
         )),
        ],
        16,
       ))
     : createCommentVNode("", true);
   }
   script$b.render = render$F;
   var style$7 = '\\n .p-progressbar{background:dt("progressbar.background");border-radius:dt("progressbar.border.radius");display:block;height:dt("progressbar.height");overflow:hidden;position:relative}.p-progressbar-value{background:dt("progressbar.value.background");margin:0}.p-progressbar-label{color:dt("progressbar.label.color");font-size:dt("progressbar.label.font.size");font-weight:dt("progressbar.label.font.weight")}.p-progressbar-determinate .p-progressbar-value{align-items:center;display:none;display:flex;height:100%;justify-content:center;overflow:hidden;position:absolute;transition:width 1s ease-in-out;width:0}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-indeterminate .p-progressbar-value:before{animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after,.p-progressbar-indeterminate .p-progressbar-value:before{background:inherit;content:"";inset-block-end:0;inset-block-start:0;inset-inline-start:0;position:absolute;will-change:inset-inline-start,inset-inline-end}.p-progressbar-indeterminate .p-progressbar-value:after{animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{inset-inline-end:100%;inset-inline-start:-35%}60%{inset-inline-end:-90%;inset-inline-start:100%}to{inset-inline-end:-90%;inset-inline-start:100%}}@-webkit-keyframes p-progressbar-indeterminate-anim{0%{inset-inline-end:100%;inset-inline-start:-35%}60%{inset-inline-end:-90%;inset-inline-start:100%}to{inset-inline-end:-90%;inset-inline-start:100%}}@keyframes p-progressbar-indeterminate-anim-short{0%{inset-inline-end:100%;inset-inline-start:-200%}60%{inset-inline-end:-8%;inset-inline-start:107%}to{inset-inline-end:-8%;inset-inline-start:107%}}@-webkit-keyframes p-progressbar-indeterminate-anim-short{0%{inset-inline-end:100%;inset-inline-start:-200%}60%{inset-inline-end:-8%;inset-inline-start:107%}to{inset-inline-end:-8%;inset-inline-start:107%}}';
   var classes$7 = {
    root: function root11(_ref) {
     var instance = _ref.instance;
     return ["p-progressbar p-component", {"p-progressbar-determinate": instance.determinate, "p-progressbar-indeterminate": instance.indeterminate}];
    },
    value: "p-progressbar-value",
    label: "p-progressbar-label",
   };
   var ProgressBarStyle = BaseStyle.extend({name: "progressbar", style: style$7, classes: classes$7});
   var script$1$7 = {
    name: "BaseProgressBar",
    extends: script$Q,
    props: {value: {type: Number, default: null}, mode: {type: String, default: "determinate"}, showValue: {type: Boolean, default: true}},
    style: ProgressBarStyle,
    provide: function provide21() {
     return {$pcProgressBar: this, $parentInstance: this};
    },
   };
   var script$a = {
    name: "ProgressBar",
    extends: script$1$7,
    inheritAttrs: false,
    computed: {
     progressStyle: function progressStyle() {
      return {width: this.value + "%", display: "flex"};
     },
     indeterminate: function indeterminate2() {
      return this.mode === "indeterminate";
     },
     determinate: function determinate() {
      return this.mode === "determinate";
     },
     dataP: function dataP10() {
      return f({determinate: this.determinate, indeterminate: this.indeterminate});
     },
    },
   };
   var _hoisted_1$T = ["aria-valuenow", "data-p"];
   var _hoisted_2$h = ["data-p"];
   var _hoisted_3$e = ["data-p"];
   var _hoisted_4$b = ["data-p"];
   function render$E(_ctx, _cache, $props, $setup, $data, $options) {
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({role: "progressbar", class: _ctx.cx("root"), "aria-valuemin": "0", "aria-valuenow": _ctx.value, "aria-valuemax": "100", "data-p": $options.dataP}, _ctx.ptmi("root")),
      [
       $options.determinate
        ? (openBlock(),
          createElementBlock(
           "div",
           mergeProps({key: 0, class: _ctx.cx("value"), style: $options.progressStyle, "data-p": $options.dataP}, _ctx.ptm("value")),
           [
            _ctx.value != null && _ctx.value !== 0 && _ctx.showValue
             ? (openBlock(),
               createElementBlock(
                "div",
                mergeProps({key: 0, class: _ctx.cx("label"), "data-p": $options.dataP}, _ctx.ptm("label")),
                [
                 renderSlot(_ctx.$slots, "default", {}, function () {
                  return [createTextVNode(toDisplayString$1(_ctx.value + "%"), 1)];
                 }),
                ],
                16,
                _hoisted_3$e,
               ))
             : createCommentVNode("", true),
           ],
           16,
           _hoisted_2$h,
          ))
        : $options.indeterminate
          ? (openBlock(), createElementBlock("div", mergeProps({key: 1, class: _ctx.cx("value"), "data-p": $options.dataP}, _ctx.ptm("value")), null, 16, _hoisted_4$b))
          : createCommentVNode("", true),
      ],
      16,
      _hoisted_1$T,
     )
    );
   }
   script$a.render = render$E;
   var script$9 = {name: "EyeIcon", extends: script$P};
   function _toConsumableArray$4(r) {
    return _arrayWithoutHoles$4(r) || _iterableToArray$4(r) || _unsupportedIterableToArray$4(r) || _nonIterableSpread$4();
   }
   function _nonIterableSpread$4() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$4(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$4(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$4(r, a2) : void 0);
    }
   }
   function _iterableToArray$4(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$4(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$4(r);
   }
   function _arrayLikeToArray$4(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$D(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$4(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$9.render = render$D;
   var style$6 = '\\n .p-toggleswitch{display:inline-block;height:dt("toggleswitch.height");width:dt("toggleswitch.width")}.p-toggleswitch-input{appearance:none;border-radius:dt("toggleswitch.border.radius");cursor:pointer;height:100%;inset-inline-start:0;margin:0;opacity:0;outline:0 none;padding:0;position:absolute;top:0;width:100%;z-index:1}.p-toggleswitch-slider{background:dt("toggleswitch.background");border:dt("toggleswitch.border.width") solid dt("toggleswitch.border.color");border-radius:dt("toggleswitch.border.radius");box-shadow:dt("toggleswitch.shadow");cursor:pointer;height:100%;outline-color:transparent;transition:background dt("toggleswitch.transition.duration"),color dt("toggleswitch.transition.duration"),border-color dt("toggleswitch.transition.duration"),outline-color dt("toggleswitch.transition.duration"),box-shadow dt("toggleswitch.transition.duration");width:100%}.p-toggleswitch-handle{align-items:center;background:dt("toggleswitch.handle.background");border-radius:dt("toggleswitch.handle.border.radius");color:dt("toggleswitch.handle.color");display:flex;height:dt("toggleswitch.handle.size");inset-inline-start:dt("toggleswitch.gap");justify-content:center;margin-block-start:calc(dt("toggleswitch.handle.size")/2*-1);position:absolute;top:50%;transition:background dt("toggleswitch.transition.duration"),color dt("toggleswitch.transition.duration"),inset-inline-start dt("toggleswitch.slide.duration"),box-shadow dt("toggleswitch.slide.duration");width:dt("toggleswitch.handle.size")}.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider{background:dt("toggleswitch.checked.background");border-color:dt("toggleswitch.checked.border.color")}.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle{background:dt("toggleswitch.handle.checked.background");color:dt("toggleswitch.handle.checked.color");inset-inline-start:calc(dt("toggleswitch.width") - dt("toggleswitch.handle.size") - dt("toggleswitch.gap"))}.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider{background:dt("toggleswitch.hover.background");border-color:dt("toggleswitch.hover.border.color")}.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle{background:dt("toggleswitch.handle.hover.background");color:dt("toggleswitch.handle.hover.color")}.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider{background:dt("toggleswitch.checked.hover.background");border-color:dt("toggleswitch.checked.hover.border.color")}.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle{background:dt("toggleswitch.handle.checked.hover.background");color:dt("toggleswitch.handle.checked.hover.color")}.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider{box-shadow:dt("toggleswitch.focus.ring.shadow");outline:dt("toggleswitch.focus.ring.color");outline-offset:dt("toggleswitch.focus.ring.offset")}.p-toggleswitch.p-invalid>.p-toggleswitch-slider{border-color:dt("toggleswitch.invalid.border.color")}.p-toggleswitch.p-disabled{opacity:1}.p-toggleswitch.p-disabled .p-toggleswitch-slider{background:dt("toggleswitch.disabled.background")}.p-toggleswitch.p-disabled .p-toggleswitch-handle{background:dt("toggleswitch.handle.disabled.background")}';
   var inlineStyles$1 = {root: {position: "relative"}};
   var classes$6 = {
    root: function root12(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-toggleswitch p-component", {"p-toggleswitch-checked": instance.checked, "p-disabled": props2.disabled, "p-invalid": instance.$invalid}];
    },
    input: "p-toggleswitch-input",
    slider: "p-toggleswitch-slider",
    handle: "p-toggleswitch-handle",
   };
   var ToggleSwitchStyle = BaseStyle.extend({name: "toggleswitch", style: style$6, classes: classes$6, inlineStyles: inlineStyles$1});
   var script$1$6 = {
    name: "BaseToggleSwitch",
    extends: script$z,
    props: {trueValue: {type: null, default: true}, falseValue: {type: null, default: false}, readonly: {type: Boolean, default: false}, tabindex: {type: Number, default: null}, inputId: {type: String, default: null}, inputClass: {type: [String, Object], default: null}, inputStyle: {type: Object, default: null}, ariaLabelledby: {type: String, default: null}, ariaLabel: {type: String, default: null}},
    style: ToggleSwitchStyle,
    provide: function provide22() {
     return {$pcToggleSwitch: this, $parentInstance: this};
    },
   };
   var script$8 = {
    name: "ToggleSwitch",
    extends: script$1$6,
    inheritAttrs: false,
    emits: ["change", "focus", "blur"],
    methods: {
     getPTOptions: function getPTOptions8(key) {
      var _ptm = key === "root" ? this.ptmi : this.ptm;
      return _ptm(key, {context: {checked: this.checked, disabled: this.disabled}});
     },
     onChange: function onChange5(event) {
      if (!this.disabled && !this.readonly) {
       var newValue = this.checked ? this.falseValue : this.trueValue;
       this.writeValue(newValue, event);
       this.$emit("change", event);
      }
     },
     onFocus: function onFocus4(event) {
      this.$emit("focus", event);
     },
     onBlur: function onBlur3(event) {
      var _this$formField$onBlu, _this$formField;
      this.$emit("blur", event);
      (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
     },
    },
    computed: {
     checked: function checked2() {
      return this.d_value === this.trueValue;
     },
     dataP: function dataP11() {
      return f({checked: this.checked, disabled: this.disabled, invalid: this.$invalid});
     },
    },
   };
   var _hoisted_1$S = ["data-p-checked", "data-p-disabled", "data-p"];
   var _hoisted_2$g = ["id", "checked", "tabindex", "disabled", "readonly", "aria-checked", "aria-labelledby", "aria-label", "aria-invalid"];
   var _hoisted_3$d = ["data-p"];
   var _hoisted_4$a = ["data-p"];
   function render$C(_ctx, _cache, $props, $setup, $data, $options) {
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: _ctx.cx("root"), style: _ctx.sx("root")}, $options.getPTOptions("root"), {"data-p-checked": $options.checked, "data-p-disabled": _ctx.disabled, "data-p": $options.dataP}),
      [
       createElementVNode(
        "input",
        mergeProps(
         {
          id: _ctx.inputId,
          type: "checkbox",
          role: "switch",
          class: [_ctx.cx("input"), _ctx.inputClass],
          style: _ctx.inputStyle,
          checked: $options.checked,
          tabindex: _ctx.tabindex,
          disabled: _ctx.disabled,
          readonly: _ctx.readonly,
          "aria-checked": $options.checked,
          "aria-labelledby": _ctx.ariaLabelledby,
          "aria-label": _ctx.ariaLabel,
          "aria-invalid": _ctx.invalid || void 0,
          onFocus:
           _cache[0] ||
           (_cache[0] = function () {
            return $options.onFocus && $options.onFocus.apply($options, arguments);
           }),
          onBlur:
           _cache[1] ||
           (_cache[1] = function () {
            return $options.onBlur && $options.onBlur.apply($options, arguments);
           }),
          onChange:
           _cache[2] ||
           (_cache[2] = function () {
            return $options.onChange && $options.onChange.apply($options, arguments);
           }),
         },
         $options.getPTOptions("input"),
        ),
        null,
        16,
        _hoisted_2$g,
       ),
       createElementVNode("div", mergeProps({class: _ctx.cx("slider")}, $options.getPTOptions("slider"), {"data-p": $options.dataP}), [createElementVNode("div", mergeProps({class: _ctx.cx("handle")}, $options.getPTOptions("handle"), {"data-p": $options.dataP}), [renderSlot(_ctx.$slots, "handle", {checked: $options.checked})], 16, _hoisted_4$a)], 16, _hoisted_3$d),
      ],
      16,
      _hoisted_1$S,
     )
    );
   }
   script$8.render = render$C;
   var style$5 = '\\n .p-listbox{background:dt("listbox.background");border:1px solid dt("listbox.border.color");border-radius:dt("listbox.border.radius");box-shadow:dt("listbox.shadow");color:dt("listbox.color");display:block;outline-color:transparent;transition:background dt("listbox.transition.duration"),color dt("listbox.transition.duration"),border-color dt("listbox.transition.duration"),box-shadow dt("listbox.transition.duration"),outline-color dt("listbox.transition.duration")}.p-listbox.p-disabled{background:dt("listbox.disabled.background");opacity:1}.p-listbox.p-disabled,.p-listbox.p-disabled .p-listbox-option{color:dt("listbox.disabled.color")}.p-listbox.p-invalid{border-color:dt("listbox.invalid.border.color")}.p-listbox-header{padding:dt("listbox.list.header.padding")}.p-listbox-filter{width:100%}.p-listbox-list-container{overflow:auto}.p-listbox-list{display:flex;flex-direction:column;gap:dt("listbox.list.gap");list-style-type:none;margin:0;outline:0 none;padding:dt("listbox.list.padding")}.p-listbox-option{align-items:center;border:0;border-radius:dt("listbox.option.border.radius");color:dt("listbox.option.color");cursor:pointer;display:flex;overflow:hidden;padding:dt("listbox.option.padding");position:relative;transition:background dt("listbox.transition.duration"),color dt("listbox.transition.duration"),border-color dt("listbox.transition.duration"),box-shadow dt("listbox.transition.duration"),outline-color dt("listbox.transition.duration")}.p-listbox-striped li:nth-child(even of .p-listbox-option){background:dt("listbox.option.striped.background")}.p-listbox .p-listbox-list .p-listbox-option.p-listbox-option-selected{background:dt("listbox.option.selected.background");color:dt("listbox.option.selected.color")}.p-listbox:not(.p-disabled) .p-listbox-option.p-listbox-option-selected.p-focus{background:dt("listbox.option.selected.focus.background");color:dt("listbox.option.selected.focus.color")}.p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled).p-focus,.p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled):hover{background:dt("listbox.option.focus.background");color:dt("listbox.option.focus.color")}.p-listbox-option-blank-icon{flex-shrink:0}.p-listbox-option-check-icon{color:dt("listbox.checkmark.color");flex-shrink:0;margin-inline-end:dt("listbox.checkmark.gutter.end");margin-inline-start:dt("listbox.checkmark.gutter.start");position:relative}.p-listbox-option-group{background:dt("listbox.option.group.background");color:dt("listbox.option.group.color");font-weight:dt("listbox.option.group.font.weight");margin:0;padding:dt("listbox.option.group.padding")}.p-listbox-empty-message{padding:dt("listbox.empty.message.padding")}.p-listbox-fluid{width:100%}';
   var classes$5 = {
    root: function root13(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-listbox p-component", {"p-listbox-striped": props2.striped, "p-disabled": props2.disabled, "p-listbox-fluid": props2.fluid, "p-invalid": instance.$invalid}];
    },
    header: "p-listbox-header",
    pcFilter: "p-listbox-filter",
    listContainer: "p-listbox-list-container",
    list: "p-listbox-list",
    optionGroup: "p-listbox-option-group",
    option: function option2(_ref2) {
     var instance = _ref2.instance,
      props2 = _ref2.props,
      _option = _ref2.option,
      index = _ref2.index,
      getItemOptions = _ref2.getItemOptions;
     return ["p-listbox-option", {"p-listbox-option-selected": instance.isSelected(_option) && props2.highlightOnSelect, "p-focus": instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions), "p-disabled": instance.isOptionDisabled(_option)}];
    },
    optionCheckIcon: "p-listbox-option-check-icon",
    optionBlankIcon: "p-listbox-option-blank-icon",
    emptyMessage: "p-listbox-empty-message",
   };
   var ListboxStyle = BaseStyle.extend({name: "listbox", style: style$5, classes: classes$5});
   var script$1$5 = {
    name: "BaseListbox",
    extends: script$z,
    props: {options: Array, optionLabel: null, optionValue: null, optionDisabled: null, optionGroupLabel: null, optionGroupChildren: null, listStyle: null, scrollHeight: {type: String, default: "14rem"}, dataKey: null, multiple: {type: Boolean, default: false}, metaKeySelection: {type: Boolean, default: false}, filter: Boolean, filterPlaceholder: String, filterLocale: String, filterMatchMode: {type: String, default: "contains"}, filterFields: {type: Array, default: null}, virtualScrollerOptions: {type: Object, default: null}, autoOptionFocus: {type: Boolean, default: true}, selectOnFocus: {type: Boolean, default: false}, focusOnHover: {type: Boolean, default: true}, highlightOnSelect: {type: Boolean, default: true}, checkmark: {type: Boolean, default: false}, filterMessage: {type: String, default: null}, selectionMessage: {type: String, default: null}, emptySelectionMessage: {type: String, default: null}, emptyFilterMessage: {type: String, default: null}, emptyMessage: {type: String, default: null}, filterIcon: {type: String, default: void 0}, striped: {type: Boolean, default: false}, tabindex: {type: Number, default: 0}, fluid: {type: Boolean, default: null}, ariaLabel: {type: String, default: null}, ariaLabelledby: {type: String, default: null}},
    style: ListboxStyle,
    provide: function provide23() {
     return {$pcListbox: this, $parentInstance: this};
    },
   };
   function _toConsumableArray$3(r) {
    return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$3(r) || _nonIterableSpread$3();
   }
   function _nonIterableSpread$3() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$3(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$3(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$3(r, a2) : void 0);
    }
   }
   function _iterableToArray$3(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$3(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$3(r);
   }
   function _arrayLikeToArray$3(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var script$7 = {
    name: "Listbox",
    extends: script$1$5,
    inheritAttrs: false,
    emits: ["change", "focus", "blur", "filter", "item-dblclick", "option-dblclick"],
    list: null,
    virtualScroller: null,
    optionTouched: false,
    startRangeIndex: -1,
    searchTimeout: null,
    searchValue: "",
    data: function data13() {
     return {filterValue: null, focused: false, focusedOptionIndex: -1};
    },
    watch: {
     options: function options2() {
      this.autoUpdateModel();
     },
    },
    mounted: function mounted13() {
     this.autoUpdateModel();
    },
    methods: {
     getOptionIndex: function getOptionIndex2(index, fn) {
      return this.virtualScrollerDisabled ? index : fn && fn(index)["index"];
     },
     getOptionLabel: function getOptionLabel2(option3) {
      return this.optionLabel ? p(option3, this.optionLabel) : typeof option3 === "string" || typeof option3 === "number" || typeof option3 === "boolean" ? option3 : null;
     },
     getOptionValue: function getOptionValue2(option3) {
      return this.optionValue ? p(option3, this.optionValue) : option3;
     },
     getOptionRenderKey: function getOptionRenderKey2(option3, index) {
      return (this.dataKey ? p(option3, this.dataKey) : this.getOptionLabel(option3)) + "_" + index;
     },
     getPTOptions: function getPTOptions9(option3, itemOptions, index, key) {
      return this.ptm(key, {context: {selected: this.isSelected(option3), focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions), disabled: this.isOptionDisabled(option3)}});
     },
     isOptionDisabled: function isOptionDisabled2(option3) {
      return this.optionDisabled ? p(option3, this.optionDisabled) : false;
     },
     isOptionGroup: function isOptionGroup2(option3) {
      return this.optionGroupLabel && option3.optionGroup && option3.group;
     },
     getOptionGroupLabel: function getOptionGroupLabel2(optionGroup) {
      return p(optionGroup, this.optionGroupLabel);
     },
     getOptionGroupChildren: function getOptionGroupChildren2(optionGroup) {
      return p(optionGroup, this.optionGroupChildren);
     },
     getAriaPosInset: function getAriaPosInset2(index) {
      var _this = this;
      return (
       (this.optionGroupLabel
        ? index -
          this.visibleOptions.slice(0, index).filter(function (option3) {
           return _this.isOptionGroup(option3);
          }).length
        : index) + 1
      );
     },
     onFirstHiddenFocus: function onFirstHiddenFocus2() {
      bt(this.list);
      var firstFocusableEl = vt(this.$el, ':not([data-p-hidden-focusable="true"])');
      this.$refs.lastHiddenFocusableElement.tabIndex = c(firstFocusableEl) ? void 0 : -1;
      this.$refs.firstHiddenFocusableElement.tabIndex = -1;
     },
     onLastHiddenFocus: function onLastHiddenFocus2(event) {
      var relatedTarget = event.relatedTarget;
      if (relatedTarget === this.list) {
       var firstFocusableEl = vt(this.$el, ':not([data-p-hidden-focusable="true"])');
       bt(firstFocusableEl);
       this.$refs.firstHiddenFocusableElement.tabIndex = void 0;
      } else {
       bt(this.$refs.firstHiddenFocusableElement);
      }
      this.$refs.lastHiddenFocusableElement.tabIndex = -1;
     },
     onFocusout: function onFocusout(event) {
      if (!this.$el.contains(event.relatedTarget) && this.$refs.lastHiddenFocusableElement && this.$refs.firstHiddenFocusableElement) {
       this.$refs.lastHiddenFocusableElement.tabIndex = this.$refs.firstHiddenFocusableElement.tabIndex = void 0;
      }
     },
     onListFocus: function onListFocus(event) {
      this.focused = true;
      this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
      this.autoUpdateModel();
      this.scrollInView(this.focusedOptionIndex);
      this.$emit("focus", event);
     },
     onListBlur: function onListBlur(event) {
      this.focused = false;
      this.focusedOptionIndex = this.startRangeIndex = -1;
      this.searchValue = "";
      this.$emit("blur", event);
     },
     onListKeyDown: function onListKeyDown(event) {
      var _this2 = this;
      var metaKey = event.metaKey || event.ctrlKey;
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event);
        break;
       case "Home":
        this.onHomeKey(event);
        break;
       case "End":
        this.onEndKey(event);
        break;
       case "PageDown":
        this.onPageDownKey(event);
        break;
       case "PageUp":
        this.onPageUpKey(event);
        break;
       case "Enter":
       case "NumpadEnter":
       case "Space":
        this.onSpaceKey(event);
        break;
       case "Tab":
        break;
       case "ShiftLeft":
       case "ShiftRight":
        this.onShiftKey(event);
        break;
       default:
        if (this.multiple && event.code === "KeyA" && metaKey) {
         var value2 = this.visibleOptions
          .filter(function (option3) {
           return _this2.isValidOption(option3);
          })
          .map(function (option3) {
           return _this2.getOptionValue(option3);
          });
         this.updateModel(event, value2);
         event.preventDefault();
         break;
        }
        if (!metaKey && J(event.key)) {
         this.searchOptions(event, event.key);
         event.preventDefault();
        }
        break;
      }
     },
     onOptionSelect: function onOptionSelect2(event, option3) {
      var index = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : -1;
      if (this.disabled || this.isOptionDisabled(option3)) {
       return;
      }
      this.multiple ? this.onOptionSelectMultiple(event, option3) : this.onOptionSelectSingle(event, option3);
      this.optionTouched = false;
      index !== -1 && (this.focusedOptionIndex = index);
     },
     onOptionMouseDown: function onOptionMouseDown(event, index) {
      this.changeFocusedOptionIndex(event, index);
     },
     onOptionMouseMove: function onOptionMouseMove2(event, index) {
      if (this.focusOnHover && this.focused) {
       this.changeFocusedOptionIndex(event, index);
      }
     },
     onOptionTouchEnd: function onOptionTouchEnd() {
      if (this.disabled) {
       return;
      }
      this.optionTouched = true;
     },
     onOptionDblClick: function onOptionDblClick(event, item2) {
      this.$emit("item-dblclick", {originalEvent: event, value: item2});
      this.$emit("option-dblclick", {originalEvent: event, value: item2});
     },
     onOptionSelectSingle: function onOptionSelectSingle(event, option3) {
      var selected = this.isSelected(option3);
      var valueChanged = false;
      var value2 = null;
      var metaSelection = this.optionTouched ? false : this.metaKeySelection;
      if (metaSelection) {
       var metaKey = event && (event.metaKey || event.ctrlKey);
       if (selected) {
        if (metaKey) {
         value2 = null;
         valueChanged = true;
        }
       } else {
        value2 = this.getOptionValue(option3);
        valueChanged = true;
       }
      } else {
       value2 = selected ? null : this.getOptionValue(option3);
       valueChanged = true;
      }
      if (valueChanged) {
       this.updateModel(event, value2);
      }
     },
     onOptionSelectMultiple: function onOptionSelectMultiple(event, option3) {
      var selected = this.isSelected(option3);
      var value2 = null;
      var metaSelection = this.optionTouched ? false : this.metaKeySelection;
      if (metaSelection) {
       var metaKey = event.metaKey || event.ctrlKey;
       if (selected) {
        value2 = metaKey ? this.removeOption(option3) : [this.getOptionValue(option3)];
       } else {
        value2 = metaKey ? this.d_value || [] : [];
        value2 = [].concat(_toConsumableArray$3(value2), [this.getOptionValue(option3)]);
       }
      } else {
       value2 = selected ? this.removeOption(option3) : [].concat(_toConsumableArray$3(this.d_value || []), [this.getOptionValue(option3)]);
      }
      this.updateModel(event, value2);
     },
     onOptionSelectRange: function onOptionSelectRange(event) {
      var _this3 = this;
      var start = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
      var end = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : -1;
      start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));
      end === -1 && (end = this.findNearestSelectedOptionIndex(start));
      if (start !== -1 && end !== -1) {
       var rangeStart = Math.min(start, end);
       var rangeEnd = Math.max(start, end);
       var value2 = this.visibleOptions
        .slice(rangeStart, rangeEnd + 1)
        .filter(function (option3) {
         return _this3.isValidOption(option3);
        })
        .map(function (option3) {
         return _this3.getOptionValue(option3);
        });
       this.updateModel(event, value2);
      }
     },
     onFilterChange: function onFilterChange2(event) {
      this.$emit("filter", {originalEvent: event, value: event.target.value, filterValue: this.visibleOptions});
      this.focusedOptionIndex = this.startRangeIndex = -1;
     },
     onFilterKeyDown: function onFilterKeyDown2(event) {
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event);
        break;
       case "ArrowLeft":
       case "ArrowRight":
        this.onArrowLeftKey(event, true);
        break;
       case "Home":
        this.onHomeKey(event, true);
        break;
       case "End":
        this.onEndKey(event, true);
        break;
       case "Enter":
       case "NumpadEnter":
        this.onEnterKey(event);
        break;
       case "ShiftLeft":
       case "ShiftRight":
        this.onShiftKey(event);
        break;
      }
     },
     onArrowDownKey: function onArrowDownKey3(event) {
      var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.findFirstFocusedOptionIndex();
      if (this.multiple && event.shiftKey) {
       this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
      }
      this.changeFocusedOptionIndex(event, optionIndex);
      event.preventDefault();
     },
     onArrowUpKey: function onArrowUpKey3(event) {
      var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.findLastFocusedOptionIndex();
      if (this.multiple && event.shiftKey) {
       this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
      }
      this.changeFocusedOptionIndex(event, optionIndex);
      event.preventDefault();
     },
     onArrowLeftKey: function onArrowLeftKey2(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      pressedInInputText && (this.focusedOptionIndex = -1);
     },
     onHomeKey: function onHomeKey3(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (pressedInInputText) {
       var target2 = event.currentTarget;
       if (event.shiftKey) {
        target2.setSelectionRange(0, event.target.selectionStart);
       } else {
        target2.setSelectionRange(0, 0);
        this.focusedOptionIndex = -1;
       }
      } else {
       var metaKey = event.metaKey || event.ctrlKey;
       var optionIndex = this.findFirstOptionIndex();
       if (this.multiple && event.shiftKey && metaKey) {
        this.onOptionSelectRange(event, optionIndex, this.startRangeIndex);
       }
       this.changeFocusedOptionIndex(event, optionIndex);
      }
      event.preventDefault();
     },
     onEndKey: function onEndKey3(event) {
      var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      if (pressedInInputText) {
       var target2 = event.currentTarget;
       if (event.shiftKey) {
        target2.setSelectionRange(event.target.selectionStart, target2.value.length);
       } else {
        var len = target2.value.length;
        target2.setSelectionRange(len, len);
        this.focusedOptionIndex = -1;
       }
      } else {
       var metaKey = event.metaKey || event.ctrlKey;
       var optionIndex = this.findLastOptionIndex();
       if (this.multiple && event.shiftKey && metaKey) {
        this.onOptionSelectRange(event, this.startRangeIndex, optionIndex);
       }
       this.changeFocusedOptionIndex(event, optionIndex);
      }
      event.preventDefault();
     },
     onPageUpKey: function onPageUpKey2(event) {
      this.scrollInView(0);
      event.preventDefault();
     },
     onPageDownKey: function onPageDownKey2(event) {
      this.scrollInView(this.visibleOptions.length - 1);
      event.preventDefault();
     },
     onEnterKey: function onEnterKey3(event) {
      if (this.focusedOptionIndex !== -1) {
       if (this.multiple && event.shiftKey) this.onOptionSelectRange(event, this.focusedOptionIndex);
       else this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
      }
     },
     onSpaceKey: function onSpaceKey2(event) {
      event.preventDefault();
      this.onEnterKey(event);
     },
     onShiftKey: function onShiftKey() {
      this.startRangeIndex = this.focusedOptionIndex;
     },
     isOptionMatched: function isOptionMatched(option3) {
      var _this$getOptionLabel;
      return this.isValidOption(option3) && typeof this.getOptionLabel(option3) === "string" && ((_this$getOptionLabel = this.getOptionLabel(option3)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
     },
     isValidOption: function isValidOption2(option3) {
      return s$3(option3) && !(this.isOptionDisabled(option3) || this.isOptionGroup(option3));
     },
     isValidSelectedOption: function isValidSelectedOption2(option3) {
      return this.isValidOption(option3) && this.isSelected(option3);
     },
     isEquals: function isEquals(value1, value2) {
      return k$3(value1, value2, this.equalityKey);
     },
     isSelected: function isSelected2(option3) {
      var _this4 = this;
      var optionValue = this.getOptionValue(option3);
      if (this.multiple)
       return (this.d_value || []).some(function (value2) {
        return _this4.isEquals(value2, optionValue);
       });
      else return this.isEquals(this.d_value, optionValue);
     },
     findFirstOptionIndex: function findFirstOptionIndex2() {
      var _this5 = this;
      return this.visibleOptions.findIndex(function (option3) {
       return _this5.isValidOption(option3);
      });
     },
     findLastOptionIndex: function findLastOptionIndex2() {
      var _this6 = this;
      return M$1(this.visibleOptions, function (option3) {
       return _this6.isValidOption(option3);
      });
     },
     findNextOptionIndex: function findNextOptionIndex2(index) {
      var _this7 = this;
      var matchedOptionIndex =
       index < this.visibleOptions.length - 1
        ? this.visibleOptions.slice(index + 1).findIndex(function (option3) {
           return _this7.isValidOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
     },
     findPrevOptionIndex: function findPrevOptionIndex2(index) {
      var _this8 = this;
      var matchedOptionIndex =
       index > 0
        ? M$1(this.visibleOptions.slice(0, index), function (option3) {
           return _this8.isValidOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex : index;
     },
     findSelectedOptionIndex: function findSelectedOptionIndex2() {
      var _this9 = this;
      if (this.$filled) {
       if (this.multiple) {
        var _loop = function _loop2() {
          var value2 = _this9.d_value[index];
          var matchedOptionIndex = _this9.visibleOptions.findIndex(function (option3) {
           return _this9.isValidSelectedOption(option3) && _this9.isEquals(value2, _this9.getOptionValue(option3));
          });
          if (matchedOptionIndex > -1) return {v: matchedOptionIndex};
         },
         _ret;
        for (var index = this.d_value.length - 1; index >= 0; index--) {
         _ret = _loop();
         if (_ret) return _ret.v;
        }
       } else {
        return this.visibleOptions.findIndex(function (option3) {
         return _this9.isValidSelectedOption(option3);
        });
       }
      }
      return -1;
     },
     findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
      var _this0 = this;
      return this.$filled
       ? this.visibleOptions.findIndex(function (option3) {
          return _this0.isValidSelectedOption(option3);
         })
       : -1;
     },
     findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
      var _this1 = this;
      return this.$filled
       ? M$1(this.visibleOptions, function (option3) {
          return _this1.isValidSelectedOption(option3);
         })
       : -1;
     },
     findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
      var _this10 = this;
      var matchedOptionIndex =
       this.$filled && index < this.visibleOptions.length - 1
        ? this.visibleOptions.slice(index + 1).findIndex(function (option3) {
           return _this10.isValidSelectedOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
     },
     findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
      var _this11 = this;
      var matchedOptionIndex =
       this.$filled && index > 0
        ? M$1(this.visibleOptions.slice(0, index), function (option3) {
           return _this11.isValidSelectedOption(option3);
          })
        : -1;
      return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
     },
     findNearestSelectedOptionIndex: function findNearestSelectedOptionIndex(index) {
      var firstCheckUp = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
      var matchedOptionIndex = -1;
      if (this.$filled) {
       if (firstCheckUp) {
        matchedOptionIndex = this.findPrevSelectedOptionIndex(index);
        matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;
       } else {
        matchedOptionIndex = this.findNextSelectedOptionIndex(index);
        matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;
       }
      }
      return matchedOptionIndex > -1 ? matchedOptionIndex : index;
     },
     findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex2() {
      var selectedIndex = this.findFirstSelectedOptionIndex();
      return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
     },
     findLastFocusedOptionIndex: function findLastFocusedOptionIndex2() {
      var selectedIndex = this.findLastSelectedOptionIndex();
      return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
     },
     searchOptions: function searchOptions2(event, _char) {
      var _this12 = this;
      this.searchValue = (this.searchValue || "") + _char;
      var optionIndex = -1;
      if (s$3(this.searchValue)) {
       if (this.focusedOptionIndex !== -1) {
        optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option3) {
         return _this12.isOptionMatched(option3);
        });
        optionIndex =
         optionIndex === -1
          ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option3) {
             return _this12.isOptionMatched(option3);
            })
          : optionIndex + this.focusedOptionIndex;
       } else {
        optionIndex = this.visibleOptions.findIndex(function (option3) {
         return _this12.isOptionMatched(option3);
        });
       }
       if (optionIndex === -1 && this.focusedOptionIndex === -1) {
        optionIndex = this.findFirstFocusedOptionIndex();
       }
       if (optionIndex !== -1) {
        this.changeFocusedOptionIndex(event, optionIndex);
       }
      }
      if (this.searchTimeout) {
       clearTimeout(this.searchTimeout);
      }
      this.searchTimeout = setTimeout(function () {
       _this12.searchValue = "";
       _this12.searchTimeout = null;
      }, 500);
     },
     removeOption: function removeOption(option3) {
      var _this13 = this;
      return this.d_value.filter(function (val) {
       return !k$3(val, _this13.getOptionValue(option3), _this13.equalityKey);
      });
     },
     changeFocusedOptionIndex: function changeFocusedOptionIndex2(event, index) {
      if (this.focusedOptionIndex !== index) {
       this.focusedOptionIndex = index;
       this.scrollInView();
       if (this.selectOnFocus && !this.multiple) {
        this.onOptionSelect(event, this.visibleOptions[index]);
       }
      }
     },
     scrollInView: function scrollInView3() {
      var _this14 = this;
      var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
      this.$nextTick(function () {
       var id3 = index !== -1 ? "".concat(_this14.$id, "_").concat(index) : _this14.focusedOptionId;
       var element = z$1(_this14.list, 'li[id="'.concat(id3, '"]'));
       if (element) {
        element.scrollIntoView && element.scrollIntoView({block: "nearest", inline: "nearest", behavior: "smooth"});
       } else if (!_this14.virtualScrollerDisabled) {
        _this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
       }
      });
     },
     autoUpdateModel: function autoUpdateModel2() {
      if (this.selectOnFocus && this.autoOptionFocus && !this.$filled && !this.multiple && this.focused) {
       this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
       this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex]);
      }
     },
     updateModel: function updateModel3(event, value2) {
      this.writeValue(value2, event);
      this.$emit("change", {originalEvent: event, value: value2});
     },
     listRef: function listRef2(el, contentRef3) {
      this.list = el;
      contentRef3 && contentRef3(el);
     },
     virtualScrollerRef: function virtualScrollerRef2(el) {
      this.virtualScroller = el;
     },
    },
    computed: {
     optionsListFlat: function optionsListFlat() {
      return this.filterValue ? FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale) : this.options;
     },
     optionsListGroup: function optionsListGroup() {
      var _this15 = this;
      var filteredOptions = [];
      (this.options || []).forEach(function (optionGroup) {
       var optionGroupChildren = _this15.getOptionGroupChildren(optionGroup) || [];
       var filteredChildren = _this15.filterValue ? FilterService.filter(optionGroupChildren, _this15.searchFields, _this15.filterValue, _this15.filterMatchMode, _this15.filterLocale) : optionGroupChildren;
       if (filteredChildren !== null && filteredChildren !== void 0 && filteredChildren.length) {
        filteredOptions.push.apply(filteredOptions, [{optionGroup, group: true}].concat(_toConsumableArray$3(filteredChildren)));
       }
      });
      return filteredOptions;
     },
     visibleOptions: function visibleOptions2() {
      return this.optionGroupLabel ? this.optionsListGroup : this.optionsListFlat;
     },
     hasSelectedOption: function hasSelectedOption2() {
      return s$3(this.d_value);
     },
     equalityKey: function equalityKey2() {
      return this.optionValue ? null : this.dataKey;
     },
     searchFields: function searchFields2() {
      return this.filterFields || [this.optionLabel];
     },
     filterResultMessageText: function filterResultMessageText2() {
      return s$3(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
     },
     filterMessageText: function filterMessageText2() {
      return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
     },
     emptyFilterMessageText: function emptyFilterMessageText2() {
      return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || "";
     },
     emptyMessageText: function emptyMessageText2() {
      return this.emptyMessage || this.$primevue.config.locale.emptyMessage || "";
     },
     selectionMessageText: function selectionMessageText2() {
      return this.selectionMessage || this.$primevue.config.locale.selectionMessage || "";
     },
     emptySelectionMessageText: function emptySelectionMessageText2() {
      return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || "";
     },
     selectedMessageText: function selectedMessageText2() {
      return this.$filled ? this.selectionMessageText.replaceAll("{0}", this.multiple ? this.d_value.length : "1") : this.emptySelectionMessageText;
     },
     focusedOptionId: function focusedOptionId2() {
      return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
     },
     ariaSetSize: function ariaSetSize2() {
      var _this16 = this;
      return this.visibleOptions.filter(function (option3) {
       return !_this16.isOptionGroup(option3);
      }).length;
     },
     virtualScrollerDisabled: function virtualScrollerDisabled2() {
      return !this.virtualScrollerOptions;
     },
     containerDataP: function containerDataP2() {
      return f({invalid: this.$invalid, disabled: this.disabled});
     },
    },
    directives: {ripple: Ripple},
    components: {InputText: script$x, VirtualScroller: script$w, InputIcon: script$i, IconField: script$j, SearchIcon: script$k, CheckIcon: script$M, BlankIcon: script$l},
   };
   var _hoisted_1$R = ["id", "data-p"];
   var _hoisted_2$f = ["tabindex"];
   var _hoisted_3$c = ["id", "aria-multiselectable", "aria-label", "aria-labelledby", "aria-activedescendant", "aria-disabled"];
   var _hoisted_4$9 = ["id"];
   var _hoisted_5$8 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousedown", "onMousemove", "onDblclick", "data-p-selected", "data-p-focused", "data-p-disabled"];
   var _hoisted_6$7 = ["tabindex"];
   function render$B(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_InputText = resolveComponent("InputText");
    var _component_SearchIcon = resolveComponent("SearchIcon");
    var _component_InputIcon = resolveComponent("InputIcon");
    var _component_IconField = resolveComponent("IconField");
    var _component_CheckIcon = resolveComponent("CheckIcon");
    var _component_BlankIcon = resolveComponent("BlankIcon");
    var _component_VirtualScroller = resolveComponent("VirtualScroller");
    var _directive_ripple = resolveDirective("ripple");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps(
       {
        id: _ctx.$id,
        class: _ctx.cx("root"),
        onFocusout:
         _cache[7] ||
         (_cache[7] = function () {
          return $options.onFocusout && $options.onFocusout.apply($options, arguments);
         }),
        "data-p": $options.containerDataP,
       },
       _ctx.ptmi("root"),
      ),
      [
       createElementVNode(
        "span",
        mergeProps(
         {
          ref: "firstHiddenFocusableElement",
          role: "presentation",
          "aria-hidden": "true",
          class: "p-hidden-accessible p-hidden-focusable",
          tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
          onFocus:
           _cache[0] ||
           (_cache[0] = function () {
            return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
           }),
         },
         _ctx.ptm("hiddenFirstFocusableEl"),
         {"data-p-hidden-accessible": true, "data-p-hidden-focusable": true},
        ),
        null,
        16,
        _hoisted_2$f,
       ),
       _ctx.$slots.header ? (openBlock(), createElementBlock("div", mergeProps({key: 0, class: _ctx.cx("header")}, _ctx.ptm("header")), [renderSlot(_ctx.$slots, "header", {value: _ctx.d_value, options: $options.visibleOptions})], 16)) : createCommentVNode("", true),
       _ctx.filter
        ? (openBlock(),
          createElementBlock(
           "div",
           mergeProps({key: 1, class: _ctx.cx("header")}, _ctx.ptm("header")),
           [
            createVNode(
             _component_IconField,
             {unstyled: _ctx.unstyled, pt: _ctx.ptm("pcFilterContainer")},
             {
              default: withCtx(function () {
               return [
                createVNode(
                 _component_InputText,
                 {
                  modelValue: $data.filterValue,
                  "onUpdate:modelValue":
                   _cache[1] ||
                   (_cache[1] = function ($event) {
                    return ($data.filterValue = $event);
                   }),
                  type: "text",
                  class: normalizeClass(_ctx.cx("pcFilter")),
                  placeholder: _ctx.filterPlaceholder,
                  role: "searchbox",
                  autocomplete: "off",
                  disabled: _ctx.disabled,
                  unstyled: _ctx.unstyled,
                  "aria-owns": _ctx.$id + "_list",
                  "aria-activedescendant": $options.focusedOptionId,
                  tabindex: !_ctx.disabled && !$data.focused ? _ctx.tabindex : -1,
                  onInput: $options.onFilterChange,
                  onKeydown: $options.onFilterKeyDown,
                  pt: _ctx.ptm("pcFilter"),
                 },
                 null,
                 8,
                 ["modelValue", "class", "placeholder", "disabled", "unstyled", "aria-owns", "aria-activedescendant", "tabindex", "onInput", "onKeydown", "pt"],
                ),
                createVNode(
                 _component_InputIcon,
                 {unstyled: _ctx.unstyled, pt: _ctx.ptm("pcFilterIconContainer")},
                 {
                  default: withCtx(function () {
                   return [
                    renderSlot(_ctx.$slots, "filtericon", {}, function () {
                     return [_ctx.filterIcon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: _ctx.filterIcon}, _ctx.ptm("filterIcon")), null, 16)) : (openBlock(), createBlock(_component_SearchIcon, normalizeProps(mergeProps({key: 1}, _ctx.ptm("filterIcon"))), null, 16))];
                    }),
                   ];
                  }),
                  _: 3,
                 },
                 8,
                 ["unstyled", "pt"],
                ),
               ];
              }),
              _: 3,
             },
             8,
             ["unstyled", "pt"],
            ),
            createElementVNode("span", mergeProps({role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenFilterResult"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.filterResultMessageText), 17),
           ],
           16,
          ))
        : createCommentVNode("", true),
       createElementVNode(
        "div",
        mergeProps({class: _ctx.cx("listContainer"), style: [{"max-height": $options.virtualScrollerDisabled ? _ctx.scrollHeight : ""}, _ctx.listStyle]}, _ctx.ptm("listContainer")),
        [
         createVNode(
          _component_VirtualScroller,
          mergeProps({ref: $options.virtualScrollerRef}, _ctx.virtualScrollerOptions, {items: $options.visibleOptions, style: [{height: _ctx.scrollHeight}, _ctx.listStyle], tabindex: -1, disabled: $options.virtualScrollerDisabled, pt: _ctx.ptm("virtualScroller")}),
          createSlots(
           {
            content: withCtx(function (_ref) {
             var styleClass = _ref.styleClass,
              contentRef3 = _ref.contentRef,
              items = _ref.items,
              getItemOptions = _ref.getItemOptions,
              contentStyle = _ref.contentStyle,
              itemSize2 = _ref.itemSize;
             return [
              createElementVNode(
               "ul",
               mergeProps(
                {
                 ref: function ref2(el) {
                  return $options.listRef(el, contentRef3);
                 },
                 id: _ctx.$id + "_list",
                 class: [_ctx.cx("list"), styleClass],
                 style: contentStyle,
                 tabindex: -1,
                 role: "listbox",
                 "aria-multiselectable": _ctx.multiple,
                 "aria-label": _ctx.ariaLabel,
                 "aria-labelledby": _ctx.ariaLabelledby,
                 "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
                 "aria-disabled": _ctx.disabled,
                 onFocus:
                  _cache[3] ||
                  (_cache[3] = function () {
                   return $options.onListFocus && $options.onListFocus.apply($options, arguments);
                  }),
                 onBlur:
                  _cache[4] ||
                  (_cache[4] = function () {
                   return $options.onListBlur && $options.onListBlur.apply($options, arguments);
                  }),
                 onKeydown:
                  _cache[5] ||
                  (_cache[5] = function () {
                   return $options.onListKeyDown && $options.onListKeyDown.apply($options, arguments);
                  }),
                },
                _ctx.ptm("list"),
               ),
               [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(items, function (option3, i2) {
                  return (
                   openBlock(),
                   createElementBlock(
                    Fragment,
                    {key: $options.getOptionRenderKey(option3, $options.getOptionIndex(i2, getItemOptions))},
                    [
                     $options.isOptionGroup(option3)
                      ? (openBlock(),
                        createElementBlock(
                         "li",
                         mergeProps({key: 0, id: _ctx.$id + "_" + $options.getOptionIndex(i2, getItemOptions), style: {height: itemSize2 ? itemSize2 + "px" : void 0}, class: _ctx.cx("optionGroup"), role: "option"}, {ref_for: true}, _ctx.ptm("optionGroup")),
                         [
                          renderSlot(_ctx.$slots, "optiongroup", {option: option3.optionGroup, index: $options.getOptionIndex(i2, getItemOptions)}, function () {
                           return [createTextVNode(toDisplayString$1($options.getOptionGroupLabel(option3.optionGroup)), 1)];
                          }),
                         ],
                         16,
                         _hoisted_4$9,
                        ))
                      : withDirectives(
                         (openBlock(),
                         createElementBlock(
                          "li",
                          mergeProps(
                           {
                            key: 1,
                            id: _ctx.$id + "_" + $options.getOptionIndex(i2, getItemOptions),
                            style: {height: itemSize2 ? itemSize2 + "px" : void 0},
                            class: _ctx.cx("option", {option: option3, index: i2, getItemOptions}),
                            role: "option",
                            "aria-label": $options.getOptionLabel(option3),
                            "aria-selected": $options.isSelected(option3),
                            "aria-disabled": $options.isOptionDisabled(option3),
                            "aria-setsize": $options.ariaSetSize,
                            "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i2, getItemOptions)),
                            onClick: function onClick2($event) {
                             return $options.onOptionSelect($event, option3, $options.getOptionIndex(i2, getItemOptions));
                            },
                            onMousedown: function onMousedown($event) {
                             return $options.onOptionMouseDown($event, $options.getOptionIndex(i2, getItemOptions));
                            },
                            onMousemove: function onMousemove($event) {
                             return $options.onOptionMouseMove($event, $options.getOptionIndex(i2, getItemOptions));
                            },
                            onTouchend:
                             _cache[2] ||
                             (_cache[2] = function ($event) {
                              return $options.onOptionTouchEnd();
                             }),
                            onDblclick: function onDblclick($event) {
                             return $options.onOptionDblClick($event, option3);
                            },
                           },
                           {ref_for: true},
                           $options.getPTOptions(option3, getItemOptions, i2, "option"),
                           {"data-p-selected": !_ctx.checkmark && $options.isSelected(option3), "data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i2, getItemOptions), "data-p-disabled": $options.isOptionDisabled(option3)},
                          ),
                          [
                           _ctx.checkmark ? (openBlock(), createElementBlock(Fragment, {key: 0}, [$options.isSelected(option3) ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({key: 0, class: _ctx.cx("optionCheckIcon")}, {ref_for: true}, _ctx.ptm("optionCheckIcon")), null, 16, ["class"])) : (openBlock(), createBlock(_component_BlankIcon, mergeProps({key: 1, class: _ctx.cx("optionBlankIcon")}, {ref_for: true}, _ctx.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : createCommentVNode("", true),
                           renderSlot(_ctx.$slots, "option", {option: option3, selected: $options.isSelected(option3), index: $options.getOptionIndex(i2, getItemOptions)}, function () {
                            return [createTextVNode(toDisplayString$1($options.getOptionLabel(option3)), 1)];
                           }),
                          ],
                          16,
                          _hoisted_5$8,
                         )),
                         [[_directive_ripple]],
                        ),
                    ],
                    64,
                   )
                  );
                 }),
                 128,
                )),
                $data.filterValue && (!items || (items && items.length === 0))
                 ? (openBlock(),
                   createElementBlock(
                    "li",
                    mergeProps({key: 0, class: _ctx.cx("emptyMessage"), role: "option"}, _ctx.ptm("emptyMessage")),
                    [
                     renderSlot(_ctx.$slots, "emptyfilter", {}, function () {
                      return [createTextVNode(toDisplayString$1($options.emptyFilterMessageText), 1)];
                     }),
                    ],
                    16,
                   ))
                 : !_ctx.options || (_ctx.options && _ctx.options.length === 0)
                   ? (openBlock(),
                     createElementBlock(
                      "li",
                      mergeProps({key: 1, class: _ctx.cx("emptyMessage"), role: "option"}, _ctx.ptm("emptyMessage")),
                      [
                       renderSlot(_ctx.$slots, "empty", {}, function () {
                        return [createTextVNode(toDisplayString$1($options.emptyMessageText), 1)];
                       }),
                      ],
                      16,
                     ))
                   : createCommentVNode("", true),
               ],
               16,
               _hoisted_3$c,
              ),
             ];
            }),
            _: 2,
           },
           [
            _ctx.$slots.loader
             ? {
                name: "loader",
                fn: withCtx(function (_ref2) {
                 var options3 = _ref2.options;
                 return [renderSlot(_ctx.$slots, "loader", {options: options3})];
                }),
                key: "0",
               }
             : void 0,
           ],
          ),
          1040,
          ["items", "style", "disabled", "pt"],
         ),
        ],
        16,
       ),
       renderSlot(_ctx.$slots, "footer", {value: _ctx.d_value, options: $options.visibleOptions}),
       !_ctx.options || (_ctx.options && _ctx.options.length === 0) ? (openBlock(), createElementBlock("span", mergeProps({key: 2, role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenEmptyMessage"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.emptyMessageText), 17)) : createCommentVNode("", true),
       createElementVNode("span", mergeProps({role: "status", "aria-live": "polite", class: "p-hidden-accessible"}, _ctx.ptm("hiddenSelectedMessage"), {"data-p-hidden-accessible": true}), toDisplayString$1($options.selectedMessageText), 17),
       createElementVNode(
        "span",
        mergeProps(
         {
          ref: "lastHiddenFocusableElement",
          role: "presentation",
          "aria-hidden": "true",
          class: "p-hidden-accessible p-hidden-focusable",
          tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
          onFocus:
           _cache[6] ||
           (_cache[6] = function () {
            return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
           }),
         },
         _ctx.ptm("hiddenLastFocusableEl"),
         {"data-p-hidden-accessible": true, "data-p-hidden-focusable": true},
        ),
        null,
        16,
        _hoisted_6$7,
       ),
      ],
      16,
      _hoisted_1$R,
     )
    );
   }
   script$7.render = render$B;
   var style$4 = '\\n .p-menu{background:dt("menu.background");border:1px solid dt("menu.border.color");border-radius:dt("menu.border.radius");color:dt("menu.color");min-width:12.5rem}.p-menu-list{display:flex;flex-direction:column;gap:dt("menu.list.gap");list-style:none;margin:0;outline:0 none;padding:dt("menu.list.padding")}.p-menu-item-content{border-radius:dt("menu.item.border.radius");color:dt("menu.item.color");overflow:hidden;transition:background dt("menu.transition.duration"),color dt("menu.transition.duration")}.p-menu-item-link{align-items:center;color:inherit;cursor:pointer;display:flex;gap:dt("menu.item.gap");outline:0 none;overflow:hidden;padding:dt("menu.item.padding");position:relative;text-decoration:none;user-select:none}.p-menu-item-label{line-height:1}.p-menu-item-icon{color:dt("menu.item.icon.color")}.p-menu-item.p-focus .p-menu-item-content{background:dt("menu.item.focus.background");color:dt("menu.item.focus.color")}.p-menu-item.p-focus .p-menu-item-icon{color:dt("menu.item.icon.focus.color")}.p-menu-item:not(.p-disabled) .p-menu-item-content:hover{background:dt("menu.item.focus.background");color:dt("menu.item.focus.color")}.p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon{color:dt("menu.item.icon.focus.color")}.p-menu-overlay{box-shadow:dt("menu.shadow")}.p-menu-submenu-label{background:dt("menu.submenu.label.background");color:dt("menu.submenu.label.color");font-weight:dt("menu.submenu.label.font.weight");padding:dt("menu.submenu.label.padding")}.p-menu-separator{border-block-start:1px solid dt("menu.separator.border.color")}';
   var classes$4 = {
    root: function root14(_ref) {
     var props2 = _ref.props;
     return ["p-menu p-component", {"p-menu-overlay": props2.popup}];
    },
    start: "p-menu-start",
    list: "p-menu-list",
    submenuLabel: "p-menu-submenu-label",
    separator: "p-menu-separator",
    end: "p-menu-end",
    item: function item(_ref2) {
     var instance = _ref2.instance;
     return ["p-menu-item", {"p-focus": instance.id === instance.focusedOptionId, "p-disabled": instance.disabled()}];
    },
    itemContent: "p-menu-item-content",
    itemLink: "p-menu-item-link",
    itemIcon: "p-menu-item-icon",
    itemLabel: "p-menu-item-label",
   };
   var MenuStyle = BaseStyle.extend({name: "menu", style: style$4, classes: classes$4});
   var script$2$1 = {
    name: "BaseMenu",
    extends: script$Q,
    props: {popup: {type: Boolean, default: false}, model: {type: Array, default: null}, appendTo: {type: [String, Object], default: "body"}, autoZIndex: {type: Boolean, default: true}, baseZIndex: {type: Number, default: 0}, tabindex: {type: Number, default: 0}, ariaLabel: {type: String, default: null}, ariaLabelledby: {type: String, default: null}},
    style: MenuStyle,
    provide: function provide24() {
     return {$pcMenu: this, $parentInstance: this};
    },
   };
   var script$1$4 = {
    name: "Menuitem",
    hostName: "Menu",
    extends: script$Q,
    inheritAttrs: false,
    emits: ["item-click", "item-mousemove"],
    props: {item: null, templates: null, id: null, focusedOptionId: null, index: null},
    methods: {
     getItemProp: function getItemProp(processedItem, name) {
      return processedItem && processedItem.item ? m$1(processedItem.item[name]) : void 0;
     },
     getPTOptions: function getPTOptions10(key) {
      return this.ptm(key, {context: {item: this.item, index: this.index, focused: this.isItemFocused(), disabled: this.disabled()}});
     },
     isItemFocused: function isItemFocused() {
      return this.focusedOptionId === this.id;
     },
     onItemClick: function onItemClick(event) {
      var command = this.getItemProp(this.item, "command");
      command && command({originalEvent: event, item: this.item.item});
      this.$emit("item-click", {originalEvent: event, item: this.item, id: this.id});
     },
     onItemMouseMove: function onItemMouseMove(event) {
      this.$emit("item-mousemove", {originalEvent: event, item: this.item, id: this.id});
     },
     visible: function visible() {
      return typeof this.item.visible === "function" ? this.item.visible() : this.item.visible !== false;
     },
     disabled: function disabled2() {
      return typeof this.item.disabled === "function" ? this.item.disabled() : this.item.disabled;
     },
     label: function label3() {
      return typeof this.item.label === "function" ? this.item.label() : this.item.label;
     },
     getMenuItemProps: function getMenuItemProps(item2) {
      return {action: mergeProps({class: this.cx("itemLink"), tabindex: "-1"}, this.getPTOptions("itemLink")), icon: mergeProps({class: [this.cx("itemIcon"), item2.icon]}, this.getPTOptions("itemIcon")), label: mergeProps({class: this.cx("itemLabel")}, this.getPTOptions("itemLabel"))};
     },
    },
    computed: {
     dataP: function dataP12() {
      return f({focus: this.isItemFocused(), disabled: this.disabled()});
     },
    },
    directives: {ripple: Ripple},
   };
   var _hoisted_1$1$1 = ["id", "aria-label", "aria-disabled", "data-p-focused", "data-p-disabled", "data-p"];
   var _hoisted_2$1$1 = ["data-p"];
   var _hoisted_3$1$1 = ["href", "target"];
   var _hoisted_4$8 = ["data-p"];
   var _hoisted_5$7 = ["data-p"];
   function render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return $options.visible()
     ? (openBlock(),
       createElementBlock(
        "li",
        mergeProps({key: 0, id: $props.id, class: [_ctx.cx("item"), $props.item["class"]], role: "menuitem", style: $props.item.style, "aria-label": $options.label(), "aria-disabled": $options.disabled(), "data-p-focused": $options.isItemFocused(), "data-p-disabled": $options.disabled() || false, "data-p": $options.dataP}, $options.getPTOptions("item")),
        [
         createElementVNode(
          "div",
          mergeProps(
           {
            class: _ctx.cx("itemContent"),
            onClick:
             _cache[0] ||
             (_cache[0] = function ($event) {
              return $options.onItemClick($event);
             }),
            onMousemove:
             _cache[1] ||
             (_cache[1] = function ($event) {
              return $options.onItemMouseMove($event);
             }),
            "data-p": $options.dataP,
           },
           $options.getPTOptions("itemContent"),
          ),
          [!$props.templates.item ? withDirectives((openBlock(), createElementBlock("a", mergeProps({key: 0, href: $props.item.url, class: _ctx.cx("itemLink"), target: $props.item.target, tabindex: "-1"}, $options.getPTOptions("itemLink")), [$props.templates.itemicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.itemicon), {key: 0, item: $props.item, class: normalizeClass(_ctx.cx("itemIcon"))}, null, 8, ["item", "class"])) : $props.item.icon ? (openBlock(), createElementBlock("span", mergeProps({key: 1, class: [_ctx.cx("itemIcon"), $props.item.icon], "data-p": $options.dataP}, $options.getPTOptions("itemIcon")), null, 16, _hoisted_4$8)) : createCommentVNode("", true), createElementVNode("span", mergeProps({class: _ctx.cx("itemLabel"), "data-p": $options.dataP}, $options.getPTOptions("itemLabel")), toDisplayString$1($options.label()), 17, _hoisted_5$7)], 16, _hoisted_3$1$1)), [[_directive_ripple]]) : $props.templates.item ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {key: 1, item: $props.item, label: $options.label(), props: $options.getMenuItemProps($props.item)}, null, 8, ["item", "label", "props"])) : createCommentVNode("", true)],
          16,
          _hoisted_2$1$1,
         ),
        ],
        16,
        _hoisted_1$1$1,
       ))
     : createCommentVNode("", true);
   }
   script$1$4.render = render$1$1;
   function _toConsumableArray$2(r) {
    return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread$2();
   }
   function _nonIterableSpread$2() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$2(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$2(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$2(r, a2) : void 0);
    }
   }
   function _iterableToArray$2(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$2(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$2(r);
   }
   function _arrayLikeToArray$2(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var script$6 = {
    name: "Menu",
    extends: script$2$1,
    inheritAttrs: false,
    emits: ["show", "hide", "focus", "blur"],
    data: function data14() {
     return {overlayVisible: false, focused: false, focusedOptionIndex: -1, selectedOptionIndex: -1};
    },
    target: null,
    outsideClickListener: null,
    scrollHandler: null,
    resizeListener: null,
    container: null,
    list: null,
    mounted: function mounted14() {
     if (!this.popup) {
      this.bindResizeListener();
      this.bindOutsideClickListener();
     }
    },
    beforeUnmount: function beforeUnmount7() {
     this.unbindResizeListener();
     this.unbindOutsideClickListener();
     if (this.scrollHandler) {
      this.scrollHandler.destroy();
      this.scrollHandler = null;
     }
     this.target = null;
     if (this.container && this.autoZIndex) {
      x$1.clear(this.container);
     }
     this.container = null;
    },
    methods: {
     itemClick: function itemClick(event) {
      var item2 = event.item;
      if (this.disabled(item2)) {
       return;
      }
      if (item2.command) {
       item2.command(event);
      }
      if (this.overlayVisible) this.hide();
      if (!this.popup && this.focusedOptionIndex !== event.id) {
       this.focusedOptionIndex = event.id;
      }
     },
     itemMouseMove: function itemMouseMove(event) {
      if (this.focused) {
       this.focusedOptionIndex = event.id;
      }
     },
     onListFocus: function onListFocus2(event) {
      this.focused = true;
      !this.popup && this.changeFocusedOptionIndex(0);
      this.$emit("focus", event);
     },
     onListBlur: function onListBlur2(event) {
      this.focused = false;
      this.focusedOptionIndex = -1;
      this.$emit("blur", event);
     },
     onListKeyDown: function onListKeyDown2(event) {
      switch (event.code) {
       case "ArrowDown":
        this.onArrowDownKey(event);
        break;
       case "ArrowUp":
        this.onArrowUpKey(event);
        break;
       case "Home":
        this.onHomeKey(event);
        break;
       case "End":
        this.onEndKey(event);
        break;
       case "Enter":
       case "NumpadEnter":
        this.onEnterKey(event);
        break;
       case "Space":
        this.onSpaceKey(event);
        break;
       case "Escape":
        if (this.popup) {
         bt(this.target);
         this.hide();
        }
       case "Tab":
        this.overlayVisible && this.hide();
        break;
      }
     },
     onArrowDownKey: function onArrowDownKey4(event) {
      var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);
      this.changeFocusedOptionIndex(optionIndex);
      event.preventDefault();
     },
     onArrowUpKey: function onArrowUpKey4(event) {
      if (event.altKey && this.popup) {
       bt(this.target);
       this.hide();
       event.preventDefault();
      } else {
       var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);
       this.changeFocusedOptionIndex(optionIndex);
       event.preventDefault();
      }
     },
     onHomeKey: function onHomeKey4(event) {
      this.changeFocusedOptionIndex(0);
      event.preventDefault();
     },
     onEndKey: function onEndKey4(event) {
      this.changeFocusedOptionIndex(Y$1(this.container, 'li[data-pc-section="item"][data-p-disabled="false"]').length - 1);
      event.preventDefault();
     },
     onEnterKey: function onEnterKey4(event) {
      var element = z$1(this.list, 'li[id="'.concat("".concat(this.focusedOptionIndex), '"]'));
      var anchorElement = element && z$1(element, 'a[data-pc-section="itemlink"]');
      this.popup && bt(this.target);
      anchorElement ? anchorElement.click() : element && element.click();
      event.preventDefault();
     },
     onSpaceKey: function onSpaceKey3(event) {
      this.onEnterKey(event);
     },
     findNextOptionIndex: function findNextOptionIndex3(index) {
      var links = Y$1(this.container, 'li[data-pc-section="item"][data-p-disabled="false"]');
      var matchedOptionIndex = _toConsumableArray$2(links).findIndex(function (link) {
       return link.id === index;
      });
      return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
     },
     findPrevOptionIndex: function findPrevOptionIndex3(index) {
      var links = Y$1(this.container, 'li[data-pc-section="item"][data-p-disabled="false"]');
      var matchedOptionIndex = _toConsumableArray$2(links).findIndex(function (link) {
       return link.id === index;
      });
      return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
     },
     changeFocusedOptionIndex: function changeFocusedOptionIndex3(index) {
      var links = Y$1(this.container, 'li[data-pc-section="item"][data-p-disabled="false"]');
      var order = index >= links.length ? links.length - 1 : index < 0 ? 0 : index;
      order > -1 && (this.focusedOptionIndex = links[order].getAttribute("id"));
     },
     toggle: function toggle(event, target2) {
      if (this.overlayVisible) this.hide();
      else this.show(event, target2);
     },
     show: function show2(event, target2) {
      this.overlayVisible = true;
      this.target = target2 !== null && target2 !== void 0 ? target2 : event.currentTarget;
     },
     hide: function hide2() {
      this.overlayVisible = false;
      this.target = null;
     },
     onEnter: function onEnter3(el) {
      S$1(el, {position: "absolute", top: "0"});
      this.alignOverlay();
      this.bindOutsideClickListener();
      this.bindResizeListener();
      this.bindScrollListener();
      if (this.autoZIndex) {
       x$1.set("menu", el, this.baseZIndex + this.$primevue.config.zIndex.menu);
      }
      if (this.popup) {
       bt(this.list);
      }
      this.$emit("show");
     },
     onLeave: function onLeave3() {
      this.unbindOutsideClickListener();
      this.unbindResizeListener();
      this.unbindScrollListener();
      this.$emit("hide");
     },
     onAfterLeave: function onAfterLeave2(el) {
      if (this.autoZIndex) {
       x$1.clear(el);
      }
     },
     alignOverlay: function alignOverlay2() {
      D$1(this.container, this.target);
      var targetWidth = v$1(this.target);
      if (targetWidth > v$1(this.container)) {
       this.container.style.minWidth = v$1(this.target) + "px";
      }
     },
     bindOutsideClickListener: function bindOutsideClickListener2() {
      var _this = this;
      if (!this.outsideClickListener) {
       this.outsideClickListener = function (event) {
        var isOutsideContainer = _this.container && !_this.container.contains(event.target);
        var isOutsideTarget = !(_this.target && (_this.target === event.target || _this.target.contains(event.target)));
        if (_this.overlayVisible && isOutsideContainer && isOutsideTarget) {
         _this.hide();
        } else if (!_this.popup && isOutsideContainer && isOutsideTarget) {
         _this.focusedOptionIndex = -1;
        }
       };
       document.addEventListener("click", this.outsideClickListener, true);
      }
     },
     unbindOutsideClickListener: function unbindOutsideClickListener2() {
      if (this.outsideClickListener) {
       document.removeEventListener("click", this.outsideClickListener, true);
       this.outsideClickListener = null;
      }
     },
     bindScrollListener: function bindScrollListener2() {
      var _this2 = this;
      if (!this.scrollHandler) {
       this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {
        if (_this2.overlayVisible) {
         _this2.hide();
        }
       });
      }
      this.scrollHandler.bindScrollListener();
     },
     unbindScrollListener: function unbindScrollListener2() {
      if (this.scrollHandler) {
       this.scrollHandler.unbindScrollListener();
      }
     },
     bindResizeListener: function bindResizeListener3() {
      var _this3 = this;
      if (!this.resizeListener) {
       this.resizeListener = function () {
        if (_this3.overlayVisible && !Yt()) {
         _this3.hide();
        }
       };
       window.addEventListener("resize", this.resizeListener);
      }
     },
     unbindResizeListener: function unbindResizeListener3() {
      if (this.resizeListener) {
       window.removeEventListener("resize", this.resizeListener);
       this.resizeListener = null;
      }
     },
     visible: function visible2(item2) {
      return typeof item2.visible === "function" ? item2.visible() : item2.visible !== false;
     },
     disabled: function disabled3(item2) {
      return typeof item2.disabled === "function" ? item2.disabled() : item2.disabled;
     },
     label: function label4(item2) {
      return typeof item2.label === "function" ? item2.label() : item2.label;
     },
     onOverlayClick: function onOverlayClick2(event) {
      OverlayEventBus.emit("overlay-click", {originalEvent: event, target: this.target});
     },
     containerRef: function containerRef2(el) {
      this.container = el;
     },
     listRef: function listRef3(el) {
      this.list = el;
     },
    },
    computed: {
     focusedOptionId: function focusedOptionId3() {
      return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;
     },
     dataP: function dataP13() {
      return f({popup: this.popup});
     },
    },
    components: {PVMenuitem: script$1$4, Portal: script$N},
   };
   var _hoisted_1$Q = ["id", "data-p"];
   var _hoisted_2$e = ["id", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby"];
   var _hoisted_3$b = ["id"];
   function render$A(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_PVMenuitem = resolveComponent("PVMenuitem");
    var _component_Portal = resolveComponent("Portal");
    return (
     openBlock(),
     createBlock(
      _component_Portal,
      {appendTo: _ctx.appendTo, disabled: !_ctx.popup},
      {
       default: withCtx(function () {
        return [
         createVNode(
          Transition,
          mergeProps({name: "p-anchored-overlay", onEnter: $options.onEnter, onLeave: $options.onLeave, onAfterLeave: $options.onAfterLeave}, _ctx.ptm("transition")),
          {
           default: withCtx(function () {
            return [
             (_ctx.popup ? $data.overlayVisible : true)
              ? (openBlock(),
                createElementBlock(
                 "div",
                 mergeProps(
                  {
                   key: 0,
                   ref: $options.containerRef,
                   id: _ctx.$id,
                   class: _ctx.cx("root"),
                   onClick:
                    _cache[3] ||
                    (_cache[3] = function () {
                     return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
                    }),
                   "data-p": $options.dataP,
                  },
                  _ctx.ptmi("root"),
                 ),
                 [
                  _ctx.$slots.start ? (openBlock(), createElementBlock("div", mergeProps({key: 0, class: _ctx.cx("start")}, _ctx.ptm("start")), [renderSlot(_ctx.$slots, "start")], 16)) : createCommentVNode("", true),
                  createElementVNode(
                   "ul",
                   mergeProps(
                    {
                     ref: $options.listRef,
                     id: _ctx.$id + "_list",
                     class: _ctx.cx("list"),
                     role: "menu",
                     tabindex: _ctx.tabindex,
                     "aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
                     "aria-label": _ctx.ariaLabel,
                     "aria-labelledby": _ctx.ariaLabelledby,
                     onFocus:
                      _cache[0] ||
                      (_cache[0] = function () {
                       return $options.onListFocus && $options.onListFocus.apply($options, arguments);
                      }),
                     onBlur:
                      _cache[1] ||
                      (_cache[1] = function () {
                       return $options.onListBlur && $options.onListBlur.apply($options, arguments);
                      }),
                     onKeydown:
                      _cache[2] ||
                      (_cache[2] = function () {
                       return $options.onListKeyDown && $options.onListKeyDown.apply($options, arguments);
                      }),
                    },
                    _ctx.ptm("list"),
                   ),
                   [
                    (openBlock(true),
                    createElementBlock(
                     Fragment,
                     null,
                     renderList(_ctx.model, function (item2, i2) {
                      return (
                       openBlock(),
                       createElementBlock(
                        Fragment,
                        {key: $options.label(item2) + i2.toString()},
                        [
                         item2.items && $options.visible(item2) && !item2.separator
                          ? (openBlock(),
                            createElementBlock(
                             Fragment,
                             {key: 0},
                             [
                              item2.items
                               ? (openBlock(),
                                 createElementBlock(
                                  "li",
                                  mergeProps({key: 0, id: _ctx.$id + "_" + i2, class: [_ctx.cx("submenuLabel"), item2["class"]], role: "none"}, {ref_for: true}, _ctx.ptm("submenuLabel")),
                                  [
                                   renderSlot(_ctx.$slots, _ctx.$slots.submenulabel ? "submenulabel" : "submenuheader", {item: item2}, function () {
                                    return [createTextVNode(toDisplayString$1($options.label(item2)), 1)];
                                   }),
                                  ],
                                  16,
                                  _hoisted_3$b,
                                 ))
                               : createCommentVNode("", true),
                              (openBlock(true),
                              createElementBlock(
                               Fragment,
                               null,
                               renderList(item2.items, function (child, j2) {
                                return (openBlock(), createElementBlock(Fragment, {key: child.label + i2 + "_" + j2}, [$options.visible(child) && !child.separator ? (openBlock(), createBlock(_component_PVMenuitem, {key: 0, id: _ctx.$id + "_" + i2 + "_" + j2, item: child, templates: _ctx.$slots, focusedOptionId: $options.focusedOptionId, unstyled: _ctx.unstyled, onItemClick: $options.itemClick, onItemMousemove: $options.itemMouseMove, pt: _ctx.pt}, null, 8, ["id", "item", "templates", "focusedOptionId", "unstyled", "onItemClick", "onItemMousemove", "pt"])) : $options.visible(child) && child.separator ? (openBlock(), createElementBlock("li", mergeProps({key: "separator" + i2 + j2, class: [_ctx.cx("separator"), item2["class"]], style: child.style, role: "separator"}, {ref_for: true}, _ctx.ptm("separator")), null, 16)) : createCommentVNode("", true)], 64));
                               }),
                               128,
                              )),
                             ],
                             64,
                            ))
                          : $options.visible(item2) && item2.separator
                            ? (openBlock(), createElementBlock("li", mergeProps({key: "separator" + i2.toString(), class: [_ctx.cx("separator"), item2["class"]], style: item2.style, role: "separator"}, {ref_for: true}, _ctx.ptm("separator")), null, 16))
                            : (openBlock(), createBlock(_component_PVMenuitem, {key: $options.label(item2) + i2.toString(), id: _ctx.$id + "_" + i2, item: item2, index: i2, templates: _ctx.$slots, focusedOptionId: $options.focusedOptionId, unstyled: _ctx.unstyled, onItemClick: $options.itemClick, onItemMousemove: $options.itemMouseMove, pt: _ctx.pt}, null, 8, ["id", "item", "index", "templates", "focusedOptionId", "unstyled", "onItemClick", "onItemMousemove", "pt"])),
                        ],
                        64,
                       )
                      );
                     }),
                     128,
                    )),
                   ],
                   16,
                   _hoisted_2$e,
                  ),
                  _ctx.$slots.end ? (openBlock(), createElementBlock("div", mergeProps({key: 1, class: _ctx.cx("end")}, _ctx.ptm("end")), [renderSlot(_ctx.$slots, "end")], 16)) : createCommentVNode("", true),
                 ],
                 16,
                 _hoisted_1$Q,
                ))
              : createCommentVNode("", true),
            ];
           }),
           _: 3,
          },
          16,
          ["onEnter", "onLeave", "onAfterLeave"],
         ),
        ];
       }),
       _: 3,
      },
      8,
      ["appendTo", "disabled"],
     )
    );
   }
   script$6.render = render$A;
   var style$3 = '\\n .p-popover{background:dt("popover.background");border:1px solid dt("popover.border.color");border-radius:dt("popover.border.radius");box-shadow:dt("popover.shadow");color:dt("popover.color");margin-block-start:dt("popover.gutter");will-change:transform}.p-popover-content{padding:dt("popover.content.padding")}.p-popover-flipped{margin-block-end:dt("popover.gutter");margin-block-start:calc(dt("popover.gutter")*-1)}.p-popover:after,.p-popover:before{bottom:100%;content:" ";height:0;left:calc(dt("popover.arrow.offset") + dt("popover.arrow.left"));pointer-events:none;position:absolute;width:0}.p-popover:after{border:calc(dt("popover.gutter") - 2px) solid transparent;border-bottom:calc(dt("popover.gutter") - 2px) solid dt("popover.background");margin-left:calc((dt("popover.gutter") - 2px)*-1)}.p-popover:before{border:dt("popover.gutter") solid transparent;border-bottom:dt("popover.gutter") solid dt("popover.border.color");margin-left:calc(dt("popover.gutter")*-1)}.p-popover-flipped:after,.p-popover-flipped:before{bottom:auto;top:100%}.p-popover.p-popover-flipped:after{border-bottom-color:transparent;border-top-color:dt("popover.background")}.p-popover.p-popover-flipped:before{border-bottom-color:transparent;border-top-color:dt("popover.border.color")}';
   var classes$3 = {root: "p-popover p-component", content: "p-popover-content"};
   var PopoverStyle = BaseStyle.extend({name: "popover", style: style$3, classes: classes$3});
   var script$1$3 = {
    name: "BasePopover",
    extends: script$Q,
    props: {dismissable: {type: Boolean, default: true}, appendTo: {type: [String, Object], default: "body"}, baseZIndex: {type: Number, default: 0}, autoZIndex: {type: Boolean, default: true}, breakpoints: {type: Object, default: null}, closeOnEscape: {type: Boolean, default: true}},
    style: PopoverStyle,
    provide: function provide25() {
     return {$pcPopover: this, $parentInstance: this};
    },
   };
   var script$5 = {
    name: "Popover",
    extends: script$1$3,
    inheritAttrs: false,
    emits: ["show", "hide"],
    data: function data15() {
     return {visible: false};
    },
    watch: {
     dismissable: {
      immediate: true,
      handler: function handler11(newValue) {
       if (newValue) {
        this.bindOutsideClickListener();
       } else {
        this.unbindOutsideClickListener();
       }
      },
     },
    },
    selfClick: false,
    target: null,
    eventTarget: null,
    outsideClickListener: null,
    scrollHandler: null,
    resizeListener: null,
    container: null,
    styleElement: null,
    overlayEventListener: null,
    documentKeydownListener: null,
    beforeUnmount: function beforeUnmount8() {
     if (this.dismissable) {
      this.unbindOutsideClickListener();
     }
     if (this.scrollHandler) {
      this.scrollHandler.destroy();
      this.scrollHandler = null;
     }
     this.destroyStyle();
     this.unbindResizeListener();
     this.target = null;
     if (this.container && this.autoZIndex) {
      x$1.clear(this.container);
     }
     if (this.overlayEventListener) {
      OverlayEventBus.off("overlay-click", this.overlayEventListener);
      this.overlayEventListener = null;
     }
     this.container = null;
    },
    mounted: function mounted15() {
     if (this.breakpoints) {
      this.createStyle();
     }
    },
    methods: {
     toggle: function toggle2(event, target2) {
      if (this.visible) this.hide();
      else this.show(event, target2);
     },
     show: function show3(event, target2) {
      this.visible = true;
      this.eventTarget = event.currentTarget;
      this.target = target2 || event.currentTarget;
     },
     hide: function hide3() {
      this.visible = false;
     },
     onContentClick: function onContentClick() {
      this.selfClick = true;
     },
     onEnter: function onEnter4(el) {
      var _this = this;
      S$1(el, {position: "absolute", top: "0"});
      this.alignOverlay();
      if (this.dismissable) {
       this.bindOutsideClickListener();
      }
      this.bindScrollListener();
      this.bindResizeListener();
      if (this.autoZIndex) {
       x$1.set("overlay", el, this.baseZIndex + this.$primevue.config.zIndex.overlay);
      }
      this.overlayEventListener = function (e) {
       if (_this.container.contains(e.target)) {
        _this.selfClick = true;
       }
      };
      this.focus();
      OverlayEventBus.on("overlay-click", this.overlayEventListener);
      this.$emit("show");
      if (this.closeOnEscape) {
       this.bindDocumentKeyDownListener();
      }
     },
     onLeave: function onLeave4() {
      this.unbindOutsideClickListener();
      this.unbindScrollListener();
      this.unbindResizeListener();
      this.unbindDocumentKeyDownListener();
      OverlayEventBus.off("overlay-click", this.overlayEventListener);
      this.overlayEventListener = null;
      this.$emit("hide");
     },
     onAfterLeave: function onAfterLeave3(el) {
      if (this.autoZIndex) {
       x$1.clear(el);
      }
     },
     alignOverlay: function alignOverlay3() {
      D$1(this.container, this.target, false);
      var containerOffset = K(this.container);
      var targetOffset = K(this.target);
      var arrowLeft = 0;
      if (containerOffset.left < targetOffset.left) {
       arrowLeft = targetOffset.left - containerOffset.left;
      }
      this.container.style.setProperty(rr("popover.arrow.left").name, "".concat(arrowLeft, "px"));
      if (containerOffset.top < targetOffset.top) {
       this.container.setAttribute("data-p-popover-flipped", "true");
       !this.isUnstyled && W$1(this.container, "p-popover-flipped");
      }
     },
     onContentKeydown: function onContentKeydown(event) {
      if (event.code === "Escape" && this.closeOnEscape) {
       this.hide();
       bt(this.target);
      }
     },
     onButtonKeydown: function onButtonKeydown(event) {
      switch (event.code) {
       case "ArrowDown":
       case "ArrowUp":
       case "ArrowLeft":
       case "ArrowRight":
        event.preventDefault();
      }
     },
     focus: function focus() {
      var focusTarget = this.container.querySelector("[autofocus]");
      if (focusTarget) {
       focusTarget.focus();
      }
     },
     onKeyDown: function onKeyDown3(event) {
      if (event.code === "Escape" && this.closeOnEscape) {
       this.visible = false;
      }
     },
     bindDocumentKeyDownListener: function bindDocumentKeyDownListener2() {
      if (!this.documentKeydownListener) {
       this.documentKeydownListener = this.onKeyDown.bind(this);
       window.document.addEventListener("keydown", this.documentKeydownListener);
      }
     },
     unbindDocumentKeyDownListener: function unbindDocumentKeyDownListener2() {
      if (this.documentKeydownListener) {
       window.document.removeEventListener("keydown", this.documentKeydownListener);
       this.documentKeydownListener = null;
      }
     },
     bindOutsideClickListener: function bindOutsideClickListener3() {
      var _this2 = this;
      if (!this.outsideClickListener && tt()) {
       this.outsideClickListener = function (event) {
        if (_this2.visible && !_this2.selfClick && !_this2.isTargetClicked(event)) {
         _this2.visible = false;
        }
        _this2.selfClick = false;
       };
       document.addEventListener("click", this.outsideClickListener);
      }
     },
     unbindOutsideClickListener: function unbindOutsideClickListener3() {
      if (this.outsideClickListener) {
       document.removeEventListener("click", this.outsideClickListener);
       this.outsideClickListener = null;
       this.selfClick = false;
      }
     },
     bindScrollListener: function bindScrollListener3() {
      var _this3 = this;
      if (!this.scrollHandler) {
       this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {
        if (_this3.visible) {
         _this3.visible = false;
        }
       });
      }
      this.scrollHandler.bindScrollListener();
     },
     unbindScrollListener: function unbindScrollListener3() {
      if (this.scrollHandler) {
       this.scrollHandler.unbindScrollListener();
      }
     },
     bindResizeListener: function bindResizeListener4() {
      var _this4 = this;
      if (!this.resizeListener) {
       this.resizeListener = function () {
        if (_this4.visible && !Yt()) {
         _this4.visible = false;
        }
       };
       window.addEventListener("resize", this.resizeListener);
      }
     },
     unbindResizeListener: function unbindResizeListener4() {
      if (this.resizeListener) {
       window.removeEventListener("resize", this.resizeListener);
       this.resizeListener = null;
      }
     },
     isTargetClicked: function isTargetClicked(event) {
      return this.eventTarget && (this.eventTarget === event.target || this.eventTarget.contains(event.target));
     },
     containerRef: function containerRef3(el) {
      this.container = el;
     },
     createStyle: function createStyle4() {
      if (!this.styleElement && !this.isUnstyled) {
       var _this$$primevue;
       this.styleElement = document.createElement("style");
       this.styleElement.type = "text/css";
       _t(this.styleElement, "nonce", (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);
       document.head.appendChild(this.styleElement);
       var innerHTML = "";
       for (var breakpoint in this.breakpoints) {
        innerHTML += "\n                        @media screen and (max-width: ".concat(breakpoint, ") {\n                            .p-popover[").concat(this.$attrSelector, "] {\n                                width: ").concat(this.breakpoints[breakpoint], " !important;\n                            }\n                        }\n                    ");
       }
       this.styleElement.innerHTML = innerHTML;
      }
     },
     destroyStyle: function destroyStyle3() {
      if (this.styleElement) {
       document.head.removeChild(this.styleElement);
       this.styleElement = null;
      }
     },
     onOverlayClick: function onOverlayClick3(event) {
      OverlayEventBus.emit("overlay-click", {originalEvent: event, target: this.target});
     },
    },
    directives: {focustrap: FocusTrap, ripple: Ripple},
    components: {Portal: script$N},
   };
   var _hoisted_1$P = ["aria-modal"];
   function render$z(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_Portal = resolveComponent("Portal");
    var _directive_focustrap = resolveDirective("focustrap");
    return (
     openBlock(),
     createBlock(
      _component_Portal,
      {appendTo: _ctx.appendTo},
      {
       default: withCtx(function () {
        return [
         createVNode(
          Transition,
          mergeProps({name: "p-anchored-overlay", onEnter: $options.onEnter, onLeave: $options.onLeave, onAfterLeave: $options.onAfterLeave}, _ctx.ptm("transition")),
          {
           default: withCtx(function () {
            return [
             $data.visible
              ? withDirectives(
                 (openBlock(),
                 createElementBlock(
                  "div",
                  mergeProps(
                   {
                    key: 0,
                    ref: $options.containerRef,
                    role: "dialog",
                    "aria-modal": $data.visible,
                    onClick:
                     _cache[3] ||
                     (_cache[3] = function () {
                      return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
                     }),
                    class: _ctx.cx("root"),
                   },
                   _ctx.ptmi("root"),
                  ),
                  [
                   _ctx.$slots.container
                    ? renderSlot(_ctx.$slots, "container", {
                       key: 0,
                       closeCallback: $options.hide,
                       keydownCallback: function keydownCallback(event) {
                        return $options.onButtonKeydown(event);
                       },
                      })
                    : (openBlock(),
                      createElementBlock(
                       "div",
                       mergeProps(
                        {
                         key: 1,
                         class: _ctx.cx("content"),
                         onClick:
                          _cache[0] ||
                          (_cache[0] = function () {
                           return $options.onContentClick && $options.onContentClick.apply($options, arguments);
                          }),
                         onMousedown:
                          _cache[1] ||
                          (_cache[1] = function () {
                           return $options.onContentClick && $options.onContentClick.apply($options, arguments);
                          }),
                         onKeydown:
                          _cache[2] ||
                          (_cache[2] = function () {
                           return $options.onContentKeydown && $options.onContentKeydown.apply($options, arguments);
                          }),
                        },
                        _ctx.ptm("content"),
                       ),
                       [renderSlot(_ctx.$slots, "default")],
                       16,
                      )),
                  ],
                  16,
                  _hoisted_1$P,
                 )),
                 [[_directive_focustrap]],
                )
              : createCommentVNode("", true),
            ];
           }),
           _: 3,
          },
          16,
          ["onEnter", "onLeave", "onAfterLeave"],
         ),
        ];
       }),
       _: 3,
      },
      8,
      ["appendTo"],
     )
    );
   }
   script$5.render = render$z;
   var script$4 = {name: "EyeSlashIcon", extends: script$P};
   function _toConsumableArray$1(r) {
    return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1();
   }
   function _nonIterableSpread$1() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray$1(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray$1(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$1(r, a2) : void 0);
    }
   }
   function _iterableToArray$1(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles$1(r) {
    if (Array.isArray(r)) return _arrayLikeToArray$1(r);
   }
   function _arrayLikeToArray$1(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   function render$y(_ctx, _cache, $props, $setup, $data, $options) {
    return (openBlock(), createElementBlock("svg", mergeProps({width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg"}, _ctx.pti()), _toConsumableArray$1(_cache[0] || (_cache[0] = [createElementVNode("path", {"fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z", fill: "currentColor"}, null, -1)])), 16));
   }
   script$4.render = render$y;
   var style$2 = '\\n .p-password{display:inline-flex;position:relative}.p-password .p-password-overlay{min-width:100%}.p-password-meter{background:dt("password.meter.background");height:dt("password.meter.height")}.p-password-meter,.p-password-meter-label{border-radius:dt("password.meter.border.radius")}.p-password-meter-label{height:100%;transition:width 1s ease-in-out;width:0}.p-password-meter-weak{background:dt("password.strength.weak.background")}.p-password-meter-medium{background:dt("password.strength.medium.background")}.p-password-meter-strong{background:dt("password.strength.strong.background")}.p-password-fluid{display:flex}.p-password-fluid .p-password-input{width:100%}.p-password-input::-ms-clear,.p-password-input::-ms-reveal{display:none}.p-password-overlay{background:dt("password.overlay.background");border:1px solid dt("password.overlay.border.color");border-radius:dt("password.overlay.border.radius");box-shadow:dt("password.overlay.shadow");color:dt("password.overlay.color");padding:dt("password.overlay.padding")}.p-password-content{display:flex;flex-direction:column;gap:dt("password.content.gap")}.p-password-toggle-mask-icon{color:dt("password.icon.color");height:dt("icon.size");margin-top:calc(dt("icon.size")/2*-1);width:dt("icon.size")}.p-password-clear-icon,.p-password-toggle-mask-icon{inset-inline-end:dt("form.field.padding.x");position:absolute;top:50%}.p-password-clear-icon{color:dt("form.field.icon.color");cursor:pointer;margin-top:-.5rem}.p-password:has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-password:has(.p-password-toggle-mask-icon) .p-password-clear-icon{inset-inline-end:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-password:has(.p-password-clear-icon) .p-password-input{padding-inline-end:calc(dt("form.field.padding.x")*2 + dt("icon.size"))}.p-password:has(.p-password-clear-icon):has(.p-password-toggle-mask-icon) .p-password-input{padding-inline-end:calc(dt("form.field.padding.x")*3 + dt("icon.size")*2)}';
   var inlineStyles = {
    root: function root15(_ref) {
     var props2 = _ref.props;
     return {position: props2.appendTo === "self" ? "relative" : void 0};
    },
   };
   var classes$2 = {
    root: function root16(_ref2) {
     var instance = _ref2.instance;
     return ["p-password p-component p-inputwrapper", {"p-inputwrapper-filled": instance.$filled, "p-inputwrapper-focus": instance.focused, "p-password-fluid": instance.$fluid}];
    },
    pcInputText: "p-password-input",
    maskIcon: "p-password-toggle-mask-icon p-password-mask-icon",
    unmaskIcon: "p-password-toggle-mask-icon p-password-unmask-icon",
    clearIcon: "p-password-clear-icon",
    overlay: "p-password-overlay p-component",
    content: "p-password-content",
    meter: "p-password-meter",
    meterLabel: function meterLabel(_ref3) {
     var instance = _ref3.instance;
     return "p-password-meter-label ".concat(instance.meter ? "p-password-meter-" + instance.meter.strength : "");
    },
    meterText: "p-password-meter-text",
   };
   var PasswordStyle = BaseStyle.extend({name: "password", style: style$2, classes: classes$2, inlineStyles});
   var script$1$2 = {
    name: "BasePassword",
    extends: script$y,
    props: {promptLabel: {type: String, default: null}, mediumRegex: {type: [String, RegExp], default: "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})"}, strongRegex: {type: [String, RegExp], default: "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})"}, weakLabel: {type: String, default: null}, mediumLabel: {type: String, default: null}, strongLabel: {type: String, default: null}, feedback: {type: Boolean, default: true}, appendTo: {type: [String, Object], default: "body"}, toggleMask: {type: Boolean, default: false}, hideIcon: {type: String, default: void 0}, maskIcon: {type: String, default: void 0}, showIcon: {type: String, default: void 0}, unmaskIcon: {type: String, default: void 0}, showClear: {type: Boolean, default: false}, disabled: {type: Boolean, default: false}, placeholder: {type: String, default: null}, required: {type: Boolean, default: false}, inputId: {type: String, default: null}, inputClass: {type: [String, Object], default: null}, inputStyle: {type: Object, default: null}, inputProps: {type: null, default: null}, panelId: {type: String, default: null}, panelClass: {type: [String, Object], default: null}, panelStyle: {type: Object, default: null}, panelProps: {type: null, default: null}, overlayId: {type: String, default: null}, overlayClass: {type: [String, Object], default: null}, overlayStyle: {type: Object, default: null}, overlayProps: {type: null, default: null}, ariaLabelledby: {type: String, default: null}, ariaLabel: {type: String, default: null}, autofocus: {type: Boolean, default: null}},
    style: PasswordStyle,
    provide: function provide26() {
     return {$pcPassword: this, $parentInstance: this};
    },
   };
   function _typeof$1(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$1 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$1(o)
    );
   }
   function _defineProperty$1(e, r, t2) {
    return ((r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$1(t2) {
    var i2 = _toPrimitive$1(t2, "string");
    return "symbol" == _typeof$1(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$1(t2, r) {
    if ("object" != _typeof$1(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$1(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$3 = {
    name: "Password",
    extends: script$1$2,
    inheritAttrs: false,
    emits: ["change", "focus", "blur", "invalid"],
    inject: {$pcFluid: {default: null}},
    data: function data16() {
     return {overlayVisible: false, meter: null, infoText: null, focused: false, unmasked: false};
    },
    mediumCheckRegExp: null,
    strongCheckRegExp: null,
    resizeListener: null,
    scrollHandler: null,
    overlay: null,
    mounted: function mounted16() {
     this.infoText = this.promptText;
     this.mediumCheckRegExp = new RegExp(this.mediumRegex);
     this.strongCheckRegExp = new RegExp(this.strongRegex);
    },
    beforeUnmount: function beforeUnmount9() {
     this.unbindResizeListener();
     if (this.scrollHandler) {
      this.scrollHandler.destroy();
      this.scrollHandler = null;
     }
     if (this.overlay) {
      x$1.clear(this.overlay);
      this.overlay = null;
     }
    },
    methods: {
     onOverlayEnter: function onOverlayEnter2(el) {
      x$1.set("overlay", el, this.$primevue.config.zIndex.overlay);
      S$1(el, {position: "absolute", top: "0"});
      this.alignOverlay();
      this.bindScrollListener();
      this.bindResizeListener();
      this.$attrSelector && el.setAttribute(this.$attrSelector, "");
     },
     onOverlayLeave: function onOverlayLeave2() {
      this.unbindScrollListener();
      this.unbindResizeListener();
      this.overlay = null;
     },
     onOverlayAfterLeave: function onOverlayAfterLeave2(el) {
      x$1.clear(el);
     },
     alignOverlay: function alignOverlay4() {
      if (this.appendTo === "self") {
       I(this.overlay, this.$refs.input.$el);
      } else {
       this.overlay.style.minWidth = v$1(this.$refs.input.$el) + "px";
       D$1(this.overlay, this.$refs.input.$el);
      }
     },
     testStrength: function testStrength(str) {
      var level = 0;
      if (this.strongCheckRegExp.test(str)) level = 3;
      else if (this.mediumCheckRegExp.test(str)) level = 2;
      else if (str.length) level = 1;
      return level;
     },
     onInput: function onInput2(event) {
      this.writeValue(event.target.value, event);
      this.$emit("change", event);
     },
     onFocus: function onFocus5(event) {
      this.focused = true;
      if (this.feedback) {
       this.setPasswordMeter(this.d_value);
       this.overlayVisible = true;
      }
      this.$emit("focus", event);
     },
     onBlur: function onBlur4(event) {
      this.focused = false;
      if (this.feedback) {
       this.overlayVisible = false;
      }
      this.$emit("blur", event);
     },
     onKeyUp: function onKeyUp(event) {
      if (this.feedback) {
       var value2 = event.target.value;
       var _this$checkPasswordSt = this.checkPasswordStrength(value2),
        meter = _this$checkPasswordSt.meter,
        label6 = _this$checkPasswordSt.label;
       this.meter = meter;
       this.infoText = label6;
       if (event.code === "Escape") {
        this.overlayVisible && (this.overlayVisible = false);
        return;
       }
       if (!this.overlayVisible) {
        this.overlayVisible = true;
       }
      }
     },
     setPasswordMeter: function setPasswordMeter() {
      if (!this.d_value) {
       this.meter = null;
       this.infoText = this.promptText;
       return;
      }
      var _this$checkPasswordSt2 = this.checkPasswordStrength(this.d_value),
       meter = _this$checkPasswordSt2.meter,
       label6 = _this$checkPasswordSt2.label;
      this.meter = meter;
      this.infoText = label6;
      if (!this.overlayVisible) {
       this.overlayVisible = true;
      }
     },
     checkPasswordStrength: function checkPasswordStrength(value2) {
      var label6 = null;
      var meter = null;
      switch (this.testStrength(value2)) {
       case 1:
        label6 = this.weakText;
        meter = {strength: "weak", width: "33.33%"};
        break;
       case 2:
        label6 = this.mediumText;
        meter = {strength: "medium", width: "66.66%"};
        break;
       case 3:
        label6 = this.strongText;
        meter = {strength: "strong", width: "100%"};
        break;
       default:
        label6 = this.promptText;
        meter = null;
        break;
      }
      return {label: label6, meter};
     },
     onInvalid: function onInvalid(event) {
      this.$emit("invalid", event);
     },
     bindScrollListener: function bindScrollListener4() {
      var _this = this;
      if (!this.scrollHandler) {
       this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.input.$el, function () {
        if (_this.overlayVisible) {
         _this.overlayVisible = false;
        }
       });
      }
      this.scrollHandler.bindScrollListener();
     },
     unbindScrollListener: function unbindScrollListener4() {
      if (this.scrollHandler) {
       this.scrollHandler.unbindScrollListener();
      }
     },
     bindResizeListener: function bindResizeListener5() {
      var _this2 = this;
      if (!this.resizeListener) {
       this.resizeListener = function () {
        if (_this2.overlayVisible && !Yt()) {
         _this2.overlayVisible = false;
        }
       };
       window.addEventListener("resize", this.resizeListener);
      }
     },
     unbindResizeListener: function unbindResizeListener5() {
      if (this.resizeListener) {
       window.removeEventListener("resize", this.resizeListener);
       this.resizeListener = null;
      }
     },
     overlayRef: function overlayRef2(el) {
      this.overlay = el;
     },
     onMaskToggle: function onMaskToggle() {
      this.unmasked = !this.unmasked;
     },
     onClearClick: function onClearClick3(event) {
      this.writeValue(null, {});
     },
     onOverlayClick: function onOverlayClick4(event) {
      OverlayEventBus.emit("overlay-click", {originalEvent: event, target: this.$el});
     },
    },
    computed: {
     inputType: function inputType() {
      return this.unmasked ? "text" : "password";
     },
     weakText: function weakText() {
      return this.weakLabel || this.$primevue.config.locale.weak;
     },
     mediumText: function mediumText() {
      return this.mediumLabel || this.$primevue.config.locale.medium;
     },
     strongText: function strongText() {
      return this.strongLabel || this.$primevue.config.locale.strong;
     },
     promptText: function promptText() {
      return this.promptLabel || this.$primevue.config.locale.passwordPrompt;
     },
     isClearIconVisible: function isClearIconVisible2() {
      return this.showClear && this.$filled && !this.disabled;
     },
     overlayUniqueId: function overlayUniqueId() {
      return this.$id + "_overlay";
     },
     containerDataP: function containerDataP3() {
      return f({fluid: this.$fluid});
     },
     meterDataP: function meterDataP() {
      var _this$meter, _this$meter2;
      return f(_defineProperty$1({}, (_this$meter = this.meter) === null || _this$meter === void 0 ? void 0 : _this$meter.strength, (_this$meter2 = this.meter) === null || _this$meter2 === void 0 ? void 0 : _this$meter2.strength));
     },
     overlayDataP: function overlayDataP2() {
      return f(_defineProperty$1({}, "portal-" + this.appendTo, "portal-" + this.appendTo));
     },
    },
    components: {InputText: script$x, Portal: script$N, EyeSlashIcon: script$4, EyeIcon: script$9, TimesIcon: script$O},
   };
   function _typeof$2(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof$2 =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof$2(o)
    );
   }
   function ownKeys(e, r) {
    var t2 = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
     var o = Object.getOwnPropertySymbols(e);
     (r &&
      (o = o.filter(function (r2) {
       return Object.getOwnPropertyDescriptor(e, r2).enumerable;
      })),
      t2.push.apply(t2, o));
    }
    return t2;
   }
   function _objectSpread(e) {
    for (var r = 1; r < arguments.length; r++) {
     var t2 = null != arguments[r] ? arguments[r] : {};
     r % 2
      ? ownKeys(Object(t2), true).forEach(function (r2) {
         _defineProperty$2(e, r2, t2[r2]);
        })
      : Object.getOwnPropertyDescriptors
        ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2))
        : ownKeys(Object(t2)).forEach(function (r2) {
           Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t2, r2));
          });
    }
    return e;
   }
   function _defineProperty$2(e, r, t2) {
    return ((r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey$2(t2) {
    var i2 = _toPrimitive$2(t2, "string");
    return "symbol" == _typeof$2(i2) ? i2 : i2 + "";
   }
   function _toPrimitive$2(t2, r) {
    if ("object" != _typeof$2(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof$2(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var _hoisted_1$O = ["data-p"];
   var _hoisted_2$d = ["id", "data-p"];
   var _hoisted_3$a = ["data-p"];
   function render$x(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_InputText = resolveComponent("InputText");
    var _component_TimesIcon = resolveComponent("TimesIcon");
    var _component_Portal = resolveComponent("Portal");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: _ctx.cx("root"), style: _ctx.sx("root"), "data-p": $options.containerDataP}, _ctx.ptmi("root")),
      [
       createVNode(_component_InputText, mergeProps({ref: "input", id: _ctx.inputId, type: $options.inputType, class: [_ctx.cx("pcInputText"), _ctx.inputClass], style: _ctx.inputStyle, defaultValue: _ctx.d_value, name: _ctx.$formName, "aria-labelledby": _ctx.ariaLabelledby, "aria-label": _ctx.ariaLabel, "aria-expanded": $data.overlayVisible, "aria-controls": $data.overlayVisible ? (_ctx.overlayProps && _ctx.overlayProps.id) || _ctx.overlayId || (_ctx.panelProps && _ctx.panelProps.id) || _ctx.panelId || $options.overlayUniqueId : void 0, "aria-haspopup": true, placeholder: _ctx.placeholder, required: _ctx.required, fluid: _ctx.fluid, disabled: _ctx.disabled, variant: _ctx.variant, invalid: _ctx.invalid, size: _ctx.size, autofocus: _ctx.autofocus, onInput: $options.onInput, onFocus: $options.onFocus, onBlur: $options.onBlur, onKeyup: $options.onKeyUp, onInvalid: $options.onInvalid}, _ctx.inputProps, {"data-p-has-e-icon": _ctx.toggleMask, pt: _ctx.ptm("pcInputText"), unstyled: _ctx.unstyled}), null, 16, ["id", "type", "class", "style", "defaultValue", "name", "aria-labelledby", "aria-label", "aria-expanded", "aria-controls", "placeholder", "required", "fluid", "disabled", "variant", "invalid", "size", "autofocus", "onInput", "onFocus", "onBlur", "onKeyup", "onInvalid", "data-p-has-e-icon", "pt", "unstyled"]),
       _ctx.toggleMask && $data.unmasked
        ? renderSlot(_ctx.$slots, _ctx.$slots.maskicon ? "maskicon" : "hideicon", mergeProps({key: 0, toggleCallback: $options.onMaskToggle, class: [_ctx.cx("maskIcon"), _ctx.maskIcon]}, _ctx.ptm("maskIcon")), function () {
           return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.maskIcon ? "i" : "EyeSlashIcon"), mergeProps({class: [_ctx.cx("maskIcon"), _ctx.maskIcon], onClick: $options.onMaskToggle}, _ctx.ptm("maskIcon")), null, 16, ["class", "onClick"]))];
          })
        : createCommentVNode("", true),
       _ctx.toggleMask && !$data.unmasked
        ? renderSlot(_ctx.$slots, _ctx.$slots.unmaskicon ? "unmaskicon" : "showicon", mergeProps({key: 1, toggleCallback: $options.onMaskToggle, class: [_ctx.cx("unmaskIcon")]}, _ctx.ptm("unmaskIcon")), function () {
           return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.unmaskIcon ? "i" : "EyeIcon"), mergeProps({class: [_ctx.cx("unmaskIcon"), _ctx.unmaskIcon], onClick: $options.onMaskToggle}, _ctx.ptm("unmaskIcon")), null, 16, ["class", "onClick"]))];
          })
        : createCommentVNode("", true),
       $options.isClearIconVisible
        ? renderSlot(_ctx.$slots, "clearicon", mergeProps({key: 2, class: _ctx.cx("clearIcon"), clearCallback: $options.onClearClick}, _ctx.ptm("clearIcon")), function () {
           return [createVNode(_component_TimesIcon, mergeProps({class: [_ctx.cx("clearIcon")], onClick: $options.onClearClick}, _ctx.ptm("clearIcon")), null, 16, ["class", "onClick"])];
          })
        : createCommentVNode("", true),
       createElementVNode("span", mergeProps({class: "p-hidden-accessible", "aria-live": "polite"}, _ctx.ptm("hiddenAccesible"), {"data-p-hidden-accessible": true}), toDisplayString$1($data.infoText), 17),
       createVNode(
        _component_Portal,
        {appendTo: _ctx.appendTo},
        {
         default: withCtx(function () {
          return [
           createVNode(
            Transition,
            mergeProps({name: "p-anchored-overlay", onEnter: $options.onOverlayEnter, onLeave: $options.onOverlayLeave, onAfterLeave: $options.onOverlayAfterLeave}, _ctx.ptm("transition")),
            {
             default: withCtx(function () {
              return [
               $data.overlayVisible
                ? (openBlock(),
                  createElementBlock(
                   "div",
                   mergeProps(
                    {
                     key: 0,
                     ref: $options.overlayRef,
                     id: _ctx.overlayId || _ctx.panelId || $options.overlayUniqueId,
                     class: [_ctx.cx("overlay"), _ctx.panelClass, _ctx.overlayClass],
                     style: [_ctx.overlayStyle, _ctx.panelStyle],
                     onClick:
                      _cache[0] ||
                      (_cache[0] = function () {
                       return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
                      }),
                     "data-p": $options.overlayDataP,
                     role: "dialog",
                     "aria-live": "polite",
                    },
                    _objectSpread(_objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.overlayProps), _ctx.ptm("overlay")),
                   ),
                   [
                    renderSlot(_ctx.$slots, "header"),
                    renderSlot(_ctx.$slots, "content", {}, function () {
                     return [createElementVNode("div", mergeProps({class: _ctx.cx("content")}, _ctx.ptm("content")), [createElementVNode("div", mergeProps({class: _ctx.cx("meter")}, _ctx.ptm("meter")), [createElementVNode("div", mergeProps({class: _ctx.cx("meterLabel"), style: {width: $data.meter ? $data.meter.width : ""}, "data-p": $options.meterDataP}, _ctx.ptm("meterLabel")), null, 16, _hoisted_3$a)], 16), createElementVNode("div", mergeProps({class: _ctx.cx("meterText")}, _ctx.ptm("meterText")), toDisplayString$1($data.infoText), 17)], 16)];
                    }),
                    renderSlot(_ctx.$slots, "footer"),
                   ],
                   16,
                   _hoisted_2$d,
                  ))
                : createCommentVNode("", true),
              ];
             }),
             _: 3,
            },
            16,
            ["onEnter", "onLeave", "onAfterLeave"],
           ),
          ];
         }),
         _: 3,
        },
        8,
        ["appendTo"],
       ),
      ],
      16,
      _hoisted_1$O,
     )
    );
   }
   script$3.render = render$x;
   var style$1 = '\\n .p-togglebutton{background:dt("togglebutton.background");border:1px solid dt("togglebutton.border.color");border-radius:dt("togglebutton.border.radius");color:dt("togglebutton.color");cursor:pointer;font-family:inherit;font-feature-settings:inherit;font-size:1rem;font-weight:dt("togglebutton.font.weight");outline-color:transparent;overflow:hidden;padding:dt("togglebutton.padding");position:relative;user-select:none}.p-togglebutton-content,\\n .p-togglebutton{display:inline-flex;transition:background dt("togglebutton.transition.duration"),color dt("togglebutton.transition.duration"),border-color dt("togglebutton.transition.duration"),outline-color dt("togglebutton.transition.duration"),box-shadow dt("togglebutton.transition.duration")}.p-togglebutton-content{align-items:center;background:transparent;border-radius:dt("togglebutton.content.border.radius");flex:1 1 auto;gap:dt("togglebutton.gap");justify-content:center;padding:dt("togglebutton.content.padding")}.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover{background:dt("togglebutton.hover.background");color:dt("togglebutton.hover.color")}.p-togglebutton.p-togglebutton-checked{background:dt("togglebutton.checked.background");border-color:dt("togglebutton.checked.border.color");color:dt("togglebutton.checked.color")}.p-togglebutton-checked .p-togglebutton-content{background:dt("togglebutton.content.checked.background");box-shadow:dt("togglebutton.content.checked.shadow")}.p-togglebutton:focus-visible{box-shadow:dt("togglebutton.focus.ring.shadow");outline:dt("togglebutton.focus.ring.color");outline-offset:dt("togglebutton.focus.ring.offset")}.p-togglebutton.p-invalid{border-color:dt("togglebutton.invalid.border.color")}.p-togglebutton:disabled{background:dt("togglebutton.disabled.background");border-color:dt("togglebutton.disabled.border.color");color:dt("togglebutton.disabled.color");cursor:default;opacity:1}.p-togglebutton-icon,.p-togglebutton-label{position:relative;transition:none}.p-togglebutton-icon{color:dt("togglebutton.icon.color")}.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon{color:dt("togglebutton.icon.hover.color")}.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon{color:dt("togglebutton.icon.checked.color")}.p-togglebutton:disabled .p-togglebutton-icon{color:dt("togglebutton.icon.disabled.color")}.p-togglebutton-sm{font-size:dt("togglebutton.sm.font.size");padding:dt("togglebutton.sm.padding")}.p-togglebutton-sm .p-togglebutton-content{padding:dt("togglebutton.content.sm.padding")}.p-togglebutton-lg{font-size:dt("togglebutton.lg.font.size");padding:dt("togglebutton.lg.padding")}.p-togglebutton-lg .p-togglebutton-content{padding:dt("togglebutton.content.lg.padding")}.p-togglebutton-fluid{width:100%}';
   var classes$1 = {
    root: function root17(_ref) {
     var instance = _ref.instance,
      props2 = _ref.props;
     return ["p-togglebutton p-component", {"p-togglebutton-checked": instance.active, "p-invalid": instance.$invalid, "p-togglebutton-fluid": props2.fluid, "p-togglebutton-sm p-inputfield-sm": props2.size === "small", "p-togglebutton-lg p-inputfield-lg": props2.size === "large"}];
    },
    content: "p-togglebutton-content",
    icon: "p-togglebutton-icon",
    label: "p-togglebutton-label",
   };
   var ToggleButtonStyle = BaseStyle.extend({name: "togglebutton", style: style$1, classes: classes$1});
   var script$1$1 = {
    name: "BaseToggleButton",
    extends: script$z,
    props: {onIcon: String, offIcon: String, onLabel: {type: String, default: "Yes"}, offLabel: {type: String, default: "No"}, readonly: {type: Boolean, default: false}, tabindex: {type: Number, default: null}, ariaLabelledby: {type: String, default: null}, ariaLabel: {type: String, default: null}, size: {type: String, default: null}, fluid: {type: Boolean, default: null}},
    style: ToggleButtonStyle,
    provide: function provide27() {
     return {$pcToggleButton: this, $parentInstance: this};
    },
   };
   function _typeof(o) {
    "@babel/helpers - typeof";
    return (
     (_typeof =
      "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
       ? function (o2) {
          return typeof o2;
         }
       : function (o2) {
          return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
         }),
     _typeof(o)
    );
   }
   function _defineProperty(e, r, t2) {
    return ((r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {value: t2, enumerable: true, configurable: true, writable: true}) : (e[r] = t2), e);
   }
   function _toPropertyKey(t2) {
    var i2 = _toPrimitive(t2, "string");
    return "symbol" == _typeof(i2) ? i2 : i2 + "";
   }
   function _toPrimitive(t2, r) {
    if ("object" != _typeof(t2) || !t2) return t2;
    var e = t2[Symbol.toPrimitive];
    if (void 0 !== e) {
     var i2 = e.call(t2, r);
     if ("object" != _typeof(i2)) return i2;
     throw new TypeError("@@toPrimitive must return a primitive value.");
    }
    return ("string" === r ? String : Number)(t2);
   }
   var script$2 = {
    name: "ToggleButton",
    extends: script$1$1,
    inheritAttrs: false,
    emits: ["change"],
    methods: {
     getPTOptions: function getPTOptions11(key) {
      var _ptm = key === "root" ? this.ptmi : this.ptm;
      return _ptm(key, {context: {active: this.active, disabled: this.disabled}});
     },
     onChange: function onChange6(event) {
      if (!this.disabled && !this.readonly) {
       this.writeValue(!this.d_value, event);
       this.$emit("change", event);
      }
     },
     onBlur: function onBlur5(event) {
      var _this$formField$onBlu, _this$formField;
      (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField, event);
     },
    },
    computed: {
     active: function active2() {
      return this.d_value === true;
     },
     hasLabel: function hasLabel() {
      return s$3(this.onLabel) && s$3(this.offLabel);
     },
     label: function label5() {
      return this.hasLabel ? (this.d_value ? this.onLabel : this.offLabel) : " ";
     },
     dataP: function dataP14() {
      return f(_defineProperty({checked: this.active, invalid: this.$invalid}, this.size, this.size));
     },
    },
    directives: {ripple: Ripple},
   };
   var _hoisted_1$N = ["tabindex", "disabled", "aria-pressed", "aria-label", "aria-labelledby", "data-p-checked", "data-p-disabled", "data-p"];
   var _hoisted_2$c = ["data-p"];
   function render$w(_ctx, _cache, $props, $setup, $data, $options) {
    var _directive_ripple = resolveDirective("ripple");
    return withDirectives(
     (openBlock(),
     createElementBlock(
      "button",
      mergeProps(
       {
        type: "button",
        class: _ctx.cx("root"),
        tabindex: _ctx.tabindex,
        disabled: _ctx.disabled,
        "aria-pressed": _ctx.d_value,
        onClick:
         _cache[0] ||
         (_cache[0] = function () {
          return $options.onChange && $options.onChange.apply($options, arguments);
         }),
        onBlur:
         _cache[1] ||
         (_cache[1] = function () {
          return $options.onBlur && $options.onBlur.apply($options, arguments);
         }),
       },
       $options.getPTOptions("root"),
       {"aria-label": _ctx.ariaLabel, "aria-labelledby": _ctx.ariaLabelledby, "data-p-checked": $options.active, "data-p-disabled": _ctx.disabled, "data-p": $options.dataP},
      ),
      [
       createElementVNode(
        "span",
        mergeProps({class: _ctx.cx("content")}, $options.getPTOptions("content"), {"data-p": $options.dataP}),
        [
         renderSlot(_ctx.$slots, "default", {}, function () {
          return [
           renderSlot(_ctx.$slots, "icon", {value: _ctx.d_value, class: normalizeClass(_ctx.cx("icon"))}, function () {
            return [_ctx.onIcon || _ctx.offIcon ? (openBlock(), createElementBlock("span", mergeProps({key: 0, class: [_ctx.cx("icon"), _ctx.d_value ? _ctx.onIcon : _ctx.offIcon]}, $options.getPTOptions("icon")), null, 16)) : createCommentVNode("", true)];
           }),
           createElementVNode("span", mergeProps({class: _ctx.cx("label")}, $options.getPTOptions("label")), toDisplayString$1($options.label), 17),
          ];
         }),
        ],
        16,
        _hoisted_2$c,
       ),
      ],
      16,
      _hoisted_1$N,
     )),
     [[_directive_ripple]],
    );
   }
   script$2.render = render$w;
   var style = '\\n .p-selectbutton{border-radius:dt("selectbutton.border.radius");display:inline-flex;outline-color:transparent;user-select:none;vertical-align:bottom}.p-selectbutton .p-togglebutton{border-radius:0;border-width:1px 1px 1px 0}.p-selectbutton .p-togglebutton:focus-visible{position:relative;z-index:1}.p-selectbutton .p-togglebutton:first-child{border-end-start-radius:dt("selectbutton.border.radius");border-inline-start-width:1px;border-start-start-radius:dt("selectbutton.border.radius")}.p-selectbutton .p-togglebutton:last-child{border-end-end-radius:dt("selectbutton.border.radius");border-start-end-radius:dt("selectbutton.border.radius")}.p-selectbutton.p-invalid{outline:1px solid dt("selectbutton.invalid.border.color");outline-offset:0}.p-selectbutton-fluid{width:100%}.p-selectbutton-fluid .p-togglebutton{flex:1 1 0}';
   var classes = {
    root: function root18(_ref) {
     var props2 = _ref.props,
      instance = _ref.instance;
     return ["p-selectbutton p-component", {"p-invalid": instance.$invalid, "p-selectbutton-fluid": props2.fluid}];
    },
   };
   var SelectButtonStyle = BaseStyle.extend({name: "selectbutton", style, classes});
   var script$1 = {
    name: "BaseSelectButton",
    extends: script$z,
    props: {options: Array, optionLabel: null, optionValue: null, optionDisabled: null, multiple: Boolean, allowEmpty: {type: Boolean, default: true}, dataKey: null, ariaLabelledby: {type: String, default: null}, size: {type: String, default: null}, fluid: {type: Boolean, default: null}},
    style: SelectButtonStyle,
    provide: function provide28() {
     return {$pcSelectButton: this, $parentInstance: this};
    },
   };
   function _createForOfIteratorHelper(r, e) {
    var t2 = ("undefined" != typeof Symbol && r[Symbol.iterator]) || r["@@iterator"];
    if (!t2) {
     if (Array.isArray(r) || (t2 = _unsupportedIterableToArray(r)) || e) {
      t2 && (r = t2);
      var _n = 0,
       F2 = function F3() {};
      return {
       s: F2,
       n: function n() {
        return _n >= r.length ? {done: true} : {done: false, value: r[_n++]};
       },
       e: function e2(r2) {
        throw r2;
       },
       f: F2,
      };
     }
     throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
    }
    var o,
     a2 = true,
     u = false;
    return {
     s: function s2() {
      t2 = t2.call(r);
     },
     n: function n() {
      var r2 = t2.next();
      return ((a2 = r2.done), r2);
     },
     e: function e2(r2) {
      ((u = true), (o = r2));
     },
     f: function f2() {
      try {
       a2 || null == t2["return"] || t2["return"]();
      } finally {
       if (u) throw o;
      }
     },
    };
   }
   function _toConsumableArray(r) {
    return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
   }
   function _nonIterableSpread() {
    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
   }
   function _unsupportedIterableToArray(r, a2) {
    if (r) {
     if ("string" == typeof r) return _arrayLikeToArray(r, a2);
     var t2 = {}.toString.call(r).slice(8, -1);
     return ("Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r, a2) : void 0);
    }
   }
   function _iterableToArray(r) {
    if (("undefined" != typeof Symbol && null != r[Symbol.iterator]) || null != r["@@iterator"]) return Array.from(r);
   }
   function _arrayWithoutHoles(r) {
    if (Array.isArray(r)) return _arrayLikeToArray(r);
   }
   function _arrayLikeToArray(r, a2) {
    (null == a2 || a2 > r.length) && (a2 = r.length);
    for (var e = 0, n = Array(a2); e < a2; e++) n[e] = r[e];
    return n;
   }
   var script = {
    name: "SelectButton",
    extends: script$1,
    inheritAttrs: false,
    emits: ["change"],
    methods: {
     getOptionLabel: function getOptionLabel3(option3) {
      return this.optionLabel ? p(option3, this.optionLabel) : option3;
     },
     getOptionValue: function getOptionValue3(option3) {
      return this.optionValue ? p(option3, this.optionValue) : option3;
     },
     getOptionRenderKey: function getOptionRenderKey3(option3) {
      return this.dataKey ? p(option3, this.dataKey) : this.getOptionLabel(option3);
     },
     isOptionDisabled: function isOptionDisabled3(option3) {
      return this.optionDisabled ? p(option3, this.optionDisabled) : false;
     },
     isOptionReadonly: function isOptionReadonly(option3) {
      if (this.allowEmpty) return false;
      var selected = this.isSelected(option3);
      if (this.multiple) {
       return selected && this.d_value.length === 1;
      } else {
       return selected;
      }
     },
     onOptionSelect: function onOptionSelect3(event, option3, index) {
      var _this = this;
      if (this.disabled || this.isOptionDisabled(option3) || this.isOptionReadonly(option3)) {
       return;
      }
      var selected = this.isSelected(option3);
      var optionValue = this.getOptionValue(option3);
      var newValue;
      if (this.multiple) {
       if (selected) {
        newValue = this.d_value.filter(function (val) {
         return !k$3(val, optionValue, _this.equalityKey);
        });
        if (!this.allowEmpty && newValue.length === 0) return;
       } else {
        newValue = this.d_value ? [].concat(_toConsumableArray(this.d_value), [optionValue]) : [optionValue];
       }
      } else {
       if (selected && !this.allowEmpty) return;
       newValue = selected ? null : optionValue;
      }
      this.writeValue(newValue, event);
      this.$emit("change", {originalEvent: event, value: newValue});
     },
     isSelected: function isSelected3(option3) {
      var selected = false;
      var optionValue = this.getOptionValue(option3);
      if (this.multiple) {
       if (this.d_value) {
        var _iterator = _createForOfIteratorHelper(this.d_value),
         _step;
        try {
         for (_iterator.s(); !(_step = _iterator.n()).done; ) {
          var val = _step.value;
          if (k$3(val, optionValue, this.equalityKey)) {
           selected = true;
           break;
          }
         }
        } catch (err) {
         _iterator.e(err);
        } finally {
         _iterator.f();
        }
       }
      } else {
       selected = k$3(this.d_value, optionValue, this.equalityKey);
      }
      return selected;
     },
    },
    computed: {
     equalityKey: function equalityKey3() {
      return this.optionValue ? null : this.dataKey;
     },
     dataP: function dataP15() {
      return f({invalid: this.$invalid});
     },
    },
    directives: {ripple: Ripple},
    components: {ToggleButton: script$2},
   };
   var _hoisted_1$M = ["aria-labelledby", "data-p"];
   function render$v(_ctx, _cache, $props, $setup, $data, $options) {
    var _component_ToggleButton = resolveComponent("ToggleButton");
    return (
     openBlock(),
     createElementBlock(
      "div",
      mergeProps({class: _ctx.cx("root"), role: "group", "aria-labelledby": _ctx.ariaLabelledby}, _ctx.ptmi("root"), {"data-p": $options.dataP}),
      [
       (openBlock(true),
       createElementBlock(
        Fragment,
        null,
        renderList(_ctx.options, function (option3, index) {
         return (
          openBlock(),
          createBlock(
           _component_ToggleButton,
           {
            key: $options.getOptionRenderKey(option3),
            modelValue: $options.isSelected(option3),
            onLabel: $options.getOptionLabel(option3),
            offLabel: $options.getOptionLabel(option3),
            disabled: _ctx.disabled || $options.isOptionDisabled(option3),
            unstyled: _ctx.unstyled,
            size: _ctx.size,
            readonly: $options.isOptionReadonly(option3),
            onChange: function onChange7($event) {
             return $options.onOptionSelect($event, option3, index);
            },
            pt: _ctx.ptm("pcToggleButton"),
           },
           createSlots({_: 2}, [
            _ctx.$slots.option
             ? {
                name: "default",
                fn: withCtx(function () {
                 return [
                  renderSlot(_ctx.$slots, "option", {option: option3, index}, function () {
                   return [createElementVNode("span", mergeProps({ref_for: true}, _ctx.ptm("pcToggleButton")["label"]), toDisplayString$1($options.getOptionLabel(option3)), 17)];
                  }),
                 ];
                }),
                key: "0",
               }
             : void 0,
           ]),
           1032,
           ["modelValue", "onLabel", "offLabel", "disabled", "unstyled", "size", "readonly", "onChange", "pt"],
          )
         );
        }),
        128,
       )),
      ],
      16,
      _hoisted_1$M,
     )
    );
   }
   script.render = render$v;
   const _sfc_main$P = defineComponent({
    __name: "app",
    setup(__props, {expose: __expose}) {
     const toast2 = useToast();
     __expose({add: (message3) => toast2.add(message3), remove: (message3) => toast2.remove(message3)});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$Q));
     };
    },
   });
   const {root: root$2} = createShadowApp(_sfc_main$P, {options: {app: {classes: "dark"}}});
   const toast = (...args) => root$2.add(...args);
   toast.add = (...args) => root$2.add(...args);
   toast.remove = (...args) => root$2.remove(...args);
   function defineModule(module) {
    return module;
   }
   class BaseDownloadProvider {
    tasks = reactive([]);
    removeTask(taskId) {
     const index = this.tasks.findIndex((t2) => t2.id === taskId);
     const task = this.tasks[index];
     if (index < 0) return false;
     task.abort();
     this.tasks.splice(index, 1);
     return true;
    }
   }
   class BaseTask {
    id = v4();
    type = "task";
    progress = reactive({total: -1, finished: -1, status: "queue"});
    parent = null;
    subTasks = [];
    constructor(parent) {
     this.parent = parent ?? null;
    }
   }
   class BaseSavefileTask extends BaseTask {
    type = "savefile";
    name;
    file;
    constructor(parent, file) {
     super(parent);
     this.file = file;
     this.name = file.path;
    }
   }
   class BaseDownloadTask extends BaseTask {
    type = "download";
   }
   class BaseFileDownloadTask extends BaseDownloadTask {
    type = "file";
    name;
    file;
    constructor(parent, file) {
     super(parent);
     this.file = file;
     this.name = file.path;
    }
   }
   class BaseMultiDownloadTask extends BaseDownloadTask {
    type = "multifile";
    subTasks = reactive([]);
   }
   const _sfc_main$O = defineComponent({
    __name: "SecondaryButton",
    setup(__props) {
     const theme = ref({
      root: `inline-flex cursor-pointer select-none items-center justify-center overflow-hidden relative
        px-3 py-2 gap-2 rounded-md disabled:pointer-events-none disabled:opacity-60 transition-colors duration-200
        bg-surface-100 enabled:hover:bg-surface-200 enabled:active:bg-surface-300
        border border-surface-100 enabled:hover:border-surface-200 enabled:active:border-surface-300
        text-surface-600 enabled:hover:text-surface-700 enabled:active:text-surface-800
        dark:bg-surface-800 dark:enabled:hover:bg-surface-700 dark:enabled:active:bg-surface-600
        dark:border-surface-800 dark:enabled:hover:border-surface-700 dark:enabled:active:border-surface-600
        dark:text-surface-300 dark:enabled:hover:text-surface-200 dark:enabled:active:text-surface-100
        focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2
        focus-visible:outline-surface-600 dark:focus-visible:outline-surface-300
        p-vertical:flex-col p-fluid:w-full p-fluid:p-icon-only:w-10
        p-icon-only:w-10 p-icon-only:px-0 p-icon-only:gap-0
        p-icon-only:p-rounded:rounded-full p-icon-only:p-rounded:h-10
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-[1.125rem] p-large:px-[0.875rem] p-large:py-[0.625rem]
        p-raised:shadow-sm p-rounded:rounded-[2rem]
        p-outlined:bg-transparent enabled:hover:p-outlined:bg-surface-50 enabled:active:p-outlined:bg-surface-100
        p-outlined:border-surface-200 enabled:hover:p-outlined:border-surface-200 enabled:active:p-outlined:border-surface-200
        p-outlined:text-surface-500 enabled:hover:p-outlined:text-surface-500 enabled:active:p-outlined:text-surface-500
        dark:p-outlined:bg-transparent dark:enabled:hover:p-outlined:bg-white/5 dark:enabled:active:p-outlined:bg-white/15
        dark:p-outlined:border-surface-700 dark:enabled:hover:p-outlined:border-surface-700 dark:enabled:active:p-outlined:border-surface-700
        dark:p-outlined:text-surface-400 dark:enabled:hover:p-outlined:text-surface-400 dark:enabled:active:p-outlined:text-surface-400
        p-text:bg-transparent enabled:hover:p-text:bg-surface-50 enabled:active:p-text:bg-surface-100
        p-text:border-transparent enabled:hover:p-text:border-transparent enabled:active:p-text:border-transparent
        p-text:text-surface-500 enabled:hover:p-text:text-surface-500 enabled:active:p-text:text-surface-500
        dark:p-text:bg-transparent dark:enabled:hover:p-text:bg-surface-800 dark:enabled:active:p-text:bg-surface-700
        dark:p-text:border-transparent dark:enabled:hover:p-text:border-transparent dark:enabled:active:p-text:border-transparent
        dark:p-text:text-surface-400 dark:enabled:hover:p-text:text-surface-400 dark:enabled:active:p-text:text-surface-400
    `,
      loadingIcon: ``,
      icon: `p-right:order-1 p-bottom:order-2`,
      label: `font-medium p-icon-only:invisible p-icon-only:w-0
        p-small:text-sm p-large:text-[1.125rem]`,
      pcBadge: {root: `min-w-4 h-4 leading-4`},
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$u),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$N = defineComponent({
    __name: "Dialog",
    setup(__props) {
     const theme = ref({
      root: `max-h-[90%] max-w-screen rounded-xl
        border border-solid border-surface-200 dark:border-surface-700
        bg-surface-0 dark:bg-surface-900
        text-surface-700 dark:text-surface-0 shadow-lg
        p-maximized:w-screen p-maximized:h-screen p-maximized:top-0 p-maximized:start-0p-maximized: max-h-full p-maximized:rounded-none`,
      header: `flex items-center justify-between shrink-0 p-5`,
      title: `font-semibold text-xl`,
      headerActions: `flex items-center gap-2`,
      content: `overflow-y-auto pt-0 px-5 pb-5 p-maximized:grow`,
      footer: `shrink-0 pt-0 px-5 pb-5 flex justify-end gap-2`,
      mask: `p-modal:bg-black/50 p-modal:fixed p-modal:top-0 p-modal:start-0 p-modal:w-full p-modal:h-full`,
      transition: {enterFromClass: "opacity-0 scale-75", enterActiveClass: "transition-all duration-150 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)]", leaveToClass: "opacity-0 scale-75"},
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$o),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({closebutton: withCtx(({closeCallback}) => [createVNode(_sfc_main$O, {variant: "text", rounded: "", onClick: closeCallback, autofocus: ""}, {icon: withCtx(() => [createVNode(unref(script$O))]), _: 1}, 8, ["onClick"])]), maximizebutton: withCtx(({maximized, maximizeCallback}) => [createVNode(_sfc_main$O, {variant: "text", rounded: "", onClick: maximizeCallback, autofocus: ""}, {icon: withCtx(() => [maximized ? (openBlock(), createBlock(unref(script$p), {key: 0})) : (openBlock(), createBlock(unref(script$q), {key: 1}))]), _: 2}, 1032, ["onClick"])]), _: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const keyName = Symbol("TabPanels.name");
   const keyNames = Symbol("TabPanels.names");
   const initialKeyName = Symbol("TabPanels.initial-keyname");
   const _sfc_main$M = defineComponent({
    __name: "TabPanel",
    props: {name: {}},
    setup(__props) {
     const displayName = inject(keyName);
     const allNames = inject(keyNames);
     const visible3 = computed(() => {
      if (displayName?.value === initialKeyName) {
       displayName.value = allNames.value[0];
      }
      return displayName?.value === __props.name;
     });
     onMounted(() => allNames.value.push(__props.name));
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock("div", {class: normalizeClass([{hidden: !visible3.value}, "w-full h-full"])}, [renderSlot(_ctx.$slots, "default")], 2));
     };
    },
   });
   const _sfc_main$L = defineComponent({
    __name: "SelectButton",
    setup(__props) {
     const theme = ref({
      root: `inline-flex select-none rounded-md
        p-invalid:outline p-invalid:outline-offset-0 p-invalid:outline-red-400 dark:p-invalid:outline-red-300`,
      pcToggleButton: {
       root: `inline-flex items-center justify-center overflow-hidden relative cursor-pointer select-none grow
            border border-surface-100 dark:border-surface-950
            rounded-none first:rounded-s-md last:rounded-e-md
            bg-surface-100 dark:bg-surface-950
            text-surface-500 dark:text-surface-400
            p-checked:text-surface-700 dark:p-checked:text-surface-0
            text-base font-medium
            focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary focus-visible:relative focus-visible:z-10
            disabled:cursor-default
            disabled:bg-surface-200 disabled:border-surface-200 disabled:text-surface-500
            disabled:dark:bg-surface-700 disabled:dark:border-surface-700 disabled:dark:text-surface-400
            p-invalid:border-red-400 dark:p-invalid:border-red-300
            transition-colors duration-200
            p-1 p-small:text-sm p-large:text-lg
        `,
       content: `relative flex-auto inline-flex items-center justify-center gap-2 py-1 px-3
            rounded-md transition-colors duration-200
            p-checked:bg-surface-0 dark:p-checked:bg-surface-800 p-checked:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.02),0px_1px_2px_0px_rgba(0,0,0,0.04)]`,
       icon: ``,
       label: ``,
      },
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$K = defineComponent({
    __name: "ListBox",
    setup(__props) {
     const theme = ref({
      root: `group bg-surface-0 dark:bg-surface-950 text-surface-700 dark:text-surface-0
        border border-surface-300 dark:border-surface-700 rounded-md
        p-disabled:bg-surface-200 p-disabled:text-surface-500 dark:p-disabled:bg-surface-700 dark:p-disabled:text-surface-400 p-disabled:pointer-events-none
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        shadow-[0_1px_2px_0_rgba(18,18,23,0.05)] transition-colors duration-200`,
      header: `pt-2 pb-1 px-4`,
      pcFilterContainer: {root: `relative`},
      pcFilter: {
       root: `w-full appearance-none rounded-md outline-hidden
            bg-surface-0 dark:bg-surface-950
            text-surface-700 dark:text-surface-0
            placeholder:text-surface-500 dark:placeholder:text-surface-400
            border border-surface-300 dark:border-surface-700
            enabled:hover:border-surface-400 dark:enabled:hover:border-surface-600
            enabled:focus:border-primary
            disabled:bg-surface-200 disabled:text-surface-500
            dark:disabled:bg-surface-700 dark:disabled:text-surface-400
            ps-3 pe-10 py-2 p-fluid:w-full
            transition-colors duration-200 shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]`,
      },
      pcFilterIconContainer: {root: `absolute top-1/2 -mt-2 leading-none end-3 z-1`},
      filterIcon: `text-surface-400`,
      listContainer: `overflow-auto`,
      virtualScroller: ``,
      list: `list-none m-0 p-1 outline-none flex flex-col gap-[2px]`,
      optionGroup: `m-0 px-3 py-2 text-surface-500 dark:text-surface-400 font-semibold`,
      option: `flex items-center cursor-pointer relative overflow-hidden px-3 py-2 border-none rounded-sm
        text-surface-700 dark:text-surface-0
        hover:not-p-selected:bg-surface-100 dark:hover:not-p-selected:bg-surface-800 hover:not-p-selected:text-surface-800 dark:hover:not-p-selected:text-surface-0
        p-focus:not-p-selected:bg-surface-100 dark:p-focus:not-p-selected:bg-surface-800 p-focus:not-p-selected:text-surface-800 dark:p-focus:not-p-selected:text-surface-0
        p-selected:bg-highlight p-selected:p-focus:bg-highlight-emphasis
        group-p-disabled:text-surface-500 dark:group-p-disabled:text-surface-400 group-p-disabled:pointer-events-none
        p-disabled:opacity-60 p-disabled:pointer-events-none
        transition-colors duration-200`,
      optionCheckIcon: `relative -ms-[0.375rem] me-[0.375rem] text-surface-700 dark:text-surface-0`,
      optionBlankIcon: ``,
      emptyMessage: `px-3 py-2`,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$7),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({filtericon: withCtx(() => [createVNode(unref(script$k), {class: "text-surface-400"})]), _: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _hoisted_1$L = {class: "shrink grow overflow-auto"};
   const _hoisted_2$b = {class: "w-full h-full"};
   const _hoisted_3$9 = {class: "w-full h-full"};
   const _sfc_main$J = defineComponent({
    __name: "TabLayout",
    props: mergeModels({layout: {default: "auto"}, options: {}, optionLabel: {default: "label"}, optionValue: {default: "value"}}, {modelValue: {default: initialKeyName}, modelModifiers: {}}),
    emits: ["update:modelValue"],
    setup(__props) {
     const selectedTab = useModel(__props, "modelValue");
     const autoLayout = getLayoutRef();
     const actualLayout = computed(() => (__props.layout !== "auto" ? __props.layout : autoLayout.value));
     const layoutClasses = computed(() => {
      const obj = {vertical: "flex-col", horizontal: "flex-row"};
      return obj[actualLayout.value];
     });
     const tabClasses = computed(() => {
      const obj = {vertical: "w-full border-b", horizontal: "h-full border-r"};
      return obj[actualLayout.value];
     });
     const names = ref([]);
     provide(keyName, selectedTab);
     provide(keyNames, names);
     const placeholder = computed(() => [null, void 0].includes(selectedTab.value));
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock("div", {class: normalizeClass(["flex rounded-md border border-surface-300 dark:border-surface-700 overflow-hidden", layoutClasses.value])}, [createElementVNode("div", {class: normalizeClass(["grow-0 shrink-0 border-surface-300 dark:border-surface-700", tabClasses.value])}, [renderSlot(_ctx.$slots, "tab", {selected: selectedTab.value}, () => [__props.options && __props.options.length ? (openBlock(), createBlock(resolveDynamicComponent(actualLayout.value === "vertical" ? _sfc_main$L : _sfc_main$K), {key: 0, modelValue: selectedTab.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (selectedTab.value = $event)), options: __props.options, "option-label": __props.optionLabel, "option-value": __props.optionValue, class: "w-full h-full", "pt:option:class": "justify-center min-w-36", "pt:root:class": [actualLayout.value === "vertical" ? "rounded-b-none" : "rounded-r-none", "border-none"], listStyle: actualLayout.value === "vertical" ? false : "max-height: 100%;"}, null, 8, ["modelValue", "options", "option-label", "option-value", "pt:root:class", "listStyle"])) : renderSlot(_ctx.$slots, "tab-content", {key: 1})])], 2), createElementVNode("div", _hoisted_1$L, [renderSlot(_ctx.$slots, "content", {selected: selectedTab.value}, () => [createElementVNode("div", _hoisted_2$b, [renderSlot(_ctx.$slots, "default"), withDirectives(createElementVNode("div", _hoisted_3$9, [renderSlot(_ctx.$slots, "placeholder")], 512), [[vShow, placeholder.value]])])])])], 2));
     };
    },
   });
   const _hoisted_1$K = {class: "flex justify-center items-center w-full"};
   const _hoisted_2$a = ["title"];
   const _hoisted_3$8 = ["title"];
   const _hoisted_4$7 = {key: 0, class: "flex flex-row px-3 py-2 w-fit grow-0 shrink-0"};
   const _sfc_main$I = defineComponent({
    __name: "ListItem",
    props: {label: {}, caption: {}, icon: {}, leftClass: {}, centerClass: {}, rightClass: {}, extras: {}, disabled: {type: Boolean}, hidden: {type: Boolean}},
    setup(__props) {
     const props2 = __props;
     const label6 = computed(() => props2.label);
     const caption = computed(() => props2.caption);
     const leftClass = computed(() => (props2.leftClass ? computeClasses(props2.leftClass) : "w-12"));
     const centerClass = computed(() => (props2.centerClass ? computeClasses(props2.centerClass) : "grow shrink"));
     const rightClass = computed(() => (props2.rightClass ? computeClasses(props2.rightClass) : "w-32"));
     const extras = computed(() => props2.extras);
     const disabled4 = computed(() => props2.disabled);
     const hidden = computed(() => props2.hidden);
     function computeClasses(val) {
      if (typeof val === "string") return val;
      const classList = [];
      for (const [cls, bool] of Object.entries(val)) {
       bool && classList.push(cls);
      }
      return classList.join(" ");
     }
     return (_ctx, _cache) => {
      const _directive_ripple = resolveDirective("ripple");
      return withDirectives(
       (openBlock(),
       createElementBlock(
        "label",
        {class: normalizeClass(["flex flex-row items-center hover:bg-emphasis transition-colors relative", {hidden: hidden.value, "pointer-events-none": disabled4.value}])},
        [
         __props.icon || _ctx.$slots.left ? (openBlock(), createElementBlock("div", {key: 0, class: normalizeClass(["flex items-center px-3 py-2", leftClass.value])}, [createElementVNode("div", _hoisted_1$K, [renderSlot(_ctx.$slots, "left", {}, () => [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {key: 0, class: "text-lg"})) : createCommentVNode("", true)])])], 2)) : createCommentVNode("", true),
         createElementVNode(
          "div",
          {class: normalizeClass(["flex flex-row items-center min-w-8", centerClass.value])},
          [
           createElementVNode(
            "div",
            {class: normalizeClass(["flex flex-col px-3 py-2 justify-center grow shrink w-full", {"brightness-80": disabled4.value, "grayscale-50": disabled4.value}])},
            [
             createElementVNode("div", {title: label6.value, class: "text-base truncate"}, toDisplayString$1(label6.value), 9, _hoisted_2$a),
             caption.value ? (openBlock(), createElementBlock("div", {key: 0, title: caption.value, class: "text-sm text-surface-500 dark:text-surface-400 line-clamp-2"}, toDisplayString$1(caption.value), 9, _hoisted_3$8)) : createCommentVNode("", true),
             (openBlock(true),
             createElementBlock(
              Fragment,
              null,
              renderList(extras.value, (ex) => {
               return (openBlock(), createElementBlock("div", mergeProps({class: "text-sm"}, {ref_for: true}, typeof ex === "object" ? (ex.props ?? {}) : {}), toDisplayString$1(typeof ex === "string" ? ex : ex.text), 17));
              }),
              256,
             )),
            ],
            2,
           ),
           _ctx.$slots["text-extension"] ? (openBlock(), createElementBlock("div", _hoisted_4$7, [renderSlot(_ctx.$slots, "text-extension")])) : createCommentVNode("", true),
          ],
          2,
         ),
         _ctx.$slots.right ? (openBlock(), createElementBlock("div", {key: 1, class: normalizeClass(["px-3 py-2", rightClass.value])}, [createElementVNode("div", {class: normalizeClass(["flex justify-end items-center w-full", {"brightness-80": disabled4.value, grayscale: disabled4.value}])}, [renderSlot(_ctx.$slots, "right")], 2)], 2)) : createCommentVNode("", true),
         withDirectives(
          createElementVNode(
           "div",
           {
            class: "absolute left-0 right-0 top-0 bottom-0 cursor-not-allowed pointer-events-auto",
            onClickCapture:
             _cache[0] ||
             (_cache[0] = (e) => {
              e.stopImmediatePropagation();
              e.preventDefault();
             }),
           },
           null,
           544,
          ),
          [[vShow, disabled4.value]],
         ),
        ],
        2,
       )),
       [[_directive_ripple]],
      );
     };
    },
   });
   const _sfc_main$H = defineComponent({
    __name: "InputText",
    setup(__props) {
     const theme = ref({
      root: `appearance-none rounded-md outline-hidden
        bg-surface-0 dark:bg-surface-950
        p-filled:bg-surface-50 dark:p-filled:bg-surface-800
        text-surface-700 dark:text-surface-0
        placeholder:text-surface-500 dark:placeholder:text-surface-400
        border border-surface-300 dark:border-surface-700
        enabled:hover:border-surface-400 dark:enabled:hover:border-surface-600
        enabled:focus:border-primary
        disabled:bg-surface-200 disabled:text-surface-500
        dark:disabled:bg-surface-700 dark:disabled:text-surface-400
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-invalid:placeholder:text-red-600 dark:p-invalid:placeholder:text-red-400
        px-3 py-2 p-fluid:w-full
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-lg p-large:px-[0.875rem] p-large:py-[0.625rem]
        transition-colors duration-200 shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]`,
     });
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$x), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, null, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const logger$7 = logger$9.withPath("settings", "components");
   function eggExpectedModification() {
    logger$7.simple("Info", "哪个好奇宝宝一定要改一下这个设置来着,原来是你\n在这里修改无效哦~");
   }
   const _sfc_main$G = defineComponent({
    __name: "Text",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const props2 = __props;
     const text2 = useModel(__props, "modelValue");
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? text2.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (text2.value = val) : eggExpectedModification())});
     const innerModel = ref(text2.value);
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$H, {modelValue: innerModel.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (innerModel.value = $event)), type: "text", fluid: "", onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation()), onFocus: _cache[2] || (_cache[2] = (e) => _ctx.$emit("focus", e)), onBlur: _cache[3] || (_cache[3] = (e) => _ctx.$emit("blur", e)), onChange: _cache[4] || (_cache[4] = ($event) => (displayValue.value = innerModel.value))}, null, 8, ["modelValue"]));
     };
    },
   });
   const _sfc_main$F = defineComponent({
    __name: "InputNumber",
    setup(__props) {
     const theme = ref({
      root: `inline-flex relative 
        p-vertical:flex-col p-fluid:w-full`,
      pcInputText: {
       root: `appearance-none rounded-md outline-hidden flex-auto
        bg-surface-0 dark:bg-surface-950
        p-filled:bg-surface-50 dark:p-filled:bg-surface-800
        text-surface-700 dark:text-surface-0
        placeholder:text-surface-500 dark:placeholder:text-surface-400
        border border-surface-300 dark:border-surface-700 
        enabled:hover:border-surface-400 dark:enabled:hover:border-surface-600
        enabled:focus:border-primary
        disabled:bg-surface-200 disabled:text-surface-500 
        dark:disabled:bg-surface-700 dark:disabled:text-surface-400
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-invalid:placeholder:text-red-600 dark:p-invalid:placeholder:text-red-400
        px-3 py-2 p-fluid:w-full
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-lg p-large:px-[0.875rem] p-large:py-[0.625rem]
        transition-colors duration-200 shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]
        p-horizontal:order-2 p-horizontal:rounded-none
        p-vertical:order-2 p-vertical:rounded-none p-vertical:text-center
        p-fluid:w-[1%] p-fluid:p-vertical:w-full`,
      },
      buttonGroup: `p-stacked:flex p-stacked:flex-col p-stacked:absolute p-stacked:top-px p-stacked:end-px p-stacked:h-[calc(100%-2px)] p-stacked:z-10`,
      incrementButton: `flex items-center justify-center grow-0 shrink-0 basis-auto cursor-pointer w-10
        bg-transparent enabled:hover:bg-surface-100 enabled:active:bg-surface-200
        border border-surface-300 enabled:hover:border-surface-300 enabled:active:border-surface-300
        text-surface-400 enabled:hover:text-surface-500 enabled:active:text-surface-600
        dark:bg-transparent dark:enabled:hover:bg-surface-800 dark:enabled:active:bg-surface-700
        dark:border-surface-700 dark:enabled:hover:border-surface-700 dark:enabled:active:border-surface-700
        dark:text-surface-400 dark:enabled:hover:text-surface-300 dark:enabled:active:text-surface-200
        transition-colors duration-200 disabled:pointer-events-none
        p-stacked:relative p-stacked:flex-auto p-stacked:border-none
        p-stacked:p-0 p-stacked:rounded-tr-[5px]
        p-horizontal:order-3 p-horizontal:rounded-e-md p-horizontal:border-s-0
        p-vertical:py-2 p-vertical:order-1 p-vertical:rounded-ss-md p-vertical:rounded-se-md p-vertical:w-full p-vertical:border-b-0`,
      incrementIcon: ``,
      decrementButton: `flex items-center justify-center grow-0 shrink-0 basis-auto cursor-pointer w-10
        bg-transparent enabled:hover:bg-surface-100 enabled:active:bg-surface-200
        border border-surface-300 enabled:hover:border-surface-300 enabled:active:border-surface-300
        text-surface-400 enabled:hover:text-surface-500 enabled:active:text-surface-600
        dark:bg-transparent dark:enabled:hover:bg-surface-800 dark:enabled:active:bg-surface-700
        dark:border-surface-700 dark:enabled:hover:border-surface-700 dark:enabled:active:border-surface-700
        dark:text-surface-400 dark:enabled:hover:text-surface-300 dark:enabled:active:text-surface-200
        transition-colors duration-200 disabled:pointer-events-none
        p-stacked:relative p-stacked:flex-auto p-stacked:border-none
        p-stacked:p-0 p-stacked:rounded-br-[5px]
        p-horizontal:order-1 p-horizontal:rounded-s-md p-horizontal:border-e-0
        p-vertical:py-2 p-vertical:order-3 p-vertical:rounded-ee-md p-vertical:rounded-es-md p-vertical:w-full p-vertical:border-t-0`,
      decrementIcon: ``,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$e),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({incrementicon: withCtx(() => [createVNode(unref(script$f))]), decrementicon: withCtx(() => [createVNode(unref(script$g))]), _: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$E = defineComponent({
    __name: "Number",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const number2 = useModel(__props, "modelValue");
     const props2 = __props;
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? number2.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (number2.value = val) : eggExpectedModification())});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$F, {modelValue: displayValue.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (displayValue.value = $event)), modelModifiers: {lazy: true}, useGrouping: false, fluid: "", onMouseenter: _cache[1] || (_cache[1] = (e) => _ctx.$emit("focus", e)), onMouseleave: _cache[2] || (_cache[2] = (e) => _ctx.$emit("blur", e))}, null, 8, ["modelValue"]));
     };
    },
   });
   const _sfc_main$D = defineComponent({
    __name: "ToggleSwitch",
    setup(__props) {
     const theme = ref({
      root: `inline-block w-10 h-6`,
      input: `peer cursor-pointer disabled:cursor-default appearance-none absolute top-0 start-0 w-full h-full m-0 p-0 opacity-0 z-10 rounded-[30px]`,
      slider: `inline-block w-full h-full rounded-[30px] shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]
        bg-surface-300 dark:bg-surface-700
        border border-transparent
        transition-colors duration-200
        peer-enabled:peer-hover:bg-surface-400 dark:peer-enabled:peer-hover:bg-surface-600
        p-checked:bg-primary peer-enabled:peer-hover:p-checked:bg-primary-emphasis
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-disabled:bg-surface-200 dark:p-disabled:bg-surface-600
        peer-focus-visible:outline peer-focus-visible:outline-1 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary`,
      handle: `absolute top-1/2 flex justify-center items-center
        bg-surface-0 dark:bg-surface-400
        text-surface-500 dark:text-surface-900
        w-4 h-4 start-1 -mt-2 rounded-full
        transition-[background,color,left] duration-200
        p-checked:bg-surface-0 dark:p-checked:bg-surface-900 p-checked:text-primary p-checked:start-5
        p-disabled:bg-surface-700 dark:p-disabled:bg-surface-900
}`,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$8),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$C = defineComponent({
    __name: "Switch",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {type: Boolean}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const status = useModel(__props, "modelValue");
     const props2 = __props;
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? status.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (status.value = val) : eggExpectedModification())});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$D, {modelValue: displayValue.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (displayValue.value = $event)), onMouseenter: _cache[1] || (_cache[1] = (e) => _ctx.$emit("focus", e)), onMouseleave: _cache[2] || (_cache[2] = (e) => _ctx.$emit("blur", e))}, null, 8, ["modelValue"]));
     };
    },
   });
   const _sfc_main$B = defineComponent({
    __name: "Select",
    setup(__props, {expose: __expose}) {
     const select = useTemplateRef("select");
     const isOverlayShowing = ref(false);
     watch(isOverlayShowing, (s2) => console.log("isOverlayShowing switched to", s2));
     __expose({
      show(isFocus) {
       select.value?.show(isFocus);
      },
      hide(isFocus) {
       select.value?.hide(isFocus);
      },
      toggle(isFocus) {
       console.log("isOverlayShowing", isOverlayShowing.value);
       isOverlayShowing.value ? select.value?.hide(isFocus) : select.value?.show(isFocus);
      },
      get isOverlayShowing() {
       return isOverlayShowing.value;
      },
     });
     const theme = ref({
      root: `inline-flex cursor-pointer relative select-none rounded-md p-fluid:flex
        bg-surface-0 dark:bg-surface-950
        border border-solid border-surface-300 hover:border-surface-400 dark:border-surface-700 dark:hover:border-surface-600
        p-focus:border-primary
        p-filled:bg-surface-50 dark:p-filled:bg-surface-800
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-disabled:bg-surface-200 p-disabled:text-surface-500 dark:p-disabled:bg-surface-700 dark:p-disabled:text-surface-400 p-disabled:pointer-events-none
        shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]
        transition-colors duration-200`,
      label: `block whitespace-nowrap overflow-hidden flex-auto w-[1%]
        py-2 px-3 overflow-ellipsis
        p-clearable:pe-7 p-empty:overflow-hidden p-empty:opacity-0 p-editable:cursor-default
        text-surface-700 dark:text-surface-0 bg-transparent border-none outline-none
        p-placeholder:text-surface-500 dark:p-placeholder:text-surface-400
        p-disabled:text-surface-500 dark:p-disabled:text-surface-400
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-lg p-large:px-[0.875rem] p-large:py-[0.625rem]`,
      dropdown: `flex items-center justify-center shrink-0 bg-transparent
        text-surface-400 w-10 rounded-e-md`,
      overlay: `absolute top-0 left-0 rounded-md p-portal-self:min-w-full
        bg-surface-0 dark:bg-surface-900
        border border-solid border-surface-200 dark:border-surface-700
        text-surface-700 dark:text-surface-0
        shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-2px_rgba(0,0,0,0.1)]`,
      header: `pt-2 pb-1 px-4`,
      pcFilterContainer: {root: `relative`},
      pcFilter: {
       root: `w-full appearance-none rounded-md outline-hidden
            bg-surface-0 dark:bg-surface-950
            text-surface-700 dark:text-surface-0
            placeholder:text-surface-500 dark:placeholder:text-surface-400
            border border-surface-300 dark:border-surface-700
            enabled:hover:border-surface-400 dark:enabled:hover:border-surface-600
            enabled:focus:border-primary
            disabled:bg-surface-200 disabled:text-surface-500
            dark:disabled:bg-surface-700 dark:disabled:text-surface-400
            ps-3 pe-10 py-2 p-fluid:w-full
            transition-colors duration-200 shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]`,
      },
      pcFilterIconContainer: {root: `absolute top-1/2 -mt-2 leading-none end-3 z-1`},
      listContainer: `overflow-auto`,
      list: `m-0 p-1 list-none gap-[2px] flex flex-col`,
      optionGroup: `m-0 px-3 py-2 bg-transparent text-surface-500 dark:text-surface-400 font-semibold`,
      optionGroupLabel: ``,
      option: `cursor-pointer font-normal whitespace-nowrap relative overflow-hidden flex items-center
        px-3 py-2 border-none text-surface-700 dark:text-surface-0 bg-transparent rounded-sm
        p-focus:bg-surface-100 dark:p-focus:bg-surface-800 p-focus:text-surface-800 dark:p-focus:text-surface-0
        p-selected:bg-highlight p-focus:p-selected:bg-highlight-emphasis
        transition-colors duration-200`,
      optionLabel: ``,
      optionCheckIcon: `relative -ms-[0.375rem] me-[0.375rem] text-surface-700 dark:text-surface-0`,
      optionBlankIcon: ``,
      emptyMessage: `px-3 py-2`,
      virtualScroller: ``,
      transition: {enterFromClass: "opacity-0 scale-y-75", enterActiveClass: "transition duration-120 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-opacity duration-100 ease-linear", leaveToClass: "opacity-0"},
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$h),
        {unstyled: "", ref_key: "select", ref: select, pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}, onShow: _cache[0] || (_cache[0] = ($event) => (isOverlayShowing.value = true)), onHide: _cache[1] || (_cache[1] = ($event) => (isOverlayShowing.value = false))},
        createSlots({dropdownicon: withCtx(() => [createVNode(unref(script$E))]), loadingicon: withCtx(() => [createVNode(unref(script$A), {class: "animate-spin"})]), filtericon: withCtx(() => [createVNode(unref(script$k), {class: "text-surface-400"})]), clearicon: withCtx(({clearCallback}) => [createVNode(unref(script$O), {onClick: clearCallback, class: "text-surface-400 absolute top-1/2 -mt-2 end-10"}, null, 8, ["onClick"])]), _: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$A = defineComponent({
    __name: "Select",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const value2 = useModel(__props, "modelValue");
     const props2 = __props;
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? value2.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (value2.value = val) : eggExpectedModification())});
     const instance = getCurrentInstance$1();
     const select = useTemplateRef("select");
     const overlayParent = computed(() => instance.root.vnode.el?.parentElement);
     const dealedLabels = [];
     const addLabelClickListener = () => {
      if (select.value) {
       const selectElm = select.value.$el;
       const label6 = selectElm.closest("label");
       if (dealedLabels.includes(label6)) return;
       dealedLabels.push(label6);
       label6.addEventListener("click", (e) => {
        const path = e.composedPath();
        const clickingSelect = path.includes(selectElm);
        clickingSelect || select.value?.show();
       });
      }
     };
     watch(select, addLabelClickListener, {immediate: true, deep: false});
     return (_ctx, _cache) => {
      return __props.useMobileLayout ? (openBlock(), createBlock(_sfc_main$K, mergeProps({key: 0, modelValue: displayValue.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (displayValue.value = $event))}, _ctx.$attrs, {onMouseenter: _cache[1] || (_cache[1] = (e) => _ctx.$emit("focus", e)), onMouseleave: _cache[2] || (_cache[2] = (e) => _ctx.$emit("blur", e))}), null, 16, ["modelValue"])) : (openBlock(), createBlock(_sfc_main$B, mergeProps({key: 1, ref_key: "select", ref: select, appendTo: overlayParent.value, modelValue: displayValue.value, "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => (displayValue.value = $event))}, _ctx.$attrs, {onMouseenter: _cache[4] || (_cache[4] = (e) => _ctx.$emit("focus", e)), onMouseleave: _cache[5] || (_cache[5] = (e) => _ctx.$emit("blur", e))}), null, 16, ["appendTo", "modelValue"]));
     };
    },
   });
   const _sfc_main$z = defineComponent({
    __name: "Button",
    setup(__props) {
     const theme = ref({
      root: `inline-flex cursor-pointer select-none items-center justify-center overflow-hidden relative
        px-3 py-2 gap-2 rounded-md disabled:pointer-events-none disabled:opacity-60 transition-colors duration-200
        bg-primary enabled:hover:bg-primary-emphasis enabled:active:bg-primary-emphasis-alt text-primary-contrast
        border border-primary enabled:hover:border-primary-emphasis enabled:active:border-primary-emphasis-alt
        focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary
        p-vertical:flex-col p-fluid:w-full p-fluid:p-icon-only:w-10
        p-icon-only:w-10 p-icon-only:px-0 p-icon-only:gap-0
        p-icon-only:p-rounded:rounded-full p-icon-only:p-rounded:h-10
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-[1.125rem] p-large:px-[0.875rem] p-large:py-[0.625rem]
        p-raised:shadow-sm p-rounded:rounded-[2rem]
        p-outlined:bg-transparent enabled:hover:p-outlined:bg-primary-50 enabled:active:p-outlined:bg-primary-100
        p-outlined:border-primary-200 enabled:hover:p-outlined:border-primary-200 enabled:active:p-outlined:border-primary-200
        p-outlined:text-primary enabled:hover:p-outlined:text-primary enabled:active:p-outlined:text-primary
        dark:p-outlined:bg-transparent dark:enabled:hover:p-outlined:bg-primary/5 dark:enabled:active:p-outlined:bg-primary/15
        dark:p-outlined:border-primary-700 dark:enabled:hover:p-outlined:border-primary-700 dark:enabled:active:p-outlined:border-primary-700
        dark:p-outlined:text-primary dark:enabled:hover:p-outlined:text-primary dark:enabled:active:p-outlined:text-primary
        p-text:bg-transparent enabled:hover:p-text:bg-primary-50 enabled:active:p-text:bg-primary-100
        p-text:border-transparent enabled:hover:p-text:border-transparent enabled:active:p-text:border-transparent
        p-text:text-primary enabled:hover:p-text:text-primary enabled:active:p-text:text-primary
        dark:p-text:bg-transparent dark:enabled:hover:p-text:bg-primary/5 dark:enabled:active:p-text:bg-primary/15
        dark:p-text:border-transparent dark:enabled:hover:p-text:border-transparent dark:enabled:active:p-text:border-transparent
        dark:p-text:text-primary dark:enabled:hover:p-text:text-primary dark:enabled:active:p-text:text-primary
    `,
      loadingIcon: `animate-spin`,
      icon: `p-right:order-1 p-bottom:order-2`,
      label: `font-medium p-icon-only:invisible p-icon-only:w-0
        p-small:text-sm p-large:text-[1.125rem]`,
      pcBadge: {root: `min-w-4 h-4 leading-4 bg-primary-contrast rounded-full text-primary text-xs font-bold`},
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$u),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$y = defineComponent({
    __name: "Button",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}, onClick: {type: Function}, icon: {}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const props2 = __props;
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? label6.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (label6.value = val) : eggExpectedModification())});
     const label6 = useModel(__props, "modelValue");
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$z,
        {label: displayValue.value, icon: __props.icon, variant: __props.useMobileLayout ? "text" : void 0, "pt:label:class": {truncate: __props.useMobileLayout}, onClick: _cache[0] || (_cache[0] = (e) => (e.stopPropagation(), __props.onClick?.(e))), onMouseenter: _cache[1] || (_cache[1] = (e) => _ctx.$emit("focus", e)), onMouseleave: _cache[2] || (_cache[2] = (e) => _ctx.$emit("blur", e))},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, name) => {
          return {name, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)))])};
         }),
        ]),
        1032,
        ["label", "icon", "variant", "pt:label:class"],
       )
      );
     };
    },
   });
   const _sfc_main$x = defineComponent({
    __name: "Password",
    setup(__props) {
     const theme = ref({
      root: `inline-flex relative p-fluid:flex`,
      pcInputText: {
       root: `appearance-none rounded-md outline-hidden
        bg-surface-0 dark:bg-surface-950
        p-filled:bg-surface-50 dark:p-filled:bg-surface-800
        text-surface-700 dark:text-surface-0
        placeholder:text-surface-500 dark:placeholder:text-surface-400
        border border-surface-300 dark:border-surface-700
        enabled:hover:border-surface-400 dark:enabled:hover:border-surface-600
        enabled:focus:border-primary
        disabled:bg-surface-200 disabled:text-surface-500
        dark:disabled:bg-surface-700 dark:disabled:text-surface-400
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-invalid:placeholder:text-red-600 dark:p-invalid:placeholder:text-red-400
        px-3 py-2 p-fluid:w-full p-has-e-icon:pe-10
        p-small:text-sm p-small:px-[0.625rem] p-small:py-[0.375rem]
        p-large:text-lg p-large:px-[0.875rem] p-large:py-[0.625rem]
        transition-colors duration-200 shadow-[0_1px_2px_0_rgba(18,18,23,0.05)]`,
      },
      overlay: `p-3 rounded-md p-portal-self:min-w-full
        bg-surface-0 dark:bg-surface-900
        border border-surface-200 dark:border-surface-700
        text-surface-700 dark:text-surface-0
        shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-2px_rgba(0,0,0,0.1)]`,
      content: `flex flex-col gap-2`,
      meter: `h-3 bg-surface-200 dark:bg-surface-700 rounded-md`,
      meterLabel: `h-full w-0 transition-[width] duration-1000 ease-in-out rounded-md
        p-weak:bg-red-500 dark:p-weak:bg-red-400
        p-medium:bg-amber-500 dark:p-medium:bg-amber-400
        p-strong:bg-green-500 dark:p-strong:bg-green-400`,
      meterText: ``,
      transition: {enterFromClass: "opacity-0 scale-y-75", enterActiveClass: "transition duration-120 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-opacity duration-100 ease-linear", leaveToClass: "opacity-0"},
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$3),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({maskicon: withCtx(({toggleCallback}) => [createVNode(unref(script$4), {onClick: toggleCallback, class: "end-3 text-surface-500 dark:text-surface-400 absolute top-1/2 -mt-2 w-4 h-4"}, null, 8, ["onClick"])]), unmaskicon: withCtx(({toggleCallback}) => [createVNode(unref(script$9), {onClick: toggleCallback, class: "end-3 text-surface-500 dark:text-surface-400 absolute top-1/2 -mt-2 w-4 h-4"}, null, 8, ["onClick"])]), _: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _sfc_main$w = defineComponent({
    __name: "Password",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const props2 = __props;
     const text2 = useModel(__props, "modelValue");
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? text2.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (text2.value = val) : eggExpectedModification())});
     const innerModel = ref(text2.value);
     const overlayParent = computed(() => getCurrentInstance$1()?.root.vnode.el?.parentElement);
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$x, {modelValue: innerModel.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (innerModel.value = $event)), fluid: "", "toggle-mask": "", "append-to": overlayParent.value, onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation()), onFocus: _cache[2] || (_cache[2] = (e) => _ctx.$emit("focus", e)), onBlur: _cache[3] || (_cache[3] = (e) => _ctx.$emit("blur", e)), "pt:root:onchange": (_e2) => (displayValue.value = innerModel.value)}, null, 8, ["modelValue", "append-to", "pt:root:onchange"]));
     };
    },
   });
   const _hoisted_1$J = ["title"];
   const _sfc_main$v = defineComponent({
    __name: "Display",
    props: mergeModels({item: {}, displayValue: {}, useMobileLayout: {type: Boolean}, onClick: {type: Function}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const props2 = __props;
     const text2 = useModel(__props, "modelValue");
     const noDisplayValue = computed(() => typeof props2.displayValue === "undefined");
     const displayValue = computed({get: () => (noDisplayValue.value ? text2.value : props2.displayValue), set: (val) => (noDisplayValue.value ? (text2.value = val) : eggExpectedModification())});
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock(Fragment, null, [createElementVNode("input", {class: "hidden", type: "checkbox", onClick: _cache[0] || (_cache[0] = (...args) => __props.onClick && __props.onClick(...args))}), createElementVNode("div", mergeProps(_ctx.$attrs, {class: "text-surface-500 dark:text-surface-400 truncate", title: displayValue.value}), toDisplayString$1(displayValue.value), 17, _hoisted_1$J)], 64));
     };
    },
   });
   const _sfc_main$u = defineComponent({
    __name: "SettingInput",
    props: mergeModels({type: {}, item: {}, props: {}, displayValue: {}, useMobileLayout: {type: Boolean}}, {modelValue: {}, modelModifiers: {}}),
    emits: mergeModels(["focus", "blur"], ["update:modelValue"]),
    setup(__props) {
     const model = useModel(__props, "modelValue");
     const componentsMap = {text: _sfc_main$G, number: _sfc_main$E, switch: _sfc_main$C, select: _sfc_main$A, button: _sfc_main$y, password: _sfc_main$w, display: _sfc_main$v};
     const component = computed(() => {
      return componentsMap[__props.type];
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        resolveDynamicComponent(component.value),
        mergeProps({modelValue: model.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (model.value = $event)), item: __props.item, "display-value": __props.displayValue, "use-mobile-layout": __props.useMobileLayout}, __props.props ?? {}, {onFocus: _cache[1] || (_cache[1] = (e) => _ctx.$emit("focus", e)), onBlur: _cache[2] || (_cache[2] = (e) => _ctx.$emit("blur", e))}),
        createSlots({_: 2}, [
         renderList(Object.entries(__props.item.slots ?? {}), ([name, comp]) => {
          return {name, fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(comp), normalizeProps(guardReactiveProps(slotProps ?? {})), null, 16))])};
         }),
        ]),
        1040,
        ["modelValue", "item", "display-value", "use-mobile-layout"],
       )
      );
     };
    },
   });
   const globalStorage = new UserscriptStorage({GM_getValue: _GM_getValue, GM_setValue: _GM_setValue, GM_deleteValue: _GM_deleteValue, GM_listValues: _GM_listValues, GM_addValueChangeListener: _GM_addValueChangeListener}, {api: {cacheExpires: 60}, downloader: {provider: "browser", filename: "{Name}", noCoverFile: false, downloadOriginalImage: true, abortFiles: "prompt", concurrent: 5, textContent: "none", autoRetry: 3, providerSettings: {browser: {}, fsa: {}, aria2: {endpoint: "http://127.0.0.1:6800/jsonrpc", secret: "", dir: "", interval: 1}}}, settings: {helpOnInput: true}, debugging: {saveLogs: false, logs: []}});
   function makeStorageRef(key, storage2 = globalStorage, autoClear = ["", null, void 0], useDefaultValue = true) {
    const val = ref(storage2.get(key));
    autoClear === true && (autoClear = [null, void 0, ""]);
    autoClear === false && (autoClear = []);
    storage2.watch(key, (_key, _oldVal, newVal, _remote) => {
     if (!deepEqual(val.value, newVal)) {
      if (storage2.has(key) || useDefaultValue) {
       val.value = newVal;
      } else {
       val.value = void 0;
      }
     }
    });
    watch(val, (value2) => {
     if (autoClear.includes(value2)) {
      storage2.has(key) && storage2.delete(key);
     } else {
      if (!deepEqual(storage2.get(key), value2)) {
       storage2.set(key, value2);
      } else {
       if (!storage2.has(key) && value2 !== void 0) {
        storage2.set(key, value2);
       }
      }
     }
    });
    return val;
   }
   const _hoisted_1$I = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$u(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$I, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M10.25 16.25a.74.74 0 0 1-.53-.25a.75.75 0 0 1 0-1.06l3-3l-3-3A.75.75 0 0 1 10.78 8l3.5 3.5a.75.75 0 0 1 0 1.06L10.78 16a.74.74 0 0 1-.53.25"}, null, -1)]))]));
   }
   const AngleRightIcon = markRaw({name: "prime-angle-right", render: render$u});
   const _hoisted_1$H = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$t(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$H, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z"}, null, -1)]))]));
   }
   const PrimeTimes = markRaw({name: "prime-times", render: render$t});
   const _hoisted_1$G = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$s(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$G, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M9 18.25a.74.74 0 0 1-.53-.25l-5-5a.75.75 0 1 1 1.06-1L9 16.44L19.47 6a.75.75 0 0 1 1.06 1l-11 11a.74.74 0 0 1-.53.25"}, null, -1)]))]));
   }
   const PrimeCheck = markRaw({name: "prime-check", render: render$s});
   const _hoisted_1$F = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$r(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$F, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M12 3c-4.96 0-9 4.04-9 9s4.04 9 9 9s9-4.04 9-9s-4.04-9-9-9m0 16.5c-4.14 0-7.5-3.36-7.5-7.5S7.86 4.5 12 4.5s7.5 3.36 7.5 7.5s-3.36 7.5-7.5 7.5m2.3-11.8c.61.61.95 1.43.95 2.3s-.34 1.68-.95 2.3c-.43.43-.97.73-1.55.86v.34c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1c0-.41.34-.75.75-.75A1.74 1.74 0 0 0 13.75 10c0-.47-.18-.91-.51-1.24c-.66-.66-1.81-.66-2.47 0c-.33.33-.51.77-.51 1.24c0 .41-.34.75-.75.75s-.75-.34-.75-.75c0-.87.34-1.68.95-2.3c1.23-1.23 3.37-1.23 4.6 0ZM13 16.25c0 .55-.45 1-1 1s-1-.45-1-1s.45-1 1-1s1 .45 1 1"}, null, -1)]))]));
   }
   const QuestionCircleIcon = markRaw({name: "prime-question-circle", render: render$r});
   const _hoisted_1$E = {class: "text-sm grow shrink truncate"};
   const _hoisted_2$9 = {class: "flex flex-col gap-5"};
   const _hoisted_3$7 = {key: 0};
   const _hoisted_4$6 = {key: 1};
   const _hoisted_5$6 = ["innerHTML"];
   const _hoisted_6$6 = ["innerHTML"];
   const _sfc_main$t = defineComponent({
    __name: "SettingItem",
    props: {item: {}},
    setup(__props) {
     const {t: t2} = useI18n();
     const storage2 = globalStorage.withKeys("settings");
     const $gui = i18nKeys.$settings.$gui;
     const status = reactive(
      (() => {
       const initVal = __props.item.value;
       const modified = computed(() => !deepEqual(__props.item.value, initVal));
       const extras = computed(() => {
        const extras2 = [];
        isDisabledGUI(__props.item.disabled) && extras2.push(dgui2ecpt(__props.item.disabled));
        __props.item.reload && modified.value && extras2.push({text: t2(i18nKeys.$settings.$gui.$reloadToApply), props: {class: "text-primary-700 dark:text-primary-300"}});
        return extras2;
       });
       const display = computed(() => (isDisabledGUI(__props.item.disabled) ? __props.item.disabled.value : void 0));
       return {initVal, modified, extras, display};
       function isDisabledGUI(val) {
        return typeof val === "string" || (typeof val === "object" && val !== null && Object.hasOwn(val, "text"));
       }
       function dgui2ecpt(ui) {
        return ui;
       }
      })(),
     );
     const instance = getCurrentInstance$1();
     const overlayParent = computed(() => instance?.root.vnode.el?.parentElement);
     const helpVisible = ref(false);
     const toggleHelpText = () => (helpVisible.value ? hideHelpText() : showHelpText());
     const showHelpText = () => (helpVisible.value = true);
     const hideHelpText = () => (helpVisible.value = false);
     const helpOnInput = ref(storage2.get("helpOnInput"));
     watch(helpOnInput, (val) => storage2.set("helpOnInput", val));
     const noDialogTypes = ["switch", "button", "display"];
     const noMobilePopup = computed(() => noDialogTypes.includes(__props.item.type));
     const useMobileLayout = getIsMobileLayout();
     const inputVisible = ref(false);
     const dialogParent = computed(() => getCurrentInstance$1()?.root.vnode.el?.parentElement);
     const tempVal = ref(__props.item.value);
     const submitVal = () => {
      inputVisible.value = false;
      __props.item.value = tempVal.value;
     };
     const resetVal = () => {
      inputVisible.value = false;
      tempVal.value = __props.item.value;
     };
     const itemValStr = computed(() => {
      switch (__props.item.type) {
       case "text":
        return __props.item.value;
       case "number":
        return __props.item.value.toString();
       case "switch":
        return t2($gui.$valueString.$switch[__props.item.value ? "$true" : "$false"]);
       case "select":
        return __props.item.props.options.find((val) => val[__props.item.props.optionValue] === __props.item.value)[__props.item.props.optionLabel];
       case "button":
        return __props.item.value;
      }
     });
     return (_ctx, _cache) => {
      return withDirectives(
       (openBlock(),
       createBlock(
        _sfc_main$I,
        {disabled: !!__props.item.disabled, hidden: __props.item.hidden, label: __props.item.label, caption: __props.item.caption, icon: __props.item.icon, extras: status.extras, "right-class": {"min-w-fit": !unref(useMobileLayout), "max-w-[30%]": true}, onClick: _cache[6] || (_cache[6] = ($event) => (inputVisible.value = true))},
        createSlots({right: withCtx(() => [!unref(useMobileLayout) ? (openBlock(), createBlock(_sfc_main$u, {key: 0, modelValue: __props.item.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (__props.item.value = $event)), type: __props.item.type, props: __props.item.props, "display-value": status.display, "use-mobile-layout": unref(useMobileLayout), item: __props.item}, null, 8, ["modelValue", "type", "props", "display-value", "use-mobile-layout", "item"])) : (openBlock(), createElementBlock("div", {key: 1, class: normalizeClass(["flex flex-row shrink w-full", {"text-surface-500 dark:text-surface-400": !noMobilePopup.value}])}, [noMobilePopup.value ? (openBlock(), createBlock(_sfc_main$u, {key: 0, modelValue: __props.item.value, "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => (__props.item.value = $event)), type: __props.item.type, props: __props.item.props, "display-value": status.display, "use-mobile-layout": unref(useMobileLayout), item: __props.item}, null, 8, ["modelValue", "type", "props", "display-value", "use-mobile-layout", "item"])) : (openBlock(), createElementBlock(Fragment, {key: 1}, [createElementVNode("span", _hoisted_1$E, toDisplayString$1(itemValStr.value), 1), createVNode(unref(AngleRightIcon), {class: "flex flex-row justify-center items-center shrink-0 grow-0"}), dialogParent.value ? (openBlock(), createBlock(_sfc_main$N, {key: 0, visible: inputVisible.value, "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => (inputVisible.value = $event)), "append-to": dialogParent.value, header: __props.item.label, "pt:root:class": "w-full h-full", "pt:content:class": "w-full h-full", modal: "", "dismissable-mask": ""}, {footer: withCtx(() => [createVNode(_sfc_main$O, {variant: unref(useMobileLayout) ? void 0 : "text", label: unref(t2)(unref($gui).$mobileDialog.$cancel), "pt:root:class": {grow: unref(useMobileLayout)}, onClick: resetVal}, {icon: withCtx(() => [createVNode(unref(PrimeTimes))]), _: 1}, 8, ["variant", "label", "pt:root:class"]), createVNode(_sfc_main$z, {variant: unref(useMobileLayout) ? void 0 : "text", label: unref(t2)(unref($gui).$mobileDialog.$ok), "pt:root:class": {grow: unref(useMobileLayout)}, onClick: submitVal}, {icon: withCtx(() => [createVNode(unref(PrimeCheck))]), _: 1}, 8, ["variant", "label", "pt:root:class"])]), default: withCtx(() => [createElementVNode("div", _hoisted_2$9, [__props.item.caption ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString$1(__props.item.caption), 1)) : createCommentVNode("", true), createVNode(_sfc_main$u, {modelValue: tempVal.value, "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => (tempVal.value = $event)), type: __props.item.type, props: __props.item.props, "display-value": status.display, "use-mobile-layout": unref(useMobileLayout), item: __props.item}, null, 8, ["modelValue", "type", "props", "display-value", "use-mobile-layout", "item"]), __props.item.help ? (openBlock(), createElementBlock("div", _hoisted_4$6, [typeof __props.item.help === "string" ? (openBlock(), createElementBlock("div", {key: 0, innerHTML: __props.item.help}, null, 8, _hoisted_5$6)) : (openBlock(), createBlock(resolveDynamicComponent(__props.item.help), {key: 1}))])) : createCommentVNode("", true)])]), _: 1}, 8, ["visible", "append-to", "header"])) : createCommentVNode("", true)], 64))], 2))]), _: 2}, [
         __props.item.help && !unref(useMobileLayout)
          ? {
             name: "text-extension",
             fn: withCtx(() => [
              createElementVNode(
               "div",
               {
                class: "cursor-pointer p-2 text-xl",
                onClick:
                 _cache[4] ||
                 (_cache[4] = (e) => {
                  e.preventDefault();
                  e.stopPropagation();
                  toggleHelpText();
                 }),
               },
               [createVNode(unref(QuestionCircleIcon))],
              ),
              overlayParent.value ? (openBlock(), createBlock(_sfc_main$N, {key: 0, visible: helpVisible.value, "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => (helpVisible.value = $event)), "append-to": overlayParent.value, header: unref(t2)(unref(i18nKeys).$settings.$gui.$helpHeader, {name: __props.item.label}), "pt:root:class": "border-solid border-1 border-surface-200 dark:border-surface-700"}, {default: withCtx(() => [typeof __props.item.help === "string" ? (openBlock(), createElementBlock("div", {key: 0, innerHTML: __props.item.help}, null, 8, _hoisted_6$6)) : (openBlock(), createBlock(resolveDynamicComponent(__props.item.help), {key: 1}))]), _: 1}, 8, ["visible", "append-to", "header"])) : createCommentVNode("", true),
             ]),
             key: "0",
            }
          : void 0,
        ]),
        1032,
        ["disabled", "hidden", "label", "caption", "icon", "extras", "right-class"],
       )),
       [[vShow, !__props.item.hidden]],
      );
     };
    },
   });
   const _sfc_main$s = defineComponent({
    __name: "AccordionPanel",
    setup(__props) {
     const props2 = __props;
     const theme = ref({root: `flex flex-col border-b border-surface-200 dark:border-surface-700`});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$C), {value: props2.value, unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {default: withCtx(() => [renderSlot(_ctx.$slots, "default")]), _: 3}, 8, ["value", "pt", "ptOptions"]));
     };
    },
   });
   const _sfc_main$r = defineComponent({
    __name: "AccordionHeader",
    setup(__props) {
     const theme = ref({
      root: `cursor-pointer disabled:pointer-events-none disabled:opacity-60 flex items-center justify-between p-[1.125rem] font-semibold
        bg-surface-0 dark:bg-surface-900
        text-surface-500 dark:text-surface-400
        hover:text-surface-700 dark:hover:text-surface-0
        p-active:text-surface-700 dark:p-active:text-surface-0
        transition-colors duration-200
        focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-[-1px] focus-visible:outline-primary`,
     });
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$D), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {toggleicon: withCtx(({active: active3}) => [active3 ? (openBlock(), createBlock(unref(script$G), {key: 0})) : (openBlock(), createBlock(unref(script$E), {key: 1}))]), default: withCtx(() => [renderSlot(_ctx.$slots, "default")]), _: 3}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const _sfc_main$q = defineComponent({
    __name: "AccordionContent",
    setup(__props) {
     const theme = ref({root: `flex flex-col`, content: `bg-surface-0 dark:bg-surface-900 text-surface-700 dark:text-surface-0 pt-0 px-[1.125rem] pb-[1.125rem]`, transition: {enterFromClass: "max-h-0", enterActiveClass: "overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]", enterToClass: "max-h-[1000px]", leaveFromClass: "max-h-[1000px]", leaveActiveClass: "overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]", leaveToClass: "max-h-0"}});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$F), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {default: withCtx(() => [renderSlot(_ctx.$slots, "default")]), _: 3}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const _hoisted_1$D = {class: "flex flex-col"};
   const _hoisted_2$8 = {key: 0, class: "flex justify-center items-center w-full h-full text-base"};
   const _sfc_main$p = defineComponent({
    __name: "SettingGroup",
    props: {items: {}, group: {}},
    setup(__props) {
     const {t: t2} = useI18n();
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$s,
        {value: __props.group.id},
        {
         default: withCtx(() => [
          createVNode(_sfc_main$r, null, {default: withCtx(() => [createTextVNode(toDisplayString$1(__props.group.name), 1)]), _: 1}),
          createVNode(_sfc_main$q, null, {
           default: withCtx(() => [
            createElementVNode("div", _hoisted_1$D, [
             (openBlock(true),
             createElementBlock(
              Fragment,
              null,
              renderList(__props.items, (item2, i2) => {
               return (openBlock(), createBlock(_sfc_main$t, {item: item2, key: i2}, null, 8, ["item"]));
              }),
              128,
             )),
             __props.items.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$8, toDisplayString$1(unref(t2)(unref(i18nKeys).$settings.$gui.$noItemsPlaceholder)), 1)) : createCommentVNode("", true),
            ]),
           ]),
           _: 1,
          }),
         ]),
         _: 1,
        },
        8,
        ["value"],
       )
      );
     };
    },
   });
   const _sfc_main$o = defineComponent({
    __name: "Accordion",
    setup(__props) {
     const theme = ref({root: ``});
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$B), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {default: withCtx(() => [renderSlot(_ctx.$slots, "default")]), _: 3}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const _hoisted_1$C = {class: "flex flex-col gap-4 w-full h-full p-2"};
   const _hoisted_2$7 = {key: 0};
   const _hoisted_3$6 = {key: 1, class: "flex justify-center items-center w-full h-full"};
   const _sfc_main$n = defineComponent({
    __name: "SettingModule",
    props: {module: {}},
    setup(__props) {
     const {t: t2} = useI18n();
     const props2 = __props;
     const module = computed(() => props2.module);
     const filterGroupItems = (groupId) => module.value.items.filter((item2) => item2.group === groupId);
     const standaloneItems = computed(() => filterGroupItems(void 0));
     const groups = computed(() => {
      const rawGroups = module.value.groups ?? [];
      const groups2 = rawGroups.map((group) => ({items: filterGroupItems(group.id), group}));
      groups2.sort((g1, g2) => g1.group.index - g2.group.index);
      return groups2;
     });
     const expandedGroups = ref([]);
     watch(
      groups,
      (groups2, oldGroups) => {
       if (!oldGroups || groups2.length > oldGroups.length) expandedGroups.value = groups2.map((g2) => g2.group.id);
      },
      {deep: true, immediate: true},
     );
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createElementBlock("div", _hoisted_1$C, [
        standaloneItems.value.length > 0
         ? (openBlock(),
           createElementBlock("div", _hoisted_2$7, [
            (openBlock(true),
            createElementBlock(
             Fragment,
             null,
             renderList(standaloneItems.value, (item2, i2) => {
              return (openBlock(), createBlock(_sfc_main$t, {item: item2, key: i2}, null, 8, ["item"]));
             }),
             128,
            )),
           ]))
         : createCommentVNode("", true),
        createVNode(
         _sfc_main$o,
         {value: expandedGroups.value, multiple: ""},
         {
          default: withCtx(() => [
           (openBlock(true),
           createElementBlock(
            Fragment,
            null,
            renderList(groups.value, (group, i2) => {
             return (openBlock(), createBlock(_sfc_main$p, {group: group.group, items: group.items, key: i2}, null, 8, ["group", "items"]));
            }),
            128,
           )),
          ]),
          _: 1,
         },
         8,
         ["value"],
        ),
        module.value.items.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString$1(unref(t2)(unref(i18nKeys).$settings.$gui.$noItemsPlaceholder)), 1)) : createCommentVNode("", true),
       ])
      );
     };
    },
   });
   const _hoisted_1$B = {class: "flex justify-center items-center w-full h-full"};
   const _sfc_main$m = defineComponent({
    __name: "app",
    props: {modules: {}},
    setup(__props, {expose: __expose}) {
     const {t: t2} = useI18n();
     const props2 = __props;
     const modules2 = computed(() => {
      return props2.modules.value.slice().sort((m1, m2) => m1.index - m2.index);
     });
     const options3 = computed(() => modules2.value.map((module) => ({id: module.id, name: module.name})));
     const moduleId = ref();
     const visible3 = ref(false);
     const layout = getLayoutRef(1.2);
     const backdropDismiss = true;
     __expose({visible: visible3});
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$N,
        {visible: visible3.value, "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => (visible3.value = $event)), header: unref(t2)(unref(i18nKeys).$settings.$gui.$title), dismissableMask: unref(backdropDismiss), "append-to": "self", modal: ""},
        {
         default: withCtx(() => [
          createVNode(
           _sfc_main$J,
           {class: "w-[80vw] h-[80vh]", layout: unref(layout), modelValue: moduleId.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (moduleId.value = $event)), options: options3.value, "option-label": "name", "option-value": "id"},
           {
            placeholder: withCtx(() => [createElementVNode("div", _hoisted_1$B, toDisplayString$1(unref(t2)(unref(i18nKeys).$settings.$gui.$tabpanelPlaceholder)), 1)]),
            default: withCtx(() => [
             (openBlock(true),
             createElementBlock(
              Fragment,
              null,
              renderList(modules2.value, (module) => {
               return (openBlock(), createBlock(_sfc_main$M, {name: module.id, class: "w-full h-full"}, {default: withCtx(() => [createVNode(_sfc_main$n, {module}, null, 8, ["module"])]), _: 2}, 1032, ["name"]));
              }),
              256,
             )),
            ]),
            _: 1,
           },
           8,
           ["layout", "modelValue", "options"],
          ),
         ]),
         _: 1,
        },
        8,
        ["visible", "header", "dismissableMask"],
       )
      );
     };
    },
   });
   const t$9 = i18n.global.t;
   const modules$1 = ref([]);
   const settings = computed(() =>
    modules$1.value.reduce((settings2, module) => {
     const moduleSettings = module.items.reduce((moduleSettings2, item2) => {
      moduleSettings2[item2.id] = item2.value;
      return moduleSettings2;
     }, {});
     settings2[module.id] = moduleSettings;
     return settings2;
    }, {}),
   );
   const main$c = defineModule({
    id: "settings",
    name: t$9(i18nKeys.$settings.$name),
    checkers: {type: "switch", value: true},
    async enter() {
     const {root: root20} = createShadowApp(_sfc_main$m, {props: {modules: modules$1}, options: {app: {classes: "dark"}}});
     _GM_registerMenuCommand(t$9(i18nKeys.$settings.$menu.$label), () => (root20.visible = true));
    },
   });
   function registerModule(module) {
    if (modules$1.value.some((m2) => m2.id === module.id)) throw TypeError(`duplicate id ${module.id}`);
    modules$1.value.push(reactive(module));
   }
   function registerItem(id3, items) {
    const module = modules$1.value.find((m2) => m2.id === id3);
    if (!module) throw new TypeError(`cannot find module with id ${id3}`);
    items = Array.isArray(items) ? items : [items];
    const reactiveItems = items.map((item2) => reactive(item2));
    module.items.push(...reactiveItems);
   }
   function registerGroup(id3, group) {
    const module = modules$1.value.find((m2) => m2.id === id3);
    if (!module) throw new TypeError(`cannot find module with id ${id3}`);
    if (module.groups?.some((g2) => g2.id === group.id)) throw new TypeError(`duplicate id ${id3}`);
    Array.isArray(module.groups) ? module.groups.push(group) : (module.groups = [group]);
   }
   function moduleExists(id3) {
    return modules$1.value.some((m2) => m2.id === id3);
   }
   function groupExists(moduleId, groupId) {
    const module = modules$1.value.find((m2) => m2.id === moduleId);
    if (!module) throw new TypeError(`cannot find module with id ${moduleId}`);
    return module.groups?.some((g2) => g2.id === groupId) ?? false;
   }
   function onModuleRegistered(id3, callback) {
    const {promise, resolve} = Promise.withResolvers();
    const handle = watch(
     modules$1,
     (modules2) => {
      if (modules2.some((m2) => m2.id === id3)) {
       try {
        (callback ?? resolve)();
       } finally {
        handle.stop();
       }
      }
     },
     {deep: true, immediate: true},
    );
    return callback ? void 0 : promise;
   }
   const main$d = Object.freeze(Object.defineProperty({__proto__: null, default: main$c, groupExists, moduleExists, modules: modules$1, onModuleRegistered, registerGroup, registerItem, registerModule, settings}, Symbol.toStringTag, {value: "Module"}));
   const _hoisted_1$A = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$q(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$A, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M20 8.7H4a.75.75 0 1 1 0-1.5h16a.75.75 0 0 1 0 1.5"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M16.44 20.75H7.56A2.4 2.4 0 0 1 5 18.49V8a.75.75 0 0 1 1.5 0v10.49c0 .41.47.76 1 .76h8.88c.56 0 1-.35 1-.76V8A.75.75 0 1 1 19 8v10.49a2.4 2.4 0 0 1-2.56 2.26m.12-13a.74.74 0 0 1-.75-.75V5.51c0-.41-.48-.76-1-.76H9.22c-.55 0-1 .35-1 .76V7a.75.75 0 1 1-1.5 0V5.51a2.41 2.41 0 0 1 2.5-2.26h5.56a2.41 2.41 0 0 1 2.53 2.26V7a.75.75 0 0 1-.75.76Z"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M10.22 17a.76.76 0 0 1-.75-.75v-4.53a.75.75 0 0 1 1.5 0v4.52a.75.75 0 0 1-.75.76m3.56 0a.75.75 0 0 1-.75-.75v-4.53a.75.75 0 0 1 1.5 0v4.52a.76.76 0 0 1-.75.76"}, null, -1)]))]));
   }
   const TrashIcon = markRaw({name: "prime-trash", render: render$q});
   const _hoisted_1$z = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$p(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$z, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M18.05 6.08a8.39 8.39 0 0 0-11.84 0L5 7.29V4.38a.75.75 0 0 0-1.5 0v4.74a.76.76 0 0 0 .75.76H9a.75.75 0 0 0 0-1.5H6l1.27-1.24a6.88 6.88 0 0 1 9.72 0c6.19 6.69-3 15.91-9.72 9.72a.75.75 0 0 0-1.06 0a.74.74 0 0 0 0 1.06A8.37 8.37 0 0 0 18.05 6.08"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M12 7.75a.76.76 0 0 0-.75.75V12a.75.75 0 0 0 .22.53L14 15a.74.74 0 0 0 .53.22A.75.75 0 0 0 15 14l-2.28-2.28V8.5a.76.76 0 0 0-.72-.75"}, null, -1)]))]));
   }
   const HistoryIcon = markRaw({name: "prime-history", render: render$p});
   const instanceOfAny = (object, constructors) => constructors.some((c2) => object instanceof c2);
   let idbProxyableTypes;
   let cursorAdvanceMethods;
   function getIdbProxyableTypes() {
    return idbProxyableTypes || (idbProxyableTypes = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction]);
   }
   function getCursorAdvanceMethods() {
    return cursorAdvanceMethods || (cursorAdvanceMethods = [IDBCursor.prototype.advance, IDBCursor.prototype.continue, IDBCursor.prototype.continuePrimaryKey]);
   }
   const transactionDoneMap = new WeakMap();
   const transformCache = new WeakMap();
   const reverseTransformCache = new WeakMap();
   function promisifyRequest(request2) {
    const promise = new Promise((resolve, reject2) => {
     const unlisten = () => {
      request2.removeEventListener("success", success);
      request2.removeEventListener("error", error);
     };
     const success = () => {
      resolve(wrap(request2.result));
      unlisten();
     };
     const error = () => {
      reject2(request2.error);
      unlisten();
     };
     request2.addEventListener("success", success);
     request2.addEventListener("error", error);
    });
    reverseTransformCache.set(promise, request2);
    return promise;
   }
   function cacheDonePromiseForTransaction(tx) {
    if (transactionDoneMap.has(tx)) return;
    const done = new Promise((resolve, reject2) => {
     const unlisten = () => {
      tx.removeEventListener("complete", complete);
      tx.removeEventListener("error", error);
      tx.removeEventListener("abort", error);
     };
     const complete = () => {
      resolve();
      unlisten();
     };
     const error = () => {
      reject2(tx.error || new DOMException("AbortError", "AbortError"));
      unlisten();
     };
     tx.addEventListener("complete", complete);
     tx.addEventListener("error", error);
     tx.addEventListener("abort", error);
    });
    transactionDoneMap.set(tx, done);
   }
   let idbProxyTraps = {
    get(target2, prop, receiver) {
     if (target2 instanceof IDBTransaction) {
      if (prop === "done") return transactionDoneMap.get(target2);
      if (prop === "store") {
       return receiver.objectStoreNames[1] ? void 0 : receiver.objectStore(receiver.objectStoreNames[0]);
      }
     }
     return wrap(target2[prop]);
    },
    set(target2, prop, value2) {
     target2[prop] = value2;
     return true;
    },
    has(target2, prop) {
     if (target2 instanceof IDBTransaction && (prop === "done" || prop === "store")) {
      return true;
     }
     return prop in target2;
    },
   };
   function replaceTraps(callback) {
    idbProxyTraps = callback(idbProxyTraps);
   }
   function wrapFunction(func) {
    if (getCursorAdvanceMethods().includes(func)) {
     return function (...args) {
      func.apply(unwrap(this), args);
      return wrap(this.request);
     };
    }
    return function (...args) {
     return wrap(func.apply(unwrap(this), args));
    };
   }
   function transformCachableValue(value2) {
    if (typeof value2 === "function") return wrapFunction(value2);
    if (value2 instanceof IDBTransaction) cacheDonePromiseForTransaction(value2);
    if (instanceOfAny(value2, getIdbProxyableTypes())) return new Proxy(value2, idbProxyTraps);
    return value2;
   }
   function wrap(value2) {
    if (value2 instanceof IDBRequest) return promisifyRequest(value2);
    if (transformCache.has(value2)) return transformCache.get(value2);
    const newValue = transformCachableValue(value2);
    if (newValue !== value2) {
     transformCache.set(value2, newValue);
     reverseTransformCache.set(newValue, value2);
    }
    return newValue;
   }
   const unwrap = (value2) => reverseTransformCache.get(value2);
   function openDB(name, version, {blocked, upgrade, blocking, terminated} = {}) {
    const request2 = indexedDB.open(name, version);
    const openPromise = wrap(request2);
    if (upgrade) {
     request2.addEventListener("upgradeneeded", (event) => {
      upgrade(wrap(request2.result), event.oldVersion, event.newVersion, wrap(request2.transaction), event);
     });
    }
    if (blocked) {
     request2.addEventListener("blocked", (event) => blocked(event.oldVersion, event.newVersion, event));
    }
    openPromise
     .then((db) => {
      if (terminated) db.addEventListener("close", () => terminated());
      if (blocking) {
       db.addEventListener("versionchange", (event) => blocking(event.oldVersion, event.newVersion, event));
      }
     })
     .catch(() => {});
    return openPromise;
   }
   const readMethods = ["get", "getKey", "getAll", "getAllKeys", "count"];
   const writeMethods = ["put", "add", "delete", "clear"];
   const cachedMethods = new Map();
   function getMethod(target2, prop) {
    if (!(target2 instanceof IDBDatabase && !(prop in target2) && typeof prop === "string")) {
     return;
    }
    if (cachedMethods.get(prop)) return cachedMethods.get(prop);
    const targetFuncName = prop.replace(/FromIndex$/, "");
    const useIndex = prop !== targetFuncName;
    const isWrite = writeMethods.includes(targetFuncName);
    if (!(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) || !(isWrite || readMethods.includes(targetFuncName))) {
     return;
    }
    const method = async function (storeName, ...args) {
     const tx = this.transaction(storeName, isWrite ? "readwrite" : "readonly");
     let target3 = tx.store;
     if (useIndex) target3 = target3.index(args.shift());
     return (await Promise.all([target3[targetFuncName](...args), isWrite && tx.done]))[0];
    };
    cachedMethods.set(prop, method);
    return method;
   }
   replaceTraps((oldTraps) => ({...oldTraps, get: (target2, prop, receiver) => getMethod(target2, prop) || oldTraps.get(target2, prop, receiver), has: (target2, prop) => !!getMethod(target2, prop) || oldTraps.has(target2, prop)}));
   const advanceMethodProps = ["continue", "continuePrimaryKey", "advance"];
   const methodMap = {};
   const advanceResults = new WeakMap();
   const ittrProxiedCursorToOriginalProxy = new WeakMap();
   const cursorIteratorTraps = {
    get(target2, prop) {
     if (!advanceMethodProps.includes(prop)) return target2[prop];
     let cachedFunc = methodMap[prop];
     if (!cachedFunc) {
      cachedFunc = methodMap[prop] = function (...args) {
       advanceResults.set(this, ittrProxiedCursorToOriginalProxy.get(this)[prop](...args));
      };
     }
     return cachedFunc;
    },
   };
   async function* iterate(...args) {
    let cursor = this;
    if (!(cursor instanceof IDBCursor)) {
     cursor = await cursor.openCursor(...args);
    }
    if (!cursor) return;
    cursor = cursor;
    const proxiedCursor = new Proxy(cursor, cursorIteratorTraps);
    ittrProxiedCursorToOriginalProxy.set(proxiedCursor, cursor);
    reverseTransformCache.set(proxiedCursor, unwrap(cursor));
    while (cursor) {
     yield proxiedCursor;
     cursor = await (advanceResults.get(proxiedCursor) || cursor.continue());
     advanceResults.delete(proxiedCursor);
    }
   }
   function isIteratorProp(target2, prop) {
    return (prop === Symbol.asyncIterator && instanceOfAny(target2, [IDBIndex, IDBObjectStore, IDBCursor])) || (prop === "iterate" && instanceOfAny(target2, [IDBIndex, IDBObjectStore]));
   }
   replaceTraps((oldTraps) => ({
    ...oldTraps,
    get(target2, prop, receiver) {
     if (isIteratorProp(target2, prop)) return iterate;
     return oldTraps.get(target2, prop, receiver);
    },
    has(target2, prop) {
     return isIteratorProp(target2, prop) || oldTraps.has(target2, prop);
    },
   }));
   const IDB_NAME$1 = "kemono-downloader.cache";
   const STORE_NAME$1 = "api";
   const storage$7 = globalStorage.withKeys("api");
   const cache = new Map();
   loadCacheData(cache);
   const channel = new TypedBroadcastChannel("kemono-downloader:api-cache");
   channel.onMessage((update) => {
    switch (update.type) {
     case "update": {
      const {key, item: item2} = update;
      cache.set(key, toMemoryItem(item2));
      break;
     }
     case "remove": {
      cache.delete(update.key);
      break;
     }
     case "clear": {
      cache.clear();
      break;
     }
    }
   });
   const cacheExpires = makeStorageRef("cacheExpires", storage$7, true, false);
   const cacheExpiresMS = computed(() => cacheExpires.value * 60 * 1e3);
   const getCacheKey = (request2) => {
    return request2.url;
   };
   const saveCache = (request2, data17) => {
    const method = request2.method?.toUpperCase();
    if (method && method !== "GET") return;
    const cacheKey = getCacheKey(request2);
    const item2 = {time: Date.now(), data: Promise.resolve(data17), completed: !(data17 instanceof Promise)};
    cache.set(cacheKey, item2);
    item2.completed &&
     toSerializableItem(item2).then((serialized) => {
      channel.post({type: "update", key: cacheKey, item: serialized});
      updateIndexedDBCache(cacheKey, serialized);
     });
   };
   const getCache = (request2, completed = false) => {
    const cacheKey = getCacheKey(request2);
    const result = cache.get(cacheKey);
    if (!result) return null;
    if (completed && !result.completed) return null;
    if (Date.now() - result.time > cacheExpiresMS.value) {
     removeCache(request2);
     return null;
    }
    return result.data;
   };
   const hasCache = (request2, completed = false) => {
    const cacheKey = getCacheKey(request2);
    const result = cache.get(cacheKey);
    if (!result) return false;
    if (completed && !result.completed) return false;
    if (Date.now() - result.time > cacheExpiresMS.value) {
     removeCache(request2);
     return false;
    }
    return true;
   };
   const removeCache = (request2) => {
    const method = request2.method?.toUpperCase();
    if (method && method !== "GET") return false;
    const cacheKey = getCacheKey(request2);
    const exist = cache.has(cacheKey);
    exist && cache.delete(cacheKey);
    channel.post({type: "remove", key: cacheKey});
    removeIndexedDBCache(cacheKey);
    return exist;
   };
   const clearCache = () => {
    const count = cache.size;
    cache.clear();
    channel.post({type: "clear"});
    clearIndexedDBCache();
    return count;
   };
   async function loadCacheData(cache2) {
    cache2 || (cache2 = new Map());
    cache2.clear();
    const db = await openIndexedDB$1();
    const transaction = db.transaction([STORE_NAME$1], "readonly");
    const store = transaction.objectStore(STORE_NAME$1);
    for await (const cursor of store) {
     const item2 = cursor.value;
     const cacheKey = cursor.key;
     cache2.set(cacheKey, toMemoryItem(item2));
    }
    db.close();
    return cache2;
   }
   async function updateIndexedDBCache(key, item2) {
    const db = await openIndexedDB$1();
    const transaction = db.transaction([STORE_NAME$1], "readwrite");
    const store = transaction.objectStore(STORE_NAME$1);
    await store.put(item2, key);
    db.close();
   }
   async function clearIndexedDBCache() {
    const db = await openIndexedDB$1();
    const transaction = db.transaction([STORE_NAME$1], "readwrite");
    const store = transaction.objectStore(STORE_NAME$1);
    await store.clear();
    db.close();
   }
   async function removeIndexedDBCache(key) {
    const db = await openIndexedDB$1();
    const transaction = db.transaction([STORE_NAME$1], "readwrite");
    const store = transaction.objectStore(STORE_NAME$1);
    await store.delete(key);
    db.close();
   }
   async function openIndexedDB$1() {
    const checkObjectStore = (database2) => database2.objectStoreNames.contains(STORE_NAME$1) || database2.createObjectStore(STORE_NAME$1);
    const database = await openDB(IDB_NAME$1, 1, {
     upgrade(database2, _oldVersion, _newVersion, _transaction, _event) {
      checkObjectStore(database2);
     },
    });
    checkObjectStore(database);
    return database;
   }
   async function toSerializableItem(item2) {
    if (!item2.completed) throw new TypeError("Incomplete MemoryCacheItem");
    return {time: item2.time, data: await item2.data};
   }
   function toMemoryItem(item2) {
    return {time: item2.time, data: Promise.resolve(item2.data), completed: true};
   }
   const storage$6 = globalStorage.withKeys("api");
   const t$8 = i18n.global.t;
   const $api = i18nKeys.$api;
   const $settings$6 = $api.$settings;
   const defaultOptions = {cache: true};
   async function api(request2, options3 = defaultOptions) {
    if (options3.cache && hasCache(request2)) return JSON.parse(await getCache(request2));
    const headers = {Accept: "text/css"};
    request2.headers = typeof request2.headers === "object" ? Object.assign(headers, request2.headers) : headers;
    const promise = requestJson(request2);
    const jsonTextPromise = promise.then((response2) => JSON.stringify(response2));
    saveCache(request2, jsonTextPromise);
    let response;
    try {
     response = await promise;
     saveCache(request2, JSON.stringify(response));
    } catch (err) {
     removeCache(request2);
     throw err;
    }
    return response;
   }
   function post({service, creatorId, postId}, options3) {
    return api({method: "GET", url: `https://${location.host}/api/v1/${service}/user/${creatorId}/post/${postId}`}, options3);
   }
   function posts({service, creatorId, index, query}, options3) {
    const url = new URL(`https://${location.host}/api/v1/${service}/user/${creatorId}/posts`);
    typeof index === "number" && url.searchParams.set("o", index.toString());
    typeof query === "string" && url.searchParams.set("q", query);
    return api({method: "GET", url: url.href}, options3);
   }
   function profile({service, creatorId}, options3) {
    return api({method: "GET", url: `https://${location.host}/api/v1/${service}/user/${creatorId}/profile`}, options3);
   }
   function discord({serverId, channelId}) {
    if (typeof channelId === "undefined") {
     if (typeof serverId === "undefined") throw new TypeError("both serverId and channelId omitted");
     return api({method: "GET", url: `https://${location.host}/api/v1/discord/server/${serverId}`});
    } else {
     return api({method: "GET", url: `https://${location.host}/api/v1/discord/channel/${channelId}`});
    }
   }
   function isErrorResponse(data17) {
    return Object.hasOwn(data17, "error");
   }
   onModuleRegistered("self", () => {
    groupExists("self", "cache") || registerGroup("self", {id: "cache", name: t$8($settings$6.$groupCache), index: 2});
    registerItem("self", [
     {id: "api-cache-expires", type: "number", label: t$8($settings$6.$apiCacheExpires.$label), caption: t$8($settings$6.$apiCacheExpires.$caption), icon: HistoryIcon, props: {placeholder: storage$6.default("cacheExpires").toString()}, value: makeStorageRef("cacheExpires", storage$6, true, false), group: "cache"},
     {
      id: "clear-api-cache",
      type: "button",
      label: t$8($settings$6.$clearApiCache.$label),
      caption: t$8($settings$6.$clearApiCache.$caption),
      icon: TrashIcon,
      props: {
       onClick() {
        const $clearApiCache = $settings$6.$clearApiCache;
        const count = clearCache();
        toast({severity: "success", summary: t$8($clearApiCache.$cleared.$summary), detail: t$8($clearApiCache.$cleared.$detail, {count}), life: 3e3});
       },
      },
      value: ref(t$8($settings$6.$clearApiCache.$button)),
      group: "cache",
     },
    ]);
   });
   const main$a = defineModule({id: "api", name: t$8($api.$name)});
   const main$b = Object.freeze(Object.defineProperty({__proto__: null, api, default: main$a, discord, isErrorResponse, post, posts, profile}, Symbol.toStringTag, {value: "Module"}));
   class BasePostDownloadTask extends BaseMultiDownloadTask {
    info;
    data = null;
    type = "post";
    constructor(parent, info) {
     super(parent);
     this.info = info;
    }
   }
   class BasePostsDownloadTask extends BaseMultiDownloadTask {
    infos;
    type = "posts";
    constructor(parent, infos) {
     super(parent);
     this.infos = infos;
    }
   }
   var murmurhashJs = {exports: {}};
   var murmurhash3_gc = {exports: {}};
   var hasRequiredMurmurhash3_gc;
   function requireMurmurhash3_gc() {
    if (hasRequiredMurmurhash3_gc) return murmurhash3_gc.exports;
    hasRequiredMurmurhash3_gc = 1;
    (function (module) {
     function murmurhash3_32_gc(key, seed) {
      var remainder, bytes, h1, h1b, c1, c2, k1, i2;
      remainder = key.length & 3;
      bytes = key.length - remainder;
      h1 = seed;
      c1 = 3432918353;
      c2 = 461845907;
      i2 = 0;
      while (i2 < bytes) {
       k1 = (key.charCodeAt(i2) & 255) | ((key.charCodeAt(++i2) & 255) << 8) | ((key.charCodeAt(++i2) & 255) << 16) | ((key.charCodeAt(++i2) & 255) << 24);
       ++i2;
       k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
       k1 = (k1 << 15) | (k1 >>> 17);
       k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
       h1 ^= k1;
       h1 = (h1 << 13) | (h1 >>> 19);
       h1b = ((h1 & 65535) * 5 + ((((h1 >>> 16) * 5) & 65535) << 16)) & 4294967295;
       h1 = (h1b & 65535) + 27492 + ((((h1b >>> 16) + 58964) & 65535) << 16);
      }
      k1 = 0;
      switch (remainder) {
       case 3:
        k1 ^= (key.charCodeAt(i2 + 2) & 255) << 16;
       case 2:
        k1 ^= (key.charCodeAt(i2 + 1) & 255) << 8;
       case 1:
        k1 ^= key.charCodeAt(i2) & 255;
        k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
        k1 = (k1 << 15) | (k1 >>> 17);
        k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
        h1 ^= k1;
      }
      h1 ^= key.length;
      h1 ^= h1 >>> 16;
      h1 = ((h1 & 65535) * 2246822507 + ((((h1 >>> 16) * 2246822507) & 65535) << 16)) & 4294967295;
      h1 ^= h1 >>> 13;
      h1 = ((h1 & 65535) * 3266489909 + ((((h1 >>> 16) * 3266489909) & 65535) << 16)) & 4294967295;
      h1 ^= h1 >>> 16;
      return h1 >>> 0;
     }
     {
      module.exports = murmurhash3_32_gc;
     }
    })(murmurhash3_gc);
    return murmurhash3_gc.exports;
   }
   var murmurhash2_gc = {exports: {}};
   var hasRequiredMurmurhash2_gc;
   function requireMurmurhash2_gc() {
    if (hasRequiredMurmurhash2_gc) return murmurhash2_gc.exports;
    hasRequiredMurmurhash2_gc = 1;
    (function (module) {
     function murmurhash2_32_gc(str, seed) {
      var l2 = str.length,
       h2 = seed ^ l2,
       i2 = 0,
       k2;
      while (l2 >= 4) {
       k2 = (str.charCodeAt(i2) & 255) | ((str.charCodeAt(++i2) & 255) << 8) | ((str.charCodeAt(++i2) & 255) << 16) | ((str.charCodeAt(++i2) & 255) << 24);
       k2 = (k2 & 65535) * 1540483477 + ((((k2 >>> 16) * 1540483477) & 65535) << 16);
       k2 ^= k2 >>> 24;
       k2 = (k2 & 65535) * 1540483477 + ((((k2 >>> 16) * 1540483477) & 65535) << 16);
       h2 = ((h2 & 65535) * 1540483477 + ((((h2 >>> 16) * 1540483477) & 65535) << 16)) ^ k2;
       l2 -= 4;
       ++i2;
      }
      switch (l2) {
       case 3:
        h2 ^= (str.charCodeAt(i2 + 2) & 255) << 16;
       case 2:
        h2 ^= (str.charCodeAt(i2 + 1) & 255) << 8;
       case 1:
        h2 ^= str.charCodeAt(i2) & 255;
        h2 = (h2 & 65535) * 1540483477 + ((((h2 >>> 16) * 1540483477) & 65535) << 16);
      }
      h2 ^= h2 >>> 13;
      h2 = (h2 & 65535) * 1540483477 + ((((h2 >>> 16) * 1540483477) & 65535) << 16);
      h2 ^= h2 >>> 15;
      return h2 >>> 0;
     }
     {
      module.exports = murmurhash2_32_gc;
     }
    })(murmurhash2_gc);
    return murmurhash2_gc.exports;
   }
   var hasRequiredMurmurhashJs;
   function requireMurmurhashJs() {
    if (hasRequiredMurmurhashJs) return murmurhashJs.exports;
    hasRequiredMurmurhashJs = 1;
    var murmur3 = requireMurmurhash3_gc();
    var murmur2 = requireMurmurhash2_gc();
    murmurhashJs.exports = murmur3;
    murmurhashJs.exports.murmur3 = murmur3;
    murmurhashJs.exports.murmur2 = murmur2;
    return murmurhashJs.exports;
   }
   var murmurhashJsExports = requireMurmurhashJs();
   const FILESERVERS = [
    {percent: 25, value: "https://n1.kemono.cr"},
    {percent: 25, value: "https://n2.kemono.cr"},
    {percent: 25, value: "https://n3.kemono.cr"},
    {percent: "", value: "https://n4.kemono.cr"},
   ];
   function calculateBounds(values) {
    let maxHash = 2 ** 32 - 1;
    let sum = 0;
    let last3 = 0;
    return values.map(({percent, value: value2}) => {
     sum = percent ? percent + sum : 100;
     if (sum > 100) {
      throw Error("percent total is greater than 100%");
     }
     if (percent) {
      last3 += Math.floor((percent / 100) * maxHash);
      return {value: value2, maxHash: last3};
     } else {
      return {value: value2, maxHash: 0};
     }
    });
   }
   const FILESERVER_BOUNDS = calculateBounds(FILESERVERS);
   function getFileserverForValue(value2) {
    if (FILESERVERS.length) {
     const hash = murmurhashJsExports.murmur2(value2);
     for (const entry of FILESERVER_BOUNDS) {
      if (hash < entry.maxHash || entry.maxHash === 0) {
       return entry.value;
      }
     }
    }
    return "";
   }
   function fullFileURL(value2) {
    let path = `/data${value2}`;
    return `${getFileserverForValue(path)}${path}`;
   }
   const storage$5 = globalStorage.withKeys("downloader");
   function constructFilename(info, template, placeholder = null) {
    const data17 = info.data;
    template = template ?? storage$5.get("filename");
    const origName = data17.file ? (data17.file.name ?? data17.file.path.substring(data17.file.path.lastIndexOf("/") + 1)) : null;
    const dotIndex = data17.file ? origName?.lastIndexOf(".") : null;
    const dateText = (data17.post?.post ?? data17.discord)?.published ?? null;
    const date = dateText ? new Date(dateText) : null;
    const templateData = {PostID: data17.post?.post.id ?? data17.discord?.channel, CreatorID: data17.post?.post.user ?? data17.discord?.author.id, Service: data17.post?.post.service ?? "discord", P: info.p, Name: origName, Base: origName?.substring(0, dotIndex), Ext: origName?.substring(dotIndex + 1), Title: data17.post?.post.title, Creator: data17.creator?.name, Year: date?.getFullYear(), Month: date ? date?.getMonth() + 1 : null, Date: date?.getDate(), Hour: date?.getHours(), Minute: date?.getMinutes(), Second: date?.getSeconds(), Timestamp: date?.getTime(), TimeText: date?.toLocaleString()};
    const replacements = {"<": "<", ">": ">", ":": ":", '"': """, "/": "/", "\\": "\", "|": "|", "?": "?", "*": "*"};
    Object.entries(templateData).forEach(([key, val]) => {
     if (val !== void 0 && val !== null) {
      for (const [char, repl] of Object.entries(replacements)) {
       val = val.toString().replaceAll(char, repl);
      }
      templateData[key] = val;
     }
    });
    const markups = Object.keys(templateData).filter((markup) => template.toLowerCase().includes(markup.toLowerCase()));
    const rules = markups.map((markup) => {
     const [key, val] = Object.entries(templateData).find(([key2, _val]) => key2.toLowerCase() === markup.toLowerCase());
     const strPlaceholder = placeholder === null ? key : placeholder;
     return {search: "{" + key.toString() + "}", replace: val?.toString() ?? strPlaceholder};
    });
    let filepath = safeBatchReplace(template, rules);
    filepath = filepath.replaceAll(/(^|[\/\\])[ \.]+/g, "$1").replaceAll(/[ \.]+(^|[\/\\])/g, "$1");
    return filepath;
   }
   function getFullUrl(file, data17) {
    if (storage$5.get("downloadOriginalImage")) {
     if (data17) {
      const preview = data17.previews.find((p2) => p2.path === file.path);
      const server = preview?.server ?? `https://n1.${location.host}`;
      return `${server}/data${file.path}`;
     } else {
      return fullFileURL(file.path);
     }
    } else {
     return `https://img.${location.host}/thumbnail/data${file.path}`;
    }
   }
   function formatContentHTML(html) {
    return `<pre>${html}</pre>`;
   }
   function formatContentText(html) {
    return $CrE("div", {props: {innerHTML: html}}).innerText;
   }
   class Aria2IntervalCallsManager {
    tasks = {};
    aria2;
    interval;
    handle = null;
    constructor(aria22 = null, interval = 1e3) {
     this.aria2 = aria22;
     this.interval = interval;
    }
    run() {
     if (this.handle !== null) return;
     this.handle = setInterval(async () => {
      if (this.aria2 === null) {
       this.stop();
       return;
      }
      if (Object.keys(this.tasks).length === 0) return;
      const values = Object.values(this.tasks);
      const calls = structuredClone(values.map((call) => call.call));
      const callbacks = values.map((call) => call.callback);
      this.aria2.secret && calls.forEach((call) => call.params.splice(0, 0, "token:" + this.aria2.secret));
      const results = await this.aria2.sendRequest({method: "system.multicall", secret: false}, calls);
      this.aria2.sendRequest;
      results.forEach((val, i2) => callbacks[i2](Array.isArray(val) ? val[0] : val));
     }, this.interval);
    }
    stop() {
     this.handle !== null && clearInterval(this.handle);
     this.handle = null;
    }
    add(call) {
     const id3 = v4();
     this.tasks[id3] = call;
     return id3;
    }
    remove(id3) {
     delete this.tasks[id3];
    }
    setInterval(val) {
     this.interval = val;
     if (this.handle !== null) {
      this.stop();
      this.run();
     }
     return val;
    }
    getInterval() {
     return this.interval;
    }
    get isRunning() {
     return this.handle !== null;
    }
   }
   class FeatureNotSupportedError extends Error {
    description;
    provider;
    constructor(description, provider2) {
     super(`Feature not supported by provider ${provider2}: ${description}`);
     this.description = description;
     this.provider = provider2;
     this.name = "FeatureNotSupportedError";
    }
   }
   const t$7 = i18n.global.t;
   const logger$6 = logger$9.withPath("downloader", "provider", "browser");
   const storage$4 = globalStorage.withKeys("downloader");
   const queueApi$2 = new Queue({max: 3, sleep: 500});
   const queueFile$1 = new Queue({max: storage$4.get("concurrent"), sleep: 0});
   storage$4.watch("concurrent", (_key, _oldVal, newVal, _remote) => queueFile$1.updateConfig({max: newVal}));
   const $settings$5 = i18nKeys.$downloader.$provider.$browser.$settings;
   onModuleRegistered("downloader", () => {
    registerGroup("downloader", {id: "browser", index: 2, name: t$7($settings$5.$label)});
   });
   class BrowserSavefileTask extends BaseSavefileTask {
    provider = "browser";
    init = Promise.resolve();
    logger = logger$6.withPath("BrowserSavefileTask");
    constructor(parent, file) {
     super(parent, file);
     this.parent = parent ?? null;
     this.progress.status = "queue";
    }
    async run() {
     if (this.progress.status === "ongoing") {
      this.logger.simple("Error", "calling run while status is ongoing");
      return;
     }
     this.progress.status = "ongoing";
     this.progress.finished = 0;
     this.progress.total = 1;
     await saveAs(this.file.data, this.file.path);
     this.progress.finished = 1;
     this.progress.status = "complete";
    }
    abort() {}
    pause() {}
    unpause() {}
    retry() {}
   }
   class BrowserFileDownloadTask extends BaseFileDownloadTask {
    provider = "browser";
    init = Promise.resolve();
    controller = new AbortController();
    runPromise = Promise.resolve();
    logger = logger$6.withPath("BrowserFileDownloadTask");
    constructor(parent, file) {
     super(parent, file);
     this.parent = parent ?? null;
     this.progress.status = "queue";
    }
    async run() {
     if (this.progress.status === "ongoing") {
      this.logger.simple("Error", "calling run while status is ongoing");
      return;
     }
     const {promise, resolve} = Promise.withResolvers();
     this.runPromise = promise;
     if (this.controller.signal.aborted) this.controller = new AbortController();
     const currentRunSignal = this.controller.signal;
     await queueFile$1
      .enqueue(async () => {
       this.progress.status = "ongoing";
       this.progress.total = this.progress.finished = -1;
       try {
        await download(
         {
          url: this.file.url,
          name: this.file.path,
          onprogress: (e) => {
           this.progress.total = (e.total ?? e.totalSize ?? -1) || -1;
           this.progress.finished = (e.done ?? e.loaded ?? -1) || -1;
          },
         },
         currentRunSignal,
        );
        if (this.progress.status !== "aborted") {
         this.progress.status = "complete";
         this.progress.finished = this.progress.total;
        }
       } catch (err) {
        console.log("err", err);
        if (this.progress.status !== "aborted") this.progress.status = "error";
       }
      }, currentRunSignal)
      .catch(() => {});
     resolve();
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     this.controller?.abort();
     await this.runPromise;
    }
    async retry() {
     if (this.progress.status !== "error") return;
     await this.abort();
     await this.run();
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
   }
   class BrowserPostDownloadTask extends BasePostDownloadTask {
    provider = "browser";
    name = null;
    data = null;
    subTasks = reactive([]);
    dataPromise;
    init;
    runPromise = Promise.resolve();
    constructor(parent, info) {
     super(parent, info);
     this.parent = parent ?? null;
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     this.dataPromise = queueApi$2.enqueue(async () => {
      const data17 = await post(this.info);
      if (isErrorResponse(data17)) throw new Error(data17.error);
      this.data = data17;
      return this.data;
     });
     this.dataPromise.then(async () => {
      this.name = this.data.post.title;
      const creator = await profile({service: this.info.service, creatorId: this.info.creatorId});
      if (isErrorResponse(creator)) throw new Error(creator.error);
      const files = this.data.post.attachments.map((file) => ({type: "download", file}));
      storage$4.get("noCoverFile") || files.push({type: "download", file: this.data.post.file});
      const saveTextContent = storage$4.get("textContent");
      if (saveTextContent !== "none") {
       const sourceHTML = this.data.post.content;
       const content = saveTextContent === "txt" ? formatContentText(sourceHTML) : formatContentHTML(sourceHTML);
       files.splice(0, 0, {type: "savefile", file: {data: content, path: saveTextContent === "txt" ? "content.txt" : "content.html"}});
      }
      await Promise.allSettled(
       files.map(async (subTask, i2) => {
        let taskInstance;
        switch (subTask.type) {
         case "savefile": {
          const file = subTask.file;
          const filename = constructFilename({data: {creator, file: {name: file.path, path: "__internal_content__"}, post: this.data, posts: null}, p: i2 + 1});
          taskInstance = new BrowserSavefileTask(this, {data: file.data, path: filename});
          break;
         }
         case "download": {
          const file = subTask.file;
          const filename = constructFilename({data: {creator, post: this.data, file}, p: i2 + 1});
          const downloadUrl = getFullUrl(file, this.data);
          taskInstance = new BrowserFileDownloadTask(this, {url: downloadUrl, path: filename});
          break;
         }
        }
        this.subTasks.push(taskInstance);
        await taskInstance.init;
       }),
      );
      this.progress.total = files.length;
      this.progress.finished = 0;
      resolve();
     });
    }
    async run() {
     const {promise, resolve} = Promise.withResolvers();
     this.runPromise = promise;
     await this.dataPromise;
     this.progress.status = "ongoing";
     this.progress.finished = 0;
     this.progress.total = this.subTasks.length;
     await Promise.allSettled(this.subTasks.map((subTask) => subTask.run().then(() => subTask.progress.status === "complete" && this.progress.finished++)));
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
     resolve();
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort()));
     await this.runPromise;
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
   }
   class BrowserPostsDownloadTask extends BasePostsDownloadTask {
    provider = "browser";
    subTasks;
    name;
    init;
    constructor(parent, name, infos) {
     super(parent, infos);
     this.name = name;
     this.subTasks = this.infos.map((info) => new BrowserPostDownloadTask(this, info));
     this.progress.total = this.subTasks.length;
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     Promise.allSettled(this.subTasks.map((subTask) => subTask.init)).then(() => resolve());
    }
    async run() {
     if (this.progress.status === "ongoing") return;
     this.progress.finished = 0;
     this.progress.status = "ongoing";
     await Promise.allSettled(
      this.subTasks.map(async (task) => {
       await task.run();
       task.progress.status === "complete" && this.progress.finished++;
      }),
     );
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort()));
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
   }
   class BrowserDownloadProvider extends BaseDownloadProvider {
    name = "browser";
    static features = ["concurrent", "textContent"];
    downloadPost(info) {
     const task = new BrowserPostDownloadTask(null, info);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    downloadPosts(name, infos) {
     const task = new BrowserPostsDownloadTask(null, name, infos);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    async runWithRetry(task) {
     await task.init;
     await task.run();
     for (let retries = storage$4.get("autoRetry"); retries !== 0 && task.progress.status === "error"; retries--) await task.retry();
    }
   }
   const IDB_NAME = "kemono-downloader.provider.fsa";
   const STORE_NAME = "filesystem-handle";
   const KEY = "download-directory";
   const DIR_PICKER_ID = "download-directory";
   let dlDirHandle = ref(null);
   getHandleFromIndexedDB().then((handle) => handle && (dlDirHandle.value = handle));
   async function getDownloadDirectoryHandle() {
    checkCompatibility(true);
    if (dlDirHandle.value && (await ensurePermission(dlDirHandle.value, "readwrite"))) return dlDirHandle.value;
    const storedHandle = await getHandleFromIndexedDB();
    if (storedHandle && (await ensurePermission(storedHandle, "readwrite"))) {
     dlDirHandle.value = storedHandle;
     return storedHandle;
    } else {
     const newHandle = await requestNewHandle();
     return newHandle;
    }
   }
   async function getHandleFromIndexedDB() {
    const db = await openIndexedDB();
    const transaction = db.transaction([STORE_NAME], "readwrite");
    const store = transaction.objectStore(STORE_NAME);
    const storedHandle = await store.get(KEY);
    db.close();
    return storedHandle;
   }
   async function updateIndexedDBHandle(handle) {
    const db = await openIndexedDB();
    const transaction = db.transaction([STORE_NAME], "readwrite");
    const store = transaction.objectStore(STORE_NAME);
    store.put(handle, KEY);
    db.close();
   }
   async function openIndexedDB() {
    const checkObjectStore = (database2) => database2.objectStoreNames.contains(STORE_NAME) || database2.createObjectStore(STORE_NAME);
    const database = await openDB(IDB_NAME, 1, {
     upgrade(database2, _oldVersion, _newVersion, _transaction, _event) {
      checkObjectStore(database2);
     },
    });
    checkObjectStore(database);
    return database;
   }
   async function ensurePermission(handle, mode2 = "readwrite") {
    if ("queryPermission" in handle) {
     let permission = await handle.queryPermission({mode: mode2});
     for (let i2 = 0; i2 < 3; i2++) {
      switch (permission) {
       case "granted":
        return true;
       case "prompt":
        permission = await handle.requestPermission({mode: mode2});
        break;
       case "denied":
        return false;
      }
     }
     throw new Error("cannot get directory readwrite permission");
    } else {
     return true;
    }
   }
   async function requestNewHandle() {
    checkCompatibility(true);
    const handle = await window.showDirectoryPicker({id: DIR_PICKER_ID, mode: "readwrite", startIn: "downloads"});
    dlDirHandle.value = handle;
    await updateIndexedDBHandle(dlDirHandle.value);
    return handle;
   }
   function watchDirChange(callback, immediate = false) {
    watch(dlDirHandle, callback, {immediate});
   }
   function checkCompatibility(throwError = false) {
    const compatible = "showDirectoryPicker" in window;
    if (!compatible && throwError) throw new FeatureNotSupportedError("window.showDirectoryPicker not supported on your browser", "fsa");
    return compatible;
   }
   async function getDirectoryHandleRecursive(rootHandle, dirPath, create2 = true) {
    const parts = dirPath.replaceAll("\\", "/").split("/").filter(Boolean);
    if (parts.length === 0) return rootHandle;
    let currentDirHandle = rootHandle;
    for (const dirName of parts) {
     currentDirHandle = await currentDirHandle.getDirectoryHandle(dirName, {create: create2});
    }
    return currentDirHandle;
   }
   async function getFileHandleRecursive(rootHandle, filePath, create2 = true) {
    const parts = filePath.replaceAll("\\", "/").split("/").filter(Boolean);
    if (parts.length === 0) throw new Error("Invalid path: Path cannot be empty.");
    const fileName = parts.pop();
    const dirHandle = await getDirectoryHandleRecursive(rootHandle, parts.join("/"));
    return await dirHandle.getFileHandle(fileName, {create: create2});
   }
   async function streamDownloadToFileHandle(url, fileHandle, onProgress) {
    const response = await fetch(url, {mode: "cors"});
    if (!response.ok) throw new Error(`HTTP Error: ${response.status} ${response.statusText}`);
    const total = Number(response.headers.get("Content-Length")) || 0;
    const reader = response.body?.getReader();
    if (!reader) throw new Error("ReadableStream not supported on this response.");
    const writable = await fileHandle.createWritable({keepExistingData: false, mode: "exclusive"});
    let received = 0;
    try {
     while (true) {
      const {done, value: value2} = await reader.read();
      if (done) break;
      await writable.write(value2);
      received += value2.length;
      onProgress && onProgress({received, total});
     }
    } catch (error) {
     throw error;
    } finally {
     await writable.close();
     reader.releaseLock();
    }
   }
   const _hoisted_1$y = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$o(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$y, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M17.5 19.25h-11a2.75 2.75 0 0 1-2.75-2.75v-9A2.75 2.75 0 0 1 6.5 4.75H9a.77.77 0 0 1 .57.25l2.77 3.24h5.16A2.75 2.75 0 0 1 20.25 11v5.5a2.75 2.75 0 0 1-2.75 2.75m-11-13A1.25 1.25 0 0 0 5.25 7.5v9a1.25 1.25 0 0 0 1.25 1.25h11a1.25 1.25 0 0 0 1.25-1.25V11a1.25 1.25 0 0 0-1.25-1.25H12a.77.77 0 0 1-.57-.26L8.66 6.25Z"}, null, -1)]))]));
   }
   const FolderIcon = markRaw({name: "prime-folder", render: render$o});
   const _hoisted_1$x = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$n(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$x, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M15 14.75a5.74 5.74 0 0 1-4.07-1.68A5.77 5.77 0 1 1 15 14.75m0-10A4.25 4.25 0 0 0 12 12a4.25 4.25 0 1 0 3-7.25"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M4.5 20.25A.74.74 0 0 1 4 20a.75.75 0 0 1 0-1l6.46-6.47a.75.75 0 1 1 1.06 1.07L5 20a.74.74 0 0 1-.5.25"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M8 20.75a.74.74 0 0 1-.53-.22l-2-2a.75.75 0 0 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06a.74.74 0 0 1-.53.22m2-2a.74.74 0 0 1-.53-.22l-2-2a.75.75 0 1 1 1.06-1.06l2 2a.75.75 0 0 1 0 1.06a.74.74 0 0 1-.53.22"}, null, -1)]))]));
   }
   const KeyIcon = markRaw({name: "prime-key", render: render$n});
   const t$6 = i18n.global.t;
   const logger$5 = logger$9.withPath("downloader", "provider", "browser");
   const storage$3 = globalStorage.withKeys("downloader");
   const $settings$4 = i18nKeys.$downloader.$provider.$fsa.$settings;
   onModuleRegistered("downloader", () => {
    registerGroup("downloader", {id: "fsa", index: 2, name: t$6($settings$4.$label)});
    registerItem("downloader", [
     {
      id: "directory",
      label: t$6($settings$4.$directory.$label),
      caption: t$6($settings$4.$directory.$caption),
      icon: FolderIcon,
      type: "button",
      value: (() => {
       const label6 = ref(t$6($settings$4.$directory.$notSelected));
       watchDirChange((newHandle) => newHandle && (label6.value = newHandle.name), true);
       return label6;
      })(),
      props: {
       onClick: () =>
        requestNewHandle().catch((err) => {
         if (err instanceof DOMException && err.name === "AbortError") {
          logger$5.simple("Detail", "User cancelled dirctory picking");
         } else {
          logger$5.simple("Error", "Something unexpected happened during requestNewHandle");
          logger$5.asLevel("Error", err);
         }
        }),
      },
      group: "fsa",
     },
     {
      id: "permission-check",
      type: "button",
      label: t$6($settings$4.$permissionCheck.$label),
      caption: t$6($settings$4.$permissionCheck.$caption),
      icon: KeyIcon,
      value: ref(t$6($settings$4.$permissionCheck.$button)),
      props: {
       async onClick() {
        const $toast = $settings$4.$permissionCheck.$toast;
        getDownloadDirectoryHandle()
         .then(async (handle) => {
          logger$5.simple("Detail", "directory permission test ok");
          logger$5.asLevel("Detail", handle);
          const DIR_NAME = "test-dir";
          const FILE_NAME = "test-file";
          const CONTENT = "test-content";
          try {
           const testDir = await handle.getDirectoryHandle(DIR_NAME, {create: true});
           const testFile = await testDir.getFileHandle(FILE_NAME, {create: true});
           const writable = await testFile.createWritable({keepExistingData: false});
           await writable.write(CONTENT);
           await writable.close();
           const file = await testFile.getFile();
           const content = await file.text();
           if (content !== CONTENT) throw new Error(`file content not match: ${JSON.stringify(content)} !== ${JSON.stringify(CONTENT)}`);
          } catch (err) {
           throw err;
          } finally {
           await handle.removeEntry(DIR_NAME, {recursive: true});
          }
         })
         .then(() => {
          toast({severity: "success", life: 3e3, summary: t$6($toast.$granted.$title), detail: t$6($toast.$granted.$message)});
         })
         .catch((err) => {
          logger$5.simple("Error", "error while testing dir handle");
          logger$5.asLevel("Error", err);
          toast({severity: "error", life: 3e3, summary: t$6($toast.$failed.$title), detail: t$6($toast.$failed.$message)});
         });
       },
      },
      group: "fsa",
     },
    ]);
   });
   const queueApi$1 = new Queue({max: 3, sleep: 500});
   const queueFile = new Queue({max: storage$3.get("concurrent"), sleep: 0});
   storage$3.watch("concurrent", (_key, _oldVal, newVal, _remote) => queueFile.updateConfig({max: newVal}));
   class FSASaveFileTask extends BaseSavefileTask {
    provider = "fsa";
    init = Promise.resolve();
    logger = logger$5.withPath("BrowserSavefileTask");
    constructor(parent, file) {
     super(parent, file);
     this.parent = parent ?? null;
     this.progress.status = "queue";
    }
    async run() {
     if (this.progress.status === "ongoing") {
      this.logger.simple("Error", "calling run while status is ongoing");
      return;
     }
     this.progress.status = "ongoing";
     this.progress.finished = 0;
     this.progress.total = 1;
     let data17;
     if (this.file.data instanceof FileSystemFileHandle) {
      data17 = await this.file.data.getFile();
     } else {
      data17 = this.file.data;
     }
     const dlDirHandle2 = await getDownloadDirectoryHandle();
     const fileHandle = await getFileHandleRecursive(dlDirHandle2, this.file.path);
     const writable = await fileHandle.createWritable({keepExistingData: false});
     await ensurePermission(dlDirHandle2);
     await ensurePermission(fileHandle);
     await writable.write(data17);
     await writable.close();
     this.progress.finished = 1;
     this.progress.status = "complete";
    }
    abort() {}
    pause() {}
    unpause() {}
    retry() {}
   }
   class FSAFileDownloadTask extends BaseFileDownloadTask {
    provider = "fsa";
    init = Promise.resolve();
    controller = new AbortController();
    deleteFiles = false;
    runPromise = Promise.resolve();
    logger = logger$5.withPath("BrowserFileDownloadTask");
    constructor(parent, file) {
     super(parent, file);
     this.parent = parent ?? null;
     this.progress.status = "queue";
    }
    async run() {
     if (this.progress.status === "ongoing") {
      this.logger.simple("Error", "calling run while status is ongoing");
      return;
     }
     const {promise, resolve} = Promise.withResolvers();
     this.runPromise = promise;
     if (this.controller.signal.aborted) this.controller = new AbortController();
     const currentRunSignal = this.controller.signal;
     await queueFile
      .enqueue(async () => {
       this.progress.status = "ongoing";
       this.progress.total = this.progress.finished = -1;
       try {
        const filepath = this.file.path;
        const dlDirHandle2 = await getDownloadDirectoryHandle();
        const fileHandle = await getFileHandleRecursive(dlDirHandle2, filepath);
        await ensurePermission(dlDirHandle2);
        await ensurePermission(fileHandle);
        try {
         await streamDownloadToFileHandle(this.file.url, fileHandle, (progress) => {
          this.progress.total = progress.total;
          this.progress.finished = progress.received;
         });
        } catch (err) {
         logger$5.simple("Warning", "native fetch error while downloading, using GM_xmlhttpRequest as fallback");
         logger$5.asLevel("Warning", err);
         const writable = await fileHandle.createWritable({keepExistingData: false, mode: "exclusive"});
         try {
          let lastBytesLoaded = 0;
          const writeChunk = async (buffer) => {
           const chunk = buffer.slice(lastBytesLoaded);
           if (chunk.byteLength > 0) {
            await writable.write(chunk);
            lastBytesLoaded += chunk.byteLength;
           }
          };
          await requestBuffer(
           {
            url: this.file.url,
            onprogress: async (e) => {
             if (e.response) await writeChunk(e.response);
             this.progress.total = (e.total ?? e.totalSize ?? -1) || -1;
             this.progress.finished = (e.done ?? e.loaded ?? -1) || -1;
            },
            onload: async (e) => {
             await writeChunk(e.response);
             this.progress.finished = this.progress.total;
            },
           },
           currentRunSignal,
          );
         } finally {
          await writable.close();
         }
        }
        if (this.progress.status !== "aborted") {
         this.progress.status = "complete";
        } else {
         if (this.deleteFiles) {
          const dirPath = (await dlDirHandle2.resolve(fileHandle)).join("/");
          const dirHandle = await getDirectoryHandleRecursive(dlDirHandle2, dirPath);
          await dirHandle.removeEntry(fileHandle.name);
         }
        }
       } catch (err) {
        logger$5.simple("Error", "download error");
        logger$5.asLevel("Error", err);
        console.log(this.file);
        if (this.progress.status !== "aborted") this.progress.status = "error";
       }
      }, currentRunSignal)
      .catch(() => {});
     resolve();
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort(deleteFiles) {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     this.deleteFiles = deleteFiles;
     this.controller?.abort();
     await this.runPromise;
    }
    async retry() {
     if (this.progress.status !== "error") return;
     await this.abort(false);
     await this.run();
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
   }
   class FSAPostDownloadTask extends BasePostDownloadTask {
    provider = "fsa";
    name = null;
    data = null;
    subTasks = reactive([]);
    dataPromise;
    init;
    runPromise = Promise.resolve();
    constructor(parent, info) {
     super(parent, info);
     this.parent = parent ?? null;
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     this.dataPromise = queueApi$1.enqueue(async () => {
      const data17 = await post(this.info);
      if (isErrorResponse(data17)) throw new Error(data17.error);
      this.data = data17;
      return this.data;
     });
     this.dataPromise.then(async () => {
      this.name = this.data.post.title;
      const creator = await profile({service: this.info.service, creatorId: this.info.creatorId});
      if (isErrorResponse(creator)) throw new Error(creator.error);
      const files = this.data.post.attachments.map((file) => ({type: "download", file}));
      storage$3.get("noCoverFile") || files.push({type: "download", file: this.data.post.file});
      const saveTextContent = storage$3.get("textContent");
      if (saveTextContent !== "none") {
       const sourceHTML = this.data.post.content;
       const content = saveTextContent === "txt" ? formatContentText(sourceHTML) : formatContentHTML(sourceHTML);
       files.splice(0, 0, {type: "savefile", file: {data: content, path: saveTextContent === "txt" ? "content.txt" : "content.html"}});
      }
      await Promise.allSettled(
       files.map(async (subTask, i2) => {
        let taskInstance;
        switch (subTask.type) {
         case "savefile": {
          const file = subTask.file;
          const filename = constructFilename({data: {creator, file: {name: file.path, path: "__internal_content__"}, post: this.data, posts: null}, p: i2 + 1});
          taskInstance = new FSASaveFileTask(this, {data: file.data, path: filename});
          break;
         }
         case "download": {
          const file = subTask.file;
          const filename = constructFilename({data: {creator, post: this.data, file}, p: i2 + 1});
          const downloadUrl = getFullUrl(file, this.data);
          taskInstance = new FSAFileDownloadTask(this, {url: downloadUrl, path: filename});
          break;
         }
        }
        this.subTasks.push(taskInstance);
        await taskInstance.init;
       }),
      );
      this.progress.total = files.length;
      this.progress.finished = 0;
      resolve();
     });
    }
    async run() {
     const {promise, resolve} = Promise.withResolvers();
     this.runPromise = promise;
     await this.dataPromise;
     this.progress.status = "ongoing";
     this.progress.finished = 0;
     this.progress.total = this.subTasks.length;
     await Promise.allSettled(this.subTasks.map((subTask) => subTask.run().then(() => subTask.progress.status === "complete" && this.progress.finished++)));
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
     resolve();
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort(deleteFiles) {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort(deleteFiles)));
     await this.runPromise;
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
   }
   class FSAPostsDownloadTask extends BasePostsDownloadTask {
    provider = "fsa";
    subTasks;
    name;
    init;
    constructor(parent, name, infos) {
     super(parent, infos);
     this.name = name;
     this.subTasks = this.infos.map((info) => new FSAPostDownloadTask(this, info));
     this.progress.total = this.subTasks.length;
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     Promise.allSettled(this.subTasks.map((subTask) => subTask.init)).then(() => resolve());
    }
    async run() {
     if (this.progress.status === "ongoing") return;
     this.progress.finished = 0;
     this.progress.status = "ongoing";
     this.progress.total = this.subTasks.length;
     await Promise.allSettled(
      this.subTasks.map(async (task) => {
       await task.run();
       task.progress.status === "complete" && this.progress.finished++;
      }),
     );
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
    }
    pause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    unpause() {
     throw new FeatureNotSupportedError("Unsupported feature: pause", this.provider);
    }
    async abort(deleteFiles) {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort(deleteFiles)));
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
   }
   class FSADownloadProvider extends BaseDownloadProvider {
    name = "fsa";
    static features = ["abortFiles", "concurrent", "textContent"];
    async downloadPost(info) {
     await getDownloadDirectoryHandle();
     const task = new FSAPostDownloadTask(null, info);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    async downloadPosts(name, infos) {
     await getDownloadDirectoryHandle();
     const task = new FSAPostsDownloadTask(null, name, infos);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    async runWithRetry(task) {
     await task.init;
     await task.run();
     for (let retries = storage$3.get("autoRetry"); retries !== 0 && task.progress.status === "error"; retries--) await task.retry();
    }
   }
   var C = Object.defineProperty;
   var s = (e, r) => C(e, "name", {value: r, configurable: true});
   var l = ((e) => ((e[(e.Connecting = 0)] = "Connecting"), (e[(e.Open = 1)] = "Open"), (e[(e.Closing = 2)] = "Closing"), (e[(e.Closed = 3)] = "Closed"), e))(l || {});
   function P(e) {
    let r,
     t2 = false;
    return (...n) => (t2 ? r : ((t2 = true), (r = e(...n))));
   }
   s(P, "once");
   function T(e) {
    return new Promise((r) => setTimeout(r, e));
   }
   s(T, "sleep");
   function m(e, r, t2) {
    return Promise.race([
     e,
     T(r).then(() => {
      throw (t2?.(), new Error(`[maria2 error] Timeout of ${r}ms exceeded`));
     }),
    ]);
   }
   s(m, "useTimeout");
   const k = new TextDecoder();
   async function y(e) {
    return typeof e == "string" ? e : e instanceof Blob ? e.text() : k.decode(e);
   }
   s(y, "decode");
   function D(e, r) {
    return (t2, n) => (t2 != null ? r(t2) : e(n));
   }
   s(D, "createCallback");
   function x(e, r, t2) {
    return e.socket.close(r, t2);
   }
   s(x, "close");
   const j = s(async (e, r = {}) => {
    const {onServerError: t2, secret: n, timeout: c2, openTimeout: w2} = Object.assign({timeout: 5e3, openTimeout: 5e3}, e?.getOptions?.() ?? {}, r),
     d2 = new Map(),
     u = new Map(),
     O = s((o) => {
      const a2 = u.get(o.id);
      a2 && (u.delete(o.id), a2(o.error, o.result));
     }, "invokeCallback"),
     S2 = s((o) => d2.get(o.method)?.forEach((a2) => a2(...o.params)), "dispatchNotification"),
     b2 = s(async ({data: o}) => {
      const a2 = JSON.parse(await y(o));
      if (a2.method != null) {
       S2(a2);
       return;
      }
      (a2.result != null || a2.error != null) && (a2.id != null ? O(a2) : a2.error != null && t2?.(a2.error));
     }, "handleMessage");
    if (e.readyState == l.Connecting) await m(new Promise((o) => e.addEventListener("open", () => o(null), {once: true})), w2);
    else {
     if (e.readyState == l.Closing) throw new Error("[maria2 error] Socket is closing");
     if (e.readyState == l.Closed) throw new Error("[maria2 error] Socket is closed");
    }
    return (
     e.addEventListener("message", b2),
     Object.freeze({
      get socket() {
       return e;
      },
      get secret() {
       return n;
      },
      sendRequest: s(({method: o, secret: a2 = true, timeout: i2}, ...h2) => {
       const p2 = crypto.randomUUID(),
        f2 = new Promise((v2, g2) => {
         if (e.readyState != l.Open) return g2(new Error("[maria2 error] Socket is not open"));
         u.set(p2, D(v2, g2));
         const E2 = JSON.stringify({jsonrpc: "2.0", id: p2, method: o, params: n != null && a2 ? [`token:${n}`, ...h2] : [...h2]});
         try {
          e.send(E2);
         } catch (_) {
          g2(_);
         }
        });
       return i2 === false ? f2 : typeof i2 == "number" ? m(f2, i2, () => u.delete(p2)) : m(f2, c2, () => u.delete(p2));
      }, "sendRequest"),
      onNotification: s((o, a2) => {
       let i2 = d2.get(o);
       return (i2 || d2.set(o, (i2 = new Set())), i2.add(a2), {dispose: P(() => (d2.get(o)?.delete(a2), a2))});
      }, "onNotification"),
     })
    );
   }, "open");
   Object.freeze(
    Object.assign(
     {
      multicall: s((e, ...r) => {
       const t2 = e.secret;
       return t2 != null
        ? e.sendRequest(
           {method: "system.multicall", secret: false},
           r.map((n) => {
            const c2 = Object.assign({}, n);
            return ((c2.params = [`token:${t2}`, ...c2.params]), c2);
           }),
          )
        : e.sendRequest({method: "system.multicall", secret: false}, r);
      }, "multicall"),
     },
     ["system.listMethods", "system.listNotifications"].reduce((e, r) => ((e[r.slice(7)] = (t2, ...n) => t2.sendRequest({method: r, secret: false}, ...n)), e), {}),
    ),
   );
   Object.freeze(
    Object.assign(
     {when: s((e, r, t2) => e.onNotification(r, t2), "when")},
     ["aria2.changeOption", "aria2.changeGlobalOption", "aria2.getGlobalOption", "aria2.getOption", "aria2.getSessionInfo", "aria2.shutdown", "aria2.forceShutdown", "aria2.saveSession", "aria2.getGlobalStat", "aria2.getVersion", "aria2.purgeDownloadResult", "aria2.removeDownloadResult", "aria2.changeUri", "aria2.changePosition", "aria2.getPeers", "aria2.getFiles", "aria2.getUris", "aria2.getServers", "aria2.tellStatus", "aria2.tellWaiting", "aria2.tellStopped", "aria2.tellActive", "aria2.remove", "aria2.forceRemove", "aria2.pause", "aria2.forcePause", "aria2.unpause", "aria2.unpauseAll", "aria2.pauseAll", "aria2.forcePauseAll", "aria2.addMetalink", "aria2.addTorrent", "aria2.addUri"].reduce((e, r) => ((e[r.slice(6)] = (t2, ...n) => t2.sendRequest({method: r, secret: true}, ...n)), e), {}),
     ["aria2.onDownloadStart", "aria2.onDownloadPause", "aria2.onDownloadStop", "aria2.onDownloadComplete", "aria2.onDownloadError", "aria2.onBtDownloadComplete"].reduce((e, r) => ((e[r.slice(6)] = (t2, n) => t2.onNotification(r, n)), e), {}),
    ),
   );
   const _q = class _q extends EventTarget {
    constructor(r, t2, n) {
     (super(), (this.url = r), (this.__options = t2), (this.__headers = n));
    }
    readyState = 1;
    close() {
     this.readyState = 3;
    }
    getOptions() {
     return this.__options;
    }
    addEventListener(...r) {
     super.addEventListener(...r);
    }
    send(r) {
     fetch(this.url, {method: "POST", headers: {...this.__headers, "content-type": "application/json"}, body: r})
      .then((t2) => t2.text())
      .then((t2) => this.dispatchEvent(new MessageEvent("message", {data: t2})));
    }
   };
   s(_q, "PseudoSocketImpl");
   let q = _q;
   function U(e, r, t2) {
    return new q(e, r, t2);
   }
   s(U, "createHTTP");
   const _W = class _W extends WebSocket {
    constructor(r, t2, n) {
     (super(r, n), (this.__options = t2));
    }
    getOptions() {
     return this.__options;
    }
   };
   s(_W, "PreconfiguredWebSocket");
   let W = _W;
   function z(e, r, t2) {
    return r != null ? new W(e, r, t2) : new WebSocket(e, t2);
   }
   s(z, "createWebSocket");
   function buildPath(p1, p2, sep) {
    if (!sep) {
     const [sep1, sep2] = [p1, p2].map((p3) => extractSeparator(p3));
     if (sep1 && sep2 && sep1 !== sep2) throw new Error("different seperator found");
     if (!sep1 && !sep2) throw new Error("no seperator found");
     sep = sep1 ?? sep2;
    }
    const [parts1, parts2] = [p1, p2].map((p3) => p3.split(sep).filter(Boolean));
    return [...parts1, ...parts2].join(sep);
   }
   function path2DirFile(path) {
    const sep = extractSeparator(path);
    if (sep) {
     const parts = path.split(sep);
     const file = parts.pop();
     const dir = parts.join(sep);
     return {file, dir};
    } else {
     return {file: path, dir: ""};
    }
   }
   function extractSeparator(path) {
    const sepReg = /[\/\\]/;
    return path.match(sepReg)?.[0];
   }
   const ARIA2_STATUS_MAP = {active: "ongoing", waiting: "queue", paused: "paused", error: "error", complete: "complete", removed: "aborted"};
   const _hoisted_1$w = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$m(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$w, [...(_cache[0] || (_cache[0] = [createStaticVNode('<path fill="currentColor" d="M20.5 8.5v-3a1 1 0 0 0-1-1h-15a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1a1 1 0 0 0 1-1m-1 10h-15v-3h15Zm0-5h-15v-3h15Zm0-5h-15v-3h15Z"></path><circle cx="6.25" cy="7" r=".75" fill="currentColor"></circle><circle cx="8.75" cy="7" r=".75" fill="currentColor"></circle><circle cx="6.25" cy="12" r=".75" fill="currentColor"></circle><circle cx="8.75" cy="12" r=".75" fill="currentColor"></circle><circle cx="6.25" cy="17" r=".75" fill="currentColor"></circle><circle cx="8.75" cy="17" r=".75" fill="currentColor"></circle>', 7)]))]));
   }
   const ServerIcon = markRaw({name: "prime-server", render: render$m});
   const _hoisted_1$v = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$l(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$v, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M17.35 12.79a.72.72 0 0 1-.49-.19a7.24 7.24 0 0 0-9.66 0a.75.75 0 0 1-1.06-.06a.76.76 0 0 1 .07-1.06a8.7 8.7 0 0 1 11.64 0a.76.76 0 0 1 .07 1.06a.8.8 0 0 1-.57.25"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M20 10a.76.76 0 0 1-.51-.2a10.87 10.87 0 0 0-15 0a.75.75 0 1 1-1-1.1a12.36 12.36 0 0 1 17 0A.75.75 0 0 1 20 10M9.38 15.64a.75.75 0 0 1-.6-.3a.74.74 0 0 1 .15-1.05a5.06 5.06 0 0 1 6.15 0a.75.75 0 0 1 .15 1.05a.76.76 0 0 1-1.05.15a3.59 3.59 0 0 0-4.35 0a.8.8 0 0 1-.45.15M12 18.75a.75.75 0 1 1 0-1.5a.75.75 0 0 1 0 1.5"}, null, -1)]))]));
   }
   const WifiIcon = markRaw({name: "prime-wifi", render: render$l});
   const _hoisted_1$u = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$k(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$u, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M12 21a9 9 0 1 1 9-9a9 9 0 0 1-9 9m0-16.5a7.5 7.5 0 1 0 7.5 7.5A7.5 7.5 0 0 0 12 4.5"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M15 12.75h-3a.76.76 0 0 1-.75-.75V7a.75.75 0 0 1 1.5 0v4.25H15a.75.75 0 0 1 0 1.5"}, null, -1)]))]));
   }
   const ClockIcon = markRaw({name: "prime-clock", render: render$k});
   const t$5 = i18n.global.t;
   const logger$4 = logger$9.withPath("downloader", "provider", "aria2");
   const storage$2 = globalStorage.withKeys("downloader");
   const providerStorage = globalStorage.withKeys("downloader").withKeys("providerSettings").withKeys("aria2");
   const ARIA2_INTERVAL = providerStorage.get("interval") * 1e3;
   const manager = new Aria2IntervalCallsManager(null, ARIA2_INTERVAL);
   const queueApi = new Queue({max: 3, sleep: 500});
   const $settings$3 = i18nKeys.$downloader.$provider.$aria2.$settings;
   onModuleRegistered("downloader", () => {
    registerGroup("downloader", {id: "aria2", index: 2, name: t$5($settings$3.$label)});
    registerItem("downloader", [
     {id: "endpoint", type: "text", label: t$5($settings$3.$endpoint.$label), caption: t$5($settings$3.$endpoint.$caption), icon: ServerIcon, props: {placeholder: providerStorage.default("endpoint")}, value: makeStorageRef("endpoint", providerStorage, true, false), group: "aria2"},
     {id: "secret", type: "password", label: t$5($settings$3.$secret.$label), caption: t$5($settings$3.$secret.$caption), icon: KeyIcon, props: {feedback: false}, value: makeStorageRef("secret", providerStorage, true, false), group: "aria2"},
     {id: "dir", type: "text", label: t$5($settings$3.$dir.$label), caption: t$5($settings$3.$dir.$caption), help: t$5($settings$3.$dir.$help), icon: FolderIcon, value: makeStorageRef("dir", providerStorage, true, false), group: "aria2"},
     {id: "interval", type: "number", label: t$5($settings$3.$interval.$label), caption: t$5($settings$3.$interval.$caption), icon: ClockIcon, value: makeStorageRef("interval", providerStorage, true, false), props: {placeholder: providerStorage.default("interval").toString(), maxFractionDigits: 3}, group: "aria2"},
     {
      id: "connection-test",
      type: "button",
      label: t$5($settings$3.$connectionTest.$label),
      caption: t$5($settings$3.$connectionTest.$caption),
      icon: WifiIcon,
      value: ref(t$5($settings$3.$connectionTest.$button)),
      props: {
       async onClick() {
        const $toast = $settings$3.$connectionTest.$toast;
        if (!aria2) {
         toast({severity: "error", life: 3e3, summary: t$5($toast.$notEnabled.$title), detail: t$5($toast.$notEnabled.$message)});
         return;
        }
        await aria2.sendRequest({method: "aria2.getVersion"}).then(
         (version) => {
          logger$4.simple("Detail", "aria2 server connection ok");
          logger$4.asLevel("Detail", version);
          toast({severity: "success", life: 3e3, summary: t$5($toast.$granted.$title), detail: t$5($toast.$granted.$message, {version: version.version})});
         },
         (err) => {
          logger$4.simple("Error", "error connecting aria2 server");
          logger$4.asLevel("Error", err);
          toast({severity: "error", life: 3e3, summary: t$5($toast.$failed.$title), detail: t$5($toast.$failed.$message)});
         },
        );
       },
      },
      group: "aria2",
     },
    ]);
   });
   providerStorage.watch("interval", (_key, _oldVal, newVal, _remote) => {
    newVal && manager.setInterval(newVal * 1e3);
   });
   const currentProvider$1 = makeStorageRef("provider", globalStorage.withKeys("downloader"));
   const serverUrl = makeStorageRef("endpoint", providerStorage);
   const secret = makeStorageRef("secret", providerStorage);
   let aria2 = null;
   watch(
    () => ({currentProvider: currentProvider$1.value, serverUrl: serverUrl.value, secret: secret.value}),
    debounce(async ({currentProvider: currentProvider2, serverUrl: serverUrl2, secret: secret2}) => {
     if (aria2) {
      manager.stop();
      x(aria2);
      aria2 = null;
      manager.aria2 = null;
     }
     if (currentProvider2 === "aria2") {
      const isWebSocket = serverUrl2.startsWith("ws://") || serverUrl2.startsWith("wss://");
      const options3 = {
       secret: secret2 || void 0,
       onServerError(err) {
        logger$4.simple("Error", "aria2 server error");
        logger$4.asLevel("Error", err);
       },
      };
      aria2 = await j(isWebSocket ? z(serverUrl2, options3) : U(serverUrl2, options3));
      manager.aria2 = aria2;
      manager.run();
     }
    }, 500),
    {immediate: true, deep: true},
   );
   class Aria2FileDownloadTask extends BaseFileDownloadTask {
    provider = "aria2";
    init = Promise.resolve();
    logger = logger$4.withPath("Aria2FileDownloadTask");
    gid;
    emmiter = mitt();
    constructor(parent, file) {
     super(parent, file);
     if (!aria2) {
      this.logger.simple("Error", "Aria2 not initialized. Check if aria2 provider is the active provider.");
      return;
     }
     this.progress.status = "queue";
    }
    async run() {
     if (!aria2) {
      this.logger.simple("Error", "Aria2 not initialized. Check if aria2 provider is the active provider.");
      return;
     }
     if (this.progress.status === "ongoing") {
      this.logger.simple("Error", "calling run while status is ongoing");
      return;
     }
     this.progress.status = "ongoing";
     const {resolve, promise} = Promise.withResolvers();
     const userDir = providerStorage.get("dir");
     const fullPath = buildPath(userDir, this.file.path);
     const {dir, file: out} = path2DirFile(fullPath);
     const gid = await aria2.sendRequest({method: "aria2.addUri"}, [this.file.url], {dir, out});
     this.gid = gid;
     const intervalTaskId = manager.add({
      call: {methodName: "aria2.tellStatus", params: [gid, ["status", "totalLength", "completedLength"]]},
      callback: (status) => {
       this.progress.status = ARIA2_STATUS_MAP[status.status];
       this.progress.total = status.totalLength;
       this.progress.finished = status.completedLength;
       if (!["active", "waiting", "paused"].includes(status.status)) {
        manager.remove(intervalTaskId);
        resolve();
       }
      },
     });
     this.emmiter.on("abort", () => {
      manager.remove(intervalTaskId);
      resolve();
     });
     return promise;
    }
    async pause() {
     if (!aria2) {
      this.logger.simple("Error", "Aria2 not initialized. Check if aria2 provider is the active provider.");
      return;
     }
     if (!this.gid) return;
     await aria2.sendRequest({method: "aria2.pause"}, this.gid);
    }
    async unpause() {
     if (!aria2) {
      this.logger.simple("Error", "Aria2 not initialized. Check if aria2 provider is the active provider.");
      return;
     }
     if (!this.gid) return;
     await aria2.sendRequest({method: "aria2.unpause"}, this.gid);
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     if (!aria2) {
      this.logger.simple("Error", "Aria2 not initialized. Check if aria2 provider is the active provider.");
      return;
     }
     if (!this.gid) return;
     await aria2.sendRequest({method: "aria2.remove"}, this.gid);
     this.emmiter.emit("abort");
     this.progress.status = "aborted";
    }
    async retry() {
     if (this.progress.status !== "error") return;
     await this.abort();
     await this.run();
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
   }
   class Aria2PostDownloadTask extends BasePostDownloadTask {
    provider = "aria2";
    name = null;
    data = null;
    subTasks = reactive([]);
    dataPromise;
    init;
    runPromise = Promise.resolve();
    constructor(parent, info) {
     super(parent, info);
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     this.dataPromise = queueApi.enqueue(async () => {
      const data17 = await post(this.info);
      if (isErrorResponse(data17)) throw new Error(data17.error);
      this.data = data17;
      return this.data;
     });
     this.dataPromise.then(async () => {
      this.name = this.data.post.title;
      const files = [this.data.post.file, ...this.data.post.attachments];
      storage$2.get("noCoverFile") && files.shift();
      await Promise.allSettled(
       files.map(async (file, i2) => {
        const creator = await profile({service: this.info.service, creatorId: this.info.creatorId});
        if (isErrorResponse(creator)) throw new Error(creator.error);
        const filename = constructFilename({data: {creator, post: this.data, file}, p: i2 + 1});
        const downloadUrl = getFullUrl(file, this.data);
        const fileTask = new Aria2FileDownloadTask(this, {url: downloadUrl, path: filename});
        this.subTasks.push(fileTask);
        await fileTask.init;
       }),
      );
      this.progress.total = files.length;
      this.progress.finished = 0;
      resolve();
     });
    }
    async run() {
     const {promise, resolve} = Promise.withResolvers();
     this.runPromise = promise;
     await this.dataPromise;
     this.progress.status = "ongoing";
     this.progress.finished = 0;
     this.progress.total = this.subTasks.length;
     await Promise.allSettled(this.subTasks.map((subTask) => subTask.run().then(() => subTask.progress.status === "complete" && this.progress.finished++)));
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
     resolve();
    }
    async pause() {
     await Promise.allSettled(this.subTasks.map((task) => task.pause()));
     this.progress.status = "paused";
    }
    async unpause() {
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.map((task) => task.unpause()));
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort()));
     await this.runPromise;
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
    allTaskStatus(status) {
     return this.subTasks.every((task) => task.progress.status === status);
    }
   }
   class Aria2PostsDownloadTask extends BasePostsDownloadTask {
    provider = "aria2";
    subTasks;
    name;
    init;
    constructor(parent, name, infos) {
     super(parent, infos);
     this.name = name;
     this.subTasks = this.infos.map((info) => new Aria2PostDownloadTask(this, info));
     this.progress.total = this.subTasks.length;
     const {promise, resolve} = Promise.withResolvers();
     this.init = promise;
     Promise.allSettled(this.subTasks.map((subTask) => subTask.init)).then(() => resolve());
    }
    async run() {
     if (this.progress.status === "ongoing") return;
     this.progress.finished = 0;
     this.progress.status = "ongoing";
     this.progress.total = this.subTasks.length;
     await Promise.allSettled(
      this.subTasks.map(async (task) => {
       await task.run();
       task.progress.status === "complete" && this.progress.finished++;
      }),
     );
     this.progress.status = this.progress.status === "aborted" ? "aborted" : this.hasTaskStatus("error") ? "error" : "complete";
    }
    async pause() {
     await Promise.allSettled(this.subTasks.map((task) => task.pause()));
     this.progress.status = "paused";
    }
    async unpause() {
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.map((task) => task.unpause()));
    }
    async abort() {
     if (this.progress.status !== "queue" && this.progress.status !== "ongoing") return;
     this.progress.status = "aborted";
     await Promise.allSettled(this.subTasks.map((task) => task.abort()));
    }
    async retry() {
     if (this.progress.status !== "error") return;
     this.progress.status = "ongoing";
     await Promise.allSettled(this.subTasks.filter((task) => task.progress.status === "error").map((task) => task.retry()));
     if (this.parent) {
      const progress = this.parent.progress;
      progress.finished++;
      if (progress.finished === progress.total) progress.status = "complete";
     }
    }
    hasTaskStatus(status) {
     return this.subTasks.some((task) => task.progress.status === status);
    }
   }
   class Aria2DownloadProvider extends BaseDownloadProvider {
    name = "aria2";
    static features = ["pause"];
    downloadPost(info) {
     const task = new Aria2PostDownloadTask(null, info);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    downloadPosts(name, infos) {
     const task = new Aria2PostsDownloadTask(null, name, infos);
     this.tasks.push(task);
     this.runWithRetry(task);
     return task.id;
    }
    async runWithRetry(task) {
     await task.init;
     await task.run();
     for (let retries = storage$2.get("autoRetry"); retries !== 0 && task.progress.status === "error"; retries--) await task.retry();
    }
   }
   const providers = Object.freeze(Object.defineProperty({__proto__: null, aria2: Aria2DownloadProvider, browser: BrowserDownloadProvider, fsa: FSADownloadProvider}, Symbol.toStringTag, {value: "Module"}));
   const providerInjectionKey = Symbol("provider injection key");
   const rootTaskDetailInjectionKey = Symbol("rootTaskDetail injection key");
   const _sfc_main$l = defineComponent({
    __name: "ProgressBar",
    setup(__props) {
     const theme = ref({
      root: `relative overflow-hidden h-5 bg-surface-200 dark:bg-surface-700 rounded-md`,
      value: `m-0 bg-primary
        p-determinate:h-full p-determinate:w-0 p-determinate:absolute p-determinate:flex p-determinate:items-center p-determinate:justify-center 
        p-determinate:overflow-hidden p-determinate:transition-[width] p-determinate:duration-1000 p-determinate:ease-in-out
        p-indeterminate:before:content-[''] p-indeterminate:before:absolute p-indeterminate:before:bg-inherit p-indeterminate:before:top-0 p-indeterminate:before:start-0 p-indeterminate:before:bottom-0 p-indeterminate:before:will-change-[inset-inline-start,inset-inline-end]
        p-indeterminate:before:animate-[p-progressbar-indeterminate-anim_2.1s_cubic-bezier(0.65,0.815,0.735,0.395)_infinite]
        p-indeterminate:after:content-[''] p-indeterminate:after:absolute p-indeterminate:after:bg-inherit p-indeterminate:after:top-0 p-indeterminate:after:start-0 p-indeterminate:after:bottom-0 p-indeterminate:after:will-change-[inset-inline-start,inset-inline-end]
        p-indeterminate:after:animate-[p-progressbar-indeterminate-anim-short_2.1s_cubic-bezier(0.165,0.84,0.44,1)_infinite]
        p-indeterminate:after:animate-delay-[1.15s]`,
      label: `text-primary-contrast text-xs font-semibold
        p-determinate:inline-flex`,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$a),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _hoisted_1$t = {class: "flex items-center justify-between shrink-0 p-5"};
   const _hoisted_2$6 = {class: "font-semibold text-xl"};
   const _hoisted_3$5 = {class: "overflow-y-auto"};
   const _hoisted_4$5 = {class: "pt-0 px-5 pb-5 flex items-center gap-4"};
   const _hoisted_5$5 = ["innerHTML"];
   const _hoisted_6$5 = {key: 1};
   const _hoisted_7$4 = {class: "pt-0 px-5 pb-5 flex justify-end gap-2"};
   const _sfc_main$k = defineComponent({
    __name: "ConfirmDialog",
    props: {html: {type: Boolean, default: false}},
    setup(__props) {
     const theme = ref({
      root: `max-h-[90%] max-w-screen rounded-xl
        border border-surface-200 dark:border-surface-700
        bg-surface-0 dark:bg-surface-900
        text-surface-700 dark:text-surface-0 shadow-lg`,
      mask: `bg-black/50 fixed top-0 start-0 w-full h-full`,
      transition: {enterFromClass: "opacity-0 scale-75", enterActiveClass: "transition-all duration-150 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-all duration-150 ease-[cubic-bezier(0.4,0,0.2,1)]", leaveToClass: "opacity-0 scale-75"},
     });
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$n), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {container: withCtx(({message: message3, acceptCallback, rejectCallback}) => [createElementVNode("div", null, [renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({message: message3})), () => [createElementVNode("div", _hoisted_1$t, [createElementVNode("span", _hoisted_2$6, toDisplayString$1(message3.header), 1), createVNode(_sfc_main$O, {variant: "text", rounded: "", onClick: rejectCallback, autofocus: ""}, {icon: withCtx(() => [createVNode(unref(script$O))]), _: 1}, 8, ["onClick"])])])]), createElementVNode("div", _hoisted_3$5, [renderSlot(_ctx.$slots, "content", normalizeProps(guardReactiveProps({message: message3, html: __props.html})), () => [createElementVNode("div", _hoisted_4$5, [createVNode(unref(script$L), {class: "size-6"}), __props.html ? (openBlock(), createElementBlock("span", {key: 0, innerHTML: message3.message}, null, 8, _hoisted_5$5)) : (openBlock(), createElementBlock("span", _hoisted_6$5, toDisplayString$1(message3.message), 1))])])]), createElementVNode("div", null, [renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps({acceptCallback, rejectCallback})), () => [createElementVNode("div", _hoisted_7$4, [createVNode(_sfc_main$O, {onClick: rejectCallback, label: message3.rejectProps.label, size: "small"}, null, 8, ["onClick", "label"]), createVNode(_sfc_main$z, {onClick: acceptCallback, label: message3.acceptProps.label, size: "small"}, null, 8, ["onClick", "label"])])])])]), _: 3}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const _sfc_main$j = defineComponent({
    __name: "Menu",
    setup(__props, {expose: __expose}) {
     const theme = ref({
      root: `bg-surface-0 dark:bg-surface-900 
        text-surface-700 dark:text-surface-0 
        border border-solid border-surface-200 dark:border-surface-700
        rounded-md min-w-52
        p-popup:shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-2px_rgba(0,0,0,0.1)]`,
      list: `m-0 p-1 list-none outline-none flex flex-col gap-[2px]`,
      item: `p-disabled:opacity-60 p-disabled:pointer-events-none`,
      itemContent: `group transition-colors duration-200 rounded-sm text-surface-700 dark:text-surface-0
        p-focus:bg-surface-100 dark:p-focus:bg-surface-800 p-focus:text-surface-800 dark:p-focus:text-surface-0
        hover:bg-surface-100 dark:hover:bg-surface-800 hover:text-surface-800 dark:hover:text-surface-0`,
      itemLink: `cursor-pointer flex items-center no-underline overflow-hidden relative text-inherit
        px-3 py-2 gap-2 select-none outline-none`,
      itemIcon: `text-surface-400 dark:text-surface-500
        p-focus:text-surface-500 dark:p-focus:text-surface-400
        group-hover:text-surface-500 dark:group-hover:text-surface-400`,
      itemLabel: ``,
      submenuLabel: `bg-transparent px-3 py-2 text-surface-500 dark:text-surface-400 font-semibold`,
      separator: `border-t border-surface-200 dark:border-surface-700`,
      transition: {enterFromClass: "opacity-0 scale-y-75", enterActiveClass: "transition duration-120 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-opacity duration-100 ease-linear", leaveToClass: "opacity-0"},
     });
     const el = useTemplateRef("el");
     __expose({toggle: (event, target2) => el.value?.toggle(event, target2)});
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$6),
        {ref_key: "el", ref: el, unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   function supports(task, feature) {
    if (!isSupportedProvider(task.provider)) throw new Error(`task's provider (${task.provider}) is not supported`);
    return providers[task.provider].features.includes(feature);
   }
   function isSupportedProvider(provider2) {
    return Object.hasOwn(providers, provider2);
   }
   const _sfc_main$i = defineComponent({
    __name: "Checkbox",
    setup(__props) {
     const theme = ref({
      root: `relative inline-flex select-none w-5 h-5 align-bottom
        p-small:w-4 p-small:h-4
        p-large:w-6 p-large:h-6`,
      input: `peer cursor-pointer disabled:cursor-default appearance-none
        absolute start-0 top-0 w-full h-full m-0 p-0 opacity-0 z-10
        border border-transparent rounded-xs`,
      box: `flex justify-center items-center rounded-sm w-5 h-5
        border border-surface-300 dark:border-surface-700
        bg-surface-0 dark:bg-surface-950
        text-surface-700 dark:text-surface-0
        peer-enabled:peer-hover:border-surface-400 dark:peer-enabled:peer-hover:border-surface-600
        p-checked:border-primary p-checked:bg-primary p-checked:text-primary-contrast
        peer-enabled:peer-hover:p-checked:bg-primary-emphasis peer-enabled:peer-hover:p-checked:border-primary-emphasis
        peer-focus-visible:outline-1 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary peer-focus-visible:outline
        p-invalid:border-red-400 dark:p-invalid:border-red-300
        p-filled:bg-surface-50 dark:p-filled:bg-surface-800
        p-disabled:bg-surface-200 dark:p-disabled:bg-surface-700 p-disabled:border-surface-300 dark:p-disabled:border-surface-500 p-disabled:text-surface-500 dark:p-disabled:text-surface-400
        shadow-[0_1px_2px_0_rgba(18,18,23,0.05)] transition-colors duration-200
        p-small:w-4 p-small:h-4
        p-large:w-6 p-large:h-6`,
      icon: `text-sm w-[0.875rem] h-[0.875rem] transition-none
        p-small:w-3 p-small:h-3
        p-large:w-4 p-large:h-4`,
     });
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(unref(script$r), {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}}, {icon: withCtx(({checked: checked3, indeterminate: indeterminate3, dataP: dataP16}) => [checked3 ? (openBlock(), createBlock(unref(script$M), {key: 0, class: normalizeClass(theme.value.icon), "data-p": dataP16}, null, 8, ["class", "data-p"])) : indeterminate3 ? (openBlock(), createBlock(unref(script$s), {key: 1, class: normalizeClass(theme.value.icon), "data-p": dataP16}, null, 8, ["class", "data-p"])) : createCommentVNode("", true)]), _: 1}, 8, ["pt", "ptOptions"]));
     };
    },
   });
   const _hoisted_1$s = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$j(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$s, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M18.22 20.75H5.78A2.64 2.64 0 0 1 3.25 18v-3a.75.75 0 0 1 1.5 0v3a1.16 1.16 0 0 0 1 1.25h12.47a1.16 1.16 0 0 0 1-1.25v-3a.75.75 0 0 1 1.5 0v3a2.64 2.64 0 0 1-2.5 2.75"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M12 15.75a.74.74 0 0 1-.53-.22l-4-4a.75.75 0 0 1 1.06-1.06L12 13.94l3.47-3.47a.75.75 0 0 1 1.06 1.06l-4 4a.74.74 0 0 1-.53.22"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M12 15.75a.76.76 0 0 1-.75-.75V4a.75.75 0 0 1 1.5 0v11a.76.76 0 0 1-.75.75"}, null, -1)]))]));
   }
   const PrimeDownload = markRaw({name: "prime-download", render: render$j});
   const _hoisted_1$r = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$i(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$r, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M18.53 9L13 3.47a.75.75 0 0 0-.53-.22H8A2.75 2.75 0 0 0 5.25 6v12A2.75 2.75 0 0 0 8 20.75h8A2.75 2.75 0 0 0 18.75 18V9.5a.75.75 0 0 0-.22-.5m-5.28-3.19l2.94 2.94h-2.94ZM16 19.25H8A1.25 1.25 0 0 1 6.75 18V6A1.25 1.25 0 0 1 8 4.75h3.75V9.5a.76.76 0 0 0 .75.75h4.75V18A1.25 1.25 0 0 1 16 19.25"}, null, -1)]))]));
   }
   const FileIcon = markRaw({name: "prime-file", render: render$i});
   const _hoisted_1$q = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$h(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$q, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M8.5 19.75a.8.8 0 0 1-.29-.06a.74.74 0 0 1-.46-.69V5A.75.75 0 0 1 9 4.47l7 7a.75.75 0 0 1 0 1.06l-7 7a.77.77 0 0 1-.5.22m.75-12.94v10.38L14.44 12Z"}, null, -1)]))]));
   }
   const PlayIcon = markRaw({name: "prime-play", render: render$h});
   const _hoisted_1$p = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$g(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$p, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M9 19.75a.76.76 0 0 1-.75-.75V5a.75.75 0 0 1 1.5 0v14a.76.76 0 0 1-.75.75m6 0a.76.76 0 0 1-.75-.75V5a.75.75 0 0 1 1.5 0v14a.76.76 0 0 1-.75.75"}, null, -1)]))]));
   }
   const PauseIcon = markRaw({name: "prime-pause", render: render$g});
   const _hoisted_1$o = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$f(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$o, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M17 19.75H7A2.75 2.75 0 0 1 4.25 17V7A2.75 2.75 0 0 1 7 4.25h10A2.75 2.75 0 0 1 19.75 7v10A2.75 2.75 0 0 1 17 19.75m-10-14A1.25 1.25 0 0 0 5.75 7v10A1.25 1.25 0 0 0 7 18.25h10A1.25 1.25 0 0 0 18.25 17V7A1.25 1.25 0 0 0 17 5.75Z"}, null, -1)]))]));
   }
   const StopIcon = markRaw({name: "prime-stop", render: render$f});
   const _hoisted_1$n = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$e(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$n, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M12 20.75a7.25 7.25 0 0 1 0-14.5h2.5a.75.75 0 0 1 0 1.5H12a5.75 5.75 0 1 0 5.75 5.75a.75.75 0 0 1 1.5 0A7.26 7.26 0 0 1 12 20.75"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M12 10.75a.74.74 0 0 1-.53-.22a.75.75 0 0 1 0-1.06L13.94 7l-2.47-2.47a.75.75 0 1 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3a.74.74 0 0 1-.53.22"}, null, -1)]))]));
   }
   const PrimeRefresh = markRaw({name: "prime-refresh", render: render$e});
   const _hoisted_1$m = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$d(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$m, [...(_cache[0] || (_cache[0] = [createElementVNode("circle", {cx: "12", cy: "12", r: "1.75", fill: "currentColor"}, null, -1), createElementVNode("circle", {cx: "19", cy: "12", r: "1.75", fill: "currentColor"}, null, -1), createElementVNode("circle", {cx: "5", cy: "12", r: "1.75", fill: "currentColor"}, null, -1)]))]));
   }
   const PrimeEllipsisH = markRaw({name: "prime-ellipsis-h", render: render$d});
   const _hoisted_1$l = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$c(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$l, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M19.53 8L14 2.47a.75.75 0 0 0-.53-.22H11A2.75 2.75 0 0 0 8.25 5v1.25H7A2.75 2.75 0 0 0 4.25 9v10A2.75 2.75 0 0 0 7 21.75h7A2.75 2.75 0 0 0 16.75 19v-1.25H17A2.75 2.75 0 0 0 19.75 15V8.5a.75.75 0 0 0-.22-.5m-5.28-3.19l2.94 2.94h-2.94Zm1 14.19A1.25 1.25 0 0 1 14 20.25H7A1.25 1.25 0 0 1 5.75 19V9A1.25 1.25 0 0 1 7 7.75h1.25V15A2.75 2.75 0 0 0 11 17.75h4.25ZM17 16.25h-6A1.25 1.25 0 0 1 9.75 15V5A1.25 1.25 0 0 1 11 3.75h1.75V8.5a.76.76 0 0 0 .75.75h4.75V15A1.25 1.25 0 0 1 17 16.25"}, null, -1)]))]));
   }
   const PrimeCopy = markRaw({name: "prime-copy", render: render$c});
   const _hoisted_1$k = {class: "flex flex-col"};
   const _hoisted_2$5 = {class: "pt-0 px-5 pb-5 flex items-center gap-4"};
   const _hoisted_3$4 = ["innerHTML"];
   const _hoisted_4$4 = {key: 1};
   const _hoisted_5$4 = {key: 0, class: "pt-0 px-5 pb-5 flex flex-row justify-between items-center"};
   const _hoisted_6$4 = {class: "flex flex-row relative items-center"};
   const _hoisted_7$3 = {class: "flex flex-row justify-center items-center h-full min-w-10 min-h-10 relative px-3 py-2"};
   const _hoisted_8$2 = {class: "flex flex-col flex-1 px-3 py-2"};
   const _hoisted_9$2 = {class: "text-base"};
   const _hoisted_10$2 = {class: "text-sm text-surface-500 dark:text-surface-400 flex flex-row items-center"};
   const _hoisted_11$2 = {class: "mr-3"};
   const _hoisted_12$1 = {class: "flex items-center px-3 py-2"};
   const _sfc_main$h = defineComponent({
    __name: "BaseTaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}, loading: {type: Boolean, default: false}, copy: {}},
    emits: ["restart", "abort", "remove", "pause", "unpause", "retry", "click"],
    setup(__props, {emit: __emit}) {
     const {t: t2} = useI18n();
     const storage2 = globalStorage.withKeys("downloader");
     const $common = i18nKeys.$downloader.$gui.$taskComponent.$common;
     const emit = __emit;
     useSlots();
     const toProgressString = (num) => (num > -1 ? num.toString() : t2($common.$unknown));
     const progress = computed(() => Object.assign({color: {init: "bg-grey-700", paused: "bg-gray-400 dark:bg-gray-500", queue: "bg-primary", ongoing: "bg-primary", complete: "bg-green-600", aborted: "bg-gray-400 dark:bg-gray-500", error: "bg-red-600"}[__props.task.progress.status], percentage: __props.task.progress.total > -1 && __props.task.progress.finished > -1 ? (__props.task.progress.total > 0 ? (__props.task.progress.finished / __props.task.progress.total) * 100 : 100) : 0, hasPercentage: __props.task.progress.total > -1 && __props.task.progress.finished > -1}, __props.task.progress));
     const progreebarMode = computed(() => ({init: "indeterminate", paused: "determinate", queue: "determinate", ongoing: progress.value.hasPercentage ? "determinate" : "indeterminate", complete: "determinate", aborted: "determinate", error: "determinate"})[__props.task.progress.status]);
     const confirm = useConfirm();
     const abortFilesSupported = computed(() => supports(__props.task, "abortFiles"));
     const abortFiles = makeStorageRef("abortFiles", storage2);
     const showCheckbox = computed(() => abortFiles.value === "prompt" && abortFilesSupported.value);
     const deleteFilesChecked = ref(false);
     const checkboxId = "confirm-checkbox-" + v4();
     const deleteFiles = computed(() => abortFilesSupported.value && {prompt: deleteFilesChecked.value, preserve: false, delete: true}[abortFiles.value]);
     const confirmDialogGroup = `remove-task:${v4()}`;
     const isStatus = (...acceptedStatusList) => computed(() => acceptedStatusList.includes(__props.task.progress.status));
     const pausable = supports(__props.task, "pause") && isStatus("paused", "ongoing");
     const abortable = isStatus("queue", "ongoing");
     const retryable = isStatus("error");
     const restartable = isStatus("ongoing", "complete", "aborted", "error");
     const removable = computed(() => !__props.isSubtask);
     const confirmRestart = function (e) {
      e?.stopPropagation();
      deleteFilesChecked.value = false;
      const $confirmRestart = $common.$confirmRestart;
      confirm.require({
       group: confirmDialogGroup,
       appendTo: "self",
       message: t2($confirmRestart.$message, {name: __props.task.name}, {escapeParameter: true}),
       header: t2($confirmRestart.$header),
       accept: () => {
        emit("restart", __props.task, deleteFiles.value);
       },
       acceptProps: {label: t2($confirmRestart.$accept)},
       rejectProps: {label: t2($confirmRestart.$reject)},
      });
     };
     const confirmAbort = function (e) {
      e?.stopPropagation();
      deleteFilesChecked.value = false;
      const $confirmAbort = $common.$confirmAbort;
      confirm.require({
       group: confirmDialogGroup,
       appendTo: "self",
       message: t2($confirmAbort.$message, {name: __props.task.name}, {escapeParameter: true}),
       header: t2($confirmAbort.$header),
       accept: () => {
        emit("abort", __props.task, deleteFiles.value);
       },
       acceptProps: {label: t2($confirmAbort.$accept)},
       rejectProps: {label: t2($confirmAbort.$reject)},
      });
     };
     const confirmRemove = function (_e2) {
      deleteFilesChecked.value = false;
      const $confirmRemove = $common.$confirmRemove;
      confirm.require({
       group: confirmDialogGroup,
       appendTo: "self",
       message: t2($confirmRemove.$message, {name: __props.task.name}, {escapeParameter: true}),
       header: t2($confirmRemove.$header),
       accept: () => {
        emit("remove", __props.task, deleteFiles.value);
       },
       acceptProps: {label: t2($confirmRemove.$accept)},
       rejectProps: {label: t2($confirmRemove.$reject)},
      });
     };
     const icon2 = computed(() => {
      const map = {savefile: FileIcon, download: PrimeDownload, file: FileIcon, post: FileIcon, posts: FolderIcon};
      const comp = map[__props.task.type];
      if (typeof comp === "undefined") throw new Error(`task.type (${__props.task.type}) is not supported`);
      return comp;
     });
     const instance = getCurrentInstance$1();
     const overlayParent = computed(() => instance.root.vnode.el?.parentElement);
     const menu = useTemplateRef("menu");
     const toggleMenu = (e, target2) => {
      e.stopPropagation();
      menu.value?.toggle(e, target2);
     };
     const menuButtons = computed(() => {
      const items = [
       {
        label: t2($common.$confirmRestart.$label),
        disabled: __props.loading,
        icon: PrimeRefresh,
        command(e) {
         confirmRestart(e.originalEvent);
        },
       },
       {
        label: t2($common.$confirmRemove.$label),
        disabled: __props.loading,
        icon: TrashIcon,
        command(e) {
         confirmRemove(e.originalEvent);
        },
       },
      ];
      if (__props.copy) {
       items.push({
        label: __props.copy.label,
        icon: PrimeCopy,
        command(_e2) {
         _GM_setClipboard(__props.copy.value, "text");
         toast({summary: __props.copy.label, detail: t2($common.$copied), severity: "success", life: 3500});
        },
       });
      }
      return items;
     });
     return (_ctx, _cache) => {
      const _directive_ripple = resolveDirective("ripple");
      return (openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$k, {group: confirmDialogGroup, html: ""}, {content: withCtx(({message: message3, html}) => [createElementVNode("div", _hoisted_1$k, [createElementVNode("div", _hoisted_2$5, [createVNode(unref(script$L), {class: "size-6"}), html ? (openBlock(), createElementBlock("span", {key: 0, innerHTML: message3.message}, null, 8, _hoisted_3$4)) : (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString$1(message3.message), 1))]), showCheckbox.value ? (openBlock(), createElementBlock("div", _hoisted_5$4, [createElementVNode("label", {for: checkboxId}, toDisplayString$1(unref(t2)(unref($common).$confirmDeleteFiles)), 1), createVNode(_sfc_main$i, {modelValue: deleteFilesChecked.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (deleteFilesChecked.value = $event)), "input-id": checkboxId}, null, 8, ["modelValue"])])) : createCommentVNode("", true)])]), _: 1}), withDirectives((openBlock(), createElementBlock("div", {class: "w-full flex flex-col px-3 py-2 hover:bg-emphasis transition-colors duration-200", onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", $event, __props.task))}, [createElementVNode("div", _hoisted_6$4, [createElementVNode("div", _hoisted_7$3, [(openBlock(), createBlock(resolveDynamicComponent(icon2.value), {class: "max-w-full max-h-full absolute left-1/2 top-1/2 -translate-1/2 text-2xl flex justify-center items-center"}))]), createElementVNode("div", _hoisted_8$2, [createElementVNode("div", _hoisted_9$2, [renderSlot(_ctx.$slots, "title", {task: __props.task}, () => [createTextVNode(toDisplayString$1(__props.task.name), 1)])]), createElementVNode("div", _hoisted_10$2, [renderSlot(_ctx.$slots, "caption", {task: __props.task}, () => [createElementVNode("span", _hoisted_11$2, [renderSlot(_ctx.$slots, "status", {task: __props.task}, () => [createTextVNode(toDisplayString$1(unref(t2)(unref($common) + "." + __props.task.progress.status)), 1)])]), createElementVNode("span", null, [renderSlot(_ctx.$slots, "progress", {task: __props.task}, () => [createTextVNode(toDisplayString$1(unref(t2)(unref($common).$caption, {total: toProgressString(__props.task.progress.total), finished: toProgressString(__props.task.progress.finished)})), 1)])])])])]), createElementVNode("div", _hoisted_12$1, [renderSlot(_ctx.$slots, "extraActions", {task: __props.task}), withDirectives(createVNode(_sfc_main$z, {variant: "text", loading: __props.loading, onClick: _cache[1] || (_cache[1] = ($event) => (__props.task.progress.status === "paused" ? emit("unpause", __props.task) : emit("pause", __props.task))), title: unref(t2)(unref($common) + "." + (__props.task.progress.status === "paused" ? "unpause" : "pause")), "pt:root:class": "p-2"}, {icon: withCtx(() => [__props.task.progress.status === "paused" ? (openBlock(), createBlock(unref(PlayIcon), {key: 0})) : (openBlock(), createBlock(unref(PauseIcon), {key: 1}))]), _: 1}, 8, ["loading", "title"]), [[vShow, unref(pausable)]]), withDirectives(createVNode(_sfc_main$z, {variant: "text", loading: __props.loading, onClick: _cache[2] || (_cache[2] = ($event) => __props.task.progress.status === "error" && emit("retry", __props.task)), title: unref(t2)(unref($common).$retry), "pt:root:class": "p-2"}, {icon: withCtx(() => [createVNode(unref(PrimeRefresh))]), _: 1}, 8, ["loading", "title"]), [[vShow, unref(retryable)]]), withDirectives(createVNode(_sfc_main$z, {variant: "text", loading: __props.loading, onClick: confirmAbort, title: unref(t2)(unref($common).$confirmAbort.$label), "pt:root:class": "p-2"}, {icon: withCtx(() => [createVNode(unref(StopIcon))]), _: 1}, 8, ["loading", "title"]), [[vShow, unref(abortable)]]), withDirectives(createVNode(_sfc_main$z, {variant: "text", onClick: toggleMenu, title: unref(t2)(unref($common).$more), "pt:root:class": "p-2"}, {icon: withCtx(() => [createVNode(unref(PrimeEllipsisH))]), _: 1}, 8, ["title"]), [[vShow, unref(restartable) || removable.value]]), createVNode(_sfc_main$j, {ref_key: "menu", ref: menu, model: menuButtons.value, "append-to": overlayParent.value, "pt:root:onclick": (e) => e.stopPropagation(), popup: ""}, {itemicon: withCtx(({class: cls, item: item2}) => [(openBlock(), createBlock(resolveDynamicComponent(item2.icon), {class: normalizeClass(cls)}, null, 8, ["class"]))]), _: 1}, 8, ["model", "append-to", "pt:root:onclick"])])]), createVNode(_sfc_main$l, {mode: progreebarMode.value, value: progress.value.percentage, "pt:root:class": "h-1 mt-1", "pt:value:class": [progress.value.color, "transition-colors"]}, {default: withCtx(() => [...(_cache[4] || (_cache[4] = [createElementVNode("span", null, null, -1)]))]), _: 1}, 8, ["mode", "value", "pt:value:class"])])), [[_directive_ripple]])], 64));
     };
    },
   });
   const _sfc_main$g = defineComponent({
    __name: "SaveTaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}},
    setup(__props) {
     const {t: t2} = useI18n();
     const $save = i18nKeys.$downloader.$gui.$taskComponent.$save;
     const provider2 = inject(providerInjectionKey);
     const loading2 = ref(false);
     async function abort(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      loading2.value = false;
     }
     async function remove3(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      provider2.removeTask(task.id);
      loading2.value = false;
     }
     async function restart(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      task.run();
      loading2.value = false;
     }
     async function pause(task) {
      loading2.value = true;
      await task.pause();
      loading2.value = false;
     }
     async function unpause(task) {
      loading2.value = true;
      await task.unpause();
      loading2.value = false;
     }
     async function retry(task) {
      loading2.value = true;
      await task.retry();
      loading2.value = false;
     }
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$h, {task: __props.task, "is-subtask": __props.isSubtask, loading: loading2.value, onAbort: abort, onRemove: remove3, onRestart: restart, onPause: pause, onUnpause: unpause, onRetry: retry}, {progress: withCtx(() => [createTextVNode(toDisplayString$1({ongoing: unref(t2)(unref($save).$caption.$ongoing), complete: unref(t2)(unref($save).$caption.$complete)}[__props.task.progress.status] ?? ""), 1)]), _: 1}, 8, ["task", "is-subtask", "loading"]));
     };
    },
   });
   const _sfc_main$f = defineComponent({
    __name: "FileTaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}},
    setup(__props) {
     const {t: t2} = useI18n();
     const $common = i18nKeys.$downloader.$gui.$taskComponent.$common;
     const $file = i18nKeys.$downloader.$gui.$taskComponent.$file;
     const provider2 = inject(providerInjectionKey);
     const loading2 = ref(false);
     const toProgressString = (num, formatter) => (num > -1 ? (formatter ? formatter(num) : num.toString()) : t2($common.$unknown));
     async function abort(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      loading2.value = false;
     }
     async function remove3(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      provider2.removeTask(task.id);
      loading2.value = false;
     }
     async function restart(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      task.run();
      loading2.value = false;
     }
     async function pause(task) {
      loading2.value = true;
      await task.pause();
      loading2.value = false;
     }
     async function unpause(task) {
      loading2.value = true;
      await task.unpause();
      loading2.value = false;
     }
     async function retry(task) {
      loading2.value = true;
      await task.retry();
      loading2.value = false;
     }
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$h, {task: __props.task, "is-subtask": __props.isSubtask, loading: loading2.value, copy: {label: unref(t2)(unref($file).$copyLink), value: __props.task.file.url}, onAbort: abort, onRemove: remove3, onRestart: restart, onPause: pause, onUnpause: unpause, onRetry: retry}, {progress: withCtx(() => [createTextVNode(toDisplayString$1(unref(t2)(unref($file).$caption, {percentage: (__props.task.progress.finished | (__props.task.progress.total - 1)) > 0 ? Math.floor((__props.task.progress.finished / __props.task.progress.total) * 100 * 100) / 100 : "0", finished: toProgressString(__props.task.progress.finished, unref(stringifyBytes)), total: toProgressString(__props.task.progress.total, unref(stringifyBytes))})), 1)]), _: 1}, 8, ["task", "is-subtask", "loading", "copy"]));
     };
    },
   });
   const _sfc_main$e = defineComponent({
    __name: "app-taskdetail",
    props: {provider: {}, tasks: {}, name: {}},
    setup(__props, {expose: __expose}) {
     const {t: t2} = useI18n();
     provide(providerInjectionKey, __props.provider);
     const visible3 = ref(false);
     const internalTasks = ref([]);
     const internalName = ref(null);
     function updateTasks(newTasks) {
      internalTasks.value = [...newTasks];
     }
     function showWithTasks(tasks, name) {
      updateTasks(tasks);
      internalName.value = name;
      visible3.value = true;
     }
     watch(
      () => __props.tasks,
      (val) => updateTasks(val),
      {immediate: true, deep: true},
     );
     __expose({visible: visible3, tasks: internalTasks, updateTasks, showWithTasks});
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$N,
        {visible: visible3.value, "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => (visible3.value = $event)), header: internalName.value ? unref(t2)(unref(i18nKeys).$downloader.$gui.$titleDetail, {name: internalName.value}) : unref(t2)(unref(i18nKeys).$downloader.$gui.$titleDetailNoname), class: "w-[80vw] h-[80vh]", "append-to": "self", "dismissable-mask": "", modal: ""},
        {
         default: withCtx(() => [
          (openBlock(true),
          createElementBlock(
           Fragment,
           null,
           renderList(internalTasks.value, (task) => {
            return (openBlock(), createBlock(_sfc_main$b, {key: task.id, task, "is-subtask": ""}, null, 8, ["task"]));
           }),
           128,
          )),
         ]),
         _: 1,
        },
        8,
        ["visible", "header"],
       )
      );
     };
    },
   });
   const _hoisted_1$j = {key: 0};
   const _sfc_main$d = defineComponent({
    __name: "PostTaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}},
    setup(__props) {
     const {t: t2} = useI18n();
     const $common = i18nKeys.$downloader.$gui.$taskComponent.$common;
     const $post = i18nKeys.$downloader.$gui.$taskComponent.$post;
     const provider2 = inject(providerInjectionKey);
     const loading2 = ref(false);
     const toProgressString = (num) => (num > -1 ? num.toString() : t2($common.$unknown));
     async function abort(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      loading2.value = false;
     }
     async function remove3(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      provider2.removeTask(task.id);
      loading2.value = false;
     }
     async function restart(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      task.run();
      loading2.value = false;
     }
     async function pause(task) {
      loading2.value = true;
      await task.pause();
      loading2.value = false;
     }
     async function unpause(task) {
      loading2.value = true;
      await task.unpause();
      loading2.value = false;
     }
     async function retry(task) {
      loading2.value = true;
      await task.retry();
      loading2.value = false;
     }
     function detail(_e2, task) {
      const {host, app: app2, root: root20} = createShadowApp(_sfc_main$e, {props: {provider: provider2, tasks: [], name: task.name}, options: {app: {classes: "dark"}}});
      root20.showWithTasks(task.subTasks, task.name);
      const handleTaskUpdate = watch(
       task.subTasks,
       () => {
        root20.tasks = task.subTasks;
       },
       {deep: true},
      );
      const handleClose = watch(
       () => root20.visible,
       (newVal, oldVal) => {
        if (!newVal && oldVal) {
         app2.unmount();
         host.remove();
         handleTaskUpdate.stop();
         handleClose.stop();
        }
       },
      );
     }
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$h, {task: __props.task, "is-subtask": __props.isSubtask, loading: loading2.value, onAbort: abort, onRemove: remove3, onRestart: restart, onPause: pause, onUnpause: unpause, onRetry: retry, onClick: detail}, {title: withCtx(() => [createTextVNode(toDisplayString$1(__props.task.name ?? unref(t2)(unref($common).$titleNodata)), 1)]), progress: withCtx(() => [createElementVNode("span", null, toDisplayString$1(unref(t2)(unref($post).$caption, {total: toProgressString(__props.task.progress.total), finished: toProgressString(__props.task.progress.finished)})), 1), __props.task.subTasks.some((t22) => t22.progress.status === "aborted") ? (openBlock(), createElementBlock("span", _hoisted_1$j, toDisplayString$1(unref(t2)(unref($post).$captionAborted, {aborted: __props.task.subTasks.filter((t22) => t22.progress.status === "aborted").length})), 1)) : createCommentVNode("", true)]), _: 1}, 8, ["task", "is-subtask", "loading"]));
     };
    },
   });
   const _hoisted_1$i = {key: 0};
   const _sfc_main$c = defineComponent({
    __name: "PostsTaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}},
    setup(__props) {
     const {t: t2} = useI18n();
     const $common = i18nKeys.$downloader.$gui.$taskComponent.$common;
     const $posts = i18nKeys.$downloader.$gui.$taskComponent.$posts;
     const provider2 = inject(providerInjectionKey);
     const loading2 = ref(false);
     const toProgressString = (num) => (num > -1 ? num.toString() : t2($common.$unknown));
     async function abort(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      loading2.value = false;
     }
     async function remove3(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      provider2.removeTask(task.id);
      loading2.value = false;
     }
     async function restart(task, deleteFiles) {
      loading2.value = true;
      await task.abort(deleteFiles);
      task.run();
      loading2.value = false;
     }
     async function pause(task) {
      loading2.value = true;
      await task.pause();
      loading2.value = false;
     }
     async function unpause(task) {
      loading2.value = true;
      await task.unpause();
      loading2.value = false;
     }
     async function retry(task) {
      loading2.value = true;
      await task.retry();
      loading2.value = false;
     }
     function detail(_e2, task) {
      const {host, app: app2, root: root20} = createShadowApp(_sfc_main$e, {props: {provider: provider2, tasks: [], name: task.name}, options: {app: {classes: "dark"}}});
      root20.showWithTasks(task.subTasks, task.name);
      watch(
       () => root20.visible,
       (newVal, oldVal) => {
        if (!newVal && oldVal) {
         app2.unmount();
         host.remove();
        }
       },
      );
     }
     return (_ctx, _cache) => {
      return (openBlock(), createBlock(_sfc_main$h, {task: __props.task, "is-subtask": __props.isSubtask, loading: loading2.value, onAbort: abort, onRemove: remove3, onRestart: restart, onPause: pause, onUnpause: unpause, onRetry: retry, onClick: detail}, {title: withCtx(() => [createTextVNode(toDisplayString$1(__props.task.name ?? unref(t2)(unref($common).$titleNodata)), 1)]), progress: withCtx(() => [createElementVNode("span", null, toDisplayString$1(unref(t2)(unref($posts).$caption, {total: toProgressString(__props.task.progress.total), finished: toProgressString(__props.task.progress.finished)})), 1), __props.task.subTasks.some((t22) => t22.progress.status === "aborted") ? (openBlock(), createElementBlock("span", _hoisted_1$i, toDisplayString$1(unref(t2)(unref($posts).$captionAborted, {aborted: __props.task.subTasks.filter((t22) => t22.progress.status === "aborted").length})), 1)) : createCommentVNode("", true)]), _: 1}, 8, ["task", "is-subtask", "loading"]));
     };
    },
   });
   const _sfc_main$b = defineComponent({
    __name: "TaskItem",
    props: {task: {}, isSubtask: {type: Boolean, default: false}},
    setup(__props) {
     function isSaveTask(task) {
      return task.type === "savefile";
     }
     function isFileTask(task) {
      return task.type === "file";
     }
     function isPostTask(task) {
      return task.type === "post";
     }
     function isPostsTask(task) {
      return task.type === "posts";
     }
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock(Fragment, null, [isSaveTask(__props.task) ? (openBlock(), createBlock(_sfc_main$g, {key: 0, task: __props.task, isSubtask: __props.isSubtask}, null, 8, ["task", "isSubtask"])) : createCommentVNode("", true), isFileTask(__props.task) ? (openBlock(), createBlock(_sfc_main$f, {key: 1, task: __props.task, isSubtask: __props.isSubtask}, null, 8, ["task", "isSubtask"])) : createCommentVNode("", true), isPostTask(__props.task) ? (openBlock(), createBlock(_sfc_main$d, {key: 2, task: __props.task, isSubtask: __props.isSubtask}, null, 8, ["task", "isSubtask"])) : createCommentVNode("", true), isPostsTask(__props.task) ? (openBlock(), createBlock(_sfc_main$c, {key: 3, task: __props.task, isSubtask: __props.isSubtask}, null, 8, ["task", "isSubtask"])) : createCommentVNode("", true)], 64));
     };
    },
   });
   const _sfc_main$a = defineComponent({
    __name: "app",
    props: {provider: {}},
    setup(__props, {expose: __expose}) {
     const {t: t2} = useI18n();
     provide(providerInjectionKey, __props.provider);
     const visible3 = ref(false);
     const options3 = ["init", "queue", "ongoing", "paused", "complete", "aborted", "error"].map((name) => ({label: t2(i18nKeys.$downloader.$gui.$tabs + "." + name), value: name}));
     const tab = ref();
     const filterTask = (status) => computed(() => __props.provider.tasks.filter((t22) => t22.progress.status === status));
     const initTasks = filterTask("init");
     const queueTasks = filterTask("queue");
     const ongoingTasks = filterTask("ongoing");
     const pausedTasks = filterTask("paused");
     const completedTasks = filterTask("complete");
     const abortedTasks = filterTask("aborted");
     const errorTasks = filterTask("error");
     __expose({visible: visible3, tab});
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$N,
        {visible: visible3.value, "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => (visible3.value = $event)), header: unref(t2)(unref(i18nKeys).$downloader.$gui.$title), "append-to": "self", "dismissable-mask": "", modal: ""},
        {
         default: withCtx(() => [
          createVNode(
           _sfc_main$J,
           {modelValue: tab.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (tab.value = $event)), options: unref(options3), "option-label": "label", "option-value": "value", class: "w-[80vw] h-[80vh]"},
           {
            default: withCtx(() => [
             createVNode(
              _sfc_main$M,
              {name: "init"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(initTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "queue"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(queueTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "ongoing"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(ongoingTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "paused"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(pausedTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "complete"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(completedTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "aborted"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(abortedTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
             createVNode(
              _sfc_main$M,
              {name: "error"},
              {
               default: withCtx(() => [
                (openBlock(true),
                createElementBlock(
                 Fragment,
                 null,
                 renderList(unref(errorTasks), (task) => {
                  return (openBlock(), createBlock(_sfc_main$b, {task}, null, 8, ["task"]));
                 }),
                 256,
                )),
               ]),
               _: 1,
              },
             ),
            ]),
            _: 1,
           },
           8,
           ["modelValue", "options"],
          ),
         ]),
         _: 1,
        },
        8,
        ["visible", "header"],
       )
      );
     };
    },
   });
   const _hoisted_1$h = ["innerHTML"];
   const _hoisted_2$4 = {class: "grid grid-cols-[min-content_1fr] my-2 border-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_3$3 = {class: "font-bold flex flex-row items-center justify-center py-2 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_4$3 = {class: "font-bold flex flex-row items-center justify-start py-2 px-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_5$3 = {class: "border-r-3 border-b border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_6$3 = ["innerHTML"];
   const _hoisted_7$2 = {class: "font-bold py-2"};
   const _sfc_main$9 = defineComponent({
    __name: "Filename",
    setup(__props) {
     const {t: t2} = useI18n();
     const toast2 = useToast();
     const $filename = i18nKeys.$downloader.$settings.$filename;
     const markups = ["PostID", "CreatorID", "Service", "P", "Name", "Base", "Ext", "Title", "Creator", "Year", "Month", "Date", "Hour", "Minute", "Second", "Timestamp", "Timetext"];
     function copy(markup) {
      const fullMarkup = "{" + markup + "}";
      const callback = () => {
       toast2.add({summary: t2($filename.$toast.$copied), detail: fullMarkup, severity: "info", life: 3e3});
      };
      if (_GM_info.scriptHandler === "Tampermonkey") {
       _GM_setClipboard(fullMarkup, "text", callback);
      } else {
       _GM_setClipboard(fullMarkup, "text");
       callback();
      }
     }
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createElementBlock(
        Fragment,
        null,
        [
         createElementVNode("div", {class: "font-bold py-2", innerHTML: unref(t2)(unref($filename).$help.$header)}, null, 8, _hoisted_1$h),
         createElementVNode("div", _hoisted_2$4, [
          createElementVNode("div", _hoisted_3$3, toDisplayString$1(unref(t2)(unref($filename).$help.$markup)), 1),
          createElementVNode("div", _hoisted_4$3, toDisplayString$1(unref(t2)(unref($filename).$help.$desc)), 1),
          (openBlock(),
          createElementBlock(
           Fragment,
           null,
           renderList(markups, (markup) => {
            return (openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_5$3, [createVNode(_sfc_main$z, {variant: "text", label: "{" + markup + "}", onClick: ($event) => copy(markup), "pt:root:class": "w-full"}, null, 8, ["label", "onClick"])]), createElementVNode("span", {class: "px-3 flex flex-row items-center border-b border-solid border-surface-200 dark:border-surface-800", innerHTML: unref(t2)(unref($filename).$help.$templates + "." + markup)}, null, 8, _hoisted_6$3)], 64));
           }),
           64,
          )),
         ]),
         createElementVNode("div", _hoisted_7$2, toDisplayString$1(unref(t2)(unref($filename).$help.$footer)), 1),
         createVNode(_sfc_main$Q),
        ],
        64,
       )
      );
     };
    },
   });
   const _hoisted_1$g = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$b(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$g, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M16.07 4.93A5.75 5.75 0 0 0 6.25 9a.75.75 0 0 0 1.5 0A4.26 4.26 0 1 1 12 13.25a.76.76 0 0 0-.75.75v2a.75.75 0 0 0 1.5 0v-1.3a5.76 5.76 0 0 0 3.32-9.77"}, null, -1), createElementVNode("circle", {cx: "12", cy: "19.5", r: "1.25", fill: "currentColor"}, null, -1)]))]));
   }
   const QuestionIcon = markRaw({name: "prime-question", render: render$b});
   const _sfc_main$8 = defineComponent({
    __name: "Popover",
    setup(__props, {expose: __expose}) {
     const theme = ref({
      root: `mt-[10px] p-flipped:-mt-[10px] p-flipped:mb-[10px]
        bg-surface-0 dark:bg-surface-900 text-surface-700 dark:text-surface-0
        border border-solid border-surface-200 dark:border-surface-700
        rounded-md shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-2px_rgba(0,0,0,0.1)]
        before:bottom-full before:left-5 before:h-0 before:w-0 before:absolute before:pointer-events-none
        before:border-[10px] before:-ms-[10px] before:border-transparent before:border-b-surface-200 dark:before:border-b-surface-700
        after:bottom-full after:left-5 after:h-0 after:w-0 after:absolute after:pointer-events-none
        after:border-[8px] after:-ms-[8px] after:border-transparent after:border-b-surface-0 dark:after:border-b-surface-900
        p-flipped:before:bottom-auto p-flipped:before:top-full p-flipped:after:bottom-auto p-flipped:after:top-full
        p-flipped:after:border-b-transparent p-flipped:after:border-t-surface-0 dark:p-flipped:after:border-t-surface-900
        p-flipped:before:border-b-transparent p-flipped:before:border-t-surface-200 dark:p-flipped:before:border-t-surface-700`,
      content: `p-3`,
      transition: {enterFromClass: "opacity-0 scale-y-75", enterActiveClass: "transition duration-120 ease-[cubic-bezier(0,0,0.2,1)]", leaveActiveClass: "transition-opacity duration-100 ease-linear", leaveToClass: "opacity-0"},
     });
     const el = useTemplateRef("el");
     __expose({toggle: (event, target2) => el.value?.toggle(event, target2), show: (event, target2) => el.value?.show(event, target2), hide: () => el.value?.hide()});
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$5),
        {ref_key: "el", ref: el, unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _hoisted_1$f = {class: "grid grid-cols-4 grid-rows-4 my-2 border-l-3 border-t-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_2$3 = {class: "font-bold flex flex-row items-center justify-center py-2 px-3 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800 corner-cell"};
   const _hoisted_3$2 = {class: "row-label"};
   const _hoisted_4$2 = {class: "col-label"};
   const _hoisted_5$2 = {class: "font-bold flex flex-row items-center justify-center py-2 px-3 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_6$2 = {class: "font-bold flex flex-row items-center justify-center py-2 px-3 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_7$1 = {class: "font-bold flex flex-row items-center justify-center py-2 px-3 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_8$1 = {class: "font-bold flex flex-row items-center justify-center py-2 px-3 border-r-3 border-b-3 border-solid border-surface-200 dark:border-surface-800"};
   const _hoisted_9$1 = ["onMouseenter", "onTouchstart"];
   const _hoisted_10$1 = {class: "relative w-fit h-fit text-xl"};
   const _hoisted_11$1 = ["innerHTML"];
   const _sfc_main$7 = defineComponent({
    __name: "Provider",
    setup(__props) {
     const {t: t2} = useI18n();
     const $help = i18nKeys.$downloader.$settings.$provider.$help;
     const results = (function () {
      const r = {};
      const $support = $help.$table.$support;
      r.self = {name: t2($support.$self), support: {browser: true, fsa: {compatible: checkCompatibility(), questionable: isMobileAgent() ? t2($help.$fsaMobile) : true}, aria2: {compatible: true, questionable: t2($help.$aria2NeedInstall)}}};
      r.pause = {name: t2($support.$pause), support: {browser: false, fsa: false, aria2: true}};
      r["abort-files"] = {name: t2($support.$abortFiles), support: {browser: false, fsa: true, aria2: false}};
      r.dir = {name: t2($support.$dir), support: {browser: {compatible: {Tampermonkey: true, Violentmonkey: false}[_GM_info.scriptHandler] ?? null, questionable: _GM_info.scriptHandler === "Tampermonkey" && isMobileAgent()}, fsa: true, aria2: true}};
      return r;
     })();
     const popoverContent = ref("");
     const popover = useTemplateRef("popover");
     const popoverParent = computed(() => getCurrentInstance$1()?.root.vnode.el?.parentElement);
     const popoverHandlers = computed(() =>
      popover.value
       ? popoverLogic(popover.value, {
          beforeShow(_e2, comp) {
           if (!isQuestionable(comp)) return false;
           popoverContent.value = typeof comp.questionable === "boolean" ? t2($help.$questionable) : comp.questionable;
          },
         })
       : Object.create(null),
     );
     function isQuestionable(comp) {
      return typeof comp === "object" && comp !== null && !!comp.questionable;
     }
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createElementBlock(
        Fragment,
        null,
        [
         createElementVNode("div", null, toDisplayString$1(unref(t2)(unref($help).$instruction)), 1),
         createElementVNode("div", _hoisted_1$f, [
          createElementVNode("div", _hoisted_2$3, [createElementVNode("div", _hoisted_3$2, toDisplayString$1(unref(t2)(unref($help).$table.$corner.$provider)), 1), createElementVNode("div", _hoisted_4$2, toDisplayString$1(unref(t2)(unref($help).$table.$corner.$support)), 1)]),
          createElementVNode("div", _hoisted_5$2, toDisplayString$1(unref(t2)(unref($help).$table.$provider.$browser)), 1),
          createElementVNode("div", _hoisted_6$2, toDisplayString$1(unref(t2)(unref($help).$table.$provider.$fsa)), 1),
          createElementVNode("div", _hoisted_7$1, toDisplayString$1(unref(t2)(unref($help).$table.$provider.$aria2)), 1),
          (openBlock(true),
          createElementBlock(
           Fragment,
           null,
           renderList(Object.values(unref(results)), (support, i2) => {
            return (
             openBlock(),
             createElementBlock(
              Fragment,
              null,
              [
               createElementVNode("div", _hoisted_8$1, toDisplayString$1(support.name), 1),
               (openBlock(true),
               createElementBlock(
                Fragment,
                null,
                renderList(Object.values(support.support), (comp, j2) => {
                 return (
                  openBlock(),
                  createElementBlock(
                   "div",
                   {class: normalizeClass(["font-bold flex flex-row items-center justify-center py-2 px-3 border-r border-b border-solid border-surface-200 dark:border-surface-800", {"border-b-3": i2 === Object.keys(unref(results)).length - 1, "border-r-3": j2 === Object.keys(unref(results)).length - 1}]), onMouseenter: (e) => popoverHandlers.value.onMouseEnter?.(e, comp), onMouseleave: _cache[0] || (_cache[0] = (...args) => popoverHandlers.value.onMouseLeave && popoverHandlers.value.onMouseLeave(...args)), onTouchstart: (e) => popoverHandlers.value.onTouchStart?.(e, comp)},
                   [
                    createElementVNode("div", _hoisted_10$1, [
                     (openBlock(),
                     createBlock(
                      resolveDynamicComponent(
                       (function () {
                        const compatibility = typeof comp === "boolean" || comp === null ? comp : comp.compatible;
                        if (typeof compatibility === "boolean") {
                         return comp ? unref(PrimeCheck) : unref(PrimeTimes);
                        }
                        if (compatibility === null) {
                         return unref(QuestionIcon);
                        }
                       })(),
                      ),
                     )),
                     isQuestionable(comp) ? (openBlock(), createBlock(unref(QuestionIcon), {key: 0, class: "absolute top-0 right-0 translate-x-1/2 -translate-y-1/2 text-[0.75em]"})) : createCommentVNode("", true),
                    ]),
                   ],
                   42,
                   _hoisted_9$1,
                  )
                 );
                }),
                256,
               )),
              ],
              64,
             )
            );
           }),
           256,
          )),
          popoverParent.value ? (openBlock(), createBlock(_sfc_main$8, {key: 0, ref_key: "popover", ref: popover, "append-to": popoverParent.value}, {default: withCtx(() => [createElementVNode("div", {innerHTML: popoverContent.value}, null, 8, _hoisted_11$1)]), _: 1}, 8, ["append-to"])) : createCommentVNode("", true),
         ]),
        ],
        64,
       )
      );
     };
    },
   });
   const _export_sfc = (sfc, props2) => {
    const target2 = sfc.__vccOpts || sfc;
    for (const [key, val] of props2) {
     target2[key] = val;
    }
    return target2;
   };
   const ProviderHelpComp = _export_sfc(_sfc_main$7, [["__scopeId", "data-v-65d307f0"]]);
   const _hoisted_1$e = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$a(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$e, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M8 18.75H6.5c-.69 0-1.25-.56-1.25-1.25v-12c0-.69.56-1.25 1.25-1.25h3.75V9c0 .41.34.75.75.75h4.8c.1.29.37.5.7.5c.41 0 .75-.34.75-.75V9a.78.78 0 0 0-.22-.53l-5.5-5.5a.78.78 0 0 0-.53-.22H6.5c-1.52 0-2.75 1.23-2.75 2.75v12c0 1.52 1.23 2.75 2.75 2.75H8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m3.75-13.44l2.94 2.94h-2.94zm7.86 6.06c-.38-.38-.94-.61-1.52-.62c-.6-.03-1.17.2-1.55.59l-6.39 6.4c-.13.13-.2.29-.22.47l-.18 2.23c-.02.22.06.44.22.59c.14.14.33.22.53.22h.07l2.25-.21a.74.74 0 0 0 .46-.22l6.39-6.4c.8-.79.77-2.22-.06-3.05m-1 1.99l-6.2 6.21l-1.09.1l.08-1.06l6.2-6.21c.1-.1.28-.14.46-.15c.2 0 .38.07.49.18c.24.23.27.72.06.93"}, null, -1)]))]));
   }
   const FileEditIcon = markRaw({name: "prime-file-edit", render: render$a});
   const _hoisted_1$d = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$9(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$d, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M18 4.25H6A2.75 2.75 0 0 0 3.25 7v10A2.75 2.75 0 0 0 6 19.75h12A2.75 2.75 0 0 0 20.75 17V7A2.75 2.75 0 0 0 18 4.25M6 5.75h12A1.25 1.25 0 0 1 19.25 7v8.19l-2.72-2.72a.7.7 0 0 0-.56-.22a.8.8 0 0 0-.55.27l-1.29 1.55l-4.6-4.6A.7.7 0 0 0 9 9.25a.8.8 0 0 0-.55.27l-3.7 4.41V7A1.25 1.25 0 0 1 6 5.75M4.75 17v-.73l4.3-5.16l4.12 4.12l-2.52 3H6A1.25 1.25 0 0 1 4.75 17M18 18.25h-5.4l3.45-4.14l3.15 3.15a1.23 1.23 0 0 1-1.2.99"}, null, -1)]))]));
   }
   const ImageIcon = markRaw({name: "prime-image", render: render$9});
   const _hoisted_1$c = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$8(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$c, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M19.75 16c0 .41-.34.75-.75.75H6.81l1.22 1.22c.29.29.29.77 0 1.06c-.15.15-.34.22-.53.22s-.38-.07-.53-.22l-2.5-2.5a.8.8 0 0 1-.16-.24a.7.7 0 0 1 0-.57c.04-.09.09-.17.16-.24l2.5-2.5c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-1.22 1.22H19c.41 0 .75.34.75.75ZM5 8.75h12.19l-1.22 1.22c-.29.29-.29.77 0 1.06c.15.15.34.22.53.22s.38-.07.53-.22l2.5-2.5c.07-.07.12-.15.16-.24c.08-.18.08-.39 0-.57a.8.8 0 0 0-.16-.24l-2.5-2.5c-.29-.29-.77-.29-1.06 0s-.29.77 0 1.06l1.22 1.22H5c-.41 0-.75.34-.75.75s.34.75.75.75Z"}, null, -1)]))]));
   }
   const ARALIcon = markRaw({name: "prime-arrow-right-arrow-left", render: render$8});
   const _hoisted_1$b = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$7(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$b, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M20 10.75H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 0 1.5m0-4H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 0 1.5m0 8H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 0 1.5m0 4H4a.75.75 0 0 1 0-1.5h16a.75.75 0 0 1 0 1.5"}, null, -1)]))]));
   }
   const AlignJustifyIcon = markRaw({name: "prime-align-justify", render: render$7});
   const t$4 = i18n.global.t;
   const storage$1 = globalStorage.withKeys("downloader");
   const $downloader = i18nKeys.$downloader;
   const $settings$2 = $downloader.$settings;
   const main$8 = defineModule({id: "downloader", name: t$4(i18nKeys.$downloader.$name)});
   const currentProvider = makeStorageRef("provider", storage$1);
   registerModule({
    id: "downloader",
    name: t$4($settings$2.$label),
    items: [
     {id: "provider", type: "select", label: t$4($settings$2.$provider.$label), caption: t$4($settings$2.$provider.$caption), icon: PrimeDownload, help: markRaw(ProviderHelpComp), props: {optionLabel: "label", optionValue: "value", options: Object.keys(providers).map((name) => ({label: t$4($settings$2.$provider.$options + "." + name), value: name}))}, value: makeStorageRef("provider", storage$1, true, false), reload: true, group: "regular"},
     {id: "filename", type: "text", icon: FileEditIcon, label: t$4($settings$2.$filename.$label), help: markRaw(_sfc_main$9), props: {placeholder: storage$1.default("filename")}, value: makeStorageRef("filename", storage$1, true, false), group: "regular"},
     {id: "noCoverFile", type: "switch", icon: ImageIcon, label: t$4($settings$2.$noCoverFile), value: makeStorageRef("noCoverFile", storage$1, true, false), group: "regular"},
     {id: "downloadOriginalImage", type: "switch", icon: ImageIcon, label: t$4($settings$2.$downloadOriginalImage), value: makeStorageRef("downloadOriginalImage", storage$1, true, false), group: "regular"},
     {
      id: "textContent",
      type: "select",
      label: t$4($settings$2.$textContent.$label),
      caption: t$4($settings$2.$textContent.$caption),
      icon: AlignJustifyIcon,
      props: {optionLabel: "label", optionValue: "value", options: ["none", "txt", "html"].map((val) => ({label: t$4($settings$2.$textContent.$options + "." + val), value: val}))},
      value: makeStorageRef("textContent", storage$1, true, false),
      disabled: featureRelatedDisabled(
       "textContent",
       Object.keys(providers).reduce((text2, provider2) => {
        const $featureNotSupported = $settings$2.$textContent.$featureNotSupported;
        const $provider = $settings$2.$provider;
        text2[provider2] = {text: t$4($featureNotSupported + "." + provider2, {provider: t$4($provider.$options + "." + provider2)}), value: "none"};
        return text2;
       }, {}),
      ),
      group: "regular",
     },
     {
      id: "concurrent",
      type: "number",
      icon: ARALIcon,
      label: t$4($settings$2.$concurrent.$label),
      caption: t$4($settings$2.$concurrent.$caption),
      props: {placeholder: storage$1.default("concurrent").toString()},
      value: makeStorageRef("concurrent", storage$1, true, false),
      disabled: featureRelatedDisabled(
       "concurrent",
       Object.keys(providers).reduce((text2, provider2) => {
        const $featureNotSupported = $settings$2.$concurrent.$featureNotSupported;
        const $provider = $settings$2.$provider;
        text2[provider2] = {text: t$4($featureNotSupported + "." + provider2, {provider: t$4($provider.$options + "." + provider2)}), value: -1};
        return text2;
       }, {}),
      ),
      group: "regular",
     },
     {id: "auto-retry", type: "number", label: t$4($settings$2.$autoRetry.$label), caption: t$4($settings$2.$autoRetry.$caption), icon: PrimeRefresh, props: {placeholder: storage$1.default("autoRetry").toString()}, value: makeStorageRef("autoRetry", storage$1, true, false), group: "regular"},
     {
      id: "abortFiles",
      type: "select",
      icon: FolderIcon,
      label: t$4($settings$2.$abortFiles.$label),
      caption: t$4($settings$2.$abortFiles.$caption),
      value: makeStorageRef("abortFiles", storage$1, true, false),
      props: {optionLabel: "label", optionValue: "value", options: ["prompt", "delete", "preserve"].map((action) => ({label: t$4($settings$2.$abortFiles.$options + "." + action), value: action}))},
      disabled: (function () {
       const provider2 = makeStorageRef("provider", storage$1);
       return computed(() => (providers[provider2.value].features.includes("abortFiles") ? false : {text: t$4($settings$2.$featureNotSupported, {provider: t$4($settings$2.$provider.$options + "." + provider2.value)}), props: {class: "text-yellow-500"}, value: "preserve"}));
      })(),
      group: "regular",
     },
    ],
    index: 1,
    groups: [{id: "regular", name: t$4($settings$2.$group), index: 1}],
   });
   const providerType = storage$1.get("provider");
   const provider = reactive(new providers[providerType]());
   const {app, root: rootTaskDetail} = createShadowApp(_sfc_main$e, {props: {provider, tasks: [], name: null}, options: {app: {classes: "dark"}}});
   app.provide(rootTaskDetailInjectionKey, rootTaskDetail);
   const {root: root$1} = createShadowApp(_sfc_main$a, {props: {provider}, options: {app: {classes: "dark"}}, provides: {[rootTaskDetailInjectionKey]: rootTaskDetail}});
   _GM_registerMenuCommand(t$4($downloader.$showUi), (_e2) => showUI("ongoing"));
   async function downloadPost(info) {
    const taskId = await Promise.resolve(provider.downloadPost(info));
    const status = provider.tasks.find((t2) => t2.id === taskId).progress.status;
    root$1.tab = status;
    root$1.visible = true;
   }
   async function downloadPosts(name, infos) {
    const taskId = await Promise.resolve(provider.downloadPosts(name, infos));
    const status = provider.tasks.find((t2) => t2.id === taskId).progress.status;
    root$1.tab = status;
    root$1.visible = true;
   }
   function showUI(tab) {
    tab && (root$1.tab = tab);
    root$1.visible = true;
   }
   function featureRelatedDisabled(feature, gui) {
    return computed(() => (providers[currentProvider.value].features.includes(feature) ? false : {text: gui[currentProvider.value]?.text ?? t$4($settings$2.$featureNotSupported, {provider: currentProvider.value}), props: gui[currentProvider.value]?.props ?? {class: "text-yellow-500"}, value: gui[currentProvider.value]?.value}));
   }
   const main$9 = Object.freeze(Object.defineProperty({__proto__: null, default: main$8, downloadPost, downloadPosts, gui: _sfc_main$a, showUI}, Symbol.toStringTag, {value: "Module"}));
   function isPostsApiItem(data17) {
    return Object.hasOwn(data17, "id");
   }
   function isPostApiResponse(data17) {
    return Object.hasOwn(data17, "post");
   }
   function isPostInfo(data17) {
    if (typeof data17 !== "object" || data17 === null) return false;
    return ["service", "creatorId", "postId"].every((key) => Object.hasOwn(data17, key)) && Object.keys(data17).length === 3;
   }
   function extractPostInfo(data17) {
    const obj = isPostsApiItem(data17) ? data17 : data17.post;
    return {service: obj.service, creatorId: obj.user, postId: obj.id};
   }
   function isSamePost(item1, item2) {
    const [info1, info2] = [item1, item2].map((item3) => (isPostInfo(item3) ? item3 : extractPostInfo(item3)));
    return info1.creatorId === info2.creatorId && info1.postId === info2.postId && info1.service === info2.service;
   }
   function getPostTitle(data17) {
    return isPostsApiItem(data17) ? data17.title : data17.post.title;
   }
   function getPostContent(data17) {
    return isPostApiResponse(data17) ? data17.post.content : data17.substring;
   }
   function getPostFilePath(data17) {
    return isPostsApiItem(data17) ? data17.file.path : data17.post.file.path;
   }
   const _hoisted_1$a = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$6(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$a, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M18 20.75H6A2.75 2.75 0 0 1 3.25 18V6A2.75 2.75 0 0 1 6 3.25h6a.75.75 0 0 1 0 1.5H6A1.25 1.25 0 0 0 4.75 6v12A1.25 1.25 0 0 0 6 19.25h12A1.25 1.25 0 0 0 19.25 18v-6a.75.75 0 0 1 1.5 0v6A2.75 2.75 0 0 1 18 20.75m2-12a.76.76 0 0 1-.75-.75V4.75H16a.75.75 0 0 1 0-1.5h4a.76.76 0 0 1 .75.75v4a.76.76 0 0 1-.75.75"}, null, -1), createElementVNode("path", {fill: "currentColor", d: "M13.5 11.25A.74.74 0 0 1 13 11a.75.75 0 0 1 0-1l6.5-6.5a.75.75 0 1 1 1.06 1.06L14 11a.74.74 0 0 1-.5.25"}, null, -1)]))]));
   }
   const ExternalLinkIcon = markRaw({name: "prime-external-link", render: render$6});
   const _sfc_main$6 = defineComponent({
    __name: "Badge",
    setup(__props) {
     const theme = ref({
      root: `inline-flex items-center justify-center rounded-md
        py-0 px-2 text-xs font-bold min-w-6 h-6
        bg-primary text-primary-contrast
        p-empty:min-w-2 p-empty:h-2 p-empty:rounded-full p-empty:p-0
        p-circle:p-0 p-circle:rounded-full
        p-secondary:bg-surface-100 dark:p-secondary:bg-surface-800 p-secondary:text-surface-600 dark:p-secondary:text-surface-300
        p-success:bg-green-500 dark:p-success:bg-green-400 p-success:text-white dark:p-success:text-green-950
        p-info:bg-sky-500 dark:p-info:bg-sky-400 p-info:text-white dark:p-info:text-sky-950
        p-warn:bg-orange-500 dark:p-warn:bg-orange-400 p-warn:text-white dark:p-warn:text-orange-950
        p-danger:bg-red-500 dark:p-danger:bg-red-400 p-danger:text-white dark:p-danger:text-red-950
        p-contrast:bg-surface-950 dark:p-contrast:bg-white p-contrast:text-white dark:p-contrast:text-surface-950
        p-small:text-[0.625rem] p-small:min-w-5 p-small:h-5
        p-large:text-sm p-large:min-w-7 p-large:h-7
        p-xlarge:text-base p-xlarge:min-w-8 p-xlarge:h-8`,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$v),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots({_: 2}, [
         renderList(_ctx.$slots, (_, slotName) => {
          return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
         }),
        ]),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _hoisted_1$9 = {class: "relative inline-flex"};
   const _sfc_main$5 = defineComponent({
    ...{inheritAttrs: false},
    __name: "OverlayBadge",
    setup(__props) {
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "default"), createVNode(_sfc_main$6, mergeProps(_ctx.$attrs, {class: "absolute top-0 end-0 translate-x-[50%] translate-y-[-50%] origin-top-right m-0 outline-2 outline-surface-0 dark:outline-surface-900"}), null, 16)]));
     };
    },
   });
   const _hoisted_1$8 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$5(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$8, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M12 21a9 9 0 1 1 6.18-15.55a.75.75 0 0 1 0 1.06a.74.74 0 0 1-1.06 0A7.51 7.51 0 1 0 19.5 12a.75.75 0 0 1 1.5 0a9 9 0 0 1-9 9"}, null, -1)]))]));
   }
   const SpinnerIcon = markRaw({name: "prime-spinner", render: render$5});
   const _hoisted_1$7 = ["for"];
   const _hoisted_2$2 = {class: "grow-0 shrink-0 flex flex-row items-center px-3 py-2"};
   const _hoisted_3$1 = {class: "grow-0 shrink-0 flex flex-row items-center px-3 py-2"};
   const _hoisted_4$1 = {class: "relative overflow-hidden w-10 h-10"};
   const _hoisted_5$1 = ["src"];
   const _hoisted_6$1 = ["src"];
   const _hoisted_7 = {key: 1, class: "px-3 py-2 flex flex-row items-center gap-3"};
   const _hoisted_8 = {class: "grow shrink flex flex-col justify-center truncate"};
   const _hoisted_9 = ["title"];
   const _hoisted_10 = ["title"];
   const _hoisted_11 = {class: "flex flex-row items-center px-3 py-2"};
   const _hoisted_12 = ["href"];
   const _sfc_main$4 = defineComponent({
    __name: "PostItem",
    props: mergeModels({id: {}, data: {}}, {modelValue: {type: Boolean, ...{default: false}}, modelModifiers: {}}),
    emits: mergeModels(["click"], ["update:modelValue"]),
    setup(__props, {emit: __emit}) {
     const {t: t2} = useI18n();
     const $postsSelector = i18nKeys.$components.$postsSelector;
     const checked3 = useModel(__props, "modelValue");
     const uniqueId = computed(() => __props.id ?? `post-item-${v4()}`);
     const info = computed(() => {
      const obj = isPostsApiItem(__props.data) ? __props.data : __props.data.post;
      return {service: obj.service, creatorId: obj.user, postId: obj.id};
     });
     const coverUrl = computed(() => {
      const path = getPostFilePath(__props.data);
      return path ? `https://img.${location.host}/thumbnail/data${path}` : null;
     });
     const postUrl = computed(() => `https://${location.host}/${info.value.service}/user/${info.value.creatorId}/post/${info.value.postId}`);
     const attachmentsCount = computed(() => (isPostApiResponse(__props.data) ? __props.data.post.attachments.length : __props.data.attachments.length));
     const img = useTemplateRef("img");
     const overlayParent = computed(() => img.value?.closest("[data-v-app]"));
     const postTitle = computed(() => getPostTitle(__props.data));
     const postContent = computed(() => extractText(getPostContent(__props.data) ?? ""));
     const viewport = getViewport();
     const coverSizingClasses = computed(() => {
      if (!img.value) return [];
      const wPercent = img.value.naturalWidth / viewport.value.width;
      const hPercent = img.value.naturalHeight / viewport.value.height;
      return wPercent > hPercent ? ["w-[60vw]"] : ["h-[60vh]"];
     });
     const coverPop = useTemplateRef("cover-pop");
     const hasData = ref(true);
     const popoverHandlers = computed(() =>
      coverPop.value
       ? popoverLogic(coverPop.value, {
          beforeShow(_e2) {
           if (!img.value) return false;
           hasData.value = img.value.naturalWidth > 0 && img.value.naturalHeight > 0;
           return true;
          },
         })
       : Object.create(null),
     );
     return (_ctx, _cache) => {
      const _directive_ripple = resolveDirective("ripple");
      return withDirectives(
       (openBlock(),
       createElementBlock(
        "label",
        {class: "w-full flex flex-row px-3 py-2 hover:bg-emphasis transition-colors duration-200", for: uniqueId.value, onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event))},
        [
         createElementVNode("div", _hoisted_2$2, [createVNode(_sfc_main$i, {modelValue: checked3.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (checked3.value = $event)), inputId: uniqueId.value, binary: ""}, null, 8, ["modelValue", "inputId"])]),
         createElementVNode("div", _hoisted_3$1, [
          createVNode(
           _sfc_main$5,
           {value: attachmentsCount.value, size: "small", severity: attachmentsCount.value ? "primary" : "secondary", "pt:root:class": "z-1"},
           {
            default: withCtx(() => [
             createElementVNode("div", _hoisted_4$1, [
              coverUrl.value
               ? (openBlock(),
                 createElementBlock(
                  "img",
                  {
                   key: 0,
                   ref_key: "img",
                   ref: img,
                   src: coverUrl.value,
                   class: "object-cover object-center w-full h-full relative z-1",
                   onMouseenter: _cache[1] || (_cache[1] = (...args) => popoverHandlers.value.onMouseEnter && popoverHandlers.value.onMouseEnter(...args)),
                   onMouseleave: _cache[2] || (_cache[2] = (...args) => popoverHandlers.value.onMouseLeave && popoverHandlers.value.onMouseLeave(...args)),
                   onTouchstart:
                    _cache[3] ||
                    (_cache[3] = (e) => {
                     e.preventDefault();
                     popoverHandlers.value.onTouchStart?.(e);
                    }),
                   loading: "lazy",
                  },
                  null,
                  40,
                  _hoisted_5$1,
                 ))
               : createCommentVNode("", true),
              createVNode(unref(ImageIcon), {class: "max-h-full max-w-full absolute left-1/2 top-1/2 -translate-1/2 z-0 text-[2rem] flex justify-center items-center"}),
             ]),
            ]),
            _: 1,
           },
           8,
           ["value", "severity"],
          ),
          overlayParent.value && coverUrl.value ? (openBlock(), createBlock(_sfc_main$8, {key: 0, ref: "cover-pop", appendTo: overlayParent.value, class: "pointer-events-none"}, {default: withCtx(() => [hasData.value ? (openBlock(), createElementBlock("img", {key: 0, src: coverUrl.value, class: normalizeClass([...coverSizingClasses.value])}, null, 10, _hoisted_6$1)) : (openBlock(), createElementBlock("div", _hoisted_7, [createVNode(unref(SpinnerIcon), {class: "animate-spin"}), createTextVNode(" " + toDisplayString$1(unref(t2)(unref($postsSelector).$imageLoading)), 1)]))]), _: 1}, 8, ["appendTo"])) : createCommentVNode("", true),
         ]),
         createElementVNode("div", _hoisted_8, [createElementVNode("div", {class: "text-base w-full", title: postTitle.value}, toDisplayString$1(postTitle.value), 9, _hoisted_9), createElementVNode("div", {class: "text-sm text-surface-500 dark:text-surface-400 flex flex-row items-center w-full truncate", title: postContent.value}, toDisplayString$1(postContent.value), 9, _hoisted_10)]),
         createElementVNode("div", _hoisted_11, [createElementVNode("a", {href: postUrl.value, target: "_blank"}, [createVNode(_sfc_main$z, {variant: "text", "pt:root:title": unref(t2)(unref($postsSelector).$buttons.$openPost)}, {icon: withCtx(() => [createVNode(unref(ExternalLinkIcon))]), _: 1}, 8, ["pt:root:title"])], 8, _hoisted_12)]),
        ],
        8,
        _hoisted_1$7,
       )),
       [[_directive_ripple]],
      );
     };
    },
   });
   const _hoisted_1$6 = {class: "flex flex-wrap gap-2 items-center justify-center"};
   const _hoisted_2$1 = {class: "items-center justify-center gap-2 hidden sm:flex"};
   const _sfc_main$3 = defineComponent({
    __name: "Paginator",
    setup(__props) {
     const theme = ref({
      root: `flex items-center justify-center flex-wrap py-2 px-4 rounded-md gap-1
        bg-surface-0 dark:bg-surface-900 text-surface-700 dark:text-surface-0`,
     });
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        unref(script$b),
        {unstyled: "", pt: theme.value, ptOptions: {mergeProps: unref(ptViewMerge)}},
        createSlots(
         {
          container: withCtx(({page: page4, pageCount: pageCount2, pageLinks: pageLinks2, changePageCallback, firstPageCallback, lastPageCallback, prevPageCallback, nextPageCallback}) => [
           createElementVNode("div", _hoisted_1$6, [
            createVNode(_sfc_main$O, {text: "", rounded: "", onClick: firstPageCallback, disabled: page4 === 0}, {icon: withCtx(() => [createVNode(unref(script$m))]), _: 1}, 8, ["onClick", "disabled"]),
            createVNode(_sfc_main$O, {text: "", rounded: "", onClick: prevPageCallback, disabled: page4 === 0}, {icon: withCtx(() => [createVNode(unref(script$c))]), _: 1}, 8, ["onClick", "disabled"]),
            createElementVNode("div", _hoisted_2$1, [
             (openBlock(true),
             createElementBlock(
              Fragment,
              null,
              renderList(pageLinks2, (pageLink) => {
               return (openBlock(), createBlock(_sfc_main$O, {key: pageLink, text: page4 + 1 !== pageLink, rounded: "", onClick: () => changePageCallback(pageLink - 1), class: normalizeClass(["shrink-0 min-w-10 h-10", {"bg-highlight!": page4 + 1 === pageLink}])}, {default: withCtx(() => [createTextVNode(toDisplayString$1(pageLink), 1)]), _: 2}, 1032, ["text", "onClick", "class"]));
              }),
              128,
             )),
            ]),
            createVNode(_sfc_main$O, {text: "", rounded: "", onClick: nextPageCallback, disabled: page4 === pageCount2 - 1}, {icon: withCtx(() => [createVNode(unref(script$t))]), _: 1}, 8, ["onClick", "disabled"]),
            createVNode(_sfc_main$O, {text: "", rounded: "", onClick: lastPageCallback, disabled: page4 === pageCount2 - 1}, {icon: withCtx(() => [createVNode(unref(script$d))]), _: 1}, 8, ["onClick", "disabled"]),
           ]),
          ]),
          _: 2,
         },
         [
          renderList(_ctx.$slots, (_, slotName) => {
           return {name: slotName, fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps ?? {})))])};
          }),
         ],
        ),
        1032,
        ["pt", "ptOptions"],
       )
      );
     };
    },
   });
   const _hoisted_1$5 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$4(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$5, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M3.288 4.713Q3 4.425 3 4t.288-.712T4 3t.713.288T5 4t-.288.713T4 5t-.712-.288m4 0Q7 4.426 7 4t.288-.712T8 3t.713.288T9 4t-.288.713T8 5t-.712-.288m4 0Q11 4.426 11 4t.288-.712T12 3t.713.288T13 4t-.288.713T12 5t-.712-.288m4 0Q15 4.426 15 4t.288-.712T16 3t.713.288T17 4t-.288.713T16 5t-.712-.288m4 0Q19 4.426 19 4t.288-.712T20 3t.713.288T21 4t-.288.713T20 5t-.712-.288m-16 4Q3 8.426 3 8t.288-.712T4 7t.713.288T5 8t-.288.713T4 9t-.712-.288m16 0Q19 8.426 19 8t.288-.712T20 7t.713.288T21 8t-.288.713T20 9t-.712-.288m-16 4Q3 12.426 3 12t.288-.712T4 11t.713.288T5 12t-.288.713T4 13t-.712-.288m16 0Q19 12.426 19 12t.288-.712T20 11t.713.288T21 12t-.288.713T20 13t-.712-.288m-16 4Q3 16.426 3 16t.288-.712T4 15t.713.288T5 16t-.288.713T4 17t-.712-.288m16 0Q19 16.426 19 16t.288-.712T20 15t.713.288T21 16t-.288.713T20 17t-.712-.288m-16 4Q3 20.426 3 20t.288-.712T4 19t.713.288T5 20t-.288.713T4 21t-.712-.288m4 0Q7 20.426 7 20t.288-.712T8 19t.713.288T9 20t-.288.713T8 21t-.712-.288m4 0Q11 20.426 11 20t.288-.712T12 19t.713.288T13 20t-.288.713T12 21t-.712-.288m4 0Q15 20.426 15 20t.288-.712T16 19t.713.288T17 20t-.288.713T16 21t-.712-.288m4 0Q19 20.426 19 20t.288-.712T20 19t.713.288T21 20t-.288.713T20 21t-.712-.288M9 17q-.825 0-1.412-.587T7 15V9q0-.825.588-1.412T9 7h6q.825 0 1.413.588T17 9v6q0 .825-.587 1.413T15 17zm0-2h6V9H9z"}, null, -1)]))]));
   }
   const MaterialSymbolsSelectAllRounded = markRaw({name: "material-symbols-select-all-rounded", render: render$4});
   const _hoisted_1$4 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$3(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$4, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "m19.075 21.9l-4.9-4.9H9q-.825 0-1.412-.587T7 15V9.825l-4.9-4.9q-.275-.275-.275-.687t.275-.713q.3-.3.713-.3t.712.3L20.5 20.5q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288m-6.9-6.9L9 11.825V15zM17 14.175l-2-2V9h-3.175l-2-2H15q.825 0 1.413.588T17 9zM7.288 4.713Q7 4.425 7 4t.288-.712T8 3t.713.288T9 4t-.288.713T8 5t-.712-.288m4 0Q11 4.426 11 4t.288-.712T12 3t.713.288T13 4t-.288.713T12 5t-.712-.288m4 0Q15 4.426 15 4t.288-.712T16 3t.713.288T17 4t-.288.713T16 5t-.712-.288m4 0Q19 4.426 19 4t.288-.712T20 3t.713.288T21 4t-.288.713T20 5t-.712-.288m-16 4Q3 8.426 3 8t.288-.712T4 7t.713.288T5 8t-.288.713T4 9t-.712-.288m16 0Q19 8.426 19 8t.288-.712T20 7t.713.288T21 8t-.288.713T20 9t-.712-.288m-16 4Q3 12.426 3 12t.288-.712T4 11t.713.288T5 12t-.288.713T4 13t-.712-.288m16 0Q19 12.426 19 12t.288-.712T20 11t.713.288T21 12t-.288.713T20 13t-.712-.288m-16 4Q3 16.426 3 16t.288-.712T4 15t.713.288T5 16t-.288.713T4 17t-.712-.288m16 0Q19 16.426 19 16t.288-.712T20 15t.713.288T21 16t-.288.713T20 17t-.712-.288m-16 4Q3 20.426 3 20t.288-.712T4 19t.713.288T5 20t-.288.713T4 21t-.712-.288m4 0Q7 20.426 7 20t.288-.712T8 19t.713.288T9 20t-.288.713T8 21t-.712-.288m4 0Q11 20.426 11 20t.288-.712T12 19t.713.288T13 20t-.288.713T12 21t-.712-.288m4 0Q15 20.426 15 20t.288-.712T16 19t.713.288T17 20t-.288.713T16 21t-.712-.288"}, null, -1)]))]));
   }
   const MaterialSymbolsDeselectRounded = markRaw({name: "material-symbols-deselect-rounded", render: render$3});
   const _hoisted_1$3 = {ref: "div", class: "flex flex-col"};
   const _hoisted_2 = {class: "flex flex-row gap-3 px-3 py-2 items-center justify-between"};
   const _hoisted_3 = {class: "flex flex-row gap-3"};
   const _hoisted_4 = {class: "px-3 py-2 flex flex-row items-center"};
   const _hoisted_5 = {class: "w-fit px-3 py-2"};
   const _hoisted_6 = {class: "grow shrink overflow-auto"};
   const _sfc_main$2 = defineComponent({
    __name: "PostsList",
    props: mergeModels({posts: {}, rows: {}, total: {}, mode: {}}, {modelValue: {default: () => []}, modelModifiers: {}}),
    emits: mergeModels(["page", "filter", "select-all"], ["update:modelValue"]),
    setup(__props, {emit: __emit}) {
     const {t: t2} = useI18n();
     const $postsSelector = i18nKeys.$components.$postsSelector;
     const props2 = __props;
     const posts2 = computed(() => props2.posts);
     const rows2 = computed(() => props2.rows ?? 50);
     const total = computed(() => props2.total ?? posts2.value.length);
     const mode2 = computed(() => props2.mode ?? "local");
     const emit = __emit;
     const selectedPosts = useModel(__props, "modelValue");
     function findSelectedIndex(post2) {
      return selectedPosts.value.findIndex((info) => isSamePost(info, post2));
     }
     function isPostSelected(post2) {
      return findSelectedIndex(post2) > -1;
     }
     function handlePostSelectionChange(post2, checked3) {
      const index = findSelectedIndex(post2);
      checked3 ? index === -1 && selectedPosts.value.push(extractPostInfo(post2)) : index !== -1 && selectedPosts.value.splice(index, 1);
     }
     const search2 = ref("");
     watch(
      search2,
      debounce((newVal) => {
       if (mode2.value === "local") return;
       emit("filter", newVal);
      }, 500),
     );
     const filteredPosts = computed(() => {
      if (mode2.value === "remote") return posts2.value;
      if (!search2.value.trim()) return posts2.value;
      const keywords = search2.value.split(/\s/g);
      const map = new Map();
      const filteredPosts2 = posts2.value.filter((post2) => {
       const title = isPostsApiItem(post2) ? post2.title : post2.post.title;
       let count = 0;
       keywords.forEach((k2) => title.includes(k2) && count++);
       map.set(post2, count);
       return count > 0;
      });
      filteredPosts2.sort((p1, p2) => map.get(p2) - map.get(p1) || posts2.value.indexOf(p1) - posts2.value.indexOf(p2));
      return filteredPosts2;
     });
     const page4 = ref({first: 0, page: 0, rows: Math.min(rows2.value, total.value), pageCount: total.value});
     watch(posts2, () => (page4.value.first = 0));
     const pagePosts = computed(() =>
      posts2.value.filter((_post, i2) => {
       if (mode2.value === "remote") return true;
       const start = page4.value.first;
       const end = start + page4.value.rows;
       return start <= i2 && i2 <= end;
      }),
     );
     function onPageChange(p2) {
      if (mode2.value === "local") return;
      emit("page", p2);
      page4.value = p2;
     }
     const displayPosts = computed(() => {
      const filteredSet = new Set(filteredPosts.value);
      const pageSet = new Set(pagePosts.value);
      return posts2.value.filter((post2) => filteredSet.has(post2) && pageSet.has(post2));
     });
     const displayPostItems = computed(() => displayPosts.value.map((post2) => ({post: post2, key: isPostsApiItem(post2) ? post2.id : post2.post.id, isSelected: isPostSelected(post2)})));
     const isMobileLayout = getIsMobileLayout();
     const instance = getCurrentInstance$1();
     const overlayParent = computed(() => instance?.root.vnode.el?.parentElement);
     const popover = useTemplateRef("popover");
     const popoverText = ref("");
     const logic = computed(() =>
      popover.value
       ? popoverLogic(popover.value, {
          longpress: 250,
          beforeShow(_e2, button) {
           popoverText.value = button.label;
          },
         })
       : {},
     );
     const leftButtons = [
      {
       label: t2($postsSelector.$selectionButtons.$selectAllPages),
       icon: MaterialSymbolsSelectAllRounded,
       onClick(e) {
        emit("select-all", e);
       },
      },
      {
       label: t2($postsSelector.$selectionButtons.$clearAllPages),
       icon: MaterialSymbolsDeselectRounded,
       onClick(_e2) {
        selectedPosts.value.splice(0, selectedPosts.value.length);
       },
      },
     ];
     const rightButtions = [
      {
       label: t2($postsSelector.$selectionButtons.$selectAll),
       icon: MaterialSymbolsSelectAllRounded,
       onClick(_e2) {
        const newSelectedPosts = displayPosts.value.map((post2) => {
         const data17 = isPostsApiItem(post2) ? post2 : post2.post;
         return {service: data17.service, creatorId: data17.user, postId: data17.id};
        });
        selectedPosts.value.splice(0, selectedPosts.value.length, ...newSelectedPosts);
       },
      },
      {
       label: t2($postsSelector.$selectionButtons.$clear),
       icon: MaterialSymbolsDeselectRounded,
       onClick(_e2) {
        const posts22 = selectedPosts.value.filter((post2) => props2.posts.every((p2) => !isSamePost(p2, post2)));
        selectedPosts.value.splice(0, selectedPosts.value.length, ...posts22);
       },
      },
     ];
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createElementBlock(
        "div",
        _hoisted_1$3,
        [
         createElementVNode("div", _hoisted_2, [
          overlayParent.value ? (openBlock(), createBlock(_sfc_main$8, {key: 0, ref_key: "popover", ref: popover, "append-to": overlayParent.value}, {default: withCtx(() => [createTextVNode(toDisplayString$1(popoverText.value), 1)]), _: 1}, 8, ["append-to"])) : createCommentVNode("", true),
          (openBlock(true),
          createElementBlock(
           Fragment,
           null,
           renderList([leftButtons, rightButtions], (buttons) => {
            return (
             openBlock(),
             createElementBlock("div", _hoisted_3, [
              (openBlock(true),
              createElementBlock(
               Fragment,
               null,
               renderList(buttons, (button) => {
                return (openBlock(), createBlock(_sfc_main$z, {label: unref(isMobileLayout) ? "" : button.label, title: button.label, variant: "text", onClick: button.onClick, onTouchstart: (e) => logic.value.onTouchStart?.(e, button), onTouchend: logic.value.onTouchEnd}, {icon: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(button.icon), {class: "text-xl"}))]), _: 2}, 1032, ["label", "title", "onClick", "onTouchstart", "onTouchend"]));
               }),
               256,
              )),
             ])
            );
           }),
           256,
          )),
         ]),
         createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString$1(unref(t2)(unref($postsSelector).$list.$search)), 1), createVNode(_sfc_main$H, {modelValue: search2.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (search2.value = $event)), class: "grow shrink"}, null, 8, ["modelValue"])]),
         createElementVNode("div", _hoisted_6, [
          (openBlock(true),
          createElementBlock(
           Fragment,
           null,
           renderList(displayPostItems.value, (item2) => {
            return (openBlock(), createBlock(_sfc_main$4, {key: item2.key, data: item2.post, "model-value": item2.isSelected, "onUpdate:modelValue": (checked3) => handlePostSelectionChange(item2.post, checked3)}, null, 8, ["data", "model-value", "onUpdate:modelValue"]));
           }),
           128,
          )),
         ]),
         createElementVNode("div", null, [createVNode(_sfc_main$3, {first: page4.value.first, rows: rows2.value, "total-records": total.value, onPage: onPageChange}, null, 8, ["first", "rows", "total-records"])]),
        ],
        512,
       )
      );
     };
    },
   });
   const _sfc_main$1 = defineComponent({
    __name: "PostsDialog",
    props: mergeModels({header: {}, posts: {}, rows: {}, total: {}, mode: {}, buttons: {}, onPageUpdate: {type: Function}, onFilter: {type: Function}, onSelectAll: {type: Function}}, {selectedPosts: {default: () => []}, selectedPostsModifiers: {}}),
    emits: mergeModels(["submit"], ["update:selectedPosts"]),
    setup(__props, {expose: __expose, emit: __emit}) {
     const {t: t2} = useI18n();
     let {promise, reject: reject2, resolve} = Promise.withResolvers();
     const selectedPosts = useModel(__props, "selectedPosts");
     const visible3 = ref(false);
     const emit = __emit;
     __expose({show: show4, hide: hide4, selectedPosts});
     const mobile = getIsMobileLayout();
     function show4() {
      ({promise, reject: reject2, resolve} = Promise.withResolvers());
      visible3.value = true;
      return promise;
     }
     function hide4() {
      visible3.value = false;
      reject2();
     }
     function submit() {
      emit("submit", selectedPosts.value);
      resolve(selectedPosts.value);
      visible3.value = false;
     }
     watch(visible3, (val, oldVal) => oldVal && !val && reject2());
     return (_ctx, _cache) => {
      return (
       openBlock(),
       createBlock(
        _sfc_main$N,
        {visible: visible3.value, "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => (visible3.value = $event)), "append-to": "self", header: __props.header, modal: "", "pt:root:class": "h-[80vh] min-w-[50vw]", "pt:content:class": "h-full"},
        {
         footer: withCtx(() => [
          renderSlot(_ctx.$slots, "buttons", {}, () => [
           Array.isArray(__props.buttons)
            ? (openBlock(true),
              createElementBlock(
               Fragment,
               {key: 0},
               renderList(__props.buttons, (button) => {
                return (openBlock(), createBlock(resolveDynamicComponent({primary: _sfc_main$z, secondary: _sfc_main$O}[button.type]), {disabled: button.disabled, label: button.label, variant: unref(mobile) ? void 0 : "text", "pt:root:class": {grow: unref(mobile)}, onClick: () => button.onclick(submit, hide4)}, {icon: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(button.icon)))]), _: 2}, 1032, ["disabled", "label", "variant", "pt:root:class", "onClick"]));
               }),
               256,
              ))
            : (openBlock(), createElementBlock(Fragment, {key: 1}, [createVNode(_sfc_main$O, {label: unref(t2)(unref(i18nKeys).$components.$postsSelector.$buttons.$cancel), variant: unref(mobile) ? void 0 : "text", "pt:root:class": {grow: unref(mobile)}, onClick: hide4}, {icon: withCtx(() => [createVNode(unref(PrimeTimes))]), _: 1}, 8, ["label", "variant", "pt:root:class"]), createVNode(_sfc_main$z, {disabled: !selectedPosts.value.length, label: unref(t2)(unref(i18nKeys).$components.$postsSelector.$buttons.$ok), variant: unref(mobile) ? void 0 : "text", "pt:root:class": {grow: unref(mobile)}, onClick: submit}, {icon: withCtx(() => [createVNode(unref(PrimeCheck))]), _: 1}, 8, ["disabled", "label", "variant", "pt:root:class"])], 64)),
          ]),
         ]),
         default: withCtx(() => [createVNode(_sfc_main$2, {posts: __props.posts, rows: __props.rows, total: __props.total, modelValue: selectedPosts.value, "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => (selectedPosts.value = $event)), class: "h-full", mode: __props.mode, onPage: _cache[1] || (_cache[1] = (p2) => __props.onPageUpdate?.(p2)), onFilter: _cache[2] || (_cache[2] = (keyword) => __props.onFilter?.(keyword)), onSelectAll: _cache[3] || (_cache[3] = (e) => __props.onSelectAll?.(e))}, null, 8, ["posts", "rows", "total", "modelValue", "mode"])]),
         _: 3,
        },
        8,
        ["visible", "header"],
       )
      );
     };
    },
   });
   const _sfc_main = defineComponent({
    __name: "DownloadButton",
    props: {loading: {type: Boolean}, onClick: {type: Function}, label: {}},
    setup(__props, {expose: __expose}) {
     const props2 = __props;
     const loading2 = ref(props2.loading ?? false);
     watch(
      () => props2.loading,
      (val) => (loading2.value = val),
     );
     const label6 = ref(props2.label ?? "");
     watch(
      () => props2.label,
      (val) => (label6.value = val ?? ""),
     );
     const onClick2 = ref(props2.onClick);
     watch(
      () => props2.onClick,
      (val) => (onClick2.value = val),
     );
     async function buttonClick(e) {
      loading2.value = true;
      await Promise.resolve(onClick2.value?.(e));
      loading2.value = false;
     }
     const instance = getCurrentInstance$1();
     onMounted(() => {
      const span = instance?.root.vnode.el?.parentElement;
      span?.classList.remove("text-base");
     });
     __expose({loading: loading2, label: label6, onClick: onClick2});
     return (_ctx, _cache) => {
      return (openBlock(), createElementBlock(Fragment, null, [withDirectives(createVNode(unref(SpinnerIcon), {class: "animate-spin brightness-75 cursor-not-allowed"}, null, 512), [[vShow, loading2.value]]), withDirectives(createElementVNode("span", {class: "cursor-pointer", onClick: buttonClick}, toDisplayString$1(label6.value), 513), [[vShow, !loading2.value]])], 64));
     };
    },
   });
   const t$3 = i18n.global.t;
   const $creator = i18nKeys.$creator;
   const logger$3 = logger$9.withPath("creator");
   const regPath$1 = /^\/(boosty|dlsite|fanbox|fantia|gumroad|patreon|subscribestar)\/user\/([^\/]+)$/;
   const main$6 = defineModule({
    id: "creator",
    name: t$3($creator.$name),
    checkers: [{type: "regpath", value: regPath$1}],
    readyState: "interactive",
    async enter() {
     const divActions = await detectDom(".user-header__actions");
     const container = (this.context.container = divActions.appendChild($CrE("span", {styles: {background: "transparent", border: "none", color: "white", width: "fit-content", height: "fit-content", display: "block", padding: "0"}, classes: "button"})));
     const {app: app2} = createShadowApp(_sfc_main, {
      host: container,
      options: {app: {classes: ["w-fit"]}},
      props: {
       loading: false,
       label: t$3($creator.$gui.$download),
       async onClick(_e2) {
        try {
         const match = location.pathname.match(regPath$1);
         const [creator, allPosts] = await Promise.all([await profile({service: match[1], creatorId: match[2]}), await posts({service: match[1], creatorId: match[2]})]);
         if (isErrorResponse(creator)) throw new Error(creator.error);
         if (isErrorResponse(allPosts)) throw new Error(allPosts.error);
         props.header = t$3($creator.$gui.$postsSelector.$header);
         props.posts = allPosts;
         props.total = creator.post_count;
         props.selectedPosts = [];
         const infos = await root19.show().catch(() => null);
         if (infos) {
          downloadPosts(creator.name, infos);
         } else {
         }
        } catch (err) {
         logger$3.simple("Error", "Error in downloadButton.onclick");
         logger$3.asLevel("Error", err);
        }
       },
      },
     });
     this.context.app = app2;
    },
    leave() {
     this.context.app?.unmount();
     this.context.container?.remove();
    },
    context: {container: void 0, app: void 0},
   });
   let search = void 0;
   const props = reactive({
    header: "",
    posts: [],
    rows: 50,
    total: 0,
    mode: "remote",
    buttons: [
     {
      type: "secondary",
      label: t$3($creator.$gui.$postsSelector.$buttons.$cancel),
      disabled: false,
      icon: PrimeTimes,
      onclick(_submit, cancel) {
       cancel();
      },
     },
     {
      type: "primary",
      label: t$3($creator.$gui.$postsSelector.$buttons.$download),
      disabled: true,
      icon: PrimeDownload,
      onclick(submit, _cancel) {
       submit();
      },
     },
    ],
    async onPageUpdate(page4) {
     const match = location.pathname.match(regPath$1);
     const allPosts = await posts({service: match[1], creatorId: match[2], index: page4.first, query: search});
     if (isErrorResponse(allPosts)) throw new Error(allPosts.error);
     props.posts.splice(0, props.posts.length, ...allPosts);
    },
    async onFilter(keyword) {
     search = keyword;
     const match = location.pathname.match(regPath$1);
     const allPosts = await posts({service: match[1], creatorId: match[2], query: keyword});
     if (isErrorResponse(allPosts)) throw new Error(allPosts.error);
     props.posts.splice(0, props.posts.length, ...allPosts);
    },
    async onSelectAll(_e2) {
     const message3 = {closable: false, summary: t$3($creator.$gui.$selectAllPages.$summary), detail: t$3($creator.$gui.$selectAllPages.$detail), severity: "info"};
     toast.add(message3);
     const match = location.pathname.match(regPath$1);
     const allPosts = [];
     for (let i2 = 0; ; i2 += 50) {
      const page4 = await posts({service: match[1], creatorId: match[2], index: i2, query: search});
      if (isErrorResponse(page4) || page4.length === 0) break;
      allPosts.push(...page4);
     }
     const infos = allPosts.map((post2) => ({service: post2.service, creatorId: post2.user, postId: post2.id}));
     root19.selectedPosts.splice(0, root19.selectedPosts.length, ...infos);
     toast.remove(message3);
    },
   });
   const {root: root19} = createShadowApp(_sfc_main$1, {options: {app: {classes: "dark"}}, props});
   watch(
    () => root19.selectedPosts.length,
    (length) => (props.buttons[1].disabled = length === 0),
   );
   const main$7 = Object.freeze(Object.defineProperty({__proto__: null, default: main$6}, Symbol.toStringTag, {value: "Module"}));
   const t$2 = i18n.global.t;
   const logger$2 = logger$9.withPath("post");
   const regPath = /^\/(boosty|dlsite|fanbox|fantia|gumroad|patreon|subscribestar)\/user\/([^\/]+)\/post\/([^\/]+)$/;
   const main$4 = defineModule({
    id: "post",
    name: t$2(i18nKeys.$post.$name),
    checkers: [{type: "regpath", value: regPath}],
    readyState: "interactive",
    async enter() {
     const divActions = await detectDom(".post__actions");
     const container = (this.context.container = divActions.appendChild($CrE("span", {styles: {background: "transparent", border: "none", color: "white", width: "fit-content", height: "fit-content", display: "block"}, classes: "button"})));
     const {app: app2} = createShadowApp(_sfc_main, {
      host: container,
      options: {app: {classes: ["w-fit"]}},
      props: {
       loading: false,
       label: t$2(i18nKeys.$post.$gui.$download),
       onClick(_e2) {
        try {
         const match = location.pathname.match(regPath);
         downloadPost({service: match[1], creatorId: match[2], postId: match[3]});
        } catch (err) {
         logger$2.simple("Error", "Error in downloadButton.onclick");
         logger$2.asLevel("Error", err);
        }
       },
      },
     });
     this.context.app = app2;
    },
    leave() {
     this.context.app?.unmount();
     this.context.container?.remove();
    },
    context: {container: void 0, app: void 0},
   });
   const main$5 = Object.freeze(Object.defineProperty({__proto__: null, default: main$4}, Symbol.toStringTag, {value: "Module"}));
   const _hoisted_1$2 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$2(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$2, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M15.25 15.75c-.41 0-.75.34-.75.75V18c0 .69-.56 1.25-1.25 1.25h-7.5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25H9V9.5c0 .41.34.75.75.75h4.75v1.25c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-.2-.08-.39-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22h-4C4.23 3.25 3 4.48 3 6v12c0 1.52 1.23 2.75 2.75 2.75h7.5c1.52 0 2.75-1.23 2.75-2.75v-1.5c0-.41-.34-.75-.75-.75M10.5 5.81l2.94 2.94H10.5zm10.44 8.48c-.04.09-.09.17-.16.24l-3 3c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l1.72-1.72H9.75c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h8.69l-1.72-1.72c-.29-.29-.29-.77 0-1.06s.77-.29 1.06 0l3 3c.07.07.12.15.16.24c.08.18.08.39 0 .57Z"}, null, -1)]))]));
   }
   const FileExportIcon = markRaw({name: "prime-file-export", render: render$2});
   const t$1 = i18n.global.t;
   const $debugging = i18nKeys.$debugging;
   const $settings$1 = $debugging.$settings;
   const storage = globalStorage.withKeys("debugging");
   const logger$1 = logger$9.withPath("debugging");
   const main$2 = defineModule({id: "debugger", name: t$1($debugging.$name)});
   const MAX_LOG_PAGES = 3;
   const MAX_LOG_ITEMS = 20;
   const saveLogs = makeStorageRef("saveLogs", storage);
   onModuleRegistered("self", () => {
    registerGroup("self", {id: "log", name: t$1($settings$1.$groupLog), index: 1});
    registerItem("self", [
     {id: "saveLogs", type: "switch", label: t$1($settings$1.$saveLogs.$label), caption: t$1($settings$1.$saveLogs.$caption), icon: FileEditIcon, value: saveLogs, reload: true, group: "log"},
     {
      id: "exportLogs",
      type: "button",
      label: t$1($settings$1.$exportLogs.$label),
      caption: t$1($settings$1.$exportLogs.$caption),
      icon: FileExportIcon,

      props: {
       async onClick(_e2) {
        const logList = storage.get("logs");
        const data17 = {env: {userAgent: navigator.userAgent, GM_info: safeSerialize(_GM_info, 10), i18n: navigator.language}, timeExported: Date.now(), exportUrl: location.href, logs: logList};
        const logText = JSON.stringify(data17);
        await saveAs(logText, `${_GM_info.script.name} - ${new Date().toLocaleString()}.json`);
       },
      },
      value: ref(t$1($settings$1.$exportLogs.$button)),
      group: "log",
     },
     {
      id: "clearLogs",
      type: "button",
      label: t$1($settings$1.$clearLogs.$label),
      caption: t$1($settings$1.$clearLogs.$caption),
      icon: TrashIcon,

      props: {
       async onClick(_e2) {
        const logText = JSON.stringify(storage.get("logs"));
        const size = new Blob([logText], {type: "text:plain"}).size;
        const strSize = storage.has("logs") ? stringifyBytes(size) : "0B";
        storage.delete("logs");
        const $cleared = $settings$1.$clearLogs.$cleared;
        toast({summary: t$1($cleared.$summary), detail: t$1($cleared.$detail, {size: strSize}), severity: "success", life: 3e3});
       },
      },
      value: ref(t$1($settings$1.$clearLogs.$button)),
      group: "log",
     },
    ]);
   });
   const saveLog = (log) => {
    if (!saveLogs.value) return;
    const logs = storage.get("logs");
    const logPage = logs.find((page4) => page4.timeOrigin === performance.timeOrigin) ?? {timeOrigin: performance.timeOrigin, items: [], url: location.href};
    if (!logs.includes(logPage)) {
     logs.push(logPage);
     logs.splice(0, logs.length - MAX_LOG_PAGES);
    }
    const data17 = Object.assign({}, log);
    data17.content = safeSerialize(data17.content);
    logPage.items.push(data17);
    logPage.items.splice(0, logPage.items.length - MAX_LOG_ITEMS);
    storage.set("logs", logs);
   };
   logger$9.readCache().forEach((log) => saveLog(log));
   logger$9.cacheLogs = false;
   logger$9.events.on("log", saveLog);
   window.addEventListener("error", (e) => {
    logger$1.log("Error", "raw", null, {type: "global error", error: e.error, message: e.message, filename: e.filename});
   });
   window.addEventListener("unhandledrejection", (e) => {
    logger$1.log("Error", "raw", null, {type: "global unhandled rejection", reason: e.reason});
   });
   const main$3 = Object.freeze(Object.defineProperty({__proto__: null, default: main$2}, Symbol.toStringTag, {value: "Module"}));
   const _hoisted_1$1 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render$1(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1$1, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M9.35 16.88c0 .07-.07.12-.17.12S9 17 9 16.88s.08-.12.17-.12s.18.05.18.12m-1-.15c0 .07 0 .15.14.17a.15.15 0 0 0 .2-.07c0-.07 0-.14-.14-.17s-.18 0-.2.07m1.42-.05c-.09 0-.15.08-.14.16s.09.11.19.09s.15-.09.14-.16s-.09-.1-.19-.09M11.9 4A7.83 7.83 0 0 0 4 12.07A8.29 8.29 0 0 0 9.47 20c.41.07.56-.19.56-.4v-2s-2.26.5-2.74-1c0 0-.36-1-.89-1.21c0 0-.74-.52.05-.51a1.67 1.67 0 0 1 1.24.85a1.69 1.69 0 0 0 2.36.69a1.83 1.83 0 0 1 .51-1.11c-1.8-.21-3.62-.47-3.62-3.66A2.54 2.54 0 0 1 7.7 9.7a3.2 3.2 0 0 1 .08-2.24c.68-.22 2.23.89 2.23.89a7.46 7.46 0 0 1 4.05 0s1.55-1.11 2.23-.89a3.14 3.14 0 0 1 .08 2.24a2.6 2.6 0 0 1 .83 1.95c0 3.2-1.9 3.45-3.7 3.66a2 2 0 0 1 .5 1.5v2.77a.42.42 0 0 0 .56.4A8.22 8.22 0 0 0 20 12.07A8 8 0 0 0 11.9 4M7.14 15.41v.17a.12.12 0 0 0 .17 0s0-.11 0-.18s-.13-.03-.17.01m-.35-.27s0 .1.07.13a.09.09 0 0 0 .14 0s0-.1-.07-.13s-.12-.03-.14 0m1 1.18v.21c0 .07.17.08.21 0s0-.14 0-.21s-.13-.05-.17 0Zm-.37-.49v.2c0 .08.14.11.19.08a.16.16 0 0 0 0-.21c-.05-.08-.13-.11-.19-.07"}, null, -1)]))]));
   }
   const GithubIcon = markRaw({name: "prime-github", render: render$1});
   const _hoisted_1 = {viewBox: "0 0 24 24", width: "1.2em", height: "1.2em"};
   function render(_ctx, _cache) {
    return (openBlock(), createElementBlock("svg", _hoisted_1, [...(_cache[0] || (_cache[0] = [createElementVNode("path", {fill: "currentColor", d: "M5.89 2.227a.28.28 0 0 1 .266.076l5.063 5.062c.54.54.509 1.652-.031 2.192l8.771 8.77c1.356 1.355-.36 3.097-1.73 1.728l-8.772-8.77c-.54.54-1.651.571-2.191.031l-5.063-5.06c-.304-.304.304-.911.608-.608l3.714 3.713L7.59 8.297L3.875 4.582c-.304-.304.304-.911.607-.607l3.715 3.714l1.067-1.066L5.549 2.91c-.228-.228.057-.626.342-.683ZM12 0C5.374 0 0 5.375 0 12s5.374 12 12 12c6.625 0 12-5.375 12-12S18.625 0 12 0"}, null, -1)]))]));
   }
   const GreasyforkIcon = markRaw({name: "simple-icons-greasyfork", render});
   const t = i18n.global.t;
   const $self = i18nKeys.$self;
   const $settings = i18nKeys.$self.$settings;
   const main = defineModule({id: "self", name: t($self.$name)});
   registerModule({
    id: "self",
    name: t($settings.$label),
    index: Infinity,
    items: [
     {id: "version", type: "display", label: t($settings.$version.$label), icon: HistoryIcon, value: ref(_GM_info.script.version)},
     {
      id: "github",
      type: "display",
      label: t($settings.$github.$label),
      icon: GithubIcon,
      props: {
       onClick() {
        _GM_openInTab("https://github.com/PYUDNG/Kemono-Downloader", {active: true, setParent: true, insert: true});
       },
      },
      value: ref("https://github.com/PYUDNG/Kemono-Downloader"),
     },
     {
      id: "greasyfork",
      type: "display",
      label: t($settings.$greasyfork.$label),
      icon: GreasyforkIcon,
      props: {
       onClick() {
        _GM_openInTab("https://greasyfork.org/scripts/570258", {active: true, setParent: true, insert: true});
       },
      },
      value: ref("https://greasyfork.org/scripts/570258"),
     },
    ],
   });
   const main$1 = Object.freeze(Object.defineProperty({__proto__: null, default: main}, Symbol.toStringTag, {value: "Module"}));
   const modules = Object.freeze(Object.defineProperty({__proto__: null, api: main$b, creator: main$7, debugging: main$3, downloader: main$9, post: main$5, self: main$1, settings: main$d}, Symbol.toStringTag, {value: "Module"}));
   const logger = logger$9.withPath("loader");
   const activeState = Object.values(modules).reduce((state, module) => {
    state[module.default.id] = false;
    return state;
   }, {});
   const monitor = new URLChangeMonitor();
   monitor.init();
   monitor.onUrlChange(onUrlChange, true);
   async function onUrlChange() {
    for (const module of Object.values(modules)) {
     const moduleActive = !Object.hasOwn(module.default, "checkers") || testChecker(module.default.checkers, module.default.mode ?? "and");
     if (!activeState[module.default.id] && moduleActive) {
      logger.simple("Detail", `loader: enter ${module.default.id}`);
      module.default.enter?.();
      module.default.toggle?.();
     }
     if (activeState[module.default.id] && !moduleActive) {
      logger.simple("Detail", `loader: leave ${module.default.id}`);
      module.default.leave?.();
      module.default.toggle?.();
     }
     activeState[module.default.id] = moduleActive;
    }
   }
  },
 };
});

System.register("./styling-Bv6iViIW-BGyyPvry.js", ["./__monkey.entry-ADIUHjcX.js", "vue"], function (exports, module) {
 "use strict";
 var UserscriptStyling, importCSS, addEventListener, detectDom;
 return {
  setters: [
   (module) => {
    UserscriptStyling = module.U;
    importCSS = module.i;
    addEventListener = module.a;
    detectDom = module.d;
   },
   null,
  ],
  execute: function () {
   const styleCss = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-950:oklch(25.8% .092 26.042);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-950:oklch(26.6% .065 152.934);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:3.5px;--container-sm:336px;--text-xs:10.5px;--text-xs--line-height:1.33333;--text-sm:12.25px;--text-sm--line-height:1.42857;--text-base:14px;--text-base--line-height:1.5;--text-lg:15.75px;--text-lg--line-height:1.55556;--text-xl:17.5px;--text-xl--line-height:1.4;--text-2xl:21px;--text-2xl--line-height:1.33333;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:1.75px;--radius-sm:3.5px;--radius-md:5.25px;--radius-xl:10.5px;--ease-in:cubic-bezier(.4,0,1,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface-200:var(--p-surface-200);--color-surface-800:var(--p-surface-800)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.\\!visible{visibility:visible!important}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.start-0{inset-inline-start:calc(var(--spacing)*0)}.start-1{inset-inline-start:calc(var(--spacing)*1)}.end-0{inset-inline-end:calc(var(--spacing)*0)}.end-3{inset-inline-end:calc(var(--spacing)*3)}.end-10{inset-inline-end:calc(var(--spacing)*10)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-\\[-25\\%\\]{right:-25%}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-0{z-index:0}.z-1{z-index:1}.z-10{z-index:10}.z-5000{z-index:5000}.container{width:100%}@media(min-width:560px){.container{max-width:560px}}@media(min-width:672px){.container{max-width:672px}}@media(min-width:896px){.container{max-width:896px}}@media(min-width:1120px){.container{max-width:1120px}}@media(min-width:1344px){.container{max-width:1344px}}.m-0{margin:calc(var(--spacing)*0)}.my-2{margin-block:calc(var(--spacing)*2)}.-ms-\\[0\\.375rem\\]{margin-inline-start:-5.25px}.me-\\[0\\.375rem\\]{margin-inline-end:5.25px}.-mt-2{margin-top:calc(var(--spacing)*-2)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-\\[-25\\%\\]{margin-top:-25%}.mt-\\[10px\\]{margin-top:10px}.mr-3{margin-right:calc(var(--spacing)*3)}.\\!mb-0{margin-bottom:calc(var(--spacing)*0)!important}.mb-0{margin-bottom:calc(var(--spacing)*0)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.scrollbar-light{scrollbar-color:var(--p-surface-300)var(--p-surface-100);scrollbar-width:thin}.scrollbar-light::-webkit-scrollbar{height:8px;width:8px}.scrollbar-light::-webkit-scrollbar-track{background:var(--p-surface-100)}.scrollbar-light::-webkit-scrollbar-thumb{background:var(--p-surface-300);border-radius:9999px}.scrollbar-light::-webkit-scrollbar-thumb:hover{background:var(--p-surface-400)}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.size-\\[1\\.125rem\\]{height:15.75px;width:15.75px}.h-0{height:calc(var(--spacing)*0)}.h-1{height:calc(var(--spacing)*1)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-10{height:calc(var(--spacing)*10)}.h-\\[0\\.875rem\\]{height:12.25px}.h-\\[60vh\\]{height:60vh}.h-\\[80vh\\]{height:80vh}.h-fit{height:fit-content}.h-full{height:100%}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-\\[90\\%\\]{max-height:90%}.max-h-\\[1000px\\]{max-height:1000px}.max-h-full{max-height:100%}.min-h-10{min-height:calc(var(--spacing)*10)}.w-0{width:calc(var(--spacing)*0)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-7{width:calc(var(--spacing)*7)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-32{width:calc(var(--spacing)*32)}.w-\\[0\\.875rem\\]{width:12.25px}.w-\\[1\\%\\]{width:1%}.w-\\[60vw\\]{width:60vw}.w-\\[80vw\\]{width:80vw}.w-fit{width:fit-content}.w-full{width:100%}.w-sm{width:var(--container-sm)}.max-w-\\[30\\%\\]{max-width:30%}.max-w-full{max-width:100%}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-6{min-width:calc(var(--spacing)*6)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-36{min-width:calc(var(--spacing)*36)}.min-w-52{min-width:calc(var(--spacing)*52)}.min-w-\\[50vw\\]{min-width:50vw}.min-w-fit{min-width:fit-content}.flex-1{flex:1}.flex-auto{flex:auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.origin-top-right{transform-origin:100% 0}.-translate-1\\/2{--tw-translate-x:-50%;--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1\\/2,.translate-x-\\[50\\%\\]{--tw-translate-x:50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2,.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-60{--tw-scale-x:60%;--tw-scale-y:60%;--tw-scale-z:60%}.scale-60,.scale-75{scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%}.scale-80{--tw-scale-x:80%;--tw-scale-y:80%;--tw-scale-z:80%}.scale-80,.scale-y-75{scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-y-75{--tw-scale-y:75%}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.transform-\\[translateY\\(-100\\%\\)\\]{transform:translateY(-100%)}.transform-none{transform:none}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\\[min-content_1fr\\]{grid-template-columns:min-content 1fr}.grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-\\[2px\\]{gap:2px}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:3.5px}.rounded-\\[30px\\]{border-radius:30px}.rounded-full{border-radius:3.40282e+38px}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-e-md{border-end-end-radius:var(--radius-md);border-start-end-radius:var(--radius-md)}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.border,.border-1{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-3{border-top-style:var(--tw-border-style);border-top-width:3px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-3{border-right-style:var(--tw-border-style);border-right-width:3px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-3{border-bottom-style:var(--tw-border-style);border-bottom-width:3px}.border-l-3{border-left-style:var(--tw-border-style);border-left-width:3px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-primary{border-color:var(--p-primary-color)}.border-red-500{border-color:var(--color-red-500)}.border-surface-100{border-color:var(--p-surface-100)}.border-surface-200{border-color:var(--p-surface-200)}.border-surface-300{border-color:var(--p-surface-300)}.border-surface-950{border-color:var(--p-surface-950)}.border-transparent{border-color:#0000}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary{background-color:var(--p-primary-color)}.bg-primary-contrast{background-color:var(--p-primary-contrast-color)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-surface-0{background-color:var(--p-surface-0)}.bg-surface-100{background-color:var(--p-surface-100)}.bg-surface-200{background-color:var(--p-surface-200)}.bg-surface-300{background-color:var(--p-surface-300)}.bg-surface-950{background-color:var(--p-surface-950)}.bg-transparent{background-color:#0000}.object-cover{object-fit:cover}.object-center{object-position:center}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-5{padding:calc(var(--spacing)*5)}.p-\\[1\\.125rem\\]{padding:15.75px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-\\[1\\.125rem\\]{padding-inline:15.75px}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.ps-3{padding-inline-start:calc(var(--spacing)*3)}.pe-10{padding-inline-end:calc(var(--spacing)*10)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.pb-\\[1\\.125rem\\]{padding-bottom:15.75px}.align-bottom{vertical-align:bottom}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[0\\.75em\\]{font-size:.75em}.text-\\[2rem\\]{font-size:28px}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.overflow-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.bg-highlight\\!{background:var(--p-highlight-background)!important;color:var(--p-highlight-color)!important}.text-inherit{color:inherit}.text-primary{color:var(--p-primary-color)}.text-primary-700{color:var(--p-primary-700)}.text-primary-contrast{color:var(--p-primary-contrast-color)}.text-surface-400{color:var(--p-surface-400)}.text-surface-500{color:var(--p-surface-500)}.text-surface-600{color:var(--p-surface-600)}.text-surface-700{color:var(--p-surface-700)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow,.shadow-\\[0_1px_2px_0_rgba\\(18\\,18\\,23\\,0\\.05\\)\\]{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_1px_2px_0_rgba\\(18\\,18\\,23\\,0\\.05\\)\\]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#1212170d)}.shadow-\\[0_4px_6px_-1px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,0_2px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.shadow-\\[0_4px_6px_-1px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,0_2px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\],.shadow-lg{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline:2px solid #0000;outline-offset:2px}}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.outline-surface-0{outline-color:var(--p-surface-0)}.blur{--tw-blur:blur(8px)}.blur,.brightness-75{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.brightness-75{--tw-brightness:brightness(75%)}.brightness-80{--tw-brightness:brightness(80%)}.brightness-80,.grayscale{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%)}.grayscale-50{--tw-grayscale:grayscale(50%)}.grayscale-50,.invert{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-\\[1\\.5px\\]{--tw-backdrop-blur:blur(1.5px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-\\[background\\,color\\,left\\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:background,color,left;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-\\[max-height\\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:max-height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-\\[width\\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-all{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-opacity{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-none{transition-property:none}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-1000{--tw-duration:1s;transition-duration:1s}.duration-\\[450ms\\]{--tw-duration:.45s;transition-duration:.45s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-\\[cubic-bezier\\(0\\,1\\,0\\,1\\)\\]{--tw-ease:cubic-bezier(0,1,0,1);transition-timing-function:cubic-bezier(0,1,0,1)}.ease-\\[cubic-bezier\\(0\\.4\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-\\[cubic-bezier\\(0\\.42\\,0\\,0\\.58\\,1\\)\\]{--tw-ease:cubic-bezier(.42,0,.58,1);transition-timing-function:ease-in-out}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}:is(.\\*\\:flex>*){display:flex}:is(.\\*\\:grow>*){flex-grow:1}:is(.\\*\\:overflow-hidden>*){overflow:hidden}@media(hover:hover){.group-hover\\:text-surface-500:is(:where(.group):hover *){color:var(--p-surface-500)}}.group-p-disabled\\:pointer-events-none:is(:is(:where(.group)[data-p~=disabled],:where(.group)[data-p-disabled=true]) *){pointer-events:none}.group-p-disabled\\:text-surface-500:is(:is(:where(.group)[data-p~=disabled],:where(.group)[data-p-disabled=true]) *){color:var(--p-surface-500)}.peer-focus-visible\\:outline-1:is(:where(.peer):focus-visible~*),.peer-focus-visible\\:outline:is(:where(.peer):focus-visible~*){outline-style:var(--tw-outline-style);outline-width:1px}.peer-focus-visible\\:outline-offset-2:is(:where(.peer):focus-visible~*){outline-offset:2px}.peer-focus-visible\\:outline-primary:is(:where(.peer):focus-visible~*){outline-color:var(--p-primary-color)}@media(hover:hover){.peer-enabled\\:peer-hover\\:border-surface-400:is(:where(.peer):enabled~*):is(:where(.peer):hover~*){border-color:var(--p-surface-400)}.peer-enabled\\:peer-hover\\:bg-surface-400:is(:where(.peer):enabled~*):is(:where(.peer):hover~*){background-color:var(--p-surface-400)}}.placeholder\\:text-surface-500::placeholder{color:var(--p-surface-500)}.before\\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:bottom-full:before{bottom:100%;content:var(--tw-content)}.before\\:left-5:before{content:var(--tw-content);left:calc(var(--spacing)*5)}.before\\:-ms-\\[10px\\]:before{content:var(--tw-content);margin-inline-start:-10px}.before\\:h-0:before{content:var(--tw-content);height:calc(var(--spacing)*0)}.before\\:w-0:before{content:var(--tw-content);width:calc(var(--spacing)*0)}.before\\:border-\\[10px\\]:before{border-style:var(--tw-border-style);border-width:10px;content:var(--tw-content)}.before\\:border-transparent:before{border-color:#0000;content:var(--tw-content)}.before\\:border-b-surface-200:before{border-bottom-color:var(--p-surface-200);content:var(--tw-content)}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:bottom-full:after{bottom:100%;content:var(--tw-content)}.after\\:left-5:after{content:var(--tw-content);left:calc(var(--spacing)*5)}.after\\:-ms-\\[8px\\]:after{content:var(--tw-content);margin-inline-start:-8px}.after\\:h-0:after{content:var(--tw-content);height:calc(var(--spacing)*0)}.after\\:w-0:after{content:var(--tw-content);width:calc(var(--spacing)*0)}.after\\:border-\\[8px\\]:after{border-style:var(--tw-border-style);border-width:8px;content:var(--tw-content)}.after\\:border-transparent:after{border-color:#0000;content:var(--tw-content)}.after\\:border-b-surface-0:after{border-bottom-color:var(--p-surface-0);content:var(--tw-content)}.first\\:rounded-s-md:first-child{border-end-start-radius:var(--radius-md);border-start-start-radius:var(--radius-md)}.last\\:rounded-e-md:last-child{border-end-end-radius:var(--radius-md);border-start-end-radius:var(--radius-md)}@media(hover:hover){.hover\\:border-surface-400:hover{border-color:var(--p-surface-400)}.hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-500\\)\\,transparent_84\\%\\)\\]:hover{background-color:#3080ff29}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-500\\)\\,transparent_84\\%\\)\\]:hover{background-color:color-mix(in srgb,var(--color-blue-500),transparent 84%)}}.hover\\:bg-surface-100:hover{background-color:var(--p-surface-100)}.hover\\:bg-emphasis:hover{background:var(--p-content-hover-background);color:var(--p-content-hover-color)}.hover\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-surface-700:hover{color:var(--p-surface-700)}.hover\\:text-surface-800:hover{color:var(--p-surface-800)}.hover\\:not-p-selected\\:bg-surface-100:hover:not([data-p~=selected],[data-p-selected=true]){background-color:var(--p-surface-100)}.hover\\:not-p-selected\\:text-surface-800:hover:not([data-p~=selected],[data-p-selected=true]){color:var(--p-surface-800)}}.focus-visible\\:relative:focus-visible{position:relative}.focus-visible\\:z-10:focus-visible{z-index:10}.focus-visible\\:outline-1:focus-visible,.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-offset-\\[-1px\\]:focus-visible{outline-offset:-1px}.focus-visible\\:outline-primary:focus-visible{outline-color:var(--p-primary-color)}.focus-visible\\:outline-red-500:focus-visible{outline-color:var(--color-red-500)}.focus-visible\\:outline-surface-600:focus-visible{outline-color:var(--p-surface-600)}.focus-visible\\:outline-surface-950:focus-visible{outline-color:var(--p-surface-950)}@media(hover:hover){.enabled\\:hover\\:border-primary-emphasis:enabled:hover{border-color:var(--p-primary-hover-color)}.enabled\\:hover\\:border-red-600:enabled:hover{border-color:var(--color-red-600)}.enabled\\:hover\\:border-surface-200:enabled:hover{border-color:var(--p-surface-200)}.enabled\\:hover\\:border-surface-300:enabled:hover{border-color:var(--p-surface-300)}.enabled\\:hover\\:border-surface-400:enabled:hover{border-color:var(--p-surface-400)}.enabled\\:hover\\:border-surface-900:enabled:hover{border-color:var(--p-surface-900)}.enabled\\:hover\\:bg-primary-emphasis:enabled:hover{background-color:var(--p-primary-hover-color)}.enabled\\:hover\\:bg-red-600:enabled:hover{background-color:var(--color-red-600)}.enabled\\:hover\\:bg-surface-100:enabled:hover{background-color:var(--p-surface-100)}.enabled\\:hover\\:bg-surface-200:enabled:hover{background-color:var(--p-surface-200)}.enabled\\:hover\\:bg-surface-900:enabled:hover{background-color:var(--p-surface-900)}.enabled\\:hover\\:text-surface-500:enabled:hover{color:var(--p-surface-500)}.enabled\\:hover\\:text-surface-700:enabled:hover{color:var(--p-surface-700)}.enabled\\:hover\\:text-white:enabled:hover{color:var(--color-white)}}.enabled\\:focus\\:border-primary:enabled:focus{border-color:var(--p-primary-color)}.enabled\\:active\\:border-primary-emphasis-alt:enabled:active{border-color:var(--p-primary-active-color)}.enabled\\:active\\:border-red-700:enabled:active{border-color:var(--color-red-700)}.enabled\\:active\\:border-surface-300:enabled:active{border-color:var(--p-surface-300)}.enabled\\:active\\:border-surface-800:enabled:active{border-color:var(--p-surface-800)}.enabled\\:active\\:bg-primary-emphasis-alt:enabled:active{background-color:var(--p-primary-active-color)}.enabled\\:active\\:bg-red-700:enabled:active{background-color:var(--color-red-700)}.enabled\\:active\\:bg-surface-200:enabled:active{background-color:var(--p-surface-200)}.enabled\\:active\\:bg-surface-300:enabled:active{background-color:var(--p-surface-300)}.enabled\\:active\\:bg-surface-800:enabled:active{background-color:var(--p-surface-800)}.enabled\\:active\\:text-surface-600:enabled:active{color:var(--p-surface-600)}.enabled\\:active\\:text-surface-800:enabled:active{color:var(--p-surface-800)}.enabled\\:active\\:text-white:enabled:active{color:var(--color-white)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:border-surface-200:disabled{border-color:var(--p-surface-200)}.disabled\\:bg-surface-200:disabled{background-color:var(--p-surface-200)}.disabled\\:text-surface-500:disabled{color:var(--p-surface-500)}.disabled\\:opacity-60:disabled{opacity:.6}@media(min-width:560px){.sm\\:flex{display:flex}}.dark\\:scrollbar-dark:where(.dark,.dark *){scrollbar-color:var(--p-surface-600)var(--p-surface-800);scrollbar-width:thin}.dark\\:scrollbar-dark:where(.dark,.dark *)::-webkit-scrollbar{height:8px;width:8px}.dark\\:scrollbar-dark:where(.dark,.dark *)::-webkit-scrollbar-track{background:var(--p-surface-800)}.dark\\:scrollbar-dark:where(.dark,.dark *)::-webkit-scrollbar-thumb{background:var(--p-surface-600);border-radius:9999px}.dark\\:scrollbar-dark:where(.dark,.dark *)::-webkit-scrollbar-thumb:hover{background:var(--p-surface-500)}.dark\\:border-red-400:where(.dark,.dark *){border-color:var(--color-red-400)}.dark\\:border-surface-100:where(.dark,.dark *){border-color:var(--p-surface-100)}.dark\\:border-surface-700:where(.dark,.dark *){border-color:var(--p-surface-700)}.dark\\:border-surface-800:where(.dark,.dark *){border-color:var(--p-surface-800)}.dark\\:border-surface-950:where(.dark,.dark *){border-color:var(--p-surface-950)}.dark\\:bg-gray-500:where(.dark,.dark *){background-color:var(--color-gray-500)}.dark\\:bg-red-400:where(.dark,.dark *){background-color:var(--color-red-400)}.dark\\:bg-surface-0:where(.dark,.dark *){background-color:var(--p-surface-0)}.dark\\:bg-surface-400:where(.dark,.dark *){background-color:var(--p-surface-400)}.dark\\:bg-surface-700:where(.dark,.dark *){background-color:var(--p-surface-700)}.dark\\:bg-surface-800:where(.dark,.dark *){background-color:var(--p-surface-800)}.dark\\:bg-surface-900:where(.dark,.dark *){background-color:var(--p-surface-900)}.dark\\:bg-surface-950:where(.dark,.dark *){background-color:var(--p-surface-950)}.dark\\:bg-transparent:where(.dark,.dark *){background-color:#0000}.dark\\:text-primary-300:where(.dark,.dark *){color:var(--p-primary-300)}.dark\\:text-red-950:where(.dark,.dark *){color:var(--color-red-950)}.dark\\:text-surface-0:where(.dark,.dark *){color:var(--p-surface-0)}.dark\\:text-surface-300:where(.dark,.dark *){color:var(--p-surface-300)}.dark\\:text-surface-400:where(.dark,.dark *){color:var(--p-surface-400)}.dark\\:text-surface-500:where(.dark,.dark *){color:var(--p-surface-500)}.dark\\:text-surface-900:where(.dark,.dark *){color:var(--p-surface-900)}.dark\\:text-surface-950:where(.dark,.dark *){color:var(--p-surface-950)}.dark\\:outline-surface-900:where(.dark,.dark *){outline-color:var(--p-surface-900)}.dark\\:backdrop-blur-\\[10px\\]:where(.dark,.dark *){--tw-backdrop-blur:blur(10px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}@media(hover:hover){.dark\\:group-hover\\:text-surface-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--p-surface-400)}}.dark\\:group-p-disabled\\:text-surface-400:where(.dark,.dark *):is(:is(:where(.group)[data-p~=disabled],:where(.group)[data-p-disabled=true]) *){color:var(--p-surface-400)}@media(hover:hover){.dark\\:peer-enabled\\:peer-hover\\:border-surface-600:where(.dark,.dark *):is(:where(.peer):enabled~*):is(:where(.peer):hover~*){border-color:var(--p-surface-600)}.dark\\:peer-enabled\\:peer-hover\\:bg-surface-600:where(.dark,.dark *):is(:where(.peer):enabled~*):is(:where(.peer):hover~*){background-color:var(--p-surface-600)}}.dark\\:placeholder\\:text-surface-400:where(.dark,.dark *)::placeholder{color:var(--p-surface-400)}.dark\\:before\\:border-b-surface-700:where(.dark,.dark *):before{border-bottom-color:var(--p-surface-700);content:var(--tw-content)}.dark\\:after\\:border-b-surface-900:where(.dark,.dark *):after{border-bottom-color:var(--p-surface-900);content:var(--tw-content)}@media(hover:hover){.dark\\:hover\\:border-surface-600:where(.dark,.dark *):hover{border-color:var(--p-surface-600)}.dark\\:hover\\:bg-surface-800:where(.dark,.dark *):hover{background-color:var(--p-surface-800)}.dark\\:hover\\:text-blue-400:where(.dark,.dark *):hover{color:var(--color-blue-400)}.dark\\:hover\\:text-surface-0:where(.dark,.dark *):hover{color:var(--p-surface-0)}.dark\\:hover\\:not-p-selected\\:bg-surface-800:where(.dark,.dark *):hover:not([data-p~=selected],[data-p-selected=true]){background-color:var(--p-surface-800)}.dark\\:hover\\:not-p-selected\\:text-surface-0:where(.dark,.dark *):hover:not([data-p~=selected],[data-p-selected=true]){color:var(--p-surface-0)}}.dark\\:focus-visible\\:outline-red-400:where(.dark,.dark *):focus-visible{outline-color:var(--color-red-400)}.dark\\:focus-visible\\:outline-surface-0:where(.dark,.dark *):focus-visible{outline-color:var(--p-surface-0)}.dark\\:focus-visible\\:outline-surface-300:where(.dark,.dark *):focus-visible{outline-color:var(--p-surface-300)}@media(hover:hover){.dark\\:enabled\\:hover\\:border-red-300:where(.dark,.dark *):enabled:hover{border-color:var(--color-red-300)}.dark\\:enabled\\:hover\\:border-surface-200:where(.dark,.dark *):enabled:hover{border-color:var(--p-surface-200)}.dark\\:enabled\\:hover\\:border-surface-600:where(.dark,.dark *):enabled:hover{border-color:var(--p-surface-600)}.dark\\:enabled\\:hover\\:border-surface-700:where(.dark,.dark *):enabled:hover{border-color:var(--p-surface-700)}.dark\\:enabled\\:hover\\:bg-red-300:where(.dark,.dark *):enabled:hover{background-color:var(--color-red-300)}.dark\\:enabled\\:hover\\:bg-surface-100:where(.dark,.dark *):enabled:hover{background-color:var(--p-surface-100)}.dark\\:enabled\\:hover\\:bg-surface-700:where(.dark,.dark *):enabled:hover{background-color:var(--p-surface-700)}.dark\\:enabled\\:hover\\:bg-surface-800:where(.dark,.dark *):enabled:hover{background-color:var(--p-surface-800)}.dark\\:enabled\\:hover\\:text-red-950:where(.dark,.dark *):enabled:hover{color:var(--color-red-950)}.dark\\:enabled\\:hover\\:text-surface-200:where(.dark,.dark *):enabled:hover{color:var(--p-surface-200)}.dark\\:enabled\\:hover\\:text-surface-300:where(.dark,.dark *):enabled:hover{color:var(--p-surface-300)}.dark\\:enabled\\:hover\\:text-surface-950:where(.dark,.dark *):enabled:hover{color:var(--p-surface-950)}}.dark\\:enabled\\:active\\:border-red-200:where(.dark,.dark *):enabled:active{border-color:var(--color-red-200)}.dark\\:enabled\\:active\\:border-surface-300:where(.dark,.dark *):enabled:active{border-color:var(--p-surface-300)}.dark\\:enabled\\:active\\:border-surface-600:where(.dark,.dark *):enabled:active{border-color:var(--p-surface-600)}.dark\\:enabled\\:active\\:border-surface-700:where(.dark,.dark *):enabled:active{border-color:var(--p-surface-700)}.dark\\:enabled\\:active\\:bg-red-200:where(.dark,.dark *):enabled:active{background-color:var(--color-red-200)}.dark\\:enabled\\:active\\:bg-surface-200:where(.dark,.dark *):enabled:active{background-color:var(--p-surface-200)}.dark\\:enabled\\:active\\:bg-surface-600:where(.dark,.dark *):enabled:active{background-color:var(--p-surface-600)}.dark\\:enabled\\:active\\:bg-surface-700:where(.dark,.dark *):enabled:active{background-color:var(--p-surface-700)}.dark\\:enabled\\:active\\:text-red-950:where(.dark,.dark *):enabled:active{color:var(--color-red-950)}.dark\\:enabled\\:active\\:text-surface-100:where(.dark,.dark *):enabled:active{color:var(--p-surface-100)}.dark\\:enabled\\:active\\:text-surface-200:where(.dark,.dark *):enabled:active{color:var(--p-surface-200)}.dark\\:enabled\\:active\\:text-surface-950:where(.dark,.dark *):enabled:active{color:var(--p-surface-950)}.disabled\\:dark\\:border-surface-700:disabled:where(.dark,.dark *){border-color:var(--p-surface-700)}.dark\\:disabled\\:bg-surface-700:where(.dark,.dark *):disabled,.disabled\\:dark\\:bg-surface-700:disabled:where(.dark,.dark *){background-color:var(--p-surface-700)}.dark\\:disabled\\:text-surface-400:where(.dark,.dark *):disabled,.disabled\\:dark\\:text-surface-400:disabled:where(.dark,.dark *){color:var(--p-surface-400)}.p-invalid\\:border-red-400[data-p~=invalid]{border-color:var(--color-red-400)}.p-invalid\\:outline[data-p~=invalid]{outline-style:var(--tw-outline-style);outline-width:1px}.p-invalid\\:outline-offset-0[data-p~=invalid]{outline-offset:0}.p-invalid\\:outline-red-400[data-p~=invalid]{outline-color:var(--color-red-400)}.p-invalid\\:placeholder\\:text-red-600[data-p~=invalid]::placeholder{color:var(--color-red-600)}.dark\\:p-invalid\\:border-red-300:where(.dark,.dark *)[data-p~=invalid]{border-color:var(--color-red-300)}.dark\\:p-invalid\\:outline-red-300:where(.dark,.dark *)[data-p~=invalid]{outline-color:var(--color-red-300)}.dark\\:p-invalid\\:placeholder\\:text-red-400:where(.dark,.dark *)[data-p~=invalid]::placeholder{color:var(--color-red-400)}.p-small\\:h-3[data-p~=small]{height:calc(var(--spacing)*3)}.p-small\\:h-4[data-p~=small]{height:calc(var(--spacing)*4)}.p-small\\:h-5[data-p~=small]{height:calc(var(--spacing)*5)}.p-small\\:w-3[data-p~=small]{width:calc(var(--spacing)*3)}.p-small\\:w-4[data-p~=small]{width:calc(var(--spacing)*4)}.p-small\\:min-w-5[data-p~=small]{min-width:calc(var(--spacing)*5)}.p-small\\:px-\\[0\\.625rem\\][data-p~=small]{padding-inline:8.75px}.p-small\\:py-\\[0\\.375rem\\][data-p~=small]{padding-block:5.25px}.p-small\\:text-sm[data-p~=small]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.p-small\\:text-\\[0\\.625rem\\][data-p~=small]{font-size:8.75px}.p-large\\:h-4[data-p~=large]{height:calc(var(--spacing)*4)}.p-large\\:h-6[data-p~=large]{height:calc(var(--spacing)*6)}.p-large\\:h-7[data-p~=large]{height:calc(var(--spacing)*7)}.p-large\\:w-4[data-p~=large]{width:calc(var(--spacing)*4)}.p-large\\:w-6[data-p~=large]{width:calc(var(--spacing)*6)}.p-large\\:min-w-7[data-p~=large]{min-width:calc(var(--spacing)*7)}.p-large\\:px-\\[0\\.875rem\\][data-p~=large]{padding-inline:12.25px}.p-large\\:py-\\[0\\.625rem\\][data-p~=large]{padding-block:8.75px}.p-large\\:text-lg[data-p~=large]{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.p-large\\:text-sm[data-p~=large]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.p-large\\:text-\\[1\\.125rem\\][data-p~=large]{font-size:15.75px}.p-xlarge\\:h-8[data-p~=xlarge]{height:calc(var(--spacing)*8)}.p-xlarge\\:min-w-8[data-p~=xlarge]{min-width:calc(var(--spacing)*8)}.p-xlarge\\:text-base[data-p~=xlarge]{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.p-fluid\\:flex[data-p~=fluid]{display:flex}.p-fluid\\:w-\\[1\\%\\][data-p~=fluid]{width:1%}.p-fluid\\:w-full[data-p~=fluid]{width:100%}.p-filled\\:bg-surface-50[data-p~=filled]{background-color:var(--p-surface-50)}.dark\\:p-filled\\:bg-surface-800:where(.dark,.dark *)[data-p~=filled]{background-color:var(--p-surface-800)}.p-horizontal\\:relative[data-p~=horizontal]{position:relative}.p-horizontal\\:order-1[data-p~=horizontal]{order:1}.p-horizontal\\:order-2[data-p~=horizontal]{order:2}.p-horizontal\\:order-3[data-p~=horizontal]{order:3}.p-horizontal\\:mx-0[data-p~=horizontal]{margin-inline:calc(var(--spacing)*0)}.p-horizontal\\:my-4[data-p~=horizontal]{margin-block:calc(var(--spacing)*4)}.p-horizontal\\:flex[data-p~=horizontal]{display:flex}.p-horizontal\\:h-\\[24px\\][data-p~=horizontal]{height:24px}.p-horizontal\\:w-full[data-p~=horizontal]{width:100%}.p-horizontal\\:cursor-col-resize[data-p~=horizontal]{cursor:col-resize}.p-horizontal\\:items-center[data-p~=horizontal]{align-items:center}.p-horizontal\\:rounded-none[data-p~=horizontal]{border-radius:0}.p-horizontal\\:rounded-s-md[data-p~=horizontal]{border-end-start-radius:var(--radius-md);border-start-start-radius:var(--radius-md)}.p-horizontal\\:rounded-e-md[data-p~=horizontal]{border-end-end-radius:var(--radius-md);border-start-end-radius:var(--radius-md)}.p-horizontal\\:border-s-0[data-p~=horizontal]{border-inline-start-style:var(--tw-border-style);border-inline-start-width:0}.p-horizontal\\:border-e-0[data-p~=horizontal]{border-inline-end-style:var(--tw-border-style);border-inline-end-width:0}.p-horizontal\\:px-2[data-p~=horizontal]{padding-inline:calc(var(--spacing)*2)}.p-horizontal\\:px-4[data-p~=horizontal]{padding-inline:calc(var(--spacing)*4)}.p-horizontal\\:py-0[data-p~=horizontal]{padding-block:calc(var(--spacing)*0)}.p-horizontal\\:before\\:absolute[data-p~=horizontal]:before{content:var(--tw-content);position:absolute}.p-horizontal\\:before\\:start-0[data-p~=horizontal]:before{content:var(--tw-content);inset-inline-start:calc(var(--spacing)*0)}.p-horizontal\\:before\\:top-1\\/2[data-p~=horizontal]:before{content:var(--tw-content);top:50%}.p-horizontal\\:before\\:block[data-p~=horizontal]:before{content:var(--tw-content);display:block}.p-horizontal\\:before\\:w-full[data-p~=horizontal]:before{content:var(--tw-content);width:100%}.p-horizontal\\:before\\:border-t[data-p~=horizontal]:before{border-top-style:var(--tw-border-style);border-top-width:1px;content:var(--tw-content)}.p-horizontal\\:before\\:border-surface-200[data-p~=horizontal]:before{border-color:var(--p-surface-200);content:var(--tw-content)}.dark\\:p-horizontal\\:before\\:border-surface-700:where(.dark,.dark *)[data-p~=horizontal]:before{border-color:var(--p-surface-700);content:var(--tw-content)}.p-vertical\\:relative[data-p~=vertical]{position:relative}.p-vertical\\:order-1[data-p~=vertical]{order:1}.p-vertical\\:order-2[data-p~=vertical]{order:2}.p-vertical\\:order-3[data-p~=vertical]{order:3}.p-vertical\\:mx-4[data-p~=vertical]{margin-inline:calc(var(--spacing)*4)}.p-vertical\\:my-0[data-p~=vertical]{margin-block:calc(var(--spacing)*0)}.p-vertical\\:flex[data-p~=vertical]{display:flex}.p-vertical\\:h-full[data-p~=vertical]{height:100%}.p-vertical\\:min-h-full[data-p~=vertical]{min-height:100%}.p-vertical\\:w-\\[24px\\][data-p~=vertical]{width:24px}.p-vertical\\:w-full[data-p~=vertical]{width:100%}.p-vertical\\:cursor-row-resize[data-p~=vertical]{cursor:row-resize}.p-vertical\\:flex-col[data-p~=vertical]{flex-direction:column}.p-vertical\\:justify-center[data-p~=vertical]{justify-content:center}.p-vertical\\:rounded-none[data-p~=vertical]{border-radius:0}.p-vertical\\:rounded-ss-md[data-p~=vertical]{border-start-start-radius:var(--radius-md)}.p-vertical\\:rounded-se-md[data-p~=vertical]{border-start-end-radius:var(--radius-md)}.p-vertical\\:rounded-ee-md[data-p~=vertical]{border-end-end-radius:var(--radius-md)}.p-vertical\\:rounded-es-md[data-p~=vertical]{border-end-start-radius:var(--radius-md)}.p-vertical\\:border-t-0[data-p~=vertical]{border-top-style:var(--tw-border-style);border-top-width:0}.p-vertical\\:border-b-0[data-p~=vertical]{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.p-vertical\\:px-0[data-p~=vertical]{padding-inline:calc(var(--spacing)*0)}.p-vertical\\:py-2[data-p~=vertical]{padding-block:calc(var(--spacing)*2)}.p-vertical\\:text-center[data-p~=vertical]{text-align:center}.p-vertical\\:before\\:absolute[data-p~=vertical]:before{content:var(--tw-content);position:absolute}.p-vertical\\:before\\:start-1\\/2[data-p~=vertical]:before{content:var(--tw-content);inset-inline-start:50%}.p-vertical\\:before\\:top-0[data-p~=vertical]:before{content:var(--tw-content);top:calc(var(--spacing)*0)}.p-vertical\\:before\\:block[data-p~=vertical]:before{content:var(--tw-content);display:block}.p-vertical\\:before\\:h-full[data-p~=vertical]:before{content:var(--tw-content);height:100%}.p-vertical\\:before\\:border-s[data-p~=vertical]:before{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px;content:var(--tw-content)}.p-vertical\\:before\\:border-surface-200[data-p~=vertical]:before{border-color:var(--p-surface-200);content:var(--tw-content)}.dark\\:p-vertical\\:before\\:border-surface-700:where(.dark,.dark *)[data-p~=vertical]:before{border-color:var(--p-surface-700);content:var(--tw-content)}.p-fluid\\:p-vertical\\:w-full[data-p~=fluid][data-p~=vertical]{width:100%}.p-stacked\\:absolute[data-p~=stacked]{position:absolute}.p-stacked\\:relative[data-p~=stacked]{position:relative}.p-stacked\\:end-px[data-p~=stacked]{inset-inline-end:1px}.p-stacked\\:top-px[data-p~=stacked]{top:1px}.p-stacked\\:z-10[data-p~=stacked]{z-index:10}.p-stacked\\:flex[data-p~=stacked]{display:flex}.p-stacked\\:h-\\[calc\\(100\\%-2px\\)\\][data-p~=stacked]{height:calc(100% - 2px)}.p-stacked\\:flex-auto[data-p~=stacked]{flex:auto}.p-stacked\\:flex-col[data-p~=stacked]{flex-direction:column}.p-stacked\\:rounded-tr-\\[5px\\][data-p~=stacked]{border-top-right-radius:5px}.p-stacked\\:rounded-br-\\[5px\\][data-p~=stacked]{border-bottom-right-radius:5px}.p-stacked\\:border-none[data-p~=stacked]{--tw-border-style:none;border-style:none}.p-stacked\\:p-0[data-p~=stacked]{padding:calc(var(--spacing)*0)}.p-checked\\:start-5[data-p~=checked]{inset-inline-start:calc(var(--spacing)*5)}.p-checked\\:border-primary[data-p~=checked]{border-color:var(--p-primary-color)}.p-checked\\:bg-primary[data-p~=checked]{background-color:var(--p-primary-color)}.p-checked\\:bg-surface-0[data-p~=checked]{background-color:var(--p-surface-0)}.p-checked\\:text-primary[data-p~=checked]{color:var(--p-primary-color)}.p-checked\\:text-primary-contrast[data-p~=checked]{color:var(--p-primary-contrast-color)}.p-checked\\:text-surface-700[data-p~=checked]{color:var(--p-surface-700)}.p-checked\\:shadow-\\[0px_1px_2px_0px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\,0px_1px_2px_0px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\][data-p~=checked]{--tw-shadow:0px 1px 2px 0px var(--tw-shadow-color,#00000005),0px 1px 2px 0px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.peer-enabled\\:peer-hover\\:p-checked\\:border-primary-emphasis:is(:where(.peer):enabled~*):is(:where(.peer):hover~*)[data-p~=checked]{border-color:var(--p-primary-hover-color)}.peer-enabled\\:peer-hover\\:p-checked\\:bg-primary-emphasis:is(:where(.peer):enabled~*):is(:where(.peer):hover~*)[data-p~=checked]{background-color:var(--p-primary-hover-color)}}.dark\\:p-checked\\:bg-surface-800:where(.dark,.dark *)[data-p~=checked]{background-color:var(--p-surface-800)}.dark\\:p-checked\\:bg-surface-900:where(.dark,.dark *)[data-p~=checked]{background-color:var(--p-surface-900)}.dark\\:p-checked\\:text-surface-0:where(.dark,.dark *)[data-p~=checked]{color:var(--p-surface-0)}.p-disabled\\:pointer-events-none[data-p-disabled=true],.p-disabled\\:pointer-events-none[data-p~=disabled]{pointer-events:none}.p-disabled\\:border-surface-300[data-p-disabled=true],.p-disabled\\:border-surface-300[data-p~=disabled]{border-color:var(--p-surface-300)}.p-disabled\\:bg-surface-200[data-p-disabled=true],.p-disabled\\:bg-surface-200[data-p~=disabled]{background-color:var(--p-surface-200)}.p-disabled\\:bg-surface-700[data-p-disabled=true],.p-disabled\\:bg-surface-700[data-p~=disabled]{background-color:var(--p-surface-700)}.p-disabled\\:text-surface-500[data-p-disabled=true],.p-disabled\\:text-surface-500[data-p~=disabled]{color:var(--p-surface-500)}.p-disabled\\:opacity-60[data-p-disabled=true],.p-disabled\\:opacity-60[data-p~=disabled]{opacity:.6}.dark\\:p-disabled\\:border-surface-500:where(.dark,.dark *)[data-p-disabled=true],.dark\\:p-disabled\\:border-surface-500:where(.dark,.dark *)[data-p~=disabled]{border-color:var(--p-surface-500)}.dark\\:p-disabled\\:bg-surface-600:where(.dark,.dark *)[data-p-disabled=true],.dark\\:p-disabled\\:bg-surface-600:where(.dark,.dark *)[data-p~=disabled]{background-color:var(--p-surface-600)}.dark\\:p-disabled\\:bg-surface-700:where(.dark,.dark *)[data-p-disabled=true],.dark\\:p-disabled\\:bg-surface-700:where(.dark,.dark *)[data-p~=disabled]{background-color:var(--p-surface-700)}.dark\\:p-disabled\\:bg-surface-900:where(.dark,.dark *)[data-p-disabled=true],.dark\\:p-disabled\\:bg-surface-900:where(.dark,.dark *)[data-p~=disabled]{background-color:var(--p-surface-900)}.dark\\:p-disabled\\:text-surface-400:where(.dark,.dark *)[data-p-disabled=true],.dark\\:p-disabled\\:text-surface-400:where(.dark,.dark *)[data-p~=disabled]{color:var(--p-surface-400)}.p-selected\\:bg-highlight[data-p-selected=true],.p-selected\\:bg-highlight[data-p~=selected]{background:var(--p-highlight-background);color:var(--p-highlight-color)}.p-right\\:order-1[data-p-right=true],.p-right\\:order-1[data-p~=right]{order:1}.p-bottom\\:order-2[data-p-bottom=true],.p-bottom\\:order-2[data-p~=bottom]{order:2}.p-center\\:top-1\\/2[data-p~=center]{top:50%}.p-center\\:left-1\\/2[data-p~=center]{left:50%}.p-center\\:-translate-x-1\\/2[data-p~=center]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-center\\:-translate-y-1\\/2[data-p~=center]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-top-center\\:top-4[data-p~=top-center]{top:calc(var(--spacing)*4)}.p-top-center\\:left-1\\/2[data-p~=top-center]{left:50%}.p-top-center\\:-translate-x-1\\/2[data-p~=top-center]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-bottom-center\\:bottom-4[data-p~=bottom-center]{bottom:calc(var(--spacing)*4)}.p-bottom-center\\:left-1\\/2[data-p~=bottom-center]{left:50%}.p-bottom-center\\:-translate-x-1\\/2[data-p~=bottom-center]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.p-active\\:text-surface-700[data-p-active=true],.p-active\\:text-surface-700[data-p~=active]{color:var(--p-surface-700)}.dark\\:p-active\\:text-surface-0:where(.dark,.dark *)[data-p-active=true],.dark\\:p-active\\:text-surface-0:where(.dark,.dark *)[data-p~=active]{color:var(--p-surface-0)}.p-focus\\:border-primary[data-p-focused=true],.p-focus\\:border-primary[data-p~=focus]{border-color:var(--p-primary-color)}.p-focus\\:bg-surface-100[data-p-focused=true],.p-focus\\:bg-surface-100[data-p~=focus]{background-color:var(--p-surface-100)}.p-focus\\:text-surface-500[data-p-focused=true],.p-focus\\:text-surface-500[data-p~=focus]{color:var(--p-surface-500)}.p-focus\\:text-surface-800[data-p-focused=true],.p-focus\\:text-surface-800[data-p~=focus]{color:var(--p-surface-800)}:is(.p-focus\\:not-p-selected\\:bg-surface-100[data-p~=focus],.p-focus\\:not-p-selected\\:bg-surface-100[data-p-focused=true]):not([data-p~=selected],[data-p-selected=true]){background-color:var(--p-surface-100)}:is(.p-focus\\:not-p-selected\\:text-surface-800[data-p~=focus],.p-focus\\:not-p-selected\\:text-surface-800[data-p-focused=true]):not([data-p~=selected],[data-p-selected=true]){color:var(--p-surface-800)}.dark\\:p-focus\\:bg-surface-800:where(.dark,.dark *)[data-p-focused=true],.dark\\:p-focus\\:bg-surface-800:where(.dark,.dark *)[data-p~=focus]{background-color:var(--p-surface-800)}.dark\\:p-focus\\:text-surface-0:where(.dark,.dark *)[data-p-focused=true],.dark\\:p-focus\\:text-surface-0:where(.dark,.dark *)[data-p~=focus]{color:var(--p-surface-0)}.dark\\:p-focus\\:text-surface-400:where(.dark,.dark *)[data-p-focused=true],.dark\\:p-focus\\:text-surface-400:where(.dark,.dark *)[data-p~=focus]{color:var(--p-surface-400)}:is(.dark\\:p-focus\\:not-p-selected\\:bg-surface-800:where(.dark,.dark *)[data-p~=focus],.dark\\:p-focus\\:not-p-selected\\:bg-surface-800:where(.dark,.dark *)[data-p-focused=true]):not([data-p~=selected],[data-p-selected=true]){background-color:var(--p-surface-800)}:is(.dark\\:p-focus\\:not-p-selected\\:text-surface-0:where(.dark,.dark *)[data-p~=focus],.dark\\:p-focus\\:not-p-selected\\:text-surface-0:where(.dark,.dark *)[data-p-focused=true]):not([data-p~=selected],[data-p-selected=true]){color:var(--p-surface-0)}:is(.p-focus\\:p-selected\\:bg-highlight-emphasis[data-p~=focus],.p-focus\\:p-selected\\:bg-highlight-emphasis[data-p-focused=true])[data-p-selected=true],:is(.p-focus\\:p-selected\\:bg-highlight-emphasis[data-p~=focus],.p-focus\\:p-selected\\:bg-highlight-emphasis[data-p-focused=true])[data-p~=selected],:is(.p-selected\\:p-focus\\:bg-highlight-emphasis[data-p~=selected],.p-selected\\:p-focus\\:bg-highlight-emphasis[data-p-selected=true])[data-p-focused=true],:is(.p-selected\\:p-focus\\:bg-highlight-emphasis[data-p~=selected],.p-selected\\:p-focus\\:bg-highlight-emphasis[data-p-selected=true])[data-p~=focus]{background:var(--p-highlight-focus-background);color:var(--p-highlight-focus-color)}.p-circle\\:rounded-full[data-p~=circle]{border-radius:3.40282e+38px}.p-circle\\:p-0[data-p~=circle]{padding:calc(var(--spacing)*0)}.p-empty\\:h-2[data-p~=empty]{height:calc(var(--spacing)*2)}.p-empty\\:min-w-2[data-p~=empty]{min-width:calc(var(--spacing)*2)}.p-empty\\:overflow-hidden[data-p~=empty]{overflow:hidden}.p-empty\\:rounded-full[data-p~=empty]{border-radius:3.40282e+38px}.p-empty\\:p-0[data-p~=empty]{padding:calc(var(--spacing)*0)}.p-empty\\:opacity-0[data-p~=empty]{opacity:0}.p-determinate\\:absolute[data-p~=determinate]{position:absolute}.p-determinate\\:flex[data-p~=determinate]{display:flex}.p-determinate\\:inline-flex[data-p~=determinate]{display:inline-flex}.p-determinate\\:h-full[data-p~=determinate]{height:100%}.p-determinate\\:w-0[data-p~=determinate]{width:calc(var(--spacing)*0)}.p-determinate\\:items-center[data-p~=determinate]{align-items:center}.p-determinate\\:justify-center[data-p~=determinate]{justify-content:center}.p-determinate\\:overflow-hidden[data-p~=determinate]{overflow:hidden}.p-determinate\\:transition-\\[width\\][data-p~=determinate]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.p-determinate\\:duration-1000[data-p~=determinate]{--tw-duration:1s;transition-duration:1s}.p-determinate\\:ease-in-out[data-p~=determinate]{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.p-indeterminate\\:before\\:absolute[data-p~=indeterminate]:before{content:var(--tw-content);position:absolute}.p-indeterminate\\:before\\:start-0[data-p~=indeterminate]:before{content:var(--tw-content);inset-inline-start:calc(var(--spacing)*0)}.p-indeterminate\\:before\\:top-0[data-p~=indeterminate]:before{content:var(--tw-content);top:calc(var(--spacing)*0)}.p-indeterminate\\:before\\:bottom-0[data-p~=indeterminate]:before{bottom:calc(var(--spacing)*0);content:var(--tw-content)}.p-indeterminate\\:before\\:animate-\\[p-progressbar-indeterminate-anim_2\\.1s_cubic-bezier\\(0\\.65\\,0\\.815\\,0\\.735\\,0\\.395\\)_infinite\\][data-p~=indeterminate]:before{animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite;content:var(--tw-content)}.p-indeterminate\\:before\\:bg-inherit[data-p~=indeterminate]:before{background-color:inherit;content:var(--tw-content)}.p-indeterminate\\:before\\:will-change-\\[inset-inline-start\\,inset-inline-end\\][data-p~=indeterminate]:before{content:var(--tw-content);will-change:inset-inline-start,inset-inline-end}.p-indeterminate\\:before\\:content-\\[\\'\\'\\][data-p~=indeterminate]:before{--tw-content:"";content:var(--tw-content)}.p-indeterminate\\:after\\:absolute[data-p~=indeterminate]:after{content:var(--tw-content);position:absolute}.p-indeterminate\\:after\\:start-0[data-p~=indeterminate]:after{content:var(--tw-content);inset-inline-start:calc(var(--spacing)*0)}.p-indeterminate\\:after\\:top-0[data-p~=indeterminate]:after{content:var(--tw-content);top:calc(var(--spacing)*0)}.p-indeterminate\\:after\\:bottom-0[data-p~=indeterminate]:after{bottom:calc(var(--spacing)*0);content:var(--tw-content)}.p-indeterminate\\:after\\:animate-\\[p-progressbar-indeterminate-anim-short_2\\.1s_cubic-bezier\\(0\\.165\\,0\\.84\\,0\\.44\\,1\\)_infinite\\][data-p~=indeterminate]:after{animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;content:var(--tw-content)}.p-indeterminate\\:after\\:bg-inherit[data-p~=indeterminate]:after{background-color:inherit;content:var(--tw-content)}.p-indeterminate\\:after\\:will-change-\\[inset-inline-start\\,inset-inline-end\\][data-p~=indeterminate]:after{content:var(--tw-content);will-change:inset-inline-start,inset-inline-end}.p-indeterminate\\:after\\:content-\\[\\'\\'\\][data-p~=indeterminate]:after{--tw-content:"";content:var(--tw-content)}.p-icon-only\\:invisible[data-p~=icon-only]{visibility:hidden}.p-icon-only\\:w-0[data-p~=icon-only]{width:calc(var(--spacing)*0)}.p-icon-only\\:w-10[data-p~=icon-only]{width:calc(var(--spacing)*10)}.p-icon-only\\:gap-0[data-p~=icon-only]{gap:calc(var(--spacing)*0)}.p-icon-only\\:px-0[data-p~=icon-only]{padding-inline:calc(var(--spacing)*0)}.p-fluid\\:p-icon-only\\:w-10[data-p~=fluid][data-p~=icon-only]{width:calc(var(--spacing)*10)}.p-rounded\\:rounded-\\[2rem\\][data-p~=rounded]{border-radius:28px}.p-icon-only\\:p-rounded\\:h-10[data-p~=icon-only][data-p~=rounded]{height:calc(var(--spacing)*10)}.p-icon-only\\:p-rounded\\:rounded-full[data-p~=icon-only][data-p~=rounded]{border-radius:3.40282e+38px}.p-raised\\:shadow-sm[data-p~=raised]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.p-solid\\:before\\:border-solid[data-p~=solid]:before{content:var(--tw-content);--tw-border-style:solid;border-style:solid}.p-dashed\\:before\\:border-dashed[data-p~=dashed]:before{content:var(--tw-content);--tw-border-style:dashed;border-style:dashed}.p-dotted\\:before\\:border-dotted[data-p~=dotted]:before{content:var(--tw-content);--tw-border-style:dotted;border-style:dotted}.p-secondary\\:bg-surface-100[data-p~=secondary]{background-color:var(--p-surface-100)}.p-secondary\\:text-surface-600[data-p~=secondary]{color:var(--p-surface-600)}.dark\\:p-secondary\\:bg-surface-800:where(.dark,.dark *)[data-p~=secondary]{background-color:var(--p-surface-800)}.dark\\:p-secondary\\:text-surface-300:where(.dark,.dark *)[data-p~=secondary]{color:var(--p-surface-300)}.p-contrast\\:bg-surface-950[data-p~=contrast]{background-color:var(--p-surface-950)}.p-contrast\\:text-white[data-p~=contrast]{color:var(--color-white)}.dark\\:p-contrast\\:bg-white:where(.dark,.dark *)[data-p~=contrast]{background-color:var(--color-white)}.dark\\:p-contrast\\:text-surface-950:where(.dark,.dark *)[data-p~=contrast]{color:var(--p-surface-950)}.p-success\\:bg-green-500[data-p~=success]{background-color:var(--color-green-500)}.p-success\\:text-white[data-p~=success]{color:var(--color-white)}.dark\\:p-success\\:bg-green-400:where(.dark,.dark *)[data-p~=success]{background-color:var(--color-green-400)}.dark\\:p-success\\:text-green-950:where(.dark,.dark *)[data-p~=success]{color:var(--color-green-950)}.p-info\\:bg-sky-500[data-p~=info]{background-color:var(--color-sky-500)}.p-info\\:text-white[data-p~=info]{color:var(--color-white)}.dark\\:p-info\\:bg-sky-400:where(.dark,.dark *)[data-p~=info]{background-color:var(--color-sky-400)}.dark\\:p-info\\:text-sky-950:where(.dark,.dark *)[data-p~=info]{color:var(--color-sky-950)}.p-warn\\:bg-orange-500[data-p~=warn]{background-color:var(--color-orange-500)}.p-warn\\:text-white[data-p~=warn]{color:var(--color-white)}.dark\\:p-warn\\:bg-orange-400:where(.dark,.dark *)[data-p~=warn]{background-color:var(--color-orange-400)}.dark\\:p-warn\\:text-orange-950:where(.dark,.dark *)[data-p~=warn]{color:var(--color-orange-950)}.p-danger\\:bg-red-500[data-p~=danger]{background-color:var(--color-red-500)}.p-danger\\:text-white[data-p~=danger]{color:var(--color-white)}.dark\\:p-danger\\:bg-red-400:where(.dark,.dark *)[data-p~=danger]{background-color:var(--color-red-400)}.dark\\:p-danger\\:text-red-950:where(.dark,.dark *)[data-p~=danger]{color:var(--color-red-950)}.p-outlined\\:border-primary-200[data-p~=outlined]{border-color:var(--p-primary-200)}.p-outlined\\:border-red-200[data-p~=outlined]{border-color:var(--color-red-200)}.p-outlined\\:border-surface-200[data-p~=outlined]{border-color:var(--p-surface-200)}.p-outlined\\:border-surface-700[data-p~=outlined]{border-color:var(--p-surface-700)}.p-outlined\\:bg-transparent[data-p~=outlined]{background-color:#0000}.p-outlined\\:text-primary[data-p~=outlined]{color:var(--p-primary-color)}.p-outlined\\:text-red-500[data-p~=outlined]{color:var(--color-red-500)}.p-outlined\\:text-surface-500[data-p~=outlined]{color:var(--p-surface-500)}.p-outlined\\:text-surface-950[data-p~=outlined]{color:var(--p-surface-950)}@media(hover:hover){.enabled\\:hover\\:p-outlined\\:border-primary-200:enabled:hover[data-p~=outlined]{border-color:var(--p-primary-200)}.enabled\\:hover\\:p-outlined\\:border-red-200:enabled:hover[data-p~=outlined]{border-color:var(--color-red-200)}.enabled\\:hover\\:p-outlined\\:border-surface-200:enabled:hover[data-p~=outlined]{border-color:var(--p-surface-200)}.enabled\\:hover\\:p-outlined\\:border-surface-700:enabled:hover[data-p~=outlined]{border-color:var(--p-surface-700)}.enabled\\:hover\\:p-outlined\\:bg-primary-50:enabled:hover[data-p~=outlined]{background-color:var(--p-primary-50)}.enabled\\:hover\\:p-outlined\\:bg-red-50:enabled:hover[data-p~=outlined]{background-color:var(--color-red-50)}.enabled\\:hover\\:p-outlined\\:bg-surface-50:enabled:hover[data-p~=outlined]{background-color:var(--p-surface-50)}.enabled\\:hover\\:p-outlined\\:text-primary:enabled:hover[data-p~=outlined]{color:var(--p-primary-color)}.enabled\\:hover\\:p-outlined\\:text-red-500:enabled:hover[data-p~=outlined]{color:var(--color-red-500)}.enabled\\:hover\\:p-outlined\\:text-surface-500:enabled:hover[data-p~=outlined]{color:var(--p-surface-500)}.enabled\\:hover\\:p-outlined\\:text-surface-950:enabled:hover[data-p~=outlined]{color:var(--p-surface-950)}}.enabled\\:active\\:p-outlined\\:border-primary-200:enabled:active[data-p~=outlined]{border-color:var(--p-primary-200)}.enabled\\:active\\:p-outlined\\:border-red-200:enabled:active[data-p~=outlined]{border-color:var(--color-red-200)}.enabled\\:active\\:p-outlined\\:border-surface-200:enabled:active[data-p~=outlined]{border-color:var(--p-surface-200)}.enabled\\:active\\:p-outlined\\:border-surface-700:enabled:active[data-p~=outlined]{border-color:var(--p-surface-700)}.enabled\\:active\\:p-outlined\\:bg-primary-100:enabled:active[data-p~=outlined]{background-color:var(--p-primary-100)}.enabled\\:active\\:p-outlined\\:bg-red-100:enabled:active[data-p~=outlined]{background-color:var(--color-red-100)}.enabled\\:active\\:p-outlined\\:bg-surface-100:enabled:active[data-p~=outlined]{background-color:var(--p-surface-100)}.enabled\\:active\\:p-outlined\\:text-primary:enabled:active[data-p~=outlined]{color:var(--p-primary-color)}.enabled\\:active\\:p-outlined\\:text-red-500:enabled:active[data-p~=outlined]{color:var(--color-red-500)}.enabled\\:active\\:p-outlined\\:text-surface-500:enabled:active[data-p~=outlined]{color:var(--p-surface-500)}.enabled\\:active\\:p-outlined\\:text-surface-950:enabled:active[data-p~=outlined]{color:var(--p-surface-950)}.dark\\:p-outlined\\:border-primary-700:where(.dark,.dark *)[data-p~=outlined]{border-color:var(--p-primary-700)}.dark\\:p-outlined\\:border-red-700:where(.dark,.dark *)[data-p~=outlined]{border-color:var(--color-red-700)}.dark\\:p-outlined\\:border-surface-500:where(.dark,.dark *)[data-p~=outlined]{border-color:var(--p-surface-500)}.dark\\:p-outlined\\:border-surface-700:where(.dark,.dark *)[data-p~=outlined]{border-color:var(--p-surface-700)}.dark\\:p-outlined\\:bg-transparent:where(.dark,.dark *)[data-p~=outlined]{background-color:#0000}.dark\\:p-outlined\\:text-primary:where(.dark,.dark *)[data-p~=outlined]{color:var(--p-primary-color)}.dark\\:p-outlined\\:text-red-400:where(.dark,.dark *)[data-p~=outlined]{color:var(--color-red-400)}.dark\\:p-outlined\\:text-surface-0:where(.dark,.dark *)[data-p~=outlined]{color:var(--p-surface-0)}.dark\\:p-outlined\\:text-surface-400:where(.dark,.dark *)[data-p~=outlined]{color:var(--p-surface-400)}@media(hover:hover){.dark\\:enabled\\:hover\\:p-outlined\\:border-primary-700:where(.dark,.dark *):enabled:hover[data-p~=outlined]{border-color:var(--p-primary-700)}.dark\\:enabled\\:hover\\:p-outlined\\:border-red-700:where(.dark,.dark *):enabled:hover[data-p~=outlined]{border-color:var(--color-red-700)}.dark\\:enabled\\:hover\\:p-outlined\\:border-surface-500:where(.dark,.dark *):enabled:hover[data-p~=outlined]{border-color:var(--p-surface-500)}.dark\\:enabled\\:hover\\:p-outlined\\:border-surface-700:where(.dark,.dark *):enabled:hover[data-p~=outlined]{border-color:var(--p-surface-700)}.dark\\:enabled\\:hover\\:p-outlined\\:bg-primary\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:hover\\:p-outlined\\:bg-primary\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:color-mix(in oklab,var(--p-primary-color)5%,transparent)}}.dark\\:enabled\\:hover\\:p-outlined\\:bg-red-400\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:#ff65680d}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:hover\\:p-outlined\\:bg-red-400\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:color-mix(in oklab,var(--color-red-400)5%,transparent)}}.dark\\:enabled\\:hover\\:p-outlined\\:bg-surface-800:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:var(--p-surface-800)}.dark\\:enabled\\:hover\\:p-outlined\\:bg-white\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:hover\\:p-outlined\\:bg-white\\/5:where(.dark,.dark *):enabled:hover[data-p~=outlined]{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\\:enabled\\:hover\\:p-outlined\\:text-primary:where(.dark,.dark *):enabled:hover[data-p~=outlined]{color:var(--p-primary-color)}.dark\\:enabled\\:hover\\:p-outlined\\:text-red-400:where(.dark,.dark *):enabled:hover[data-p~=outlined]{color:var(--color-red-400)}.dark\\:enabled\\:hover\\:p-outlined\\:text-surface-0:where(.dark,.dark *):enabled:hover[data-p~=outlined]{color:var(--p-surface-0)}.dark\\:enabled\\:hover\\:p-outlined\\:text-surface-400:where(.dark,.dark *):enabled:hover[data-p~=outlined]{color:var(--p-surface-400)}}.dark\\:enabled\\:active\\:p-outlined\\:border-primary-700:where(.dark,.dark *):enabled:active[data-p~=outlined]{border-color:var(--p-primary-700)}.dark\\:enabled\\:active\\:p-outlined\\:border-red-700:where(.dark,.dark *):enabled:active[data-p~=outlined]{border-color:var(--color-red-700)}.dark\\:enabled\\:active\\:p-outlined\\:border-surface-500:where(.dark,.dark *):enabled:active[data-p~=outlined]{border-color:var(--p-surface-500)}.dark\\:enabled\\:active\\:p-outlined\\:border-surface-700:where(.dark,.dark *):enabled:active[data-p~=outlined]{border-color:var(--p-surface-700)}.dark\\:enabled\\:active\\:p-outlined\\:bg-primary\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:active\\:p-outlined\\:bg-primary\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:color-mix(in oklab,var(--p-primary-color)15%,transparent)}}.dark\\:enabled\\:active\\:p-outlined\\:bg-red-400\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:#ff656826}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:active\\:p-outlined\\:bg-red-400\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:color-mix(in oklab,var(--color-red-400)15%,transparent)}}.dark\\:enabled\\:active\\:p-outlined\\:bg-surface-700:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:var(--p-surface-700)}.dark\\:enabled\\:active\\:p-outlined\\:bg-white\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:active\\:p-outlined\\:bg-white\\/15:where(.dark,.dark *):enabled:active[data-p~=outlined]{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\\:enabled\\:active\\:p-outlined\\:text-primary:where(.dark,.dark *):enabled:active[data-p~=outlined]{color:var(--p-primary-color)}.dark\\:enabled\\:active\\:p-outlined\\:text-red-400:where(.dark,.dark *):enabled:active[data-p~=outlined]{color:var(--color-red-400)}.dark\\:enabled\\:active\\:p-outlined\\:text-surface-0:where(.dark,.dark *):enabled:active[data-p~=outlined]{color:var(--p-surface-0)}.dark\\:enabled\\:active\\:p-outlined\\:text-surface-400:where(.dark,.dark *):enabled:active[data-p~=outlined]{color:var(--p-surface-400)}.p-text\\:border-transparent[data-p~=text]{border-color:#0000}.p-text\\:bg-transparent[data-p~=text]{background-color:#0000}.p-text\\:text-primary[data-p~=text]{color:var(--p-primary-color)}.p-text\\:text-red-500[data-p~=text]{color:var(--color-red-500)}.p-text\\:text-surface-500[data-p~=text]{color:var(--p-surface-500)}.p-text\\:text-surface-950[data-p~=text]{color:var(--p-surface-950)}@media(hover:hover){.enabled\\:hover\\:p-text\\:border-transparent:enabled:hover[data-p~=text]{border-color:#0000}.enabled\\:hover\\:p-text\\:bg-primary-50:enabled:hover[data-p~=text]{background-color:var(--p-primary-50)}.enabled\\:hover\\:p-text\\:bg-red-50:enabled:hover[data-p~=text]{background-color:var(--color-red-50)}.enabled\\:hover\\:p-text\\:bg-surface-50:enabled:hover[data-p~=text]{background-color:var(--p-surface-50)}.enabled\\:hover\\:p-text\\:text-primary:enabled:hover[data-p~=text]{color:var(--p-primary-color)}.enabled\\:hover\\:p-text\\:text-red-500:enabled:hover[data-p~=text]{color:var(--color-red-500)}.enabled\\:hover\\:p-text\\:text-surface-500:enabled:hover[data-p~=text]{color:var(--p-surface-500)}.enabled\\:hover\\:p-text\\:text-surface-950:enabled:hover[data-p~=text]{color:var(--p-surface-950)}}.enabled\\:active\\:p-text\\:border-transparent:enabled:active[data-p~=text]{border-color:#0000}.enabled\\:active\\:p-text\\:bg-primary-100:enabled:active[data-p~=text]{background-color:var(--p-primary-100)}.enabled\\:active\\:p-text\\:bg-red-100:enabled:active[data-p~=text]{background-color:var(--color-red-100)}.enabled\\:active\\:p-text\\:bg-surface-100:enabled:active[data-p~=text]{background-color:var(--p-surface-100)}.enabled\\:active\\:p-text\\:text-primary:enabled:active[data-p~=text]{color:var(--p-primary-color)}.enabled\\:active\\:p-text\\:text-red-500:enabled:active[data-p~=text]{color:var(--color-red-500)}.enabled\\:active\\:p-text\\:text-surface-500:enabled:active[data-p~=text]{color:var(--p-surface-500)}.enabled\\:active\\:p-text\\:text-surface-950:enabled:active[data-p~=text]{color:var(--p-surface-950)}.dark\\:p-text\\:border-transparent:where(.dark,.dark *)[data-p~=text]{border-color:#0000}.dark\\:p-text\\:bg-transparent:where(.dark,.dark *)[data-p~=text]{background-color:#0000}.dark\\:p-text\\:text-primary:where(.dark,.dark *)[data-p~=text]{color:var(--p-primary-color)}.dark\\:p-text\\:text-red-400:where(.dark,.dark *)[data-p~=text]{color:var(--color-red-400)}.dark\\:p-text\\:text-surface-0:where(.dark,.dark *)[data-p~=text]{color:var(--p-surface-0)}.dark\\:p-text\\:text-surface-400:where(.dark,.dark *)[data-p~=text]{color:var(--p-surface-400)}@media(hover:hover){.dark\\:enabled\\:hover\\:p-text\\:border-transparent:where(.dark,.dark *):enabled:hover[data-p~=text]{border-color:#0000}.dark\\:enabled\\:hover\\:p-text\\:bg-primary\\/5:where(.dark,.dark *):enabled:hover[data-p~=text]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:hover\\:p-text\\:bg-primary\\/5:where(.dark,.dark *):enabled:hover[data-p~=text]{background-color:color-mix(in oklab,var(--p-primary-color)5%,transparent)}}.dark\\:enabled\\:hover\\:p-text\\:bg-red-400\\/5:where(.dark,.dark *):enabled:hover[data-p~=text]{background-color:#ff65680d}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:hover\\:p-text\\:bg-red-400\\/5:where(.dark,.dark *):enabled:hover[data-p~=text]{background-color:color-mix(in oklab,var(--color-red-400)5%,transparent)}}.dark\\:enabled\\:hover\\:p-text\\:bg-surface-800:where(.dark,.dark *):enabled:hover[data-p~=text]{background-color:var(--p-surface-800)}.dark\\:enabled\\:hover\\:p-text\\:text-primary:where(.dark,.dark *):enabled:hover[data-p~=text]{color:var(--p-primary-color)}.dark\\:enabled\\:hover\\:p-text\\:text-red-400:where(.dark,.dark *):enabled:hover[data-p~=text]{color:var(--color-red-400)}.dark\\:enabled\\:hover\\:p-text\\:text-surface-0:where(.dark,.dark *):enabled:hover[data-p~=text]{color:var(--p-surface-0)}.dark\\:enabled\\:hover\\:p-text\\:text-surface-400:where(.dark,.dark *):enabled:hover[data-p~=text]{color:var(--p-surface-400)}}.dark\\:enabled\\:active\\:p-text\\:border-transparent:where(.dark,.dark *):enabled:active[data-p~=text]{border-color:#0000}.dark\\:enabled\\:active\\:p-text\\:bg-primary\\/15:where(.dark,.dark *):enabled:active[data-p~=text]{background-color:var(--p-primary-color)}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:active\\:p-text\\:bg-primary\\/15:where(.dark,.dark *):enabled:active[data-p~=text]{background-color:color-mix(in oklab,var(--p-primary-color)15%,transparent)}}.dark\\:enabled\\:active\\:p-text\\:bg-red-400\\/15:where(.dark,.dark *):enabled:active[data-p~=text]{background-color:#ff656826}@supports (color:color-mix(in lab,red,red)){.dark\\:enabled\\:active\\:p-text\\:bg-red-400\\/15:where(.dark,.dark *):enabled:active[data-p~=text]{background-color:color-mix(in oklab,var(--color-red-400)15%,transparent)}}.dark\\:enabled\\:active\\:p-text\\:bg-surface-700:where(.dark,.dark *):enabled:active[data-p~=text]{background-color:var(--p-surface-700)}.dark\\:enabled\\:active\\:p-text\\:text-primary:where(.dark,.dark *):enabled:active[data-p~=text]{color:var(--p-primary-color)}.dark\\:enabled\\:active\\:p-text\\:text-red-400:where(.dark,.dark *):enabled:active[data-p~=text]{color:var(--color-red-400)}.dark\\:enabled\\:active\\:p-text\\:text-surface-0:where(.dark,.dark *):enabled:active[data-p~=text]{color:var(--p-surface-0)}.dark\\:enabled\\:active\\:p-text\\:text-surface-400:where(.dark,.dark *):enabled:active[data-p~=text]{color:var(--p-surface-400)}.p-maximized\\:top-0[data-p~=maximized]{top:calc(var(--spacing)*0)}.p-maximized\\:h-screen[data-p~=maximized]{height:100vh}.p-maximized\\:w-screen[data-p~=maximized]{width:100vw}.p-maximized\\:grow[data-p~=maximized]{flex-grow:1}.p-maximized\\:rounded-none[data-p~=maximized]{border-radius:0}.p-modal\\:fixed[data-p~=modal]{position:fixed}.p-modal\\:start-0[data-p~=modal]{inset-inline-start:calc(var(--spacing)*0)}.p-modal\\:top-0[data-p~=modal]{top:calc(var(--spacing)*0)}.p-modal\\:h-full[data-p~=modal]{height:100%}.p-modal\\:w-full[data-p~=modal]{width:100%}.p-modal\\:bg-black\\/50[data-p~=modal]{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.p-modal\\:bg-black\\/50[data-p~=modal]{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.p-flipped\\:-mt-\\[10px\\][data-p-popover-flipped~=true]{margin-top:-10px}.p-flipped\\:mb-\\[10px\\][data-p-popover-flipped~=true]{margin-bottom:10px}.p-flipped\\:before\\:top-full[data-p-popover-flipped~=true]:before{content:var(--tw-content);top:100%}.p-flipped\\:before\\:bottom-auto[data-p-popover-flipped~=true]:before{bottom:auto;content:var(--tw-content)}.p-flipped\\:before\\:border-t-surface-200[data-p-popover-flipped~=true]:before{border-top-color:var(--p-surface-200);content:var(--tw-content)}.p-flipped\\:before\\:border-b-transparent[data-p-popover-flipped~=true]:before{border-bottom-color:#0000;content:var(--tw-content)}.p-flipped\\:after\\:top-full[data-p-popover-flipped~=true]:after{content:var(--tw-content);top:100%}.p-flipped\\:after\\:bottom-auto[data-p-popover-flipped~=true]:after{bottom:auto;content:var(--tw-content)}.p-flipped\\:after\\:border-t-surface-0[data-p-popover-flipped~=true]:after{border-top-color:var(--p-surface-0);content:var(--tw-content)}.p-flipped\\:after\\:border-b-transparent[data-p-popover-flipped~=true]:after{border-bottom-color:#0000;content:var(--tw-content)}.dark\\:p-flipped\\:before\\:border-t-surface-700:where(.dark,.dark *)[data-p-popover-flipped~=true]:before{border-top-color:var(--p-surface-700);content:var(--tw-content)}.dark\\:p-flipped\\:after\\:border-t-surface-900:where(.dark,.dark *)[data-p-popover-flipped~=true]:after{border-top-color:var(--p-surface-900);content:var(--tw-content)}.p-nested\\:grow[data-p~=nested]{flex-grow:1}.p-nested\\:border-none[data-p~=nested]{--tw-border-style:none;border-style:none}.p-weak\\:bg-red-500[data-p~=weak]{background-color:var(--color-red-500)}.dark\\:p-weak\\:bg-red-400:where(.dark,.dark *)[data-p~=weak]{background-color:var(--color-red-400)}.p-medium\\:bg-amber-500[data-p~=medium]{background-color:var(--color-amber-500)}.dark\\:p-medium\\:bg-amber-400:where(.dark,.dark *)[data-p~=medium]{background-color:var(--color-amber-400)}.p-strong\\:bg-green-500[data-p~=strong]{background-color:var(--color-green-500)}.dark\\:p-strong\\:bg-green-400:where(.dark,.dark *)[data-p~=strong]{background-color:var(--color-green-400)}.p-portal-self\\:min-w-full[data-p~=portal-self]{min-width:100%}.p-has-e-icon\\:pe-10[data-p-has-e-icon~=true]{padding-inline-end:calc(var(--spacing)*10)}.p-popup\\:shadow-\\[0_4px_6px_-1px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\,0_2px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\][data-p~=popup]{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.p-placeholder\\:text-surface-500::placeholder,.p-placeholder\\:text-surface-500[data-p~=placeholder]{color:var(--p-surface-500)}.dark\\:p-placeholder\\:text-surface-400:where(.dark,.dark *)::placeholder,.dark\\:p-placeholder\\:text-surface-400:where(.dark,.dark *)[data-p~=placeholder]{color:var(--p-surface-400)}.p-clearable\\:pe-7[data-p~=clearable]{padding-inline-end:calc(var(--spacing)*7)}.p-editable\\:cursor-default[data-p~=editable]{cursor:default}.\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:border-red-200[data-p=error]{border-color:var(--color-red-200)}.\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-red-50\\)\\,transparent_5\\%\\)\\][data-p=error]{background-color:#fef2f2f2}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-red-50\\)\\,transparent_5\\%\\)\\][data-p=error]{background-color:color-mix(in srgb,var(--color-red-50),transparent 5%)}}.\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:text-red-500[data-p=error]{color:var(--color-red-500)}.\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:text-red-600[data-p=error]{color:var(--color-red-600)}.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-red-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=error]{border-color:#bf000f5c}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-red-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=error]{border-color:color-mix(in srgb,var(--color-red-700),transparent 64%)}}.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-red-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=error]{background-color:#fb2c3629}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-red-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=error]{background-color:color-mix(in srgb,var(--color-red-500),transparent 84%)}}.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:text-red-400:where(.dark,.dark *)[data-p=error]{color:var(--color-red-400)}.dark\\:\\[\\&\\[data-p\\=\\"error\\"\\]\\]\\:text-red-500:where(.dark,.dark *)[data-p=error]{color:var(--color-red-500)}.\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:border-blue-200[data-p=info]{border-color:var(--color-blue-200)}.\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-50\\)\\,transparent_5\\%\\)\\][data-p=info]{background-color:#eff6fff2}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-50\\)\\,transparent_5\\%\\)\\][data-p=info]{background-color:color-mix(in srgb,var(--color-blue-50),transparent 5%)}}.\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:text-blue-500[data-p=info]{color:var(--color-blue-500)}.\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:text-blue-600[data-p=info]{color:var(--color-blue-600)}.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-blue-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=info]{border-color:#1447e65c}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-blue-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=info]{border-color:color-mix(in srgb,var(--color-blue-700),transparent 64%)}}.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=info]{background-color:#3080ff29}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-blue-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=info]{background-color:color-mix(in srgb,var(--color-blue-500),transparent 84%)}}.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:text-blue-400:where(.dark,.dark *)[data-p=info]{color:var(--color-blue-400)}.dark\\:\\[\\&\\[data-p\\=\\"info\\"\\]\\]\\:text-blue-500:where(.dark,.dark *)[data-p=info]{color:var(--color-blue-500)}.\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:border-green-200[data-p=success]{border-color:var(--color-green-200)}.\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-green-50\\)\\,transparent_5\\%\\)\\][data-p=success]{background-color:#f0fdf4f2}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-green-50\\)\\,transparent_5\\%\\)\\][data-p=success]{background-color:color-mix(in srgb,var(--color-green-50),transparent 5%)}}.\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:text-green-500[data-p=success]{color:var(--color-green-500)}.\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:text-green-600[data-p=success]{color:var(--color-green-600)}.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-green-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=success]{border-color:#0081385c}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-green-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=success]{border-color:color-mix(in srgb,var(--color-green-700),transparent 64%)}}.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-green-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=success]{background-color:#00c75829}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-green-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=success]{background-color:color-mix(in srgb,var(--color-green-500),transparent 84%)}}.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:text-green-400:where(.dark,.dark *)[data-p=success]{color:var(--color-green-400)}.dark\\:\\[\\&\\[data-p\\=\\"success\\"\\]\\]\\:text-green-500:where(.dark,.dark *)[data-p=success]{color:var(--color-green-500)}.\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:border-yellow-200[data-p=warn]{border-color:var(--color-yellow-200)}.\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-50\\)\\,transparent_5\\%\\)\\][data-p=warn]{background-color:#fefce8f2}@supports (color:color-mix(in lab,red,red)){.\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-50\\)\\,transparent_5\\%\\)\\][data-p=warn]{background-color:color-mix(in srgb,var(--color-yellow-50),transparent 5%)}}.\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:text-yellow-500[data-p=warn]{color:var(--color-yellow-500)}.\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:text-yellow-600[data-p=warn]{color:var(--color-yellow-600)}.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=warn]{border-color:#a361005c}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:border-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-700\\)\\,transparent_64\\%\\)\\]:where(.dark,.dark *)[data-p=warn]{border-color:color-mix(in srgb,var(--color-yellow-700),transparent 64%)}}.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=warn]{background-color:#edb20029}@supports (color:color-mix(in lab,red,red)){.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:bg-\\[color-mix\\(in_srgb\\,var\\(--color-yellow-500\\)\\,transparent_84\\%\\)\\]:where(.dark,.dark *)[data-p=warn]{background-color:color-mix(in srgb,var(--color-yellow-500),transparent 84%)}}.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:text-yellow-400:where(.dark,.dark *)[data-p=warn]{color:var(--color-yellow-400)}.dark\\:\\[\\&\\[data-p\\=\\"warn\\"\\]\\]\\:text-yellow-500:where(.dark,.dark *)[data-p=warn]{color:var(--color-yellow-500)}}@layer keyframes{@keyframes enter{0%{opacity:var(--p-enter-opacity,1);transform:translate3d(var(--p-enter-translate-x,0),var(--p-enter-translate-y,0),0)scale3d(var(--p-enter-scale,1),var(--p-enter-scale,1),var(--p-enter-scale,1))rotate(var(--p-enter-rotate,0))}}@keyframes leave{to{opacity:var(--p-leave-opacity,1);transform:translate3d(var(--p-leave-translate-x,0),var(--p-leave-translate-y,0),0)scale3d(var(--p-leave-scale,1),var(--p-leave-scale,1),var(--p-leave-scale,1))rotate(var(--p-leave-rotate,0))}}@keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadeout{0%{opacity:1}to{opacity:0}}@keyframes infinite-scroll{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scalein{0%{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:1;transform:scaleY(1)}}@keyframes slidedown{0%{max-height:0}to{max-height:auto}}@keyframes slideup{0%{max-height:1000px}to{max-height:0}}@keyframes fadeinleft{0%{opacity:0;transform:translate(-100%);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:1;transform:translate(0)}}@keyframes fadeoutleft{0%{opacity:1;transform:translate(0);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:0;transform:translate(-100%)}}@keyframes fadeinright{0%{opacity:0;transform:translate(100%);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:1;transform:translate(0)}}@keyframes fadeoutright{0%{opacity:1;transform:translate(0);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:0;transform:translate(100%)}}@keyframes fadeinup{0%{opacity:0;transform:translateY(-100%);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:1;transform:translateY(0)}}@keyframes fadeoutup{0%{opacity:1;transform:translateY(0);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:0;transform:translateY(-100%)}}@keyframes fadeindown{0%{opacity:0;transform:translateY(100%);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:1;transform:translateY(0)}}@keyframes fadeoutdown{0%{opacity:1;transform:translateY(0);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}to{opacity:0;transform:translateY(100%)}}@keyframes width{0%{width:0}to{width:100%}}@keyframes flip{0%{transform:perspective(2000px)rotateX(-100deg)}to{transform:perspective(2000px)rotateX(0)}}@keyframes flipleft{0%{opacity:0;transform:perspective(2000px)rotateY(-100deg)}to{opacity:1;transform:perspective(2000px)rotateY(0)}}@keyframes flipright{0%{opacity:0;transform:perspective(2000px)rotateY(100deg)}to{opacity:1;transform:perspective(2000px)rotateY(0)}}@keyframes flipup{0%{opacity:0;transform:perspective(2000px)rotateX(-100deg)}to{opacity:1;transform:perspective(2000px)rotateX(0)}}@keyframes zoomin{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomindown{0%{opacity:0;transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;transform:scale3d(.475,.475,.475)translateY(60px)}}@keyframes zoominleft{0%{opacity:0;transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;transform:scale3d(.475,.475,.475)translate(10px)}}}:host,:root{--p-primary-50:#fff7ed;--p-primary-100:#ffedd5;--p-primary-200:#fed7aa;--p-primary-300:#fdba74;--p-primary-400:#fb923c;--p-primary-500:#ea712f;--p-primary-600:#d9480f;--p-primary-700:#b43409;--p-primary-800:#912408;--p-primary-900:#7c2108;--p-primary-950:#431404;--p-surface-0:#fff;--p-surface-50:#fafafa;--p-surface-100:#f4f4f5;--p-surface-200:#e4e4e7;--p-surface-300:#d4d4d8;--p-surface-400:#a1a1aa;--p-surface-500:#71717a;--p-surface-600:#52525b;--p-surface-700:#3f3f46;--p-surface-800:#27272a;--p-surface-900:#18181b;--p-surface-950:#09090b;--p-content-border-radius:6px;--p-primary-color:var(--p-primary-500);--p-primary-contrast-color:var(--p-surface-0);--p-primary-hover-color:var(--p-primary-600);--p-primary-active-color:var(--p-primary-700);--p-content-border-color:var(--p-surface-200);--p-content-hover-background:var(--p-surface-100);--p-content-hover-color:var(--p-surface-800);--p-highlight-background:var(--p-primary-50);--p-highlight-color:var(--p-primary-700);--p-highlight-focus-background:var(--p-primary-100);--p-highlight-focus-color:var(--p-primary-800);--p-text-color:var(--p-surface-700);--p-text-hover-color:var(--p-surface-800);--p-text-muted-color:var(--p-surface-500);--p-text-hover-muted-color:var(--p-surface-600)}.dark{--p-primary-color:var(--p-primary-400);--p-primary-contrast-color:var(--p-surface-900);--p-primary-hover-color:var(--p-primary-300);--p-primary-active-color:var(--p-primary-200);--p-content-border-color:var(--p-surface-700);--p-content-hover-background:var(--p-surface-800);--p-content-hover-color:var(--p-surface-0);--p-highlight-background:var(--p-primary-400)}@supports (color:color-mix(in lab,red,red)){.dark{--p-highlight-background:color-mix(in srgb,var(--p-primary-400),transparent 84%)}}.dark{--p-highlight-color:#ffffffde;--p-highlight-focus-background:var(--p-primary-400)}@supports (color:color-mix(in lab,red,red)){.dark{--p-highlight-focus-background:color-mix(in srgb,var(--p-primary-400),transparent 76%)}}.dark{--p-highlight-focus-color:#ffffffde;--p-text-color:var(--p-surface-0);--p-text-hover-color:var(--p-surface-0);--p-text-muted-color:var(--p-surface-400);--p-text-hover-muted-color:var(--p-surface-300)}[data-p-ink=true]{animation:none;background:var(--p-ripple-background,#0000001a);border-radius:50%;pointer-events:none;position:absolute;transform:scale(0);z-index:1}[data-p-ink-active=true]{animation:p-ripple-animation .6s linear!important}@keyframes p-ripple-animation{to{opacity:0;transform:scale(4)}}.p-ink,[data-p-ink=true]{animation:none;background:var(--p-ripple-background,#0000001a);border-radius:50%;pointer-events:none;position:absolute;transform:scale(0);z-index:1}.p-ink-active,[data-p-ink-active=true]{animation:p-ripple-animation .6s linear!important}.p-button,[v-ripple]{overflow:hidden;position:relative}.p-button:not(.p-button-text):not(.p-button-outlined):not(.p-button-link) [data-p-ink=true]{background:#ffffff4d}.p-button-link [data-p-ink=true],.p-button-outlined [data-p-ink=true],.p-button-text [data-p-ink=true]{background:#0000001a}.dark [data-p-ink=true]{background:#ffffff26}.dark .p-button:not(.p-button-text):not(.p-button-outlined):not(.p-button-link) [data-p-ink=true]{background:#ffffff40}.p-ripple-primary [data-p-ink=true]{--p-ripple-background:#3b82f64d}.p-ripple-success [data-p-ink=true]{--p-ripple-background:#22c55e4d}.p-ripple-warning [data-p-ink=true]{--p-ripple-background:#f59e0b4d}.p-ripple-danger [data-p-ink=true]{--p-ripple-background:#ef44444d}.p-ripple-brand [data-p-ink=true]{--p-ripple-background:#ea712f4d}.p-disabled [data-p-ink=true],.p-disabled [v-ripple]{animation:none!important}.p-checkbox-box,.p-menuitem,.p-radiobutton-box,.p-selectbutton-button,.p-speeddial-action,.p-tieredmenu-item,.p-togglebutton{overflow:hidden;position:relative}.ripple-light [data-p-ink=true]{--p-ripple-background:#ffffff4d}.ripple-dark [data-p-ink=true]{--p-ripple-background:#0003}.ripple-fast [data-p-ink-active=true]{animation-duration:.4s!important}.ripple-slow [data-p-ink-active=true]{animation-duration:.8s!important}.no-ripple [v-ripple]{overflow:visible}.no-ripple [data-p-ink=true]{display:none}:host,:root{interpolate-size:allow-keywords}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(1turn)}}`;
   importCSS(styleCss);
   const styling = exports("styling", new UserscriptStyling());
   const load = () => {
    const loadStyleElement = (() => {
     const index = {};
     return loadStyleElement2;
     function loadStyleElement2(style, name) {
      const i = Object.hasOwn(index, name) ? ++index[name] : (index[name] = 0);
      styling.setStyle(`__${name}[${i}]__`, style.innerHTML);
      style.remove();
     }
    })();
    {
     const importedStyles = window._importedStyles;
     importedStyles.forEach((css, i) => styling.setStyle(`__imported[${i}]__`, css));
    }
    detectDom({selector: "style[data-primevue-style-id]", callback: (style) => loadStyleElement(style, "prime_vue")});
   };
   document.readyState === "loading" ? addEventListener.call(document, "DOMContentLoaded", load, {once: true}) : load();
  },
 };
});

System.import("./__entry.js", "./");