@galaxyproject/galaxy-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +174 -0
- package/dist/00950d3d0eabc9b79c13.png +0 -0
- package/dist/00b14a051b8ec5846ca4.png +0 -0
- package/dist/015bb398cc86c8e2c532.png +0 -0
- package/dist/0a09dd8bcca1e540a97f.png +0 -0
- package/dist/0c708255f16de429468f.png +0 -0
- package/dist/120.bundled.js +2 -0
- package/dist/120.bundled.js.LICENSE.txt +20 -0
- package/dist/1444303e4f0c0f62fa36.png +0 -0
- package/dist/1551f4f60c37af51121f.woff2 +0 -0
- package/dist/175327482730212e7000.png +0 -0
- package/dist/17aaaa49460f37c9589a.png +0 -0
- package/dist/203d1199e7aef04c0a34.gif +0 -0
- package/dist/2285773e6b4b172f07d9.woff +0 -0
- package/dist/23f19bb08961f37aaf69.eot +0 -0
- package/dist/27c5873e9e627196c882.png +0 -0
- package/dist/295.bundled.js +1 -0
- package/dist/2f2c06d22919cab5a524.png +0 -0
- package/dist/2f517e09eb2ca6650ff5.svg +3717 -0
- package/dist/31bc77d4f6f4dbe60b99.png +0 -0
- package/dist/3458c7b831d6a8909f76.png +0 -0
- package/dist/36d93ca016d18f6fc3e6.png +0 -0
- package/dist/37478264c4ed6b0da2cb.png +0 -0
- package/dist/3fa7cde9c3400ad8112a.png +0 -0
- package/dist/40e48ce346be3ec51671.png +0 -0
- package/dist/4689f52cc96215721344.svg +801 -0
- package/dist/47683caf7120e987ca85.png +0 -0
- package/dist/47b9475d2b6a19bc0921.png +0 -0
- package/dist/491974d108fe4002b2aa.ttf +0 -0
- package/dist/492.bundled.js +1 -0
- package/dist/4a7b4107b62ef059ba65.png +0 -0
- package/dist/4b01ca501fadf65135bf.gif +0 -0
- package/dist/4dce7f71b08755f19759.png +0 -0
- package/dist/5000254d328af6822042.gif +0 -0
- package/dist/50a457cf9caf3ff7d302.png +0 -0
- package/dist/523592c8f36ba8d3d7b1.png +0 -0
- package/dist/527940b104eb2ea366c8.ttf +0 -0
- package/dist/564668c1dbc7c9509d9d.png +0 -0
- package/dist/56d4c7ce2d3591a02107.gif +0 -0
- package/dist/5c2e7e18ad426822d1f3.png +0 -0
- package/dist/5dc77fa7c8c5443ffdad.woff +0 -0
- package/dist/5f8db17a927f4c77d0a7.png +0 -0
- package/dist/668.bundled.js +1 -0
- package/dist/688bccf95583ddf2ba42.png +0 -0
- package/dist/6fa2fdf6fafd758dd414.png +0 -0
- package/dist/730.bundled.js +2 -0
- package/dist/730.bundled.js.LICENSE.txt +8 -0
- package/dist/77206a6bb316fa0aded5.eot +0 -0
- package/dist/79f89968996dfdb58aa6.png +0 -0
- package/dist/7a3337626410ca2f4071.woff2 +0 -0
- package/dist/7a8b4f130182d19a2d7c.svg +5034 -0
- package/dist/7c05f33b4fe5f8132439.woff2 +0 -0
- package/dist/8020d5b09a27dc698555.png +0 -0
- package/dist/819.bundled.js +2 -0
- package/dist/819.bundled.js.LICENSE.txt +261 -0
- package/dist/83e9fab1abb3d2242f81.png +0 -0
- package/dist/8ee9649d8f72724d5130.png +0 -0
- package/dist/92a18a81b9c504803c86.svg +1 -0
- package/dist/97bf67372ae8305f61b9.png +0 -0
- package/dist/9bbb245e67a133f6e486.eot +0 -0
- package/dist/CitationJS.bundled.js +1 -0
- package/dist/ListCollectionCreator.bundled.js +1 -0
- package/dist/PairCollectionCreator.bundled.js +1 -0
- package/dist/Screenshot.bundled.js +1 -0
- package/dist/ToolSourceDisplay.bundled.js +1 -0
- package/dist/a037125c3d4eda524f25.png +0 -0
- package/dist/a09a638a8f87fc89302e.gif +0 -0
- package/dist/a278964027d51119ea29.woff2 +0 -0
- package/dist/a287ab24df7971b68177.svg +1 -0
- package/dist/a5d32bbfbaaf71a7ecc3.png +0 -0
- package/dist/a957669c91ed26779fd9.png +0 -0
- package/dist/ab3c84fb519c93c0ad84.png +0 -0
- package/dist/ae74776b8fef546e5723.png +0 -0
- package/dist/analysis.bundled.js +2 -0
- package/dist/analysis.bundled.js.LICENSE.txt +157 -0
- package/dist/b242d750b24c13ee4fea.png +0 -0
- package/dist/b7327582a95704df7902.png +0 -0
- package/dist/ba4f6662a6c78b65053a.png +0 -0
- package/dist/base.css +116 -0
- package/dist/bb58e57c48a3e911f15f.woff +0 -0
- package/dist/bd8529d1e3cf8c91e4e5.png +0 -0
- package/dist/be9ee23c0c6390141475.ttf +0 -0
- package/dist/c07457739c183c845cac.png +0 -0
- package/dist/c17754d370a86615cb76.png +0 -0
- package/dist/c230a1a6a7a48e51acd4.png +0 -0
- package/dist/cafb1233e2036c6ea6f4.gif +0 -0
- package/dist/cead2217a30d76378f64.png +0 -0
- package/dist/d6f18fe0676eef581855.png +0 -0
- package/dist/d878b0a6a1144760244f.woff2 +0 -0
- package/dist/d9c92f3d8392a388dd06.png +0 -0
- package/dist/e1b81c1c01254dc1af32.png +0 -0
- package/dist/e986e970b493125f349f.svg +1 -0
- package/dist/e9cdf785efd3f252cfc4.png +0 -0
- package/dist/ed06734fa163bda8bd39.png +0 -0
- package/dist/ee9fe4949bdb3e27c99f.png +0 -0
- package/dist/eeccf4f66002c6f2ba24.woff +0 -0
- package/dist/ef78e677b9e8abbc3412.png +0 -0
- package/dist/f49a6a2402ca42baecbb.png +0 -0
- package/dist/f80d5ce4e2dd8f120516.png +0 -0
- package/dist/fb4b31fb106e65747455.png +0 -0
- package/dist/fc8034c66691dfad7ec7.gif +0 -0
- package/dist/fd200072a3be000e8fd7.png +0 -0
- package/dist/fda9e3846b8dcf579a1d.png +0 -0
- package/dist/generic.bundled.js +2 -0
- package/dist/generic.bundled.js.LICENSE.txt +103 -0
- package/dist/libs.bundled.js +2 -0
- package/dist/libs.bundled.js.LICENSE.txt +168 -0
- package/dist/toolshed.bundled.js +2 -0
- package/dist/toolshed.bundled.js.LICENSE.txt +38 -0
- package/dist/workflowLayout.bundled.js +1 -0
- package/package.json +199 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see toolshed.bundled.js.LICENSE.txt */
|
|
2
|
+
(()=>{var __webpack_modules__={36156:e=>{var t={__root:{"Analyze Data":!1,Workflow:!1,"Shared Data":!1,"Data Libraries":!1,Histories:!1,Workflows:!1,Visualizations:!1,Pages:!1,Visualization:!1,"New Track Browser":!1,"Saved Visualizations":!1,Admin:!1,Help:!1,Support:!1,Search:!1,"Mailing Lists":!1,Videos:!1,Wiki:!1,"How to Cite Galaxy":!1,"Interactive Tours":!1,User:!1,Login:!1,Register:!1,"Login or Register":!1,"Logged in as":!1,Preferences:!1,"Custom Builds":!1,Logout:!1,"Saved Histories":!1,"Saved Datasets":!1,"Saved Pages":!1,"Account and saved data":!1,"Account registration or login":!1,"Support, contact, and community":!1,"Administer this Galaxy":!1,"Visualize datasets":!1,"Access published resources":!1,"Chain tools into workflows":!1,"Analysis home view":!1,"History Lists":!1,"Histories Shared with Me":!1,"Current History":!1,"Create New":!1,"Copy History":!1,"Share or Publish":!1,"Show Structure":!1,"Extract Workflow":!1,"Delete Permanently":!1,"Dataset Actions":!1,"Copy Datasets":!1,"Dataset Security":!1,"Resume Paused Jobs":!1,"Collapse Expanded Datasets":!1,"Unhide Hidden Datasets":!1,"Delete Hidden Datasets":!1,"Purge Deleted Datasets":!1,Downloads:!1,"Export Tool Citations":!1,"Export History to File":!1,"Other Actions":!1,"Import from File":!1,Webhooks:!1,"This history is empty":!1,"No matching datasets found":!1,"An error occurred while getting updates from the server":!1,"Please contact a Galaxy administrator if the problem persists":!1,"search datasets":!1,"You are currently viewing a deleted history!":!1,"You are over your disk quota":!1,"Tool execution is on hold until your disk usage drops below your allocated quota":!1,All:!1,None:!1,"For all selected":!1,"Edit history tags":!1,"Edit history annotation":!1,"Click to rename history":!1,"Operations on multiple datasets":!1,"Hide datasets":!1,"Unhide datasets":!1,"Delete datasets":!1,"Undelete datasets":!1,"Permanently delete datasets":!1,"This will permanently remove the data in your datasets. Are you sure?":!1,Dataset:!1,Annotation:!1,"This history is empty. Click 'Get Data' on the left tool menu to start":!1,"You must be logged in to create histories":!1,"Unable to purge dataset":!1,"Cannot display datasets removed from disk":!1,"This dataset must finish uploading before it can be viewed":!1,"This dataset is not yet viewable":!1,"View data":!1,Download:!1,"Download dataset":!1,"Additional files":!1,"View details":!1,"This is a new dataset and not all of its data are available yet":!1,"You do not have permission to view this dataset":!1,"The job creating this dataset was cancelled before completion":!1,"This job is waiting to run":!1,"This dataset is currently uploading":!1,"Metadata is being auto-detected":!1,"This job is currently running":!1,'This job is paused. Use the "Resume Paused Jobs" in the history menu to resume':!1,"An error occurred with this dataset":!1,"No data":!1,"An error occurred setting the metadata for this dataset":!1,"There was an error getting the data for this dataset":!1,"This dataset has been deleted and removed from disk":!1,"This dataset has been deleted":!1,"This dataset has been hidden":!1,format:!1,database:!1,"Edit attributes":!1,"Cannot edit attributes of datasets removed from disk":!1,"Undelete dataset to edit attributes":!1,"This dataset must finish uploading before it can be edited":!1,"This dataset is not yet editable":!1,Delete:!1,"Dataset is already deleted":!1,"View or report this error":!1,"Run this job again":!1,Visualize:!1,"Visualize in":!1,"Undelete it":!1,"Permanently remove it from disk":!1,"Unhide it":!1,"You may be able to":!1,"set it manually or retry auto-detection":!1,"Edit dataset tags":!1,"Edit dataset annotation":!1,"Tool Help":!1,"Reset passwords":!1,"Search Tool Shed":!1,"Monitor installing repositories":!1,"Manage installed tools":!1,"Reset metadata":!1,"Download local tool":!1,"Tool lineage":!1,"Reload a tool's configuration":!1,"View Tool Error Logs":!1,"Manage Allowlist":!1,"Manage Tool Dependencies":!1,Users:!1,Groups:!1,"API keys":!1,"Impersonate a user":!1,Data:!1,Quotas:!1,Roles:!1,"Local data":!1,"Form Definitions":!1,"Enable/Disable Window Manager":!1,"Show/Hide Window Manager":!1,Tags:!1,"Edit annotation":!1,Subscript:!1,Superscript:!1,Trackster:!1,"Any additional comments you can provide regarding what you were doing at the time of the bug.":!1,"Your email address":!1,Report:!1,"Error Report":!1,"Dataset details":!1,"Save permissions.":!1,"Change the datatype to a new type.":!1,"Convert the datatype to a new format.":!1,"Save attributes of the dataset.":!1,"Change data type":!1,"Edit dataset attributes":!1,"Save permissions":!1,"Manage dataset permissions":!1,"Change datatype":!1,"Convert datatype":!1,"Convert to new format":!1,Save:!1,Permissions:!1,Datatypes:!1,Convert:!1,Attributes:!1,"Import into History":!1,"Location Details":!1,"Deleting selected items":!1,"Please select folders or files":!1,"Please enter paths to import":!1,"Adding datasets from your history":!1,"Create New Folder":!1,"Create New Library":!1,Tours:!1,"Click here to sign out of all sessions.":!1,"Add or remove custom builds using history datasets.":!1,"Associate OpenIDs with your account.":!1,"Customize your Toolbox by displaying or omitting sets of Tools.":!1,"Access your current API key or create a new one.":!1,"Allows you to change your login credentials.":!1,"User preferences":!1,"Sign out":!1,"Manage custom builds":!1,"Manage OpenIDs":!1,"Manage Toolbox filters":!1,"Manage API Key":!1,"Set dataset permissions for new histories":!1,"Change Password":!1,"Manage Information":!1,"Configured Tool Sheds":!1,"Repository Queue":!1,"Repository Status":!1,"Workflows Missing Tools":!1,"See in Tool Shed":!1,Requirements:!1,Share:!1,"Workflow submission failed":!1,"Run workflow":!1,"Job submission failed":!1,Execute:!1,"Tool request failed":!1,"Copy and insert individual steps":!1,Warning:!1,"An email notification will be sent when the job has completed.":!1,"Add a step label.":!1,"Assign columns":!1,"Delete this repeat block":!1,placeholder:!1,Repeat:!1,Error:!1,Close:!1,"Download from web or upload from disk":!1,Collection:!1,Composite:!1,Regular:!1,"Upload configuration":!1,"FTP files":!1,Reset:!1,Pause:!1,Start:!1,"Choose FTP file":!1,"Choose local file":!1,Build:!1,"Choose FTP files":!1,"Choose local files":!1,Select:!1,"Create a collection of paired datasets":!1,"View all histories":!1,"History options":!1,"Refresh history":!1,"View error logs":!1,"View lineage":!1,"Manage dependencies":!1,"Manage allowlist":!1,"Manage metadata":!1,"Manage tools":!1,"Monitor installation":!1,"Install new tools":!1,"Tool Management":!1,Forms:!1,"User Management":!1,"Manage jobs":!1,"Display applications":!1,"Data tables":!1,"Data types":!1,Server:!1,"Could Not Save":!1,"Saving...":!1,Settings:!1,"Add tracks":!1,"New Visualization":!1,"Add Data to Saved Visualization":!1,"Close visualization":!1,Circster:!1,Bookmarks:!1,"Add group":!1,"Remove parameter from tree":!1,"Add parameter to tree":!1,Remove:!1,"Select datasets for new tracks":!1,Libraries:!1,"Zoom out":!1,"Zoom in":!1,"Phyloviz Help":!1,"Save visualization":!1,"PhyloViz Settings":!1,Title:!1,"Filtering Dataset":!1,"Filter Dataset":!1,"Show individual tracks":!1,"Trackster Error":!1,"Tool parameter space visualization":!1,Tool:!1,"Set as overview":!1,"Set display mode":!1,Filters:!1,"Show composite track":!1,"Edit settings":!1,"Test title":!1,"Test Title":!1,"Test button":!1,title:!1,"Create new Build":!1,"Delete custom build.":!1,"Provide the data source.":!1,"Next in History":!1,"Previous in History":!1,"Chat online":!1,"Multiple collections":!1,"Dataset collections":!1,"Dataset collection":!1,"Multiple datasets":!1,"Single dataset":!1,"Download from URL or upload files from disk":!1,"tool tooltip":!1},__ja:{"Analyze Data":"データ解析",Workflow:"ワークフロー","Shared Data":"共有データ","Data Libraries":"データライブラリ",Histories:"ヒストリー",Workflows:"ワークフロー",Visualizations:"可視化",Pages:"ページ",Visualization:"可視化","New Track Browser":"新しい Track Browser","Saved Visualizations":"保存された可視化",Admin:"管理者",Help:"ヘルプ",Support:"サポート",Search:"検索","Mailing Lists":"メーリングリスト",Videos:"動画","Community Hub":"コミュニティハブ","How to Cite Galaxy":"Galaxy を引用する方法","Interactive Tours":"インタラクティブツアー",User:"ユーザー",Login:"ログイン",Register:"登録","Login or Register":"ログイン/登録",Preferences:"設定","Custom Builds":"カスタムビルド",Logout:"ログアウト","Saved Histories":"保存されたヒストリ","Saved Datasets":"保存されたデータセット","Saved Pages":"保存されたページ","Account and saved data":"アカウントと保存されたデータ","Account registration or login":"アカウントの登録またはログイン","Support, contact, and community":"サポート、コンタクト、コミュニティ","Administer this Galaxy":"この Galaxy の管理者","Visualize datasets":"データセットの可視化","Access published resources":"パブリッシュされたリソースへアクセス","Chain tools into workflows":"ツールとワークフローの連携","Analysis home view":"解析ホーム","History Lists":"ヒストリーリスト","Histories Shared with Me":"私と共有されているヒストリー","Current History":"現在のヒストリー","Create New":"新しく作成","Copy History":"ヒストリーをコピーする","Share or Publish":"共有またはパブリッシュ","Show Structure":"構造を見る","Extract Workflow":"ワークフローを抽出","Delete Permanently":"永久に削除","Dataset Actions":"データセットの操作","Copy Datasets":"データセットをコピー","Dataset Security":"データセットのセキュリティ","Resume Paused Jobs":"一時停止したジョブの再開","Collapse Expanded Datasets":"展開されたデータセットを畳む","Unhide Hidden Datasets":"隠されたデータセットを表示する","Delete Hidden Datasets":"隠されたデータセットを削除する","Purge Deleted Datasets":"削除されたデータセットを永久に削除",Downloads:"ダウンロード","Export Tool Citations":"ツールの引用をエクスポート","Export History to File":"ヒストリーをファイルへエクスポート","Other Actions":"その他のアクション","Import from File":"ファイルからの読み込み",Webhooks:"Webhooks","This history is empty":"ヒストリーは空です","No matching datasets found":"一致するデータセットが見つかりませんでした","Search datasets":"データセットを検索する","You are currently viewing a deleted history!":"消去したヒストリーをみています。","You are over your disk quota":"あなたはディスククォータを超えている",All:"一式",None:"なし","For all selected":"各項目を","Edit history tags":"ヒストリーのタグを編集","Edit history annotation":"ヒストリーのアノテーションを編集","Click to rename history":"ヒストリーの名前を変更するにはクリック","Operations on multiple datasets":"複数のデータセットに対する操作","Permanently delete datasets":"永久にデータセットを削除","This will permanently remove the data in your datasets. Are you sure?":"これは永久にあなたのデータセット内のデータを削除します。本当に?",Dataset:"データセット","This history is empty. Click 'Get Data' on the left tool menu to start":"ヒストリーは空です。解析をはじめるには、左パネルの 'データ取得' をクリック","You must be logged in to create histories":"ヒストリーを作成するためにはログインする必要があります","View data":"データを表示",Download:"ダウンロード","Download dataset":"データセットをダウンロード","View details":"細部を表示","This job is waiting to run":"ジョブは実行待ちです","This job is currently running":"ジョブは実行中です","An error occurred with this dataset":"このジョブの実行中に発生したエラー","No data":"データ無し","This dataset has been deleted and removed from disk":"このデータセットは、永続的にディスクから削除されました","This dataset has been deleted":"このデータセットは削除されました","This dataset has been hidden":"このデータセットは、非表示にされた",format:"フォーマット",database:"データベース","Edit attributes":"変数を編集する",Delete:"削除する","View or report this error":"このエラーを届け出る","Run this job again":"もう一度このジョブを実行する",Visualize:"可視化する","Undelete it":"復元する","Permanently remove it from disk":"永久にディスクから削除","Unhide it":"非表示解除する","Search Tool Shed":"Tool Shed で探す","Search Tool Shed (Beta)":"Tool Shed (Beta) で探す","Monitor installing repositories":"インストールレポジトリのモニタ","Manage installed tools":"インストールしたツールの管理","Reset metadata":"メタデータのリセット","Download local tool":"ローカルツールのダウンロード","Tool lineage":"ツール系統","Reload a tool's configuration":"ツールのコンフィグのリロード","View Tool Error Logs":"ツールのエラーログ","Manage Allowlist":"表示ホワイトリストの管理","Manage Tool Dependencies":"ツール依存関係の管理",Users:"ユーザー",Groups:"グループ","API keys":"API キー","Impersonate a user":"ユーザー偽装",Data:"データ",Quotas:"クォータ",Roles:"ロール","Local data":"ローカルデータ","Form definitions":"フォーム定義",Administration:"管理",Server:"サーバー","Tools and Tool Shed":"ツールと Tool Shed","User Management":"ユーザ管理","Form Definitions":"フォーム定義","Your workflows":"あなたのワークフロー"},__fr:{"Analyze Data":"Analyse de données",Workflow:"Workflow","Shared Data":"Données partagées","Data Libraries":"Bibliothèque de données",Histories:!1,Workflows:!1,Visualizations:"Visualisations",Pages:"Pages",Visualization:!1,"New Track Browser":"Nouveau Navigateur de Tracks/Pistes","Saved Visualizations":"Visualisations sauvegardées",Admin:"Admin",Help:"Aide",Support:"Assistance",Search:!1,"Mailing Lists":"Liste de diffusion",Videos:"Vidéos","Community Hub":"Documentations","How to Cite Galaxy":"Comment citer Galaxy","Interactive Tours":"Guides interactifs",User:"Utilisateur",Login:"Authentification",Register:"Enregistrement","Login or Register":"Authentification et Enregistrement","Logged in as":"Authentifié en tant que",Preferences:"Préférences","Custom Builds":"Mes génomes Builds de référence",Logout:"Déconnexion","Saved Histories":"Historiques sauvegardés","Saved Datasets":"Jeux de données sauvegardés","Saved Pages":"Pages sauvegardées","Account and saved data":"Compte et données sauvegardées","Account registration or login":"Enregistrement ou authentification","Support, contact, and community":"Support,contact et communauté","Administer this Galaxy":"Outils Admin","Visualize datasets":"Visualiser les jeux de données","Access published resources":"Accéder aux données partagées","Chain tools into workflows":"Relier outils dans un workflow","Analysis home view":"Accueil analyse de données","History Lists":"Tableaux des historiques","Histories Shared with Me":"Historiques partagés avec moi","Current History":"Cet Historique","Create New":"Créer un nouveau","Copy History":"Copier l'Historique","Share or Publish":"Partager et publier","Show Structure":"Montrer la structure","Extract Workflow":"Extraire un Workflow","Delete Permanently":"Supprimer définitivement","Dataset Actions":"Actions sur les jeux de données","Copy Datasets":"Copier des jeux de données","Dataset Security":"Permissions/Sécurité","Resume Paused Jobs":"Reprendre les processus en pause","Collapse Expanded Datasets":"Réduire les données étendues","Unhide Hidden Datasets":"Afficher les données cachées","Delete Hidden Datasets":"Supprimer les données cachées","Purge Deleted Datasets":"Purger les données supprimées",Downloads:"Télécharger","Export Tool Citations":"Exporter les citations des outils","Export History to File":"Exporter l'Historique dans un fichier","Other Actions":"Autres actions","Import from File":"Importer depuis un fichier",Webhooks:"Webhooks","This history is empty":"Cet historique est vide","No matching datasets found":"Aucunes données correspondantes n'ont été trouvées","An error occurred while getting updates from the server":"Une erreur s'est produite lors de la réception des données depuis le serveur","Please contact a Galaxy administrator if the problem persists":"Veuillez contacter un administrateur de l'instance Galaxy si ce problème persiste","search datasets":"Rechercher des données","You are currently viewing a deleted history!":"Vous consultez actuellement un historique supprimé!","You are over your disk quota":"Vous avez dépassé votre quota d'espace disque","Tool execution is on hold until your disk usage drops below your allocated quota":"L'exécution de l'outil est en attente tant que votre utilisation d'espace disque dépasse le quota attribué",All:"Tout",None:"Aucun","For all selected":"Pour toute la sélection","Edit history tags":"Editer les mots-clés de l'historique","Edit history annotation":"Editer l'annotation de l'historique","Click to rename history":"Cliquer pour renommer l'historique","Operations on multiple datasets":"Opérer sur plusieurs jeux de données en même temps","Hide datasets":"Cacher les jeux de données","Unhide datasets":"Afficher les jeux de données cachés","Delete datasets":"Supprimer les jeux de données","Undelete datasets":"Restaurer les jeux de données supprimés","Permanently delete datasets":"Supprimer définitivement les jeux de données","This will permanently remove the data in your datasets. Are you sure?":"Cela supprimera de manière permanente les données de votre historique. Êtes-vous certain?",Dataset:"Jeu de données",Annotation:"Annotation","This history is empty. Click 'Get Data' on the left tool menu to start":"Cet historique est vide. Cliquer sur 'Get Data' au niveau du menu d'outils à gauche pour démarrer","You must be logged in to create histories":"Vous devez être connecté pour créer un historique","load your own data":"Charger vos propres données","get data from an external source":"Charger des données depuis une source externe","Include Deleted Datasets":"Inclure les jeux de données supprimés","Include Hidden Datasets":"Inclure les jeux de données cachés","Unable to purge dataset":"Impossible de purger le jeu de données","Cannot display datasets removed from disk":"Impossible de visualiser les jeux de données supprimés du disque","This dataset must finish uploading before it can be viewed":"Le jeu de données doit être totalement téléversé avant de pouvoir être visualiser","This dataset is not yet viewable":"Ce jeu de données n'est pas visualisable","View data":"Voir les données",Download:!1,"Download dataset":"Télécharger le jeu de données","Additional files":"Fichiers additionnels","View details":"Voir les détails","This is a new dataset and not all of its data are available yet":"Il s'agit d'un nouveau jeu de données et seule une partie des données est accessible pour le moment","You do not have permission to view this dataset":"Vous n'avez pas la permission de voir ce jeu de données","The job creating this dataset was cancelled before completion":"Le processus à l'origine de ce jeu de données a été annulé prématurément","This job is waiting to run":"Ce calcul est en attente de traitement","This dataset is currently uploading":"Ce jeu de données est en cours de téléversement","Metadata is being auto-detected":"Les métadonnées sont auto-détectées","This job is currently running":"Le traitement est en cours",'This job is paused. Use the "Resume Paused Jobs" in the history menu to resume':'Ce traitement est en pause. Utilisez le "Relancer les traitements en pause" dans le menu d\'historique pour le relancer',"An error occurred with this dataset":"Une erreur est survenue avec ce jeu de données","No data":"Aucune donnée","An error occurred setting the metadata for this dataset":"Une erreur est survenue pendant la récupération des métadonnées de ce jeu de données","There was an error getting the data for this dataset":"Il est survenu une erreur durant la récupération du contenu de ce jeu de données","This dataset has been deleted and removed from disk":"Ce jeu de données a été supprimé et effacé du disque","This dataset has been deleted":"Ce jeu de données a été supprimé","This dataset has been hidden":"Ce jeu de données a été caché",format:"format",database:"génome de référence","Edit attributes":"Editer les attributs","Cannot edit attributes of datasets removed from disk":"Impossible d'éditer les attributs de jeux de données effacés du disque","Undelete dataset to edit attributes":"Restaurer le jeu de données pour en éditer les attributs","This dataset must finish uploading before it can be edited":"Ce jeu de données doit être entièrement téléversé avant toute modification","This dataset is not yet editable":"Ce jeu de données n'est pas encore éditable",Delete:"Supprimer","Dataset is already deleted":"Le jeu de données est déjà supprimé","View or report this error":"Voir ou remonter cette erreur","Run this job again":"Exécuter ce traitement à nouveau",Visualize:!1,"Visualize in":"Visualiser via","Undelete it":"Restaurer","Permanently remove it from disk":"Supprimer définitivement du disque","Unhide it":"Rendre visible","You may be able to":"Vous devriez être en mesure de","set it manually or retry auto-detection":"Traitez le manuellement ou retenter la détection automatique","Edit dataset tags":"Editer les mots-clés du jeu de données","Edit dataset annotation":"Editer les annotations du jeu de données","Tool Help":"Aide outil","Reset passwords":"Réinitialiser les mots de passe","Search Tool Shed":"Chercher via un Tool Shed","Monitor installing repositories":"Contrôler les dépôts installés","Manage installed tools":"Gérer les outils installés","Reset metadata":"Réinitialiser les métadonnées","Download local tool":"Télécharger un outil en local","Tool lineage":"Affiliation des outils","Reload a tool's configuration":"Recharger une configuration d'outils","View Tool Error Logs":"Voir les logs d'erreur d'outils","Manage Allowlist":"Gérer la liste autorisée d'outils graphiques","Manage Tool Dependencies":"Gérer les dépendances d'outils",Users:!1,Groups:!1,"API keys":"Clé d'API","Impersonate a user":"Prendre la place d'un utilisateur",Data:!1,Quotas:!1,Roles:!1,"Local data":"Données locales","Form Definitions":"Définitions de formulaires","Enable/Disable Window Manager":"Activer/Désactiver la visu Window Manager","Show/Hide Window Manager":"Montrer/cacher la visu Window Manager",Tags:"Mots-clés","Edit annotation":"Editer les annotations",Subscript:!1,Superscript:!1,Trackster:!1,"Any additional comments you can provide regarding what you were doing at the time of the bug.":"N'importe quel commentaire que vous pouvez fournir concernant ce que vous faisiez lorsque le bug est apparu","Your email address":"Votre adresse e-mail",Report:!1,"Error Report":"Rapport d'erreur","Dataset details":"Détails du jeu de données","Save permissions.":"Sauvegarder les permissions","Change the datatype to a new type.":"Changer en un nouveau format de données","Convert the datatype to a new format.":"Convertir le format de données","Save attributes of the dataset.":"Sauvegarder les attributs du jeu de données","Change data type":"Changer le format de données","Edit Dataset Attributes":"Modifier les attributs du jeu de données","Save permissions":"Sauvegarder les permissions","Manage dataset permissions":"Gérer les permissions sur les jeux de données","Change datatype":"Changer le format de données","Convert datatype":"Convertir le format de données","Convert to new format":"Convertir en un nouveau format de données",Save:!1,Permissions:!1,Datatypes:!1,Convert:!1,Attributes:!1,"Import into History":"Importer dans l'historique","Location Details":"Détails de localisation","Deleting selected items":"Suppression des objets sélectionnés","Please select folders or files":"S'il vous plaît sélectionnez des dossiers ou fichiers","Please enter paths to import":"S'il vous plaît entrer des chemins/URLs à importer","Adding datasets from your history":"Ajouts de jeux de données à partir de votre historique","Create New Folder":"Créer un nouveau dossier","Create New Library":"Créer une nouvelle bibliothèque",Tours:!1,"Click here to sign out of all sessions.":!1,"Add or remove custom builds using history datasets.":!1,"Associate OpenIDs with your account.":!1,"Customize your Toolbox by displaying or omitting sets of Tools.":!1,"Access your current API key or create a new one.":!1,"Enable or disable the communication feature to chat with other users.":!1,"Allows you to change your login credentials.":!1,"User preferences":!1,"Sign out":!1,"Manage custom builds":!1,"Manage OpenIDs":!1,"Manage Toolbox filters":!1,"Manage API Key":!1,"Set dataset permissions for new histories":!1,"Change communication settings":!1,"Change Password":!1,"Manage Information":!1,"Configured Tool Sheds":!1,"Repository Queue":!1,"Repository Status":!1,"Workflows Missing Tools":!1,"See in Tool Shed":!1,Requirements:!1,Share:!1,"Workflow submission failed":!1,"Run workflow":!1,"Job submission failed":!1,Execute:!1,"Tool request failed":!1,"Copy and insert individual steps":!1,Warning:!1,"An email notification will be sent when the job has completed.":!1,"Add a step label.":!1,"Assign columns":!1,"Delete this repeat block":!1,placeholder:!1,Repeat:!1,Error:!1,Close:!1,"Download from web or upload from disk":!1,Collection:!1,Composite:!1,Regular:!1,"Upload configuration":!1,"FTP files":!1,Reset:!1,Pause:!1,Start:!1,"Choose FTP file":!1,"Choose local file":!1,Build:!1,"Choose FTP files":!1,"Choose local files":!1,Select:!1,"Create a collection of paired datasets":!1,"View all histories":!1,"History options":!1,"Refresh history":!1,"View error logs":!1,"View lineage":!1,"Manage dependencies":!1,"Manage allowlist":!1,"Manage metadata":!1,"Manage tools":!1,"Monitor installation":!1,"Install new tools":!1,"Tool Management":!1,Forms:!1,"User Management":!1,"Manage jobs":!1,"Display applications":!1,"Data tables":!1,"Data types":!1,Server:!1,"Could Not Save":!1,"Saving...":!1,Settings:!1,"Add tracks":!1,"New Visualization":!1,"Add Data to Saved Visualization":!1,"Close visualization":!1,Circster:!1,Bookmarks:!1,"Add group":!1,"Remove parameter from tree":!1,"Add parameter to tree":!1,Remove:!1,"Select datasets for new tracks":!1,Libraries:!1,"Zoom out":!1,"Zoom in":!1,"Phyloviz Help":!1,"Save visualization":!1,"PhyloViz Settings":!1,Title:!1,"Filtering Dataset":!1,"Filter Dataset":!1,"Show individual tracks":!1,"Trackster Error":!1,"Tool parameter space visualization":!1,Tool:!1,"Set as overview":!1,"Set display mode":!1,Filters:!1,"Show composite track":!1,"Edit settings":!1,"Test title":!1,"Test Title":!1,"Test button":!1,title:!1,"Create new Build":!1,"Delete custom build.":!1,"Provide the data source.":!1,"Next in History":!1,"Previous in History":!1,"Chat online":!1,"Multiple collections":!1,"Dataset collections":!1,"Dataset collection":!1,"Multiple datasets":!1,"Single dataset":!1,"Download from URL or upload files from disk":!1,"tool tooltip":!1},__zh:{"Analyze Data":"数据分析",Workflow:"工作流程","Shared Data":"数据共享","Data Libraries":"数据库","Published Histories":"历史","Published Workflows":"流程","Published Visualizations":"可视化","Published Pages":"页面",Visualization:"可视化","New Track Browser":"创建 Track Browser","Saved Visualizations":"已保存的可视化","Create Visualization":"创建可视化",Admin:"管理员",Help:"帮助",Support:"支持",Search:"搜索","Mailing Lists":"邮件列表",Videos:"视频",Wiki:!1,"How to Cite Galaxy":"引用","Interactive Tours":"使用引导",User:"账号管理",Login:"登陆",Register:"注册","Login or Register":"注册登陆","Logged in as":"您已登陆为",Preferences:"用户偏好性","Custom Builds":"自定义构建集",Logout:"退出","Saved Histories":"保存的历史","Saved Datasets":"保存的数据集","Saved Pages":"保存的页面",Datasets:"我的数据集",Histories:"我的历史","Histories shared with me":"分享给我的历史",Pages:"我的页面",Visualizations:"我的可视化","Account and saved data":"账号及数据保存","Account registration or login":"注册或登录","Support, contact, and community":"社区支持与联系","Administer this Galaxy":"管理您的 Galaxy","Visualize datasets":"数据集可视化","Access published resources":"访问已发布的资源","Chain tools into workflows":"将工具链接到流程中","Analysis home view":"数据分析主页",History:"历史","History Actions":"历史记录操作","History Lists":"历史记录列表","Histories Shared with Me":"分享给您历史","Current History":"当前历史记录","Create New":"创建新的历史",Copy:"复制历史","Share or Publish":"分享或发布历史","Show Structure":"展示结构","Extract Workflow":"提取为工作流","Set Permissions":"设置权限","Make Private":"私有化数据",Delete:"删除","Delete Permanently":"永久删除","Dataset Actions":"数据集操作","Copy Datasets":"复制数据集","Dataset Security":"数据集安全","Resume Paused Jobs":"恢复已暂停的任务","Collapse Expanded Datasets":"折叠已展开的数据集","Unhide Hidden Datasets":"取消隐藏的数据集","Delete Hidden Datasets":"删除隐藏的数据集","Purge Deleted Datasets":"清除已删除的数据集",Downloads:"下载","Export Tool Citations":"导出工具引用的文献","Export History to File":"导出历史到文件","Other Actions":"其他操作","Import from File":"从文件导入",Webhooks:!1,"This history is empty":"您的历史记录为空","No matching datasets found":"未找到匹配的数据集","An error occurred while getting updates from the server":"服务器更新时出现错误","Please contact a Galaxy administrator if the problem persists":"如果问题仍然存在,请联系 Galaxy 管理员","An error was encountered while <% where %>":"当执行以下操作时: <% where %>, 出现错误","search datasets":"搜索数据集","You are currently viewing a deleted history!":"您正在查看已删除的历史记录!","You are over your disk quota":"您已超出了系统分配的磁盘配额","Tool execution is on hold until your disk usage drops below your allocated quota":"工具暂停执行,直到您的磁盘使用量低于您所分配的配额",All:"全选",None:"反选","For all selected":"为每个选定","Edit history tags":"编辑历史标签","Edit history annotation":"编辑历史备注","Click to rename history":"点击以重命名历史","Operations on multiple datasets":"编辑多个数据集","Hide datasets":"隐藏数据集","Unhide datasets":"显示数据集","Delete datasets":"删除数据集","Undelete datasets":"取消删除数据集","Permanently delete datasets":"永久删除数据集","This will permanently remove the data in your datasets. Are you sure?":"本次操作将从您的数据集中用久移除数据。请再次确定?",Dataset:"数据集",Annotation:"备注","This history is empty. Click 'Get Data' on the left tool menu to start":"您的历史记录为空,请单击左边窗格中‘获取数据’","You must be logged in to create histories":"您必须登录后才能创建历史","You can <% loadYourOwn %> or <% externalSource %>":"您可以 <% loadYourOwn %> 或者 <% externalSource %>","You can ":"您可以 "," or ":" 或者 ","load your own data":"上传您的个人数据","get data from an external source":"从其他来源上传数据.","Include Deleted Datasets":"包括删除数据集","Include Hidden Datasets":"包括隐藏数据集","Unable to purge dataset":"无法清除数据集","Cannot display datasets removed from disk":"无法显示已从磁盘中移除的数据集","This dataset must finish uploading before it can be viewed":"此数据集必须先完成上传, 才能查看","This dataset is not yet viewable":"此数据集暂时不可见","View data":"查看数据",Download:"下载","Download dataset":"下载数据集","Additional files":"其他文件","View details":"查看详情","This is a new dataset and not all of its data are available yet":"这是一个新的数据集,并不是所有与它关联的数据都可用","You do not have permission to view this dataset":"您无权查看此数据集","The job creating this dataset was cancelled before completion":"创建此数据集的任务在完成之前已被取消","This job is waiting to run":"您的任务正在等待运行","This dataset is currently uploading":"领的数据集正在上传中","Metadata is being auto-detected":"元数据正在被自动检测中","This job is currently running":"您的任务正在运行中",'This job is paused. Use the "Resume Paused Jobs" in the history menu to resume':'此任务已暂停。您可以使用历史菜单中的 "恢复已暂停的任务" 来恢复',"An error occurred with this dataset":"此数据集发生错误","No data":"没有数据","An error occurred setting the metadata for this dataset":"设置此数据集的元数据时发生错误","There was an error getting the data for this dataset":"获取此数据集的数据时出现错误","This dataset has been deleted and removed from disk":"此数据集已被删除且已经从系统磁盘中被清空","This dataset has been deleted":"此数据集已被删除","This dataset has been hidden":"此数据集已被隐藏",format:"格式",database:"数据库","Edit attributes":"编辑属性","Cannot edit attributes of datasets removed from disk":"无法编辑已从磁盘中移除的数据集的属性","Undelete dataset to edit attributes":"取消删除数据集以编辑属性","This dataset must finish uploading before it can be edited":"该数据集必须先上传完成, 才能编辑","This dataset is not yet editable":"该数据集不可编辑","Dataset is already deleted":"数据集已被删除","View or report this error":"查看或报告当前错误","Run this job again":"重新运行当前任务",Visualize:"可视化","Visualize in":"的可视化","Undelete it":"取消删除","Permanently remove it from disk":"从磁盘中永久移除","Unhide it":"取消隐藏","You may be able to":"您可以","set it manually or retry auto-detection":"手动设置或重新执行自动检测","Edit dataset tags":"编辑数据集标签","Edit dataset annotation":"编辑数据集备注","Tool Help":"工具帮助","Reset passwords":!1,"Search Tool Shed":!1,"Monitor installing repositories":!1,"Manage installed tools":!1,"Reset metadata":!1,"Download local tool":!1,"Tool lineage":!1,"Reload a tool's configuration":!1,"View Tool Error Logs":!1,"Manage Display Whitelist":!1,"Manage Tool Dependencies":!1,Users:!1,Groups:!1,"API keys":!1,"Impersonate a user":!1,Data:!1,Quotas:!1,Roles:!1,"Local data":!1,"Form Definitions":!1,"Enable/Disable Window Manager":"启用/禁用 Window Manager","Show/Hide Window Manager":"显示/隐藏 Window Manager",Tags:"标签","Edit annotation":"编辑备注",Subscript:"下标",Superscript:"上标",Trackster:!1,"Any additional comments you can provide regarding what you were doing at the time of the bug.":"您可以提供的关于 bug 发生时您正在做什么的任何信息。","Your email address":"您的邮箱地址",Report:"报告","Error Report":"错误报告","Dataset details":"数据集详情","Save permissions.":"保存权限","Change the datatype to a new type.":"将数据类型更改为新类型。","Convert the datatype to a new format.":"将数据类型更改为新的格式。","Save attributes of the dataset.":"保存数据集属性。","Change data type":"更改数据类型","Edit Dataset Attributes":"编辑数据集属性","Save permissions":"保存权限","Manage dataset permissions":"管理数据集权限","Change datatype":"更改数据类型","Convert datatype":"转换数据类型","Convert to new format":"转换成新格式",Save:"保存",Permissions:"权限",Datatypes:"数据类型",Convert:"转换",Attributes:"属性","Import into History":"导入到历史记录中","Location Details":"位置的细节","Deleting selected items":"删除选择的条目","Please select folders or files":"请选择目录或者文件","Please enter paths to import":"请填写路径进行导入","Adding datasets from your history":"从您的历史记录中添加数据集","Create New Folder":"创建新的目录","Create New Library":"创建新的库",Tours:"引导","Click here to sign out of all sessions.":"点击这里退出所有会话。","Add or remove custom builds using history datasets.":"从历史的数据集中添加或者移除自定义的构建集。","Associate OpenIDs with your account.":"把 OpenIDs 和您的账号进行关联。","Customize your Toolbox by displaying or omitting sets of Tools.":"通过显示或删除工具来自定义您的工具箱。","Access your current API key or create a new one.":"访问您当前的 API密钥或创建一个新的密钥。","Enable or disable the communication feature to chat with other users.":"启用或禁用与其他用户聊天的通信功能。","Allows you to change your login credentials.":"允许您更改您的登录凭证。","User preferences":"用户偏好性","Sign out":"退出","Manage custom builds":"管理您自定义的构建集","Manage OpenIDs":"管理 OpenIDs","Manage Toolbox filters":"管理工具箱过滤器","Manage API Key":"管理您的 API 密钥","Set dataset permissions for new histories":"为新的历史设置数据集权限","Change communication settings":"修改通信设置","Change Password":"更改密码","Manage Information":"管理您的信息","Configured Galaxy Tool Sheds":"配置 Galaxy Tool Sheds","Repository Installation Queue":"存储库安装队列","Repository Status":"存储卡状态","Workflows Missing Tools":!1,"See in Tool Shed":!1,Requirements:!1,Share:"分享","Workflow submission failed":!1,"Run workflow":!1,"Job submission failed":"任务提交失败",Execute:"执行","Tool request failed":"工具请求失败","Email notification":"邮件提醒","Send an email notification when the job completes.":"任务完成后发送电子邮件通知。",Workflows:"流程","Copy and insert individual steps":!1,Warning:"警告","An email notification will be sent when the job has completed.":!1,"Add a step label.":!1,"Assign columns":!1,"Delete this repeat block":!1,placeholder:!1,Repeat:!1,"Browse GenomeSpace":!1,Browse:!1,Error:"错误",Close:"关闭","Download from web or upload from disk":"从网页获取或者从本地磁盘上传数据",Collection:"集合数据",Composite:"复合数据",Regular:"常规数据","Upload configuration":"上传配置","FTP files":"FTP 文件",Reset:"重置",Pause:"暂停",Start:"开始","Choose FTP file":"选择 FTP 文件","Choose local file":"选择本地磁盘文件",Build:"构建集","Choose FTP files":"选择 FTP 文件","Choose local files":"选择本地磁盘文件","Paste/Fetch data":"粘贴数据或链接",Select:"选择","Create a collection of paired datasets":"创建一个配对数据的集合","View all histories":"查看所有的历史记录","History options":"历史记录选项","Refresh history":"刷新历史记录","View error logs":!1,"View lineage":!1,"Manage dependencies":!1,"Manage whitelist":!1,"Manage metadata":!1,"Manage tools":!1,"Monitor installation":!1,"Install new tools":!1,"Tool Management":!1,Forms:!1,"User Management":!1,"Manage jobs":!1,"Display applications":!1,"Data tables":!1,"Data types":!1,Server:!1,"Could Not Save":!1,"Saving...":!1,Settings:!1,"Add tracks":!1,"New Visualization":!1,"Add Data to Saved Visualization":!1,"Close visualization":!1,Circster:!1,Bookmarks:!1,"Add group":!1,"Remove parameter from tree":!1,"Add parameter to tree":!1,Remove:!1,"Select datasets for new tracks":!1,Libraries:"库","Zoom out":!1,"Zoom in":!1,"Phyloviz Help":!1,"Save visualization":!1,"PhyloViz Settings":!1,Title:!1,"Filtering Dataset":!1,"Filter Dataset":!1,"Show individual tracks":!1,"Trackster Error":!1,"Tool parameter space visualization":!1,Tool:!1,"Set as overview":!1,"Set display mode":!1,Filters:!1,"Show composite track":!1,"Edit settings":!1,"Test title":!1,"Test Title":!1,"Test button":!1,title:!1,"Create new Build":"创建新的构建集","Delete custom build.":"删除自定义的构建集。","Provide the data source.":"提供数据源。","Next in History":"下一个历史记录","Previous in History":"上一个历史记录","Chat online":!1,"Multiple collections":!1,"Dataset collections":!1,"Dataset collection":!1,"Multiple datasets":!1,"Single dataset":!1,"Download from URL or upload files from disk":"从 URL 或者本地磁盘上传文件","tool tooltip":!1,ja:!0,fr:!0,zh:!0},__es:{"Analyze Data":"Analizar Datos","Tools and Current History":"Herramientas e Historial Actual",Workflow:"Flujo de Trabajo","Shared Data":"Datos Compartidos","Data Libraries":"Bibliotecas de Datos",Histories:"Historiales",Workflows:"Flujos de Trabajo",Visualizations:"Visualizaciones",Pages:"Páginas",Visualization:"Visualización","New Track Browser":"Nuevo Navegador de Pistas","Saved Visualizations":"Visualizaciones Guardadas",Admin:"Administración",Help:"Ayuda",Support:"Soporte",Search:"Buscar","Mailing Lists":"Listas de Correo",Videos:"Videos","Community Hub":"Centro Comunitario","How to Cite Galaxy":"Cómo citar Galaxy","Interactive Tours":"Tours Interactivos","Galaxy Help":"Ayuda de Galaxy","Terms and Conditions":"Términos y Condiciones",User:"Usuario",Login:"Iniciar sesión",Register:"Registro","Login or Register":"Iniciar sesión o Registrarse","Logged in as":"Se ha conectado como",Preferences:"Preferencias","Custom Builds":"Construcciones personalizadas","Workflow Invocations":"Invocaciones de Flujos de Trabajo","Active InteractiveTools":"Activar Herramientas Interactivas",Logout:"Cerrar Sesión","Saved Histories":"Historiales Guardados","Saved Datasets":"Conjuntos de Datos Guardados","Saved Pages":"Páginas Guardadas","Using ":"Utilizando ","Account and saved data":"Cuenta y Datos Guardados","Account registration or login":"Crear Cuenta o Iniciar Sesión","Support, contact, and community":"Apoyo, contacto y comunidad","Administer this Galaxy":"Administrar esta instancia de Galaxy","Visualize datasets":"Visualizar conjuntos de datos","Access published resources":"Acceder a los recursos publicados","Chain tools into workflows":"Encadenar herramientas en flujos de trabajo","Analysis home view":"Vista de inicio del análisis",Tools:"Herramientas","Show favorites":"Mostrar favoritos","search tools":"Buscar herramientas","All workflows":"Todos los flujos de trabajo","Upload Data":"Cargar Datos",History:"Historial","History Lists":"Listas de historiales","History Actions":"Acciones del historial","(empty)":"(vacío)","Histories Shared with Me":"Historiales compartidos conmigo","Current History":"Historial actual","Create New":"Crear nuevo","Create new history":"Crear historial huevo",Copy:"Copiar","Share or Publish":"Compartir o Publicar","Show Structure":"Mostrar Estructura","Extract Workflow":"Extraer Flujo de Trabajo","Set Permissions":"Establecer permisos","Make Private":"Hacer privado","Beta Features":"Características Beta","Use Beta History Panel":"Utilizar el panel de historial Beta","Delete Permanently":"Borrar Permanentemente","Dataset Actions":"Acciones de Conjuntos de Datos","Copy Datasets":"Copiar Conjuntos de Datos","Dataset Security":"Seguridad del Conjunto de Datos","Resume Paused Jobs":"Reanudar Trabajos en Pausa","Collapse Expanded Datasets":"Contraer Conjuntos de Datos Expandidos","Unhide Hidden Datasets":"Mostrar Conjuntos de Datos Ocultos","Delete Hidden Datasets":"Eliminar Conjuntos de Datos Ocultos","Purge Deleted Datasets":"Eliminar Definitivamente los Conjuntos de Datos Eliminados",Downloads:"Descargas","Export Tool Citations":"Exportar las Citas de la Herramienta","Export History to File":"Exportar Historial a un Archivo","Other Actions":"Otras Acciones","Import from File":"Importar desde Archivo",Webhooks:"WebHooks","See Galaxy Training Materials":"Ver materiales de entrenamiento de Galaxy","This history is empty":"Este historial está vacío","No matching datasets found":"No se encontraron conjuntos de datos coincidentes","An error occurred while getting updates from the server":"Se ha producido un error al obtener actualizaciones desde el servidor","Please contact a Galaxy administrator if the problem persists":"Por favor, contacte a un administrador de Galaxy si el problema persiste","search datasets":"buscar conjuntos de datos","search all datasets":"buscar todos los conjuntos de datos","search histories":"buscar los historiales","Search tips":"Consejos de búsqueda","clear search (esc)":"limpiar búsqueda (esc)","clear search":"limpiar búsqueda","You are currently viewing a deleted history!":"¡Estás viendo un historial eliminado!","You are over your disk quota":"Has sobrepasado tu espacio disponible de disco","Tool execution is on hold until your disk usage drops below your allocated quota":"La ejecución de la herramienta está en espera hasta que el uso del disco caiga por debajo de tu espacio de disco disponible",All:"Todas",None:"Ninguna","For all selected":"Para los seleccionados","Edit history tags":"Editar etiquetas de historial","Edit history annotation":"Editar anotación del historial","Click to rename history":"Haz clic para cambiar el nombre del historial","Rename history...":"Cambiar el nombre del historial","Switch to":"Cambiar a","Operations on multiple datasets":"Operaciones en conjuntos de datos múltiples","Hide datasets":"Ocultar conjuntos de datos","Unhide datasets":"Mostrar conjuntos de datos","Delete datasets":"Borrar conjuntos de datos","Undelete datasets":"Recuperar conjuntos de datos","Permanently delete datasets":"Eliminar permanentemente conjuntos de datos","This will permanently remove the data in your datasets. Are you sure?":"Esta acción eliminará datos permanentemente. ¿Estás seguro que deseas continuar?",Dataset:"Conjunto de datos",Annotation:"Anotación","This history is empty. Click 'Get Data' on the left tool menu to start":"Este historial está vacío. Haz clic en 'Obtener datos' en el menú de herramientas de la izquierda para iniciar","You must be logged in to create histories":"Debes haber iniciado sesión para crear historiales","Search Workflows":"Buscar Flujos de Trabajo",Updated:"Actualizado",Sharing:"Compartir",Bookmarked:"Página marcada",Create:"Crear",Import:"Importar","Unable to purge dataset":"No se puede eliminar permanentemente el conjunto de datos","Cannot display datasets removed from disk":"No se pueden mostrar conjuntos de datos que han sido eliminados del disco","This dataset must finish uploading before it can be viewed":"Este conjunto de datos debe terminar de cargar antes de visualizarlo","This dataset is not yet viewable":"Este conjunto de datos aún no se puede ver","View data":"Ver datos",Download:"Descargar","Download dataset":"Descargar conjunto de datos","Additional files":"Archivos adicionales","View details":"Ver detalles","This is a new dataset and not all of its data are available yet":"Este es un nuevo conjunto de datos y aún no está completamente disponible","You do not have permission to view this dataset":"No tienes permiso para ver este conjunto de datos","The job creating this dataset was cancelled before completion":"El trabajo que estaba creando este conjunto de datos se canceló antes de completarse","This job is waiting to run":"Este trabajo está a la espera de ser ejecutado","This dataset is currently uploading":"Este conjunto de datos se está cargando actualmente","Metadata is being auto-detected":"Se han detectado metadatos automáticamente","This job is currently running":"Este trabajo se está siendo ejecutando actualmente",'This job is paused. Use the "Resume Paused Jobs" in the history menu to resume':'Este trabajo está en pausa. Utilice la opción "Reanudar trabajos en pausa" en el menú de historial para reanudar',"An error occurred with this dataset":"Se ha producido un error con este conjunto de datos","No data":"Sin datos","An error occurred setting the metadata for this dataset":"Se ha producido un error al establecer los metadatos de este conjunto de datos","There was an error getting the data for this dataset":"Hubo un error al extraer el contenido de este conjunto de datos","This dataset has been deleted and removed from disk":"Este conjunto de datos ha sido eliminado permanentemente del disco","This dataset has been deleted":"Este conjunto de datos ha sido eliminado","This dataset has been hidden":"Este conjunto de datos ha sido ocultado","Copy link":"Copiar vínculo","Visualize this data":"Visualizar estos datos",format:"formato",database:"base de datos","Edit attributes":"Editar atributos","Cannot edit attributes of datasets removed from disk":"No se pueden editar los atributos de conjuntos de datos que han sido eliminados del disco","Undelete dataset to edit attributes":"Recuperar el conjunto de datos para editar atributos","This dataset must finish uploading before it can be edited":"Este conjunto de datos debe terminar de cargar antes de que pueda ser editado","This dataset is not yet editable":"Este conjunto de datos aún no se puede editar",Delete:"Borrar","Dataset is already deleted":"El conjunto de datos ya ha sido eliminado","View or report this error":"Ver o informar de este error","Run this job again":"Ejecutar este trabajo de nuevo",Visualize:"Visualizar","Visualize in":"Visualizar en","Undelete it":"Recuperar","Permanently remove it from disk":"Eliminar permanentemente del disco","Unhide it":"Mostrar","You may be able to":"Podrás","set it manually or retry auto-detection":"configurar manualmente o volver a intentar la detección automática","Edit dataset tags":"Editar etiquetas del conjunto de datos","Edit dataset annotation":"Editar anotación del conjunto de datos","Create Visualization":"Crear Visualización","search visualizations":"buscar visualizaciones",Library:"Biblioteca","exclude restricted":"Excluir restringidos","include deleted":"incluir eliminada",Description:"Descripción",Synopsis:"Sinopsis","per page":"por página",total:"total",Cancel:"Cancelar",Edit:"Editar",Manage:"Administrar",Tags:"Etiquetas","Edit annotation":"Editar anotación","Tool Help":"Ayuda de herramienta","Reset passwords":"Restablecer contraseña","Search Tool Shed":"Buscar en el Tool Shed","Monitor installing repositories":"Monitorear instalación de repositorios","Manage installed tools":"Administrar herramientas instaladas","Reset metadata":"Reconfigurar metadatos","Download local tool":"Descargar herramienta local","Tool lineage":"Linaje de herramientas","Reload a tool's configuration":"Volver a cargar la configuración de una herramienta","View Tool Error Logs":"Ver registros de error de la herramienta","Manage Allowlist":"Administrar lista de permisos","Manage Tool Dependencies":"Administrar dependencias de herramienta",Users:"Usuarios",Groups:"Grupos","API keys":"Llaves API","Impersonate a user":"Acceder como otro usuario",Data:!1,Quotas:!1,Roles:!1,"Local data":"Datos locales","Form Definitions":"Definiciones de formulario","Enable/Disable Window Manager":"Habilitar/Deshabilitar Window Manager","Show/Hide Window Manager":"Mostrar/Ocultar Window Manager",Subscript:!1,Superscript:!1,Trackster:!1,"Any additional comments you can provide regarding what you were doing at the time of the bug.":"Cualquier comentario adicional que puedas proporcionar sobre lo que estabas haciendo en el momento que se produjo el error.","Your email address":"Tu dirección de correo electrónico",Report:!1,"Error Report":"Reporte de error","Dataset details":"Detalles del conjunto de datos","Save permissions.":"Guardar permisos","Change the datatype to a new type.":"Cambiar el tipo de datos a uno nuevo","Convert the datatype to a new format.":"Convertir el tipo de datos a un formato nuevo","Save attributes of the dataset.":"Guardar los atributos del conjunto de datos","Change data type":"Cambiar el tipo de datos","Edit Dataset Attributes":"Editar atributos del conjunto de datos","Save permissions":"Guardar permisos","Manage dataset permissions":"Administrar permisos del conjunto de datos","Change datatype":"Cambiar tipo de datos","Convert datatype":"Convertir tipo de datos","Convert to new format":"Convertir a formato nuevo",Save:"Guardar",Permissions:"Permisos",Datatypes:"Tipos de datos",Convert:"Convertir",Attributes:"Atributos","This will change the datatype of the existing dataset but not modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset.":"Esto cambiará el tipo de datos del conjunto de datos existente pero no modificará su contenido. Utilícelo si Galaxy identificó incorrectamente el tipo de su conjunto de datos","Auto-detect":"Autodetectar",Name:"Nombre",Info:"Información","Add an annotation or notes to a dataset; annotations are available when a history is viewed.":"Agregar una anotación o notas al conjunto de datos; las anotaciones están disponibles cuando se visualiza un historial","Import into History":"Importar al historial","Location Details":"Detalles de ubicación","Deleting selected items":"Eliminar elementos seleccionados","Please select folders or files":"Por favor, seleccione directorios o archivos","Please enter paths to import":"Por favor, introduce las rutas a importar","Adding datasets from your history":"Agregar conjuntos de datos desde tu historial","Create New Folder":"Crear Nuevo Directorio","Create New Library":"Crear Nueva Biblioteca",Tours:!1,"Click here to sign out of all sessions.":"Haz clic aquí para salir de todas las sesiones","Add or remove custom builds using history datasets.":"Agregar o eliminar construcciones personalizadas usando conjuntos de datos del historial","Associate OpenIDs with your account.":"Asociar OpenIDs a su cuenta","Customize your Toolbox by displaying or omitting sets of Tools.":"Personalizar Toolbox para mostrar u omitir conjuntos de herramientas","Access your current API key or create a new one.":"Acceder a su clave API actual o crear una nueva","Allows you to change your login credentials.":"Permitir modificar tus credenciales de inicio de sesión ","Edit your email, addresses and custom parameters or change your public name.":"Edita tus direcciones de correo y personaliza los parámetros o cambia tu nombre público.","User preferences":"Preferencias de usuario","You are logged in as":"Iniciaste sesión como","Sign out":"Cerrar sesión","Manage custom builds":"Administrar construcciones personalizadas","Manage OpenIDs":"Administrar OpenIDs","Manage Toolbox filters":"Administrar filtros de Toolbox","Manage API Key":"Administrar clave API","Set dataset permissions for new histories":"Establecer permisos de conjuntos de datos para historiales nuevos","Change Password":"Cambiar contraseña","Manage Information":"Manejar información","Manage Third-Party Identities":"Manejar identidades de terceros","Connect or disconnect access to your third-party identities.":"Conectar o desconectar el acceso a tus identidades de terceros.","Set Dataset Permissions for New Histories":"Establecer los permisos de los conjuntos de datos para los nuevos historiales","Grant others default access to newly created histories. Changes made here will only affect histories created after these settings have been stored.":"Otorga a otras personas acceso predeterminado a los historiales recién creados. Los cambios que aquí realices solo afectarán a los historiales creados después de que se hayan almacenado estos ajustes.","Make All Data Private":"Privatizar todos mis datos","Click here to make all data private.":"Haz clic aquí para privatizar todos tus datos","Manage Cloud Authorization":"Manejar autorización para la nube","Add or modify the configuration that grants Galaxy to access your cloud-based resources":"Agregar o modificar la configuración que permite que Galaxy acceda a tus recursos en la nube","Manage Toolbox Filters":"Manejar filtros de la caja de herramientas","Manage Custom Builds":"Administrar compilaciones personalizadas","Enable notifications":"Habilitar notificaciones","Allow push and tab notifcations on job completion. To disable, revoke the site notification privilege in your browser.":"Permitir las notificaciones automáticas y de pestaña al completar un trabajo. Para deshabilitar, en tu navegador revoca los privilegios de notificaciones de sitio","Delete Account":"Eliminar cuenta","Delete your account on this Galaxy server.":"Eliminar tu cuenta del servidor Galaxy.","You are using":"Estás utilizando","of disk space in this Galaxy instance.":"de espacio de disco en esta instancia de Galaxy.","Is your usage more than expected? See the":"¿Utilizarás más espacio del que planeabas originalmente? Ve la",documentation:"documentación","for tips on how to find all of the data in your account.":"para consultar consejos sobre el cómo encontrar todos los datos de tu cuenta","Email address":"Dirección de correo electrónico","If you change your email address you will receive an activation link in the new mailbox and you have to activate your account by visiting it.":"Si cambias tu dirección de correo electrónico recibirás un vínculo de activación en tu nuevo correo. Debes activar tu cuenta recurriendo a esta notificación.","Public name":"Nombre público",'Your public name is an identifier that will be used to generate addresses for information you share publicly. Public names must be at least three characters in length and contain only lower-case letters, numbers, and the "-" character.':'Tu nombre público es un identificador que será utilizado para generar direcciones de información que compartas al público. Los nombres públicos deben contener al menos tres caracteres de longitud, solo letras minúsculas, números o el símbolo "-". ',Address:"Dirección","Insert address":"Escribir dirección","Do you want to be able to re-use equivalent jobs ?":"¿Deseas poder reutilizar trabajos equivalentes?",No:"No",Yes:"Sí","If you select yes, you will be able to select for each tool and workflow run if you would like to use this feature.":"Si seleccionas ‘sí’, podrás seleccionar si deseas utilizar esta función para cada herramienta y ejecución de flujo de trabajo.",Localization:"Ubicación","Prefered language":"Idioma de preferencia","Use distributed compute resources":"Utilizar recursos de cómputo distribuido","Remote resource id":"Identificador de recurso remoto","default - Galaxy will decide where to put your jobs":"Por defecto - Galaxy decidirá en donde colocar tus trabajos","Your EGA (European Genome Archive) Account":"Tu cuenta EGA (European Genome Archive)",Username:"Nombre de usuario",Password:"Contraseña","Your Dropbox Account":"Tu cuenta Dropbox","Dropbox access token":"Token de acceso de Dropbox","Your B2DROP Account":"Tu cuenta B2DROP","Your OMERO instance connection details":"Detalles de conección de tu instancia OMERO","Your ENA Webin account details":"Detalles de tu cuenta Webin de ENA","ENA Webin ID":"Identificador Webin de ENA","Your CDS API Key":"Tu llave CDS API",Key:"Llave","Configured Tool Sheds":"Tool Sheds configurados","Repository Queue":"Cola de repositorio","Repository Status":"Estado del repositorio","Workflows Missing Tools":"Flujos de trabajo a los que les faltan herramientas","See in Tool Shed":"Ver en Tool Shed",Requirements:!1,Share:!1,"Workflow submission failed":"Error en el envío de flujo de trabajo","Run workflow":"Ejecutar flujo de trabajo","Job submission failed":"Error en envío de trabajo",Execute:!1,"Tool request failed":"Error en solicitud de herramienta","Copy and insert individual steps":"Copiar e insertar pasos individuales",Warning:!1,"An email notification will be sent when the job has completed.":"Se enviará una notificación por correo electrónico cuando el trabajo haya sido completado","Add a step label.":"Agregar una etiqueta de paso","Assign columns":"Asignar columnas","Delete this repeat block":"Borrar este bloque repetido",placeholder:!1,Repeat:!1,Error:!1,Close:!1,"Download from web or upload from disk":"Descargar de la red o cargar desde disco",Collection:!1,Composite:!1,Regular:!1,"Upload configuration":"Cargar configuración","FTP files":"Archivos FTP",Reset:!1,Pause:!1,Start:!1,"Choose FTP file":"Elegir archivo FTP","Choose local file":"Elegir archivo local",Build:!1,"Choose FTP files":"Elegir archivos FTP","Choose local files":"Elegir archivos locales",Select:!1,"Create a collection of paired datasets":"Crear una colección de conjuntos de datos pareados","View all histories":"Ver todos los historiales","History options":"Opciones de historial","Refresh history":"Actualizar historial","View error logs":"Ver registros de error","View lineage":"Ver linaje","Manage dependencies":"Administrar dependencias","Manage allowlist":"Administrar lista de permitidos","Manage metadata":"Administrar metadatos","Manage tools":"Administrar herramientas","Monitor installation":"Monitorear instalación","Install new tools":"Instalar nuevas herramientas","Tool Management":"Gestión de herramienta",Forms:!1,"User Management":"Gestión de usuario","Manage jobs":"Administrar trabajos","Display applications":"Mostrar aplicaciones","Data tables":"Tablas de datos","Data types":"Tipos de datos",Server:!1,"Could Not Save":"No se pudo guardar","Saving...":"Guardando",Settings:!1,"Add tracks":"Agregar pistas","New Visualization":"Nueva visualización","Add Data to Saved Visualization":"Agregar datos a visualización guardada","Close visualization":"Cerrar visualización",Circster:!1,Bookmarks:!1,"Add group":"Agregar grupo","Remove parameter from tree":"Eliminar parámetro del árbol","Add parameter to tree":"Agregar parámetro al árbol",Remove:!1,"Select datasets for new tracks":"Seleccionar conjuntos de datos para nuevas pistas","Select a dataset to visualize:":"Seleccionar un conjunto de datos para visualizar",Libraries:!1,"Zoom out":"Alejar","Zoom in":"Acercar","Phyloviz Help":"Ayuda de PhyloViz","Save visualization":"Guardar visualización","PhyloViz Settings":"Ajustes de PhyloViz",Title:!1,"Filtering Dataset":"Filtrando conjunto de datos","Filter Dataset":"Filtrar conjunto de datos","Show individual tracks":"Mostrar pistas individuales","Trackster Error":"Error de Trackster","Tool parameter space visualization":"Visualización del espacio de parámetros de la herramienta",Tool:!1,"Set as overview":"Establecer como descripción general","Set display mode":"Establecer modo de visualización",Filters:!1,"Show composite track":"Mostrar pista compuesta","Edit settings":"Editar configuración","Test title":!1,"Test Title":"Título de prueba","Test button":"Botón de prueba",title:!1,"Create new Build":"Crear nueva construcción","Delete custom build.":"Eliminar construcción personalizada","Provide the data source.":"Proporcionar la fuente de datos","Next in History":"Siguiente en historial","Previous in History":"Anterior en historial","Chat online":"Conversar en línea","Multiple collections":"Varias colecciones","Dataset collections":"Colecciones de conjuntos de datos","Dataset collection":"Colección de conjunto de datos","Multiple datasets":"Varios conjuntos de datos","Single dataset":"Conjunto de datos único","Download from URL or upload files from disk":"Descargar desde URL o cargar archivos desde disco","You can load your own data":"Puedes cargar tus propios datos",or:"u","get data from an external source":"obtenerlos de una fuente externa","You can ":"Puedes ","load your own data":"cargar tus propios datos"," or ":" u ","tool tooltip":"Mensaje de información sobre herramientas"},init:function(e){e||(e="undefined"!=typeof window&&window._i18n&&window._i18n.locale?window._i18n.locale:"undefined"!=typeof document&&document.documentElement.lang?document.documentElement.lang:"undefined"!=typeof navigator&&(navigator.languages||navigator.language||navigator.userLanguage)?((e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||"root").toLowerCase():"root");var t=this["__"+e]||this.__root;if(t)for(var i in t)this[i]=t[i];for(var i in this.__root)void 0===this[i]&&(this[i]=this.__root[i])}};t.init(),e.exports=t},55806:(e,t,i)=>{var s=i(76233),n=i(27672);void 0===n.$&&(n.$=s),void 0===n.jQuery&&(n.jQuery=s),e.exports=s},39064:(e,t,i)=>{var s=i(60113),n=i(27672);void 0===n.bundleToolshed&&(n.bundleToolshed=s),e.exports=s},62352:(e,t,i)=>{var s=i(59687),n=i(27672);void 0===n.config&&(n.config=s),e.exports=s},44809:(e,t,i)=>{"use strict";i.r(t);var s,n=i(20615);(s=i.n(n)()).fn.farbtastic=function(e){return s.farbtastic(this,e),this},s.farbtastic=function(e,t){return(e=s(e)[0]).farbtastic||(e.farbtastic=new s._farbtastic(e,t))},s._farbtastic=function(e,t){var i=this;i.linkTo=function(e){return"object"==typeof i.callback&&s(i.callback).unbind("keyup",i.updateValue),i.color=null,"function"==typeof e?i.callback=e:"object"!=typeof e&&"string"!=typeof e||(i.callback=s(e),i.callback.bind("keyup",i.updateValue),i.callback[0].value&&i.setColor(i.callback[0].value)),this},i.updateValue=function(e){this.value&&this.value!=i.color&&i.setColor(this.value)},i.setColor=function(e){var t=i.unpack(e);return i.color!=e&&t&&(i.color=e,i.rgb=t,i.hsl=i.RGBToHSL(i.rgb),i.updateDisplay()),this},i.setHSL=function(e){return i.hsl=e,i.rgb=i.HSLToRGB(e),i.color=i.pack(i.rgb),i.updateDisplay(),this},i.initWidget=function(){var n={width:t.width,height:t.width};s(e).html('<div class="farbtastic" style="position: relative"><div class="farbtastic-solid"></div><canvas class="farbtastic-mask"></canvas><canvas class="farbtastic-overlay"></canvas></div>').find("*").attr(n).css(n).end().find("div>*").css("position","absolute"),s.browser.msie,i.radius=(t.width-t.wheelWidth)/2-1,i.square=Math.floor(.7*(i.radius-t.wheelWidth/2))-1,i.mid=Math.floor(t.width/2),i.markerSize=.3*t.wheelWidth,i.solidFill=s(".farbtastic-solid",e).css({width:2*i.square-1,height:2*i.square-1,left:i.mid-i.square,top:i.mid-i.square}),i.cnvMask=s(".farbtastic-mask",e),i.ctxMask=i.cnvMask[0].getContext("2d"),i.cnvOverlay=s(".farbtastic-overlay",e),i.ctxOverlay=i.cnvOverlay[0].getContext("2d"),i.ctxMask.translate(i.mid,i.mid),i.ctxOverlay.translate(i.mid,i.mid),i.drawCircle(),i.drawMask()},i.drawCircle=function(){new Date;var e,n,o=i.radius,a=t.wheelWidth,r=8/o/24*Math.PI,l=i.ctxMask,c=0;l.save(),l.lineWidth=a/o,l.scale(o,o);for(var d=0;d<=24;++d){var u=d/24,h=u*Math.PI*2,p=Math.sin(c),f=-Math.cos(c);if(x2=Math.sin(h),y2=-Math.cos(h),am=(c+h)/2,tan=1/Math.cos((h-c)/2),xm=Math.sin(am)*tan,ym=-Math.cos(am)*tan,color2=i.pack(i.HSLToRGB([u,1,.5])),d>0)if(s.browser.msie){var m=(1+Math.min(Math.abs(Math.tan(c)),Math.abs(Math.tan(Math.PI/2-c))))/24;e=i.pack(i.HSLToRGB([n-.15*m,1,.5])),color2=i.pack(i.HSLToRGB([u+.15*m,1,.5])),(y=l.createLinearGradient(p,f,x2,y2)).addColorStop(0,e),y.addColorStop(1,color2),l.fillStyle=y;var g=(o+a/2)/o,v=(o-a/2)/o;l.beginPath(),l.moveTo(p*g,f*g),l.quadraticCurveTo(xm*g,ym*g,x2*g,y2*g),l.lineTo(x2*v,y2*v),l.quadraticCurveTo(xm*v,ym*v,p*v,f*v),l.fill()}else{var y;(y=l.createLinearGradient(p,f,x2,y2)).addColorStop(0,e),y.addColorStop(1,color2),l.strokeStyle=y,l.beginPath(),l.moveTo(p,f),l.quadraticCurveTo(xm,ym,x2,y2),l.stroke()}c=h-r,e=color2,n=u}l.restore()},i.drawMask=function(){new Date;var e=2*i.square,t=i.square;function n(e,t,i){for(var s=1/e,n=1/t,o=0;o<=t;++o)for(var a=1-o*n,r=0;r<=e;++r){var l=1-r*s,c=1-2*Math.min(a*l,(1-a)*l);i(r,o,c>0?.5*(2*a-1+c)/c:0,c)}}if(i.ctxMask.getImageData){var o=Math.floor(e/2),a=document.createElement("canvas");a.width=a.height=o+1;var r=a.getContext("2d"),l=r.getImageData(0,0,o+1,o+1),c=0;n(o,o,(function(e,t,i,s){l.data[c++]=l.data[c++]=l.data[c++]=255*i,l.data[c++]=255*s})),r.putImageData(l,0,0),i.ctxMask.drawImage(a,0,0,o+1,o+1,-t,-t,2*t,2*t)}else if(s.browser.msie){var d,u,h=Math.floor(e/6);n(h,6,(function(e,n,o,a){if(0==e&&(d=u,u=[]),o=Math.round(255*o),a=Math.round(255*a),n>0){var r=d[e][0],l=d[e][1],c=i.packDX(r,l),p=i.packDX(o,a),f=Math.round(i.mid+(.333*(n-1)-1)*t),m=Math.round(i.mid+(.333*n-1)*t);s("<div>").css({position:"absolute",filter:"progid:DXImageTransform.Microsoft.Gradient(StartColorStr="+c+", EndColorStr="+p+", GradientType=0)",top:f,height:m-f,left:i.mid+(6*e-t-1),width:6-(e==h?Math.round(3):0)}).appendTo(i.cnvMask)}u.push([o,a])}))}else n(o=Math.floor(e/2),o,(function(e,s,n,o){n=Math.round(255*n),i.ctxMask.fillStyle="rgba("+n+", "+n+", "+n+", "+o+")",i.ctxMask.fillRect(2*e-t-1,2*s-t-1,2,2)}))},i.drawMarkers=function(){var e=t.width,s=Math.ceil(i.markerSize/4),n=i.markerSize-s+1,o=6.28*i.hsl[0],a=Math.sin(o)*i.radius,r=-Math.cos(o)*i.radius,l=2*i.square*(.5-i.hsl[1]),c=2*i.square*(.5-i.hsl[2]),d=i.invert?"#fff":"#000",u=i.invert?"#000":"#fff",h=[{x:a,y:r,r:n,c:"#000",lw:s+1},{x:a,y:r,r:i.markerSize,c:"#fff",lw:s},{x:l,y:c,r:n,c:u,lw:s+1},{x:l,y:c,r:i.markerSize,c:d,lw:s}];i.ctxOverlay.clearRect(-i.mid,-i.mid,e,e);for(var p=0;p<h.length;p++){var f=h[p];i.ctxOverlay.lineWidth=f.lw,i.ctxOverlay.strokeStyle=f.c,i.ctxOverlay.beginPath(),i.ctxOverlay.arc(f.x,f.y,f.r,0,2*Math.PI,!0),i.ctxOverlay.stroke()}},i.updateDisplay=function(){i.invert=.3*i.rgb[0]+.59*i.rgb[1]+.11*i.rgb[2]<=.6,i.solidFill.css("backgroundColor",i.pack(i.HSLToRGB([i.hsl[0],1,.5]))),i.drawMarkers(),"object"==typeof i.callback?(s(i.callback).css({backgroundColor:i.color,color:i.invert?"#fff":"#000"}),s(i.callback).each((function(){"string"==typeof this.value&&this.value!=i.color&&(this.value=i.color)})).change()):"function"==typeof i.callback&&i.callback.call(i,i.color)},i.widgetCoords=function(e){return{x:e.pageX-i.offset.left-i.mid,y:e.pageY-i.offset.top-i.mid}},i.mousedown=function(t){s._farbtastic.dragging||(s(document).bind("mousemove",i.mousemove).bind("mouseup",i.mouseup),s._farbtastic.dragging=!0),i.offset=s(e).offset();var n=i.widgetCoords(t);return i.circleDrag=Math.max(Math.abs(n.x),Math.abs(n.y))>i.square+2,i.mousemove(t),!1},i.mousemove=function(e){var t=i.widgetCoords(e);if(i.circleDrag){var s=Math.atan2(t.x,-t.y)/6.28;i.setHSL([(s+1)%1,i.hsl[1],i.hsl[2]])}else{var n=Math.max(0,Math.min(1,-t.x/i.square/2+.5)),o=Math.max(0,Math.min(1,-t.y/i.square/2+.5));i.setHSL([i.hsl[0],n,o])}return!1},i.mouseup=function(){s(document).unbind("mousemove",i.mousemove),s(document).unbind("mouseup",i.mouseup),s._farbtastic.dragging=!1},i.dec2hex=function(e){return(e<16?"0":"")+e.toString(16)},i.packDX=function(e,t){return"#"+i.dec2hex(t)+i.dec2hex(e)+i.dec2hex(e)+i.dec2hex(e)},i.pack=function(e){var t=Math.round(255*e[0]),s=Math.round(255*e[1]),n=Math.round(255*e[2]);return"#"+i.dec2hex(t)+i.dec2hex(s)+i.dec2hex(n)},i.unpack=function(e){if(7==e.length){function t(t){return parseInt(e.substring(t,t+2),16)/255}return[t(1),t(3),t(5)]}if(4==e.length){function i(t){return parseInt(e.substring(t,t+1),16)/15}return[i(1),i(2),i(3)]}},i.HSLToRGB=function(e){var t,i,s=e[0],n=e[1],o=e[2];return t=2*o-(i=o<=.5?o*(n+1):o+n-o*n),[this.hueToRGB(t,i,s+.33333),this.hueToRGB(t,i,s),this.hueToRGB(t,i,s-.33333)]},i.hueToRGB=function(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(.66666-i)*6:e},i.RGBToHSL=function(e){var t=e[0],i=e[1],s=e[2],n=Math.min(t,i,s),o=Math.max(t,i,s),a=o-n,r=0,l=0,c=(n+o)/2;return c>0&&c<1&&(l=a/(c<.5?2*c:2-2*c)),a>0&&(o==t&&o!=i&&(r+=(i-s)/a),o==i&&o!=s&&(r+=2+(s-t)/a),o==s&&o!=t&&(r+=4+(t-i)/a),r/=6),[r,l,c]},t.callback||(t={callback:t}),t=s.extend({width:300,wheelWidth:(t.width||300)/10,callback:null},t),i.initWidget(),s("canvas.farbtastic-overlay",e).mousedown(i.mousedown),t.callback&&i.linkTo(t.callback),i.color||i.setColor("#808080")}},8257:(e,t,i)=>{"use strict";i.r(t);var s,n,o,a,r,l=i(20615),c=i.n(l);!function(e,t){function i(t,i){var n,o,a,r=t.nodeName.toLowerCase();return"area"===r?(o=(n=t.parentNode).name,!(!t.href||!o||"map"!==n.nodeName.toLowerCase())&&!!(a=e("img[usemap=#"+o+"]")[0])&&s(a)):(/input|select|textarea|button|object/.test(r)?!t.disabled:"a"===r&&t.href||i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter((function(){return"hidden"===e.css(this,"visibility")})).length}var n=0,o=/^ui-id-\d+$/;e.ui=e.ui||{},e.ui.version||(e.extend(e.ui,{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,i){return"number"==typeof t?this.each((function(){var s=this;setTimeout((function(){e(s).focus(),i&&i.call(s)}),t)})):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,n,o=e(this[0]);o.length&&o[0]!==document;){if(("absolute"===(s=o.css("position"))||"relative"===s||"fixed"===s)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))},removeUniqueId:function(){return this.each((function(){o.test(this.id)&&e(this).removeAttr("id")}))}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],(function(i,s){function n(t,i,s,n){return e.each(o,(function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),n&&(i-=parseFloat(e.css(t,"margin"+this))||0)})),i}var o="Width"===s?["Left","Right"]:["Top","Bottom"],a=s.toLowerCase(),r={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?r["inner"+s].call(this):this.each((function(){e(this).css(a,n(this,i)+"px")}))},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?r["outer"+s].call(this,t):this.each((function(){e(this).css(a,n(this,t,!0,i)+"px")}))}})),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}})):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(t,!n)}}),e((function(){var t=document.body,i=t.appendChild(i=document.createElement("div"));i.offsetHeight,e.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=100===i.offsetHeight,e.support.selectstart="onselectstart"in i,t.removeChild(i).style.display="none"})),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=!!t.length,e.ui.ie6=6===parseFloat(t[1],10)}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(e){e.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var n,o=e.ui[t].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(e,t,i){var s,n=e.plugins[t];if(n&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;s<n.length;s++)e.options[n[s][0]]&&n[s][1].apply(e.element,i)}},contains:e.contains,hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return t[s]>0||(t[s]=1,n=t[s]>0,t[s]=0,n)},isOverAxis:function(e,t,i){return e>t&&e<t+i},isOver:function(t,i,s,n,o,a){return e.ui.isOverAxis(t,s,o)&&e.ui.isOverAxis(i,n,a)}}))}(c()),s=c(),o=0,a=Array.prototype.slice,r=s.cleanData,s.cleanData=function(e){for(var t,i=0;null!=(t=e[i]);i++)try{s(t).triggerHandler("remove")}catch(e){}r(e)},s.widget=function(e,t,i){var n,o,a,r,l=e.split(".")[0];e=e.split(".")[1],n=l+"-"+e,i||(i=t,t=s.Widget),s.expr[":"][n.toLowerCase()]=function(e){return!!s.data(e,n)},s[l]=s[l]||{},o=s[l][e],a=s[l][e]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},s.extend(a,o,{version:i.version,_proto:s.extend({},i),_childConstructors:[]}),(r=new t).options=s.widget.extend({},r.options),s.each(i,(function(e,n){s.isFunction(n)&&(i[e]=function(){var i=function(){return t.prototype[e].apply(this,arguments)},s=function(i){return t.prototype[e].apply(this,i)};return function(){var e,t=this._super,o=this._superApply;return this._super=i,this._superApply=s,e=n.apply(this,arguments),this._super=t,this._superApply=o,e}}())})),a.prototype=s.widget.extend(r,{widgetEventPrefix:r.widgetEventPrefix||e},i,{constructor:a,namespace:l,widgetName:e,widgetBaseClass:n,widgetFullName:n}),o?(s.each(o._childConstructors,(function(e,t){var i=t.prototype;s.widget(i.namespace+"."+i.widgetName,a,t._proto)})),delete o._childConstructors):t._childConstructors.push(a),s.widget.bridge(e,a)},s.widget.extend=function(e){for(var t,i,o=a.call(arguments,1),r=0,l=o.length;r<l;r++)for(t in o[r])i=o[r][t],o[r].hasOwnProperty(t)&&i!==n&&(s.isPlainObject(i)?e[t]=s.isPlainObject(e[t])?s.widget.extend({},e[t],i):s.widget.extend({},i):e[t]=i);return e},s.widget.bridge=function(e,t){var i=t.prototype.widgetFullName;s.fn[e]=function(o){var r="string"==typeof o,l=a.call(arguments,1),c=this;return o=!r&&l.length?s.widget.extend.apply(null,[o].concat(l)):o,r?this.each((function(){var t,a=s.data(this,i);return a?s.isFunction(a[o])&&"_"!==o.charAt(0)?(t=a[o].apply(a,l))!==a&&t!==n?(c=t&&t.jquery?c.pushStack(t.get()):t,!1):void 0:s.error("no such method '"+o+"' for "+e+" widget instance"):s.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):this.each((function(){var e=s.data(this,i);e?e.option(o||{})._init():new t(o,this)})),c}},s.Widget=function(){},s.Widget._childConstructors=[],s.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=s(t||this.defaultElement||this)[0],this.element=s(t),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=s.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=s(),this.hoverable=s(),this.focusable=s(),t!==this&&(s.data(t,this.widgetName,this),s.data(t,this.widgetFullName,this),this._on(this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=s(t.style?t.ownerDocument:t.document||t),this.window=s(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:s.noop,_getCreateEventData:s.noop,_create:s.noop,_init:s.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(s.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:s.noop,widget:function(){return this.element},option:function(e,t){var i,o,a,r=e;if(0===arguments.length)return s.widget.extend({},this.options);if("string"==typeof e)if(r={},i=e.split("."),e=i.shift(),i.length){for(o=r[e]=s.widget.extend({},this.options[e]),a=0;a<i.length-1;a++)o[i[a]]=o[i[a]]||{},o=o[i[a]];if(e=i.pop(),t===n)return o[e]===n?null:o[e];o[e]=t}else{if(t===n)return this.options[e]===n?null:this.options[e];r[e]=t}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,t){var i,n=this;t?(e=i=s(e),this.bindings=this.bindings.add(e)):(t=e,e=this.element,i=this.widget()),s.each(t,(function(t,o){function a(){if(!0!==n.options.disabled&&!s(this).hasClass("ui-state-disabled"))return("string"==typeof o?n[o]:o).apply(n,arguments)}"string"!=typeof o&&(a.guid=o.guid=o.guid||a.guid||s.guid++);var r=t.match(/^(\w+)\s*(.*)$/),l=r[1]+n.eventNamespace,c=r[2];c?i.delegate(c,l,a):e.bind(l,a)}))},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var i=this;return setTimeout((function(){return("string"==typeof e?i[e]:e).apply(i,arguments)}),t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){s(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){s(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){s(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){s(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,i){var n,o,a=this.options[e];if(i=i||{},(t=s.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],o=t.originalEvent)for(n in o)n in t||(t[n]=o[n]);return this.element.trigger(t,i),!(s.isFunction(a)&&!1===a.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},s.each({show:"fadeIn",hide:"fadeOut"},(function(e,t){s.Widget.prototype["_"+e]=function(i,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?!0===n||"number"==typeof n?t:n.effect||t:e;"number"==typeof(n=n||{})&&(n={duration:n}),a=!s.isEmptyObject(n),n.complete=o,n.delay&&i.delay(n.delay),a&&s.effects&&(s.effects.effect[r]||!1!==s.uiBackCompat&&s.effects[r])?i[e](n):r!==e&&i[r]?i[r](n.duration,n.easing,o):i.queue((function(t){s(this)[e](),o&&o.call(i[0]),t()}))}})),!1!==s.uiBackCompat&&(s.Widget.prototype._getCreateOptions=function(){return s.metadata&&s.metadata.get(this.element[0])[this.widgetName]}),function(e,t){var i=!1;e(document).mouseup((function(e){i=!1})),e.widget("ui.mouse",{version:"1.9.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).bind("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!i){this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var s=this,n=1===t.which,o=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){s.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),i=!0,0)))}},_mouseMove:function(t){return!e.ui.ie||document.documentMode>=9||t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}})}(c()),function(e,t){function i(e,t,i){return[parseInt(e[0],10)*(p.test(e[0])?t/100:1),parseInt(e[1],10)*(p.test(e[1])?i/100:1)]}function s(t,i){return parseInt(e.css(t,i),10)||0}e.ui=e.ui||{};var n,o=Math.max,a=Math.abs,r=Math.round,l=/left|center|right/,d=/top|center|bottom/,u=/[\+\-]\d+%?/,h=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var i,s,o=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=o.children()[0];return e("body").append(o),i=a.offsetWidth,o.css("overflow","scroll"),i===(s=a.offsetWidth)&&(s=o[0].clientWidth),o.remove(),n=i-s},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),s=t.isWindow?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,o="scroll"===s||"auto"===s&&t.height<t.element[0].scrollHeight;return{width:n?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=e.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return f.apply(this,arguments);t=e.extend({},t);var n,c,p,m,g,v=e(t.of),y=e.position.getWithinInfo(t.within),b=e.position.getScrollInfo(y),_=v[0],w=(t.collision||"flip").split(" "),x={};return 9===_.nodeType?(c=v.width(),p=v.height(),m={top:0,left:0}):e.isWindow(_)?(c=v.width(),p=v.height(),m={top:v.scrollTop(),left:v.scrollLeft()}):_.preventDefault?(t.at="left top",c=p=0,m={top:_.pageY,left:_.pageX}):(c=v.outerWidth(),p=v.outerHeight(),m=v.offset()),g=e.extend({},m),e.each(["my","at"],(function(){var e,i,s=(t[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):d.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=d.test(s[1])?s[1]:"center",e=u.exec(s[0]),i=u.exec(s[1]),x[this]=[e?e[0]:0,i?i[0]:0],t[this]=[h.exec(s[0])[0],h.exec(s[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=c:"center"===t.at[0]&&(g.left+=c/2),"bottom"===t.at[1]?g.top+=p:"center"===t.at[1]&&(g.top+=p/2),n=i(x.at,c,p),g.left+=n[0],g.top+=n[1],this.each((function(){var l,d,u=e(this),h=u.outerWidth(),f=u.outerHeight(),_=s(this,"marginLeft"),C=s(this,"marginTop"),S=h+_+s(this,"marginRight")+b.width,k=f+C+s(this,"marginBottom")+b.height,T=e.extend({},g),$=i(x.my,u.outerWidth(),u.outerHeight());"right"===t.my[0]?T.left-=h:"center"===t.my[0]&&(T.left-=h/2),"bottom"===t.my[1]?T.top-=f:"center"===t.my[1]&&(T.top-=f/2),T.left+=$[0],T.top+=$[1],e.support.offsetFractions||(T.left=r(T.left),T.top=r(T.top)),l={marginLeft:_,marginTop:C},e.each(["left","top"],(function(i,s){e.ui.position[w[i]]&&e.ui.position[w[i]][s](T,{targetWidth:c,targetHeight:p,elemWidth:h,elemHeight:f,collisionPosition:l,collisionWidth:S,collisionHeight:k,offset:[n[0]+$[0],n[1]+$[1]],my:t.my,at:t.at,within:y,elem:u})})),e.fn.bgiframe&&u.bgiframe(),t.using&&(d=function(e){var i=m.left-T.left,s=i+c-h,n=m.top-T.top,r=n+p-f,l={target:{element:v,left:m.left,top:m.top,width:c,height:p},element:{element:u,left:T.left,top:T.top,width:h,height:f},horizontal:s<0?"left":i>0?"right":"center",vertical:r<0?"top":n>0?"bottom":"middle"};c<h&&a(i+s)<c&&(l.horizontal="center"),p<f&&a(n+r)<p&&(l.vertical="middle"),o(a(i),a(s))>o(a(n),a(r))?l.important="horizontal":l.important="vertical",t.using.call(this,e,l)}),u.offset(e.extend(T,{using:d}))}))},e.ui.position={fit:{left:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=e.left-t.collisionPosition.marginLeft,l=n-r,c=r+t.collisionWidth-a-n;t.collisionWidth>a?l>0&&c<=0?(i=e.left+l+t.collisionWidth-a-n,e.left+=l-i):e.left=c>0&&l<=0?n:l>c?n+a-t.collisionWidth:n:l>0?e.left+=l:c>0?e.left-=c:e.left=o(e.left-r,e.left)},top:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollTop:s.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,l=n-r,c=r+t.collisionHeight-a-n;t.collisionHeight>a?l>0&&c<=0?(i=e.top+l+t.collisionHeight-a-n,e.top+=l-i):e.top=c>0&&l<=0?n:l>c?n+a-t.collisionHeight:n:l>0?e.top+=l:c>0?e.top-=c:e.top=o(e.top-r,e.top)}},flip:{left:function(e,t){var i,s,n=t.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,c=e.left-t.collisionPosition.marginLeft,d=c-l,u=c+t.collisionWidth-r-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];d<0?((i=e.left+h+p+f+t.collisionWidth-r-o)<0||i<a(d))&&(e.left+=h+p+f):u>0&&((s=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||a(s)<u)&&(e.left+=h+p+f)},top:function(e,t){var i,s,n=t.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,c=e.top-t.collisionPosition.marginTop,d=c-l,u=c+t.collisionHeight-r-l,h="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];d<0?(s=e.top+h+p+f+t.collisionHeight-r-o,e.top+h+p+f>d&&(s<0||s<a(d))&&(e.top+=h+p+f)):u>0&&(i=e.top-t.collisionPosition.marginTop+h+p+f-l,e.top+h+p+f>u&&(i>0||a(i)<u)&&(e.top+=h+p+f))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,n,o,a=document.getElementsByTagName("body")[0],r=document.createElement("div");for(o in t=document.createElement(a?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)t.style[o]=s[o];t.appendChild(r),(i=a||document.documentElement).insertBefore(t,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=e(r).offset().left,e.support.offsetFractions=n>10&&n<11,t.innerHTML="",i.removeChild(t)}(),!1!==e.uiBackCompat&&function(e){var i=e.fn.position;e.fn.position=function(s){if(!s||!s.offset)return i.call(this,s);var n=s.offset.split(" "),o=s.at.split(" ");return 1===n.length&&(n[1]=n[0]),/^\d/.test(n[0])&&(n[0]="+"+n[0]),/^\d/.test(n[1])&&(n[1]="+"+n[1]),1===o.length&&(/left|center|right/.test(o[0])?o[1]="center":(o[1]=o[0],o[0]="center")),i.call(this,e.extend(s,{at:o[0]+n[0]+" "+o[1]+n[1],offset:t}))}}(c())}(c()),function(e,t){var i=0;e.widget("ui.autocomplete",{version:"1.9.1",defaultElement:"<input>",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,s;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void s.preventDefault();if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=e("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:e(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur}));var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay((function(){var t=this;this.document.one("mousedown",(function(s){s.target!==t.element[0]&&s.target!==i&&!e.contains(i,s.target)&&t.close()}))}))},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));var s=i.item.data("ui-autocomplete-item")||i.item.data("item.autocomplete");!1!==this._trigger("focus",t,{item:s})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item")||t.item.data("item.autocomplete"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=i}))),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),e.fn.bgiframe&&this.menu.element.bgiframe(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this.document.find(t||"body")[0]),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return!!this.element.is("textarea")||!this.element.is("input")&&this.element.prop("isContentEditable")},_initSource:function(){var t,i,s=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=this,t=++i;return function(s){t===i&&e.__response(s),e.pending--,e.pending||e.element.removeClass("ui-autocomplete-loading")}},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({label:t.label||t.value,value:t.value||t.label},t)}))},_suggest:function(t){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,t),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,(function(e,i){s._renderItemData(t,i)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<a>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,(function(e){return s.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(c()),function(e,t){var i,s,n,o,a="ui-button ui-widget ui-state-default ui-corner-all",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",l=function(){var t=e(this).find(":ui-button");setTimeout((function(){t.button("refresh")}),1)},c=function(t){var i=t.name,s=t.form,n=e([]);return i&&(n=s?e(s).find("[name='"+i+"']"):e("[name='"+i+"']",t.ownerDocument).filter((function(){return!this.form}))),n};e.widget("ui.button",{version:"1.9.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,l),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var t=this,r=this.options,d="checkbox"===this.type||"radio"===this.type,u="ui-state-hover"+(d?"":" ui-state-active"),h="ui-state-focus";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this.buttonElement.addClass(a).attr("role","button").bind("mouseenter"+this.eventNamespace,(function(){r.disabled||(e(this).addClass("ui-state-hover"),this===i&&e(this).addClass("ui-state-active"))})).bind("mouseleave"+this.eventNamespace,(function(){r.disabled||e(this).removeClass(u)})).bind("click"+this.eventNamespace,(function(e){r.disabled&&(e.preventDefault(),e.stopImmediatePropagation())})),this.element.bind("focus"+this.eventNamespace,(function(){t.buttonElement.addClass(h)})).bind("blur"+this.eventNamespace,(function(){t.buttonElement.removeClass(h)})),d&&(this.element.bind("change"+this.eventNamespace,(function(){o||t.refresh()})),this.buttonElement.bind("mousedown"+this.eventNamespace,(function(e){r.disabled||(o=!1,s=e.pageX,n=e.pageY)})).bind("mouseup"+this.eventNamespace,(function(e){r.disabled||s===e.pageX&&n===e.pageY||(o=!0)}))),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){if(r.disabled||o)return!1;e(this).toggleClass("ui-state-active"),t.buttonElement.attr("aria-pressed",t.element[0].checked)})):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){if(r.disabled||o)return!1;e(this).addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var i=t.element[0];c(i).not(i).map((function(){return e(this).button("widget")[0]})).removeClass("ui-state-active").attr("aria-pressed","false")})):(this.buttonElement.bind("mousedown"+this.eventNamespace,(function(){if(r.disabled)return!1;e(this).addClass("ui-state-active"),i=this,t.document.one("mouseup",(function(){i=null}))})).bind("mouseup"+this.eventNamespace,(function(){if(r.disabled)return!1;e(this).removeClass("ui-state-active")})).bind("keydown"+this.eventNamespace,(function(t){if(r.disabled)return!1;(t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER)&&e(this).addClass("ui-state-active")})).bind("keyup"+this.eventNamespace,(function(){e(this).removeClass("ui-state-active")})),this.buttonElement.is("a")&&this.buttonElement.keyup((function(t){t.keyCode===e.ui.keyCode.SPACE&&e(this).click()}))),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(a+" ui-state-hover ui-state-active "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){this._super(e,t),"disabled"!==e?this._resetButton():t?this.element.prop("disabled",!0):this.element.prop("disabled",!1)},refresh:function(){var t=this.element.is(":disabled")||this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),"radio"===this.type?c(this.element[0]).each((function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")})):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var t=this.buttonElement.removeClass(r),i=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,o=[];s.primary||s.secondary?(this.options.text&&o.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(o.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e.trim(i)))):o.push("ui-button-text-only"),t.addClass(o.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),e.widget("ui.buttonset",{version:"1.9.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var t="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map((function(){return e(this).button("widget")[0]})).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map((function(){return e(this).button("widget")[0]})).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(c()),function(e,t){var i=!1;e.widget("ui.menu",{version:"1.9.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy((function(e){this.options.disabled&&e.preventDefault()}),this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var s=e(t.target).closest(".ui-menu-item");!i&&s.not(".ui-state-disabled").length&&(i=!0,this.select(t),s.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=e(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,i)},blur:function(t){this._delay((function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseAll(t),i=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each((function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()})),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,o,a,r,l=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:l=!1,n=this.previousFilter||"",o=String.fromCharCode(t.keyCode),a=!1,clearTimeout(this.filterTimer),o===n?a=!0:o=n+o,r=new RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter((function(){return r.test(e(this).children("a").text())})),(s=a&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s).length||(o=String.fromCharCode(t.keyCode),r=new RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter((function(){return r.test(e(this).children("a").text())}))),s.length?(this.focus(t,s),s.length>1?(this.previousFilter=o,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter):delete this.previousFilter}l&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i=this.options.icons.submenu,s=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"});(t=s.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each((function(){var t=e(this);/[^\-—–\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")})),t.children(".ui-state-disabled").attr("aria-disabled","true"),s.each((function(){var t=e(this),s=t.prev("a"),n=e("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",s.attr("id"))})),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(e,t){var i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=t.children(".ui-menu")).length&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=t.height(),n<0?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay((function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s}),this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s-n<0})),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-s+n>0})),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)}})}(c()),function(e,t){e.widget("ui.slider",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var t,i,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(s.disabled?" ui-slider-disabled ui-disabled":"")),this.range=e([]),s.range&&(!0===s.range&&(s.values||(s.values=[this._valueMin(),this._valueMin()]),s.values.length&&2!==s.values.length&&(s.values=[s.values[0],s.values[0]])),this.range=e("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===s.range||"max"===s.range?" ui-slider-range-"+s.range:""))),i=s.values&&s.values.length||1,t=n.length;t<i;t++)o.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=n.add(e(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(e){e.preventDefault()})).mouseenter((function(){s.disabled||e(this).addClass("ui-state-hover")})).mouseleave((function(){e(this).removeClass("ui-state-hover")})).focus((function(){s.disabled?e(this).blur():(e(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),e(this).addClass("ui-state-focus"))})).blur((function(){e(this).removeClass("ui-state-focus")})),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t)})),this._on(this.handles,{keydown:function(t){var i,s,n,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,e(t.target).addClass("ui-state-active"),!1===this._start(t,o)))return}switch(n=this.options.step,i=s=this.options.values&&this.options.values.length?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/5);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/5);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+n);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-n)}this._slide(t,o,s)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),e(t.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,a,r,l,c=this,d=this.options;return!d.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var i=Math.abs(s-c.values(t));n>i&&(n=i,o=e(this),a=t)})),!0===d.range&&this.values(1)===d.min&&(a+=1,o=e(this.handles[a])),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),r=o.offset(),l=!e(t.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-r.left-o.width()/2,top:t.pageY-r.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,s,n,o;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(s=i/t)>1&&(s=1),s<0&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var s,n,o;this.options.values&&this.options.values.length?(s=this.values(t?0:1),2===this.options.values.length&&!0===this.options.range&&(0===t&&i>s||1===t&&i<s)&&(i=s),i!==this.values(t)&&((n=this.values())[t]=i,o=this._trigger("slide",e,{handle:this.handles[t],value:i,values:n}),s=this.values(t?0:1),!1!==o&&this.values(t,i,!0))):i!==this.value()&&!1!==(o=this._trigger("slide",e,{handle:this.handles[t],value:i}))&&this.value(i)},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,i){var s,n,o;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(s=this.options.values,n=arguments[0],o=0;o<s.length;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(t,i){var s,n=0;switch(e.isArray(this.options.values)&&(n=this.options.values.length),e.Widget.prototype._setOption.apply(this,arguments),t){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;s<n;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i,s;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);for(i=this.options.values.slice(),s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(i[s]);return i},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,s=e-i;return 2*Math.abs(i)>=t&&(s+=i>0?t:-t),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,i,s,n,o,a=this.options.range,r=this.options,l=this,c=!this._animateOff&&r.animate,d={};this.options.values&&this.options.values.length?this.handles.each((function(s){i=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,d["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](d,r.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},r.animate),1===s&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:r.animate})):(0===s&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:r.animate}))),t=i})):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?(s-n)/(o-n)*100:0,d["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](d,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))}})}(c())},26822:(e,t,i)=>{"use strict";i.r(t);var s=i(20615);!function(e){e.fn.autocomplete_verheul=function(t){var i;arguments.length>1?(i=t,(t=arguments[1]).url=i):"string"==typeof t&&(t={url:i=t});var s=e.extend({},e.fn.autocomplete_verheul.defaults,t);return this.each((function(){var t=e(this);t.data("autocompleter",new e.Autocompleter(t,e.meta?e.extend({},s,t.data()):s))}))},e.fn.autocomplete_verheul.defaults={inputClass:"acInput",loadingClass:"acLoading",resultsClass:"acResults",selectClass:"acSelect",queryParamName:"q",extraParams:{},remoteDataType:!1,lineSeparator:"\n",cellSeparator:"|",minChars:2,maxItemsToShow:10,delay:400,useCache:!0,maxCacheLength:10,matchSubset:!0,matchCase:!1,matchInside:!0,mustMatch:!1,selectFirst:!1,selectOnly:!1,showResult:null,preventDefaultReturn:1,preventDefaultTab:0,autoFill:!1,filterResults:!0,filter:!0,sortResults:!0,sortFunction:null,onItemSelect:null,onNoMatch:null,onFinish:null,matchStringConverter:null,beforeUseConverter:null,autoWidth:"min-width",useDelimiter:!1,delimiterChar:",",delimiterKeyCode:188,processData:null,onError:null,enabled:!0};var t=function(t){var i,s,n=typeof t;return"string"===n?(i=t,s={}):e.isArray(t)?(i=t[0],s=t.slice(1)):"object"===n&&(i=t.value,s=t.data),"object"!=typeof s&&(s={}),{value:i=String(i),data:s}},i=function(e,t,i){var s=parseInt(e,10);return i=i||{},(isNaN(s)||i.min&&s<i.min)&&(s=t),s};e.Autocompleter=function(t,s){if(!t||!(t instanceof e)||1!==t.length||"INPUT"!==t.get(0).tagName.toUpperCase()&&"TEXTAREA"!==t.get(0).tagName.toUpperCase())throw new Error("Invalid parameter for jquery.Autocompleter, jQuery object with one element with INPUT or TEXTAREA tag expected.");var n=this;this.options=s,this.cacheData_={},this.cacheLength_=0,this.selectClass_="jquery-autocomplete-selected-item",this.keyTimeout_=null,this.finishTimeout_=null,this.lastKeyPressed_=null,this.lastProcessedValue_=null,this.lastSelectedValue_=null,this.active_=!1,this.finishOnBlur_=!0,this.options.minChars=i(this.options.minChars,e.fn.autocomplete_verheul.defaults.minChars,{min:0}),this.options.maxItemsToShow=i(this.options.maxItemsToShow,e.fn.autocomplete_verheul.defaults.maxItemsToShow,{min:0}),this.options.maxCacheLength=i(this.options.maxCacheLength,e.fn.autocomplete_verheul.defaults.maxCacheLength,{min:1}),this.options.delay=i(this.options.delay,e.fn.autocomplete_verheul.defaults.delay,{min:0}),2!=this.options.preventDefaultReturn&&(this.options.preventDefaultReturn=this.options.preventDefaultReturn?1:0),2!=this.options.preventDefaultTab&&(this.options.preventDefaultTab=this.options.preventDefaultTab?1:0),this.dom={},this.dom.$elem=t,this.dom.$elem.attr("autocomplete","off").addClass(this.options.inputClass),this.dom.$results=e("<div></div>").hide().addClass(this.options.resultsClass).css({position:"absolute"}),e("body").append(this.dom.$results),t.keydown((function(e){switch(n.lastKeyPressed_=e.keyCode,n.lastKeyPressed_){case n.options.delimiterKeyCode:n.options.useDelimiter&&n.active_&&n.selectCurrent();break;case 35:case 36:case 16:case 17:case 18:case 37:case 39:break;case 38:return e.preventDefault(),n.active_?n.focusPrev():n.activate(),!1;case 40:return e.preventDefault(),n.active_?n.focusNext():n.activate(),!1;case 9:if(n.active_&&(n.selectCurrent(),n.options.preventDefaultTab))return e.preventDefault(),!1;if(2===n.options.preventDefaultTab)return e.preventDefault(),!1;break;case 13:if(n.active_&&(n.selectCurrent(),n.options.preventDefaultReturn))return e.preventDefault(),!1;if(2===n.options.preventDefaultReturn)return e.preventDefault(),!1;break;case 27:if(n.active_)return e.preventDefault(),n.deactivate(!0),!1;break;default:n.activate()}})),t.on("paste",(function(){n.activate()}));var o=function(){n.deactivate(!0)};t.blur((function(){n.finishOnBlur_&&(n.finishTimeout_=setTimeout(o,200))})),t.parents("form").on("submit",o)},e.Autocompleter.prototype.position=function(){var t=this.dom.$elem.offset(),i=this.dom.$results.outerHeight(),s=e(window).outerHeight(),n=t.top+this.dom.$elem.outerHeight(),o=n+i,a={top:n,left:t.left};if(o>s){var r=t.top-i;r>=0&&(a.top=r)}this.dom.$results.css(a)},e.Autocompleter.prototype.cacheRead=function(e){var t,i,s,n,o;if(this.options.useCache)for(t=(e=String(e)).length,i=this.options.matchSubset?1:t;i<=t;){for(n=this.options.matchInside?t-i:0,o=0;o<=n;){if(s=e.substr(0,i),void 0!==this.cacheData_[s])return this.cacheData_[s];o++}i++}return!1},e.Autocompleter.prototype.cacheWrite=function(e,t){return!!this.options.useCache&&(this.cacheLength_>=this.options.maxCacheLength&&this.cacheFlush(),e=String(e),void 0!==this.cacheData_[e]&&this.cacheLength_++,this.cacheData_[e]=t,this.cacheData_[e])},e.Autocompleter.prototype.cacheFlush=function(){this.cacheData_={},this.cacheLength_=0},e.Autocompleter.prototype.callHook=function(t,i){var s=this.options[t];return!(!s||!e.isFunction(s))&&s(i,this)},e.Autocompleter.prototype.activate=function(){if(this.options.enabled){var e=this;this.keyTimeout_&&clearTimeout(this.keyTimeout_),this.keyTimeout_=setTimeout((function(){e.activateNow()}),this.options.delay)}},e.Autocompleter.prototype.activateNow=function(){var e=this.beforeUseConverter(this.dom.$elem.val());e!==this.lastProcessedValue_&&e!==this.lastSelectedValue_&&this.fetchData(e)},e.Autocompleter.prototype.fetchData=function(e){var t=this,i=function(e,i){t.options.processData&&(e=t.options.processData(e)),t.showResults(t.filterResults(e,i),i)};this.lastProcessedValue_=e,e.length<this.options.minChars?i([],e):this.options.data?i(this.options.data,e):this.fetchRemoteData(e,(function(t){i(t,e)}))},e.Autocompleter.prototype.fetchRemoteData=function(t,i){var s=this.cacheRead(t);if(s)i(s);else{var n=this,o="json"===n.options.remoteDataType?"json":"text",a=function(e){var s=!1;!1!==e&&(s=n.parseRemoteData(e),n.cacheWrite(t,s)),n.dom.$elem.removeClass(n.options.loadingClass),i(s)};this.dom.$elem.addClass(this.options.loadingClass),e.ajax({url:this.makeUrl(t),success:a,error:function(t,i,s){e.isFunction(n.options.onError)?n.options.onError(t,i,s):a(!1)},dataType:o})}},e.Autocompleter.prototype.setExtraParam=function(t,i){var s=e.trim(String(t));return s&&(this.options.extraParams||(this.options.extraParams={}),this.options.extraParams[s]!==i&&(this.options.extraParams[s]=i,this.cacheFlush())),this},e.Autocompleter.prototype.makeUrl=function(t){var i=this.options.url,s=e.extend({},this.options.extraParams);return!1===this.options.queryParamName?i+=encodeURIComponent(t):s[this.options.queryParamName]=t,function(t,i){var s=[];return e.each(i,(function(e,t){s.push(function(e,t){return[e,encodeURIComponent(t)].join("=")}(e,t))})),s.length&&(t+=-1===t.indexOf("?")?"?":"&",t+=s.join("&")),t}(i,s)},e.Autocompleter.prototype.parseRemoteData=function(t){var i,s=t;if("json"===this.options.remoteDataType){switch(i=typeof t){case"object":s=t;break;case"string":s=e.parseJSON(t);break;default:throw new Error("Unexpected remote data type: "+i)}return s}return function(e,t,i){var s,n,o,a,r,l,c=[];for(l=String(e).replace("\r\n","\n").split(t),s=0;s<l.length;s++){for(a=l[s].split(i),o=[],n=0;n<a.length;n++)o.push(decodeURIComponent(a[n]));r=o.shift(),c.push({value:r,data:o})}return c}(s,this.options.lineSeparator,this.options.cellSeparator)},e.Autocompleter.prototype.defaultFilter=function(e,t){if(!e.value)return!1;if(this.options.filterResults){var i=this.matchStringConverter(t),s=this.matchStringConverter(e.value);this.options.matchCase||(i=i.toLowerCase(),s=s.toLowerCase());var n=s.indexOf(i);return this.options.matchInside?n>-1:0===n}return!0},e.Autocompleter.prototype.filterResult=function(t,i){return!1===this.options.filter||(e.isFunction(this.options.filter)?this.options.filter(t,i):this.defaultFilter(t,i))},e.Autocompleter.prototype.filterResults=function(e,i){var s,n,o=[];for(s=0;s<e.length;s++)n=t(e[s]),this.filterResult(n,i)&&o.push(n);return this.options.sortResults&&(o=this.sortResults(o,i)),this.options.maxItemsToShow>0&&this.options.maxItemsToShow<o.length&&(o.length=this.options.maxItemsToShow),o},e.Autocompleter.prototype.sortResults=function(t,i){var s=this,n=this.options.sortFunction;return e.isFunction(n)||(n=function(e,t,i){return function(e,t,i){return e=String(e.value),t=String(t.value),i||(e=e.toLowerCase(),t=t.toLowerCase()),e>t?1:e<t?-1:0}(e,t,s.options.matchCase)}),t.sort((function(e,t){return n(e,t,i,s.options)})),t},e.Autocompleter.prototype.matchStringConverter=function(t,i,s){var n=this.options.matchStringConverter;return e.isFunction(n)&&(t=n(t,i,s)),t},e.Autocompleter.prototype.beforeUseConverter=function(t){t=this.getValue(t);var i=this.options.beforeUseConverter;return e.isFunction(i)&&(t=i(t)),t},e.Autocompleter.prototype.enableFinishOnBlur=function(){this.finishOnBlur_=!0},e.Autocompleter.prototype.disableFinishOnBlur=function(){this.finishOnBlur_=!1},e.Autocompleter.prototype.createItemFromResult=function(t){var i=this,s=e("<li/>");return s.html(this.showResult(t.value,t.data)),s.data({value:t.value,data:t.data}).click((function(){i.selectItem(s)})).mousedown(i.disableFinishOnBlur).mouseup(i.enableFinishOnBlur),s},e.Autocompleter.prototype.getItems=function(){return e(">ul>li",this.dom.$results)},e.Autocompleter.prototype.showResults=function(t,i){var s,n,o,a,r=t.length,l=this,c=e("<ul></ul>"),d=!1,u=!1;if(r){for(s=0;s<r;s++)n=t[s],o=this.createItemFromResult(n),c.append(o),!1===d&&(d=String(n.value),u=o,o.addClass(this.options.firstItemClass)),s===r-1&&o.addClass(this.options.lastItemClass);this.dom.$results.html(c).show(),this.position(),this.options.autoWidth&&(a=this.dom.$elem.outerWidth()-this.dom.$results.outerWidth()+this.dom.$results.width(),this.dom.$results.css(this.options.autoWidth,a)),this.getItems().hover((function(){l.focusItem(this)}),(function(){})),(this.autoFill(d,i)||this.options.selectFirst||this.options.selectOnly&&1===r)&&this.focusItem(u),this.active_=!0}else this.hideResults(),this.active_=!1},e.Autocompleter.prototype.showResult=function(t,i){return e.isFunction(this.options.showResult)?this.options.showResult(t,i):e("<p></p>").text(t).html()},e.Autocompleter.prototype.autoFill=function(e,t){var i,s,n,o;if(this.options.autoFill&&8!==this.lastKeyPressed_&&(i=String(e).toLowerCase(),s=String(t).toLowerCase(),n=e.length,o=t.length,i.substr(0,o)===s)){var a=this.getDelimiterOffsets(),r=a.start?" ":"";this.setValue(r+e);var l=o+a.start+r.length,c=n+a.start+r.length;return this.selectRange(l,c),!0}return!1},e.Autocompleter.prototype.focusNext=function(){this.focusMove(1)},e.Autocompleter.prototype.focusPrev=function(){this.focusMove(-1)},e.Autocompleter.prototype.focusMove=function(t){var s=this.getItems();if(t=i(t,0))for(var n=0;n<s.length;n++)if(e(s[n]).hasClass(this.selectClass_))return void this.focusItem(n+t);this.focusItem(0)},e.Autocompleter.prototype.focusItem=function(t){var i,s=this.getItems();s.length&&(s.removeClass(this.selectClass_).removeClass(this.options.selectClass),"number"==typeof t?(t<0?t=0:t>=s.length&&(t=s.length-1),i=e(s[t])):i=e(t),i&&i.addClass(this.selectClass_).addClass(this.options.selectClass))},e.Autocompleter.prototype.selectCurrent=function(){var t=e("li."+this.selectClass_,this.dom.$results);1===t.length?this.selectItem(t):this.deactivate(!1)},e.Autocompleter.prototype.selectItem=function(e){var t=e.data("value"),i=e.data("data"),s=this.displayValue(t,i),n=this.beforeUseConverter(s);this.lastProcessedValue_=n,this.lastSelectedValue_=n;var o=this.getDelimiterOffsets(),a=this.options.delimiterChar,r=this.dom.$elem,l=0;this.options.useDelimiter&&(r.val().substring(o.start-1,o.start)==a&&" "!=a&&(s=" "+s),r.val().substring(o.end,o.end+1)!=a&&this.lastKeyPressed_!=this.options.delimiterKeyCode?s+=a:l=1),this.setValue(s),this.setCaret(o.start+s.length+l),this.callHook("onItemSelect",{value:t,data:i}),this.deactivate(!0),r.focus()},e.Autocompleter.prototype.displayValue=function(t,i){return e.isFunction(this.options.displayValue)?this.options.displayValue(t,i):t},e.Autocompleter.prototype.hideResults=function(){this.dom.$results.hide()},e.Autocompleter.prototype.deactivate=function(e){this.finishTimeout_&&clearTimeout(this.finishTimeout_),this.keyTimeout_&&clearTimeout(this.keyTimeout_),e&&(this.lastProcessedValue_!==this.lastSelectedValue_&&(this.options.mustMatch&&this.setValue(""),this.callHook("onNoMatch")),this.active_&&this.callHook("onFinish"),this.lastKeyPressed_=null,this.lastProcessedValue_=null,this.lastSelectedValue_=null,this.active_=!1),this.hideResults()},e.Autocompleter.prototype.selectRange=function(e,t){var i=this.dom.$elem.get(0);if(i.setSelectionRange)i.focus(),i.setSelectionRange(e,t);else if(i.createTextRange){var s=i.createTextRange();s.collapse(!0),s.moveEnd("character",t),s.moveStart("character",e),s.select()}},e.Autocompleter.prototype.setCaret=function(e){this.selectRange(e,e)},e.Autocompleter.prototype.getCaret=function(){var e,t,i,s,n,o,a=this.dom.$elem,r=a[0];return r.createTextRange?(t=document.selection,"textarea"!=r.tagName.toLowerCase()?(e=a.val(),(i=t.createRange().duplicate()).moveEnd("character",e.length),s=""===i.text?e.length:e.lastIndexOf(i.text),(i=t.createRange().duplicate()).moveStart("character",-e.length),n=i.text.length):((o=(i=t.createRange()).duplicate()).moveToElementText(r),o.setEndPoint("EndToEnd",i),n=(s=o.text.length-i.text.length)+i.text.length)):(s=a[0].selectionStart,n=a[0].selectionEnd),{start:s,end:n}},e.Autocompleter.prototype.setValue=function(e){if(this.options.useDelimiter){var t=this.dom.$elem.val(),i=this.getDelimiterOffsets();e=t.substring(0,i.start)+e+t.substring(i.end)}this.dom.$elem.val(e)},e.Autocompleter.prototype.getValue=function(e){if(this.options.useDelimiter){var t=this.getDelimiterOffsets();return e.substring(t.start,t.end).trim()}return e},e.Autocompleter.prototype.getDelimiterOffsets=function(){var e=this.dom.$elem.val();if(this.options.useDelimiter){var t=e.substring(0,this.getCaret().start).lastIndexOf(this.options.delimiterChar)+1,i=e.substring(this.getCaret().start).indexOf(this.options.delimiterChar);-1==i&&(i=e.length),i+=this.getCaret().start}else t=0,i=e.length;return{start:t,end:i}}}(i.n(s)())},22862:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);var jqueryVendor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(20615),jqueryVendor__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jqueryVendor__WEBPACK_IMPORTED_MODULE_0__),_canLog=!0;function _log(e,t){if(_canLog){var i=Array.prototype.slice.apply(arguments,[1]),s=new Date,n=s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+"."+s.getMilliseconds();i[0]=n+" - "+i[0];try{switch(e){case"info":window.console.info.apply(window.console,i);break;case"warn":window.console.warn.apply(window.console,i);break;default:window.console.log.apply(window.console,i)}}catch(e){window.console?-2146827850===e.number&&window.console.log(i.join(", ")):_canLog=!1}}}function logMsg(e){Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments)}var getDynaTreePersistData=null,DTNodeStatus_Error=-1,DTNodeStatus_Loading=1,DTNodeStatus_Ok=0;(function($){var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};function getDtNodeFromElement(e){return alert("getDtNodeFromElement is deprecated"),$.ui.dynatree.getNode(e)}function noop(){}function offsetString(e){return 0===e?"":e>0?"+"+e:""+e}function _checkBrowser(){var e,t;return t={},(e=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}(navigator.userAgent)).browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),t}function versionCompare(e,t){var i,s,n,o=(""+e).split("."),a=(""+t).split("."),r=Math.min(o.length,a.length);for(n=0;n<r;n++)if(i=parseInt(o[n],10),s=parseInt(a[n],10),isNaN(i)&&(i=o[n]),isNaN(s)&&(s=a[n]),i!=s)return i>s?1:i<s?-1:NaN;return o.length===a.length?0:o.length<a.length?-1:1}var BROWSER=_checkBrowser(),jquerySupports={positionMyOfs:versionCompare($.ui.version,"1.9")>=0},DynaTreeNode=Class.create();DynaTreeNode.prototype={initialize:function(e,t,i){this.parent=e,this.tree=t,"string"==typeof i&&(i={title:i}),null==i.key?i.key="_"+t._nodeCount++:i.key=""+i.key,this.data=$.extend({},$.ui.dynatree.nodedatadefaults,i),this.li=null,this.span=null,this.ul=null,this.childList=null,this._isLoading=!1,this.hasSubSel=!1,this.bExpanded=!1,this.bSelected=!1},toString:function(){return"DynaTreeNode<"+this.data.key+">: '"+this.data.title+"'"},toDict:function(e,t){var i,s=$.extend({},this.data);if(s.activate=this.tree.activeNode===this,s.focus=this.tree.focusNode===this,s.expand=this.bExpanded,s.select=this.bSelected,t&&t(s),e&&this.childList){s.children=[];for(var n=0,o=this.childList.length;n<o;n++)(i=this.childList[n]).isStatusNode()||s.children.push(i.toDict(!0,t))}else delete s.children;return s},fromDict:function(e){var t=e.children;if(void 0===t)return this.data=$.extend(this.data,e),void this.render();(e=$.extend({},e)).children=void 0,this.data=$.extend(this.data,e),this.removeChildren(),this.addChild(t)},_getInnerHtml:function(){var e=this.tree,t=e.options,i=e.cache,s=this.getLevel(),n=this.data,o="";s<t.minExpandLevel?s>1&&(o+=i.tagConnector):!1!==this.hasChildren()?o+=i.tagExpander:o+=i.tagConnector,t.checkbox&&!0!==n.hideCheckbox&&!n.isStatusNode&&(o+=i.tagCheckbox),n.icon?o+="<img src='"+("/"===n.icon.charAt(0)?n.icon:t.imagePath+n.icon)+"' alt='' />":!1===n.icon||(n.iconClass?o+="<span class=' "+n.iconClass+"'></span>":o+=i.tagNodeIcon);var a="";if(t.onCustomRender&&(a=t.onCustomRender.call(e,this)||""),!a){var r=n.tooltip?' title="'+n.tooltip.replace(/\"/g,""")+'"':"",l=n.href||"#";a=t.noLink||n.noLink?'<span style="display:inline-block;" class="'+t.classNames.title+'"'+r+">"+n.title+"</span>":'<a href="'+l+'" class="'+t.classNames.title+'"'+r+">"+n.title+"</a>"}return o+a},_fixOrder:function(){var e=this.childList;if(e&&this.ul)for(var t=this.ul.firstChild,i=0,s=e.length-1;i<s;i++){var n=e[i],o=t.dtnode;n!==o?(this.tree.logDebug("_fixOrder: mismatch at index "+i+": "+n+" != "+o),this.ul.insertBefore(n.li,o.li)):t=t.nextSibling}},render:function(e,t){var i=this.tree,s=this.parent,n=this.data,o=i.options,a=o.classNames,r=this.isLastSibling(),l=!1;if(s||this.ul){if(s){this.li||(l=!0,this.li=document.createElement("li"),this.li.dtnode=this,n.key&&o.generateIds&&(this.li.id=o.idPrefix+n.key),this.span=document.createElement("span"),this.span.className=a.title,this.li.appendChild(this.span),s.ul||(s.ul=document.createElement("ul"),s.ul.style.display="none",s.li.appendChild(s.ul)),s.ul.appendChild(this.li)),this.span.innerHTML=this._getInnerHtml();var c=[];c.push(a.node),n.isFolder&&c.push(a.folder),this.bExpanded&&c.push(a.expanded),!1!==this.hasChildren()&&c.push(a.hasChildren),n.isLazy&&null===this.childList&&c.push(a.lazy),r&&c.push(a.lastsib),this.bSelected&&c.push(a.selected),this.hasSubSel&&c.push(a.partsel),i.activeNode===this&&c.push(a.active),n.addClass&&c.push(n.addClass),c.push(a.combinedExpanderPrefix+(this.bExpanded?"e":"c")+(n.isLazy&&null===this.childList?"d":"")+(r?"l":"")),c.push(a.combinedIconPrefix+(this.bExpanded?"e":"c")+(n.isFolder?"f":"")),this.span.className=c.join(" "),this.li.className=r?a.lastsib:"",l&&o.onCreate&&o.onCreate.call(i,this,this.span),o.onRender&&o.onRender.call(i,this,this.span)}}else this.li=this.span=null,this.ul=document.createElement("ul"),o.minExpandLevel>1?this.ul.className=a.container+" "+a.noConnector:this.ul.className=a.container;if((this.bExpanded||!0===t)&&this.childList){for(var d=0,u=this.childList.length;d<u;d++)this.childList[d].render(!1,t);this._fixOrder()}if(this.ul){var h="none"===this.ul.style.display,p=!!this.bExpanded;if(e&&o.fx&&h===p){var f=o.fx.duration||200;$(this.ul).animate(o.fx,f)}else this.ul.style.display=this.bExpanded||!s?"":"none"}},getKeyPath:function(e){var t=[],i=this.tree.options.keyPathSeparator;return this.visitParents((function(e){e.parent&&t.unshift(e.data.key)}),!e),i+t.join(i)},getParent:function(){return this.parent},getChildren:function(){if(void 0!==this.hasChildren())return this.childList},hasChildren:function(){if(this.data.isLazy){if(null===this.childList||void 0===this.childList)return;if(0===this.childList.length)return!1;if(1===this.childList.length&&this.childList[0].isStatusNode())return;return!0}return!!this.childList},isFirstSibling:function(){var e=this.parent;return!e||e.childList[0]===this},isLastSibling:function(){var e=this.parent;return!e||e.childList[e.childList.length-1]===this},isLoading:function(){return!!this._isLoading},getPrevSibling:function(){if(!this.parent)return null;for(var e=this.parent.childList,t=1,i=e.length;t<i;t++)if(e[t]===this)return e[t-1];return null},getNextSibling:function(){if(!this.parent)return null;for(var e=this.parent.childList,t=0,i=e.length-1;t<i;t++)if(e[t]===this)return e[t+1];return null},isStatusNode:function(){return!0===this.data.isStatusNode},isChildOf:function(e){return this.parent&&this.parent===e},isDescendantOf:function(e){if(!e)return!1;for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},countChildren:function(){var e=this.childList;if(!e)return 0;for(var t=e.length,i=0,s=t;i<s;i++)t+=e[i].countChildren();return t},sortChildren:function(e,t){var i=this.childList;if(i){if(e=e||function(e,t){var i=e.data.title.toLowerCase(),s=t.data.title.toLowerCase();return i===s?0:i>s?1:-1},i.sort(e),t)for(var s=0,n=i.length;s<n;s++)i[s].childList&&i[s].sortChildren(e,"$norender$");"$norender$"!==t&&this.render()}},_setStatusNode:function(e){var t=this.childList?this.childList[0]:null;if(e)t?(e.isStatusNode=!0,e.key="_statusNode",t.data=e,t.render()):(e.isStatusNode=!0,e.key="_statusNode",t=this.addChild(e));else if(t&&t.isStatusNode()){try{this.ul&&(this.ul.removeChild(t.li),t.li=null)}catch(e){}1===this.childList.length?this.childList=[]:this.childList.shift()}},setLazyNodeStatus:function(e,t){var i=t&&t.tooltip?t.tooltip:null,s=t&&t.info?" ("+t.info+")":"";switch(e){case DTNodeStatus_Ok:this._setStatusNode(null),$(this.span).removeClass(this.tree.options.classNames.nodeLoading),this._isLoading=!1,this.tree.options.autoFocus&&(this===this.tree.tnRoot&&this.childList&&this.childList.length>0?this.childList[0].focus():this.focus());break;case DTNodeStatus_Loading:this._isLoading=!0,$(this.span).addClass(this.tree.options.classNames.nodeLoading),this.parent||this._setStatusNode({title:this.tree.options.strings.loading+s,tooltip:i,addClass:this.tree.options.classNames.nodeWait});break;case DTNodeStatus_Error:this._isLoading=!1,this._setStatusNode({title:this.tree.options.strings.loadError+s,tooltip:i,addClass:this.tree.options.classNames.nodeError});break;default:throw"Bad LazyNodeStatus: '"+e+"'."}},_parentList:function(e,t){for(var i=[],s=t?this:this.parent;s;)(e||s.parent)&&i.unshift(s),s=s.parent;return i},getLevel:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},_getTypeForOuterNodeEvent:function(e){var t=this.tree.options.classNames,i=e.target;if(i.className.indexOf(t.node)<0)return null;for(var s=e.pageX-i.offsetLeft,n=e.pageY-i.offsetTop,o=0,a=i.childNodes.length;o<a;o++){var r=i.childNodes[o],l=r.offsetLeft-i.offsetLeft,c=r.offsetTop-i.offsetTop,d=r.clientWidth,u=r.clientHeight;if(s>=l&&s<=l+d&&n>=c&&n<=c+u){if(r.className==t.title)return"title";if(r.className==t.expander)return"expander";if(r.className==t.checkbox||r.className==t.radio)return"checkbox";if(r.className==t.nodeIcon)return"icon"}}return"prefix"},getEventTargetType:function(e){var t=e&&e.target?e.target.className:"",i=this.tree.options.classNames;return t.indexOf(i.title)>=0?"title":t.indexOf(i.expander)>=0?"expander":t.indexOf(i.checkbox)>=0||t.indexOf(i.radio)>=0?"checkbox":t.indexOf(i.nodeIcon)>=0?"icon":t.indexOf(i.empty)>=0||t.indexOf(i.vline)>=0||t.indexOf(i.connector)>=0?"prefix":t.indexOf(i.node)>=0?this._getTypeForOuterNodeEvent(e):null},isVisible:function(){for(var e=this._parentList(!0,!1),t=0,i=e.length;t<i;t++)if(!e[t].bExpanded)return!1;return!0},makeVisible:function(){for(var e=this._parentList(!0,!1),t=0,i=e.length;t<i;t++)e[t]._expand(!0)},focus:function(){this.makeVisible();try{$(this.span).find(">a").focus()}catch(e){}},isFocused:function(){return this.tree.tnFocused===this},_activate:function(e,t){this.tree.logDebug("dtnode._activate(%o, fireEvents=%o) - %o",e,t,this);var i=this.tree.options;if(!this.data.isStatusNode)if(e){if(t&&i.onQueryActivate&&!1===i.onQueryActivate.call(this.tree,e,this))return;if(this.tree.activeNode){if(this.tree.activeNode===this)return;this.tree.activeNode.deactivate()}i.activeVisible&&this.makeVisible(),this.tree.activeNode=this,i.persist&&$.cookie(i.cookieId+"-active",this.data.key,i.cookie),this.tree.persistence.activeKey=this.data.key,$(this.span).addClass(i.classNames.active),t&&i.onActivate&&i.onActivate.call(this.tree,this)}else if(this.tree.activeNode===this){if(i.onQueryActivate&&!1===i.onQueryActivate.call(this.tree,!1,this))return;$(this.span).removeClass(i.classNames.active),i.persist&&$.cookie(i.cookieId+"-active","",i.cookie),this.tree.persistence.activeKey=null,this.tree.activeNode=null,t&&i.onDeactivate&&i.onDeactivate.call(this.tree,this)}},activate:function(){this._activate(!0,!0)},activateSilently:function(){this._activate(!0,!1)},deactivate:function(){this._activate(!1,!0)},isActive:function(){return this.tree.activeNode===this},_userActivate:function(){var e=!0,t=!1;if(this.data.isFolder)switch(this.tree.options.clickFolderMode){case 2:e=!1,t=!0;break;case 3:e=t=!0}null===this.parent&&(t=!1),t&&(this.toggleExpand(),this.focus()),e&&this.activate()},_setSubSel:function(e){e?(this.hasSubSel=!0,$(this.span).addClass(this.tree.options.classNames.partsel)):(this.hasSubSel=!1,$(this.span).removeClass(this.tree.options.classNames.partsel))},_updatePartSelectionState:function(){var e;if(!this.hasChildren())return e=this.bSelected&&!this.data.unselectable&&!this.data.isStatusNode,this._setSubSel(!1),e;var t,i,s=this.childList,n=!0,o=!0;for(t=0,i=s.length;t<i;t++){var a=s[t]._updatePartSelectionState();!1!==a&&(o=!1),!0!==a&&(n=!1)}return e=!!n||!o&&void 0,this._setSubSel(void 0===e),this.bSelected=!0===e,e},_fixSelectionState:function(){var e,t,i;if(this.bSelected)for(this.visit((function(e){e.parent._setSubSel(!0),e.data.unselectable||e._select(!0,!1,!1)})),e=this.parent;e;){e._setSubSel(!0);var s=!0;for(t=0,i=e.childList.length;t<i;t++){var n=e.childList[t];if(!n.bSelected&&!n.data.isStatusNode&&!n.data.unselectable){s=!1;break}}s&&e._select(!0,!1,!1),e=e.parent}else for(this._setSubSel(!1),this.visit((function(e){e._setSubSel(!1),e._select(!1,!1,!1)})),e=this.parent;e;){e._select(!1,!1,!1);var o=!1;for(t=0,i=e.childList.length;t<i;t++)if(e.childList[t].bSelected||e.childList[t].hasSubSel){o=!0;break}e._setSubSel(o),e=e.parent}},_select:function(e,t,i){var s=this.tree.options;this.data.isStatusNode||this.bSelected!==e&&(t&&s.onQuerySelect&&!1===s.onQuerySelect.call(this.tree,e,this)||(1==s.selectMode&&e&&this.tree.visit((function(e){if(e.bSelected)return e._select(!1,!1,!1),!1})),this.bSelected=e,e?(s.persist&&this.tree.persistence.addSelect(this.data.key),$(this.span).addClass(s.classNames.selected),i&&3===s.selectMode&&this._fixSelectionState(),t&&s.onSelect&&s.onSelect.call(this.tree,!0,this)):(s.persist&&this.tree.persistence.clearSelect(this.data.key),$(this.span).removeClass(s.classNames.selected),i&&3===s.selectMode&&this._fixSelectionState(),t&&s.onSelect&&s.onSelect.call(this.tree,!1,this))))},select:function(e){return this.data.unselectable?this.bSelected:this._select(!1!==e,!0,!0)},toggleSelect:function(){return this.select(!this.bSelected)},isSelected:function(){return this.bSelected},isLazy:function(){return!!this.data.isLazy},_loadContent:function(){try{var e=this.tree.options;this.tree.logDebug("_loadContent: start - %o",this),this.setLazyNodeStatus(DTNodeStatus_Loading),!0===e.onLazyRead.call(this.tree,this)&&(this.setLazyNodeStatus(DTNodeStatus_Ok),this.tree.logDebug("_loadContent: succeeded - %o",this))}catch(e){this.tree.logWarning("_loadContent: failed - %o",e),this.setLazyNodeStatus(DTNodeStatus_Error,{tooltip:""+e})}},_expand:function(e,t){if(this.bExpanded!==e){this.tree.logDebug("dtnode._expand(%o) - %o",e,this);var i=this.tree.options;if(!e&&this.getLevel()<i.minExpandLevel)this.tree.logDebug("dtnode._expand(%o) prevented collapse - %o",e,this);else if(!i.onQueryExpand||!1!==i.onQueryExpand.call(this.tree,e,this)){this.bExpanded=e,i.persist&&(e?this.tree.persistence.addExpand(this.data.key):this.tree.persistence.clearExpand(this.data.key));var s=!(this.data.isLazy&&null===this.childList||this._isLoading||t);if(this.render(s),this.bExpanded&&this.parent&&i.autoCollapse)for(var n=this._parentList(!1,!0),o=0,a=n.length;o<a;o++)n[o].collapseSiblings();i.activeVisible&&this.tree.activeNode&&!this.tree.activeNode.isVisible()&&this.tree.activeNode.deactivate(),e&&this.data.isLazy&&null===this.childList&&!this._isLoading?this._loadContent():i.onExpand&&i.onExpand.call(this.tree,e,this)}}else this.tree.logDebug("dtnode._expand(%o) IGNORED - %o",e,this)},isExpanded:function(){return this.bExpanded},expand:function(e){e=!1!==e,(this.childList||this.data.isLazy||!e)&&(null!==this.parent||e)&&this._expand(e)},scheduleAction:function(e,t){this.tree.timer&&(clearTimeout(this.tree.timer),this.tree.logDebug("clearTimeout(%o)",this.tree.timer));var i=this;switch(e){case"cancel":break;case"expand":this.tree.timer=setTimeout((function(){i.tree.logDebug("setTimeout: trigger expand"),i.expand(!0)}),t);break;case"activate":this.tree.timer=setTimeout((function(){i.tree.logDebug("setTimeout: trigger activate"),i.activate()}),t);break;default:throw"Invalid mode "+e}this.tree.logDebug("setTimeout(%s, %s): %s",e,t,this.tree.timer)},toggleExpand:function(){this.expand(!this.bExpanded)},collapseSiblings:function(){if(null!==this.parent)for(var e=this.parent.childList,t=0,i=e.length;t<i;t++)e[t]!==this&&e[t].bExpanded&&e[t]._expand(!1)},_onClick:function(e){var t=this.getEventTargetType(e);if("expander"===t)this.toggleExpand(),this.focus();else if("checkbox"===t)this.toggleSelect(),this.focus();else{this._userActivate();var i=this.span.getElementsByTagName("a");if(!i[0])return!0;BROWSER.msie&&parseInt(BROWSER.version,10)<9||i[0].focus()}e.preventDefault()},_onDblClick:function(e){},_onKeydown:function(e){var t,i=!0;switch(e.which){case 107:case 187:this.bExpanded||this.toggleExpand();break;case 109:case 189:this.bExpanded&&this.toggleExpand();break;case 32:this._userActivate();break;case 8:this.parent&&this.parent.focus();break;case 37:this.bExpanded?(this.toggleExpand(),this.focus()):this.parent&&this.parent.parent&&this.parent.focus();break;case 39:this.bExpanded||!this.childList&&!this.data.isLazy?this.childList&&this.childList[0].focus():(this.toggleExpand(),this.focus());break;case 38:for(t=this.getPrevSibling();t&&t.bExpanded&&t.childList;)t=t.childList[t.childList.length-1];!t&&this.parent&&this.parent.parent&&(t=this.parent),t&&t.focus();break;case 40:if(this.bExpanded&&this.childList)t=this.childList[0];else for(var s=this._parentList(!1,!0),n=s.length-1;n>=0&&!(t=s[n].getNextSibling());n--);t&&t.focus();break;default:i=!1}i&&e.preventDefault()},_onKeypress:function(e){},_onFocus:function(e){var t=this.tree.options;"blur"==e.type||"focusout"==e.type?(t.onBlur&&t.onBlur.call(this.tree,this),this.tree.tnFocused&&$(this.tree.tnFocused.span).removeClass(t.classNames.focused),this.tree.tnFocused=null,t.persist&&$.cookie(t.cookieId+"-focus","",t.cookie)):"focus"!=e.type&&"focusin"!=e.type||(this.tree.tnFocused&&this.tree.tnFocused!==this&&(this.tree.logDebug("dtnode.onFocus: out of sync: curFocus: %o",this.tree.tnFocused),$(this.tree.tnFocused.span).removeClass(t.classNames.focused)),this.tree.tnFocused=this,t.onFocus&&t.onFocus.call(this.tree,this),$(this.tree.tnFocused.span).addClass(t.classNames.focused),t.persist&&$.cookie(t.cookieId+"-focus",this.data.key,t.cookie))},visit:function(e,t){var i=!0;if(!0===t&&(!1===(i=e(this))||"skip"===i))return i;if(this.childList)for(var s=0,n=this.childList.length;s<n&&!1!==(i=this.childList[s].visit(e,!0));s++);return i},visitParents:function(e,t){if(t&&!1===e(this))return!1;for(var i=this.parent;i;){if(!1===e(i))return!1;i=i.parent}return!0},remove:function(){if(this===this.tree.root)throw"Cannot remove system root";return this.parent.removeChild(this)},removeChild:function(e){var t=this.childList;if(1===t.length){if(e!==t[0])throw"removeChild: invalid child";return this.removeChildren()}e===this.tree.activeNode&&e.deactivate(),this.tree.options.persist&&(e.bSelected&&this.tree.persistence.clearSelect(e.data.key),e.bExpanded&&this.tree.persistence.clearExpand(e.data.key)),e.removeChildren(!0),this.ul&&e.li&&this.ul.removeChild(e.li);for(var i=0,s=t.length;i<s;i++)if(t[i]===e){this.childList.splice(i,1);break}},removeChildren:function(e,t){this.tree.logDebug("%s.removeChildren(%o)",this,e);var i=this.tree,s=this.childList;if(s){for(var n=0,o=s.length;n<o;n++){var a=s[n];a!==i.activeNode||t||a.deactivate(),this.tree.options.persist&&!t&&(a.bSelected&&this.tree.persistence.clearSelect(a.data.key),a.bExpanded&&this.tree.persistence.clearExpand(a.data.key)),a.removeChildren(!0,t),this.ul&&a.li&&$("li",$(this.ul)).remove()}this.childList=null}e||(this._isLoading=!1,this.render())},setTitle:function(e){this.fromDict({title:e})},reload:function(e){throw"Use reloadChildren() instead"},reloadChildren:function(e){if(null===this.parent)throw"Use tree.reload() instead";if(!this.data.isLazy)throw"node.reloadChildren() requires lazy nodes.";if(e){var t=this,i="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key;this.tree.$tree.bind(i,(function(s,n,o){if(t.tree.$tree.unbind(i),t.tree.logDebug("loaded %o, %o, %o",s,n,o),n!==t)throw"got invalid load event";e.call(t.tree,n,o)}))}this.removeChildren(),this._loadContent()},_loadKeyPath:function(e,t){var i=this.tree;if(i.logDebug("%s._loadKeyPath(%s)",this,e),""===e)throw"Key path must not be empty";var s=e.split(i.options.keyPathSeparator);if(""===s[0])throw"Key path must be relative (don't start with '/')";var n=s.shift();if(this.childList)for(var o=0,a=this.childList.length;o<a;o++){var r=this.childList[o];if(r.data.key===n){if(0===s.length)t.call(i,r,"ok");else if(!r.data.isLazy||null!==r.childList&&void 0!==r.childList)t.call(i,r,"loaded"),r._loadKeyPath(s.join(i.options.keyPathSeparator),t);else{i.logDebug("%s._loadKeyPath(%s) -> reloading %s...",this,e,r);var l=this;r.reloadChildren((function(n,o){o?(i.logDebug("%s._loadKeyPath(%s) -> reloaded %s.",n,e,n),t.call(i,r,"loaded"),n._loadKeyPath(s.join(i.options.keyPathSeparator),t)):(i.logWarning("%s._loadKeyPath(%s) -> reloadChildren() failed.",l,e),t.call(i,r,"error"))}))}return}}t.call(i,void 0,"notfound",n,0===s.length),i.logWarning("Node not found: "+n)},resetLazy:function(){if(null===this.parent)throw"Use tree.reload() instead";if(!this.data.isLazy)throw"node.resetLazy() requires lazy nodes.";this.expand(!1),this.removeChildren()},_addChildNode:function(e,t){var i=this.tree,s=i.options,n=i.persistence;if(e.parent=this,null===this.childList?this.childList=[]:t||this.childList.length>0&&$(this.childList[this.childList.length-1].span).removeClass(s.classNames.lastsib),t){var o=$.inArray(t,this.childList);if(o<0)throw"<beforeNode> must be a child of <this>";this.childList.splice(o,0,e)}else this.childList.push(e);var a=i.isInitializing();if(s.persist&&n.cookiesFound&&a?(n.activeKey===e.data.key&&(i.activeNode=e),n.focusedKey===e.data.key&&(i.focusNode=e),e.bExpanded=$.inArray(e.data.key,n.expandedKeyList)>=0,e.bSelected=$.inArray(e.data.key,n.selectedKeyList)>=0):(e.data.activate&&(i.activeNode=e,s.persist&&(n.activeKey=e.data.key)),e.data.focus&&(i.focusNode=e,s.persist&&(n.focusedKey=e.data.key)),e.bExpanded=!0===e.data.expand,e.bExpanded&&s.persist&&n.addExpand(e.data.key),e.bSelected=!0===e.data.select,e.bSelected&&s.persist&&n.addSelect(e.data.key)),s.minExpandLevel>=e.getLevel()&&(this.bExpanded=!0),e.bSelected&&3==s.selectMode)for(var r=this;r;)r.hasSubSel||r._setSubSel(!0),r=r.parent;return i.bEnableUpdate&&this.render(),e},addChild:function(e,t){if("string"==typeof e)throw"Invalid data type for "+e;if(e&&0!==e.length){if(e instanceof DynaTreeNode)return this._addChildNode(e,t);e.length||(e=[e]);for(var i=this.tree.enableUpdate(!1),s=null,n=0,o=e.length;n<o;n++){var a=e[n],r=this._addChildNode(new DynaTreeNode(this,this.tree,a),t);s||(s=r),a.children&&r.addChild(a.children,null)}return this.tree.enableUpdate(i),s}},append:function(e){return this.tree.logWarning("node.append() is deprecated (use node.addChild() instead)."),this.addChild(e,null)},appendAjax:function(e){var t=this;if(this.removeChildren(!1,!0),this.setLazyNodeStatus(DTNodeStatus_Loading),e.debugLazyDelay){var i=e.debugLazyDelay;return e.debugLazyDelay=0,this.tree.logInfo("appendAjax: waiting for debugLazyDelay "+i),void setTimeout((function(){t.appendAjax(e)}),i)}var s=e.success,n=e.error,o="nodeLoaded.dynatree."+this.tree.$tree.attr("id")+"."+this.data.key,a=$.extend({},this.tree.options.ajaxDefaults,e,{success:function(e,i,n){var a=t.tree.phase,r=t.tree.options;t.tree.phase="init",r.postProcess?e=r.postProcess.call(this,e,this.dataType):e&&e.hasOwnProperty("d")&&(e="string"==typeof e.d?$.parseJSON(e.d):e.d),$.isArray(e)&&0===e.length||t.addChild(e,null),t.tree.phase="postInit",s&&s.call(r,t,e,i),t.tree.logDebug("trigger "+o),t.tree.$tree.trigger(o,[t,!0]),t.tree.phase=a,t.setLazyNodeStatus(DTNodeStatus_Ok),$.isArray(e)&&0===e.length&&(t.childList=[],t.render())},error:function(e,i,s){t.tree.logWarning("appendAjax failed:",i,":\n",e,"\n",s),n&&n.call(a,t,e,i,s),t.tree.$tree.trigger(o,[t,!1]),t.setLazyNodeStatus(DTNodeStatus_Error,{info:i,tooltip:""+s})}});$.ajax(a)},move:function(e,t){var i;if(this!==e){if(!this.parent)throw"Cannot move system root";void 0!==t&&"over"!=t||(t="child");var s=this.parent,n="child"===t?e:e.parent;if(n.isDescendantOf(this))throw"Cannot move a node to it's own descendant";if(1==this.parent.childList.length)this.parent.childList=this.parent.data.isLazy?[]:null,this.parent.bExpanded=!1;else{if((i=$.inArray(this,this.parent.childList))<0)throw"Internal error";this.parent.childList.splice(i,1)}if(this.parent.ul&&this.li&&this.parent.ul.removeChild(this.li),this.parent=n,n.hasChildren())switch(t){case"child":n.childList.push(this);break;case"before":if((i=$.inArray(e,n.childList))<0)throw"Internal error";n.childList.splice(i,0,this);break;case"after":if((i=$.inArray(e,n.childList))<0)throw"Internal error";n.childList.splice(i+1,0,this);break;default:throw"Invalid mode "+t}else n.childList=[this];if(n.ul||(n.ul=document.createElement("ul"),n.ul.style.display="none",n.li&&n.li.appendChild(n.ul)),this.li&&n.ul.appendChild(this.li),this.tree!==e.tree)throw this.visit((function(t){t.tree=e.tree}),null,!0),"Not yet implemented.";s.isDescendantOf(n)||s.render(),n.isDescendantOf(s)||n.render()}},lastentry:void 0};var DynaTreeStatus=Class.create();DynaTreeStatus._getTreePersistData=function(e,t){var i=new DynaTreeStatus(e,t);return i.read(),i.toDict()},getDynaTreePersistData=DynaTreeStatus._getTreePersistData,DynaTreeStatus.prototype={initialize:function(e,t){void 0===e&&(e=$.ui.dynatree.prototype.options.cookieId),t=$.extend({},$.ui.dynatree.prototype.options.cookie,t),this.cookieId=e,this.cookieOpts=t,this.cookiesFound=void 0,this.activeKey=null,this.focusedKey=null,this.expandedKeyList=null,this.selectedKeyList=null},_log:function(e){Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments)},read:function(){this.cookiesFound=!1;var e=$.cookie(this.cookieId+"-active");this.activeKey=e||"",e&&(this.cookiesFound=!0),e=$.cookie(this.cookieId+"-focus"),this.focusedKey=e||"",e&&(this.cookiesFound=!0),e=$.cookie(this.cookieId+"-expand"),this.expandedKeyList=e?e.split(","):[],e&&(this.cookiesFound=!0),e=$.cookie(this.cookieId+"-select"),this.selectedKeyList=e?e.split(","):[],e&&(this.cookiesFound=!0)},write:function(){$.cookie(this.cookieId+"-active",null===this.activeKey?"":this.activeKey,this.cookieOpts),$.cookie(this.cookieId+"-focus",null===this.focusedKey?"":this.focusedKey,this.cookieOpts),$.cookie(this.cookieId+"-expand",null===this.expandedKeyList?"":this.expandedKeyList.join(","),this.cookieOpts),$.cookie(this.cookieId+"-select",null===this.selectedKeyList?"":this.selectedKeyList.join(","),this.cookieOpts)},addExpand:function(e){$.inArray(e,this.expandedKeyList)<0&&(this.expandedKeyList.push(e),$.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts))},clearExpand:function(e){var t=$.inArray(e,this.expandedKeyList);t>=0&&(this.expandedKeyList.splice(t,1),$.cookie(this.cookieId+"-expand",this.expandedKeyList.join(","),this.cookieOpts))},addSelect:function(e){$.inArray(e,this.selectedKeyList)<0&&(this.selectedKeyList.push(e),$.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},clearSelect:function(e){var t=$.inArray(e,this.selectedKeyList);t>=0&&(this.selectedKeyList.splice(t,1),$.cookie(this.cookieId+"-select",this.selectedKeyList.join(","),this.cookieOpts))},isReloading:function(){return!0===this.cookiesFound},toDict:function(){return{cookiesFound:this.cookiesFound,activeKey:this.activeKey,focusedKey:this.activeKey,expandedKeyList:this.expandedKeyList,selectedKeyList:this.selectedKeyList}},lastentry:void 0};var DynaTree=Class.create();function _initDragAndDrop(e){var t=e.options.dnd||null;t&&(t.onDragStart||t.onDrop)&&_registerDnd(),t&&t.onDragStart&&e.$tree.draggable({addClasses:!1,appendTo:"body",containment:!1,delay:0,distance:4,revert:!0===t.revert&&function(e){if(logMsg("draggable.revert(), dropped=",e),"boolean"==typeof e)return!e;var t=$.ui.ddmanager&&$.ui.ddmanager.current&&$.ui.ddmanager.current.helper;return t&&t.hasClass("dynatree-drop-reject")},scroll:!0,scrollSpeed:7,scrollSensitivity:10,connectToDynatree:!0,helper:function(e){var t=$.ui.dynatree.getNode(e.target);return t?t.tree._onDragEvent("helper",t,null,e,null,null):"<div></div>"},start:function(e,t){return!!t.helper.data("dtSourceNode")}}),t&&t.onDrop&&e.$tree.droppable({addClasses:!1,tolerance:"pointer",greedy:!1})}DynaTree.version="@@Version",DynaTree.prototype={initialize:function(e){this.phase="init",this.$widget=e,this.options=e.options,this.$tree=e.element,this.timer=null,this.divTree=this.$tree.get(0),_initDragAndDrop(this)},_load:function(e){this.$widget;var t=this.options,i=this;this.bEnableUpdate=!0,this._nodeCount=1,this.activeNode=null,this.focusNode=null,void 0!==t.rootVisible&&this.logWarning("Option 'rootVisible' is no longer supported."),t.minExpandLevel<1&&(this.logWarning("Option 'minExpandLevel' must be >= 1."),t.minExpandLevel=1),t.classNames!==$.ui.dynatree.prototype.options.classNames&&(t.classNames=$.extend({},$.ui.dynatree.prototype.options.classNames,t.classNames)),t.ajaxDefaults!==$.ui.dynatree.prototype.options.ajaxDefaults&&(t.ajaxDefaults=$.extend({},$.ui.dynatree.prototype.options.ajaxDefaults,t.ajaxDefaults)),t.dnd!==$.ui.dynatree.prototype.options.dnd&&(t.dnd=$.extend({},$.ui.dynatree.prototype.options.dnd,t.dnd)),t.imagePath||$("script").each((function(){if(this.src.search(/.*dynatree[^\/]*\.js$/i)>=0)return this.src.indexOf("/")>=0?t.imagePath=this.src.slice(0,this.src.lastIndexOf("/"))+"/skin/":t.imagePath="skin/",i.logDebug("Guessing imagePath from '%s': '%s'",this.src,t.imagePath),!1})),this.persistence=new DynaTreeStatus(t.cookieId,t.cookie),t.persist&&($.cookie||_log("warn","Please include jquery.cookie.js to use persistence."),this.persistence.read()),this.logDebug("DynaTree.persistence: %o",this.persistence.toDict()),this.cache={tagEmpty:"<span class='"+t.classNames.empty+"'></span>",tagVline:"<span class='"+t.classNames.vline+"'></span>",tagExpander:"<span class='"+t.classNames.expander+"'></span>",tagConnector:"<span class='"+t.classNames.connector+"'></span>",tagNodeIcon:"<span class='"+t.classNames.nodeIcon+"'></span>",tagCheckbox:"<span class='"+t.classNames.checkbox+"'></span>",lastentry:void 0},(t.children||t.initAjax&&t.initAjax.url||t.initId)&&$(this.divTree).empty();var s=this.$tree.find(">ul:first").hide();this.tnRoot=new DynaTreeNode(null,this,{}),this.tnRoot.bExpanded=!0,this.tnRoot.render(),this.divTree.appendChild(this.tnRoot.ul);var n=this.tnRoot,o=t.persist&&this.persistence.isReloading(),a=!1,r=this.enableUpdate(!1);this.logDebug("Dynatree._load(): read tree structure..."),t.children?n.addChild(t.children):t.initAjax&&t.initAjax.url?(a=!0,n.data.isLazy=!0,this._reloadAjax(e)):t.initId?this._createFromTag(n,$("#"+t.initId)):(this._createFromTag(n,s),s.remove()),this._checkConsistency(),a||3!=t.selectMode||n._updatePartSelectionState(),this.logDebug("Dynatree._load(): render nodes..."),this.enableUpdate(r),this.logDebug("Dynatree._load(): bind events..."),this.$widget.bind(),this.logDebug("Dynatree._load(): postInit..."),this.phase="postInit",t.persist&&this.persistence.write(),this.focusNode&&this.focusNode.isVisible()&&(this.logDebug("Focus on init: %o",this.focusNode),this.focusNode.focus()),a||(t.onPostInit&&t.onPostInit.call(this,o,!1),e&&e.call(this,"ok")),this.phase="idle"},_reloadAjax:function(e){var t=this.options;if(!t.initAjax||!t.initAjax.url)throw"tree.reload() requires 'initAjax' mode.";var i=this.persistence,s=$.extend({},t.initAjax);s.addActiveKey&&(s.data.activeKey=i.activeKey),s.addFocusedKey&&(s.data.focusedKey=i.focusedKey),s.addExpandedKeyList&&(s.data.expandedKeyList=i.expandedKeyList.join(",")),s.addSelectedKeyList&&(s.data.selectedKeyList=i.selectedKeyList.join(",")),s.success&&this.logWarning("initAjax: success callback is ignored; use onPostInit instead."),s.error&&this.logWarning("initAjax: error callback is ignored; use onPostInit instead.");var n=i.isReloading();s.success=function(i,s,o){3==t.selectMode&&i.tree.tnRoot._updatePartSelectionState(),t.onPostInit&&t.onPostInit.call(i.tree,n,!1),e&&e.call(i.tree,"ok")},s.error=function(i,s,o,a){t.onPostInit&&t.onPostInit.call(i.tree,n,!0,s,o,a),e&&e.call(i.tree,"error",s,o,a)},this.logDebug("Dynatree._init(): send Ajax request..."),this.tnRoot.appendAjax(s)},toString:function(){return"Dynatree '"+this.$tree.attr("id")+"'"},toDict:function(e){var t=this.tnRoot.toDict(!0);return e?t:t.children},serializeArray:function(e){for(var t=this.getSelectedNodes(e),i=this.$tree.attr("name")||this.$tree.attr("id"),s=[],n=0,o=t.length;n<o;n++)s.push({name:i,value:t[n].data.key});return s},getPersistData:function(){return this.persistence.toDict()},logDebug:function(e){this.options.debugLevel>=2&&(Array.prototype.unshift.apply(arguments,["debug"]),_log.apply(this,arguments))},logInfo:function(e){this.options.debugLevel>=1&&(Array.prototype.unshift.apply(arguments,["info"]),_log.apply(this,arguments))},logWarning:function(e){Array.prototype.unshift.apply(arguments,["warn"]),_log.apply(this,arguments)},isInitializing:function(){return"init"==this.phase||"postInit"==this.phase},isReloading:function(){return("init"==this.phase||"postInit"==this.phase)&&this.options.persist&&this.persistence.cookiesFound},isUserEvent:function(){return"userEvent"==this.phase},redraw:function(){this.tnRoot.render(!1,!1)},renderInvisibleNodes:function(){this.tnRoot.render(!1,!0)},reload:function(e){this._load(e)},getRoot:function(){return this.tnRoot},enable:function(){this.$widget.enable()},disable:function(){this.$widget.disable()},getNodeByKey:function(e){var t=document.getElementById(this.options.idPrefix+e);if(t)return t.dtnode?t.dtnode:null;var i=null;return this.visit((function(t){if(t.data.key===e)return i=t,!1}),!0),i},getActiveNode:function(){return this.activeNode},reactivate:function(e){var t=this.activeNode;t&&(this.activeNode=null,t.activate(),e&&t.focus())},getSelectedNodes:function(e){var t=[];return this.tnRoot.visit((function(i){if(i.bSelected&&(t.push(i),!0===e))return"skip"})),t},activateKey:function(e){var t=null===e?null:this.getNodeByKey(e);return t?(t.focus(),t.activate(),t):(this.activeNode&&this.activeNode.deactivate(),this.activeNode=null,null)},loadKeyPath:function(e,t){var i=e.split(this.options.keyPathSeparator);return""===i[0]&&i.shift(),i[0]==this.tnRoot.data.key&&(this.logDebug("Removed leading root key."),i.shift()),e=i.join(this.options.keyPathSeparator),this.tnRoot._loadKeyPath(e,t)},selectKey:function(e,t){var i=this.getNodeByKey(e);return i?(i.select(t),i):null},enableUpdate:function(e){return this.bEnableUpdate==e?e:(this.bEnableUpdate=e,e&&this.redraw(),!e)},count:function(){return this.tnRoot.countChildren()},visit:function(e,t){return this.tnRoot.visit(e,t)},_createFromTag:function(parentTreeNode,$ulParent){var self=this;$ulParent.find(">li").each((function(){var $li=$(this),$liSpan=$li.find(">span:first"),$liA=$li.find(">a:first"),title,href=null,target=null,tooltip;if($liSpan.length)title=$liSpan.html();else if($liA.length)title=$liA.html(),href=$liA.attr("href"),target=$liA.attr("target"),tooltip=$liA.attr("title");else{title=$li.html();var iPos=title.search(/<ul/i);title=iPos>=0?$.trim(title.substring(0,iPos)):$.trim(title)}var data={title,tooltip,isFolder:$li.hasClass("folder"),isLazy:$li.hasClass("lazy"),expand:$li.hasClass("expanded"),select:$li.hasClass("selected"),activate:$li.hasClass("active"),focus:$li.hasClass("focused"),noLink:$li.hasClass("noLink")};if(href&&(data.href=href,data.target=target),$li.attr("title")&&(data.tooltip=$li.attr("title")),$li.attr("id")&&(data.key=""+$li.attr("id")),$li.attr("data")){var dataAttr=$.trim($li.attr("data"));if(dataAttr){"{"!=dataAttr.charAt(0)&&(dataAttr="{"+dataAttr+"}");try{$.extend(data,eval("("+dataAttr+")"))}catch(e){throw"Error parsing node data: "+e+"\ndata:\n'"+dataAttr+"'"}}}var childNode=parentTreeNode.addChild(data),$ul=$li.find(">ul:first");$ul.length&&self._createFromTag(childNode,$ul)}))},_checkConsistency:function(){},_setDndStatus:function(e,t,i,s,n){var o,a=e?$(e.span):null,r=$(t.span),l=0,c="center";if(this.$dndMarker||(this.$dndMarker=$("<div id='dynatree-drop-marker'></div>").hide().css({"z-index":1e3}).prependTo($(this.divTree).parent())),"after"===s||"before"===s||"over"===s){switch(s){case"before":this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-over"),this.$dndMarker.addClass("dynatree-drop-before"),c="top";break;case"after":this.$dndMarker.removeClass("dynatree-drop-before dynatree-drop-over"),this.$dndMarker.addClass("dynatree-drop-after"),c="bottom";break;default:this.$dndMarker.removeClass("dynatree-drop-after dynatree-drop-before"),this.$dndMarker.addClass("dynatree-drop-over"),r.addClass("dynatree-drop-target"),l=8}o=jquerySupports.positionMyOfs?{my:"left"+offsetString(l)+" center",at:"left "+c,of:r}:{my:"left center",at:"left "+c,of:r,offset:l+" 0"},this.$dndMarker.show().position(o)}else r.removeClass("dynatree-drop-target"),this.$dndMarker.hide();"after"===s?r.addClass("dynatree-drop-after"):r.removeClass("dynatree-drop-after"),"before"===s?r.addClass("dynatree-drop-before"):r.removeClass("dynatree-drop-before"),!0===n?(a&&a.addClass("dynatree-drop-accept"),r.addClass("dynatree-drop-accept"),i.addClass("dynatree-drop-accept")):(a&&a.removeClass("dynatree-drop-accept"),r.removeClass("dynatree-drop-accept"),i.removeClass("dynatree-drop-accept")),!1===n?(a&&a.addClass("dynatree-drop-reject"),r.addClass("dynatree-drop-reject"),i.addClass("dynatree-drop-reject")):(a&&a.removeClass("dynatree-drop-reject"),r.removeClass("dynatree-drop-reject"),i.removeClass("dynatree-drop-reject"))},_onDragEvent:function(e,t,i,s,n,o){var a,r,l,c=this.options.dnd,d=null,u=$(t.span);switch(e){case"helper":var h=$("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>").append(u.find(".dynatree-title").clone());$("ul.dynatree-container",t.tree.divTree).append(h),h.data("dtSourceNode",t),d=h;break;case"start":t.isStatusNode()?d=!1:c.onDragStart&&(d=c.onDragStart(t)),!1===d?(this.logDebug("tree.onDragStart() cancelled"),n.helper.trigger("mouseup"),n.helper.hide()):u.addClass("dynatree-drag-source");break;case"enter":d=!!(l=c.onDragEnter?c.onDragEnter(t,i,n,o):null)&&($.isArray(l)?{over:$.inArray("over",l)>=0,before:$.inArray("before",l)>=0,after:$.inArray("after",l)>=0}:{over:!0===l||"over"===l,before:!0===l||"before"===l,after:!0===l||"after"===l}),n.helper.data("enterResponse",d);break;case"over":if(a=null,!1===(r=n.helper.data("enterResponse")));else if("string"==typeof r)a=r;else{var p=u.offset(),f={x:s.pageX-p.left,y:s.pageY-p.top},m={x:f.x/u.width(),y:f.y/u.height()};r.after&&m.y>.75||!r.over&&r.after&&m.y>.5?a="after":r.before&&m.y<=.25||!r.over&&r.before&&m.y<=.5?a="before":r.over&&(a="over"),c.preventVoidMoves&&(t===i||"before"===a&&i&&t===i.getNextSibling()||"after"===a&&i&&t===i.getPrevSibling()||"over"===a&&i&&i.parent===t&&i.isLastSibling())&&(a=null),n.helper.data("hitMode",a)}"over"===a&&c.autoExpandMS&&!1!==t.hasChildren()&&!t.bExpanded&&t.scheduleAction("expand",c.autoExpandMS),a&&c.onDragOver&&("over"!==(d=c.onDragOver(t,i,a,n,o))&&"before"!==d&&"after"!==d||(a=d)),this._setDndStatus(i,t,n.helper,a,!1!==d&&null!==a);break;case"drop":var g=n.helper.hasClass("dynatree-drop-reject");(a=n.helper.data("hitMode"))&&c.onDrop&&!g&&c.onDrop(t,i,a,n,o);break;case"leave":t.scheduleAction("cancel"),n.helper.data("enterResponse",null),n.helper.data("hitMode",null),this._setDndStatus(i,t,n.helper,"out",void 0),c.onDragLeave&&c.onDragLeave(t,i,n,o);break;case"stop":u.removeClass("dynatree-drag-source"),c.onDragStop&&c.onDragStop(t);break;default:throw"Unsupported drag event: "+e}return d},cancelDrag:function(){var e=$.ui.ddmanager.current;e&&e.cancel()},lastentry:void 0},$.widget("ui.dynatree",{_init:function(){if(versionCompare($.ui.version,"1.8")<0)return this.options.debugLevel>=0&&_log("warn","ui.dynatree._init() was called; you should upgrade to jquery.ui.core.js v1.8 or higher."),this._create();this.options.debugLevel>=2&&_log("debug","ui.dynatree._init() was called; no current default functionality.")},_create:function(){this.options.debugLevel>=1&&logMsg("Dynatree._create(): version='%s', debugLevel=%o.",$.ui.dynatree.version,this.options.debugLevel),this.options.event+=".dynatree",this.element.get(0),this.tree=new DynaTree(this),this.tree._load(),this.tree.logDebug("Dynatree._init(): done.")},bind:function(){this.unbind();var e="click.dynatree dblclick.dynatree";function t(e){e=$.event.fix(e||window.event);var t=$.ui.dynatree.getNode(e.target);return!!t&&t._onFocus(e)}this.options.keyboard&&(e+=" keypress.dynatree keydown.dynatree"),this.element.bind(e,(function(e){var t=$.ui.dynatree.getNode(e.target);if(!t)return!0;var i=t.tree,s=i.options;i.logDebug("event(%s): dtnode: %s",e.type,t);var n=i.phase;i.phase="userEvent";try{switch(e.type){case"click":return(!s.onClick||!1!==s.onClick.call(i,t,e))&&t._onClick(e);case"dblclick":return(!s.onDblClick||!1!==s.onDblClick.call(i,t,e))&&t._onDblClick(e);case"keydown":return(!s.onKeydown||!1!==s.onKeydown.call(i,t,e))&&t._onKeydown(e);case"keypress":return(!s.onKeypress||!1!==s.onKeypress.call(i,t,e))&&t._onKeypress(e)}}catch(s){i.logWarning("bind(%o): dtnode: %o, error: %o",e,t,s)}finally{i.phase=n}}));var i=this.tree.divTree;i.addEventListener?(i.addEventListener("focus",t,!0),i.addEventListener("blur",t,!0)):i.onfocusin=i.onfocusout=t},unbind:function(){this.element.unbind(".dynatree")},enable:function(){this.bind(),$.Widget.prototype.enable.apply(this,arguments)},disable:function(){this.unbind(),$.Widget.prototype.disable.apply(this,arguments)},getTree:function(){return this.tree},getRoot:function(){return this.tree.getRoot()},getActiveNode:function(){return this.tree.getActiveNode()},getSelectedNodes:function(){return this.tree.getSelectedNodes()},lastentry:void 0}),versionCompare($.ui.version,"1.8")<0&&($.ui.dynatree.getter="getTree getRoot getActiveNode getSelectedNodes"),$.extend($.ui.dynatree,{version:"1.2.8",buildType:"release",_DynaTreeClass:DynaTree,_DynaTreeNodeClass:DynaTreeNode,getNode:function(e){if(e instanceof DynaTreeNode)return e;for(void 0!==e.selector&&(e=e[0]);e;){if(e.dtnode)return e.dtnode;e=e.parentNode}return null},getPersistData:DynaTreeStatus._getTreePersistData}),$.ui.dynatree.prototype.options={title:"Dynatree",minExpandLevel:1,imagePath:null,children:null,initId:null,initAjax:null,autoFocus:!0,keyboard:!0,persist:!1,autoCollapse:!1,clickFolderMode:3,activeVisible:!0,checkbox:!1,selectMode:2,fx:null,noLink:!1,onClick:null,onDblClick:null,onKeydown:null,onKeypress:null,onFocus:null,onBlur:null,onQueryActivate:null,onQuerySelect:null,onQueryExpand:null,onPostInit:null,onActivate:null,onDeactivate:null,onSelect:null,onExpand:null,onLazyRead:null,onCustomRender:null,onCreate:null,onRender:null,postProcess:null,dnd:{onDragStart:null,onDragStop:null,revert:!1,autoExpandMS:1e3,preventVoidMoves:!0,onDragEnter:null,onDragOver:null,onDrop:null,onDragLeave:null},ajaxDefaults:{cache:!1,timeout:0,dataType:"json"},strings:{loading:"Loading…",loadError:"Load error!"},generateIds:!1,idPrefix:"dynatree-id-",keyPathSeparator:"/",cookieId:"dynatree",cookie:{expires:null},classNames:{container:"dynatree-container",node:"dynatree-node",folder:"dynatree-folder",empty:"dynatree-empty",vline:"dynatree-vline",expander:"dynatree-expander",connector:"dynatree-connector",checkbox:"dynatree-checkbox",radio:"dynatree-radio",nodeIcon:"dynatree-icon",title:"dynatree-title",noConnector:"dynatree-no-connector",nodeError:"dynatree-statusnode-error",nodeWait:"dynatree-statusnode-wait",hidden:"dynatree-hidden",combinedExpanderPrefix:"dynatree-exp-",combinedIconPrefix:"dynatree-ico-",nodeLoading:"dynatree-loading",hasChildren:"dynatree-has-children",active:"dynatree-active",selected:"dynatree-selected",expanded:"dynatree-expanded",lazy:"dynatree-lazy",focused:"dynatree-focused",partsel:"dynatree-partsel",lastsib:"dynatree-lastsib"},debugLevel:1,lastentry:void 0},versionCompare($.ui.version,"1.8")<0&&($.ui.dynatree.defaults=$.ui.dynatree.prototype.options),$.ui.dynatree.nodedatadefaults={title:null,key:null,isFolder:!1,isLazy:!1,tooltip:null,href:null,icon:null,addClass:null,noLink:!1,activate:!1,focus:!1,expand:!1,select:!1,hideCheckbox:!1,unselectable:!1,children:null,lastentry:void 0};var didRegisterDnd=!1,_registerDnd=function(){didRegisterDnd||($.ui.plugin.add("draggable","connectToDynatree",{start:function(e,t){var i=$(this).data("ui-draggable")||$(this).data("draggable"),s=t.helper.data("dtSourceNode")||null;if(s)return i.offset.click.top=-2,i.offset.click.left=16,s.tree._onDragEvent("start",s,null,e,t,i)},drag:function(e,t){var i=$(this).data("ui-draggable")||$(this).data("draggable"),s=t.helper.data("dtSourceNode")||null,n=t.helper.data("dtTargetNode")||null,o=$.ui.dynatree.getNode(e.target);e.target&&!o&&$(e.target).closest("div.dynatree-drag-helper,#dynatree-drop-marker").length>0||(t.helper.data("dtTargetNode",o),n&&n!==o&&n.tree._onDragEvent("leave",n,s,e,t,i),o&&o.tree.options.dnd.onDrop&&(o===n?o.tree._onDragEvent("over",o,s,e,t,i):o.tree._onDragEvent("enter",o,s,e,t,i)))},stop:function(e,t){var i=$(this).data("ui-draggable")||$(this).data("draggable"),s=t.helper.data("dtSourceNode")||null,n=t.helper.data("dtTargetNode")||null,o="mouseup"==e.type&&1==e.which;logMsg("draggable-connectToDynatree.stop: targetNode(from event): %s, dtTargetNode: %s",n,t.helper.data("dtTargetNode")),o||logMsg("Drag was cancelled"),n&&(o&&n.tree._onDragEvent("drop",n,s,e,t,i),n.tree._onDragEvent("leave",n,s,e,t,i)),s&&s.tree._onDragEvent("stop",s,null,e,t,i)}}),didRegisterDnd=!0)}})(jqueryVendor__WEBPACK_IMPORTED_MODULE_0___default())},58900:(e,t,i)=>{"use strict";i.r(t);var s=i(20615);!function(e){e.fn.drag=function(t,i,s){var n="string"==typeof t?t:"",o=e.isFunction(t)?t:e.isFunction(i)?i:null;return 0!==n.indexOf("drag")&&(n="drag"+n),s=(t==o?i:s)||{},o?this.bind(n,s,o):this.trigger(n)};var t=e.event,i=t.special,s=i.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var i=e.data(this,s.datakey),n=t.data||{};i.related+=1,e.each(s.defaults,(function(e,t){void 0!==n[e]&&(i[e]=n[e])}))},remove:function(){e.data(this,s.datakey).related-=1},setup:function(){if(!e.data(this,s.datakey)){var i=e.extend({related:0},s.defaults);e.data(this,s.datakey,i),t.add(this,"touchstart mousedown",s.init,i),this.attachEvent&&this.attachEvent("ondragstart",s.dontstart)}},teardown:function(){(e.data(this,s.datakey)||{}).related||(e.removeData(this,s.datakey),t.remove(this,"touchstart mousedown",s.init),s.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",s.dontstart))},init:function(n){if(!s.touched){var o,a=n.data;if(!(0!=n.which&&a.which>0&&n.which!=a.which)&&!e(n.target).is(a.not)&&(!a.handle||e(n.target).closest(a.handle,n.currentTarget).length)&&(s.touched="touchstart"==n.type?this:null,a.propagates=1,a.mousedown=this,a.interactions=[s.interaction(this,a)],a.target=n.target,a.pageX=n.pageX,a.pageY=n.pageY,a.dragging=null,o=s.hijack(n,"draginit",a),a.propagates))return(o=s.flatten(o))&&o.length&&(a.interactions=[],e.each(o,(function(){a.interactions.push(s.interaction(this,a))}))),a.propagates=a.interactions.length,!1!==a.drop&&i.drop&&i.drop.handler(n,a),s.textselect(!1),s.touched?t.add(s.touched,"touchmove touchend",s.handler,a):t.add(document,"mousemove mouseup",s.handler,a),!(!s.touched||a.live)&&void 0}},interaction:function(t,i){var n=e(t)[i.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new s.callback,droppable:[],offset:n}},handler:function(n){var o=n.data;switch(n.type){case!o.dragging&&"touchmove":n.preventDefault();case!o.dragging&&"mousemove":if(Math.pow(n.pageX-o.pageX,2)+Math.pow(n.pageY-o.pageY,2)<Math.pow(o.distance,2))break;n.target=o.target,s.hijack(n,"dragstart",o),o.propagates&&(o.dragging=!0);case"touchmove":n.preventDefault();case"mousemove":if(o.dragging){if(s.hijack(n,"drag",o),o.propagates){!1!==o.drop&&i.drop&&i.drop.handler(n,o);break}n.type="mouseup"}default:s.touched?t.remove(s.touched,"touchmove touchend",s.handler):t.remove(document,"mousemove mouseup",s.handler),o.dragging?(!1!==o.drop&&i.drop&&i.drop.handler(n,o),s.hijack(n,"dragend",o)):s.hijack(n,"dragclickonly",o),s.textselect(!0),!1===o.click&&o.dragging&&e.data(o.mousedown,"suppress.click",(new Date).getTime()+5),o.dragging=s.touched=!1}},hijack:function(i,n,o,a,r){if(o){var l,c,d,u={event:i.originalEvent,type:i.type},h=n.indexOf("drop")?"drag":"drop",p=a||0,f=isNaN(a)?o.interactions.length:a;i.type=n,i.originalEvent=null,o.results=[];do{if(c=o.interactions[p]){if("dragend"!==n&&c.cancelled)continue;d=s.properties(i,o,c),c.results=[],e(r||c[h]||o.droppable).each((function(a,r){if(d.target=r,i.isPropagationStopped=function(){return!1},!1===(l=r?t.dispatch.call(r,i,d):null)?("drag"==h&&(c.cancelled=!0,o.propagates-=1),"drop"==n&&(c[h][a]=null)):"dropinit"==n&&c.droppable.push(s.element(l)||r),"dragstart"==n&&(c.proxy=e(s.element(l)||c.drag)[0]),c.results.push(l),delete i.result,"dropinit"!==n)return l})),o.results[p]=s.flatten(c.results),"dropinit"==n&&(c.droppable=s.flatten(c.droppable)),"dragstart"!=n||c.cancelled||d.update()}}while(++p<f);return i.type=u.type,i.originalEvent=u.event,s.flatten(o.results)}},properties:function(e,t,i){var n=i.callback;return n.drag=i.drag,n.proxy=i.proxy||i.drag,n.startX=t.pageX,n.startY=t.pageY,n.deltaX=e.pageX-t.pageX,n.deltaY=e.pageY-t.pageY,n.originalX=i.offset.left,n.originalY=i.offset.top,n.offsetX=n.originalX+n.deltaX,n.offsetY=n.originalY+n.deltaY,n.drop=s.flatten((i.drop||[]).slice()),n.available=s.flatten((i.droppable||[]).slice()),n.update(),n},element:function(e){if(e&&(e.jquery||1==e.nodeType))return e},flatten:function(t){return e.map(t,(function(t){return t&&t.jquery?e.makeArray(t):t&&t.length?s.flatten(t):t}))},textselect:function(t){e(document)[t?"unbind":"bind"]("selectstart",s.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};s.callback.prototype={update:function(){i.drop&&this.available.length&&e.each(this.available,(function(e){i.drop.locate(this,e)}))}};var n=t.dispatch;t.dispatch=function(t){if(!(e.data(this,"suppress."+t.type)-(new Date).getTime()>0))return n.apply(this,arguments);e.removeData(this,"suppress."+t.type)};var o=t.fixHooks.touchstart=t.fixHooks.touchmove=t.fixHooks.touchend=t.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(t,i){if(i){var s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0]||null;s&&e.each(o.props,(function(e,i){t[i]=s[i]}))}return t}};i.draginit=i.dragstart=i.dragend=s}(i.n(s)())},62268:(e,t,i)=>{"use strict";i.r(t);var s=i(20615);!function(e){e.fn.drop=function(t,i,s){var n="string"==typeof t?t:"",o=e.isFunction(t)?t:e.isFunction(i)?i:null;return 0!==n.indexOf("drop")&&(n="drop"+n),s=(t==o?i:s)||{},o?this.bind(n,s,o):this.trigger(n)},e.drop=function(t){t=t||{},i.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?i.multi:t.multi,i.delay=t.delay||i.delay,i.tolerance=e.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:i.tolerance,i.mode=t.mode||i.mode||"intersect"};var t=e.event.special,i=e.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){e.data(this,i.datakey).related+=1},remove:function(){e.data(this,i.datakey).related-=1},setup:function(){e.data(this,i.datakey)||(e.data(this,i.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),i.targets.push(this))},teardown:function(){if(!(e.data(this,i.datakey)||{}).related){e.removeData(this,i.datakey);var t=this;i.targets=e.grep(i.targets,(function(e){return e!==t}))}},handler:function(s,n){var o;if(n)switch(s.type){case"mousedown":case"touchstart":o=e(i.targets),"string"==typeof n.drop&&(o=o.filter(n.drop)),o.each((function(){var t=e.data(this,i.datakey);t.active=[],t.anyactive=0,t.winner=0})),n.droppable=o,t.drag.hijack(s,"dropinit",n);break;case"mousemove":case"touchmove":i.event=s,i.timer||i.tolerate(n);break;case"mouseup":case"touchend":i.timer=clearTimeout(i.timer),n.propagates&&(t.drag.hijack(s,"drop",n),t.drag.hijack(s,"dropend",n))}},locate:function(t,s){var n=e.data(t,i.datakey),o=e(t),a=o.offset()||{},r=o.outerHeight(),l=o.outerWidth(),c={elem:t,width:l,height:r,top:a.top,left:a.left,right:a.left+l,bottom:a.top+r};return n&&(n.location=c,n.index=s,n.elem=t),c},contains:function(e,t){return(t[0]||t.left)>=e.left&&(t[0]||t.right)<=e.right&&(t[1]||t.top)>=e.top&&(t[1]||t.bottom)<=e.bottom},modes:{intersect:function(e,t,i){return this.contains(i,[e.pageX,e.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(e,t,i){return Math.max(0,Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top))*Math.max(0,Math.min(i.right,t.right)-Math.max(i.left,t.left))},fit:function(e,t,i){return this.contains(i,t)?1:0},middle:function(e,t,i){return this.contains(i,[t.left+.5*t.width,t.top+.5*t.height])?1:0}},sort:function(e,t){return t.winner-e.winner||e.index-t.index},tolerate:function(s){var n,o,a,r,l,c,d,u,h=0,p=s.interactions.length,f=[i.event.pageX,i.event.pageY],m=i.tolerance||i.modes[i.mode];do{if(u=s.interactions[h]){if(!u)return;u.drop=[],l=[],c=u.droppable.length,m&&(a=i.locate(u.proxy)),n=0;do{if(d=u.droppable[n]){if(!(o=(r=e.data(d,i.datakey)).location))continue;r.winner=m?m.call(i,i.event,a,o):i.contains(o,f)?1:0,l.push(r)}}while(++n<c);l.sort(i.sort),n=0;do{(r=l[n])&&(r.winner&&u.drop.length<i.multi?(r.active[h]||r.anyactive||(!1!==t.drag.hijack(i.event,"dropstart",s,h,r.elem)[0]?(r.active[h]=1,r.anyactive+=1):r.winner=0),r.winner&&u.drop.push(r.elem)):r.active[h]&&1==r.anyactive&&(t.drag.hijack(i.event,"dropend",s,h,r.elem),r.active[h]=0,r.anyactive-=1))}while(++n<c)}}while(++h<p);i.last&&f[0]==i.last.pageX&&f[1]==i.last.pageY?delete i.timer:i.timer=setTimeout((function(){i.tolerate(s)}),i.delay),i.last=i.event}};t.dropinit=t.dropstart=t.dropend=i}(i.n(s)())},80510:(e,t,i)=>{"use strict";i.r(t);var s=i(20615);!function(e){e.fn._hover=e.fn.hover,e.fn.hover=function(e,t,i){return i&&this.bind("hoverstart",e),t&&this.bind("hoverend",i||t),e?this.bind("hover",i?t:e):this.trigger("hover")};var t=e.event.special.hover={delay:100,speed:100,setup:function(s){s=e.extend({speed:t.speed,delay:t.delay,hovered:0},s||{}),e.event.add(this,"mouseenter mouseleave",i,s)},teardown:function(){e.event.remove(this,"mouseenter mouseleave",i)}};function i(t){var s=t.data||t;switch(t.type){case"mouseenter":s.dist2=0,s.event=t,t.type="hoverstart",!1!==e.event.dispatch.call(this,t)&&(s.elem=this,e.event.add(this,"mousemove",i,s),s.timer=setTimeout(n,s.delay));break;case"mousemove":s.dist2+=Math.pow(t.pageX-s.event.pageX,2)+Math.pow(t.pageY-s.event.pageY,2),s.event=t;break;case"mouseleave":clearTimeout(s.timer),s.hovered?(t.type="hoverend",e.event.dispatch.call(this,t),s.hovered--):e.event.remove(s.elem,"mousemove",i);break;default:s.dist2<=Math.pow(s.speed*(s.delay/1e3),2)?(e.event.remove(s.elem,"mousemove",i),s.event.type="hover",!1!==e.event.dispatch.call(s.elem,s.event)&&s.hovered++):s.timer=setTimeout(n,s.delay),s.dist2=0}function n(){i(s)}}}(i.n(s)())},77766:(e,t,i)=>{"use strict";i.r(t);var s=i(20615),n=i.n(s);!function(e){var t={};t.fileapi=void 0!==e("<input type='file'/>").get(0).files,t.formdata=void 0!==window.FormData;var i=!!e.fn.prop;function s(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(i))}function n(t){var i=t.target,s=e(i);if(!s.is("[type=submit],[type=image]")){var n=s.closest("[type=submit]");if(0===n.length)return;i=n[0]}var o=this;if(o.clk=i,"image"==i.type)if(void 0!==t.offsetX)o.clk_x=t.offsetX,o.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var a=s.offset();o.clk_x=t.pageX-a.left,o.clk_y=t.pageY-a.top}else o.clk_x=t.pageX-i.offsetLeft,o.clk_y=t.pageY-i.offsetTop;setTimeout((function(){o.clk=o.clk_x=o.clk_y=null}),100)}function o(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(s){if(!this.length)return o("ajaxSubmit: skipping submit process - no element selected"),this;var n,a,r,l=this;"function"==typeof s?s={success:s}:void 0===s&&(s={}),n=s.type||this.attr2("method"),(r=(r="string"==typeof(a=s.url||this.attr2("action"))?e.trim(a):"")||window.location.href||"")&&(r=(r.match(/^([^#]+)/)||[])[1]),s=e.extend(!0,{url:r,success:e.ajaxSettings.success,type:n||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},s);var c={};if(this.trigger("form-pre-serialize",[this,s,c]),c.veto)return o("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(s.beforeSerialize&&!1===s.beforeSerialize(this,s))return o("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=s.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var u,h=[],p=this.formToArray(s.semantic,h);if(s.data&&(s.extraData=s.data,u=e.param(s.data,d)),s.beforeSubmit&&!1===s.beforeSubmit(p,this,s))return o("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[p,this,s,c]),c.veto)return o("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var f=e.param(p,d);u&&(f=f?f+"&"+u:u),"GET"==s.type.toUpperCase()?(s.url+=(s.url.indexOf("?")>=0?"&":"?")+f,s.data=null):s.data=f;var m=[];if(s.resetForm&&m.push((function(){l.resetForm()})),s.clearForm&&m.push((function(){l.clearForm(s.includeHidden)})),!s.dataType&&s.target){var g=s.success||function(){};m.push((function(t){var i=s.replaceTarget?"replaceWith":"html";e(s.target)[i](t).each(g,arguments)}))}else s.success&&m.push(s.success);if(s.success=function(e,t,i){for(var n=s.context||this,o=0,a=m.length;o<a;o++)m[o].apply(n,[e,t,i||l,l])},s.error){var v=s.error;s.error=function(e,t,i){var n=s.context||this;v.apply(n,[e,t,i,l])}}if(s.complete){var y=s.complete;s.complete=function(e,t){var i=s.context||this;y.apply(i,[e,t,l])}}var b=e("input[type=file]:enabled",this).filter((function(){return""!==e(this).val()})).length>0,_="multipart/form-data",w=l.attr("enctype")==_||l.attr("encoding")==_,x=t.fileapi&&t.formdata;o("fileAPI :"+x);var C,S=(b||w)&&!x;!1!==s.iframe&&(s.iframe||S)?s.closeKeepAlive?e.get(s.closeKeepAlive,(function(){C=T(p)})):C=T(p):C=(b||w)&&x?function(t){for(var i=new FormData,o=0;o<t.length;o++)i.append(t[o].name,t[o].value);if(s.extraData){var a=function(t){var i,n,o=e.param(t,s.traditional).split("&"),a=o.length,r=[];for(i=0;i<a;i++)o[i]=o[i].replace(/\+/g," "),n=o[i].split("="),r.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return r}(s.extraData);for(o=0;o<a.length;o++)a[o]&&i.append(a[o][0],a[o][1])}s.data=null;var r=e.extend(!0,{},e.ajaxSettings,s,{contentType:!1,processData:!1,cache:!1,type:n||"POST"});s.uploadProgress&&(r.xhr=function(){var t=e.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",(function(e){var t=0,i=e.loaded||e.position,n=e.total;e.lengthComputable&&(t=Math.ceil(i/n*100)),s.uploadProgress(e,i,n,t)}),!1),t}),r.data=null;var l=r.beforeSend;return r.beforeSend=function(e,t){s.formData?t.data=s.formData:t.data=i,l&&l.call(this,e,t)},e.ajax(r)}(p):e.ajax(s),l.removeData("jqxhr").data("jqxhr",C);for(var k=0;k<h.length;k++)h[k]=null;return this.trigger("form-submit-notify",[this,s]),this;function T(t){var a,r,c,d,u,p,f,m,g,v,y,b,_=l[0],w=e.Deferred();if(w.abort=function(e){m.abort(e)},t)for(r=0;r<h.length;r++)a=e(h[r]),i?a.prop("disabled",!1):a.removeAttr("disabled");if((c=e.extend(!0,{},e.ajaxSettings,s)).context=c.context||c,u="jqFormIO"+(new Date).getTime(),c.iframeTarget?(v=(p=e(c.iframeTarget)).attr2("name"))?u=v:p.attr2("name",u):(p=e('<iframe name="'+u+'" src="'+c.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),f=p[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var i="timeout"===t?"timeout":"aborted";o("aborting upload... "+i),this.aborted=1;try{f.contentWindow.document.execCommand&&f.contentWindow.document.execCommand("Stop")}catch(e){}p.attr("src",c.iframeSrc),m.error=i,c.error&&c.error.call(c.context,m,i,t),d&&e.event.trigger("ajaxError",[m,c,i]),c.complete&&c.complete.call(c.context,m,i)}},(d=c.global)&&0==e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[m,c]),c.beforeSend&&!1===c.beforeSend.call(c.context,m,c))return c.global&&e.active--,w.reject(),w;if(m.aborted)return w.reject(),w;function x(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){o("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){o("cannot get iframe.contentDocument: "+i),t=e.document}return t}(g=_.clk)&&(v=g.name)&&!g.disabled&&(c.extraData=c.extraData||{},c.extraData[v]=g.value,"image"==g.type&&(c.extraData[v+".x"]=_.clk_x,c.extraData[v+".y"]=_.clk_y));var C=e("meta[name=csrf-token]").attr("content"),S=e("meta[name=csrf-param]").attr("content");function k(){var t=l.attr2("target"),i=l.attr2("action");_.setAttribute("target",u),n&&!/post/i.test(n)||_.setAttribute("method","POST"),i!=c.url&&_.setAttribute("action",c.url),c.skipEncodingOverride||n&&!/post/i.test(n)||l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),c.timeout&&(b=setTimeout((function(){y=!0,A(1)}),c.timeout));var s=[];try{if(c.extraData)for(var a in c.extraData)c.extraData.hasOwnProperty(a)&&(e.isPlainObject(c.extraData[a])&&c.extraData[a].hasOwnProperty("name")&&c.extraData[a].hasOwnProperty("value")?s.push(e('<input type="hidden" name="'+c.extraData[a].name+'">').val(c.extraData[a].value).appendTo(_)[0]):s.push(e('<input type="hidden" name="'+a+'">').val(c.extraData[a]).appendTo(_)[0]));c.iframeTarget||p.appendTo("body"),f.attachEvent?f.attachEvent("onload",A):f.addEventListener("load",A,!1),setTimeout((function e(){try{var t=x(f).readyState;o("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){o("Server abort: ",e," (",e.name,")"),A(2),b&&clearTimeout(b),b=void 0}}),15);try{_.submit()}catch(e){document.createElement("form").submit.apply(_)}}finally{_.setAttribute("action",i),t?_.setAttribute("target",t):l.removeAttr("target"),e(s).remove()}}S&&C&&(c.extraData=c.extraData||{},c.extraData[S]=C),c.forceSync?k():setTimeout(k,10);var T,$,D,E=50;function A(t){if(!m.aborted&&!D){if(($=x(f))||(o("cannot access response document"),t=2),1===t&&m)return m.abort("timeout"),void w.reject(m,"timeout");if(2==t&&m)return m.abort("server abort"),void w.reject(m,"error","server abort");if($&&$.location.href!=c.iframeSrc||y){f.detachEvent?f.detachEvent("onload",A):f.removeEventListener("load",A,!1);var i,s="success";try{if(y)throw"timeout";var n="xml"==c.dataType||$.XMLDocument||e.isXMLDoc($);if(o("isXml="+n),!n&&window.opera&&(null===$.body||!$.body.innerHTML)&&--E)return o("requeing onLoad callback, DOM not available"),void setTimeout(A,250);var a=$.body?$.body:$.documentElement;m.responseText=a?a.innerHTML:null,m.responseXML=$.XMLDocument?$.XMLDocument:$,n&&(c.dataType="xml"),m.getResponseHeader=function(e){return{"content-type":c.dataType}[e.toLowerCase()]},a&&(m.status=Number(a.getAttribute("status"))||m.status,m.statusText=a.getAttribute("statusText")||m.statusText);var r=(c.dataType||"").toLowerCase(),l=/(json|script|text)/.test(r);if(l||c.textarea){var u=$.getElementsByTagName("textarea")[0];if(u)m.responseText=u.value,m.status=Number(u.getAttribute("status"))||m.status,m.statusText=u.getAttribute("statusText")||m.statusText;else if(l){var h=$.getElementsByTagName("pre")[0],g=$.getElementsByTagName("body")[0];h?m.responseText=h.textContent?h.textContent:h.innerText:g&&(m.responseText=g.textContent?g.textContent:g.innerText)}}else"xml"==r&&!m.responseXML&&m.responseText&&(m.responseXML=P(m.responseText));try{T=N(m,r,c)}catch(e){s="parsererror",m.error=i=e||s}}catch(e){o("error caught: ",e),s="error",m.error=i=e||s}m.aborted&&(o("upload aborted"),s=null),m.status&&(s=m.status>=200&&m.status<300||304===m.status?"success":"error"),"success"===s?(c.success&&c.success.call(c.context,T,"success",m),w.resolve(m.responseText,"success",m),d&&e.event.trigger("ajaxSuccess",[m,c])):s&&(void 0===i&&(i=m.statusText),c.error&&c.error.call(c.context,m,s,i),w.reject(m,"error",i),d&&e.event.trigger("ajaxError",[m,c,i])),d&&e.event.trigger("ajaxComplete",[m,c]),d&&!--e.active&&e.event.trigger("ajaxStop"),c.complete&&c.complete.call(c.context,m,s),D=!0,c.timeout&&clearTimeout(b),setTimeout((function(){c.iframeTarget?p.attr("src",c.iframeSrc):p.remove(),m.responseXML=null}),100)}}}var P=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},L=e.parseJSON||function(e){return window.eval("("+e+")")},N=function(t,i,s){var n=t.getResponseHeader("content-type")||"",o="xml"===i||!i&&n.indexOf("xml")>=0,a=o?t.responseXML:t.responseText;return o&&"parsererror"===a.documentElement.nodeName&&e.error&&e.error("parsererror"),s&&s.dataFilter&&(a=s.dataFilter(a,i)),"string"==typeof a&&("json"===i||!i&&n.indexOf("json")>=0?a=L(a):("script"===i||!i&&n.indexOf("javascript")>=0)&&e.globalEval(a)),a};return w}},e.fn.ajaxForm=function(t){if((t=t||{}).delegation=t.delegation&&e.isFunction(e.fn.on),!t.delegation&&0===this.length){var i={s:this.selector,c:this.context};return!e.isReady&&i.s?(o("DOM not ready, queuing ajaxForm"),e((function(){e(i.s,i.c).ajaxForm(t)})),this):(o("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return t.delegation?(e(document).off("submit.form-plugin",this.selector,s).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,t,s).on("click.form-plugin",this.selector,t,n),this):this.ajaxFormUnbind().bind("submit.form-plugin",t,s).bind("click.form-plugin",t,n)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(i,s){var n=[];if(0===this.length)return n;var o,a,r,l,c,d,u,h=this[0],p=i?h.getElementsByTagName("*"):h.elements;if(!p)return n;for(o=0,d=p.length;o<d;o++)if((r=(c=p[o]).name)&&!c.disabled)if(i&&h.clk&&"image"==c.type)h.clk==c&&(n.push({name:r,value:e(c).val(),type:c.type}),n.push({name:r+".x",value:h.clk_x},{name:r+".y",value:h.clk_y}));else if((l=e.fieldValue(c,!0))&&l.constructor==Array)for(s&&s.push(c),a=0,u=l.length;a<u;a++)n.push({name:r,value:l[a]});else if(t.fileapi&&"file"==c.type){s&&s.push(c);var f=c.files;if(f.length)for(a=0;a<f.length;a++)n.push({name:r,value:f[a],type:c.type});else n.push({name:r,value:"",type:c.type})}else null!=l&&(s&&s.push(c),n.push({name:r,value:l,type:c.type,required:c.required}));if(!i&&h.clk){var m=e(h.clk),g=m[0];(r=g.name)&&!g.disabled&&"image"==g.type&&(n.push({name:r,value:m.val()}),n.push({name:r+".x",value:h.clk_x},{name:r+".y",value:h.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var i=[];return this.each((function(){var s=this.name;if(s){var n=e.fieldValue(this,t);if(n&&n.constructor==Array)for(var o=0,a=n.length;o<a;o++)i.push({name:s,value:n[o]});else null!=n&&i.push({name:this.name,value:n})}})),e.param(i)},e.fn.fieldValue=function(t){for(var i=[],s=0,n=this.length;s<n;s++){var o=this[s],a=e.fieldValue(o,t);null==a||a.constructor==Array&&!a.length||(a.constructor==Array?e.merge(i,a):i.push(a))}return i},e.fieldValue=function(t,i){var s=t.name,n=t.type,o=t.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!s||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==o&&-1==t.selectedIndex))return null;if("select"==o){var a=t.selectedIndex;if(a<0)return null;for(var r=[],l=t.options,c="select-one"==n,d=c?a+1:l.length,u=c?a:0;u<d;u++){var h=l[u];if(h.selected){var p=h.value;if(p||(p=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),c)return p;r.push(p)}}return r}return e(t).val()},e.fn.clearForm=function(t){return this.each((function(){e("input,select,textarea",this).clearFields(t)}))},e.fn.clearFields=e.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each((function(){var s=this.type,n=this.tagName.toLowerCase();i.test(s)||"textarea"==n?this.value="":"checkbox"==s||"radio"==s?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==s?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(s)||"string"==typeof t&&e(this).is(t))&&(this.value="")}))},e.fn.resetForm=function(){return this.each((function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()}))},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each((function(){this.disabled=!e}))},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each((function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=t;else if("option"==this.tagName.toLowerCase()){var s=e(this).parent("select");t&&s[0]&&"select-one"==s[0].type&&s.find("option").selected(!1),this.selected=t}}))},e.fn.ajaxSubmit.debug=!1}(void 0!==n()?n():window.Zepto)},35670:(e,t,i)=>{"use strict";i.r(t);var s=i(20615),n=i.n(s);i(55806)&&function(e){if(!e.support.opacity&&!e.support.style)try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}e.fn.rating=function(t){if(0==this.length)return this;if("string"==typeof arguments[0]){if(this.length>1){var i=arguments;return this.each((function(){e.fn.rating.apply(e(this),i)}))}return e.fn.rating[arguments[0]].apply(this,e.makeArray(arguments).slice(1)||[]),this}return t=e.extend({},e.fn.rating.options,t||{}),e.fn.rating.calls++,this.not(".star-rating-applied").addClass("star-rating-applied").each((function(){var i,s=e(this),n=(this.name||"unnamed-rating").replace(/\[|\]/g,"_").replace(/^\_+|\_+$/g,""),o=e(this.form||document.body),a=o.data("rating");a&&a.call==e.fn.rating.calls||(a={count:0,call:e.fn.rating.calls});var r=a[n]||o.data("rating"+n);r&&(i=r.data("rating")),r&&i?i.count++:((i=e.extend({},t||{},(e.metadata?s.metadata():e.meta?s.data():null)||{},{count:0,stars:[],inputs:[]})).serial=a.count++,r=e('<span class="star-rating-control"/>'),s.before(r),r.addClass("rating-to-be-drawn"),(s.attr("disabled")||s.hasClass("disabled"))&&(i.readOnly=!0),s.hasClass("required")&&(i.required=!0),r.append(i.cancel=e('<div class="rating-cancel"><a title="'+i.cancel+'">'+i.cancelValue+"</a></div>").on("mouseover",(function(){e(this).rating("drain"),e(this).addClass("star-rating-hover")})).on("mouseout",(function(){e(this).rating("draw"),e(this).removeClass("star-rating-hover")})).on("click",(function(){e(this).rating("select")})).data("rating",i)));var l=e('<div role="text" aria-label="'+this.title+'" class="star-rating rater-'+i.serial+'"><a title="'+(this.title||this.value)+'">'+this.value+"</a></div>");if(r.append(l),this.id&&l.attr("id",this.id),this.className&&l.addClass(this.className),i.half&&(i.split=2),"number"==typeof i.split&&i.split>0){var c=(e.fn.width?l.width():0)||i.starWidth,d=i.count%i.split,u=Math.floor(c/i.split);l.width(u).find("a").css({"margin-left":"-"+d*u+"px"})}i.readOnly?l.addClass("star-rating-readonly"):l.addClass("star-rating-live").on("mouseover",(function(){e(this).rating("fill"),e(this).rating("focus")})).on("mouseout",(function(){e(this).rating("draw"),e(this).rating("blur")})).on("click",(function(){e(this).rating("select")})),this.checked&&(i.current=l),"A"==this.nodeName&&e(this).hasClass("selected")&&(i.current=l),s.hide(),s.on("change.rating",(function(t){if(t.selfTriggered)return!1;e(this).rating("select")})),l.data("rating.input",s.data("rating.star",l)),i.stars[i.stars.length]=l[0],i.inputs[i.inputs.length]=s[0],i.rater=a[n]=r,i.context=o,s.data("rating",i),r.data("rating",i),l.data("rating",i),o.data("rating",a),o.data("rating"+n,r)})),e(".rating-to-be-drawn").rating("draw").removeClass("rating-to-be-drawn"),this},e.extend(e.fn.rating,{calls:0,focus:function(){var t=this.data("rating");if(!t)return this;if(!t.focus)return this;var i=e(this).data("rating.input")||e("INPUT"==this.tagName?this:null);t.focus&&t.focus.apply(i[0],[i.val(),e("a",i.data("rating.star"))[0]])},blur:function(){var t=this.data("rating");if(!t)return this;if(!t.blur)return this;var i=e(this).data("rating.input")||e("INPUT"==this.tagName?this:null);t.blur&&t.blur.apply(i[0],[i.val(),e("a",i.data("rating.star"))[0]])},fill:function(){var e=this.data("rating");if(!e)return this;e.readOnly||(this.rating("drain"),this.prevAll().addBack().filter(".rater-"+e.serial).addClass("star-rating-hover"))},drain:function(){var e=this.data("rating");if(!e)return this;e.readOnly||e.rater.children().filter(".rater-"+e.serial).removeClass("star-rating-on").removeClass("star-rating-hover")},draw:function(){var t=this.data("rating");if(!t)return this;this.rating("drain");var i=e(t.current),s=i.length?i.prevAll().addBack().filter(".rater-"+t.serial):null;s&&s.addClass("star-rating-on"),t.cancel[t.readOnly||t.required?"hide":"show"](),this.siblings()[t.readOnly?"addClass":"removeClass"]("star-rating-readonly")},select:function(t,i){var s=this.data("rating");if(!s)return this;if(!s.readOnly){if(s.current=null,void 0!==t||this.length>1){if("number"==typeof t)return e(s.stars[t]).rating("select",void 0,i);if("string"==typeof t)return e.each(s.stars,(function(){e(this).data("rating.input").val()==t&&e(this).rating("select",void 0,i)})),this}else s.current="INPUT"==this[0].tagName?this.data("rating.star"):this.is(".rater-"+s.serial)?this:null;this.data("rating",s),this.rating("draw");var n=e(s.current?s.current.data("rating.input"):null),o=e(s.inputs).filter(":checked");return e(s.inputs).not(n).prop("checked",!1),n.prop("checked",!0),e(n.length?n:o).trigger({type:"change",selfTriggered:!0}),(i||null==i)&&s.callback&&s.callback.apply(n[0],[n.val(),e("a",s.current)[0]]),this}},readOnly:function(t,i){var s=this.data("rating");if(!s)return this;s.readOnly=!(!t&&null!=t),i?e(s.inputs).attr("disabled","disabled"):e(s.inputs).removeAttr("disabled"),this.data("rating",s),this.rating("draw")},disable:function(){this.rating("readOnly",!0,!0)},enable:function(){this.rating("readOnly",!1,!1)}}),e.fn.rating.options={cancel:"Cancel Rating",cancelValue:"",split:0,starWidth:16},e((function(){e("input[type=radio].star").rating()}))}(n())},91777:(e,t,i)=>{"use strict";i.r(t);var s,n=i(20615),o=i.n(n);void 0===(s=o()).fn.each2&&s.extend(s.fn,{each2:function(e){for(var t=s([0]),i=-1,n=this.length;++i<n&&(t.context=t[0]=this[i])&&!1!==e.call(t[0],i,t););return this}}),function(e,t){if(window.Select2===t){var i,s,n,o,a,r,l,c,d={x:0,y:0},u={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case u.LEFT:case u.RIGHT:case u.UP:case u.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case u.SHIFT:case u.CTRL:case u.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};r=e(document),c=1,o=function(){return c++},i=L(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var s,n,a,r,c=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+o()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e("body"),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(E(i.containerCss,this.opts.element)),this.container.addClass(E(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(E(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=s=this.container.find(c),this.search=n=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var s=d;s!==t&&s.x===i.pageX&&s.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered",c,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",c,this.bind((function(e){this._touchEvent=!0,this.highlightUnderEvent(e)}))),this.dropdown.on("touchmove",c,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",c,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),a=this.results,r=_(80,(function(e){a.trigger("scroll-debounced",e)})),a.on("scroll",(function(e){m(e.target,a.get())>=0&&r(e)})),this.dropdown.on("scroll-debounced",c,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",(function(e){e.stopPropagation()})),e(this.dropdown).on("change",".select2-input",(function(e){e.stopPropagation()})),e.fn.mousewheel&&s.mousewheel((function(e,t,i,n){var o=s.scrollTop();n>0&&o-n<=0?(s.scrollTop(0),w(e)):n<0&&s.get(0).scrollHeight-s.scrollTop()+n<=s.height()&&(s.scrollTop(s.get(0).scrollHeight-s.height()),w(e))})),b(n),n.on("keyup-change input paste",this.bind(this.updateResults)),n.on("focus",(function(){n.addClass("select2-focused")})),n.on("blur",(function(){n.removeClass("select2-focused")})),this.dropdown.on("mouseup",c,this.bind((function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(e){e.stopPropagation()})),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var u=i.element.prop("disabled");u===t&&(u=!1),this.enable(!u);var h=i.element.prop("readonly");h===t&&(h=!1),this.readonly(h),l=l||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),s=this;this.close(),e.length&&e[0].detachEvent&&e.each((function(){this.detachEvent("onpropertychange",s._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),P.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:g(e.attr("locked"),"locked")||g(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var s,n,a,r,l=this;if("select"===(s=i.element).get(0).tagName.toLowerCase()&&(this.select=n=i.element),n&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=e.extend({},{populateResults:function(s,n,a){var r,c=this.opts.id,d=this.liveRegion;r=function(s,n,u){var h,p,f,m,g,v,y,b,_,w,x=[];for(h=0,p=(s=i.sortResults(s,n,a)).length;h<p;h+=1)m=!(g=!0===(f=s[h]).disabled)&&c(f)!==t,v=f.children&&f.children.length>0,(y=e("<li></li>")).addClass("select2-results-dept-"+u),y.addClass("select2-result"),y.addClass(m?"select2-result-selectable":"select2-result-unselectable"),g&&y.addClass("select2-disabled"),v&&y.addClass("select2-result-with-children"),y.addClass(l.opts.formatResultCssClass(f)),y.attr("role","presentation"),(b=e(document.createElement("div"))).addClass("select2-result-label"),b.attr("id","select2-result-label-"+o()),b.attr("role","option"),(w=i.formatResult(f,b,a,l.opts.escapeMarkup))!==t&&(b.html(w),y.append(b)),v&&((_=e("<ul></ul>")).addClass("select2-result-sub"),r(f.children,_,u+1),y.append(_)),y.data("select2-data",f),x.push(y[0]);n.append(x),d.text(i.formatMatches(s.length))},r(n,s,0)}},e.fn.select2.defaults,i)).id&&(a=i.id,i.id=function(e){return e[a]}),e.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(n?(i.query=this.bind((function(e){var i,n,o,a={results:[],more:!1},r=e.term;o=function(t,i){var s;t.is("option")?e.matcher(r,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(s=l.optionToData(t),t.children().each2((function(e,t){o(t,s.children)})),s.children.length>0&&i.push(s))},i=s.children(),this.getPlaceholder()!==t&&i.length>0&&(n=this.getPlaceholderOption())&&(i=i.not(n)),i.each2((function(e,t){o(t,a.results)})),e.callback(a)})),i.id=function(e){return e.id}):"query"in i||("ajax"in i?((r=i.element.data("ajax-url"))&&r.length>0&&(i.ajax.url=r),i.query=k.call(i.element,i.ajax)):"data"in i?i.query=T(i.data):"tags"in i&&(i.query=$(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,s){var n=[];e(v(t.val(),i.separator)).each((function(){var t={id:this,text:this},s=i.tags;e.isFunction(s)&&(s=s()),e(s).each((function(){if(g(this.id,t.id))return t=this,!1})),n.push(t)})),s(n)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,s=this.opts.element,n=this;s.on("change.select2",this.bind((function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var e=s.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=s.prop("readonly");i===t&&(i=!1),this.readonly(i),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(E(this.opts.containerCssClass,this.opts.element)),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(E(this.opts.dropdownCssClass,this.opts.element))})),s.length&&s[0].attachEvent&&s.each((function(){this.attachEvent("onpropertychange",n._sync)})),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i((function(t){e.each(t,n._sync)})),this.propertyObserver.observe(s.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,s,n,o,a=this.dropdown,r=this.container.offset(),c=this.container.outerHeight(!1),d=this.container.outerWidth(!1),u=a.outerHeight(!1),h=e(window),p=h.width(),f=h.height(),m=h.scrollLeft()+p,g=h.scrollTop()+f,v=r.top+c,y=r.left,b=v+u<=g,_=r.top-u>=h.scrollTop(),w=a.outerWidth(!1),x=y+w<=m;a.hasClass("select2-drop-above")?(i=!0,!_&&b&&(s=!0,i=!1)):(i=!1,!b&&_&&(s=!0,i=!0)),s&&(a.hide(),r=this.container.offset(),c=this.container.outerHeight(!1),d=this.container.outerWidth(!1),u=a.outerHeight(!1),m=h.scrollLeft()+p,g=h.scrollTop()+f,v=r.top+c,x=(y=r.left)+(w=a.outerWidth(!1))<=m,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(w=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:l.width))>d?d=w:w=d,u=a.outerHeight(!1),x=y+w<=m):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(v-=(t=this.body.offset()).top,y-=t.left),x||(y=r.left+this.container.outerWidth(!1)-w),n={left:y,width:d},i?(n.top=r.top-u,n.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(n.top=v,n.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),n=e.extend(n,E(this.opts.dropdownCss,this.opts.element)),a.css(n)},shouldOpen:function(){var t;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),r.on("mousemove.select2Event",(function(e){d.x=e.pageX,d.y=e.pageY})),!0)},opening:function(){var t,i=this.containerEventName,s="scroll."+i,n="resize."+i,o="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",(function(i){p(t);var s,n=e("#select2-drop");n.length>0&&((s=n.data("select2")).opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close(),i.preventDefault(),i.stopPropagation())}))),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){e(this).on(n+" "+s+" "+o,(function(e){a.opened()&&a.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,s="resize."+t,n="orientationchange."+t;this.container.parents().add(window).each((function(){e(this).off(i).off(s).off(n)})),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),r.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return E(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,s,n,o,a,r,l,c=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),n=(l=((s=e(t[i])).offset()||{}).top||0)+s.outerHeight(!0),i===t.length-1&&(r=c.find("li.select2-more-results")).length>0&&(n=r.offset().top+r.outerHeight(!0)),n>(o=c.offset().top+c.outerHeight(!0))&&c.scrollTop(c.scrollTop()+(n-o)),(a=l-c.offset().top)<0&&"none"!=s.css("display")&&c.scrollTop(c.scrollTop()+a)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),s=this.highlight();s>-1&&s<i.length;){var n=e(i[s+=t]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(s);break}}},highlight:function(t){var i,s,n=this.findHighlightableChoices();if(0===arguments.length)return m(n.filter(".select2-highlighted")[0],n.get());t>=n.length&&(t=n.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(n[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(s=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(s),choice:s})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var s=this.findHighlightableChoices();this.highlight(s.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,s=this,n=this.search.val(),o=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:n,page:i,context:o,matcher:this.opts.matcher,callback:this.bind((function(a){s.opened()&&(s.opts.populateResults.call(this,e,a.results,{term:n,page:i,context:o}),s.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).text(E(s.opts.formatLoadMore,s.opts.element,i+1)),window.setTimeout((function(){s.loadMoreIfNeeded()}),10)):t.remove(),s.positionDropdown(),s.resultsPage=i,s.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var s,n,o,a=this.search,r=this.results,l=this.opts,c=this,d=a.val(),u=e.data(this.container,"select2-last-term");if((!0===i||!u||!g(d,u))&&(e.data(this.container,"select2-last-term",d),!0===i||!1!==this.showSearchInput&&this.opened())){o=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(s=this.data(),e.isArray(s)&&s.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+E(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+E(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+E(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(n=this.tokenize())!=t&&null!=n&&a.val(n),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(s){var n;o==this.queryCount&&(this.opened()?s.hasError!==t&&D(l.formatAjaxError,"formatAjaxError")?f("<li class='select2-ajax-error'>"+E(l.formatAjaxError,l.element,s.jqXHR,s.textStatus,s.errorThrown)+"</li>"):(this.context=s.context===t?null:s.context,this.opts.createSearchChoice&&""!==a.val()&&(n=this.opts.createSearchChoice.call(c,a.val(),s.results))!==t&&null!==n&&c.id(n)!==t&&null!==c.id(n)&&0===e(s.results).filter((function(){return g(c.id(this),c.id(n))})).length&&this.opts.createSearchChoicePosition(s.results,n),0===s.results.length&&D(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+E(l.formatNoMatches,l.element,a.val())+"</li>"):(r.empty(),c.opts.populateResults.call(this,r,s.results,{term:a.val(),page:this.resultsPage,context:null}),!0===s.more&&D(l.formatLoadMore,"formatLoadMore")&&(r.append("<li class='select2-more-results'>"+l.escapeMarkup(E(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(s,i),p(),this.opts.element.trigger({type:"select2-loaded",items:s}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+E(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown(),r.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(r.text()):c.liveRegion.text(c.opts.formatMatches(r.find(".select2-result-selectable").length))}function f(e){r.html(e),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var t,i=e[0],s=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(s,s):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))}),0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var i=function(){var i,s,n,o,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==t)for(o=0,a=(s=i.split(";")).length;o<a;o+=1)if(null!==(n=s[o].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),s=L(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,s,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(i=this.search.get(0)).createTextRange?((s=i.createTextRange()).collapse(!1),s.select()):i.setSelectionRange&&(n=this.search.val().length,i.setSelectionRange(n,n))),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),P.call(this,"selection","focusser")},initContainer:function(){var t,i,s=this.container,n=this.dropdown,a=o();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=s.find(".select2-choice"),this.focusser=s.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var r=this.opts.element.attr("title");this.opts.element.attr("title",r||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==u.PAGE_UP&&e.which!==u.PAGE_DOWN)switch(e.which){case u.UP:case u.DOWN:return this.moveHighlight(e.which===u.UP?-1:1),void w(e);case u.ENTER:return this.selectHighlighted(),void w(e);case u.TAB:return void this.selectHighlighted({noFocus:!0});case u.ESC:return this.cancel(e),void w(e)}else w(e)}))),this.search.on("blur",this.bind((function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()&&e.which!==u.TAB&&!u.isControl(e)&&!u.isFunctionKey(e)&&e.which!==u.ESC){if(!1!==this.opts.openOnEnter||e.which!==u.ENTER){if(e.which==u.DOWN||e.which==u.UP||e.which==u.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void w(e)}return e.which==u.DELETE||e.which==u.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(e)):void 0}w(e)}}))),b(this.focusser),this.focusser.on("keyup-change input",this.bind((function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}}))),t.on("mousedown touchstart","abbr",this.bind((function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection.focus())}))),t.on("mousedown touchstart",this.bind((function(i){p(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(i)}))),n.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),t.on("focus",this.bind((function(e){w(e)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var s=e.Event("select2-clearing");if(this.opts.element.trigger(s),s.isDefaultPrevented())return;var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(i,e.search.val()))}))}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var s=e.find("option").filter((function(){return this.selected&&!this.disabled}));t(i.optionToData(s))}:"data"in t&&(t.initSelection=t.initSelection||function(i,s){var n=i.val(),o=null;t.query({matcher:function(e,i,s){var a=g(n,t.id(s));return a&&(o=s),a},callback:e.isFunction(s)?function(){s(o)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var s=0,n=this;if(this.findHighlightableChoices().each2((function(e,t){if(g(n.id(t.data("select2-data")),n.opts.element.val()))return s=e,!1})),!1!==i&&(!0===t&&s>=0?this.highlight(s):this.highlight(0)),!0===t){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(A(e.results)>=o)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),s=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),g(i,this.id(e))||this.triggerChange({added:e,removed:s})}},updateSelection:function(e){var i,s,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),null!==e&&(i=this.opts.formatSelection(e,n,this.opts.escapeMarkup)),i!==t&&n.append(i),(s=this.opts.formatSelectionCssClass(e,n))!==t&&n.addClass(s),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,s=null,n=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(e).find("option").filter((function(){return this.selected})).each2((function(e,t){return s=n.optionToData(t),!1})),this.updateSelection(s),this.setPlaceholder(),i&&this.triggerChange({added:s,removed:o});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,(function(e){n.opts.element.val(e?n.id(e):""),n.updateSelection(e),n.setPlaceholder(),i&&n.triggerChange({added:e,removed:o})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,s=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;arguments.length>1&&(s=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),s&&this.triggerChange({added:e,removed:i})):this.clear(s)}}),n=L(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var s=[];e.find("option").filter((function(){return this.selected&&!this.disabled})).each2((function(e,t){s.push(i.optionToData(t))})),t(s)}:"data"in t&&(t.initSelection=t.initSelection||function(i,s){var n=v(i.val(),t.separator),o=[];t.query({matcher:function(i,s,a){var r=e.grep(n,(function(e){return g(e,t.id(a))})).length;return r&&o.push(a),r},callback:e.isFunction(s)?function(){for(var e=[],i=0;i<n.length;i++)for(var a=n[i],r=0;r<o.length;r++){var l=o[r];if(g(a,t.id(l))){e.push(l),o.splice(r,1);break}}s(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),P.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var s=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(t){s.search[0].focus(),s.selectChoice(e(this))})),this.search.attr("id","s2id_autogen"+o()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var s=t.find(".select2-search-choice-focus"),n=s.prev(".select2-search-choice:not(.select2-locked)"),o=s.next(".select2-search-choice:not(.select2-locked)"),a=function(t){var i=0,s=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,s=t.selectionEnd-i;else if("selection"in document){t.focus();var n=document.selection.createRange();s=document.selection.createRange().text.length,n.moveStart("character",-t.value.length),i=n.text.length-s}return{offset:i,length:s}}(this.search);if(s.length&&(i.which==u.LEFT||i.which==u.RIGHT||i.which==u.BACKSPACE||i.which==u.DELETE||i.which==u.ENTER)){var r=s;return i.which==u.LEFT&&n.length?r=n:i.which==u.RIGHT?r=o.length?o:null:i.which===u.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),r=n.length?n:o):i.which==u.DELETE?this.unselect(s.first())&&(this.search.width(10),r=o.length?o:null):i.which==u.ENTER&&(r=null),this.selectChoice(r),w(i),void(r&&r.length||this.open())}if((i.which===u.BACKSPACE&&1==this.keydowns||i.which==u.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case u.UP:case u.DOWN:return this.moveHighlight(i.which===u.UP?-1:1),void w(i);case u.ENTER:return this.selectHighlighted(),void w(i);case u.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case u.ESC:return this.cancel(i),void w(i)}if(i.which!==u.TAB&&!u.isControl(i)&&!u.isFunctionKey(i)&&i.which!==u.BACKSPACE&&i.which!==u.ESC){if(i.which===u.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==u.PAGE_UP&&i.which!==u.PAGE_DOWN||w(i),i.which===u.ENTER&&w(i)}}}))),this.search.on("keyup",this.bind((function(e){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())}))}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var i=[],s=[],n=this;e(t).each((function(){m(n.id(this),i)<0&&(i.push(n.id(this)),s.push(this))})),t=s,this.selection.find(".select2-search-choice").remove(),e(t).each((function(){n.addSelectedChoice(this)})),n.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,i){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.moveHighlight(1),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.clearSearch(),this.updateResults(),this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),i&&i.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var s,n,o=!i.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),r=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=o?a:r,c=this.id(i),d=this.getVal();(s=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith("<div>"+s+"</div>"),(n=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(n),o&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),w(t),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),d.push(c),this.setVal(d)},unselect:function(t){var i,s,n=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var o=e.Event("select2-removing");if(o.val=this.id(i),o.choice=i,this.opts.element.trigger(o),o.isDefaultPrevented())return!1;for(;(s=m(this.id(i),n))>=0;)n.splice(s,1),this.setVal(n),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var s=this.getVal(),n=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;n.each2((function(e,t){m(a.id(t.data("select2-data")),s)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))})),o.each2((function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!n.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+E(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,s,n,o=y(this.search);t=function(t){if(!a){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e("body").append(a)}return a.text(t.val()),a.width()}(this.search)+10,i=this.search.offset().left,(n=(s=this.selection.width())-(i-this.selection.offset().left)-o)<t&&(n=s-o),n<40&&(n=s-o),n<=0&&(n=t),this.search.width(Math.floor(n))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var i;this.select?this.select.val(t):(i=[],e(t).each((function(){m(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var s=0;s<e.length;s++)g(this.opts.id(t[i]),this.opts.id(e[s]))&&(t.splice(i,1),i>0&&i--,e.splice(s,1),s--);return{added:t,removed:e}},val:function(i,s){var n,o=this;if(0===arguments.length)return this.getVal();if((n=this.data()).length||(n=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(s&&this.triggerChange({added:this.data(),removed:n}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),s&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var i=e.map(t,o.id);o.setVal(i),o.updateSelection(t),o.clearSearch(),s&&o.triggerChange(o.buildChangeDetails(n,o.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(i.opts.id(e(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,i){var s,n,o=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return e(this).data("select2-data")})).get();n=this.data(),t||(t=[]),s=e.map(t,(function(e){return o.opts.id(e)})),this.setVal(s),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(n,this.data()))}}),e.fn.select2=function(){var i,s,n,o,a,r=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],d=["val","data"],u={search:"externalSearch"};return this.each((function(){if(0===r.length||"object"==typeof r[0])(i=0===r.length?{}:e.extend({},r[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(s=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof r[0])throw"Invalid arguments to select2 plugin: "+r;if(m(r[0],l)<0)throw"Unknown method: "+r[0];if(o=t,(s=e(this).data("select2"))===t)return;if("container"===(n=r[0])?o=s.container:"dropdown"===n?o=s.dropdown:(u[n]&&(n=u[n]),o=s[n].apply(s,r.slice(1))),m(r[0],c)>=0||m(r[0],d)>=0&&1==r.length)return!1}})),o===t?this:o},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,s){var n=[];return C(e.text,i.term,n,s),n.join("")},formatSelection:function(e,i,s){return e?s(e.text):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},matcher:function(e,t){return f(""+t).toUpperCase().indexOf(f(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,s,n){var o,a,r,l,c,d=e,u=!1;if(!n.createSearchChoice||!n.tokenSeparators||n.tokenSeparators.length<1)return t;for(;;){for(a=-1,r=0,l=n.tokenSeparators.length;r<l&&(c=n.tokenSeparators[r],!((a=e.indexOf(c))>=0));r++);if(a<0)break;if(o=e.substring(0,a),e=e.substring(a+c.length),o.length>0&&(o=n.createSearchChoice.call(this,o,i))!==t&&null!==o&&n.id(o)!==t&&null!==n.id(o)){for(u=!1,r=0,l=i.length;r<l;r++)if(g(n.id(o),n.id(i[r]))){u=!0;break}u||s(o)}}return d!==e?e:void 0},escapeMarkup:S,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||navigator.msMaxTouchPoints>0)&&e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:T,tags:$},util:{debounce:_,markMatch:C,escapeMarkup:S,stripDiacritics:f},class:{abstract:i,single:s,multi:n}}}function p(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function f(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return h[e]||e}))}function m(e,t){for(var i=0,s=t.length;i<s;i+=1)if(g(e,t[i]))return i;return-1}function g(e,i){return e===i||e!==t&&i!==t&&null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+"")}function v(t,i){var s,n,o;if(null===t||t.length<1)return[];for(n=0,o=(s=t.split(i)).length;n<o;n+=1)s[n]=e.trim(s[n]);return s}function y(e){return e.outerWidth(!1)-e.width()}function b(i){var s="keyup-change-value";i.on("keydown",(function(){e.data(i,s)===t&&e.data(i,s,i.val())})),i.on("keyup",(function(){var n=e.data(i,s);n!==t&&i.val()!==n&&(e.removeData(i,s),i.trigger("keyup-change"))}))}function _(e,i,s){var n;return s=s||t,function(){var t=arguments;window.clearTimeout(n),n=window.setTimeout((function(){i.apply(s,t)}),e)}}function w(e){e.preventDefault(),e.stopPropagation()}function x(t,i,s){var n,o,a=[];(n=e.trim(t.attr("class")))&&e((n=""+n).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(n=e.trim(i.attr("class")))&&e((n=""+n).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(o=s(this))&&a.push(o)})),t.attr("class",a.join(" "))}function C(e,t,i,s){var n=f(e.toUpperCase()).indexOf(f(t.toUpperCase())),o=t.length;n<0?i.push(s(e)):(i.push(s(e.substring(0,n))),i.push("<span class='select2-match'>"),i.push(s(e.substring(n,n+o))),i.push("</span>"),i.push(s(e.substring(n+o,e.length))))}function S(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))}function k(i){var s,n=null,o=i.quietMillis||100,a=i.url,r=this;return function(l){window.clearTimeout(s),s=window.setTimeout((function(){var s=i.data,o=a,c=i.transport||e.fn.select2.ajaxDefaults.transport,d={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},u=e.extend({},e.fn.select2.ajaxDefaults.params,d);s=s?s.call(r,l.term,l.page,l.context):null,o="function"==typeof o?o.call(r,l.term,l.page,l.context):o,n&&"function"==typeof n.abort&&n.abort(),i.params&&(e.isFunction(i.params)?e.extend(u,i.params.call(r)):e.extend(u,i.params)),e.extend(u,{url:o,dataType:i.dataType,data:s,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){var s={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};l.callback(s)}}),n=c.call(r,u)}),o)}}function T(t){var i,s,n=t,o=function(e){return""+e.text};e.isArray(n)&&(n={results:s=n}),!1===e.isFunction(n)&&(s=n,n=function(){return s});var a=n();return a.text&&(o=a.text,e.isFunction(o)||(i=a.text,o=function(e){return e[i]})),function(t){var i,s=t.term,a={results:[]};""!==s?(i=function(n,a){var r,l;if((n=n[0]).children){for(l in r={},n)n.hasOwnProperty(l)&&(r[l]=n[l]);r.children=[],e(n.children).each2((function(e,t){i(t,r.children)})),(r.children.length||t.matcher(s,o(r),n))&&a.push(r)}else t.matcher(s,o(n),n)&&a.push(n)},e(n().results).each2((function(e,t){i(t,a.results)})),t.callback(a)):t.callback(n())}}function $(i){var s=e.isFunction(i);return function(n){var o=n.term,a={results:[]},r=s?i(n):i;e.isArray(r)&&(e(r).each((function(){var e=this.text!==t,i=e?this.text:this;(""===o||n.matcher(o,i))&&a.results.push(e?this:{id:this,text:this})})),n.callback(a))}}function D(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function E(t,i){if(e.isFunction(t)){var s=Array.prototype.slice.call(arguments,2);return t.apply(i,s)}return t}function A(t){var i=0;return e.each(t,(function(e,t){t.children?i+=A(t.children):i++})),i}function P(){var t=this;e.each(arguments,(function(e,i){t[i].remove(),t[i]=null}))}function L(t,i){var s=function(){};return(s.prototype=new t).constructor=s,s.prototype.parent=t.prototype,s.prototype=e.extend(s.prototype,i),s}}(o())},68743:(e,t,i)=>{"use strict";i.d(t,{UU:()=>o});var s=i(90318),n=i(33113);function o(e,t){return(0,n._f)(`/api/histories/${e}/contents/${e}/display?filename=${t}`)}s._.path("/api/datasets").method("get").create(),s._.path("/api/histories/{history_id}/contents/{type}s").method("post").create(),s._.path("/api/tags").method("put").create(),s._.path("/api/histories/{history_id}/contents/{id}").method("get").create()},82601:(e,t,i)=>{"use strict";i.d(t,{c:()=>s});class s{constructor(e){Object.defineProperty(this,"datatypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datatypesMapping",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.datatypes=[...e.datatypes],this.datatypes.sort(),this.datatypesMapping=e.datatypes_mapping}isSubType(e,t){const i=this.datatypesMapping,s=i.ext_to_class_name[e],n=i.ext_to_class_name[t];if(!s||!n)return!1;const o=i.class_to_classes[s];return!!o&&n in o}isSubTypeOfAny(e,t){return t.some((t=>this.isSubType(e,t)))}}},88998:(e,t,i)=>{"use strict";i.d(t,{j:()=>n});var s=i(31207);function n(e="/"){const t=document.getElementsByTagName("link"),i=Array.from(t).find((e=>"index"==e.rel));return i&&i.href?(0,s.H)(i.href):e}},29547:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var s=i(3262),n=i(62352),o=i(50452);const a=s.HI.for();a.configure({baseUrl:(0,n.getAppRoot)(void 0,!0),use:[(e,t,i)=>{return s=void 0,n=void 0,r=function*(){try{return yield i(e,t)}catch(e){(0,o.t)(e)}},new((a=void 0)||(a=Promise))((function(e,t){function i(e){try{l(r.next(e))}catch(e){t(e)}}function o(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof a?s:new a((function(e){e(s)}))).then(i,o)}l((r=r.apply(s,n||[])).next())}));var s,n,a,r}]})},90318:(e,t,i)=>{"use strict";i.d(t,{_:()=>s._});var s=i(29547)},31207:(e,t,i)=>{"use strict";function s(e=window.location.href){return new URL(e).pathname}i.d(t,{H:()=>s})},50452:(e,t,i)=>{"use strict";function s(e,t="Request failed."){let i=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?i=e.response.data.err_msg:e&&e.response?i=`${e.response.statusText} (${e.response.status})`:"string"==typeof e&&(i=e),i}function n(e){throw console.debug(e),s(e)}i.d(t,{a:()=>s,t:()=>n})},66581:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var s=i(70538),n=i(94741),o=i(28195),a=i(8199);class r{constructor(e={}){this.values={},this.multiple=e.multiple||!1,this.format=e.format||null}add(e){this.multiple||(this.values={});const t=e&&e.id;if(!t)throw"Invalid record with no <id>.";this.values[t]?delete this.values[t]:this.values[t]=e}count(){return Object.keys(this.values).length}exists(e){return!!this.values[e]}finalize(){let e=[];return Object.values(this.values).forEach((t=>{let i=null;i=this.format?t[this.format]:t,e.push(i)})),e.length>0&&!this.multiple&&(e=e[0]),e}}var l=i(9669),c=i.n(l),d=i(62352);class u{get(e){return new Promise(((t,i)=>{c().get(e).then((e=>{const i=this.getItems(e.data);t(i)})).catch((e=>{let t="Request failed.";e.response&&(t=e.response.data.err_msg||`${e.response.statusText} (${e.response.status})`),i(t)}))}))}getItems(e){const t=[],i=[e];for(;i.length>0;){const e=i.pop();if(Array.isArray(e))e.forEach((e=>{i.push(e)}));else if(e.elements)i.push(e.elements);else if(e.object)i.push(e.object);else{const i=this.getRecord(e);i&&t.push(i)}}return t}getRecord(e){const t=`${window.location.protocol}//${window.location.hostname}:${window.location.port}`;return e.details=e.extension||e.description,e.time=e.update_time||e.create_time,e.isLeaf=this.isDataset(e),e.time&&(e.time=e.time.substring(0,16).replace("T"," ")),"Library"==e.model_class?(e.label=e.name,e.url=`${(0,d.getAppRoot)()}api/libraries/${e.id}/contents`,e):e.hid?(e.label=`${e.hid}: ${e.name}`,e.download=`${t}${(0,d.getAppRoot)()}api/histories/${e.history_id}/contents/${e.id}/display`,e):"file"==e.type?(e.src="ldda",e.label=e.name,e.download=`${t}${(0,d.getAppRoot)()}api/libraries/datasets/download/uncompressed?ld_ids=${e.id}`,e):void 0}isDataset(e){return"dataset"==e.history_content_type||"file"==e.type}}var h=i(95150);s.default.use(n.ZPm);const p={mixins:[o.Z],props:{multiple:{type:Boolean,default:!1},format:{type:String,default:"download"},library:{type:Boolean,default:!0},history:{type:String,required:!0},modalStatic:{type:Boolean,default:!1},allowUpload:{type:Boolean,default:!0}},data:()=>({errorMessage:null,filter:null,items:[],modalShow:!0,optionsShow:!1,undoShow:!1,hasValue:!1}),created:function(){this.services=new u,this.urlTracker=new a.B(this.getHistoryUrl()),this.model=new r({multiple:this.multiple,format:this.format}),this.load()},methods:{getHistoryUrl(){return`${(0,d.getAppRoot)()}api/histories/${this.history}/contents?deleted=false`},formatRows(){for(const e of this.items){let t="active";e.isLeaf&&(t=this.model.exists(e.id)?"success":"default"),s.default.set(e,"_rowVariant",t)}},onClick(e){e.isLeaf?(this.model.add(e),this.hasValue=this.model.count()>0,this.multiple?this.formatRows():this.onOk()):this.load(e.url)},onUpload(){const e={multiple:this.multiple,format:this.format,callback:this.callback,modalShow:!0,selectable:!0};(0,h.sS)(e),this.modalShow=!1},onOk(){const e=this.model.finalize();this.modalShow=!1,this.callback(e),this.$emit("onOk",e)},onCancel(){this.modalShow=!1,this.$emit("onCancel")},onLoad(e){this.load(e.url)},load(e){e=this.urlTracker.getUrl(e),this.filter=null,this.optionsShow=!1,this.undoShow=!this.urlTracker.atRoot(),this.services.get(e).then((e=>{this.library&&this.urlTracker.atRoot()&&e.unshift({label:"Data Libraries",url:`${(0,d.getAppRoot)()}api/libraries`}),this.items=e,this.formatRows(),this.optionsShow=!0})).catch((e=>{this.errorMessage=e}))}}},f=(0,i(51900).Z)(p,(function(){var e=this,t=e._self._c;return t("selection-dialog",{attrs:{"error-message":e.errorMessage,"options-show":e.optionsShow,"modal-show":e.modalShow,"hide-modal":e.onCancel},scopedSlots:e._u([{key:"search",fn:function(){return[t("data-dialog-search",{model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})]},proxy:!0},{key:"options",fn:function(){return[e.optionsShow?t("data-dialog-table",{attrs:{items:e.items,multiple:e.multiple,filter:e.filter},on:{clicked:e.onClick,open:e.onLoad}}):e._e()]},proxy:!0},{key:"buttons",fn:function(){return[e.undoShow?t("b-btn",{staticClass:"float-left",attrs:{size:"sm"},on:{click:function(t){return e.load()}}},[t("div",{staticClass:"fa fa-caret-left mr-1"}),e._v("\n Back\n ")]):e._e(),e._v(" "),e.allowUpload?t("b-btn",{staticClass:"float-left mr-1",attrs:{size:"sm"},on:{click:e.onUpload}},[t("div",{staticClass:"fa fa-upload ml-1"}),e._v("\n Upload\n ")]):e._e(),e._v(" "),e.multiple?t("b-btn",{staticClass:"float-right ml-1",attrs:{size:"sm",variant:"primary",disabled:!e.hasValue},on:{click:e.onOk}},[e._v("\n Ok\n ")]):e._e()]},proxy:!0}])})}),[],!1,null,null,null).exports},97175:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const s={props:{classes:{type:String,required:!1,default:null},message:{type:String,default:"Loading"}},computed:{spinnerClasses(){return["loading-icon","fa","fa-spinner","fa-spin"].concat(this.classes?this.classes.split(" "):[])}}},n=(0,i(51900).Z)(s,(function(){var e=this,t=e._self._c;return t("span",[t("span",{class:e.spinnerClasses}),e._v(" "),t("span",{staticClass:"loading-message"},[e._v(e._s(e.message)+"."),t("span",{staticClass:"blinking"},[e._v("..")])])])}),[],!1,null,null,null).exports},98174:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var s=i(55806),n=i.n(s);const o={props:["options","value","placeholder","containerClass","enabled"],watch:{value:function(e){n()(this.$el).val(e)},options:function(e){n()(this.$el).empty().select2({data:e})},enabled:function(e){n()(this.$el).select2("enable",e)}},mounted:function(){const e=this;let t=this.enabled;void 0===t&&(t=!0);const i={data:this.options,placeholder:this.placeholder,allowClear:!!this.placeholder,enable:t,dropdownAutoWidth:!0};this.containerClass&&(i.containerCssClass=this.containerClass),n()(this.$el).select2(i).val(this.value).trigger("change").on("change",(function(t){e.$emit("input",t.val)}))},destroyed:function(){n()(this.$el).off().select2("destroy")}},a=(0,i(51900).Z)(o,(function(){return(0,this._self._c)("select",[this._t("default")],2)}),[],!1,null,null,null).exports},18281:(e,t,i)=>{"use strict";var s=i(9669),n=i.n(s),o=i(28195),a=i(57404),r=i(50452);const l={mixins:[o.Z],props:{history:{type:String,required:!0}},data:()=>({errorMessage:null,filter:null,items:[],modalShow:!0,optionsShow:!1,hasValue:!1}),created:function(){this.load()},methods:{formatRows(){},clicked:function(e){this.modalShow=!1,this.callback(e),this.$emit("onOk",e)},onCancel(){this.modalShow=!1,this.$emit("onCancel")},load:function(){this.filter=null,this.optionsShow=!1;const e=`${(0,a.Bz)().root}api/histories/${this.history}/contents?type=dataset_collection`;n().get(e).then((e=>{this.items=e.data.map((e=>({id:e.id,label:e.name,time:e.created_time,isLeaf:!0}))),this.formatRows(),this.optionsShow=!0})).catch((e=>{this.errorMessage=(0,r.a)(e)}))}}};(0,i(51900).Z)(l,(function(){var e=this,t=e._self._c;return t("selection-dialog",{attrs:{"error-message":e.errorMessage,"options-show":e.optionsShow,"modal-show":e.modalShow,"hide-modal":e.onCancel},scopedSlots:e._u([{key:"search",fn:function(){return[t("data-dialog-search",{model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})]},proxy:!0},{key:"options",fn:function(){return[e.optionsShow?t("data-dialog-table",{attrs:{items:e.items,multiple:!1,filter:e.filter,"leaf-icon":"fa fa-folder"},on:{clicked:e.clicked,load:e.load}}):e._e()]},proxy:!0}])})}),[],!1,null,null,null).exports},57404:(e,t,i)=>{"use strict";i.d(t,{Bz:()=>A,RV:()=>E});var s=["log","debug","info","warn","error","metric"];const n=function(e,t){var i=void 0!==e.prototype?e.prototype:e;return void 0!==t&&(i._logNamespace=t),s.forEach((e=>{i[e]=function(){if(this.logger)return this.logger.emit?this.logger.emit(e,this._logNamespace,arguments):this.logger[e]?this.logger[e].apply(this.logger,arguments):void 0}})),e};var o=i(23504),a=i(55806),r=i.n(a),l=i(59050),c=i(72316),d=i.n(c),u=i(11411),h={logger:null,_logNamespace:"."};n(h);var p=d().Model.extend({initialize:function(e){if(this._checkEnabledSessionStorage(),!e.id)throw new Error("SessionStorageModel requires an id in the initial attributes");this.id=e.id;var t=this.isNew()?{}:this._read(this);this.clear({silent:!0}),this.save(l.default.extend({},this.defaults,t,e),{silent:!0}),this.on("change",(function(){this.save()}))},_checkEnabledSessionStorage:function(){try{return window.sessionStorage.length>=0}catch(e){return alert("Please enable cookies in your browser for this Galaxy site"),!1}},sync:function(e,t,i){i.silent||t.trigger("request",t,{},i);var s={};switch(e){case"create":s=this._create(t);break;case"read":s=this._read(t);break;case"update":s=this._update(t);break;case"delete":s=this._delete(t)}return void 0!==s||null!==s?i.success&&i.success():i.error&&i.error(),s},_create:function(e){try{var t=e.toJSON(),i=sessionStorage.setItem(e.id,JSON.stringify(t));return null===i?i:t}catch(e){if(!(e instanceof DOMException&&navigator.userAgent.indexOf("Safari")>-1))throw e}return null},_read:function(e){return JSON.parse(sessionStorage.getItem(e.id))},_update:function(e){return e._create(e)},_delete:function(e){return sessionStorage.removeItem(e.id)},isNew:function(){return!Object.prototype.hasOwnProperty.call(sessionStorage,this.id)},_log:function(){return JSON.stringify(this.toJSON(),null," ")},toString:function(){return`SessionStorageModel(${this.id})`}});p.prototype=l.default.omit(p.prototype,"url","urlRoot");const f={LoggableMixin:h,SessionStorageModel:p,mixin:function(e,t){var i=Array.prototype.slice.call(arguments,0),s=i.pop();return i.unshift(s),l.default.defaults.apply(l.default,i)},SearchableModelMixin:{searchAttributes:[],searchAliases:{},searchAttribute:function(e,t){var i=this.get(e);return!(!t||null==i)&&(l.default.isArray(i)?this._searchArrayAttribute(i,t):-1!==i.toString().toLowerCase().indexOf(t.toLowerCase()))},_searchArrayAttribute:function(e,t){return t=t.toLowerCase(),l.default.any(e,(e=>-1!==e.toString().toLowerCase().indexOf(t.toLowerCase())))},search:function(e){var t=this;return l.default.filter(this.searchAttributes,(i=>t.searchAttribute(i,e)))},matches:function(e){var t=e.split("=");if(t.length>=2){var i=t[0];return i=this.searchAliases[i]||i,this.searchAttribute(i,t[1])}return!!this.search(e).length},matchesAll:function(e){var t=this;return e=e.match(/(".*"|\w*=".*"|\S*)/g).filter((e=>!!e)),l.default.all(e,(e=>(e=e.replace(/"/g,""),t.matches(e))))}},HiddenUntilActivatedViewMixin:{hiddenUntilActivated:function(e,t){if(t=t||{},this.HUAVOptions={$elementShown:this.$el,showFn:r().prototype.toggle,showSpeed:"fast"},l.default.extend(this.HUAVOptions,t||{}),this.HUAVOptions.hasBeenShown=this.HUAVOptions.$elementShown.is(":visible"),this.hidden=this.isHidden(),e){var i=this;e.on("click",(e=>{i.toggle(i.HUAVOptions.showSpeed)}))}},isHidden:function(){return this.HUAVOptions.$elementShown.is(":hidden")},toggle:function(){return this.hidden?(this.HUAVOptions.hasBeenShown||l.default.isFunction(this.HUAVOptions.onshowFirstTime)&&(this.HUAVOptions.hasBeenShown=!0,this.HUAVOptions.onshowFirstTime.call(this)),l.default.isFunction(this.HUAVOptions.onshow)&&(this.HUAVOptions.onshow.call(this),this.trigger("hiddenUntilActivated:shown",this)),this.hidden=!1):(l.default.isFunction(this.HUAVOptions.onhide)&&(this.HUAVOptions.onhide.call(this),this.trigger("hiddenUntilActivated:hidden",this)),this.hidden=!0),this.HUAVOptions.showFn.apply(this.HUAVOptions.$elementShown,arguments)}},DraggableViewMixin:{initialize:function(e){this.draggable=e.draggable||!1},$dragHandle:function(){return this.$(".title-bar")},toggleDraggable:function(){this.draggable?this.draggableOff():this.draggableOn()},draggableOn:function(){this.draggable=!0,this.dragStartHandler=l.default.bind(this._dragStartHandler,this),this.dragEndHandler=l.default.bind(this._dragEndHandler,this);var e=this.$dragHandle().attr("draggable",!0).get(0);e.addEventListener("dragstart",this.dragStartHandler,!1),e.addEventListener("dragend",this.dragEndHandler,!1)},draggableOff:function(){this.draggable=!1;var e=this.$dragHandle().attr("draggable",!1).get(0);e.removeEventListener("dragstart",this.dragStartHandler,!1),e.removeEventListener("dragend",this.dragEndHandler,!1)},_dragStartHandler:function(e){return e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text",JSON.stringify(this.model.toJSON())),this.trigger("draggable:dragstart",e,this),!1},_dragEndHandler:function(e){return this.trigger("draggable:dragend",e,this),!1}},SelectableViewMixin:{initialize:function(e){this.selectable=e.selectable||!1,this.selected=e.selected||!1},$selector:function(){return this.$(".selector")},_renderSelected:function(){this.$selector().find("span").toggleClass("fa-check-square-o",this.selected).toggleClass("fa-square-o",!this.selected)},toggleSelector:function(){this.$selector().is(":visible")?this.hideSelector():this.showSelector()},showSelector:function(e){e=void 0!==e?e:this.fxSpeed,this.selectable=!0,this.trigger("selectable",!0,this),this._renderSelected(),e?this.$selector().show(e):this.$selector().show()},hideSelector:function(e){e=void 0!==e?e:this.fxSpeed,this.selectable=!1,this.trigger("selectable",!1,this),e?this.$selector().hide(e):this.$selector().hide()},toggleSelect:function(e){this.selected?this.deselect(e):this.select(e)},select:function(e){return this.selected||(this.trigger("selected",this,e),this.selected=!0,this._renderSelected()),!1},deselect:function(e){return this.selected&&(this.trigger("de-selected",this,e),this.selected=!1,this._renderSelected()),!1}},wrapTemplate:function(e,t){t=t||"model";var i=l.default.template(e.join(""));return(e,s)=>{var n={view:s||{},_l:u.ZP};return n[t]=e||{},i(n)}},buildComparator:function(e,t){var i=(t=t||{}).ascending?1:-1;return function(t,s){return((t=t.get(e))<(s=s.get(e))?-1:t>s?1:0)*i}}};var m=i(62352),g=d().Model.extend(f.LoggableMixin).extend({_logNamespace:"user",urlRoot:function(){return`${(0,m.getAppRoot)()}api/users`},defaults:{id:null,username:`(${(0,u.ZP)("anonymous user")})`,email:"",total_disk_usage:0,nice_total_disk_usage:"",quota_percent:null,is_admin:!1,preferences:{}},initialize:function(e){this.log("User.initialize:",e),this.on("loaded",(function(e,t){this.log(`${this} has loaded:`,e,t)})),this.on("change",(function(e,t){this.log(`${this} has changed:`,e,t.changes)}))},isAnonymous:function(){return!this.get("email")},isAdmin:function(){return this.get("is_admin")},updatePreferences:function(e,t){const i=this.get("preferences");i[e]=JSON.stringify(t),this.preferences=i},getFavorites:function(){const e=this.get("preferences");return e&&e.favorites?JSON.parse(e.favorites):{tools:[]}},updateFavorites:function(e,t){const i=this.getFavorites();i[e]=t[e],this.updatePreferences("favorites",i)},loadFromApi:function(e,t){e=e||g.CURRENT_ID_STR;var i=this,s=(t=t||{}).success;return t.success=(e,t)=>{i.trigger("loaded",e,t),s&&s(e,t)},e===g.CURRENT_ID_STR&&(t.url=`${this.urlRoot}/${g.CURRENT_ID_STR}`),d().Model.prototype.fetch.call(this,t)},clearSessionStorage:function(){for(var e in sessionStorage)(0===e.indexOf("history:")||"history-panel"===e)&&sessionStorage.removeItem(e)},toString:function(){var e=[this.get("username")];return this.get("id")&&(e.unshift(this.get("id")),e.push(this.get("email"))),`User(${e.join(":")})`}});g.CURRENT_ID_STR="current",g.getCurrentUserFromApi=e=>{var t=new g;return t.loadFromApi(g.CURRENT_ID_STR,e),t};const v={User:g};function y(e){e=e||{};var t=this;return t.userId=window.bootstrapped&&window.bootstrapped.user?window.bootstrapped.user.id:null,t.userId=t.userId||e.userId||null,t.consoleLogger=e.consoleLogger||null,t._init(e),t}function b(e){var t=String(e);if("[object Object]"==t)try{t=JSON.stringify(e)}catch(t){return console.error(t),String(e)}return t}function _(e){return this._init(e||{})}y.ALL=0,y.LOG=0,y.DEBUG=10,y.INFO=20,y.WARN=30,y.ERROR=40,y.METRIC=50,y.NONE=100,y.defaultOptions={logLevel:y.NONE,consoleLevel:y.NONE,defaultNamespace:"Galaxy",consoleNamespaceWhitelist:null,consoleFlattenMessages:!1,clientPrefix:"client.",maxCacheSize:3e3,postSize:1e3,addTime:!0,cacheKeyPrefix:"logs-",postUrl:"/api/metrics",delayPostInMs:6e5,getPingData:void 0,onServerResponse:void 0},y.prototype._init=function(e){var t=this;for(var i in t.options={},y.defaultOptions)Object.prototype.hasOwnProperty.call(y.defaultOptions,i)&&(t.options[i]=Object.prototype.hasOwnProperty.call(e,i)?e[i]:y.defaultOptions[i]);return t.options.logLevel=t._parseLevel(t.options.logLevel),t.options.consoleLevel=t._parseLevel(t.options.consoleLevel),t._sending=!1,t._waiting=null,t._postSize=t.options.postSize,t._initCache(),t},y.prototype._initCache=function(){try{this.cache=new _({maxSize:this.options.maxCacheSize,key:this.options.cacheKeyPrefix+this.userId})}catch(e){this._emitToConsole("warn","MetricsLogger",["Could not intitialize logging cache:",e]),this.options.logLevel=y.NONE}},y.prototype._parseLevel=function(e){var t=typeof e;if("number"===t)return e;if("string"===t){var i=e.toUpperCase();if(Object.prototype.hasOwnProperty.call(y,i))return y[i]}throw new Error(`Unknown log level: ${e}`)},y.prototype.emit=function(e,t,i){var s=this;return t=t||s.options.defaultNamespace,e&&i?((e=s._parseLevel(e))>=s.options.logLevel&&s._addToCache(e,t,i),s.consoleLogger&&e>=s.options.consoleLevel&&s._emitToConsole(e,t,i),s):s},y.prototype._addToCache=function(e,t,i){this._emitToConsole("debug","MetricsLogger",["_addToCache:",arguments,this.options.addTime,this.cache.length()]);var s=this;try{var n=s.cache.add(s._buildEntry(e,t,i));n>=s._postSize&&s._postCache()}catch(e){s._emitToConsole("warn","MetricsLogger",["Metrics logger could not stringify logArguments:",t,i]),s._emitToConsole("error","MetricsLogger",[e])}return s},y.prototype._buildEntry=function(e,t,i){this._emitToConsole("debug","MetricsLogger",["_buildEntry:",arguments]);var s={level:e,namespace:this.options.clientPrefix+t,args:i};return this.options.addTime&&(s.time=(new Date).toISOString()),s},y.prototype._postCache=function(e){if(e=e||{},this._emitToConsole("info","MetricsLogger",["_postCache",e,this._postSize]),!this.options.postUrl||this._sending)return r().when({});var t=this,i=e.count||t._postSize,s=t.cache.get(i),n=s.length,o="function"==typeof t.options.getPingData?t.options.getPingData():{};return o.metrics=JSON.stringify(s),t._sending=!0,r().post(t.options.postUrl,o).always((()=>{t._sending=!1})).fail(((e,i,s)=>{t._postSize=t.options.maxCacheSize,t.emit("error","MetricsLogger",["_postCache error:",e.readyState,e.status,e.responseJSON||e.responseText])})).done((e=>{"function"==typeof t.options.onServerResponse&&t.options.onServerResponse(e),t.cache.remove(n),t._postSize=t.options.postSize}))},y.prototype._delayPost=function(){var e=this;e._waiting=window.setTimeout((()=>{e._waiting=null}),e.options.delayPostInMs)},y.prototype._emitToConsole=function(e,t,i){var s=this,n=s.options.consoleNamespaceWhitelist;if(!s.consoleLogger)return s;if(n&&-1===n.indexOf(t))return s;var o=Array.prototype.slice.call(i,0);return o.unshift(t),s.options.consoleFlattenMessages&&(o=[o.map(b).join(" ")]),e>=y.METRIC&&"function"==typeof s.consoleLogger.info?s.consoleLogger.info.apply(s.consoleLogger,o):e>=y.ERROR&&"function"==typeof s.consoleLogger.error?s.consoleLogger.error.apply(s.consoleLogger,o):(e>=y.WARN&&"function"==typeof s.consoleLogger.warn?s.consoleLogger.warn.apply(s.consoleLogger,o):e>=y.INFO&&"function"==typeof s.consoleLogger.info?s.consoleLogger.info.apply(s.consoleLogger,o):e>=y.DEBUG&&"function"==typeof s.consoleLogger.debug?s.consoleLogger.debug.apply(s.consoleLogger,o):"function"==typeof s.consoleLogger.log&&s.consoleLogger.log.apply(s.consoleLogger,o),s)},y.prototype.log=function(){this.emit(1,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},y.prototype.debug=function(){this.emit(y.DEBUG,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},y.prototype.info=function(){this.emit(y.INFO,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},y.prototype.warn=function(){this.emit(y.WARN,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},y.prototype.error=function(){this.emit(y.ERROR,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},y.prototype.metric=function(){this.emit(y.METRIC,this.options.defaultNamespace,Array.prototype.slice.call(arguments,0))},_.defaultOptions={maxSize:5e3},_.prototype._init=function(e){if(!this._hasStorage())throw new Error("LoggingCache needs localStorage");if(!e.key)throw new Error("LoggingCache needs key for localStorage");return this.key=e.key,this._initStorage(),this.maxSize=e.maxSize||_.defaultOptions.maxSize,this},_.prototype._hasStorage=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},_.prototype._initStorage=function(){return null===localStorage.getItem(this.key)?this.empty():this},_.prototype.add=function(e){var t=this,i=t._fetchAndParse(),s=i.length+1-t.maxSize;return s>0&&i.splice(0,s),i.push(e),t._unparseAndStore(i),i.length},_.prototype._fetchAndParse=function(){return JSON.parse(localStorage.getItem(this.key))},_.prototype._unparseAndStore=function(e){return localStorage.setItem(this.key,JSON.stringify(e))},_.prototype.length=function(){return this._fetchAndParse().length},_.prototype.get=function(e){return this._fetchAndParse().slice(0,e)},_.prototype.remove=function(e){var t=this._fetchAndParse(),i=t.splice(0,e);return this._unparseAndStore(t),i},_.prototype.empty=function(){return localStorage.setItem(this.key,"[]"),this},_.prototype.stringify=function(e){return JSON.stringify(this.get(e))},_.prototype.print=function(){console.log(JSON.stringify(this._fetchAndParse(),null," "))};const w={MetricsLogger:y,LoggingCache:_};var x=i(38944);function C(e={},t={}){this._init(e,t)}n(C,"GalaxyApp");const S="galaxy:debug",k="galaxy:debug:namespaces",T="galaxy:debug:flatten";let $=!1;try{$="true"==localStorage.getItem(S)}catch(e){console.log((0,u.NC)("localStorage not available for debug flag retrieval"))}C.prototype._init=function(e,t){l.default.extend(this,d().Events),$&&(this.logger=console,console.debug("debugging galaxy:","options:",e,"bootstrapped:",t)),this._processOptions(e),this._initConfig(e.config||{});const i=A();return i&&this._patchGalaxy(i),this.root=e.root||"/",this.params=e.params||{},this.session_csrf_token=e.session_csrf_token||null,this._initLogger(this.options.loggerOptions||{}),this.debug("GalaxyApp.options: ",this.options),this.debug("GalaxyApp.config: ",this.config),this.debug("GalaxyApp.logger: ",this.logger),this._initLocale(),this.debug("GalaxyApp.localize: ",this.localize),this.config=e.config||{},this.debug("GalaxyApp.config: ",this.config),this._initUser(e.user||{}),this.debug("GalaxyApp.user: ",this.user),(0,u.Dx)(this.user,this.config),(0,u.JE)(),this.debug("currentLocale: ",sessionStorage.getItem("currentLocale")),this._setUpListeners(),this.trigger("ready",this),this.data={},this.data.create=x.Ue,this.data.dialog=x.WZ,this},C.prototype.defaultOptions={patchExisting:!0,root:"/",session_csrf_token:null},C.prototype._processOptions=function(e){const t=this.defaultOptions;this.options={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(this.options[i]=Object.prototype.hasOwnProperty.call(e,i)?e[i]:t[i]);return this},C.prototype._initConfig=function(e){return this.config=e,this.config.debug=$||this.config.debug,this},C.prototype._patchGalaxy=function(e){if(this.options.patchExisting&&e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t])},C.prototype._initLogger=function(e){if(this.config.debug){e.consoleLogger=e.consoleLogger||console,e.consoleLevel=e.consoleLevel||w.MetricsLogger.ALL;try{e.consoleNamespaceWhitelist=localStorage.getItem(k).split(",")}catch(e){console.debug(e)}try{e.consoleFlattenMessages="true"==localStorage.getItem(T)}catch(e){console.debug(e)}console.log(e.consoleFlattenMessages)}return this.logger=new w.MetricsLogger(e),this.emit={},["log","debug","info","warn","error","metric"].map((e=>{this.emit[e]=t=>{this.logger.emit(e,arguments[0],Array.prototype.slice.call(arguments,1))}})),this.config.debug&&(f.LoggableMixin.logger=this.logger),this},C.prototype._initLocale=function(e){return this.debug("_initLocale:",e),this.localize=u.NC,window._l=this.localize,this},C.prototype._initUserLocale=function(e){const t=!(!this.config.default_locale||"auto"==this.config.default_locale)&&this.config.default_locale.toLowerCase();let i={};this.user&&this.user.attributes.preferences&&"extra_user_preferences"in this.user.attributes.preferences&&(i=JSON.parse(this.user.attributes.preferences.extra_user_preferences));let s="localization|locale"in i&&i["localization|locale"].toLowerCase();"auto"==s&&(s=!1);const n="undefined"==typeof navigator?"__root":(navigator.language||navigator.userLanguage||"__root").toLowerCase(),o=s||n||t;sessionStorage.setItem("currentLocale",o)},C.prototype._initUser=function(e){return this.debug("_initUser:",e),this.user=new v.User(e),this.user.logger=this.logger,this},C.prototype._setUpListeners=function(){return this.lastAjax={},r()(document).bind("ajaxSend",((e,t,i)=>{let s=i.data;try{s=JSON.parse(s)}catch(e){}this.lastAjax={url:location.href.slice(0,-1)+i.url,data:s}})),this},C.prototype.debugging=function(e){try{if(void 0===e)return"true"===localStorage.getItem(S);if(e)return localStorage.setItem(S,!0),!0;localStorage.removeItem(S),this.debuggingNamespaces(null)}catch(e){console.log((0,u.NC)("localStorage not available for debug flag retrieval"))}return!1},C.prototype.debuggingNamespaces=function(e){try{if(void 0===e){const e=localStorage.getItem(k);return"string"==typeof e?e.split(","):[]}null===e?localStorage.removeItem(k):localStorage.setItem(k,e);const t=this.debuggingNamespaces();return this.logger&&(this.logger.options.consoleNamespaceWhitelist=t),t}catch(e){console.log((0,u.NC)("localStorage not available for debug namespace retrieval"))}},C.prototype.toString=function(){return`GalaxyApp(${this.user?this.user.get("email")||"(anonymous)":"uninitialized"})`};var D=i(31207);function E(e){1==!o.Z.testBuild&&console.warn("setGalaxyInstance",(0,D.H)());const t=P();let i=e(C);return i instanceof C||(i=new C(i)),void 0===i.debug&&n(i,"GalaxyApp"),t._galaxyInstance=i,t._galaxyInstance}function A(){return P()._galaxyInstance}function P(){return window}const L={root:(0,m.getAppRoot)(),config:{}};window.Galaxy?console.debug("Skipping, window.Galaxy already exists.",(0,D.H)()):Object.defineProperty(window,"Galaxy",{enumerable:!0,get:function(){return 1==!o.Z.testBuild&&console.warn("accessing (get) window.Galaxy",(0,D.H)()),A&&A()||L},set:function(e){console.warn("accessing (set) window.Galaxy",(0,D.H)()),E(e)}}),window.Galaxy},60113:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LegacyGridView:()=>_,ToolshedGroups:()=>A,store:()=>L()});var s=i(55806),n=i.n(s),o=i(59050),a=i(72316),r=i.n(a),l=i(45484),c=i(72316),d=i(59050),u=i(55806);const h=c.Model.extend({defaults:{url_base:"",async:!1,async_ops:[],categorical_filters:[],filters:{},sort_key:null,show_item_checkboxes:!1,advanced_search:!1,cur_page:1,num_pages:1,operation:void 0,item_ids:void 0},can_async_op:function(e){return-1!==d.indexOf(this.attributes.async_ops,e)},add_filter:function(e,t,i){if(i){var s,n=this.attributes.filters[e];if(null==n)s=t;else if("string"==typeof n)if("All"==n||n==t)s=t;else{var o=[];o[0]=n,o[1]=t,s=o}else-1===(s=n).indexOf(t)&&s.push(t);this.attributes.filters[e]=s}else this.attributes.filters[e]=t},remove_filter:function(e,t){var i=this.attributes.filters[e];if(null==i)return!1;if("string"==typeof i)this.attributes.filters[e]="";else{var s=d.indexOf(i,t);-1!==s&&(i[s]="")}},get_url_data:function(){var e={async:this.attributes.async,sort:this.attributes.sort_key,page:this.attributes.cur_page,show_item_checkboxes:this.attributes.show_item_checkboxes,advanced_search:this.attributes.advanced_search};return this.attributes.operation&&(e.operation=this.attributes.operation),this.attributes.item_ids&&(e.id=this.attributes.item_ids),d.each(d.pairs(this.attributes.filters),(t=>{e[`f-${t[0]}`]=t[1]})),e},get_url:function(e){return`${this.get("url_base")}?${u.param(this.get_url_data())}&${u.param(e)}`}});var p=i(55806),f=i(59050);const m={grid:function(e){var t="";return t=e.embedded?this.grid_header(e)+this.grid_table(e):`<div class="loading-elt-overlay"></div><table><tr><td width="75%">${this.grid_header(e)}</td><td></td><td></td></tr><tr><td width="100%" id="grid-message" valign="top"></td><td></td><td></td></tr></table>${this.grid_table(e)}`,e.info_text&&(t+=`<br><div class="toolParamHelp" style="clear: both;">${e.info_text}</div>`),t},grid_table:function(){return'\n <form method="post" onsubmit="return false;">\n <table id="grid-table" class="grid">\n <thead id="grid-table-header"></thead>\n <tbody id="grid-table-body"></tbody>\n <tfoot id="grid-table-footer"></tfoot>\n </table>\n </form>'},grid_header:function(e){var t='<div class="grid-header">';if(e.embedded||(t+=`<h2>${e.title}</h2>`),e.global_actions){t+='<ul class="manage-table-actions">';var i=e.global_actions.length>=3;i&&(t+='<li><a class="action-button" id="popup-global-actions" class="menubutton">Actions</a></li><div popupmenu="popup-global-actions">');for(let i of e.global_actions)t+=`<li><a class="action-button use-target" target="${i.target}" href="${i.url_args}" onclick="return false;" >${i.label}</a></li>`;i&&(t+="</div>"),t+="</ul>"}return e.insert&&(t+=e.insert),(t+=this.grid_filters(e))+"</div>"},header:function(e){var t="<tr>";e.show_item_checkboxes&&(t+="<th>",e.items.length>0&&(t+='<input type="checkbox" id="check_all" name=select_all_checkbox value="true"><input type="hidden" name=select_all_checkbox value="true">'),t+="</th>");for(let i of e.columns)i.visible&&(t+=`<th id="${i.key}-header">`,i.href?t+=`<a href="${i.href}" class="sort-link" sort_key="${i.key}">${i.label}</a>`:t+=i.label,t+=`<span class="sort-arrow">${i.extra}</span></th>`);return t+"</tr>"},body:function(e){var t="";0===e.items.length&&(t+='<tr><td colspan="100"><em>No items</em></td></tr>');for(let c of e.items){t+="<tr ",e.current_item_id==c.id&&(t+='class="current"'),t+=">",e.show_item_checkboxes&&(t+=`<td style="width: 1.5em;"><input type="checkbox" name="id" value="${c.encode_id}" id="${c.encode_id}" class="grid-row-select-checkbox" /></td>`);for(let d of e.columns)if(d.visible){var i="";d.nowrap&&(i='style="white-space:nowrap;"');var s=c.column_config[d.label],n=s.link,o=s.value,a=s.target;"string"===p.type(o)&&(o=o.replace(/\/\//g,"/"));var r="",l="";d.attach_popup&&(r=`grid-${c.encode_id}-popup`,l="menubutton",""!==n&&(l+=" split"),l+=" popup"),t+=`<td ${i}>`,n?(0!==e.operations.length&&(t+=`<div id="${r}" class="${l}" style="float: left;">`),t+=`<a class="menubutton-label use-target" target="${a}" href="${n}" onclick="return false;">${o}</a>`,0!==e.operations.length&&(t+="</div>")):t+=`<div id="${r}" class="${l}"><label id="${d.label_id_prefix}${c.encode_id}" for="${c.encode_id}">${o||""}</label></div>`,t+="</td>"}t+="</tr>"}return t},footer:function(e){var t="";if(e.use_paging&&e.num_pages>1){var i=e.num_page_links,s=e.cur_page_num,n=e.num_pages;const h=e.allow_fetching_all_results;var o=i/2,a=s-o,r=0;a<=0&&(r=o-(s-(a=1)));var l,c=o+r,d=s+c;0!=(l=d<=n?0:c-((d=n)+1-s))&&(a-=l)<1&&(a=1),t+='<tr id="page-links-row">',e.show_item_checkboxes&&(t+="<td></td>"),t+='<td colspan="100"><span id="page-link-container">Page:',a>1&&(t+='<span class="page-link" id="page-link-1"><a href="javascript:void(0);" page_num="1" onclick="return false;">1</a></span> ...');for(var u=a;u<d+1;u++)u==e.cur_page_num?t+=`<span class="page-link inactive-link" id="page-link-${u}">${u}</span>`:t+=`<span class="page-link" id="page-link-${u}"><a href="javascript:void(0);" onclick="return false;" page_num="${u}">${u}</a></span>`;d<n&&(t+=`...<span class="page-link" id="page-link-${n}"><a href="javascript:void(0);" onclick="return false;" page_num="${n}">${n}</a></span>`),t+="</span>",h&&(t+='\n <span class="page-link" id="show-all-link-span"> | <a href="javascript:void(0);" onclick="return false;" page_num="all">Show All</a></span>\n </td>\n </tr>')}if(e.show_item_checkboxes){t+='\n <tr>\n <input type="hidden" id="operation" name="operation" value="">\n <td></td>\n <td colspan="100">\n For <span class="grid-selected-count"></span> selected items: \n ';for(let i of e.operations)i.allow_multiple&&(t+=`<input type="button" value="${i.label}" class="operation-button action-button"> `);t+="</td></tr>"}var h=!1;for(let t of e.operations)if(t.global_operation){h=!0;break}if(h){t+='<tr><td colspan="100">';for(let i of e.operations)i.global_operation&&(t+=`<a class="action-button" href="${i.global_operation}">${i.label}</a>`);t+="</td></tr>"}return e.legend&&(t+=`<tr><td colspan="100">${e.legend}</td></tr>`),t},message:function(e){var t=e.status;return-1!=["success","ok"].indexOf(t)&&(t="done"),`<p><div class="${t}message transient-message">${f.escape(e.message)}</div><div style="clear: both"></div></p>`},grid_filters:function(e){var t=e.default_filter_dict,i=e.filters,s="none";e.advanced_search&&(s="block");var n=!1;for(let l of e.columns)if("advanced"==l.filterable){var o=l.key,a=i[o],r=t[o];a&&r&&a!=r&&(s="block"),n=!0}var l="block";"block"==s&&(l="none");var c=`<div id="standard-search" style="display: ${l};"><table><tr><td style="padding: 0;"><table>`;for(let t of e.columns)"standard"==t.filterable&&(c+=this.grid_column_filter(e,t));c+="</table></td></tr><tr><td>",n&&(c+='<a href="javascript:void(0)" class="advanced-search-toggle">Advanced Search</a>'),c+="</td></tr></table></div>",c+=`<div id="advanced-search" style="display: ${s}; margin-top: 5px; border: 1px solid #ccc;"><table><tr><td style="text-align: left" colspan="100"><a href="javascript:void(0)" class="advanced-search-toggle">Close Advanced Search</a></td></tr>`;for(let t of e.columns)"advanced"==t.filterable&&(c+=this.grid_column_filter(e,t));return c+"</table></div>"},grid_column_filter:function(e,t){var i=e.filters,s=t.label,n=t.key;"advanced"==t.filterable&&(s=s.toLowerCase());var o="<tr>";if("advanced"==t.filterable&&(o+=`<td align="left" style="padding-left: 10px">${s}:</td>`),o+='<td style="padding-bottom: 1px;">',t.is_text){o+=`<form class="text-filter-form" column_key="${n}" action="${e.url}" method="get" >`;for(let t of e.columns){var a=i[t.key];a&&"All"!=a&&(t.is_text&&(a=JSON.stringify(a)),o+=`<input type="hidden" id="${t.key}" name="f-${t.key}" value="${a}"/>`)}o+=`<span id="${n}-filtering-criteria">`;var r=i[n];if(r){var l=p.type(r);if("string"==l&&"All"!=r&&(o+=this.filter_element(n,r)),"array"==l)for(let e in r)r.slice(e),o+=this.filter_element(n,r[e])}o+="</span>";var c="",d=20;"standard"==t.filterable&&((c=t.label.toLowerCase()).length<20&&(d=c.length),d+=4),o+=`\n <span class="search-box">\n <input class="search-box-input" id="input-${n}-filter" name="f-${n}" type="text" placeholder="${c}" size="${d}"/>\n <button type="submit" style="background: transparent; border: none; padding: 4px; margin: 0px;">\n <i class="fa fa-search"></i>\n </button>\n </span>\n </form>`}else{o+=`<span id="${n}-filtering-criteria">`;var u=!1;for(var h in e.categorical_filters[n]){var f=e.categorical_filters[n][h],m="",g="";for(var v in f)m=v,g=f[v];u&&(o+=" | "),u=!0;var y=i[n];y&&f[n]&&y==g?o+=`<span class="categorical-filter ${n}-filter current-filter">${h}</span>`:o+=`<span class="categorical-filter ${n}-filter"><a href="javascript:void(0);" filter_key="${m}" filter_val="${g}">${h}</a></span>`}o+="</span>"}return o+"</td></tr>"},filter_element:function(e,t){return`<span class="text-filter-val">${t=l.ZP.sanitize(t)}<a href="javascript:void(0);" filter_key="${e}" filter_val="${t}"><i class="fa fa-times" style="padding-left: 5px; padding-bottom: 6px;"/></a></span>`}},g=r().View.extend({initialize:function(e,t){this.$button=e,this.$button.length||(this.$button=n()("<div/>")),this.options=t||[],this.$button.data("popupmenu",this),this.$button.click((e=>(n()(".popmenu-wrapper").remove(),this._renderAndShow(e),!1)))},_renderAndShow:function(e){this.render(),this.$el.appendTo("body").css(this._getShownPosition(e)).show(),this._setUpCloseBehavior()},render:function(){return this.$el.addClass("popmenu-wrapper").hide().css({position:"absolute"}).html(this.template(this.$button.attr("id"),this.options)),this.options.length&&this.$(".popupmenu-option").each(((e,t)=>{const i=this.options[e];i.func&&n()(t).click((e=>{i.func.call(this,e,i),e.preventDefault()}))})),this},template:function(e,t){return`<div id="${e}-menu" class="dropdown-menu ${e}-menu">\n ${this._templateOptions(t)}\n </div>`},_templateOptions:function(e){return e.length?o.default.map(e,(e=>{if(e.divider)return'<div class="popupmenu-option dropdown-divider"/>';if(e.header)return`<div class="popupmenu-option dropdown-header">${e.html}</div>`;const t=e.href||"javascript:void(0);",i=e.target?`target="${e.target}"`:"",s=e.checked?'<span class="fa fa-check mr-1"/>':"";return`<a class="popupmenu-option dropdown-item" href="${t}" ${e.title?`title="${e.title}"`:""} ${i}>${s}${e.html}</a>`})).join(""):'<div class="dropdown-header">(no options)</div>'},_getShownPosition:function(e){const t=this.$el.width();let i=e.pageX-t/2;return i=Math.min(i,n()(document).scrollLeft()+n()(window).width()-t-5),i=Math.max(i,n()(document).scrollLeft()+5),{top:e.pageY,left:i}},_setUpCloseBehavior:function(){const e=e=>{if(!e.target.classList.contains("dropdown-header")){n()(document).off("click.close_popup");try{window&&window.parent!==window?n()(window.parent.document).off("click.close_popup"):n()("iframe#galaxy_main").contents().off("click.close_popup")}catch(e){e instanceof DOMException?console.debug("Error clearing parent popups, likely cross-origin frame access from the toolshed and not problematic."):console.debug(e)}this.remove()}};n()("html").on("click.close_popup",e);try{window&&window.parent!==window?n()(window.parent.document).find("html").on("click.close_popup",e):n()("iframe#galaxy_main").contents().on("click.close_popup",e)}catch(e){e instanceof DOMException?console.debug("Error clearing parent popups, likely cross-origin frame access from the toolshed and not problematic."):console.debug(e)}},addItem:function(e,t){return t=t>=0?t:this.options.length,this.options.splice(t,0,e),this},removeItem:function(e){return e>=0&&this.options.splice(e,1),this},findIndexByHtml:function(e){for(let t=0;t<this.options.length;t++)if(o.default.has(this.options[t],"html")&&this.options[t].html===e)return t;return null},findItemByHtml:function(e){return this.options[this.findIndexByHtml(e)]},toString:function(){return"PopupMenu"}});g.create=function(e,t){return new g(e,t)};const v=g;var y=i(20050);n().ajaxSettings.traditional=!0;var b=n();const _=r().View.extend({grid:null,initialize:function(e){this.grid=new h,this.dict_format=e.dict_format,this.title=e.title,this.title_id=e.title_id;var t=this;if(window.add_tag_to_grid_filter=(e,i)=>{var s=e+(void 0!==i&&""!==i?`:${i}`:"");b("#advanced-search").is(":visible")||(b("#standard-search").slideToggle("fast"),b("#advanced-search").slideToggle("fast")),t.add_filter_condition("tags",s)},this.dict_format)if(this.setElement("<div/>"),e.url_base&&!e.items){var i=e.url_data||{};o.default.each(e.filters,((e,t)=>{i[`f-${t}`]=e})),b.ajax({url:`${e.url_base}?${b.param(i)}`,success:function(i){i.embedded=e.embedded,i.filters=e.filters||{},t.init_grid(i)}})}else this.init_grid(e);else this.setElement("#grid-container"),this.init_grid(e);e.use_panels&&b("#center").css({padding:"10px",overflow:"auto"})},handle_refresh:function(e){e&&b.inArray("history",e)>-1&&window.top.Galaxy&&window.top.Galaxy.currHistoryPanel&&window.top.Galaxy.currHistoryPanel.loadCurrentHistory()},init_grid:function(e){this.grid.set(e);var t=this.grid.attributes;this.allow_title_display&&t.title&&l.ZP.setWindowTitle(t.title),this.handle_refresh(t.refresh_frames);var i=this.grid.get("url_base");if(i=i.replace(/^.*\/\/[^\/]+/,""),this.grid.set("url_base",i),this.$el.html(m.grid(t)),this.$el.find("#grid-table-header").html(m.header(t)),this.$el.find("#grid-table-body").html(m.body(t)),this.$el.find("#grid-table-footer").html(m.footer(t)),t.message){this.$el.find("#grid-message").html(m.message(t));var s=this;t.use_hide_message&&setTimeout((()=>{s.$el.find("#grid-message").html("")}),5e3)}this.init_grid_elements(),this.init_grid_controls(),(0,y.L)()},init_grid_controls:function(){var e=this;this.$el.find(".operation-button").each((function(){b(this).off(),b(this).click((function(){return e.submit_operation(this),!1}))})),this.$el.find("input[type=text]").each((function(){b(this).off(),b(this).click((function(){b(this).select()})).keyup((function(){b(this).css("font-style","normal")}))})),this.$el.find(".sort-link").each((function(){b(this).off(),b(this).click((function(){return e.set_sort_condition(b(this).attr("sort_key")),!1}))})),this.$el.find(".text-filter-form").each((function(){b(this).off(),b(this).submit((function(){var t=b(this).attr("column_key"),i=b(`#input-${t}-filter`),s=i.val();return i.val(""),e.add_filter_condition(t,s),!1}))})),this.$el.find(".text-filter-val > a").each((function(){b(this).off(),b(this).click((function(){return b(this).parent().remove(),e.remove_filter_condition(b(this).attr("filter_key"),b(this).attr("filter_val")),!1}))})),this.$el.find(".categorical-filter > a").each((function(){b(this).off(),b(this).click((function(){return e.set_categorical_filter(b(this).attr("filter_key"),b(this).attr("filter_val")),!1}))})),this.$el.find(".advanced-search-toggle").each((function(){b(this).off(),b(this).click((()=>(e.$el.find("#standard-search").slideToggle("fast"),e.$el.find("#advanced-search").slideToggle("fast"),!1)))})),this.$el.find("#check_all").off(),this.$el.find("#check_all").on("click",(()=>{e.check_all_items()}))},init_grid_elements:function(){this.$el.find(".grid").each((function(){var e=b(this).find("input.grid-row-select-checkbox"),t=b(this).find("span.grid-selected-count"),i=()=>{t.text(b(e).filter(":checked").length)};b(e).each((function(){b(this).change(i)})),i()})),0!==this.$el.find(".community_rating_star").length&&this.$el.find(".community_rating_star").rating({});var e=this.grid.attributes,t=this;this.$el.find(".page-link > a").each((function(){b(this).click((function(){return t.set_page(b(this).attr("page_num")),!1}))})),this.$el.find(".use-target").each((function(){b(this).click((function(){return t.execute({href:b(this).attr("href"),target:b(this).attr("target")}),!1}))})),0!==e.items.length&&o.default.each(e.items,((i,s)=>{var n=t.$(`#grid-${i.encode_id}-popup`).off(),a=new v(n);o.default.each(e.operations,(e=>{t._add_operation(a,e,i)}))}))},_add_operation:function(e,t,i){var s=this,n=i.operation_config[t.label];n.allowed&&t.allow_popup&&e.addItem({html:t.label,href:n.url_args,target:n.target,confirmation_text:t.confirm,func:function(e){e.preventDefault();var n=b(e.target).html();t.onclick?t.onclick(i.encode_id):s.execute(this.findItemByHtml(n))}})},add_filter_condition:function(e,t){if(""===t)return!1;this.grid.add_filter(e,t,!0);var i=b(m.filter_element(e,t)),s=this;i.click((function(){b(this).remove(),s.remove_filter_condition(e,t)})),this.$el.find(`#${e}-filtering-criteria`).append(i),this.go_page_one(),this.execute()},remove_filter_condition:function(e,t){this.grid.remove_filter(e,t),this.go_page_one(),this.execute()},set_sort_condition:function(e){var t=this.grid.get("sort_key"),i=e;-1!==t.indexOf(e)&&"-"!==t.substring(0,1)&&(i=`-${e}`),this.$el.find(".sort-arrow").remove();var s="-"==i.substring(0,1)?"↑":"↓",n=b(`<span>${s}</span>`).addClass("sort-arrow");this.$el.find(`#${e}-header`).append(n),this.grid.set("sort_key",i),this.go_page_one(),this.execute()},set_categorical_filter:function(e,t){var i=this.grid.get("categorical_filters")[e],s=this.grid.get("filters")[e],n=this;this.$el.find(`.${e}-filter`).each((function(){var o=b.trim(b(this).text()),a=i[o][e];if(a==t)b(this).empty(),b(this).addClass("current-filter"),b(this).append(o);else if(a==s){b(this).empty();var r=b(`<a href="javascript:void(0)" role="button">${o}</a>`);r.click((()=>{n.set_categorical_filter(e,a)})),b(this).removeClass("current-filter"),b(this).append(r)}})),this.grid.add_filter(e,t),this.go_page_one(),this.execute()},set_page:function(e){var t=this;this.$el.find(".page-link").each((function(){var i,s=b(this).attr("id"),n=parseInt(s.split("-")[2],10),o=t.grid.get("cur_page");if(n===e)i=b(this).children().text(),b(this).empty(),b(this).addClass("inactive-link"),b(this).text(i);else if(n===o){i=b(this).text(),b(this).empty(),b(this).removeClass("inactive-link");var a=b(`<a href="javascript:void(0)" role="button">${i}</a>`);a.click((()=>{t.set_page(n)})),b(this).append(a)}})),"all"===e?this.grid.set("cur_page",e):this.grid.set("cur_page",parseInt(e,10)),this.execute()},submit_operation:function(e,t){var i=b(e).val();if(this.$el.find('input[name="id"]:checked').length<1)return!1;var s=o.default.findWhere(this.grid.attributes.operations,{label:i});s&&!t&&(t=s.confirm||"");var n=[];this.$el.find("input[name=id]:checked").each((function(){n.push(b(this).val())}));var a={operation:i,id:n,confirmation_text:t};return"top"!=s.target&&"center"!=s.target||(a=o.default.extend(a,{href:s.href,target:s.target})),this.execute(a),!0},check_all_items:function(){var e=this.$(".grid-row-select-checkbox"),t=this.$("#check_all").prop("checked");o.default.each(e,(e=>{b(e).prop("checked",t)})),this.init_grid_elements()},go_page_one:function(){var e=this.grid.get("cur_page");null!=e&&"all"!==e&&this.grid.set("cur_page",1)},execute:function(e){var t=null,i=null,s=null,n=null,o=null;if(e&&(i=e.href,s=e.operation,t=e.id,n=e.confirmation_text,o=e.target,void 0!==i&&-1!=i.indexOf("operation="))){var a=i.split("?");if(a.length>1)for(var r=a[1].split("&"),l=0;l<r.length;l++)-1!=r[l].indexOf("operation")?s=(s=r[l].split("=")[1]).replace(/\+/g," "):-1!=r[l].indexOf("id")&&(t=r[l].split("=")[1])}return s&&t?(n&&""!==n&&"None"!=n&&"null"!=n&&!confirm(n)||(s=s.toLowerCase(),this.grid.set({operation:s,item_ids:t}),"top"==o?window.top.location=`${i}?${b.param(this.grid.get_url_data())}`:"center"==o?b("#galaxy_main").attr("src",`${i}?${b.param(this.grid.get_url_data())}`):this.grid.can_async_op(s)||this.dict_format?this.update_grid():this.go_to(o,i)),!1):i?(this.go_to(o,i),!1):(this.grid.get("async")||this.dict_format?this.update_grid():this.go_to(o,i),!1)},go_to:function(e,t){var i=this.grid.get("async");this.grid.set("async",!1);var s=this.$el.find("#advanced-search").is(":visible");switch(this.grid.set("advanced_search",s),t||(t=`${this.grid.get("url_base")}?${b.param(this.grid.get_url_data())}`),this.grid.set({operation:void 0,item_ids:void 0,async:i}),e){case"center":b("#galaxy_main").attr("src",t);break;case"top":window.top.location=t;break;default:window.location=t}},update_grid:function(){var e=this.grid.get("operation")?"POST":"GET";this.$el.find(".loading-elt-overlay").show();var t=this;b.ajax({type:e,url:t.grid.get("url_base"),data:t.grid.get_url_data(),error:function(){alert("Grid refresh failed")},success:function(e){var i=t.grid.get("embedded"),s=t.grid.get("insert"),n=t.$el.find("#advanced-search").is(":visible"),o=t.dict_format?e:b.parseJSON(e);o.embedded=i,o.insert=s,o.advanced_search=n,t.init_grid(o),t.$el.find(".loading-elt-overlay").hide()},complete:function(){t.grid.set({operation:void 0,item_ids:void 0})}})}});var w=i(8901);const x=i.n(w)();var C=i(62352);const S=r().Model.extend({urlRoot:`${(0,C.getAppRoot)()}api/groups`}),k={Group:S,Groups:r().Collection.extend({url:`${(0,C.getAppRoot)()}api/groups`,model:S})},T={GroupListRowView:r().View.extend({events:{},initialize:function(e){this.render(e.group)},render:function(e){const t=this.templateRow();return this.setElement(t({group:e})),this.$el.show(),this},templateRow:function(){return o.default.template(['<tr class="" data-id="<%- group.get("id") %>">','<td><a href="groups#/<%= group.get("id") %>"><%= _.escape(group.get("name")) %></a></td>','<td><%= group.get("total_members") %></td>','<td><%= group.get("total_repos") %></td>',"</tr>"].join(""))}})},$={GroupListView:r().View.extend({el:"#groups_element",defaults:{},initialize:function(e){this.options=o.default.defaults(this.options||{},this.defaults,e);const t=this;window.globalTS.groups.collection=new k.Groups,window.globalTS.groups.collection.fetch({success:function(e){t.render()},error:function(e,t){void 0!==t.responseJSON?x.error(t.responseJSON.err_msg):x.error("An error occurred.")}})},fetch:function(){},render:function(e){this.options=o.default.extend(this.options,e),n()(".tooltip").hide();const t=this.templateGroupsList();this.$el.html(t({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),n()('#center [data-toggle="tooltip"]').tooltip({trigger:"hover"}),n()("#center").css("overflow","auto")},renderRows:function(e){for(let t=0;t<e.length;t++){const i=e[t];this.renderOne({group:i})}},renderOne:function(e){const t=new T.GroupListRowView(e);this.$el.find("#group_list_body").append(t.el)},templateGroupsList:function(){const e=[];return e.push('<div id="groups">'),e.push("</div>"),e.push('<div class="groups_container table-responsive">'),e.push("<% if(length === 0) { %>"),e.push("<div>There are no groups yet.</div>"),e.push("<% } else{ %>"),e.push('<table class="grid table table-sm">'),e.push(" <thead>"),e.push(" <th>Name</th>"),e.push(" <th>Members</th> "),e.push(" <th>Repositories</th>"),e.push(" </thead>"),e.push(' <tbody id="group_list_body">'),e.push(" </tbody>"),e.push("</table>"),e.push("<% }%>"),e.push("</div>"),o.default.template(e.join(""))}})},D={GroupDetailView:r().View.extend({el:"#groups_element",options:{},app:null,initialize:function(e){this.options=o.default.extend(this.options,e),this.app=window.globalTS.groups,null!==this.app.collection?(this.model=this.app.collection.get(this.options.group_id),this.render()):this.fetchGroup()},fetchGroup:function(e){const t=this;this.options=o.default.extend(this.options,e),this.model=new k.Group({id:this.options.group_id}),this.model.fetch({success:function(e){console.log("received data: "),console.log(e),t.render()},error:function(e,t){void 0!==t.responseJSON?x.error(t.responseJSON.err_msg):x.error("An error occurred.")}})},render:function(){const e=this.templateRow();this.$el.html(e({group:this.model})),n()('#center [data-toggle="tooltip"]').tooltip({trigger:"hover"}),n()("#center").css("overflow","auto")},templateRow:function(){return o.default.template(["<div>",'<h3><%= _.escape(group.get("name")) %></h3>','<p class="" style="color:gray;">','A group of <%= group.get("members").length %> members with <%= group.get("repositories").length %> repositories and a total of <%= group.get("total_downloads") %> combined repository clones.</p>',"<h3>Members</h3>",'<table class="grid table table-sm">',"<thead>","<th>Name</th>","<th>Repositories</th>","<th>Registered</th>","</thead>","<tbody>",'<% _.each(group.get("members"), function(member) { %>',"<tr>","<td>","<%= _.escape(member.username) %>","</td>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Repositories of <%= _.escape(member.username) %>" href="/repository/browse_repositories_by_user?user_id=<%= member.id %>&use_panels=true" id="<%= member.id %>"><%= member.user_repos_count %></a>',"</td>","<td>","<%= member.time_created %>","</td>","</tr>","<% }); %>","</tbody>","</table>","<h3>Repositories</h3>",'<table class="grid table table-sm">',"<thead>","<th>Name</th>","<th>Description</th>","<th>Clones</th>","<th>Owner</th>","<th>Categories</th>","<th>Created</th>","<th>Updated</th>","<th>Rating</th>","<th>Verified</th>","</thead>","<tbody>",'<% _.each(group.get("repositories"), function(repo) { %>',"<tr>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Details of <%= _.escape(repo.name) %>" href="/view/<%= _.escape(repo.owner) %>/<%= _.escape(repo.name) %>" id="<%= repo.id %>"><%= _.escape(repo.name) %></a>',"</td>","<td>","<%= _.escape(repo.description) %>","</td>","<td>","<%= repo.times_downloaded %>","</td>","<td>","<%= _.escape(repo.owner) %>","</td>","<td>","<% _.each((repo.categories), function(cat) { %>",'<a data-toggle="tooltip" data-placement="top" title="Repositories in <%= cat.name %>" href="/repository/browse_repositories_in_category?id=<%= cat.id %>&use_panels=true"><%= cat.name %></a><br/>',"<% }); %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_created_full %>">',"<%= repo.time_created %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_updated_full %>">',"<%= repo.time_updated %>","</td>","<td>","<%= repo.ratings_mean %>","</td>","<td>","<%= repo.approved %>","</td>","</tr>","<% }); %>","</tbody>","</table>","</div>"].join(""))}})},E=r().Router.extend({routes:{"":"groups",":group_id":"group_page"}}),A={ToolshedGroups:r().View.extend({groupListView:null,groupDetailView:null,collection:null,initialize:function(){window.globalTS.groups=this,this.ts_router=new E,this.ts_router.on("route:groups",(()=>{window.globalTS.groups.groupListView=new $.GroupListView})),this.ts_router.on("route:group_page",(e=>{window.globalTS.groups.groupDetailView=new D.GroupDetailView({group_id:e})})),r().history.start({pushState:!1})}})};var P=i(79546),L=i.n(P)},8199:(e,t,i)=>{"use strict";i.d(t,{B:()=>s});class s{constructor(e){this.root=e,this.navigation=[]}getUrl(e){if(e)this.navigation.push(e);else{this.navigation.pop();const t=this.navigation.length;e=t>0?this.navigation[t-1]:this.root}return e}atRoot(){return 0==this.navigation.length}}},49612:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var s=i(82601),n=i(29547);const o=n._.path("/api/datatypes/types_and_mapping").method("get").create();function a(e=!0){return t=this,i=void 0,a=function*(){const t=yield function(e=!0){return t=this,i=void 0,n=function*(){return(yield o({upload_only:e})).data},new((s=void 0)||(s=Promise))((function(e,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function r(e){try{l(n.throw(e))}catch(e){o(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(a,r)}l((n=n.apply(t,i||[])).next())}));var t,i,s,n}(e);return new s.c(t)},new((n=void 0)||(n=Promise))((function(e,s){function o(e){try{l(a.next(e))}catch(e){s(e)}}function r(e){try{l(a.throw(e))}catch(e){s(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(e){e(i)}))).then(o,r)}l((a=a.apply(t,i||[])).next())}));var t,i,n,a}},94422:(e,t,i)=>{"use strict";i.d(t,{c:()=>g});var s=i(70538),n=i(57404),o=i(28195),a=i(66747),r=i(8199);const l=(e,t)=>function(e,t){return e!==t&&t.startsWith(e)}(c(e),c(t));function c(e){return e.endsWith("/")?e:e+"/"}var d=i(7680);class u{constructor(e={}){this.values={},this.multiple=e.multiple||!1}add(e){this.multiple||(this.values={});const t=e&&e.id;if(!t)throw"Invalid record with no <id>.";this.values[t]?delete this.values[t]:this.values[t]=e}count(){return Object.keys(this.values).length}exists(e){return!!this.values[e]}pathExists(e){return Object.values(this.values).some((t=>l(e,t.url)))}unselectUnderPath(e){Object.keys(this.values).forEach((t=>{l(e,this.values[t].url)&&delete this.values[t]}))}finalize(){let e=[];return Object.values(this.values).forEach((t=>{e.push(t)})),e.length>0&&!this.multiple&&(e=e[0]),e}}var h=i(57810),p=i(9382),f=i(51436);p.vI.add(f.Uu6);const m={components:{FontAwesomeIcon:h.GN},mixins:[o.Z],props:{multiple:{type:Boolean,default:!1},mode:{type:String,default:"file",validator:e=>["file","directory"].includes(e)},requireWritable:{type:Boolean,default:!1}},data:()=>({allSelected:!1,selectedDirectories:[],errorMessage:null,filter:null,items:[],modalShow:!0,optionsShow:!1,undoShow:!1,hasValue:!1,showTime:!0,showDetails:!0,isBusy:!1,currentDirectory:void 0,showFTPHelper:!1,selectAllIcon:a.L.unselected,ftpUploadSite:(0,n.Bz)()?.config?.ftp_upload_site,oidcEnabled:(0,n.Bz)()?.config?.enable_oidc}),computed:{fileMode(){return"file"==this.mode}},created:function(){this.services=new d.K,this.urlTracker=new r.B(""),this.model=new u({multiple:this.multiple}),this.load()},methods:{formatRows(){const e=(e,t)=>e?a.L.selected:this.model.pathExists(t)?a.L.mixed:a.L.unselected;this.hasValue=this.model.count()>0||this.selectedDirectories.length>0;for(const t of this.items){let i="active";t.isLeaf||!this.fileMode?i=this.model.exists(t.id)?"success":"default":t.isLeaf||(i=e(this.isDirectorySelected(t.id),t.url)),s.default.set(t,"_rowVariant",i)}this.allSelected=this.checkIfAllSelected(),this.currentDirectory.url&&(this.selectAllIcon=e(this.allSelected,this.currentDirectory.url))},clicked:function(e){this.fileMode&&(e.isLeaf?this.selectLeaf(e):this.urlTracker.atRoot()?this.open(e):this.selectDirectory(e),this.formatRows())},unselectPath(e,t=!1,i){this.selectedDirectories=this.selectedDirectories.filter((s=>{if(i===s.id)return!1;let n;return n=t?l(s.url,e):l(s.url,e)||l(e,s.url),!n})),t||this.model.unselectUnderPath(e)},selectLeaf(e,t=!1){const i=this.model.exists(e.id);i&&this.unselectPath(e.url,!0),t&&i||this.model.add(e),this.hasValue=this.model.count()>0,this.multiple?this.formatRows():this.finalize()},selectDirectory(e){if(this.isDirectorySelected(e.id)||this.model.pathExists(e.url))this.unselectPath(e.url,!1,e.id);else{this.selectedDirectories.push(e);const t=!0;this.isBusy=!0,this.services.list(e.url,t).then((e=>{e.forEach((e=>{const t=this.parseItemFileMode(e);t.isLeaf?this.selectLeaf(t,!0):this.selectedDirectories.push(t)})),this.isBusy=!1}))}},isDirectorySelected(e){return this.selectedDirectories.some((({id:t})=>t===e))},open:function(e){this.load(e)},finalize:function(){const e=this.model.finalize();this.modalShow=!1,this.callback(e)},checkIfAllSelected(){const e=this.items.length&&this.items.every((({id:e})=>this.model.exists(e)||this.isDirectorySelected(e)));return e&&!this.isDirectorySelected(this.currentDirectory.id)&&this.selectedDirectories.push(this.currentDirectory),e},toggleSelectAll:function(){const e=this.model.pathExists(this.currentDirectory.url);for(const t of this.items)e?(this.model.exists(t.id)||this.model.pathExists(t.id))&&(t.isLeaf?this.model.add(t):this.selectDirectory(t)):t.isLeaf?this.model.add(t):this.selectDirectory(t);e||0===this.items.length?this.isDirectorySelected(this.currentDirectory.id)&&this.selectDirectory(this.currentDirectory):this.selectedDirectories.push(this.currentDirectory),this.hasValue=this.model.count()>0,this.formatRows()},load:function(e){this.currentDirectory=this.urlTracker.getUrl(e),this.showFTPHelper="gxftp://"===e?.url,this.filter=null,this.optionsShow=!1,this.undoShow=!this.urlTracker.atRoot(),this.urlTracker.atRoot()||this.errorMessage?(this.errorMessage=null,this.services.getFileSources().then((e=>{e=e.filter((e=>!this.requireWritable||e.writable)).map((e=>({id:e.id,label:e.label,details:e.doc,isLeaf:!1,url:e.uri_root,labelTitle:e.uri_root}))),this.items=e,this.formatRows(),this.optionsShow=!0,this.showTime=!1,this.showDetails=!0})).catch((e=>{this.errorMessage=e}))):this.services.list(this.currentDirectory.url).then((e=>{this.items=this.parseItems(e),this.formatRows(),this.optionsShow=!0,this.showTime=!0,this.showDetails=!1})).catch((e=>{this.errorMessage=e}))},goBack(){this.load()},parseItemFileMode:e=>({id:e.uri,label:e.name,time:e.ctime,isLeaf:"File"===e.class,size:e.size,url:e.uri,labelTitle:e.uri}),parseItems(e){return this.fileMode?e.map((e=>this.parseItemFileMode(e))):e.filter((e=>"Directory"==e.class)).map((e=>({id:e.uri,label:e.name,time:e.ctime,isLeaf:!1,size:e.size,url:e.uri,labelTitle:e.uri})))}}},g=(0,i(51900).Z)(m,(function(){var e=this,t=e._self._c;return t("selection-dialog",{attrs:{"error-message":e.errorMessage,"options-show":e.optionsShow,"modal-show":e.modalShow,"hide-modal":()=>e.modalShow=!1,"back-func":e.goBack,"undo-show":e.undoShow},scopedSlots:e._u([{key:"search",fn:function(){return[t("data-dialog-search",{model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}})]},proxy:!0},{key:"helper",fn:function(){return[e.showFTPHelper?t("b-alert",{attrs:{id:"helper",variant:"info",show:""}},[e._v("\n This Galaxy server allows you to upload files via FTP. To upload some files, log in to the FTP server at\n "),t("strong",[e._v(e._s(e.ftpUploadSite))]),e._v(" using your Galaxy credentials. For help visit the\n "),t("a",{attrs:{href:"https://galaxyproject.org/ftp-upload/",target:"_blank"}},[e._v("tutorial")]),e._v(".\n "),e.oidcEnabled?t("span",[t("br"),e._v("If you are signed-in to Galaxy using a third-party identity and you\n "),t("strong",[e._v("do not have a Galaxy password")]),e._v(" please use the reset password option in the login\n form with your email to create a password for your account.")]):e._e()]):e._e()]},proxy:!0},{key:"options",fn:function(){return[e.optionsShow?t("data-dialog-table",{attrs:{items:e.items,multiple:e.multiple,filter:e.filter,"select-all-icon":e.selectAllIcon,"show-select-icon":e.undoShow&&e.multiple,"show-details":e.showDetails,"show-time":e.showTime,"is-busy":e.isBusy},on:{clicked:e.clicked,open:e.open,toggleSelectAll:e.toggleSelectAll}}):e._e()]},proxy:!0},{key:"buttons",fn:function(){return[e.undoShow?t("b-btn",{staticClass:"float-left",attrs:{id:"back-btn",size:"sm"},on:{click:function(t){return e.load()}}},[t("font-awesome-icon",{attrs:{icon:["fas","caret-left"]}}),e._v("\n Back\n ")],1):e._e(),e._v(" "),e.multiple||!e.fileMode?t("b-btn",{staticClass:"float-right ml-1 file-dialog-modal-ok",attrs:{id:"ok-btn",size:"sm",variant:"primary",disabled:e.fileMode&&!e.hasValue||e.isBusy||!e.fileMode&&e.urlTracker.atRoot()},on:{click:function(t){e.fileMode?e.finalize():e.selectLeaf(e.currentDirectory)}}},[e._v("\n "+e._s(e.fileMode?"Ok":"Select this folder")+"\n ")]):e._e()]},proxy:!0}])})}),[],!1,null,null,null).exports},7680:(e,t,i)=>{"use strict";i.d(t,{K:()=>r});var s=i(9669),n=i.n(s),o=i(50452),a=i(62352);class r{constructor(e={}){this.root=e.root||(0,a.getAppRoot)()}async getFileSources(){const e=`${this.root}api/remote_files/plugins`;try{return(await n().get(e)).data}catch(e){(0,o.t)(e)}}async list(e,t=!1){const i=`${this.root}api/remote_files?target=${e}${t?"&recursive=true":""}`;try{return(await n().get(i)).data}catch(e){(0,o.t)(e)}}}},39801:(e,t,i)=>{"use strict";i.d(t,{FW:()=>r,_m:()=>a});var s=i(96486);const n="apiSort",o=["Expression Tools"];function a(e,t,i){let s="(";const n=e.name;n&&(s+="name:("+n+") ",s+="name_exact:("+n+") ",s+="description:("+n+")"),s+=") AND (";for(const[n,o]of Object.entries(e))if("section"===n&&"default"!==t){const e=i.find((({name:e})=>e&&e.toLowerCase().match(o.toLowerCase())));if(e){let i="";"ontology:edam_operations"===t?i="edam_operations":"ontology:edam_topics"===t&&(i="edam_topics"),s+=i+":("+e.id+") AND "}else s+=n+":("+o+") AND "}else"id"==n?s+="id_exact:("+o+") AND ":"name"!=n&&(s+=n+":("+o+") AND ");return s+=")",s}function r(e,t){let i=[];return i=function(e,t){const i=e.filter((e=>!e.text&&t.includes(e.id))).map((e=>(Object.assign(e,function(e,t){return{[n]:t.indexOf(e.id)}}(e,t)),e)));return i}(e=function(e){return function(e){let t=[];return e.forEach((e=>{t=t.concat(function(e){const t=[];return e.elems?e.elems.forEach((e=>{e.text||t.push(e)})):e.text||t.push(e),t}(e))})),t}(e=function(e){return e.filter((e=>!o.includes(e.name)))}(e))}(e),t),i=function(e){return(0,s.orderBy)(e,[n],["asc"])}(i),i=function(e){const t=[];return e.filter((e=>!t.includes(e.id)&&(t.push(e.id),!0)))}(i),i}},28195:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var s=i(70538),n=i(94741);s.default.use(n.ZPm);const o={props:{value:{type:String,default:null},title:{type:String,default:""}},computed:{placeholder(){return`Type to Search ${this.title}`},filter:{get(){return this.value},set(e){this.$emit("input",e)}}}};var a=i(51900);const r=(0,a.Z)(o,(function(){var e=this,t=e._self._c;return t("b-input-group",[t("b-input",{attrs:{placeholder:e.placeholder},model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}}),e._v(" "),t("b-input-group-append",[t("b-btn",{attrs:{disabled:!e.filter},on:{click:function(t){e.filter=""}}},[t("i",{staticClass:"fa fa-times"})])],1)],1)}),[],!1,null,null,null).exports;var l=i(56024),c=i(51436),d=i(57810),u=i(9382),h=i(66747);s.default.use(n.ZPm),u.vI.add(l.a3,l.e3,c.Pk,l.El);const p={key:"label",sortable:!0},f={key:"details",sortable:!0},m={key:"time",sortable:!0},g={key:"select_icon",label:"",sortable:!1},v={components:{FontAwesomeIcon:d.GN},props:{items:{type:Array,required:!0},filter:{type:String,default:null},multiple:{type:Boolean,default:!1},selectAllIcon:{type:String,default:h.L.unselected},leafIcon:{type:String,default:"fa fa-file-o"},showDetails:{type:Boolean,default:!0},showTime:{type:Boolean,default:!0},showSelectIcon:{type:Boolean,default:!1},isEncoded:{type:Boolean,default:!1},isBusy:{type:Boolean,default:!1}},data:()=>({currentPage:1,nItems:0,perPage:100}),computed:{fields:function(){const e=[];return this.showSelectIcon&&e.push(g),e.push(p),this.showDetails&&e.push(f),this.showTime&&e.push(m),e}},watch:{items:{immediate:!0,handler(e){this.filtered(e)}}},methods:{selectionIcon(e){switch(e){case h.L.selected:return["far","check-square"];case h.L.mixed:return["fas","minus-square"];default:return["far","square"]}},filtered:function(e){this.nItems=e.length,this.currentPage=1},clicked:function(e){this.$emit("clicked",e)},open:function(e){this.$emit("open",e)}}},y=(0,a.Z)(v,(function(){var e=this,t=e._self._c;return t("div",[t("b-table",{attrs:{small:"",hover:"",items:e.items,fields:e.fields,filter:e.filter,"per-page":e.perPage,"current-page":e.currentPage,busy:e.isBusy},on:{"update:busy":function(t){e.isBusy=t},"row-clicked":e.clicked,filtered:e.filtered},scopedSlots:e._u([{key:"head(select_icon)",fn:function(){return[t("font-awesome-icon",{staticClass:"select-checkbox cursor-pointer",attrs:{title:"Check to select all datasets",icon:e.selectionIcon(e.selectAllIcon)},on:{click:function(t){return e.$emit("toggleSelectAll")}}})]},proxy:!0},{key:"cell(select_icon)",fn:function(i){return[t("font-awesome-icon",{attrs:{icon:e.selectionIcon(i.item._rowVariant)}})]}},{key:"cell(label)",fn:function(i){return[t("div",{staticStyle:{cursor:"pointer"}},[e.isEncoded?t("pre",{attrs:{title:`label-${i.item.labelTitle}`}},[t("code",[e._v(e._s(i.value?i.value:"-"))])]):t("span",[i.item.isLeaf?t("div",[t("i",{class:e.leafIcon}),e._v(" "),t("span",{attrs:{title:`label-${i.item.labelTitle}`}},[e._v(e._s(i.value?i.value:"-"))])]):t("div",{on:{click:function(t){return t.stopPropagation(),e.open(i.item)}}},[t("font-awesome-icon",{attrs:{icon:"folder"}}),e._v(" "),t("b-link",{attrs:{title:`label-${i.item.labelTitle}`}},[e._v(e._s(i.value?i.value:"-"))])],1)])])]}},{key:"cell(details)",fn:function(i){return[t("span",{attrs:{title:`details-${i.item.labelTitle}`}},[e._v(e._s(i.value?i.value:"-"))])]}},{key:"cell(time)",fn:function(t){return[e._v("\n "+e._s(t.value?t.value:"-")+"\n ")]}}])}),e._v(" "),e.isBusy?t("div",{staticClass:"text-center"},[t("b-spinner",{attrs:{small:"",type:"grow"}}),e._v(" "),t("b-spinner",{attrs:{small:"",type:"grow"}}),e._v(" "),t("b-spinner",{attrs:{small:"",type:"grow"}})],1):e._e(),e._v(" "),0===e.nItems?t("div",[e.filter?t("div",[e._v("\n No search results found for: "),t("b",[e._v(e._s(e.filter))]),e._v(".\n ")]):t("div",[e._v("No entries.")])]):e._e(),e._v(" "),e.nItems>e.perPage?t("b-pagination",{staticClass:"justify-content-md-center",attrs:{"per-page":e.perPage,"total-rows":e.nItems},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)}),[],!1,null,null,null).exports;s.default.use(n.ZPm);const b={components:{FontAwesomeIcon:d.GN},props:{multiple:{type:Boolean,default:!1},modalStatic:{type:Boolean,default:!1},errorMessage:{type:String,default:null},optionsShow:{type:Boolean,default:!1},modalShow:{type:Boolean,default:!0},hideModal:{type:Function,required:!0},backFunc:{type:Function,required:!1,default:()=>{}},undoShow:{type:Boolean,required:!1}}},_={components:{"selection-dialog":(0,a.Z)(b,(function(){var e=this,t=e._self._c;return e.modalShow?t("b-modal",{attrs:{"modal-class":"selection-dialog-modal",visible:"",static:e.modalStatic},on:{hide:e.hideModal},scopedSlots:e._u([{key:"modal-header",fn:function(){return[e._t("search")]},proxy:!0},{key:"modal-footer",fn:function(){return[t("div",{staticClass:"w-100"},[e.errorMessage?t("div",[e.undoShow?t("b-btn",{staticClass:"float-left",attrs:{id:"back-btn",size:"sm"},on:{click:e.backFunc}},[t("font-awesome-icon",{attrs:{icon:["fas","caret-left"]}}),e._v("\n Back\n ")],1):e._e(),e._v(" "),t("b-btn",{staticClass:"float-right",attrs:{id:"close-btn",size:"sm",variant:"primary"},on:{click:e.hideModal}},[e._v("\n Close\n ")])],1):t("div",[e._t("buttons"),e._v(" "),t("b-btn",{staticClass:"float-right selection-dialog-modal-cancel",attrs:{size:"sm"},on:{click:e.hideModal}},[e._v("\n Cancel\n ")])],2)])]},proxy:!0}],null,!0)},[e._v(" "),e._t("helper"),e._v(" "),e.errorMessage?t("b-alert",{attrs:{variant:"danger",show:""}},[e._v("\n "+e._s(e.errorMessage)+"\n ")]):t("div",[e.optionsShow?e._t("options"):t("div",[t("span",{staticClass:"fa fa-spinner fa-spin"}),e._v(" "),t("span",[e._v("Please wait...")])])],2)],2):e._e()}),[],!1,null,null,null).exports,"data-dialog-table":y,"data-dialog-search":r},props:{callback:{type:Function,default:()=>{}}}}},66747:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});const s={selected:"success",unselected:"default",mixed:"secondary"}},93531:(e,t,i)=>{"use strict";i.d(t,{$7:()=>r,SF:()=>a,lw:()=>n});var s=i(64907);const n="New File",o=["http","https","ftp","file","gxfiles","gximport","gxuserimport","gxftp"];function a(e,t,i=!1){const s=[],a=e.map((e=>{if(e.get("optional"))return null;let t,i=null,a=e.get("file_name");a===n&&(a=null);const r=(e.get("file_uri")||e.get("file_path")||e.get("url_paste")).trim(),l={dbkey:e.get("genome","?"),ext:e.get("extension","auto"),space_to_tab:e.get("space_to_tab"),to_posix_lines:e.get("to_posix_lines"),deferred:e.get("deferred")};switch(e.get("file_mode")){case"new":if(function(e){return o.some((t=>e.get("url_paste").startsWith(t)))}(e))return t="url",r.split("\n").map((e=>({src:t,url:e,name:a,...l})));i=e.get("url_paste"),t="pasted";break;case"ftp":r.indexOf("://")>=0&&(t="url");break;case"local":t="files",s.push(e.get("file_data"));break;default:console.error("Unknown file_mode",e)}return"pasted"==t?{src:t,paste_content:i,name:a,...l}:"url"==t?{src:t,name:a,url:r,...l}:{src:t,name:a,...l}})).filter((e=>e)).flat(),r={destination:{type:"hdas"},elements:a};if(i){const e=[{src:"composite",ext:a[0].ext,composite:{items:r.elements}}];delete r.elements,r.items=e}return{history_id:t,targets:[r],auto_decompress:!0,files:s}}const r={uploadPath:{type:String,required:!0},chunkUploadSize:{type:Number,default:1024},fileSourcesConfigured:{type:Boolean,default:!1},ftpUploadSite:{type:String,default:""},defaultDbKey:{type:String,default:s.ZP.DEFAULT_DBKEY},defaultExtension:{type:String,default:s.ZP.DEFAULT_EXTENSION},datatypesDisableAuto:{type:Boolean,default:!1},formats:{type:Array,default:null},multiple:{type:Boolean,default:!0},hasCallback:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},auto:{type:Object,default:()=>s.ZP.AUTO_EXTENSION}}},95150:(e,t,i)=>{"use strict";i.d(t,{sS:()=>le});var s=i(14275),n=i(38963),o=i(72316),a=i.n(o),r=i(64907),l=i(49612),c=i(11411),d=i(59050),u=i(38944),h=i(55806),p=i.n(h),f=i(45484);const m=a().View.extend({options:{class_check:"fa-check-square-o",class_uncheck:"fa-square-o",parameters:[{id:"space_to_tab",title:"Convert spaces to tabs"},{id:"to_posix_lines",title:"Use POSIX standard"},{id:"deferred",title:"Defer dataset resolution"}]},initialize:function(e){this.model=e.model,this.setElement(p()("<div/>").addClass("upload-settings")),this.$el.append(p()("<div/>").addClass("upload-settings-cover")),this.$el.append(p()("<table/>").addClass("upload-settings-table grid").append("<tbody/>")),this.$cover=this.$(".upload-settings-cover"),this.$table=this.$(".upload-settings-table > tbody"),this.listenTo(this.model,"change",this.render,this),this.model.trigger("change")},render:function(){var e=this;this.$table.empty(),d.default.each(this.options.parameters,(t=>{var i=p()("<div/>").addClass(`upload-${t.id} fa`).addClass(e.model.get(t.id)&&e.options.class_check||e.options.class_uncheck);const s=p()("<tr/>").append(p()("<td/>").append(i)).append(p()("<td/>").append(t.title)).on("click",(()=>{e.model.get("enabled")&&e.model.set(t.id,!e.model.get(t.id))}));e.$table.append(s)})),this.$cover[this.model.get("enabled")?"hide":"show"]()}});var g=i(57404);const v=a().View.extend({initialize:function(e){this.model=new(a().Model)({cls:"upload-ftp",class_add:"upload-icon-button fa fa-square-o",class_remove:"upload-icon-button fa fa-check-square-o",class_partial:"upload-icon-button fa fa-minus-square-o",help_enabled:!0,oidc_text:"<br/>If you are signed-in to Galaxy using a third-party identity and you <strong>do not have a Galaxy password</strong> please use the reset password option in the login form with your email to create a password for your account.",help_text:`This Galaxy server allows you to upload files via FTP. To upload some files, log in to the FTP server at <strong>${e.ftp_upload_site}</strong> using your Galaxy credentials.\n For help visit the <a href="https://galaxyproject.org/ftp-upload/" target="_blank">tutorial</a>.`,collection:null,onchange:function(){},onadd:function(){},onremove:function(){}}).set(e),this.collection=this.model.get("collection"),(0,g.Bz)().config.enable_oidc&&this.model.set("help_text",this.model.get("help_text")+this.model.get("oidc_text")),this.setElement(this._template()),this.$content=this.$(".upload-ftp-content"),this.$wait=this.$(".upload-ftp-wait"),this.$help=this.$(".upload-ftp-help"),this.$number=this.$(".upload-ftp-number"),this.$disk=this.$(".upload-ftp-disk"),this.$body=this.$(".upload-ftp-body"),this.$warning=this.$(".upload-ftp-warning"),this.$select=this.$(".upload-ftp-select-all"),this.render()},render:function(){var e=this;this.$wait.show(),this.$content.hide(),this.$warning.hide(),this.$help.hide(),r.ZP.getRemoteFiles((function(t){e.model.set("ftp_files",t),e._index(),e._renderTable()}),(function(){e._renderTable()}))},_renderTable:function(){var e=this,t=this.model.get("ftp_files");if(this.rows=[],t&&t.length>0){this.$body.empty();var i=0;d.default.each(t,(t=>{e.rows.push(e._renderRow(t)),i+=t.size})),this.$number.html(`${t.length} files`),this.$disk.html(f.ZP.bytesToString(i,!0)),this.collection&&(this.$("._has_collection").show(),this.$select.addClass(this.model.get("class_add")).off().on("click",(()=>{e._all()})),this._refresh()),this.$content.show()}else this.$warning.show();this.model.get("help_enabled")&&this.$help.show(),this.$wait.hide()},_renderRow:function(e){var t=this,i=this.model.attributes,s=p()(this._templateRow(e)),n=s.find(".icon");if(this.$body.append(s),this.collection){var o=this.ftp_index[e.path];n.addClass(void 0===o?i.class_add:i.class_remove),s.on("click",(()=>{t._switch(n,e),t._refresh()}))}else s.on("click",(()=>{i.onchange(e)}));return n},_index:function(){var e=this;this.ftp_index={},this.collection&&this.collection.each((t=>{"ftp"==t.get("file_mode")&&(e.ftp_index[t.get("file_path")]=t.id)}))},_all:function(){var e=this.model.attributes,t=this.model.get("ftp_files"),i=this.$select.hasClass(e.class_add);for(var s in t){var n=t[s],o=this.ftp_index[n.path];(void 0===o&&i||void 0!==o&&!i)&&this._switch(this.rows[s],n)}this._refresh()},_switch:function(e,t){e.removeClass();var i=this.model.attributes,s=this.ftp_index[t.path];if(void 0===s){var n=i.onadd(t);e.addClass(i.class_remove),this.ftp_index[t.path]=n}else i.onremove(s),e.addClass(i.class_add),delete this.ftp_index[t.path]},_refresh:function(){var e=d.default.reduce(this.ftp_index,((e,t)=>(void 0!==t&&e++,e)),0);this.$select.removeClass(),0==e?this.$select.addClass(this.model.get("class_add")):this.$select.addClass(e==this.rows.length?this.model.get("class_remove"):this.model.get("class_partial"))},_templateRow:function(e){return`<tr class="upload-ftp-row">\n <td class="_has_collection" style="display: none;">\n <div class="icon"/>\n </td>\n <td class="ftp-name">${d.default.escape(e.path)}</td>\n <td class="ftp-size">${f.ZP.bytesToString(e.size)}</td>\n <td class="ftp-time">${e.ctime}</td>\n </tr>`},_template:function(){return`<div class="${this.model.get("cls")}">\n <div class="upload-ftp-wait fa fa-spinner fa-spin"/>\n <div class="upload-ftp-help">${this.model.get("help_text")}</div>\n <div class="upload-ftp-content">\n <span style="whitespace: nowrap; float: left;">Available files: </span>\n <span style="whitespace: nowrap; float: right;">\n <span class="upload-icon fa fa-file-text-o"/>\n <span class="upload-ftp-number"/>\n <span class="upload-icon fa fa-hdd-o"/>\n <span class="upload-ftp-disk"/>\n </span>\n <table class="grid" style="float: left;">\n <thead>\n <tr>\n <th class="_has_collection" style="display: none;">\n <div class="upload-ftp-select-all">\n </th>\n <th>Name</th>\n <th>Size</th>\n <th>Created</th>\n </tr>\n </thead>\n <tbody class="upload-ftp-body"/>\n </table>\n </div>\n <div class="upload-ftp-warning warningmessage">Your FTP directory does not contain any files.</div>\n </div>`}}),y=a().View.extend({initialize:function(e){this.options=d.default.defaults(e||{},{title:null,placement:"top",container:"body"}),this.uid=f.ZP.uid(),this.$target=this.options.container},show:function(e){p()(this.$target).popover({title:`${this.options.title} <i class='popover-close fa fa-times-circle'/>`,placement:this.options.placement,content:e,html:!0,trigger:"manual"}),this.options.class&&p()(this.$target).addClass(this.options.class),p()(this.$target).popover("show");var t=this;const i=p()(this.$target.data("bs.popover").tip);i.find(".popover-header > i").on("click",(()=>this.hide())),p()("body").on(`mousedown.${this.uid}`,(e=>{p()(i).is(e.target)||0!==p()(i).has(e.target).length||t.hide()}))},hide:function(){p()(this.$target).popover("dispose"),p()("body").off(`mousedown.${this.uid}`)}});var b=i(61518),_=i(93375);const w=a().View.extend({status_classes:{init:"upload-mode fa fa-exclamation text-primary",ready:"upload-mode fa fa-check text-success",running:"upload-mode fa fa-spinner fa-spin",success:"upload-mode fa fa-check",error:"upload-mode fa fa-exclamation-triangle"},initialize:function(e,t){var i=this;this.app=e,this.model=t.model,this.setElement(this._template()),this.$source=this.$(".upload-source"),this.$settings=this.$(".upload-settings"),this.$status=this.$(".upload-status"),this.$text=this.$(".upload-text"),this.$text_content=this.$(".upload-text-content"),this.$info_text=this.$(".upload-info-text"),this.$info_progress=this.$(".upload-info-progress"),this.$file_name=this.$(".upload-file-name"),this.$file_desc=this.$(".upload-file-desc"),this.$file_size=this.$(".upload-file-size"),this.$progress_bar=this.$(".upload-progress-bar"),this.$percentage=this.$(".upload-percentage"),this.uploadinput=this.$el.uploadinput({ondragover:function(){i.model.get("enabled")&&i.$el.addClass("alert-success")},ondragleave:function(){i.$el.removeClass("alert-success")},onchange:function(e){"running"!=i.model.get("status")&&e&&e.length>0&&(i.model.reset({file_data:e[0],file_name:e[0].name,file_size:e[0].size,file_mode:e[0].mode||"local"}),i._refreshReady())}}),this.button_menu=new b.Co.ButtonMenu({icon:"fa-caret-down",title:(0,c.ZP)("Select"),pull:"left"}),this.$source.append(this.button_menu.$el),this.button_menu.addMenu({icon:"fa-laptop",title:(0,c.ZP)("Choose local file"),onclick:function(){i.uploadinput.dialog()}}),this.app.ftpUploadSite&&this.button_menu.addMenu({icon:"fa-folder-open-o",title:(0,c.ZP)("Choose FTP file"),onclick:function(){i._showFtp()}}),this.button_menu.addMenu({icon:"fa-edit",title:"Paste/Fetch data",onclick:function(){i.model.reset({file_mode:"new",file_name:"New File"})}}),this.ftp=new y({title:"Select a file",container:this.$source.find(".dropdown"),placement:"right"}),this.settings=new y({title:(0,c.ZP)("Upload configuration"),container:this.$settings,placement:"bottom"}),this.$text_content.on("change input",(e=>{i.model.set({url_paste:p()(e.target).val(),file_size:p()(e.target).val().length}),i._refreshReady()})),this.$settings.on("click",(e=>{i._showSettings()})).on("mousedown",(e=>{e.preventDefault()})),this.listenTo(this.model,"change:percentage",(()=>{i._refreshPercentage()})),this.listenTo(this.model,"change:status",(()=>{i._refreshStatus()})),this.listenTo(this.model,"change:info",(()=>{i._refreshInfo()})),this.listenTo(this.model,"change:file_name",(()=>{i._refreshFileName()})),this.listenTo(this.model,"change:file_mode",(()=>{i._refreshMode()})),this.listenTo(this.model,"change:file_size",(()=>{i._refreshFileSize()})),this.listenTo(this.model,"remove",(()=>{i.remove()})),this.app.collection.on("reset",(()=>{i.remove()}))},render:function(){this.$el.attr("id",`upload-row-${this.model.id}`),this.$file_name.html(d.default.escape(this.model.get("file_name")||"-")),this.$file_desc.html(this.model.get("file_desc")||"Unavailable"),this.$file_size.html(f.ZP.bytesToString(this.model.get("file_size"))),this.$status.removeClass().addClass(this.status_classes.init)},remove:function(){a().View.prototype.remove.apply(this)},_refreshReady:function(){this.app.collection.each((e=>{e.set("status",e.get("file_size")>0?"ready":"init")}))},_refreshMode:function(){"new"==this.model.get("file_mode")?(this.height=this.$el.height(),this.$text.css({width:this.$el.width()-16+"px",top:this.$el.height()-8+"px"}).show(),this.$el.height(this.$el.height()-8+this.$text.height()+16),this.$text_content.val("").trigger("keyup")):(this.$el.height(this.height),this.$text.hide())},_refreshInfo:function(){var e=this.model.get("info");e?this.$info_text.html(`<strong>Failed: </strong>${e}`).show():this.$info_text.hide()},_refreshPercentage:function(){var e=parseInt(this.model.get("percentage"));0!=e?this.$progress_bar.css({width:`${e}%`}):(this.$progress_bar.addClass("no-transition"),this.$progress_bar.css({width:"0%"}),this.$progress_bar[0].offsetHeight,this.$progress_bar.removeClass("no-transition")),this.$percentage.html(100!=e?`${e}%`:"Adding to history...")},_refreshStatus:function(){var e=this.model.get("status");this.$status.removeClass().addClass(this.status_classes[e]),this.model.set("enabled","running"!=e),this.$text_content.attr("disabled",!this.model.get("enabled")),this.$el.removeClass("table-success table-danger table-warning"),"running"!=e&&"ready"!=e||this.model.set("percentage",0),this.$source.find(".button")["running"==e?"addClass":"removeClass"]("disabled"),"success"==e&&(this.$el.addClass("table-success"),this.model.set("percentage",100),this.$percentage.html("100%")),"error"==e?(this.$el.addClass("table-danger"),this.model.set("percentage",0),this.$info_progress.hide(),this.$info_text.show()):(this.$info_progress.show(),this.$info_text.hide())},_refreshFileName:function(){this.$file_name.html(this.model.get("file_name")||"-")},_refreshFileSize:function(){this.$file_size.html(f.ZP.bytesToString(this.model.get("file_size")))},_showFtp:function(){var e=this;this.ftp.show(new v({ftp_upload_site:this.app.ftpUploadSite,onchange:function(t){e.ftp.hide(),"running"!=e.model.get("status")&&t&&(e.model.reset({file_mode:"ftp",file_name:t.path,file_size:t.size,file_path:t.path}),e._refreshReady())}}).$el)},_showSettings:function(){this.settings.show(new m(this).$el)},_template:function(){return'<tr class="upload-row">\n <td>\n <div class="upload-source"/>\n <div class="upload-text-column">\n <div class="upload-text">\n <div class="upload-text-info">Download data from the web by entering a URL (one per line) or directly paste content.</div>\n <textarea class="upload-text-content form-control"/>\n </div>\n </div>\n </td>\n <td>\n <div class="upload-status"/>\n </td>\n <td>\n <div class="upload-file-desc upload-title"/>\n </td>\n <td>\n <div class="upload-file-name upload-title"/>\n </td>\n <td>\n <div class="upload-file-size upload-size"/>\n </td>\n <td>\n <div class="upload-settings upload-icon-button fa fa-gear"/>\n </td>\n <td>\n <div class="upload-info">\n <div class="upload-info-text"/>\n <div class="upload-info-progress progress">\n <div class="upload-progress-bar progress-bar progress-bar-success"/>\n <div class="upload-percentage">0%</div>\n </div>\n </div>\n </td>\n </tr>'}});var x=i(98174);const C=a().View.extend({initialize:function(e){this.model=new(a().Model)(e),this.setElement("<div/>"),this.render()},render:function(){var e=this.model.attributes,t=d.default.findWhere(e.list,{id:e.extension});this.extension_popup&&this.extension_popup.remove(),this.extension_popup=new y({title:e.title,placement:e.placement||"bottom",container:e.$el}),this.extension_popup.show(this._templateDescription(t))},_templateDescription:function(e){if(e.description){var t=e.description;return e.description_url&&(t+=` (<a href="${e.description_url}" target="_blank">read more</a>)`),t}return"There is no description available for this file extension."}});var S=a().Model.extend({defaults:{extension:"auto",genome:"?",url_paste:"",status:"init",optional:!1,info:null,file_name:"",file_mode:"",file_size:0,file_type:null,file_path:"",file_uri:null,file_data:null,percentage:0,space_to_tab:!1,to_posix_lines:!0,enabled:!0},reset:function(e){this.clear().set(this.defaults).set(e)}});const k={Model:S,Collection:a().Collection.extend({model:S})},T={props:{topInfo:{type:String,default:" "},wrapperClass:{type:String,default:"upload-view-default"},highlightBox:{type:Boolean,default:!1}},computed:{hasFooter(){const e="footer";return!!this.$slots[e]||!!this.$scopedSlots[e]},boxStyle:function(){return{height:this.hasFooter?"300px":"335px"}}}};var $=i(51900);const D=(0,$.Z)(T,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[t("div",{staticClass:"upload-top"},[t("div",{staticClass:"upload-top-info",domProps:{innerHTML:e._s(e.topInfo)}})]),e._v(" "),t("div",{ref:"uploadBox",staticClass:"upload-box",class:{highlight:e.highlightBox},style:e.boxStyle},[e._t("default")],2),e._v(" "),e.hasFooter?t("div",{staticClass:"upload-footer"},[e._t("footer")],2):t("div",{staticClass:"clear"}),e._v(" "),t("div",{staticClass:"upload-buttons"},[e._t("buttons")],2)])}),[],!1,null,null,null).exports;var E=i(93531);const A=a().View.extend({initialize:function(e){this.$container=e.$container,this.collection=e.collection,this.new_content=e.new_content,this.max=e.max||50,this.content_list={},this.$message=p()("<div/>").addClass("ui-limitloader").append(`...only the first ${this.max} entries are visible.`).hide(),this.$container.append(this.$message),this.listenTo(this.collection,"reset",this._reset,this),this.listenTo(this.collection,"add",this._refresh,this),this.listenTo(this.collection,"remove",this._remove,this)},_done:function(){var e=d.default.size(this.content_list)>=this.max;return this.$message[e?"show":"hide"](),e},_reset:function(){d.default.each(this.content_list,(e=>{e.remove()})),this.content_list={},this.$message.hide()},_remove:function(e){var t=e.id,i=this.content_list[t];i&&(i.remove(),delete this.content_list[t]),this._refresh()},_refresh:function(){if(!this._done())for(var e in this.collection.models){var t=this.collection.models[e];if(!this.content_list[t.id]&&(this.content_list[t.id]=this.new_content(t),this._done()))break}}});var P=i(5279),L=i(9669),N=i.n(L);const I=c.ZP,M={components:{UploadWrapper:D,Select2:x.Z},props:{app:{type:Object,required:!0},lazyLoadMax:{type:Number,default:null},selectable:{type:Boolean,default:!1},hasCallback:{type:Boolean,default:!1}},computed:{btnFilesTitle(){return this.fileSourcesConfigured?I("Choose remote files"):I("Choose FTP files")},remoteFiles(){return!!this.fileSourcesConfigured||!!this.ftpUploadSite},btnCloseTitle(){return this.hasCallback?"Cancel":"Close"},history_id(){const e=this.$store?.getters["history/currentHistoryId"];return e||this.app.currentHistory()}},methods:{$uploadBox(){return p()(this.$refs.wrapper.$refs.uploadBox)},initUploadbox(e){const t=this.$uploadBox();if(e.$uploadBox=t,this.uploadbox=new _.l(e),null!==this.lazyLoadMax){const e=this.$uploadBox();this.loader=new A({$container:e,collection:this.collection,max:this.lazyLoadMax,new_content:e=>this.renderNewModel(e)})}},uploadSelect:function(){this.uploadbox.select()},_eventStart:function(){0==this.counterAnnounce||this.counterRunning>0||(this.uploadSize=0,this.uploadCompleted=0,this.collection.each((e=>{"init"==e.get("status")&&(e.set("status","queued"),this.uploadSize+=e.get("file_size"))})),this.appModel.set({percentage:0,status:"success"}),this.counterRunning=this.counterAnnounce,this._uploadFtp(),this.uploadbox.start(),this._updateStateForCounters())},_uploadFtp:function(){const e=[];if(this.collection.each((t=>{"queued"==t.get("status")&&"ftp"==t.get("file_mode")&&(this.uploadbox.remove(t.id),e.push(t))})),e.length>0){const t=(0,E.SF)(e,this.history_id);N().post(`${(0,P.Bg)()}api/tools/fetch`,t).then((t=>{e.forEach((e=>{this._eventSuccess(e.id,t)}))})).catch((t=>{e.forEach((e=>{this._eventError(e.id,t)}))}))}},renderNewModel:function(e){var t=new this.rowUploadModel(this,{model:e});return this.$uploadTable().find("tbody:first").append(t.$el),this._updateStateForCounters(),this.$nextTick((()=>{t.render()})),t},_updateStateForCounters:function(){this.setTopInfoBasedOnCounters();const e=this.counterAnnounce+this.counterSuccess+this.counterError;this.enableReset=0==this.counterRunning&&e>0,this.enableStart=0==this.counterRunning&&this.counterAnnounce>0,this.enableBuild=0==this.counterRunning&&0==this.counterAnnounce&&this.counterSuccess>0&&0==this.counterError,this.enableSources=0==this.counterRunning&&(this.multiple||0==e);var t=this.counterAnnounce+this.counterSuccess+this.counterError>0;this.showHelper=!t},setTopInfoBasedOnCounters:function(){var e;e=0==this.counterAnnounce?this.uploadbox.compatible()?" ":"Browser does not support Drag & Drop. Try Firefox 4+, Chrome 7+, IE 10+, Opera 12+ or Safari 6+.":0==this.counterRunning?`You added ${this.counterAnnounce} file(s) to the queue. Add more files or click 'Start' to proceed.`:`Please wait...${this.counterAnnounce} out of ${this.counterRunning} remaining.`,this.topInfo=e},_eventProgress:function(e,t){var i=this.collection.get(e);i.set("percentage",t),this.appModel.set("percentage",this._uploadPercentage(t,i.get("file_size")))},_uploadPercentage:function(e,t){return(this.uploadCompleted+e*t)/this.uploadSize},_updateStateForSuccess:function(e){this.appModel.set("percentage",this._uploadPercentage(100,e.get("file_size"))),this.uploadCompleted+=100*e.get("file_size"),this.counterAnnounce--,this.counterSuccess++,this._updateStateForCounters(),(0,u.B8)()},_eventAnnounce:function(e,t){this.counterAnnounce++;const i=this._newUploadModelProps(e,t);var s=new k.Model(i);this.collection.add(s),this.loader?this._updateStateForCounters():this.renderNewModel(s)},_eventError:function(e,t){var i=this.collection.get(e);i.set({percentage:100,status:"error",info:t}),this.appModel.set({percentage:this._uploadPercentage(100,i.get("file_size")),status:"danger"}),this.uploadCompleted+=100*i.get("file_size"),this.counterAnnounce--,this.counterError++,this._updateStateForCounters()},_eventComplete:function(){this.collection.each((e=>{"queued"==e.get("status")&&e.set("status","init")})),this.counterRunning=0,this._updateStateForCounters()},_eventRemove:function(e){var t=e.get("status");"success"==t?this.counterSuccess--:"error"==t?this.counterError--:this.counterAnnounce--,this.uploadbox.remove(e.id),this._updateStateForCounters()},_eventRemoteFiles:function(){this.fileSourcesConfigured?(0,u.hy)((e=>{this.uploadbox.add(e.map((e=>({mode:"ftp",name:e.label,size:e.size,path:e.url}))))}),{multiple:!0}):this.ftp.show(new v({collection:this.collection,ftp_upload_site:this.ftpUploadSite,onadd:e=>this.uploadbox.add([{mode:"ftp",name:e.path,size:e.size,path:e.path,uri:e.uri}]),onremove:function(e){this.collection.remove(e)}}).$el)},_eventCreate:function(){this.uploadbox.add([{name:E.lw,size:0,mode:"new"}])},_eventStop:function(){this.counterRunning>0&&(this.appModel.set("status","info"),this.topInfo="Queue will pause after completing the current file...",this.uploadbox.stop())},_eventWarning:function(e,t){this.collection.get(e).set({status:"warning",info:t})},$uploadTable(){return p()(this.$refs.uploadTable)},extensionDetails(e){return t=this.app.effectiveExtensions,i=e,t.find((e=>e.id==i));var t,i},initExtensionInfo(){p()(this.$refs.footerExtensionInfo).on("click",(e=>{const t=this.extensionDetails(this.extension);t&&new C({$el:p()(e.target),title:t&&t.text,extension:t&&t.id,list:this.listExtensions,placement:"top"})})).on("mousedown",(e=>{e.preventDefault()}))},initCollection(){this.collection=new k.Collection},initAppProperties(){this.listExtensions=this.app.effectiveExtensions,this.listGenomes=this.app.listGenomes,this.ftpUploadSite=this.app.currentFtp(),this.fileSourcesConfigured=this.app.fileSourcesConfigured},initFtpPopover(){this.ftp=new y({title:(0,c.ZP)("FTP files"),class:"ftp-upload",container:p()(this.$refs.btnFtp)})},updateExtension(e,t){this.collection.each((i=>{"init"!=i.get("status")||i.get("extension")!=this.app.defaultExtension&&t||i.set("extension",e)}))},updateGenome:function(e,t){this.collection.each((i=>{"init"!=i.get("status")||i.get("genome")!=this.app.defaultDbKey&&t||i.set("genome",e)}))},getRequestUrl:function(e,t){return`${(0,P.Bg)()}api/tools/fetch`}}},j={mixins:[M],data(){return{extension:"_select_",genome:this.app.defaultDbKey,listExtensions:[],listGenomes:[],running:!1,showHelper:!0,btnResetTitle:(0,c.ZP)("Reset"),btnStartTitle:(0,c.ZP)("Start"),readyStart:!1}},computed:{extensions(){const e=d.default.filter(this.listExtensions,(e=>e.composite_files));return e.unshift({id:"_select_",text:"Select"}),e}},watch:{extension:function(e){this.collection.reset();const t=this.extensionDetails(e);t&&t.composite_files&&d.default.each(t.composite_files,(e=>{this.collection.add({id:this.collection.size(),file_desc:e.description||e.name,optional:e.optional})}))}},created(){this.initCollection(),this.initAppProperties()},mounted(){this.initExtensionInfo(),this.collection.on("add",(e=>{this._eventAnnounce(e)})),this.collection.on("change add",(()=>{this.renderNonReactiveComponents()})),this.renderNonReactiveComponents()},methods:{renderNonReactiveComponents:function(){var e=this.collection.first();e&&"running"==e.get("status")?this.running=!0:this.running=!1,this.collection.where({status:"ready"}).length+this.collection.where({optional:!0}).length==this.collection.length&&this.collection.length>0?this.readyStart=!0:this.readyStart=!1,this.showHelper=0==this.collection.length},_eventAnnounce:function(e){var t=new w(this,{model:e});this.$uploadTable().find("tbody:first").append(t.$el),this.showHelper=0==this.collection.length,t.render()},_eventStart:function(){this.collection.each((e=>{e.set({genome:this.genome,extension:this.extension})})),(0,_.D)({url:this.app.uploadPath,data:(0,E.SF)(this.collection.filter(),this.history_id,!0),success:e=>{this._eventSuccess(e)},error:e=>{this._eventError(e)},progress:e=>{this._eventProgress(e)}})},_eventReset:function(){0==this.collection.where({status:"running"}).length&&(this.collection.reset(),this.extension=this.app.defaultExtension,this.genome=this.app.defaultDbKey,this.renderNonReactiveComponents())},_eventProgress:function(e){this.collection.each((t=>{t.set("percentage",e)}))},_eventSuccess:function(e){this.collection.each((e=>{e.set("status","success")})),(0,u.B8)()},_eventError:function(e){this.collection.each((t=>{t.set({status:"error",info:e})}))}}},R=(0,$.Z)(j,(function(){var e=this,t=e._self._c;return t("upload-wrapper",{attrs:{"wrapper-class":"upload-view-composite"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("span",{staticClass:"upload-footer-title"},[e._v("Composite Type:")]),e._v(" "),t("select2",{ref:"footerExtension",attrs:{"container-class":"upload-footer-extension",enabled:!e.running},model:{value:e.extension,callback:function(t){e.extension=t},expression:"extension"}},e._l(e.extensions,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v(e._s(i.text))])})),0),e._v(" "),t("span",{ref:"footerExtensionInfo",staticClass:"upload-footer-extension-info upload-icon-button fa fa-search"}),e._v(" "),t("span",{staticClass:"upload-footer-title"},[e._v("Genome/Build:")]),e._v(" "),t("select2",{ref:"footerGenome",attrs:{"container-class":"upload-footer-genome",enabled:!e.running},model:{value:e.genome,callback:function(t){e.genome=t},expression:"genome"}},e._l(e.listGenomes,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v("\n "+e._s(i.text)+"\n ")])})),0)]},proxy:!0},{key:"buttons",fn:function(){return[t("b-button",{ref:"btnClose",staticClass:"ui-button-default",attrs:{title:e.btnCloseTitle},on:{click:function(t){return e.$emit("dismiss")}}},[e._v("\n "+e._s(e._f("localize")(e.btnCloseTitle))+"\n ")]),e._v(" "),t("b-button",{ref:"btnStart",staticClass:"ui-button-default",attrs:{id:"btn-start",disabled:!e.readyStart,title:e.btnStartTitle,variant:e.readyStart?"primary":""},on:{click:e._eventStart}},[e._v("\n "+e._s(e.btnStartTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnReset",staticClass:"ui-button-default",attrs:{id:"btn-reset",title:e.btnResetTitle},on:{click:e._eventReset}},[e._v("\n "+e._s(e.btnResetTitle)+"\n ")])]},proxy:!0}])},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelper,expression:"showHelper"}],staticClass:"upload-helper"},[e._v("Select a composite type")]),e._v(" "),t("table",{directives:[{name:"show",rawName:"v-show",value:!e.showHelper,expression:"!showHelper"}],ref:"uploadTable",staticClass:"upload-table ui-table-striped"},[t("thead",[t("tr",[t("th"),e._v(" "),t("th"),e._v(" "),t("th",[e._v("Description")]),e._v(" "),t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Size")]),e._v(" "),t("th",[e._v("Settings")]),e._v(" "),t("th",[e._v("Status")])])]),e._v(" "),t("tbody")])])}),[],!1,null,null,null).exports,O=a().View.extend({status_classes:{init:"upload-icon-button fa fa-trash-o",queued:"upload-icon fa fa-spinner fa-spin",running:"upload-icon fa fa-spinner fa-spin",success:"upload-icon-button fa fa-check",error:"upload-icon-button fa fa-exclamation-triangle"},_setupSettings:function(){this.settings=new y({title:(0,c.ZP)("Upload configuration"),container:this.$(".upload-settings"),placement:"bottom"})},_renderStatusType:function(e){"success"==e?(this.$el.addClass("table-success"),this.$percentage.html("100%")):"error"==e?(this.$el.addClass("table-danger"),this.$info_progress.hide()):"warning"==e&&(this.$el.addClass("table-warning"),this.$info_progress.hide())},_setupUploadBoxListeners:function(){this.listenTo(this.model,"change:percentage",(()=>{this._refreshPercentage()})),this.listenTo(this.model,"change:status",(()=>{this._refreshStatus()})),this.listenTo(this.model,"change:info",(()=>{this._refreshInfo()})),this.listenTo(this.model,"change:file_size",(()=>{this._refreshFileSize()}))},_refreshInfo:function(){var e=this.model.get("info");e?this.$info_text.html(`<strong>Warning: </strong>${e}`).show():this.$info_text.hide()},_refreshPercentage:function(){var e=parseInt(this.model.get("percentage"));this.$progress_bar.css({width:`${e}%`}),this.$percentage.html(100!=e?`${e}%`:"Adding to history...")},_refreshFileSize:function(){this.$size.html(f.ZP.bytesToString(this.model.get("file_size")))},_removeRow:function(){-1!==["init","success","error"].indexOf(this.model.get("status"))&&this.app.collection.remove(this.model)},_showSettings:function(){this.settings.show(new m(this).$el)}}),H=O.extend({initialize:function(e,t){var i=this;this.app=e,this.model=t.model,this.setElement(this._template(t.model)),this.$mode=this.$(".upload-mode"),this.$title=this.$(".upload-title-extended"),this.$text=this.$(".upload-text"),this.$size=this.$(".upload-size"),this.$info_text=this.$(".upload-info-text"),this.$info_progress=this.$(".upload-info-progress"),this.$text_content=this.$(".upload-text-content"),this.$symbol=this.$(".upload-symbol"),this.$progress_bar=this.$(".upload-progress-bar"),this.$percentage=this.$(".upload-percentage"),this._setupSettings(),this.$symbol.on("click",(()=>{i._removeRow()})),this.$text_content.on("change input",(e=>{i.model.set({url_paste:p()(e.target).val(),file_size:p()(e.target).val().length})})),this._setupUploadBoxListeners(),this.listenTo(this.model,"remove",(()=>{i.remove()})),this.app.collection.on("reset",(()=>{i.remove()}))},render:function(){var e=this.model.attributes;this.$title.html(d.default.escape(e.file_name)),this.$size.html(f.ZP.bytesToString(e.file_size)),this.$mode.removeClass().addClass("upload-mode").addClass("text-primary"),"new"==e.file_mode?(this.$text.css({width:this.$el.width()-16+"px",top:this.$el.height()-8+"px"}).show(),this.$el.height(this.$el.height()-8+this.$text.height()+16),this.$mode.addClass("fa fa-edit")):"local"==e.file_mode?this.$mode.addClass("fa fa-laptop"):"ftp"==e.file_mode&&this.$mode.addClass("fa fa-folder-open-o")},_refreshStatus:function(){var e=this.model.get("status");this.$symbol.removeClass().addClass("upload-symbol").addClass(this.status_classes[e]),this.model.set("enabled","init"==e);var t=this.model.get("enabled");this.$text_content.attr("disabled",!t),this._renderStatusType(e)},_template:function(e){return`<tr id="upload-row-${e.id}" class="upload-row"><td><div class="upload-text-column"><div class="upload-mode"/><div class="upload-title-extended"/><div class="upload-text"><div class="upload-text-info">Download data from the web by entering URLs (one per line) or directly paste content.</div><textarea class="upload-text-content form-control"/></div></div></td><td><div class="upload-size"/></td><td><div class="upload-info"><div class="upload-info-text"/><div class="upload-info-progress progress"><div class="upload-progress-bar progress-bar progress-bar-success"/><div class="upload-percentage">0%</div></div></div></td><td><div class="upload-symbol ${this.status_classes.init}"/></td></tr>`}});var F=i(15193);const z={components:{BButton:F.T},mixins:[M],data(){return{uploadUrl:null,topInfo:"",showHelper:!0,extension:this.app.defaultExtension,genome:this.app.defaultDbKey,collectionType:"list",listExtensions:[],listGenomes:[],running:!1,multiple:!0,counterAnnounce:0,counterSuccess:0,counterError:0,counterRunning:0,uploadSize:0,uploadCompleted:0,enableReset:!1,enableStart:!1,enableSources:!1,enableBuild:!1,highlightBox:!1,rowUploadModel:H,btnLocalTitle:(0,c.ZP)("Choose local files"),btnCreateTitle:(0,c.ZP)("Paste/Fetch data"),btnFtpTitle:(0,c.ZP)("Choose FTP files"),btnStartTitle:(0,c.ZP)("Start"),btnBuildTitle:(0,c.ZP)("Build"),btnStopTitle:(0,c.ZP)("Pause"),btnResetTitle:(0,c.ZP)("Reset")}},computed:{extensions(){return d.default.filter(this.listExtensions,(e=>!e.composite_files))},appModel(){return this.app.model}},watch:{extension:function(e){this.updateExtension(e)},genome:function(e){this.updateGenome(e)}},created(){this.initCollection(),this.initAppProperties()},mounted(){this.initExtensionInfo(),this.initFtpPopover(),this.initUploadbox({initUrl:e=>(this.uploadUrl||(this.uploadUrl=this.getRequestUrl([this.collection.get(e)],this.history_id)),this.uploadUrl),announce:(e,t)=>{this._eventAnnounce(e,t)},initialize:e=>(0,E.SF)([this.collection.get(e)],this.history_id),progress:(e,t)=>{this._eventProgress(e,t)},success:(e,t)=>{this._eventSuccess(e,t)},warning:(e,t)=>{this._eventWarning(e,t)},error:(e,t)=>{this._eventError(e,t)},complete:()=>{this._eventComplete()},ondragover:()=>{this.highlightBox=!0},ondragleave:()=>{this.highlightBox=!1},chunkSize:this.app.chunkUploadSize}),this.collection.on("remove",(e=>{this._eventRemove(e)})),this._updateStateForCounters()},methods:{_newUploadModelProps:function(e,t){return{id:e,file_name:t.name,file_size:t.size,file_mode:t.mode||"local",file_path:t.path,file_data:t,file_uri:t.uri,extension:this.extension,genome:this.genome}},_eventSuccess:function(e,t){var i=this.collection.get(e);console.debug("Incoming upload response.",t);const s=t.outputs||t.data.outputs||{};i.set({percentage:100,status:"success",outputs:s}),this._updateStateForSuccess(i),(0,u.B8)()},_eventBuild:function(){const e=(0,g.Bz)(),t={};this.collection.models.forEach((e=>{const i=e.get("outputs");i?Object.entries(i).forEach((e=>{const i=e[1];t[i.id]=i})):console.debug("Warning, upload response does not contain outputs.",e)}));const i={models:Object.values(t),historyId:e.currHistoryPanel.model.id};e.currHistoryPanel.buildCollection(this.collectionType,i),this.counterRunning=0,this._updateStateForCounters(),this._eventReset(),this.$emit("dismiss")},_eventReset:function(){0==this.counterRunning&&(this.collection.reset(),this.counterAnnounce=0,this.counterSuccess=0,this.counterError=0,this.counterRunning=0,this.uploadbox.reset(),this.extension=this.app.defaultExtension,this.genome=this.app.defaultDbKey,this.appModel.set("percentage",0),this._updateStateForCounters())}}},B=(0,$.Z)(z,(function(){var e=this,t=e._self._c;return t("upload-wrapper",{ref:"wrapper",attrs:{"top-info":e.topInfo,"highlight-box":e.highlightBox},scopedSlots:e._u([{key:"footer",fn:function(){return[t("span",{staticClass:"upload-footer-title"},[e._v("Collection Type:")]),e._v(" "),t("select2",{ref:"footerCollectionType",attrs:{"container-class":"upload-footer-collection-type",enabled:!e.running},model:{value:e.collectionType,callback:function(t){e.collectionType=t},expression:"collectionType"}},[t("option",{attrs:{value:"list"}},[e._v("List")]),e._v(" "),t("option",{attrs:{value:"paired"}},[e._v("Pair")]),e._v(" "),t("option",{attrs:{value:"list:paired"}},[e._v("List of Pairs")])]),e._v(" "),t("span",{staticClass:"upload-footer-title"},[e._v("File Type:")]),e._v(" "),t("select2",{ref:"footerExtension",attrs:{"container-class":"upload-footer-extension",enabled:!e.running},model:{value:e.extension,callback:function(t){e.extension=t},expression:"extension"}},e._l(e.extensions,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v(e._s(i.text))])})),0),e._v(" "),t("span",{staticClass:"upload-footer-extension-info upload-icon-button fa fa-search"}),e._v(" "),t("span",{staticClass:"upload-footer-title"},[e._v("Genome (set all):")]),e._v(" "),t("select2",{ref:"footerGenome",attrs:{"container-class":"upload-footer-genome",enabled:!e.running},model:{value:e.genome,callback:function(t){e.genome=t},expression:"genome"}},e._l(e.listGenomes,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v("\n "+e._s(i.text)+"\n ")])})),0)]},proxy:!0},{key:"buttons",fn:function(){return[t("b-button",{ref:"btnClose",staticClass:"ui-button-default",attrs:{id:"btn-close",title:e.btnCloseTitle},on:{click:function(t){return e.$emit("dismiss")}}},[e._v("\n "+e._s(e._f("localize")(e.btnCloseTitle))+"\n ")]),e._v(" "),t("b-button",{ref:"btnReset",staticClass:"ui-button-default",attrs:{id:"btn-reset",title:e.btnResetTitle,disabled:!e.enableReset},on:{click:e._eventReset}},[e._v("\n "+e._s(e.btnResetTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnStop",staticClass:"ui-button-default",attrs:{id:"btn-stop",title:e.btnStopTitle,disabled:0==e.counterRunning},on:{click:e._eventStop}},[e._v("\n "+e._s(e.btnStopTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnBuild",staticClass:"ui-button-default",attrs:{id:"btn-build",disabled:!e.enableBuild,title:e.btnBuildTitle,variant:e.enableBuild?"primary":""},on:{click:e._eventBuild}},[e._v("\n "+e._s(e.btnBuildTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnStart",staticClass:"ui-button-default",attrs:{id:"btn-start",title:e.btnStartTitle,disabled:!e.enableStart,variant:e.enableStart?"primary":""},on:{click:e._eventStart}},[e._v("\n "+e._s(e.btnStartTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnCreate",staticClass:"ui-button-default",attrs:{id:"btn-new",title:e.btnCreateTitle,disabled:!e.enableSources},on:{click:function(t){return e._eventCreate()}}},[t("span",{staticClass:"fa fa-edit"}),e._v(e._s(e.btnCreateTitle)+"\n ")]),e._v(" "),e.remoteFiles?t("b-button",{ref:"btnFtp",staticClass:"ui-button-default",attrs:{id:"btn-ftp",disabled:!e.enableSources},on:{click:e._eventRemoteFiles}},[t("span",{staticClass:"fa fa-folder-open-o"}),e._v(e._s(e.btnFilesTitle)+"\n ")]):e._e(),e._v(" "),t("b-button",{ref:"btnLocal",staticClass:"ui-button-default",attrs:{id:"btn-local",title:e.btnLocalTitle,disabled:!e.enableSources},on:{click:e.uploadSelect}},[t("span",{staticClass:"fa fa-laptop"}),e._v(e._s(e.btnLocalTitle)+"\n ")])]},proxy:!0}])},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelper,expression:"showHelper"}],staticClass:"upload-helper"},[t("i",{staticClass:"fa fa-files-o"}),e._v("Drop files here")]),e._v(" "),t("table",{directives:[{name:"show",rawName:"v-show",value:!e.showHelper,expression:"!showHelper"}],ref:"uploadTable",staticClass:"upload-table ui-table-striped"},[t("thead",[t("tr",[t("th",[e._v("Size")]),e._v(" "),t("th",[e._v("Status")]),e._v(" "),t("th")])]),e._v(" "),t("tbody")])])}),[],!1,null,null,null).exports;var U=i(42193);const V=O.extend({initialize:function(e,t){var i=this;this.app=e,this.list_extensions=e.listExtensions,this.model=t.model,this.setElement(this._template(t.model)),this.$mode=this.$(".upload-mode"),this.$title=this.$(".upload-title"),this.$text=this.$(".upload-text"),this.$size=this.$(".upload-size"),this.$info_text=this.$(".upload-info-text"),this.$info_progress=this.$(".upload-info-progress"),this.$text_content=this.$(".upload-text-content"),this.$settings=this.$(".upload-settings"),this.$symbol=this.$(".upload-symbol"),this.$progress_bar=this.$(".upload-progress-bar"),this.$percentage=this.$(".upload-percentage"),this._setupSettings();var s=this.app.genome,n=this.app.extension;this.select_genome=new U.Z.View({css:"upload-genome",data:i.app.listGenomes,container:this.$(".upload-genome"),value:s,onchange:function(e){i.model.set("genome",e)}}),this.select_extension=new U.Z.View({css:"upload-extension",data:i.app.extensions,container:this.$(".upload-extension"),value:n,onchange:function(e){i.model.set("extension",e)}}),this.model.set({genome:s,extension:n}),this.$symbol.on("click",(()=>{i._removeRow()})),this.$(".upload-extension-info").on("click",(e=>{const t=this.upload_extension;t?t.extension_popup.visible?t.extension_popup.hide():(t.extension_popup.remove(),this._makeUploadExtensionsPopover(e)):this._makeUploadExtensionsPopover(e)})).on("mousedown",(e=>{e.preventDefault()})),this.$settings.on("click",(e=>{i._showSettings()})).on("mousedown",(e=>{e.preventDefault()})),this.$text_content.on("change input",(e=>{i.model.set({url_paste:p()(e.target).val(),file_size:p()(e.target).val().length})})),this.$title.on("change input",(e=>{i.model.set({file_name:p()(e.target).val()})})),this._setupUploadBoxListeners(),this.listenTo(this.model,"change:genome",(()=>{i._refreshGenome()})),this.listenTo(this.model,"change:extension",(()=>{i._refreshExtension()}))},render:function(){this._refreshType(),this._refreshPercentage(),this._refreshStatus(),this._refreshInfo(),this._refreshGenome(),this._refreshExtension(),this._refreshFileSize()},remove:function(){this.select_genome.remove(),this.select_extension.remove(),a().View.prototype.remove.apply(this)},_refreshType:function(){var e=this.model.attributes;this.$title.val(d.default.escape(e.file_name)),this.$title.select(),this.$size.html(f.ZP.bytesToString(e.file_size)),this.$mode.removeClass().addClass("upload-mode").addClass("text-primary"),"new"==e.file_mode?(this.$text.css({width:this.$el.width()-16+"px",top:this.$el.height()-8+"px"}).show(),this.$el.height(this.$el.height()-8+this.$text.height()+16),this.$mode.addClass("fa fa-edit")):"local"==e.file_mode?this.$mode.addClass("fa fa-laptop"):"ftp"==e.file_mode&&this.$mode.addClass("fa fa-folder-open-o")},_refreshExtension:function(){this.select_extension.value(this.model.get("extension"))},_refreshGenome:function(){this.select_genome.value(this.model.get("genome"))},_refreshStatus:function(){var e=this.model.get("status");this.$symbol.removeClass().addClass("upload-symbol").addClass(this.status_classes[e]),this.model.set("enabled","init"==e);var t=this.model.get("enabled");this.$text_content.attr("disabled",!t),this.$title.attr("disabled",!t),t?(this.select_genome.enable(),this.select_extension.enable()):(this.select_genome.disable(),this.select_extension.disable()),this.$info_progress.show(),this.$el.removeClass().addClass("upload-row"),this._renderStatusType(e)},_makeUploadExtensionsPopover:function(e){this.upload_extension=new C({$el:p()(e.target),title:this.select_extension.text(),extension:this.select_extension.value(),list:this.list_extensions})},_template:function(e){return`<tr id="upload-row-${e.id}" class="upload-row">\n <td>\n <div class="upload-text-column">\n <div class="upload-mode"/>\n <input class="upload-title ml-2 border rounded"/>\n <div class="upload-text">\n <div class="upload-text-info">\n Download data from the web by entering URLs (one per line) or directly paste content.\n </div>\n <textarea class="upload-text-content form-control"/>\n </div>\n </div>\n </td>\n <td>\n <div class="upload-size"/>\n </td>\n <td>\n <div class="upload-extension float-left mr-1"/>\n <div class="upload-extension-info upload-icon-button fa fa-search"/>\n </td>\n <td>\n <div class="upload-genome"/>\n </td>\n <td>\n <div class="upload-settings upload-icon-button fa fa-gear"/>\n </td>\n <td>\n <div class="upload-info">\n <div class="upload-info-text"/>\n <div class="upload-info-progress progress">\n <div class="upload-progress-bar progress-bar progress-bar-success"/>\n <div class="upload-percentage">0%</div>\n </div>\n </div>\n </td>\n <td>\n <div class="upload-symbol ${this.status_classes.init}"/>\n </td>\n </tr>`}}),q={components:{BButton:F.T},mixins:[M],props:{multiple:{type:Boolean,default:!0}},data(){return{uploadUrl:null,topInfo:"",highlightBox:!1,showHelper:!0,extension:this.app.defaultExtension,genome:this.app.defaultDbKey,listExtensions:[],listGenomes:[],running:!1,rowUploadModel:V,counterAnnounce:0,counterSuccess:0,counterError:0,counterRunning:0,uploadSize:0,uploadCompleted:0,enableReset:!1,enableStart:!1,enableSources:!1,btnLocalTitle:(0,c.ZP)("Choose local files"),btnCreateTitle:(0,c.ZP)("Paste/Fetch data"),btnStartTitle:(0,c.ZP)("Start"),btnStopTitle:(0,c.ZP)("Pause"),btnResetTitle:(0,c.ZP)("Reset")}},computed:{extensions(){return d.default.filter(this.listExtensions,(e=>!e.composite_files))},appModel(){return this.app.model}},watch:{extension:function(e){this.updateExtension(e)},genome:function(e){this.updateGenome(e)}},created(){this.initCollection(),this.initAppProperties()},mounted(){this.initExtensionInfo(),this.initFtpPopover(),this.initUploadbox({initUrl:e=>(this.uploadUrl||(this.uploadUrl=this.getRequestUrl([this.collection.get(e)],this.history_id)),this.uploadUrl),multiple:this.multiple,announce:(e,t)=>{this._eventAnnounce(e,t)},initialize:e=>(0,E.SF)([this.collection.get(e)],this.history_id),progress:(e,t)=>{this._eventProgress(e,t)},success:(e,t)=>{this._eventSuccess(e,t)},error:(e,t)=>{this._eventError(e,t)},warning:(e,t)=>{this._eventWarning(e,t)},complete:()=>{this._eventComplete()},ondragover:()=>{this.highlightBox=!0},ondragleave:()=>{this.highlightBox=!1},chunkSize:this.app.chunkUploadSize}),this.collection.on("remove",(e=>{this._eventRemove(e)})),this._updateStateForCounters()},methods:{_newUploadModelProps:function(e,t){return{id:e,file_name:t.name,file_size:t.size,file_mode:t.mode||"local",file_path:t.path,file_uri:t.uri,file_data:t}},_eventSuccess:function(e){var t=this.collection.get(e);t.set({percentage:100,status:"success"}),this._updateStateForSuccess(t)},_eventReset:function(){0===this.counterRunning&&(this.collection.reset(),this.counterAnnounce=0,this.counterSuccess=0,this.counterError=0,this.counterRunning=0,this.uploadbox.reset(),this.extension=this.app.defaultExtension,this.genome=this.app.defaultDbKey,this.appModel.set("percentage",0),this._updateStateForCounters())}}},W=(0,$.Z)(q,(function(){var e=this,t=e._self._c;return t("upload-wrapper",{ref:"wrapper",attrs:{"top-info":e.topInfo,"highlight-box":e.highlightBox},scopedSlots:e._u([{key:"footer",fn:function(){return[t("span",{staticClass:"upload-footer-title"},[e._v("Type (set all):")]),e._v(" "),t("select2",{ref:"footerExtension",attrs:{"container-class":"upload-footer-extension",enabled:!e.running},model:{value:e.extension,callback:function(t){e.extension=t},expression:"extension"}},e._l(e.extensions,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v(e._s(i.text))])})),0),e._v(" "),t("span",{staticClass:"upload-footer-extension-info upload-icon-button fa fa-search"}),e._v(" "),t("span",{staticClass:"upload-footer-title"},[e._v("Genome (set all):")]),e._v(" "),t("select2",{ref:"footerGenome",attrs:{"container-class":"upload-footer-genome",enabled:!e.running},model:{value:e.genome,callback:function(t){e.genome=t},expression:"genome"}},e._l(e.listGenomes,(function(i,s){return t("option",{key:s,domProps:{value:i.id}},[e._v("\n "+e._s(i.text)+"\n ")])})),0)]},proxy:!0},{key:"buttons",fn:function(){return[t("b-button",{ref:"btnClose",staticClass:"ui-button-default upload-close",attrs:{id:"btn-close",title:e.btnCloseTitle},on:{click:function(t){return e.$emit("dismiss")}}},[e._v("\n "+e._s(e.btnCloseTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnReset",staticClass:"ui-button-default",attrs:{id:"btn-reset",title:e.btnResetTitle,disabled:!e.enableReset},on:{click:e._eventReset}},[e._v("\n "+e._s(e.btnResetTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnStop",staticClass:"ui-button-default",attrs:{id:"btn-stop",title:e.btnStopTitle,disabled:0==e.counterRunning},on:{click:e._eventStop}},[e._v("\n "+e._s(e.btnStopTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnStart",staticClass:"ui-button-default upload-start",attrs:{id:"btn-start",disabled:!e.enableStart,title:e.btnStartTitle,variant:e.enableStart?"primary":""},on:{click:e._eventStart}},[e._v("\n "+e._s(e.btnStartTitle)+"\n ")]),e._v(" "),t("b-button",{ref:"btnCreate",staticClass:"ui-button-default upload-paste",attrs:{id:"btn-new",title:e.btnCreateTitle,disabled:!e.enableSources},on:{click:function(t){return e._eventCreate()}}},[t("span",{staticClass:"fa fa-edit"}),e._v(e._s(e.btnCreateTitle)+"\n ")]),e._v(" "),e.remoteFiles?t("b-button",{ref:"btnFtp",staticClass:"ui-button-default",attrs:{id:"btn-ftp",disabled:!e.enableSources},on:{click:e._eventRemoteFiles}},[t("span",{staticClass:"fa fa-folder-open-o"}),e._v(e._s(e.btnFilesTitle)+"\n ")]):e._e(),e._v(" "),t("b-button",{ref:"btnLocal",staticClass:"ui-button-default",attrs:{id:"btn-local",title:e.btnLocalTitle,disabled:!e.enableSources},on:{click:e.uploadSelect}},[t("span",{staticClass:"fa fa-laptop"}),e._v(e._s(e.btnLocalTitle)+"\n ")])]},proxy:!0}])},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showHelper,expression:"showHelper"}],staticClass:"upload-helper"},[t("i",{staticClass:"fa fa-files-o"}),e._v("Drop files here")]),e._v(" "),t("table",{directives:[{name:"show",rawName:"v-show",value:!e.showHelper,expression:"!showHelper"}],ref:"uploadTable",staticClass:"upload-table ui-table-striped"},[t("thead",[t("tr",[t("th",[e._v("Name")]),e._v(" "),t("th",[e._v("Size")]),e._v(" "),t("th",[e._v("Type")]),e._v(" "),t("th",[e._v("Genome")]),e._v(" "),t("th",[e._v("Settings")]),e._v(" "),t("th",[e._v("Status")]),e._v(" "),t("th")])]),e._v(" "),t("tbody")])])}),[],!1,null,null,null).exports;var G=i(62352),Z=i(57810),K=i(9382),Y=i(51436),J=i(67347);K.vI.add(Y.Xcf);const X={components:{BLink:J.we,BButton:F.T,FontAwesomeIcon:Z.GN},mixins:[M],data:()=>({datasets:[],ftpFiles:[],uris:[],topInfo:"Tabular source data to extract collection files and metadata from",enableBuild:!1,dataType:"datasets",selectedDatasetId:null,selectedDatasetName:null,sourceContent:"",selectionType:"paste",btnBuildTitle:"Build",btnResetTitle:"Reset"}),computed:{enableReset:function(){return this.sourceContent.length>0}},watch:{selectionType:function(e){"dataset"!=e||this.datasetsSet?"ftp"==e?r.ZP.getRemoteFiles((e=>{this.sourceContent=e.map((e=>e.path)).join("\n"),this.ftpFiles=e})):"remote_files"==e&&(0,u.hy)(this._handleRemoteFilesUri,{mode:"directory"}):this.onSelectDataset()},selectedDatasetId:function(e){if(!e)return void(this.sourceContent="");const t=(0,g.Bz)();N().get(`${(0,G.getAppRoot)()}api/histories/${t.currHistoryPanel.model.id}/contents/${e}/display`,{responseType:"text"}).then((e=>{this.sourceContent=e.data})).catch((e=>console.log(e)))}},created(){this.initCollection(),this.initAppProperties()},methods:{_eventReset:function(){this.selectedDatasetId=null,this.sourceContent=""},_handleRemoteFilesUri:function(e){r.ZP.getRemoteFilesAt(e.url).then((e=>{e=e.filter((e=>"File"==e.class)),this.sourceContent=e.map((e=>e.uri)).join("\n"),this.uris=e}))},_eventBuild:function(){this._buildSelection(this.sourceContent)},onSelectDataset:function(){(0,g.Bz)().data.dialog((e=>{this.selectedDatasetId=e.id,this.selectedDatasetName=e.name}),{multiple:!1,library:!1,format:null,allowUpload:!1})},_buildSelection:function(e){const t=this.selectionType,i={},s=(0,g.Bz)();"dataset"==t||"paste"==t?(i.selectionType="raw",i.content=e):"ftp"==t?(i.selectionType="ftp",i.elements=this.ftpFiles,i.ftpUploadSite=this.ftpUploadSite):"remote_files"==t&&(i.selectionType="remote_files",i.elements=this.uris),i.dataType=this.dataType,s.currHistoryPanel.buildCollection("rules",i,null,!0),this.$emit("dismiss")}}},Q=(0,$.Z)(X,(function(){var e=this,t=e._self._c;return t("upload-wrapper",{ref:"wrapper",attrs:{"top-info":e._f("l")(e.topInfo)},scopedSlots:e._u([{key:"buttons",fn:function(){return[t("b-button",{ref:"btnClose",staticClass:"ui-button-default",attrs:{id:"btn-close",title:e.btnCloseTitle},on:{click:function(t){return e.$emit("dismiss")}}},[e._v("\n "+e._s(e._f("l")(e.btnCloseTitle))+"\n ")]),e._v(" "),t("b-button",{ref:"btnBuild",staticClass:"ui-button-default",attrs:{id:"btn-build",disabled:!e.sourceContent,title:e.btnBuildTitle,variant:e.sourceContent?"primary":""},on:{click:e._eventBuild}},[e._v("\n "+e._s(e._f("l")(e.btnBuildTitle))+"\n ")]),e._v(" "),t("b-button",{ref:"btnReset",staticClass:"ui-button-default",attrs:{id:"btn-reset",title:e.btnResetTitle,disabled:!e.enableReset},on:{click:e._eventReset}},[e._v("\n "+e._s(e._f("l")(e.btnResetTitle))+"\n ")])]},proxy:!0}])},[t("span",{staticClass:"float-left",staticStyle:{width:"25%",display:"inline",height:"100%"}},[t("div",{staticClass:"upload-rule-option"},[t("div",{staticClass:"upload-rule-option-title"},[e._v(e._s(e._f("l")("Upload data as")))]),e._v(" "),t("div",{staticClass:"rule-data-type"},[t("select2",{attrs:{"container-class":"upload-footer-selection"},model:{value:e.dataType,callback:function(t){e.dataType=t},expression:"dataType"}},[t("option",{attrs:{value:"datasets"}},[e._v("Datasets")]),e._v(" "),t("option",{attrs:{value:"collections"}},[e._v("Collection(s)")])])],1)]),e._v(" "),t("div",{staticClass:"upload-rule-option"},[t("div",{staticClass:"upload-rule-option-title"},[e._v(e._s(e._f("l")("Load tabular data from")))]),e._v(" "),t("div",{staticClass:"rule-select-type"},[t("select2",{attrs:{"container-class":"upload-footer-selection"},model:{value:e.selectionType,callback:function(t){e.selectionType=t},expression:"selectionType"}},[t("option",{attrs:{value:"paste"}},[e._v(e._s(e._f("l")("Pasted Table")))]),e._v(" "),t("option",{attrs:{value:"dataset"}},[e._v(e._s(e._f("l")("History Dataset")))]),e._v(" "),e.ftpUploadSite?t("option",{attrs:{value:"ftp"}},[e._v(e._s(e._f("l")("FTP Directory")))]):e._e(),e._v(" "),t("option",{attrs:{value:"remote_files"}},[e._v(e._s(e._f("l")("Remote Files Directory")))])])],1)]),e._v(" "),"dataset"==e.selectionType?t("div",{staticClass:"upload-rule-option",attrs:{id:"upload-rule-dataset-option"}},[t("div",{staticClass:"upload-rule-option-title"},[e._v("History dataset")]),e._v(" "),t("div",[null==e.selectedDatasetName?t("b-link",{on:{click:e.onSelectDataset}},[e._v("\n "+e._s(e._f("l")("Select"))+"\n ")]):t("span",[e._v("\n "+e._s(e.selectedDatasetName)+" "),t("font-awesome-icon",{attrs:{icon:"edit"},on:{click:e.onSelectDataset}})],1)],1)]):e._e()]),e._v(" "),t("span",{staticStyle:{display:"inline",float:"right",width:"75%",height:"300px"}},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sourceContent,expression:"sourceContent"}],staticClass:"upload-rule-source-content form-control",staticStyle:{height:"100%"},attrs:{disabled:"paste"!=e.selectionType},domProps:{value:e.sourceContent},on:{input:function(t){t.target.composing||(e.sourceContent=t.target.value)}}})])])}),[],!1,null,null,null).exports;var ee=i(97175),te=i(58887),ie=i(51015);const se={components:{Collection:B,Composite:R,Default:W,RulesInput:Q,LoadingSpan:ee.Z,BTabs:te.M,BTab:ie.L},props:{currentHistoryId:{type:String,required:!0},currentUserId:{type:String,default:""},...E.$7},data:function(){return{listGenomes:[],listExtensions:[],genomesSet:!1,extensionsSet:!1,datatypesMapper:null,datatypesMapperReady:!0}},computed:{historyAvailable(){return Boolean(this.currentHistoryId)},ready(){return this.genomesSet&&this.extensionsSet&&this.historyAvailable&&this.datatypesMapperReady},unrestricted(){return null===this.formats&&this.multiple},effectiveExtensions(){if(null===this.formats||!this.datatypesMapperReady)return this.listExtensions;const e=[];return this.listExtensions.forEach((t=>{(t&&"auto"==t.id||this.datatypesMapper.isSubTypeOfAny(t.id,this.formats))&&e.push(t)})),e},formatRestricted(){return null!==this.formats},showComposite(){return!this.formatRestricted||this.effectiveExtensions.some((e=>!!e.composite_files))},showRegular(){return!this.formatRestricted||this.effectiveExtensions.some((e=>!e.composite_files))},showCollection(){return!!this.unrestricted},showRules(){return!!this.unrestricted||this.multiple}},created(){this.model=new(a().Model)({label:"Load Data",percentage:0,status:"",onunload:function(){},onclick:function(){}}),this.model.on("change",(e=>{const{changed:t}=e;for(const[e,i]of Object.entries(t))this.eventHub.$emit(`upload:${e}`,i)})),r.ZP.getUploadDatatypes(this.datatypesDisableAuto,this.auto).then((e=>{this.extensionsSet=!0,this.listExtensions=e})).catch((e=>{console.log("Error in UploadModalContent, unable to load datatypes",e)})),r.ZP.getUploadDbKeys(this.defaultDbKey).then((e=>{this.genomesSet=!0,this.listGenomes=e})).catch((e=>{console.log("Error in uploadModalContent, unable to load genomes",e)})),null!==this.formats?(this.datatypesMapperReady=!1,(0,l.B)().then((e=>{this.datatypesMapper=e,this.datatypesMapperReady=!0}))):this.datatypesMapperReady=!0},beforeDestroy(){this.model.get("onunload")()},mounted(){this.id=String(this._uid)},methods:{currentFtp:function(){return this.currentUserId&&this.ftpUploadSite},toData:function(e,t,i=!1){return(0,E.SF)(e,t,i)}}},ne=(0,$.Z)(se,(function(){var e=this,t=e._self._c;return e.ready?t("b-tabs",[e.showRegular?t("b-tab",{attrs:{id:"regular",title:"Regular","button-id":"tab-title-link-regular"}},[t("default",e._g({attrs:{app:this,"lazy-load-max":50,multiple:e.multiple,"has-callback":e.hasCallback,selectable:e.selectable}},e.$listeners))],1):e._e(),e._v(" "),e.showComposite?t("b-tab",{attrs:{id:"composite",title:"Composite","button-id":"tab-title-link-composite"}},[t("composite",e._g({attrs:{app:this,"has-callback":e.hasCallback,selectable:e.selectable}},e.$listeners))],1):e._e(),e._v(" "),e.showCollection?t("b-tab",{attrs:{id:"collection",title:"Collection","button-id":"tab-title-link-collection"}},[t("collection",e._g({attrs:{app:this,"has-callback":e.hasCallback,selectable:e.selectable}},e.$listeners))],1):e._e(),e._v(" "),e.showRules?t("b-tab",{attrs:{id:"rule-based",title:"Rule-based","button-id":"tab-title-link-rule-based"}},[t("rules-input",e._g({attrs:{app:this,"has-callback":e.hasCallback,selectable:e.selectable}},e.$listeners))],1):e._e()],1):t("div",[t("loading-span",{attrs:{message:"Loading required information from Galaxy server."}})],1)}),[],!1,null,null,null).exports,oe={components:{CurrentUser:s.Z,UserHistories:n.Z,UploadModalContent:ne},props:{title:{type:String,default:"Download from web or upload from disk"},modalStatic:{type:Boolean,default:!0},...E.$7},data:()=>({modalShow:!1}),watch:{modalShow(){this.setIframeEvents(this.modalShow)}},mounted(){this.show(),this.$root.$on("openUpload",this.show)},methods:{show(){this.modalShow=!0},hide(){this.modalShow=!1},dismiss(e){void 0!==e&&this.$root.$emit("uploadResult",e),this.hide()},setIframeEvents(e){const t=document.getElementById("galaxy_main");t&&(t.style["pointer-events"]=e?"none":"auto")}}},ae=(0,$.Z)(oe,(function(){var e=this,t=e._self._c;return t("CurrentUser",{scopedSlots:e._u([{key:"default",fn:function({user:i}){return[i?t("UserHistories",{attrs:{user:i},scopedSlots:e._u([{key:"default",fn:function({currentHistoryId:s}){return[t("b-modal",{attrs:{static:e.modalStatic,"header-class":"no-separator","modal-class":"ui-modal","dialog-class":"upload-dialog","body-class":"upload-dialog-body","no-enforce-focus":"","hide-footer":""},scopedSlots:e._u([{key:"modal-header",fn:function(){return[t("h2",{staticClass:"title h-sm",attrs:{tabindex:"0"}},[e._v(e._s(e._f("localize")(e.title)))])]},proxy:!0}],null,!0),model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[e._v(" "),s?t("UploadModalContent",e._b({attrs:{"current-user-id":i.id,"current-history-id":s},on:{dismiss:e.dismiss}},"UploadModalContent",{...e.$props,...e.$attrs},!1)):e._e()],1)]}}],null,!0)}):e._e()]}}])})}),[],!1,null,null,null).exports;var re=i(59466);function le(e={}){const t=function(e={}){const t=(0,g.Bz)(),i=(0,P.Bg)(),s={multiple:!0,uploadPath:t.config.nginx_upload_path||`${i}api/tools`,chunkUploadSize:t.config.chunk_upload_size,fileSourcesConfigured:t.config.file_sources_configured,ftpUploadSite:t.config.ftp_upload_site,defaultDbKey:t.config.default_genome,defaultExtension:t.config.default_extension,selectable:!1};return Object.assign({},s,e)}(e),{callback:i,...s}=t;i&&(s.hasCallback=!0);const n=(0,re.b)(ae),o=document.createElement("div");document.body.appendChild(o);const a=n(s,o);return i&&a.$once("uploadResult",i),a}let ce=null;var de=i(26069),ue=i(5870);K.vI.add(Y.cf$);const he={components:{FontAwesomeIcon:Z.GN},directives:{"v-b-tooltip":ue.o},props:{title:{type:String,default:"Download from URL or upload files from disk"}},data:()=>({status:"",percentage:0}),mounted(){this.eventHub.$on("upload:status",this.setStatus),this.eventHub.$on("upload:percentage",this.setPercentage),"upload1"==de.Z.get("tool_id")&&this.showUploadDialog()},beforeDestroy(){this.eventHub.$off("upload:status",this.setStatus),this.eventHub.$off("upload:percentage",this.setPercentage)},methods:{showUploadDialog(){ce||(ce=le(undefined)),ce.$emit("openUpload",ce)},setStatus(e){this.status=e},setPercentage(e){this.percentage=Math.round(e)}}};(0,$.Z)(he,(function(){var e=this,t=e._self._c;return t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],staticClass:"upload-button",attrs:{id:"tool-panel-upload-button","aria-label":e._f("localize")(e.title),title:e._f("localize")(e.title),size:"sm"},on:{click:e.showUploadDialog}},[t("div",{staticClass:"progress"},[t("div",{staticClass:"progress-bar progress-bar-notransition",class:`progress-bar-${e.status}`,style:{width:`${e.percentage}%`}})]),e._v(" "),t("span",{staticClass:"position-relative"},[t("font-awesome-icon",{staticClass:"mr-1",attrs:{icon:"upload"}}),e._v(" "),t("b",{directives:[{name:"localize",rawName:"v-localize"}]},[e._v("Upload Data")])],1)])}),[],!1,null,null,null).exports},14275:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var s=i(20629);const n={computed:{...(0,s.Se)("user",["currentUser"])},methods:{...(0,s.nv)("user",["loadUser"])},created(){this.loadUser()},render(){return this.$scopedSlots.default({user:this.currentUser})}}},38963:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var s=i(20629);const n={props:{user:{type:Object,required:!0}},computed:{...(0,s.Se)("history",["currentHistoryId","currentHistory","histories","historiesLoading"]),currentHistoryModel(){return null!==this.currentHistory?Object.assign({},this.currentHistory):null},historyModels(){return this.histories.map((e=>Object.assign({},e)))}},methods:{...(0,s.nv)("history",["loadHistoryById","createNewHistory","updateHistory","deleteHistory","setCurrentHistory","setHistory","loadHistories","secureHistory"])},watch:{user:{immediate:!0,handler(e,t){t?.id!=e?.id&&this.loadHistories()}},currentHistoryId(e){this.loadHistoryById(e)}},render(){return this.$scopedSlots.default({histories:this.historyModels,currentHistory:this.currentHistoryModel,currentHistoryId:this.currentHistoryId,historiesLoading:this.historiesLoading,handlers:{setHistory:this.setHistory,setCurrentHistory:e=>this.setCurrentHistory(e.id),createNewHistory:this.createNewHistory,updateHistory:this.updateHistory,deleteHistory:e=>this.deleteHistory({history:e}),deleteCurrentHistory:()=>this.deleteHistory({history:this.currentHistory}),purgeHistory:e=>this.deleteHistory({history:e,purge:!0}),purgeCurrentHistory:()=>this.deleteHistory({history:this.currentHistory,purge:!0}),secureHistory:this.secureHistory}})}}},23504:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s={name:"production",debug:!1,rxjsDebug:!1,caching:{adapter:"idb",revs_limit:1,pageSize:60},buildTimestamp:"2022-12-16T14:09:55.032Z"}},98756:(e,t,i)=>{"use strict";var s=i(5279);window.addEventListener("load",(()=>(0,s.HE)("generic")))},76233:(e,t,i)=>{var s=i(20615);i(26822),i(80510),i(58900),i(62268),i(77766),i(35670),i(91777),i(8257),i(44809),i(22862),i(7218),e.exports=s},20615:function(e,t){var i,s,n;s="undefined"!=typeof window?window:this,n=function(s,n){var o=[],a=s.document,r=o.slice,l=o.concat,c=o.push,d=o.indexOf,u={},h=u.toString,p=u.hasOwnProperty,f={},m="2.2.4",g=function(e,t){return new g.fn.init(e,t)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,_=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length"in e&&e.length,i=g.type(e);return"function"!==i&&!g.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:m,constructor:g,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return g.each(this,e)},map:function(e){return this.pushStack(g.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,i,s,n,o,a=arguments[0]||{},r=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[r]||{},r++),"object"==typeof a||g.isFunction(a)||(a={}),r===l&&(a=this,r--);r<l;r++)if(null!=(e=arguments[r]))for(t in e)i=a[t],a!==(s=e[t])&&(c&&s&&(g.isPlainObject(s)||(n=g.isArray(s)))?(n?(n=!1,o=i&&g.isArray(i)?i:[]):o=i&&g.isPlainObject(i)?i:{},a[t]=g.extend(c,o,s)):void 0!==s&&(a[t]=s));return a},g.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!g.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==g.type(e)||e.nodeType||g.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[h.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;(e=g.trim(e))&&(1===e.indexOf("use strict")?((t=a.createElement("script")).text=e,a.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(y,"ms-").replace(b,_)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,s=0;if(w(e))for(i=e.length;s<i&&!1!==t.call(e[s],s,e[s]);s++);else for(s in e)if(!1===t.call(e[s],s,e[s]))break;return e},trim:function(e){return null==e?"":(e+"").replace(v,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(w(Object(e))?g.merge(i,"string"==typeof e?[e]:e):c.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:d.call(t,e,i)},merge:function(e,t){for(var i=+t.length,s=0,n=e.length;s<i;s++)e[n++]=t[s];return e.length=n,e},grep:function(e,t,i){for(var s=[],n=0,o=e.length,a=!i;n<o;n++)!t(e[n],n)!==a&&s.push(e[n]);return s},map:function(e,t,i){var s,n,o=0,a=[];if(w(e))for(s=e.length;o<s;o++)null!=(n=t(e[o],o,i))&&a.push(n);else for(o in e)null!=(n=t(e[o],o,i))&&a.push(n);return l.apply([],a)},guid:1,proxy:function(e,t){var i,s,n;if("string"==typeof t&&(i=e[t],t=e,e=i),g.isFunction(e))return s=r.call(arguments,2),n=function(){return e.apply(t||this,s.concat(r.call(arguments)))},n.guid=e.guid=e.guid||g.guid++,n},now:Date.now,support:f}),"function"==typeof Symbol&&(g.fn[Symbol.iterator]=o[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,i,s,n,o,a,r,l,c,d,u,h,p,f,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,x=0,C=0,S=oe(),k=oe(),T=oe(),$=function(e,t){return e===t&&(u=!0),0},D=1<<31,E={}.hasOwnProperty,A=[],P=A.pop,L=A.push,N=A.push,I=A.slice,M=function(e,t){for(var i=0,s=e.length;i<s;i++)if(e[i]===t)return i;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H="\\[[\\x20\\t\\r\\n\\f]*("+O+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+R+"*\\]",F=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",z=new RegExp(R+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),W=new RegExp(F),G=new RegExp("^"+O+"$"),Z={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ie=function(e,t,i){var s="0x"+t-65536;return s!=s||i?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,1023&s|56320)},se=function(){h()};try{N.apply(A=I.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){N={apply:A.length?function(e,t){L.apply(e,I.call(t))}:function(e,t){for(var i=e.length,s=0;e[i++]=t[s++];);e.length=i-1}}}function ne(e,t,s,n){var o,r,c,d,u,f,v,y,x=t&&t.ownerDocument,C=t?t.nodeType:9;if(s=s||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return s;if(!n&&((t?t.ownerDocument||t:w)!==p&&h(t),t=t||p,m)){if(11!==C&&(f=X.exec(e)))if(o=f[1]){if(9===C){if(!(c=t.getElementById(o)))return s;if(c.id===o)return s.push(c),s}else if(x&&(c=x.getElementById(o))&&b(t,c)&&c.id===o)return s.push(c),s}else{if(f[2])return N.apply(s,t.getElementsByTagName(e)),s;if((o=f[3])&&i.getElementsByClassName&&t.getElementsByClassName)return N.apply(s,t.getElementsByClassName(o)),s}if(i.qsa&&!T[e+" "]&&(!g||!g.test(e))){if(1!==C)x=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((d=t.getAttribute("id"))?d=d.replace(ee,"\\$&"):t.setAttribute("id",d=_),r=(v=a(e)).length,u=G.test(d)?"#"+d:"[id='"+d+"']";r--;)v[r]=u+" "+me(v[r]);y=v.join(","),x=Q.test(e)&&pe(t.parentNode)||t}if(y)try{return N.apply(s,x.querySelectorAll(y)),s}catch(e){}finally{d===_&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,s,n)}function oe(){var e=[];return function t(i,n){return e.push(i+" ")>s.cacheLength&&delete t[e.shift()],t[i+" "]=n}}function ae(e){return e[_]=!0,e}function re(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),n=i.length;n--;)s.attrHandle[i[n]]=t}function ce(e,t){var i=t&&e,s=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(s)return s;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ue(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function he(e){return ae((function(t){return t=+t,ae((function(i,s){for(var n,o=e([],i.length,t),a=o.length;a--;)i[n=o[a]]&&(i[n]=!(s[n]=i[n]))}))}))}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ne.support={},o=ne.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=ne.setDocument=function(e){var t,n,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(f=(p=a).documentElement,m=!o(p),(n=p.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",se,!1):n.attachEvent&&n.attachEvent("onunload",se)),i.attributes=re((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=re((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=re((function(e){return f.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),i.getById?(s.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}},s.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}}):(delete s.find.ID,s.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),s.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,s=[],n=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[n++];)1===i.nodeType&&s.push(i);return s}return o},s.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=J.test(p.querySelectorAll))&&(re((function(e){f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+j+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")})),re((function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&re((function(e){i.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",F)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,s=t&&t.parentNode;return e===s||!(!s||1!==s.nodeType||!(i.contains?i.contains(s):e.compareDocumentPosition&&16&e.compareDocumentPosition(s)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return u=!0,0;var s=!e.compareDocumentPosition-!t.compareDocumentPosition;return s||(1&(s=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===s?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:d?M(d,e)-M(d,t):0:4&s?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,s=0,n=e.parentNode,o=t.parentNode,a=[e],r=[t];if(!n||!o)return e===p?-1:t===p?1:n?-1:o?1:d?M(d,e)-M(d,t):0;if(n===o)return ce(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)r.unshift(i);for(;a[s]===r[s];)s++;return s?ce(a[s],r[s]):a[s]===w?-1:r[s]===w?1:0},p):p},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(q,"='$1']"),i.matchesSelector&&m&&!T[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var s=y.call(e,t);if(s||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return s}catch(e){}return ne(t,p,null,[e]).length>0},ne.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},ne.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var n=s.attrHandle[t.toLowerCase()],o=n&&E.call(s.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return void 0!==o?o:i.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ne.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ne.uniqueSort=function(e){var t,s=[],n=0,o=0;if(u=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort($),u){for(;t=e[o++];)t===e[o]&&(n=s.push(o));for(;n--;)e.splice(s[n],1)}return d=null,e},n=ne.getText=function(e){var t,i="",s=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=n(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[s++];)i+=n(t);return i},s=ne.selectors={cacheLength:50,createPseudo:ae,match:Z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ne.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ne.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+R+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(s){var n=ne.attr(s,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&n.indexOf(i)>-1:"$="===t?i&&n.slice(-i.length)===i:"~="===t?(" "+n.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,s,n){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),r="of-type"===t;return 1===s&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var c,d,u,h,p,f,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=r&&t.nodeName.toLowerCase(),y=!l&&!r,b=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(r?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(c=(d=(u=(h=g)[_]||(h[_]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===t){d[e]=[x,p,b];break}}else if(y&&(b=p=(c=(d=(u=(h=t)[_]||(h[_]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((r?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((d=(u=h[_]||(h[_]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]=[x,b]),h!==t)););return(b-=n)===s||b%s==0&&b/s>=0}}},PSEUDO:function(e,t){var i,n=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ne.error("unsupported pseudo: "+e);return n[_]?n(t):n.length>1?(i=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,i){for(var s,o=n(e,t),a=o.length;a--;)e[s=M(e,o[a])]=!(i[s]=o[a])})):function(e){return n(e,0,i)}):n}},pseudos:{not:ae((function(e){var t=[],i=[],s=r(e.replace(B,"$1"));return s[_]?ae((function(e,t,i,n){for(var o,a=s(e,null,n,[]),r=e.length;r--;)(o=a[r])&&(e[r]=!(t[r]=o))})):function(e,n,o){return t[0]=e,s(t,null,o,i),t[0]=null,!i.pop()}})),has:ae((function(e){return function(t){return ne(e,t).length>0}})),contains:ae((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||t.innerText||n(t)).indexOf(e)>-1}})),lang:ae((function(e){return G.test(e||"")||ne.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,i){return[i<0?i+t:i]})),even:he((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:he((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:he((function(e,t,i){for(var s=i<0?i+t:i;--s>=0;)e.push(s);return e})),gt:he((function(e,t,i){for(var s=i<0?i+t:i;++s<t;)e.push(s);return e}))}},s.pseudos.nth=s.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})s.pseudos[t]=ue(t);function fe(){}function me(e){for(var t=0,i=e.length,s="";t<i;t++)s+=e[t].value;return s}function ge(e,t,i){var s=t.dir,n=i&&"parentNode"===s,o=C++;return t.first?function(t,i,o){for(;t=t[s];)if(1===t.nodeType||n)return e(t,i,o)}:function(t,i,a){var r,l,c,d=[x,o];if(a){for(;t=t[s];)if((1===t.nodeType||n)&&e(t,i,a))return!0}else for(;t=t[s];)if(1===t.nodeType||n){if((r=(l=(c=t[_]||(t[_]={}))[t.uniqueID]||(c[t.uniqueID]={}))[s])&&r[0]===x&&r[1]===o)return d[2]=r[2];if(l[s]=d,d[2]=e(t,i,a))return!0}}}function ve(e){return e.length>1?function(t,i,s){for(var n=e.length;n--;)if(!e[n](t,i,s))return!1;return!0}:e[0]}function ye(e,t,i,s,n){for(var o,a=[],r=0,l=e.length,c=null!=t;r<l;r++)(o=e[r])&&(i&&!i(o,s,n)||(a.push(o),c&&t.push(r)));return a}function be(e,t,i,s,n,o){return s&&!s[_]&&(s=be(s)),n&&!n[_]&&(n=be(n,o)),ae((function(o,a,r,l){var c,d,u,h=[],p=[],f=a.length,m=o||function(e,t,i){for(var s=0,n=t.length;s<n;s++)ne(e,t[s],i);return i}(t||"*",r.nodeType?[r]:r,[]),g=!e||!o&&t?m:ye(m,h,e,r,l),v=i?n||(o?e:f||s)?[]:a:g;if(i&&i(g,v,r,l),s)for(c=ye(v,p),s(c,[],r,l),d=c.length;d--;)(u=c[d])&&(v[p[d]]=!(g[p[d]]=u));if(o){if(n||e){if(n){for(c=[],d=v.length;d--;)(u=v[d])&&c.push(g[d]=u);n(null,v=[],c,l)}for(d=v.length;d--;)(u=v[d])&&(c=n?M(o,u):h[d])>-1&&(o[c]=!(a[c]=u))}}else v=ye(v===a?v.splice(f,v.length):v),n?n(null,a,v,l):N.apply(a,v)}))}function _e(e){for(var t,i,n,o=e.length,a=s.relative[e[0].type],r=a||s.relative[" "],l=a?1:0,d=ge((function(e){return e===t}),r,!0),u=ge((function(e){return M(t,e)>-1}),r,!0),h=[function(e,i,s){var n=!a&&(s||i!==c)||((t=i).nodeType?d(e,i,s):u(e,i,s));return t=null,n}];l<o;l++)if(i=s.relative[e[l].type])h=[ge(ve(h),i)];else{if((i=s.filter[e[l].type].apply(null,e[l].matches))[_]){for(n=++l;n<o&&!s.relative[e[n].type];n++);return be(l>1&&ve(h),l>1&&me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),i,l<n&&_e(e.slice(l,n)),n<o&&_e(e=e.slice(n)),n<o&&me(e))}h.push(i)}return ve(h)}return fe.prototype=s.filters=s.pseudos,s.setFilters=new fe,a=ne.tokenize=function(e,t){var i,n,o,a,r,l,c,d=k[e+" "];if(d)return t?0:d.slice(0);for(r=e,l=[],c=s.preFilter;r;){for(a in i&&!(n=U.exec(r))||(n&&(r=r.slice(n[0].length)||r),l.push(o=[])),i=!1,(n=V.exec(r))&&(i=n.shift(),o.push({value:i,type:n[0].replace(B," ")}),r=r.slice(i.length)),s.filter)!(n=Z[a].exec(r))||c[a]&&!(n=c[a](n))||(i=n.shift(),o.push({value:i,type:a,matches:n}),r=r.slice(i.length));if(!i)break}return t?r.length:r?ne.error(e):k(e,l).slice(0)},r=ne.compile=function(e,t){var i,n=[],o=[],r=T[e+" "];if(!r){for(t||(t=a(e)),i=t.length;i--;)(r=_e(t[i]))[_]?n.push(r):o.push(r);r=T(e,function(e,t){var i=t.length>0,n=e.length>0,o=function(o,a,r,l,d){var u,f,g,v=0,y="0",b=o&&[],_=[],w=c,C=o||n&&s.find.TAG("*",d),S=x+=null==w?1:Math.random()||.1,k=C.length;for(d&&(c=a===p||a||d);y!==k&&null!=(u=C[y]);y++){if(n&&u){for(f=0,a||u.ownerDocument===p||(h(u),r=!m);g=e[f++];)if(g(u,a||p,r)){l.push(u);break}d&&(x=S)}i&&((u=!g&&u)&&v--,o&&b.push(u))}if(v+=y,i&&y!==v){for(f=0;g=t[f++];)g(b,_,a,r);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=P.call(l));_=ye(_)}N.apply(l,_),d&&!o&&_.length>0&&v+t.length>1&&ne.uniqueSort(l)}return d&&(x=S,c=w),b};return i?ae(o):o}(o,n)),r.selector=e}return r},l=ne.select=function(e,t,n,o){var l,c,d,u,h,p="function"==typeof e&&e,f=!o&&a(e=p.selector||e);if(n=n||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(d=c[0]).type&&i.getById&&9===t.nodeType&&m&&s.relative[c[1].type]){if(!(t=(s.find.ID(d.matches[0].replace(te,ie),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=Z.needsContext.test(e)?0:c.length;l--&&(d=c[l],!s.relative[u=d.type]);)if((h=s.find[u])&&(o=h(d.matches[0].replace(te,ie),Q.test(c[0].type)&&pe(t.parentNode)||t))){if(c.splice(l,1),!(e=o.length&&me(c)))return N.apply(n,o),n;break}}return(p||r(e,f))(o,t,!m,n,!t||Q.test(e)&&pe(t.parentNode)||t),n},i.sortStable=_.split("").sort($).join("")===_,i.detectDuplicates=!!u,h(),i.sortDetached=re((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),re((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||le("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&re((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||le("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),re((function(e){return null==e.getAttribute("disabled")}))||le(j,(function(e,t,i){var s;if(!i)return!0===e[t]?t.toLowerCase():(s=e.getAttributeNode(t))&&s.specified?s.value:null})),ne}(s);g.find=x,g.expr=x.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=x.uniqueSort,g.text=x.getText,g.isXMLDoc=x.isXML,g.contains=x.contains;var C=function(e,t,i){for(var s=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&g(e).is(i))break;s.push(e)}return s},S=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},k=g.expr.match.needsContext,T=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,$=/^.[^:#\[\.,]*$/;function D(e,t,i){if(g.isFunction(t))return g.grep(e,(function(e,s){return!!t.call(e,s,e)!==i}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if($.test(t))return g.filter(t,e,i);t=g.filter(t,e)}return g.grep(e,(function(e){return d.call(t,e)>-1!==i}))}g.filter=function(e,t,i){var s=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===s.nodeType?g.find.matchesSelector(s,e)?[s]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,i=this.length,s=[],n=this;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;t<i;t++)if(g.contains(n[t],this))return!0})));for(t=0;t<i;t++)g.find(e,n[t],s);return(s=this.pushStack(i>1?g.unique(s):s)).selector=this.selector?this.selector+" "+e:e,s},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?g(e):e||[],!1).length}});var E,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t,i){var s,n;if(!e)return this;if(i=i||E,"string"==typeof e){if(!(s="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!s[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),T.test(s[1])&&g.isPlainObject(t))for(s in t)g.isFunction(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return(n=a.getElementById(s[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==i.ready?i.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,E=g(a);var P=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.fn.extend({has:function(e){var t=g(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(g.contains(this,t[e]))return!0}))},closest:function(e,t){for(var i,s=0,n=this.length,o=[],a=k.test(e)||"string"!=typeof e?g(e,t||this.context):0;s<n;s++)for(i=this[s];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&g.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(g(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,i){return C(e,"parentNode",i)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,i){return C(e,"nextSibling",i)},prevUntil:function(e,t,i){return C(e,"previousSibling",i)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return e.contentDocument||g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(i,s){var n=g.map(this,t,i);return"Until"!==e.slice(-5)&&(s=i),s&&"string"==typeof s&&(n=g.filter(s,n)),this.length>1&&(L[e]||g.uniqueSort(n),P.test(e)&&n.reverse()),this.pushStack(n)}}));var I,M=/\S+/g;function j(){a.removeEventListener("DOMContentLoaded",j),s.removeEventListener("load",j),g.ready()}g.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return g.each(e.match(M)||[],(function(e,i){t[i]=!0})),t}(e):g.extend({},e);var t,i,s,n,o=[],a=[],r=-1,l=function(){for(n=e.once,s=t=!0;a.length;r=-1)for(i=a.shift();++r<o.length;)!1===o[r].apply(i[0],i[1])&&e.stopOnFalse&&(r=o.length,i=!1);e.memory||(i=!1),t=!1,n&&(o=i?[]:"")},c={add:function(){return o&&(i&&!t&&(r=o.length-1,a.push(i)),function t(i){g.each(i,(function(i,s){g.isFunction(s)?e.unique&&c.has(s)||o.push(s):s&&s.length&&"string"!==g.type(s)&&t(s)}))}(arguments),i&&!t&&l()),this},remove:function(){return g.each(arguments,(function(e,t){for(var i;(i=g.inArray(t,o,i))>-1;)o.splice(i,1),i<=r&&r--})),this},has:function(e){return e?g.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return n=a=[],i||(o=i=""),this},locked:function(){return!!n},fireWith:function(e,i){return n||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!s}};return c},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(i){g.each(t,(function(t,o){var a=g.isFunction(e[t])&&e[t];n[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===s?i.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,s):s}},n={};return s.pipe=s.then,g.each(t,(function(e,o){var a=o[2],r=o[3];s[o[1]]=a.add,r&&a.add((function(){i=r}),t[1^e][2].disable,t[2][2].lock),n[o[0]]=function(){return n[o[0]+"With"](this===n?s:this,arguments),this},n[o[0]+"With"]=a.fireWith})),s.promise(n),e&&e.call(n,n),n},when:function(e){var t,i,s,n=0,o=r.call(arguments),a=o.length,l=1!==a||e&&g.isFunction(e.promise)?a:0,c=1===l?e:g.Deferred(),d=function(e,i,s){return function(n){i[e]=this,s[e]=arguments.length>1?r.call(arguments):n,s===t?c.notifyWith(i,s):--l||c.resolveWith(i,s)}};if(a>1)for(t=new Array(a),i=new Array(a),s=new Array(a);n<a;n++)o[n]&&g.isFunction(o[n].promise)?o[n].promise().progress(d(n,i,t)).done(d(n,s,o)).fail(c.reject):--l;return l||c.resolveWith(s,o),c.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||(I.resolveWith(a,[g]),g.fn.triggerHandler&&(g(a).triggerHandler("ready"),g(a).off("ready"))))}}),g.ready.promise=function(e){return I||(I=g.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?s.setTimeout(g.ready):(a.addEventListener("DOMContentLoaded",j),s.addEventListener("load",j))),I.promise(e)},g.ready.promise();var R=function(e,t,i,s,n,o,a){var r=0,l=e.length,c=null==i;if("object"===g.type(i))for(r in n=!0,i)R(e,t,r,i[r],!0,o,a);else if(void 0!==s&&(n=!0,g.isFunction(s)||(a=!0),c&&(a?(t.call(e,s),t=null):(c=t,t=function(e,t,i){return c.call(g(e),i)})),t))for(;r<l;r++)t(e[r],i,a?s:s.call(e[r],r,t(e[r],i)));return n?e:c?t.call(e):l?t(e[0],i):o},O=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function H(){this.expando=g.expando+H.uid++}H.uid=1,H.prototype={register:function(e,t){var i=t||{};return e.nodeType?e[this.expando]=i:Object.defineProperty(e,this.expando,{value:i,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!O(e))return{};var t=e[this.expando];return t||(t={},O(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var s,n=this.cache(e);if("string"==typeof t)n[t]=i;else for(s in t)n[s]=t[s];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,i){var s;return void 0===t||t&&"string"==typeof t&&void 0===i?void 0!==(s=this.get(e,t))?s:this.get(e,g.camelCase(t)):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,s,n,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{g.isArray(t)?s=t.concat(t.map(g.camelCase)):(n=g.camelCase(t),s=t in o?[t,n]:(s=n)in o?[s]:s.match(M)||[]),i=s.length;for(;i--;)delete o[s[i]]}(void 0===t||g.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!g.isEmptyObject(t)}};var F=new H,z=new H,B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,i){var s;if(void 0===i&&1===e.nodeType)if(s="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(s))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:B.test(i)?g.parseJSON(i):i)}catch(e){}z.set(e,t,i)}else i=void 0;return i}g.extend({hasData:function(e){return z.hasData(e)||F.hasData(e)},data:function(e,t,i){return z.access(e,t,i)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,i){return F.access(e,t,i)},_removeData:function(e,t){F.remove(e,t)}}),g.fn.extend({data:function(e,t){var i,s,n,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(n=z.get(o),1===o.nodeType&&!F.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(s=a[i].name).indexOf("data-")&&(s=g.camelCase(s.slice(5)),V(o,s,n[s]));F.set(o,"hasDataAttrs",!0)}return n}return"object"==typeof e?this.each((function(){z.set(this,e)})):R(this,(function(t){var i,s;if(o&&void 0===t)return void 0!==(i=z.get(o,e)||z.get(o,e.replace(U,"-$&").toLowerCase()))?i:(s=g.camelCase(e),void 0!==(i=z.get(o,s))||void 0!==(i=V(o,s,void 0))?i:void 0);s=g.camelCase(e),this.each((function(){var i=z.get(this,s);z.set(this,s,t),e.indexOf("-")>-1&&void 0!==i&&z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){z.remove(this,e)}))}}),g.extend({queue:function(e,t,i){var s;if(e)return t=(t||"fx")+"queue",s=F.get(e,t),i&&(!s||g.isArray(i)?s=F.access(e,t,g.makeArray(i)):s.push(i)),s||[]},dequeue:function(e,t){t=t||"fx";var i=g.queue(e,t),s=i.length,n=i.shift(),o=g._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===t&&i.unshift("inprogress"),delete o.stop,n.call(e,(function(){g.dequeue(e,t)}),o)),!s&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return F.get(e,i)||F.access(e,i,{empty:g.Callbacks("once memory").add((function(){F.remove(e,[t+"queue",i])}))})}}),g.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?g.queue(this[0],e):void 0===t?this:this.each((function(){var i=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,s=1,n=g.Deferred(),o=this,a=this.length,r=function(){--s||n.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=F.get(o[a],e+"queueHooks"))&&i.empty&&(s++,i.empty.add(r));return r(),n.promise(t)}});var q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=new RegExp("^(?:([+-])=|)("+q+")([a-z%]*)$","i"),G=["Top","Right","Bottom","Left"],Z=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)};function K(e,t,i,s){var n,o=1,a=20,r=s?function(){return s.cur()}:function(){return g.css(e,t,"")},l=r(),c=i&&i[3]||(g.cssNumber[t]?"":"px"),d=(g.cssNumber[t]||"px"!==c&&+l)&&W.exec(g.css(e,t));if(d&&d[3]!==c){c=c||d[3],i=i||[],d=+l||1;do{d/=o=o||".5",g.style(e,t,d+c)}while(o!==(o=r()/l)&&1!==o&&--a)}return i&&(d=+d||+l||0,n=i[1]?d+(i[1]+1)*i[2]:+i[2],s&&(s.unit=c,s.start=d,s.end=n)),n}var Y=/^(?:checkbox|radio)$/i,J=/<([\w:-]+)/,X=/^$|\/(?:java|ecma)script/i,Q={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ee(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&g.nodeName(e,t)?g.merge([e],i):i}function te(e,t){for(var i=0,s=e.length;i<s;i++)F.set(e[i],"globalEval",!t||F.get(t[i],"globalEval"))}Q.optgroup=Q.option,Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead,Q.th=Q.td;var ie,se,ne=/<|&#?\w+;/;function oe(e,t,i,s,n){for(var o,a,r,l,c,d,u=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===g.type(o))g.merge(h,o.nodeType?[o]:o);else if(ne.test(o)){for(a=a||u.appendChild(t.createElement("div")),r=(J.exec(o)||["",""])[1].toLowerCase(),l=Q[r]||Q._default,a.innerHTML=l[1]+g.htmlPrefilter(o)+l[2],d=l[0];d--;)a=a.lastChild;g.merge(h,a.childNodes),(a=u.firstChild).textContent=""}else h.push(t.createTextNode(o));for(u.textContent="",p=0;o=h[p++];)if(s&&g.inArray(o,s)>-1)n&&n.push(o);else if(c=g.contains(o.ownerDocument,o),a=ee(u.appendChild(o),"script"),c&&te(a),i)for(d=0;o=a[d++];)X.test(o.type||"")&&i.push(o);return u}ie=a.createDocumentFragment().appendChild(a.createElement("div")),(se=a.createElement("input")).setAttribute("type","radio"),se.setAttribute("checked","checked"),se.setAttribute("name","t"),ie.appendChild(se),f.checkClone=ie.cloneNode(!0).cloneNode(!0).lastChild.checked,ie.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ie.cloneNode(!0).lastChild.defaultValue;var ae=/^key/,re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,le=/^([^.]*)(?:\.(.+)|)/;function ce(){return!0}function de(){return!1}function ue(){try{return a.activeElement}catch(e){}}function he(e,t,i,s,n,o){var a,r;if("object"==typeof t){for(r in"string"!=typeof i&&(s=s||i,i=void 0),t)he(e,r,i,s,t[r],o);return e}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=de;else if(!n)return e;return 1===o&&(a=n,n=function(e){return g().off(e),a.apply(this,arguments)},n.guid=a.guid||(a.guid=g.guid++)),e.each((function(){g.event.add(this,t,n,s,i)}))}g.event={global:{},add:function(e,t,i,s,n){var o,a,r,l,c,d,u,h,p,f,m,v=F.get(e);if(v)for(i.handler&&(i=(o=i).handler,n=o.selector),i.guid||(i.guid=g.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==g&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(M)||[""]).length;c--;)p=m=(r=le.exec(t[c])||[])[1],f=(r[2]||"").split(".").sort(),p&&(u=g.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,u=g.event.special[p]||{},d=g.extend({type:p,origType:m,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&g.expr.match.needsContext.test(n),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,s,f,a)||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?h.splice(h.delegateCount++,0,d):h.push(d),g.event.global[p]=!0)},remove:function(e,t,i,s,n){var o,a,r,l,c,d,u,h,p,f,m,v=F.hasData(e)&&F.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(M)||[""]).length;c--;)if(p=m=(r=le.exec(t[c])||[])[1],f=(r[2]||"").split(".").sort(),p){for(u=g.event.special[p]||{},h=l[p=(s?u.delegateType:u.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)d=h[o],!n&&m!==d.origType||i&&i.guid!==d.guid||r&&!r.test(d.namespace)||s&&s!==d.selector&&("**"!==s||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));a&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,f,v.handle)||g.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)g.event.remove(e,p+t[c],i,s,!0);g.isEmptyObject(l)&&F.remove(e,"handle events")}},dispatch:function(e){e=g.event.fix(e);var t,i,s,n,o,a=[],l=r.call(arguments),c=(F.get(this,"events")||{})[e.type]||[],d=g.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,e)){for(a=g.event.handlers.call(this,e,c),t=0;(n=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(s=((g.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,l))&&!1===(e.result=s)&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,s,n,o,a=[],r=t.delegateCount,l=e.target;if(r&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(s=[],i=0;i<r;i++)void 0===s[n=(o=t[i]).selector+" "]&&(s[n]=o.needsContext?g(n,this).index(l)>-1:g.find(n,this,null,[l]).length),s[n]&&s.push(o);s.length&&a.push({elem:l,handlers:s})}return r<t.length&&a.push({elem:this,handlers:t.slice(r)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,s,n,o=t.button;return null==e.pageX&&null!=t.clientX&&(s=(i=e.target.ownerDocument||a).documentElement,n=i.body,e.pageX=t.clientX+(s&&s.scrollLeft||n&&n.scrollLeft||0)-(s&&s.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(s&&s.scrollTop||n&&n.scrollTop||0)-(s&&s.clientTop||n&&n.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[g.expando])return e;var t,i,s,n=e.type,o=e,r=this.fixHooks[n];for(r||(this.fixHooks[n]=r=re.test(n)?this.mouseHooks:ae.test(n)?this.keyHooks:{}),s=r.props?this.props.concat(r.props):this.props,e=new g.Event(o),t=s.length;t--;)e[i=s[t]]=o[i];return e.target||(e.target=a),3===e.target.nodeType&&(e.target=e.target.parentNode),r.filter?r.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ue()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ue()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},g.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ce:de):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:de,isPropagationStopped:de,isImmediatePropagationStopped:de,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,s=this,n=e.relatedTarget,o=e.handleObj;return n&&(n===s||g.contains(s,n))||(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=t),i}}})),g.fn.extend({on:function(e,t,i,s){return he(this,e,t,i,s)},one:function(e,t,i,s){return he(this,e,t,i,s,1)},off:function(e,t,i){var s,n;if(e&&e.preventDefault&&e.handleObj)return s=e.handleObj,g(e.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if("object"==typeof e){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=de),this.each((function(){g.event.remove(this,e,i,t)}))}});var pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,fe=/<script|<style|<link/i,me=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ye(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _e(e){var t=ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function we(e,t){var i,s,n,o,a,r,l,c;if(1===t.nodeType){if(F.hasData(e)&&(o=F.access(e),a=F.set(t,o),c=o.events))for(n in delete a.handle,a.events={},c)for(i=0,s=c[n].length;i<s;i++)g.event.add(t,n,c[n][i]);z.hasData(e)&&(r=z.access(e),l=g.extend({},r),z.set(t,l))}}function xe(e,t,i,s){t=l.apply([],t);var n,o,a,r,c,d,u=0,h=e.length,p=h-1,m=t[0],v=g.isFunction(m);if(v||h>1&&"string"==typeof m&&!f.checkClone&&me.test(m))return e.each((function(n){var o=e.eq(n);v&&(t[0]=m.call(this,n,o.html())),xe(o,t,i,s)}));if(h&&(o=(n=oe(t,e[0].ownerDocument,!1,e,s)).firstChild,1===n.childNodes.length&&(n=o),o||s)){for(r=(a=g.map(ee(n,"script"),be)).length;u<h;u++)c=n,u!==p&&(c=g.clone(c,!0,!0),r&&g.merge(a,ee(c,"script"))),i.call(e[u],c,u);if(r)for(d=a[a.length-1].ownerDocument,g.map(a,_e),u=0;u<r;u++)c=a[u],X.test(c.type||"")&&!F.access(c,"globalEval")&&g.contains(d,c)&&(c.src?g._evalUrl&&g._evalUrl(c.src):g.globalEval(c.textContent.replace(ve,"")))}return e}function Ce(e,t,i){for(var s,n=t?g.filter(t,e):e,o=0;null!=(s=n[o]);o++)i||1!==s.nodeType||g.cleanData(ee(s)),s.parentNode&&(i&&g.contains(s.ownerDocument,s)&&te(ee(s,"script")),s.parentNode.removeChild(s));return e}g.extend({htmlPrefilter:function(e){return e.replace(pe,"<$1></$2>")},clone:function(e,t,i){var s,n,o,a,r,l,c,d=e.cloneNode(!0),u=g.contains(e.ownerDocument,e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(a=ee(d),s=0,n=(o=ee(e)).length;s<n;s++)r=o[s],void 0,"input"===(c=(l=a[s]).nodeName.toLowerCase())&&Y.test(r.type)?l.checked=r.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=r.defaultValue);if(t)if(i)for(o=o||ee(e),a=a||ee(d),s=0,n=o.length;s<n;s++)we(o[s],a[s]);else we(e,d);return(a=ee(d,"script")).length>0&&te(a,!u&&ee(e,"script")),d},cleanData:function(e){for(var t,i,s,n=g.event.special,o=0;void 0!==(i=e[o]);o++)if(O(i)){if(t=i[F.expando]){if(t.events)for(s in t.events)n[s]?g.event.remove(i,s):g.removeEvent(i,s,t.handle);i[F.expando]=void 0}i[z.expando]&&(i[z.expando]=void 0)}}}),g.fn.extend({domManip:xe,detach:function(e){return Ce(this,e,!0)},remove:function(e){return Ce(this,e)},text:function(e){return R(this,(function(e){return void 0===e?g.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return xe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ye(this,e).appendChild(e)}))},prepend:function(){return xe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ye(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return xe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return xe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return R(this,(function(e){var t=this[0]||{},i=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Q[(J.exec(e)||["",""])[1].toLowerCase()]){e=g.htmlPrefilter(e);try{for(;i<s;i++)1===(t=this[i]||{}).nodeType&&(g.cleanData(ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return xe(this,arguments,(function(t){var i=this.parentNode;g.inArray(this,e)<0&&(g.cleanData(ee(this)),i&&i.replaceChild(t,this))}),e)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var i,s=[],n=g(e),o=n.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),g(n[a])[t](i),c.apply(s,i.get());return this.pushStack(s)}}));var Se,ke={HTML:"block",BODY:"block"};function Te(e,t){var i=g(t.createElement(e)).appendTo(t.body),s=g.css(i[0],"display");return i.detach(),s}function $e(e){var t=a,i=ke[e];return i||("none"!==(i=Te(e,t))&&i||((t=(Se=(Se||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=Te(e,t),Se.detach()),ke[e]=i),i}var De=/^margin/,Ee=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),Ae=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=s),t.getComputedStyle(e)},Pe=function(e,t,i,s){var n,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in n=i.apply(e,s||[]),t)e.style[o]=a[o];return n},Le=a.documentElement;function Ne(e,t,i){var s,n,o,a,r=e.style;return""!==(a=(i=i||Ae(e))?i.getPropertyValue(t)||i[t]:void 0)&&void 0!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),i&&!f.pixelMarginRight()&&Ee.test(a)&&De.test(t)&&(s=r.width,n=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=s,r.minWidth=n,r.maxWidth=o),void 0!==a?a+"":a}function Ie(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,i,n,o=a.createElement("div"),r=a.createElement("div");function l(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r.innerHTML="",Le.appendChild(o);var a=s.getComputedStyle(r);e="1%"!==a.top,n="2px"===a.marginLeft,t="4px"===a.width,r.style.marginRight="50%",i="4px"===a.marginRight,Le.removeChild(o)}r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(r),g.extend(f,{pixelPosition:function(){return l(),e},boxSizingReliable:function(){return null==t&&l(),t},pixelMarginRight:function(){return null==t&&l(),i},reliableMarginLeft:function(){return null==t&&l(),n},reliableMarginRight:function(){var e,t=r.appendChild(a.createElement("div"));return t.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",r.style.width="1px",Le.appendChild(o),e=!parseFloat(s.getComputedStyle(t).marginRight),Le.removeChild(o),r.removeChild(t),e}}))}();var Me=/^(none|table(?!-c[ea]).+)/,je={position:"absolute",visibility:"hidden",display:"block"},Re={letterSpacing:"0",fontWeight:"400"},Oe=["Webkit","O","Moz","ms"],He=a.createElement("div").style;function Fe(e){if(e in He)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=Oe.length;i--;)if((e=Oe[i]+t)in He)return e}function ze(e,t,i){var s=W.exec(t);return s?Math.max(0,s[2]-(i||0))+(s[3]||"px"):t}function Be(e,t,i,s,n){for(var o=i===(s?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===i&&(a+=g.css(e,i+G[o],!0,n)),s?("content"===i&&(a-=g.css(e,"padding"+G[o],!0,n)),"margin"!==i&&(a-=g.css(e,"border"+G[o]+"Width",!0,n))):(a+=g.css(e,"padding"+G[o],!0,n),"padding"!==i&&(a+=g.css(e,"border"+G[o]+"Width",!0,n)));return a}function Ue(e,t,i){var s=!0,n="width"===t?e.offsetWidth:e.offsetHeight,o=Ae(e),a="border-box"===g.css(e,"boxSizing",!1,o);if(n<=0||null==n){if(((n=Ne(e,t,o))<0||null==n)&&(n=e.style[t]),Ee.test(n))return n;s=a&&(f.boxSizingReliable()||n===e.style[t]),n=parseFloat(n)||0}return n+Be(e,t,i||(a?"border":"content"),s,o)+"px"}function Ve(e,t){for(var i,s,n,o=[],a=0,r=e.length;a<r;a++)(s=e[a]).style&&(o[a]=F.get(s,"olddisplay"),i=s.style.display,t?(o[a]||"none"!==i||(s.style.display=""),""===s.style.display&&Z(s)&&(o[a]=F.access(s,"olddisplay",$e(s.nodeName)))):(n=Z(s),"none"===i&&n||F.set(s,"olddisplay",n?i:g.css(s,"display"))));for(a=0;a<r;a++)(s=e[a]).style&&(t&&"none"!==s.style.display&&""!==s.style.display||(s.style.display=t?o[a]||"":"none"));return e}function qe(e,t,i,s,n){return new qe.prototype.init(e,t,i,s,n)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ne(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,i,s){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,o,a,r=g.camelCase(t),l=e.style;if(t=g.cssProps[r]||(g.cssProps[r]=Fe(r)||r),a=g.cssHooks[t]||g.cssHooks[r],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(e,!1,s))?n:l[t];"string"==(o=typeof i)&&(n=W.exec(i))&&n[1]&&(i=K(e,t,n),o="number"),null!=i&&i==i&&("number"===o&&(i+=n&&n[3]||(g.cssNumber[r]?"":"px")),f.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,s))||(l[t]=i))}},css:function(e,t,i,s){var n,o,a,r=g.camelCase(t);return t=g.cssProps[r]||(g.cssProps[r]=Fe(r)||r),(a=g.cssHooks[t]||g.cssHooks[r])&&"get"in a&&(n=a.get(e,!0,i)),void 0===n&&(n=Ne(e,t,s)),"normal"===n&&t in Re&&(n=Re[t]),""===i||i?(o=parseFloat(n),!0===i||isFinite(o)?o||0:n):n}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,i,s){if(i)return Me.test(g.css(e,"display"))&&0===e.offsetWidth?Pe(e,je,(function(){return Ue(e,t,s)})):Ue(e,t,s)},set:function(e,i,s){var n,o=s&&Ae(e),a=s&&Be(e,t,s,"border-box"===g.css(e,"boxSizing",!1,o),o);return a&&(n=W.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=g.css(e,t)),ze(0,i,a)}}})),g.cssHooks.marginLeft=Ie(f.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ne(e,"marginLeft"))||e.getBoundingClientRect().left-Pe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),g.cssHooks.marginRight=Ie(f.reliableMarginRight,(function(e,t){if(t)return Pe(e,{display:"inline-block"},Ne,[e,"marginRight"])})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(i){for(var s=0,n={},o="string"==typeof i?i.split(" "):[i];s<4;s++)n[e+G[s]+t]=o[s]||o[s-2]||o[0];return n}},De.test(e)||(g.cssHooks[e+t].set=ze)})),g.fn.extend({css:function(e,t){return R(this,(function(e,t,i){var s,n,o={},a=0;if(g.isArray(t)){for(s=Ae(e),n=t.length;a<n;a++)o[t[a]]=g.css(e,t[a],!1,s);return o}return void 0!==i?g.style(e,t,i):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ve(this,!0)},hide:function(){return Ve(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Z(this)?g(this).show():g(this).hide()}))}}),g.Tween=qe,qe.prototype={constructor:qe,init:function(e,t,i,s,n,o){this.elem=e,this.prop=i,this.easing=n||g.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=o||(g.cssNumber[i]?"":"px")},cur:function(){var e=qe.propHooks[this.prop];return e&&e.get?e.get(this):qe.propHooks._default.get(this)},run:function(e){var t,i=qe.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):qe.propHooks._default.set(this),this}},qe.prototype.init.prototype=qe.prototype,qe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[g.cssProps[e.prop]]&&!g.cssHooks[e.prop]?e.elem[e.prop]=e.now:g.style(e.elem,e.prop,e.now+e.unit)}}},qe.propHooks.scrollTop=qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},g.fx=qe.prototype.init,g.fx.step={};var We,Ge,Ze=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function Ye(){return s.setTimeout((function(){We=void 0})),We=g.now()}function Je(e,t){var i,s=0,n={height:e};for(t=t?1:0;s<4;s+=2-t)n["margin"+(i=G[s])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function Xe(e,t,i){for(var s,n=(Qe.tweeners[t]||[]).concat(Qe.tweeners["*"]),o=0,a=n.length;o<a;o++)if(s=n[o].call(i,t,e))return s}function Qe(e,t,i){var s,n,o=0,a=Qe.prefilters.length,r=g.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var t=We||Ye(),i=Math.max(0,c.startTime+c.duration-t),s=1-(i/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(s);return r.notifyWith(e,[c,s,i]),s<1&&a?i:(r.resolveWith(e,[c]),!1)},c=r.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},i),originalProperties:t,originalOptions:i,startTime:We||Ye(),duration:i.duration,tweens:[],createTween:function(t,i){var s=g.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(s),s},stop:function(t){var i=0,s=t?c.tweens.length:0;if(n)return this;for(n=!0;i<s;i++)c.tweens[i].run(1);return t?(r.notifyWith(e,[c,1,0]),r.resolveWith(e,[c,t])):r.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var i,s,n,o,a;for(i in e)if(n=t[s=g.camelCase(i)],o=e[i],g.isArray(o)&&(n=o[1],o=e[i]=o[0]),i!==s&&(e[s]=o,delete e[i]),(a=g.cssHooks[s])&&"expand"in a)for(i in o=a.expand(o),delete e[s],o)i in e||(e[i]=o[i],t[i]=n);else t[s]=n}(d,c.opts.specialEasing);o<a;o++)if(s=Qe.prefilters[o].call(c,e,d,c.opts))return g.isFunction(s.stop)&&(g._queueHooks(c.elem,c.opts.queue).stop=g.proxy(s.stop,s)),s;return g.map(d,Xe,c),g.isFunction(c.opts.start)&&c.opts.start.call(e,c),g.fx.timer(g.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}g.Animation=g.extend(Qe,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return K(i.elem,e,W.exec(t),i),i}]},tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.match(M);for(var i,s=0,n=e.length;s<n;s++)i=e[s],Qe.tweeners[i]=Qe.tweeners[i]||[],Qe.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var s,n,o,a,r,l,c,d=this,u={},h=e.style,p=e.nodeType&&Z(e),f=F.get(e,"fxshow");for(s in i.queue||(null==(r=g._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,d.always((function(){d.always((function(){r.unqueued--,g.queue(e,"fx").length||r.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=g.css(e,"display"))?F.get(e,"olddisplay")||$e(e.nodeName):c)&&"none"===g.css(e,"float")&&(h.display="inline-block")),i.overflow&&(h.overflow="hidden",d.always((function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}))),t)if(n=t[s],Ze.exec(n)){if(delete t[s],o=o||"toggle"===n,n===(p?"hide":"show")){if("show"!==n||!f||void 0===f[s])continue;p=!0}u[s]=f&&f[s]||g.style(e,s)}else c=void 0;if(g.isEmptyObject(u))"inline"===("none"===c?$e(e.nodeName):c)&&(h.display=c);else for(s in f?"hidden"in f&&(p=f.hidden):f=F.access(e,"fxshow",{}),o&&(f.hidden=!p),p?g(e).show():d.done((function(){g(e).hide()})),d.done((function(){var t;for(t in F.remove(e,"fxshow"),u)g.style(e,t,u[t])})),u)a=Xe(p?f[s]:0,s,d),s in f||(f[s]=a.start,p&&(a.end=a.start,a.start="width"===s||"height"===s?1:0))}],prefilter:function(e,t){t?Qe.prefilters.unshift(e):Qe.prefilters.push(e)}}),g.speed=function(e,t,i){var s=e&&"object"==typeof e?g.extend({},e):{complete:i||!i&&t||g.isFunction(e)&&e,duration:e,easing:i&&t||t&&!g.isFunction(t)&&t};return s.duration=g.fx.off?0:"number"==typeof s.duration?s.duration:s.duration in g.fx.speeds?g.fx.speeds[s.duration]:g.fx.speeds._default,null!=s.queue&&!0!==s.queue||(s.queue="fx"),s.old=s.complete,s.complete=function(){g.isFunction(s.old)&&s.old.call(this),s.queue&&g.dequeue(this,s.queue)},s},g.fn.extend({fadeTo:function(e,t,i,s){return this.filter(Z).css("opacity",0).show().end().animate({opacity:t},e,i,s)},animate:function(e,t,i,s){var n=g.isEmptyObject(e),o=g.speed(t,i,s),a=function(){var t=Qe(this,g.extend({},e),o);(n||F.get(this,"finish"))&&t.stop(!0)};return a.finish=a,n||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,i){var s=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",o=g.timers,a=F.get(this);if(n)a[n]&&a[n].stop&&s(a[n]);else for(n in a)a[n]&&a[n].stop&&Ke.test(n)&&s(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(i),t=!1,o.splice(n,1));!t&&i||g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=F.get(this),s=i[e+"queue"],n=i[e+"queueHooks"],o=g.timers,a=s?s.length:0;for(i.finish=!0,g.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)s[t]&&s[t].finish&&s[t].finish.call(this);delete i.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var i=g.fn[t];g.fn[t]=function(e,s,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Je(t,!0),e,s,n)}})),g.each({slideDown:Je("show"),slideUp:Je("hide"),slideToggle:Je("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,i,s){return this.animate(t,e,i,s)}})),g.timers=[],g.fx.tick=function(){var e,t=0,i=g.timers;for(We=g.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||g.fx.stop(),We=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){Ge||(Ge=s.setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){s.clearInterval(Ge),Ge=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var n=s.setTimeout(t,e);i.stop=function(){s.clearTimeout(n)}}))},function(){var e=a.createElement("input"),t=a.createElement("select"),i=t.appendChild(a.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=i.selected,t.disabled=!0,f.optDisabled=!i.disabled,(e=a.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var et,tt=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return R(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,i){var s,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?g.prop(e,t,i):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),n=g.attrHooks[t]||(g.expr.match.bool.test(t)?et:void 0)),void 0!==i?null===i?void g.removeAttr(e,t):n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=g.find.attr(e,t))?void 0:s)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&g.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,s,n=0,o=t&&t.match(M);if(o&&1===e.nodeType)for(;i=o[n++];)s=g.propFix[i]||i,g.expr.match.bool.test(i)&&(e[s]=!1),e.removeAttribute(i)}}),et={set:function(e,t,i){return!1===t?g.removeAttr(e,i):e.setAttribute(i,i),i}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=tt[t]||g.find.attr;tt[t]=function(e,t,s){var n,o;return s||(o=tt[t],tt[t]=n,n=null!=i(e,t,s)?t.toLowerCase():null,tt[t]=o),n}}));var it=/^(?:input|select|textarea|button)$/i,st=/^(?:a|area)$/i;g.fn.extend({prop:function(e,t){return R(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[g.propFix[e]||e]}))}}),g.extend({prop:function(e,t,i){var s,n,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(e)||(t=g.propFix[t]||t,n=g.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:e[t]=i:n&&"get"in n&&null!==(s=n.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||st.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this}));var nt=/[\t\r\n\f]/g;function ot(e){return e.getAttribute&&e.getAttribute("class")||""}g.fn.extend({addClass:function(e){var t,i,s,n,o,a,r,l=0;if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,ot(this)))}));if("string"==typeof e&&e)for(t=e.match(M)||[];i=this[l++];)if(n=ot(i),s=1===i.nodeType&&(" "+n+" ").replace(nt," ")){for(a=0;o=t[a++];)s.indexOf(" "+o+" ")<0&&(s+=o+" ");n!==(r=g.trim(s))&&i.setAttribute("class",r)}return this},removeClass:function(e){var t,i,s,n,o,a,r,l=0;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,ot(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(M)||[];i=this[l++];)if(n=ot(i),s=1===i.nodeType&&(" "+n+" ").replace(nt," ")){for(a=0;o=t[a++];)for(;s.indexOf(" "+o+" ")>-1;)s=s.replace(" "+o+" "," ");n!==(r=g.trim(s))&&i.setAttribute("class",r)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(i){g(this).toggleClass(e.call(this,i,ot(this),t),t)})):this.each((function(){var t,s,n,o;if("string"===i)for(s=0,n=g(this),o=e.match(M)||[];t=o[s++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==e&&"boolean"!==i||((t=ot(this))&&F.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":F.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,s=0;for(t=" "+e+" ";i=this[s++];)if(1===i.nodeType&&(" "+ot(i)+" ").replace(nt," ").indexOf(t)>-1)return!0;return!1}});var at=/\r/g,rt=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(e){var t,i,s,n=this[0];return arguments.length?(s=g.isFunction(e),this.each((function(i){var n;1===this.nodeType&&(null==(n=s?e.call(this,i,g(this).val()):e)?n="":"number"==typeof n?n+="":g.isArray(n)&&(n=g.map(n,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=g.valHooks[n.type]||g.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(at,""):null==i?"":i:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e)).replace(rt," ")}},select:{get:function(e){for(var t,i,s=e.options,n=e.selectedIndex,o="select-one"===e.type||n<0,a=o?null:[],r=o?n+1:s.length,l=n<0?r:o?n:0;l<r;l++)if(((i=s[l]).selected||l===n)&&(f.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!g.nodeName(i.parentNode,"optgroup"))){if(t=g(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,s,n=e.options,o=g.makeArray(t),a=n.length;a--;)((s=n[a]).selected=g.inArray(g.valHooks.option.get(s),o)>-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){if(g.isArray(t))return e.checked=g.inArray(g(e).val(),t)>-1}},f.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var lt=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(e,t,i,n){var o,r,l,c,d,u,h,f=[i||a],m=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(r=l=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!lt.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),d=m.indexOf(":")<0&&"on"+m,(e=e[g.expando]?e:new g.Event(m,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:g.makeArray(t,[e]),h=g.event.special[m]||{},n||!h.trigger||!1!==h.trigger.apply(i,t))){if(!n&&!h.noBubble&&!g.isWindow(i)){for(c=h.delegateType||m,lt.test(c+m)||(r=r.parentNode);r;r=r.parentNode)f.push(r),l=r;l===(i.ownerDocument||a)&&f.push(l.defaultView||l.parentWindow||s)}for(o=0;(r=f[o++])&&!e.isPropagationStopped();)e.type=o>1?c:h.bindType||m,(u=(F.get(r,"events")||{})[e.type]&&F.get(r,"handle"))&&u.apply(r,t),(u=d&&r[d])&&u.apply&&O(r)&&(e.result=u.apply(r,t),!1===e.result&&e.preventDefault());return e.type=m,n||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!O(i)||d&&g.isFunction(i[m])&&!g.isWindow(i)&&((l=i[d])&&(i[d]=null),g.event.triggered=m,i[m](),g.event.triggered=void 0,l&&(i[d]=l)),e.result}},simulate:function(e,t,i){var s=g.extend(new g.Event,i,{type:e,isSimulated:!0});g.event.trigger(s,null,t)}}),g.fn.extend({trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return g.event.trigger(e,t,i,!0)}}),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){g.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),f.focusin="onfocusin"in s,f.focusin||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){g.event.simulate(t,e.target,g.event.fix(e))};g.event.special[t]={setup:function(){var s=this.ownerDocument||this,n=F.access(s,t);n||s.addEventListener(e,i,!0),F.access(s,t,(n||0)+1)},teardown:function(){var s=this.ownerDocument||this,n=F.access(s,t)-1;n?F.access(s,t,n):(s.removeEventListener(e,i,!0),F.remove(s,t))}}}));var ct=s.location,dt=g.now(),ut=/\?/;g.parseJSON=function(e){return JSON.parse(e+"")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new s.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var ht=/#.*$/,pt=/([?&])_=[^&]*/,ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,mt=/^(?:GET|HEAD)$/,gt=/^\/\//,vt={},yt={},bt="*/".concat("*"),_t=a.createElement("a");function wt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var s,n=0,o=t.toLowerCase().match(M)||[];if(g.isFunction(i))for(;s=o[n++];)"+"===s[0]?(s=s.slice(1)||"*",(e[s]=e[s]||[]).unshift(i)):(e[s]=e[s]||[]).push(i)}}function xt(e,t,i,s){var n={},o=e===yt;function a(r){var l;return n[r]=!0,g.each(e[r]||[],(function(e,r){var c=r(t,i,s);return"string"!=typeof c||o||n[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!n["*"]&&a("*")}function Ct(e,t){var i,s,n=g.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:s||(s={}))[i]=t[i]);return s&&g.extend(!0,e,s),e}_t.href=ct.href,g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,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":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ct(Ct(e,g.ajaxSettings),t):Ct(g.ajaxSettings,e)},ajaxPrefilter:wt(vt),ajaxTransport:wt(yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,o,r,l,c,d,u,h=g.ajaxSetup({},t),p=h.context||h,f=h.context&&(p.nodeType||p.jquery)?g(p):g.event,m=g.Deferred(),v=g.Callbacks("once memory"),y=h.statusCode||{},b={},_={},w=0,x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!r)for(r={};t=ft.exec(o);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return w||(e=_[i]=_[i]||e,b[e]=t),this},overrideMimeType:function(e){return w||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)y[t]=[y[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||x;return i&&i.abort(t),S(0,t),this}};if(m.promise(C).complete=v.add,C.success=C.done,C.error=C.fail,h.url=((e||h.url||ct.href)+"").replace(ht,"").replace(gt,ct.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=g.trim(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){c=a.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=g.param(h.data,h.traditional)),xt(vt,h,t,C),2===w)return C;for(u in(d=g.event&&h.global)&&0==g.active++&&g.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!mt.test(h.type),n=h.url,h.hasContent||(h.data&&(n=h.url+=(ut.test(n)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=pt.test(n)?n.replace(pt,"$1_="+dt++):n+(ut.test(n)?"&":"?")+"_="+dt++)),h.ifModified&&(g.lastModified[n]&&C.setRequestHeader("If-Modified-Since",g.lastModified[n]),g.etag[n]&&C.setRequestHeader("If-None-Match",g.etag[n])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+bt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(p,C,h)||2===w))return C.abort();for(u in x="abort",{success:1,error:1,complete:1})C[u](h[u]);if(i=xt(yt,h,t,C)){if(C.readyState=1,d&&f.trigger("ajaxSend",[C,h]),2===w)return C;h.async&&h.timeout>0&&(l=s.setTimeout((function(){C.abort("timeout")}),h.timeout));try{w=1,i.send(b,S)}catch(e){if(!(w<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,r){var c,u,b,_,x,S=t;2!==w&&(w=2,l&&s.clearTimeout(l),i=void 0,o=r||"",C.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(_=function(e,t,i){for(var s,n,o,a,r=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=e.mimeType||t.getResponseHeader("Content-Type"));if(s)for(n in r)if(r[n]&&r[n].test(s)){l.unshift(n);break}if(l[0]in i)o=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){o=n;break}a||(a=n)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(h,C,a)),_=function(e,t,i,s){var n,o,a,r,l,c={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&s&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(n in c)if((r=n.split(" "))[1]===o&&(a=c[l+" "+r[0]]||c["* "+r[0]])){!0===a?a=c[n]:!0!==c[n]&&(o=r[0],d.unshift(r[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,_,C,c),c?(h.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(g.lastModified[n]=x),(x=C.getResponseHeader("etag"))&&(g.etag[n]=x)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=_.state,u=_.data,c=!(b=_.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",c?m.resolveWith(p,[u,S,C]):m.rejectWith(p,[C,S,b]),C.statusCode(y),y=void 0,d&&f.trigger(c?"ajaxSuccess":"ajaxError",[C,h,c?u:b]),v.fireWith(p,[C,S]),d&&(f.trigger("ajaxComplete",[C,h]),--g.active||g.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,i){return g.get(e,t,i,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,i,s,n){return g.isFunction(i)&&(n=n||s,s=i,i=void 0),g.ajax(g.extend({url:e,type:t,dataType:n,data:i,success:s},g.isPlainObject(e)&&e))}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return g.isFunction(e)?this.each((function(t){g(this).wrapAll(e.call(this,t))})):(this[0]&&(t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(i){g(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return!g.expr.filters.visible(e)},g.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var St=/%20/g,kt=/\[\]$/,Tt=/\r?\n/g,$t=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Et(e,t,i,s){var n;if(g.isArray(t))g.each(t,(function(t,n){i||kt.test(e)?s(e,n):Et(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,s)}));else if(i||"object"!==g.type(t))s(e,t);else for(n in t)Et(e+"["+n+"]",t[n],i,s)}g.param=function(e,t){var i,s=[],n=function(e,t){t=g.isFunction(t)?t():null==t?"":t,s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,(function(){n(this.name,this.value)}));else for(i in e)Et(i,e[i],t,n);return s.join("&").replace(St,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&Dt.test(this.nodeName)&&!$t.test(e)&&(this.checked||!Y.test(e))})).map((function(e,t){var i=g(this).val();return null==i?null:g.isArray(i)?g.map(i,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:i.replace(Tt,"\r\n")}})).get()}}),g.ajaxSettings.xhr=function(){try{return new s.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Pt=g.ajaxSettings.xhr();f.cors=!!Pt&&"withCredentials"in Pt,f.ajax=Pt=!!Pt,g.ajaxTransport((function(e){var t,i;if(f.cors||Pt&&!e.crossDomain)return{send:function(n,o){var a,r=e.xhr();if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)r[a]=e.xhrFields[a];for(a in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)r.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=i=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?o(0,"error"):o(r.status,r.statusText):o(At[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=t(),i=r.onerror=t("error"),void 0!==r.onabort?r.onabort=i:r.onreadystatechange=function(){4===r.readyState&&s.setTimeout((function(){t&&i()}))},t=t("abort");try{r.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),g.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain)return{send:function(s,n){t=g("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&n("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){i&&i()}}}));var Lt=[],Nt=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Lt.pop()||g.expando+"_"+dt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,i){var n,o,a,r=!1!==e.jsonp&&(Nt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Nt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Nt,"$1"+n):!1!==e.jsonp&&(e.url+=(ut.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return a||g.error(n+" was not called"),a[0]},e.dataTypes[0]="json",o=s[n],s[n]=function(){a=arguments},i.always((function(){void 0===o?g(s).removeProp(n):s[n]=o,e[n]&&(e.jsonpCallback=t.jsonpCallback,Lt.push(n)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),g.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||a;var s=T.exec(e),n=!i&&[];return s?[t.createElement(s[1])]:(s=oe([e],t,n),n&&n.length&&g(n).remove(),g.merge([],s.childNodes))};var It=g.fn.load;function Mt(e){return g.isWindow(e)?e:9===e.nodeType&&e.defaultView}g.fn.load=function(e,t,i){if("string"!=typeof e&&It)return It.apply(this,arguments);var s,n,o,a=this,r=e.indexOf(" ");return r>-1&&(s=g.trim(e.slice(r)),e=e.slice(0,r)),g.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),a.length>0&&g.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(s?g("<div>").append(g.parseHTML(e)).find(s):e)})).always(i&&function(e,t){a.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length},g.offset={setOffset:function(e,t,i){var s,n,o,a,r,l,c=g.css(e,"position"),d=g(e),u={};"static"===c&&(e.style.position="relative"),r=d.offset(),o=g.css(e,"top"),l=g.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(s=d.position()).top,n=s.left):(a=parseFloat(o)||0,n=parseFloat(l)||0),g.isFunction(t)&&(t=t.call(e,i,g.extend({},r))),null!=t.top&&(u.top=t.top-r.top+a),null!=t.left&&(u.left=t.left-r.left+n),"using"in t?t.using.call(e,u):d.css(u)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,i,s=this[0],n={top:0,left:0},o=s&&s.ownerDocument;return o?(t=o.documentElement,g.contains(t,s)?(n=s.getBoundingClientRect(),i=Mt(o),{top:n.top+i.pageYOffset-t.clientTop,left:n.left+i.pageXOffset-t.clientLeft}):n):void 0},position:function(){if(this[0]){var e,t,i=this[0],s={top:0,left:0};return"fixed"===g.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(s=e.offset()),s.top+=g.css(e[0],"borderTopWidth",!0),s.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-s.top-g.css(i,"marginTop",!0),left:t.left-s.left-g.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===g.css(e,"position");)e=e.offsetParent;return e||Le}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;g.fn[e]=function(s){return R(this,(function(e,s,n){var o=Mt(e);if(void 0===n)return o?o[t]:e[s];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[s]=n}),e,s,arguments.length)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=Ie(f.pixelPosition,(function(e,i){if(i)return i=Ne(e,t),Ee.test(i)?g(e).position()[t]+"px":i}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,s){g.fn[s]=function(s,n){var o=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===n?"margin":"border");return R(this,(function(t,i,s){var n;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])):void 0===s?g.css(t,i,a):g.style(t,i,s,a)}),t,o?s:void 0,o,null)}}))})),g.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,s){return this.on(t,e,i,s)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},size:function(){return this.length}}),g.fn.andSelf=g.fn.addBack,void 0===(i=function(){return g}.apply(t,[]))||(e.exports=i);var jt=s.jQuery,Rt=s.$;return g.noConflict=function(e){return s.$===g&&(s.$=Rt),e&&s.jQuery===g&&(s.jQuery=jt),g},n||(s.jQuery=s.$=g),g},"object"==typeof e.exports?e.exports=s.document?n(s,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(s)},89077:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var s=i(55806),n=i.n(s),o=i(45484),a=i(72316),r=i.n(a),l=r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({id:o.ZP.uid(),title:"",icon:"",cls:"btn btn-secondary",wait:!1,wait_text:"Sending...",wait_cls:"btn btn-info",disabled:!1,percentage:-1,visible:!0}).set(e),this.setElement(n()("<button/>").attr("type","button").append(this.$icon=n()("<i/>")).append(this.$title=n()("<span/>")).append(this.$progress=n()("<div/>").append(this.$progress_bar=n()("<div/>")))),this.listenTo(this.model,"change",this.render,this),this.render()},render:function(){var e=this.model.attributes;this.$el.removeClass().addClass("ui-button-default").addClass(e.disabled&&"disabled").attr("id",e.id).attr("disabled",e.disabled).css("display",e.visible?"inline-block":"none").off("click").on("click",(()=>{n()(".tooltip").hide(),e.onclick&&!this.disabled&&e.onclick()})).tooltip({title:e.tooltip||"",placement:"bottom"}),this.$progress.addClass("progress").css("display",-1!==e.percentage?"block":"none"),this.$progress_bar.addClass("progress-bar").css({width:`${e.percentage}%`}),this.$icon.removeClass().addClass("icon fa"),this.$title.removeClass().addClass("title"),e.wait?(this.$el.addClass(e.wait_cls).prop("disabled",!0),this.$icon.addClass("fa-spinner fa-spin mr-1"),this.$title.html(e.wait_text)):(this.$el.addClass(e.cls),this.$icon.addClass(e.icon),e.title&&(this.$title.html(e.title),e.icon&&this.$icon.addClass("mr-1")))},show:function(){this.model.set("visible",!0)},hide:function(){this.model.set("visible",!1)},disable:function(){this.model.set("disabled",!0)},enable:function(){this.model.set("disabled",!1)},wait:function(){this.model.set("wait",!0)},unwait:function(){this.model.set("wait",!1)},setIcon:function(e){this.model.set("icon",e)}}),c=l.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({id:o.ZP.uid(),visible:!0,title:"",icon:"",cls:""}).set(e),this.setElement(n()("<a/>").append(this.$icon=n()("<span/>"))),this.listenTo(this.model,"change",this.render,this),this.render()},render:function(){var e=this.model.attributes;this.$el.removeClass().addClass(e.cls).attr({id:e.id,href:e.href||"javascript:void(0)",title:e.title,target:e.target||"_top",disabled:e.disabled,"data-description":e.description}).css("display",e.visible?"inline-block":"none").tooltip({placement:"bottom"}).off("click").on("click",(()=>{e.onclick&&!e.disabled&&e.onclick()})),this.$icon.removeClass().addClass(e.icon)}});const d={Button:l,ButtonLink:c,ButtonCheck:r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({id:o.ZP.uid(),title:"Select/Unselect all",icons:["fa-square-o","fa-minus-square-o","fa-check-square-o"],value:0,visible:!0,onchange:function(){}}).set(e),this.setElement(n()("<div/>").addClass("mb-2").append(this.$icon=n()("<span/>")).append(this.$title=n()("<span/>"))),this.listenTo(this.model,"change",this.render,this),this.render()},render:function(e){e=this.model.attributes,this.$el.addClass("ui-button-check").css("display",e.visible?"inline-block":"none").off("click").on("click",(()=>{this.model.set("value",0===this.model.get("value")?2:0),e.onclick&&e.onclick()})),this.$title.html(e.title),this.$icon.removeClass().addClass("icon fa mr-1").addClass(e.icons[e.value])},value:function(e,t){return void 0!==e&&(t&&0!==e&&(e=e!==t?1:2),this.model.set("value",e),this.model.get("onchange")(this.model.get("value"))),this.model.get("value")}}),ButtonMenu:r().View.extend({$menu:null,initialize:function(e){this.model=e&&e.model||new(r().Model)({id:"",title:"",pull:"right",icon:null,onclick:null,cls:"btn btn-secondary float-right",tooltip:"",target:"",href:"",onunload:null,visible:!0,tag:""}).set(e),this.collection=new(r().Collection),this.setElement(n()("<div/>").append(this.$root=n()("<button/>").append(this.$icon=n()("<i/>")).append(this.$title=n()("<span/>")))),this.listenTo(this.model,"change",this.render,this),this.listenTo(this.collection,"change add remove reset",this.render,this),this.render()},render:function(){var e=this.model.attributes;this.$el.removeClass().addClass("dropdown").attr("id",e.id).css({display:e.visible&&this.collection.where({visible:!0}).length>0?"block":"none"}),this.$root.addClass(e.cls).attr("data-toggle","dropdown").tooltip({title:e.tooltip||"",placement:"bottom"}).off("click").on("click",(t=>{n()(".tooltip").hide(),t.preventDefault(),e.onclick&&e.onclick()})),this.$icon.removeClass().addClass("icon fa").addClass(e.icon),e.title&&this.$title.removeClass().addClass("title ml-1").html(e.title),this.$menu&&this.$menu.remove(),this.collection.length>0&&(this.$menu=n()("<div/>").addClass("menu dropdown-menu dropdown-menu-right").addClass(`pull-${this.model.get("pull")}`).attr("role","menu"),this.$el.append(this.$menu)),this.collection.each((e=>{var t=e.attributes;if(t.visible){var i=n()("<a/>").addClass("dropdown-item").attr({href:t.href,target:t.target}).append(n()("<i/>").addClass("fa mr-2").addClass(t.icon).css("display",t.icon?"inline-block":"none")).append(t.title).on("click",(e=>{t.onclick&&(e.preventDefault(),t.onclick())}));this.$menu.append(i),t.divider&&this.$menu.append(n()("<div/>").addClass("divider"))}}))},addMenu:function(e){this.collection.add(o.ZP.merge(e,{title:"",target:"",href:"",onclick:null,divider:!1,visible:!0,icon:null,cls:"button-menu btn-group"}))}})}},61518:(e,t,i)=>{"use strict";i.d(t,{Co:()=>T});var s=i(55806),n=i.n(s),o=i(59050),a=i(72316),r=i.n(a),l=i(46181),c=i(45484),d=i(89077),u=r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({visible:!0,cls:null,data:[],id:c.ZP.uid(),error_text:"No options available.",wait_text:"Please wait...",multiple:!1,optional:!1,onchange:()=>{}}).set(e),this.listenTo(this.model,"change:value",this._changeValue,this),this.listenTo(this.model,"change:wait",this._changeWait,this),this.listenTo(this.model,"change:data",this._changeData,this),this.listenTo(this.model,"change:visible",this._changeVisible,this),this.listenTo(this,"change",(()=>{this.model.get("onchange")(this.value())})),this.render()},render:function(){var e=this;this.$el.empty().removeClass().addClass("ui-options").addClass(this.model.get("cls")).append(this.$message=n()("<div/>").addClass("mt-2")).append(this.$menu=n()("<div/>").addClass("ui-options-menu")).append(this.$options=n()(this._template())),this.all_button=null,this.model.get("multiple")&&(this.all_button=new d.Z.ButtonCheck({onclick:function(){e.$("input").prop("checked",0!==e.all_button.value()),e.value(e._getValue()),e.trigger("change")}}),this.$menu.append(this.all_button.$el)),this._changeData(),this._changeWait(),this._changeVisible()},update:function(e){e.data&&this.model.set("data",e.data)},_changeData:function(){var e=this;this.$options.empty(),this._templateOptions?this.$options.append(this._templateOptions(this.model.get("data"))):o.default.each(this.model.get("data"),(t=>{e.$options.append(n()(e._templateOption(t)).addClass("ui-option").tooltip({title:t.tooltip||"",placement:"bottom"}))})),this.$("input").on("change",(()=>{e.value(e._getValue()),e.trigger("change")})),this._changeValue(),this._changeWait()},_changeVisible:function(){this.$el[this.model.get("visible")?"show":"hide"]()},_changeWait:function(){this.model.get("wait")?0===this.length()&&(this._messageShow(this.model.get("wait_text"),"info"),this.$options.hide(),this.$menu.hide()):0===this.length()?(this._messageShow(this.model.get("error_text"),"danger"),this.$options.hide(),this.$menu.hide()):(this.$message.hide(),this.$options.css("display","inline-block"),this.$menu.show())},_changeValue:function(){this._setValue(this.model.get("value")),null!==this._getValue()||this.model.get("multiple")||this.model.get("optional")||this._setValue(this.first()),this.all_button&&this.all_button.value(Array.isArray(this._getValue())?this._getValue().length:0,this.length())},value:function(e){return void 0!==e&&this.model.set("value",e),this._getValue()},first:function(){var e=this.$("input").first();return e.length>0?e.val():null},wait:function(){this.model.set("wait",!0)},unwait:function(){this.model.set("wait",!1)},length:function(){return this.$(".ui-option").length},show:function(){this.model.set("visible",!0)},hide:function(){this.model.set("visible",!1)},_setValue:function(e){var t=this;if(void 0!==e&&(this.$("input").prop("checked",!1),null!==e)){var i=Array.isArray(e)?e:[e];o.default.each(i,(e=>{t.$(`input[value="${e}"]`).first().prop("checked",!0)}))}},_getValue:function(){var e=[];return this.$(":checked").each((function(){e.push(n()(this).val())})),c.ZP.isEmpty(e)?null:this.model.get("multiple")?e:e[0]},_messageShow:function(e,t){this.$message.show().removeClass().addClass(`alert alert-${t}`).html(e)},_template:function(){return n()("<div/>").addClass("ui-options-list")}}),h=u.extend({_templateOption:function(e){var t=c.ZP.uid();return n()("<div/>").addClass("ui-option").addClass(this.model.get("cls_option")).append(n()("<input/>").attr({id:t,type:this.model.get("type"),name:this.model.id,value:e.value})).append(n()("<label/>").addClass("ui-options-label").attr("for",t).html(e.label))}}),p={};p.View=h.extend({initialize:function(e){e.type="radio",h.prototype.initialize.call(this,e)}});var f={};f.View=h.extend({initialize:function(e){e.type="checkbox",e.multiple=!0,h.prototype.initialize.call(this,e)}});var m={};m.View=u.extend({initialize:function(e){u.prototype.initialize.call(this,e)},_setValue:function(e){void 0!==e&&(this.$("input").prop("checked",!1),this.$("label").removeClass("active"),this.$(`[value="${e}"]`).prop("checked",!0).closest("label").addClass("active"))},_templateOption:function(e){var t=n()("<label/>").attr("role","button");return e.icon&&t.append(n()("<i/>").addClass("fa").addClass(e.icon).addClass(!e.label&&"no-padding")),t.append(n()("<input/>").attr({type:"radio",name:this.model.id,value:e.value}).hide()),e.label&&t.append(e.label),t},_template:function(){return n()("<div/>").addClass("ui-radiobutton")}});const g={Base:u,BaseIcons:h,Radio:p,RadioButton:m,Checkbox:f},v={View:g.BaseIcons.extend({initialize:function(e){e.type=e.display||"checkbox",e.multiple="checkbox"==e.type,g.BaseIcons.prototype.initialize.call(this,e)},update:function(e){this.model.set("data",e.options)},_setValue:function(e){if(g.BaseIcons.prototype._setValue.call(this,e),null!=e&&this.header_index){var t=this,i=Array.isArray(e)?e:[e];o.default.each(i,(e=>{var i=t.header_index[e];o.default.each(i,(e=>{t._setState(e,!0)}))}))}},_setState:function(e,t){var i=this.$(`.button-${e}`),s=this.$(`.subgroup-${e}`);i.data("is_expanded",t),t?(s.show(),i.removeClass("fa-plus-square").addClass("fa-minus-square")):(s.hide(),i.removeClass("fa-minus-square").addClass("fa-plus-square"))},_templateOptions:function(){var e=this;function t(t,i){var s=t.find(`.button-${i}`);s.on("click",(()=>{e._setState(i,!s.data("is_expanded"))}))}this.header_index={};var i=n()("<div/>");return function i(s,o,a){for(var r in a=a||[],o){var l=o[r],d=l.options&&l.options.length>0,u=a.slice(0);e.header_index[l.value]=u.slice(0);var h=n()("<div/>");if(d){var p=c.ZP.uid(),f=n()("<span/>").addClass(`button-${p}`).addClass("ui-drilldown-button fa fa-plus-square"),m=n()("<div/>").addClass(`subgroup-${p}`).addClass("ui-drilldown-subgroup");h.append(n()("<div/>").append(f).append(e._templateOption({label:l.name,value:l.value}))),u.push(p),i(m,l.options,u),h.append(m),t(h,p)}else h.append(e._templateOption({label:l.name,value:l.value}));s.append(h)}}(i,this.model.get("data")),i},_template:function(){return n()("<div/>").addClass("ui-options-list drilldown-container").attr("id",this.model.id)}})};var y=i(69210);const b=r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({disabled:!1,visible:!0,onchange:()=>{}}).set(e),this.setElement(this._template()),this.$label=this.$(".label"),this.$input=this.$(".custom-control-input"),this.listenTo(this.model,"change",this.render,this),this.listenTo(this,"change",(()=>{this.model.get("onchange")(this.value())})),this.render()},events:{input:"_onchange"},value:function(e){return void 0!==e&&this.model.set("value",e),this.model.get("value")},render:function(){return"true"==this.model.get("value")?(this.$label.text("Yes"),this.$input.prop("checked",!0)):(this.$label.text("No"),this.$input.prop("checked",!1)),this.model.get("disabled")?this.$input.attr("disabled",!0):this.$input.removeAttr("disabled"),this.$el[this.model.get("visible")?"show":"hide"](),this},_onchange:function(){this.value(this.$input.prop("checked")?"true":"false"),this.trigger("change")},_template:function(){const e=this.model.id;return`<div class="ui-switch">\n <div class="custom-control" id="${e}">\n <input type="checkbox" class="custom-control-input" id="switch-id-${e}" />\n <label class="custom-control-label" for="switch-id-${e}"/>\n </div>\n <div class="label" />\n </div>`}});var _=r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({message:null,status:"info",cls:"",persistent:!1,fade:!0}).set(e),this.listenTo(this.model,"change",this.render,this),e&&e.active_tab&&(this.active_tab=e.active_tab),this.render()},update:function(e){this.model.set(e)},render:function(){var e=this.model.get("status");if(this.$el.removeClass().addClass(`alert alert-${e} mt-2`).addClass(this.model.get("cls")),this.model.get("message")){if(this.$el.html(this.messageForDisplay()),this.$el[this.model.get("fade")?"fadeIn":"show"](),this.timeout&&window.clearTimeout(this.timeout),!this.model.get("persistent")){var t=this;this.timeout=window.setTimeout((()=>{t.model.set("message","")}),3e3)}}else this.$el.hide();return this},messageForDisplay:function(){return o.default.escape(this.model.get("message"))}}),w=_.extend({messageForDisplay:function(){return this.model.get("message")}}),x=r().View.extend({initialize:function(e){this.model=e&&e.model||new(r().Model)({type:"text",placeholder:"",disabled:!1,readonly:!1,visible:!0,cls:"",area:!1,color:null,style:null}).set(e),this.tagName=this.model.get("area")?"textarea":"input",this.setElement(n()(`<${this.tagName}/>`)),this.listenTo(this.model,"change",this.render,this),this.render()},events:{input:"_onchange"},value:function(e){return void 0!==e&&this.model.set("value","string"==typeof e?e:""),this.model.get("value")},render:function(){var e=this;this.$el.removeClass().addClass(`ui-${this.tagName}`).addClass(this.model.get("cls")).addClass(this.model.get("style")).attr("id",this.model.id).attr("type",this.model.get("type")).attr("placeholder",this.model.get("placeholder")).css("color",this.model.get("color")||"").css("border-color",this.model.get("color")||"");var t=this.model.get("datalist");return Array.isArray(t)&&t.length>0&&this.$el.autocomplete({source:e.model.get("datalist"),change:function(){e._onchange()}}),this.model.get("value")!==this.$el.val()&&this.$el.val(this.model.get("value")),o.default.each(["readonly","disabled"],(t=>{e.model.get(t)?e.$el.attr(t,!0):e.$el.removeAttr(t)})),this.$el[this.model.get("visible")?"show":"hide"](),this},_onchange:function(){this.value(this.$el.val()),this.model.get("onchange")&&this.model.get("onchange")(this.model.get("value"))}}),C=r().View.extend({initialize:function(e){this.model=e&&e.model||(new(r().Model)).set(e),this.text_input=new x(e),this.optional_button=new b({id:`optional-switch-${this.model.id}`}),this.setElement("<div/>"),this.$el.append("<div>Set value for this optional select field?</div>"),this.$el.append(this.optional_button.$el),this.$el.append(this.text_input.$el),this.optional_button.model.set("value",null===this.text_input.model.get("value")?"false":"true"),this.toggleButton(),this.listenTo(this.optional_button.model,"change",this.toggleButton,this)},toggleButton:function(){"true"==this.optional_button.model.get("value")?(this.text_input.model.set("disabled",!1),this.text_input.model.get("value")||(this.text_input.model.set("value",""),this.model.get("onchange")&&this.model.get("onchange")(""))):(this.text_input.model.set("disabled",!0),this.text_input.model.set("value",null),this.model.get("onchange")&&this.model.get("onchange")(null))},value:function(e){return"true"==this.optional_button.model.get("value")&&void 0!==e&&this.model.set("value","string"==typeof e?e:""),this.text_input.model.get("value")}}),S=r().View.extend({initialize:function(e){this.select=new e.SelectClass.View(e),this.model=this.select.model;const t=e.optional?C:x;this.text=new t({onchange:this.model.get("onchange")}),this.on("change",(()=>{this.model.get("onchange")&&this.model.get("onchange")(this.value())})),this.setElement(n()("<div/>").append(this.select.$el).append(this.text.$el)),this.update(e)},wait:function(){this.select.wait()},unwait:function(){this.select.unwait()},value:function(e){return(this.textmode?this.text:this.select).value(e)},update:function(e){var t=e.data;t||(t=[],o.default.each(e.options,(e=>{t.push({label:e[0],value:e[1]})})));var i=this.value();this.textmode=e.textable&&(!Array.isArray(t)||0===t.length),this.text.$el[this.textmode?"show":"hide"](),this.select.$el[this.textmode?"hide":"show"](),this.select.update({data:t}),this.value(i)}}),k=r().View.extend({initialize:function(e){var t=this;this.model=e&&e.model||new(r().Model)(e),this.setElement(n()("<div/>").append(this.$info=n()("<div/>")).append(this.$file=n()("<input/>").attr("type","file").addClass("mb-1")).append(this.$text=n()("<textarea/>").addClass("ui-textarea").attr("disabled",!0)).append(this.$wait=n()("<i/>").addClass("fa fa-spinner fa-spin"))),this.listenTo(this.model,"change",this.render,this),this.$file.on("change",(e=>{t._readFile(e)})),this.render()},value:function(e){return void 0!==e&&this.model.set("value",e),this.model.get("value")},render:function(){return this.$el.attr("id",this.model.id),this.model.get("info")?this.$info.show().text(this.model.get("info")):this.$info.hide(),this.model.get("value")?this.$text.text(this.model.get("value")).show():this.$text.hide(),this.model.get("wait")?this.$wait.show():this.$wait.hide(),this},_readFile:function(e){var t=this,i=e.target.files&&e.target.files[0];if(i){var s=new FileReader;s.onload=function(){t.model.set({wait:!1,value:this.result})},this.model.set({wait:!0,value:null}),s.readAsText(i)}}});d.Z.Button,d.Z.ButtonCheck,d.Z.ButtonMenu,d.Z.ButtonLink,g.Checkbox,g.RadioButton,g.Radio;const T={Button:d.Z.Button,ButtonCheck:d.Z.ButtonCheck,ButtonMenu:d.Z.ButtonMenu,ButtonLink:d.Z.ButtonLink,Input:x,Message:_,UnescapedMessage:w,Upload:k,Modal:y.Z,RadioButton:g.RadioButton,Checkbox:g.Checkbox,Radio:g.Radio,Select:l.Z,NullableText:C,TextSelect:S,Drilldown:v}},69210:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var s=i(55806),n=i.n(s),o=i(59050),a=i(72316);const r={View:i.n(a)().View.extend({className:"ui-modal",optionsDefault:{container:"body",title:"ui-modal",cls:"ui-modal",body:"",backdrop:!0,height:null,width:null,xlarge:!1,closing_events:!1,closing_callback:null,title_separator:!0},buttonList:{},initialize:function(e){this.options=o.default.defaults(e||{},this.optionsDefault),n()(this.options.container).prepend(this.el),e&&this.render()},show:function(e){e&&(this.options=o.default.defaults(e,this.optionsDefault),this.render()),this.visible||(this.visible=!0,this.$el.fadeIn("fast")),this.options.closing_events&&(n()(document).on("keyup.ui-modal",(e=>{27==e.keyCode&&this.hide(!0)})),this.$backdrop.on("click",(()=>{this.hide(!0)}))),this.$el.find(".title").focus()},hide:function(e){this.visible=!1,this.$el.fadeOut("fast"),this.options.closing_callback&&this.options.closing_callback(e),n()(document).off("keyup.ui-modal"),this.$backdrop.off("click")},render:function(){var e=this;if(this.$el.html(this._template()),this.$header=this.$(".modal-header"),this.$dialog=this.$(".modal-dialog"),this.options.extra_class&&this.$dialog.addClass(this.options.extra_class),this.$body=this.$(".modal-body"),this.$footer=this.$(".modal-footer"),this.$backdrop=this.$(".modal-backdrop"),this.$buttons=this.$(".buttons"),"progress"==this.options.body&&(this.options.body=n()('<div class="progress progress-striped active"><div class="progress-bar progress-bar-info" style="width:100%"/></div>')),this.$el.removeClass().addClass("modal").addClass(this.options.cls),this.$header.find(".title").html(this.options.title),this.$body.html(this.options.body),this.$buttons.empty(),this.buttonList={},this.options.buttons){var t=0;n().each(this.options.buttons,((i,s)=>{var o=n()("<button/>").attr("id","button-"+t++).text(i).click(s);e.$buttons.append(o).append(" "),e.buttonList[i]=o}))}else this.$footer.hide();this.$backdrop[this.options.backdrop?"addClass":"removeClass"]("in"),this.$header[this.options.title_separator?"removeClass":"addClass"]("no-separator"),this.$body.removeAttr("style"),this.options.height?(this.$body.css("height",this.options.height),this.$body.css("overflow","hidden")):this.$body.css("max-height",n()(window).height()/2),this.options.width&&this.$dialog.css("width",this.options.width),this.options.xlarge&&this.$dialog.css("max-width","3000px")},getButton:function(e){return this.buttonList[e]},enableButton:function(e){this.getButton(e).prop("disabled",!1)},disableButton:function(e){this.getButton(e).prop("disabled",!0)},showButton:function(e){this.getButton(e).show()},hideButton:function(e){this.getButton(e).hide()},scrollTop:function(){return this.$body.scrollTop()},_template:function(){return'<div class="modal-backdrop fade"/><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h4 class="title" tabindex="0"/></div><div class="modal-body"/><div class="modal-footer"><div class="buttons"/></div></div></div>'}})}},46181:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var s=i(55806),n=i.n(s),o=i(59050),a=i(72316),r=i.n(a),l=i(45484),c=i(39327),d=i(89077);const u={View:r().View.extend({initialize:function(e){this.data=[],this.data2=[],this.model=e&&e.model||new(r().Model)({id:l.ZP.uid(),cls:"ui-select",error_text:"No options available",empty_text:"Nothing selected",visible:!0,wait:!1,multiple:!1,searchable:!0,optional:!1,disabled:!1,readonly:!1,onchange:function(){},value:null,individual:!1,pagesize:20}).set(e),this.on("change",(()=>{this.model.get("onchange")&&this.model.get("onchange")(this.value())})),this.listenTo(this.model,"change:data",this._changeData,this),this.listenTo(this.model,"change:disabled",this._changeDisabled,this),this.listenTo(this.model,"change:wait",this._changeWait,this),this.listenTo(this.model,"change:visible",this._changeVisible,this),this.listenTo(this.model,"change:value",this._changeValue,this),this.listenTo(this.model,"change:multiple change:searchable change:cls change:id",this.render,this),this.render()},render:function(){this.model.get("searchable")?this._renderSearchable():this._renderClassic(),this.$el.addClass(this.model.get("cls")).attr("id",this.model.get("id")),this.$select.empty().addClass("select").attr("id",`${this.model.get("id")}_select`).prop("multiple",this.model.get("multiple")).on("change",(()=>{this.value(this._getValue()),this.trigger("change")})),this._changeData(),this._changeWait(),this._changeVisible(),this._changeDisabled()},_renderClassic:function(){this.$el.addClass(this.model.get("multiple")?"ui-select-multiple":"ui-select").append(this.$select=n()("<select/>")).append(this.$dropdown=n()("<div/>")).append(this.$resize=n()("<div/>").append(this.$resize_icon=n()("<i/>"))),this.model.get("multiple")?(this.$dropdown.hide(),this.$resize_icon.addClass("fa fa-angle-double-right fa-rotate-45").show(),this.$resize.removeClass().addClass("icon-resize").show().off("mousedown").on("mousedown",(e=>{var t=e.pageY,i=this.$select.height();this.minHeight=this.minHeight||i,n()("#dd-helper").show().on("mousemove",(e=>{this.$select.height(Math.max(i+(e.pageY-t),this.minHeight))})).on("mouseup mouseleave",(()=>{n()("#dd-helper").hide().off()}))}))):(this.$dropdown.show(),this.$resize.hide(),this.$resize_icon.hide())},_renderSearchable:function(){this.$el.append(this.$select=n()("<div/>")).append(this.$dropdown=n()("<div/>")),this.$dropdown.hide(),this.model.get("multiple")||this.$dropdown.show().on("click",(()=>{this.$select.select2&&this.$select.select2("open")})),this.all_button=null,!this.model.get("multiple")||this.model.get("individual")||this.model.get("readonly")||(this.all_button=new d.Z.ButtonCheck({onclick:()=>{var e=[];0!==this.all_button.value()&&o.default.each(this.model.get("data"),(t=>{e.push(t.value)})),this.value(e),this.trigger("change")}}),this.$el.prepend(this.all_button.$el))},_match:function(e,t){return!e||""===e||String(t).toUpperCase().indexOf(e.toUpperCase())>=0},_changeData:function(){this.data=[],!this.model.get("multiple")&&this.model.get("optional")&&this.data.push({value:"__null__",label:this.model.get("empty_text")}),o.default.each(this.model.get("data"),(e=>{this.data.push(e)})),0===this.length()&&this.data.push({value:"__null__",label:this.model.get("error_text")}),this.model.get("searchable")?(this.data2=[],this.data2index={},o.default.each(this.data,((e,t)=>{const i={order:t,id:e.value,text:e.label,tags:e.tags};this.data2.push(i),this.data2index[i.id]=i})),this.$select.data("select2")&&this.$select.select2("destroy"),this.matched_tags={},this.$select.select2({data:this.data2,closeOnSelect:!this.model.get("multiple"),multiple:this.model.get("multiple"),query:e=>{this.matched_tags={};var t=this.model.get("pagesize"),i=o.default.filter(this.data2,(t=>{var i=!1;return o.default.each(t.tags,(t=>{this._match(e.term,t)&&(i=this.matched_tags[t]=!0)})),i||this._match(e.term,t.text)}));e.callback({results:i.slice((e.page-1)*t,e.page*t),more:i.length>=e.page*t})},formatResult:e=>{let t="";const i=o.default.filter(e.tags,(e=>Object.prototype.hasOwnProperty.call(this.matched_tags,e)));return i.length>5&&(t=` <div class="label label-warning">${i.length-5} more tags</div>`),`\n ${o.default.escape(e.text)}\n <div>\n ${i.slice(0,5).reduce(((e,t)=>{const i=(0,c.D)(t),s=0===t.indexOf("name:"),n=s?`#${t.slice(5)}`:t;return`${e} <div ${s?`style="background-color: ${i.primary}; color: black; border: 1px solid ${i.darker}"`:""} class="badge badge-primary badge-tags">${o.default.escape(n)}</div>`}),"")}\n ${t}\n </div>`}}),this.$(".select2-container .select2-search input").off("blur")):(this.$select.find("option").remove(),o.default.each(this.data,(e=>{this.$select.append(n()("<option/>").attr("value",e.value).html(o.default.escape(e.label)))}))),this.model.set("disabled",this.model.get("readonly")||0===this.length()),this._changeValue()},_changeDisabled:function(){this.model.get("searchable")?this.$select.select2(this.model.get("disabled")?"disable":"enable"):this.$select.prop("disabled",this.model.get("disabled"))},_changeWait:function(){this.$dropdown.removeClass().addClass("icon-dropdown fa").addClass(this.model.get("wait")?"fa-spinner fa-spin":"fa-caret-down")},_changeVisible:function(){this.$el[this.model.get("visible")?"show":"hide"](),this.$select[this.model.get("visible")?"show":"hide"]()},_changeValue:function(){if(this._setValue(this.model.get("value")),this.model.get("multiple")){if(this.all_button){var e=this._getValue();this.all_button.value(Array.isArray(e)?e.length:0,this.length())}}else null!==this._getValue()||this.model.get("optional")||this._setValue(this.first())},value:function(e){return void 0!==e&&this.model.set("value",e),this._getValue()},first:function(){return this.data.length>0?this.data[0].value:null},exists:function(e){return o.default.findWhere(this.data,{value:e})},text:function(){var e=this._getValue(),t=this.exists(Array.isArray(e)?e[0]:e);return t?t.label:""},show:function(){this.model.set("visible",!0)},hide:function(){this.model.set("visible",!1)},wait:function(){this.model.set("wait",!0)},unwait:function(){this.model.set("wait",!1)},disabled:function(){return this.model.get("disabled")},enable:function(){this.model.set("disabled",!1)},disable:function(){this.model.set("disabled",!0)},add:function(e,t){o.default.each(this.model.get("data"),(t=>{t.keep&&!o.default.findWhere(e,{value:t.value})&&e.push(t)})),t&&e&&e.sort(t),this.model.set("data",e)},update:function(e){this.model.set("data",e.data)},setOnChange:function(e){this.model.set("onchange",e)},length:function(){return Array.isArray(this.model.get("data"))?this.model.get("data").length:0},_setValue:function(e){if(null==e&&(e="__null__"),this.model.get("multiple")?e=Array.isArray(e)?e:[e]:Array.isArray(e)&&(e=e.length>0?e[0]:"__null__"),this.model.get("searchable")){if(Array.isArray(e)){var t=[];o.default.each(e,(e=>{var i=this.data2index[e];i&&t.push(i)})),e=t}else e=this.data2index[e];this.$select.select2("data",e)}else this.$select.val(e)},_getValue:function(){var e=null;if(this.model.get("searchable")){var t=this.$select.select2("data");t&&(Array.isArray(t)?(e=[],t.sort(((e,t)=>e.order-t.order)),o.default.each(t,(t=>{e.push(t.id)}))):e=t.id)}else e=this.$select.val();return l.ZP.isEmpty(e)?null:e}})}},42193:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var s=i(72316),n=i.n(s),o=i(59050),a=i(45484);const r={View:n().View.extend({optionsDefault:{css:"",placeholder:"No data available",data:[],value:null,multiple:!1,minimumInputLength:0,maximumTextLength:100,initialData:""},initialize:function(e){if(this.options=a.ZP.merge(e,this.optionsDefault),this.setElement(this._template(this.options)),this.options.container){if(this.options.container.append(this.$el),this.select_data=this.options.data,this._refresh(),!this.options.multiple){this.options.value&&this._setValue(this.options.value);var t=this;this.options.onchange&&this.$el.on("change",(()=>{t.options.onchange(t.value())}))}}else console.log("ui-select::initialize() : container not specified.")},value:function(e){var t=this._getValue();void 0!==e&&this._setValue(e);var i=this._getValue();return i!=t&&this.options.onchange&&this.options.onchange(i),i},text:function(){return this.$el.select2("data").text},disabled:function(){return!this.$el.select2("enable")},enable:function(){this.$el.select2("enable",!0)},disable:function(){this.$el.select2("enable",!1)},add:function(e){this.select_data.push({id:e.id,text:e.text}),this._refresh()},del:function(e){var t=this._getIndex(e);-1!=t&&(this.select_data.splice(t,1),this._refresh())},remove:function(){this.$el.select2("destroy")},update:function(e){for(var t in this.select_data=[],e.data)this.select_data.push(e.data[t]);this._refresh()},_refresh:function(){let e;if(this.options.multiple)e={multiple:this.options.multiple,containerCssClass:this.options.css,placeholder:this.options.placeholder,minimumInputLength:this.options.minimumInputLength,ajax:this.options.ajax,dropdownCssClass:this.options.dropdownCssClass,escapeMarkup:this.options.escapeMarkup,formatResult:this.options.formatResult,formatSelection:this.options.formatSelection,initSelection:this.options.initSelection,initialData:this.options.initialData},this.$el.select2(e);else{this.select_data&&this.select_data.map((e=>{const t=this.options.maximumTextLength+3;if(e.text&&e.text.length>t){let i=e.text.indexOf(`(${e.id})`);i=-1!=i&&i<t?i:t;const s=e.text.substring(0,i).replace(/[ .]*$/,"");e.text=`${s}...(${e.id})`}}));var t=this._getValue();e={data:this.select_data,containerCssClass:this.options.css,placeholder:this.options.placeholder,dropdownAutoWidth:!0},this.$el.select2(e),this._setValue(t)}},_getIndex:function(e){o.default.findIndex(this.select_data,{id:e})},_getValue:function(){return this.$el.select2("val")},_setValue:function(e){-1==this._getIndex(e)&&this.select_data.length>0&&(e=this.select_data[0].id),this.$el.select2("val",e)},_template:function(e){return`<input type="hidden" value="${this.options.initialData}"/>`}})}},64907:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>u});var s=i(55806),n=i.n(s),o=i(62352),a=i(9669),r=i.n(a),l=i(50452);let c;let d;const u={AUTO_EXTENSION:{id:"auto",text:"Auto-detect",description:"This system will try to detect the file type automatically. If your file is not detected properly as one of the known formats, it most likely means that it has some format problems (e.g., different number of columns on different rows). You can still coerce the system to set your data to the format you think it should be. You can also upload compressed files, which will automatically be decompressed."},DEFAULT_DBKEY:"?",DEFAULT_EXTENSION:"auto",getRemoteFiles:function(e,t){return n().ajax({url:`${(0,o.getAppRoot)()}api/remote_files`,method:"GET",success:e,error:t})},getRemoteFilesAt:async function(e){const t=`${(0,o.getAppRoot)()}api/remote_files?target=${e}`;try{return(await r().get(t)).data}catch(e){(0,l.t)(e)}},getUploadDatatypes:function(e,t){return function(){if(c)return Promise.resolve(c);const e=`${(0,o.getAppRoot)()}api/datatypes?extension_only=False`;return r().get(e).then((e=>{const t=e.data,i=[];for(var s in t)i.push({id:t[s].extension,text:t[s].extension,description:t[s].description,description_url:t[s].description_url,composite_files:t[s].composite_files});return i.sort(((e,t)=>{var i=e.text&&e.text.toLowerCase(),s=t.text&&t.text.toLowerCase();return i>s?1:i<s?-1:0})),i})).then((e=>(c=e,e)))}().then((i=>{const s=[...i];return e||s.unshift(t),s}))},getUploadDbKeys:function(e){return function(){if(d)return Promise.resolve(d);const e=`${(0,o.getAppRoot)()}api/genomes`;return r().get(e).then((e=>{const t=e.data,i=[];for(var s in t)i.push({id:t[s][1],text:t[s][0]});return i})).then((e=>(d=e,e)))}().then((t=>{const i=[...t];return i.sort((e=>(t,i)=>t.id==e?-1:i.id==e||t.text>i.text?1:t.text<i.text?-1:0)(e)),i}))}}},20050:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var s=i(55806),n=i.n(s);function o(){console.log("init_refresh_on_change"),n()("select[refresh_on_change='true']").off("change").change((function(){var e=n()(this),t=e.val(),i=e.attr("refresh_on_change_values");if(i){i=i.split(",");var s=e.attr("last_selected_value");if(-1===n().inArray(t,i)&&-1===n().inArray(s,i))return}n()(window).trigger("refresh_on_change"),n()(document).trigger("convert_to_values"),e.get(0).form.submit()})),n()(":checkbox[refresh_on_change='true']").off("click").click((function(){var e=n()(this),t=e.val(),i=e.attr("refresh_on_change_values");if(i){i=i.split(",");var s=e.attr("last_selected_value");if(-1===n().inArray(t,i)&&-1===n().inArray(s,i))return}n()(window).trigger("refresh_on_change"),e.get(0).form.submit()})),n()("a[confirm]").off("click").click((function(){return confirm(n()(this).attr("confirm"))}))}},5279:(e,t,i)=>{"use strict";i.d(t,{Bg:()=>L.getAppRoot,HE:()=>N}),i(43734);var s=i(88998);i.p=`${(0,s.j)().replace(/\/+$/,"")}/static/dist/`;var n=i(68124),o=i(29127),a=i(31207),r=i(57404);const l=(e,t="Galaxy")=>(0,r.RV)((i=>{const{options:s,bootstrapped:n}=e,o=new i(s,n);return o.debug(`${t} app`),o}));var c=i(18677);const d=()=>null;function u(e){"Galaxy"!=e&&function(e,t=null,i=null){const s=`window.${e}`,n=(a=e,1==f()[a]?console:(o=console,Object.keys(o).filter((e=>"function"==typeof o[e])).reduce(((e,t)=>(e[t]=d,e)),{})));var o,a;Object.defineProperty(window,e,{enumerable:!0,configurable:!1,get(){let i;n.groupCollapsed(`${s} read`),n.trace();try{i=t?t():window._monitorStorage[e],n.log(i)}catch(e){n.warn("Unable to retrieve"),n.warn(e)}return n.groupEnd(),i},set(t){n.groupCollapsed(`${s} write...`,String(t)),n.trace();try{i?i(t):window._monitorStorage[e]=t}catch(e){n.log("Unable to set value on window facade"),n.warn(e)}n.groupEnd()}})}(e)}function h(e,t=!0){const i=f();return t?i[e]=!0:e in i&&delete i[e],function(e){sessionStorage.setItem("global_monitors",JSON.stringify(e))}(i),i}function p(){const e=f();console.log(e)}function f(){const e=sessionStorage.getItem("global_monitors");return e?JSON.parse(e):{}}function m(){const e=Object.keys(f());console.groupCollapsed("monitor init"),console.log("The following global properties are monitored because they were setup in the javascript source manually:",e),console.log("To toggle messages on/off, type toggleGlobalMonitor('Galaxy', true|false) into the console"),console.log("You can set up any other variable by typing installMonitor('a window variable name')"),console.groupEnd(),e.forEach(u),window.installMonitor=u,window.showMonitorToggles=p,window.toggleGlobalMonitor=h}window._monitorStorage=window._monitorStorage||{};var g=i(18620),v=i(39666),y=i(75591);const b=(e,t)=>{if(console.log("initSentry"),t.sentry){const{sentry_dsn_public:i,email:s}=t.sentry;let n=e.config.version_major;e.config.version_minor&&(n+=`.${e.config.version_minor}`),g.S1({dsn:i,release:n}),s&&v.e((e=>{e.setUser({email:s})})),e.Sentry=y}};var _=i(55806),w=i.n(_);function x(){console.log("initTooltips"),w().fn.tooltip&&(w()(".unified-panel-header [title]").tooltip({placement:"bottom"}),w()("[title]").tooltip())}function C(){console.log("adjustIframeLinks"),w()("a").click((function(){var e=w()(this),t=window.parent.frames&&window.parent.frames.galaxy_main;if("galaxy_main"==e.attr("target")&&!t){var i=e.attr("href");-1==i.indexOf("?")?i+="?":i+="&",i+="use_panels=True",e.attr("href",i),e.attr("target","_self")}return e}))}function S(){console.log("addIframeClass"),window.self!==window.top&&(console.log(">>> We are in an iframe"),document.body.classList.add("framed"))}var k=i(20050),T=i(72570),$=i(45484);function D(e){console.log("onloadWebhooks"),e.config.enable_webhooks&&T.Z.load({type:"onload",callback:function(e){e.each((e=>{var t=e.toJSON();t.activate&&t.script&&$.ZP.appendScriptStyle(t)}))}})}var E=i(38577),A=i(69210);function P(e){console.log("initModals"),e.modal||(e.modal=new A.Z.View)}var L=i(62352);function N(e="Galaxy",t=l){(0,c.Bz)(m,b,S,C,P,x,k.L,(()=>{return e=20,t=1500,console.log("replace_big_select_inputs"),void(w().fn.select2?(void 0===e&&(e=20),void 0===t&&(t=3e3),(i=i||w()("select")).each((function(){var i,s,n=w()(this).not("[multiple]"),o=n.find("option").length;o<e||o>t||n.hasClass("no-autocomplete")||(i=n,s={placeholder:"Click to select",closeOnSelect:!w()(i).is("[MULTIPLE]"),dropdownAutoWidth:!0,containerCssClass:"select2-minwidth"},i.select2(s))}))):console.warn("No select 2"));var e,t,i}),E.M,D);const i=L.config$.pipe((0,o.U)((i=>t(i,e))));(0,n.a)([L.config$,i,c.PL]).subscribe((([t,i,s])=>{console.group("runInitializations",e,(0,a.H)()),s.forEach((e=>e(i,t))),(0,c.RT)(),console.groupEnd()}))}var I=i(23504);1==!I.Z.testBuild&&(console.log(`Galaxy Client '${I.Z.name}' build, dated ${I.Z.buildTimestamp}`),console.debug("Full configuration:",I.Z))},18677:(e,t,i)=>{"use strict";i.d(t,{Bz:()=>l,GL:()=>r,PL:()=>a,RT:()=>c});var s=i(86515),n=i(94975);const o=new s.X([]),a=o.pipe((0,n.h)((e=>e.length>0))),r=(...e)=>{const t=[...o.getValue(),...e];o.next(t)},l=(...e)=>{const t=[...e,...o.getValue()];o.next(t)},c=()=>o.next([])},59687:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addInitialization:()=>d.GL,config$:()=>f,get:()=>g,getAppRoot:()=>v,set:()=>m});var s=i(12550),n=i(86515),o=i(94975),a=i(93074),r=i(42965),l=i(88998);const c={options:{root:(0,l.j)()},bootstrapped:{},form_input_auto_focus:!1,sentry:{}};var d=i(18677);const u=new s.x,h=u.pipe((0,o.h)((e=>e instanceof Object)),(0,a.R)(((e,t)=>Object.assign({},e,t)),c)),p=new n.X(c);h.subscribe(p);const f=p.asObservable().pipe((0,o.h)(Boolean),(0,r.b)(100));function m(...e){e.forEach((e=>u.next(e)))}function g(){return p.getValue()}function v(e="/",t=!1){let i=e;try{i=g().options.root}catch(t){try{i=(0,l.j)(e)}catch(e){console.warn("Unable to find index link in head",e)}}return t&&(i=(i||"").replace(/\/$/,"")),i}},64252:(e,t,i)=>{"use strict";i(28594),i(35666)},63759:(e,t,i)=>{"use strict";i.d(t,{B4:()=>m,Sk:()=>c,VS:()=>p,Vj:()=>d,bz:()=>h,m:()=>f,oZ:()=>g,sh:()=>u,xC:()=>v});var s=i(9669),n=i.n(s),o=i(33113);const a=e=>{if(200!=e.status)throw new Error(e);return e.data},r={view:"summary"},l={view:"summary",keys:"size,contents_active,user_id"};async function c(){const e=await n().get((0,o.Vd)("api/histories"),{params:r});return a(e)}async function d(e){const t=`api/histories/${e}`,i=await n().get((0,o.Vd)(t),{params:l});return a(i)}async function u(){const e=await n().get((0,o.Vd)("history/create_new_current"));if(!e?.data?.id)throw new Error("failed to create and select new history");return a(e)}async function h(e,t,i){const s={history_id:e.id,name:t,all_datasets:i,current:!0},l=await n().post((0,o.Vd)("api/histories"),s,{params:r});return a(l)}async function p(e,t=!1){const i=`api/histories/${e}`+(t?"?purge=True":""),s=await n().delete((0,o.Vd)(i),{params:r});return a(s)}async function f(e,t){const i=`api/histories/${e}`,s=await n().put((0,o.Vd)(i),t,{params:l});return a(s)}async function m(e){const{id:t}=e,i=await n().post((0,o.Vd)("history/make_private"),function(e={}){return Object.keys(e).reduce(((t,i)=>(t.set(i,e[i]),t)),new FormData)}({history_id:t}));if(200!=i.status)throw new Error(i);return await d(t)}async function g(e){const t=await n().get((0,o.Vd)("history/current_history_json"),{params:{since:e}});return a(t)}async function v(e){const t=await n().get((0,o.Vd)("history/set_as_current"),{params:{id:e}});return a(t)}},41409:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});var s=i(70538);function n(e,t,i,n){i[e]||s.default.set(i,e,[]);const o=i[e];for(const e of t){const t=e[n];if(o[t]){const i=o[t];i.id==e.id&&Object.keys(i).forEach((t=>{i[t]=e[t]}))}else s.default.set(o,t,e)}}},78670:(e,t,i)=>{"use strict";i.d(t,{A7:()=>g});var s=i(37596),n=i(51156),o=i(12439),a=i(60047),r=i(63759),l=i(57404);let c=3e3,d=null,u=null,h=new Date,p=!1;function f(){"visible"===document.visibilityState?(c=3e3,g()):c=6e4}async function m(e=s.Z){const t=(0,n.v)();!1===p&&(p=!0,t.setWatchingVisibility(p),document.addEventListener("visibilitychange",f));try{await async function(e){const t=(0,n.v)();d=null;const i=new Date,s=await(0,r.oZ)(u);if(t.setLastCheckedTime(i),s&&s.id&&(!u||u<s.update_time)){const i=s.id;u=s.update_time;const n={v:"dev",limit:1e3,q:"update_time-ge",qv:h.toISOString()},r=function(){const e=[];return(0,a.M)("expanded-history-items").forEach((t=>{const i=t.split("-")[1];i?.trim()&&e.push(i)})),e}();r.length&&(n.details=r.join(","));const c=`/api/histories/${i}/contents`;h=new Date;const d=await(0,o.e)({url:c,params:n});d&&1e3==d.length&&console.debug("Reached limit of monitored changes (limit=1000)."),e.commit("history/setHistory",s),e.commit("saveDatasets",{payload:d}),t.saveHistoryItems(i,d),e.commit("saveCollectionObjects",{payload:d});const p=(0,l.Bz)();p&&p.user.fetch({url:`${p.user.urlRoot()}/${p.user.id||"current"}`})}}(e)}catch(e){console.warn(e),p=!1,t.setWatchingVisibility(p)}finally{d=setTimeout((()=>{m(e)}),c)}}function g(){d&&(clearTimeout(d),m())}},37596:(e,t,i)=>{"use strict";i.d(t,{Z:()=>pe});var s=i(70538),n=i(20629),o=i(988),a=i(3168),r=i(69483),l=i.n(r),c=i(23504);const d={state:{searchTags:new Set},mutations:{setSearchTags(e,t){e.searchTags=new Set(t)}},actions:{toggleSearchTag({state:e,commit:t},{text:i}){const s=new Set(e.searchTags);s.has(i)?s.delete(i):s.add(i),t("setSearchTags",s)},removeSearchTag({state:e,commit:t},{text:i}){const s=new Set(e.searchTags);s.delete(i),t("setSearchTags",s)},clearSearchTags({state:e,commit:t}){t("setSearchTags",new Set)}}},u={getTagsById:e=>t=>{if(e.modelTagCache.has(t)){const i=e.modelTagCache.get(t);return Array.from(i)}return[]}},h={updateTags({commit:e},{key:t,tags:i}){e("setTags",{key:t,tags:i})},initializeTags({dispatch:e,state:t},{key:i,tags:s}){t.modelTagCache.has(i)||e("updateTags",{key:i,tags:s})}},p={setTags(e,{key:t,tags:i}){e.modelTagCache=new Map(e.modelTagCache),e.modelTagCache.set(t,new Set(i))},reset(e){e.userTagList=[],e.modelTagCache=new Map}},f={state:{userTagList:[],modelTagCache:new Map},getters:u,actions:h,mutations:p};var m=i(62352),g=i(9669),v=i.n(g);const y={state:{jobMetricsByHdaId:{},jobMetricsByLddaId:{},jobMetricsByJobId:{}},getters:{getJobMetricsByDatasetId:e=>(t,i="hda")=>("hda"==i?e.jobMetricsByHdaId:e.jobMetricsByLddaId)[t]||[],getJobMetricsByJobId:e=>t=>e.jobMetricsByJobId[t]||[]},actions:{fetchJobMetricsForDatasetId:async({commit:e},{datasetId:t,datasetType:i})=>{const{data:s}=await v().get(`${(0,m.getAppRoot)()}api/datasets/${t}/metrics?hda_ldda=${i}`);e("saveJobMetricsForDatasetId",{datasetId:t,datasetType:i,jobMetrics:s})},fetchJobMetricsForJobId:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/jobs/${t}/metrics`);e("saveJobMetricsForJobId",{jobId:t,jobMetrics:i})}},mutations:{saveJobMetricsForDatasetId:(e,{datasetId:t,datasetType:i,jobMetrics:n})=>{const o="hda"==i?e.jobMetricsByHdaId:e.jobMetricsByLddaId;s.default.set(o,t,n)},saveJobMetricsForJobId:(e,{jobId:t,jobMetrics:i})=>{s.default.set(e.jobMetricsByJobId,t,i)}}},b={state:{jobDestinationParametersByJobId:{}},getters:{jobDestinationParams:e=>t=>e.jobDestinationParametersByJobId[t]||[]},actions:{fetchJobDestinationParams:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/jobs/${t}/destination_params`);e("saveJobDestinationParamsForJobId",{jobId:t,jobDestinationParams:i})}},mutations:{saveJobDestinationParamsForJobId:(e,{jobId:t,jobDestinationParams:i})=>{s.default.set(e.jobDestinationParametersByJobId,t,i)}}},_={state:{invocationDetailsById:{},invocationJobsSummaryById:{},invocationStepById:{}},getters:{getInvocationById:e=>t=>e.invocationDetailsById[t],getInvocationJobsSummaryById:e=>t=>e.invocationJobsSummaryById[t],getInvocationStepById:e=>t=>e.invocationStepById[t]},actions:{fetchInvocationForId:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/invocations/${t}`);e("saveInvocationForId",{invocationId:t,invocationData:i})},fetchInvocationJobsSummaryForId:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/invocations/${t}/jobs_summary`);e("saveInvocationJobsSummaryForId",{invocationId:t,jobsSummary:i})},fetchInvocationStepById:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/invocations/any/steps/${t}`);e("saveInvocationStepById",{invocationStepId:t,invocationStepData:i})}},mutations:{saveInvocationForId:(e,{invocationId:t,invocationData:i})=>{s.default.set(e.invocationDetailsById,t,i)},saveInvocationJobsSummaryForId:(e,{invocationId:t,jobsSummary:i})=>{s.default.set(e.invocationJobsSummaryById,t,i)},saveInvocationStepById:(e,{invocationStepId:t,invocationStepData:i})=>{s.default.set(e.invocationStepById,t,i)}}};var w=i(6628),x=i(12439),C=i(41409);const S=new w.h,k=e=>`${e.model_class}-${e.id}`,T={state:{items:{},itemKey:"element_index",objectIndex:{}},getters:{getCollectionElements:e=>({id:t})=>(e.items[t]||[]).filter((e=>!!e)).map((t=>{const i=k(t.object),s=e.objectIndex[i],n={...t.object};return s&&Object.keys(n).forEach((e=>{n[e]=s[e]})),{...t,object:n}}))},actions:{fetchCollectionElements:async({commit:e},{id:t,contentsUrl:i,offset:s})=>{const n=`/${i}?offset=${s}&limit=100`;await S.enqueue(x.e,{url:n}).then((i=>{e("saveCollectionElements",{id:t,payload:i})}))}},mutations:{saveCollectionElements:(e,{id:t,payload:i})=>{(0,C.x)(t,i,e.items,e.itemKey)},saveCollectionObjects:(e,{payload:t})=>{t.forEach((t=>{const i=k(t);s.default.set(e.objectIndex,i,t)}))}}},$={state:{items:{}},getters:{getDataset:e=>({id:t})=>e.items[t]||{hid:0,name:"Wait..."}},actions:{fetchDataset:async({state:e,commit:t},{id:i})=>{if(!e.items[i]){const e=`/api/datasets/${i}`;t("saveDataset",{id:i,dataset:await(0,x.e)({url:e})})}}},mutations:{saveDataset:(e,{id:t,dataset:i})=>{s.default.set(e.items,t,i)},saveDatasets:(e,{payload:t})=>{t.forEach((t=>{if("dataset"==t.history_content_type){const i=t.id;if(e.items[i]){const s=e.items[i];Object.keys(s).forEach((e=>{s[e]=t[e]}))}}}))}}};var D=i(63759);const E={setCurrentHistoryId(e,t){e.currentHistoryId=t},setHistory(e,t){s.default.set(e.histories,t.id,t)},deleteHistory(e,t){s.default.delete(e.histories,t.id)},setHistories(e,t=[]){const i=t.map((t=>{const i=e.histories[t.id]||{};return Object.assign({},i,t)})).reduce(((e,t)=>({...e,[t.id]:t})),{});Object.values(e.histories).forEach((e=>{const t=e.id;i[t]||(i[t]=e)})),s.default.set(e,"histories",i)},setHistoriesLoading(e,t){e.historiesLoading=t}},A={currentHistoryId:(e,t)=>{const{histories:i,currentHistoryId:s}=e;return s in i?s:t.firstHistoryId},firstHistory:(e,t)=>{const{histories:i}=t;return i.length?i[0]:null},firstHistoryId:(e,t)=>t?.firstHistory?.id||null,currentHistory:(e,t)=>{const{currentHistoryId:i}=t;return i?t.getHistoryById(i):null},histories:e=>Object.values(e.histories).sort(((...e)=>{const t=((...e)=>t=>e.reduce(((e,t)=>{if(void 0!==e)return t in e?e[t]:void 0}),t))(...["name"]);return(e,i)=>{const s=t(e).toLowerCase();return t(i).toLowerCase()-s}})()),getHistoryById:e=>t=>t in e.histories?e.histories[t]:null,getHistoryNameById:e=>t=>{const i=e.histories[t];return i&&i.name?i.name:"..."},historiesLoading:e=>e.historiesLoading},P=new Set;let L=!1;const N={copyHistory:async({dispatch:e},{history:t,name:i,copyAll:s})=>e("selectHistory",await(0,D.bz)(t,i,s)),createNewHistory:async({dispatch:e})=>e("selectHistory",await(0,D.sh)()),deleteHistory:async({dispatch:e,commit:t,getters:i},{history:s,purge:n=!1})=>(t("deleteHistory",await(0,D.VS)(s.id,n)),i.firstHistoryId?e("setCurrentHistory",i.firstHistoryId):e("createNewHistory")),loadCurrentHistory:async({dispatch:e})=>(0,D.oZ)().then((t=>e("selectHistory",t))),loadHistories({commit:e}){L||(e("setHistoriesLoading",!0),L=(0,D.Sk)().then((t=>{e("setHistories",t)})).catch((e=>{console.warn("loadHistories error",e)})).finally((()=>{L=!1,e("setHistoriesLoading",!1)})))},loadHistoryById({dispatch:e},t){P.has(t)||((0,D.Vj)(t).then((t=>{e("setHistory",t)})).catch((e=>{console.warn("loadHistoryById error",t,e)})).finally((()=>{P.delete(t)})),P.add(t))},resetHistory({commit:e}){e("setHistories",[]),e("setCurrentHistoryId",null)},async secureHistory({commit:e},t){e("setHistory",await(0,D.B4)(t))},selectHistory({commit:e},t){e("setHistory",t),e("setCurrentHistoryId",t.id)},setCurrentHistory:async({dispatch:e},t)=>e("selectHistory",await(0,D.xC)(t)),setHistory({commit:e},t){e("setHistory",t)},async updateHistory({commit:e},{id:t,...i}){e("setHistory",await(0,D.m)(t,i))}},I={namespaced:!0,state:{currentHistoryId:null,histories:{},historiesLoading:!1},getters:A,mutations:E,actions:N};var M=i(33113),j=i(50452);class R{constructor(e={}){Object.assign(this,e)}get isAnonymous(){return!this.email}}let O;const H={namespaced:!0,state:{currentUser:null},getters:{currentUser(e){const t=e.currentUser||{},i=new R(t);return Object.freeze(i)}},mutations:{setCurrentUser(e,t){e.currentUser=t},setFavoriteTools(e,t){const i=e.currentUser.preferences.favorites,s=i?JSON.parse(i):{tools:[]};s.tools=t,e.currentUser.preferences.favorites=JSON.stringify(s)}},actions:{loadUser({dispatch:e}){O||(O=async function(){const e=(0,M.Vd)("/api/users/current"),t=await v().get(e);if(200!=t.status)throw new Error(t);return t.data}().then((t=>{e("setCurrentUser",t)})).catch((e=>{console.warn("loadUser error",e)})).finally((()=>{O=null})))},async setCurrentUser({commit:e,dispatch:t},i){e("setCurrentUser",i),t("history/loadCurrentHistory",i,{root:!0}),t("history/loadHistories",i,{root:!0})},async addFavoriteTool({commit:e,state:t},i){const s=await async function(e,t){const i=(0,M.Vd)(`/api/users/${e}/favorites/tools`);try{const{data:e}=await v().put(i,{object_id:t});return e.tools}catch(e){(0,j.t)(e)}}(t.currentUser.id,i);e("setFavoriteTools",s)},async removeFavoriteTool({commit:e,state:t},i){const s=await async function(e,t){const i=(0,M.Vd)(`/api/users/${e}/favorites/tools/${encodeURIComponent(t)}`);try{const{data:e}=await v().delete(i);return e.tools}catch(e){(0,j.t)(e)}}(t.currentUser.id,i);e("setFavoriteTools",s)}}};var F=i(27606),z=i(34978),B=i(16697),U=i(26196),V=i(48034),q=i(29127),W=i(94975),G=i(40089),Z=i(83505);const K={namespaced:!0,state:{showSelectionQueryBreakWarning:!0},getters:{getShowSelectionQueryBreakWarning:e=>()=>e.showSelectionQueryBreakWarning},mutations:{saveShowSelectionQueryBreakWarningFlag:(e,{show:t})=>{e.showSelectionQueryBreakWarning=t}},actions:{ignoreSelectionQueryBreakWarning:({commit:e})=>{e("saveShowSelectionQueryBreakWarningFlag",{show:!1})}}};let Y;const J={namespaced:!0,getters:{config:e=>e?.config||{},configIsLoaded:e=>null!==e?.config},state:{config:null},mutations:{setConfigs(e,t={}){e.config=Object.assign({},e.config||{},t)}},actions:{loadConfigs({commit:e}){Y||(Y=async function(){const e=(0,M.Vd)("/api/configuration"),t=await v().get(e);if(200!=t.status)throw new Error(t);return t.data}().then((t=>e("setConfigs",t))).catch((e=>console.warn("loadConfigs error",e))).finally((()=>Y=null)))}}};var X=i(39801);const Q={toolById:{},toolResults:[],allTools:[]},ee={state:Q,getters:{getToolForId:e=>t=>e.toolById[t],getToolNameById:e=>t=>{const i=e.toolById[t];return i&&i.name?i.name:"..."},getTools:e=>({filterSettings:t,toolbox:i})=>0===Object.keys(t).length?e.allTools:(0,X.FW)(i,e.toolResults)},actions:{fetchToolForId:async({commit:e},t)=>{console.log("fetching tool");const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/tools/${t}`);e("saveToolForId",{toolId:t,toolData:i})},fetchAllTools:async({commit:e},{filterSettings:t,panelView:i,toolbox:s})=>{if(0!==Object.keys(t).length){const n=(0,X._m)(t,i,s),{data:o}=await v().get(`${(0,m.getAppRoot)()}api/tools`,{params:{q:n}});e("saveToolResults",{toolsData:o})}else if(0===Q.allTools.length){const{data:t}=await v().get(`${(0,m.getAppRoot)()}api/tools?in_panel=False`);e("saveAllTools",{toolsData:t})}}},mutations:{saveToolForId:(e,{toolId:t,toolData:i})=>{s.default.set(e.toolById,t,i)},saveToolResults:(e,{toolsData:t})=>{e.toolResults=t},saveAllTools:(e,{toolsData:t})=>{e.allTools=t}}};var te=i(68743);const ie={state:{datasetPathDestination:{}},getters:{pathDestination:e=>(t,i)=>e.datasetPathDestination[t]?e.datasetPathDestination[t][i]:void 0},actions:{fetchPathDestination:async({commit:e},{history_dataset_id:t,path:i})=>{const s=await(async(e,t)=>{let i=pe.getters.getDatasetExtFiles(e);return null==i&&(await pe.dispatch("fetchDatasetExtFiles",e),i=pe.getters.getDatasetExtFiles(e)),(s=>{if(void 0===t||"undefined"===t)return s;const n=t,o=i.find((e=>n===e.path));if(o){if("Directory"===o.class)return s.isDirectory=!0,s.filepath=n,s;s.fileLink=(0,te.UU)(e,o.path)}return s})({datasetContent:i})})(t,i);e("savePathDestination",{history_dataset_id:t,path:i,pathDestination:s})}},mutations:{savePathDestination:(e,{history_dataset_id:t,path:i,pathDestination:s})=>{e.datasetPathDestination[t]={[i]:s}}}},se={state:{datasetExtFilesById:{}},getters:{getDatasetExtFiles:e=>t=>e.datasetExtFilesById[t]||null},actions:{fetchDatasetExtFiles:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/histories/${t}/contents/${t}/extra_files`);e("saveDatasetExtFiles",{history_dataset_id:t,datasetExtFiles:i})}},mutations:{saveDatasetExtFiles:(e,{history_dataset_id:t,datasetExtFiles:i})=>{s.default.set(e.datasetExtFilesById,t,i)}}},ne={state:{job:{}},getters:{job:e=>t=>e.job[t]},actions:{fetchJob:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/jobs/${t}?full=true`);e("saveJobForJobId",{jobId:t,job:i})}},mutations:{saveJobForJobId:(e,{jobId:t,job:i})=>{s.default.set(e.job,t,i)}}},oe={state:{collectionAttributes:{}},getters:{getCollectionAttributes:e=>t=>e.collectionAttributes[t]||null},actions:{fetchCollectionAttributes:async({commit:e},t)=>{const{data:i}=await v().get((0,M.Vd)("api/dataset_collections/"+t+"/attributes"));e("saveCollectionAttributes",{collectionId:t,collectionAttributes:i})}},mutations:{saveCollectionAttributes:(e,{collectionId:t,collectionAttributes:i})=>{s.default.set(e.collectionAttributes,t,i)}}},ae={namespaced:!0,state:{panel:{},currentPanelView:null},getters:{panel:e=>t=>e.panel[t]||[],currentPanel:e=>{const t=e.currentPanelView||"default";return e.panel[t]||[]},currentPanelView:e=>e.currentPanelView},actions:{initCurrentPanelView:async({commit:e,state:t,dispatch:i},s)=>{const n=t.currentPanelView||s;null==t.currentPanelView&&e("setCurrentPanelView",{panelView:n});const o=await v().get(`${(0,m.getAppRoot)()}api/tools?in_panel=true&view=${n}`).catch((e=>{e.response&&400==e.response.status&&i("setCurrentPanelView",s)}));void 0!==o&&e("savePanelView",{panelView:n,panel:o.data})},setCurrentPanelView:async({commit:e},t)=>{e("setCurrentPanelView",{panelView:t});const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/tools?in_panel=true&view=${t}`);e("savePanelView",{panelView:t,panel:i})},fetchPanel:async({commit:e},t)=>{const{data:i}=await v().get(`${(0,m.getAppRoot)()}api/tools?in_panel=true&view=${t}`);e("savePanelView",{panelView:t,panel:i})}},mutations:{savePanelView:(e,{panelView:t,panel:i})=>{s.default.set(e.panel,t,i)},setCurrentPanelView:(e,{panelView:t})=>{e.currentPanelView=t}}};var re=i(19917),le=i(4490),ce=i(57404);const de=e=>{const t=(0,re.P)((()=>function(e,t={}){const{spamTime:i=100,timeout:s=1e4,isValid:n=(e=>void 0!==e)}=t;return(0,B.F)(i).pipe((0,q.U)((()=>e())),(0,W.h)(n),(0,G.q)(1),(0,Z.R)((0,U.H)(s)))}((()=>(0,ce.Bz)())).pipe((0,le.d)(1))));(function(e,t){e.pipe((0,F.j)("user"),(0,z.w)((e=>function(e,t="change"){return(0,V.R)(e,t).pipe((0,q.U)((([e])=>e.toJSON())))}(e)))).subscribe((e=>t.commit("user/setCurrentUser",e)),(e=>console.log("syncUserToGalaxy error",e)),(()=>console.log("syncUserToGalaxy complete")))})(t,e),function(e,t){e.pipe((0,F.j)("config"),(0,q.U)((e=>Object.assign({},e)))).subscribe((e=>t.commit("config/setConfigs",e)),(e=>console.log("syncConfigToGalaxy error",e)),(()=>console.log("syncConfigToGalaxy complete")))}(t,e)};s.default.use(n.ZP);const ue=l().createInstance({});ue.config({driver:[l().INDEXEDDB,l().LOCALSTORAGE],name:"galaxyIndexedDB",version:1,storeName:"galaxyStore"});const he=new a.ZP({storage:ue,asyncStorage:!0,reducer:e=>{const{panels:t,userFlags:i}=e;return{panels:t,userFlags:i}}}),pe=function(){const e={plugins:[(0,o.ZP)(),he.plugin],modules:{collectionAttributesStore:oe,collectionElements:T,config:J,destinationParameters:b,dataset:$,datasetExtFiles:se,datasetPathDestination:ie,informationStore:ne,invocations:_,jobMetrics:y,gridSearch:d,history:I,panels:ae,tags:f,tools:ee,user:H,userFlags:K}};return c.Z.testBuild||e.plugins.push(de),new n.ZP.Store(e)}()},51156:(e,t,i)=>{"use strict";i.d(t,{v:()=>d});var s=i(28732),n=i(96486),o=i(6628),a=i(12439),r=i(41409),l=i(8185);const c=new o.h,d=(0,s.Q_)("historyItemsStore",{state:()=>({items:{},itemKey:"hid",latestCreateTime:new Date,totalMatchesCount:void 0,lastCheckedTime:new Date,isWatching:!1}),getters:{getHistoryItems:e=>(t,i)=>{const s=e.items[t]||[],o=(0,l.Zj)(i),a=s.filter((e=>!!e&&!!(0,l.y$)(o,e)));return(0,n.reverse)(a)},getLatestCreateTime:e=>e.latestCreateTime,getTotalMatchesCount:e=>e.totalMatchesCount,getLastCheckedTime:e=>e.lastCheckedTime,getWatchingVisibility:e=>e.isWatching},actions:{async fetchHistoryItems(e,t,i){const s=(0,l.Wz)(t),n=`/api/histories/${e}/contents?v=dev&order=hid&offset=${i}&limit=100&${s}`;await c.enqueue(a.e,{url:n,headers:{accept:"application/vnd.galaxy.history.contents.stats+json"}},e).then((t=>{const i=t.stats;this.totalMatchesCount=i.total_matches;const s=t.contents;this.saveHistoryItems(e,s)}))},saveHistoryItems(e,t){this.$patch((i=>{(0,r.x)(e,t,i.items,i.itemKey),t.forEach((e=>{if("ok"==e.state){const t=new Date(e.create_time);t>i.latestCreateTime&&(i.latestCreateTime=t)}}))}))},setLastCheckedTime(e){this.lastCheckedTime=e},setWatchingVisibility(e){this.isWatching=e}}})},38577:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var s=i(55806),n=i.n(s),o=i(59050),a=n();function r(){a("div[popupmenu]").each((function(){var e={},t=a(this);t.find("a").each((function(){var t=a(this),i=t.get(0),s=i.getAttribute("confirm"),n=i.getAttribute("href"),o=i.getAttribute("target");e[t.text()]=n?{url:n,action:function(e){if(!s||confirm(s)){if(o)return window.open(n,o),!1;t.click()}else e.preventDefault()}}:null}));var i,s,n,r=a(`#${t.attr("popupmenu")}`);r.find("a").bind("click",(e=>(e.stopPropagation(),!0))),s=e,n=(i=r).data("menu_options"),i.data("menu_options",s),n||i.bind("click.show_popup",(e=>(a(".popmenu-wrapper").remove(),setTimeout((()=>{var t=a(`<div class="dropdown-menu" id="${i.attr("id")}-menu"/>`),s=i.data("menu_options");o.default.size(s)<=0&&a('<div class="dropdown-item">No Options.</div>').appendTo(t),a.each(s,((e,i)=>{if(i){const s=i.action||i,n=i.url||"javascript:void(0);",o=a("<a>").addClass("dropdown-item").attr("href",n).html(e).click(s);i.class&&o.addClass(i.class),t.append(o)}else t.append(a("<div/>").addClass("dropdown-item head").append(a("<a href='javascript:void(0)' role='button'></a>").html(e)))}));var n=a("<div class='popmenu-wrapper' style='position: absolute;left: 0;'></div>").append(t).appendTo("body"),r=e.pageX-n.width()/2;r=Math.min(r,a(document).scrollLeft()+a(window).width()-a(n).width()-5),r=Math.max(r,a(document).scrollLeft()+5),n.css({top:e.pageY,left:r})}),10),setTimeout((()=>{var e=e=>{a(e).bind("click.close_popup",(()=>{a(".popmenu-wrapper").remove(),e.unbind("click.close_popup")}))};e(a(window.document)),e(a(window.top.document));for(var t=window.top.frames.length;t--;)e(a(window.top.frames[t].document))}),50),!1))),r.addClass("popup"),t.remove()}))}},39327:(e,t,i)=>{"use strict";i.d(t,{D:()=>o});var s=i(45484),n=i(119);function o(e){const t=(0,s.nF)(e),i=Math.abs((t>>4)%360);let o=75+(15&t);i>=70&&i<=95&&256==(256&t)&&(o+=.75*(100-o));const[a,r,l]=(0,n.hsluvToRgb)([i,100,o]);return{primary:`rgb(${255*a},${255*r},${255*l})`,darker:(0,n.hsluvToHex)([i,100,.9*o]),dimmed:(0,n.hsluvToHex)([i,100,.95*o])}}},38944:(e,t,i)=>{"use strict";i.d(t,{B8:()=>w,Ue:()=>_,WZ:()=>v,hy:()=>y});var s=i(55806),n=i.n(s),o=i(9669),a=i.n(o),r=i(70538),l=i(66581),c=i(94422),d=(i(18281),i(95150)),u=i(93531),h=i(57404),p=i(62352),f=i(93375),m=i(78670);async function g(){const e=(0,h.Bz)();return e.currHistoryPanel&&e.currHistoryPanel.model.id?e.currHistoryPanel.model.id:a().get(`${(0,p.getAppRoot)()}history/current_history_json`).then((e=>e.data.id)).catch((e=>(console.error("Error fetching current user history:",e),null)))}function v(e,t={}){g().then((i=>{Object.assign(t,{callback:e,history:i}),t.new?(0,d.sS)(t):b(l.Z,t)}))}function y(e,t={}){Object.assign(t,{callback:e}),b(c.c,t)}function b(e,t){const i=r.default.extend(e),s=document.createElement("div");n()("body").append(s),new i({propsData:t}).$mount(s)}function _(e){(async function(){return e.history_id?e.history_id:g()})().then((t=>{(0,f.D)({url:`${(0,p.getAppRoot)()}api/tools/fetch`,success:t=>{w(),e.success&&e.success(t)},error:e.error,data:{payload:(0,u.SF)([e],t)}})}))}function w(){(0,h.Bz)()?.currHistoryPanel?.refreshContents(),(0,m.A7)()}},8185:(e,t,i)=>{"use strict";i.d(t,{Wz:()=>p,Zj:()=>h,y$:()=>f});const s={deleted:!1,visible:!0},n=[[">","_gt"],["<","_lt"]];function o(e){return Date.parse(e)/1e3}function a(e){return String(e).toLowerCase()}function r(e){return"true"===a(e)}function l(e,t=null,i=null){return{attribute:e,converter:i,query:t||`${e}-eq`,handler:(e,t)=>(i&&(e=i(e),t=i(t)),a(e)===a(t))}}function c(e,t=null,i=null){return{attribute:e,converter:i,query:t||`${e}-contains`,handler:(e,t)=>(i&&(e=i(e),t=i(t)),a(e).includes(a(t)))}}function d(e,t,i=null){return{attribute:e,converter:i,query:`${e}-${t}`,handler:(e,s)=>{switch(i&&(e=i(e),s=i(s)),t){case"lt":return e<s;case"le":return e<=s;case"ge":return e>=s;case"gt":return e>s}}}}const u={hid:l("hid"),state:l("state"),name:c("name"),extension:l("extension"),annotation:c("annotation"),hid_ge:d("hid","ge"),hid_gt:d("hid","gt"),hid_le:d("hid","le"),hid_lt:d("hid","lt"),tag:c("tags","tag",(function(e){return e&&"string"==typeof e&&e.startsWith("#")&&(e=e.replace("#","name:")),a(e)})),visible:l("visible","visible",r),deleted:l("deleted","deleted",r),create_time:d("create_time","le",o),create_time_ge:d("create_time","ge",o),create_time_gt:d("create_time","gt",o),create_time_le:d("create_time","le",o),create_time_lt:d("create_time","lt",o),update_time:d("update_time","le",o),update_time_ge:d("update_time","ge",o),update_time_gt:d("update_time","gt",o),update_time_le:d("update_time","le",o),update_time_lt:d("update_time","lt",o)};function h(e,t=!0){const i=e.match(/[^\s']+(?:'[^']*'[^\s']*)*|(?:'[^']*'[^\s']*)+/g);let o={},r=!1;i&&i.forEach((e=>{const t=/(\S+)([:><])(.+)/g.exec(e);if(t){let e=t[1];const i=t[2],s=t[3];for(const[t,s]of n)if(i===t){e=`${e}${s}`;break}const l=e.replaceAll("-","_");u[l]&&(o[l]=function(e){return a(e).replaceAll("'","")}(s),r=!0)}})),!r&&e.length>0&&(o.name=e);let l=!1;for(const e in s)if(o[e]){l=!0;break}return!l&&t&&(o={...o,...s}),Object.entries(o)}function p(e,t=!0){const i=function(e,t=!0){const i={},s=h(e,t);for(const[e,t]of s){const s=u[e].query,n=u[e].converter;i[s]=n?n(t):t}return i}(e,t);return Object.entries(i).map((([e,t])=>`q=${e}&qv=${t}`)).join("&")}function f(e,t){for(const[i,s]of e){const e=u[i].attribute;if(!(0,u[i].handler)(t[e],s))return!1}return!0}},11411:(e,t,i)=>{"use strict";i.d(t,{Dx:()=>r,JE:()=>l,NC:()=>a,ZP:()=>c});var s=i(36156),n=i.n(s);let o=[];function a(e){return o[e]||e}function r(e,t){const i=!(!t.default_locale||"auto"==t.default_locale)&&t.default_locale.toLowerCase();let s={};e&&e.attributes.preferences&&"extra_user_preferences"in e.attributes.preferences&&(s=JSON.parse(e.attributes.preferences.extra_user_preferences));let n="localization|locale"in s&&s["localization|locale"].toLowerCase();"auto"==n&&(n=!1);const o="undefined"==typeof navigator?"__root":(navigator.language||navigator.userLanguage||"__root").toLowerCase(),a=n||o||i;sessionStorage.setItem("currentLocale",a)}function l(e,t){let i=null;return Object.prototype.hasOwnProperty.call(n(),"__root")&&(i=sessionStorage.getItem("currentLocale"),i&&(o=n()["__"+i]||n()["__"+i.split("-")[0]]||n().__root)),i}const c=a},59466:(e,t,i)=>{"use strict";i.d(t,{b:()=>$});var s=i(70538),n=i(20629),o=i(94741),a=i(37596);const r=new s.default,l={created(){this.eventHub=r}},c={install(e){e.mixin(l)}};var d=i(80275),u=i(9141),h=i(27606);const p=e=>t=>{e&&console.log(`[${e}] next`,t)},f=e=>t=>{e&&console.warn(`[${e}] error`,t)},m=e=>()=>{e&&console.log(`[${e}] complete`)},g={methods:{watch$(e,t=!0){const i={immediate:t};return this.$watchAsObservable(e,i).pipe((0,h.j)("newValue"))},listenTo(e,t={}){const i=t instanceof Function?{next:t}:t,{label:s=null,next:n=p(s),error:o=f(s),complete:a=m(s)}=i;(0,u.b)(e)?this.$subscribeTo(e,n,o,a):console.warn("Object provided to listenTo was not an observable")}}},v={install(e){e.use(d.Z),e.mixin(g)}};var y=i(11411);const b=/\r?\n|\r/g,_=/\s\s+/g,w={install(e,t=y.ZP){e.filter("localize",t),e.filter("l",t),e.directive("localize",function(e){return{bind(t,i,s){t.childNodes.forEach((t=>{const i=t.textContent.replace(b," ").replace(_," ").trim();t.textContent=e(i)}))}}}(t)),e.mixin(function(e){return{methods:{l:e,localize:e}}}(t))}};var x=i(9382),C=i(57810),S=i(51436);x.vI.add(S.FPD,S.BDt,S.eTv,S.heh,S.a3n,S.SZw,S.uM9,S.mh3,S.rWw,S.Qj4,S.kZ_,S.q7m,S.cNd,S.iV1,S.Ssp,S.Mdf,S.W2U,S.ca9,S.G_j,S.Pk,S.sqG,S.nNP,S.Zrf,S.byT,S.XQY,S.IwR,S.zc,S.r8p,S.Psp,S.EfQ,S.aC2,S.tho,S.$aW,S.ZeM,S.eHv,S.X7o,S.FJU,S.klh);const k={components:{Icon:C.GN}},T={install(e){e.mixin(k)}};s.default.use(n.ZP),s.default.use(o.ZPm),s.default.use(c),s.default.use(w),s.default.use(v),s.default.use(T);const $=e=>{const t=s.default.extend(e);return(e,i)=>new t({store:a.Z,propsData:e,el:i})}},6628:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});class s{constructor(e=1e3){this.throttlePeriod=e,this.nextPromise={},this.pendingPromise=!1}async enqueue(e,t,i=0){return new Promise(((s,n)=>{this.nextPromise[i]={action:e,args:t,resolve:s,reject:n},this.dequeue()}))}async dequeue(){const e=Object.keys(this.nextPromise);if(!this.pendingPromise&&e.length>0){const t=e[0],i=this.nextPromise[t];delete this.nextPromise[t],this.pendingPromise=!0;try{const e=await i.action(i.args);i.resolve(e)}catch(e){i.reject(e)}finally{setTimeout((()=>{this.pendingPromise=!1,this.dequeue()}),this.throttlePeriod)}}}}},26069:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var s=i(59050);const n={get:function(e,t=null){t=t||window.location.search.substr(1);var i=new RegExp(`${e}=([^&#$]+)`,"g"),n=t.match(i);if(n&&n.length)return 1===(n=s.default.map(n,(t=>decodeURIComponent(t.substr(e.length+1).replace(/\+/g," "))))).length?n[0]:n},parse:function(e){if(!e)return{};var t={};return e.split("&").forEach((e=>{var i=e.split("=");t[i[0]]=decodeURI(i[1])})),t}}},33113:(e,t,i)=>{"use strict";i.d(t,{Vd:()=>o,_f:()=>a});var s=i(62352);const n=/(\/)+/g;function o(e){return`${(0,s.getAppRoot)()}/${e}`.replace(n,"/")}function a(e){return e&&e.startsWith("/")?o(e):e}},60047:(e,t,i)=>{"use strict";function s(e){try{const t=sessionStorage.getItem(e),i=t?JSON.parse(t):null;return Array.isArray(i)?new Set(i):new Set}catch(t){return console.warn("Error loading cached list.",e,t),sessionStorage.removeItem(e),new Set}}i.d(t,{M:()=>s})},93375:(e,t,i)=>{"use strict";i.d(t,{D:()=>m,l:()=>g});var s,n=i(59050),o=i(55806),a=i.n(o),r=i(62352),l=i(17956),c=i(9669),d=i.n(c);function u(e,t){d().post(`${(0,r.getAppRoot)()}api/tools/fetch`,e).then((e=>{t.success(e.data)})).catch((e=>{t.error(e.response?.data.err_msg||"Request failed.")}))}function h(e){return async function(t,i){return["tus-br",t.name,t.type,t.size,t.lastModified,e.data.history_id].join("-")}}function p(e,t,i,s,n){const o=performance.now(),a=n.chunkSize,r=e[t];if(!r)return delete i.files,u(i,n);console.debug(`Starting chunked upload for ${r.name} [chunkSize=${a}].`);const c=new l.gq(r,{endpoint:s,retryDelays:[0,3e3,1e4],fingerprint:h(n),chunkSize:a,metadata:i.payload,onError:function(e){const t=e.originalResponse?.getStatus();403==t?(console.error(`Failed because of missing authorization: ${e}`),n.error(e)):(console.log(`Failed because: ${e}\n, will retry in 10 seconds`),setTimeout((()=>f(c)),1e4))},onChunkComplete:function(e,t,i){const s=(t/i*100).toFixed(2);console.log(t,i,s+"%"),n.progress(s)},onSuccess:function(){console.log(`Upload of ${r.name} to ${c.url} took ${(performance.now()-o)/1e3} seconds`),i[`files_${t}|file_data`]={session_id:c.url.split("/").at(-1),name:r.name},p(e,t+1,i,s,n)}});f(c)}function f(e){e.findPreviousUploads().then((function(t){t.length&&(console.log("previous Upload",t),e.resumeFromPreviousUpload(t[0])),e.start()}))}function m(e){const t={data:{},success:()=>{},error:()=>{},warning:()=>{},progress:()=>{},attempts:7e4,timeout:5e3,url:null,error_file:"File not provided.",error_attempt:"Maximum number of attempts reached.",error_tool:"Tool submission failed.",chunkSize:10485760,...e};var i=t.data;if(i.error_message)return void t.error(i.error_message);const s=`${(0,r.getAppRoot)()}api/upload/resumable_upload/`;if(function(e){return e.files.length}(i)||function(e){return e.targets.length&&e.targets[0].items&&e.targets[0].items[0].composite}(i))return p(i.files,0,i,s,t);if(i.targets.length&&i.targets[0].elements.length){const e=i.targets[0].elements[0];if("url"==e.src)return u(i,t);{const n=new Blob([e.paste_content]);return n.name=i.targets[0].elements[0].name||"default",p([n],0,i,s,t)}}}s=a(),a().event.props.push("dataTransfer"),s.fn.uploadinput=function(e){var t=s.extend({},{ondragover:()=>{},ondragleave:()=>{},onchange:()=>{},multiple:!1},e),i=s(`<input type="file" style="display: none" ${t.multiple?"multiple":""}/>`);this.append(i.change((e=>{t.onchange(e.target.files),e.target.value=null})));const n=this.get(0);return n.addEventListener("drop",(e=>{t.ondragleave(e),e.dataTransfer&&(t.onchange(e.dataTransfer.files),e.preventDefault())})),n.addEventListener("dragover",(e=>{e.preventDefault(),t.ondragover(e)})),n.addEventListener("dragleave",(e=>{e.stopPropagation(),t.ondragleave(e)})),{dialog:()=>{i.trigger("click")}}};class g{constructor(e){this.opts={dragover:()=>{},dragleave:()=>{},announce:e=>{},initialize:e=>{},progress:(e,t)=>{},success:(e,t)=>{},warning:(e,t)=>{},error:(e,t)=>{alert(t)},complete:()=>{},multiple:!0,...e},this.queue=new Map,this.nextIndex=0,this.fileSet=new Set,this._initFlags(),this.uploadinput=e.$uploadBox.uploadinput({multiple:this.opts.multiple,onchange:e=>{n.default.each(e,(e=>{e.chunk_mode=!0})),this.add(e)},ondragover:e.ondragover,ondragleave:e.ondragleave})}_initFlags(){this.isRunning=!1,this.isPaused=!1}select(){this.uploadinput.dialog()}reset(){this.queue.clear(),this.fileSet.clear()}start(){this.isRunning||(this.isRunning=!0,this._process())}stop(){this.isPaused=!0}configure(e){return this.opts=Object.assign(this.opts,e),this.opts}compatible(){return window.File&&window.FormData&&window.XMLHttpRequest&&window.FileList}add(e){return e&&e.length&&!this.isRunning&&e.forEach((e=>{const t=e.name+e.size;if("new"===e.mode||!this.fileSet.has(t)){this.fileSet.add(t);const i=this.nextIndex++;this.queue.set(i,e),this.opts.announce(i,e)}})),this.nextIndex-1}remove(e){const t=this.queue.get(e),i=t.name+t.size;this.queue.delete(e)&&this.fileSet.delete(i)}get size(){return this.queue.size}_firstItemIndex(){return this.queue.keys().next().value}_process(){if(0===this.size||this.isPaused)return this._initFlags(),void this.opts.complete();this.isRunning=!0;const e=this._firstItemIndex();this.remove(e),this._submitUpload(e)}_submitUpload(e){m({url:this.opts.url,data:this.opts.initialize(e),success:t=>{this.opts.success(e,t),this._process()},warning:t=>{this.opts.warning(e,t)},error:t=>{this.opts.error(e,t),this._process()},progress:t=>{this.opts.progress(e,t)}})}}},12439:(e,t,i)=>{"use strict";i.d(t,{e:()=>r});var s=i(9669),n=i.n(s),o=i(33113),a=i(50452);async function r({url:e,headers:t,params:i}){try{t=t||{},i=i||{};const{data:s}=await n().get((0,o._f)(e),{headers:t,params:i});return s}catch(e){(0,a.t)(e)}}},45484:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>m,nF:()=>f});var s=i(59050),n=i(55806),o=i.n(n),a=i(62352),r=i(57404),l=i(11411);function c(e){var t={contentType:"application/json",type:e.type||"GET",data:e.data||{},url:e.url};"GET"==t.type||"DELETE"==t.type?(o().isEmptyObject(t.data)||(t.url+=-1==t.url.indexOf("?")?"?":"&",t.url+=o().param(t.data,!0)),t.data=null):(t.dataType="json",t.data=JSON.stringify(t.data)),o().ajax(t).done((t=>{if("string"==typeof t)try{t=t.replace("Infinity,",'"Infinity",'),t=o().parseJSON(t)}catch(e){console.debug(e)}e.success&&e.success(t)})).fail((t=>{var i=null;try{i=o().parseJSON(t.responseText)}catch(e){i=t.responseText}e.error&&e.error(i,t.status)})).always((()=>{e.complete&&e.complete()}))}var d=1024,u=d*d,h=u*d,p=h*d;function f(e){var t,i,s=2166136261;for(t=0,i=e.length;t<i;t++)s^=e.charCodeAt(t),s+=(s<<1)+(s<<4)+(s<<7)+(s<<8)+(s<<24);return s>>>0}const m={cssLoadFile:function(e){o()(`link[href^="${e}"]`).length||o()(`<link href="${(0,a.getAppRoot)()}${e}" rel="stylesheet">`).appendTo("head")},cssGetAttribute:function(e,t){var i=o()(`<div class="${e}"></div>`);i.appendTo(":eq(0)");var s=i.css(t);return i.remove(),s},get:function(e){top.__utils__get__=top.__utils__get__||{};var t=JSON.stringify(e);e.cache&&top.__utils__get__[t]?(e.success&&e.success(top.__utils__get__[t]),window.console.debug(`utils.js::get() - Fetching from cache [${e.url}].`)):c({url:e.url,data:e.data,success:function(i){top.__utils__get__[t]=i,e.success&&e.success(i)},error:function(t,i){e.error&&e.error(t,i)}})},merge:function(e,t){return e?s.default.defaults(e,t):t},iframe:function(e){return`<iframe src="${e}" frameborder="0" style="width: 100%; height: 100%;"/>`},bytesToString:function(e,t,i){i=void 0!==i?i:1;var s="";if(e>=p)e/=p,s="TB";else if(e>=h)e/=h,s="GB";else if(e>=u)e/=u,s="MB";else if(e>=d)e/=d,s="KB";else{if(!(e>0))return t?"0 b":"<strong>-</strong>";s="b"}var n="b"==s?e:function(e,t){for(var i=1,s=0;s<t;s++)i*=10;return Math.round(e*i)/i}(e,i);return t?`${n} ${s}`:`<strong>${n}</strong> ${s}`},uid:function(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++},time:function(){var e=new Date,t=(e.getHours()<10?"0":"")+e.getHours(),i=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${e.getDate()}/${e.getMonth()+1}/${e.getFullYear()}, ${t}:${i}`},request:c,sanitize:function(e){return o()("<div/>").text(e).html()},textify:function(e){if(o().isArray(e)){var t=(e=e.toString().replace(/,/g,", ")).lastIndexOf(", ");return-1!=t&&(e=`${e.substr(0,t)} or ${e.substr(t+2)}`),e}return""},isEmpty:function(e){if(e instanceof Array||(e=[e]),0===e.length)return!0;for(var t in e)if(["__null__","__undefined__",null,void 0].indexOf(e[t])>-1)return!0;return!1},deepeach:function e(t,i){for(var n in t){var o=t[n];if(s.default.isObject(o)){var a=i(o);a&&(t[n]=a),e(o,i)}}},isJSON:function(e){return/^[\],:{}\s]*$/.test(e.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))},clone:function(e){return JSON.parse(JSON.stringify(e)||null)},linkify:function(e){var t,i,s;return t=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|])/gim,i=/(^|[^/])(www\.[\S]+(\b|$))/gim,s=/(([a-zA-Z0-9\-_.])+@[a-zA-Z_]+?(\.[a-zA-Z]{2,6})+)/gim,e.replace(t,'<a href="$1" target="_blank">$1</a>').replace(i,'$1<a href="http://$2" target="_blank">$2</a>').replace(s,'<a href="mailto:$1">$1</a>')},appendScriptStyle:function(e){e.script&&""!==e.script&&o()("<script/>",{type:"text/javascript"}).text(e.script).appendTo("head"),e.styles&&""!==e.styles&&o()("<style/>",{type:"text/css"}).text(e.styles).appendTo("head")},getQueryString:function(e){return decodeURIComponent(window.location.search.replace(new RegExp(`^(?:.*[&\\?]${encodeURIComponent(e).replace(/[.+*]/g,"\\$&")}(?:\\=([^&]*))?)?.*$`,"i"),"$1"))},setWindowTitle:function(e){const t=(0,r.Bz)();window.document.title=e?`Galaxy ${t.config.brand?` | ${t.config.brand}`:""} | ${(0,l.ZP)(e)}`:"Galaxy "+(t.config.brand?` | ${t.config.brand}`:"")},waitForElementToBePresent:async function(e){for(;null===document.querySelector(e);)await new Promise((e=>requestAnimationFrame(e)));return document.querySelector(e)},delay:async function(e){e>0&&await new Promise((t=>setTimeout(t,e)))}}},72570:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var s=i(72316),n=i.n(s),o=i(62352),a=i(45484);const r=n().Collection.extend({url:function(){return`${(0,o.getAppRoot)()}api/webhooks`}});function l(e,t){return e.models.filter((e=>{const i=e.get("type");return!!i&&-1!==i.indexOf(t)}))}const c={WebhookView:n().View.extend({el:"#webhook-view",initialize:function(e){const t=e.toolId||"",i=e.toolVersion||"";this.$el.attr("tool_id",t),this.$el.attr("tool_version",i),(new r).fetch({success:t=>{e.type&&t.reset(l(t,e.type)),t.length>0&&this.render(function(e){const t=e.pluck("weight"),i=t.reduce(((e,t)=>e+t)),s=new Map;t.forEach(((e,t)=>{s.set(t,parseFloat((e/i).toFixed(2)))}));const n=[];for(const[e,t]of s)for(let i=0;i<100*t;i++)n.push(e);return e.at(n[Math.floor(Math.random()*n.length)])}(t))}})},render:function(e){const t=e.toJSON();return this.$el.html(`<div id="${t.id}"></div>`),a.ZP.appendScriptStyle(t),this}}),load:e=>{(new r).fetch({async:void 0===e.async||e.async,success:t=>{e.type&&t.reset(l(t,e.type)),e.callback(t)}})}}}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},deferred=[],__webpack_require__.O=(e,t,i,s)=>{if(!t){var n=1/0;for(l=0;l<deferred.length;l++){t=deferred[l][0],i=deferred[l][1],s=deferred[l][2];for(var o=!0,a=0;a<t.length;a++)(!1&s||n>=s)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[a])))?t.splice(a--,1):(o=!1,s<n&&(n=s));if(o){deferred.splice(l--,1);var r=i();void 0!==r&&(e=r)}}return e}s=s||0;for(var l=deferred.length;l>0&&deferred[l-1][2]>s;l--)deferred[l]=deferred[l-1];deferred[l]=[t,i,s]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.j=264,(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={264:0,348:0};__webpack_require__.O.j=t=>0===e[t];var t=(t,i)=>{var s,n,o=i[0],a=i[1],r=i[2],l=0;if(o.some((t=>0!==e[t]))){for(s in a)__webpack_require__.o(a,s)&&(__webpack_require__.m[s]=a[s]);if(r)var c=r(__webpack_require__)}for(t&&t(i);l<o.length;l++)n=o[l],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return __webpack_require__.O(c)},i=self.webpackChunk_galaxyproject_galaxy_client=self.webpackChunk_galaxyproject_galaxy_client||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),__webpack_require__.O(void 0,[348,977],(()=>__webpack_require__(64252))),__webpack_require__.O(void 0,[348,977],(()=>__webpack_require__(39064)));var __webpack_exports__=__webpack_require__.O(void 0,[348,977],(()=>__webpack_require__(98756)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|