You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
191 KiB
20 lines
191 KiB
/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
if you want to view the source, please visit the github repository of this plugin
|
|
*/
|
|
|
|
var Yi=Object.create;var ir=Object.defineProperty;var Li=Object.getOwnPropertyDescriptor;var Hi=Object.getOwnPropertyNames;var Gi=Object.getPrototypeOf,Vi=Object.prototype.hasOwnProperty;var kn=r=>ir(r,"__esModule",{value:!0});var Wi=(r,e)=>{kn(r);for(var t in e)ir(r,t,{get:e[t],enumerable:!0})},Ki=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Hi(e))!Vi.call(r,n)&&n!=="default"&&ir(r,n,{get:()=>e[n],enumerable:!(t=Li(e,n))||t.enumerable});return r},G=r=>Ki(kn(ir(r!=null?Yi(Gi(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var Tn=(()=>{for(var r=new Uint8Array(128),e=0;e<64;e++)r[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return t=>{for(var n=t.length,o=new Uint8Array((n-(t[n-1]=="=")-(t[n-2]=="="))*3/4|0),s=0,l=0;s<n;){var A=r[t.charCodeAt(s++)],p=r[t.charCodeAt(s++)],g=r[t.charCodeAt(s++)],f=r[t.charCodeAt(s++)];o[l++]=A<<2|p>>4,o[l++]=p<<4|g>>2,o[l++]=g<<6|f}return o}})();Wi(exports,{default:()=>dn});var _r=G(require("obsidian"));var M=G(require("obsidian"));var Fn=G(require("obsidian"));function K(r){let e=new Fn.Notice("",8e3);r instanceof w&&r.console_msg?(e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${r.message}<br/>Check console for more information`,console.error("Templater Error:",r.message,`
|
|
`,r.console_msg)):e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${r.message}`}var w=class extends Error{constructor(e,t){super(e);this.console_msg=t;this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}};async function ye(r,e){try{return await r()}catch(t){return t instanceof w?K(t):K(new w(e,t.message)),null}}function pe(r,e){try{return r()}catch(t){return K(new w(e,t.message)),null}}var Ie=G(require("obsidian"));function or(r){return new Promise(e=>setTimeout(e,r))}function Mn(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pn(){return/(<%(?:-|_)?\s*[*~]{0,1})\+((?:.|\s)*?%>)/g}function Ui(r){r=(0,Ie.normalizePath)(r);let e=app.vault.getAbstractFileByPath(r);if(!e)throw new w(`Folder "${r}" doesn't exist`);if(!(e instanceof Ie.TFolder))throw new w(`${r} is a file, not a folder`);return e}function at(r){r=(0,Ie.normalizePath)(r);let e=app.vault.getAbstractFileByPath(r);if(!e)throw new w(`File "${r}" doesn't exist`);if(!(e instanceof Ie.TFile))throw new w(`${r} is a folder, not a file`);return e}function Ce(r){let e=Ui(r),t=[];return Ie.Vault.recurseChildren(e,n=>{n instanceof Ie.TFile&&t.push(n)}),t.sort((n,o)=>n.path.localeCompare(o.path)),t}function lt(r,e,t){if(t<0||t===r.length)return;let n=r[e];r[e]=r[t],r[t]=n}function yt(r){return r.workspace.activeEditor?.file??r.workspace.getActiveFile()}function Bn(r){let e=r.lastIndexOf("/");return e!==-1?r.slice(0,e):""}var ti=G(require("obsidian"));var Zn=G(require("obsidian"));var W="top",Z="bottom",Q="right",U="left",sr="auto",Ze=[W,Z,Q,U],We="start",ct="end",On="clippingParents",ar="viewport",xt="popper",qn="reference",Er=Ze.reduce(function(r,e){return r.concat([e+"-"+We,e+"-"+ct])},[]),lr=[].concat(Ze,[sr]).reduce(function(r,e){return r.concat([e,e+"-"+We,e+"-"+ct])},[]),zi="beforeRead",Ji="read",Xi="afterRead",Qi="beforeMain",Zi="main",eo="afterMain",to="beforeWrite",ro="write",no="afterWrite",In=[zi,Ji,Xi,Qi,Zi,eo,to,ro,no];function te(r){return r?(r.nodeName||"").toLowerCase():null}function Y(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function he(r){var e=Y(r).Element;return r instanceof e||r instanceof Element}function ee(r){var e=Y(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function Et(r){if(typeof ShadowRoot=="undefined")return!1;var e=Y(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function io(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!ee(s)||!te(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var A=o[l];A===!1?s.removeAttribute(l):s.setAttribute(l,A===!0?"":A)}))})}function oo(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],s=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),A=l.reduce(function(p,g){return p[g]="",p},{});!ee(o)||!te(o)||(Object.assign(o.style,A),Object.keys(s).forEach(function(p){o.removeAttribute(p)}))})}}var Cn={name:"applyStyles",enabled:!0,phase:"write",fn:io,effect:oo,requires:["computeStyles"]};function re(r){return r.split("-")[0]}var xe=Math.max,pt=Math.min,Ke=Math.round;function kt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function St(){return!/^((?!chrome|android).)*safari/i.test(kt())}function je(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),o=1,s=1;e&&ee(r)&&(o=r.offsetWidth>0&&Ke(n.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ke(n.height)/r.offsetHeight||1);var l=he(r)?Y(r):window,A=l.visualViewport,p=!St()&&t,g=(n.left+(p&&A?A.offsetLeft:0))/o,f=(n.top+(p&&A?A.offsetTop:0))/s,b=n.width/o,k=n.height/s;return{width:b,height:k,top:f,right:g+b,bottom:f+k,left:g,x:g,y:f}}function At(r){var e=je(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function Dt(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&Et(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ae(r){return Y(r).getComputedStyle(r)}function kr(r){return["table","td","th"].indexOf(te(r))>=0}function ne(r){return((he(r)?r.ownerDocument:r.document)||window.document).documentElement}function Ue(r){return te(r)==="html"?r:r.assignedSlot||r.parentNode||(Et(r)?r.host:null)||ne(r)}function Sn(r){return!ee(r)||Ae(r).position==="fixed"?null:r.offsetParent}function so(r){var e=/firefox/i.test(kt()),t=/Trident/i.test(kt());if(t&&ee(r)){var n=Ae(r);if(n.position==="fixed")return null}var o=Ue(r);for(Et(o)&&(o=o.host);ee(o)&&["html","body"].indexOf(te(o))<0;){var s=Ae(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ee(r){for(var e=Y(r),t=Sn(r);t&&kr(t)&&Ae(t).position==="static";)t=Sn(t);return t&&(te(t)==="html"||te(t)==="body"&&Ae(t).position==="static")?e:t||so(r)||e}function ut(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function mt(r,e,t){return xe(r,pt(e,t))}function Dn(r,e,t){var n=mt(r,e,t);return n>t?t:n}function $t(){return{top:0,right:0,bottom:0,left:0}}function Nt(r){return Object.assign({},$t(),r)}function Rt(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var ao=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Nt(typeof e!="number"?e:Rt(e,Ze))};function lo(r){var e,t=r.state,n=r.name,o=r.options,s=t.elements.arrow,l=t.modifiersData.popperOffsets,A=re(t.placement),p=ut(A),g=[U,Q].indexOf(A)>=0,f=g?"height":"width";if(!(!s||!l)){var b=ao(o.padding,t),k=At(s),x=p==="y"?W:U,q=p==="y"?Z:Q,P=t.rects.reference[f]+t.rects.reference[p]-l[p]-t.rects.popper[f],j=l[p]-t.rects.reference[p],B=Ee(s),L=B?p==="y"?B.clientHeight||0:B.clientWidth||0:0,N=P/2-j/2,T=b[x],C=L-k[f]-b[q],I=L/2-k[f]/2+N,R=mt(T,I,C),z=p;t.modifiersData[n]=(e={},e[z]=R,e.centerOffset=R-I,e)}}function co(r){var e=r.state,t=r.options,n=t.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!Dt(e.elements.popper,o)||(e.elements.arrow=o))}var $n={name:"arrow",enabled:!0,phase:"main",fn:lo,effect:co,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(r){return r.split("-")[1]}var po={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ao(r,e){var t=r.x,n=r.y,o=e.devicePixelRatio||1;return{x:Ke(t*o)/o||0,y:Ke(n*o)/o||0}}function Nn(r){var e,t=r.popper,n=r.popperRect,o=r.placement,s=r.variation,l=r.offsets,A=r.position,p=r.gpuAcceleration,g=r.adaptive,f=r.roundOffsets,b=r.isFixed,k=l.x,x=k===void 0?0:k,q=l.y,P=q===void 0?0:q,j=typeof f=="function"?f({x,y:P}):{x,y:P};x=j.x,P=j.y;var B=l.hasOwnProperty("x"),L=l.hasOwnProperty("y"),N=U,T=W,C=window;if(g){var I=Ee(t),R="clientHeight",z="clientWidth";if(I===Y(t)&&(I=ne(t),Ae(I).position!=="static"&&A==="absolute"&&(R="scrollHeight",z="scrollWidth")),I=I,o===W||(o===U||o===Q)&&s===ct){T=Z;var J=b&&I===C&&C.visualViewport?C.visualViewport.height:I[R];P-=J-n.height,P*=p?1:-1}if(o===U||(o===W||o===Z)&&s===ct){N=Q;var V=b&&I===C&&C.visualViewport?C.visualViewport.width:I[z];x-=V-n.width,x*=p?1:-1}}var m=Object.assign({position:A},g&&po),h=f===!0?Ao({x,y:P},Y(t)):{x,y:P};if(x=h.x,P=h.y,p){var c;return Object.assign({},m,(c={},c[T]=L?"0":"",c[N]=B?"0":"",c.transform=(C.devicePixelRatio||1)<=1?"translate("+x+"px, "+P+"px)":"translate3d("+x+"px, "+P+"px, 0)",c))}return Object.assign({},m,(e={},e[T]=L?P+"px":"",e[N]=B?x+"px":"",e.transform="",e))}function uo(r){var e=r.state,t=r.options,n=t.gpuAcceleration,o=n===void 0?!0:n,s=t.adaptive,l=s===void 0?!0:s,A=t.roundOffsets,p=A===void 0?!0:A,g={placement:re(e.placement),variation:_e(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Nn(Object.assign({},g,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:p})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Nn(Object.assign({},g,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Rn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uo,data:{}};var cr={passive:!0};function mo(r){var e=r.state,t=r.instance,n=r.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,A=l===void 0?!0:l,p=Y(e.elements.popper),g=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&g.forEach(function(f){f.addEventListener("scroll",t.update,cr)}),A&&p.addEventListener("resize",t.update,cr),function(){s&&g.forEach(function(f){f.removeEventListener("scroll",t.update,cr)}),A&&p.removeEventListener("resize",t.update,cr)}}var Yn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mo,data:{}};var fo={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(r){return r.replace(/left|right|bottom|top/g,function(e){return fo[e]})}var go={start:"end",end:"start"};function pr(r){return r.replace(/start|end/g,function(e){return go[e]})}function ft(r){var e=Y(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function dt(r){return je(ne(r)).left+ft(r).scrollLeft}function Tr(r,e){var t=Y(r),n=ne(r),o=t.visualViewport,s=n.clientWidth,l=n.clientHeight,A=0,p=0;if(o){s=o.width,l=o.height;var g=St();(g||!g&&e==="fixed")&&(A=o.offsetLeft,p=o.offsetTop)}return{width:s,height:l,x:A+dt(r),y:p}}function Fr(r){var e,t=ne(r),n=ft(r),o=(e=r.ownerDocument)==null?void 0:e.body,s=xe(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=xe(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),A=-n.scrollLeft+dt(r),p=-n.scrollTop;return Ae(o||t).direction==="rtl"&&(A+=xe(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:A,y:p}}function gt(r){var e=Ae(r),t=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+n)}function Ar(r){return["html","body","#document"].indexOf(te(r))>=0?r.ownerDocument.body:ee(r)&>(r)?r:Ar(Ue(r))}function et(r,e){var t;e===void 0&&(e=[]);var n=Ar(r),o=n===((t=r.ownerDocument)==null?void 0:t.body),s=Y(n),l=o?[s].concat(s.visualViewport||[],gt(n)?n:[]):n,A=e.concat(l);return o?A:A.concat(et(Ue(l)))}function Ft(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function ho(r,e){var t=je(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function Ln(r,e,t){return e===ar?Ft(Tr(r,t)):he(e)?ho(e,t):Ft(Fr(ne(r)))}function jo(r){var e=et(Ue(r)),t=["absolute","fixed"].indexOf(Ae(r).position)>=0,n=t&&ee(r)?Ee(r):r;return he(n)?e.filter(function(o){return he(o)&&Dt(o,n)&&te(o)!=="body"}):[]}function Mr(r,e,t,n){var o=e==="clippingParents"?jo(r):[].concat(e),s=[].concat(o,[t]),l=s[0],A=s.reduce(function(p,g){var f=Ln(r,g,n);return p.top=xe(f.top,p.top),p.right=pt(f.right,p.right),p.bottom=pt(f.bottom,p.bottom),p.left=xe(f.left,p.left),p},Ln(r,l,n));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function Yt(r){var e=r.reference,t=r.element,n=r.placement,o=n?re(n):null,s=n?_e(n):null,l=e.x+e.width/2-t.width/2,A=e.y+e.height/2-t.height/2,p;switch(o){case W:p={x:l,y:e.y-t.height};break;case Z:p={x:l,y:e.y+e.height};break;case Q:p={x:e.x+e.width,y:A};break;case U:p={x:e.x-t.width,y:A};break;default:p={x:e.x,y:e.y}}var g=o?ut(o):null;if(g!=null){var f=g==="y"?"height":"width";switch(s){case We:p[g]=p[g]-(e[f]/2-t[f]/2);break;case ct:p[g]=p[g]+(e[f]/2-t[f]/2);break;default:}}return p}function ke(r,e){e===void 0&&(e={});var t=e,n=t.placement,o=n===void 0?r.placement:n,s=t.strategy,l=s===void 0?r.strategy:s,A=t.boundary,p=A===void 0?On:A,g=t.rootBoundary,f=g===void 0?ar:g,b=t.elementContext,k=b===void 0?xt:b,x=t.altBoundary,q=x===void 0?!1:x,P=t.padding,j=P===void 0?0:P,B=Nt(typeof j!="number"?j:Rt(j,Ze)),L=k===xt?qn:xt,N=r.rects.popper,T=r.elements[q?L:k],C=Mr(he(T)?T:T.contextElement||ne(r.elements.popper),p,f,l),I=je(r.elements.reference),R=Yt({reference:I,element:N,strategy:"absolute",placement:o}),z=Ft(Object.assign({},N,R)),J=k===xt?z:I,V={top:C.top-J.top+B.top,bottom:J.bottom-C.bottom+B.bottom,left:C.left-J.left+B.left,right:J.right-C.right+B.right},m=r.modifiersData.offset;if(k===xt&&m){var h=m[o];Object.keys(V).forEach(function(c){var we=[Q,Z].indexOf(c)>=0?1:-1,me=[W,Z].indexOf(c)>=0?"y":"x";V[c]+=h[me]*we})}return V}function Pr(r,e){e===void 0&&(e={});var t=e,n=t.placement,o=t.boundary,s=t.rootBoundary,l=t.padding,A=t.flipVariations,p=t.allowedAutoPlacements,g=p===void 0?lr:p,f=_e(n),b=f?A?Er:Er.filter(function(q){return _e(q)===f}):Ze,k=b.filter(function(q){return g.indexOf(q)>=0});k.length===0&&(k=b);var x=k.reduce(function(q,P){return q[P]=ke(r,{placement:P,boundary:o,rootBoundary:s,padding:l})[re(P)],q},{});return Object.keys(x).sort(function(q,P){return x[q]-x[P]})}function _o(r){if(re(r)===sr)return[];var e=Tt(r);return[pr(r),e,pr(e)]}function vo(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,A=l===void 0?!0:l,p=t.fallbackPlacements,g=t.padding,f=t.boundary,b=t.rootBoundary,k=t.altBoundary,x=t.flipVariations,q=x===void 0?!0:x,P=t.allowedAutoPlacements,j=e.options.placement,B=re(j),L=B===j,N=p||(L||!q?[Tt(j)]:_o(j)),T=[j].concat(N).reduce(function(y,_){return y.concat(re(_)===sr?Pr(e,{placement:_,boundary:f,rootBoundary:b,padding:g,flipVariations:q,allowedAutoPlacements:P}):_)},[]),C=e.rects.reference,I=e.rects.popper,R=new Map,z=!0,J=T[0],V=0;V<T.length;V++){var m=T[V],h=re(m),c=_e(m)===We,we=[W,Z].indexOf(h)>=0,me=we?"width":"height",oe=ke(e,{placement:m,boundary:f,rootBoundary:b,altBoundary:k,padding:g}),se=we?c?Q:U:c?Z:W;C[me]>I[me]&&(se=Tt(se));var Pe=Tt(se),fe=[];if(s&&fe.push(oe[h]<=0),A&&fe.push(oe[se]<=0,oe[Pe]<=0),fe.every(function(y){return y})){J=m,z=!1;break}R.set(m,fe)}if(z)for(var jt=q?3:1,Be=function(_){var F=T.find(function(H){var Re=R.get(H);if(Re)return Re.slice(0,_).every(function(S){return S})});if(F)return J=F,"break"},Ne=jt;Ne>0;Ne--){var ae=Be(Ne);if(ae==="break")break}e.placement!==J&&(e.modifiersData[n]._skip=!0,e.placement=J,e.reset=!0)}}var Hn={name:"flip",enabled:!0,phase:"main",fn:vo,requiresIfExists:["offset"],data:{_skip:!1}};function Gn(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Vn(r){return[W,Q,Z,U].some(function(e){return r[e]>=0})}function wo(r){var e=r.state,t=r.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,l=ke(e,{elementContext:"reference"}),A=ke(e,{altBoundary:!0}),p=Gn(l,n),g=Gn(A,o,s),f=Vn(p),b=Vn(g);e.modifiersData[t]={referenceClippingOffsets:p,popperEscapeOffsets:g,isReferenceHidden:f,hasPopperEscaped:b},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":b})}var Wn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wo};function bo(r,e,t){var n=re(r),o=[U,W].indexOf(n)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,l=s[0],A=s[1];return l=l||0,A=(A||0)*o,[U,Q].indexOf(n)>=0?{x:A,y:l}:{x:l,y:A}}function yo(r){var e=r.state,t=r.options,n=r.name,o=t.offset,s=o===void 0?[0,0]:o,l=lr.reduce(function(f,b){return f[b]=bo(b,e.rects,s),f},{}),A=l[e.placement],p=A.x,g=A.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=p,e.modifiersData.popperOffsets.y+=g),e.modifiersData[n]=l}var Kn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yo};function xo(r){var e=r.state,t=r.name;e.modifiersData[t]=Yt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Un={name:"popperOffsets",enabled:!0,phase:"read",fn:xo,data:{}};function Br(r){return r==="x"?"y":"x"}function Eo(r){var e=r.state,t=r.options,n=r.name,o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,A=l===void 0?!1:l,p=t.boundary,g=t.rootBoundary,f=t.altBoundary,b=t.padding,k=t.tether,x=k===void 0?!0:k,q=t.tetherOffset,P=q===void 0?0:q,j=ke(e,{boundary:p,rootBoundary:g,padding:b,altBoundary:f}),B=re(e.placement),L=_e(e.placement),N=!L,T=ut(B),C=Br(T),I=e.modifiersData.popperOffsets,R=e.rects.reference,z=e.rects.popper,J=typeof P=="function"?P(Object.assign({},e.rects,{placement:e.placement})):P,V=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),m=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,h={x:0,y:0};if(!!I){if(s){var c,we=T==="y"?W:U,me=T==="y"?Z:Q,oe=T==="y"?"height":"width",se=I[T],Pe=se+j[we],fe=se-j[me],jt=x?-z[oe]/2:0,Be=L===We?R[oe]:z[oe],Ne=L===We?-z[oe]:-R[oe],ae=e.elements.arrow,y=x&&ae?At(ae):{width:0,height:0},_=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$t(),F=_[we],H=_[me],Re=mt(0,R[oe],y[oe]),S=N?R[oe]/2-jt-Re-F-V.mainAxis:Be-Re-F-V.mainAxis,le=N?-R[oe]/2+jt+Re+H+V.mainAxis:Ne+Re+H+V.mainAxis,nt=e.elements.arrow&&Ee(e.elements.arrow),Kt=nt?T==="y"?nt.clientTop||0:nt.clientLeft||0:0,Ye=(c=m==null?void 0:m[T])!=null?c:0,Le=se+S-Ye-Kt,Je=se+le-Ye,it=mt(x?pt(Pe,Le):Pe,se,x?xe(fe,Je):fe);I[T]=it,h[T]=it-se}if(A){var Ut,zt=T==="x"?W:U,Jt=T==="x"?Z:Q,He=I[C],_t=C==="y"?"height":"width",Xt=He+j[zt],Qt=He-j[Jt],Ot=[W,U].indexOf(B)!==-1,ot=(Ut=m==null?void 0:m[C])!=null?Ut:0,Zt=Ot?Xt:He-R[_t]-z[_t]-ot+V.altAxis,Oe=Ot?He+R[_t]+z[_t]-ot-V.altAxis:Qt,X=x&&Ot?Dn(Zt,He,Oe):mt(x?Zt:Xt,He,x?Oe:Qt);I[C]=X,h[C]=X-He}e.modifiersData[n]=h}}var zn={name:"preventOverflow",enabled:!0,phase:"main",fn:Eo,requiresIfExists:["offset"]};function Or(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function qr(r){return r===Y(r)||!ee(r)?ft(r):Or(r)}function ko(r){var e=r.getBoundingClientRect(),t=Ke(e.width)/r.offsetWidth||1,n=Ke(e.height)/r.offsetHeight||1;return t!==1||n!==1}function Ir(r,e,t){t===void 0&&(t=!1);var n=ee(e),o=ee(e)&&ko(e),s=ne(e),l=je(r,o,t),A={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!t)&&((te(e)!=="body"||gt(s))&&(A=qr(e)),ee(e)?(p=je(e,!0),p.x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=dt(s))),{x:l.left+A.scrollLeft-p.x,y:l.top+A.scrollTop-p.y,width:l.width,height:l.height}}function To(r){var e=new Map,t=new Set,n=[];r.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(A){if(!t.has(A)){var p=e.get(A);p&&o(p)}}),n.push(s)}return r.forEach(function(s){t.has(s.name)||o(s)}),n}function Cr(r){var e=To(r);return In.reduce(function(t,n){return t.concat(e.filter(function(o){return o.phase===n}))},[])}function Sr(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function Dr(r){var e=r.reduce(function(t,n){var o=t[n.name];return t[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var Jn={placement:"bottom",modifiers:[],strategy:"absolute"};function Xn(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Qn(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,o=e.defaultOptions,s=o===void 0?Jn:o;return function(A,p,g){g===void 0&&(g=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jn,s),modifiersData:{},elements:{reference:A,popper:p},attributes:{},styles:{}},b=[],k=!1,x={state:f,setOptions:function(B){var L=typeof B=="function"?B(f.options):B;P(),f.options=Object.assign({},s,f.options,L),f.scrollParents={reference:he(A)?et(A):A.contextElement?et(A.contextElement):[],popper:et(p)};var N=Cr(Dr([].concat(n,f.options.modifiers)));return f.orderedModifiers=N.filter(function(T){return T.enabled}),q(),x.update()},forceUpdate:function(){if(!k){var B=f.elements,L=B.reference,N=B.popper;if(!!Xn(L,N)){f.rects={reference:Ir(L,Ee(N),f.options.strategy==="fixed"),popper:At(N)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(V){return f.modifiersData[V.name]=Object.assign({},V.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var C=f.orderedModifiers[T],I=C.fn,R=C.options,z=R===void 0?{}:R,J=C.name;typeof I=="function"&&(f=I({state:f,options:z,name:J,instance:x})||f)}}}},update:Sr(function(){return new Promise(function(j){x.forceUpdate(),j(f)})}),destroy:function(){P(),k=!0}};if(!Xn(A,p))return x;x.setOptions(g).then(function(j){!k&&g.onFirstUpdate&&g.onFirstUpdate(j)});function q(){f.orderedModifiers.forEach(function(j){var B=j.name,L=j.options,N=L===void 0?{}:L,T=j.effect;if(typeof T=="function"){var C=T({state:f,name:B,instance:x,options:N}),I=function(){};b.push(C||I)}})}function P(){b.forEach(function(j){return j()}),b=[]}return x}}var Fo=[Yn,Un,Rn,Cn,Kn,Hn,zn,$n,Wn],$r=Qn({defaultModifiers:Fo});var Mo=(r,e)=>(r%e+e)%e,ei=class{constructor(e,t,n){this.owner=e,this.containerEl=t,t.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),t.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),n.register([],"ArrowUp",o=>{if(!o.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1}),n.register([],"ArrowDown",o=>{if(!o.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1}),n.register([],"Enter",o=>{if(!o.isComposing)return this.useSelectedItem(o),!1})}onSuggestionClick(e,t){e.preventDefault();let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,t){let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1)}setSuggestions(e){this.containerEl.empty();let t=[];e.forEach(n=>{let o=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(n,o),t.push(o)}),this.values=e,this.suggestions=t,this.setSelectedItem(0,!1)}useSelectedItem(e){let t=this.values[this.selectedItem];t&&this.owner.selectSuggestion(t,e)}setSelectedItem(e,t){let n=Mo(e,this.suggestions.length),o=this.suggestions[this.selectedItem],s=this.suggestions[n];o?.removeClass("is-selected"),s?.addClass("is-selected"),this.selectedItem=n,t&&s.scrollIntoView(!1)}},Lt=class{constructor(e){this.inputEl=e,this.scope=new Zn.Scope,this.suggestEl=createDiv("suggestion-container");let t=this.suggestEl.createDiv("suggestion");this.suggest=new ei(this,t,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",n=>{n.preventDefault()})}onInputChanged(){let e=this.inputEl.value,t=this.getSuggestions(e);if(!t){this.close();return}t.length>0?(this.suggest.setSuggestions(t),this.open(app.dom.appContainerEl,this.inputEl)):this.close()}open(e,t){app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=$r(t,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:n,instance:o})=>{let s=`${n.rects.reference.width}px`;n.styles.popper.width!==s&&(n.styles.popper.width=s,o.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}};var Te;(function(t){t[t.TemplateFiles=0]="TemplateFiles",t[t.ScriptFiles=1]="ScriptFiles"})(Te||(Te={}));var Mt=class extends Lt{constructor(e,t,n){super(e);this.inputEl=e;this.plugin=t;this.mode=n}get_folder(e){switch(e){case 0:return this.plugin.settings.templates_folder;case 1:return this.plugin.settings.user_scripts_folder}}get_error_msg(e){switch(e){case 0:return"Templates folder doesn't exist";case 1:return"User Scripts folder doesn't exist"}}getSuggestions(e){let t=pe(()=>Ce(this.get_folder(this.mode)),this.get_error_msg(this.mode));if(!t)return[];let n=[],o=e.toLowerCase();return t.forEach(s=>{s instanceof ti.TFile&&s.extension==="md"&&s.path.toLowerCase().contains(o)&&n.push(s)}),n.slice(0,1e3)}renderSuggestion(e,t){t.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var ri=G(require("obsidian"));var Ht=class extends Lt{getSuggestions(e){let t=app.vault.getAllLoadedFiles(),n=[],o=e.toLowerCase();return t.forEach(s=>{s instanceof ri.TFolder&&s.path.toLowerCase().contains(o)&&n.push(s)}),n.slice(0,1e3)}renderSuggestion(e,t){t.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var ni={command_timeout:5,templates_folder:"",templates_pairs:[["",""]],trigger_on_file_creation:!1,auto_jump_to_cursor:!1,enable_system_commands:!1,shell_path:"",user_scripts_folder:"",enable_folder_templates:!0,folder_templates:[{folder:"",template:""}],enable_file_templates:!1,file_templates:[{regex:".*",template:""}],syntax_highlighting:!0,syntax_highlighting_mobile:!1,enabled_templates_hotkeys:[""],startup_templates:[""]},Nr=class extends M.PluginSettingTab{constructor(e){super(app,e);this.plugin=e}display(){this.containerEl.empty(),this.add_template_folder_setting(),this.add_internal_functions_setting(),this.add_syntax_highlighting_settings(),this.add_auto_jump_to_cursor(),this.add_trigger_on_new_file_creation_setting(),this.plugin.settings.trigger_on_file_creation&&(this.add_folder_templates_setting(),this.add_file_templates_setting()),this.add_templates_hotkeys_setting(),this.add_startup_templates_setting(),this.add_user_script_functions_setting(),this.add_user_system_command_functions_setting(),this.add_donating_setting()}add_template_folder_setting(){new M.Setting(this.containerEl).setName("Template folder location").setDesc("Files in this folder will be available as templates.").addSearch(e=>{new Ht(e.inputEl),e.setPlaceholder("Example: folder1/folder2").setValue(this.plugin.settings.templates_folder).onChange(t=>{this.plugin.settings.templates_folder=t,this.plugin.save_settings()}),e.containerEl.addClass("templater_search")})}add_internal_functions_setting(){let e=document.createDocumentFragment();e.append("Templater provides multiples predefined variables / functions that you can use.",e.createEl("br"),"Check the ",e.createEl("a",{href:"https://silentvoid13.github.io/Templater/",text:"documentation"})," to get a list of all the available internal variables / functions."),new M.Setting(this.containerEl).setName("Internal variables and functions").setDesc(e)}add_syntax_highlighting_settings(){let e=document.createDocumentFragment();e.append("Adds syntax highlighting for Templater commands in edit mode.");let t=document.createDocumentFragment();t.append("Adds syntax highlighting for Templater commands in edit mode on mobile. Use with caution: this may break live preview on mobile platforms."),new M.Setting(this.containerEl).setName("Syntax highlighting on desktop").setDesc(e).addToggle(n=>{n.setValue(this.plugin.settings.syntax_highlighting).onChange(o=>{this.plugin.settings.syntax_highlighting=o,this.plugin.save_settings(),this.plugin.event_handler.update_syntax_highlighting()})}),new M.Setting(this.containerEl).setName("Syntax highlighting on mobile").setDesc(t).addToggle(n=>{n.setValue(this.plugin.settings.syntax_highlighting_mobile).onChange(o=>{this.plugin.settings.syntax_highlighting_mobile=o,this.plugin.save_settings(),this.plugin.event_handler.update_syntax_highlighting()})})}add_auto_jump_to_cursor(){let e=document.createDocumentFragment();e.append("Automatically triggers ",e.createEl("code",{text:"tp.file.cursor"})," after inserting a template.",e.createEl("br"),"You can also set a hotkey to manually trigger ",e.createEl("code",{text:"tp.file.cursor"}),"."),new M.Setting(this.containerEl).setName("Automatic jump to cursor").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.auto_jump_to_cursor).onChange(n=>{this.plugin.settings.auto_jump_to_cursor=n,this.plugin.save_settings()})})}add_trigger_on_new_file_creation_setting(){let e=document.createDocumentFragment();e.append("Templater will listen for the new file creation event, and, if it matches a rule you've set, replace every command it finds in the new file's content. ","This makes Templater compatible with other plugins like the Daily note core plugin, Calendar plugin, Review plugin, Note refactor plugin, etc. ",e.createEl("br"),e.createEl("br"),"Make sure to set up rules under either Folder Templates or File Regex Template below.",e.createEl("br"),e.createEl("br"),e.createEl("b",{text:"Warning: "}),"This can be dangerous if you create new files with unknown / unsafe content on creation. Make sure that every new file's content is safe on creation."),new M.Setting(this.containerEl).setName("Trigger Templater on new file creation").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.trigger_on_file_creation).onChange(n=>{this.plugin.settings.trigger_on_file_creation=n,this.plugin.save_settings(),this.plugin.event_handler.update_trigger_file_on_creation(),this.display()})})}add_templates_hotkeys_setting(){new M.Setting(this.containerEl).setName("Template hotkeys").setHeading();let e=document.createDocumentFragment();e.append("Template hotkeys allows you to bind a template to a hotkey."),new M.Setting(this.containerEl).setDesc(e),this.plugin.settings.enabled_templates_hotkeys.forEach((t,n)=>{new M.Setting(this.containerEl).addSearch(s=>{new Mt(s.inputEl,this.plugin,Te.TemplateFiles),s.setPlaceholder("Example: folder1/template_file").setValue(t).onChange(l=>{if(l&&this.plugin.settings.enabled_templates_hotkeys.contains(l)){K(new w("This template is already bound to a hotkey"));return}this.plugin.command_handler.add_template_hotkey(this.plugin.settings.enabled_templates_hotkeys[n],l),this.plugin.settings.enabled_templates_hotkeys[n]=l,this.plugin.save_settings()}),s.containerEl.addClass("templater_search")}).addExtraButton(s=>{s.setIcon("any-key").setTooltip("Configure Hotkey").onClick(()=>{app.setting.openTabById("hotkeys");let l=app.setting.activeTab;l.searchComponent.inputEl.value=t,l.updateHotkeyVisibility()})}).addExtraButton(s=>{s.setIcon("up-chevron-glyph").setTooltip("Move up").onClick(()=>{lt(this.plugin.settings.enabled_templates_hotkeys,n,n-1),this.plugin.save_settings(),this.display()})}).addExtraButton(s=>{s.setIcon("down-chevron-glyph").setTooltip("Move down").onClick(()=>{lt(this.plugin.settings.enabled_templates_hotkeys,n,n+1),this.plugin.save_settings(),this.display()})}).addExtraButton(s=>{s.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.command_handler.remove_template_hotkey(this.plugin.settings.enabled_templates_hotkeys[n]),this.plugin.settings.enabled_templates_hotkeys.splice(n,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new M.Setting(this.containerEl).addButton(t=>{t.setButtonText("Add new hotkey for template").setCta().onClick(()=>{this.plugin.settings.enabled_templates_hotkeys.push(""),this.plugin.save_settings(),this.display()})})}add_folder_templates_setting(){new M.Setting(this.containerEl).setName("Folder templates").setHeading();let e=document.createDocumentFragment();e.append("Folder Templates are triggered when a new ",e.createEl("strong",{text:"empty "}),"file is created in a given folder.",e.createEl("br"),"Templater will fill the empty file with the specified template.",e.createEl("br"),"The deepest match is used. A global default template would be defined on the root ",e.createEl("code",{text:"/"}),"."),new M.Setting(this.containerEl).setDesc(e);let t=document.createDocumentFragment();t.append("When enabled, Templater will make use of the folder templates defined below. This option is mutually exclusive with File Regex Templates below, so enabling one will disable the other."),new M.Setting(this.containerEl).setName("Enable folder templates").setDesc(t).addToggle(n=>{n.setValue(this.plugin.settings.enable_folder_templates).onChange(o=>{this.plugin.settings.enable_folder_templates=o,o&&(this.plugin.settings.enable_file_templates=!1),this.plugin.save_settings(),this.display()})}),!!this.plugin.settings.enable_folder_templates&&(this.plugin.settings.folder_templates.forEach((n,o)=>{new M.Setting(this.containerEl).addSearch(l=>{new Ht(l.inputEl),l.setPlaceholder("Folder").setValue(n.folder).onChange(A=>{if(A&&this.plugin.settings.folder_templates.some(p=>p.folder==A)){K(new w("This folder already has a template associated with it"));return}this.plugin.settings.folder_templates[o].folder=A,this.plugin.save_settings()}),l.containerEl.addClass("templater_search")}).addSearch(l=>{new Mt(l.inputEl,this.plugin,Te.TemplateFiles),l.setPlaceholder("Template").setValue(n.template).onChange(A=>{this.plugin.settings.folder_templates[o].template=A,this.plugin.save_settings()}),l.containerEl.addClass("templater_search")}).addExtraButton(l=>{l.setIcon("up-chevron-glyph").setTooltip("Move up").onClick(()=>{lt(this.plugin.settings.folder_templates,o,o-1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("down-chevron-glyph").setTooltip("Move down").onClick(()=>{lt(this.plugin.settings.folder_templates,o,o+1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.settings.folder_templates.splice(o,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new M.Setting(this.containerEl).addButton(n=>{n.setButtonText("Add new folder template").setTooltip("Add additional folder template").setCta().onClick(()=>{this.plugin.settings.folder_templates.push({folder:"",template:""}),this.plugin.save_settings(),this.display()})}))}add_file_templates_setting(){new M.Setting(this.containerEl).setName("File Regex Templates").setHeading();let e=document.createDocumentFragment();e.append("File Regex Templates are triggered when a new ",e.createEl("strong",{text:"empty"})," file is created that matches one of them. Templater will fill the empty file with the specified template.",e.createEl("br"),"The first match from the top is used, so the order of the rules is important.",e.createEl("br"),"Use ",e.createEl("code",{text:".*"})," as a final catch-all, if you need it."),new M.Setting(this.containerEl).setDesc(e);let t=document.createDocumentFragment();t.append("When enabled, Templater will make use of the file regex templates defined below. This option is mutually exclusive with Folder Templates above, so enabling one will disable the other."),new M.Setting(this.containerEl).setName("Enable File Regex Templates").setDesc(t).addToggle(n=>{n.setValue(this.plugin.settings.enable_file_templates).onChange(o=>{this.plugin.settings.enable_file_templates=o,o&&(this.plugin.settings.enable_folder_templates=!1),this.plugin.save_settings(),this.display()})}),!!this.plugin.settings.enable_file_templates&&(this.plugin.settings.file_templates.forEach((n,o)=>{new M.Setting(this.containerEl).addText(l=>{l.setPlaceholder("File Regex").setValue(n.regex).onChange(A=>{this.plugin.settings.file_templates[o].regex=A,this.plugin.save_settings()}),l.inputEl.addClass("templater_search")}).addSearch(l=>{new Mt(l.inputEl,this.plugin,Te.TemplateFiles),l.setPlaceholder("Template").setValue(n.template).onChange(A=>{this.plugin.settings.file_templates[o].template=A,this.plugin.save_settings()}),l.containerEl.addClass("templater_search")}).addExtraButton(l=>{l.setIcon("up-chevron-glyph").setTooltip("Move up").onClick(()=>{lt(this.plugin.settings.file_templates,o,o-1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("down-chevron-glyph").setTooltip("Move down").onClick(()=>{lt(this.plugin.settings.file_templates,o,o+1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.settings.file_templates.splice(o,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new M.Setting(this.containerEl).addButton(n=>{n.setButtonText("Add new file regex").setTooltip("Add additional file regex").setCta().onClick(()=>{this.plugin.settings.file_templates.push({regex:"",template:""}),this.plugin.save_settings(),this.display()})}))}add_startup_templates_setting(){new M.Setting(this.containerEl).setName("Startup templates").setHeading();let e=document.createDocumentFragment();e.append("Startup templates are templates that will get executed once when Templater starts.",e.createEl("br"),"These templates won't output anything.",e.createEl("br"),"This can be useful to set up templates adding hooks to Obsidian events for example."),new M.Setting(this.containerEl).setDesc(e),this.plugin.settings.startup_templates.forEach((t,n)=>{new M.Setting(this.containerEl).addSearch(s=>{new Mt(s.inputEl,this.plugin,Te.TemplateFiles),s.setPlaceholder("Example: folder1/template_file").setValue(t).onChange(l=>{if(l&&this.plugin.settings.startup_templates.contains(l)){K(new w("This startup template already exist"));return}this.plugin.settings.startup_templates[n]=l,this.plugin.save_settings()}),s.containerEl.addClass("templater_search")}).addExtraButton(s=>{s.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.settings.startup_templates.splice(n,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new M.Setting(this.containerEl).addButton(t=>{t.setButtonText("Add new startup template").setCta().onClick(()=>{this.plugin.settings.startup_templates.push(""),this.plugin.save_settings(),this.display()})})}add_user_script_functions_setting(){new M.Setting(this.containerEl).setName("User script functions").setHeading();let e=document.createDocumentFragment();e.append("All JavaScript files in this folder will be loaded as CommonJS modules, to import custom user functions.",e.createEl("br"),"The folder needs to be accessible from the vault.",e.createEl("br"),"Check the ",e.createEl("a",{href:"https://silentvoid13.github.io/Templater/",text:"documentation"})," for more information."),new M.Setting(this.containerEl).setName("Script files folder location").setDesc(e).addSearch(n=>{new Ht(n.inputEl),n.setPlaceholder("Example: folder1/folder2").setValue(this.plugin.settings.user_scripts_folder).onChange(o=>{this.plugin.settings.user_scripts_folder=o,this.plugin.save_settings()}),n.containerEl.addClass("templater_search")}),e=document.createDocumentFragment();let t;if(!this.plugin.settings.user_scripts_folder)t="No user scripts folder set";else{let n=pe(()=>Ce(this.plugin.settings.user_scripts_folder),"User scripts folder doesn't exist");if(!n||n.length===0)t="No user scripts detected";else{let o=0;for(let s of n)s.extension==="js"&&(o++,e.append(e.createEl("li",{text:`tp.user.${s.basename}`})));t=`Detected ${o} User Script(s)`}}new M.Setting(this.containerEl).setName(t).setDesc(e).addExtraButton(n=>{n.setIcon("sync").setTooltip("Refresh").onClick(()=>{this.display()})})}add_user_system_command_functions_setting(){let e=document.createDocumentFragment();if(e.append("Allows you to create user functions linked to system commands.",e.createEl("br"),e.createEl("b",{text:"Warning: "}),"It can be dangerous to execute arbitrary system commands from untrusted sources. Only run system commands that you understand, from trusted sources."),new M.Setting(this.containerEl).setName("User system command functions").setHeading(),new M.Setting(this.containerEl).setName("Enable user system command functions").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.enable_system_commands).onChange(n=>{this.plugin.settings.enable_system_commands=n,this.plugin.save_settings(),this.display()})}),this.plugin.settings.enable_system_commands){new M.Setting(this.containerEl).setName("Timeout").setDesc("Maximum timeout in seconds for a system command.").addText(s=>{s.setPlaceholder("Timeout").setValue(this.plugin.settings.command_timeout.toString()).onChange(l=>{let A=Number(l);if(isNaN(A)){K(new w("Timeout must be a number"));return}this.plugin.settings.command_timeout=A,this.plugin.save_settings()})}),e=document.createDocumentFragment(),e.append("Full path to the shell binary to execute the command with.",e.createEl("br"),"This setting is optional and will default to the system's default shell if not specified.",e.createEl("br"),"You can use forward slashes ('/') as path separators on all platforms if in doubt."),new M.Setting(this.containerEl).setName("Shell binary location").setDesc(e).addText(s=>{s.setPlaceholder("Example: /bin/bash, ...").setValue(this.plugin.settings.shell_path).onChange(l=>{this.plugin.settings.shell_path=l,this.plugin.save_settings()})});let t=1;this.plugin.settings.templates_pairs.forEach(s=>{let l=this.containerEl.createEl("div");l.addClass("templater_div");let A=this.containerEl.createEl("h4",{text:"User function n\xB0"+t});A.addClass("templater_title"),new M.Setting(this.containerEl).addExtraButton(g=>{g.setIcon("cross").setTooltip("Delete").onClick(()=>{let f=this.plugin.settings.templates_pairs.indexOf(s);f>-1&&(this.plugin.settings.templates_pairs.splice(f,1),this.plugin.save_settings(),this.display())})}).addText(g=>{let f=g.setPlaceholder("Function name").setValue(s[0]).onChange(b=>{let k=this.plugin.settings.templates_pairs.indexOf(s);k>-1&&(this.plugin.settings.templates_pairs[k][0]=b,this.plugin.save_settings())});return f.inputEl.addClass("templater_template"),f}).addTextArea(g=>{let f=g.setPlaceholder("System command").setValue(s[1]).onChange(b=>{let k=this.plugin.settings.templates_pairs.indexOf(s);k>-1&&(this.plugin.settings.templates_pairs[k][1]=b,this.plugin.save_settings())});return f.inputEl.setAttr("rows",2),f.inputEl.addClass("templater_cmd"),f}).infoEl.remove(),l.appendChild(A),l.appendChild(this.containerEl.lastChild),t+=1});let n=this.containerEl.createEl("div");n.addClass("templater_div2"),new M.Setting(this.containerEl).addButton(s=>{s.setButtonText("Add new user function").setCta().onClick(()=>{this.plugin.settings.templates_pairs.push(["",""]),this.plugin.save_settings(),this.display()})}).infoEl.remove(),n.appendChild(this.containerEl.lastChild)}}add_donating_setting(){let e=new M.Setting(this.containerEl).setName("Donate").setDesc("If you like this Plugin, consider donating to support continued development."),t=document.createElement("a");t.setAttribute("href","https://github.com/sponsors/silentvoid13"),t.addClass("templater_donating");let n=document.createElement("img");n.src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86",t.appendChild(n);let o=document.createElement("a");o.setAttribute("href","https://www.paypal.com/donate?hosted_button_id=U2SRGAFYXT32Q"),o.addClass("templater_donating");let s=document.createElement("img");s.src="https://img.shields.io/badge/paypal-silentvoid13-yellow?style=social&logo=paypal",o.appendChild(s),e.settingEl.appendChild(t),e.settingEl.appendChild(o)}};var ur=G(require("obsidian"));var Pt;(function(t){t[t.InsertTemplate=0]="InsertTemplate",t[t.CreateNoteTemplate=1]="CreateNoteTemplate"})(Pt||(Pt={}));var Rr=class extends ur.FuzzySuggestModal{constructor(e){super(app);this.plugin=e,this.setPlaceholder("Type name of a template...")}getItems(){if(!this.plugin.settings.templates_folder)return app.vault.getMarkdownFiles();let e=pe(()=>Ce(this.plugin.settings.templates_folder),`Couldn't retrieve template files from templates folder ${this.plugin.settings.templates_folder}`);return e||[]}getItemText(e){let t=e.path;return e.path.startsWith(this.plugin.settings.templates_folder)&&(0,ur.normalizePath)(this.plugin.settings.templates_folder)!="/"&&(t=e.path.slice(this.plugin.settings.templates_folder.length+1)),t.split(".").slice(0,-1).join(".")}onChooseItem(e){switch(this.open_mode){case 0:this.plugin.templater.append_template_to_active_file(e);break;case 1:this.plugin.templater.create_new_note_from_template(e,this.creation_folder);break}}start(){try{this.open()}catch(e){K(e)}}insert_template(){this.open_mode=0,this.start()}create_new_note_from_template(e){this.creation_folder=e,this.open_mode=1,this.start()}};var ii="Error_MobileUnsupportedTemplate",oi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51.1328 28.7"><path d="M0 15.14 0 10.15 18.67 1.51 18.67 6.03 4.72 12.33 4.72 12.76 18.67 19.22 18.67 23.74 0 15.14ZM33.6928 1.84C33.6928 1.84 33.9761 2.1467 34.5428 2.76C35.1094 3.38 35.3928 4.56 35.3928 6.3C35.3928 8.0466 34.8195 9.54 33.6728 10.78C32.5261 12.02 31.0995 12.64 29.3928 12.64C27.6862 12.64 26.2661 12.0267 25.1328 10.8C23.9928 9.5733 23.4228 8.0867 23.4228 6.34C23.4228 4.6 23.9995 3.1066 25.1528 1.86C26.2994.62 27.7261 0 29.4328 0C31.1395 0 32.5594.6133 33.6928 1.84M49.8228.67 29.5328 28.38 24.4128 28.38 44.7128.67 49.8228.67M31.0328 8.38C31.0328 8.38 31.1395 8.2467 31.3528 7.98C31.5662 7.7067 31.6728 7.1733 31.6728 6.38C31.6728 5.5867 31.4461 4.92 30.9928 4.38C30.5461 3.84 29.9995 3.57 29.3528 3.57C28.7061 3.57 28.1695 3.84 27.7428 4.38C27.3228 4.92 27.1128 5.5867 27.1128 6.38C27.1128 7.1733 27.3361 7.84 27.7828 8.38C28.2361 8.9267 28.7861 9.2 29.4328 9.2C30.0795 9.2 30.6128 8.9267 31.0328 8.38M49.4328 17.9C49.4328 17.9 49.7161 18.2067 50.2828 18.82C50.8495 19.4333 51.1328 20.6133 51.1328 22.36C51.1328 24.1 50.5594 25.59 49.4128 26.83C48.2595 28.0766 46.8295 28.7 45.1228 28.7C43.4228 28.7 42.0028 28.0833 40.8628 26.85C39.7295 25.6233 39.1628 24.1366 39.1628 22.39C39.1628 20.65 39.7361 19.16 40.8828 17.92C42.0361 16.6733 43.4628 16.05 45.1628 16.05C46.8694 16.05 48.2928 16.6667 49.4328 17.9M46.8528 24.52C46.8528 24.52 46.9595 24.3833 47.1728 24.11C47.3795 23.8367 47.4828 23.3033 47.4828 22.51C47.4828 21.7167 47.2595 21.05 46.8128 20.51C46.3661 19.97 45.8162 19.7 45.1628 19.7C44.5161 19.7 43.9828 19.97 43.5628 20.51C43.1428 21.05 42.9328 21.7167 42.9328 22.51C42.9328 23.3033 43.1561 23.9733 43.6028 24.52C44.0494 25.06 44.5961 25.33 45.2428 25.33C45.8895 25.33 46.4261 25.06 46.8528 24.52Z" fill="currentColor"/></svg>';var ve=G(require("obsidian"));var ue=class{constructor(e){this.plugin=e;this.static_functions=new Map;this.dynamic_functions=new Map}getName(){return this.name}async init(){await this.create_static_templates(),this.static_object=Object.fromEntries(this.static_functions)}async generate_object(e){return this.config=e,await this.create_dynamic_templates(),{...this.static_object,...Object.fromEntries(this.dynamic_functions)}}};var Yr=class extends ue{constructor(){super(...arguments);this.name="date"}async create_static_templates(){this.static_functions.set("now",this.generate_now()),this.static_functions.set("tomorrow",this.generate_tomorrow()),this.static_functions.set("weekday",this.generate_weekday()),this.static_functions.set("yesterday",this.generate_yesterday())}async create_dynamic_templates(){}async teardown(){}generate_now(){return(e="YYYY-MM-DD",t,n,o)=>{if(n&&!window.moment(n,o).isValid())throw new w("Invalid reference date format, try specifying one with the argument 'reference_format'");let s;return typeof t=="string"?s=window.moment.duration(t):typeof t=="number"&&(s=window.moment.duration(t,"days")),window.moment(n,o).add(s).format(e)}}generate_tomorrow(){return(e="YYYY-MM-DD")=>window.moment().add(1,"days").format(e)}generate_weekday(){return(e="YYYY-MM-DD",t,n,o)=>{if(n&&!window.moment(n,o).isValid())throw new w("Invalid reference date format, try specifying one with the argument 'reference_format'");return window.moment(n,o).weekday(t).format(e)}}generate_yesterday(){return(e="YYYY-MM-DD")=>window.moment().add(-1,"days").format(e)}};var ie=G(require("obsidian"));var si=10,Lr=class extends ue{constructor(){super(...arguments);this.name="file";this.include_depth=0;this.create_new_depth=0;this.linkpath_regex=new RegExp("^\\[\\[(.*)\\]\\]$")}async create_static_templates(){this.static_functions.set("creation_date",this.generate_creation_date()),this.static_functions.set("create_new",this.generate_create_new()),this.static_functions.set("cursor",this.generate_cursor()),this.static_functions.set("cursor_append",this.generate_cursor_append()),this.static_functions.set("exists",this.generate_exists()),this.static_functions.set("find_tfile",this.generate_find_tfile()),this.static_functions.set("folder",this.generate_folder()),this.static_functions.set("include",this.generate_include()),this.static_functions.set("last_modified_date",this.generate_last_modified_date()),this.static_functions.set("move",this.generate_move()),this.static_functions.set("path",this.generate_path()),this.static_functions.set("rename",this.generate_rename()),this.static_functions.set("selection",this.generate_selection())}async create_dynamic_templates(){this.dynamic_functions.set("content",await this.generate_content()),this.dynamic_functions.set("tags",this.generate_tags()),this.dynamic_functions.set("title",this.generate_title())}async teardown(){}async generate_content(){return await app.vault.read(this.config.target_file)}generate_create_new(){return async(e,t,n=!1,o)=>{if(this.create_new_depth+=1,this.create_new_depth>si)throw this.create_new_depth=0,new w("Reached create_new depth limit (max = 10)");let s=await this.plugin.templater.create_new_note_from_template(e,o,t,n);return this.create_new_depth-=1,s}}generate_creation_date(){return(e="YYYY-MM-DD HH:mm")=>window.moment(this.config.target_file.stat.ctime).format(e)}generate_cursor(){return e=>`<% tp.file.cursor(${e??""}) %>`}generate_cursor_append(){return e=>{let t=app.workspace.activeEditor;if(!t||!t.editor){K(new w("No active editor, can't append to cursor."));return}return t.editor.getDoc().replaceSelection(e),""}}generate_exists(){return async e=>{let t=(0,ie.normalizePath)(e);return await app.vault.exists(t)}}generate_find_tfile(){return e=>{let t=(0,ie.normalizePath)(e);return app.metadataCache.getFirstLinkpathDest(t,"")}}generate_folder(){return(e=!1)=>{let t=this.config.target_file.parent,n;return e?n=t.path:n=t.name,n}}generate_include(){return async e=>{if(this.include_depth+=1,this.include_depth>si)throw this.include_depth-=1,new w("Reached inclusion depth limit (max = 10)");let t;if(e instanceof ie.TFile)t=await app.vault.read(e);else{let n;if((n=this.linkpath_regex.exec(e))===null)throw this.include_depth-=1,new w("Invalid file format, provide an obsidian link between quotes.");let{path:o,subpath:s}=(0,ie.parseLinktext)(n[1]),l=app.metadataCache.getFirstLinkpathDest(o,"");if(!l)throw this.include_depth-=1,new w(`File ${e} doesn't exist`);if(t=await app.vault.read(l),s){let A=app.metadataCache.getFileCache(l);if(A){let p=(0,ie.resolveSubpath)(A,s);p&&(t=t.slice(p.start.offset,p.end?.offset))}}}try{let n=await this.plugin.templater.parser.parse_commands(t,this.plugin.templater.current_functions_object);return this.include_depth-=1,n}catch(n){throw this.include_depth-=1,n}}}generate_last_modified_date(){return(e="YYYY-MM-DD HH:mm")=>window.moment(this.config.target_file.stat.mtime).format(e)}generate_move(){return async(e,t)=>{let n=t||this.config.target_file,o=(0,ie.normalizePath)(`${e}.${n.extension}`),s=o.replace(/\\/g,"/").split("/");if(s.pop(),s.length){let l=s.join("/");window.app.vault.getAbstractFileByPath(l)||await window.app.vault.createFolder(l)}return await app.fileManager.renameFile(n,o),""}}generate_path(){return(e=!1)=>{let t="";if(ie.Platform.isMobileApp){let n=app.vault.adapter.fs.uri,o=app.vault.adapter.basePath;t=`${n}/${o}`}else if(app.vault.adapter instanceof ie.FileSystemAdapter)t=app.vault.adapter.getBasePath();else throw new w("app.vault is not a FileSystemAdapter instance");return e?this.config.target_file.path:`${t}/${this.config.target_file.path}`}}generate_rename(){return async e=>{if(e.match(/[\\/:]+/g))throw new w("File name cannot contain any of these characters: \\ / :");let t=(0,ie.normalizePath)(`${this.config.target_file.parent.path}/${e}.${this.config.target_file.extension}`);return await app.fileManager.renameFile(this.config.target_file,t),""}}generate_selection(){return()=>{let e=app.workspace.activeEditor;if(!e||!e.editor)throw new w("Active editor is null, can't read selection.");return e.editor.getSelection()}}generate_tags(){let e=app.metadataCache.getFileCache(this.config.target_file);return e?(0,ie.getAllTags)(e):null}generate_title(){return this.config.target_file.basename}};var ai=G(require("obsidian"));var Hr=class extends ue{constructor(){super(...arguments);this.name="web"}async create_static_templates(){this.static_functions.set("daily_quote",this.generate_daily_quote()),this.static_functions.set("request",this.generate_request()),this.static_functions.set("random_picture",this.generate_random_picture())}async create_dynamic_templates(){}async teardown(){}async getRequest(e){try{let t=await(0,ai.requestUrl)(e);if(t.status<200&&t.status>=300)throw new w("Error performing GET request");return t}catch{throw new w("Error performing GET request")}}generate_daily_quote(){return async()=>{try{let t=(await this.getRequest("https://api.quotable.io/random")).json,n=t.author;return`> [!quote] ${t.content}
|
|
> \u2014 ${n}`}catch{return new w("Error generating daily quote"),"Error generating daily quote"}}}generate_random_picture(){return async(e,t,n=!1)=>{try{let o=await this.getRequest(`https://templater-unsplash-2.fly.dev/${t?"?q="+t:""}`).then(l=>l.json),s=o.full;if(e&&!n)if(e.includes("x")){let[l,A]=e.split("x");s=s.concat(`&w=${l}&h=${A}`)}else s=s.concat(`&w=${e}`);return n?`![photo by ${o.photog}(${o.photogUrl}) on Unsplash|${e}](${s})`:`![photo by ${o.photog}(${o.photogUrl}) on Unsplash](${s})`}catch{return new w("Error generating random picture"),"Error generating random picture"}}}generate_request(){return async(e,t)=>{try{let o=await(await this.getRequest(e)).json;return t&&o?t.split(".").reduce((s,l)=>{if(s&&s.hasOwnProperty(l))return s[l];throw new Error(`Path ${t} not found in the JSON response`)},o):o}catch(n){throw console.error(n),new w("Error fetching and extracting value")}}}};var Gr=class extends ue{constructor(){super(...arguments);this.name="hooks";this.event_refs=[]}async create_static_templates(){this.static_functions.set("on_all_templates_executed",this.generate_on_all_templates_executed())}async create_dynamic_templates(){}async teardown(){this.event_refs.forEach(e=>{e.e.offref(e)}),this.event_refs=[]}generate_on_all_templates_executed(){return e=>{let t=app.workspace.on("templater:all-templates-executed",async()=>{await or(1),e()});t&&this.event_refs.push(t)}}};var Vr=class extends ue{constructor(){super(...arguments);this.name="frontmatter"}async create_static_templates(){}async create_dynamic_templates(){let e=app.metadataCache.getFileCache(this.config.target_file);this.dynamic_functions=new Map(Object.entries(e?.frontmatter||{}))}async teardown(){}};var Se=G(require("obsidian"));var Wr=class extends Se.Modal{constructor(e,t,n){super(app);this.prompt_text=e;this.default_value=t;this.multi_line=n;this.submitted=!1}onOpen(){this.titleEl.setText(this.prompt_text),this.createForm()}onClose(){this.contentEl.empty(),this.submitted||this.reject(new w("Cancelled prompt"))}createForm(){let e=this.contentEl.createDiv();e.addClass("templater-prompt-div");let t;if(this.multi_line){t=new Se.TextAreaComponent(e);let n=this.contentEl.createDiv();n.addClass("templater-button-div");let o=new Se.ButtonComponent(n);o.buttonEl.addClass("mod-cta"),o.setButtonText("Submit").onClick(s=>{this.resolveAndClose(s)})}else t=new Se.TextComponent(e);this.value=this.default_value??"",t.inputEl.addClass("templater-prompt-input"),t.setPlaceholder("Type text here"),t.setValue(this.value),t.onChange(n=>this.value=n),t.inputEl.focus(),t.inputEl.addEventListener("keydown",n=>this.enterCallback(n))}enterCallback(e){e.isComposing||e.keyCode===229||(this.multi_line?Se.Platform.isDesktop&&e.key==="Enter"&&!e.shiftKey&&this.resolveAndClose(e):e.key==="Enter"&&this.resolveAndClose(e))}resolveAndClose(e){this.submitted=!0,e.preventDefault(),this.resolve(this.value),this.close()}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var li=G(require("obsidian")),Kr=class extends li.FuzzySuggestModal{constructor(e,t,n,o){super(app);this.text_items=e;this.items=t;this.submitted=!1;this.setPlaceholder(n),o&&(this.limit=o)}getItems(){return this.items}onClose(){this.submitted||this.reject(new w("Cancelled prompt"))}selectSuggestion(e,t){this.submitted=!0,this.close(),this.onChooseSuggestion(e,t)}getItemText(e){return this.text_items instanceof Function?this.text_items(e):this.text_items[this.items.indexOf(e)]||"Undefined Text Item"}onChooseItem(e){this.resolve(e)}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var Ur=class extends ue{constructor(){super(...arguments);this.name="system"}async create_static_templates(){this.static_functions.set("clipboard",this.generate_clipboard()),this.static_functions.set("prompt",this.generate_prompt()),this.static_functions.set("suggester",this.generate_suggester())}async create_dynamic_templates(){}async teardown(){}generate_clipboard(){return async()=>await navigator.clipboard.readText()}generate_prompt(){return async(e,t,n=!1,o=!1)=>{let s=new Wr(e,t,o),l=new Promise((A,p)=>s.openAndGetValue(A,p));try{return await l}catch(A){if(n)throw A;return null}}}generate_suggester(){return async(e,t,n=!1,o="",s)=>{let l=new Kr(e,t,o,s),A=new Promise((p,g)=>l.openAndGetValue(p,g));try{return await A}catch(p){if(n)throw p;return null}}}};var zr=class extends ue{constructor(){super(...arguments);this.name="config"}async create_static_templates(){}async create_dynamic_templates(){}async teardown(){}async generate_object(e){return e}};var Jr=class{constructor(e){this.plugin=e;this.modules_array=[];this.modules_array.push(new Yr(this.plugin)),this.modules_array.push(new Lr(this.plugin)),this.modules_array.push(new Hr(this.plugin)),this.modules_array.push(new Vr(this.plugin)),this.modules_array.push(new Gr(this.plugin)),this.modules_array.push(new Ur(this.plugin)),this.modules_array.push(new zr(this.plugin))}async init(){for(let e of this.modules_array)await e.init()}async teardown(){for(let e of this.modules_array)await e.teardown()}async generate_object(e){let t={};for(let n of this.modules_array)t[n.getName()]=await n.generate_object(e);return t}};var ci=G(require("child_process")),pi=G(require("util")),Gt=G(require("obsidian"));var Xr=class{constructor(e){this.plugin=e;Gt.Platform.isMobileApp||!(app.vault.adapter instanceof Gt.FileSystemAdapter)?this.cwd="":(this.cwd=app.vault.adapter.getBasePath(),this.exec_promise=(0,pi.promisify)(ci.exec))}async generate_system_functions(e){let t=new Map,n=await this.plugin.templater.functions_generator.generate_object(e,De.INTERNAL);for(let o of this.plugin.settings.templates_pairs){let s=o[0],l=o[1];!s||!l||(Gt.Platform.isMobileApp?t.set(s,()=>new Promise(A=>A(ii))):(l=await this.plugin.templater.parser.parse_commands(l,n),t.set(s,async A=>{let p={...process.env,...A},g={timeout:this.plugin.settings.command_timeout*1e3,cwd:this.cwd,env:p,...this.plugin.settings.shell_path&&{shell:this.plugin.settings.shell_path}};try{let{stdout:f}=await this.exec_promise(l,g);return f.trimRight()}catch(f){throw new w(`Error with User Template ${s}`,f)}})))}return t}async generate_object(e){let t=await this.generate_system_functions(e);return Object.fromEntries(t)}};var Qr=class{constructor(e){this.plugin=e}async generate_user_script_functions(){let e=new Map,t=pe(()=>Ce(this.plugin.settings.user_scripts_folder),`Couldn't find user script folder "${this.plugin.settings.user_scripts_folder}"`);if(!t)return new Map;for(let n of t)n.extension.toLowerCase()==="js"&&await this.load_user_script_function(n,e);return e}async load_user_script_function(e,t){let n=p=>window.require&&window.require(p),o={},s={exports:o},l=await app.vault.read(e);try{window.eval("(function anonymous(require, module, exports){"+l+`
|
|
})`)(n,s,o)}catch(p){throw new w(`Failed to load user script at "${e.path}".`,p.message)}let A=o.default||s.exports;if(!A)throw new w(`Failed to load user script at "${e.path}". No exports detected.`);if(!(A instanceof Function))throw new w(`Failed to load user script at "${e.path}". Default export is not a function.`);t.set(`${e.basename}`,A)}async generate_object(){let e=await this.generate_user_script_functions();return Object.fromEntries(e)}};var Zr=class{constructor(e){this.plugin=e;this.user_system_functions=new Xr(e),this.user_script_functions=new Qr(e)}async generate_object(e){let t={},n={};return this.plugin.settings.enable_system_commands&&(t=await this.user_system_functions.generate_object(e)),this.plugin.settings.user_scripts_folder&&(n=await this.user_script_functions.generate_object()),{...t,...n}}};var Po=G(require("obsidian")),De;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.USER_INTERNAL=1]="USER_INTERNAL"})(De||(De={}));var en=class{constructor(e){this.plugin=e;this.internal_functions=new Jr(this.plugin),this.user_functions=new Zr(this.plugin)}async init(){await this.internal_functions.init()}async teardown(){await this.internal_functions.teardown()}additional_functions(){return{obsidian:Po}}async generate_object(e,t=1){let n={},o=this.additional_functions(),s=await this.internal_functions.generate_object(e),l={};switch(Object.assign(n,o),t){case 0:Object.assign(n,s);break;case 1:l=await this.user_functions.generate_object(e),Object.assign(n,{...s,user:l});break}return n}};var Ro={},v,Fe=new Array(32).fill(void 0);Fe.push(void 0,null,!0,!1);function de(r){return Fe[r]}var Vt=Fe.length;function Bo(r){r<36||(Fe[r]=Vt,Vt=r)}function tn(r){let e=de(r);return Bo(r),e}var Ai=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ai.decode();var mr=new Uint8Array;function fr(){return mr.byteLength===0&&(mr=new Uint8Array(v.memory.buffer)),mr}function tt(r,e){return Ai.decode(fr().subarray(r,r+e))}function rt(r){Vt===Fe.length&&Fe.push(Fe.length+1);let e=Vt;return Vt=Fe[e],Fe[e]=r,e}var Me=0,dr=new TextEncoder("utf-8"),Oo=typeof dr.encodeInto=="function"?function(r,e){return dr.encodeInto(r,e)}:function(r,e){let t=dr.encode(r);return e.set(t),{read:r.length,written:t.length}};function ze(r,e,t){if(t===void 0){let A=dr.encode(r),p=e(A.length);return fr().subarray(p,p+A.length).set(A),Me=A.length,p}let n=r.length,o=e(n),s=fr(),l=0;for(;l<n;l++){let A=r.charCodeAt(l);if(A>127)break;s[o+l]=A}if(l!==n){l!==0&&(r=r.slice(l)),o=t(o,n,n=l+r.length*3);let A=fr().subarray(o+l,o+n);l+=Oo(r,A).written}return Me=l,o}function qo(r){return r==null}var gr=new Int32Array;function ge(){return gr.byteLength===0&&(gr=new Int32Array(v.memory.buffer)),gr}function rn(r){let e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){let o=r.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){let o=r.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(r)){let o=r.length,s="[";o>0&&(s+=rn(r[0]));for(let l=1;l<o;l++)s+=", "+rn(r[l]);return s+="]",s}let t=/\[object ([^\]]+)\]/.exec(toString.call(r)),n;if(t.length>1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message}
|
|
${r.stack}`:n}function Io(r,e){if(!(r instanceof e))throw new Error(`expected instance of ${e.name}`);return r.ptr}var hr=32;function Co(r){if(hr==1)throw new Error("out of js stack");return Fe[--hr]=r,hr}function nn(r,e){try{return r.apply(this,e)}catch(t){v.__wbindgen_exn_store(rt(t))}}var ht=class{static __wrap(e){let t=Object.create(ht.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();v.__wbg_parserconfig_free(e)}get interpolate(){let e=v.__wbg_get_parserconfig_interpolate(this.ptr);return String.fromCodePoint(e)}set interpolate(e){v.__wbg_set_parserconfig_interpolate(this.ptr,e.codePointAt(0))}get execution(){let e=v.__wbg_get_parserconfig_execution(this.ptr);return String.fromCodePoint(e)}set execution(e){v.__wbg_set_parserconfig_execution(this.ptr,e.codePointAt(0))}get single_whitespace(){let e=v.__wbg_get_parserconfig_single_whitespace(this.ptr);return String.fromCodePoint(e)}set single_whitespace(e){v.__wbg_set_parserconfig_single_whitespace(this.ptr,e.codePointAt(0))}get multiple_whitespace(){let e=v.__wbg_get_parserconfig_multiple_whitespace(this.ptr);return String.fromCodePoint(e)}set multiple_whitespace(e){v.__wbg_set_parserconfig_multiple_whitespace(this.ptr,e.codePointAt(0))}constructor(e,t,n,o,s,l,A){let p=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),g=Me,f=ze(t,v.__wbindgen_malloc,v.__wbindgen_realloc),b=Me,k=ze(A,v.__wbindgen_malloc,v.__wbindgen_realloc),x=Me,q=v.parserconfig_new(p,g,f,b,n.codePointAt(0),o.codePointAt(0),s.codePointAt(0),l.codePointAt(0),k,x);return ht.__wrap(q)}get opening_tag(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_opening_tag(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set opening_tag(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Me;v.parserconfig_set_opening_tag(this.ptr,t,n)}get closing_tag(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_closing_tag(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set closing_tag(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Me;v.parserconfig_set_closing_tag(this.ptr,t,n)}get global_var(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_global_var(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set global_var(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Me;v.parserconfig_set_global_var(this.ptr,t,n)}},Bt=class{static __wrap(e){let t=Object.create(Bt.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();v.__wbg_renderer_free(e)}constructor(e){Io(e,ht);var t=e.ptr;e.ptr=0;let n=v.renderer_new(t);return Bt.__wrap(n)}render_content(e,t){try{let l=v.__wbindgen_add_to_stack_pointer(-16),A=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),p=Me;v.renderer_render_content(l,this.ptr,A,p,Co(t));var n=ge()[l/4+0],o=ge()[l/4+1],s=ge()[l/4+2];if(s)throw tn(o);return tn(n)}finally{v.__wbindgen_add_to_stack_pointer(16),Fe[hr++]=void 0}}};async function So(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}let t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function Do(){let r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){tn(e)},r.wbg.__wbindgen_string_new=function(e,t){let n=tt(e,t);return rt(n)},r.wbg.__wbindgen_string_get=function(e,t){let n=de(t),o=typeof n=="string"?n:void 0;var s=qo(o)?0:ze(o,v.__wbindgen_malloc,v.__wbindgen_realloc),l=Me;ge()[e/4+1]=l,ge()[e/4+0]=s},r.wbg.__wbg_call_97ae9d8645dc388b=function(){return nn(function(e,t){let n=de(e).call(de(t));return rt(n)},arguments)},r.wbg.__wbg_new_8d2af00bc1e329ee=function(e,t){let n=new Error(tt(e,t));return rt(n)},r.wbg.__wbg_message_fe2af63ccc8985bc=function(e){let t=de(e).message;return rt(t)},r.wbg.__wbg_newwithargs_8fe23e3842840c8e=function(e,t,n,o){let s=new Function(tt(e,t),tt(n,o));return rt(s)},r.wbg.__wbg_call_168da88779e35f61=function(){return nn(function(e,t,n){let o=de(e).call(de(t),de(n));return rt(o)},arguments)},r.wbg.__wbg_call_3999bee59e9f7719=function(){return nn(function(e,t,n,o){let s=de(e).call(de(t),de(n),de(o));return rt(s)},arguments)},r.wbg.__wbindgen_debug_string=function(e,t){let n=rn(de(t)),o=ze(n,v.__wbindgen_malloc,v.__wbindgen_realloc),s=Me;ge()[e/4+1]=s,ge()[e/4+0]=o},r.wbg.__wbindgen_throw=function(e,t){throw new Error(tt(e,t))},r}function $o(r,e){}function No(r,e){return v=r.exports,ui.__wbindgen_wasm_module=e,gr=new Int32Array,mr=new Uint8Array,v}async function ui(r){typeof r=="undefined"&&(r=new URL("rusty_engine_bg.wasm",Ro.url));let e=Do();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r)),$o(e);let{instance:t,module:n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EACyAAIAM2AjggACABNgIwIABBADoADiAAQgA3AwAgAEE8akEANgIAIABBNGogAjYCACAAQQxqQYECOwEAIABBCGogAjYCAA8LIAcEQANAQgEgBTEAAIYgD4QhDyAFQQFqIQUgB0F/aiIHDQALCyALIAYgChtBAWohB0F/IQkgCyEKQX8LIQUgACADNgI4IAAgATYCMCAAQQE2AgAgAEE8aiAENgIAIABBNGogAjYCACAAQShqIAU2AgAgAEEkaiAJNgIAIABBIGogAjYCACAAQRxqQQA2AgAgAEEYaiAHNgIAIABBFGogCjYCACAAQRBqIAs2AgAgAEEIaiAPNwIAC+AJAQ9/IwBB0ABrIgEkACABQcgAaiAAQShqKAIAIgY2AgAgAUFAayILIABBIGopAgA3AwAgAUE4aiAAQRhqKQIANwMAIAFBMGogAEEQaikCADcDACABQShqIABBCGopAgA3AwAgASAAKQIANwMgAkAgBkUEQAwBCyABKAIoIQcgASgCJCEIIAEtAEQhCiABQTRqKAIAIgUgAUEsaigCACIMSwRAIApFIAggASgCICIARnEEQAwCCyAHRQRADAILIAggAGshBCABLQBFRSEAA0AgAEEBcUUNAiADIARqQQFqIQNBACEAIAZBf2oiBg0ACwwBCyABQTxqKAIAIgkgC2pBf2ohDSAJQQRNBEAgAS0ARSECA0AgAkH/AXENAgJ/AkAgBSABKAIwIgJJDQADQCACIAdqIQ4gDS0AACEPAkACfyAFIAJrIgRBCE8EQCABQRhqIA8gDiAEEDEgASgCHCEAIAEoAhgMAQtBACEAQQAgBEUNABoDQEEBIA8gACAOai0AAEYNARogBCAAQQFqIgBHDQALIAQhAEEAC0EBRgRAIAEgACACakEBaiICNgIwIAIgCUkgAiAMS3INASAHIAIgCWsiAGogCyAJELgBDQEgASgCICEEIAEgAjYCICAAIARrIQBBAAwECyABIAU2AjAMAgsgBSACTw0ACwsgCkVBACABKAIgIgAgCEYbDQMgAUEBOgBFIAggAGshAEEBCyECIAdFBEBBACEDDAMLIAAgA2pBAWohAyAGQX9qIgYNAAsMAQsgAS0ARSEAAkACQ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UF/SgRAIAVB/wFxIQUgBEEBagwBCyAELQABQT9xIQggBUEfcSEDIAVBX00EQCADQQZ0IAhyIQUgBEECagwBCyAELQACQT9xIAhBBnRyIQggBUFwSQRAIAggA0EMdHIhBSAEQQNqDAELIANBEnRBgIDwAHEgBC0AA0E/cSAIQQZ0cnIiBUGAgMQARg0BIARBBGoLIQMgBUEgRiAFQXdqQQVJckUEQCAFQYABSQ0DIAUQLEUNAwsgByAEayADaiEHIAMgCUcNAQsLIAIhBwsgASAHaiEBIAIgB2shAgsgACACNgIEIAAgATYCACAGQRBqJAALyAsBCH8jAEHgAGsiAyQAIABCATcCACAAQQhqIgRBADYCACAAQQBBEBBBIAQoAgAiBSAAKAIAaiIGQdSDwAApAAA3AAAgBCAFQRBqNgIAIAZBCGpB3IPAACkAADcAACADQQE2AiwgAyABKAIIQShqIgU2AiggAyAANgIYIANB3ABqQQE2AgAgA0ICNwJMIANB8IPAADYCSCADIANBKGo2AlgCQAJAAkACQAJAAkAgA0EYakGYisAAIANByABqEB5FBEAgAigCACEIAkAgAigCCCIBRQ0AIAFBBHQhCkGQhMAAIQZBACEBQQAhBANAAn8gASAIaiIHQQRqIgkgBygCAEUNABoCQCAERQ0AIANBEGogBCgCACAEKAIEQQAgBiAGLQAAQQJGG0EBEBAgA0EIaiADKAIQIAMoAhRBACAHQQ1qIgQgBC0AAEECRhtBABAQIANBGGogAygCCCADKAIMEBIgA0EBNgI0IANBATYCLCADIAU2AiggAyADQRhqNgIwIAMgADYCRCADQQI2AlwgA0IDNwJMIANBmITAADYCSCADIANBKGo2AlggA0HEAGpBmIrAACADQcgAahAeDQUgAygCHEUNACADKAIYEBULIAdBDmohBgJAIAdBDGotAABFBEAgA0ECNgIsIAMgCTYCKCADIAA2AhggA0EBNgJcIANCAjcCTCADQfSEwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQcgA0ECNgI0IANBoIXAADYCMCADQQE2AiwgAyAFNgIoIAMgADYCGCADQQI2AlwgA0IDNwJMIANBmITAADYCSCADIANBKGo2AlggA0EYakGYisAAIANByABqEB5FDQFBq4HAAEErIANByABqQdiBwABBqIXAABBSAAsgA0ECNgIsIAMgCTYCKCADIAA2AhggA0EBNgJcIANCAjcCTCADQcSEwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQcLQQALIQQgCiABQRBqIgFHDQALIARFDQAgAyAEKAIAIAQoAgRBACAGIAYtAABBAkYbQQEQECADQRhqIAMoAgAgAygCBBASIANBNGpBATYCACADQQE2AiwgAyAFNgIoIAMgA0EYajYCMCADIAA2AkQgA0HcAGpBAjYCACADQgM3AkwgA0GYhMAANgJIIAMgA0EoajYCWCADQcQAakGYisAAIANByABqEB4NBSADKAIcRQ0AIAMoAhgQFQsgAEEEaigCACAAQQhqIgQoAgAiAWtBJ00EQCAAIAFBKBBBIAQoAgAhAQsgBCABQShqNgIAIAAoAgAgAWoiAUHIhcAAKQAANwAAIAFBCGpB0IXAACkAADcAACABQRBqQdiFwAApAAA3AAAgAUEYakHghcAAKQAANwAAIAFBIGpB6IXAACkAADcAACADQTxqQQI2AgAgA0E0akEBNgIAIANBoIXAADYCOCADIAU2AjAgA0EBNgIsIAMgBTYCKCADIAA2AhggA0HcAGoiAUEDNgIAIANCBDcCTCADQZiGwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQUgA0EBNgIsIAMgBTYCKCADIAA2AhggAUEBNgIAIANCAjcCTCADQdCGwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQYgAkEEaigCAARAIAgQFQsgA0HgAGokAA8LQauBwABBKyADQcgAakHYgcAAQYCEwAAQUgALQauBwABBKyADQcgAakHYgcAAQbCEwAAQUgALQauBwABBKyADQcgAakHYgcAAQYSFwAAQUgALQauBwABBKyADQcgAakHYgcAAQdSEwAAQUgALQauBwABBKyADQcgAakHYgcAAQbiFwAAQUgALQauBwABBKyADQcgAakHYgcAAQbiGwAAQUgALQauBwABBKyADQcgAakHYgcAAQ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CACICazYCACAAQQhqIAEgAmo2AgAgACADNgIEIAAgATYCAAwBCyAAQQA2AgALIARB0ABqJAAPCyAHIAYgAyAGEHsAC5QEAQ1/IwBBsAFrIgEkAAJAAkAgAARAIAAoAgANASAAQQA2AgAgAUGIAWoiAiAAQRBqKQIANwMAIAFBgAFqIgMgAEEIaikCADcDACABQZABaiIEIABBGGopAgA3AwAgAUGYAWoiBSAAQSBqKQIANwMAIAFBoAFqIgYgAEEoaikCADcDACABQagBaiIHIABBMGopAgA3AwAgAUEQaiIIIAFBhAFqKQIANwMAIAFBGGoiCSABQYwBaikCADcDACABQSBqIgogAUGUAWopAgA3AwAgAUEoaiILIAFBnAFqKQIANwMAIAFBMGoiDCABQaQBaikCADcDACABQThqIg0gAUGsAWooAgA2AgAgASAAKQIANwN4IAEgASkCfDcDCCAAEBUgAUHwAGogDSgCADYCACABQegAaiAMKQMANwMAIAFB4ABqIAspAwA3AwAgAUHYAGogCikDADcDACABQdAAaiAJKQMANwMAIAFByABqIAgpAwA3AwAgASABKQMINwNAIAFB+ABqIAFBQGsQOkE8QQQQngEiAEUNAiAAQQA2AgAgACABKQN4NwIEIABBDGogAykDADcCACAAQRRqIAIpAwA3AgAgAEEcaiAEKQMANwIAIABBJGogBSkDADcCACAAQSxqIAYpAwA3AgAgAEE0aiAHKQMANwIAIAFBsAFqJAAgAA8LEK0BAAsQrgEAC0E8QQQQswEAC9cEAQR/IAAgARC6ASECAkACQAJAIAAQsAENACAAKAIAIQMCQCAAEKUBRQRAIAEgA2ohASAAIAMQuwEiAEHAscAAKAIARw0BIAIoAgRBA3FBA0cNAkG4scAAIAE2AgAgACABIAIQhgEPCyABIANqQRBqIQAMAgsgA0GAAk8EQCAAEDUMAQsgAEEMaigCACIEIABBCGooAgAiBUcEQCAFIAQ2AgwgBCAFNgIIDAELQaiuwABBqK7AACgCAEF+IANBA3Z3cTYCAAsgAhCiAQRAIAAgASACEIYBDAILAkBBxLHAACgCACACRwRAIAJBwLHAACgCAEcNA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QADwsgACABQQFqNgIAIAEtAAAiA0EYdEEYdUF/TAR/IAAgAUECajYCACABLQABQT9xIQIgA0EfcSEEIANB3wFNBEAgBEEGdCACcg8LIAAgAUEDajYCACABLQACQT9xIAJBBnRyIQIgA0HwAUkEQCACIARBDHRyDwsgACABQQRqNgIAIARBEnRBgIDwAHEgAS0AA0E/cSACQQZ0cnIFIAMLC68BAQN/IwBBIGsiAiQAAkAgAUEBaiIDIAFJDQAgAEEEaigCACIBQQF0IgQgAyAEIANLGyIDQQggA0EISxshAyACIAEEfyACIAE2AhQgAiAAKAIANgIQQQEFQQALNgIYIAIgA0EBIAJBEGoQSyACKAIABEAgAkEIaigCACIARQ0BIAIoAgQgABCzAQALIAIoAgQhASAAQQRqIAM2AgAgACABNgIAIAJBIGokAA8LEHMAC68BAQJ/IwBBIGsiAyQAAkAgASACaiICIAFJDQAgAEEEaigCACIBQQF0IgQgAiAEIAJLGyICQQggAkEISxshBCADIAEEfyADIAE2AhQgAyAAKAIANgIQQQEFQQALNgIYIAMgBEEBIANBEGoQSyADKAIABEAgA0EIaigCACIARQ0BIAMoAgQgABCzAQALIAMoAgQhASAAQQRqIAQ2AgAgACABNgIAIANBIGokAA8LEHMAC60BAQJ/IwBBIGsiAyQAAkAgASACaiICIAFJDQAgAEEEaigCACIBQQF0IgQgAiAEIAJLGyICQQggAkEISxshBCADIAEEfyADIAE2AhQgAyAAKAIANgIQQQEFQQALNgIYIAMgBCADQRBqEEogAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQswEACyADKAIEIQEgAEEEaiAENgIAIAAgATYCACADQSBqJAAPCxBzAAutAQEDfyMAQSBrIgIkAAJAIAFBAWoiAyABSQ0AIABBBGooAgAiAUEBdCIEIAMgBCADSxsiA0EIIANBCEsbIQMgAiABBH8gAiABNgIUIAIgACgCADYCEEEBBUEACzYCGCACIAMgAkEQahBKIAIoAgAEQCACQQhqKAIAIgBFDQEgAigCBCAAELMBAAsgAigCBCEBIABBBGogAzYCACAAIAE2A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gQiAiADKAIIIgRNBEAgASECDAELIARFBEBBASECIAEQFQwBCyABIAJBASAEEJkBIgJFDQMLIAAgBDYCBCAAIAI2AgAgA0EQaiQADwsQrQEACxCuAQALIARBARCzAQALrAEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUakGAjsAAIAJBGGoQHhogA0EIaiAEKAIANgIAIAMgAikDCDcCAAsgAEHoj8AANgIEIAAgAzYCACACQTBqJAALkAEBAn8CQAJ/AkACQAJAAn9BASIDIAFBAEgNABogAigCCEUNAiACKAIEIgQNASABDQNBAQwECyEDQQAhAQwECyACKAIAIARBASABEJkBDAILIAENAEEBDAELIAFBARCeAQsiAgRAIAAgAjYCBEEAIQMMAQsgACABNgIEQQEhAQsgACADNgIAIABBCGogATYCAAunAQECfwJAAkACQAJAAkACQAJAAn8gAgRAQQEiBCABQQBIDQEaIAMoAghFDQMgAygCBCIFDQIgAQ0EDAYLIAAgATYCBEEBCyEEQQAhAQwGCyADKAIAIAUgAiABEJkBIgNFDQIMBAsgAUUNAgsgASACEJ4BIgMNAgsgACABNgIEIAIhAQwCCyACIQMLIAAgAzYCBEEAIQQLIAAgBDYCACAAQQhqIAE2AgALlwEBAX8jAEEQayIGJAAgAQRAIAYgASADIAQgBSACKAIQEQYAIAYoAgAhAQJAIAYoAgQiAyAGKAIIIgJNBEAgASEDDAELIANBAnQhAyACQQJ0IgQEQCABIANBBCAEEJkBIgMNASAEQQQQswEAC0EEIQMgARAVCyAAIAI2AgQgACADNgIAIAZBEGokAA8LQciMwABBMBCsAQALjAEBAn8jAEFAaiIBJAAgAUEANgIIIAFCATcDACABQRBqIAEQfCAAIAFBEGoQNkUEQCABKAIAIAEoAggQBCABKAIEBEAgASgCABAVCwJAIAAoAgBBAUYNACAAQQhqKAIARQ0AIAAoAgQQFQsgAUF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0HAk8AANgIIIANBAzYCJCADIANBIGo2AhggAyADNgIoIAMgA0EEajYCICADQQhqIAIQdAALVgECfyMAQSBrIgIkACAAQRxqKAIAIQMgACgCGCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCADIAJBCGoQHiACQSBqJAALWQEBfyMAQSBrIgIkACACIAAoAgA2AgQgAkEYaiABQRBqKQIANwMAIAJBEGogAUEIaikCADcDACACIAEpAgA3AwggAkEEakGYisAAIAJBCGoQHiACQSBqJAALWQEBfyMAQSBrIgIkACACIAAoAgA2AgQgAkEYaiABQRBqKQIANwMAIAJBEGogAUEIaikCADcDACACIAEpAgA3AwggAkEEakGAjsAAIAJBCGoQHiACQSBqJAALZwAjAEEwayIBJABB2K3AAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUH0jsAANgIIIAFBAzYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQZyPwAAQdAALIAFBMGokAAtZAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQbSRwAAgAkEIahAeIAJBIGokAAtnAQJ/IAEoAgAhAwJAAkACQCABQQhqKAIAIgFFBEBBASECDAELIAFBf0wNASABQQEQngEiAkUNAgsgAiADIAEQuQEhAiAAIAE2AgggACABNgIEIAAgAjYCAA8LEHMACyABQQEQswEAC1YBAX8jAEEgayICJAAgAiAANgIEIAJBGGogAUEQaikCADcDACACQRBqIAFBCGopAgA3AwAgAiABKQIANwMIIAJBBGpBmIrAACACQQhqEB4gAkEgaiQAC1YBAX8CQCAABEAgACgCAA0BIABBfzYCACAAQQhqIgMoAgAEQCAAKAIEEBULIAAgATYCBCAAQQA2AgAgAEEMaiACNgIAIAMgAjYCAA8LEK0BAAsQrgEAC1YBAX8CQCAABEAgACgCAA0BIABBfzYCACAAQRRqIgMoAgAEQCAAKAIQEBULIAAgATYCECAAQQA2AgAgAEEYa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2AhwgAiAANgIYIAIgAkEYajYCACACIAEQdAALRgECfyABKAIEIQIgASgCACEDQQhBBBCeASIBRQRAQQhBBBCzAQALIAEgAjYCBCABIAM2AgAgAEH4j8AANgIEIAAgATYCAAs5AQF/IAFBEHZAACECIABBADYCCCAAQQAgAUGAgHxxIAJBf0YiARs2AgQgAEEAIAJBEHQgARs2AgALZAEDfyMAQRBrIgEkACAAKAIMIgJFBEBBmI7AAEHIj8AAEG8ACyAAKAIIIgNFBEBBmI7AAEHYj8AAEG8ACyABIAI2AgggASAANgIEIAEgAzYCACABKAIAIAEoAgQgASgCCBBQAAs/AQF/IwBBIGsiACQAIABBHGpBADYCACAAQcyRwAA2AhggAEIBNwIMIABBjJLAADYCCCAAQQhqQZSSwAAQdAALPgEBfyMAQSBrIgIkACACQQE6ABggAiABNgIUIAIgADYCECACQfyTwAA2AgwgAkGAk8AANgIIIAJBCGoQcgALKwACQCAAQXxLDQAgAEUEQEEEDwsgACAAQX1JQQJ0EJ4BIgBFDQAgAA8LAAsiACMAQRBrIgAkACAAQQhqIAEQfSAAQQhqEFMgAEEQaiQACysAAkAgAARAIAAoAgANASAAQQA2AgAgAEEcaiABNgIADwsQrQEACxCuAQALKwACQCAABEAgACgCAA0BIABBADYCACAAQSBqIAE2AgAPCxCtAQALEK4BAAsrAAJAIAAEQCAAKAIADQEgAEEANgIAIABBJGogATYCAA8LEK0BAAsQrgEACysAAkAgAARAIAAoAgANASAAQQA2AgAgAEEoaiABNgIADwsQrQEACxCuAQALQAEBfyMAQRBrIgQkACAEIAM2AgwgBCACNgIIIAQgATYCBCAEIAA2AgAgBCgCACAEKAIEIAQoAgggBCgCDBATAAs3ACAAQQM6ACAgAEKAgICAgAQ3AgAgACABNgIYIABBADYCECAAQQA2AgggAEEcakHEh8AANgIACzUBAX8gASgCGEHDjsAAQQsgAUEcaigCACgCDBEDACECIABBADoABSAAIAI6AAQgACABNgIACyUAAkAgAARAIAAoAgBBf0YNASAAQRxqKAIADwsQrQEACxCuAQALJQACQCAABEAgACgCAEF/Rg0BIABBIGooAgAPCxCtAQALEK4BAAslAAJAIAAEQCAAKAIAQX9GDQEgAEEkaigCAA8LEK0BAAsQrgEACyUAAkAgAARAIAAoAgBBf0YNASAAQShqKAIADwsQrQEACxCuAQALJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECzoBAn9B3K3AAC0AACEBQdytwABBADoAAEHgrcAAKAIAIQJB4K3AAEEANgIAIAAgAjYCBCAAIAE2AgALIAEBfwJAIAAoAgQiAUUNACAAQQhqKAIARQ0AIAEQFQsLHwACQCABQXxNBEAgACABQQQgAhCZASIADQELAAsgAAsjACACIAIoAgRBfnE2AgQgACABQQFyNgIEIAAgAWogATYCAAslACAARQRAQciMwABBMBCsAQALIAAgAiADIAQgBSABKAIQEQoACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQEQgACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQEQcACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERUACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERIACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERQACx4AIAAgAUEDcjYCBCAAIAFqIgAgACgCBEEBcjYCBAsUACAAQQRqKAIABEAgACgCABAVCwshACAARQRAQciMwABBMBCsAQALIAAgAiADIAEoAhARBAALHwAgAEUEQEHIjMAAQTAQrAEACyAAIAIgASgCEBEBAAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxkAIAAoAgAiACgCACAAQQhqKAIAIAEQtwELEgBBAEEZIABBAXZrIABBH0YbCxYAIAAgAUEBcjYCBCAAIAFqIAE2AgALHAAgASgCGEHgpsAAQQUgAUEcaigCACgCDBEDAAsTACAAKAIAIgBBJE8EQCAAEAALCxAAIAAgAWpBf2pBACABa3ELFAAgACgCACAAQQhqKAIAIAEQtwELDAAgACABIAIgAxAYCwsAIAEEQCAA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J1cwYwLjE5LjAMd2FzbS1iaW5kZ2VuEjAuMi44MyAoZWJhNjkxZjM4KQ==");var on=class{async init(){await mi(fi);let e=new ht("<%","%>","\0","*","-","_","tR");this.renderer=new Bt(e)}async parse_commands(e,t){return this.renderer.render_content(e,t)}};var $e;(function(l){l[l.CreateNewFromTemplate=0]="CreateNewFromTemplate",l[l.AppendActiveFile=1]="AppendActiveFile",l[l.OverwriteFile=2]="OverwriteFile",l[l.OverwriteActiveFile=3]="OverwriteActiveFile",l[l.DynamicProcessor=4]="DynamicProcessor",l[l.StartupTemplate=5]="StartupTemplate"})($e||($e={}));var Wt=class{constructor(e){this.plugin=e;this.functions_generator=new en(this.plugin),this.parser=new on}async setup(){this.files_with_pending_templates=new Set,await this.parser.init(),await this.functions_generator.init(),this.plugin.registerMarkdownPostProcessor((e,t)=>this.process_dynamic_templates(e,t))}create_running_config(e,t,n){let o=yt(app);return{template_file:e,target_file:t,run_mode:n,active_file:o}}async read_and_parse_template(e){let t=await app.vault.read(e.template_file);return this.parse_template(e,t)}async parse_template(e,t){let n=await this.functions_generator.generate_object(e,De.USER_INTERNAL);return this.current_functions_object=n,await this.parser.parse_commands(t,n)}start_templater_task(e){this.files_with_pending_templates.add(e)}async end_templater_task(e){this.files_with_pending_templates.delete(e),this.files_with_pending_templates.size===0&&(app.workspace.trigger("templater:all-templates-executed"),await this.functions_generator.teardown())}async create_new_note_from_template(e,t,n,o=!0){if(!t)switch(app.vault.getConfig("newFileLocation")){case"current":{let b=yt(app);b&&(t=b.parent);break}case"folder":t=app.fileManager.getNewFileParent("");break;case"root":t=app.vault.getRoot();break;default:break}let s=e instanceof ve.TFile&&e.extension||"md",l=await ye(async()=>{let f=t instanceof ve.TFolder?t.path:t,b=app.vault.getAvailablePath((0,ve.normalizePath)(`${f??""}/${n||"Untitled"}`),s),k=Bn(b);return k&&!app.vault.getAbstractFileByPathInsensitive(k)&&await app.vault.createFolder(k),app.vault.create(b,"")},`Couldn't create ${s} file.`);if(l==null)return;let{path:A}=l;this.start_templater_task(A);let p,g;if(e instanceof ve.TFile?(p=this.create_running_config(e,l,0),g=await ye(async()=>this.read_and_parse_template(p),"Template parsing error, aborting.")):(p=this.create_running_config(void 0,l,0),g=await ye(async()=>this.parse_template(p,e),"Template parsing error, aborting.")),g==null){await app.vault.delete(l),await this.end_templater_task(A);return}if(await app.vault.modify(l,g),app.workspace.trigger("templater:new-note-from-template",{file:l,content:g}),o){let f=app.workspace.getLeaf(!1);if(!f){K(new w("No active leaf"));return}await f.openFile(l,{state:{mode:"source"}}),await this.plugin.editor_handler.jump_to_next_cursor_location(l,!0),f.setEphemeralState({rename:"all"})}return await this.end_templater_task(A),l}async append_template_to_active_file(e){let t=app.workspace.getActiveViewOfType(ve.MarkdownView),n=app.workspace.activeEditor;if(!n||!n.file||!n.editor){K(new w("No active editor, can't append templates."));return}let{path:o}=n.file;this.start_templater_task(o);let s=this.create_running_config(e,n.file,1),l=await ye(async()=>this.read_and_parse_template(s),"Template parsing error, aborting.");if(l==null){await this.end_templater_task(o);return}let p=n.editor.getDoc(),g=p.listSelections();p.replaceSelection(l),n.file&&await app.vault.append(n.file,""),app.workspace.trigger("templater:template-appended",{view:t,editor:n,content:l,oldSelections:g,newSelections:p.listSelections()}),await this.plugin.editor_handler.jump_to_next_cursor_location(n.file,!0),await this.end_templater_task(o)}async write_template_to_file(e,t){let{path:n}=t;this.start_templater_task(n);let o=app.workspace.activeEditor,s=yt(app),l=this.create_running_config(e,t,2),A=await ye(async()=>this.read_and_parse_template(l),"Template parsing error, aborting.");if(A==null){await this.end_templater_task(n);return}await app.vault.modify(t,A),s?.path===t.path&&o&&o.editor&&o.editor.setSelection({line:0,ch:0},{line:0,ch:0}),app.workspace.trigger("templater:new-note-from-template",{file:t,content:A}),await this.plugin.editor_handler.jump_to_next_cursor_location(t,!0),await this.end_templater_task(n)}overwrite_active_file_commands(){let e=app.workspace.activeEditor;if(!e||!e.file){K(new w("Active editor is null, can't overwrite content"));return}this.overwrite_file_commands(e.file,!0)}async overwrite_file_commands(e,t=!1){let{path:n}=e;this.start_templater_task(n);let o=this.create_running_config(e,e,t?3:2),s=await ye(async()=>this.read_and_parse_template(o),"Template parsing error, aborting.");if(s==null){await this.end_templater_task(n);return}await app.vault.modify(e,s),app.workspace.trigger("templater:overwrite-file",{file:e,content:s}),await this.plugin.editor_handler.jump_to_next_cursor_location(e,!0),await this.end_templater_task(n)}async process_dynamic_templates(e,t){let n=Pn(),o=document.createNodeIterator(e,NodeFilter.SHOW_TEXT),s,l=!1,A;for(;s=o.nextNode();){let p=s.nodeValue;if(p!==null){let g=n.exec(p);if(g!==null){let f=app.metadataCache.getFirstLinkpathDest("",t.sourcePath);if(!f||!(f instanceof ve.TFile))return;if(!l){l=!0;let b=this.create_running_config(f,f,4);A=await this.functions_generator.generate_object(b,De.USER_INTERNAL),this.current_functions_object=A}}for(;g!=null;){let f=g[1]+g[2],b=await ye(async()=>await this.parser.parse_commands(f,A),`Command Parsing error in dynamic command '${f}'`);if(b==null)return;let k=n.lastIndex-g[0].length,x=n.lastIndex;p=p.substring(0,k)+b+p.substring(x),n.lastIndex+=b.length-g[0].length,g=n.exec(p)}s.nodeValue=p}}}get_new_file_template_for_folder(e){do{let t=this.plugin.settings.folder_templates.find(n=>n.folder==e.path);if(t&&t.template)return t.template;e=e.parent}while(e)}get_new_file_template_for_file(e){let t=this.plugin.settings.file_templates.find(n=>new RegExp(n.regex).test(e.path));if(t&&t.template)return t.template}static async on_file_creation(e,t){if(!(t instanceof ve.TFile)||t.extension!=="md")return;let n=(0,ve.normalizePath)(e.plugin.settings.templates_folder);if(!(t.path.includes(n)&&n!=="/")&&(await or(300),!e.files_with_pending_templates.has(t.path)))if(t.stat.size==0&&e.plugin.settings.enable_folder_templates){let o=e.get_new_file_template_for_folder(t.parent);if(!o)return;let s=await ye(async()=>at(o),`Couldn't find template ${o}`);if(s==null)return;await e.write_template_to_file(s,t)}else if(t.stat.size==0&&e.plugin.settings.enable_file_templates){let o=e.get_new_file_template_for_file(t);if(!o)return;let s=await ye(async()=>at(o),`Couldn't find template ${o}`);if(s==null)return;await e.write_template_to_file(s,t)}else t.stat.size<=1e5?await e.overwrite_file_commands(t):console.log(`Templater skipped parsing ${t.path} because file size exceeds 10000`)}async execute_startup_scripts(){for(let e of this.plugin.settings.startup_templates){if(!e)continue;let t=pe(()=>at(e),`Couldn't find startup template "${e}"`);if(!t)continue;let{path:n}=t;this.start_templater_task(n);let o=this.create_running_config(t,t,5);await ye(async()=>this.read_and_parse_template(o),"Startup Template parsing error, aborting."),await this.end_templater_task(n)}}};var di=G(require("obsidian")),jr=class{constructor(e,t,n){this.plugin=e;this.templater=t;this.settings=n}setup(){this.plugin.app.workspace.onLayoutReady(()=>{this.update_trigger_file_on_creation()}),this.update_syntax_highlighting(),this.update_file_menu()}update_syntax_highlighting(){let e=this.plugin.editor_handler.desktopShouldHighlight(),t=this.plugin.editor_handler.mobileShouldHighlight();e||t?this.plugin.editor_handler.enable_highlighter():this.plugin.editor_handler.disable_highlighter()}update_trigger_file_on_creation(){this.settings.trigger_on_file_creation?(this.trigger_on_file_creation_event=this.plugin.app.vault.on("create",e=>Wt.on_file_creation(this.templater,e)),this.plugin.registerEvent(this.trigger_on_file_creation_event)):this.trigger_on_file_creation_event&&(this.plugin.app.vault.offref(this.trigger_on_file_creation_event),this.trigger_on_file_creation_event=void 0)}update_file_menu(){this.plugin.registerEvent(this.plugin.app.workspace.on("file-menu",(e,t)=>{t instanceof di.TFolder&&e.addItem(n=>{n.setTitle("Create new note from template").setIcon("templater-icon").onClick(()=>{this.plugin.fuzzy_suggester.create_new_note_from_template(t)})})}))}};var sn=class{constructor(e){this.plugin=e}setup(){this.plugin.addCommand({id:"insert-templater",name:"Open insert template modal",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"e"}],callback:()=>{this.plugin.fuzzy_suggester.insert_template()}}),this.plugin.addCommand({id:"replace-in-file-templater",name:"Replace templates in the active file",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"r"}],callback:()=>{this.plugin.templater.overwrite_active_file_commands()}}),this.plugin.addCommand({id:"jump-to-next-cursor-location",name:"Jump to next cursor location",icon:"text-cursor",hotkeys:[{modifiers:["Alt"],key:"Tab"}],callback:()=>{this.plugin.editor_handler.jump_to_next_cursor_location()}}),this.plugin.addCommand({id:"create-new-note-from-template",name:"Create new note from template",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"n"}],callback:()=>{this.plugin.fuzzy_suggester.create_new_note_from_template()}}),this.register_templates_hotkeys()}register_templates_hotkeys(){this.plugin.settings.enabled_templates_hotkeys.forEach(e=>{e&&this.add_template_hotkey(null,e)})}add_template_hotkey(e,t){this.remove_template_hotkey(e),t&&(this.plugin.addCommand({id:`insert-${t}`,name:`Insert ${t}`,icon:"templater-icon",callback:()=>{let n=pe(()=>at(t),"Couldn't find the template file associated with this hotkey");!n||this.plugin.templater.append_template_to_active_file(n)}}),this.plugin.addCommand({id:`create-${t}`,name:`Create ${t}`,icon:"templater-icon",callback:()=>{let n=pe(()=>at(t),"Couldn't find the template file associated with this hotkey");!n||this.plugin.templater.create_new_note_from_template(n)}}))}remove_template_hotkey(e){e&&(app.commands.removeCommand(`${this.plugin.manifest.id}:create-${e}`),app.commands.removeCommand(`${this.plugin.manifest.id}:insert-${e}`))}};var An=G(require("obsidian"));var an=G(require("obsidian"));var ln=class{constructor(){}async jump_to_next_cursor_location(){let e=app.workspace.activeEditor;if(!e||!e.editor)return;let t=e.editor.getValue(),{new_content:n,positions:o}=this.replace_and_get_cursor_positions(t);if(o){let s=e instanceof an.MarkdownView?e.currentMode.getFoldInfo():null;e.editor.setValue(n),s&&Array.isArray(s.folds)&&(o.forEach(l=>{s.folds=s.folds.filter(A=>A.from>l.line||A.to<l.line)}),e instanceof an.MarkdownView&&e.currentMode.applyFoldInfo(s)),this.set_cursor_location(o)}if(app.vault.getConfig("vimMode")){let s=e.editor.cm.cm;window.CodeMirrorAdapter.Vim.handleKey(s,"i","mapping")}}get_editor_position_from_index(e,t){let n=e.slice(0,t),o=0,s=-1,l=-1;for(;(l=n.indexOf(`
|
|
`,l+1))!==-1;o++,s=l);s+=1;let A=e.slice(s,t).length;return{line:o,ch:A}}replace_and_get_cursor_positions(e){let t=[],n,o=new RegExp("<%\\s*tp.file.cursor\\((?<order>[0-9]*)\\)\\s*%>","g");for(;(n=o.exec(e))!=null;)t.push(n);if(t.length===0)return{};t.sort((p,g)=>Number(p.groups&&p.groups.order)-Number(g.groups&&g.groups.order));let s=t[0][0];t=t.filter(p=>p[0]===s);let l=[],A=0;for(let p of t){let g=p.index-A;if(l.push(this.get_editor_position_from_index(e,g)),e=e.replace(new RegExp(Mn(p[0])),""),A+=p[0].length,p[1]==="")break}return{new_content:e,positions:l}}set_cursor_location(e){let t=app.workspace.activeEditor;if(!t||!t.editor)return;let n=t.editor,o=[];for(let l of e)o.push({from:l});let s={selections:o};n.transaction(s)}};var vi=G(require("obsidian"));var Lo={config:{name:"config",description:`This module exposes Templater's running configuration.
|
|
|
|
This is mostly useful when writing scripts requiring some context information.
|
|
`,functions:{template_file:{name:"template_file",description:"The `TFile` object representing the template file.",definition:"tp.config.template_file"},target_file:{name:"target_file",description:"The `TFile` object representing the target file where the template will be inserted.",definition:"tp.config.target_file"},run_mode:{name:"run_mode",description:"The `RunMode`, representing the way Templater was launched (Create new from template, Append to active file, ...).",definition:"tp.config.run_mode"},active_file:{name:"active_file",description:"The active file (if existing) when launching Templater.",definition:"tp.config.active_file?"}}},date:{name:"date",description:"This module contains every internal function related to dates.",functions:{now:{name:"now",description:"Retrieves the date.",definition:'tp.date.now(format: string = "YYYY-MM-DD", offset?: number\u23AEstring, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"offset",description:"Duration to offset the date from. If a number is provided, duration will be added to the date in days. You can also specify the offset as a string using the ISO 8601 format."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"Date now",example:"<% tp.date.now() %>"},{name:"Date now with format",example:'<% tp.date.now("Do MMMM YYYY") %>'},{name:"Last week",example:'<% tp.date.now("YYYY-MM-DD", -7) %>'},{name:"Next week",example:'<% tp.date.now("YYYY-MM-DD", 7) %>'},{name:"Last month",example:'<% tp.date.now("YYYY-MM-DD", "P-1M") %>'},{name:"Next year",example:'<% tp.date.now("YYYY-MM-DD", "P1Y") %>'},{name:"File's title date + 1 day (tomorrow)",example:'<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title date - 1 day (yesterday)",example:'<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>'}]},tomorrow:{name:"tomorrow",description:"Retrieves tomorrow's date.",definition:'tp.date.tomorrow(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date tomorrow",example:"<% tp.date.tomorrow() %>"},{name:"Date tomorrow with format",example:'<% tp.date.tomorrow("Do MMMM YYYY") %>'}]},yesterday:{name:"yesterday",description:"Retrieves yesterday's date.",definition:'tp.date.yesterday(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date yesterday",example:"<% tp.date.yesterday() %>"},{name:"Date yesterday with format",example:'<% tp.date.yesterday("Do MMMM YYYY") %>'}]},weekday:{name:"weekday",description:"",definition:'tp.date.weekday(format: string = "YYYY-MM-DD", weekday: number, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"weekday",description:"Week day number. If the locale assigns Monday as the first day of the week, `0` will be Monday, `-7` will be last week's day."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"This week's Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0) %>'},{name:"Next Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 7) %>'},{name:"File's title Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title previous Monday",example:'<% tp.date.weekday("YYYY-MM-DD", -7, tp.file.title, "YYYY-MM-DD") %>'}]}},momentjs:{examples:[{name:"Date now",example:'<% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>'},{name:"Get start of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").startOf("month").format("YYYY-MM-DD") %>'},{name:"Get end of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").endOf("month").format("YYYY-MM-DD") %>'}]}},file:{name:"file",description:"This module contains every internal function related to files.",functions:{content:{name:"content",description:"The string contents of the file at the time that Templater was executed. Manipulating this string will *not* update the current file.",definition:"tp.file.content",examples:[{name:"Retrieve file content",example:"<% tp.file.content %>"}]},create_new:{name:"create_new",description:"Creates a new file using a specified template or with a specified content.",definition:"tp.file.create_new(template: TFile \u23AE string, filename?: string, open_new: boolean = false, folder?: TFolder | string)",args:[{name:"template",description:"Either the template used for the new file content, or the file content as a string. If it is the template to use, you retrieve it with `tp.file.find_tfile(TEMPLATENAME)`."},{name:"filename",description:'The filename of the new file, defaults to "Untitled".'},{name:"open_new",description:"Whether to open or not the newly created file. Warning: if you use this option, since commands are executed asynchronously, the file can be opened first and then other commands are appended to that new file and not the previous file."},{name:"folder",description:'The folder to put the new file in, defaults to Obsidian\'s default location. If you want the file to appear in a different folder, specify it with `"PATH/TO/FOLDERNAME"` or `app.vault.getAbstractFileByPath("PATH/TO/FOLDERNAME")`.'}],examples:[{name:"File creation",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename") %>'},{name:"File creation with template",example:'<%* await tp.file.create_new(tp.file.find_tfile("MyTemplate"), "MyFilename") %>'},{name:"File creation and open created note",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", true) %>'},{name:"File creation in current folder",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, tp.file.folder(true)) %>'},{name:"File creation in specified folder with string path",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, "Path/To/MyFolder") %>'},{name:"File creation in specified folder with TFolder",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, app.vault.getAbstractFileByPath("MyFolder")) %>'},{name:"File creation and append link to current note",example:'[[<% (await tp.file.create_new("MyFileContent", "MyFilename")).basename %>]]'}]},creation_date:{name:"creation_date",description:"Retrieves the file's creation date.",definition:'tp.file.creation_date(format: string = "YYYY-MM-DD HH:mm")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD HH:mm"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"File creation date",example:"<% tp.file.creation_date() %>"},{name:"File creation date with format",example:'<% tp.file.creation_date("dddd Do MMMM YYYY HH:mm") %>'}]},cursor:{name:"cursor",description:`Sets the cursor to this location after the template has been inserted.
|
|
|
|
You can navigate between the different cursors using the configured hotkey in Obsidian settings.
|
|
`,definition:"tp.file.cursor(order?: number)",args:[{name:"order",description:`The order of the different cursors jump, e.g. it will jump from 1 to 2 to 3, and so on.
|
|
If you specify multiple tp.file.cursor with the same order, the editor will switch to multi-cursor.
|
|
`}],examples:[{name:"File cursor",example:"<% tp.file.cursor() %>"},{name:"File multi-cursor",example:"<% tp.file.cursor(1) %>Content<% tp.file.cursor(1) %>"}]},cursor_append:{name:"cursor_append",description:"Appends some content after the active cursor in the file.",definition:"tp.file.cursor_append(content: string)",args:[{name:"content",description:"The content to append after the active cursor."}],examples:[{name:"File cursor append",example:'<% tp.file.cursor_append("Some text") %>'}]},exists:{name:"exists",description:"Check to see if a file exists by it's file path. The full path to the file, relative to the Vault and containing the extension, must be provided.",definition:"tp.file.exists(filepath: string)",args:[{name:"filepath",description:"The full file path of the file we want to check existence for."}],examples:[{name:"File existence",example:'<% await tp.file.exists("MyFolder/MyFile.md") %>'},{name:"File existence of current file",example:'<% await tp.file.exists(tp.file.folder(true) + "/" + tp.file.title + ".md") %>'}]},find_tfile:{name:"find_tfile",description:"Search for a file and returns its `TFile` instance.",definition:"tp.file.find_tfile(filename: string)",args:[{name:"filename",description:"The filename we want to search and resolve as a `TFile`."}],examples:[{name:"File find TFile",example:'<% tp.file.find_tfile("MyFile").basename %>'}]},folder:{name:"folder",description:"Retrieves the file's folder name.",definition:"tp.file.folder(absolute: boolean = false)",args:[{name:"absolute",description:"If set to `true`, returns the vault-absolute path of the folder. If `false`, only returns the basename of the folder (the last part). Defaults to `false`."}],examples:[{name:"File folder (Folder)",example:"<% tp.file.folder() %>"},{name:"File folder with vault-absolute path (Path/To/Folder)",example:"<% tp.file.folder(true) %>"}]},include:{name:"include",description:"Includes the file's link content. Templates in the included content will be resolved.",definition:"tp.file.include(include_link: string \u23AE TFile)",args:[{name:"include_link",description:'The link to the file to include, e.g. `"[[MyFile]]"`, or a TFile object. Also supports sections or blocks inclusions.'}],examples:[{name:"File include",example:'<% tp.file.include("[[Template1]]") %>'},{name:"File include TFile",example:'<% tp.file.include(tp.file.find_tfile("MyFile")) %>'},{name:"File include section",example:'<% tp.file.include("[[MyFile#Section1]]") %>'},{name:"File include block",example:'<% tp.file.include("[[MyFile#^block1]]") %>'}]},last_modified_date:{name:"last_modified_date",description:"Retrieves the file's last modification date.",definition:'tp.file.last_modified_date(format: string = "YYYY-MM-DD HH:mm")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD HH:mm"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"File last modified date",example:"<% tp.file.last_modified_date() %>"},{name:"File last modified date with format",example:'<% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm") %>'}]},move:{name:"move",description:"Moves the file to the desired vault location.",definition:"tp.file.move(new_path: string, file_to_move?: TFile)",args:[{name:"new_path",description:'The new vault relative path of the file, without the file extension. Note: the new path needs to include the folder and the filename, e.g. `"/Notes/MyNote"`.'},{name:"file_to_move",description:"The file to move, defaults to the current file."}],examples:[{name:"File move",example:'<% await tp.file.move("/A/B/" + tp.file.title) %>'},{name:"File move and rename",example:'<% await tp.file.move("/A/B/NewTitle") %>'}]},path:{name:"path",description:"Retrieves the file's absolute path on the system.",definition:"tp.file.path(relative: boolean = false)",args:[{name:"relative",description:"If set to `true`, only retrieves the vault's relative path."}],examples:[{name:"File path",example:"<% tp.file.path() %>"},{name:"File relative path (relative to vault root)",example:"<% tp.file.path(true) %>"}]},rename:{name:"rename",description:"Renames the file (keeps the same file extension).",definition:"tp.file.rename(new_title: string)",args:[{name:"new_title",description:"The new file title."}],examples:[{name:"File rename",example:'<% await tp.file.rename("MyNewName") %>'},{name:"File append a 2 to the file name",example:'<% await tp.file.rename(tp.file.title + "2") %>'}]},selection:{name:"selection",description:"Retrieves the active file's text selection.",definition:"tp.file.selection()",examples:[{name:"File selection",example:"<% tp.file.selection() %>"}]},tags:{name:"tags",description:"Retrieves the file's tags (array of string).",definition:"tp.file.tags",examples:[{name:"File tags",example:"<% tp.file.tags %>"}]},title:{name:"title",definition:"tp.file.title",description:"Retrieves the file's title.",examples:[{name:"File title",example:"<% tp.file.title %>"},{name:"Strip the Zettelkasten ID of title (if space separated)",example:'<% tp.file.title.split(" ")[1] %>'}]}}},frontmatter:{name:"frontmatter",description:"This modules exposes all the frontmatter variables of a file as variables."},hooks:{name:"hooks",description:"This module exposes hooks that allow you to execute code when a Templater event occurs.",functions:{on_all_templates_executed:{name:"on_all_templates_executed",description:"Hooks into when all actively running templates have finished executing. Most of the time this will be a single template, unless you are using `tp.file.include` or `tp.file.create_new`.\n\nMultiple invokations of this method will have their callback functions run in parallel.",definition:"tp.hooks.on_all_templates_executed(callback_function: () => any)",args:[{name:"callback_function",description:"Callback function that will be executed when all actively running templates have finished executing."}]}}},obsidian:{name:"obsidian",description:"This module exposes all the functions and classes from the Obsidian API."},system:{name:"system",description:"This module contains system related functions.",functions:{clipboard:{name:"clipboard",description:"Retrieves the clipboard's content.",definition:"tp.system.clipboard()",examples:[{name:"Clipboard",example:"<% tp.system.clipboard() %>"}]},prompt:{name:"prompt",description:"Spawns a prompt modal and returns the user's input.",definition:"tp.system.prompt(prompt_text?: string, default_value?: string, throw_on_cancel: boolean = false, multiline?: boolean = false)",args:[{name:"prompt_text",description:"Text placed above the input field."},{name:"default_value",description:"A default value for the input field."},{name:"throw_on_cancel",description:"Throws an error if the prompt is canceled, instead of returning a `null` value."},{name:"multiline",description:"If set to `true`, the input field will be a multiline textarea. Defaults to `false`."}],examples:[{name:"Prompt",example:'<% tp.system.prompt("Please enter a value") %>'},{name:"Prompt with default value",example:'<% tp.system.prompt("What is your mood today?", "happy") %>'},{name:"Multiline prompt",example:'<% tp.system.prompt("What is your mood today?", null, false, true) %>'}]},suggester:{name:"suggester",description:"Spawns a suggester prompt and returns the user's chosen item.",definition:'tp.system.suggester(text_items: string[] \u23AE ((item: T) => string), items: T[], throw_on_cancel: boolean = false, placeholder: string = "", limit?: number = undefined)',args:[{name:"text_items",description:"Array of strings representing the text that will be displayed for each item in the suggester prompt. This can also be a function that maps an item to its text representation."},{name:"items",description:"Array containing the values of each item in the correct order."},{name:"throw_on_cancel",description:"Throws an error if the prompt is canceled, instead of returning a `null` value."},{name:"placeholder",description:"Placeholder string of the prompt."},{name:"limit",description:"Limit the number of items rendered at once (useful to improve performance when displaying large lists)."}],examples:[{name:"Suggester",example:'<% tp.system.suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester with mapping function (same as above example)",example:'<% tp.system.suggester((item) => item, ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester for files",example:"[[<% (await tp.system.suggester((item) => item.basename, app.vault.getMarkdownFiles())).basename %>]]"},{name:"Suggester for tags",example:'<% tp.system.suggester(item => item, Object.keys(app.metadataCache.getTags()).map(x => x.replace("#", ""))) %>'}]}}},web:{name:"web",description:"This modules contains every internal function related to the web (making web requests).",functions:{daily_quote:{name:"daily_quote",description:"Retrieves and parses the daily quote from the API `https://api.quotable.io` as a callout.",definition:"tp.web.daily_quote()",examples:[{name:"Daily quote",example:"<% tp.web.daily_quote() %>"}]},random_picture:{name:"random_picture",description:"Gets a random image from `https://unsplash.com/`.",definition:"tp.web.random_picture(size?: string, query?: string, include_size?: boolean)",args:[{name:"size",description:"Image size in the format `<width>x<height>`."},{name:"query",description:"Limits selection to photos matching a search term. Multiple search terms can be passed separated by a comma."},{name:"include_size",description:"Optional argument to include the specified size in the image link markdown. Defaults to false."}],examples:[{name:"Random picture",example:"<% tp.web.random_picture() %>"},{name:"Random picture with size",example:'<% tp.web.random_picture("200x200") %>'},{name:"Random picture with size and query",example:'<% tp.web.random_picture("200x200", "landscape,water") %>'}]},request:{name:"request",description:"Makes a HTTP request to the specified URL. Optionally, you can specify a path to extract specific data from the response.",definition:"tp.web.request(url: string, path?: string)",args:[{name:"url",description:"The URL to which the HTTP request will be made."},{name:"path",description:"A path within the response JSON to extract specific data."}],examples:[{name:"Simple request",example:'<% tp.web.request("https://jsonplaceholder.typicode.com/todos/1") %>'},{name:"Request with path",example:'<% tp.web.request("https://jsonplaceholder.typicode.com/todos", "0.title") %>'}]}}}},hi={tp:Lo};var Ho=["config","date","file","frontmatter","hooks","obsidian","system","user","web"],Go=new Set(Ho);function ji(r){return typeof r=="string"&&Go.has(r)}function _i(r){return!!r.definition}var cn=class{constructor(e){this.settings=e;this.documentation=hi}get_all_modules_documentation(){return Object.values(this.documentation.tp)}get_all_functions_documentation(e){if(e==="user"){if(!this.settings||!this.settings.user_scripts_folder)return;let t=pe(()=>Ce(this.settings.user_scripts_folder),"User Scripts folder doesn't exist");return!t||t.length===0?void 0:t.reduce((n,o)=>o.extension!=="js"?n:[...n,{name:o.basename,definition:"",description:"",example:""}],[])}if(!!this.documentation.tp[e].functions)return Object.values(this.documentation.tp[e].functions)}get_module_documentation(e){return this.documentation.tp[e]}get_function_documentation(e,t){return this.documentation.tp[e].functions[t]}get_argument_documentation(e,t,n){let o=this.get_function_documentation(e,t);return!o||!o.args?null:o.args[n]}};var pn=class extends vi.EditorSuggest{constructor(e){super(app);this.tp_keyword_regex=/tp\.(?<module>[a-z]*)?(?<fn_trigger>\.(?<fn>[a-z_]*)?)?$/;this.documentation=new cn(e)}onTrigger(e,t,n){let o=t.getRange({line:e.line,ch:0},{line:e.line,ch:e.ch}),s=this.tp_keyword_regex.exec(o);if(!s)return null;let l,A=s.groups&&s.groups.module||"";if(this.module_name=A,s.groups&&s.groups.fn_trigger){if(A==""||!ji(A))return null;this.function_trigger=!0,this.function_name=s.groups.fn||"",l=this.function_name}else this.function_trigger=!1,l=this.module_name;let p={start:{line:e.line,ch:e.ch-l.length},end:{line:e.line,ch:e.ch},query:l};return this.latest_trigger_info=p,p}getSuggestions(e){let t;return this.module_name&&this.function_trigger?t=this.documentation.get_all_functions_documentation(this.module_name):t=this.documentation.get_all_modules_documentation(),t?t.filter(n=>n.name.startsWith(e.query)):[]}renderSuggestion(e,t){t.createEl("b",{text:e.name}),t.createEl("br"),this.function_trigger&&_i(e)&&t.createEl("code",{text:e.definition}),e.description&&t.createEl("div",{text:e.description})}selectSuggestion(e,t){let n=app.workspace.activeEditor;if(!(!n||!n.editor)&&(n.editor.replaceRange(e.name,this.latest_trigger_info.start,this.latest_trigger_info.end),this.latest_trigger_info.start.ch==this.latest_trigger_info.end.ch)){let o=this.latest_trigger_info.end;o.ch+=e.name.length,n.editor.setCursor(o)}}};(function(r){r(window.CodeMirror)})(function(r){"use strict";r.defineMode("javascript",function(e,t){var n=e.indentUnit,o=t.statementIndent,s=t.jsonld,l=t.json||s,A=t.trackScope!==!1,p=t.typescript,g=t.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function i(ce){return{type:ce,style:"keyword"}}var a=i("keyword a"),u=i("keyword b"),d=i("keyword c"),E=i("keyword d"),O=i("operator"),$={type:"atom",style:"atom"};return{if:i("if"),while:a,with:a,else:u,do:u,try:u,finally:u,return:E,break:E,continue:E,new:i("new"),delete:d,void:d,throw:d,debugger:i("debugger"),var:i("var"),const:i("var"),let:i("var"),function:i("function"),catch:i("catch"),for:i("for"),switch:i("switch"),case:i("case"),default:i("default"),in:O,typeof:O,instanceof:O,true:$,false:$,null:$,undefined:$,NaN:$,Infinity:$,this:i("this"),class:i("class"),super:i("atom"),yield:d,export:i("export"),import:i("import"),extends:d,await:d}}(),b=/[+\-*&%=<>!?|~^@]/,k=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function x(i){for(var a=!1,u,d=!1;(u=i.next())!=null;){if(!a){if(u=="/"&&!d)return;u=="["?d=!0:d&&u=="]"&&(d=!1)}a=!a&&u=="\\"}}var q,P;function j(i,a,u){return q=i,P=u,a}function B(i,a){var u=i.next();if(u=='"'||u=="'")return a.tokenize=L(u),a.tokenize(i,a);if(u=="."&&i.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(u=="."&&i.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(u))return j(u);if(u=="="&&i.eat(">"))return j("=>","operator");if(u=="0"&&i.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(u))return i.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(u=="/")return i.eat("*")?(a.tokenize=N,N(i,a)):i.eat("/")?(i.skipToEnd(),j("comment","comment")):En(i,a,1)?(x(i),i.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(i.eat("="),j("operator","operator",i.current()));if(u=="`")return a.tokenize=T,T(i,a);if(u=="#"&&i.peek()=="!")return i.skipToEnd(),j("meta","meta");if(u=="#"&&i.eatWhile(g))return j("variable","property");if(u=="<"&&i.match("!--")||u=="-"&&i.match("->")&&!/\S/.test(i.string.slice(0,i.start)))return i.skipToEnd(),j("comment","comment");if(b.test(u))return(u!=">"||!a.lexical||a.lexical.type!=">")&&(i.eat("=")?(u=="!"||u=="=")&&i.eat("="):/[<>*+\-|&?]/.test(u)&&(i.eat(u),u==">"&&i.eat(u))),u=="?"&&i.eat(".")?j("."):j("operator","operator",i.current());if(g.test(u)){i.eatWhile(g);var d=i.current();if(a.lastType!="."){if(f.propertyIsEnumerable(d)){var E=f[d];return j(E.type,E.style,d)}if(d=="async"&&i.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",d)}return j("variable","variable",d)}}function L(i){return function(a,u){var d=!1,E;if(s&&a.peek()=="@"&&a.match(k))return u.tokenize=B,j("jsonld-keyword","meta");for(;(E=a.next())!=null&&!(E==i&&!d);)d=!d&&E=="\\";return d||(u.tokenize=B),j("string","string")}}function N(i,a){for(var u=!1,d;d=i.next();){if(d=="/"&&u){a.tokenize=B;break}u=d=="*"}return j("comment","comment")}function T(i,a){for(var u=!1,d;(d=i.next())!=null;){if(!u&&(d=="`"||d=="$"&&i.eat("{"))){a.tokenize=B;break}u=!u&&d=="\\"}return j("quasi","string-2",i.current())}var C="([{}])";function I(i,a){a.fatArrowAt&&(a.fatArrowAt=null);var u=i.string.indexOf("=>",i.start);if(!(u<0)){if(p){var d=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(i.string.slice(i.start,u));d&&(u=d.index)}for(var E=0,O=!1,$=u-1;$>=0;--$){var ce=i.string.charAt($),qe=C.indexOf(ce);if(qe>=0&&qe<3){if(!E){++$;break}if(--E==0){ce=="("&&(O=!0);break}}else if(qe>=3&&qe<6)++E;else if(g.test(ce))O=!0;else if(/["'\/`]/.test(ce))for(;;--$){if($==0)return;var Ri=i.string.charAt($-1);if(Ri==ce&&i.string.charAt($-2)!="\\"){$--;break}}else if(O&&!E){++$;break}}O&&!E&&(a.fatArrowAt=$)}}var R={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(i,a,u,d,E,O){this.indented=i,this.column=a,this.type=u,this.prev=E,this.info=O,d!=null&&(this.align=d)}function J(i,a){if(!A)return!1;for(var u=i.localVars;u;u=u.next)if(u.name==a)return!0;for(var d=i.context;d;d=d.prev)for(var u=d.vars;u;u=u.next)if(u.name==a)return!0}function V(i,a,u,d,E){var O=i.cc;for(m.state=i,m.stream=E,m.marked=null,m.cc=O,m.style=a,i.lexical.hasOwnProperty("align")||(i.lexical.align=!0);;){var $=O.length?O.pop():l?S:H;if($(u,d)){for(;O.length&&O[O.length-1].lex;)O.pop()();return m.marked?m.marked:u=="variable"&&J(i,d)?"variable-2":a}}}var m={state:null,column:null,marked:null,cc:null};function h(){for(var i=arguments.length-1;i>=0;i--)m.cc.push(arguments[i])}function c(){return h.apply(null,arguments),!0}function we(i,a){for(var u=a;u;u=u.next)if(u.name==i)return!0;return!1}function me(i){var a=m.state;if(m.marked="def",!!A){if(a.context){if(a.lexical.info=="var"&&a.context&&a.context.block){var u=oe(i,a.context);if(u!=null){a.context=u;return}}else if(!we(i,a.localVars)){a.localVars=new fe(i,a.localVars);return}}t.globalVars&&!we(i,a.globalVars)&&(a.globalVars=new fe(i,a.globalVars))}}function oe(i,a){if(a)if(a.block){var u=oe(i,a.prev);return u?u==a.prev?a:new Pe(u,a.vars,!0):null}else return we(i,a.vars)?a:new Pe(a.prev,new fe(i,a.vars),!1);else return null}function se(i){return i=="public"||i=="private"||i=="protected"||i=="abstract"||i=="readonly"}function Pe(i,a,u){this.prev=i,this.vars=a,this.block=u}function fe(i,a){this.name=i,this.next=a}var jt=new fe("this",new fe("arguments",null));function Be(){m.state.context=new Pe(m.state.context,m.state.localVars,!1),m.state.localVars=jt}function Ne(){m.state.context=new Pe(m.state.context,m.state.localVars,!0),m.state.localVars=null}function ae(){m.state.localVars=m.state.context.vars,m.state.context=m.state.context.prev}ae.lex=!0;function y(i,a){var u=function(){var d=m.state,E=d.indented;if(d.lexical.type=="stat")E=d.lexical.indented;else for(var O=d.lexical;O&&O.type==")"&&O.align;O=O.prev)E=O.indented;d.lexical=new z(E,m.stream.column(),i,null,d.lexical,a)};return u.lex=!0,u}function _(){var i=m.state;i.lexical.prev&&(i.lexical.type==")"&&(i.indented=i.lexical.indented),i.lexical=i.lexical.prev)}_.lex=!0;function F(i){function a(u){return u==i?c():i==";"||u=="}"||u==")"||u=="]"?h():c(a)}return a}function H(i,a){return i=="var"?c(y("vardef",a),yr,F(";"),_):i=="keyword a"?c(y("form"),nt,H,_):i=="keyword b"?c(y("form"),H,_):i=="keyword d"?m.stream.match(/^\s*$/,!1)?c():c(y("stat"),Ye,F(";"),_):i=="debugger"?c(F(";")):i=="{"?c(y("}"),Ne,er,_,ae):i==";"?c():i=="if"?(m.state.lexical.info=="else"&&m.state.cc[m.state.cc.length-1]==_&&m.state.cc.pop()(),c(y("form"),nt,H,_,jn)):i=="function"?c(Qe):i=="for"?c(y("form"),Ne,_n,H,ae,_):i=="class"||p&&a=="interface"?(m.marked="keyword",c(y("form",i=="class"?i:a),wn,_)):i=="variable"?p&&a=="declare"?(m.marked="keyword",c(H)):p&&(a=="module"||a=="enum"||a=="type")&&m.stream.match(/^\s*\w/,!1)?(m.marked="keyword",a=="enum"?c(xn):a=="type"?c(vn,F("operator"),D,F(";")):c(y("form"),be,F("{"),y("}"),er,_,_)):p&&a=="namespace"?(m.marked="keyword",c(y("form"),S,H,_)):p&&a=="abstract"?(m.marked="keyword",c(H)):c(y("stat"),Qt):i=="switch"?c(y("form"),nt,F("{"),y("}","switch"),Ne,er,_,_,ae):i=="case"?c(S,F(":")):i=="default"?c(F(":")):i=="catch"?c(y("form"),Be,Re,H,_,ae):i=="export"?c(y("stat"),Ii,_):i=="import"?c(y("stat"),Ci,_):i=="async"?c(H):a=="@"?c(S,H):h(y("stat"),S,F(";"),_)}function Re(i){if(i=="(")return c(st,F(")"))}function S(i,a){return Kt(i,a,!1)}function le(i,a){return Kt(i,a,!0)}function nt(i){return i!="("?h():c(y(")"),Ye,F(")"),_)}function Kt(i,a,u){if(m.state.fatArrowAt==m.stream.start){var d=u?Jt:zt;if(i=="(")return c(Be,y(")"),X(st,")"),_,F("=>"),d,ae);if(i=="variable")return h(Be,be,F("=>"),d,ae)}var E=u?Je:Le;return R.hasOwnProperty(i)?c(E):i=="function"?c(Qe,E):i=="class"||p&&a=="interface"?(m.marked="keyword",c(y("form"),qi,_)):i=="keyword c"||i=="async"?c(u?le:S):i=="("?c(y(")"),Ye,F(")"),_,E):i=="operator"||i=="spread"?c(u?le:S):i=="["?c(y("]"),Di,_,E):i=="{"?qt(ot,"}",null,E):i=="quasi"?h(it,E):i=="new"?c(He(u)):c()}function Ye(i){return i.match(/[;\}\)\],]/)?h():h(S)}function Le(i,a){return i==","?c(Ye):Je(i,a,!1)}function Je(i,a,u){var d=u==!1?Le:Je,E=u==!1?S:le;if(i=="=>")return c(Be,u?Jt:zt,ae);if(i=="operator")return/\+\+|--/.test(a)||p&&a=="!"?c(d):p&&a=="<"&&m.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(y(">"),X(D,">"),_,d):a=="?"?c(S,F(":"),E):c(E);if(i=="quasi")return h(it,d);if(i!=";"){if(i=="(")return qt(le,")","call",d);if(i==".")return c(Ot,d);if(i=="[")return c(y("]"),Ye,F("]"),_,d);if(p&&a=="as")return m.marked="keyword",c(D,d);if(i=="regexp")return m.state.lastType=m.marked="operator",m.stream.backUp(m.stream.pos-m.stream.start-1),c(E)}}function it(i,a){return i!="quasi"?h():a.slice(a.length-2)!="${"?c(it):c(Ye,Ut)}function Ut(i){if(i=="}")return m.marked="string-2",m.state.tokenize=T,c(it)}function zt(i){return I(m.stream,m.state),h(i=="{"?H:S)}function Jt(i){return I(m.stream,m.state),h(i=="{"?H:le)}function He(i){return function(a){return a=="."?c(i?Xt:_t):a=="variable"&&p?c(Fi,i?Je:Le):h(i?le:S)}}function _t(i,a){if(a=="target")return m.marked="keyword",c(Le)}function Xt(i,a){if(a=="target")return m.marked="keyword",c(Je)}function Qt(i){return i==":"?c(_,H):h(Le,F(";"),_)}function Ot(i){if(i=="variable")return m.marked="property",c()}function ot(i,a){if(i=="async")return m.marked="property",c(ot);if(i=="variable"||m.style=="keyword"){if(m.marked="property",a=="get"||a=="set")return c(Zt);var u;return p&&m.state.fatArrowAt==m.stream.start&&(u=m.stream.match(/^\s*:\s*/,!1))&&(m.state.fatArrowAt=m.stream.pos+u[0].length),c(Oe)}else{if(i=="number"||i=="string")return m.marked=s?"property":m.style+" property",c(Oe);if(i=="jsonld-keyword")return c(Oe);if(p&&se(a))return m.marked="keyword",c(ot);if(i=="[")return c(S,vt,F("]"),Oe);if(i=="spread")return c(le,Oe);if(a=="*")return m.marked="keyword",c(ot);if(i==":")return h(Oe)}}function Zt(i){return i!="variable"?h(Oe):(m.marked="property",c(Qe))}function Oe(i){if(i==":")return c(le);if(i=="(")return h(Qe)}function X(i,a,u){function d(E,O){if(u?u.indexOf(E)>-1:E==","){var $=m.state.lexical;return $.info=="call"&&($.pos=($.pos||0)+1),c(function(ce,qe){return ce==a||qe==a?h():h(i)},d)}return E==a||O==a?c():u&&u.indexOf(";")>-1?h(i):c(F(a))}return function(E,O){return E==a||O==a?c():h(i,d)}}function qt(i,a,u){for(var d=3;d<arguments.length;d++)m.cc.push(arguments[d]);return c(y(a,u),X(i,a),_)}function er(i){return i=="}"?c():h(H,er)}function vt(i,a){if(p){if(i==":")return c(D);if(a=="?")return c(vt)}}function xi(i,a){if(p&&(i==":"||a=="in"))return c(D)}function gn(i){if(p&&i==":")return m.stream.match(/^\s*\w+\s+is\b/,!1)?c(S,Ei,D):c(D)}function Ei(i,a){if(a=="is")return m.marked="keyword",c()}function D(i,a){if(a=="keyof"||a=="typeof"||a=="infer"||a=="readonly")return m.marked="keyword",c(a=="typeof"?le:D);if(i=="variable"||a=="void")return m.marked="type",c(Ge);if(a=="|"||a=="&")return c(D);if(i=="string"||i=="number"||i=="atom")return c(Ge);if(i=="[")return c(y("]"),X(D,"]",","),_,Ge);if(i=="{")return c(y("}"),vr,_,Ge);if(i=="(")return c(X(br,")"),ki,Ge);if(i=="<")return c(X(D,">"),D);if(i=="quasi")return h(wr,Ge)}function ki(i){if(i=="=>")return c(D)}function vr(i){return i.match(/[\}\)\]]/)?c():i==","||i==";"?c(vr):h(It,vr)}function It(i,a){if(i=="variable"||m.style=="keyword")return m.marked="property",c(It);if(a=="?"||i=="number"||i=="string")return c(It);if(i==":")return c(D);if(i=="[")return c(F("variable"),xi,F("]"),It);if(i=="(")return h(bt,It);if(!i.match(/[;\}\)\],]/))return c()}function wr(i,a){return i!="quasi"?h():a.slice(a.length-2)!="${"?c(wr):c(D,Ti)}function Ti(i){if(i=="}")return m.marked="string-2",m.state.tokenize=T,c(wr)}function br(i,a){return i=="variable"&&m.stream.match(/^\s*[?:]/,!1)||a=="?"?c(br):i==":"?c(D):i=="spread"?c(br):h(D)}function Ge(i,a){if(a=="<")return c(y(">"),X(D,">"),_,Ge);if(a=="|"||i=="."||a=="&")return c(D);if(i=="[")return c(D,F("]"),Ge);if(a=="extends"||a=="implements")return m.marked="keyword",c(D);if(a=="?")return c(D,F(":"),D)}function Fi(i,a){if(a=="<")return c(y(">"),X(D,">"),_,Ge)}function tr(){return h(D,Mi)}function Mi(i,a){if(a=="=")return c(D)}function yr(i,a){return a=="enum"?(m.marked="keyword",c(xn)):h(be,vt,Xe,Bi)}function be(i,a){if(p&&se(a))return m.marked="keyword",c(be);if(i=="variable")return me(a),c();if(i=="spread")return c(be);if(i=="[")return qt(Pi,"]");if(i=="{")return qt(hn,"}")}function hn(i,a){return i=="variable"&&!m.stream.match(/^\s*:/,!1)?(me(a),c(Xe)):(i=="variable"&&(m.marked="property"),i=="spread"?c(be):i=="}"?h():i=="["?c(S,F("]"),F(":"),hn):c(F(":"),be,Xe))}function Pi(){return h(be,Xe)}function Xe(i,a){if(a=="=")return c(le)}function Bi(i){if(i==",")return c(yr)}function jn(i,a){if(i=="keyword b"&&a=="else")return c(y("form","else"),H,_)}function _n(i,a){if(a=="await")return c(_n);if(i=="(")return c(y(")"),Oi,_)}function Oi(i){return i=="var"?c(yr,wt):i=="variable"?c(wt):h(wt)}function wt(i,a){return i==")"?c():i==";"?c(wt):a=="in"||a=="of"?(m.marked="keyword",c(S,wt)):h(S,wt)}function Qe(i,a){if(a=="*")return m.marked="keyword",c(Qe);if(i=="variable")return me(a),c(Qe);if(i=="(")return c(Be,y(")"),X(st,")"),_,gn,H,ae);if(p&&a=="<")return c(y(">"),X(tr,">"),_,Qe)}function bt(i,a){if(a=="*")return m.marked="keyword",c(bt);if(i=="variable")return me(a),c(bt);if(i=="(")return c(Be,y(")"),X(st,")"),_,gn,ae);if(p&&a=="<")return c(y(">"),X(tr,">"),_,bt)}function vn(i,a){if(i=="keyword"||i=="variable")return m.marked="type",c(vn);if(a=="<")return c(y(">"),X(tr,">"),_)}function st(i,a){return a=="@"&&c(S,st),i=="spread"?c(st):p&&se(a)?(m.marked="keyword",c(st)):p&&i=="this"?c(vt,Xe):h(be,vt,Xe)}function qi(i,a){return i=="variable"?wn(i,a):rr(i,a)}function wn(i,a){if(i=="variable")return me(a),c(rr)}function rr(i,a){if(a=="<")return c(y(">"),X(tr,">"),_,rr);if(a=="extends"||a=="implements"||p&&i==",")return a=="implements"&&(m.marked="keyword"),c(p?D:S,rr);if(i=="{")return c(y("}"),Ve,_)}function Ve(i,a){if(i=="async"||i=="variable"&&(a=="static"||a=="get"||a=="set"||p&&se(a))&&m.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return m.marked="keyword",c(Ve);if(i=="variable"||m.style=="keyword")return m.marked="property",c(Ct,Ve);if(i=="number"||i=="string")return c(Ct,Ve);if(i=="[")return c(S,vt,F("]"),Ct,Ve);if(a=="*")return m.marked="keyword",c(Ve);if(p&&i=="(")return h(bt,Ve);if(i==";"||i==",")return c(Ve);if(i=="}")return c();if(a=="@")return c(S,Ve)}function Ct(i,a){if(a=="!"||a=="?")return c(Ct);if(i==":")return c(D,Xe);if(a=="=")return c(le);var u=m.state.lexical.prev,d=u&&u.info=="interface";return h(d?bt:Qe)}function Ii(i,a){return a=="*"?(m.marked="keyword",c(xr,F(";"))):a=="default"?(m.marked="keyword",c(S,F(";"))):i=="{"?c(X(bn,"}"),xr,F(";")):h(H)}function bn(i,a){if(a=="as")return m.marked="keyword",c(F("variable"));if(i=="variable")return h(le,bn)}function Ci(i){return i=="string"?c():i=="("?h(S):i=="."?h(Le):h(nr,yn,xr)}function nr(i,a){return i=="{"?qt(nr,"}"):(i=="variable"&&me(a),a=="*"&&(m.marked="keyword"),c(Si))}function yn(i){if(i==",")return c(nr,yn)}function Si(i,a){if(a=="as")return m.marked="keyword",c(nr)}function xr(i,a){if(a=="from")return m.marked="keyword",c(S)}function Di(i){return i=="]"?c():h(X(le,"]"))}function xn(){return h(y("form"),be,F("{"),y("}"),X($i,"}"),_,_)}function $i(){return h(be,Xe)}function Ni(i,a){return i.lastType=="operator"||i.lastType==","||b.test(a.charAt(0))||/[,.]/.test(a.charAt(0))}function En(i,a,u){return a.tokenize==B&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(a.lastType)||a.lastType=="quasi"&&/\{\s*$/.test(i.string.slice(0,i.pos-(u||0)))}return{startState:function(i){var a={tokenize:B,lastType:"sof",cc:[],lexical:new z((i||0)-n,0,"block",!1),localVars:t.localVars,context:t.localVars&&new Pe(null,null,!1),indented:i||0};return t.globalVars&&typeof t.globalVars=="object"&&(a.globalVars=t.globalVars),a},token:function(i,a){if(i.sol()&&(a.lexical.hasOwnProperty("align")||(a.lexical.align=!1),a.indented=i.indentation(),I(i,a)),a.tokenize!=N&&i.eatSpace())return null;var u=a.tokenize(i,a);return q=="comment"?u:(a.lastType=q=="operator"&&(P=="++"||P=="--")?"incdec":q,V(a,u,q,P,i))},indent:function(i,a){if(i.tokenize==N||i.tokenize==T)return r.Pass;if(i.tokenize!=B)return 0;var u=a&&a.charAt(0),d=i.lexical,E;if(!/^\s*else\b/.test(a))for(var O=i.cc.length-1;O>=0;--O){var $=i.cc[O];if($==_)d=d.prev;else if($!=jn&&$!=ae)break}for(;(d.type=="stat"||d.type=="form")&&(u=="}"||(E=i.cc[i.cc.length-1])&&(E==Le||E==Je)&&!/^[,\.=+\-*:?[\(]/.test(a));)d=d.prev;o&&d.type==")"&&d.prev.type=="stat"&&(d=d.prev);var ce=d.type,qe=u==ce;return ce=="vardef"?d.indented+(i.lastType=="operator"||i.lastType==","?d.info.length+1:0):ce=="form"&&u=="{"?d.indented:ce=="form"?d.indented+n:ce=="stat"?d.indented+(Ni(i,a)?o||n:0):d.info=="switch"&&!qe&&t.doubleIndentSwitch!=!1?d.indented+(/^(?:case|default)\b/.test(a)?n:2*n):d.align?d.column+(qe?0:1):d.indented+(qe?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:En,skipExpression:function(i){V(i,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})});(function(r){r(window.CodeMirror)})(function(r){"use strict";r.customOverlayMode=function(e,t,n){return{startState:function(){return{base:r.startState(e),overlay:r.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:r.copyState(e,o.base),overlay:r.copyState(t,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(o,s){return(o!=s.streamSeen||Math.min(s.basePos,s.overlayPos)<o.start)&&(s.streamSeen=o,s.basePos=s.overlayPos=o.start),o.start==s.basePos&&(s.baseCur=e.token(o,s.base),s.basePos=o.pos),o.start==s.overlayPos&&(o.pos=o.start,s.overlayCur=t.token(o,s.overlay),s.overlayPos=o.pos),o.pos=Math.min(s.basePos,s.overlayPos),s.baseCur&&s.overlayCur&&s.baseCur.contains("line-HyperMD-codeblock")&&(s.overlayCur=s.overlayCur.replace("line-templater-inline",""),s.overlayCur+=" line-background-HyperMD-codeblock-bg"),s.overlayCur==null?s.baseCur:s.baseCur!=null&&s.overlay.combineTokens||n&&s.overlay.combineTokens==null?s.baseCur+" "+s.overlayCur:s.overlayCur},indent:e.indent&&function(o,s,l){return e.indent(o.base,s,l)},electricChars:e.electricChars,innerMode:function(o){return{state:o.base,mode:e}},blankLine:function(o){let s,l;return e.blankLine&&(s=e.blankLine(o.base)),t.blankLine&&(l=t.blankLine(o.overlay)),l==null?s:n&&s!=null?s+" "+l:l}}}});var wi=G(require("@codemirror/language")),bi=G(require("@codemirror/state")),yi="templater",un="templater-command",mn="templater-inline",Vo="templater-opening-tag",Wo="templater-closing-tag",Ko="templater-interpolation-tag",Uo="templater-execution-tag",fn=class{constructor(e){this.plugin=e;this.cursor_jumper=new ln,this.activeEditorExtensions=[]}desktopShouldHighlight(){return An.Platform.isDesktopApp&&this.plugin.settings.syntax_highlighting}mobileShouldHighlight(){return An.Platform.isMobileApp&&this.plugin.settings.syntax_highlighting_mobile}async setup(){this.plugin.registerEditorSuggest(new pn(this.plugin.settings)),await this.registerCodeMirrorMode(),this.templaterLanguage=bi.Prec.high(wi.StreamLanguage.define(window.CodeMirror.getMode({},yi))),this.templaterLanguage===void 0&&K(new w("Unable to enable syntax highlighting. Could not define language.")),this.plugin.registerEditorExtension(this.activeEditorExtensions),(this.desktopShouldHighlight()||this.mobileShouldHighlight())&&await this.enable_highlighter()}async enable_highlighter(){this.activeEditorExtensions.length===0&&this.templaterLanguage&&(this.activeEditorExtensions.push(this.templaterLanguage),this.plugin.app.workspace.updateOptions())}async disable_highlighter(){this.activeEditorExtensions.length>0&&(this.activeEditorExtensions.pop(),this.plugin.app.workspace.updateOptions())}async jump_to_next_cursor_location(e=null,t=!1){t&&!this.plugin.settings.auto_jump_to_cursor||e&&yt(this.plugin.app)!==e||await this.cursor_jumper.jump_to_next_cursor_location()}async registerCodeMirrorMode(){if(!this.desktopShouldHighlight()&&!this.mobileShouldHighlight())return;let e=window.CodeMirror.getMode({},"javascript");if(e.name==="null"){K(new w("Javascript syntax mode couldn't be found, can't enable syntax highlighting."));return}let t=window.CodeMirror.customOverlayMode;if(t==null){K(new w("Couldn't find customOverlayMode, can't enable syntax highlighting."));return}window.CodeMirror.defineMode(yi,function(n){let o={startState:function(){return{...window.CodeMirror.startState(e),inCommand:!1,tag_class:"",freeLine:!1}},copyState:function(s){return{...window.CodeMirror.startState(e),inCommand:s.inCommand,tag_class:s.tag_class,freeLine:s.freeLine}},blankLine:function(s){return s.inCommand?"line-background-templater-command-bg":null},token:function(s,l){if(s.sol()&&l.inCommand&&(l.freeLine=!0),l.inCommand){let p="";if(s.match(/[-_]{0,1}%>/,!0)){l.inCommand=!1,l.freeLine=!1;let f=l.tag_class;return l.tag_class="",`line-${mn} ${un} ${Wo} ${f}`}let g=e.token&&e.token(s,l);return s.peek()==null&&l.freeLine&&(p+=" line-background-templater-command-bg"),l.freeLine||(p+=` line-${mn}`),`${p} ${un} ${g}`}let A=s.match(/<%[-_]{0,1}\s*([*+]{0,1})/,!0);if(A!=null){switch(A[1]){case"*":l.tag_class=Uo;break;default:l.tag_class=Ko;break}return l.inCommand=!0,`line-${mn} ${un} ${Vo} ${l.tag_class}`}for(;s.next()!=null&&!s.match(/<%/,!1););return null}};return t(window.CodeMirror.getMode(n,"hypermd"),o)})}};var dn=class extends _r.Plugin{async onload(){await this.load_settings(),this.templater=new Wt(this),await this.templater.setup(),this.editor_handler=new fn(this),await this.editor_handler.setup(),this.fuzzy_suggester=new Rr(this),this.event_handler=new jr(this,this.templater,this.settings),this.event_handler.setup(),this.command_handler=new sn(this),this.command_handler.setup(),(0,_r.addIcon)("templater-icon",oi),this.addRibbonIcon("templater-icon","Templater",async()=>{this.fuzzy_suggester.insert_template()}).setAttribute("id","rb-templater-icon"),this.addSettingTab(new Nr(this)),app.workspace.onLayoutReady(()=>{this.templater.execute_startup_scripts()})}onunload(){this.templater.functions_generator.teardown()}async save_settings(){await this.saveData(this.settings)}async load_settings(){this.settings=Object.assign({},ni,await this.loadData())}};
|