/ *
THIS IS A GENERATED / BUNDLED FILE BY ESBUILD
if you want to view the source visit the plugins github repository
* /
/ *
License obsidian - tasks :
MIT License
Copyright ( c ) 2021 Clare Macrae , Ilyas Landikov and Martin Schenck
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the "Software" ) , to deal
in the Software without restriction , including without limitation the rights
to use , copy , modify , merge , publish , distribute , sublicense , and / or sell
copies of the Software , and to permit persons to whom the Software is
furnished to do so , subject to the following conditions :
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING FROM ,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE .
* /
/ *
License rrule ( included library ) :
rrule . js : Library for working with recurrence rules for calendar dates .
=== === === === === === === === === === === === === === === === === === === === === === === ==
Copyright 2010 , Jakub Roztocil < jakub @ roztocil . name > and Lars Schöning
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
1. Redistributions of source code must retain the above copyright notice ,
this list of conditions and the following disclaimer .
2. Redistributions in binary form must reproduce the above copyright
notice , this list of conditions and the following disclaimer in the
documentation and / or other materials provided with the distribution .
3. Neither the name of The author nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission .
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED . IN NO EVENT SHALL THE AUTHOR AND CONTRIBUTORS BE LIABLE FOR
ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES
( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ;
LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT
( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
. / rrule . js and . / test / tests . js is based on python - dateutil . LICENCE :
python - dateutil - Extensions to the standard Python datetime module .
=== === === === === === === === === === === === === === === === === === === === === === ==
Copyright ( c ) 2003 - 2011 - Gustavo Niemeyer < gustavo @ niemeyer . net >
Copyright ( c ) 2012 - Tomi Pieviläinen < tomi . pievilainen @ iki . fi >
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
* Redistributions of source code must retain the above copyright notice ,
this list of conditions and the following disclaimer .
* Redistributions in binary form must reproduce the above copyright notice ,
this list of conditions and the following disclaimer in the documentation
and / or other materials provided with the distribution .
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL ,
EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO ,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR
PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
* /
/ *
License chrono - node ( included library ) :
The MIT License
Copyright ( c ) 2014 , Wanasit Tanakitrungruang
* /
/ *
License flatpickr ( included library ) :
The MIT License ( MIT )
Copyright ( c ) 2017 Gregory Petrosyan
* /
/ *
License @ floating - ui / dom ( included library ) :
MIT License
Copyright ( c ) 2021 Floating UI contributors
* /
/ *
License boon - js ( included library ) :
The MIT License ( MIT )
Copyright ( c ) 2020 - present Jake Chorley
* /
/ *
License eventemitter2 ( included library ) :
The MIT License ( MIT )
Copyright ( c ) 2016 Paolo Fragomeni < http : //www.github.com/0x00a> and Contributors
* /
/ *
License i18next ( included library ) :
The MIT License ( MIT )
Copyright ( c ) 2025 i18next
* /
/ *
License mustache ( included library ) :
The MIT License
Copyright ( c ) 2009 Chris Wanstrath ( Ruby )
Copyright ( c ) 2010 - 2014 Jan Lehnardt ( JavaScript )
Copyright ( c ) 2010 - 2015 The mustache . js community
* /
/ *
License mustache - validator ( included library ) :
MIT License
Copyright ( c ) 2022 Elias Mangoro
* /
"use strict" ; var Ox = Object . create ; var $o = Object . defineProperty , Cx = Object . defineProperties , Mx = Object . getOwnPropertyDescriptor , Rx = Object . getOwnPropertyDescriptors , Ax = Object . getOwnPropertyNames , Pu = Object . getOwnPropertySymbols , Px = Object . getPrototypeOf , Af = Object . prototype . hasOwnProperty , vb = Object . prototype . propertyIsEnumerable ; var _b = ( n , t , e ) => t in n ? $o ( n , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : e } ) : n [ t ] = e , U = ( n , t ) => { for ( var e in t || ( t = { } ) ) Af . call ( t , e ) && _b ( n , e , t [ e ] ) ; if ( Pu ) for ( var e of Pu ( t ) ) vb . call ( t , e ) && _b ( n , e , t [ e ] ) ; return n } , me = ( n , t ) => Cx ( n , Rx ( t ) ) ; var pa = ( n , t ) => { var e = { } ; for ( var r in n ) Af . call ( n , r ) && t . indexOf ( r ) < 0 && ( e [ r ] = n [ r ] ) ; if ( n != null && Pu ) for ( var r of Pu ( n ) ) t . indexOf ( r ) < 0 && vb . call ( n , r ) && ( e [ r ] = n [ r ] ) ; return e } ; var ee = ( n , t ) => ( ) => ( n && ( t = n ( n = 0 ) ) , t ) ; var x = ( n , t ) => ( ) => ( t || n ( ( t = { exports : { } } ) . exports , t ) , t . exports ) , wb = ( n , t ) => { for ( var e in t ) $o ( n , e , { get : t [ e ] , enumerable : ! 0 } ) } , kb = ( n , t , e , r ) => { if ( t && typeof t == "object" || typeof t == "function" ) for ( let i of Ax ( t ) ) ! Af . call ( n , i ) && i !== e && $o ( n , i , { get : ( ) => t [ i ] , enumerable : ! ( r = Mx ( t , i ) ) || r . enumerable } ) ; return n } ; var qo = ( n , t , e ) => ( e = n != null ? Ox ( Px ( n ) ) : { } , kb ( t || ! n || ! n . _ _esModule ? $o ( e , "default" , { value : n , enumerable : ! 0 } ) : e , n ) ) , Sb = n => kb ( $o ( { } , "__esModule" , { value : ! 0 } ) , n ) ; var L = ( n , t , e ) => new Promise ( ( r , i ) => { var s = l => { try { o ( e . next ( l ) ) } catch ( u ) { i ( u ) } } , a = l => { try { o ( e . throw ( l ) ) } catch ( u ) { i ( u ) } } , o = l => l . done ? r ( l . value ) : Promise . resolve ( l . value ) . then ( s , a ) ; o ( ( e = e . apply ( n , t ) ) . next ( ) ) } ) ; var Te , Ho , Eb , Nx , Ix , Db , xb , Go , Ob , Fx , Iu , Lx , Ib , ma , Ux , Yx , Nf , jx , Wx , $x , If , Fu , qx , ga , Ur , ya , Lu , Fb , Cb , ba , Uu , Mb , Rb , Ff , Ab , Pf , Lf , Hx , ha , Uf , Gx , Yf , Pb , Nb , Nu , Bx , hs , yt , BY , VY , zY , KY , QY , XY , ZY , JY , ej , tj , nj , rj , ij , sj , Lb = ee ( ( ) => { Te = n => typeof n == "string" , Ho = ( ) => { let n , t , e = new Promise ( ( r , i ) => { n = r , t = i } ) ; return e . resolve = n , e . reject = t , e } , Eb = n => n == null ? "" : "" + n , Nx = ( n , t , e ) => { n . forEach ( r => { t [ r ] && ( e [ r ] = t [ r ] ) } ) } , Ix = /###/g , Db = n => n && n . indexOf ( "###" ) > - 1 ? n . replace ( Ix , "." ) : n , xb = n => ! n || Te ( n ) , Go = ( n , t , e ) => { let r = Te ( t ) ? t . split ( "." ) : t , i = 0 ; for ( ; i < r . length - 1 ; ) { if ( xb ( n ) ) return { } ; let s = Db ( r [ i ] ) ; ! n [ s ] && e && ( n [ s ] = new e ) , Object . prototype . hasOwnProperty . call ( n , s ) ? n = n [ s ] : n = { } , ++ i } return xb ( n ) ? { } : { obj : n , k : Db ( r [ i ] ) } } , Ob = ( n , t , e ) => { let { obj : r , k : i } = Go ( n , t , Object ) ; if ( r !== void 0 || t . length === 1 ) { r [ i ] = e ; return } let s = t [ t . length - 1 ] , a = t . slice ( 0 , t . length - 1 ) , o = Go ( n , a , Object ) ; for ( ; o . obj === void 0 && a . length ; ) s = ` ${ a [ a . length - 1 ] } . ${ s } ` , a = a . slice ( 0 , a . length - 1 ) , o = Go ( n , a , Object ) , ( o == null ? void 0 : o . obj ) && typeof o . obj [ ` ${ o . k } . ${ s } ` ] != "undefined" && ( o . obj = void 0 ) ; o . obj [ ` ${ o . k } . ${ s } ` ] = e } , Fx = ( n , t , e , r ) => { let { obj : i , k : s } = Go ( n , t , Object ) ; i [ s ] = i [ s ] || [ ] , i [ s ] . push ( e ) } , Iu = ( n , t ) => { let { obj : e , k : r } = Go ( n , t ) ; if ( ! ! e && ! ! Object . prototype . hasOwnProperty . call ( e , r ) ) return e [ r ] } , Lx = ( n , t , e ) => { let r = Iu ( n , e ) ; return r !== void 0 ? r : Iu ( t , e ) } , Ib = ( n , t , e ) => { for ( let r in t ) r !== "__proto__" && r !== "constructor" && ( r in n ? Te ( n [ r ] ) || n [ r ] instanceof String || Te ( t [ r ] ) || t [ r ] instanceof String ? e && ( n [ r ] = t [ r ] ) : Ib ( n [ r ] , t [ r ] , e ) : n [ r ] = t [ r ] ) ; return n } , ma = n => n . replace ( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g , "\\$&" ) , Ux = { "&" : "&" , "<" : "<" , ">" : ">" , '"' : """ , "'" : "'" , "/" : "/" } , Yx = n => Te ( n ) ? n . replace ( /[&<>"'\/]/g , t => Ux [ t ] ) : n , Nf = class { constructor ( t ) { this . capacity = t , this . regExpMap = new Map , this . regExpQueue = [ ] } getRegExp ( t ) { let e = this . regExpMap . get ( t ) ; if ( e !== void 0 ) return e ; let r = new RegExp ( t ) ; return this . regExpQueue . length === this . capacity && this . regExpMap . delete ( this . regExpQueue . shift ( ) ) , this . regExpMap . set ( t , r ) , this . regExpQueue . push ( t ) , r } } , jx = [ " " , "," , "?" , "!" , ";" ] , Wx = new Nf ( 20 ) , $x = ( n , t , e ) => { t = t || "" , e = e || "" ; let r = jx . filter ( a => t . indexOf ( a ) < 0 && e . indexOf ( a ) < 0 ) ; if ( r . length === 0 ) return ! 0 ; let i = Wx . getRegExp ( ` ( ${ r . map ( a => a === "?" ? "\\?" : a ) . join ( "|" ) } ) ` ) , s = ! i . test ( n ) ; if ( ! s ) { let a = n . indexOf ( e ) ; a > 0 && ! i . test ( n . substring ( 0 , a ) ) && ( s = ! 0 ) } return s } , If = function ( n , t ) { let e = arguments . length > 2 && arguments [ 2 ] !== void 0 ? arguments [ 2 ] : "." ; if ( ! n ) return ; if ( n [ t ] ) return Object . prototype . hasOwnProperty . call ( n , t ) ? n [ t ] : void 0 ; let r = t . split ( e ) , i = n ; for ( let s = 0 ; s < r . length ; ) { if ( ! i || typeof i != "object" ) return ; let a , o = "" ; for ( let l = s ; l < r . length ; ++ l ) if ( l !== s && ( o += e ) , o += r [ l ] , a = i [ o ] , a !== void 0 ) { if ( [ "string" , "number" , "boolean" ] . indexOf ( typeof a ) > - 1 && l < r . length - 1 ) continue ; s += l - s + 1 ; break } i = a } return i } , Fu = n => n == null ? void
path does not include _templates /
limit 300
show urgency ` }},recurringTasks:{heading:" \u 041F \u 0435 \u 0440 \u 044B \u 044F \u 0434 \u 044B \u 0447 \u 043D \u 044B \u 044F \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 044B",nextLine:{description:" \u 0423 \u 043A \u 043B \u 044E \u 0447 \u 044D \u 043D \u 043D \u 0435 \u 0433 \u 044D \u 0442 \u 0430 \u 0433 \u 0430 \u 0437 \u 0440 \u 043E \u 0431 \u 0456 \u 0446 \u 044C \u 043D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0430 \u 0435 \u 043F \u 0430 \u 045E \u 0442 \u 0430 \u 0440 \u 044D \u 043D \u 043D \u 0435 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 044B \u 043D \u 0430 \u 0440 \u 0430 \u 0434 \u 043A \u 0443 \u 043D \u 0456 \u 0436 \u 044D \u 0439 \u 0437 \u 0430 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0430 \u 043D \u 0443 \u 044E \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0443. \u 0423 \u 0430 \u 0434 \u 0432 \u 0430 \u 0440 \u 043E \u 0442 \u 043D \u 044B \u 043C \u 0432 \u 044B \u 043F \u 0430 \u 0434 \u 043A \u 0443 \u 043D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0430 \u 0435 \u 043F \u 0430 \u 045E \u 0442 \u 0430 \u 0440 \u 044D \u 043D \u 043D \u 0435 \u 0437' \u 044F \u 0432 \u 0456 \u 0446 \u 0446 \u 0430 \u 043F \u 0435 \u 0440 \u 0430 \u 0434 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0430 \u 043D \u 0430 \u 0439 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0430 \u 0439.",name:" \u 041D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0430 \u 0435 \u 043F \u 0430 \u 045E \u 0442 \u 0430 \u 0440 \u 044D \u 043D \u 043D \u 0435 \u 0437' \u 044F \u 045E \u 043B \u 044F \u 0435 \u 0446 \u 0446 \u 0430 \u 043D \u 0430 \u 0440 \u 0430 \u 0434 \u 043A \u 0443 \u 043D \u 0456 \u 0436 \u 044D \u 0439"}},seeTheDocumentation:" \u 0413 \u 043B \u 044F \u 0434 \u 0437 \u 0456 \u 0446 \u 0435 \u 0434 \u 0430 \u 043A \u 0443 \u 043C \u 0435 \u 043D \u 0442 \u 0430 \u 0446 \u 044B \u 044E",statuses:{collections:{anuppuccinTheme:" \u 0422 \u 044D \u 043C \u 0430 AnuPpuccin",auraTheme:" \u 0422 \u 044D \u 043C \u 0430 Aura",borderTheme:" \u 0422 \u 044D \u 043C \u 0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u 0414 \u 0430 \u 0434 \u 0430 \u 0446 \u 044C {{numberOfStatuses}} \u 043F \u 0430 \u 0434 \u 0442 \u 0440 \u 044B \u 043C \u 043E \u 045E \u 0432 \u 0430 \u 043D \u 044B \u 044F \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B"}},ebullientworksTheme:" \u 0422 \u 044D \u 043C \u 0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:" \u 0422 \u 044D \u 043C \u 0430 ITS \u 0456 \u 0441 \u 0446 \u 044F \u 0436 \u 043A \u 0456 SlRvb",lytModeTheme:" \u 0422 \u 044D \u 043C \u 0430 LYT Mode ( \u 0442 \u 043E \u 043B \u 044C \u 043A \u 0456 \u 0446 \u 0451 \u 043C \u 043D \u 044B \u 0440 \u 044D \u 0436 \u 044B \u 043C)",minimalTheme:" \u 041C \u 0456 \u 043D \u 0456 \u 043C \u 0430 \u 043B \u 044C \u 043D \u 0430 \u 044F \u 0442 \u 044D \u 043C \u 0430",thingsTheme:" \u 0422 \u 044D \u 043C \u 0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:" \u 041F \u 0440 \u 0430 \u 0433 \u 043B \u 044F \u 0434 \u 0437 \u 0435 \u 0446 \u 044C \u 0456 \u 043F \u 0440 \u 0430 \u 0432 \u 0435 \u 0440 \u 044B \u 0446 \u 044C \u 0432 \u 0430 \u 0448 \u 044B \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B",tooltip:" \u 0421 \u 0442 \u 0432 \u 0430 \u 0440 \u 044B \u 0446 \u 044C \u 043D \u 043E \u 0432 \u 044B \u 0444 \u 0430 \u 0439 \u 043B \u 0443 \u 043A \u 0430 \u 0440 \u 0430 \u 043D \u 0451 \u 0432 \u 0430 \u 0439 \u 0442 \u 044D \u 0447 \u 0446 \u 044B \u 0441 \u 0445 \u 043E \u 0432 \u 0456 \u 0448 \u 0447 \u 0430, \u 044F \u 043A \u 0456 \u 0437 \u 043C \u 044F \u 0448 \u 0447 \u 0430 \u 0435 \u 0434 \u 044B \u 044F \u 0433 \u 0440 \u 0430 \u 043C \u 0443 Mermaid \u 0437 \u 0431 \u 044F \u 0433 \u 0443 \u 0447 \u 044B \u 043C \u 0456 \u 043D \u 0430 \u 043B \u 0430 \u 0434 \u 0430 \u 043C \u 0456 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0443."}},description:{line1:" \u 0413 \u 044D \u 0442 \u 0430 \u 0430 \u 0441 \u 043D \u 043E \u 045E \u 043D \u 044B \u 044F \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B, \u 044F \u 043A \u 0456 \u 044F Tasks \u 043F \u 0430 \u 0434 \u 0442 \u 0440 \u 044B \u 043C \u 043B \u 0456 \u 0432 \u 0430 \u 0435 \u 045E \u 043B \u 0430 \u 0441 \u 043D \u 0430, \u 0431 \u 0435 \u 0437 \u 043F \u 0430 \u 0442 \u 0440 \u 044D \u 0431 \u 044B \u 045E \u 043A \u 0430 \u 0440 \u 044B \u 0441 \u 0442 \u 0430 \u 043B \u 044C \u 043D \u 0456 \u 0446 \u 043A \u 0456 \u 043C CSS- \u 0441 \u 0442 \u 044B \u 043B \u 0456 \u 0430 \u 0431 \u 043E \u 0442 \u 044D \u 043C \u 0430 \u 0442 \u 044B \u 0437 \u 0430 \u 0446 \u 044B \u 0456.",line2:" \u 0412 \u 044B \u 043C \u 043E \u 0436 \u 0430 \u 0446 \u 0435 \u 0440 \u 044D \u 0434 \u 0430 \u 0433 \u 0430 \u 0432 \u 0430 \u 0446 \u 044C \u 0456 \u 0434 \u 0430 \u 0434 \u 0430 \u 0432 \u 0430 \u 0446 \u 044C \u 0441 \u 0432 \u 0430 \u 0435 \u 045E \u 043B \u 0430 \u 0441 \u 043D \u 044B \u 044F \u 043A \u 0430 \u 0440 \u 044B \u 0441 \u 0442 \u 0430 \u 043B \u 044C \u 043D \u 0456 \u 0446 \u 043A \u 0456 \u 044F \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B \u 045E \u 0440 \u 0430 \u 0437 \u 0434 \u 0437 \u 0435 \u 043B \u 0435 \u 043D \u 045
path does not include _templates /
limit 300
show urgency ` }},recurringTasks:{heading:"Recurring tasks",nextLine:{description:"Enabling this will make the next recurrence of a task appear on the line below the completed task. Otherwise the next recurrence will appear before the completed one.",name:"Next recurrence appears on the line below"}},seeTheDocumentation:"See the documentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccin Theme",auraTheme:"Aura Theme",borderTheme:"Border Theme",buttons:{addCollection:{name:"{{themeName}}: Add {{numberOfStatuses}} supported Statuses"}},ebullientworksTheme:"Ebullientworks Theme",itsThemeAndSlrvbCheckboxes:"ITS Theme & SlRvb Checkboxes",lytModeTheme:"LYT Mode Theme (Dark mode only)",minimalTheme:"Minimal Theme",thingsTheme:"Things Theme"},coreStatuses:{buttons:{checkStatuses:{name:"Review and check your Statuses",tooltip:"Create a new file in the root of the vault, containing a Mermaid diagram of the current status settings."}},description:{line1:"These are the core statuses that Tasks supports natively, with no need for custom CSS styling or theming.",line2:"You can add edit and add your own custom statuses in the section below."},heading:"Core Statuses"},customStatuses:{buttons:{addAllUnknown:{name:"Add All Unknown Status Types"},addNewStatus:{name:"Add New Task Status"},resetCustomStatuses:{name:"Reset Custom Status Types to Defaults"}},description:{line1:"You should first <b>select and install a CSS Snippet or Theme</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 qb, $ b=ee(()=>{qb={main:{loadingPlugin:" \u 0417 \u 0430 \u 0433 \u 0440 \u 0443 \u 0437 \u 043A \u 0430 \u 043F \u 043B \u 0430 \u 0433 \u 0438 \u 043D \u 0430: {{name}} v{{version}}",unloadingPlugin:" \u 0412 \u 044B \u 0433 \u 0440 \u 0443 \u 0437 \u 043A \u 0430 \u 043F \u 043B \u 0430 \u 0433 \u 0438 \u 043D \u 0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:" \u 0415 \u 0441 \u 043B \u 0438 \u 0432 \u 043A \u 043B \u 044E \u 0447 \u 0435 \u 043D \u 043E, \u 044D \u 0442 \u 043E \u 0442 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0431 \u 0443 \u 0434 \u 0435 \u 0442 \u 0434 \u 043E \u 0441 \u 0442 \u 0443 \u 043F \u 0435 \u 043D \u 043A \u 0430 \u 043A \u 043A \u 043E \u 043C \u 0430 \u 043D \u 0434 \u 0430, \u 043F \u 043E \u 044D \u 0442 \u 043E \u 043C \u 0443 \u 0432 \u 044B \u 043C \u 043E \u 0436 \u 0435 \u 0442 \u 0435 \u 043D \u 0430 \u 0437 \u 043D \u 0430 \u 0447 \u 0438 \u 0442 \u 044C \u 0433 \u 043E \u 0440 \u 044F \u 0447 \u 0443 \u 044E \u 043A \u 043B \u 0430 \u 0432 \u 0438 \u 0448 \u 0443 \u 0438 \u 043F \u 0435 \u 0440 \u 0435 \u 043A \u 043B \u 044E \u 0447 \u 0430 \u 0442 \u 044C \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0441 \u 0435 \u 0435 \u 043F \u 043E \u 043C \u 043E \u 0449 \u 044C \u 044E.",name:" \u 0414 \u 043E \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 043E \u 043A \u 0430 \u 043A \u 043A \u 043E \u 043C \u 0430 \u 043D \u 0434 \u 0430"},editNextStatusSymbol:{description:" \u 041F \u 0440 \u 0438 \u 043D \u 0430 \u 0436 \u 0430 \u 0442 \u 0438 \u 0438 \u 044D \u 0442 \u 043E \u 0441 \u 0438 \u 043C \u 0432 \u 043E \u 043B, \u 043A \u 043E \u 0442 \u 043E \u 0440 \u 044B \u 0439 \u 0441 \u 043B \u 0435 \u 0434 \u 0443 \u 0435 \u 0442 \u 0438 \u 0441 \u 043F \u 043E \u 043B \u 044C \u 0437 \u 043E \u 0432 \u 0430 \u 0442 \u 044C \u 0441 \u 043B \u 0435 \u 0434 \u 0443 \u 044E \u 0449 \u 0438 \u 043C.",name:" \u 0421 \u 0438 \u 043C \u 0432 \u 043E \u 043B \u 0441 \u 043B \u 0435 \u 0434 \u 0443 \u 044E \u 0449 \u 0435 \u 0433 \u 043E \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0430 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438"},editStatusName:{description:" \u 042D \u 0442 \u 043E \u 043F \u 043E \u 043D \u 044F \u 0442 \u 043D \u 043E \u 0435 \u 0438 \u 043C \u 044F \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0430 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438.",name:" \u 0418 \u 043C \u 044F \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0430 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438"},editStatusSymbol:{description:" \u 042D \u 0442 \u 043E \u 0441 \u 0438 \u 043C \u 0432 \u 043E \u 043B \u 043C \u 0435 \u 0436 \u 0434 \u 0443 \u 043A \u 0432 \u 0430 \u 0434 \u 0440 \u 0430 \u 0442 \
path does not include _templates /
limit 300
show urgency ` }},recurringTasks:{heading:" \u 041F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 044F \u 044E \u 0449 \u 0438 \u 0435 \u 0441 \u 044F \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438",nextLine:{description:" \u 0412 \u 043A \u 043B \u 044E \u 0447 \u 0435 \u 043D \u 0438 \u 0435 \u 044D \u 0442 \u 043E \u 0439 \u 043E \u 043F \u 0446 \u 0438 \u 0438 \u 043F \u 0440 \u 0438 \u 0432 \u 0435 \u 0434 \u 0435 \u 0442 \u 043A \u 0442 \u 043E \u 043C \u 0443, \u 0447 \u 0442 \u 043E \u 0441 \u 043B \u 0435 \u 0434 \u 0443 \u 044E \u 0449 \u 0435 \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 0438 \u 0435 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438 \u 043F \u 043E \u 044F \u 0432 \u 0438 \u 0442 \u 0441 \u 044F \u 043D \u 0430 \u 0441 \u 0442 \u 0440 \u 043E \u 043A \u 0435 \u 043D \u 0438 \u 0436 \u 0435 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0435 \u 043D \u 043D \u 043E \u 0439 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0438. \u 0412 \u 043F \u 0440 \u 043E \u 0442 \u 0438 \u 0432 \u 043D \u 043E \u 043C \u 0441 \u 043B \u 0443 \u 0447 \u 0430 \u 0435 \u 0441 \u 043B \u 0435 \u 0434 \u 0443 \u 044E \u 0449 \u 0435 \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 0438 \u 0435 \u 043F \u 043E \u 044F \u 0432 \u 0438 \u 0442 \u 0441 \u 044F \u 043F \u 0435 \u 0440 \u 0435 \u 0434 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0435 \u 043D \u 043D \u 043E \u 0439.",name:" \u 0421 \u 043B \u 0435 \u 0434 \u 0443 \u 044E \u 0449 \u 0435 \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 0438 \u 0435 \u 043F \u 043E \u 044F \u 0432 \u 043B \u 044F \u 0435 \u 0442 \u 0441 \u 044F \u 043D \u 0430 \u 0441 \u 0442 \u 0440 \u 043E \u 043A \u 0435 \u 043D \u 0438 \u 0436 \u 0435"}},seeTheDocumentation:" \u 0421 \u 043C \u 043E \u 0442 \u 0440 \u 0438 \u 0442 \u 0435 \u 0434 \u 043E \u 043A \u 0443 \u 043C \u 0435 \u 043D \u 0442 \u 0430 \u 0446 \u 0438 \u 044E",statuses:{collections:{anuppuccinTheme:" \u 0422 \u 0435 \u 043C \u 0430 AnuPpuccin",auraTheme:" \u 0422 \u 0435 \u 043C \u 0430 Aura",borderTheme:" \u 0422 \u 0435 \u 043C \u 0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u 0414 \u 043E \u 0431 \u 0430 \u 0432 \u 0438 \u 0442 \u 044C {{numberOfStatuses}} \u 043F \u 043E \u 0434 \u 0434 \u 0435 \u 0440 \u 0436 \u 0438 \u 0432 \u 0430 \u 0435 \u 043C \u 044B \u 0445 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 043E \u 0432"}},ebullientworksTheme:" \u 0422 \u 0435 \u 043C \u 0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:" \u 0422 \u 0435 \u 043C \u 0430 ITS \u 0438 \u 0444 \u 043B \u 0430 \u 0436 \u 043A \u 0438 SlRvb",lytModeTheme:" \u 0422 \u 0435 \u 043C \u 0430 LYT Mode ( \u 0442 \u 043E \u 043B \u 044C \u 043A \u 043E \u 0442 \u 0435 \u 043C \u 043D \u 044B \u 0439 \u 0440 \u 0435 \u 0436 \u 0438 \u 043C)",minimalTheme:" \u 0422 \u 0435 \u 043C \u 0430 Minimal",thingsTheme:" \u 0422 \u 0435 \u 043C \u 0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:" \u 041F \u 0440 \u 043E \u 0441 \u 043C \u 043E \u 0442 \u 0440 \u 0435 \u 0442 \u 044C \u 0438 \u 043F \u 0440 \u 043E \u 0432 \u 0435 \u 0440 \u 0438 \u 0442 \u 044C \u 0441 \u 0432 \u 043E \u 0438 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B",tooltip:" \u 0421 \u 043E \u 0437 \u 0434 \u 0430 \u 0442 \u 044C \u 043D \u 043E \u 0432 \u 044B \u 0439 \u 0444 \u 0430 \u 0439 \u 043B \u 0432 \u 043A \u 043E \u 0440 \u 043D \u 0435 \u 0445 \u 0440 \u 0430 \u 043D \u 0438 \u 043B \u 0438 \u 0449 \u 0430, \u 0441 \u 043E \u 0434 \u 0435 \u 0440 \u 0436 \u 0430 \u 0449 \u 0438 \u 0439 Mermaid \u 0434 \u 0438 \u 0430 \u 0433 \u 0440 \u 0430 \u 043C \u 043C \u 0443 \u 0442 \u 0435 \u 043A \u 0443 \u 0449 \u 0438 \u 0445 \u 043D \u 0430 \u 0441 \u 0442 \u 0440 \u 043E \u 0435 \u 043A \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 043E \u 0432."}},description:{line1:" \u 042D \u 0442 \u 043E \u 043E \u 0441 \u 043D \u 043E \u 0432 \u 043D \u 044B \u 0435 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 044B, \u 043A \u 043E \u 0442 \u 043E \u 0440 \u 044B \u 0435 Tasks \u 043F \u 043E \u 0434 \u 0434 \u 0435 \u 0440 \u 0436 \u 0438 \u 0432 \u 0430 \u 0435 \u 0442 \u 0438 \u 0437 \u 043D \u 0430 \u 0447 \u 0430 \u 043B \u 044C \u 043D \u 043E, \u 0431 \u 0435 \u 0437 \u 043D \u 0435 \u 043E \u 0431 \u 0445 \u 043E \u 0434 \u 0438 \u 043C \u 043E \u 0441 \u 0442 \u 0438 \u 0438 \u 0441 \u 043F \u 043E \u 043B \u 044C \u 0437 \u 043E \u 0432 \u 0430 \u 043D \u 0438 \u 044F \u 043F \u 043E \u 043B \u 044C \u 0437 \u 043E \u 0432 \u 0430 \u 0442 \u 0435 \u 043B \u 044C \u 0441 \u 043A \u 0438 \u 0445 CSS \u 0441 \u 0442 \u 0438 \u 043B \u 0435 \u 0439 \u 0438 \u 043B \u 0438 \u 0442 \u 0435 \u 043C.",line2:" \u 0412 \u 044B \u 043C \u 043E \u 0436 \u 0435 \u 0442 \u 0435 \u 0440 \u 0435 \u 0434 \u 0430 \u 043A \u 0442 \u 0438 \u 0440 \u 043E \u 0432 \u 0430 \u 0442 \u 044C \u 0438 \u 0434 \u 043E \u 0431 \u 0430 \u 0432 \u 043B \u 044F \u 0442 \u 044C \u 0441 \u 0432 \u 043E \u 0438 \u 0441 \u 043E \u 0431 \u 0441 \u 0442 \u 0432 \u 0435 \u 043D \u 043D \u 044B \u 0435 \u 043F \u 043E \u 043B \u 044C \u 0437 \u 043E \u 0
path does not include _templates /
limit 300
show urgency ` }},recurringTasks:{heading:" \u 041F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 044E \u 0432 \u 0430 \u 043D \u 0456 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0456",nextLine:{description:" \u 0423 \u 0432 \u 0456 \u 043C \u 043A \u 043D \u 0435 \u 043D \u 043D \u 044F \u 0446 \u 044C \u 043E \u 0433 \u 043E \u 043F \u 0430 \u 0440 \u 0430 \u 043C \u 0435 \u 0442 \u 0440 \u 0430 \u 0437 \u 043C \u 0443 \u 0441 \u 0438 \u 0442 \u 044C \u 043D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 043D \u 044F \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0456 \u 0437 \u 2019 \u 044F \u 0432 \u 043B \u 044F \u 0442 \u 0438 \u 0441 \u 044F \u 043D \u 0430 \u 0440 \u 044F \u 0434 \u 043A \u 0443 \u 043D \u 0438 \u 0436 \u 0447 \u 0435 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0435 \u 043D \u 043E \u 0457 \u 0437 \u 0430 \u 0434 \u 0430 \u 0447 \u 0456. \u 0406 \u 043D \u 0430 \u 043A \u 0448 \u 0435 \u 043D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 043D \u 044F \u 0437 \u 2019 \u 044F \u 0432 \u 0438 \u 0442 \u 044C \u 0441 \u 044F \u 043F \u 0435 \u 0440 \u 0435 \u 0434 \u 0437 \u 0430 \u 0432 \u 0435 \u 0440 \u 0448 \u 0435 \u 043D \u 043E \u 044E.",name:" \u 041D \u 0430 \u 0441 \u 0442 \u 0443 \u 043F \u 043D \u 0435 \u 043F \u 043E \u 0432 \u 0442 \u 043E \u 0440 \u 0435 \u 043D \u 043D \u 044F \u 0437 \u 2019 \u 044F \u 0432 \u 043B \u 044F \u 0454 \u 0442 \u 044C \u 0441 \u 044F \u 043D \u 0430 \u 0440 \u 044F \u 0434 \u 043A \u 0443 \u 043D \u 0438 \u 0436 \u 0447 \u 0435"}},seeTheDocumentation:" \u 041F \u 0435 \u 0440 \u 0435 \u 0433 \u 043B \u 044F \u 043D \u 0443 \u 0442 \u 0438 \u 0434 \u 043E \u 043A \u 0443 \u 043C \u 0435 \u 043D \u 0442 \u 0430 \u 0446 \u 0456 \u 044E",statuses:{collections:{anuppuccinTheme:" \u 0422 \u 0435 \u 043C \u 0430 AnuPpuccin",auraTheme:" \u 0422 \u 0435 \u 043C \u 0430 Aura",borderTheme:" \u 0422 \u 0435 \u 043C \u 0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u 0414 \u 043E \u 0434 \u 0430 \u 0442 \u 0438 {{numberOfStatuses}} \u 043F \u 0456 \u 0434 \u 0442 \u 0440 \u 0438 \u 043C \u 0443 \u 0432 \u 0430 \u 043D \u 0438 \u 0445 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0456 \u 0432"}},ebullientworksTheme:" \u 0422 \u 0435 \u 043C \u 0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:" \u 0422 \u 0435 \u 043C \u 0430 ITS \u 0456 \u 043F \u 0440 \u 0430 \u 043F \u 043E \u 0440 \u 0446 \u 0456 SlRvb",lytModeTheme:" \u 0422 \u 0435 \u 043C \u 0430 LYT Mode ( \u 043B \u 0438 \u 0448 \u 0435 \u 0442 \u 0435 \u 043C \u 043D \u 0438 \u 0439 \u 0440 \u 0435 \u 0436 \u 0438 \u 043C)",minimalTheme:" \u 041C \u 0456 \u 043D \u 0456 \u 043C \u 0430 \u 043B \u 044C \u 043D \u 0430 \u 0442 \u 0435 \u 043C \u 0430",thingsTheme:" \u 0422 \u 0435 \u 043C \u 0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:" \u 041F \u 0435 \u 0440 \u 0435 \u 0433 \u 043B \u 044F \u 043D \u 0443 \u 0442 \u 0438 \u 0442 \u 0430 \u 043F \u 0435 \u 0440 \u 0435 \u 0432 \u 0456 \u 0440 \u 0438 \u 0442 \u 0438 \u 0432 \u 0430 \u 0448 \u 0456 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0438",tooltip:" \u 0421 \u 0442 \u 0432 \u 043E \u 0440 \u 0456 \u 0442 \u 044C \u 043D \u 043E \u 0432 \u 0438 \u 0439 \u 0444 \u 0430 \u 0439 \u 043B \u 0443 \u 043A \u 043E \u 0440 \u 0435 \u 043D \u 0456 \u 0441 \u 0445 \u 043E \u 0432 \u 0438 \u 0449 \u 0430, \u 0449 \u 043E \u 043C \u 0456 \u 0441 \u 0442 \u 0438 \u 0442 \u 044C \u 0434 \u 0456 \u 0430 \u 0433 \u 0440 \u 0430 \u 043C \u 0443 Mermaid \u 043F \u 043E \u 0442 \u 043E \u 0447 \u 043D \u 0438 \u 0445 \u 043D \u 0430 \u 043B \u 0430 \u 0448 \u 0442 \u 0443 \u 0432 \u 0430 \u 043D \u 044C \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0443."}},description:{line1:" \u 0426 \u 0435 \u 043E \u 0441 \u 043D \u 043E \u 0432 \u 043D \u 0456 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0438, \u 044F \u 043A \u 0456 Tasks \u 043F \u 0456 \u 0434 \u 0442 \u 0440 \u 0438 \u 043C \u 0443 \u 0454 \u 043D \u 0430 \u 0442 \u 0438 \u 0432 \u 043D \u 043E, \u 0431 \u 0435 \u 0437 \u 043F \u 043E \u 0442 \u 0440 \u 0435 \u 0431 \u 0438 \u 0432 \u 043A \u 043E \u 0440 \u 0438 \u 0441 \u 0442 \u 0443 \u 0432 \u 0430 \u 0446 \u 044C \u 043A \u 043E \u 043C \u 0443 CSS- \u 0441 \u 0442 \u 0438 \u 043B \u 044E \u 0432 \u 0430 \u 043D \u 043D \u 0456 \u 0447 \u 0438 \u 0442 \u 0435 \u 043C \u 0430 \u 0445.",line2:" \u 0412 \u 0438 \u 043C \u 043E \u 0436 \u 0435 \u 0442 \u 0435 \u 0434 \u 043E \u 0434 \u 0430 \u 0432 \u 0430 \u 0442 \u 0438, \u 0440 \u 0435 \u 0434 \u 0430 \u 0433 \u 0443 \u 0432 \u 0430 \u 0442 \u 0438 \u 0442 \u 0430 \u 0434 \u 043E \u 0434 \u 0430 \u 0432 \u 0430 \u 0442 \u 0438 \u 0432 \u 043B \u 0430 \u 0441 \u 043D \u 0456 \u 043A \u 043E \u 0440 \u 0438 \u 0441 \u 0442 \u 0443 \u 0432 \u 0430 \u 0446 \u 044C \u 043A \u 0456 \u 0441 \u 0442 \u 0430 \u 0442 \u 0443 \u 0441 \u 0438 \u 0432 \u 0440 \u 043E \u 0437 \u 0434 \u 0456 \u 043B \u 0456 \u 043D \u 0438 \u 0436 \u 0447 \u 0435."},heading:" \u 041E \u 0441 \u 043D \u 043E \u 0432 \u 0
path does not include _templates /
limit 300
show urgency ` }},recurringTasks:{heading:" \u 91CD \u 590D \u 6027 \u 4EFB \u 52A1",nextLine:{description:" \u 542F \u 7528 \u 6B64 \u 529F \u 80FD \u 540E \u FF0C \u 4EFB \u 52A1 \u 7684 \u 4E0B \u 4E00 \u 6B21 \u 91CD \u 590D \u 5C06 \u 663E \u 793A \u 5728 \u 5DF2 \u 5B8C \u 6210 \u 4EFB \u 52A1 \u 7684 \u 4E0B \u 4E00 \u 884C \u 3002 \u 82E5 \u 5173 \u 95ED \u 6B64 \u 529F \u 80FD \u FF0C \u 5219 \u 4E0B \u 4E00 \u 6B21 \u 91CD \u 590D \u 5C06 \u 51FA \u 73B0 \u 5728 \u 5DF2 \u 5B8C \u 6210 \u 4EFB \u 52A1 \u 7684 \u 4E0A \u 4E00 \u 884C \u 3002",name:" \u 628A \u 4EFB \u 52A1 \u 7684 \u 4E0B \u 4E00 \u 6B21 \u 91CD \u 590D \u 653E \u 5728 \u 4E0B \u 4E00 \u 884C"}},seeTheDocumentation:" \u 53C2 \u 9605 \u 6587 \u 6863",statuses:{collections:{anuppuccinTheme:"AnuPpuccin \u 4E3B \u 9898",auraTheme:"Aura \u 4E3B \u 9898",borderTheme:"Border \u 4E3B \u 9898",buttons:{addCollection:{name:"{{themeName}}: \u 6DFB \u 52A0 {{numberOfStatuses}} \u 79CD \u 652F \u 6301 \u 72B6 \u 6001"}},ebullientworksTheme:"Ebullientworks \u 4E3B \u 9898",itsThemeAndSlrvbCheckboxes:"ITS \u 4E3B \u 9898 \u 548C SlRvb \u 590D \u 9009 \u 6846",lytModeTheme:"LYT Mode \u 4E3B \u 9898 ( \u 4EC5 \u 6DF1 \u 8272 \u 6A21 \u 5F0F)",minimalTheme:"Minimal \u 4E3B \u 9898",thingsTheme:"Things \u 4E3B \u 9898"},coreStatuses:{buttons:{checkStatuses:{name:" \u 67E5 \u 770B \u 5E76 \u 68C0 \u 67E5 \u 60A8 \u 7684 \u 72B6 \u 6001",tooltip:" \u 5728 \u 5E93 \u 7684 \u 6839 \u 76EE \u 5F55 \u 4E0B \u 521B \u 5EFA \u 4E00 \u 4E2A \u 65B0 \u 6587 \u 4EF6, \u 5305 \u 542B \u 5F53 \u 524D \u 72B6 \u 6001 \u 8BBE \u 7F6E \u 7684 Mermaid \u 56FE \u 8868."}},description:{line1:" \u 8FD9 \u 4E9B \u 662F Tasks \u 539F \u 751F \u 652F \u 6301 \u 7684 \u 6838 \u 5FC3 \u 72B6 \u 6001 \u FF0C \u 4E0D \u 9700 \u 8981 \u 81EA \u 5B9A \u 4E49CSS \u 6837 \u 5F0F \u 6216 \u 4E3B \u 9898 \u 3002",line2:" \u 60A8 \u 53EF \u 4EE5 \u 5728 \u 4E0B \u 9762 \u 7F16 \u 8F91 \u 548C \u 6DFB \u 52A0 \u 81EA \u 5B9A \u 4E49 \u 72B6 \u 6001 \u 3002"},heading:" \u 6838 \u 5FC3 \u 72B6 \u 6001"},customStatuses:{buttons:{addAllUnknown:{name:" \u 6DFB \u 52A0 \u 6240 \u 6709 \u 672A \u 77E5 \u 72B6 \u 6001 \u 7C7B \u 578B"},addNewStatus:{name:" \u 6DFB \u 52A0 \u 65B0 \u 4EFB \u 52A1 \u 72B6 \u 6001"},resetCustomStatuses:{name:" \u 91CD \u 7F6E \u 81EA \u 5B9A \u 4E49 \u 72B6 \u 6001 \u 7C7B \u 578B \u 4E3A \u 9ED8 \u 8BA4 \u 503C"}},description:{line1:" \u 60A8 \u 5E94 \u 8BE5 \u 9996 \u 5148<b> \u 9009 \u 62E9 \u 5E76 \u 5B89 \u 88C5 CSS \u 4EE3 \u 7801 \u 6BB5 \u 6216 \u 4E3B \u 9898<b> \u 4EE5 \u 8BBE \u 7F6E \u 81EA \u 5B9A \u 4E49 \u 590D \u 9009 \u 6846 \u 7684 \u 6837 \u 5F0F",line2:" \u 7136 \u 540E \u FF0C \u 4F7F \u 7528 \u 4E0B \u 9762 \u 7684 \u 6309 \u 94AE \u 8BBE \u 7F6E \u 60A8 \u 7684 \u 81EA \u 5B9A \u 4E49 \u 72B6 \u 6001, \u 4EE5 \u 5339 \u 914D \u 60A8 \u 9009 \u 62E9 \u 7684CSS \u 590D \u 9009 \u 6846.",line3:"<b> \u 6CE8 \u 610F</b> \u 4EFB \u 4F55 \u 4E0E \u 66F4 \u 65E9 \u 7684 \u 72B6 \u 6001 \u 5177 \u 6709 \u 76F8 \u 540C \u 7B26 \u 53F7 \u 7684 \u 72B6 \u 6001 \u 90FD \u 5C06 \u 88AB \u 5FFD \u 7565. \u 60A8 \u 53EF \u 4EE5 \u 901A \u 8FC7 \u 8FD0 \u 884C \u 201CCreate or edit task \u 201D \u 547D \u 4EE4 \u 5E76 \u 67E5 \u 770B \u 201CStatus \u 201D \u 4E0B \u 62C9 \u 5217 \u 8868 \u 6765 \u 786E \u 8BA4 \u 5B9E \u 9645 \u 52A0 \u 8F7D \u 7684 \u 72B6 \u 6001 \u 3002",line4:" \u 53C2 \u 9605 \u 6587 \u 6863 \u FF01"},heading:" \u 81EA \u 5B9A \u 4E49 \u 72B6 \u 6001"},heading:" \u 4EFB \u 52A1 \u 72B6 \u 6001"}}}});var jf,Zx,zb,N,gs=ee(()=>{"use strict";Lb();Ub();jb(); $ b();Hb();Bb();jf=!1,Zx=()=>{let n=localStorage.getItem("language"),t=(n==null?void 0:n.toLowerCase())||"en";return console.log( ` Language in Obsidian settings : '${t}' ; requesting Tasks in '${t}' . ` ),t},zb=()=>L(void 0,null,function*(){jf||(yield yt.init({lng:Zx(),fallbackLng:"en",returnEmptyString:!1,resources:{be:{translation:Yb},en:{translation:Wb},ru:{translation:qb},uk:{translation:Gb},zh:{translation:Vb}},interpolation:{escapeValue:!1}}),jf=!0)}),N=new Proxy(yt,{get(n,t){if(!jf&&t==="t")throw new Error("i18n.t() called before initialization. Call initializeI18n() first.");return Reflect.get(n,t)}})});var kn,ce,ii=ee(()=>{"use strict";kn=class{},ce=kn;ce.dateFormat="YYYY-MM-DD",ce.dateTimeFormat="YYYY-MM-DD HH:mm",ce.indentationRegex=/^([ \s \t >]*)/,ce.listMarkerRegex=/([-*+]|[0-9]+ \. )/,ce.checkboxRegex=/ \[ (.) \] /u,ce.afterCheckboxRegex=/ *(.*)/u,ce.taskRegex=new RegExp(kn.indentationRegex.source+kn.listMarkerRegex.source+" +"+kn.checkboxRegex.source+kn.afterCheckboxRegex.source,"u"),ce.nonTaskRegex=new RegExp(kn.indentationRegex.source+kn.listMarkerRegex.source+"? *("+kn.checkboxRegex.source+")?"+kn.afterCheckboxRegex.source,"u"),ce.listItemRegex=new RegExp(kn.indenta
` ).map(AL).filter(function(e){return e!==null});return Pt(Pt({},t[0]),t[1])}function Xl(n){var t={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^; \s ]+)/i.exec(n);if(!e)return t;var r=e[1],i=e[2];return r&&(t.tzid=r),t.dtstart=Vl(i),t}function AL(n){if(n=n.replace(/^ \s +| \s + $ /,""),!n.length)return null;var t=/^([A-Z]+?)[:;]/.exec(n.toUpperCase());if(!t)return Hk(n);var e=t[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return Hk(n);case"DTSTART":return Xl(n);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(n))}}function Hk(n){var t=n.replace(/^RRULE:/i,""),e=Xl(t),r=n.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return r.forEach(function(i){var s=i.split("="),a=s[0],o=s[1];switch(a.toUpperCase()){case"FREQ":e.freq=Ae[o.toUpperCase()];break;case"WKST":e.wkst=Jn[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=PL(o),u=a.toLowerCase();e[u]=l;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=NL(o);break;case"DTSTART":case"TZID":var c=Xl(n);e.tzid=c.tzid,e.dtstart=c.dtstart;break;case"UNTIL":e.until=Vl(o);break;case"BYEASTER":e.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+a+"'")}}),e}function PL(n){if(n.indexOf(",")!==-1){var t=n.split(",");return t.map(Gk)}return Gk(n)}function Gk(n){return/^[+-]? \d + $ /.test(n)?Number(n):n}function NL(n){var t=n.split(",");return t.map(function(e){if(e.length===2)return Jn[e];var r=e.match(/^([+-]? \d {1,2})([A-Z]{2}) $ /);if(!r||r.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var i=Number(r[1]),s=r[2],a=Jn[s].weekday;return new dt(a,i)})}var qg=ee(()=>{yi();bi();Ms(); $ t();Zn()});var Ns,Hc=ee(()=>{ $ t();Ns=function(){function n(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(n.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var t=Fa(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},n.prototype.getTime=function(){return this.date.getTime()},n.prototype.rezonedDate=function(){return this.isUTC?this.date:Rk(this.date,this.tzid)},n}()});function Jl(n){for(var t=[],e="",r=Object.keys(n),i=Object.keys(Ql),s=0;s<r.length;s++)if(r[s]!=="tzid"&&!!Ie(i,r[s])){var a=r[s].toUpperCase(),o=n[r[s]],l="";if(!(!Je(o)||At(o)&&!o.length)){switch(a){case"FREQ":l=ae.FREQUENCIES[n.freq];break;case"WKST":On(o)?l=new dt(o).toString():l=o.toString();break;case"BYWEEKDAY":a="BYDAY",l=Ek(o).map(function(p){return p instanceof dt?p:At(p)?new dt(p[0],p[1]):new dt(p)}).toString();break;case"DTSTART":e=IL(o,n.tzid);break;case"UNTIL":l=Fa(o,!n.tzid);break;default:if(At(o)){for(var u=[],c=0;c<o.length;c++)u[c]=String(o[c]);l=u.toString()}else l=String(o)}l&&t.push([a,l])}}var d=t.map(function(p){var b=p[0],T=p[1];return"".concat(b,"=").concat(T.toString())}).join(";"),f="";return d!==""&&(f="RRULE:".concat(d)),[e,f].filter(function(p){return!!p}).join( `
` )}function IL(n,t){return n?"DTSTART"+new Ns(new Date(n),t).toString():""}var Hg=ee(()=>{Zn();en();Ms(); $ t();Hc()});function FL(n,t){return Array.isArray(n)?!Array.isArray(t)||n.length!==t.length?!1:n.every(function(e,r){return e.getTime()===t[r].getTime()}):n instanceof Date?t instanceof Date&&n.getTime()===t.getTime():n===t}var Bk,Vk=ee(()=>{Wc(); $ t();en();Bk=function(){function n(){this.all=!1,this.before=[],this.after=[],this.between=[]}return n.prototype._cacheAdd=function(t,e,r){e&&(e=e instanceof Date?jc(e):Ug(e)),t==="all"?this.all=e:(r._value=e,this[t].push(r))},n.prototype._cacheGet=function(t,e){var r=!1,i=e?Object.keys(e):[],s=function(c){for(var d=0;d<i.length;d++){var f=i[d];if(!FL(e[f],c[f]))return!0}return!1},a=this[t];if(t==="all")r=this.all;else if(At(a))for(var o=0;o<a.length;o++){var l=a[o];if(!(i.length&&s(l))){r=l._value;break}}if(!r&&this.all){for(var u=new gi(t,e),o=0;o<this.all.length&&u.accept(this.all[o]);o++);r=u.getValue(),this._cacheAdd(t,r,e)}return At(r)?Ug(r):r instanceof Date?jc(r):r},n}()});var zk,Kk,LL,UL,Wi,qt,Qk,Xk,YL,jL, $ i,Ht,Zk,Jk,eS,tS,Gg,nS=ee(()=>{yi();en();zk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ne(1,31),!0),Ne(2,28),!0),Ne(3,31),!0),Ne(4,30),!0),Ne(5,31),!0),Ne(6,30),!0),Ne(7,31),!0),Ne(8,31),!0),Ne(9,30),!0),Ne(10,31),!0),Ne(11,30),!0),Ne(12,31),!0),Ne(1,7),!0),Kk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ne(1,31),!0),Ne(2,29),!0),Ne(3,31),!0),Ne(4,30),!0),Ne(5,31),!0),Ne(6,30),!0),Ne(7,31),!0),Ne(8,31),!0),Ne(9,30),!0),Ne(10,31),!0),Ne(11,30),!0),Ne(12,31),!0),Ne(1,7),!0),LL=Xn(1,29),UL=Xn(1,30),Wi=Xn(1,31),qt=Xn(1,32),Qk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],qt,!0),UL,!0),qt,!0),Wi,!0),qt,!0),Wi,!0),qt,!0),qt,!0),Wi,!0),qt,!0),Wi,!0),qt,!0),qt.slice(0,7),!0),Xk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],qt,!0),LL,!0),qt,!0),Wi,!0),qt,!0),Wi,!0),qt,!0),qt,!0),Wi,!0),qt,!0),Wi,!0),qt,!0),qt.slice(0,7),!0),YL=Xn(-28,0),jL=Xn(-29,0), $ i=Xn(-30,0),Ht=Xn(-31,0),Zk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ht,!0),jL,!0),Ht,!0), $ i,!0),Ht,!0), $ i,!0),Ht,!0),Ht,!0), $ i,!0),Ht,!0), $ i,!0),Ht,!0),Ht.slice(0,7),!0),Jk=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ht,!0),YL,!0),Ht,!0), $ i,!0),Ht,!0), $ i,!0),Ht,!0),Ht,!0), $ i,!0),Ht,!0), $ i,!0),Ht,!0),Ht.slice(0,7),!0),eS=[0,31,60,91,121,152,182,213,244,274,305,335,366],tS=[0,31,59,90,120,151,181,212,243,273,304,334,365],Gg=function(){for(var n=[],t=0;t<55;t++)n=n.concat(Xn(7));return n}()});function rS(n,t){var e=Hr(n,1,1),r=Ia(n)?366:365,i=Ia(n+1)?366:365,s=Bl(e),a=mi(e),o=Pt(Pt({yearlen:r,nextyearlen:i,yearordinal:s,yearweekday:a},WL(n)),{wnomask:null});if(Cn(t.byweekno))return o;o.wnomask=Ne(0,r+7);var l,u,c=l=Wt(7-a+t.wkst,7);c>=4?(c=0,u=o.yearlen+Wt(a-t.wkst,7)):u=r-c;for(var d=Math.floor(u/7),f=Wt(u,7),p=Math.floor(d+f/4),b=0;b<t.byweekno.length;b++){var T=t.byweekno[b];if(T<0&&(T+=p+1),T>0&&T<=p){var _=void 0;T>1?(_=c+(T-1)*7,c!==l&&(_-=7-l)):_=c;for(var O=0;O<7&&(o.wnomask[_]=1,_++,o.wdaymask[_]!==t.wkst);O++);}}if(Ie(t.byweekno,1)){var _=c+p*7;if(c!==l&&(_-=7-l),_<r)for(var b=0;b<7&&(o.wnomask[_]=1,_+=1,o.wdaymask[_]!==t.wkst);b++);}if(c){var D=void 0;if(Ie(t.byweekno,-1))D=-1;else{var A=mi(Hr(n-1,1,1)),Y=Wt(7-A.valueOf()+t.wkst,7),q=Ia(n-1)?366:365,se=void 0;Y>=4?(Y=0,se=q+Wt(A-t.wkst,7)):se=r-c,D=Math.floor(52+Wt(se,7)/4)}if(Ie(t.byweekno,D))for(var _=0;_<c;_++)o.wnomask[_]=1}return o}function WL(n){var t=Ia(n)?366:365,e=Hr(n,1,1),r=mi(e);return t===365?{mmask:zk,mdaymask:Xk,nmdaymask:Jk,wdaymask:Gg.slice(r),mrange:tS}:{mmask:Kk,mdaymask:Qk,nmdaymask:Zk,wdaymask:Gg.slice(r),mrange:eS}}var iS=ee(()=>{yi(); $ t();en();nS()});function sS(n,t,e,r,i,s){var a={lastyear:n,lastmonth:t,nwdaymask:[]},o=[];if(s.freq===ae.YEARLY)if(Cn(s.bymonth))o=[[0,e]];else for(var l=0;l<s.bymonth.length;l++)t=s.bymonth[l],o.push(r.slice(t-1,t+1));else s.freq===ae.MONTHLY&&(o=[r.slice(t-1,t+1)]);if(Cn(o))return a;a.nwdaymask=Ne(0,e);for(var l=0;l<o.length;l++)for(var u=o[l],c=u[0],d=u[1]-1,f=0;f<s.bynweekday.length;f++){var p=void 0,b=s.bynweekday[f],T=b[0],_=b[1];_<0?(p=d+(_+1)*7,p-=Wt(i[p]-T,7)):(p=c+(_-1)*7,p+=Wt(7-i[p]+T,7)),c<=p&&p<=d&&(a.nwdaymask[p]=1)}return a}var aS=ee(()=>{Zn();en()});function oS(n,t){t===void 0&&(t=0);var
` ),r=0;r<e.length;){var i=e[r]=e[r].replace(/ \s + $ /g,"");i?r>0&&i[0]===" "?(e[r-1]+=i.slice(1),e.splice(r,1)):r+=1:e.splice(r,1)}return e}function ZL(n){n.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function yS(n,t){return ZL(t),n.split(",").map(function(e){return Vl(e)})}var gS,zg=ee(()=>{yi();Zn();Qg(); $ t();en();qg();gS={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null}});function bS(n){var t=this;return function(e){if(e!==void 0&&(t["_".concat(n)]=e),t["_".concat(n)]!==void 0)return t["_".concat(n)];for(var r=0;r<t._rrule.length;r++){var i=t._rrule[r].origOptions[n];if(i)return i}}}function TS(n,t){if(!(n instanceof ae))throw new TypeError(String(n)+" is not RRule instance");Ie(t.map(String),String(n))||t.push(n)}function _S(n,t){if(!(n instanceof Date))throw new TypeError(String(n)+" is not Date instance");Ie(t.map(Number),Number(n))||(t.push(n),hi(t))}function vS(n,t,e){var r=!e||e.toUpperCase()==="UTC",i=r?"".concat(n,":"):"".concat(n,";TZID=").concat(e,":"),s=t.map(function(a){return Fa(a.valueOf(),r)}).join(",");return"".concat(i).concat(s)}var Kg,Qg=ee(()=>{yi();Zn(); $ t();en();hS();zg();Hg();Kg=function(n){La(t,n);function t(e){e===void 0&&(e=!1);var r=n.call(this,{},e)||this;return r.dtstart=bS.apply(r,["dtstart"]),r.tzid=bS.apply(r,["tzid"]),r._rrule=[],r._rdate=[],r._exrule=[],r._exdate=[],r}return t.prototype._iter=function(e){return mS(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){TS(e,this._rrule)},t.prototype.exrule=function(e){TS(e,this._exrule)},t.prototype.rdate=function(e){_S(e,this._rdate)},t.prototype.exdate=function(e){_S(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return Bc(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return Bc(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(Jl({dtstart:this._dtstart}))),this._rrule.forEach(function(r){e=e.concat(r.toString().split( `
` ))}),this._exrule.forEach(function(r){e=e.concat(r.toString().split( `
` ).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&e.push(vS("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(vS("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join( `
` )},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(r){return e.rrule(r.clone())}),this._exrule.forEach(function(r){return e.exrule(r.clone())}),this._rdate.forEach(function(r){return e.rdate(new Date(r.getTime()))}),this._exdate.forEach(function(r){return e.exdate(new Date(r.getTime()))}),e},t}(ae)});var wS=ee(()=>{Zn();Qg();zg();bi();Ms(); $ t()});var Et,Vc=ee(()=>{"use strict";wS();Et=class{constructor({rrule:t,baseOnToday:e,occurrence:r}){this.rrule=t,this.baseOnToday=e,this.occurrence=r}static fromText({recurrenceRuleText:t,occurrence:e}){try{let r=t.match(/^([a-zA-Z0-9, !]+?)( when done)? $ /i);if(r==null)return null;let i=r[1].trim(),s=r[2]!==void 0,a=ae.parseText(i);if(a!==null){let o=e.referenceDate;!s&&o!==null?a.dtstart=window.moment(o).startOf("day").utc(!0).toDate():a.dtstart=window.moment().startOf("day").utc(!0).toDate();let l=new ae(a);return new Et({rrule:l,baseOnToday:s,occurrence:e})}}catch(r){r instanceof Error&&console.log(r.message)}return null}toText(){let t=this.rrule.toText();return this.baseOnToday&&(t+=" when done"),t}next(t=window.moment()){let e=this.nextReferenceDate(t);return e===null?null:this.occurrence.next(e)}identicalTo(t){return this.baseOnToday!==t.baseOnToday||!this.occurrence.isIdenticalTo(t.occurrence)?!1:this.toText()===t.toText()}nextReferenceDate(t){return this.baseOnToday?this.nextReferenceDateFromToday(t.clone()).toDate():this.nextReferenceDateFromOriginalReferenceDate().toDate()}nextReferenceDateFromToday(t){let e=new ae(me(U({},this.rrule.origOptions),{dtstart:t.startOf("day").utc(!0).toDate()}));return this.nextAfter(t.endOf("day"),e)}nextReferenceDateFromOriginalReferenceDate(){var e;let t=window.moment((e=this.occurrence.referenceDate)!=null?e:void 0).endOf("day");return this.nextAfter(t,this.rrule)}nextAfter(t,e){t.utc(!0);let r=window.moment.utc(e.after(t.toDate())),i=this.toText(),s=i.match(/every( \d +)? month(s)?(.*)?/);s!==null&&(i.includes(" on ")||(r=Et.nextAfterMonths(t,r,e,s[1])));let a=i.match(/every( \d +)? year(s)?(.*)?/);return a!==null&&(r=Et.nextAfterYears(t,r,e,a[1])),Et.addTimezone(r)}static nextAfterMonths(t,e,r,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Et.isSkippingTooManyMonths(t,e,s);)e=Et.fromOneDayEarlier(t,r);return e}static isSkippingTooManyMonths(t,e,r){let i=e.month()-t.month();return i+=(e.year()-t.year())*12,i>r}static nextAfterYears(t,e,r,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Et.isSkippingTooManyYears(t,e,s);)e=Et.fromOneDayEarlier(t,r);return e}static isSkippingTooManyYears(t,e,r){return e.year()-t.year()>r}static fromOneDayEarlier(t,e){t.subtract(1,"days").endOf("day");let r=e.origOptions;return r.dtstart=t.startOf("day").toDate(),e=new ae(r),window.moment.utc(e.after(t.toDate()))}static addTimezone(t){return window.moment.utc(t).set({hour:12,minute:0,second:0,millisecond:0}).local(!0).startOf("day")}}});function kS(n,t,e){let r=new Map([["cancelled date","cancelledDate"],["created date","createdDate"],["depends on","dependsOn"],["done date","doneDate"],["due date","dueDate"],["id","id"],["on completion","onCompletion"],["priority","priority"],["recurrence rule","recurrenceRule"],["scheduled date","scheduledDate"],["start date","startDate"]]);for(let[i,s]of r.entries())if(t.startsWith(i))return n.setVisibility(s,e),!0;return t.startsWith("tags")?(n.setTagsVisibility(e),!0):!1}var eu,zc,Br,Is=ee(()=>{"use strict";eu=(p=>(p.Description="description",p.Id="id",p.DependsOn="dependsOn",p.Priority="priority",p.RecurrenceRule="recurrenceRule",p.OnCompletion="onCompletion",p.CreatedDate="createdDate",p.StartDate="startDate",p.ScheduledDate="scheduledDate",p.DueDate="dueDate",p.CancelledDate="cancelledDate",p.DoneDate="doneDate",p.BlockLink="blockLink",p))(eu||{}),zc=Object.values(eu),Br=class{constructor(){this.visible={};this.tagsVisible=!0;zc.forEach(t=>{this.visible[t]=!0})}isShown(t){return this.visible[t]}areTagsShown(){return this.tagsVisible}hide(t){this.visible[t]=!1}setVisibility(t,e){this.visible[t]=e}setTagsVisibility(t){this.tagsVisible=t}get shownComponent
` })),c=c.slice(0,a.autoSuggestMaxItems),c}}function s2(n,t,e){let r=y2(t.substring(0,e),[["(",")"],["[","]"]])=="("?")":"]",i=n?r+" ":" ",s=n&&t.length>e&&t.charAt(e)===r?1:0;return{postfix:i,insertSkip:s}}function a2(n,t,e){let r=[],i=e.line;Ys(r,i,n.dueDateSymbol,"due date"),Ys(r,i,n.startDateSymbol,"start date"),Ys(r,i,n.scheduledDateSymbol,"scheduled date"),o2(r,n,e),Ys(r,i,n.recurrenceSymbol,"recurring (repeat)"),l2(r,n,e),RS(t)&&(Ys(r,i,n.idSymbol,"id"),Ys(r,i,n.dependsOnSymbol,"depends on id")),Ys(r,i,n.onCompletionSymbol,"on completion");let s=u2(r,e);return s.length===0&&e.settings.autoSuggestMinMatch===0?r:s}function Ys(n,t,e,r){t.includes(e)||n.push({displayText: ` $ { e } $ { r } ` ,appendText: ` $ { e } ` })}function o2(n,t,e){if(!(i=>Object.values(t.prioritySymbols).some(s=>s.length>0&&i.includes(s)))(e.line)){let i=t.prioritySymbols,s=["High","Medium","Low","Highest","Lowest"];for(let a of s){let o=i[a];n.push({displayText:e.dataviewMode? ` $ { o } priority ` : ` $ { o } $ { a . toLowerCase ( ) } priority ` ,appendText: ` $ { o } $ { e . postfix } ` ,insertSkip:e.dataviewMode?e.insertSkip:void 0})}}}function l2(n,t,e){if(!e.line.includes(t.createdDateSymbol)){let i=xn.parseDate("today",!0).format(ce.dateFormat);n.push({textToMatch: ` $ { t . createdDateSymbol } created ` ,displayText: ` $ { t . createdDateSymbol } created today ( $ { i } ) ` ,appendText: ` $ { t . createdDateSymbol } $ { i } ` +e.postfix,insertSkip:e.dataviewMode?e.insertSkip:void 0})}}function u2(n,t){let e=Ha(/([a-zA-Z'_-]*)/g,t),r=[];if(e&&e.length>0){let i=e[0];if(i.length>=Math.max(1,t.settings.autoSuggestMinMatch)){let s=n.filter(a=>{var l;return((l=a.textToMatch)!=null?l:a.displayText).toLowerCase().includes(i.toLowerCase())});for(let a of s){let o=t.dataviewMode&&(a.displayText.includes("priority")||a.displayText.includes("created"))?i.length+t.insertSkip:i.length;r.push({suggestionType:"match",displayText:a.displayText,appendText:a.appendText,insertAt:e.index,insertSkip:o})}}}return r}function AS(n,t){let e= ` $ { t } ` ,r= ` $ { n } $ { t } ` ;return{displayText:e,appendText:r}}function c2(n,t){let r= ` $ { xn . parseDate ( t , ! 0 ) . format ( ce . dateFormat ) } ` ,i= ` $ { t } ( $ { r } ) ` ,s= ` $ { n } $ { r } ` ;return{displayText:i,appendText:s}}function d2(n,t,e){let r=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],i=[],s=new RegExp( ` ( $ { n } ) \ \ s * ( [ 0 - 9 a - zA - Z ] * ) ` ,"ug"),a=Ha(s,e);if(a&&a.length>=2){let o=a[2];if(o.length<e.settings.autoSuggestMinMatch)return[];let l=o&&o.length>1?xn.parseDate(Pc(o),!0):null;if(l!=null&&l.isValid()){let c=l.format(ce.dateFormat);td(e,a,[c],AS,i)}let u=ty(r,o,t,!0);td(e,a,u,c2,i)}return i}function f2(n,t){var a;let e=["every","every day","every week","every month","every month on the","every year","every week on Sunday","every week on Monday","every week on Tuesday","every week on Wednesday","every week on Thursday","every week on Friday","every week on Saturday"],r=[],i=new RegExp( ` ( $ { n } ) \ \ s * ( [ 0 - 9 a - zA - Z ] * ) ` ,"ug"),s=Ha(i,t);if(s&&s.length>=2){let o=s[1],l=s[2];if(l.length<t.settings.autoSuggestMinMatch)return[];if(l.length>0){let f=(a=Et.fromText({recurrenceRuleText:l,occurrence:new Qn({startDate:null,scheduledDate:null,dueDate:null})}))==null?void 0:a.toText();if(f){let p= ` $ { o } $ { f } ` +t.postfix;if(r.push({suggestionType:"match",displayText: ` \u2705 $ { f } ` ,appendText:p,insertAt:s.index,insertSkip:ny(s[0],t)}),s[0]==p)return[]}}let u=t.settings.autoSuggestMaxItems/2,c=ty(e,l,u,!1);c.length===0&&l.trim().length===0&&(c=e.slice(0,u)),td(t,s,c,(f,p)=>{let b= ` $ { p } ` ,T= ` $ { f } $ { p } ` ;return{displayText:b,appendText:T}},r)}return r}function p2(n,t,e){let r=["delete","keep"],i=[],s=new RegExp( ` ( $ { n } ) \ \ s * ( [ 0 - 9 a - zA - Z ] * ) ` ,"ug"),a=Ha(s,e);if(a&&a.length>=2){let o=a[2];if(o.length<e.settings.autoSuggestMinMatch)return[];let l=ty(r,o,t,!0);td(e,a,l,AS,i)}return i}function m2(n,t,e){let r=[],i=new RegExp( ` ( $ { n } ) \ \ s * ( $ { Fs . source } ) ? ` ,"ug"),s=Ha(i,e);if(s&&s[0].trim().length<=n.length){let a=ru(t.map(o=>o.id));r.push({suggestionType:"match",displayText:"generate unique id",appendText: ` $ { n } $ { a } ` +e.postfix,insertAt:s.index,insertSkip:ny(s[0],e)})}return r}function h2(n,t,e,r){let
\ ` \` \` ${ r }
flowchart LR
classDef TODO stroke : # f33 , stroke - width : 3 px ;
classDef DONE stroke : # 0 c0 , stroke - width : 3 px ;
classDef IN _PROGRESS stroke : # fa0 , stroke - width : 3 px ;
classDef CANCELLED stroke : # ddd , stroke - width : 3 px ;
classDef NON _TASK stroke : # 99 e , stroke - width : 3 px ;
$ { i . join ( `
` )}
$ { s . join ( `
` )}
linkStyle default stroke : gray
\ ` \` \`
` }addEdgeIfNotToInternal(t,e,r,i,s){let a=t.findIndex(u=>u.symbol===e.symbol),o=a!==-1,l=e.type!=="EMPTY";if(o&&l){let u;s?u='-. " \u {1F501}" .-> ':u=" --> ";let c= ` $ { i + 1 } $ { u } $ { a + 1 } ` ;r.push(c)}}getMermaidNodeLabel(t,e){let r=WS(t.name),i=t.type;if(e){let s=id(t.symbol),a=id(t.nextStatusSymbol),o= ` [ $ { s } ] - > [ $ { a } ] ` ,l= ` '${r}' ` ,u= ` ( $ { i } ) ` ;return ` [ "${l}<br>${o}<br>${u}" ] : : : $ { i } ` }else return ` [ "${r}" ] : : : $ { i } ` }}});var Vr,qS=ee(()=>{"use strict";Vr=class{constructor(t,e){this.name=t,this.sortOrder=e}get groupText(){return this.name!==""? ` % % $ { this . sortOrder } % % $ { this . name } ` :""}}});var HS,It,sd=ee(()=>{"use strict";HS=require("obsidian");qS();ii();It=class{constructor(t){this._date=null;this._date=t}get moment(){return this._date}formatAsDate(t=""){return this.format(ce.dateFormat,t)}formatAsDateAndTime(t=""){return this.format(ce.dateTimeFormat,t)}format(t,e=""){return this._date?this._date.format(t):e}toISOString(t){return this._date?this._date.toISOString(t):""}get category(){let t=window.moment(),e=this.moment;return e?e.isBefore(t,"day")?new Vr("Overdue",1):e.isSame(t,"day")?new Vr("Today",2):e.isValid()?new Vr("Future",3):new Vr("Invalid date",0):new Vr("Undated",4)}get fromNow(){let t=this.moment;if(!t)return new Vr("",0);let e=this.fromNowOrder(t);return new Vr(t.fromNow(),e)}fromNowOrder(t){if(!t.isValid())return 0;let e=window.moment(),r=t.isSameOrBefore(e,"day"),i=this.fromNowStartDateOfGroup(t,r,e);return Number((r?1:3)+i.format("YYYYMMDD"))}fromNowStartDateOfGroup(t,e,r){let i=t.fromNow(!0).split(" "),s,a=Number(i[0]);isNaN(a)?s=1:s=a;let o=i[1];return e?r.subtract(s,o):r.add(s,o)}postpone(t="days",e=1){if(!this._date)throw new HS.Notice("Cannot postpone a null date");let r=window.moment().startOf("day");return this._date.isSameOrAfter(r,"day")?this._date.clone().add(e,t):r.add(e,t)}}});var VS=x((GS,BS)=>{(function(n){var t=Object.hasOwnProperty,e=Array.isArray?Array.isArray:function(y){return Object.prototype.toString.call(y)==="[object Array]"},r=10,i=typeof process=="object"&&typeof process.nextTick=="function",s=typeof Symbol=="function",a=typeof Reflect=="object",o=typeof setImmediate=="function",l=o?setImmediate:setTimeout,u=s?a&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(m){var y=Object.getOwnPropertyNames(m);return y.push.apply(y,Object.getOwnPropertySymbols(m)),y}:Object.keys;function c(){this._events={},this._conf&&d.call(this,this._conf)}function d(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={}))}function f(m,y){var v="(node) warning: possible EventEmitter memory leak detected. "+m+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(v+=" Event name: "+y+"."),typeof process!="undefined"&&process.emitWarning){var w=new Error(v);w.name="MaxListenersExceededWarning",w.emitter=this,w.count=m,process.emitWarning(w)}else console.error(v),console.trace&&console.trace()}var p=function(m,y,v){var w=arguments.length;switch(w){case 0:return[];case 1:return[m];case 2:return[m,y];case 3:return[m,y,v];default:for(var S=new Array(w);w--;)S[w]=arguments[w];return S}};function b(m,y){for(var v={},w,S=m.length,M=y?y.length:0,I=0;I<S;I++)w=m[I],v[w]=I<M?y[I]:n;return v}function T(m,y,v){this._emitter=m,this._target=y,this._listeners={},this._listenersCount=0;var w,S;if((v.on||v.off)&&(w=v.on,S=v.off),y.addEventListener?(w=y.addEventListener,S=y.removeEventListener):y.addListener?(w=y.addListener,S=y.removeListener):y.on&&(w=y.on,S=y.off),!w&&!S)throw Error("target does not implement any known event API");if(typeof w!="function")throw TypeError("on method must be a function");if(typeof S!="function")throw TypeError("off method must be a function");this._on=w,this._off=S;var M=m._observers;M?M.push(this)
` ),this.dateFromFileName=new Ba(()=>Ft.fromPath(this.filePath))}parseFileContent(){if(this.listItems===void 0)return this.tasks;let t=new mt(this.filePath,this.fileCache),e=this.fileLines.length,r=null,i=0;for(let s of this.listItems){let a=s.position.start.line;if(a>=e)return this.logger.debug( ` $ { this . filePath } Obsidian gave us a line number $ { a } past the end of the file . $ { e } . ` ),this.tasks;if((r===null||r.position.end.line<a)&&(r= $ s.getSection(a,this.fileCache.sections),i=0),r===null)continue;let o=this.fileLines[a];if(o===void 0){this.logger.debug( ` $ { this . filePath } : line $ { a } - ignoring 'undefined' line . ` );continue}let l=new Lt(t,a,r.position.start.line,i, $ s.getPrecedingHeader(a,this.fileCache.headings));i=this.parseLine(s,o,l,a,i)}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=fe.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 fe(me(U({},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 a;let s=(a=this.line2ListItem.get(t.parent))!=null?a:null;this.line2ListItem.set(r,new xr(e,s,i))}};var $ s=class{constructor({metadataCache:t,vault:e,workspace:r,events:i}){this.logger=rn.getLogger("tasks.Cache");this.logger.debug("Creating Cache object"),this.metadataCache=t,this.metadataCacheEventReferences=[],this.vault=e,this.workspace=r,this.vaultEventReferences=[],this.events=i,this.eventsEventReferences=[],this.tasksMutex=new Yu,this.state="Cold",this.logger.debug("Cache.constructor(): state = Cold"),this.tasks=[],this.loadedAfterFirstResolve=!1,this.subscribeToCache(),this.workspace.onLayoutReady(()=>{this.subscribeToVault(),this.loadVault()}),this.subscribeToEvents()}unload(){this.logger.info("Unloading Cache");for(let t of this.metadataCacheEventReferences)this.metadataCache.offref(t);for(let t of this.vaultEventReferences)this.vault.offref(t);for(let t of this.eventsEventReferences)this.events.off(t)}getTasks(){return this.tasks}getState(){return this.state}notifySubscribers(){this.logger.debug("Cache.notifySubscribers()"),this.events.triggerCacheUpdate({tasks:this.tasks,state:this.state})}subscribeToCache(){this.logger.debug("Cache.subscribeToCache()");let t=this.metadataCache.on("resolved",()=>L(this,null,function*(){this.loadedAfterFirstResolve||(this.loadedAfterFirstResolve=!0,this.loadVault())}));this.metadataCacheEventReferences.push(t);let e=this.metadataCache.on("changed",r=>{this.tasksMutex.runExclusive(()=>{this.indexFile(r)})});this.metadataCacheEventReferences.push(e)}subscribeToVault(){this.logger.debug("Cache.subscribeToVault()");let{useFilenameAsScheduledDate:t}=le(),e=this.vault.on("create",s=>{s instanceof Va.TFile&&(this.logger.debug( ` Cache . subscribeToVault . createdEventReference ( ) $ { s . path } ` ),this.tasksMutex.runExclusive(()=>{this.indexFile(s)}))});this.vaultEventReferences.push(e);let r=this.vault.on("delete",s=>{s instanceof Va.TFile&&(this.logger.debug( ` Cache . subscribeToVault . deletedEventReference ( ) $ { s . path } ` ),this.tasksMutex.runExclusive(()=>{this.tasks=this.tasks.filter(a=>a.path!==s.path),this.notifySubscribers()}))});this.vaultEventReferences.push(r);let i=this.vault.on("rename",(s,a)=>{s instanceof Va.TFile&&(this.logger.debug( ` Cache . subscribeToVault . renamedEventReference ( ) $ { s . path } ` ),this.tasksMutex.runExclusive(()=>{let o=this.metadataCache.getFileCache(s),l=new mt(s.path,o!=null?o:void 0),u=new Ba(()=>Ft.fromPath(s.path));this.tasks=this.tasks.map(c=>{if(c.path!==a)return c;let d=c.taskLocation.fromRenamedFile(l);return t?Ft.updateTaskPath(c,d,u.value):new fe(me(U({},c),{taskLocation:d}))}),this.notifySubscribers()}))});this.vaultEventReferences.push(i)}subscribeToEvents(){this.logger.debug("Cache.subscribeToEvents()");let t=this.events.onRequestCacheUpdate(e=>{e({tasks:this.tasks,state:this.state})});this.eventsEventReferences.push(t)}loadVault(){return this.logger.de
The following task has been ignored , to prevent Tasks queries getting stuck with 'Loading Tasks ...'
Error : $ { t }
File : $ { e }
Line number : $ { r . position . start . line }
Task line : $ { i }
Please create a bug report for this message at
https : //github.com/obsidian-tasks-group/obsidian-tasks/issues/new/choose
to help us find and fix the underlying issue .
Include :
- either a screenshot of the error popup , or copy the text from the console , if on a desktop machine .
- the output from running the Obsidian command 'Show debug info'
The error popup will only be shown when Tasks is starting up , but if the error persists ,
it will be shown in the console every time this file is edited during the Obsidian
session .
` ;this.logger.error(s),t instanceof Error&&this.logger.error(t.stack?t.stack:"Cannot determine stack"),this.state==="Initializing"&&new Va.Notice(s,1e4)}static getSection(t,e){if(e===void 0)return null;for(let r of e)if(r.position.start.line<=t&&r.position.end.line>=t)return r;return null}static getPrecedingHeader(t,e){if(e===void 0)return null;let r=null;for(let i of e){if(i.position.start.line>t)return r;r=i.heading}return r}};var Fy=require("obsidian");var eD=require("obsidian");function tt(){}function hy(n){return n()}function XS(){return Object.create(null)}function Gt(n){n.forEach(hy)}function fd(n){return typeof n=="function"}function zr(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}function ZS(n){return Object.keys(n).length===0}var JS=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,lu=class{constructor(t){this.options=t,this._listeners="WeakMap"in JS?new WeakMap:void 0}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return(t=this._observer)!==null&&t!==void 0?t:this._observer=new ResizeObserver(e=>{var r;for(let i of e)lu.entries.set(i.target,i),(r=this._listeners.get(i.target))===null||r===void 0||r(i)})}};lu.entries="WeakMap"in JS?new WeakMap:void 0;var eE=!1;function k2(){eE=!0}function S2(){eE=!1}function z(n,t){n.appendChild(t)}function Ee(n,t,e){n.insertBefore(t,e||null)}function ve(n){n.parentNode&&n.parentNode.removeChild(n)}function Gs(n,t){for(let e=0;e<n.length;e+=1)n[e]&&n[e].d(t)}function ue(n){return document.createElement(n)}function E2(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Ve(n){return document.createTextNode(n)}function De(){return Ve(" ")}function pd(){return Ve("")}function je(n,t,e,r){return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}function tE(n){return function(t){return t.preventDefault(),n.call(this,t)}}function B(n,t,e){e==null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function nE(n){let t;return{p(...e){t=e,t.forEach(r=>n.push(r))},r(){t.forEach(e=>n.splice(n.indexOf(e),1))}}}function D2(n){return Array.from(n.childNodes)}function rr(n,t){t=""+t,n.data!==t&&(n.data=t)}function fn(n,t){n.value=t==null?"":t}function gy(n,t,e){for(let r=0;r<n.options.length;r+=1){let i=n.options[r];if(i.__value===t){i.selected=!0;return}}(!e||t!==void 0)&&(n.selectedIndex=-1)}function rE(n){let t=n.querySelector(":checked");return t&&t.__value}var cd;function x2(){if(cd===void 0){cd=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(n){cd=!0}}return cd}function iE(n,t){getComputedStyle(n).position==="static"&&(n.style.position="relative");let r=ue("iframe");r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1;let i=x2(),s;return i?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}< \/ script>",s=je(window,"message",a=>{a.source===r.contentWindow&&t()})):(r.src="about:blank",r.onload=()=>{s=je(r.contentWindow,"resize",t),t()}),z(n,r),()=>{(i||s&&r.contentWindow)&&s(),ve(r)}}function Si(n,t,e){n.classList[e?"add":"remove"](t)}var Xa=class{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,r=null){this.e||(this.is_svg?this.e=E2(e.nodeName):this.e=ue(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.content,this.c(t)),this.i(r)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)Ee(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(ve)}};var uu;function ou(n){uu=n}function O2(){if(!uu)throw new Error("Function called outside component initialization");return uu}function yy(n){O2(). $ $ .on_mount.push(n)}var Ka=[];var at=[],Qa=[],py=[],C2=Promi
The task line not updated is :
$ { n . originalMarkdown }
In this markdown file :
"${n.taskLocation.path}"
Note : further clicks on this checkbox will usually now be ignored until the file is opened ( or certain , specific edits are made - it ' s complicated ) .
Recommendations :
1. Close all panes that have the above file open , and then re - open the file .
2. Check for exactly identical copies of the task line , in this file , and see if you can make them different .
` ;vd(c);return}let u=Math.min(Math.pow(10,s),100);o.debug( ` timeout = $ { u } ` ),setTimeout(()=>L(void 0,null,function*(){yield qE({originalTask:n,newTasks:t,vault:e,metadataCache:r,workspace:i,previousTries:s+1})}),u)});try{let[u,c,d]=yield HE(n,e),f=[...d.slice(0,u),...t.map(p=>p.toFileLineString()),...d.slice(u+1)];yield e.modify(c,f.join( `
` ))}catch(u){if(u instanceof Vi){u.message&& $ E(u.message),yield l();return}else if(u instanceof wd){yield l();return}else u instanceof Error&&vd(u.message)}});function HE(n,t){return L(this,null,function*(){if(hu===void 0)throw new Vi;let e=t.getAbstractFileByPath(n.path);if(!(e instanceof gu.TFile))throw new Vi( ` Tasks : No file found for task $ { n . description } . Retrying ... ` );if(!lU.includes(e.extension))throw new Error( ` Tasks : Does not support files with the $ { e . extension } file extension . ` );let r=hu.getFileCache(e);if(r==null||r===null)throw new Vi( ` Tasks : No file cache found for file $ { e . path } . Retrying ... ` );let i=r.listItems;if(i===void 0||i.length===0)throw new Vi( ` Tasks : No list items found in file cache of $ { e . path } . Retrying ... ` );let a=(yield t.read(e)).split( `
` ),o=cU(n,a,i,uU);if(o===void 0)throw new wd;return[o,e,a]})}function Ay(n,t){return L(this,null,function*(){try{let[e,r,i]=yield HE(n,t);return[e,r]}catch(e){e instanceof Vi?e.message&& $ E(e.message):e instanceof Error&&vd(e.message)}})}function GE(n,t){return n<t.length}function cU(n,t,e,r){let i=dU(n,t);return i!==void 0||(i=fU(n,t),i!==void 0)?i:pU(n,t,e,r)}function dU(n,t){let e=n.taskLocation.lineNumber;if(GE(e,t)&&t[e]===n.originalMarkdown)return kd().debug( ` Found original markdown at original line number $ { e } ` ),e}function fU(n,t){let e=[];for(let r=0;r<t.length;r++)t[r]===n.originalMarkdown&&e.push(r);if(e.length===1)return e[0]}function pU(n,t,e,r){let i,s=0;for(let a of e){let o=a.position.start.line;if(!GE(o,t))return;if(o<n.taskLocation.sectionStart||a.task===void 0)continue;let l=t[o];if(Fe.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 } .
Expected task :
$ { n . originalMarkdown }
Found task :
$ { l } ` );return}break}s++}}return i}Nc();ja();Vc();Nt();Jc();er();var ro=class{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}static fromTask(t,e){let r=Fe.getInstance().removeAsWordFrom(t.description),i=r!=t.description||!Fe.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");let a=[];for(let l of t.dependsOn){let u=e.find(c=>c.id===l);!u||a.push(u)}let o=e.filter(l=>l.dependsOn.includes(t.id));return new ro({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){return L(this,null,function*(){let r=this.description.trim();this.addGlobalFilterOnSave&&(r=Fe.getInstance().prependTo(r));let i=Os(this.startDate,this.forwardOnly),s=Os(this.scheduledDate,this.forwardOnly),a=Os(this.dueDate,this.forwardOnly),o=Os(this.cancelledDate,this.forwardOnly),l=Os(this.createdDate,this.forwardOnly),u=Os(this.doneDate,this.forwardOnly),c=null;this.recurrenceRule&&(c=Et.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new Qn({startDate:i,scheduledDate:s,dueDate:a})}));let d=this.onCompletion,f=[];for(let D of this.blockedBy){let A=yield mU(D,e);f.push(A)}let p=t.id,b=[],T=[];(this.blocking.toString()!==this.originalBlocking.toString()||this.blocking.length!==0)&&(t.id===""&&(p=ru(e.filter(D=>D.id!=="").map(D=>D.id))),b=this.originalBlocking.filter(D=>!this.blocking.includes(D)),T=this.blocking.filter(D=>!this.originalBlocking.includes(D)));let _=new fe(me(U({},t),{description:r,status:t.status,priority:Rn.priorityValue(this.priority),onCompletion:d,recurrence:c,startDate:i,scheduledDate:s,dueDate:a,doneDate:u,createdDate:l,cancelledDate:o,dependsOn:f.map(D=>D.id),id:p}));for(let D of b){let A=OS(D,_);yield gn({originalTask:D,newTasks:A})}for(let D of T){let A=xS(D,_);yield gn({originalTask:D,newTasks:A})}let O=this.inferTodaysDate(this.status.type,u,o);return _.handleNewStatusWithRecurrenceInUsersOrder(this.status,O)})}inferTodaysDate(t,e,r){return t==="DONE"&&e!==null?e:t==="CANCELLED"&&r!==null?r:window.moment()}parseAndValidateRecurrence(){var e;if(!this.recurrenceRule)return{parsedRecurrence:"<i>not recurring</>",isRecurrenceValid:!0};let t=(e=Et.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new Qn({startDate:null,scheduledDate:null,dueDate:null})}))==null?void 0:e.toText();return t?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}}};function mU(n,t){return L(this,null,function*(){if(n.id!=="")return n;let e=t.filter(i=>i.id!==""),r=Zc(n,e.map(i=>i.id));return yield gn({originalTask:n,newTasks:r}),r})}nn();function hU(n){let t,e=Ut("Recurs",n[2])+"",r,i,s,a,o,l,u,c,d;return{c(){t=ue("label"),r=De(),i=ue("input"),s=De(),a=ue("code"),o=Ve(n[4]),l=De(),u=new Xa(!1),B(t,"for","recurrence"),B(i,"id","recurrence"),B(i,"type","text"),B(i,"class","tasks-modal-date-input"),B(i,"placeholder","Try 'every day when done'"),B(i,"accesskey",n[2]),Si(i,"tasks-modal-error",!n[1]),u.a=null,B(a,"class","tasks-modal-parsed-date")},m(f,p){Ee(f,t,p),t.innerHTML=e,Ee(f,r,p),E
` );t.setLine(o,b)};new zi({app:r,task:u,onSubmit:c,allTasks:i}).open()};var Ly=require("obsidian");wi();Nt();ii();var nD=(n,t,e)=>{var l;if(n)return e instanceof Ly.MarkdownView;if(!(e instanceof Ly.MarkdownView))return;let r=(l=e.file)==null?void 0:l.path;if(r===void 0)return;let i=t.getCursor(),s=i.line,a=t.getLine(s),o=Uy(a,r);t.setLine(s,o.text),t.setCursor(OU(i,o))},Uy=(n,t)=>{let e=fe.fromLine({line:n,taskLocation:Lt.fromUnknownPosition(new mt(t)),fallbackDate:null});if(e!==null){let r=e.toggleWithRecurrenceInUsersOrder().map(s=>s.toFileLineString()),i=r.length>0?r.length-1:0;return{text:r.join( `
` ),moveTo:{line:i}}}else{let r=n.match(ce.taskRegex);if(r!==null){let i=r[3],a=Be.getInstance().bySymbol(i).nextStatusSymbol;return{text:n.replace(ce.taskRegex, ` $1 - [ $ { a } ] $4 ` )}}else if(ce.listItemRegex.test(n)){let i=n.replace(ce.listItemRegex," $ 1 $ 2 [ ]");return{text:i,moveTo:{ch:i.length}}}else{let i=n.replace(ce.indentationRegex," $ 1- ");return{text:i,moveTo:{ch:i.length}}}}},OU=(n,t)=>{var s;let e={line:0,ch:n.ch},r=U(U({},e),(s=t.moveTo)!=null?s:{}),i=t.text.split( `
` )[r.line].length;return{line:n.line+r.line,ch:Math.min(r.ch,i)}};var sb=require("obsidian");nn();var Ki=class{constructor(){this.hidePostponeButton=!1;this.hideTaskCount=!1;this.hideBacklinks=!1;this.hideEditButton=!1;this.hideUrgency=!0;this.hideTree=!0;this.shortMode=!1;this.explainQuery=!1}};function rD(n,t,e){let r=new Map([["backlink","hideBacklinks"],["edit button","hideEditButton"],["postpone button","hidePostponeButton"],["task count","hideTaskCount"],["tree","hideTree"],["urgency","hideUrgency"]]);for(let[i,s]of r.entries())if(t.startsWith(i))return n[s]=e,!0;return!1}Is();function Xs(n,t){let e= ` Error : $ { n } .
The error message was :
` ,r="";return t instanceof Error?r+=t:r+="Unknown error", ` $ { e } "${r}" ` }Ws();var CU=Object.prototype.toString,so=Array.isArray||function(t){return CU.call(t)==="[object Array]"};function jy(n){return typeof n=="function"}function MU(n){return so(n)?"array":typeof n}function Yy(n){return n.replace(/[ \- \[ \] {}()*+?., \\ \^ $ |# \s ]/g," \\ $ &")}function iD(n,t){return n!=null&&typeof n=="object"&&t in n}function RU(n,t){return n!=null&&typeof n!="object"&&n.hasOwnProperty&&n.hasOwnProperty(t)}var AU=RegExp.prototype.test;function PU(n,t){return AU.call(n,t)}var NU=/ \S /;function IU(n){return!PU(NU,n)}var FU={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"," ` ":" & # x60 ; "," = ":" & # x3D ; "};function LU(n){return String(n).replace(/[&<>" ' ` = \/ ]/g,function(e){return FU[e]})}var UU=/ \s */,YU=/ \s +/,sD=/ \s *=/,jU=/ \s * \} /,WU=/#| \^ | \/ |>| \{ |&|=|!/;function $ U(n,t){if(!n)return[];var e=!1,r=[],i=[],s=[],a=!1,o=!1,l="",u=0;function c(){if(a&&!o)for(;s.length;)delete i[s.pop()];else s=[];a=!1,o=!1}var d,f,p;function b(Z){if(typeof Z=="string"&&(Z=Z.split(YU,2)),!so(Z)||Z.length!==2)throw new Error("Invalid tags: "+Z);d=new RegExp(Yy(Z[0])+" \\ s*"),f=new RegExp(" \\ s*"+Yy(Z[1])),p=new RegExp(" \\ s*"+Yy("}"+Z[1]))}b(t||or.tags);for(var T=new bu(n),_,O,D,A,Y,q;!T.eos();){if(_=T.pos,D=T.scanUntil(d),D)for(var se=0,H=D.length;se<H;++se)A=D.charAt(se),IU(A)?(s.push(i.length),l+=A):(o=!0,e=!0,l+=" "),i.push(["text",A,_,_+1]),_+=1,A=== `
` &&(c(),l="",u=0,e=!1);if(!T.scan(d))break;if(a=!0,O=T.scan(WU)||"name",T.scan(UU),O==="="?(D=T.scanUntil(sD),T.scan(sD),T.scanUntil(f)):O==="{"?(D=T.scanUntil(p),T.scan(jU),T.scanUntil(f),O="&"):D=T.scanUntil(f),!T.scan(f))throw new Error("Unclosed tag at "+T.pos);if(O==">"?Y=[O,D,_,T.pos,l,u,e]:Y=[O,D,_,T.pos],u++,i.push(Y),O==="#"||O==="^")r.push(Y);else if(O==="/"){if(q=r.pop(),!q)throw new Error('Unopened section "'+D+'" at '+_);if(q[1]!==D)throw new Error('Unclosed section "'+q[1]+'" at '+_)}else O==="name"||O==="{"||O==="&"?o=!0:O==="="&&b(D)}if(c(),q=r.pop(),q)throw new Error('Unclosed section "'+q[1]+'" at '+T.pos);return HU(qU(i))}function qU(n){for(var t=[],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));return t}function HU(n){for(var t=[],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)}return t}function bu(n){this.string=n,this.tail=n,this.pos=0}bu.prototype.eos=function(){return this.tail===""};bu.prototype.scan=function(t){var e=this.tail.match(t);if(!e||e.index!==0)return"";var r=e[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};bu.prototype.scanUntil=function(t){var e=this.tail.search(t),r;switch(e){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=r.length,r};function io(n,t){this.view=n,this.cache={".":this.view},this.parent=t}io.prototype.push=function(t){return new io(t,this)};io.prototype.lookup=function(t){var e=this.cache,r;if(e.hasOwnProperty(t))r=e[t];else{for(var i=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=iD(s,a[o])||RU(s,a[o])),s=s[a[o++]];else s=i.view[t],l=iD(i.view,t);if(l){r=s;break}i=i.parent}e[t]=r}return jy(r)&&(r=r.call(this.view)),r};function on(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}on.prototype.clearCache=function(){typeof this.templateCache!="undefined"&&this.templateCache.clear()};on.prototype.parse=function(t,e){var r=this.templateCache,i=t+":"+(e||or.tags).join(":"),s=typeof r!="undefined",a=s?r.get(i):void 0;return a==null&&(a= $ U(t,e),s&&r.set(i,a)),a};on.prototype.render=function(t,e,r,i){var s=this.getConfigTags(i),a=this.parse(t,s),o=e instanceof io?e:new io(e,void 0);return this.renderTokens(a,o,r,t,i)};on.prototype.renderTokens=function(t,e,r,i,s){for(var a="",o,l,u,c=0,d=t.length;c<d;++c)u=void 0,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!==void 0&&(a+=u);return a};on.prototype.renderSection=function(t,e,r,i,s){var a=this,o="",l=e.lookup(t[1]);function u(f){return a.render(f,e,r,s)}if(!!l){if(so(l))for(var c=0,d=l.length;c<d;++c)o+=this.renderTokens(t[4],e.push(l[c]),r,i,s);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],e.push(l),r,i,s);else if(jy(l)){if(typeof i!="string")throw new Error("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)}else o+=this.renderTokens(t[4],e,r,i,s);return o}};on.prototype.renderInverted=function(t,e,r,i,s){var a=e.lookup(t[1]);if(!a||so(a)&&a.length===0)return this.renderTokens(t[4],e,r,i,s)};on.prototype.indentPartial=function(t,e,r){for(var i=e.replace(/[^ \t ]/g,""),s=t.split( `
` ),a=0;a<s.length;a++)s[a].length&&(a>0||!r)&&(s[a]=i+s[a]);return s.join( `
` )};on.prototype.renderPartial=function(t,e,r,i){if(!!r){var s=this.getConfigTags(i),a=jy(r)?r(t[1]):r[t[1]];if(a!=null){var o=t[6],l=t[5],u=t[4],c=a;l==0&&u&&(c=this.indentPartial(a,u,o));var d=this.parse(c,s);return this.renderTokens(d,e,r,c,i)}}};on.prototype.unescapedValue=function(t,e){var r=e.lookup(t[1]);if(r!=null)return r};on.prototype.escapedValue=function(t,e,r){var i=this.getConfigEscape(r)||or.escape,s=e.lookup(t[1]);if(s!=null)return typeof s=="number"&&i===or.escape?String(s):i(s)};on.prototype.rawValue=function(t){return t[1]};on.prototype.getConfigTags=function(t){return so(t)?t:t&&typeof t=="object"?t.tags:void 0};on.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!so(t))return t.escape};var or={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(n){yu.templateCache=n},get templateCache(){return yu.templateCache}},yu=new on;or.clearCache=function(){return yu.clearCache()};or.parse=function(t,e){return yu.parse(t,e)};or.render=function(t,e,r,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+MU(t)+'" was given as the first argument for mustache#render(template, view, partials)');return yu.render(t,e,r,i)};or.escape=LU;or.Scanner=bu;or.Context=io;or.Writer=on;var Wy=or;var cD=qo(uD());var Xr=class{constructor(t){this.instruction=t}get queryComponent(){return this._queryComponent}set queryComponent(t){this._queryComponent=t}get error(){return this._error}set error(t){this._error=t}isValid(){return this._queryComponent!==void 0}static fromObject(t,e){let r=new Xr(t);return r._queryComponent=e,r}static fromError(t,e){let r=new Xr(t);return r._error=e,r}};var Tu=class extends Xr{};function _u(n,t){try{let e=n.map(([s])=>s),r=t.includes("return")?t: ` return $ { t } ` ,i=t&&new Function(...e,r);return i instanceof Function?Tu.fromObject(t,i):Tu.fromError(t, ` Problem parsing expression "${t}" ` )}catch(e){return Tu.fromError(t,Xs( ` Failed parsing expression "${t}" ` ,e))}}function vu(n,t){let e=t.map(([r,i])=>i);return n(...e)}function qy(n,t,e){try{return vu(n,t)}catch(r){return Xs( ` Failed calculating expression "${e}" ` ,r)}}function dD(n,t){Wy.escape=function(e){return e};try{let e=BU(n,t);return Wy.render(e,(0,cD.default)(t))}catch(e){let r="";throw e instanceof Error?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 } ` ,Error(r)}}var GU=new RegExp([" \\ { \\ {","(.*?)"," \\ } \\ }"].join(""),"g");function BU(n,t){return n.replace(GU,(e,r)=>{let i=VU(t),s=_u(i,r);if(s.isValid()){let a=vu(s.queryComponent,i);if(a!==void 0)return a}return e})}function VU(n){return Object.entries(n)}function fD(n){return Hy(n,[])}function Hy(n,t){return{query:{file:n,allTasks:t,searchCache:{}}}}nn();var ao=class{constructor(t=""){this.indentation=t}explainQuery(t){if(t.error!==void 0)return this.explainError(t);let e=[];return e.push(this.explainIgnoreGlobalQuery(t)),e.push(this.explainFilters(t)),e.push(this.explainGroups(t)),e.push(this.explainSorters(t)),e.push(this.explainLayout(t)),e.push(this.explainQueryLimits(t)),e.push(this.explainDebugSettings()),e.filter(r=>r!=="").join( `
` )}explainError(t){let e="";return e+= ` Query has an error :
` ,e+=t.error+ `
` ,e}explainIgnoreGlobalQuery(t){return t.ignoreGlobalQuery?this.indent( ` ignore global query
` ):""}explainFilters(t){return t.filters.length===0?this.indent( ` No filters supplied . All tasks will match the query .
` ):t.filters.map(e=>e.explainFilterIndented(this.indentation)).join( `
` )}explainGroups(t){return this.explainStatements(t.grouping.map(e=>e.statement))}explainSorters(t){return this.explainStatements(t.sorting.map(e=>e.statement))}explainLayout(t){return this.explainStatements(t.layoutStatements)}explainQueryLimits(t){function e(i){let s= ` At most $ { i } task ` ;return i!==1&&(s+="s"),s}let r=[];if(t.limit!==void 0){let i=e(t.limit)+ ` .
` ;r.push(this.indent(i))}if(t.taskGroupLimit!==void 0){let i=e(t.taskGroupLimit)+ ` per group ( if any "group by" options are supplied ) .
` ;r.push(this.indent(i))}return r.join( `
` )}explainDebugSettings(){let t="",{debugSettings:e}=le();return e.ignoreSortInstructions&&(t+=this.indent( ` NOTE : All sort instructions , including default sort order , are disabled , due to 'ignoreSortInstructions' setting .
` )),t}explainStatements(t){return t.length===0?"":t.map(e=>e.explainStatement(this.indentation)).join( `
` )+ `
` }indent(t){return this.indentation+t}};Mn();var qe=class{constructor(t,e=[],r=""){this.description=t,this.symbol=r,this.children=e}static booleanAnd(t){return this.combineOrCreateExplanation("All of",t,"AND")}static booleanOr(t){return this.combineOrCreateExplanation("At least one of",t,"OR")}static booleanNot(t){return new qe("None of",t,"NOT")}static booleanXor(t){return new qe("Exactly one of",t,"XOR")}asString(t=""){if(this.children.length==0)return t+this.description;let e=t;this.symbol===""?e+=this.description:(e+=this.symbol,this.children.length>1&&(e+= ` ( $ { this . description } ) ` ),e+=":");let r=t+" ";for(let i=0;i<this.children.length;i++)e+= `
$ { this . children [ i ] . asString ( r ) } ` ;return e}static combineOrCreateExplanation(t,e,r){if(e.length===2){let i=e[0],s=e[1];if(i.symbol===r&&s.symbol==="")return i.children.push(s),i}return new qe(t,e,r)}};var oo=class{matchesAnyOf(t){return t.some(e=>this.matches(e))}};var lo=class extends oo{constructor(e){super();this.stringToFind=e}matches(e){return lo.stringIncludesCaseInsensitive(e,this.stringToFind)}static stringIncludesCaseInsensitive(e,r){return e.toLocaleLowerCase().includes(r.toLocaleLowerCase())}explanation(e){return new qe(e)}};var Qi=class extends oo{constructor(e){super();this.regex=e}static validateAndConstruct(e){let r=/^ \/ (.+) \/ ([^/]*) $ /,i=e.match(r);if(i!==null){let s=new RegExp(i[1],i[2]);return new Qi(s)}else return null}matches(e){return e.match(this.regex)!==null}static helpMessage(){return String.raw ` See https : //publish.obsidian.md/tasks/Queries/Regular+Expressions
Regular expressions must look like this :
/pattern/
or this :
/ p a t t e r n / f l a g s
Where :
- pattern : The 'regular expression' pattern to search for .
- flags : Optional characters that modify the search .
i => make the search case - insensitive
u => add Unicode support
Examples : /^Log/
/^Log/i
/File Name\.md/
/waiting|waits|waited/i
/\d\d:\d\d/
The following characters have special meaning in the pattern :
to find them literally , you must add a \ before them :
[ \ ^ $ . | ? * + ( )
CAUTION ! Regular expression ( or 'regex' ) searching is a powerful
but advanced feature that requires thorough knowledge in order to
use successfully , and not miss intended search results .
` }explanation(e){let i=zU(e,"using regex: ",this.regexAsString());return new qe(i)}regexAsString(){let e= ` '${this.regex.source}' with ` ;switch(this.regex.flags.length){case 0:e+="no flags";break;case 1:e+= ` flag '${this.regex.flags}' ` ;break;default:e+= ` flags '${this.regex.flags}' ` ;break}return e}};function zU(n,t,e){var o;let r=n.match(/ \/ /);if(!r)return"Error explaining instruction. Could not find a slash character";let i=2,s=((o=r.index)!=null?o:i)-i;return ` $ { t . padEnd ( s ) } $ { e } ` }var yn=class{constructor(t,e){this._rawInstruction=t,this._anyContinuationLinesRemoved=e.trim(),this._anyPlaceholdersExpanded=this._anyContinuationLinesRemoved}recordExpandedPlaceholders(t){this._anyPlaceholdersExpanded=t}get rawInstruction(){return this._rawInstruction}get anyContinuationLinesRemoved(){return this._anyContinuationLinesRemoved}get anyPlaceholdersExpanded(){return this._anyPlaceholdersExpanded}explainStatement(t){function e(a,o){o!==a&&(s+= ` =>
$ { t } $ { o } ` )}let r=this._rawInstruction.trim(),i=r.split( `
` ).join( `
` +t),s= ` $ { t } $ { i } ` ;return this._rawInstruction.includes( `
` )&&(s+= `
` +t),e(r,this._anyContinuationLinesRemoved),e(this._anyContinuationLinesRemoved,this._anyPlaceholdersExpanded),s}allLinesIdentical(){return this._rawInstruction===this._anyContinuationLinesRemoved&&this._rawInstruction===this._anyPlaceholdersExpanded}};var Rr=class{constructor(t,e,r,i){this._statement=new yn(t,t),this.property=e,this.comparator=Rr.maybeReverse(i,r)}setStatement(t){this._statement=t}get statement(){return this._statement}get instruction(){return this._statement.anyPlaceholdersExpanded}static maybeReverse(t,e){return t?Rr.makeReversedComparator(e):e}static makeReversedComparator(t){return(e,r,i)=>t(e,r,i)*-1}};iu();var Xi=class{constructor(t,e,r,i){this._statement=new yn(t,t),this.property=e,this.grouper=r,this.reverse=i}setStatement(t){this._statement=t}get statement(){return this._statement}get instruction(){return this._statement.anyPlaceholdersExpanded}};var We=class{canCreateFilterForLine(t){return We.lineMatchesFilter(this.filterRegExp(),t)}static lineMatchesFilter(t,e){return t?t.test(e):!1}static getMatch(t,e){return t?e.match(t):null}fieldNameSingular(){return this.fieldName()}fieldNameSingularEscaped(){return qi(this.fieldNameSingular())}supportsSorting(){return!1}createSorterFromLine(t){if(!this.supportsSorting())return null;let e=We.getMatch(this.sorterRegExp(),t);if(e===null)return null;let r=!!e[1];return this.createSorter(r)}sorterRegExp(){if(!this.supportsSorting())throw Error( ` sorterRegExp ( ) unimplemented for $ { this . fieldNameSingular ( ) } ` );return new RegExp( ` ^ sort by $ { this . fieldNameSingularEscaped ( ) } ( reverse ) ? ` ,"i")}sorterInstruction(t){let e= ` sort by $ { this . fieldNameSingular ( ) } ` ;return t&&(e+=" reverse"),e}comparator(){throw Error( ` comparator ( ) unimplemented for $ { this . fieldNameSingular ( ) } ` )}createSorter(t){return new Rr(this.sorterInstruction(t),this.fieldNameSingular(),this.comparator(),t)}createNormalSorter(){return this.createSorter(!1)}createReverseSorter(){return this.createSorter(!0)}supportsGrouping(){return!1}createGrouperFromLine(t){if(!this.supportsGrouping())return null;let e=We.getMatch(this.grouperRegExp(),t);if(e===null)return null;let r=!!e[1];return this.createGrouper(r)}grouperRegExp(){if(!this.supportsGrouping())throw Error( ` grouperRegExp ( ) unimplemented for $ { this . fieldNameSingular ( ) } ` );return new RegExp( ` ^ group by $ { this . fieldNameSingularEscaped ( ) } ( reverse ) ? $ ` ,"i")}grouperInstruction(t){let e= ` group by $ { this . fieldNameSingular ( ) } ` ;return t&&(e+=" reverse"),e}grouper(){throw Error( ` grouper ( ) unimplemented for $ { this . fieldNameSingular ( ) } ` )}createGrouper(t){return new Xi(this.grouperInstruction(t),this.fieldNameSingular(),this.grouper(),t)}createNormalGrouper(){return this.createGrouper(!1)}createReverseGrouper(){return this.createGrouper(!0)}};var Bt=class{constructor(t,e,r){this._statement=new yn(t,t),this.explanation=r,this.filterFunction=e}get statement(){return this._statement}setStatement(t){this._statement=t}get instruction(){return this._statement.anyPlaceholdersExpanded}explainFilterIndented(t){let e=this._statement.explainStatement(t);return this.onlyNeedsOneLineExplanation()? ` $ { e }
` : ` $ { e } =>
$ { this . explanation . asString ( t + " " ) }
` }simulateExplainFilter(){return this.onlyNeedsOneLineExplanation()?this.explanation:new qe(this.instruction+" =>",[this.explanation])}onlyNeedsOneLineExplanation(){return this.explanation.asString("")===this.instruction}};var ke=class{constructor(t){this.object=t}get instruction(){return this.object.instruction}get filter(){return this.object.queryComponent}isValid(){return this.object.isValid()}get error(){return this.object.error}get filterFunction(){if(this.filter)return this.filter.filterFunction}static fromFilter(t){return new ke(Xr.fromObject(t.instruction,t))}static fromError(t,e){return new ke(Xr.fromError(t,e))}};var Ze=class extends We{createFilterOrErrorMessage(t){let e=We.getMatch(this.filterRegExp(),t);if(e===null)return ke.fromError(t, ` do not understand query filter ( $ { this . fieldName ( ) } ) ` );let r=e[1].toLowerCase(),i=e[2],s=null;if(r.includes("include"))s=new lo(i);else if(r.includes("regex")){try{s=Qi.validateAndConstruct(i)}catch(l){let u=Xs("Parsing regular expression",l)+ `
$ { Qi . helpMessage ( ) } ` ;return ke.fromError(t,u)}if(s===null)return ke.fromError(t, ` Invalid instruction : '${t}'
$ { Qi . helpMessage ( ) } ` )}if(s===null)return ke.fromError(t, ` do not understand query filter ( $ { this . fieldName ( ) } ) ` );let a=r.match(/not/)!==null,o=new Bt(t,this.getFilter(s,a),s.explanation(t));return ke.fromFilter(o)}fieldPattern(){return this.fieldNameSingularEscaped()}filterOperatorPattern(){return"includes|does not include|regex matches|regex does not match"}filterRegExp(){return new RegExp( ` ^ ( ? : $ { this . fieldPattern ( ) } ) ( $ { this . filterOperatorPattern ( ) } ) ( . * ) ` ,"i")}getFilter(t,e){return r=>{let i=t.matches(this.value(r));return e?!i:i}}comparator(){return(t,e)=>this.value(t).localeCompare(this.value(e),void 0,{numeric:!0})}grouper(){return t=>[this.value(t)]}static escapeMarkdownCharacters(t){return t.replace(/ \\ /g," \\ \\ ").replace(/_/g," \\ _")}};var Zs=class extends Ze{fieldName(){return"description"}value(t){return Fe.getInstance().removeAsSubstringFrom(t.description)}supportsSorting(){return!0}comparator(){return(t,e)=>{let r=Zs.cleanDescription(t.description),i=Zs.cleanDescription(e.description);return r.localeCompare(i,void 0,{numeric:!0})}}static cleanDescription(t){t=Fe.getInstance().removeAsSubstringFrom(t);let e=/^ \[ \[ ?([^ \] ]*)]]?/,r=t.match(e);if(r!==null){let i=r[1];t=i.substring(i.indexOf("|")+1)+t.replace(e,"")}return t=this.replaceFormatting(t,/^ \* \* ([^*]+) \* \* /),t=this.replaceFormatting(t,/^ \* ([^*]+) \* /),t=this.replaceFormatting(t,/^==([^=]+)==/),t=this.replaceFormatting(t,/^__([^_]+)__/),t=this.replaceFormatting(t,/^_([^_]+)_/),t}static replaceFormatting(t,e){let r=t.match(e);return r!==null&&(t=r[1]+t.replace(e,"")),t}};Rg();Ag();Cs();var Ed=class{findUnexpandedDateText(t){let e=["<%","YYYY-MM-DD"];for(let r of e)if(t.includes(r))return this.unexpandedDateTextMessage(r);return null}unexpandedDateTextMessage(t){return ` Instruction contains unexpanded template text : "${t}" - and cannot be interpreted .
Possible causes :
- The query is an a template file , and is not intended to be searched .
- A command such as "Replace templates in the active file" needs to be run .
- The core "Daily notes" plugin is in use , and the template contained
date calculations that it does not support .
- Some sample template text was accidentally pasted in to a tasks query ,
instead of in to a template file .
See : https : //publish.obsidian.md/tasks/Advanced/Daily+Agenda#Instruction+contains+unexpanded+template+text
` }};var Dd=class{constructor(t,e){this._instruction=t,this._filter=e}canCreateFilterForLine(t){return t.toLocaleLowerCase()===this._instruction.toLocaleLowerCase()}createFilterOrErrorMessage(t){return this.canCreateFilterForLine(t)?ke.fromFilter(new Bt(t,this._filter,new qe(t))):ke.fromError(t, ` do not understand filter : $ { t } ` )}};var bn=class{constructor(){this._filters=[]}add(t,e){this._filters.push(new Dd(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 ke.fromError(t, ` do not understand filter : $ { t } ` )}};var Dt=class extends We{constructor(e=null){super();e!==null?this.filterInstructions=e:(this.filterInstructions=new bn,this.filterInstructions.add( ` has $ { this . fieldName ( ) } date ` ,r=>this.date(r)!==null),this.filterInstructions.add( ` no $ { this . fieldName ( ) } date ` ,r=>this.date(r)===null),this.filterInstructions.add( ` $ { this . fieldName ( ) } date is invalid ` ,r=>{let i=this.date(r);return i!==null&&!i.isValid()}))}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){var f;let r=this.checkForUnexpandedTemplateText(e);if(r)return ke.fromError(e,r);let i=this.filterInstructions.createFilterOrErrorMessage(e);if(i.isValid())return i;let s=We.getMatch(this.filterRegExp(),e);if(s===null)return ke.fromError(e,"do not understand query filter ("+this.fieldName()+" date)");let a=s[1],o=(f=s[2])==null?void 0:f.toLowerCase(),l=s[3],u=xn.parseDateRange(l);if(!u.isValid()){let p=xn.parseDate(a);p.isValid()&&(u=new Jt(p,p))}if(!u.isValid())return ke.fromError(e,"do not understand "+this.fieldName()+" date");let c=this.buildFilterFunction(o,u),d=Dt.buildExplanation(this.fieldNameForExplanation(),o,this.filterResultIfFieldMissing(),u);return ke.fromFilter(new Bt(e,c,d))}buildFilterFunction(e,r){let i;switch(e){case"before":i=s=>s?s.isBefore(r.start):this.filterResultIfFieldMissing();break;case"after":i=s=>s?s.isAfter(r.end):this.filterResultIfFieldMissing();break;case"on or before":case"in or before":i=s=>s?s.isSameOrBefore(r.end):this.filterResultIfFieldMissing();break;case"on or after":case"in or after":i=s=>s?s.isSameOrAfter(r.start):this.filterResultIfFieldMissing();break;default:i=s=>s?s.isSameOrAfter(r.start)&&s.isSameOrBefore(r.end):this.filterResultIfFieldMissing()}return this.getFilter(i)}getFilter(e){return r=>e(this.date(r))}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(e,r,i,s){let a=r,o="YYYY-MM-DD (dddd Do MMMM YYYY)",l;switch(r){case"before":case"on or after":l=s.start.format(o);break;case"after":case"on or before":l=s.end.format(o);break;case"in or before":a="on or before",l=s.end.format(o);break;case"in or after":a="on or after",l=s.start.format(o);break;default:if(!s.start.isSame(s.end)){let c= ` $ { e } date is between : ` ,d=[new qe( ` $ { s . start . format ( o ) } and ` ),new qe( ` $ { s . end . format ( o ) } inclusive ` )];return i&&d.push(new qe( ` OR no $ { e } date ` )),new qe(c,d)}a="on",l=s.start.format(o);break}let u= ` $ { e } date is $ { a } $ { l } ` ;return i&&(u+= ` OR no $ { e } date ` ),new qe(u)}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(e,r)=>Kn(this.date(e),this.date(r))}supportsGrouping(){return!0}grouper(){return e=>{let r=this.date(e);return r===null?["No "+this.fieldName()+" date"]:r.isValid()?[r.format("YYYY-MM-DD dddd")]:["%%0%% Invalid "+this.fieldName()+" date"]}}checkForUnexpandedTemplateText(e){return new Ed().findUnexpandedDateText(e)}};var xd=class extends Dt{fieldName(){return"created"}date(t){return t.createdDate}filterResultIfFieldMissing(){return!1}};var Od=class extends Dt{fieldName(){return"done"}date(t){return t.doneDate}filterResultIfFieldMissing(){return!1}};var uo=class extends Dt{fieldName(){return"due"}date(t){return t.dueDate}filterResultIfFieldMissing(){
The instruction was converted to the following simplified line :
$ { i . simplifiedLine }
Where the sub - expressions in the simplified line are :
$ { a }
For help , see :
https : //publish.obsidian.md/tasks/Queries/Combining+Filters
` ;return ke.fromError(e,l)}stringifySubExpressionsForErrorMessage(e){return Object.entries(e).map(([r,i])=> ` '${r}' : '${i}'
=> $ { this . stringifySubExpressionStatus ( i ) } ` ).join( `
` )}stringifySubExpressionStatus(e){let r=Su(e);return r?r.error? ` ERROR :
$ { r . error . split ( `
` ).map(s=>s.trim()).join( `
` )} ` : "OK" : ` ERROR:
do not understand query ` }helpMessageFromSimpleError(e,r){return ` Could not interpret the following instruction as a Boolean combination :
$ { e }
The error message is :
$ { r } ` }};var qd=class extends Ze{fieldName(){return"filename"}value(t){let e=t.filename;return e===null?"":e+".md"}supportsSorting(){return!0}supportsGrouping(){return!0}grouper(){return t=>{let e=t.filename;return e===null?["Unknown Location"]:["[["+e+"]]"]}}};var To=class extends We{canCreateFilterForLine(t){return!1}createFilterOrErrorMessage(t){return ke.fromError(t,"Filtering by urgency is not yet supported")}fieldName(){return"urgency"}filterRegExp(){throw Error( ` filterRegExp ( ) unimplemented for $ { this . fieldName ( ) } ` )}supportsSorting(){return!0}comparator(){return(t,e)=>e.urgency-t.urgency}supportsGrouping(){return!0}grouper(){return t=>[ ` $ { t . urgency . toFixed ( 2 ) } ` ]}createGrouper(t){return super.createGrouper(!t)}grouperInstruction(t){return super.grouperInstruction(!t)}};var Hd=class extends Ze{constructor(){super()}fieldName(){return"status.name"}value(t){return t.status.name}supportsSorting(){return!0}supportsGrouping(){return!0}};er();var ti=class extends We{canCreateFilterForLine(t){let e=new RegExp( ` ^ ( ? : $ { this . fieldNameSingularEscaped ( ) } ) ` ,"i");return We.lineMatchesFilter(e,t)}createFilterOrErrorMessage(t){let e=We.getMatch(this.filterRegExp(),t);if(e===null)return this.helpMessage(t);let r=e[1].toLowerCase(),i=e[2],s=tn[i.toUpperCase()];if(!s)return this.helpMessage(t);let a;switch(r){case"is":a=o=>o.status.type===s;break;case"is not":a=o=>o.status.type!==s;break;default:return this.helpMessage(t)}return ke.fromFilter(new Bt(t,a,new qe(t)))}filterRegExp(){return new RegExp( ` ^ ( ? : $ { this . fieldNameSingularEscaped ( ) } ) ( is | is not ) ( [ ^ ] + ) $ ` ,"i")}helpMessage(t){let e=Object.values(tn).filter(i=>i!=="EMPTY").join(" "),r= ` Invalid $ { this . fieldNameSingular ( ) } instruction : '${t}' .
Allowed options : 'is' and 'is not' ( without quotes ) .
Allowed values : $ { e }
Note : values are case - insensitive ,
so 'in_progress' works too , for example .
Example : $ { this . fieldNameSingular ( ) } is not NON _TASK ` ;return ke.fromError(t,r)}fieldName(){return"status.type"}value(t){return t.status.type}supportsSorting(){return!0}comparator(){return(t,e)=>{let r=ti.groupName(t),i=ti.groupName(e);return r.localeCompare(i,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return t=>[ti.groupName(t)]}static groupName(t){return t.status.typeGroupText}};var Gd=class extends Ze{fieldName(){return"recurrence"}value(t){return t.recurrence!==null?t.recurrence.toText():""}supportsGrouping(){return!0}grouper(){return t=>t.recurrence!==null?[t.recurrence.toText()]:["None"]}};var Bd=class extends Ze{fieldName(){return"folder"}value(t){return t.file.folder}supportsGrouping(){return!0}grouper(){return t=>[Ze.escapeMarkdownCharacters(this.value(t))]}};var Vd=class extends Ze{fieldName(){return"root"}value(t){return t.file.root}supportsGrouping(){return!0}grouper(){return t=>[Ze.escapeMarkdownCharacters(this.value(t))]}};var zd=class extends Ze{fieldName(){return"backlink"}value(t){let e=t.getLinkText({isFilenameUnique:!0});return e===null?"Unknown Location":e}createFilterOrErrorMessage(t){return ke.fromError(t,"backlink field does not support filtering")}canCreateFilterForLine(t){return!1}supportsGrouping(){return!0}grouper(){return t=>{let e=t.filename;if(e===null)return["Unknown Location"];let r=t.precedingHeader;return r===null?["[["+e+"]]"]:[ ` [ [ $ { e } # $ { r } | $ { e } > $ { r } ] ] ` ]}}};var Kd=class extends Dt{fieldName(){return"cancelled"}date(t){return t.cancelledDate}filterResultIfFieldMissing(){return!1}};var Qd=class extends lr{constructor(){super(),this._filters.add("is blocking",(t,e)=>t.isBlocking(e.allTasks)),this._filters.add("is not blocking",(t,e)=>!t.isBlocking(e.allTasks)),this._filters.add("is blocked",(t,e)=>t.isBlocked(e.allTasks)),this._filters.add("is not blocked",(t,e)=>!t.isBlocked(e.allTasks))}fieldName(){return"blocking"}};var Xd=class extends Ze{constructor(){super();this.filterInstructions=new bn;this.filterInstructions.add("has id",e=>e.id.length>0),this.filterInstructions.add("no id",e=>e.id.length===0)}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){let r=this.filterInstructions.createFilterOrErrorMessage(e);return r.isValid()?r:super.createFilterOrErrorMessage(e)}fieldName(){return"id"}value(e){return e.id}supportsSorting(){return!0}supportsGrouping(){return!0}};var Zd=class extends We{constructor(){super();this.filterInstructions=new bn;this.filterInstructions.add("has depends on",e=>e.dependsOn.length>0),this.filterInstructions.add("no depends on",e=>e.dependsOn.length===0)}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){let r=this.filterInstructions.createFilterOrErrorMessage(e);return r.isValid()?r:ke.fromError(e,"Unknown instruction")}fieldName(){return"blocked by"}filterRegExp(){return null}};var Jd=class extends lr{fieldName(){return"random"}supportsSorting(){return!0}comparator(){return(t,e)=>this.sortKey(t)-this.sortKey(e)}sortKey(t){let e=i=>{let s=0,a=9;for(;s<i.length;)a=Math.imul(a^i.charCodeAt(s++),387420489);return a^a>>>9},r=window.moment().format("Y-MM-DD");return e(r+" "+t.description)}};var rb=[()=>new Hd,()=>new ti,()=>new Zi,()=>new Fd,()=>new Js,()=>new Id,()=>new Kd,()=>new xd,()=>new Nd,()=>new Pd,()=>new uo,()=>new Od,()=>new co,()=>new Bd,()=>new Vd,()=>new zd,()=>new Zs,()=>new ea,()=>new Ad,()=>new Cd,()=>new qd,()=>new To,()=>new Gd,()=>new Rd,()=>new Xd,()=>new Zd,()=>new Qd,()=>new Jd,()=>new $ d];function Su(n){for(let t of rb){let e=t();if(e.canCreateFilterForLine(n))return e.createFilterOrErrorMessage(n)}return null}function OD(n){let t=/^sort by /i;if(n.match(t)===null)return null;for(let e of rb){let i=e().createSorterFromLine(n);if(i)return i}return null}function CD(n){let t=/^group by /i;if(n.match(t)===null)return null;for(let e of rb){let i=e().createGrouperFromLine(n);if(i)return i}return null}var ef=class{constructor(t,e
` ;return t}toString(){let t= `
` ;t+= ` Group names : [ $ { this . groups } ]
` ;for(let e of this.groupHeadings)t+= ` $ { "#" . repeat ( 4 + e . nestingLevel ) } [ $ { e . property } ] $ { e . displayName }
` ;return t+=this.tasksAsStringOfLines(),t}};var _o=class{constructor(t,e,r){this._groups=new Array;this._totalTaskCount=0;this._totalTaskCount=e.length,this._groupers=t;let s=new sf(t,e,r).generateTaskTreeStorage();this.addTaskGroups(s),this.sortTaskGroups(),this.setGroupsHeadings(s)}get groupers(){return this._groupers}get groups(){return this._groups}totalTasksCount(){return this._totalTaskCount}toString(){let t="";t+= ` Groupers ( if any ) :
` ;for(let r of this._groupers){let i=r.reverse?" reverse":"";t+= ` - $ { r . property } $ { i }
` }for(let r of this.groups)t+=r.toString(),t+= `
-- -
` ;return t+= `
$ { this . totalTasksCount ( ) } tasks
` ,t}addTaskGroups(t){for(let[e,r]of t){let i=new af(e,r);this.addTaskGroup(i)}}addTaskGroup(t){this._groups.push(t)}sortTaskGroups(){let t=(e,r)=>{let i=e.groups,s=r.groups;for(let a=0;a<i.length;a++){let o=this._groupers[a],l=i[a].localeCompare(s[a],void 0,{numeric:!0});if(l!==0)return o.reverse?-l:l}return 0};this._groups.sort(t)}setGroupsHeadings(t){let e=new tf(t,this._groupers);for(let r of this._groups)r.setGroupHeadings(e.getHeadingsForTaskGroup(r.groups))}applyTaskLimit(t){this._groupers.length!==0&&(this._groups.forEach(e=>{e.applyTaskLimit(t)}),this.recalculateTotalTaskCount())}recalculateTotalTaskCount(){let t=[];this._groups.forEach(r=>{t=[...t,...r.tasks]});let e=[...new Set(t)];this._totalTaskCount=e.length}};var ts=class{constructor(t,e){this.tasksFile=t,this.allTasks=[...e],this._queryContext=this.tasksFile?Hy(this.tasksFile,this.allTasks):void 0}static fromAllTasks(t){return new ts(void 0,t)}get queryPath(){var t,e;return(e=(t=this.tasksFile)==null?void 0:t.path)!=null?e:void 0}queryContext(){return this._queryContext}};function MD(n){return ` task$ { n !== 1 ? "s" : "" } ` }var ra=class{constructor(t,e){this.totalTasksCountBeforeLimit=0;this._searchErrorMessage=void 0;this.taskGroups=t,this.totalTasksCountBeforeLimit=e}get searchErrorMessage(){return this._searchErrorMessage}set searchErrorMessage(t){this._searchErrorMessage=t}get totalTasksCount(){return this.taskGroups.totalTasksCount()}totalTasksCountDisplayText(){let t=this.totalTasksCount,e=this.totalTasksCountBeforeLimit;return t===e? ` $ { t } $ { MD ( t ) } ` : ` $ { t } of $ { e } $ { MD ( e ) } ` }get groups(){return this.taskGroups.groups}static fromError(t){let e=new ra(new _o([],[],ts.fromAllTasks([])),0);return e._searchErrorMessage=t,e}};function RD(n){return n.endsWith(" \\ ")}function AD(n){return n.endsWith(" \\ \\ ")}function DY(n){return n.replace(/^[ \t ]*/,"")}function xY(n){return n.replace(/[ \t ]* \\ $ /,"")}function OY(n,t){let e=n;return t&&(e=DY(n)),AD(e)?e=e.slice(0,-1):RD(n)&&(e=xY(e)),e}function PD(n){let t=[],e=!1,r="",i="",s=n+ `
` ;for(let a of s.split( `
` )){let o=OY(a,e);e?(r+= `
` +a,i+=" "+o):(r=a,i=o),AD(a)?e=!1:e=RD(a),e||(i.trim()!==""&&t.push(new yn(r,i)),r="",i="")}return t}var vo=class{static by(t,e,r){let i=this.defaultSorters().map(a=>a.comparator),s=[];for(let a of t)s.push(a.comparator);return e.sort(vo.makeCompositeComparator([...s,...i],r))}static defaultSorters(){return[new ti().createNormalSorter(),new To().createNormalSorter(),new uo().createNormalSorter(),new Js().createNormalSorter(),new co().createNormalSorter()]}static makeCompositeComparator(t,e){return(r,i)=>{for(let s of t){let a=s(r,i,e);if(a!==0)return a}return 0}}};var ND=0,Fn=class{constructor(t,e=void 0){this.statements=[];this._limit=void 0;this._taskGroupLimit=void 0;this._taskLayoutOptions=new Br;this._queryLayoutOptions=new Ki;this.layoutStatements=[];this._filters=[];this._error=void 0;this._sorting=[];this._grouping=[];this._ignoreGlobalQuery=!1;this.hideOptionsRegexp=/^(hide|show) +(.*)/i;this.shortModeRegexp=/^short/i;this.fullModeRegexp=/^full/i;this.explainQueryRegexp=/^explain/i;this.ignoreGlobalQueryRegexp=/^ignore global query/i;this.logger=rn.getLogger("tasks.Query");this.limitRegexp=/^limit (groups )?(to )?( \d +)( tasks?)?/i;this.commentRegexp=/^#.*/;this._queryId=this.generateQueryId(10),this.source=t,this.tasksFile=e;let r=PD(t);for(let i of r){let s=this.expandPlaceholders(i,e);if(this.error!==void 0)return;this.statements.push(...s)}for(let i of this.statements)try{if(this.parseLine(i),this.error!==void 0)return}catch(s){let a;s instanceof Error?a=s.message:a="Unknown error",this.setError(a,i);return}}removeIllegalGlobalQueryInstructions(){this._ignoreGlobalQuery=!1}get filePath(){var t,e;return(e=(t=this.tasksFile)==null?void 0:t.path)!=null?e:void 0}get queryId(){return this._queryId}parseLine(t){let e=t.anyPlaceholdersExpanded;switch(!0){case this.shortModeRegexp.test(e):this._queryLayoutOptions.shortMode=!0,this.saveLayoutStatement(t);break;case this.fullModeRegexp.test(e):this._queryLayoutOptions.shortMode=!1,this.saveLayoutStatement(t);break;case this.explainQueryRegexp.test(e):this._queryLayoutOptions.explainQuery=!0;break;case this.ignoreGlobalQueryRegexp.test(e):this._ignoreGlobalQuery=!0;break;case this.limitRegexp.test(e):this.parseLimit(e);break;case this.parseSortBy(e,t):break;case this.parseGroupBy(e,t):break;case this.hideOptionsRegexp.test(e):this.parseHideOptions(t);break;case this.commentRegexp.test(e):break;case this.parseFilter(e,t):break;default:this.setError("do not understand query",t)}}formatQueryForLogging(){return `
>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>
$ { this . source }
<< << << << << << << << << << << << << << << << << << << << <<
` }expandPlaceholders(t,e){let r=t.anyContinuationLinesRemoved;if(r.includes("{{")&&r.includes("}}")&&this.tasksFile===void 0)return this._error= ` The query looks like it contains a placeholder , with "{{" and "}}"
but no file path has been supplied , so cannot expand placeholder values .
The query is :
$ { r } ` ,[t];let i=r;if(e){let s=fD(e);try{i=dD(r,s)}catch(a){return a instanceof Error?this._error=a.message:this._error="Internal error. expandPlaceholders() threw something other than Error.",[t]}}return this.createStatementsFromExpandedPlaceholders(i,t)}createStatementsFromExpandedPlaceholders(t,e){let r=t.split( `
` ).map(i=>i.trim()).filter(i=>i.length>0);return r.length===1?(e.recordExpandedPlaceholders(r[0]),[e]):r.map((i,s)=>{let a= ` : statement $ { s + 1 } after expansion of placeholder ` ,o=new yn(e.rawInstruction+a,e.anyContinuationLinesRemoved+a);return o.recordExpandedPlaceholders(i),o})}append(t){return this.source===""?t:t.source===""?this:new Fn( ` $ { this . source }
$ { t . source } ` ,this.tasksFile)}explainQuery(){return new ao().explainQuery(this)}get limit(){return this._limit}get taskGroupLimit(){return this._taskGroupLimit}get taskLayoutOptions(){return this._taskLayoutOptions}get queryLayoutOptions(){return this._queryLayoutOptions}get filters(){return this._filters}addFilter(t){this._filters.push(t)}get sorting(){return this._sorting}get grouping(){return this._grouping}get error(){return this._error}setError(t,e){this._error=Fn.generateErrorMessage(e,t)}static generateErrorMessage(t,e){return t.allLinesIdentical()? ` $ { e }
Problem line : "${t.rawInstruction}" ` : ` $ { e }
Problem statement :
$ { t . explainStatement ( " " ) }
` }get ignoreGlobalQuery(){return this._ignoreGlobalQuery}applyQueryToTasks(t){this.debug( ` [ search ] Executing query : $ { this . formatQueryForLogging ( ) } ` );let e=new ts(this.tasksFile,t),r;try{this.filters.forEach(l=>{r=l.statement,t=t.filter(u=>l.filterFunction(u,e))}),r=void 0;let{debugSettings:i}=le(),s=i.ignoreSortInstructions?t:vo.by(this.sorting,t,e),a=s.slice(0,this.limit),o=new _o(this.grouping,a,e);return this._taskGroupLimit!==void 0&&o.applyTaskLimit(this._taskGroupLimit),new ra(o,s.length)}catch(i){let a=Xs("Search failed",i);return r&&(a=Fn.generateErrorMessage(r,a)),ra.fromError(a)}}parseHideOptions(t){let e=t.anyPlaceholdersExpanded,r=e.match(this.hideOptionsRegexp);if(r===null)return;let i=r[1].toLowerCase()==="hide",s=r[2].toLowerCase();if(rD(this._queryLayoutOptions,s,i)){this.saveLayoutStatement(t);return}if(kS(this._taskLayoutOptions,s,!i)){this.saveLayoutStatement(t);return}this.setError("do not understand hide/show option",new yn(e,e))}saveLayoutStatement(t){this.layoutStatements.push(t)}parseFilter(t,e){var i;let r=Su(t);return r!=null?(r.filter?(r.filter.setStatement(e),this._filters.push(r.filter)):this.setError((i=r.error)!=null?i:"Unknown error",e),!0):!1}parseLimit(t){let e=t.match(this.limitRegexp);if(e===null){this.setError("do not understand query limit",new yn(t,t));return}let r=Number.parseInt(e[3],10);e[1]!==void 0?this._taskGroupLimit=r:this._limit=r}parseSortBy(t,e){let r=OD(t);return r?(r.setStatement(e),this._sorting.push(r),!0):!1}parseGroupBy(t,e){let r=CD(t);return r?(r.setStatement(e),this._grouping.push(r),!0):!1}generateQueryId(t){return ND+=1,ND.toString().padStart(t,"0")}debug(t,e){this.logger.debugWithId(this._queryId, ` "${this.filePath}" : $ { t } ` ,e)}};var ib=[{name:"TQ_explain",type:"checkbox",display:"explain",handler:"instruction",trueValue:"explain",falseValue:""},{name:"TQ_short_mode",type:"checkbox",display:"short mode",handler:"instruction",trueValue:"short mode",falseValue:"full mode"},{name:"TQ_show_tree",type:"checkbox",display:"tree",handler:"showAndHide"},{name:"TQ_show_tags",type:"checkbox",display:"tags",handler:"showAndHide"},{name:"TQ_show_id",type:"checkbox",display:"id",handler:"showAndHide"},{name:"TQ_show_depends_on",type:"checkbox",display:"depends on",handler:"showAndHide"},{name:"TQ_show_priority",type:"checkbox",display:"priority",handler:"showAndHide"},{name:"TQ_show_recurrence_rule",type:"checkbox",display:"recurrence rule",handler:"showAndHide"},{name:"TQ_show_on_completion",type:"checkbox",display:"on completion",handler:"showAndHide"},{name:"TQ_show_created_date",type:"checkbox",display:"created date",handler:"showAndHide"},{name:"TQ_show_start_date",type:"checkbox",display:"start date",handler:"showAndHide"},{name:"TQ_show_scheduled_date",type:"checkbox",display:"scheduled date",handler:"showAndHide"},{name:"TQ_show_due_date",type:"checkbox",display:"due date",handler:"showAndHide"},{name:"TQ_show_cancelled_date",type:"checkbox",display:"cancelled date",handler:"showAndHide"},{name:"TQ_show_done_date",type:"checkbox",display:"done date",handler:"showAndHide"},{name:"TQ_show_urgency",type:"checkbox",display:"urgency",handler:"showAndHide"},{name:"TQ_show_backlink",type:"checkbox",display:"backlink",handler:"showAndHide"},{name:"TQ_show_edit_button",type:"checkbox",display:"edit button",handler:"showAndHide"},{name:"TQ_show_postpone_button",type:"checkbox",display:"postpone button",handler:"showAndHide"},{name:"TQ_show_task_count",type:"checkbox",display:"task count",handler:"showAndHide"},{name:"TQ_extra_instructions",type:"text",handler:"addValue"}],Oi=class{source(t){return t?ib.map(r=>this.generateInstruction(t,r)).filter(r=>r!=="").join( `
` ):""}generateInstruction(t,e){let r=t.hasProperty(e.name),i=t.property(e.name);switch(e.handler){case"instruction":return r&&(i?e.trueValue:e.falseValue)||"";case"showAndHide":return r&&(i?"show "+e.display:"hide "+e.display)||"";case"addValue":return r&&i||"";default:throw new Error("Unknown handler type: "+e.handler+".")}}query(t){return new Fn(this.source(t),t)}allPropertyNames(){return ib.map(t=>t.name)}allPropertyNamesSorted(){return this.allPropertyNames().sort((t,e)=>t.localeCompare(e))}propertyType(t){var e,r;return(r=(e=ib.find(i=>i.name===t))==null?void 0:e.type)!=null?r:void 0}metaBindPluginWidgets(){return" \n short mode: ` INPUT [ toggle : TQ _short _mode ] ` \n tree: ` INPUT [ toggle : TQ _show _tree ] ` \n tags: ` INPUT [ toggle : TQ _show _tags ] ` \n id: ` INPUT [ toggle : TQ _show _id ] ` depends on: ` INPUT [ toggle : TQ _show _depends _on ] ` \n priority: ` INPUT [ toggle : TQ _show _priority ] ` \n recurrence rule: ` INPUT [ toggle : TQ _show _recurrence _rule ] ` on completion: ` INPUT [ toggle : TQ _show _on _completion ] ` \n start date: ` INPUT [ toggle : TQ _show _start _date ] ` scheduled date: ` INPUT [ toggle : TQ _show _scheduled _date ] ` due date: ` INPUT [ toggle : TQ _show _due _date ] ` \n created date: ` INPUT [ toggle : TQ _show _created _date ] ` cancelled date: ` INPUT [ toggle : TQ _show _cancelled _date ] ` done date: ` INPUT [ toggle : TQ _show _done _date ] ` \n urgency: ` INPUT [ toggle : TQ _show _urgency ] ` \n backlink: ` INPUT [ toggle : TQ _show _backlink ] ` \n edit button: ` INPUT [ toggle : TQ _show _edit _button ] ` postpone button: ` INPUT [ toggle : TQ _show _postpone _button ] ` \n task count: ` INPUT [ toggle : TQ _show _task _count ] ` \n extra instructions: ` INPUT [ textArea : TQ _extra _instructions ] ` \n explain: ` INPUT [ toggle : TQ _explain ] ` \n "}};function ID(n,t){return L(this,null,function*(){yield n.fileManager.processFrontMatter(t,e=>{let r=new Oi().allPropertyNamesSorted(),i=!1;r.forEach(s=>{s in e||(e[s]=null,i=!0)}),i?new sb.Notice("Properties updated successfully."):new sb.Notice("All supported properties are already present.")})})}var of=class{get app(){return this.plugin.app}constructor({plugin:t}){this.plugin=t,t.addCommand({id:"edit-task",name:"Create or edit task",icon:"pencil",editorCheckCallback:(e,r,i)=>tD(e,r,i,this.app,this.plugin.getTasks())}),t.addCommand({id:"toggle-done",name:"Toggle task done",icon:"check-in-circle",editorCheckCallback:nD}),t.addCommand({id:"add-query-file-defaults-properties",name:"Add all Query File Defaults properties",icon:"settings",checkCallback:e=>{let r=this.app.workspace.getActiveFile();return!r||r.extension!=="md"?!1:(e||this.ensureQueryFileDefaultsFrontmatter(r).catch(console.error),!0)}})}ensureQueryFileDefaultsFrontmatter(t){return L(this,null,function*(){let{app:e}=this;yield ID(e,t)})}};var ns=class{constructor(t=ns.empty){this._source=t}static getInstance(){return ns.instance||(ns.instance=new ns),ns.instance}set(t){this._source=t}query(t=void 0){let e=new Fn(this._source,t);return e.removeIllegalGlobalQueryInstructions(),e}hasInstructions(){return this._source.trim()!==ns.empty}},dr=ns;dr.empty="";Ws();var lf=class{constructor({obsidianEvents:t}){this.logger=rn.getLogger("tasks.Events");this.obsidianEvents=t}onCacheUpdate(t){return this.logger.debug("TasksEvents.onCacheUpdate()"),this.obsidianEvents.on("obsidian-tasks-plugin:cache-update",t)}triggerCacheUpdate(t){this.logger.debug("TasksEvents.triggerCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:cache-update",t)}onRequestCacheUpdate(t){return this.logger.debug("TasksEvents.onRequestCacheUpdate()"),this.obsidianEvents.on("obsidian-tasks-plugin:request-cache-update",t)}triggerRequestCacheUpdate(t){this.logger.debug("TasksEvents.triggerRequestCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:request-cache-update",t)}off(t){this.logger.debug("TasksEvents.off()"),this.obsidianEvents.offref(t)}};var ax=require("obsidian");Mn();Is();Nt();var sx=require("obsidian");Mn();nn();Is();wi();Nt();ii();Sr();Ga();var ab=class{constructor(t){this.newStatus=t}apply(t){return this.isCheckedForTask(t)?[t]:t.handleNewStatusWithRecurrenceInUsersOrder(this.newStatus)}instructionDisplayName(){return ` Change status to : [ $ { this . newStatus . symbol } ] $ { this . newSta
< span class = 'flatpickr-weekday' >
` +g.join("</span><span class='flatpickr-weekday'>")+ `
< / s p a n >
` }}function w(){e.calendarContainer.classList.add("hasWeeks");var h= $ e("div","flatpickr-weekwrapper");h.appendChild( $ e("span","flatpickr-weekday",e.l10n.weekAbbreviation));var g= $ e("div","flatpickr-weeks");return h.appendChild(g),{weekWrapper:h,weekNumbers:g}}function S(h,g){g===void 0&&(g=!0);var k=g?h:h-e.currentMonth;k<0&&e._hidePrevMonthArrow===!0||k>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=k,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Xe("onYearChange"),C()),K(),Xe("onMonthChange"),da())}function M(h,g){if(h===void 0&&(h=!0),g===void 0&&(g=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,g===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var k=gf(e.config),R=k.hours,G=k.minutes,X=k.seconds;p(R,G,X)}e.redraw(),h&&Xe("onChange")}function I(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Xe("onClose")}function j(){e.config!==void 0&&Xe("onDestroy");for(var h=e._handlers.length;h--;)e._handlers[h].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var g=e.calendarContainer.parentNode;if(g.lastChild&&g.removeChild(g.lastChild),g.parentNode){for(;g.firstChild;)g.parentNode.insertBefore(g.firstChild,g);g.parentNode.removeChild(g)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(k){try{delete e[k]}catch(R){}})}function E(h){return e.calendarContainer.contains(h)}function P(h){if(e.isOpen&&!e.config.inline){var g=_n(h),k=E(g),R=g===e.input||g===e.altInput||e.element.contains(g)||h.path&&h.path.indexOf&&(~h.path.indexOf(e.input)||~h.path.indexOf(e.altInput)),G=!R&&!k&&!E(h.relatedTarget),X=!e.config.ignoredFocusElements.some(function(_e){return _e.contains(g)});G&&X&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function W(h){if(!(!h||e.config.minDate&&h<e.config.minDate.getFullYear()||e.config.maxDate&&h>e.config.maxDate.getFullYear())){var g=h,k=e.currentYear!==g;e.currentYear=g||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),k&&(e.redraw(),Xe("onYearChange"),C())}}function de(h,g){var k;g===void 0&&(g=!0);var R=e.parseDate(h,void 0,g);if(e.config.minDate&&R&&vn(R,e.config.minDate,g!==void 0?g:!e.minDateHasTime)<0||e.config.maxDate&&R&&vn(R,e.config.maxDate,g!==void 0?g:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(R===void 0)return!1;for(var G=
` );if(p===void 0)return!1;let b=null;for(let _=0;_<p.length;_=_+1)if(p[_]!==""){b=p[_];break}return b===null?!1:Fe.getInstance().includedIn(b)});if(i.length===0)return;let s=e.sourcePath,a=e.getSectionInfo(t);if(a===null)return;let o=a.text.split( `
` ),l=0,u=[];for(let f=a.lineStart;f<=a.lineEnd;f++){let p=o[f];if(p===void 0)continue;let b=null,T=fe.fromLine({line:p,taskLocation:new Lt(new mt(s),f,a.lineStart,l,b),fallbackDate:null});T!==null&&(u.push(T),l++)}let c=new Mi({obsidianComponent:r,parentUlElement:t,taskLayoutOptions:new Br,queryLayoutOptions:new Ki});for(let f=0;f<i.length;f++){let p=u[f],b=i[f];if(p===void 0||b===void 0)continue;let T=(d=b.getAttr("data-line"))!=null?d:"0",_=Number.parseInt(T,10),O=yield c.renderTaskLine(p,_),D=b.childNodes;for(let q=0;q<D.length;q=q+1){let se=D[q],H=se.nodeName.toLowerCase();H==="div"?O.prepend(se):(H==="ul"||H==="ol")&&O.append(se)}let A=b.querySelectorAll("[data-footnote-id]"),Y=O.querySelectorAll("[data-footnote-id]");if(A.length===Y.length)for(let q=0;q<A.length;q++)Y[q].replaceWith(A[q]);b.replaceWith(O)}})}};var ox=require("@codemirror/view"),lx=require("obsidian");Nt();var ux=()=>ox.ViewPlugin.fromClass(gb),gb=class{constructor(t){this.view=t,this.handleClickEvent=this.handleClickEvent.bind(this),this.view.dom.addEventListener("click",this.handleClickEvent)}destroy(){this.view.dom.removeEventListener("click",this.handleClickEvent)}handleClickEvent(t){let{target:e}=t;if(!e||!(e instanceof HTMLInputElement)||e.type!=="checkbox")return!1;let r=e.closest("ul.plugin-tasks-query-result, div.callout-content");if(r){if(r.matches("div.callout-content")){let f= ` obsidian - tasks - plugin warning : Tasks cannot add or remove completion dates or make the next copy of a recurring task for tasks written inside a callout when you click their checkboxes in Live Preview .
If you wanted Tasks to do these things , please undo your change , then either click the line of the task and use the "Toggle Task Done" command , or switch to Reading View to click the checkbox . ` ;console.warn(f),new lx.Notice(f,45e3)}return!1}let{state:i}=this.view,s=this.view.posAtDOM(e),a=i.doc.lineAt(s),o=fe.fromLine({line:a.text,taskLocation:Lt.fromUnknownPosition(new mt("")),fallbackDate:null});if(o===null)return!1;t.preventDefault();let l=o.toggleWithRecurrenceInUsersOrder(),u=l.map(f=>f.toFileLineString()).join(i.lineBreak),c=i.update({changes:{from:a.from,to:a.to,insert:u}});if(this.view.dispatch(c),l.length===1){let f=l[0].status.symbol!==" ";setTimeout(()=>{e.checked=f},1)}return!0}};var ia=require("obsidian"),dx=require("obsidian");function cx(n,t,e,r=void 0){let i="";t.isEmpty()||(i+= ` Only tasks containing the global filter '${t.get()}' .
` );let s=new ao(" ");function a(c,d){return ` $ { c } :
$ { s . explainQuery ( d ) } ` }let o=new Fn(n,r),l=new Oi().query(r);if(!(o.ignoreGlobalQuery||l.ignoreGlobalQuery)&&e.hasInstructions()){let c=e.query(r);i+=a("Explanation of the global query",c)+ `
` }return l.source!==""&&(i+=a("Explanation of the Query File Defaults (from properties/frontmatter in the query's file)",l)+ `
` ),i+=a("Explanation of this Tasks code block query",o),i}function vf(n,t,e){let i=new Oi().query(e).append(new Fn(n,e));return i.ignoreGlobalQuery?i:t.query(e).append(i)}Gi();Mn();function Cu(n,t,e){t&&n.push(PY(e))}function PY(n){return ` tasks - layout - hide - $ { n } ` }var wf=class{constructor(t){t?this.queryLayoutOptions=t:this.queryLayoutOptions=new Ki}getHiddenClasses(){let t=[],e=[[this.queryLayoutOptions.hideUrgency,"urgency"],[this.queryLayoutOptions.hideBacklinks,"backlinks"],[this.queryLayoutOptions.hideEditButton,"edit-button"],[this.queryLayoutOptions.hidePostponeButton,"postpone-button"]];for(let[r,i]of e)Cu(t,r,i);return this.queryLayoutOptions.shortMode&&t.push("tasks-layout-short-mode"),t}};Is();var kf=class{constructor(t){t?this.taskLayoutOptions=t:this.taskLayoutOptions=new Br}generateHiddenClasses(){let t=[];return this.taskLayoutOptions.toggleableComponents.forEach(e=>{Cu(t,!this.taskLayoutOptions.isShown(e),e)}),Cu(t,!this.taskLayoutOptions.areTagsShown(),"tags"),t}};nn();var Mu=class{constructor(t){this.label=t,this.start()}start(){!this.recordTimings()||performance.mark(this.labelForStart())}finish(){!this.recordTimings()||(performance.mark(this.labelForEnd()),performance.measure(this.label,this.labelForStart(),this.labelForEnd()),this.printDuration())}printDuration(){let t=performance.getEntriesByName(this.label),e=t[t.length-1];e?console.log(this.label+":",e.duration.toFixed(2),"milliseconds"):console.log( ` Measurement for $ { this . label } not found ` )}labelForStart(){return ` $ { this . label } - start ` }labelForEnd(){return ` $ { this . label } - end ` }recordTimings(){let{debugSettings:t}=le();return t.recordTimings}};Nt();var yb=require("obsidian");var as=class extends rs{constructor(t,e,r=ni){super(r);let i=(u,c,d,f,p,b)=>{var D;let T=!1,_=Eo(e);if(_){let{postponedDate:A}=b(e,_,d,f);(D=e[_])!=null&&D.isSame(A,"day")&&(T=!0)}let O=p(e,f,d);c.setChecked(T).setTitle(O).onClick(()=>as.postponeOnClickCallback(u,e,f,d,b,r))},s=XD,a=GD;this.addItem(u=>i(t,u,"days",0,s,a)),this.addItem(u=>i(t,u,"day",1,s,a)),this.addSeparator();let o=pb,l=fb;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,ZD,BD))}static postponeOnClickCallback(o,l,u,c){return L(this,arguments,function*(t,e,r,i,s=fb,a=ni){var b;let d=Eo(e);if(d===null){let T=" \u 26A0 \u FE0F Postponement requires a date: due, scheduled or start.";return new yb.Notice(T,1e4)}let{postponedDate:f,postponedTask:p}=s(e,d,i,r);(b=e[d])!=null&&b.isSame(f,"day")||(yield a(e,p),as.postponeSuccessCallback(t,d,f))})}static postponeSuccessCallback(t,e,r){t.style.pointerEvents="none";let i=KD(r,e);new yb.Notice(i,2e3)}};var Sf=class{constructor(t,e,r,i,s,a=Mi.obsidianMarkdownRenderer){switch(this.source=e,this._tasksFile=r,this.renderMarkdown=i,this.obsidianComponent=s,this.textRenderer=a,t){case"block-language-tasks":this.query=this.makeQueryFromSourceAndTasksFile(),this.queryType="tasks";break;default:this.query=this.makeQueryFromSourceAndTasksFile(),this.queryType="tasks";break}}makeQueryFromSourceAndTasksFile(){return vf(this.source,dr.getInstance(),this.tasksFile)}get tasksFile(){return this._tasksFile}setTasksFile(t){this._tasksFile=t,this.query=this.makeQueryFromSourceAndTasksFile()}get filePath(){var t,e;return(e=(t=this.tasksFile)==null?void 0:t.path)!=null?e:void 0}render(t,e,r,i){return L(this,null,function*(){t==="Warm"&&this.query.error===void 0?yield this.renderQuerySearchResults(e,t,r,i):this.query.error!==void 0?this.renderErrorMessage(r,this.query.error):this.renderLoadingMessage(r)})}renderQuerySearchResults(t,e,r,i){return L(this,null,function*(){let s=this.explainAndPerformSearch(e,t,r);if(s.searchErrorMessage!==void 0){this.renderErrorMessage(r,s.searchErrorMessage);return}yield this.renderSearchResults(s,r,i)})}explainAnd
` ,this._markdown+= ` $ { e }
` }addRow(t){let e=this.makeRowText(t);this._markdown+= ` $ { e }
` }addRowIfNew(t){let e=this.makeRowText(t);this._markdown.includes(e)||(this._markdown+= ` $ { e }
` )}makeRowText(t){let e="|";return t.forEach(r=>{e+= ` $ { r } | ` }),e}};gs();er();Sr();function fx(n,t){return n.findIndex(e=>e.symbol===t)}function os(n){return n===""?n:" ` "+(n!==" "?n:" space ")+" ` "}function LY(n,t){let e=ge.getTypeForUnknownSymbol(n.symbol);if(n.type===e||e==="TODO"&&n.symbol!==" ")return;let r=os(n.symbol),i=os(e);t.push(N.t("reports.statusRegistry.messages.notConventionalType",{symbol:r,type:i}))}function UY(n,t,e){let r=t.nextStatusSymbol,i=fx(n,r);if(i===-1){let a=os(r);e.push(N.t("reports.statusRegistry.messages.nextSymbolUnknown",{symbol:a}));return}if(t.type!=="DONE")return;let s=n[i];if(s){if(s.type!=="TODO"&&s.type!=="IN_PROGRESS"){let a="https://publish.obsidian.md/tasks/Getting+Started/Statuses/Recurring+Tasks+and+Custom+Statuses",o=os(s.type),l=[N.t("reports.statusRegistry.messages.wrongTypeAfterDone.line1",{nextType:o}),N.t("reports.statusRegistry.messages.wrongTypeAfterDone.line2"),N.t("reports.statusRegistry.messages.wrongTypeAfterDone.line3",{helpURL:a})].join("<br>");e.push(l)}}else e.push(N.t("reports.statusRegistry.messages.cannotFindNextStatus"))}function YY(n,t,e){let r=[];if(t.symbol===ge.EMPTY.symbol)return r.push(N.t("reports.statusRegistry.messages.emptySymbol")),r;if(fx(n,t.symbol)!=e){let s=os(t.symbol);return r.push(N.t("reports.statusRegistry.messages.duplicateSymbol",{symbol:s})),r}return LY(t,r),UY(n,t,r),r}function px(n){let t=new Df([N.t("reports.statusRegistry.columnHeadings.statusSymbol"),N.t("reports.statusRegistry.columnHeadings.nextStatusSymbol"),N.t("reports.statusRegistry.columnHeadings.statusName"),N.t("reports.statusRegistry.columnHeadings.statusType"),N.t("reports.statusRegistry.columnHeadings.problems")]),e=et.allStatuses(n);return e.forEach((r,i)=>{t.addRow([os(r.symbol),os(r.nextStatusSymbol),r.name,os(r.type),YY(e,r,i).join("<br>")])}),t.markdown}function mx(n,t,e,r){let s=px(n),a=t.mermaidDiagram(!0);return ` # $ { e }
# # $ { N . t ( "reports.statusRegistry.about.title" ) }
$ { N . t ( "reports.statusRegistry.about.createdBy" , { version : r } ) }
$ { N . t ( "reports.statusRegistry.about.updateReport.line1" ) }
- $ { N . t ( "reports.statusRegistry.about.updateReport.line2" ) }
- $ { N . t ( "reports.statusRegistry.about.updateReport.line3" ) }
$ { N . t ( "reports.statusRegistry.about.deleteFileAnyTime" ) }
# # $ { N . t ( "reports.statusRegistry.statusSettings.title" ) }
<!--
$ { N . t ( "reports.statusRegistry.statusSettings.comment.line1" ) }
$ { N . t ( "reports.statusRegistry.statusSettings.comment.line2" ) }
$ { N . t ( "reports.statusRegistry.statusSettings.comment.line3" ) }
-- >
$ { N . t ( "reports.statusRegistry.statusSettings.theseAreStatusValues" ) }
$ { s }
# # $ { N . t ( "reports.statusRegistry.loadedSettings.title" ) }
<!-- $ { N . t ( "reports.statusRegistry.loadedSettings.switchToLivePreview" ) } -- >
$ { N . t ( "reports.statusRegistry.loadedSettings.settingsActuallyUsed" ) }
$ { a } ` }gs();function hx(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],['"',"Quote","x","TODO"],["0","Speech bubble 0","0","NON_TASK"],["1","Speech bubble 1","1","NON_TASK"],["2","Speech bubble 2","2","NON_TASK"],["3","Speech bubble 3","3","NON_TASK"],["4","Speech bubble 4","4","NON_TASK"],["5","Speech bubble 5","5","NON_TASK"],["6","Speech bubble 6","6","NON_TASK"],["7","Speech bubble 7","7","NON_TASK"],["8","Speech bubble 8","8","NON_TASK"],["9","Speech bubble 9","9","NON_TASK"]]}function gx(){return[[" ","incomplete","x","TODO"],["x","complete / done"," ","DONE"],["-","cancelled"," ","CANCELLED"],[">","deferred","x","TODO"],["/","in progress, or half-done","x","IN_PROGRESS"],["!","Important","x","TODO"],["?","question","x","TODO"],["R","review","x","TODO"],["+","Inbox / task that should be processed later","x","TODO"],["b","bookmark","x","TODO"],["B","brainstorm","x","TODO"],["D","deferred or scheduled","x","TODO"],["I","Info","x","TODO"],["i","idea","x","TODO"],["N","note","x","TODO"],["Q","quote","x","TODO"],["W","win / success / reward","x","TODO"],["P","pro","x","TODO"],["C","con","x","TODO"]]}function yx(){return[[" ","To Do","x","TODO"],["/","In Progress","x","IN_PROGRESS"],["x","Done"," ","DONE"],["-","Cancelled"," ","CANCELLED"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["i","Infomation","x","TODO"],["S","Amount","x","TODO"],["*","Star","x","TODO"],["b","Bookmark","x","TODO"],[" \u 201C","Quote","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["I","Idea","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["u","Up","x","TODO"],["d","Down","x","TODO"]]}function bx(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],[">","Deferred","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["r","Review","x","TODO"]]}function Tx(){return[[" ","Unchecked","x","TODO"],["x","Regular"," ","DONE"],["X","Checked"," ","DONE"],["-","Dropped"," ","CANCELLED"],[">","Forward","x","TODO"],["D","Date","x","TODO"],["?","Question","x","TODO"],["/","Half Done","x","IN_PROGRESS"],["+","Add","x","TODO"],["R","Research","x","TODO"],["!","Important","x","TODO"],["i","Idea","x","TODO"],["B","Brainstorm","x","TODO"],["P","Pro","x","TODO"],["C","Con","x","TODO"],["Q","Quote","x","TODO"],["N","Note","x","TODO"],["b","Bookmark","x","TODO"],["I","Information","x","TODO"],["p","Paraphrase","x","TODO"],["L","Location","x","TODO"],["E","Example","x","TODO"],["A","Answer","x","TODO"],["r","Reward","x","TODO"],["c","Choice","x","TODO"],["d","Doing","x","IN_PROGRESS"],["T","Time","x","TODO"],["@","Character / Person","x","TODO"],["t","Talk","x","TODO"],["O","Outline / Plot","x","TODO"],["~","Conflict","x","TODO"],["W","World","x","TODO"],["f","Clue / Find","x","TODO"],["F","Foreshadow","x","TODO"],["H","Favorite / Health","x","TODO"],["&","Symbolism","x","TODO"],["s","Secret","x","TODO"]]}function _x(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],["f","Fire","x","TODO"],["k","Key","x","TODO"],["w","Win","x","TODO"],["u","Up","x","TODO"],["d","Down","x","TODO"]]}function vx(){return[[" ","to-do","x",
` )+ `
` +N.t("modals.customStatusModal.fixErrorsBeforeSaving");new Ir.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?Ln.removeValidationError(e):Ln.setValidationError(e)}};var ln=class extends Ce.PluginSettingTab{constructor({plugin:e}){super(e.app,e);this.customFunctions={insertTaskCoreStatusSettings:this.insertTaskCoreStatusSettings.bind(this),insertCustomTaskStatusSettings:this.insertCustomTaskStatusSettings.bind(this)};this.plugin=e}saveSettings(e){return L(this,null,function*(){yield this.plugin.saveSettings(),e&&this.display()})}display(){let{containerEl:e}=this;e.empty(),this.containerEl.addClass("tasks-settings"),e.createEl("p",{cls:"tasks-setting-important",text:N.t("settings.changeRequiresRestart")}),new Ce.Setting(e).setName(N.t("settings.format.name")).setDesc(ln.createFragmentWithHTML( ` < p > $ { N . t ( "settings.format.description.line1" ) } < / p > < p > $ { N . t ( " s e t t i n g s . f o r m a t . d e s c r i p t i o n . l i n e 2 " ) } < / p > ` + t h i s . s e e T h e D o c u m e n t a t i o n ( " h t t p s : / / p u b l i s h . o b s i d i a n . m d / t a s k s / R e f e r e n c e / T a s k + F o r m a t s / A b o u t + T a s k + F o r m a t s " ) ) ) . a d d D r o p d o w n ( c = > { f o r ( l e t d o f O b j e c t . k e y s ( E r ) ) c . a d d O p t i o n ( d , E r [ d ] . g e t D i s p l a y N a m e ( ) ) ; c . s e t V a l u e ( l e ( ) . t a s k F o r m a t ) . o n C h a n g e ( d = > L ( t h i s , n u l l , f u n c t i o n * ( ) { f t ( { t a s k F o r m a t : d } ) , y i e l d t h i s . p l u g i n . s a v e S e t t i n g s ( ) } ) ) } ) , n e w C e . S e t t i n g ( e ) . s e t N a m e ( N . t ( " s e t t i n g s . g l o b a l F i l t e r . h e a d i n g " ) ) . s e t H e a d i n g ( ) ; l e t r = n u l l ; n e w C e . S e t t i n g ( e ) . s e t N a m e ( N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . n a m e " ) ) . s e t D e s c ( l n . c r e a t e F r a g m e n t W i t h H T M L ( ` < p > < b > $ { N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . d e s c r i p t i o n . l i n e 1 " ) } < / b > < / p > < p > $ { N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . d e s c r i p t i o n . l i n e 2 " ) } < p > < p > $ { N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . d e s c r i p t i o n . l i n e 3 " ) } < / b r > $ { N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . d e s c r i p t i o n . l i n e 4 " ) } < / p > ` + t h i s . s e e T h e D o c u m e n t a t i o n ( " h t t p s : / / p u b l i s h . o b s i d i a n . m d / t a s k s / G e t t i n g + S t a r t e d / G l o b a l + F i l t e r " ) ) ) . a d d T e x t ( c = > { c . s e t P l a c e h o l d e r ( N . t ( " s e t t i n g s . g l o b a l F i l t e r . f i l t e r . p l a c e h o l d e r " ) ) . s e t V a l u e ( F e . g e t I n s t a n c e ( ) . g e t ( ) ) . o n C h a n g e ( d = > L ( t h i s , n u l l , f u n c t i o n * ( ) { f t ( { g l o b a l F i l t e r : d } ) , F e . g e t I n s t a n c e ( ) . s e t ( d ) , y i e l d t h i s . p l u g i n . s a v e S e t t i n g s ( ) , r i ( r , d . l e n g t h > 0 ) } ) ) } ) , r = n e w C e . S e t t i n g ( e ) . s e t N a m e ( N . t ( " s e t t i n g s . g l o b a l F i l t e r . r e m o v e F i l t e r . n a m e " ) ) . s e t D e s c ( N . t ( " s e t t i n g s . g l o b a l F i l t e r . r e m o v e F i l t e r . d e s c r i p t i o n " ) ) . a d d T o g g l e ( c = > { l e t d = l e ( ) ; c . s e t V a l u e ( d . r e m o v e G l o b a l F i l t e r ) . o n C h a n g e ( f = > L ( t h i s , n u l l , f u n c t i o n * ( ) { f t ( { r e m o v e G l o b a l F i l t e r : f } ) , F e . g e t I n s t a n c e ( ) . s e t R e m o v e G l o b a l F i l t e r ( f ) , y i e l d t h i s . p l u g i n . s a v e S e t t i n g s ( ) } ) ) } ) , r i ( r , l e ( ) . g l o b a l F i l t e r . l e n g t h > 0 ) , n e w C e . S e t t i n g ( e ) . s e t N a m e ( N . t ( " s e t t i n g s . g l o b a l Q u e r y . h e a d i n g " ) ) . s e t H e a d i n g ( ) , $ Y ( n e w C e . S e t t i n g ( e ) . s e t D e s c ( l n . c r e a t e F r a g m e n t W i t h H T M L ( ` < p > $ { N . t ( " s e t t i n g s . g l o b a l Q u e r y . q u e r y . d e s c r i p t i o n " ) } < / p > ` + t h i s . s e e T h e D o c u m e n t a t i o n ( " h t t p s : / / p u b l i s h . o b s i d i a n . m d / t a s k s / Q u e r i e s / G l o b a l + Q u e r y " ) ) ) . a d d T e x t A r e a ( c = > { l e t d = l e ( ) ; c . i n p u t E l . r o w s = 4 , c . s e t P l a c e h o l d e r ( " # " + N . t ( " s e t t i n g s . g l o b a l Q u e r y . q u e r y . p l a c e h o l d e r " ) ) . s e t V a l u e ( d . g l o b a l Q u e r y ) . o n C h a n g e ( f = > L ( t h i s , n u l l , f u n c t i o n * ( ) { f t ( { g l o b a l Q u e r y : f } ) , d r . g e t I n s t a n c e ( ) . s e t ( f ) , y i e l d t h i s . p l u g i n . s a v e S e t t i n g s ( ) } ) ) } ) ) , n e w C e . S e t t i n g ( e ) . s e t N a m e ( N . t ( " s e t t i n g s . s t a t u s e s . h e a d i n g " ) ) . s e t H e a d i n g ( ) ; l e t { h e a d i n g O p e n e d : i } = l e ( ) ; [ { t e x t : N . t ( " s e t t i n g s . s t a t u s e s . c o r e S t a t u s e s . h e a d i n g " ) , l e v e l : " h 3 " , c l a s s : " " , o p e n : ! 0 , n o t i c e : { c l a s s : " s e t t i n g - i t e m - d e s c r i p t i o n " , t e x t : n u l l , h t m l : " < p > " + N . t ( " s e t t i n g s . s t a t u s e s . c o r e S t a t u s e s . d e s c r i p t i o n . l i n e 1 " ) + " < / p > < p > " + N . t ( " s e t t i n g s . s t a t u s e s . c o r e S t a t u s e s . d e s c r i p t i o n . l i n e 2 " ) + " < / p > " } , s e t t i n g s : [ { n a m e : " " , d e s c r i p t i o n : " " , t y p e : " f u n c t i o n " , i n i t i a l V a l u e : " " , p l a c e h o l d e r : " " , s e t t i n g N a m e : " i n s e r t T a s k C o r e S t a t u s S e t t i n g s " , f e a t u r e F l a g : " " , n o t i c e : n u l l } ] } , { t e x t : N . t ( " s e t t i n g s . s t a t u s e s . c u s t o m S t a t u s e s . h e a d i n g " ) , l e v e l : " h 3 " , c l a s s : " " , o p e n : ! 0 , n o t i c e : { c l a s s : " s e t t i n g - i t e m - d e s c r i p t i o n " , t e x t : n u l l , h t m l : " < p > " + N . t ( " s e t t i n g s . s t a t u s e s . c u s t o m S t a t u s e s . d e s c r i p t i o n . l i n e 1 " ) + " < / p > < p > " + N . t ( " s e t t i n g s . s t a t u s e s . c u s t o m S t a t u s e s . d e s c r i p t i o n . l i n e 2 " ) + " < / p > < p > " + N . t ( " s e t t i n g s . s t a t u s e s . c u s t o m S t a t u s e s . d e s c r i p t i o n .
This message has been written to the console .
` ,1e4)}var xf=class extends ls.EditorSuggest{constructor(e,r,i){super(e);this.settings=r,this.plugin=i,e.scope.register([],"Tab",()=>{var a;let s=(a=this.context)==null?void 0:a.editor;return s?(s.exec("indentMore"),!1):!0})}onTrigger(e,r,i){if(!this.settings.autoSuggestInEditor)return null;let s=r.getLine(e.line);return NS(s,e,r)?{start:{line:e.line,ch:0},end:{line:e.line,ch:s.length},query:s}:null}getSuggestions(e){var c,d,f;let r=e.query,i=e.editor.getCursor(),s=this.plugin.getTasks(),a=s.find(p=>p.taskLocation.path==e.file.path&&p.taskLocation.lineNumber==i.line),o=this.getMarkdownFileInfo(e),l=this.canSaveEdits(o);return((f=(d=(c=au()).buildSuggestions)==null?void 0:d.call(c,r,i.ch,this.settings,s,l,a))!=null?f:[]).map(p=>me(U({},p),{context:e}))}getMarkdownFileInfo(e){return e.editor.cm.state.field(ls.editorInfoField)}canSaveEdits(e){return e instanceof ls.MarkdownView}renderSuggestion(e,r){r.setText(e.displayText)}selectSuggestion(e,r){return L(this,null,function*(){var u,c,d;let i=e.context.editor;if(e.suggestionType==="empty"){this.close();let f=new KeyboardEvent("keydown",{code:"Enter",key:"Enter"});(c=(u=i==null?void 0:i.cm)==null?void 0:u.contentDOM)==null||c.dispatchEvent(f);return}if(e.taskItDependsOn!=null){let f=Zc(e.taskItDependsOn,this.plugin.getTasks().map(p=>p.id));if(e.appendText+= ` $ { f . id } ` ,e.taskItDependsOn!==f)if(e.context.file.path==f.path){let p=e.taskItDependsOn.originalMarkdown,b={line:e.taskItDependsOn.lineNumber,ch:0},T={line:e.taskItDependsOn.lineNumber,ch:p.length},_=e.context.editor.getRange(b,T);if(_!==p){let O= ` Error adding new ID , due to mismatched data in Tasks memory and the editor :
task line in memory : '${e.taskItDependsOn.originalMarkdown}'
task line in editor : '${_}'
file : '${f.path}'
` ;qY(O);return}e.context.editor.replaceRange(f.toFileLineString(),b,T)}else gn({originalTask:e.taskItDependsOn,newTasks:f})}let s=e.context.editor.getCursor(),a={line:s.line,ch:(d=e.insertAt)!=null?d:s.ch},o=e.insertSkip?{line:s.line,ch:a.ch+e.insertSkip}:void 0;e.context.editor.replaceRange(e.appendText,a,o),e.context.editor.setCursor({line:s.line,ch:a.ch+e.appendText.length});let l=this.getMarkdownFileInfo(e.context);this.canSaveEdits(l)&&(yield l.save())})}};Ga();var Sx=(n,t)=>{let e,r=new Promise((a,o)=>{e=a});return t(n,a=>{let o=a.map(l=>l.toFileLineString()).join( `
` );e(o)}).open(),r};var Ex=(n,t)=>{let e=Sd({line:"",path:""});return new zi({app:n,task:e,onSubmit:t,allTasks:[]})};var Dx=n=>({createTaskLineModal:()=>Sx(n,Ex),executeToggleTaskDoneCommand:(t,e)=>Uy(t,e).text});Mn();var Of=class extends xx.Plugin{get apiV1(){return Dx(this.app)}onload(){return L(this,null,function*(){yield zb(),rn.registerConsoleLogger(),cy("info",N.t("main.loadingPlugin",{name:this.manifest.name,version:this.manifest.version})),yield this.loadSettings();let{loggingOptions:e}=le();rn.configure(e),this.addSettingTab(new Ru({plugin:this})),WE({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace}),yield this.loadTaskStatuses();let r=new lf({obsidianEvents:this.app.workspace});this.cache=new $ s({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace,events:r}),this.inlineRenderer=new _f({plugin:this}),this.queryRenderer=new Ef({plugin:this,events:r}),this.setObsidianPropertiesTypes(),this.registerEditorExtension(ux()),this.registerEditorSuggest(new xf(this.app,le(),this)),new of({plugin:this})})}loadTaskStatuses(){return L(this,null,function*(){let{statusSettings:e}=le();et.applyToStatusRegistry(e,Be.getInstance())})}onunload(){var e;cy("info",N.t("main.unloadingPlugin",{name:this.manifest.name,version:this.manifest.version})),(e=this.cache)==null||e.unload()}loadSettings(){return L(this,null,function*(){let e=yield this.loadData();ft(e),e=le(),Fe.getInstance().set(e.globalFilter),Fe.getInstance().setRemoveGlobalFilter(e.removeGlobalFilter),dr.getInstance().set(e.globalQuery),yield this.loadTaskStatuses()})}saveSettings(){return L(this,null,function*(){yield this.saveData(le())})}getTasks(){return this.cache===void 0?[]:this.cache.getTasks()}setObsidianPropertiesTypes(){var e;try{let r=this.app.metadataTypeManager,i=r.getAllProperties(),s=new Oi;for(let a of s.allPropertyNamesSorted()){let o=s.propertyType(a);((e=i[a])==null?void 0:e.type)!==o&&r.setType(a,o)}}catch(r){console.error("setObsidianPropertiesTypes error",r)}}};
/ * !
* EventEmitter2
* https : //github.com/hij1nx/EventEmitter2
*
* Copyright ( c ) 2013 hij1nx
* Licensed under the MIT license .
* /
/ * !
* mustache . js - Logic - less { { mustache } } templates with JavaScript
* http : //github.com/janl/mustache.js
* /
/* nosourcemap */