135 lines
668 KiB
JavaScript
135 lines
668 KiB
JavaScript
|
/*
|
|||
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|||
|
if you want to view the source visit the plugins github repository
|
|||
|
*/
|
|||
|
|
|||
|
var Hy=Object.create;var Na=Object.defineProperty;var By=Object.getOwnPropertyDescriptor;var Ky=Object.getOwnPropertyNames;var $y=Object.getPrototypeOf,Uy=Object.prototype.hasOwnProperty;var ju=t=>Na(t,"__esModule",{value:!0});var zu=(t,n)=>()=>(t&&(n=t(t=0)),n),Fe=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Yr=(t,n)=>{for(var e in n)Na(t,e,{get:n[e],enumerable:!0})},jy=(t,n,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ky(n))!Uy.call(t,r)&&r!=="default"&&Na(t,r,{get:()=>n[r],enumerable:!(e=By(n,r))||e.enumerable});return t},ge=t=>jy(ju(Na(t!=null?Hy($y(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var Ot=Fe((Pn,Fd)=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});function Sn(t){return typeof t=="object"&&!("toString"in t)?Object.prototype.toString.call(t).slice(8,-1):t}var wb=typeof process=="object"&&!0;function pn(t,n){if(!t)throw wb?new Error("Invariant failed"):new Error(n())}Pn.invariant=pn;var vl=Object.prototype.hasOwnProperty,Eb=Array.prototype.splice,Sb=Object.prototype.toString;function xr(t){return Sb.call(t).slice(8,-1)}var Wa=Object.assign||function(t,n){return yl(n).forEach(function(e){vl.call(n,e)&&(t[e]=n[e])}),t},yl=typeof Object.getOwnPropertySymbols=="function"?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function ar(t){return Array.isArray(t)?Wa(t.constructor(t.length),t):xr(t)==="Map"?new Map(t):xr(t)==="Set"?new Set(t):t&&typeof t=="object"?Wa(Object.create(Object.getPrototypeOf(t)),t):t}var Ld=function(){function t(){this.commands=Wa({},xb),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(n,e){return n===e},this.update.newContext=function(){return new t().update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(n){this.update.isEquals=n},enumerable:!0,configurable:!0}),t.prototype.extend=function(n,e){this.commands[n]=e},t.prototype.update=function(n,e){var r=this,i=typeof e=="function"?{$apply:e}:e;Array.isArray(n)&&Array.isArray(i)||pn(!Array.isArray(i),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),pn(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(r.commands).join(", ")+".")});var a=n;return yl(i).forEach(function(o){if(vl.call(r.commands,o)){var s=n===a;a=r.commands[o](i[o],a,i,n),s&&r.isEquals(a,n)&&(a=n)}else{var u=xr(n)==="Map"?r.update(n.get(o),i[o]):r.update(n[o],i[o]),l=xr(a)==="Map"?a.get(o):a[o];(!r.isEquals(u,l)||typeof u=="undefined"&&!vl.call(n,o))&&(a===n&&(a=ar(n)),xr(a)==="Map"?a.set(o,u):a[o]=u)}}),a},t}();Pn.Context=Ld;var xb={$push:function(t,n,e){return Pd(n,e,"$push"),t.length?n.concat(t):n},$unshift:function(t,n,e){return Pd(n,e,"$unshift"),t.length?t.concat(n):n},$splice:function(t,n,e,r){return kb(n,e),t.forEach(function(i){Od(i),n===r&&i.length&&(n=ar(r)),Eb.apply(n,i)}),n},$set:function(t,n,e){return Tb(e),t},$toggle:function(t,n){$i(t,"$toggle");var e=t.length?ar(n):n;return t.forEach(function(r){e[r]=!n[r]}),e},$unset:function(t,n,e,r){return $i(t,"$unset"),t.forEach(function(i){Object.hasOwnProperty.call(n,i)&&(n===r&&(n=ar(r)),delete n[i])}),n},$add:function(t,n,e,r){return Nd(n,"$add"),$i(t,"$add"),xr(n)==="Map"?t.forEach(function(i){var a=i[0],o=i[1];n===r&&n.get(a)!==o&&(n=ar(r)),n.set(a,o)}):t.forEach(function(i){n===r&&!n.has(i)&&(n=ar(r)),n.add(i)}),n},$remove:function(t,n,e,r){return Nd(n,"$remove"),$i(t,"$remove"),t.forEach(function(i){n===r&&n.has(i)&&(n=ar(r)),n.delete(i)}),n},$merge:function(t,n,e,r){return Mb(n,t),yl(t).forEach(function(i){t[i]!==n[i]&&(n===r&&(n=ar(r)),n[i]=t[i])}),n},$apply:function(t,n){return _b(t),t(n)}}
|
|||
|
Available method signatures are:
|
|||
|
animateScrollTo(y:number, options)
|
|||
|
animateScrollTo([x:number | null, y:number | null], options)
|
|||
|
animateScrollTo(scrollToElement:Element, options)`;return e+=a.horizontalOffset,r+=a.verticalOffset,d=c.getMaxHorizontalScroll(),f=c.getHorizontalScroll(),e>d&&(e=d),h=e-f,p=c.getMaxVerticalScroll(),g=c.getVerticalScroll(),r>p&&(r=p),w=r-g,S=Math.abs(Math.round(h/1e3*a.speed)),_=Math.abs(Math.round(w/1e3*a.speed)),k=S>_?S:_,k<a.minDuration?k=a.minDuration:k>a.maxDuration&&(k=a.maxDuration),[2,new Promise(function(A,D){h===0&&w===0&&A(!0),nr.remove(a.elementToScroll,!0);var N,K=function(){Y(),cancelAnimationFrame(N),A(!1)};nr.add(a.elementToScroll,K);var j=function(le){return le.preventDefault()},X=a.cancelOnUserAction?K:j,Q=a.cancelOnUserAction?{passive:!0}:{passive:!1},ie=["wheel","touchstart","keydown","mousedown"],Y=function(){ie.forEach(function(le){a.elementToScroll.removeEventListener(le,X,Q)})};ie.forEach(function(le){a.elementToScroll.addEventListener(le,X,Q)});var J=Date.now(),ne=function(){var le=Date.now()-J,de=le/k,fe=Math.round(f+h*a.easing(de)),he=Math.round(g+w*a.easing(de));le<k&&(fe!==e||he!==r)?(c.scrollTo(fe,he),N=requestAnimationFrame(ne)):(c.scrollTo(e,r),cancelAnimationFrame(N),Y(),nr.remove(a.elementToScroll,!1),A(!0))};N=requestAnimationFrame(ne)})]})})}rr.default=pk});var pv=Fe((Ts,tu)=>{(function(n,e){typeof Ts=="object"&&typeof tu=="object"?tu.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Ts=="object"?Ts.Choices=e():n.Choices=e()})(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,a){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(i&1&&(r=e(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var o in r)e.d(a,o,function(s){return r[s]}.bind(null,o));return a},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="/public/assets/scripts/",e(e.s=4)}([function(t,n,e){"use strict";var r=function(P){return i(P)&&!a(P)};function i(k){return!!k&&typeof k=="object"}function a(k){var P=Object.prototype.toString.call(k);return P==="[object RegExp]"||P==="[object Date]"||u(k)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(k){return k.$$typeof===s}function l(k){return Array.isArray(k)?[]:{}}function c(k,P){return P.clone!==!1&&P.isMergeableObject(k)?S(l(k),k,P):k}function d(k,P,A){return k.concat(P).map(function(D){return c(D,A)})}function f(k,P){if(!P.customMerge)return S;var A=P.customMerge(k);return typeof A=="function"?A:S}function h(k){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(k).filter(function(P){return k.propertyIsEnumerable(P)}):[]}function p(k){return Object.keys(k).concat(h(k))}function g(k,P){try{return P in k&&!(Object.hasOwnProperty.call(k,P)&&Object.propertyIsEnumerable.call(k,P))}catch(A){return!1}}function w(k,P,A){var D={};return A.isMergeableObject(k)&&p(k).forEach(function(N){D[N]=c(k[N],A)}),p(P).forEach(function(N){g(k,N)||(!A.isMergeableObject(P[N])||!k[N]?D[N]=c(P[N],A):D[N]=f(N,A)(k[N],P[N],A))}),D}function S(k,P,A){A=A||{},A.arrayMerge=A.arrayMerge||d,A.isMergeableObject=A.isMergeableObject||r,A.cloneUnlessOtherwiseSpecified=c;var D=Array.isArray(P),N=Array.isArray(k),K=D===N;return K?D?A.arrayMerge(k,P,A):w(k,P,A):c(P,A)}S.all=function(P,A){if(!Array.isArray(P))throw new Error("first argument should be an array");return P.reduce(function(D,N){return S(D,N,A)},{})};var _=S;t.exports=_},function(t,n,e){"use strict";(function(r,i){var a=e(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof r!="undefined"?o=r:o=i;var s=Object(a.a)(o);n.a=s}).
|
|||
|
Search pattern: "`.concat(w,'"'));var _=this._prepareSearchers(w),k=_.tokenSearchers,P=_.fullSearcher,A=this._search(k,P),D=A.weights,N=A.results;return this._computeScore(D,N),this.options.shouldSort&&this._sort(N),S.limit&&typeof S.limit=="number"&&(N=N.slice(0,S.limit)),this._format(N)}},{key:"_prepareSearchers",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=[];if(this.options.tokenize)for(var _=w.split(this.options.tokenSeparator),k=0,P=_.length;k<P;k+=1)S.push(new u(_[k],this.options));return{tokenSearchers:S,fullSearcher:new u(w,this.options)}}},{key:"_search",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=arguments.length>1?arguments[1]:void 0,_=this.list,k={},P=[];if(typeof _[0]=="string"){for(var A=0,D=_.length;A<D;A+=1)this._analyze({key:"",value:_[A],record:A,index:A},{resultMap:k,results:P,tokenSearchers:w,fullSearcher:S});return{weights:null,results:P}}for(var N={},K=0,j=_.length;K<j;K+=1)for(var X=_[K],Q=0,ie=this.options.keys.length;Q<ie;Q+=1){var Y=this.options.keys[Q];if(typeof Y!="string"){if(N[Y.name]={weight:1-Y.weight||1},Y.weight<=0||Y.weight>1)throw new Error("Key weight has to be > 0 and <= 1");Y=Y.name}else N[Y]={weight:1};this._analyze({key:Y,value:this.options.getFn(X,Y),record:X,index:K},{resultMap:k,results:P,tokenSearchers:w,fullSearcher:S})}return{weights:N,results:P}}},{key:"_analyze",value:function(w,S){var _=w.key,k=w.arrayIndex,P=k===void 0?-1:k,A=w.value,D=w.record,N=w.index,K=S.tokenSearchers,j=K===void 0?[]:K,X=S.fullSearcher,Q=X===void 0?[]:X,ie=S.resultMap,Y=ie===void 0?{}:ie,J=S.results,ne=J===void 0?[]:J;if(A!=null){var le=!1,de=-1,fe=0;if(typeof A=="string"){this._log(`
|
|||
|
Key: `.concat(_===""?"-":_));var he=Q.search(A);if(this._log('Full text: "'.concat(A,'", score: ').concat(he.score)),this.options.tokenize){for(var Te=A.split(this.options.tokenSeparator),C=[],I=0;I<j.length;I+=1){var tt=j[I];this._log(`
|
|||
|
Pattern: "`.concat(tt.pattern,'"'));for(var $e=!1,B=0;B<Te.length;B+=1){var z=Te[B],U=tt.search(z),G={};U.isMatch?(G[z]=U.score,le=!0,$e=!0,C.push(U.score)):(G[z]=1,this.options.matchAllTokens||C.push(1)),this._log('Token: "'.concat(z,'", score: ').concat(G[z]))}$e&&(fe+=1)}de=C[0];for(var we=C.length,Ee=1;Ee<we;Ee+=1)de+=C[Ee];de/=we,this._log("Token score average:",de)}var Pe=he.score;de>-1&&(Pe=(Pe+de)/2),this._log("Score average:",Pe);var rt=!this.options.tokenize||!this.options.matchAllTokens||fe>=j.length;if(this._log(`
|
|||
|
Check Matches: `.concat(rt)),(le||he.isMatch)&&rt){var gt=Y[N];gt?gt.output.push({key:_,arrayIndex:P,value:A,score:Pe,matchedIndices:he.matchedIndices}):(Y[N]={item:D,output:[{key:_,arrayIndex:P,value:A,score:Pe,matchedIndices:he.matchedIndices}]},ne.push(Y[N]))}}else if(c(A))for(var dt=0,un=A.length;dt<un;dt+=1)this._analyze({key:_,arrayIndex:dt,value:A[dt],record:D,index:N},{resultMap:Y,results:ne,tokenSearchers:j,fullSearcher:Q})}}},{key:"_computeScore",value:function(w,S){this._log(`
|
|||
|
|
|||
|
Computing score:
|
|||
|
`);for(var _=0,k=S.length;_<k;_+=1){for(var P=S[_].output,A=P.length,D=1,N=1,K=0;K<A;K+=1){var j=w?w[P[K].key].weight:1,X=(j===1?P[K].score:P[K].score||.001)*j;j!==1?N=Math.min(N,X):(P[K].nScore=X,D*=X)}S[_].score=N===1?D:N,this._log(S[_])}}},{key:"_sort",value:function(w){this._log(`
|
|||
|
|
|||
|
Sorting....`),w.sort(this.options.sortFn)}},{key:"_format",value:function(w){var S=[];if(this.options.verbose){var _=[];this._log(`
|
|||
|
|
|||
|
Output:
|
|||
|
|
|||
|
`,JSON.stringify(w,function(X,Q){if(o(Q)==="object"&&Q!==null){if(_.indexOf(Q)!==-1)return;_.push(Q)}return Q})),_=null}var k=[];this.options.includeMatches&&k.push(function(X,Q){var ie=X.output;Q.matches=[];for(var Y=0,J=ie.length;Y<J;Y+=1){var ne=ie[Y];if(ne.matchedIndices.length!==0){var le={indices:ne.matchedIndices,value:ne.value};ne.key&&(le.key=ne.key),ne.hasOwnProperty("arrayIndex")&&ne.arrayIndex>-1&&(le.arrayIndex=ne.arrayIndex),Q.matches.push(le)}}}),this.options.includeScore&&k.push(function(X,Q){Q.score=X.score});for(var P=0,A=w.length;P<A;P+=1){var D=w[P];if(this.options.id&&(D.item=this.options.getFn(D.item,this.options.id)[0]),k.length){for(var N={item:D.item},K=0,j=k.length;K<j;K+=1)k[K](D,N);S.push(N)}else S.push(D.item)}return S}},{key:"_log",value:function(){var w;this.options.verbose&&(w=console).log.apply(w,arguments)}}])&&s(h.prototype,p),g&&s(h,g),f}();r.exports=d},function(r,i,a){function o(d,f){for(var h=0;h<f.length;h++){var p=f[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(g,w){var S=w.location,_=S===void 0?0:S,k=w.distance,P=k===void 0?100:k,A=w.threshold,D=A===void 0?.6:A,N=w.maxPatternLength,K=N===void 0?32:N,j=w.isCaseSensitive,X=j!==void 0&&j,Q=w.tokenSeparator,ie=Q===void 0?/ +/g:Q,Y=w.findAllMatches,J=Y!==void 0&&Y,ne=w.minMatchCharLength,le=ne===void 0?1:ne;(function(de,fe){if(!(de instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:_,distance:P,threshold:D,maxPatternLength:K,isCaseSensitive:X,tokenSeparator:ie,findAllMatches:J,minMatchCharLength:le},this.pattern=this.options.isCaseSensitive?g:g.toLowerCase(),this.pattern.length<=K&&(this.patternAlphabet=l(this.pattern))}var f,h,p;return f=d,(h=[{key:"search",value:function(g){if(this.options.isCaseSensitive||(g=g.toLowerCase()),this.pattern===g)return{isMatch:!0,score:0,matchedIndices:[[0,g.length-1]]};var w=this.options,S=w.maxPatternLength,_=w.tokenSeparator;if(this.pattern.length>S)return s(g,this.pattern,_);var k=this.options,P=k.location,A=k.distance,D=k.threshold,N=k.findAllMatches,K=k.minMatchCharLength;return u(g,this.pattern,this.patternAlphabet,{location:P,distance:A,threshold:D,findAllMatches:N,minMatchCharLength:K})}}])&&o(f.prototype,h),p&&o(f,p),d}();r.exports=c},function(r,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;r.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a,"\\$&").replace(u,"|")),c=o.match(l),d=!!c,f=[];if(d)for(var h=0,p=c.length;h<p;h+=1){var g=c[h];f.push([o.indexOf(g),g.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:f}}},function(r,i,a){var o=a(5),s=a(6);r.exports=function(u,l,c,d){for(var f=d.location,h=f===void 0?0:f,p=d.distance,g=p===void 0?100:p,w=d.threshold,S=w===void 0?.6:w,_=d.findAllMatches,k=_!==void 0&&_,P=d.minMatchCharLength,A=P===void 0?1:P,D=h,N=u.length,K=S,j=u.indexOf(l,D),X=l.length,Q=[],ie=0;ie<N;ie+=1)Q[ie]=0;if(j!==-1){var Y=o(l,{errors:0,currentLocation:j,expectedLocation:D,distance:g});if(K=Math.min(Y,K),(j=u.lastIndexOf(l,D+X))!==-1){var J=o(l,{errors:0,currentLocation:j,expectedLocation:D,distance:g});K=Math.min(J,K)}}j=-1;for(var ne=[],le=1,de=X+N,fe=1<<X-1,he=0;he<X;he+=1){for(var Te=0,C=de;Te<C;)o(l,{errors:he,currentLocation:D+C,expectedLocation:D,distance:g})<=K?Te=C:de=C,C=Math.floor((de-Te)/2+Te);de=C;var I=Math.max(1,D-C+1),tt=k?N:Math.min(D+C,N)+X,$e=Array(tt+2);$e[tt+1]=(1<<he)-1;for(var B=tt;B>=I;B-=1){var z=B-1,U=c[u.charAt(z)];if(U&&(Q[z]=1),$e[B]=($e[B+1]<<1|1)&U,he!==0&&($e[B]|=(ne[B+1]|ne[B])<<1|1|ne[B+1]),$e[B]&fe&&(le=o(l,{errors:he,currentLocation:z,expectedLocation:D,distance:g}))<=K){if(K=le,(j=z)<=D)break;I=Math.max(1,2*D-j)}}if(o(l,{errors:he+1,currentLocation:D,expectedLocation:D,distance:g})>K)break;ne=$e}return{isMatch:j>=0,score:le===0?.001:le,matchedIndices:s(Q,A)}}},function(r,i){r.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,f=d===void 0?0:d,
|
|||
|
<span class='flatpickr-weekday'>
|
|||
|
${T.join("</span><span class='flatpickr-weekday'>")}
|
|||
|
</span>
|
|||
|
`}function he(){e.calendarContainer.classList.add("hasWeeks");let x=Ve("div","flatpickr-weekwrapper");x.appendChild(Ve("span","flatpickr-weekday",e.l10n.weekAbbreviation));let T=Ve("div","flatpickr-weeks");return x.appendChild(T),{weekWrapper:x,weekNumbers:T}}function Te(x,T=!0){let H=T?x:x-e.currentMonth;H<0&&e._hidePrevMonthArrow===!0||H>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=H,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Ke("onYearChange"),ie()),Q(),Ke("onMonthChange"),It())}function C(x=!0,T=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,T===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){let{hours:H,minutes:W,seconds:ae}=Io(e.config);f(H,W,ae)}e.redraw(),x&&Ke("onChange")}function I(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Ke("onClose")}function tt(){e.config!==void 0&&Ke("onDestroy");for(let x=e._handlers.length;x--;)e._handlers[x].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){let x=e.calendarContainer.parentNode;if(x.lastChild&&x.removeChild(x.lastChild),x.parentNode){for(;x.firstChild;)x.parentNode.insertBefore(x.firstChild,x);x.parentNode.removeChild(x)}}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(x=>{try{delete e[x]}catch(T){}})}function $e(x){return e.config.appendTo&&e.config.appendTo.contains(x)?!0:e.calendarContainer.contains(x)}function B(x){if(e.isOpen&&!e.config.inline){let T=Jt(x),H=$e(T),W=T===e.input||T===e.altInput||e.element.contains(T)||x.path&&x.path.indexOf&&(~x.path.indexOf(e.input)||~x.path.indexOf(e.altInput)),ae=x.type==="blur"?W&&x.relatedTarget&&!$e(x.relatedTarget):!W&&!H&&!$e(x.relatedTarget),Z=!e.config.ignoredFocusElements.some(ce=>ce.contains(T));ae&&Z&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&s(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function z(x){if(!x||e.config.minDate&&x<e.config.minDate.getFullYear()||e.config.maxDate&&x>e.config.maxDate.getFullYear())return;let T=x,H=e.currentYear!==T;e.currentYear=T||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)),H&&(e.redraw(),Ke("onYearChange"),ie())}function U(x,T=!0){var H;let W=e.parseDate(x,void 0,T);if(e.config.minDate&&W&&Gt(W,e.config.minDate,T!==void 0?T:!e.minDateHasTime)<0||e.config.maxDate&&W&&Gt(W,e.config.maxDate,T!==void 0?T:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(W===void 0)return!1;let ae=!!e.config.enable,Z=(H=e.config.enable)!==null&&H!==void 0?H:e.config.di
|
|||
|
`);Tt(s,u)}}catch(o){console.error(o),n.setError(o)}}var xm=ge(gc()),km=ge(Jp());function Xn(t){return Array.isArray?Array.isArray(t):Xp(t)==="[object Array]"}var LS=1/0;function PS(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-LS?"-0":n}function OS(t){return t==null?"":PS(t)}function Zn(t){return typeof t=="string"}function Gp(t){return typeof t=="number"}function NS(t){return t===!0||t===!1||FS(t)&&Xp(t)=="[object Boolean]"}function Qp(t){return typeof t=="object"}function FS(t){return Qp(t)&&t!==null}function on(t){return t!=null}function yc(t){return!t.trim().length}function Xp(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var RS="Incorrect 'index' type",HS=t=>`Invalid value for key ${t}`,BS=t=>`Pattern length exceeds max of ${t}.`,KS=t=>`Missing ${t} property in key`,$S=t=>`Property 'weight' in key '${t}' must be a positive integer`,Zp=Object.prototype.hasOwnProperty,em=class{constructor(n){this._keys=[],this._keyMap={};let e=0;n.forEach(r=>{let i=tm(r);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(r=>{r.weight/=e})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function tm(t){let n=null,e=null,r=null,i=1;if(Zn(t)||Xn(t))r=t,n=nm(t),e=bc(t);else{if(!Zp.call(t,"name"))throw new Error(KS("name"));let a=t.name;if(r=a,Zp.call(t,"weight")&&(i=t.weight,i<=0))throw new Error($S(a));n=nm(a),e=bc(a)}return{path:n,id:e,weight:i,src:r}}function nm(t){return Xn(t)?t:t.split(".")}function bc(t){return Xn(t)?t.join("."):t}function US(t,n){let e=[],r=!1,i=(a,o,s)=>{if(!!on(a))if(!o[s])e.push(a);else{let u=o[s],l=a[u];if(!on(l))return;if(s===o.length-1&&(Zn(l)||Gp(l)||NS(l)))e.push(OS(l));else if(Xn(l)){r=!0;for(let c=0,d=l.length;c<d;c+=1)i(l[c],o,s+1)}else o.length&&i(l,o,s+1)}};return i(t,Zn(n)?n.split("."):n,0),r?e:e[0]}var jS={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},zS={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},VS={location:0,threshold:.6,distance:100},qS={useExtendedSearch:!1,getFn:US,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},ke={...zS,...jS,...VS,...qS},WS=/[^ ]+/g;function YS(t=1,n=3){let e=new Map,r=Math.pow(10,n);return{get(i){let a=i.match(WS).length;if(e.has(a))return e.get(a);let o=1/Math.pow(a,.5*t),s=parseFloat(Math.round(o*r)/r);return e.set(a,s),s},clear(){e.clear()}}}var ss=class{constructor({getFn:n=ke.getFn,fieldNormWeight:e=ke.fieldNormWeight}={}){this.norm=YS(e,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((e,r)=>{this._keysMap[e.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zn(this.docs[0])?this.docs.forEach((n,e)=>{this._addString(n,e)}):this.docs.forEach((n,e)=>{this._addObject(n,e)}),this.norm.clear())}add(n){let e=this.size();Zn(n)?this._addString(n,e):this._addObject(n,e)}removeAt(n){this.records.splice(n,1);for(let e=n,r=this.size();e<r;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(n,e){return n[this._keysMap[e]]}size(){return this.records.length}_addString(n,e){if(!on(n)||yc(n))return;let r={v:n,i:e,n:this.norm.get(n)};this.records.push(r)}_addObject(n,e){let r={i:e,$:{}};this.keys.forEach((i,a)=>{let o=this.getFn(n,i.path);if(!!on(o)){if(Xn(o)){let s=[],u=[{nestedArrIndex:-1,value:o}];for(;u.length;){let{nestedArrIndex:l,value:c}=u.pop();if(!!on(c))if(Zn(c)&&!yc(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xn(c)&&c.forEach((d,f)=>{u.push({nestedArrIndex:f,value:d})})}r.$[a]=s}else if(!yc(o)){let s={v:o,n:this.norm.get(o)};r.$[a]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};function rm(t,n,{getFn:e=ke.getFn,fieldNormWeight:r=ke.fieldNormWeight}={}){let i=new ss({getFn:e,fieldNormWeight:r});return i.setKeys(t.map(tm)),i.setSources(n),i.create(),i}function JS(t,{getFn:n=ke.getFn,fieldNormWeight:e=ke.fieldNormWeight}={}){let{
|
|||
|
|
|||
|
`:" ";n.app.vault.cachedRead(i.item.file).then(c=>{let d=`${c.substring(0,i.item.block.end)}${l}^${u}${c.substring(i.item.block.end)}`;n.app.vault.modify(i.item.file,d)}).catch(c=>{n.setError(c),console.error(c)}),o+=u}a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,o,i.item.alias));let s=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!s?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!s&&a.push("]] "),a.join("")}}}var wx=/\B#([^\s]*)?$/;function Sm(t,n){return{id:"tag",match:wx,index:1,search:(e,r)=>{r(e?n.search(e,{limit:50}):t.slice(0,50).map((i,a)=>({item:i,refIndex:a})))},template:e=>e.item,replace:e=>`${e.item} `}}function Ex({inputRef:t,isAutocompleteVisibleRef:n,obsidianContext:e,excludeDatePicker:r}){let{stateManager:i,filePath:a,view:o}=e,s=null,u=null,l=i.getSetting("date-trigger"),c=new RegExp(`(?:^|\\s)${On(l)}$`),d=Object.keys(i.app.metadataCache.getTags()).sort(),f=new gn(d),h=i.app.metadataCache.getLinkSuggestions().filter(A=>!!A.file),p=new gn(h,{keys:["file.basename","alias"]}),g=o.app.vault.getConfig("autoPairBrackets"),w=[Sm(d,f),Ic(a,i,g,!0),Ic(a,i,g,!1),Ac(a,i,g,!0),Ac(a,i,g,!1),Cc(h,p,a,i,g,!0),Cc(h,p,a,i,g,!1)];r||w.push(vm(i));let S=new km.TextareaEditor(t.current),_=new xm.Textcomplete(S,w,{dropdown:{maxCount:96,className:`${$("autocomplete")} ${$("ignore-click-outside")}`,rotate:!0,item:{className:`${$("autocomplete-item")} ${$("ignore-click-outside")}`,activeClassName:`${$("autocomplete-item-active")} ${$("ignore-click-outside")}`}}}),k=()=>{_.isShown()||(n.current=!1),u.destroy(),s.remove(),setTimeout(()=>s=null)};_.on("show",()=>{n.current=!0}),_.on("hidden",()=>{n.current=!1});let P;return r||(P=A=>{if(_.isShown&&["#","^"].contains(A.key)){let N=_.dropdown.getActiveItem(),K=N==null?void 0:N.searchResult;if(K&&K.strategy.props.id.startsWith("link")){A.preventDefault(),S.applySearchResult(K),Tt(t.current,A.key==="^"?"#^":"#");return}}if(!s)return;if(A.key==="Enter"){A.preventDefault();let N=u.selectedDates;return N.length?us(N[0],t,i):us(new Date,t,i),k()}if(A.key==="Escape")return A.preventDefault(),k();let D=(0,_m.moment)(u.selectedDates[0]||new Date);if(A.key==="ArrowRight"){A.preventDefault(),D.weekday()===6?u.setDate(bm(D).toDate(),!1):u.setDate(D.add(1,"day").toDate(),!1);return}if(A.key==="ArrowLeft"){A.preventDefault(),D.weekday()===0?u.setDate(ym(D).toDate(),!1):u.setDate(D.subtract(1,"day").toDate(),!1);return}if(A.key==="ArrowUp"){A.preventDefault(),u.setDate(D.subtract(1,"week").toDate(),!1);return}if(A.key==="ArrowDown"){A.preventDefault(),u.setDate(D.add(1,"week").toDate(),!1);return}},t.current.addEventListener("keydown",P),S.on("change",A=>{let D=A.detail.beforeCursor;if(D&&c.test(D)){let N=S.getCursorOffset();s?(s.style.left=`${N.left||0}px`,s.style.top=`${N.top||0}px`,Dc(N,s)):s=document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},K=>{K.style.left=`${N.left||0}px`,K.style.top=`${N.top||0}px`,gm({div:K,inputRef:t,stateManager:i,cb:j=>{u=j,n.current=!0,Dc(N,s)}})})}else s&&k()})),()=>{!r&&t.current&&t.current.removeEventListener("keydown",P),s&&k(),_.destroy(),S.destroy()}}function Tm({isInputVisible:t,onEnter:n,onEscape:e,onKeyDown:r,excludeDatePicker:i}){let a=v.useContext(qe),o=v.useRef(!1),s=v.useRef(),{oncompositionstart:u,oncompositionend:l,getShouldIMEBlockAction:c}=Ga();return v.useEffect(()=>{let d=s.current;if(t&&d)return d.focus(),d.selectionStart=d.selectionEnd=d.value.length,Ex({inputRef:s,isAutocompleteVisibleRef:o,obsidianContext:a,excludeDatePicker:i})},[t]),{ref:s,oncompositionstart:u,oncompositionend:l,onKeyDownCapture:d=>{c()||o.current||r(d)||(d.key==="Enter"?n&&n(d):d.key==="Escape"&&e&&e(d))}}}var Mm=/^[*_]{2}(.+)[*_]{2}$/;function Sx(t){return t.replace(Mm,"$1")}var Dm=/^[*_]{1}(.+)[*_]{1}$/;function xx(t){return t.replace(Dm,"$1")}var Cm=/^`{1}(.+)`{1}$/;function kx(t){return t.replace(Cm,"$1")}var Am=/^={2}(.+)={2}$/;function _x(t){return t.replace(Am,"$1")}var Im=/^~{2}(.+)~{2}$/;function Tx(t){return t.replace(Im,"$1")}var Mx=/^(?:>.+?(?:[\r\n]|$))+$/;function Dx(t){return t.split(`
|
|||
|
`).map(e=>e[0]===">"?e:`> ${e}`).join(`
|
|||
|
`)}function Cx(t){return t.split(`
|
|||
|
`).map(e=>e[0]!==">"?e:e.replace(/^>+\s*/,"")).join(`
|
|||
|
`)}var va=/^(?:\s*\d+[.)]\s+.+?(?:[\r\n]|$))+$/,Lc=/^(?:\s*\d+[.)]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,Pc=/^(?:\s*\d+[.)]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function Ax(t){return t.match(/^\s*/)[0].length}function Ix(t){return parseInt(t.match(/^\s*(\d+)/)[1],10)}function Lx(t){let n=[0],e=0;return t.split(`
|
|||
|
`).map(r=>{let i=Ax(r);if(i>e?n.push(0):i<e&&n.pop(),e=i,va.test(r)){let a=Ix(r);return n[n.length-1]=a,r}return n[n.length-1]=n[n.length-1]+1,r.replace(/^(\s*)/,`$1${n[n.length-1]}. `)}).join(`
|
|||
|
`)}function Px(t){return t.split(`
|
|||
|
`).map(n=>va.test(n)?n.replace(/^(\s*)\d+[.)]\s+/,"$1"):n).join(`
|
|||
|
`)}var ya=/^(?:\s*[-*+]\s+.+?(?:[\r\n]|$))+$/,Oc=/^(?:\s*[-*+]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,Nc=/^(?:\s*[-*+]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function Lm(t){return t.split(`
|
|||
|
`).map(e=>ya.test(e)?e:e.replace(/^(\s*)/,"$1- ")).join(`
|
|||
|
`)}function Ox(t){return t.split(`
|
|||
|
`).map(n=>Oc.test(n)||Nc.test(n)?n:n.replace(/^(\s*[-*+]\s+)/,"$1[ ] ")).join(`
|
|||
|
`)}function Nx(t){return t.split(`
|
|||
|
`).map(n=>Lc.test(n)||Pc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)/,"$1[ ] ")).join(`
|
|||
|
`)}function Fx(t){return t.split(`
|
|||
|
`).map(n=>Oc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")).join(`
|
|||
|
`)}function Rx(t){return t.split(`
|
|||
|
`).map(n=>Lc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[[^\]]{1}\]/,"$1[ ]")).join(`
|
|||
|
`)}function Hx(t){return t.split(`
|
|||
|
`).map(n=>Nc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[\s\]/,"$1[x]")).join(`
|
|||
|
`)}function Bx(t){return t.split(`
|
|||
|
`).map(n=>Pc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[\s\]/,"$1[x]")).join(`
|
|||
|
`)}function Kx(t){return t.split(`
|
|||
|
`).map(e=>ya.test(e)?e.replace(/^(\s*)[-+*]\s+/,"$1"):e).join(`
|
|||
|
`)}var Pm={"editor:toggle-bold":t=>{Ei(t,Mm,Sx,"**")},"editor:toggle-code":t=>{Ei(t,Cm,kx,"`")},"editor:toggle-italics":t=>{Ei(t,Dm,xx,"*")},"editor:toggle-highlight":t=>{Ei(t,Am,_x,"==")},"editor:toggle-strikethrough":t=>{Ei(t,Im,Tx,"~~")},"editor:toggle-blockquote":t=>{zo(t,Mx,Dx,Cx)},"editor:toggle-bullet-list":t=>{zo(t,ya,Lm,Kx)},"editor:toggle-numbered-list":t=>{zo(t,va,Lx,Px)},"editor:toggle-checklist-status":t=>{let n=Hn(t),e=wi({text:n.text,selection:n.selection}),r=Rt(t,e),i=r.selectedText,a=ya.test(i),o=va.test(i);!a&&!o?i=Lm(i):a?Oc.test(i)?i=Hx(i):Nc.test(i)?i=Fx(i):i=Ox(i):Lc.test(i)?i=Bx(i):Pc.test(i)?i=Rx(i):i=Nx(i);let s=Tt(t,i);Rt(t,{start:r.selection.start,end:s.selection.end})}},Fc={"(":t=>rn(t,"(",")",!1),"[":t=>rn(t,"[","]",!1,!0),"{":t=>rn(t,"{","}",!1),"'":t=>rn(t,"'","'",!1),'"':t=>rn(t,'"','"',!1)},Rc={"*":t=>rn(t,"*","*",!1),_:t=>rn(t,"_","_",!1),"`":t=>rn(t,"`","`",!1),"=":t=>rn(t,"=","=",!0),"~":t=>rn(t,"~","~",!0),$:t=>rn(t,"$","$",!0),"%":t=>rn(t,"%","%",!0)},$x={"(":")","[":"]","{":"}","'":"'",'"':'"',"*":"*",_:"_","`":"`","=":"=","~":"~",$:"$","%":"%"};function Om(t,n){let e=Hn(t);if(e.selection.end!==e.selection.start||e.selection.end===e.text.length)return!1;let r=e.text[e.selection.end-1],i=e.text[e.selection.end];if(n[r]&&i===$x[r])return Rt(t,{start:e.selection.end,end:e.selection.end+1}),Tt(t,""),!0}function Nm(t){return Om(t,Fc)}function Fm(t){return Om(t,Rc)}function Ux(t,n,e){let r=n?" ":" ".repeat(e);return t.split(`
|
|||
|
`).map(i=>r+i).join(`
|
|||
|
`)}function jx(t,n,e){let r=n?"\\t":" ".repeat(e),i=new RegExp(`^${r}`);return t.split(`
|
|||
|
`).map(a=>i.test(a)?a.replace(i,""):a).join(`
|
|||
|
`)}function Rm(t,n,e,r){let i=Hn(t);if(n){let l=wi(i),c=Rt(t,l);if(Tt(t,jx(c.selectedText,e,r)),i.selection.start===i.selection.end){let d=e?1:r;Rt(t,{start:i.selection.start-d,end:i.selection.end-d})}return!0}let a=wi(i),o=Rt(t,a),u=Ux(o.selectedText,e,r).replace(/^(\s*)(\d+)([.)]\s)/,(l,c,d,f)=>`${c}1${f}`);return Tt(t,u),!0}function Hm(t){let n=Hn(t);if(n.selection.start!==n.selection.end)return!1;let e=wi(n),r=t.value.slice(e.start,n.selection.end),i=t.value.slice(e.start,e.end);if(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Rt(t,{start:e.start-1,end:e.end}),Tt(t,`
|
|||
|
`),!0;if(/^(\s*\d[.)]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Rt(t,{start:e.start-1,end:e.end}),Tt(t,`
|
|||
|
`),!0;if(ya.test(r)){let a=r.match(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)/)[1];return pa(t,`
|
|||
|
${a.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")}`),!0}if(va.test(r)){let s=r.match(/^(\s*\d+[.)]\s+(?:\[[^\]]\]\s*)?)/)[1].replace(/^(\s*\d+[.)]\s+)\[[^\]]\]/,"$1[ ]").replace(/^(\s*)(\d+)/,(u,l,c)=>`${l}${parseInt(c)+1}`);return pa(t,`
|
|||
|
${s}`),!0}return!1}function tr(t,n){return n.getSetting("new-line-trigger")==="enter"?t.key==="Enter"&&!(t.shiftKey||t.metaKey||t.ctrlKey):t.key==="Enter"&&t.shiftKey}var gr=v.forwardRef(function({onEnter:n,onEscape:e,...r},i){let{view:a,stateManager:o}=v.useContext(qe),s=v.useMemo(()=>a.app.vault.getConfig("autoPairMarkdown"),[a]),u=v.useMemo(()=>a.app.vault.getConfig("autoPairBrackets"),[a]),l=v.useMemo(()=>a.app.vault.getConfig("useTab"),[a]),c=v.useMemo(()=>a.app.vault.getConfig("tabSize"),[a]),d=!!a.app.vault.getConfig("useMarkdownLinks"),f=Tm({isInputVisible:!0,onEnter:n,onEscape:e,onKeyDown:h=>{if(h.key==="Backspace"){let p=Nm(h.target);return p||Fm(h.target)}if(tr(h,o)){let p=Hm(h.target);if(p)return h.preventDefault(),p}if(h.key==="Tab")return h.preventDefault(),Rm(h.target,h.shiftKey,l,c);if(s){let p=Rc[h.key];if(p&&p(h.target))return h.preventDefault(),!0}if(u){if(d&&h.key==="[")return!1;let p=Fc[h.key];if(p&&p(h.target))return h.preventDefault(),!0}return!1}});return v.useEffect(()=>{let h=p=>{let g=Pm[p];g&&g(f.ref.current)};return a.emitter.on("hotkey",h),()=>{a.emitter.off("hotkey",h)}},[a]),v.createElement("div",{"data-replicated-value":r.value,className:$("grow-wrap")},v.createElement("textarea",{"data-ignore-drag":!0,rows:1,className:$("item-input"),...r,...f,ref:h=>{f.ref.current=h,i&&typeof i=="function"?i(h):i&&(i.current=h)}}))});var Uc=ge(Bm());var vr=ge(require("obsidian"));var Km={};var $m={};var Um={};var jm={"Open as kanban board":"\xD6ffne als Kanban-Board","Create new board":"Erstelle ein neues Board","Archive completed cards in active board":"Archiviere fertiggestellte Karten im aktiven Board","Error: current file is not a Kanban board":"Fehler: Momentan ge\xF6ffnete Datei ist kein Kanban-Board","Convert empty note to Kanban":"Konvertiere leere Notiz in ein Kanban-Board","Error: cannot create Kanban, the current note is not empty":"Fehler: Kanban konnte nicht erstellt werden, momentan ge\xF6ffnete Datei ist nicht leer","New kanban board":"Neues Kanban-Board","Untitled Kanban":"Unbenanntes Kanban","Toggle between Kanban and markdown mode":"Wechsle zwischen Kanban und Markdown Modus","Open as markdown":"\xD6ffne als Markdown","Open board settings":"\xD6ffne Board-Einstellungen","Archive completed cards":"Archiviere fertiggestellte Karten","Something went wrong":"Etwas ist schief gelaufen","You may wish to open as markdown and inspect or edit the file.":"Du kannst die Datei im Markdown Modus \xF6ffnen und \xFCberpr\xFCfen oder bearbeiten.","Are you sure you want to archive all completed cards on this board?":"Bist du dir sicher, dass du alle fertiggestellten Karten des Boards archivieren m\xF6chtest?",Complete:"Fertiggestellt",Archive:"Archiv","Invalid Kanban file: problems parsing frontmatter":"Fehlerhafte Kanban Datei: Probleme beim Parsen des Frontmatters","I don't know how to interpret this line:":"Ich wei\xDF nicht, wie ich diese Zeile interpretieren soll:",Untitled:"Unbenannt","Note: No template plugins are currently enabled.":"Beachte: Keine Template-Plugins sind derzeit aktiviert.",default:"Standard","Search...":"Suche...","These settings will take precedence over the default Kanban board settings.":"Diese Einstellung wird Vorrang vor der standard Kanban-Board Einstellung haben. ","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Stelle standard Kanban-Board Einstellungen ein. Einstellungen k\xF6nnen auf einer Board-f\xFCr-Board Basis \xFCberschrieben werden.","Note template":"Notiz Vorlage","This template will be used when creating new notes from Kanban cards.":"Diese Vorlage wird beim Erstellen neuer Notizen aus Kanban-Karten verwendet.","No template":"Keine Vorlage","Note folder":"Notiz Ordner","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.","Default folder":"Standard Ordner","Lane width":"Schienen Brei
|
|||
|
`)[0].trim(),h=f.replace(ok," ").trim(),p=/^!\[/.test(f);if(p){let A=h.replace(/!\[+([^\]]+).+$/,"$1").split(".");A.pop(),h=A.join(".").trim()}let g=i.getSetting("new-note-folder"),w=i.getSetting("new-note-template"),S=g?i.app.vault.getAbstractFileByPath(g):i.app.fileManager.getNewFileParent(i.file.path),_=await i.app.fileManager.createNewMarkdownFile(S,h),k=i.app.workspace.splitActiveLeaf();await k.openFile(_),i.app.workspace.setActiveLeaf(k,!1,!0),await Gd(i,w);let P=n.data.titleRaw.replace(f,p?`[${f}](${encodeURIComponent(_.path)})`:i.app.fileManager.generateMarkdownLink(_,i.file.path));i.updateItemContent(n,P).then(A=>{r.updateItem(e,A)}).catch(A=>{i.setError(A),console.error(A)})})}).addItem(d=>{d.setIcon("links-coming-in").setTitle(F("Copy link to card")).onClick(()=>{if(n.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+n.data.blockId)}`);else{let f=Math.random().toString(36).substr(2,6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+f)}`),i.updateItemContent(n,`${n.data.titleRaw} ^${f}`).then(h=>{r.updateItem(e,h)}).catch(h=>{i.setError(h),console.error(h)})}})}).addSeparator(),/\n/.test(n.data.titleRaw)&&c.addItem(d=>{d.setIcon("split").setTitle(F("Split card")).onClick(async()=>{let f=n.data.titleRaw.split(/[\r\n]+/g).map(p=>p.trim()),h=await Promise.all(f.map(p=>i.getNewItem(p)));r.splitItem(e,h)})}),c.addItem(d=>{d.setIcon("documents").setTitle(F("Duplicate card")).onClick(()=>r.duplicateEntity(e))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card before")).onClick(async()=>r.insertItems(e,[await i.getNewItem("",!1,!0)]))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card after")).onClick(async()=>{let f=[...e];f[f.length-1]=f[f.length-1]+1,r.insertItems(f,[await i.getNewItem("",!1,!0)])})}).addItem(d=>{d.setIcon("sheets-in-box").setTitle(F("Archive card")).onClick(()=>r.archiveItem(e))}).addItem(d=>{d.setIcon("trash").setTitle(F("Delete card")).onClick(()=>r.deleteEntity(e))}).addSeparator().addItem(d=>{d.setIcon("calendar-with-checkmark").setTitle(u?F("Edit date"):F("Add date")).onClick(()=>{var f;Fo(i,s,Ro({stateManager:i,boardModifiers:r,item:n,hasDate:u,path:e}),(f=n.data.metadata.date)==null?void 0:f.toDate())})}),u&&(c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove date")).onClick(()=>{let f=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),p=f?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",g=new RegExp(`(^|\\s)${On(h)}${p}`),w=n.data.titleRaw.replace(g,"").trim();i.updateItemContent(n,w).then(S=>{r.updateItem(e,S)}).catch(S=>{i.setError(S),console.error(S)})})}),c.addItem(d=>{d.setIcon("clock").setTitle(l?F("Edit time"):F("Add time")).onClick(()=>{Ho(i,s,Bo({stateManager:i,boardModifiers:r,item:n,hasTime:l,path:e}),n.data.metadata.time)})}),l&&c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove time")).onClick(()=>{let f=i.getSetting("time-trigger"),h=new RegExp(`(^|\\s)${On(f)}{([^}]+)}`),p=n.data.titleRaw.replace(h,"").trim();i.updateItemContent(n,p).then(g=>{r.updateItem(e,g)}).catch(g=>{i.setError(g),console.error(g)})})})),c.showAtPosition(s)}},[t,n,e,r,i])}var yg=v.memo(function({isEditing:n,setIsEditing:e,showMenu:r}){let i=v.useMemo(()=>n?{"data-ignore-drag":!0}:{},[n]);return v.createElement("div",{...i,className:$("item-postfix-button-wrapper")},n?v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>{a.preventDefault()},onClick:()=>{e(!1)},className:`${$("item-postfix-button")} is-enabled`,"aria-label":F("Cancel")},v.createElement(Qt,{name:"cross"})):v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:r,className:$("item-postfix-button"),"aria-label":F("More options")},v.createElement(Qt,{name:"vertical-three-dots"})))});function bg({item:t,isSettingsVisible:n,searchQuery:e}){return n||!t.data.metadata.fileMetadata?null:v.createElement("div",{className:$("item-metadata-wrapper")},v.createElement(lk,{metadata:t.data.metadata.fileMetadata,order:t.data.metadata.fileMetadata
|
|||
|
`);function rv(t){return["","","%% kanban:settings","```",JSON.stringify(t),"```","%%"].join(`
|
|||
|
`)}function iv(t,n,e){let r=t.innerText.trim();if((n==null?void 0:n.length)&&(r+=" "+n.join(" ")),e){let i=Object.keys(e).join(" "),a=Object.values(e).map(o=>Array.isArray(o.value)?o.value.join(" "):o.value.toString()).join(" ");r+=" "+i+" "+a}return r.toLocaleLowerCase()}function Mk(t,n,e){var r,i,a;if(t.plugins.enabledPlugins.has("dataview")&&((a=(i=(r=t.plugins)==null?void 0:r.plugins)==null?void 0:i.dataview)==null?void 0:a.api))return t.plugins.plugins.dataview.api.page(n.path,e.path)}function eu(t,n){let e=t.getSetting("metadata-keys");if(!e.length)return{};if(!n)return{};let r=t.app.metadataCache.getFileCache(n),i=Mk(t.app,n,t.file);if(!r&&!i)return{};let a={},o={},s={},u=[],l=!1;return e.forEach(c=>{var d;if(!s[c.metadataKey]){if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let f=(r==null?void 0:r.tags)||[];if(Array.isArray((d=r==null?void 0:r.frontmatter)==null?void 0:d.tags)&&(f=[].concat(f,r.frontmatter.tags.map(h=>({tag:`#${h}`})))),(f==null?void 0:f.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:f.map(h=>h.tag).filter(h=>o[h]?!1:(o[h]=!0,!0))},l=!0;return}if((r==null?void 0:r.frontmatter)&&r.frontmatter[c.metadataKey])u.push(c.metadataKey),a[c.metadataKey]={...c,value:r.frontmatter[c.metadataKey]},l=!0;else if(i&&i[c.metadataKey]){let f=i[c.metadataKey],h=f.values||f.val||f;if(h===f&&typeof h=="object")h={...f};else if(!Array.isArray(h)&&typeof h!="string"&&typeof h!="number")return;u.push(c.metadataKey),a[c.metadataKey]={...c,value:h},l=!0}}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function av(t,n){return!t&&n?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","hide-date-in-title","hide-tags-in-title"].every(r=>t[r]===n[r])}function ov({onNewLane:t,closeLaneForm:n}){let{boardModifiers:e,stateManager:r}=v.useContext(qe),[i,a]=v.useState(!1),[o,s]=v.useState(""),u=v.useRef(),l=bs(()=>{n()},{ignoreClass:$("ignore-click-outside")});v.useLayoutEffect(()=>{var d;(d=u.current)==null||d.focus()},[]);let c=()=>{e.addLane({...pr,id:We(),children:[],data:{title:o,shouldMarkItemsComplete:i}}),s(""),a(!1),t()};return v.createElement("div",{ref:l,className:$("lane-form-wrapper")},v.createElement("div",{className:$("lane-input-wrapper")},v.createElement(gr,{ref:u,className:$("lane-input"),onChange:d=>s(d.target.value),onEnter:d=>{tr(d,r)||(d.preventDefault(),c())},onEscape:n,value:o})),v.createElement("div",{className:$("checkbox-wrapper")},v.createElement("div",{className:$("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>a(!i),className:`checkbox-container ${i?"is-enabled":""}`})),v.createElement("div",{className:$("lane-input-actions")},v.createElement("button",{className:$("lane-action-add"),onClick:c},F("Add list")),v.createElement("button",{className:$("lane-action-cancel"),onClick:n},F("Cancel"))))}var Dk=[Ze.Item,Ze.Lane],Ck=[Ze.Lane],uv=({view:t,stateManager:n})=>{let e=n.useState(),r=Gg(),i=v.useRef(null),a=v.useRef(null),[o,s]=v.useState(""),[u,l]=v.useState(!1),[c,d]=v.useState(""),[f,h]=v.useState((e==null?void 0:e.children.length)===0),p=n.file.path,g=n.useSetting("max-archive-size"),w=v.useCallback(()=>{(e==null?void 0:e.children.length)>0&&h(!1)},[e==null?void 0:e.children.length]);v.useEffect(()=>{(e==null?void 0:e.children.length)===0&&h(!0)},[e==null?void 0:e.children.length]);let S=v.useCallback(()=>{setTimeout(()=>{var K;let N=(K=i.current)==null?void 0:K.getElementsByClassName($("board"));N.length&&(0,sv.default)([N[0].scrollWidth,0],{elementToScroll:N[0],speed:300,minDuration:150,easing:j=>j===1?1:1-Math.pow(2,-10*j)})})},[]);v.useEffect(()=>{let N=j=>{j==="editor:open-search"&&l(X=>!X)},K=()=>{h(!0)};return t.emitter.on("hotkey",N),t.emitter.on("showLaneForm",K),()=>{t.emitter.off("hotkey",N),t.emitter.off("showLaneForm",K)}},[t]),v.useEffect(()=>{var N;u&&((N=a.current)==null||N.focus())},[u]),v.useEffect(()=>{let N=o.trim(),K;return N?K=window.setTimeout(()=>{d(N)},250):d(""),()=>{window.clearTimeout(K)}},[o]),v.useEffect(()=>{g===void 0||g===-1||typeof g=="number"&&(e==null?vo
|
|||
|
`)}var ka=function(t){Rk(n,t);function n(e,r,i,a,o){var s=this.constructor,u=t.call(this,Ev(e,{name:r,index:i,operation:a,tree:o}))||this;return u.name=r,u.index=i,u.operation=a,u.tree=o,Object.setPrototypeOf(u,s.prototype),u.message=Ev(e,{name:r,index:i,operation:a,tree:o}),u}return n}(Error);var st=ka,Bk=Mt,Mi={add:function(t,n,e){return t[n]=this.value,{newDocument:e}},remove:function(t,n,e){var r=t[n];return delete t[n],{newDocument:e,removed:r}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:function(t,n,e){var r=Fs(e,this.path);r&&(r=Mt(r));var i=Hr(e,{op:"remove",path:this.from}).removed;return Hr(e,{op:"add",path:this.path,value:i}),{newDocument:e,removed:r}},copy:function(t,n,e){var r=Fs(e,this.from);return Hr(e,{op:"add",path:this.path,value:Mt(r)}),{newDocument:e}},test:function(t,n,e){return{newDocument:e,test:_a(t[n],this.value)}},_get:function(t,n,e){return this.value=t[n],{newDocument:e}}},Kk={add:function(t,n,e){return Os(n)?t.splice(n,0,this.value):t[n]=this.value,{newDocument:e,index:n}},remove:function(t,n,e){var r=t.splice(n,1);return{newDocument:e,removed:r[0]}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:Mi.move,copy:Mi.copy,test:Mi.test,_get:Mi._get};function Fs(t,n){if(n=="")return t;var e={op:"_get",path:n};return Hr(t,e),e.value}function Hr(t,n,e,r,i,a){if(e===void 0&&(e=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),e&&(typeof e=="function"?e(n,0,t,n.path):Hs(n,0)),n.path===""){var o={newDocument:t};if(n.op==="add")return o.newDocument=n.value,o;if(n.op==="replace")return o.newDocument=n.value,o.removed=t,o;if(n.op==="move"||n.op==="copy")return o.newDocument=Fs(t,n.from),n.op==="move"&&(o.removed=t),o;if(n.op==="test"){if(o.test=_a(t,n.value),o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o.newDocument=t,o}else{if(n.op==="remove")return o.removed=t,o.newDocument=null,o;if(n.op==="_get")return n.value=t,o;if(e)throw new st("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,n,t);return o}}else{r||(t=Mt(t));var s=n.path||"",u=s.split("/"),l=t,c=1,d=u.length,f=void 0,h=void 0,p=void 0;for(typeof e=="function"?p=e:p=Hs;;){if(h=u[c],h&&h.indexOf("~")!=-1&&(h=xa(h)),i&&h=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(e&&f===void 0&&(l[h]===void 0?f=u.slice(0,c).join("/"):c==d-1&&(f=n.path),f!==void 0&&p(n,0,t,f)),c++,Array.isArray(l)){if(h==="-")h=l.length;else{if(e&&!Os(h))throw new st("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,n,t);Os(h)&&(h=~~h)}if(c>=d){if(e&&n.op==="add"&&h>l.length)throw new st("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,n,t);var o=Kk[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}}else if(c>=d){var o=Mi[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}if(l=l[h],e&&c<d&&(!l||typeof l!="object"))throw new st("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,n,t)}}}function Rs(t,n,e,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),e&&!Array.isArray(n))throw new st("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(t=Mt(t));for(var a=new Array(n.length),o=0,s=n.length;o<s;o++)a[o]=Hr(t,n[o],e,!0,i,o),t=a[o].newDocument;return a.newDocument=t,a}function $k(t,n,e){var r=Hr(t,n);if(r.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",e,n,t);return r.newDocument}function Hs(t,n,e,r){if(typeof t!="object"||t===null||Array.isArray(t))throw new st("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,e);if(Mi[t.op]){if(typeof t.p
|
|||
|
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u
|
|||
|
`;break}case-3:{o=`\r
|
|||
|
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}var Iu={};Yr(Iu,{attentionMarkers:()=>y_,contentInitial:()=>f_,disable:()=>b_,document:()=>d_,flow:()=>p_,flowInitial:()=>h_,insideSpan:()=>v_,string:()=>m_,text:()=>g_});var d_={[42]:Bt,[43]:Bt,[45]:Bt,[48]:Bt,[49]:Bt,[50]:Bt,[51]:Bt,[52]:Bt,[53]:Bt,[54]:Bt,[55]:Bt,[56]:Bt,[57]:Bt,[62]:Us},f_={[91]:xu},h_={[-2]:Ia,[-1]:Ia,[32]:Ia},p_={[35]:_u,[42]:$r,[45]:[Gs,$r],[60]:Mu,[61]:Gs,[95]:$r,[96]:Vs,[126]:Vs},m_={[38]:zs,[92]:js},g_={[-5]:La,[-4]:La,[-3]:La,[33]:Cu,[38]:zs,[42]:Aa,[60]:[bu,Du],[91]:Au,[92]:[ku,js],[93]:Kr,[95]:Aa,[96]:Eu},v_={null:[Aa,Qv]},y_={null:[42,95]},b_={null:[]};function ry(t={}){let n=Bv([Iu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:n,content:r(Vv),document:r(qv),flow:r(Gv),string:r(Xv),text:r(Zv)};return e;function r(i){return a;function a(o){return ny(e,i,o)}}}var iy=/[\0\t\n\r]/g;function ay(){let t=1,n="",e=!0,r;return i;function i(a,o,s){let u=[],l,c,d,f,h;for(a=n+a.toString(o),d=0,n="",e&&(a.charCodeAt(0)===65279&&d++,e=void 0);d<a.length;){if(iy.lastIndex=d,l=iy.exec(a),f=l&&l.index!==void 0?l.index:a.length,h=a.charCodeAt(f),!l){n=a.slice(d);break}if(h===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(a.slice(d,f)),t+=f-d),h){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}d=f+1}return s&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}function oy(t){for(;!qs(t););return t}function Qs(t,n){let e=Number.parseInt(t,n);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)==65535||(e&65535)==65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var w_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sy(t){return t.replace(w_,E_)}function E_(t,n,e){if(n)return n;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),a=i===120||i===88;return Qs(e.slice(a?2:1),a?16:10)}return Ci(e)||t}var Ai={}.hasOwnProperty;function Pa(t){return!t||typeof t!="object"?"":Ai.call(t,"position")||Ai.call(t,"type")?ly(t.position):Ai.call(t,"start")||Ai.call(t,"end")?ly(t):Ai.call(t,"line")||Ai.call(t,"column")?Lu(t):""}function Lu(t){return cy(t&&t.line)+":"+cy(t&&t.column)}function ly(t){return Lu(t&&t.start)+"-"+Lu(t&&t.end)}function cy(t){return t&&typeof t=="number"?t:1}var Pu={}.hasOwnProperty,Xs=function(t,n,e){return typeof n!="string"&&(e=n,n=void 0),S_(e)(oy(ry(e).document().write(ay()(t,n,!0))))};function S_(t={}){let n=uy({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Mn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:u(Xt),blockQuote:u(rt),characterEscape:ie,characterReference:ie,codeFenced:u(gt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(gt,l),codeText:u(dt,l),codeTextData:ie,data:ie,codeFlowValue:ie,definition:u(un),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(dn),hardBreakEscape:u(Ct),hardBreakTrailing:u(Ct),htmlFlow:u(Zt,l),htmlFlowData:ie,htmlText:u(Zt,l),htmlTextData:ie,image:u(Kn),label:l,link:u(Mn),listItem:u($n),listItemValue:g,listOrdered:u(yn,p),listUnordered:u(yn),paragraph:u(fn),reference:z,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(Xt),strong:u(yt),thematicBreak:u(it)},exit:{atxHeading:d(),atxHeadingSequence:K,autolink:d(),autolinkEmail:Pe,autolinkProtocol:Ee,blockQuote:d(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:we,codeFenced:d(k),codeFencedFence:_,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:Y,codeIndented:d(P),codeText:d(fe),codeTextData:Y,data:Y,definition:d(),definitionDestinationString:N,definitionLabelString:A,definitionTitleString:D,emphasis:d(),hardBreakEscape:d(ne),hardBreakTrailing:d(ne),htmlFlow:d(le),htmlFlowData:Y,htmlText:d(de),htmlTextData:Y,image:d(Te),label:I,labelText:C,lineEnding:J,link:d(he
|
|||
|
`),blockId:void 0,title:"",titleSearch:"",metadata:{dateStr:void 0,date:void 0,time:void 0,timeStr:void 0,tags:[],fileAccessor:void 0,file:void 0,fileMetadata:void 0,fileMetadataOrder:void 0},dom:void 0,isComplete:!!n.checked};return Iv(n,o=>o.type!=="paragraph",o=>{let s=o;if(s.type==="blockid")return a.blockId=s.value,!0;if(s.type==="hashtag")return a.metadata.tags||(a.metadata.tags=[]),a.metadata.tags.push("#"+s.value),i=$s(i,{start:o.position.start.offset-e.start,end:o.position.end.offset-e.start}),!0;if(s.type==="date"||s.type==="dateLink")return a.metadata.dateStr=s.date,i=$s(i,{start:o.position.start.offset-e.start,end:o.position.end.offset-e.start}),!0;if(s.type==="time")return a.metadata.timeStr=s.time,i=$s(i,{start:o.position.start.offset-e.start,end:o.position.end.offset-e.start}),!0;if(s.type==="embedWikilink")return a.metadata.fileAccessor=s.fileAccessor,!0;if(s.type==="wikilink"||s.type==="link"&&s.fileAccessor)return a.metadata.fileAccessor=s.fileAccessor,a.metadata.fileMetadata=s.fileMetadata,a.metadata.fileMetadataOrder=s.fileMetadataOrder,!0;if(s.type==="embedLink")return a.metadata.fileAccessor=s.fileAccessor,!0}),a.title=Rv(i).replace(/<br>/g,`
|
|||
|
`),a}function O_(t,n,e){if(t.type!=="heading"||Ta(t,{includeImageAlt:!1})!==F("Archive"))return!1;let r=Lv(n,e);return r&&r.type==="thematicBreak"}function Iy(t,n,e,r,i){let a=[],o=[];return r.children.forEach((s,u)=>{if(s.type==="heading"){let l=O_(s,r.children,u),c=pu(s),d=mu(i,c),f=!1,h=Pv(r.children,u,"list",p=>{if(p.type==="heading")return!1;if(p.type==="paragraph"){let g=Ta(p);if(g.startsWith("%% kanban:settings"))return!1;if(g===F("Complete"))return f=!0,!0}return!0});if(l&&h){o.push(...h.children.map(p=>({...$o,id:We(),data:nl(i,p)})));return}h?a.push({...pr,children:h.children.map(p=>({...$o,id:We(),data:nl(i,p)})),id:We(),data:{title:d,shouldMarkItemsComplete:f}}):a.push({...pr,children:[],id:We(),data:{title:d,shouldMarkItemsComplete:f}})}}),{...Uo,id:t.file.path,children:a,data:{settings:n,frontmatter:e,archive:o,isSearching:!1,errors:[]}}}async function Bu(t,n,e){let r=`- [${n.data.isComplete?"x":" "}] ${e.replace(/(\r\n|\n)/g,"<br>").trim()}${n.data.blockId?` ^${n.data.blockId}`:""}`,i=Hu(t,r),a=nl(r,i.children[0].children[0]),o=(0,tl.default)(n,{data:{$set:a}});try{await Ma(t,o)}catch(s){console.error(s)}return o}async function Ly(t,n,e,r){let i=`- [${e?"x":" "}] ${n.trim().replace(/(\r\n|\n)/g,"<br>")}`,a=Hu(t,i),o=nl(i,a.children[0].children[0]);o.forceEditMode=!!r;let s={...$o,id:We(),data:o};try{await Ma(t,s)}catch(u){console.error(u)}return s}async function Py(t,n){try{return(0,tl.default)(n,{children:{$set:await Promise.all(n.children.map(async e=>{try{return(0,tl.default)(e,{children:{$set:await Promise.all(e.children.map(r=>Bu(t,r,r.data.titleRaw)))}})}catch(r){throw t.setError(r),r}}))}})}catch(e){throw t.setError(e),e}}function Oy(t){return`- [${t.data.isComplete?"x":" "}] ${t.data.titleRaw.replace(/(\r\n|\n)/g,"<br>").trim()}${t.data.blockId?` ^${t.data.blockId}`:""}`}function N_(t){let n=[];return n.push(`## ${t.data.title}`),n.push(""),t.data.shouldMarkItemsComplete&&n.push(tv),t.children.forEach(e=>{n.push(Oy(e))}),n.push(""),n.push(""),n.push(""),n.join(`
|
|||
|
`)}function F_(t){if(t.length){let n=[nv,"",`## ${F("Archive")}`,""];return t.forEach(e=>{n.push(Oy(e))}),n.join(`
|
|||
|
`)}return""}function Ny(t){let n=t.children.reduce((r,i)=>r+N_(i),"");return["---","",(0,Ay.stringifyYaml)(t.data.frontmatter),"---","",""].join(`
|
|||
|
`)+n+F_(t.data.archive)+rv(t.data.settings)}var Ku=class{constructor(n){this.stateManager=n}newItem(n,e,r){return Ly(this.stateManager,n,e,r)}updateItemContent(n,e){return Bu(this.stateManager,n,e)}boardToMd(n){return Ny(n)}mdToBoard(n){let{ast:e,settings:r,frontmatter:i}=Cy(this.stateManager,n),a=Iy(this.stateManager,r,i,e,n);if(this.stateManager.state){let s=uu(this.stateManager.state,a).filter(l=>["/id","/dom","/date","/time","/titleSearch","/file"].every(c=>!l.path.endsWith(c))),u=(0,Fy.immutableJSONPatch)(this.stateManager.state,s);return Fv(this.stateManager,u,s)}return Nv(this.stateManager,a)}reparseBoard(){return Py(this.stateManager,this.stateManager.state)}};var $u=class{constructor(n,e,r,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.views=new Map;this.ids=[];this.compiledSettings={};this.newBoardPromise=null;this.getSetting=(n,e)=>e&&e[n]!==void 0?e[n]:this.compiledSettings&&this.compiledSettings[n]!==void 0?this.compiledSettings[n]:this.getSettingRaw(n);this.getSettingRaw=(n,e)=>{var r,i;return e&&e[n]!==void 0?e[n]:((i=(r=this.state)==null?void 0:r.data)==null?void 0:i.settings)&&this.state.data.settings[n]!==void 0?this.state.data.settings[n]:this.getGlobalSetting(n)};this.getGlobalSetting=n=>{let e=this.getGlobalSettings();return e&&e[n]!==void 0?e[n]:null};this.app=n,this.file=e.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new Ku(this),this.registerView(e,r,!0)}getAView(){let n=this.ids[0];return this.views.get(n)}registerView(n,e,r){this.views.has(n.id)||(this.ids.push(n.id),this.views.set(n.id,n),n.initHeaderButtons()),r&&(this.newBoardPromise!==null?this.newBoardPromise.then(()=>this.newBoard(e)):this.newBoardPromise=this.newBoard(e).then(()=>{this.newBoardPromise=null}).catch(i=>{console.error(i),this.setError(i)}))}unregisterView(n){this.views.has(n.id)&&(this.ids.remove(n.id),this.views.delete(n.id),this.views.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(n){try{await this.setState(await this.getParsedBoard(n),!1)}catch(e){this.setError(e)}}saveToDisk(){if(this.state.data.errors.length>0)return;let n=this.getAView(),e=this.parser.boardToMd(this.state);n.requestSaveToDisk(e),this.views.forEach(r=>{r.data=e})}async forceRefresh(){if(this.state)try{this.compileSettings(),this.state=await this.parser.reparseBoard(),this.stateReceivers.forEach(n=>n(this.state)),this.views.forEach(n=>n.initHeaderButtons())}catch(n){console.error(n),this.setError(n)}}async setState(n,e=!0){var r;try{let i=(r=this.state)==null?void 0:r.data.settings,a=typeof n=="function"?await n(this.state):n,o=a==null?void 0:a.data.settings;i&&o&&av(i,o)?(this.state=(0,Ni.default)(this.state,{data:{settings:{$set:o}}}),this.compileSettings(),this.state=await this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.views.forEach(s=>s.initHeaderButtons()),e&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[n,e]=v.useState(this.state);return v.useEffect(()=>(this.stateReceivers.push(r=>{e(r)}),e(this.state),()=>{this.stateReceivers.remove(e)}),[]),n}useSetting(n){let[e,r]=v.useState(this.getSetting(n));return v.useEffect(()=>{let i=()=>{r(this.getSetting(n))};return this.settingsNotifiers.has(n)?this.settingsNotifiers.get(n).push(i):this.settingsNotifiers.set(n,[i]),()=>{this.settingsNotifiers.get(n).remove(i)}},[]),e}compileSettings(n){var s,u,l,c,d;let e=this.getGlobalSetting("metadata-keys")||[],r=this.getSettingRaw("metadata-keys",n)||[],i=this.getSettingRaw("date-format",n)||ti(this.app),a=this.getSettingRaw("time-format",n)||Vi(this.app),o=this.getSettingRaw("prepend-archive-format",n)||`${i} ${a}`;this.compiledSettings={"date-format":i,"date-display-format":this.getSettingRaw("date-display-format",n)||i,"date-trigger":this.getSettingRaw("date-trigger",n)||Ds,"time-format":a,"time-trigger":this.ge
|
|||
|
/*!
|
|||
|
* Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
|
|||
|
*
|
|||
|
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
|||
|
* All Rights Reserved. Apache Software License 2.0
|
|||
|
*
|
|||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* The buffer module from node.js, for the browser.
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|||
|
* (c) 2017 Joachim Wester
|
|||
|
* MIT license
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|||
|
*
|
|||
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|||
|
* Released under the MIT License.
|
|||
|
*/
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */
|
|||
|
/*! *****************************************************************************
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */
|
|||
|
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
|||
|
/*!***************************************************
|
|||
|
* mark.js v8.11.1
|
|||
|
* https://markjs.io/
|
|||
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|||
|
* Released under the MIT license https://git.io/vwTVl
|
|||
|
*****************************************************/
|