From 8cb00637462561e9b7384984a379ce7edabea6d0 Mon Sep 17 00:00:00 2001 From: Physton Date: Sun, 25 Jun 2023 01:04:45 +0800 Subject: [PATCH] updated translation interface configuration page text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新翻译接口配置页面文字 --- i18n.json | 87 ++++++++++++++----------- javascript/main.entry.js | 20 +++--- javascript/main.entry.js.map | 2 +- src/src/components/translateSetting.vue | 1 + translate_apis.json | 4 ++ 5 files changed, 66 insertions(+), 48 deletions(-) diff --git a/i18n.json b/i18n.json index 6dab878..47ea399 100644 --- a/i18n.json +++ b/i18n.json @@ -122,11 +122,12 @@ "switch_to_dark_theme": "切换到深色主题", "offline_api": "离线翻译", "initialize": "初始化", - "initialize_finished": "初始化完成", - "initialize_failed": "初始化失败", + "initialize_finished": "初始化完成!", + "initialize_failed": "初始化失败!", "model_not_initialized": "模型未初始化", "model_is_loading": "模型正在加载中...", - "download_model_desc": "

如果以前未下载过模型,程序将从 Hugging Face 自动下载模型。

模型有几G大小,对网络环境要求较高。

下载时间较长,请耐心等待,如果下载失败,请重新初始化。

你可以前往控制台查看详细日志和进度。

模型文件将下载到目录:extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

如果以前未下载过模型,程序将从 Hugging Face 自动下载模型。

模型有几G大小,对网络环境要求较高。

下载时间较长,请耐心等待,如果下载失败,请重新初始化。

你可以前往控制台查看详细日志和进度。

模型文件将下载到目录:extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

如果你没有较好的网络环境,或者需要离线下载,请查看:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/zh-CN/OfflineTranslation.html

" } }, { @@ -250,11 +251,12 @@ "switch_to_dark_theme": "切換到深色主題", "offline_api": "離線翻譯", "initialize": "初始化", - "initialize_finished": "初始化完成", - "initialize_failed": "初始化失敗", + "initialize_finished": "初始化完成!", + "initialize_failed": "初始化失敗!", "model_not_initialized": "模型未初始化", "model_is_loading": "模型正在載入中...", - "download_model_desc": "

如果以前未下載過模型,程式將從 Hugging Face 自動下載模型。

模型有幾G大小,對網絡環境要求較高。

下載時間較長,請耐心等待,如果下載失敗,請重新初始化。

你可以前往控制台查看詳細日誌和進度。

模型文件將下載到目錄:extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

如果以前未下載過模型,程式將從 Hugging Face 自動下載模型。

模型有幾G大小,對網絡環境要求較高。

下載時間較長,請耐心等待,如果下載失敗,請重新初始化。

你可以前往控制台查看詳細日誌和進度。

模型文件將下載到目錄:extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

如果你沒有較好的網絡環境,或者需要離線下載,請查看:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/zh-TW/OfflineTranslation.html

" } }, { @@ -378,11 +380,12 @@ "switch_to_dark_theme": "切換到深色主題", "offline_api": "離線翻譯", "initialize": "初始化", - "initialize_finished": "初始化完成", - "initialize_failed": "初始化失敗", + "initialize_finished": "初始化完成!", + "initialize_failed": "初始化失敗!", "model_not_initialized": "模型未初始化", "model_is_loading": "模型正在載入中...", - "download_model_desc": "

如果以前未下載過模型,程式將從 Hugging Face 自動下載模型。

模型有幾G大小,對網絡環境要求較高。

下載時間較長,請耐心等待,如果下載失敗,請重新初始化。

你可以前往控制台查看詳細日誌和進度。

模型檔案將下載到目錄:extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

如果以前未下載過模型,程式將從 Hugging Face 自動下載模型。

模型有幾G大小,對網絡環境要求較高。

下載時間較長,請耐心等待,如果下載失敗,請重新初始化。

你可以前往控制台查看詳細日誌和進度。

模型檔案將下載到目錄:extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

如果你沒有較好的網絡環境,或者需要離線下載,請查看:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/zh-TW/OfflineTranslation.html

" } }, { @@ -506,11 +509,12 @@ "switch_to_dark_theme": "Switch to Dark Theme", "offline_api": "Offline Translation", "initialize": "Initialize", - "initialize_finished": "Initialization Finished", - "initialize_failed": "Initialization Failed", + "initialize_finished": "Initialization Finished!", + "initialize_failed": "Initialization Failed!", "model_not_initialized": "Model Not Initialized", "model_is_loading": "Model is Loading...", - "download_model_desc": "

If the model has not been downloaded before, the program will automatically download the model from Hugging Face.

The model is several gigabytes in size and requires a high-speed internet connection.

The download may take a while, please be patient. If the download fails, please reinitialize.

You can check detailed logs and progress in the console.

The model files will be downloaded to the directory: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

If the model has not been downloaded before, the program will automatically download the model from Hugging Face.

The model is several gigabytes in size and requires a high-speed internet connection.

The download may take a while, please be patient. If the download fails, please reinitialize.

You can check detailed logs and progress in the console.

The model files will be downloaded to the directory: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

If you do not have a good network environment or need to download offline, please view:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -649,7 +653,8 @@ "initialize_failed": "فشل في التهيئة", "model_not_initialized": "النموذج غير مهيأ", "model_is_loading": "جاري تحميل النموذج...", - "download_model_desc": "

إذا لم يتم تنزيل النموذج من قبل، سيقوم البرنامج بتنزيل النموذج تلقائيًا من Hugging Face.

النموذج بحجم عدة جيجابايت ويتطلب اتصال إنترنت عالي السرعة.

قد يستغرق التنزيل وقتًا طويلاً، يرجى الانتظار بصبر. إذا فشل التنزيل، يُرجى إعادة التهيئة.

يمكنك التحقق من السجلات والتقدم التفصيلي في وحدة التحكم.

سيتم تنزيل ملفات النموذج إلى الدليل: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

إذا لم يتم تنزيل النموذج من قبل، سيقوم البرنامج بتنزيل النموذج تلقائيًا من Hugging Face.

النموذج بحجم عدة جيجابايت ويتطلب اتصال إنترنت عالي السرعة.

قد يستغرق التنزيل وقتًا طويلاً، يرجى الانتظار بصبر. إذا فشل التنزيل، يُرجى إعادة التهيئة.

يمكنك التحقق من السجلات والتقدم التفصيلي في وحدة التحكم.

سيتم تنزيل ملفات النموذج إلى الدليل: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

إذا لم يكن لديك بيئة شبكة جيدة أو إذا كنت بحاجة إلى التنزيل دون اتصال، يرجى التحقق:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -872,11 +877,12 @@ "switch_to_dark_theme": "Passer au thème sombre", "offline_api": "Traduction hors ligne", "initialize": "Initialiser", - "initialize_finished": "Initialisation terminée", - "initialize_failed": "Échec de l'initialisation", + "initialize_finished": "Initialisation terminée!", + "initialize_failed": "Échec de l'initialisation!", "model_not_initialized": "Modèle non initialisé", "model_is_loading": "Chargement du modèle en cours...", - "download_model_desc": "

Si le modèle n'a pas été téléchargé auparavant, le programme le téléchargera automatiquement depuis Hugging Face.

Le modèle est de plusieurs gigaoctets et nécessite une connexion Internet haut débit.

Le téléchargement peut prendre un certain temps, veuillez patienter. Si le téléchargement échoue, veuillez réinitialiser.

Vous pouvez consulter les journaux détaillés et l'avancement dans la console.

Les fichiers du modèle seront téléchargés dans le répertoire : extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Si le modèle n'a pas été téléchargé auparavant, le programme le téléchargera automatiquement depuis Hugging Face.

Le modèle est de plusieurs gigaoctets et nécessite une connexion Internet haut débit.

Le téléchargement peut prendre un certain temps, veuillez patienter. Si le téléchargement échoue, veuillez réinitialiser.

Vous pouvez consulter les journaux détaillés et l'avancement dans la console.

Les fichiers du modèle seront téléchargés dans le répertoire : extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Si vous n'avez pas un bon environnement réseau ou si vous avez besoin de télécharger hors ligne, veuillez vérifier :

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1014,11 +1020,12 @@ "switch_to_dark_theme": "Zum dunklen Thema wechseln", "offline_api": "Offline-Übersetzung", "initialize": "Initialisieren", - "initialize_finished": "Initialisierung abgeschlossen", - "initialize_failed": "Initialisierung fehlgeschlagen", + "initialize_finished": "Initialisierung abgeschlossen!", + "initialize_failed": "Initialisierung fehlgeschlagen!", "model_not_initialized": "Modell nicht initialisiert", "model_is_loading": "Modell wird geladen...", - "download_model_desc": "

Wenn das Modell zuvor nicht heruntergeladen wurde, lädt das Programm das Modell automatisch von Hugging Face herunter.

Das Modell ist mehrere Gigabyte groß und erfordert eine schnelle Internetverbindung.

Der Download kann eine Weile dauern, bitte haben Sie Geduld. Wenn der Download fehlschlägt, initialisieren Sie bitte erneut.

Sie können detaillierte Protokolle und den Fortschritt in der Konsole überprüfen.

Die Modelldateien werden in das Verzeichnis heruntergeladen: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Wenn das Modell zuvor nicht heruntergeladen wurde, lädt das Programm das Modell automatisch von Hugging Face herunter.

Das Modell ist mehrere Gigabyte groß und erfordert eine schnelle Internetverbindung.

Der Download kann eine Weile dauern, bitte haben Sie Geduld. Wenn der Download fehlschlägt, initialisieren Sie bitte erneut.

Sie können detaillierte Protokolle und den Fortschritt in der Konsole überprüfen.

Die Modelldateien werden in das Verzeichnis heruntergeladen: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Wenn Sie keine gute Netzwerkumgebung haben oder offline herunterladen müssen, überprüfen Sie bitte:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1206,11 +1213,12 @@ "switch_to_dark_theme": "Passa al tema scuro", "offline_api": "Traduzione offline", "initialize": "Inizializza", - "initialize_finished": "Inizializzazione completata", - "initialize_failed": "Inizializzazione non riuscita", + "initialize_finished": "Inizializzazione completata!", + "initialize_failed": "Inizializzazione non riuscita!", "model_not_initialized": "Modello non inizializzato", "model_is_loading": "Caricamento del modello in corso...", - "download_model_desc": "

Se il modello non è stato scaricato in precedenza, il programma lo scaricherà automaticamente da Hugging Face.

Il modello ha una dimensione di diverse gigabyte e richiede una connessione Internet ad alta velocità.

Il download potrebbe richiedere del tempo, si prega di attendere. Se il download non riesce, ripetere l'inizializzazione.

È possibile controllare i log dettagliati e il progresso nella console.

I file del modello verranno scaricati nella directory: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Se il modello non è stato scaricato in precedenza, il programma lo scaricherà automaticamente da Hugging Face.

Il modello ha una dimensione di diverse gigabyte e richiede una connessione Internet ad alta velocità.

Il download potrebbe richiedere del tempo, si prega di attendere. Se il download non riesce, ripetere l'inizializzazione.

È possibile controllare i log dettagliati e il progresso nella console.

I file del modello verranno scaricati nella directory: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Se non hai una buona connessione di rete o hai bisogno di scaricare offline, controlla:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1333,11 +1341,12 @@ "switch_to_dark_theme": "ダークテーマに切り替える", "offline_api": "オフライン翻訳", "initialize": "初期化", - "initialize_finished": "初期化完了", - "initialize_failed": "初期化失敗", + "initialize_finished": "初期化完了!", + "initialize_failed": "初期化失敗!", "model_not_initialized": "モデルが初期化されていません", "model_is_loading": "モデルを読み込んでいます...", - "download_model_desc": "

以前にモデルがダウンロードされていない場合、プログラムはHugging Faceからモデルを自動的にダウンロードします。

モデルのサイズは数ギガバイトあり、高速なインターネット接続が必要です。

ダウンロードには時間がかかる場合がありますので、お待ちください。ダウンロードに失敗した場合は、再初期化してください。

詳細なログと進捗状況はコンソールで確認できます。

モデルファイルは次のディレクトリにダウンロードされます:extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

以前にモデルがダウンロードされていない場合、プログラムはHugging Faceからモデルを自動的にダウンロードします。

モデルのサイズは数ギガバイトあり、高速なインターネット接続が必要です。

ダウンロードには時間がかかる場合がありますので、お待ちください。ダウンロードに失敗した場合は、再初期化してください。

詳細なログと進捗状況はコンソールで確認できます。

モデルファイルは次のディレクトリにダウンロードされます:extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

良好なネットワーク環境がない場合やオフラインでダウンロードする必要がある場合は、次を確認してください:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1485,11 +1494,12 @@ "switch_to_dark_theme": "어두운 테마로 전환", "offline_api": "오프라인 번역", "initialize": "초기화", - "initialize_finished": "초기화 완료", - "initialize_failed": "초기화 실패", + "initialize_finished": "초기화 완료!", + "initialize_failed": "초기화 실패!", "model_not_initialized": "모델이 초기화되지 않음", "model_is_loading": "모델을 불러오는 중...", - "download_model_desc": "

이전에 모델을 다운로드하지 않은 경우 프로그램이 Hugging Face에서 모델을 자동으로 다운로드합니다.

모델은 몇 기가바이트 크기이며 고속 인터넷 연결이 필요합니다.

다운로드에는 시간이 걸릴 수 있으므로 잠시 기다려주십시오. 다운로드에 실패한 경우 초기화를 다시 진행하십시오.

자세한 로그와 진행 상황은 콘솔에서 확인할 수 있습니다.

모델 파일은 다음 디렉터리에 다운로드됩니다: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

이전에 모델을 다운로드하지 않은 경우 프로그램이 Hugging Face에서 모델을 자동으로 다운로드합니다.

모델은 몇 기가바이트 크기이며 고속 인터넷 연결이 필요합니다.

다운로드에는 시간이 걸릴 수 있으므로 잠시 기다려주십시오. 다운로드에 실패한 경우 초기화를 다시 진행하십시오.

자세한 로그와 진행 상황은 콘솔에서 확인할 수 있습니다.

모델 파일은 다음 디렉터리에 다운로드됩니다: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

좋은 네트워크 환경이 없거나 오프라인으로 다운로드해야 하는 경우 다음을 확인하십시오:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1727,11 +1737,12 @@ "switch_to_dark_theme": "Mudar para o tema escuro", "offline_api": "Tradução Offline", "initialize": "Inicializar", - "initialize_finished": "Inicialização Concluída", - "initialize_failed": "Inicialização Falhou", + "initialize_finished": "Inicialização Concluída!", + "initialize_failed": "Inicialização Falhou!", "model_not_initialized": "Modelo Não Inicializado", "model_is_loading": "A Carregar o Modelo...", - "download_model_desc": "

Se o modelo ainda não foi descarregado anteriormente, o programa irá descarregar automaticamente o modelo da Hugging Face.

O modelo tem vários gigabytes de tamanho e requer uma ligação à Internet de alta velocidade.

O descarregamento pode demorar algum tempo, por favor tenha paciência. Se o descarregamento falhar, por favor reinicialize.

Pode verificar os registos detalhados e o progresso na consola.

Os ficheiros do modelo serão descarregados para o diretório: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Se o modelo ainda não foi descarregado anteriormente, o programa irá descarregar automaticamente o modelo da Hugging Face.

O modelo tem vários gigabytes de tamanho e requer uma ligação à Internet de alta velocidade.

O descarregamento pode demorar algum tempo, por favor tenha paciência. Se o descarregamento falhar, por favor reinicialize.

Pode verificar os registos detalhados e o progresso na consola.

Os ficheiros do modelo serão descarregados para o diretório: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Se você não tem um bom ambiente de rede ou precisa baixar offline, por favor verifique:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { @@ -1869,11 +1880,12 @@ "switch_to_dark_theme": "Переключиться на темную тему", "offline_api": "Офлайн-перевод", "initialize": "Инициализация", - "initialize_finished": "Инициализация завершена", - "initialize_failed": "Ошибка инициализации", + "initialize_finished": "Инициализация завершена!", + "initialize_failed": "Ошибка инициализации!", "model_not_initialized": "Модель не инициализирована", "model_is_loading": "Загрузка модели...", - "download_model_desc": "

Если модель ранее не была загружена, программа автоматически загрузит модель с Hugging Face.

Модель имеет размер несколько гигабайт и требует высокоскоростного интернет-соединения.

Загрузка может занять некоторое время, пожалуйста, подождите. Если загрузка не удалась, повторите инициализацию.

Вы можете проверить подробные журналы и прогресс в консоли.

Файлы модели будут загружены в каталог: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Если модель ранее не была загружена, программа автоматически загрузит модель с Hugging Face.

Модель имеет размер несколько гигабайт и требует высокоскоростного интернет-соединения.

Загрузка может занять некоторое время, пожалуйста, подождите. Если загрузка не удалась, повторите инициализацию.

Вы можете проверить подробные журналы и прогресс в консоли.

Файлы модели будут загружены в каталог: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Если у вас нет хорошей сетевой среды или вам нужно выполнить загрузку в автономном режиме, проверьте:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/ru/OfflineTranslation.html

" } }, { @@ -2026,11 +2038,12 @@ "switch_to_dark_theme": "Cambiar a tema oscuro", "offline_api": "Traducción sin conexión", "initialize": "Inicializar", - "initialize_finished": "Inicialización finalizada", - "initialize_failed": "Error de inicialización", + "initialize_finished": "Inicialización finalizada!", + "initialize_failed": "Error de inicialización!", "model_not_initialized": "Modelo no inicializado", "model_is_loading": "Cargando modelo...", - "download_model_desc": "

Si el modelo no se ha descargado anteriormente, el programa lo descargará automáticamente desde Hugging Face.

El modelo tiene varios gigabytes de tamaño y requiere una conexión a Internet de alta velocidad.

La descarga puede tardar un tiempo, por favor, ten paciencia. Si la descarga falla, por favor, reinicializa.

Puedes consultar los registros detallados y el progreso en la consola.

Los archivos del modelo se descargarán en el directorio: extensions\\sd-webui-prompt-all-in-one\\models

" + "download_model_desc": "

Si el modelo no se ha descargado anteriormente, el programa lo descargará automáticamente desde Hugging Face.

El modelo tiene varios gigabytes de tamaño y requiere una conexión a Internet de alta velocidad.

La descarga puede tardar un tiempo, por favor, ten paciencia. Si la descarga falla, por favor, reinicializa.

Puedes consultar los registros detallados y el progreso en la consola.

Los archivos del modelo se descargarán en el directorio: extensions\\sd-webui-prompt-all-in-one\\models

", + "download_model_desc2": "

Si no tienes un buen entorno de red o necesitas descargar sin conexión, por favor verifica:

https://physton.github.io/sd-webui-prompt-all-in-one-assets/OfflineTranslation.html

" } }, { diff --git a/javascript/main.entry.js b/javascript/main.entry.js index 6b2298f..31a2733 100644 --- a/javascript/main.entry.js +++ b/javascript/main.entry.js @@ -1,4 +1,4 @@ -(function(Tn){typeof define=="function"&&define.amd?define(Tn):Tn()})(function(){"use strict";var c1=Object.defineProperty;var f1=(Tn,Kt,Ai)=>Kt in Tn?c1(Tn,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):Tn[Kt]=Ai;var Ed=(Tn,Kt,Ai)=>(f1(Tn,typeof Kt!="symbol"?Kt+"":Kt,Ai),Ai);function Tn(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function Kt(e){if(We(e)){const t={};for(let n=0;n{if(n){const i=n.split(Sd);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function St(e){let t="";if(Mt(e))t=e;else if(We(e))for(let n=0;nAr(n,t))}const ae=e=>Mt(e)?e:e==null?"":We(e)||Tt(e)&&(e.toString===jl||!Je(e.toString))?JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>t&&t.__v_isRef?Fl(e,t.value):er(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r])=>(n[`${i} =>`]=r,n),{})}:tr(t)?{[`Set(${t.size})`]:[...t.values()]}:Tt(t)&&!We(t)&&!$l(t)?String(t):t,wt={},Qi=[],Dn=()=>{},Od=()=>!1,Dd=/^on[^a-z]/,ws=e=>Dd.test(e),jo=e=>e.startsWith("onUpdate:"),Gt=Object.assign,$o=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pd=Object.prototype.hasOwnProperty,it=(e,t)=>Pd.call(e,t),We=Array.isArray,er=e=>Or(e)==="[object Map]",tr=e=>Or(e)==="[object Set]",Hl=e=>Or(e)==="[object Date]",Je=e=>typeof e=="function",Mt=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Tt=e=>e!==null&&typeof e=="object",Bl=e=>Tt(e)&&Je(e.then)&&Je(e.catch),jl=Object.prototype.toString,Or=e=>jl.call(e),Id=e=>Or(e).slice(8,-1),$l=e=>Or(e)==="[object Object]",Uo=e=>Mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ts=Tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_s=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nd=/-(\w)/g,Un=_s(e=>e.replace(Nd,(t,n)=>n?n.toUpperCase():"")),Rd=/\B([A-Z])/g,nr=_s(e=>e.replace(Rd,"-$1").toLowerCase()),Es=_s(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wo=_s(e=>e?`on${Es(e)}`:""),Ss=(e,t)=>!Object.is(e,t),ks=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},As=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ul;const Md=()=>Ul||(Ul=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pn;class Fd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pn,!t&&Pn&&(this.index=(Pn.scopes||(Pn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pn;try{return Pn=this,t()}finally{Pn=n}}}on(){Pn=this}off(){Pn=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Wl=e=>(e.w&gi)>0,Vl=e=>(e.n&gi)>0,jd=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(g==="length"||g>=d)&&c.push(m)})}else switch(n!==void 0&&c.push(l.get(n)),t){case"add":We(e)?Uo(n)&&c.push(l.get("length")):(c.push(l.get(Li)),er(e)&&c.push(l.get(zo)));break;case"delete":We(e)||(c.push(l.get(Li)),er(e)&&c.push(l.get(zo)));break;case"set":er(e)&&c.push(l.get(Li));break}if(c.length===1)c[0]&&Yo(c[0]);else{const d=[];for(const m of c)m&&d.push(...m);Yo(Vo(d))}}function Yo(e,t){const n=We(e)?e:[...e];for(const i of n)i.computed&&Xl(i);for(const i of n)i.computed||Xl(i)}function Xl(e,t){(e!==In||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ud=Tn("__proto__,__v_isRef,__isVue"),Yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr)),Wd=Go(),Vd=Go(!1,!0),Kd=Go(!0),Gl=qd();function qd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=gt(this);for(let o=0,l=this.length;o{e[t]=function(...n){ir();const i=gt(this)[t].apply(this,n);return rr(),i}}),e}function zd(e){const t=gt(this);return tn(t,"has",e),t.hasOwnProperty(e)}function Go(e=!1,t=!1){return function(i,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?up:su:t?ru:iu).get(i))return i;const l=We(i);if(!e){if(l&&it(Gl,r))return Reflect.get(Gl,r,o);if(r==="hasOwnProperty")return zd}const c=Reflect.get(i,r,o);return(Lr(r)?Yl.has(r):Ud(r))||(e||tn(i,"get",r),t)?c:Jt(c)?l&&Uo(r)?c:c.value:Tt(c)?e?ou(c):Qo(c):c}}const Xd=Jl(),Yd=Jl(!0);function Jl(e=!1){return function(n,i,r,o){let l=n[i];if(Pr(l)&&Jt(l)&&!Jt(r))return!1;if(!e&&(!ta(r)&&!Pr(r)&&(l=gt(l),r=gt(r)),!We(n)&&Jt(l)&&!Jt(r)))return l.value=r,!0;const c=We(n)&&Uo(i)?Number(i)e,Ls=e=>Reflect.getPrototypeOf(e);function Os(e,t,n=!1,i=!1){e=e.__v_raw;const r=gt(e),o=gt(t);n||(t!==o&&tn(r,"get",t),tn(r,"get",o));const{has:l}=Ls(r),c=i?Jo:n?ia:na;if(l.call(r,t))return c(e.get(t));if(l.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Ds(e,t=!1){const n=this.__v_raw,i=gt(n),r=gt(e);return t||(e!==r&&tn(i,"has",e),tn(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ps(e,t=!1){return e=e.__v_raw,!t&&tn(gt(e),"iterate",Li),Reflect.get(e,"size",e)}function Ql(e){e=gt(e);const t=gt(this);return Ls(t).has.call(t,e)||(t.add(e),ii(t,"add",e,e)),this}function eu(e,t){t=gt(t);const n=gt(this),{has:i,get:r}=Ls(n);let o=i.call(n,e);o||(e=gt(e),o=i.call(n,e));const l=r.call(n,e);return n.set(e,t),o?Ss(t,l)&&ii(n,"set",e,t):ii(n,"add",e,t),this}function tu(e){const t=gt(this),{has:n,get:i}=Ls(t);let r=n.call(t,e);r||(e=gt(e),r=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return r&&ii(t,"delete",e,void 0),o}function nu(){const e=gt(this),t=e.size!==0,n=e.clear();return t&&ii(e,"clear",void 0,void 0),n}function Is(e,t){return function(i,r){const o=this,l=o.__v_raw,c=gt(l),d=t?Jo:e?ia:na;return!e&&tn(c,"iterate",Li),l.forEach((m,g)=>i.call(r,d(m),d(g),o))}}function Ns(e,t,n){return function(...i){const r=this.__v_raw,o=gt(r),l=er(o),c=e==="entries"||e===Symbol.iterator&&l,d=e==="keys"&&l,m=r[e](...i),g=n?Jo:t?ia:na;return!t&&tn(o,"iterate",d?zo:Li),{next(){const{value:w,done:_}=m.next();return _?{value:w,done:_}:{value:c?[g(w[0]),g(w[1])]:g(w),done:_}},[Symbol.iterator](){return this}}}}function vi(e){return function(...t){return e==="delete"?!1:this}}function tp(){const e={get(o){return Os(this,o)},get size(){return Ps(this)},has:Ds,add:Ql,set:eu,delete:tu,clear:nu,forEach:Is(!1,!1)},t={get(o){return Os(this,o,!1,!0)},get size(){return Ps(this)},has:Ds,add:Ql,set:eu,delete:tu,clear:nu,forEach:Is(!1,!0)},n={get(o){return Os(this,o,!0)},get size(){return Ps(this,!0)},has(o){return Ds.call(this,o,!0)},add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear"),forEach:Is(!0,!1)},i={get(o){return Os(this,o,!0,!0)},get size(){return Ps(this,!0)},has(o){return Ds.call(this,o,!0)},add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear"),forEach:Is(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ns(o,!1,!1),n[o]=Ns(o,!0,!1),t[o]=Ns(o,!1,!0),i[o]=Ns(o,!0,!0)}),[e,n,t,i]}const[np,ip,rp,sp]=tp();function Zo(e,t){const n=t?e?sp:rp:e?ip:np;return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(it(n,r)&&r in i?n:i,r,o)}const op={get:Zo(!1,!1)},ap={get:Zo(!1,!0)},lp={get:Zo(!0,!1)},iu=new WeakMap,ru=new WeakMap,su=new WeakMap,up=new WeakMap;function cp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fp(e){return e.__v_skip||!Object.isExtensible(e)?0:cp(Id(e))}function Qo(e){return Pr(e)?e:ea(e,!1,Zl,op,iu)}function dp(e){return ea(e,!1,ep,ap,ru)}function ou(e){return ea(e,!0,Qd,lp,su)}function ea(e,t,n,i,r){if(!Tt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const l=fp(e);if(l===0)return e;const c=new Proxy(e,l===2?i:n);return r.set(e,c),c}function sr(e){return Pr(e)?sr(e.__v_raw):!!(e&&e.__v_isReactive)}function Pr(e){return!!(e&&e.__v_isReadonly)}function ta(e){return!!(e&&e.__v_isShallow)}function au(e){return sr(e)||Pr(e)}function gt(e){const t=e&&e.__v_raw;return t?gt(t):e}function lu(e){return xs(e,"__v_skip",!0),e}const na=e=>Tt(e)?Qo(e):e,ia=e=>Tt(e)?ou(e):e;function pp(e){mi&&In&&(e=gt(e),zl(e.dep||(e.dep=Vo())))}function hp(e,t){e=gt(e);const n=e.dep;n&&Yo(n)}function Jt(e){return!!(e&&e.__v_isRef===!0)}function gp(e){return Jt(e)?e.value:e}const mp={get:(e,t,n)=>gp(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Jt(r)&&!Jt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function uu(e){return sr(e)?e:new Proxy(e,mp)}var cu;class vp{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cu]=!1,this._dirty=!0,this.effect=new Xo(t,()=>{this._dirty||(this._dirty=!0,hp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=gt(this);return pp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cu="__v_isReadonly";function yp(e,t,n=!1){let i,r;const o=Je(e);return o?(i=e,r=Dn):(i=e.get,r=e.set),new vp(i,r,o||!r,n)}function p1(e,...t){}function yi(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){Rs(o,t,n)}return r}function Nn(e,t,n,i){if(Je(e)){const o=yi(e,t,n,i);return o&&Bl(o)&&o.catch(l=>{Rs(l,t,n)}),o}const r=[];for(let o=0;o>>1;Nr(qt[i])Wn&&qt.splice(t,1)}function _p(e){We(e)?or.push(...e):(!ri||!ri.includes(e,e.allowRecurse?Oi+1:Oi))&&or.push(e),du()}function pu(e,t=Ir?Wn+1:0){for(;tNr(n)-Nr(i)),Oi=0;Oie.id==null?1/0:e.id,Ep=(e,t)=>{const n=Nr(e)-Nr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gu(e){ra=!1,Ir=!0,qt.sort(Ep);const t=Dn;try{for(Wn=0;WnMt(R)?R.trim():R)),w&&(r=n.map(As))}let c,d=i[c=Wo(t)]||i[c=Wo(Un(t))];!d&&o&&(d=i[c=Wo(nr(t))]),d&&Nn(d,e,6,r);const m=i[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Nn(m,e,6,r)}}function mu(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const o=e.emits;let l={},c=!1;if(!Je(e)){const d=m=>{const g=mu(m,t,!0);g&&(c=!0,Gt(l,g))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!o&&!c?(Tt(e)&&i.set(e,null),null):(We(o)?o.forEach(d=>l[d]=null):Gt(l,o),Tt(e)&&i.set(e,l),l)}function Ms(e,t){return!e||!ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),it(e,t[0].toLowerCase()+t.slice(1))||it(e,nr(t))||it(e,t))}let _n=null,vu=null;function Fs(e){const t=_n;return _n=e,vu=e&&e.type.__scopeId||null,t}function kp(e,t=_n,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&$u(-1);const o=Fs(t);let l;try{l=e(...r)}finally{Fs(o),i._d&&$u(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function h1(){}function aa(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[l],slots:c,attrs:d,emit:m,render:g,renderCache:w,data:_,setupState:R,ctx:k,inheritAttrs:O}=e;let U,P;const Z=Fs(e);try{if(n.shapeFlag&4){const L=r||i;U=Vn(g.call(L,L,w,o,R,_,k)),P=d}else{const L=t;U=Vn(L.length>1?L(o,{attrs:d,slots:c,emit:m}):L(o,null)),P=t.props?d:xp(d)}}catch(L){Mr.length=0,Rs(L,e,1),U=pe(Ri)}let se=U;if(P&&O!==!1){const L=Object.keys(P),{shapeFlag:xe}=se;L.length&&xe&7&&(l&&L.some(jo)&&(P=Ap(P,l)),se=ar(se,P))}return n.dirs&&(se=ar(se),se.dirs=se.dirs?se.dirs.concat(n.dirs):n.dirs),n.transition&&(se.transition=n.transition),U=se,Fs(Z),U}const xp=e=>{let t;for(const n in e)(n==="class"||n==="style"||ws(n))&&((t||(t={}))[n]=e[n]);return t},Ap=(e,t)=>{const n={};for(const i in e)(!jo(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Lp(e,t,n){const{props:i,children:r,component:o}=e,{props:l,children:c,patchFlag:d}=t,m=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return i?yu(i,l,m):!!l;if(d&8){const g=t.dynamicProps;for(let w=0;we.__isSuspense;function Pp(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):_p(e)}function Ip(e,t){if(It){let n=It.provides;const i=It.parent&&It.parent.provides;i===n&&(n=It.provides=Object.create(i)),n[e]=t}}function Hs(e,t,n=!1){const i=It||_n;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Je(t)?t.call(i.proxy):t}}const Bs={};function la(e,t,n){return bu(e,t,n)}function bu(e,t,{immediate:n,deep:i,flush:r,onTrack:o,onTrigger:l}=wt){const c=Bd()===(It==null?void 0:It.scope)?It:null;let d,m=!1,g=!1;if(Jt(e)?(d=()=>e.value,m=ta(e)):sr(e)?(d=()=>e,i=!0):We(e)?(g=!0,m=e.some(se=>sr(se)||ta(se)),d=()=>e.map(se=>{if(Jt(se))return se.value;if(sr(se))return Di(se);if(Je(se))return yi(se,c,2)})):Je(e)?t?d=()=>yi(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return w&&w(),Nn(e,c,3,[_])}:d=Dn,t&&i){const se=d;d=()=>Di(se())}let w,_=se=>{w=P.onStop=()=>{yi(se,c,4)}},R;if(Br)if(_=Dn,t?n&&Nn(t,c,3,[d(),g?[]:void 0,_]):d(),r==="sync"){const se=Ah();R=se.__watcherHandles||(se.__watcherHandles=[])}else return Dn;let k=g?new Array(e.length).fill(Bs):Bs;const O=()=>{if(P.active)if(t){const se=P.run();(i||m||(g?se.some((L,xe)=>Ss(L,k[xe])):Ss(se,k)))&&(w&&w(),Nn(t,c,3,[se,k===Bs?void 0:g&&k[0]===Bs?[]:k,_]),k=se)}else P.run()};O.allowRecurse=!!t;let U;r==="sync"?U=O:r==="post"?U=()=>nn(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),U=()=>oa(O));const P=new Xo(d,U);t?n?O():k=P.run():r==="post"?nn(P.run.bind(P),c&&c.suspense):P.run();const Z=()=>{P.stop(),c&&c.scope&&$o(c.scope.effects,P)};return R&&R.push(Z),Z}function Np(e,t,n){const i=this.proxy,r=Mt(e)?e.includes(".")?Cu(i,e):()=>i[e]:e.bind(i,i);let o;Je(t)?o=t:(o=t.handler,n=t);const l=It;lr(this);const c=bu(r,o.bind(i),n);return l?lr(l):Mi(),c}function Cu(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r{Di(n,t)});else if($l(e))for(const n in e)Di(e[n],t);return e}function Rp(e){return Je(e)?{setup:e,name:e.name}:e}const js=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function Mp(e,t){Tu(e,"a",t)}function Fp(e,t){Tu(e,"da",t)}function Tu(e,t,n=It){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($s(t,i,n),n){let r=n.parent;for(;r&&r.parent;)wu(r.parent.vnode)&&Hp(i,t,n,r),r=r.parent}}function Hp(e,t,n,i){const r=$s(t,e,i,!0);_u(()=>{$o(i[t],r)},n)}function $s(e,t,n=It,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;ir(),lr(n);const c=Nn(t,n,e,l);return Mi(),rr(),c});return i?r.unshift(o):r.push(o),o}}const si=e=>(t,n=It)=>(!Br||e==="sp")&&$s(e,(...i)=>t(...i),n),Bp=si("bm"),jp=si("m"),$p=si("bu"),Up=si("u"),Wp=si("bum"),_u=si("um"),Vp=si("sp"),Kp=si("rtg"),qp=si("rtc");function zp(e,t=It){$s("ec",e,t)}function fe(e,t){const n=_n;if(n===null)return e;const i=zs(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(l,c,void 0,o&&o[c]));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;ce?Ku(e)?zs(e)||e.proxy:ua(e.parent):null,Rr=Gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ua(e.parent),$root:e=>ua(e.root),$emit:e=>e.emit,$options:e=>da(e),$forceUpdate:e=>e.f||(e.f=()=>oa(e.update)),$nextTick:e=>e.n||(e.n=Cp.bind(e.proxy)),$watch:e=>Np.bind(e)}),ca=(e,t)=>e!==wt&&!e.__isScriptSetup&&it(e,t),Gp={get({_:e},t){const{ctx:n,setupState:i,data:r,props:o,accessCache:l,type:c,appContext:d}=e;let m;if(t[0]!=="$"){const R=l[t];if(R!==void 0)switch(R){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ca(i,t))return l[t]=1,i[t];if(r!==wt&&it(r,t))return l[t]=2,r[t];if((m=e.propsOptions[0])&&it(m,t))return l[t]=3,o[t];if(n!==wt&&it(n,t))return l[t]=4,n[t];fa&&(l[t]=0)}}const g=Rr[t];let w,_;if(g)return t==="$attrs"&&tn(e,"get",t),g(e);if((w=c.__cssModules)&&(w=w[t]))return w;if(n!==wt&&it(n,t))return l[t]=4,n[t];if(_=d.config.globalProperties,it(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return ca(r,t)?(r[t]=n,!0):i!==wt&&it(i,t)?(i[t]=n,!0):it(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o}},l){let c;return!!n[l]||e!==wt&&it(e,l)||ca(t,l)||(c=o[0])&&it(c,l)||it(i,l)||it(Rr,l)||it(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:it(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let fa=!0;function Jp(e){const t=da(e),n=e.proxy,i=e.ctx;fa=!1,t.beforeCreate&&xu(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:c,provide:d,inject:m,created:g,beforeMount:w,mounted:_,beforeUpdate:R,updated:k,activated:O,deactivated:U,beforeDestroy:P,beforeUnmount:Z,destroyed:se,unmounted:L,render:xe,renderTracked:p,renderTriggered:Pe,errorCaptured:Me,serverPrefetch:ne,expose:Y,inheritAttrs:Ee,components:De,directives:Te,filters:nt}=t;if(m&&Zp(m,i,null,e.appContext.config.unwrapInjectedRef),l)for(const Ie in l){const be=l[Ie];Je(be)&&(i[Ie]=be.bind(n))}if(r){const Ie=r.call(n,n);Tt(Ie)&&(e.data=Qo(Ie))}if(fa=!0,o)for(const Ie in o){const be=o[Ie],ot=Je(be)?be.bind(n,n):Je(be.get)?be.get.bind(n,n):Dn,xt=!Je(be)&&Je(be.set)?be.set.bind(n):Dn,at=kh({get:ot,set:xt});Object.defineProperty(i,Ie,{enumerable:!0,configurable:!0,get:()=>at.value,set:we=>at.value=we})}if(c)for(const Ie in c)Au(c[Ie],i,n,Ie);if(d){const Ie=Je(d)?d.call(n):d;Reflect.ownKeys(Ie).forEach(be=>{Ip(be,Ie[be])})}g&&xu(g,e,"c");function Ue(Ie,be){We(be)?be.forEach(ot=>Ie(ot.bind(n))):be&&Ie(be.bind(n))}if(Ue(Bp,w),Ue(jp,_),Ue($p,R),Ue(Up,k),Ue(Mp,O),Ue(Fp,U),Ue(zp,Me),Ue(qp,p),Ue(Kp,Pe),Ue(Wp,Z),Ue(_u,L),Ue(Vp,ne),We(Y))if(Y.length){const Ie=e.exposed||(e.exposed={});Y.forEach(be=>{Object.defineProperty(Ie,be,{get:()=>n[be],set:ot=>n[be]=ot})})}else e.exposed||(e.exposed={});xe&&e.render===Dn&&(e.render=xe),Ee!=null&&(e.inheritAttrs=Ee),De&&(e.components=De),Te&&(e.directives=Te)}function Zp(e,t,n=Dn,i=!1){We(e)&&(e=pa(e));for(const r in e){const o=e[r];let l;Tt(o)?"default"in o?l=Hs(o.from||r,o.default,!0):l=Hs(o.from||r):l=Hs(o),Jt(l)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:c=>l.value=c}):t[r]=l}}function xu(e,t,n){Nn(We(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Au(e,t,n,i){const r=i.includes(".")?Cu(n,i):()=>n[i];if(Mt(e)){const o=t[e];Je(o)&&la(r,o)}else if(Je(e))la(r,e.bind(n));else if(Tt(e))if(We(e))e.forEach(o=>Au(o,t,n,i));else{const o=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(o)&&la(r,o,e)}}function da(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,c=o.get(t);let d;return c?d=c:!r.length&&!n&&!i?d=t:(d={},r.length&&r.forEach(m=>Ws(d,m,l,!0)),Ws(d,t,l)),Tt(t)&&o.set(t,d),d}function Ws(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&Ws(e,o,n,!0),r&&r.forEach(l=>Ws(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const c=Qp[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const Qp={data:Lu,props:Ii,emits:Ii,methods:Ii,computed:Ii,beforeCreate:Zt,created:Zt,beforeMount:Zt,mounted:Zt,beforeUpdate:Zt,updated:Zt,beforeDestroy:Zt,beforeUnmount:Zt,destroyed:Zt,unmounted:Zt,activated:Zt,deactivated:Zt,errorCaptured:Zt,serverPrefetch:Zt,components:Ii,directives:Ii,watch:th,provide:Lu,inject:eh};function Lu(e,t){return t?e?function(){return Gt(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function eh(e,t){return Ii(pa(e),pa(t))}function pa(e){if(We(e)){const t={};for(let n=0;n0)&&!(l&16)){if(l&8){const g=e.vnode.dynamicProps;for(let w=0;w{d=!0;const[_,R]=Du(w,t,!0);Gt(l,_),R&&c.push(...R)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!o&&!d)return Tt(e)&&i.set(e,Qi),Qi;if(We(o))for(let g=0;g-1,R[1]=O<0||k-1||it(R,"default"))&&c.push(w)}}}const m=[l,c];return Tt(e)&&i.set(e,m),m}function Pu(e){return e[0]!=="$"}function Iu(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Nu(e,t){return Iu(e)===Iu(t)}function Ru(e,t){return We(t)?t.findIndex(n=>Nu(n,e)):Je(t)&&Nu(t,e)?0:-1}const Mu=e=>e[0]==="_"||e==="$stable",ga=e=>We(e)?e.map(Vn):[Vn(e)],rh=(e,t,n)=>{if(t._n)return t;const i=kp((...r)=>ga(t(...r)),n);return i._c=!1,i},Fu=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Mu(r))continue;const o=e[r];if(Je(o))t[r]=rh(r,o,i);else if(o!=null){const l=ga(o);t[r]=()=>l}}},Hu=(e,t)=>{const n=ga(t);e.slots.default=()=>n},sh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=gt(t),xs(t,"_",n)):Fu(t,e.slots={})}else e.slots={},t&&Hu(e,t);xs(e.slots,Ks,1)},oh=(e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,l=wt;if(i.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(Gt(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Fu(t,r)),l=t}else t&&(Hu(e,t),l={default:1});if(o)for(const c in r)!Mu(c)&&!(c in l)&&delete r[c]};function Bu(){return{app:null,config:{isNativeTag:Od,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ah=0;function lh(e,t){return function(i,r=null){Je(i)||(i=Object.assign({},i)),r!=null&&!Tt(r)&&(r=null);const o=Bu(),l=new Set;let c=!1;const d=o.app={_uid:ah++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:Lh,get config(){return o.config},set config(m){},use(m,...g){return l.has(m)||(m&&Je(m.install)?(l.add(m),m.install(d,...g)):Je(m)&&(l.add(m),m(d,...g))),d},mixin(m){return o.mixins.includes(m)||o.mixins.push(m),d},component(m,g){return g?(o.components[m]=g,d):o.components[m]},directive(m,g){return g?(o.directives[m]=g,d):o.directives[m]},mount(m,g,w){if(!c){const _=pe(i,r);return _.appContext=o,g&&t?t(_,m):e(_,m,w),c=!0,d._container=m,m.__vue_app__=d,zs(_.component)||_.component.proxy}},unmount(){c&&(e(null,d._container),delete d._container.__vue_app__)},provide(m,g){return o.provides[m]=g,d}};return d}}function ma(e,t,n,i,r=!1){if(We(e)){e.forEach((_,R)=>ma(_,t&&(We(t)?t[R]:t),n,i,r));return}if(js(i)&&!r)return;const o=i.shapeFlag&4?zs(i.component)||i.component.proxy:i.el,l=r?null:o,{i:c,r:d}=e,m=t&&t.r,g=c.refs===wt?c.refs={}:c.refs,w=c.setupState;if(m!=null&&m!==d&&(Mt(m)?(g[m]=null,it(w,m)&&(w[m]=null)):Jt(m)&&(m.value=null)),Je(d))yi(d,c,12,[l,g]);else{const _=Mt(d),R=Jt(d);if(_||R){const k=()=>{if(e.f){const O=_?it(w,d)?w[d]:g[d]:d.value;r?We(O)&&$o(O,o):We(O)?O.includes(o)||O.push(o):_?(g[d]=[o],it(w,d)&&(w[d]=g[d])):(d.value=[o],e.k&&(g[e.k]=d.value))}else _?(g[d]=l,it(w,d)&&(w[d]=l)):R&&(d.value=l,e.k&&(g[e.k]=l))};l?(k.id=-1,nn(k,n)):k()}}}const nn=Pp;function uh(e){return ch(e)}function ch(e,t){const n=Md();n.__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:l,createText:c,createComment:d,setText:m,setElementText:g,parentNode:w,nextSibling:_,setScopeId:R=Dn,insertStaticContent:k}=e,O=(x,D,W,J=null,H=null,V=null,ue=!1,ie=null,re=!!D.dynamicChildren)=>{if(x===D)return;x&&!Hr(x,D)&&(J=Fe(x),we(x,H,V,!0),x=null),D.patchFlag===-2&&(re=!1,D.dynamicChildren=null);const{type:Q,ref:Se,shapeFlag:me}=D;switch(Q){case Vs:U(x,D,W,J);break;case Ri:P(x,D,W,J);break;case va:x==null&&Z(D,W,J,ue);break;case Re:De(x,D,W,J,H,V,ue,ie,re);break;default:me&1?xe(x,D,W,J,H,V,ue,ie,re):me&6?Te(x,D,W,J,H,V,ue,ie,re):(me&64||me&128)&&Q.process(x,D,W,J,H,V,ue,ie,re,pt)}Se!=null&&H&&ma(Se,x&&x.ref,V,D||x,!D)},U=(x,D,W,J)=>{if(x==null)i(D.el=c(D.children),W,J);else{const H=D.el=x.el;D.children!==x.children&&m(H,D.children)}},P=(x,D,W,J)=>{x==null?i(D.el=d(D.children||""),W,J):D.el=x.el},Z=(x,D,W,J)=>{[x.el,x.anchor]=k(x.children,D,W,J,x.el,x.anchor)},se=({el:x,anchor:D},W,J)=>{let H;for(;x&&x!==D;)H=_(x),i(x,W,J),x=H;i(D,W,J)},L=({el:x,anchor:D})=>{let W;for(;x&&x!==D;)W=_(x),r(x),x=W;r(D)},xe=(x,D,W,J,H,V,ue,ie,re)=>{ue=ue||D.type==="svg",x==null?p(D,W,J,H,V,ue,ie,re):ne(x,D,H,V,ue,ie,re)},p=(x,D,W,J,H,V,ue,ie)=>{let re,Q;const{type:Se,props:me,shapeFlag:Ce,transition:Le,dirs:qe}=x;if(re=x.el=l(x.type,V,me&&me.is,me),Ce&8?g(re,x.children):Ce&16&&Me(x.children,re,null,J,H,V&&Se!=="foreignObject",ue,ie),qe&&Pi(x,null,J,"created"),Pe(re,x,x.scopeId,ue,J),me){for(const Ze in me)Ze!=="value"&&!Ts(Ze)&&o(re,Ze,null,me[Ze],V,x.children,J,H,_e);"value"in me&&o(re,"value",null,me.value),(Q=me.onVnodeBeforeMount)&&Kn(Q,J,x)}qe&&Pi(x,null,J,"beforeMount");const lt=(!H||H&&!H.pendingBranch)&&Le&&!Le.persisted;lt&&Le.beforeEnter(re),i(re,D,W),((Q=me&&me.onVnodeMounted)||lt||qe)&&nn(()=>{Q&&Kn(Q,J,x),lt&&Le.enter(re),qe&&Pi(x,null,J,"mounted")},H)},Pe=(x,D,W,J,H)=>{if(W&&R(x,W),J)for(let V=0;V{for(let Q=re;Q{const ie=D.el=x.el;let{patchFlag:re,dynamicChildren:Q,dirs:Se}=D;re|=x.patchFlag&16;const me=x.props||wt,Ce=D.props||wt;let Le;W&&Ni(W,!1),(Le=Ce.onVnodeBeforeUpdate)&&Kn(Le,W,D,x),Se&&Pi(D,x,W,"beforeUpdate"),W&&Ni(W,!0);const qe=H&&D.type!=="foreignObject";if(Q?Y(x.dynamicChildren,Q,ie,W,J,qe,V):ue||be(x,D,ie,null,W,J,qe,V,!1),re>0){if(re&16)Ee(ie,D,me,Ce,W,J,H);else if(re&2&&me.class!==Ce.class&&o(ie,"class",null,Ce.class,H),re&4&&o(ie,"style",me.style,Ce.style,H),re&8){const lt=D.dynamicProps;for(let Ze=0;Ze{Le&&Kn(Le,W,D,x),Se&&Pi(D,x,W,"updated")},J)},Y=(x,D,W,J,H,V,ue)=>{for(let ie=0;ie{if(W!==J){if(W!==wt)for(const ie in W)!Ts(ie)&&!(ie in J)&&o(x,ie,W[ie],null,ue,D.children,H,V,_e);for(const ie in J){if(Ts(ie))continue;const re=J[ie],Q=W[ie];re!==Q&&ie!=="value"&&o(x,ie,Q,re,ue,D.children,H,V,_e)}"value"in J&&o(x,"value",W.value,J.value)}},De=(x,D,W,J,H,V,ue,ie,re)=>{const Q=D.el=x?x.el:c(""),Se=D.anchor=x?x.anchor:c("");let{patchFlag:me,dynamicChildren:Ce,slotScopeIds:Le}=D;Le&&(ie=ie?ie.concat(Le):Le),x==null?(i(Q,W,J),i(Se,W,J),Me(D.children,W,Se,H,V,ue,ie,re)):me>0&&me&64&&Ce&&x.dynamicChildren?(Y(x.dynamicChildren,Ce,W,H,V,ue,ie),(D.key!=null||H&&D===H.subTree)&&ju(x,D,!0)):be(x,D,W,Se,H,V,ue,ie,re)},Te=(x,D,W,J,H,V,ue,ie,re)=>{D.slotScopeIds=ie,x==null?D.shapeFlag&512?H.ctx.activate(D,W,J,ue,re):nt(D,W,J,H,V,ue,re):dt(x,D,re)},nt=(x,D,W,J,H,V,ue)=>{const ie=x.component=bh(x,J,H);if(wu(x)&&(ie.ctx.renderer=pt),Ch(ie),ie.asyncDep){if(H&&H.registerDep(ie,Ue),!x.el){const re=ie.subTree=pe(Ri);P(null,re,D,W)}return}Ue(ie,x,D,W,H,V,ue)},dt=(x,D,W)=>{const J=D.component=x.component;if(Lp(x,D,W))if(J.asyncDep&&!J.asyncResolved){Ie(J,D,W);return}else J.next=D,Tp(J.update),J.update();else D.el=x.el,J.vnode=D},Ue=(x,D,W,J,H,V,ue)=>{const ie=()=>{if(x.isMounted){let{next:Se,bu:me,u:Ce,parent:Le,vnode:qe}=x,lt=Se,Ze;Ni(x,!1),Se?(Se.el=qe.el,Ie(x,Se,ue)):Se=qe,me&&ks(me),(Ze=Se.props&&Se.props.onVnodeBeforeUpdate)&&Kn(Ze,Le,Se,qe),Ni(x,!0);const Et=aa(x),Xt=x.subTree;x.subTree=Et,O(Xt,Et,w(Xt.el),Fe(Xt),x,H,V),Se.el=Et.el,lt===null&&Op(x,Et.el),Ce&&nn(Ce,H),(Ze=Se.props&&Se.props.onVnodeUpdated)&&nn(()=>Kn(Ze,Le,Se,qe),H)}else{let Se;const{el:me,props:Ce}=D,{bm:Le,m:qe,parent:lt}=x,Ze=js(D);if(Ni(x,!1),Le&&ks(Le),!Ze&&(Se=Ce&&Ce.onVnodeBeforeMount)&&Kn(Se,lt,D),Ni(x,!0),me&&ln){const Et=()=>{x.subTree=aa(x),ln(me,x.subTree,x,H,null)};Ze?D.type.__asyncLoader().then(()=>!x.isUnmounted&&Et()):Et()}else{const Et=x.subTree=aa(x);O(null,Et,W,J,x,H,V),D.el=Et.el}if(qe&&nn(qe,H),!Ze&&(Se=Ce&&Ce.onVnodeMounted)){const Et=D;nn(()=>Kn(Se,lt,Et),H)}(D.shapeFlag&256||lt&&js(lt.vnode)&<.vnode.shapeFlag&256)&&x.a&&nn(x.a,H),x.isMounted=!0,D=W=J=null}},re=x.effect=new Xo(ie,()=>oa(Q),x.scope),Q=x.update=()=>re.run();Q.id=x.uid,Ni(x,!0),Q()},Ie=(x,D,W)=>{D.component=x;const J=x.vnode.props;x.vnode=D,x.next=null,ih(x,D.props,J,W),oh(x,D.children,W),ir(),pu(),rr()},be=(x,D,W,J,H,V,ue,ie,re=!1)=>{const Q=x&&x.children,Se=x?x.shapeFlag:0,me=D.children,{patchFlag:Ce,shapeFlag:Le}=D;if(Ce>0){if(Ce&128){xt(Q,me,W,J,H,V,ue,ie,re);return}else if(Ce&256){ot(Q,me,W,J,H,V,ue,ie,re);return}}Le&8?(Se&16&&_e(Q,H,V),me!==Q&&g(W,me)):Se&16?Le&16?xt(Q,me,W,J,H,V,ue,ie,re):_e(Q,H,V,!0):(Se&8&&g(W,""),Le&16&&Me(me,W,J,H,V,ue,ie,re))},ot=(x,D,W,J,H,V,ue,ie,re)=>{x=x||Qi,D=D||Qi;const Q=x.length,Se=D.length,me=Math.min(Q,Se);let Ce;for(Ce=0;CeSe?_e(x,H,V,!0,!1,me):Me(D,W,J,H,V,ue,ie,re,me)},xt=(x,D,W,J,H,V,ue,ie,re)=>{let Q=0;const Se=D.length;let me=x.length-1,Ce=Se-1;for(;Q<=me&&Q<=Ce;){const Le=x[Q],qe=D[Q]=re?bi(D[Q]):Vn(D[Q]);if(Hr(Le,qe))O(Le,qe,W,null,H,V,ue,ie,re);else break;Q++}for(;Q<=me&&Q<=Ce;){const Le=x[me],qe=D[Ce]=re?bi(D[Ce]):Vn(D[Ce]);if(Hr(Le,qe))O(Le,qe,W,null,H,V,ue,ie,re);else break;me--,Ce--}if(Q>me){if(Q<=Ce){const Le=Ce+1,qe=LeCe)for(;Q<=me;)we(x[Q],H,V,!0),Q++;else{const Le=Q,qe=Q,lt=new Map;for(Q=qe;Q<=Ce;Q++){const de=D[Q]=re?bi(D[Q]):Vn(D[Q]);de.key!=null&<.set(de.key,Q)}let Ze,Et=0;const Xt=Ce-qe+1;let ti=!1,Bn=0;const vn=new Array(Xt);for(Q=0;Q=Xt){we(de,H,V,!0);continue}let ye;if(de.key!=null)ye=lt.get(de.key);else for(Ze=qe;Ze<=Ce;Ze++)if(vn[Ze-qe]===0&&Hr(de,D[Ze])){ye=Ze;break}ye===void 0?we(de,H,V,!0):(vn[ye-qe]=Q+1,ye>=Bn?Bn=ye:ti=!0,O(de,D[ye],W,null,H,V,ue,ie,re),Et++)}const q=ti?fh(vn):Qi;for(Ze=q.length-1,Q=Xt-1;Q>=0;Q--){const de=qe+Q,ye=D[de],ze=de+1{const{el:V,type:ue,transition:ie,children:re,shapeFlag:Q}=x;if(Q&6){at(x.component.subTree,D,W,J);return}if(Q&128){x.suspense.move(D,W,J);return}if(Q&64){ue.move(x,D,W,pt);return}if(ue===Re){i(V,D,W);for(let me=0;meie.enter(V),H);else{const{leave:me,delayLeave:Ce,afterLeave:Le}=ie,qe=()=>i(V,D,W),lt=()=>{me(V,()=>{qe(),Le&&Le()})};Ce?Ce(V,qe,lt):lt()}else i(V,D,W)},we=(x,D,W,J=!1,H=!1)=>{const{type:V,props:ue,ref:ie,children:re,dynamicChildren:Q,shapeFlag:Se,patchFlag:me,dirs:Ce}=x;if(ie!=null&&ma(ie,null,W,x,!0),Se&256){D.ctx.deactivate(x);return}const Le=Se&1&&Ce,qe=!js(x);let lt;if(qe&&(lt=ue&&ue.onVnodeBeforeUnmount)&&Kn(lt,D,x),Se&6)ke(x.component,W,J);else{if(Se&128){x.suspense.unmount(W,J);return}Le&&Pi(x,null,D,"beforeUnmount"),Se&64?x.type.remove(x,D,W,H,pt,J):Q&&(V!==Re||me>0&&me&64)?_e(Q,D,W,!1,!0):(V===Re&&me&384||!H&&Se&16)&&_e(re,D,W),J&&he(x)}(qe&&(lt=ue&&ue.onVnodeUnmounted)||Le)&&nn(()=>{lt&&Kn(lt,D,x),Le&&Pi(x,null,D,"unmounted")},W)},he=x=>{const{type:D,el:W,anchor:J,transition:H}=x;if(D===Re){ge(W,J);return}if(D===va){L(x);return}const V=()=>{r(W),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(x.shapeFlag&1&&H&&!H.persisted){const{leave:ue,delayLeave:ie}=H,re=()=>ue(W,V);ie?ie(x.el,V,re):re()}else V()},ge=(x,D)=>{let W;for(;x!==D;)W=_(x),r(x),x=W;r(D)},ke=(x,D,W)=>{const{bum:J,scope:H,update:V,subTree:ue,um:ie}=x;J&&ks(J),H.stop(),V&&(V.active=!1,we(ue,x,D,W)),ie&&nn(ie,D),nn(()=>{x.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},_e=(x,D,W,J=!1,H=!1,V=0)=>{for(let ue=V;uex.shapeFlag&6?Fe(x.component.subTree):x.shapeFlag&128?x.suspense.next():_(x.anchor||x.el),ft=(x,D,W)=>{x==null?D._vnode&&we(D._vnode,null,null,!0):O(D._vnode||null,x,D,null,null,null,W),pu(),hu(),D._vnode=x},pt={p:O,um:we,m:at,r:he,mt:nt,mc:Me,pc:be,pbc:Y,n:Fe,o:e};let Wt,ln;return t&&([Wt,ln]=t(pt)),{render:ft,hydrate:Wt,createApp:lh(ft,Wt)}}function Ni({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ju(e,t,n=!1){const i=e.children,r=t.children;if(We(i)&&We(r))for(let o=0;o>1,e[n[c]]0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const dh=e=>e.__isTeleport,Re=Symbol(void 0),Vs=Symbol(void 0),Ri=Symbol(void 0),va=Symbol(void 0),Mr=[];let Rn=null;function N(e=!1){Mr.push(Rn=e?null:[])}function ph(){Mr.pop(),Rn=Mr[Mr.length-1]||null}let Fr=1;function $u(e){Fr+=e}function Uu(e){return e.dynamicChildren=Fr>0?Rn||Qi:null,ph(),Fr>0&&Rn&&Rn.push(e),e}function B(e,t,n,i,r,o){return Uu(T(e,t,n,i,r,o,!0))}function mt(e,t,n,i,r){return Uu(pe(e,t,n,i,r,!0))}function hh(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const Ks="__vInternal",Wu=({key:e})=>e??null,qs=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mt(e)||Jt(e)||Je(e)?{i:_n,r:e,k:t,f:!!n}:e:null;function T(e,t=null,n=null,i=0,r=null,o=e===Re?0:1,l=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&qs(t),scopeId:vu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_n};return c?(ya(d,n),o&128&&e.normalize(d)):n&&(d.shapeFlag|=Mt(n)?8:16),Fr>0&&!l&&Rn&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&Rn.push(d),d}const pe=gh;function gh(e,t=null,n=null,i=0,r=null,o=!1){if((!e||e===Yp)&&(e=Ri),hh(e)){const c=ar(e,t,!0);return n&&ya(c,n),Fr>0&&!o&&Rn&&(c.shapeFlag&6?Rn[Rn.indexOf(e)]=c:Rn.push(c)),c.patchFlag|=-2,c}if(Sh(e)&&(e=e.__vccOpts),t){t=mh(t);let{class:c,style:d}=t;c&&!Mt(c)&&(t.class=St(c)),Tt(d)&&(au(d)&&!We(d)&&(d=Gt({},d)),t.style=Kt(d))}const l=Mt(e)?1:Dp(e)?128:dh(e)?64:Tt(e)?4:Je(e)?2:0;return T(e,t,n,i,r,l,o,!0)}function mh(e){return e?au(e)||Ks in e?Gt({},e):e:null}function ar(e,t,n=!1){const{props:i,ref:r,patchFlag:o,children:l}=e,c=t?Vu(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?n&&r?We(r)?r.concat(qs(t)):[r,qs(t)]:qs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ft(e=" ",t=0){return pe(Vs,null,e,t)}function je(e="",t=!1){return t?(N(),mt(Ri,null,e)):pe(Ri,null,e)}function Vn(e){return e==null||typeof e=="boolean"?pe(Ri):We(e)?pe(Re,null,e.slice()):typeof e=="object"?bi(e):pe(Vs,null,String(e))}function bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function ya(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(We(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),ya(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Ks in t)?t._ctx=_n:r===3&&_n&&(_n.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),i&64?(n=16,t=[Ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vu(...e){const t={};for(let n=0;n{It=e,e.scope.on()},Mi=()=>{It&&It.scope.off(),It=null};function Ku(e){return e.vnode.shapeFlag&4}let Br=!1;function Ch(e,t=!1){Br=t;const{props:n,children:i}=e.vnode,r=Ku(e);nh(e,n,r,t),sh(e,i);const o=r?wh(e,t):void 0;return Br=!1,o}function wh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=lu(new Proxy(e.ctx,Gp));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?_h(e):null;lr(e),ir();const o=yi(i,e,0,[e.props,r]);if(rr(),Mi(),Bl(o)){if(o.then(Mi,Mi),t)return o.then(l=>{qu(e,l,t)}).catch(l=>{Rs(l,e,0)});e.asyncDep=o}else qu(e,o,t)}else Xu(e,t)}function qu(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Tt(t)&&(e.setupState=uu(t)),Xu(e,n)}let zu;function Xu(e,t,n){const i=e.type;if(!e.render){if(!t&&zu&&!i.render){const r=i.template||da(e).template;if(r){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:c,compilerOptions:d}=i,m=Gt(Gt({isCustomElement:o,delimiters:c},l),d);i.render=zu(r,m)}}e.render=i.render||Dn}lr(e),ir(),Jp(e),rr(),Mi()}function Th(e){return new Proxy(e.attrs,{get(t,n){return tn(e,"get","$attrs"),t[n]}})}function _h(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=Th(e))},slots:e.slots,emit:e.emit,expose:t}}function zs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uu(lu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rr)return Rr[n](e)},has(t,n){return n in t||n in Rr}}))}function Eh(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function Sh(e){return Je(e)&&"__vccOpts"in e}const kh=(e,t)=>yp(e,t,Br),xh=Symbol(""),Ah=()=>Hs(xh),Lh="3.2.47",Oh="http://www.w3.org/2000/svg",Fi=typeof document<"u"?document:null,Yu=Fi&&Fi.createElement("template"),Dh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?Fi.createElementNS(Oh,e):Fi.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Fi.createTextNode(e),createComment:e=>Fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Yu.innerHTML=i?`${e}`:e;const c=Yu.content;if(i){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ph(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ih(e,t,n){const i=e.style,r=Mt(n);if(n&&!r){if(t&&!Mt(t))for(const o in t)n[o]==null&&ba(i,o,"");for(const o in n)ba(i,o,n[o])}else{const o=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=o)}}const Gu=/\s*!important$/;function ba(e,t,n){if(We(n))n.forEach(i=>ba(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Nh(e,t);Gu.test(n)?e.setProperty(nr(i),n.replace(Gu,""),"important"):e[i]=n}}const Ju=["Webkit","Moz","ms"],Ca={};function Nh(e,t){const n=Ca[t];if(n)return n;let i=Un(t);if(i!=="filter"&&i in e)return Ca[t]=i;i=Es(i);for(let r=0;rwa||(jh.then(()=>wa=0),wa=Date.now());function Uh(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Nn(Wh(i,n.value),t,5,[i])};return n.value=e,n.attached=$h(),n}function Wh(e,t){if(We(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const ec=/^on[a-z]/,Vh=(e,t,n,i,r=!1,o,l,c,d)=>{t==="class"?Ph(e,i,r):t==="style"?Ih(e,n,i):ws(t)?jo(t)||Hh(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kh(e,t,i,r))?Mh(e,t,i,o,l,c,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Rh(e,t,i,r))};function Kh(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&ec.test(t)&&Je(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ec.test(t)&&Mt(n)?!1:t in e}const ur=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?n=>ks(t,n):t};function qh(e){e.target.composing=!0}function tc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e._assign=ur(r);const o=i||r.props&&r.props.type==="number";Ci(e,t?"change":"input",l=>{if(l.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=As(c)),e._assign(c)}),n&&Ci(e,"change",()=>{e.value=e.value.trim()}),t||(Ci(e,"compositionstart",qh),Ci(e,"compositionend",tc),Ci(e,"change",tc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},o){if(e._assign=ur(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(r||e.type==="number")&&As(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},zh={deep:!0,created(e,t,n){e._assign=ur(n),Ci(e,"change",()=>{const i=e._modelValue,r=jr(e),o=e.checked,l=e._assign;if(We(i)){const c=Bo(i,r),d=c!==-1;if(o&&!d)l(i.concat(r));else if(!o&&d){const m=[...i];m.splice(c,1),l(m)}}else if(tr(i)){const c=new Set(i);o?c.add(r):c.delete(r),l(c)}else l(rc(e,o))})},mounted:nc,beforeUpdate(e,t,n){e._assign=ur(n),nc(e,t,n)}};function nc(e,{value:t,oldValue:n},i){e._modelValue=t,We(t)?e.checked=Bo(t,i.props.value)>-1:tr(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Ar(t,rc(e,!0)))}const Xs={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=tr(t);Ci(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?As(jr(l)):jr(l));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=ur(i)},mounted(e,{value:t}){ic(e,t)},beforeUpdate(e,t,n){e._assign=ur(n)},updated(e,{value:t}){ic(e,t)}};function ic(e,t){const n=e.multiple;if(!(n&&!We(t)&&!tr(t))){for(let i=0,r=e.options.length;i-1:o.selected=t.has(l);else if(Ar(jr(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jr(e){return"_value"in e?e._value:e.value}function rc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xh=["ctrl","shift","alt","meta"],Yh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xh.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...i)=>{for(let r=0;r{$r(e,!1)}):$r(e,t))},beforeUnmount(e,{value:t}){$r(e,t)}};function $r(e,t){e.style.display=t?e._vod:"none"}const Gh=Gt({patchProp:Vh},Dh);let sc;function Jh(){return sc||(sc=uh(Gh))}const Zh=(...e)=>{const t=Jh().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=Qh(i);if(!r)return;const o=t._component;!Je(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Qh(e){return Mt(e)?document.querySelector(e):e}/**! +(function(Tn){typeof define=="function"&&define.amd?define(Tn):Tn()})(function(){"use strict";var f1=Object.defineProperty;var d1=(Tn,Kt,Ai)=>Kt in Tn?f1(Tn,Kt,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):Tn[Kt]=Ai;var Ed=(Tn,Kt,Ai)=>(d1(Tn,typeof Kt!="symbol"?Kt+"":Kt,Ai),Ai);function Tn(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function Kt(e){if(We(e)){const t={};for(let n=0;n{if(n){const i=n.split(Sd);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function St(e){let t="";if(Mt(e))t=e;else if(We(e))for(let n=0;nAr(n,t))}const ae=e=>Mt(e)?e:e==null?"":We(e)||Tt(e)&&(e.toString===jl||!Je(e.toString))?JSON.stringify(e,Fl,2):String(e),Fl=(e,t)=>t&&t.__v_isRef?Fl(e,t.value):er(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r])=>(n[`${i} =>`]=r,n),{})}:tr(t)?{[`Set(${t.size})`]:[...t.values()]}:Tt(t)&&!We(t)&&!$l(t)?String(t):t,wt={},Qi=[],Dn=()=>{},Od=()=>!1,Dd=/^on[^a-z]/,ws=e=>Dd.test(e),jo=e=>e.startsWith("onUpdate:"),Gt=Object.assign,$o=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pd=Object.prototype.hasOwnProperty,it=(e,t)=>Pd.call(e,t),We=Array.isArray,er=e=>Or(e)==="[object Map]",tr=e=>Or(e)==="[object Set]",Hl=e=>Or(e)==="[object Date]",Je=e=>typeof e=="function",Mt=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Tt=e=>e!==null&&typeof e=="object",Bl=e=>Tt(e)&&Je(e.then)&&Je(e.catch),jl=Object.prototype.toString,Or=e=>jl.call(e),Id=e=>Or(e).slice(8,-1),$l=e=>Or(e)==="[object Object]",Uo=e=>Mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ts=Tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_s=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nd=/-(\w)/g,Un=_s(e=>e.replace(Nd,(t,n)=>n?n.toUpperCase():"")),Rd=/\B([A-Z])/g,nr=_s(e=>e.replace(Rd,"-$1").toLowerCase()),Es=_s(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wo=_s(e=>e?`on${Es(e)}`:""),Ss=(e,t)=>!Object.is(e,t),ks=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},As=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ul;const Md=()=>Ul||(Ul=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pn;class Fd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pn,!t&&Pn&&(this.index=(Pn.scopes||(Pn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pn;try{return Pn=this,t()}finally{Pn=n}}}on(){Pn=this}off(){Pn=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Wl=e=>(e.w&gi)>0,Vl=e=>(e.n&gi)>0,jd=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(g==="length"||g>=d)&&c.push(m)})}else switch(n!==void 0&&c.push(l.get(n)),t){case"add":We(e)?Uo(n)&&c.push(l.get("length")):(c.push(l.get(Li)),er(e)&&c.push(l.get(zo)));break;case"delete":We(e)||(c.push(l.get(Li)),er(e)&&c.push(l.get(zo)));break;case"set":er(e)&&c.push(l.get(Li));break}if(c.length===1)c[0]&&Yo(c[0]);else{const d=[];for(const m of c)m&&d.push(...m);Yo(Vo(d))}}function Yo(e,t){const n=We(e)?e:[...e];for(const i of n)i.computed&&Xl(i);for(const i of n)i.computed||Xl(i)}function Xl(e,t){(e!==In||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ud=Tn("__proto__,__v_isRef,__isVue"),Yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lr)),Wd=Go(),Vd=Go(!1,!0),Kd=Go(!0),Gl=qd();function qd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=gt(this);for(let o=0,l=this.length;o{e[t]=function(...n){ir();const i=gt(this)[t].apply(this,n);return rr(),i}}),e}function zd(e){const t=gt(this);return tn(t,"has",e),t.hasOwnProperty(e)}function Go(e=!1,t=!1){return function(i,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?up:su:t?ru:iu).get(i))return i;const l=We(i);if(!e){if(l&&it(Gl,r))return Reflect.get(Gl,r,o);if(r==="hasOwnProperty")return zd}const c=Reflect.get(i,r,o);return(Lr(r)?Yl.has(r):Ud(r))||(e||tn(i,"get",r),t)?c:Jt(c)?l&&Uo(r)?c:c.value:Tt(c)?e?ou(c):Qo(c):c}}const Xd=Jl(),Yd=Jl(!0);function Jl(e=!1){return function(n,i,r,o){let l=n[i];if(Pr(l)&&Jt(l)&&!Jt(r))return!1;if(!e&&(!ta(r)&&!Pr(r)&&(l=gt(l),r=gt(r)),!We(n)&&Jt(l)&&!Jt(r)))return l.value=r,!0;const c=We(n)&&Uo(i)?Number(i)e,Ls=e=>Reflect.getPrototypeOf(e);function Os(e,t,n=!1,i=!1){e=e.__v_raw;const r=gt(e),o=gt(t);n||(t!==o&&tn(r,"get",t),tn(r,"get",o));const{has:l}=Ls(r),c=i?Jo:n?ia:na;if(l.call(r,t))return c(e.get(t));if(l.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Ds(e,t=!1){const n=this.__v_raw,i=gt(n),r=gt(e);return t||(e!==r&&tn(i,"has",e),tn(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ps(e,t=!1){return e=e.__v_raw,!t&&tn(gt(e),"iterate",Li),Reflect.get(e,"size",e)}function Ql(e){e=gt(e);const t=gt(this);return Ls(t).has.call(t,e)||(t.add(e),ii(t,"add",e,e)),this}function eu(e,t){t=gt(t);const n=gt(this),{has:i,get:r}=Ls(n);let o=i.call(n,e);o||(e=gt(e),o=i.call(n,e));const l=r.call(n,e);return n.set(e,t),o?Ss(t,l)&&ii(n,"set",e,t):ii(n,"add",e,t),this}function tu(e){const t=gt(this),{has:n,get:i}=Ls(t);let r=n.call(t,e);r||(e=gt(e),r=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return r&&ii(t,"delete",e,void 0),o}function nu(){const e=gt(this),t=e.size!==0,n=e.clear();return t&&ii(e,"clear",void 0,void 0),n}function Is(e,t){return function(i,r){const o=this,l=o.__v_raw,c=gt(l),d=t?Jo:e?ia:na;return!e&&tn(c,"iterate",Li),l.forEach((m,g)=>i.call(r,d(m),d(g),o))}}function Ns(e,t,n){return function(...i){const r=this.__v_raw,o=gt(r),l=er(o),c=e==="entries"||e===Symbol.iterator&&l,d=e==="keys"&&l,m=r[e](...i),g=n?Jo:t?ia:na;return!t&&tn(o,"iterate",d?zo:Li),{next(){const{value:w,done:_}=m.next();return _?{value:w,done:_}:{value:c?[g(w[0]),g(w[1])]:g(w),done:_}},[Symbol.iterator](){return this}}}}function vi(e){return function(...t){return e==="delete"?!1:this}}function tp(){const e={get(o){return Os(this,o)},get size(){return Ps(this)},has:Ds,add:Ql,set:eu,delete:tu,clear:nu,forEach:Is(!1,!1)},t={get(o){return Os(this,o,!1,!0)},get size(){return Ps(this)},has:Ds,add:Ql,set:eu,delete:tu,clear:nu,forEach:Is(!1,!0)},n={get(o){return Os(this,o,!0)},get size(){return Ps(this,!0)},has(o){return Ds.call(this,o,!0)},add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear"),forEach:Is(!0,!1)},i={get(o){return Os(this,o,!0,!0)},get size(){return Ps(this,!0)},has(o){return Ds.call(this,o,!0)},add:vi("add"),set:vi("set"),delete:vi("delete"),clear:vi("clear"),forEach:Is(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ns(o,!1,!1),n[o]=Ns(o,!0,!1),t[o]=Ns(o,!1,!0),i[o]=Ns(o,!0,!0)}),[e,n,t,i]}const[np,ip,rp,sp]=tp();function Zo(e,t){const n=t?e?sp:rp:e?ip:np;return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(it(n,r)&&r in i?n:i,r,o)}const op={get:Zo(!1,!1)},ap={get:Zo(!1,!0)},lp={get:Zo(!0,!1)},iu=new WeakMap,ru=new WeakMap,su=new WeakMap,up=new WeakMap;function cp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fp(e){return e.__v_skip||!Object.isExtensible(e)?0:cp(Id(e))}function Qo(e){return Pr(e)?e:ea(e,!1,Zl,op,iu)}function dp(e){return ea(e,!1,ep,ap,ru)}function ou(e){return ea(e,!0,Qd,lp,su)}function ea(e,t,n,i,r){if(!Tt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const l=fp(e);if(l===0)return e;const c=new Proxy(e,l===2?i:n);return r.set(e,c),c}function sr(e){return Pr(e)?sr(e.__v_raw):!!(e&&e.__v_isReactive)}function Pr(e){return!!(e&&e.__v_isReadonly)}function ta(e){return!!(e&&e.__v_isShallow)}function au(e){return sr(e)||Pr(e)}function gt(e){const t=e&&e.__v_raw;return t?gt(t):e}function lu(e){return xs(e,"__v_skip",!0),e}const na=e=>Tt(e)?Qo(e):e,ia=e=>Tt(e)?ou(e):e;function pp(e){mi&&In&&(e=gt(e),zl(e.dep||(e.dep=Vo())))}function hp(e,t){e=gt(e);const n=e.dep;n&&Yo(n)}function Jt(e){return!!(e&&e.__v_isRef===!0)}function gp(e){return Jt(e)?e.value:e}const mp={get:(e,t,n)=>gp(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Jt(r)&&!Jt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function uu(e){return sr(e)?e:new Proxy(e,mp)}var cu;class vp{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[cu]=!1,this._dirty=!0,this.effect=new Xo(t,()=>{this._dirty||(this._dirty=!0,hp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=gt(this);return pp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}cu="__v_isReadonly";function yp(e,t,n=!1){let i,r;const o=Je(e);return o?(i=e,r=Dn):(i=e.get,r=e.set),new vp(i,r,o||!r,n)}function h1(e,...t){}function yi(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){Rs(o,t,n)}return r}function Nn(e,t,n,i){if(Je(e)){const o=yi(e,t,n,i);return o&&Bl(o)&&o.catch(l=>{Rs(l,t,n)}),o}const r=[];for(let o=0;o>>1;Nr(qt[i])Wn&&qt.splice(t,1)}function _p(e){We(e)?or.push(...e):(!ri||!ri.includes(e,e.allowRecurse?Oi+1:Oi))&&or.push(e),du()}function pu(e,t=Ir?Wn+1:0){for(;tNr(n)-Nr(i)),Oi=0;Oie.id==null?1/0:e.id,Ep=(e,t)=>{const n=Nr(e)-Nr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gu(e){ra=!1,Ir=!0,qt.sort(Ep);const t=Dn;try{for(Wn=0;WnMt(R)?R.trim():R)),w&&(r=n.map(As))}let c,d=i[c=Wo(t)]||i[c=Wo(Un(t))];!d&&o&&(d=i[c=Wo(nr(t))]),d&&Nn(d,e,6,r);const m=i[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Nn(m,e,6,r)}}function mu(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const o=e.emits;let l={},c=!1;if(!Je(e)){const d=m=>{const g=mu(m,t,!0);g&&(c=!0,Gt(l,g))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!o&&!c?(Tt(e)&&i.set(e,null),null):(We(o)?o.forEach(d=>l[d]=null):Gt(l,o),Tt(e)&&i.set(e,l),l)}function Ms(e,t){return!e||!ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),it(e,t[0].toLowerCase()+t.slice(1))||it(e,nr(t))||it(e,t))}let _n=null,vu=null;function Fs(e){const t=_n;return _n=e,vu=e&&e.type.__scopeId||null,t}function kp(e,t=_n,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&$u(-1);const o=Fs(t);let l;try{l=e(...r)}finally{Fs(o),i._d&&$u(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function g1(){}function aa(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[l],slots:c,attrs:d,emit:m,render:g,renderCache:w,data:_,setupState:R,ctx:k,inheritAttrs:O}=e;let U,P;const Z=Fs(e);try{if(n.shapeFlag&4){const L=r||i;U=Vn(g.call(L,L,w,o,R,_,k)),P=d}else{const L=t;U=Vn(L.length>1?L(o,{attrs:d,slots:c,emit:m}):L(o,null)),P=t.props?d:xp(d)}}catch(L){Mr.length=0,Rs(L,e,1),U=pe(Ri)}let se=U;if(P&&O!==!1){const L=Object.keys(P),{shapeFlag:xe}=se;L.length&&xe&7&&(l&&L.some(jo)&&(P=Ap(P,l)),se=ar(se,P))}return n.dirs&&(se=ar(se),se.dirs=se.dirs?se.dirs.concat(n.dirs):n.dirs),n.transition&&(se.transition=n.transition),U=se,Fs(Z),U}const xp=e=>{let t;for(const n in e)(n==="class"||n==="style"||ws(n))&&((t||(t={}))[n]=e[n]);return t},Ap=(e,t)=>{const n={};for(const i in e)(!jo(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Lp(e,t,n){const{props:i,children:r,component:o}=e,{props:l,children:c,patchFlag:d}=t,m=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return i?yu(i,l,m):!!l;if(d&8){const g=t.dynamicProps;for(let w=0;we.__isSuspense;function Pp(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):_p(e)}function Ip(e,t){if(It){let n=It.provides;const i=It.parent&&It.parent.provides;i===n&&(n=It.provides=Object.create(i)),n[e]=t}}function Hs(e,t,n=!1){const i=It||_n;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Je(t)?t.call(i.proxy):t}}const Bs={};function la(e,t,n){return bu(e,t,n)}function bu(e,t,{immediate:n,deep:i,flush:r,onTrack:o,onTrigger:l}=wt){const c=Bd()===(It==null?void 0:It.scope)?It:null;let d,m=!1,g=!1;if(Jt(e)?(d=()=>e.value,m=ta(e)):sr(e)?(d=()=>e,i=!0):We(e)?(g=!0,m=e.some(se=>sr(se)||ta(se)),d=()=>e.map(se=>{if(Jt(se))return se.value;if(sr(se))return Di(se);if(Je(se))return yi(se,c,2)})):Je(e)?t?d=()=>yi(e,c,2):d=()=>{if(!(c&&c.isUnmounted))return w&&w(),Nn(e,c,3,[_])}:d=Dn,t&&i){const se=d;d=()=>Di(se())}let w,_=se=>{w=P.onStop=()=>{yi(se,c,4)}},R;if(Br)if(_=Dn,t?n&&Nn(t,c,3,[d(),g?[]:void 0,_]):d(),r==="sync"){const se=Ah();R=se.__watcherHandles||(se.__watcherHandles=[])}else return Dn;let k=g?new Array(e.length).fill(Bs):Bs;const O=()=>{if(P.active)if(t){const se=P.run();(i||m||(g?se.some((L,xe)=>Ss(L,k[xe])):Ss(se,k)))&&(w&&w(),Nn(t,c,3,[se,k===Bs?void 0:g&&k[0]===Bs?[]:k,_]),k=se)}else P.run()};O.allowRecurse=!!t;let U;r==="sync"?U=O:r==="post"?U=()=>nn(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),U=()=>oa(O));const P=new Xo(d,U);t?n?O():k=P.run():r==="post"?nn(P.run.bind(P),c&&c.suspense):P.run();const Z=()=>{P.stop(),c&&c.scope&&$o(c.scope.effects,P)};return R&&R.push(Z),Z}function Np(e,t,n){const i=this.proxy,r=Mt(e)?e.includes(".")?Cu(i,e):()=>i[e]:e.bind(i,i);let o;Je(t)?o=t:(o=t.handler,n=t);const l=It;lr(this);const c=bu(r,o.bind(i),n);return l?lr(l):Mi(),c}function Cu(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r{Di(n,t)});else if($l(e))for(const n in e)Di(e[n],t);return e}function Rp(e){return Je(e)?{setup:e,name:e.name}:e}const js=e=>!!e.type.__asyncLoader,wu=e=>e.type.__isKeepAlive;function Mp(e,t){Tu(e,"a",t)}function Fp(e,t){Tu(e,"da",t)}function Tu(e,t,n=It){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($s(t,i,n),n){let r=n.parent;for(;r&&r.parent;)wu(r.parent.vnode)&&Hp(i,t,n,r),r=r.parent}}function Hp(e,t,n,i){const r=$s(t,e,i,!0);_u(()=>{$o(i[t],r)},n)}function $s(e,t,n=It,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;ir(),lr(n);const c=Nn(t,n,e,l);return Mi(),rr(),c});return i?r.unshift(o):r.push(o),o}}const si=e=>(t,n=It)=>(!Br||e==="sp")&&$s(e,(...i)=>t(...i),n),Bp=si("bm"),jp=si("m"),$p=si("bu"),Up=si("u"),Wp=si("bum"),_u=si("um"),Vp=si("sp"),Kp=si("rtg"),qp=si("rtc");function zp(e,t=It){$s("ec",e,t)}function fe(e,t){const n=_n;if(n===null)return e;const i=zs(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(l,c,void 0,o&&o[c]));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;ce?Ku(e)?zs(e)||e.proxy:ua(e.parent):null,Rr=Gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ua(e.parent),$root:e=>ua(e.root),$emit:e=>e.emit,$options:e=>da(e),$forceUpdate:e=>e.f||(e.f=()=>oa(e.update)),$nextTick:e=>e.n||(e.n=Cp.bind(e.proxy)),$watch:e=>Np.bind(e)}),ca=(e,t)=>e!==wt&&!e.__isScriptSetup&&it(e,t),Gp={get({_:e},t){const{ctx:n,setupState:i,data:r,props:o,accessCache:l,type:c,appContext:d}=e;let m;if(t[0]!=="$"){const R=l[t];if(R!==void 0)switch(R){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ca(i,t))return l[t]=1,i[t];if(r!==wt&&it(r,t))return l[t]=2,r[t];if((m=e.propsOptions[0])&&it(m,t))return l[t]=3,o[t];if(n!==wt&&it(n,t))return l[t]=4,n[t];fa&&(l[t]=0)}}const g=Rr[t];let w,_;if(g)return t==="$attrs"&&tn(e,"get",t),g(e);if((w=c.__cssModules)&&(w=w[t]))return w;if(n!==wt&&it(n,t))return l[t]=4,n[t];if(_=d.config.globalProperties,it(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return ca(r,t)?(r[t]=n,!0):i!==wt&&it(i,t)?(i[t]=n,!0):it(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o}},l){let c;return!!n[l]||e!==wt&&it(e,l)||ca(t,l)||(c=o[0])&&it(c,l)||it(i,l)||it(Rr,l)||it(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:it(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let fa=!0;function Jp(e){const t=da(e),n=e.proxy,i=e.ctx;fa=!1,t.beforeCreate&&xu(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:c,provide:d,inject:m,created:g,beforeMount:w,mounted:_,beforeUpdate:R,updated:k,activated:O,deactivated:U,beforeDestroy:P,beforeUnmount:Z,destroyed:se,unmounted:L,render:xe,renderTracked:p,renderTriggered:Pe,errorCaptured:Me,serverPrefetch:ne,expose:Y,inheritAttrs:Ee,components:De,directives:Te,filters:nt}=t;if(m&&Zp(m,i,null,e.appContext.config.unwrapInjectedRef),l)for(const Ie in l){const be=l[Ie];Je(be)&&(i[Ie]=be.bind(n))}if(r){const Ie=r.call(n,n);Tt(Ie)&&(e.data=Qo(Ie))}if(fa=!0,o)for(const Ie in o){const be=o[Ie],ot=Je(be)?be.bind(n,n):Je(be.get)?be.get.bind(n,n):Dn,xt=!Je(be)&&Je(be.set)?be.set.bind(n):Dn,at=kh({get:ot,set:xt});Object.defineProperty(i,Ie,{enumerable:!0,configurable:!0,get:()=>at.value,set:we=>at.value=we})}if(c)for(const Ie in c)Au(c[Ie],i,n,Ie);if(d){const Ie=Je(d)?d.call(n):d;Reflect.ownKeys(Ie).forEach(be=>{Ip(be,Ie[be])})}g&&xu(g,e,"c");function Ue(Ie,be){We(be)?be.forEach(ot=>Ie(ot.bind(n))):be&&Ie(be.bind(n))}if(Ue(Bp,w),Ue(jp,_),Ue($p,R),Ue(Up,k),Ue(Mp,O),Ue(Fp,U),Ue(zp,Me),Ue(qp,p),Ue(Kp,Pe),Ue(Wp,Z),Ue(_u,L),Ue(Vp,ne),We(Y))if(Y.length){const Ie=e.exposed||(e.exposed={});Y.forEach(be=>{Object.defineProperty(Ie,be,{get:()=>n[be],set:ot=>n[be]=ot})})}else e.exposed||(e.exposed={});xe&&e.render===Dn&&(e.render=xe),Ee!=null&&(e.inheritAttrs=Ee),De&&(e.components=De),Te&&(e.directives=Te)}function Zp(e,t,n=Dn,i=!1){We(e)&&(e=pa(e));for(const r in e){const o=e[r];let l;Tt(o)?"default"in o?l=Hs(o.from||r,o.default,!0):l=Hs(o.from||r):l=Hs(o),Jt(l)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:c=>l.value=c}):t[r]=l}}function xu(e,t,n){Nn(We(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Au(e,t,n,i){const r=i.includes(".")?Cu(n,i):()=>n[i];if(Mt(e)){const o=t[e];Je(o)&&la(r,o)}else if(Je(e))la(r,e.bind(n));else if(Tt(e))if(We(e))e.forEach(o=>Au(o,t,n,i));else{const o=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(o)&&la(r,o,e)}}function da(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,c=o.get(t);let d;return c?d=c:!r.length&&!n&&!i?d=t:(d={},r.length&&r.forEach(m=>Ws(d,m,l,!0)),Ws(d,t,l)),Tt(t)&&o.set(t,d),d}function Ws(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&Ws(e,o,n,!0),r&&r.forEach(l=>Ws(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const c=Qp[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const Qp={data:Lu,props:Ii,emits:Ii,methods:Ii,computed:Ii,beforeCreate:Zt,created:Zt,beforeMount:Zt,mounted:Zt,beforeUpdate:Zt,updated:Zt,beforeDestroy:Zt,beforeUnmount:Zt,destroyed:Zt,unmounted:Zt,activated:Zt,deactivated:Zt,errorCaptured:Zt,serverPrefetch:Zt,components:Ii,directives:Ii,watch:th,provide:Lu,inject:eh};function Lu(e,t){return t?e?function(){return Gt(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function eh(e,t){return Ii(pa(e),pa(t))}function pa(e){if(We(e)){const t={};for(let n=0;n0)&&!(l&16)){if(l&8){const g=e.vnode.dynamicProps;for(let w=0;w{d=!0;const[_,R]=Du(w,t,!0);Gt(l,_),R&&c.push(...R)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!o&&!d)return Tt(e)&&i.set(e,Qi),Qi;if(We(o))for(let g=0;g-1,R[1]=O<0||k-1||it(R,"default"))&&c.push(w)}}}const m=[l,c];return Tt(e)&&i.set(e,m),m}function Pu(e){return e[0]!=="$"}function Iu(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Nu(e,t){return Iu(e)===Iu(t)}function Ru(e,t){return We(t)?t.findIndex(n=>Nu(n,e)):Je(t)&&Nu(t,e)?0:-1}const Mu=e=>e[0]==="_"||e==="$stable",ga=e=>We(e)?e.map(Vn):[Vn(e)],rh=(e,t,n)=>{if(t._n)return t;const i=kp((...r)=>ga(t(...r)),n);return i._c=!1,i},Fu=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Mu(r))continue;const o=e[r];if(Je(o))t[r]=rh(r,o,i);else if(o!=null){const l=ga(o);t[r]=()=>l}}},Hu=(e,t)=>{const n=ga(t);e.slots.default=()=>n},sh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=gt(t),xs(t,"_",n)):Fu(t,e.slots={})}else e.slots={},t&&Hu(e,t);xs(e.slots,Ks,1)},oh=(e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,l=wt;if(i.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(Gt(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Fu(t,r)),l=t}else t&&(Hu(e,t),l={default:1});if(o)for(const c in r)!Mu(c)&&!(c in l)&&delete r[c]};function Bu(){return{app:null,config:{isNativeTag:Od,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ah=0;function lh(e,t){return function(i,r=null){Je(i)||(i=Object.assign({},i)),r!=null&&!Tt(r)&&(r=null);const o=Bu(),l=new Set;let c=!1;const d=o.app={_uid:ah++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:Lh,get config(){return o.config},set config(m){},use(m,...g){return l.has(m)||(m&&Je(m.install)?(l.add(m),m.install(d,...g)):Je(m)&&(l.add(m),m(d,...g))),d},mixin(m){return o.mixins.includes(m)||o.mixins.push(m),d},component(m,g){return g?(o.components[m]=g,d):o.components[m]},directive(m,g){return g?(o.directives[m]=g,d):o.directives[m]},mount(m,g,w){if(!c){const _=pe(i,r);return _.appContext=o,g&&t?t(_,m):e(_,m,w),c=!0,d._container=m,m.__vue_app__=d,zs(_.component)||_.component.proxy}},unmount(){c&&(e(null,d._container),delete d._container.__vue_app__)},provide(m,g){return o.provides[m]=g,d}};return d}}function ma(e,t,n,i,r=!1){if(We(e)){e.forEach((_,R)=>ma(_,t&&(We(t)?t[R]:t),n,i,r));return}if(js(i)&&!r)return;const o=i.shapeFlag&4?zs(i.component)||i.component.proxy:i.el,l=r?null:o,{i:c,r:d}=e,m=t&&t.r,g=c.refs===wt?c.refs={}:c.refs,w=c.setupState;if(m!=null&&m!==d&&(Mt(m)?(g[m]=null,it(w,m)&&(w[m]=null)):Jt(m)&&(m.value=null)),Je(d))yi(d,c,12,[l,g]);else{const _=Mt(d),R=Jt(d);if(_||R){const k=()=>{if(e.f){const O=_?it(w,d)?w[d]:g[d]:d.value;r?We(O)&&$o(O,o):We(O)?O.includes(o)||O.push(o):_?(g[d]=[o],it(w,d)&&(w[d]=g[d])):(d.value=[o],e.k&&(g[e.k]=d.value))}else _?(g[d]=l,it(w,d)&&(w[d]=l)):R&&(d.value=l,e.k&&(g[e.k]=l))};l?(k.id=-1,nn(k,n)):k()}}}const nn=Pp;function uh(e){return ch(e)}function ch(e,t){const n=Md();n.__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:l,createText:c,createComment:d,setText:m,setElementText:g,parentNode:w,nextSibling:_,setScopeId:R=Dn,insertStaticContent:k}=e,O=(x,D,W,J=null,H=null,V=null,ue=!1,ie=null,re=!!D.dynamicChildren)=>{if(x===D)return;x&&!Hr(x,D)&&(J=Fe(x),we(x,H,V,!0),x=null),D.patchFlag===-2&&(re=!1,D.dynamicChildren=null);const{type:Q,ref:Se,shapeFlag:me}=D;switch(Q){case Vs:U(x,D,W,J);break;case Ri:P(x,D,W,J);break;case va:x==null&&Z(D,W,J,ue);break;case Re:De(x,D,W,J,H,V,ue,ie,re);break;default:me&1?xe(x,D,W,J,H,V,ue,ie,re):me&6?Te(x,D,W,J,H,V,ue,ie,re):(me&64||me&128)&&Q.process(x,D,W,J,H,V,ue,ie,re,pt)}Se!=null&&H&&ma(Se,x&&x.ref,V,D||x,!D)},U=(x,D,W,J)=>{if(x==null)i(D.el=c(D.children),W,J);else{const H=D.el=x.el;D.children!==x.children&&m(H,D.children)}},P=(x,D,W,J)=>{x==null?i(D.el=d(D.children||""),W,J):D.el=x.el},Z=(x,D,W,J)=>{[x.el,x.anchor]=k(x.children,D,W,J,x.el,x.anchor)},se=({el:x,anchor:D},W,J)=>{let H;for(;x&&x!==D;)H=_(x),i(x,W,J),x=H;i(D,W,J)},L=({el:x,anchor:D})=>{let W;for(;x&&x!==D;)W=_(x),r(x),x=W;r(D)},xe=(x,D,W,J,H,V,ue,ie,re)=>{ue=ue||D.type==="svg",x==null?p(D,W,J,H,V,ue,ie,re):ne(x,D,H,V,ue,ie,re)},p=(x,D,W,J,H,V,ue,ie)=>{let re,Q;const{type:Se,props:me,shapeFlag:Ce,transition:Le,dirs:qe}=x;if(re=x.el=l(x.type,V,me&&me.is,me),Ce&8?g(re,x.children):Ce&16&&Me(x.children,re,null,J,H,V&&Se!=="foreignObject",ue,ie),qe&&Pi(x,null,J,"created"),Pe(re,x,x.scopeId,ue,J),me){for(const Ze in me)Ze!=="value"&&!Ts(Ze)&&o(re,Ze,null,me[Ze],V,x.children,J,H,_e);"value"in me&&o(re,"value",null,me.value),(Q=me.onVnodeBeforeMount)&&Kn(Q,J,x)}qe&&Pi(x,null,J,"beforeMount");const lt=(!H||H&&!H.pendingBranch)&&Le&&!Le.persisted;lt&&Le.beforeEnter(re),i(re,D,W),((Q=me&&me.onVnodeMounted)||lt||qe)&&nn(()=>{Q&&Kn(Q,J,x),lt&&Le.enter(re),qe&&Pi(x,null,J,"mounted")},H)},Pe=(x,D,W,J,H)=>{if(W&&R(x,W),J)for(let V=0;V{for(let Q=re;Q{const ie=D.el=x.el;let{patchFlag:re,dynamicChildren:Q,dirs:Se}=D;re|=x.patchFlag&16;const me=x.props||wt,Ce=D.props||wt;let Le;W&&Ni(W,!1),(Le=Ce.onVnodeBeforeUpdate)&&Kn(Le,W,D,x),Se&&Pi(D,x,W,"beforeUpdate"),W&&Ni(W,!0);const qe=H&&D.type!=="foreignObject";if(Q?Y(x.dynamicChildren,Q,ie,W,J,qe,V):ue||be(x,D,ie,null,W,J,qe,V,!1),re>0){if(re&16)Ee(ie,D,me,Ce,W,J,H);else if(re&2&&me.class!==Ce.class&&o(ie,"class",null,Ce.class,H),re&4&&o(ie,"style",me.style,Ce.style,H),re&8){const lt=D.dynamicProps;for(let Ze=0;Ze{Le&&Kn(Le,W,D,x),Se&&Pi(D,x,W,"updated")},J)},Y=(x,D,W,J,H,V,ue)=>{for(let ie=0;ie{if(W!==J){if(W!==wt)for(const ie in W)!Ts(ie)&&!(ie in J)&&o(x,ie,W[ie],null,ue,D.children,H,V,_e);for(const ie in J){if(Ts(ie))continue;const re=J[ie],Q=W[ie];re!==Q&&ie!=="value"&&o(x,ie,Q,re,ue,D.children,H,V,_e)}"value"in J&&o(x,"value",W.value,J.value)}},De=(x,D,W,J,H,V,ue,ie,re)=>{const Q=D.el=x?x.el:c(""),Se=D.anchor=x?x.anchor:c("");let{patchFlag:me,dynamicChildren:Ce,slotScopeIds:Le}=D;Le&&(ie=ie?ie.concat(Le):Le),x==null?(i(Q,W,J),i(Se,W,J),Me(D.children,W,Se,H,V,ue,ie,re)):me>0&&me&64&&Ce&&x.dynamicChildren?(Y(x.dynamicChildren,Ce,W,H,V,ue,ie),(D.key!=null||H&&D===H.subTree)&&ju(x,D,!0)):be(x,D,W,Se,H,V,ue,ie,re)},Te=(x,D,W,J,H,V,ue,ie,re)=>{D.slotScopeIds=ie,x==null?D.shapeFlag&512?H.ctx.activate(D,W,J,ue,re):nt(D,W,J,H,V,ue,re):dt(x,D,re)},nt=(x,D,W,J,H,V,ue)=>{const ie=x.component=bh(x,J,H);if(wu(x)&&(ie.ctx.renderer=pt),Ch(ie),ie.asyncDep){if(H&&H.registerDep(ie,Ue),!x.el){const re=ie.subTree=pe(Ri);P(null,re,D,W)}return}Ue(ie,x,D,W,H,V,ue)},dt=(x,D,W)=>{const J=D.component=x.component;if(Lp(x,D,W))if(J.asyncDep&&!J.asyncResolved){Ie(J,D,W);return}else J.next=D,Tp(J.update),J.update();else D.el=x.el,J.vnode=D},Ue=(x,D,W,J,H,V,ue)=>{const ie=()=>{if(x.isMounted){let{next:Se,bu:me,u:Ce,parent:Le,vnode:qe}=x,lt=Se,Ze;Ni(x,!1),Se?(Se.el=qe.el,Ie(x,Se,ue)):Se=qe,me&&ks(me),(Ze=Se.props&&Se.props.onVnodeBeforeUpdate)&&Kn(Ze,Le,Se,qe),Ni(x,!0);const Et=aa(x),Xt=x.subTree;x.subTree=Et,O(Xt,Et,w(Xt.el),Fe(Xt),x,H,V),Se.el=Et.el,lt===null&&Op(x,Et.el),Ce&&nn(Ce,H),(Ze=Se.props&&Se.props.onVnodeUpdated)&&nn(()=>Kn(Ze,Le,Se,qe),H)}else{let Se;const{el:me,props:Ce}=D,{bm:Le,m:qe,parent:lt}=x,Ze=js(D);if(Ni(x,!1),Le&&ks(Le),!Ze&&(Se=Ce&&Ce.onVnodeBeforeMount)&&Kn(Se,lt,D),Ni(x,!0),me&&ln){const Et=()=>{x.subTree=aa(x),ln(me,x.subTree,x,H,null)};Ze?D.type.__asyncLoader().then(()=>!x.isUnmounted&&Et()):Et()}else{const Et=x.subTree=aa(x);O(null,Et,W,J,x,H,V),D.el=Et.el}if(qe&&nn(qe,H),!Ze&&(Se=Ce&&Ce.onVnodeMounted)){const Et=D;nn(()=>Kn(Se,lt,Et),H)}(D.shapeFlag&256||lt&&js(lt.vnode)&<.vnode.shapeFlag&256)&&x.a&&nn(x.a,H),x.isMounted=!0,D=W=J=null}},re=x.effect=new Xo(ie,()=>oa(Q),x.scope),Q=x.update=()=>re.run();Q.id=x.uid,Ni(x,!0),Q()},Ie=(x,D,W)=>{D.component=x;const J=x.vnode.props;x.vnode=D,x.next=null,ih(x,D.props,J,W),oh(x,D.children,W),ir(),pu(),rr()},be=(x,D,W,J,H,V,ue,ie,re=!1)=>{const Q=x&&x.children,Se=x?x.shapeFlag:0,me=D.children,{patchFlag:Ce,shapeFlag:Le}=D;if(Ce>0){if(Ce&128){xt(Q,me,W,J,H,V,ue,ie,re);return}else if(Ce&256){ot(Q,me,W,J,H,V,ue,ie,re);return}}Le&8?(Se&16&&_e(Q,H,V),me!==Q&&g(W,me)):Se&16?Le&16?xt(Q,me,W,J,H,V,ue,ie,re):_e(Q,H,V,!0):(Se&8&&g(W,""),Le&16&&Me(me,W,J,H,V,ue,ie,re))},ot=(x,D,W,J,H,V,ue,ie,re)=>{x=x||Qi,D=D||Qi;const Q=x.length,Se=D.length,me=Math.min(Q,Se);let Ce;for(Ce=0;CeSe?_e(x,H,V,!0,!1,me):Me(D,W,J,H,V,ue,ie,re,me)},xt=(x,D,W,J,H,V,ue,ie,re)=>{let Q=0;const Se=D.length;let me=x.length-1,Ce=Se-1;for(;Q<=me&&Q<=Ce;){const Le=x[Q],qe=D[Q]=re?bi(D[Q]):Vn(D[Q]);if(Hr(Le,qe))O(Le,qe,W,null,H,V,ue,ie,re);else break;Q++}for(;Q<=me&&Q<=Ce;){const Le=x[me],qe=D[Ce]=re?bi(D[Ce]):Vn(D[Ce]);if(Hr(Le,qe))O(Le,qe,W,null,H,V,ue,ie,re);else break;me--,Ce--}if(Q>me){if(Q<=Ce){const Le=Ce+1,qe=LeCe)for(;Q<=me;)we(x[Q],H,V,!0),Q++;else{const Le=Q,qe=Q,lt=new Map;for(Q=qe;Q<=Ce;Q++){const de=D[Q]=re?bi(D[Q]):Vn(D[Q]);de.key!=null&<.set(de.key,Q)}let Ze,Et=0;const Xt=Ce-qe+1;let ti=!1,Bn=0;const vn=new Array(Xt);for(Q=0;Q=Xt){we(de,H,V,!0);continue}let ye;if(de.key!=null)ye=lt.get(de.key);else for(Ze=qe;Ze<=Ce;Ze++)if(vn[Ze-qe]===0&&Hr(de,D[Ze])){ye=Ze;break}ye===void 0?we(de,H,V,!0):(vn[ye-qe]=Q+1,ye>=Bn?Bn=ye:ti=!0,O(de,D[ye],W,null,H,V,ue,ie,re),Et++)}const q=ti?fh(vn):Qi;for(Ze=q.length-1,Q=Xt-1;Q>=0;Q--){const de=qe+Q,ye=D[de],ze=de+1{const{el:V,type:ue,transition:ie,children:re,shapeFlag:Q}=x;if(Q&6){at(x.component.subTree,D,W,J);return}if(Q&128){x.suspense.move(D,W,J);return}if(Q&64){ue.move(x,D,W,pt);return}if(ue===Re){i(V,D,W);for(let me=0;meie.enter(V),H);else{const{leave:me,delayLeave:Ce,afterLeave:Le}=ie,qe=()=>i(V,D,W),lt=()=>{me(V,()=>{qe(),Le&&Le()})};Ce?Ce(V,qe,lt):lt()}else i(V,D,W)},we=(x,D,W,J=!1,H=!1)=>{const{type:V,props:ue,ref:ie,children:re,dynamicChildren:Q,shapeFlag:Se,patchFlag:me,dirs:Ce}=x;if(ie!=null&&ma(ie,null,W,x,!0),Se&256){D.ctx.deactivate(x);return}const Le=Se&1&&Ce,qe=!js(x);let lt;if(qe&&(lt=ue&&ue.onVnodeBeforeUnmount)&&Kn(lt,D,x),Se&6)ke(x.component,W,J);else{if(Se&128){x.suspense.unmount(W,J);return}Le&&Pi(x,null,D,"beforeUnmount"),Se&64?x.type.remove(x,D,W,H,pt,J):Q&&(V!==Re||me>0&&me&64)?_e(Q,D,W,!1,!0):(V===Re&&me&384||!H&&Se&16)&&_e(re,D,W),J&&he(x)}(qe&&(lt=ue&&ue.onVnodeUnmounted)||Le)&&nn(()=>{lt&&Kn(lt,D,x),Le&&Pi(x,null,D,"unmounted")},W)},he=x=>{const{type:D,el:W,anchor:J,transition:H}=x;if(D===Re){ge(W,J);return}if(D===va){L(x);return}const V=()=>{r(W),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(x.shapeFlag&1&&H&&!H.persisted){const{leave:ue,delayLeave:ie}=H,re=()=>ue(W,V);ie?ie(x.el,V,re):re()}else V()},ge=(x,D)=>{let W;for(;x!==D;)W=_(x),r(x),x=W;r(D)},ke=(x,D,W)=>{const{bum:J,scope:H,update:V,subTree:ue,um:ie}=x;J&&ks(J),H.stop(),V&&(V.active=!1,we(ue,x,D,W)),ie&&nn(ie,D),nn(()=>{x.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},_e=(x,D,W,J=!1,H=!1,V=0)=>{for(let ue=V;uex.shapeFlag&6?Fe(x.component.subTree):x.shapeFlag&128?x.suspense.next():_(x.anchor||x.el),ft=(x,D,W)=>{x==null?D._vnode&&we(D._vnode,null,null,!0):O(D._vnode||null,x,D,null,null,null,W),pu(),hu(),D._vnode=x},pt={p:O,um:we,m:at,r:he,mt:nt,mc:Me,pc:be,pbc:Y,n:Fe,o:e};let Wt,ln;return t&&([Wt,ln]=t(pt)),{render:ft,hydrate:Wt,createApp:lh(ft,Wt)}}function Ni({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ju(e,t,n=!1){const i=e.children,r=t.children;if(We(i)&&We(r))for(let o=0;o>1,e[n[c]]0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const dh=e=>e.__isTeleport,Re=Symbol(void 0),Vs=Symbol(void 0),Ri=Symbol(void 0),va=Symbol(void 0),Mr=[];let Rn=null;function N(e=!1){Mr.push(Rn=e?null:[])}function ph(){Mr.pop(),Rn=Mr[Mr.length-1]||null}let Fr=1;function $u(e){Fr+=e}function Uu(e){return e.dynamicChildren=Fr>0?Rn||Qi:null,ph(),Fr>0&&Rn&&Rn.push(e),e}function B(e,t,n,i,r,o){return Uu(T(e,t,n,i,r,o,!0))}function mt(e,t,n,i,r){return Uu(pe(e,t,n,i,r,!0))}function hh(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const Ks="__vInternal",Wu=({key:e})=>e??null,qs=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mt(e)||Jt(e)||Je(e)?{i:_n,r:e,k:t,f:!!n}:e:null;function T(e,t=null,n=null,i=0,r=null,o=e===Re?0:1,l=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&qs(t),scopeId:vu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_n};return c?(ya(d,n),o&128&&e.normalize(d)):n&&(d.shapeFlag|=Mt(n)?8:16),Fr>0&&!l&&Rn&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&Rn.push(d),d}const pe=gh;function gh(e,t=null,n=null,i=0,r=null,o=!1){if((!e||e===Yp)&&(e=Ri),hh(e)){const c=ar(e,t,!0);return n&&ya(c,n),Fr>0&&!o&&Rn&&(c.shapeFlag&6?Rn[Rn.indexOf(e)]=c:Rn.push(c)),c.patchFlag|=-2,c}if(Sh(e)&&(e=e.__vccOpts),t){t=mh(t);let{class:c,style:d}=t;c&&!Mt(c)&&(t.class=St(c)),Tt(d)&&(au(d)&&!We(d)&&(d=Gt({},d)),t.style=Kt(d))}const l=Mt(e)?1:Dp(e)?128:dh(e)?64:Tt(e)?4:Je(e)?2:0;return T(e,t,n,i,r,l,o,!0)}function mh(e){return e?au(e)||Ks in e?Gt({},e):e:null}function ar(e,t,n=!1){const{props:i,ref:r,patchFlag:o,children:l}=e,c=t?Vu(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?n&&r?We(r)?r.concat(qs(t)):[r,qs(t)]:qs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Re?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ft(e=" ",t=0){return pe(Vs,null,e,t)}function je(e="",t=!1){return t?(N(),mt(Ri,null,e)):pe(Ri,null,e)}function Vn(e){return e==null||typeof e=="boolean"?pe(Ri):We(e)?pe(Re,null,e.slice()):typeof e=="object"?bi(e):pe(Vs,null,String(e))}function bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function ya(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(We(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),ya(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Ks in t)?t._ctx=_n:r===3&&_n&&(_n.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),i&64?(n=16,t=[Ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vu(...e){const t={};for(let n=0;n{It=e,e.scope.on()},Mi=()=>{It&&It.scope.off(),It=null};function Ku(e){return e.vnode.shapeFlag&4}let Br=!1;function Ch(e,t=!1){Br=t;const{props:n,children:i}=e.vnode,r=Ku(e);nh(e,n,r,t),sh(e,i);const o=r?wh(e,t):void 0;return Br=!1,o}function wh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=lu(new Proxy(e.ctx,Gp));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?_h(e):null;lr(e),ir();const o=yi(i,e,0,[e.props,r]);if(rr(),Mi(),Bl(o)){if(o.then(Mi,Mi),t)return o.then(l=>{qu(e,l,t)}).catch(l=>{Rs(l,e,0)});e.asyncDep=o}else qu(e,o,t)}else Xu(e,t)}function qu(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Tt(t)&&(e.setupState=uu(t)),Xu(e,n)}let zu;function Xu(e,t,n){const i=e.type;if(!e.render){if(!t&&zu&&!i.render){const r=i.template||da(e).template;if(r){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:c,compilerOptions:d}=i,m=Gt(Gt({isCustomElement:o,delimiters:c},l),d);i.render=zu(r,m)}}e.render=i.render||Dn}lr(e),ir(),Jp(e),rr(),Mi()}function Th(e){return new Proxy(e.attrs,{get(t,n){return tn(e,"get","$attrs"),t[n]}})}function _h(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=Th(e))},slots:e.slots,emit:e.emit,expose:t}}function zs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uu(lu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rr)return Rr[n](e)},has(t,n){return n in t||n in Rr}}))}function Eh(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function Sh(e){return Je(e)&&"__vccOpts"in e}const kh=(e,t)=>yp(e,t,Br),xh=Symbol(""),Ah=()=>Hs(xh),Lh="3.2.47",Oh="http://www.w3.org/2000/svg",Fi=typeof document<"u"?document:null,Yu=Fi&&Fi.createElement("template"),Dh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?Fi.createElementNS(Oh,e):Fi.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Fi.createTextNode(e),createComment:e=>Fi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Yu.innerHTML=i?`${e}`:e;const c=Yu.content;if(i){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ph(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ih(e,t,n){const i=e.style,r=Mt(n);if(n&&!r){if(t&&!Mt(t))for(const o in t)n[o]==null&&ba(i,o,"");for(const o in n)ba(i,o,n[o])}else{const o=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=o)}}const Gu=/\s*!important$/;function ba(e,t,n){if(We(n))n.forEach(i=>ba(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Nh(e,t);Gu.test(n)?e.setProperty(nr(i),n.replace(Gu,""),"important"):e[i]=n}}const Ju=["Webkit","Moz","ms"],Ca={};function Nh(e,t){const n=Ca[t];if(n)return n;let i=Un(t);if(i!=="filter"&&i in e)return Ca[t]=i;i=Es(i);for(let r=0;rwa||(jh.then(()=>wa=0),wa=Date.now());function Uh(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Nn(Wh(i,n.value),t,5,[i])};return n.value=e,n.attached=$h(),n}function Wh(e,t){if(We(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const ec=/^on[a-z]/,Vh=(e,t,n,i,r=!1,o,l,c,d)=>{t==="class"?Ph(e,i,r):t==="style"?Ih(e,n,i):ws(t)?jo(t)||Hh(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kh(e,t,i,r))?Mh(e,t,i,o,l,c,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Rh(e,t,i,r))};function Kh(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&ec.test(t)&&Je(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ec.test(t)&&Mt(n)?!1:t in e}const ur=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?n=>ks(t,n):t};function qh(e){e.target.composing=!0}function tc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e._assign=ur(r);const o=i||r.props&&r.props.type==="number";Ci(e,t?"change":"input",l=>{if(l.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=As(c)),e._assign(c)}),n&&Ci(e,"change",()=>{e.value=e.value.trim()}),t||(Ci(e,"compositionstart",qh),Ci(e,"compositionend",tc),Ci(e,"change",tc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},o){if(e._assign=ur(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(r||e.type==="number")&&As(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},zh={deep:!0,created(e,t,n){e._assign=ur(n),Ci(e,"change",()=>{const i=e._modelValue,r=jr(e),o=e.checked,l=e._assign;if(We(i)){const c=Bo(i,r),d=c!==-1;if(o&&!d)l(i.concat(r));else if(!o&&d){const m=[...i];m.splice(c,1),l(m)}}else if(tr(i)){const c=new Set(i);o?c.add(r):c.delete(r),l(c)}else l(rc(e,o))})},mounted:nc,beforeUpdate(e,t,n){e._assign=ur(n),nc(e,t,n)}};function nc(e,{value:t,oldValue:n},i){e._modelValue=t,We(t)?e.checked=Bo(t,i.props.value)>-1:tr(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Ar(t,rc(e,!0)))}const Xs={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=tr(t);Ci(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?As(jr(l)):jr(l));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=ur(i)},mounted(e,{value:t}){ic(e,t)},beforeUpdate(e,t,n){e._assign=ur(n)},updated(e,{value:t}){ic(e,t)}};function ic(e,t){const n=e.multiple;if(!(n&&!We(t)&&!tr(t))){for(let i=0,r=e.options.length;i-1:o.selected=t.has(l);else if(Ar(jr(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jr(e){return"_value"in e?e._value:e.value}function rc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xh=["ctrl","shift","alt","meta"],Yh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xh.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...i)=>{for(let r=0;r{$r(e,!1)}):$r(e,t))},beforeUnmount(e,{value:t}){$r(e,t)}};function $r(e,t){e.style.display=t?e._vod:"none"}const Gh=Gt({patchProp:Vh},Dh);let sc;function Jh(){return sc||(sc=uh(Gh))}const Zh=(...e)=>{const t=Jh().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=Qh(i);if(!r)return;const o=t._component;!Je(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function Qh(e){return Mt(e)?document.querySelector(e):e}/**! * Sortable 1.15.0 * @author RubaXa * @author owenm @@ -26,7 +26,7 @@ If you have any suggestions or opinions, please feel free to raise an issue or P If you find this extension helpful, please give me a star on Github! Developed by: Physton -Github: Physton/sd-webui-prompt-all-in-one`,translateSuccess:!1,errorMessage:"",translatedText:"",loading:!1,isOpen:!1,configs:[],apiKey:"",tagCompleteFiles:[],tagCompleteFilesLoading:!1,tagCompleteFileKey:"",tagCompleteResults:[],onlyCsvOnAutoValue:!1,mbart50Loading:!1,mbart50Success:!1,mbart50Message:""}},computed:{apiItem(){return oe.getTranslateApiItem(this.translateApis,this.apiKey)},supportApi(){if(!this.translateApis||this.translateApis.length<=0)return[];let e=JSON.parse(JSON.stringify(this.translateApis));return e.forEach(t=>{t.children.forEach(n=>{n.disabled=!n.support[this.languageCode]})}),e}},mounted(){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1},emits:["update:translateApi","forceUpdate:translateApi","update:tagCompleteFile","update:onlyCsvOnAuto"],watch:{apiKey:{handler:function(e,t){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1,this.configs=[],this.gradioAPI.getData("translate_api."+this.apiKey).then(n=>{const i=this.apiItem;if(i&&i.config){for(const r of this.apiItem.config)n?r.value=n[r.key]||r.default:r.value=r.default||"",this.configs.push(r);console.log(this.configs)}})},immediate:!1}},methods:{open(e){this.apiKey=e,this.isOpen=!0,this.errorMessage="",this.translatedText="",this.loading=!1,this.tagCompleteFileKey=this.tagCompleteFile,this.onlyCsvOnAutoValue=this.onlyCsvOnAuto,this.mbart50Success=!1,this.mbart50Message="",this.refreshCSVs()},getItemName(e){let t=e.name;return t=t.replace("[Free] ","["+this.getLang("free")+"] "),t=t.replace("[ApiKey] ","["+this.getLang("apply_for_free")+"] "),t},onChangeConfigValue(e){e.type==="input"&&e.value===""&&e.default&&(e.value=e.default)},refreshCSVs(){this.tagCompleteFilesLoading||(this.tagCompleteFilesLoading=!0,this.tagCompleteFiles=[],this.gradioAPI.getCSVs().then(e=>{if(this.tagCompleteFilesLoading=!1,!(!e||e.length<=0)){this.tagCompleteFiles.push({key:"",name:this.getLang("not_enable")});for(const t of e)this.tagCompleteFiles.push({key:t.key,name:t.key})}}).catch(e=>{this.tagCompleteFilesLoading=!1}))},onTestClick(){if(this.loading)return;this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!0;let e={};for(const t of this.configs)e[t.key]=t.value;this.translate(this.testText,"en_US",this.languageCode,this.apiKey,e).then(t=>{t.success?(this.translatedText=t.translated_text,this.translateSuccess=!0):this.errorMessage=t.message,this.loading=!1}).catch(t=>{this.errorMessage=t.message,this.loading=!1})},translate(e,t,n,i=null,r=null){return new Promise(async(o,l)=>{i=i||this.translateApi,r=r||this.translateApiConfig||{},this.gradioAPI.translate(e,t,n,i,r).then(c=>{c.success?o(c):l(c)}).catch(c=>{l(c)})})},onSaveClick(){this.isOpen=!1;let e={};for(const t of this.configs)e[t.key]=t.value;this.$emit("update:translateApi",this.apiKey),this.$emit("update:tagCompleteFile",this.tagCompleteFileKey),this.$emit("update:onlyCsvOnAuto",this.onlyCsvOnAutoValue),this.gradioAPI.setData("translate_api."+this.apiKey,e).then(t=>{this.apiKey===this.translateApi&&this.$emit("forceUpdate:translateApi")})},onCloseClick(){this.isOpen=!1},onTagCompleteTestClick(){this.tagCompleteResults=[],["1girl","Robot dog"].forEach(t=>{let n=this.getLang("translate_result");this.translateToLocalByCSV(t,this.tagCompleteFileKey,!0).then(i=>{this.tagCompleteResults.push(n.replace("{0}",t).replace("{1}",i))}).catch(i=>{this.$toastr.error(i)})})},onMbart50Initialize(){this.mbart50Loading=!0,this.mbart50Success=!1,this.mbart50Message="",this.gradioAPI.mbart50Initialize().then(e=>{this.mbart50Loading=!1,e.success?(this.mbart50Success=!0,this.mbart50Message=this.getLang("initialize_finished")):this.mbart50Message=this.getLang("initialize_failed")+": "+e.message}).catch(e=>{this.mbart50Loading=!1,this.mbart50Message=e.message})}}},dv={key:0,class:"physton-prompt-translate-setting"},pv={class:"translate-setting-main"},hv={class:"translate-setting-content"},gv={class:"setting-line"},mv={class:"line-title"},vv={class:"line-content"},yv=["label"],bv=["value","disabled"],Cv={key:0,class:"setting-line"},wv=T("div",{class:"line-title"},null,-1),Tv={class:"line-content"},_v={class:"common-red"},Ev={key:1,class:"setting-line"},Sv=T("div",{class:"line-title"},null,-1),kv={class:"line-content"},xv={class:"help-list"},Av={class:"help-item"},Lv=["href"],Ov={class:"setting-line"},Dv={class:"line-title"},Pv={class:"line-content"},Iv=["onUpdate:modelValue","onChange"],Nv=["onUpdate:modelValue"],Rv=["value"],Mv=["innerHTML"],Fv={key:2,class:"setting-line"},Hv={class:"line-title"},Bv={class:"line-content"},jv=["innerHTML"],$v={key:3,class:"setting-line"},Uv=T("div",{class:"line-title"},null,-1),Wv={class:"line-content"},Vv={class:"setting-line"},Kv={class:"line-title"},qv={class:"line-content"},zv={class:"setting-line"},Xv=T("div",{class:"line-title"},null,-1),Yv={class:"line-content"},Gv={class:"setting-line"},Jv=T("div",{class:"line-title"},null,-1),Zv={class:"line-content"},Qv={key:0,class:"translate-error"},ey={class:"setting-line"},ty=T("div",{class:"line-title"},"TagComplete",-1),ny={class:"line-content"},iy=T("div",{class:"help-list"},[T("div",{class:"help-item"},[Ft("[?] "),T("a",{href:"https://physton.github.io/sd-webui-prompt-all-in-one-assets/TranslationApiConfiguration.html#tagcomplete-translation-enhancement",target:"_blank"},"[Wiki] TagComplete Translation enhancement")])],-1),ry=["innerHTML"],sy=["innerHTML"],oy={class:"line-row"},ay=["value"],ly={class:"setting-line"},uy=T("div",{class:"line-title"},null,-1),cy={class:"line-content"},fy={ref:"tagCompleteResults"},dy={class:"setting-btns"};function py(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return r.isOpen?(N(),B("div",dv,[T("div",pv,[T("div",hv,[T("div",gv,[T("div",mv,ae(e.getLang("translate_api")),1),T("div",vv,[fe(T("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>r.apiKey=d)},[(N(!0),B(Re,null,vt(o.supportApi,d=>(N(),B("optgroup",{key:d.type,label:e.getLang(d.type)},[(N(!0),B(Re,null,vt(d.children,m=>(N(),B("option",{key:m.key,value:m.key,disabled:m.disabled},ae(o.getItemName(m)),9,bv))),128))],8,yv))),128))],512),[[Xs,r.apiKey]])])]),o.apiItem&&o.apiItem.type=="translators"?(N(),B("div",Cv,[wv,T("div",Tv,[T("span",_v,"*"+ae(e.getLang("not_api_key_desc")),1)])])):je("",!0),o.apiItem.help?(N(),B("div",Ev,[Sv,T("div",kv,[(N(!0),B(Re,null,vt(o.apiItem.help,d=>(N(),B("div",xv,[T("div",Av,[Ft("[?] "),T("a",{href:d.url,target:"_blank"},ae(d.title),9,Lv)])]))),256))])])):je("",!0),(N(!0),B(Re,null,vt(r.configs,d=>(N(),B("div",Ov,[T("div",Dv,ae(d.title),1),T("div",Pv,[d.type=="input"?fe((N(),B("input",{key:0,type:"text","onUpdate:modelValue":m=>d.value=m,onChange:m=>o.onChangeConfigValue(d)},null,40,Iv)),[[Hi,d.value]]):je("",!0),d.type=="select"?fe((N(),B("select",{key:1,"onUpdate:modelValue":m=>d.value=m},[(N(!0),B(Re,null,vt(d.options,m=>(N(),B("option",{value:m},ae(m),9,Rv))),256))],8,Nv)),[[Xs,d.value]]):je("",!0),d.desc?(N(),B("div",{key:2,innerHTML:d.desc},null,8,Mv)):je("",!0)])]))),256)),o.apiItem.key==="mbart50"?(N(),B("div",Fv,[T("div",Hv,ae(e.getLang("initialize")),1),T("div",Bv,[T("div",{class:"hover-scale-120 test-btn",onClick:t[1]||(t[1]=(...d)=>o.onMbart50Initialize&&o.onMbart50Initialize(...d))},[r.mbart50Loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("initialize")),1)],64))]),T("p",{class:"common-red",innerHTML:e.getLang("download_model_desc")},null,8,jv)])])):je("",!0),o.apiItem.key==="mbart50"&&r.mbart50Message?(N(),B("div",$v,[Uv,T("div",Wv,[T("div",{class:St([r.mbart50Success?"":"common-red"])},ae(r.mbart50Message),3)])])):je("",!0),T("div",Vv,[T("div",Kv,ae(e.getLang("translate_test")),1),T("div",qv,[fe(T("textarea",{class:"test-input","onUpdate:modelValue":t[2]||(t[2]=d=>r.testText=d)},null,512),[[Hi,r.testText]])])]),T("div",zv,[Xv,T("div",Yv,[T("div",{class:"hover-scale-120 test-btn",onClick:t[3]||(t[3]=(...d)=>o.onTestClick&&o.onTestClick(...d))},[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("test")),1)],64))])])]),T("div",Gv,[Jv,T("div",Zv,[!r.translateSuccess&&r.errorMessage?(N(),B("div",Qv,ae(r.errorMessage),1)):je("",!0),r.translatedText?fe((N(),B("textarea",{key:1,class:"test-input","onUpdate:modelValue":t[4]||(t[4]=d=>r.translatedText=d)},null,512)),[[Hi,r.translatedText]]):je("",!0)])]),T("div",ey,[ty,T("div",ny,[iy,T("div",{innerHTML:e.getLang("tagcomplete_translate_desc")},null,8,ry),T("div",{class:"common-red",innerHTML:e.getLang("tagcomplete_translate_desc2")},null,8,sy),T("div",oy,[fe(T("select",{"onUpdate:modelValue":t[5]||(t[5]=d=>r.tagCompleteFileKey=d),onChange:t[6]||(t[6]=d=>r.tagCompleteResults=[])},[(N(!0),B(Re,null,vt(r.tagCompleteFiles,d=>(N(),B("option",{value:d.key},ae(d.name),9,ay))),256))],544),[[Xs,r.tagCompleteFileKey]]),fe((N(),B("div",{class:"refresh-btn hover-scale-120",onClick:t[7]||(t[7]=(...d)=>o.refreshCSVs&&o.refreshCSVs(...d))},[r.tagCompleteFilesLoading?(N(),mt(l,{key:0,name:"loading"})):(N(),mt(l,{key:1,name:"refresh"}))])),[[c,e.getLang("refresh")]])]),T("label",{class:"onlyCsvOnAuto",style:Kt({display:r.tagCompleteFileKey?"flex":"none"})},[fe(T("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":t[8]||(t[8]=d=>r.onlyCsvOnAutoValue=d)},null,512),[[zh,r.onlyCsvOnAutoValue]]),T("span",null,ae(e.getLang("only_csv_on_auto")),1)],4)])]),fe(T("div",ly,[uy,T("div",cy,[T("div",{class:"hover-scale-120 test-btn",onClick:t[9]||(t[9]=(...d)=>o.onTagCompleteTestClick&&o.onTagCompleteTestClick(...d))},ae(e.getLang("test")),1),fe(T("div",fy,[(N(!0),B(Re,null,vt(r.tagCompleteResults,d=>(N(),B("p",{key:d},ae(d),1))),128))],512),[[_t,r.tagCompleteResults.length>0]])])],512),[[_t,r.tagCompleteFileKey]])]),T("div",dy,[T("div",{class:"translate-save hover-scale-120",onClick:t[10]||(t[10]=(...d)=>o.onSaveClick&&o.onSaveClick(...d))},ae(e.getLang("save")),1),T("div",{class:"translate-close hover-scale-120",onClick:t[11]||(t[11]=(...d)=>o.onCloseClick&&o.onCloseClick(...d))},ae(e.getLang("close")),1)])])])):je("",!0)}const hy=sn(fv,[["render",py]]),gy={name:"SelectLanguage",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1}},computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.$nextTick(()=>{this.scrollToSelectedItem()})},close(){this.isOpen=!1},onLanguageClick(e){this.$emit("update:languageCode",e.code),this.close()},scrollToSelectedItem(){const e=this.$refs.items;for(let t=0;to.close&&o.close(...c))},[T("div",{class:"language-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"language-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"language-list",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[(N(!0),B(Re,null,vt(e.languages,c=>(N(),B("div",{key:c.code,class:St(["language-item",c.code==e.languageCode?"selected":""]),ref_for:!0,ref:"items",onClick:d=>o.onLanguageClick(c)},ae(c.code)+" - "+ae(c.name),11,my))),128))])])])):je("",!0)}const yy=sn(gy,[["render",vy]]),by={components:{IconSvg:Fn},props:{},mixins:[Yn],data(){return{favoriteKey:"",favorites:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use"],mounted(){this.favorites.forEach(e=>{this.getFavorites(e.key)})},methods:{formatTime(e){return oe.formatTime(e*1e3,!1)},getFavorites(e){if(!e)return;let t=this.favorites.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getFavorites(e).then(n=>{n&&n.length>0&&(n.reverse(),n.forEach(i=>{i.is_favorite=!0}),t.list=n),window.phystonPromptfavorites=this.favorites,this.emptyMsg=this.getLang("no_favorite"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_favorite_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.favoriteKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.favorite.style.top=t.pageY+2+"px",this.$refs.favorite.style.left=t.pageX+2+"px",this.getFavorites(this.favoriteKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.favoriteKey=e,this.getFavorites(this.favoriteKey)},onFavoriteClick(e){let t=this.favorites.find(i=>i.key===this.favoriteKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.favoriteKey,n.id).then(i=>{i&&(n.is_favorite=!1,window.phystonPromptfavorites=this.favorites)}):this.gradioAPI.doFavorite(this.favoriteKey,n.id).then(i=>{i&&(n.is_favorite=!0,window.phystonPromptfavorites=this.favorites)})},onCopyClick(e){let t=this.favorites.find(i=>i.key===this.favoriteKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.favorites.find(o=>o.key===this.favoriteKey);if(!n)return;let i=n.list[e];const r=t.target.value;this.gradioAPI.setFavoriteName(this.favoriteKey,i.id,r).then(o=>{o?(i.name=r,window.phystonPromptfavorites=this.favorites):t.target.value=i.name}).catch(o=>{t.target.value=i.name})},onItemMouseEnter(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.hide(),this.$emit("use",t.list[e]))}}},Cy={class:"popup-tabs"},wy=["onClick"],Ty={class:"tab-name"},_y={class:"tab-type"},Ey={class:"tab-count"},Sy={class:"popup-detail"},ky={class:"popup-item-tags"},xy={key:0,class:"item-wrap"},Ay={key:1,class:"item-tag"},Ly={class:"item-tag-value"},Oy={class:"item-tag-local-value"},Dy={class:"content-list"},Py=["onMouseenter","onMouseleave"],Iy={class:"item-header"},Ny={class:"item-header-left"},Ry={class:"item-header-index"},My={class:"item-header-time"},Fy={class:"item-header-name"},Hy=["value","onKeydown","onChange","placeholder"],By={class:"item-header-right"},jy=["onClick"],$y=["onClick"],Uy=["onClick"],Wy=["onClick"],Vy={class:"item-prompt"},Ky={class:"content-empty"},qy={key:1};function zy(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return fe((N(),B("div",{class:"physton-prompt-favorite",ref:"favorite",onMouseenter:t[0]||(t[0]=(...d)=>o.onMouseEnter&&o.onMouseEnter(...d)),onMouseleave:t[1]||(t[1]=(...d)=>o.onMouseLeave&&o.onMouseLeave(...d)),onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",Cy,[(N(!0),B(Re,null,vt(r.favorites,d=>(N(),B("div",{key:d.key,class:St(["popup-tab",d.key===r.favoriteKey?"active":""]),onClick:m=>o.onTabClick(d.key)},[T("div",Ty,ae(e.getLang(d.name)),1),T("div",_y,ae(e.getLang(d.type)),1),T("div",Ey,ae(d.list.length),1)],10,wy))),128))]),fe(T("div",Sy,[T("div",ky,[(N(!0),B(Re,null,vt(r.currentItem.tags,(d,m)=>(N(),B(Re,{key:m},[d.type&&d.type==="wrap"?(N(),B("div",xy)):(N(),B("div",Ay,[T("div",Ly,ae(d.value),1),T("div",Oy,ae(d.localValue),1)]))],64))),128))])],512),[[_t,r.currentItem&&r.currentItem.tags]]),(N(!0),B(Re,null,vt(r.favorites,d=>(N(),B("div",{key:d.key,class:St(["popup-tab-content",d.key===r.favoriteKey?"active":""])},[fe(T("div",Dy,[(N(!0),B(Re,null,vt(d.list,(m,g)=>(N(),B("div",{class:"content-item",key:m.id,onMouseenter:w=>o.onItemMouseEnter(g),onMouseleave:w=>o.onItemMouseLeave(g)},[T("div",Iy,[T("div",Ny,[T("div",Ry,ae(d.list.length-g),1),T("div",My,ae(o.formatTime(m.time)),1),T("div",Fy,[T("input",{class:"header-name-input",value:m.name,onKeydown:w=>o.onNameKeyDown(g,w),onChange:w=>o.onNameChange(g,w),placeholder:e.getLang("unset_name")},null,40,Hy)])]),T("div",By,[fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-yes"})],8,jy)),[[_t,m.is_favorite],[c,e.getLang("remove_from_favorite")]]),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-no"})],8,$y)),[[_t,!m.is_favorite],[c,e.getLang("add_to_favorite")]]),fe((N(),B("div",{class:"header-btn-copy hover-scale-140",onClick:w=>o.onCopyClick(g)},[pe(l,{name:"copy"})],8,Uy)),[[c,e.getLang("copy_to_clipboard")]]),fe((N(),B("div",{class:"header-btn-use hover-scale-140",onClick:w=>o.onUseClick(g)},[pe(l,{name:"use"})],8,Wy)),[[c,e.getLang("use")]])])]),T("div",Vy,ae(m.prompt),1)],40,Py))),128))],512),[[_t,d.list.length>0]]),fe(T("div",Ky,[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B("span",qy,ae(r.emptyMsg),1))],512),[[_t,d.list.length===0]])],2))),128))],544)),[[_t,r.isShow]])}const Xy=sn(by,[["render",zy]]),Yy={components:{IconSvg:Fn},props:{},mixins:[Yn],data(){return{historyKey:"",histories:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use","refreshFavorites"],mounted(){},methods:{formatTime(e){return oe.formatTime(e*1e3,!1)},getHistories(e){if(!e)return;let t=this.histories.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getHistories(e).then(n=>{n&&n.length>0&&(n.reverse(),t.list=n),this.emptyMsg=this.getLang("no_history"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_history_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.historyKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.history.style.top=t.pageY+2+"px",this.$refs.history.style.left=t.pageX+2+"px",this.getHistories(this.historyKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.historyKey=e,this.getHistories(this.historyKey)},onDeleteClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];this.gradioAPI.deleteHistory(this.historyKey,n.id).then(i=>{i&&t.list.splice(e,1)})},onFavoriteClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.historyKey,n.id).then(i=>{i&&(n.is_favorite=!1,this.$emit("refreshFavorites",this.historyKey))}):this.gradioAPI.doFavorite(this.historyKey,n.id).then(i=>{i&&(n.is_favorite=!0,this.$emit("refreshFavorites",this.historyKey))})},onCopyClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.histories.find(o=>o.key===this.historyKey);if(!n)return;let i=n.list[e];const r=t.target.value;this.gradioAPI.setHistoryName(this.historyKey,i.id,r).then(o=>{o?(i.name=r,this.$emit("refreshFavorites",this.historyKey)):t.target.value=i.name}).catch(o=>{t.target.value=i.name})},onItemMouseEnter(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.hide(),this.$emit("use",t.list[e]))},onDeleteAllHistoryClick(){let e=this.histories.find(t=>t.key===this.historyKey);e&&confirm(this.getLang("delete_all_history_confirm"))&&this.gradioAPI.deleteHistories(this.historyKey).then(t=>{e.list=[]}).catch(t=>{})}}},Gy={class:"popup-tabs"},Jy=["onClick"],Zy={class:"tab-name"},Qy={class:"tab-type"},eb={class:"tab-count"},tb={class:"popup-detail"},nb={class:"popup-item-tags"},ib={key:0,class:"item-wrap"},rb={key:1,class:"item-tag"},sb={class:"item-tag-value"},ob={class:"item-tag-local-value"},ab={class:"content-list"},lb=["onMouseenter","onMouseleave"],ub={class:"item-header"},cb={class:"item-header-left"},fb={class:"item-header-index"},db={class:"item-header-time"},pb={class:"item-header-name"},hb=["value","onKeydown","onChange","placeholder"],gb={class:"item-header-right"},mb=["onClick"],vb=["onClick"],yb=["onClick"],bb=["onClick"],Cb=["onClick"],wb={class:"item-prompt"},Tb={class:"content-empty"},_b={key:1};function Eb(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return fe((N(),B("div",{class:"physton-prompt-history",ref:"history",onMouseenter:t[1]||(t[1]=(...d)=>o.onMouseEnter&&o.onMouseEnter(...d)),onMouseleave:t[2]||(t[2]=(...d)=>o.onMouseLeave&&o.onMouseLeave(...d)),onClick:t[3]||(t[3]=tt(()=>{},["stop"]))},[T("div",Gy,[(N(!0),B(Re,null,vt(r.histories,d=>(N(),B("div",{key:d.key,class:St(["popup-tab",d.key===r.historyKey?"active":""]),onClick:m=>o.onTabClick(d.key)},[T("div",Zy,ae(e.getLang(d.name)),1),T("div",Qy,ae(e.getLang(d.type)),1),T("div",eb,ae(d.list.length),1)],10,Jy))),128))]),fe(T("div",tb,[T("div",nb,[(N(!0),B(Re,null,vt(r.currentItem.tags,(d,m)=>(N(),B(Re,{key:m},[d.type&&d.type==="wrap"?(N(),B("div",ib)):(N(),B("div",rb,[T("div",sb,ae(d.value),1),T("div",ob,ae(d.localValue),1)]))],64))),128))])],512),[[_t,r.currentItem&&r.currentItem.tags]]),(N(!0),B(Re,null,vt(r.histories,d=>(N(),B("div",{key:d.key,class:St(["popup-tab-content",d.key===r.historyKey?"active":""])},[fe(T("div",ab,[T("div",{class:"clear-btn",onClick:t[0]||(t[0]=(...m)=>o.onDeleteAllHistoryClick&&o.onDeleteAllHistoryClick(...m))},[pe(l,{name:"remove"}),Ft(" "+ae(e.getLang("delete_all_history")),1)]),(N(!0),B(Re,null,vt(d.list,(m,g)=>(N(),B("div",{class:"content-item",key:m.id,onMouseenter:w=>o.onItemMouseEnter(g),onMouseleave:w=>o.onItemMouseLeave(g)},[T("div",ub,[T("div",cb,[T("div",fb,ae(d.list.length-g),1),T("div",db,ae(o.formatTime(m.time)),1),T("div",pb,[T("input",{class:"header-name-input",value:m.name,onKeydown:w=>o.onNameKeyDown(g,w),onChange:w=>o.onNameChange(g,w),placeholder:e.getLang("unset_name")},null,40,hb)])]),T("div",gb,[T("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onDeleteClick(g)},[pe(l,{name:"remove"})],8,mb),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-yes"})],8,vb)),[[_t,m.is_favorite],[c,e.getLang("remove_from_favorite")]]),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-no"})],8,yb)),[[_t,!m.is_favorite],[c,e.getLang("add_to_favorite")]]),fe((N(),B("div",{class:"header-btn-copy hover-scale-140",onClick:w=>o.onCopyClick(g)},[pe(l,{name:"copy"})],8,bb)),[[c,e.getLang("copy_to_clipboard")]]),fe((N(),B("div",{class:"header-btn-use hover-scale-140",onClick:w=>o.onUseClick(g)},[pe(l,{name:"use"})],8,Cb)),[[c,e.getLang("use")]])])]),T("div",wb,ae(m.prompt),1)],40,lb))),128))],512),[[_t,d.list.length>0]]),fe(T("div",Tb,[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B("span",_b,ae(r.emptyMsg),1))],512),[[_t,d.list.length===0]])],2))),128))],544)),[[_t,r.isShow]])}const Sb=sn(Yy,[["render",Eb]]),kb={name:"ExtensionCss",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1,list:[]}},computed:{},mounted(){},methods:{init(){this.refresh(!0)},refresh(e=!1){this.gradioAPI.getExtensionCssList().then(t=>{let n=[];for(let i=0;i{i.sort=i.manifest.type+"."+i.dir}),n.sort((i,r)=>i.sort>r.sort?1:-1),this.list=n,e&&this.list.forEach(i=>{i.selected&&oe.loadCSS(i.style,i.id,!0,!1)})})},getName(e){if(!e)return"";let t=e.manifest.name;return e.manifest.i18n&&e.manifest.i18n[this.languageCode]&&(t=e.manifest.i18n[this.languageCode]),t},onChangeSelect(e){let t=this.list.find(n=>n.id===e);t&&(t.selected=!t.selected,t.selected?oe.loadCSS(t.style,t.id,!0,!1):oe.removeCSS(t.id),this.gradioAPI.setData(t.dataName,t.selected))},open(){this.isOpen=!0,this.refresh(!1)},close(){this.isOpen=!1}}},xb={class:"extension-table"},Ab=["checked","onChange"],Lb={class:"extension-name"},Ob={class:"extension-type"},Db={class:"extension-dir"},Pb={class:"extension-author"};function Ib(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-prompt-extension-css",onClick:t[3]||(t[3]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"extension-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"extension-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"extension-list",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[T("table",xb,[(N(!0),B(Re,null,vt(r.list,(c,d)=>(N(),B("tr",{key:c.dir,class:"extension-item",ref_for:!0,ref:"items"},[T("td",null,[T("input",{class:"extension-checkbox",type:"checkbox",name:"extension-item",checked:c.selected,onChange:m=>o.onChangeSelect(c.id)},null,40,Ab)]),T("td",Lb,ae(o.getName(c)),1),T("td",Ob,ae(e.getLang(c.manifest.type)),1),T("td",Db,ae(c.dir),1),T("td",Pb,[c.manifest.author?(N(),B(Re,{key:0},[Ft("By: "+ae(c.manifest.author),1)],64)):je("",!0)])]))),128))])])])])):je("",!0)}const Nb=sn(kb,[["render",Ib]]),Rb={name:"PromptFormat",components:{IconSvg:Fn},mixins:[Yn],props:{autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1}},data(){return{isOpen:!1}},emits:["update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne"],computed:{},mounted(){},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1}}},Mb={class:"format-item"},Fb=["checked"],Hb=["innerHTML"],Bb={class:"format-item"},jb=["checked"],$b=["innerHTML"],Ub={class:"format-item"},Wb=["checked"],Vb=["innerHTML"],Kb={class:"format-item"},qb=["checked"],zb=["innerHTML"];function Xb(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-prompt-format",onClick:t[7]||(t[7]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"format-main",onClick:t[6]||(t[6]=tt(()=>{},["stop"]))},[T("div",{class:"format-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"format-list",onClick:t[5]||(t[5]=tt(()=>{},["stop"]))},[T("div",Mb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveSpace,onChange:t[1]||(t[1]=c=>e.$emit("update:autoRemoveSpace",c.target.checked))},null,40,Fb),T("div",{class:"format-desc",innerHTML:e.getLang("is_remove_space")},null,8,Hb)]),T("div",Bb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveLastComma,onChange:t[2]||(t[2]=c=>e.$emit("update:autoRemoveLastComma",c.target.checked))},null,40,jb),T("div",{class:"format-desc",innerHTML:e.getLang("is_remove_last_comma")},null,8,$b)]),T("div",Ub,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoKeepWeightZero,onChange:t[3]||(t[3]=c=>e.$emit("update:autoKeepWeightZero",c.target.checked))},null,40,Wb),T("div",{class:"format-desc",innerHTML:e.getLang("is_keep_weight_zero")},null,8,Vb)]),T("div",Kb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoKeepWeightOne,onChange:t[4]||(t[4]=c=>e.$emit("update:autoKeepWeightOne",c.target.checked))},null,40,qb),T("div",{class:"format-desc",innerHTML:e.getLang("is_keep_weight_one")},null,8,zb)])])])])):je("",!0)}const Yb=sn(Rb,[["render",Xb]]),Gb={name:"PackagesState",components:{IconSvg:Fn},mixins:[Yn],props:{python:{type:String,default:"./python"},packagesState:{type:Array,default:()=>[]}},data(){return{todayNotShow:!1,isOpen:!1,loading:!1,showResult:!1,result:`1112323 +Github: Physton/sd-webui-prompt-all-in-one`,translateSuccess:!1,errorMessage:"",translatedText:"",loading:!1,isOpen:!1,configs:[],apiKey:"",tagCompleteFiles:[],tagCompleteFilesLoading:!1,tagCompleteFileKey:"",tagCompleteResults:[],onlyCsvOnAutoValue:!1,mbart50Loading:!1,mbart50Success:!1,mbart50Message:""}},computed:{apiItem(){return oe.getTranslateApiItem(this.translateApis,this.apiKey)},supportApi(){if(!this.translateApis||this.translateApis.length<=0)return[];let e=JSON.parse(JSON.stringify(this.translateApis));return e.forEach(t=>{t.children.forEach(n=>{n.disabled=!n.support[this.languageCode]})}),e}},mounted(){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1},emits:["update:translateApi","forceUpdate:translateApi","update:tagCompleteFile","update:onlyCsvOnAuto"],watch:{apiKey:{handler:function(e,t){this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!1,this.configs=[],this.gradioAPI.getData("translate_api."+this.apiKey).then(n=>{const i=this.apiItem;if(i&&i.config){for(const r of this.apiItem.config)n?r.value=n[r.key]||r.default:r.value=r.default||"",this.configs.push(r);console.log(this.configs)}})},immediate:!1}},methods:{open(e){this.apiKey=e,this.isOpen=!0,this.errorMessage="",this.translatedText="",this.loading=!1,this.tagCompleteFileKey=this.tagCompleteFile,this.onlyCsvOnAutoValue=this.onlyCsvOnAuto,this.mbart50Success=!1,this.mbart50Message="",this.refreshCSVs()},getItemName(e){let t=e.name;return t=t.replace("[Free] ","["+this.getLang("free")+"] "),t=t.replace("[ApiKey] ","["+this.getLang("apply_for_free")+"] "),t},onChangeConfigValue(e){e.type==="input"&&e.value===""&&e.default&&(e.value=e.default)},refreshCSVs(){this.tagCompleteFilesLoading||(this.tagCompleteFilesLoading=!0,this.tagCompleteFiles=[],this.gradioAPI.getCSVs().then(e=>{if(this.tagCompleteFilesLoading=!1,!(!e||e.length<=0)){this.tagCompleteFiles.push({key:"",name:this.getLang("not_enable")});for(const t of e)this.tagCompleteFiles.push({key:t.key,name:t.key})}}).catch(e=>{this.tagCompleteFilesLoading=!1}))},onTestClick(){if(this.loading)return;this.translateSuccess=!1,this.errorMessage="",this.translatedText="",this.loading=!0;let e={};for(const t of this.configs)e[t.key]=t.value;this.translate(this.testText,"en_US",this.languageCode,this.apiKey,e).then(t=>{t.success?(this.translatedText=t.translated_text,this.translateSuccess=!0):this.errorMessage=t.message,this.loading=!1}).catch(t=>{this.errorMessage=t.message,this.loading=!1})},translate(e,t,n,i=null,r=null){return new Promise(async(o,l)=>{i=i||this.translateApi,r=r||this.translateApiConfig||{},this.gradioAPI.translate(e,t,n,i,r).then(c=>{c.success?o(c):l(c)}).catch(c=>{l(c)})})},onSaveClick(){this.isOpen=!1;let e={};for(const t of this.configs)e[t.key]=t.value;this.$emit("update:translateApi",this.apiKey),this.$emit("update:tagCompleteFile",this.tagCompleteFileKey),this.$emit("update:onlyCsvOnAuto",this.onlyCsvOnAutoValue),this.gradioAPI.setData("translate_api."+this.apiKey,e).then(t=>{this.apiKey===this.translateApi&&this.$emit("forceUpdate:translateApi")})},onCloseClick(){this.isOpen=!1},onTagCompleteTestClick(){this.tagCompleteResults=[],["1girl","Robot dog"].forEach(t=>{let n=this.getLang("translate_result");this.translateToLocalByCSV(t,this.tagCompleteFileKey,!0).then(i=>{this.tagCompleteResults.push(n.replace("{0}",t).replace("{1}",i))}).catch(i=>{this.$toastr.error(i)})})},onMbart50Initialize(){this.mbart50Loading=!0,this.mbart50Success=!1,this.mbart50Message="",this.gradioAPI.mbart50Initialize().then(e=>{this.mbart50Loading=!1,e.success?(this.mbart50Success=!0,this.mbart50Message=this.getLang("initialize_finished")):this.mbart50Message=this.getLang("initialize_failed")+": "+e.message}).catch(e=>{this.mbart50Loading=!1,this.mbart50Message=e.message})}}},dv={key:0,class:"physton-prompt-translate-setting"},pv={class:"translate-setting-main"},hv={class:"translate-setting-content"},gv={class:"setting-line"},mv={class:"line-title"},vv={class:"line-content"},yv=["label"],bv=["value","disabled"],Cv={key:0,class:"setting-line"},wv=T("div",{class:"line-title"},null,-1),Tv={class:"line-content"},_v={class:"common-red"},Ev={key:1,class:"setting-line"},Sv=T("div",{class:"line-title"},null,-1),kv={class:"line-content"},xv={class:"help-list"},Av={class:"help-item"},Lv=["href"],Ov={class:"setting-line"},Dv={class:"line-title"},Pv={class:"line-content"},Iv=["onUpdate:modelValue","onChange"],Nv=["onUpdate:modelValue"],Rv=["value"],Mv=["innerHTML"],Fv={key:2,class:"setting-line"},Hv={class:"line-title"},Bv={class:"line-content"},jv=["innerHTML"],$v=["innerHTML"],Uv={key:3,class:"setting-line"},Wv=T("div",{class:"line-title"},null,-1),Vv={class:"line-content"},Kv={class:"setting-line"},qv={class:"line-title"},zv={class:"line-content"},Xv={class:"setting-line"},Yv=T("div",{class:"line-title"},null,-1),Gv={class:"line-content"},Jv={class:"setting-line"},Zv=T("div",{class:"line-title"},null,-1),Qv={class:"line-content"},ey={key:0,class:"translate-error"},ty={class:"setting-line"},ny=T("div",{class:"line-title"},"TagComplete",-1),iy={class:"line-content"},ry=T("div",{class:"help-list"},[T("div",{class:"help-item"},[Ft("[?] "),T("a",{href:"https://physton.github.io/sd-webui-prompt-all-in-one-assets/TranslationApiConfiguration.html#tagcomplete-translation-enhancement",target:"_blank"},"[Wiki] TagComplete Translation enhancement")])],-1),sy=["innerHTML"],oy=["innerHTML"],ay={class:"line-row"},ly=["value"],uy={class:"setting-line"},cy=T("div",{class:"line-title"},null,-1),fy={class:"line-content"},dy={ref:"tagCompleteResults"},py={class:"setting-btns"};function hy(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return r.isOpen?(N(),B("div",dv,[T("div",pv,[T("div",hv,[T("div",gv,[T("div",mv,ae(e.getLang("translate_api")),1),T("div",vv,[fe(T("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>r.apiKey=d)},[(N(!0),B(Re,null,vt(o.supportApi,d=>(N(),B("optgroup",{key:d.type,label:e.getLang(d.type)},[(N(!0),B(Re,null,vt(d.children,m=>(N(),B("option",{key:m.key,value:m.key,disabled:m.disabled},ae(o.getItemName(m)),9,bv))),128))],8,yv))),128))],512),[[Xs,r.apiKey]])])]),o.apiItem&&o.apiItem.type=="translators"?(N(),B("div",Cv,[wv,T("div",Tv,[T("span",_v,"*"+ae(e.getLang("not_api_key_desc")),1)])])):je("",!0),o.apiItem.help?(N(),B("div",Ev,[Sv,T("div",kv,[(N(!0),B(Re,null,vt(o.apiItem.help,d=>(N(),B("div",xv,[T("div",Av,[Ft("[?] "),T("a",{href:d.url,target:"_blank"},ae(d.title),9,Lv)])]))),256))])])):je("",!0),(N(!0),B(Re,null,vt(r.configs,d=>(N(),B("div",Ov,[T("div",Dv,ae(d.title),1),T("div",Pv,[d.type=="input"?fe((N(),B("input",{key:0,type:"text","onUpdate:modelValue":m=>d.value=m,onChange:m=>o.onChangeConfigValue(d)},null,40,Iv)),[[Hi,d.value]]):je("",!0),d.type=="select"?fe((N(),B("select",{key:1,"onUpdate:modelValue":m=>d.value=m},[(N(!0),B(Re,null,vt(d.options,m=>(N(),B("option",{value:m},ae(m),9,Rv))),256))],8,Nv)),[[Xs,d.value]]):je("",!0),d.desc?(N(),B("div",{key:2,innerHTML:d.desc},null,8,Mv)):je("",!0)])]))),256)),o.apiItem.key==="mbart50"?(N(),B("div",Fv,[T("div",Hv,ae(e.getLang("initialize")),1),T("div",Bv,[T("div",{class:"hover-scale-120 test-btn",onClick:t[1]||(t[1]=(...d)=>o.onMbart50Initialize&&o.onMbart50Initialize(...d))},[r.mbart50Loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("initialize")),1)],64))]),T("p",{class:"common-red",innerHTML:e.getLang("download_model_desc")},null,8,jv),T("p",{class:"common-red",innerHTML:e.getLang("download_model_desc2")},null,8,$v)])])):je("",!0),o.apiItem.key==="mbart50"&&r.mbart50Message?(N(),B("div",Uv,[Wv,T("div",Vv,[T("div",{class:St([r.mbart50Success?"":"common-red"])},ae(r.mbart50Message),3)])])):je("",!0),T("div",Kv,[T("div",qv,ae(e.getLang("translate_test")),1),T("div",zv,[fe(T("textarea",{class:"test-input","onUpdate:modelValue":t[2]||(t[2]=d=>r.testText=d)},null,512),[[Hi,r.testText]])])]),T("div",Xv,[Yv,T("div",Gv,[T("div",{class:"hover-scale-120 test-btn",onClick:t[3]||(t[3]=(...d)=>o.onTestClick&&o.onTestClick(...d))},[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("test")),1)],64))])])]),T("div",Jv,[Zv,T("div",Qv,[!r.translateSuccess&&r.errorMessage?(N(),B("div",ey,ae(r.errorMessage),1)):je("",!0),r.translatedText?fe((N(),B("textarea",{key:1,class:"test-input","onUpdate:modelValue":t[4]||(t[4]=d=>r.translatedText=d)},null,512)),[[Hi,r.translatedText]]):je("",!0)])]),T("div",ty,[ny,T("div",iy,[ry,T("div",{innerHTML:e.getLang("tagcomplete_translate_desc")},null,8,sy),T("div",{class:"common-red",innerHTML:e.getLang("tagcomplete_translate_desc2")},null,8,oy),T("div",ay,[fe(T("select",{"onUpdate:modelValue":t[5]||(t[5]=d=>r.tagCompleteFileKey=d),onChange:t[6]||(t[6]=d=>r.tagCompleteResults=[])},[(N(!0),B(Re,null,vt(r.tagCompleteFiles,d=>(N(),B("option",{value:d.key},ae(d.name),9,ly))),256))],544),[[Xs,r.tagCompleteFileKey]]),fe((N(),B("div",{class:"refresh-btn hover-scale-120",onClick:t[7]||(t[7]=(...d)=>o.refreshCSVs&&o.refreshCSVs(...d))},[r.tagCompleteFilesLoading?(N(),mt(l,{key:0,name:"loading"})):(N(),mt(l,{key:1,name:"refresh"}))])),[[c,e.getLang("refresh")]])]),T("label",{class:"onlyCsvOnAuto",style:Kt({display:r.tagCompleteFileKey?"flex":"none"})},[fe(T("input",{class:"hover-scale-120",type:"checkbox",value:"1","onUpdate:modelValue":t[8]||(t[8]=d=>r.onlyCsvOnAutoValue=d)},null,512),[[zh,r.onlyCsvOnAutoValue]]),T("span",null,ae(e.getLang("only_csv_on_auto")),1)],4)])]),fe(T("div",uy,[cy,T("div",fy,[T("div",{class:"hover-scale-120 test-btn",onClick:t[9]||(t[9]=(...d)=>o.onTagCompleteTestClick&&o.onTagCompleteTestClick(...d))},ae(e.getLang("test")),1),fe(T("div",dy,[(N(!0),B(Re,null,vt(r.tagCompleteResults,d=>(N(),B("p",{key:d},ae(d),1))),128))],512),[[_t,r.tagCompleteResults.length>0]])])],512),[[_t,r.tagCompleteFileKey]])]),T("div",py,[T("div",{class:"translate-save hover-scale-120",onClick:t[10]||(t[10]=(...d)=>o.onSaveClick&&o.onSaveClick(...d))},ae(e.getLang("save")),1),T("div",{class:"translate-close hover-scale-120",onClick:t[11]||(t[11]=(...d)=>o.onCloseClick&&o.onCloseClick(...d))},ae(e.getLang("close")),1)])])])):je("",!0)}const gy=sn(fv,[["render",hy]]),my={name:"SelectLanguage",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1}},computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.$nextTick(()=>{this.scrollToSelectedItem()})},close(){this.isOpen=!1},onLanguageClick(e){this.$emit("update:languageCode",e.code),this.close()},scrollToSelectedItem(){const e=this.$refs.items;for(let t=0;to.close&&o.close(...c))},[T("div",{class:"language-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"language-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"language-list",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[(N(!0),B(Re,null,vt(e.languages,c=>(N(),B("div",{key:c.code,class:St(["language-item",c.code==e.languageCode?"selected":""]),ref_for:!0,ref:"items",onClick:d=>o.onLanguageClick(c)},ae(c.code)+" - "+ae(c.name),11,vy))),128))])])])):je("",!0)}const by=sn(my,[["render",yy]]),Cy={components:{IconSvg:Fn},props:{},mixins:[Yn],data(){return{favoriteKey:"",favorites:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use"],mounted(){this.favorites.forEach(e=>{this.getFavorites(e.key)})},methods:{formatTime(e){return oe.formatTime(e*1e3,!1)},getFavorites(e){if(!e)return;let t=this.favorites.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getFavorites(e).then(n=>{n&&n.length>0&&(n.reverse(),n.forEach(i=>{i.is_favorite=!0}),t.list=n),window.phystonPromptfavorites=this.favorites,this.emptyMsg=this.getLang("no_favorite"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_favorite_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.favoriteKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.favorite.style.top=t.pageY+2+"px",this.$refs.favorite.style.left=t.pageX+2+"px",this.getFavorites(this.favoriteKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.favoriteKey=e,this.getFavorites(this.favoriteKey)},onFavoriteClick(e){let t=this.favorites.find(i=>i.key===this.favoriteKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.favoriteKey,n.id).then(i=>{i&&(n.is_favorite=!1,window.phystonPromptfavorites=this.favorites)}):this.gradioAPI.doFavorite(this.favoriteKey,n.id).then(i=>{i&&(n.is_favorite=!0,window.phystonPromptfavorites=this.favorites)})},onCopyClick(e){let t=this.favorites.find(i=>i.key===this.favoriteKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.favorites.find(o=>o.key===this.favoriteKey);if(!n)return;let i=n.list[e];const r=t.target.value;this.gradioAPI.setFavoriteName(this.favoriteKey,i.id,r).then(o=>{o?(i.name=r,window.phystonPromptfavorites=this.favorites):t.target.value=i.name}).catch(o=>{t.target.value=i.name})},onItemMouseEnter(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.favorites.find(n=>n.key===this.favoriteKey);t&&(this.hide(),this.$emit("use",t.list[e]))}}},wy={class:"popup-tabs"},Ty=["onClick"],_y={class:"tab-name"},Ey={class:"tab-type"},Sy={class:"tab-count"},ky={class:"popup-detail"},xy={class:"popup-item-tags"},Ay={key:0,class:"item-wrap"},Ly={key:1,class:"item-tag"},Oy={class:"item-tag-value"},Dy={class:"item-tag-local-value"},Py={class:"content-list"},Iy=["onMouseenter","onMouseleave"],Ny={class:"item-header"},Ry={class:"item-header-left"},My={class:"item-header-index"},Fy={class:"item-header-time"},Hy={class:"item-header-name"},By=["value","onKeydown","onChange","placeholder"],jy={class:"item-header-right"},$y=["onClick"],Uy=["onClick"],Wy=["onClick"],Vy=["onClick"],Ky={class:"item-prompt"},qy={class:"content-empty"},zy={key:1};function Xy(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return fe((N(),B("div",{class:"physton-prompt-favorite",ref:"favorite",onMouseenter:t[0]||(t[0]=(...d)=>o.onMouseEnter&&o.onMouseEnter(...d)),onMouseleave:t[1]||(t[1]=(...d)=>o.onMouseLeave&&o.onMouseLeave(...d)),onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",wy,[(N(!0),B(Re,null,vt(r.favorites,d=>(N(),B("div",{key:d.key,class:St(["popup-tab",d.key===r.favoriteKey?"active":""]),onClick:m=>o.onTabClick(d.key)},[T("div",_y,ae(e.getLang(d.name)),1),T("div",Ey,ae(e.getLang(d.type)),1),T("div",Sy,ae(d.list.length),1)],10,Ty))),128))]),fe(T("div",ky,[T("div",xy,[(N(!0),B(Re,null,vt(r.currentItem.tags,(d,m)=>(N(),B(Re,{key:m},[d.type&&d.type==="wrap"?(N(),B("div",Ay)):(N(),B("div",Ly,[T("div",Oy,ae(d.value),1),T("div",Dy,ae(d.localValue),1)]))],64))),128))])],512),[[_t,r.currentItem&&r.currentItem.tags]]),(N(!0),B(Re,null,vt(r.favorites,d=>(N(),B("div",{key:d.key,class:St(["popup-tab-content",d.key===r.favoriteKey?"active":""])},[fe(T("div",Py,[(N(!0),B(Re,null,vt(d.list,(m,g)=>(N(),B("div",{class:"content-item",key:m.id,onMouseenter:w=>o.onItemMouseEnter(g),onMouseleave:w=>o.onItemMouseLeave(g)},[T("div",Ny,[T("div",Ry,[T("div",My,ae(d.list.length-g),1),T("div",Fy,ae(o.formatTime(m.time)),1),T("div",Hy,[T("input",{class:"header-name-input",value:m.name,onKeydown:w=>o.onNameKeyDown(g,w),onChange:w=>o.onNameChange(g,w),placeholder:e.getLang("unset_name")},null,40,By)])]),T("div",jy,[fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-yes"})],8,$y)),[[_t,m.is_favorite],[c,e.getLang("remove_from_favorite")]]),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-no"})],8,Uy)),[[_t,!m.is_favorite],[c,e.getLang("add_to_favorite")]]),fe((N(),B("div",{class:"header-btn-copy hover-scale-140",onClick:w=>o.onCopyClick(g)},[pe(l,{name:"copy"})],8,Wy)),[[c,e.getLang("copy_to_clipboard")]]),fe((N(),B("div",{class:"header-btn-use hover-scale-140",onClick:w=>o.onUseClick(g)},[pe(l,{name:"use"})],8,Vy)),[[c,e.getLang("use")]])])]),T("div",Ky,ae(m.prompt),1)],40,Iy))),128))],512),[[_t,d.list.length>0]]),fe(T("div",qy,[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B("span",zy,ae(r.emptyMsg),1))],512),[[_t,d.list.length===0]])],2))),128))],544)),[[_t,r.isShow]])}const Yy=sn(Cy,[["render",Xy]]),Gy={components:{IconSvg:Fn},props:{},mixins:[Yn],data(){return{historyKey:"",histories:[{name:"txt2img",type:"prompt",key:"txt2img",list:[]},{name:"txt2img",type:"negative_prompt",key:"txt2img_neg",list:[]},{name:"img2img",type:"prompt",key:"img2img",list:[]},{name:"img2img",type:"negative_prompt",key:"img2img_neg",list:[]}],isShow:!1,loading:!1,emptyMsg:"",mouseEnter:!1,currentItem:{}}},emits:["use","refreshFavorites"],mounted(){},methods:{formatTime(e){return oe.formatTime(e*1e3,!1)},getHistories(e){if(!e)return;let t=this.histories.find(n=>n.key===e);t&&(this.loading=!0,this.gradioAPI.getHistories(e).then(n=>{n&&n.length>0&&(n.reverse(),t.list=n),this.emptyMsg=this.getLang("no_history"),this.loading=!1}).catch(n=>{this.emptyMsg=this.getLang("get_history_error"),this.loading=!1}))},show(e,t){if(!(!e||!t)){if(this.historyKey=e,this.isShow){this.isShow=!1;return}this.mouseEnter=!1,this.loading=!0,this.isShow=!0,this.$refs.history.style.top=t.pageY+2+"px",this.$refs.history.style.left=t.pageX+2+"px",this.getHistories(this.historyKey),setTimeout(()=>{this.mouseEnter||this.hide()},3e3)}},hide(){this.mouseEnter=!1,this.isShow=!1},onMouseEnter(){this.mouseEnter=!0},onMouseLeave(){this.hide()},onTabClick(e){this.historyKey=e,this.getHistories(this.historyKey)},onDeleteClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];this.gradioAPI.deleteHistory(this.historyKey,n.id).then(i=>{i&&t.list.splice(e,1)})},onFavoriteClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];n.is_favorite?this.gradioAPI.unFavorite(this.historyKey,n.id).then(i=>{i&&(n.is_favorite=!1,this.$emit("refreshFavorites",this.historyKey))}):this.gradioAPI.doFavorite(this.historyKey,n.id).then(i=>{i&&(n.is_favorite=!0,this.$emit("refreshFavorites",this.historyKey))})},onCopyClick(e){let t=this.histories.find(i=>i.key===this.historyKey);if(!t)return;let n=t.list[e];this.$copyText(n.prompt).then(()=>{this.$toastr.success("success!")}).catch(()=>{this.$toastr.error("error!")})},onNameKeyDown(e,t){t.keyCode===13&&t.target.blur()},onNameChange(e,t){let n=this.histories.find(o=>o.key===this.historyKey);if(!n)return;let i=n.list[e];const r=t.target.value;this.gradioAPI.setHistoryName(this.historyKey,i.id,r).then(o=>{o?(i.name=r,this.$emit("refreshFavorites",this.historyKey)):t.target.value=i.name}).catch(o=>{t.target.value=i.name})},onItemMouseEnter(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.currentItem=t.list[e])},onItemMouseLeave(e){this.currentItem={}},onUseClick(e){let t=this.histories.find(n=>n.key===this.historyKey);t&&(this.hide(),this.$emit("use",t.list[e]))},onDeleteAllHistoryClick(){let e=this.histories.find(t=>t.key===this.historyKey);e&&confirm(this.getLang("delete_all_history_confirm"))&&this.gradioAPI.deleteHistories(this.historyKey).then(t=>{e.list=[]}).catch(t=>{})}}},Jy={class:"popup-tabs"},Zy=["onClick"],Qy={class:"tab-name"},eb={class:"tab-type"},tb={class:"tab-count"},nb={class:"popup-detail"},ib={class:"popup-item-tags"},rb={key:0,class:"item-wrap"},sb={key:1,class:"item-tag"},ob={class:"item-tag-value"},ab={class:"item-tag-local-value"},lb={class:"content-list"},ub=["onMouseenter","onMouseleave"],cb={class:"item-header"},fb={class:"item-header-left"},db={class:"item-header-index"},pb={class:"item-header-time"},hb={class:"item-header-name"},gb=["value","onKeydown","onChange","placeholder"],mb={class:"item-header-right"},vb=["onClick"],yb=["onClick"],bb=["onClick"],Cb=["onClick"],wb=["onClick"],Tb={class:"item-prompt"},_b={class:"content-empty"},Eb={key:1};function Sb(e,t,n,i,r,o){const l=Lt("icon-svg"),c=Us("tooltip");return fe((N(),B("div",{class:"physton-prompt-history",ref:"history",onMouseenter:t[1]||(t[1]=(...d)=>o.onMouseEnter&&o.onMouseEnter(...d)),onMouseleave:t[2]||(t[2]=(...d)=>o.onMouseLeave&&o.onMouseLeave(...d)),onClick:t[3]||(t[3]=tt(()=>{},["stop"]))},[T("div",Jy,[(N(!0),B(Re,null,vt(r.histories,d=>(N(),B("div",{key:d.key,class:St(["popup-tab",d.key===r.historyKey?"active":""]),onClick:m=>o.onTabClick(d.key)},[T("div",Qy,ae(e.getLang(d.name)),1),T("div",eb,ae(e.getLang(d.type)),1),T("div",tb,ae(d.list.length),1)],10,Zy))),128))]),fe(T("div",nb,[T("div",ib,[(N(!0),B(Re,null,vt(r.currentItem.tags,(d,m)=>(N(),B(Re,{key:m},[d.type&&d.type==="wrap"?(N(),B("div",rb)):(N(),B("div",sb,[T("div",ob,ae(d.value),1),T("div",ab,ae(d.localValue),1)]))],64))),128))])],512),[[_t,r.currentItem&&r.currentItem.tags]]),(N(!0),B(Re,null,vt(r.histories,d=>(N(),B("div",{key:d.key,class:St(["popup-tab-content",d.key===r.historyKey?"active":""])},[fe(T("div",lb,[T("div",{class:"clear-btn",onClick:t[0]||(t[0]=(...m)=>o.onDeleteAllHistoryClick&&o.onDeleteAllHistoryClick(...m))},[pe(l,{name:"remove"}),Ft(" "+ae(e.getLang("delete_all_history")),1)]),(N(!0),B(Re,null,vt(d.list,(m,g)=>(N(),B("div",{class:"content-item",key:m.id,onMouseenter:w=>o.onItemMouseEnter(g),onMouseleave:w=>o.onItemMouseLeave(g)},[T("div",cb,[T("div",fb,[T("div",db,ae(d.list.length-g),1),T("div",pb,ae(o.formatTime(m.time)),1),T("div",hb,[T("input",{class:"header-name-input",value:m.name,onKeydown:w=>o.onNameKeyDown(g,w),onChange:w=>o.onNameChange(g,w),placeholder:e.getLang("unset_name")},null,40,gb)])]),T("div",mb,[T("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onDeleteClick(g)},[pe(l,{name:"remove"})],8,vb),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-yes"})],8,yb)),[[_t,m.is_favorite],[c,e.getLang("remove_from_favorite")]]),fe((N(),B("div",{class:"header-btn-favorite hover-scale-140",onClick:w=>o.onFavoriteClick(g)},[pe(l,{name:"favorite-no"})],8,bb)),[[_t,!m.is_favorite],[c,e.getLang("add_to_favorite")]]),fe((N(),B("div",{class:"header-btn-copy hover-scale-140",onClick:w=>o.onCopyClick(g)},[pe(l,{name:"copy"})],8,Cb)),[[c,e.getLang("copy_to_clipboard")]]),fe((N(),B("div",{class:"header-btn-use hover-scale-140",onClick:w=>o.onUseClick(g)},[pe(l,{name:"use"})],8,wb)),[[c,e.getLang("use")]])])]),T("div",Tb,ae(m.prompt),1)],40,ub))),128))],512),[[_t,d.list.length>0]]),fe(T("div",_b,[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B("span",Eb,ae(r.emptyMsg),1))],512),[[_t,d.list.length===0]])],2))),128))],544)),[[_t,r.isShow]])}const kb=sn(Gy,[["render",Sb]]),xb={name:"ExtensionCss",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1,list:[]}},computed:{},mounted(){},methods:{init(){this.refresh(!0)},refresh(e=!1){this.gradioAPI.getExtensionCssList().then(t=>{let n=[];for(let i=0;i{i.sort=i.manifest.type+"."+i.dir}),n.sort((i,r)=>i.sort>r.sort?1:-1),this.list=n,e&&this.list.forEach(i=>{i.selected&&oe.loadCSS(i.style,i.id,!0,!1)})})},getName(e){if(!e)return"";let t=e.manifest.name;return e.manifest.i18n&&e.manifest.i18n[this.languageCode]&&(t=e.manifest.i18n[this.languageCode]),t},onChangeSelect(e){let t=this.list.find(n=>n.id===e);t&&(t.selected=!t.selected,t.selected?oe.loadCSS(t.style,t.id,!0,!1):oe.removeCSS(t.id),this.gradioAPI.setData(t.dataName,t.selected))},open(){this.isOpen=!0,this.refresh(!1)},close(){this.isOpen=!1}}},Ab={class:"extension-table"},Lb=["checked","onChange"],Ob={class:"extension-name"},Db={class:"extension-type"},Pb={class:"extension-dir"},Ib={class:"extension-author"};function Nb(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-prompt-extension-css",onClick:t[3]||(t[3]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"extension-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"extension-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"extension-list",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[T("table",Ab,[(N(!0),B(Re,null,vt(r.list,(c,d)=>(N(),B("tr",{key:c.dir,class:"extension-item",ref_for:!0,ref:"items"},[T("td",null,[T("input",{class:"extension-checkbox",type:"checkbox",name:"extension-item",checked:c.selected,onChange:m=>o.onChangeSelect(c.id)},null,40,Lb)]),T("td",Ob,ae(o.getName(c)),1),T("td",Db,ae(e.getLang(c.manifest.type)),1),T("td",Pb,ae(c.dir),1),T("td",Ib,[c.manifest.author?(N(),B(Re,{key:0},[Ft("By: "+ae(c.manifest.author),1)],64)):je("",!0)])]))),128))])])])])):je("",!0)}const Rb=sn(xb,[["render",Nb]]),Mb={name:"PromptFormat",components:{IconSvg:Fn},mixins:[Yn],props:{autoRemoveSpace:{type:Boolean,default:!1},autoRemoveLastComma:{type:Boolean,default:!1},autoKeepWeightZero:{type:Boolean,default:!1},autoKeepWeightOne:{type:Boolean,default:!1}},data(){return{isOpen:!1}},emits:["update:autoRemoveSpace","update:autoRemoveLastComma","update:autoKeepWeightZero","update:autoKeepWeightOne"],computed:{},mounted(){},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1}}},Fb={class:"format-item"},Hb=["checked"],Bb=["innerHTML"],jb={class:"format-item"},$b=["checked"],Ub=["innerHTML"],Wb={class:"format-item"},Vb=["checked"],Kb=["innerHTML"],qb={class:"format-item"},zb=["checked"],Xb=["innerHTML"];function Yb(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-prompt-format",onClick:t[7]||(t[7]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"format-main",onClick:t[6]||(t[6]=tt(()=>{},["stop"]))},[T("div",{class:"format-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"format-list",onClick:t[5]||(t[5]=tt(()=>{},["stop"]))},[T("div",Fb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveSpace,onChange:t[1]||(t[1]=c=>e.$emit("update:autoRemoveSpace",c.target.checked))},null,40,Hb),T("div",{class:"format-desc",innerHTML:e.getLang("is_remove_space")},null,8,Bb)]),T("div",jb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoRemoveLastComma,onChange:t[2]||(t[2]=c=>e.$emit("update:autoRemoveLastComma",c.target.checked))},null,40,$b),T("div",{class:"format-desc",innerHTML:e.getLang("is_remove_last_comma")},null,8,Ub)]),T("div",Wb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoKeepWeightZero,onChange:t[3]||(t[3]=c=>e.$emit("update:autoKeepWeightZero",c.target.checked))},null,40,Vb),T("div",{class:"format-desc",innerHTML:e.getLang("is_keep_weight_zero")},null,8,Kb)]),T("div",qb,[T("input",{class:"format-checkbox",type:"checkbox",checked:n.autoKeepWeightOne,onChange:t[4]||(t[4]=c=>e.$emit("update:autoKeepWeightOne",c.target.checked))},null,40,zb),T("div",{class:"format-desc",innerHTML:e.getLang("is_keep_weight_one")},null,8,Xb)])])])])):je("",!0)}const Gb=sn(Mb,[["render",Yb]]),Jb={name:"PackagesState",components:{IconSvg:Fn},mixins:[Yn],props:{python:{type:String,default:"./python"},packagesState:{type:Array,default:()=>[]}},data(){return{todayNotShow:!1,isOpen:!1,loading:!1,showResult:!1,result:`1112323 sfsdfsdf 2222 3333 @@ -41,8 +41,8 @@ sfsdfsdf complete!`,setTimeout(this.close,2e3)),this.scrollToBottom()},n=()=>{let i=e.shift();if(!i)return t(!0);this.gradioAPI.installPackage(i.name,i.package).then(r=>{this.result+=`${r.message} `,r.state?(this.scrollToBottom(),n()):t(!1)}).catch(r=>{console.log(r),this.result+=`${i.name} install failed ${r.message} -`,t(!1)})};n()},scrollToBottom(){this.$nextTick(()=>{this.$refs.result.scrollTop=this.$refs.result.scrollHeight})},onTodayNotShowChange(){this.todayNotShow=!this.todayNotShow,this.gradioAPI.setData("packagesStateTodayNotShow",new Date().toLocaleDateString())},open(){this.gradioAPI.getData("packagesStateTodayNotShow").then(e=>{e&&e===new Date().toLocaleDateString()?this.close():(this.result="",this.loading=!1,this.showResult=!1,this.isOpen=!0)}).catch(e=>{})},close(){this.isOpen=!1}}},Jb={class:"today-now-show"},Zb=["value"],Qb=T("div",{class:"state-body-name"},"sd-webui-prompt-all-in-one",-1),eC=["innerHTML"],tC={class:"package-list"},nC={class:"package-name"},iC={class:"package-command"},rC={key:0,class:"install-result"};function sC(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-packages-state",onClick:t[6]||(t[6]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"state-main",onClick:t[5]||(t[5]=tt(()=>{},["stop"]))},[T("div",{class:"state-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"state-body",onClick:t[4]||(t[4]=tt(()=>{},["stop"]))},[T("div",Jb,[T("label",null,[T("input",{type:"checkbox",value:r.todayNotShow,onChange:t[1]||(t[1]=(...c)=>o.onTodayNotShowChange&&o.onTodayNotShowChange(...c))},null,40,Zb),Ft(" "+ae(e.getLang("today_not_show")),1)])]),Qb,T("div",{class:"state-body-language",onClick:t[2]||(t[2]=c=>e.$emit("click:selectLanguage",c))},[pe(l,{name:"i18n"}),T("div",null,"Language: "+ae(e.langName),1)]),T("div",{class:"state-body-desc",innerHTML:e.getLang("packages_desc")},null,8,eC),T("div",tC,[(N(!0),B(Re,null,vt(n.packagesState,c=>(N(),B("div",{key:c.name,class:"package-item"},[T("div",nC,ae(c.name),1),T("div",{class:St(["package-state",c.state?"installed":"not_install"])},ae(e.getLang(c.state?"installed":"not_install")),3),T("div",iC,ae(o.getCommand(c)),1)]))),128))]),T("div",{class:"btn-packages-install hover-scale-120",onClick:t[3]||(t[3]=(...c)=>o.onInstallClick&&o.onInstallClick(...c))},[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("install")),1)],64))]),r.showResult?(N(),B("div",rC,[Ft(ae(e.getLang("packages_installing"))+" ",1),r.result?(N(),B("div",{key:0,class:"result-content",ref:"result"},ae(r.result),513)):je("",!0)])):je("",!0)])])])):je("",!0)}const oC=sn(Gb,[["render",sC]]),aC={name:"ChatgptPrompt",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1,api:{},configs:[],chatPreset:"",hidePanels:{api:!0},imageDesc:"",promptResult:"",saveConfigIng:!1,genIng:!1}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.saveConfigIng=!1,this.genIng=!1,this.gradioAPI.getDatas(["chatgpt_prompts_preset","chatgpt_key","translate_api.openai"]).then(e=>{console.log(e),e.chatgpt_prompts_preset!==null?this.chatPreset=e.chatgpt_prompts_preset:this.chatPreset=this.getLang("chatgpt_prompts_preset"),this.configs=[];let t={},n=oe.getTranslateApiItem(this.translateApis,"openai");if(n=JSON.parse(JSON.stringify(n)),e.chatgpt_key&&typeof e.chatgpt_key=="object")for(const i of n.config)t[i.key]=e.chatgpt_key[i.key]||i.default||"";else if(e["translate_api.openai"]&&e["translate_api.openai"].api_key)for(const i of n.config)t[i.key]=e["translate_api.openai"][i.key]||i.default||"";else for(const i of n.config)t[i.key]=i.default||"";t.api_key||(this.hidePanels.api=!1);for(const i of n.config)i.value=t[i.key],this.configs.push(i)})},close(){this.isOpen=!1},onUnfoldClick(e){this.hidePanels[e]=!this.hidePanels[e]},onSaveConfigClick(){if(this.saveConfigIng)return;this.saveConfigIng=!0;let e={};this.configs.forEach(t=>{e[t.key]=t.value}),this.gradioAPI.setData("chatgpt_key",e).then(t=>{this.$toastr.success(this.getLang("success")),this.saveConfigIng=!1}).catch(t=>{this.$toastr.error(t.message||t),this.saveConfigIng=!1})},onPresetChange(e){this.chatPreset=e.target.value,this._saveChatPreset()},onRestoreClick(){this.chatPreset=this.getLang("chatgpt_prompts_preset"),this._saveChatPreset()},_saveChatPreset(){this.gradioAPI.setData("chatgpt_prompts_preset",this.chatPreset)},onGenClick(){if(this.genIng)return;if(!this.imageDesc)return this.$refs.imageDesc.focus();if(this.imageDesc=this.imageDesc.trim(),!this.imageDesc)return this.$refs.imageDesc.focus();this.genIng=!0;let e=[{role:"user",content:this.chatPreset},{role:"user",content:this.imageDesc}],t={};this.configs.forEach(n=>{t[n.key]=n.value}),this.gradioAPI.genOpenAI(e,t).then(n=>{n.success?this.promptResult=n.result:this.$toastr.error(n.message||"error"),this.genIng=!1}).catch(n=>{this.$toastr.error(n.message||n),this.genIng=!1})},onUseClick(){this.$emit("use",this.promptResult),this.close()}}},lC={class:"panel-header"},uC={class:"panel-title"},cC={class:"panel-content"},fC={class:"body-line"},dC={class:"line-title"},pC={class:"line-content"},hC=["onUpdate:modelValue"],gC=["onUpdate:modelValue"],mC=["value"],vC=["innerHTML"],yC={class:"body-line"},bC=T("div",{class:"line-title"},null,-1),CC={class:"line-content text-right"},wC={class:"panel-header"},TC={class:"panel-title"},_C={class:"panel-content"},EC={class:"body-line"},SC={class:"line-title"},kC={class:"line-subtitle"},xC={class:"line-content"},AC=["value"],LC={class:"body-line"},OC=T("div",{class:"line-title"},null,-1),DC={class:"line-content text-right"},PC={class:"body-line"},IC={class:"line-title"},NC={class:"line-subtitle"},RC={class:"line-content"},MC=["placeholder"],FC={class:"body-line"},HC=T("div",{class:"line-title"},null,-1),BC={class:"line-content text-right"},jC={class:"panel-header"},$C={class:"panel-title"},UC={class:"panel-content"},WC={class:"body-line"},VC={class:"line-title"},KC={class:"line-content"},qC={key:0,class:"body-line"},zC=T("div",{class:"line-title"},null,-1),XC={class:"line-content text-right"};function YC(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-chatgpt-prompt",onClick:t[13]||(t[13]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"chatgpt-main",onClick:t[12]||(t[12]=tt(()=>{},["stop"]))},[T("div",{class:"chatgpt-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"chatgpt-body",onClick:t[11]||(t[11]=tt(()=>{},["stop"]))},[T("div",{class:St(["body-panel",r.hidePanels.api?"fold":""])},[T("div",lC,[T("div",{class:"panel-unfold",onClick:t[1]||(t[1]=c=>o.onUnfoldClick("api"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",uC,ae(e.getLang("api_config")),1)]),T("div",cC,[(N(!0),B(Re,null,vt(r.configs,c=>(N(),B("div",fC,[T("div",dC,ae(c.title),1),T("div",pC,[c.type=="input"?fe((N(),B("input",{key:0,type:"text","onUpdate:modelValue":d=>c.value=d},null,8,hC)),[[Hi,c.value]]):je("",!0),c.type=="select"?fe((N(),B("select",{key:1,"onUpdate:modelValue":d=>c.value=d},[(N(!0),B(Re,null,vt(c.options,d=>(N(),B("option",{value:d},ae(d),9,mC))),256))],8,gC)),[[Xs,c.value]]):je("",!0),c.desc?(N(),B("div",{key:2,innerHTML:c.desc},null,8,vC)):je("",!0)])]))),256)),T("div",yC,[bC,T("div",CC,[T("div",{class:"common-btn hover-scale-120",onClick:t[2]||(t[2]=(...c)=>o.onSaveConfigClick&&o.onSaveConfigClick(...c))},[r.saveConfigIng?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("save")),1)],64))])])])])],2),T("div",{class:St(["body-panel",r.hidePanels.send?"fold":""])},[T("div",wC,[T("div",{class:"panel-unfold",onClick:t[3]||(t[3]=c=>o.onUnfoldClick("send"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",TC,ae(e.getLang("image_desc")),1)]),T("div",_C,[T("div",EC,[T("div",SC,[Ft(ae(e.getLang("preset"))+" ",1),T("div",kC,ae(e.getLang("ai_one")),1)]),T("div",xC,[T("textarea",{value:r.chatPreset,onChange:t[4]||(t[4]=(...c)=>o.onPresetChange&&o.onPresetChange(...c)),style:{height:"100px"}},null,40,AC)])]),T("div",LC,[OC,T("div",DC,[T("a",{href:"javascript:",onClick:t[5]||(t[5]=(...c)=>o.onRestoreClick&&o.onRestoreClick(...c))},ae(e.getLang("restore_to_default")),1)])]),T("div",PC,[T("div",IC,[Ft(ae(e.getLang("image_desc"))+" ",1),T("div",NC,ae(e.getLang("ai_two")),1)]),T("div",RC,[fe(T("textarea",{style:{height:"100px"},ref:"imageDesc","onUpdate:modelValue":t[6]||(t[6]=c=>r.imageDesc=c),placeholder:e.getLang("input_image_desc")},null,8,MC),[[Hi,r.imageDesc]])])]),T("div",FC,[HC,T("div",BC,[T("div",{class:"common-btn hover-scale-120",onClick:t[7]||(t[7]=(...c)=>o.onGenClick&&o.onGenClick(...c))},[r.genIng?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("generate")),1)],64))])])])])],2),T("div",{class:St(["body-panel",r.hidePanels.result?"fold":""])},[T("div",jC,[T("div",{class:"panel-unfold",onClick:t[8]||(t[8]=c=>o.onUnfoldClick("result"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",$C,ae(e.getLang("generate_result")),1)]),T("div",UC,[T("div",WC,[T("div",VC,ae(e.getLang("generate_result")),1),T("div",KC,[fe(T("textarea",{style:{height:"100px"},"onUpdate:modelValue":t[9]||(t[9]=c=>r.promptResult=c)},null,512),[[Hi,r.promptResult]])])]),r.promptResult?(N(),B("div",qC,[zC,T("div",XC,[T("div",{class:"common-btn hover-scale-120",onClick:t[10]||(t[10]=(...c)=>o.onUseClick&&o.onUseClick(...c))},ae(e.getLang("use")),1)])])):je("",!0)])],2)])])])):je("",!0)}const GC=sn(aC,[["render",YC]]),JC={name:"About",components:{IconSvg:Fn},mixins:[Yn],data(){return{version:"",latestVersion:"",isLatestVersion:!0,isOpen:!1,loading:!1,versions:[],icons:[{title:"GitHub stars",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/stargazers",image:"https://img.shields.io/github/stars/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub forks",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/network/members",image:"https://img.shields.io/github/forks/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub issues",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/issues",image:"https://img.shields.io/github/issues/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub issues closed",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/issues?q=is%3Aissue+is%3Aclosed",image:"https://img.shields.io/github/issues-closed/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub license",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/blob/master/LICENSE.md",image:"https://img.shields.io/github/license/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub commits",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/commits/main",image:"https://img.shields.io/github/last-commit/Physton/sd-webui-prompt-all-in-one?style=flat-square"}]}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.version="",this.latestVersion="",this.isLatestVersion=!0,this.versions=[],this.loading=!0,this.gradioAPI.getVersion().then(e=>{this.version=e.version,this.latestVersion=e.latest_version,this.isLatestVersion=e.version===e.latest_version}),this.gradioAPI.getRemoteVersions().then(e=>{this.loading=!1;let t=[];e.forEach((n,i)=>{n.is_update_readme||(n.date=oe.formatTime(n.date),t.push(n))}),this.versions=t}).catch(e=>{this.loading=!1})},close(){this.isOpen=!1},commitUrl(e){return"https://github.com/Physton/sd-webui-prompt-all-in-one/commit/"+e},formatVersion(e){return e?e.slice(0,7):this.getLang("unknown_version")},message(e){return e=oe.escapeHtml(e),e=e.replace(/Former-commit-id: [a-z0-9]{40}/g,""),e=e.trim(),e=e.replace(` -`,"
"),e=e.replace(/#(\d+)/g,'#$1'),e}}},ZC=T("p",{class:"body-title"},[T("a",{href:"https://github.com/Physton/sd-webui-prompt-all-in-one",target:"_blank"},"sd-webui-prompt-all-in-one")],-1),QC=["href"],ew=["src","alt"],tw={key:0},nw=["href"],iw={key:0,class:"has-new-version"},rw=["href"],sw=T("a",{href:"https://physton.github.io/sd-webui-prompt-all-in-one-assets/",target:"_blank"},"Wiki",-1),ow={class:"version-list"},aw={class:"item-header"},lw={class:"version-sha"},uw=["href"],cw={class:"version-date"},fw=["innerHTML"];function dw(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-about-prompt",onClick:t[3]||(t[3]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"about-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"about-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"about-body",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[ZC,T("p",null,[(N(!0),B(Re,null,vt(r.icons,c=>(N(),B("a",{key:c.title,href:c.url,target:"_blank"},[T("img",{src:c.image,alt:c.title},null,8,ew)],8,QC))),128))]),r.loading?je("",!0):(N(),B("p",tw,[T("span",null,[Ft(ae(e.getLang("version"))+": ",1),T("a",{href:o.commitUrl(r.version),target:"_blank"},ae(o.formatVersion(r.version)),9,nw)]),!r.isLatestVersion&&r.latestVersion?(N(),B("span",iw,[Ft("    ("+ae(e.getLang("has_new_version"))+": ",1),T("a",{href:o.commitUrl(r.latestVersion),target:"_blank"},ae(o.formatVersion(r.latestVersion)),9,rw),Ft(")")])):je("",!0)])),T("p",null,[Ft(ae(e.getLang("wiki_desc"))+" ",1),sw]),T("div",ow,[r.loading?(N(),mt(l,{key:0,name:"loading"})):je("",!0),(N(!0),B(Re,null,vt(r.versions,c=>(N(),B("div",{class:"version-item",key:c.version},[T("div",aw,[T("div",lw,[T("a",{href:o.commitUrl(c.version),target:"_blank"},ae(o.formatVersion(c.version)),9,uw)]),T("div",cw,ae(c.date),1)]),T("div",{class:"version-msg",innerHTML:o.message(c.message)},null,8,fw)]))),128))])])])])):je("",!0)}const pw={name:"App",components:{About:sn(JC,[["render",dw]]),ChatgptPrompt:GC,PackagesState:oC,PromptFormat:Yb,ExtensionCss:Nb,IconSvg:Fn,History:Sb,Favorite:Xy,SelectLanguage:yy,TranslateSetting:hy,PhystonPrompt:cv},mixins:[],data(){return{prompts:[{tab:"tab_txt2img",prompt:"txt2img_prompt",counter:"txt2img_token_counter",button:"txt2img_token_button",steps:"txt2img_steps",historyKey:"txt2img",favoriteKey:"txt2img",$prompt:null,$textarea:null,$steps:null,name:"txt2img_prompt",neg:!1,hideDefaultInputKey:"txt2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgHidePanel",hidePanel:!1,id:"phystonPrompt_txt2img_prompt"},{tab:"tab_txt2img",prompt:"txt2img_neg_prompt",counter:"txt2img_negative_token_counter",button:"txt2img_negative_token_button",steps:"txt2img_steps",historyKey:"txt2img_neg",favoriteKey:"txt2img_neg",$prompt:null,$textarea:null,$steps:null,name:"txt2img_neg_prompt",neg:!0,hideDefaultInputKey:"txt2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgNegHidePanel",hidePanel:!1,id:"phystonPrompt_txt2img_neg_prompt"},{tab:"tab_img2img",prompt:"img2img_prompt",counter:"img2img_token_counter",button:"img2img_token_button",steps:"img2img_steps",historyKey:"img2img",favoriteKey:"img2img",$prompt:null,$textarea:null,$steps:null,name:"img2img_prompt",neg:!1,hideDefaultInputKey:"img2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgHidePanel",hidePanel:!1,id:"phystonPrompt_img2img_prompt"},{tab:"tab_img2img",prompt:"img2img_neg_prompt",counter:"img2img_negative_token_counter",button:"img2img_negative_token_button",steps:"img2img_steps",historyKey:"img2img_neg",favoriteKey:"img2img_neg",$prompt:null,$textarea:null,$steps:null,name:"img2img_neg_prompt",neg:!0,hideDefaultInputKey:"img2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgNegHidePanel",hidePanel:!1,id:"phystonPrompt_img2img_neg_prompt"}],languageCode:"",languages:{},translateApis:[],translateApi:"",translateApiConfig:{},canOneTranslate:!1,autoTranslate:!1,autoTranslateToEnglish:!1,autoTranslateToLocal:!1,autoRemoveSpace:!0,autoRemoveLastComma:!1,autoKeepWeightZero:!1,autoKeepWeightOne:!1,enableTooltip:!0,tagCompleteFile:"",onlyCsvOnAuto:!1,startWatchSave:!1,pasteBtn:null,showPastePopup:!1,pasteTitle:"",pasteContent:"",pasteLoading:!1,historyCurrentPrompt:"",favoriteCurrentPrompt:"",chatgptCurrentPrompt:"",extraNetworks:[],loras:[],lycos:[],embeddings:[],python:"",packagesState:[],version:"",latestVersion:"",isLatestVersion:!0,theme:"dark"}},watch:{languageCode:{handler:function(e,t){this.startWatchSave&&(console.log("onLanguageCodeChange",e),this.canOneTranslate=oe.canOneTranslate(this.languageCode),this.gradioAPI.setData("languageCode",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslateToEnglish:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToEnglishChange",e),this.gradioAPI.setData("autoTranslateToEnglish",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslateToLocal:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToLocalChange",e),this.gradioAPI.setData("autoTranslateToLocal",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslate:{handler:function(e,t){this.startWatchSave&&(this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate,console.log("onAutoTranslateChange",e),this.gradioAPI.setData("autoTranslate",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoRemoveSpace:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveSpaceChange",e),this.gradioAPI.setData("autoRemoveSpace",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoRemoveLastComma:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveLastCommaChange",e),this.gradioAPI.setData("autoRemoveLastComma",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoKeepWeightZero:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightZeroChange",e),this.gradioAPI.setData("autoKeepWeightZero",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoKeepWeightOne:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightOneChange",e),this.gradioAPI.setData("autoKeepWeightOne",e).then(n=>{}).catch(n=>{}))},immediate:!1},enableTooltip:{handler:function(e,t){this.startWatchSave&&(localStorage.setItem("phystonPromptEnableTooltip",e?"true":"false"),this.updateTippyState(),this.gradioAPI.setData("enableTooltip",e).then(n=>{}).catch(n=>{}))},immediate:!1},translateApi:{handler:function(e,t){this.startWatchSave&&(console.log("onTranslateApiChange",e,t),this.updateTranslateApiConfig(),this.gradioAPI.setData("translateApi",e).then(n=>{}).catch(n=>{}))},immediate:!1},tagCompleteFile:{handler:function(e,t){this.startWatchSave&&(console.log("onTagCompleteFileChange",e,t),this.gradioAPI.setData("tagCompleteFile",e).then(n=>{}).catch(n=>{}))},immediate:!1},onlyCsvOnAuto(){this.startWatchSave&&(console.log("onOnlyCsvOnAutoChange",this.onlyCsvOnAuto),this.gradioAPI.setData("onlyCsvOnAuto",this.onlyCsvOnAuto).then(e=>{}).catch(e=>{}))}},mounted(){oe.loadCSS("toastr.min.css","physton-prompt-toastr",!0,!0,!1),oe.loadCSS("tippy.css","physton-prompt-tippy",!0,!0,!1),oe.loadCSS("main.min.css","physton-prompt-main",!0);let t=new URLSearchParams(window.location.search).get("__theme");["dark","light"].includes(t)&&(this.theme=t,oe.gradioApp().classList.contains(this.theme)||oe.gradioApp().classList.add(this.theme)),this.gradioAPI.getConfig().then(n=>{console.log("config:",n),this.languageCode=n.i18n.default,this.translateApi=n.translate_apis.default,this.translateApis=n.translate_apis.apis,this.python=n.python,this.packagesState=n.packages_state;let i={};n.i18n.languages.forEach(r=>{i[r.code]=r}),this.languages=i,this.init()}).catch(n=>{this.$toastr.error("Connection to backend API service failed. Please manually refresh the webpage. If it still doesn't work, please restart the WebUI.
连接到后台接口服务失败,请手动再刷新一次网页。如果还是不行,请重启WebUI。

"+n.message,"sd-webui-prompt-all-in-one",{timeOut:2e4}),console.log(n)})},methods:{getLang(e){return oe.getLang(e,this.languageCode,this.languages)},init(){this.loadExtraNetworks();let e=["languageCode","autoTranslate","autoTranslateToEnglish","autoTranslateToLocal","autoRemoveSpace","autoRemoveLastComma","autoKeepWeightZero","autoKeepWeightOne","translateApi","enableTooltip","tagCompleteFile","onlyCsvOnAuto","extensionSelect.minimalist"];this.prompts.forEach(t=>{e.push(t.hideDefaultInputKey),e.push(t.hidePanelKey)}),this.gradioAPI.getDatas(e).then(t=>{if(t.languageCode!==null){let n=!1;for(let i in this.languages)if(this.languages[i].code===t.languageCode){n=!0;break}n&&(this.languageCode=t.languageCode,this.$forceUpdate())}this.canOneTranslate=oe.canOneTranslate(this.languageCode),t.autoTranslateToEnglish!==null&&(this.autoTranslateToEnglish=t.autoTranslateToEnglish),t.autoTranslateToLocal!==null&&(this.autoTranslateToLocal=t.autoTranslateToLocal),t.autoTranslate!==null?this.canOneTranslate?(this.autoTranslate=t.autoTranslate,this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate):this.autoTranslate=!1:this.canOneTranslate?(this.autoTranslate=this.autoTranslateToEnglish||this.autoTranslateToLocal,this.autoTranslateToEnglish=!0,this.autoTranslateToLocal=!0):this.autoTranslate=!1,t.autoRemoveSpace!==null&&(this.autoRemoveSpace=t.autoRemoveSpace),t.autoRemoveLastComma!==null&&(this.autoRemoveLastComma=t.autoRemoveLastComma),t.autoKeepWeightZero!==null&&(this.autoKeepWeightZero=t.autoKeepWeightZero),t.autoKeepWeightOne!==null&&(this.autoKeepWeightOne=t.autoKeepWeightOne),t.enableTooltip!==null&&(this.enableTooltip=t.enableTooltip),localStorage.setItem("phystonPromptEnableTooltip",this.enableTooltip?"true":"false"),this.updateTippyState(),t.translateApi!==null&&(t.translateApi==="alibaba_free"?this.gradioAPI.setData("translateApi",this.translateApi):this.translateApi=t.translateApi),t.tagCompleteFile!==null&&(this.tagCompleteFile=t.tagCompleteFile,this.$nextTick(()=>{this.$refs.translateSetting.getCSV(this.tagCompleteFile)})),t.onlyCsvOnAuto!==null&&(this.onlyCsvOnAuto=t.onlyCsvOnAuto),t["extensionSelect.minimalist"]===null&&this.gradioAPI.setData("extensionSelect.minimalist",!0),this.updateTranslateApiConfig(),this.$refs.extensionCss.init(),this.prompts.forEach(n=>{t[n.hideDefaultInputKey]!==null&&(n.hideDefaultInput=t[n.hideDefaultInputKey]),t[n.hidePanelKey]!==null&&(n.hidePanel=t[n.hidePanelKey]),n.$prompt=oe.gradioApp().querySelector("#"+n.prompt),n.$textarea=n.$prompt.getElementsByTagName("textarea")[0],n.$steps=oe.gradioApp().querySelector("#"+n.steps)}),this.$nextTick(()=>{this.prompts.forEach(n=>{const i=oe.gradioApp().querySelector("#"+n.id);n.$prompt.parentElement.parentElement.parentElement.appendChild(i),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex"}),this.startWatchSave=!0}),this.handlePaste()})},updateTippyState(){for(const e of this.$tippyList)this.enableTooltip?e.enable():e.disable()},updateTranslateApiConfig(){this.gradioAPI.getData("translate_api."+this.translateApi).then(e=>{let t={};const n=oe.getTranslateApiItem(this.translateApis,this.translateApi);if(n.config){for(const i of n.config)n.type==="translators"&&i.key==="region"&&!e.region?t[i.key]=this.languageCode==="zh_CN"||this.languageCode==="zh_HK"||this.languageCode==="zh_TW"?"China":"EN":e?t[i.key]=e[i.key]:t[i.key]=i.default||"";t.concurrent=n.concurrent||0}this.translateApiConfig=t})},onPromptFormatClick(e){this.$refs.promptFormat.open(e)},onSelectLanguageClick(e){this.$refs.selectLanguage.open(e)},onTranslateApiClick(){this.$refs.translateSetting.open(this.translateApi)},onSelectThemeClick(){this.$refs.extensionCss.open()},handlePaste(){if(typeof gradioApp!="function")return;const e=gradioApp().querySelectorAll("#paste");!e||e.length<=0||e.forEach((t,n)=>{const i=t.cloneNode(!0);i.id="paste-new-"+n,i.innerHTML="🗒",t.parentNode.insertBefore(i,t.nextSibling),i.addEventListener("click",()=>{this.pasteBtn=t,this.openPastePopup()}),this.pasteTitle=t.title})},openPastePopup(){this.pasteContent="",this.pasteLoading=!1,this.showPastePopup=!0},closePastePopup(){this.showPastePopup=!1},onClickPasteSubmit(){this.pasteLoading=!0;const e=get_uiCurrentTabContent();let t=null,n=null,i=null,r=null,o=[];for(const l of this.prompts)l.tab==e.id&&(console.log(l),o.push(l.id),l.neg?(n=l.$textarea,r=l.$prompt):(t=l.$textarea,i=l.$prompt));if(!t||!i||!r){this.pasteLoading=!1;return}t.value=this.pasteContent,t.dispatchEvent(new Event("input")),this.pasteBtn.dispatchEvent(new Event("click")),setTimeout(()=>{let l=0,c=0;l=setInterval(()=>{if(c++,c>100){this.pasteLoading=!1,clearInterval(l);return}i.getElementsByClassName("hide").length>0&&r.getElementsByClassName("hide").length>0&&(this.pasteLoading=!1,this.closePastePopup(),clearInterval(l),oe.hideCompleteResults(t),oe.hideCompleteResults(n),o.forEach((d,m)=>{setTimeout(()=>{this.$refs[d][0].onTextareaChange(!0)},1e3)}))},100)},1e3)},onUpdateHideDefaultInput(e,t){const n=this.prompts.find(i=>i.id==e);n&&(n.hideDefaultInput=t,this.gradioAPI.setData(n.hideDefaultInputKey,n.hideDefaultInput),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex")},onUpdateHidePanel(e,t){const n=this.prompts.find(i=>i.id==e);n&&(n.hidePanel=t,this.gradioAPI.setData(n.hidePanelKey,n.hidePanel))},onShowHistory(e,t){this.$refs.favorite.hide(),this.historyCurrentPrompt=e;const n=this.prompts.find(i=>i.id==e);n&&this.$refs.history.show(n.historyKey,t)},onUseHistory(e){if(!this.historyCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.historyCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onShowFavorite(e,t){this.$refs.history.hide(),this.favoriteCurrentPrompt=e;const n=this.prompts.find(i=>i.id==e);n&&this.$refs.favorite.show(n.favoriteKey,t)},onUseFavorite(e){if(!this.favoriteCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.favoriteCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onRefreshFavorites(e){this.$refs.favorite.getFavorites(e)},onShowChatgpt(e,t){this.chatgptCurrentPrompt=e,this.prompts.find(i=>i.id==e)&&this.$refs.chatgptPrompt.open()},onUseChatgpt(e){if(!this.chatgptCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.chatgptCurrentPrompt);t&&this.$refs[t.id][0].useChatgpt(e)},onShowAbout(){this.$refs.about.open()},onSwitchTheme(){this.theme=this.theme==="dark"?"light":"dark";let e=window.location.href,t=new URL(e),n=new URLSearchParams(t.search);n.has("__theme")?n.set("__theme",this.theme):n.append("__theme",this.theme);let i=t.origin+t.pathname+"?"+n.toString();window.location.href=i}}},hw={class:"paste-popup-title"},gw={class:"paste-popup-body"},mw=["placeholder"],vw={key:1,class:"paste-submit"};function yw(e,t,n,i,r,o){const l=Lt("physton-prompt"),c=Lt("translate-setting"),d=Lt("select-language"),m=Lt("prompt-format"),g=Lt("history"),w=Lt("favorite"),_=Lt("extension-css"),R=Lt("packages-state"),k=Lt("chatgpt-prompt"),O=Lt("about"),U=Lt("icon-svg");return N(),B("div",null,[(N(!0),B(Re,null,vt(r.prompts,P=>(N(),B(Re,{key:P.name},[P.$textarea?(N(),mt(l,{key:0,id:P.id,ref_for:!0,ref:P.id,name:P.name,neg:P.neg,textarea:P.$textarea,steps:P.$steps,"language-code":r.languageCode,"onUpdate:languageCode":t[0]||(t[0]=Z=>r.languageCode=Z),"translate-apis":r.translateApis,languages:r.languages,"history-key":P.historyKey,"onClick:showHistory":Z=>o.onShowHistory(P.id,Z),"favorite-key":P.favoriteKey,onRefreshFavorites:o.onRefreshFavorites,"onClick:showFavorite":Z=>o.onShowFavorite(P.id,Z),"can-one-translate":r.canOneTranslate,"onUpdate:canOneTranslate":t[1]||(t[1]=Z=>r.canOneTranslate=Z),"auto-translate":r.autoTranslate,"onUpdate:autoTranslate":t[2]||(t[2]=Z=>r.autoTranslate=Z),"auto-translate-to-english":r.autoTranslateToEnglish,"onUpdate:autoTranslateToEnglish":t[3]||(t[3]=Z=>r.autoTranslateToEnglish=Z),"auto-translate-to-local":r.autoTranslateToLocal,"onUpdate:autoTranslateToLocal":t[4]||(t[4]=Z=>r.autoTranslateToLocal=Z),"auto-remove-space":r.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[5]||(t[5]=Z=>r.autoRemoveSpace=Z),"auto-remove-last-comma":r.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[6]||(t[6]=Z=>r.autoRemoveLastComma=Z),"auto-keep-weight-zero":r.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[7]||(t[7]=Z=>r.autoKeepWeightZero=Z),"auto-keep-weight-one":r.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[8]||(t[8]=Z=>r.autoKeepWeightOne=Z),"hide-default-input":P.hideDefaultInput,"onUpdate:hideDefaultInput":Z=>o.onUpdateHideDefaultInput(P.id,Z),"hide-panel":P.hidePanel,"onUpdate:hidePanel":Z=>o.onUpdateHidePanel(P.id,Z),"enable-tooltip":r.enableTooltip,"onUpdate:enableTooltip":t[9]||(t[9]=Z=>r.enableTooltip=Z),"translate-api":r.translateApi,"onUpdate:translateApi":t[10]||(t[10]=Z=>r.translateApi=Z),"translate-api-config":r.translateApiConfig,"onClick:translateApi":o.onTranslateApiClick,"onClick:promptFormat":o.onPromptFormatClick,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[11]||(t[11]=Z=>r.tagCompleteFile=Z),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[12]||(t[12]=Z=>r.onlyCsvOnAuto=Z),"onClick:selectLanguage":o.onSelectLanguageClick,"onClick:selectTheme":o.onSelectThemeClick,"onClick:showChatgpt":Z=>o.onShowChatgpt(P.id,Z),"extra-networks":r.extraNetworks,loras:r.loras,lycos:r.lycos,embeddings:r.embeddings,version:r.version,"latest-version":r.latestVersion,"is-latest-version":r.isLatestVersion,"onClick:showAbout":o.onShowAbout,theme:r.theme,"onClick:switchTheme":o.onSwitchTheme},null,8,["id","name","neg","textarea","steps","language-code","translate-apis","languages","history-key","onClick:showHistory","favorite-key","onRefreshFavorites","onClick:showFavorite","can-one-translate","auto-translate","auto-translate-to-english","auto-translate-to-local","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","hide-default-input","onUpdate:hideDefaultInput","hide-panel","onUpdate:hidePanel","enable-tooltip","translate-api","translate-api-config","onClick:translateApi","onClick:promptFormat","tag-complete-file","only-csv-on-auto","onClick:selectLanguage","onClick:selectTheme","onClick:showChatgpt","extra-networks","loras","lycos","embeddings","version","latest-version","is-latest-version","onClick:showAbout","theme","onClick:switchTheme"])):je("",!0)],64))),128)),pe(c,{ref:"translateSetting","language-code":r.languageCode,"onUpdate:languageCode":t[13]||(t[13]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"onForceUpdate:translateApi":o.updateTranslateApiConfig,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[14]||(t[14]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[15]||(t[15]=P=>r.onlyCsvOnAuto=P),"translate-api":r.translateApi,"onUpdate:translateApi":t[16]||(t[16]=P=>r.translateApi=P)},null,8,["language-code","translate-apis","languages","onForceUpdate:translateApi","tag-complete-file","only-csv-on-auto","translate-api"]),pe(d,{ref:"selectLanguage","language-code":r.languageCode,"onUpdate:languageCode":t[17]||(t[17]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"translate-api":r.translateApi,"onUpdate:translateApi":t[18]||(t[18]=P=>r.translateApi=P),"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[19]||(t[19]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[20]||(t[20]=P=>r.onlyCsvOnAuto=P)},null,8,["language-code","translate-apis","languages","translate-api","tag-complete-file","only-csv-on-auto"]),pe(m,{ref:"promptFormat","language-code":r.languageCode,"onUpdate:languageCode":t[21]||(t[21]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"auto-remove-space":r.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[22]||(t[22]=P=>r.autoRemoveSpace=P),"auto-remove-last-comma":r.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[23]||(t[23]=P=>r.autoRemoveLastComma=P),"auto-keep-weight-zero":r.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[24]||(t[24]=P=>r.autoKeepWeightZero=P),"auto-keep-weight-one":r.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[25]||(t[25]=P=>r.autoKeepWeightOne=P)},null,8,["language-code","translate-apis","languages","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one"]),pe(g,{ref:"history","language-code":r.languageCode,"onUpdate:languageCode":t[26]||(t[26]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[27]||(t[27]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[28]||(t[28]=P=>r.onlyCsvOnAuto=P),onRefreshFavorites:o.onRefreshFavorites,onUse:o.onUseHistory},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onRefreshFavorites","onUse"]),pe(w,{ref:"favorite","language-code":r.languageCode,"onUpdate:languageCode":t[29]||(t[29]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[30]||(t[30]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[31]||(t[31]=P=>r.onlyCsvOnAuto=P),onUse:o.onUseFavorite},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onUse"]),pe(_,{ref:"extensionCss","language-code":r.languageCode,"onUpdate:languageCode":t[32]||(t[32]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages},null,8,["language-code","translate-apis","languages"]),pe(R,{ref:"packagesState","language-code":r.languageCode,"onUpdate:languageCode":t[33]||(t[33]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"onClick:selectLanguage":o.onSelectLanguageClick,"packages-state":r.packagesState,python:r.python},null,8,["language-code","translate-apis","languages","onClick:selectLanguage","packages-state","python"]),pe(k,{ref:"chatgptPrompt","language-code":r.languageCode,"onUpdate:languageCode":t[34]||(t[34]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,onUse:o.onUseChatgpt},null,8,["language-code","translate-apis","languages","onUse"]),pe(O,{ref:"about","language-code":r.languageCode,"onUpdate:languageCode":t[35]||(t[35]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages},null,8,["language-code","translate-apis","languages"]),r.showPastePopup?(N(),B("div",{key:0,class:"physton-paste-popup",onClick:t[40]||(t[40]=(...P)=>o.closePastePopup&&o.closePastePopup(...P))},[T("div",{class:"paste-popup-main",onClick:t[39]||(t[39]=tt(()=>{},["stop"]))},[T("div",{class:"paste-popup-close",onClick:t[36]||(t[36]=(...P)=>o.closePastePopup&&o.closePastePopup(...P))},[pe(U,{name:"close"})]),T("div",hw,ae(r.pasteTitle),1),T("div",gw,[fe(T("textarea",{class:"paste-content","onUpdate:modelValue":t[37]||(t[37]=P=>r.pasteContent=P),placeholder:o.getLang("please_enter_the_content_here")},null,8,mw),[[Hi,r.pasteContent]]),r.pasteLoading?(N(),B("div",vw,[pe(U,{name:"loading"})])):(N(),B("div",{key:0,class:"paste-submit",onClick:t[38]||(t[38]=(...P)=>o.onClickPasteSubmit&&o.onClickPasteSubmit(...P))},"Submit"))])])])):je("",!0)])}const bw=sn(pw,[["render",yw]]);var Oc={exports:{}},ja={exports:{}};/*! +`,t(!1)})};n()},scrollToBottom(){this.$nextTick(()=>{this.$refs.result.scrollTop=this.$refs.result.scrollHeight})},onTodayNotShowChange(){this.todayNotShow=!this.todayNotShow,this.gradioAPI.setData("packagesStateTodayNotShow",new Date().toLocaleDateString())},open(){this.gradioAPI.getData("packagesStateTodayNotShow").then(e=>{e&&e===new Date().toLocaleDateString()?this.close():(this.result="",this.loading=!1,this.showResult=!1,this.isOpen=!0)}).catch(e=>{})},close(){this.isOpen=!1}}},Zb={class:"today-now-show"},Qb=["value"],eC=T("div",{class:"state-body-name"},"sd-webui-prompt-all-in-one",-1),tC=["innerHTML"],nC={class:"package-list"},iC={class:"package-name"},rC={class:"package-command"},sC={key:0,class:"install-result"};function oC(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-packages-state",onClick:t[6]||(t[6]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"state-main",onClick:t[5]||(t[5]=tt(()=>{},["stop"]))},[T("div",{class:"state-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"state-body",onClick:t[4]||(t[4]=tt(()=>{},["stop"]))},[T("div",Zb,[T("label",null,[T("input",{type:"checkbox",value:r.todayNotShow,onChange:t[1]||(t[1]=(...c)=>o.onTodayNotShowChange&&o.onTodayNotShowChange(...c))},null,40,Qb),Ft(" "+ae(e.getLang("today_not_show")),1)])]),eC,T("div",{class:"state-body-language",onClick:t[2]||(t[2]=c=>e.$emit("click:selectLanguage",c))},[pe(l,{name:"i18n"}),T("div",null,"Language: "+ae(e.langName),1)]),T("div",{class:"state-body-desc",innerHTML:e.getLang("packages_desc")},null,8,tC),T("div",nC,[(N(!0),B(Re,null,vt(n.packagesState,c=>(N(),B("div",{key:c.name,class:"package-item"},[T("div",iC,ae(c.name),1),T("div",{class:St(["package-state",c.state?"installed":"not_install"])},ae(e.getLang(c.state?"installed":"not_install")),3),T("div",rC,ae(o.getCommand(c)),1)]))),128))]),T("div",{class:"btn-packages-install hover-scale-120",onClick:t[3]||(t[3]=(...c)=>o.onInstallClick&&o.onInstallClick(...c))},[r.loading?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("install")),1)],64))]),r.showResult?(N(),B("div",sC,[Ft(ae(e.getLang("packages_installing"))+" ",1),r.result?(N(),B("div",{key:0,class:"result-content",ref:"result"},ae(r.result),513)):je("",!0)])):je("",!0)])])])):je("",!0)}const aC=sn(Jb,[["render",oC]]),lC={name:"ChatgptPrompt",components:{IconSvg:Fn},mixins:[Yn],props:{},data(){return{isOpen:!1,api:{},configs:[],chatPreset:"",hidePanels:{api:!0},imageDesc:"",promptResult:"",saveConfigIng:!1,genIng:!1}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.saveConfigIng=!1,this.genIng=!1,this.gradioAPI.getDatas(["chatgpt_prompts_preset","chatgpt_key","translate_api.openai"]).then(e=>{console.log(e),e.chatgpt_prompts_preset!==null?this.chatPreset=e.chatgpt_prompts_preset:this.chatPreset=this.getLang("chatgpt_prompts_preset"),this.configs=[];let t={},n=oe.getTranslateApiItem(this.translateApis,"openai");if(n=JSON.parse(JSON.stringify(n)),e.chatgpt_key&&typeof e.chatgpt_key=="object")for(const i of n.config)t[i.key]=e.chatgpt_key[i.key]||i.default||"";else if(e["translate_api.openai"]&&e["translate_api.openai"].api_key)for(const i of n.config)t[i.key]=e["translate_api.openai"][i.key]||i.default||"";else for(const i of n.config)t[i.key]=i.default||"";t.api_key||(this.hidePanels.api=!1);for(const i of n.config)i.value=t[i.key],this.configs.push(i)})},close(){this.isOpen=!1},onUnfoldClick(e){this.hidePanels[e]=!this.hidePanels[e]},onSaveConfigClick(){if(this.saveConfigIng)return;this.saveConfigIng=!0;let e={};this.configs.forEach(t=>{e[t.key]=t.value}),this.gradioAPI.setData("chatgpt_key",e).then(t=>{this.$toastr.success(this.getLang("success")),this.saveConfigIng=!1}).catch(t=>{this.$toastr.error(t.message||t),this.saveConfigIng=!1})},onPresetChange(e){this.chatPreset=e.target.value,this._saveChatPreset()},onRestoreClick(){this.chatPreset=this.getLang("chatgpt_prompts_preset"),this._saveChatPreset()},_saveChatPreset(){this.gradioAPI.setData("chatgpt_prompts_preset",this.chatPreset)},onGenClick(){if(this.genIng)return;if(!this.imageDesc)return this.$refs.imageDesc.focus();if(this.imageDesc=this.imageDesc.trim(),!this.imageDesc)return this.$refs.imageDesc.focus();this.genIng=!0;let e=[{role:"user",content:this.chatPreset},{role:"user",content:this.imageDesc}],t={};this.configs.forEach(n=>{t[n.key]=n.value}),this.gradioAPI.genOpenAI(e,t).then(n=>{n.success?this.promptResult=n.result:this.$toastr.error(n.message||"error"),this.genIng=!1}).catch(n=>{this.$toastr.error(n.message||n),this.genIng=!1})},onUseClick(){this.$emit("use",this.promptResult),this.close()}}},uC={class:"panel-header"},cC={class:"panel-title"},fC={class:"panel-content"},dC={class:"body-line"},pC={class:"line-title"},hC={class:"line-content"},gC=["onUpdate:modelValue"],mC=["onUpdate:modelValue"],vC=["value"],yC=["innerHTML"],bC={class:"body-line"},CC=T("div",{class:"line-title"},null,-1),wC={class:"line-content text-right"},TC={class:"panel-header"},_C={class:"panel-title"},EC={class:"panel-content"},SC={class:"body-line"},kC={class:"line-title"},xC={class:"line-subtitle"},AC={class:"line-content"},LC=["value"],OC={class:"body-line"},DC=T("div",{class:"line-title"},null,-1),PC={class:"line-content text-right"},IC={class:"body-line"},NC={class:"line-title"},RC={class:"line-subtitle"},MC={class:"line-content"},FC=["placeholder"],HC={class:"body-line"},BC=T("div",{class:"line-title"},null,-1),jC={class:"line-content text-right"},$C={class:"panel-header"},UC={class:"panel-title"},WC={class:"panel-content"},VC={class:"body-line"},KC={class:"line-title"},qC={class:"line-content"},zC={key:0,class:"body-line"},XC=T("div",{class:"line-title"},null,-1),YC={class:"line-content text-right"};function GC(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-chatgpt-prompt",onClick:t[13]||(t[13]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"chatgpt-main",onClick:t[12]||(t[12]=tt(()=>{},["stop"]))},[T("div",{class:"chatgpt-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"chatgpt-body",onClick:t[11]||(t[11]=tt(()=>{},["stop"]))},[T("div",{class:St(["body-panel",r.hidePanels.api?"fold":""])},[T("div",uC,[T("div",{class:"panel-unfold",onClick:t[1]||(t[1]=c=>o.onUnfoldClick("api"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",cC,ae(e.getLang("api_config")),1)]),T("div",fC,[(N(!0),B(Re,null,vt(r.configs,c=>(N(),B("div",dC,[T("div",pC,ae(c.title),1),T("div",hC,[c.type=="input"?fe((N(),B("input",{key:0,type:"text","onUpdate:modelValue":d=>c.value=d},null,8,gC)),[[Hi,c.value]]):je("",!0),c.type=="select"?fe((N(),B("select",{key:1,"onUpdate:modelValue":d=>c.value=d},[(N(!0),B(Re,null,vt(c.options,d=>(N(),B("option",{value:d},ae(d),9,vC))),256))],8,mC)),[[Xs,c.value]]):je("",!0),c.desc?(N(),B("div",{key:2,innerHTML:c.desc},null,8,yC)):je("",!0)])]))),256)),T("div",bC,[CC,T("div",wC,[T("div",{class:"common-btn hover-scale-120",onClick:t[2]||(t[2]=(...c)=>o.onSaveConfigClick&&o.onSaveConfigClick(...c))},[r.saveConfigIng?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("save")),1)],64))])])])])],2),T("div",{class:St(["body-panel",r.hidePanels.send?"fold":""])},[T("div",TC,[T("div",{class:"panel-unfold",onClick:t[3]||(t[3]=c=>o.onUnfoldClick("send"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",_C,ae(e.getLang("image_desc")),1)]),T("div",EC,[T("div",SC,[T("div",kC,[Ft(ae(e.getLang("preset"))+" ",1),T("div",xC,ae(e.getLang("ai_one")),1)]),T("div",AC,[T("textarea",{value:r.chatPreset,onChange:t[4]||(t[4]=(...c)=>o.onPresetChange&&o.onPresetChange(...c)),style:{height:"100px"}},null,40,LC)])]),T("div",OC,[DC,T("div",PC,[T("a",{href:"javascript:",onClick:t[5]||(t[5]=(...c)=>o.onRestoreClick&&o.onRestoreClick(...c))},ae(e.getLang("restore_to_default")),1)])]),T("div",IC,[T("div",NC,[Ft(ae(e.getLang("image_desc"))+" ",1),T("div",RC,ae(e.getLang("ai_two")),1)]),T("div",MC,[fe(T("textarea",{style:{height:"100px"},ref:"imageDesc","onUpdate:modelValue":t[6]||(t[6]=c=>r.imageDesc=c),placeholder:e.getLang("input_image_desc")},null,8,FC),[[Hi,r.imageDesc]])])]),T("div",HC,[BC,T("div",jC,[T("div",{class:"common-btn hover-scale-120",onClick:t[7]||(t[7]=(...c)=>o.onGenClick&&o.onGenClick(...c))},[r.genIng?(N(),mt(l,{key:0,name:"loading"})):(N(),B(Re,{key:1},[Ft(ae(e.getLang("generate")),1)],64))])])])])],2),T("div",{class:St(["body-panel",r.hidePanels.result?"fold":""])},[T("div",$C,[T("div",{class:"panel-unfold",onClick:t[8]||(t[8]=c=>o.onUnfoldClick("result"))},[pe(l,{class:"hover-scale-120",name:"unfold"})]),T("div",UC,ae(e.getLang("generate_result")),1)]),T("div",WC,[T("div",VC,[T("div",KC,ae(e.getLang("generate_result")),1),T("div",qC,[fe(T("textarea",{style:{height:"100px"},"onUpdate:modelValue":t[9]||(t[9]=c=>r.promptResult=c)},null,512),[[Hi,r.promptResult]])])]),r.promptResult?(N(),B("div",zC,[XC,T("div",YC,[T("div",{class:"common-btn hover-scale-120",onClick:t[10]||(t[10]=(...c)=>o.onUseClick&&o.onUseClick(...c))},ae(e.getLang("use")),1)])])):je("",!0)])],2)])])])):je("",!0)}const JC=sn(lC,[["render",GC]]),ZC={name:"About",components:{IconSvg:Fn},mixins:[Yn],data(){return{version:"",latestVersion:"",isLatestVersion:!0,isOpen:!1,loading:!1,versions:[],icons:[{title:"GitHub stars",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/stargazers",image:"https://img.shields.io/github/stars/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub forks",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/network/members",image:"https://img.shields.io/github/forks/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub issues",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/issues",image:"https://img.shields.io/github/issues/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub issues closed",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/issues?q=is%3Aissue+is%3Aclosed",image:"https://img.shields.io/github/issues-closed/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub license",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/blob/master/LICENSE.md",image:"https://img.shields.io/github/license/Physton/sd-webui-prompt-all-in-one?style=flat-square"},{title:"GitHub commits",url:"https://github.com/Physton/sd-webui-prompt-all-in-one/commits/main",image:"https://img.shields.io/github/last-commit/Physton/sd-webui-prompt-all-in-one?style=flat-square"}]}},emits:["use"],computed:{},mounted(){},methods:{open(){this.isOpen=!0,this.version="",this.latestVersion="",this.isLatestVersion=!0,this.versions=[],this.loading=!0,this.gradioAPI.getVersion().then(e=>{this.version=e.version,this.latestVersion=e.latest_version,this.isLatestVersion=e.version===e.latest_version}),this.gradioAPI.getRemoteVersions().then(e=>{this.loading=!1;let t=[];e.forEach((n,i)=>{n.is_update_readme||(n.date=oe.formatTime(n.date),t.push(n))}),this.versions=t}).catch(e=>{this.loading=!1})},close(){this.isOpen=!1},commitUrl(e){return"https://github.com/Physton/sd-webui-prompt-all-in-one/commit/"+e},formatVersion(e){return e?e.slice(0,7):this.getLang("unknown_version")},message(e){return e=oe.escapeHtml(e),e=e.replace(/Former-commit-id: [a-z0-9]{40}/g,""),e=e.trim(),e=e.replace(` +`,"
"),e=e.replace(/#(\d+)/g,'#$1'),e}}},QC=T("p",{class:"body-title"},[T("a",{href:"https://github.com/Physton/sd-webui-prompt-all-in-one",target:"_blank"},"sd-webui-prompt-all-in-one")],-1),ew=["href"],tw=["src","alt"],nw={key:0},iw=["href"],rw={key:0,class:"has-new-version"},sw=["href"],ow=T("a",{href:"https://physton.github.io/sd-webui-prompt-all-in-one-assets/",target:"_blank"},"Wiki",-1),aw={class:"version-list"},lw={class:"item-header"},uw={class:"version-sha"},cw=["href"],fw={class:"version-date"},dw=["innerHTML"];function pw(e,t,n,i,r,o){const l=Lt("icon-svg");return r.isOpen?(N(),B("div",{key:0,class:"physton-about-prompt",onClick:t[3]||(t[3]=(...c)=>o.close&&o.close(...c))},[T("div",{class:"about-main",onClick:t[2]||(t[2]=tt(()=>{},["stop"]))},[T("div",{class:"about-close",onClick:t[0]||(t[0]=(...c)=>o.close&&o.close(...c))},[pe(l,{name:"close"})]),T("div",{class:"about-body",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},[QC,T("p",null,[(N(!0),B(Re,null,vt(r.icons,c=>(N(),B("a",{key:c.title,href:c.url,target:"_blank"},[T("img",{src:c.image,alt:c.title},null,8,tw)],8,ew))),128))]),r.loading?je("",!0):(N(),B("p",nw,[T("span",null,[Ft(ae(e.getLang("version"))+": ",1),T("a",{href:o.commitUrl(r.version),target:"_blank"},ae(o.formatVersion(r.version)),9,iw)]),!r.isLatestVersion&&r.latestVersion?(N(),B("span",rw,[Ft("    ("+ae(e.getLang("has_new_version"))+": ",1),T("a",{href:o.commitUrl(r.latestVersion),target:"_blank"},ae(o.formatVersion(r.latestVersion)),9,sw),Ft(")")])):je("",!0)])),T("p",null,[Ft(ae(e.getLang("wiki_desc"))+" ",1),ow]),T("div",aw,[r.loading?(N(),mt(l,{key:0,name:"loading"})):je("",!0),(N(!0),B(Re,null,vt(r.versions,c=>(N(),B("div",{class:"version-item",key:c.version},[T("div",lw,[T("div",uw,[T("a",{href:o.commitUrl(c.version),target:"_blank"},ae(o.formatVersion(c.version)),9,cw)]),T("div",fw,ae(c.date),1)]),T("div",{class:"version-msg",innerHTML:o.message(c.message)},null,8,dw)]))),128))])])])])):je("",!0)}const hw={name:"App",components:{About:sn(ZC,[["render",pw]]),ChatgptPrompt:JC,PackagesState:aC,PromptFormat:Gb,ExtensionCss:Rb,IconSvg:Fn,History:kb,Favorite:Yy,SelectLanguage:by,TranslateSetting:gy,PhystonPrompt:cv},mixins:[],data(){return{prompts:[{tab:"tab_txt2img",prompt:"txt2img_prompt",counter:"txt2img_token_counter",button:"txt2img_token_button",steps:"txt2img_steps",historyKey:"txt2img",favoriteKey:"txt2img",$prompt:null,$textarea:null,$steps:null,name:"txt2img_prompt",neg:!1,hideDefaultInputKey:"txt2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgHidePanel",hidePanel:!1,id:"phystonPrompt_txt2img_prompt"},{tab:"tab_txt2img",prompt:"txt2img_neg_prompt",counter:"txt2img_negative_token_counter",button:"txt2img_negative_token_button",steps:"txt2img_steps",historyKey:"txt2img_neg",favoriteKey:"txt2img_neg",$prompt:null,$textarea:null,$steps:null,name:"txt2img_neg_prompt",neg:!0,hideDefaultInputKey:"txt2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"txt2ImgNegHidePanel",hidePanel:!1,id:"phystonPrompt_txt2img_neg_prompt"},{tab:"tab_img2img",prompt:"img2img_prompt",counter:"img2img_token_counter",button:"img2img_token_button",steps:"img2img_steps",historyKey:"img2img",favoriteKey:"img2img",$prompt:null,$textarea:null,$steps:null,name:"img2img_prompt",neg:!1,hideDefaultInputKey:"img2ImgHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgHidePanel",hidePanel:!1,id:"phystonPrompt_img2img_prompt"},{tab:"tab_img2img",prompt:"img2img_neg_prompt",counter:"img2img_negative_token_counter",button:"img2img_negative_token_button",steps:"img2img_steps",historyKey:"img2img_neg",favoriteKey:"img2img_neg",$prompt:null,$textarea:null,$steps:null,name:"img2img_neg_prompt",neg:!0,hideDefaultInputKey:"img2ImgNegHideDefaultInput",hideDefaultInput:!1,hidePanelKey:"img2ImgNegHidePanel",hidePanel:!1,id:"phystonPrompt_img2img_neg_prompt"}],languageCode:"",languages:{},translateApis:[],translateApi:"",translateApiConfig:{},canOneTranslate:!1,autoTranslate:!1,autoTranslateToEnglish:!1,autoTranslateToLocal:!1,autoRemoveSpace:!0,autoRemoveLastComma:!1,autoKeepWeightZero:!1,autoKeepWeightOne:!1,enableTooltip:!0,tagCompleteFile:"",onlyCsvOnAuto:!1,startWatchSave:!1,pasteBtn:null,showPastePopup:!1,pasteTitle:"",pasteContent:"",pasteLoading:!1,historyCurrentPrompt:"",favoriteCurrentPrompt:"",chatgptCurrentPrompt:"",extraNetworks:[],loras:[],lycos:[],embeddings:[],python:"",packagesState:[],version:"",latestVersion:"",isLatestVersion:!0,theme:"dark"}},watch:{languageCode:{handler:function(e,t){this.startWatchSave&&(console.log("onLanguageCodeChange",e),this.canOneTranslate=oe.canOneTranslate(this.languageCode),this.gradioAPI.setData("languageCode",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslateToEnglish:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToEnglishChange",e),this.gradioAPI.setData("autoTranslateToEnglish",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslateToLocal:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoTranslateToLocalChange",e),this.gradioAPI.setData("autoTranslateToLocal",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoTranslate:{handler:function(e,t){this.startWatchSave&&(this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate,console.log("onAutoTranslateChange",e),this.gradioAPI.setData("autoTranslate",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoRemoveSpace:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveSpaceChange",e),this.gradioAPI.setData("autoRemoveSpace",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoRemoveLastComma:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoRemoveLastCommaChange",e),this.gradioAPI.setData("autoRemoveLastComma",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoKeepWeightZero:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightZeroChange",e),this.gradioAPI.setData("autoKeepWeightZero",e).then(n=>{}).catch(n=>{}))},immediate:!1},autoKeepWeightOne:{handler:function(e,t){this.startWatchSave&&(console.log("onAutoKeepWeightOneChange",e),this.gradioAPI.setData("autoKeepWeightOne",e).then(n=>{}).catch(n=>{}))},immediate:!1},enableTooltip:{handler:function(e,t){this.startWatchSave&&(localStorage.setItem("phystonPromptEnableTooltip",e?"true":"false"),this.updateTippyState(),this.gradioAPI.setData("enableTooltip",e).then(n=>{}).catch(n=>{}))},immediate:!1},translateApi:{handler:function(e,t){this.startWatchSave&&(console.log("onTranslateApiChange",e,t),this.updateTranslateApiConfig(),this.gradioAPI.setData("translateApi",e).then(n=>{}).catch(n=>{}))},immediate:!1},tagCompleteFile:{handler:function(e,t){this.startWatchSave&&(console.log("onTagCompleteFileChange",e,t),this.gradioAPI.setData("tagCompleteFile",e).then(n=>{}).catch(n=>{}))},immediate:!1},onlyCsvOnAuto(){this.startWatchSave&&(console.log("onOnlyCsvOnAutoChange",this.onlyCsvOnAuto),this.gradioAPI.setData("onlyCsvOnAuto",this.onlyCsvOnAuto).then(e=>{}).catch(e=>{}))}},mounted(){oe.loadCSS("toastr.min.css","physton-prompt-toastr",!0,!0,!1),oe.loadCSS("tippy.css","physton-prompt-tippy",!0,!0,!1),oe.loadCSS("main.min.css","physton-prompt-main",!0);let t=new URLSearchParams(window.location.search).get("__theme");["dark","light"].includes(t)&&(this.theme=t,oe.gradioApp().classList.contains(this.theme)||oe.gradioApp().classList.add(this.theme)),this.gradioAPI.getConfig().then(n=>{console.log("config:",n),this.languageCode=n.i18n.default,this.translateApi=n.translate_apis.default,this.translateApis=n.translate_apis.apis,this.python=n.python,this.packagesState=n.packages_state;let i={};n.i18n.languages.forEach(r=>{i[r.code]=r}),this.languages=i,this.init()}).catch(n=>{this.$toastr.error("Connection to backend API service failed. Please manually refresh the webpage. If it still doesn't work, please restart the WebUI.
连接到后台接口服务失败,请手动再刷新一次网页。如果还是不行,请重启WebUI。

"+n.message,"sd-webui-prompt-all-in-one",{timeOut:2e4}),console.log(n)})},methods:{getLang(e){return oe.getLang(e,this.languageCode,this.languages)},init(){this.loadExtraNetworks();let e=["languageCode","autoTranslate","autoTranslateToEnglish","autoTranslateToLocal","autoRemoveSpace","autoRemoveLastComma","autoKeepWeightZero","autoKeepWeightOne","translateApi","enableTooltip","tagCompleteFile","onlyCsvOnAuto","extensionSelect.minimalist"];this.prompts.forEach(t=>{e.push(t.hideDefaultInputKey),e.push(t.hidePanelKey)}),this.gradioAPI.getDatas(e).then(t=>{if(t.languageCode!==null){let n=!1;for(let i in this.languages)if(this.languages[i].code===t.languageCode){n=!0;break}n&&(this.languageCode=t.languageCode,this.$forceUpdate())}this.canOneTranslate=oe.canOneTranslate(this.languageCode),t.autoTranslateToEnglish!==null&&(this.autoTranslateToEnglish=t.autoTranslateToEnglish),t.autoTranslateToLocal!==null&&(this.autoTranslateToLocal=t.autoTranslateToLocal),t.autoTranslate!==null?this.canOneTranslate?(this.autoTranslate=t.autoTranslate,this.autoTranslateToEnglish=this.autoTranslate,this.autoTranslateToLocal=this.autoTranslate):this.autoTranslate=!1:this.canOneTranslate?(this.autoTranslate=this.autoTranslateToEnglish||this.autoTranslateToLocal,this.autoTranslateToEnglish=!0,this.autoTranslateToLocal=!0):this.autoTranslate=!1,t.autoRemoveSpace!==null&&(this.autoRemoveSpace=t.autoRemoveSpace),t.autoRemoveLastComma!==null&&(this.autoRemoveLastComma=t.autoRemoveLastComma),t.autoKeepWeightZero!==null&&(this.autoKeepWeightZero=t.autoKeepWeightZero),t.autoKeepWeightOne!==null&&(this.autoKeepWeightOne=t.autoKeepWeightOne),t.enableTooltip!==null&&(this.enableTooltip=t.enableTooltip),localStorage.setItem("phystonPromptEnableTooltip",this.enableTooltip?"true":"false"),this.updateTippyState(),t.translateApi!==null&&(t.translateApi==="alibaba_free"?this.gradioAPI.setData("translateApi",this.translateApi):this.translateApi=t.translateApi),t.tagCompleteFile!==null&&(this.tagCompleteFile=t.tagCompleteFile,this.$nextTick(()=>{this.$refs.translateSetting.getCSV(this.tagCompleteFile)})),t.onlyCsvOnAuto!==null&&(this.onlyCsvOnAuto=t.onlyCsvOnAuto),t["extensionSelect.minimalist"]===null&&this.gradioAPI.setData("extensionSelect.minimalist",!0),this.updateTranslateApiConfig(),this.$refs.extensionCss.init(),this.prompts.forEach(n=>{t[n.hideDefaultInputKey]!==null&&(n.hideDefaultInput=t[n.hideDefaultInputKey]),t[n.hidePanelKey]!==null&&(n.hidePanel=t[n.hidePanelKey]),n.$prompt=oe.gradioApp().querySelector("#"+n.prompt),n.$textarea=n.$prompt.getElementsByTagName("textarea")[0],n.$steps=oe.gradioApp().querySelector("#"+n.steps)}),this.$nextTick(()=>{this.prompts.forEach(n=>{const i=oe.gradioApp().querySelector("#"+n.id);n.$prompt.parentElement.parentElement.parentElement.appendChild(i),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex"}),this.startWatchSave=!0}),this.handlePaste()})},updateTippyState(){for(const e of this.$tippyList)this.enableTooltip?e.enable():e.disable()},updateTranslateApiConfig(){this.gradioAPI.getData("translate_api."+this.translateApi).then(e=>{let t={};const n=oe.getTranslateApiItem(this.translateApis,this.translateApi);if(n.config){for(const i of n.config)n.type==="translators"&&i.key==="region"&&!e.region?t[i.key]=this.languageCode==="zh_CN"||this.languageCode==="zh_HK"||this.languageCode==="zh_TW"?"China":"EN":e?t[i.key]=e[i.key]:t[i.key]=i.default||"";t.concurrent=n.concurrent||0}this.translateApiConfig=t})},onPromptFormatClick(e){this.$refs.promptFormat.open(e)},onSelectLanguageClick(e){this.$refs.selectLanguage.open(e)},onTranslateApiClick(){this.$refs.translateSetting.open(this.translateApi)},onSelectThemeClick(){this.$refs.extensionCss.open()},handlePaste(){if(typeof gradioApp!="function")return;const e=gradioApp().querySelectorAll("#paste");!e||e.length<=0||e.forEach((t,n)=>{const i=t.cloneNode(!0);i.id="paste-new-"+n,i.innerHTML="🗒",t.parentNode.insertBefore(i,t.nextSibling),i.addEventListener("click",()=>{this.pasteBtn=t,this.openPastePopup()}),this.pasteTitle=t.title})},openPastePopup(){this.pasteContent="",this.pasteLoading=!1,this.showPastePopup=!0},closePastePopup(){this.showPastePopup=!1},onClickPasteSubmit(){this.pasteLoading=!0;const e=get_uiCurrentTabContent();let t=null,n=null,i=null,r=null,o=[];for(const l of this.prompts)l.tab==e.id&&(console.log(l),o.push(l.id),l.neg?(n=l.$textarea,r=l.$prompt):(t=l.$textarea,i=l.$prompt));if(!t||!i||!r){this.pasteLoading=!1;return}t.value=this.pasteContent,t.dispatchEvent(new Event("input")),this.pasteBtn.dispatchEvent(new Event("click")),setTimeout(()=>{let l=0,c=0;l=setInterval(()=>{if(c++,c>100){this.pasteLoading=!1,clearInterval(l);return}i.getElementsByClassName("hide").length>0&&r.getElementsByClassName("hide").length>0&&(this.pasteLoading=!1,this.closePastePopup(),clearInterval(l),oe.hideCompleteResults(t),oe.hideCompleteResults(n),o.forEach((d,m)=>{setTimeout(()=>{this.$refs[d][0].onTextareaChange(!0)},1e3)}))},100)},1e3)},onUpdateHideDefaultInput(e,t){const n=this.prompts.find(i=>i.id==e);n&&(n.hideDefaultInput=t,this.gradioAPI.setData(n.hideDefaultInputKey,n.hideDefaultInput),n.$prompt.parentElement.parentElement.style.display=n.hideDefaultInput?"none":"flex")},onUpdateHidePanel(e,t){const n=this.prompts.find(i=>i.id==e);n&&(n.hidePanel=t,this.gradioAPI.setData(n.hidePanelKey,n.hidePanel))},onShowHistory(e,t){this.$refs.favorite.hide(),this.historyCurrentPrompt=e;const n=this.prompts.find(i=>i.id==e);n&&this.$refs.history.show(n.historyKey,t)},onUseHistory(e){if(!this.historyCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.historyCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onShowFavorite(e,t){this.$refs.history.hide(),this.favoriteCurrentPrompt=e;const n=this.prompts.find(i=>i.id==e);n&&this.$refs.favorite.show(n.favoriteKey,t)},onUseFavorite(e){if(!this.favoriteCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.favoriteCurrentPrompt);t&&this.$refs[t.id][0].useFavorite(e)},onRefreshFavorites(e){this.$refs.favorite.getFavorites(e)},onShowChatgpt(e,t){this.chatgptCurrentPrompt=e,this.prompts.find(i=>i.id==e)&&this.$refs.chatgptPrompt.open()},onUseChatgpt(e){if(!this.chatgptCurrentPrompt)return;const t=this.prompts.find(n=>n.id==this.chatgptCurrentPrompt);t&&this.$refs[t.id][0].useChatgpt(e)},onShowAbout(){this.$refs.about.open()},onSwitchTheme(){this.theme=this.theme==="dark"?"light":"dark";let e=window.location.href,t=new URL(e),n=new URLSearchParams(t.search);n.has("__theme")?n.set("__theme",this.theme):n.append("__theme",this.theme);let i=t.origin+t.pathname+"?"+n.toString();window.location.href=i}}},gw={class:"paste-popup-title"},mw={class:"paste-popup-body"},vw=["placeholder"],yw={key:1,class:"paste-submit"};function bw(e,t,n,i,r,o){const l=Lt("physton-prompt"),c=Lt("translate-setting"),d=Lt("select-language"),m=Lt("prompt-format"),g=Lt("history"),w=Lt("favorite"),_=Lt("extension-css"),R=Lt("packages-state"),k=Lt("chatgpt-prompt"),O=Lt("about"),U=Lt("icon-svg");return N(),B("div",null,[(N(!0),B(Re,null,vt(r.prompts,P=>(N(),B(Re,{key:P.name},[P.$textarea?(N(),mt(l,{key:0,id:P.id,ref_for:!0,ref:P.id,name:P.name,neg:P.neg,textarea:P.$textarea,steps:P.$steps,"language-code":r.languageCode,"onUpdate:languageCode":t[0]||(t[0]=Z=>r.languageCode=Z),"translate-apis":r.translateApis,languages:r.languages,"history-key":P.historyKey,"onClick:showHistory":Z=>o.onShowHistory(P.id,Z),"favorite-key":P.favoriteKey,onRefreshFavorites:o.onRefreshFavorites,"onClick:showFavorite":Z=>o.onShowFavorite(P.id,Z),"can-one-translate":r.canOneTranslate,"onUpdate:canOneTranslate":t[1]||(t[1]=Z=>r.canOneTranslate=Z),"auto-translate":r.autoTranslate,"onUpdate:autoTranslate":t[2]||(t[2]=Z=>r.autoTranslate=Z),"auto-translate-to-english":r.autoTranslateToEnglish,"onUpdate:autoTranslateToEnglish":t[3]||(t[3]=Z=>r.autoTranslateToEnglish=Z),"auto-translate-to-local":r.autoTranslateToLocal,"onUpdate:autoTranslateToLocal":t[4]||(t[4]=Z=>r.autoTranslateToLocal=Z),"auto-remove-space":r.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[5]||(t[5]=Z=>r.autoRemoveSpace=Z),"auto-remove-last-comma":r.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[6]||(t[6]=Z=>r.autoRemoveLastComma=Z),"auto-keep-weight-zero":r.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[7]||(t[7]=Z=>r.autoKeepWeightZero=Z),"auto-keep-weight-one":r.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[8]||(t[8]=Z=>r.autoKeepWeightOne=Z),"hide-default-input":P.hideDefaultInput,"onUpdate:hideDefaultInput":Z=>o.onUpdateHideDefaultInput(P.id,Z),"hide-panel":P.hidePanel,"onUpdate:hidePanel":Z=>o.onUpdateHidePanel(P.id,Z),"enable-tooltip":r.enableTooltip,"onUpdate:enableTooltip":t[9]||(t[9]=Z=>r.enableTooltip=Z),"translate-api":r.translateApi,"onUpdate:translateApi":t[10]||(t[10]=Z=>r.translateApi=Z),"translate-api-config":r.translateApiConfig,"onClick:translateApi":o.onTranslateApiClick,"onClick:promptFormat":o.onPromptFormatClick,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[11]||(t[11]=Z=>r.tagCompleteFile=Z),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[12]||(t[12]=Z=>r.onlyCsvOnAuto=Z),"onClick:selectLanguage":o.onSelectLanguageClick,"onClick:selectTheme":o.onSelectThemeClick,"onClick:showChatgpt":Z=>o.onShowChatgpt(P.id,Z),"extra-networks":r.extraNetworks,loras:r.loras,lycos:r.lycos,embeddings:r.embeddings,version:r.version,"latest-version":r.latestVersion,"is-latest-version":r.isLatestVersion,"onClick:showAbout":o.onShowAbout,theme:r.theme,"onClick:switchTheme":o.onSwitchTheme},null,8,["id","name","neg","textarea","steps","language-code","translate-apis","languages","history-key","onClick:showHistory","favorite-key","onRefreshFavorites","onClick:showFavorite","can-one-translate","auto-translate","auto-translate-to-english","auto-translate-to-local","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one","hide-default-input","onUpdate:hideDefaultInput","hide-panel","onUpdate:hidePanel","enable-tooltip","translate-api","translate-api-config","onClick:translateApi","onClick:promptFormat","tag-complete-file","only-csv-on-auto","onClick:selectLanguage","onClick:selectTheme","onClick:showChatgpt","extra-networks","loras","lycos","embeddings","version","latest-version","is-latest-version","onClick:showAbout","theme","onClick:switchTheme"])):je("",!0)],64))),128)),pe(c,{ref:"translateSetting","language-code":r.languageCode,"onUpdate:languageCode":t[13]||(t[13]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"onForceUpdate:translateApi":o.updateTranslateApiConfig,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[14]||(t[14]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[15]||(t[15]=P=>r.onlyCsvOnAuto=P),"translate-api":r.translateApi,"onUpdate:translateApi":t[16]||(t[16]=P=>r.translateApi=P)},null,8,["language-code","translate-apis","languages","onForceUpdate:translateApi","tag-complete-file","only-csv-on-auto","translate-api"]),pe(d,{ref:"selectLanguage","language-code":r.languageCode,"onUpdate:languageCode":t[17]||(t[17]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"translate-api":r.translateApi,"onUpdate:translateApi":t[18]||(t[18]=P=>r.translateApi=P),"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[19]||(t[19]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[20]||(t[20]=P=>r.onlyCsvOnAuto=P)},null,8,["language-code","translate-apis","languages","translate-api","tag-complete-file","only-csv-on-auto"]),pe(m,{ref:"promptFormat","language-code":r.languageCode,"onUpdate:languageCode":t[21]||(t[21]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"auto-remove-space":r.autoRemoveSpace,"onUpdate:autoRemoveSpace":t[22]||(t[22]=P=>r.autoRemoveSpace=P),"auto-remove-last-comma":r.autoRemoveLastComma,"onUpdate:autoRemoveLastComma":t[23]||(t[23]=P=>r.autoRemoveLastComma=P),"auto-keep-weight-zero":r.autoKeepWeightZero,"onUpdate:autoKeepWeightZero":t[24]||(t[24]=P=>r.autoKeepWeightZero=P),"auto-keep-weight-one":r.autoKeepWeightOne,"onUpdate:autoKeepWeightOne":t[25]||(t[25]=P=>r.autoKeepWeightOne=P)},null,8,["language-code","translate-apis","languages","auto-remove-space","auto-remove-last-comma","auto-keep-weight-zero","auto-keep-weight-one"]),pe(g,{ref:"history","language-code":r.languageCode,"onUpdate:languageCode":t[26]||(t[26]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[27]||(t[27]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[28]||(t[28]=P=>r.onlyCsvOnAuto=P),onRefreshFavorites:o.onRefreshFavorites,onUse:o.onUseHistory},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onRefreshFavorites","onUse"]),pe(w,{ref:"favorite","language-code":r.languageCode,"onUpdate:languageCode":t[29]||(t[29]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"tag-complete-file":r.tagCompleteFile,"onUpdate:tagCompleteFile":t[30]||(t[30]=P=>r.tagCompleteFile=P),"only-csv-on-auto":r.onlyCsvOnAuto,"onUpdate:onlyCsvOnAuto":t[31]||(t[31]=P=>r.onlyCsvOnAuto=P),onUse:o.onUseFavorite},null,8,["language-code","translate-apis","languages","tag-complete-file","only-csv-on-auto","onUse"]),pe(_,{ref:"extensionCss","language-code":r.languageCode,"onUpdate:languageCode":t[32]||(t[32]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages},null,8,["language-code","translate-apis","languages"]),pe(R,{ref:"packagesState","language-code":r.languageCode,"onUpdate:languageCode":t[33]||(t[33]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,"onClick:selectLanguage":o.onSelectLanguageClick,"packages-state":r.packagesState,python:r.python},null,8,["language-code","translate-apis","languages","onClick:selectLanguage","packages-state","python"]),pe(k,{ref:"chatgptPrompt","language-code":r.languageCode,"onUpdate:languageCode":t[34]||(t[34]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages,onUse:o.onUseChatgpt},null,8,["language-code","translate-apis","languages","onUse"]),pe(O,{ref:"about","language-code":r.languageCode,"onUpdate:languageCode":t[35]||(t[35]=P=>r.languageCode=P),"translate-apis":r.translateApis,languages:r.languages},null,8,["language-code","translate-apis","languages"]),r.showPastePopup?(N(),B("div",{key:0,class:"physton-paste-popup",onClick:t[40]||(t[40]=(...P)=>o.closePastePopup&&o.closePastePopup(...P))},[T("div",{class:"paste-popup-main",onClick:t[39]||(t[39]=tt(()=>{},["stop"]))},[T("div",{class:"paste-popup-close",onClick:t[36]||(t[36]=(...P)=>o.closePastePopup&&o.closePastePopup(...P))},[pe(U,{name:"close"})]),T("div",gw,ae(r.pasteTitle),1),T("div",mw,[fe(T("textarea",{class:"paste-content","onUpdate:modelValue":t[37]||(t[37]=P=>r.pasteContent=P),placeholder:o.getLang("please_enter_the_content_here")},null,8,vw),[[Hi,r.pasteContent]]),r.pasteLoading?(N(),B("div",yw,[pe(U,{name:"loading"})])):(N(),B("div",{key:0,class:"paste-submit",onClick:t[38]||(t[38]=(...P)=>o.onClickPasteSubmit&&o.onClickPasteSubmit(...P))},"Submit"))])])])):je("",!0)])}const Cw=sn(hw,[["render",bw]]);var Oc={exports:{}},ja={exports:{}};/*! * jQuery JavaScript Library v3.6.4 * https://jquery.com/ * @@ -54,15 +54,15 @@ ${r.message} * https://jquery.org/license * * Date: 2023-03-08T15:28Z - */var Dc;function Cw(){return Dc||(Dc=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:Lc,function(t,n){var i=[],r=Object.getPrototypeOf,o=i.slice,l=i.flat?function(s){return i.flat.call(s)}:function(s){return i.concat.apply([],s)},c=i.push,d=i.indexOf,m={},g=m.toString,w=m.hasOwnProperty,_=w.toString,R=_.call(Object),k={},O=function(u){return typeof u=="function"&&typeof u.nodeType!="number"&&typeof u.item!="function"},U=function(u){return u!=null&&u===u.window},P=t.document,Z={type:!0,src:!0,nonce:!0,noModule:!0};function se(s,u,f){f=f||P;var h,v,y=f.createElement("script");if(y.text=s,u)for(h in Z)v=u[h]||u.getAttribute&&u.getAttribute(h),v&&y.setAttribute(h,v);f.head.appendChild(y).parentNode.removeChild(y)}function L(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?m[g.call(s)]||"object":typeof s}var xe="3.6.4",p=function(s,u){return new p.fn.init(s,u)};p.fn=p.prototype={jquery:xe,constructor:p,length:0,toArray:function(){return o.call(this)},get:function(s){return s==null?o.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var u=p.merge(this.constructor(),s);return u.prevObject=this,u},each:function(s){return p.each(this,s)},map:function(s){return this.pushStack(p.map(this,function(u,f){return s.call(u,f,u)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(p.grep(this,function(s,u){return(u+1)%2}))},odd:function(){return this.pushStack(p.grep(this,function(s,u){return u%2}))},eq:function(s){var u=this.length,f=+s+(s<0?u:0);return this.pushStack(f>=0&&f0&&u-1 in s}var Me=function(s){var u,f,h,v,y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae,jt,Rt,yn,yt="sizzle"+1*new Date,Xe=s.document,fn=0,ut=0,Dt=Ro(),vs=Ro(),Po=Ro(),bn=Ro(),Xi=function(C,S){return C===S&&(ee=!0),0},Yi={}.hasOwnProperty,dn=[],ki=dn.pop,Ln=dn.push,xi=dn.push,gd=dn.slice,Gi=function(C,S){for(var I=0,z=C.length;I+~]|"+ht+")"+ht+"*"),Z_=new RegExp(ht+"|>"),Q_=new RegExp(Ll),e1=new RegExp("^"+Ji+"$"),No={ID:new RegExp("^#("+Ji+")"),CLASS:new RegExp("^\\.("+Ji+")"),TAG:new RegExp("^("+Ji+"|[*])"),ATTR:new RegExp("^"+md),PSEUDO:new RegExp("^"+Ll),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ht+"*(even|odd|(([+-]|)(\\d*)n|)"+ht+"*(?:([+-]|)"+ht+"*(\\d+)|))"+ht+"*\\)|)","i"),bool:new RegExp("^(?:"+Al+")$","i"),needsContext:new RegExp("^"+ht+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ht+"*((?:-\\d)?\\d*)"+ht+"*\\)|)(?=[^-]|$)","i")},t1=/HTML$/i,n1=/^(?:input|select|textarea|button)$/i,i1=/^h\d$/i,ys=/^[^{]+\{\s*\[native \w/,r1=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ol=/[+~]/,pi=new RegExp("\\\\[\\da-fA-F]{1,6}"+ht+"?|\\\\([^\\r\\n\\f])","g"),hi=function(C,S){var I="0x"+C.slice(1)-65536;return S||(I<0?String.fromCharCode(I+65536):String.fromCharCode(I>>10|55296,I&1023|56320))},yd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bd=function(C,S){return S?C==="\0"?"�":C.slice(0,-1)+"\\"+C.charCodeAt(C.length-1).toString(16)+" ":"\\"+C},Cd=function(){j()},s1=Fo(function(C){return C.disabled===!0&&C.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{xi.apply(dn=gd.call(Xe.childNodes),Xe.childNodes),dn[Xe.childNodes.length].nodeType}catch{xi={apply:dn.length?function(S,I){Ln.apply(S,gd.call(I))}:function(S,I){for(var z=S.length,M=0;S[z++]=I[M++];);S.length=z-1}}}function bt(C,S,I,z){var M,G,te,ce,ve,He,Ne,$e=S&&S.ownerDocument,Qe=S?S.nodeType:9;if(I=I||[],typeof C!="string"||!C||Qe!==1&&Qe!==9&&Qe!==11)return I;if(!z&&(j(S),S=S||K,Ye)){if(Qe!==11&&(ve=r1.exec(C)))if(M=ve[1]){if(Qe===9)if(te=S.getElementById(M)){if(te.id===M)return I.push(te),I}else return I;else if($e&&(te=$e.getElementById(M))&&yn(S,te)&&te.id===M)return I.push(te),I}else{if(ve[2])return xi.apply(I,S.getElementsByTagName(C)),I;if((M=ve[3])&&f.getElementsByClassName&&S.getElementsByClassName)return xi.apply(I,S.getElementsByClassName(M)),I}if(f.qsa&&!bn[C+" "]&&(!Ae||!Ae.test(C))&&(Qe!==1||S.nodeName.toLowerCase()!=="object")){if(Ne=C,$e=S,Qe===1&&(Z_.test(C)||vd.test(C))){for($e=Ol.test(C)&&Pl(S.parentNode)||S,($e!==S||!f.scope)&&((ce=S.getAttribute("id"))?ce=ce.replace(yd,bd):S.setAttribute("id",ce=yt)),He=b(C),G=He.length;G--;)He[G]=(ce?"#"+ce:":scope")+" "+Mo(He[G]);Ne=He.join(",")}try{return xi.apply(I,$e.querySelectorAll(Ne)),I}catch{bn(C,!0)}finally{ce===yt&&S.removeAttribute("id")}}}return E(C.replace(Io,"$1"),S,I,z)}function Ro(){var C=[];function S(I,z){return C.push(I+" ")>h.cacheLength&&delete S[C.shift()],S[I+" "]=z}return S}function $n(C){return C[yt]=!0,C}function On(C){var S=K.createElement("fieldset");try{return!!C(S)}catch{return!1}finally{S.parentNode&&S.parentNode.removeChild(S),S=null}}function Dl(C,S){for(var I=C.split("|"),z=I.length;z--;)h.attrHandle[I[z]]=S}function wd(C,S){var I=S&&C,z=I&&C.nodeType===1&&S.nodeType===1&&C.sourceIndex-S.sourceIndex;if(z)return z;if(I){for(;I=I.nextSibling;)if(I===S)return-1}return C?1:-1}function o1(C){return function(S){var I=S.nodeName.toLowerCase();return I==="input"&&S.type===C}}function a1(C){return function(S){var I=S.nodeName.toLowerCase();return(I==="input"||I==="button")&&S.type===C}}function Td(C){return function(S){return"form"in S?S.parentNode&&S.disabled===!1?"label"in S?"label"in S.parentNode?S.parentNode.disabled===C:S.disabled===C:S.isDisabled===C||S.isDisabled!==!C&&s1(S)===C:S.disabled===C:"label"in S?S.disabled===C:!1}}function Zi(C){return $n(function(S){return S=+S,$n(function(I,z){for(var M,G=C([],I.length,S),te=G.length;te--;)I[M=G[te]]&&(I[M]=!(z[M]=I[M]))})})}function Pl(C){return C&&typeof C.getElementsByTagName<"u"&&C}f=bt.support={},y=bt.isXML=function(C){var S=C&&C.namespaceURI,I=C&&(C.ownerDocument||C).documentElement;return!t1.test(S||I&&I.nodeName||"HTML")},j=bt.setDocument=function(C){var S,I,z=C?C.ownerDocument||C:Xe;return z==K||z.nodeType!==9||!z.documentElement||(K=z,Oe=K.documentElement,Ye=!y(K),Xe!=K&&(I=K.defaultView)&&I.top!==I&&(I.addEventListener?I.addEventListener("unload",Cd,!1):I.attachEvent&&I.attachEvent("onunload",Cd)),f.scope=On(function(M){return Oe.appendChild(M).appendChild(K.createElement("div")),typeof M.querySelectorAll<"u"&&!M.querySelectorAll(":scope fieldset div").length}),f.cssHas=On(function(){try{return K.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),f.attributes=On(function(M){return M.className="i",!M.getAttribute("className")}),f.getElementsByTagName=On(function(M){return M.appendChild(K.createComment("")),!M.getElementsByTagName("*").length}),f.getElementsByClassName=ys.test(K.getElementsByClassName),f.getById=On(function(M){return Oe.appendChild(M).id=yt,!K.getElementsByName||!K.getElementsByName(yt).length}),f.getById?(h.filter.ID=function(M){var G=M.replace(pi,hi);return function(te){return te.getAttribute("id")===G}},h.find.ID=function(M,G){if(typeof G.getElementById<"u"&&Ye){var te=G.getElementById(M);return te?[te]:[]}}):(h.filter.ID=function(M){var G=M.replace(pi,hi);return function(te){var ce=typeof te.getAttributeNode<"u"&&te.getAttributeNode("id");return ce&&ce.value===G}},h.find.ID=function(M,G){if(typeof G.getElementById<"u"&&Ye){var te,ce,ve,He=G.getElementById(M);if(He){if(te=He.getAttributeNode("id"),te&&te.value===M)return[He];for(ve=G.getElementsByName(M),ce=0;He=ve[ce++];)if(te=He.getAttributeNode("id"),te&&te.value===M)return[He]}return[]}}),h.find.TAG=f.getElementsByTagName?function(M,G){if(typeof G.getElementsByTagName<"u")return G.getElementsByTagName(M);if(f.qsa)return G.querySelectorAll(M)}:function(M,G){var te,ce=[],ve=0,He=G.getElementsByTagName(M);if(M==="*"){for(;te=He[ve++];)te.nodeType===1&&ce.push(te);return ce}return He},h.find.CLASS=f.getElementsByClassName&&function(M,G){if(typeof G.getElementsByClassName<"u"&&Ye)return G.getElementsByClassName(M)},jt=[],Ae=[],(f.qsa=ys.test(K.querySelectorAll))&&(On(function(M){var G;Oe.appendChild(M).innerHTML="",M.querySelectorAll("[msallowcapture^='']").length&&Ae.push("[*^$]="+ht+`*(?:''|"")`),M.querySelectorAll("[selected]").length||Ae.push("\\["+ht+"*(?:value|"+Al+")"),M.querySelectorAll("[id~="+yt+"-]").length||Ae.push("~="),G=K.createElement("input"),G.setAttribute("name",""),M.appendChild(G),M.querySelectorAll("[name='']").length||Ae.push("\\["+ht+"*name"+ht+"*="+ht+`*(?:''|"")`),M.querySelectorAll(":checked").length||Ae.push(":checked"),M.querySelectorAll("a#"+yt+"+*").length||Ae.push(".#.+[+~]"),M.querySelectorAll("\\\f"),Ae.push("[\\r\\n\\f]")}),On(function(M){M.innerHTML="";var G=K.createElement("input");G.setAttribute("type","hidden"),M.appendChild(G).setAttribute("name","D"),M.querySelectorAll("[name=d]").length&&Ae.push("name"+ht+"*[*^$|!~]?="),M.querySelectorAll(":enabled").length!==2&&Ae.push(":enabled",":disabled"),Oe.appendChild(M).disabled=!0,M.querySelectorAll(":disabled").length!==2&&Ae.push(":enabled",":disabled"),M.querySelectorAll("*,:x"),Ae.push(",.*:")})),(f.matchesSelector=ys.test(Rt=Oe.matches||Oe.webkitMatchesSelector||Oe.mozMatchesSelector||Oe.oMatchesSelector||Oe.msMatchesSelector))&&On(function(M){f.disconnectedMatch=Rt.call(M,"*"),Rt.call(M,"[s!='']:x"),jt.push("!=",Ll)}),f.cssHas||Ae.push(":has"),Ae=Ae.length&&new RegExp(Ae.join("|")),jt=jt.length&&new RegExp(jt.join("|")),S=ys.test(Oe.compareDocumentPosition),yn=S||ys.test(Oe.contains)?function(M,G){var te=M.nodeType===9&&M.documentElement||M,ce=G&&G.parentNode;return M===ce||!!(ce&&ce.nodeType===1&&(te.contains?te.contains(ce):M.compareDocumentPosition&&M.compareDocumentPosition(ce)&16))}:function(M,G){if(G){for(;G=G.parentNode;)if(G===M)return!0}return!1},Xi=S?function(M,G){if(M===G)return ee=!0,0;var te=!M.compareDocumentPosition-!G.compareDocumentPosition;return te||(te=(M.ownerDocument||M)==(G.ownerDocument||G)?M.compareDocumentPosition(G):1,te&1||!f.sortDetached&&G.compareDocumentPosition(M)===te?M==K||M.ownerDocument==Xe&&yn(Xe,M)?-1:G==K||G.ownerDocument==Xe&&yn(Xe,G)?1:$?Gi($,M)-Gi($,G):0:te&4?-1:1)}:function(M,G){if(M===G)return ee=!0,0;var te,ce=0,ve=M.parentNode,He=G.parentNode,Ne=[M],$e=[G];if(!ve||!He)return M==K?-1:G==K?1:ve?-1:He?1:$?Gi($,M)-Gi($,G):0;if(ve===He)return wd(M,G);for(te=M;te=te.parentNode;)Ne.unshift(te);for(te=G;te=te.parentNode;)$e.unshift(te);for(;Ne[ce]===$e[ce];)ce++;return ce?wd(Ne[ce],$e[ce]):Ne[ce]==Xe?-1:$e[ce]==Xe?1:0}),K},bt.matches=function(C,S){return bt(C,null,null,S)},bt.matchesSelector=function(C,S){if(j(C),f.matchesSelector&&Ye&&!bn[S+" "]&&(!jt||!jt.test(S))&&(!Ae||!Ae.test(S)))try{var I=Rt.call(C,S);if(I||f.disconnectedMatch||C.document&&C.document.nodeType!==11)return I}catch{bn(S,!0)}return bt(S,K,null,[C]).length>0},bt.contains=function(C,S){return(C.ownerDocument||C)!=K&&j(C),yn(C,S)},bt.attr=function(C,S){(C.ownerDocument||C)!=K&&j(C);var I=h.attrHandle[S.toLowerCase()],z=I&&Yi.call(h.attrHandle,S.toLowerCase())?I(C,S,!Ye):void 0;return z!==void 0?z:f.attributes||!Ye?C.getAttribute(S):(z=C.getAttributeNode(S))&&z.specified?z.value:null},bt.escape=function(C){return(C+"").replace(yd,bd)},bt.error=function(C){throw new Error("Syntax error, unrecognized expression: "+C)},bt.uniqueSort=function(C){var S,I=[],z=0,M=0;if(ee=!f.detectDuplicates,$=!f.sortStable&&C.slice(0),C.sort(Xi),ee){for(;S=C[M++];)S===C[M]&&(z=I.push(M));for(;z--;)C.splice(I[z],1)}return $=null,C},v=bt.getText=function(C){var S,I="",z=0,M=C.nodeType;if(M){if(M===1||M===9||M===11){if(typeof C.textContent=="string")return C.textContent;for(C=C.firstChild;C;C=C.nextSibling)I+=v(C)}else if(M===3||M===4)return C.nodeValue}else for(;S=C[z++];)I+=v(S);return I},h=bt.selectors={cacheLength:50,createPseudo:$n,match:No,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(C){return C[1]=C[1].replace(pi,hi),C[3]=(C[3]||C[4]||C[5]||"").replace(pi,hi),C[2]==="~="&&(C[3]=" "+C[3]+" "),C.slice(0,4)},CHILD:function(C){return C[1]=C[1].toLowerCase(),C[1].slice(0,3)==="nth"?(C[3]||bt.error(C[0]),C[4]=+(C[4]?C[5]+(C[6]||1):2*(C[3]==="even"||C[3]==="odd")),C[5]=+(C[7]+C[8]||C[3]==="odd")):C[3]&&bt.error(C[0]),C},PSEUDO:function(C){var S,I=!C[6]&&C[2];return No.CHILD.test(C[0])?null:(C[3]?C[2]=C[4]||C[5]||"":I&&Q_.test(I)&&(S=b(I,!0))&&(S=I.indexOf(")",I.length-S)-I.length)&&(C[0]=C[0].slice(0,S),C[2]=I.slice(0,S)),C.slice(0,3))}},filter:{TAG:function(C){var S=C.replace(pi,hi).toLowerCase();return C==="*"?function(){return!0}:function(I){return I.nodeName&&I.nodeName.toLowerCase()===S}},CLASS:function(C){var S=Dt[C+" "];return S||(S=new RegExp("(^|"+ht+")"+C+"("+ht+"|$)"))&&Dt(C,function(I){return S.test(typeof I.className=="string"&&I.className||typeof I.getAttribute<"u"&&I.getAttribute("class")||"")})},ATTR:function(C,S,I){return function(z){var M=bt.attr(z,C);return M==null?S==="!=":S?(M+="",S==="="?M===I:S==="!="?M!==I:S==="^="?I&&M.indexOf(I)===0:S==="*="?I&&M.indexOf(I)>-1:S==="$="?I&&M.slice(-I.length)===I:S==="~="?(" "+M.replace(G_," ")+" ").indexOf(I)>-1:S==="|="?M===I||M.slice(0,I.length+1)===I+"-":!1):!0}},CHILD:function(C,S,I,z,M){var G=C.slice(0,3)!=="nth",te=C.slice(-4)!=="last",ce=S==="of-type";return z===1&&M===0?function(ve){return!!ve.parentNode}:function(ve,He,Ne){var $e,Qe,Ct,Be,$t,Yt,Cn=G!==te?"nextSibling":"previousSibling",At=ve.parentNode,bs=ce&&ve.nodeName.toLowerCase(),Cs=!Ne&&!ce,wn=!1;if(At){if(G){for(;Cn;){for(Be=ve;Be=Be[Cn];)if(ce?Be.nodeName.toLowerCase()===bs:Be.nodeType===1)return!1;Yt=Cn=C==="only"&&!Yt&&"nextSibling"}return!0}if(Yt=[te?At.firstChild:At.lastChild],te&&Cs){for(Be=At,Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),$e=Qe[C]||[],$t=$e[0]===fn&&$e[1],wn=$t&&$e[2],Be=$t&&At.childNodes[$t];Be=++$t&&Be&&Be[Cn]||(wn=$t=0)||Yt.pop();)if(Be.nodeType===1&&++wn&&Be===ve){Qe[C]=[fn,$t,wn];break}}else if(Cs&&(Be=ve,Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),$e=Qe[C]||[],$t=$e[0]===fn&&$e[1],wn=$t),wn===!1)for(;(Be=++$t&&Be&&Be[Cn]||(wn=$t=0)||Yt.pop())&&!((ce?Be.nodeName.toLowerCase()===bs:Be.nodeType===1)&&++wn&&(Cs&&(Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),Qe[C]=[fn,wn]),Be===ve)););return wn-=M,wn===z||wn%z===0&&wn/z>=0}}},PSEUDO:function(C,S){var I,z=h.pseudos[C]||h.setFilters[C.toLowerCase()]||bt.error("unsupported pseudo: "+C);return z[yt]?z(S):z.length>1?(I=[C,C,"",S],h.setFilters.hasOwnProperty(C.toLowerCase())?$n(function(M,G){for(var te,ce=z(M,S),ve=ce.length;ve--;)te=Gi(M,ce[ve]),M[te]=!(G[te]=ce[ve])}):function(M){return z(M,0,I)}):z}},pseudos:{not:$n(function(C){var S=[],I=[],z=A(C.replace(Io,"$1"));return z[yt]?$n(function(M,G,te,ce){for(var ve,He=z(M,null,ce,[]),Ne=M.length;Ne--;)(ve=He[Ne])&&(M[Ne]=!(G[Ne]=ve))}):function(M,G,te){return S[0]=M,z(S,null,te,I),S[0]=null,!I.pop()}}),has:$n(function(C){return function(S){return bt(C,S).length>0}}),contains:$n(function(C){return C=C.replace(pi,hi),function(S){return(S.textContent||v(S)).indexOf(C)>-1}}),lang:$n(function(C){return e1.test(C||"")||bt.error("unsupported lang: "+C),C=C.replace(pi,hi).toLowerCase(),function(S){var I;do if(I=Ye?S.lang:S.getAttribute("xml:lang")||S.getAttribute("lang"))return I=I.toLowerCase(),I===C||I.indexOf(C+"-")===0;while((S=S.parentNode)&&S.nodeType===1);return!1}}),target:function(C){var S=s.location&&s.location.hash;return S&&S.slice(1)===C.id},root:function(C){return C===Oe},focus:function(C){return C===K.activeElement&&(!K.hasFocus||K.hasFocus())&&!!(C.type||C.href||~C.tabIndex)},enabled:Td(!1),disabled:Td(!0),checked:function(C){var S=C.nodeName.toLowerCase();return S==="input"&&!!C.checked||S==="option"&&!!C.selected},selected:function(C){return C.parentNode&&C.parentNode.selectedIndex,C.selected===!0},empty:function(C){for(C=C.firstChild;C;C=C.nextSibling)if(C.nodeType<6)return!1;return!0},parent:function(C){return!h.pseudos.empty(C)},header:function(C){return i1.test(C.nodeName)},input:function(C){return n1.test(C.nodeName)},button:function(C){var S=C.nodeName.toLowerCase();return S==="input"&&C.type==="button"||S==="button"},text:function(C){var S;return C.nodeName.toLowerCase()==="input"&&C.type==="text"&&((S=C.getAttribute("type"))==null||S.toLowerCase()==="text")},first:Zi(function(){return[0]}),last:Zi(function(C,S){return[S-1]}),eq:Zi(function(C,S,I){return[I<0?I+S:I]}),even:Zi(function(C,S){for(var I=0;IS?S:I;--z>=0;)C.push(z);return C}),gt:Zi(function(C,S,I){for(var z=I<0?I+S:I;++z1?function(S,I,z){for(var M=C.length;M--;)if(!C[M](S,I,z))return!1;return!0}:C[0]}function l1(C,S,I){for(var z=0,M=S.length;z-1&&(te[Ne]=!(ce[Ne]=Qe))}}else At=Ho(At===ce?At.splice($t,At.length):At),M?M(null,ce,At,He):xi.apply(ce,At)})}function Rl(C){for(var S,I,z,M=C.length,G=h.relative[C[0].type],te=G||h.relative[" "],ce=G?1:0,ve=Fo(function($e){return $e===S},te,!0),He=Fo(function($e){return Gi(S,$e)>-1},te,!0),Ne=[function($e,Qe,Ct){var Be=!G&&(Ct||Qe!==F)||((S=Qe).nodeType?ve($e,Qe,Ct):He($e,Qe,Ct));return S=null,Be}];ce1&&Il(Ne),ce>1&&Mo(C.slice(0,ce-1).concat({value:C[ce-2].type===" "?"*":""})).replace(Io,"$1"),I,ce0,z=C.length>0,M=function(G,te,ce,ve,He){var Ne,$e,Qe,Ct=0,Be="0",$t=G&&[],Yt=[],Cn=F,At=G||z&&h.find.TAG("*",He),bs=fn+=Cn==null?1:Math.random()||.1,Cs=At.length;for(He&&(F=te==K||te||He);Be!==Cs&&(Ne=At[Be])!=null;Be++){if(z&&Ne){for($e=0,!te&&Ne.ownerDocument!=K&&(j(Ne),ce=!Ye);Qe=C[$e++];)if(Qe(Ne,te||K,ce)){ve.push(Ne);break}He&&(fn=bs)}I&&((Ne=!Qe&&Ne)&&Ct--,G&&$t.push(Ne))}if(Ct+=Be,I&&Be!==Ct){for($e=0;Qe=S[$e++];)Qe($t,Yt,te,ce);if(G){if(Ct>0)for(;Be--;)$t[Be]||Yt[Be]||(Yt[Be]=ki.call(ve));Yt=Ho(Yt)}xi.apply(ve,Yt),He&&!G&&Yt.length>0&&Ct+S.length>1&&bt.uniqueSort(ve)}return He&&(fn=bs,F=Cn),$t};return I?$n(M):M}return A=bt.compile=function(C,S){var I,z=[],M=[],G=Po[C+" "];if(!G){for(S||(S=b(C)),I=S.length;I--;)G=Rl(S[I]),G[yt]?z.push(G):M.push(G);G=Po(C,u1(M,z)),G.selector=C}return G},E=bt.select=function(C,S,I,z){var M,G,te,ce,ve,He=typeof C=="function"&&C,Ne=!z&&b(C=He.selector||C);if(I=I||[],Ne.length===1){if(G=Ne[0]=Ne[0].slice(0),G.length>2&&(te=G[0]).type==="ID"&&S.nodeType===9&&Ye&&h.relative[G[1].type]){if(S=(h.find.ID(te.matches[0].replace(pi,hi),S)||[])[0],S)He&&(S=S.parentNode);else return I;C=C.slice(G.shift().value.length)}for(M=No.needsContext.test(C)?0:G.length;M--&&(te=G[M],!h.relative[ce=te.type]);)if((ve=h.find[ce])&&(z=ve(te.matches[0].replace(pi,hi),Ol.test(G[0].type)&&Pl(S.parentNode)||S))){if(G.splice(M,1),C=z.length&&Mo(G),!C)return xi.apply(I,z),I;break}}return(He||A(C,Ne))(z,S,!Ye,I,!S||Ol.test(C)&&Pl(S.parentNode)||S),I},f.sortStable=yt.split("").sort(Xi).join("")===yt,f.detectDuplicates=!!ee,j(),f.sortDetached=On(function(C){return C.compareDocumentPosition(K.createElement("fieldset"))&1}),On(function(C){return C.innerHTML="",C.firstChild.getAttribute("href")==="#"})||Dl("type|href|height|width",function(C,S,I){if(!I)return C.getAttribute(S,S.toLowerCase()==="type"?1:2)}),(!f.attributes||!On(function(C){return C.innerHTML="",C.firstChild.setAttribute("value",""),C.firstChild.getAttribute("value")===""}))&&Dl("value",function(C,S,I){if(!I&&C.nodeName.toLowerCase()==="input")return C.defaultValue}),On(function(C){return C.getAttribute("disabled")==null})||Dl(Al,function(C,S,I){var z;if(!I)return C[S]===!0?S.toLowerCase():(z=C.getAttributeNode(S))&&z.specified?z.value:null}),bt}(t);p.find=Me,p.expr=Me.selectors,p.expr[":"]=p.expr.pseudos,p.uniqueSort=p.unique=Me.uniqueSort,p.text=Me.getText,p.isXMLDoc=Me.isXML,p.contains=Me.contains,p.escapeSelector=Me.escape;var ne=function(s,u,f){for(var h=[],v=f!==void 0;(s=s[u])&&s.nodeType!==9;)if(s.nodeType===1){if(v&&p(s).is(f))break;h.push(s)}return h},Y=function(s,u){for(var f=[];s;s=s.nextSibling)s.nodeType===1&&s!==u&&f.push(s);return f},Ee=p.expr.match.needsContext;function De(s,u){return s.nodeName&&s.nodeName.toLowerCase()===u.toLowerCase()}var Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function nt(s,u,f){return O(u)?p.grep(s,function(h,v){return!!u.call(h,v,h)!==f}):u.nodeType?p.grep(s,function(h){return h===u!==f}):typeof u!="string"?p.grep(s,function(h){return d.call(u,h)>-1!==f}):p.filter(u,s,f)}p.filter=function(s,u,f){var h=u[0];return f&&(s=":not("+s+")"),u.length===1&&h.nodeType===1?p.find.matchesSelector(h,s)?[h]:[]:p.find.matches(s,p.grep(u,function(v){return v.nodeType===1}))},p.fn.extend({find:function(s){var u,f,h=this.length,v=this;if(typeof s!="string")return this.pushStack(p(s).filter(function(){for(u=0;u1?p.uniqueSort(f):f},filter:function(s){return this.pushStack(nt(this,s||[],!1))},not:function(s){return this.pushStack(nt(this,s||[],!0))},is:function(s){return!!nt(this,typeof s=="string"&&Ee.test(s)?p(s):s||[],!1).length}});var dt,Ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ie=p.fn.init=function(s,u,f){var h,v;if(!s)return this;if(f=f||dt,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?h=[null,s,null]:h=Ue.exec(s),h&&(h[1]||!u))if(h[1]){if(u=u instanceof p?u[0]:u,p.merge(this,p.parseHTML(h[1],u&&u.nodeType?u.ownerDocument||u:P,!0)),Te.test(h[1])&&p.isPlainObject(u))for(h in u)O(this[h])?this[h](u[h]):this.attr(h,u[h]);return this}else return v=P.getElementById(h[2]),v&&(this[0]=v,this.length=1),this;else return!u||u.jquery?(u||f).find(s):this.constructor(u).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(O(s))return f.ready!==void 0?f.ready(s):s(p)}return p.makeArray(s,this)};Ie.prototype=p.fn,dt=p(P);var be=/^(?:parents|prev(?:Until|All))/,ot={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({has:function(s){var u=p(s,this),f=u.length;return this.filter(function(){for(var h=0;h-1:f.nodeType===1&&p.find.matchesSelector(f,s))){y.push(f);break}}return this.pushStack(y.length>1?p.uniqueSort(y):y)},index:function(s){return s?typeof s=="string"?d.call(p(s),this[0]):d.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,u){return this.pushStack(p.uniqueSort(p.merge(this.get(),p(s,u))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function xt(s,u){for(;(s=s[u])&&s.nodeType!==1;);return s}p.each({parent:function(s){var u=s.parentNode;return u&&u.nodeType!==11?u:null},parents:function(s){return ne(s,"parentNode")},parentsUntil:function(s,u,f){return ne(s,"parentNode",f)},next:function(s){return xt(s,"nextSibling")},prev:function(s){return xt(s,"previousSibling")},nextAll:function(s){return ne(s,"nextSibling")},prevAll:function(s){return ne(s,"previousSibling")},nextUntil:function(s,u,f){return ne(s,"nextSibling",f)},prevUntil:function(s,u,f){return ne(s,"previousSibling",f)},siblings:function(s){return Y((s.parentNode||{}).firstChild,s)},children:function(s){return Y(s.firstChild)},contents:function(s){return s.contentDocument!=null&&r(s.contentDocument)?s.contentDocument:(De(s,"template")&&(s=s.content||s),p.merge([],s.childNodes))}},function(s,u){p.fn[s]=function(f,h){var v=p.map(this,u,f);return s.slice(-5)!=="Until"&&(h=f),h&&typeof h=="string"&&(v=p.filter(h,v)),this.length>1&&(ot[s]||p.uniqueSort(v),be.test(s)&&v.reverse()),this.pushStack(v)}});var at=/[^\x20\t\r\n\f]+/g;function we(s){var u={};return p.each(s.match(at)||[],function(f,h){u[h]=!0}),u}p.Callbacks=function(s){s=typeof s=="string"?we(s):p.extend({},s);var u,f,h,v,y=[],b=[],A=-1,E=function(){for(v=v||s.once,h=u=!0;b.length;A=-1)for(f=b.shift();++A-1;)y.splice(j,1),j<=A&&A--}),this},has:function($){return $?p.inArray($,y)>-1:y.length>0},empty:function(){return y&&(y=[]),this},disable:function(){return v=b=[],y=f="",this},disabled:function(){return!y},lock:function(){return v=b=[],!f&&!u&&(y=f=""),this},locked:function(){return!!v},fireWith:function($,ee){return v||(ee=ee||[],ee=[$,ee.slice?ee.slice():ee],b.push(ee),u||E()),this},fire:function(){return F.fireWith(this,arguments),this},fired:function(){return!!h}};return F};function he(s){return s}function ge(s){throw s}function ke(s,u,f,h){var v;try{s&&O(v=s.promise)?v.call(s).done(u).fail(f):s&&O(v=s.then)?v.call(s,u,f):u.apply(void 0,[s].slice(h))}catch(y){f.apply(void 0,[y])}}p.extend({Deferred:function(s){var u=[["notify","progress",p.Callbacks("memory"),p.Callbacks("memory"),2],["resolve","done",p.Callbacks("once memory"),p.Callbacks("once memory"),0,"resolved"],["reject","fail",p.Callbacks("once memory"),p.Callbacks("once memory"),1,"rejected"]],f="pending",h={state:function(){return f},always:function(){return v.done(arguments).fail(arguments),this},catch:function(y){return h.then(null,y)},pipe:function(){var y=arguments;return p.Deferred(function(b){p.each(u,function(A,E){var F=O(y[E[4]])&&y[E[4]];v[E[1]](function(){var $=F&&F.apply(this,arguments);$&&O($.promise)?$.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[E[0]+"With"](this,F?[$]:arguments)})}),y=null}).promise()},then:function(y,b,A){var E=0;function F($,ee,j,K){return function(){var Oe=this,Ye=arguments,Ae=function(){var Rt,yn;if(!($=E&&(j!==ge&&(Oe=void 0,Ye=[Rt]),ee.rejectWith(Oe,Ye))}};$?jt():(p.Deferred.getStackHook&&(jt.stackTrace=p.Deferred.getStackHook()),t.setTimeout(jt))}}return p.Deferred(function($){u[0][3].add(F(0,$,O(A)?A:he,$.notifyWith)),u[1][3].add(F(0,$,O(y)?y:he)),u[2][3].add(F(0,$,O(b)?b:ge))}).promise()},promise:function(y){return y!=null?p.extend(y,h):h}},v={};return p.each(u,function(y,b){var A=b[2],E=b[5];h[b[1]]=A.add,E&&A.add(function(){f=E},u[3-y][2].disable,u[3-y][3].disable,u[0][2].lock,u[0][3].lock),A.add(b[3].fire),v[b[0]]=function(){return v[b[0]+"With"](this===v?void 0:this,arguments),this},v[b[0]+"With"]=A.fireWith}),h.promise(v),s&&s.call(v,v),v},when:function(s){var u=arguments.length,f=u,h=Array(f),v=o.call(arguments),y=p.Deferred(),b=function(A){return function(E){h[A]=this,v[A]=arguments.length>1?o.call(arguments):E,--u||y.resolveWith(h,v)}};if(u<=1&&(ke(s,y.done(b(f)).resolve,y.reject,!u),y.state()==="pending"||O(v[f]&&v[f].then)))return y.then();for(;f--;)ke(v[f],b(f),y.reject);return y.promise()}});var _e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;p.Deferred.exceptionHook=function(s,u){t.console&&t.console.warn&&s&&_e.test(s.name)&&t.console.warn("jQuery.Deferred exception: "+s.message,s.stack,u)},p.readyException=function(s){t.setTimeout(function(){throw s})};var Fe=p.Deferred();p.fn.ready=function(s){return Fe.then(s).catch(function(u){p.readyException(u)}),this},p.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--p.readyWait:p.isReady)||(p.isReady=!0,!(s!==!0&&--p.readyWait>0)&&Fe.resolveWith(P,[p]))}}),p.ready.then=Fe.then;function ft(){P.removeEventListener("DOMContentLoaded",ft),t.removeEventListener("load",ft),p.ready()}P.readyState==="complete"||P.readyState!=="loading"&&!P.documentElement.doScroll?t.setTimeout(p.ready):(P.addEventListener("DOMContentLoaded",ft),t.addEventListener("load",ft));var pt=function(s,u,f,h,v,y,b){var A=0,E=s.length,F=f==null;if(L(f)==="object"){v=!0;for(A in f)pt(s,u,A,f[A],!0,y,b)}else if(h!==void 0&&(v=!0,O(h)||(b=!0),F&&(b?(u.call(s,h),u=null):(F=u,u=function($,ee,j){return F.call(p($),j)})),u))for(;A1,null,!0)},removeData:function(s){return this.each(function(){V.remove(this,s)})}}),p.extend({queue:function(s,u,f){var h;if(s)return u=(u||"fx")+"queue",h=H.get(s,u),f&&(!h||Array.isArray(f)?h=H.access(s,u,p.makeArray(f)):h.push(f)),h||[]},dequeue:function(s,u){u=u||"fx";var f=p.queue(s,u),h=f.length,v=f.shift(),y=p._queueHooks(s,u),b=function(){p.dequeue(s,u)};v==="inprogress"&&(v=f.shift(),h--),v&&(u==="fx"&&f.unshift("inprogress"),delete y.stop,v.call(s,b,y)),!h&&y&&y.empty.fire()},_queueHooks:function(s,u){var f=u+"queueHooks";return H.get(s,f)||H.access(s,f,{empty:p.Callbacks("once memory").add(function(){H.remove(s,[u+"queue",f])})})}}),p.fn.extend({queue:function(s,u){var f=2;return typeof s!="string"&&(u=s,s="fx",f--),arguments.length\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=P.createDocumentFragment(),u=s.appendChild(P.createElement("div")),f=P.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),u.appendChild(f),k.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="",k.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="",k.option=!!u.lastChild})();var ye={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,k.option||(ye.optgroup=ye.option=[1,""]);function ze(s,u){var f;return typeof s.getElementsByTagName<"u"?f=s.getElementsByTagName(u||"*"):typeof s.querySelectorAll<"u"?f=s.querySelectorAll(u||"*"):f=[],u===void 0||u&&De(s,u)?p.merge([s],f):f}function et(s,u){for(var f=0,h=s.length;f-1){v&&v.push(y);continue}if(F=qe(y),b=ze(ee.appendChild(y),"script"),F&&et(b),f)for($=0;y=b[$++];)de.test(y.type||"")&&f.push(y)}return ee}var fi=/^([^.]*)(?:\.(.+)|)/;function di(){return!0}function un(){return!1}function fs(s,u){return s===_r()==(u==="focus")}function _r(){try{return P.activeElement}catch{}}function ni(s,u,f,h,v,y){var b,A;if(typeof u=="object"){typeof f!="string"&&(h=h||f,f=void 0);for(A in u)ni(s,A,f,h,u[A],y);return s}if(h==null&&v==null?(v=f,h=f=void 0):v==null&&(typeof f=="string"?(v=h,h=void 0):(v=h,h=f,f=void 0)),v===!1)v=un;else if(!v)return s;return y===1&&(b=v,v=function(E){return p().off(E),b.apply(this,arguments)},v.guid=b.guid||(b.guid=p.guid++)),s.each(function(){p.event.add(this,u,v,h,f)})}p.event={global:{},add:function(s,u,f,h,v){var y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae=H.get(s);if(W(s))for(f.handler&&(y=f,f=y.handler,v=y.selector),v&&p.find.matchesSelector(Le,v),f.guid||(f.guid=p.guid++),(E=Ae.events)||(E=Ae.events=Object.create(null)),(b=Ae.handle)||(b=Ae.handle=function(jt){return typeof p<"u"&&p.event.triggered!==jt.type?p.event.dispatch.apply(s,arguments):void 0}),u=(u||"").match(at)||[""],F=u.length;F--;)A=fi.exec(u[F])||[],K=Ye=A[1],Oe=(A[2]||"").split(".").sort(),K&&(ee=p.event.special[K]||{},K=(v?ee.delegateType:ee.bindType)||K,ee=p.event.special[K]||{},$=p.extend({type:K,origType:Ye,data:h,handler:f,guid:f.guid,selector:v,needsContext:v&&p.expr.match.needsContext.test(v),namespace:Oe.join(".")},y),(j=E[K])||(j=E[K]=[],j.delegateCount=0,(!ee.setup||ee.setup.call(s,h,Oe,b)===!1)&&s.addEventListener&&s.addEventListener(K,b)),ee.add&&(ee.add.call(s,$),$.handler.guid||($.handler.guid=f.guid)),v?j.splice(j.delegateCount++,0,$):j.push($),p.event.global[K]=!0)},remove:function(s,u,f,h,v){var y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae=H.hasData(s)&&H.get(s);if(!(!Ae||!(E=Ae.events))){for(u=(u||"").match(at)||[""],F=u.length;F--;){if(A=fi.exec(u[F])||[],K=Ye=A[1],Oe=(A[2]||"").split(".").sort(),!K){for(K in E)p.event.remove(s,K+u[F],f,h,!0);continue}for(ee=p.event.special[K]||{},K=(h?ee.delegateType:ee.bindType)||K,j=E[K]||[],A=A[2]&&new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=j.length;y--;)$=j[y],(v||Ye===$.origType)&&(!f||f.guid===$.guid)&&(!A||A.test($.namespace))&&(!h||h===$.selector||h==="**"&&$.selector)&&(j.splice(y,1),$.selector&&j.delegateCount--,ee.remove&&ee.remove.call(s,$));b&&!j.length&&((!ee.teardown||ee.teardown.call(s,Oe,Ae.handle)===!1)&&p.removeEvent(s,K,Ae.handle),delete E[K])}p.isEmptyObject(E)&&H.remove(s,"handle events")}},dispatch:function(s){var u,f,h,v,y,b,A=new Array(arguments.length),E=p.event.fix(s),F=(H.get(this,"events")||Object.create(null))[E.type]||[],$=p.event.special[E.type]||{};for(A[0]=E,u=1;u=1)){for(;F!==this;F=F.parentNode||this)if(F.nodeType===1&&!(s.type==="click"&&F.disabled===!0)){for(y=[],b={},f=0;f-1:p.find(v,this,null,[F]).length),b[v]&&y.push(h);y.length&&A.push({elem:F,handlers:y})}}return F=this,E\s*$/g;function Kf(s,u){return De(s,"table")&&De(u.nodeType!==11?u:u.firstChild,"tr")&&p(s).children("tbody")[0]||s}function b_(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function C_(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function qf(s,u){var f,h,v,y,b,A,E;if(u.nodeType===1){if(H.hasData(s)&&(y=H.get(s),E=y.events,E)){H.remove(u,"handle events");for(v in E)for(f=0,h=E[v].length;f1&&typeof K=="string"&&!k.checkClone&&Sr.test(K))return s.each(function(Ye){var Ae=s.eq(Ye);Oe&&(u[0]=K.call(this,Ye,Ae.html())),kr(Ae,u,f,h)});if(ee&&(v=en(u,s[0].ownerDocument,!1,s,h),y=v.firstChild,v.childNodes.length===1&&(v=y),y||h)){for(b=p.map(ze(v,"script"),b_),A=b.length;$0&&et(b,!E&&ze(s,"script")),A},cleanData:function(s){for(var u,f,h,v=p.event.special,y=0;(f=s[y])!==void 0;y++)if(W(f)){if(u=f[H.expando]){if(u.events)for(h in u.events)v[h]?p.event.remove(f,h):p.removeEvent(f,h,u.handle);f[H.expando]=void 0}f[V.expando]&&(f[V.expando]=void 0)}}}),p.fn.extend({detach:function(s){return zf(this,s,!0)},remove:function(s){return zf(this,s)},text:function(s){return pt(this,function(u){return u===void 0?p.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,s,arguments.length)},append:function(){return kr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=Kf(this,s);u.appendChild(s)}})},prepend:function(){return kr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=Kf(this,s);u.insertBefore(s,u.firstChild)}})},before:function(){return kr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return kr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,u=0;(s=this[u])!=null;u++)s.nodeType===1&&(p.cleanData(ze(s,!1)),s.textContent="");return this},clone:function(s,u){return s=s??!1,u=u??s,this.map(function(){return p.clone(this,s,u)})},html:function(s){return pt(this,function(u){var f=this[0]||{},h=0,v=this.length;if(u===void 0&&f.nodeType===1)return f.innerHTML;if(typeof u=="string"&&!ds.test(u)&&!ye[(q.exec(u)||["",""])[1].toLowerCase()]){u=p.htmlPrefilter(u);try{for(;h=0&&(E+=Math.max(0,Math.ceil(s["offset"+u[0].toUpperCase()+u.slice(1)]-y-E-A-.5))||0),E}function nd(s,u,f){var h=Lo(s),v=!k.boxSizingReliable()||f,y=v&&p.css(s,"boxSizing",!1,h)==="border-box",b=y,A=ps(s,u,h),E="offset"+u[0].toUpperCase()+u.slice(1);if(ml.test(A)){if(!f)return A;A="auto"}return(!k.boxSizingReliable()&&y||!k.reliableTrDimensions()&&De(s,"tr")||A==="auto"||!parseFloat(A)&&p.css(s,"display",!1,h)==="inline")&&s.getClientRects().length&&(y=p.css(s,"boxSizing",!1,h)==="border-box",b=E in s,b&&(A=s[E])),A=parseFloat(A)||0,A+bl(s,u,f||(y?"border":"content"),b,h,A)+"px"}p.extend({cssHooks:{opacity:{get:function(s,u){if(u){var f=ps(s,"opacity");return f===""?"1":f}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(s,u,f,h){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var v,y,b,A=D(u),E=vl.test(u),F=s.style;if(E||(u=yl(A)),b=p.cssHooks[u]||p.cssHooks[A],f!==void 0){if(y=typeof f,y==="string"&&(v=me.exec(f))&&v[1]&&(f=Et(s,u,v),y="number"),f==null||f!==f)return;y==="number"&&!E&&(f+=v&&v[3]||(p.cssNumber[A]?"":"px")),!k.clearCloneStyle&&f===""&&u.indexOf("background")===0&&(F[u]="inherit"),(!b||!("set"in b)||(f=b.set(s,f,h))!==void 0)&&(E?F.setProperty(u,f):F[u]=f)}else return b&&"get"in b&&(v=b.get(s,!1,h))!==void 0?v:F[u]}},css:function(s,u,f,h){var v,y,b,A=D(u),E=vl.test(u);return E||(u=yl(A)),b=p.cssHooks[u]||p.cssHooks[A],b&&"get"in b&&(v=b.get(s,!0,f)),v===void 0&&(v=ps(s,u,h)),v==="normal"&&u in ed&&(v=ed[u]),f===""||f?(y=parseFloat(v),f===!0||isFinite(y)?y||0:v):v}}),p.each(["height","width"],function(s,u){p.cssHooks[u]={get:function(f,h,v){if(h)return S_.test(p.css(f,"display"))&&(!f.getClientRects().length||!f.getBoundingClientRect().width)?Xf(f,k_,function(){return nd(f,u,v)}):nd(f,u,v)},set:function(f,h,v){var y,b=Lo(f),A=!k.scrollboxSize()&&b.position==="absolute",E=A||v,F=E&&p.css(f,"boxSizing",!1,b)==="border-box",$=v?bl(f,u,v,F,b):0;return F&&A&&($-=Math.ceil(f["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(b[u])-bl(f,u,"border",!1,b)-.5)),$&&(y=me.exec(h))&&(y[3]||"px")!=="px"&&(f.style[u]=h,h=p.css(f,u)),td(f,h,$)}}}),p.cssHooks.marginLeft=Gf(k.reliableMarginLeft,function(s,u){if(u)return(parseFloat(ps(s,"marginLeft"))||s.getBoundingClientRect().left-Xf(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),p.each({margin:"",padding:"",border:"Width"},function(s,u){p.cssHooks[s+u]={expand:function(f){for(var h=0,v={},y=typeof f=="string"?f.split(" "):[f];h<4;h++)v[s+Ce[h]+u]=y[h]||y[h-2]||y[0];return v}},s!=="margin"&&(p.cssHooks[s+u].set=td)}),p.fn.extend({css:function(s,u){return pt(this,function(f,h,v){var y,b,A={},E=0;if(Array.isArray(h)){for(y=Lo(f),b=h.length;E1)}});function cn(s,u,f,h,v){return new cn.prototype.init(s,u,f,h,v)}p.Tween=cn,cn.prototype={constructor:cn,init:function(s,u,f,h,v,y){this.elem=s,this.prop=f,this.easing=v||p.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=h,this.unit=y||(p.cssNumber[f]?"":"px")},cur:function(){var s=cn.propHooks[this.prop];return s&&s.get?s.get(this):cn.propHooks._default.get(this)},run:function(s){var u,f=cn.propHooks[this.prop];return this.options.duration?this.pos=u=p.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=u=s,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):cn.propHooks._default.set(this),this}},cn.prototype.init.prototype=cn.prototype,cn.propHooks={_default:{get:function(s){var u;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(u=p.css(s.elem,s.prop,""),!u||u==="auto"?0:u)},set:function(s){p.fx.step[s.prop]?p.fx.step[s.prop](s):s.elem.nodeType===1&&(p.cssHooks[s.prop]||s.elem.style[yl(s.prop)]!=null)?p.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},cn.propHooks.scrollTop=cn.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},p.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},p.fx=cn.prototype.init,p.fx.step={};var xr,Oo,x_=/^(?:toggle|show|hide)$/,A_=/queueHooks$/;function Cl(){Oo&&(P.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Cl):t.setTimeout(Cl,p.fx.interval),p.fx.tick())}function id(){return t.setTimeout(function(){xr=void 0}),xr=Date.now()}function Do(s,u){var f,h=0,v={height:s};for(u=u?1:0;h<4;h+=2-u)f=Ce[h],v["margin"+f]=v["padding"+f]=s;return u&&(v.opacity=v.width=s),v}function rd(s,u,f){for(var h,v=(jn.tweeners[u]||[]).concat(jn.tweeners["*"]),y=0,b=v.length;y1)},removeAttr:function(s){return this.each(function(){p.removeAttr(this,s)})}}),p.extend({attr:function(s,u,f){var h,v,y=s.nodeType;if(!(y===3||y===8||y===2)){if(typeof s.getAttribute>"u")return p.prop(s,u,f);if((y!==1||!p.isXMLDoc(s))&&(v=p.attrHooks[u.toLowerCase()]||(p.expr.match.bool.test(u)?sd:void 0)),f!==void 0){if(f===null){p.removeAttr(s,u);return}return v&&"set"in v&&(h=v.set(s,f,u))!==void 0?h:(s.setAttribute(u,f+""),f)}return v&&"get"in v&&(h=v.get(s,u))!==null?h:(h=p.find.attr(s,u),h??void 0)}},attrHooks:{type:{set:function(s,u){if(!k.radioValue&&u==="radio"&&De(s,"input")){var f=s.value;return s.setAttribute("type",u),f&&(s.value=f),u}}}},removeAttr:function(s,u){var f,h=0,v=u&&u.match(at);if(v&&s.nodeType===1)for(;f=v[h++];)s.removeAttribute(f)}}),sd={set:function(s,u,f){return u===!1?p.removeAttr(s,f):s.setAttribute(f,f),f}},p.each(p.expr.match.bool.source.match(/\w+/g),function(s,u){var f=hs[u]||p.find.attr;hs[u]=function(h,v,y){var b,A,E=v.toLowerCase();return y||(A=hs[E],hs[E]=b,b=f(h,v,y)!=null?E:null,hs[E]=A),b}});var D_=/^(?:input|select|textarea|button)$/i,P_=/^(?:a|area)$/i;p.fn.extend({prop:function(s,u){return pt(this,p.prop,s,u,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[p.propFix[s]||s]})}}),p.extend({prop:function(s,u,f){var h,v,y=s.nodeType;if(!(y===3||y===8||y===2))return(y!==1||!p.isXMLDoc(s))&&(u=p.propFix[u]||u,v=p.propHooks[u]),f!==void 0?v&&"set"in v&&(h=v.set(s,f,u))!==void 0?h:s[u]=f:v&&"get"in v&&(h=v.get(s,u))!==null?h:s[u]},propHooks:{tabIndex:{get:function(s){var u=p.find.attr(s,"tabindex");return u?parseInt(u,10):D_.test(s.nodeName)||P_.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k.optSelected||(p.propHooks.selected={get:function(s){var u=s.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(s){var u=s.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this});function qi(s){var u=s.match(at)||[];return u.join(" ")}function zi(s){return s.getAttribute&&s.getAttribute("class")||""}function wl(s){return Array.isArray(s)?s:typeof s=="string"?s.match(at)||[]:[]}p.fn.extend({addClass:function(s){var u,f,h,v,y,b;return O(s)?this.each(function(A){p(this).addClass(s.call(this,A,zi(this)))}):(u=wl(s),u.length?this.each(function(){if(h=zi(this),f=this.nodeType===1&&" "+qi(h)+" ",f){for(y=0;y-1;)f=f.replace(" "+v+" "," ");b=qi(f),h!==b&&this.setAttribute("class",b)}}):this):this.attr("class","")},toggleClass:function(s,u){var f,h,v,y,b=typeof s,A=b==="string"||Array.isArray(s);return O(s)?this.each(function(E){p(this).toggleClass(s.call(this,E,zi(this),u),u)}):typeof u=="boolean"&&A?u?this.addClass(s):this.removeClass(s):(f=wl(s),this.each(function(){if(A)for(y=p(this),v=0;v-1)return!0;return!1}});var I_=/\r/g;p.fn.extend({val:function(s){var u,f,h,v=this[0];return arguments.length?(h=O(s),this.each(function(y){var b;this.nodeType===1&&(h?b=s.call(this,y,p(this).val()):b=s,b==null?b="":typeof b=="number"?b+="":Array.isArray(b)&&(b=p.map(b,function(A){return A==null?"":A+""})),u=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,b,"value")===void 0)&&(this.value=b))})):v?(u=p.valHooks[v.type]||p.valHooks[v.nodeName.toLowerCase()],u&&"get"in u&&(f=u.get(v,"value"))!==void 0?f:(f=v.value,typeof f=="string"?f.replace(I_,""):f??"")):void 0}}),p.extend({valHooks:{option:{get:function(s){var u=p.find.attr(s,"value");return u??qi(p.text(s))}},select:{get:function(s){var u,f,h,v=s.options,y=s.selectedIndex,b=s.type==="select-one",A=b?null:[],E=b?y+1:v.length;for(y<0?h=E:h=b?y:0;h-1)&&(f=!0);return f||(s.selectedIndex=-1),y}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(s,u){if(Array.isArray(u))return s.checked=p.inArray(p(s).val(),u)>-1}},k.checkOn||(p.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})}),k.focusin="onfocusin"in t;var od=/^(?:focusinfocus|focusoutblur)$/,ad=function(s){s.stopPropagation()};p.extend(p.event,{trigger:function(s,u,f,h){var v,y,b,A,E,F,$,ee,j=[f||P],K=w.call(s,"type")?s.type:s,Oe=w.call(s,"namespace")?s.namespace.split("."):[];if(y=ee=b=f=f||P,!(f.nodeType===3||f.nodeType===8)&&!od.test(K+p.event.triggered)&&(K.indexOf(".")>-1&&(Oe=K.split("."),K=Oe.shift(),Oe.sort()),E=K.indexOf(":")<0&&"on"+K,s=s[p.expando]?s:new p.Event(K,typeof s=="object"&&s),s.isTrigger=h?2:3,s.namespace=Oe.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=f),u=u==null?[s]:p.makeArray(u,[s]),$=p.event.special[K]||{},!(!h&&$.trigger&&$.trigger.apply(f,u)===!1))){if(!h&&!$.noBubble&&!U(f)){for(A=$.delegateType||K,od.test(A+K)||(y=y.parentNode);y;y=y.parentNode)j.push(y),b=y;b===(f.ownerDocument||P)&&j.push(b.defaultView||b.parentWindow||t)}for(v=0;(y=j[v++])&&!s.isPropagationStopped();)ee=y,s.type=v>1?A:$.bindType||K,F=(H.get(y,"events")||Object.create(null))[s.type]&&H.get(y,"handle"),F&&F.apply(y,u),F=E&&y[E],F&&F.apply&&W(y)&&(s.result=F.apply(y,u),s.result===!1&&s.preventDefault());return s.type=K,!h&&!s.isDefaultPrevented()&&(!$._default||$._default.apply(j.pop(),u)===!1)&&W(f)&&E&&O(f[K])&&!U(f)&&(b=f[E],b&&(f[E]=null),p.event.triggered=K,s.isPropagationStopped()&&ee.addEventListener(K,ad),f[K](),s.isPropagationStopped()&&ee.removeEventListener(K,ad),p.event.triggered=void 0,b&&(f[E]=b)),s.result}},simulate:function(s,u,f){var h=p.extend(new p.Event,f,{type:s,isSimulated:!0});p.event.trigger(h,null,u)}}),p.fn.extend({trigger:function(s,u){return this.each(function(){p.event.trigger(s,u,this)})},triggerHandler:function(s,u){var f=this[0];if(f)return p.event.trigger(s,u,f,!0)}}),k.focusin||p.each({focus:"focusin",blur:"focusout"},function(s,u){var f=function(h){p.event.simulate(u,h.target,p.event.fix(h))};p.event.special[u]={setup:function(){var h=this.ownerDocument||this.document||this,v=H.access(h,u);v||h.addEventListener(s,f,!0),H.access(h,u,(v||0)+1)},teardown:function(){var h=this.ownerDocument||this.document||this,v=H.access(h,u)-1;v?H.access(h,u,v):(h.removeEventListener(s,f,!0),H.remove(h,u))}}});var gs=t.location,ld={guid:Date.now()},Tl=/\?/;p.parseXML=function(s){var u,f;if(!s||typeof s!="string")return null;try{u=new t.DOMParser().parseFromString(s,"text/xml")}catch{}return f=u&&u.getElementsByTagName("parsererror")[0],(!u||f)&&p.error("Invalid XML: "+(f?p.map(f.childNodes,function(h){return h.textContent}).join(` -`):s)),u};var N_=/\[\]$/,ud=/\r?\n/g,R_=/^(?:submit|button|image|reset|file)$/i,M_=/^(?:input|select|textarea|keygen)/i;function _l(s,u,f,h){var v;if(Array.isArray(u))p.each(u,function(y,b){f||N_.test(s)?h(s,b):_l(s+"["+(typeof b=="object"&&b!=null?y:"")+"]",b,f,h)});else if(!f&&L(u)==="object")for(v in u)_l(s+"["+v+"]",u[v],f,h);else h(s,u)}p.param=function(s,u){var f,h=[],v=function(y,b){var A=O(b)?b():b;h[h.length]=encodeURIComponent(y)+"="+encodeURIComponent(A??"")};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!p.isPlainObject(s))p.each(s,function(){v(this.name,this.value)});else for(f in s)_l(f,s[f],u,v);return h.join("&")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=p.prop(this,"elements");return s?p.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!p(this).is(":disabled")&&M_.test(this.nodeName)&&!R_.test(s)&&(this.checked||!vn.test(s))}).map(function(s,u){var f=p(this).val();return f==null?null:Array.isArray(f)?p.map(f,function(h){return{name:u.name,value:h.replace(ud,`\r + */var Dc;function ww(){return Dc||(Dc=1,function(e){(function(t,n){e.exports=t.document?n(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:Lc,function(t,n){var i=[],r=Object.getPrototypeOf,o=i.slice,l=i.flat?function(s){return i.flat.call(s)}:function(s){return i.concat.apply([],s)},c=i.push,d=i.indexOf,m={},g=m.toString,w=m.hasOwnProperty,_=w.toString,R=_.call(Object),k={},O=function(u){return typeof u=="function"&&typeof u.nodeType!="number"&&typeof u.item!="function"},U=function(u){return u!=null&&u===u.window},P=t.document,Z={type:!0,src:!0,nonce:!0,noModule:!0};function se(s,u,f){f=f||P;var h,v,y=f.createElement("script");if(y.text=s,u)for(h in Z)v=u[h]||u.getAttribute&&u.getAttribute(h),v&&y.setAttribute(h,v);f.head.appendChild(y).parentNode.removeChild(y)}function L(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?m[g.call(s)]||"object":typeof s}var xe="3.6.4",p=function(s,u){return new p.fn.init(s,u)};p.fn=p.prototype={jquery:xe,constructor:p,length:0,toArray:function(){return o.call(this)},get:function(s){return s==null?o.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var u=p.merge(this.constructor(),s);return u.prevObject=this,u},each:function(s){return p.each(this,s)},map:function(s){return this.pushStack(p.map(this,function(u,f){return s.call(u,f,u)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(p.grep(this,function(s,u){return(u+1)%2}))},odd:function(){return this.pushStack(p.grep(this,function(s,u){return u%2}))},eq:function(s){var u=this.length,f=+s+(s<0?u:0);return this.pushStack(f>=0&&f0&&u-1 in s}var Me=function(s){var u,f,h,v,y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae,jt,Rt,yn,yt="sizzle"+1*new Date,Xe=s.document,fn=0,ut=0,Dt=Ro(),vs=Ro(),Po=Ro(),bn=Ro(),Xi=function(C,S){return C===S&&(ee=!0),0},Yi={}.hasOwnProperty,dn=[],ki=dn.pop,Ln=dn.push,xi=dn.push,gd=dn.slice,Gi=function(C,S){for(var I=0,z=C.length;I+~]|"+ht+")"+ht+"*"),Q_=new RegExp(ht+"|>"),e1=new RegExp(Ll),t1=new RegExp("^"+Ji+"$"),No={ID:new RegExp("^#("+Ji+")"),CLASS:new RegExp("^\\.("+Ji+")"),TAG:new RegExp("^("+Ji+"|[*])"),ATTR:new RegExp("^"+md),PSEUDO:new RegExp("^"+Ll),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ht+"*(even|odd|(([+-]|)(\\d*)n|)"+ht+"*(?:([+-]|)"+ht+"*(\\d+)|))"+ht+"*\\)|)","i"),bool:new RegExp("^(?:"+Al+")$","i"),needsContext:new RegExp("^"+ht+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ht+"*((?:-\\d)?\\d*)"+ht+"*\\)|)(?=[^-]|$)","i")},n1=/HTML$/i,i1=/^(?:input|select|textarea|button)$/i,r1=/^h\d$/i,ys=/^[^{]+\{\s*\[native \w/,s1=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ol=/[+~]/,pi=new RegExp("\\\\[\\da-fA-F]{1,6}"+ht+"?|\\\\([^\\r\\n\\f])","g"),hi=function(C,S){var I="0x"+C.slice(1)-65536;return S||(I<0?String.fromCharCode(I+65536):String.fromCharCode(I>>10|55296,I&1023|56320))},yd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bd=function(C,S){return S?C==="\0"?"�":C.slice(0,-1)+"\\"+C.charCodeAt(C.length-1).toString(16)+" ":"\\"+C},Cd=function(){j()},o1=Fo(function(C){return C.disabled===!0&&C.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{xi.apply(dn=gd.call(Xe.childNodes),Xe.childNodes),dn[Xe.childNodes.length].nodeType}catch{xi={apply:dn.length?function(S,I){Ln.apply(S,gd.call(I))}:function(S,I){for(var z=S.length,M=0;S[z++]=I[M++];);S.length=z-1}}}function bt(C,S,I,z){var M,G,te,ce,ve,He,Ne,$e=S&&S.ownerDocument,Qe=S?S.nodeType:9;if(I=I||[],typeof C!="string"||!C||Qe!==1&&Qe!==9&&Qe!==11)return I;if(!z&&(j(S),S=S||K,Ye)){if(Qe!==11&&(ve=s1.exec(C)))if(M=ve[1]){if(Qe===9)if(te=S.getElementById(M)){if(te.id===M)return I.push(te),I}else return I;else if($e&&(te=$e.getElementById(M))&&yn(S,te)&&te.id===M)return I.push(te),I}else{if(ve[2])return xi.apply(I,S.getElementsByTagName(C)),I;if((M=ve[3])&&f.getElementsByClassName&&S.getElementsByClassName)return xi.apply(I,S.getElementsByClassName(M)),I}if(f.qsa&&!bn[C+" "]&&(!Ae||!Ae.test(C))&&(Qe!==1||S.nodeName.toLowerCase()!=="object")){if(Ne=C,$e=S,Qe===1&&(Q_.test(C)||vd.test(C))){for($e=Ol.test(C)&&Pl(S.parentNode)||S,($e!==S||!f.scope)&&((ce=S.getAttribute("id"))?ce=ce.replace(yd,bd):S.setAttribute("id",ce=yt)),He=b(C),G=He.length;G--;)He[G]=(ce?"#"+ce:":scope")+" "+Mo(He[G]);Ne=He.join(",")}try{return xi.apply(I,$e.querySelectorAll(Ne)),I}catch{bn(C,!0)}finally{ce===yt&&S.removeAttribute("id")}}}return E(C.replace(Io,"$1"),S,I,z)}function Ro(){var C=[];function S(I,z){return C.push(I+" ")>h.cacheLength&&delete S[C.shift()],S[I+" "]=z}return S}function $n(C){return C[yt]=!0,C}function On(C){var S=K.createElement("fieldset");try{return!!C(S)}catch{return!1}finally{S.parentNode&&S.parentNode.removeChild(S),S=null}}function Dl(C,S){for(var I=C.split("|"),z=I.length;z--;)h.attrHandle[I[z]]=S}function wd(C,S){var I=S&&C,z=I&&C.nodeType===1&&S.nodeType===1&&C.sourceIndex-S.sourceIndex;if(z)return z;if(I){for(;I=I.nextSibling;)if(I===S)return-1}return C?1:-1}function a1(C){return function(S){var I=S.nodeName.toLowerCase();return I==="input"&&S.type===C}}function l1(C){return function(S){var I=S.nodeName.toLowerCase();return(I==="input"||I==="button")&&S.type===C}}function Td(C){return function(S){return"form"in S?S.parentNode&&S.disabled===!1?"label"in S?"label"in S.parentNode?S.parentNode.disabled===C:S.disabled===C:S.isDisabled===C||S.isDisabled!==!C&&o1(S)===C:S.disabled===C:"label"in S?S.disabled===C:!1}}function Zi(C){return $n(function(S){return S=+S,$n(function(I,z){for(var M,G=C([],I.length,S),te=G.length;te--;)I[M=G[te]]&&(I[M]=!(z[M]=I[M]))})})}function Pl(C){return C&&typeof C.getElementsByTagName<"u"&&C}f=bt.support={},y=bt.isXML=function(C){var S=C&&C.namespaceURI,I=C&&(C.ownerDocument||C).documentElement;return!n1.test(S||I&&I.nodeName||"HTML")},j=bt.setDocument=function(C){var S,I,z=C?C.ownerDocument||C:Xe;return z==K||z.nodeType!==9||!z.documentElement||(K=z,Oe=K.documentElement,Ye=!y(K),Xe!=K&&(I=K.defaultView)&&I.top!==I&&(I.addEventListener?I.addEventListener("unload",Cd,!1):I.attachEvent&&I.attachEvent("onunload",Cd)),f.scope=On(function(M){return Oe.appendChild(M).appendChild(K.createElement("div")),typeof M.querySelectorAll<"u"&&!M.querySelectorAll(":scope fieldset div").length}),f.cssHas=On(function(){try{return K.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),f.attributes=On(function(M){return M.className="i",!M.getAttribute("className")}),f.getElementsByTagName=On(function(M){return M.appendChild(K.createComment("")),!M.getElementsByTagName("*").length}),f.getElementsByClassName=ys.test(K.getElementsByClassName),f.getById=On(function(M){return Oe.appendChild(M).id=yt,!K.getElementsByName||!K.getElementsByName(yt).length}),f.getById?(h.filter.ID=function(M){var G=M.replace(pi,hi);return function(te){return te.getAttribute("id")===G}},h.find.ID=function(M,G){if(typeof G.getElementById<"u"&&Ye){var te=G.getElementById(M);return te?[te]:[]}}):(h.filter.ID=function(M){var G=M.replace(pi,hi);return function(te){var ce=typeof te.getAttributeNode<"u"&&te.getAttributeNode("id");return ce&&ce.value===G}},h.find.ID=function(M,G){if(typeof G.getElementById<"u"&&Ye){var te,ce,ve,He=G.getElementById(M);if(He){if(te=He.getAttributeNode("id"),te&&te.value===M)return[He];for(ve=G.getElementsByName(M),ce=0;He=ve[ce++];)if(te=He.getAttributeNode("id"),te&&te.value===M)return[He]}return[]}}),h.find.TAG=f.getElementsByTagName?function(M,G){if(typeof G.getElementsByTagName<"u")return G.getElementsByTagName(M);if(f.qsa)return G.querySelectorAll(M)}:function(M,G){var te,ce=[],ve=0,He=G.getElementsByTagName(M);if(M==="*"){for(;te=He[ve++];)te.nodeType===1&&ce.push(te);return ce}return He},h.find.CLASS=f.getElementsByClassName&&function(M,G){if(typeof G.getElementsByClassName<"u"&&Ye)return G.getElementsByClassName(M)},jt=[],Ae=[],(f.qsa=ys.test(K.querySelectorAll))&&(On(function(M){var G;Oe.appendChild(M).innerHTML="",M.querySelectorAll("[msallowcapture^='']").length&&Ae.push("[*^$]="+ht+`*(?:''|"")`),M.querySelectorAll("[selected]").length||Ae.push("\\["+ht+"*(?:value|"+Al+")"),M.querySelectorAll("[id~="+yt+"-]").length||Ae.push("~="),G=K.createElement("input"),G.setAttribute("name",""),M.appendChild(G),M.querySelectorAll("[name='']").length||Ae.push("\\["+ht+"*name"+ht+"*="+ht+`*(?:''|"")`),M.querySelectorAll(":checked").length||Ae.push(":checked"),M.querySelectorAll("a#"+yt+"+*").length||Ae.push(".#.+[+~]"),M.querySelectorAll("\\\f"),Ae.push("[\\r\\n\\f]")}),On(function(M){M.innerHTML="";var G=K.createElement("input");G.setAttribute("type","hidden"),M.appendChild(G).setAttribute("name","D"),M.querySelectorAll("[name=d]").length&&Ae.push("name"+ht+"*[*^$|!~]?="),M.querySelectorAll(":enabled").length!==2&&Ae.push(":enabled",":disabled"),Oe.appendChild(M).disabled=!0,M.querySelectorAll(":disabled").length!==2&&Ae.push(":enabled",":disabled"),M.querySelectorAll("*,:x"),Ae.push(",.*:")})),(f.matchesSelector=ys.test(Rt=Oe.matches||Oe.webkitMatchesSelector||Oe.mozMatchesSelector||Oe.oMatchesSelector||Oe.msMatchesSelector))&&On(function(M){f.disconnectedMatch=Rt.call(M,"*"),Rt.call(M,"[s!='']:x"),jt.push("!=",Ll)}),f.cssHas||Ae.push(":has"),Ae=Ae.length&&new RegExp(Ae.join("|")),jt=jt.length&&new RegExp(jt.join("|")),S=ys.test(Oe.compareDocumentPosition),yn=S||ys.test(Oe.contains)?function(M,G){var te=M.nodeType===9&&M.documentElement||M,ce=G&&G.parentNode;return M===ce||!!(ce&&ce.nodeType===1&&(te.contains?te.contains(ce):M.compareDocumentPosition&&M.compareDocumentPosition(ce)&16))}:function(M,G){if(G){for(;G=G.parentNode;)if(G===M)return!0}return!1},Xi=S?function(M,G){if(M===G)return ee=!0,0;var te=!M.compareDocumentPosition-!G.compareDocumentPosition;return te||(te=(M.ownerDocument||M)==(G.ownerDocument||G)?M.compareDocumentPosition(G):1,te&1||!f.sortDetached&&G.compareDocumentPosition(M)===te?M==K||M.ownerDocument==Xe&&yn(Xe,M)?-1:G==K||G.ownerDocument==Xe&&yn(Xe,G)?1:$?Gi($,M)-Gi($,G):0:te&4?-1:1)}:function(M,G){if(M===G)return ee=!0,0;var te,ce=0,ve=M.parentNode,He=G.parentNode,Ne=[M],$e=[G];if(!ve||!He)return M==K?-1:G==K?1:ve?-1:He?1:$?Gi($,M)-Gi($,G):0;if(ve===He)return wd(M,G);for(te=M;te=te.parentNode;)Ne.unshift(te);for(te=G;te=te.parentNode;)$e.unshift(te);for(;Ne[ce]===$e[ce];)ce++;return ce?wd(Ne[ce],$e[ce]):Ne[ce]==Xe?-1:$e[ce]==Xe?1:0}),K},bt.matches=function(C,S){return bt(C,null,null,S)},bt.matchesSelector=function(C,S){if(j(C),f.matchesSelector&&Ye&&!bn[S+" "]&&(!jt||!jt.test(S))&&(!Ae||!Ae.test(S)))try{var I=Rt.call(C,S);if(I||f.disconnectedMatch||C.document&&C.document.nodeType!==11)return I}catch{bn(S,!0)}return bt(S,K,null,[C]).length>0},bt.contains=function(C,S){return(C.ownerDocument||C)!=K&&j(C),yn(C,S)},bt.attr=function(C,S){(C.ownerDocument||C)!=K&&j(C);var I=h.attrHandle[S.toLowerCase()],z=I&&Yi.call(h.attrHandle,S.toLowerCase())?I(C,S,!Ye):void 0;return z!==void 0?z:f.attributes||!Ye?C.getAttribute(S):(z=C.getAttributeNode(S))&&z.specified?z.value:null},bt.escape=function(C){return(C+"").replace(yd,bd)},bt.error=function(C){throw new Error("Syntax error, unrecognized expression: "+C)},bt.uniqueSort=function(C){var S,I=[],z=0,M=0;if(ee=!f.detectDuplicates,$=!f.sortStable&&C.slice(0),C.sort(Xi),ee){for(;S=C[M++];)S===C[M]&&(z=I.push(M));for(;z--;)C.splice(I[z],1)}return $=null,C},v=bt.getText=function(C){var S,I="",z=0,M=C.nodeType;if(M){if(M===1||M===9||M===11){if(typeof C.textContent=="string")return C.textContent;for(C=C.firstChild;C;C=C.nextSibling)I+=v(C)}else if(M===3||M===4)return C.nodeValue}else for(;S=C[z++];)I+=v(S);return I},h=bt.selectors={cacheLength:50,createPseudo:$n,match:No,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(C){return C[1]=C[1].replace(pi,hi),C[3]=(C[3]||C[4]||C[5]||"").replace(pi,hi),C[2]==="~="&&(C[3]=" "+C[3]+" "),C.slice(0,4)},CHILD:function(C){return C[1]=C[1].toLowerCase(),C[1].slice(0,3)==="nth"?(C[3]||bt.error(C[0]),C[4]=+(C[4]?C[5]+(C[6]||1):2*(C[3]==="even"||C[3]==="odd")),C[5]=+(C[7]+C[8]||C[3]==="odd")):C[3]&&bt.error(C[0]),C},PSEUDO:function(C){var S,I=!C[6]&&C[2];return No.CHILD.test(C[0])?null:(C[3]?C[2]=C[4]||C[5]||"":I&&e1.test(I)&&(S=b(I,!0))&&(S=I.indexOf(")",I.length-S)-I.length)&&(C[0]=C[0].slice(0,S),C[2]=I.slice(0,S)),C.slice(0,3))}},filter:{TAG:function(C){var S=C.replace(pi,hi).toLowerCase();return C==="*"?function(){return!0}:function(I){return I.nodeName&&I.nodeName.toLowerCase()===S}},CLASS:function(C){var S=Dt[C+" "];return S||(S=new RegExp("(^|"+ht+")"+C+"("+ht+"|$)"))&&Dt(C,function(I){return S.test(typeof I.className=="string"&&I.className||typeof I.getAttribute<"u"&&I.getAttribute("class")||"")})},ATTR:function(C,S,I){return function(z){var M=bt.attr(z,C);return M==null?S==="!=":S?(M+="",S==="="?M===I:S==="!="?M!==I:S==="^="?I&&M.indexOf(I)===0:S==="*="?I&&M.indexOf(I)>-1:S==="$="?I&&M.slice(-I.length)===I:S==="~="?(" "+M.replace(J_," ")+" ").indexOf(I)>-1:S==="|="?M===I||M.slice(0,I.length+1)===I+"-":!1):!0}},CHILD:function(C,S,I,z,M){var G=C.slice(0,3)!=="nth",te=C.slice(-4)!=="last",ce=S==="of-type";return z===1&&M===0?function(ve){return!!ve.parentNode}:function(ve,He,Ne){var $e,Qe,Ct,Be,$t,Yt,Cn=G!==te?"nextSibling":"previousSibling",At=ve.parentNode,bs=ce&&ve.nodeName.toLowerCase(),Cs=!Ne&&!ce,wn=!1;if(At){if(G){for(;Cn;){for(Be=ve;Be=Be[Cn];)if(ce?Be.nodeName.toLowerCase()===bs:Be.nodeType===1)return!1;Yt=Cn=C==="only"&&!Yt&&"nextSibling"}return!0}if(Yt=[te?At.firstChild:At.lastChild],te&&Cs){for(Be=At,Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),$e=Qe[C]||[],$t=$e[0]===fn&&$e[1],wn=$t&&$e[2],Be=$t&&At.childNodes[$t];Be=++$t&&Be&&Be[Cn]||(wn=$t=0)||Yt.pop();)if(Be.nodeType===1&&++wn&&Be===ve){Qe[C]=[fn,$t,wn];break}}else if(Cs&&(Be=ve,Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),$e=Qe[C]||[],$t=$e[0]===fn&&$e[1],wn=$t),wn===!1)for(;(Be=++$t&&Be&&Be[Cn]||(wn=$t=0)||Yt.pop())&&!((ce?Be.nodeName.toLowerCase()===bs:Be.nodeType===1)&&++wn&&(Cs&&(Ct=Be[yt]||(Be[yt]={}),Qe=Ct[Be.uniqueID]||(Ct[Be.uniqueID]={}),Qe[C]=[fn,wn]),Be===ve)););return wn-=M,wn===z||wn%z===0&&wn/z>=0}}},PSEUDO:function(C,S){var I,z=h.pseudos[C]||h.setFilters[C.toLowerCase()]||bt.error("unsupported pseudo: "+C);return z[yt]?z(S):z.length>1?(I=[C,C,"",S],h.setFilters.hasOwnProperty(C.toLowerCase())?$n(function(M,G){for(var te,ce=z(M,S),ve=ce.length;ve--;)te=Gi(M,ce[ve]),M[te]=!(G[te]=ce[ve])}):function(M){return z(M,0,I)}):z}},pseudos:{not:$n(function(C){var S=[],I=[],z=A(C.replace(Io,"$1"));return z[yt]?$n(function(M,G,te,ce){for(var ve,He=z(M,null,ce,[]),Ne=M.length;Ne--;)(ve=He[Ne])&&(M[Ne]=!(G[Ne]=ve))}):function(M,G,te){return S[0]=M,z(S,null,te,I),S[0]=null,!I.pop()}}),has:$n(function(C){return function(S){return bt(C,S).length>0}}),contains:$n(function(C){return C=C.replace(pi,hi),function(S){return(S.textContent||v(S)).indexOf(C)>-1}}),lang:$n(function(C){return t1.test(C||"")||bt.error("unsupported lang: "+C),C=C.replace(pi,hi).toLowerCase(),function(S){var I;do if(I=Ye?S.lang:S.getAttribute("xml:lang")||S.getAttribute("lang"))return I=I.toLowerCase(),I===C||I.indexOf(C+"-")===0;while((S=S.parentNode)&&S.nodeType===1);return!1}}),target:function(C){var S=s.location&&s.location.hash;return S&&S.slice(1)===C.id},root:function(C){return C===Oe},focus:function(C){return C===K.activeElement&&(!K.hasFocus||K.hasFocus())&&!!(C.type||C.href||~C.tabIndex)},enabled:Td(!1),disabled:Td(!0),checked:function(C){var S=C.nodeName.toLowerCase();return S==="input"&&!!C.checked||S==="option"&&!!C.selected},selected:function(C){return C.parentNode&&C.parentNode.selectedIndex,C.selected===!0},empty:function(C){for(C=C.firstChild;C;C=C.nextSibling)if(C.nodeType<6)return!1;return!0},parent:function(C){return!h.pseudos.empty(C)},header:function(C){return r1.test(C.nodeName)},input:function(C){return i1.test(C.nodeName)},button:function(C){var S=C.nodeName.toLowerCase();return S==="input"&&C.type==="button"||S==="button"},text:function(C){var S;return C.nodeName.toLowerCase()==="input"&&C.type==="text"&&((S=C.getAttribute("type"))==null||S.toLowerCase()==="text")},first:Zi(function(){return[0]}),last:Zi(function(C,S){return[S-1]}),eq:Zi(function(C,S,I){return[I<0?I+S:I]}),even:Zi(function(C,S){for(var I=0;IS?S:I;--z>=0;)C.push(z);return C}),gt:Zi(function(C,S,I){for(var z=I<0?I+S:I;++z1?function(S,I,z){for(var M=C.length;M--;)if(!C[M](S,I,z))return!1;return!0}:C[0]}function u1(C,S,I){for(var z=0,M=S.length;z-1&&(te[Ne]=!(ce[Ne]=Qe))}}else At=Ho(At===ce?At.splice($t,At.length):At),M?M(null,ce,At,He):xi.apply(ce,At)})}function Rl(C){for(var S,I,z,M=C.length,G=h.relative[C[0].type],te=G||h.relative[" "],ce=G?1:0,ve=Fo(function($e){return $e===S},te,!0),He=Fo(function($e){return Gi(S,$e)>-1},te,!0),Ne=[function($e,Qe,Ct){var Be=!G&&(Ct||Qe!==F)||((S=Qe).nodeType?ve($e,Qe,Ct):He($e,Qe,Ct));return S=null,Be}];ce1&&Il(Ne),ce>1&&Mo(C.slice(0,ce-1).concat({value:C[ce-2].type===" "?"*":""})).replace(Io,"$1"),I,ce0,z=C.length>0,M=function(G,te,ce,ve,He){var Ne,$e,Qe,Ct=0,Be="0",$t=G&&[],Yt=[],Cn=F,At=G||z&&h.find.TAG("*",He),bs=fn+=Cn==null?1:Math.random()||.1,Cs=At.length;for(He&&(F=te==K||te||He);Be!==Cs&&(Ne=At[Be])!=null;Be++){if(z&&Ne){for($e=0,!te&&Ne.ownerDocument!=K&&(j(Ne),ce=!Ye);Qe=C[$e++];)if(Qe(Ne,te||K,ce)){ve.push(Ne);break}He&&(fn=bs)}I&&((Ne=!Qe&&Ne)&&Ct--,G&&$t.push(Ne))}if(Ct+=Be,I&&Be!==Ct){for($e=0;Qe=S[$e++];)Qe($t,Yt,te,ce);if(G){if(Ct>0)for(;Be--;)$t[Be]||Yt[Be]||(Yt[Be]=ki.call(ve));Yt=Ho(Yt)}xi.apply(ve,Yt),He&&!G&&Yt.length>0&&Ct+S.length>1&&bt.uniqueSort(ve)}return He&&(fn=bs,F=Cn),$t};return I?$n(M):M}return A=bt.compile=function(C,S){var I,z=[],M=[],G=Po[C+" "];if(!G){for(S||(S=b(C)),I=S.length;I--;)G=Rl(S[I]),G[yt]?z.push(G):M.push(G);G=Po(C,c1(M,z)),G.selector=C}return G},E=bt.select=function(C,S,I,z){var M,G,te,ce,ve,He=typeof C=="function"&&C,Ne=!z&&b(C=He.selector||C);if(I=I||[],Ne.length===1){if(G=Ne[0]=Ne[0].slice(0),G.length>2&&(te=G[0]).type==="ID"&&S.nodeType===9&&Ye&&h.relative[G[1].type]){if(S=(h.find.ID(te.matches[0].replace(pi,hi),S)||[])[0],S)He&&(S=S.parentNode);else return I;C=C.slice(G.shift().value.length)}for(M=No.needsContext.test(C)?0:G.length;M--&&(te=G[M],!h.relative[ce=te.type]);)if((ve=h.find[ce])&&(z=ve(te.matches[0].replace(pi,hi),Ol.test(G[0].type)&&Pl(S.parentNode)||S))){if(G.splice(M,1),C=z.length&&Mo(G),!C)return xi.apply(I,z),I;break}}return(He||A(C,Ne))(z,S,!Ye,I,!S||Ol.test(C)&&Pl(S.parentNode)||S),I},f.sortStable=yt.split("").sort(Xi).join("")===yt,f.detectDuplicates=!!ee,j(),f.sortDetached=On(function(C){return C.compareDocumentPosition(K.createElement("fieldset"))&1}),On(function(C){return C.innerHTML="",C.firstChild.getAttribute("href")==="#"})||Dl("type|href|height|width",function(C,S,I){if(!I)return C.getAttribute(S,S.toLowerCase()==="type"?1:2)}),(!f.attributes||!On(function(C){return C.innerHTML="",C.firstChild.setAttribute("value",""),C.firstChild.getAttribute("value")===""}))&&Dl("value",function(C,S,I){if(!I&&C.nodeName.toLowerCase()==="input")return C.defaultValue}),On(function(C){return C.getAttribute("disabled")==null})||Dl(Al,function(C,S,I){var z;if(!I)return C[S]===!0?S.toLowerCase():(z=C.getAttributeNode(S))&&z.specified?z.value:null}),bt}(t);p.find=Me,p.expr=Me.selectors,p.expr[":"]=p.expr.pseudos,p.uniqueSort=p.unique=Me.uniqueSort,p.text=Me.getText,p.isXMLDoc=Me.isXML,p.contains=Me.contains,p.escapeSelector=Me.escape;var ne=function(s,u,f){for(var h=[],v=f!==void 0;(s=s[u])&&s.nodeType!==9;)if(s.nodeType===1){if(v&&p(s).is(f))break;h.push(s)}return h},Y=function(s,u){for(var f=[];s;s=s.nextSibling)s.nodeType===1&&s!==u&&f.push(s);return f},Ee=p.expr.match.needsContext;function De(s,u){return s.nodeName&&s.nodeName.toLowerCase()===u.toLowerCase()}var Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function nt(s,u,f){return O(u)?p.grep(s,function(h,v){return!!u.call(h,v,h)!==f}):u.nodeType?p.grep(s,function(h){return h===u!==f}):typeof u!="string"?p.grep(s,function(h){return d.call(u,h)>-1!==f}):p.filter(u,s,f)}p.filter=function(s,u,f){var h=u[0];return f&&(s=":not("+s+")"),u.length===1&&h.nodeType===1?p.find.matchesSelector(h,s)?[h]:[]:p.find.matches(s,p.grep(u,function(v){return v.nodeType===1}))},p.fn.extend({find:function(s){var u,f,h=this.length,v=this;if(typeof s!="string")return this.pushStack(p(s).filter(function(){for(u=0;u1?p.uniqueSort(f):f},filter:function(s){return this.pushStack(nt(this,s||[],!1))},not:function(s){return this.pushStack(nt(this,s||[],!0))},is:function(s){return!!nt(this,typeof s=="string"&&Ee.test(s)?p(s):s||[],!1).length}});var dt,Ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ie=p.fn.init=function(s,u,f){var h,v;if(!s)return this;if(f=f||dt,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?h=[null,s,null]:h=Ue.exec(s),h&&(h[1]||!u))if(h[1]){if(u=u instanceof p?u[0]:u,p.merge(this,p.parseHTML(h[1],u&&u.nodeType?u.ownerDocument||u:P,!0)),Te.test(h[1])&&p.isPlainObject(u))for(h in u)O(this[h])?this[h](u[h]):this.attr(h,u[h]);return this}else return v=P.getElementById(h[2]),v&&(this[0]=v,this.length=1),this;else return!u||u.jquery?(u||f).find(s):this.constructor(u).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(O(s))return f.ready!==void 0?f.ready(s):s(p)}return p.makeArray(s,this)};Ie.prototype=p.fn,dt=p(P);var be=/^(?:parents|prev(?:Until|All))/,ot={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({has:function(s){var u=p(s,this),f=u.length;return this.filter(function(){for(var h=0;h-1:f.nodeType===1&&p.find.matchesSelector(f,s))){y.push(f);break}}return this.pushStack(y.length>1?p.uniqueSort(y):y)},index:function(s){return s?typeof s=="string"?d.call(p(s),this[0]):d.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,u){return this.pushStack(p.uniqueSort(p.merge(this.get(),p(s,u))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function xt(s,u){for(;(s=s[u])&&s.nodeType!==1;);return s}p.each({parent:function(s){var u=s.parentNode;return u&&u.nodeType!==11?u:null},parents:function(s){return ne(s,"parentNode")},parentsUntil:function(s,u,f){return ne(s,"parentNode",f)},next:function(s){return xt(s,"nextSibling")},prev:function(s){return xt(s,"previousSibling")},nextAll:function(s){return ne(s,"nextSibling")},prevAll:function(s){return ne(s,"previousSibling")},nextUntil:function(s,u,f){return ne(s,"nextSibling",f)},prevUntil:function(s,u,f){return ne(s,"previousSibling",f)},siblings:function(s){return Y((s.parentNode||{}).firstChild,s)},children:function(s){return Y(s.firstChild)},contents:function(s){return s.contentDocument!=null&&r(s.contentDocument)?s.contentDocument:(De(s,"template")&&(s=s.content||s),p.merge([],s.childNodes))}},function(s,u){p.fn[s]=function(f,h){var v=p.map(this,u,f);return s.slice(-5)!=="Until"&&(h=f),h&&typeof h=="string"&&(v=p.filter(h,v)),this.length>1&&(ot[s]||p.uniqueSort(v),be.test(s)&&v.reverse()),this.pushStack(v)}});var at=/[^\x20\t\r\n\f]+/g;function we(s){var u={};return p.each(s.match(at)||[],function(f,h){u[h]=!0}),u}p.Callbacks=function(s){s=typeof s=="string"?we(s):p.extend({},s);var u,f,h,v,y=[],b=[],A=-1,E=function(){for(v=v||s.once,h=u=!0;b.length;A=-1)for(f=b.shift();++A-1;)y.splice(j,1),j<=A&&A--}),this},has:function($){return $?p.inArray($,y)>-1:y.length>0},empty:function(){return y&&(y=[]),this},disable:function(){return v=b=[],y=f="",this},disabled:function(){return!y},lock:function(){return v=b=[],!f&&!u&&(y=f=""),this},locked:function(){return!!v},fireWith:function($,ee){return v||(ee=ee||[],ee=[$,ee.slice?ee.slice():ee],b.push(ee),u||E()),this},fire:function(){return F.fireWith(this,arguments),this},fired:function(){return!!h}};return F};function he(s){return s}function ge(s){throw s}function ke(s,u,f,h){var v;try{s&&O(v=s.promise)?v.call(s).done(u).fail(f):s&&O(v=s.then)?v.call(s,u,f):u.apply(void 0,[s].slice(h))}catch(y){f.apply(void 0,[y])}}p.extend({Deferred:function(s){var u=[["notify","progress",p.Callbacks("memory"),p.Callbacks("memory"),2],["resolve","done",p.Callbacks("once memory"),p.Callbacks("once memory"),0,"resolved"],["reject","fail",p.Callbacks("once memory"),p.Callbacks("once memory"),1,"rejected"]],f="pending",h={state:function(){return f},always:function(){return v.done(arguments).fail(arguments),this},catch:function(y){return h.then(null,y)},pipe:function(){var y=arguments;return p.Deferred(function(b){p.each(u,function(A,E){var F=O(y[E[4]])&&y[E[4]];v[E[1]](function(){var $=F&&F.apply(this,arguments);$&&O($.promise)?$.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[E[0]+"With"](this,F?[$]:arguments)})}),y=null}).promise()},then:function(y,b,A){var E=0;function F($,ee,j,K){return function(){var Oe=this,Ye=arguments,Ae=function(){var Rt,yn;if(!($=E&&(j!==ge&&(Oe=void 0,Ye=[Rt]),ee.rejectWith(Oe,Ye))}};$?jt():(p.Deferred.getStackHook&&(jt.stackTrace=p.Deferred.getStackHook()),t.setTimeout(jt))}}return p.Deferred(function($){u[0][3].add(F(0,$,O(A)?A:he,$.notifyWith)),u[1][3].add(F(0,$,O(y)?y:he)),u[2][3].add(F(0,$,O(b)?b:ge))}).promise()},promise:function(y){return y!=null?p.extend(y,h):h}},v={};return p.each(u,function(y,b){var A=b[2],E=b[5];h[b[1]]=A.add,E&&A.add(function(){f=E},u[3-y][2].disable,u[3-y][3].disable,u[0][2].lock,u[0][3].lock),A.add(b[3].fire),v[b[0]]=function(){return v[b[0]+"With"](this===v?void 0:this,arguments),this},v[b[0]+"With"]=A.fireWith}),h.promise(v),s&&s.call(v,v),v},when:function(s){var u=arguments.length,f=u,h=Array(f),v=o.call(arguments),y=p.Deferred(),b=function(A){return function(E){h[A]=this,v[A]=arguments.length>1?o.call(arguments):E,--u||y.resolveWith(h,v)}};if(u<=1&&(ke(s,y.done(b(f)).resolve,y.reject,!u),y.state()==="pending"||O(v[f]&&v[f].then)))return y.then();for(;f--;)ke(v[f],b(f),y.reject);return y.promise()}});var _e=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;p.Deferred.exceptionHook=function(s,u){t.console&&t.console.warn&&s&&_e.test(s.name)&&t.console.warn("jQuery.Deferred exception: "+s.message,s.stack,u)},p.readyException=function(s){t.setTimeout(function(){throw s})};var Fe=p.Deferred();p.fn.ready=function(s){return Fe.then(s).catch(function(u){p.readyException(u)}),this},p.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--p.readyWait:p.isReady)||(p.isReady=!0,!(s!==!0&&--p.readyWait>0)&&Fe.resolveWith(P,[p]))}}),p.ready.then=Fe.then;function ft(){P.removeEventListener("DOMContentLoaded",ft),t.removeEventListener("load",ft),p.ready()}P.readyState==="complete"||P.readyState!=="loading"&&!P.documentElement.doScroll?t.setTimeout(p.ready):(P.addEventListener("DOMContentLoaded",ft),t.addEventListener("load",ft));var pt=function(s,u,f,h,v,y,b){var A=0,E=s.length,F=f==null;if(L(f)==="object"){v=!0;for(A in f)pt(s,u,A,f[A],!0,y,b)}else if(h!==void 0&&(v=!0,O(h)||(b=!0),F&&(b?(u.call(s,h),u=null):(F=u,u=function($,ee,j){return F.call(p($),j)})),u))for(;A1,null,!0)},removeData:function(s){return this.each(function(){V.remove(this,s)})}}),p.extend({queue:function(s,u,f){var h;if(s)return u=(u||"fx")+"queue",h=H.get(s,u),f&&(!h||Array.isArray(f)?h=H.access(s,u,p.makeArray(f)):h.push(f)),h||[]},dequeue:function(s,u){u=u||"fx";var f=p.queue(s,u),h=f.length,v=f.shift(),y=p._queueHooks(s,u),b=function(){p.dequeue(s,u)};v==="inprogress"&&(v=f.shift(),h--),v&&(u==="fx"&&f.unshift("inprogress"),delete y.stop,v.call(s,b,y)),!h&&y&&y.empty.fire()},_queueHooks:function(s,u){var f=u+"queueHooks";return H.get(s,f)||H.access(s,f,{empty:p.Callbacks("once memory").add(function(){H.remove(s,[u+"queue",f])})})}}),p.fn.extend({queue:function(s,u){var f=2;return typeof s!="string"&&(u=s,s="fx",f--),arguments.length\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=P.createDocumentFragment(),u=s.appendChild(P.createElement("div")),f=P.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),u.appendChild(f),k.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,u.innerHTML="",k.noCloneChecked=!!u.cloneNode(!0).lastChild.defaultValue,u.innerHTML="",k.option=!!u.lastChild})();var ye={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,k.option||(ye.optgroup=ye.option=[1,""]);function ze(s,u){var f;return typeof s.getElementsByTagName<"u"?f=s.getElementsByTagName(u||"*"):typeof s.querySelectorAll<"u"?f=s.querySelectorAll(u||"*"):f=[],u===void 0||u&&De(s,u)?p.merge([s],f):f}function et(s,u){for(var f=0,h=s.length;f-1){v&&v.push(y);continue}if(F=qe(y),b=ze(ee.appendChild(y),"script"),F&&et(b),f)for($=0;y=b[$++];)de.test(y.type||"")&&f.push(y)}return ee}var fi=/^([^.]*)(?:\.(.+)|)/;function di(){return!0}function un(){return!1}function fs(s,u){return s===_r()==(u==="focus")}function _r(){try{return P.activeElement}catch{}}function ni(s,u,f,h,v,y){var b,A;if(typeof u=="object"){typeof f!="string"&&(h=h||f,f=void 0);for(A in u)ni(s,A,f,h,u[A],y);return s}if(h==null&&v==null?(v=f,h=f=void 0):v==null&&(typeof f=="string"?(v=h,h=void 0):(v=h,h=f,f=void 0)),v===!1)v=un;else if(!v)return s;return y===1&&(b=v,v=function(E){return p().off(E),b.apply(this,arguments)},v.guid=b.guid||(b.guid=p.guid++)),s.each(function(){p.event.add(this,u,v,h,f)})}p.event={global:{},add:function(s,u,f,h,v){var y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae=H.get(s);if(W(s))for(f.handler&&(y=f,f=y.handler,v=y.selector),v&&p.find.matchesSelector(Le,v),f.guid||(f.guid=p.guid++),(E=Ae.events)||(E=Ae.events=Object.create(null)),(b=Ae.handle)||(b=Ae.handle=function(jt){return typeof p<"u"&&p.event.triggered!==jt.type?p.event.dispatch.apply(s,arguments):void 0}),u=(u||"").match(at)||[""],F=u.length;F--;)A=fi.exec(u[F])||[],K=Ye=A[1],Oe=(A[2]||"").split(".").sort(),K&&(ee=p.event.special[K]||{},K=(v?ee.delegateType:ee.bindType)||K,ee=p.event.special[K]||{},$=p.extend({type:K,origType:Ye,data:h,handler:f,guid:f.guid,selector:v,needsContext:v&&p.expr.match.needsContext.test(v),namespace:Oe.join(".")},y),(j=E[K])||(j=E[K]=[],j.delegateCount=0,(!ee.setup||ee.setup.call(s,h,Oe,b)===!1)&&s.addEventListener&&s.addEventListener(K,b)),ee.add&&(ee.add.call(s,$),$.handler.guid||($.handler.guid=f.guid)),v?j.splice(j.delegateCount++,0,$):j.push($),p.event.global[K]=!0)},remove:function(s,u,f,h,v){var y,b,A,E,F,$,ee,j,K,Oe,Ye,Ae=H.hasData(s)&&H.get(s);if(!(!Ae||!(E=Ae.events))){for(u=(u||"").match(at)||[""],F=u.length;F--;){if(A=fi.exec(u[F])||[],K=Ye=A[1],Oe=(A[2]||"").split(".").sort(),!K){for(K in E)p.event.remove(s,K+u[F],f,h,!0);continue}for(ee=p.event.special[K]||{},K=(h?ee.delegateType:ee.bindType)||K,j=E[K]||[],A=A[2]&&new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=j.length;y--;)$=j[y],(v||Ye===$.origType)&&(!f||f.guid===$.guid)&&(!A||A.test($.namespace))&&(!h||h===$.selector||h==="**"&&$.selector)&&(j.splice(y,1),$.selector&&j.delegateCount--,ee.remove&&ee.remove.call(s,$));b&&!j.length&&((!ee.teardown||ee.teardown.call(s,Oe,Ae.handle)===!1)&&p.removeEvent(s,K,Ae.handle),delete E[K])}p.isEmptyObject(E)&&H.remove(s,"handle events")}},dispatch:function(s){var u,f,h,v,y,b,A=new Array(arguments.length),E=p.event.fix(s),F=(H.get(this,"events")||Object.create(null))[E.type]||[],$=p.event.special[E.type]||{};for(A[0]=E,u=1;u=1)){for(;F!==this;F=F.parentNode||this)if(F.nodeType===1&&!(s.type==="click"&&F.disabled===!0)){for(y=[],b={},f=0;f-1:p.find(v,this,null,[F]).length),b[v]&&y.push(h);y.length&&A.push({elem:F,handlers:y})}}return F=this,E\s*$/g;function Kf(s,u){return De(s,"table")&&De(u.nodeType!==11?u:u.firstChild,"tr")&&p(s).children("tbody")[0]||s}function C_(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function w_(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function qf(s,u){var f,h,v,y,b,A,E;if(u.nodeType===1){if(H.hasData(s)&&(y=H.get(s),E=y.events,E)){H.remove(u,"handle events");for(v in E)for(f=0,h=E[v].length;f1&&typeof K=="string"&&!k.checkClone&&Sr.test(K))return s.each(function(Ye){var Ae=s.eq(Ye);Oe&&(u[0]=K.call(this,Ye,Ae.html())),kr(Ae,u,f,h)});if(ee&&(v=en(u,s[0].ownerDocument,!1,s,h),y=v.firstChild,v.childNodes.length===1&&(v=y),y||h)){for(b=p.map(ze(v,"script"),C_),A=b.length;$0&&et(b,!E&&ze(s,"script")),A},cleanData:function(s){for(var u,f,h,v=p.event.special,y=0;(f=s[y])!==void 0;y++)if(W(f)){if(u=f[H.expando]){if(u.events)for(h in u.events)v[h]?p.event.remove(f,h):p.removeEvent(f,h,u.handle);f[H.expando]=void 0}f[V.expando]&&(f[V.expando]=void 0)}}}),p.fn.extend({detach:function(s){return zf(this,s,!0)},remove:function(s){return zf(this,s)},text:function(s){return pt(this,function(u){return u===void 0?p.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=u)})},null,s,arguments.length)},append:function(){return kr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=Kf(this,s);u.appendChild(s)}})},prepend:function(){return kr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var u=Kf(this,s);u.insertBefore(s,u.firstChild)}})},before:function(){return kr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return kr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,u=0;(s=this[u])!=null;u++)s.nodeType===1&&(p.cleanData(ze(s,!1)),s.textContent="");return this},clone:function(s,u){return s=s??!1,u=u??s,this.map(function(){return p.clone(this,s,u)})},html:function(s){return pt(this,function(u){var f=this[0]||{},h=0,v=this.length;if(u===void 0&&f.nodeType===1)return f.innerHTML;if(typeof u=="string"&&!ds.test(u)&&!ye[(q.exec(u)||["",""])[1].toLowerCase()]){u=p.htmlPrefilter(u);try{for(;h=0&&(E+=Math.max(0,Math.ceil(s["offset"+u[0].toUpperCase()+u.slice(1)]-y-E-A-.5))||0),E}function nd(s,u,f){var h=Lo(s),v=!k.boxSizingReliable()||f,y=v&&p.css(s,"boxSizing",!1,h)==="border-box",b=y,A=ps(s,u,h),E="offset"+u[0].toUpperCase()+u.slice(1);if(ml.test(A)){if(!f)return A;A="auto"}return(!k.boxSizingReliable()&&y||!k.reliableTrDimensions()&&De(s,"tr")||A==="auto"||!parseFloat(A)&&p.css(s,"display",!1,h)==="inline")&&s.getClientRects().length&&(y=p.css(s,"boxSizing",!1,h)==="border-box",b=E in s,b&&(A=s[E])),A=parseFloat(A)||0,A+bl(s,u,f||(y?"border":"content"),b,h,A)+"px"}p.extend({cssHooks:{opacity:{get:function(s,u){if(u){var f=ps(s,"opacity");return f===""?"1":f}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(s,u,f,h){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var v,y,b,A=D(u),E=vl.test(u),F=s.style;if(E||(u=yl(A)),b=p.cssHooks[u]||p.cssHooks[A],f!==void 0){if(y=typeof f,y==="string"&&(v=me.exec(f))&&v[1]&&(f=Et(s,u,v),y="number"),f==null||f!==f)return;y==="number"&&!E&&(f+=v&&v[3]||(p.cssNumber[A]?"":"px")),!k.clearCloneStyle&&f===""&&u.indexOf("background")===0&&(F[u]="inherit"),(!b||!("set"in b)||(f=b.set(s,f,h))!==void 0)&&(E?F.setProperty(u,f):F[u]=f)}else return b&&"get"in b&&(v=b.get(s,!1,h))!==void 0?v:F[u]}},css:function(s,u,f,h){var v,y,b,A=D(u),E=vl.test(u);return E||(u=yl(A)),b=p.cssHooks[u]||p.cssHooks[A],b&&"get"in b&&(v=b.get(s,!0,f)),v===void 0&&(v=ps(s,u,h)),v==="normal"&&u in ed&&(v=ed[u]),f===""||f?(y=parseFloat(v),f===!0||isFinite(y)?y||0:v):v}}),p.each(["height","width"],function(s,u){p.cssHooks[u]={get:function(f,h,v){if(h)return k_.test(p.css(f,"display"))&&(!f.getClientRects().length||!f.getBoundingClientRect().width)?Xf(f,x_,function(){return nd(f,u,v)}):nd(f,u,v)},set:function(f,h,v){var y,b=Lo(f),A=!k.scrollboxSize()&&b.position==="absolute",E=A||v,F=E&&p.css(f,"boxSizing",!1,b)==="border-box",$=v?bl(f,u,v,F,b):0;return F&&A&&($-=Math.ceil(f["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(b[u])-bl(f,u,"border",!1,b)-.5)),$&&(y=me.exec(h))&&(y[3]||"px")!=="px"&&(f.style[u]=h,h=p.css(f,u)),td(f,h,$)}}}),p.cssHooks.marginLeft=Gf(k.reliableMarginLeft,function(s,u){if(u)return(parseFloat(ps(s,"marginLeft"))||s.getBoundingClientRect().left-Xf(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),p.each({margin:"",padding:"",border:"Width"},function(s,u){p.cssHooks[s+u]={expand:function(f){for(var h=0,v={},y=typeof f=="string"?f.split(" "):[f];h<4;h++)v[s+Ce[h]+u]=y[h]||y[h-2]||y[0];return v}},s!=="margin"&&(p.cssHooks[s+u].set=td)}),p.fn.extend({css:function(s,u){return pt(this,function(f,h,v){var y,b,A={},E=0;if(Array.isArray(h)){for(y=Lo(f),b=h.length;E1)}});function cn(s,u,f,h,v){return new cn.prototype.init(s,u,f,h,v)}p.Tween=cn,cn.prototype={constructor:cn,init:function(s,u,f,h,v,y){this.elem=s,this.prop=f,this.easing=v||p.easing._default,this.options=u,this.start=this.now=this.cur(),this.end=h,this.unit=y||(p.cssNumber[f]?"":"px")},cur:function(){var s=cn.propHooks[this.prop];return s&&s.get?s.get(this):cn.propHooks._default.get(this)},run:function(s){var u,f=cn.propHooks[this.prop];return this.options.duration?this.pos=u=p.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=u=s,this.now=(this.end-this.start)*u+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):cn.propHooks._default.set(this),this}},cn.prototype.init.prototype=cn.prototype,cn.propHooks={_default:{get:function(s){var u;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(u=p.css(s.elem,s.prop,""),!u||u==="auto"?0:u)},set:function(s){p.fx.step[s.prop]?p.fx.step[s.prop](s):s.elem.nodeType===1&&(p.cssHooks[s.prop]||s.elem.style[yl(s.prop)]!=null)?p.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},cn.propHooks.scrollTop=cn.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},p.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},p.fx=cn.prototype.init,p.fx.step={};var xr,Oo,A_=/^(?:toggle|show|hide)$/,L_=/queueHooks$/;function Cl(){Oo&&(P.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Cl):t.setTimeout(Cl,p.fx.interval),p.fx.tick())}function id(){return t.setTimeout(function(){xr=void 0}),xr=Date.now()}function Do(s,u){var f,h=0,v={height:s};for(u=u?1:0;h<4;h+=2-u)f=Ce[h],v["margin"+f]=v["padding"+f]=s;return u&&(v.opacity=v.width=s),v}function rd(s,u,f){for(var h,v=(jn.tweeners[u]||[]).concat(jn.tweeners["*"]),y=0,b=v.length;y1)},removeAttr:function(s){return this.each(function(){p.removeAttr(this,s)})}}),p.extend({attr:function(s,u,f){var h,v,y=s.nodeType;if(!(y===3||y===8||y===2)){if(typeof s.getAttribute>"u")return p.prop(s,u,f);if((y!==1||!p.isXMLDoc(s))&&(v=p.attrHooks[u.toLowerCase()]||(p.expr.match.bool.test(u)?sd:void 0)),f!==void 0){if(f===null){p.removeAttr(s,u);return}return v&&"set"in v&&(h=v.set(s,f,u))!==void 0?h:(s.setAttribute(u,f+""),f)}return v&&"get"in v&&(h=v.get(s,u))!==null?h:(h=p.find.attr(s,u),h??void 0)}},attrHooks:{type:{set:function(s,u){if(!k.radioValue&&u==="radio"&&De(s,"input")){var f=s.value;return s.setAttribute("type",u),f&&(s.value=f),u}}}},removeAttr:function(s,u){var f,h=0,v=u&&u.match(at);if(v&&s.nodeType===1)for(;f=v[h++];)s.removeAttribute(f)}}),sd={set:function(s,u,f){return u===!1?p.removeAttr(s,f):s.setAttribute(f,f),f}},p.each(p.expr.match.bool.source.match(/\w+/g),function(s,u){var f=hs[u]||p.find.attr;hs[u]=function(h,v,y){var b,A,E=v.toLowerCase();return y||(A=hs[E],hs[E]=b,b=f(h,v,y)!=null?E:null,hs[E]=A),b}});var P_=/^(?:input|select|textarea|button)$/i,I_=/^(?:a|area)$/i;p.fn.extend({prop:function(s,u){return pt(this,p.prop,s,u,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[p.propFix[s]||s]})}}),p.extend({prop:function(s,u,f){var h,v,y=s.nodeType;if(!(y===3||y===8||y===2))return(y!==1||!p.isXMLDoc(s))&&(u=p.propFix[u]||u,v=p.propHooks[u]),f!==void 0?v&&"set"in v&&(h=v.set(s,f,u))!==void 0?h:s[u]=f:v&&"get"in v&&(h=v.get(s,u))!==null?h:s[u]},propHooks:{tabIndex:{get:function(s){var u=p.find.attr(s,"tabindex");return u?parseInt(u,10):P_.test(s.nodeName)||I_.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k.optSelected||(p.propHooks.selected={get:function(s){var u=s.parentNode;return u&&u.parentNode&&u.parentNode.selectedIndex,null},set:function(s){var u=s.parentNode;u&&(u.selectedIndex,u.parentNode&&u.parentNode.selectedIndex)}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this});function qi(s){var u=s.match(at)||[];return u.join(" ")}function zi(s){return s.getAttribute&&s.getAttribute("class")||""}function wl(s){return Array.isArray(s)?s:typeof s=="string"?s.match(at)||[]:[]}p.fn.extend({addClass:function(s){var u,f,h,v,y,b;return O(s)?this.each(function(A){p(this).addClass(s.call(this,A,zi(this)))}):(u=wl(s),u.length?this.each(function(){if(h=zi(this),f=this.nodeType===1&&" "+qi(h)+" ",f){for(y=0;y-1;)f=f.replace(" "+v+" "," ");b=qi(f),h!==b&&this.setAttribute("class",b)}}):this):this.attr("class","")},toggleClass:function(s,u){var f,h,v,y,b=typeof s,A=b==="string"||Array.isArray(s);return O(s)?this.each(function(E){p(this).toggleClass(s.call(this,E,zi(this),u),u)}):typeof u=="boolean"&&A?u?this.addClass(s):this.removeClass(s):(f=wl(s),this.each(function(){if(A)for(y=p(this),v=0;v-1)return!0;return!1}});var N_=/\r/g;p.fn.extend({val:function(s){var u,f,h,v=this[0];return arguments.length?(h=O(s),this.each(function(y){var b;this.nodeType===1&&(h?b=s.call(this,y,p(this).val()):b=s,b==null?b="":typeof b=="number"?b+="":Array.isArray(b)&&(b=p.map(b,function(A){return A==null?"":A+""})),u=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()],(!u||!("set"in u)||u.set(this,b,"value")===void 0)&&(this.value=b))})):v?(u=p.valHooks[v.type]||p.valHooks[v.nodeName.toLowerCase()],u&&"get"in u&&(f=u.get(v,"value"))!==void 0?f:(f=v.value,typeof f=="string"?f.replace(N_,""):f??"")):void 0}}),p.extend({valHooks:{option:{get:function(s){var u=p.find.attr(s,"value");return u??qi(p.text(s))}},select:{get:function(s){var u,f,h,v=s.options,y=s.selectedIndex,b=s.type==="select-one",A=b?null:[],E=b?y+1:v.length;for(y<0?h=E:h=b?y:0;h-1)&&(f=!0);return f||(s.selectedIndex=-1),y}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(s,u){if(Array.isArray(u))return s.checked=p.inArray(p(s).val(),u)>-1}},k.checkOn||(p.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})}),k.focusin="onfocusin"in t;var od=/^(?:focusinfocus|focusoutblur)$/,ad=function(s){s.stopPropagation()};p.extend(p.event,{trigger:function(s,u,f,h){var v,y,b,A,E,F,$,ee,j=[f||P],K=w.call(s,"type")?s.type:s,Oe=w.call(s,"namespace")?s.namespace.split("."):[];if(y=ee=b=f=f||P,!(f.nodeType===3||f.nodeType===8)&&!od.test(K+p.event.triggered)&&(K.indexOf(".")>-1&&(Oe=K.split("."),K=Oe.shift(),Oe.sort()),E=K.indexOf(":")<0&&"on"+K,s=s[p.expando]?s:new p.Event(K,typeof s=="object"&&s),s.isTrigger=h?2:3,s.namespace=Oe.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Oe.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=f),u=u==null?[s]:p.makeArray(u,[s]),$=p.event.special[K]||{},!(!h&&$.trigger&&$.trigger.apply(f,u)===!1))){if(!h&&!$.noBubble&&!U(f)){for(A=$.delegateType||K,od.test(A+K)||(y=y.parentNode);y;y=y.parentNode)j.push(y),b=y;b===(f.ownerDocument||P)&&j.push(b.defaultView||b.parentWindow||t)}for(v=0;(y=j[v++])&&!s.isPropagationStopped();)ee=y,s.type=v>1?A:$.bindType||K,F=(H.get(y,"events")||Object.create(null))[s.type]&&H.get(y,"handle"),F&&F.apply(y,u),F=E&&y[E],F&&F.apply&&W(y)&&(s.result=F.apply(y,u),s.result===!1&&s.preventDefault());return s.type=K,!h&&!s.isDefaultPrevented()&&(!$._default||$._default.apply(j.pop(),u)===!1)&&W(f)&&E&&O(f[K])&&!U(f)&&(b=f[E],b&&(f[E]=null),p.event.triggered=K,s.isPropagationStopped()&&ee.addEventListener(K,ad),f[K](),s.isPropagationStopped()&&ee.removeEventListener(K,ad),p.event.triggered=void 0,b&&(f[E]=b)),s.result}},simulate:function(s,u,f){var h=p.extend(new p.Event,f,{type:s,isSimulated:!0});p.event.trigger(h,null,u)}}),p.fn.extend({trigger:function(s,u){return this.each(function(){p.event.trigger(s,u,this)})},triggerHandler:function(s,u){var f=this[0];if(f)return p.event.trigger(s,u,f,!0)}}),k.focusin||p.each({focus:"focusin",blur:"focusout"},function(s,u){var f=function(h){p.event.simulate(u,h.target,p.event.fix(h))};p.event.special[u]={setup:function(){var h=this.ownerDocument||this.document||this,v=H.access(h,u);v||h.addEventListener(s,f,!0),H.access(h,u,(v||0)+1)},teardown:function(){var h=this.ownerDocument||this.document||this,v=H.access(h,u)-1;v?H.access(h,u,v):(h.removeEventListener(s,f,!0),H.remove(h,u))}}});var gs=t.location,ld={guid:Date.now()},Tl=/\?/;p.parseXML=function(s){var u,f;if(!s||typeof s!="string")return null;try{u=new t.DOMParser().parseFromString(s,"text/xml")}catch{}return f=u&&u.getElementsByTagName("parsererror")[0],(!u||f)&&p.error("Invalid XML: "+(f?p.map(f.childNodes,function(h){return h.textContent}).join(` +`):s)),u};var R_=/\[\]$/,ud=/\r?\n/g,M_=/^(?:submit|button|image|reset|file)$/i,F_=/^(?:input|select|textarea|keygen)/i;function _l(s,u,f,h){var v;if(Array.isArray(u))p.each(u,function(y,b){f||R_.test(s)?h(s,b):_l(s+"["+(typeof b=="object"&&b!=null?y:"")+"]",b,f,h)});else if(!f&&L(u)==="object")for(v in u)_l(s+"["+v+"]",u[v],f,h);else h(s,u)}p.param=function(s,u){var f,h=[],v=function(y,b){var A=O(b)?b():b;h[h.length]=encodeURIComponent(y)+"="+encodeURIComponent(A??"")};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!p.isPlainObject(s))p.each(s,function(){v(this.name,this.value)});else for(f in s)_l(f,s[f],u,v);return h.join("&")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=p.prop(this,"elements");return s?p.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!p(this).is(":disabled")&&F_.test(this.nodeName)&&!M_.test(s)&&(this.checked||!vn.test(s))}).map(function(s,u){var f=p(this).val();return f==null?null:Array.isArray(f)?p.map(f,function(h){return{name:u.name,value:h.replace(ud,`\r `)}}):{name:u.name,value:f.replace(ud,`\r -`)}}).get()}});var F_=/%20/g,H_=/#.*$/,B_=/([?&])_=[^&]*/,j_=/^(.*?):[ \t]*([^\r\n]*)$/mg,$_=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,U_=/^(?:GET|HEAD)$/,W_=/^\/\//,cd={},El={},fd="*/".concat("*"),Sl=P.createElement("a");Sl.href=gs.href;function dd(s){return function(u,f){typeof u!="string"&&(f=u,u="*");var h,v=0,y=u.toLowerCase().match(at)||[];if(O(f))for(;h=y[v++];)h[0]==="+"?(h=h.slice(1)||"*",(s[h]=s[h]||[]).unshift(f)):(s[h]=s[h]||[]).push(f)}}function pd(s,u,f,h){var v={},y=s===El;function b(A){var E;return v[A]=!0,p.each(s[A]||[],function(F,$){var ee=$(u,f,h);if(typeof ee=="string"&&!y&&!v[ee])return u.dataTypes.unshift(ee),b(ee),!1;if(y)return!(E=ee)}),E}return b(u.dataTypes[0])||!v["*"]&&b("*")}function kl(s,u){var f,h,v=p.ajaxSettings.flatOptions||{};for(f in u)u[f]!==void 0&&((v[f]?s:h||(h={}))[f]=u[f]);return h&&p.extend(!0,s,h),s}function V_(s,u,f){for(var h,v,y,b,A=s.contents,E=s.dataTypes;E[0]==="*";)E.shift(),h===void 0&&(h=s.mimeType||u.getResponseHeader("Content-Type"));if(h){for(v in A)if(A[v]&&A[v].test(h)){E.unshift(v);break}}if(E[0]in f)y=E[0];else{for(v in f){if(!E[0]||s.converters[v+" "+E[0]]){y=v;break}b||(b=v)}y=y||b}if(y)return y!==E[0]&&E.unshift(y),f[y]}function K_(s,u,f,h){var v,y,b,A,E,F={},$=s.dataTypes.slice();if($[1])for(b in s.converters)F[b.toLowerCase()]=s.converters[b];for(y=$.shift();y;)if(s.responseFields[y]&&(f[s.responseFields[y]]=u),!E&&h&&s.dataFilter&&(u=s.dataFilter(u,s.dataType)),E=y,y=$.shift(),y){if(y==="*")y=E;else if(E!=="*"&&E!==y){if(b=F[E+" "+y]||F["* "+y],!b){for(v in F)if(A=v.split(" "),A[1]===y&&(b=F[E+" "+A[0]]||F["* "+A[0]],b)){b===!0?b=F[v]:F[v]!==!0&&(y=A[0],$.unshift(A[1]));break}}if(b!==!0)if(b&&s.throws)u=b(u);else try{u=b(u)}catch(ee){return{state:"parsererror",error:b?ee:"No conversion from "+E+" to "+y}}}}return{state:"success",data:u}}p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gs.href,type:"GET",isLocal:$_.test(gs.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,u){return u?kl(kl(s,p.ajaxSettings),u):kl(p.ajaxSettings,s)},ajaxPrefilter:dd(cd),ajaxTransport:dd(El),ajax:function(s,u){typeof s=="object"&&(u=s,s=void 0),u=u||{};var f,h,v,y,b,A,E,F,$,ee,j=p.ajaxSetup({},u),K=j.context||j,Oe=j.context&&(K.nodeType||K.jquery)?p(K):p.event,Ye=p.Deferred(),Ae=p.Callbacks("once memory"),jt=j.statusCode||{},Rt={},yn={},yt="canceled",Xe={readyState:0,getResponseHeader:function(ut){var Dt;if(E){if(!y)for(y={};Dt=j_.exec(v);)y[Dt[1].toLowerCase()+" "]=(y[Dt[1].toLowerCase()+" "]||[]).concat(Dt[2]);Dt=y[ut.toLowerCase()+" "]}return Dt==null?null:Dt.join(", ")},getAllResponseHeaders:function(){return E?v:null},setRequestHeader:function(ut,Dt){return E==null&&(ut=yn[ut.toLowerCase()]=yn[ut.toLowerCase()]||ut,Rt[ut]=Dt),this},overrideMimeType:function(ut){return E==null&&(j.mimeType=ut),this},statusCode:function(ut){var Dt;if(ut)if(E)Xe.always(ut[Xe.status]);else for(Dt in ut)jt[Dt]=[jt[Dt],ut[Dt]];return this},abort:function(ut){var Dt=ut||yt;return f&&f.abort(Dt),fn(0,Dt),this}};if(Ye.promise(Xe),j.url=((s||j.url||gs.href)+"").replace(W_,gs.protocol+"//"),j.type=u.method||u.type||j.method||j.type,j.dataTypes=(j.dataType||"*").toLowerCase().match(at)||[""],j.crossDomain==null){A=P.createElement("a");try{A.href=j.url,A.href=A.href,j.crossDomain=Sl.protocol+"//"+Sl.host!=A.protocol+"//"+A.host}catch{j.crossDomain=!0}}if(j.data&&j.processData&&typeof j.data!="string"&&(j.data=p.param(j.data,j.traditional)),pd(cd,j,u,Xe),E)return Xe;F=p.event&&j.global,F&&p.active++===0&&p.event.trigger("ajaxStart"),j.type=j.type.toUpperCase(),j.hasContent=!U_.test(j.type),h=j.url.replace(H_,""),j.hasContent?j.data&&j.processData&&(j.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(j.data=j.data.replace(F_,"+")):(ee=j.url.slice(h.length),j.data&&(j.processData||typeof j.data=="string")&&(h+=(Tl.test(h)?"&":"?")+j.data,delete j.data),j.cache===!1&&(h=h.replace(B_,"$1"),ee=(Tl.test(h)?"&":"?")+"_="+ld.guid+++ee),j.url=h+ee),j.ifModified&&(p.lastModified[h]&&Xe.setRequestHeader("If-Modified-Since",p.lastModified[h]),p.etag[h]&&Xe.setRequestHeader("If-None-Match",p.etag[h])),(j.data&&j.hasContent&&j.contentType!==!1||u.contentType)&&Xe.setRequestHeader("Content-Type",j.contentType),Xe.setRequestHeader("Accept",j.dataTypes[0]&&j.accepts[j.dataTypes[0]]?j.accepts[j.dataTypes[0]]+(j.dataTypes[0]!=="*"?", "+fd+"; q=0.01":""):j.accepts["*"]);for($ in j.headers)Xe.setRequestHeader($,j.headers[$]);if(j.beforeSend&&(j.beforeSend.call(K,Xe,j)===!1||E))return Xe.abort();if(yt="abort",Ae.add(j.complete),Xe.done(j.success),Xe.fail(j.error),f=pd(El,j,u,Xe),!f)fn(-1,"No Transport");else{if(Xe.readyState=1,F&&Oe.trigger("ajaxSend",[Xe,j]),E)return Xe;j.async&&j.timeout>0&&(b=t.setTimeout(function(){Xe.abort("timeout")},j.timeout));try{E=!1,f.send(Rt,fn)}catch(ut){if(E)throw ut;fn(-1,ut)}}function fn(ut,Dt,vs,Po){var bn,Xi,Yi,dn,ki,Ln=Dt;E||(E=!0,b&&t.clearTimeout(b),f=void 0,v=Po||"",Xe.readyState=ut>0?4:0,bn=ut>=200&&ut<300||ut===304,vs&&(dn=V_(j,Xe,vs)),!bn&&p.inArray("script",j.dataTypes)>-1&&p.inArray("json",j.dataTypes)<0&&(j.converters["text script"]=function(){}),dn=K_(j,dn,Xe,bn),bn?(j.ifModified&&(ki=Xe.getResponseHeader("Last-Modified"),ki&&(p.lastModified[h]=ki),ki=Xe.getResponseHeader("etag"),ki&&(p.etag[h]=ki)),ut===204||j.type==="HEAD"?Ln="nocontent":ut===304?Ln="notmodified":(Ln=dn.state,Xi=dn.data,Yi=dn.error,bn=!Yi)):(Yi=Ln,(ut||!Ln)&&(Ln="error",ut<0&&(ut=0))),Xe.status=ut,Xe.statusText=(Dt||Ln)+"",bn?Ye.resolveWith(K,[Xi,Ln,Xe]):Ye.rejectWith(K,[Xe,Ln,Yi]),Xe.statusCode(jt),jt=void 0,F&&Oe.trigger(bn?"ajaxSuccess":"ajaxError",[Xe,j,bn?Xi:Yi]),Ae.fireWith(K,[Xe,Ln]),F&&(Oe.trigger("ajaxComplete",[Xe,j]),--p.active||p.event.trigger("ajaxStop")))}return Xe},getJSON:function(s,u,f){return p.get(s,u,f,"json")},getScript:function(s,u){return p.get(s,void 0,u,"script")}}),p.each(["get","post"],function(s,u){p[u]=function(f,h,v,y){return O(h)&&(y=y||v,v=h,h=void 0),p.ajax(p.extend({url:f,type:u,dataType:y,data:h,success:v},p.isPlainObject(f)&&f))}}),p.ajaxPrefilter(function(s){var u;for(u in s.headers)u.toLowerCase()==="content-type"&&(s.contentType=s.headers[u]||"")}),p._evalUrl=function(s,u,f){return p.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(h){p.globalEval(h,u,f)}})},p.fn.extend({wrapAll:function(s){var u;return this[0]&&(O(s)&&(s=s.call(this[0])),u=p(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&u.insertBefore(this[0]),u.map(function(){for(var f=this;f.firstElementChild;)f=f.firstElementChild;return f}).append(this)),this},wrapInner:function(s){return O(s)?this.each(function(u){p(this).wrapInner(s.call(this,u))}):this.each(function(){var u=p(this),f=u.contents();f.length?f.wrapAll(s):u.append(s)})},wrap:function(s){var u=O(s);return this.each(function(f){p(this).wrapAll(u?s.call(this,f):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){p(this).replaceWith(this.childNodes)}),this}}),p.expr.pseudos.hidden=function(s){return!p.expr.pseudos.visible(s)},p.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},p.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var q_={0:200,1223:204},ms=p.ajaxSettings.xhr();k.cors=!!ms&&"withCredentials"in ms,k.ajax=ms=!!ms,p.ajaxTransport(function(s){var u,f;if(k.cors||ms&&!s.crossDomain)return{send:function(h,v){var y,b=s.xhr();if(b.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(y in s.xhrFields)b[y]=s.xhrFields[y];s.mimeType&&b.overrideMimeType&&b.overrideMimeType(s.mimeType),!s.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");for(y in h)b.setRequestHeader(y,h[y]);u=function(A){return function(){u&&(u=f=b.onload=b.onerror=b.onabort=b.ontimeout=b.onreadystatechange=null,A==="abort"?b.abort():A==="error"?typeof b.status!="number"?v(0,"error"):v(b.status,b.statusText):v(q_[b.status]||b.status,b.statusText,(b.responseType||"text")!=="text"||typeof b.responseText!="string"?{binary:b.response}:{text:b.responseText},b.getAllResponseHeaders()))}},b.onload=u(),f=b.onerror=b.ontimeout=u("error"),b.onabort!==void 0?b.onabort=f:b.onreadystatechange=function(){b.readyState===4&&t.setTimeout(function(){u&&f()})},u=u("abort");try{b.send(s.hasContent&&s.data||null)}catch(A){if(u)throw A}},abort:function(){u&&u()}}}),p.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return p.globalEval(s),s}}}),p.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),p.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var u,f;return{send:function(h,v){u=p("","import common from \"@/utils/common\";\n\nexport default {\n data() {\n return {\n autocompleteResults: null,\n\n showAppendList: false,\n appendListStyle: {\n top: 0,\n left: 0,\n },\n appendListSelected: null,\n appendListChildSelected: null,\n appendList: [\n {\n \"type\": \"wrap\",\n \"name\": \"line_break_character\",\n \"icon\": \"wrap\",\n \"children\": []\n },\n /*{\n \"type\": \"lora\",\n \"name\": \"Lora\",\n \"children\": []\n },*/\n /*{\n \"type\": \"favorite\",\n \"name\": \"favorite\",\n \"icon\": \"favorite\",\n \"children\": []\n },\n {\n \"type\": \"history\",\n \"name\": \"history\",\n \"icon\": \"history\",\n \"children\": []\n }*/\n ],\n }\n },\n computed: {\n appendListChildItemTags() {\n if (this.appendListSelected === null) return []\n if (this.appendListChildSelected === null) return []\n if (this.appendList[this.appendListSelected].type !== 'favorite' && this.appendList[this.appendListSelected].type !== 'history') return []\n return this.appendList[this.appendListSelected].children[this.appendListChildSelected].tags\n }\n },\n mounted() {\n let temp = [\n {\n 'name': 'txt2img',\n 'type': 'prompt',\n 'key': 'txt2img',\n 'neg': false,\n },\n {\n 'name': 'txt2img',\n 'type': 'negative_prompt',\n 'key': 'txt2img_neg',\n 'neg': true,\n },\n {\n 'name': 'img2img',\n 'type': 'prompt',\n 'key': 'img2img',\n 'neg': false,\n },\n {\n 'name': 'img2img',\n 'type': 'negative_prompt',\n 'key': 'img2img_neg',\n 'neg': true,\n },\n ]\n /*for (let i = 0; i < temp.length; i++) {\n if (temp[i].key === this.favoriteKey) {\n // 排到第一位\n let item = temp[i]\n temp.splice(i, 1)\n temp.unshift(item)\n break\n }\n }*/\n temp.forEach(item => {\n if (item.neg !== this.neg) return\n this.appendList.push({\n 'type': \"favorite\",\n 'name': [\"favorite\", item.name/*, item.type*/],\n \"icon\": \"favorite\",\n \"key\": item.key,\n 'dataKey': 'favorite.' + item.key,\n \"children\": [],\n })\n })\n /*temp.forEach(item => {\n this.appendList.push({\n 'type': \"history\",\n 'name': [\"history\", item.name, item.type],\n \"icon\": \"history\",\n \"key\": item.key,\n 'dataKey': 'history.' + item.key,\n \"children\": [],\n })\n })*/\n },\n methods: {\n onUnfoldClick() {\n if (this.hidePanel) {\n this.$nextTick(() => {\n this.onResize()\n })\n }\n this.$emit(\"update:hidePanel\", !this.hidePanel)\n },\n onTranslatesToLocalClick() {\n if (this.tags.length === 0) return // 没有关键词需要翻译\n if (this.loading['all_local']) {\n // 正在翻译中,取消翻译\n this.cancelMultiTranslate = true\n this.loading['all_local'] = false\n return\n }\n this.loading['all_local'] = true\n let tagIndexes = []\n for (const index in this.tags) {\n if (this.tags[index].type && this.tags[index].type !== 'text') continue\n tagIndexes.push(index)\n }\n return this.translates(tagIndexes, true, true).finally(() => {\n this.loading['all_local'] = false\n this.updateTags()\n })\n },\n onTranslatesToEnglishClick() {\n if (this.tags.length === 0) return // 没有关键词需要翻译\n if (this.loading['all_en']) {\n // 正在翻译中,取消翻译\n this.cancelMultiTranslate = true\n this.loading['all_en'] = false\n return\n }\n this.loading['all_en'] = true\n let tagIndexes = []\n for (const index in this.tags) {\n if (this.tags[index].type && this.tags[index].type !== 'text') continue\n tagIndexes.push(index)\n }\n this.translates(tagIndexes, false, true).finally(() => {\n this.loading['all_en'] = false\n this.updateTags()\n })\n },\n onCopyAllTagsClick() {\n this.copy(this.prompt)\n },\n onDeleteAllTagsClick() {\n if (!confirm(this.getLang('delete_all_keywords_confirm'))) return\n this.tags = []\n this.updateTags()\n },\n appendListItemName(item) {\n let names = []\n if (typeof item.name === \"object\") {\n for (let name of item.name) {\n names.push(this.getLang(name))\n }\n } else {\n names = [this.getLang(item.name)]\n }\n return names.join(' / ')\n },\n onAppendTagFocus(e) {\n if (this.$refs.promptTagAppend.value === '' || this.$refs.promptTagAppend.value.trim() === '') {\n this.appendListStyle = {\n top: e.target.offsetTop + e.target.offsetHeight + 'px',\n left: e.target.offsetLeft + 'px',\n }\n this.appendListSelected = null\n this.appendListChildSelected = null\n this.showAppendList = true\n let dataKeys = []\n this.appendList.forEach(item => {\n if (typeof item['dataKey'] === 'string') {\n dataKeys.push(item['dataKey'])\n }\n })\n this.gradioAPI.getDatas(dataKeys).then(res => {\n this.appendList.forEach(item => {\n if (typeof item['dataKey'] !== 'string') return\n item.children = res[item['dataKey']] || []\n // 反转\n item.children.reverse()\n })\n })\n /*this.gradioAPI.getFavorites(this.favoriteKey).then(res => {\n this.appendList.forEach(item => {\n if (item.type !== 'favorite') return\n item.children = res\n })\n })\n this.gradioAPI.getHistories(this.historyKey).then(res => {\n this.appendList.forEach(item => {\n if (item.type !== 'history') return\n item.children = res\n })\n })*/\n }\n this._setTextareaFocus()\n },\n onAppendTagBlur(e) {\n setTimeout(() => {\n this.showAppendList = false\n }, 300)\n },\n selectAppendList(down = true) {\n if (this.appendList.length === 0) return\n if (this.appendListSelected === null) {\n this.appendListSelected = 0\n } else {\n if (down) {\n this.appendListSelected++\n if (this.appendListSelected >= this.appendList.length) {\n this.appendListSelected = 0\n }\n } else {\n this.appendListSelected--\n if (this.appendListSelected < 0) {\n this.appendListSelected = this.appendList.length - 1\n }\n }\n }\n this.appendListChildSelected = null\n },\n selectAppendListChild(down = true) {\n if (this.appendList.length === 0) return\n if (this.appendListSelected === null) return\n if (this.appendList[this.appendListSelected].children.length === 0) return\n if (this.appendListChildSelected === null) {\n this.appendListChildSelected = 0\n } else {\n if (down) {\n this.appendListChildSelected++\n if (this.appendListChildSelected >= this.appendList[this.appendListSelected].children.length) {\n this.appendListChildSelected = 0\n }\n } else {\n this.appendListChildSelected--\n if (this.appendListChildSelected < 0) {\n this.appendListChildSelected = this.appendList[this.appendListSelected].children.length - 1\n }\n }\n }\n this.scrollAppendListChild()\n },\n scrollAppendListChild() {\n if (this.appendListSelected === null) return\n if (this.appendListChildSelected === 0 || this.appendListChildSelected === null) {\n this.$refs.promptAppendListChildren[this.appendListSelected].scrollTop = 0\n } else {\n this.$refs.promptAppendListChild[this.appendListChildSelected].scrollIntoView({\n behavior: 'smooth',\n block: 'center'\n })\n }\n },\n onAppendTagKeyDown(e, localValue = null) {\n if (e.keyCode === 38 || e.keyCode === 40) {\n } else if (e.keyCode === 13) {\n if (this.getAutocompleteResults() && this.autocompleteResults.style.display === 'block' && this.getAutocompleteResultsSelected()) {\n let text = this.getAutocompleteResultsSelectedText()\n setTimeout(() => {\n localValue = this.$refs.promptTagAppend.value\n if (text) {\n localValue = text\n } else {\n text = this.getAutocompleteResultsSelectedText()\n if (text) localValue = text\n }\n this.onAppendTagKeyDown(e, localValue)\n }, 300)\n return\n }\n\n let tags = this.$refs.promptTagAppend.value\n this.$refs.promptTagAppend.value = ''\n this.showAppendList = true\n // [night light:magical forest: 5, 15]\n console.log(tags, localValue)\n if (localValue) {\n // 去除末尾的逗号\n tags = tags.replace(/\\s*,\\s*$/, '').trim()\n if (common.hasBrackets(tags)) {\n tags = common.replaceBrackets(tags)\n }\n this._appendTag(tags, localValue)\n this.updateTags()\n } else {\n if (common.hasBrackets(tags)) {\n // 如果已经被英文括号括起来,那么就不需要再分词了\n tags = common.replaceBrackets(tags)\n tags = [tags]\n } else {\n tags = common.splitTags(tags)\n }\n let indexes = []\n tags.forEach(tag => {\n let index = -1\n if (tag === \"\\n\") {\n index = this._appendTag(\"\\n\", \"\\n\", false, -1, 'wrap')\n } else {\n index = this._appendTag(tag)\n }\n if (index !== -1) indexes.push(index)\n })\n this.updatePrompt() // 先更新再翻译\n if (this.autoTranslateToEnglish || this.autoTranslateToLocal) {\n this.$nextTick(() => {\n let useNetwork = !(this.tagCompleteFile && this.onlyCsvOnAuto)\n if (this.autoTranslateToEnglish) {\n // 如果开启了自动翻译到英语,那么就自动翻译\n this.translates(indexes, false, useNetwork).finally(() => {\n this.updateTags()\n })\n } else if (this.autoTranslateToLocal) {\n // 如果开启了自动翻译到本地语言,那么就自动翻译\n this.translates(indexes, true, useNetwork).finally(() => {\n this.updateTags()\n })\n }\n })\n } else {\n this.updateTags()\n }\n }\n } else {\n // 不是上下键,也不是回车\n this.removeAutocompleteResultsSelected()\n }\n },\n onAppendTagKeyUp(e) {\n if (this.$refs.promptTagAppend.value === '' || this.$refs.promptTagAppend.value.trim() === '') {\n this.$refs.promptTagAppend.value = ''\n this.showAppendList = true\n\n if (e.keyCode === 38 || e.keyCode === 40) {\n // 如果是上下键\n if (this.appendListChildSelected === null) {\n this.selectAppendList(e.keyCode === 40)\n } else {\n this.selectAppendListChild(e.keyCode === 40)\n }\n } else if (e.keyCode === 37 || e.keyCode === 39) {\n // 如果是左右键\n if (this.appendListSelected !== null) {\n if (e.keyCode === 37) {\n this.appendListChildSelected = null\n this.scrollAppendListChild()\n } else {\n if (this.appendList[this.appendListSelected].children.length === 0) {\n this.appendListChildSelected = null\n } else {\n this.appendListChildSelected = 0\n this.scrollAppendListChild()\n }\n }\n }\n } else if (e.keyCode === 13) {\n // 如果是回车键\n this._appendTagByList()\n this.scrollAppendListChild()\n this.appendListSelected = null\n this.appendListChildSelected = null\n }\n } else {\n this.showAppendList = false\n }\n },\n onAppendGroupClick(index, childIndex, e) {\n if (index === null) return\n this.appendListSelected = index\n if (childIndex === null) {\n // 如果是点击的是父级\n if (this.appendList[this.appendListSelected].children.length > 0) return\n } else {\n this.appendListChildSelected = childIndex\n }\n this._appendTagByList()\n },\n onAppendListChildMouseLeave(index, childIndex, e) {\n this.appendListSelected = null\n this.appendListChildSelected = null\n },\n onAppendListChildMouseEnter(index, childIndex, e) {\n this.appendListSelected = index\n this.appendListChildSelected = childIndex\n },\n _appendTagByList() {\n if (this.appendListSelected === null) return\n const appendItem = this.appendList[this.appendListSelected]\n let appendChildItem = null\n if (appendItem.children.length > 0) {\n if (this.appendListChildSelected !== null) {\n // 有子项并且选中了子项\n appendChildItem = appendItem.children[this.appendListChildSelected]\n }\n } else {\n // 没有子项\n }\n let appendTags = []\n switch (appendItem.type) {\n case 'wrap':\n appendTags.push({\n value: \"\\n\",\n localValue: \"\\n\",\n disabled: false,\n type: 'wrap'\n })\n break\n case 'lora':\n break\n case 'favorite':\n case 'history':\n if (appendChildItem) {\n appendChildItem.tags.forEach(tag => {\n appendTags.push({\n value: tag.value,\n localValue: tag.localValue,\n disabled: tag.disabled,\n type: tag.type || 'text'\n })\n })\n }\n break\n }\n if (appendTags.length <= 0) return\n appendTags.forEach(tag => {\n this._appendTag(tag.value, tag.localValue, tag.disabled, -1, tag.type)\n })\n this.updateTags()\n },\n getAutocompleteResults() {\n if (!this.autocompleteResults) {\n const autocompleteResults = this.$refs.promptTagAppend.parentElement.querySelector('.autocompleteResults')\n if (autocompleteResults) {\n this.autocompleteResults = autocompleteResults\n // 增加mousemove事件\n if (this.autocompleteResults.getAttribute('data-mousemove') !== 'true') {\n this.autocompleteResults.setAttribute('data-mousemove', 'true')\n this.autocompleteResults.addEventListener('mousemove', (e) => {\n this.bindAutocompleteResultsClick()\n })\n }\n }\n }\n return this.autocompleteResults\n },\n removeAutocompleteResultsSelected() {\n const autocompleteResults = this.getAutocompleteResults()\n if (!autocompleteResults) return false\n autocompleteResults.querySelectorAll('li').forEach(li => {\n li.classList.remove('selected')\n })\n return true\n },\n getAutocompleteResultsSelected() {\n const autocompleteResults = this.getAutocompleteResults()\n if (!autocompleteResults) return null\n const el = autocompleteResults.querySelector('li.selected')\n if (!el) return null\n return el\n },\n getAutocompleteResultsSelectedText(el = null) {\n if (!el) {\n el = this.getAutocompleteResultsSelected()\n if (!el) return null\n }\n const $acListItem = el.querySelector('.acListItem')\n const text = $acListItem.innerText\n const match = text.match(/\\[(.+?)\\]/)\n if (!match) return null\n return match[1]\n },\n bindAutocompleteResultsClick() {\n this.getAutocompleteResults()\n if (!this.autocompleteResults) return\n // 获取列表\n let lis = this.autocompleteResults.querySelectorAll('li')\n // 给每个li绑定点击事件\n lis.forEach(li => {\n // 判断是否已经绑定过\n if (li.getAttribute('physton-on-clicked') === 'true') return\n li.setAttribute('physton-on-clicked', 'true')\n li.addEventListener('click', () => {\n this.onAutocompleteResultsClicked(li)\n })\n })\n },\n onAutocompleteResultsClicked(li) {\n const text = this.getAutocompleteResultsSelectedText(li)\n setTimeout(() => {\n let tags = this.$refs.promptTagAppend.value.replace(/,\\s*$/, '')\n this.$refs.promptTagAppend.value = ''\n // 去除末尾的逗号\n tags = tags.replace(/\\s*,\\s*$/, '').trim()\n if (common.hasBrackets(tags)) {\n tags = common.replaceBrackets(tags)\n }\n this._appendTag(tags, text)\n this.updateTags()\n }, 300)\n },\n }\n}","export default {\n data() {\n return {\n // 鼠标框选功能\n dropStartX: 0,\n dropStartY: 0,\n dropEndX: 0,\n dropEndY: 0,\n dropOffsetX: 0,\n dropOffsetY: 0,\n dropIsSelecting: false,\n dropIsStart: false,\n dropIsEnd: false,\n dropArea: {\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n },\n dropTags: [],\n dropTimeId: 0,\n }\n },\n methods: {\n _dropOver() {\n this.dropIsSelecting = false\n this.dropIsStart = false\n this.dropIsEnd = false\n this.dropTags = []\n for (let i = 0; i < this.$refs.promptTagsList.children.length; i++) {\n let tag = this.$refs.promptTagsList.children[i]\n if (tag.style.display === 'none') {\n // 删除display:none属性\n tag.style.display = ''\n }\n tag.classList.remove('drop-selected')\n }\n },\n onDropMouseDown(e) {\n if (this.droping) return\n this._dropOver()\n this.dropOffsetX = e.clientX - e.layerX\n this.dropOffsetY = e.clientY - e.layerY\n this.dropStartX = e.clientX - this.dropOffsetX\n this.dropStartY = e.clientY - this.dropOffsetY\n this.dropEndX = e.clientX - this.dropOffsetX\n this.dropEndY = e.clientY - this.dropOffsetY\n this.dropIsStart = true\n },\n onDropMouseMove(e) {\n if (this.dropIsStart) {\n this.dropIsSelecting = true\n this.dropEndX = e.clientX - this.dropOffsetX\n this.dropEndY = e.clientY - this.dropOffsetY\n let left = Math.min(this.dropStartX, this.dropEndX)\n let top = Math.min(this.dropStartY, this.dropEndY)\n let width = Math.abs(this.dropStartX - this.dropEndX)\n let height = Math.abs(this.dropStartY - this.dropEndY)\n // 设置不超过 this.$refs.promptTags 范围\n left = Math.max(left, 0)\n top = Math.max(top, 0)\n width = Math.min(width, this.$refs.promptTags.clientWidth - left)\n height = Math.min(height, this.$refs.promptTags.clientHeight - top)\n\n this.dropArea.top = top\n this.dropArea.left = left\n this.dropArea.width = width\n this.dropArea.height = height\n\n if (this.dropTimeId) clearTimeout(this.dropTimeId)\n this.dropTimeId = setTimeout(this.dropSelectItems, 10)\n }\n },\n dropSelectItems() {\n if (this.dropTimeId) clearTimeout(this.dropTimeId)\n let selectIds = []\n for (let i = 0; i < this.$refs.promptTagsList.children.length; i++) {\n let tag = this.$refs.promptTagsList.children[i]\n if (!tag.classList.contains('prompt-tag')) continue\n let tagLeft = tag.offsetLeft\n let tagTop = tag.offsetTop\n let tagWidth = tag.clientWidth\n let tagHeight = tag.clientHeight\n let tagRight = tagLeft + tagWidth\n let tagBottom = tagTop + tagHeight\n let isSelect = !(tagRight < this.dropArea.left || tagBottom < this.dropArea.top || tagLeft > this.dropArea.left + this.dropArea.width || tagTop > this.dropArea.top + this.dropArea.height)\n if (isSelect) {\n selectIds.push(tag.getAttribute('data-id'))\n tag.classList.add('drop-selected')\n } else {\n tag.classList.remove('drop-selected')\n }\n this.dropTags = selectIds\n }\n },\n onDropMouseUp(e) {\n this.dropIsSelecting = false\n this.dropIsStart = false\n this.dropIsEnd = true\n this.$refs.dropSelectBtns.style.left = this.$refs.dropSelectBox.style.left\n this.$refs.dropSelectBtns.style.top = this.$refs.dropSelectBox.style.top\n },\n _getDropTags() {\n let tags = []\n this.dropTags.forEach(id => {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n tags.push(tag)\n })\n return tags\n },\n _getDropIndexes() {\n let indexes = []\n this.dropTags.forEach(id => {\n let index = this.tags.findIndex(tag => tag.id === id)\n if (index === -1) return\n indexes.push(index)\n })\n return indexes\n },\n _getDropTagsEle() {\n let elements = []\n this.dropTags.forEach(id => {\n let tag = this.$refs.promptTagsList.querySelector(`.prompt-tag[data-id=\"${id}\"]`)\n if (!tag) return\n elements.push(tag)\n })\n return elements\n },\n onDropCopy() {\n let tags = this._getDropTags()\n this._dropOver()\n let prompt = this.genPrompt(tags, true)\n this.copy(prompt)\n },\n onDropFavorite() {\n let tags = this._getDropTags()\n this._dropOver()\n let prompt = this.genPrompt(tags, true)\n this.gradioAPI.pushFavorite(this.favoriteKey, tags, prompt, '').then(res => {\n if (res) {\n this.$toastr.success(this.getLang('success'))\n this.$emit('refreshFavorites', this.favoriteKey)\n } else {\n this.$toastr.error(this.getLang('failed'))\n }\n }).catch(error => {\n this.$toastr.error(this.getLang('failed'))\n })\n },\n onDropDisable() {\n let tags = this._getDropTags()\n this._dropOver()\n tags.forEach(tag => {\n tag.disabled = true\n })\n this.updateTags()\n },\n onDropEnable() {\n let tags = this._getDropTags()\n this._dropOver()\n tags.forEach(tag => {\n tag.disabled = false\n })\n this.updateTags()\n },\n onDropDelete() {\n let indexes = this._getDropIndexes()\n this._dropOver()\n indexes.sort((a, b) => b - a)\n indexes.forEach(index => {\n this.tags.splice(index, 1)\n })\n this.updateTags()\n },\n }\n}","var GHOST_ELEMENT_ID = '__autosizeInputGhost'\n\nvar characterEntities = {\n ' ': 'nbsp',\n '<': 'lt',\n '>': 'gt'\n}\nfunction mapSpecialCharacterToCharacterEntity (specialCharacter) {\n return '&' + characterEntities[specialCharacter] + ';'\n}\nfunction escapeSpecialCharacters (string) {\n return string.replace(/\\s|<|>/g, mapSpecialCharacterToCharacterEntity)\n}\n\n// Create `ghostElement`, with inline styles to hide it and ensure that the text is all\n// on a single line.\nfunction createGhostElement () {\n var ghostElement = document.createElement('div')\n ghostElement.id = GHOST_ELEMENT_ID\n ghostElement.style.cssText =\n 'display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;'\n document.body.appendChild(ghostElement)\n return ghostElement\n}\n\nmodule.exports = function (element, options) {\n var elementStyle = window.getComputedStyle(element)\n // prettier-ignore\n var elementCssText = 'box-sizing:' + elementStyle.boxSizing +\n ';border-left:' + elementStyle.borderLeftWidth + ' solid red' +\n ';border-right:' + elementStyle.borderRightWidth + ' solid red' +\n ';font-family:' + elementStyle.fontFamily +\n ';font-feature-settings:' + elementStyle.fontFeatureSettings +\n ';font-kerning:' + elementStyle.fontKerning +\n ';font-size:' + elementStyle.fontSize +\n ';font-stretch:' + elementStyle.fontStretch +\n ';font-style:' + elementStyle.fontStyle +\n ';font-variant:' + elementStyle.fontVariant +\n ';font-variant-caps:' + elementStyle.fontVariantCaps +\n ';font-variant-ligatures:' + elementStyle.fontVariantLigatures +\n ';font-variant-numeric:' + elementStyle.fontVariantNumeric +\n ';font-weight:' + elementStyle.fontWeight +\n ';letter-spacing:' + elementStyle.letterSpacing +\n ';margin-left:' + elementStyle.marginLeft +\n ';margin-right:' + elementStyle.marginRight +\n ';padding-left:' + elementStyle.paddingLeft +\n ';padding-right:' + elementStyle.paddingRight +\n ';text-indent:' + elementStyle.textIndent +\n ';text-transform:' + elementStyle.textTransform\n\n // Assigns an appropriate width to the given `element` based on its contents.\n function setWidth () {\n var string = element.value || element.getAttribute('placeholder') || ''\n // Check if the `ghostElement` exists. If no, create it.\n var ghostElement =\n document.getElementById(GHOST_ELEMENT_ID) || createGhostElement()\n // Copy all width-affecting styles to the `ghostElement`.\n ghostElement.style.cssText += elementCssText\n ghostElement.innerHTML = escapeSpecialCharacters(string)\n // Copy the width of `ghostElement` to `element`.\n var width = window.getComputedStyle(ghostElement).width\n element.style.width = width\n return width\n }\n\n element.addEventListener('input', setWidth)\n\n var width = setWidth()\n\n // Set `min-width` only if `options.minWidth` was set, and only if the initial\n // width is non-zero.\n if (options && options.minWidth && width !== '0px') {\n element.style.minWidth = width\n }\n\n // Return a function for unbinding the event listener and removing the `ghostElement`.\n return function () {\n element.removeEventListener('input', setWidth)\n var ghostElement = document.getElementById(GHOST_ELEMENT_ID)\n if (ghostElement) {\n ghostElement.parentNode.removeChild(ghostElement)\n }\n }\n}\n","import common from \"@/utils/common\";\nimport autoSizeInput from \"autosize-input\";\n\nexport default {\n data() {\n return {\n tagClickTimeId: 0,\n }\n },\n mounted() {\n common.gradioApp().addEventListener('mousemove', () => {\n this.$refs.highlightPrompt.hide()\n })\n },\n methods: {\n _setTag(tag) {\n if (typeof tag['type'] === 'string' && tag.type === 'wrap') {\n tag.weightNum = 1\n tag.incWeight = 0\n tag.decWeight = 0\n } else {\n tag.weightNum = common.getTagWeightNum(tag.value)\n tag.weightNum = tag.weightNum <= 0 ? 1 : tag.weightNum\n tag.incWeight = common.getTagIncWeight(tag.value)\n tag.decWeight = common.getTagDecWeight(tag.value)\n // const bracket = common.hasBrackets(tag.value)\n }\n this._setTagClass(tag)\n this.$nextTick(() => {\n this._setTagHeight(tag)\n })\n },\n _setTagHeight(tag) {\n setTimeout(() => {\n let $tag = this.$refs['promptTagValue-' + tag.id][0]\n let height = $tag.offsetHeight\n $tag.parentNode.style.height = height + 'px'\n if (this.$refs['promptTagEdit-' + tag.id]) {\n this.$refs['promptTagEdit-' + tag.id][0].style.height = height + 'px'\n }\n if (this.$refs['promptTagDelete-' + tag.id]) {\n this.$refs['promptTagDelete-' + tag.id][0].style.height = height + 'px'\n }\n }, 300)\n },\n _setTagClass(tag) {\n tag.isLora = false\n tag.loraExists = false\n tag.isLyco = false\n tag.lycoExists = false\n tag.isEmbedding = false\n\n if (typeof tag['type'] === 'string' && tag.type === 'wrap') {\n } else {\n // 判断是否lora\n const match = tag.value.match(common.loraRegex)\n if (match) {\n tag.isLora = true\n const loraName = this.loraExists(match[1])\n if (loraName !== false) {\n tag.loraExists = true\n tag.loraName = loraName\n }\n }\n\n if (!tag.isLora) {\n // 判断是否lyco\n const match = tag.value.match(common.lycoRegex)\n if (match) {\n tag.isLyco = true\n const lycoName = this.lycoExists(match[1])\n if (lycoName !== false) {\n tag.lycoExists = true\n tag.lycoName = lycoName\n }\n }\n }\n\n if (!tag.isLora && !tag.isLyco) {\n // 判断是否embedding\n const embeddingName = this.embeddingExists(tag.value)\n if (embeddingName !== false) {\n tag.isEmbedding = true\n tag.value = embeddingName\n }\n }\n }\n\n let classes = ['prompt-tag-value']\n if (tag.isLora) {\n classes.push('lora-tag')\n if (!tag.loraExists) {\n classes.push('lora-not-exists')\n }\n } else if (tag.isLyco) {\n classes.push('lyco-tag')\n if (!tag.lycoExists) {\n classes.push('lyco-not-exists')\n }\n } else if (tag.isEmbedding) {\n classes.push('embedding-tag')\n } else if (this.neg) {\n classes.push('neg-tag')\n }\n\n tag.classes = classes\n return classes\n },\n _setTagById(id, value = null, localValue = null) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n if (value !== null) tag.value = value\n if (localValue !== null) tag.localValue = localValue\n return tag\n },\n _appendTag(value, localValue = '', disabled = false, index = -1, type = 'text') {\n if (value === '') return -1\n // 唯一数:当前时间戳+随机数\n const id = Date.now() + (Math.random() * 1000000).toFixed(0)\n let tag = {\n id,\n value: value === null || value === undefined || value === false ? '' : value,\n localValue: localValue === null || localValue === undefined || localValue === false ? '' : localValue,\n disabled,\n type\n }\n this._setTag(tag)\n // value = common.setLayers(value, 0, '(', ')')\n // value = common.setLayers(value, 0, '[', ']')\n if (index >= 0) {\n // 插入到指定位置\n this.tags.splice(index, 0, tag)\n } else {\n index = this.tags.push(tag)\n }\n this.$nextTick(() => {\n if (this.$refs['promptTagEdit-' + id]) autoSizeInput(this.$refs['promptTagEdit-' + id][0])\n })\n return index - 1\n },\n renderTag(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return ''\n let value = tag.value\n value = common.escapeHtml(value)\n if (tag.incWeight > 0) {\n value = common.setLayers(value, 0, '(', ')')\n value = '
' + value + '
'\n let start = '
' + '('.repeat(tag.incWeight) + '
'\n let end = '
' + ')'.repeat(tag.incWeight) + '
'\n value = start + value + end\n } else if (tag.decWeight > 0) {\n value = common.setLayers(value, 0, '[', ']')\n value = '
' + value + '
'\n let start = '
' + '['.repeat(tag.decWeight) + '
'\n let end = '
' + ']'.repeat(tag.decWeight) + '
'\n value = start + value + end\n } else {\n value = '
' + value + '
'\n }\n return value\n },\n isFavorite(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n if (typeof window.phystonPromptfavorites === 'object') {\n for (const group of window.phystonPromptfavorites) {\n if (group.key !== this.favoriteKey) continue\n for (const favorite of group.list) {\n if (favorite.tags.length !== 1) continue\n if (favorite.tags[0].value === tag.value) return favorite.id\n }\n }\n }\n return false\n },\n onTagMouseEnter(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n tag.isFavorite = this.isFavorite(tag.id)\n },\n onTagMouseMove(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n this.$refs.highlightPrompt.show(tag)\n },\n onTagClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n if (this.tagClickTimeId) clearTimeout(this.tagClickTimeId)\n this.tagClickTimeId = setTimeout(() => {\n this.editing = {}\n this.editing[tag.id] = true\n this.$forceUpdate()\n this.$nextTick(() => {\n const input = this.$refs['promptTagEdit-' + tag.id][0]\n input.focus()\n input.dispatchEvent(new Event('input'))\n // input.select()\n })\n clearTimeout(this.tagClickTimeId)\n }, 250)\n },\n onTagDblclick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n clearTimeout(this.tagClickTimeId)\n this.onDisabledTagClick(tag.id)\n },\n onTagInputBlur(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n this.editing[tag.id] = false\n },\n onTagInputKeyDown(id, e) {\n if (e.keyCode === 13) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n this.editing[tag.id] = false\n if (tag.value !== e.target.value) {\n tag.value = e.target.value\n this._setTag(tag)\n this.updateTags()\n }\n }\n },\n onTagInputChange(id, e) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n if (tag.value === e.target.value) return\n tag.value = e.target.value\n this._setTag(tag)\n this.updateTags()\n },\n onTagWeightNumChange(id, e) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n e = typeof e === \"number\" || typeof a === \"string\" ? e : e.target.value\n if (tag.weightNum == e) return\n let weightNum = e\n let value = tag.value\n let localValue = tag.localValue\n if (weightNum > 0) {\n if (weightNum === 1 && !this.autoKeepWeightOne) {\n // 如果权重数是1,那么就去掉权重数\n const bracket = common.hasBrackets(value)\n if (bracket[0] === '(' && bracket[1] === ')') {\n // 移除括号\n value = common.setLayers(value, 0, bracket[0], bracket[1])\n if (localValue !== '') localValue = common.setLayers(localValue, 0, bracket[0], bracket[1])\n } else {\n // 不移除括号\n }\n // 移除权重数\n value = value.replace(common.weightNumRegex, '$1')\n if (localValue !== '') localValue = localValue.replace(common.weightNumRegex, '$1')\n } else {\n // 如果原来没有权重数,那么就加上权重数\n if (!common.weightNumRegex.test(value)) {\n // 如果原来有括号,就要加到括号内\n let bracket = common.hasBrackets(value)\n if (bracket) {\n value = common.setLayers(value, 1, bracket[0], bracket[1], ':' + weightNum)\n if (localValue !== '') localValue = common.setLayers(localValue, 1, bracket[0], bracket[1], ':' + weightNum)\n } else {\n value = value + ':' + weightNum\n if (localValue !== '') localValue = localValue + ':' + weightNum\n }\n }\n // 如果原来没有括号() [] {} <>,那么就加上括号\n if (!common.hasBrackets(value)) {\n value = common.setLayers(value, 1, '(', ')')\n if (localValue !== '') localValue = common.setLayers(localValue, 1, '(', ')')\n }\n }\n if (value !== tag.value) {\n tag.value = value\n if (localValue !== '') tag.localValue = localValue\n this._setTag(tag)\n }\n } else {\n // 如果原来的括号是<>,那么最小权重数只能是0.1\n const bracket = common.hasBrackets(value)\n if (bracket[0] === '<' && bracket[1] === '>') {\n weightNum = 0.1\n } else {\n if (this.autoKeepWeightZero) {\n // 保留权重数\n tag.value = value.replace(common.weightNumRegex, '$1:0')\n if (localValue !== '') tag.localValue = tag.localValue.replace(common.weightNumRegex, '$1:0')\n } else {\n // 移除权重数\n tag.value = value.replace(common.weightNumRegex, '$1')\n if (localValue !== '') tag.localValue = tag.localValue.replace(common.weightNumRegex, '$1')\n }\n }\n }\n tag.weightNum = weightNum\n this.updateTags()\n },\n onDeleteTagClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n let index = this.tags.indexOf(tag)\n this.tags.splice(index, 1)\n this.updateTags()\n },\n onFavoriteTagClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return false\n let favoriteId = this.isFavorite(tag.id)\n if (!favoriteId) {\n // 收藏\n this.gradioAPI.pushFavorite(this.favoriteKey, [tag], tag.value, tag.localValue === '' ? tag.value : tag.localValue).then(res => {\n if (res) {\n tag.isFavorite = true\n this.$emit('refreshFavorites', this.favoriteKey)\n }\n })\n } else {\n // 取消收藏\n this.gradioAPI.unFavorite(this.favoriteKey, favoriteId).then(res => {\n if (res) {\n tag.isFavorite = false\n this.$emit('refreshFavorites', this.favoriteKey)\n }\n })\n }\n },\n onDisabledTagClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n tag.disabled = !tag.disabled\n this.updateTags()\n },\n onIncWeightClick(id, num) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n let value = tag.value\n let localValue = tag.localValue\n value = common.setLayers(value, 0, '[', ']')\n if (localValue !== '') localValue = common.setLayers(localValue, 0, '[', ']')\n let incWeight = tag.incWeight\n incWeight += num\n if (incWeight < 0) incWeight = 0\n tag.incWeight = incWeight\n tag.decWeight = 0\n value = common.setLayers(value, incWeight, '(', ')')\n if (localValue !== '') localValue = common.setLayers(localValue, incWeight, '(', ')')\n tag.value = value\n if (localValue !== '') tag.localValue = localValue\n this.updateTags()\n },\n onDecWeightClick(id, num) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n let value = tag.value\n let localValue = tag.localValue\n value = common.setLayers(value, 0, '(', ')')\n if (localValue !== '') localValue = common.setLayers(localValue, 0, '(', ')')\n let decWeight = tag.decWeight\n decWeight += num\n if (decWeight < 0) decWeight = 0\n tag.incWeight = 0\n tag.decWeight = decWeight\n value = common.setLayers(value, decWeight, '[', ']')\n if (localValue !== '') localValue = common.setLayers(localValue, decWeight, '[', ']')\n tag.value = value\n if (localValue !== '') tag.localValue = localValue\n this.updateTags()\n },\n onWrapTagClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n let index = this.tags.indexOf(tag)\n let wrapIndex = this._appendTag(\"\\n\", \"\\n\", false, -1, 'wrap')\n let wrapTag = this.tags[wrapIndex]\n // 移动到当前标签的下面\n this.tags.splice(wrapIndex, 1);\n // 然后将 'c' 插入到 'e' 后面\n this.tags.splice(index + 1, 0, wrapTag);\n this.updateTags()\n },\n onTranslateToLocalClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n let index = this.tags.indexOf(tag)\n if (this.loading[tag.id + '_local']) return\n this.translates([index], true, true).finally(() => {\n this.updateTags()\n })\n },\n onTranslateToEnglishClick(id) {\n let tag = this.tags.find(tag => tag.id === id)\n if (!tag) return\n let index = this.tags.indexOf(tag)\n if (this.loading[tag.id + '_en']) return\n this.translates([index], false, true).finally(() => {\n this.updateTags()\n })\n },\n }\n}","\n","\n","\n\n\n","\n","\n","\n","\n","\n","\n","\n","\n","\n","\n\n","/*!\n * jQuery JavaScript Library v3.6.4\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2023-03-08T15:28Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket trac-14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n\t\t// Support: Chrome <=57, Firefox <=52\n\t\t// In some browsers, typeof returns \"function\" for HTML elements\n\t\t// (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n\t\t// We don't want to classify *any* DOM node as a function.\n\t\t// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5\n\t\t// Plus for old WebKit, typeof returns \"function\" for HTML collections\n\t\t// (e.g., `typeof document.getElementsByTagName(\"div\") === \"function\"`). (gh-4756)\n\t\treturn typeof obj === \"function\" && typeof obj.nodeType !== \"number\" &&\n\t\t\ttypeof obj.item !== \"function\";\n\t};\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar\n\tversion = \"3.6.4\",\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teven: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn ( i + 1 ) % 2;\n\t\t} ) );\n\t},\n\n\todd: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn i % 2;\n\t\t} ) );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent Object.prototype pollution\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( name === \"__proto__\" || target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\t\t\t\t\tsrc = target[ name ];\n\n\t\t\t\t\t// Ensure proper type for the source value\n\t\t\t\t\tif ( copyIsArray && !Array.isArray( src ) ) {\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {\n\t\t\t\t\t\tclone = {};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src;\n\t\t\t\t\t}\n\t\t\t\t\tcopyIsArray = false;\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a provided context; falls back to the global one\n\t// if not specified.\n\tglobalEval: function( code, options, doc ) {\n\t\tDOMEval( code, { nonce: options && options.nonce }, doc );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn flat( ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\n\tfunction( _i, name ) {\n\t\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\t} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\nvar Sizzle =\n/*!\n * Sizzle CSS Selector Engine v2.3.10\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2023-02-14\n */\n( function( window ) {\nvar i,\n\tsupport,\n\tExpr,\n\tgetText,\n\tisXML,\n\ttokenize,\n\tcompile,\n\tselect,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\n\t// Local document vars\n\tsetDocument,\n\tdocument,\n\tdocElem,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\trbuggyMatches,\n\tmatches,\n\tcontains,\n\n\t// Instance-specific data\n\texpando = \"sizzle\" + 1 * new Date(),\n\tpreferredDoc = window.document,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tnonnativeSelectorCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\t// Instance methods\n\thasOwn = ( {} ).hasOwnProperty,\n\tarr = [],\n\tpop = arr.pop,\n\tpushNative = arr.push,\n\tpush = arr.push,\n\tslice = arr.slice,\n\n\t// Use a stripped-down indexOf as it's faster than native\n\t// https://jsperf.com/thor-indexof-vs-for/5\n\tindexOf = function( list, elem ) {\n\t\tvar i = 0,\n\t\t\tlen = list.length;\n\t\tfor ( ; i < len; i++ ) {\n\t\t\tif ( list[ i ] === elem ) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\" +\n\t\t\"ismap|loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\n\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\tidentifier = \"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\n\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\n\t\t// \"Attribute values must be CSS identifiers [capture 5]\n\t\t// or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" +\n\t\twhitespace + \"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\trtrim = new RegExp( \"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" +\n\t\twhitespace + \"+$\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trleadingCombinator = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace +\n\t\t\"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\t\"ID\": new RegExp( \"^#(\" + identifier + \")\" ),\n\t\t\"CLASS\": new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\t\"TAG\": new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\t\"ATTR\": new RegExp( \"^\" + attributes ),\n\t\t\"PSEUDO\": new RegExp( \"^\" + pseudos ),\n\t\t\"CHILD\": new RegExp( \"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\t\"bool\": new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\t\"needsContext\": new RegExp( \"^\" + whitespace +\n\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" + whitespace +\n\t\t\t\"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trhtml = /HTML$/i,\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace + \"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\treturn nonHex ?\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\tnonHex :\n\n\t\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t\t// Support: IE <=11+\n\t\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t\t// surrogate pair\n\t\t\thigh < 0 ?\n\t\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// CSS string/identifier serialization\n\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\tfcssescape = function( ch, asCodePoint ) {\n\t\tif ( asCodePoint ) {\n\n\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\tif ( ch === \"\\0\" ) {\n\t\t\t\treturn \"\\uFFFD\";\n\t\t\t}\n\n\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\treturn ch.slice( 0, -1 ) + \"\\\\\" +\n\t\t\t\tch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t\t}\n\n\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\treturn \"\\\\\" + ch;\n\t},\n\n\t// Used for iframes\n\t// See setDocument()\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && elem.nodeName.toLowerCase() === \"fieldset\";\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t( arr = slice.call( preferredDoc.childNodes ) ),\n\t\tpreferredDoc.childNodes\n\t);\n\n\t// Support: Android<4.0\n\t// Detect silently failing push.apply\n\t// eslint-disable-next-line no-unused-expressions\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = { apply: arr.length ?\n\n\t\t// Leverage slice if possible\n\t\tfunction( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t} :\n\n\t\t// Support: IE<9\n\t\t// Otherwise append directly\n\t\tfunction( target, els ) {\n\t\t\tvar j = target.length,\n\t\t\t\ti = 0;\n\n\t\t\t// Can't trust NodeList.length\n\t\t\twhile ( ( target[ j++ ] = els[ i++ ] ) ) {}\n\t\t\ttarget.length = j - 1;\n\t\t}\n\t};\n}\n\nfunction Sizzle( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\t\tsetDocument( context );\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( ( m = match[ 1 ] ) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( ( elem = context.getElementById( m ) ) ) {\n\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && ( elem = newContext.getElementById( m ) ) &&\n\t\t\t\t\t\t\tcontains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tresults.push( elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[ 2 ] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&\n\t\t\t\t\tcontext.getElementsByClassName ) {\n\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( support.qsa &&\n\t\t\t\t!nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&\n\n\t\t\t\t// Support: IE 8 only\n\t\t\t\t// Exclude object elements\n\t\t\t\t( nodeType !== 1 || context.nodeName.toLowerCase() !== \"object\" ) ) {\n\n\t\t\t\tnewSelector = selector;\n\t\t\t\tnewContext = context;\n\n\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\tif ( nodeType === 1 &&\n\t\t\t\t\t( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\tif ( newContext !== context || !support.scope ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( ( nid = context.getAttribute( \"id\" ) ) ) {\n\t\t\t\t\t\t\tnid = nid.replace( rcssescape, fcssescape );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", ( nid = expando ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[ i ] = ( nid ? \"#\" + nid : \":scope\" ) + \" \" +\n\t\t\t\t\t\t\ttoSelector( groups[ i ] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t);\n\t\t\t\t\treturn results;\n\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\tnonnativeSelectorCache( selector, true );\n\t\t\t\t} finally {\n\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrim, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\n\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn ( cache[ key + \" \" ] = value );\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by Sizzle\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement( \"fieldset\" );\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch ( e ) {\n\t\treturn false;\n\t} finally {\n\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Adds the same handler for all of the specified attrs\n * @param {String} attrs Pipe-separated list of attributes\n * @param {Function} handler The method that will be applied\n */\nfunction addHandle( attrs, handler ) {\n\tvar arr = attrs.split( \"|\" ),\n\t\ti = arr.length;\n\n\twhile ( i-- ) {\n\t\tExpr.attrHandle[ arr[ i ] ] = handler;\n\t}\n}\n\n/**\n * Checks document order of two siblings\n * @param {Element} a\n * @param {Element} b\n * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n */\nfunction siblingCheck( a, b ) {\n\tvar cur = b && a,\n\t\tdiff = cur && a.nodeType === 1 && b.nodeType === 1 &&\n\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t// Use IE sourceIndex if available on both nodes\n\tif ( diff ) {\n\t\treturn diff;\n\t}\n\n\t// Check if b follows a\n\tif ( cur ) {\n\t\twhile ( ( cur = cur.nextSibling ) ) {\n\t\t\tif ( cur === b ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn a ? 1 : -1;\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn name === \"input\" && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\tvar name = elem.nodeName.toLowerCase();\n\t\treturn ( name === \"input\" || name === \"button\" ) && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\tinDisabledFieldset( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction( function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction( function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ ( j = matchIndexes[ i ] ) ] ) {\n\t\t\t\t\tseed[ j ] = !( matches[ j ] = seed[ j ] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t} );\n}\n\n/**\n * Checks a node for validity as a Sizzle context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n// Expose support vars for convenience\nsupport = Sizzle.support = {};\n\n/**\n * Detects XML nodes\n * @param {Element|Object} elem An element or a document\n * @returns {Boolean} True iff elem is a non-HTML XML node\n */\nisXML = Sizzle.isXML = function( elem ) {\n\tvar namespace = elem && elem.namespaceURI,\n\t\tdocElem = elem && ( elem.ownerDocument || elem ).documentElement;\n\n\t// Support: IE <=8\n\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\n\t// https://bugs.jquery.com/ticket/4833\n\treturn !rhtml.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n};\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [doc] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nsetDocument = Sizzle.setDocument = function( node ) {\n\tvar hasCompare, subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocElem = document.documentElement;\n\tdocumentIsHTML = !isXML( document );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( preferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 11, Edge\n\t\tif ( subWindow.addEventListener ) {\n\t\t\tsubWindow.addEventListener( \"unload\", unloadHandler, false );\n\n\t\t// Support: IE 9 - 10 only\n\t\t} else if ( subWindow.attachEvent ) {\n\t\t\tsubWindow.attachEvent( \"onunload\", unloadHandler );\n\t\t}\n\t}\n\n\t// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n\t// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n\t// IE/Edge & older browsers don't support the :scope pseudo-class.\n\t// Support: Safari 6.0 only\n\t// Safari 6.0 supports :scope but it's an alias of :root there.\n\tsupport.scope = assert( function( el ) {\n\t\tdocElem.appendChild( el ).appendChild( document.createElement( \"div\" ) );\n\t\treturn typeof el.querySelectorAll !== \"undefined\" &&\n\t\t\t!el.querySelectorAll( \":scope fieldset div\" ).length;\n\t} );\n\n\t// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+\n\t// Make sure the the `:has()` argument is parsed unforgivingly.\n\t// We include `*` in the test to detect buggy implementations that are\n\t// _selectively_ forgiving (specifically when the list includes at least\n\t// one valid selector).\n\t// Note that we treat complete lack of support for `:has()` as if it were\n\t// spec-compliant support, which is fine because use of `:has()` in such\n\t// environments will fail in the qSA path and fall back to jQuery traversal\n\t// anyway.\n\tsupport.cssHas = assert( function() {\n\t\ttry {\n\t\t\tdocument.querySelector( \":has(*,:jqfake)\" );\n\t\t\treturn false;\n\t\t} catch ( e ) {\n\t\t\treturn true;\n\t\t}\n\t} );\n\n\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t// Support: IE<8\n\t// Verify that getAttribute really returns attributes and not properties\n\t// (excepting IE8 booleans)\n\tsupport.attributes = assert( function( el ) {\n\t\tel.className = \"i\";\n\t\treturn !el.getAttribute( \"className\" );\n\t} );\n\n\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t// Check if getElementsByTagName(\"*\") returns only elements\n\tsupport.getElementsByTagName = assert( function( el ) {\n\t\tel.appendChild( document.createComment( \"\" ) );\n\t\treturn !el.getElementsByTagName( \"*\" ).length;\n\t} );\n\n\t// Support: IE<9\n\tsupport.getElementsByClassName = rnative.test( document.getElementsByClassName );\n\n\t// Support: IE<10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert( function( el ) {\n\t\tdocElem.appendChild( el ).id = expando;\n\t\treturn !document.getElementsByName || !document.getElementsByName( expando ).length;\n\t} );\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"id\" ) === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter[ \"ID\" ] = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode( \"id\" );\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find[ \"ID\" ] = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( ( elem = elems[ i++ ] ) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find[ \"TAG\" ] = support.getElementsByTagName ?\n\t\tfunction( tag, context ) {\n\t\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t} else if ( support.qsa ) {\n\t\t\t\treturn context.querySelectorAll( tag );\n\t\t\t}\n\t\t} :\n\n\t\tfunction( tag, context ) {\n\t\t\tvar elem,\n\t\t\t\ttmp = [],\n\t\t\t\ti = 0,\n\n\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\tresults = context.getElementsByTagName( tag );\n\n\t\t\t// Filter out possible comments\n\t\t\tif ( tag === \"*\" ) {\n\t\t\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\ttmp.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t\treturn results;\n\t\t};\n\n\t// Class\n\tExpr.find[ \"CLASS\" ] = support.getElementsByClassName && function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\trbuggyMatches = [];\n\n\t// qSa(:focus) reports false when true (Chrome 21)\n\t// We allow this because of a bug in IE8/9 that throws an error\n\t// whenever `document.activeElement` is accessed on an iframe\n\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t// See https://bugs.jquery.com/ticket/13378\n\trbuggyQSA = [];\n\n\tif ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) {\n\n\t\t// Build QSA regex\n\t\t// Regex strategy adopted from Diego Perini\n\t\tassert( function( el ) {\n\n\t\t\tvar input;\n\n\t\t\t// Select is set to empty string on purpose\n\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t// setting a boolean content attribute,\n\t\t\t// since its presence should be enough\n\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\tdocElem.appendChild( el ).innerHTML = \"\" +\n\t\t\t\t\"\";\n\n\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\tif ( el.querySelectorAll( \"[msallowcapture^='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Support: IE8\n\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t\t}\n\n\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"~=\" );\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t// around the issue.\n\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\tinput = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"name\", \"\" );\n\t\t\tel.appendChild( input );\n\t\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t\t}\n\n\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\t\trbuggyQSA.push( \":checked\" );\n\t\t\t}\n\n\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t\t}\n\n\t\t\t// Support: Firefox <=3.6 - 5 only\n\t\t\t// Old Firefox doesn't throw on a badly-escaped identifier.\n\t\t\tel.querySelectorAll( \"\\\\\\f\" );\n\t\t\trbuggyQSA.push( \"[\\\\r\\\\n\\\\f]\" );\n\t\t} );\n\n\t\tassert( function( el ) {\n\t\t\tel.innerHTML = \"\" +\n\t\t\t\t\"\";\n\n\t\t\t// Support: Windows 8 Native Apps\n\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\tvar input = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t\t// Support: IE8\n\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\tif ( el.querySelectorAll( \"[name=d]\" ).length ) {\n\t\t\t\trbuggyQSA.push( \"name\" + whitespace + \"*[*^$|!~]?=\" );\n\t\t\t}\n\n\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t// IE8 throws error here and will not see later tests\n\t\t\tif ( el.querySelectorAll( \":enabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: IE9-11+\n\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\tdocElem.appendChild( el ).disabled = true;\n\t\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t\t}\n\n\t\t\t// Support: Opera 10 - 11 only\n\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\tel.querySelectorAll( \"*,:x\" );\n\t\t\trbuggyQSA.push( \",.*:\" );\n\t\t} );\n\t}\n\n\tif ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches ||\n\t\tdocElem.webkitMatchesSelector ||\n\t\tdocElem.mozMatchesSelector ||\n\t\tdocElem.oMatchesSelector ||\n\t\tdocElem.msMatchesSelector ) ) ) ) {\n\n\t\tassert( function( el ) {\n\n\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t// on a disconnected node (IE 9)\n\t\t\tsupport.disconnectedMatch = matches.call( el, \"*\" );\n\n\t\t\t// This should fail with an exception\n\t\t\t// Gecko does not error, returns false instead\n\t\t\tmatches.call( el, \"[s!='']:x\" );\n\t\t\trbuggyMatches.push( \"!=\", pseudos );\n\t\t} );\n\t}\n\n\tif ( !support.cssHas ) {\n\n\t\t// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+\n\t\t// Our regular `try-catch` mechanism fails to detect natively-unsupported\n\t\t// pseudo-classes inside `:has()` (such as `:has(:contains(\"Foo\"))`)\n\t\t// in browsers that parse the `:has()` argument as a forgiving selector list.\n\t\t// https://drafts.csswg.org/selectors/#relational now requires the argument\n\t\t// to be parsed unforgivingly, but browsers have not yet fully adjusted.\n\t\trbuggyQSA.push( \":has\" );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\trbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( \"|\" ) );\n\n\t/* Contains\n\t---------------------------------------------------------------------- */\n\thasCompare = rnative.test( docElem.compareDocumentPosition );\n\n\t// Element contains another\n\t// Purposefully self-exclusive\n\t// As in, an element does not contain itself\n\tcontains = hasCompare || rnative.test( docElem.contains ) ?\n\t\tfunction( a, b ) {\n\n\t\t\t// Support: IE <9 only\n\t\t\t// IE doesn't have `contains` on `document` so we need to check for\n\t\t\t// `documentElement` presence.\n\t\t\t// We need to fall back to `a` when `documentElement` is missing\n\t\t\t// as `ownerDocument` of elements within `