/*
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 $x=Object.create;var Wo=Object.defineProperty,Wx=Object.defineProperties,qx=Object.getOwnPropertyDescriptor,Hx=Object.getOwnPropertyDescriptors,Gx=Object.getOwnPropertyNames,Nu=Object.getOwnPropertySymbols,Bx=Object.getPrototypeOf,Ff=Object.prototype.hasOwnProperty,Rb=Object.prototype.propertyIsEnumerable;var Ob=(r,t,e)=>t in r?Wo(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,F=(r,t)=>{for(var e in t||(t={}))Ff.call(t,e)&&Ob(r,e,t[e]);if(Nu)for(var e of Nu(t))Rb.call(t,e)&&Ob(r,e,t[e]);return r},de=(r,t)=>Wx(r,Hx(t));var pa=(r,t)=>{var e={};for(var n in r)Ff.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&Nu)for(var n of Nu(r))t.indexOf(n)<0&&Rb.call(r,n)&&(e[n]=r[n]);return e};var X=(r,t)=>()=>(r&&(t=r(r=0)),t);var x=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Cb=(r,t)=>{for(var e in t)Wo(r,e,{get:t[e],enumerable:!0})},Mb=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gx(t))!Ff.call(r,i)&&i!==e&&Wo(r,i,{get:()=>t[i],enumerable:!(n=qx(t,i))||n.enumerable});return r};var qo=(r,t,e)=>(e=r!=null?$x(Bx(r)):{},Mb(t||!r||!r.__esModule?Wo(e,"default",{value:r,enumerable:!0}):e,r)),Ab=r=>Mb(Wo({},"__esModule",{value:!0}),r);var I=(r,t,e)=>new Promise((n,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?n(l.value):Promise.resolve(l.value).then(s,a);o((e=e.apply(r,t)).next())});var Te,Ho,Pb,Vx,zx,Nb,Ib,Go,Fb,Kx,Fu,Qx,qb,ma,Zx,Xx,Uf,Jx,eO,tO,Yf,Lu,nO,ga,Ur,ya,Uu,Hb,Lb,ba,Yu,Ub,Yb,jf,jb,Lf,$f,rO,ha,Wf,iO,qf,$b,Wb,Iu,sO,gs,yt,uj,cj,dj,fj,pj,mj,hj,gj,yj,bj,Tj,vj,_j,wj,Gb=X(()=>{Te=r=>typeof r=="string",Ho=()=>{let r,t,e=new Promise((n,i)=>{r=n,t=i});return e.resolve=r,e.reject=t,e},Pb=r=>r==null?"":""+r,Vx=(r,t,e)=>{r.forEach(n=>{t[n]&&(e[n]=t[n])})},zx=/###/g,Nb=r=>r&&r.indexOf("###")>-1?r.replace(zx,"."):r,Ib=r=>!r||Te(r),Go=(r,t,e)=>{let n=Te(t)?t.split("."):t,i=0;for(;i<n.length-1;){if(Ib(r))return{};let s=Nb(n[i]);!r[s]&&e&&(r[s]=new e),Object.prototype.hasOwnProperty.call(r,s)?r=r[s]:r={},++i}return Ib(r)?{}:{obj:r,k:Nb(n[i])}},Fb=(r,t,e)=>{let{obj:n,k:i}=Go(r,t,Object);if(n!==void 0||t.length===1){n[i]=e;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=Go(r,a,Object);for(;o.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),o=Go(r,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},Kx=(r,t,e,n)=>{let{obj:i,k:s}=Go(r,t,Object);i[s]=i[s]||[],i[s].push(e)},Fu=(r,t)=>{let{obj:e,k:n}=Go(r,t);if(!!e&&!!Object.prototype.hasOwnProperty.call(e,n))return e[n]},Qx=(r,t,e)=>{let n=Fu(r,e);return n!==void 0?n:Fu(t,e)},qb=(r,t,e)=>{for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in r?Te(r[n])||r[n]instanceof String||Te(t[n])||t[n]instanceof String?e&&(r[n]=t[n]):qb(r[n],t[n],e):r[n]=t[n]);return r},ma=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Zx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Xx=r=>Te(r)?r.replace(/[&<>"'\/]/g,t=>Zx[t]):r,Uf=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 n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}},Jx=[" ",",","?","!",";"],eO=new Uf(20),tO=(r,t,e)=>{t=t||"",e=e||"";let n=Jx.filter(a=>t.indexOf(a)<0&&e.indexOf(a)<0);if(n.length===0)return!0;let i=eO.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`),s=!i.test(r);if(!s){let a=r.indexOf(e);a>0&&!i.test(r.substring(0,a))&&(s=!0)}return s},Yf=function(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[t])return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;let n=t.split(e),i=r;for(let s=0;s<n.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=s;l<n.length;++l)if(l!==s&&(o+=e),o+=n[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;s+=l-s+1;break}i=a}return i},Lu=r=>r==null?void 0:r.replace("_","-"),nO={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,t){var e,n;(n=(e=console==null?void 0:console[r])==null?void 0:e.apply)==null||n.call(e,console,t)}},ga=class{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||nO,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(Te(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new ga(this.logger,F({prefix:`${this.prefix}:${t}:`},this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ga(this.logger,t)}},Ur=new ga,ya=class{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let i=this.observers[n].get(e)||0;this.observers[n].set(e,i+1)}),this}off(t,e){if(!!this.observers[t]){if(!e){delete this.observers[t];return}this.observers[t].delete(e)}}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o.apply(o,[t,...n])})}},Uu=class extends ya{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){var u,c;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o;t.indexOf(".")>-1?o=t.split("."):(o=[t,e],n&&(Array.isArray(n)?o.push(...n):Te(n)&&s?o.push(...n.split(s)):o.push(n)));let l=Fu(this.data,o);return!l&&!e&&!n&&t.indexOf(".")>-1&&(t=o[0],e=o[1],n=o.slice(2).join(".")),l||!a||!Te(n)?l:Yf((c=(u=this.data)==null?void 0:u[t])==null?void 0:c[e],n,s)}addResource(t,e,n,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=[t,e];n&&(o=o.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(o=t.split("."),i=e,e=o[1]),this.addNamespaces(e),Fb(this.data,o,i),s.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let s in n)(Te(n[s])||Array.isArray(n[s]))&&this.addResource(t,e,s,n[s],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=e,e=o[1]),this.addNamespaces(e);let l=Fu(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?qb(l,n,s):l=F(F({},l),n),Fb(this.data,o,l),a.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return this.getResource(t,e)!==void 0}getResourceBundle(t,e){return e||(e=this.options.defaultNS),this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(i=>e[i]&&Object.keys(e[i]).length>0)}toJSON(){return this.data}},Hb={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,t,e,n,i){return r.forEach(s=>{var a,o;t=(o=(a=this.processors[s])==null?void 0:a.process(t,e,n,i))!=null?o:t}),t}},Lb={},ba=class extends ya{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vx(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=e,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ur.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let n=this.resolve(t,e);return(n==null?void 0:n.res)!==void 0}extractFromKey(t,e){let n=e.nsSeparator!==void 0?e.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let i=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator,s=e.ns||this.options.defaultNS||[],a=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!tO(t,n,i);if(a&&!o){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Te(s)?[s]:s};let u=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return{key:t,namespaces:Te(s)?[s]:s}}translate(t,e,n){if(typeof e!="object"&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),typeof e=="object"&&(e=F({},e)),e||(e={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let i=e.returnDetails!==void 0?e.returnDetails:this.options.returnDetails,s=e.keySeparator!==void 0?e.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(t[t.length-1],e),l=o[o.length-1],u=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(c){let Y=e.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${Y}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:`${l}${Y}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:a}let d=this.resolve(t,e),f=d==null?void 0:d.res,p=(d==null?void 0:d.usedKey)||a,b=(d==null?void 0:d.exactUsedKey)||a,T=Object.prototype.toString.apply(f),v=["[object Number]","[object Function]","[object RegExp]"],O=e.joinArrays!==void 0?e.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,P=!Te(f)&&typeof f!="boolean"&&typeof f!="number";if(E&&f&&P&&v.indexOf(T)<0&&!(Te(O)&&Array.isArray(f))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,de(F({},e),{ns:o})):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=Y,d.usedParams=this.getUsedParamsDetails(e),d):Y}if(s){let Y=Array.isArray(f),q=Y?[]:{},ae=Y?b:p;for(let H in f)if(Object.prototype.hasOwnProperty.call(f,H)){let J=`${ae}${s}${H}`;q[H]=this.translate(J,de(F({},e),{joinArrays:!1,ns:o})),q[H]===J&&(q[H]=f[H])}f=q}}else if(E&&Te(O)&&Array.isArray(f))f=f.join(O),f&&(f=this.extendTranslation(f,t,e,n));else{let Y=!1,q=!1,ae=e.count!==void 0&&!Te(e.count),H=ba.hasDefaultValue(e),J=ae?this.pluralResolver.getSuffix(u,e.count,e):"",ye=e.ordinal&&ae?this.pluralResolver.getSuffix(u,e.count,{ordinal:!1}):"",we=ae&&!e.ordinal&&e.count===0,V=we&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${J}`]||e[`defaultValue${ye}`]||e.defaultValue;!this.isValidLookup(f)&&H&&(Y=!0,f=V),this.isValidLookup(f)||(q=!0,f=a);let R=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:f,ee=H&&V!==f&&this.options.updateMissing;if(q||Y||ee){if(this.logger.log(ee?"updateKey":"missingKey",u,l,a,ee?V:f),s){let y=this.resolve(a,de(F({},e),{keySeparator:!1}));y&&y.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[],le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if(this.options.saveMissingTo==="fallback"&&le&&le[0])for(let y=0;y<le.length;y++)W.push(le[y]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(e.lng||this.language):W.push(e.lng||this.language);let m=(y,_,w)=>{var C;let S=H&&w!==f?w:R;this.options.missingKeyHandler?this.options.missingKeyHandler(y,l,_,S,ee,e):(C=this.backendConnector)!=null&&C.saveMissing&&this.backendConnector.saveMissing(y,l,_,S,ee,e),this.emit("missingKey",y,l,_,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ae?W.forEach(y=>{let _=this.pluralResolver.getSuffixes(y,e);we&&e[`defaultValue${this.options.pluralSeparator}zero`]&&_.indexOf(`${this.options.pluralSeparator}zero`)<0&&_.push(`${this.options.pluralSeparator}zero`),_.forEach(w=>{m([y],a+w,e[`defaultValue${w}`]||V)})}):m(W,a,V))}f=this.extendTranslation(f,t,e,d,n),q&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(q||Y)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,Y?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(e),d):f}extendTranslation(t,e,n,i,s){var u,c;var a=this;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,F(F({},this.options.interpolation.defaultVariables),n),n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(de(F({},n),{interpolation:F(F({},this.options.interpolation),n.interpolation)}));let d=Te(t)&&(((c=n==null?void 0:n.interpolation)==null?void 0:c.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(d){let b=t.match(this.interpolator.nestingRegexp);f=b&&b.length}let p=n.replace&&!Te(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p=F(F({},this.options.interpolation.defaultVariables),p)),t=this.interpolator.interpolate(t,p,n.lng||this.language||i.usedLng,n),d){let b=t.match(this.interpolator.nestingRegexp),T=b&&b.length;f<T&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var b=arguments.length,T=new Array(b),v=0;v<b;v++)T[v]=arguments[v];return(s==null?void 0:s[0])===T[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${e[0]}`),null):a.translate(...T,e)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,l=Te(o)?[o]:o;return t!=null&&(l==null?void 0:l.length)&&n.applyPostProcessor!==!1&&(t=Hb.handle(l,t,e,this.options&&this.options.postProcessPassResolved?F({i18nResolved:de(F({},i),{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),t}resolve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,s,a,o;return Te(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;let u=this.extractFromKey(l,e),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=e.count!==void 0&&!Te(e.count),p=f&&!e.ordinal&&e.count===0,b=e.context!==void 0&&(Te(e.context)||typeof e.context=="number")&&e.context!=="",T=e.lngs?e.lngs:this.languageUtils.toResolveHierarchy(e.lng||this.language,e.fallbackLng);d.forEach(v=>{var O,E;this.isValidLookup(n)||(o=v,!Lb[`${T[0]}-${v}`]&&((O=this.utils)==null?void 0:O.hasLoadedNamespace)&&!((E=this.utils)!=null&&E.hasLoadedNamespace(o))&&(Lb[`${T[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${T.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(P=>{var ae;if(this.isValidLookup(n))return;a=P;let Y=[c];if((ae=this.i18nFormat)!=null&&ae.addLookupKeys)this.i18nFormat.addLookupKeys(Y,c,P,v,e);else{let H;f&&(H=this.pluralResolver.getSuffix(P,e.count,e));let J=`${this.options.pluralSeparator}zero`,ye=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(Y.push(c+H),e.ordinal&&H.indexOf(ye)===0&&Y.push(c+H.replace(ye,this.options.pluralSeparator)),p&&Y.push(c+J)),b){let we=`${c}${this.options.contextSeparator}${e.context}`;Y.push(we),f&&(Y.push(we+H),e.ordinal&&H.indexOf(ye)===0&&Y.push(we+H.replace(ye,this.options.pluralSeparator)),p&&Y.push(we+J))}}let q;for(;q=Y.pop();)this.isValidLookup(n)||(s=q,n=this.getResource(P,v,q,e))}))})}),{res:n,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,e,n){var s;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Te(t.replace),i=n?t.replace:t;if(n&&typeof t.count!="undefined"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i=F(F({},this.options.interpolation.defaultVariables),i)),!n){i=F({},i);for(let s of e)delete i[s]}return i}static hasDefaultValue(t){let e="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&t[n]!==void 0)return!0;return!1}},Yu=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ur.create("languageUtils")}getScriptPartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return null;let e=t.split("-");return e.length===2||(e.pop(),e[e.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(t){if(t=Lu(t),!t||t.indexOf("-")<0)return t;let e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(Te(t)&&t.indexOf("-")>-1){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch(n){}return e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach(n=>{if(e)return;let i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(e=i)}),!e&&this.options.supportedLngs&&t.forEach(n=>{if(e)return;let i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return e=i;e=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if(typeof t=="function"&&(t=t(e)),Te(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){let n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],s=a=>{!a||(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Te(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Te(t)&&s(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}},Ub={zero:0,one:1,two:2,few:3,many:4,other:5},Yb={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},jf=class{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=Ur.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Lu(t==="dev"?"en":t),i=e.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(n,{type:i})}catch(o){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Yb;if(!t.match(/-|_/))return Yb;let l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,e)}return this.pluralRulesCache[s]=a,a}needsPlural(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,e);return n||(n=this.getRule("dev",e)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${e}${i}`)}getSuffixes(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,e);return n||(n=this.getRule("dev",e)),n?n.resolvedOptions().pluralCategories.sort((i,s)=>Ub[i]-Ub[s]).map(i=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(t,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",e,n))}},jb=function(r,t,e){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Qx(r,t,e);return!s&&i&&Te(e)&&(s=Yf(r,e,n),s===void 0&&(s=Yf(t,e,n))),s},Lf=r=>r.replace(/\$/g,"$$$$"),$f=class{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ur.create("interpolator"),this.options=t,this.format=((e=t==null?void 0:t.interpolation)==null?void 0:e.format)||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:s,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:b,nestingSuffixEscaped:T,nestingOptionsSeparator:v,maxReplaces:O,alwaysFormat:E}=t.interpolation;this.escape=e!==void 0?e:Xx,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?ma(s):a||"{{",this.suffix=o?ma(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?ma(f):p||ma("$t("),this.nestingSuffix=b?ma(b):T||ma(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=O||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(e,n)=>(e==null?void 0:e.source)===n?(e.lastIndex=0,e):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){var p;let s,a,o,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){let E=jb(e,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,n,de(F(F({},i),e),{interpolationkey:b})):E}let T=b.split(this.formatSeparator),v=T.shift().trim(),O=T.join(this.formatSeparator).trim();return this.format(jb(e,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),O,n,de(F(F({},i),e),{interpolationkey:v}))};this.resetRegExp();let c=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Lf(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Lf(this.escape(b)):Lf(b)}].forEach(b=>{for(o=0;s=b.regex.exec(t);){let T=s[1].trim();if(a=u(T),a===void 0)if(typeof c=="function"){let O=c(t,s,i);a=Te(O)?O:""}else if(i&&Object.prototype.hasOwnProperty.call(i,T))a="";else if(d){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${t}`),a="";else!Te(a)&&!this.useRawValueToEscape&&(a=Pb(a));let v=b.safeValue(a);if(t=t.replace(s[0],v),d?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,a,o=(l,u)=>{var T;let c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;let d=l.split(new RegExp(`${c}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,a);let p=f.match(/'/g),b=f.match(/"/g);(((T=p==null?void 0:p.length)!=null?T:0)%2===0&&!b||b.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),u&&(a=F(F({},u),a))}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${c}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a=F({},n),a=a.replace&&!Te(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){let c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(s=e(o.call(this,i[1].trim(),a),a),s&&i[0]===t&&!Te(s))return s;Te(s)||(s=Pb(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=l.reduce((c,d)=>this.format(c,d,n.lng,de(F({},n),{interpolationkey:i[1].trim()})),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}},rO=r=>{let t=r.toLowerCase().trim(),e={};if(r.indexOf("(")>-1){let n=r.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?e.currency||(e.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?e.range||(e.range=i.trim()):i.split(";").forEach(a=>{if(a){let[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();e[c]||(e[c]=u),u==="false"&&(e[c]=!1),u==="true"&&(e[c]=!0),isNaN(u)||(e[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:e}},ha=r=>{let t={};return(e,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s=de(F({},s),{[i.interpolationkey]:void 0}));let a=n+JSON.stringify(s),o=t[a];return o||(o=r(Lu(n),i),t[a]=o),o(e)}},Wf=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ur.create("formatter"),this.options=t,this.formats={number:ha((e,n)=>{let i=new Intl.NumberFormat(e,F({},n));return s=>i.format(s)}),currency:ha((e,n)=>{let i=new Intl.NumberFormat(e,de(F({},n),{style:"currency"}));return s=>i.format(s)}),datetime:ha((e,n)=>{let i=new Intl.DateTimeFormat(e,F({},n));return s=>i.format(s)}),relativetime:ha((e,n)=>{let i=new Intl.RelativeTimeFormat(e,F({},n));return s=>i.format(s,n.range||"day")}),list:ha((e,n)=>{let i=new Intl.ListFormat(e,F({},n));return s=>i.format(s)})},this.init(t)}init(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=ha(e)}format(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=e.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){let o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{var d;let{formatName:u,formatOptions:c}=rO(l);if(this.formats[u]){let f=o;try{let p=((d=i==null?void 0:i.formatParams)==null?void 0:d[i.interpolationkey])||{},b=p.locale||p.lng||i.locale||i.lng||n;f=this.formats[u](o,b,F(F(F({},c),i),p))}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},t)}},iO=(r,t)=>{r.pending[t]!==void 0&&(delete r.pending[t],r.pendingCount--)},qf=class extends ya{constructor(t,e,n){var s,a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Ur.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(a=(s=this.backend)==null?void 0:s.init)==null||a.call(s,n,i.backend,i)}queueLoad(t,e,n,i){let s={},a={},o={},l={};return t.forEach(u=>{let c=!0;e.forEach(d=>{let f=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,c=!1,a[f]===void 0&&(a[f]=!0),s[f]===void 0&&(s[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(o[u]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,e,n){let i=t.split("|"),s=i[0],a=i[1];e&&this.emit("failedLoading",s,a,e),!e&&n&&this.store.addResourceBundle(s,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);let o={};this.queue.forEach(l=>{Kx(l.loaded,[s],a),iO(l,t),e&&l.errors.push(e),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});let c=l.loaded[u];c.length&&c.forEach(d=>{o[u][d]===void 0&&(o[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:s,callback:a});return}this.readingCalls++;let o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,e,n,i+1,s*2,a)},s);return}a(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{let u=l(t,e);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(t,e,o)}prepareLoading(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Te(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Te(e)&&(e=[e]);let s=this.queueLoad(t,e,n,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t.split("|"),i=n[0],s=n[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${e}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${e}loaded namespace ${s} for language ${i}`,o),this.loaded(t,a,o)})}saveMissing(t,e,n,i,s){var l,u,c,d,f;let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(((u=(l=this.services)==null?void 0:l.utils)==null?void 0:u.hasLoadedNamespace)&&!((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace(e))){this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((f=this.backend)!=null&&f.create){let p=de(F({},a),{isUpdate:s}),b=this.backend.create.bind(this.backend);if(b.length<6)try{let T;b.length===5?T=b(t,e,n,i,p):T=b(t,e,n,i),T&&typeof T.then=="function"?T.then(v=>o(null,v)).catch(o):o(null,T)}catch(T){o(T)}else b(t,e,n,i,o,p)}!t||!t[0]||this.store.addResource(t[0],e,n,i)}}},$b=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let t={};if(typeof r[1]=="object"&&(t=r[1]),Te(r[1])&&(t.defaultValue=r[1]),Te(r[2])&&(t.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){let e=r[3]||r[2];Object.keys(e).forEach(n=>{t[n]=e[n]})}return t},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Wb=r=>{var t,e;return Te(r.ns)&&(r.ns=[r.ns]),Te(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Te(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((e=(t=r.supportedLngs)==null?void 0:t.indexOf)==null?void 0:e.call(t,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Iu=()=>{},sO=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{typeof r[e]=="function"&&(r[e]=r[e].bind(r))})},gs=class extends ya{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Wb(t),this.services={},this.logger=Ur,this.modules={external:[]},sO(this),e&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,e),this;setTimeout(()=>{this.init(t,e)},0)}}init(){var t=this;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Te(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));let i=$b();this.options=F(F(F({},i),this.options),Wb(e)),this.options.interpolation=F(F({},i.interpolation),this.options.interpolation),e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);let s=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Ur.init(s(this.modules.logger),this.options):Ur.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Wf;let d=new Yu(this.options);this.store=new Uu(this.options.resources,this.options);let f=this.services;f.logger=Ur,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new jf(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=s(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new $f(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qf(s(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(p){for(var b=arguments.length,T=new Array(b>1?b-1:0),v=1;v<b;v++)T[v-1]=arguments[v];t.emit(p,...T)}),this.modules.languageDetector&&(f.languageDetector=s(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=s(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ba(this.services,this.options),this.translator.on("*",function(p){for(var b=arguments.length,T=new Array(b>1?b-1:0),v=1;v<b;v++)T[v-1]=arguments[v];t.emit(p,...T)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Iu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});let l=Ho(),u=()=>{let c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(t){var s,a;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Iu,i=Te(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let o=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),(a=(s=this.options.preload)==null?void 0:s.forEach)==null||a.call(s,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(t,e,n){let i=Ho();return typeof t=="function"&&(n=t,t=void 0),typeof e=="function"&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=Iu),this.services.backendConnector.reload(t,e,s=>{i.resolve(),n(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Hb.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let e=0;e<this.languages.length;e++){let n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;let i=Ho();this.emit("languageChanging",t);let s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),e&&e(l,function(){return n.t(...arguments)})},o=l=>{var c,d;!t&&!l&&this.services.languageDetector&&(l=[]);let u=Te(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),(d=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||d.call(c,u)),this.loadResources(u,f=>{a(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),i}getFixedT(t,e,n){var i=this;let s=function(a,o){let l;if(typeof o!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([a,o].concat(c))}else l=F({},o);l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||s.keyPrefix);let f=i.options.keySeparator||".",p;return l.keyPrefix&&Array.isArray(a)?p=a.map(b=>`${l.keyPrefix}${f}${b}`):p=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(p,l)};return Te(t)?s.lng=t:s.lngs=t,s.ns=e,s.keyPrefix=n,s}t(){var i;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(i=this.translator)==null?void 0:i.translate(...e)}exists(){var i;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(i=this.translator)==null?void 0:i.exists(...e)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=e.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let a=(o,l)=>{let u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(e.precheck){let o=e.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(s,t)))}loadNamespaces(t,e){let n=Ho();return this.options.ns?(Te(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),e&&e(i)}),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){let n=Ho();Te(t)&&(t=[t]);let i=this.options.preload||[],s=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{n.resolve(),e&&e(a)}),n):(e&&e(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";let e=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((s=this.services)==null?void 0:s.languageUtils)||new Yu($b());return e.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new gs(t,e)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Iu,n=t.forkResourceStore;n&&delete t.forkResourceStore;let i=de(F(F({},this.options),t),{isClone:!0}),s=new gs(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services=F({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n){let o=Object.keys(this.store.data).reduce((l,u)=>(l[u]=F({},this.store.data[u]),Object.keys(l[u]).reduce((c,d)=>(c[d]=F({},l[u][d]),c),{})),{});s.store=new Uu(o,i),s.services.resourceStore=s.store}return s.translator=new ba(s.services,i),s.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];s.emit(o,...u)}),s.init(i,e),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},yt=gs.createInstance();yt.createInstance=gs.createInstance;uj=yt.createInstance,cj=yt.dir,dj=yt.init,fj=yt.loadResources,pj=yt.reloadResources,mj=yt.use,hj=yt.changeLanguage,gj=yt.getFixedT,yj=yt.t,bj=yt.exists,Tj=yt.setDefaultNamespace,vj=yt.hasLoadedNamespace,_j=yt.loadNamespaces,wj=yt.loadLanguages});var Vb,Bb=X(()=>{Vb={main:{loadingPlugin:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0456\u043D\u0430: {{name}} v{{version}}",unloadingPlugin:"\u0412\u044B\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0456\u043D\u0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u041A\u0430\u043B\u0456 \u045E\u043A\u043B\u044E\u0447\u0430\u043D\u0430, \u0433\u044D\u0442\u044B \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0437\u0435 \u0434\u0430\u0441\u0442\u0443\u043F\u043D\u044B \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u043A\u0430\u043C\u0430\u043D\u0434\u044B, \u0442\u0430\u043A \u0448\u0442\u043E \u0432\u044B \u0437\u043C\u043E\u0436\u0430\u0446\u0435 \u043F\u0440\u044B\u0437\u043D\u0430\u0447\u044B\u0446\u044C \u0433\u0430\u0440\u0430\u0447\u0443\u044E \u043A\u043B\u0430\u0432\u0456\u0448\u0443 \u0456 \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u0430\u0446\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0437 \u044F\u0435 \u0434\u0430\u043F\u0430\u043C\u043E\u0433\u0430\u0439.",name:"\u0414\u0430\u0441\u0442\u0443\u043F\u043D\u044B \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u043A\u0430\u043C\u0430\u043D\u0434\u044B"},editNextStatusSymbol:{description:"\u041F\u0440\u044B \u043D\u0430\u0446\u0456\u0441\u043A\u0443 \u0433\u044D\u0442\u0430 \u0441\u0456\u043C\u0432\u0430\u043B, \u044F\u043A\u0456 \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043D\u044B \u0434\u0430\u043B\u0435\u0439.",name:"\u0421\u0456\u043C\u0432\u0430\u043B \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u044B"},editStatusName:{description:"\u0413\u044D\u0442\u0430 \u0437\u0440\u0430\u0437\u0443\u043C\u0435\u043B\u0430\u0435 \u0456\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u044B.",name:"\u0406\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u044B"},editStatusSymbol:{description:"\u0413\u044D\u0442\u0430 \u0441\u0456\u043C\u0432\u0430\u043B \u043F\u0430\u043C\u0456\u0436 \u043A\u0432\u0430\u0434\u0440\u0430\u0442\u043D\u044B\u043C\u0456 \u0434\u0443\u0436\u043A\u0430\u043C\u0456. (\u042F\u0433\u043E \u043C\u043E\u0436\u043D\u0430 \u0440\u044D\u0434\u0430\u0433\u0430\u0432\u0430\u0446\u044C \u0442\u043E\u043B\u044C\u043A\u0456 \u0434\u043B\u044F \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E, \u0430 \u043D\u0435 \u0434\u043B\u044F \u0430\u0441\u043D\u043E\u045E\u043D\u044B\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E.)",name:"\u0421\u0456\u043C\u0432\u0430\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u044B"},editStatusType:{description:"\u041A\u0456\u0440\u0443\u0439\u0446\u0435 \u0442\u044B\u043C, \u044F\u043A \u0441\u0442\u0430\u0442\u0443\u0441 \u043F\u0430\u0432\u043E\u0434\u0437\u0456\u0446\u044C \u0441\u044F\u0431\u0435 \u043F\u0440\u044B \u043F\u043E\u0448\u0443\u043A\u0443 \u0456 \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0456.",name:"\u0422\u044B\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u044B"},fixErrorsBeforeSaving:"\u0412\u044B\u043F\u0440\u0430\u045E\u0446\u0435 \u043F\u0430\u043C\u044B\u043B\u043A\u0456 \u043F\u0435\u0440\u0430\u0434 \u0437\u0430\u0445\u0430\u0432\u0430\u043D\u043D\u0435\u043C."}},reports:{statusRegistry:{about:{createdBy:"\u0413\u044D\u0442\u044B \u0444\u0430\u0439\u043B \u0431\u044B\u045E \u0441\u0442\u0432\u043E\u0440\u0430\u043D\u044B \u043F\u043B\u0430\u0433\u0456\u043D\u0430\u043C Obsidian Tasks (\u0432\u0435\u0440\u0441\u0456\u044F {{version}}) \u0434\u043B\u044F \u0432\u0456\u0437\u0443\u0430\u043B\u0456\u0437\u0430\u0446\u044B\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0437\u0430\u0434\u0430\u0447 \u0443 \u0433\u044D\u0442\u044B\u043C \u0441\u0445\u043E\u0432\u0456\u0448\u0447\u044B.",deleteFileAnyTime:"\u0412\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u0432\u044B\u0434\u0430\u043B\u0456\u0446\u044C \u0433\u044D\u0442\u044B \u0444\u0430\u0439\u043B \u0443 \u043B\u044E\u0431\u044B \u043C\u043E\u043C\u0430\u043D\u0442.",title:"\u041F\u0440\u0430 \u0433\u044D\u0442\u044B \u0444\u0430\u0439\u043B",updateReport:{line1:"\u041A\u0430\u043B\u0456 \u0432\u044B \u0437\u043C\u044F\u043D\u044F\u0435\u0446\u0435 \u043D\u0430\u043B\u0430\u0434\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0443 Tasks, \u0432\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u0430\u0442\u0440\u044B\u043C\u0430\u0446\u044C \u0430\u0431\u043D\u043E\u045E\u043B\u0435\u043D\u044B \u0441\u043F\u0440\u0430\u0432\u0430\u0437\u0434\u0430\u0447\u0443:",line2:"\u041F\u0435\u0440\u0430\u0439\u0448\u043E\u045E\u0448\u044B \u045E `\u041D\u0430\u043B\u0430\u0434\u044B` -> `Tasks`.",line3:"\u041D\u0430\u0446\u0456\u0441\u043D\u0443\u045E\u0448\u044B \u043D\u0430 `\u041F\u0440\u0430\u0433\u043B\u044F\u0434\u0437\u0435\u0446\u044C \u0456 \u043F\u0440\u0430\u0432\u0435\u0440\u044B\u0446\u044C \u0432\u0430\u0448\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u044B`."}},columnHeadings:{nextStatusSymbol:"\u0421\u0456\u043C\u0432\u0430\u043B \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443",problems:"\u041F\u0440\u0430\u0431\u043B\u0435\u043C\u044B (\u043A\u0430\u043B\u0456 \u0451\u0441\u0446\u044C)",statusName:"\u0406\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0443",statusSymbol:"\u0421\u0456\u043C\u0432\u0430\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0443",statusType:"\u0422\u044B\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0443"},loadedSettings:{settingsActuallyUsed:"\u0413\u044D\u0442\u0430 \u043D\u0430\u043B\u0430\u0434\u044B, \u044F\u043A\u0456\u044F \u0441\u0430\u043F\u0440\u0430\u045E\u0434\u044B \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u044E\u0446\u0446\u0430 Tasks.",switchToLivePreview:"\u041F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044B\u0446\u0435\u0441\u044F \u045E \u0440\u044D\u0436\u044B\u043C \u043F\u0430\u043F\u044F\u0440\u044D\u0434\u043D\u044F\u0433\u0430 \u043F\u0440\u0430\u0433\u043B\u044F\u0434\u0443 \u045E \u0440\u044D\u0430\u043B\u044C\u043D\u044B\u043C \u0447\u0430\u0441\u0435 \u0430\u0431\u043E \u0440\u044D\u0436\u044B\u043C \u0447\u044B\u0442\u0430\u043D\u043D\u044F, \u043A\u0430\u0431 \u0443\u0431\u0430\u0447\u044B\u0446\u044C \u0434\u044B\u044F\u0433\u0440\u0430\u043C\u0443.",title:"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u043D\u044B\u044F \u043D\u0430\u043B\u0430\u0434\u044B"},messages:{cannotFindNextStatus:"\u041D\u0435\u0447\u0430\u043A\u0430\u043D\u0430\u044F \u043F\u0430\u043C\u044B\u043B\u043A\u0430 \u043F\u0440\u044B \u043F\u043E\u0448\u0443\u043A\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443.",duplicateSymbol:"\u0414\u0443\u0431\u043B\u0456\u043A\u0430\u0442 \u0441\u0456\u043C\u0432\u0430\u043B\u0430 '{{symbol}}': \u0433\u044D\u0442\u044B \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0437\u0435 \u043F\u0440\u0430\u0456\u0433\u043D\u0430\u0440\u0430\u0432\u0430\u043D\u044B.",emptySymbol:"\u041F\u0443\u0441\u0442\u044B \u0441\u0456\u043C\u0432\u0430\u043B: \u0433\u044D\u0442\u044B \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0437\u0435 \u043F\u0440\u0430\u0456\u0433\u043D\u0430\u0440\u0430\u0432\u0430\u043D\u044B.",nextSymbolUnknown:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u044B \u0441\u0456\u043C\u0432\u0430\u043B {{symbol}} \u043D\u0435\u0432\u044F\u0434\u043E\u043C\u044B: \u0441\u0442\u0432\u0430\u0440\u044B\u0446\u0435 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437 \u0441\u0456\u043C\u0432\u0430\u043B\u0430\u043C {{symbol}}.",notConventionalType:"\u0414\u043B\u044F \u0456\u043D\u0444\u0430\u0440\u043C\u0430\u0446\u044B\u0456, \u0437\u0432\u044B\u0447\u0430\u0439\u043D\u044B \u0442\u044B\u043F \u0434\u043B\u044F \u0441\u0456\u043C\u0432\u0430\u043B\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 {{symbol}} - {{type}}: \u0432\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u043F\u0435\u0440\u0430\u0433\u043B\u0435\u0434\u0437\u0435\u0446\u044C \u0433\u044D\u0442\u044B \u0442\u044B\u043F.",wrongTypeAfterDone:{line1:"\u041F\u0430\u0441\u043B\u044F \u0433\u044D\u0442\u0430\u0433\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 `DONE` \u0456\u0434\u0437\u0435 {{nextType}}, \u0430 \u043D\u0435 `TODO` \u0430\u0431\u043E `IN_PROGRESS`.",line2:"\u041F\u0440\u044B \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043D\u043D\u0456 \u0434\u043B\u044F \u0437\u0430\u0432\u044F\u0440\u0448\u044D\u043D\u043D\u044F \u043F\u0435\u0440\u044B\u044F\u0434\u044B\u0447\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u044B \u044F\u043D\u0430 \u0437\u0430\u043C\u0435\u0441\u0442 \u0433\u044D\u0442\u0430\u0433\u0430 \u0431\u0443\u0434\u0437\u0435 \u0441\u0443\u043F\u0440\u0430\u0432\u0430\u0434\u0436\u0430\u0446\u0446\u0430 `TODO` \u0430\u0431\u043E `IN_PROGRESS`, \u043A\u0430\u0431 \u0433\u0430\u0440\u0430\u043D\u0442\u0430\u0432\u0430\u0446\u044C, \u0448\u0442\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430 \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0435 \u0444\u0456\u043B\u044C\u0442\u0440\u0443 `\u043D\u0435 \u0432\u044B\u043A\u0430\u043D\u0430\u043D\u0430`.",line3:"\u0413\u043B\u044F\u0434\u0437\u0456\u0446\u0435 [Recurring Tasks and Custom Statuses]({{helpURL}})."}},sampleTasks:{line1:"\u0412\u043E\u0441\u044C \u043F\u0430 \u0430\u0434\u043D\u044B\u043C \u043F\u0440\u044B\u043A\u043B\u0430\u0434\u0437\u0435 \u0440\u0430\u0434\u043A\u0430 \u0437\u0430\u0434\u0430\u0447\u044B \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u0430\u0433\u0430 \u0441\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E, \u044F\u043A\u0456\u044F \u0444\u0430\u043A\u0442\u044B\u0447\u043D\u0430 \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u044E\u0446\u0446\u0430 \u0437\u0430\u0434\u0430\u0447\u0430\u043C\u0456, \u043A\u0430\u0431 \u0432\u044B \u043C\u0430\u0433\u043B\u0456 \u043F\u0430\u044D\u043A\u0441\u043F\u0435\u0440\u044B\u043C\u0435\u043D\u0442\u0430\u0432\u0430\u0446\u044C.",line2:"\u0421\u0456\u043C\u0432\u0430\u043B\u044B \u0456 \u043D\u0430\u0437\u0432\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0443 \u0430\u043F\u0456\u0441\u0430\u043D\u043D\u044F\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044B\u043B\u0456 \u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B\u043C\u0456 \u043D\u0430 \u043C\u043E\u043C\u0430\u043D\u0442 \u0441\u0442\u0432\u0430\u0440\u044D\u043D\u043D\u044F \u0433\u044D\u0442\u0430\u0433\u0430 \u0444\u0430\u0439\u043B\u0430.",line3:"\u041A\u0430\u043B\u0456 \u0432\u044B \u0437\u043C\u044F\u043D\u0456\u043B\u0456 \u043F\u0440\u044B\u043A\u043B\u0430\u0434\u044B \u0437\u0430\u0434\u0430\u0447 \u0437 \u043C\u043E\u043C\u0430\u043D\u0442\u0443 \u0456\u0445 \u0441\u0442\u0432\u0430\u0440\u044D\u043D\u043D\u044F, \u0432\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u045E\u0431\u0430\u0447\u044B\u0446\u044C \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u044F \u0442\u044B\u043F\u044B \u0456 \u043D\u0430\u0437\u0432\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0443 \u0437\u0430\u0433\u0430\u043B\u043E\u045E\u043A\u0430\u0445 \u0433\u0440\u0443\u043F \u0443 \u043F\u043E\u0448\u0443\u043A\u0443 \u0437\u0430\u0434\u0430\u0447 \u043D\u0456\u0436\u044D\u0439.",tip:{line1:"\u041F\u0430\u0440\u0430\u0434\u0430: \u041A\u0430\u043B\u0456 \u045E\u0441\u0435 \u0432\u0430\u0448\u044B \u0441\u0446\u044F\u0436\u043A\u0456 \u0432\u044B\u0433\u043B\u044F\u0434\u0430\u044E\u0446\u044C \u0430\u0434\u043D\u043E\u043B\u044C\u043A\u0430\u0432\u0430...",line2:"\u041A\u0430\u043B\u0456 \u045E\u0441\u0435 \u0441\u0446\u044F\u0436\u043A\u0456 \u0432\u044B\u0433\u043B\u044F\u0434\u0430\u044E\u0446\u044C \u0430\u0434\u043D\u043E\u043B\u044C\u043A\u0430\u0432\u0430 \u045E \u0420\u044D\u0436\u044B\u043C\u0435 \u0447\u044B\u0442\u0430\u043D\u043D\u044F \u0430\u0431\u043E Live Preview, \u0433\u043B\u044F\u0434\u0437\u0456\u0446\u0435 [\u0421\u0442\u044B\u043B\u0456\u0437\u0430\u0432\u0430\u0446\u044C \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B]({{url}}), \u043A\u0430\u0431 \u0434\u0430\u0432\u0435\u0434\u0430\u0446\u0446\u0430, \u044F\u043A \u0432\u044B\u0431\u0440\u0430\u0446\u044C \u0442\u044D\u043C\u0443 \u0430\u0431\u043E CSS-\u0444\u0440\u0430\u0433\u043C\u0435\u043D\u0442 \u0434\u043B\u044F \u0441\u0442\u044B\u043B\u0456\u0437\u0430\u0446\u044B\u0456 \u0432\u0430\u0448\u044B\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E."},title:"\u041F\u0440\u044B\u043A\u043B\u0430\u0434\u044B \u0437\u0430\u0434\u0430\u0447"},searchSampleTasks:{line1:"\u0413\u044D\u0442\u044B \u043F\u043E\u0448\u0443\u043A \u0437\u0430\u0434\u0430\u0447 \u043F\u0430\u043A\u0430\u0437\u0432\u0430\u0435 \u045E\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u044B \u045E \u0433\u044D\u0442\u044B\u043C \u0444\u0430\u0439\u043B\u0435, \u0437\u0433\u0440\u0443\u043F\u0430\u0432\u0430\u043D\u044B\u044F \u043F\u0430 \u0442\u044B\u043F\u0435 \u0456 \u043D\u0430\u0437\u0432\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430.",title:"\u041F\u043E\u0448\u0443\u043A \u043F\u0430 \u043F\u0440\u044B\u043A\u043B\u0430\u0434\u0430\u0445 \u0437\u0430\u0434\u0430\u0447"},statusSettings:{comment:{line1:"\u041F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044B\u0446\u0435\u0441\u044F \u045E \u0440\u044D\u0436\u044B\u043C \u043F\u0430\u043F\u044F\u0440\u044D\u0434\u043D\u044F\u0433\u0430 \u043F\u0440\u0430\u0433\u043B\u044F\u0434\u0443 \u045E \u0440\u044D\u0430\u043B\u044C\u043D\u044B\u043C \u0447\u0430\u0441\u0435 \u0430\u0431\u043E \u0440\u044D\u0436\u044B\u043C \u0447\u044B\u0442\u0430\u043D\u043D\u044F, \u043A\u0430\u0431 \u0443\u0431\u0430\u0447\u044B\u0446\u044C \u0442\u0430\u0431\u043B\u0456\u0446\u0443.",line2:"\u041A\u0430\u043B\u0456 \u045E \u0456\u043C\u0451\u043D\u0430\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0451\u0441\u0446\u044C \u044F\u043A\u0456\u044F-\u043D\u0435\u0431\u0443\u0434\u0437\u044C \u0441\u0456\u043C\u0432\u0430\u043B\u044B \u0444\u0430\u0440\u043C\u0430\u0442\u0430\u0432\u0430\u043D\u043D\u044F Markdown, \u0442\u0430\u043A\u0456\u044F \u044F\u043A '*' \u0430\u0431\u043E '_',",line3:"Obsidian \u043C\u043E\u0436\u0430 \u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u0446\u044C \u0442\u0430\u0431\u043B\u0456\u0446\u0443 \u0442\u043E\u043B\u044C\u043A\u0456 \u045E \u0440\u044D\u0436\u044B\u043C\u0435 \u0447\u044B\u0442\u0430\u043D\u043D\u044F."},theseAreStatusValues:"\u0413\u044D\u0442\u0430 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u045E \u0440\u0430\u0437\u0434\u0437\u0435\u043B\u0430\u0445 Core \u0456 Custom statuses.",title:"\u041D\u0430\u043B\u0430\u0434\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0443"}}},settings:{autoSuggest:{heading:"\u0410\u045E\u0442\u0430\u043F\u0430\u0434\u043A\u0430\u0437\u043A\u0430",maxSuggestions:{description:"\u041A\u043E\u043B\u044C\u043A\u0456 \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u045E \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C \u043F\u0430\u043A\u0430\u0437\u0430\u043D\u0430 \u043F\u0440\u044B \u0437'\u044F\u045E\u043B\u0435\u043D\u043D\u0456 \u043C\u0435\u043D\u044E \u0430\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u044B\u0445 \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u045E (\u0443\u043A\u043B\u044E\u0447\u0430\u044E\u0447\u044B \u043E\u043F\u0446\u044B\u044E \xAB\u23CE\xBB).",name:"\u041C\u0430\u043A\u0441\u0456\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u043E\u043B\u044C\u043A\u0430\u0441\u0446\u044C \u0430\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u044B\u0445 \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u045E \u0434\u043B\u044F \u043F\u0430\u043A\u0430\u0437\u0443"},minLength:{description:"\u041A\u0430\u043B\u0456 \u0432\u044B\u0448\u044D\u0439 \u0437\u0430 0, \u0430\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u0430\u044F \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u0432\u0430 \u0431\u0443\u0434\u0437\u0435 \u0441\u043F\u0440\u0430\u0446\u043E\u045E\u0432\u0430\u0446\u044C \u0442\u043E\u043B\u044C\u043A\u0456 \u0442\u0430\u0434\u044B, \u043A\u0430\u043B\u0456 \u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u0435\u0446\u0446\u0430 \u043F\u0430\u0447\u0430\u0442\u0430\u043A \u043B\u044E\u0431\u043E\u0433\u0430 \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043E\u045E\u0432\u0430\u043D\u0430\u0433\u0430 \u043A\u043B\u044E\u0447\u0430\u0432\u043E\u0433\u0430 \u0441\u043B\u043E\u0432\u0430.",name:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u0430\u045E\u0436\u044B\u043D\u044F \u0441\u0443\u043F\u0430\u0434\u0437\u0435\u043D\u043D\u044F \u0434\u043B\u044F \u0430\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u0430\u0439 \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u0432\u044B"},toggle:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0430\u0434\u043A\u0440\u044B\u0435 \u0456\u043D\u0442\u044D\u043B\u0435\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u0430\u0435 \u043C\u0435\u043D\u044E \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u045E \u043F\u0440\u044B \u045E\u0432\u043E\u0434\u0437\u0435 \u0442\u044D\u043A\u0441\u0442\u0443 \u045E\u043D\u0443\u0442\u0440\u044B \u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u0430\u0439 \u043B\u0456\u043D\u0456\u0456 \u0437\u0430\u0434\u0430\u0447\u044B.",name:"\u0410\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u0430 \u043F\u0440\u0430\u043F\u0430\u043D\u043E\u045E\u0432\u0430\u0446\u044C \u0437\u043C\u0435\u0441\u0442 \u0437\u0430\u0434\u0430\u0447\u044B"}},changeRequiresRestart:"\u0417\u043C\u0435\u043D\u0430 \u043B\u044E\u0431\u044B\u0445 \u043D\u0430\u043B\u0430\u0434 \u043F\u0430\u0442\u0440\u0430\u0431\u0443\u0435 \u043F\u0435\u0440\u0430\u0437\u0430\u043F\u0443\u0441\u043A\u0443 Obsidian.",dates:{cancelledDate:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0434\u0430\u0434\u0430\u0441\u0446\u044C \u0447\u0430\u0441\u043E\u0432\u0443\u044E \u043F\u0430\u0437\u043D\u0430\u043A\u0443 \u274C YYYY-MM-DD \u045E \u043A\u0430\u043D\u0446\u044B, \u043A\u0430\u043B\u0456 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u0430\u0435\u0446\u0446\u0430 \u045E \u0430\u0434\u043C\u0435\u043D\u0435\u043D\u044B \u0441\u0442\u0430\u043D.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u0456\u0446\u044C \u0434\u0430\u0442\u0443 \u0430\u0434\u043C\u0435\u043D\u044B \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u0430\u0439 \u0430\u0434\u043C\u0435\u043D\u0435\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u044B"},createdDate:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0434\u0430\u0434\u0430\u0441\u0446\u044C \u0447\u0430\u0441\u043E\u0432\u0443\u044E \u043F\u0430\u0437\u043D\u0430\u043A\u0443 \u2795 YYYY-MM-DD \u043F\u0435\u0440\u0430\u0434 \u0456\u043D\u0448\u044B\u043C\u0456 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u044F\u043C\u0456 \u0434\u0430\u0442\u044B, \u043A\u0430\u043B\u0456 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0432\u0430\u0440\u0430\u0435\u0446\u0446\u0430 \u0437 \u0434\u0430\u043F\u0430\u043C\u043E\u0433\u0430\u0439 \xAB\u0421\u0442\u0432\u0430\u0440\u044B\u0446\u044C \u0430\u0431\u043E \u0440\u044D\u0434\u0430\u0433\u0430\u0432\u0430\u0446\u044C \u0437\u0430\u0434\u0430\u0447\u0443\xBB \u0430\u0431\u043E \u043F\u0440\u044B \u0437\u0430\u0432\u044F\u0440\u0448\u044D\u043D\u043D\u0456 \u043F\u0435\u0440\u044B\u044F\u0434\u044B\u0447\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u044B.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u0456\u0446\u044C \u0434\u0430\u0442\u0443 \u0441\u0442\u0432\u0430\u0440\u044D\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u0430\u0439 \u0434\u0430\u0434\u0430\u0434\u0437\u0435\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u044B"},doneDate:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0434\u0430\u0434\u0430\u0441\u0446\u044C \u0447\u0430\u0441\u043E\u0432\u0443\u044E \u043F\u0430\u0437\u043D\u0430\u043A\u0443 \u2705 YYYY-MM-DD \u045E \u043A\u0430\u043D\u0446\u044B, \u043A\u0430\u043B\u0456 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u0430\u0435\u0446\u0446\u0430 \u045E \u0432\u044B\u043A\u0430\u043D\u0430\u043D\u044B \u0441\u0442\u0430\u043D.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u0456\u0446\u044C \u0434\u0430\u0442\u0443 \u0432\u044B\u043A\u0430\u043D\u0430\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u0430\u0439 \u0432\u044B\u043A\u0430\u043D\u0430\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u044B"},heading:"\u0414\u0430\u0442\u044B"},datesFromFileNames:{heading:"\u0414\u0430\u0442\u044B \u0437 \u0456\u043C\u0451\u043D\u0430\u045E \u0444\u0430\u0439\u043B\u0430\u045E",scheduledDate:{extraFormat:{description:{line1:"\u0414\u0430\u0434\u0430\u0442\u043A\u043E\u0432\u044B \u0444\u0430\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B, \u044F\u043A\u0456 \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u0431\u0443\u0434\u0437\u0435 \u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u0432\u0430\u0446\u044C \u043F\u0440\u044B \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043D\u043D\u0456 \u0456\u043C\u044F \u0444\u0430\u0439\u043B\u0430 \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u0430\u0439 \u0434\u0430\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u044B.",line2:"\u0414\u0430\u0432\u0435\u0434\u043A\u0430 \u043F\u0430 \u0441\u0456\u043D\u0442\u0430\u043A\u0441\u0456\u0441\u0435"},name:"\u0414\u0430\u0434\u0430\u0442\u043A\u043E\u0432\u044B \u0444\u0430\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B \u0456\u043C\u044F \u0444\u0430\u0439\u043B\u0430 \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u0430\u0439 \u0434\u0430\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u044B",placeholder:"\u043F\u0440\u044B\u043A\u043B\u0430\u0434: MMM DD YYYY"},folders:{description:"\u041F\u0430\u043A\u0456\u043D\u044C\u0446\u0435 \u043F\u0443\u0441\u0442\u044B\u043C, \u043A\u0430\u043B\u0456 \u0445\u043E\u0447\u0430\u0446\u0435 \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0446\u044C \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u044B\u044F \u0434\u0430\u0442\u044B \u043F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456 \u043F\u0430\u045E\u0441\u044E\u043B\u044C, \u0430\u0431\u043E \u045E\u0432\u044F\u0434\u0437\u0456\u0446\u0435 \u0441\u043F\u0456\u0441 \u0442\u044D\u0447\u0430\u043A, \u043F\u0430\u0434\u0437\u0435\u043B\u0435\u043D\u044B\u0445 \u043A\u043E\u0441\u043A\u0430\u043C\u0456.",name:"\u0422\u044D\u0447\u043A\u0456 \u0437 \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u044B\u043C\u0456 \u0434\u0430\u0442\u0430\u043C\u0456 \u043F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456"},toggle:{description:{line1:"\u042D\u043A\u0430\u043D\u043E\u043C\u0446\u0435 \u0447\u0430\u0441, \u0443\u0432\u043E\u0434\u0437\u044F\u0447\u044B \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u044B\u044F (\u23F3) \u0434\u0430\u0442\u044B.",line2:"\u041A\u0430\u043B\u0456 \u0433\u044D\u0442\u0430\u044F \u043E\u043F\u0446\u044B\u044F \u045E\u043A\u043B\u044E\u0447\u0430\u043D\u0430, \u043B\u044E\u0431\u044B\u043C \u0437\u0430\u0434\u0430\u0447\u0430\u043C \u0431\u0435\u0437 \u0434\u0430\u0442\u044B \u0431\u0443\u0434\u0437\u0435 \u043F\u0440\u044B\u0437\u043D\u0430\u0447\u0430\u043D\u0430 \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456, \u0432\u044B\u043D\u044F\u0442\u0430\u044F \u0437 \u0456\u0445 \u0456\u043C\u044F \u0444\u0430\u0439\u043B\u0430.",line3:"\u041F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456 \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u0431\u0443\u0434\u0437\u0435 \u0441\u0443\u043F\u0430\u0441\u0442\u0430\u045E\u043B\u044F\u0446\u044C \u0444\u0430\u0440\u043C\u0430\u0442\u044B \u0434\u0430\u0442\u044B <code>YYYY-MM-DD</code> \u0456 <code>YYYYMMDD</code>.",line4:"\u0417\u0430\u0434\u0430\u0447\u044B \u0431\u0435\u0437 \u0434\u0430\u0442\u044B \u043D\u0435 \u043C\u0430\u044E\u0446\u044C \u043D\u0456\u0432\u043E\u0434\u043D\u0430\u0439 \u0437 \u0434\u0430\u0442: Due (\u{1F4C5} ), Scheduled (\u23F3) \u0456 Start (\u{1F6EB})."},name:"\u0412\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0446\u044C \u0456\u043C\u044F \u0444\u0430\u0439\u043B\u0430 \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u0437\u0430\u043F\u043B\u0430\u043D\u0430\u0432\u0430\u043D\u0430\u0439 \u0434\u0430\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u044B"}}},dialogs:{accessKeys:{description:"\u041A\u0430\u043B\u0456 \u043A\u043B\u0430\u0432\u0456\u0448\u044B \u0434\u043E\u0441\u0442\u0443\u043F\u0443 (\u043A\u043B\u0430\u0432\u0456\u044F\u0442\u0443\u0440\u043D\u044B\u044F \u0441\u043A\u0430\u0440\u0430\u0447\u044D\u043D\u043D\u0456) \u0434\u043B\u044F \u0440\u043E\u0437\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E \u043A\u0456\u0440\u0430\u0432\u0430\u043D\u043D\u044F \u045E \u0434\u044B\u044F\u043B\u043E\u0433\u0430\u0432\u044B\u0445 \u0432\u043E\u043A\u043D\u0430\u0445 \u043A\u0430\u043D\u0444\u043B\u0456\u043A\u0442\u0443\u044E\u0446\u044C \u0437 \u0441\u0456\u0441\u0442\u044D\u043C\u043D\u044B\u043C\u0456 \u043A\u043B\u0430\u0432\u0456\u044F\u0442\u0443\u0440\u043D\u044B\u043C\u0456 \u0441\u043A\u0430\u0440\u0430\u0447\u044D\u043D\u043D\u044F\u043C\u0456 \u0430\u0431\u043E \u0444\u0443\u043D\u043A\u0446\u044B\u044F\u043C\u0456 \u0434\u0430\u043F\u0430\u043C\u043E\u0436\u043D\u0430\u0439 \u0442\u044D\u0445\u043D\u0430\u043B\u043E\u0433\u0456\u0456, \u044F\u043A\u0456\u044F \u0432\u0430\u0436\u043D\u044B\u044F \u0434\u043B\u044F \u0432\u0430\u0441, \u0432\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u0430\u0434\u043A\u043B\u044E\u0447\u044B\u0446\u044C \u0456\u0445 \u0442\u0443\u0442.",name:"\u0417\u0430\u0431\u044F\u0441\u043F\u0435\u0447\u044B\u0446\u044C \u043A\u043B\u0430\u0432\u0456\u0448\u044B \u0434\u043E\u0441\u0442\u0443\u043F\u0443 \u045E \u0434\u044B\u044F\u043B\u043E\u0433\u0430\u0445"},heading:"\u0414\u044B\u044F\u043B\u043E\u0433\u0456"},format:{description:{line1:"\u0424\u0430\u0440\u043C\u0430\u0442, \u044F\u043A\u0456 Tasks \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0435 \u0434\u043B\u044F \u0447\u044B\u0442\u0430\u043D\u043D\u044F \u0456 \u0437\u0430\u043F\u0456\u0441\u0443 \u0437\u0430\u0434\u0430\u0447.",line2:"<b>\u0412\u0430\u0436\u043D\u0430:</b> Tasks \u0443 \u0446\u044F\u043F\u0435\u0440\u0430\u0448\u043D\u0456 \u0447\u0430\u0441 \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043B\u0456\u0432\u0430\u0435 \u0442\u043E\u043B\u044C\u043A\u0456 \u0430\u0434\u0437\u0456\u043D \u0444\u0430\u0440\u043C\u0430\u0442 \u0430\u0434\u043D\u0430\u0447\u0430\u0441\u043E\u0432\u0430. \u0412\u044B\u0431\u0430\u0440 Dataview \u0443 \u0446\u044F\u043F\u0435\u0440\u0430\u0448\u043D\u0456 \u0447\u0430\u0441 <b>\u0441\u043F\u044B\u043D\u0456\u0446\u044C \u0447\u044B\u0442\u0430\u043D\u043D\u0435 Tasks \u0441\u0432\u0430\u0456\u0445 \u0443\u043B\u0430\u0441\u043D\u044B\u0445 \u0437\u043D\u0430\u043A\u0430\u045E \u044D\u043C\u043E\u0434\u0437\u0456</b>."},displayName:{dataview:"Dataview",tasksEmojiFormat:"\u0424\u0430\u0440\u043C\u0430\u0442 \u044D\u043C\u043E\u0434\u0437\u0456 Tasks"},name:"\u0424\u0430\u0440\u043C\u0430\u0442 \u0437\u0430\u0434\u0430\u0447\u044B"},globalFilter:{filter:{description:{line1:"\u0420\u044D\u043A\u0430\u043C\u0435\u043D\u0434\u0443\u0435\u0446\u0446\u0430: \u043F\u0430\u043A\u0456\u043D\u044C\u0446\u0435 \u043F\u0443\u0441\u0442\u044B\u043C, \u043A\u0430\u043B\u0456 \u0445\u043E\u0447\u0430\u0446\u0435, \u043A\u0430\u0431 \u0443\u0441\u0435 \u043F\u0443\u043D\u043A\u0442\u044B \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443 \u045E \u0432\u0430\u0448\u044B\u043C \u0441\u0445\u043E\u0432\u0456\u0448\u0447\u044B \u0431\u044B\u043B\u0456 \u0437\u0430\u0434\u0430\u0447\u0430\u043C\u0456, \u044F\u043A\u0456\u043C\u0456 \u043A\u0456\u0440\u0443\u0435 \u0433\u044D\u0442\u044B \u043F\u043B\u0430\u0433\u0456\u043D.",line2:"\u0412\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0439\u0446\u0435 \u0433\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0444\u0456\u043B\u044C\u0442\u0440, \u043A\u0430\u043B\u0456 \u0432\u044B \u0445\u043E\u0447\u0430\u0446\u0435, \u043A\u0430\u0431 Tasks \u0434\u0437\u0435\u0439\u043D\u0456\u0447\u0430\u045E \u0442\u043E\u043B\u044C\u043A\u0456 \u043D\u0430 \u043F\u0430\u0434\u043C\u043D\u043E\u0441\u0442\u0432\u0430 \u0432\u0430\u0448\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443 \xAB<code>- [ ]</code>\xBB, \u0442\u0430\u043A\u0456\u043C \u0447\u044B\u043D\u0430\u043C, \u043A\u0430\u0431 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443 \u045E\u043A\u043B\u044E\u0447\u0430\u045E \u0443 \u0441\u0432\u0430\u0451 \u0430\u043F\u0456\u0441\u0430\u043D\u043D\u0435 \u0432\u044B\u0437\u043D\u0430\u0447\u0430\u043D\u044B \u0440\u0430\u0434\u043E\u043A, \u043A\u0430\u0431 \u043B\u0456\u0447\u044B\u0446\u0446\u0430 \u0437\u0430\u0434\u0430\u0447\u0430\u0439.",line3:"\u041D\u0430\u043F\u0440\u044B\u043A\u043B\u0430\u0434, \u043A\u0430\u043B\u0456 \u0432\u044B \u045E\u0441\u0442\u0430\u043B\u044E\u0435\u0446\u0435 \u0433\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0444\u0456\u043B\u044C\u0442\u0440 \u043D\u0430 <code>#task</code>, \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u0431\u0443\u0434\u0437\u0435 \u0430\u043F\u0440\u0430\u0446\u043E\u045E\u0432\u0430\u0446\u044C \u0442\u043E\u043B\u044C\u043A\u0456 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443, \u043F\u0430\u0437\u043D\u0430\u0447\u0430\u043D\u044B\u044F <code>#task</code>.",line4:"\u0406\u043D\u0448\u044B\u044F \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443 \u0437\u0430\u0441\u0442\u0430\u043D\u0443\u0446\u0446\u0430 \u0437\u0432\u044B\u0447\u0430\u0439\u043D\u044B\u043C\u0456 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u043C\u0456 \u043A\u0430\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0430\u0433\u0430 \u0441\u043F\u0456\u0441\u0443 \u0456 \u043D\u0435 \u0431\u0443\u0434\u0443\u0446\u044C \u0437'\u044F\u045E\u043B\u044F\u0446\u0446\u0430 \u045E \u0437\u0430\u043F\u044B\u0442\u0430\u0445, \u0456 \u0434\u043B\u044F \u0456\u0445 \u043D\u0435 \u0431\u0443\u0434\u0437\u0435 \u045E\u0441\u0442\u0430\u043D\u043E\u045E\u043B\u0435\u043D\u0430 \u0434\u0430\u0442\u0430 \u0432\u044B\u043A\u0430\u043D\u0430\u043D\u043D\u044F."},name:"\u0413\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0444\u0456\u043B\u044C\u0442\u0440",placeholder:"\u043D\u0430\u043F\u0440\u044B\u043A\u043B\u0430\u0434 #task \u0430\u0431\u043E TODO"},heading:"\u0413\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0444\u0456\u043B\u044C\u0442\u0440 \u0437\u0430\u0434\u0430\u0447",removeFilter:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0432\u044B\u0434\u0430\u043B\u0456\u0446\u044C \u0440\u0430\u0434\u043E\u043A, \u044F\u043A\u0456 \u0432\u044B \u045E\u0441\u0442\u0430\u043B\u044F\u0432\u0430\u043B\u0456 \u045E \u044F\u043A\u0430\u0441\u0446\u0456 \u0433\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u0430\u0433\u0430 \u0444\u0456\u043B\u044C\u0442\u0440\u0430, \u0437 \u0430\u043F\u0456\u0441\u0430\u043D\u043D\u044F \u0437\u0430\u0434\u0430\u0447\u044B \u043F\u0440\u044B \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u0456 \u0437\u0430\u0434\u0430\u0447\u044B.",name:"\u0412\u044B\u0434\u0430\u043B\u0456\u0446\u044C \u0433\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0444\u0456\u043B\u044C\u0442\u0440 \u0437 \u0430\u043F\u0456\u0441\u0430\u043D\u043D\u044F"}},globalQuery:{heading:"\u0413\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B \u0437\u0430\u043F\u044B\u0442",query:{description:"\u0417\u0430\u043F\u044B\u0442, \u044F\u043A\u0456 \u0430\u045E\u0442\u0430\u043C\u0430\u0442\u044B\u0447\u043D\u0430 \u045E\u043A\u043B\u044E\u0447\u0430\u0435\u0446\u0446\u0430 \u045E \u043F\u0430\u0447\u0430\u0442\u043A\u0443 \u043A\u043E\u0436\u043D\u0430\u0433\u0430 \u0431\u043B\u043E\u043A\u0430 Tasks \u0443 \u0441\u0445\u043E\u0432\u0456\u0448\u0447\u044B. \u041A\u0430\u0440\u044B\u0441\u043D\u044B \u0434\u043B\u044F \u0434\u0430\u0434\u0430\u043D\u043D\u044F \u0444\u0456\u043B\u044C\u0442\u0440\u0430\u045E \u043F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456 \u0430\u0431\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u045E \u043C\u0430\u043A\u0435\u0442\u0430.",placeholder:`\u041D\u0430\u043F\u0440\u044B\u043A\u043B\u0430\u0434...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u0435\u0440\u044B\u044F\u0434\u044B\u0447\u043D\u044B\u044F \u0437\u0430\u0434\u0430\u0447\u044B",nextLine:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0437\u0440\u043E\u0431\u0456\u0446\u044C \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u044B \u043D\u0430 \u0440\u0430\u0434\u043A\u0443 \u043D\u0456\u0436\u044D\u0439 \u0437\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u043D\u0443\u044E \u0437\u0430\u0434\u0430\u0447\u0443. \u0423 \u0430\u0434\u0432\u0430\u0440\u043E\u0442\u043D\u044B\u043C \u0432\u044B\u043F\u0430\u0434\u043A\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437'\u044F\u0432\u0456\u0446\u0446\u0430 \u043F\u0435\u0440\u0430\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u0430\u0439.",name:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437'\u044F\u045E\u043B\u044F\u0435\u0446\u0446\u0430 \u043D\u0430 \u0440\u0430\u0434\u043A\u0443 \u043D\u0456\u0436\u044D\u0439"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u0413\u043B\u044F\u0434\u0437\u0456\u0446\u0435 \u0434\u0430\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u044B\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u044D\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u044D\u043C\u0430 Aura",borderTheme:"\u0422\u044D\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u0430\u0434\u0430\u0446\u044C {{numberOfStatuses}} \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043E\u045E\u0432\u0430\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B"}},ebullientworksTheme:"\u0422\u044D\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u044D\u043C\u0430 ITS \u0456 \u0441\u0446\u044F\u0436\u043A\u0456 SlRvb",lytModeTheme:"\u0422\u044D\u043C\u0430 LYT Mode (\u0442\u043E\u043B\u044C\u043A\u0456 \u0446\u0451\u043C\u043D\u044B \u0440\u044D\u0436\u044B\u043C)",minimalTheme:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u044D\u043C\u0430",thingsTheme:"\u0422\u044D\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0440\u0430\u0433\u043B\u044F\u0434\u0437\u0435\u0446\u044C \u0456 \u043F\u0440\u0430\u0432\u0435\u0440\u044B\u0446\u044C \u0432\u0430\u0448\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u044B",tooltip:"\u0421\u0442\u0432\u0430\u0440\u044B\u0446\u044C \u043D\u043E\u0432\u044B \u0444\u0430\u0439\u043B \u0443 \u043A\u0430\u0440\u0430\u043D\u0451\u0432\u0430\u0439 \u0442\u044D\u0447\u0446\u044B \u0441\u0445\u043E\u0432\u0456\u0448\u0447\u0430, \u044F\u043A\u0456 \u0437\u043C\u044F\u0448\u0447\u0430\u0435 \u0434\u044B\u044F\u0433\u0440\u0430\u043C\u0443 Mermaid \u0437 \u0431\u044F\u0433\u0443\u0447\u044B\u043C\u0456 \u043D\u0430\u043B\u0430\u0434\u0430\u043C\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0443."}},description:{line1:"\u0413\u044D\u0442\u0430 \u0430\u0441\u043D\u043E\u045E\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u044F\u043A\u0456\u044F Tasks \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043B\u0456\u0432\u0430\u0435 \u045E\u043B\u0430\u0441\u043D\u0430, \u0431\u0435\u0437 \u043F\u0430\u0442\u0440\u044D\u0431\u044B \u045E \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u043C CSS-\u0441\u0442\u044B\u043B\u0456 \u0430\u0431\u043E \u0442\u044D\u043C\u0430\u0442\u044B\u0437\u0430\u0446\u044B\u0456.",line2:"\u0412\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u0440\u044D\u0434\u0430\u0433\u0430\u0432\u0430\u0446\u044C \u0456 \u0434\u0430\u0434\u0430\u0432\u0430\u0446\u044C \u0441\u0432\u0430\u0435 \u045E\u043B\u0430\u0441\u043D\u044B\u044F \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u045E \u0440\u0430\u0437\u0434\u0437\u0435\u043B\u0435 \u043D\u0456\u0436\u044D\u0439."},heading:"\u0410\u0441\u043D\u043E\u045E\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u0430\u0434\u0430\u0446\u044C \u0443\u0441\u0435 \u043D\u0435\u0432\u044F\u0434\u043E\u043C\u044B\u044F \u0442\u044B\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E"},addNewStatus:{name:"\u0414\u0430\u0434\u0430\u0446\u044C \u043D\u043E\u0432\u044B \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u044B"},resetCustomStatuses:{name:"\u0421\u043A\u0456\u043D\u0443\u0446\u044C \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0442\u044B\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0434\u0430 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u044F\u045E \u043F\u0430 \u0437\u043C\u0430\u045E\u0447\u0430\u043D\u043D\u0456"}},description:{line1:"\u0421\u043F\u0430\u0447\u0430\u0442\u043A\u0443 \u0432\u044B \u043F\u0430\u0432\u0456\u043D\u043D\u044B <b>\u0432\u044B\u0431\u0440\u0430\u0446\u044C \u0456 \u045E\u0441\u0442\u0430\u043B\u044F\u0432\u0430\u0446\u044C CSS Snippet \u0430\u0431\u043E Theme</b>, \u043A\u0430\u0431 \u0441\u0442\u044B\u043B\u0456\u0437\u0430\u0432\u0430\u0446\u044C \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0446\u044F\u0436\u043A\u0456.",line2:"\u0417\u0430\u0442\u044B\u043C \u0432\u044B\u043A\u0430\u0440\u044B\u0441\u0442\u043E\u045E\u0432\u0430\u0439\u0446\u0435 \u043A\u043D\u043E\u043F\u043A\u0456 \u043D\u0456\u0436\u044D\u0439, \u043A\u0430\u0431 \u043D\u0430\u043B\u0430\u0434\u0437\u0456\u0446\u044C \u0441\u0432\u0430\u0435 \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u045E \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u0456 \u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u043C\u0456 CSS-\u0441\u0446\u044F\u0436\u043A\u0430\u043C\u0456.",line3:"<b>\u0417\u0430\u045E\u0432\u0430\u0433\u0430</b> \u041B\u044E\u0431\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0437 \u0442\u044B\u043C \u0436\u0430 \u0441\u0456\u043C\u0432\u0430\u043B\u0430\u043C, \u0448\u0442\u043E \u0456 \u045E \u043F\u0430\u043F\u044F\u0440\u044D\u0434\u043D\u0456\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E, \u0431\u0443\u0434\u0443\u0446\u044C \u043F\u0440\u0430\u0456\u0433\u043D\u0430\u0440\u0430\u0432\u0430\u043D\u044B\u044F. \u0412\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u043F\u0430\u0446\u0432\u0435\u0440\u0434\u0437\u0456\u0446\u044C \u0444\u0430\u043A\u0442\u044B\u0447\u043D\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u0437\u0430\u043F\u0443\u0441\u0446\u0456\u045E\u0448\u044B \u043A\u0430\u043C\u0430\u043D\u0434\u0443 \xAB\u0421\u0442\u0432\u0430\u0440\u044B\u0446\u044C \u0430\u0431\u043E \u0440\u044D\u0434\u0430\u0433\u0430\u0432\u0430\u0446\u044C \u0437\u0430\u0434\u0430\u0447\u0443\xBB \u0456 \u043F\u0430\u0433\u043B\u044F\u0434\u0437\u0435\u045E\u0448\u044B \u043D\u0430 \u0432\u044B\u043F\u0430\u0434\u0430\u043B\u044C\u043D\u044B \u0441\u043F\u0456\u0441 \u0421\u0442\u0430\u0442\u0443\u0441.",line4:"\u0413\u043B\u044F\u0434\u0437\u0456\u0446\u0435 \u0434\u0430\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u044B\u044E, \u043A\u0430\u0431 \u043F\u0430\u0447\u0430\u0446\u044C!"},heading:"\u041A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},heading:"\u0421\u0442\u0430\u0442\u0443\u0441\u044B \u0437\u0430\u0434\u0430\u0447"}}}});var Kb,zb=X(()=>{Kb={main:{loadingPlugin:"Lade Plugin: {{name}} v{{version}}",unloadingPlugin:"Entlade Plugin: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"WennBei Aktivierung k\xF6nnen Sie diesen Status als Befehl nutzen und ihm eine Tastenkombination zuordnen, um den Status umzuschalten.",name:"Verf\xFCgbar als Befehl"},editNextStatusSymbol:{description:"Bei Klick verwenden Sie dies als das n\xE4chstverwendete Symbol.",name:"Symbol f\xFCr n\xE4chsten Status"},editStatusName:{description:"Der Anzeigename des Aufgabenstatus.",name:"Name des Aufgabenstatus"},editStatusSymbol:{description:"Das Zeichen zwischen den eckigen Klammern. (Sie k\xF6nnen es nur f\xFCr benutzerdefinierte Status bearbeiten, nicht f\xFCr Kernstatus.)",name:"Symbol des Aufgabenstatus"},editStatusType:{description:"Kontrollieren Sie, wie der Status beim Suchen und Umschalten funktioniert.",name:"Typ des Aufgabenstatus"},fixErrorsBeforeSaving:"Fehler vor dem Speichern beheben."}},reports:{statusRegistry:{about:{createdBy:"Ich habe diese Datei mit dem Obsidian Tasks-Plugin (Version {{version}}) erstellt, um die Aufgabenstatus in diesem Vault zu visualisieren.",deleteFileAnyTime:"Sie k\xF6nnen diese Datei jederzeit l\xF6schen.",title:"\xDCber diese Datei",updateReport:{line1:"Wenn Sie die Tasks-Status-Einstellungen \xE4ndern, erhalten Sie einen aktualisierten Bericht, indem Sie:",line2:"Zu `Einstellungen` -> `Tasks` gehen.",line3:"Auf `\xDCberpr\xFCfen und Status kontrollieren` klicken."}},columnHeadings:{nextStatusSymbol:"N\xE4chstes Status-Symbol",problems:"Probleme (falls vorhanden)",statusName:"Statusname",statusSymbol:"Statussymbol",statusType:"Statustyp"},loadedSettings:{settingsActuallyUsed:"Dies sind die aktuellen Einstellungen, die Tasks verwendet.",switchToLivePreview:"Wechseln Sie zur Live-Vorschau oder zum Lesemodus, um das Diagramm zu sehen.",title:"Geladene Einstellungen"},messages:{cannotFindNextStatus:"Ich konnte den n\xE4chsten Status nicht finden.",duplicateSymbol:"Doppeltes Symbol '{{symbol}}': Plugin ignoriert diesen Status.",emptySymbol:"Leeres Symbol: Plugin ignoriert diesen Status.",nextSymbolUnknown:"N\xE4chstes Symbol {{symbol}} ist unbekannt: Erstellen Sie einen Status mit dem Symbol {{symbol}}.",notConventionalType:"Zur Information: Der \xFCbliche Typ f\xFCr das Status-Symbol {{symbol}} ist {{type}}. \xDCberpr\xFCfen Sie diesen Typ gegebenenfalls.",wrongTypeAfterDone:{line1:"Nach diesem `ERLEDIGT`-Status folgt {{nextType}}, nicht `TODO` oder `IN_PROGRESS`.",line2:"Wenn Sie diesen Status verwenden, um eine wiederkehrende Aufgabe abzuschlie\xDFen, folgt darauf `TODO` oder `IN_PROGRESS`, um sicherzustellen, dass die n\xE4chste Aufgabe dem `nicht erledigt`-Filter entspricht.",line3:"Siehe [Wiederkehrende Aufgaben und benutzerdefinierte Status]({{helpURL}})."}},sampleTasks:{line1:"Hier ist eine Beispiel-Aufgabenzeile f\xFCr jeden von Tasks tats\xE4chlich genutzten Status, mit der Sie experimentieren k\xF6nnen.",line2:"Zu dem Zeitpunkt, zu dem ich diese Datei erstellt habe, waren die Status-Symbole und Namen in den Aufgabentexten korrekt.",line3:"Wenn Sie die Beispielaufgaben ge\xE4ndert haben, sehen Sie die aktuellen Statustypen und Namen in den Gruppen\xFCberschriften in der Tasks-Suche unten.",tip:{line1:"Tipp: Wenn alle Ihre Kontrollk\xE4stchen gleich aussehen...",line2:"Wenn Ihre Kontrollk\xE4stchen im Lesemodus oder in der Live-Vorschau gleich aussehen, informieren Sie sich unter [Benutzerdefinierte Statusstile]({{url}}), wie Sie ein Theme oder ein CSS-Snippet ausw\xE4hlen k\xF6nnen, um Ihre Status zu formatieren."},title:"Beispielaufgaben"},searchSampleTasks:{line1:"Diese Tasks-Suche zeigt alle Aufgaben in dieser Datei an, gruppiert nach ihrem Statustyp und Statusnamen.",title:"Suche in den Beispielaufgaben"},statusSettings:{comment:{line1:"Wechseln Sie zur Live-Vorschau oder zum Lesemodus, um die Tabelle zu sehen.",line2:"Wenn in Statusnamen Markdown-Formatierungszeichen wie '*' oder '_' enthalten sind,",line3:"stellt Obsidian die Tabelle m\xF6glicherweise nur im Lesemodus korrekt dar."},theseAreStatusValues:"Diese Statuswerte finden Sie in den Abschnitten Kern- und Benutzerdefinierte Status.",title:"Status-Einstellungen"}}},settings:{autoSuggest:{heading:"Autosuggest",maxSuggestions:{description:'Wie viele Vorschl\xE4ge m\xF6chten Sie anzeigen, wenn ein Autosuggest-Men\xFC aufgeht (einschlie\xDFlich der "\u23CE"-Option).',name:"Maximale Anzahl von Autosuggest-Vorschl\xE4gen anzeigen"},minLength:{description:"Wenn gr\xF6\xDFer als 0, l\xF6st Autosuggest nur aus, wenn Sie den Beginn eines unterst\xFCtzten Schl\xFCsselwortes erkennen.",name:"Minimale \xDCbereinstimmungsl\xE4nge f\xFCr Autosuggest"},toggle:{description:"Durch Aktivierung \xF6ffnet sich ein intelligentes Vorschlagsmen\xFC, w\xE4hrend Sie innerhalb einer erkannten Aufgabenzeile tippen.",name:"Aufgabentext automatisch vorschlagen"}},changeRequiresRestart:"Das \xC4ndern von Einstellungen erfordert einen Neustart von Obsidian.",dates:{cancelledDate:{description:"Wenn aktiviert, f\xFCge beim Umschalten auf 'abgebrochen' automatisch ein Datum \u274C YYYY-MM-DD am Ende hinzu.",name:"Abbruch-Datum bei jeder abgebrochenen Aufgabe festlegen"},createdDate:{description:"F\xFCge bei Aktivierung beim Erstellen einer Aufgabe mit 'Erstellen oder Bearbeiten einer Aufgabe' oder beim Abschluss einer wiederkehrenden Aufgabe ein Datum \u2795 YYYY-MM-DD vor anderen Datumswerten hinzu.",name:"Erstellungsdatum bei jeder hinzugef\xFCgten Aufgabe festlegen"},doneDate:{description:"Bei Aktivierung wird beim Umschalten auf 'erledigt' automatisch ein Datum \u2705 YYYY-MM-DD am Ende hinzugef\xFCgt.",name:"Erledigungsdatum bei jeder abgeschlossenen Aufgabe festlegen"},heading:"Daten"},datesFromFileNames:{heading:"Daten aus Dateinamen",scheduledDate:{extraFormat:{description:{line1:"Ein zus\xE4tzliches Datumsformat, das das Tasks-Plugin beim Verwenden des Dateinamens als geplantes Datum f\xFCr undatierte Aufgaben erkennt.",line2:"Syntax-Referenz"},name:"Zus\xE4tzliches Datumsformat f\xFCr Dateinamen als geplantes Datum f\xFCr undatierte Aufgaben",placeholder:"Beispiel: MMM DD YYYY"},folders:{description:"Lassen Sie dieses Feld leer, wenn Sie standardm\xE4\xDFige geplante Datumsangaben \xFCberall verwenden wollen, oder geben Sie eine durch Kommas getrennte Liste von Ordnern ein.",name:"Ordner mit standardm\xE4\xDFigen geplanten Datumsangaben"},toggle:{description:{line1:"Sparen Sie Zeit beim Eingeben geplanter (\u23F3) Daten.",line2:"Bei Aktivierung erhalten alle undatierten Aufgaben ein geplantes Datum, das aus ihrem Dateinamen extrahiert wird.",line3:"Standardm\xE4\xDFig erkennt das Tasks-Plugin sowohl <code>YYYY-MM-DD</code> als auch <code>YYYYMMDD</code> Datumsformate.",line4:"Undatierte Aufgaben haben weder ein F\xE4lligkeitsdatum (\u{1F4C5} ), geplantes (\u23F3) noch Start-(\u{1F6EB})datum."},name:"Dateinamen als geplantes Datum f\xFCr undatierte Aufgaben verwenden"}}},dialogs:{accessKeys:{description:"Wenn die Zugriffsschl\xFCssel (Tastenkombinationen) f\xFCr verschiedene Steuerelemente in Dialogfeldern in Konflikt mit System-Tastenkombinationen oder wichtigen assistiven Funktionen stehen, deaktivieren Sie sie hier.",name:"Zugriffsschl\xFCssel in Dialogen bereitstellen"},heading:"Dialoge"},format:{description:{line1:"Das Format, das Tasks zum Lesen und Schreiben von Aufgaben verwendet.",line2:"<b>Wichtig:</b> Tasks unterst\xFCtzt gleichzeitig nur ein Format. Wenn Sie Dataview ausw\xE4hlen, hindert dies Tasks daran, seine eigenen Emoji-Anzeiger zu verwenden."},displayName:{dataview:"Dataview",tasksEmojiFormat:"Tasks Emoji Format"},name:"Aufgabenformat"},globalFilter:{filter:{description:{line1:"Empfehlung: Lassen Sie dieses Feld leer, damit das Plugin alle Kontrollk\xE4stchen in Ihrem Tresor als Aufgaben verwalten kann.",line2:'Verwenden Sie einen globalen Filter, wenn Tasks nur auf einen Teil Ihrer "<code>- [ ]</code>" Kontrollk\xE4stchenitems wirken soll. Sorgen Sie daf\xFCr, dass ein Kontrollk\xE4stchenitem die angegebene Zeichenfolge in seiner Beschreibung enth\xE4lt, um als Aufgabe betrachtet zu werden.',line3:"Setzen Sie den globalen Filter z. B. auf <code>#task</code>, verwaltet Tasks nur die mit <code>#task</code> gekennzeichneten Kontrollk\xE4stchenitems.",line4:"Andere Kontrollk\xE4stchenitems bleiben normale Kontrollk\xE4stchen und erscheinen nicht in Abfragen und erhalten kein Erledigungsdatum."},name:"Globaler Filter",placeholder:"z.B. #task oder TODO"},heading:"Globaler Aufgabenfilter",removeFilter:{description:"Aktiviert entfernt die Zeichenfolge, die Sie als globalen Filter gesetzt haben, aus der Aufgabenbeschreibung, wenn die Aufgabe angezeigt wird.",name:"Globalen Filter aus Beschreibung entfernen"}},globalQuery:{heading:"Globale Abfrage",query:{description:"F\xFCgen Sie automatisch eine Abfrage am Anfang jedes Tasks-Blocks im Tresor hinzu. N\xFCtzlich f\xFCr Standardfilter oder Layout-Optionen.",placeholder:`Zum Beispiel...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"",line2:"",name:""},recurringTasks:{heading:"Wiederkehrende Aufgaben",nextLine:{description:"Aktivieren Sie dies, damit das n\xE4chste Auftreten einer Aufgabe in der Zeile unterhalb der abgeschlossenen Aufgabe erscheint. Ansonsten erscheint es vor der abgeschlossenen Aufgabe.",name:"N\xE4chste Wiederholung erscheint in Zeile darunter"},removeScheduledDate:{description:{line1:"Aktiviert, damit das n\xE4chste Auftreten einer Aufgabe keinen geplanten (\u23F3) Termin hat, wenn mindestens Start-(\u{1F6EB}) oder F\xE4lligkeitsdaten (\u{1F4C5}) vorhanden sind.",line2:"Dies gilt, wenn Sie m\xF6chten, dass Start- und F\xE4lligkeitsdaten beim n\xE4chsten Auftreten beibehalten werden, aber das geplante Datum sp\xE4ter festgelegt wird, sobald Sie planen, daran zu arbeiten."},name:"Geplantes Datum bei Wiederholung entfernen"}},seeTheDocumentation:"Vgl. die Dokumentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccin Theme",auraTheme:"Aura Theme",borderTheme:"Border Theme",buttons:{addCollection:{name:"{{themeName}}: F\xFCge {{numberOfStatuses}} unterst\xFCtzte Status hinzu"}},ebullientworksTheme:"Ebullientworks Theme",itsThemeAndSlrvbCheckboxes:"ITS Theme & SlRvb Kontrollk\xE4stchen",lytModeTheme:"LYT Mode Theme (nur Dunkelmodus)",minimalTheme:"Minimal Theme",thingsTheme:"Things Theme"},coreStatuses:{buttons:{checkStatuses:{name:"\xDCberpr\xFCfen und einsehen Sie Ihre Status-Eintr\xE4ge",tooltip:"Erstellen Sie eine neue Datei im Hauptverzeichnis des Tresors, die ein Mermaid-Diagramm der aktuellen Statuseinstellungen enth\xE4lt."}},description:{line1:"Diese Kern-Status unterst\xFCtzt Tasks nativ ohne benutzerdefiniertes CSS-Styling oder Themes.",line2:"Hinzuf\xFCgen und Bearbeiten Ihrer eigenen benutzerdefinierten Status k\xF6nnen Sie im unteren Abschnitt."},heading:"Kern-Status"},customStatuses:{buttons:{addAllUnknown:{name:"Alle unbekannten Statustypen hinzuf\xFCgen"},addNewStatus:{name:"Neuen Aufgabenstatus hinzuf\xFCgen"},resetCustomStatuses:{name:"Benutzerdefinierte Statustypen auf Standard zur\xFCcksetzen"}},description:{line1:"Zuerst w\xE4hlen und installieren Sie ein CSS-Snippet oder Theme, um benutzerdefinierte Kontrollk\xE4stchen zu formatieren.",line2:"Verwenden Sie dann die untenstehenden Schaltfl\xE4chen, um Ihre benutzerdefinierten Status zu erstellen, sodass sie mit Ihren ausgew\xE4hlten CSS-Kontrollk\xE4stchen \xFCbereinstimmen.",line3:"Hinweis: Status mit dem gleichen Symbol wie ein fr\xFCherer Status ignorieren wir. Best\xE4tigen Sie die tats\xE4chlich geladenen Status, indem Sie den 'Aufgabe erstellen oder bearbeiten'-Befehl ausf\xFChren und das Status-Dropdown anschauen.",line4:"Nutzen Sie die Dokumentation, um loszulegen!"},heading:"Benutzerdefinierte Status"},heading:"Aufgabenstatus"}}}});var Zb,Qb=X(()=>{Zb={main:{loadingPlugin:"Loading plugin: {{name}} v{{version}}",unloadingPlugin:"Unloading plugin: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"If enabled this status will be available as a command so you can assign a hotkey and toggle the status using it.",name:"Available as command"},editNextStatusSymbol:{description:"When clicked on this is the symbol that should be used next.",name:"Task Next Status Symbol"},editStatusName:{description:"This is the friendly name of the task status.",name:"Task Status Name"},editStatusSymbol:{description:"This is the character between the square braces. (It can only be edited for Custom statuses, and not Core statuses.)",name:"Task Status Symbol"},editStatusType:{description:"Control how the status behaves for searching and toggling.",name:"Task Status Type"},fixErrorsBeforeSaving:"Fix errors before saving."}},reports:{statusRegistry:{about:{createdBy:"This file was created by the Obsidian Tasks plugin (version {{version}}) to help visualise the task statuses in this vault.",deleteFileAnyTime:"You can delete this file any time.",title:"About this file",updateReport:{line1:"If you change the Tasks status settings, you can get an updated report by:",line2:"Going to `Settings` -> `Tasks`.",line3:"Clicking on `Review and check your Statuses`."}},columnHeadings:{nextStatusSymbol:"Next Status Symbol",problems:"Problems (if any)",statusName:"Status Name",statusSymbol:"Status Symbol",statusType:"Status Type"},loadedSettings:{settingsActuallyUsed:"These are the settings actually used by Tasks.",switchToLivePreview:"Switch to Live Preview or Reading Mode to see the diagram.",title:"Loaded Settings"},messages:{cannotFindNextStatus:"Unexpected failure to find the next status.",duplicateSymbol:"Duplicate symbol '{{symbol}}': this status will be ignored.",emptySymbol:"Empty symbol: this status will be ignored.",nextSymbolUnknown:"Next symbol {{symbol}} is unknown: create a status with symbol {{symbol}}.",notConventionalType:"For information, the conventional type for status symbol {{symbol}} is {{type}}: you may wish to review this type.",wrongTypeAfterDone:{line1:"This `DONE` status is followed by {{nextType}}, not `TODO` or `IN_PROGRESS`.",line2:"If used to complete a recurring task, it will instead be followed by `TODO` or `IN_PROGRESS`, to ensure the next task matches the `not done` filter.",line3:"See [Recurring Tasks and Custom Statuses]({{helpURL}})."}},sampleTasks:{line1:"Here is one example task line for each of the statuses actually used by tasks, for you to experiment with.",line2:"The status symbols and names in the task descriptions were correct when this file was created.",line3:"If you have modified the sample tasks since they were created, you can see the current status types and names in the group headings in the Tasks search below.",tip:{line1:"Tip: If all your checkboxes look the same...",line2:"If all the checkboxes look the same in Reading Mode or Live Preview, see [Style custom statuses]({{url}}) for how to select a theme or CSS snippet to style your statuses."},title:"Sample Tasks"},searchSampleTasks:{line1:"This Tasks search shows all the tasks in this file, grouped by their status type and status name.",title:"Search the Sample Tasks"},statusSettings:{comment:{line1:"Switch to Live Preview or Reading Mode to see the table.",line2:"If there are any Markdown formatting characters in status names, such as '*' or '_',",line3:"Obsidian may only render the table correctly in Reading Mode."},theseAreStatusValues:"These are the status values in the Core and Custom statuses sections.",title:"Status Settings"}}},settings:{autoSuggest:{heading:"Auto-suggest",maxSuggestions:{description:'How many suggestions should be shown when an auto-suggest menu pops up (including the "\u23CE" option).',name:"Maximum number of auto-suggestions to show"},minLength:{description:"If higher than 0, auto-suggest will be triggered only when the beginning of any supported keywords is recognized.",name:"Minimum match length for auto-suggest"},toggle:{description:"Enabling this will open an intelligent suggest menu while typing inside a recognized task line.",name:"Auto-suggest task content"}},changeRequiresRestart:"Changing any settings requires a restart of obsidian.",dates:{cancelledDate:{description:"Enabling this will add a timestamp \u274C YYYY-MM-DD at the end when a task is toggled to cancelled.",name:"Set cancelled date on every cancelled task"},createdDate:{description:"Enabling this will add a timestamp \u2795 YYYY-MM-DD before other date values, when a task is created with 'Create or edit task', or by completing a recurring task.",name:"Set created date on every added task"},doneDate:{description:"Enabling this will add a timestamp \u2705 YYYY-MM-DD at the end when a task is toggled to done.",name:"Set done date on every completed task"},heading:"Dates"},datesFromFileNames:{heading:"Dates from file names",scheduledDate:{extraFormat:{description:{line1:"An additional date format that Tasks plugin will recogize when using the file name as the Scheduled date for undated tasks.",line2:"Syntax Reference"},name:"Additional filename date format as Scheduled date for undated tasks",placeholder:"example: MMM DD YYYY"},folders:{description:"Leave empty if you want to use default Scheduled dates everywhere, or enter a comma-separated list of folders.",name:"Folders with default Scheduled dates"},toggle:{description:{line1:"Save time entering Scheduled (\u23F3) dates.",line2:"If this option is enabled, any undated tasks will be given a default Scheduled date extracted from their file name.",line3:"By default, Tasks plugin will match both <code>YYYY-MM-DD</code> and <code>YYYYMMDD</code> date formats.",line4:"Undated tasks have none of Due (\u{1F4C5} ), Scheduled (\u23F3) and Start (\u{1F6EB}) dates."},name:"Use filename as Scheduled date for undated tasks"}}},dialogs:{accessKeys:{description:"If the access keys (keyboard shortcuts) for various controls in dialog boxes conflict with system keyboard shortcuts or assistive technology functionality that is important for you, you may want to deactivate them here.",name:"Provide access keys in dialogs"},heading:"Dialogs"},format:{description:{line1:"The format that Tasks uses to read and write tasks.",line2:"<b>Important:</b> Tasks currently only supports one format at a time. Selecting Dataview will currently <b>stop Tasks reading its own emoji signifiers</b>."},displayName:{dataview:"Dataview",tasksEmojiFormat:"Tasks Emoji Format"},name:"Task Format"},globalFilter:{filter:{description:{line1:"Recommended: Leave empty if you want all checklist items in your vault to be tasks managed by this plugin.",line2:'Use a global filter if you want Tasks to only act on a subset of your "<code>- [ ]</code>" checklist items, so that a checklist item must include the specified string in its description in order to be considered a task.',line3:"For example, if you set the global filter to <code>#task</code>, the Tasks plugin will only handle checklist items tagged with <code>#task</code>.",line4:"Other checklist items will remain normal checklist items and not appear in queries or get a done date set."},name:"Global filter",placeholder:"e.g. #task or TODO"},heading:"Global task filter",removeFilter:{description:"Enabling this removes the string that you set as global filter from the task description when displaying a task.",name:"Remove global filter from description"}},globalQuery:{heading:"Global Query",query:{description:"A query that is automatically included at the start of every Tasks block in the vault. Useful for adding default filters, or layout options.",placeholder:`For example...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"You can define named instructions here, that you can re-use in multiple queries. A preset called '{{name}}' can be used in Tasks queries with either '{{instruction1}}' or '{{instruction2}}'.",line2:"Any open Tasks queries are reloaded automatically when presets are edited.",name:"Presets"},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"},removeScheduledDate:{description:{line1:"Enabling this will make the next recurrence of a task have no Scheduled (\u23F3) date, when at least one of Start (\u{1F6EB}) or Due (\u{1F4C5}) dates is present.",line2:"This is for when you want the Start and Due dates to carry forward to the next recurrence, but you will set the Scheduled date in future, once you plan to work on it."},name:"Remove scheduled date on recurrence"}},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 Jb,Xb=X(()=>{Jb={main:{loadingPlugin:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}",unloadingPlugin:"\u0412\u044B\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u0415\u0441\u043B\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u044D\u0442\u043E\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043A\u0430\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u0430, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0437\u043D\u0430\u0447\u0438\u0442\u044C \u0433\u043E\u0440\u044F\u0447\u0443\u044E \u043A\u043B\u0430\u0432\u0438\u0448\u0443 \u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0441 \u0435\u0435 \u043F\u043E\u043C\u043E\u0449\u044C\u044E.",name:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043A\u0430\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u0430"},editNextStatusSymbol:{description:"\u041F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u044D\u0442\u043E \u0441\u0438\u043C\u0432\u043E\u043B, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u043C.",name:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438"},editStatusName:{description:"\u042D\u0442\u043E \u043F\u043E\u043D\u044F\u0442\u043D\u043E\u0435 \u0438\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438.",name:"\u0418\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438"},editStatusSymbol:{description:"\u042D\u0442\u043E \u0441\u0438\u043C\u0432\u043E\u043B \u043C\u0435\u0436\u0434\u0443 \u043A\u0432\u0430\u0434\u0440\u0430\u0442\u043D\u044B\u043C\u0438 \u0441\u043A\u043E\u0431\u043A\u0430\u043C\u0438. (\u0415\u0433\u043E \u043C\u043E\u0436\u043D\u043E \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432, \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0445.)",name:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438"},editStatusType:{description:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435\u043C \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043F\u0440\u0438 \u043F\u043E\u0438\u0441\u043A\u0435 \u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438.",name:"\u0422\u0438\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u0434\u0430\u0447\u0438"},fixErrorsBeforeSaving:"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043E\u0448\u0438\u0431\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u043C."}},reports:{statusRegistry:{about:{createdBy:"\u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u0431\u044B\u043B \u0441\u043E\u0437\u0434\u0430\u043D \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C Obsidian Tasks (\u0432\u0435\u0440\u0441\u0438\u044F {{version}}), \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0438\u0437\u0443\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0437\u0430\u0434\u0430\u0447 \u0432 \u044D\u0442\u043E\u043C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435.",deleteFileAnyTime:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u0432 \u043B\u044E\u0431\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",title:"\u041E\u0431 \u044D\u0442\u043E\u043C \u0444\u0430\u0439\u043B\u0435",updateReport:{line1:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 Tasks, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0439 \u043E\u0442\u0447\u0435\u0442, \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F:",line2:"\u041F\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 `Settings` -> `Tasks`.",line3:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 `Review and check your Statuses`."}},columnHeadings:{nextStatusSymbol:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430",problems:"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u044B (\u0435\u0441\u043B\u0438 \u0435\u0441\u0442\u044C)",statusName:"\u0418\u043C\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0430",statusSymbol:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",statusType:"\u0422\u0438\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0430"},loadedSettings:{settingsActuallyUsed:"\u042D\u0442\u043E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F Tasks.",switchToLivePreview:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u0441\u044C \u0432 \u0440\u0435\u0436\u0438\u043C Live Preview \u0438\u043B\u0438 Reading Mode, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0443.",title:"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"},messages:{cannotFindNextStatus:"\u041D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0438\u0441\u043A\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430.",duplicateSymbol:"\u0414\u0443\u0431\u043B\u0438\u0440\u0443\u044E\u0449\u0438\u0439\u0441\u044F \u0441\u0438\u043C\u0432\u043E\u043B '{{symbol}}': \u044D\u0442\u043E\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u043D.",emptySymbol:"\u041F\u0443\u0441\u0442\u043E\u0439 \u0441\u0438\u043C\u0432\u043E\u043B: \u044D\u0442\u043E\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u043D.",nextSymbolUnknown:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0441\u0438\u043C\u0432\u043E\u043B {{symbol}} \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043D: \u0441\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u043C {{symbol}}.",notConventionalType:"\u0414\u043B\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u043E\u0431\u044B\u0447\u043D\u044B\u0439 \u0442\u0438\u043F \u0434\u043B\u044F \u0441\u0438\u043C\u0432\u043E\u043B\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 {{symbol}} - {{type}}: \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0445\u043E\u0442\u0435\u0442\u044C \u043F\u0435\u0440\u0435\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u044D\u0442\u043E\u0442 \u0442\u0438\u043F.",wrongTypeAfterDone:{line1:"\u0417\u0430 \u044D\u0442\u0438\u043C \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u043C `DONE` \u0441\u043B\u0435\u0434\u0443\u0435\u0442 {{nextType}}, \u0430 \u043D\u0435 `TODO` \u0438\u043B\u0438 `IN_PROGRESS`.",line2:"\u0415\u0441\u043B\u0438 \u043E\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0434\u043B\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0435\u0439\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0438, \u0442\u043E \u0432\u043C\u0435\u0441\u0442\u043E \u044D\u0442\u043E\u0433\u043E \u0437\u0430 \u043D\u0438\u043C \u0431\u0443\u0434\u0435\u0442 \u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C `TODO` \u0438\u043B\u0438 `IN_PROGRESS`, \u0447\u0442\u043E\u0431\u044B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u043B\u0430 \u0444\u0438\u043B\u044C\u0442\u0440\u0443 `\u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E`.",line3:"\u0421\u043C. [Recurring Tasks and Custom Statuses]({{helpURL}})."}},sampleTasks:{line1:"\u0412\u043E\u0442 \u043F\u043E \u043E\u0434\u043D\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u0435-\u043F\u0440\u0438\u043C\u0435\u0440\u0443 \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0430, \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u043E\u0433\u043E \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C, \u0447\u0442\u043E\u0431\u044B \u0432\u044B \u043C\u043E\u0433\u043B\u0438 \u043F\u043E\u044D\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C.",line2:"\u0421\u0438\u043C\u0432\u043E\u043B\u044B \u0438 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 \u0432 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044F\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u044B\u043B\u0438 \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B \u043D\u0430 \u043C\u043E\u043C\u0435\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0444\u0430\u0439\u043B\u0430.",line3:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0438\u0437\u043C\u0435\u043D\u0438\u043B\u0438 \u043F\u0440\u0438\u043C\u0435\u0440\u044B \u0437\u0430\u0434\u0430\u0447 \u0441 \u043C\u043E\u043C\u0435\u043D\u0442\u0430 \u0438\u0445 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0442\u0438\u043F\u044B \u0438 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 \u0432 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430\u0445 \u0433\u0440\u0443\u043F\u043F \u0432 \u043F\u043E\u0438\u0441\u043A\u0435 Tasks \u043D\u0438\u0436\u0435.",tip:{line1:"\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430: \u0415\u0441\u043B\u0438 \u0432\u0441\u0435 \u0432\u0430\u0448\u0438 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u044B \u0432\u044B\u0433\u043B\u044F\u0434\u044F\u0442 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E...",line2:"\u0415\u0441\u043B\u0438 \u0432\u0441\u0435 \u0447\u0435\u043A\u0431\u043E\u043A\u0441\u044B \u0432\u044B\u0433\u043B\u044F\u0434\u044F\u0442 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0447\u0442\u0435\u043D\u0438\u044F (Reading Mode) \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 (Live Preview), \u0441\u043C. [\u0421\u0442\u0438\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432]({{url}}), \u0447\u0442\u043E\u0431\u044B \u0443\u0437\u043D\u0430\u0442\u044C, \u043A\u0430\u043A \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0442\u0435\u043C\u0443 \u0438\u043B\u0438 CSS-\u0444\u0440\u0430\u0433\u043C\u0435\u043D\u0442 (snippet) \u0434\u043B\u044F \u0441\u0442\u0438\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432."},title:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0417\u0430\u0434\u0430\u0447"},searchSampleTasks:{line1:"\u042D\u0442\u043E\u0442 \u043F\u043E\u0438\u0441\u043A Tasks \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u044D\u0442\u043E\u043C \u0444\u0430\u0439\u043B\u0435, \u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u043F\u043E \u0442\u0438\u043F\u0443 \u0438 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E \u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0430.",title:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043F\u0440\u0438\u043C\u0435\u0440\u0430\u043C \u0437\u0430\u0434\u0430\u0447"},statusSettings:{comment:{line1:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u0441\u044C \u0432 \u0440\u0435\u0436\u0438\u043C Live Preview \u0438\u043B\u0438 Reading Mode, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0442\u0430\u0431\u043B\u0438\u0446\u0443.",line2:"\u0415\u0441\u043B\u0438 \u0432 \u0438\u043C\u0435\u043D\u0430\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 \u0435\u0441\u0442\u044C \u043A\u0430\u043A\u0438\u0435-\u043B\u0438\u0431\u043E \u0441\u0438\u043C\u0432\u043E\u043B\u044B \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F Markdown, \u0442\u0430\u043A\u0438\u0435 \u043A\u0430\u043A '*' \u0438\u043B\u0438 '_',",line3:"Obsidian \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0442\u0430\u0431\u043B\u0438\u0446\u0443 \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 Reading Mode."},theseAreStatusValues:"\u042D\u0442\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0430\u0445 Core \u0438 Custom \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432.",title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"}}},settings:{autoSuggest:{heading:"\u0410\u0432\u0442\u043E\u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",maxSuggestions:{description:'\u0421\u043A\u043E\u043B\u044C\u043A\u043E \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0439 \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043F\u0440\u0438 \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u0438 \u043C\u0435\u043D\u044E \u0430\u0432\u0442\u043E\u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043E\u043A (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u043E\u043F\u0446\u0438\u044E "\u23CE").',name:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u043C\u044B\u0445 \u0430\u0432\u0442\u043E\u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043E\u043A"},minLength:{description:"\u0415\u0441\u043B\u0438 \u0431\u043E\u043B\u044C\u0448\u0435 0, \u0430\u0432\u0442\u043E\u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u043E\u0433\u0434\u0430, \u043A\u043E\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043E \u043D\u0430\u0447\u0430\u043B\u043E \u043B\u044E\u0431\u043E\u0433\u043E \u0438\u0437 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0445 \u043A\u043B\u044E\u0447\u0435\u0432\u044B\u0445 \u0441\u043B\u043E\u0432.",name:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u043B\u0438\u043D\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043E\u043A"},toggle:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043E\u0442\u043A\u0440\u043E\u0435\u0442 \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u043C\u0435\u043D\u044E \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0439 \u043F\u0440\u0438 \u0432\u0432\u043E\u0434\u0435 \u0442\u0435\u043A\u0441\u0442\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u043E\u0439 \u0441\u0442\u0440\u043E\u043A\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.",name:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0435\u0434\u043B\u0430\u0433\u0430\u0442\u044C \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0437\u0430\u0434\u0430\u0447\u0438"}},changeRequiresRestart:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u044B\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u043A\u0430 Obsidian.",dates:{cancelledDate:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u0434\u043E\u0431\u0430\u0432\u0438\u0442 \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u274C YYYY-MM-DD \u0432 \u043A\u043E\u043D\u0446\u0435, \u043A\u043E\u0433\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0432 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043D\u0443\u044E.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0443 \u043E\u0442\u043C\u0435\u043D\u044B \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0439 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438"},createdDate:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u0434\u043E\u0431\u0430\u0432\u0438\u0442 \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u2795 YYYY-MM-DD \u043F\u0435\u0440\u0435\u0434 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u043C\u0438 \u0434\u0430\u0442\u044B, \u043A\u043E\u0433\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043E\u0437\u0434\u0430\u0435\u0442\u0441\u044F \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E 'Create or edit task' \u0438\u043B\u0438 \u043F\u0440\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0435\u0439\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0438.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0443 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0439 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438"},doneDate:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u0434\u043E\u0431\u0430\u0432\u0438\u0442 \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u2705 YYYY-MM-DD \u0432 \u043A\u043E\u043D\u0446\u0435, \u043A\u043E\u0433\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0432 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u0443\u044E.",name:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0443 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0439 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438"},heading:"\u0414\u0430\u0442\u044B"},datesFromFileNames:{heading:"\u0414\u0430\u0442\u044B \u0438\u0437 \u0438\u043C\u0435\u043D \u0444\u0430\u0439\u043B\u043E\u0432",scheduledDate:{extraFormat:{description:{line1:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043F\u043B\u0430\u0433\u0438\u043D Tasks \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0432\u0430\u0442\u044C \u043F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0438\u043C\u0435\u043D\u0438 \u0444\u0430\u0439\u043B\u0430 \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B.",line2:"\u0421\u043F\u0440\u0430\u0432\u043A\u0430 \u043F\u043E \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0441\u0443"},name:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B \u0438\u0437 \u0438\u043C\u0435\u043D\u0438 \u0444\u0430\u0439\u043B\u0430 \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B",placeholder:"\u043F\u0440\u0438\u043C\u0435\u0440: MMM DD YYYY"},folders:{description:"\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043F\u0443\u0441\u0442\u044B\u043C, \u0435\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0434\u0430\u0442\u044B \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0432\u0435\u0437\u0434\u0435, \u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0430\u043F\u043E\u043A \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043F\u044F\u0442\u0443\u044E.",name:"\u041F\u0430\u043F\u043A\u0438 \u0441 \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C\u0438 \u0434\u0430\u0442\u0430\u043C\u0438 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E"},toggle:{description:{line1:"\u042D\u043A\u043E\u043D\u043E\u043C\u044C\u0442\u0435 \u0432\u0440\u0435\u043C\u044F \u043D\u0430 \u0432\u0432\u043E\u0434\u0435 \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 (\u23F3) \u0434\u0430\u0442.",line2:"\u0415\u0441\u043B\u0438 \u044D\u0442\u0430 \u043E\u043F\u0446\u0438\u044F \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0430, \u0442\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430, \u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u043D\u0430\u044F \u0438\u0437 \u0438\u043C\u0435\u043D\u0438 \u0444\u0430\u0439\u043B\u0430.",line3:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043F\u043B\u0430\u0433\u0438\u043D Tasks \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u044B \u0434\u0430\u0442 <code>YYYY-MM-DD</code> \u0438 <code>YYYYMMDD</code>.",line4:"\u0417\u0430\u0434\u0430\u0447\u0438 \u0431\u0435\u0437 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B \u043D\u0435 \u0438\u043C\u0435\u044E\u0442 \u0434\u0430\u0442 Due (\u{1F4C5} ), Scheduled (\u23F3) \u0438 Start (\u{1F6EB})."},name:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0438\u043C\u044F \u0444\u0430\u0439\u043B\u0430 \u043A\u0430\u043A \u0437\u0430\u043F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u0443\u044E \u0434\u0430\u0442\u0443 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u0434\u0430\u0442\u044B"}}},dialogs:{accessKeys:{description:"\u0415\u0441\u043B\u0438 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 (\u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u0432\u0438\u0448) \u0434\u043B\u044F \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0432 \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u044B\u0445 \u043E\u043A\u043D\u0430\u0445 \u043A\u043E\u043D\u0444\u043B\u0438\u043A\u0442\u0443\u044E\u0442 \u0441 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u044B\u043C\u0438 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u044F\u043C\u0438 \u043A\u043B\u0430\u0432\u0438\u0448 \u0438\u043B\u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u044F\u043C\u0438 \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u0436\u043D\u044B \u0434\u043B\u044F \u0432\u0430\u0441, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u0437\u0434\u0435\u0441\u044C.",name:"\u041F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0442\u044C \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0432 \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u044B\u0445 \u043E\u043A\u043D\u0430\u0445"},heading:"\u0414\u0438\u0430\u043B\u043E\u0433\u0438"},format:{description:{line1:"\u0424\u043E\u0440\u043C\u0430\u0442, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 Tasks \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442 \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F \u0438 \u0437\u0430\u043F\u0438\u0441\u0438 \u0437\u0430\u0434\u0430\u0447.",line2:"<b>\u0412\u0430\u0436\u043D\u043E:</b> Tasks \u0432 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0444\u043E\u0440\u043C\u0430\u0442 \u043E\u0434\u043D\u043E\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E. \u0412\u044B\u0431\u043E\u0440 Dataview \u0432 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F <b>\u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E Tasks \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u043D\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u044B \u044D\u043C\u043E\u0434\u0437\u0438</b>."},displayName:{dataview:"Dataview",tasksEmojiFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u044D\u043C\u043E\u0434\u0437\u0438 Tasks"},name:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0437\u0430\u0434\u0430\u0447"},globalFilter:{filter:{description:{line1:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F: \u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043F\u0443\u0441\u0442\u044B\u043C, \u0435\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0441\u043F\u0438\u0441\u043A\u0430 \u0432 \u0432\u0430\u0448\u0435\u043C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u0431\u044B\u043B\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043C\u0438, \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u043C\u044B\u043C\u0438 \u044D\u0442\u0438\u043C \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u043C.",line2:'\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0438\u043B\u044C\u0442\u0440, \u0435\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B Tasks \u0434\u0435\u0439\u0441\u0442\u0432\u043E\u0432\u0430\u043B \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u043F\u043E\u0434\u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0432\u0430\u0448\u0438\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0441\u043F\u0438\u0441\u043A\u0430 "<code>- [ ]</code>", \u0442\u0430\u043A \u0447\u0442\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0441\u043F\u0438\u0441\u043A\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0432\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u0443\u044E \u0441\u0442\u0440\u043E\u043A\u0443 \u0432 \u0441\u0432\u043E\u0435\u043C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0438, \u0447\u0442\u043E\u0431\u044B \u0441\u0447\u0438\u0442\u0430\u0442\u044C\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0435\u0439.',line3:"\u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u0435\u0441\u043B\u0438 \u0432\u044B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0438\u043B\u044C\u0442\u0440 \u043D\u0430 <code>#task</code>, \u043F\u043B\u0430\u0433\u0438\u043D Tasks \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0441\u043F\u0438\u0441\u043A\u0430, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u0442\u0435\u0433\u043E\u043C <code>#task</code>.",line4:"\u0414\u0440\u0443\u0433\u0438\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B \u0441\u043F\u0438\u0441\u043A\u0430 \u043E\u0441\u0442\u0430\u043D\u0443\u0442\u0441\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0441\u043F\u0438\u0441\u043A\u0430 \u0438 \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C\u0441\u044F \u0432 \u0437\u0430\u043F\u0440\u043E\u0441\u0430\u0445 \u0438\u043B\u0438 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u044C \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u0443\u044E \u0434\u0430\u0442\u0443 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F."},name:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0438\u043B\u044C\u0442\u0440",placeholder:"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, #task \u0438\u043B\u0438 TODO"},heading:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0438\u043B\u044C\u0442\u0440 \u0437\u0430\u0434\u0430\u0447",removeFilter:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u0443\u0434\u0430\u043B\u044F\u0435\u0442 \u0441\u0442\u0440\u043E\u043A\u0443, \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u043B\u0438 \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0444\u0438\u043B\u044C\u0442\u0440\u0430, \u0438\u0437 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044F \u0437\u0430\u0434\u0430\u0447\u0438 \u043F\u0440\u0438 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.",name:"\u0423\u0434\u0430\u043B\u044F\u0442\u044C \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0438\u043B\u044C\u0442\u0440 \u0438\u0437 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044F"}},globalQuery:{heading:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0439 \u0437\u0430\u043F\u0440\u043E\u0441",query:{description:"\u0417\u0430\u043F\u0440\u043E\u0441, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F \u0432 \u043D\u0430\u0447\u0430\u043B\u043E \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0430 Tasks \u0432 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435. \u041F\u043E\u043B\u0435\u0437\u043D\u043E \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 \u043C\u0430\u043A\u0435\u0442\u0430.",placeholder:`\u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0438\u0435\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0438",nextLine:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u0440\u043E\u043A\u0435 \u043D\u0438\u0436\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0412 \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u0435\u0440\u0435\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439.",name:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u0440\u043E\u043A\u0435 \u043D\u0438\u0436\u0435"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u0435\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u0435\u043C\u0430 Aura",borderTheme:"\u0422\u0435\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C {{numberOfStatuses}} \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"}},ebullientworksTheme:"\u0422\u0435\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u0435\u043C\u0430 ITS \u0438 \u0444\u043B\u0430\u0436\u043A\u0438 SlRvb",lytModeTheme:"\u0422\u0435\u043C\u0430 LYT Mode (\u0442\u043E\u043B\u044C\u043A\u043E \u0442\u0435\u043C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C)",minimalTheme:"\u0422\u0435\u043C\u0430 Minimal",thingsTheme:"\u0422\u0435\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u0432\u043E\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u044B",tooltip:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0444\u0430\u0439\u043B \u0432 \u043A\u043E\u0440\u043D\u0435 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430, \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 Mermaid \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0443 \u0442\u0435\u043A\u0443\u0449\u0438\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432."}},description:{line1:"\u042D\u0442\u043E \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 Tasks \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E, \u0431\u0435\u0437 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 CSS \u0441\u0442\u0438\u043B\u0435\u0439 \u0438\u043B\u0438 \u0442\u0435\u043C.",line2:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u0432\u043E\u0438 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u043D\u0438\u0436\u0435."},heading:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"},addNewStatus:{name:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0438"},resetCustomStatuses:{name:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0442\u0438\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432 \u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u043C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E"}},description:{line1:"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043B\u0435\u0434\u0443\u0435\u0442 <b>\u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0438 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C CSS \u0441\u043D\u0438\u043F\u043F\u0435\u0442 \u0438\u043B\u0438 \u0442\u0435\u043C\u0443</b> \u0434\u043B\u044F \u0441\u0442\u0438\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 \u0444\u043B\u0430\u0436\u043A\u043E\u0432.",line2:"\u0417\u0430\u0442\u0435\u043C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0438 \u043D\u0438\u0436\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0441\u0432\u043E\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u043C\u0438 CSS \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438.",line3:"<b>\u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435.</b> \u041B\u044E\u0431\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0441 \u0442\u0435\u043C \u0436\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u043C, \u0447\u0442\u043E \u0438 \u0443 \u0431\u043E\u043B\u0435\u0435 \u0440\u0430\u043D\u043D\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432, \u0431\u0443\u0434\u0443\u0442 \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0432 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0438\u043B\u0438 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0443' \u0438 \u043F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0432 \u043D\u0430 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u044E\u0449\u0438\u0439\u0441\u044F \u0441\u043F\u0438\u0441\u043E\u043A \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432.",line4:"\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C!"},heading:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},heading:"\u0421\u0442\u0430\u0442\u0443\u0441\u044B \u0437\u0430\u0434\u0430\u0447"}}}});var tT,eT=X(()=>{tT={main:{loadingPlugin:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F \u043F\u043B\u0430\u0433\u0456\u043D\u0430: {{name}} v{{version}}",unloadingPlugin:"\u0412\u0438\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F \u043F\u043B\u0430\u0433\u0456\u043D\u0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u042F\u043A\u0449\u043E \u0432\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043E, \u0446\u0435\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u044F\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u0430, \u0449\u043E\u0431 \u0432\u0438 \u043C\u043E\u0433\u043B\u0438 \u043F\u0440\u0438\u0437\u043D\u0430\u0447\u0438\u0442\u0438 \u0433\u0430\u0440\u044F\u0447\u0443 \u043A\u043B\u0430\u0432\u0456\u0448\u0443 \u0442\u0430 \u043F\u0435\u0440\u0435\u043C\u0438\u043A\u0430\u0442\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430 \u0457\u0457 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u043E\u044E.",name:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u044F\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u0430"},editNextStatusSymbol:{description:"\u0421\u0438\u043C\u0432\u043E\u043B, \u044F\u043A\u0438\u0439 \u043C\u0430\u0454 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u043C \u043F\u0440\u0438 \u043D\u0430\u0442\u0438\u0441\u043A\u0430\u043D\u043D\u0456.",name:"\u0421\u0438\u043C\u0432\u043E\u043B \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456"},editStatusName:{description:"\u0426\u0435 \u0437\u0440\u043E\u0437\u0443\u043C\u0456\u043B\u0430 \u043D\u0430\u0437\u0432\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456.",name:"\u041D\u0430\u0437\u0432\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456"},editStatusSymbol:{description:"\u0426\u0435 \u0441\u0438\u043C\u0432\u043E\u043B \u043C\u0456\u0436 \u043A\u0432\u0430\u0434\u0440\u0430\u0442\u043D\u0438\u043C\u0438 \u0434\u0443\u0436\u043A\u0430\u043C\u0438. (\u0419\u043E\u0433\u043E \u043C\u043E\u0436\u043D\u0430 \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043B\u0438\u0448\u0435 \u0434\u043B\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432, \u0430 \u043D\u0435 \u0434\u043B\u044F \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432.)",name:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456"},editStatusType:{description:"\u041A\u0435\u0440\u0443\u0439\u0442\u0435 \u0442\u0438\u043C, \u044F\u043A \u0441\u0442\u0430\u0442\u0443\u0441 \u043F\u043E\u0432\u043E\u0434\u0438\u0442\u044C\u0441\u044F \u043F\u0456\u0434 \u0447\u0430\u0441 \u043F\u043E\u0448\u0443\u043A\u0443 \u0442\u0430 \u043F\u0435\u0440\u0435\u043C\u0438\u043A\u0430\u043D\u043D\u044F.",name:"\u0422\u0438\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456"},fixErrorsBeforeSaving:"\u0412\u0438\u043F\u0440\u0430\u0432\u0442\u0435 \u043F\u043E\u043C\u0438\u043B\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u043D\u044F\u043C."}},reports:{statusRegistry:{about:{createdBy:"\u0426\u0435\u0439 \u0444\u0430\u0439\u043B \u0441\u0442\u0432\u043E\u0440\u0435\u043D\u043E \u043F\u043B\u0430\u0433\u0456\u043D\u043E\u043C Obsidian Tasks (\u0432\u0435\u0440\u0441\u0456\u044F {{version}}), \u0449\u043E\u0431 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u0442\u0438 \u0432\u0456\u0437\u0443\u0430\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0438 \u0437\u0430\u0434\u0430\u0447 \u0443 \u0446\u044C\u043E\u043C\u0443 \u0441\u0445\u043E\u0432\u0438\u0449\u0456.",deleteFileAnyTime:"\u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0446\u0435\u0439 \u0444\u0430\u0439\u043B \u0443 \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0439 \u0447\u0430\u0441.",title:"\u041F\u0440\u043E \u0446\u0435\u0439 \u0444\u0430\u0439\u043B",updateReport:{line1:"\u042F\u043A\u0449\u043E \u0432\u0438 \u0437\u043C\u0456\u043D\u0438\u0442\u0435 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 Tasks, \u0432\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u043E\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0439 \u0437\u0432\u0456\u0442, \u0432\u0438\u043A\u043E\u043D\u0430\u0432\u0448\u0438 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0456 \u0434\u0456\u0457:",line2:"\u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E `\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F` -> `Tasks`.",line3:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C `\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0442\u0430 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0430\u0448\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438`."}},columnHeadings:{nextStatusSymbol:"\u0421\u0438\u043C\u0432\u043E\u043B \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0443",problems:"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u0438 (\u044F\u043A\u0449\u043E \u0454)",statusName:"\u041D\u0430\u0437\u0432\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0443",statusSymbol:"\u0421\u0438\u043C\u0432\u043E\u043B \u0441\u0442\u0430\u0442\u0443\u0441\u0443",statusType:"\u0422\u0438\u043F \u0441\u0442\u0430\u0442\u0443\u0441\u0443"},loadedSettings:{settingsActuallyUsed:"\u0426\u0435 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F, \u044F\u043A\u0456 \u0444\u0430\u043A\u0442\u0438\u0447\u043D\u043E \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u044E\u0442\u044C\u0441\u044F Tasks.",switchToLivePreview:"\u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0443 \u0440\u0435\u0436\u0438\u043C Live Preview \u0430\u0431\u043E \u0440\u0435\u0436\u0438\u043C \u0447\u0438\u0442\u0430\u043D\u043D\u044F, \u0449\u043E\u0431 \u043F\u043E\u0431\u0430\u0447\u0438\u0442\u0438 \u0434\u0456\u0430\u0433\u0440\u0430\u043C\u0443.",title:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u0456 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F"},messages:{cannotFindNextStatus:"\u041D\u0435\u043E\u0447\u0456\u043A\u0443\u0432\u0430\u043D\u0430 \u043F\u043E\u043C\u0438\u043B\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u0448\u0443\u043A\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u043E\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0443.",duplicateSymbol:"\u0414\u0443\u0431\u043B\u0456\u043A\u0430\u0442 \u0441\u0438\u043C\u0432\u043E\u043B\u0443 '{{symbol}}': \u0446\u0435\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435 \u043F\u0440\u043E\u0456\u0433\u043D\u043E\u0440\u043E\u0432\u0430\u043D\u043E.",emptySymbol:"\u041F\u043E\u0440\u043E\u0436\u043D\u0456\u0439 \u0441\u0438\u043C\u0432\u043E\u043B: \u0446\u0435\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0431\u0443\u0434\u0435 \u043F\u0440\u043E\u0456\u0433\u043D\u043E\u0440\u043E\u0432\u0430\u043D\u043E.",nextSymbolUnknown:"\u041D\u0435\u0432\u0456\u0434\u043E\u043C\u0438\u0439 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u0441\u0438\u043C\u0432\u043E\u043B {{symbol}}: \u0441\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0456\u0437 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u043C {{symbol}}.",notConventionalType:"\u0414\u043B\u044F \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u0457, \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0442\u0438\u043F \u0434\u043B\u044F \u0441\u0438\u043C\u0432\u043E\u043B\u0443 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 {{symbol}} - {{type}}: \u043C\u043E\u0436\u043B\u0438\u0432\u043E, \u0432\u0438 \u0437\u0430\u0445\u043E\u0447\u0435\u0442\u0435 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0446\u0435\u0439 \u0442\u0438\u043F.",wrongTypeAfterDone:{line1:"\u0417\u0430 \u0446\u0438\u043C \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u043C `DONE` \u0439\u0434\u0435 {{nextType}}, \u0430 \u043D\u0435 `TODO` \u0430\u0431\u043E `IN_PROGRESS`.",line2:"\u042F\u043A\u0449\u043E \u0439\u043E\u0433\u043E \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u043B\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456, \u0437\u0430\u043C\u0456\u0441\u0442\u044C \u0446\u044C\u043E\u0433\u043E \u0437\u0430 \u043D\u0438\u043C \u0431\u0443\u0434\u0435 \u0441\u043B\u0456\u0434\u0443\u0432\u0430\u0442\u0438 `TODO` \u0430\u0431\u043E `IN_PROGRESS`, \u0449\u043E\u0431 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u043B\u0430 \u0444\u0456\u043B\u044C\u0442\u0440\u0443 `\u043D\u0435 \u0432\u0438\u043A\u043E\u043D\u0430\u043D\u043E`.",line3:"\u0414\u0438\u0432. [\u041F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u043D\u0456 \u0437\u0430\u0434\u0430\u0447\u0456 \u0442\u0430 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438]({{helpURL}})."}},sampleTasks:{line1:"\u041E\u0441\u044C \u043F\u043E \u043E\u0434\u043D\u043E\u043C\u0443 \u043F\u0440\u0438\u043A\u043B\u0430\u0434\u0443 \u0440\u044F\u0434\u043A\u0430 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0433\u043E \u0441\u0442\u0430\u0442\u0443\u0441\u0443, \u044F\u043A\u0438\u0439 \u0444\u0430\u043A\u0442\u0438\u0447\u043D\u043E \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F \u0443 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F\u0445, \u0449\u043E\u0431 \u0432\u0438 \u043C\u043E\u0433\u043B\u0438 \u043F\u043E\u0435\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442\u0443\u0432\u0430\u0442\u0438.",line2:"\u0421\u0438\u043C\u0432\u043E\u043B\u0438 \u0442\u0430 \u043D\u0430\u0437\u0432\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0432 \u043E\u043F\u0438\u0441\u0430\u0445 \u0437\u0430\u0432\u0434\u0430\u043D\u044C \u0431\u0443\u043B\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u043C\u0438 \u043D\u0430 \u043C\u043E\u043C\u0435\u043D\u0442 \u0441\u0442\u0432\u043E\u0440\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u0444\u0430\u0439\u043B\u0443.",line3:"\u042F\u043A\u0449\u043E \u0432\u0438 \u0437\u043C\u0456\u043D\u0438\u043B\u0438 \u043F\u0440\u0438\u043A\u043B\u0430\u0434\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u044C \u0437 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0457\u0445 \u0441\u0442\u0432\u043E\u0440\u0435\u043D\u043D\u044F, \u0432\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0431\u0430\u0447\u0438\u0442\u0438 \u043F\u043E\u0442\u043E\u0447\u043D\u0456 \u0442\u0438\u043F\u0438 \u0442\u0430 \u043D\u0430\u0437\u0432\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430\u0445 \u0433\u0440\u0443\u043F \u0443 \u043F\u043E\u0448\u0443\u043A\u0443 Tasks \u043D\u0438\u0436\u0447\u0435.",tip:{line1:"\u041F\u043E\u0440\u0430\u0434\u0430: \u042F\u043A\u0449\u043E \u0432\u0441\u0456 \u0432\u0430\u0448\u0456 \u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456 \u0432\u0438\u0433\u043B\u044F\u0434\u0430\u044E\u0442\u044C \u043E\u0434\u043D\u0430\u043A\u043E\u0432\u043E...",line2:"\u042F\u043A\u0449\u043E \u0432\u0441\u0456 \u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456 \u0432\u0438\u0433\u043B\u044F\u0434\u0430\u044E\u0442\u044C \u043E\u0434\u043D\u0430\u043A\u043E\u0432\u043E \u0432 \u0440\u0435\u0436\u0438\u043C\u0456 \u0447\u0438\u0442\u0430\u043D\u043D\u044F \u0447\u0438 \u0456\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0443 (Live Preview), \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u044C\u0442\u0435 [\u0421\u0442\u0438\u043B\u0456\u0437\u0430\u0446\u0456\u044F \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432]({{url}}), \u0449\u043E\u0431 \u0434\u0456\u0437\u043D\u0430\u0442\u0438\u0441\u044F, \u044F\u043A \u0432\u0438\u0431\u0440\u0430\u0442\u0438 \u0442\u0435\u043C\u0443 \u0447\u0438 CSS-\u0441\u043D\u0456\u043F\u0435\u0442 \u0434\u043B\u044F \u0441\u0442\u0438\u043B\u0456\u0437\u0430\u0446\u0456\u0457 \u0432\u0430\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432."},title:"\u041F\u0440\u0438\u043A\u043B\u0430\u0434\u0438 \u0437\u0430\u0432\u0434\u0430\u043D\u044C"},searchSampleTasks:{line1:"\u0426\u0435\u0439 \u043F\u043E\u0448\u0443\u043A Tasks \u043F\u043E\u043A\u0430\u0437\u0443\u0454 \u0432\u0441\u0456 \u0437\u0430\u0432\u0434\u0430\u043D\u043D\u044F \u0432 \u0446\u044C\u043E\u043C\u0443 \u0444\u0430\u0439\u043B\u0456, \u0437\u0433\u0440\u0443\u043F\u043E\u0432\u0430\u043D\u0456 \u0437\u0430 \u0442\u0438\u043F\u043E\u043C \u0442\u0430 \u043D\u0430\u0437\u0432\u043E\u044E \u0441\u0442\u0430\u0442\u0443\u0441\u0443.",title:"\u041F\u043E\u0448\u0443\u043A \u0443 \u043F\u0440\u0438\u043A\u043B\u0430\u0434\u0430\u0445 \u0437\u0430\u0432\u0434\u0430\u043D\u044C"},statusSettings:{comment:{line1:"\u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0443 \u0440\u0435\u0436\u0438\u043C Live Preview \u0430\u0431\u043E \u0440\u0435\u0436\u0438\u043C \u0447\u0438\u0442\u0430\u043D\u043D\u044F, \u0449\u043E\u0431 \u043F\u043E\u0431\u0430\u0447\u0438\u0442\u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u044E.",line2:"\u042F\u043A\u0449\u043E \u0432 \u043D\u0430\u0437\u0432\u0430\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0454 \u0441\u0438\u043C\u0432\u043E\u043B\u0438 \u0444\u043E\u0440\u043C\u0430\u0442\u0443\u0432\u0430\u043D\u043D\u044F Markdown, \u043D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434 '*' \u0430\u0431\u043E '_',",line3:"Obsidian \u043C\u043E\u0436\u0435 \u043A\u043E\u0440\u0435\u043A\u0442\u043D\u043E \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u044E \u043B\u0438\u0448\u0435 \u0432 \u0440\u0435\u0436\u0438\u043C\u0456 \u0447\u0438\u0442\u0430\u043D\u043D\u044F."},theseAreStatusValues:"\u0426\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0443 \u0440\u043E\u0437\u0434\u0456\u043B\u0430\u0445 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0445 \u0456 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432.",title:"\u041D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432"}}},settings:{autoSuggest:{heading:"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u0432\u043D\u0435\u043D\u043D\u044F",maxSuggestions:{description:'\u0421\u043A\u0456\u043B\u044C\u043A\u0438 \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0439 \u043C\u0430\u0454 \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u0438\u0441\u044F, \u043A\u043E\u043B\u0438 \u0437\u2019\u044F\u0432\u043B\u044F\u0454\u0442\u044C\u0441\u044F \u043C\u0435\u043D\u044E \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u0432\u043D\u0435\u043D\u043D\u044F (\u0432\u043A\u043B\u044E\u0447\u0430\u044E\u0447\u0438 \u043E\u043F\u0446\u0456\u044E "\u23CE").',name:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430 \u043A\u0456\u043B\u044C\u043A\u0456\u0441\u0442\u044C \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0439 \u0434\u043B\u044F \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},minLength:{description:"\u042F\u043A\u0449\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0431\u0456\u043B\u044C\u0448\u0435 0, \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u0432\u043D\u0435\u043D\u043D\u044F \u0431\u0443\u0434\u0435 \u0437\u0430\u043F\u0443\u0441\u043A\u0430\u0442\u0438\u0441\u044F \u043B\u0438\u0448\u0435 \u0442\u043E\u0434\u0456, \u043A\u043E\u043B\u0438 \u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u0454\u0442\u044C\u0441\u044F \u043F\u043E\u0447\u0430\u0442\u043E\u043A \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0445 \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0432\u0430\u043D\u0438\u0445 \u043A\u043B\u044E\u0447\u043E\u0432\u0438\u0445 \u0441\u043B\u0456\u0432.",name:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430 \u0434\u043E\u0432\u0436\u0438\u043D\u0430 \u0437\u0431\u0456\u0433\u0443 \u0434\u043B\u044F \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u0432\u043D\u0435\u043D\u043D\u044F"},toggle:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0432\u0456\u0434\u043A\u0440\u0438\u0454 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u0435 \u043C\u0435\u043D\u044E \u043F\u0440\u043E\u043F\u043E\u0437\u0438\u0446\u0456\u0439 \u043F\u0456\u0434 \u0447\u0430\u0441 \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u044F \u0442\u0435\u043A\u0441\u0442\u0443 \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043D\u0456 \u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u043E\u0433\u043E \u0440\u044F\u0434\u043A\u0430 \u0437\u0430\u0434\u0430\u0447\u0456.",name:"\u0410\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u0432\u043D\u0435\u043D\u043D\u044F \u0432\u043C\u0456\u0441\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0456"}},changeRequiresRestart:"\u0417\u043C\u0456\u043D\u0430 \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0445 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u044C \u0432\u0438\u043C\u0430\u0433\u0430\u0454 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u043A\u0443 obsidian.",dates:{cancelledDate:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0434\u043E\u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0437\u043D\u0430\u0447\u043A\u0443 \u0447\u0430\u0441\u0443 \u274C YYYY-MM-DD \u0432 \u043A\u0456\u043D\u0446\u0456, \u043A\u043E\u043B\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0435\u043C\u0438\u043A\u0430\u0454\u0442\u044C\u0441\u044F \u0432 \u0441\u043A\u0430\u0441\u043E\u0432\u0430\u043D\u0438\u0439 \u0441\u0442\u0430\u043D.",name:"\u0412\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 \u0434\u0430\u0442\u0443 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0457 \u0441\u043A\u0430\u0441\u043E\u0432\u0430\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456"},createdDate:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0434\u043E\u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0437\u043D\u0430\u0447\u043A\u0443 \u0447\u0430\u0441\u0443 \u2795 YYYY-MM-DD \u043F\u0435\u0440\u0435\u0434 \u0456\u043D\u0448\u0438\u043C\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F\u043C\u0438 \u0434\u0430\u0442, \u043A\u043E\u043B\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0432\u043E\u0440\u044E\u0454\u0442\u044C\u0441\u044F \u0437\u0430 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u043E\u044E '\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 \u0430\u0431\u043E \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0443' \u0430\u0431\u043E \u0448\u043B\u044F\u0445\u043E\u043C \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456.",name:"\u0412\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 \u0434\u0430\u0442\u0443 \u0441\u0442\u0432\u043E\u0440\u0435\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0457 \u0434\u043E\u0434\u0430\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456"},doneDate:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0434\u043E\u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0437\u043D\u0430\u0447\u043A\u0443 \u0447\u0430\u0441\u0443 \u2705 YYYY-MM-DD \u0432 \u043A\u0456\u043D\u0446\u0456, \u043A\u043E\u043B\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u043F\u0435\u0440\u0435\u043C\u0438\u043A\u0430\u0454\u0442\u044C\u0441\u044F \u0443 \u0432\u0438\u043A\u043E\u043D\u0430\u043D\u0438\u0439 \u0441\u0442\u0430\u043D.",name:"\u0412\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 \u0434\u0430\u0442\u0443 \u0432\u0438\u043A\u043E\u043D\u0430\u043D\u043D\u044F \u0434\u043B\u044F \u043A\u043E\u0436\u043D\u043E\u0457 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456"},heading:"\u0414\u0430\u0442\u0438"},datesFromFileNames:{heading:"\u0414\u0430\u0442\u0438 \u0437 \u043D\u0430\u0437\u0432 \u0444\u0430\u0439\u043B\u0456\u0432",scheduledDate:{extraFormat:{description:{line1:"\u0414\u043E\u0434\u0430\u0442\u043A\u043E\u0432\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u0438, \u044F\u043A\u0438\u0439 \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u0432\u0430\u0442\u0438\u043C\u0435 \u043F\u0456\u0434 \u0447\u0430\u0441 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F \u043D\u0430\u0437\u0432\u0438 \u0444\u0430\u0439\u043B\u0443 \u044F\u043A \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0443 \u0434\u0430\u0442\u0443 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u0438.",line2:"\u0414\u043E\u0432\u0456\u0434\u043A\u0430 \u0437 \u0441\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0441\u0443"},name:"\u0414\u043E\u0434\u0430\u0442\u043A\u043E\u0432\u0438\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u0438 \u043D\u0430\u0437\u0432\u0438 \u0444\u0430\u0439\u043B\u0443 \u044F\u043A \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u0438",placeholder:"\u043F\u0440\u0438\u043A\u043B\u0430\u0434: MMM DD YYYY"},folders:{description:"\u0417\u0430\u043B\u0438\u0448\u0442\u0435 \u043F\u043E\u0440\u043E\u0436\u043D\u0456\u043C, \u044F\u043A\u0449\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0456 \u0434\u0430\u0442\u0438 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C \u0432\u0441\u044E\u0434\u0438, \u0430\u0431\u043E \u0432\u0432\u0435\u0434\u0456\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0430\u043F\u043E\u043A, \u0440\u043E\u0437\u0434\u0456\u043B\u0435\u043D\u0438\u0445 \u043A\u043E\u043C\u0430\u043C\u0438.",name:"\u041F\u0430\u043F\u043A\u0438 \u0437 \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0438\u043C\u0438 \u0434\u0430\u0442\u0430\u043C\u0438 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C"},toggle:{description:{line1:"\u0417\u0430\u043E\u0449\u0430\u0434\u0436\u0443\u0439\u0442\u0435 \u0447\u0430\u0441 \u043D\u0430 \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u0456 \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0438\u0445 (\u23F3) \u0434\u0430\u0442.",line2:"\u042F\u043A\u0449\u043E \u0446\u0435\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0443\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043E, \u0443\u0441\u0456\u043C \u0437\u0430\u0434\u0430\u0447\u0430\u043C \u0431\u0435\u0437 \u0434\u0430\u0442\u0438 \u0431\u0443\u0434\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0454\u043D\u043E \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0443 \u0434\u0430\u0442\u0443 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C, \u0432\u0438\u0442\u044F\u0433\u043D\u0443\u0442\u0443 \u0437 \u0457\u0445 \u043D\u0430\u0437\u0432\u0438 \u0444\u0430\u0439\u043B\u0443.",line3:"\u0417\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u0432\u0430\u0442\u0438\u043C\u0435 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 \u0434\u0430\u0442 <code>YYYY-MM-DD</code> \u0456 <code>YYYYMMDD</code>.",line4:"\u0417\u0430\u0434\u0430\u0447\u0456 \u0431\u0435\u0437 \u0434\u0430\u0442\u0438 \u043D\u0435 \u043C\u0430\u044E\u0442\u044C \u0434\u0430\u0442 \u0432\u0438\u043A\u043E\u043D\u0430\u043D\u043D\u044F (\u{1F4C5}), \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u043E\u0457 (\u23F3) \u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 (\u{1F6EB})."},name:"\u0412\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u043D\u0430\u0437\u0432\u0443 \u0444\u0430\u0439\u043B\u0443 \u044F\u043A \u0437\u0430\u043F\u043B\u0430\u043D\u043E\u0432\u0430\u043D\u0443 \u0434\u0430\u0442\u0443 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u0434\u0430\u0442\u0438"}}},dialogs:{accessKeys:{description:"\u042F\u043A\u0449\u043E \u043A\u043B\u0430\u0432\u0456\u0448\u0456 \u0434\u043E\u0441\u0442\u0443\u043F\u0443 (\u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u0457 \u043A\u043B\u0430\u0432\u0456\u0448) \u0434\u043B\u044F \u0440\u0456\u0437\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043A\u0435\u0440\u0443\u0432\u0430\u043D\u043D\u044F \u0432 \u0434\u0456\u0430\u043B\u043E\u0433\u043E\u0432\u0438\u0445 \u0432\u0456\u043A\u043D\u0430\u0445 \u043A\u043E\u043D\u0444\u043B\u0456\u043A\u0442\u0443\u044E\u0442\u044C \u0456\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u0438\u043C\u0438 \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044F\u043C\u0438 \u043A\u043B\u0430\u0432\u0456\u0448 \u0430\u0431\u043E \u0444\u0443\u043D\u043A\u0446\u0456\u043E\u043D\u0430\u043B\u044C\u043D\u0456\u0441\u0442\u044E \u0434\u043E\u043F\u043E\u043C\u0456\u0436\u043D\u0438\u0445 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0456\u0439, \u044F\u043A\u0456 \u0432\u0430\u0436\u043B\u0438\u0432\u0456 \u0434\u043B\u044F \u0432\u0430\u0441, \u0432\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0445 \u0442\u0443\u0442.",name:"\u041D\u0430\u0434\u0430\u0432\u0430\u0442\u0438 \u043A\u043B\u0430\u0432\u0456\u0448\u0456 \u0434\u043E\u0441\u0442\u0443\u043F\u0443 \u0432 \u0434\u0456\u0430\u043B\u043E\u0433\u043E\u0432\u0438\u0445 \u0432\u0456\u043A\u043D\u0430\u0445"},heading:"\u0414\u0456\u0430\u043B\u043E\u0433\u043E\u0432\u0456 \u0432\u0456\u043A\u043D\u0430"},format:{description:{line1:"\u0424\u043E\u0440\u043C\u0430\u0442, \u044F\u043A\u0438\u0439 Tasks \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454 \u0434\u043B\u044F \u0447\u0438\u0442\u0430\u043D\u043D\u044F \u0442\u0430 \u0437\u0430\u043F\u0438\u0441\u0443 \u0437\u0430\u0434\u0430\u0447.",line2:"<b>\u0412\u0430\u0436\u043B\u0438\u0432\u043E:</b> Tasks \u0437\u0430\u0440\u0430\u0437 \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0454 \u043B\u0438\u0448\u0435 \u043E\u0434\u0438\u043D \u0444\u043E\u0440\u043C\u0430\u0442 \u0437\u0430 \u0440\u0430\u0437. \u0412\u0438\u0431\u0456\u0440 Dataview \u043D\u0430\u0440\u0430\u0437\u0456 <b>\u0437\u0443\u043F\u0438\u043D\u0438\u0442\u044C \u0447\u0438\u0442\u0430\u043D\u043D\u044F Tasks \u0432\u043B\u0430\u0441\u043D\u0438\u0445 \u0437\u043D\u0430\u043A\u0456\u0432 \u0435\u043C\u043E\u0434\u0437\u0456</b>."},displayName:{dataview:"Dataview",tasksEmojiFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0435\u043C\u043E\u0434\u0437\u0456 Tasks"},name:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0437\u0430\u0434\u0430\u0447"},globalFilter:{filter:{description:{line1:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u043E\u0432\u0430\u043D\u043E: \u0417\u0430\u043B\u0438\u0448\u0442\u0435 \u043F\u043E\u0440\u043E\u0436\u043D\u0456\u043C, \u044F\u043A\u0449\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435, \u0449\u043E\u0431 \u0443\u0441\u0456 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432 \u0443 \u0432\u0430\u0448\u043E\u043C\u0443 \u0441\u0445\u043E\u0432\u0438\u0449\u0456 \u0431\u0443\u043B\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043C\u0438, \u044F\u043A\u0438\u043C\u0438 \u043A\u0435\u0440\u0443\u0454 \u0446\u0435\u0439 \u043F\u043B\u0430\u0433\u0456\u043D.",line2:'\u0412\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0439\u0442\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440, \u044F\u043A\u0449\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435, \u0449\u043E\u0431 Tasks \u0434\u0456\u044F\u043B\u0438 \u043B\u0438\u0448\u0435 \u043D\u0430 \u043F\u0456\u0434\u043C\u043D\u043E\u0436\u0438\u043D\u0443 \u0432\u0430\u0448\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432 "<code>- [ ]</code>", \u0449\u043E\u0431 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432 \u0432\u043A\u043B\u044E\u0447\u0430\u0432 \u0432 \u043E\u043F\u0438\u0441\u0456 \u0432\u043A\u0430\u0437\u0430\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A, \u0449\u043E\u0431 \u0432\u0432\u0430\u0436\u0430\u0442\u0438\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0435\u044E.',line3:"\u041D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, \u044F\u043A\u0449\u043E \u0432\u0438 \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440 \u043D\u0430 <code>#task</code>, \u043F\u043B\u0430\u0433\u0456\u043D Tasks \u043E\u0431\u0440\u043E\u0431\u043B\u044F\u0442\u0438\u043C\u0435 \u043B\u0438\u0448\u0435 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432, \u043F\u043E\u0437\u043D\u0430\u0447\u0435\u043D\u0456 \u0442\u0435\u0433\u043E\u043C <code>#task</code>.",line4:"\u0406\u043D\u0448\u0456 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432 \u0437\u0430\u043B\u0438\u0448\u0430\u0442\u044C\u0441\u044F \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u043C\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043F\u0440\u0430\u0432 \u0456 \u043D\u0435 \u0437\u2019\u044F\u0432\u043B\u044F\u0442\u0438\u043C\u0443\u0442\u044C\u0441\u044F \u0432 \u0437\u0430\u043F\u0438\u0442\u0430\u0445 \u0430\u0431\u043E \u043D\u0435 \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u044E\u0432\u0430\u0442\u0438\u043C\u0443\u0442\u044C \u0434\u0430\u0442\u0443 \u0432\u0438\u043A\u043E\u043D\u0430\u043D\u043D\u044F."},name:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440",placeholder:"\u043D\u0430\u043F\u0440. #task \u0430\u0431\u043E TODO"},heading:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440 \u0437\u0430\u0434\u0430\u0447",removeFilter:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0432\u0438\u0434\u0430\u043B\u044F\u0454 \u0440\u044F\u0434\u043E\u043A, \u044F\u043A\u0438\u0439 \u0432\u0438 \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u043B\u0438 \u044F\u043A \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440, \u0437 \u043E\u043F\u0438\u0441\u0443 \u0437\u0430\u0434\u0430\u0447\u0456 \u043F\u0456\u0434 \u0447\u0430\u0441 \u0432\u0456\u0434\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F \u0437\u0430\u0434\u0430\u0447\u0456.",name:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440 \u0437 \u043E\u043F\u0438\u0441\u0443"}},globalQuery:{heading:"\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0439 \u0437\u0430\u043F\u0438\u0442",query:{description:"\u0417\u0430\u043F\u0438\u0442, \u044F\u043A\u0438\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u043D\u043E \u0432\u043A\u043B\u044E\u0447\u0430\u0454\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043A\u043E\u0436\u043D\u043E\u0433\u043E \u0431\u043B\u043E\u043A\u0443 Tasks \u0443 \u0441\u0445\u043E\u0432\u0438\u0449\u0456. \u041A\u043E\u0440\u0438\u0441\u043D\u043E \u0434\u043B\u044F \u0434\u043E\u0434\u0430\u0432\u0430\u043D\u043D\u044F \u0444\u0456\u043B\u044C\u0442\u0440\u0456\u0432 \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C \u0430\u0431\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0456\u0432 \u043C\u0430\u043A\u0435\u0442\u0430.",placeholder:`\u041D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u043D\u0456 \u0437\u0430\u0434\u0430\u0447\u0456",nextLine:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0437\u043C\u0443\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u0430\u0434\u0430\u0447\u0456 \u0437\u2019\u044F\u0432\u043B\u044F\u0442\u0438\u0441\u044F \u043D\u0430 \u0440\u044F\u0434\u043A\u0443 \u043D\u0438\u0436\u0447\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456. \u0406\u043D\u0430\u043A\u0448\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u2019\u044F\u0432\u0438\u0442\u044C\u0441\u044F \u043F\u0435\u0440\u0435\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E\u044E.",name:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u2019\u044F\u0432\u043B\u044F\u0454\u0442\u044C\u0441\u044F \u043D\u0430 \u0440\u044F\u0434\u043A\u0443 \u043D\u0438\u0436\u0447\u0435"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0456\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u0435\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u0435\u043C\u0430 Aura",borderTheme:"\u0422\u0435\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u043E\u0434\u0430\u0442\u0438 {{numberOfStatuses}} \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0432\u0430\u043D\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432"}},ebullientworksTheme:"\u0422\u0435\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u0435\u043C\u0430 ITS \u0456 \u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456 SlRvb",lytModeTheme:"\u0422\u0435\u043C\u0430 LYT Mode (\u043B\u0438\u0448\u0435 \u0442\u0435\u043C\u043D\u0438\u0439 \u0440\u0435\u0436\u0438\u043C)",minimalTheme:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430 \u0442\u0435\u043C\u0430",thingsTheme:"\u0422\u0435\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0442\u0430 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0430\u0448\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438",tooltip:"\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u0444\u0430\u0439\u043B \u0443 \u043A\u043E\u0440\u0435\u043D\u0456 \u0441\u0445\u043E\u0432\u0438\u0449\u0430, \u0449\u043E \u043C\u0456\u0441\u0442\u0438\u0442\u044C \u0434\u0456\u0430\u0433\u0440\u0430\u043C\u0443 Mermaid \u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0445 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u044C \u0441\u0442\u0430\u0442\u0443\u0441\u0443."}},description:{line1:"\u0426\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438, \u044F\u043A\u0456 Tasks \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0454 \u043D\u0430\u0442\u0438\u0432\u043D\u043E, \u0431\u0435\u0437 \u043F\u043E\u0442\u0440\u0435\u0431\u0438 \u0432 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u043E\u043C\u0443 CSS-\u0441\u0442\u0438\u043B\u044E\u0432\u0430\u043D\u043D\u0456 \u0447\u0438 \u0442\u0435\u043C\u0430\u0445.",line2:"\u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u043E\u0434\u0430\u0432\u0430\u0442\u0438, \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0442\u0430 \u0434\u043E\u0434\u0430\u0432\u0430\u0442\u0438 \u0432\u043B\u0430\u0441\u043D\u0456 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438 \u0432 \u0440\u043E\u0437\u0434\u0456\u043B\u0456 \u043D\u0438\u0436\u0447\u0435."},heading:"\u041E\u0441\u043D\u043E\u0432\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432\u0441\u0456 \u043D\u0435\u0432\u0456\u0434\u043E\u043C\u0456 \u0442\u0438\u043F\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432"},addNewStatus:{name:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0456"},resetCustomStatuses:{name:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0442\u0438\u043F\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0434\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u044C \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443\u0432\u0430\u043D\u043D\u044F\u043C"}},description:{line1:"\u0421\u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u0441\u043B\u0456\u0434 <b>\u0432\u0438\u0431\u0440\u0430\u0442\u0438 \u0442\u0430 \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0438 CSS-\u0444\u0440\u0430\u0433\u043C\u0435\u043D\u0442 \u0430\u0431\u043E \u0442\u0435\u043C\u0443</b> \u0434\u043B\u044F \u0441\u0442\u0438\u043B\u0456\u0437\u0430\u0446\u0456\u0457 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0438\u0445 \u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456\u0432.",line2:"\u041F\u043E\u0442\u0456\u043C \u0441\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u0439\u0442\u0435\u0441\u044F \u043A\u043D\u043E\u043F\u043A\u0430\u043C\u0438 \u043D\u0438\u0436\u0447\u0435, \u0449\u043E\u0431 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u0441\u0432\u043E\u0457 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u043E \u0434\u043E \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 CSS-\u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456\u0432.",line3:"<b>\u041F\u0440\u0438\u043C\u0456\u0442\u043A\u0430</b> \u0411\u0443\u0434\u044C-\u044F\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438 \u0437 \u0442\u0438\u043C \u0441\u0430\u043C\u0438\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u043C, \u0449\u043E \u0439 \u043F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438, \u0431\u0443\u0434\u0435 \u043F\u0440\u043E\u0456\u0433\u043D\u043E\u0440\u043E\u0432\u0430\u043D\u043E. \u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438 \u0444\u0430\u043A\u0442\u0438\u0447\u043D\u043E \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438, \u0432\u0438\u043A\u043E\u043D\u0430\u0432\u0448\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 \xAB\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 \u0430\u0431\u043E \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0443\xBB \u0442\u0430 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0432\u0448\u0438 \u0441\u043F\u0430\u0434\u043D\u0435 \u043C\u0435\u043D\u044E \xAB\u0421\u0442\u0430\u0442\u0443\u0441\xBB.",line4:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u044C\u0442\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0456\u044E, \u0449\u043E\u0431 \u0440\u043E\u0437\u043F\u043E\u0447\u0430\u0442\u0438!"},heading:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438"},heading:"\u0421\u0442\u0430\u0442\u0443\u0441\u0438 \u0437\u0430\u0434\u0430\u0447"}}}});var rT,nT=X(()=>{rT={main:{loadingPlugin:"\u52A0\u8F7D\u63D2\u4EF6: {{name}} v{{version}}",unloadingPlugin:"\u5378\u8F7D\u63D2\u4EF6: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u5982\u679C\u542F\u7528\uFF0C\u6B64\u72B6\u6001\u5C06\u4F5C\u4E3A\u547D\u4EE4\u53EF\u7528,\u56E0\u6B64\u60A8\u53EF\u4EE5\u6307\u5B9A\u5FEB\u6377\u952E\u5E76\u4F7F\u7528\u5B83\u5207\u6362\u72B6\u6001\u3002",name:"\u53EF\u7528\u4F5C\u547D\u4EE4"},editNextStatusSymbol:{description:"\u5355\u51FB\u65F6\uFF0C\u8FD9\u662F\u4E0B\u4E00\u6B65\u5E94\u8BE5\u4F7F\u7528\u7684\u7B26\u53F7\u3002",name:"\u4EFB\u52A1\u4E0B\u4E00\u4E2A\u72B6\u6001\u7B26\u53F7"},editStatusName:{description:"\u8FD9\u662F\u4EFB\u52A1\u72B6\u6001\u7684\u53CB\u597D\u540D\u79F0.",name:"\u4EFB\u52A1\u72B6\u6001\u540D\u79F0"},editStatusSymbol:{description:"\u8FD9\u662F\u65B9\u62EC\u53F7\u4E2D\u7684\u5B57\u7B26\u3002\uFF08\u4EC5\u53EF\u7F16\u8F91\u81EA\u5B9A\u4E49\u72B6\u6001,\u4E0D\u53EF\u7F16\u8F91\u6838\u5FC3\u72B6\u6001\u3002\uFF09",name:"\u4EFB\u52A1\u72B6\u6001\u7B26\u53F7"},editStatusType:{description:"\u63A7\u5236\u641C\u7D22\u548C\u5207\u6362\u72B6\u6001\u7684\u884C\u4E3A\u3002",name:"\u4EFB\u52A1\u72B6\u6001\u7C7B\u578B"},fixErrorsBeforeSaving:"\u5728\u4FDD\u5B58\u524D\u4FEE\u590D\u9519\u8BEF\u3002"}},reports:{statusRegistry:{about:{createdBy:"\u6B64\u6587\u4EF6\u7531 Obsidian tasks \u63D2\u4EF6(version {{version}})\u521B\u5EFA,\u4EE5\u5E2E\u52A9\u53EF\u89C6\u5316\u6B64\u4ED3\u5E93\u4E2D\u7684\u4EFB\u52A1\u72B6\u6001.",deleteFileAnyTime:"\u60A8\u53EF\u4EE5\u968F\u65F6\u5220\u9664\u6B64\u6587\u4EF6.",title:"\u5173\u4E8E\u6B64\u6587\u4EF6",updateReport:{line1:"\u5982\u679C\u66F4\u6539 Tasks \u72B6\u6001\u8BBE\u7F6E,\u5219\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u83B7\u53D6\u66F4\u65B0\u540E\u7684\u62A5\u544A:",line2:"\u524D\u5F80 `\u8BBE\u7F6E` -> `Tasks`\u3002",line3:"\u70B9\u51FB `\u67E5\u770B\u5E76\u68C0\u67E5\u60A8\u7684\u72B6\u6001`\u3002"}},columnHeadings:{nextStatusSymbol:"\u4E0B\u4E00\u4E2A\u72B6\u6001\u7B26\u53F7",problems:"\u95EE\u9898 (\u5982\u679C\u5B58\u5728)",statusName:"\u72B6\u6001\u540D\u79F0",statusSymbol:"\u72B6\u6001\u7B26\u53F7",statusType:"\u72B6\u6001\u7C7B\u578B"},loadedSettings:{settingsActuallyUsed:"\u8FD9\u4E9B\u662F Tasks \u5B9E\u9645\u4F7F\u7528\u7684\u8BBE\u7F6E.",switchToLivePreview:"\u5207\u6362\u5230\u5B9E\u65F6\u9884\u89C8\u6216\u9605\u8BFB\u6A21\u5F0F\u4EE5\u67E5\u770B\u56FE\u8868.",title:"\u5DF2\u52A0\u8F7D\u8BBE\u7F6E"},messages:{cannotFindNextStatus:"\u672A\u80FD\u610F\u5916\u627E\u5230\u4E0B\u4E00\u4E2A\u72B6\u6001.",duplicateSymbol:"\u91CD\u590D\u7684\u7B26\u53F7 '{{symbol}}':\u6B64\u72B6\u6001\u5C06\u88AB\u5FFD\u7565.",emptySymbol:"\u7A7A\u7B26\u53F7:\u6B64\u72B6\u6001\u5C06\u88AB\u5FFD\u7565.",nextSymbolUnknown:"\u4E0B\u4E00\u4E2A\u7B26\u53F7 {{symbol}} \u672A\u77E5:\u8BF7\u521B\u5EFA\u7B26\u53F7\u4E3A {{symbol}} \u7684\u72B6\u6001.",notConventionalType:"\u4F9B\u53C2\u8003,\u72B6\u6001\u7B26\u53F7 {{symbol}} \u7684\u5E38\u89C4\u7C7B\u578B\u662F {{type}}:\u60A8\u53EF\u80FD\u5E0C\u671B\u67E5\u770B\u6B64\u7C7B\u578B.",wrongTypeAfterDone:{line1:"\u6B64`\u5B8C\u6210`\u72B6\u6001\u540E\u8DDF\u968F\u7684\u662F{{nextType}}\uFF0C\u800C\u4E0D\u662F`\u5F85\u529E`\u6216`\u8FDB\u884C\u4E2D`\u3002",line2:"\u5982\u679C\u7528\u4E8E\u5B8C\u6210\u4E00\u4E2A\u91CD\u590D\u4EFB\u52A1\uFF0C\u5B83\u540E\u9762\u4F1A\u8DDF\u7740\u5F85\u529E`\u6216`\u8FDB\u884C\u4E2D`\uFF0C\u4EE5\u786E\u4FDD\u4E0B\u4E00\u4E2A\u4EFB\u52A1\u7B26\u5408\u201C\u672A\u5B8C\u6210\u201D\u7684\u7B5B\u9009\u6761\u4EF6\u3002",line3:"\u8BF7\u53C2\u9605[\u91CD\u590D\u4EFB\u52A1\u548C\u81EA\u5B9A\u4E49\u72B6\u6001]({{helpURL}})\u3002"}},sampleTasks:{line1:"",line2:"",line3:"",tip:{line1:"",line2:""},title:""},searchSampleTasks:{line1:"",title:""},statusSettings:{comment:{line1:"\u5207\u6362\u5230\u5B9E\u65F6\u9884\u89C8\u6216\u9605\u8BFB\u6A21\u5F0F\u4EE5\u67E5\u770B\u8868\u683C.",line2:"\u5982\u679C\u72B6\u6001\u540D\u79F0\u4E2D\u6709\u4EFB\u4F55Markdown\u683C\u5F0F\u5B57\u7B26,\u5982 '*' \u6216 '_',",line3:"\u9ED1\u66DC\u77F3\u53EA\u80FD\u5728\u9605\u8BFB\u6A21\u5F0F\u4E0B\u6B63\u786E\u6E32\u67D3\u8868\u683C."},theseAreStatusValues:"\u8FD9\u4E9B\u662F\u6838\u5FC3\u548C\u81EA\u5B9A\u4E49\u72B6\u6001\u90E8\u5206\u4E2D\u7684\u72B6\u6001\u503C.",title:"\u72B6\u6001\u8BBE\u7F6E"}}},settings:{autoSuggest:{heading:"\u81EA\u52A8\u5EFA\u8BAE",maxSuggestions:{description:'\u5F53\u81EA\u52A8\u5EFA\u8BAE\u83DC\u5355\u5F39\u51FA\u65F6\uFF0C\u5E94\u663E\u793A\u591A\u5C11\u6761\u5EFA\u8BAE (\u5305\u542B "\u23CE" \u9009\u9879)\u3002',name:"\u8981\u663E\u793A\u7684\u6700\u5927\u81EA\u52A8\u5EFA\u8BAE\u6570"},minLength:{description:"\u5982\u679C\u9AD8\u4E8E0\uFF0C\u5219\u53EA\u6709\u5728\u8BC6\u522B\u51FA\u4EFB\u4F55\u652F\u6301\u7684\u5173\u952E\u5B57\u7684\u5F00\u5934\u65F6\u624D\u4F1A\u89E6\u53D1\u81EA\u52A8\u5EFA\u8BAE\u3002",name:"\u81EA\u52A8\u5EFA\u8BAE\u7684\u6700\u5C0F\u5339\u914D\u957F\u5EA6"},toggle:{description:"\u542F\u7528\u6B64\u529F\u80FD\u5C06\u5728\u8BC6\u522B\u7684\u4EFB\u52A1\u884C\u5185\u8F93\u5165\u65F6\u6253\u5F00\u667A\u80FD\u5EFA\u8BAE\u83DC\u5355\u3002",name:"\u81EA\u52A8\u5EFA\u8BAE\u4EFB\u52A1\u5185\u5BB9"}},changeRequiresRestart:"\u66F4\u6539\u4EFB\u4F55\u8BBE\u7F6E\u90FD\u9700\u8981\u91CD\u65B0\u542F\u52A8Obsidian\u3002",dates:{cancelledDate:{description:"\u542F\u7528\u6B64\u529F\u80FD\u5C06\u5728\u4EFB\u52A1\u8BBE\u7F6E\u4E3A\u53D6\u6D88\u65F6\uFF0C\u5728\u5176\u672B\u5C3E\u6DFB\u52A0\u65F6\u95F4\u6233 \u274C YYYY-MM-DD\u3002",name:"\u8BBE\u7F6E\u6BCF\u4E2A\u5DF2\u53D6\u6D88\u7684\u4EFB\u52A1\u7684\u53D6\u6D88\u65E5\u671F"},createdDate:{description:"\u542F\u7528\u6B64\u529F\u80FD\u5C06\u5728\u901A\u8FC7\u201CCreate or edit task\u201D\u547D\u4EE4\u6216\u5B8C\u6210\u91CD\u590D\u4EFB\u52A1\u65F6\uFF0C\u5728\u5176\u4ED6\u65E5\u671F\u503C\u4E4B\u524D\u6DFB\u52A0\u65F6\u95F4\u6233\u2795YYYY-MM-DD\u3002",name:"\u8BBE\u7F6E\u6BCF\u4E2A\u5DF2\u6DFB\u52A0\u4EFB\u52A1\u7684\u521B\u5EFA\u65E5\u671F"},doneDate:{description:"\u542F\u7528\u6B64\u529F\u80FD\u5C06\u5728\u4EFB\u52A1\u88AB\u8BBE\u7F6E\u4E3A\u5B8C\u6210\u65F6\uFF0C\u5728\u5176\u672B\u5C3E\u6DFB\u52A0\u65F6\u95F4\u6233 \u2705 YYYY-MM-DD\u3002",name:"\u8BBE\u7F6E\u6BCF\u4E2A\u5DF2\u5B8C\u6210\u4EFB\u52A1\u7684\u5B8C\u6210\u65E5\u671F"},heading:"\u65E5\u671F"},datesFromFileNames:{heading:"\u4ECE\u6587\u4EF6\u540D\u4E2D\u63D0\u53D6\u65E5\u671F",scheduledDate:{extraFormat:{description:{line1:"\u4EFB\u52A1\u63D2\u4EF6\u5728\u5C06\u6587\u4EF6\u540D\u7528\u4F5C\u672A\u6CE8\u660E\u65E5\u671F\u4EFB\u52A1\u7684\u8BA1\u5212\u65E5\u671F\u65F6\uFF0C\u5C06\u8BC6\u522B\u7684\u9644\u52A0\u65E5\u671F\u683C\u5F0F\u3002",line2:"\u8BED\u6CD5\u53C2\u8003"},name:"\u4E3A\u65E0\u65E5\u671F\u4EFB\u52A1\u6DFB\u52A0\u6587\u4EF6\u540D\u65E5\u671F\u683C\u5F0F\u4F5C\u4E3A\u8BA1\u5212\u65E5\u671F",placeholder:"\u793A\u4F8B\uFF1AMMM DD YYYY"},folders:{description:"\u5982\u679C\u8981\u5728\u5168\u5C40\u4F7F\u7528\u9ED8\u8BA4\u7684\u8BA1\u5212\u65E5\u671F\uFF0C\u8BF7\u4FDD\u7559\u4E3A\u7A7A,\u6216\u8005\u8F93\u5165\u4EE5\u9017\u53F7\u5206\u9694\u7684\u6587\u4EF6\u5939\u5217\u8868\u3002",name:"\u5177\u6709\u9ED8\u8BA4\u8BA1\u5212\u65E5\u671F\u7684\u6587\u4EF6\u5939"},toggle:{description:{line1:"\u7528\u4E8E\u8282\u7701\u8F93\u5165\u8BA1\u5212\u65E5\u671F (\u23F3) \u7684\u65F6\u95F4\u3002",line2:"\u5982\u679C\u542F\u7528\u6B64\u9009\u9879\uFF0C\u5219\u4EFB\u4F55\u672A\u6CE8\u660E\u65E5\u671F\u7684\u4EFB\u52A1\u90FD\u5C06\u88AB\u8D4B\u4E88\u4ECE\u5176\u6587\u4EF6\u540D\u4E2D\u63D0\u53D6\u7684\u9ED8\u8BA4\u201C\u8BA1\u5212\u65E5\u671F\u201D\u3002",line3:"\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0CTasks \u63D2\u4EF6\u5C06\u5339\u914D <code>YYYY-MM-DD</code> \u548C <code>YYYYMMDD</code> \u4E24\u79CD\u65E5\u671F\u683C\u5F0F\u3002",line4:"\u672A\u6CE8\u660E\u65E5\u671F\u7684\u4EFB\u52A1\u6307\u6CA1\u6709\u622A\u6B62\u65E5\u671F (\u{1F4C5} ), \u8BA1\u5212\u65E5\u671F (\u23F3) \u548C\u5F00\u59CB\u65E5\u671F(\u{1F6EB}) \u7684\u4EFB\u52A1\u3002"},name:"\u5C06\u6587\u4EF6\u540D\u7528\u4F5C\u672A\u6CE8\u660E\u65E5\u671F\u7684\u4EFB\u52A1\u7684\u8BA1\u5212\u65E5\u671F"}}},dialogs:{accessKeys:{description:"\u5982\u679C\u5BF9\u8BDD\u6846\u4E2D\u5404\u79CD\u63A7\u4EF6\u7684\u5FEB\u6377\u952E\u4E0E\u7CFB\u7EDF\u5FEB\u6377\u952E\u53D1\u751F\u51B2\u7A81\uFF0C\u60A8\u53EF\u4EE5\u5728\u8FD9\u91CC\u505C\u7528\u5B83\u4EEC\u3002",name:"\u5728\u5BF9\u8BDD\u6846\u4E2D\u4F7F\u7528\u5FEB\u6377\u952E"},heading:"\u5BF9\u8BDD\u6846"},format:{description:{line1:"Tasks \u7528\u4E8E\u8BFB\u53D6\u548C\u5199\u5165\u4EFB\u52A1\u7684\u683C\u5F0F.",line2:"<b>\u91CD\u70B9:</b> \u76EE\u524D Tasks \u53EA\u652F\u6301\u540C\u65F6\u4F7F\u7528\u4E00\u79CD\u683C\u5F0F\u3002\u9009\u62E9 dataview \u5C06 <b>\u4F7F Tasks \u505C\u6B62\u8BFB\u53D6\u81EA\u6709\u7684\u8868\u60C5\u7B26\u53F7\u683C\u5F0F</b>"},displayName:{dataview:"Dataview \u683C\u5F0F",tasksEmojiFormat:"Tasks \u8868\u60C5\u683C\u5F0F"},name:"\u4EFB\u52A1\u683C\u5F0F"},globalFilter:{filter:{description:{line1:"\u5EFA\u8BAE\uFF1A\u5982\u679C\u60A8\u5E0C\u671B\u4ED3\u5E93\u4E2D\u7684\u6240\u6709\u4EFB\u52A1\u5217\u8868\u9879\u90FD\u7531\u6B64\u63D2\u4EF6\u7BA1\u7406\uFF0C\u8BF7\u7559\u7A7A\u3002",line2:'\u5982\u679C\u60A8\u5E0C\u671B Tasks \u4EC5\u4F5C\u7528\u4E8E "<code>- [ ]</code>" \u4EFB\u52A1\u5217\u8868\u9879\u7684\u5B50\u96C6\uFF0C\u8BF7\u4F7F\u7528\u5168\u5C40\u7B5B\u9009\u5668,\u4EE5\u4FBF\u53EA\u6709\u5728\u5176\u63CF\u8FF0\u4E2D\u5305\u542B\u6307\u5B9A\u7684\u5B57\u7B26\u4E32\u7684\u4EFB\u52A1\u5217\u8868\u9879\u624D\u88AB\u89C6\u4E3A\u4EFB\u52A1\u3002',line3:"\u4F8B\u5982\uFF0C\u5982\u679C\u5C06\u5168\u5C40\u7B5B\u9009\u5668\u8BBE\u7F6E\u4E3A <code>#task</code>\uFF0C\u5219 Tasks \u63D2\u4EF6\u5C06\u4EC5\u5904\u7406\u6807\u8BB0\u4E3A <code>#task</code> \u7684\u4EFB\u52A1\u5217\u8868\u9879\u3002",line4:"\u5176\u4ED6\u4EFB\u52A1\u5217\u8868\u9879\u5C06\u4FDD\u6301\u6B63\u5E38,\u4E0D\u4F1A\u51FA\u73B0\u5728\u67E5\u8BE2\u4E2D\u6216\u8BBE\u7F6E\u5B8C\u6210\u65E5\u671F\u3002"},name:"\u5168\u5C40\u7B5B\u9009\u5668",placeholder:"\u4F8B\u5982:#task \u6216 TODO"},heading:"\u5168\u5C40\u4EFB\u52A1\u7B5B\u9009\u5668",removeFilter:{description:"\u542F\u7528\u6B64\u9009\u9879\u5C06\u5728\u663E\u793A\u4EFB\u52A1\u65F6\u4ECE\u4EFB\u52A1\u63CF\u8FF0\u4E2D\u5220\u9664\u8BBE\u7F6E\u4E3A\u5168\u5C40\u7B5B\u9009\u5668\u7684\u5B57\u7B26\u4E32.",name:"\u4ECE\u63CF\u8FF0\u4E2D\u5220\u9664\u5168\u5C40\u7B5B\u9009\u5668"}},globalQuery:{heading:"\u5168\u5C40\u67E5\u8BE2",query:{description:"\u81EA\u52A8\u5305\u542B\u5728\u5E93\u4E2D\u6BCF\u4E2A Tasks \u5757\u5F00\u5934\u7684\u67E5\u8BE2\u8BED\u53E5.\u7528\u4E8E\u6DFB\u52A0\u9ED8\u8BA4\u8FC7\u6EE4\u5668\u6216\u5E03\u5C40\u9009\u9879\u3002",placeholder:`\u4F8B\u5982...
path does not include _templates/
limit 300
show urgency`}},presets:{line1:"",line2:"",name:""},recurringTasks:{heading:"\u91CD\u590D\u6027\u4EFB\u52A1",nextLine:{description:"\u542F\u7528\u6B64\u529F\u80FD\u540E\uFF0C\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u5C06\u663E\u793A\u5728\u5DF2\u5B8C\u6210\u4EFB\u52A1\u7684\u4E0B\u4E00\u884C\u3002\u82E5\u5173\u95ED\u6B64\u529F\u80FD\uFF0C\u5219\u4E0B\u4E00\u6B21\u91CD\u590D\u5C06\u51FA\u73B0\u5728\u5DF2\u5B8C\u6210\u4EFB\u52A1\u7684\u4E0A\u4E00\u884C\u3002",name:"\u628A\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u653E\u5728\u4E0B\u4E00\u884C"},removeScheduledDate:{description:{line1:"\u5F00\u542F\u6B64\u9009\u9879\u540E\uFF0C\u5F53\u4EFB\u52A1\u81F3\u5C11\u8BBE\u7F6E\u4E86\u5F00\u59CB\u65E5\u671F(\u{1F6EB})\u6216\u8BA1\u5212\u65E5\u671F(\u{1F4C5})\u4E2D\u7684\u4E00\u4E2A\u65F6\uFF0C\u8BE5\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u5468\u671F\u5C06\u4E0D\u518D\u5305\u542B\u8BA1\u5212\u65E5\u671F(\u23F3)\u3002",line2:"\u6B64\u529F\u80FD\u9002\u7528\u4E8E\u4F60\u5E0C\u671B\u5C06\u5F00\u59CB\u548C\u622A\u6B62\u65E5\u671F\u5EF6\u7EED\u5230\u4E0B\u4E00\u4E2A\u5468\u671F\uFF0C\u4F46\u8BA1\u5212\u65E5\u671F\u6682\u4E0D\u8BBE\u7F6E\uFF0C\u7B49\u5B9E\u9645\u5F00\u59CB\u5904\u7406\u65F6\u518D\u786E\u5B9A\u7684\u60C5\u51B5\u3002"},name:"\u5728\u91CD\u590D\u6027\u4EFB\u52A1\u4E2D\u79FB\u9664\u8BA1\u5212\u65E5\u671F"}},seeTheDocumentation:"\u53C2\u9605\u6587\u6863",statuses:{collections:{anuppuccinTheme:"AnuPpuccin \u4E3B\u9898",auraTheme:"Aura \u4E3B\u9898",borderTheme:"Border \u4E3B\u9898",buttons:{addCollection:{name:"{{themeName}}: \u6DFB\u52A0 {{numberOfStatuses}} \u79CD\u652F\u6301\u72B6\u6001"}},ebullientworksTheme:"Ebullientworks \u4E3B\u9898",itsThemeAndSlrvbCheckboxes:"ITS \u4E3B\u9898\u548C SlRvb \u590D\u9009\u6846",lytModeTheme:"LYT Mode \u4E3B\u9898 (\u4EC5\u6DF1\u8272\u6A21\u5F0F)",minimalTheme:"Minimal \u4E3B\u9898",thingsTheme:"Things \u4E3B\u9898"},coreStatuses:{buttons:{checkStatuses:{name:"\u67E5\u770B\u5E76\u68C0\u67E5\u60A8\u7684\u72B6\u6001",tooltip:"\u5728\u5E93\u7684\u6839\u76EE\u5F55\u4E0B\u521B\u5EFA\u4E00\u4E2A\u65B0\u6587\u4EF6,\u5305\u542B\u5F53\u524D\u72B6\u6001\u8BBE\u7F6E\u7684 Mermaid \u56FE\u8868."}},description:{line1:"\u8FD9\u4E9B\u662F Tasks \u539F\u751F\u652F\u6301\u7684\u6838\u5FC3\u72B6\u6001\uFF0C\u4E0D\u9700\u8981\u81EA\u5B9A\u4E49CSS\u6837\u5F0F\u6216\u4E3B\u9898\u3002",line2:"\u60A8\u53EF\u4EE5\u5728\u4E0B\u9762\u7F16\u8F91\u548C\u6DFB\u52A0\u81EA\u5B9A\u4E49\u72B6\u6001\u3002"},heading:"\u6838\u5FC3\u72B6\u6001"},customStatuses:{buttons:{addAllUnknown:{name:"\u6DFB\u52A0\u6240\u6709\u672A\u77E5\u72B6\u6001\u7C7B\u578B"},addNewStatus:{name:"\u6DFB\u52A0\u65B0\u4EFB\u52A1\u72B6\u6001"},resetCustomStatuses:{name:"\u91CD\u7F6E\u81EA\u5B9A\u4E49\u72B6\u6001\u7C7B\u578B\u4E3A\u9ED8\u8BA4\u503C"}},description:{line1:"\u60A8\u5E94\u8BE5\u9996\u5148<b>\u9009\u62E9\u5E76\u5B89\u88C5 CSS\u4EE3\u7801\u6BB5\u6216\u4E3B\u9898<b>\u4EE5\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u590D\u9009\u6846\u7684\u6837\u5F0F",line2:"\u7136\u540E\uFF0C\u4F7F\u7528\u4E0B\u9762\u7684\u6309\u94AE\u8BBE\u7F6E\u60A8\u7684\u81EA\u5B9A\u4E49\u72B6\u6001,\u4EE5\u5339\u914D\u60A8\u9009\u62E9\u7684CSS\u590D\u9009\u6846.",line3:"<b>\u6CE8\u610F</b>\u4EFB\u4F55\u4E0E\u66F4\u65E9\u7684\u72B6\u6001\u5177\u6709\u76F8\u540C\u7B26\u53F7\u7684\u72B6\u6001\u90FD\u5C06\u88AB\u5FFD\u7565.\u60A8\u53EF\u4EE5\u901A\u8FC7\u8FD0\u884C\u201CCreate or edit task\u201D\u547D\u4EE4\u5E76\u67E5\u770B\u201CStatus\u201D\u4E0B\u62C9\u5217\u8868\u6765\u786E\u8BA4\u5B9E\u9645\u52A0\u8F7D\u7684\u72B6\u6001\u3002",line4:"\u53C2\u9605\u6587\u6863\uFF01"},heading:"\u81EA\u5B9A\u4E49\u72B6\u6001"},heading:"\u4EFB\u52A1\u72B6\u6001"}}}});var Hf,fO,iT,M,ys=X(()=>{"use strict";Gb();Bb();zb();Qb();Xb();eT();nT();Hf=!1,fO=()=>{let r=localStorage.getItem("language"),t=(r==null?void 0:r.toLowerCase())||"en";return console.log(`Language in Obsidian settings: '${t}'; requesting Tasks in '${t}'.`),t},iT=()=>I(void 0,null,function*(){Hf||(yield yt.init({lng:fO(),fallbackLng:"en",returnEmptyString:!1,resources:{be:{translation:Vb},de:{translation:Kb},en:{translation:Zb},ru:{translation:Jb},uk:{translation:tT},zh:{translation:rT}},interpolation:{escapeValue:!1}}),Hf=!0)}),M=new Proxy(yt,{get(r,t){if(!Hf&&t==="t")throw new Error("i18n.t() called before initialization. Call initializeI18n() first.");return Reflect.get(r,t)}})});var kn,fe,si=X(()=>{"use strict";kn=class{},fe=kn;fe.dateFormat="YYYY-MM-DD",fe.dateTimeFormat="YYYY-MM-DD HH:mm",fe.indentationRegex=/^([\s\t>]*)/,fe.listMarkerRegex=/([-*+]|[0-9]+[.)])/,fe.checkboxRegex=/\[(.)\]/u,fe.afterCheckboxRegex=/ *(.*)/u,fe.taskRegex=new RegExp(kn.indentationRegex.source+kn.listMarkerRegex.source+" +"+kn.checkboxRegex.source+kn.afterCheckboxRegex.source,"u"),fe.nonTaskRegex=new RegExp(kn.indentationRegex.source+kn.listMarkerRegex.source+"? *("+kn.checkboxRegex.source+")?"+kn.afterCheckboxRegex.source,"u"),fe.listItemRegex=new RegExp(kn.indentationRegex.source+kn.listMarkerRegex.source),fe.blockLinkRegex=/ \^[a-zA-Z0-9-]+$/u,fe.hashTags=/(^|\s)#[^ !@#$%^&*(),.?":{}|<>]+/g,fe.hashTagsFromEnd=new RegExp(kn.hashTags.source+"$")});var Ke=x(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.matchAnyPattern=Fi.extractTerms=Fi.repeatedTimeunitPattern=void 0;function gO(r,t){let e=t.replace(/\((?!\?)/g,"(?:");return`${r}${e}\\s{0,5}(?:,?\\s{0,5}${e}){0,10}`}Fi.repeatedTimeunitPattern=gO;function sT(r){let t;return r instanceof Array?t=[...r]:r instanceof Map?t=Array.from(r.keys()):t=Object.keys(r),t}Fi.extractTerms=sT;function yO(r){return`(?:${sT(r).sort((e,n)=>n.length-e.length).join("|").replace(/\./g,"\\.")})`}Fi.matchAnyPattern=yO});var Ue=x((Bf,Vf)=>{(function(r,t){typeof Bf=="object"&&typeof Vf!="undefined"?Vf.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs=t()})(Bf,function(){"use strict";var r=1e3,t=6e4,e=36e5,n="millisecond",i="second",s="minute",a="hour",o="day",l="week",u="month",c="quarter",d="year",f="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(V,K,R){var ee=String(V);return!ee||ee.length>=K?V:""+Array(K+1-ee.length).join(R)+V},E={s:O,z:function(V){var K=-V.utcOffset(),R=Math.abs(K),ee=Math.floor(R/60),W=R%60;return(K<=0?"+":"-")+O(ee,2,"0")+":"+O(W,2,"0")},m:function V(K,R){if(K.date()<R.date())return-V(R,K);var ee=12*(R.year()-K.year())+(R.month()-K.month()),W=K.clone().add(ee,u),le=R-W<0,m=K.clone().add(ee+(le?-1:1),u);return+(-(ee+(R-W)/(le?W-m:m-W))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:u,y:d,w:l,d:o,D:f,h:a,m:s,s:i,ms:n,Q:c}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},P="en",Y={};Y[P]=v;var q=function(V){return V instanceof ye},ae=function(V,K,R){var ee;if(!V)return P;if(typeof V=="string")Y[V]&&(ee=V),K&&(Y[V]=K,ee=V);else{var W=V.name;Y[W]=V,ee=W}return!R&&ee&&(P=ee),ee||!R&&P},H=function(V,K){if(q(V))return V.clone();var R=typeof K=="object"?K:{};return R.date=V,R.args=arguments,new ye(R)},J=E;J.l=ae,J.i=q,J.w=function(V,K){return H(V,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var ye=function(){function V(R){this.$L=ae(R.locale,null,!0),this.parse(R)}var K=V.prototype;return K.parse=function(R){this.$d=function(ee){var W=ee.date,le=ee.utc;if(W===null)return new Date(NaN);if(J.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var m=W.match(b);if(m){var y=m[2]-1||0,_=(m[7]||"0").substring(0,3);return le?new Date(Date.UTC(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,_)):new Date(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,_)}}return new Date(W)}(R),this.$x=R.x||{},this.init()},K.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},K.$utils=function(){return J},K.isValid=function(){return this.$d.toString()!==p},K.isSame=function(R,ee){var W=H(R);return this.startOf(ee)<=W&&W<=this.endOf(ee)},K.isAfter=function(R,ee){return H(R)<this.startOf(ee)},K.isBefore=function(R,ee){return this.endOf(ee)<H(R)},K.$g=function(R,ee,W){return J.u(R)?this[ee]:this.set(W,R)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(R,ee){var W=this,le=!!J.u(ee)||ee,m=J.p(R),y=function(N,$){var ce=J.w(W.$u?Date.UTC(W.$y,$,N):new Date(W.$y,$,N),W);return le?ce:ce.endOf(o)},_=function(N,$){return J.w(W.toDate()[N].apply(W.toDate("s"),(le?[0,0,0,0]:[23,59,59,999]).slice($)),W)},w=this.$W,S=this.$M,C=this.$D,L="set"+(this.$u?"UTC":"");switch(m){case d:return le?y(1,0):y(31,11);case u:return le?y(1,S):y(0,S+1);case l:var j=this.$locale().weekStart||0,D=(w<j?w+7:w)-j;return y(le?C-D:C+(6-D),S);case o:case f:return _(L+"Hours",0);case a:return _(L+"Minutes",1);case s:return _(L+"Seconds",2);case i:return _(L+"Milliseconds",3);default:return this.clone()}},K.endOf=function(R){return this.startOf(R,!1)},K.$set=function(R,ee){var W,le=J.p(R),m="set"+(this.$u?"UTC":""),y=(W={},W[o]=m+"Date",W[f]=m+"Date",W[u]=m+"Month",W[d]=m+"FullYear",W[a]=m+"Hours",W[s]=m+"Minutes",W[i]=m+"Seconds",W[n]=m+"Milliseconds",W)[le],_=le===o?this.$D+(ee-this.$W):ee;if(le===u||le===d){var w=this.clone().set(f,1);w.$d[y](_),w.init(),this.$d=w.set(f,Math.min(this.$D,w.daysInMonth())).$d}else y&&this.$d[y](_);return this.init(),this},K.set=function(R,ee){return this.clone().$set(R,ee)},K.get=function(R){return this[J.p(R)]()},K.add=function(R,ee){var W,le=this;R=Number(R);var m=J.p(ee),y=function(S){var C=H(le);return J.w(C.date(C.date()+Math.round(S*R)),le)};if(m===u)return this.set(u,this.$M+R);if(m===d)return this.set(d,this.$y+R);if(m===o)return y(1);if(m===l)return y(7);var _=(W={},W[s]=t,W[a]=e,W[i]=r,W)[m]||1,w=this.$d.getTime()+R*_;return J.w(w,this)},K.subtract=function(R,ee){return this.add(-1*R,ee)},K.format=function(R){var ee=this,W=this.$locale();if(!this.isValid())return W.invalidDate||p;var le=R||"YYYY-MM-DDTHH:mm:ssZ",m=J.z(this),y=this.$H,_=this.$m,w=this.$M,S=W.weekdays,C=W.months,L=function($,ce,be,Oe){return $&&($[ce]||$(ee,le))||be[ce].substr(0,Oe)},j=function($){return J.s(y%12||12,$,"0")},D=W.meridiem||function($,ce,be){var Oe=$<12?"AM":"PM";return be?Oe.toLowerCase():Oe},N={YY:String(this.$y).slice(-2),YYYY:this.$y,M:w+1,MM:J.s(w+1,2,"0"),MMM:L(W.monthsShort,w,C,3),MMMM:L(C,w),D:this.$D,DD:J.s(this.$D,2,"0"),d:String(this.$W),dd:L(W.weekdaysMin,this.$W,S,2),ddd:L(W.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(y),HH:J.s(y,2,"0"),h:j(1),hh:j(2),a:D(y,_,!0),A:D(y,_,!1),m:String(_),mm:J.s(_,2,"0"),s:String(this.$s),ss:J.s(this.$s,2,"0"),SSS:J.s(this.$ms,3,"0"),Z:m};return le.replace(T,function($,ce){return ce||N[$]||m.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(R,ee,W){var le,m=J.p(ee),y=H(R),_=(y.utcOffset()-this.utcOffset())*t,w=this-y,S=J.m(this,y);return S=(le={},le[d]=S/12,le[u]=S,le[c]=S/3,le[l]=(w-_)/6048e5,le[o]=(w-_)/864e5,le[a]=w/e,le[s]=w/t,le[i]=w/r,le)[m]||w,W?S:J.a(S)},K.daysInMonth=function(){return this.endOf(u).$D},K.$locale=function(){return Y[this.$L]},K.locale=function(R,ee){if(!R)return this.$L;var W=this.clone(),le=ae(R,ee,!0);return le&&(W.$L=le),W},K.clone=function(){return J.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},V}(),we=ye.prototype;return H.prototype=we,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",o],["$M",u],["$y",d],["$D",f]].forEach(function(V){we[V[1]]=function(K){return this.$g(K,V[0],V[1])}}),H.extend=function(V,K){return V.$i||(V(K,ye,H),V.$i=!0),H},H.locale=ae,H.isDayjs=q,H.unix=function(V){return H(1e3*V)},H.en=Y[P],H.Ls=Y,H.p={},H})});var Rt=x(Li=>{"use strict";var bO=Li&&Li.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Li,"__esModule",{value:!0});Li.findYearClosestToRef=Li.findMostLikelyADYear=void 0;var TO=bO(Ue());function vO(r){return r<100&&(r>50?r=r+1900:r=r+2e3),r}Li.findMostLikelyADYear=vO;function _O(r,t,e){let n=TO.default(r),i=n;i=i.month(e-1),i=i.date(t),i=i.year(n.year());let s=i.add(1,"y"),a=i.add(-1,"y");return Math.abs(s.diff(n))<Math.abs(i.diff(n))?i=s:Math.abs(a.diff(n))<Math.abs(i.diff(n))&&(i=a),i.year()}Li.findYearClosestToRef=_O});var Ct=x(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.parseTimeUnits=Ce.TIME_UNITS_PATTERN=Ce.parseYear=Ce.YEAR_PATTERN=Ce.parseOrdinalNumberPattern=Ce.ORDINAL_NUMBER_PATTERN=Ce.parseNumberPattern=Ce.NUMBER_PATTERN=Ce.TIME_UNIT_DICTIONARY=Ce.ORDINAL_WORD_DICTIONARY=Ce.INTEGER_WORD_DICTIONARY=Ce.MONTH_DICTIONARY=Ce.FULL_MONTH_NAME_DICTIONARY=Ce.WEEKDAY_DICTIONARY=void 0;var Wu=Ke(),wO=Rt();Ce.WEEKDAY_DICTIONARY={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6};Ce.FULL_MONTH_NAME_DICTIONARY={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12};Ce.MONTH_DICTIONARY=Object.assign(Object.assign({},Ce.FULL_MONTH_NAME_DICTIONARY),{jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12});Ce.INTEGER_WORD_DICTIONARY={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12};Ce.ORDINAL_WORD_DICTIONARY={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31};Ce.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconds:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",hour:"hour",hours:"hour",day:"d",days:"d",week:"week",weeks:"week",month:"month",months:"month",qtr:"quarter",quarter:"quarter",quarters:"quarter",y:"year",yr:"year",year:"year",years:"year"};Ce.NUMBER_PATTERN=`(?:${Wu.matchAnyPattern(Ce.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function oT(r){let t=r.toLowerCase();return Ce.INTEGER_WORD_DICTIONARY[t]!==void 0?Ce.INTEGER_WORD_DICTIONARY[t]:t==="a"||t==="an"?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t)}Ce.parseNumberPattern=oT;Ce.ORDINAL_NUMBER_PATTERN=`(?:${Wu.matchAnyPattern(Ce.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function kO(r){let t=r.toLowerCase();return Ce.ORDINAL_WORD_DICTIONARY[t]!==void 0?Ce.ORDINAL_WORD_DICTIONARY[t]:(t=t.replace(/(?:st|nd|rd|th)$/i,""),parseInt(t))}Ce.parseOrdinalNumberPattern=kO;Ce.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9])";function SO(r){if(/BE/i.test(r))return r=r.replace(/BE/i,""),parseInt(r)-543;if(/BCE?/i.test(r))return r=r.replace(/BCE?/i,""),-parseInt(r);if(/(AD|CE)/i.test(r))return r=r.replace(/(AD|CE)/i,""),parseInt(r);let t=parseInt(r);return wO.findMostLikelyADYear(t)}Ce.parseYear=SO;var lT=`(${Ce.NUMBER_PATTERN})\\s{0,3}(${Wu.matchAnyPattern(Ce.TIME_UNIT_DICTIONARY)})`,aT=new RegExp(lT,"i");Ce.TIME_UNITS_PATTERN=Wu.repeatedTimeunitPattern("(?:(?:about|around)\\s{0,3})?",lT);function DO(r){let t={},e=r,n=aT.exec(e);for(;n;)EO(t,n),e=e.substring(n[0].length).trim(),n=aT.exec(e);return t}Ce.parseTimeUnits=DO;function EO(r,t){let e=oT(t[1]),n=Ce.TIME_UNIT_DICTIONARY[t[2].toLowerCase()];r[n]=e}});var uT=x((zf,Kf)=>{(function(r,t){typeof zf=="object"&&typeof Kf!="undefined"?Kf.exports=t():typeof define=="function"&&define.amd?define(t):(r=typeof globalThis!="undefined"?globalThis:r||self).dayjs_plugin_quarterOfYear=t()})(zf,function(){"use strict";var r="month",t="quarter";return function(e,n){var i=n.prototype;i.quarter=function(o){return this.$utils().u(o)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(o-1))};var s=i.add;i.add=function(o,l){return o=Number(o),this.$utils().p(l)===t?this.add(3*o,r):s.bind(this)(o,l)};var a=i.startOf;i.startOf=function(o,l){var u=this.$utils(),c=!!u.u(l)||l;if(u.p(o)===t){var d=this.quarter()-1;return c?this.month(3*d).startOf(r).startOf("day"):this.month(3*d+2).endOf(r).endOf("day")}return a.bind(this)(o,l)}}})});var qn=x(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.implySimilarTime=Yr.assignSimilarTime=Yr.assignSimilarDate=Yr.assignTheNextDay=void 0;var cT=ht();function xO(r,t){t=t.add(1,"day"),dT(r,t),fT(r,t)}Yr.assignTheNextDay=xO;function dT(r,t){r.assign("day",t.date()),r.assign("month",t.month()+1),r.assign("year",t.year())}Yr.assignSimilarDate=dT;function OO(r,t){r.assign("hour",t.hour()),r.assign("minute",t.minute()),r.assign("second",t.second()),r.assign("millisecond",t.millisecond()),r.get("hour")<12?r.assign("meridiem",cT.Meridiem.AM):r.assign("meridiem",cT.Meridiem.PM)}Yr.assignSimilarTime=OO;function fT(r,t){r.imply("hour",t.hour()),r.imply("minute",t.minute()),r.imply("second",t.second()),r.imply("millisecond",t.millisecond())}Yr.implySimilarTime=fT});var pT=x(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.toTimezoneOffset=bs.TIMEZONE_ABBR_MAP=void 0;bs.TIMEZONE_ABBR_MAP={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function RO(r){var t;return r==null?null:typeof r=="number"?r:(t=bs.TIMEZONE_ABBR_MAP[r])!==null&&t!==void 0?t:null}bs.toTimezoneOffset=RO});var rt=x(jr=>{"use strict";var mT=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0});jr.ParsingResult=jr.ParsingComponents=jr.ReferenceWithTimezone=void 0;var CO=mT(uT()),qu=mT(Ue()),Qf=qn(),MO=pT();qu.default.extend(CO.default);var Zf=class{constructor(t){var e;t=t!=null?t:new Date,t instanceof Date?this.instant=t:(this.instant=(e=t.instant)!==null&&e!==void 0?e:new Date,this.timezoneOffset=MO.toTimezoneOffset(t.timezone))}};jr.ReferenceWithTimezone=Zf;var Ts=class{constructor(t,e){if(this.reference=t,this.knownValues={},this.impliedValues={},e)for(let i in e)this.knownValues[i]=e[i];let n=qu.default(t.instant);this.imply("day",n.date()),this.imply("month",n.month()+1),this.imply("year",n.year()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}get(t){return t in this.knownValues?this.knownValues[t]:t in this.impliedValues?this.impliedValues[t]:null}isCertain(t){return t in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(t,e){return t in this.knownValues?this:(this.impliedValues[t]=e,this)}assign(t,e){return this.knownValues[t]=e,delete this.impliedValues[t],this}delete(t){delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new Ts(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isOnlyDayMonthComponent(){return this.isCertain("day")&&this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let t=this.dateWithoutTimezoneAdjustment();return!(t.getFullYear()!==this.get("year")||t.getMonth()!==this.get("month")-1||t.getDate()!==this.get("day")||this.get("hour")!=null&&t.getHours()!=this.get("hour")||this.get("minute")!=null&&t.getMinutes()!=this.get("minute"))}toString(){return`[ParsingComponents {knownValues: ${JSON.stringify(this.knownValues)}, impliedValues: ${JSON.stringify(this.impliedValues)}}, reference: ${JSON.stringify(this.reference)}]`}dayjs(){return qu.default(this.date())}date(){let t=this.dateWithoutTimezoneAdjustment();return new Date(t.getTime()+this.getSystemTimezoneAdjustmentMinute(t)*6e4)}dateWithoutTimezoneAdjustment(){let t=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return t.setFullYear(this.get("year")),t}getSystemTimezoneAdjustmentMinute(t){var e,n;(!t||t.getTime()<0)&&(t=new Date);let i=-t.getTimezoneOffset(),s=(n=(e=this.get("timezoneOffset"))!==null&&e!==void 0?e:this.reference.timezoneOffset)!==null&&n!==void 0?n:i;return i-s}static createRelativeFromReference(t,e){let n=qu.default(t.instant);for(let s in e)n=n.add(e[s],s);let i=new Ts(t);return e.hour||e.minute||e.second?(Qf.assignSimilarTime(i,n),Qf.assignSimilarDate(i,n),t.timezoneOffset!==null&&i.assign("timezoneOffset",-t.instant.getTimezoneOffset())):(Qf.implySimilarTime(i,n),t.timezoneOffset!==null&&i.imply("timezoneOffset",-t.instant.getTimezoneOffset()),e.d?(i.assign("day",n.date()),i.assign("month",n.month()+1),i.assign("year",n.year())):(e.week&&i.imply("weekday",n.day()),i.imply("day",n.date()),e.month?(i.assign("month",n.month()+1),i.assign("year",n.year())):(i.imply("month",n.month()+1),e.year?i.assign("year",n.year()):i.imply("year",n.year())))),i}};jr.ParsingComponents=Ts;var Bo=class{constructor(t,e,n,i,s){this.reference=t,this.refDate=t.instant,this.index=e,this.text=n,this.start=i||new Ts(t),this.end=s}clone(){let t=new Bo(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}toString(){return`[ParsingResult {index: ${this.index}, text: '${this.text}', ...}]`}};jr.ParsingResult=Bo});var ie=x(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.AbstractParserWithWordBoundaryChecking=void 0;var Xf=class{constructor(){this.cachedInnerPattern=null,this.cachedPattern=null}patternLeftBoundary(){return"(\\W|^)"}pattern(t){let e=this.innerPattern(t);return e==this.cachedInnerPattern?this.cachedPattern:(this.cachedPattern=new RegExp(`${this.patternLeftBoundary()}${e.source}`,e.flags),this.cachedInnerPattern=e,this.cachedPattern)}extract(t,e){var n;let i=(n=e[1])!==null&&n!==void 0?n:"";e.index=e.index+i.length,e[0]=e[0].substring(i.length);for(let s=2;s<e.length;s++)e[s-1]=e[s];return this.innerExtract(t,e)}};Hu.AbstractParserWithWordBoundaryChecking=Xf});var hT=x(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});var ep=Ct(),AO=rt(),PO=ie(),NO=new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${ep.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),IO=new RegExp(`(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${ep.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),Jf=class extends PO.AbstractParserWithWordBoundaryChecking{innerPattern(t){return t.option.forwardDate?IO:NO}innerExtract(t,e){let n=ep.parseTimeUnits(e[1]);return AO.ParsingComponents.createRelativeFromReference(t.reference,n)}};tp.default=Jf});var _T=x(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var FO=Rt(),TT=Ct(),vT=Ct(),Gu=Ct(),LO=Ke(),UO=ie(),YO=new RegExp(`(?:on\\s{0,3})?(${Gu.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:to|\\-|\\\u2013|until|through|till)?\\s{0,3}(${Gu.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${LO.matchAnyPattern(TT.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s{0,3})(${vT.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),gT=1,yT=2,jO=3,bT=4,np=class extends UO.AbstractParserWithWordBoundaryChecking{innerPattern(){return YO}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=TT.MONTH_DICTIONARY[e[jO].toLowerCase()],s=Gu.parseOrdinalNumberPattern(e[gT]);if(s>31)return e.index=e.index+e[gT].length,null;if(n.start.assign("month",i),n.start.assign("day",s),e[bT]){let a=vT.parseYear(e[bT]);n.start.assign("year",a)}else{let a=FO.findYearClosestToRef(t.refDate,s,i);n.start.imply("year",a)}if(e[yT]){let a=Gu.parseOrdinalNumberPattern(e[yT]);n.end=n.start.clone(),n.end.assign("day",a)}return n}};rp.default=np});var ET=x(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var $O=Rt(),ST=Ct(),Bu=Ct(),DT=Ct(),WO=Ke(),qO=ie(),HO=new RegExp(`(${WO.matchAnyPattern(ST.MONTH_DICTIONARY)})(?:-|/|\\s*,?\\s*)(${Bu.ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${Bu.ORDINAL_NUMBER_PATTERN})\\s*)?(?:(?:-|/|\\s*,?\\s*)(${DT.YEAR_PATTERN}))?(?=\\W|$)(?!\\:\\d)`,"i"),GO=1,BO=2,wT=3,kT=4,ip=class extends qO.AbstractParserWithWordBoundaryChecking{innerPattern(){return HO}innerExtract(t,e){let n=ST.MONTH_DICTIONARY[e[GO].toLowerCase()],i=Bu.parseOrdinalNumberPattern(e[BO]);if(i>31)return null;let s=t.createParsingComponents({day:i,month:n});if(e[kT]){let l=DT.parseYear(e[kT]);s.assign("year",l)}else{let l=$O.findYearClosestToRef(t.refDate,i,n);s.imply("year",l)}if(!e[wT])return s;let a=Bu.parseOrdinalNumberPattern(e[wT]),o=t.createParsingResult(e.index,e[0]);return o.start=s,o.end=s.clone(),o.end.assign("day",a),o}};sp.default=ip});var RT=x(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var ap=Ct(),VO=Rt(),zO=Ke(),OT=Ct(),KO=ie(),QO=new RegExp(`((?:in)\\s*)?(${zO.matchAnyPattern(ap.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${OT.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),ZO=1,XO=2,xT=3,op=class extends KO.AbstractParserWithWordBoundaryChecking{innerPattern(){return QO}innerExtract(t,e){let n=e[XO].toLowerCase();if(e[0].length<=3&&!ap.FULL_MONTH_NAME_DICTIONARY[n])return null;let i=t.createParsingResult(e.index+(e[ZO]||"").length,e.index+e[0].length);i.start.imply("day",1);let s=ap.MONTH_DICTIONARY[n];if(i.start.assign("month",s),e[xT]){let a=OT.parseYear(e[xT]);i.start.assign("year",a)}else{let a=VO.findYearClosestToRef(t.refDate,1,s);i.start.imply("year",a)}return i}};lp.default=op});var AT=x(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});var MT=Ct(),JO=Ke(),e1=ie(),t1=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${JO.matchAnyPattern(MT.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),n1=1,r1=2,CT=3,i1=4,up=class extends e1.AbstractParserWithWordBoundaryChecking{innerPattern(){return t1}innerExtract(t,e){let n=e[CT]?parseInt(e[CT]):MT.MONTH_DICTIONARY[e[r1].toLowerCase()];if(n<1||n>12)return null;let i=parseInt(e[n1]);return{day:parseInt(e[i1]),month:n,year:i}}};cp.default=up});var PT=x(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});var s1=ie(),a1=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),o1=1,l1=2,dp=class extends s1.AbstractParserWithWordBoundaryChecking{innerPattern(){return a1}innerExtract(t,e){let n=parseInt(e[l1]),i=parseInt(e[o1]);return t.createParsingComponents().imply("day",1).assign("month",i).assign("year",n)}};fp.default=dp});var vs=x(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.AbstractTimeExpressionParser=void 0;var tn=ht();function u1(r,t,e,n){return new RegExp(`${r}${t}(\\d{1,4})(?:(?:\\.|:|\uFF1A)(\\d{1,2})(?:(?::|\uFF1A)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${e}`,n)}function c1(r,t){return new RegExp(`^(${r})(\\d{1,4})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:(?:\\.|\\:|\\\uFF1A)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}var NT=2,Ta=3,Vu=4,zu=5,Vo=6,pp=class{constructor(t=!1){this.cachedPrimaryPrefix=null,this.cachedPrimarySuffix=null,this.cachedPrimaryTimePattern=null,this.cachedFollowingPhase=null,this.cachedFollowingSuffix=null,this.cachedFollowingTimePatten=null,this.strictMode=t}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?=\\W|$)"}followingSuffix(){return"(?=\\W|$)"}pattern(t){return this.getPrimaryTimePatternThroughCache()}extract(t,e){let n=this.extractPrimaryTimeComponents(t,e);if(!n)return e.index+=e[0].length,null;let i=e.index+e[1].length,s=e[0].substring(e[1].length),a=t.createParsingResult(i,s,n);e.index+=e[0].length;let o=t.text.substring(e.index),u=this.getFollowingTimePatternThroughCache().exec(o);return s.match(/^\d{3,4}/)&&u&&u[0].match(/^\s*([+-])\s*\d{2,4}$/)?null:!u||u[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(t,u,a),a.end&&(a.text+=u[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(t,e,n=!1){let i=t.createParsingComponents(),s=0,a=null,o=parseInt(e[NT]);if(o>100){if(this.strictMode||e[Ta]!=null)return null;s=o%100,o=Math.floor(o/100)}if(o>24)return null;if(e[Ta]!=null){if(e[Ta].length==1&&!e[Vo])return null;s=parseInt(e[Ta])}if(s>=60)return null;if(o>12&&(a=tn.Meridiem.PM),e[Vo]!=null){if(o>12)return null;let l=e[Vo][0].toLowerCase();l=="a"&&(a=tn.Meridiem.AM,o==12&&(o=0)),l=="p"&&(a=tn.Meridiem.PM,o!=12&&(o+=12))}if(i.assign("hour",o),i.assign("minute",s),a!==null?i.assign("meridiem",a):o<12?i.imply("meridiem",tn.Meridiem.AM):i.imply("meridiem",tn.Meridiem.PM),e[zu]!=null){let l=parseInt(e[zu].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(e[Vu]!=null){let l=parseInt(e[Vu]);if(l>=60)return null;i.assign("second",l)}return i}extractFollowingTimeComponents(t,e,n){let i=t.createParsingComponents();if(e[zu]!=null){let l=parseInt(e[zu].substring(0,3));if(l>=1e3)return null;i.assign("millisecond",l)}if(e[Vu]!=null){let l=parseInt(e[Vu]);if(l>=60)return null;i.assign("second",l)}let s=parseInt(e[NT]),a=0,o=-1;if(e[Ta]!=null?a=parseInt(e[Ta]):s>100&&(a=s%100,s=Math.floor(s/100)),a>=60||s>24)return null;if(s>=12&&(o=tn.Meridiem.PM),e[Vo]!=null){if(s>12)return null;let l=e[Vo][0].toLowerCase();l=="a"&&(o=tn.Meridiem.AM,s==12&&(s=0,i.isCertain("day")||i.imply("day",i.get("day")+1))),l=="p"&&(o=tn.Meridiem.PM,s!=12&&(s+=12)),n.start.isCertain("meridiem")||(o==tn.Meridiem.AM?(n.start.imply("meridiem",tn.Meridiem.AM),n.start.get("hour")==12&&n.start.assign("hour",0)):(n.start.imply("meridiem",tn.Meridiem.PM),n.start.get("hour")!=12&&n.start.assign("hour",n.start.get("hour")+12)))}return i.assign("hour",s),i.assign("minute",a),o>=0?i.assign("meridiem",o):n.start.isCertain("meridiem")&&n.start.get("hour")>12?n.start.get("hour")-12>s?i.imply("meridiem",tn.Meridiem.AM):s<=12&&(i.assign("hour",s+12),i.assign("meridiem",tn.Meridiem.PM)):s>12?i.imply("meridiem",tn.Meridiem.PM):s<=12&&i.imply("meridiem",tn.Meridiem.AM),i.date().getTime()<n.start.date().getTime()&&i.imply("day",i.get("day")+1),i}checkAndReturnWithoutFollowingPattern(t){if(t.text.match(/^\d$/)||t.text.match(/^\d\d\d+$/)||t.text.match(/\d[apAP]$/))return null;let e=t.text.match(/[^\d:.](\d[\d.]+)$/);if(e){let n=e[1];if(this.strictMode||n.includes(".")&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24)return null}return t}checkAndReturnWithFollowingPattern(t){if(t.text.match(/^\d+-\d+$/))return null;let e=t.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(e){if(this.strictMode)return null;let n=e[1],i=e[2];if(i.includes(".")&&!i.match(/\d(\.\d{2})+$/))return null;let s=parseInt(i),a=parseInt(n);if(s>24||a>24)return null}return t}getPrimaryTimePatternThroughCache(){let t=this.primaryPrefix(),e=this.primarySuffix();return this.cachedPrimaryPrefix===t&&this.cachedPrimarySuffix===e?this.cachedPrimaryTimePattern:(this.cachedPrimaryTimePattern=u1(this.primaryPatternLeftBoundary(),t,e,this.patternFlags()),this.cachedPrimaryPrefix=t,this.cachedPrimarySuffix=e,this.cachedPrimaryTimePattern)}getFollowingTimePatternThroughCache(){let t=this.followingPhase(),e=this.followingSuffix();return this.cachedFollowingPhase===t&&this.cachedFollowingSuffix===e?this.cachedFollowingTimePatten:(this.cachedFollowingTimePatten=c1(t,e),this.cachedFollowingPhase=t,this.cachedFollowingSuffix=e,this.cachedFollowingTimePatten)}};Ku.AbstractTimeExpressionParser=pp});var IT=x(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var Qu=ht(),d1=vs(),mp=class extends d1.AbstractTimeExpressionParser{constructor(t){super(t)}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|to|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(t,e){let n=super.extractPrimaryTimeComponents(t,e);if(n){if(e[0].endsWith("night")){let i=n.get("hour");i>=6&&i<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",Qu.Meridiem.PM)):i<6&&n.assign("meridiem",Qu.Meridiem.AM)}if(e[0].endsWith("afternoon")){n.assign("meridiem",Qu.Meridiem.PM);let i=n.get("hour");i>=0&&i<=6&&n.assign("hour",n.get("hour")+12)}e[0].endsWith("morning")&&(n.assign("meridiem",Qu.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};hp.default=mp});var Hn=x(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.addImpliedTimeUnits=va.reverseTimeUnits=void 0;function f1(r){let t={};for(let e in r)t[e]=-r[e];return t}va.reverseTimeUnits=f1;function p1(r,t){let e=r.clone(),n=r.dayjs();for(let i in t)n=n.add(t[i],i);return("day"in t||"d"in t||"week"in t||"month"in t||"year"in t)&&(e.imply("day",n.date()),e.imply("month",n.month()+1),e.imply("year",n.year())),("second"in t||"minute"in t||"hour"in t)&&(e.imply("second",n.second()),e.imply("minute",n.minute()),e.imply("hour",n.hour())),e}va.addImpliedTimeUnits=p1});var FT=x(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});var yp=Ct(),m1=rt(),h1=ie(),g1=Hn(),y1=new RegExp(`(${yp.TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=(?:\\W|$))`,"i"),b1=new RegExp(`(${yp.TIME_UNITS_PATTERN})\\s{0,5}ago(?=(?:\\W|$))`,"i"),gp=class extends h1.AbstractParserWithWordBoundaryChecking{constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?b1:y1}innerExtract(t,e){let n=yp.parseTimeUnits(e[1]),i=g1.reverseTimeUnits(n);return m1.ParsingComponents.createRelativeFromReference(t.reference,i)}};bp.default=gp});var LT=x(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});var vp=Ct(),T1=rt(),v1=ie(),_1=new RegExp(`(${vp.TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),w1=new RegExp("("+vp.TIME_UNITS_PATTERN+")(later|from now)(?=(?:\\W|$))","i"),k1=1,Tp=class extends v1.AbstractParserWithWordBoundaryChecking{constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?w1:_1}innerExtract(t,e){let n=vp.parseTimeUnits(e[k1]);return T1.ParsingComponents.createRelativeFromReference(t.reference,n)}};_p.default=Tp});var wa=x(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.MergingRefiner=_a.Filter=void 0;var wp=class{refine(t,e){return e.filter(n=>this.isValid(t,n))}};_a.Filter=wp;var kp=class{refine(t,e){if(e.length<2)return e;let n=[],i=e[0],s=null;for(let a=1;a<e.length;a++){s=e[a];let o=t.text.substring(i.index+i.text.length,s.index);if(!this.shouldMergeResults(o,i,s,t))n.push(i),i=s;else{let l=i,u=s,c=this.mergeResults(o,l,u,t);t.debug(()=>{console.log(`${this.constructor.name} merged ${l} and ${u} into ${c}`)}),i=c}}return i!=null&&n.push(i),n}};_a.MergingRefiner=kp});var $r=x(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var S1=wa(),Sp=class extends S1.MergingRefiner{shouldMergeResults(t,e,n){return!e.end&&!n.end&&t.match(this.patternBetween())!=null}mergeResults(t,e,n){if(!e.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(s=>{e.start.isCertain(s)||e.start.assign(s,n.start.get(s))}),e.start.getCertainComponents().forEach(s=>{n.start.isCertain(s)||n.start.assign(s,e.start.get(s))})),e.start.date().getTime()>n.start.date().getTime()){let s=e.start.dayjs(),a=n.start.dayjs();e.start.isOnlyWeekdayComponent()&&s.add(-7,"days").isBefore(a)?(s=s.add(-7,"days"),e.start.imply("day",s.date()),e.start.imply("month",s.month()+1),e.start.imply("year",s.year())):n.start.isOnlyWeekdayComponent()&&a.add(7,"days").isAfter(s)?(a=a.add(7,"days"),n.start.imply("day",a.date()),n.start.imply("month",a.month()+1),n.start.imply("year",a.year())):[n,e]=[e,n]}let i=e.clone();return i.start=e.start,i.end=n.start,i.index=Math.min(e.index,n.index),e.index<n.index?i.text=e.text+t+n.text:i.text=n.text+t+e.text,i}};Dp.default=Sp});var UT=x(zo=>{"use strict";var D1=zo&&zo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zo,"__esModule",{value:!0});var E1=D1($r()),Ep=class extends E1.default{patternBetween(){return/^\s*(to|-)\s*$/i}};zo.default=Ep});var YT=x(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.mergeDateTimeComponent=ka.mergeDateTimeResult=void 0;var x1=ht();function O1(r,t){let e=r.clone(),n=r.start,i=t.start;if(e.start=xp(n,i),r.end!=null||t.end!=null){let s=r.end==null?r.start:r.end,a=t.end==null?t.start:t.end,o=xp(s,a);r.end==null&&o.date().getTime()<e.start.date().getTime()&&(o.isCertain("day")?o.assign("day",o.get("day")+1):o.imply("day",o.get("day")+1)),e.end=o}return e}ka.mergeDateTimeResult=O1;function xp(r,t){let e=r.clone();return t.isCertain("hour")?(e.assign("hour",t.get("hour")),e.assign("minute",t.get("minute")),t.isCertain("second")?(e.assign("second",t.get("second")),t.isCertain("millisecond")?e.assign("millisecond",t.get("millisecond")):e.imply("millisecond",t.get("millisecond"))):(e.imply("second",t.get("second")),e.imply("millisecond",t.get("millisecond")))):(e.imply("hour",t.get("hour")),e.imply("minute",t.get("minute")),e.imply("second",t.get("second")),e.imply("millisecond",t.get("millisecond"))),t.isCertain("timezoneOffset")&&e.assign("timezoneOffset",t.get("timezoneOffset")),t.isCertain("meridiem")?e.assign("meridiem",t.get("meridiem")):t.get("meridiem")!=null&&e.get("meridiem")==null&&e.imply("meridiem",t.get("meridiem")),e.get("meridiem")==x1.Meridiem.PM&&e.get("hour")<12&&(t.isCertain("hour")?e.assign("hour",e.get("hour")+12):e.imply("hour",e.get("hour")+12)),e}ka.mergeDateTimeComponent=xp});var ai=x(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var R1=wa(),jT=YT(),Op=class extends R1.MergingRefiner{shouldMergeResults(t,e,n){return(e.start.isOnlyDate()&&n.start.isOnlyTime()||n.start.isOnlyDate()&&e.start.isOnlyTime())&&t.match(this.patternBetween())!=null}mergeResults(t,e,n){let i=e.start.isOnlyDate()?jT.mergeDateTimeResult(e,n):jT.mergeDateTimeResult(n,e);return i.index=e.index,i.text=e.text+t+n.text,i}};Rp.default=Op});var $T=x(Ko=>{"use strict";var C1=Ko&&Ko.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ko,"__esModule",{value:!0});var M1=C1(ai()),Cp=class extends M1.default{patternBetween(){return new RegExp("^\\s*(T|at|after|before|on|of|,|-)?\\s*$")}};Ko.default=Cp});var WT=x(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var A1=new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i"),P1={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:60,CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:-300,FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:240,MST:-420,MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:-480,PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360},Mp=class{constructor(t){this.timezone=Object.assign(Object.assign({},P1),t)}refine(t,e){var n;let i=(n=t.option.timezones)!==null&&n!==void 0?n:{};return e.forEach(s=>{var a,o;let l=t.text.substring(s.index+s.text.length),u=A1.exec(l);if(!u)return;let c=u[1].toUpperCase(),d=(o=(a=i[c])!==null&&a!==void 0?a:this.timezone[c])!==null&&o!==void 0?o:null;if(d===null)return;t.debug(()=>{console.log(`Extracting timezone: '${c}' into: ${d} for: ${s.start}`)});let f=s.start.get("timezoneOffset");f!==null&&d!=f&&(s.start.isCertain("timezoneOffset")||c!=u[1])||s.start.isOnlyDate()&&c!=u[1]||(s.text+=u[0],s.start.isCertain("timezoneOffset")||s.start.assign("timezoneOffset",d),s.end!=null&&!s.end.isCertain("timezoneOffset")&&s.end.assign("timezoneOffset",d))}),e}};Ap.default=Mp});var Zu=x(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var N1=new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),I1=1,F1=2,L1=3,Pp=class{refine(t,e){return e.forEach(function(n){if(n.start.isCertain("timezoneOffset"))return;let i=t.text.substring(n.index+n.text.length),s=N1.exec(i);if(!s)return;t.debug(()=>{console.log(`Extracting timezone: '${s[0]}' into : ${n}`)});let a=parseInt(s[F1]),o=parseInt(s[L1]||"0"),l=a*60+o;l>14*60||(s[I1]==="-"&&(l=-l),n.end!=null&&n.end.assign("timezoneOffset",l),n.start.assign("timezoneOffset",l),n.text+=s[0])}),e}};Np.default=Pp});var qT=x(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var Ip=class{refine(t,e){if(e.length<2)return e;let n=[],i=e[0];for(let s=1;s<e.length;s++){let a=e[s];a.index<i.index+i.text.length?a.text.length>i.text.length&&(i=a):(n.push(i),i=a)}return i!=null&&n.push(i),n}};Fp.default=Ip});var HT=x(Qo=>{"use strict";var U1=Qo&&Qo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qo,"__esModule",{value:!0});var Y1=U1(Ue()),Lp=class{refine(t,e){return t.option.forwardDate&&e.forEach(function(n){let i=Y1.default(t.refDate);if(n.start.isOnlyDayMonthComponent()&&i.isAfter(n.start.dayjs()))for(let s=0;s<3&&i.isAfter(n.start.dayjs());s++)n.start.imply("year",n.start.get("year")+1),t.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.start})`)}),n.end&&!n.end.isCertain("year")&&(n.end.imply("year",n.end.get("year")+1),t.debug(()=>{console.log(`Forward yearly adjusted for ${n} (${n.end})`)}));n.start.isOnlyWeekdayComponent()&&i.isAfter(n.start.dayjs())&&(i.day()>=n.start.get("weekday")?i=i.day(n.start.get("weekday")+7):i=i.day(n.start.get("weekday")),n.start.imply("day",i.date()),n.start.imply("month",i.month()+1),n.start.imply("year",i.year()),t.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.start})`)}),n.end&&n.end.isOnlyWeekdayComponent()&&(i.day()>n.end.get("weekday")?i=i.day(n.end.get("weekday")+7):i=i.day(n.end.get("weekday")),n.end.imply("day",i.date()),n.end.imply("month",i.month()+1),n.end.imply("year",i.year()),t.debug(()=>{console.log(`Forward weekly adjusted for ${n} (${n.end})`)})))}),e}};Qo.default=Lp});var GT=x(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var j1=wa(),Up=class extends j1.Filter{constructor(t){super(),this.strictMode=t}isValid(t,e){return e.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(t.debug(()=>{console.log(`Removing unlikely result '${e.text}'`)}),!1):e.start.isValidDate()?e.end&&!e.end.isValidDate()?(t.debug(()=>{console.log(`Removing invalid result: ${e} (${e.end})`)}),!1):this.strictMode?this.isStrictModeValid(t,e):!0:(t.debug(()=>{console.log(`Removing invalid result: ${e} (${e.start})`)}),!1)}isStrictModeValid(t,e){return e.start.isOnlyWeekdayComponent()?(t.debug(()=>{console.log(`(Strict) Removing weekday only component: ${e} (${e.end})`)}),!1):e.start.isOnlyTime()&&(!e.start.isCertain("hour")||!e.start.isCertain("minute"))?(t.debug(()=>{console.log(`(Strict) Removing uncertain time component: ${e} (${e.end})`)}),!1):!0}};Yp.default=Up});var Wp=x($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});var $1=ie(),W1=new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(?:Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),q1=1,H1=2,G1=3,BT=4,B1=5,VT=6,zT=7,KT=8,QT=9,jp=class extends $1.AbstractParserWithWordBoundaryChecking{innerPattern(){return W1}innerExtract(t,e){let n={};if(n.year=parseInt(e[q1]),n.month=parseInt(e[H1]),n.day=parseInt(e[G1]),e[BT]!=null)if(n.hour=parseInt(e[BT]),n.minute=parseInt(e[B1]),e[VT]!=null&&(n.second=parseInt(e[VT])),e[zT]!=null&&(n.millisecond=parseInt(e[zT])),e[KT]==null)n.timezoneOffset=0;else{let i=parseInt(e[KT]),s=0;e[QT]!=null&&(s=parseInt(e[QT]));let a=i*60;a<0?a-=s:a+=s,n.timezoneOffset=a}return n}};$p.default=jp});var ZT=x(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});var V1=wa(),qp=class extends V1.MergingRefiner{mergeResults(t,e,n){let i=n.clone();return i.index=e.index,i.text=e.text+t+i.text,i.start.assign("weekday",e.start.get("weekday")),i.end&&i.end.assign("weekday",e.start.get("weekday")),i}shouldMergeResults(t,e,n){return e.start.isOnlyWeekdayComponent()&&!e.start.isCertain("hour")&&n.start.isCertain("day")&&t.match(/^,?\s*$/)!=null}};Hp.default=qp});var oi=x(Sa=>{"use strict";var _s=Sa&&Sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.includeCommonConfiguration=void 0;var z1=_s(WT()),K1=_s(Zu()),XT=_s(qT()),Q1=_s(HT()),Z1=_s(GT()),X1=_s(Wp()),J1=_s(ZT());function e0(r,t=!1){return r.parsers.unshift(new X1.default),r.refiners.unshift(new J1.default),r.refiners.unshift(new z1.default),r.refiners.unshift(new K1.default),r.refiners.unshift(new XT.default),r.refiners.push(new XT.default),r.refiners.push(new Q1.default),r.refiners.push(new Z1.default(t)),r}Sa.includeCommonConfiguration=e0});var ui=x(Be=>{"use strict";var t0=Be&&Be.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Be,"__esModule",{value:!0});Be.noon=Be.morning=Be.midnight=Be.yesterdayEvening=Be.evening=Be.lastNight=Be.tonight=Be.theDayAfter=Be.tomorrow=Be.theDayBefore=Be.yesterday=Be.today=Be.now=void 0;var Wr=rt(),Da=t0(Ue()),li=qn(),Zo=ht();function n0(r){let t=Da.default(r.instant),e=new Wr.ParsingComponents(r,{});return li.assignSimilarDate(e,t),li.assignSimilarTime(e,t),r.timezoneOffset!==null&&e.assign("timezoneOffset",t.utcOffset()),e}Be.now=n0;function r0(r){let t=Da.default(r.instant),e=new Wr.ParsingComponents(r,{});return li.assignSimilarDate(e,t),li.implySimilarTime(e,t),e}Be.today=r0;function i0(r){return JT(r,1)}Be.yesterday=i0;function JT(r,t){return Gp(r,-t)}Be.theDayBefore=JT;function s0(r){return Gp(r,1)}Be.tomorrow=s0;function Gp(r,t){let e=Da.default(r.instant),n=new Wr.ParsingComponents(r,{});return e=e.add(t,"day"),li.assignSimilarDate(n,e),li.implySimilarTime(n,e),n}Be.theDayAfter=Gp;function a0(r,t=22){let e=Da.default(r.instant),n=new Wr.ParsingComponents(r,{});return n.imply("hour",t),n.imply("meridiem",Zo.Meridiem.PM),li.assignSimilarDate(n,e),n}Be.tonight=a0;function o0(r,t=0){let e=Da.default(r.instant),n=new Wr.ParsingComponents(r,{});return e.hour()<6&&(e=e.add(-1,"day")),li.assignSimilarDate(n,e),n.imply("hour",t),n}Be.lastNight=o0;function l0(r,t=20){let e=new Wr.ParsingComponents(r,{});return e.imply("meridiem",Zo.Meridiem.PM),e.imply("hour",t),e}Be.evening=l0;function u0(r,t=20){let e=Da.default(r.instant),n=new Wr.ParsingComponents(r,{});return e=e.add(-1,"day"),li.assignSimilarDate(n,e),n.imply("hour",t),n.imply("meridiem",Zo.Meridiem.PM),n}Be.yesterdayEvening=u0;function c0(r){let t=new Wr.ParsingComponents(r,{});return t.imply("hour",0),t.imply("minute",0),t.imply("second",0),t}Be.midnight=c0;function d0(r,t=6){let e=new Wr.ParsingComponents(r,{});return e.imply("meridiem",Zo.Meridiem.AM),e.imply("hour",t),e}Be.morning=d0;function f0(r){let t=new Wr.ParsingComponents(r,{});return t.imply("meridiem",Zo.Meridiem.AM),t.imply("hour",12),t}Be.noon=f0});var ev=x(yr=>{"use strict";var p0=yr&&yr.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),m0=yr&&yr.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),h0=yr&&yr.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&p0(t,r,e);return m0(t,r),t},g0=yr&&yr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yr,"__esModule",{value:!0});var y0=g0(Ue()),b0=ie(),T0=qn(),Xo=h0(ui()),v0=/(now|today|tonight|tomorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,Bp=class extends b0.AbstractParserWithWordBoundaryChecking{innerPattern(t){return v0}innerExtract(t,e){let n=y0.default(t.refDate),i=e[0].toLowerCase(),s=t.createParsingComponents();switch(i){case"now":return Xo.now(t.reference);case"today":return Xo.today(t.reference);case"yesterday":return Xo.yesterday(t.reference);case"tomorrow":case"tmr":case"tmrw":return Xo.tomorrow(t.reference);case"tonight":return Xo.tonight(t.reference);default:i.match(/last\s*night/)&&(n.hour()>6&&(n=n.add(-1,"day")),T0.assignSimilarDate(s,n),s.imply("hour",0));break}return s}};yr.default=Bp});var tv=x(Jo=>{"use strict";var _0=Jo&&Jo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jo,"__esModule",{value:!0});var Xu=ht(),w0=ie(),k0=_0(Ue()),S0=qn(),D0=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|noon)(?=\W|$)/i,Vp=class extends w0.AbstractParserWithWordBoundaryChecking{innerPattern(){return D0}innerExtract(t,e){let n=k0.default(t.refDate),i=t.createParsingComponents();switch(e[1].toLowerCase()){case"afternoon":i.imply("meridiem",Xu.Meridiem.PM),i.imply("hour",15);break;case"evening":case"night":i.imply("meridiem",Xu.Meridiem.PM),i.imply("hour",20);break;case"midnight":S0.assignTheNextDay(i,n),i.imply("hour",0),i.imply("minute",0),i.imply("second",0);break;case"morning":i.imply("meridiem",Xu.Meridiem.AM),i.imply("hour",6);break;case"noon":i.imply("meridiem",Xu.Meridiem.AM),i.imply("hour",12);break}return i}};Jo.default=Vp});var ws=x(Ui=>{"use strict";var E0=Ui&&Ui.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.toDayJSClosestWeekday=Ui.toDayJSWeekday=void 0;var nv=E0(Ue());function x0(r,t,e){if(!e)return rv(r,t);let n=nv.default(r);switch(e){case"this":n=n.day(t);break;case"next":n=n.day(t+7);break;case"last":n=n.day(t-7);break}return n}Ui.toDayJSWeekday=x0;function rv(r,t){let e=nv.default(r),n=e.day();return Math.abs(t-7-n)<Math.abs(t-n)?e=e.day(t-7):Math.abs(t+7-n)<Math.abs(t-n)?e=e.day(t+7):e=e.day(t),e}Ui.toDayJSClosestWeekday=rv});var sv=x(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var iv=Ct(),O0=Ke(),R0=ie(),C0=ws(),M0=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${O0.matchAnyPattern(iv.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),A0=1,P0=2,N0=3,zp=class extends R0.AbstractParserWithWordBoundaryChecking{innerPattern(){return M0}innerExtract(t,e){let n=e[P0].toLowerCase(),i=iv.WEEKDAY_DICTIONARY[n],s=e[A0],a=e[N0],o=s||a;o=o||"",o=o.toLowerCase();let l=null;o=="last"||o=="past"?l="last":o=="next"?l="next":o=="this"&&(l="this");let u=C0.toDayJSWeekday(t.refDate,i,l);return t.createParsingComponents().assign("weekday",i).imply("day",u.date()).imply("month",u.month()+1).imply("year",u.year())}};Kp.default=zp});var lv=x(el=>{"use strict";var I0=el&&el.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(el,"__esModule",{value:!0});var ov=Ct(),av=rt(),F0=I0(Ue()),L0=ie(),U0=Ke(),Y0=new RegExp(`(this|last|past|next|after\\s*this)\\s*(${U0.matchAnyPattern(ov.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),j0=1,$0=2,Qp=class extends L0.AbstractParserWithWordBoundaryChecking{innerPattern(){return Y0}innerExtract(t,e){let n=e[j0].toLowerCase(),i=e[$0].toLowerCase(),s=ov.TIME_UNIT_DICTIONARY[i];if(n=="next"||n.startsWith("after")){let l={};return l[s]=1,av.ParsingComponents.createRelativeFromReference(t.reference,l)}if(n=="last"||n=="past"){let l={};return l[s]=-1,av.ParsingComponents.createRelativeFromReference(t.reference,l)}let a=t.createParsingComponents(),o=F0.default(t.reference.instant);return i.match(/week/i)?(o=o.add(-o.get("d"),"d"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.imply("year",o.year())):i.match(/month/i)?(o=o.add(-o.date()+1,"d"),a.imply("day",o.date()),a.assign("year",o.year()),a.assign("month",o.month()+1)):i.match(/year/i)&&(o=o.add(-o.date()+1,"d"),o=o.add(-o.month(),"month"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.assign("year",o.year())),a}};el.default=Qp});var br=x(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.ParsingContext=Oa.Chrono=void 0;var Ea=rt(),W0=Zp(),xa=class{constructor(t){t=t||W0.createCasualConfiguration(),this.parsers=[...t.parsers],this.refiners=[...t.refiners]}clone(){return new xa({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(t,e,n){let i=this.parse(t,e,n);return i.length>0?i[0].start.date():null}parse(t,e,n){let i=new Ju(t,e,n),s=[];return this.parsers.forEach(a=>{let o=xa.executeParser(i,a);s=s.concat(o)}),s.sort((a,o)=>a.index-o.index),this.refiners.forEach(function(a){s=a.refine(i,s)}),s}static executeParser(t,e){let n=[],i=e.pattern(t),s=t.text,a=t.text,o=i.exec(a);for(;o;){let l=o.index+s.length-a.length;o.index=l;let u=e.extract(t,o);if(!u){a=s.substring(o.index+1),o=i.exec(a);continue}let c=null;u instanceof Ea.ParsingResult?c=u:u instanceof Ea.ParsingComponents?(c=t.createParsingResult(o.index,o[0]),c.start=u):c=t.createParsingResult(o.index,o[0],u),t.debug(()=>console.log(`${e.constructor.name} extracted result ${c}`)),n.push(c),a=s.substring(l+c.text.length),o=i.exec(a)}return n}};Oa.Chrono=xa;var Ju=class{constructor(t,e,n){this.text=t,this.reference=new Ea.ReferenceWithTimezone(e),this.option=n!=null?n:{},this.refDate=this.reference.instant}createParsingComponents(t){return t instanceof Ea.ParsingComponents?t:new Ea.ParsingComponents(this.reference,t)}createParsingResult(t,e,n,i){let s=typeof e=="string"?e:this.text.substring(t,e),a=n?this.createParsingComponents(n):null,o=i?this.createParsingComponents(i):null;return new Ea.ParsingResult(this.reference,t,s,a,o)}debug(t){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(t):this.option.debug.debug(t))}};Oa.ParsingContext=Ju});var ks=x(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var uv=Rt(),q0=new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),ec=1,cv=5,dv=2,fv=3,Xp=4,Jp=class{constructor(t){this.groupNumberMonth=t?fv:dv,this.groupNumberDay=t?dv:fv}pattern(){return q0}extract(t,e){if(e[ec]=="/"||e[cv]=="/"){e.index+=e[0].length;return}let n=e.index+e[ec].length,i=e[0].substr(e[ec].length,e[0].length-e[ec].length-e[cv].length);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!e[Xp]&&e[0].indexOf("/")<0)return;let s=t.createParsingResult(n,i),a=parseInt(e[this.groupNumberMonth]),o=parseInt(e[this.groupNumberDay]);if((a<1||a>12)&&a>12)if(o>=1&&o<=12&&a<=31)[o,a]=[a,o];else return null;if(o<1||o>31)return null;if(s.start.assign("day",o),s.start.assign("month",a),e[Xp]){let l=parseInt(e[Xp]),u=uv.findMostLikelyADYear(l);s.start.assign("year",u)}else{let l=uv.findYearClosestToRef(t.refDate,o,a);s.start.imply("year",l)}return s}};em.default=Jp});var mv=x(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});var pv=Ct(),H0=rt(),G0=ie(),B0=Hn(),V0=new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${pv.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),tm=class extends G0.AbstractParserWithWordBoundaryChecking{innerPattern(){return V0}innerExtract(t,e){let n=e[1].toLowerCase(),i=pv.parseTimeUnits(e[2]);switch(n){case"last":case"past":case"-":i=B0.reverseTimeUnits(i);break}return H0.ParsingComponents.createRelativeFromReference(t.reference,i)}};nm.default=tm});var gv=x(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var z0=wa(),rm=rt(),K0=Ct(),Q0=Hn();function hv(r){return r.text.match(/\s+(before|from)$/i)!=null}function Z0(r){return r.text.match(/\s+(after|since)$/i)!=null}var im=class extends z0.MergingRefiner{patternBetween(){return/^\s*$/i}shouldMergeResults(t,e,n){return!t.match(this.patternBetween())||!hv(e)&&!Z0(e)?!1:!!n.start.get("day")&&!!n.start.get("month")&&!!n.start.get("year")}mergeResults(t,e,n){let i=K0.parseTimeUnits(e.text);hv(e)&&(i=Q0.reverseTimeUnits(i));let s=rm.ParsingComponents.createRelativeFromReference(new rm.ReferenceWithTimezone(n.start.date()),i);return new rm.ParsingResult(n.reference,e.index,`${e.text}${t}${n.text}`,s)}};sm.default=im});var Zp=x(ut=>{"use strict";var bt=ut&&ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ut,"__esModule",{value:!0});ut.createConfiguration=ut.createCasualConfiguration=ut.parseDate=ut.parse=ut.GB=ut.strict=ut.casual=void 0;var X0=bt(hT()),J0=bt(_T()),eR=bt(ET()),tR=bt(RT()),nR=bt(AT()),rR=bt(PT()),iR=bt(IT()),sR=bt(FT()),aR=bt(LT()),oR=bt(UT()),lR=bt($T()),uR=oi(),cR=bt(ev()),dR=bt(tv()),fR=bt(sv()),pR=bt(lv()),am=br(),mR=bt(ks()),hR=bt(mv()),gR=bt(gv());ut.casual=new am.Chrono(yv(!1));ut.strict=new am.Chrono(tc(!0,!1));ut.GB=new am.Chrono(tc(!1,!0));function yR(r,t,e){return ut.casual.parse(r,t,e)}ut.parse=yR;function bR(r,t,e){return ut.casual.parseDate(r,t,e)}ut.parseDate=bR;function yv(r=!1){let t=tc(!1,r);return t.parsers.unshift(new cR.default),t.parsers.unshift(new dR.default),t.parsers.unshift(new tR.default),t.parsers.unshift(new pR.default),t.parsers.unshift(new hR.default),t}ut.createCasualConfiguration=yv;function tc(r=!0,t=!1){return uR.includeCommonConfiguration({parsers:[new mR.default(t),new X0.default,new J0.default,new eR.default,new fR.default,new nR.default,new rR.default,new iR.default(r),new sR.default(r),new aR.default(r)],refiners:[new gR.default,new lR.default,new oR.default]},r)}ut.createConfiguration=tc});var bv=x(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var TR=vs(),om=class extends TR.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:um|von)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|bis)\\s*"}extractPrimaryTimeComponents(t,e){return e[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(t,e)}};lm.default=om});var tl=x(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.parseTimeUnits=Qe.TIME_UNITS_PATTERN=Qe.parseYear=Qe.YEAR_PATTERN=Qe.parseNumberPattern=Qe.NUMBER_PATTERN=Qe.TIME_UNIT_DICTIONARY=Qe.INTEGER_WORD_DICTIONARY=Qe.MONTH_DICTIONARY=Qe.WEEKDAY_DICTIONARY=void 0;var um=Ke(),vR=Rt();Qe.WEEKDAY_DICTIONARY={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6};Qe.MONTH_DICTIONARY={januar:1,j\u00E4nner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,m\u00E4rz:3,maerz:3,m\u00E4r:3,"m\xE4r.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12};Qe.INTEGER_WORD_DICTIONARY={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,f\u00FCnf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zw\u00F6lf:12,zwoelf:12};Qe.TIME_UNIT_DICTIONARY={sek:"second",sekunde:"second",sekunden:"second",min:"minute",minute:"minute",minuten:"minute",h:"hour",std:"hour",stunde:"hour",stunden:"hour",tag:"d",tage:"d",tagen:"d",woche:"week",wochen:"week",monat:"month",monate:"month",monaten:"month",monats:"month",quartal:"quarter",quartals:"quarter",quartale:"quarter",quartalen:"quarter",a:"year",j:"year",jr:"year",jahr:"year",jahre:"year",jahren:"year",jahres:"year"};Qe.NUMBER_PATTERN=`(?:${um.matchAnyPattern(Qe.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s*an?)?|an?\\b(?:\\s*few)?|few|several|a?\\s*couple\\s*(?:of)?)`;function vv(r){let t=r.toLowerCase();return Qe.INTEGER_WORD_DICTIONARY[t]!==void 0?Qe.INTEGER_WORD_DICTIONARY[t]:t==="a"||t==="an"?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t)}Qe.parseNumberPattern=vv;Qe.YEAR_PATTERN="(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)";function _R(r){if(/v/i.test(r))return-parseInt(r.replace(/[^0-9]+/gi,""));if(/n/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));if(/z/i.test(r))return parseInt(r.replace(/[^0-9]+/gi,""));let t=parseInt(r);return vR.findMostLikelyADYear(t)}Qe.parseYear=_R;var _v=`(${Qe.NUMBER_PATTERN})\\s{0,5}(${um.matchAnyPattern(Qe.TIME_UNIT_DICTIONARY)})\\s{0,5}`,Tv=new RegExp(_v,"i");Qe.TIME_UNITS_PATTERN=um.repeatedTimeunitPattern("",_v);function wR(r){let t={},e=r,n=Tv.exec(e);for(;n;)kR(t,n),e=e.substring(n[0].length),n=Tv.exec(e);return t}Qe.parseTimeUnits=wR;function kR(r,t){let e=vv(t[1]),n=Qe.TIME_UNIT_DICTIONARY[t[2].toLowerCase()];r[n]=e}});var kv=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var wv=tl(),SR=Ke(),DR=ie(),ER=ws(),xR=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:\xE4|ae)chste[mn])\\s*)?(${SR.matchAnyPattern(wv.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(diese|letzte|n(?:\xE4|ae)chste)\\s*woche)?(?=\\W|$)`,"i"),OR=1,RR=3,CR=2,cm=class extends DR.AbstractParserWithWordBoundaryChecking{innerPattern(){return xR}innerExtract(t,e){let n=e[CR].toLowerCase(),i=wv.WEEKDAY_DICTIONARY[n],s=e[OR],a=e[RR],o=s||a;o=o||"",o=o.toLowerCase();let l=null;o.match(/letzte/)?l="last":o.match(/chste/)?l="next":o.match(/diese/)&&(l="this");let u=ER.toDayJSWeekday(t.refDate,i,l);return t.createParsingComponents().assign("weekday",i).imply("day",u.date()).imply("month",u.month()+1).imply("year",u.year())}};dm.default=cm});var xv=x(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var Yi=ht(),MR=new RegExp("(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),AR=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)","i"),PR=2,Sv=3,Dv=4,Ev=5,Ra=class{pattern(t){return MR}extract(t,e){let n=t.createParsingResult(e.index+e[1].length,e[0].substring(e[1].length));if(n.text.match(/^\d{4}$/)||(n.start=Ra.extractTimeComponent(n.start.clone(),e),!n.start))return e.index+=e[0].length,null;let i=t.text.substring(e.index+e[0].length),s=AR.exec(i);return s&&(n.end=Ra.extractTimeComponent(n.start.clone(),s),n.end&&(n.text+=s[0])),n}static extractTimeComponent(t,e){let n=0,i=0,s=null;if(n=parseInt(e[PR]),e[Sv]!=null&&(i=parseInt(e[Sv])),i>=60||n>24)return null;if(n>=12&&(s=Yi.Meridiem.PM),e[Ev]!=null){if(n>12)return null;let a=e[Ev].toLowerCase();a.match(/morgen|vormittag/)&&(s=Yi.Meridiem.AM,n==12&&(n=0)),a.match(/nachmittag|abend/)&&(s=Yi.Meridiem.PM,n!=12&&(n+=12)),a.match(/nacht/)&&(n==12?(s=Yi.Meridiem.AM,n=0):n<6?s=Yi.Meridiem.AM:(s=Yi.Meridiem.PM,n+=12))}if(t.assign("hour",n),t.assign("minute",i),s!==null?t.assign("meridiem",s):n<12?t.imply("meridiem",Yi.Meridiem.AM):t.imply("meridiem",Yi.Meridiem.PM),e[Dv]!=null){let a=parseInt(e[Dv]);if(a>=60)return null;t.assign("second",a)}return t}};fm.default=Ra});var Ov=x(nl=>{"use strict";var NR=nl&&nl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nl,"__esModule",{value:!0});var IR=NR($r()),pm=class extends IR.default{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}};nl.default=pm});var Rv=x(rl=>{"use strict";var FR=rl&&rl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(rl,"__esModule",{value:!0});var LR=FR(ai()),mm=class extends LR.default{patternBetween(){return new RegExp("^\\s*(T|um|am|,|-)?\\s*$")}};rl.default=mm});var hm=x(sl=>{"use strict";var UR=sl&&sl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sl,"__esModule",{value:!0});var YR=UR(Ue()),Ss=ht(),jR=ie(),$R=qn(),WR=Hn(),il=class extends jR.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(t,e){let n=YR.default(t.refDate),i=e[2].toLowerCase(),s=t.createParsingComponents();return $R.implySimilarTime(s,n),il.extractTimeComponents(s,i)}static extractTimeComponents(t,e){switch(e){case"morgen":t.imply("hour",6),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.AM);break;case"vormittag":t.imply("hour",9),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.AM);break;case"mittag":case"mittags":t.imply("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.AM);break;case"nachmittag":t.imply("hour",15),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.PM);break;case"abend":t.imply("hour",18),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.PM);break;case"nacht":t.imply("hour",22),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.PM);break;case"mitternacht":t.get("hour")>1&&(t=WR.addImpliedTimeUnits(t,{day:1})),t.imply("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("meridiem",Ss.Meridiem.AM);break}return t}};sl.default=il});var Av=x(Tr=>{"use strict";var qR=Tr&&Tr.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),HR=Tr&&Tr.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),GR=Tr&&Tr.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&qR(t,r,e);return HR(t,r),t},Mv=Tr&&Tr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tr,"__esModule",{value:!0});var BR=Mv(Ue()),VR=ie(),Ds=qn(),zR=Mv(hm()),Cv=GR(ui()),KR=new RegExp("(jetzt|heute|morgen|\xFCbermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)","i"),QR=1,ZR=2,gm=class extends VR.AbstractParserWithWordBoundaryChecking{innerPattern(t){return KR}innerExtract(t,e){let n=BR.default(t.refDate),i=(e[QR]||"").toLowerCase(),s=(e[ZR]||"").toLowerCase(),a=t.createParsingComponents();switch(i){case"jetzt":a=Cv.now(t.reference);break;case"heute":a=Cv.today(t.reference);break;case"morgen":Ds.assignTheNextDay(a,n);break;case"\xFCbermorgen":case"uebermorgen":n=n.add(1,"day"),Ds.assignTheNextDay(a,n);break;case"gestern":n=n.add(-1,"day"),Ds.assignSimilarDate(a,n),Ds.implySimilarTime(a,n);break;case"vorgestern":n=n.add(-2,"day"),Ds.assignSimilarDate(a,n),Ds.implySimilarTime(a,n);break;default:i.match(/letzte\s*nacht/)&&(n.hour()>6&&(n=n.add(-1,"day")),Ds.assignSimilarDate(a,n),a.imply("hour",0));break}return s&&(a=zR.default.extractTimeComponents(a,s)),a}};Tr.default=gm});var Uv=x(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var XR=Rt(),Fv=tl(),Lv=tl(),JR=Ke(),eC=ie(),tC=new RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\\u2013|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${JR.matchAnyPattern(Fv.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${Lv.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),Pv=1,Nv=2,nC=3,Iv=4,ym=class extends eC.AbstractParserWithWordBoundaryChecking{innerPattern(){return tC}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=Fv.MONTH_DICTIONARY[e[nC].toLowerCase()],s=parseInt(e[Pv]);if(s>31)return e.index=e.index+e[Pv].length,null;if(n.start.assign("month",i),n.start.assign("day",s),e[Iv]){let a=Lv.parseYear(e[Iv]);n.start.assign("year",a)}else{let a=XR.findYearClosestToRef(t.refDate,s,i);n.start.imply("year",a)}if(e[Nv]){let a=parseInt(e[Nv]);n.end=n.start.clone(),n.end.assign("day",a)}return n}};bm.default=ym});var Yv=x(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var nc=tl(),rC=rt(),iC=ie(),sC=Hn(),aC=Ke(),Tm=class extends iC.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:\\s*((?:n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${nc.NUMBER_PATTERN})?(?:\\s*(n\xE4chste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${aC.matchAnyPattern(nc.TIME_UNIT_DICTIONARY)})`,"i")}innerExtract(t,e){let n=e[2]?nc.parseNumberPattern(e[2]):1,i=nc.TIME_UNIT_DICTIONARY[e[4].toLowerCase()],s={};s[i]=n;let a=e[1]||e[3]||"";if(a=a.toLowerCase(),!!a)return(/vor/.test(a)||/letzte/.test(a)||/vergangen/.test(a))&&(s=sC.reverseTimeUnits(s)),rC.ParsingComponents.createRelativeFromReference(t.reference,s)}};vm.default=Tm});var Wv=x(Tt=>{"use strict";var vr=Tt&&Tt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createConfiguration=Tt.createCasualConfiguration=Tt.parseDate=Tt.parse=Tt.strict=Tt.casual=void 0;var oC=oi(),jv=br(),lC=vr(ks()),uC=vr(Wp()),cC=vr(bv()),dC=vr(kv()),fC=vr(xv()),pC=vr(Ov()),mC=vr(Rv()),hC=vr(Av()),gC=vr(hm()),yC=vr(Uv()),bC=vr(Yv());Tt.casual=new jv.Chrono($v());Tt.strict=new jv.Chrono(_m(!0));function TC(r,t,e){return Tt.casual.parse(r,t,e)}Tt.parse=TC;function vC(r,t,e){return Tt.casual.parseDate(r,t,e)}Tt.parseDate=vC;function $v(r=!0){let t=_m(!1,r);return t.parsers.unshift(new gC.default),t.parsers.unshift(new hC.default),t.parsers.unshift(new bC.default),t}Tt.createCasualConfiguration=$v;function _m(r=!0,t=!0){return oC.includeCommonConfiguration({parsers:[new uC.default,new lC.default(t),new cC.default,new fC.default,new yC.default,new dC.default],refiners:[new pC.default,new mC.default]},r)}Tt.createConfiguration=_m});var Hv=x(_r=>{"use strict";var _C=_r&&_r.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),wC=_r&&_r.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),kC=_r&&_r.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&_C(t,r,e);return wC(t,r),t},SC=_r&&_r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_r,"__esModule",{value:!0});var DC=SC(Ue()),EC=ht(),xC=ie(),qv=qn(),rc=kC(ui()),wm=class extends xC.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(t,e){let n=DC.default(t.refDate),i=e[0].toLowerCase(),s=t.createParsingComponents();switch(i){case"maintenant":return rc.now(t.reference);case"aujourd'hui":return rc.today(t.reference);case"hier":return rc.yesterday(t.reference);case"demain":return rc.tomorrow(t.reference);default:i.match(/cette\s*nuit/)?(qv.assignSimilarDate(s,n),s.imply("hour",22),s.imply("meridiem",EC.Meridiem.PM)):i.match(/la\s*veille/)&&(n=n.add(-1,"day"),qv.assignSimilarDate(s,n),s.imply("hour",0))}return s}};_r.default=wm});var Gv=x(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var al=ht(),OC=ie(),km=class extends OC.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(t,e){let n=e[2].toLowerCase(),i=t.createParsingComponents();switch(n){case"apr\xE8s-midi":case"aprem":i.imply("hour",14),i.imply("minute",0),i.imply("meridiem",al.Meridiem.PM);break;case"soir":i.imply("hour",18),i.imply("minute",0),i.imply("meridiem",al.Meridiem.PM);break;case"matin":i.imply("hour",8),i.imply("minute",0),i.imply("meridiem",al.Meridiem.AM);break;case"a midi":i.imply("hour",12),i.imply("minute",0),i.imply("meridiem",al.Meridiem.AM);break;case"\xE0 minuit":i.imply("hour",0),i.imply("meridiem",al.Meridiem.AM);break}return i}};Sm.default=km});var Bv=x(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var RC=vs(),Dm=class extends RC.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:[\xE0a])\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*"}extractPrimaryTimeComponents(t,e){return e[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(t,e)}};Em.default=Dm});var Vv=x(ol=>{"use strict";var CC=ol&&ol.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ol,"__esModule",{value:!0});var MC=CC(ai()),xm=class extends MC.default{patternBetween(){return new RegExp("^\\s*(T|\xE0|a|vers|de|,|-)?\\s*$")}};ol.default=xm});var zv=x(ll=>{"use strict";var AC=ll&&ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ll,"__esModule",{value:!0});var PC=AC($r()),Om=class extends PC.default{patternBetween(){return/^\s*(à|a|-)\s*$/i}};ll.default=Om});var ji=x(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.parseTimeUnits=Ye.TIME_UNITS_PATTERN=Ye.parseYear=Ye.YEAR_PATTERN=Ye.parseOrdinalNumberPattern=Ye.ORDINAL_NUMBER_PATTERN=Ye.parseNumberPattern=Ye.NUMBER_PATTERN=Ye.TIME_UNIT_DICTIONARY=Ye.INTEGER_WORD_DICTIONARY=Ye.MONTH_DICTIONARY=Ye.WEEKDAY_DICTIONARY=void 0;var Rm=Ke();Ye.WEEKDAY_DICTIONARY={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6};Ye.MONTH_DICTIONARY={janvier:1,jan:1,"jan.":1,f\u00E9vrier:2,f\u00E9v:2,"f\xE9v.":2,fevrier:2,fev:2,"fev.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,jun:6,juillet:7,juil:7,jul:7,"jul.":7,ao\u00FBt:8,aout:8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,d\u00E9cembre:12,decembre:12,dec:12,"dec.":12};Ye.INTEGER_WORD_DICTIONARY={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13};Ye.TIME_UNIT_DICTIONARY={sec:"second",seconde:"second",secondes:"second",min:"minute",mins:"minute",minute:"minute",minutes:"minute",h:"hour",hr:"hour",hrs:"hour",heure:"hour",heures:"hour",jour:"d",jours:"d",semaine:"week",semaines:"week",mois:"month",trimestre:"quarter",trimestres:"quarter",ans:"year",ann\u00E9e:"year",ann\u00E9es:"year"};Ye.NUMBER_PATTERN=`(?:${Rm.matchAnyPattern(Ye.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function Qv(r){let t=r.toLowerCase();return Ye.INTEGER_WORD_DICTIONARY[t]!==void 0?Ye.INTEGER_WORD_DICTIONARY[t]:t==="une"||t==="un"?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t)}Ye.parseNumberPattern=Qv;Ye.ORDINAL_NUMBER_PATTERN="(?:[0-9]{1,2}(?:er)?)";function NC(r){let t=r.toLowerCase();return t=t.replace(/(?:er)$/i,""),parseInt(t)}Ye.parseOrdinalNumberPattern=NC;Ye.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])";function IC(r){if(/AC/i.test(r))return r=r.replace(/BC/i,""),-parseInt(r);if(/AD/i.test(r)||/C/i.test(r))return r=r.replace(/[^\d]+/i,""),parseInt(r);let t=parseInt(r);return t<100&&(t>50?t=t+1900:t=t+2e3),t}Ye.parseYear=IC;var Zv=`(${Ye.NUMBER_PATTERN})\\s{0,5}(${Rm.matchAnyPattern(Ye.TIME_UNIT_DICTIONARY)})\\s{0,5}`,Kv=new RegExp(Zv,"i");Ye.TIME_UNITS_PATTERN=Rm.repeatedTimeunitPattern("",Zv);function FC(r){let t={},e=r,n=Kv.exec(e);for(;n;)LC(t,n),e=e.substring(n[0].length),n=Kv.exec(e);return t}Ye.parseTimeUnits=FC;function LC(r,t){let e=Qv(t[1]),n=Ye.TIME_UNIT_DICTIONARY[t[2].toLowerCase()];r[n]=e}});var Jv=x(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var Xv=ji(),UC=Ke(),YC=ie(),jC=ws(),$C=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(?:ce)\\s*)?(${UC.matchAnyPattern(Xv.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,"i"),WC=1,qC=2,Cm=class extends YC.AbstractParserWithWordBoundaryChecking{innerPattern(){return $C}innerExtract(t,e){let n=e[WC].toLowerCase(),i=Xv.WEEKDAY_DICTIONARY[n];if(i===void 0)return null;let s=e[qC];s=s||"",s=s.toLowerCase();let a=null;s=="dernier"?a="last":s=="prochain"&&(a="next");let o=jC.toDayJSWeekday(t.refDate,i,a);return t.createParsingComponents().assign("weekday",i).imply("day",o.date()).imply("month",o.month()+1).imply("year",o.year())}};Mm.default=Cm});var r_=x(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var ul=ht(),HC=new RegExp("(^|\\s|T)(?:(?:[\xE0a])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),GC=new RegExp("^\\s*(\\-|\\\u2013|\\~|\\\u301C|[\xE0a]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)","i"),BC=2,e_=3,t_=4,n_=5,Ca=class{pattern(t){return HC}extract(t,e){let n=t.createParsingResult(e.index+e[1].length,e[0].substring(e[1].length));if(n.text.match(/^\d{4}$/)||(n.start=Ca.extractTimeComponent(n.start.clone(),e),!n.start))return e.index+=e[0].length,null;let i=t.text.substring(e.index+e[0].length),s=GC.exec(i);return s&&(n.end=Ca.extractTimeComponent(n.start.clone(),s),n.end&&(n.text+=s[0])),n}static extractTimeComponent(t,e){let n=0,i=0,s=null;if(n=parseInt(e[BC]),e[e_]!=null&&(i=parseInt(e[e_])),i>=60||n>24)return null;if(n>=12&&(s=ul.Meridiem.PM),e[n_]!=null){if(n>12)return null;let a=e[n_][0].toLowerCase();a=="a"&&(s=ul.Meridiem.AM,n==12&&(n=0)),a=="p"&&(s=ul.Meridiem.PM,n!=12&&(n+=12))}if(t.assign("hour",n),t.assign("minute",i),s!==null?t.assign("meridiem",s):n<12?t.imply("meridiem",ul.Meridiem.AM):t.imply("meridiem",ul.Meridiem.PM),e[t_]!=null){let a=parseInt(e[t_]);if(a>=60)return null;t.assign("second",a)}return t}};Am.default=Ca});var u_=x(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var VC=Rt(),o_=ji(),l_=ji(),ic=ji(),zC=Ke(),KC=ie(),QC=new RegExp(`(?:on\\s*?)?(${ic.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:au|\\-|\\\u2013|jusqu'au?|\\s)\\s*(${ic.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:de)?\\s*)(${zC.matchAnyPattern(o_.MONTH_DICTIONARY)})(?:(?:-|/|,?\\s*)(${l_.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),i_=1,s_=2,ZC=3,a_=4,Pm=class extends KC.AbstractParserWithWordBoundaryChecking{innerPattern(){return QC}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=o_.MONTH_DICTIONARY[e[ZC].toLowerCase()],s=ic.parseOrdinalNumberPattern(e[i_]);if(s>31)return e.index=e.index+e[i_].length,null;if(n.start.assign("month",i),n.start.assign("day",s),e[a_]){let a=l_.parseYear(e[a_]);n.start.assign("year",a)}else{let a=VC.findYearClosestToRef(t.refDate,s,i);n.start.imply("year",a)}if(e[s_]){let a=ic.parseOrdinalNumberPattern(e[s_]);n.end=n.start.clone(),n.end.assign("day",a)}return n}};Nm.default=Pm});var d_=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var c_=ji(),XC=rt(),JC=ie(),eM=Hn(),Im=class extends JC.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`il y a\\s*(${c_.TIME_UNITS_PATTERN})(?=(?:\\W|$))`,"i")}innerExtract(t,e){let n=c_.parseTimeUnits(e[1]),i=eM.reverseTimeUnits(n);return XC.ParsingComponents.createRelativeFromReference(t.reference,i)}};Fm.default=Im});var p_=x(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var f_=ji(),tM=rt(),nM=ie(),Lm=class extends nM.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp(`(?:dans|en|pour|pendant|de)\\s*(${f_.TIME_UNITS_PATTERN})(?=\\W|$)`,"i")}innerExtract(t,e){let n=f_.parseTimeUnits(e[1]);return tM.ParsingComponents.createRelativeFromReference(t.reference,n)}};Um.default=Lm});var m_=x(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var sc=ji(),rM=rt(),iM=ie(),sM=Hn(),aM=Ke(),Ym=class extends iM.AbstractParserWithWordBoundaryChecking{constructor(){super()}innerPattern(){return new RegExp(`(?:les?|la|l'|du|des?)\\s*(${sc.NUMBER_PATTERN})?(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?\\s*(${aM.matchAnyPattern(sc.TIME_UNIT_DICTIONARY)})(?:\\s*(prochaine?s?|derni[e\xE8]re?s?|pass[\xE9e]e?s?|pr[\xE9e]c[\xE9e]dents?|suivante?s?))?`,"i")}innerExtract(t,e){let n=e[1]?sc.parseNumberPattern(e[1]):1,i=sc.TIME_UNIT_DICTIONARY[e[3].toLowerCase()],s={};s[i]=n;let a=e[2]||e[4]||"";if(a=a.toLowerCase(),!!a)return(/derni[eè]re?s?/.test(a)||/pass[ée]e?s?/.test(a)||/pr[ée]c[ée]dents?/.test(a))&&(s=sM.reverseTimeUnits(s)),rM.ParsingComponents.createRelativeFromReference(t.reference,s)}};jm.default=Ym});var y_=x(vt=>{"use strict";var Gn=vt&&vt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConfiguration=vt.createCasualConfiguration=vt.parseDate=vt.parse=vt.strict=vt.casual=void 0;var oM=oi(),h_=br(),lM=Gn(Hv()),uM=Gn(Gv()),cM=Gn(ks()),dM=Gn(Bv()),fM=Gn(Vv()),pM=Gn(zv()),mM=Gn(Jv()),hM=Gn(r_()),gM=Gn(u_()),yM=Gn(d_()),bM=Gn(p_()),TM=Gn(m_());vt.casual=new h_.Chrono(g_());vt.strict=new h_.Chrono($m(!0));function vM(r,t,e){return vt.casual.parse(r,t,e)}vt.parse=vM;function _M(r,t,e){return vt.casual.parseDate(r,t,e)}vt.parseDate=_M;function g_(r=!0){let t=$m(!1,r);return t.parsers.unshift(new lM.default),t.parsers.unshift(new uM.default),t.parsers.unshift(new TM.default),t}vt.createCasualConfiguration=g_;function $m(r=!0,t=!0){return oM.includeCommonConfiguration({parsers:[new cM.default(t),new gM.default,new dM.default,new hM.default,new yM.default,new bM.default,new mM.default],refiners:[new fM.default,new pM.default]},r)}vt.createConfiguration=$m});var b_=x(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.toHankaku=void 0;function wM(r){return String(r).replace(/\u2019/g,"'").replace(/\u201D/g,'"').replace(/\u3000/g," ").replace(/\uFFE5/g,"\xA5").replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,kM)}ac.toHankaku=wM;function kM(r){return String.fromCharCode(r.charCodeAt(0)-65248)}});var v_=x(cl=>{"use strict";var SM=cl&&cl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cl,"__esModule",{value:!0});var Wm=b_(),DM=Rt(),EM=SM(Ue()),xM=/(?:(?:([同今本])|((昭和|平成|令和)?([0-9０-９]{1,4}|元)))年\s*)?([0-9０-９]{1,2})月\s*([0-9０-９]{1,2})日/i,T_=1,OM=2,qm=3,RM=4,CM=5,MM=6,Hm=class{pattern(){return xM}extract(t,e){let n=parseInt(Wm.toHankaku(e[CM])),i=parseInt(Wm.toHankaku(e[MM])),s=t.createParsingComponents({day:i,month:n});if(e[T_]&&e[T_].match("\u540C|\u4ECA|\u672C")){let a=EM.default(t.refDate);s.assign("year",a.year())}if(e[OM]){let a=e[RM],o=a=="\u5143"?1:parseInt(Wm.toHankaku(a));e[qm]=="\u4EE4\u548C"?o+=2018:e[qm]=="\u5E73\u6210"?o+=1988:e[qm]=="\u662D\u548C"&&(o+=1925),s.assign("year",o)}else{let a=DM.findYearClosestToRef(t.refDate,i,n);s.imply("year",a)}return s}};cl.default=Hm});var __=x(dl=>{"use strict";var AM=dl&&dl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(dl,"__esModule",{value:!0});var PM=AM($r()),Gm=class extends PM.default{patternBetween(){return/^\s*(から|ー|-)\s*$/i}};dl.default=Gm});var k_=x(wr=>{"use strict";var NM=wr&&wr.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),IM=wr&&wr.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),FM=wr&&wr.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&NM(t,r,e);return IM(t,r),t},LM=wr&&wr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wr,"__esModule",{value:!0});var UM=LM(Ue()),w_=ht(),Bm=FM(ui()),YM=/今日|当日|昨日|明日|今夜|今夕|今晩|今朝/i,Vm=class{pattern(){return YM}extract(t,e){let n=e[0],i=UM.default(t.refDate),s=t.createParsingComponents();switch(n){case"\u6628\u65E5":return Bm.yesterday(t.reference);case"\u660E\u65E5":return Bm.tomorrow(t.reference);case"\u4ECA\u65E5":case"\u5F53\u65E5":return Bm.today(t.reference)}return n=="\u4ECA\u591C"||n=="\u4ECA\u5915"||n=="\u4ECA\u6669"?(s.imply("hour",22),s.assign("meridiem",w_.Meridiem.PM)):n.match("\u4ECA\u671D")&&(s.imply("hour",6),s.assign("meridiem",w_.Meridiem.AM)),s.assign("day",i.date()),s.assign("month",i.month()+1),s.assign("year",i.year()),s}};wr.default=Vm});var E_=x(_t=>{"use strict";var zm=_t&&_t.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_t,"__esModule",{value:!0});_t.createConfiguration=_t.createCasualConfiguration=_t.parseDate=_t.parse=_t.strict=_t.casual=void 0;var jM=zm(v_()),$M=zm(__()),WM=zm(k_()),S_=br();_t.casual=new S_.Chrono(D_());_t.strict=new S_.Chrono(Km());function qM(r,t,e){return _t.casual.parse(r,t,e)}_t.parse=qM;function HM(r,t,e){return _t.casual.parseDate(r,t,e)}_t.parseDate=HM;function D_(){let r=Km();return r.parsers.unshift(new WM.default),r}_t.createCasualConfiguration=D_;function Km(){return{parsers:[new jM.default],refiners:[new $M.default]}}_t.createConfiguration=Km});var oc=x(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.parseYear=qr.YEAR_PATTERN=qr.MONTH_DICTIONARY=qr.WEEKDAY_DICTIONARY=void 0;qr.WEEKDAY_DICTIONARY={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,ter\u00E7a:2,"ter\xE7a-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,s\u00E1bado:6,sabado:6,sab:6};qr.MONTH_DICTIONARY={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,mar\u00E7o:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12};qr.YEAR_PATTERN="[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";function GM(r){if(r.match(/^[0-9]{1,4}$/)){let t=parseInt(r);return t<100&&(t>50?t=t+1900:t=t+2e3),t}return r.match(/a\.?\s*c\.?/i)?(r=r.replace(/a\.?\s*c\.?/i,""),-parseInt(r)):parseInt(r)}qr.parseYear=GM});var O_=x(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var x_=oc(),BM=Ke(),VM=ie(),zM=ws(),KM=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(este|esta|passado|pr[o\xF3]ximo)\\s*)?(${BM.matchAnyPattern(x_.WEEKDAY_DICTIONARY)})(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(este|esta|passado|pr[\xF3o]ximo)\\s*semana)?(?=\\W|\\d|$)`,"i"),QM=1,ZM=2,XM=3,Qm=class extends VM.AbstractParserWithWordBoundaryChecking{innerPattern(){return KM}innerExtract(t,e){let n=e[ZM].toLowerCase(),i=x_.WEEKDAY_DICTIONARY[n];if(i===void 0)return null;let s=e[QM],a=e[XM],o=s||a||"";o=o.toLowerCase();let l=null;o=="passado"?l="this":o=="pr\xF3ximo"||o=="proximo"?l="next":o=="este"&&(l="this");let u=zM.toDayJSWeekday(t.refDate,i,l);return t.createParsingComponents().assign("weekday",i).imply("day",u.date()).imply("month",u.month()+1).imply("year",u.year())}};Zm.default=Qm});var R_=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var JM=vs(),Xm=class extends JM.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:ao?|\xE0s?|das|da|de|do)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|a(?:o)?|\\?)\\s*"}};Jm.default=Xm});var C_=x(fl=>{"use strict";var eA=fl&&fl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fl,"__esModule",{value:!0});var tA=eA(ai()),eh=class extends tA.default{patternBetween(){return new RegExp("^\\s*(?:,|\xE0)?\\s*$")}};fl.default=eh});var M_=x(pl=>{"use strict";var nA=pl&&pl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pl,"__esModule",{value:!0});var rA=nA($r()),th=class extends rA.default{patternBetween(){return/^\s*(?:-)\s*$/i}};pl.default=th});var L_=x(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var iA=Rt(),I_=oc(),F_=oc(),sA=Ke(),aA=ie(),oA=new RegExp(`([0-9]{1,2})(?:\xBA|\xAA|\xB0)?(?:\\s*(?:desde|de|\\-|\\\u2013|ao?|\\s)\\s*([0-9]{1,2})(?:\xBA|\xAA|\xB0)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${sA.matchAnyPattern(I_.MONTH_DICTIONARY)})(?:\\s*(?:de|,)?\\s*(${F_.YEAR_PATTERN}))?(?=\\W|$)`,"i"),A_=1,P_=2,lA=3,N_=4,nh=class extends aA.AbstractParserWithWordBoundaryChecking{innerPattern(){return oA}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=I_.MONTH_DICTIONARY[e[lA].toLowerCase()],s=parseInt(e[A_]);if(s>31)return e.index=e.index+e[A_].length,null;if(n.start.assign("month",i),n.start.assign("day",s),e[N_]){let a=F_.parseYear(e[N_]);n.start.assign("year",a)}else{let a=iA.findYearClosestToRef(t.refDate,s,i);n.start.imply("year",a)}if(e[P_]){let a=parseInt(e[P_]);n.end=n.start.clone(),n.end.assign("day",a)}return n}};rh.default=nh});var U_=x(ci=>{"use strict";var uA=ci&&ci.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),cA=ci&&ci.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),dA=ci&&ci.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&uA(t,r,e);return cA(t,r),t};Object.defineProperty(ci,"__esModule",{value:!0});var fA=ie(),lc=dA(ui()),ih=class extends fA.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(t,e){let n=e[0].toLowerCase(),i=t.createParsingComponents();switch(n){case"agora":return lc.now(t.reference);case"hoje":return lc.today(t.reference);case"amanha":case"amanh\xE3":return lc.tomorrow(t.reference);case"ontem":return lc.yesterday(t.reference)}return i}};ci.default=ih});var Y_=x(ml=>{"use strict";var pA=ml&&ml.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ml,"__esModule",{value:!0});var uc=ht(),mA=ie(),hA=qn(),gA=pA(Ue()),sh=class extends mA.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(t,e){let n=gA.default(t.refDate),i=t.createParsingComponents();switch(e[1].toLowerCase()){case"tarde":i.imply("meridiem",uc.Meridiem.PM),i.imply("hour",15);break;case"noite":i.imply("meridiem",uc.Meridiem.PM),i.imply("hour",22);break;case"manha":case"manh\xE3":i.imply("meridiem",uc.Meridiem.AM),i.imply("hour",6);break;case"meia-noite":hA.assignTheNextDay(i,n),i.imply("hour",0),i.imply("minute",0),i.imply("second",0);break;case"meio-dia":i.imply("meridiem",uc.Meridiem.AM),i.imply("hour",12);break}return i}};ml.default=sh});var W_=x(wt=>{"use strict";var $i=wt&&wt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wt,"__esModule",{value:!0});wt.createConfiguration=wt.createCasualConfiguration=wt.parseDate=wt.parse=wt.strict=wt.casual=void 0;var yA=oi(),j_=br(),bA=$i(ks()),TA=$i(O_()),vA=$i(R_()),_A=$i(C_()),wA=$i(M_()),kA=$i(L_()),SA=$i(U_()),DA=$i(Y_());wt.casual=new j_.Chrono($_());wt.strict=new j_.Chrono(ah(!0));function EA(r,t,e){return wt.casual.parse(r,t,e)}wt.parse=EA;function xA(r,t,e){return wt.casual.parseDate(r,t,e)}wt.parseDate=xA;function $_(r=!0){let t=ah(!1,r);return t.parsers.push(new SA.default),t.parsers.push(new DA.default),t}wt.createCasualConfiguration=$_;function ah(r=!0,t=!0){return yA.includeCommonConfiguration({parsers:[new bA.default(t),new TA.default,new vA.default,new kA.default],refiners:[new _A.default,new wA.default]},r)}wt.createConfiguration=ah});var q_=x(hl=>{"use strict";var OA=hl&&hl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(hl,"__esModule",{value:!0});var RA=OA($r()),oh=class extends RA.default{patternBetween(){return/^\s*(tot|-)\s*$/i}};hl.default=oh});var H_=x(gl=>{"use strict";var CA=gl&&gl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gl,"__esModule",{value:!0});var MA=CA(ai()),lh=class extends MA.default{patternBetween(){return new RegExp("^\\s*(om|na|voor|in de|,|-)?\\s*$")}};gl.default=lh});var G_=x(di=>{"use strict";var AA=di&&di.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),PA=di&&di.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),NA=di&&di.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&AA(t,r,e);return PA(t,r),t};Object.defineProperty(di,"__esModule",{value:!0});var IA=ie(),cc=NA(ui()),uh=class extends IA.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(t,e){let n=e[0].toLowerCase(),i=t.createParsingComponents();switch(n){case"nu":return cc.now(t.reference);case"vandaag":return cc.today(t.reference);case"morgen":case"morgend":return cc.tomorrow(t.reference);case"gisteren":return cc.yesterday(t.reference)}return i}};di.default=uh});var B_=x(yl=>{"use strict";var FA=yl&&yl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yl,"__esModule",{value:!0});var dc=ht(),LA=ie(),UA=FA(Ue()),YA=qn(),jA=1,$A=2,ch=class extends LA.AbstractParserWithWordBoundaryChecking{innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(t,e){let n=UA.default(t.refDate),i=t.createParsingComponents();switch(e[jA]==="deze"&&(i.assign("day",t.refDate.getDate()),i.assign("month",t.refDate.getMonth()+1),i.assign("year",t.refDate.getFullYear())),e[$A].toLowerCase()){case"namiddag":case"'s namiddags":i.imply("meridiem",dc.Meridiem.PM),i.imply("hour",15);break;case"avond":case"'s avonds'":i.imply("meridiem",dc.Meridiem.PM),i.imply("hour",20);break;case"middernacht":YA.assignTheNextDay(i,n),i.imply("hour",0),i.imply("minute",0),i.imply("second",0);break;case"ochtend":case"'s ochtends":i.imply("meridiem",dc.Meridiem.AM),i.imply("hour",6);break;case"middag":case"'s middags":i.imply("meridiem",dc.Meridiem.AM),i.imply("hour",12);break}return i}};yl.default=ch});var Sn=x(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.parseTimeUnits=Pe.TIME_UNITS_PATTERN=Pe.parseYear=Pe.YEAR_PATTERN=Pe.parseOrdinalNumberPattern=Pe.ORDINAL_NUMBER_PATTERN=Pe.parseNumberPattern=Pe.NUMBER_PATTERN=Pe.TIME_UNIT_DICTIONARY=Pe.ORDINAL_WORD_DICTIONARY=Pe.INTEGER_WORD_DICTIONARY=Pe.MONTH_DICTIONARY=Pe.WEEKDAY_DICTIONARY=void 0;var fc=Ke(),WA=Rt();Pe.WEEKDAY_DICTIONARY={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6};Pe.MONTH_DICTIONARY={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12};Pe.INTEGER_WORD_DICTIONARY={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12};Pe.ORDINAL_WORD_DICTIONARY={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,twee\u00EBntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31};Pe.TIME_UNIT_DICTIONARY={sec:"second",second:"second",seconden:"second",min:"minute",mins:"minute",minute:"minute",minuut:"minute",minuten:"minute",minuutje:"minute",h:"hour",hr:"hour",hrs:"hour",uur:"hour",u:"hour",uren:"hour",dag:"d",dagen:"d",week:"week",weken:"week",maand:"month",maanden:"month",jaar:"year",jr:"year",jaren:"year"};Pe.NUMBER_PATTERN=`(?:${fc.matchAnyPattern(Pe.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function z_(r){let t=r.toLowerCase();return Pe.INTEGER_WORD_DICTIONARY[t]!==void 0?Pe.INTEGER_WORD_DICTIONARY[t]:t==="paar"?2:t==="half"||t.match(/halve?/)?.5:parseFloat(t.replace(",","."))}Pe.parseNumberPattern=z_;Pe.ORDINAL_NUMBER_PATTERN=`(?:${fc.matchAnyPattern(Pe.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:ste|de)?)`;function qA(r){let t=r.toLowerCase();return Pe.ORDINAL_WORD_DICTIONARY[t]!==void 0?Pe.ORDINAL_WORD_DICTIONARY[t]:(t=t.replace(/(?:ste|de)$/i,""),parseInt(t))}Pe.parseOrdinalNumberPattern=qA;Pe.YEAR_PATTERN="(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])";function HA(r){if(/voor Christus/i.test(r))return r=r.replace(/voor Christus/i,""),-parseInt(r);if(/na Christus/i.test(r))return r=r.replace(/na Christus/i,""),parseInt(r);let t=parseInt(r);return WA.findMostLikelyADYear(t)}Pe.parseYear=HA;var K_=`(${Pe.NUMBER_PATTERN})\\s{0,5}(${fc.matchAnyPattern(Pe.TIME_UNIT_DICTIONARY)})\\s{0,5}`,V_=new RegExp(K_,"i");Pe.TIME_UNITS_PATTERN=fc.repeatedTimeunitPattern("(?:(?:binnen|in)\\s*)?",K_);function GA(r){let t={},e=r,n=V_.exec(e);for(;n;)BA(t,n),e=e.substring(n[0].length),n=V_.exec(e);return t}Pe.parseTimeUnits=GA;function BA(r,t){let e=z_(t[1]),n=Pe.TIME_UNIT_DICTIONARY[t[2].toLowerCase()];r[n]=e}});var Z_=x(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var Q_=Sn(),VA=rt(),zA=ie(),dh=class extends zA.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(?:binnen|in|binnen de|voor)\\s*("+Q_.TIME_UNITS_PATTERN+")(?=\\W|$)","i")}innerExtract(t,e){let n=Q_.parseTimeUnits(e[1]);return VA.ParsingComponents.createRelativeFromReference(t.reference,n)}};fh.default=dh});var J_=x(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var X_=Sn(),KA=Ke(),QA=ie(),ZA=ws(),XA=new RegExp(`(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${KA.matchAnyPattern(X_.WEEKDAY_DICTIONARY)})(?=\\W|$)`,"i"),JA=1,eP=2,tP=3,ph=class extends QA.AbstractParserWithWordBoundaryChecking{innerPattern(){return XA}innerExtract(t,e){let n=e[eP].toLowerCase(),i=X_.WEEKDAY_DICTIONARY[n],s=e[JA],a=e[tP],o=s||a;o=o||"",o=o.toLowerCase();let l=null;o=="vorige"?l="last":o=="volgende"?l="next":o=="deze"&&(l="this");let u=ZA.toDayJSWeekday(t.refDate,i,l);return t.createParsingComponents().assign("weekday",i).imply("day",u.date()).imply("month",u.month()+1).imply("year",u.year())}};mh.default=ph});var sw=x(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});var nP=Rt(),rw=Sn(),pc=Sn(),iw=Sn(),rP=Ke(),iP=ie(),sP=new RegExp(`(?:on\\s*?)?(${pc.ORDINAL_NUMBER_PATTERN})(?:\\s*(?:tot|\\-|\\\u2013|until|through|till|\\s)\\s*(${pc.ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s*(?:of)?\\s*)(`+rP.matchAnyPattern(rw.MONTH_DICTIONARY)+`)(?:(?:-|/|,?\\s*)(${iw.YEAR_PATTERN}(?![^\\s]\\d)))?(?=\\W|$)`,"i"),aP=3,ew=1,tw=2,nw=4,hh=class extends iP.AbstractParserWithWordBoundaryChecking{innerPattern(){return sP}innerExtract(t,e){let n=rw.MONTH_DICTIONARY[e[aP].toLowerCase()],i=pc.parseOrdinalNumberPattern(e[ew]);if(i>31)return e.index=e.index+e[ew].length,null;let s=t.createParsingComponents({day:i,month:n});if(e[nw]){let l=iw.parseYear(e[nw]);s.assign("year",l)}else{let l=nP.findYearClosestToRef(t.refDate,i,n);s.imply("year",l)}if(!e[tw])return s;let a=pc.parseOrdinalNumberPattern(e[tw]),o=t.createParsingResult(e.index,e[0]);return o.start=s,o.end=s.clone(),o.end.assign("day",a),o}};gh.default=hh});var uw=x(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var ow=Sn(),oP=Rt(),lP=Ke(),lw=Sn(),uP=ie(),cP=new RegExp(`(${lP.matchAnyPattern(ow.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${lw.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),dP=1,aw=2,yh=class extends uP.AbstractParserWithWordBoundaryChecking{innerPattern(){return cP}innerExtract(t,e){let n=t.createParsingComponents();n.imply("day",1);let i=e[dP],s=ow.MONTH_DICTIONARY[i.toLowerCase()];if(n.assign("month",s),e[aw]){let a=lw.parseYear(e[aw]);n.assign("year",a)}else{let a=oP.findYearClosestToRef(t.refDate,1,s);n.imply("year",a)}return n}};bh.default=yh});var cw=x(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var fP=ie(),pP=new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),mP=1,hP=2,Th=class extends fP.AbstractParserWithWordBoundaryChecking{innerPattern(){return pP}innerExtract(t,e){let n=parseInt(e[hP]),i=parseInt(e[mP]);return t.createParsingComponents().imply("day",1).assign("month",i).assign("year",n)}};vh.default=Th});var dw=x(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var gP=vs(),_h=class extends gP.AbstractTimeExpressionParser{primaryPrefix(){return"(?:(?:om)\\s*)?"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|om|\\?)\\s*"}primarySuffix(){return"(?:\\s*(?:uur))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(t,e){return e[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(t,e)}};wh.default=_h});var mw=x(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var pw=Sn(),yP=Ke(),bP=ie(),TP=new RegExp(`([0-9]{4})[\\.\\/\\s](?:(${yP.matchAnyPattern(pw.MONTH_DICTIONARY)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),vP=1,_P=2,fw=3,wP=4,kh=class extends bP.AbstractParserWithWordBoundaryChecking{innerPattern(){return TP}innerExtract(t,e){let n=e[fw]?parseInt(e[fw]):pw.MONTH_DICTIONARY[e[_P].toLowerCase()];if(n<1||n>12)return null;let i=parseInt(e[vP]);return{day:parseInt(e[wP]),month:n,year:i}}};Sh.default=kh});var hw=x(bl=>{"use strict";var kP=bl&&bl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bl,"__esModule",{value:!0});var SP=ie(),mc=ht(),Dh=qn(),DP=kP(Ue()),EP=1,xP=2,Eh=class extends SP.AbstractParserWithWordBoundaryChecking{innerPattern(t){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(t,e){let n=e[EP].toLowerCase(),i=e[xP].toLowerCase(),s=t.createParsingComponents(),a=DP.default(t.refDate);switch(n){case"gisteren":Dh.assignSimilarDate(s,a.add(-1,"day"));break;case"van":Dh.assignSimilarDate(s,a);break;case"morgen":Dh.assignTheNextDay(s,a);break}switch(i){case"ochtend":s.imply("meridiem",mc.Meridiem.AM),s.imply("hour",6);break;case"middag":s.imply("meridiem",mc.Meridiem.AM),s.imply("hour",12);break;case"namiddag":s.imply("meridiem",mc.Meridiem.PM),s.imply("hour",15);break;case"avond":s.imply("meridiem",mc.Meridiem.PM),s.imply("hour",20);break}return s}};bl.default=Eh});var yw=x(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var gw=Sn(),OP=rt(),RP=ie(),CP=Hn(),MP=new RegExp(`(deze|vorige|afgelopen|komende|over|\\+|-)\\s*(${gw.TIME_UNITS_PATTERN})(?=\\W|$)`,"i"),xh=class extends RP.AbstractParserWithWordBoundaryChecking{innerPattern(){return MP}innerExtract(t,e){let n=e[1].toLowerCase(),i=gw.parseTimeUnits(e[2]);switch(n){case"vorige":case"afgelopen":case"-":i=CP.reverseTimeUnits(i);break}return OP.ParsingComponents.createRelativeFromReference(t.reference,i)}};Oh.default=xh});var vw=x(Tl=>{"use strict";var AP=Tl&&Tl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tl,"__esModule",{value:!0});var Tw=Sn(),bw=rt(),PP=AP(Ue()),NP=ie(),IP=Ke(),FP=new RegExp(`(dit|deze|komende|volgend|volgende|afgelopen|vorige)\\s*(${IP.matchAnyPattern(Tw.TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|$)`,"i"),LP=1,UP=2,Rh=class extends NP.AbstractParserWithWordBoundaryChecking{innerPattern(){return FP}innerExtract(t,e){let n=e[LP].toLowerCase(),i=e[UP].toLowerCase(),s=Tw.TIME_UNIT_DICTIONARY[i];if(n=="volgend"||n=="volgende"||n=="komende"){let l={};return l[s]=1,bw.ParsingComponents.createRelativeFromReference(t.reference,l)}if(n=="afgelopen"||n=="vorige"){let l={};return l[s]=-1,bw.ParsingComponents.createRelativeFromReference(t.reference,l)}let a=t.createParsingComponents(),o=PP.default(t.reference.instant);return i.match(/week/i)?(o=o.add(-o.get("d"),"d"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.imply("year",o.year())):i.match(/maand/i)?(o=o.add(-o.date()+1,"d"),a.imply("day",o.date()),a.assign("year",o.year()),a.assign("month",o.month()+1)):i.match(/jaar/i)&&(o=o.add(-o.date()+1,"d"),o=o.add(-o.month(),"month"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.assign("year",o.year())),a}};Tl.default=Rh});var _w=x(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var Mh=Sn(),YP=rt(),jP=ie(),$P=Hn(),WP=new RegExp("("+Mh.TIME_UNITS_PATTERN+")(?:geleden|voor|eerder)(?=(?:\\W|$))","i"),qP=new RegExp("("+Mh.TIME_UNITS_PATTERN+")geleden(?=(?:\\W|$))","i"),Ch=class extends jP.AbstractParserWithWordBoundaryChecking{constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?qP:WP}innerExtract(t,e){let n=Mh.parseTimeUnits(e[1]),i=$P.reverseTimeUnits(n);return YP.ParsingComponents.createRelativeFromReference(t.reference,i)}};Ah.default=Ch});var ww=x(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Nh=Sn(),HP=rt(),GP=ie(),BP=new RegExp("("+Nh.TIME_UNITS_PATTERN+")(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))","i"),VP=new RegExp("("+Nh.TIME_UNITS_PATTERN+")(later|vanaf nu)(?=(?:\\W|$))","i"),zP=1,Ph=class extends GP.AbstractParserWithWordBoundaryChecking{constructor(t){super(),this.strictMode=t}innerPattern(){return this.strictMode?VP:BP}innerExtract(t,e){let n=Nh.parseTimeUnits(e[zP]);return HP.ParsingComponents.createRelativeFromReference(t.reference,n)}};Ih.default=Ph});var Ew=x(kt=>{"use strict";var Mt=kt&&kt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConfiguration=kt.createCasualConfiguration=kt.parseDate=kt.parse=kt.strict=kt.casual=void 0;var KP=oi(),kw=br(),QP=Mt(q_()),ZP=Mt(H_()),XP=Mt(G_()),JP=Mt(B_()),eN=Mt(ks()),tN=Mt(Z_()),nN=Mt(J_()),rN=Mt(sw()),Sw=Mt(uw()),iN=Mt(cw()),sN=Mt(dw()),aN=Mt(mw()),oN=Mt(hw()),lN=Mt(yw()),uN=Mt(vw()),cN=Mt(_w()),dN=Mt(ww());kt.casual=new kw.Chrono(Dw());kt.strict=new kw.Chrono(Fh(!0));function fN(r,t,e){return kt.casual.parse(r,t,e)}kt.parse=fN;function pN(r,t,e){return kt.casual.parseDate(r,t,e)}kt.parseDate=pN;function Dw(r=!0){let t=Fh(!1,r);return t.parsers.unshift(new XP.default),t.parsers.unshift(new JP.default),t.parsers.unshift(new oN.default),t.parsers.unshift(new Sw.default),t.parsers.unshift(new uN.default),t.parsers.unshift(new lN.default),t}kt.createCasualConfiguration=Dw;function Fh(r=!0,t=!0){return KP.includeCommonConfiguration({parsers:[new eN.default(t),new tN.default,new rN.default,new Sw.default,new nN.default,new aN.default,new iN.default,new sN.default(r),new cN.default(r),new dN.default(r)],refiners:[new ZP.default,new QP.default]},r)}kt.createConfiguration=Fh});var Cw=x(vl=>{"use strict";var mN=vl&&vl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vl,"__esModule",{value:!0});var hN=mN(Ue()),gN=ie(),yN=1,xw=2,bN=3,Ow=4,Rw=5,TN=6,Lh=class extends gN.AbstractParserWithWordBoundaryChecking{innerPattern(t){return new RegExp("(\u800C\u5BB6|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(t,e){let n=e.index,i=t.createParsingResult(n,e[0]),s=hN.default(t.refDate),a=s;if(e[yN])i.start.imply("hour",s.hour()),i.start.imply("minute",s.minute()),i.start.imply("second",s.second()),i.start.imply("millisecond",s.millisecond());else if(e[xw]){let o=e[xw],l=e[bN];o=="\u660E"||o=="\u807D"?s.hour()>1&&(a=a.add(1,"day")):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?a=a.add(-1,"day"):o=="\u524D"?a=a.add(-2,"day"):o=="\u5927\u524D"?a=a.add(-3,"day"):o=="\u5F8C"?a=a.add(2,"day"):o=="\u5927\u5F8C"&&(a=a.add(3,"day")),l=="\u65E9"||l=="\u671D"?i.start.imply("hour",6):l=="\u665A"&&(i.start.imply("hour",22),i.start.imply("meridiem",1))}else if(e[Ow]){let l=e[Ow][0];l=="\u65E9"||l=="\u671D"||l=="\u4E0A"?i.start.imply("hour",6):l=="\u4E0B"||l=="\u664F"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):l=="\u4E2D"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):l=="\u591C"||l=="\u665A"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):l=="\u51CC"&&i.start.imply("hour",0)}else if(e[Rw]){let o=e[Rw];o=="\u660E"||o=="\u807D"?s.hour()>1&&(a=a.add(1,"day")):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?a=a.add(-1,"day"):o=="\u524D"?a=a.add(-2,"day"):o=="\u5927\u524D"?a=a.add(-3,"day"):o=="\u5F8C"?a=a.add(2,"day"):o=="\u5927\u5F8C"&&(a=a.add(3,"day"));let l=e[TN];if(l){let u=l[0];u=="\u65E9"||u=="\u671D"||u=="\u4E0A"?i.start.imply("hour",6):u=="\u4E0B"||u=="\u664F"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):u=="\u4E2D"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):u=="\u591C"||u=="\u665A"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):u=="\u51CC"&&i.start.imply("hour",0)}}return i.start.assign("day",a.date()),i.start.assign("month",a.month()+1),i.start.assign("year",a.year()),i}};vl.default=Lh});var Ma=x(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.zhStringToYear=cn.zhStringToNumber=cn.WEEKDAY_OFFSET=cn.NUMBER=void 0;cn.NUMBER={\u96F6:0,\u4E00:1,\u4E8C:2,\u5169:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10,\u5EFF:20,\u5345:30};cn.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function vN(r){let t=0;for(let e=0;e<r.length;e++){let n=r[e];n==="\u5341"?t=t===0?cn.NUMBER[n]:t*cn.NUMBER[n]:t+=cn.NUMBER[n]}return t}cn.zhStringToNumber=vN;function _N(r){let t="";for(let e=0;e<r.length;e++){let n=r[e];t=t+cn.NUMBER[n]}return parseInt(t)}cn.zhStringToYear=_N});var Aw=x(_l=>{"use strict";var wN=_l&&_l.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_l,"__esModule",{value:!0});var kN=wN(Ue()),SN=ie(),Es=Ma(),Uh=1,Mw=2,Yh=3,jh=class extends SN.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(Es.NUMBER).join("")+"]{4}|["+Object.keys(Es.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(Es.NUMBER).join("")+"]{1,2})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(Es.NUMBER).join("")+"]{1,2})?(?:\\s*)(?:\u65E5|\u865F)?")}innerExtract(t,e){let n=kN.default(t.refDate),i=t.createParsingResult(e.index,e[0]),s=parseInt(e[Mw]);if(isNaN(s)&&(s=Es.zhStringToNumber(e[Mw])),i.start.assign("month",s),e[Yh]){let a=parseInt(e[Yh]);isNaN(a)&&(a=Es.zhStringToNumber(e[Yh])),i.start.assign("day",a)}else i.start.imply("day",n.date());if(e[Uh]){let a=parseInt(e[Uh]);isNaN(a)&&(a=Es.zhStringToYear(e[Uh])),i.start.assign("year",a)}else i.start.imply("year",n.year());return i}};_l.default=jh});var Nw=x(wl=>{"use strict";var DN=wl&&wl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wl,"__esModule",{value:!0});var EN=DN(Ue()),xN=ie(),Pw=Ma(),ON=new RegExp("(\\d+|["+Object.keys(Pw.NUMBER).join("")+"]+|\u534A|\u5E7E)(?:\\s*)(?:\u500B)?(\u79D2(?:\u9418)?|\u5206\u9418|\u5C0F\u6642|\u9418|\u65E5|\u5929|\u661F\u671F|\u79AE\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u904E)?\u5F8C|(?:\u4E4B)?\u5167)","i"),$h=1,RN=2,Wh=class extends xN.AbstractParserWithWordBoundaryChecking{innerPattern(){return ON}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=parseInt(e[$h]);if(isNaN(i)&&(i=Pw.zhStringToNumber(e[$h])),isNaN(i)){let l=e[$h];if(l==="\u5E7E")i=3;else if(l==="\u534A")i=.5;else return null}let s=EN.default(t.refDate),o=e[RN][0];return o.match(/[日天星禮月年]/)?(o=="\u65E5"||o=="\u5929"?s=s.add(i,"d"):o=="\u661F"||o=="\u79AE"?s=s.add(i*7,"d"):o=="\u6708"?s=s.add(i,"month"):o=="\u5E74"&&(s=s.add(i,"year")),n.start.assign("year",s.year()),n.start.assign("month",s.month()+1),n.start.assign("day",s.date()),n):(o=="\u79D2"?s=s.add(i,"second"):o=="\u5206"?s=s.add(i,"minute"):(o=="\u5C0F"||o=="\u9418")&&(s=s.add(i,"hour")),n.start.imply("year",s.year()),n.start.imply("month",s.month()+1),n.start.imply("day",s.date()),n.start.assign("hour",s.hour()),n.start.assign("minute",s.minute()),n.start.assign("second",s.second()),n)}};wl.default=Wh});var Fw=x(kl=>{"use strict";var CN=kl&&kl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kl,"__esModule",{value:!0});var MN=CN(Ue()),AN=ie(),Iw=Ma(),PN=new RegExp("(?<prefix>\u4E0A|\u4ECA|\u4E0B|\u9019|\u5462)(?:\u500B)?(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?<weekday>"+Object.keys(Iw.WEEKDAY_OFFSET).join("|")+")"),qh=class extends AN.AbstractParserWithWordBoundaryChecking{innerPattern(){return PN}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=e.groups.weekday,s=Iw.WEEKDAY_OFFSET[i];if(s===void 0)return null;let a=null,o=e.groups.prefix;o=="\u4E0A"?a="last":o=="\u4E0B"?a="next":(o=="\u4ECA"||o=="\u9019"||o=="\u5462")&&(a="this");let l=MN.default(t.refDate),u=!1,c=l.day();return a=="last"||a=="past"?(l=l.day(s-7),u=!0):a=="next"?(l=l.day(s+7),u=!0):a=="this"?l=l.day(s):Math.abs(s-7-c)<Math.abs(s-c)?l=l.day(s-7):Math.abs(s+7-c)<Math.abs(s-c)?l=l.day(s+7):l=l.day(s),n.start.assign("weekday",s),u?(n.start.assign("day",l.date()),n.start.assign("month",l.month()+1),n.start.assign("year",l.year())):(n.start.imply("day",l.date()),n.start.imply("month",l.month()+1),n.start.imply("year",l.year())),n}};kl.default=qh});var Lw=x(Sl=>{"use strict";var NN=Sl&&Sl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sl,"__esModule",{value:!0});var IN=NN(Ue()),FN=ie(),Vn=Ma(),LN=new RegExp("(?:\u7531|\u5F9E|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(Vn.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(Vn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(Vn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),UN=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u5F8C|\u5927\u5F8C|\u807D|\u6628|\u5C0B|\u7434)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348|\u665D)|\u671D(?:\u65E9)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348|\u665D)|\u664F(?:\u665D)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(Vn.NUMBER).join("")+"]+)(?:\\s*)(?:\u9EDE|\u6642|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(Vn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(Vn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),hc=1,gc=2,yc=3,bc=4,Tc=5,vc=6,Bn=7,Aa=8,_c=9,Hh=class extends FN.AbstractParserWithWordBoundaryChecking{innerPattern(){return LN}innerExtract(t,e){if(e.index>0&&t.text[e.index-1].match(/\w/))return null;let n=IN.default(t.refDate),i=t.createParsingResult(e.index,e[0]),s=n.clone();if(e[hc]){var a=e[hc];a=="\u660E"||a=="\u807D"?n.hour()>1&&s.add(1,"day"):a=="\u6628"||a=="\u5C0B"||a=="\u7434"?s.add(-1,"day"):a=="\u524D"?s.add(-2,"day"):a=="\u5927\u524D"?s.add(-3,"day"):a=="\u5F8C"?s.add(2,"day"):a=="\u5927\u5F8C"&&s.add(3,"day"),i.start.assign("day",s.date()),i.start.assign("month",s.month()+1),i.start.assign("year",s.year())}else if(e[bc]){var o=e[bc];o=="\u660E"||o=="\u807D"?s.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?s.add(-1,"day"):o=="\u524D"?s.add(-2,"day"):o=="\u5927\u524D"?s.add(-3,"day"):o=="\u5F8C"?s.add(2,"day"):o=="\u5927\u5F8C"&&s.add(3,"day"),i.start.assign("day",s.date()),i.start.assign("month",s.month()+1),i.start.assign("year",s.year())}else i.start.imply("day",s.date()),i.start.imply("month",s.month()+1),i.start.imply("year",s.year());let l=0,u=0,c=-1;if(e[Aa]){var d=parseInt(e[Aa]);if(isNaN(d)&&(d=Vn.zhStringToNumber(e[Aa])),d>=60)return null;i.start.assign("second",d)}if(l=parseInt(e[vc]),isNaN(l)&&(l=Vn.zhStringToNumber(e[vc])),e[Bn]?e[Bn]=="\u534A"?u=30:e[Bn]=="\u6B63"||e[Bn]=="\u6574"?u=0:(u=parseInt(e[Bn]),isNaN(u)&&(u=Vn.zhStringToNumber(e[Bn]))):l>100&&(u=l%100,l=Math.floor(l/100)),u>=60||l>24)return null;if(l>=12&&(c=1),e[_c]){if(l>12)return null;var f=e[_c][0].toLowerCase();f=="a"&&(c=0,l==12&&(l=0)),f=="p"&&(c=1,l!=12&&(l+=12))}else if(e[gc]){var p=e[gc],b=p[0];b=="\u671D"||b=="\u65E9"?(c=0,l==12&&(l=0)):b=="\u665A"&&(c=1,l!=12&&(l+=12))}else if(e[yc]){var T=e[yc],v=T[0];v=="\u4E0A"||v=="\u671D"||v=="\u65E9"||v=="\u51CC"?(c=0,l==12&&(l=0)):(v=="\u4E0B"||v=="\u664F"||v=="\u665A")&&(c=1,l!=12&&(l+=12))}else if(e[Tc]){var O=e[Tc],E=O[0];E=="\u4E0A"||E=="\u671D"||E=="\u65E9"||E=="\u51CC"?(c=0,l==12&&(l=0)):(E=="\u4E0B"||E=="\u664F"||E=="\u665A")&&(c=1,l!=12&&(l+=12))}if(i.start.assign("hour",l),i.start.assign("minute",u),c>=0?i.start.assign("meridiem",c):l<12?i.start.imply("meridiem",0):i.start.imply("meridiem",1),e=UN.exec(t.text.substring(i.index+i.text.length)),!e)return i.text.match(/^\d+$/)?null:i;let P=s.clone();if(i.end=t.createParsingComponents(),e[hc]){var a=e[hc];a=="\u660E"||a=="\u807D"?n.hour()>1&&P.add(1,"day"):a=="\u6628"||a=="\u5C0B"||a=="\u7434"?P.add(-1,"day"):a=="\u524D"?P.add(-2,"day"):a=="\u5927\u524D"?P.add(-3,"day"):a=="\u5F8C"?P.add(2,"day"):a=="\u5927\u5F8C"&&P.add(3,"day"),i.end.assign("day",P.date()),i.end.assign("month",P.month()+1),i.end.assign("year",P.year())}else if(e[bc]){var o=e[bc];o=="\u660E"||o=="\u807D"?P.add(1,"day"):o=="\u6628"||o=="\u5C0B"||o=="\u7434"?P.add(-1,"day"):o=="\u524D"?P.add(-2,"day"):o=="\u5927\u524D"?P.add(-3,"day"):o=="\u5F8C"?P.add(2,"day"):o=="\u5927\u5F8C"&&P.add(3,"day"),i.end.assign("day",P.date()),i.end.assign("month",P.month()+1),i.end.assign("year",P.year())}else i.end.imply("day",P.date()),i.end.imply("month",P.month()+1),i.end.imply("year",P.year());if(l=0,u=0,c=-1,e[Aa]){var d=parseInt(e[Aa]);if(isNaN(d)&&(d=Vn.zhStringToNumber(e[Aa])),d>=60)return null;i.end.assign("second",d)}if(l=parseInt(e[vc]),isNaN(l)&&(l=Vn.zhStringToNumber(e[vc])),e[Bn]?e[Bn]=="\u534A"?u=30:e[Bn]=="\u6B63"||e[Bn]=="\u6574"?u=0:(u=parseInt(e[Bn]),isNaN(u)&&(u=Vn.zhStringToNumber(e[Bn]))):l>100&&(u=l%100,l=Math.floor(l/100)),u>=60||l>24)return null;if(l>=12&&(c=1),e[_c]){if(l>12)return null;var f=e[_c][0].toLowerCase();f=="a"&&(c=0,l==12&&(l=0)),f=="p"&&(c=1,l!=12&&(l+=12)),i.start.isCertain("meridiem")||(c==0?(i.start.imply("meridiem",0),i.start.get("hour")==12&&i.start.assign("hour",0)):(i.start.imply("meridiem",1),i.start.get("hour")!=12&&i.start.assign("hour",i.start.get("hour")+12)))}else if(e[gc]){var p=e[gc],b=p[0];b=="\u671D"||b=="\u65E9"?(c=0,l==12&&(l=0)):b=="\u665A"&&(c=1,l!=12&&(l+=12))}else if(e[yc]){var T=e[yc],v=T[0];v=="\u4E0A"||v=="\u671D"||v=="\u65E9"||v=="\u51CC"?(c=0,l==12&&(l=0)):(v=="\u4E0B"||v=="\u664F"||v=="\u665A")&&(c=1,l!=12&&(l+=12))}else if(e[Tc]){var O=e[Tc],E=O[0];E=="\u4E0A"||E=="\u671D"||E=="\u65E9"||E=="\u51CC"?(c=0,l==12&&(l=0)):(E=="\u4E0B"||E=="\u664F"||E=="\u665A")&&(c=1,l!=12&&(l+=12))}return i.text=i.text+e[0],i.end.assign("hour",l),i.end.assign("minute",u),c>=0?i.end.assign("meridiem",c):i.start.isCertain("meridiem")&&i.start.get("meridiem")==1&&i.start.get("hour")>l?i.end.imply("meridiem",0):l>12&&i.end.imply("meridiem",1),i.end.date().getTime()<i.start.date().getTime()&&i.end.imply("day",i.end.get("day")+1),i}};Sl.default=Hh});var Yw=x(Dl=>{"use strict";var YN=Dl&&Dl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dl,"__esModule",{value:!0});var jN=YN(Ue()),$N=ie(),Uw=Ma(),WN=new RegExp("(?:\u661F\u671F|\u79AE\u62DC|\u9031)(?<weekday>"+Object.keys(Uw.WEEKDAY_OFFSET).join("|")+")"),Gh=class extends $N.AbstractParserWithWordBoundaryChecking{innerPattern(){return WN}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=e.groups.weekday,s=Uw.WEEKDAY_OFFSET[i];if(s===void 0)return null;let a=jN.default(t.refDate),o=!1,l=a.day();return Math.abs(s-7-l)<Math.abs(s-l)?a=a.day(s-7):Math.abs(s+7-l)<Math.abs(s-l)?a=a.day(s+7):a=a.day(s),n.start.assign("weekday",s),o?(n.start.assign("day",a.date()),n.start.assign("month",a.month()+1),n.start.assign("year",a.year())):(n.start.imply("day",a.date()),n.start.imply("month",a.month()+1),n.start.imply("year",a.year())),n}};Dl.default=Gh});var jw=x(El=>{"use strict";var qN=El&&El.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(El,"__esModule",{value:!0});var HN=qN($r()),Bh=class extends HN.default{patternBetween(){return/^\s*(至|到|\-|\~|～|－|ー)\s*$/i}};El.default=Bh});var $w=x(xl=>{"use strict";var GN=xl&&xl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xl,"__esModule",{value:!0});var BN=GN(ai()),Vh=class extends BN.default{patternBetween(){return/^\s*$/i}};xl.default=Vh});var Ww=x(ct=>{"use strict";var fi=ct&&ct.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ct,"__esModule",{value:!0});ct.createConfiguration=ct.createCasualConfiguration=ct.parseDate=ct.parse=ct.strict=ct.casual=ct.hant=void 0;var zh=br(),VN=fi(Zu()),zN=oi(),KN=fi(Cw()),QN=fi(Aw()),ZN=fi(Nw()),XN=fi(Fw()),JN=fi(Lw()),eI=fi(Yw()),tI=fi(jw()),nI=fi($w());ct.hant=new zh.Chrono(Kh());ct.casual=new zh.Chrono(Kh());ct.strict=new zh.Chrono(Qh());function rI(r,t,e){return ct.casual.parse(r,t,e)}ct.parse=rI;function iI(r,t,e){return ct.casual.parseDate(r,t,e)}ct.parseDate=iI;function Kh(){let r=Qh();return r.parsers.unshift(new KN.default),r}ct.createCasualConfiguration=Kh;function Qh(){let r=zN.includeCommonConfiguration({parsers:[new QN.default,new XN.default,new eI.default,new JN.default,new ZN.default],refiners:[new tI.default,new nI.default]});return r.refiners=r.refiners.filter(t=>!(t instanceof VN.default)),r}ct.createConfiguration=Qh});var Bw=x(Ol=>{"use strict";var sI=Ol&&Ol.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ol,"__esModule",{value:!0});var aI=sI(Ue()),oI=ie(),lI=1,qw=2,uI=3,Hw=4,Gw=5,cI=6,Zh=class extends oI.AbstractParserWithWordBoundaryChecking{innerPattern(t){return new RegExp("(\u73B0\u5728|\u7ACB(?:\u523B|\u5373)|\u5373\u523B)|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s|,|\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?","i")}innerExtract(t,e){let n=e.index,i=t.createParsingResult(n,e[0]),s=aI.default(t.refDate),a=s;if(e[lI])i.start.imply("hour",s.hour()),i.start.imply("minute",s.minute()),i.start.imply("second",s.second()),i.start.imply("millisecond",s.millisecond());else if(e[qw]){let o=e[qw],l=e[uI];o=="\u660E"?s.hour()>1&&(a=a.add(1,"day")):o=="\u6628"?a=a.add(-1,"day"):o=="\u524D"?a=a.add(-2,"day"):o=="\u5927\u524D"?a=a.add(-3,"day"):o=="\u540E"?a=a.add(2,"day"):o=="\u5927\u540E"&&(a=a.add(3,"day")),l=="\u65E9"?i.start.imply("hour",6):l=="\u665A"&&(i.start.imply("hour",22),i.start.imply("meridiem",1))}else if(e[Hw]){let l=e[Hw][0];l=="\u65E9"||l=="\u4E0A"?i.start.imply("hour",6):l=="\u4E0B"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):l=="\u4E2D"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):l=="\u591C"||l=="\u665A"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):l=="\u51CC"&&i.start.imply("hour",0)}else if(e[Gw]){let o=e[Gw];o=="\u660E"?s.hour()>1&&(a=a.add(1,"day")):o=="\u6628"?a=a.add(-1,"day"):o=="\u524D"?a=a.add(-2,"day"):o=="\u5927\u524D"?a=a.add(-3,"day"):o=="\u540E"?a=a.add(2,"day"):o=="\u5927\u540E"&&(a=a.add(3,"day"));let l=e[cI];if(l){let u=l[0];u=="\u65E9"||u=="\u4E0A"?i.start.imply("hour",6):u=="\u4E0B"?(i.start.imply("hour",15),i.start.imply("meridiem",1)):u=="\u4E2D"?(i.start.imply("hour",12),i.start.imply("meridiem",1)):u=="\u591C"||u=="\u665A"?(i.start.imply("hour",22),i.start.imply("meridiem",1)):u=="\u51CC"&&i.start.imply("hour",0)}}return i.start.assign("day",a.date()),i.start.assign("month",a.month()+1),i.start.assign("year",a.year()),i}};Ol.default=Zh});var Pa=x(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.zhStringToYear=dn.zhStringToNumber=dn.WEEKDAY_OFFSET=dn.NUMBER=void 0;dn.NUMBER={\u96F6:0,"\u3007":0,\u4E00:1,\u4E8C:2,\u4E24:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9,\u5341:10};dn.WEEKDAY_OFFSET={\u5929:0,\u65E5:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6};function dI(r){let t=0;for(let e=0;e<r.length;e++){let n=r[e];n==="\u5341"?t=t===0?dn.NUMBER[n]:t*dn.NUMBER[n]:t+=dn.NUMBER[n]}return t}dn.zhStringToNumber=dI;function fI(r){let t="";for(let e=0;e<r.length;e++){let n=r[e];t=t+dn.NUMBER[n]}return parseInt(t)}dn.zhStringToYear=fI});var zw=x(Rl=>{"use strict";var pI=Rl&&Rl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rl,"__esModule",{value:!0});var mI=pI(Ue()),hI=ie(),xs=Pa(),Xh=1,Vw=2,Jh=3,eg=class extends hI.AbstractParserWithWordBoundaryChecking{innerPattern(){return new RegExp("(\\d{2,4}|["+Object.keys(xs.NUMBER).join("")+"]{4}|["+Object.keys(xs.NUMBER).join("")+"]{2})?(?:\\s*)(?:\u5E74)?(?:[\\s|,|\uFF0C]*)(\\d{1,2}|["+Object.keys(xs.NUMBER).join("")+"]{1,3})(?:\\s*)(?:\u6708)(?:\\s*)(\\d{1,2}|["+Object.keys(xs.NUMBER).join("")+"]{1,3})?(?:\\s*)(?:\u65E5|\u53F7)?")}innerExtract(t,e){let n=mI.default(t.refDate),i=t.createParsingResult(e.index,e[0]),s=parseInt(e[Vw]);if(isNaN(s)&&(s=xs.zhStringToNumber(e[Vw])),i.start.assign("month",s),e[Jh]){let a=parseInt(e[Jh]);isNaN(a)&&(a=xs.zhStringToNumber(e[Jh])),i.start.assign("day",a)}else i.start.imply("day",n.date());if(e[Xh]){let a=parseInt(e[Xh]);isNaN(a)&&(a=xs.zhStringToYear(e[Xh])),i.start.assign("year",a)}else i.start.imply("year",n.year());return i}};Rl.default=eg});var Qw=x(Cl=>{"use strict";var gI=Cl&&Cl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Cl,"__esModule",{value:!0});var yI=gI(Ue()),bI=ie(),Kw=Pa(),TI=new RegExp("(\\d+|["+Object.keys(Kw.NUMBER).join("")+"]+|\u534A|\u51E0)(?:\\s*)(?:\u4E2A)?(\u79D2(?:\u949F)?|\u5206\u949F|\u5C0F\u65F6|\u949F|\u65E5|\u5929|\u661F\u671F|\u793C\u62DC|\u6708|\u5E74)(?:(?:\u4E4B|\u8FC7)?\u540E|(?:\u4E4B)?\u5185)","i"),tg=1,vI=2,ng=class extends bI.AbstractParserWithWordBoundaryChecking{innerPattern(){return TI}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=parseInt(e[tg]);if(isNaN(i)&&(i=Kw.zhStringToNumber(e[tg])),isNaN(i)){let l=e[tg];if(l==="\u51E0")i=3;else if(l==="\u534A")i=.5;else return null}let s=yI.default(t.refDate),o=e[vI][0];return o.match(/[日天星礼月年]/)?(o=="\u65E5"||o=="\u5929"?s=s.add(i,"d"):o=="\u661F"||o=="\u793C"?s=s.add(i*7,"d"):o=="\u6708"?s=s.add(i,"month"):o=="\u5E74"&&(s=s.add(i,"year")),n.start.assign("year",s.year()),n.start.assign("month",s.month()+1),n.start.assign("day",s.date()),n):(o=="\u79D2"?s=s.add(i,"second"):o=="\u5206"?s=s.add(i,"minute"):(o=="\u5C0F"||o=="\u949F")&&(s=s.add(i,"hour")),n.start.imply("year",s.year()),n.start.imply("month",s.month()+1),n.start.imply("day",s.date()),n.start.assign("hour",s.hour()),n.start.assign("minute",s.minute()),n.start.assign("second",s.second()),n)}};Cl.default=ng});var Xw=x(Ml=>{"use strict";var _I=Ml&&Ml.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ml,"__esModule",{value:!0});var wI=_I(Ue()),kI=ie(),Zw=Pa(),SI=new RegExp("(?<prefix>\u4E0A|\u4E0B|\u8FD9)(?:\u4E2A)?(?:\u661F\u671F|\u793C\u62DC|\u5468)(?<weekday>"+Object.keys(Zw.WEEKDAY_OFFSET).join("|")+")"),rg=class extends kI.AbstractParserWithWordBoundaryChecking{innerPattern(){return SI}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=e.groups.weekday,s=Zw.WEEKDAY_OFFSET[i];if(s===void 0)return null;let a=null,o=e.groups.prefix;o=="\u4E0A"?a="last":o=="\u4E0B"?a="next":o=="\u8FD9"&&(a="this");let l=wI.default(t.refDate),u=!1,c=l.day();return a=="last"||a=="past"?(l=l.day(s-7),u=!0):a=="next"?(l=l.day(s+7),u=!0):a=="this"?l=l.day(s):Math.abs(s-7-c)<Math.abs(s-c)?l=l.day(s-7):Math.abs(s+7-c)<Math.abs(s-c)?l=l.day(s+7):l=l.day(s),n.start.assign("weekday",s),u?(n.start.assign("day",l.date()),n.start.assign("month",l.month()+1),n.start.assign("year",l.year())):(n.start.imply("day",l.date()),n.start.imply("month",l.month()+1),n.start.imply("year",l.year())),n}};Ml.default=rg});var Jw=x(Al=>{"use strict";var DI=Al&&Al.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Al,"__esModule",{value:!0});var EI=DI(Ue()),xI=ie(),Kn=Pa(),OI=new RegExp("(?:\u4ECE|\u81EA)?(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(Kn.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(Kn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(Kn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),RI=new RegExp("(?:^\\s*(?:\u5230|\u81F3|\\-|\\\u2013|\\~|\\\u301C)\\s*)(?:(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(\u65E9|\u671D|\u665A)|(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668))|(\u4ECA|\u660E|\u524D|\u5927\u524D|\u540E|\u5927\u540E|\u6628)(?:\u65E5|\u5929)(?:[\\s,\uFF0C]*)(?:(\u4E0A(?:\u5348)|\u65E9(?:\u4E0A)|\u4E0B(?:\u5348)|\u665A(?:\u4E0A)|\u591C(?:\u665A)?|\u4E2D(?:\u5348)|\u51CC(?:\u6668)))?)?(?:[\\s,\uFF0C]*)(?:(\\d+|["+Object.keys(Kn.NUMBER).join("")+"]+)(?:\\s*)(?:\u70B9|\u65F6|:|\uFF1A)(?:\\s*)(\\d+|\u534A|\u6B63|\u6574|["+Object.keys(Kn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u5206|:|\uFF1A)?(?:\\s*)(\\d+|["+Object.keys(Kn.NUMBER).join("")+"]+)?(?:\\s*)(?:\u79D2)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?","i"),wc=1,kc=2,Sc=3,Dc=4,Ec=5,xc=6,zn=7,Na=8,Oc=9,ig=class extends xI.AbstractParserWithWordBoundaryChecking{innerPattern(){return OI}innerExtract(t,e){if(e.index>0&&t.text[e.index-1].match(/\w/))return null;let n=EI.default(t.refDate),i=t.createParsingResult(e.index,e[0]),s=n.clone();if(e[wc]){let c=e[wc];c=="\u660E"?n.hour()>1&&s.add(1,"day"):c=="\u6628"?s.add(-1,"day"):c=="\u524D"?s.add(-2,"day"):c=="\u5927\u524D"?s.add(-3,"day"):c=="\u540E"?s.add(2,"day"):c=="\u5927\u540E"&&s.add(3,"day"),i.start.assign("day",s.date()),i.start.assign("month",s.month()+1),i.start.assign("year",s.year())}else if(e[Dc]){let c=e[Dc];c=="\u660E"?s.add(1,"day"):c=="\u6628"?s.add(-1,"day"):c=="\u524D"?s.add(-2,"day"):c=="\u5927\u524D"?s.add(-3,"day"):c=="\u540E"?s.add(2,"day"):c=="\u5927\u540E"&&s.add(3,"day"),i.start.assign("day",s.date()),i.start.assign("month",s.month()+1),i.start.assign("year",s.year())}else i.start.imply("day",s.date()),i.start.imply("month",s.month()+1),i.start.imply("year",s.year());let a=0,o=0,l=-1;if(e[Na]){let c=parseInt(e[Na]);if(isNaN(c)&&(c=Kn.zhStringToNumber(e[Na])),c>=60)return null;i.start.assign("second",c)}if(a=parseInt(e[xc]),isNaN(a)&&(a=Kn.zhStringToNumber(e[xc])),e[zn]?e[zn]=="\u534A"?o=30:e[zn]=="\u6B63"||e[zn]=="\u6574"?o=0:(o=parseInt(e[zn]),isNaN(o)&&(o=Kn.zhStringToNumber(e[zn]))):a>100&&(o=a%100,a=Math.floor(a/100)),o>=60||a>24)return null;if(a>=12&&(l=1),e[Oc]){if(a>12)return null;let c=e[Oc][0].toLowerCase();c=="a"&&(l=0,a==12&&(a=0)),c=="p"&&(l=1,a!=12&&(a+=12))}else if(e[kc]){let d=e[kc][0];d=="\u65E9"?(l=0,a==12&&(a=0)):d=="\u665A"&&(l=1,a!=12&&(a+=12))}else if(e[Sc]){let d=e[Sc][0];d=="\u4E0A"||d=="\u65E9"||d=="\u51CC"?(l=0,a==12&&(a=0)):(d=="\u4E0B"||d=="\u665A")&&(l=1,a!=12&&(a+=12))}else if(e[Ec]){let d=e[Ec][0];d=="\u4E0A"||d=="\u65E9"||d=="\u51CC"?(l=0,a==12&&(a=0)):(d=="\u4E0B"||d=="\u665A")&&(l=1,a!=12&&(a+=12))}if(i.start.assign("hour",a),i.start.assign("minute",o),l>=0?i.start.assign("meridiem",l):a<12?i.start.imply("meridiem",0):i.start.imply("meridiem",1),e=RI.exec(t.text.substring(i.index+i.text.length)),!e)return i.text.match(/^\d+$/)?null:i;let u=s.clone();if(i.end=t.createParsingComponents(),e[wc]){let c=e[wc];c=="\u660E"?n.hour()>1&&u.add(1,"day"):c=="\u6628"?u.add(-1,"day"):c=="\u524D"?u.add(-2,"day"):c=="\u5927\u524D"?u.add(-3,"day"):c=="\u540E"?u.add(2,"day"):c=="\u5927\u540E"&&u.add(3,"day"),i.end.assign("day",u.date()),i.end.assign("month",u.month()+1),i.end.assign("year",u.year())}else if(e[Dc]){let c=e[Dc];c=="\u660E"?u.add(1,"day"):c=="\u6628"?u.add(-1,"day"):c=="\u524D"?u.add(-2,"day"):c=="\u5927\u524D"?u.add(-3,"day"):c=="\u540E"?u.add(2,"day"):c=="\u5927\u540E"&&u.add(3,"day"),i.end.assign("day",u.date()),i.end.assign("month",u.month()+1),i.end.assign("year",u.year())}else i.end.imply("day",u.date()),i.end.imply("month",u.month()+1),i.end.imply("year",u.year());if(a=0,o=0,l=-1,e[Na]){let c=parseInt(e[Na]);if(isNaN(c)&&(c=Kn.zhStringToNumber(e[Na])),c>=60)return null;i.end.assign("second",c)}if(a=parseInt(e[xc]),isNaN(a)&&(a=Kn.zhStringToNumber(e[xc])),e[zn]?e[zn]=="\u534A"?o=30:e[zn]=="\u6B63"||e[zn]=="\u6574"?o=0:(o=parseInt(e[zn]),isNaN(o)&&(o=Kn.zhStringToNumber(e[zn]))):a>100&&(o=a%100,a=Math.floor(a/100)),o>=60||a>24)return null;if(a>=12&&(l=1),e[Oc]){if(a>12)return null;let c=e[Oc][0].toLowerCase();c=="a"&&(l=0,a==12&&(a=0)),c=="p"&&(l=1,a!=12&&(a+=12)),i.start.isCertain("meridiem")||(l==0?(i.start.imply("meridiem",0),i.start.get("hour")==12&&i.start.assign("hour",0)):(i.start.imply("meridiem",1),i.start.get("hour")!=12&&i.start.assign("hour",i.start.get("hour")+12)))}else if(e[kc]){let d=e[kc][0];d=="\u65E9"?(l=0,a==12&&(a=0)):d=="\u665A"&&(l=1,a!=12&&(a+=12))}else if(e[Sc]){let d=e[Sc][0];d=="\u4E0A"||d=="\u65E9"||d=="\u51CC"?(l=0,a==12&&(a=0)):(d=="\u4E0B"||d=="\u665A")&&(l=1,a!=12&&(a+=12))}else if(e[Ec]){let d=e[Ec][0];d=="\u4E0A"||d=="\u65E9"||d=="\u51CC"?(l=0,a==12&&(a=0)):(d=="\u4E0B"||d=="\u665A")&&(l=1,a!=12&&(a+=12))}return i.text=i.text+e[0],i.end.assign("hour",a),i.end.assign("minute",o),l>=0?i.end.assign("meridiem",l):i.start.isCertain("meridiem")&&i.start.get("meridiem")==1&&i.start.get("hour")>a?i.end.imply("meridiem",0):a>12&&i.end.imply("meridiem",1),i.end.date().getTime()<i.start.date().getTime()&&i.end.imply("day",i.end.get("day")+1),i}};Al.default=ig});var tk=x(Pl=>{"use strict";var CI=Pl&&Pl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pl,"__esModule",{value:!0});var MI=CI(Ue()),AI=ie(),ek=Pa(),PI=new RegExp("(?:\u661F\u671F|\u793C\u62DC|\u5468)(?<weekday>"+Object.keys(ek.WEEKDAY_OFFSET).join("|")+")"),sg=class extends AI.AbstractParserWithWordBoundaryChecking{innerPattern(){return PI}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=e.groups.weekday,s=ek.WEEKDAY_OFFSET[i];if(s===void 0)return null;let a=MI.default(t.refDate),o=!1,l=a.day();return Math.abs(s-7-l)<Math.abs(s-l)?a=a.day(s-7):Math.abs(s+7-l)<Math.abs(s-l)?a=a.day(s+7):a=a.day(s),n.start.assign("weekday",s),o?(n.start.assign("day",a.date()),n.start.assign("month",a.month()+1),n.start.assign("year",a.year())):(n.start.imply("day",a.date()),n.start.imply("month",a.month()+1),n.start.imply("year",a.year())),n}};Pl.default=sg});var nk=x(Nl=>{"use strict";var NI=Nl&&Nl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nl,"__esModule",{value:!0});var II=NI($r()),ag=class extends II.default{patternBetween(){return/^\s*(至|到|-|~|～|－|ー)\s*$/i}};Nl.default=ag});var rk=x(Il=>{"use strict";var FI=Il&&Il.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Il,"__esModule",{value:!0});var LI=FI(ai()),og=class extends LI.default{patternBetween(){return/^\s*$/i}};Il.default=og});var ik=x(dt=>{"use strict";var pi=dt&&dt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(dt,"__esModule",{value:!0});dt.createConfiguration=dt.createCasualConfiguration=dt.parseDate=dt.parse=dt.strict=dt.casual=dt.hans=void 0;var lg=br(),UI=pi(Zu()),YI=oi(),jI=pi(Bw()),$I=pi(zw()),WI=pi(Qw()),qI=pi(Xw()),HI=pi(Jw()),GI=pi(tk()),BI=pi(nk()),VI=pi(rk());dt.hans=new lg.Chrono(ug());dt.casual=new lg.Chrono(ug());dt.strict=new lg.Chrono(cg());function zI(r,t,e){return dt.casual.parse(r,t,e)}dt.parse=zI;function KI(r,t,e){return dt.casual.parseDate(r,t,e)}dt.parseDate=KI;function ug(){let r=cg();return r.parsers.unshift(new jI.default),r}dt.createCasualConfiguration=ug;function cg(){let r=YI.includeCommonConfiguration({parsers:[new $I.default,new qI.default,new GI.default,new HI.default,new WI.default],refiners:[new BI.default,new VI.default]});return r.refiners=r.refiners.filter(t=>!(t instanceof UI.default)),r}dt.createConfiguration=cg});var ak=x(Dn=>{"use strict";var sk=Dn&&Dn.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),QI=Dn&&Dn.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),ZI=Dn&&Dn.__exportStar||function(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&sk(t,r,e)},XI=Dn&&Dn.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&sk(t,r,e);return QI(t,r),t};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.hans=void 0;ZI(Ww(),Dn);Dn.hans=XI(ik())});var fn=x(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.parseTimeUnits=De.TIME_UNITS_PATTERN=De.parseYear=De.YEAR_PATTERN=De.parseOrdinalNumberPattern=De.ORDINAL_NUMBER_PATTERN=De.parseNumberPattern=De.NUMBER_PATTERN=De.TIME_UNIT_DICTIONARY=De.ORDINAL_WORD_DICTIONARY=De.INTEGER_WORD_DICTIONARY=De.MONTH_DICTIONARY=De.FULL_MONTH_NAME_DICTIONARY=De.WEEKDAY_DICTIONARY=De.REGEX_PARTS=void 0;var Rc=Ke(),JI=Rt();De.REGEX_PARTS={leftBoundary:"([^\\p{L}\\p{N}_]|^)",rightBoundary:"(?=[^\\p{L}\\p{N}_]|$)",flags:"iu"};De.WEEKDAY_DICTIONARY={\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435:0,\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u044F:0,\u0432\u0441\u043A:0,"\u0432\u0441\u043A.":0,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A:1,\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A\u0430:1,\u043F\u043D:1,"\u043F\u043D.":1,\u0432\u0442\u043E\u0440\u043D\u0438\u043A:2,\u0432\u0442\u043E\u0440\u043D\u0438\u043A\u0430:2,\u0432\u0442:2,"\u0432\u0442.":2,\u0441\u0440\u0435\u0434\u0430:3,\u0441\u0440\u0435\u0434\u044B:3,\u0441\u0440\u0435\u0434\u0443:3,\u0441\u0440:3,"\u0441\u0440.":3,\u0447\u0435\u0442\u0432\u0435\u0440\u0433:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430:4,\u0447\u0442:4,"\u0447\u0442.":4,\u043F\u044F\u0442\u043D\u0438\u0446\u0430:5,\u043F\u044F\u0442\u043D\u0438\u0446\u0443:5,\u043F\u044F\u0442\u043D\u0438\u0446\u044B:5,\u043F\u0442:5,"\u043F\u0442.":5,\u0441\u0443\u0431\u0431\u043E\u0442\u0430:6,\u0441\u0443\u0431\u0431\u043E\u0442\u0443:6,\u0441\u0443\u0431\u0431\u043E\u0442\u044B:6,\u0441\u0431:6,"\u0441\u0431.":6};De.FULL_MONTH_NAME_DICTIONARY={\u044F\u043D\u0432\u0430\u0440\u044C:1,\u044F\u043D\u0432\u0430\u0440\u044F:1,\u044F\u043D\u0432\u0430\u0440\u0435:1,\u0444\u0435\u0432\u0440\u044F\u043B\u044C:2,\u0444\u0435\u0432\u0440\u044F\u043B\u044F:2,\u0444\u0435\u0432\u0440\u044F\u043B\u0435:2,\u043C\u0430\u0440\u0442:3,\u043C\u0430\u0440\u0442\u0430:3,\u043C\u0430\u0440\u0442\u0435:3,\u0430\u043F\u0440\u0435\u043B\u044C:4,\u0430\u043F\u0440\u0435\u043B\u044F:4,\u0430\u043F\u0440\u0435\u043B\u0435:4,\u043C\u0430\u0439:5,\u043C\u0430\u044F:5,\u043C\u0430\u0435:5,\u0438\u044E\u043D\u044C:6,\u0438\u044E\u043D\u044F:6,\u0438\u044E\u043D\u0435:6,\u0438\u044E\u043B\u044C:7,\u0438\u044E\u043B\u044F:7,\u0438\u044E\u043B\u0435:7,\u0430\u0432\u0433\u0443\u0441\u0442:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0430:8,\u0430\u0432\u0433\u0443\u0441\u0442\u0435:8,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F:9,\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u0435:9,\u043E\u043A\u0442\u044F\u0431\u0440\u044C:10,\u043E\u043A\u0442\u044F\u0431\u0440\u044F:10,\u043E\u043A\u0442\u044F\u0431\u0440\u0435:10,\u043D\u043E\u044F\u0431\u0440\u044C:11,\u043D\u043E\u044F\u0431\u0440\u044F:11,\u043D\u043E\u044F\u0431\u0440\u0435:11,\u0434\u0435\u043A\u0430\u0431\u0440\u044C:12,\u0434\u0435\u043A\u0430\u0431\u0440\u044F:12,\u0434\u0435\u043A\u0430\u0431\u0440\u0435:12};De.MONTH_DICTIONARY=Object.assign(Object.assign({},De.FULL_MONTH_NAME_DICTIONARY),{\u044F\u043D\u0432:1,"\u044F\u043D\u0432.":1,\u0444\u0435\u0432:2,"\u0444\u0435\u0432.":2,\u043C\u0430\u0440:3,"\u043C\u0430\u0440.":3,\u0430\u043F\u0440:4,"\u0430\u043F\u0440.":4,\u0430\u0432\u0433:8,"\u0430\u0432\u0433.":8,\u0441\u0435\u043D:9,"\u0441\u0435\u043D.":9,\u043E\u043A\u0442:10,"\u043E\u043A\u0442.":10,\u043D\u043E\u044F:11,"\u043D\u043E\u044F.":11,\u0434\u0435\u043A:12,"\u0434\u0435\u043A.":12});De.INTEGER_WORD_DICTIONARY={\u043E\u0434\u0438\u043D:1,\u043E\u0434\u043D\u0430:1,\u043E\u0434\u043D\u043E\u0439:1,\u043E\u0434\u043D\u0443:1,\u0434\u0432\u0435:2,\u0434\u0432\u0430:2,\u0434\u0432\u0443\u0445:2,\u0442\u0440\u0438:3,\u0442\u0440\u0435\u0445:3,\u0442\u0440\u0451\u0445:3,\u0447\u0435\u0442\u044B\u0440\u0435:4,\u0447\u0435\u0442\u044B\u0440\u0435\u0445:4,\u0447\u0435\u0442\u044B\u0440\u0451\u0445:4,\u043F\u044F\u0442\u044C:5,\u043F\u044F\u0442\u0438:5,\u0448\u0435\u0441\u0442\u044C:6,\u0448\u0435\u0441\u0442\u0438:6,\u0441\u0435\u043C\u044C:7,\u0441\u0435\u043C\u0438:7,\u0432\u043E\u0441\u0435\u043C\u044C:8,\u0432\u043E\u0441\u0435\u043C\u044C\u043C\u0438:8,\u0434\u0435\u0432\u044F\u0442\u044C:9,\u0434\u0435\u0432\u044F\u0442\u0438:9,\u0434\u0435\u0441\u044F\u0442\u044C:10,\u0434\u0435\u0441\u044F\u0442\u0438:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u044C:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u0438:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u044C:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u0438:12};De.ORDINAL_WORD_DICTIONARY={\u043F\u0435\u0440\u0432\u043E\u0435:1,\u043F\u0435\u0440\u0432\u043E\u0433\u043E:1,\u0432\u0442\u043E\u0440\u043E\u0435:2,\u0432\u0442\u043E\u0440\u043E\u0433\u043E:2,\u0442\u0440\u0435\u0442\u044C\u0435:3,\u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E:3,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435:4,\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E:4,\u043F\u044F\u0442\u043E\u0435:5,\u043F\u044F\u0442\u043E\u0433\u043E:5,\u0448\u0435\u0441\u0442\u043E\u0435:6,\u0448\u0435\u0441\u0442\u043E\u0433\u043E:6,\u0441\u0435\u0434\u044C\u043C\u043E\u0435:7,\u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E:7,\u0432\u043E\u0441\u044C\u043C\u043E\u0435:8,\u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E:8,\u0434\u0435\u0432\u044F\u0442\u043E\u0435:9,\u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E:9,\u0434\u0435\u0441\u044F\u0442\u043E\u0435:10,\u0434\u0435\u0441\u044F\u0442\u043E\u0433\u043E:10,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:11,\u043E\u0434\u0438\u043D\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:11,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:12,\u0434\u0432\u0435\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:12,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:13,\u0442\u0440\u0438\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:13,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:14,\u0447\u0435\u0442\u044B\u0440\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:14,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:15,\u043F\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:15,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:16,\u0448\u0435\u0441\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:16,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:17,\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:17,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:18,\u0432\u043E\u0441\u0435\u043C\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:18,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0435:19,\u0434\u0435\u0432\u044F\u0442\u043D\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:19,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0435:20,\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u043E\u0433\u043E:20,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":21,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0435":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0433\u043E":22,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0442\u0440\u0435\u0442\u044C\u0435\u0433\u043E":23,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0435":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043E\u0433\u043E":24,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0435":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u043F\u044F\u0442\u043E\u0433\u043E":25,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0435":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0448\u0435\u0441\u0442\u043E\u0433\u043E":26,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0435":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0441\u0435\u0434\u044C\u043C\u043E\u0433\u043E":27,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0435":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0432\u043E\u0441\u044C\u043C\u043E\u0433\u043E":28,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0435":29,"\u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044C \u0434\u0435\u0432\u044F\u0442\u043E\u0433\u043E":29,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0435:30,\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u043E\u0433\u043E:30,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0435":31,"\u0442\u0440\u0438\u0434\u0446\u0430\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0433\u043E":31};De.TIME_UNIT_DICTIONARY={\u0441\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u044B:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u0443:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0430:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0438:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u0435\u043A:"second",\u0441\u0435\u043A\u0443\u043D\u0434\u043E\u0447\u043A\u0443:"second",\u043C\u0438\u043D:"minute",\u043C\u0438\u043D\u0443\u0442\u0430:"minute",\u043C\u0438\u043D\u0443\u0442:"minute",\u043C\u0438\u043D\u0443\u0442\u044B:"minute",\u043C\u0438\u043D\u0443\u0442\u0443:"minute",\u043C\u0438\u043D\u0443\u0442\u043E\u043A:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0438:"minute",\u043C\u0438\u043D\u0443\u0442\u043A\u0443:"minute",\u0447\u0430\u0441:"hour",\u0447\u0430\u0441\u043E\u0432:"hour",\u0447\u0430\u0441\u0430:"hour",\u0447\u0430\u0441\u0443:"hour",\u0447\u0430\u0441\u0438\u043A\u043E\u0432:"hour",\u0447\u0430\u0441\u0438\u043A\u0430:"hour",\u0447\u0430\u0441\u0438\u043A\u0435:"hour",\u0447\u0430\u0441\u0438\u043A:"hour",\u0434\u0435\u043D\u044C:"d",\u0434\u043D\u044F:"d",\u0434\u043D\u0435\u0439:"d",\u0441\u0443\u0442\u043E\u043A:"d",\u0441\u0443\u0442\u043A\u0438:"d",\u043D\u0435\u0434\u0435\u043B\u044F:"week",\u043D\u0435\u0434\u0435\u043B\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u044E:"week",\u043D\u0435\u0434\u0435\u043B\u044C:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0435:"week",\u043D\u0435\u0434\u0435\u043B\u044C\u043A\u0438:"week",\u043D\u0435\u0434\u0435\u043B\u0435\u043A:"week",\u043C\u0435\u0441\u044F\u0446:"month",\u043C\u0435\u0441\u044F\u0446\u0435:"month",\u043C\u0435\u0441\u044F\u0446\u0435\u0432:"month",\u043C\u0435\u0441\u044F\u0446\u0430:"month",\u043A\u0432\u0430\u0440\u0442\u0430\u043B:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u0435:"quarter",\u043A\u0432\u0430\u0440\u0442\u0430\u043B\u043E\u0432:"quarter",\u0433\u043E\u0434:"year",\u0433\u043E\u0434\u0430:"year",\u0433\u043E\u0434\u0443:"year",\u0433\u043E\u0434\u043E\u0432:"year",\u043B\u0435\u0442:"year",\u0433\u043E\u0434\u0438\u043A:"year",\u0433\u043E\u0434\u0438\u043A\u0430:"year",\u0433\u043E\u0434\u0438\u043A\u043E\u0432:"year"};De.NUMBER_PATTERN=`(?:${Rc.matchAnyPattern(De.INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|\u043F\u043E\u043B|\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E|\u043F\u0430\u0440(?:\u044B|\u0443)|\\s{0,3})`;function lk(r){let t=r.toLowerCase();return De.INTEGER_WORD_DICTIONARY[t]!==void 0?De.INTEGER_WORD_DICTIONARY[t]:t.match(/несколько/)?3:t.match(/пол/)?.5:t.match(/пар/)?2:t===""?1:parseFloat(t)}De.parseNumberPattern=lk;De.ORDINAL_NUMBER_PATTERN=`(?:${Rc.matchAnyPattern(De.ORDINAL_WORD_DICTIONARY)}|[0-9]{1,2}(?:\u0433\u043E|\u043E\u0433\u043E|\u0435|\u043E\u0435)?)`;function eF(r){let t=r.toLowerCase();return De.ORDINAL_WORD_DICTIONARY[t]!==void 0?De.ORDINAL_WORD_DICTIONARY[t]:(t=t.replace(/(?:st|nd|rd|th)$/i,""),parseInt(t))}De.parseOrdinalNumberPattern=eF;var dg="(?:\\s+(?:\u0433\u043E\u0434\u0443|\u0433\u043E\u0434\u0430|\u0433\u043E\u0434|\u0433|\u0433.))?";De.YEAR_PATTERN=`(?:[1-9][0-9]{0,3}${dg}\\s*(?:\u043D.\u044D.|\u0434\u043E \u043D.\u044D.|\u043D. \u044D.|\u0434\u043E \u043D. \u044D.)|[1-2][0-9]{3}${dg}|[5-9][0-9]${dg})`;function tF(r){if(/(год|года|г|г.)/i.test(r)&&(r=r.replace(/(год|года|г|г.)/i,"")),/(до н.э.|до н. э.)/i.test(r))return r=r.replace(/(до н.э.|до н. э.)/i,""),-parseInt(r);if(/(н. э.|н.э.)/i.test(r))return r=r.replace(/(н. э.|н.э.)/i,""),parseInt(r);let t=parseInt(r);return JI.findMostLikelyADYear(t)}De.parseYear=tF;var uk=`(${De.NUMBER_PATTERN})\\s{0,3}(${Rc.matchAnyPattern(De.TIME_UNIT_DICTIONARY)})`,ok=new RegExp(uk,"i");De.TIME_UNITS_PATTERN=Rc.repeatedTimeunitPattern("(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s{0,3})?",uk);function nF(r){let t={},e=r,n=ok.exec(e);for(;n;)rF(t,n),e=e.substring(n[0].length).trim(),n=ok.exec(e);return t}De.parseTimeUnits=nF;function rF(r,t){let e=lk(t[1]),n=De.TIME_UNIT_DICTIONARY[t[2].toLowerCase()];r[n]=e}});var dk=x(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var Fl=fn(),iF=rt(),sF=ie(),ck=`(?:(?:\u043E\u043A\u043E\u043B\u043E|\u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E)\\s*(?:~\\s*)?)?(${Fl.TIME_UNITS_PATTERN})${Fl.REGEX_PARTS.rightBoundary}`,aF=new RegExp(`(?:\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435|\u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0438)\\s*${ck}`,Fl.REGEX_PARTS.flags),oF=new RegExp(ck,"i"),fg=class extends sF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Fl.REGEX_PARTS.leftBoundary}innerPattern(t){return t.option.forwardDate?oF:aF}innerExtract(t,e){let n=Fl.parseTimeUnits(e[1]);return iF.ParsingComponents.createRelativeFromReference(t.reference,n)}};pg.default=fg});var gk=x(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var lF=Rt(),Ll=fn(),hk=fn(),Cc=fn(),uF=Ke(),cF=ie(),dF=new RegExp(`(?:\u0441)?\\s*(${Cc.ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:\u043F\u043E|-|\u2013|\u0434\u043E)?\\s{0,3}(${Cc.ORDINAL_NUMBER_PATTERN}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${uF.matchAnyPattern(Ll.MONTH_DICTIONARY)})(?:(?:-|\\/|,?\\s{0,3})(${hk.YEAR_PATTERN}(?![^\\s]\\d)))?${Ll.REGEX_PARTS.rightBoundary}`,Ll.REGEX_PARTS.flags),fk=1,pk=2,fF=3,mk=4,mg=class extends cF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ll.REGEX_PARTS.leftBoundary}innerPattern(){return dF}innerExtract(t,e){let n=t.createParsingResult(e.index,e[0]),i=Ll.MONTH_DICTIONARY[e[fF].toLowerCase()],s=Cc.parseOrdinalNumberPattern(e[fk]);if(s>31)return e.index=e.index+e[fk].length,null;if(n.start.assign("month",i),n.start.assign("day",s),e[mk]){let a=hk.parseYear(e[mk]);n.start.assign("year",a)}else{let a=lF.findYearClosestToRef(t.refDate,s,i);n.start.imply("year",a)}if(e[pk]){let a=Cc.parseOrdinalNumberPattern(e[pk]);n.end=n.start.clone(),n.end.assign("day",a)}return n}};hg.default=mg});var Tk=x(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var Ul=fn(),pF=Rt(),mF=Ke(),bk=fn(),hF=ie(),gF=new RegExp(`((?:\u0432)\\s*)?(${mF.matchAnyPattern(Ul.MONTH_DICTIONARY)})\\s*(?:[,-]?\\s*(${bk.YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,Ul.REGEX_PARTS.flags),yF=2,yk=3,gg=class extends hF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ul.REGEX_PARTS.leftBoundary}innerPattern(){return gF}innerExtract(t,e){let n=e[yF].toLowerCase();if(e[0].length<=3&&!Ul.FULL_MONTH_NAME_DICTIONARY[n])return null;let i=t.createParsingResult(e.index,e.index+e[0].length);i.start.imply("day",1);let s=Ul.MONTH_DICTIONARY[n];if(i.start.assign("month",s),e[yk]){let a=bk.parseYear(e[yk]);i.start.assign("year",a)}else{let a=pF.findYearClosestToRef(t.refDate,1,s);i.start.imply("year",a)}return i}};yg.default=gg});var _k=x(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var Mc=ht(),bF=vs(),vk=fn(),bg=class extends bF.AbstractTimeExpressionParser{constructor(t){super(t)}patternFlags(){return vk.REGEX_PARTS.flags}primaryPatternLeftBoundary(){return"(^|\\s|T|(?:[^\\p{L}\\p{N}_]))"}followingPhase(){return"\\s*(?:\\-|\\\u2013|\\~|\\\u301C|\u0434\u043E|\u0438|\u043F\u043E|\\?)\\s*"}primaryPrefix(){return"(?:(?:\u0432|\u0441)\\s*)??"}primarySuffix(){return`(?:\\s*(?:\u0443\u0442\u0440\u0430|\u0432\u0435\u0447\u0435\u0440\u0430|\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F))?(?!\\/)${vk.REGEX_PARTS.rightBoundary}`}extractPrimaryTimeComponents(t,e){let n=super.extractPrimaryTimeComponents(t,e);if(n){if(e[0].endsWith("\u0432\u0435\u0447\u0435\u0440\u0430")){let i=n.get("hour");i>=6&&i<12?(n.assign("hour",n.get("hour")+12),n.assign("meridiem",Mc.Meridiem.PM)):i<6&&n.assign("meridiem",Mc.Meridiem.AM)}if(e[0].endsWith("\u043F\u043E\u0441\u043B\u0435 \u043F\u043E\u043B\u0443\u0434\u043D\u044F")){n.assign("meridiem",Mc.Meridiem.PM);let i=n.get("hour");i>=0&&i<=6&&n.assign("hour",n.get("hour")+12)}e[0].endsWith("\u0443\u0442\u0440\u0430")&&(n.assign("meridiem",Mc.Meridiem.AM),n.get("hour")<12&&n.assign("hour",n.get("hour")))}return n}};Tg.default=bg});var wk=x(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var Ac=fn(),TF=rt(),vF=ie(),_F=Hn(),wF=new RegExp(`(${Ac.TIME_UNITS_PATTERN})\\s{0,5}\u043D\u0430\u0437\u0430\u0434(?=(?:\\W|$))`,Ac.REGEX_PARTS.flags),vg=class extends vF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Ac.REGEX_PARTS.leftBoundary}innerPattern(){return wF}innerExtract(t,e){let n=Ac.parseTimeUnits(e[1]),i=_F.reverseTimeUnits(n);return TF.ParsingComponents.createRelativeFromReference(t.reference,i)}};_g.default=vg});var kk=x(Yl=>{"use strict";var kF=Yl&&Yl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yl,"__esModule",{value:!0});var SF=kF($r()),wg=class extends SF.default{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}};Yl.default=wg});var Sk=x(jl=>{"use strict";var DF=jl&&jl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jl,"__esModule",{value:!0});var EF=DF(ai()),kg=class extends EF.default{patternBetween(){return new RegExp("^\\s*(T|\u0432|,|-)?\\s*$")}};jl.default=kg});var Dk=x(mi=>{"use strict";var xF=mi&&mi.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),OF=mi&&mi.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),RF=mi&&mi.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&xF(t,r,e);return OF(t,r),t};Object.defineProperty(mi,"__esModule",{value:!0});var CF=ie(),$l=RF(ui()),Sg=fn(),MF=new RegExp(`(?:\u0441|\u0441\u043E)?\\s*(\u0441\u0435\u0433\u043E\u0434\u043D\u044F|\u0432\u0447\u0435\u0440\u0430|\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430|\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430)${Sg.REGEX_PARTS.rightBoundary}`,Sg.REGEX_PARTS.flags),Dg=class extends CF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Sg.REGEX_PARTS.leftBoundary}innerPattern(t){return MF}innerExtract(t,e){let n=e[1].toLowerCase(),i=t.createParsingComponents();switch(n){case"\u0441\u0435\u0433\u043E\u0434\u043D\u044F":return $l.today(t.reference);case"\u0432\u0447\u0435\u0440\u0430":return $l.yesterday(t.reference);case"\u0437\u0430\u0432\u0442\u0440\u0430":return $l.tomorrow(t.reference);case"\u043F\u043E\u0441\u043B\u0435\u0437\u0430\u0432\u0442\u0440\u0430":return $l.theDayAfter(t.reference,2);case"\u043F\u043E\u0437\u0430\u0432\u0447\u0435\u0440\u0430":return $l.theDayBefore(t.reference,2)}return i}};mi.default=Dg});var Ek=x(kr=>{"use strict";var AF=kr&&kr.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),PF=kr&&kr.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),NF=kr&&kr.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&AF(t,r,e);return PF(t,r),t},IF=kr&&kr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kr,"__esModule",{value:!0});var FF=ie(),Os=NF(ui()),LF=qn(),UF=IF(Ue()),Eg=fn(),YF=new RegExp(`(\u0441\u0435\u0439\u0447\u0430\u0441|\u043F\u0440\u043E\u0448\u043B\u044B\u043C\\s*\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u043F\u0440\u043E\u0448\u043B\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u0441\u0435\u0433\u043E\u0434\u043D\u044F\\s*\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u043E\u0439\\s*\u043D\u043E\u0447\u044C\u044E|\u043D\u043E\u0447\u044C\u044E|\u044D\u0442\u0438\u043C \u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u043E\u043C|\u0443\u0442\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u0434\u0435\u043D\u044C|\u0432\u0435\u0447\u0435\u0440\u043E\u043C|\u0432\u0435\u0447\u0435\u0440\u0430|\u0432\\s*\u043F\u043E\u043B\u043D\u043E\u0447\u044C)${Eg.REGEX_PARTS.rightBoundary}`,Eg.REGEX_PARTS.flags),xg=class extends FF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Eg.REGEX_PARTS.leftBoundary}innerPattern(){return YF}innerExtract(t,e){let n=UF.default(t.refDate),i=e[0].toLowerCase(),s=t.createParsingComponents();if(i==="\u0441\u0435\u0439\u0447\u0430\u0441")return Os.now(t.reference);if(i==="\u0432\u0435\u0447\u0435\u0440\u043E\u043C"||i==="\u0432\u0435\u0447\u0435\u0440\u0430")return Os.evening(t.reference);if(i.endsWith("\u0443\u0442\u0440\u043E\u043C")||i.endsWith("\u0443\u0442\u0440\u0430"))return Os.morning(t.reference);if(i.match(/в\s*полдень/))return Os.noon(t.reference);if(i.match(/прошлой\s*ночью/))return Os.lastNight(t.reference);if(i.match(/прошлым\s*вечером/))return Os.yesterdayEvening(t.reference);if(i.match(/следующей\s*ночью/)){let a=n.hour()<22?1:2;n=n.add(a,"day"),LF.assignSimilarDate(s,n),s.imply("hour",0)}return i.match(/в\s*полночь/)||i.endsWith("\u043D\u043E\u0447\u044C\u044E")?Os.midnight(t.reference):s}};kr.default=xg});var xk=x(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});var Wl=fn(),jF=Ke(),$F=ie(),WF=ws(),qF=new RegExp(`(?:(?:,|\\(|\uFF08)\\s*)?(?:\u0432\\s*?)?(?:(\u044D\u0442\u0443|\u044D\u0442\u043E\u0442|\u043F\u0440\u043E\u0448\u043B\u044B\u0439|\u043F\u0440\u043E\u0448\u043B\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E)\\s*)?(${jF.matchAnyPattern(Wl.WEEKDAY_DICTIONARY)})(?:\\s*(?:,|\\)|\uFF09))?(?:\\s*\u043D\u0430\\s*(\u044D\u0442\u043E\u0439|\u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439)\\s*\u043D\u0435\u0434\u0435\u043B\u0435)?${Wl.REGEX_PARTS.rightBoundary}`,Wl.REGEX_PARTS.flags),HF=1,GF=2,BF=3,Og=class extends $F.AbstractParserWithWordBoundaryChecking{innerPattern(){return qF}patternLeftBoundary(){return Wl.REGEX_PARTS.leftBoundary}innerExtract(t,e){let n=e[GF].toLowerCase(),i=Wl.WEEKDAY_DICTIONARY[n],s=e[HF],a=e[BF],o=s||a;o=o||"",o=o.toLowerCase();let l=null;o=="\u043F\u0440\u043E\u0448\u043B\u044B\u0439"||o=="\u043F\u0440\u043E\u0448\u043B\u0443\u044E"||o=="\u043F\u0440\u043E\u0448\u043B\u043E\u0439"?l="last":o=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439"||o=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E"||o=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||o=="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E"?l="next":(o=="\u044D\u0442\u043E\u0442"||o=="\u044D\u0442\u0443"||o=="\u044D\u0442\u043E\u0439")&&(l="this");let u=WF.toDayJSWeekday(t.refDate,i,l);return t.createParsingComponents().assign("weekday",i).imply("day",u.date()).imply("month",u.month()+1).imply("year",u.year())}};Rg.default=Og});var Rk=x(Hl=>{"use strict";var VF=Hl&&Hl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Hl,"__esModule",{value:!0});var ql=fn(),Ok=rt(),zF=VF(Ue()),KF=ie(),QF=Ke(),ZF=new RegExp(`(\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C|\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439|\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439|\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C|\u043D\u0430 \u044D\u0442\u043E\u0439|\u0432 \u044D\u0442\u043E\u043C)\\s*(${QF.matchAnyPattern(ql.TIME_UNIT_DICTIONARY)})(?=\\s*)${ql.REGEX_PARTS.rightBoundary}`,ql.REGEX_PARTS.flags),XF=1,JF=2,Cg=class extends KF.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return ql.REGEX_PARTS.leftBoundary}innerPattern(){return ZF}innerExtract(t,e){let n=e[XF].toLowerCase(),i=e[JF].toLowerCase(),s=ql.TIME_UNIT_DICTIONARY[i];if(n=="\u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439"||n=="\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C"){let l={};return l[s]=1,Ok.ParsingComponents.createRelativeFromReference(t.reference,l)}if(n=="\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u043C"||n=="\u043D\u0430 \u043F\u0440\u043E\u0448\u043B\u043E\u0439"){let l={};return l[s]=-1,Ok.ParsingComponents.createRelativeFromReference(t.reference,l)}let a=t.createParsingComponents(),o=zF.default(t.reference.instant);return s.match(/week/i)?(o=o.add(-o.get("d"),"d"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.imply("year",o.year())):s.match(/month/i)?(o=o.add(-o.date()+1,"d"),a.imply("day",o.date()),a.assign("year",o.year()),a.assign("month",o.month()+1)):s.match(/year/i)&&(o=o.add(-o.date()+1,"d"),o=o.add(-o.month(),"month"),a.imply("day",o.date()),a.imply("month",o.month()+1),a.assign("year",o.year())),a}};Hl.default=Cg});var Ck=x(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});var Gl=fn(),eL=rt(),tL=ie(),nL=Hn(),rL=new RegExp(`(\u044D\u0442\u0438|\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435|\u043F\u0440\u043E\u0448\u043B\u044B\u0435|\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435|\u043F\u043E\u0441\u043B\u0435|\u0447\u0435\u0440\u0435\u0437|\\+|-)\\s*(${Gl.TIME_UNITS_PATTERN})${Gl.REGEX_PARTS.rightBoundary}`,Gl.REGEX_PARTS.flags),Mg=class extends tL.AbstractParserWithWordBoundaryChecking{patternLeftBoundary(){return Gl.REGEX_PARTS.leftBoundary}innerPattern(){return rL}innerExtract(t,e){let n=e[1].toLowerCase(),i=Gl.parseTimeUnits(e[2]);switch(n){case"\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435":case"\u043F\u0440\u043E\u0448\u043B\u044B\u0435":case"-":i=nL.reverseTimeUnits(i);break}return eL.ParsingComponents.createRelativeFromReference(t.reference,i)}};Ag.default=Mg});var Pk=x(St=>{"use strict";var En=St&&St.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(St,"__esModule",{value:!0});St.createConfiguration=St.createCasualConfiguration=St.parseDate=St.parse=St.strict=St.casual=void 0;var iL=En(dk()),sL=En(gk()),aL=En(Tk()),oL=En(_k()),lL=En(wk()),uL=En(kk()),cL=En(Sk()),dL=oi(),fL=En(Dk()),pL=En(Ek()),mL=En(xk()),hL=En(Rk()),Mk=br(),gL=En(ks()),yL=En(Ck());St.casual=new Mk.Chrono(Ak());St.strict=new Mk.Chrono(Pg(!0));function bL(r,t,e){return St.casual.parse(r,t,e)}St.parse=bL;function TL(r,t,e){return St.casual.parseDate(r,t,e)}St.parseDate=TL;function Ak(){let r=Pg(!1);return r.parsers.unshift(new fL.default),r.parsers.unshift(new pL.default),r.parsers.unshift(new aL.default),r.parsers.unshift(new hL.default),r.parsers.unshift(new yL.default),r}St.createCasualConfiguration=Ak;function Pg(r=!0){return dL.includeCommonConfiguration({parsers:[new gL.default(!0),new iL.default,new sL.default,new mL.default,new oL.default(r),new lL.default],refiners:[new cL.default,new uL.default]},r)}St.createConfiguration=Pg});var ht=x(Me=>{"use strict";var vL=Me&&Me.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}),_L=Me&&Me.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),Wi=Me&&Me.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&vL(t,r,e);return _L(t,r),t};Object.defineProperty(Me,"__esModule",{value:!0});Me.parseDate=Me.parse=Me.casual=Me.strict=Me.ru=Me.zh=Me.nl=Me.pt=Me.ja=Me.fr=Me.de=Me.Meridiem=Me.Chrono=Me.en=void 0;var Ng=Wi(Zp());Me.en=Ng;var wL=br();Object.defineProperty(Me,"Chrono",{enumerable:!0,get:function(){return wL.Chrono}});var kL;(function(r){r[r.AM=0]="AM",r[r.PM=1]="PM"})(kL=Me.Meridiem||(Me.Meridiem={}));var SL=Wi(Wv());Me.de=SL;var DL=Wi(y_());Me.fr=DL;var EL=Wi(E_());Me.ja=EL;var xL=Wi(W_());Me.pt=xL;var OL=Wi(Ew());Me.nl=OL;var RL=Wi(ak());Me.zh=RL;var CL=Wi(Pk());Me.ru=CL;Me.strict=Ng.strict;Me.casual=Ng.casual;function ML(r,t,e){return Me.casual.parse(r,t,e)}Me.parse=ML;function AL(r,t,e){return Me.casual.parseDate(r,t,e)}Me.parseDate=AL});var nn,Ig=X(()=>{"use strict";nn=class{constructor(t,e){this.start=t,this.end=e,e.isBefore(t)&&(this.start=e,this.end=t),this.start=this.start.startOf("day"),this.end=this.end.startOf("day")}static buildRelative(t){let e=t==="week"?"isoWeek":t;return new nn(window.moment().startOf(e).startOf("day"),window.moment().endOf(e).startOf("day"))}static buildInvalid(){return new nn(window.moment.invalid(),window.moment.invalid())}isValid(){return this.start.isValid()&&this.end.isValid()}moveToPrevious(t){let e=window.moment.duration(1,t);this.start.subtract(e),this.end.subtract(e),(t==="month"||t==="quarter")&&(this.end=this.end.endOf(t).startOf("day"))}moveToNext(t){let e=window.moment.duration(1,t);this.start.add(e),this.end.add(e),(t==="month"||t==="quarter")&&(this.end=this.end.endOf(t).startOf("day"))}}});var Pc,xn,Fg=X(()=>{"use strict";Pc=qo(ht());Ig();xn=class{static parseDate(t,e=!1){return window.moment(Pc.parseDate(t,void 0,{forwardDate:e})).startOf("day")}static parseDateRange(t,e=!1){let n=[xn.parseRelativeDateRange,xn.parseNumberedDateRange,xn.parseAbsoluteDateRange];for(let i of n){let s=i(t,e);if(s.isValid())return s}return nn.buildInvalid()}static parseAbsoluteDateRange(t,e){let n=Pc.parse(t,void 0,{forwardDate:e});if(n.length===0)return nn.buildInvalid();let i=n[0].start,s=n[1]&&n[1].start?n[1].start:i,a=window.moment(i.date()),o=window.moment(s.date());return new nn(a,o)}static parseRelativeDateRange(t,e){let n=/(last|this|next) (week|month|quarter|year)/,i=t.match(n);if(i&&i.length===3){let s=i[1],a=i[2],o=nn.buildRelative(a);switch(s){case"last":o.moveToPrevious(a);break;case"next":o.moveToNext(a);break}return o}return nn.buildInvalid()}static parseNumberedDateRange(t,e){let n=[[/^\s*[0-9]{4}\s*$/,"YYYY","year"],[/^\s*[0-9]{4}-Q[1-4]\s*$/,"YYYY-Q","quarter"],[/^\s*[0-9]{4}-[0-9]{2}\s*$/,"YYYY-MM","month"],[/^\s*[0-9]{4}-W[0-9]{2}\s*$/,"YYYY-WW","isoWeek"]];for(let[i,s,a]of n){let o=t.match(i);if(o){let l=o[0].trim();return new nn(window.moment(l,s).startOf(a),window.moment(l,s).endOf(a))}}return nn.buildInvalid()}}});function Nc(r){for(let[t,e]of Object.entries(PL))r=r.replace(RegExp(`\\b${t}\\s`,"i"),e);return r}var PL,Lg=X(()=>{"use strict";PL={td:"today",tm:"tomorrow",yd:"yesterday",tw:"this week",nw:"next week",weekend:"sat",we:"sat"}});function Qn(r,t){return r!==null&&t===null?-1:r===null&&t!==null?1:r!==null&&t!==null?r.isValid()&&!t.isValid()?1:!r.isValid()&&t.isValid()?-1:r.isAfter(t)?1:r.isBefore(t)?-1:0:0}function NL(r,t,e=void 0){if(!t)return`<i>no ${r} date</i>`;let n=Ug.parseDate(t,e,{forwardDate:e!=null});return n!==null?window.moment(n).format("YYYY-MM-DD"):`<i>invalid ${r} date</i>`}function Nk(r,t,e){return NL(r,t,e?new Date:void 0)}function Rs(r,t){let e=null,n=Ug.parseDate(r,new Date,{forwardDate:t});return n!==null&&(e=window.moment(n)),e}var Ug,Cs=X(()=>{"use strict";Ug=qo(ht())});var Zn,Ic=X(()=>{"use strict";Cs();Zn=class{constructor({startDate:t=null,scheduledDate:e=null,dueDate:n=null}){this.startDate=t!=null?t:null,this.scheduledDate=e!=null?e:null,this.dueDate=n!=null?n:null,this.referenceDate=this.getReferenceDate()}getReferenceDate(){return this.dueDate?window.moment(this.dueDate):this.scheduledDate?window.moment(this.scheduledDate):this.startDate?window.moment(this.startDate):null}isIdenticalTo(t){return!(Qn(this.startDate,t.startDate)!==0||Qn(this.scheduledDate,t.scheduledDate)!==0||Qn(this.dueDate,t.dueDate)!==0)}next(t,e=!1){if(this.referenceDate===null)return new Zn({startDate:null,scheduledDate:null,dueDate:null});let n=this.startDate!==null,i=this.dueDate!==null,a=e&&(n||i),o=this.nextOccurrenceDate(this.startDate,t),l=a?null:this.nextOccurrenceDate(this.scheduledDate,t),u=this.nextOccurrenceDate(this.dueDate,t);return new Zn({startDate:o,scheduledDate:l,dueDate:u})}nextOccurrenceDate(t,e){if(t===null)return null;let n=window.moment.duration(t.diff(this.referenceDate)),i=window.moment(e);return i.add(Math.round(n.asDays()),"days"),i}}});var Fc,ft,Ms=X(()=>{Fc=["MO","TU","WE","TH","FR","SA","SU"],ft=function(){function r(t,e){if(e===0)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=e}return r.fromStr=function(t){return new r(Fc.indexOf(t))},r.prototype.nth=function(t){return this.n===t?this:new r(this.weekday,t)},r.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},r.prototype.toString=function(){var t=Fc[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},r.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},r}()});function As(r,t,e){e===void 0&&(e=" ");var n=String(r);return t=t>>0,n.length>t?String(n):(t=t-n.length,t>e.length&&(e+=Ie(e,t/e.length)),e.slice(0,t)+String(n))}var Je,On,Yg,At,Xn,Ie,Ik,Fk,Wt,Lc,Rn,at,Fe,rn=X(()=>{Ms();Je=function(r){return r!=null},On=function(r){return typeof r=="number"},Yg=function(r){return typeof r=="string"&&Fc.includes(r)},At=Array.isArray,Xn=function(r,t){t===void 0&&(t=r),arguments.length===1&&(t=r,r=0);for(var e=[],n=r;n<t;n++)e.push(n);return e},Ie=function(r,t){var e=0,n=[];if(At(r))for(;e<t;e++)n[e]=[].concat(r);else for(;e<t;e++)n[e]=r;return n},Ik=function(r){return At(r)?r:[r]};Fk=function(r,t,e){var n=r.split(t);return e?n.slice(0,e).concat([n.slice(e).join(t)]):n},Wt=function(r,t){var e=r%t;return e*t<0?e+t:e},Lc=function(r,t){return{div:Math.floor(r/t),mod:Wt(r,t)}},Rn=function(r){return!Je(r)||r.length===0},at=function(r){return!Rn(r)},Fe=function(r,t){return at(r)&&r.indexOf(t)!==-1}});var Hr,IL,Yk,Uc,jk,FL,Ia,jg,Ps,Lk,LL,Bl,Yc,UL,hi,$g,jc,$c,Wg,gi,Fa,Vl,Uk,$k,qt=X(()=>{rn();Hr=function(r,t,e,n,i,s){return n===void 0&&(n=0),i===void 0&&(i=0),s===void 0&&(s=0),new Date(Date.UTC(r,t-1,e,n,i,s))},IL=[31,28,31,30,31,30,31,31,30,31,30,31],Yk=1e3*60*60*24,Uc=9999,jk=Hr(1970,1,1),FL=[6,0,1,2,3,4,5],Ia=function(r){return r%4===0&&r%100!==0||r%400===0},jg=function(r){return r instanceof Date},Ps=function(r){return jg(r)&&!isNaN(r.getTime())},Lk=function(r){return r.getTimezoneOffset()*60*1e3},LL=function(r,t){var e=r.getTime()-Lk(r),n=t.getTime()-Lk(t),i=e-n;return Math.round(i/Yk)},Bl=function(r){return LL(r,jk)},Yc=function(r){return new Date(jk.getTime()+r*Yk)},UL=function(r){var t=r.getUTCMonth();return t===1&&Ia(r.getUTCFullYear())?29:IL[t]},hi=function(r){return FL[r.getUTCDay()]},$g=function(r,t){var e=Hr(r,t+1,1);return[hi(e),UL(e)]},jc=function(r,t){return t=t||r,new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},$c=function(r){var t=new Date(r.getTime());return t},Wg=function(r){for(var t=[],e=0;e<r.length;e++)t.push($c(r[e]));return t},gi=function(r){r.sort(function(t,e){return t.getTime()-e.getTime()})},Fa=function(r,t){t===void 0&&(t=!0);var e=new Date(r);return[As(e.getUTCFullYear().toString(),4,"0"),As(e.getUTCMonth()+1,2,"0"),As(e.getUTCDate(),2,"0"),"T",As(e.getUTCHours(),2,"0"),As(e.getUTCMinutes(),2,"0"),As(e.getUTCSeconds(),2,"0"),t?"Z":""].join("")},Vl=function(r){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,e=t.exec(r);if(!e)throw new Error("Invalid UNTIL value: ".concat(r));return new Date(Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[5],10)||0,parseInt(e[6],10)||0,parseInt(e[7],10)||0))},Uk=function(r,t){var e=r.toLocaleString("sv-SE",{timeZone:t});return e.replace(" ","T")+"Z"},$k=function(r,t){var e=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(Uk(r,e)),i=new Date(Uk(r,t!=null?t:"UTC")),s=i.getTime()-n.getTime();return new Date(r.getTime()-s)}});var YL,yi,Wc=X(()=>{YL=function(){function r(t,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=e,t==="between"?(this.maxDate=e.inc?e.before:new Date(e.before.getTime()-1),this.minDate=e.inc?e.after:new Date(e.after.getTime()+1)):t==="before"?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):t==="after"&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}return r.prototype.accept=function(t){++this.total;var e=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(e)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return e?!0:(this.add(t),!1);return this.add(t)},r.prototype.add=function(t){return this._result.push(t),!0},r.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}},r.prototype.clone=function(){return new r(this.method,this.args)},r}(),yi=YL});function La(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qg(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Q(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return r.concat(s||Array.prototype.slice.call(t))}var qg,Pt,bi=X(()=>{qg=function(r,t){return qg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},qg(r,t)};Pt=function(){return Pt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},Pt.apply(this,arguments)}});var jL,Hg,Wk=X(()=>{bi();Wc();jL=function(r){La(t,r);function t(e,n,i){var s=r.call(this,e,n)||this;return s.iterator=i,s}return t.prototype.add=function(e){return this.iterator(e,this._result.length)?(this._result.push(e),!0):!1},t}(yi),Hg=jL});var $L,Ns,qc=X(()=>{$L={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Ns=$L});var qk,WL,qL,HL,Gr,Hk=X(()=>{qc();Jn();rn();qk=function(r,t){return r.indexOf(t)!==-1},WL=function(r){return r.toString()},qL=function(r,t,e){return"".concat(t," ").concat(e,", ").concat(r)},HL=function(){function r(t,e,n,i){if(e===void 0&&(e=WL),n===void 0&&(n=Ns),i===void 0&&(i=qL),this.text=[],this.language=n||Ns,this.gettext=e,this.dateFormatter=i,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var s=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);s.sort(function(c,d){return c-d}),a.sort(function(c,d){return d-c}),this.bymonthday=s.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(Je(this.origOptions.byweekday)){var o=At(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(o);this.byweekday={allWeeks:o.filter(function(c){return!c.n}),someWeeks:o.filter(function(c){return Boolean(c.n)}),isWeekdays:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")===-1&&l.indexOf("SU")===-1,isEveryDay:l.indexOf("MO")!==-1&&l.indexOf("TU")!==-1&&l.indexOf("WE")!==-1&&l.indexOf("TH")!==-1&&l.indexOf("FR")!==-1&&l.indexOf("SA")!==-1&&l.indexOf("SU")!==-1};var u=function(c,d){return c.weekday-d.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return r.isFullyConvertible=function(t){var e=!0;if(!(t.options.freq in r.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(qk(["dtstart","wkst","freq"],n))return!0;if(!qk(r.IMPLEMENTED[t.options.freq],n))return!1}return e},r.prototype.isFullyConvertible=function(){return r.isFullyConvertible(this.rrule)},r.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in r.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[oe.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var e=this.options.until;this.add(this.dateFormatter(e.getUTCFullYear(),this.language.monthNames[e.getUTCMonth()],e.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},r.prototype.HOURLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},r.prototype.MINUTELY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},r.prototype.DAILY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},r.prototype.WEEKLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(this.options.interval===1&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},r.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},r.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},r.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},r.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},r.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},r.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},r.prototype.nth=function(t){t=parseInt(t.toString(),10);var e,n=this.gettext;if(t===-1)return n("last");var i=Math.abs(t);switch(i){case 1:case 21:case 31:e=i+n("st");break;case 2:case 22:e=i+n("nd");break;case 3:case 23:e=i+n("rd");break;default:e=i+n("th")}return t<0?e+" "+n("last"):e},r.prototype.monthtext=function(t){return this.language.monthNames[t-1]},r.prototype.weekdaytext=function(t){var e=On(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[e]},r.prototype.plural=function(t){return t%100!==1},r.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},r.prototype.list=function(t,e,n,i){var s=this;i===void 0&&(i=","),At(t)||(t=[t]);var a=function(l,u,c){for(var d="",f=0;f<l.length;f++)f!==0&&(f===l.length-1?d+=" "+c+" ":d+=u+" "),d+=l[f];return d};e=e||function(l){return l.toString()};var o=function(l){return e&&e.call(s,l)};return n?a(t.map(o),i,n):t.map(o).join(i+" ")},r}(),Gr=HL});function zl(r,t){t===void 0&&(t=Ns);var e={},n=new GL(t.tokens);if(!n.start(r))return null;return i(),e;function i(){n.expect("every");var f=n.acceptNumber();if(f&&(e.interval=parseInt(f[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":e.freq=oe.DAILY,n.nextSymbol()&&(a(),d());break;case"weekday(s)":e.freq=oe.WEEKLY,e.byweekday=[oe.MO,oe.TU,oe.WE,oe.TH,oe.FR],n.nextSymbol(),d();break;case"week(s)":e.freq=oe.WEEKLY,n.nextSymbol()&&(s(),d());break;case"hour(s)":e.freq=oe.HOURLY,n.nextSymbol()&&(s(),d());break;case"minute(s)":e.freq=oe.MINUTELY,n.nextSymbol()&&(s(),d());break;case"month(s)":e.freq=oe.MONTHLY,n.nextSymbol()&&(s(),d());break;case"year(s)":e.freq=oe.YEARLY,n.nextSymbol()&&(s(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":e.freq=oe.WEEKLY;var p=n.symbol.substr(0,2).toUpperCase();if(e.byweekday=[oe[p]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var b=l();if(!b)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");e.byweekday.push(oe[b]),n.nextSymbol()}c(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(e.freq=oe.YEARLY,e.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var T=o();if(!T)throw new Error("Unexpected symbol "+n.symbol+", expected month");e.bymonth.push(T),n.nextSymbol()}s(),d();break;default:throw new Error("Unknown symbol")}}function s(){var f=n.accept("on"),p=n.accept("the");if(!!(f||p))do{var b=u(),T=l(),v=o();if(b)T?(n.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(oe[T].nth(b))):(e.bymonthday||(e.bymonthday=[]),e.bymonthday.push(b),n.accept("day(s)"));else if(T)n.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(oe[T]);else if(n.symbol==="weekday(s)")n.nextSymbol(),e.byweekday||(e.byweekday=[oe.MO,oe.TU,oe.WE,oe.TH,oe.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var O=n.acceptNumber();if(!O)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(e.byweekno=[parseInt(O[0],10)];n.accept("comma");){if(O=n.acceptNumber(),!O)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");e.byweekno.push(parseInt(O[0],10))}}else if(v)n.nextSymbol(),e.bymonth||(e.bymonth=[]),e.bymonth.push(v);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function a(){var f=n.accept("at");if(!!f)do{var p=n.acceptNumber();if(!p)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(e.byhour=[parseInt(p[0],10)];n.accept("comma");){if(p=n.acceptNumber(),!p)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");e.byhour.push(parseInt(p[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var f=parseInt(n.value[1],10);if(f<-366||f>366)throw new Error("Nth out of range: "+f);return n.nextSymbol(),n.accept("last")?-f:f;default:return!1}}function c(){n.accept("on"),n.accept("the");var f=u();if(!!f)for(e.bymonthday=[f],n.nextSymbol();n.accept("comma");){if(f=u(),!f)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");e.bymonthday.push(f),n.nextSymbol()}}function d(){if(n.symbol==="until"){var f=Date.parse(n.text);if(!f)throw new Error("Cannot parse until date:"+n.text);e.until=new Date(f)}else n.accept("for")&&(e.count=parseInt(n.value[0],10),n.expect("number"))}}var GL,Gk=X(()=>{qc();Jn();GL=function(){function r(t){this.done=!0,this.rules=t}return r.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},r.prototype.isDone=function(){return this.done&&this.symbol===null},r.prototype.nextSymbol=function(){var t,e;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;t=null;for(var i in this.rules){n=this.rules[i];var s=n.exec(this.text);s&&(t===null||s[0].length>t[0].length)&&(t=s,e=i)}if(t!=null&&(this.text=this.text.substr(t[0].length),this.text===""&&(this.done=!0)),t==null){this.done=!0,this.symbol=null,this.value=null;return}}while(e==="SKIP");return this.symbol=e,this.value=t,!0},r.prototype.accept=function(t){if(this.symbol===t){if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0}return!1},r.prototype.acceptNumber=function(){return this.accept("number")},r.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},r}()});function Kl(r){return r<Ae.HOURLY}var Ae,Ti=X(()=>{(function(r){r[r.YEARLY=0]="YEARLY",r[r.MONTHLY=1]="MONTHLY",r[r.WEEKLY=2]="WEEKLY",r[r.DAILY=3]="DAILY",r[r.HOURLY=4]="HOURLY",r[r.MINUTELY=5]="MINUTELY",r[r.SECONDLY=6]="SECONDLY"})(Ae||(Ae={}))});var Bk,Ua,Vk,zk,Kk=X(()=>{Hk();Gk();Jn();Ti();qc();Bk=function(r,t){return t===void 0&&(t=Ns),new oe(zl(r,t)||void 0)},Ua=["count","until","interval","byweekday","bymonthday","bymonth"];Gr.IMPLEMENTED=[];Gr.IMPLEMENTED[Ae.HOURLY]=Ua;Gr.IMPLEMENTED[Ae.MINUTELY]=Ua;Gr.IMPLEMENTED[Ae.DAILY]=["byhour"].concat(Ua);Gr.IMPLEMENTED[Ae.WEEKLY]=Ua;Gr.IMPLEMENTED[Ae.MONTHLY]=Ua;Gr.IMPLEMENTED[Ae.YEARLY]=["byweekno","byyearday"].concat(Ua);Vk=function(r,t,e,n){return new Gr(r,t,e,n).toString()},zk=Gr.isFullyConvertible});var Ya,Qk,Hc=X(()=>{bi();Ti();rn();qt();Ya=function(){function r(t,e,n,i){this.hour=t,this.minute=e,this.second=n,this.millisecond=i||0}return r.prototype.getHours=function(){return this.hour},r.prototype.getMinutes=function(){return this.minute},r.prototype.getSeconds=function(){return this.second},r.prototype.getMilliseconds=function(){return this.millisecond},r.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},r}(),Qk=function(r){La(t,r);function t(e,n,i,s,a,o,l){var u=r.call(this,s,a,o,l)||this;return u.year=e,u.month=n,u.day=i,u}return t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return hi(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var n=Math.floor(this.month/12),i=Wt(this.month,12);this.month=i,this.year+=n,this.month===0&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+e*7:this.day+=-(this.getWeekday()-n)+e*7,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,n,i){for(n&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var s=Lc(this.hour,24),a=s.div,o=s.mod;if(a&&(this.hour=o,this.addDaily(a)),Rn(i)||Fe(i,this.hour))break}},t.prototype.addMinutes=function(e,n,i,s){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/e)*e);;){this.minute+=e;var a=Lc(this.minute,60),o=a.div,l=a.mod;if(o&&(this.minute=l,this.addHours(o,!1,i)),(Rn(i)||Fe(i,this.hour))&&(Rn(s)||Fe(s,this.minute)))break}},t.prototype.addSeconds=function(e,n,i,s,a){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/e)*e);;){this.second+=e;var o=Lc(this.second,60),l=o.div,u=o.mod;if(l&&(this.second=u,this.addMinutes(l,!1,i,s)),(Rn(i)||Fe(i,this.hour))&&(Rn(s)||Fe(s,this.minute))&&(Rn(a)||Fe(a,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=$g(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,this.month===13&&(this.month=1,++this.year,this.year>Uc))return;e=$g(this.year,this.month-1)[1]}}},t.prototype.add=function(e,n){var i=e.freq,s=e.interval,a=e.wkst,o=e.byhour,l=e.byminute,u=e.bysecond;switch(i){case Ae.YEARLY:return this.addYears(s);case Ae.MONTHLY:return this.addMonths(s);case Ae.WEEKLY:return this.addWeekly(s,a);case Ae.DAILY:return this.addDaily(s);case Ae.HOURLY:return this.addHours(s,n,o);case Ae.MINUTELY:return this.addMinutes(s,n,o,l);case Ae.SECONDLY:return this.addSeconds(s,n,o,l,u)}},t}(Ya)});function Gg(r){for(var t=[],e=Object.keys(r),n=0,i=e;n<i.length;n++){var s=i[n];Fe(Jk,s)||t.push(s),jg(r[s])&&!Ps(r[s])&&t.push(s)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return Pt({},r)}function Zk(r){var t=Pt(Pt({},Ql),Gg(r));if(Je(t.byeaster)&&(t.freq=oe.YEARLY),!(Je(t.freq)&&oe.FREQUENCIES[t.freq]))throw new Error("Invalid frequency: ".concat(t.freq," ").concat(r.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),Je(t.wkst)?On(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=oe.MO.weekday,Je(t.bysetpos)){On(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var e=0;e<t.bysetpos.length;e++){var n=t.bysetpos[e];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(t.byweekno)||at(t.byweekno)||at(t.byyearday)||Boolean(t.bymonthday)||at(t.bymonthday)||Je(t.byweekday)||Je(t.byeaster)))switch(t.freq){case oe.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case oe.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case oe.WEEKLY:t.byweekday=[hi(t.dtstart)];break}if(Je(t.bymonth)&&!At(t.bymonth)&&(t.bymonth=[t.bymonth]),Je(t.byyearday)&&!At(t.byyearday)&&On(t.byyearday)&&(t.byyearday=[t.byyearday]),!Je(t.bymonthday))t.bymonthday=[],t.bynmonthday=[];else if(At(t.bymonthday)){for(var i=[],s=[],e=0;e<t.bymonthday.length;e++){var n=t.bymonthday[e];n>0?i.push(n):n<0&&s.push(n)}t.bymonthday=i,t.bynmonthday=s}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);if(Je(t.byweekno)&&!At(t.byweekno)&&(t.byweekno=[t.byweekno]),!Je(t.byweekday))t.bynweekday=null;else if(On(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(Yg(t.byweekday))t.byweekday=[ft.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof ft)!t.byweekday.n||t.freq>oe.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var a=[],o=[],e=0;e<t.byweekday.length;e++){var l=t.byweekday[e];if(On(l)){a.push(l);continue}else if(Yg(l)){a.push(ft.fromStr(l).weekday);continue}!l.n||t.freq>oe.MONTHLY?a.push(l.weekday):o.push([l.weekday,l.n])}t.byweekday=at(a)?a:null,t.bynweekday=at(o)?o:null}return Je(t.byhour)?On(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<oe.HOURLY?[t.dtstart.getUTCHours()]:null,Je(t.byminute)?On(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<oe.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Je(t.bysecond)?On(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<oe.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function Xk(r){var t=r.dtstart.getTime()%1e3;if(!Kl(r.freq))return[];var e=[];return r.byhour.forEach(function(n){r.byminute.forEach(function(i){r.bysecond.forEach(function(s){e.push(new Ya(n,i,s,t))})})}),e}var Bg=X(()=>{bi();Ti();rn();Jn();qt();Ms();Hc()});function Xl(r){var t=r.split(`
`).map(BL).filter(function(e){return e!==null});return Pt(Pt({},t[0]),t[1])}function Zl(r){var t={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(r);if(!e)return t;var n=e[1],i=e[2];return n&&(t.tzid=n),t.dtstart=Vl(i),t}function BL(r){if(r=r.replace(/^\s+|\s+$/,""),!r.length)return null;var t=/^([A-Z]+?)[:;]/.exec(r.toUpperCase());if(!t)return eS(r);var e=t[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return eS(r);case"DTSTART":return Zl(r);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(r))}}function eS(r){var t=r.replace(/^RRULE:/i,""),e=Zl(t),n=r.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.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=er[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=VL(o),u=a.toLowerCase();e[u]=l;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=zL(o);break;case"DTSTART":case"TZID":var c=Zl(r);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 VL(r){if(r.indexOf(",")!==-1){var t=r.split(",");return t.map(tS)}return tS(r)}function tS(r){return/^[+-]?\d+$/.test(r)?Number(r):r}function zL(r){var t=r.split(",");return t.map(function(e){if(e.length===2)return er[e];var n=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var i=Number(n[1]),s=n[2],a=er[s].weekday;return new ft(a,i)})}var Vg=X(()=>{bi();Ti();Ms();qt();Jn()});var Is,Gc=X(()=>{qt();Is=function(){function r(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(r.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),r.prototype.toString=function(){var t=Fa(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},r.prototype.getTime=function(){return this.date.getTime()},r.prototype.rezonedDate=function(){return this.isUTC?this.date:$k(this.date,this.tzid)},r}()});function Jl(r){for(var t=[],e="",n=Object.keys(r),i=Object.keys(Ql),s=0;s<n.length;s++)if(n[s]!=="tzid"&&!!Fe(i,n[s])){var a=n[s].toUpperCase(),o=r[n[s]],l="";if(!(!Je(o)||At(o)&&!o.length)){switch(a){case"FREQ":l=oe.FREQUENCIES[r.freq];break;case"WKST":On(o)?l=new ft(o).toString():l=o.toString();break;case"BYWEEKDAY":a="BYDAY",l=Ik(o).map(function(p){return p instanceof ft?p:At(p)?new ft(p[0],p[1]):new ft(p)}).toString();break;case"DTSTART":e=KL(o,r.tzid);break;case"UNTIL":l=Fa(o,!r.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 KL(r,t){return r?"DTSTART"+new Is(new Date(r),t).toString():""}var zg=X(()=>{Jn();rn();Ms();qt();Gc()});function QL(r,t){return Array.isArray(r)?!Array.isArray(t)||r.length!==t.length?!1:r.every(function(e,n){return e.getTime()===t[n].getTime()}):r instanceof Date?t instanceof Date&&r.getTime()===t.getTime():r===t}var nS,rS=X(()=>{Wc();qt();rn();nS=function(){function r(){this.all=!1,this.before=[],this.after=[],this.between=[]}return r.prototype._cacheAdd=function(t,e,n){e&&(e=e instanceof Date?$c(e):Wg(e)),t==="all"?this.all=e:(n._value=e,this[t].push(n))},r.prototype._cacheGet=function(t,e){var n=!1,i=e?Object.keys(e):[],s=function(c){for(var d=0;d<i.length;d++){var f=i[d];if(!QL(e[f],c[f]))return!0}return!1},a=this[t];if(t==="all")n=this.all;else if(At(a))for(var o=0;o<a.length;o++){var l=a[o];if(!(i.length&&s(l))){n=l._value;break}}if(!n&&this.all){for(var u=new yi(t,e),o=0;o<this.all.length&&u.accept(this.all[o]);o++);n=u.getValue(),this._cacheAdd(t,n,e)}return At(n)?Wg(n):n instanceof Date?$c(n):n},r}()});var iS,sS,ZL,XL,qi,Ht,aS,oS,JL,e2,Hi,Gt,lS,uS,cS,dS,Kg,fS=X(()=>{bi();rn();iS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ie(1,31),!0),Ie(2,28),!0),Ie(3,31),!0),Ie(4,30),!0),Ie(5,31),!0),Ie(6,30),!0),Ie(7,31),!0),Ie(8,31),!0),Ie(9,30),!0),Ie(10,31),!0),Ie(11,30),!0),Ie(12,31),!0),Ie(1,7),!0),sS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ie(1,31),!0),Ie(2,29),!0),Ie(3,31),!0),Ie(4,30),!0),Ie(5,31),!0),Ie(6,30),!0),Ie(7,31),!0),Ie(8,31),!0),Ie(9,30),!0),Ie(10,31),!0),Ie(11,30),!0),Ie(12,31),!0),Ie(1,7),!0),ZL=Xn(1,29),XL=Xn(1,30),qi=Xn(1,31),Ht=Xn(1,32),aS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ht,!0),XL,!0),Ht,!0),qi,!0),Ht,!0),qi,!0),Ht,!0),Ht,!0),qi,!0),Ht,!0),qi,!0),Ht,!0),Ht.slice(0,7),!0),oS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Ht,!0),ZL,!0),Ht,!0),qi,!0),Ht,!0),qi,!0),Ht,!0),Ht,!0),qi,!0),Ht,!0),qi,!0),Ht,!0),Ht.slice(0,7),!0),JL=Xn(-28,0),e2=Xn(-29,0),Hi=Xn(-30,0),Gt=Xn(-31,0),lS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Gt,!0),e2,!0),Gt,!0),Hi,!0),Gt,!0),Hi,!0),Gt,!0),Gt,!0),Hi,!0),Gt,!0),Hi,!0),Gt,!0),Gt.slice(0,7),!0),uS=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q([],Gt,!0),JL,!0),Gt,!0),Hi,!0),Gt,!0),Hi,!0),Gt,!0),Gt,!0),Hi,!0),Gt,!0),Hi,!0),Gt,!0),Gt.slice(0,7),!0),cS=[0,31,60,91,121,152,182,213,244,274,305,335,366],dS=[0,31,59,90,120,151,181,212,243,273,304,334,365],Kg=function(){for(var r=[],t=0;t<55;t++)r=r.concat(Xn(7));return r}()});function pS(r,t){var e=Hr(r,1,1),n=Ia(r)?366:365,i=Ia(r+1)?366:365,s=Bl(e),a=hi(e),o=Pt(Pt({yearlen:n,nextyearlen:i,yearordinal:s,yearweekday:a},t2(r)),{wnomask:null});if(Rn(t.byweekno))return o;o.wnomask=Ie(0,n+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=n-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 v=void 0;T>1?(v=c+(T-1)*7,c!==l&&(v-=7-l)):v=c;for(var O=0;O<7&&(o.wnomask[v]=1,v++,o.wdaymask[v]!==t.wkst);O++);}}if(Fe(t.byweekno,1)){var v=c+p*7;if(c!==l&&(v-=7-l),v<n)for(var b=0;b<7&&(o.wnomask[v]=1,v+=1,o.wdaymask[v]!==t.wkst);b++);}if(c){var E=void 0;if(Fe(t.byweekno,-1))E=-1;else{var P=hi(Hr(r-1,1,1)),Y=Wt(7-P.valueOf()+t.wkst,7),q=Ia(r-1)?366:365,ae=void 0;Y>=4?(Y=0,ae=q+Wt(P-t.wkst,7)):ae=n-c,E=Math.floor(52+Wt(ae,7)/4)}if(Fe(t.byweekno,E))for(var v=0;v<c;v++)o.wnomask[v]=1}return o}function t2(r){var t=Ia(r)?366:365,e=Hr(r,1,1),n=hi(e);return t===365?{mmask:iS,mdaymask:oS,nmdaymask:uS,wdaymask:Kg.slice(n),mrange:dS}:{mmask:sS,mdaymask:aS,nmdaymask:lS,wdaymask:Kg.slice(n),mrange:cS}}var mS=X(()=>{bi();qt();rn();fS()});function hS(r,t,e,n,i,s){var a={lastyear:r,lastmonth:t,nwdaymask:[]},o=[];if(s.freq===oe.YEARLY)if(Rn(s.bymonth))o=[[0,e]];else for(var l=0;l<s.bymonth.length;l++)t=s.bymonth[l],o.push(n.slice(t-1,t+1));else s.freq===oe.MONTHLY&&(o=[n.slice(t-1,t+1)]);if(Rn(o))return a;a.nwdaymask=Ie(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],v=b[1];v<0?(p=d+(v+1)*7,p-=Wt(i[p]-T,7)):(p=c+(v-1)*7,p+=Wt(7-i[p]+T,7)),c<=p&&p<=d&&(a.nwdaymask[p]=1)}return a}var gS=X(()=>{Jn();rn()});function yS(r,t){t===void 0&&(t=0);var e=r%19,n=Math.floor(r/100),i=r%100,s=Math.floor(n/4),a=n%4,o=Math.floor((n+8)/25),l=Math.floor((n-o+1)/3),u=Math.floor(19*e+n-s-l+15)%30,c=Math.floor(i/4),d=i%4,f=Math.floor(32+2*a+2*c-u-d)%7,p=Math.floor((e+11*u+22*f)/451),b=Math.floor((u+f-7*p+114)/31),T=(u+f-7*p+114)%31+1,v=Date.UTC(r,b-1,T+t),O=Date.UTC(r,0,1);return[Math.ceil((v-O)/(1e3*60*60*24))]}var bS=X(()=>{});var n2,TS,vS=X(()=>{rn();Ti();mS();gS();bS();Hc();qt();n2=function(){function r(t){this.options=t}return r.prototype.rebuild=function(t,e){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=pS(t,n)),at(n.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,s=i.yearlen,a=i.mrange,o=i.wdaymask;this.monthinfo=hS(t,e,s,a,o,n)}Je(n.byeaster)&&(this.eastermask=yS(t,n.byeaster))},Object.defineProperty(r.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),r.prototype.ydayset=function(){return[Xn(this.yearlen),0,this.yearlen]},r.prototype.mdayset=function(t,e){for(var n=this.mrange[e-1],i=this.mrange[e],s=Ie(null,this.yearlen),a=n;a<i;a++)s[a]=a;return[s,n,i]},r.prototype.wdayset=function(t,e,n){for(var i=Ie(null,this.yearlen+7),s=Bl(Hr(t,e,n))-this.yearordinal,a=s,o=0;o<7&&(i[s]=s,++s,this.wdaymask[s]!==this.options.wkst);o++);return[i,a,s]},r.prototype.ddayset=function(t,e,n){var i=Ie(null,this.yearlen),s=Bl(Hr(t,e,n))-this.yearordinal;return i[s]=s,[i,s,s+1]},r.prototype.htimeset=function(t,e,n,i){var s=this,a=[];return this.options.byminute.forEach(function(o){a=a.concat(s.mtimeset(t,o,n,i))}),gi(a),a},r.prototype.mtimeset=function(t,e,n,i){var s=this.options.bysecond.map(function(a){return new Ya(t,e,a,i)});return gi(s),s},r.prototype.stimeset=function(t,e,n,i){return[new Ya(t,e,n,i)]},r.prototype.getdayset=function(t){switch(t){case Ae.YEARLY:return this.ydayset.bind(this);case Ae.MONTHLY:return this.mdayset.bind(this);case Ae.WEEKLY:return this.wdayset.bind(this);case Ae.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},r.prototype.gettimeset=function(t){switch(t){case Ae.HOURLY:return this.htimeset.bind(this);case Ae.MINUTELY:return this.mtimeset.bind(this);case Ae.SECONDLY:return this.stimeset.bind(this)}},r}(),TS=n2});function _S(r,t,e,n,i,s){for(var a=[],o=0;o<r.length;o++){var l=void 0,u=void 0,c=r[o];c<0?(l=Math.floor(c/t.length),u=Wt(c,t.length)):(l=Math.floor((c-1)/t.length),u=Wt(c-1,t.length));for(var d=[],f=e;f<n;f++){var p=s[f];!Je(p)||d.push(p)}var b=void 0;l<0?b=d.slice(l)[0]:b=d[l];var T=t[u],v=Yc(i.yearordinal+b),O=jc(v,T);Fe(a,O)||a.push(O)}return gi(a),a}var wS=X(()=>{qt();rn()});function Bc(r,t){var e=t.dtstart,n=t.freq,i=t.interval,s=t.until,a=t.bysetpos,o=t.count;if(o===0||i===0)return vi(r);var l=Qk.fromDate(e),u=new TS(t);u.rebuild(l.year,l.month);for(var c=s2(u,l,t);;){var d=u.getdayset(n)(l.year,l.month,l.day),f=d[0],p=d[1],b=d[2],T=i2(f,p,b,u,t);if(at(a))for(var v=_S(a,c,p,b,u,f),O=0;O<v.length;O++){var E=v[O];if(s&&E>s)return vi(r);if(E>=e){var P=kS(E,t);if(!r.accept(P)||o&&(--o,!o))return vi(r)}}else for(var O=p;O<b;O++){var Y=f[O];if(!!Je(Y))for(var q=Yc(u.yearordinal+Y),ae=0;ae<c.length;ae++){var H=c[ae],E=jc(q,H);if(s&&E>s)return vi(r);if(E>=e){var P=kS(E,t);if(!r.accept(P)||o&&(--o,!o))return vi(r)}}}if(t.interval===0||(l.add(t,T),l.year>Uc))return vi(r);Kl(n)||(c=u.gettimeset(n)(l.hour,l.minute,l.second,0)),u.rebuild(l.year,l.month)}}function r2(r,t,e){var n=e.bymonth,i=e.byweekno,s=e.byweekday,a=e.byeaster,o=e.bymonthday,l=e.bynmonthday,u=e.byyearday;return at(n)&&!Fe(n,r.mmask[t])||at(i)&&!r.wnomask[t]||at(s)&&!Fe(s,r.wdaymask[t])||at(r.nwdaymask)&&!r.nwdaymask[t]||a!==null&&!Fe(r.eastermask,t)||(at(o)||at(l))&&!Fe(o,r.mdaymask[t])&&!Fe(l,r.nmdaymask[t])||at(u)&&(t<r.yearlen&&!Fe(u,t+1)&&!Fe(u,-r.yearlen+t)||t>=r.yearlen&&!Fe(u,t+1-r.yearlen)&&!Fe(u,-r.nextyearlen+t-r.yearlen))}function kS(r,t){return new Is(r,t.tzid).rezonedDate()}function vi(r){return r.getValue()}function i2(r,t,e,n,i){for(var s=!1,a=t;a<e;a++){var o=r[a];s=r2(n,o,i),s&&(r[o]=null)}return s}function s2(r,t,e){var n=e.freq,i=e.byhour,s=e.byminute,a=e.bysecond;return Kl(n)?Xk(e):n>=oe.HOURLY&&at(i)&&!Fe(i,t.hour)||n>=oe.MINUTELY&&at(s)&&!Fe(s,t.minute)||n>=oe.SECONDLY&&at(a)&&!Fe(a,t.second)?[]:r.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}var Qg=X(()=>{Ti();qt();vS();Jn();Bg();rn();Gc();wS();Hc()});var er,Ql,Jk,oe,Jn=X(()=>{qt();Wc();Wk();Kk();Ti();Bg();Vg();zg();rS();Ms();Qg();er={MO:new ft(0),TU:new ft(1),WE:new ft(2),TH:new ft(3),FR:new ft(4),SA:new ft(5),SU:new ft(6)},Ql={freq:Ae.YEARLY,dtstart:null,interval:1,wkst:er.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Jk=Object.keys(Ql),oe=function(){function r(t,e){t===void 0&&(t={}),e===void 0&&(e=!1),this._cache=e?null:new nS,this.origOptions=Gg(t);var n=Zk(t).parsedOptions;this.options=n}return r.parseText=function(t,e){return zl(t,e)},r.fromText=function(t,e){return Bk(t,e)},r.fromString=function(t){return new r(r.parseString(t)||void 0)},r.prototype._iter=function(t){return Bc(t,this.options)},r.prototype._cacheGet=function(t,e){return this._cache?this._cache._cacheGet(t,e):!1},r.prototype._cacheAdd=function(t,e,n){if(!!this._cache)return this._cache._cacheAdd(t,e,n)},r.prototype.all=function(t){if(t)return this._iter(new Hg("all",{},t));var e=this._cacheGet("all");return e===!1&&(e=this._iter(new yi("all",{})),this._cacheAdd("all",e)),e},r.prototype.between=function(t,e,n,i){if(n===void 0&&(n=!1),!Ps(t)||!Ps(e))throw new Error("Invalid date passed in to RRule.between");var s={before:e,after:t,inc:n};if(i)return this._iter(new Hg("between",s,i));var a=this._cacheGet("between",s);return a===!1&&(a=this._iter(new yi("between",s)),this._cacheAdd("between",a,s)),a},r.prototype.before=function(t,e){if(e===void 0&&(e=!1),!Ps(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:e},i=this._cacheGet("before",n);return i===!1&&(i=this._iter(new yi("before",n)),this._cacheAdd("before",i,n)),i},r.prototype.after=function(t,e){if(e===void 0&&(e=!1),!Ps(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:e},i=this._cacheGet("after",n);return i===!1&&(i=this._iter(new yi("after",n)),this._cacheAdd("after",i,n)),i},r.prototype.count=function(){return this.all().length},r.prototype.toString=function(){return Jl(this.origOptions)},r.prototype.toText=function(t,e,n){return Vk(this,t,e,n)},r.prototype.isFullyConvertibleToText=function(){return zk(this)},r.prototype.clone=function(){return new r(this.origOptions)},r.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],r.YEARLY=Ae.YEARLY,r.MONTHLY=Ae.MONTHLY,r.WEEKLY=Ae.WEEKLY,r.DAILY=Ae.DAILY,r.HOURLY=Ae.HOURLY,r.MINUTELY=Ae.MINUTELY,r.SECONDLY=Ae.SECONDLY,r.MO=er.MO,r.TU=er.TU,r.WE=er.WE,r.TH=er.TH,r.FR=er.FR,r.SA=er.SA,r.SU=er.SU,r.parseString=Xl,r.optionsToString=Jl,r}()});function SS(r,t,e,n,i,s){var a={},o=r.accept;function l(f,p){e.forEach(function(b){b.between(f,p,!0).forEach(function(T){a[Number(T)]=!0})})}i.forEach(function(f){var p=new Is(f,s).rezonedDate();a[Number(p)]=!0}),r.accept=function(f){var p=Number(f);return isNaN(p)?o.call(this,f):!a[p]&&(l(new Date(p-1),new Date(p+1)),!a[p])?(a[p]=!0,o.call(this,f)):!0},r.method==="between"&&(l(r.args.after,r.args.before),r.accept=function(f){var p=Number(f);return a[p]?!0:(a[p]=!0,o.call(this,f))});for(var u=0;u<n.length;u++){var c=new Is(n[u],s).rezonedDate();if(!r.accept(new Date(c.getTime())))break}t.forEach(function(f){Bc(r,f.options)});var d=r._result;switch(gi(d),r.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;case"after":default:return d.length&&d[0]||null}}var DS=X(()=>{Gc();Qg();qt()});function a2(r,t){var e=[],n=[],i=[],s=[],a=Zl(r),o=a.dtstart,l=a.tzid,u=d2(r,t.unfold);return u.forEach(function(c){var d;if(!!c){var f=c2(c),p=f.name,b=f.parms,T=f.value;switch(p.toUpperCase()){case"RRULE":if(b.length)throw new Error("unsupported RRULE parm: ".concat(b.join(",")));e.push(Xl(c));break;case"RDATE":var v=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(c))!==null&&d!==void 0?d:[],O=v[1];O&&!l&&(l=O),n=n.concat(xS(T,b));break;case"EXRULE":if(b.length)throw new Error("unsupported EXRULE parm: ".concat(b.join(",")));i.push(Xl(T));break;case"EXDATE":s=s.concat(xS(T,b));break;case"DTSTART":break;default:throw new Error("unsupported property: "+p)}}}),{dtstart:o,tzid:l,rrulevals:e,rdatevals:n,exrulevals:i,exdatevals:s}}function o2(r,t){var e=a2(r,t),n=e.rrulevals,i=e.rdatevals,s=e.exrulevals,a=e.exdatevals,o=e.dtstart,l=e.tzid,u=t.cache===!1;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||n.length>1||i.length||s.length||a.length){var c=new Jg(u);return c.dtstart(o),c.tzid(l||void 0),n.forEach(function(f){c.rrule(new oe(Zg(f,o,l),u))}),i.forEach(function(f){c.rdate(f)}),s.forEach(function(f){c.exrule(new oe(Zg(f,o,l),u))}),a.forEach(function(f){c.exdate(f)}),t.compatible&&t.dtstart&&c.rdate(o),c}var d=n[0]||{};return new oe(Zg(d,d.dtstart||t.dtstart||o,d.tzid||t.tzid||l),u)}function Vc(r,t){return t===void 0&&(t={}),o2(r,l2(t))}function Zg(r,t,e){return Pt(Pt({},r),{dtstart:t,tzid:e})}function l2(r){var t=[],e=Object.keys(r),n=Object.keys(ES);if(e.forEach(function(i){Fe(n,i)||t.push(i)}),t.length)throw new Error("Invalid options: "+t.join(", "));return Pt(Pt({},ES),r)}function u2(r){if(r.indexOf(":")===-1)return{name:"RRULE",value:r};var t=Fk(r,":",1),e=t[0],n=t[1];return{name:e,value:n}}function c2(r){var t=u2(r),e=t.name,n=t.value,i=e.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}function d2(r,t){if(t===void 0&&(t=!1),r=r&&r.trim(),!r)throw new Error("Invalid empty string");if(!t)return r.split(/\s/);for(var e=r.split(`
`),n=0;n<e.length;){var i=e[n]=e[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(e[n-1]+=i.slice(1),e.splice(n,1)):n+=1:e.splice(n,1)}return e}function f2(r){r.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function xS(r,t){return f2(t),r.split(",").map(function(e){return Vl(e)})}var ES,Xg=X(()=>{bi();Jn();ey();qt();rn();Vg();ES={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null}});function OS(r){var t=this;return function(e){if(e!==void 0&&(t["_".concat(r)]=e),t["_".concat(r)]!==void 0)return t["_".concat(r)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[r];if(i)return i}}}function RS(r,t){if(!(r instanceof oe))throw new TypeError(String(r)+" is not RRule instance");Fe(t.map(String),String(r))||t.push(r)}function CS(r,t){if(!(r instanceof Date))throw new TypeError(String(r)+" is not Date instance");Fe(t.map(Number),Number(r))||(t.push(r),gi(t))}function MS(r,t,e){var n=!e||e.toUpperCase()==="UTC",i=n?"".concat(r,":"):"".concat(r,";TZID=").concat(e,":"),s=t.map(function(a){return Fa(a.valueOf(),n)}).join(",");return"".concat(i).concat(s)}var Jg,ey=X(()=>{bi();Jn();qt();rn();DS();Xg();zg();Jg=function(r){La(t,r);function t(e){e===void 0&&(e=!1);var n=r.call(this,{},e)||this;return n.dtstart=OS.apply(n,["dtstart"]),n.tzid=OS.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(e){return SS(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){RS(e,this._rrule)},t.prototype.exrule=function(e){RS(e,this._exrule)},t.prototype.rdate=function(e){CS(e,this._rdate)},t.prototype.exdate=function(e){CS(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return Vc(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return Vc(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(n){e=e.concat(n.toString().split(`
`))}),this._exrule.forEach(function(n){e=e.concat(n.toString().split(`
`).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&e.push(MS("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(MS("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(n){return e.rrule(n.clone())}),this._exrule.forEach(function(n){return e.exrule(n.clone())}),this._rdate.forEach(function(n){return e.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return e.exdate(new Date(n.getTime()))}),e},t}(oe)});var AS=X(()=>{Jn();ey();Xg();Ti();Ms();qt()});var Dt,zc=X(()=>{"use strict";AS();Dt=class{constructor({rrule:t,baseOnToday:e,occurrence:n}){this.rrule=t,this.baseOnToday=e,this.occurrence=n}static fromText({recurrenceRuleText:t,occurrence:e}){try{let n=t.match(/^([a-zA-Z0-9, !]+?)( when done)?$/i);if(n==null)return null;let i=n[1].trim(),s=n[2]!==void 0,a=oe.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 oe(a);return new Dt({rrule:l,baseOnToday:s,occurrence:e})}}catch(n){n instanceof Error&&console.log(n.message)}return null}toText(){let t=this.rrule.toText();return this.baseOnToday&&(t+=" when done"),t}next(t=window.moment(),e=!1){let n=this.nextReferenceDate(t);return n===null?null:this.occurrence.next(n,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 oe(de(F({},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 n=window.moment.utc(e.after(t.toDate())),i=this.toText(),s=i.match(/every( \d+)? month(s)?(.*)?/);s!==null&&(i.includes(" on ")||(n=Dt.nextAfterMonths(t,n,e,s[1])));let a=i.match(/every( \d+)? year(s)?(.*)?/);return a!==null&&(n=Dt.nextAfterYears(t,n,e,a[1])),Dt.addTimezone(n)}static nextAfterMonths(t,e,n,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Dt.isSkippingTooManyMonths(t,e,s);)e=Dt.fromOneDayEarlier(t,n);return e}static isSkippingTooManyMonths(t,e,n){let i=e.month()-t.month();return i+=(e.year()-t.year())*12,i>n}static nextAfterYears(t,e,n,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Dt.isSkippingTooManyYears(t,e,s);)e=Dt.fromOneDayEarlier(t,n);return e}static isSkippingTooManyYears(t,e,n){return e.year()-t.year()>n}static fromOneDayEarlier(t,e){t.subtract(1,"days").endOf("day");let n=e.origOptions;return n.dtstart=t.startOf("day").toDate(),e=new oe(n),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 PS(r,t,e){let n=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 n.entries())if(t.startsWith(i))return r.setVisibility(s,e),!0;return t.startsWith("tags")?(r.setTagsVisibility(e),!0):!1}var eu,Kc,Br,Fs=X(()=>{"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||{}),Kc=Object.values(eu),Br=class{constructor(){this.visible={};this.tagsVisible=!0;Kc.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 shownComponents(){return Kc.filter(t=>this.visible[t])}get hiddenComponents(){return Kc.filter(t=>!this.visible[t])}get toggleableComponents(){return Kc.filter(t=>t!=="description"&&t!=="blockLink")}toggleVisibilityExceptDescriptionAndBlockLink(){this.toggleableComponents.forEach(t=>{this.visible[t]=!this.visible[t]}),this.setTagsVisibility(!this.areTagsShown())}}});var Bt,gt,Cn=X(()=>{"use strict";Bt=(a=>(a.TODO="TODO",a.DONE="DONE",a.IN_PROGRESS="IN_PROGRESS",a.CANCELLED="CANCELLED",a.NON_TASK="NON_TASK",a.EMPTY="EMPTY",a))(Bt||{}),gt=class{constructor(t,e,n,i,s="TODO"){this.symbol=t,this.name=e,this.nextStatusSymbol=n,this.availableAsCommand=i,this.type=s}}});function NS(r){let t=r.trim().toLowerCase();return t==="delete"?"delete":t==="keep"?"keep":""}function p2(r,t){return r.filter(e=>e!==t)}function m2(r,t){let e=r.status,n=t.status,i=n.type===e.type;return n.type!=="DONE"||i}function IS(r,t){let e=t.length;if(r.onCompletion===""||r.onCompletion==="keep"||e===0)return t;let n=t[e-1];if(m2(r,n))return t;let s=r.onCompletion;return s==="delete"?p2(t,n):(console.log(`OnCompletion action ${s} not yet implemented.`),t)}var Qc=X(()=>{"use strict";Cn()});var ja=X(()=>{"use strict"});function $a(r){return qa(r,"(\\d{4}-\\d{2}-\\d{2})")}function qa(r,t){let e=r+"\uFE0F?";return t!==""&&(e+=" *"+t),e+="$",new RegExp(e,"u")}function Zc(r,t,e){return e?r?" "+t:` ${t} ${e}`:""}function Wa(r,t,e){return e?r?" "+t:` ${t} ${e.format(fe.dateFormat)}`:""}function FS(){let r=[];return Object.values(tu.prioritySymbols).forEach(t=>{t.length>0&&r.push(t)}),Object.values(tu).forEach(t=>{typeof t=="string"&&r.push(t)}),r}var Ls,ty,tu,Us,nu=X(()=>{"use strict";Fs();Qc();Ic();zc();Nt();ja();si();Ls=/[a-zA-Z0-9-_]+/,ty=new RegExp(Ls.source+"( *, *"+Ls.source+" *)*");tu={prioritySymbols:{Highest:"\u{1F53A}",High:"\u23EB",Medium:"\u{1F53C}",Low:"\u{1F53D}",Lowest:"\u23EC",None:""},startDateSymbol:"\u{1F6EB}",createdDateSymbol:"\u2795",scheduledDateSymbol:"\u23F3",dueDateSymbol:"\u{1F4C5}",doneDateSymbol:"\u2705",cancelledDateSymbol:"\u274C",recurrenceSymbol:"\u{1F501}",onCompletionSymbol:"\u{1F3C1}",dependsOnSymbol:"\u26D4",idSymbol:"\u{1F194}",TaskFormatRegularExpressions:{priorityRegex:qa("([\u{1F53A}\u23EB\u{1F53C}\u{1F53D}\u23EC])",""),startDateRegex:$a("\u{1F6EB}"),createdDateRegex:$a("\u2795"),scheduledDateRegex:$a("[\u23F3\u231B]"),dueDateRegex:$a("[\u{1F4C5}\u{1F4C6}\u{1F5D3}]"),doneDateRegex:$a("\u2705"),cancelledDateRegex:$a("\u274C"),recurrenceRegex:qa("\u{1F501}","([a-zA-Z0-9, !]+)"),onCompletionRegex:qa("\u{1F3C1}","([a-zA-Z]+)"),dependsOnRegex:qa("\u26D4","("+ty.source+")"),idRegex:qa("\u{1F194}","("+Ls.source+")")}};Us=class{constructor(t){this.symbols=t}serialize(t){let e=new Br,n="",i=!1;for(let s of e.shownComponents)n+=this.componentToString(t,i,s);return n}componentToString(t,e,n){var T;let{prioritySymbols:i,startDateSymbol:s,createdDateSymbol:a,scheduledDateSymbol:o,doneDateSymbol:l,cancelledDateSymbol:u,recurrenceSymbol:c,onCompletionSymbol:d,dueDateSymbol:f,dependsOnSymbol:p,idSymbol:b}=this.symbols;switch(n){case"description":return t.description;case"priority":{let v="";return t.priority==="0"?v=" "+i.Highest:t.priority==="1"?v=" "+i.High:t.priority==="2"?v=" "+i.Medium:t.priority==="4"?v=" "+i.Low:t.priority==="5"&&(v=" "+i.Lowest),v}case"startDate":return Wa(e,s,t.startDate);case"createdDate":return Wa(e,a,t.createdDate);case"scheduledDate":return t.scheduledDateIsInferred?"":Wa(e,o,t.scheduledDate);case"doneDate":return Wa(e,l,t.doneDate);case"cancelledDate":return Wa(e,u,t.cancelledDate);case"dueDate":return Wa(e,f,t.dueDate);case"recurrenceRule":return t.recurrence?Zc(e,c,t.recurrence.toText()):"";case"onCompletion":return t.onCompletion===""?"":Zc(e,d,t.onCompletion);case"dependsOn":return t.dependsOn.length===0?"":Zc(e,p,t.dependsOn.join(","));case"id":return Zc(e,b,t.id);case"blockLink":return(T=t.blockLink)!=null?T:"";default:throw new Error(`Don't know how to render task component of type '${n}'`)}}parsePriority(t){let{prioritySymbols:e}=this.symbols;switch(t){case e.Lowest:return"5";case e.Low:return"4";case e.Medium:return"2";case e.High:return"1";case e.Highest:return"0";default:return"3"}}deserialize(t){let{TaskFormatRegularExpressions:e}=this.symbols,n,i="3",s=null,a=null,o=null,l=null,u=null,c=null,d="",f=null,p="",b="",T=[],v="",O=20,E=0;do{n=!1;let P=t.match(e.priorityRegex);P!==null&&(i=this.parsePriority(P[1]),t=t.replace(e.priorityRegex,"").trim(),n=!0);let Y=t.match(e.doneDateRegex);Y!==null&&(l=window.moment(Y[1],fe.dateFormat),t=t.replace(e.doneDateRegex,"").trim(),n=!0);let q=t.match(e.cancelledDateRegex);q!==null&&(u=window.moment(q[1],fe.dateFormat),t=t.replace(e.cancelledDateRegex,"").trim(),n=!0);let ae=t.match(e.dueDateRegex);ae!==null&&(o=window.moment(ae[1],fe.dateFormat),t=t.replace(e.dueDateRegex,"").trim(),n=!0);let H=t.match(e.scheduledDateRegex);H!==null&&(a=window.moment(H[1],fe.dateFormat),t=t.replace(e.scheduledDateRegex,"").trim(),n=!0);let J=t.match(e.startDateRegex);J!==null&&(s=window.moment(J[1],fe.dateFormat),t=t.replace(e.startDateRegex,"").trim(),n=!0);let ye=t.match(e.createdDateRegex);ye!==null&&(c=window.moment(ye[1],fe.dateFormat),t=t.replace(e.createdDateRegex,"").trim(),n=!0);let we=t.match(e.recurrenceRegex);we!==null&&(d=we[1].trim(),t=t.replace(e.recurrenceRegex,"").trim(),n=!0);let V=t.match(e.onCompletionRegex);if(V!=null){t=t.replace(e.onCompletionRegex,"").trim();let W=V[1];p=NS(W),n=!0}let K=t.match(fe.hashTagsFromEnd);if(K!=null){t=t.replace(fe.hashTagsFromEnd,"").trim(),n=!0;let W=K[0].trim();v=v.length>0?[W,v].join(" "):W}let R=t.match(e.idRegex);R!=null&&(t=t.replace(e.idRegex,"").trim(),b=R[1].trim(),n=!0);let ee=t.match(e.dependsOnRegex);ee!=null&&(t=t.replace(e.dependsOnRegex,"").trim(),T=ee[1].replace(/ /g,"").split(",").filter(W=>W!==""),n=!0),E++}while(n&&E<=O);return d.length>0&&(f=Dt.fromText({recurrenceRuleText:d,occurrence:new Zn({startDate:s,scheduledDate:a,dueDate:o})})),v.length>0&&(t+=" "+v),{description:t,priority:i,startDate:s,createdDate:c,scheduledDate:a,dueDate:o,doneDate:l,cancelledDate:u,recurrence:f,onCompletion:p,id:b,dependsOn:T,tags:pe.extractHashtags(t)}}}});function ru(r){let t="",e=!0;for(;e;)t=Math.random().toString(36).substring(2,6+2),r.includes(t)||(e=!1);return t}function Jc(r,t){return r.id!==""?r:new pe(de(F({},r),{id:ru(t)}))}function LS(r,t){let e=r;if(!r.dependsOn.includes(t.id)){let n=[...r.dependsOn,t.id];e=new pe(de(F({},r),{dependsOn:n}))}return e}function US(r,t){let e=r;if(r.dependsOn.includes(t.id)){let n=r.dependsOn.filter(i=>i!==t.id);e=new pe(de(F({},r),{dependsOn:n}))}return e}var ed=X(()=>{"use strict";Nt()});function Gi(r){return r.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")}var iu=X(()=>{"use strict"});var Bi,Ne,pn=X(()=>{"use strict";iu();Bi=class{constructor(){this._globalFilter="";this._removeGlobalFilter=!1}static getInstance(){return Bi.instance||(Bi.instance=new Bi),Bi.instance}get(){return this._globalFilter}set(t){this._globalFilter=t}reset(){this.set(Bi.empty)}isEmpty(){return this.get()===Bi.empty}equals(t){return this.get()===t}includedIn(t){let e=this.get();return t.includes(e)}prependTo(t){return this.get()+" "+t}removeAsWordFromDependingOnSettings(t){return this.getRemoveGlobalFilter()?this.removeAsWordFrom(t):t}getRemoveGlobalFilter(){return this._removeGlobalFilter}setRemoveGlobalFilter(t){this._removeGlobalFilter=t}removeAsWordFrom(t){if(this.isEmpty())return t;let e=RegExp("(^|\\s)"+Gi(this.get())+"($|\\s)","ug");return t.search(e)>-1&&(t=t.replace(e,"$1$2").replace("  "," ").trim()),t}removeAsSubstringFrom(t){let e=this.get();return t.replace(e,"").trim()}},Ne=Bi;Ne.empty=""});function Ys(r){return Ne.getInstance().removeAsWordFrom(r.description)}function y2(r,t){if(r==="")return t;let e=(0,jS.prepareSimpleSearch)(r),n=-4;return t.map(a=>{let o=e(Ys(a));return o&&o.score>n?{item:a,match:o}:null}).filter(Boolean).sort((a,o)=>o.match.score-a.match.score).map(a=>a.item)}function td(r,t,e,n,i){let s=y2(r,t);return s=s.filter(a=>!(a.isDone||a.description.includes("<%")&&a.description.includes("%>")||a.description===(e==null?void 0:e.description)&&a.taskLocation.path===(e==null?void 0:e.taskLocation.path)&&a.originalMarkdown===(e==null?void 0:e.originalMarkdown)||(n==null?void 0:n.includes(a))||(i==null?void 0:i.includes(a)))),e&&s.sort((a,o)=>{let l=a.taskLocation.path===e.taskLocation.path,u=o.taskLocation.path===e.taskLocation.path;return l&&u?Math.abs(a.taskLocation.lineNumber-e.taskLocation.lineNumber)-Math.abs(o.taskLocation.lineNumber-e.taskLocation.lineNumber):l?-1:u?1:0}),s.slice(0,g2)}var jS,g2,ny=X(()=>{"use strict";jS=require("obsidian");pn();g2=20});function $S(r){return globalThis.SHOW_DEPENDENCY_SUGGESTIONS&&r}function iy(r,t,e){let n=[r.startDateSymbol,r.scheduledDateSymbol,r.dueDateSymbol].join("|");return(i,s,a,o,l,u)=>{let c=[],{postfix:d,insertSkip:f}=T2(e,i,s),p={line:i,cursorPos:s,settings:a,dataviewMode:e,postfix:d,insertSkip:f};return c=c.concat(D2(n,t,p)),c=c.concat(E2(r.recurrenceSymbol,p)),$S(l)&&(c=c.concat(O2(r.idSymbol,o,p)),c=c.concat(R2(r.dependsOnSymbol,o,p,u))),c=c.concat(x2(r.onCompletionSymbol,t,p)),c=c.concat(v2(r,l,p)),c.length>0&&!c.some(b=>b.suggestionType==="match")&&(e||c.unshift({suggestionType:"empty",displayText:"\u23CE",appendText:`
`})),c=c.slice(0,a.autoSuggestMaxItems),c}}function T2(r,t,e){let n=M2(t.substring(0,e),[["(",")"],["[","]"]])=="("?")":"]",i=r?n+" ":" ",s=r&&t.length>e&&t.charAt(e)===n?1:0;return{postfix:i,insertSkip:s}}function v2(r,t,e){let n=[],i=e.line;js(n,i,r.dueDateSymbol,"due date"),js(n,i,r.startDateSymbol,"start date"),js(n,i,r.scheduledDateSymbol,"scheduled date"),_2(n,r,e),js(n,i,r.recurrenceSymbol,"recurring (repeat)"),w2(n,r,e),$S(t)&&(js(n,i,r.idSymbol,"id"),js(n,i,r.dependsOnSymbol,"depends on id")),js(n,i,r.onCompletionSymbol,"on completion");let s=k2(n,e);return s.length===0&&e.settings.autoSuggestMinMatch===0?n:s}function js(r,t,e,n){t.includes(e)||r.push({displayText:`${e} ${n}`,appendText:`${e} `})}function _2(r,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];r.push({displayText:e.dataviewMode?`${o} priority`:`${o} ${a.toLowerCase()} priority`,appendText:`${o}${e.postfix}`,insertSkip:e.dataviewMode?e.insertSkip:void 0})}}}function w2(r,t,e){if(!e.line.includes(t.createdDateSymbol)){let i=xn.parseDate("today",!0).format(fe.dateFormat);r.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 k2(r,t){let e=Ha(/([a-zA-Z'_-]*)/g,t),n=[];if(e&&e.length>0){let i=e[0];if(i.length>=Math.max(1,t.settings.autoSuggestMinMatch)){let s=r.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;n.push({suggestionType:"match",displayText:a.displayText,appendText:a.appendText,insertAt:e.index,insertSkip:o})}}}return n}function WS(r,t){let e=`${t}`,n=`${r} ${t}`;return{displayText:e,appendText:n}}function S2(r,t){let n=`${xn.parseDate(t,!0).format(fe.dateFormat)}`,i=`${t} (${n})`,s=`${r} ${n}`;return{displayText:i,appendText:s}}function D2(r,t,e){let n=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],i=[],s=new RegExp(`(${r})\\s*([0-9a-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(Nc(o),!0):null;if(l!=null&&l.isValid()){let c=l.format(fe.dateFormat);nd(e,a,[c],WS,i)}let u=sy(n,o,t,!0);nd(e,a,u,S2,i)}return i}function E2(r,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"],n=[],i=new RegExp(`(${r})\\s*([0-9a-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=Dt.fromText({recurrenceRuleText:l,occurrence:new Zn({startDate:null,scheduledDate:null,dueDate:null})}))==null?void 0:a.toText();if(f){let p=`${o} ${f}`+t.postfix;if(n.push({suggestionType:"match",displayText:`\u2705 ${f}`,appendText:p,insertAt:s.index,insertSkip:ay(s[0],t)}),s[0]==p)return[]}}let u=t.settings.autoSuggestMaxItems/2,c=sy(e,l,u,!1);c.length===0&&l.trim().length===0&&(c=e.slice(0,u)),nd(t,s,c,(f,p)=>{let b=`${p}`,T=`${f} ${p}`;return{displayText:b,appendText:T}},n)}return n}function x2(r,t,e){let n=["delete","keep"],i=[],s=new RegExp(`(${r})\\s*([0-9a-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=sy(n,o,t,!0);nd(e,a,l,WS,i)}return i}function O2(r,t,e){let n=[],i=new RegExp(`(${r})\\s*(${Ls.source})?`,"ug"),s=Ha(i,e);if(s&&s[0].trim().length<=r.length){let a=ru(t.map(o=>o.id));n.push({suggestionType:"match",displayText:"generate unique id",appendText:`${r} ${a}`+e.postfix,insertAt:s.index,insertSkip:ay(s[0],e)})}return n}function R2(r,t,e,n){let i=[],s=e.dataviewMode?Gi("()[]"):FS(),a=new RegExp(`(${r})([0-9a-zA-Z-_ ^,]*,)*([^,${s}]*)`,"ug"),o=Ha(a,e);if(o&&o.length>=1){let l=o[2]||"",u=o[3],c=[];if(l){let d=l.split(",").map(f=>f.trim());c=t.filter(f=>f.id&&d.includes(f.id))}if(u.length>=e.settings.autoSuggestMinMatch){let d=td(u.trim(),t,n,[],c);for(let f of d)i.push({suggestionType:"match",displayText:`${f.descriptionWithoutTags} - From: ${f.filename}.md`,appendText:`${r}${l}`,insertAt:o.index,insertSkip:r.length+l.length+u.length,taskItDependsOn:f})}}return i}function sy(r,t,e,n){let s=r.filter(a=>t&&t.length>=1&&a.toLowerCase().includes(t.toLowerCase())).slice(0,e);return n&&s.length===0&&(s=r.slice(0,e)),s}function nd(r,t,e,n,i){let s=t[1];for(let a of e){let{displayText:o,appendText:l}=n(s,a);i.push({suggestionType:"match",displayText:o,appendText:l+r.postfix,insertAt:t.index,insertSkip:ay(t[0],r)})}}function Ha(r,t){let e=t.line.matchAll(r),n=t.cursorPos;for(let i of e)if((i==null?void 0:i.index)&&i.index<n&&n<=i.index+i[0].length)return i}function C2(r,t){if(t.length===0)return!1;let e=Object.fromEntries(t.map(([i,s])=>[i,0])),n=Object.fromEntries(t.map(([i,s])=>[s,i]));for(let i of r)i in e?e[i]++:i in n&&(e[n[i]]=Math.max(0,e[n[i]]-1));return Object.values(e).some(i=>i>0)}function M2(r,t){if(t.length===0)return null;let e=Object.fromEntries(t.map(([s,a])=>[s,0])),n=Object.fromEntries(t.map(([s,a])=>[a,s])),i=[];for(let s=0;s<r.length;s++){let a=r[s];if(a in e)e[a]++,i.push({bracket:a,idx:s});else if(a in n){if(e[n[a]]>=1){for(let o=i.length-1;o>=0;o--)if(i[o].bracket==n[a]){i.splice(o,1);break}}e[n[a]]=Math.max(0,e[n[a]]-1)}}return i.length>0?i[i.length-1].bracket:null}function qS(r,t){return(e,n,i,s,a)=>C2(e.slice(0,n),t)?r(e,n,i,s,a):[]}function HS(r,t,e){let n=Ne.getInstance().includedIn(r),i=A2(e,t,n);return typeof i=="boolean"?i:n&&P2(r,t.ch)}function A2(r,t,e){var n,i;return(i=(n=r==null?void 0:r.editorComponent)==null?void 0:n.showTasksPluginAutoSuggest)==null?void 0:i.call(n,t,r,e)}function P2(r,t){if(r.length===0)return!1;let e=pe.extractTaskComponents(r);if(!e||e.status.type==="NON_TASK")return!1;let n=e.indentation+e.listMarker+" ["+e.status.symbol+"] ";return t>=n.length}function ay(r,t){return t.dataviewMode?r.length+t.insertSkip:r.length}var ry,b2,oy=X(()=>{"use strict";Fg();Lg();Ic();zc();nu();Nt();ed();pn();si();ny();iu();Cn();ry=5,b2=!0;globalThis.SHOW_DEPENDENCY_SUGGESTIONS=b2});var Mn,su=X(()=>{"use strict";ja();Mn=class{static priorityNameUsingNone(t){let e="ERROR";switch(t){case"1":e="High";break;case"0":e="Highest";break;case"2":e="Medium";break;case"3":e="None";break;case"4":e="Low";break;case"5":e="Lowest";break}return e}static priorityNameUsingNormal(t){return Mn.priorityNameUsingNone(t).replace("None","Normal")}static priorityValue(t){switch(t.toLowerCase()){case"lowest":return"5";case"low":return"4";case"medium":return"2";case"high":return"1";case"highest":return"0";default:return"3"}}}});function Sr(r){let t=["(?:",/(?=[^\]]+\])\[/,"|",/(?=[^)]+\))\(/,")",/ */,r,/ */,/[)\]]/,/(?: *,)?/,/$/].map(e=>e instanceof RegExp?e.source:e).join("");return new RegExp(t,r.flags)}var ly,rd,uy=X(()=>{"use strict";Fs();su();nu();ly={prioritySymbols:{Highest:"priority:: highest",High:"priority:: high",Medium:"priority:: medium",Low:"priority:: low",Lowest:"priority:: lowest",None:""},startDateSymbol:"start::",createdDateSymbol:"created::",scheduledDateSymbol:"scheduled::",dueDateSymbol:"due::",doneDateSymbol:"completion::",cancelledDateSymbol:"cancelled::",recurrenceSymbol:"repeat::",onCompletionSymbol:"onCompletion::",idSymbol:"id::",dependsOnSymbol:"dependsOn::",TaskFormatRegularExpressions:{priorityRegex:Sr(/priority:: *(highest|high|medium|low|lowest)/),startDateRegex:Sr(/start:: *(\d{4}-\d{2}-\d{2})/),createdDateRegex:Sr(/created:: *(\d{4}-\d{2}-\d{2})/),scheduledDateRegex:Sr(/scheduled:: *(\d{4}-\d{2}-\d{2})/),dueDateRegex:Sr(/due:: *(\d{4}-\d{2}-\d{2})/),doneDateRegex:Sr(/completion:: *(\d{4}-\d{2}-\d{2})/),cancelledDateRegex:Sr(/cancelled:: *(\d{4}-\d{2}-\d{2})/),recurrenceRegex:Sr(/repeat:: *([a-zA-Z0-9, !]+)/),onCompletionRegex:Sr(/onCompletion:: *([a-zA-Z]+)/),dependsOnRegex:Sr(new RegExp("dependsOn:: *("+ty.source+")")),idRegex:Sr(new RegExp("id:: *("+Ls.source+")"))}},rd=class extends Us{constructor(){super(ly)}parsePriority(t){return Mn.priorityValue(t)}componentToString(t,e,n){let i=super.componentToString(t,e,n),s=["blockLink","description"];return i!==""&&!s.includes(n)?`  [${i.trim()}]`:i}}});var tr,ge,Dr=X(()=>{"use strict";Cn();tr=class{get symbol(){return this.configuration.symbol}get name(){return this.configuration.name}get nextStatusSymbol(){return this.configuration.nextStatusSymbol}get nextSymbol(){return this.configuration.nextStatusSymbol}get availableAsCommand(){return this.configuration.availableAsCommand}get type(){return this.configuration.type}get typeGroupText(){let t=this.type,e;switch(t){case"IN_PROGRESS":e="1";break;case"TODO":e="2";break;case"DONE":e="3";break;case"CANCELLED":e="4";break;case"NON_TASK":e="5";break;case"EMPTY":e="6";break}return`%%${e}%%${t}`}constructor(t){this.configuration=t}static getTypeForUnknownSymbol(t){switch(t){case"x":case"X":return"DONE";case"/":return"IN_PROGRESS";case"-":return"CANCELLED";case"":return"EMPTY";case" ":default:return"TODO"}}static getTypeFromStatusTypeString(t){return Bt[t]||"TODO"}static createUnknownStatus(t){return new tr(new gt(t,"Unknown","x",!1,"TODO"))}static createFromImportedValue(t){let e=t[0],n=tr.getTypeFromStatusTypeString(t[3]);return new tr(new gt(e,t[1],t[2],!1,n))}isCompleted(){return this.type==="DONE"}isCancelled(){return this.type==="CANCELLED"}identicalTo(t){let e=["symbol","name","nextStatusSymbol","availableAsCommand","type"];for(let n of e)if(this[n]!==t[n])return!1;return!0}previewText(){let t="";return tr.tasksPluginCanCreateCommandsForStatuses()&&this.availableAsCommand&&(t=" Available as a command."),`- [${this.symbol}] => [${this.nextStatusSymbol}], name: '${this.name}', type: '${this.configuration.type}'.${t}`}static tasksPluginCanCreateCommandsForStatuses(){return!1}},ge=tr;ge.DONE=new tr(new gt("x","Done"," ",!0,"DONE")),ge.EMPTY=new tr(new gt("","EMPTY","",!0,"EMPTY")),ge.TODO=new tr(new gt(" ","Todo","x",!0,"TODO")),ge.CANCELLED=new tr(new gt("-","Cancelled"," ",!0,"CANCELLED")),ge.IN_PROGRESS=new tr(new gt("/","In Progress","x",!0,"IN_PROGRESS")),ge.NON_TASK=new tr(new gt("Q","Non-Task","A",!0,"NON_TASK"))});var GS=X(()=>{"use strict";nu()});function N2(r){let t=r,e=!1,n=r.split(`
`);n.length>1&&(t=n[0],e=!0);let i=50;return t.length>i&&(t=t.slice(0,i),e=!0),e&&(t+="..."),t}function VS(r,t){let e=`Cannot find preset "${r}" in the Tasks settings`;if(Object.keys(t).length===0)e+=`
You can define the instruction(s) for "${r}" in the Tasks settings.`;else{let i=Math.max(...Object.keys(t).map(a=>a.length));e+=`
The following presets are defined in the Tasks settings:
  ${Object.entries(t).sort(([a],[o])=>a.localeCompare(o)).map(([a,o])=>`${a.padEnd(i)}: ${N2(o)}`).join(`
  `)}`}return e}var BS,cy=X(()=>{"use strict";BS={this_file:"path includes {{query.file.path}}",this_folder:"folder includes {{query.file.folder}}",this_folder_only:"filter by function task.file.folder === query.file.folder",this_root:"root includes {{query.file.root}}",hide_date_fields:`# Hide any values for all date fields
hide due date
hide scheduled date
hide start date
hide created date
hide done date
hide cancelled date`,hide_non_date_fields:`# Hide all the non-date fields, but not tags
hide id
hide depends on
hide recurrence rule
hide on completion
hide priority`,hide_query_elements:`# Hide postpone, edit and backinks
hide postpone button
hide edit button
hide backlinks`,hide_everything:`# Hide everything except description and any tags
preset hide_date_fields
preset hide_non_date_fields
preset hide_query_elements`}});var id,zS=X(()=>{"use strict";id=class{constructor(t=!1,e=!1,n=!1){this.ignoreSortInstructions=t,this.showTaskHiddenData=e,this.recordTimings=n}}});var et,Ga=X(()=>{"use strict";Dr();et=class{constructor(){this.coreStatuses=[ge.TODO.configuration,ge.DONE.configuration],this.customStatuses=[ge.IN_PROGRESS.configuration,ge.CANCELLED.configuration]}static addStatus(t,e){t.push(e)}static replaceStatus(t,e,n){let i=this.findStatusIndex(e,t);return i<=-1?!1:(t.splice(i,1,n),!0)}static findStatusIndex(t,e){let n=new ge(t);return e.findIndex(i=>new ge(i).previewText()==n.previewText())}static deleteStatus(t,e){let n=this.findStatusIndex(e,t);return n<=-1?!1:(t.splice(n,1),!0)}static deleteAllCustomStatuses(t){t.customStatuses.splice(0)}static resetAllCustomStatuses(t){et.deleteAllCustomStatuses(t),new et().customStatuses.forEach(n=>{et.addStatus(t.customStatuses,n)})}static bulkAddStatusCollection(t,e){let n=[];return e.forEach(i=>{t.customStatuses.find(a=>a.symbol==i[0]&&a.name==i[1]&&a.nextStatusSymbol==i[2])?n.push(`The status ${i[1]} (${i[0]}) is already added.`):et.addStatus(t.customStatuses,ge.createFromImportedValue(i))}),n}static allStatuses(t){return t.coreStatuses.concat(t.customStatuses)}static applyToStatusRegistry(t,e){e.clearStatuses(),et.allStatuses(t).forEach(n=>{e.add(n)})}}});var QS,KS=X(()=>{QS=[{index:9999,internalName:"INTERNAL_TESTING_ENABLED_BY_DEFAULT",displayName:"Test Item. Used to validate the Feature Framework.",description:"Description",enabledByDefault:!0,stable:!1}]});var _i,ZS=X(()=>{"use strict";KS();_i=class{constructor(t,e,n,i,s,a){this.internalName=t;this.index=e;this.description=n;this.displayName=i;this.enabledByDefault=s;this.stable=a}static get values(){let t=[];return QS.forEach(e=>{t=[...t,new _i(e.internalName,e.index,e.description,e.displayName,e.enabledByDefault,e.stable)]}),t}static get settingsFlags(){let t={};return _i.values.forEach(e=>{t[e.internalName]=e.enabledByDefault}),t}static fromString(t){for(let e of _i.values)if(t===e.internalName)return e;throw new RangeError(`Illegal argument passed to fromString(): ${t} does not correspond to any available Feature ${this.prototype.constructor.name}`)}}});function dy(r,t){for(let e in r)t[e]===void 0&&(t[e]=r[e])}function au(){return Er[re().taskFormat]}function F2(r){let t=F({},r);return"includes"in t&&!("presets"in t)&&(t.presets=t.includes,delete t.includes),t}var Er,fy,wi,re,nt,$s,XS,Vt=X(()=>{"use strict";oy();nu();uy();Cn();Dr();GS();uy();ys();cy();zS();Ga();ZS();Er={tasksPluginEmoji:{getDisplayName:()=>M.t("settings.format.displayName.tasksEmojiFormat"),taskSerializer:new Us(tu),buildSuggestions:iy(tu,ry,!1)},dataview:{getDisplayName:()=>M.t("settings.format.displayName.dataview"),taskSerializer:new rd,buildSuggestions:qS(iy(ly,ry,!0),[["(",")"],["[","]"]])}},fy={presets:BS,globalQuery:"",globalFilter:"",removeGlobalFilter:!1,taskFormat:"tasksPluginEmoji",setCreatedDate:!1,setDoneDate:!0,setCancelledDate:!0,autoSuggestInEditor:!0,autoSuggestMinMatch:0,autoSuggestMaxItems:20,provideAccessKeys:!0,useFilenameAsScheduledDate:!1,filenameAsScheduledDateFormat:"",filenameAsDateFolders:[],recurrenceOnNextLine:!1,removeScheduledDateOnRecurrence:!1,statusSettings:new et,features:_i.settingsFlags,generalSettings:{},headingOpened:{},debugSettings:new id,loggingOptions:{minLevels:{"":"info",tasks:"info","tasks.Cache":"info","tasks.Events":"info","tasks.File":"info","tasks.Query":"info","tasks.Task":"info"}}},wi=F({},fy);re=()=>(dy(_i.settingsFlags,wi.features),dy(fy.loggingOptions.minLevels,wi.loggingOptions.minLevels),dy(fy.debugSettings,wi.debugSettings),wi.statusSettings.customStatuses.forEach((r,t,e)=>{var i,s;let n=ge.getTypeFromStatusTypeString(r.type);e[t]=new gt((i=r.symbol)!=null?i:" ",r.name,(s=r.nextStatusSymbol)!=null?s:"x",r.availableAsCommand,n)}),F({},wi)),nt=r=>{let t=F2(r);return wi=F(F({},wi),t),re()},$s=(r,t)=>(wi.generalSettings[r]=t,re()),XS=r=>{var t;return(t=wi.features[r])!=null?t:!1}});function sd(r){let e={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[r];return e!==void 0?e:r}function JS(r){let t=[...r],e="";return t.forEach(n=>{e+=sd(n)}),e}var eD=X(()=>{"use strict"});var je,Vr=X(()=>{"use strict";eD();Dr();Cn();je=class{constructor(){this._registeredStatuses=[];this.addDefaultStatusTypes()}set(t){this.clearStatuses(),t.forEach(e=>{this.add(e)})}get registeredStatuses(){return this._registeredStatuses.filter(({symbol:t})=>t!==ge.EMPTY.symbol)}static getInstance(){return je.instance||(je.instance=new je),je.instance}add(t){this.hasSymbol(t.symbol)||(t instanceof ge?this._registeredStatuses.push(t):this._registeredStatuses.push(new ge(t)))}bySymbol(t){return this.hasSymbol(t)?this.getSymbol(t):ge.EMPTY}bySymbolOrCreate(t){return this.hasSymbol(t)?this.getSymbol(t):ge.createUnknownStatus(t)}byName(t){return this._registeredStatuses.filter(({name:e})=>e===t).length>0?this._registeredStatuses.filter(({name:e})=>e===t)[0]:ge.EMPTY}resetToDefaultStatuses(){this.clearStatuses(),this.addDefaultStatusTypes()}clearStatuses(){this._registeredStatuses=[]}getNextStatus(t){if(t.nextStatusSymbol!==""){let e=this.bySymbol(t.nextStatusSymbol);if(e!==null)return e}return ge.EMPTY}getNextStatusOrCreate(t){let e=this.getNextStatus(t);return e.type!=="EMPTY"?e:ge.createUnknownStatus(t.nextStatusSymbol)}getNextRecurrenceStatusOrCreate(t){let e=this.getNextStatusOrCreate(t),n=this.getNextRecurrenceStatusOfType(e,"TODO");if(n)return n;let i=this.getNextRecurrenceStatusOfType(e,"IN_PROGRESS");return i||this.bySymbolOrCreate(" ")}getNextRecurrenceStatusOfType(t,e){if(t.type===e)return t;let n=t;for(let i=0;i<this.registeredStatuses.length-1;i++)if(n=this.getNextStatusOrCreate(n),n.type===e)return n}findUnknownStatuses(t){let e=t.filter(s=>!this.hasSymbol(s.symbol)),n=new je,i=[];return e.forEach(s=>{if(n.hasSymbol(s.symbol))return;let a=je.copyStatusWithNewName(s,`Unknown (${s.symbol})`);i.push(a),n.add(a)}),i.sort((s,a)=>s.symbol.localeCompare(a.symbol,void 0,{numeric:!0}))}static copyStatusWithNewName(t,e){let n=new gt(t.symbol,e,t.nextStatusSymbol,t.availableAsCommand,t.type);return new ge(n)}getSymbol(t){return this._registeredStatuses.filter(({symbol:e})=>e===t)[0]}hasSymbol(t){return this._registeredStatuses.find(e=>e.symbol===t)!==void 0}addDefaultStatusTypes(){[ge.TODO,ge.IN_PROGRESS,ge.DONE,ge.CANCELLED].forEach(e=>{this.add(e)})}mermaidDiagram(t=!1){let e=this.registeredStatuses,n="mermaid",i=[],s=[];return e.forEach((a,o)=>{let l=this.getMermaidNodeLabel(a,t);i.push(`${o+1}${l}`);let u=this.getNextStatus(a);if(this.addEdgeIfNotToInternal(e,u,s,o,!1),a.type==="DONE"){let c=this.getNextRecurrenceStatusOrCreate(a);c.symbol!==u.symbol&&this.addEdgeIfNotToInternal(e,c,s,o,!0)}}),`
\`\`\`${n}
flowchart LR

classDef TODO        stroke:#f33,stroke-width:3px;
classDef DONE        stroke:#0c0,stroke-width:3px;
classDef IN_PROGRESS stroke:#fa0,stroke-width:3px;
classDef CANCELLED   stroke:#ddd,stroke-width:3px;
classDef NON_TASK    stroke:#99e,stroke-width:3px;

${i.join(`
`)}
${s.join(`
`)}

linkStyle default stroke:gray
\`\`\`
`}addEdgeIfNotToInternal(t,e,n,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}`;n.push(c)}}getMermaidNodeLabel(t,e){let n=JS(t.name),i=t.type;if(e){let s=sd(t.symbol),a=sd(t.nextStatusSymbol),o=`[${s}] -> [${a}]`,l=`'${n}'`,u=`(${i})`;return`["${l}<br>${o}<br>${u}"]:::${i}`}else return`["${n}"]:::${i}`}}});var zr,tD=X(()=>{"use strict";zr=class{constructor(t,e){this.name=t,this.sortOrder=e}get groupText(){return this.name!==""?`%%${this.sortOrder}%% ${this.name}`:""}}});var nD,It,ad=X(()=>{"use strict";nD=require("obsidian");tD();si();It=class{constructor(t){this._date=null;this._date=t}get moment(){return this._date}formatAsDate(t=""){return this.format(fe.dateFormat,t)}formatAsDateAndTime(t=""){return this.format(fe.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 zr("Overdue",1):e.isSame(t,"day")?new zr("Today",2):e.isValid()?new zr("Future",3):new zr("Invalid date",0):new zr("Undated",4)}get fromNow(){let t=this.moment;if(!t)return new zr("",0);let e=this.fromNowOrder(t);return new zr(t.fromNow(),e)}fromNowOrder(t){if(!t.isValid())return 0;let e=window.moment(),n=t.isSameOrBefore(e,"day"),i=this.fromNowStartDateOfGroup(t,n,e);return Number((n?1:3)+i.format("YYYYMMDD"))}fromNowStartDateOfGroup(t,e,n){let i=t.fromNow(!0).split(" "),s,a=Number(i[0]);isNaN(a)?s=1:s=a;let o=i[1];return e?n.subtract(s,o):n.add(s,o)}postpone(t="days",e=1){if(!this._date)throw new nD.Notice("Cannot postpone a null date");let n=window.moment().startOf("day");return this._date.isSameOrAfter(n,"day")?this._date.clone().add(e,t):n.add(e,t)}}});var sD=x((rD,iD)=>{(function(r){var t=Object.hasOwnProperty,e=Array.isArray?Array.isArray:function(y){return Object.prototype.toString.call(y)==="[object Array]"},n=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!==r&&(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 _="(node) warning: possible EventEmitter memory leak detected. "+m+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(_+=" Event name: "+y+"."),typeof process!="undefined"&&process.emitWarning){var w=new Error(_);w.name="MaxListenersExceededWarning",w.emitter=this,w.count=m,process.emitWarning(w)}else console.error(_),console.trace&&console.trace()}var p=function(m,y,_){var w=arguments.length;switch(w){case 0:return[];case 1:return[m];case 2:return[m,y];case 3:return[m,y,_];default:for(var S=new Array(w);w--;)S[w]=arguments[w];return S}};function b(m,y){for(var _={},w,S=m.length,C=y?y.length:0,L=0;L<S;L++)w=m[L],_[w]=L<C?y[L]:r;return _}function T(m,y,_){this._emitter=m,this._target=y,this._listeners={},this._listenersCount=0;var w,S;if((_.on||_.off)&&(w=_.on,S=_.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 C=m._observers;C?C.push(this):m._observers=[this]}Object.assign(T.prototype,{subscribe:function(m,y,_){var w=this,S=this._target,C=this._emitter,L=this._listeners,j=function(){var D=p.apply(null,arguments),N={data:D,name:y,original:m};if(_){var $=_.call(S,N);$!==!1&&C.emit.apply(C,[N.name].concat(D));return}C.emit.apply(C,[y].concat(D))};if(L[m])throw Error("Event '"+m+"' is already listening");this._listenersCount++,C._newListener&&C._removeListener&&!w._onNewListener?(this._onNewListener=function(D){D===y&&L[m]===null&&(L[m]=j,w._on.call(S,m,j))},C.on("newListener",this._onNewListener),this._onRemoveListener=function(D){D===y&&!C.hasListeners(D)&&L[m]&&(L[m]=null,w._off.call(S,m,j))},L[m]=null,C.on("removeListener",this._onRemoveListener)):(L[m]=j,w._on.call(S,m,j))},unsubscribe:function(m){var y=this,_=this._listeners,w=this._emitter,S,C,L=this._off,j=this._target,D;if(m&&typeof m!="string")throw TypeError("event must be a string");function N(){y._onNewListener&&(w.off("newListener",y._onNewListener),w.off("removeListener",y._onRemoveListener),y._onNewListener=null,y._onRemoveListener=null);var $=ae.call(w,y);w._observers.splice($,1)}if(m){if(S=_[m],!S)return;L.call(j,m,S),delete _[m],--this._listenersCount||N()}else{for(C=u(_),D=C.length;D-- >0;)m=C[D],L.call(j,m,_[m]);this._listeners={},this._listenersCount=0,N()}}});function v(m,y,_,w){var S=Object.assign({},y);if(!m)return S;if(typeof m!="object")throw TypeError("options must be an object");var C=Object.keys(m),L=C.length,j,D,N;function $(be){throw Error('Invalid "'+j+'" option value'+(be?". Reason: "+be:""))}for(var ce=0;ce<L;ce++){if(j=C[ce],!w&&!t.call(y,j))throw Error('Unknown "'+j+'" option');D=m[j],D!==r&&(N=_[j],S[j]=N?N(D,$):D)}return S}function O(m,y){return(typeof m!="function"||!m.hasOwnProperty("prototype"))&&y("value must be a constructor"),m}function E(m){var y="value must be type of "+m.join("|"),_=m.length,w=m[0],S=m[1];return _===1?function(C,L){if(typeof C===w)return C;L(y)}:_===2?function(C,L){var j=typeof C;if(j===w||j===S)return C;L(y)}:function(C,L){for(var j=typeof C,D=_;D-- >0;)if(j===m[D])return C;L(y)}}var P=E(["function"]),Y=E(["object","function"]);function q(m,y,_){var w,S,C=0,L,j=new m(function(D,N,$){_=v(_,{timeout:0,overload:!1},{timeout:function(Ge,Le){return Ge*=1,(typeof Ge!="number"||Ge<0||!Number.isFinite(Ge))&&Le("timeout must be a positive number"),Ge}}),w=!_.overload&&typeof m.prototype.cancel=="function"&&typeof $=="function";function ce(){S&&(S=null),C&&(clearTimeout(C),C=0)}var be=function(Ge){ce(),D(Ge)},Oe=function(Ge){ce(),N(Ge)};w?y(be,Oe,$):(S=[function(Ge){Oe(Ge||Error("canceled"))}],y(be,Oe,function(Ge){if(L)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ge!="function")throw TypeError("onCancel callback must be a function");S.push(Ge)}),L=!0),_.timeout>0&&(C=setTimeout(function(){var Ge=Error("timeout");Ge.code="ETIMEDOUT",C=0,j.cancel(Ge),N(Ge)},_.timeout))});return w||(j.cancel=function(D){if(!!S){for(var N=S.length,$=1;$<N;$++)S[$](D);S[0](D),S=null}}),j}function ae(m){var y=this._observers;if(!y)return-1;for(var _=y.length,w=0;w<_;w++)if(y[w]._target===m)return w;return-1}function H(m,y,_,w,S){if(!_)return null;if(w===0){var C=typeof y;if(C==="string"){var L,j,D=0,N=0,$=this.delimiter,ce=$.length;if((j=y.indexOf($))!==-1){L=new Array(5);do L[D++]=y.slice(N,j),N=j+ce;while((j=y.indexOf($,N))!==-1);L[D++]=y.slice(N),y=L,S=D}else y=[y],S=1}else C==="object"?S=y.length:(y=[y],S=1)}var be=null,Oe,Ge,Le,jt,pr,wn=y[w],te=y[w+1],$t,st;if(w===S)_._listeners&&(typeof _._listeners=="function"?(m&&m.push(_._listeners),be=[_]):(m&&m.push.apply(m,_._listeners),be=[_]));else if(wn==="*"){for($t=u(_),j=$t.length;j-- >0;)Oe=$t[j],Oe!=="_listeners"&&(st=H(m,y,_[Oe],w+1,S),st&&(be?be.push.apply(be,st):be=st));return be}else if(wn==="**"){for(pr=w+1===S||w+2===S&&te==="*",pr&&_._listeners&&(be=H(m,y,_,S,S)),$t=u(_),j=$t.length;j-- >0;)Oe=$t[j],Oe!=="_listeners"&&(Oe==="*"||Oe==="**"?(_[Oe]._listeners&&!pr&&(st=H(m,y,_[Oe],S,S),st&&(be?be.push.apply(be,st):be=st)),st=H(m,y,_[Oe],w,S)):Oe===te?st=H(m,y,_[Oe],w+2,S):st=H(m,y,_[Oe],w,S),st&&(be?be.push.apply(be,st):be=st));return be}else _[wn]&&(be=H(m,y,_[wn],w+1,S));if(Ge=_["*"],Ge&&H(m,y,Ge,w+1,S),Le=_["**"],Le)if(w<S)for(Le._listeners&&H(m,y,Le,S,S),$t=u(Le),j=$t.length;j-- >0;)Oe=$t[j],Oe!=="_listeners"&&(Oe===te?H(m,y,Le[Oe],w+2,S):Oe===wn?H(m,y,Le[Oe],w+1,S):(jt={},jt[Oe]=Le[Oe],H(m,y,{"**":jt},w+1,S)));else Le._listeners?H(m,y,Le,S,S):Le["*"]&&Le["*"]._listeners&&H(m,y,Le["*"],S,S);return be}function J(m,y,_){var w=0,S=0,C,L=this.delimiter,j=L.length,D;if(typeof m=="string")if((C=m.indexOf(L))!==-1){D=new Array(5);do D[w++]=m.slice(S,C),S=C+j;while((C=m.indexOf(L,S))!==-1);D[w++]=m.slice(S)}else D=[m],w=1;else D=m,w=m.length;if(w>1){for(C=0;C+1<w;C++)if(D[C]==="**"&&D[C+1]==="**")return}var N=this.listenerTree,$;for(C=0;C<w;C++)if($=D[C],N=N[$]||(N[$]={}),C===w-1)return N._listeners?(typeof N._listeners=="function"&&(N._listeners=[N._listeners]),_?N._listeners.unshift(y):N._listeners.push(y),!N._listeners.warned&&this._maxListeners>0&&N._listeners.length>this._maxListeners&&(N._listeners.warned=!0,f.call(this,N._listeners.length,$))):N._listeners=y,!0;return!0}function ye(m,y,_,w){for(var S=u(m),C=S.length,L,j,D,N=m._listeners,$;C-- >0;)j=S[C],L=m[j],j==="_listeners"?D=_:D=_?_.concat(j):[j],$=w||typeof j=="symbol",N&&y.push($?D:D.join(this.delimiter)),typeof L=="object"&&ye.call(this,L,y,D,$);return y}function we(m){for(var y=u(m),_=y.length,w,S,C;_-- >0;)S=y[_],w=m[S],w&&(C=!0,S!=="_listeners"&&!we(w)&&delete m[S]);return C}function V(m,y,_){this.emitter=m,this.event=y,this.listener=_}V.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function K(m,y,_){if(_===!0)S=!0;else if(_===!1)w=!0;else{if(!_||typeof _!="object")throw TypeError("options should be an object or true");var w=_.async,S=_.promisify,C=_.nextTick,L=_.objectify}if(w||C||S){var j=y,D=y._origin||y;if(C&&!i)throw Error("process.nextTick is not supported");S===r&&(S=y.constructor.name==="AsyncFunction"),y=function(){var N=arguments,$=this,ce=this.event;return S?C?Promise.resolve():new Promise(function(be){l(be)}).then(function(){return $.event=ce,j.apply($,N)}):(C?process.nextTick:l)(function(){$.event=ce,j.apply($,N)})},y._async=!0,y._origin=D}return[y,L?new V(this,m,y):this]}function R(m){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,d.call(this,m)}R.EventEmitter2=R,R.prototype.listenTo=function(m,y,_){if(typeof m!="object")throw TypeError("target musts be an object");var w=this;_=v(_,{on:r,off:r,reducers:r},{on:P,off:P,reducers:Y});function S(C){if(typeof C!="object")throw TypeError("events must be an object");var L=_.reducers,j=ae.call(w,m),D;j===-1?D=new T(w,m,_):D=w._observers[j];for(var N=u(C),$=N.length,ce,be=typeof L=="function",Oe=0;Oe<$;Oe++)ce=N[Oe],D.subscribe(ce,C[ce]||ce,be?L:L&&L[ce])}return e(y)?S(b(y)):S(typeof y=="string"?b(y.split(/\s+/)):y),this},R.prototype.stopListeningTo=function(m,y){var _=this._observers;if(!_)return!1;var w=_.length,S,C=!1;if(m&&typeof m!="object")throw TypeError("target should be an object");for(;w-- >0;)S=_[w],(!m||S._target===m)&&(S.unsubscribe(y),C=!0);return C},R.prototype.delimiter=".",R.prototype.setMaxListeners=function(m){m!==r&&(this._maxListeners=m,this._conf||(this._conf={}),this._conf.maxListeners=m)},R.prototype.getMaxListeners=function(){return this._maxListeners},R.prototype.event="",R.prototype.once=function(m,y,_){return this._once(m,y,!1,_)},R.prototype.prependOnceListener=function(m,y,_){return this._once(m,y,!0,_)},R.prototype._once=function(m,y,_,w){return this._many(m,1,y,_,w)},R.prototype.many=function(m,y,_,w){return this._many(m,y,_,!1,w)},R.prototype.prependMany=function(m,y,_,w){return this._many(m,y,_,!0,w)},R.prototype._many=function(m,y,_,w,S){var C=this;if(typeof _!="function")throw new Error("many only accepts instances of Function");function L(){return--y===0&&C.off(m,L),_.apply(this,arguments)}return L._origin=_,this._on(m,L,w,S)},R.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||c.call(this);var m=arguments[0],y,_=this.wildcard,w,S,C,L,j;if(m==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(_&&(y=m,m!=="newListener"&&m!=="removeListener"&&typeof m=="object")){if(S=m.length,s){for(C=0;C<S;C++)if(typeof m[C]=="symbol"){j=!0;break}}j||(m=m.join(this.delimiter))}var D=arguments.length,N;if(this._all&&this._all.length)for(N=this._all.slice(),C=0,S=N.length;C<S;C++)switch(this.event=m,D){case 1:N[C].call(this,m);break;case 2:N[C].call(this,m,arguments[1]);break;case 3:N[C].call(this,m,arguments[1],arguments[2]);break;default:N[C].apply(this,arguments)}if(_)N=[],H.call(this,N,y,this.listenerTree,0,S);else if(N=this._events[m],typeof N=="function"){switch(this.event=m,D){case 1:N.call(this);break;case 2:N.call(this,arguments[1]);break;case 3:N.call(this,arguments[1],arguments[2]);break;default:for(w=new Array(D-1),L=1;L<D;L++)w[L-1]=arguments[L];N.apply(this,w)}return!0}else N&&(N=N.slice());if(N&&N.length){if(D>3)for(w=new Array(D-1),L=1;L<D;L++)w[L-1]=arguments[L];for(C=0,S=N.length;C<S;C++)switch(this.event=m,D){case 1:N[C].call(this);break;case 2:N[C].call(this,arguments[1]);break;case 3:N[C].call(this,arguments[1],arguments[2]);break;default:N[C].apply(this,w)}return!0}else if(!this.ignoreErrors&&!this._all&&m==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},R.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||c.call(this);var m=arguments[0],y=this.wildcard,_,w,S,C,L,j;if(m==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(y&&(_=m,m!=="newListener"&&m!=="removeListener"&&typeof m=="object")){if(C=m.length,s){for(L=0;L<C;L++)if(typeof m[L]=="symbol"){w=!0;break}}w||(m=m.join(this.delimiter))}var D=[],N=arguments.length,$;if(this._all)for(L=0,C=this._all.length;L<C;L++)switch(this.event=m,N){case 1:D.push(this._all[L].call(this,m));break;case 2:D.push(this._all[L].call(this,m,arguments[1]));break;case 3:D.push(this._all[L].call(this,m,arguments[1],arguments[2]));break;default:D.push(this._all[L].apply(this,arguments))}if(y?($=[],H.call(this,$,_,this.listenerTree,0)):$=this._events[m],typeof $=="function")switch(this.event=m,N){case 1:D.push($.call(this));break;case 2:D.push($.call(this,arguments[1]));break;case 3:D.push($.call(this,arguments[1],arguments[2]));break;default:for(S=new Array(N-1),j=1;j<N;j++)S[j-1]=arguments[j];D.push($.apply(this,S))}else if($&&$.length){if($=$.slice(),N>3)for(S=new Array(N-1),j=1;j<N;j++)S[j-1]=arguments[j];for(L=0,C=$.length;L<C;L++)switch(this.event=m,N){case 1:D.push($[L].call(this));break;case 2:D.push($[L].call(this,arguments[1]));break;case 3:D.push($[L].call(this,arguments[1],arguments[2]));break;default:D.push($[L].apply(this,S))}}else if(!this.ignoreErrors&&!this._all&&m==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(D)},R.prototype.on=function(m,y,_){return this._on(m,y,!1,_)},R.prototype.prependListener=function(m,y,_){return this._on(m,y,!0,_)},R.prototype.onAny=function(m){return this._onAny(m,!1)},R.prototype.prependAny=function(m){return this._onAny(m,!0)},R.prototype.addListener=R.prototype.on,R.prototype._onAny=function(m,y){if(typeof m!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),y?this._all.unshift(m):this._all.push(m),this},R.prototype._on=function(m,y,_,w){if(typeof m=="function")return this._onAny(m,y),this;if(typeof y!="function")throw new Error("on only accepts instances of Function");this._events||c.call(this);var S=this,C;return w!==r&&(C=K.call(this,m,y,w),y=C[0],S=C[1]),this._newListener&&this.emit("newListener",m,y),this.wildcard?(J.call(this,m,y,_),S):(this._events[m]?(typeof this._events[m]=="function"&&(this._events[m]=[this._events[m]]),_?this._events[m].unshift(y):this._events[m].push(y),!this._events[m].warned&&this._maxListeners>0&&this._events[m].length>this._maxListeners&&(this._events[m].warned=!0,f.call(this,this._events[m].length,m))):this._events[m]=y,S)},R.prototype.off=function(m,y){if(typeof y!="function")throw new Error("removeListener only takes instances of Function");var _,w=[];if(this.wildcard){var S=typeof m=="string"?m.split(this.delimiter):m.slice();if(w=H.call(this,null,S,this.listenerTree,0),!w)return this}else{if(!this._events[m])return this;_=this._events[m],w.push({_listeners:_})}for(var C=0;C<w.length;C++){var L=w[C];if(_=L._listeners,e(_)){for(var j=-1,D=0,N=_.length;D<N;D++)if(_[D]===y||_[D].listener&&_[D].listener===y||_[D]._origin&&_[D]._origin===y){j=D;break}if(j<0)continue;return this.wildcard?L._listeners.splice(j,1):this._events[m].splice(j,1),_.length===0&&(this.wildcard?delete L._listeners:delete this._events[m]),this._removeListener&&this.emit("removeListener",m,y),this}else(_===y||_.listener&&_.listener===y||_._origin&&_._origin===y)&&(this.wildcard?delete L._listeners:delete this._events[m],this._removeListener&&this.emit("removeListener",m,y))}return this.listenerTree&&we(this.listenerTree),this},R.prototype.offAny=function(m){var y=0,_=0,w;if(m&&this._all&&this._all.length>0){for(w=this._all,y=0,_=w.length;y<_;y++)if(m===w[y])return w.splice(y,1),this._removeListener&&this.emit("removeListenerAny",m),this}else{if(w=this._all,this._removeListener)for(y=0,_=w.length;y<_;y++)this.emit("removeListenerAny",w[y]);this._all=[]}return this},R.prototype.removeListener=R.prototype.off,R.prototype.removeAllListeners=function(m){if(m===r)return!this._events||c.call(this),this;if(this.wildcard){var y=H.call(this,null,m,this.listenerTree,0),_,w;if(!y)return this;for(w=0;w<y.length;w++)_=y[w],_._listeners=null;this.listenerTree&&we(this.listenerTree)}else this._events&&(this._events[m]=null);return this},R.prototype.listeners=function(m){var y=this._events,_,w,S,C,L;if(m===r){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!y)return[];for(_=u(y),C=_.length,S=[];C-- >0;)w=y[_[C]],typeof w=="function"?S.push(w):S.push.apply(S,w);return S}else{if(this.wildcard){if(L=this.listenerTree,!L)return[];var j=[],D=typeof m=="string"?m.split(this.delimiter):m.slice();return H.call(this,j,D,L,0),j}return y?(w=y[m],w?typeof w=="function"?[w]:w:[]):[]}},R.prototype.eventNames=function(m){var y=this._events;return this.wildcard?ye.call(this,this.listenerTree,[],null,m):y?u(y):[]},R.prototype.listenerCount=function(m){return this.listeners(m).length},R.prototype.hasListeners=function(m){if(this.wildcard){var y=[],_=typeof m=="string"?m.split(this.delimiter):m.slice();return H.call(this,y,_,this.listenerTree,0),y.length>0}var w=this._events,S=this._all;return!!(S&&S.length||w&&(m===r?u(w).length:w[m]))},R.prototype.listenersAny=function(){return this._all?this._all:[]},R.prototype.waitFor=function(m,y){var _=this,w=typeof y;return w==="number"?y={timeout:y}:w==="function"&&(y={filter:y}),y=v(y,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:P,Promise:O}),q(y.Promise,function(S,C,L){function j(){var D=y.filter;if(!(D&&!D.apply(_,arguments)))if(_.off(m,j),y.handleError){var N=arguments[0];N?C(N):S(p.apply(null,arguments).slice(1))}else S(p.apply(null,arguments))}L(function(){_.off(m,j)}),_._on(m,j,!1)},{timeout:y.timeout,overload:y.overload})};function ee(m,y,_){_=v(_,{Promise,timeout:0,overload:!1},{Promise:O});var w=_.Promise;return q(w,function(S,C,L){var j;if(typeof m.addEventListener=="function"){j=function(){S(p.apply(null,arguments))},L(function(){m.removeEventListener(y,j)}),m.addEventListener(y,j,{once:!0});return}var D=function(){N&&m.removeListener("error",N),S(p.apply(null,arguments))},N;y!=="error"&&(N=function($){m.removeListener(y,D),C($)},m.once("error",N)),L(function(){N&&m.removeListener("error",N),m.removeListener(y,D)}),m.once(y,D)},{timeout:_.timeout,overload:_.overload})}var W=R.prototype;if(Object.defineProperties(R,{defaultMaxListeners:{get:function(){return W._maxListeners},set:function(m){if(typeof m!="number"||m<0||Number.isNaN(m))throw TypeError("n must be a non-negative number");W._maxListeners=m},enumerable:!0},once:{value:ee,writable:!0,configurable:!0}}),Object.defineProperties(W,{_maxListeners:{value:n,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof define=="function"&&define.amd)define(function(){return R});else if(typeof rD=="object")iD.exports=R;else{var le=new Function("","return this")();le.EventEmitter2=R}})()});function hy(r,t){let e=sn.getLogger("tasks");switch(r){case"trace":e.trace(t);break;case"debug":e.debug(t);break;case"info":e.info(t);break;case"warn":e.warn(t);break;case"error":e.error(t);break;default:break}}var L2,aD,py,sn,my,Ws=X(()=>{"use strict";L2=require("obsidian"),aD=qo(sD()),py=class extends aD.EventEmitter2{constructor(){super(...arguments);this.options={minLevels:{"":"info",tasks:"info"}};this.consoleLoggerRegistered=!1;this.arrAvg=e=>e.reduce((n,i)=>n+i,0)/e.length}configure(e){return this.options=Object.assign({},this.options,e),this}getLogger(e){let n="none",i="";for(let s in this.options.minLevels)e.startsWith(s)&&s.length>=i.length&&(n=this.options.minLevels[s],i=s);return new my(this,e,n)}onLogEntry(e){return this.on("log",e),this}registerConsoleLogger(){return this.consoleLoggerRegistered?this:(this.onLogEntry(e=>{let n=`[${window.moment().format("YYYY-MM-DD-HH:mm:ss.SSS")}][${e.level}][${e.module}]`;switch(e.traceId&&(n+=`[${e.traceId}]`),n+=` ${e.message}`,e.objects===void 0&&(e.objects=""),e.level){case"trace":console.trace(n,e.objects);break;case"debug":console.debug(n,e.objects);break;case"info":console.info(n,e.objects);break;case"warn":console.warn(n,e.objects);break;case"error":console.error(n,e.objects);break;default:console.log(`{${e.level}} ${n}`,e.objects)}}),this.consoleLoggerRegistered=!0,this)}},sn=new py,my=class{constructor(t,e,n){this.levels={trace:1,debug:2,info:3,warn:4,error:5};this.logManager=t,this.module=e,this.minLevel=this.levelToInt(n)}levelToInt(t){return t.toLowerCase()in this.levels?this.levels[t.toLowerCase()]:99}log(t,e,n){if(this.levelToInt(t)<this.minLevel)return;let s={level:t,module:this.module,message:e,objects:n,traceId:void 0};this.logManager.emit("log",s)}trace(t,e){this.log("trace",t,e)}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}logWithId(t,e,n,i){if(this.levelToInt(t)<this.minLevel)return;let a={level:t,module:this.module,message:n,objects:i,traceId:e};this.logManager.emit("log",a)}traceWithId(t,e,n){this.logWithId("trace",t,e,n)}debugWithId(t,e,n){this.logWithId("debug",t,e,n)}infoWithId(t,e,n){this.logWithId("info",t,e,n)}warnWithId(t,e,n){this.logWithId("warn",t,e,n)}errorWithId(t,e,n){this.logWithId("error",t,e,n)}}});function od(r,t,e){r.debug(`${t}: task line number: ${e.taskLocation.lineNumber}. file path: "${e.path}"`),r.debug(`${t} original: ${e.originalMarkdown}`)}function ld(r,t,e){e.map((n,i)=>{r.debug(`${t} ==> ${i+1}   : ${n.toFileLineString()}`)})}var gy=X(()=>{"use strict"});var Ft,Vi=X(()=>{"use strict";Vt();Nt();Ft=class{static fromPath(t){let{useFilenameAsScheduledDate:e,filenameAsDateFolders:n}=re();return!e||!this.matchesAnyFolder(n,t)?null:this.extractDateFromPath(t)}static matchesAnyFolder(t,e){return t.length===0?!0:t.some(n=>e.startsWith(n+"/"))}static extractDateFromPath(t){let e=Math.max(0,t.lastIndexOf("/")+1),n=t.lastIndexOf("."),i=t.substring(e,n),{filenameAsScheduledDateFormat:s}=re();if(s!==""){let o=window.moment(i,s,!0);if(o.isValid())return o}let a=/(\d{4})-(\d{2})-(\d{2})/.exec(i);if(a||(a=/(\d{4})(\d{2})(\d{2})/.exec(i)),a){let o=window.moment([parseInt(a[1]),parseInt(a[2])-1,parseInt(a[3])]);if(o.isValid())return o}return null}static canApplyFallback({startDate:t,scheduledDate:e,dueDate:n}){return t===null&&n===null&&e===null}static updateTaskPath(t,e,n){let i=t.scheduledDate,s=t.scheduledDateIsInferred;return n===null?s&&(s=!1,i=null):s?i=n:this.canApplyFallback(t)&&(i=n,s=!0),new pe(de(F({},t),{taskLocation:e,scheduledDate:i,scheduledDateIsInferred:s}))}static removeInferredStatusIfNeeded(t,e){let n=t.scheduledDateIsInferred?t.scheduledDate:null;return e.map(i=>(n!==null&&!n.isSame(i.scheduledDate,"day")&&(i=new pe(de(F({},i),{scheduledDateIsInferred:!1}))),i))}}});var xr,ki,oD=X(()=>{"use strict";xr=class{static calculate(t){var n,i,s;let e=0;if((n=t.dueDate)!=null&&n.isValid()){let a=window.moment().startOf("day"),o=Math.round(a.diff(t.dueDate)/xr.milliSecondsPerDay),l;o>=7?l=1:o>=-14?l=(o+14)*.8/21+.2:l=.2,e+=l*xr.dueCoefficient}switch((i=t.scheduledDate)!=null&&i.isValid()&&window.moment().isSameOrAfter(t.scheduledDate)&&(e+=1*xr.scheduledCoefficient),(s=t.startDate)!=null&&s.isValid()&&window.moment().isBefore(t.startDate)&&(e+=1*xr.startedCoefficient),t.priority){case"0":e+=1.5*xr.priorityCoefficient;break;case"1":e+=1*xr.priorityCoefficient;break;case"2":e+=.65*xr.priorityCoefficient;break;case"3":e+=.325*xr.priorityCoefficient;break;case"5":e-=.3*xr.priorityCoefficient;break}return e}},ki=xr;ki.dueCoefficient=12,ki.scheduledCoefficient=5,ki.startedCoefficient=-3,ki.priorityCoefficient=6,ki.milliSecondsPerDay=1e3*60*60*24});var lD={};Cb(lD,{Task:()=>pe,isBlocked:()=>U2});function U2(r,t){if(r.dependsOn.length===0||r.isDone)return!1;for(let e of r.dependsOn)if(!!t.find(i=>i.id===e&&!i.isDone))return!0;return!1}var pe,Nt=X(()=>{"use strict";Vt();pn();Vr();Cs();ad();Cn();su();Ws();gy();Vi();ud();oD();si();Qc();pe=class extends nr{constructor({status:e,description:n,taskLocation:i,indentation:s,listMarker:a,priority:o,createdDate:l,startDate:u,scheduledDate:c,dueDate:d,doneDate:f,cancelledDate:p,recurrence:b,onCompletion:T,dependsOn:v,id:O,blockLink:E,tags:P,originalMarkdown:Y,scheduledDateIsInferred:q,parent:ae=null}){super({originalMarkdown:Y,indentation:s,listMarker:a,statusCharacter:e.symbol,description:n,taskLocation:i,parent:ae});this._urgency=null;this.status=e,this.tags=P,this.priority=o,this.createdDate=l,this.startDate=u,this.scheduledDate=c,this.dueDate=d,this.doneDate=f,this.cancelledDate=p,this.recurrence=b,this.onCompletion=T,this.dependsOn=v,this.id=O,this.blockLink=E,this.scheduledDateIsInferred=q}static fromLine({line:e,taskLocation:n,fallbackDate:i}){let s=pe.extractTaskComponents(e);return s===null||!Ne.getInstance().includedIn(s.body)?null:pe.parseTaskSignifiers(e,n,i)}static parseTaskSignifiers(e,n,i){let s=pe.extractTaskComponents(e);if(s===null)return null;let{taskSerializer:a}=au(),o=a.deserialize(s.body),l=!1;return Ft.canApplyFallback(o)&&i!==null&&(o.scheduledDate=i,l=!0),o.tags=o.tags.map(u=>u.trim()),o.tags=o.tags.filter(u=>!Ne.getInstance().equals(u)),new pe(de(F(F({},s),o),{taskLocation:n,originalMarkdown:e,scheduledDateIsInferred:l}))}static extractTaskComponents(e){let n=e.match(fe.taskRegex);if(n===null)return null;let i=n[1],s=n[2],a=n[3],o=je.getInstance().bySymbolOrCreate(a),l=n[4].trim(),u=l.match(fe.blockLinkRegex),c=u!==null?u[0]:"";return c!==""&&(l=l.replace(fe.blockLinkRegex,"").trim()),{indentation:i,listMarker:s,status:o,body:l,blockLink:c}}toString(){return au().taskSerializer.serialize(this)}toFileLineString(){return`${this.indentation}${this.listMarker} [${this.status.symbol}] ${this.toString()}`}toggle(){let e=sn.getLogger("tasks.Task"),n="toggle()";od(e,n,this);let i=je.getInstance().getNextStatusOrCreate(this.status),s=this.handleNewStatus(i);return ld(e,n,s),s}handleNewStatus(e,n=window.moment()){if(e.identicalTo(this.status))return[this];let{setDoneDate:i}=re(),s=this.newDate(e,"DONE",this.doneDate,i,n),{setCancelledDate:a}=re(),o=this.newDate(e,"CANCELLED",this.cancelledDate,a,n),l=new pe(de(F({},this),{status:e,doneDate:s,cancelledDate:o})),u=!e.isCompleted(),c=this.status.isCompleted(),d=this.recurrence===null;if(u||c||d)return[l];let{removeScheduledDateOnRecurrence:p}=re(),b=this.recurrence.next(n,p);return b===null?[l]:[this.createNextOccurrence(e,b),l]}newDate(e,n,i,s,a){let o=null;return e.type===n&&(this.status.type!==n?s&&(o=a):o=i),o}createNextOccurrence(e,n){let{setCreatedDate:i}=re(),s=null;i&&(s=window.moment());let a=null,o=null,u=je.getInstance().getNextRecurrenceStatusOrCreate(e);return new pe(de(F(F({},this),n),{status:u,blockLink:"",id:"",dependsOn:[],createdDate:s,cancelledDate:a,doneDate:o}))}toggleWithRecurrenceInUsersOrder(){let e=this.toggle();return this.putRecurrenceInUsersOrder(e)}handleNewStatusWithRecurrenceInUsersOrder(e,n=window.moment()){sn.getLogger("tasks.Task").debug(`changed task ${this.taskLocation.path} ${this.taskLocation.lineNumber} ${this.originalMarkdown} status to '${e.symbol}'`);let s=this.handleNewStatus(e,n);return this.putRecurrenceInUsersOrder(s)}putRecurrenceInUsersOrder(e){let n=IS(this,e),{recurrenceOnNextLine:i}=re();return i?n.reverse():n}get isTask(){return!0}get isDone(){return this.status.type==="DONE"||this.status.type==="CANCELLED"||this.status.type==="NON_TASK"}isBlocked(e){if(this.dependsOn.length===0||this.isDone)return!1;for(let n of this.dependsOn)if(!!e.find(s=>s.id===n&&!s.isDone))return!0;return!1}isBlocking(e){return this.id===""||this.isDone?!1:e.some(n=>n.isDone?!1:n.dependsOn.includes(this.id))}get priorityNumber(){return Number.parseInt(this.priority)}get priorityNameGroupText(){let e=Mn.priorityNameUsingNormal(this.priority);return`%%${this.priority}%%${e} priority`}get descriptionWithoutTags(){return this.description.replace(fe.hashTags,"").trim()}get priorityName(){return Mn.priorityNameUsingNormal(this.priority)}get urgency(){return this._urgency===null&&(this._urgency=ki.calculate(this)),this._urgency}get cancelled(){return new It(this.cancelledDate)}get created(){return new It(this.createdDate)}get done(){return new It(this.doneDate)}get due(){return new It(this.dueDate)}get scheduled(){return new It(this.scheduledDate)}get start(){return new It(this.startDate)}get happensDates(){return Array.of(this.startDate,this.scheduledDate,this.dueDate)}get happens(){let e=this.happensDates,n=Array.from(e).sort(Qn);for(let i of n)if(i!=null&&i.isValid())return new It(i);return new It(null)}get isRecurring(){return this.recurrence!==null}get recurrenceRule(){return this.recurrence?this.recurrence.toText():""}get heading(){return this.precedingHeader}get hasHeading(){return this.precedingHeader!==null}getLinkText({isFilenameUnique:e}){let n;return e?n=this.filename:n="/"+this.path,n===null?null:(this.precedingHeader!==null&&this.precedingHeader!==n&&(n=n+" > "+this.precedingHeader),n)}identicalTo(e){var i,s;if(!super.identicalTo(e))return!1;let n=["priority","blockLink","scheduledDateIsInferred","id","dependsOn","onCompletion"];for(let a of n)if(((i=this[a])==null?void 0:i.toString())!==((s=e[a])==null?void 0:s.toString()))return!1;if(!this.status.identicalTo(e.status)||this.tags.length!==e.tags.length||!this.tags.every(function(a,o){return a===e.tags[o]}))return!1;n=pe.allDateFields();for(let a of n){let o=this[a],l=e[a];if(Qn(o,l)!==0)return!1}return this.recurrenceIdenticalTo(e)?this.file.rawFrontmatterIdenticalTo(e.file):!1}recurrenceIdenticalTo(e){let n=this.recurrence,i=e.recurrence;return!(n===null&&i!==null||n!==null&&i===null||n&&i&&!n.identicalTo(i))}static allDateFields(){return["createdDate","startDate","scheduledDate","dueDate","doneDate","cancelledDate"]}static extractHashtags(e){var n,i;return(i=(n=e.match(fe.hashTags))==null?void 0:n.map(s=>s.trim()))!=null?i:[]}}});var nr,ud=X(()=>{"use strict";si();nr=class{constructor({originalMarkdown:t,indentation:e,listMarker:n,statusCharacter:i,description:s,parent:a,taskLocation:o}){this.children=[];this.indentation=e,this.listMarker=n,this.statusCharacter=i,this.description=s,this.originalMarkdown=t,this.parent=a,a!==null&&a.children.push(this),this.taskLocation=o}static fromListItemLine(t,e,n){var a;let i=RegExp(fe.nonTaskRegex).exec(t);if(!i)return null;let s=i[2];return s===void 0?null:new nr({originalMarkdown:t,indentation:i[1],listMarker:s,statusCharacter:(a=i[4])!=null?a:null,description:i[5].trim(),taskLocation:n,parent:e})}get root(){return this.parent===null?this:this.parent.root}get isRoot(){return this.parent===null}findClosestParentTask(){let t=this.parent;for(;t!==null;){let{Task:e}=(Nt(),Ab(lD));if(t instanceof e)return t;t=t.parent}return null}get isTask(){return!1}identicalTo(t){var n,i;if(this.constructor.name!==t.constructor.name)return!1;let e=["description","statusCharacter","indentation","listMarker"];for(let s of e)if(((n=this[s])==null?void 0:n.toString())!==((i=t[s])==null?void 0:i.toString()))return!1;return this.taskLocation.identicalTo(t.taskLocation)?nr.listsAreIdentical(this.children,t.children):!1}static listsAreIdentical(t,e){return t.length!==e.length?!1:t.every((n,i)=>n.identicalTo(e[i]))}get path(){return this.taskLocation.path}get file(){return this.taskLocation.tasksFile}get filename(){let t=this.path.match(/([^/]+)\.md$/);return t!==null?t[1]:null}get lineNumber(){return this.taskLocation.lineNumber}get sectionStart(){return this.taskLocation.sectionStart}get sectionIndex(){return this.taskLocation.sectionIndex}get precedingHeader(){return this.taskLocation.precedingHeader}checkOrUncheck(){if(this.statusCharacter===null)return this;let t=this.statusCharacter===" "?"x":" ",e=this.originalMarkdown.replace(RegExp(fe.checkboxRegex),`[${t}]`);return new nr(de(F({},this),{originalMarkdown:e,statusCharacter:t,parent:null}))}toFileLineString(){let t=this.statusCharacter?`[${this.statusCharacter}] `:"";return`${this.indentation}${this.listMarker} ${t}${this.description}`}}});var wE=x(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var vE=Symbol("MustacheDataPath");function TE({target:r,propertyName:t}){return[...r[vE]||[],t]}function _E(r,t){return typeof r!="object"?r:new Proxy(r,{get(e,n){let i=e[n];if(i===void 0&&!(n in e)){let s=TE({target:e,propertyName:n});if(t!=null&&t.handleError)return t.handleError(s),i;throw Error(`Missing Mustache data property: ${s.join(" > ")}`)}return i&&typeof i=="object"?(i[vE]=TE({target:e,propertyName:n}),_E(i,t)):i}})}Vy.default=_E});var Jr=x(Ar=>{"use strict";Ar.__esModule=!0;Ar.Tokens=Ar.StructuralCharacters=Ar.Operators=void 0;var hY;(function(r){r.AND="AND",r.OR="OR",r.XOR="XOR",r.NOT="NOT"})(hY=Ar.Operators||(Ar.Operators={}));var gY;(function(r){r.OPEN_PARENTHESIS="(",r.CLOSE_PARENTHESIS=")"})(gY=Ar.StructuralCharacters||(Ar.StructuralCharacters={}));var yY;(function(r){r.IDENTIFIER="IDENTIFIER",r.OPERATOR="OPERATOR",r.STRUCTURAL_CHARACTER="STRUCTURAL_CHARACTER",r.EOF="EOF",r.COMMENT="COMMENT"})(yY=Ar.Tokens||(Ar.Tokens={}))});var eb=x(fo=>{"use strict";fo.__esModule=!0;fo.VALID_TOKENS=fo.OPERATOR_PRECEDENCE=void 0;var it=Jr();fo.OPERATOR_PRECEDENCE={NOT:0,XOR:1,AND:2,OR:3};fo.VALID_TOKENS={identifierOnly:[{name:it.Tokens.IDENTIFIER},{name:it.Tokens.STRUCTURAL_CHARACTER,value:it.StructuralCharacters.OPEN_PARENTHESIS}],identifierOrNot:[{name:it.Tokens.IDENTIFIER},{name:it.Tokens.STRUCTURAL_CHARACTER,value:it.StructuralCharacters.OPEN_PARENTHESIS},{name:it.Tokens.OPERATOR,value:it.Operators.NOT}],binaryOperator:[{name:it.Tokens.OPERATOR,value:it.Operators.AND},{name:it.Tokens.OPERATOR,value:it.Operators.OR},{name:it.Tokens.OPERATOR,value:it.Operators.XOR}],binaryOperatorOrClose:[{name:it.Tokens.OPERATOR,value:it.Operators.AND},{name:it.Tokens.OPERATOR,value:it.Operators.OR},{name:it.Tokens.OPERATOR,value:it.Operators.XOR},{name:it.Tokens.STRUCTURAL_CHARACTER,value:it.StructuralCharacters.CLOSE_PARENTHESIS}]}});var tb=x(Qt=>{"use strict";Qt.__esModule=!0;Qt.ESCAPE_CHARACTER=Qt.EOL=Qt.COMMENT_DELIMITER=Qt.QUOTED_IDENTIFIER_DELIMITER=Qt.SEPARATORS=Qt.OPERATORS=Qt.STRUCTURAL_CHARACTERS=void 0;var po=Jr();Qt.STRUCTURAL_CHARACTERS={"(":po.StructuralCharacters.OPEN_PARENTHESIS,")":po.StructuralCharacters.CLOSE_PARENTHESIS};Qt.OPERATORS={AND:po.Operators.AND,OR:po.Operators.OR,XOR:po.Operators.XOR,NOT:po.Operators.NOT};Qt.SEPARATORS=new Set([32,9,10,13].map(function(r){return String.fromCodePoint(r)}));Qt.QUOTED_IDENTIFIER_DELIMITER=String.fromCodePoint(34);Qt.COMMENT_DELIMITER=String.fromCodePoint(35);Qt.EOL=String.fromCodePoint(10);Qt.ESCAPE_CHARACTER=String.fromCodePoint(92)});var EE=x(cr=>{"use strict";var nb=cr&&cr.__assign||function(){return nb=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},nb.apply(this,arguments)};cr.__esModule=!0;cr.getQuotedIdentifier=cr.getComment=cr.createResult=void 0;var DE=Jr(),na=tb(),bY=function(r,t,e){return{token:nb({name:r},t!==null?{value:t}:{}),remainingString:e}};cr.createResult=bY;var TY=function(r){for(var t=r.length,e=0;e<r.length;e+=1){var n=r[e];if(n===na.EOL){t=e;break}}return(0,cr.createResult)(DE.Tokens.COMMENT,r.slice(0,t),r.slice(t+1))};cr.getComment=TY;var vY=function(r){for(var t=!1,e="",n=null,i=0;i<r.length;i+=1){var s=r[i];if(n===null)s===na.QUOTED_IDENTIFIER_DELIMITER?t?(e=e.slice(0,-1)+na.QUOTED_IDENTIFIER_DELIMITER,t=!1):n=i:(s===na.ESCAPE_CHARACTER?t=!0:t=!1,e=e+=s);else{if(!na.SEPARATORS.has(s)&&!na.STRUCTURAL_CHARACTERS[s])throw new Error("Unexpected character: ".concat(s," Expected ) character or separator"));break}}if(n===null)throw new Error("Unexpected end of expression: expected ".concat(na.QUOTED_IDENTIFIER_DELIMITER," character"));return(0,cr.createResult)(DE.Tokens.IDENTIFIER,e,r.slice(n+1))};cr.getQuotedIdentifier=vY});var xE=x(Yd=>{"use strict";Yd.__esModule=!0;Yd.lex=void 0;var mo=Jr(),In=tb(),ho=EE(),_Y=function(r){for(var t=null,e=null,n=null,i=0;i<r.length;i+=1){var s=r[i];if(t===null){if(!In.SEPARATORS.has(s)){var a=In.STRUCTURAL_CHARACTERS[s];if(a){var o=r[i+1];if(a===mo.StructuralCharacters.CLOSE_PARENTHESIS&&o&&!In.SEPARATORS.has(o)&&o!==mo.StructuralCharacters.CLOSE_PARENTHESIS)throw new Error("Unexpected character: ".concat(o,". A closing parenthesis should be followed by another closing parenthesis or whitespace"));return(0,ho.createResult)(mo.Tokens.STRUCTURAL_CHARACTER,In.STRUCTURAL_CHARACTERS[s],r.slice(i+1))}if(s===In.QUOTED_IDENTIFIER_DELIMITER)return(0,ho.getQuotedIdentifier)(r.slice(i+1));if(s===In.COMMENT_DELIMITER)return(0,ho.getComment)(r.slice(i+1));t=i}}else if(In.SEPARATORS.has(s)||In.STRUCTURAL_CHARACTERS[s]){e=i,n=s;break}else if(s===In.QUOTED_IDENTIFIER_DELIMITER||s===In.COMMENT_DELIMITER)throw new Error("Unexpected character: ".concat(s))}if(t!==null){e=e!=null?e:r.length;var l=r.slice(t,e),u=r.slice(e);if(In.OPERATORS[l]){if(n&&!In.SEPARATORS.has(n))throw new Error("Unexpected character: ".concat(n,". Operators should be separated using whitespace"));return(0,ho.createResult)(mo.Tokens.OPERATOR,In.OPERATORS[l],u)}else return(0,ho.createResult)(mo.Tokens.IDENTIFIER,l,u)}return(0,ho.createResult)(mo.Tokens.EOF,null,"")};Yd.lex=_Y});var RE=x(Fn=>{"use strict";var OE=Fn&&Fn.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return r.concat(s||Array.prototype.slice.call(t))};Fn.__esModule=!0;Fn.validateToken=Fn.previousOperatorTakesPrecedent=Fn.getValue=Fn.newTokenGenerator=void 0;var wY=xE(),go=Jr(),jd=eb(),kY=function(r){var t=r;return function(e,n){for(n===void 0&&(n=!1);;){var i=(0,wY.lex)(t),s=i.token,a=i.remainingString;if(t=a,s.name!==go.Tokens.COMMENT)return(0,Fn.validateToken)(s,e,n),s}}};Fn.newTokenGenerator=kY;var SY=function(r,t){var e=r(jd.VALID_TOKENS.identifierOrNot),n=e.value===go.Operators.NOT;n&&(e=r(jd.VALID_TOKENS.identifierOnly));var i=e.name===go.Tokens.STRUCTURAL_CHARACTER?t(r,!0):[e];return n?OE(OE([],i,!0),[{name:go.Tokens.OPERATOR,value:go.Operators.NOT}],!1):i};Fn.getValue=SY;var DY=function(r,t){return jd.OPERATOR_PRECEDENCE[r]<=jd.OPERATOR_PRECEDENCE[t]};Fn.previousOperatorTakesPrecedent=DY;var EY=function(r,t,e){if(e===void 0&&(e=!1),r.name===go.Tokens.EOF){if(e)return;throw new Error("Unexpected end of expression")}for(var n=0,i=t;n<i.length;n++){var s=i[n];if(s.name===r.name&&(!s.value||s.value===r.value))return}throw new TypeError("Invalid token")};Fn.validateToken=EY});var ib=x(yo=>{"use strict";var ei=yo&&yo.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return r.concat(s||Array.prototype.slice.call(t))};yo.__esModule=!0;yo.parse=void 0;var CE=Jr(),ME=eb(),$d=RE(),xY=function(r){if(typeof r!="string")throw new Error("Expected string but received ".concat(typeof r));var t=(0,$d.newTokenGenerator)(r);return rb(t)};yo.parse=xY;var rb=function(r,t){t===void 0&&(t=!1);for(var e=ei([],(0,$d.getValue)(r,rb),!0),n=[];;){var i=t?ME.VALID_TOKENS.binaryOperatorOrClose:ME.VALID_TOKENS.binaryOperator,s=r(i,!t);if(s.name===CE.Tokens.EOF||s.name===CE.Tokens.STRUCTURAL_CHARACTER)return ei(ei([],e,!0),ei([],n,!0).reverse(),!0);for(;n.length;){var a=n[n.length-1]||null;if(a&&(0,$d.previousOperatorTakesPrecedent)(a.value,s.value))e=ei(ei([],e,!0),[a],!1),n=n.slice(0,-1);else break}n=ei(ei([],n,!0),[s],!1),e=ei(ei([],e,!0),(0,$d.getValue)(r,rb),!0)}}});var sb=x(Zt=>{"use strict";Zt.__esModule=!0;Zt.throwInvalidExpression=Zt.isOperator=Zt.isIdentifier=Zt.notUtil=Zt.xorUtil=Zt.orUtil=Zt.andUtil=void 0;var AE=Jr(),OY=function(r,t){return r&&t};Zt.andUtil=OY;var RY=function(r,t){return r||t};Zt.orUtil=RY;var CY=function(r,t){return r!==t};Zt.xorUtil=CY;var MY=function(r){return!r};Zt.notUtil=MY;var AY=function(r){var t=r.name,e=r.value;return t===AE.Tokens.IDENTIFIER&&typeof e=="string"};Zt.isIdentifier=AY;var PY=function(r){var t=r.name,e=r.value;return t===AE.Tokens.OPERATOR&&typeof e=="string"};Zt.isOperator=PY;var NY=function(r){throw new TypeError("Invalid postfix expression: ".concat(r))};Zt.throwInvalidExpression=NY});var PE=x(Wd=>{"use strict";var ku;Wd.__esModule=!0;Wd.OPERATOR_MAP=void 0;var ab=Jr(),ob=sb();Wd.OPERATOR_MAP=(ku={},ku[ab.Operators.AND]=ob.andUtil,ku[ab.Operators.OR]=ob.orUtil,ku[ab.Operators.XOR]=ob.xorUtil,ku)});var IE=x(dr=>{"use strict";var bo=dr&&dr.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return r.concat(s||Array.prototype.slice.call(t))};dr.__esModule=!0;dr.evaluateExpression=dr.evaluate=dr.getEvaluator=void 0;var IY=ib(),NE=Jr(),FY=PE(),ra=sb(),LY=function(r){var t=(0,IY.parse)(r);return function(e){return(0,dr.evaluate)(t,e)}};dr.getEvaluator=LY;var UY=function(r,t){if(!Array.isArray(r))throw new Error("".concat(r," should be an array. evaluate takes in a parsed expression. Use in combination with parse or use getEvaluator"));var e=r.reduce(function(n,i,s){if(!(i&&((0,ra.isIdentifier)(i)||(0,ra.isOperator)(i))))throw new Error("Invalid token: ".concat(i,". Found in parsed expression at index ").concat(s));if(i.name===NE.Tokens.IDENTIFIER)return bo(bo([],n,!0),[Boolean(t[i.value])],!1);var a=n[n.length-2],o=n[n.length-1];if(i.value===NE.Operators.NOT)return o===void 0&&(0,ra.throwInvalidExpression)("missing identifier"),bo(bo([],n.slice(0,-1),!0),[(0,ra.notUtil)(o)],!1);(o===void 0||a===void 0)&&(0,ra.throwInvalidExpression)("missing identifier");var l=FY.OPERATOR_MAP[i.value];return l||(0,ra.throwInvalidExpression)("unknown operator"),bo(bo([],n.slice(0,-2),!0),[l(a,o)],!1)},[]);return e.length!==1&&(0,ra.throwInvalidExpression)("too many identifiers after evaluation"),e[0]};dr.evaluate=UY;var YY=function(r,t){return(0,dr.getEvaluator)(r)(t)};dr.evaluateExpression=YY});var LE=x(ti=>{"use strict";var lb=ti&&ti.__createBinding||(Object.create?function(r,t,e,n){n===void 0&&(n=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(r,n,i)}:function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]});ti.__esModule=!0;ti.parse=ti.evaluate=ti.getEvaluator=void 0;var FE=IE();lb(ti,FE,"getEvaluator");lb(ti,FE,"evaluate");var jY=ib();lb(ti,jY,"parse")});var oj={};Cb(oj,{default:()=>Af});module.exports=Ab(oj);var jx=require("obsidian");ys();var uD=require("obsidian"),Va=require("obsidian");var Uj=new Error("timeout while waiting for mutex to become available"),Yj=new Error("mutex already locked"),pO=new Error("request for lock canceled"),mO=function(r,t,e,n){function i(s){return s instanceof e?s:new e(function(a){a(s)})}return new(e||(e=Promise))(function(s,a){function o(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((n=n.apply(r,t||[])).next())})},Gf=class{constructor(t,e=pO){this._value=t,this._cancelError=e,this._weightedQueues=[],this._weightedWaiters=[]}acquire(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((e,n)=>{this._weightedQueues[t-1]||(this._weightedQueues[t-1]=[]),this._weightedQueues[t-1].push({resolve:e,reject:n}),this._dispatch()})}runExclusive(t,e=1){return mO(this,void 0,void 0,function*(){let[n,i]=yield this.acquire(e);try{return yield t(n)}finally{i()}})}waitForUnlock(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise(e=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),this._weightedWaiters[t-1].push(e),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatch()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatch()}cancel(){this._weightedQueues.forEach(t=>t.forEach(e=>e.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var t;for(let e=this._value;e>0;e--){let n=(t=this._weightedQueues[e-1])===null||t===void 0?void 0:t.shift();if(!n)continue;let i=this._value,s=e;this._value-=e,e=this._value+1,n.resolve([i,this._newReleaser(s)])}this._drainUnlockWaiters()}_newReleaser(t){let e=!1;return()=>{e||(e=!0,this.release(t))}}_drainUnlockWaiters(){for(let t=this._value;t>0;t--)!this._weightedWaiters[t-1]||(this._weightedWaiters[t-1].forEach(e=>e()),this._weightedWaiters[t-1]=[])}},hO=function(r,t,e,n){function i(s){return s instanceof e?s:new e(function(a){a(s)})}return new(e||(e=Promise))(function(s,a){function o(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((n=n.apply(r,t||[])).next())})},ju=class{constructor(t){this._semaphore=new Gf(1,t)}acquire(){return hO(this,void 0,void 0,function*(){let[,t]=yield this._semaphore.acquire();return t})}runExclusive(t){return this._semaphore.runExclusive(()=>t())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}};var $u=require("obsidian"),mt=class{constructor(t,e={}){this._frontmatter={tags:[]};this._tags=[];var i,s;this._path=t,this._cachedMetadata=e;let n=e.frontmatter;if(n!==void 0&&(this._frontmatter=JSON.parse(JSON.stringify(n)),this._frontmatter.tags=(i=(0,$u.parseFrontMatterTags)(n))!=null?i:[]),Object.keys(e).length!==0){let a=(s=(0,$u.getAllTags)(this.cachedMetadata))!=null?s:[];this._tags=[...new Set(a)]}}get path(){return this._path}get tags(){return this._tags}get cachedMetadata(){return this._cachedMetadata}get frontmatter(){return this._frontmatter}rawFrontmatterIdenticalTo(t){let e=this.cachedMetadata.frontmatter,n=t.cachedMetadata.frontmatter;return e===n?!0:!e||!n?!1:JSON.stringify(e)===JSON.stringify(n)}get pathWithoutExtension(){return this.withoutExtension(this.path)}withoutExtension(t){return t.replace(/\.md$/,"")}get root(){let t=this.path.replace(/\\/g,"/");t.charAt(0)==="/"&&(t=t.substring(1));let e=t.indexOf("/");return e==-1?"/":t.substring(0,e+1)}get folder(){let t=this.path,e=this.filename,n=t.substring(0,t.lastIndexOf(e));return n===""?"/":n}get filename(){let t=this.path.match(/([^/]+)$/);return t!==null?t[1]:""}get filenameWithoutExtension(){return this.withoutExtension(this.filename)}hasProperty(t){let e=this.findKeyInFrontmatter(t);if(e===void 0)return!1;let n=this.frontmatter[e];return!(n===null||n===void 0)}property(t){let e=this.findKeyInFrontmatter(t);if(e===void 0)return null;let n=this.frontmatter[e];return n===void 0?null:Array.isArray(n)?n.filter(i=>i!==null):n}findKeyInFrontmatter(t){let e=t.toLowerCase();return Object.keys(this.frontmatter).find(n=>n.toLowerCase()===e)}identicalTo(t){return this.path!==t.path?!1:this.rawFrontmatterIdenticalTo(t)}};ud();Nt();Vi();Vt();var Ba=class{constructor(t){this.fetch=t;this._value=void 0}get value(){return this._value===void 0&&(this._value=this.fetch()),this._value}};Ws();Nt();Vi();ud();var Lt=class{constructor(t,e,n,i,s){this._tasksFile=t,this._lineNumber=e,this._sectionStart=n,this._sectionIndex=i,this._precedingHeader=s}static fromUnknownPosition(t){return new Lt(t,0,0,0,null)}fromRenamedFile(t){return new Lt(t,this.lineNumber,this.sectionStart,this.sectionIndex,this.precedingHeader)}get tasksFile(){return this._tasksFile}get path(){return this._tasksFile.path}get lineNumber(){return this._lineNumber}get sectionStart(){return this._sectionStart}get sectionIndex(){return this._sectionIndex}get precedingHeader(){return this._precedingHeader}get hasKnownPath(){return this.path!==""}allFieldsExceptTasksFileForTesting(){let n=F({},this),{_tasksFile:t}=n;return pa(n,["_tasksFile"])}identicalTo(t){let e=["lineNumber","sectionStart","sectionIndex","precedingHeader"];for(let n of e)if(this[n]!==t[n])return!1;return this._tasksFile.identicalTo(t._tasksFile)}};var cd=class{constructor(t,e,n,i,s,a){this.line2ListItem=new Map;this.tasks=[];this.filePath=t,this.fileContent=e,this.listItems=n,this.logger=i,this.fileCache=s,this.errorReporter=a,this.fileLines=this.fileContent.split(`
`),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,n=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((n===null||n.position.end.line<a)&&(n=qs.getSection(a,this.fileCache.sections),i=0),n===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,n.position.start.line,i,qs.getPrecedingHeader(a,this.fileCache.headings));i=this.parseLine(s,o,l,a,i)}return this.tasks}parseLine(t,e,n,i,s){var o;if(t.task===void 0)return this.createListItem(t,e,i,n),s;let a;try{if(a=pe.fromLine({line:e,taskLocation:n,fallbackDate:this.dateFromFileName.value}),a!==null){let l=(o=this.line2ListItem.get(t.parent))!=null?o:null;l!==null&&(a=new pe(de(F({},a),{parent:l}))),this.line2ListItem.set(i,a),a!==null&&(s++,this.tasks.push(a))}else this.createListItem(t,e,i,n)}catch(l){this.errorReporter(l,this.filePath,t,e)}return s}createListItem(t,e,n,i){var o;let s=(o=this.line2ListItem.get(t.parent))!=null?o:null,a=nr.fromListItemLine(e,s,i);if(a===null){this.logger.warn("Unexpected failure to create a list item from line: "+e+" in file: "+this.filePath);return}this.line2ListItem.set(n,a)}};var qs=class{constructor({metadataCache:t,vault:e,workspace:n,events:i}){this.logger=sn.getLogger("tasks.Cache");this.notifySubscribersDebounced=(0,uD.debounce)(()=>this.notifySubscribersNotDebounced(),100,!0);this.logger.debug("Creating Cache object"),this.metadataCache=t,this.metadataCacheEventReferences=[],this.vault=e,this.workspace=n,this.vaultEventReferences=[],this.events=i,this.eventsEventReferences=[],this.tasksMutex=new ju,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.notifySubscribersDebounced()}notifySubscribersNotDebounced(){this.logger.debug("Cache.notifySubscribersNotDebounced()"),this.events.triggerCacheUpdate({tasks:this.tasks,state:this.state})}subscribeToCache(){this.logger.debug("Cache.subscribeToCache()");let t=this.metadataCache.on("resolved",()=>I(this,null,function*(){this.loadedAfterFirstResolve||(this.loadedAfterFirstResolve=!0,this.loadVault())}));this.metadataCacheEventReferences.push(t);let e=this.metadataCache.on("changed",n=>{this.tasksMutex.runExclusive(()=>{this.indexFile(n)})});this.metadataCacheEventReferences.push(e)}subscribeToVault(){this.logger.debug("Cache.subscribeToVault()");let{useFilenameAsScheduledDate:t}=re(),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 n=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(n);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 pe(de(F({},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.debug("Cache.loadVault()"),this.tasksMutex.runExclusive(()=>I(this,null,function*(){this.state="Initializing",this.logger.debug("Cache.loadVault(): state = Initializing"),yield Promise.all(this.vault.getMarkdownFiles().map(t=>this.indexFile(t))),this.state="Warm",this.logger.debug("Cache.loadVault(): state = Warm"),this.notifySubscribers()}))}indexFile(t){return I(this,null,function*(){let e=this.metadataCache.getFileCache(t);if(e==null)return;if(!t.path.endsWith(".md")){this.logger.debug("indexFile: skipping non-markdown file: "+t.path);return}this.logger.debug("Cache.indexFile: "+t.path);let n=this.tasks.filter(a=>a.path===t.path),i=e.listItems,s=[];if(i!==void 0){let a=yield this.vault.cachedRead(t);s=this.getTasksFromFileContent(a,i,e,t.path,this.reportTaskParsingErrorToUser,this.logger)}nr.listsAreIdentical(n,s)||(this.tasks=this.tasks.filter(a=>a.path!==t.path),this.tasks.push(...s),this.logger.debug("Cache.indexFile: "+t.path+`: read ${s.length} task(s)`),this.notifySubscribers())})}getTasksFromFileContent(t,e,n,i,s,a){return new cd(i,t,e,a,n,s).parseFileContent()}reportTaskParsingErrorToUser(t,e,n,i){let s=`There was an error reading one of the tasks in this vault.
The following task has been ignored, to prevent Tasks queries getting stuck with 'Loading Tasks ...'
Error: ${t}
File: ${e}
Line number: ${n.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 n of e)if(n.position.start.line<=t&&n.position.end.line>=t)return n;return null}static getPrecedingHeader(t,e){if(e===void 0)return null;let n=null;for(let i of e){if(i.position.start.line>t)return n;n=i.heading}return n}};var $y=require("obsidian");var pE=require("obsidian");function tt(){}function vy(r){return r()}function cD(){return Object.create(null)}function zt(r){r.forEach(vy)}function pd(r){return typeof r=="function"}function Kr(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}function dD(r){return Object.keys(r).length===0}var fD=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,lu=class{constructor(t){this.options=t,this._listeners="WeakMap"in fD?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 n;for(let i of e)lu.entries.set(i.target,i),(n=this._listeners.get(i.target))===null||n===void 0||n(i)})}};lu.entries="WeakMap"in fD?new WeakMap:void 0;var pD=!1;function Y2(){pD=!0}function j2(){pD=!1}function z(r,t){r.appendChild(t)}function Ee(r,t,e){r.insertBefore(t,e||null)}function _e(r){r.parentNode&&r.parentNode.removeChild(r)}function Bs(r,t){for(let e=0;e<r.length;e+=1)r[e]&&r[e].d(t)}function ue(r){return document.createElement(r)}function $2(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Ve(r){return document.createTextNode(r)}function xe(){return Ve(" ")}function md(){return Ve("")}function $e(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function mD(r){return function(t){return t.preventDefault(),r.call(this,t)}}function B(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function hD(r){let t;return{p(...e){t=e,t.forEach(n=>r.push(n))},r(){t.forEach(e=>r.splice(r.indexOf(e),1))}}}function W2(r){return Array.from(r.childNodes)}function ir(r,t){t=""+t,r.data!==t&&(r.data=t)}function mn(r,t){r.value=t==null?"":t}function _y(r,t,e){for(let n=0;n<r.options.length;n+=1){let i=r.options[n];if(i.__value===t){i.selected=!0;return}}(!e||t!==void 0)&&(r.selectedIndex=-1)}function gD(r){let t=r.querySelector(":checked");return t&&t.__value}var dd;function q2(){if(dd===void 0){dd=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(r){dd=!0}}return dd}function yD(r,t){getComputedStyle(r).position==="static"&&(r.style.position="relative");let n=ue("iframe");n.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;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let i=q2(),s;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=$e(window,"message",a=>{a.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=$e(n.contentWindow,"resize",t),t()}),z(r,n),()=>{(i||s&&n.contentWindow)&&s(),_e(n)}}function Si(r,t,e){r.classList[e?"add":"remove"](t)}var Za=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,n=null){this.e||(this.is_svg?this.e=$2(e.nodeName):this.e=ue(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.content,this.c(t)),this.i(n)}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(_e)}};var uu;function ou(r){uu=r}function H2(){if(!uu)throw new Error("Function called outside component initialization");return uu}function wy(r){H2().$$.on_mount.push(r)}var Ka=[];var ot=[],Qa=[],by=[],G2=Promise.resolve(),Ty=!1;function B2(){Ty||(Ty=!0,G2.then(bD))}function Gs(r){Qa.push(r)}function an(r){by.push(r)}var yy=new Set,za=0;function bD(){if(za!==0)return;let r=uu;do{try{for(;za<Ka.length;){let t=Ka[za];za++,ou(t),V2(t.$$)}}catch(t){throw Ka.length=0,za=0,t}for(ou(null),Ka.length=0,za=0;ot.length;)ot.pop()();for(let t=0;t<Qa.length;t+=1){let e=Qa[t];yy.has(e)||(yy.add(e),e())}Qa.length=0}while(Ka.length);for(;by.length;)by.pop()();Ty=!1,yy.clear(),ou(r)}function V2(r){if(r.fragment!==null){r.update(),zt(r.before_update);let t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(Gs)}}function z2(r){let t=[],e=[];Qa.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),Qa=t}var fd=new Set,Hs;function TD(){Hs={r:0,c:[],p:Hs}}function vD(){Hs.r||zt(Hs.c),Hs=Hs.p}function hn(r,t){r&&r.i&&(fd.delete(r),r.i(t))}function An(r,t,e,n){if(r&&r.o){if(fd.has(r))return;fd.add(r),Hs.c.push(()=>{fd.delete(r),n&&(e&&r.d(1),n())}),r.o(t)}else n&&n()}var K2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],e4=new Set([...K2]);function on(r,t,e){let n=r.$$.props[t];n!==void 0&&(r.$$.bound[n]=e,e(r.$$.ctx[n]))}function Or(r){r&&r.c()}function sr(r,t,e,n){let{fragment:i,after_update:s}=r.$$;i&&i.m(t,e),n||Gs(()=>{let a=r.$$.on_mount.map(vy).filter(pd);r.$$.on_destroy?r.$$.on_destroy.push(...a):zt(a),r.$$.on_mount=[]}),s.forEach(Gs)}function Pn(r,t){let e=r.$$;e.fragment!==null&&(z2(e.after_update),zt(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function Q2(r,t){r.$$.dirty[0]===-1&&(Ka.push(r),B2(),r.$$.dirty.fill(0)),r.$$.dirty[t/31|0]|=1<<t%31}function Qr(r,t,e,n,i,s,a,o=[-1]){let l=uu;ou(r);let u=r.$$={fragment:null,ctx:[],props:s,update:tt,not_equal:i,bound:cD(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:cD(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let c=!1;if(u.ctx=e?e(r,t.props||{},(d,f,...p)=>{let b=p.length?p[0]:f;return u.ctx&&i(u.ctx[d],u.ctx[d]=b)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](b),c&&Q2(r,d)),f}):[],u.update(),c=!0,zt(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){Y2();let d=W2(t.target);u.fragment&&u.fragment.l(d),d.forEach(_e)}else u.fragment&&u.fragment.c();t.intro&&hn(r.$$.fragment),sr(r,t.target,t.anchor,t.customElement),j2(),bD()}ou(l)}var Z2;typeof HTMLElement=="function"&&(Z2=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let{on_mount:r}=this.$$;this.$$.on_disconnect=r.map(vy).filter(pd);for(let t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(r,t,e){this[r]=e}disconnectedCallback(){zt(this.$$.on_disconnect)}$destroy(){Pn(this,1),this.$destroy=tt}$on(r,t){if(!pd(t))return tt;let e=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return e.push(t),()=>{let n=e.indexOf(t);n!==-1&&e.splice(n,1)}}$set(r){this.$$set&&!dD(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}});var rr=class{$destroy(){Pn(this,1),this.$destroy=tt}$on(t,e){if(!pd(e))return tt;let n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{let i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!dD(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};function _D(r,t,e,n){function i(s){return s instanceof e?s:new e(function(a){a(s)})}return new(e||(e=Promise))(function(s,a){function o(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((n=n.apply(r,t||[])).next())})}Vt();Lg();Cs();function Xa(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Ut(r,t){if(t===null)return Xa(r);let e=r.toLowerCase().indexOf(t.toLowerCase());if(e===-1)return`${Xa(r)} (<span class="accesskey">${t.toLowerCase()}</span>)`;let n=r.substring(0,e);return n+='<span class="accesskey">',e===0?n+=r.substring(e,e+1).toUpperCase():n+=r.substring(e,e+1),n+="</span>",n+=r.substring(e+1),n=Xa(n),n}function X2(r){let t,e,n,i;return{c(){t=ue("code"),e=Ve(r[4]),n=xe(),i=new Za(!1),i.a=null,B(t,"class","tasks-modal-parsed-date")},m(s,a){Ee(s,t,a),z(t,e),z(t,n),i.m(r[2],t)},p(s,a){a&16&&ir(e,s[4]),a&4&&i.p(s[2])},d(s){s&&_e(t)}}}function J2(r){let t,e,n,i,s;return{c(){t=ue("div"),e=Ve(r[4]),n=ue("input"),B(n,"class","tasks-modal-date-editor-picker"),B(n,"type","date"),B(n,"id","date-editor-picker"),B(n,"tabindex","-1"),B(t,"class","tasks-modal-parsed-date")},m(a,o){Ee(a,t,o),z(t,e),z(t,n),mn(n,r[6]),i||(s=[$e(n,"input",r[10]),$e(n,"input",r[7])],i=!0)},p(a,o){o&16&&ir(e,a[4]),o&64&&mn(n,a[6])},d(a){a&&_e(t),i=!1,zt(s)}}}function eU(r){let t,e=Ut(r[3],r[5])+"",n,i,s,a,o,l;function u(f,p){return f[1]?J2:X2}let c=u(r,-1),d=c(r);return{c(){t=ue("label"),n=xe(),i=ue("input"),s=xe(),d.c(),a=md(),B(t,"for",r[3]),B(i,"id",r[3]),B(i,"type","text"),B(i,"class","tasks-modal-date-input"),B(i,"placeholder",tU),B(i,"accesskey",r[5]),Si(i,"tasks-modal-error",!r[1])},m(f,p){Ee(f,t,p),t.innerHTML=e,Ee(f,n,p),Ee(f,i,p),mn(i,r[0]),Ee(f,s,p),d.m(f,p),Ee(f,a,p),o||(l=$e(i,"input",r[9]),o=!0)},p(f,[p]){p&40&&e!==(e=Ut(f[3],f[5])+"")&&(t.innerHTML=e),p&8&&B(t,"for",f[3]),p&8&&B(i,"id",f[3]),p&32&&B(i,"accesskey",f[5]),p&1&&i.value!==f[0]&&mn(i,f[0]),p&2&&Si(i,"tasks-modal-error",!f[1]),c===(c=u(f,p))&&d?d.p(f,p):(d.d(1),d=c(f),d&&(d.c(),d.m(a.parentNode,a)))},i:tt,o:tt,d(f){f&&_e(t),f&&_e(n),f&&_e(i),f&&_e(s),d.d(f),f&&_e(a),o=!1,l()}}}var tU="Try 'Mon' or 'tm' then space";function nU(r,t,e){let{id:n}=t,{dateSymbol:i}=t,{date:s}=t,{isDateValid:a}=t,{forwardOnly:o}=t,{accesskey:l}=t,{parsedDate:u=""}=t,c="";function d(b){b.target!==null&&e(0,s=c)}function f(){s=this.value,e(0,s),e(3,n),e(8,o),e(2,u),e(1,a)}function p(){c=this.value,e(6,c),e(0,s),e(3,n),e(8,o),e(2,u),e(1,a)}return r.$$set=b=>{"id"in b&&e(3,n=b.id),"dateSymbol"in b&&e(4,i=b.dateSymbol),"date"in b&&e(0,s=b.date),"isDateValid"in b&&e(1,a=b.isDateValid),"forwardOnly"in b&&e(8,o=b.forwardOnly),"accesskey"in b&&e(5,l=b.accesskey),"parsedDate"in b&&e(2,u=b.parsedDate)},r.$$.update=()=>{if(r.$$.dirty&271){e:e(0,s=Nc(s)),e(2,u=Nk(n,s,o)),e(1,a=!u.includes("invalid")),a&&e(6,c=u)}},[s,a,u,n,i,l,c,d,o,f,p]}var ky=class extends rr{constructor(t){super(),Qr(this,t,nU,eU,Kr,{id:3,dateSymbol:4,date:0,isDateValid:1,forwardOnly:8,accesskey:5,parsedDate:2})}},Vs=ky;var zs=Math.min,gn=Math.max,du=Math.round;var Rr=r=>({x:r,y:r}),rU={left:"right",right:"left",bottom:"top",top:"bottom"},iU={start:"end",end:"start"};function Sy(r,t,e){return gn(r,zs(t,e))}function Ja(r,t){return typeof r=="function"?r(t):r}function Di(r){return r.split("-")[0]}function eo(r){return r.split("-")[1]}function Dy(r){return r==="x"?"y":"x"}function Ey(r){return r==="y"?"height":"width"}function zi(r){return["top","bottom"].includes(Di(r))?"y":"x"}function xy(r){return Dy(zi(r))}function wD(r,t,e){e===void 0&&(e=!1);let n=eo(r),i=xy(r),s=Ey(i),a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cu(a)),[a,cu(a)]}function kD(r){let t=cu(r);return[hd(r),t,hd(t)]}function hd(r){return r.replace(/start|end/g,t=>iU[t])}function sU(r,t,e){let n=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return e?t?i:n:t?n:i;case"left":case"right":return t?s:a;default:return[]}}function SD(r,t,e,n){let i=eo(r),s=sU(Di(r),e==="start",n);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(hd)))),s}function cu(r){return r.replace(/left|right|bottom|top/g,t=>rU[t])}function aU(r){return F({top:0,right:0,bottom:0,left:0},r)}function DD(r){return typeof r!="number"?aU(r):{top:r,right:r,bottom:r,left:r}}function Ks(r){let{x:t,y:e,width:n,height:i}=r;return{width:n,height:i,top:e,left:t,right:t+n,bottom:e+i,x:t,y:e}}function ED(r,t,e){let{reference:n,floating:i}=r,s=zi(t),a=xy(t),o=Ey(a),l=Di(t),u=s==="y",c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[o]/2-i[o]/2,p;switch(l){case"top":p={x:c,y:n.y-i.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(eo(t)){case"start":p[a]-=f*(e&&u?-1:1);break;case"end":p[a]+=f*(e&&u?-1:1);break}return p}var xD=(r,t,e)=>I(void 0,null,function*(){let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=e,o=s.filter(Boolean),l=yield a.isRTL==null?void 0:a.isRTL(t),u=yield a.getElementRects({reference:r,floating:t,strategy:i}),{x:c,y:d}=ED(u,n,l),f=n,p={},b=0;for(let T=0;T<o.length;T++){let{name:v,fn:O}=o[T],{x:E,y:P,data:Y,reset:q}=yield O({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:r,floating:t}});c=E!=null?E:c,d=P!=null?P:d,p=de(F({},p),{[v]:F(F({},p[v]),Y)}),q&&b<=50&&(b++,typeof q=="object"&&(q.placement&&(f=q.placement),q.rects&&(u=q.rects===!0?yield a.getElementRects({reference:r,floating:t,strategy:i}):q.rects),{x:c,y:d}=ED(u,f,l)),T=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}});function gd(r,t){return I(this,null,function*(){var e;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:a,elements:o,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ja(t,r),b=DD(p),v=o[f?d==="floating"?"reference":"floating":d],O=Ks(yield s.getClippingRect({element:(e=yield s.isElement==null?void 0:s.isElement(v))==null||e?v:v.contextElement||(yield s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),E=d==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,P=yield s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating),Y=(yield s.isElement==null?void 0:s.isElement(P))?(yield s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Ks(s.convertOffsetParentRelativeRectToViewportRelativeRect?yield s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:P,strategy:l}):E);return{top:(O.top-q.top+b.top)/Y.y,bottom:(q.bottom-O.bottom+b.bottom)/Y.y,left:(O.left-q.left+b.left)/Y.x,right:(q.right-O.right+b.right)/Y.x}})}var OD=function(r){return r===void 0&&(r={}),{name:"flip",options:r,fn(e){return I(this,null,function*(){var n,i;let{placement:s,middlewareData:a,rects:o,initialPlacement:l,platform:u,elements:c}=e,W=Ja(r,e),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:v=!0}=W,O=pa(W,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let E=Di(s),P=zi(l),Y=Di(l)===l,q=yield u.isRTL==null?void 0:u.isRTL(c.floating),ae=p||(Y||!v?[cu(l)]:kD(l)),H=T!=="none";!p&&H&&ae.push(...SD(l,v,T,q));let J=[l,...ae],ye=yield gd(e,O),we=[],V=((i=a.flip)==null?void 0:i.overflows)||[];if(d&&we.push(ye[E]),f){let le=wD(s,o,q);we.push(ye[le[0]],ye[le[1]])}if(V=[...V,{placement:s,overflows:we}],!we.every(le=>le<=0)){var K,R;let le=(((K=a.flip)==null?void 0:K.index)||0)+1,m=J[le];if(m)return{data:{index:le,overflows:V},reset:{placement:m}};let y=(R=V.filter(_=>_.overflows[0]<=0).sort((_,w)=>_.overflows[1]-w.overflows[1])[0])==null?void 0:R.placement;if(!y)switch(b){case"bestFit":{var ee;let _=(ee=V.filter(w=>{if(H){let S=zi(w.placement);return S===P||S==="y"}return!0}).map(w=>[w.placement,w.overflows.filter(S=>S>0).reduce((S,C)=>S+C,0)]).sort((w,S)=>w[1]-S[1])[0])==null?void 0:ee[0];_&&(y=_);break}case"initialPlacement":y=l;break}if(s!==y)return{reset:{placement:y}}}return{}})}}};function oU(r,t){return I(this,null,function*(){let{placement:e,platform:n,elements:i}=r,s=yield n.isRTL==null?void 0:n.isRTL(i.floating),a=Di(e),o=eo(e),l=zi(e)==="y",u=["left","top"].includes(a)?-1:1,c=s&&l?-1:1,d=Ja(t,r),{mainAxis:f,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof b=="number"&&(p=o==="end"?b*-1:b),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}})}var RD=function(r){return r===void 0&&(r=0),{name:"offset",options:r,fn(e){return I(this,null,function*(){var n,i;let{x:s,y:a,placement:o,middlewareData:l}=e,u=yield oU(e,r);return o===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+u.x,y:a+u.y,data:de(F({},u),{placement:o})}})}}},CD=function(r){return r===void 0&&(r={}),{name:"shift",options:r,fn(e){return I(this,null,function*(){let{x:n,y:i,placement:s}=e,O=Ja(r,e),{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:E=>{let{x:P,y:Y}=E;return{x:P,y:Y}}}}=O,u=pa(O,["mainAxis","crossAxis","limiter"]),c={x:n,y:i},d=yield gd(e,u),f=zi(Di(s)),p=Dy(f),b=c[p],T=c[f];if(a){let E=p==="y"?"top":"left",P=p==="y"?"bottom":"right",Y=b+d[E],q=b-d[P];b=Sy(Y,b,q)}if(o){let E=f==="y"?"top":"left",P=f==="y"?"bottom":"right",Y=T+d[E],q=T-d[P];T=Sy(Y,T,q)}let v=l.fn(de(F({},e),{[p]:b,[f]:T}));return de(F({},v),{data:{x:v.x-n,y:v.y-i,enabled:{[p]:a,[f]:o}}})})}}};var MD=function(r){return r===void 0&&(r={}),{name:"size",options:r,fn(e){return I(this,null,function*(){var n,i;let{placement:s,rects:a,platform:o,elements:l}=e,V=Ja(r,e),{apply:u=()=>{}}=V,c=pa(V,["apply"]),d=yield gd(e,c),f=Di(s),p=eo(s),b=zi(s)==="y",{width:T,height:v}=a.floating,O,E;f==="top"||f==="bottom"?(O=f,E=p===((yield o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(E=f,O=p==="end"?"top":"bottom");let P=v-d.top-d.bottom,Y=T-d.left-d.right,q=zs(v-d[O],P),ae=zs(T-d[E],Y),H=!e.middlewareData.shift,J=q,ye=ae;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ye=Y),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(J=P),H&&!p){let K=gn(d.left,0),R=gn(d.right,0),ee=gn(d.top,0),W=gn(d.bottom,0);b?ye=T-2*(K!==0||R!==0?K+R:gn(d.left,d.right)):J=v-2*(ee!==0||W!==0?ee+W:gn(d.top,d.bottom))}yield u(de(F({},e),{availableWidth:ye,availableHeight:J}));let we=yield o.getDimensions(l.floating);return T!==we.width||v!==we.height?{reset:{rects:!0}}:{}})}}};function bd(){return typeof window!="undefined"}function Qs(r){return PD(r)?(r.nodeName||"").toLowerCase():"#document"}function yn(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(r){var t;return(t=(PD(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function PD(r){return bd()?r instanceof Node||r instanceof yn(r).Node:!1}function ar(r){return bd()?r instanceof Element||r instanceof yn(r).Element:!1}function Cr(r){return bd()?r instanceof HTMLElement||r instanceof yn(r).HTMLElement:!1}function AD(r){return!bd()||typeof ShadowRoot=="undefined"?!1:r instanceof ShadowRoot||r instanceof yn(r).ShadowRoot}function to(r){let{overflow:t,overflowX:e,overflowY:n,display:i}=or(r);return/auto|scroll|overlay|hidden|clip/.test(t+n+e)&&!["inline","contents"].includes(i)}function ND(r){return["table","td","th"].includes(Qs(r))}function fu(r){return[":popover-open",":modal"].some(t=>{try{return r.matches(t)}catch(e){return!1}})}function Td(r){let t=vd(),e=ar(r)?or(r):r;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(e.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(e.contain||"").includes(n))}function ID(r){let t=Ei(r);for(;Cr(t)&&!Zs(t);){if(Td(t))return t;if(fu(t))return null;t=Ei(t)}return null}function vd(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zs(r){return["html","body","#document"].includes(Qs(r))}function or(r){return yn(r).getComputedStyle(r)}function pu(r){return ar(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Ei(r){if(Qs(r)==="html")return r;let t=r.assignedSlot||r.parentNode||AD(r)&&r.host||Zr(r);return AD(t)?t.host:t}function FD(r){let t=Ei(r);return Zs(t)?r.ownerDocument?r.ownerDocument.body:r.body:Cr(t)&&to(t)?t:FD(t)}function yd(r,t,e){var n;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=FD(r),s=i===((n=r.ownerDocument)==null?void 0:n.body),a=yn(i);if(s){let o=_d(a);return t.concat(a,a.visualViewport||[],to(i)?i:[],o&&e?yd(o):[])}return t.concat(i,yd(i,[],e))}function _d(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function YD(r){let t=or(r),e=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Cr(r),s=i?r.offsetWidth:e,a=i?r.offsetHeight:n,o=du(e)!==s||du(n)!==a;return o&&(e=s,n=a),{width:e,height:n,$:o}}function jD(r){return ar(r)?r:r.contextElement}function no(r){let t=jD(r);if(!Cr(t))return Rr(1);let e=t.getBoundingClientRect(),{width:n,height:i,$:s}=YD(t),a=(s?du(e.width):e.width)/n,o=(s?du(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}var lU=Rr(0);function $D(r){let t=yn(r);return!vd()||!t.visualViewport?lU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uU(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==yn(r)?!1:t}function mu(r,t,e,n){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=r.getBoundingClientRect(),s=jD(r),a=Rr(1);t&&(n?ar(n)&&(a=no(n)):a=no(r));let o=uU(s,e,n)?$D(s):Rr(0),l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(s){let f=yn(s),p=n&&ar(n)?yn(n):n,b=f,T=_d(b);for(;T&&n&&p!==b;){let v=no(T),O=T.getBoundingClientRect(),E=or(T),P=O.left+(T.clientLeft+parseFloat(E.paddingLeft))*v.x,Y=O.top+(T.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=P,u+=Y,b=yn(T),T=_d(b)}}return Ks({width:c,height:d,x:l,y:u})}function Ry(r,t){let e=pu(r).scrollLeft;return t?t.left+e:mu(Zr(r)).left+e}function WD(r,t,e){e===void 0&&(e=!1);let n=r.getBoundingClientRect(),i=n.left+t.scrollLeft-(e?0:Ry(r,n)),s=n.top+t.scrollTop;return{x:i,y:s}}function cU(r){let{elements:t,rect:e,offsetParent:n,strategy:i}=r,s=i==="fixed",a=Zr(n),o=t?fu(t.floating):!1;if(n===a||o&&s)return e;let l={scrollLeft:0,scrollTop:0},u=Rr(1),c=Rr(0),d=Cr(n);if((d||!d&&!s)&&((Qs(n)!=="body"||to(a))&&(l=pu(n)),Cr(n))){let p=mu(n);u=no(n),c.x=p.x+n.clientLeft,c.y=p.y+n.clientTop}let f=a&&!d&&!s?WD(a,l,!0):Rr(0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:e.y*u.y-l.scrollTop*u.y+c.y+f.y}}function dU(r){return Array.from(r.getClientRects())}function fU(r){let t=Zr(r),e=pu(r),n=r.ownerDocument.body,i=gn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=gn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-e.scrollLeft+Ry(r),o=-e.scrollTop;return or(n).direction==="rtl"&&(a+=gn(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:a,y:o}}function pU(r,t){let e=yn(r),n=Zr(r),i=e.visualViewport,s=n.clientWidth,a=n.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;let u=vd();(!u||u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}function mU(r,t){let e=mu(r,!0,t==="fixed"),n=e.top+r.clientTop,i=e.left+r.clientLeft,s=Cr(r)?no(r):Rr(1),a=r.clientWidth*s.x,o=r.clientHeight*s.y,l=i*s.x,u=n*s.y;return{width:a,height:o,x:l,y:u}}function LD(r,t,e){let n;if(t==="viewport")n=pU(r,e);else if(t==="document")n=fU(Zr(r));else if(ar(t))n=mU(t,e);else{let i=$D(r);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ks(n)}function qD(r,t){let e=Ei(r);return e===t||!ar(e)||Zs(e)?!1:or(e).position==="fixed"||qD(e,t)}function hU(r,t){let e=t.get(r);if(e)return e;let n=yd(r,[],!1).filter(o=>ar(o)&&Qs(o)!=="body"),i=null,s=or(r).position==="fixed",a=s?Ei(r):r;for(;ar(a)&&!Zs(a);){let o=or(a),l=Td(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||to(a)&&!l&&qD(r,a))?n=n.filter(c=>c!==a):i=o,a=Ei(a)}return t.set(r,n),n}function gU(r){let{element:t,boundary:e,rootBoundary:n,strategy:i}=r,a=[...e==="clippingAncestors"?fu(t)?[]:hU(t,this._c):[].concat(e),n],o=a[0],l=a.reduce((u,c)=>{let d=LD(t,c,i);return u.top=gn(d.top,u.top),u.right=zs(d.right,u.right),u.bottom=zs(d.bottom,u.bottom),u.left=gn(d.left,u.left),u},LD(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yU(r){let{width:t,height:e}=YD(r);return{width:t,height:e}}function bU(r,t,e){let n=Cr(t),i=Zr(t),s=e==="fixed",a=mu(r,!0,s,t),o={scrollLeft:0,scrollTop:0},l=Rr(0);if(n||!n&&!s)if((Qs(t)!=="body"||to(i))&&(o=pu(t)),n){let f=mu(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=Ry(i));let u=i&&!n&&!s?WD(i,o):Rr(0),c=a.left+o.scrollLeft-l.x-u.x,d=a.top+o.scrollTop-l.y-u.y;return{x:c,y:d,width:a.width,height:a.height}}function Oy(r){return or(r).position==="static"}function UD(r,t){if(!Cr(r)||or(r).position==="fixed")return null;if(t)return t(r);let e=r.offsetParent;return Zr(r)===e&&(e=e.ownerDocument.body),e}function HD(r,t){let e=yn(r);if(fu(r))return e;if(!Cr(r)){let i=Ei(r);for(;i&&!Zs(i);){if(ar(i)&&!Oy(i))return i;i=Ei(i)}return e}let n=UD(r,t);for(;n&&ND(n)&&Oy(n);)n=UD(n,t);return n&&Zs(n)&&Oy(n)&&!Td(n)?e:n||ID(r)||e}var TU=function(r){return I(this,null,function*(){let t=this.getOffsetParent||HD,e=this.getDimensions,n=yield e(r.floating);return{reference:bU(r.reference,yield t(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}})};function vU(r){return or(r).direction==="rtl"}var _U={convertOffsetParentRelativeRectToViewportRelativeRect:cU,getDocumentElement:Zr,getClippingRect:gU,getOffsetParent:HD,getElementRects:TU,getClientRects:dU,getDimensions:yU,getScale:no,isElement:ar,isRTL:vU};var Cy=RD;var My=CD,GD=OD,BD=MD;var Ay=(r,t,e)=>{let n=new Map,i=F({platform:_U},e),s=de(F({},i.platform),{_c:n});return xD(r,t,de(F({},i),{platform:s}))};ny();function VD(r,t,e){let n=r.slice();return n[5]=t[e],n}function zD(r,t,e){let n=r.slice();n[40]=t[e],n[43]=e;let i=n[17](n[40].taskLocation.path);return n[41]=i,n}function KD(r){let t,e,n,i=r[10],s=[];for(let a=0;a<i.length;a+=1)s[a]=ZD(zD(r,i,a));return{c(){t=ue("ul");for(let a=0;a<s.length;a+=1)s[a].c();B(t,"class","task-dependency-dropdown")},m(a,o){Ee(a,t,o);for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(t,null);r[31](t),e||(n=$e(t,"mouseleave",r[32]),e=!0)},p(a,o){if(o[0]&928832){i=a[10];let l;for(l=0;l<i.length;l+=1){let u=zD(a,i,l);s[l]?s[l].p(u,o):(s[l]=ZD(u),s[l].c(),s[l].m(t,null))}for(;l<s.length;l+=1)s[l].d(1);s.length=i.length}},d(a){a&&_e(t),Bs(s,a),r[31](null),e=!1,n()}}}function QD(r){let t,e=r[41]+"",n,i,s;function a(...o){return r[28](r[41],...o)}return{c(){t=ue("div"),n=Ve(e),B(t,"class","dependency-path")},m(o,l){Ee(o,t,l),z(t,n),i||(s=$e(t,"mouseenter",a),i=!0)},p(o,l){r=o,l[0]&1024&&e!==(e=r[41]+"")&&ir(n,e)},d(o){o&&_e(t),i=!1,s()}}}function ZD(r){let t,e,n,i=r[40].status.symbol+"",s,a,o=Ys(r[40])+"",l,u,c,d,f,p;function b(...E){return r[27](r[40],...E)}let T=r[41]&&QD(r);function v(){return r[29](r[40])}function O(){return r[30](r[43])}return{c(){t=ue("li"),e=ue("div"),n=Ve("["),s=Ve(i),a=Ve("] "),l=Ve(o),c=xe(),T&&T.c(),d=xe(),B(e,"class",u=r[41]?"dependency-name-shared":"dependency-name"),Si(t,"selected",r[6]!==null&&r[43]===r[11])},m(E,P){Ee(E,t,P),z(t,e),z(e,n),z(e,s),z(e,a),z(e,l),z(t,c),T&&T.m(t,null),z(t,d),f||(p=[$e(e,"mouseenter",b),$e(t,"mousedown",v),$e(t,"mouseenter",O)],f=!0)},p(E,P){r=E,P[0]&1024&&i!==(i=r[40].status.symbol+"")&&ir(s,i),P[0]&1024&&o!==(o=Ys(r[40])+"")&&ir(l,o),P[0]&1024&&u!==(u=r[41]?"dependency-name-shared":"dependency-name")&&B(e,"class",u),r[41]?T?T.p(r,P):(T=QD(r),T.c(),T.m(t,d)):T&&(T.d(1),T=null),P[0]&2112&&Si(t,"selected",r[6]!==null&&r[43]===r[11])},d(E){E&&_e(t),T&&T.d(),f=!1,zt(p)}}}function XD(r){let t,e=r[0][r[1]],n=[];for(let i=0;i<e.length;i+=1)n[i]=JD(VD(r,e,i));return{c(){t=ue("div");for(let i=0;i<n.length;i+=1)n[i].c();B(t,"class","task-dependencies-container results-dependency")},m(i,s){Ee(i,t,s);for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(t,null)},p(i,s){if(s[0]&802819){e=i[0][i[1]];let a;for(a=0;a<e.length;a+=1){let o=VD(i,e,a);n[a]?n[a].p(o,s):(n[a]=JD(o),n[a].c(),n[a].m(t,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=e.length}},d(i){i&&_e(t),Bs(n,i)}}}function JD(r){let t,e,n,i=r[5].status.symbol+"",s,a,o=Ys(r[5])+"",l,u,c,d,f,p;function b(){return r[33](r[5])}function T(...v){return r[34](r[5],...v)}return{c(){t=ue("div"),e=ue("span"),n=Ve("["),s=Ve(i),a=Ve("] "),l=Ve(o),u=xe(),c=ue("button"),c.innerHTML='<svg style="display: block; margin: auto;" xmlns="http://www.w3.org/2000/svg" width="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>',d=xe(),B(e,"class","task-dependency-name"),B(c,"type","button"),B(c,"class","task-dependency-delete"),B(t,"class","task-dependency")},m(v,O){Ee(v,t,O),z(t,e),z(e,n),z(e,s),z(e,a),z(e,l),z(t,u),z(t,c),z(t,d),f||(p=[$e(c,"click",b),$e(t,"mouseenter",T)],f=!0)},p(v,O){r=v,O[0]&3&&i!==(i=r[5].status.symbol+"")&&ir(s,i),O[0]&3&&o!==(o=Ys(r[5])+"")&&ir(l,o)},d(v){v&&_e(t),f=!1,zt(p)}}}function wU(r){let t,e=Ut(r[2],r[3])+"",n,i,s,a,o,l,u,c,d,f=r[10]&&r[10].length!==0&&KD(r),p=r[0][r[1]].length!==0&&XD(r);return{c(){t=ue("label"),n=xe(),i=ue("span"),s=ue("input"),o=xe(),f&&f.c(),l=xe(),p&&p.c(),u=md(),B(t,"for",r[1]),B(s,"accesskey",r[3]),B(s,"id",r[1]),B(s,"class","tasks-modal-dependency-input"),B(s,"type","text"),B(s,"placeholder",r[4]),Gs(()=>r[26].call(i))},m(b,T){Ee(b,t,T),t.innerHTML=e,Ee(b,n,T),Ee(b,i,T),z(i,s),r[22](s),mn(s,r[6]),a=yD(i,r[26].bind(i)),Ee(b,o,T),f&&f.m(b,T),Ee(b,l,T),p&&p.m(b,T),Ee(b,u,T),c||(d=[$e(s,"input",r[23]),$e(s,"keydown",r[24]),$e(s,"focus",r[16]),$e(s,"blur",r[25])],c=!0)},p(b,T){T[0]&12&&e!==(e=Ut(b[2],b[3])+"")&&(t.innerHTML=e),T[0]&2&&B(t,"for",b[1]),T[0]&8&&B(s,"accesskey",b[3]),T[0]&2&&B(s,"id",b[1]),T[0]&16&&B(s,"placeholder",b[4]),T[0]&64&&s.value!==b[6]&&mn(s,b[6]),b[10]&&b[10].length!==0?f?f.p(b,T):(f=KD(b),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null),b[0][b[1]].length!==0?p?p.p(b,T):(p=XD(b),p.c(),p.m(u.parentNode,u)):p&&(p.d(1),p=null)},i:tt,o:tt,d(b){b&&_e(t),b&&_e(n),b&&_e(i),r[22](null),a(),b&&_e(o),f&&f.d(b),b&&_e(l),p&&p.d(b),b&&_e(u),c=!1,zt(d)}}}function kU(r,t,e){let{task:n}=t,{editableTask:i}=t,{allTasks:s}=t,{_onDescriptionKeyDown:a}=t,{type:o}=t,{labelText:l}=t,{accesskey:u}=t,{placeholder:c="Type to search..."}=t,d="",f=null,p=0,b,T=!1,v=!1,O,E;function P(D){e(0,i[o]=[...i[o],D],i),e(6,d=""),e(7,T=!1)}function Y(D){e(0,i[o]=i[o].filter(N=>N!==D),i)}function q(D){var N;if(f!==null){switch(D.key){case"ArrowUp":D.preventDefault(),!!p&&p>0?e(11,p-=1):e(11,p=f.length-1);break;case"ArrowDown":D.preventDefault(),!!p&&p<f.length-1?e(11,p+=1):e(11,p=0);break;case"Enter":if(D.isComposing)return;p!==null?(D.preventDefault(),P(f[p]),e(11,p=null),e(7,T=!1)):a(D);break;default:e(11,p=0);break}p&&((N=E==null?void 0:E.getElementsByTagName("li")[p])===null||N===void 0||N.scrollIntoView({block:"nearest"}))}}function ae(D){return!D&&!v?[]:(v=!1,td(D,s,n,i.blockedBy,i.blocking))}function H(){e(7,T=!0),v=!0}function J(D,N){!D||!N||Ay(D,N,{middleware:[Cy(6),My(),GD(),BD({apply(){N&&Object.assign(N.style,{width:`${b}px`})}})]}).then(({x:$,y:ce})=>{N.style.left=`${$}px`,N.style.top=`${ce}px`})}function ye(D){return D===n.taskLocation.path?"":D}function we(D){return Ys(D)}function V(D,N){let $=D.createDiv();$.addClasses(["tooltip","pop-up"]),$.innerText=N,Ay(D,$,{placement:"top",middleware:[Cy(-18),My()]}).then(({x:ce,y:be})=>{$.style.left=`${ce}px`,$.style.top=`${be}px`}),D.addEventListener("mouseleave",()=>$.remove())}function K(D){ot[D?"unshift":"push"](()=>{O=D,e(8,O)})}function R(){d=this.value,e(6,d)}let ee=D=>q(D),W=()=>e(7,T=!1);function le(){b=this.clientWidth,e(12,b)}let m=(D,N)=>V(N.currentTarget,we(D)),y=(D,N)=>V(N.currentTarget,D),_=D=>P(D),w=D=>e(11,p=D);function S(D){ot[D?"unshift":"push"](()=>{E=D,e(9,E)})}let C=()=>e(11,p=null),L=D=>Y(D),j=(D,N)=>V(N.currentTarget,we(D));return r.$$set=D=>{"task"in D&&e(5,n=D.task),"editableTask"in D&&e(0,i=D.editableTask),"allTasks"in D&&e(20,s=D.allTasks),"_onDescriptionKeyDown"in D&&e(21,a=D._onDescriptionKeyDown),"type"in D&&e(1,o=D.type),"labelText"in D&&e(2,l=D.labelText),"accesskey"in D&&e(3,u=D.accesskey),"placeholder"in D&&e(4,c=D.placeholder)},r.$$.update=()=>{if(r.$$.dirty[0]&768){e:J(O,E)}if(r.$$.dirty[0]&192){e:e(10,f=T?ae(d):null)}},[i,o,l,u,c,n,d,T,O,E,f,p,b,P,Y,q,H,ye,we,V,s,a,K,R,ee,W,le,m,y,_,w,S,C,L,j]}var Py=class extends rr{constructor(t){super(),Qr(this,t,kU,wU,Kr,{task:5,editableTask:0,allTasks:20,_onDescriptionKeyDown:21,type:1,labelText:2,accesskey:3,placeholder:4},null,[-1,-1])}},Ny=Py;pn();Cs();su();var gu=require("obsidian");pn();Ws();gy();var hu,Iy,Fy,SU=["md"];function Sd(){return sn.getLogger("tasks.File")}var eE=({metadataCache:r,vault:t,workspace:e})=>{hu=r,Iy=t,Fy=e},Nn=e=>I(void 0,[e],function*({originalTask:r,newTasks:t}){if(Iy===void 0||hu===void 0||Fy===void 0){wd("Tasks: cannot use File before initializing it.");return}Array.isArray(t)||(t=[t]);let n=Sd(),i="replaceTaskWithTasks()";od(n,i,r),ld(n,i,t),yield nE({originalTask:r,newTasks:t,vault:Iy,metadataCache:hu,workspace:Fy,previousTries:0})});function wd(r){console.error(r),new gu.Notice(r,15e3)}function tE(r){console.warn(r),new gu.Notice(r,1e4)}function DU(r){Sd().debug(r)}var Ki=class extends Error{},kd=class extends Error{},nE=a=>I(void 0,[a],function*({originalTask:r,newTasks:t,vault:e,metadataCache:n,workspace:i,previousTries:s}){let o=Sd();o.debug(`tryRepetitive after ${s} previous tries`);let l=()=>I(void 0,null,function*(){if(s>10){let c=`Tasks: Could not find the correct task line to update.

The task line not updated is:
${r.originalMarkdown}

In this markdown file:
"${r.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.
`;wd(c);return}let u=Math.min(Math.pow(10,s),100);o.debug(`timeout = ${u}`),setTimeout(()=>I(void 0,null,function*(){yield nE({originalTask:r,newTasks:t,vault:e,metadataCache:n,workspace:i,previousTries:s+1})}),u)});try{let[u,c,d]=yield rE(r,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 Ki){u.message&&tE(u.message),yield l();return}else if(u instanceof kd){yield l();return}else u instanceof Error&&wd(u.message)}});function rE(r,t){return I(this,null,function*(){if(hu===void 0)throw new Ki;let e=t.getAbstractFileByPath(r.path);if(!(e instanceof gu.TFile))throw new Ki(`Tasks: No file found for task ${r.description}. Retrying ...`);if(!SU.includes(e.extension))throw new Error(`Tasks: Does not support files with the ${e.extension} file extension.`);let n=hu.getFileCache(e);if(n==null||n===null)throw new Ki(`Tasks: No file cache found for file ${e.path}. Retrying ...`);let i=n.listItems;if(i===void 0||i.length===0)throw new Ki(`Tasks: No list items found in file cache of ${e.path}. Retrying ...`);let a=(yield t.read(e)).split(`
`),o=EU(r,a,i,DU);if(o===void 0)throw new kd;return[o,e,a]})}function Ly(r,t){return I(this,null,function*(){try{let[e,n,i]=yield rE(r,t);return[e,n]}catch(e){e instanceof Ki?e.message&&tE(e.message):e instanceof Error&&wd(e.message)}})}function iE(r,t){return r<t.length}function EU(r,t,e,n){let i=xU(r,t);return i!==void 0||(i=OU(r,t),i!==void 0)?i:RU(r,t,e,n)}function xU(r,t){let e=r.taskLocation.lineNumber;if(iE(e,t)&&t[e]===r.originalMarkdown)return Sd().debug(`Found original markdown at original line number ${e}`),e}function OU(r,t){let e=[];for(let n=0;n<t.length;n++)t[n]===r.originalMarkdown&&e.push(n);if(e.length===1)return e[0]}function RU(r,t,e,n){let i,s=0;for(let a of e){let o=a.position.start.line;if(!iE(o,t))return;if(o<r.taskLocation.sectionStart||a.task===void 0)continue;let l=t[o];if(Ne.getInstance().includedIn(l)){if(s===r.taskLocation.sectionIndex){if(l===r.originalMarkdown)i=o;else{n(`Tasks: Unable to find task in file ${r.taskLocation.path}.
Expected task:
${r.originalMarkdown}
Found task:
${l}`);return}break}s++}}return i}Ic();ja();zc();Nt();ed();Cn();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 n=Ne.getInstance().removeAsWordFrom(t.description),i=n!=t.description||!Ne.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:n,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 I(this,null,function*(){let n=this.description.trim();this.addGlobalFilterOnSave&&(n=Ne.getInstance().prependTo(n));let i=Rs(this.startDate,this.forwardOnly),s=Rs(this.scheduledDate,this.forwardOnly),a=Rs(this.dueDate,this.forwardOnly),o=Rs(this.cancelledDate,this.forwardOnly),l=Rs(this.createdDate,this.forwardOnly),u=Rs(this.doneDate,this.forwardOnly),c=null;this.recurrenceRule&&(c=Dt.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new Zn({startDate:i,scheduledDate:s,dueDate:a})}));let d=this.onCompletion,f=[];for(let E of this.blockedBy){let P=yield CU(E,e);f.push(P)}let p=t.id,b=[],T=[];(this.blocking.toString()!==this.originalBlocking.toString()||this.blocking.length!==0)&&(t.id===""&&(p=ru(e.filter(E=>E.id!=="").map(E=>E.id))),b=this.originalBlocking.filter(E=>!this.blocking.includes(E)),T=this.blocking.filter(E=>!this.originalBlocking.includes(E)));let v=new pe(de(F({},t),{description:n,status:t.status,priority:Mn.priorityValue(this.priority),onCompletion:d,recurrence:c,startDate:i,scheduledDate:s,dueDate:a,doneDate:u,createdDate:l,cancelledDate:o,dependsOn:f.map(E=>E.id),id:p}));for(let E of b){let P=US(E,v);yield Nn({originalTask:E,newTasks:P})}for(let E of T){let P=LS(E,v);yield Nn({originalTask:E,newTasks:P})}let O=this.inferTodaysDate(this.status.type,u,o);return v.handleNewStatusWithRecurrenceInUsersOrder(this.status,O)})}inferTodaysDate(t,e,n){return t==="DONE"&&e!==null?e:t==="CANCELLED"&&n!==null?n:window.moment()}parseAndValidateRecurrence(){var e;if(!this.recurrenceRule)return{parsedRecurrence:"<i>not recurring</>",isRecurrenceValid:!0};let t=(e=Dt.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new Zn({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 CU(r,t){return I(this,null,function*(){if(r.id!=="")return r;let e=t.filter(i=>i.id!==""),n=Jc(r,e.map(i=>i.id));return yield Nn({originalTask:r,newTasks:n}),n})}Vt();function MU(r){let t,e=Ut("Recurs",r[2])+"",n,i,s,a,o,l,u,c,d;return{c(){t=ue("label"),n=xe(),i=ue("input"),s=xe(),a=ue("code"),o=Ve(r[4]),l=xe(),u=new Za(!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",r[2]),Si(i,"tasks-modal-error",!r[1]),u.a=null,B(a,"class","tasks-modal-parsed-date")},m(f,p){Ee(f,t,p),t.innerHTML=e,Ee(f,n,p),Ee(f,i,p),mn(i,r[0].recurrenceRule),Ee(f,s,p),Ee(f,a,p),z(a,o),z(a,l),u.m(r[3],a),c||(d=$e(i,"input",r[5]),c=!0)},p(f,[p]){p&4&&e!==(e=Ut("Recurs",f[2])+"")&&(t.innerHTML=e),p&4&&B(i,"accesskey",f[2]),p&1&&i.value!==f[0].recurrenceRule&&mn(i,f[0].recurrenceRule),p&2&&Si(i,"tasks-modal-error",!f[1]),p&8&&u.p(f[3])},i:tt,o:tt,d(f){f&&_e(t),f&&_e(n),f&&_e(i),f&&_e(s),f&&_e(a),c=!1,d()}}}function AU(r,t,e){let{editableTask:n}=t,{isRecurrenceValid:i}=t,{accesskey:s}=t,a,{recurrenceSymbol:o}=Er.tasksPluginEmoji.taskSerializer.symbols;function l(){n.recurrenceRule=this.value,e(0,n)}return r.$$set=u=>{"editableTask"in u&&e(0,n=u.editableTask),"isRecurrenceValid"in u&&e(1,i=u.isRecurrenceValid),"accesskey"in u&&e(2,s=u.accesskey)},r.$$.update=()=>{if(r.$$.dirty&1){e:e(3,{parsedRecurrence:a,isRecurrenceValid:i}=n.parseAndValidateRecurrence(),a,(e(1,i),e(0,n)))}},[n,i,s,a,o,l]}var Uy=class extends rr{constructor(t){super(),Qr(this,t,AU,MU,Kr,{editableTask:0,isRecurrenceValid:1,accesskey:2})}},sE=Uy;function aE(r,t,e){let n=r.slice();return n[7]=t[e],n}function oE(r){let t,e=r[7].name+"",n,i,s=r[7].symbol+"",a,o,l;return{c(){t=ue("option"),n=Ve(e),i=Ve(" ["),a=Ve(s),o=Ve("]"),t.__value=l=r[7].symbol,t.value=t.__value},m(u,c){Ee(u,t,c),z(t,n),z(t,i),z(t,a),z(t,o)},p(u,c){c&1&&e!==(e=u[7].name+"")&&ir(n,e),c&1&&s!==(s=u[7].symbol+"")&&ir(a,s),c&1&&l!==(l=u[7].symbol)&&(t.__value=l,t.value=t.__value)},d(u){u&&_e(t)}}}function PU(r){let t,e=Ut("Status",r[1])+"",n,i,s,a,o=r[0],l=[];for(let u=0;u<o.length;u+=1)l[u]=oE(aE(r,o,u));return{c(){t=ue("label"),n=xe(),i=ue("select");for(let u=0;u<l.length;u+=1)l[u].c();B(t,"for","status"),B(i,"id","status-type"),B(i,"class","status-editor-status-selector"),B(i,"accesskey",r[1]),r[2]===void 0&&Gs(()=>r[6].call(i))},m(u,c){Ee(u,t,c),t.innerHTML=e,Ee(u,n,c),Ee(u,i,c);for(let d=0;d<l.length;d+=1)l[d]&&l[d].m(i,null);_y(i,r[2],!0),s||(a=[$e(i,"change",r[6]),$e(i,"change",r[3])],s=!0)},p(u,[c]){if(c&2&&e!==(e=Ut("Status",u[1])+"")&&(t.innerHTML=e),c&1){o=u[0];let d;for(d=0;d<o.length;d+=1){let f=aE(u,o,d);l[d]?l[d].p(f,c):(l[d]=oE(f),l[d].c(),l[d].m(i,null))}for(;d<l.length;d+=1)l[d].d(1);l.length=o.length}c&2&&B(i,"accesskey",u[1]),c&5&&_y(i,u[2])},i:tt,o:tt,d(u){u&&_e(t),u&&_e(n),u&&_e(i),Bs(l,u),s=!1,zt(a)}}}function lE(r,t,e){let n=r==="";return t&&n?e.formatAsDate():!t&&!n?"":r}function NU(r,t,e){let{task:n}=t,{editableTask:i}=t,{statusOptions:s}=t,{accesskey:a}=t,o=n.status.symbol,l=()=>{let c=s.find(f=>f.symbol===o);if(c)e(4,i.status=c,i);else{console.log(`Error in EditTask: cannot find status with symbol ${o}`);return}let d=n.handleNewStatus(c).pop();d&&(e(4,i.doneDate=lE(i.doneDate,c.isCompleted(),d.done),i),e(4,i.cancelledDate=lE(i.cancelledDate,c.isCancelled(),d.cancelled),i))};function u(){o=gD(this),e(2,o),e(0,s)}return r.$$set=c=>{"task"in c&&e(5,n=c.task),"editableTask"in c&&e(4,i=c.editableTask),"statusOptions"in c&&e(0,s=c.statusOptions),"accesskey"in c&&e(1,a=c.accesskey)},[s,a,o,l,i,n,u]}var Yy=class extends rr{constructor(t){super(),Qr(this,t,NU,PU,Kr,{task:5,editableTask:4,statusOptions:0,accesskey:1})}},uE=Yy;function cE(r,t,e){let n=r.slice();return n[49]=t[e].value,n[50]=t[e].label,n[51]=t[e].symbol,n[52]=t[e].accessKey,n[53]=t[e].accessKeyIndex,n}function IU(r){let t,e=r[50]+"",n;return{c(){t=ue("span"),n=Ve(e)},m(i,s){Ee(i,t,s),z(t,n)},p:tt,d(i){i&&_e(t)}}}function FU(r){let t,e=r[50].substring(0,r[53])+"",n,i,s=r[50].substring(r[53],r[53]+1)+"",a,o,l=r[50].substring(r[53]+1)+"",u;return{c(){t=ue("span"),n=Ve(e),i=ue("span"),a=Ve(s),o=ue("span"),u=Ve(l),B(i,"class","accesskey")},m(c,d){Ee(c,t,d),z(t,n),Ee(c,i,d),z(i,a),Ee(c,o,d),z(o,u)},p:tt,d(c){c&&_e(t),c&&_e(i),c&&_e(o)}}}function LU(r){let t,e=r[51]+"",n;return{c(){t=ue("span"),n=Ve(e)},m(i,s){Ee(i,t,s),z(t,n)},p:tt,d(i){i&&_e(t)}}}function dE(r){let t,e,n,i,s,a,o,l,u=r[51]&&r[51].charCodeAt(0)>=256,c,d,f,p,b;function T(P,Y){return P[11]?FU:IU}let v=T(r,[-1,-1]),O=v(r),E=u&&LU(r);return f=hD(r[32][0]),{c(){t=ue("div"),e=ue("input"),a=xe(),o=ue("label"),O.c(),l=xe(),E&&E.c(),d=xe(),B(e,"type","radio"),B(e,"id",n="priority-"+r[49]),e.__value=i=r[49],e.value=e.__value,B(e,"accesskey",s=r[15](r[52])),B(o,"for",c="priority-"+r[49]),B(t,"class","task-modal-priority-option-container"),f.p(e)},m(P,Y){Ee(P,t,Y),z(t,e),e.checked=e.__value===r[3].priority,z(t,a),z(t,o),O.m(o,null),z(o,l),E&&E.m(o,null),z(t,d),p||(b=$e(e,"change",r[31]),p=!0)},p(P,Y){Y[0]&32768&&s!==(s=P[15](P[52]))&&B(e,"accesskey",s),Y[0]&8&&(e.checked=e.__value===P[3].priority),v===(v=T(P,Y))&&O?O.p(P,Y):(O.d(1),O=v(P),O&&(O.c(),O.m(o,l))),u&&E.p(P,Y)},d(P){P&&_e(t),O.d(),E&&E.d(),f.r(),p=!1,b()}}}function UU(r){let t;return{c(){t=ue("div"),t.innerHTML="<i>Blocking and blocked by fields are disabled when vault tasks is empty</i>"},m(e,n){Ee(e,t,n)},p:tt,i:tt,o:tt,d(e){e&&_e(t)}}}function YU(r){let t,e,n,i;return t=new Ny({props:{type:"blockedBy",labelText:"Before this",task:r[0],editableTask:r[3],allTasks:r[2],_onDescriptionKeyDown:r[24],accesskey:r[15]("b"),placeholder:"Search for tasks that the task being edited depends on..."}}),n=new Ny({props:{type:"blocking",labelText:"After this",task:r[0],editableTask:r[3],allTasks:r[2],_onDescriptionKeyDown:r[24],accesskey:r[15]("e"),placeholder:"Search for tasks that depend on this task being done..."}}),{c(){Or(t.$$.fragment),e=xe(),Or(n.$$.fragment)},m(s,a){sr(t,s,a),Ee(s,e,a),sr(n,s,a),i=!0},p(s,a){let o={};a[0]&1&&(o.task=s[0]),a[0]&8&&(o.editableTask=s[3]),a[0]&4&&(o.allTasks=s[2]),a[0]&32768&&(o.accesskey=s[15]("b")),t.$set(o);let l={};a[0]&1&&(l.task=s[0]),a[0]&8&&(l.editableTask=s[3]),a[0]&4&&(l.allTasks=s[2]),a[0]&32768&&(l.accesskey=s[15]("e")),n.$set(l)},i(s){i||(hn(t.$$.fragment,s),hn(n.$$.fragment,s),i=!0)},o(s){An(t.$$.fragment,s),An(n.$$.fragment,s),i=!1},d(s){Pn(t,s),s&&_e(e),Pn(n,s)}}}function jU(r){let t,e,n,i=Ut("Description",r[15]("t"))+"",s,a,o,l,u,c,d,f,p,b,T,v,O,E,P,Y,q,ae,H,J,ye,we,V,K,R,ee,W,le,m,y,_=Ut("Only future dates:",r[15]("f"))+"",w,S,C,L,j,D,N,$,ce,be,Oe,Ge,Le,jt,pr,wn,te,$t,st,cs,mr,Co,oa,la,Yn,Pi,Mo,Ao,Ni,Fr,Pu,ua,Po,ds,jn,Ze,ca,Lr=r[22],xt=[];for(let U=0;U<Lr.length;U+=1)xt[U]=dE(cE(r,Lr,U));function da(U){r[33](U)}let fa={editableTask:r[3],accesskey:r[15]("r")};r[10]!==void 0&&(fa.isRecurrenceValid=r[10]),E=new sE({props:fa}),ot.push(()=>on(E,"isRecurrenceValid",da));function hr(U){r[34](U)}function Pf(U){r[35](U)}let No={id:"due",dateSymbol:r[18],forwardOnly:r[3].forwardOnly,accesskey:r[15]("d")};r[3].dueDate!==void 0&&(No.date=r[3].dueDate),r[7]!==void 0&&(No.isDateValid=r[7]),q=new Vs({props:No}),ot.push(()=>on(q,"date",hr)),ot.push(()=>on(q,"isDateValid",Pf));function h(U){r[36](U)}function g(U){r[37](U)}let k={id:"scheduled",dateSymbol:r[17],forwardOnly:r[3].forwardOnly,accesskey:r[15]("s")};r[3].scheduledDate!==void 0&&(k.date=r[3].scheduledDate),r[8]!==void 0&&(k.isDateValid=r[8]),ye=new Vs({props:k}),ot.push(()=>on(ye,"date",h)),ot.push(()=>on(ye,"isDateValid",g));function A(U){r[38](U)}function G(U){r[39](U)}let Z={id:"start",dateSymbol:r[16],forwardOnly:r[3].forwardOnly,accesskey:r[15]("a")};r[3].startDate!==void 0&&(Z.date=r[3].startDate),r[9]!==void 0&&(Z.isDateValid=r[9]),R=new Vs({props:Z}),ot.push(()=>on(R,"date",A)),ot.push(()=>on(R,"isDateValid",G));let ve=[YU,UU],ne=[];function Re(U,he){return U[2].length>0&&U[14]?0:1}$=Re(r,[-1,-1]),ce=ne[$]=ve[$](r);function se(U){r[41](U)}let me={task:r[0],statusOptions:r[1],accesskey:r[15]("u")};r[3]!==void 0&&(me.editableTask=r[3]),jt=new uE({props:me}),ot.push(()=>on(jt,"editableTask",se));function ze(U){r[42](U)}function $n(U){r[43](U)}let Ot={id:"created",dateSymbol:r[20],forwardOnly:r[3].forwardOnly,accesskey:r[15]("c")};r[3].createdDate!==void 0&&(Ot.date=r[3].createdDate),r[5]!==void 0&&(Ot.isDateValid=r[5]),te=new Vs({props:Ot}),ot.push(()=>on(te,"date",ze)),ot.push(()=>on(te,"isDateValid",$n));function fs(U){r[44](U)}function Ii(U){r[45](U)}let Io={id:"done",dateSymbol:r[21],forwardOnly:r[3].forwardOnly,accesskey:r[15]("x")};r[3].doneDate!==void 0&&(Io.date=r[3].doneDate),r[6]!==void 0&&(Io.isDateValid=r[6]),mr=new Vs({props:Io}),ot.push(()=>on(mr,"date",fs)),ot.push(()=>on(mr,"isDateValid",Ii));function Fo(U){r[46](U)}function Nf(U){r[47](U)}let Lo={id:"cancelled",dateSymbol:r[19],forwardOnly:r[3].forwardOnly,accesskey:r[15]("-")};return r[3].cancelledDate!==void 0&&(Lo.date=r[3].cancelledDate),r[4]!==void 0&&(Lo.isDateValid=r[4]),Yn=new Vs({props:Lo}),ot.push(()=>on(Yn,"date",Fo)),ot.push(()=>on(Yn,"isDateValid",Nf)),{c(){t=ue("form"),e=ue("section"),n=ue("label"),s=xe(),a=ue("textarea"),l=xe(),u=ue("section"),c=ue("label"),d=Ve("Priority"),p=xe();for(let U=0;U<xt.length;U+=1)xt[U].c();b=xe(),T=ue("hr"),v=xe(),O=ue("section"),Or(E.$$.fragment),Y=xe(),Or(q.$$.fragment),J=xe(),Or(ye.$$.fragment),K=xe(),Or(R.$$.fragment),le=xe(),m=ue("div"),y=ue("label"),w=xe(),S=ue("input"),L=xe(),j=ue("hr"),D=xe(),N=ue("section"),ce.c(),be=xe(),Oe=ue("hr"),Ge=xe(),Le=ue("section"),Or(jt.$$.fragment),wn=xe(),Or(te.$$.fragment),cs=xe(),Or(mr.$$.fragment),la=xe(),Or(Yn.$$.fragment),Ao=xe(),Ni=ue("section"),Fr=ue("button"),Pu=Ve("Apply"),Po=xe(),ds=ue("button"),ds.textContent="Cancel",B(n,"for","description"),B(a,"id","description"),B(a,"class","tasks-modal-description"),B(a,"placeholder","Take out the trash"),B(a,"accesskey",o=r[15]("t")),B(e,"class","tasks-modal-description-section"),B(c,"for",f="priority-"+r[3].priority),B(u,"class","tasks-modal-priority-section"),B(y,"for","forwardOnly"),B(S,"id","forwardOnly"),B(S,"type","checkbox"),B(S,"class","task-list-item-checkbox tasks-modal-checkbox"),B(S,"accesskey",C=r[15]("f")),B(m,"class","future-dates-only"),B(O,"class","tasks-modal-dates-section"),B(N,"class","tasks-modal-dependencies-section"),B(Le,"class","tasks-modal-dates-section"),Fr.disabled=ua=!r[13],B(Fr,"type","submit"),B(Fr,"class","mod-cta"),B(ds,"type","button"),B(Ni,"class","tasks-modal-button-section"),B(t,"class","tasks-modal")},m(U,he){Ee(U,t,he),z(t,e),z(e,n),n.innerHTML=i,z(e,s),z(e,a),mn(a,r[3].description),r[30](a),z(t,l),z(t,u),z(u,c),z(c,d),z(u,p);for(let gr=0;gr<xt.length;gr+=1)xt[gr]&&xt[gr].m(u,null);z(t,b),z(t,T),z(t,v),z(t,O),sr(E,O,null),z(O,Y),sr(q,O,null),z(O,J),sr(ye,O,null),z(O,K),sr(R,O,null),z(O,le),z(O,m),z(m,y),y.innerHTML=_,z(m,w),z(m,S),S.checked=r[3].forwardOnly,z(t,L),z(t,j),z(t,D),z(t,N),ne[$].m(N,null),z(t,be),z(t,Oe),z(t,Ge),z(t,Le),sr(jt,Le,null),z(Le,wn),sr(te,Le,null),z(Le,cs),sr(mr,Le,null),z(Le,la),sr(Yn,Le,null),z(t,Ao),z(t,Ni),z(Ni,Fr),z(Fr,Pu),z(Ni,Po),z(Ni,ds),jn=!0,Ze||(ca=[$e(a,"input",r[29]),$e(a,"keydown",r[24]),$e(a,"paste",r[25]),$e(a,"drop",r[25]),$e(S,"change",r[40]),$e(ds,"click",r[23]),$e(t,"submit",mD(r[26]))],Ze=!0)},p(U,he){if((!jn||he[0]&32768)&&i!==(i=Ut("Description",U[15]("t"))+"")&&(n.innerHTML=i),(!jn||he[0]&32768&&o!==(o=U[15]("t")))&&B(a,"accesskey",o),he[0]&8&&mn(a,U[3].description),(!jn||he[0]&8&&f!==(f="priority-"+U[3].priority))&&B(c,"for",f),he[0]&4229128){Lr=U[22];let Wn;for(Wn=0;Wn<Lr.length;Wn+=1){let xb=cE(U,Lr,Wn);xt[Wn]?xt[Wn].p(xb,he):(xt[Wn]=dE(xb),xt[Wn].c(),xt[Wn].m(u,null))}for(;Wn<xt.length;Wn+=1)xt[Wn].d(1);xt.length=Lr.length}let gr={};he[0]&8&&(gr.editableTask=U[3]),he[0]&32768&&(gr.accesskey=U[15]("r")),!P&&he[0]&1024&&(P=!0,gr.isRecurrenceValid=U[10],an(()=>P=!1)),E.$set(gr);let ps={};he[0]&8&&(ps.forwardOnly=U[3].forwardOnly),he[0]&32768&&(ps.accesskey=U[15]("d")),!ae&&he[0]&8&&(ae=!0,ps.date=U[3].dueDate,an(()=>ae=!1)),!H&&he[0]&128&&(H=!0,ps.isDateValid=U[7],an(()=>H=!1)),q.$set(ps);let ms={};he[0]&8&&(ms.forwardOnly=U[3].forwardOnly),he[0]&32768&&(ms.accesskey=U[15]("s")),!we&&he[0]&8&&(we=!0,ms.date=U[3].scheduledDate,an(()=>we=!1)),!V&&he[0]&256&&(V=!0,ms.isDateValid=U[8],an(()=>V=!1)),ye.$set(ms);let hs={};he[0]&8&&(hs.forwardOnly=U[3].forwardOnly),he[0]&32768&&(hs.accesskey=U[15]("a")),!ee&&he[0]&8&&(ee=!0,hs.date=U[3].startDate,an(()=>ee=!1)),!W&&he[0]&512&&(W=!0,hs.isDateValid=U[9],an(()=>W=!1)),R.$set(hs),(!jn||he[0]&32768)&&_!==(_=Ut("Only future dates:",U[15]("f"))+"")&&(y.innerHTML=_),(!jn||he[0]&32768&&C!==(C=U[15]("f")))&&B(S,"accesskey",C),he[0]&8&&(S.checked=U[3].forwardOnly);let If=$;$=Re(U,he),$===If?ne[$].p(U,he):(TD(),An(ne[If],1,1,()=>{ne[If]=null}),vD(),ce=ne[$],ce?ce.p(U,he):(ce=ne[$]=ve[$](U),ce.c()),hn(ce,1),ce.m(N,null));let Uo={};he[0]&1&&(Uo.task=U[0]),he[0]&2&&(Uo.statusOptions=U[1]),he[0]&32768&&(Uo.accesskey=U[15]("u")),!pr&&he[0]&8&&(pr=!0,Uo.editableTask=U[3],an(()=>pr=!1)),jt.$set(Uo);let Yo={};he[0]&8&&(Yo.forwardOnly=U[3].forwardOnly),he[0]&32768&&(Yo.accesskey=U[15]("c")),!$t&&he[0]&8&&($t=!0,Yo.date=U[3].createdDate,an(()=>$t=!1)),!st&&he[0]&32&&(st=!0,Yo.isDateValid=U[5],an(()=>st=!1)),te.$set(Yo);let jo={};he[0]&8&&(jo.forwardOnly=U[3].forwardOnly),he[0]&32768&&(jo.accesskey=U[15]("x")),!Co&&he[0]&8&&(Co=!0,jo.date=U[3].doneDate,an(()=>Co=!1)),!oa&&he[0]&64&&(oa=!0,jo.isDateValid=U[6],an(()=>oa=!1)),mr.$set(jo);let $o={};he[0]&8&&($o.forwardOnly=U[3].forwardOnly),he[0]&32768&&($o.accesskey=U[15]("-")),!Pi&&he[0]&8&&(Pi=!0,$o.date=U[3].cancelledDate,an(()=>Pi=!1)),!Mo&&he[0]&16&&(Mo=!0,$o.isDateValid=U[4],an(()=>Mo=!1)),Yn.$set($o),(!jn||he[0]&8192&&ua!==(ua=!U[13]))&&(Fr.disabled=ua)},i(U){jn||(hn(E.$$.fragment,U),hn(q.$$.fragment,U),hn(ye.$$.fragment,U),hn(R.$$.fragment,U),hn(ce),hn(jt.$$.fragment,U),hn(te.$$.fragment,U),hn(mr.$$.fragment,U),hn(Yn.$$.fragment,U),jn=!0)},o(U){An(E.$$.fragment,U),An(q.$$.fragment,U),An(ye.$$.fragment,U),An(R.$$.fragment,U),An(ce),An(jt.$$.fragment,U),An(te.$$.fragment,U),An(mr.$$.fragment,U),An(Yn.$$.fragment,U),jn=!1},d(U){U&&_e(t),r[30](null),Bs(xt,U),Pn(E),Pn(q),Pn(ye),Pn(R),ne[$].d(),Pn(jt),Pn(te),Pn(mr),Pn(Yn),Ze=!1,zt(ca)}}}function $U(r,t,e){let n,{task:i}=t,{onSubmit:s}=t,{statusOptions:a}=t,{allTasks:o}=t,{prioritySymbols:l,startDateSymbol:u,scheduledDateSymbol:c,dueDateSymbol:d,cancelledDateSymbol:f,createdDateSymbol:p,doneDateSymbol:b}=Er.tasksPluginEmoji.taskSerializer.symbols,T,v=ro.fromTask(i,o),O=!0,E=!0,P=!0,Y=!0,q=!0,ae=!0,H=!0,J=!0,ye=!0,we=!0,V=!1,K=[{value:"lowest",label:"Lowest",symbol:l.Lowest,accessKey:"o",accessKeyIndex:1},{value:"low",label:"Low",symbol:l.Low,accessKey:"l",accessKeyIndex:0},{value:"none",label:"Normal",symbol:l.None,accessKey:"n",accessKeyIndex:0},{value:"medium",label:"Medium",symbol:l.Medium,accessKey:"m",accessKeyIndex:0},{value:"high",label:"High",symbol:l.High,accessKey:"h",accessKeyIndex:0},{value:"highest",label:"Highest",symbol:l.Highest,accessKey:"i",accessKeyIndex:1}];wy(()=>{let{provideAccessKeys:te}=re();e(11,ye=te),e(14,V=!0),setTimeout(()=>{T.focus()},10)});let R=()=>{s([])},ee=te=>{te.key==="Enter"&&!te.isComposing&&(te.preventDefault(),we&&le())},W=()=>{setTimeout(()=>{e(3,v.description=v.description.replace(/[\r\n]+/g," "),v)},0)},le=()=>_D(void 0,void 0,void 0,function*(){let te=yield v.applyEdits(i,o);s(te)}),m=[[]];function y(){v.description=this.value,e(3,v)}function _(te){ot[te?"unshift":"push"](()=>{T=te,e(12,T)})}function w(){v.priority=this.__value,e(3,v)}function S(te){J=te,e(10,J)}function C(te){r.$$.not_equal(v.dueDate,te)&&(v.dueDate=te,e(3,v))}function L(te){q=te,e(7,q)}function j(te){r.$$.not_equal(v.scheduledDate,te)&&(v.scheduledDate=te,e(3,v))}function D(te){ae=te,e(8,ae)}function N(te){r.$$.not_equal(v.startDate,te)&&(v.startDate=te,e(3,v))}function $(te){H=te,e(9,H)}function ce(){v.forwardOnly=this.checked,e(3,v)}function be(te){v=te,e(3,v)}function Oe(te){r.$$.not_equal(v.createdDate,te)&&(v.createdDate=te,e(3,v))}function Ge(te){P=te,e(5,P)}function Le(te){r.$$.not_equal(v.doneDate,te)&&(v.doneDate=te,e(3,v))}function jt(te){Y=te,e(6,Y)}function pr(te){r.$$.not_equal(v.cancelledDate,te)&&(v.cancelledDate=te,e(3,v))}function wn(te){E=te,e(4,E)}return r.$$set=te=>{"task"in te&&e(0,i=te.task),"onSubmit"in te&&e(27,s=te.onSubmit),"statusOptions"in te&&e(1,a=te.statusOptions),"allTasks"in te&&e(2,o=te.allTasks)},r.$$.update=()=>{if(r.$$.dirty[0]&2048){e:e(15,n=te=>ye?te:null)}if(r.$$.dirty[0]&8){e:e(28,O=v.description.trim()!=="")}if(r.$$.dirty[0]&268437488){e:e(13,we=q&&J&&ae&&H&&O&&E&&P&&Y)}},[i,a,o,v,E,P,Y,q,ae,H,J,ye,T,we,V,n,u,c,d,f,p,b,K,R,ee,W,le,s,O,y,_,w,m,S,C,L,j,D,N,$,ce,be,Oe,Ge,Le,jt,pr,wn]}var jy=class extends rr{constructor(t){super(),Qr(this,t,$U,jU,Kr,{task:0,onSubmit:27,statusOptions:1,allTasks:2},null,[-1,-1])}},fE=jy;Vr();Dr();var Qi=class extends pE.Modal{constructor({app:e,task:n,onSubmit:i,allTasks:s}){super(e);this.task=n,this.allTasks=s,this.onSubmit=a=>{a.length&&i(a),this.close()}}onOpen(){this.titleEl.setText("Create or edit Task"),this.modalEl.style.paddingBottom="0";let{contentEl:e}=this;this.contentEl.style.paddingBottom="0";let n=this.getKnownStatusesAndCurrentTaskStatusIfNotKnown();new fE({target:e,props:{task:this.task,statusOptions:n,onSubmit:this.onSubmit,allTasks:this.allTasks}})}getKnownStatusesAndCurrentTaskStatusIfNotKnown(){let e=je.getInstance().registeredStatuses;return je.getInstance().bySymbol(this.task.status.symbol)===ge.EMPTY&&e.push(this.task.status),e}onClose(){let{contentEl:e}=this;e.empty()}};Vi();Dr();Qc();Nt();Vi();Vr();Vt();pn();ja();si();function WU(){let{setCreatedDate:r}=re();return r?window.moment():null}function qU(r){let{setCreatedDate:t}=re();if(!t||r.createdDate!==null)return!1;let e=r.description==="",n=!Ne.getInstance().isEmpty(),i=!Ne.getInstance().includedIn(r.description);return e||n&&i}var Dd=({line:r,path:t})=>{var f,p;let e=pe.parseTaskSignifiers(r,Lt.fromUnknownPosition(new mt(t)),Ft.fromPath(t)),n=WU();if(e!==null)return qU(e)?new pe(de(F({},e),{createdDate:n})):e;let i=r.match(fe.nonTaskRegex);if(i===null)return console.error("Tasks: Cannot create task on line:",r),new pe({status:ge.TODO,description:"",taskLocation:Lt.fromUnknownPosition(new mt(t)),indentation:"",listMarker:"-",priority:"3",createdDate:n,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,cancelledDate:null,recurrence:null,onCompletion:"",dependsOn:[],id:"",blockLink:"",tags:[],originalMarkdown:"",scheduledDateIsInferred:!1});let s=i[1],a=(f=i[2])!=null?f:"-",o=(p=i[4])!=null?p:" ",l=je.getInstance().bySymbolOrCreate(o),u=i[5],c=r.match(fe.blockLinkRegex),d=c!==null?c[0]:"";return d!==""&&(u=u.replace(fe.blockLinkRegex,"")),new pe({status:l,description:u,taskLocation:Lt.fromUnknownPosition(new mt(t)),indentation:s,listMarker:a,blockLink:d,priority:"3",createdDate:n,startDate:null,scheduledDate:null,dueDate:null,doneDate:null,cancelledDate:null,recurrence:null,onCompletion:"",tags:[],originalMarkdown:"",scheduledDateIsInferred:!1,id:"",dependsOn:[]})};var mE=(r,t,e,n,i)=>{var f;if(r)return e instanceof $y.MarkdownView;if(!(e instanceof $y.MarkdownView))return;let s=(f=e.file)==null?void 0:f.path;if(s===void 0)return;let o=t.getCursor().line,l=t.getLine(o),u=Dd({line:l,path:s}),c=p=>{let b=Ft.removeInferredStatusIfNeeded(u,p).map(T=>T.toFileLineString()).join(`
`);t.setLine(o,b)};new Qi({app:n,task:u,onSubmit:c,allTasks:i}).open()};var Wy=require("obsidian");Vr();Nt();si();var hE=(r,t,e)=>{var c;if(r)return e instanceof Wy.MarkdownView;if(!(e instanceof Wy.MarkdownView))return;let n=(c=e.file)==null?void 0:c.path;if(n===void 0)return;let i=t.getCursor(),s=i.line,a=t.getLine(s),o=qy(a,n),l=o.text.length>0,u=s>=t.lineCount()-1;if(l||u)t.setLine(s,o.text);else{let d={line:s,ch:0},f={line:s+1,ch:0};t.replaceRange("",d,f)}t.setCursor(HU(i,o))},qy=(r,t)=>{let e=pe.fromLine({line:r,taskLocation:Lt.fromUnknownPosition(new mt(t)),fallbackDate:null});if(e!==null){let n=e.toggleWithRecurrenceInUsersOrder().map(s=>s.toFileLineString()),i=n.length>0?n.length-1:0;return{text:n.join(`
`),moveTo:{line:i}}}else{let n=r.match(fe.taskRegex);if(n!==null){let i=n[3],a=je.getInstance().bySymbol(i).nextStatusSymbol;return{text:r.replace(fe.taskRegex,`$1- [${a}] $4`)}}else if(fe.listItemRegex.test(r)){let i=r.replace(fe.listItemRegex,"$1$2 [ ]");return{text:i,moveTo:{ch:i.length}}}else{let i=r.replace(fe.indentationRegex,"$1- ");return{text:i,moveTo:{ch:i.length}}}}},HU=(r,t)=>{var s;let e={line:0,ch:r.ch},n=F(F({},e),(s=t.moveTo)!=null?s:{}),i=t.text.split(`
`)[n.line].length;return{line:r.line+n.line,ch:Math.min(n.ch,i)}};var fb=require("obsidian");Vt();var Zi=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 gE(r,t,e){let n=new Map([["backlink","hideBacklinks"],["edit button","hideEditButton"],["postpone button","hidePostponeButton"],["task count","hideTaskCount"],["tree","hideTree"],["urgency","hideUrgency"]]);for(let[i,s]of n.entries())if(t.startsWith(i))return r[s]=e,!0;return!1}Fs();function Xs(r,t){let e=`Error: ${r}.
The error message was:
    `,n="";return t instanceof Error?n+=t:n+="Unknown error",`${e}"${n}"`}Ws();var GU=Object.prototype.toString,so=Array.isArray||function(t){return GU.call(t)==="[object Array]"};function Gy(r){return typeof r=="function"}function BU(r){return so(r)?"array":typeof r}function Hy(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yE(r,t){return r!=null&&typeof r=="object"&&t in r}function VU(r,t){return r!=null&&typeof r!="object"&&r.hasOwnProperty&&r.hasOwnProperty(t)}var zU=RegExp.prototype.test;function KU(r,t){return zU.call(r,t)}var QU=/\S/;function ZU(r){return!KU(QU,r)}var XU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function JU(r){return String(r).replace(/[&<>"'`=\/]/g,function(e){return XU[e]})}var eY=/\s*/,tY=/\s+/,bE=/\s*=/,nY=/\s*\}/,rY=/#|\^|\/|>|\{|&|=|!/;function iY(r,t){if(!r)return[];var e=!1,n=[],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(J){if(typeof J=="string"&&(J=J.split(tY,2)),!so(J)||J.length!==2)throw new Error("Invalid tags: "+J);d=new RegExp(Hy(J[0])+"\\s*"),f=new RegExp("\\s*"+Hy(J[1])),p=new RegExp("\\s*"+Hy("}"+J[1]))}b(t||lr.tags);for(var T=new bu(r),v,O,E,P,Y,q;!T.eos();){if(v=T.pos,E=T.scanUntil(d),E)for(var ae=0,H=E.length;ae<H;++ae)P=E.charAt(ae),ZU(P)?(s.push(i.length),l+=P):(o=!0,e=!0,l+=" "),i.push(["text",P,v,v+1]),v+=1,P===`
`&&(c(),l="",u=0,e=!1);if(!T.scan(d))break;if(a=!0,O=T.scan(rY)||"name",T.scan(eY),O==="="?(E=T.scanUntil(bE),T.scan(bE),T.scanUntil(f)):O==="{"?(E=T.scanUntil(p),T.scan(nY),T.scanUntil(f),O="&"):E=T.scanUntil(f),!T.scan(f))throw new Error("Unclosed tag at "+T.pos);if(O==">"?Y=[O,E,v,T.pos,l,u,e]:Y=[O,E,v,T.pos],u++,i.push(Y),O==="#"||O==="^")n.push(Y);else if(O==="/"){if(q=n.pop(),!q)throw new Error('Unopened section "'+E+'" at '+v);if(q[1]!==E)throw new Error('Unclosed section "'+q[1]+'" at '+v)}else O==="name"||O==="{"||O==="&"?o=!0:O==="="&&b(E)}if(c(),q=n.pop(),q)throw new Error('Unclosed section "'+q[1]+'" at '+T.pos);return aY(sY(i))}function sY(r){for(var t=[],e,n,i=0,s=r.length;i<s;++i)e=r[i],e&&(e[0]==="text"&&n&&n[0]==="text"?(n[1]+=e[1],n[3]=e[3]):(t.push(e),n=e));return t}function aY(r){for(var t=[],e=t,n=[],i,s,a=0,o=r.length;a<o;++a)switch(i=r[a],i[0]){case"#":case"^":e.push(i),n.push(i),e=i[4]=[];break;case"/":s=n.pop(),s[5]=i[2],e=n.length>0?n[n.length-1][4]:t;break;default:e.push(i)}return t}function bu(r){this.string=r,this.tail=r,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 n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};bu.prototype.scanUntil=function(t){var e=this.tail.search(t),n;switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n};function io(r,t){this.view=r,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,n;if(e.hasOwnProperty(t))n=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=yE(s,a[o])||VU(s,a[o])),s=s[a[o++]];else s=i.view[t],l=yE(i.view,t);if(l){n=s;break}i=i.parent}e[t]=n}return Gy(n)&&(n=n.call(this.view)),n};function ln(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}ln.prototype.clearCache=function(){typeof this.templateCache!="undefined"&&this.templateCache.clear()};ln.prototype.parse=function(t,e){var n=this.templateCache,i=t+":"+(e||lr.tags).join(":"),s=typeof n!="undefined",a=s?n.get(i):void 0;return a==null&&(a=iY(t,e),s&&n.set(i,a)),a};ln.prototype.render=function(t,e,n,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,n,t,i)};ln.prototype.renderTokens=function(t,e,n,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,n,i,s):l==="^"?u=this.renderInverted(o,e,n,i,s):l===">"?u=this.renderPartial(o,e,n,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};ln.prototype.renderSection=function(t,e,n,i,s){var a=this,o="",l=e.lookup(t[1]);function u(f){return a.render(f,e,n,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]),n,i,s);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],e.push(l),n,i,s);else if(Gy(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,n,i,s);return o}};ln.prototype.renderInverted=function(t,e,n,i,s){var a=e.lookup(t[1]);if(!a||so(a)&&a.length===0)return this.renderTokens(t[4],e,n,i,s)};ln.prototype.indentPartial=function(t,e,n){for(var i=e.replace(/[^ \t]/g,""),s=t.split(`
`),a=0;a<s.length;a++)s[a].length&&(a>0||!n)&&(s[a]=i+s[a]);return s.join(`
`)};ln.prototype.renderPartial=function(t,e,n,i){if(!!n){var s=this.getConfigTags(i),a=Gy(n)?n(t[1]):n[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,n,c,i)}}};ln.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(n!=null)return n};ln.prototype.escapedValue=function(t,e,n){var i=this.getConfigEscape(n)||lr.escape,s=e.lookup(t[1]);if(s!=null)return typeof s=="number"&&i===lr.escape?String(s):i(s)};ln.prototype.rawValue=function(t){return t[1]};ln.prototype.getConfigTags=function(t){return so(t)?t:t&&typeof t=="object"?t.tags:void 0};ln.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!so(t))return t.escape};var lr={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(r){yu.templateCache=r},get templateCache(){return yu.templateCache}},yu=new ln;lr.clearCache=function(){return yu.clearCache()};lr.parse=function(t,e){return yu.parse(t,e)};lr.render=function(t,e,n,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+BU(t)+'" was given as the first argument for mustache#render(template, view, partials)');return yu.render(t,e,n,i)};lr.escape=JU;lr.Scanner=bu;lr.Context=io;lr.Writer=ln;var By=lr;var kE=qo(wE());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 n=new Xr(t);return n._queryComponent=e,n}static fromError(t,e){let n=new Xr(t);return n._error=e,n}};var Tu=class extends Xr{};function vu(r,t){try{let e=r.map(([s])=>s),n=t.includes("return")?t:`return ${t}`,i=t&&new Function(...e,n);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 _u(r,t){let e=t.map(([n,i])=>i);return r(...e)}function zy(r,t,e){try{return _u(r,t)}catch(n){return Xs(`Failed calculating expression "${e}"`,n)}}function Ky(r,t){By.escape=function(e){return e};try{let e=lY(r,t);return By.render(e,(0,kE.default)(t))}catch(e){let n="";throw e instanceof Error?n=`There was an error expanding one or more placeholders.

The error message was:
    ${e.message.replace(/ > /g,".").replace("Missing Mustache data property","Unknown property")}`:n="Unknown error expanding placeholders.",n+=`

The problem is in:
    ${r}`,Error(n)}}var oY=new RegExp(["\\{\\{","(.*?)","\\}\\}"].join(""),"g");function lY(r,t){return r.replace(oY,(e,n)=>{let i=uY(t),s=vu(i,n);if(s.isValid()){let a=_u(s.queryComponent,i);if(a===null)throw Error(`Invalid placeholder result 'null'.
    Check for missing file property in this expression:
        {{${n}}}`);if(a!==void 0)return a}return e})}function uY(r){return Object.entries(r)}Vt();function Qy(r){return Zy(r,[])}function Zy(r,t){return{query:{file:r,allTasks:t,searchCache:{}},preset:F({},re().presets)}}cy();Vt();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(n=>n!=="").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 n=[];if(t.limit!==void 0){let i=e(t.limit)+`.
`;n.push(this.indent(i))}if(t.taskGroupLimit!==void 0){let i=e(t.taskGroupLimit)+` per group (if any "group by" options are supplied).
`;n.push(this.indent(i))}return n.join(`
`)}explainDebugSettings(){let t="",{debugSettings:e}=re();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}};pn();var He=class{constructor(t,e=[],n=""){this.description=t,this.symbol=n,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 He("None of",t,"NOT")}static booleanXor(t){return new He("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 n=t+"  ";for(let i=0;i<this.children.length;i++)e+=`
${this.children[i].asString(n)}`;return e}static combineOrCreateExplanation(t,e,n){if(e.length===2){let i=e[0],s=e[1];if(i.symbol===n&&s.symbol==="")return i.children.push(s),i}return new He(t,e,n)}};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,n){return e.toLocaleLowerCase().includes(n.toLocaleLowerCase())}explanation(e){return new He(e)}};var Xi=class extends oo{constructor(e){super();this.regex=e}static validateAndConstruct(e){let n=/^\/(.+)\/([^/]*)$/,i=e.match(n);if(i!==null){let s=new RegExp(i[1],i[2]);return new Xi(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:
    /pattern/flags

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=cY(e,"using regex: ",this.regexAsString());return new He(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 cY(r,t,e){var o;let n=r.match(/\//);if(!n)return"Error explaining instruction. Could not find a slash character";let i=2,s=((o=n.index)!=null?o:i)-i;return`${t.padEnd(s)}${e}`}var un=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 n=this._rawInstruction.trim(),i=n.split(`
`).join(`
`+t),s=`${t}${i}`;return this._rawInstruction.includes(`
`)&&(s+=`
`+t),e(n,this._anyContinuationLinesRemoved),e(this._anyContinuationLinesRemoved,this._anyPlaceholdersExpanded),s}allLinesIdentical(){return this._rawInstruction===this._anyContinuationLinesRemoved&&this._rawInstruction===this._anyPlaceholdersExpanded}};var Mr=class{constructor(t,e,n,i){this._statement=new un(t,t),this.property=e,this.comparator=Mr.maybeReverse(i,n)}setStatement(t){this._statement=t}get statement(){return this._statement}get instruction(){return this._statement.anyPlaceholdersExpanded}static maybeReverse(t,e){return t?Mr.makeReversedComparator(e):e}static makeReversedComparator(t){return(e,n,i)=>t(e,n,i)*-1}};iu();var Ji=class{constructor(t,e,n,i){this._statement=new un(t,t),this.property=e,this.grouper=n,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 Gi(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 n=!!e[1];return this.createSorter(n)}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 Mr(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 n=!!e[1];return this.createGrouper(n)}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 Ji(this.grouperInstruction(t),this.fieldNameSingular(),this.grouper(),t)}createNormalGrouper(){return this.createGrouper(!1)}createReverseGrouper(){return this.createGrouper(!0)}};var Kt=class{constructor(t,e,n){this._statement=new un(t,t),this.explanation=n,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 He(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 Xe=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 n=e[1].toLowerCase(),i=e[2],s=null;if(n.includes("include"))s=new lo(i);else if(n.includes("regex")){try{s=Xi.validateAndConstruct(i)}catch(l){let u=Xs("Parsing regular expression",l)+`

${Xi.helpMessage()}`;return ke.fromError(t,u)}if(s===null)return ke.fromError(t,`Invalid instruction: '${t}'

${Xi.helpMessage()}`)}if(s===null)return ke.fromError(t,`do not understand query filter (${this.fieldName()})`);let a=n.match(/not/)!==null,o=new Kt(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 n=>{let i=t.matches(this.value(n));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 Js=class extends Xe{fieldName(){return"description"}value(t){return Ne.getInstance().removeAsSubstringFrom(t.description)}supportsSorting(){return!0}comparator(){return(t,e)=>{let n=Js.cleanDescription(t.description),i=Js.cleanDescription(e.description);return n.localeCompare(i,void 0,{numeric:!0})}}static cleanDescription(t){t=Ne.getInstance().removeAsSubstringFrom(t);let e=/^\[\[?([^\]]*)]]?/,n=t.match(e);if(n!==null){let i=n[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 n=t.match(e);return n!==null&&(t=n[1]+t.replace(e,"")),t}};Ig();Fg();Cs();var Ed=class{findUnexpandedDateText(t){let e=["<%","YYYY-MM-DD"];for(let n of e)if(t.includes(n))return this.unexpandedDateTextMessage(n);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 xd=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 Kt(t,this._filter,new He(t))):ke.fromError(t,`do not understand filter: ${t}`)}};var bn=class{constructor(){this._filters=[]}add(t,e){this._filters.push(new xd(t,e))}canCreateFilterForLine(t){return this._filters.some(e=>e.canCreateFilterForLine(t))}createFilterOrErrorMessage(t){for(let e of this._filters){let n=e.createFilterOrErrorMessage(t);if(n.isValid())return n}return ke.fromError(t,`do not understand filter: ${t}`)}};var Et=class extends We{constructor(e=null){super();e!==null?this.filterInstructions=e:(this.filterInstructions=new bn,this.filterInstructions.add(`has ${this.fieldName()} date`,n=>this.date(n)!==null),this.filterInstructions.add(`no ${this.fieldName()} date`,n=>this.date(n)===null),this.filterInstructions.add(`${this.fieldName()} date is invalid`,n=>{let i=this.date(n);return i!==null&&!i.isValid()}))}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){var f;let n=this.checkForUnexpandedTemplateText(e);if(n)return ke.fromError(e,n);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 nn(p,p))}if(!u.isValid())return ke.fromError(e,"do not understand "+this.fieldName()+" date");let c=this.buildFilterFunction(o,u),d=Et.buildExplanation(this.fieldNameForExplanation(),o,this.filterResultIfFieldMissing(),u);return ke.fromFilter(new Kt(e,c,d))}buildFilterFunction(e,n){let i;switch(e){case"before":i=s=>s?s.isBefore(n.start):this.filterResultIfFieldMissing();break;case"after":i=s=>s?s.isAfter(n.end):this.filterResultIfFieldMissing();break;case"on or before":case"in or before":i=s=>s?s.isSameOrBefore(n.end):this.filterResultIfFieldMissing();break;case"on or after":case"in or after":i=s=>s?s.isSameOrAfter(n.start):this.filterResultIfFieldMissing();break;default:i=s=>s?s.isSameOrAfter(n.start)&&s.isSameOrBefore(n.end):this.filterResultIfFieldMissing()}return this.getFilter(i)}getFilter(e){return n=>e(this.date(n))}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,n,i,s){let a=n,o="YYYY-MM-DD (dddd Do MMMM YYYY)",l;switch(n){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 He(`${s.start.format(o)} and`),new He(`${s.end.format(o)} inclusive`)];return i&&d.push(new He(`OR no ${e} date`)),new He(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 He(u)}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(e,n)=>Qn(this.date(e),this.date(n))}supportsGrouping(){return!0}grouper(){return e=>{let n=this.date(e);return n===null?["No "+this.fieldName()+" date"]:n.isValid()?[n.format("YYYY-MM-DD dddd")]:["%%0%% Invalid "+this.fieldName()+" date"]}}checkForUnexpandedTemplateText(e){return new Ed().findUnexpandedDateText(e)}};var Od=class extends Et{fieldName(){return"created"}date(t){return t.createdDate}filterResultIfFieldMissing(){return!1}};var Rd=class extends Et{fieldName(){return"done"}date(t){return t.doneDate}filterResultIfFieldMissing(){return!1}};var uo=class extends Et{fieldName(){return"due"}date(t){return t.dueDate}filterResultIfFieldMissing(){return!1}};var ur=class extends We{constructor(){super(...arguments);this._filters=new bn}canCreateFilterForLine(e){return this._filters.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){return this._filters.createFilterOrErrorMessage(e)}filterRegExp(){return null}};var Cd=class extends ur{constructor(){super(),this._filters.add("exclude sub-items",t=>{if(t.indentation==="")return!0;let e=t.indentation.lastIndexOf(">");return e===-1?!1:/^ ?$/.test(t.indentation.slice(e+1))})}fieldName(){return"exclude"}};function Md(r,t){return[["task",r],["query",t?t.query:null]]}function SE(r,t,e){let n=Md(r,e||null),i=vu(n,t);return i.error?i.error:zy(i.queryComponent,n,t)}var wu=class{constructor(t){this.line=t,this.functionOrError=vu(Md(null,null),t)}isValid(){return this.functionOrError.isValid()}get parseError(){return this.functionOrError.error}evaluate(t,e){if(!this.isValid())throw Error(`Error: Cannot evaluate an expression which is not valid: "${this.line}" gave error: "${this.parseError}"`);return _u(this.functionOrError.queryComponent,Md(t,e||null))}evaluateOrCatch(t,e){return this.isValid()?zy(this.functionOrError.queryComponent,Md(t,e),this.line):`Error: Cannot evaluate an expression which is not valid: "${this.line}" gave error: "${this.parseError}"`}};Cs();function Xy(r){if(r===null)return"null";let t=typeof r;return t==="object"?r.constructor.name:t}var Ad=class extends We{createFilterOrErrorMessage(t){let e=We.getMatch(this.filterRegExp(),t);if(e===null)return ke.fromError(t,"Unable to parse line");let n=e[1],i=new wu(n);return i.isValid()?ke.fromFilter(new Kt(t,dY(i),new He(t))):ke.fromError(t,i.parseError)}fieldName(){return"function"}filterRegExp(){return new RegExp(`^filter by ${this.fieldNameSingularEscaped()} (.*)`,"i")}supportsSorting(){return!0}sorterRegExp(){return new RegExp(`^sort by ${this.fieldNameSingularEscaped()}( reverse)? (.*)`,"i")}createSorterFromLine(t){let e=We.getMatch(this.sorterRegExp(),t);if(e===null)return null;let n=!!e[1],i=e[2],s=new wu(i);if(!s.isValid())throw new Error(s.parseError);let a=(o,l,u)=>{try{let c=u.queryContext(),d=this.validateTaskSortKey(s.evaluate(o,c)),f=this.validateTaskSortKey(s.evaluate(l,c));return this.compareTaskSortKeys(d,f)}catch(c){throw c instanceof Error&&(c.message+=`: while evaluating instruction '${t}'`),c}};return new Mr(t,this.fieldNameSingular(),a,n)}validateTaskSortKey(t){function e(n){throw new Error(`"${n}" is not a valid sort key`)}return t===void 0&&e("undefined"),Number.isNaN(t)&&e("NaN (Not a Number)"),Array.isArray(t)&&e("array"),t}compareTaskSortKeys(t,e){let n=Xy(t),i=Xy(e),s=this.compareTaskSortKeysIfOptionalMoment(t,e,n,i);if(s!==void 0)return s;let a=this.compareTaskSortKeysIfEitherIsNull(t,e);if(a!==void 0)return a;if(n!==i)throw new Error(`Unable to compare two different sort key types '${n}' and '${i}' order`);if(n==="string")return t.localeCompare(e,void 0,{numeric:!0});if(n==="TasksDate")return Qn(t.moment,e.moment);if(n==="boolean")return Number(e)-Number(t);let o=Number(t)-Number(e);if(isNaN(o))throw new Error(`Unable to determine sort order for sort key types '${n}' and '${i}'`);return o}compareTaskSortKeysIfOptionalMoment(t,e,n,i){let s=n==="Moment",a=i==="Moment";if(s&&a||s&&e===null||a&&t===null)return Qn(t,e)}compareTaskSortKeysIfEitherIsNull(t,e){if(t===null&&e===null)return 0;if(t===null&&e!==null)return-1;if(t!==null&&e===null)return 1}supportsGrouping(){return!0}createGrouperFromLine(t){let e=We.getMatch(this.grouperRegExp(),t);if(e===null)return null;let n=!!e[1],i=e[2];return new Ji(t,"function",pY(i),n)}grouperRegExp(){return new RegExp(`^group by ${this.fieldNameSingularEscaped()}( reverse)? (.*)`,"i")}grouper(){throw Error("grouper() function not valid for FunctionField. Use createGrouperFromLine() instead.")}};function dY(r){return(t,e)=>{let n=e.queryContext();return fY(r,t,n)}}function fY(r,t,e){let n=r.evaluate(t,e);if(typeof n=="boolean")return n;throw Error(`filtering function must return true or false. This returned "${n}".`)}function pY(r){return(t,e)=>{let n=e.queryContext();return mY(t,r,n)}}function mY(r,t,e){try{let n=SE(r,t,e);return Array.isArray(n)?n.map(s=>s.toString()):n===null?[]:typeof n=="number"&&!Number.isInteger(n)?[n.toFixed(5)]:[n.toString()]}catch(n){let i=`Error: Failed calculating expression "${t}". The error message was: `;return n instanceof Error?[i+n.message]:[i+"Unknown error"]}}var Pd=class extends Xe{fieldName(){return"heading"}value(t){return t.precedingHeader?t.precedingHeader:""}supportsSorting(){return!0}supportsGrouping(){return!0}grouper(){return t=>t.precedingHeader===null||t.precedingHeader.length===0?["(No heading)"]:[t.precedingHeader]}};var co=class extends Xe{fieldName(){return"path"}value(t){return t.path}supportsSorting(){return!0}supportsGrouping(){return!0}grouper(){return t=>[Xe.escapeMarkdownCharacters(t.path.replace(".md",""))]}};ja();var Jy=class extends We{createFilterOrErrorMessage(t){var n;let e=We.getMatch(this.filterRegExp(),t);if(e!==null){let i=e[5],s=null;switch(i.toLowerCase()){case"lowest":s="5";break;case"low":s="4";break;case"none":s="3";break;case"medium":s="2";break;case"high":s="1";break;case"highest":s="0";break}if(s===null)return ke.fromError(t,"do not understand priority");let a=t,o;switch((n=e[3])==null?void 0:n.toLowerCase()){case"above":o=l=>l.priority.localeCompare(s)<0;break;case"below":o=l=>l.priority.localeCompare(s)>0;break;case"not":o=l=>l.priority!==s;break;default:o=l=>l.priority===s,a=`${this.fieldName()} is ${i}`}return ke.fromFilter(new Kt(t,o,new He(a)))}else return ke.fromError(t,"do not understand query filter (priority)")}fieldName(){return"priority"}filterRegExp(){return Jy.priorityRegexp}supportsSorting(){return!0}comparator(){return(t,e)=>t.priority.localeCompare(e.priority)}supportsGrouping(){return!0}grouper(){return t=>[t.priorityNameGroupText]}},ea=Jy;ea.priorityRegexp=/^priority(\s+is)?(\s+(above|below|not))?(\s+(lowest|low|none|medium|high|highest))$/i;var Nd=class extends Et{fieldName(){return"scheduled"}date(t){return t.scheduledDate}filterResultIfFieldMissing(){return!1}};var Id=class extends Et{fieldName(){return"start"}fieldNameForFilterInstruction(){return"starts"}date(t){return t.startDate}filterResultIfFieldMissing(){return!0}};var Fd=class extends Et{constructor(){let t=new bn;t.add("has happens date",e=>this.dates(e).some(n=>n!==null)),t.add("no happens date",e=>!this.dates(e).some(n=>n!==null)),super(t)}fieldName(){return"happens"}fieldNameForExplanation(){return"due, start or scheduled"}date(t){return this.earliestDate(t)}dates(t){return t.happensDates}earliestDate(t){return t.happens.moment}filterResultIfFieldMissing(){return!1}getFilter(t){return e=>this.dates(e).some(n=>t(n))}};var Ld=class extends ur{constructor(){super(),this._filters.add("is recurring",t=>t.recurrence!==null),this._filters.add("is not recurring",t=>t.recurrence===null)}fieldName(){return"recurring"}supportsSorting(){return!0}comparator(){return(t,e)=>t.recurrence!==null&&e.recurrence===null?-1:t.recurrence===null&&e.recurrence!==null?1:0}supportsGrouping(){return!0}grouper(){return t=>t.recurrence!==null?["Recurring"]:["Not Recurring"]}};var es=class extends ur{constructor(){super(),this._filters.add("done",t=>t.isDone),this._filters.add("not done",t=>!t.isDone)}fieldName(){return"status"}supportsSorting(){return!0}comparator(){return(t,e)=>{let n=es.oldStatusName(t),i=es.oldStatusName(e);return n<i?1:n>i?-1:0}}static oldStatusName(t){return t.isDone?"Done":"Todo"}supportsGrouping(){return!0}grouper(){return t=>[es.oldStatusName(t)]}};var Ud=class extends Xe{fieldNamePlural(){return this.fieldNameSingular()+"s"}fieldName(){return`${this.fieldNameSingular()}/${this.fieldNamePlural()}`}fieldPattern(){return`${this.fieldNameSingular()}|${this.fieldNamePlural()}`}filterOperatorPattern(){return`${super.filterOperatorPattern()}|include|do not include`}value(t){return this.values(t).join(", ")}getFilter(t,e){return n=>{let i=t.matchesAnyOf(this.values(n));return e?!i:i}}createGrouper(t){return new Ji(this.grouperInstruction(t),this.fieldNamePlural(),this.grouper(),t)}grouperRegExp(){if(!this.supportsGrouping())throw Error(`grouperRegExp() unimplemented for ${this.fieldNameSingular()}`);return new RegExp(`^group by ${this.fieldNamePlural()}( reverse)?$`,"i")}grouperInstruction(t){let e=`group by ${this.fieldNamePlural()}`;return t&&(e+=" reverse"),e}};var ta=class extends Ud{constructor(){super();this.filterInstructions=new bn,this.filterInstructions.add(`has ${this.fieldNameSingular()}`,e=>this.values(e).length>0),this.filterInstructions.add(`has ${this.fieldNamePlural()}`,e=>this.values(e).length>0),this.filterInstructions.add(`no ${this.fieldNameSingular()}`,e=>this.values(e).length===0),this.filterInstructions.add(`no ${this.fieldNamePlural()}`,e=>this.values(e).length===0)}createFilterOrErrorMessage(e){let n=this.filterInstructions.createFilterOrErrorMessage(e);return n.isValid()?n:super.createFilterOrErrorMessage(e)}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}fieldNameSingular(){return"tag"}values(e){return e.tags}supportsSorting(){return!0}createSorterFromLine(e){let n=e.match(this.sorterRegExp());if(n===null)return null;let i=!!n[1],s=isNaN(+n[2])?1:+n[2],a=ta.makeCompareByTagComparator(s);return new Mr(e,this.fieldNameSingular(),a,i)}sorterRegExp(){return/^sort by tag( reverse)?[\s]*(\d+)?/i}comparator(){return ta.makeCompareByTagComparator(1)}static makeCompareByTagComparator(e){return(n,i)=>{if(n.tags.length===0&&i.tags.length===0)return 0;if(n.tags.length===0)return 1;if(i.tags.length===0)return-1;let s=e-1;if(n.tags.length<e&&i.tags.length>=e)return 1;if(i.tags.length<e&&n.tags.length>=e)return-1;if(n.tags.length<e&&i.tags.length<e)return 0;let a=n.tags[s],o=i.tags[s];return a.localeCompare(o,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return e=>e.tags.length==0?["(No tags)"]:e.tags}};var UE=qo(LE());iu();function ts(r){return new RegExp("["+Gi(r)+"]").source}var ub=[["(",")"],["[","]"],["{","}"],['"','"']],xi=class{constructor(t,e,n){this.openFilterChars=t,this.closeFilterChars=e,this.openAndCloseFilterChars=n,this.openFilter=ts(this.openFilterChars),this.closeFilter=ts(this.closeFilterChars)}static allSupportedDelimiters(){let t="",e="",n="";for(let[i,s]of ub)t+=i,e+=s,n+=xi.openAndClosing(i,s);return new xi(t,e,n)}static fromInstructionLine(t){let e=t.trim(),i=/^[A-Z ]*\s*(.*)/.exec(e);if(i){let a=i[1],o=a[0],l=a.slice(-1);for(let[u,c]of ub)if(o===u&&l===c){let d=this.openAndClosing(u,c);return new xi(u,c,d)}}let s="All filters in a Boolean instruction must be inside one of these pairs of delimiter characters: "+ub.map(([a,o])=>a+"..."+o).join(" or ")+". Combinations of those delimiters are no longer supported.";throw new Error(s)}static openAndClosing(t,e){let n=t;return e!=t&&(n+=e),n}};var ns=class{static preprocessExpression(t,e){let n=ns.splitLine(t,e);return ns.getFiltersAndSimplifiedLine(n,e)}static splitLine(t,e){let n=new RegExp("("+e.closeFilter+"\\s*(?:AND|OR|AND +NOT|OR +NOT|XOR)\\s*"+e.openFilter+")"),i=t.split(n),s=new RegExp("(NOT\\s*"+e.openFilter+")"),a=i.flatMap(u=>u.split(s)).filter(u=>u!==""),o=new RegExp("(^"+ts(e.openFilterChars+" ")+"*)"),l=new RegExp("("+ts(e.closeFilterChars+" ")+"*$)");return a.flatMap(u=>u.split(o)).flatMap(u=>u.split(l)).filter(u=>u!=="")}static getFiltersAndSimplifiedLine(t,e){let n="",i=1,s={};t.forEach(u=>{if(!ns.isAFilter(u,e))n+=`${u}`;else{let c=`f${i}`;s[c]=u,n+=c,i++}});let a=new RegExp(`(${e.closeFilter})([A-Z])`,"g");n=n.replace(a,"$1 $2");let o=new RegExp(`([A-Z])(${e.openFilter})`,"g");n=n.replace(o,"$1 $2");let l=e.openFilterChars;if(l!='"'&&l!="("){let u=new RegExp(ts(l),"g");n=n.replace(u,"(");let c=e.closeFilterChars,d=new RegExp(ts(c),"g");n=n.replace(d,")")}return{simplifiedLine:n,filters:s}}static isAFilter(t,e){let n=new RegExp("^"+ts(" "+e.openAndCloseFilterChars)+"+$"),i=new RegExp("^ *"+e.closeFilter+" *(AND|OR|XOR) *"+e.openFilter+" *$"),s=new RegExp("^(AND|OR|XOR|NOT) *"+e.openFilter+"$"),a=new RegExp("^"+e.closeFilter+" *(AND|OR|XOR)$");return![n,i,s,a,/^(AND|OR|XOR|NOT)$/].some(l=>RegExp(l).exec(t))}};var qd=class extends We{constructor(){super();this.supportedOperators=["AND","OR","XOR","NOT"];this.subFields={};let e=xi.allSupportedDelimiters();this.basicBooleanRegexp=new RegExp("(.*(AND|OR|XOR|NOT)\\s*"+e.openFilter+".*|"+e.openFilter+".+"+e.closeFilter+")","g")}filterRegExp(){return this.basicBooleanRegexp}createFilterOrErrorMessage(e){return this.parseLine(e)}fieldName(){return"boolean query"}parseLine(e){if(e.length===0)return ke.fromError(e,"empty line");let n;try{n=xi.fromInstructionLine(e)}catch(o){let l=o instanceof Error?o.message:"unknown error type";return ke.fromError(e,this.helpMessageFromSimpleError(e,l))}let i=ns.preprocessExpression(e,n),s=i.simplifiedLine,a=i.filters;try{let o=(0,UE.parse)(s);for(let c of o)if(c.name==="IDENTIFIER"&&c.value){let d=c.value.trim(),f=a[d];if(c.value=f,!(f in this.subFields)){let p=Su(f);if(p===null)return this.helpMessage(e,`couldn't parse sub-expression '${f}'`,i);if(p.error)return this.helpMessage(e,`couldn't parse sub-expression '${f}': ${p.error}`,i);p.filter&&(this.subFields[f]=p.filter)}}else if(c.name==="OPERATOR"){if(c.value==null)return this.helpMessage(e,"empty operator in boolean query",i);if(!this.supportedOperators.includes(c.value))return this.helpMessage(e,`unknown boolean operator '${c.value}'`,i)}let l=(c,d)=>this.filterTaskWithParsedQuery(c,o,d),u=this.constructExplanation(o);return ke.fromFilter(new Kt(e,l,u))}catch(o){let l=o instanceof Error?o.message:"unknown error type";return this.helpMessage(e,`malformed boolean query -- ${l} (check the documentation for guidelines)`,i)}}filterTaskWithParsedQuery(e,n,i){let s=l=>l==="true",a=l=>l?"true":"false",o=[];for(let l of n)if(l.name==="IDENTIFIER"){if(l.value==null)throw Error("null token value");let c=this.subFields[l.value.trim()].filterFunction(e,i);o.push(a(c))}else if(l.name==="OPERATOR")if(l.value==="NOT"){let u=s(o.pop());o.push(a(!u))}else if(l.value==="OR"){let u=s(o.pop()),c=s(o.pop());o.push(a(u||c))}else if(l.value==="AND"){let u=s(o.pop()),c=s(o.pop());o.push(a(u&&c))}else if(l.value==="XOR"){let u=s(o.pop()),c=s(o.pop());o.push(a(u&&!c||!u&&c))}else throw Error("Unsupported operator: "+l.value);else throw Error("Unsupported token type: "+l);return s(o[0])}constructExplanation(e){let n=[];for(let i of e)if(i.name==="IDENTIFIER")this.explainExpression(i,n);else if(i.name==="OPERATOR")this.explainOperator(i,n);else throw Error("Unsupported token type: "+i.name);return n[0]}explainExpression(e,n){if(e.value==null)throw Error("null token value");let i=this.subFields[e.value.trim()],s=this.simulateExplainFilter(i);n.push(s)}simulateExplainFilter(e){return e.simulateExplainFilter()}explainOperator(e,n){if(e.value==="NOT"){let i=n.pop();n.push(He.booleanNot([i]))}else if(e.value==="OR"){let i=n.pop(),s=n.pop();n.push(He.booleanOr([s,i]))}else if(e.value==="AND"){let i=n.pop(),s=n.pop();n.push(He.booleanAnd([s,i]))}else if(e.value==="XOR"){let i=n.pop(),s=n.pop();n.push(He.booleanXor([s,i]))}else throw Error("Unsupported operator: "+e.value)}helpMessage(e,n,i){let s=i.filters,a=this.stringifySubExpressionsForErrorMessage(s),l=`${this.helpMessageFromSimpleError(e,n)}

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(([n,i])=>`    '${n}': '${i}'
        => ${this.stringifySubExpressionStatus(i)}`).join(`
`)}stringifySubExpressionStatus(e){let n=Su(e);return n?n.error?`ERROR:
           ${n.error.split(`
`).map(s=>s.trim()).join(`
           `)}`:"OK":`ERROR:
           do not understand query`}helpMessageFromSimpleError(e,n){return`Could not interpret the following instruction as a Boolean combination:
    ${e}

The error message is:
    ${n}`}};var Hd=class extends Xe{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 Gd=class extends Xe{constructor(){super()}fieldName(){return"status.name"}value(t){return t.status.name}supportsSorting(){return!0}supportsGrouping(){return!0}};Cn();var ni=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 n=e[1].toLowerCase(),i=e[2],s=Bt[i.toUpperCase()];if(!s)return this.helpMessage(t);let a;switch(n){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 Kt(t,a,new He(t)))}filterRegExp(){return new RegExp(`^(?:${this.fieldNameSingularEscaped()}) (is|is not) ([^ ]+)$`,"i")}helpMessage(t){let e=Object.values(Bt).filter(i=>i!=="EMPTY").join(" "),n=`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,n)}fieldName(){return"status.type"}value(t){return t.status.type}supportsSorting(){return!0}comparator(){return(t,e)=>{let n=ni.groupName(t),i=ni.groupName(e);return n.localeCompare(i,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return t=>[ni.groupName(t)]}static groupName(t){return t.status.typeGroupText}};var Bd=class extends Xe{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 Vd=class extends Xe{fieldName(){return"folder"}value(t){return t.file.folder}supportsGrouping(){return!0}grouper(){return t=>[Xe.escapeMarkdownCharacters(this.value(t))]}};var zd=class extends Xe{fieldName(){return"root"}value(t){return t.file.root}supportsGrouping(){return!0}grouper(){return t=>[Xe.escapeMarkdownCharacters(this.value(t))]}};var Kd=class extends Xe{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 n=t.precedingHeader;return n===null?["[["+e+"]]"]:[`[[${e}#${n}|${e} > ${n}]]`]}}};var Qd=class extends Et{fieldName(){return"cancelled"}date(t){return t.cancelledDate}filterResultIfFieldMissing(){return!1}};var Zd=class extends ur{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 Xe{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 n=this.filterInstructions.createFilterOrErrorMessage(e);return n.isValid()?n:super.createFilterOrErrorMessage(e)}fieldName(){return"id"}value(e){return e.id}supportsSorting(){return!0}supportsGrouping(){return!0}};var Jd=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 n=this.filterInstructions.createFilterOrErrorMessage(e);return n.isValid()?n:ke.fromError(e,"Unknown instruction")}fieldName(){return"blocked by"}filterRegExp(){return null}};var ef=class extends ur{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},n=window.moment().format("Y-MM-DD");return e(n+" "+t.description)}};var cb=[()=>new Gd,()=>new ni,()=>new es,()=>new Ld,()=>new ea,()=>new Fd,()=>new Qd,()=>new Od,()=>new Id,()=>new Nd,()=>new uo,()=>new Rd,()=>new co,()=>new Vd,()=>new zd,()=>new Kd,()=>new Js,()=>new ta,()=>new Pd,()=>new Cd,()=>new Hd,()=>new To,()=>new Bd,()=>new Ad,()=>new Xd,()=>new Jd,()=>new Zd,()=>new ef,()=>new qd];function Su(r){for(let t of cb){let e=t();if(e.canCreateFilterForLine(r))return e.createFilterOrErrorMessage(r)}return null}function YE(r){let t=/^sort by /i;if(r.match(t)===null)return null;for(let e of cb){let i=e().createSorterFromLine(r);if(i)return i}return null}function jE(r){let t=/^group by /i;if(r.match(t)===null)return null;for(let e of cb){let i=e().createGrouperFromLine(r);if(i)return i}return null}var tf=class{constructor(t,e,n){this.nestingLevel=t,this.displayName=e,this.property=n}};var nf=class{constructor(t,e){this.lastHeadingAtLevel=new Array;this.groupers=e;let i=t.keys().next().value.length;for(let s=0;s<i;s++)this.lastHeadingAtLevel.push("")}getHeadingsForTaskGroup(t){let e=new Array;for(let n=0;n<t.length;n++){let i=t[n];if(i!=this.lastHeadingAtLevel[n]){e.push(new tf(n,i,this.groupers[n].property));for(let s=n;s<t.length;s++)this.lastHeadingAtLevel[s]="";this.lastHeadingAtLevel[n]=i}}return e}};var rf=class{constructor(t){this.children=new Map;this.values=[];this.values=t}generateAllPaths(t=[]){let e=new Map;if(this.children.size==0)return e.set([...t],this.values),e;for(let[n,i]of this.children)t.push(n),i.generateAllPaths(t).forEach((a,o)=>e.set(o,a)),t.pop();return e}};var sf=class extends rf{},af=class{constructor(t,e,n){this.root=new sf(e),this.buildGroupingTree(t,n)}buildGroupingTree(t,e){let n=[this.root];for(let i of t){let s=[];for(let a of n)for(let o of a.values){let l=i.grouper(o,e);l.length===0&&l.push("");for(let u of l){let c=a.children.get(u);c===void 0&&(c=new sf([]),a.children.set(u,c),s.push(c)),c.values.push(o)}}n=s}}generateTaskTreeStorage(){return this.root.generateAllPaths()}};var of=class{constructor(t,e){this.groups=t,this.groupHeadings=[],this.tasks=e}setGroupHeadings(t){for(let e of t)this.groupHeadings.push(e)}applyTaskLimit(t){this.tasks=this.tasks.slice(0,t)}tasksAsStringOfLines(){let t="";for(let e of this.tasks)t+=e.toFileLineString()+`
`;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 vo=class{constructor(t,e,n){this._groups=new Array;this._totalTaskCount=0;this._totalTaskCount=e.length,this._groupers=t;let s=new af(t,e,n).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 n of this._groupers){let i=n.reverse?" reverse":"";t+=`- ${n.property}${i}
`}for(let n of this.groups)t+=n.toString(),t+=`
---
`;return t+=`
${this.totalTasksCount()} tasks
`,t}addTaskGroups(t){for(let[e,n]of t){let i=new of(e,n);this.addTaskGroup(i)}}addTaskGroup(t){this._groups.push(t)}sortTaskGroups(){let t=(e,n)=>{let i=e.groups,s=n.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 nf(t,this._groupers);for(let n of this._groups)n.setGroupHeadings(e.getHeadingsForTaskGroup(n.groups))}applyTaskLimit(t){this._groupers.length!==0&&(this._groups.forEach(e=>{e.applyTaskLimit(t)}),this.recalculateTotalTaskCount())}recalculateTotalTaskCount(){let t=[];this._groups.forEach(n=>{t=[...t,...n.tasks]});let e=[...new Set(t)];this._totalTaskCount=e.length}};var rs=class{constructor(t,e){this.tasksFile=t,this.allTasks=[...e],this._queryContext=this.tasksFile?Zy(this.tasksFile,this.allTasks):void 0}static fromAllTasks(t){return new rs(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 $E(r){return`task${r!==1?"s":""}`}var ia=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} ${$E(t)}`:`${t} of ${e} ${$E(e)}`}get groups(){return this.taskGroups.groups}static fromError(t){let e=new ia(new vo([],[],rs.fromAllTasks([])),0);return e._searchErrorMessage=t,e}};function WE(r){return r.endsWith("\\")}function qE(r){return r.endsWith("\\\\")}function WY(r){return r.replace(/^[ \t]*/,"")}function qY(r){return r.replace(/[ \t]*\\$/,"")}function HY(r,t){let e=r;return t&&(e=WY(r)),qE(e)?e=e.slice(0,-1):WE(r)&&(e=qY(e)),e}function lf(r){let t=[],e=!1,n="",i="",s=r+`
`;for(let a of s.split(`
`)){let o=HY(a,e);e?(n+=`
`+a,i+=" "+o):(n=a,i=o),qE(a)?e=!1:e=WE(a),e||(i.trim()!==""&&t.push(new un(n,i)),n="",i="")}return t}function HE(r){return lf(r).map(t=>t.anyContinuationLinesRemoved)}var _o=class{static by(t,e,n){let i=this.defaultSorters().map(a=>a.comparator),s=[];for(let a of t)s.push(a.comparator);return e.sort(_o.makeCompositeComparator([...s,...i],n))}static defaultSorters(){return[new ni().createNormalSorter(),new To().createNormalSorter(),new uo().createNormalSorter(),new ea().createNormalSorter(),new co().createNormalSorter()]}static makeCompositeComparator(t,e){return(n,i)=>{for(let s of t){let a=s(n,i,e);if(a!==0)return a}return 0}}};var GE=0,Ln=class{constructor(t,e=void 0){this.statements=[];this._limit=void 0;this._taskGroupLimit=void 0;this._taskLayoutOptions=new Br;this._queryLayoutOptions=new Zi;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=sn.getLogger("tasks.Query");this.limitRegexp=/^limit (groups )?(to )?(\d+)( tasks?)?/i;this.commentRegexp=/^#.*/;this.presetRegexp=/^preset +(.*)/i;this._queryId=this.generateQueryId(10),this.source=t,this.tasksFile=e;let n=lf(t);for(let i of n){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.presetRegexp.test(e):this.parsePreset(e,t);break;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 n=t.anyContinuationLinesRemoved;if(n.includes("{{")&&n.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:
${n}`,[t];if(this.commentRegexp.test(n))return[t];let s=n;if(e){let a=Qy(e),o="";try{let u=0;for(;s!==o&&u<10;)o=s,s=Ky(o,a),u++;s!==n&&(s=lf(s).map(c=>c.anyContinuationLinesRemoved).join(`
`))}catch(l){return l instanceof Error?this._error=l.message:this._error="Internal error. expandPlaceholders() threw something other than Error.",[t]}}return this.createStatementsFromExpandedPlaceholders(s,t)}createStatementsFromExpandedPlaceholders(t,e){let n=t.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return n.length===1?(e.recordExpandedPlaceholders(n[0]),[e]):n.map((i,s)=>{let a=`: statement ${s+1} after expansion of placeholder`,o=new un(e.rawInstruction+a,e.anyContinuationLinesRemoved+a);return o.recordExpandedPlaceholders(i),o})}append(t){return this.source===""?t:t.source===""?this:new Ln(`${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=Ln.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 rs(this.tasksFile,t),n;try{this.filters.forEach(l=>{n=l.statement,t=t.filter(u=>l.filterFunction(u,e))}),n=void 0;let{debugSettings:i}=re(),s=i.ignoreSortInstructions?t:_o.by(this.sorting,t,e),a=s.slice(0,this.limit),o=new vo(this.grouping,a,e);return this._taskGroupLimit!==void 0&&o.applyTaskLimit(this._taskGroupLimit),new ia(o,s.length)}catch(i){let a=Xs("Search failed",i);return n&&(a=Ln.generateErrorMessage(n,a)),ia.fromError(a)}}parseHideOptions(t){let e=t.anyPlaceholdersExpanded,n=e.match(this.hideOptionsRegexp);if(n===null)return;let i=n[1].toLowerCase()==="hide",s=n[2].toLowerCase();if(gE(this._queryLayoutOptions,s,i)){this.saveLayoutStatement(t);return}if(PS(this._taskLayoutOptions,s,!i)){this.saveLayoutStatement(t);return}this.setError("do not understand hide/show option",new un(e,e))}saveLayoutStatement(t){this.layoutStatements.push(t)}parseFilter(t,e){var i;let n=Su(t);return n!=null?(n.filter?(n.filter.setStatement(e),this._filters.push(n.filter)):this.setError((i=n.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 un(t,t));return}let n=Number.parseInt(e[3],10);e[1]!==void 0?this._taskGroupLimit=n:this._limit=n}parseSortBy(t,e){let n=YE(t);return n?(n.setStatement(e),this._sorting.push(n),!0):!1}parseGroupBy(t,e){let n=jE(t);return n?(n.setStatement(e),this._grouping.push(n),!0):!1}parsePreset(t,e){let n=this.presetRegexp.exec(t);if(n){let i=n[1].trim(),{presets:s}=re(),a=s[i];if(!a){this.setError(VS(i,s),e);return}let o=HE(a);for(let l of o){let u=new un(e.rawInstruction,e.anyContinuationLinesRemoved);if(u.recordExpandedPlaceholders(l),l.includes("{{")&&l.includes("}}")&&this.tasksFile){let c=Qy(this.tasksFile),d=Ky(l,c);u.recordExpandedPlaceholders(d)}this.parseLine(u)}}}generateQueryId(t){return GE+=1,GE.toString().padStart(t,"0")}debug(t,e){this.logger.debugWithId(this._queryId,`"${this.filePath}": ${t}`,e)}warn(t,e){this.logger.warnWithId(this._queryId,`"${this.filePath}": ${t}`,e)}};var db=[{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?db.map(n=>this.generateInstruction(t,n)).filter(n=>n!=="").join(`
`):""}generateInstruction(t,e){let n=t.hasProperty(e.name),i=t.property(e.name);switch(e.handler){case"instruction":return n&&(i?e.trueValue:e.falseValue)||"";case"showAndHide":return n&&(i?"show "+e.display:"hide "+e.display)||"";case"addValue":return n&&i||"";default:throw new Error("Unknown handler type: "+e.handler+".")}}query(t){return new Ln(this.source(t),t)}allPropertyNames(){return db.map(t=>t.name)}allPropertyNamesSorted(){return this.allPropertyNames().sort((t,e)=>t.localeCompare(e))}propertyType(t){var e,n;return(n=(e=db.find(i=>i.name===t))==null?void 0:e.type)!=null?n:void 0}metaBindPluginWidgets(){return"\nshort mode: `INPUT[toggle:TQ_short_mode]`\ntree: `INPUT[toggle:TQ_show_tree]`\ntags: `INPUT[toggle:TQ_show_tags]`\nid: `INPUT[toggle:TQ_show_id]` depends on: `INPUT[toggle:TQ_show_depends_on]`\npriority: `INPUT[toggle:TQ_show_priority]`\nrecurrence rule: `INPUT[toggle:TQ_show_recurrence_rule]` on completion: `INPUT[toggle:TQ_show_on_completion]`\nstart date: `INPUT[toggle:TQ_show_start_date]` scheduled date: `INPUT[toggle:TQ_show_scheduled_date]` due date: `INPUT[toggle:TQ_show_due_date]`\ncreated date: `INPUT[toggle:TQ_show_created_date]` cancelled date: `INPUT[toggle:TQ_show_cancelled_date]` done date: `INPUT[toggle:TQ_show_done_date]`\nurgency: `INPUT[toggle:TQ_show_urgency]`\nbacklink: `INPUT[toggle:TQ_show_backlink]`\nedit button: `INPUT[toggle:TQ_show_edit_button]` postpone button: `INPUT[toggle:TQ_show_postpone_button]`\ntask count: `INPUT[toggle:TQ_show_task_count]`\nextra instructions: `INPUT[textArea:TQ_extra_instructions]`\nexplain: `INPUT[toggle:TQ_explain]`\n"}};function BE(r,t){return I(this,null,function*(){yield r.fileManager.processFrontMatter(t,e=>{let n=new Oi().allPropertyNamesSorted(),i=!1;n.forEach(s=>{s in e||(e[s]=null,i=!0)}),i?new fb.Notice("Properties updated successfully."):new fb.Notice("All supported properties are already present.")})})}var uf=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,n,i)=>mE(e,n,i,this.app,this.plugin.getTasks())}),t.addCommand({id:"toggle-done",name:"Toggle task done",icon:"check-in-circle",editorCheckCallback:hE}),t.addCommand({id:"add-query-file-defaults-properties",name:"Add all Query File Defaults properties",icon:"settings",checkCallback:e=>{let n=this.app.workspace.getActiveFile();return!n||n.extension!=="md"?!1:(e||this.ensureQueryFileDefaultsFrontmatter(n).catch(console.error),!0)}})}ensureQueryFileDefaultsFrontmatter(t){return I(this,null,function*(){let{app:e}=this;yield BE(e,t)})}};var is=class{constructor(t=is.empty){this._source=t}static getInstance(){return is.instance||(is.instance=new is),is.instance}set(t){this._source=t}query(t=void 0){let e=new Ln(this._source,t);return e.removeIllegalGlobalQueryInstructions(),e}hasInstructions(){return this._source.trim()!==is.empty}},fr=is;fr.empty="";Ws();var cf=class{constructor({obsidianEvents:t}){this.logger=sn.getLogger("tasks.Events");this.obsidianEvents=t}onCacheUpdate(t){this.logger.debug("TasksEvents.onCacheUpdate()");let e="obsidian-tasks-plugin:cache-update";return this.obsidianEvents.on(e,t)}triggerCacheUpdate(t){this.logger.debug("TasksEvents.triggerCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:cache-update",t)}onRequestCacheUpdate(t){this.logger.debug("TasksEvents.onRequestCacheUpdate()");let e="obsidian-tasks-plugin:request-cache-update";return this.obsidianEvents.on(e,t)}triggerRequestCacheUpdate(t){this.logger.debug("TasksEvents.triggerRequestCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:request-cache-update",t)}onReloadOpenSearchResults(t){this.logger.debug("TasksEvents.onReloadOpenSearchResults()");let e="obsidian-tasks-plugin:reload-open-search-results";return this.obsidianEvents.on(e,t)}triggerReloadOpenSearchResults(){this.logger.debug("TasksEvents.triggerReloadOpenSearchResults()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:reload-open-search-results")}off(t){this.logger.debug("TasksEvents.off()"),this.obsidianEvents.offref(t)}};var yx=require("obsidian");pn();Fs();Nt();var gx=require("obsidian");pn();Vt();Fs();Vr();Nt();si();Dr();Ga();var pb=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.newStatus.name}`}isCheckedForTask(t){return this.newStatus.symbol===t.status.symbol}};function VE(r){let t=[],e=new et().coreStatuses.map(n=>n.symbol);for(let n of[!0,!1])for(let i of r.registeredStatuses)e.includes(i.symbol)===n&&t.push(new pb(i));return t}var zE=require("obsidian");var mb="---",wo=class{apply(t){throw new Error("MenuDividerInstruction.apply(): Method not implemented.")}instructionDisplayName(){return mb}isCheckedForTask(t){return!1}};function ri(r,t){return I(this,null,function*(){yield Nn({originalTask:r,newTasks:t})})}var ss=class extends zE.Menu{constructor(e){super();this.taskSaver=e}addItemsForInstructions(e,n){for(let i of e)this.addItemForInstruction(n,i)}addItemForInstruction(e,n){n.instructionDisplayName()===mb?this.addSeparator():this.addItem(i=>this.getMenuItemCallback(e,i,n))}getMenuItemCallback(e,n,i){n.setTitle(i.instructionDisplayName()).setChecked(i.isCheckedForTask(e)).onClick(()=>I(this,null,function*(){let s=i.apply(e);(s.length!==1||!Object.is(s[0],e))&&(yield this.taskSaver(e,s))}))}};var df=class extends ss{constructor(t,e,n=ri){super(n);let i=VE(t);this.addItemsForInstructions(i,e)}};var ff=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],as={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(r){return typeof console!="undefined"&&console.warn(r)},getWeek:function(r){var t=new Date(r.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var pf={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(r){var t=r%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},mf=pf;var Xt=function(r,t){return t===void 0&&(t=2),("000"+r).slice(t*-1)},Tn=function(r){return r===!0?1:0};function hb(r,t){var e;return function(){var n=this,i=arguments;clearTimeout(e),e=setTimeout(function(){return r.apply(n,i)},t)}}var hf=function(r){return r instanceof Array?r:[r]};function Jt(r,t,e){if(e===!0)return r.classList.add(t);r.classList.remove(t)}function qe(r,t,e){var n=window.document.createElement(r);return t=t||"",e=e||"",n.className=t,e!==void 0&&(n.textContent=e),n}function Du(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function gb(r,t){if(t(r))return r;if(r.parentNode)return gb(r.parentNode,t)}function Eu(r,t){var e=qe("div","numInputWrapper"),n=qe("input","numInput "+r),i=qe("span","arrowUp"),s=qe("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?n.type="number":(n.type="text",n.pattern="\\d*"),t!==void 0)for(var a in t)n.setAttribute(a,t[a]);return e.appendChild(n),e.appendChild(i),e.appendChild(s),e}function vn(r){try{if(typeof r.composedPath=="function"){var t=r.composedPath();return t[0]}return r.target}catch(e){return r.target}}var yb=function(){},xu=function(r,t,e){return e.months[t?"shorthand":"longhand"][r]},KE={D:yb,F:function(r,t,e){r.setMonth(e.months.longhand.indexOf(t))},G:function(r,t){r.setHours((r.getHours()>=12?12:0)+parseFloat(t))},H:function(r,t){r.setHours(parseFloat(t))},J:function(r,t){r.setDate(parseFloat(t))},K:function(r,t,e){r.setHours(r.getHours()%12+12*Tn(new RegExp(e.amPM[1],"i").test(t)))},M:function(r,t,e){r.setMonth(e.months.shorthand.indexOf(t))},S:function(r,t){r.setSeconds(parseFloat(t))},U:function(r,t){return new Date(parseFloat(t)*1e3)},W:function(r,t,e){var n=parseInt(t),i=new Date(r.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:function(r,t){r.setFullYear(parseFloat(t))},Z:function(r,t){return new Date(t)},d:function(r,t){r.setDate(parseFloat(t))},h:function(r,t){r.setHours((r.getHours()>=12?12:0)+parseFloat(t))},i:function(r,t){r.setMinutes(parseFloat(t))},j:function(r,t){r.setDate(parseFloat(t))},l:yb,m:function(r,t){r.setMonth(parseFloat(t)-1)},n:function(r,t){r.setMonth(parseFloat(t)-1)},s:function(r,t){r.setSeconds(parseFloat(t))},u:function(r,t){return new Date(parseFloat(t))},w:yb,y:function(r,t){r.setFullYear(2e3+parseFloat(t))}},Ri={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},ko={Z:function(r){return r.toISOString()},D:function(r,t,e){return t.weekdays.shorthand[ko.w(r,t,e)]},F:function(r,t,e){return xu(ko.n(r,t,e)-1,!1,t)},G:function(r,t,e){return Xt(ko.h(r,t,e))},H:function(r){return Xt(r.getHours())},J:function(r,t){return t.ordinal!==void 0?r.getDate()+t.ordinal(r.getDate()):r.getDate()},K:function(r,t){return t.amPM[Tn(r.getHours()>11)]},M:function(r,t){return xu(r.getMonth(),!0,t)},S:function(r){return Xt(r.getSeconds())},U:function(r){return r.getTime()/1e3},W:function(r,t,e){return e.getWeek(r)},Y:function(r){return Xt(r.getFullYear(),4)},d:function(r){return Xt(r.getDate())},h:function(r){return r.getHours()%12?r.getHours()%12:12},i:function(r){return Xt(r.getMinutes())},j:function(r){return r.getDate()},l:function(r,t){return t.weekdays.longhand[r.getDay()]},m:function(r){return Xt(r.getMonth()+1)},n:function(r){return r.getMonth()+1},s:function(r){return r.getSeconds()},u:function(r){return r.getTime()},w:function(r){return r.getDay()},y:function(r){return String(r.getFullYear()).substring(2)}};var bb=function(r){var t=r.config,e=t===void 0?as:t,n=r.l10n,i=n===void 0?pf:n,s=r.isMobile,a=s===void 0?!1:s;return function(o,l,u){var c=u||i;return e.formatDate!==void 0&&!a?e.formatDate(o,l,c):l.split("").map(function(d,f,p){return ko[d]&&p[f-1]!=="\\"?ko[d](o,c,e):d!=="\\"?d:""}).join("")}},gf=function(r){var t=r.config,e=t===void 0?as:t,n=r.l10n,i=n===void 0?pf:n;return function(s,a,o,l){if(!(s!==0&&!s)){var u=l||i,c,d=s;if(s instanceof Date)c=new Date(s.getTime());else if(typeof s!="string"&&s.toFixed!==void 0)c=new Date(s);else if(typeof s=="string"){var f=a||(e||as).dateFormat,p=String(s).trim();if(p==="today")c=new Date,o=!0;else if(e&&e.parseDate)c=e.parseDate(s,f);else if(/Z$/.test(p)||/GMT$/.test(p))c=new Date(s);else{for(var b=void 0,T=[],v=0,O=0,E="";v<f.length;v++){var P=f[v],Y=P==="\\",q=f[v-1]==="\\"||Y;if(Ri[P]&&!q){E+=Ri[P];var ae=new RegExp(E).exec(s);ae&&(b=!0)&&T[P!=="Y"?"push":"unshift"]({fn:KE[P],val:ae[++O]})}else Y||(E+=".")}c=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),T.forEach(function(H){var J=H.fn,ye=H.val;return c=J(c,ye,u)||c}),c=b?c:void 0}}if(!(c instanceof Date&&!isNaN(c.getTime()))){e.errorHandler(new Error("Invalid date provided: "+d));return}return o===!0&&c.setHours(0,0,0,0),c}}};function _n(r,t,e){return e===void 0&&(e=!0),e!==!1?new Date(r.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):r.getTime()-t.getTime()}var QE=function(r,t,e){return r>Math.min(t,e)&&r<Math.max(t,e)},yf=function(r,t,e){return r*3600+t*60+e},ZE=function(r){var t=Math.floor(r/3600),e=(r-t*3600)/60;return[t,e,r-t*3600-e*60]},XE={DAY:864e5};function bf(r){var t=r.defaultHour,e=r.defaultMinute,n=r.defaultSeconds;if(r.minDate!==void 0){var i=r.minDate.getHours(),s=r.minDate.getMinutes(),a=r.minDate.getSeconds();t<i&&(t=i),t===i&&e<s&&(e=s),t===i&&e===s&&n<a&&(n=r.minDate.getSeconds())}if(r.maxDate!==void 0){var o=r.maxDate.getHours(),l=r.maxDate.getMinutes();t=Math.min(t,o),t===o&&(e=Math.min(l,e)),t===o&&e===l&&(n=r.maxDate.getSeconds())}return{hours:t,minutes:e,seconds:n}}typeof Object.assign!="function"&&(Object.assign=function(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!r)throw TypeError("Cannot convert undefined or null to object");for(var n=function(o){o&&Object.keys(o).forEach(function(l){return r[l]=o[l]})},i=0,s=t;i<s.length;i++){var a=s[i];n(a)}return r});var en=function(){return en=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},en.apply(this,arguments)},JE=function(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),i=0,t=0;t<e;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)n[i]=s[a];return n},GY=300;function BY(r,t){var e={config:en(en({},as),pt.defaultConfig),l10n:mf};e.parseDate=gf({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=T,e._setHoursFromDate=f,e._positionCalendar=cs,e.changeMonth=S,e.changeYear=$,e.clear=C,e.close=L,e.onMouseOver=Le,e._createElement=qe,e.createDay=ae,e.destroy=j,e.isEnabled=ce,e.jumpToDate=E,e.updateValue=hr,e.open=pr,e.redraw=oa,e.set=Mo,e.setDate=Ni,e.toggle=jn;function n(){e.utils={getDaysInMonth:function(h,g){return h===void 0&&(h=e.currentMonth),g===void 0&&(g=e.currentYear),h===1&&(g%4===0&&g%100!==0||g%400===0)?29:e.l10n.daysInMonth[h]}}}function i(){e.element=e.input=r,e.isOpen=!1,te(),st(),ua(),Pu(),n(),e.isMobile||q(),O(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&f(e.config.noCalendar?e.latestSelectedDateObj:void 0),hr(!1)),o();var h=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&h&&cs(),Ze("onReady")}function s(){var h;return((h=e.calendarContainer)===null||h===void 0?void 0:h.getRootNode()).activeElement||document.activeElement}function a(h){return h.bind(e)}function o(){var h=e.config;h.weekNumbers===!1&&h.showMonths===1||h.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var g=(e.days.offsetWidth+1)*h.showMonths;e.daysContainer.style.width=g+"px",e.calendarContainer.style.width=g+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function l(h){if(e.selectedDates.length===0){var g=e.config.minDate===void 0||_n(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),k=bf(e.config);g.setHours(k.hours,k.minutes,k.seconds,g.getMilliseconds()),e.selectedDates=[g],e.latestSelectedDateObj=g}h!==void 0&&h.type!=="blur"&&No(h);var A=e._input.value;d(),hr(),e._input.value!==A&&e._debouncedChange()}function u(h,g){return h%12+12*Tn(g===e.l10n.amPM[1])}function c(h){switch(h%24){case 0:case 12:return 12;default:return h%12}}function d(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var h=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,g=(parseInt(e.minuteElement.value,10)||0)%60,k=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(h=u(h,e.amPM.textContent));var A=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&_n(e.latestSelectedDateObj,e.config.minDate,!0)===0,G=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&_n(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var Z=yf(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),ve=yf(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ne=yf(h,g,k);if(ne>ve&&ne<Z){var Re=ZE(Z);h=Re[0],g=Re[1],k=Re[2]}}else{if(G){var se=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;h=Math.min(h,se.getHours()),h===se.getHours()&&(g=Math.min(g,se.getMinutes())),g===se.getMinutes()&&(k=Math.min(k,se.getSeconds()))}if(A){var me=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;h=Math.max(h,me.getHours()),h===me.getHours()&&g<me.getMinutes()&&(g=me.getMinutes()),g===me.getMinutes()&&(k=Math.max(k,me.getSeconds()))}}p(h,g,k)}}function f(h){var g=h||e.latestSelectedDateObj;g&&g instanceof Date&&p(g.getHours(),g.getMinutes(),g.getSeconds())}function p(h,g,k){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(h%24,g,k||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=Xt(e.config.time_24hr?h:(12+h)%12+12*Tn(h%12===0)),e.minuteElement.value=Xt(g),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[Tn(h>=12)]),e.secondElement!==void 0&&(e.secondElement.value=Xt(k)))}function b(h){var g=vn(h),k=parseInt(g.value)+(h.delta||0);(k/1e3>1||h.key==="Enter"&&!/[^\d]/.test(k.toString()))&&$(k)}function T(h,g,k,A){if(g instanceof Array)return g.forEach(function(G){return T(h,G,k,A)});if(h instanceof Array)return h.forEach(function(G){return T(G,g,k,A)});h.addEventListener(g,k,A),e._handlers.push({remove:function(){return h.removeEventListener(g,k,A)}})}function v(){Ze("onChange")}function O(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(k){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+k+"]"),function(A){return T(A,"click",e[k])})}),e.isMobile){ds();return}var h=hb(jt,50);if(e._debouncedChange=hb(v,GY),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&T(e.daysContainer,"mouseover",function(k){e.config.mode==="range"&&Le(vn(k))}),T(e._input,"keydown",Ge),e.calendarContainer!==void 0&&T(e.calendarContainer,"keydown",Ge),!e.config.inline&&!e.config.static&&T(window,"resize",h),window.ontouchstart!==void 0?T(window.document,"touchstart",N):T(window.document,"mousedown",N),T(window.document,"focus",N,{capture:!0}),e.config.clickOpens===!0&&(T(e._input,"focus",e.open),T(e._input,"click",e.open)),e.daysContainer!==void 0&&(T(e.monthNav,"click",Pf),T(e.monthNav,["keyup","increment"],b),T(e.daysContainer,"click",Yn)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var g=function(k){return vn(k).select()};T(e.timeContainer,["increment"],l),T(e.timeContainer,"blur",l,{capture:!0}),T(e.timeContainer,"click",P),T([e.hourElement,e.minuteElement],["focus","click"],g),e.secondElement!==void 0&&T(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&T(e.amPM,"click",function(k){l(k)})}e.config.allowInput&&T(e._input,"blur",Oe)}function E(h,g){var k=h!==void 0?e.parseDate(h):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),A=e.currentYear,G=e.currentMonth;try{k!==void 0&&(e.currentYear=k.getFullYear(),e.currentMonth=k.getMonth())}catch(Z){Z.message="Invalid date supplied: "+k,e.config.errorHandler(Z)}g&&e.currentYear!==A&&(Ze("onYearChange"),R()),g&&(e.currentYear!==A||e.currentMonth!==G)&&Ze("onMonthChange"),e.redraw()}function P(h){var g=vn(h);~g.className.indexOf("arrow")&&Y(h,g.classList.contains("arrowUp")?1:-1)}function Y(h,g,k){var A=h&&vn(h),G=k||A&&A.parentNode&&A.parentNode.firstChild,Z=ca("increment");Z.delta=g,G&&G.dispatchEvent(Z)}function q(){var h=window.document.createDocumentFragment();if(e.calendarContainer=qe("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(h.appendChild(le()),e.innerContainer=qe("div","flatpickr-innerContainer"),e.config.weekNumbers){var g=w(),k=g.weekWrapper,A=g.weekNumbers;e.innerContainer.appendChild(k),e.weekNumbers=A,e.weekWrapper=k}e.rContainer=qe("div","flatpickr-rContainer"),e.rContainer.appendChild(y()),e.daysContainer||(e.daysContainer=qe("div","flatpickr-days"),e.daysContainer.tabIndex=-1),K(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),h.appendChild(e.innerContainer)}e.config.enableTime&&h.appendChild(m()),Jt(e.calendarContainer,"rangeMode",e.config.mode==="range"),Jt(e.calendarContainer,"animate",e.config.animate===!0),Jt(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(h);var G=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!G&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var Z=qe("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(Z,e.element),Z.appendChild(e.element),e.altInput&&Z.appendChild(e.altInput),Z.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function ae(h,g,k,A){var G=ce(g,!0),Z=qe("span",h,g.getDate().toString());return Z.dateObj=g,Z.$i=A,Z.setAttribute("aria-label",e.formatDate(g,e.config.ariaDateFormat)),h.indexOf("hidden")===-1&&_n(g,e.now)===0&&(e.todayDateElem=Z,Z.classList.add("today"),Z.setAttribute("aria-current","date")),G?(Z.tabIndex=-1,Lr(g)&&(Z.classList.add("selected"),e.selectedDateElem=Z,e.config.mode==="range"&&(Jt(Z,"startRange",e.selectedDates[0]&&_n(g,e.selectedDates[0],!0)===0),Jt(Z,"endRange",e.selectedDates[1]&&_n(g,e.selectedDates[1],!0)===0),h==="nextMonthDay"&&Z.classList.add("inRange")))):Z.classList.add("flatpickr-disabled"),e.config.mode==="range"&&xt(g)&&!Lr(g)&&Z.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&h!=="prevMonthDay"&&A%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(g)+"</span>"),Ze("onDayCreate",Z),Z}function H(h){h.focus(),e.config.mode==="range"&&Le(h)}function J(h){for(var g=h>0?0:e.config.showMonths-1,k=h>0?e.config.showMonths:-1,A=g;A!=k;A+=h)for(var G=e.daysContainer.children[A],Z=h>0?0:G.children.length-1,ve=h>0?G.children.length:-1,ne=Z;ne!=ve;ne+=h){var Re=G.children[ne];if(Re.className.indexOf("hidden")===-1&&ce(Re.dateObj))return Re}}function ye(h,g){for(var k=h.className.indexOf("Month")===-1?h.dateObj.getMonth():e.currentMonth,A=g>0?e.config.showMonths:-1,G=g>0?1:-1,Z=k-e.currentMonth;Z!=A;Z+=G)for(var ve=e.daysContainer.children[Z],ne=k-e.currentMonth===Z?h.$i+g:g<0?ve.children.length-1:0,Re=ve.children.length,se=ne;se>=0&&se<Re&&se!=(g>0?Re:-1);se+=G){var me=ve.children[se];if(me.className.indexOf("hidden")===-1&&ce(me.dateObj)&&Math.abs(h.$i-se)>=Math.abs(g))return H(me)}e.changeMonth(G),we(J(G),0)}function we(h,g){var k=s(),A=be(k||document.body),G=h!==void 0?h:A?k:e.selectedDateElem!==void 0&&be(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&be(e.todayDateElem)?e.todayDateElem:J(g>0?1:-1);G===void 0?e._input.focus():A?ye(G,g):H(G)}function V(h,g){for(var k=(new Date(h,g,1).getDay()-e.l10n.firstDayOfWeek+7)%7,A=e.utils.getDaysInMonth((g-1+12)%12,h),G=e.utils.getDaysInMonth(g,h),Z=window.document.createDocumentFragment(),ve=e.config.showMonths>1,ne=ve?"prevMonthDay hidden":"prevMonthDay",Re=ve?"nextMonthDay hidden":"nextMonthDay",se=A+1-k,me=0;se<=A;se++,me++)Z.appendChild(ae("flatpickr-day "+ne,new Date(h,g-1,se),se,me));for(se=1;se<=G;se++,me++)Z.appendChild(ae("flatpickr-day",new Date(h,g,se),se,me));for(var ze=G+1;ze<=42-k&&(e.config.showMonths===1||me%7!==0);ze++,me++)Z.appendChild(ae("flatpickr-day "+Re,new Date(h,g+1,ze%G),ze,me));var $n=qe("div","dayContainer");return $n.appendChild(Z),$n}function K(){if(e.daysContainer!==void 0){Du(e.daysContainer),e.weekNumbers&&Du(e.weekNumbers);for(var h=document.createDocumentFragment(),g=0;g<e.config.showMonths;g++){var k=new Date(e.currentYear,e.currentMonth,1);k.setMonth(e.currentMonth+g),h.appendChild(V(k.getFullYear(),k.getMonth()))}e.daysContainer.appendChild(h),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Le()}}function R(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var h=function(A){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&A<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&A>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var g=0;g<12;g++)if(!!h(g)){var k=qe("option","flatpickr-monthDropdown-month");k.value=new Date(e.currentYear,g).getMonth().toString(),k.textContent=xu(g,e.config.shorthandCurrentMonth,e.l10n),k.tabIndex=-1,e.currentMonth===g&&(k.selected=!0),e.monthsDropdownContainer.appendChild(k)}}}function ee(){var h=qe("div","flatpickr-month"),g=window.document.createDocumentFragment(),k;e.config.showMonths>1||e.config.monthSelectorType==="static"?k=qe("span","cur-month"):(e.monthsDropdownContainer=qe("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),T(e.monthsDropdownContainer,"change",function(ve){var ne=vn(ve),Re=parseInt(ne.value,10);e.changeMonth(Re-e.currentMonth),Ze("onMonthChange")}),R(),k=e.monthsDropdownContainer);var A=Eu("cur-year",{tabindex:"-1"}),G=A.getElementsByTagName("input")[0];G.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&G.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(G.setAttribute("max",e.config.maxDate.getFullYear().toString()),G.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var Z=qe("div","flatpickr-current-month");return Z.appendChild(k),Z.appendChild(A),g.appendChild(Z),h.appendChild(g),{container:h,yearElement:G,monthElement:k}}function W(){Du(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var h=e.config.showMonths;h--;){var g=ee();e.yearElements.push(g.yearElement),e.monthElements.push(g.monthElement),e.monthNav.appendChild(g.container)}e.monthNav.appendChild(e.nextMonthNav)}function le(){return e.monthNav=qe("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=qe("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=qe("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,W(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(h){e.__hidePrevMonthArrow!==h&&(Jt(e.prevMonthNav,"flatpickr-disabled",h),e.__hidePrevMonthArrow=h)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(h){e.__hideNextMonthArrow!==h&&(Jt(e.nextMonthNav,"flatpickr-disabled",h),e.__hideNextMonthArrow=h)}}),e.currentYearElement=e.yearElements[0],da(),e.monthNav}function m(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var h=bf(e.config);e.timeContainer=qe("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var g=qe("span","flatpickr-time-separator",":"),k=Eu("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=k.getElementsByTagName("input")[0];var A=Eu("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=A.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Xt(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?h.hours:c(h.hours)),e.minuteElement.value=Xt(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():h.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(k),e.timeContainer.appendChild(g),e.timeContainer.appendChild(A),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var G=Eu("flatpickr-second");e.secondElement=G.getElementsByTagName("input")[0],e.secondElement.value=Xt(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():h.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(qe("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(G)}return e.config.time_24hr||(e.amPM=qe("span","flatpickr-am-pm",e.l10n.amPM[Tn((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function y(){e.weekdayContainer?Du(e.weekdayContainer):e.weekdayContainer=qe("div","flatpickr-weekdays");for(var h=e.config.showMonths;h--;){var g=qe("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(g)}return _(),e.weekdayContainer}function _(){if(!!e.weekdayContainer){var h=e.l10n.firstDayOfWeek,g=JE(e.l10n.weekdays.shorthand);h>0&&h<g.length&&(g=JE(g.splice(h,g.length),g.splice(0,h)));for(var k=e.config.showMonths;k--;)e.weekdayContainer.children[k].innerHTML=`
      <span class='flatpickr-weekday'>
        `+g.join("</span><span class='flatpickr-weekday'>")+`
      </span>
      `}}function w(){e.calendarContainer.classList.add("hasWeeks");var h=qe("div","flatpickr-weekwrapper");h.appendChild(qe("span","flatpickr-weekday",e.l10n.weekAbbreviation));var g=qe("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,Ze("onYearChange"),R()),K(),Ze("onMonthChange"),da())}function C(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=bf(e.config),A=k.hours,G=k.minutes,Z=k.seconds;p(A,G,Z)}e.redraw(),h&&Ze("onChange")}function L(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Ze("onClose")}function j(){e.config!==void 0&&Ze("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(A){}})}function D(h){return e.calendarContainer.contains(h)}function N(h){if(e.isOpen&&!e.config.inline){var g=vn(h),k=D(g),A=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=!A&&!k&&!D(h.relatedTarget),Z=!e.config.ignoredFocusElements.some(function(ve){return ve.contains(g)});G&&Z&&(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 $(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(),Ze("onYearChange"),R())}}function ce(h,g){var k;g===void 0&&(g=!0);var A=e.parseDate(h,void 0,g);if(e.config.minDate&&A&&_n(A,e.config.minDate,g!==void 0?g:!e.minDateHasTime)<0||e.config.maxDate&&A&&_n(A,e.config.maxDate,g!==void 0?g:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(A===void 0)return!1;for(var G=!!e.config.enable,Z=(k=e.config.enable)!==null&&k!==void 0?k:e.config.disable,ve=0,ne=void 0;ve<Z.length;ve++){if(ne=Z[ve],typeof ne=="function"&&ne(A))return G;if(ne instanceof Date&&A!==void 0&&ne.getTime()===A.getTime())return G;if(typeof ne=="string"){var Re=e.parseDate(ne,void 0,!0);return Re&&Re.getTime()===A.getTime()?G:!G}else if(typeof ne=="object"&&A!==void 0&&ne.from&&ne.to&&A.getTime()>=ne.from.getTime()&&A.getTime()<=ne.to.getTime())return G}return!G}function be(h){return e.daysContainer!==void 0?h.className.indexOf("hidden")===-1&&h.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(h):!1}function Oe(h){var g=h.target===e._input,k=e._input.value.trimEnd()!==fa();g&&k&&!(h.relatedTarget&&D(h.relatedTarget))&&e.setDate(e._input.value,!0,h.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ge(h){var g=vn(h),k=e.config.wrap?r.contains(g):g===e._input,A=e.config.allowInput,G=e.isOpen&&(!A||!k),Z=e.config.inline&&k&&!A;if(h.keyCode===13&&k){if(A)return e.setDate(e._input.value,!0,g===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),g.blur();e.open()}else if(D(g)||G||Z){var ve=!!e.timeContainer&&e.timeContainer.contains(g);switch(h.keyCode){case 13:ve?(h.preventDefault(),l(),la()):Yn(h);break;case 27:h.preventDefault(),la();break;case 8:case 46:k&&!e.config.allowInput&&(h.preventDefault(),e.clear());break;case 37:case 39:if(!ve&&!k){h.preventDefault();var ne=s();if(e.daysContainer!==void 0&&(A===!1||ne&&be(ne))){var Re=h.keyCode===39?1:-1;h.ctrlKey?(h.stopPropagation(),S(Re),we(J(1),0)):we(void 0,Re)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:h.preventDefault();var se=h.keyCode===40?1:-1;e.daysContainer&&g.$i!==void 0||g===e.input||g===e.altInput?h.ctrlKey?(h.stopPropagation(),$(e.currentYear-se),we(J(1),0)):ve||we(void 0,se*7):g===e.currentYearElement?$(e.currentYear-se):e.config.enableTime&&(!ve&&e.hourElement&&e.hourElement.focus(),l(h),e._debouncedChange());break;case 9:if(ve){var me=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(Ot){return Ot}),ze=me.indexOf(g);if(ze!==-1){var $n=me[ze+(h.shiftKey?-1:1)];h.preventDefault(),($n||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(g)&&h.shiftKey&&(h.preventDefault(),e._input.focus());break;default:break}}if(e.amPM!==void 0&&g===e.amPM)switch(h.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],d(),hr();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],d(),hr();break}(k||D(g))&&Ze("onKeyDown",h)}function Le(h,g){if(g===void 0&&(g="flatpickr-day"),!(e.selectedDates.length!==1||h&&(!h.classList.contains(g)||h.classList.contains("flatpickr-disabled")))){for(var k=h?h.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),A=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),G=Math.min(k,e.selectedDates[0].getTime()),Z=Math.max(k,e.selectedDates[0].getTime()),ve=!1,ne=0,Re=0,se=G;se<Z;se+=XE.DAY)ce(new Date(se),!0)||(ve=ve||se>G&&se<Z,se<A&&(!ne||se>ne)?ne=se:se>A&&(!Re||se<Re)&&(Re=se));var me=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+g));me.forEach(function(ze){var $n=ze.dateObj,Ot=$n.getTime(),fs=ne>0&&Ot<ne||Re>0&&Ot>Re;if(fs){ze.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ii){ze.classList.remove(Ii)});return}else if(ve&&!fs)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ii){ze.classList.remove(Ii)}),h!==void 0&&(h.classList.add(k<=e.selectedDates[0].getTime()?"startRange":"endRange"),A<k&&Ot===A?ze.classList.add("startRange"):A>k&&Ot===A&&ze.classList.add("endRange"),Ot>=ne&&(Re===0||Ot<=Re)&&QE(Ot,A,k)&&ze.classList.add("inRange"))})}}function jt(){e.isOpen&&!e.config.static&&!e.config.inline&&cs()}function pr(h,g){if(g===void 0&&(g=e._positionElement),e.isMobile===!0){if(h){h.preventDefault();var k=vn(h);k&&k.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Ze("onOpen");return}else if(e._input.disabled||e.config.inline)return;var A=e.isOpen;e.isOpen=!0,A||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Ze("onOpen"),cs(g)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(h===void 0||!e.timeContainer.contains(h.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function wn(h){return function(g){var k=e.config["_"+h+"Date"]=e.parseDate(g,e.config.dateFormat),A=e.config["_"+(h==="min"?"max":"min")+"Date"];k!==void 0&&(e[h==="min"?"minDateHasTime":"maxDateHasTime"]=k.getHours()>0||k.getMinutes()>0||k.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(G){return ce(G)}),!e.selectedDates.length&&h==="min"&&f(k),hr()),e.daysContainer&&(oa(),k!==void 0?e.currentYearElement[h]=k.getFullYear().toString():e.currentYearElement.removeAttribute(h),e.currentYearElement.disabled=!!A&&k!==void 0&&A.getFullYear()===k.getFullYear())}}function te(){var h=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],g=en(en({},JSON.parse(JSON.stringify(r.dataset||{}))),t),k={};e.config.parseDate=g.parseDate,e.config.formatDate=g.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(me){e.config._enable=Fr(me)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(me){e.config._disable=Fr(me)}});var A=g.mode==="time";if(!g.dateFormat&&(g.enableTime||A)){var G=pt.defaultConfig.dateFormat||as.dateFormat;k.dateFormat=g.noCalendar||A?"H:i"+(g.enableSeconds?":S":""):G+" H:i"+(g.enableSeconds?":S":"")}if(g.altInput&&(g.enableTime||A)&&!g.altFormat){var Z=pt.defaultConfig.altFormat||as.altFormat;k.altFormat=g.noCalendar||A?"h:i"+(g.enableSeconds?":S K":" K"):Z+(" h:i"+(g.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:wn("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:wn("max")});var ve=function(me){return function(ze){e.config[me==="min"?"_minTime":"_maxTime"]=e.parseDate(ze,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:ve("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:ve("max")}),g.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,k,g);for(var ne=0;ne<h.length;ne++)e.config[h[ne]]=e.config[h[ne]]===!0||e.config[h[ne]]==="true";ff.filter(function(me){return e.config[me]!==void 0}).forEach(function(me){e.config[me]=hf(e.config[me]||[]).map(a)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ne=0;ne<e.config.plugins.length;ne++){var Re=e.config.plugins[ne](e)||{};for(var se in Re)ff.indexOf(se)>-1?e.config[se]=hf(Re[se]).map(a).concat(e.config[se]):typeof g[se]=="undefined"&&(e.config[se]=Re[se])}g.altInputClass||(e.config.altInputClass=$t().className+" "+e.config.altInputClass),Ze("onParseConfig")}function $t(){return e.config.wrap?r.querySelector("[data-input]"):r}function st(){typeof e.config.locale!="object"&&typeof pt.l10ns[e.config.locale]=="undefined"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=en(en({},pt.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?pt.l10ns[e.config.locale]:void 0),Ri.D="("+e.l10n.weekdays.shorthand.join("|")+")",Ri.l="("+e.l10n.weekdays.longhand.join("|")+")",Ri.M="("+e.l10n.months.shorthand.join("|")+")",Ri.F="("+e.l10n.months.longhand.join("|")+")",Ri.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var h=en(en({},t),JSON.parse(JSON.stringify(r.dataset||{})));h.time_24hr===void 0&&pt.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=bb(e),e.parseDate=gf({config:e.config,l10n:e.l10n})}function cs(h){if(typeof e.config.position=="function")return void e.config.position(e,h);if(e.calendarContainer!==void 0){Ze("onPreCalendarPosition");var g=h||e._positionElement,k=Array.prototype.reduce.call(e.calendarContainer.children,function(ms,hs){return ms+hs.offsetHeight},0),A=e.calendarContainer.offsetWidth,G=e.config.position.split(" "),Z=G[0],ve=G.length>1?G[1]:null,ne=g.getBoundingClientRect(),Re=window.innerHeight-ne.bottom,se=Z==="above"||Z!=="below"&&Re<k&&ne.top>k,me=window.pageYOffset+ne.top+(se?-k-2:g.offsetHeight+2);if(Jt(e.calendarContainer,"arrowTop",!se),Jt(e.calendarContainer,"arrowBottom",se),!e.config.inline){var ze=window.pageXOffset+ne.left,$n=!1,Ot=!1;ve==="center"?(ze-=(A-ne.width)/2,$n=!0):ve==="right"&&(ze-=A-ne.width,Ot=!0),Jt(e.calendarContainer,"arrowLeft",!$n&&!Ot),Jt(e.calendarContainer,"arrowCenter",$n),Jt(e.calendarContainer,"arrowRight",Ot);var fs=window.document.body.offsetWidth-(window.pageXOffset+ne.right),Ii=ze+A>window.document.body.offsetWidth,Io=fs+A>window.document.body.offsetWidth;if(Jt(e.calendarContainer,"rightMost",Ii),!e.config.static)if(e.calendarContainer.style.top=me+"px",!Ii)e.calendarContainer.style.left=ze+"px",e.calendarContainer.style.right="auto";else if(!Io)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=fs+"px";else{var Fo=mr();if(Fo===void 0)return;var Nf=window.document.body.offsetWidth,Lo=Math.max(0,Nf/2-A/2),U=".flatpickr-calendar.centerMost:before",he=".flatpickr-calendar.centerMost:after",gr=Fo.cssRules.length,ps="{left:"+ne.left+"px;right:auto;}";Jt(e.calendarContainer,"rightMost",!1),Jt(e.calendarContainer,"centerMost",!0),Fo.insertRule(U+","+he+ps,gr),e.calendarContainer.style.left=Lo+"px",e.calendarContainer.style.right="auto"}}}}function mr(){for(var h=null,g=0;g<document.styleSheets.length;g++){var k=document.styleSheets[g];if(!!k.cssRules){try{k.cssRules}catch(A){continue}h=k;break}}return h!=null?h:Co()}function Co(){var h=document.createElement("style");return document.head.appendChild(h),h.sheet}function oa(){e.config.noCalendar||e.isMobile||(R(),da(),K())}function la(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Yn(h){h.preventDefault(),h.stopPropagation();var g=function(me){return me.classList&&me.classList.contains("flatpickr-day")&&!me.classList.contains("flatpickr-disabled")&&!me.classList.contains("notAllowed")},k=gb(vn(h),g);if(k!==void 0){var A=k,G=e.latestSelectedDateObj=new Date(A.dateObj.getTime()),Z=(G.getMonth()<e.currentMonth||G.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=A,e.config.mode==="single")e.selectedDates=[G];else if(e.config.mode==="multiple"){var ve=Lr(G);ve?e.selectedDates.splice(parseInt(ve),1):e.selectedDates.push(G)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=G,e.selectedDates.push(G),_n(G,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(me,ze){return me.getTime()-ze.getTime()}));if(d(),Z){var ne=e.currentYear!==G.getFullYear();e.currentYear=G.getFullYear(),e.currentMonth=G.getMonth(),ne&&(Ze("onYearChange"),R()),Ze("onMonthChange")}if(da(),K(),hr(),!Z&&e.config.mode!=="range"&&e.config.showMonths===1?H(A):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var Re=e.config.mode==="single"&&!e.config.enableTime,se=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(Re||se)&&la()}v()}}var Pi={locale:[st,_],showMonths:[W,o,y],minDate:[E],maxDate:[E],positionElement:[Po],clickOpens:[function(){e.config.clickOpens===!0?(T(e._input,"focus",e.open),T(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Mo(h,g){if(h!==null&&typeof h=="object"){Object.assign(e.config,h);for(var k in h)Pi[k]!==void 0&&Pi[k].forEach(function(A){return A()})}else e.config[h]=g,Pi[h]!==void 0?Pi[h].forEach(function(A){return A()}):ff.indexOf(h)>-1&&(e.config[h]=hf(g));e.redraw(),hr(!0)}function Ao(h,g){var k=[];if(h instanceof Array)k=h.map(function(A){return e.parseDate(A,g)});else if(h instanceof Date||typeof h=="number")k=[e.parseDate(h,g)];else if(typeof h=="string")switch(e.config.mode){case"single":case"time":k=[e.parseDate(h,g)];break;case"multiple":k=h.split(e.config.conjunction).map(function(A){return e.parseDate(A,g)});break;case"range":k=h.split(e.l10n.rangeSeparator).map(function(A){return e.parseDate(A,g)});break;default:break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(h)));e.selectedDates=e.config.allowInvalidPreload?k:k.filter(function(A){return A instanceof Date&&ce(A,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(A,G){return A.getTime()-G.getTime()})}function Ni(h,g,k){if(g===void 0&&(g=!1),k===void 0&&(k=e.config.dateFormat),h!==0&&!h||h instanceof Array&&h.length===0)return e.clear(g);Ao(h,k),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,g),f(),e.selectedDates.length===0&&e.clear(!1),hr(g),g&&Ze("onChange")}function Fr(h){return h.slice().map(function(g){return typeof g=="string"||typeof g=="number"||g instanceof Date?e.parseDate(g,void 0,!0):g&&typeof g=="object"&&g.from&&g.to?{from:e.parseDate(g.from,void 0),to:e.parseDate(g.to,void 0)}:g}).filter(function(g){return g})}function Pu(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var h=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);h&&Ao(h,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function ua(){if(e.input=$t(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=qe(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),Po()}function Po(){e._positionElement=e.config.positionElement||e._input}function ds(){var h=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=qe("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=h,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=h==="datetime-local"?"Y-m-d\\TH:i:S":h==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(g){}T(e.mobileInput,"change",function(g){e.setDate(vn(g).value,!1,e.mobileFormatStr),Ze("onChange"),Ze("onClose")})}function jn(h){if(e.isOpen===!0)return e.close();e.open(h)}function Ze(h,g){if(e.config!==void 0){var k=e.config[h];if(k!==void 0&&k.length>0)for(var A=0;k[A]&&A<k.length;A++)k[A](e.selectedDates,e.input.value,e,g);h==="onChange"&&(e.input.dispatchEvent(ca("change")),e.input.dispatchEvent(ca("input")))}}function ca(h){var g=document.createEvent("Event");return g.initEvent(h,!0,!0),g}function Lr(h){for(var g=0;g<e.selectedDates.length;g++){var k=e.selectedDates[g];if(k instanceof Date&&_n(k,h)===0)return""+g}return!1}function xt(h){return e.config.mode!=="range"||e.selectedDates.length<2?!1:_n(h,e.selectedDates[0])>=0&&_n(h,e.selectedDates[1])<=0}function da(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(h,g){var k=new Date(e.currentYear,e.currentMonth,1);k.setMonth(e.currentMonth+g),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[g].textContent=xu(k.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=k.getMonth().toString(),h.value=k.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function fa(h){var g=h||(e.config.altInput?e.config.altFormat:e.config.dateFormat);return e.selectedDates.map(function(k){return e.formatDate(k,g)}).filter(function(k,A,G){return e.config.mode!=="range"||e.config.enableTime||G.indexOf(k)===A}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function hr(h){h===void 0&&(h=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=fa(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=fa(e.config.altFormat)),h!==!1&&Ze("onValueUpdate")}function Pf(h){var g=vn(h),k=e.prevMonthNav.contains(g),A=e.nextMonthNav.contains(g);k||A?S(k?-1:1):e.yearElements.indexOf(g)>=0?g.select():g.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):g.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function No(h){h.preventDefault();var g=h.type==="keydown",k=vn(h),A=k;e.amPM!==void 0&&k===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Tn(e.amPM.textContent===e.l10n.amPM[0])]);var G=parseFloat(A.getAttribute("min")),Z=parseFloat(A.getAttribute("max")),ve=parseFloat(A.getAttribute("step")),ne=parseInt(A.value,10),Re=h.delta||(g?h.which===38?1:-1:0),se=ne+ve*Re;if(typeof A.value!="undefined"&&A.value.length===2){var me=A===e.hourElement,ze=A===e.minuteElement;se<G?(se=Z+se+Tn(!me)+(Tn(me)&&Tn(!e.amPM)),ze&&Y(void 0,-1,e.hourElement)):se>Z&&(se=A===e.hourElement?se-Z-Tn(!e.amPM):G,ze&&Y(void 0,1,e.hourElement)),e.amPM&&me&&(ve===1?se+ne===23:Math.abs(se-ne)>ve)&&(e.amPM.textContent=e.l10n.amPM[Tn(e.amPM.textContent===e.l10n.amPM[0])]),A.value=Xt(se)}}return i(),e}function So(r,t){for(var e=Array.prototype.slice.call(r).filter(function(a){return a instanceof HTMLElement}),n=[],i=0;i<e.length;i++){var s=e[i];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=BY(s,t||{}),n.push(s._flatpickr)}catch(a){console.error(a)}}return n.length===1?n[0]:n}typeof HTMLElement!="undefined"&&typeof HTMLCollection!="undefined"&&typeof NodeList!="undefined"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(r){return So(this,r)},HTMLElement.prototype.flatpickr=function(r){return So([this],r)});var pt=function(r,t){return typeof r=="string"?So(window.document.querySelectorAll(r),t):r instanceof Node?So([r],t):So(r,t)};pt.defaultConfig={};pt.l10ns={en:en({},mf),default:en({},mf)};pt.localize=function(r){pt.l10ns.default=en(en({},pt.l10ns.default),r)};pt.setDefaults=function(r){pt.defaultConfig=en(en({},pt.defaultConfig),r)};pt.parseDate=gf({});pt.formatDate=bb({});pt.compareDates=_n;typeof jQuery!="undefined"&&typeof jQuery.fn!="undefined"&&(jQuery.fn.flatpickr=function(r){return So(this,r)});Date.prototype.fp_incr=function(r){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof r=="string"?parseInt(r,10):r))};typeof window!="undefined"&&(window.flatpickr=pt);var ex=pt;Nt();Nt();Vi();ad();function tx(r){for(let e of pe.allDateFields()){let n=r[e];if(n&&!n.isValid())return!1}let t=r.happensDates.some(e=>!!(e!=null&&e.isValid()));return!r.isDone&&t}function Do(r){return r.dueDate?"dueDate":r.scheduledDate?"scheduledDate":r.startDate?"startDate":null}function Tb(r,t,e,n){let i=r[t];return ix(i,r,t,e,n)}function nx(r,t,e,n){let i=window.moment();return ix(i,r,t,e,n)}function rx(r,t,e,n){return sx(r,t,null)}function ix(r,t,e,n,i){let s=new It(r).postpone(n,i);return sx(t,e,s)}function sx(r,t,e){let n=Ft.removeInferredStatusIfNeeded(r,[new pe(de(F({},r),{[t]:e}))])[0];return{postponedDate:e,postponedTask:n}}function ax(r,t){if(r){let e=r==null?void 0:r.format("DD MMM YYYY");return`Task's ${t} changed to ${e}`}else return`Task's ${t} removed`}function ox(r,t,e){return`\u2139\uFE0F ${vb(r,t,e)} (right-click for more options)`}function vb(r,t,e){let n=Do(r),i=r[n];return Eo(n,i,t,e)}function lx(r,t,e){let n=Do(r),i=window.moment().startOf("day");return Eo(n,i,t,e)}function ux(r,t,e){let n=Do(r);return _b(n,r)}function _b(r,t){return r==="scheduledDate"&&t.scheduledDateIsInferred?"Cannot remove inferred scheduled date":`Remove ${Tf(r)}`}function VY(r){return Xa(r.replace("Date",""))}function Tf(r){return r.replace("Date"," date")}function Eo(r,t,e,n){let s=new It(t).postpone(n,e).format("ddd Do MMM"),a=e!=1?e:"a";if(t.isSameOrBefore(window.moment(),"day")){let l=VY(r);return(e>=0?`${l} in ${a} ${n}, on ${s}`:`${l} ${-a} ${n} ago, on ${s}`).replace(" 1 day ago"," yesterday").replace(" in 0 days"," today").replace("in a day","tomorrow")}let o=Tf(r);return e>=0?`Postpone ${o} by ${a} ${n}, to ${s}`:`Backdate ${o} by ${-a} ${n}, to ${s}`}ad();var os=class{constructor(t,e,n){this.newDate=e,this.dateFieldToEdit=t,this.displayName=n!=null?n:`Set Date: ${this.newDate.toDateString()}`}apply(t){return this.isCheckedForTask(t)?[t]:[new pe(de(F({},t),{[this.dateFieldToEdit]:window.moment(this.newDate)}))]}instructionDisplayName(){return this.displayName}isCheckedForTask(t){var e;return((e=t[this.dateFieldToEdit])==null?void 0:e.isSame(window.moment(this.newDate)))||!1}},Pr=class extends os{constructor(t,e,n,i){var l;let s=(l=e[t])!=null?l:window.moment(),a=Eo(t,s,n,i),o=new It(window.moment(s)).postpone(i,n).toDate();super(t,o,a)}},Ou=class{constructor(t,e){this.dateFieldToEdit=t,this.displayName=_b(t,e)}apply(t){let e=this.dateFieldToEdit==="scheduledDate"&&t.scheduledDateIsInferred;return t[this.dateFieldToEdit]===null||e?[t]:[new pe(de(F({},t),{[this.dateFieldToEdit]:null}))]}instructionDisplayName(){return this.displayName}isCheckedForTask(t){return!1}};function cx(r,t){return fx(t,r,1)}function dx(r,t){return fx(t,r,-1)}function fx(r,t,e){let n=window.moment().startOf("day"),i=n.toDate(),s=new It(n.clone());return[new os(t,i,Eo(t,n,0,"days")),new os(t,s.postpone("day",e).toDate(),Eo(t,n,e,"day")),new wo,new Pr(t,r,e*2,"days"),new Pr(t,r,e*3,"days"),new Pr(t,r,e*4,"days"),new Pr(t,r,e*5,"days"),new Pr(t,r,e*6,"days"),new wo,new Pr(t,r,e,"week"),new Pr(t,r,e*2,"weeks"),new Pr(t,r,e*3,"weeks"),new Pr(t,r,e,"month"),new wo,new Ou(t,r)]}function mx(r,t,e,n){var a,o;let i=t[e];ex(r,{defaultDate:i?i.format("YYYY-MM-DD"):new Date,disableMobile:!0,enableTime:!1,dateFormat:"Y-m-d",locale:{firstDayOfWeek:(o=(a=new Intl.Locale(navigator.language).weekInfo)==null?void 0:a.firstDay)!=null?o:1},onClose:(l,u,c)=>I(this,null,function*(){if(l.length>0){let d=l[0],f=new os(e,d).apply(t);yield n(t,f)}c.destroy()}),onReady:(l,u,c)=>{let d=document.createElement("div");d.style.display="flex",d.style.justifyContent="space-between",d.style.marginTop="10px",px(d,c,t,n,"Clear",()=>new Ou(e,t).apply(t)),px(d,c,t,n,"Today",()=>{let p=new Date;return new os(e,p).apply(t)}),c.calendarContainer.appendChild(d)}}).open()}function px(r,t,e,n,i,s){let a=document.createElement("button");a.type="button",a.textContent=i,a.classList.add("flatpickr-button"),a.addEventListener("click",()=>I(this,null,function*(){let o=s();yield n(e,o),t.destroy()})),r.appendChild(a)}function hx(r){return["startDate","scheduledDate","dueDate"].includes(r)}var vf=class extends ss{constructor(t,e,n=ri){super(n);let i=hx(t)?cx(t,e):dx(t,e);this.addItemsForInstructions(i,e)}};su();var _f=class{constructor(){this.data=zY}addDataAttribute(t,e,n){this.data[n].addDataAttribute(t,e,n)}addClassName(t,e){let n=this.data[e].className;t.classList.add(n)}},wb=class{constructor(t,e,n){if(t==="")throw Error("Developer note: CSS class cannot be an empty string, please specify one.");this.className=t,this.attributeName=e,this.attributeValueCalculator=n}addDataAttribute(t,e,n){if(this.attributeName===wb.noAttributeName)return;let i=this.attributeValueCalculator(n,e);i!==""&&(t.dataset[this.attributeName]=i)}},Nr=wb;Nr.noAttributeName="",Nr.noAttributeValueCalculator=()=>"",Nr.dateAttributeCalculator=(t,e)=>{let i="far";function s(o){let u=window.moment().startOf("day").diff(o,"days");if(isNaN(u))return null;if(u===0)return"today";let c="";return u>0?c+="past-":u<0&&(c+="future-"),Math.abs(u)<=7?c+=Math.abs(u).toString()+"d":c+=i,c}let a=e[t];if(!Array.isArray(a)&&a instanceof window.moment){let o=s(a);if(o)return o}return""};function xo(r){return new Nr(r,Nr.noAttributeName,Nr.noAttributeValueCalculator)}function Oo(r,t){return new Nr(r,t,Nr.dateAttributeCalculator)}var zY={createdDate:Oo("task-created","taskCreated"),dueDate:Oo("task-due","taskDue"),startDate:Oo("task-start","taskStart"),scheduledDate:Oo("task-scheduled","taskScheduled"),doneDate:Oo("task-done","taskDone"),cancelledDate:Oo("task-cancelled","taskCancelled"),priority:new Nr("task-priority","taskPriority",(r,t)=>Mn.priorityNameUsingNormal(t.priority).toLocaleLowerCase()),description:xo("task-description"),recurrenceRule:xo("task-recurring"),onCompletion:xo("task-onCompletion"),dependsOn:xo("task-dependsOn"),id:xo("task-id"),blockLink:xo("task-block-link")};function lt(r,t){let e=document.createElement(r);return t.appendChild(e),e}var Ci=class{static obsidianMarkdownRenderer(t,e,n,i){return I(this,null,function*(){!i||(yield gx.MarkdownRenderer.renderMarkdown(t,e,n,i))})}constructor({textRenderer:t=Ci.obsidianMarkdownRenderer,obsidianComponent:e,parentUlElement:n,taskLayoutOptions:i,queryLayoutOptions:s}){this.textRenderer=t,this.obsidianComponent=e,this.parentUlElement=n,this.taskLayoutOptions=i,this.queryLayoutOptions=s}renderTaskLine(s){return I(this,arguments,function*({task:t,taskIndex:e,isTaskInQueryFile:n,isFilenameUnique:i}){let a=lt("li",this.parentUlElement);a.classList.add("task-list-item","plugin-tasks-list-item");let o=lt("span",a);o.classList.add("tasks-list-text"),yield this.taskToHtml(t,o,a,n);let l=lt("input",a);return l.classList.add("task-list-item-checkbox"),l.type="checkbox",t.status.symbol!==" "&&(l.checked=!0,a.classList.add("is-checked")),t.taskLocation.hasKnownPath&&(l.addEventListener("click",c=>{c.preventDefault(),c.stopPropagation(),l.disabled=!0;let d=t.toggleWithRecurrenceInUsersOrder();Nn({originalTask:t,newTasks:d})}),l.addEventListener("contextmenu",c=>{new df(je.getInstance(),t).showAtPosition({x:c.clientX,y:c.clientY})}),l.setAttribute("title","Right-click for options")),a.prepend(l),a.setAttribute("data-task",t.status.symbol.trim()),a.setAttribute("data-line",e.toString()),a.setAttribute("data-task-status-name",t.status.name),a.setAttribute("data-task-status-type",t.status.type),l.setAttribute("data-line",e.toString()),this.queryLayoutOptions.shortMode&&this.addTooltip(t,o,i),a})}taskToHtml(t,e,n,i){return I(this,null,function*(){let s=new _f,a=Er.tasksPluginEmoji.taskSerializer;for(let o of this.taskLayoutOptions.shownComponents){let l=a.componentToString(t,this.queryLayoutOptions.shortMode,o);if(l){let u=lt("span",e),c=lt("span",u);if(yield this.renderComponentText(c,l,o,t,i),this.addInternalClasses(o,c),s.addClassName(u,o),s.addDataAttribute(u,t,o),s.addDataAttribute(n,t,o),pe.allDateFields().includes(o)){let d=o;u.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),mx(u,t,d,ri)}),u.addEventListener("contextmenu",f=>{f.preventDefault(),f.stopPropagation(),new vf(d,t,ri).showAtPosition({x:f.clientX,y:f.clientY})}),u.setAttribute("title",`Click to edit ${Tf(d)}, Right-click for more options`)}}}for(let o of this.taskLayoutOptions.hiddenComponents)s.addDataAttribute(n,t,o);n.dataset.taskPriority===void 0&&s.addDataAttribute(n,t,"priority")})}renderComponentText(t,e,n,i,s){return I(this,null,function*(){if(n==="description")return yield this.renderDescription(i,t,s);t.innerHTML=e})}renderDescription(t,e,n){return I(this,null,function*(){let i=this.adjustRelativeLinksInDescription(t,n);i=Ne.getInstance().removeAsWordFromDependingOnSettings(i);let{debugSettings:s}=re();s.showTaskHiddenData&&(i+=`<br>\u{1F41B} <b>${t.lineNumber}</b> . ${t.sectionStart} . ${t.sectionIndex} . '<code>${t.originalMarkdown}</code>'<br>'<code>${t.path}</code>' > '<code>${t.precedingHeader}</code>'<br>`),yield this.textRenderer(i,e,t.path,this.obsidianComponent);let a=e.querySelector("blockquote"),o=a!=null?a:e,l=o.querySelector("p");if(l!==null){for(;l.firstChild;)o.insertBefore(l.firstChild,l);l.remove()}e.querySelectorAll("p").forEach(u=>{u.hasChildNodes()||u.remove()}),e.querySelectorAll(".footnotes").forEach(u=>{u.remove()})})}adjustRelativeLinksInDescription(t,e){if(e)return t.description;let n=t.file.cachedMetadata.links;if(!n)return t.description;let i=n.filter(a=>a.position.start.line===t.taskLocation.lineNumber&&t.description.includes(a.original)&&a.link.startsWith("#")),s=t.description;if(i.length!==0)for(let a of i){let o=`[[${t.path}${a.link}|${a.displayText}]]`;s=s.replace(a.original,o)}return s}addInternalClasses(t,e){function n(i){let s=/["&\x00\r\n]/g,a=i.replace(s,"-");return a=a.replace(/^[-_]+/,""),a.length>0?a:null}if(t==="description"){let i=e.getElementsByClassName("tag");for(let s=0;s<i.length;s++){let a=i[s].textContent;if(a){let o=n(a),l=i[s];o&&(l.dataset.tagName=o)}}}}addTooltip(t,e,n){let{recurrenceSymbol:i,startDateSymbol:s,createdDateSymbol:a,scheduledDateSymbol:o,dueDateSymbol:l,cancelledDateSymbol:u,doneDateSymbol:c}=Er.tasksPluginEmoji.taskSerializer.symbols;e.addEventListener("mouseenter",()=>{function d(T,v,O){v&&T.createDiv().setText(f({signifier:O,date:v}))}function f({signifier:T,date:v}){return`${T} ${v.format(fe.dateFormat)} (${v.from(window.moment().startOf("day"))})`}let p=e.createDiv();p.addClasses(["tooltip","pop-up"]),t.recurrence&&p.createDiv().setText(`${i} ${t.recurrence.toText()}`),d(p,t.createdDate,a),d(p,t.startDate,s),d(p,t.scheduledDate,o),d(p,t.dueDate,l),d(p,t.cancelledDate,u),d(p,t.doneDate,c);let b=t.getLinkText({isFilenameUnique:n});b&&p.createDiv().setText(`\u{1F517} ${b}`),e.addEventListener("mouseleave",()=>{p.remove()})})}renderListItem(t,e,n){return I(this,null,function*(){var o,l;let i=lt("li",t);if(e.statusCharacter){let u=lt("input",i);u.classList.add("task-list-item-checkbox"),u.type="checkbox",u.addEventListener("click",c=>{c.preventDefault(),c.stopPropagation(),u.disabled=!0;let d=e.checkOrUncheck();Nn({originalTask:e,newTasks:d})}),e.statusCharacter!==" "&&(u.checked=!0,i.classList.add("is-checked")),i.classList.add("task-list-item"),i.setAttribute("data-task",e.statusCharacter.trim()),i.setAttribute("data-line",n.toString())}let s=lt("span",i);yield this.textRenderer(e.description,s,(l=(o=e.findClosestParentTask())==null?void 0:o.path)!=null?l:"",this.obsidianComponent);let a=s.querySelector("p");if(a!==null){for(;a.firstChild;)s.insertBefore(a.firstChild,a);a.remove()}return i})}};var wf=class{constructor({plugin:t}){this.markdownPostProcessor=this._markdownPostProcessor.bind(this);t.registerMarkdownPostProcessor((e,n)=>{t.app.workspace.onLayoutReady(()=>{this.markdownPostProcessor(e,n)})})}_markdownPostProcessor(t,e){return I(this,null,function*(){var d;let n=new yx.MarkdownRenderChild(t);e.addChild(n);let i=t.findAll(".task-list-item").filter(f=>{var T;let p=(T=f.textContent)==null?void 0:T.split(`
`);if(p===void 0)return!1;let b=null;for(let v=0;v<p.length;v=v+1)if(p[v]!==""){b=p[v];break}return b===null?!1:Ne.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=pe.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 Ci({obsidianComponent:n,parentUlElement:t,taskLayoutOptions:new Br,queryLayoutOptions:new Zi});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",v=Number.parseInt(T,10),O=yield c.renderTaskLine({task:p,taskIndex:v,isTaskInQueryFile:!0}),E=b.childNodes;for(let q=0;q<E.length;q=q+1){let ae=E[q],H=ae.nodeName.toLowerCase();H==="div"?O.prepend(ae):(H==="ul"||H==="ol")&&O.append(ae)}let P=b.querySelectorAll("[data-footnote-id]"),Y=O.querySelectorAll("[data-footnote-id]");if(P.length===Y.length)for(let q=0;q<P.length;q++)Y[q].replaceWith(P[q]);b.replaceWith(O)}})}};var bx=require("@codemirror/view"),Tx=require("obsidian");Nt();var vx=()=>bx.ViewPlugin.fromClass(kb),kb=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 n=e.closest("ul.plugin-tasks-query-result, div.callout-content");if(n){if(n.matches("div.callout-content")){let p=`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(p),new Tx.Notice(p,45e3)}return!1}let{state:i}=this.view,s=this.view.posAtDOM(e),a=i.doc.lineAt(s),o=pe.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(p=>p.toFileLineString()).join(i.lineBreak),c=a.to;if(u===""){let p=a.number<i.doc.lines?i.doc.line(a.number+1):null;p&&(c=p.from)}let d=i.update({changes:{from:a.from,to:c,insert:u}});if(this.view.dispatch(d),l.length===1){let p=l[0].status.symbol!==" ";setTimeout(()=>{e.checked=p},1)}return!0}};var Mi=require("obsidian"),wx=require("obsidian");function _x(r,t,e,n=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 Ln(r,n),l=new Oi().query(n);if(!(o.ignoreGlobalQuery||l.ignoreGlobalQuery)&&e.hasInstructions()){let c=e.query(n);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 kf(r,t,e){let i=new Oi().query(e).append(new Ln(r,e));return i.ignoreGlobalQuery?i:t.query(e).append(i)}Vi();pn();function Ru(r,t,e){t&&r.push(KY(e))}function KY(r){return`tasks-layout-hide-${r}`}var Sf=class{constructor(t){t?this.queryLayoutOptions=t:this.queryLayoutOptions=new Zi}getHiddenClasses(){let t=[],e=[[this.queryLayoutOptions.hideUrgency,"urgency"],[this.queryLayoutOptions.hideBacklinks,"backlinks"],[this.queryLayoutOptions.hideEditButton,"edit-button"],[this.queryLayoutOptions.hidePostponeButton,"postpone-button"]];for(let[n,i]of e)Ru(t,n,i);return this.queryLayoutOptions.shortMode&&t.push("tasks-layout-short-mode"),t}};Fs();var Df=class{constructor(t){t?this.taskLayoutOptions=t:this.taskLayoutOptions=new Br}generateHiddenClasses(){let t=[];return this.taskLayoutOptions.toggleableComponents.forEach(e=>{Ru(t,!this.taskLayoutOptions.isShown(e),e)}),Ru(t,!this.taskLayoutOptions.areTagsShown(),"tags"),t}};Vt();var Cu=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}=re();return t.recordTimings}};Nt();var Sb=require("obsidian");var ls=class extends ss{constructor(t,e,n=ri){super(n);let i=(u,c,d,f,p,b)=>{var E;let T=!1,v=Do(e);if(v){let{postponedDate:P}=b(e,v,d,f);(E=e[v])!=null&&E.isSame(P,"day")&&(T=!0)}let O=p(e,f,d);c.setChecked(T).setTitle(O).onClick(()=>ls.postponeOnClickCallback(u,e,f,d,b,n))},s=lx,a=nx;this.addItem(u=>i(t,u,"days",0,s,a)),this.addItem(u=>i(t,u,"day",1,s,a)),this.addSeparator();let o=vb,l=Tb;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,ux,rx))}static postponeOnClickCallback(o,l,u,c){return I(this,arguments,function*(t,e,n,i,s=Tb,a=ri){var b;let d=Do(e);if(d===null){let T="\u26A0\uFE0F Postponement requires a date: due, scheduled or start.";return new Sb.Notice(T,1e4)}let{postponedDate:f,postponedTask:p}=s(e,d,i,n);(b=e[d])!=null&&b.isSame(f,"day")||(yield a(e,p),ls.postponeSuccessCallback(t,d,f))})}static postponeSuccessCallback(t,e,n){t.style.pointerEvents="none";let i=ax(n,e);new Sb.Notice(i,2e3)}};var Ef=class{constructor(t,e,n,i,s,a=Ci.obsidianMarkdownRenderer){switch(this.source=e,this._tasksFile=n,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 kf(this.source,fr.getInstance(),this.tasksFile)}get tasksFile(){return this._tasksFile}setTasksFile(t){this._tasksFile=t,this.rereadQueryFromFile()}rereadQueryFromFile(){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,n,i){return I(this,null,function*(){t==="Warm"&&this.query.error===void 0?yield this.renderQuerySearchResults(e,t,n,i):this.query.error!==void 0?this.renderErrorMessage(n,this.query.error):this.renderLoadingMessage(n)})}renderQuerySearchResults(t,e,n,i){return I(this,null,function*(){let s=this.explainAndPerformSearch(e,t,n);if(s.searchErrorMessage!==void 0){this.renderErrorMessage(n,s.searchErrorMessage);return}yield this.renderSearchResults(s,n,i)})}explainAndPerformSearch(t,e,n){let i=new Cu(`Search: ${this.query.queryId} - ${this.filePath}`);i.start(),this.query.debug(`[render] Render called: plugin state: ${t}; searching ${e.length} tasks`),this.query.queryLayoutOptions.explainQuery&&this.createExplanation(n);let s=this.query.applyQueryToTasks(e);return i.finish(),s}renderSearchResults(t,e,n){return I(this,null,function*(){let i=new Cu(`Render: ${this.query.queryId} - ${this.filePath}`);i.start(),yield this.addAllTaskGroups(t.taskGroups,e,n);let s=t.totalTasksCount;this.addTaskCount(e,t),this.query.debug(`[render] ${s} tasks displayed`),i.finish()})}renderErrorMessage(t,e){t.createDiv().innerHTML=`<pre>Tasks query: ${e.replace(/\n/g,"<br>")}</pre>`}renderLoadingMessage(t){t.setText("Loading Tasks ...")}createExplanation(t){let e=_x(this.source,Ne.getInstance(),fr.getInstance(),this.tasksFile),n=lt("pre",t);n.classList.add("plugin-tasks-query-explanation"),n.setText(e),t.appendChild(n)}addAllTaskGroups(t,e,n){return I(this,null,function*(){for(let i of t.groups){yield this.addGroupHeadings(e,i.groupHeadings);let s=new Set;yield this.createTaskList(i.tasks,e,n,s)}})}createTaskList(t,e,n,i){return I(this,null,function*(){let s=lt("ul",e);s.classList.add("contains-task-list","plugin-tasks-query-result"),s.classList.add(...new Df(this.query.taskLayoutOptions).generateHiddenClasses()),s.classList.add(...new Sf(this.query.queryLayoutOptions).getHiddenClasses());let a=this.getGroupingAttribute();a&&a.length>0&&(s.dataset.taskGroupBy=a);let o=new Ci({textRenderer:this.textRenderer,obsidianComponent:this.obsidianComponent,parentUlElement:s,taskLayoutOptions:this.query.taskLayoutOptions,queryLayoutOptions:this.query.queryLayoutOptions});for(let[l,u]of t.entries())this.query.queryLayoutOptions.hideTree?u instanceof pe&&(yield this.addTask(s,o,u,l,n)):yield this.addTaskOrListItemAndChildren(s,o,u,l,n,t,i);e.appendChild(s)})}willBeRenderedLater(t,e,n){let i=t.findClosestParentTask();return i?!!(!e.has(i)&&n.includes(i)):!1}alreadyRendered(t,e){return e.has(t)}addTaskOrListItemAndChildren(t,e,n,i,s,a,o){return I(this,null,function*(){if(this.alreadyRendered(n,o)||this.willBeRenderedLater(n,o,a))return;let l=yield this.addTaskOrListItem(t,e,n,i,s);o.add(n),n.children.length>0&&(yield this.createTaskList(n.children,l,s,o),n.children.forEach(u=>{o.add(u)}))})}addTaskOrListItem(t,e,n,i,s){return I(this,null,function*(){return n instanceof pe?yield this.addTask(t,e,n,i,s):yield this.addListItem(t,e,n,i)})}addListItem(t,e,n,i){return I(this,null,function*(){return yield e.renderListItem(t,n,i)})}addTask(t,e,n,i,s){return I(this,null,function*(){let a=this.isFilenameUnique({task:n},s.allMarkdownFiles),o=yield e.renderTaskLine({task:n,taskIndex:i,isTaskInQueryFile:this.filePath===n.path,isFilenameUnique:a});o.querySelectorAll("[data-footnote-id]").forEach(d=>d.remove());let u=lt("span",o);u.classList.add("task-extras"),this.query.queryLayoutOptions.hideUrgency||this.addUrgency(u,n);let c=this.query.queryLayoutOptions.shortMode;return this.query.queryLayoutOptions.hideBacklinks||this.addBacklinks(u,n,c,a,s),this.query.queryLayoutOptions.hideEditButton||this.addEditButton(u,n,s),!this.query.queryLayoutOptions.hidePostponeButton&&tx(n)&&this.addPostponeButton(u,n,c),t.appendChild(o),o})}addEditButton(t,e,n){let i=lt("a",t);i.classList.add("tasks-edit"),i.title="Edit task",i.href="#",i.addEventListener("click",s=>n.editTaskPencilClickHandler(s,e,n.allTasks))}addUrgency(t,e){let n=new Intl.NumberFormat().format(e.urgency),i=lt("span",t);i.textContent=n,i.classList.add("tasks-urgency")}addGroupHeadings(t,e){return I(this,null,function*(){for(let n of e)yield this.addGroupHeading(t,n)})}addGroupHeading(t,e){return I(this,null,function*(){let n="h6";e.nestingLevel===0?n="h4":e.nestingLevel===1&&(n="h5");let i=lt(n,t);i.classList.add("tasks-group-heading"),this.obsidianComponent!==null&&(yield this.renderMarkdown(e.displayName,i,this.tasksFile.path,this.obsidianComponent))})}addBacklinks(t,e,n,i,s){var u;let a=lt("span",t);a.classList.add("tasks-backlink"),n||a.append(" (");let o=lt("a",a);o.rel="noopener",o.target="_blank",o.classList.add("internal-link"),n&&o.classList.add("internal-link-short-mode");let l;n?l=" \u{1F517}":l=(u=e.getLinkText({isFilenameUnique:i}))!=null?u:"",o.text=l,o.addEventListener("click",c=>I(this,null,function*(){yield s.backlinksClickHandler(c,e)})),o.addEventListener("mousedown",c=>I(this,null,function*(){yield s.backlinksMousedownHandler(c,e)})),n||a.append(")")}addPostponeButton(t,e,n){let s="day",a=ox(e,1,s),o=lt("a",t);o.classList.add("tasks-postpone"),n&&o.classList.add("tasks-postpone-short-mode"),o.title=a,o.addEventListener("click",l=>{l.preventDefault(),l.stopPropagation(),ls.postponeOnClickCallback(o,e,1,s)}),o.addEventListener("contextmenu",l=>I(this,null,function*(){l.preventDefault(),l.stopPropagation(),new ls(o,e).showAtPosition({x:l.clientX,y:l.clientY})}))}addTaskCount(t,e){if(!this.query.queryLayoutOptions.hideTaskCount){let n=lt("div",t);n.classList.add("task-count"),n.textContent=e.totalTasksCountDisplayText()}}isFilenameUnique({task:t},e){let n=t.path.match(/([^/]*)\..+$/i);if(n===null)return;let i=n[1];return e.filter(a=>{if(a.basename===i)return!0}).length<2}getGroupingAttribute(){let t=[];for(let e of this.query.grouping)t.push(e.property);return t.join(",")}};var xf=class{constructor({plugin:t,events:e}){this.addQueryRenderChild=this._addQueryRenderChild.bind(this);this.app=t.app,this.plugin=t,this.events=e,t.registerMarkdownCodeBlockProcessor("tasks",(n,i,s)=>{t.app.workspace.onLayoutReady(()=>{this.addQueryRenderChild(n,i,s)})})}_addQueryRenderChild(t,e,n){return I(this,null,function*(){let i=this.app,s=n.sourcePath,a=i.vault.getAbstractFileByPath(s),o=null;a&&a instanceof Mi.TFile&&(o=i.metadataCache.getFileCache(a));let l=new mt(s,o!=null?o:{}),u=new Db({app:i,plugin:this.plugin,events:this.events,container:e,source:t,tasksFile:l});n.addChild(u),u.load()})}},Db=class extends Mi.MarkdownRenderChild{constructor({app:e,plugin:n,events:i,container:s,source:a,tasksFile:o}){super(s);this.isCacheChangedSinceLastRedraw=!1;this.observer=null;this.queryResultsRenderer=new Ef(this.containerEl.className,a,o,Mi.MarkdownRenderer.renderMarkdown,this),this.queryResultsRenderer.query.debug("[render] QueryRenderChild.constructor() entered"),this.app=e,this.plugin=n,this.events=i,this.debouncedRenderFn=(0,Mi.debounce)(l=>this.render(l),300,!0)}onload(){this.queryResultsRenderer.query.debug("[render] QueryRenderChild.onload() entered"),this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.renderEventRef=this.events.onCacheUpdate(this.render.bind(this)),this.reloadSearchResultsEventRef=this.events.onReloadOpenSearchResults(this.rereadQueryFromFile.bind(this)),this.reloadQueryAtMidnight(),this.registerEvent(this.app.metadataCache.on("changed",(e,n,i)=>{let s=e.path;s===this.queryResultsRenderer.filePath&&this.handleMetadataOrFilePathChange(s,i)})),this.registerEvent(this.app.vault.on("rename",(e,n)=>{if(n!==this.queryResultsRenderer.filePath)return;let i=null;e&&e instanceof Mi.TFile&&(i=this.app.metadataCache.getFileCache(e)),this.handleMetadataOrFilePathChange(e.path,i)})),this.setupVisibilityObserver()}setupVisibilityObserver(){this.observer||(this.observer=new IntersectionObserver(([e])=>{!this.containerEl.isShown()||!e.isIntersecting||(this.queryResultsRenderer.query.debug(`[render][observer] Became visible, isCacheChangedSinceLastRedraw:${this.isCacheChangedSinceLastRedraw}`),this.isCacheChangedSinceLastRedraw&&(this.queryResultsRenderer.query.debug("[render][observer] ... updating search results"),this.render({tasks:this.plugin.getTasks(),state:this.plugin.getState()}).then().catch(n=>console.error(n))))}),this.observer.observe(this.containerEl))}handleMetadataOrFilePathChange(e,n){let i=this.queryResultsRenderer.tasksFile,s=new mt(e,n!=null?n:{}),a=i.path!==s.path,o=!i.rawFrontmatterIdenticalTo(s);(a||o)&&(this.queryResultsRenderer.setTasksFile(s),this.events.triggerRequestCacheUpdate(this.render.bind(this)))}onunload(){var e;this.queryResultsRenderer.query.debug("[render] QueryRenderChild.onunload() entered"),this.renderEventRef!==void 0&&this.events.off(this.renderEventRef),this.reloadSearchResultsEventRef!==void 0&&this.events.off(this.reloadSearchResultsEventRef),this.queryReloadTimeout!==void 0&&clearTimeout(this.queryReloadTimeout),this.debouncedRenderFn.cancel(),(e=this.observer)==null||e.disconnect(),this.observer=null}reloadQueryAtMidnight(){let e=new Date;e.setHours(24,0,0,0);let n=new Date,i=e.getTime()-n.getTime();this.queryReloadTimeout=setTimeout(()=>{this.queryResultsRenderer.query=kf(this.queryResultsRenderer.source,fr.getInstance(),this.queryResultsRenderer.tasksFile),this.events.triggerRequestCacheUpdate(this.render.bind(this)),this.reloadQueryAtMidnight()},i+1e3)}debouncedRender(e){this.debouncedRenderFn(e)}render(i){return I(this,arguments,function*({tasks:e,state:n}){this.isCacheChangedSinceLastRedraw=!0,requestAnimationFrame(()=>I(this,null,function*(){if(!this.containerEl.isConnected){this.queryResultsRenderer.query.debug("[render] Ignoring redraw request, as code block is not connected.");return}if(!this.containerEl.isShown()){this.queryResultsRenderer.query.debug("[render] Ignoring redraw request, as code block is not shown.");return}yield this.renderResults(n,e),this.isCacheChangedSinceLastRedraw=!1}))})}renderResults(e,n){return I(this,null,function*(){var s;let i=lt("div",this.containerEl);yield this.queryResultsRenderer.render(e,n,i,{allTasks:this.plugin.getTasks(),allMarkdownFiles:this.app.vault.getMarkdownFiles(),backlinksClickHandler:XY(this.app),backlinksMousedownHandler:JY(this.app),editTaskPencilClickHandler:ZY(this.app)}),(s=this.containerEl.firstChild)==null||s.replaceWith(i)})}rereadQueryFromFile(){this.queryResultsRenderer.rereadQueryFromFile(),this.isCacheChangedSinceLastRedraw=!0,this.debouncedRender({tasks:this.plugin.getTasks(),state:this.plugin.getState()})}};function ZY(r){return function(e,n,i){e.preventDefault();let s=o=>I(this,null,function*(){yield Nn({originalTask:n,newTasks:Ft.removeInferredStatusIfNeeded(n,o)})});new Qi({app:r,task:n,onSubmit:s,allTasks:i}).open()}}function XY(r){return function(e,n){return I(this,null,function*(){let i=yield Ly(n,r.vault);if(i){let[s,a]=i,o=r.workspace.getLeaf(wx.Keymap.isModEvent(e));e.preventDefault(),yield o.openFile(a,{eState:{line:s}})}})}}function JY(r){return function(e,n){return I(this,null,function*(){if(e.button===1){let i=yield Ly(n,r.vault);if(i){let[s,a]=i,o=r.workspace.getLeaf("tab");e.preventDefault(),yield o.openFile(a,{eState:{line:s}})}}})}}Vt();var Se=require("obsidian");Cn();Vr();Dr();ys();Ga();var Of=class{constructor(t){this._markdown="";this.columnNames=t,this.addTitleRow()}get markdown(){return this._markdown}addTitleRow(){let t="|",e="|";this.columnNames.forEach(n=>{t+=` ${n} |`,e+=" ----- |"}),this._markdown+=`${t}
`,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(n=>{e+=` ${n} |`}),e}};ys();pn();Cn();Dr();Vr();function kx(r,t){return r.findIndex(e=>e.symbol===t)}function Ai(r){return r===""?r:"`"+(r!==" "?r:"space")+"`"}function ej(r,t){let e=ge.getTypeForUnknownSymbol(r.symbol);if(r.type===e||e==="TODO"&&r.symbol!==" ")return;let n=Ai(r.symbol),i=Ai(e);t.push(M.t("reports.statusRegistry.messages.notConventionalType",{symbol:n,type:i}))}function tj(r,t,e){let n=t.nextStatusSymbol,i=kx(r,n);if(i===-1){let a=Ai(n);e.push(M.t("reports.statusRegistry.messages.nextSymbolUnknown",{symbol:a}));return}if(t.type!=="DONE")return;let s=r[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=Ai(s.type),l=[M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line1",{nextType:o}),M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line2"),M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line3",{helpURL:a})].join("<br>");e.push(l)}}else e.push(M.t("reports.statusRegistry.messages.cannotFindNextStatus"))}function nj(r,t,e){let n=[];if(t.symbol===ge.EMPTY.symbol)return n.push(M.t("reports.statusRegistry.messages.emptySymbol")),n;if(kx(r,t.symbol)!=e){let s=Ai(t.symbol);return n.push(M.t("reports.statusRegistry.messages.duplicateSymbol",{symbol:s})),n}return ej(t,n),tj(r,t,n),n}function Sx(r){let t=new Of([M.t("reports.statusRegistry.columnHeadings.statusSymbol"),M.t("reports.statusRegistry.columnHeadings.nextStatusSymbol"),M.t("reports.statusRegistry.columnHeadings.statusName"),M.t("reports.statusRegistry.columnHeadings.statusType"),M.t("reports.statusRegistry.columnHeadings.problems")]),e=et.allStatuses(r);return e.forEach((n,i)=>{t.addRow([Ai(n.symbol),Ai(n.nextStatusSymbol),n.name,Ai(n.type),nj(e,n,i).join("<br>")])}),t.markdown}function Dx(r){let t=new je;return et.applyToStatusRegistry(r,t),t.registeredStatuses.map((n,i)=>{let s=Ne.getInstance(),a=s.isEmpty()?"":s.get()+" ",o=`Sample task ${i+1}`,l=`status symbol=${Ai(n.symbol)}`,u=`status name='${n.name}'`;return`- [${n.symbol}] ${a}${o}: ${l} ${u}`})}function Ex(r,t,e,n){let s=Sx(r),a=t.mermaidDiagram(!0),o=Dx(r);return`# ${e}

## ${M.t("reports.statusRegistry.about.title")}

${M.t("reports.statusRegistry.about.createdBy",{version:n})}

${M.t("reports.statusRegistry.about.updateReport.line1")}

- ${M.t("reports.statusRegistry.about.updateReport.line2")}
- ${M.t("reports.statusRegistry.about.updateReport.line3")}

${M.t("reports.statusRegistry.about.deleteFileAnyTime")}

## ${M.t("reports.statusRegistry.statusSettings.title")}

<!--
${M.t("reports.statusRegistry.statusSettings.comment.line1")}
${M.t("reports.statusRegistry.statusSettings.comment.line2")}
${M.t("reports.statusRegistry.statusSettings.comment.line3")}
-->

${M.t("reports.statusRegistry.statusSettings.theseAreStatusValues")}

${s}
## ${M.t("reports.statusRegistry.loadedSettings.title")}

<!-- ${M.t("reports.statusRegistry.loadedSettings.switchToLivePreview")} -->

${M.t("reports.statusRegistry.loadedSettings.settingsActuallyUsed")}
${a}

## ${M.t("reports.statusRegistry.sampleTasks.title")}

${M.t("reports.statusRegistry.sampleTasks.line1")}

${M.t("reports.statusRegistry.sampleTasks.line2")}

${M.t("reports.statusRegistry.sampleTasks.line3")}

> [!Tip] ${M.t("reports.statusRegistry.sampleTasks.tip.line1")}
> ${M.t("reports.statusRegistry.sampleTasks.tip.line2",{url:"https://publish.obsidian.md/tasks/How+To/Style+custom+statuses"})}

${o.join(`
`)}

## ${M.t("reports.statusRegistry.searchSampleTasks.title")}

${M.t("reports.statusRegistry.searchSampleTasks.line1")}

\`\`\`tasks
path includes {{query.file.path}}
group by status.type
group by status.name
sort by function task.lineNumber
hide postpone button
short mode
\`\`\`
`}ys();function xx(){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 Ox(){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 Rx(){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"],["\u201C","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 Cx(){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 Mx(){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 Ax(){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 Px(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}function Nx(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}Vt();pn();Ga();var Ir=require("obsidian");Cn();Cn();Dr();Vr();var sa=class{validate(t){let e=[];return e.push(...this.validateSymbol(t)),e.push(...this.validateName(t)),e.push(...this.validateNextSymbol(t)),e}validateStatusCollectionEntry(t){let[e,n,i,s]=t,a=[];if(a.push(...this.validateType(s)),e===i&&s!=="NON_TASK"&&a.push(`Status symbol '${e}' toggles to itself`),a.length>0)return a;let o=ge.createFromImportedValue(t).configuration;return a.push(...this.validateSymbolTypeConventions(o)),a.push(...this.validate(o)),a}validateSymbol(t){return sa.validateOneSymbol(t.symbol,"Task Status Symbol")}validateNextSymbol(t){return sa.validateOneSymbol(t.nextStatusSymbol,"Task Next Status Symbol")}validateName(t){let e=[];return t.name.length===0&&e.push("Task Status Name cannot be empty."),e}validateType(t){let e=Bt[t],n=[];return e||n.push(`Status Type "${t}" is not a valid type`),e=="EMPTY"&&n.push('Status Type "EMPTY" is not permitted in user data'),n}validateSymbolTypeConventions(t){let e=[],n=t.symbol,i=new je,s=n==="X"?"x":n,a=i.bySymbol(s);return a.type!=="EMPTY"&&(t.nextStatusSymbol!==a.nextStatusSymbol&&e.push(`Next Status Symbol for symbol '${n}': '${t.nextStatusSymbol}' is inconsistent with convention '${a.nextStatusSymbol}'`),t.type!==a.type&&e.push(`Status Type for symbol '${n}': '${t.type}' is inconsistent with convention '${a.type}'`)),e}static validateOneSymbol(t,e){let n=[];return t.length===0&&n.push(`${e} cannot be empty.`),t.length>1&&n.push(`${e} ("${t}") must be a single character.`),n}};Dr();ys();var aa=new sa,Un=class extends Ir.Modal{constructor(e,n,i){super(e.app);this.plugin=e;this.saved=!1;this.error=!1;this.statusSymbol=n.symbol,this.statusName=n.name,this.statusNextSymbol=n.nextStatusSymbol,this.statusAvailableAsCommand=n.availableAsCommand,this.type=n.type,this.isCoreStatus=i}statusConfiguration(){return new gt(this.statusSymbol,this.statusName,this.statusNextSymbol,this.statusAvailableAsCommand,this.type)}display(){return I(this,null,function*(){let{contentEl:e}=this;e.empty();let n=e.createDiv(),i;new Ir.Setting(n).setName(M.t("modals.customStatusModal.editStatusSymbol.name")).setDesc(M.t("modals.customStatusModal.editStatusSymbol.description")).addText(u=>{i=u,u.setValue(this.statusSymbol).onChange(c=>{this.statusSymbol=c,Un.setValid(u,aa.validateSymbol(this.statusConfiguration()))})}).setDisabled(this.isCoreStatus).then(u=>{Un.setValid(i,aa.validateSymbol(this.statusConfiguration()))});let s;new Ir.Setting(n).setName(M.t("modals.customStatusModal.editStatusName.name")).setDesc(M.t("modals.customStatusModal.editStatusName.description")).addText(u=>{s=u,u.setValue(this.statusName).onChange(c=>{this.statusName=c,Un.setValid(u,aa.validateName(this.statusConfiguration()))})}).then(u=>{Un.setValid(s,aa.validateName(this.statusConfiguration()))});let a;new Ir.Setting(n).setName(M.t("modals.customStatusModal.editNextStatusSymbol.name")).setDesc(M.t("modals.customStatusModal.editNextStatusSymbol.description")).addText(u=>{a=u,u.setValue(this.statusNextSymbol).onChange(c=>{this.statusNextSymbol=c,Un.setValid(u,aa.validateNextSymbol(this.statusConfiguration()))})}).then(u=>{Un.setValid(a,aa.validateNextSymbol(this.statusConfiguration()))}),new Ir.Setting(n).setName(M.t("modals.customStatusModal.editStatusType.name")).setDesc(M.t("modals.customStatusModal.editStatusType.description")).addDropdown(u=>{["TODO","IN_PROGRESS","DONE","CANCELLED","NON_TASK"].forEach(d=>{u.addOption(d,d)}),u.setValue(this.type).onChange(d=>{this.type=ge.getTypeFromStatusTypeString(d)})}),ge.tasksPluginCanCreateCommandsForStatuses()&&new Ir.Setting(n).setName(M.t("modals.customStatusModal.editAvailableAsCommand.name")).setDesc(M.t("modals.customStatusModal.editAvailableAsCommand.description")).addToggle(u=>{u.setValue(this.statusAvailableAsCommand).onChange(c=>I(this,null,function*(){this.statusAvailableAsCommand=c}))});let o=e.createDiv(),l=new Ir.Setting(o);l.addButton(u=>(u.setTooltip("Save").setIcon("checkmark").onClick(()=>I(this,null,function*(){let c=aa.validate(this.statusConfiguration());if(c.length>0){let d=c.join(`
`)+`

`+M.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,n){n.length===0?Un.removeValidationError(e):Un.setValidationError(e)}};var Eb=require("obsidian");function Ix(r,t,e){if(t===e||!Object.prototype.hasOwnProperty.call(r,t))return F({},r);let n={};for(let[i,s]of Object.entries(r))i===t?n[e]=s:n[i]=s;return n}var Mu=class{constructor(t,e,n){this.originalName=t,this.isValid=e,this.errorMessage=n}},Rf=class{validateRenames(t){let e={};for(let[n,i]of Object.entries(t)){let s={};for(let[a,o]of Object.entries(t))a!==n&&(s[o]="");e[n]=this.validateRename(s,"",i)}return e}validateRename(t,e,n){if(!n||n.trim()==="")return new Mu(e,!1,"Preset name cannot be empty or all whitespace");for(let i of Object.keys(t))if(i!==e&&i.trim()===n.trim())return new Mu(e,!1,"A preset with this name already exists");return new Mu(e,!0,null)}addPreset(t){let e=this.generateUniqueKey(t),n=F({},t);return n[e]="",{presets:n,newKey:e}}renamePreset(t,e,n){return!n||n.trim()===""||(n=n.trim(),this.wouldCreateDuplicateKey(t,e,n))?null:Ix(t,e,n)}deletePreset(t,e){let n=F({},t);return delete n[e],n}updatePresetValue(t,e,n){let i=F({},t);return i[e]=n,i}wouldCreateDuplicateKey(t,e,n){let i=n.trim();if(e.trim()===i)return!1;for(let s of Object.keys(t))if(s!==e&&s.trim()===i)return!0;return!1}generateUniqueKey(t){let e="new_key",n=1;for(;Object.prototype.hasOwnProperty.call(t,`${e}_${n}`);)n++;return`${e}_${n}`}reorderPreset(t,e,n){let i=Object.keys(t),s=i.indexOf(e);if(s===-1||n<0||n>=i.length)return null;if(s===n)return F({},t);let a=[...i];a.splice(s,1),a.splice(n,0,e);let o={};for(let l of a)o[l]=t[l];return o}};Vt();var Cf=class{constructor(t,e){this.presetsSettingsService=new Rf;this.nameFields=new Map;this.plugin=t,this.events=e}renderPresetsSettings(t){let e=t.createDiv(),n=re(),i=()=>{e.empty(),this.nameFields.clear(),Object.entries(n.presets).forEach(([s,a])=>{this.renderPresetItem(e,n,s,a,i)})};i(),this.createAddNewPresetButton(t,n,i)}renderPresetItem(t,e,n,i,s){let a=t.createDiv({cls:"tasks-presets-wrapper"}),o=new Eb.Setting(a);o.settingEl.addClass("tasks-presets-setting"),a.draggable=!0,a.setAttribute("data-preset-key",n),o.addText(l=>{l.setPlaceholder("Name").setValue(n),l.inputEl.addClass("tasks-presets-key"),this.nameFields.set(n,{inputEl:l.inputEl,originalKey:n});let u=n;l.inputEl.addEventListener("input",d=>{u=d.target.value,this.validateAllInputs()});let c=()=>I(this,null,function*(){if(u&&u!==n){let d=this.presetsSettingsService.renamePreset(e.presets,n,u);d&&(yield this.savePresetsSettings(d,e,s))}});l.inputEl.addEventListener("blur",c),l.inputEl.addEventListener("keydown",d=>I(this,null,function*(){d.key==="Enter"&&(d.preventDefault(),l.inputEl.blur())}))}),o.addTextArea(l=>(l.inputEl.addClass("tasks-presets-value"),l.setPlaceholder("Query or filter text...").setValue(i),this.setupAutoResizingTextarea(l),l.onChange(u=>I(this,null,function*(){let c=this.presetsSettingsService.updatePresetValue(e.presets,n,u);yield this.savePresetsSettings(c,e,null)})))),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-drag-handle"),l.setIcon("grip-vertical").setTooltip("Drag to reorder"),l.extraSettingsEl.style.cursor="grab",l.extraSettingsEl.addEventListener("mousedown",u=>{l.extraSettingsEl.style.cursor="grabbing"}),l.extraSettingsEl.addEventListener("mouseup",u=>{l.extraSettingsEl.style.cursor="grab"})}),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-delete-button"),l.setIcon("cross").setTooltip("Delete").onClick(()=>I(this,null,function*(){let u=this.presetsSettingsService.deletePreset(e.presets,n);yield this.savePresetsSettings(u,e,s)}))}),this.setupDragAndDrop(a,n,e,s),o.infoEl.remove()}setupDragAndDrop(t,e,n,i){t.addEventListener("dragstart",s=>{s.dataTransfer&&(s.dataTransfer.setData("text/plain",e),s.dataTransfer.effectAllowed="move"),t.addClass("tasks-presets-dragging")}),t.addEventListener("dragend",s=>{t.removeClass("tasks-presets-dragging"),this.clearDropIndicators()}),t.addEventListener("dragover",s=>{s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="move"),this.showDropIndicator(t,s)}),t.addEventListener("dragleave",s=>{let a=t.getBoundingClientRect(),o=s.clientX,l=s.clientY;(o<a.left||o>a.right||l<a.top||l>a.bottom)&&this.clearDropIndicator(t)}),t.addEventListener("drop",s=>I(this,null,function*(){var c;s.preventDefault();let a=(c=s.dataTransfer)==null?void 0:c.getData("text/plain");if(!a||a===e){this.clearDropIndicators();return}let o=this.calculateDropPosition(t,s),l=this.getTargetIndex(e,o),u=this.presetsSettingsService.reorderPreset(n.presets,a,l);u&&(yield this.savePresetsSettings(u,n,i)),this.clearDropIndicators()}))}getTargetIndex(t,e){let n=re(),s=Object.keys(n.presets).indexOf(t);return e==="above"?s:s+1}showDropIndicator(t,e){this.clearDropIndicators(),this.calculateDropPosition(t,e)==="above"?t.addClass("tasks-presets-drop-above"):t.addClass("tasks-presets-drop-below")}calculateDropPosition(t,e){let n=t.getBoundingClientRect(),i=n.top+n.height/2;return e.clientY<i?"above":"below"}clearDropIndicators(){document.querySelectorAll(".tasks-presets-wrapper").forEach(e=>{this.clearDropIndicator(e)})}clearDropIndicator(t){t.removeClass("tasks-presets-drop-above"),t.removeClass("tasks-presets-drop-below")}validateAllInputs(){let t={};this.nameFields.forEach(({inputEl:n,originalKey:i})=>{t[i]=n.value});let e=this.presetsSettingsService.validateRenames(t);this.nameFields.forEach(({inputEl:n,originalKey:i})=>{var a;let s=e[i];s&&!s.isValid?(n.addClass("has-error"),n.title=(a=s.errorMessage)!=null?a:""):(n.removeClass("has-error"),n.title="")})}setupAutoResizingTextarea(t){let e=()=>{t.inputEl.style.height="auto",t.inputEl.style.height=`${t.inputEl.scrollHeight}px`};e(),t.inputEl.addEventListener("input",e)}createAddNewPresetButton(t,e,n){new Eb.Setting(t).addButton(i=>{i.setButtonText("Add new preset").setCta().onClick(()=>I(this,null,function*(){let{presets:s}=this.presetsSettingsService.addPreset(e.presets);yield this.savePresetsSettings(s,e,n)}))})}savePresetsSettings(t,e,n){return I(this,null,function*(){nt({presets:t}),yield this.plugin.saveSettings(),e.presets=F({},t),n&&n(),this.events.triggerReloadOpenSearchResults()})}};var Yt=class extends Se.PluginSettingTab{constructor({plugin:e,events:n}){super(e.app,e);this.customFunctions={insertTaskCoreStatusSettings:this.insertTaskCoreStatusSettings.bind(this),insertCustomTaskStatusSettings:this.insertCustomTaskStatusSettings.bind(this)};this.plugin=e,this.presetsSettingsUI=new Cf(e,n)}saveSettings(e){return I(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:M.t("settings.changeRequiresRestart")}),new Se.Setting(e).setName(M.t("settings.format.name")).setDesc(Yt.createFragmentWithHTML(`<p>${M.t("settings.format.description.line1")}</p><p>${M.t("settings.format.description.line2")}</p>`+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Reference/Task+Formats/About+Task+Formats"))).addDropdown(c=>{for(let d of Object.keys(Er))c.addOption(d,Er[d].getDisplayName());c.setValue(re().taskFormat).onChange(d=>I(this,null,function*(){nt({taskFormat:d}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.globalFilter.heading")).setHeading();let n=null;new Se.Setting(e).setName(M.t("settings.globalFilter.filter.name")).setDesc(Yt.createFragmentWithHTML(`<p><b>${M.t("settings.globalFilter.filter.description.line1")}</b></p><p>${M.t("settings.globalFilter.filter.description.line2")}<p><p>${M.t("settings.globalFilter.filter.description.line3")}</br>${M.t("settings.globalFilter.filter.description.line4")}</p>`+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Global+Filter"))).addText(c=>{c.setPlaceholder(M.t("settings.globalFilter.filter.placeholder")).setValue(Ne.getInstance().get()).onChange(d=>I(this,null,function*(){nt({globalFilter:d}),Ne.getInstance().set(d),yield this.plugin.saveSettings(),ii(n,d.length>0)}))}),n=new Se.Setting(e).setName(M.t("settings.globalFilter.removeFilter.name")).setDesc(M.t("settings.globalFilter.removeFilter.description")).addToggle(c=>{let d=re();c.setValue(d.removeGlobalFilter).onChange(f=>I(this,null,function*(){nt({removeGlobalFilter:f}),Ne.getInstance().setRemoveGlobalFilter(f),yield this.plugin.saveSettings()}))}),ii(n,re().globalFilter.length>0),new Se.Setting(e).setName(M.t("settings.globalQuery.heading")).setHeading(),sj(new Se.Setting(e).setDesc(Yt.createFragmentWithHTML(`<p>${M.t("settings.globalQuery.query.description")}</p>`+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Queries/Global+Query"))).addTextArea(c=>{let d=re();c.inputEl.rows=4,c.setPlaceholder("# "+M.t("settings.globalQuery.query.placeholder")).setValue(d.globalQuery).onChange(f=>I(this,null,function*(){nt({globalQuery:f}),fr.getInstance().set(f),yield this.plugin.saveSettings()}))})),new Se.Setting(e).setName(M.t("settings.presets.name")).setHeading().setDesc(Yt.createFragmentWithHTML("<p>"+M.t("settings.presets.line1",{name:"<code>name</code>",instruction1:"<code>preset name</code>",instruction2:"<code>{{preset.name}}</code>"})+"</p><p>"+M.t("settings.presets.line2")+"</p>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Queries/Presets"))),this.presetsSettingsUI.renderPresetsSettings(e),new Se.Setting(e).setName(M.t("settings.statuses.heading")).setHeading();let{headingOpened:i}=re();[{text:M.t("settings.statuses.coreStatuses.heading"),level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:"<p>"+M.t("settings.statuses.coreStatuses.description.line1")+"</p><p>"+M.t("settings.statuses.coreStatuses.description.line2")+"</p>"},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertTaskCoreStatusSettings",featureFlag:"",notice:null}]},{text:M.t("settings.statuses.customStatuses.heading"),level:"h3",class:"",open:!0,notice:{class:"setting-item-description",text:null,html:"<p>"+M.t("settings.statuses.customStatuses.description.line1")+"</p><p>"+M.t("settings.statuses.customStatuses.description.line2")+"</p><p>"+M.t("settings.statuses.customStatuses.description.line3")+`</p><p></p><p><a href="https://publish.obsidian.md/tasks/Getting+Started/Statuses">${M.t("settings.statuses.customStatuses.description.line4")}</a></p>`},settings:[{name:"",description:"",type:"function",initialValue:"",placeholder:"",settingName:"insertCustomTaskStatusSettings",featureFlag:"",notice:null}]}].forEach(c=>{var p;let d=(p=i[c.text])!=null?p:!0,f=this.addOneSettingsBlock(e,c,i);f.open=d}),new Se.Setting(e).setName(M.t("settings.dates.heading")).setHeading(),new Se.Setting(e).setName(M.t("settings.dates.createdDate.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.dates.createdDate.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Dates#Created+date"))).addToggle(c=>{let d=re();c.setValue(d.setCreatedDate).onChange(f=>I(this,null,function*(){nt({setCreatedDate:f}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.dates.doneDate.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.dates.doneDate.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Dates#Done+date"))).addToggle(c=>{let d=re();c.setValue(d.setDoneDate).onChange(f=>I(this,null,function*(){nt({setDoneDate:f}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.dates.cancelledDate.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.dates.cancelledDate.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Dates#Cancelled+date"))).addToggle(c=>{let d=re();c.setValue(d.setCancelledDate).onChange(f=>I(this,null,function*(){nt({setCancelledDate:f}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.datesFromFileNames.heading")).setHeading();let a=null,o=null;new Se.Setting(e).setName(M.t("settings.datesFromFileNames.scheduledDate.toggle.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.datesFromFileNames.scheduledDate.toggle.description.line1")+"</br>"+M.t("settings.datesFromFileNames.scheduledDate.toggle.description.line2")+"</br>"+M.t("settings.datesFromFileNames.scheduledDate.toggle.description.line3")+"</br>"+M.t("settings.datesFromFileNames.scheduledDate.toggle.description.line4")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Use+Filename+as+Default+Date"))).addToggle(c=>{let d=re();c.setValue(d.useFilenameAsScheduledDate).onChange(f=>I(this,null,function*(){nt({useFilenameAsScheduledDate:f}),ii(a,f),ii(o,f),yield this.plugin.saveSettings()}))}),a=new Se.Setting(e).setName(M.t("settings.datesFromFileNames.scheduledDate.extraFormat.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.datesFromFileNames.scheduledDate.extraFormat.description.line1")+`</br><p><a href="https://momentjs.com/docs/#/displaying/format/">${M.t("settings.datesFromFileNames.scheduledDate.extraFormat.description.line2")}</a></p>`)).addText(c=>{let d=re();c.setPlaceholder(M.t("settings.datesFromFileNames.scheduledDate.extraFormat.placeholder")).setValue(d.filenameAsScheduledDateFormat).onChange(f=>I(this,null,function*(){nt({filenameAsScheduledDateFormat:f}),yield this.plugin.saveSettings()}))}),o=new Se.Setting(e).setName(M.t("settings.datesFromFileNames.scheduledDate.folders.name")).setDesc(M.t("settings.datesFromFileNames.scheduledDate.folders.description")).addText(c=>I(this,null,function*(){let d=re();yield this.plugin.saveSettings(),c.setValue(Yt.renderFolderArray(d.filenameAsDateFolders)).onChange(f=>I(this,null,function*(){let p=Yt.parseCommaSeparatedFolders(f);nt({filenameAsDateFolders:p}),yield this.plugin.saveSettings()}))})),ii(a,re().useFilenameAsScheduledDate),ii(o,re().useFilenameAsScheduledDate),new Se.Setting(e).setName(M.t("settings.recurringTasks.heading")).setHeading(),new Se.Setting(e).setName(M.t("settings.recurringTasks.nextLine.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.recurringTasks.nextLine.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Recurring+Tasks"))).addToggle(c=>{let{recurrenceOnNextLine:d}=re();c.setValue(d).onChange(f=>I(this,null,function*(){nt({recurrenceOnNextLine:f}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.recurringTasks.removeScheduledDate.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.recurringTasks.removeScheduledDate.description.line1")+"</br>"+M.t("settings.recurringTasks.removeScheduledDate.description.line2")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Recurring+Tasks"))).addToggle(c=>{let{removeScheduledDateOnRecurrence:d}=re();c.setValue(d).onChange(f=>I(this,null,function*(){nt({removeScheduledDateOnRecurrence:f}),yield this.plugin.saveSettings()}))}),new Se.Setting(e).setName(M.t("settings.autoSuggest.heading")).setHeading();let l=null,u=null;new Se.Setting(e).setName(M.t("settings.autoSuggest.toggle.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.autoSuggest.toggle.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Auto-Suggest"))).addToggle(c=>{let d=re();c.setValue(d.autoSuggestInEditor).onChange(f=>I(this,null,function*(){nt({autoSuggestInEditor:f}),yield this.plugin.saveSettings(),ii(l,f),ii(u,f)}))}),l=new Se.Setting(e).setName(M.t("settings.autoSuggest.minLength.name")).setDesc(M.t("settings.autoSuggest.minLength.description")).addSlider(c=>{let d=re();c.setLimits(0,3,1).setValue(d.autoSuggestMinMatch).setDynamicTooltip().onChange(f=>I(this,null,function*(){nt({autoSuggestMinMatch:f}),yield this.plugin.saveSettings()}))}),u=new Se.Setting(e).setName(M.t("settings.autoSuggest.maxSuggestions.name")).setDesc(M.t("settings.autoSuggest.maxSuggestions.description")).addSlider(c=>{let d=re();c.setLimits(3,20,1).setValue(d.autoSuggestMaxItems).setDynamicTooltip().onChange(f=>I(this,null,function*(){nt({autoSuggestMaxItems:f}),yield this.plugin.saveSettings()}))}),ii(l,re().autoSuggestInEditor),ii(u,re().autoSuggestInEditor),new Se.Setting(e).setName(M.t("settings.dialogs.heading")).setHeading(),new Se.Setting(e).setName(M.t("settings.dialogs.accessKeys.name")).setDesc(Yt.createFragmentWithHTML(M.t("settings.dialogs.accessKeys.description")+"</br>"+this.seeTheDocumentation("https://publish.obsidian.md/tasks/Getting+Started/Create+or+edit+Task#Keyboard+shortcuts"))).addToggle(c=>{let d=re();c.setValue(d.provideAccessKeys).onChange(f=>I(this,null,function*(){nt({provideAccessKeys:f}),yield this.plugin.saveSettings()}))})}seeTheDocumentation(e){return`<p><a href="${e}">${M.t("settings.seeTheDocumentation")}</a>.</p>`}addOneSettingsBlock(e,n,i){let s=e.createEl("details",{cls:"tasks-nested-settings",attr:F({},n.open||i[n.text]?{open:!0}:{})});s.empty(),s.ontoggle=()=>{i[n.text]=s.open,nt({headingOpened:i}),this.plugin.saveSettings()};let a=s.createEl("summary");if(new Se.Setting(a).setHeading().setName(n.text),a.createDiv("collapser").createDiv("handle"),n.notice!==null){let o=s.createEl("div",{cls:n.notice.class,text:n.notice.text});n.notice.html!==null&&o.insertAdjacentHTML("beforeend",n.notice.html)}return n.settings.forEach(o=>{if(!(o.featureFlag!==""&&!XS(o.featureFlag))&&(o.type==="checkbox"?new Se.Setting(s).setName(o.name).setDesc(o.description).addToggle(l=>{let u=re();u.generalSettings[o.settingName]||$s(o.settingName,o.initialValue),l.setValue(u.generalSettings[o.settingName]).onChange(c=>I(this,null,function*(){$s(o.settingName,c),yield this.plugin.saveSettings()}))}):o.type==="text"?new Se.Setting(s).setName(o.name).setDesc(o.description).addText(l=>{let u=re();u.generalSettings[o.settingName]||$s(o.settingName,o.initialValue);let c=d=>I(this,null,function*(){$s(o.settingName,d),yield this.plugin.saveSettings()});l.setPlaceholder(o.placeholder.toString()).setValue(u.generalSettings[o.settingName].toString()).onChange((0,Se.debounce)(c,500,!0))}):o.type==="textarea"?new Se.Setting(s).setName(o.name).setDesc(o.description).addTextArea(l=>{let u=re();u.generalSettings[o.settingName]||$s(o.settingName,o.initialValue);let c=d=>I(this,null,function*(){$s(o.settingName,d),yield this.plugin.saveSettings()});l.setPlaceholder(o.placeholder.toString()).setValue(u.generalSettings[o.settingName].toString()).onChange((0,Se.debounce)(c,500,!0)),l.inputEl.rows=8,l.inputEl.cols=40}):o.type==="function"&&this.customFunctions[o.settingName](s,this),o.notice!==null)){let l=s.createEl("p",{cls:o.notice.class,text:o.notice.text});o.notice.html!==null&&l.insertAdjacentHTML("beforeend",o.notice.html)}}),s}static parseCommaSeparatedFolders(e){return e.split(",").map(n=>n.trim()).map(n=>n.replace(/^\/|\/$/g,"")).filter(n=>n!=="")}static renderFolderArray(e){return e.join(",")}insertTaskCoreStatusSettings(e,n){let{statusSettings:i}=re();i.coreStatuses.forEach(a=>{Fx(e,a,i.coreStatuses,i,n,n.plugin,!0)}),new Se.Setting(e).addButton(a=>{let o=M.t("settings.statuses.coreStatuses.buttons.checkStatuses.name");a.setButtonText(o).setCta().onClick(()=>I(this,null,function*(){let u=window.moment().format("YYYY-MM-DD HH-mm-ss"),c=`Tasks Plugin - ${o} ${u}.md`,d=this.plugin.manifest.version,f=je.getInstance(),p=Ex(i,f,o,d),b=yield this.app.vault.create(c,p);yield this.app.workspace.getLeaf(!0).openFile(b)})),a.setTooltip(M.t("settings.statuses.coreStatuses.buttons.checkStatuses.tooltip"))}).infoEl.remove()}insertCustomTaskStatusSettings(e,n){let{statusSettings:i}=re();i.customStatuses.forEach(u=>{Fx(e,u,i.customStatuses,i,n,n.plugin,!1)}),e.createEl("div"),new Se.Setting(e).addButton(u=>{u.setButtonText(M.t("settings.statuses.customStatuses.buttons.addNewStatus.name")).setCta().onClick(()=>I(this,null,function*(){et.addStatus(i.customStatuses,new gt("","","",!1,"TODO")),yield Ro(i,n)}))}).infoEl.remove();let a=[[M.t("settings.statuses.collections.anuppuccinTheme"),xx()],[M.t("settings.statuses.collections.auraTheme"),Ox()],[M.t("settings.statuses.collections.borderTheme"),Rx()],[M.t("settings.statuses.collections.ebullientworksTheme"),Cx()],[M.t("settings.statuses.collections.itsThemeAndSlrvbCheckboxes"),Mx()],[M.t("settings.statuses.collections.minimalTheme"),Px()],[M.t("settings.statuses.collections.thingsTheme"),Nx()],[M.t("settings.statuses.collections.lytModeTheme"),Ax()]];for(let[u,c]of a)new Se.Setting(e).addButton(f=>{let p=M.t("settings.statuses.collections.buttons.addCollection.name",{themeName:u,numberOfStatuses:c.length});f.setButtonText(p).onClick(()=>I(this,null,function*(){yield ij(c,i,n)}))}).infoEl.remove();new Se.Setting(e).addButton(u=>{u.setButtonText(M.t("settings.statuses.customStatuses.buttons.addAllUnknown.name")).setCta().onClick(()=>I(this,null,function*(){let d=this.plugin.getTasks().map(p=>p.status),f=je.getInstance().findUnknownStatuses(d);f.length!==0&&(f.forEach(p=>{et.addStatus(i.customStatuses,p)}),yield Ro(i,n))}))}).infoEl.remove(),new Se.Setting(e).addButton(u=>{u.setButtonText(M.t("settings.statuses.customStatuses.buttons.resetCustomStatuses.name")).setWarning().onClick(()=>I(this,null,function*(){et.resetAllCustomStatuses(i),yield Ro(i,n)}))}).infoEl.remove()}},Au=Yt;Au.createFragmentWithHTML=e=>createFragment(n=>n.createDiv().innerHTML=e);function Fx(r,t,e,n,i,s,a){let o=r.createEl("pre");o.addClass("row-for-status"),o.textContent=new ge(t).previewText();let l=new Se.Setting(r);l.infoEl.replaceWith(o),a||l.addExtraButton(u=>{u.setIcon("cross").setTooltip("Delete").onClick(()=>I(this,null,function*(){et.deleteStatus(e,t)&&(yield Ro(n,i))}))}),l.addExtraButton(u=>{u.setIcon("pencil").setTooltip("Edit").onClick(()=>I(this,null,function*(){let c=new Un(s,t,a);c.onClose=()=>I(this,null,function*(){c.saved&&et.replaceStatus(e,t,c.statusConfiguration())&&(yield Ro(n,i))}),c.open()}))}),l.infoEl.remove()}function ij(r,t,e){return I(this,null,function*(){et.bulkAddStatusCollection(t,r).forEach(i=>{new Se.Notice(i)}),yield Ro(t,e)})}function Ro(r,t){return I(this,null,function*(){nt({statusSettings:r}),et.applyToStatusRegistry(r,je.getInstance()),yield t.saveSettings(!0)})}function sj(r){let{settingEl:t,infoEl:e,controlEl:n}=r,i=n.querySelector("textarea");i!==null&&(t.style.display="block",e.style.marginRight="0px",i.style.minWidth="-webkit-fill-available")}function ii(r,t){r?r.setVisibility(t):console.warn("Setting has not be initialised. Can update visibility of setting UI - in setSettingVisibility")}Vr();Ws();var us=require("obsidian");ed();Vt();oy();function aj(r){console.error(r),new us.Notice(r+`

This message has been written to the console.
`,1e4)}var Mf=class extends us.EditorSuggest{constructor(e,n,i){super(e);this.settings=n,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,n,i){if(!this.settings.autoSuggestInEditor||i===void 0)return null;let s=n.getLine(e.line);return HS(s,e,n)?{start:{line:e.line,ch:0},end:{line:e.line,ch:s.length},query:s}:null}getSuggestions(e){var c,d,f;if(e.file===void 0)return[];let n=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,n,i.ch,this.settings,s,l,a))!=null?f:[]).map(p=>de(F({},p),{context:e}))}getMarkdownFileInfo(e){return e.editor.cm.state.field(us.editorInfoField)}canSaveEdits(e){return e instanceof us.MarkdownView}renderSuggestion(e,n){n.setText(e.displayText)}selectSuggestion(e,n){return I(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=Jc(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},v=e.context.editor.getRange(b,T);if(v!==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: '${v}'

file: '${f.path}'
`;aj(O);return}e.context.editor.replaceRange(f.toFileLineString(),b,T)}else Nn({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 Lx=(r,t)=>{let e,n=new Promise((a,o)=>{e=a});return t(r,a=>{let o=a.map(l=>l.toFileLineString()).join(`
`);e(o)}).open(),n};var Ux=(r,t)=>{let e=Dd({line:"",path:""});return new Qi({app:r,task:e,onSubmit:t,allTasks:[]})};var Yx=r=>({createTaskLineModal:()=>Lx(r,Ux),executeToggleTaskDoneCommand:(t,e)=>qy(t,e).text});pn();var Af=class extends jx.Plugin{get apiV1(){return Yx(this.app)}onload(){return I(this,null,function*(){yield iT(),sn.registerConsoleLogger(),hy("info",M.t("main.loadingPlugin",{name:this.manifest.name,version:this.manifest.version})),yield this.loadSettings();let{loggingOptions:e}=re();sn.configure(e);let n=new cf({obsidianEvents:this.app.workspace});this.addSettingTab(new Au({plugin:this,events:n})),eE({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace}),yield this.loadTaskStatuses(),this.cache=new qs({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace,events:n}),this.inlineRenderer=new wf({plugin:this}),this.queryRenderer=new xf({plugin:this,events:n}),this.setObsidianPropertiesTypes(),this.registerEditorExtension(vx()),this.registerEditorSuggest(new Mf(this.app,re(),this)),new uf({plugin:this})})}loadTaskStatuses(){return I(this,null,function*(){let{statusSettings:e}=re();et.applyToStatusRegistry(e,je.getInstance())})}onunload(){var e;hy("info",M.t("main.unloadingPlugin",{name:this.manifest.name,version:this.manifest.version})),(e=this.cache)==null||e.unload()}loadSettings(){return I(this,null,function*(){let e=yield this.loadData();nt(e),e=re(),Ne.getInstance().set(e.globalFilter),Ne.getInstance().setRemoveGlobalFilter(e.removeGlobalFilter),fr.getInstance().set(e.globalQuery),yield this.loadTaskStatuses()})}saveSettings(){return I(this,null,function*(){yield this.saveData(re())})}getTasks(){return this.cache===void 0?[]:this.cache.getTasks()}getState(){return this.cache===void 0?"Cold":this.cache.getState()}setObsidianPropertiesTypes(){var e;try{let n=this.app.metadataTypeManager,i=n.getAllProperties(),s=new Oi;for(let a of s.allPropertyNamesSorted()){let o=s.propertyType(a);((e=i[a])==null?void 0:e.type)!==o&&n.setType(a,o)}}catch(n){console.error("setObsidianPropertiesTypes error",n)}}};
/*!
 * 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 */