show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"Wiederkehrende Aufgaben",nextLine:{description:"Aktivieren Sie dies, damit das n\xE4chste Auftreten einer Aufgabe in der Zeile unterhalb der abgeschlossenen Aufgabe erscheint. Ansonsten erscheint es vor der abgeschlossenen Aufgabe.",name:"N\xE4chste Wiederholung erscheint in Zeile darunter"},removeScheduledDate:{description:{line1:"Aktiviert, damit das n\xE4chste Auftreten einer Aufgabe keinen geplanten (\u23F3) Termin hat, wenn mindestens Start-(\u{1F6EB}) oder F\xE4lligkeitsdaten (\u{1F4C5}) vorhanden sind.",line2:"Dies gilt, wenn Sie m\xF6chten, dass Start- und F\xE4lligkeitsdaten beim n\xE4chsten Auftreten beibehalten werden, aber das geplante Datum sp\xE4ter festgelegt wird, sobald Sie planen, daran zu arbeiten."},name:"Geplantes Datum bei Wiederholung entfernen"}},searchResults:{heading:"",taskCountLocation:{description:"",name:"",options:{bottom:"",top:""}}},searches:{enableCustomSearches:{description:{line1:"",line2:"",line3:"",line4:""},name:""},heading:""},seeTheDocumentation:"Vgl. die Dokumentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccin Theme",auraTheme:"Aura Theme",borderTheme:"Border Theme",buttons:{addCollection:{name:"{{themeName}}: F\xFCge {{numberOfStatuses}} unterst\xFCtzte Status hinzu"}},ebullientworksTheme:"Ebullientworks Theme",itsThemeAndSlrvbCheckboxes:"ITS Theme & SlRvb Kontrollk\xE4stchen",lytModeTheme:"LYT Mode Theme (nur Dunkelmodus)",minimalTheme:"Minimal Theme",thingsTheme:"Things Theme"},coreStatuses:{buttons:{checkStatuses:{name:"\xDCberpr\xFCfen und einsehen Sie Ihre Status-Eintr\xE4ge",tooltip:"Erstellen Sie eine neue Datei im Hauptverzeichnis des Tresors, die ein Mermaid-Diagramm der aktuellen Statuseinstellungen enth\xE4lt."}},description:{line1:"Diese Kern-Status unterst\xFCtzt Tasks nativ ohne benutzerdefiniertes CSS-Styling oder Themes.",line2:"Hinzuf\xFCgen und Bearbeiten Ihrer eigenen benutzerdefinierten Status k\xF6nnen Sie im unteren Abschnitt."},heading:"Kern-Status"},customStatuses:{buttons:{addAllUnknown:{name:"Alle unbekannten Statustypen hinzuf\xFCgen"},addNewStatus:{name:"Neuen Aufgabenstatus hinzuf\xFCgen"},resetCustomStatuses:{name:"Benutzerdefinierte Statustypen auf Standard zur\xFCcksetzen"}},description:{line1:"Zuerst w\xE4hlen und installieren Sie ein CSS-Snippet oder Theme, um benutzerdefinierte Kontrollk\xE4stchen zu formatieren.",line2:"Verwenden Sie dann die untenstehenden Schaltfl\xE4chen, um Ihre benutzerdefinierten Status zu erstellen, sodass sie mit Ihren ausgew\xE4hlten CSS-Kontrollk\xE4stchen \xFCbereinstimmen.",line3:"Hinweis: Status mit dem gleichen Symbol wie ein fr\xFCherer Status ignorieren wir. Best\xE4tigen Sie die tats\xE4chlich geladenen Status, indem Sie den 'Aufgabe erstellen oder bearbeiten'-Befehl ausf\xFChren und das Status-Dropdown anschauen.",line4:"Nutzen Sie die Dokumentation, um loszulegen!"},heading:"Benutzerdefinierte Status"},heading:"Aufgabenstatus"}}}});varNT,IT=Q(()=>{NT={main:{loadingPlugin:"Loading plugin: {{name}} v{{version}}",unloadingPlugin:"Unloading plugin: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"If enabled this status will be available as a command so you can assign a hotkey and toggle the status using it.",name:"Available as command"},editNextStatusSymbol:{description:"When clicked on this is the symbol that should be used next.",name:"Task Next Status Symbol"},editStatusName:{description:"This is the friendly name of the task status.",name:"Task Status Name"},editStatusSymbol:{description:"This is the character between the square braces. (It can only be edited for Custom statuses, and not Core statuses.)",name:"Task Status Symbol"},editStatusType:{description:"Control how the status behaves for searching and toggling.",name:"Task Status Type"},fixErrorsBeforeSaving:"Fix errors before saving."}},notices:{"do-not-show-message-again":"Do not show me this message again","live-preview-callout-warning":{line1:"Obsidian does not currently give plugins the correct ta
show urgency`}},presets:{buttons:{addNewPreset:"Addnewpreset"},line1:"Youcandefinenamedinstructionshere,thatyoucanre-useinmultiplequeries.Apresetcalled'{{name}}'canbeusedinTasksquerieswitheither'{{instruction1}}'or'{{instruction2}}'.",line2:"AnyopenTasksqueriesarereloadedautomaticallywhenpresetsareedited.",name:"Presets"},recurringTasks:{heading:"Recurringtasks",nextLine:{description:"Enablingthiswillmakethenextrecurrenceofataskappearonthelinebelowthecompletedtask.Otherwisethenextrecurrencewillappearbeforethecompletedone.",name:"Nextrecurrenceappearsonthelinebelow"},removeScheduledDate:{description:{line1:"EnablingthiswillmakethenextrecurrenceofataskhavenoScheduled(\u23F3)date,whenatleastoneofStart(\u{1F6EB})orDue(\u{1F4C5})datesispresent.",line2:"ThisisforwhenyouwanttheStartandDuedatestocarryforwardtothenextrecurrence,butyouwillsettheScheduleddateinfuture,onceyouplantoworkonit."},name:"Removescheduleddateonrecurrence"}},searchResults:{heading:"Searchresults",taskCountLocation:{description:"Choosewhetherthetaskcountisshownatthetoporbottomofqueryresults.",name:"Taskcountlocation",options:{bottom:"Bottom",top:"Top"}}},searches:{enableCustomSearches:{description:{line1:"Enables'{{filterByFunction}}','{{sortByFunction}}',and'{{groupByFunction}}',whichexecuteJavaScriptinTasksqueries.",line2:"MaliciousJavaScriptinaTasksqueryorMarkdownfilecouldruninsideObsidianandaccessormodifyyourvaultcontents,localfiles,orothersystemresources.",line3:"Onlyenablethisifyoutrustthecurrentandfuturecontentsofthisvault,includingfilesyoumaylaterdownload,copy,orsyncfromotherpeople.",line4:"Thissettingisstoredonthisdeviceonly;enableitseparatelyoneachdevicewhereyouusethisvault."},name:"Enablecustomsearches"},heading:"Searches"},seeTheDocumentation:"Seethedocumentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccinTheme",auraTheme:"AuraTheme",borderTheme:"BorderTheme",buttons:{addCollection:{name:"{{themeName}}:Add{{numberOfStatuses}}supportedStatuses"}},ebullientworksTheme:"EbullientworksTheme",itsThemeAndSlrvbCheckboxes:"ITSTheme&SlRvbCheckboxes",lytModeTheme:"LYTModeTheme(Darkmodeonly)",minimalTheme:"MinimalTheme",thingsTheme:"ThingsTheme"},coreStatuses:{buttons:{checkStatuses:{name:"ReviewandcheckyourStatuses",tooltip:"Createanewfileintherootofthevault,containingaMermaiddiagramofthecurrentstatussettings."}},description:{line1:"ThesearethecorestatusesthatTaskssupportsnatively,withnoneedforcustomCSSstylingortheming.",line2:"Youcanaddeditandaddyourowncustomstatusesinthesectionbelow."},heading:"CoreStatuses"},customStatuses:{buttons:{addAllUnknown:{name:"AddAllUnknownStatusTypes"},addNewStatus:{name:"AddNewTaskStatus"},resetCustomStatuses:{name:"ResetCustomStatusTypestoDefaults"}},description:{line1:"Youshouldfirst<b>selectandinstallaCSSSnippetorTheme</b> to style custom checkboxes.",line2:"Then, use the buttons below to set up your custom statuses, to match your chosen CSS checkboxes.",line3:"<b>Note</b> Any statuses with the same symbol as any earlier statuses will be ignored. You can confirm the actually loaded statuses by running the 'Create or edit task' command and looking at the Status drop-down.",line4:"See the documentation to get started!"},heading:"Custom Statuses"},heading:"Task Statuses"}}}});var LT,FT=Q(()=>{LT={main:{loadingPlugin:"\uD50C\uB7EC\uADF8\uC778 \uB85C\uB4DC \uC911: {{name}} v{{version}}",unloadingPlugin:"\uD50C\uB7EC\uADF8\uC778 \uC5B8\uB85C\uB4DC \uC911: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\uD65C\uC131\uD654\uD558\uBA74 \uC774 \uC0C1\uD0DC\uB97C \uBA85\uB839\uC5B4(command)\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC5B4 \uB2E8\uCD95\uD0A4\uB97C \uC9C0\uC815\uD558\uACE0 \uC0C1\uD0DC\uB97C \uC804\uD658\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",name:"\u
show urgency`}},presets:{buttons:{addNewPreset:"Adicionar nova predefini\xE7\xE3o"},line1:"Voc\xEA pode definir instru\xE7\xF5es nomeadas aqui, que podem ser reutilizadas em v\xE1rias consultas. Uma predefini\xE7\xE3o chamada '{{name}}' pode ser usada em consultas do Tasks com '{{instruction1}}' ou '{{instruction2}}'.",line2:"Quaisquer consultas do Tasks abertas s\xE3o recarregadas automaticamente quando as predefini\xE7\xF5es s\xE3o editadas.",name:"Predefini\xE7\xF5es (Presets)"},recurringTasks:{heading:"Tarefas recorrentes",nextLine:{description:"A ativa\xE7\xE3o desta op\xE7\xE3o far\xE1 com que a pr\xF3xima recorr\xEAncia de uma tarefa apare\xE7a na linha logo abaixo da tarefa conclu\xEDda. Caso contr\xE1rio, a pr\xF3xima recorr\xEAncia aparecer\xE1 antes da conclu\xEDda.",name:"A pr\xF3xima recorr\xEAncia aparece na linha de baixo"},removeScheduledDate:{description:{line1:"A ativa\xE7\xE3o desta op\xE7\xE3o far\xE1 com que a pr\xF3xima recorr\xEAncia de uma tarefa n\xE3o tenha data Agendada (\u23F3), quando pelo menos uma das datas de In\xEDcio (\u{1F6EB}) ou Vencimento (\u{1F4C5}) estiver presente.",line2:"Isto \xE9 \xFAtil para quando voc\xEA deseja que as datas de In\xEDcio e Vencimento sejam mantidas na pr\xF3xima recorr\xEAncia, mas pretende definir a data Agendada no futuro, quando for planejar trabalhar nela."},name:"Remover data agendada na recorr\xEAncia"}},searchResults:{heading:"Resultados da pesquisa",taskCountLocation:{description:"Escolha se a contagem de tarefas deve ser mostrada na parte superior ou inferior dos resultados da consulta.",name:"Localiza\xE7\xE3o da contagem de tarefas",options:{bottom:"Inferior",top:"Superior"}}},searches:{enableCustomSearches:{description:{line1:"",line2:"",line3:"",line4:""},name:""},heading:""},seeTheDocumentation:"Veja a documenta\xE7\xE3o",statuses:{collections:{anuppuccinTheme:"Tema AnuPpuccin",auraTheme:"Tema Aura",borderTheme:"Tema Border",buttons:{addCollection:{name:"{{themeName}}: Adicionar {{numberOfStatuses}} Status suportados"}},ebullientworksTheme:"Tema Ebullientworks",itsThemeAndSlrvbCheckboxes:"Tema ITS e Checkboxes SlRvb",lytModeTheme:"Tema LYT Mode (Somente modo escuro)",minimalTheme:"Tema Minimal",thingsTheme:"Tema Things"},coreStatuses:{buttons:{checkStatuses:{name:"Revisar e verificar seus Status",tooltip:"Criar um novo arquivo na raiz do cofre, contendo um diagrama Mermaid das configura\xE7\xF5es atuais de status."}},description:{line1:"Estes s\xE3o os status principais que o Tasks suporta nativamente, sem a necessidade de estilos CSS personalizados ou temas.",line2:"Voc\xEA pode adicionar e editar seus pr\xF3prios status personalizados na se\xE7\xE3o abaixo."},heading:"Status Principais"},customStatuses:{buttons:{addAllUnknown:{name:"Adicionar Todos os Tipos de Status Desconhecidos"},addNewStatus:{name:"Adicionar Novo Status de Tarefa"},resetCustomStatuses:{name:"Redefinir Tipos de Status Personalizados para os Padr\xF5es"}},description:{line1:"Primeiro, voc\xEA deve <b>selecionar e instalar um Snippet CSS ou Tema</b> para estilizar as caixas de sele\xE7\xE3o personalizadas.",line2:"Em seguida, use os bot\xF5es abaixo para configurar seus status personalizados, para que correspondam \xE0s caixas de sele\xE7\xE3o CSS escolhidas.",line3:"<b>Nota:</b> Qualquer status com o mesmo s\xEDmbolo de um status anterior ser\xE1 ignorado. Voc\xEA pode confirmar os status que foram realmente carregados executando o comando 'Criar ou editar tarefa' e olhando a lista suspensa de Status.",line4:"Veja a documenta\xE7\xE3o para come\xE7ar!"},heading:"Status Personalizados"},heading:"Status das Tarefas"}}}});var$T,UT=Q(()=>{$T={main:{loadingPlugin:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}",unloadingPlugin:"\u0412\u044B\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u0415\u0441\u043B\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u044D\u0442\u043E\u0442 \u0441\
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0438\u0435\u0441\u044F\u0437\u0430\u0434\u0430\u0447\u0438",nextLine:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u044D\u0442\u043E\u0439\u043E\u043F\u0446\u0438\u0438\u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442\u043A\u0442\u043E\u043C\u0443,\u0447\u0442\u043E\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435\u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435\u0437\u0430\u0434\u0430\u0447\u0438\u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F\u043D\u0430\u0441\u0442\u0440\u043E\u043A\u0435\u043D\u0438\u0436\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439\u0437\u0430\u0434\u0430\u0447\u0438.\u0412\u043F\u0440\u043E\u0442\u0438\u0432\u043D\u043E\u043C\u0441\u043B\u0443\u0447\u0430\u0435\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435\u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435\u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F\u043F\u0435\u0440\u0435\u0434\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439.",name:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435\u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435\u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F\u043D\u0430\u0441\u0442\u0440\u043E\u043A\u0435\u043D\u0438\u0436\u0435"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},searchResults:{heading:"",taskCountLocation:{description:"",name:"",options:{bottom:"",top:""}}},searches:{enableCustomSearches:{description:{line1:"",line2:"",line3:"",line4:""},name:""},heading:""},seeTheDocumentation:"\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u0435\u043C\u0430AnuPpuccin",auraTheme:"\u0422\u0435\u043C\u0430Aura",borderTheme:"\u0422\u0435\u043C\u0430Border",buttons:{addCollection:{name:"{{themeName}}:\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C{{numberOfStatuses}}\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0445\u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"}},ebullientworksTheme:"\u0422\u0435\u043C\u0430Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u0435\u043C\u0430ITS\u0438\u0444\u043B\u0430\u0436\u043A\u0438SlRvb",lytModeTheme:"\u0422\u0435\u043C\u0430LYTMode(\u0442\u043E\u043B\u044C\u043A\u043E\u0442\u0435\u043C\u043D\u044B\u0439\u0440\u0435\u0436\u0438\u043C)",minimalTheme:"\u0422\u0435\u043C\u0430Minimal",thingsTheme:"\u0422\u0435\u043C\u0430Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C\u0438\u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C\u0441\u0432\u043E\u0438\u0441\u0442\u0430\u0442\u0443\u0441\u044B",tooltip:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C\u043D\u043E\u0432\u044B\u0439\u0444\u0430\u0439\u043B\u0432\u043A\u043E\u0440\u043D\u0435\u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430,\u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439Mermaid\u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0443\u0442\u0435\u043A\u0443\u0449\u0438\u0445\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432."}},description:{line1:"\u042D\u0442\u043E\u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0435\u0441\u0442\u0430\u0442\u0443\u0441\u044B,\u043A\u043E\u0442\u043E\u0440\u044B\u0435Tasks\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0438\u0437\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E,\u0431\u0435\u0437\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u0438\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445CSS\u0441\u0442\u0438\u043B\u0435\u0439\u0438\u043B\u0438\u0442\u0435\u043C.",line2
show urgency`}},presets:{buttons:{addNewPreset:"Yeni\xF6nayarekle"},line1:"Buradabirdenfazlasorgudayenidenkullanabilece\u011Finizadland\u0131r\u0131lm\u0131\u015Ftalimatlartan\u0131mlayabilirsiniz.'{{name}}'adl\u0131bir\xF6nayar,Taskssorgular\u0131nda'{{instruction1}}'veya'{{instruction2}}'ilekullan\u0131labilir.",line2:"\xD6nayarlard\xFCzenlendi\u011Findea\xE7\u0131kTaskssorgular\u0131otomatikolarakyenideny\xFCklenir.",name:"\xD6nAyarlar"},recurringTasks:{heading:"Tekrarlayang\xF6revler",nextLine:{description:"Buse\xE7ene\u011Fietkinle\u015Ftirirseniz,birg\xF6revinsonrakitekrar\u0131tamamlanang\xF6revinalt\u0131ndakisat\u0131rdag\xF6r\xFCn\xFCr.Aksitakdirdesonrakitekrartamamlanandan\xF6nceg\xF6r\xFCn\xFCr.",name:"Sonrakitekrarbiraltsat\u0131rdag\xF6r\xFCns\xFCn"},removeScheduledDate:{description:{line1:"Buse\xE7ene\u011Fietkinle\u015Ftirirseniz,Ba\u015Flang\u0131\xE7(\u{1F6EB})veyaSonTarih(\u{1F4C5})tarihlerindenenazbirimevcutsag\xF6revinsonrakitekrar\u0131ndaZamanlanm\u0131\u015F(\u23F3)tariholmaz.",line2:"Buse\xE7enek;Ba\u015Flang\u0131\xE7veSonTarihtarihlerininbirsonrakitekrarata\u015F\u0131nmas\u0131n\u0131,ancakZamanlanm\u0131\u015Ftarihin\xFCzerinde\xE7al\u0131\u015Fmay\u0131planlad\u0131\u011F\u0131n\u0131zdaileridebelirlenmesiniistedi\u011Finizdekullan\u0131\u015Fl\u0131d\u0131r."},name:"Tekrardazamanlanm\u0131\u015Ftarihikald\u0131r"}},searchResults:{heading:"Aramasonu\xE7lar\u0131",taskCountLocation:{description:"G\xF6revsay\u0131s\u0131n\u0131nsorgusonu\xE7lar\u0131n\u0131n\xFCst\xFCndemiyoksaalt\u0131ndam\u0131g\xF6sterilece\u011Finise\xE7in.",name:"G\xF6revsay\u0131s\u0131konumu",options:{bottom:"Alt",top:"\xDCst"}}},searches:{enableCustomSearches:{description:{line1:"Taskssorgular\u0131ndaJavaScript\xE7al\u0131\u015Ft\u0131ran'{{filterByFunction}}','{{sortByFunction}}'ve'{{groupByFunction}}'\xF6zelliklerinietkinle\u015Ftirir.",line2:"BirTaskssorgusundaveyaMarkdowndosyas\u0131ndak\xF6t\xFCama\xE7l\u0131JavaScript,Obsidiani\xE7inde\xE7al\u0131\u015Farakkasai\xE7eriklerinize,yereldosyalar\u0131n\u0131zaveyadi\u011Fersistemkaynaklar\u0131naeri\u015Febiliryadabunlar\u0131de\u011Fi\u015Ftirebilir.",line3:"Bunuyaln\u0131zcabukasan\u0131nmevcutvegelecektekii\xE7eriklerine(ba\u015Fkalar\u0131ndandahasonraindirebilece\u011Finiz,kopyalayabilece\u011Finizveyae\u015Fitleyebilece\u011Finizdosyalardahil)g\xFCveniyorsan\u0131zetkinle\u015Ftirin.",line4:"Buayaryaln\u0131zcabucihazdasaklan\u0131r;bukasay\u0131kulland\u0131\u011F\u0131n\u0131zhercihazdaayr\u0131ayr\u0131etkinle\u015Ftirin."},name:"\xD6zelaramalar\u0131etkinle\u015Ftir"},heading:"Aramalar"},seeTheDocumentation:"Belgelerebak\u0131n",statuses:{collections:{anuppuccinTheme:"AnuPpuccinTemas\u0131",auraTheme:"AuraTemas\u0131",borderTheme:"BorderTemas\u0131",buttons:{addCollection:{name:"{{themeName}}:{{numberOfStatuses}}desteklenenDurumuekle"}},ebullientworksTheme:"EbullientworksTemas\u0131",itsThemeAndSlrvbCheckboxes:"ITSTemas\u0131&SlRvbOnayKutular\u0131",lytModeTheme:"LYTModeTemas\u0131(Yaln\u0131zcakaranl\u0131kmod)",minimalTheme:"MinimalTema",thingsTheme:"ThingsTemas\u0131"},coreStatuses:{buttons:{checkStatuses:{name:"Durumlar\u0131n\u0131z\u0131inceleyinvekontroledin",tooltip:"Kasan\u0131nk\xF6kdizininde,mevcutdurumayarlar\u0131n\u0131nMermaiddiyagram\u0131n\u0131i\xE7erenyenibirdosyaolu\u015Fturur."}},description:{line1:"Bunlar,Tasks'\u0131n \xF6zel CSS stillendirmesi veya tema gerektirmeksizin yerel olarak destekledi\u011Fi temel durumlard\u0131r.",line2:"A\u015Fa\u011F\u0131daki b\xF6l\xFCmde kendi \xF6zel durumlar\u0131n\u0131z\u0131 d\xFCzenleyebilir ve ekleyebilirsiniz."},heading:"Temel Durumlar"},customStatuses:{buttons:{addAllUnknown:{name:"T\xFCm Bilinmeyen Durum T\xFCrlerini Ekle"},addNewStatus:{name:"Yeni G\xF6rev Durumu Ekle"},resetCustomStatuses:{name:"\xD6zel Durum T\xFCrlerini Varsay\u0131lanlara S\u0131f\u0131rla"}},description:
${s}`}return e}var fD,jy=Q(()=>{"use strict";fD={this_file:"path includes {{query.file.path}}",this_folder:"folder includes {{query.file.folder}}",this_folder_only:"filter by function task.file.folder === query.file.folder",this_root:"root includes {{query.file.root}}",hide_date_fields:`#Hideanyvaluesforalldatefields
`}addEdgeIfNotToInternal(t,e,r,i,s){leta=t.findIndex(u=>u.symbol===e.symbol),o=a!==-1,l=e.type!=="EMPTY";if(o&&l){letu;s?u='-. "\u{1F501}" .-> ':u=" --> ";letc=`${i+1}${u}${a+1}`;r.push(c)}}getMermaidNodeLabel(t,e){letr=TD(t.name),i=t.type;if(e){lets=Jc(t.symbol),a=Jc(t.nextStatusSymbol),o=`[${s}] -> [${a}]`,l=`'${r}'`,u=`(${i})`;return`["${l}<br>${o}<br>${u}"]:::${i}`}elsereturn`["${r}"]:::${i}`}}});varzr,kD=Q(()=>{"use strict";zr=class{constructor(t,e){this.name=t,this.sortOrder=e}getgroupText(){returnthis.name!==""?`%%${this.sortOrder}%% ${this.name}`:""}}});varwD,$t,ed=Q(()=>{"use strict";wD=require("obsidian");kD();si();$t=class{constructor(t){this._date=null;this._date=t}getmoment(){returnthis._date?this._date.clone():null}formatAsDate(t=""){returnthis.format($e.dateFormat,t)}formatAsDateAndTime(t=""){returnthis.format($e.dateTimeFormat,t)}format(t,e=""){returnthis._date?this._date.format(t):e}toISOString(t){returnthis._date?this._date.toISOString(t):""}getcategory(){lett=window.moment(),e=this.moment;returne?e.isBefore(t,"day")?newzr("Overdue",1):e.isSame(t,"day")?newzr("Today",2):e.isValid()?newzr("Future",3):newzr("Invalid date",0):newzr("Undated",4)}getfromNow(){lett=this.moment;if(!t)returnnewzr("",0);lete=this.fromNowOrder(t);returnnewzr(t.fromNow(),e)}fromNowOrder(t){if(!t.isValid())return0;lete=window.moment(),r=t.isSameOrBefore(e,"second"),i=this.fromNowStartDateOfGroup(t,r,e);returnNumber((r?1:3)+i.format("YYYYMMDDHHmm"))}fromNowStartDateOfGroup(t,e,r){leti=t.clone().locale("en").fromNow(!0).split(" "),s,a=Number(i[0]);isNaN(a)?s=1:s=a;leto=i[1];returne?r.subtract(s,o):r.add(s,o)}postpone(t="days",e=1){if(!this._date)thrownewwD.Notice("Cannot postpone a null date");letr=window.moment().startOf("day");returnthis._date.isSameOrAfter(r,"day")?this._date.clone().add(e,t):r.add(e,t)}}});varED=R((_D,SD)=>{(function(n){vart=Object.hasOwnProperty,e=Array.isArray?Array.isArray:function(T){returnObject.prototype.toString.call(T)==="[object Array]"},r=10,i=typeofprocess=="object"&&typeofprocess.nextTick=="function",s=typeofSymbol=="function",a=typeofReflect=="object",o=typeofsetImmediate=="function",l=o?setImmediate:setTimeout,u=s?a&&typeofReflect.ownKeys=="function"?Reflect.ownKeys:function(m){varT=Object.getOwnPropertyNames(m);returnT.push.apply(T,Object.getOwnPropertySymbols(m)),T}:Object.keys;functionc(){this._events={},this._conf&&d.call(this,this._conf)}functiond(m){m&&(this._conf=m,m.delimiter&&(this.delimiter=m.delimiter),m.maxListeners!==n&&(this._maxListeners=m.maxListeners),m.wildcard&&(this.wildcard=m.wildcard),m.newListener&&(this._newListener=m.newListener),m.removeListener&&(this._removeListener=m.removeListener),m.verboseMemoryLeak&&(this.verboseMemoryLeak=m.verboseMemoryLeak),m.ignoreErrors&&(this.ignoreErrors=m.ignoreErrors),this.wildcard&&(this.listenerTree={}))}functionf(m,T){varw="(node) warning: possible EventEmitter memory leak detected. "+m+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(w+=" Event name: "+T+"."),typeofprocess!="undefined"&&process.emitWarning){vark=newError(w);k.name="MaxListenersExceededWarning",k.emitter=this,k.count=m,process.emitWarning(k)}elseconsole.error(w),console.trace&&console.trace()}varp=function(m,T,w){vark=arguments.length;switch(k){case0:return[];case1:return[m];case2:return[m,T];case3:return[m,T,w];default:for(var_=newArray(k);k--;)_[k]=arguments[k];return_}};functionh(m,T){for(varw={},k,_=m.length,M=T?T.length:0,I=0;I<_;I++)k=m[I],w[k]=I<M?T[I]:n;returnw}functionb(m,T,w){this._emitter=m,this._target=T,this._listeners={},this._listenersCount=0;vark,_;if((w.on||w.off)&&(k=w.on,_=w.off),T.addEventListener?(k=T.addEventListener,_=T.removeEventListener):T.addListener?(k=T.addListener,_=T.removeListener):T.on&&(k=T.on,_=T.off),!k&&!_)throwError("target does not implement any known event API");if(typeofk!="function")throwTypeError("on method must be a function");if(typeof_!="function")throwTypeError("off method must be a function");this._
`),this.dateFromFileName=new Pa(()=>jt.fromPath(this.filePath))}get filePath(){return this.tasksFile.path}get fileCache(){return this.tasksFile.cachedMetadata}parseFileContent(){if(this.listItems===void 0)return this.tasks;let t=this.fileLines.length,e=null,r=0;for(let i of this.listItems){let s=i.position.start.line;if(s>=t)return this.logger.debug(`${this.filePath}Obsidiangaveusalinenumber${s}pasttheendofthefile.${t}.`),this.tasks;if((e===null||e.position.end.line<s)&&(e=Ns.getSection(s,this.fileCache.sections),r=0),e===null)continue;let a=this.fileLines[s];if(a===void 0){this.logger.debug(`${this.filePath}:line${s}-ignoring'undefined'line.`);continue}let o=new Jt(this.tasksFile,s,e.position.start.line,r,Ns.getPrecedingHeader(s,this.fileCache.headings));r=this.parseLine(i,a,o,s,r)}return this.tasks}parseLine(t,e,r,i,s){var o;if(t.task===void 0)return this.createListItem(t,e,i,r),s;let a;try{if(a=ke.fromLine({line:e,taskLocation:r,fallbackDate:this.dateFromFileName.value}),a!==null){let l=(o=this.line2ListItem.get(t.parent))!=null?o:null;l!==null&&(a=new ke(pe(q({},a),{parent:l}))),this.line2ListItem.set(i,a),a!==null&&(s++,this.tasks.push(a))}else this.createListItem(t,e,i,r)}catch(l){this.errorReporter(l,this.filePath,t,e)}return s}createListItem(t,e,r,i){var o;let s=(o=this.line2ListItem.get(t.parent))!=null?o:null,a=Gi.fromListItemLine(e,s,i);if(a===null){this.logger.warn("Unexpected failure to create a list item from line: "+e+" in file: "+this.filePath);return}this.line2ListItem.set(r,a)}};var NU=4;var Ns=class{constructor({metadataCache:t,vault:e,workspace:r,events:i}){this.logger=gn.getLogger("tasks.Cache");this.notifySubscribersDebounced=(0,RD.debounce)(()=>this.notifySubscribersNotDebounced(),100,!0);this.reportTaskParsingErrorToUser=(t,e,r,i)=>{let s=`Therewasanerrorreadingoneofthetasksinthisvault.
`))}catch(u){if(uinstanceofVi){u.message&&SO(u.message),yieldl();return}elseif(uinstanceofyd){yieldl();return}elseuinstanceofError&&gd(u.message)}});functionDO(n,t){returnA(this,null,function*(){if(Vl===void0)thrownewVi;lete=n.file.tFile||t.getFileByPath(n.path);if(!e)thrownewVi(`Tasks: No file found for task ${n.description}. Retrying ...`);if(!D$.includes(e.extension))thrownewError(`Tasks: Does not support files with the ${e.extension} file extension.`);letr=Vl.getFileCache(e);if(r==null||r===null)thrownewVi(`Tasks: No file cache found for file ${e.path}. Retrying ...`);leti=r.listItems;if(i===void0||i.length===0)thrownewVi(`Tasks: No list items found in file cache of ${e.path}. Retrying ...`);leta=(yieldt.read(e)).split(`
`),o=x$(n,a,i,O$);if(o===void0)thrownewyd;return[o,e,a]})}functionyb(n,t){returnA(this,null,function*(){try{let[e,r,i]=yieldDO(n,t);return[e,r]}catch(e){einstanceofVi?e.message&&SO(e.message):einstanceofError&&gd(e.message)}})}functionOO(n,t){returnn<t.length}functionx$(n,t,e,r){leti=R$(n,t);returni!==void0||(i=C$(n,t),i!==void0)?i:M$(n,t,e,r)}functionR$(n,t){lete=n.taskLocation.lineNumber;if(OO(e,t)&&t[e]===n.originalMarkdown)returnbd().debug(`Found original markdown at original line number ${e}`),e}functionC$(n,t){lete=[];for(letr=0;r<t.length;r++)t[r]===n.originalMarkdown&&e.push(r);if(e.length===1)returne[0]}functionM$(n,t,e,r){leti,s=0;for(letaofe){leto=a.position.start.line;if(!OO(o,t))return;if(o<n.taskLocation.sectionStart||a.task===void0)continue;letl=t[o];if(Ae.getInstance().includedIn(l)){if(s===n.taskLocation.sectionIndex){if(l===n.originalMarkdown)i=o;else{r(`Tasks: Unable to find task in file ${n.taskLocation.path}.
${l}`);return}break}s++}}returni}kc();Ds();Pc();Pt();qc();qn();varTd=classn{constructor(t){this.addGlobalFilterOnSave=t.addGlobalFilterOnSave,this.originalBlocking=t.originalBlocking,this.description=t.description,this.status=t.status,this.priority=t.priority,this.onCompletion=t.onCompletion,this.recurrenceRule=t.recurrenceRule,this.createdDate=t.createdDate,this.startDate=t.startDate,this.scheduledDate=t.scheduledDate,this.dueDate=t.dueDate,this.doneDate=t.doneDate,this.cancelledDate=t.cancelledDate,this.forwardOnly=t.forwardOnly,this.blockedBy=t.blockedBy,this.blocking=t.blocking}staticfromTask(t,e){letr=Ae.getInstance().removeAsWordFrom(t.description),i=r!=t.description||!Ae.getInstance().includedIn(t.description),s="none";t.priority==="5"?s="lowest":t.priority==="4"?s="low":t.priority==="2"?s="medium":t.priority==="1"?s="high":t.priority==="0"&&(s="highest");leta=[];for(letloft.dependsOn){letu=e.find(c=>c.id===l);u&&a.push(u)}leto=e.filter(l=>l.dependsOn.includes(t.id));returnnewn({addGlobalFilterOnSave:i,originalBlocking:o,description:r,status:t.status,priority:s,recurrenceRule:t.recurrence?t.recurrence.toText():"",onCompletion:t.onCompletion,createdDate:t.created.formatAsDate(),startDate:t.start.formatAsDate(),scheduledDate:t.scheduled.formatAsDate(),dueDate:t.due.formatAsDate(),doneDate:t.done.formatAsDate(),cancelledDate:t.cancelled.formatAsDate(),forwardOnly:!0,blockedBy:a,blocking:o})}applyEdits(t,e){returnA(this,null,function*(){letr=this.description.trim();this.addGlobalFilterOnSave&&(r=Ae.getInstance().prependTo(r));leti=bs(this.startDate,this.forwardOnly),s=bs(this.scheduledDate,this.forwardOnly),a=bs(this.dueDate,this.forwardOnly),o=bs(this.cancelledDate,this.forwardOnly),l=bs(this.createdDate,this.forwardOnly),u=bs(this.doneDate,this.forwardOnly),c=null;this.recurrenceRule&&(c=wi.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:newgi({startDate:i,scheduledDate:s,dueDate:a})}));letd=this.onCompletion,f=[];for(letCofthis.blockedBy){letO=yieldA$(C,e);f.push(O)}letp=t.id,h=[],b=[];(this.blocking.toString()!==this.originalBlocking.toString()||this.blocking.length!==0)&&(t.id===""&&(p=Fl(e.filter(C=>C.id!=="").map(C=>C.id))),h=this.originalBlocking.filter(C=>!this.blocking.includes(C)),b=this.blocking.filter(C=>!this.originalBlocking.includes(C)));letv=newke(pe(q({},t),{description:r,status:t.status,priority:wr.priorityValue(this.priority),onCompletion:d,recurrence:c,startDate:i,scheduledDate:s,dueDate:a,doneDate:u,createdDate:l,cancelledDate:o,dependsOn:f.map(C=>C.id),id:p}));for(letCofh){letO=PE(C,v);yieldWn({originalTask:C,newTasks:O})}for(letCofb){letO=AE(C,v);yieldWn({originalTask:C,newTasks:O})}letD=this.inferTodaysDate(this.status.type,u,o);returnv.handleNewStatusWithRecurrenceInUsersOrder(this.status,D)})}inferTodaysDate(t,e,r){returnt==="DONE"&&e!==null?e:t==="CANCELLED"&&r!==null?r:window.moment()}parseAndValidateRecurrence(){vare;if(!this.recurrenceRule)return{parsedRecurrence:"<i>not recurring</>",isRecurrenceValid:!0};lett=(e=wi.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:newgi({startDate:null,scheduledDate:null,dueDate:null})}))==null?void0:e.toText();returnt?this.startDate||this.scheduledDate||this.dueDate?{parsedRecurrence:t,isRecurrenceValid:!0}:{parsedRecurrence:"<i>due, scheduled or start date required</i>",isRecurrenceValid:!1}:{parsedRecurrence:"<i>invalid recurrence rule</i>",isRecurrenceValid:!1}}};functionA$(n,t){returnA(this,null,function*(){if(n.id!=="")returnn;lete=t.filter(i=>i.id!==""),r=Lc(n,e.map(i=>i.id));returnyieldWn({originalTask:n,newTasks:r}),r})}ft();functionxO(n,t,e){letr=n.slice();returnr[7]=t[e].value,r[8]=t[e].label,r[9]=t[e].symbol,r[10]=t[e].accessKey,r[11]=t[e].accessKeyIndex,r}functionP$(n){lett,e=n[8]+"",r;return{c(){t=re("span"),r=je(e)},m(i,s){ce(i,t,s),G(t,r)},p:Ue,d(i){i&&le(t)}}}functionI$(n){lett,e=n[8].substring(0,n[11])+"",r,i,s=n[8].substring(n[11],n[11]+1)+"",a,o,l=n[8].substring(n[11]+1)+"",u;return{c(){t=re("span"),r=je(e),i=re("span"),a=je(s),o=re("span"),u=je(l),$(i,"
`}};var Ed=class{constructor(t,e){this._instruction=t,this._filter=e}canCreateFilterForLine(t){return t.toLocaleLowerCase()===this._instruction.toLocaleLowerCase()}createFilterOrErrorMessage(t){return this.canCreateFilterForLine(t)?De.fromFilter(new sn(t,this._filter,new et(t))):De.fromError(t,`do not understand filter: ${t}`)}};var xn=class{constructor(){this._filters=[]}add(t,e){this._filters.push(new Ed(t,e))}canCreateFilterForLine(t){return this._filters.some(e=>e.canCreateFilterForLine(t))}createFilterOrErrorMessage(t){for(let e of this._filters){let r=e.createFilterOrErrorMessage(t);if(r.isValid())return r}return De.fromError(t,`do not understand filter: ${t}`)}};var an=class n extends Ze{constructor(t=null){super(),t!==null?this.filterInstructions=t:(this.filterInstructions=new xn,this.filterInstructions.add(`has ${this.fieldName()} date`,e=>this.date(e)!==null),this.filterInstructions.add(`no ${this.fieldName()} date`,e=>this.date(e)===null),this.filterInstructions.add(`${this.fieldName()} date is invalid`,e=>{let r=this.date(e);return r!==null&&!r.isValid()}))}canCreateFilterForLine(t){return this.filterInstructions.canCreateFilterForLine(t)?!0:super.canCreateFilterForLine(t)}createFilterOrErrorMessage(t){var d;let e=this.checkForUnexpandedTemplateText(t);if(e)return De.fromError(t,e);let r=this.filterInstructions.createFilterOrErrorMessage(t);if(r.isValid())return r;let i=Ze.getMatch(this.filterRegExp(),t);if(i===null)return De.fromError(t,"donotunderstandqueryfilter("+this.fieldName()+"date)");let s=i[1],a=(d=i[2])==null?void 0:d.toLowerCase(),o=i[3],l=hi.parseDateRange(o);if(!l.isValid()){let f=hi.parseDate(s);f.isValid()&&(l=new Jn(f,f))}if(!l.isValid())return De.fromError(t,"donotunderstand"+this.fieldName()+"date");let u=this.buildFilterFunction(a,l),c=n.buildExplanation(this.fieldNameForExplanation(),a,this.filterResultIfFieldMissing(),l);return De.fromFilter(new sn(t,u,c))}buildFilterFunction(t,e){let r;switch(t){case"before":r=i=>i?i.isBefore(e.start):this.filterResultIfFieldMissing();break;case"after":r=i=>i?i.isAfter(e.end):this.filterResultIfFieldMissing();break;case"onorbefore":case"inorbefore":r=i=>i?i.isSameOrBefore(e.end):this.filterResultIfFieldMissing();break;case"onorafter":case"inorafter":r=i=>i?i.isSameOrAfter(e.start):this.filterResultIfFieldMissing();break;default:r=i=>i?i.isSameOrAfter(e.start)&&i.isSameOrBefore(e.end):this.filterResultIfFieldMissing()}return this.getFilter(r)}getFilter(t){return e=>t(this.date(e))}filterRegExp(){return new RegExp(`^${this.fieldNameForFilterInstruction()} (((?:on|in) or before|before|(?:on|in) or after|after|on|in)? ?(.*))`,"i")}fieldNameForFilterInstruction(){return this.fieldName()}static buildExplanation(t,e,r,i){let s=e,a="YYYY-MM-DD(ddddDoMMMMYYYY)",o;switch(e){case"before":case"onorafter":o=i.start.format(a);break;case"after":case"onorbefore":o=i.end.format(a);break;case"inorbefore":s="onorbefore",o=i.end.format(a);break;case"inorafter":s="onorafter",o=i.start.format(a);break;default:if(!i.start.isSame(i.end)){let u=`${t} date is between:`,c=[new et(`${i.start.format(a)} and`),new et(`${i.end.format(a)} inclusive`)];return r&&c.push(new et(`OR no ${t} date`)),new et(u,c)}s="on",o=i.start.format(a);break}let l=`${t} date is ${s} ${o}`;return r&&(l+=` OR no ${t} date`),new et(l)}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(t,e)=>er(this.date(t),this.date(e))}supportsGrouping(){return!0}grouper(){return t=>{let e=this.date(t);return e===null?["No"+this.fieldName()+"date"]:e.isValid()?[e.format("YYYY-MM-DDdddd")]:["%%0%%Invalid"+this.fieldName()+"date"]}}checkForUnexpandedTemplateText(t){return new Sd().findUnexpandedDateText(t)}};var Dd=class extends an{fieldName(){return"created"}date(t){return t.createdDate}filterResultIfFieldMissing(){return!1}};var Od=class extends an{fieldName(){return"done"}date(t){return t.doneDate}filterResultIfFieldMissing(){return!1}};var Va=class extends an{fieldName(){return"due"}date(t){return t.dueDate}filterResultIfFieldMissing()
This query uses JavaScript, for example via "filterbyfunction", "sortbyfunction", or "groupbyfunction".
JavaScript can run inside Obsidian and access or modify vault contents, local files, or other system resources.
Read the Tasks documentation page "JavaScriptinTasksQueries" before deciding whether to enable it:
https://publish.obsidian.md/tasks/Scripting/JavaScript+in+Tasks+Queries`;var Or=Kl;var Ql=class extends Gs{};function Zl(n,t){if(!on.getInstance().get())throw new Or;try{let e=n.map(([s])=>s),r=t.includes("return")?t:`return ${t}`,i=t&&new Function(...e,r);return i instanceof Function?Ql.fromObject(t,i):Ql.fromError(t,`Problem parsing expression "${t}"`)}catch(e){return Ql.fromError(t,Bs(`Failed parsing expression "${t}"`,e))}}function Xl(n,t){if(!on.getInstance().get())throw new Or;let e=t.map(([r,i])=>i);return n(...e)}function Db(n,t,e){try{return Xl(n,t)}catch(r){return Bs(`Failed calculating expression "${e}"`,r)}}function Rd(n,t){return[["task",n],["query",t?t.query:null]]}function u1(n,t,e){let r=Rd(n,e||null),i=Zl(r,t);return i.error?i.error:Db(i.queryComponent,r,t)}var Jl=class{constructor(t){this.line=t,this.functionOrError=Zl(Rd(null,null),t)}isValid(){return this.functionOrError.isValid()}get parseError(){return this.functionOrError.error}evaluate(t,e){if(!this.isValid())throw new Error(`Error: Cannot evaluate an expression which is not valid: "${this.line}" gave error: "${this.parseError}"`);return Xl(this.functionOrError.queryComponent,Rd(t,e||null))}evaluateOrCatch(t,e){return this.isValid()?Db(this.functionOrError.queryComponent,Rd(t,e),this.line):`Error: Cannot evaluate an expression which is not valid: "${this.line}" gave error: "${this.parseError}"`}};Ts();function Ob(n){if(n===null)return"null";let t=typeof n;return t==="object"?n.constructor.name:t}var Cd=class extends Ze{createFilterOrErrorMessage(t){if(!on.getInstance().get())return De.fromError(t,Or.helpMessage);let e=Ze.getMatch(this.filterRegExp(),t);if(e===null)return De.fromError(t,"Unabletoparseline");let r=e[1],i=new Jl(r);return i.isValid()?De.fromFilter(new sn(t,Z$(i),new et(t))):De.fromError(t,i.parseError)}fieldName(){return"function"}filterRegExp(){return new RegExp(`^filter by ${this.fieldNameSingularEscaped()} (.*)`,"i")}supportsSorting(){return!0}sorterRegExp(){return new RegExp(`^sort by ${this.fieldNameSingularEscaped()}( reverse)? (.*)`,"i")}createSorterFromLine(t){let e=Ze.getMatch(this.sorterRegExp(),t);if(e===null)return null;if(!on.getInstance().get())throw new Or;let r=!!e[1],i=e[2],s=new Jl(i);if(!s.isValid())throw new Error(s.parseError);let a=(o,l,u)=>{try{let c=u.queryContext(),d=this.validateTaskSortKey(s.evaluate(o,c)),f=this.validateTaskSortKey(s.evaluate(l,c));return this.compareTaskSortKeys(d,f)}catch(c){throw c instanceof Error&&(c.message+=`: while evaluating instruction '${t}'`),c}};return new Zi(t,this.fieldNameSingular(),a,r)}validateTaskSortKey(t){function e(r){throw new Error(`"${r}" is not a valid sort key`)}return t===void 0&&e("undefined"),Number.isNaN(t)&&e("NaN(NotaNumber)"),Array.isArray(t)&&e("array"),t}compareTaskSortKeys(t,e){let r=Ob(t),i=Ob(e),s=this.compareTaskSortKeysIfOptionalMoment(t,e,r,i);if(s!==void 0)return s;let a=this.compareTaskSortKeysIfEitherIsNull(t,e);if(a!==void 0)return a;if(r!==i)throw new Error(`Unable to compare two different sort key types '${r}' and '${i}' order`);if(r==="string")return t.localeCompare(e,void 0,{numeric:!0});if(r==="TasksDate")return er(t.moment,e.moment);if(r==="boolean")return Number(e)-Number(t);let o=Number(t)-Number(e);if(isNaN(o))throw new Error(`Unable to determine sort order for sort key types '${r}' and '${i}'`);return o}compareTaskSortKeysIfOptionalMoment(t,e,r,i){let s=r==="Moment",a=i==="Moment";if(s&&a||s&&e===null||a&&t===null)return er(t,e)}compareTaskSortKeysIfEitherIsNull(t,e){if(t===null&&e===null)return 0;if(t===null&&e!==null)return-1;if(t!==null&&e===null)return 1}supportsGrouping(){return!0}createGrouperFromLine(t){let e=Ze.getMatch(this.grouperRegExp(),t);if(e===null)return null;if(!on.getInstance().get())throw new Or;let r=!!e[1],i=e[2];return new Xi(t,"function",J$(i),r)}grouperRegExp(){return new RegExp(`^group by ${this.fieldNameSingularEscaped()}( reverse)? (.*)`,"i")}grouper(){throw new Error("grouper()functionnotvalidforFunctionField.UsecreateGrouperFromLine()instead.")}};function Z$(n){return(t,e)=>{let r=e.quer
`&&(c(),l="",u=0,e=!1);if(!b.scan(d))break;if(a=!0,D=b.scan(Hj)||"name",b.scan($j),D==="="?(C=b.scanUntil(C1),b.scan(C1),b.scanUntil(f)):D==="{"?(C=b.scanUntil(p),b.scan(Wj),b.scanUntil(f),D="&"):C=b.scanUntil(f),!b.scan(f))thrownewError("Unclosed tag at "+b.pos);if(D==">"?U=[D,C,v,b.pos,l,u,e]:U=[D,C,v,b.pos],u++,i.push(U),D==="#"||D==="^")r.push(U);elseif(D==="/"){if(ee=r.pop(),!ee)thrownewError('Unopened section "'+C+'" at '+v);if(ee[1]!==C)thrownewError('Unclosed section "'+ee[1]+'" at '+v)}elseD==="name"||D==="{"||D==="&"?o=!0:D==="="&&h(C)}if(c(),ee=r.pop(),ee)thrownewError('Unclosed section "'+ee[1]+'" at '+b.pos);returnzj(Gj(i))}functionGj(n){for(vart=[],e,r,i=0,s=n.length;i<s;++i)e=n[i],e&&(e[0]==="text"&&r&&r[0]==="text"?(r[1]+=e[1],r[3]=e[3]):(t.push(e),r=e));returnt}functionzj(n){for(vart=[],e=t,r=[],i,s,a=0,o=n.length;a<o;++a)switch(i=n[a],i[0]){case"#":case"^":e.push(i),r.push(i),e=i[4]=[];break;case"/":s=r.pop(),s[5]=i[2],e=r.length>0?r[r.length-1][4]:t;break;default:e.push(i)}returnt}functioniu(n){this.string=n,this.tail=n,this.pos=0}iu.prototype.eos=function(){returnthis.tail===""};iu.prototype.scan=function(t){vare=this.tail.match(t);if(!e||e.index!==0)return"";varr=e[0];returnthis.tail=this.tail.substring(r.length),this.pos+=r.length,r};iu.prototype.scanUntil=function(t){vare=this.tail.search(t),r;switch(e){case-1:r=this.tail,this.tail="";break;case0:r="";break;default:r=this.tail.substring(0,e),this.tail=this.tail.substring(e)}returnthis.pos+=r.length,r};functionao(n,t){this.view=n,this.cache={".":this.view},this.parent=t}ao.prototype.push=function(t){returnnewao(t,this)};ao.prototype.lookup=function(t){vare=this.cache,r;if(e.hasOwnProperty(t))r=e[t];else{for(vari=this,s,a,o,l=!1;i;){if(t.indexOf(".")>0)for(s=i.view,a=t.split("."),o=0;s!=null&&o<a.length;)o===a.length-1&&(l=R1(s,a[o])||Ij(s,a[o])),s=s[a[o++]];elses=i.view[t],l=R1(i.view,t);if(l){r=s;break}i=i.parent}e[t]=r}returnUb(r)&&(r=r.call(this.view)),r};functionbn(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){returnthis._cache[t]},clear:function(){this._cache={}}}}bn.prototype.clearCache=function(){typeofthis.templateCache!="undefined"&&this.templateCache.clear()};bn.prototype.parse=function(t,e){varr=this.templateCache,i=t+":"+(e||pr.tags).join(":"),s=typeofr!="undefined",a=s?r.get(i):void0;returna==null&&(a=Bj(t,e),s&&r.set(i,a)),a};bn.prototype.render=function(t,e,r,i){vars=this.getConfigTags(i),a=this.parse(t,s),o=einstanceofao?e:newao(e,void0);returnthis.renderTokens(a,o,r,t,i)};bn.prototype.renderTokens=function(t,e,r,i,s){for(vara="",o,l,u,c=0,d=t.length;c<d;++c)u=void0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,e,r,i,s):l==="^"?u=this.renderInverted(o,e,r,i,s):l===">"?u=this.renderPartial(o,e,r,s):l==="&"?u=this.unescapedValue(o,e):l==="name"?u=this.escapedValue(o,e,s):l==="text"&&(u=this.rawValue(o)),u!==void0&&(a+=u);returna};bn.prototype.renderSection=function(t,e,r,i,s){vara=this,o="",l=e.lookup(t[1]);functionu(f){returna.render(f,e,r,s)}if(l){if(oo(l))for(varc=0,d=l.length;c<d;++c)o+=this.renderTokens(t[4],e.push(l[c]),r,i,s);elseif(typeofl=="object"||typeofl=="string"||typeofl=="number")o+=this.renderTokens(t[4],e.push(l),r,i,s);elseif(Ub(l)){if(typeofi!="string")thrownewError("Cannot use higher-order sections without the original template");l=l.call(e.view,i.slice(t[3],t[5]),u),l!=null&&(o+=l)}elseo+=this.renderTokens(t[4],e,r,i,s);returno}};bn.prototype.renderInverted=function(t,e,r,i,s){vara=e.lookup(t[1]);if(!a||oo(a)&&a.length===0)returnthis.renderTokens(t[4],e,r,i,s)};bn.prototype.indentPartial=function(t,e,r){for(vari=e.replace(/[^ \t]/g,""),s=t.split(`
`)};bn.prototype.renderPartial=function(t,e,r,i){if(r){vars=this.getConfigTags(i),a=Ub(r)?r(t[1]):r[t[1]];if(a!=null){varo=t[6],l=t[5],u=t[4],c=a;l==0&&u&&(c=this.indentPartial(a,u,o));vard=this.parse(c,s);returnthis.renderTokens(d,e,r,c,i)}}};bn.prototype.unescapedValue=function(t,e){varr=e.lookup(t[1]);if(r!=null)returnr};bn.prototype.escapedValue=function(t,e,r){vari=this.getConfigEscape(r)||pr.escape,s=e.lookup(t[1]);if(s!=null)returntypeofs=="number"&&i===pr.escape?String(s):i(s)};bn.prototype.rawValue=function(t){returnt[1]};bn.prototype.getConfigTags=function(t){returnoo(t)?t:t&&typeoft=="object"?t.tags:void0};bn.prototype.getConfigEscape=function(t){if(t&&typeoft=="object"&&!oo(t))returnt.escape};varpr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void0,escape:void0,parse:void0,render:void0,Scanner:void0,Context:void0,Writer:void0,settemplateCache(n){ru.templateCache=n},gettemplateCache(){returnru.templateCache}},ru=newbn;pr.clearCache=function(){returnru.clearCache()};pr.parse=function(t,e){returnru.parse(t,e)};pr.render=function(t,e,r,i){if(typeoft!="string")thrownewTypeError('Invalid template! Template should be a "string" but "'+Pj(t)+'" was given as the first argument for mustache#render(template, view, partials)');returnru.render(t,e,r,i)};pr.escape=Uj;pr.Scanner=iu;pr.Context=ao;pr.Writer=bn;var$b=pr;varU1=os(I1());functionL1(n,t){lete=n.trim(),r=t.query.file;switch(e){case"query.file.path":returnCr(r.path);case"query.file.pathWithoutExtension":returnCr(r.pathWithoutExtension);case"query.file.root":returnCr(r.root);case"query.file.folder":returnCr(r.folder);case"query.file.filename":returnCr(r.filename);case"query.file.filenameWithoutExtension":returnCr(r.filenameWithoutExtension);case"query.file.outlinksInProperties":returnCr(r.outlinksInProperties);case"query.file.outlinksInBody":returnCr(r.outlinksInBody);case"query.file.outlinks":returnCr(r.outlinks)}leti=F1(e,N1("query.file.property"));if(i!==null)returnCr(r.property(i));lets=F1(e,N1("query.file.hasProperty"));returns!==null?Cr(r.hasProperty(s)):Vj()}functionCr(n){return{resolved:!0,value:n}}functionVj(){return{resolved:!1}}functionN1(n){lett=n.replace(/\./g,String.raw`\.`);returnnewRegExp(String.raw`^${t}\((['"])([^'"]*)\1\)$`)}functionF1(n,t){varr;lete=newRegExp(t).exec(n);return(r=e==null?void0:e[2])!=null?r:null}functionWb(n,t){$b.escape=function(e){returne};try{lete=Qj(n,t);return$b.render(e,(0,U1.default)(t))}catch(e){letr="";throweinstanceofError?r=`There was an error expanding one or more placeholders.
The error message was:
${e.message.replace(/ > /g,".").replace("Missing Mustache data property","Unknown property")}`:r="Unknown error expanding placeholders.",r+=`
The problem is in:
${n}`,newError(r)}}varKj=newRegExp(["\\{\\{","(.*?)","\\}\\}"].join(""),"g");functionQj(n,t){returnn.replace(Kj,(e,r)=>{if(Zj(t)){leta=L1(r,t);if(a.resolved){leto=a.value;if(o===null&&Y1(r),o!==void0)returnq1(o)}}if(!on.getInstance().get()){if(Xj(r))returne;thrownewOr}leti=Jj(t),s=Zl(i,r);if(s.isValid()){leta=Xl(s.queryComponent,i);if(a===null&&Y1(r),a!==void0)returnq1(a)}returne})}functionq1(n){returntypeofn=="object"?JSON.stringify(n):String(n)}functionZj(n){vart;return((t=n==null?void0:n.query)==null?void0:t.file)!==void0}functionY1(n){thrownewError(`Invalid placeholder result 'null'.
Check for missing file property in this expression:
`)}explainGroups(t){returnthis.explainStatements(t.grouping.map(e=>e.statement))}explainSorters(t){returnthis.explainStatements(t.sorting.map(e=>e.statement))}explainLayout(t){returnthis.explainStatements(t.layoutStatements)}explainQueryLimits(t){functione(i){lets=`At most ${i} task`;returni!==1&&(s+="s"),s}letr=[];if(t.limit!==void0){leti=e(t.limit)+`.
`;r.push(this.indent(i))}if(t.taskGroupLimit!==void0){leti=e(t.taskGroupLimit)+` per group (if any "group by" options are supplied).
`;r.push(this.indent(i))}returnr.join(`
`)}explainDebugSettings(){lett="",{debugSettings:e}=X();returne.ignoreSortInstructions&&(t+=this.indent(`NOTE: All sort instructions, including default sort order, are disabled, due to 'ignoreSortInstructions' setting.
`}returnt+=this.tasksAsStringOfLines(),t}};varQs=class{constructor(t,e,r){this._groups=newArray;this._totalTaskCount=0;this._totalTaskCount=e.length,this._groupers=t;lets=newcf(t,e,r).generateTaskTreeStorage();this.addTaskGroups(s),this.sortTaskGroups(),this.setGroupsHeadings(s)}getgroupers(){returnthis._groupers}getgroups(){returnthis._groups}totalTasksCount(){returnthis._totalTaskCount}toString(){lett="";for(leteofthis.groups)t+=e.toString();returnt}addTaskGroups(t){for(let[e,r]oft){leti=newdf(e,r);this.addTaskGroup(i)}}addTaskGroup(t){this._groups.push(t)}sortTaskGroups(){lett=(e,r)=>{leti=e.groups,s=r.groups;for(leta=0;a<i.length;a++){leto=this._groupers[a],l=i[a].localeCompare(s[a],void0,{numeric:!0});if(l!==0)returno.reverse?-l:l}return0};this._groups.sort(t)}setGroupsHeadings(t){lete=newof(t,this._groupers);for(letrofthis._groups)r.setGroupHeadings(e.getHeadingsForTaskGroup(r.groups))}applyTaskLimit(t){this._groupers.length!==0&&(this._groups.forEach(e=>{e.applyTaskLimit(t)}),this.recalculateTotalTaskCount())}recalculateTotalTaskCount(){lett=[];this._groups.forEach(r=>{t=[...t,...r.tasks]});lete=[...newSet(t)];this._totalTaskCount=e.length}};varZs=classn{constructor(t,e){this.tasksFile=t,this.allTasks=[...e],this._queryContext=this.tasksFile?Bb(this.tasksFile,this.allTasks):void0}staticfromAllTasks(t){returnnewn(void0,t)}getqueryPath(){vart,e;return(e=(t=this.tasksFile)==null?void0:t.path)!=null?e:void0}queryContext(){returnthis._queryContext}};function$1(n){return`task${n!==1?"s":""}`}varsu=classn{constructor(t,e,r){this.totalTasksCountBeforeLimit=0;this._searchErrorMessage=void0;this.taskGroups=t,this.totalTasksCountBeforeLimit=e,this._tasksFile=r}getsearchErrorMessage(){returnthis._searchErrorMessage}setsearchErrorMessage(t){this._searchErrorMessage=t}gettotalTasksCount(){returnthis.taskGroups.totalTasksCount()}totalTasksCountDisplayText(){lett=this.totalTasksCount,e=this.totalTasksCountBeforeLimit;returnt===e?`${t}${$1(t)}`:`${t} of ${e}${$1(e)}`}getgroups(){returnthis.taskGroups.groups}staticfromError(t){lete=newn(newQs([],[],Zs.fromAllTasks([])),0,void0);returne._searchErrorMessage=t,e}asMarkdown(){lett="";returnt+=this.taskGroups.groups.map(e=>this.toString(e)).join(""),t}toString(t){lete=`
`}expandPlaceholders(t,e){letr=t.anyContinuationLinesRemoved;if(r.includes("{{")&&r.includes("}}")&&this.tasksFile===void0)returnthis._error=`The query looks like it contains a placeholder, with "{{" and "}}"
`))}catch(l){returnlinstanceofError?this._error=l.message:this._error="Internal error. expandPlaceholders() threw something other than Error.",[t]}}returnthis.createStatementsFromExpandedPlaceholders(s,t)}createStatementsFromExpandedPlaceholders(t,e){letr=t.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);returnr.length===1?(e.recordExpandedPlaceholders(r[0]),[e]):r.map((i,s)=>{leta=`: statement ${s+1} after expansion of placeholder`,o=newyn(e.rawInstruction+a,e.anyContinuationLinesRemoved+a);returno.recordExpandedPlaceholders(i),o})}append(t){returnthis.source===""?t:t.source===""?this:newn(`${this.source}
`+x.t("notices.live-preview-callout-warning.line6",{commandName:Kb});kx(p,h,this.plugin)}return!1}let{state:i}=this.view,s=this.view.posAtDOM(e),a=i.doc.lineAt(s),o=ke.fromLine({line:a.text,taskLocation:Jt.fromUnknownPosition(newmt("")),fallbackDate:null});if(o===null)return!1;t.preventDefault();letl=o.toggleWithRecurrenceInUsersOrder(),u=l.map(p=>p.toFileLineString()).join(i.lineBreak),c=a.to;if(u===""){letp=a.number<i.doc.lines?i.doc.line(a.number+1):null;p&&(c=p.from)}letd=i.update({changes:{from:a.from,to:c,insert:u}});if(this.view.dispatch(d),l.length===1){letp=l[0].status.symbol!==" ";setTimeout(()=>{e.checked=p},1)}return!0};this.view=t,this.plugin=e,this.view.dom.addEventListener("click",this.handleClickEvent)}destroy(){this.view.dom.removeEventListener("click",this.handleClickEvent)}};varss=require("obsidian"),Dx=require("obsidian");functionSx(n,t,e,r=void0){leti="";t.isEmpty()||(i+=`Only tasks containing the global filter '${t.get()}'.
`);lets=newlo(" ");functiona(c,d){return`${c}:
${s.explainQuery(d)}`}leto=newMr(n,r),l=newMi().query(r);if(!(o.ignoreGlobalQuery||l.ignoreGlobalQuery)&&e.hasInstructions()){letc=e.query(r);i+=a("Explanation of the global query",c)+`
`),i+=a("Explanation of this Tasks code block query",o),i}functionRf(n,t,e){leti=newMi().query(e).append(newMr(n,e));returni.ignoreGlobalQuery?i:t.query(e).append(i)}Bi();varni=require("obsidian");ft();functiondu(n,t,e){t&&n.push(cW(e))}functioncW(n){return`tasks-layout-hide-${n}`}varCf=class{constructor(t){t?this.queryLayoutOptions=t:this.queryLayoutOptions=newQi}getHiddenClasses(){lett=[],e=[[this.queryLayoutOptions.hideUrgency,"urgency"],[this.queryLayoutOptions.hideBacklinks,"backlinks"],[this.queryLayoutOptions.hideEditButton,"edit-button"],[this.queryLayoutOptions.hidePostponeButton,"postpone-button"]];for(let[r,i]ofe)du(t,r,i);returnthis.queryLayoutOptions.shortMode&&t.push("tasks-layout-short-mode"),t}};Es();varMf=class{constructor(t){t?this.taskLayoutOptions=t:this.taskLayoutOptions=newBr}generateHiddenClasses(){lett=[];returnthis.taskLayoutOptions.toggleableComponents.forEach(e=>{du(t,!this.taskLayoutOptions.isShown(e),e)}),du(t,!this.taskLayoutOptions.areTagsShown(),"tags"),t}};variT=require("obsidian");varfu=classnextendsts{constructor(t,e,r=ti){super(r);leti=(u,c,d,f,p,h)=>{varC;letb=!1,v=uo(e);if(v){let{postponedDate:O}=h(e,v,d,f);(C=e[v])!=null&&C.isSame(O,"day")&&(b=!0)}letD=p(e,f,d);c.setChecked(b).setTitle(D).onClick(()=>n.postponeOnClickCallback(u,e,f,d,h,r))},s=nx,a=Q1;this.addItem(u=>i(t,u,"days",0,s,a)),this.addItem(u=>i(t,u,"day",1,s,a)),this.addSeparator();leto=Zb,l=Qb;o(e,1,"day")!==s(e,1,"day")&&this.addItem(u=>i(t,u,"day",1,o,l)),this.addItem(u=>i(t,u,"days",2,o,l)),this.addItem(u=>i(t,u,"days",3,o,l)),this.addItem(u=>i(t,u,"days",4,o,l)),this.addItem(u=>i(t,u,"days",5,o,l)),this.addItem(u=>i(t,u,"days",6,o,l)),this.addSeparator(),this.addItem(u=>i(t,u,"week",1,o,l)),this.addItem(u=>i(t,u,"weeks",2,o,l)),this.addItem(u=>i(t,u,"weeks",3,o,l)),this.addItem(u=>i(t,u,"month",1,o,l)),this.addSeparator(),this.addItem(u=>i(t,u,"days",2,rx,Z1))}staticpostponeOnClickCallback(o,l,u,c){returnA(this,arguments,function*(t,e,r,i,s=Qb,a=ti){varh;letd=uo(e);if(d===null){letb="\u26A0\uFE0F Postponement requires a date: due, scheduled or start.";returnnewiT.Notice(b,1e4)}let{postponedDate:f,postponedTask:p}=s(e,d,i,r);(h=e[d])!=null&&h.isSame(f,"day")||(yielda(e,p),n.postponeSuccessCallback(t,d,f))})}staticpostponeSuccessCallback(t,e,r){t.classList.add("tasks-no-pointer-events");leti=ex(r,e);newiT.Notice(i,2e3)}};hn();Pt();varbo=class{constructor(t,e,r){this.addedListItems=newSet;this.nestingLevel=0;this.source=t,this.tasksFile=e,this.query=r}getfilePath(){returnthis.tasksFile.path}renderQuery(t,e){returnA(this,null,function*(){this.beginRender();leti=this.query.error;t==="Warm"&&i===void0?yieldthis.renderQuerySearchResults(e):i?this.renderErrorMessage(i):this.renderLoadingMessage()})}renderQuerySearchResults(t){returnA(this,null,function*(){if(this.explainQuery(),t.searchErrorMessage!==void0){this.renderErrorMessage(t.searchErrorMessage);return}yieldthis.renderSearchResults(t)})}explainQuery(){if(this.query.queryLayoutOptions.explainQuery){lett=Sx(this.source,Ae.getInstance(),mr.getInstance(),this.tasksFile);this.renderExplanation(t)}}renderSearchResults(t){returnA(this,null,function*(){this.renderSearchResultsHeader(t),yieldthis.addAllTaskGroups(t.taskGroups);lete=t.totalTasksCount;this.query.debug(`[render] ${e} tasks displayed`),this.renderSearchResultsFooter(t)})}addAllTaskGroups(t){returnA(this,null,function*(){for(leteoft.groups)yieldthis.addGroupHeadings(e.groupHeadings),this.addedListItems.clear(),this.nestingLevel=0,yieldthis.addTaskList(e.tasks)})}addTaskList(t){returnA(this,null,function*(){this.beginTaskList();try{this.query.queryLayoutOptions.hideTree?yieldthis.addFlatTaskList(t):yieldthis.addTreeTaskList(t)}finally{this.endTaskList()}})}addFlatTaskList(t){returnA(this,null,function*(){for(let[e,r]oft.entries())rinstanceofke&&(this.beginListItem(),yieldthis.addTask(r,e))})}addTreeTaskList(t){returnA(this,null,function*(){for(let[e,r]oft.entries())this.alreadyAdded(r)||this.willBeAddedLater(r,t)||(this.beginListItem(),rinstanceof
`+x.t("modals.customStatusModal.fixErrorsBeforeSaving");new Pr.Notice(d);return}this.saved=!0,this.close()})),u)),l.addExtraButton(u=>(u.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.saved=!1,this.close()}),u))}onOpen(){this.display()}static setValidationError(e){e.inputEl.addClass("tasks-settings-is-invalid")}static removeValidationError(e){e.inputEl.removeClass("tasks-settings-is-invalid")}static setValid(e,r){r.length===0?n.removeValidationError(e):n.setValidationError(e)}};var aT=require("obsidian");function Yx(n,t,e){if(t===e||!Object.prototype.hasOwnProperty.call(n,t))return q({},n);let r={};for(let[i,s]of Object.entries(n))i===t?r[e]=s:r[i]=s;return r}var pu=class{constructor(t,e,r){this.originalName=t,this.isValid=e,this.errorMessage=r}},Yf=class{validateRenames(t){let e={};for(let[r,i]of Object.entries(t)){let s={};for(let[a,o]of Object.entries(t))a!==r&&(s[o]="");e[r]=this.validateRename(s,"",i)}return e}validateRename(t,e,r){if(!r||r.trim()==="")return new pu(e,!1,"Preset name cannot be empty or all whitespace");for(let i of Object.keys(t))if(i!==e&&i.trim()===r.trim())return new pu(e,!1,"A preset with this name already exists");return new pu(e,!0,null)}addPreset(t){let e=this.generateUniqueKey(t),r=q({},t);return r[e]="",{presets:r,newKey:e}}renamePreset(t,e,r){return!r||r.trim()===""||(r=r.trim(),this.wouldCreateDuplicateKey(t,e,r))?null:Yx(t,e,r)}deletePreset(t,e){let r=q({},t);return delete r[e],r}updatePresetValue(t,e,r){let i=q({},t);return i[e]=r,i}wouldCreateDuplicateKey(t,e,r){let i=r.trim();if(e.trim()===i)return!1;for(let s of Object.keys(t))if(s!==e&&s.trim()===i)return!0;return!1}generateUniqueKey(t){let e="new_key",r=1;for(;Object.prototype.hasOwnProperty.call(t,`${e}_${r}`);)r++;return`${e}_${r}`}reorderPreset(t,e,r){let i=Object.keys(t),s=i.indexOf(e);if(s===-1||r<0||r>=i.length)return null;if(s===r)return q({},t);let a=[...i];a.splice(s,1),a.splice(r,0,e);let o={};for(let l of a)o[l]=t[l];return o}};Fr();ft();var Uf=class{constructor(t,e){this.presetsSettingsService=new Yf;this.nameFields=new Map;this.plugin=t,this.events=e}renderPresetsSettings(t){let e=t.createDiv(),r=X(),i=()=>{e.empty(),this.nameFields.clear(),Object.entries(r.presets).forEach(([s,a])=>{this.renderPresetItem(e,r,s,a,i)})};i(),this.createAddNewPresetButton(t,r,i)}renderPresetItem(t,e,r,i,s){let a=t.createDiv({cls:"tasks-presets-wrapper"}),o=new aT.Setting(a);o.settingEl.addClass("tasks-presets-setting"),a.setAttribute("data-preset-key",r),o.addText(l=>{l.setPlaceholder("Name").setValue(r),l.inputEl.addClass("tasks-presets-key"),this.nameFields.set(r,{inputEl:l.inputEl,originalKey:r});let u=r;l.inputEl.addEventListener("input",d=>{u=d.target.value,this.validateAllInputs()});let c=()=>{if(u&&u!==r){let d=this.presetsSettingsService.renamePreset(e.presets,r,u);d&&this.savePresetsSettings(d,e,s)}};l.inputEl.addEventListener("blur",c),l.inputEl.addEventListener("keydown",d=>{d.key==="Enter"&&(d.preventDefault(),l.inputEl.blur())})}),o.addTextArea(l=>(l.inputEl.addClass("tasks-presets-value"),l.setPlaceholder("Query or filter text...").setValue(i),this.setupAutoResizingTextarea(l),l.onChange(u=>A(this,null,function*(){let c=this.presetsSettingsService.updatePresetValue(e.presets,r,u);this.savePresetsSettings(c,e,null)})))),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-drag-handle"),l.setIcon("grip-vertical").setTooltip("Drag to reorder"),l.extraSettingsEl.addEventListener("mousedown",u=>{a.draggable=!0,l.extraSettingsEl.addClass("tasks-presets-drag-handle-active")}),l.extraSettingsEl.addEventListener("mouseup",u=>{l.extraSettingsEl.removeClass("tasks-presets-drag-handle-active")})}),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-delete-button"),l.setIcon("cross").setTooltip("Delete").onClick(()=>A(this,null,function*(){let u=this.presetsSettingsService.deletePreset(e.presets,r);this.savePresetsSettings(u,e,s)}))}),this.setupDragAndDrop(a,r,e,s),o.infoEl.remove()}setupDragAndDrop(t,e,r,i){t.addEventListener("dragstart",s=>{s.dataTransfer&&(s.dataTransfer.setData("text/plain",e),s.dataTra
`,1e4)}varjf=classextendsas.EditorSuggest{constructor(t,e,r){super(t),this.settings=e,this.plugin=r,t.scope.register([],"Tab",()=>{vars;leti=(s=this.context)==null?void0:s.editor;returni?(i.exec("indentMore"),!1):!0})}onTrigger(t,e,r){if(!this.settings.autoSuggestInEditor||r===void0)returnnull;leti=e.getLine(t.line);return!cD(i,t,e)||this.grabSuggestions(e,r,i).length===0?null:{start:{line:t.line,ch:0},end:{line:t.line,ch:i.length},query:i}}getSuggestions(t){returnt.file===void0?[]:this.grabSuggestions(t.editor,t.file,t.query).map(r=>pe(q({},r),{context:t}))}grabSuggestions(t,e,r){varu,c,d;leti=t.getCursor(),s=this.plugin.getTasks(),a=s.find(f=>f.taskLocation.path==e.path&&f.taskLocation.lineNumber==i.line),o=this.getMarkdownFileInfo(t),l=this.canSaveEdits(o);return(d=(c=(u=Ul()).buildSuggestions)==null?void0:c.call(u,r,i.ch,this.settings,s,l,a))!=null?d:[]}getMarkdownFileInfo(t){returnt.cm.state.field(as.editorInfoField)}canSaveEdits(t){returntinstanceofas.MarkdownView}renderSuggestion(t,e){e.setText(t.displayText)}selectSuggestion(t,e){returnA(this,null,function*(){varl,u,c;letr=t.context.editor;if(t.suggestionType==="empty"){this.close();letd=newKeyboardEvent("keydown",{code:"Enter",key:"Enter"});(u=(l=r==null?void0:r.cm)==null?void0:l.contentDOM)==null||u.dispatchEvent(d);return}if(t.taskItDependsOn!=null){letd=Lc(t.taskItDependsOn,this.plugin.getTasks().map(f=>f.id));if(t.appendText+=` ${d.id}`,t.taskItDependsOn!==d)if(t.context.file.path==d.path){letf=t.taskItDependsOn.originalMarkdown,p={line:t.taskItDependsOn.lineNumber,ch:0},h={line:t.taskItDependsOn.lineNumber,ch:f.length},b=t.context.editor.getRange(p,h);if(b!==f){letv=`Error adding new ID, due to mismatched data in Tasks memory and the editor:
task line in memory: '${t.taskItDependsOn.originalMarkdown}'