Last Sync: 2026-10-28 20:57 (Mobile)
This commit is contained in:
1 parent
07ba98b0c9
commit
5ae4881054
205 files changed
+19078
-10009
No files matched your search
Vendored
+3
-1
@@ -6,5 +6,7 @@
|
||||
"dataview",
|
||||
"obsidian-style-settings",
|
||||
"make-md",
|
||||
"notion-bases"
|
||||
"notion-bases",
|
||||
"obsidian-livesync",
|
||||
"templater-obsidian"
|
||||
]
|
||||
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"collapse-filter": true,
|
||||
"collapse-filter": false,
|
||||
"search": "",
|
||||
"showTags": false,
|
||||
"showAttachments": false,
|
||||
@@ -17,6 +17,6 @@
|
||||
"repelStrength": 10,
|
||||
"linkStrength": 1,
|
||||
"linkDistance": 250,
|
||||
"scale": 2.9042035181758417,
|
||||
"close": false
|
||||
"scale": 0.852549854559996,
|
||||
"close": true
|
||||
}
|
||||
+1942
-1138
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"id": "advanced-canvas",
|
||||
"name": "Advanced Canvas",
|
||||
"version": "6.5.0",
|
||||
"minAppVersion": "1.7.2",
|
||||
"version": "7.1.0",
|
||||
"minAppVersion": "1.13.0",
|
||||
"description": "Supercharge your canvas experience! Create presentations, flowcharts and more!",
|
||||
"author": "Developer-Mike",
|
||||
"authorUrl": "https://github.com/Developer-Mike",
|
||||
|
||||
+17
-85
@@ -1,82 +1,11 @@
|
||||
/* src/styles.scss */
|
||||
.ac-settings .properties-field > .setting-item-info {
|
||||
flex: 0;
|
||||
margin: 0;
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border: var(--input-border-width) solid var(--background-modifier-border);
|
||||
border-radius: var(--input-radius) 0 0 var(--input-radius);
|
||||
}
|
||||
.ac-settings .properties-field > .setting-item-control > input {
|
||||
width: 100%;
|
||||
border-radius: 0 var(--input-radius) var(--input-radius) 0;
|
||||
}
|
||||
.ac-settings .ac-settings-heading:not(:first-child) {
|
||||
margin-top: var(--size-4-10) !important;
|
||||
}
|
||||
.ac-settings .ac-settings-heading:has(.checkbox-container:not(.is-enabled)) {
|
||||
border-bottom-color: var(--background-modifier-border-hover);
|
||||
}
|
||||
.ac-settings .ac-settings-heading .setting-item-description {
|
||||
margin-inline-end: 20px;
|
||||
}
|
||||
.ac-settings .settings-header-children {
|
||||
transform-origin: top center;
|
||||
transform: scaleY(1);
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
.ac-settings .ac-settings-heading:has(.checkbox-container:not(.is-enabled)) + .settings-header-children {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
height: 0;
|
||||
transform: scaleY(0);
|
||||
}
|
||||
.ac-settings .setting-item > .setting-item-control input[type=text] {
|
||||
width: 75px;
|
||||
}
|
||||
.ac-settings details.setting-item {
|
||||
flex-direction: column;
|
||||
align-items: initial;
|
||||
}
|
||||
.ac-settings details.setting-item:not([open]) {
|
||||
row-gap: 0;
|
||||
}
|
||||
.ac-settings details.setting-item[open] {
|
||||
padding-bottom: var(--size-4-2);
|
||||
}
|
||||
.ac-settings details.setting-item[open] > summary {
|
||||
margin-bottom: var(--size-4-2);
|
||||
}
|
||||
.ac-settings details.setting-item > *:not(summary) {
|
||||
border: 1px solid var(--background-primary);
|
||||
}
|
||||
.ac-settings .kofi-banner {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--size-4-3);
|
||||
background-color: var(--background-primary-alt);
|
||||
border-radius: var(--radius-m);
|
||||
}
|
||||
.ac-settings .kofi-banner .ac-kofi-banner-title {
|
||||
margin: 0;
|
||||
font-size: var(--font-ui-small);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ac-settings .kofi-banner .ac-kofi-button {
|
||||
width: min-content;
|
||||
height: min-content;
|
||||
line-height: 0;
|
||||
}
|
||||
.ac-settings .kofi-banner .ac-kofi-button img {
|
||||
min-width: 75px;
|
||||
width: 25%;
|
||||
max-width: 100px;
|
||||
}
|
||||
.canvas-wrapper > .document-search-container {
|
||||
transform: translateZ(0);
|
||||
margin: 0;
|
||||
}
|
||||
.document-search-count.is-hidden {
|
||||
display: none;
|
||||
}
|
||||
.canvas-wrapper:not(.mod-readonly) .show-while-readonly {
|
||||
display: none;
|
||||
}
|
||||
@@ -91,7 +20,7 @@
|
||||
.canvas-node[data-shape=document],
|
||||
.canvas-node[data-shape=predefined-process],
|
||||
.canvas-node[data-shape=diamond] {
|
||||
--border-color: rgb(var(--canvas-color));
|
||||
--border-color: var(--canvas-color);
|
||||
--border-width: 3px;
|
||||
--box-shadow: none;
|
||||
}
|
||||
@@ -114,7 +43,7 @@
|
||||
.is-themed.canvas-node[data-shape=document],
|
||||
.is-themed.canvas-node[data-shape=predefined-process],
|
||||
.is-themed.canvas-node[data-shape=diamond] {
|
||||
--border-color: rgba(var(--canvas-color), 0.7);
|
||||
--border-color: rgb(from var(--canvas-color) r g b / 0.7);
|
||||
}
|
||||
.reactive-node.is-themed.is-focused,
|
||||
.is-themed.is-focused.canvas-node[data-shape=database],
|
||||
@@ -126,7 +55,7 @@
|
||||
.is-themed.is-selected.canvas-node[data-shape=document],
|
||||
.is-themed.is-selected.canvas-node[data-shape=predefined-process],
|
||||
.is-themed.is-selected.canvas-node[data-shape=diamond] {
|
||||
--border-color: rgb(var(--canvas-color));
|
||||
--border-color: var(--canvas-color);
|
||||
--box-shadow: var(--shadow-border-themed);
|
||||
}
|
||||
.canvas-node[data-text-align=center] .markdown-preview-view {
|
||||
@@ -278,7 +207,7 @@
|
||||
.canvas-node[data-shape=database].is-themed:not(:has(.embed-iframe)) .canvas-node-container,
|
||||
.canvas-node[data-shape=database].is-themed:not(:has(.embed-iframe))::after,
|
||||
.canvas-node[data-shape=database].is-themed:not(:has(.embed-iframe))::before {
|
||||
box-shadow: inset 0 0 0 1000px rgba(var(--canvas-color), 0.07) !important;
|
||||
box-shadow: inset 0 0 0 1000px rgb(from var(--canvas-color) r g b/0.07) !important;
|
||||
}
|
||||
.canvas-node[data-shape=database] .canvas-node-content:not(:has(.embed-iframe)) {
|
||||
transform: translateY(20px);
|
||||
@@ -339,12 +268,12 @@
|
||||
.canvas-edges [data-arrow=diamond-outline] polygon,
|
||||
.canvas-edges [data-arrow=circle-outline] polygon {
|
||||
fill: var(--canvas-background);
|
||||
stroke: rgb(var(--canvas-color));
|
||||
stroke: var(--canvas-color);
|
||||
stroke-width: calc(3px * var(--zoom-multiplier));
|
||||
}
|
||||
.canvas-edges [data-arrow=thin-triangle] polygon {
|
||||
fill: transparent;
|
||||
stroke: rgb(var(--canvas-color));
|
||||
stroke: var(--canvas-color);
|
||||
stroke-width: calc(4px * var(--zoom-multiplier));
|
||||
}
|
||||
.icon-modal-suggestion {
|
||||
@@ -359,6 +288,9 @@
|
||||
font-size: var(--font-ui-smaller);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.ac-pinned-pdf-page-embed {
|
||||
height: 100%;
|
||||
}
|
||||
.canvas.is-exporting {
|
||||
--zoom-multiplier: 1;
|
||||
}
|
||||
@@ -471,7 +403,7 @@
|
||||
transform: translate(0, -100%) scale(var(--zoom-multiplier));
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-muted);
|
||||
background-color: rgba(var(--canvas-color), 0.1);
|
||||
background-color: rgb(from var(--canvas-color) r g b/0.1);
|
||||
font-size: 1.5em;
|
||||
line-height: 1;
|
||||
pointer-events: initial;
|
||||
@@ -578,14 +510,14 @@
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background-color: var(--background-primary);
|
||||
border: 1px solid rgb(var(--canvas-color));
|
||||
border: 1px solid var(--canvas-color);
|
||||
border-radius: var(--radius-m);
|
||||
box-shadow: var(--shadow-stationary);
|
||||
}
|
||||
.ac-card-embed.is-themed {
|
||||
background-color: rgba(var(--canvas-color), 0.07);
|
||||
border-color: rgba(var(--canvas-color), 0.7);
|
||||
box-shadow: inset 0 0 0 1px rgba(var(--canvas-color), 0.7), var(--shadow-stationary);
|
||||
background-color: rgb(from var(--canvas-color) r g b/0.07);
|
||||
border-color: rgb(from var(--canvas-color) r g b/0.7);
|
||||
box-shadow: inset 0 0 0 1px rgb(from var(--canvas-color) r g b/0.7), var(--shadow-stationary);
|
||||
}
|
||||
.ac-card-embed > .markdown-content {
|
||||
position: relative;
|
||||
|
||||
Vendored
+3
-1
@@ -37,7 +37,9 @@
|
||||
"showRibbon": true,
|
||||
"vaultSelector": true,
|
||||
"deleteFileOption": "trash",
|
||||
"expandedSpaces": [],
|
||||
"expandedSpaces": [
|
||||
"/"
|
||||
],
|
||||
"expandFolderOnClick": true,
|
||||
"spacesFolder": "Tags",
|
||||
"suppressedWarnings": [],
|
||||
|
||||
+14
-14
@@ -3,30 +3,30 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var uy=Object.create;var as=Object.defineProperty;var cy=Object.getOwnPropertyDescriptor;var dy=Object.getOwnPropertyNames;var py=Object.getPrototypeOf,my=Object.prototype.hasOwnProperty;var zo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fy=(e,t)=>{for(var n in t)as(e,n,{get:t[n],enumerable:!0})},lf=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of dy(t))!my.call(e,r)&&r!==n&&as(e,r,{get:()=>t[r],enumerable:!(o=cy(t,r))||o.enumerable});return e};var De=(e,t,n)=>(n=e!=null?uy(py(e)):{},lf(t||!e||!e.__esModule?as(n,"default",{value:e,enumerable:!0}):n,e)),gy=e=>lf(as({},"__esModule",{value:!0}),e);var Sf=zo(dt=>{"use strict";var Oi=Symbol.for("react.element"),Sy=Symbol.for("react.portal"),Ny=Symbol.for("react.fragment"),xy=Symbol.for("react.strict_mode"),Ry=Symbol.for("react.profiler"),Ey=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),Fy=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Ty=Symbol.for("react.memo"),Py=Symbol.for("react.lazy"),mf=Symbol.iterator;function Ly(e){return e===null||typeof e!="object"?null:(e=mf&&e[mf]||e["@@iterator"],typeof e=="function"?e:null)}var _f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hf=Object.assign,vf={};function La(e,t,n){this.props=e,this.context=t,this.refs=vf,this.updater=n||_f}La.prototype.isReactComponent={};La.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};La.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bf(){}bf.prototype=La.prototype;function Ic(e,t,n){this.props=e,this.context=t,this.refs=vf,this.updater=n||_f}var Oc=Ic.prototype=new bf;Oc.constructor=Ic;hf(Oc,La.prototype);Oc.isPureReactComponent=!0;var ff=Array.isArray,yf=Object.prototype.hasOwnProperty,$c={current:null},wf={key:!0,ref:!0,__self:!0,__source:!0};function Cf(e,t,n){var o,r={},a=null,i=null;if(t!=null)for(o in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)yf.call(t,o)&&!wf.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var s=Array(l),d=0;d<l;d++)s[d]=arguments[d+2];r.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)r[o]===void 0&&(r[o]=l[o]);return{$$typeof:Oi,type:e,key:a,ref:i,props:r,_owner:$c.current}}function Ay(e,t){return{$$typeof:Oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oi}function Iy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gf=/\/+/g;function Ac(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Iy(""+e.key):t.toString(36)}function ls(e,t,n,o,r){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Oi:case Sy:i=!0}}if(i)return i=e,r=r(i),e=o===""?"."+Ac(i,0):o,ff(r)?(n="",e!=null&&(n=e.replace(gf,"$&/")+"/"),ls(r,t,n,"",function(d){return d})):r!=null&&(zc(r)&&(r=Ay(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(gf,"$&/")+"/")+e)),t.push(r)),1;if(i=0,o=o===""?".":o+":",ff(e))for(var l=0;l<e.length;l++){a=e[l];var s=o+Ac(a,l);i+=ls(a,t,n,s,r)}else if(s=Ly(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=o+Ac(a,l++),i+=ls(a,t,n,s,r);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function is(e,t,n){if(e==null)return e;var o=[],r=0;return ls(e,o,"","",function(a){return t.call(n,a,r++)}),o}function Oy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xn={current:null},ss={transition:null},$y={ReactCurrentDispatcher:xn,ReactCurrentBatchConfig:ss,ReactCurrentOwner:$c};function kf(){throw Error("act(...) is not supported in production builds of React.")}dt.Children={map:is,forEach:function(e,t,n){is(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return is(e,function(){t++}),t},toArray:function(e){return is(e,function(t){return t})||[]},only:function(e){if(!zc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};dt.Component=La;dt.Fragment=Ny;dt.Profiler=Ry;dt.PureComponent=Ic;dt.StrictMode=xy;dt.Suspense=My;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$y;dt.act=kf;dt.cloneElement=function(e,t,n){if(e==nLine truncated
|
||||
`+Kc+e}var Xc=!1;function Qc(e,t){if(!e||Xc)return"";Xc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var o=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){o=d}e.call(t.prototype)}else{try{throw Error()}catch(d){o=d}e()}}catch(d){if(d&&o&&typeof d.stack=="string"){for(var r=d.stack.split(`
|
||||
var Yy=Object.create;var ws=Object.defineProperty;var Ky=Object.getOwnPropertyDescriptor;var Xy=Object.getOwnPropertyNames;var Qy=Object.getPrototypeOf,Zy=Object.prototype.hasOwnProperty;var nr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jy=(e,t)=>{for(var n in t)ws(e,n,{get:t[n],enumerable:!0})},Of=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xy(t))!Zy.call(e,r)&&r!==n&&ws(e,r,{get:()=>t[r],enumerable:!(o=Ky(t,r))||o.enumerable});return e};var Ne=(e,t,n)=>(n=e!=null?Yy(Qy(e)):{},Of(t||!e||!e.__esModule?ws(n,"default",{value:e,enumerable:!0}):n,e)),ew=e=>Of(ws({},"__esModule",{value:!0}),e);var eg=nr(gt=>{"use strict";var el=Symbol.for("react.element"),uw=Symbol.for("react.portal"),cw=Symbol.for("react.fragment"),dw=Symbol.for("react.strict_mode"),mw=Symbol.for("react.profiler"),pw=Symbol.for("react.provider"),fw=Symbol.for("react.context"),gw=Symbol.for("react.forward_ref"),_w=Symbol.for("react.suspense"),hw=Symbol.for("react.memo"),vw=Symbol.for("react.lazy"),jf=Symbol.iterator;function bw(e){return e===null||typeof e!="object"?null:(e=jf&&e[jf]||e["@@iterator"],typeof e=="function"?e:null)}var qf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gf=Object.assign,Yf={};function Ua(e,t,n){this.props=e,this.context=t,this.refs=Yf,this.updater=n||qf}Ua.prototype.isReactComponent={};Ua.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ua.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kf(){}Kf.prototype=Ua.prototype;function ud(e,t,n){this.props=e,this.context=t,this.refs=Yf,this.updater=n||qf}var cd=ud.prototype=new Kf;cd.constructor=ud;Gf(cd,Ua.prototype);cd.isPureReactComponent=!0;var Uf=Array.isArray,Xf=Object.prototype.hasOwnProperty,dd={current:null},Qf={key:!0,ref:!0,__self:!0,__source:!0};function Zf(e,t,n){var o,r={},a=null,i=null;if(t!=null)for(o in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Xf.call(t,o)&&!Qf.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var s=Array(l),d=0;d<l;d++)s[d]=arguments[d+2];r.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)r[o]===void 0&&(r[o]=l[o]);return{$$typeof:el,type:e,key:a,ref:i,props:r,_owner:dd.current}}function yw(e,t){return{$$typeof:el,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function md(e){return typeof e=="object"&&e!==null&&e.$$typeof===el}function ww(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wf=/\/+/g;function sd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ww(""+e.key):t.toString(36)}function ks(e,t,n,o,r){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case el:case uw:i=!0}}if(i)return i=e,r=r(i),e=o===""?"."+sd(i,0):o,Uf(r)?(n="",e!=null&&(n=e.replace(Wf,"$&/")+"/"),ks(r,t,n,"",function(d){return d})):r!=null&&(md(r)&&(r=yw(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(Wf,"$&/")+"/")+e)),t.push(r)),1;if(i=0,o=o===""?".":o+":",Uf(e))for(var l=0;l<e.length;l++){a=e[l];var s=o+sd(a,l);i+=ks(a,t,n,s,r)}else if(s=bw(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=o+sd(a,l++),i+=ks(a,t,n,s,r);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Cs(e,t,n){if(e==null)return e;var o=[],r=0;return ks(e,o,"","",function(a){return t.call(n,a,r++)}),o}function Cw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dn={current:null},Ss={transition:null},kw={ReactCurrentDispatcher:Dn,ReactCurrentBatchConfig:Ss,ReactCurrentOwner:dd};function Jf(){throw Error("act(...) is not supported in production builds of React.")}gt.Children={map:Cs,forEach:function(e,t,n){Cs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cs(e,function(){t++}),t},toArray:function(e){return Cs(e,function(t){return t})||[]},only:function(e){if(!md(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};gt.Component=Ua;gt.Fragment=cw;gt.Profiler=mw;gt.PureComponent=ud;gt.StrictMode=dw;gt.Suspense=_w;gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kw;gt.act=Jf;gt.cloneElement=function(e,t,n){if(e==nLine truncated
|
||||
`+Cd+e}var kd=!1;function Sd(e,t){if(!e||kd)return"";kd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var o=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){o=d}e.call(t.prototype)}else{try{throw Error()}catch(d){o=d}e()}}catch(d){if(d&&o&&typeof d.stack=="string"){for(var r=d.stack.split(`
|
||||
`),a=o.stack.split(`
|
||||
`),i=r.length-1,l=a.length-1;1<=i&&0<=l&&r[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(r[i]!==a[l]){if(i!==1||l!==1)do if(i--,l--,0>l||r[i]!==a[l]){var s=`
|
||||
`+r[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{Xc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ki(e):""}function Wy(e){switch(e.tag){case 5:return Ki(e.type);case 16:return Ki("Lazy");case 13:return Ki("Suspense");case 19:return Ki("SuspenseList");case 0:case 2:case 15:return e=Qc(e.type,!1),e;case 11:return e=Qc(e.type.render,!1),e;case 1:return e=Qc(e.type,!0),e;default:return""}}function wd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $a:return"Fragment";case Oa:return"Portal";case vd:return"Profiler";case pp:return"StrictMode";case bd:return"Suspense";case yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gg:return(e.displayName||"Context")+".Consumer";case Wg:return(e._context.displayName||"Context")+".Provider";case mp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fp:return t=e.displayName||null,t!==null?t:wd(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return wd(e(t))}catch{}}return null}function Gy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wd(t);case 8:return t===pp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qy(e){var t=Yg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){e._valueTracker||(e._valueTracker=qy(e))}function Kg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Yg(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cd(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bf(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=wr(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xg(e,t){t=t.checked,t!=null&&dp(e,"checked",t,!1)}function kd(e,t){Xg(e,t);var n=wr(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sd(e,t.type,wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Sd(e,t,n){(t!=="number"||js(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xi=Array.isArray;function Ka(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+wr(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Nd(e,t){if(t.dan
Line truncated
|
||||
`).replace(tC,"")}function Rs(e,t,n){if(t=pg(t),pg(e)!==t&&n)throw Error(pe(425))}function Qs(){}var $d=null,zd=null;function Vd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bd=typeof setTimeout=="function"?setTimeout:void 0,nC=typeof clearTimeout=="function"?clearTimeout:void 0,mg=typeof Promise=="function"?Promise:void 0,oC=typeof queueMicrotask=="function"?queueMicrotask:typeof mg<"u"?function(e){return mg.resolve(null).then(e).catch(rC)}:Bd;function rC(e){setTimeout(function(){throw e})}function ld(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(o===0){e.removeChild(r),ml(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=r}while(n);ml(t)}function _r(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ui=Math.random().toString(36).slice(2),Mo="__reactFiber$"+ui,vl="__reactProps$"+ui,Go="__reactContainer$"+ui,Hd="__reactEvents$"+ui,aC="__reactListeners$"+ui,iC="__reactHandles$"+ui;function Zr(e){var t=e[Mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Go]||n[Mo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fg(e);e!==null;){if(n=e[Mo])return n;e=fg(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){return e=e[Mo]||e[Go],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ha(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(pe(33))}function hu(e){return e[vl]||null}var jd=[],ja=-1;function Sr(e){return{current:e}}function At(e){0>ja||(e.current=jd[ja],jd[ja]=null,ja--)}function Tt(e,t){ja++,jd[ja]=e.current,e.current=t}var Cr={},bn=Sr(Cr),Ln=Sr(!1),oa=Cr;function ni(e,t){var n=e.type.contextTypes;if(!n)return Cr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function An(e){return e=e.childContextTypes,e!=null}function Zs(){At(Ln),At(bn)}function gg(e,t,n){if(bn.current!==Cr)throw Error(pe(168));Tt(bn,t),Tt(Ln,n)}function $_(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(pe(108,Gy(e)||"Unknown",r));return Bt({},n,o)}function Js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,oa=bn.current,Tt(bn,e),Tt(Ln,Ln.current),!0}function _g(e,t,n){var o=e.stateNode;if(!o)throw Error(pe(169));n?(e=$_(e,t,oa),o.__reactInternalMemoizedMergedChildContext=e,At(Ln),At(bn),Tt(bn,e)):At(Ln),Tt(Ln,n)}var Bo=null,vu=!1,sd=!1;function z_(e){Bo===null?Bo=[e]:Bo.push(e)}function lC(e){vu=!0,z_(e)}function Nr(){if(!sd&&Bo!==null){sd=!0;var e=0,t=Ft;try{var n=Bo;for(Ft=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Bo=null,vu=!1}catch(r){throw Bo!==null&&(Bo=Bo.slice(e+1)),c_(_p,Nr),r}finally{Ft=t,sd=!1}}return null}var Ua=[],Wa=0,eu=null,tu=0,to=[],no=0,ra=null,Ho=1,jo="";function Xr(e,t){Ua[Wa++]=tu,Ua[Wa++]=eu,eu=e,tu=t}function V_(e,t,n){to[no++]=Ho,to[no++]=jo,to[no++]=ra,ra=e;var o=Ho;e=jo;var r=32-wo(o)-1;o&=~(1<<r),n+=1;var a=32-wo(t)+r;if(30<a){var i=r-r%5;a=(o&(1<<i)-1).toString(32),o>>=i,r-=i,Ho=1<<32-wo(t)+r|n<<r|o,jo=a+e}else Ho=1<<a|n<<r|o,jo=e}function Np(e){e.return!==null&&(Xr(e,1),V_(e,1,0))}function xp(e){for(;e===eu;)eu=Ua[--Wa],Ua[Wa]=null,tu=Ua[--Wa],Ua[Wa]=null;for(;e===ra;)ra=to[--no],to[no]=null,jo=to[--no],to[no]=null,Ho=to[--no],to[no]=null}var qn=null,Gn=null,Ot=!1,yo=null;function B_(e,t){var n=oo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function hg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qn=e,Gn=_r(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qn=e,Gn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ra!==null?{id:Ho,overflow:jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=oo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qn=e,Gn=null,!0):!1;default:return!1}}function Ud(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wd(e){if(Ot){var t=Gn;if(t){var n=t;if(!hg(e,t)){if(Ud(e))throw Error(pe(418));t=_r(n.nextSibling);var o=qn;t&&hg(e,t)?B_(o,n):(e.flags=e.flags&-4097|2,Ot=!1,qn=e)}}else{if(Ud(e))throw Error(pe(418));e.flags=e.flags&-4097|2,Ot=!1,qn=e}}}function vg(e){
Line truncated
|
||||
`+r[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{kd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ml(e):""}function Fw(e){switch(e.tag){case 5:return ml(e.type);case 16:return ml("Lazy");case 13:return ml("Suspense");case 19:return ml("SuspenseList");case 0:case 2:case 15:return e=Sd(e.type,!1),e;case 11:return e=Sd(e.type.render,!1),e;case 1:return e=Sd(e.type,!0),e;default:return""}}function Yd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ya:return"Fragment";case Ga:return"Portal";case Wd:return"Profiler";case zm:return"StrictMode";case qd:return"Suspense";case Gd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C_:return(e.displayName||"Context")+".Consumer";case w_:return(e._context.displayName||"Context")+".Provider";case Vm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bm:return t=e.displayName||null,t!==null?t:Yd(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return Yd(e(t))}catch{}}return null}function Tw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yd(t);case 8:return t===zm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Or(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mw(e){var t=S_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ts(e){e._valueTracker||(e._valueTracker=Mw(e))}function N_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=S_(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function au(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kd(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hg(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Or(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x_(e,t){t=t.checked,t!=null&&$m(e,"checked",t,!1)}function Xd(e,t){x_(e,t);var n=Or(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qd(e,t.type,Or(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qd(e,t,n){(t!=="number"||au(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pl=Array.isArray;function ai(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Or(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Zd(e,t){if(t.dan
Line truncated
|
||||
`).replace(VC,"")}function js(e,t,n){if(t=Hg(t),Hg(e)!==t&&n)throw Error(fe(425))}function pu(){}var dm=null,mm=null;function pm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fm=typeof setTimeout=="function"?setTimeout:void 0,BC=typeof clearTimeout=="function"?clearTimeout:void 0,jg=typeof Promise=="function"?Promise:void 0,HC=typeof queueMicrotask=="function"?queueMicrotask:typeof jg<"u"?function(e){return jg.resolve(null).then(e).catch(jC)}:fm;function jC(e){setTimeout(function(){throw e})}function Ld(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(o===0){e.removeChild(r),Fl(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=r}while(n);Fl(t)}function Mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ug(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bi=Math.random().toString(36).slice(2),Wo="__reactFiber$"+bi,Il="__reactProps$"+bi,ur="__reactContainer$"+bi,gm="__reactEvents$"+bi,UC="__reactListeners$"+bi,WC="__reactHandles$"+bi;function da(e){var t=e[Wo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ur]||n[Wo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ug(e);e!==null;){if(n=e[Wo])return n;e=Ug(e)}return t}e=n,n=e.parentNode}return null}function Ul(e){return e=e[Wo]||e[ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Za(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(fe(33))}function Pu(e){return e[Il]||null}var _m=[],Ja=-1;function Vr(e){return{current:e}}function $t(e){0>Ja||(e.current=_m[Ja],_m[Ja]=null,Ja--)}function Pt(e,t){Ja++,_m[Ja]=e.current,e.current=t}var $r={},kn=Vr($r),$n=Vr(!1),_a=$r;function mi(e,t){var n=e.type.contextTypes;if(!n)return $r;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function zn(e){return e=e.childContextTypes,e!=null}function fu(){$t($n),$t(kn)}function Wg(e,t,n){if(kn.current!==$r)throw Error(fe(168));Pt(kn,t),Pt($n,n)}function fh(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(fe(108,Tw(e)||"Unknown",r));return Ut({},n,o)}function gu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$r,_a=kn.current,Pt(kn,e),Pt($n,$n.current),!0}function qg(e,t,n){var o=e.stateNode;if(!o)throw Error(fe(169));n?(e=fh(e,t,_a),o.__reactInternalMemoizedMergedChildContext=e,$t($n),$t(kn),Pt(kn,e)):$t($n),Pt($n,n)}var rr=null,Lu=!1,Id=!1;function gh(e){rr===null?rr=[e]:rr.push(e)}function qC(e){Lu=!0,gh(e)}function Br(){if(!Id&&rr!==null){Id=!0;var e=0,t=Dt;try{var n=rr;for(Dt=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}rr=null,Lu=!1}catch(r){throw rr!==null&&(rr=rr.slice(e+1)),V_(jm,Br),r}finally{Dt=t,Id=!1}}return null}var ei=[],ti=0,_u=null,hu=0,lo=[],so=0,ha=null,ar=1,ir="";function ua(e,t){ei[ti++]=hu,ei[ti++]=_u,_u=e,hu=t}function _h(e,t,n){lo[so++]=ar,lo[so++]=ir,lo[so++]=ha,ha=e;var o=ar;e=ir;var r=32-Ro(o)-1;o&=~(1<<r),n+=1;var a=32-Ro(t)+r;if(30<a){var i=r-r%5;a=(o&(1<<i)-1).toString(32),o>>=i,r-=i,ar=1<<32-Ro(t)+r|n<<r|o,ir=a+e}else ar=1<<a|n<<r|o,ir=e}function Zm(e){e.return!==null&&(ua(e,1),_h(e,1,0))}function Jm(e){for(;e===_u;)_u=ei[--ti],ei[ti]=null,hu=ei[--ti],ei[ti]=null;for(;e===ha;)ha=lo[--so],lo[so]=null,ir=lo[--so],lo[so]=null,ar=lo[--so],lo[so]=null}var Zn=null,Qn=null,zt=!1,xo=null;function hh(e,t){var n=uo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Gg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zn=e,Qn=Mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zn=e,Qn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ha!==null?{id:ar,overflow:ir}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=uo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Zn=e,Qn=null,!0):!1;default:return!1}}function hm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vm(e){if(zt){var t=Qn;if(t){var n=t;if(!Gg(e,t)){if(hm(e))throw Error(fe(418));t=Mr(n.nextSibling);var o=Zn;t&&Gg(e,t)?hh(o,n):(e.flags=e.flags&-4097|2,zt=!1,Zn=e)}}else{if(hm(e))throw Error(fe(418));e.flags=e.flags&-4097|2,zt=!1,Zn=e}}}function Yg(e){
Line truncated
|
||||
Error generating stack: `+a.message+`
|
||||
`+a.stack}return{value:e,source:t,stack:r,digest:null}}function md(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Kd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _C=typeof WeakMap=="function"?WeakMap:Map;function fh(e,t,n){n=Uo(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){uu||(uu=!0,ap=o),Kd(e,t)},n}function gh(e,t,n){n=Uo(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){Kd(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Kd(e,t),typeof o!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function xg(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new _C;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=FC.bind(null,e,t,n),t.then(e,e))}function Rg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Eg(e,t,n,o,r){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Uo(-1,1),t.tag=2,hr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var hC=Ko.ReactCurrentOwner,Pn=!1;function Rn(e,t,n,o){t.child=e===null?U_(t,null,n,o):ri(t,e.child,n,o)}function Dg(e,t,n,o,r){n=n.render;var a=t.ref;return Ja(t,r),o=Op(e,t,n,o,a,r),n=$p(),e!==null&&!Pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Yo(e,t,r)):(Ot&&n&&Np(t),t.flags|=1,Rn(e,t,o,r),t.child)}function Fg(e,t,n,o,r){if(e===null){var a=n.type;return typeof a=="function"&&!Yp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,_h(e,t,a,o,r)):(e=Hs(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&r)===0){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:gl,n(i,o)&&e.ref===t.ref)return Yo(e,t,r)}return t.flags|=1,e=yr(a,o),e.ref=t.ref,e.return=t,t.child=e}function _h(e,t,n,o,r){if(e!==null){var a=e.memoizedProps;if(gl(a,o)&&e.ref===t.ref)if(Pn=!1,t.pendingProps=o=a,(e.lanes&r)!==0)(e.flags&131072)!==0&&(Pn=!0);else return t.lanes=e.lanes,Yo(e,t,r)}return Xd(e,t,n,o,r)}function hh(e,t,n){var o=t.pendingProps,r=o.children,a=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(Ya,Wn),Wn|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tt(Ya,Wn),Wn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=a!==null?a.baseLanes:n,Tt(Ya,Wn),Wn|=o}else a!==null?(o=a.baseLanes|n,t.memoizedState=null):o=n,Tt(Ya,Wn),Wn|=o;return Rn(e,t,r,n),t.child}function vh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xd(e,t,n,o,r){var a=An(n)?oa:bn.current;return a=ni(t,a),Ja(t,r),n=Op(e,t,n,o,a,r),o=$p(),e!==null&&!Pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Yo(e,t,r)):(Ot&&o&&Np(t),t.flags|=1,Rn(e,t,n,r),t.child)}function Mg(e,t,n,o,r){if(An(n)){var a=!0;Js(t)}else a=!1;if(Ja(t,r),t.stateNode===null)zs(e,t),mh(t,n,o),Yd(t,n,o,r),o=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=ao(d):(d=An(n)?oa:bn.current,d=ni(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function";g||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==o||s!==d)&&Ng(t,i,o,d),sr=!1;var m=t.memoizedState;i.state=m,ru(t,o,i,r),s=t.memoizedState,l!==o||m!==s||Ln.current||sr?(typeof p=="function"&&(qd(t,n,p,o),s=t.memoizedState),(l=sr||Sg(t,n,l,o,m,s,d))?(g||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),i.props=o,i.state=s,i.context=d,o=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{i=t.stateNode,G_(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:vo(t.type,l),i.props=d,g=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=ao(s):(s=An(n)?oa:bn.current,s=ni(t,s));var c=n.getDerivedStateFromProps;(p=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==g||m!==s)&&Ng(t,i,o,s),sr=!1,m=t.memoizedState,i.state=m,ru(t,o,i,
Line truncated
|
||||
`+a.stack}return{value:e,source:t,stack:r,digest:null}}function Vd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var t0=typeof WeakMap=="function"?WeakMap:Map;function Uh(e,t,n){n=lr(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Nu||(Nu=!0,Mm=o),Cm(e,t)},n}function Wh(e,t,n){n=lr(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){Cm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Cm(e,t),typeof o!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function n_(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new t0;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=g0.bind(null,e,t,n),t.then(e,e))}function o_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function r_(e,t,n,o,r){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=lr(-1,1),t.tag=2,Pr(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var n0=mr.ReactCurrentOwner,On=!1;function Fn(e,t,n,o){t.child=e===null?yh(t,null,n,o):fi(t,e.child,n,o)}function a_(e,t,n,o,r){n=n.render;var a=t.ref;return ui(t,r),o=cp(e,t,n,o,a,r),n=dp(),e!==null&&!On?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,dr(e,t,r)):(zt&&n&&Zm(t),t.flags|=1,Fn(e,t,o,r),t.child)}function i_(e,t,n,o,r){if(e===null){var a=n.type;return typeof a=="function"&&!wp(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,qh(e,t,a,o,r)):(e=ru(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&r)===0){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:Ml,n(i,o)&&e.ref===t.ref)return dr(e,t,r)}return t.flags|=1,e=Ar(a,o),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,n,o,r){if(e!==null){var a=e.memoizedProps;if(Ml(a,o)&&e.ref===t.ref)if(On=!1,t.pendingProps=o=a,(e.lanes&r)!==0)(e.flags&131072)!==0&&(On=!0);else return t.lanes=e.lanes,dr(e,t,r)}return km(e,t,n,o,r)}function Gh(e,t,n){var o=t.pendingProps,r=o.children,a=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pt(ri,Xn),Xn|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pt(ri,Xn),Xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=a!==null?a.baseLanes:n,Pt(ri,Xn),Xn|=o}else a!==null?(o=a.baseLanes|n,t.memoizedState=null):o=n,Pt(ri,Xn),Xn|=o;return Fn(e,t,r,n),t.child}function Yh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function km(e,t,n,o,r){var a=zn(n)?_a:kn.current;return a=mi(t,a),ui(t,r),n=cp(e,t,n,o,a,r),o=dp(),e!==null&&!On?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,dr(e,t,r)):(zt&&o&&Zm(t),t.flags|=1,Fn(e,t,n,r),t.child)}function l_(e,t,n,o,r){if(zn(n)){var a=!0;gu(t)}else a=!1;if(ui(t,r),t.stateNode===null)tu(e,t),jh(t,n,o),wm(t,n,o,r),o=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=mo(d):(d=zn(n)?_a:kn.current,d=mi(t,d));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==o||s!==d)&&t_(t,i,o,d),Sr=!1;var p=t.memoizedState;i.state=p,yu(t,o,i,r),s=t.memoizedState,l!==o||p!==s||$n.current||Sr?(typeof m=="function"&&(ym(t,n,m,o),s=t.memoizedState),(l=Sr||e_(t,n,l,o,p,s,d))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),i.props=o,i.state=s,i.context=d,o=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{i=t.stateNode,Ch(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:So(t.type,l),i.props=d,h=t.pendingProps,p=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=mo(s):(s=zn(n)?_a:kn.current,s=mi(t,s));var c=n.getDerivedStateFromProps;(m=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||p!==s)&&t_(t,i,o,s),Sr=!1,p=t.memoizedState,i.state=p,yu(t,o,i,
Line truncated
|
||||
font-size: .6rem;
|
||||
font-weight: bold;
|
||||
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n?.key)}return r}}function Ze(e,t,n,o){return{debug:()=>{var r;return(r=e?.debugAll)!=null?r:e[t]},key:!1,onChange:o}}function n0(e,t,n,o){let r=()=>{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:Qe(()=>[e,n,t,a],(i,l,s,d)=>({table:i,column:l,row:s,cell:d,getValue:d.getValue,renderValue:d.renderValue}),Ze(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}function o0(e,t,n,o){var r,a;let l={...e._getDefaultColumnDef(),...t},s=l.accessorKey,d=(r=(a=l.id)!=null?a:s?typeof String.prototype.replaceAll=="function"?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)!=null?r:typeof l.header=="string"?l.header:void 0,p;if(l.accessorFn?p=l.accessorFn:s&&(s.includes(".")?p=m=>{let c=m;for(let v of s.split(".")){var h;c=(h=c)==null?void 0:h[v]}return c}:p=m=>m[l.accessorKey]),!d)throw new Error;let g={id:`${String(d)}`,accessorFn:p,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:Qe(()=>[!0],()=>{var m;return[g,...(m=g.columns)==null?void 0:m.flatMap(c=>c.getFlatColumns())]},Ze(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Qe(()=>[e._getOrderColumnsFn()],m=>{var c;if((c=g.columns)!=null&&c.length){let h=g.columns.flatMap(v=>v.getLeafColumns());return m(h)}return[g]},Ze(e.options,"debugColumns","column.getLeafColumns"))};for(let m of e._features)m.createColumn==null||m.createColumn(g,e);return g}var yn="debugHeaders";function ev(e,t,n){var o;let a={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let i=[],l=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(l),i.push(s)};return l(a),i},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}var r0={createTable:e=>{e.getHeaderGroups=Qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var a,i;let l=(a=o?.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?a:[],s=(i=r?.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?i:[],d=n.filter(g=>!(o!=null&&o.includes(g.id))&&!(r!=null&&r.includes(g.id)));return Ou(t,[...l,...d,...s],e)},Ze(e.options,yn,"getHeaderGroups")),e.getCenterHeaderGroups=Qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(a=>!(o!=null&&o.includes(a.id))&&!(r!=null&&r.includes(a.id))),Ou(t,n,e,"center")),Ze(e.options,yn,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;let a=(r=o?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?r:[];return Ou(t,a,e,"left")},Ze(e.options,yn,"getLeftHeaderGroups")),e.getRightHeaderGroups=Qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;let a=(r=o?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?r:[];return Ou(t,a,e,"right")},Ze(e.options,yn,"getRightHeaderGroups")),e.getFooterGroups=Qe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ze(e.options,yn,"getFooterGroups")),e.getLeftFooterGroups=Qe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ze(e.options,yn,"getLeftFooterGroups")),e.getCenterFooterGroups=Qe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ze(e.options,yn,"getCenterFooterGroups")),e.getRightFooterGroups=Qe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ze(e.options,yn,"getRightFooterGroups")),e.getFlatHeaders=Qe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ze(e.options,yn,"getFlatHeaders")),e.getLeftFlatHeaders=Qe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ze(e.options,yn,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Qe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ze(e.options,yn,"getCenterFlatHeaders")),e.getRightFlatHeaders=Qe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ze(e.options,yn,"getRightFlatHeaders")),e.getCenterLeafHeaders=Qe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ze(e.options,yn,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Qe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ze(e.options,yn,"getLeftLeafHeaders")),e.getRightLeafHeaders=Qe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ze(e.options,yn,"getRightLeafHeaders")),e.getLeafHeaders=Qe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,a,i,l,s,d;return[...(r=(a=t[0])==null?void 0:a.headers)!=null?r:[],...(i=(l=n[0])==null?void 0:l.headers)!=null?i:[],...(s=(d=o[0])
Line truncated
|
||||
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n?.key)}return r}}function nt(e,t,n,o){return{debug:()=>{var r;return(r=e?.debugAll)!=null?r:e[t]},key:!1,onChange:o}}function Q0(e,t,n,o){let r=()=>{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:tt(()=>[e,n,t,a],(i,l,s,d)=>({table:i,column:l,row:s,cell:d,getValue:d.getValue,renderValue:d.renderValue}),nt(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}function Z0(e,t,n,o){var r,a;let l={...e._getDefaultColumnDef(),...t},s=l.accessorKey,d=(r=(a=l.id)!=null?a:s?typeof String.prototype.replaceAll=="function"?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)!=null?r:typeof l.header=="string"?l.header:void 0,m;if(l.accessorFn?m=l.accessorFn:s&&(s.includes(".")?m=p=>{let c=p;for(let b of s.split(".")){var _;c=(_=c)==null?void 0:_[b]}return c}:m=p=>p[l.accessorKey]),!d)throw new Error;let h={id:`${String(d)}`,accessorFn:m,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:tt(()=>[!0],()=>{var p;return[h,...(p=h.columns)==null?void 0:p.flatMap(c=>c.getFlatColumns())]},nt(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:tt(()=>[e._getOrderColumnsFn()],p=>{var c;if((c=h.columns)!=null&&c.length){let _=h.columns.flatMap(b=>b.getLeafColumns());return p(_)}return[h]},nt(e.options,"debugColumns","column.getLeafColumns"))};for(let p of e._features)p.createColumn==null||p.createColumn(h,e);return h}var Nn="debugHeaders";function Hv(e,t,n){var o;let a={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let i=[],l=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(l),i.push(s)};return l(a),i},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}var J0={createTable:e=>{e.getHeaderGroups=tt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var a,i;let l=(a=o?.map(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?a:[],s=(i=r?.map(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?i:[],d=n.filter(h=>!(o!=null&&o.includes(h.id))&&!(r!=null&&r.includes(h.id)));return lc(t,[...l,...d,...s],e)},nt(e.options,Nn,"getHeaderGroups")),e.getCenterHeaderGroups=tt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(a=>!(o!=null&&o.includes(a.id))&&!(r!=null&&r.includes(a.id))),lc(t,n,e,"center")),nt(e.options,Nn,"getCenterHeaderGroups")),e.getLeftHeaderGroups=tt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;let a=(r=o?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?r:[];return lc(t,a,e,"left")},nt(e.options,Nn,"getLeftHeaderGroups")),e.getRightHeaderGroups=tt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;let a=(r=o?.map(i=>n.find(l=>l.id===i)).filter(Boolean))!=null?r:[];return lc(t,a,e,"right")},nt(e.options,Nn,"getRightHeaderGroups")),e.getFooterGroups=tt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),nt(e.options,Nn,"getFooterGroups")),e.getLeftFooterGroups=tt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),nt(e.options,Nn,"getLeftFooterGroups")),e.getCenterFooterGroups=tt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),nt(e.options,Nn,"getCenterFooterGroups")),e.getRightFooterGroups=tt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),nt(e.options,Nn,"getRightFooterGroups")),e.getFlatHeaders=tt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),nt(e.options,Nn,"getFlatHeaders")),e.getLeftFlatHeaders=tt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),nt(e.options,Nn,"getLeftFlatHeaders")),e.getCenterFlatHeaders=tt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),nt(e.options,Nn,"getCenterFlatHeaders")),e.getRightFlatHeaders=tt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),nt(e.options,Nn,"getRightFlatHeaders")),e.getCenterLeafHeaders=tt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),nt(e.options,Nn,"getCenterLeafHeaders")),e.getLeftLeafHeaders=tt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),nt(e.options,Nn,"getLeftLeafHeaders")),e.getRightLeafHeaders=tt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),nt(e.options,Nn,"getRightLeafHeaders")),e.getLeafHeaders=tt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,a,i,l,s,d;return[...(r=(a=t[0])==null?void 0:a.headers)!=null?r:[],...(i=(l=n[0])==null?void 0:l.headers)!=null?i:[],...(s=(d=o[0])
Line truncated
|
||||
To pick up a draggable item, press the space bar.
|
||||
While dragging, use the arrow keys to move the item.
|
||||
Press space again to drop the item in its new position, or press escape to cancel.
|
||||
`},X0={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Q0(e){let{announcements:t=X0,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=K0}=e,{announce:a,announcement:i}=kv(),l=ga("DndLiveRegion"),[s,d]=(0,ie.useState)(!1);if((0,ie.useEffect)(()=>{d(!0)},[]),q0((0,ie.useMemo)(()=>({onDragStart(g){let{active:m}=g;a(t.onDragStart({active:m}))},onDragMove(g){let{active:m,over:c}=g;t.onDragMove&&a(t.onDragMove({active:m,over:c}))},onDragOver(g){let{active:m,over:c}=g;a(t.onDragOver({active:m,over:c}))},onDragEnd(g){let{active:m,over:c}=g;a(t.onDragEnd({active:m,over:c}))},onDragCancel(g){let{active:m,over:c}=g;a(t.onDragCancel({active:m,over:c}))}}),[a,t])),!s)return null;let p=ie.default.createElement(ie.default.Fragment,null,ie.default.createElement(wv,{id:o,value:r.draggable}),ie.default.createElement(Cv,{id:l,announcement:i}));return n?(0,va.createPortal)(p,n):p}var nn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(nn||(nn={}));function qu(){}function Mm(e,t){return(0,ie.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Iv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ie.useMemo)(()=>[...t].filter(o=>o!=null),[...t])}var No=Object.freeze({x:0,y:0});function Z0(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function J0(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function ek(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Ov(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Sv(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var Tm=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e,r=Sv(t,t.left,t.top),a=[];for(let i of o){let{id:l}=i,s=n.get(l);if(s){let d=Z0(Sv(s),r);a.push({id:l,data:{droppableContainer:i,value:d}})}}return a.sort(J0)};function tk(e,t){let n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=r-o,l=a-n;if(o<r&&n<a){let s=t.width*t.height,d=e.width*e.height,p=i*l,g=p/(s+d-p);return Number(g.toFixed(4))}return 0}var nk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e,r=[];for(let a of o){let{id:i}=a,l=n.get(i);if(l){let s=tk(l,t);s>0&&r.push({id:i,data:{droppableContainer:a,value:s}})}}return r.sort(ek)};function ok(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function $v(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:No}function rk(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return r.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...n})}}var ak=rk(1);function ik(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function lk(e,t,n){let o=ik(t);if(!o)return e;let{scaleX:r,scaleY:a,x:i,y:l}=o,s=e.left-i-(1-r)*parseFloat(n),d=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),p=r?e.width/r:e.width,g=a?e.height/a:e.height;return{width:p,height:g,top:d,right:s+p,bottom:d+g,left:s}}var sk={ignoreTransform:!1};function wa(e,t){t===void 0&&(t=sk);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:d,transformOrigin:p}=Mn(e).getComputedStyle(e);d&&(n=lk(n,d,p))}let{top:o,left:r,width:a,height:i,bottom:l,right:s}=n;return{top:o,left:r,width:a,height:i,bottom:l,right:s}}function Nv(e){return wa(e,{ignoreTransform:!0})}function uk(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ck(e,t){return t===void 0&&(t=Mn(e).getComputedStyle(e)),t.position==="fixed"}function dk(e,t){t===void 0&&(t=Mn(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{let a=t[r];return typeof a=="string"?n.test(a):!1})}function Xu(e,t){let n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(Hu(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!vi(r)||km(r)||n.includes(r))return n;let a=Mn(e).getComputedStyle(r);return r!==e&&dk(r,a)&&n.push(r),ck(r,a)?n:o(r.parentNode)}retu
Line truncated
|
||||
`)?'"'+Dt.replace(/"/g,'""')+'"':Dt},F=["Nome",...C.map(Pt=>Pt.name)],y=sn.map(Pt=>[Pt._title,...C.map(Ro=>{let Yt=Pt[Ro.id];return Array.isArray(Yt)?Yt.join(";"):Yt})].map(P).join(",")),$=[F.join(","),...y].join(`
|
||||
`),Q=new Blob([$],{type:"text/csv;charset=utf-8;"}),we=URL.createObjectURL(Q),Xe=createEl("a");Xe.href=we,Xe.download=(e?.parent?.name||r.vault.getName()||"database")+".csv",Xe.click(),URL.revokeObjectURL(we),ve(!1)},[qe,U.hiddenColumns,sn,e,r]),Li=(0,se.useCallback)(async C=>{let P=C.target.files?.[0];if(!P||!e)return;let y=(await P.text()).split(/\r?\n/).filter(Dt=>Dt.trim()!=="");if(y.length<2)return;let $=Dt=>{let Ro=[],Yt="",Oo=!1;for(let $o=0;$o<Dt.length;$o++){let Pa=Dt[$o];Pa==='"'?Oo&&Dt[$o+1]==='"'?(Yt+='"',$o++):Oo=!Oo:Pa===","&&!Oo?(Ro.push(Yt),Yt=""):Yt+=Pa}return Ro.push(Yt),Ro},Q=$(y[0]).map(Dt=>Dt.trim().toLowerCase()),we=new Map,Xe=new Set;Q.forEach((Dt,Ro)=>{if(Dt==="nome"||Dt==="title"||Dt==="name")return;let Yt=S.schema.find(Oo=>Oo.name.toLowerCase()===Dt);Yt&&!Xe.has(Yt.id)&&(we.set(Ro,{id:Yt.id,type:Yt.type}),Xe.add(Yt.id))});let Pt=Q.findIndex(Dt=>Dt==="nome"||Dt==="title"||Dt==="name");for(let Dt of y.slice(1)){let Ro=$(Dt),Yt=Pt>=0?Ro[Pt]?.trim():"";if(Yt&&_.some($o=>$o._title===Yt))continue;let Oo=await t.createNote(e);Yt&&await t.renameNote(Oo,Yt);for(let[$o,Pa]of we){let Mc=Ro[$o]?.trim()??"";if(!Mc)continue;let ly=Pa.type==="multiselect"?Mc.split(";").map(sy=>sy.trim()):Mc;await t.updateNoteField(Oo,Pa.id,ly)}}C.target.value="",ve(!1)},[e,S.schema,t,r]);(0,se.useEffect)(()=>{if(!St)return;let C=P=>{xe.current?.contains(P.target)||Se.current&&!Se.current.contains(P.target)&&L(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[St]),(0,se.useEffect)(()=>{if(!ue)return;let C=P=>{be.current&&!be.current.contains(P.target)&&Ve(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[ue]),(0,se.useEffect)(()=>{if(!I){ln(null);return}let C=Pe.current[I];if(!C)return;let P=C.getBoundingClientRect();ln({top:P.bottom+6,left:P.left})},[I]),(0,se.useEffect)(()=>{if(!I)return;let C=P=>{let F=Pe.current[I],y=Te.current,$=F&&F.contains(P.target),Q=y&&y.contains(P.target);!$&&!Q&&te(null)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[I]),(0,se.useEffect)(()=>{if(!ct)return;let C=P=>{let F=Zt.current[ct];F&&!F.contains(P.target)&&qt(null)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[ct]);let Ur=GS,Wr=(0,se.useCallback)(async C=>{let P=C.map(F=>({id:F.id,columnId:F.columnId,operator:F.operator,value:F.value,conjunction:F.conjunction}));await Ee({...U,activePills:P})},[Ee,U]),kc=C=>{let{active:P,over:F}=C;if(!F||P.id===F.id)return;let y=b.findIndex(we=>we.id===P.id),$=b.findIndex(we=>we.id===F.id),Q=ki(b,y,$);f(Q),Wr(Q)},Fa=(C,P,F,y)=>{let $=crypto.randomUUID(),Q=[...b,{id:$,columnId:C,columnName:P,columnType:y,icon:F,operator:ZS(y),value:"",conjunction:"and"}];f(Q),Wr(Q),L(!1)},Ma=C=>{let P=b.filter(F=>F.id!==C);f(P),Wr(P),I===C&&te(null),ct===C&&qt(null)},Sc=async C=>{await Ee({...U,rowHeight:C}),Fe(!1)},Jl=async()=>{await Ee({...U,wrapText:!U.wrapText})},es=async()=>{await Ee({...U,includeSubfolders:!U.includeSubfolders})},Nc=async(C,P)=>{let F={...U.aggregations??{},[C]:P};await Ee({...U,aggregations:F}),Y(null)},xc=(C,P)=>{if(P==="none")return"";let F=sn.map(we=>C==="_title"?we._title:we[C]),y=sn.length;if(P==="count")return`${y} ${y===1?u("row_singular").toLowerCase():u("row_plural").toLowerCase()}`;let $=F.filter(we=>we!=null&&String(we).trim()!=="");if(P==="count_values")return`${$.length} preenchido${$.length!==1?"s":""}`;let Q=$.map(we=>parseFloat(String(we))).filter(we=>!isNaN(we));return Q.length===0?"\u2014":P==="sum"?String(Math.round(Q.reduce((we,Xe)=>we+Xe,0)*1e10)/1e10):P==="avg"?String(Math.round(Q.reduce((we,Xe)=>we+Xe,0)/Q.length*1e10)/1e10):P==="min"?String(Math.min(...Q)):P==="max"?String(Math.max(...Q)):""},ts={none:u("agg_none"),count:"",count_values:"",sum:u("agg_sum"),avg:u("agg_avg"),min:u("agg_min"),max:u("agg_max")},Gr=(C,P,F)=>{let y=b.map($=>$.id===C?{...$,operator:P,value:F}:$);f(y),Wr(y)},ns=C=>{let P=b.map(F=>F.id===C?{...F,conjunction:F.conjunction==="and"?"or":"and"}:F);f(P),Wr(P)},go=b.length>=3||b.some(C=>C.columnName.length>10);(0,se.useEffect)(()=>{go||(N(!1),J.current&&window.clearTimeout(J.current))},[go]),(0,se.useEffect)(()=>()=>{J.current&&window.clearTimeout(J.current)},[]);let os=()=>{J.current&&(window.clearTimeout(J.current),J.current=null)},Ai=()=>{os(),J.current=window.setTimeout(()=>N(!1),6e3)},Rc=()=>{N(!0),Ai(),window.requestAnimationFrame(()=>Z.current?.focus())},rs=()=>{os(),N(!1)},Ii=(0,se.useCallback)(async C=>{if(n){let P=U.hiddenColumns.includes(C)?U.hiddenColumns.filter(F=>F!==C):[...U.hiddenColumns,C];await Ee({...U,hiddenColumns:P})}else{let P=S.schema.map(F=>F.id===C?{...F,visible:!F.visible}:F);await yt(P)}},[n,U,Ee,S.schema,yt]),Ec=(0,se.useCallback)(async C=>{let{active:P,over:F}=C;if(!F||P.id===F.id)return;let y=qe.findIndex(Q=>Q.id===P.id),$=qe.findIndex(Q=>Q.id===F.id);if(!(y===-1
Line truncated
|
||||
`},Wk={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function qk(e){let{announcements:t=Wk,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=Uk}=e,{announce:a,announcement:i}=db(),l=Ea("DndLiveRegion"),[s,d]=(0,ae.useState)(!1);if((0,ae.useEffect)(()=>{d(!0)},[]),Hk((0,ae.useMemo)(()=>({onDragStart(h){let{active:p}=h;a(t.onDragStart({active:p}))},onDragMove(h){let{active:p,over:c}=h;t.onDragMove&&a(t.onDragMove({active:p,over:c}))},onDragOver(h){let{active:p,over:c}=h;a(t.onDragOver({active:p,over:c}))},onDragEnd(h){let{active:p,over:c}=h;a(t.onDragEnd({active:p,over:c}))},onDragCancel(h){let{active:p,over:c}=h;a(t.onDragCancel({active:p,over:c}))}}),[a,t])),!s)return null;let m=ae.default.createElement(ae.default.Fragment,null,ae.default.createElement(ub,{id:o,value:r.draggable}),ae.default.createElement(cb,{id:l,announcement:i}));return n?(0,Ta.createPortal)(m,n):m}var sn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(sn||(sn={}));function hc(){}function sf(e,t){return(0,ae.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Sb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ae.useMemo)(()=>[...t].filter(o=>o!=null),[...t])}var Lo=Object.freeze({x:0,y:0});function Gk(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yk(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Kk(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Nb(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function mb(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var uf=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e,r=mb(t,t.left,t.top),a=[];for(let i of o){let{id:l}=i,s=n.get(l);if(s){let d=Gk(mb(s),r);a.push({id:l,data:{droppableContainer:i,value:d}})}}return a.sort(Yk)};function Xk(e,t){let n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=r-o,l=a-n;if(o<r&&n<a){let s=t.width*t.height,d=e.width*e.height,m=i*l,h=m/(s+d-m);return Number(h.toFixed(4))}return 0}var Qk=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e,r=[];for(let a of o){let{id:i}=a,l=n.get(i);if(l){let s=Xk(l,t);s>0&&r.push({id:i,data:{droppableContainer:a,value:s}})}}return r.sort(Kk)};function Zk(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function xb(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Lo}function Jk(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return r.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...n})}}var eS=Jk(1);function tS(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function nS(e,t,n){let o=tS(t);if(!o)return e;let{scaleX:r,scaleY:a,x:i,y:l}=o,s=e.left-i-(1-r)*parseFloat(n),d=e.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),m=r?e.width/r:e.width,h=a?e.height/a:e.height;return{width:m,height:h,top:d,right:s+m,bottom:d+h,left:s}}var oS={ignoreTransform:!1};function La(e,t){t===void 0&&(t=oS);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:d,transformOrigin:m}=Ln(e).getComputedStyle(e);d&&(n=nS(n,d,m))}let{top:o,left:r,width:a,height:i,bottom:l,right:s}=n;return{top:o,left:r,width:a,height:i,bottom:l,right:s}}function pb(e){return La(e,{ignoreTransform:!0})}function rS(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function aS(e,t){return t===void 0&&(t=Ln(e).getComputedStyle(e)),t.position==="fixed"}function iS(e,t){t===void 0&&(t=Ln(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{let a=t[r];return typeof a=="string"?n.test(a):!1})}function yc(e,t){let n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(mc(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Di(r)||Jp(r)||n.includes(r))return n;let a=Ln(e).getComputedStyle(r);return r!==e&&iS(r,a)&&n.push(r),aS(r,a)?n:o(r.parentNode)}retu
Line truncated
|
||||
`)?'"'+Et.replace(/"/g,'""')+'"':Et},N=["Nome",...f.map(Wt=>Wt.name)],L=ao.map(Wt=>[Wt._title,...f.map(Bo=>{let Jt=Wt[Bo.id];return Array.isArray(Jt)?Jt.join(";"):Jt})].map(x).join(",")),X=[N.join(","),...L].join(`
|
||||
`),Ge=new Blob([X],{type:"text/csv;charset=utf-8;"}),Je=URL.createObjectURL(Ge),rn=createEl("a");rn.href=Je,rn.download=(e?.parent?.name||r.vault.getName()||"database")+".csv",rn.click(),URL.revokeObjectURL(Je),Te(!1)},[vt,K.hiddenColumns,ao,e,r]),_s=(0,ie.useCallback)(async f=>{let x=f.target.files?.[0];if(!x||!e)return;let L=(await x.text()).split(/\r?\n/).filter(Et=>Et.trim()!=="");if(L.length<2)return;let X=Et=>{let Bo=[],Jt="",er=!1;for(let tr=0;tr<Et.length;tr++){let ja=Et[tr];ja==='"'?er&&Et[tr+1]==='"'?(Jt+='"',tr++):er=!er:ja===","&&!er?(Bo.push(Jt),Jt=""):Jt+=ja}return Bo.push(Jt),Bo},Ge=X(L[0]).map(Et=>Et.trim().toLowerCase()),Je=new Map,rn=new Set;Ge.forEach((Et,Bo)=>{if(Et==="nome"||Et==="title"||Et==="name")return;let Jt=E.schema.find(er=>er.name.toLowerCase()===Et);Jt&&!rn.has(Jt.id)&&(Je.set(Bo,{id:Jt.id,type:Jt.type}),rn.add(Jt.id))});let Wt=Ge.findIndex(Et=>Et==="nome"||Et==="title"||Et==="name");for(let Et of L.slice(1)){let Bo=X(Et),Jt=Wt>=0?Bo[Wt]?.trim():"";if(Jt&&y.some(tr=>tr._title===Jt))continue;let er=await t.createNote(e);Jt&&await t.renameNote(er,Jt);for(let[tr,ja]of Je){let rd=Bo[tr]?.trim()??"";if(!rd)continue;let qy=ja.type==="multiselect"?rd.split(";").map(Gy=>Gy.trim()):rd;await t.updateNoteField(er,ja.id,qy)}}f.target.value="",Te(!1)},[e,E.schema,t,r]);(0,ie.useEffect)(()=>{if(!B)return;let f=x=>{It.current?.contains(x.target)||Oe.current&&!Oe.current.contains(x.target)&&ee(!1)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[B]),(0,ie.useEffect)(()=>{if(!ue)return;let f=x=>{Re.current&&!Re.current.contains(x.target)&&ye(!1)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[ue]),(0,ie.useEffect)(()=>{if(!ot)return;let f=x=>{kt.current&&!kt.current.contains(x.target)&&Lt(!1)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[ot]),(0,ie.useEffect)(()=>{if(!Se){Kn(null);return}let f=At.current[Se];if(!f)return;let x=f.getBoundingClientRect();Kn({top:x.bottom+6,left:x.left})},[Se]),(0,ie.useEffect)(()=>{if(!Se)return;let f=x=>{let N=At.current[Se],L=fn.current,X=N&&N.contains(x.target),Ge=L&&L.contains(x.target);!X&&!Ge&&Tt(null)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[Se]),(0,ie.useEffect)(()=>{if(!F)return;let f=x=>{let N=k.current[F];N&&!N.contains(x.target)&&Pe(null)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[F]);let Yc=(0,ie.useCallback)(async f=>{let x=f.map(N=>({id:N.id,columnId:N.columnId,operator:N.operator,value:N.value,conjunction:N.conjunction}));await it({...K,activePills:x})},[it,K]),yr=Wn(Yc,400),Kc=f=>{let{active:x,over:N}=f;if(!N||x.id===N.id)return;let L=g.findIndex(Je=>Je.id===x.id),X=g.findIndex(Je=>Je.id===N.id),Ge=Li(g,L,X);v(Ge),yr(Ge)},ra=(f,x,N,L)=>{let X=crypto.randomUUID(),Ge=[...g,{id:X,columnId:f,columnName:x,columnType:L,icon:N,operator:B1(L),value:"",conjunction:"and"}];v(Ge),yr(Ge),ee(!1)},Xi=f=>{let x=g.filter(N=>N.id!==f);v(x),yr(x),Se===f&&Tt(null),F===f&&Pe(null)},Xc=async f=>{await it({...K,rowHeight:f}),at(!1)},Qc=async()=>{await it({...K,wrapText:!K.wrapText})},Qi=async()=>{await it({...K,includeSubfolders:!K.includeSubfolders})},Zc=async(f,x)=>{let N={...K.aggregations??{},[f]:x};await it({...K,aggregations:N}),le(null)},Jc=(f,x)=>{if(x==="none")return"";let N=ao.map(Je=>f==="_title"?Je._title:Je[f]),L=ao.length;if(x==="count")return`${L} ${L===1?u("row_singular").toLowerCase():u("row_plural").toLowerCase()}`;let X=N.filter(Je=>Je!=null&&String(Je).trim()!=="");if(x==="count_values")return`${X.length} preenchido${X.length!==1?"s":""}`;let Ge=X.map(Je=>parseFloat(String(Je))).filter(Je=>!isNaN(Je));return Ge.length===0?"\u2014":x==="sum"?String(Math.round(Ge.reduce((Je,rn)=>Je+rn,0)*1e10)/1e10):x==="avg"?String(Math.round(Ge.reduce((Je,rn)=>Je+rn,0)/Ge.length*1e10)/1e10):x==="min"?String(Math.min(...Ge)):x==="max"?String(Math.max(...Ge)):""},hs={none:u("agg_none"),count:"",count_values:"",sum:u("agg_sum"),avg:u("agg_avg"),min:u("agg_min"),max:u("agg_max")},aa=(f,x,N)=>{let L=g.map(X=>X.id===f?{...X,operator:x,value:N}:X);v(L),yr(L)},Zi=f=>{let x=g.map(N=>N.id===f?{...N,conjunction:N.conjunction==="and"?"or":"and"}:N);v(x),yr(x)},Vo=g.length>=3||g.some(f=>f.columnName.length>10);(0,ie.useEffect)(()=>{Vo||(U(!1),se.current&&window.clearTimeout(se.current))},[Vo]),(0,ie.useEffect)(()=>()=>{se.current&&window.clearTimeout(se.current)},[]);let vs=()=>{se.current&&(window.clearTimeout(se.current),se.current=null)},Ji=()=>{vs(),se.current=window.setTimeout(()=>U(!1),6e3)},ed=()=>{U(!0),Ji(),window.requestAnimationFrame(()=>ce.current?.focus())},bs=()=>{vs(),U(!1)},ys=(0,ie.useCallback)(async f=>{if(n){let x=K.hiddenColumns.includes(f)?K.hiddenColumns.filter(N=>N!==f):[...K.hiddenColumns,f];await it({...K,hiddenColumns:x})}else{l
Line truncated
|
||||
`,r-1)+1,l=o.indexOf(`
|
||||
`,r+n.fullMatch.length);l===-1?l=o.length:l+=1,a=o.slice(0,i)+o.slice(l)}else a=o.slice(0,r)+o.slice(r+n.fullMatch.length);await this.app.vault.modify(t,a)}serializeInlineValue(t){return t==null?"":Array.isArray(t)?t.join(", "):typeof t=="string"?t:typeof t=="number"||typeof t=="boolean"?String(t):JSON.stringify(t)}async syncTwoWayRelation(t,n,o,r){if(!n.pairedColumnId||!n.refDatabasePath)return;let a=this.app.vault.getFileByPath(n.refDatabasePath);if(!a)return;let i=this.getNotesInDatabase(a),l=t.basename,s=r.filter(p=>!o.includes(p)),d=o.filter(p=>!r.includes(p));for(let p of i){let m=this.app.metadataCache.getFileCache(p)?.frontmatter??{},c=n.refColumnId==="_title"?p.basename:String(m[n.refColumnId]??"");s.includes(c)&&await this.app.fileManager.processFrontMatter(p,h=>{let v=Array.isArray(h[n.pairedColumnId])?h[n.pairedColumnId]:h[n.pairedColumnId]?[String(h[n.pairedColumnId])]:[];v.includes(l)||(h[n.pairedColumnId]=[...v,l])}),d.includes(c)&&await this.app.fileManager.processFrontMatter(p,h=>{let b=(Array.isArray(h[n.pairedColumnId])?h[n.pairedColumnId]:h[n.pairedColumnId]?[String(h[n.pairedColumnId])]:[]).filter(f=>f!==l);b.length>0?h[n.pairedColumnId]=b:delete h[n.pairedColumnId]})}}async renameNote(t,n){if(!n.trim()||n===t.basename)return;let o=(0,mn.normalizePath)(`${t.parent?.path??""}/${n.trim()}.md`);await this.app.fileManager.renameFile(t,o)}async createNote(t,n,o){let r=t.parent?.path??"",a=(0,mn.normalizePath)(`${r}/${u("db_untitled_note")}`),i=`${a}.md`,l=1;for(;this.app.vault.getFileByPath(i);)i=`${a} ${l++}.md`;let s=await this.app.vault.create(i,`---
|
||||
`,r+n.fullMatch.length);l===-1?l=o.length:l+=1,a=o.slice(0,i)+o.slice(l)}else a=o.slice(0,r)+o.slice(r+n.fullMatch.length);await this.app.vault.modify(t,a)}serializeInlineValue(t){return t==null?"":Array.isArray(t)?t.join(", "):typeof t=="string"?t:typeof t=="number"||typeof t=="boolean"?String(t):JSON.stringify(t)}async syncTwoWayRelation(t,n,o,r){if(!n.pairedColumnId||!n.refDatabasePath)return;let a=this.app.vault.getFileByPath(n.refDatabasePath);if(!a)return;let i=this.getNotesInDatabase(a),l=t.basename,s=r.filter(m=>!o.includes(m)),d=o.filter(m=>!r.includes(m));for(let m of i){let p=this.app.metadataCache.getFileCache(m)?.frontmatter??{},c=n.refColumnId==="_title"?m.basename:String(p[n.refColumnId]??"");s.includes(c)&&await this.app.fileManager.processFrontMatter(m,_=>{let b=Array.isArray(_[n.pairedColumnId])?_[n.pairedColumnId]:_[n.pairedColumnId]?[String(_[n.pairedColumnId])]:[];b.includes(l)||(_[n.pairedColumnId]=[...b,l])}),d.includes(c)&&await this.app.fileManager.processFrontMatter(m,_=>{let w=(Array.isArray(_[n.pairedColumnId])?_[n.pairedColumnId]:_[n.pairedColumnId]?[String(_[n.pairedColumnId])]:[]).filter(g=>g!==l);w.length>0?_[n.pairedColumnId]=w:delete _[n.pairedColumnId]})}}async renameNote(t,n){let o=n.trim();if(!o||o===t.basename)return;let r=t.parent?.path??"",a=o,i=(0,on.normalizePath)(`${r}/${a}.md`),l=2;for(;this.app.vault.getAbstractFileByPath(i)&&i!==t.path;)a=`${o} ${l++}`,i=(0,on.normalizePath)(`${r}/${a}.md`);a!==o&&new on.Notice(u("renamed_with_suffix").replace("$name",o).replace("$final",a),5e3),await this.app.fileManager.renameFile(t,i)}async createNote(t,n,o){let r=t.parent?.path??"",a=(0,on.normalizePath)(`${r}/${u("db_untitled_note")}`),i=`${a}.md`,l=1;for(;this.app.vault.getFileByPath(i);)i=`${a} ${l++}.md`;let s=await this.app.vault.create(i,`---
|
||||
---
|
||||
`);return n&&Object.keys(n).length>0&&await this.app.fileManager.processFrontMatter(s,d=>{for(let[p,g]of Object.entries(n))d[p]=g}),o&&await this.applyTemplate(s,o),s}async createNoteWithTemplate(t,n){let o=this.readConfig(t);if(o.askTemplateOnCreate){let r=await new Promise(a=>{new ci(this.app,i=>a(i),o.templatePath?this.folderOf(o.templatePath):null,o.templateFolder??null).open()});return this.createNote(t,n,r)}return this.createNote(t,n,o.templatePath??null)}folderOf(t){let n=t.lastIndexOf("/");return n>0?t.slice(0,n):null}async applyTemplate(t,n){let o=this.app.vault.getFileByPath((0,mn.normalizePath)(n));if(!o)return;let r=await this.app.vault.read(o),a=r.match(/^---\n([\s\S]*?)\n---\n?/),i=r.replace(/^---\n[\s\S]*?\n---\n?/,""),l=window.moment,s=new Date,d=c=>l?l(s).format(c):s.toISOString().slice(0,10),p=c=>l?l(s).format(c):s.toTimeString().slice(0,5),g=c=>c.replace(/\{\{title\}\}/g,t.basename).replace(/\{\{folder\}\}/g,t.parent?.path??"").replace(/\{\{date:([^}]+)\}\}/g,(h,v)=>d(String(v))).replace(/\{\{time:([^}]+)\}\}/g,(h,v)=>p(String(v))).replace(/\{\{date\}\}/g,d("YYYY-MM-DD")).replace(/\{\{time\}\}/g,p("HH:mm")),m=c=>{if(typeof c=="string")return g(c);if(Array.isArray(c))return c.map(m);if(c&&typeof c=="object"){let h={};for(let[v,b]of Object.entries(c))h[v]=m(b);return h}return c};if(a){let c={};try{let h=(0,mn.parseYaml)(a[1]);h&&typeof h=="object"&&!Array.isArray(h)&&(c=m(h))}catch{c={}}Object.keys(c).length>0&&await this.app.fileManager.processFrontMatter(t,h=>{for(let[v,b]of Object.entries(c)){let f=h[v];(f==null||f==="")&&(h[v]=b)}})}if(i.trim()){let c=await this.app.vault.read(t);await this.app.vault.modify(t,c+g(i))}}findGoverningDatabase(t){let n=t.parent;for(;n;){let o=this.getDatabaseFileInFolder(n.path);if(o&&o.path!==t.path)return o;n=n.parent}return null}computeArrangedPath(t,n,o){let r=o.folderArrangement;if(!r||!r.enabled||r.propertyIds.length===0||t.path===n.path)return null;let a=this.app.metadataCache.getFileCache(t)?.frontmatter,i=da(a)?a:void 0,l=[];for(let g of r.propertyIds){let m=i?.[g];if(m==null||m==="")break;let c=Array.isArray(m)?m[0]:m;if(c==null||c==="")break;let h;if(typeof c=="string")h=c;else if(typeof c=="number"||typeof c=="boolean"||typeof c=="bigint")h=String(c);else continue;let v=ON(h);if(!v)break;l.push(v)}let d=[n.parent?.path??"",...l].filter(Boolean).join("/"),p=(0,mn.normalizePath)(`${d?`${d}/`:""}${t.basename}.md`);return p===t.path?null:p}isArrangementInProgress(t){return this.folderArrangementInProgress.has(t)}async applyArrangement(t,n,o){let r=this.computeArrangedPath(t,n,o);if(!r||this.folderArrangementInProgress.has(t.path))return!1;let a=r.slice(0,r.lastIndexOf("/"));if(a&&await this.ensureFolder(a),this.app.vault.getFileByPath(r))return!1;this.folderArrangementInProgress.add(t.path),this.folderArrangementInProgress.add(r);try{await this.app.fileManager.renameFile(t,r)}finally{window.setTimeout(()=>{this.folderArrangementInProgress.delete(t.path),this.folderArrangementInProgress.delete(r)},500)}return!0}async applyArrangementToAll(t,n,o){let r=[],a=this.getNotesInDatabase(t,!0).filter(i=>!o||o.has(i.path));for(let i of a){let l=this.computeArrangedPath(i,t,n);if(!l)continue;let s=i.path;await this.applyArrangement(i,t,n)&&r.push({from:s,to:l})}return r}previewArrangement(t,n,o){return this.getNotesInDatabase(t,!0).filter(a=>!o||o.has(a.path)).map(a=>({file:a,from:a.path,to:this.computeArrangedPath(a,t,n)}))}async ensureFolder(t){let n=t.split("/").filter(Boolean),o="";for(let r of n)if(o=o?`${o}/${r}`:r,!this.app.vault.getFolderByPath(o))try{await this.app.vault.createFolder(o)}catch{}}getAllDatabases(){return this.app.vault.getMarkdownFiles().filter(t=>this.isDatabaseFile(t))}resolveLookupsForRows(t,n){let o=n.filter(a=>a.type==="lookup"&&a.refDatabasePath&&a.refColumnId&&a.refMatchColumnId);if(o.length===0)return t;let r=new Map;for(let a of o){let i=a.refDatabasePath;if(!r.has(i)){let l=this.app.vault.getFileByPath(i);if(!l){r.set(i,[]);continue}let s=this.readConfig(l),p=this.getNotesInDatabase(l).map(g=>this.getNoteDataSync(g,s.schema));r.set(i,p)}}return t.map(a=>{let i={...a};for(let l of o){let s=r.get(l.refDatabasePath)??[],d=l.refMatchColumnId==="_title"?a._title:a[l.refMatchColumnId],p=String(d??"");if(!p){i[l.id]=null;continue}let g=s.find(m=>m._title===p);i[l.id]=g?g[l.refColumnId]??null:null}return i})}resolveRollupsForRows(t,n){let o=n.filter(a=>a.type==="rollup"&&a.rollupRelationColumnId&&a.rollupTargetColumnId&&a.rollupFunction);if(o.length===0)return t;let r=new Map;for(let a of o){let i=n.find(s=>s.id===a.rollupRelationColumnId);if(!i||i.type!=="relation"||!i.refDatabasePath)continue;let l=i.refDatabasePath;if(!r.has(l)){let s=this.app.vault.getFileByPath(l);if(!s){r.set(l,[]);continue}let d=this.readConfig(s),p=this.getNotesInDatabase(s);r.set(l,p.map(g=>this.getNoteDataSync(g,d.schema)))}}return t.map(a=>{let i={...a};for(let l of o){let s=n.find(v=>v.id===l.rollupRelationColumnId);if(!s||!s.refDatabasePath){i[l.id]=null
Line truncated
|
||||
`);return this.app.vault.create(n,o)}async inferSchema(t){let n=new Map;for(let o of t){let a=this.app.metadataCache.getFileCache(o)?.frontmatter;if(a)for(let[i,l]of Object.entries(a))i==="position"||i.startsWith("notion-bases")||(n.has(i)||n.set(i,[]),l!=null&&n.get(i).push(l))}if(this.readInlineFields)for(let o of t){let r=await this.app.vault.cachedRead(o),a=nf(r);for(let i of a)n.has(i.key)||n.set(i.key,[]),i.value!==null&&i.value!==void 0&&n.get(i.key).push(i.value)}return Array.from(n.entries()).map(([o,r])=>{let a=this.inferType(o,r),i=a==="select"||a==="multiselect"||a==="status"?this.extractOptions(r,a):void 0;return{id:o,name:this.toDisplayName(o),type:a,visible:!0,width:a==="title"||a==="text"?200:140,options:i}})}inferType(t,n){if(t==="tags")return"multiselect";if(["date","created","modified","due"].includes(t)||t.endsWith("_date")||t.endsWith("_at")||t.endsWith("At"))return"date";if(["status","priority","type","category","stage"].includes(t))return"select";if(["done","completed","archived","published","pinned"].includes(t))return"checkbox";if(["audio","sound","music","recording"].includes(t)||t.endsWith("_audio")||t.endsWith("_sound"))return"audio";if(["video","clip","movie"].includes(t)||t.endsWith("_video")||t.endsWith("_clip"))return"video";let o=n.filter(l=>l!=null);if(o.length===0)return"text";if(o.every(l=>typeof l=="boolean"))return"checkbox";if(o.every(l=>typeof l=="number"))return"number";if(o.every(l=>Array.isArray(l)))return"multiselect";let r=o.map(l=>typeof l=="object"&&l!==null?JSON.stringify(l):typeof l=="string"?l:typeof l=="number"||typeof l=="boolean"?String(l):"");if(r.some(l=>l.length>40||/\s/.test(l)&&/[.!?,;:]/.test(l)))return"text";let i=new Set(r);return i.size<=8&&i.size<o.length?"select":"text"}extractOptions(t,n){let o=new Set;for(let r of t)if(n==="multiselect"&&Array.isArray(r))for(let a of r)o.add(String(a));else r!=null&&o.add(mt(r));return Array.from(o).map(r=>({value:r}))}toDisplayName(t){return t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,n=>n.toUpperCase())}async renameColumn(t,n,o,r){let a=this.uniqueSlug(r,n.schema,o);if(a!==o){let d=this.getNotesInDatabase(t);for(let p of d){let g=this.app.metadataCache.getFileCache(p);g?.frontmatter&&o in g.frontmatter&&await this.app.fileManager.processFrontMatter(p,m=>{m[a]=m[o],delete m[o]})}}let l=n.schema.map(d=>d.id===o?{...d,id:a,name:r}:d),s={...n,schema:l};return await this.writeConfig(t,s),s}slugify(t){return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").replace(/_+/g,"_")||"campo"}uniqueSlug(t,n,o){let r=this.slugify(t),a=new Set(n.filter(l=>l.id!==o).map(l=>l.id));if(!a.has(r))return r;let i=2;for(;a.has(`${r}_${i}`);)i++;return`${r}_${i}`}};var Br=require("obsidian");var Jb={databaseFileName:"_database.md",defaultRowHeight:36,embedViews:{},readInlineFields:!1,pageSize:0,clipEllipsis:!0},fc=class extends Br.PluginSettingTab{constructor(t,n){super(t,n),this.plugin=n}display(){let{containerEl:t}=this;t.empty(),new Br.Setting(t).setName(u("settings_db_filename_name")).setDesc(u("settings_db_filename_desc")).addText(n=>n.setPlaceholder("_database.md").setValue(this.plugin.settings.databaseFileName).onChange(async o=>{this.plugin.settings.databaseFileName=o||"_database.md",await this.plugin.saveSettings()})),new Br.Setting(t).setName(u("settings_inline_fields_name")).setDesc(u("settings_inline_fields_desc")).addToggle(n=>n.setValue(this.plugin.settings.readInlineFields).onChange(async o=>{this.plugin.settings.readInlineFields=o,this.plugin.manager.readInlineFields=o,await this.plugin.saveSettings()})),new Br.Setting(t).setName(u("settings_clip_ellipsis_name")).setDesc(u("settings_clip_ellipsis_desc")).addToggle(n=>n.setValue(this.plugin.settings.clipEllipsis).onChange(async o=>{this.plugin.settings.clipEllipsis=o,Si.clipEllipsis=o,await this.plugin.saveSettings()})),new Br.Setting(t).setName(u("settings_row_height_name")).setDesc(u("settings_row_height_desc")).addSlider(n=>n.setLimits(28,80,4).setValue(this.plugin.settings.defaultRowHeight).onChange(async o=>{this.plugin.settings.defaultRowHeight=o,await this.plugin.saveSettings()})),new Br.Setting(t).setName(u("settings_page_size_name")).setDesc(u("settings_page_size_desc")).addDropdown(n=>n.addOptions({0:u("settings_page_size_all"),50:"50",100:"100",200:"200"}).setValue(String(this.plugin.settings.pageSize)).onChange(async o=>{this.plugin.settings.pageSize=Number(o),this.plugin.manager.pageSize=Number(o),await this.plugin.saveSettings()}))}};var ey=require("obsidian");var Wl=class extends ey.FuzzySuggestModal{constructor(t,n,o){super(t),this.onChoose=o,this.setPlaceholder(u("picker_placeholder")),this.entries=n.map(r=>{let a=!r.parent?.path||r.parent.path==="/";return{file:r,label:a?u("picker_root"):r.parent?.name??"/",sublabel:a?"":r.parent?.path??"/"}})}getItems(){return this.entries}getItemText(t){return`${t.label} ${t.sublabel}`}renderSuggestion(t,n){n.createDiv({text:t
Line truncated
|
||||
`)){let a=r.match(/^path:\s*(.+)$/);a&&(t=a[1].trim());let i=r.match(/^id:\s*(.+)$/);i&&(n=i[1].trim());let l=r.match(/^type:\s*(.+)$/);if(l){let s=l[1].trim();zN.includes(s)&&(o=s)}}return{folderPath:t,embedId:n,forcedType:o}}var rf=class extends ty.MarkdownRenderChild{constructor(n,o,r,a,i,l){super(n);this.plugin=o;this.folderPath=r;this.embedId=a;this.sourcePath=i;this.forcedType=l;this.root=null}onload(){let n=this.plugin.manager,o=n.getDatabaseFileInFolder(this.folderPath);if(!o){this.containerEl.createDiv({text:`Database not found: "${this.folderPath||"/"}"`,cls:"nb-embed-error"});return}let r=this.plugin.app.vault.getFileByPath(this.sourcePath),a=r?this.plugin.app.metadataCache.getFileCache(r)?.frontmatter:void 0,i=da(a)?a[Ra]:void 0,l=da(i)?i[this.embedId]:void 0,s;if(this.forcedType){let d=l&&typeof l=="object"&&!("activeViewId"in l)?l:void 0,p=this.plugin.app.metadataCache.getFileCache(o)?.frontmatter,g=da(p)?p.views:void 0,m=Array.isArray(g)?g:void 0,c=m?.find(b=>b?.type===this.forcedType)??m?.[0],h;d?h={...d,id:this.embedId,type:this.forcedType}:h=c?{...c,id:this.embedId,type:this.forcedType}:{...Qn,id:this.embedId,type:this.forcedType},s={dbFile:o,manager:n,externalView:h,onViewChange:async b=>{let f=this.plugin.app.vault.getFileByPath(this.sourcePath);f&&await this.plugin.app.fileManager.processFrontMatter(f,_=>{_[Ra]||(_[Ra]={}),_[Ra][this.embedId]=b})}}}else{let d=l&&typeof l=="object"&&"activeViewId"in l&&Array.isArray(l.views)?l:void 0;s={dbFile:o,manager:n,embedState:d,onEmbedStateChange:async g=>{let m=this.plugin.app.vault.getFileByPath(this.sourcePath);m&&await this.plugin.app.fileManager.processFrontMatter(m,c=>{c[Ra]||(c[Ra]={}),c[Ra][this.embedId]=g})}}}this.root=(0,ny.createRoot)(this.containerEl),this.root.render((0,of.createElement)(Dl.Provider,{value:this.plugin.app},(0,of.createElement)(dc,s)))}onunload(){this.root?.unmount(),this.root=null}};function oy(e){e.registerMarkdownCodeBlockProcessor("nb-database",(t,n,o)=>{let r=VN(t),{folderPath:a,forcedType:i}=r,l=r.embedId;if(!l){l="nb"+Math.random().toString(36).slice(2,10);let s=e.app.vault.getFileByPath(o.sourcePath);s&&e.app.vault.process(s,d=>{let p="```nb-database\n"+t.trimEnd(),g=d.indexOf(p);if(g===-1)return d;let m=g+15;return d.slice(0,m)+`id: ${l}
|
||||
`+d.slice(m)}).catch(console.error)}n.addClass("nb-embed-container"),o.addChild(new rf(n,e,a,l,o.sourcePath,i))})}var ay=require("obsidian");var ry=/\{\{([a-zA-Z0-9_-]+)(?::([^}]+))?\}\}/g,BN=new Set(["CODE","PRE","SCRIPT","STYLE","KBD"]);function HN(){return window.moment??null}function jN(e,t,n){let o=HN(),r=new Date;switch(e){case"title":return n.basename;case"folder":return n.parent?.path??"";case"date":return o?o(r).format(t||"YYYY-MM-DD"):r.toISOString().slice(0,10);case"time":return o?o(r).format(t||"HH:mm"):r.toTimeString().slice(0,5);default:return null}}function UN(e,t,n,o,r){let a=jN(e,t,r);if(a!==null)return[activeDocument.createTextNode(a)];let i=n.find(s=>s.id===e),l=o[e];return l===void 0?null:lb(l,i,t)}function WN(e,t){let n=createSpan();return n.className="nb-placeholder",n.dataset.token=e,t&&(n.dataset.format=t),n.textContent=t?`{{${e}:${t}}}`:`{{${e}}}`,n}function GN(e){let t=e.nodeValue??"";if(!t.includes("{{"))return!1;ry.lastIndex=0;let n=[],o=0,r,a=!1;for(;(r=ry.exec(t))!==null;)a=!0,r.index>o&&n.push(activeDocument.createTextNode(t.slice(o,r.index))),n.push(WN(r[1],r[2])),o=r.index+r[0].length;if(!a)return!1;o<t.length&&n.push(activeDocument.createTextNode(t.slice(o)));let i=e.parentNode;if(!i)return!1;for(let l of n)i.insertBefore(l,e);return i.removeChild(e),!0}function qN(e){let t=[],n=activeDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:a=>{let i=a.parentElement;for(;i;){if(BN.has(i.tagName)||i.classList.contains("nb-database-embed"))return NodeFilter.FILTER_REJECT;i=i.parentElement}return a.nodeValue&&a.nodeValue.includes("{{")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),o=n.nextNode();for(;o;)t.push(o),o=n.nextNode();let r=!1;for(let a of t)GN(a)&&(r=!0);return r}var af=class extends ay.MarkdownRenderChild{constructor(n,o,r,a){super(n);this.app=o;this.manager=r;this.file=a}onload(){this.render(),this.listener=n=>{n.path===this.file.path&&this.render()},this.app.metadataCache.on("changed",this.listener)}onunload(){this.listener&&this.app.metadataCache.off("changed",this.listener)}render(){let o=this.app.metadataCache.getFileCache(this.file)?.frontmatter??{},r=this.file.parent?.path??"",a=this.manager.getDatabaseFileInFolder(r),i=a?this.manager.readConfig(a).schema:[];this.containerEl.querySelectorAll("span.nb-placeholder").forEach(s=>{let d=s.dataset.token??"",p=s.dataset.format||void 0;if(!d)return;let g=UN(d,p,i,o,this.file);if(g===null){s.textContent=p?`{{${d}:${p}}}`:`{{${d}}}`;return}s.replaceChildren(...g)})}};function iy(e,t){return(n,o)=>{let r=e.vault.getFileByPath(o.sourcePath);!r||t.isDatabaseFile(r)||!qN(n)||o.addChild(new af(n,e,t,r))}}var _c=class extends Io.Plugin{constructor(){super(...arguments);this._redirecting=!1}async onload(){await this.loadSettings(),this.manager=new mc(this.app,this.settings.databaseFileName),this.manager.readInlineFields=this.settings.readInlineFields,this.manager.pageSize=this.settings.pageSize,this.registerView(Ul,n=>new Na(n,this)),this.addRibbonIcon("table","Notion bases",()=>{this.openDatabasePicker()}),this.addCommand({id:"open-database",name:u("cmd_open_database"),callback:async()=>{await this.openOrCreateDatabase()}}),this.addCommand({id:"create-database",name:u("cmd_create_database"),callback:async()=>{let o=this.app.workspace.getActiveFile()?.parent?.path??"";await this.createAndOpenDatabase(o)}}),this.addCommand({id:"quick-add",name:u("cmd_quick_add"),callback:()=>{this.openQuickAdd()}}),this.registerEvent(this.app.workspace.on("active-leaf-change",async n=>{if(!n||this._redirecting||n.view.getViewType()!=="markdown")return;let o=n.view.file??void 0;if(!o||!this.manager.isDatabaseFile(o))return;let r=this.findDatabaseLeaf(o.path);if(r&&r!==n){this.app.workspace.revealLeaf(r),n.detach();return}if(!r){this._redirecting=!0;try{await this.openDatabaseInLeaf(n,o)}finally{this._redirecting=!1}}})),this.registerEvent(this.app.workspace.on("file-menu",(n,o)=>{o instanceof Io.TFolder&&(this.manager.getDatabaseFileInFolder(o.path)||n.addItem(r=>{r.setTitle(u("ctx_create_database")).setIcon("database").onClick(async()=>{await this.createAndOpenDatabase(o.path)})}))})),this.registerEvent(this.app.metadataCache.on("changed",n=>{if(!(n instanceof Io.TFile)||n.extension!=="md"||this.manager.isDatabaseFile(n)||this.manager.isArrangementInProgress(n.path))return;let o=this.manager.findGoverningDatabase(n);if(!o)return;let r=this.manager.readConfig(o);r.folderArrangement?.enabled&&this.manager.applyArrangement(n,o,r)})),oy(this),this.registerMarkdownPostProcessor(iy(this.app,this.manager)),this.addSettingTab(new fc(this.app,this))}onunload(){}async loadSettings(){this.settings=Object.assign({},Jb,await this.loadData()),Si.clipEllipsis=this.settings.clipEllipsis}async saveSettings(){await this.saveData(this.settings)}openQuickAdd(){let n=this.manager.getAllDatabases().sort((o,r)=>(o.parent?.path??"").localeCompare(r.parent?.path??""));if(n.length===0){new Io.Notice(u("no_databases_found"));return}new Wl(this.app,n,o=>{let r
Line truncated
|
||||
`);return n&&Object.keys(n).length>0&&await this.app.fileManager.processFrontMatter(s,d=>{for(let[m,h]of Object.entries(n))d[m]=h}),o&&await this.applyTemplate(s,o),s}async createNoteWithTemplate(t,n){let o=this.readConfig(t);if(o.askTemplateOnCreate){let r=await new Promise(a=>{new yi(this.app,i=>a(i),o.templatePath?this.folderOf(o.templatePath):null,o.templateFolder??null).open()});return this.createNote(t,n,r)}return this.createNote(t,n,o.templatePath??null)}folderOf(t){let n=t.lastIndexOf("/");return n>0?t.slice(0,n):null}async applyTemplate(t,n){let o=this.app.vault.getFileByPath((0,on.normalizePath)(n));if(!o)return;let r=await this.app.vault.read(o),a=r.match(/^---\n([\s\S]*?)\n---\n?/),i=r.replace(/^---\n[\s\S]*?\n---\n?/,""),l=window.moment,s=new Date,d=c=>l?l(s).format(c):s.toISOString().slice(0,10),m=c=>l?l(s).format(c):s.toTimeString().slice(0,5),h=c=>c.replace(/\{\{title\}\}/g,t.basename).replace(/\{\{folder\}\}/g,t.parent?.path??"").replace(/\{\{date:([^}]+)\}\}/g,(_,b)=>d(String(b))).replace(/\{\{time:([^}]+)\}\}/g,(_,b)=>m(String(b))).replace(/\{\{date\}\}/g,d("YYYY-MM-DD")).replace(/\{\{time\}\}/g,m("HH:mm")),p=c=>{if(typeof c=="string")return h(c);if(Array.isArray(c))return c.map(p);if(c&&typeof c=="object"){let _={};for(let[b,w]of Object.entries(c))_[b]=p(w);return _}return c};if(a){let c={};try{let _=(0,on.parseYaml)(a[1]);_&&typeof _=="object"&&!Array.isArray(_)&&(c=p(_))}catch{c={}}Object.keys(c).length>0&&await this.app.fileManager.processFrontMatter(t,_=>{for(let[b,w]of Object.entries(c)){let g=_[b];(g==null||g==="")&&(_[b]=w)}})}if(i.trim()){let c=await this.app.vault.read(t);await this.app.vault.modify(t,c+h(i))}}findGoverningDatabase(t){let n=t.parent;for(;n;){let o=this.getDatabaseFileInFolder(n.path);if(o&&o.path!==t.path)return o;n=n.parent}return null}computeArrangedPath(t,n,o){let r=o.folderArrangement;if(!r||!r.enabled||r.propertyIds.length===0||t.path===n.path)return null;let a=this.app.metadataCache.getFileCache(t)?.frontmatter,i=Sa(a)?a:void 0,l=[];for(let h of r.propertyIds){let p=i?.[h];if(p==null||p==="")break;let c=Array.isArray(p)?p[0]:p;if(c==null||c==="")break;let _;if(typeof c=="string")_=c;else if(typeof c=="number"||typeof c=="boolean"||typeof c=="bigint")_=String(c);else continue;let b=xN(_);if(!b)break;l.push(b)}let d=[n.parent?.path??"",...l].filter(Boolean).join("/"),m=(0,on.normalizePath)(`${d?`${d}/`:""}${t.basename}.md`);return m===t.path?null:m}isArrangementInProgress(t){return this.folderArrangementInProgress.has(t)}async applyArrangement(t,n,o){let r=this.computeArrangedPath(t,n,o);if(!r||this.folderArrangementInProgress.has(t.path))return!1;let a=r.slice(0,r.lastIndexOf("/"));if(a&&await this.ensureFolder(a),this.app.vault.getFileByPath(r))return!1;this.folderArrangementInProgress.add(t.path),this.folderArrangementInProgress.add(r);try{await this.app.fileManager.renameFile(t,r)}finally{window.setTimeout(()=>{this.folderArrangementInProgress.delete(t.path),this.folderArrangementInProgress.delete(r)},500)}return!0}async applyArrangementToAll(t,n,o){let r=[],a=this.getNotesInDatabase(t,!0).filter(i=>!o||o.has(i.path));for(let i of a){let l=this.computeArrangedPath(i,t,n);if(!l)continue;let s=i.path;await this.applyArrangement(i,t,n)&&r.push({from:s,to:l})}return r}previewArrangement(t,n,o){return this.getNotesInDatabase(t,!0).filter(a=>!o||o.has(a.path)).map(a=>({file:a,from:a.path,to:this.computeArrangedPath(a,t,n)}))}async ensureFolder(t){let n=t.split("/").filter(Boolean),o="";for(let r of n)if(o=o?`${o}/${r}`:r,!this.app.vault.getFolderByPath(o))try{await this.app.vault.createFolder(o)}catch{}}getAllDatabases(){return this.app.vault.getMarkdownFiles().filter(t=>this.isDatabaseFile(t))}resolveLookupsForRows(t,n){let o=n.filter(a=>a.type==="lookup"&&a.refDatabasePath&&a.refColumnId&&a.refMatchColumnId);if(o.length===0)return t;let r=new Map;for(let a of o){let i=a.refDatabasePath;if(!r.has(i)){let l=this.app.vault.getFileByPath(i);if(!l){r.set(i,[]);continue}let s=this.readConfig(l),m=this.getNotesInDatabase(l).map(h=>this.getNoteDataSync(h,s.schema));r.set(i,m)}}return t.map(a=>{let i={...a};for(let l of o){let s=r.get(l.refDatabasePath)??[],d=l.refMatchColumnId==="_title"?a._title:a[l.refMatchColumnId],m=String(d??"");if(!m){i[l.id]=null;continue}let h=s.find(p=>p._title===m);i[l.id]=h?h[l.refColumnId]??null:null}return i})}resolveRollupsForRows(t,n){let o=n.filter(a=>a.type==="rollup"&&a.rollupRelationColumnId&&a.rollupTargetColumnId&&a.rollupFunction);if(o.length===0)return t;let r=new Map;for(let a of o){let i=n.find(s=>s.id===a.rollupRelationColumnId);if(!i||i.type!=="relation"||!i.refDatabasePath)continue;let l=i.refDatabasePath;if(!r.has(l)){let s=this.app.vault.getFileByPath(l);if(!s){r.set(l,[]);continue}let d=this.readConfig(s),m=this.getNotesInDatabase(s);r.set(l,m.map(h=>this.getNoteDataSync(h,d.schema)))}}return t.map(a=>{let i={...a};for(let l of o){let s=n.find(b=>b.id===l.rollupRelationColumnId);if(!s||!s.refDatabasePath){i[l.id]=null
Line truncated
|
||||
`);return this.app.vault.create(n,o)}async inferSchema(t){let n=new Map;for(let o of t){let a=this.app.metadataCache.getFileCache(o)?.frontmatter;if(a)for(let[i,l]of Object.entries(a))i==="position"||i.startsWith("notion-bases")||(n.has(i)||n.set(i,[]),l!=null&&n.get(i).push(l))}if(this.readInlineFields)for(let o of t){let r=await this.app.vault.cachedRead(o),a=Pf(r);for(let i of a)n.has(i.key)||n.set(i.key,[]),i.value!==null&&i.value!==void 0&&n.get(i.key).push(i.value)}return Array.from(n.entries()).map(([o,r])=>{let a=this.inferType(o,r),i=a==="select"||a==="multiselect"||a==="status"?this.extractOptions(r,a):void 0;return{id:o,name:this.toDisplayName(o),type:a,visible:!0,width:a==="title"||a==="text"?200:140,options:i}})}inferType(t,n){if(t==="tags")return"multiselect";if(["date","created","modified","due"].includes(t)||t.endsWith("_date")||t.endsWith("_at")||t.endsWith("At"))return"date";if(["status","priority","type","category","stage"].includes(t))return"select";if(["done","completed","archived","published","pinned"].includes(t))return"checkbox";if(["audio","sound","music","recording"].includes(t)||t.endsWith("_audio")||t.endsWith("_sound"))return"audio";if(["video","clip","movie"].includes(t)||t.endsWith("_video")||t.endsWith("_clip"))return"video";let o=n.filter(l=>l!=null);if(o.length===0)return"text";if(o.every(l=>typeof l=="boolean"))return"checkbox";if(o.every(l=>typeof l=="number"))return"number";if(o.every(l=>Array.isArray(l)))return"multiselect";let r=o.map(l=>typeof l=="object"&&l!==null?JSON.stringify(l):typeof l=="string"?l:typeof l=="number"||typeof l=="boolean"?String(l):"");if(r.some(l=>l.length>40||/\s/.test(l)&&/[.!?,;:]/.test(l)))return"text";let i=new Set(r);return i.size<=8&&i.size<o.length?"select":"text"}extractOptions(t,n){let o=new Set;for(let r of t)if(n==="multiselect"&&Array.isArray(r))for(let a of r)o.add(String(a));else r!=null&&o.add(mt(r));return Array.from(o).map(r=>({value:r}))}toDisplayName(t){return t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,n=>n.toUpperCase())}async renameColumn(t,n,o,r){let a=this.uniqueSlug(r,n.schema,o);if(a!==o){let d=this.getNotesInDatabase(t);for(let m of d){let h=this.app.metadataCache.getFileCache(m);h?.frontmatter&&o in h.frontmatter&&await this.app.fileManager.processFrontMatter(m,p=>{p[a]=p[o],delete p[o]})}}let l=n.schema.map(d=>d.id===o?{...d,id:a,name:r}:d),s={...n,schema:l};return await this.writeConfig(t,s),s}slugify(t){return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").replace(/_+/g,"_")||"campo"}uniqueSlug(t,n,o){let r=this.slugify(t),a=new Set(n.filter(l=>l.id!==o).map(l=>l.id));if(!a.has(r))return r;let i=2;for(;a.has(`${r}_${i}`);)i++;return`${r}_${i}`}};var ta=require("obsidian");var Oy={databaseFileName:"_database.md",defaultRowHeight:36,embedViews:{},readInlineFields:!1,pageSize:0,clipEllipsis:!0},$c=class extends ta.PluginSettingTab{constructor(t,n){super(t,n),this.plugin=n}display(){let{containerEl:t}=this;t.empty(),new ta.Setting(t).setName(u("settings_db_filename_name")).setDesc(u("settings_db_filename_desc")).addText(n=>n.setPlaceholder("_database.md").setValue(this.plugin.settings.databaseFileName).onChange(async o=>{this.plugin.settings.databaseFileName=o||"_database.md",await this.plugin.saveSettings()})),new ta.Setting(t).setName(u("settings_inline_fields_name")).setDesc(u("settings_inline_fields_desc")).addToggle(n=>n.setValue(this.plugin.settings.readInlineFields).onChange(async o=>{this.plugin.settings.readInlineFields=o,this.plugin.manager.readInlineFields=o,await this.plugin.saveSettings()})),new ta.Setting(t).setName(u("settings_clip_ellipsis_name")).setDesc(u("settings_clip_ellipsis_desc")).addToggle(n=>n.setValue(this.plugin.settings.clipEllipsis).onChange(async o=>{this.plugin.settings.clipEllipsis=o,Ii.clipEllipsis=o,await this.plugin.saveSettings()})),new ta.Setting(t).setName(u("settings_row_height_name")).setDesc(u("settings_row_height_desc")).addSlider(n=>n.setLimits(28,80,4).setValue(this.plugin.settings.defaultRowHeight).onChange(async o=>{this.plugin.settings.defaultRowHeight=o,await this.plugin.saveSettings()})),new ta.Setting(t).setName(u("settings_page_size_name")).setDesc(u("settings_page_size_desc")).addDropdown(n=>n.addOptions({0:u("settings_page_size_all"),50:"50",100:"100",200:"200"}).setValue(String(this.plugin.settings.pageSize)).onChange(async o=>{this.plugin.settings.pageSize=Number(o),this.plugin.manager.pageSize=Number(o),await this.plugin.saveSettings()}))}};var $y=require("obsidian"),zc=class extends $y.EditorSuggest{constructor(n,o){super(n);this.manager=o;this.options=[]}onTrigger(n,o,r){if(!r)return null;let a=this.app.metadataCache.getFileCache(r)?.frontmatterPosition?.end.line;if(a===void 0||n.line>=a||n.line===0)return null;let i=o.getLine(n.line),l=null,s,d=/^([^\s:][^:]*):\s*/.exec(i),m=/^(\s*-\s+)/.exec(i);if(d)l=d[1].trim(),s=d[0].length;else if(m){s=m[1].length;for(let p=n.line-
Line truncated
|
||||
`)){let a=r.match(/^path:\s*(.+)$/);a&&(t=a[1].trim());let i=r.match(/^id:\s*(.+)$/);i&&(n=i[1].trim());let l=r.match(/^type:\s*(.+)$/);if(l){let s=l[1].trim();EN.includes(s)&&(o=s)}}return{folderPath:t,embedId:n,forcedType:o}}var If=class extends Vy.MarkdownRenderChild{constructor(n,o,r,a,i,l){super(n);this.plugin=o;this.folderPath=r;this.embedId=a;this.sourcePath=i;this.forcedType=l;this.root=null}onload(){let n=this.plugin.manager,o=n.getDatabaseFileInFolder(this.folderPath);if(!o){this.containerEl.createDiv({text:`Database not found: "${this.folderPath||"/"}"`,cls:"nb-embed-error"});return}let r=this.plugin.app.vault.getFileByPath(this.sourcePath),a=r?this.plugin.app.metadataCache.getFileCache(r)?.frontmatter:void 0,i=Sa(a)?a[Va]:void 0,l=Sa(i)?i[this.embedId]:void 0,s;if(this.forcedType){let d=l&&typeof l=="object"&&!("activeViewId"in l)?l:void 0,m=this.plugin.app.metadataCache.getFileCache(o)?.frontmatter,h=Sa(m)?m.views:void 0,p=Array.isArray(h)?h:void 0,c=p?.find(w=>w?.type===this.forcedType)??p?.[0],_;d?_={...d,id:this.embedId,type:this.forcedType}:_=c?{...c,id:this.embedId,type:this.forcedType}:{...no,id:this.embedId,type:this.forcedType},s={dbFile:o,manager:n,externalView:_,onViewChange:async w=>{let g=this.plugin.app.vault.getFileByPath(this.sourcePath);g&&await this.plugin.app.fileManager.processFrontMatter(g,v=>{v[Va]||(v[Va]={}),v[Va][this.embedId]=w})}}}else{let d=l&&typeof l=="object"&&"activeViewId"in l&&Array.isArray(l.views)?l:void 0;s={dbFile:o,manager:n,embedState:d,onEmbedStateChange:async h=>{let p=this.plugin.app.vault.getFileByPath(this.sourcePath);p&&await this.plugin.app.fileManager.processFrontMatter(p,c=>{c[Va]||(c[Va]={}),c[Va][this.embedId]=h})}}}this.root=(0,By.createRoot)(this.containerEl),this.root.render((0,Lf.createElement)(ql.Provider,{value:this.plugin.app},(0,Lf.createElement)(Ic,s)))}onunload(){this.root?.unmount(),this.root=null}};function Hy(e){e.registerMarkdownCodeBlockProcessor("nb-database",(t,n,o)=>{let r=DN(t),{folderPath:a,forcedType:i}=r,l=r.embedId;if(!l){l="nb"+Math.random().toString(36).slice(2,10);let s=e.app.vault.getFileByPath(o.sourcePath);s&&e.app.vault.process(s,d=>{let m="```nb-database\n"+t.trimEnd(),h=d.indexOf(m);if(h===-1)return d;let p=h+15;return d.slice(0,p)+`id: ${l}
|
||||
`+d.slice(p)}).catch(console.error)}n.addClass("nb-embed-container"),o.addChild(new If(n,e,a,l,o.sourcePath,i))})}var Uy=require("obsidian");var jy=/\{\{([a-zA-Z0-9_-]+)(?::([^}]+))?\}\}/g,FN=new Set(["CODE","PRE","SCRIPT","STYLE","KBD"]);function TN(){return window.moment??null}function MN(e,t,n){let o=TN(),r=new Date;switch(e){case"title":return n.basename;case"folder":return n.parent?.path??"";case"date":return o?o(r).format(t||"YYYY-MM-DD"):r.toISOString().slice(0,10);case"time":return o?o(r).format(t||"HH:mm"):r.toTimeString().slice(0,5);default:return null}}function PN(e,t,n,o,r){let a=MN(e,t,r);if(a!==null)return[activeDocument.createTextNode(a)];let i=n.find(s=>s.id===e),l=o[e];return l===void 0?null:Kb(l,i,t)}function LN(e,t){let n=createSpan();return n.className="nb-placeholder",n.dataset.token=e,t&&(n.dataset.format=t),n.textContent=t?`{{${e}:${t}}}`:`{{${e}}}`,n}function IN(e){let t=e.nodeValue??"";if(!t.includes("{{"))return!1;jy.lastIndex=0;let n=[],o=0,r,a=!1;for(;(r=jy.exec(t))!==null;)a=!0,r.index>o&&n.push(activeDocument.createTextNode(t.slice(o,r.index))),n.push(LN(r[1],r[2])),o=r.index+r[0].length;if(!a)return!1;o<t.length&&n.push(activeDocument.createTextNode(t.slice(o)));let i=e.parentNode;if(!i)return!1;for(let l of n)i.insertBefore(l,e);return i.removeChild(e),!0}function AN(e){let t=[],n=activeDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:a=>{let i=a.parentElement;for(;i;){if(FN.has(i.tagName)||i.classList.contains("nb-database-embed"))return NodeFilter.FILTER_REJECT;i=i.parentElement}return a.nodeValue&&a.nodeValue.includes("{{")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),o=n.nextNode();for(;o;)t.push(o),o=n.nextNode();let r=!1;for(let a of t)IN(a)&&(r=!0);return r}var Af=class extends Uy.MarkdownRenderChild{constructor(n,o,r,a){super(n);this.app=o;this.manager=r;this.file=a}onload(){this.render(),this.listener=n=>{n.path===this.file.path&&this.render()},this.app.metadataCache.on("changed",this.listener)}onunload(){this.listener&&this.app.metadataCache.off("changed",this.listener)}render(){let o=this.app.metadataCache.getFileCache(this.file)?.frontmatter??{},r=this.file.parent?.path??"",a=this.manager.getDatabaseFileInFolder(r),i=a?this.manager.readConfig(a).schema:[];this.containerEl.querySelectorAll("span.nb-placeholder").forEach(s=>{let d=s.dataset.token??"",m=s.dataset.format||void 0;if(!d)return;let h=PN(d,m,i,o,this.file);if(h===null){s.textContent=m?`{{${d}:${m}}}`:`{{${d}}}`;return}s.replaceChildren(...h)})}};function Wy(e,t){return(n,o)=>{let r=e.vault.getFileByPath(o.sourcePath);!r||t.isDatabaseFile(r)||!AN(n)||o.addChild(new Af(n,e,t,r))}}var Bc=class extends Xo.Plugin{constructor(){super(...arguments);this._redirecting=!1}async onload(){await this.loadSettings(),this.manager=new Oc(this.app,this.settings.databaseFileName),this.manager.readInlineFields=this.settings.readInlineFields,this.manager.pageSize=this.settings.pageSize,this.registerView(ss,n=>new $a(n,this)),this.registerEditorSuggest(new zc(this.app,this.manager)),this.addRibbonIcon("table","Notion Bases",()=>{this.openDatabasePicker()}),this.addCommand({id:"open-database",name:u("cmd_open_database"),callback:async()=>{await this.openOrCreateDatabase()}}),this.addCommand({id:"create-database",name:u("cmd_create_database"),callback:async()=>{let o=this.app.workspace.getActiveFile()?.parent?.path??"";await this.createAndOpenDatabase(o)}}),this.addCommand({id:"quick-add",name:u("cmd_quick_add"),callback:()=>{this.openQuickAdd()}}),this.registerEvent(this.app.workspace.on("active-leaf-change",async n=>{if(!n||this._redirecting||n.view.getViewType()!=="markdown")return;let o=n.view.file??void 0;if(!o||!this.manager.isDatabaseFile(o))return;let r=this.findDatabaseLeaf(o.path);if(r&&r!==n){this.app.workspace.revealLeaf(r),n.detach();return}if(!r){this._redirecting=!0;try{await this.openDatabaseInLeaf(n,o)}finally{this._redirecting=!1}}})),this.registerEvent(this.app.workspace.on("file-menu",(n,o)=>{o instanceof Xo.TFolder&&(this.manager.getDatabaseFileInFolder(o.path)||n.addItem(r=>{r.setTitle(u("ctx_create_database")).setIcon("database").onClick(async()=>{await this.createAndOpenDatabase(o.path)})}))})),this.registerEvent(this.app.metadataCache.on("changed",n=>{if(!(n instanceof Xo.TFile)||n.extension!=="md"||this.manager.isDatabaseFile(n)||this.manager.isArrangementInProgress(n.path))return;let o=this.manager.findGoverningDatabase(n);if(!o)return;let r=this.manager.readConfig(o);r.folderArrangement?.enabled&&this.manager.applyArrangement(n,o,r)})),Hy(this),this.registerMarkdownPostProcessor(Wy(this.app,this.manager)),this.addSettingTab(new $c(this.app,this))}onunload(){}async loadSettings(){this.settings=Object.assign({},Oy,await this.loadData()),Ii.clipEllipsis=this.settings.clipEllipsis}async saveSettings(){await this.saveData(this.settings)}openQuickAdd(){let n=this.manager.getAllDatabases().sort((o,r)=>(o.parent?.path??"").localeCompare(r.parent?.path??""));if(n.length===0){new Xo.Notice(u
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
react/cjs/react.production.min.js:
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "notion-bases",
|
||||
"name": "Notion Bases",
|
||||
"version": "1.10.0",
|
||||
"version": "1.13.0",
|
||||
"minAppVersion": "1.8.7",
|
||||
"description": "Turn any folder into a database — table, kanban board, gallery, calendar, timeline and list views powered by frontmatter.",
|
||||
"author": "bgarciamoura",
|
||||
|
||||
+67
@@ -978,6 +978,13 @@
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
/* Read-only system columns (created / last edited time) */
|
||||
.nb-cell-system {
|
||||
height: 100%;
|
||||
color: var(--text-muted);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.nb-cell-empty {
|
||||
color: var(--text-faint);
|
||||
}
|
||||
@@ -3336,6 +3343,23 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nb-image-picker-url-input {
|
||||
margin: 8px 10px 0;
|
||||
width: calc(100% - 20px);
|
||||
padding: 5px 8px;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 4px;
|
||||
background: var(--background-primary);
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-ui-small);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nb-image-picker-url-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.nb-image-picker-clear {
|
||||
background: none;
|
||||
border: none;
|
||||
@@ -5742,3 +5766,46 @@ body.nb-tl-resizing.nb-tl-resizing.nb-tl-resizing * {
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* ── Ícones SVG monocromáticos (substituem os antigos emojis) ── */
|
||||
.nb-icon {
|
||||
vertical-align: -0.125em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Card do Week view com duração real (campo de data final) */
|
||||
.nb-cal-card--spanning {
|
||||
overflow: hidden;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* ── Estatísticas de resumo na barra de contagem (#67) ── */
|
||||
.nb-summary-stat {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
padding: 1px 8px;
|
||||
border-radius: 10px;
|
||||
background: var(--background-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nb-summary-stat strong {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
.nb-summary-add-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-faint);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.nb-summary-add-btn:hover {
|
||||
color: var(--text-normal);
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
/* O painel abre para cima: a barra de contagem fica no rodapé da view */
|
||||
.nb-summary-wrapper .nb-fields-dropdown {
|
||||
top: auto;
|
||||
bottom: calc(100% + 4px);
|
||||
}
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"remoteType": "",
|
||||
"useCustomRequestHandler": false,
|
||||
"couchDB_URI": "",
|
||||
"couchDB_USER": "",
|
||||
"couchDB_PASSWORD": "",
|
||||
"couchDB_DBNAME": "",
|
||||
"liveSync": false,
|
||||
"syncOnSave": false,
|
||||
"syncOnStart": false,
|
||||
"savingDelay": 200,
|
||||
"lessInformationInLog": false,
|
||||
"gcDelay": 0,
|
||||
"versionUpFlash": "",
|
||||
"minimumChunkSize": 20,
|
||||
"longLineThreshold": 250,
|
||||
"showVerboseLog": false,
|
||||
"suspendFileWatching": false,
|
||||
"trashInsteadDelete": true,
|
||||
"periodicReplication": false,
|
||||
"periodicReplicationInterval": 60,
|
||||
"syncOnFileOpen": false,
|
||||
"encrypt": false,
|
||||
"passphrase": "",
|
||||
"idDerivationVersion": 0,
|
||||
"idDerivationKey": "",
|
||||
"usePathObfuscation": false,
|
||||
"encryptInternalMetadata": true,
|
||||
"doNotDeleteFolder": false,
|
||||
"resolveConflictsByNewerFile": false,
|
||||
"batchSave": false,
|
||||
"batchSaveMinimumDelay": 5,
|
||||
"batchSaveMaximumDelay": 60,
|
||||
"deviceAndVaultName": "",
|
||||
"usePluginSettings": false,
|
||||
"showOwnPlugins": false,
|
||||
"showStatusOnEditor": true,
|
||||
"showStatusOnStatusbar": true,
|
||||
"showOnlyIconsOnEditor": false,
|
||||
"hideFileWarningNotice": false,
|
||||
"networkWarningStyle": "",
|
||||
"usePluginSync": false,
|
||||
"autoSweepPlugins": false,
|
||||
"autoSweepPluginsPeriodic": false,
|
||||
"notifyPluginOrSettingUpdated": false,
|
||||
"checkIntegrityOnSave": false,
|
||||
"batch_size": 25,
|
||||
"batches_limit": 25,
|
||||
"useHistory": true,
|
||||
"disableRequestURI": true,
|
||||
"skipOlderFilesOnSync": true,
|
||||
"checkConflictOnlyOnOpen": false,
|
||||
"showMergeDialogOnlyOnActive": false,
|
||||
"syncInternalFiles": false,
|
||||
"syncInternalFilesBeforeReplication": false,
|
||||
"syncInternalFilesIgnorePatterns": "\\/node_modules\\/, \\/\\.git\\/, \\/obsidian-livesync\\/",
|
||||
"syncInternalFilesTargetPatterns": "",
|
||||
"syncInternalFilesInterval": 60,
|
||||
"additionalSuffixOfDatabaseName": "/storage/emulated/0/Documents/choibk",
|
||||
"ignoreVersionCheck": false,
|
||||
"lastReadUpdates": 0,
|
||||
"deleteMetadataOfDeletedFiles": false,
|
||||
"syncIgnoreRegEx": "",
|
||||
"syncOnlyRegEx": "",
|
||||
"customChunkSize": 60,
|
||||
"readChunksOnline": false,
|
||||
"watchInternalFileChanges": true,
|
||||
"automaticallyDeleteMetadataOfDeletedFiles": 0,
|
||||
"disableMarkdownAutoMerge": false,
|
||||
"writeDocumentsIfConflicted": false,
|
||||
"useDynamicIterationCount": false,
|
||||
"syncAfterMerge": false,
|
||||
"configPassphraseStore": "",
|
||||
"encryptedPassphrase": "",
|
||||
"encryptedIdDerivationKey": "",
|
||||
"encryptedCouchDBConnection": "%$qCWnPxhXtug2dLWX7+UYoJ8SBLpfLly3SkePBISHaB8eCJdbd0dN3oZCIS0Y/bLBOUdxHYaZpjM/axq0xEYpve69JylFthJ0TB5bDd5T6kft/sSPNV88wf9F2wz6/SuBFPBIZWZLqM35FOk6HaLcbyNlWcYrFMn6XbwGRDIqma29fMYHpYtHdLicUld59eyAweHJLvIPDgZ94gX5PmpsjHckMO/v+GxiA6d9KiniDO2tG41Km2U7ijLGZkw8/ZQDcSLDciSo8Wd50yeatRnwtsmoCcLbq+iTYlT+MIasaTSN46ce+G/uQ8aVqkxBswq5YaeKaY1JfFJCGyoZAdR2H4BXPXLHLhcPw0RLbBr4XBxv3FfEbhAzps1pNfLlrNH8n2jQuDOA0/VHGV/sov+m7T/64Oyo+/cG7+mX5RI3GDSIhVOjboQ7t4f6OQnXuO94jxaFnJBobQqrlum8LPYGR8A+5ix2zD75v2EKEIWx5wquWLLi7RTY6TQW",
|
||||
"permitEmptyPassphrase": false,
|
||||
"remoteConfigurations": {
|
||||
"remote-muziwij7-eplago": {
|
||||
"id": "remote-muziwij7-eplago",
|
||||
"name": "CouchDB 192.168.1.149:5984",
|
||||
"uri": "%$qCWnPxhXtug2dLWX7+UYoJ8SBLpfLly3SkePBISHaB8IsPcqBpN8JAZ8XMske6v/J/jFwq48H2iFfXIC/fr+vgtlEBi9ix1x+yDF77hmNylIk3yEV9+6Qao7hSn4wcoRHX98bLGZjKDSBZK3sBDgIn+W/GAhV6DsBOgdB79niUBP5PSZWmD78a0Jq3oJe+Pp3JxHKN9gJLm14YI=",
|
||||
"isEncrypted": true
|
||||
}
|
||||
},
|
||||
"activeConfigurationId": "remote-muziwij7-eplago",
|
||||
"P2P_ActiveRemoteConfigurationId": "",
|
||||
"useIndexedDBAdapter": false,
|
||||
"useTimeouts": false,
|
||||
"writeLogToTheFile": false,
|
||||
"doNotPaceReplication": false,
|
||||
"hashCacheMaxCount": 300,
|
||||
"hashCacheMaxAmount": 50,
|
||||
"concurrencyOfReadChunksOnline": 40,
|
||||
"minimumIntervalOfReadChunksOnline": 50,
|
||||
"hashAlg": "xxhash64",
|
||||
"suspendParseReplicationResult": false,
|
||||
"doNotSuspendOnFetching": false,
|
||||
"useIgnoreFiles": false,
|
||||
"ignoreFiles": ".gitignore",
|
||||
"syncOnEditorSave": false,
|
||||
"keepReplicationActiveInBackground": false,
|
||||
"allowSleepDuringSynchronisation": false,
|
||||
"allowSleepDuringSynchronisationOnDesktop": true,
|
||||
"pluginSyncExtendedSetting": {},
|
||||
"syncMaxSizeInMB": 50,
|
||||
"settingSyncFile": "",
|
||||
"writeCredentialsForSettingSync": false,
|
||||
"notifyAllSettingSyncFile": false,
|
||||
"isConfigured": true,
|
||||
"settingVersion": 10,
|
||||
"enableCompression": false,
|
||||
"accessKey": "",
|
||||
"bucket": "",
|
||||
"endpoint": "",
|
||||
"region": "",
|
||||
"secretKey": "",
|
||||
"useEden": false,
|
||||
"maxChunksInEden": 10,
|
||||
"maxTotalLengthInEden": 1024,
|
||||
"maxAgeInEden": 10,
|
||||
"disableCheckingConfigMismatch": false,
|
||||
"displayLanguage": "ko",
|
||||
"enableChunkSplitterV2": false,
|
||||
"disableWorkerForGeneratingChunks": false,
|
||||
"processSmallFilesInUIThread": false,
|
||||
"notifyThresholdOfRemoteStorageSize": 2000,
|
||||
"usePluginSyncV2": true,
|
||||
"usePluginEtc": false,
|
||||
"handleFilenameCaseSensitive": false,
|
||||
"doNotUseFixedRevisionForChunks": true,
|
||||
"showLongerLogInsideEditor": false,
|
||||
"sendChunksBulk": false,
|
||||
"sendChunksBulkMaxSize": 1,
|
||||
"useSegmenter": false,
|
||||
"useAdvancedMode": false,
|
||||
"usePowerUserMode": false,
|
||||
"useEdgeCaseMode": false,
|
||||
"enableDebugTools": false,
|
||||
"suppressNotifyHiddenFilesChange": false,
|
||||
"syncMinimumInterval": 2000,
|
||||
"P2P_Enabled": false,
|
||||
"P2P_AutoAccepting": 0,
|
||||
"P2P_AppID": "self-hosted-livesync",
|
||||
"P2P_roomID": "",
|
||||
"P2P_passphrase": "",
|
||||
"P2P_relays": "wss://exp-relay.vrtmrz.net/",
|
||||
"P2P_AutoBroadcast": false,
|
||||
"P2P_AutoStart": false,
|
||||
"P2P_AutoSyncPeers": "",
|
||||
"P2P_AutoWatchPeers": "",
|
||||
"P2P_SyncOnReplication": "",
|
||||
"P2P_RebuildFrom": "",
|
||||
"P2P_AutoAcceptingPeers": "",
|
||||
"P2P_AutoDenyingPeers": "",
|
||||
"P2P_IsHeadless": false,
|
||||
"P2P_DevicePeerName": "",
|
||||
"P2P_turnServers": "",
|
||||
"P2P_turnUsername": "",
|
||||
"P2P_turnCredential": "",
|
||||
"P2P_maxWirePayloadBytes": 15360,
|
||||
"P2P_connectionPath": "automatic",
|
||||
"P2P_useDiagRTC": false,
|
||||
"doctorProcessedVersion": "1.0.33",
|
||||
"bucketCustomHeaders": "",
|
||||
"couchDB_CustomHeaders": "",
|
||||
"useJWT": false,
|
||||
"jwtAlgorithm": "",
|
||||
"jwtKey": "",
|
||||
"jwtKid": "",
|
||||
"jwtSub": "",
|
||||
"jwtExpDuration": 5,
|
||||
"useRequestAPI": false,
|
||||
"bucketPrefix": "",
|
||||
"chunkSplitterVersion": "v3-rabin-karp",
|
||||
"E2EEAlgorithm": "v2",
|
||||
"processSizeMismatchedFiles": false,
|
||||
"forcePathStyle": true,
|
||||
"syncInternalFileOverwritePatterns": "",
|
||||
"useOnlyLocalChunk": false,
|
||||
"maxMTimeForReflectEvents": 0,
|
||||
"tweakModified": 1791689368418
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD AND TERSER
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
"use strict";function cloneQuery2(query3){return Object.keys(query3).reduce((carry,paramName)=>{const param=query3[paramName];return{...carry,[paramName]:Array.isArray(param)?[...param]:param}},{})}function parseQueryString(querystring){const query3={};querystring=querystring.replace(/^\?/,"");if(querystring)for(const pair of querystring.split("&")){let[key3,value=null]=pair.split("=");key3=decodeURIComponent(key3);value&&(value=decodeURIComponent(value));key3 in query3?Array.isArray(query3[key3])?query3[key3].push(value):query3[key3]=[query3[key3],value]:query3[key3]=value}return query3}function toBase64(_input){let input;input="string"==typeof _input?fromUtf8(_input):_input;const isArrayLike="object"==typeof input&&"number"==typeof input.length,isUint8Array="object"==typeof input&&"number"==typeof input.byteOffset&&"number"==typeof input.byteLength;if(!isArrayLike&&!isUint8Array)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let str="";for(let i3=0;i3<input.length;i3+=3){let bits2=0,bitLength=0;for(let j2=i3,limit=Math.min(i3+3,input.length);j2<limit;j2++){bits2|=input[j2]<<(limit-j2-1)*bitsPerByte;bitLength+=bitsPerByte}const bitClusterCount=Math.ceil(bitLength/bitsPerLetter);bits2<<=bitClusterCount*bitsPerLetter-bitLength;for(let k2=1;k2<=bitClusterCount;k2++){const offset=(bitClusterCount-k2)*bitsPerLetter;str+=alphabetByValue[(bits2&maxLetterValue<<offset)>>offset]}str+="==".slice(0,4-bitClusterCount)}return str}function bindUint8ArrayBlobAdapter(toUtf82,fromUtf85,toBase643,fromBase643){return class Uint8ArrayBlobAdapter2 extends Uint8Array{static fromString(source2,encoding="utf-8"){if("string"==typeof source2)return"base64"===encoding?Uint8ArrayBlobAdapter2.mutate(fromBase643(source2)):Uint8ArrayBlobAdapter2.mutate(fromUtf85(source2));throw new Error(`Unsupported conversion from ${typeof source2} to Uint8ArrayBlobAdapter.`)}static mutate(source2){Object.setPrototypeOf(source2,Uint8ArrayBlobAdapter2.prototype);return source2}transformToString(encoding="utf-8"){return"base64"===encoding?toBase643(this):toUtf82(this)}}}function bindV4(getRandomValues2){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?()=>crypto.randomUUID():()=>{const rnds=new Uint8Array(16);getRandomValues2(rnds);rnds[6]=15&rnds[6]|64;rnds[8]=63&rnds[8]|128;return decimalToHex[rnds[0]]+decimalToHex[rnds[1]]+decimalToHex[rnds[2]]+decimalToHex[rnds[3]]+"-"+decimalToHex[rnds[4]]+decimalToHex[rnds[5]]+"-"+decimalToHex[rnds[6]]+decimalToHex[rnds[7]]+"-"+decimalToHex[rnds[8]]+decimalToHex[rnds[9]]+"-"+decimalToHex[rnds[10]]+decimalToHex[rnds[11]]+decimalToHex[rnds[12]]+decimalToHex[rnds[13]]+decimalToHex[rnds[14]]+decimalToHex[rnds[15]]}}function dateToUtcString(date2){const year2=date2.getUTCFullYear(),month=date2.getUTCMonth(),dayOfWeek=date2.getUTCDay(),dayOfMonthInt=date2.getUTCDate(),hoursInt=date2.getUTCHours(),minutesInt=date2.getUTCMinutes(),secondsInt=date2.getUTCSeconds(),dayOfMonthString=dayOfMonthInt<10?`0${dayOfMonthInt}`:`${dayOfMonthInt}`,hoursString=hoursInt<10?`0${hoursInt}`:`${hoursInt}`,minutesString=minutesInt<10?`0${minutesInt}`:`${minutesInt}`,secondsString=secondsInt<10?`0${secondsInt}`:`${secondsInt}`;return`${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year2} ${hoursString}:${minutesString}:${secondsString} GMT`}function quoteHeader(part){(part.includes(",")||part.includes('"'))&&(part=`"${part.replace(/"/g,'\\"')}"`);return part}function range3(v2,min2,max3){const _v=Number(v2);if(_v<min2||_v>max3)throw new Error(`Value ${_v} out of range [${min2}, ${max3}]`)}function splitEvery(value,delimiter,numDelimiters){if(numDelimiters<=0||!Number.isInteger(numDelimiters))throw new Error("Invalid number of delimiters ("+numDelimiters+") for splitEvery.");const segments=value.split(delimiter);if(1===numDelimiters)return segments;const compoundSegments=[];let currentSegment="";for(let i3=0;i3<segments.length;i3++){""===currentSegment?currentSegment=segments[i3]:currentSegment+=delimiter+segments[i3];if((i3+1)%numDelimiters===0){compoundSegments.push(currentSegment);currentSegment=""}}""!==currentSegment&&compoundSegments.push(currentSegment);return compoundSegments}function fromHex(encoded){if(encoded.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const out=new Uint8Array(encoded.length/2);for(let i3=0;i3<encoded.length;i3+=2){const encodedByte=encoded.slice(i3,i3+2).toLowerCase();if(!(encodedByte in HEX_TO_SHORT))throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);out[i3/2]=HEX_TO_SHORT[encodedByte]}return out}function toHex2(bytes){let out="";for(let i3=0;i3<bytes.byteLength;i3++)out+=SHORT_TO_HEX[bytes[i3]];return out}function bindGetEndpointFromInstructions(getEndpointFromConfig3){return async(commandInput,instructionsSupplier,clientConfig,context2)=>{if(!clientConfig.isCustomEndpoint){let endpointFromConfig;endpointFromConfig=clientConfig.serviceConfiguredEndpoint?awLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
octagonal-wheels/dist/encoding/encodeobject.js:
|
||||
(* istanbul ignore if -- @preserve *)
|
||||
|
||||
@noble/secp256k1/index.js:
|
||||
(*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)
|
||||
|
||||
octagonal-wheels/dist/encryption/hkdf.js:
|
||||
(* istanbul ignore if -- @preserve *)
|
||||
(* istanbul ignore next -- @preserve *)
|
||||
*/__export(index_browser_exports,{EventStreamCodec:()=>EventStreamCodec,EventStreamMarshaller:()=>EventStreamMarshaller2,EventStreamSerde:()=>EventStreamSerde,HeaderMarshaller:()=>HeaderMarshaller,Int64:()=>Int64,MessageDecoderStream:()=>MessageDecoderStream,MessageEncoderStream:()=>MessageEncoderStream,SmithyMessageDecoderStream:()=>SmithyMessageDecoderStream,SmithyMessageEncoderStream:()=>SmithyMessageEncoderStream,UniversalEventStreamMarshaller:()=>EventStreamMarshaller,eventStreamSerdeProvider:()=>eventStreamSerdeProvider2,getChunkedStream:()=>getChunkedStream,getMessageUnmarshaller:()=>getMessageUnmarshaller,getUnmarshalledStream:()=>getUnmarshalledStream,iterableToReadableStream:()=>iterableToReadableStream,readableStreamToIterable:()=>readableStreamToIterable,resolveEventStreamSerdeConfig:()=>resolveEventStreamSerdeConfig,universalEventStreamSerdeProvider:()=>eventStreamSerdeProvider});init_index_browser3=__esm({"node_modules/@smithy/core/dist-es/submodules/event-streams/index.browser.js"(){init_EventStreamCodec();init_HeaderMarshaller();init_Int64();init_MessageDecoderStream();init_MessageEncoderStream();init_SmithyMessageDecoderStream();init_SmithyMessageEncoderStream();init_EventStreamMarshaller_browser();init_utils();init_EventStreamMarshaller();init_getChunkedStream();init_getUnmarshalledStream();init_EventStreamSerdeConfig();init_EventStreamSerde()}});require_spark_md5=__commonJS({"node_modules/spark-md5/spark-md5.js"(exports,module2){(function(factory){if("object"==typeof exports)module2.exports=factory();else if("function"==typeof define&&define.amd)define(factory);else{var glob;try{glob=window}catch(e3){glob=self}glob.SparkMD5=factory()}})(function(undefined2){"use strict";function md5cycle(x3,k2){var a2=x3[0],b3=x3[1],c3=x3[2],d4=x3[3];a2+=(b3&c3|~b3&d4)+k2[0]-680876936|0;a2=(a2<<7|a2>>>25)+b3|0;d4+=(a2&b3|~a2&c3)+k2[1]-389564586|0;d4=(d4<<12|d4>>>20)+a2|0;c3+=(d4&a2|~d4&b3)+k2[2]+606105819|0;c3=(c3<<17|c3>>>15)+d4|0;b3+=(c3&d4|~c3&a2)+k2[3]-1044525330|0;b3=(b3<<22|b3>>>10)+c3|0;a2+=(b3&c3|~b3&d4)+k2[4]-176418897|0;a2=(a2<<7|a2>>>25)+b3|0;d4+=(a2&b3|~a2&c3)+k2[5]+1200080426|0;d4=(d4<<12|d4>>>20)+a2|0;c3+=(d4&a2|~d4&b3)+k2[6]-1473231341|0;c3=(c3<<17|c3>>>15)+d4|0;b3+=(c3&d4|~c3&a2)+k2[7]-45705983|0;b3=(b3<<22|b3>>>10)+c3|0;a2+=(b3&c3|~b3&d4)+k2[8]+1770035416|0;a2=(a2<<7|a2>>>25)+b3|0;d4+=(a2&b3|~a2&c3)+k2[9]-1958414417|0;d4=(d4<<12|d4>>>20)+a2|0;c3+=(d4&a2|~d4&b3)+k2[10]-42063|0;c3=(c3<<17|c3>>>15)+d4|0;b3+=(c3&d4|~c3&a2)+k2[11]-1990404162|0;b3=(b3<<22|b3>>>10)+c3|0;a2+=(b3&c3|~b3&d4)+k2[12]+1804603682|0;a2=(a2<<7|a2>>>25)+b3|0;d4+=(a2&b3|~a2&c3)+k2[13]-40341101|0;d4=(d4<<12|d4>>>20)+a2|0;c3+=(d4&a2|~d4&b3)+k2[14]-1502002290|0;c3=(c3<<17|c3>>>15)+d4|0;b3+=(c3&d4|~c3&a2)+k2[15]+1236535329|0;b3=(b3<<22|b3>>>10)+c3|0;a2+=(b3&d4|c3&~d4)+k2[1]-165796510|0;a2=(a2<<5|a2>>>27)+b3|0;d4+=(a2&c3|b3&~c3)+k2[6]-1069501632|0;d4=(d4<<9|d4>>>23)+a2|0;c3+=(d4&b3|a2&~b3)+k2[11]+643717713|0;c3=(c3<<14|c3>>>18)+d4|0;b3+=(c3&a2|d4&~a2)+k2[0]-373897302|0;b3=(b3<<20|b3>>>12)+c3|0;a2+=(b3&d4|c3&~d4)+k2[5]-701558691|0;a2=(a2<<5|a2>>>27)+b3|0;d4+=(a2&c3|b3&~c3)+k2[10]+38016083|0;d4=(d4<<9|d4>>>23)+a2|0;c3+=(d4&b3|a2&~b3)+k2[15]-660478335|0;c3=(c3<<14|c3>>>18)+d4|0;b3+=(c3&a2|d4&~a2)+k2[4]-405537848|0;b3=(b3<<20|b3>>>12)+c3|0;a2+=(b3&d4|c3&~d4)+k2[9]+568446438|0;a2=(a2<<5|a2>>>27)+b3|0;d4+=(a2&c3|b3&~c3)+k2[14]-1019803690|0;d4=(d4<<9|d4>>>23)+a2|0;c3+=(d4&b3|a2&~b3)+k2[3]-187363961|0;c3=(c3<<14|c3>>>18)+d4|0;b3+=(c3&a2|d4&~a2)+k2[8]+1163531501|0;b3=(b3<<20|b3>>>12)+c3|0;a2+=(b3&d4|c3&~d4)+k2[13]-1444681467|0;a2=(a2<<5|a2>>>27)+b3|0;d4+=(a2&c3|b3&~c3)+k2[2]-51403784|0;d4=(d4<<9|d4>>>23)+a2|0;c3+=(d4&b3|a2&~b3)+k2[7]+1735328473|0;c3=(c3<<14|c3>>>18)+d4|0;b3+=(c3&a2|d4&~a2)+k2[12]-1926607734|0;b3=(b3<<20|b3>>>12)+c3|0;a2+=(b3^c3^d4)+k2[5]-378558|0;a2=(a2<<4|a2>>>28)+b3|0;d4+=(a2^b3^c3)+k2[8]-2022574463|0;d4=(d4<<11|d4>>>21)+a2|0;c3+=(d4^a2^b3)+k2[11]+1839030562|0;c3=(c3<<16|c3>>>16)+d4|0;b3+=(c3^d4^a2)+k2[14]-35309556|0;b3=(b3<<23|b3>>>9)+c3|0;a2+=(b3^c3^d4)+k2[1]-1530992060|0;a2=(a2<<4|a2>>>28)+b3|0;d4+=(a2^b3^c3)+k2[4]+1272893353|0;d4=(d4<<11|d4>>>21)+a2|0;c3+=(d4^a2^b3)+k2[7]-155497632|0;c3=(c3<<16|c3>>>16)+d4|0;b3+=(c3^d4^a2)+k2[10]-1094730640|0;b3=(b3<<23|b3>>>9)+c3|0;a2+=(b3^c3^d4)+k2[13]+681279174|0;a2=(a2<<4|a2>>>28)+b3|0;d4+=(a2^b3^c3)+k2[0]-358537222|0;d4=(d4<<11|d4>>>21)+a2|0;c3+=(d4^a2^b3)+k2[3]-722521979|0;c3=(c3<<16|c3>>>16)+d4|0;b3+=(c3^d4^a2)+k2[6]+76029189|0;b3=(b3<<23|b3>>>9)+c3|0;a2+=(b3^c3^d4)+k2[9]-640364487|0;a2=(a2<<4|a2>>>28)+b3|0;d4+=(a2^b3^c3)+k2[12]-421815835|0;d4=(d4<<11|d4>>>21)+a2|0;c3+=(d4^a2^b3)+k2[15]+530742520|0;c3=(c3<<16|c3>>>16)+d4|0;b3+=(c3^d4^a2)+k2[2]-995338651|0;b3=(b3<<23|b3>>>9)+c3|0;a2+=(c3^(b3|~d4))+k2[0]-198630844|0;a2=(a2<<6|a2>>>26)+b3|0;d4+=(b3^(a2|~c3))+k2[7]+1126891415|0;d4=(d4<<10|d4>>>22)+a2|0;c3+=(a2^(d4|~b3))+k2[14]-1416354905|0;c3=(c3<<15|c3>>>17)+d4|0;b3+=(d4^(c3|~a2))+k2[5]-57434055|0;b3=(b3<<21|b3>>>11)+c3|0;a2+=(c3^(b3|~d4))+k2[12]+1700485571|0;a2=(a2<<6|a2>>>2Line truncated
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-livesync",
|
||||
"name": "Self-hosted LiveSync",
|
||||
"version": "1.0.35",
|
||||
"minAppVersion": "1.7.2",
|
||||
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||
"author": "vorotamoroz",
|
||||
"authorUrl": "https://github.com/vrtmrz",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+841
@@ -0,0 +1,841 @@
|
||||
.ls-dialog .added {
|
||||
color: var(--text-on-accent);
|
||||
background-color: var(--text-accent);
|
||||
}
|
||||
|
||||
.ls-dialog .normal {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.ls-dialog .deleted {
|
||||
color: var(--text-on-accent);
|
||||
background-color: var(--text-muted);
|
||||
}
|
||||
|
||||
.vpk-action-dialog__message {
|
||||
user-select: text;
|
||||
-webkit-user-select: text;
|
||||
}
|
||||
|
||||
.conflict-dev-name {
|
||||
display: inline-block;
|
||||
min-width: 5em;
|
||||
}
|
||||
|
||||
.conflict-action-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--size-4-2);
|
||||
margin-top: var(--size-4-2);
|
||||
}
|
||||
|
||||
.conflict-action-button {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.op-scrollable {
|
||||
overflow-y: scroll;
|
||||
/* min-height: 280px; */
|
||||
max-height: 280px;
|
||||
user-select: text;
|
||||
-webkit-user-select: text;
|
||||
}
|
||||
|
||||
.op-pre {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.op-warn {
|
||||
border: 1px solid salmon;
|
||||
padding: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.op-warn::before {
|
||||
content: "Warning";
|
||||
font-weight: bold;
|
||||
color: salmon;
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.op-warn-info {
|
||||
border: 1px solid rgb(255, 209, 81);
|
||||
padding: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.op-warn-info::before {
|
||||
content: "Notice";
|
||||
font-weight: bold;
|
||||
color: rgb(255, 209, 81);
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.syncstatusbar {
|
||||
-webkit-filter: grayscale(100%);
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
||||
.tcenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sls-plugins-wrap {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
max-height: 50vh;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.sls-remote-list .setting-item-description {
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.sls-plugins-tbl {
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
width: 100%;
|
||||
max-height: 80%;
|
||||
}
|
||||
|
||||
.divider th {
|
||||
border-top: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.sls-header-button {
|
||||
margin-left: 2em;
|
||||
}
|
||||
|
||||
.sls-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:root {
|
||||
--sls-log-text: "";
|
||||
}
|
||||
|
||||
.sls-troubleshoot-preview {
|
||||
max-width: max-content;
|
||||
}
|
||||
|
||||
.sls-troubleshoot-preview img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.sls-setting-tab {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.sls-setting-menu-btn {
|
||||
color: var(--text-normal);
|
||||
background-color: var(--background-secondary-alt);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
cursor: pointer;
|
||||
margin-right: 2px;
|
||||
font-family: "Inter", sans-serif;
|
||||
outline: none;
|
||||
user-select: none;
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.sls-setting-label.selected {
|
||||
/* order: 1; */
|
||||
flex-grow: 1;
|
||||
/* width: 100%; */
|
||||
}
|
||||
|
||||
.sls-setting-tab:hover ~ div.sls-setting-menu-btn,
|
||||
.sls-setting-label.selected .sls-setting-tab:checked ~ div.sls-setting-menu-btn {
|
||||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.sls-setting-menu-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
backdrop-filter: blur(15px);
|
||||
padding: 4px;
|
||||
border-radius: 10px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.sls-setting-menu {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
body {
|
||||
--sls-col-transparent: transparent;
|
||||
--sls-col-warn: rgba(var(--background-modifier-error-rgb), 0.1);
|
||||
--sls-col-warn-stripe1: var(--sls-col-transparent);
|
||||
--sls-col-warn-stripe2: var(--sls-col-warn);
|
||||
}
|
||||
|
||||
.sls-setting-menu-buttons {
|
||||
border: 1px solid var(--sls-col-warn);
|
||||
/* padding: 2px; */
|
||||
margin: 1px;
|
||||
border-radius: 4px;
|
||||
background-image: linear-gradient(
|
||||
-45deg,
|
||||
var(--sls-col-warn-stripe1) 25%,
|
||||
var(--sls-col-warn-stripe2) 25%,
|
||||
var(--sls-col-warn-stripe2) 50%,
|
||||
var(--sls-col-warn-stripe1) 50%,
|
||||
var(--sls-col-warn-stripe1) 75%,
|
||||
var(--sls-col-warn-stripe2) 75%,
|
||||
var(--sls-col-warn-stripe2)
|
||||
);
|
||||
background-size: 30px 30px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
/* justify-content: flex-end; */
|
||||
padding: 0.5em 0.25em;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
/* transition: background-position 1s; */
|
||||
animation: sls-scroll-warn 1s linear 0s infinite;
|
||||
}
|
||||
|
||||
@keyframes sls-scroll-warn {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 30px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sls-setting-menu-buttons label {
|
||||
margin-right: auto;
|
||||
flex-grow: 1;
|
||||
color: var(--text-warning);
|
||||
}
|
||||
|
||||
.sls-setting-label {
|
||||
flex-grow: 1;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.setting-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sls-plugins-tbl-buttons {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sls-plugins-tbl-buttons button {
|
||||
flex-grow: 0;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.sls-plugins-tbl-device-head {
|
||||
background-color: var(--background-secondary-alt);
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
||||
.op-flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.op-flex input {
|
||||
display: inline-flex;
|
||||
flex-grow: 1;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.op-info {
|
||||
display: inline-flex;
|
||||
flex-grow: 1;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
width: 100%;
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.history-added {
|
||||
color: var(--text-on-accent);
|
||||
background-color: var(--text-accent);
|
||||
}
|
||||
|
||||
.history-normal {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.history-deleted {
|
||||
color: var(--text-on-accent);
|
||||
background-color: var(--text-muted);
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.ob-btn-config-fix label {
|
||||
margin-right: 40px;
|
||||
}
|
||||
|
||||
.ob-btn-config-info {
|
||||
border: 1px solid salmon;
|
||||
padding: 2px;
|
||||
margin: 1px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.ob-btn-config-head {
|
||||
padding: 2px;
|
||||
margin: 1px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.sls-item-dirty::before {
|
||||
content: "✏";
|
||||
}
|
||||
|
||||
.sls-item-dirty-help::after {
|
||||
content: " ❓";
|
||||
}
|
||||
|
||||
.sls-setting .setting-item-control input.sls-item-invalid-value,
|
||||
.sls-setting .setting-item-control textarea.sls-item-invalid-value {
|
||||
background-color: rgba(var(--background-modifier-error-rgb), 0.3);
|
||||
}
|
||||
|
||||
.sls-setting-disabled input[type="text"],
|
||||
.sls-setting-disabled input[type="number"],
|
||||
.sls-setting-disabled input[type="password"] {
|
||||
filter: brightness(80%);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sls-setting-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sls-setting-obsolete {
|
||||
/* background-image: linear-gradient(-45deg,
|
||||
var(--sls-col-warn-stripe1) 25%, var(--sls-col-warn-stripe2) 25%, var(--sls-col-warn-stripe2) 50%,
|
||||
var(--sls-col-warn-stripe1) 50%, var(--sls-col-warn-stripe1) 75%, var(--sls-col-warn-stripe2) 75%, var(--sls-col-warn-stripe2)); */
|
||||
background-image: linear-gradient(
|
||||
-45deg,
|
||||
transparent 25%,
|
||||
rgba(var(--background-secondary), 0.1) 25%,
|
||||
rgba(var(--background-secondary), 0.1) 50%,
|
||||
transparent 50%,
|
||||
transparent 75%,
|
||||
rgba(var(--background-secondary), 0.1) 75%,
|
||||
rgba(var(--background-secondary), 0.1)
|
||||
);
|
||||
background-size: 60px 60px;
|
||||
}
|
||||
|
||||
.password-input > .setting-item-control > input {
|
||||
-webkit-text-security: disc;
|
||||
}
|
||||
|
||||
.sls-onboarding-invitation-action {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Touch devices need a larger tap target; on desktop this would just pad the
|
||||
link with blank space and make it look like a misplaced button. */
|
||||
body.is-mobile .sls-onboarding-invitation-action {
|
||||
display: inline-flex;
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sls-review-harness {
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
overflow-x: clip;
|
||||
padding-bottom: max(1rem, env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.sls-review-harness .setting-item,
|
||||
.sls-review-harness .setting-item-control {
|
||||
flex-wrap: wrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.sls-review-harness .setting-item-info {
|
||||
min-width: min(16rem, 100%);
|
||||
}
|
||||
|
||||
.sls-review-harness .setting-item-control {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sls-review-harness button {
|
||||
min-height: 44px;
|
||||
max-width: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.sls-review-harness__result,
|
||||
.sls-review-harness__warning,
|
||||
.sls-review-harness__privacy,
|
||||
.sls-review-harness__error,
|
||||
.sls-review-harness__resumed {
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.sls-review-harness__result {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
.sls-review-harness__warning,
|
||||
.sls-review-harness__error {
|
||||
color: var(--text-error);
|
||||
}
|
||||
|
||||
.sls-review-harness__resumed {
|
||||
color: var(--text-success);
|
||||
}
|
||||
|
||||
span.ls-mark-cr::after {
|
||||
user-select: none;
|
||||
content: "↲";
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.deleted span.ls-mark-cr::after {
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.ls-imgdiff-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ls-imgdiff-wrap .overlay {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ls-imgdiff-wrap .overlay .img-base {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.ls-imgdiff-wrap .overlay .img-overlay {
|
||||
-webkit-filter: invert(100%) opacity(50%);
|
||||
filter: invert(100%) opacity(50%);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
animation: ls-blink-diff 0.5s cubic-bezier(0.4, 0, 1, 1) infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes ls-blink-diff {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.livesync-status {
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
height: auto;
|
||||
min-height: 1em;
|
||||
position: absolute;
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
padding-right: 16px;
|
||||
top: var(--header-height);
|
||||
z-index: calc(var(--layer-cover) + 1);
|
||||
|
||||
font-variant-numeric: tabular-nums;
|
||||
tab-size: 4;
|
||||
text-align: right;
|
||||
white-space: pre-wrap;
|
||||
display: inline-block;
|
||||
color: var(--text-normal);
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.is-mobile.is-ios .livesync-status {
|
||||
box-sizing: border-box;
|
||||
top: calc(var(--header-height) + var(--view-header-height, var(--header-height)) + var(--size-4-2));
|
||||
}
|
||||
|
||||
div.workspace-leaf-content[data-type="bases"] .livesync-status {
|
||||
top: calc(var(--bases-header-height) + var(--header-height));
|
||||
padding: 5px;
|
||||
padding-right: 18px;
|
||||
}
|
||||
|
||||
.is-mobile div.workspace-leaf-content[data-type="bases"] .livesync-status {
|
||||
top: calc(var(--bases-header-height) + var(--view-header-height));
|
||||
padding: 6px;
|
||||
padding-right: 18px;
|
||||
}
|
||||
|
||||
.is-mobile.is-ios div.workspace-leaf-content[data-type="bases"] .livesync-status {
|
||||
top: calc(
|
||||
var(--bases-header-height) + var(--header-height) + var(--view-header-height, var(--header-height)) +
|
||||
var(--size-4-2)
|
||||
);
|
||||
}
|
||||
|
||||
.livesync-status div {
|
||||
opacity: 0.6;
|
||||
-webkit-filter: grayscale(100%);
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
||||
.livesync-status .livesync-status-loghistory {
|
||||
text-align: left;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.livesync-status div.livesync-status-messagearea:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.livesync-status div.livesync-status-messagearea:not(:empty) {
|
||||
opacity: 0.6;
|
||||
color: var(--text-on-accent);
|
||||
border: 1px solid var(--background-modifier-error);
|
||||
background-color: rgba(var(--background-modifier-error-rgb), 0.2);
|
||||
-webkit-filter: unset;
|
||||
filter: unset;
|
||||
width: fit-content;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.menu-setting-poweruser-disabled .sls-setting-poweruser {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-setting-advanced-disabled .sls-setting-advanced {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-setting-edgecase-disabled .sls-setting-edgecase {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sls-setting-panel-title {
|
||||
font-size: medium;
|
||||
background-color: var(--background-secondary-alt);
|
||||
border-radius: 10px;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
|
||||
body.is-mobile .sls-setting button {
|
||||
max-width: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
body.is-mobile .sls-setting-with-additional-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
body.is-mobile .sls-setting-with-additional-actions .setting-item-control {
|
||||
min-width: 0;
|
||||
flex: 1 1 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
body.is-mobile .sls-setting .sls-setting-additional-action {
|
||||
flex: 1 1 12rem;
|
||||
}
|
||||
|
||||
.active-pane .sls-setting-panel-title {
|
||||
border: 1px solid var(--interactive-accent);
|
||||
}
|
||||
|
||||
.sls-dialogue-note-wrapper {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sls-dialogue-note-countdown {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
body.is-mobile .livesync-message-box-container {
|
||||
box-sizing: border-box;
|
||||
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
||||
padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
|
||||
padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
|
||||
padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
|
||||
}
|
||||
|
||||
body.is-mobile .livesync-message-box-container .modal {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
body.is-mobile .livesync-message-box-container button {
|
||||
height: auto;
|
||||
min-height: var(--input-height);
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
body.is-mobile .livesync-compatibility-review-notice {
|
||||
box-sizing: border-box;
|
||||
margin-right: calc(64px + var(--safe-area-inset-right, env(safe-area-inset-right, 0px)));
|
||||
min-width: 0;
|
||||
width: calc(
|
||||
100vw - 88px - var(--safe-area-inset-left, env(safe-area-inset-left, 0px)) -
|
||||
var(--safe-area-inset-right, env(safe-area-inset-right, 0px))
|
||||
);
|
||||
}
|
||||
|
||||
.sls-qr {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: max-content;
|
||||
}
|
||||
|
||||
.sls-keypair pre {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.sls-repair-results {
|
||||
display: grid;
|
||||
gap: var(--size-4-3);
|
||||
}
|
||||
|
||||
.sls-repair-result {
|
||||
padding: var(--size-4-3);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-m);
|
||||
background: var(--background-secondary);
|
||||
}
|
||||
|
||||
.sls-repair-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: var(--size-4-2);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sls-repair-header > :first-child {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sls-repair-header h6 {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.sls-repair-status {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--size-4-2);
|
||||
margin-top: var(--size-4-1);
|
||||
font-size: var(--font-ui-smaller);
|
||||
}
|
||||
|
||||
.sls-repair-status-ok {
|
||||
color: var(--text-success);
|
||||
}
|
||||
|
||||
.sls-repair-status-warning {
|
||||
color: var(--text-warning);
|
||||
}
|
||||
|
||||
.sls-repair-metric {
|
||||
margin-top: var(--size-4-1);
|
||||
font-size: var(--font-ui-smaller);
|
||||
line-height: var(--line-height-tight);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.sls-repair-action-menu {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: var(--clickable-icon-size);
|
||||
width: var(--clickable-icon-size);
|
||||
height: var(--clickable-icon-size);
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sls-repair-action-menu .svg-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.sls-repair-revision {
|
||||
margin-top: var(--size-4-2);
|
||||
padding: var(--size-4-2);
|
||||
border-left: 3px solid var(--background-modifier-border);
|
||||
background: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.sls-repair-revision-title {
|
||||
font-weight: var(--font-semibold);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.sls-repair-revision code {
|
||||
display: block;
|
||||
margin-top: var(--size-4-1);
|
||||
overflow-wrap: anywhere;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.sls-repair-ancestor-warning {
|
||||
margin-top: var(--size-4-2);
|
||||
color: var(--text-warning);
|
||||
}
|
||||
|
||||
/* Diff navigation */
|
||||
.diff-options-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.diff-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.diff-nav-btn {
|
||||
padding: 2px 8px;
|
||||
font-size: 0.85em;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 4px;
|
||||
background-color: var(--background-secondary);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.diff-nav-btn:hover {
|
||||
background-color: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.diff-nav-indicator {
|
||||
font-size: 0.85em;
|
||||
color: var(--text-muted);
|
||||
min-width: 3em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.diff-only-label {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.history-search-row {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.history-search-input {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.history-search-result-indicator {
|
||||
font-size: 0.8em;
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
.history-search-progress-indicator {
|
||||
font-size: 0.8em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.history-search-row button:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.history-rev-nav-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.history-rev-nav-row input[type="range"] {
|
||||
flex-grow: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.history-rev-nav-btn {
|
||||
flex-shrink: 0;
|
||||
padding: 2px 10px;
|
||||
font-size: 0.9em;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 4px;
|
||||
background-color: var(--background-secondary);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.history-rev-nav-btn:hover:not(:disabled) {
|
||||
background-color: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.history-rev-nav-btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.history-rev-indicator {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.85em;
|
||||
color: var(--text-muted);
|
||||
min-width: 4.5em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.history-diff-options-row {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.history-highlight-diff-container,
|
||||
.history-highlight-diff-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.history-highlight-diff-label {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.diff-focused {
|
||||
outline: 2px solid var(--interactive-accent);
|
||||
outline-offset: 1px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"data_version": 2,
|
||||
"command_timeout": 5,
|
||||
"templates_folder": "2026_new_일정관리",
|
||||
"templates_pairs": [],
|
||||
"trigger_on_file_creation_mode": "none",
|
||||
"auto_jump_to_cursor": false,
|
||||
"jump_to_cursor_after_file_name": false,
|
||||
"shell_path": "",
|
||||
"user_scripts_folder": "",
|
||||
"folder_templates": [],
|
||||
"file_templates": [],
|
||||
"syntax_highlighting": true,
|
||||
"syntax_highlighting_mobile": false,
|
||||
"enabled_templates_hotkeys": [],
|
||||
"startup_templates": [],
|
||||
"intellisense_render": "1",
|
||||
"ignore_folders_on_creation": []
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var ko=Object.create;var Pr=Object.defineProperty;var jo=Object.getOwnPropertyDescriptor;var Eo=Object.getOwnPropertyNames;var To=Object.getPrototypeOf,So=Object.prototype.hasOwnProperty;var ga=e=>Pr(e,"__esModule",{value:!0});var Co=(e,t)=>{ga(e);for(var r in t)Pr(e,r,{get:t[r],enumerable:!0})},Po=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Eo(t))!So.call(e,i)&&i!=="default"&&Pr(e,i,{get:()=>t[i],enumerable:!(r=jo(t,i))||r.enumerable});return e},$=e=>Po(ga(Pr(e!=null?ko(To(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Aa=(()=>{for(var e=new Uint8Array(128),t=0;t<64;t++)e[t<26?t+65:t<52?t+71:t<62?t-4:t*4-205]=t;return r=>{for(var i=r.length,n=new Uint8Array((i-(r[i-1]=="=")-(r[i-2]=="="))*3/4|0),a=0,s=0;a<i;){var c=e[r.charCodeAt(a++)],l=e[r.charCodeAt(a++)],h=e[r.charCodeAt(a++)],m=e[r.charCodeAt(a++)];n[s++]=c<<2|l>>4,n[s++]=l<<4|h>>2,n[s++]=h<<6|m}return n}})();Co(exports,{default:()=>ta});var er=$(require("obsidian"));var ti=$(require("obsidian"));var te=function(){function e(){}return e.explainIfInvalidTSDocTagName=function(t){if(t[0]!=="@")return'A TSDoc tag name must start with an "@" symbol';if(!e._tsdocTagNameRegExp.test(t))return"A TSDoc tag name must start with a letter and contain only letters and numbers"},e.validateTSDocTagName=function(t){var r=e.explainIfInvalidTSDocTagName(t);if(r)throw new Error(r)},e.explainIfInvalidLinkUrl=function(t){if(t.length===0)return"The URL cannot be empty";if(!e._urlSchemeRegExp.test(t))return'An @link URL must begin with a scheme comprised only of letters and numbers followed by "://". (For general URLs, use an HTML "<a>" tag instead.)';if(!e._urlSchemeAfterRegExp.test(t))return'An @link URL must have at least one character after "://"'},e.explainIfInvalidHtmlName=function(t){if(!e._htmlNameRegExp.test(t))return"An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens"},e.validateHtmlName=function(t){var r=e.explainIfInvalidHtmlName(t);if(r)throw new Error(r)},e.explainIfInvalidPackageName=function(t){if(t.length===0)return"The package name cannot be an empty string";if(!e._validPackageNameRegExp.test(t))return"The package name ".concat(JSON.stringify(t)," is not a valid package name")},e.explainIfInvalidImportPath=function(t,r){if(t.length>0){if(t.indexOf("//")>=0)return'An import path must not contain "//"';if(t[t.length-1]==="/")return'An import path must not end with "/"';if(!r&&t[0]==="/")return'An import path must not start with "/" unless prefixed by a package name'}},e.isSystemSelector=function(t){return e._systemSelectors.has(t)},e.explainIfInvalidUnquotedIdentifier=function(t){if(t.length===0)return"The identifier cannot be an empty string";if(e._identifierBadCharRegExp.test(t))return"The identifier cannot non-word characters";if(e._identifierNumberStartRegExp.test(t))return"The identifier must not start with a number"},e.explainIfInvalidUnquotedMemberIdentifier=function(t){var r=e.explainIfInvalidUnquotedIdentifier(t);if(r!==void 0)return r;if(e.isSystemSelector(t))return'The identifier "'.concat(t,'" must be quoted because it is a TSDoc system selector name')},e._tsdocTagNameRegExp=/^@[a-z][a-z0-9]*$/i,e._urlSchemeRegExp=/^[a-z][a-z0-9]*\:\/\//i,e._urlSchemeAfterRegExp=/^[a-z][a-z0-9]*\:\/\/./i,e._htmlNameRegExp=/^[a-z]+[a-z0-9\-]*$/i,e._identifierBadCharRegExp=/[^a-z0-9_$]/i,e._identifierNumberStartRegExp=/^[0-9]/,e._validPackageNameRegExp=/^(?:@[a-z0-9\-_\.]+\/)?[a-z0-9\-_\.]+$/i,e._systemSelectors=new Set(["instance","static","constructor","class","enum","function","interface","namespace","type","variable"]),e}();var Di=function(){function e(){this._docNodeDefinitionsByKind=new Map,this._docNodeDefinitionsByConstructor=new Map}return e.prototype.registerDocNodes=function(t,r){var i=te.explainIfInvalidPackageName(t);if(i)throw new Error("Invalid NPM package name: "+i);for(var n=0,a=r;n<a.length;n++){var s=a[n];if(!e._nodeKindRegExp.test(s.docNodeKind))throw new Error("The DocNode kind ".concat(JSON.stringify(s.docNodeKind)," is not a valid identifier.")+" It must start with an underscore or letter, and be comprised of letters, numbers, and underscores");var c=this._docNodeDefinitionsByKind.get(s.docNodeKind);if(c!==void 0)throw new Error('The DocNode kind "'.concat(s.docNodeKind,'" was already registered')+" by ".concat(c.packageName));if(c=this._docNodeDefinitionsByConstructor.get(s.constructor),c!==void 0)throw new Error("This DocNode constructor was already registered by ".concat(c.packageName)+" as ".concat(c.docNodeKind));var l={docNodeKind:s.docNodeKind,constructor:s.constructor,packageName:t,allowedChildKinds:new Set};this._docNodeDefinitionsByKind.set(s.docNodeKind,l),this._docNodeDefinitionsByConstructor.set(s.constructor,l)}},e.prototype.throwIfNotRegisteredKind=function(t){if(!this._docNodeDefinitionsByKind.has(t))throw new Error('The DocNode kind "'.concat(t,'" was not registered with this TSDocConfiguration'Line truncated
|
||||
`:this.range.toString()},e}();var Bo=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),v;(function(e){e.Spacing="Spacing",e.BlockTag="BlockTag",e.CodeSpan_OpeningDelimiter="CodeSpan_OpeningDelimiter",e.CodeSpan_Code="CodeSpan_Code",e.CodeSpan_ClosingDelimiter="CodeSpan_ClosingDelimiter",e.DeclarationReference_PackageName="DeclarationReference_PackageName",e.DeclarationReference_ImportPath="DeclarationReference_ImportPath",e.DeclarationReference_ImportHash="DeclarationReference_ImportHash",e.ErrorText="ErrorText",e.NonstandardText="NonstandardText",e.EscapedText="EscapedText",e.FencedCode_OpeningFence="FencedCode_OpeningFence",e.FencedCode_Language="FencedCode_Language",e.FencedCode_Code="FencedCode_Code",e.FencedCode_ClosingFence="FencedCode_ClosingFence",e.HtmlAttribute_Name="HtmlAttribute_Name",e.HtmlAttribute_Equals="HtmlAttribute_Equals",e.HtmlAttribute_Value="HtmlAttribute_Value",e.HtmlEndTag_OpeningDelimiter="HtmlEndTag_OpeningDelimiter",e.HtmlEndTag_Name="HtmlEndTag_Name",e.HtmlEndTag_ClosingDelimiter="HtmlEndTag_ClosingDelimiter",e.HtmlStartTag_OpeningDelimiter="HtmlStartTag_OpeningDelimiter",e.HtmlStartTag_Name="HtmlStartTag_Name",e.HtmlStartTag_ClosingDelimiter="HtmlStartTag_ClosingDelimiter",e.InlineTag_OpeningDelimiter="InlineTag_OpeningDelimiter",e.InlineTag_TagName="InlineTag_TagName",e.InlineTag_TagContent="InlineTag_TagContent",e.InlineTag_ClosingDelimiter="InlineTag_ClosingDelimiter",e.LinkTag_UrlDestination="LinkTag_UrlDestination",e.LinkTag_Pipe="LinkTag_Pipe",e.LinkTag_LinkText="LinkTag_LinkText",e.MemberIdentifier_LeftQuote="MemberIdentifier_LeftQuote",e.MemberIdentifier_Identifier="MemberIdentifier_Identifier",e.MemberIdentifier_RightQuote="MemberIdentifier_RightQuote",e.MemberReference_Dot="MemberReference_Dot",e.MemberReference_LeftParenthesis="MemberReference_LeftParenthesis",e.MemberReference_Colon="MemberReference_Colon",e.MemberReference_RightParenthesis="MemberReference_RightParenthesis",e.MemberSelector="MemberSelector",e.DocMemberSymbol_LeftBracket="DocMemberSymbol_LeftBracket",e.DocMemberSymbol_RightBracket="DocMemberSymbol_RightBracket",e.ParamBlock_ParameterName="ParamBlock_ParameterName",e.ParamBlock_Hyphen="ParamBlock_Hyphen",e.PlainText="PlainText",e.SoftBreak="SoftBreak"})(v||(v={}));var b=function(e){Bo(t,e);function t(r){var i=e.call(this,r)||this;if(r.excerptKind===v.Spacing)for(var n=0,a=r.content.tokens;n<a.length;n++){var s=a[n];switch(s.kind){case f.Spacing:case f.Newline:case f.EndOfInput:break;default:throw new Error("The excerptKind=Spacing but the range contains a non-whitespace token")}}return i._excerptKind=r.excerptKind,i._content=r.content,i}return Object.defineProperty(t.prototype,"kind",{get:function(){return g.Excerpt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"excerptKind",{get:function(){return this._excerptKind},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t}(k);var Oo=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ir=function(e){Oo(t,e);function t(r){var i=e.call(this,r)||this;return te.validateTSDocTagName(r.tagName),i._tagName=r.tagName,i._tagNameWithUpperCase=r.tagName.toUpperCase(),k.isParsedParameters(r)&&(i._tagNameExcerpt=new b({configuration:i.configuration,excerptKind:v.BlockTag,content:r.tagNameExcerpt})),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return g.BlockTag},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this._tagName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagNameWithUpperCase",{get:function(){return this._tagNameWithUpperCase},enumerable:!1,configurable:!0}),t.prototype.onGetChildNodes=function(){return[this._tagNameExcerpt]},t.prototype.getTokenSequence=function(){if(!this._tagNameExcerpt)throw new Error("DocBlockTag.getTokenSequence() failed because this object did not originate from a parsed input");return this._tagNameExcerpt.content},t}(k);var qo=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}|
Line truncated
|
||||
`,this._emitCommentFraming=!0,this._lineState=ce.Closed,this._previousLineHadContent=!1,this._hangingParagraph=!1}return e.prototype.renderComment=function(t,r){this._emitCommentFraming=!0,this._renderCompleteObject(t,r)},e.prototype.renderHtmlTag=function(t,r){this._emitCommentFraming=!1,this._renderCompleteObject(t,r)},e.prototype.renderDeclarationReference=function(t,r){this._emitCommentFraming=!1,this._renderCompleteObject(t,r)},e.prototype._renderCompleteObject=function(t,r){this._output=t,this._lineState=ce.Closed,this._previousLineHadContent=!1,this._hangingParagraph=!1,this._renderNode(r),this._writeEnd()},e.prototype._renderNode=function(t){var r=this;if(t!==void 0)switch(t.kind){case g.Block:var i=t;this._ensureLineSkipped(),this._renderNode(i.blockTag),i.blockTag.tagNameWithUpperCase===z.returns.tagNameWithUpperCase&&(this._writeContent(" "),this._hangingParagraph=!0),this._renderNode(i.content);break;case g.BlockTag:var n=t;this._lineState===ce.MiddleOfLine&&this._writeContent(" "),this._writeContent(n.tagName);break;case g.CodeSpan:var a=t;this._writeContent("`"),this._writeContent(a.code),this._writeContent("`");break;case g.Comment:var s=t;this._renderNodes(Li(Li(Li([s.summarySection,s.remarksBlock,s.privateRemarks,s.deprecatedBlock,s.params,s.typeParams,s.returnsBlock],s.customBlocks,!0),s.seeBlocks,!0),[s.inheritDocTag],!1)),s.modifierTagSet.nodes.length>0&&(this._ensureLineSkipped(),this._renderNodes(s.modifierTagSet.nodes));break;case g.DeclarationReference:var c=t;this._writeContent(c.packageName),this._writeContent(c.importPath),(c.packageName!==void 0||c.importPath!==void 0)&&this._writeContent("#"),this._renderNodes(c.memberReferences);break;case g.ErrorText:var l=t;this._writeContent(l.text);break;case g.EscapedText:var h=t;this._writeContent(h.encodedText);break;case g.FencedCode:var m=t;this._ensureAtStartOfLine(),this._writeContent("```"),this._writeContent(m.language),this._writeNewline(),this._writeContent(m.code),this._writeContent("```"),this._writeNewline(),this._writeNewline();break;case g.HtmlAttribute:var _=t;this._writeContent(_.name),this._writeContent(_.spacingAfterName),this._writeContent("="),this._writeContent(_.spacingAfterEquals),this._writeContent(_.value),this._writeContent(_.spacingAfterValue);break;case g.HtmlEndTag:var E=t;this._writeContent("</"),this._writeContent(E.name),this._writeContent(">");break;case g.HtmlStartTag:var O=t;this._writeContent("<"),this._writeContent(O.name),this._writeContent(O.spacingAfterName);for(var q=O.spacingAfterName===void 0||O.spacingAfterName.length===0,K=0,P=O.htmlAttributes;K<P.length;K++){var Y=P[K];q&&this._writeContent(" "),this._renderNode(Y),q=Y.spacingAfterValue===void 0||Y.spacingAfterValue.length===0}this._writeContent(O.selfClosingTag?"/>":">");break;case g.InheritDocTag:var xe=t;this._renderInlineTag(xe,function(){xe.declarationReference&&(r._writeContent(" "),r._renderNode(xe.declarationReference))});break;case g.InlineTag:var ye=t;this._renderInlineTag(ye,function(){ye.tagContent.length>0&&(r._writeContent(" "),r._writeContent(ye.tagContent))});break;case g.LinkTag:var re=t;this._renderInlineTag(re,function(){(re.urlDestination!==void 0||re.codeDestination!==void 0)&&(re.urlDestination!==void 0?(r._writeContent(" "),r._writeContent(re.urlDestination)):re.codeDestination!==void 0&&(r._writeContent(" "),r._renderNode(re.codeDestination))),re.linkText!==void 0&&(r._writeContent(" "),r._writeContent("|"),r._writeContent(" "),r._writeContent(re.linkText))});break;case g.MemberIdentifier:var _t=t;_t.hasQuotes?(this._writeContent('"'),this._writeContent(_t.identifier),this._writeContent('"')):this._writeContent(_t.identifier);break;case g.MemberReference:var Ie=t;Ie.hasDot&&this._writeContent("."),Ie.selector&&this._writeContent("("),Ie.memberSymbol?this._renderNode(Ie.memberSymbol):this._renderNode(Ie.memberIdentifier),Ie.selector&&(this._writeContent(":"),this._renderNode(Ie.selector),this._writeContent(")"));break;case g.MemberSelector:var bi=t;this._writeContent(bi.selector);break;case g.MemberSymbol:var br=t;this._writeContent("["),this._renderNode(br.symbolReference),this._writeContent("]");break;case g.Section:var wi=t;this._renderNodes(wi.nodes);break;case g.Paragraph:var tr=qi.trimSpacesInParagraph(t);tr.nodes.length>0&&(this._hangingParagraph?this._hangingParagraph=!1:this._ensureLineSkipped(),this._renderNodes(tr.nodes),this._writeNewline());break;case g.ParamBlock:var x=t;this._ensureLineSkipped(),this._renderNode(x.blockTag),this._writeContent(" "),this._writeContent(x.parameterName),this._writeContent(" - "),this._hangingParagraph=!0,this._renderNode(x.content),this._hangingParagraph=!1;break;case g.ParamCollection:var I=t;this._renderNodes(I.blocks);break;case g.PlainText:var d=t;this._writeContent(d.text);break}},e.prototype._renderInlineTag=function(t,r){this._writeContent("{"),this._writeContent(t.tagName),r(),this._writeContent("}")},e.prototype._renderNodes=function(t){for(var r=0,i=t;r<i.length;r++
Line truncated
|
||||
`?(++r,i=1):++i)}return{line:r,column:i}},e.prototype._validateBounds=function(){if(this.pos<0)throw new Error("TextRange.pos cannot be negative");if(this.end<0)throw new Error("TextRange.end cannot be negative");if(this.end<this.pos)throw new Error("TextRange.end cannot be smaller than TextRange.pos");if(this.pos>this.buffer.length)throw new Error("TextRange.pos cannot exceed the associated text buffer length");if(this.end>this.buffer.length)throw new Error("TextRange.end cannot exceed the associated text buffer length")},e.empty=new e("",0,0),e}();var pr=function(){function e(t){this.messageId=t.messageId,this.unformattedText=t.messageText,this.textRange=t.textRange,this.tokenSequence=t.tokenSequence,this.docNode=t.docNode,this._text=void 0}return e._formatMessageText=function(t,r){if(t||(t="An unknown error occurred"),r.pos!==0||r.end!==0){var i=r.getLocation(r.pos);if(i.line)return"(".concat(i.line,",").concat(i.column,"): ")+t}return t},Object.defineProperty(e.prototype,"text",{get:function(){return this._text===void 0&&(this._text=e._formatMessageText(this.unformattedText,this.textRange)),this._text},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.text},e}();var Ri=function(){function e(){this._messages=[]}return Object.defineProperty(e.prototype,"messages",{get:function(){return this._messages},enumerable:!1,configurable:!0}),e.prototype.addMessage=function(t){this._messages.push(t)},e.prototype.addMessageForTextRange=function(t,r,i){this.addMessage(new pr({messageId:t,messageText:r,textRange:i}))},e.prototype.addMessageForTokenSequence=function(t,r,i,n){this.addMessage(new pr({messageId:t,messageText:r,textRange:i.getContainingTextRange(),tokenSequence:i,docNode:n}))},e.prototype.addMessageForDocErrorText=function(t){var r;t.textExcerpt?r=t.textExcerpt:r=t.errorLocation,this.addMessage(new pr({messageId:t.messageId,messageText:t.errorMessage,textRange:r.getContainingTextRange(),tokenSequence:r,docNode:t}))},e}();var Vi=function(){function e(t,r){this.commentRange=Le.empty,this.lines=[],this.tokens=[],this.configuration=t,this.sourceRange=r,this.docComment=new Nr({configuration:this.configuration}),this.log=new Ri}return e}();var ut=function(){function e(t){this.parserContext=t.parserContext,this._startIndex=t.startIndex,this._endIndex=t.endIndex,this._validateBounds()}return e.createEmpty=function(t){return new e({parserContext:t,startIndex:0,endIndex:0})},Object.defineProperty(e.prototype,"startIndex",{get:function(){return this._startIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endIndex",{get:function(){return this._endIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokens",{get:function(){return this.parserContext.tokens.slice(this._startIndex,this._endIndex)},enumerable:!1,configurable:!0}),e.prototype.getNewSequence=function(t,r){return new e({parserContext:this.parserContext,startIndex:t,endIndex:r})},e.prototype.getContainingTextRange=function(){return this.isEmpty()?Le.empty:this.parserContext.sourceRange.getNewRange(this.parserContext.tokens[this._startIndex].range.pos,this.parserContext.tokens[this._endIndex-1].range.end)},e.prototype.isEmpty=function(){return this._startIndex===this._endIndex},e.prototype.toString=function(){return this.tokens.map(function(t){return t.toString()}).join("")},e.prototype._validateBounds=function(){if(this.startIndex<0)throw new Error("TokenSequence.startIndex cannot be negative");if(this.endIndex<0)throw new Error("TokenSequence.endIndex cannot be negative");if(this.endIndex<this.startIndex)throw new Error("TokenSequence.endIndex cannot be smaller than TokenSequence.startIndex");if(this.startIndex>this.parserContext.tokens.length)throw new Error("TokenSequence.startIndex cannot exceed the associated token array");if(this.endIndex>this.parserContext.tokens.length)throw new Error("TokenSequence.endIndex cannot exceed the associated token array")},e}();var ie;(function(e){e[e.BeginComment1=0]="BeginComment1",e[e.BeginComment2=1]="BeginComment2",e[e.CollectingFirstLine=2]="CollectingFirstLine",e[e.CollectingLine=3]="CollectingLine",e[e.AdvancingLine=4]="AdvancingLine",e[e.Done=5]="Done"})(ie||(ie={}));var wa=function(){function e(){}return e.extract=function(t){for(var r=t.sourceRange,i=r.buffer,n=0,a=0,s=0,c=0,l=r.pos,h=ie.BeginComment1,m=[];h!==ie.Done;){if(l>=r.end)switch(h){case ie.BeginComment1:case ie.BeginComment2:return t.log.addMessageForTextRange(w.CommentNotFound,'Expecting a "/**" comment',r),!1;default:return t.log.addMessageForTextRange(w.CommentMissingClosingDelimiter,"Unexpected end of input",r),!1}var _=i[l],E=l;++l;var O=l<r.end?i[l]:"";switch(h){case ie.BeginComment1:if(_==="/"&&O==="*")n=E,++l,h=ie.BeginComment2;else if(!e._whitespaceCharacterRegExp.test(_))return t.log.addMessageForTextRange(w.CommentOpeningDelimiterSyntax,'Expecting a leading "/**"',r.getNewRange(E,E+1)),!1;break;case ie.BeginComment2:if(_==="*")O===" "&&++l,s=l,c=l,h=ie.CollectingFirstLine
Line truncated
|
||||
`?((h!==ie.CollectingFirstLine||c>s)&&m.push(r.getNewRange(s,c)),s=l,c=l,h=ie.AdvancingLine):_==="*"&&O==="/"?(c>s&&m.push(r.getNewRange(s,c)),s=0,c=0,++l,a=l,h=ie.Done):e._whitespaceCharacterRegExp.test(_)||(c=l);break;case ie.AdvancingLine:_==="*"?O==="/"?(s=0,c=0,++l,a=l,h=ie.Done):(O===" "&&++l,s=l,c=l,h=ie.CollectingLine):_===`
|
||||
`?(m.push(r.getNewRange(E,E)),s=l):e._whitespaceCharacterRegExp.test(_)||(c=l,h=ie.CollectingLine);break}}return t.commentRange=r.getNewRange(n,a),t.lines=m,!0},e._whitespaceCharacterRegExp=/^\s$/,e}();var fr=function(){function e(){}return e.readTokens=function(t){e._ensureInitialized();for(var r=[],i=void 0,n=0,a=t;n<a.length;n++){var s=a[n];e._pushTokensForLine(r,s),i=s}return i?r.push(new wt(f.EndOfInput,i.getNewRange(i.end,i.end),i)):r.push(new wt(f.EndOfInput,Le.empty,Le.empty)),r},e.isPunctuation=function(t){return e._ensureInitialized(),e._punctuationTokens[t]||!1},e._pushTokensForLine=function(t,r){for(var i=r.buffer,n=r.end,a=r.pos,s=void 0,c=a;a<n;){var l=i.charCodeAt(a),h=e._charCodeMap[l];h===void 0&&(h=f.Other),s!==void 0&&h===s&&e._isMultiCharacterToken(s)||(s!==void 0&&t.push(new wt(s,r.getNewRange(c,a),r)),c=a,s=h),++a}s!==void 0&&t.push(new wt(s,r.getNewRange(c,a),r)),t.push(new wt(f.Newline,r.getNewRange(r.end,r.end),r))},e._isMultiCharacterToken=function(t){switch(t){case f.Spacing:case f.AsciiWord:case f.Other:return!0}return!1},e._ensureInitialized=function(){if(!e._charCodeMap){e._charCodeMap={},e._punctuationTokens={};for(var t=e._commonMarkPunctuationCharacters,r=0;r<t.length;++r){var i=t.charCodeAt(r);e._charCodeMap[i]=f.OtherPunctuation}for(var n={"\\":f.Backslash,"<":f.LessThan,">":f.GreaterThan,"=":f.Equals,"'":f.SingleQuote,'"':f.DoubleQuote,"/":f.Slash,"-":f.Hyphen,"@":f.AtSign,"{":f.LeftCurlyBracket,"}":f.RightCurlyBracket,"`":f.Backtick,".":f.Period,":":f.Colon,",":f.Comma,"[":f.LeftSquareBracket,"]":f.RightSquareBracket,"|":f.Pipe,"(":f.LeftParenthesis,")":f.RightParenthesis,"#":f.PoundSymbol,"+":f.Plus,$:f.DollarSign},a=0,s=Object.getOwnPropertyNames(n);a<s.length;a++){var c=s[a];e._charCodeMap[c.charCodeAt(0)]=n[c],e._punctuationTokens[n[c]]=!0}e._punctuationTokens[f.OtherPunctuation]=!0;for(var l=e._wordCharacters,r=0;r<l.length;++r){var i=l.charCodeAt(r);e._charCodeMap[i]=f.AsciiWord}e._charCodeMap[" ".charCodeAt(0)]=f.Spacing,e._charCodeMap[" ".charCodeAt(0)]=f.Spacing}},e._commonMarkPunctuationCharacters="!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~",e._wordCharacters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_",e}();var Hi=function(){function e(t,r){if(this._parserContext=t,this.tokens=t.tokens,r){if(r.parserContext!==this._parserContext)throw new Error("The embeddedTokenSequence must use the same parser context");this._readerStartIndex=r.startIndex,this._readerEndIndex=r.endIndex}else this._readerStartIndex=0,this._readerEndIndex=this.tokens.length;this._currentIndex=this._readerStartIndex,this._accumulatedStartIndex=this._readerStartIndex}return e.prototype.extractAccumulatedSequence=function(){if(this._accumulatedStartIndex===this._currentIndex)throw new Error("Parser assertion failed: The queue should not be empty when extractAccumulatedSequence() is called");var t=new ut({parserContext:this._parserContext,startIndex:this._accumulatedStartIndex,endIndex:this._currentIndex});return this._accumulatedStartIndex=this._currentIndex,t},e.prototype.isAccumulatedSequenceEmpty=function(){return this._accumulatedStartIndex===this._currentIndex},e.prototype.tryExtractAccumulatedSequence=function(){if(!this.isAccumulatedSequenceEmpty())return this.extractAccumulatedSequence()},e.prototype.assertAccumulatedSequenceIsEmpty=function(){if(!this.isAccumulatedSequenceEmpty()){var t=new ut({parserContext:this._parserContext,startIndex:this._accumulatedStartIndex,endIndex:this._currentIndex}),r=t.tokens.map(function(i){return i.toString()});throw new Error(`Parser assertion failed: The queue should be empty, but it contains:
|
||||
`+JSON.stringify(r))}},e.prototype.peekToken=function(){return this.tokens[this._currentIndex]},e.prototype.peekTokenKind=function(){return this._currentIndex>=this._readerEndIndex?f.EndOfInput:this.tokens[this._currentIndex].kind},e.prototype.peekTokenAfterKind=function(){return this._currentIndex+1>=this._readerEndIndex?f.EndOfInput:this.tokens[this._currentIndex+1].kind},e.prototype.peekTokenAfterAfterKind=function(){return this._currentIndex+2>=this._readerEndIndex?f.EndOfInput:this.tokens[this._currentIndex+2].kind},e.prototype.readToken=function(){if(this._currentIndex>=this._readerEndIndex)throw new Error("Cannot read past end of stream");var t=this.tokens[this._currentIndex];if(t.kind===f.EndOfInput)throw new Error("The EndOfInput token cannot be read");return this._currentIndex++,t},e.prototype.peekPreviousTokenKind=function(){return this._currentIndex===0?f.EndOfInput:this.tokens[this._currentIndex-1].kind},e.prototype.createMarker=function(){return this._currentIndex},e.prototype.backtrackToMarker=function(t){if(t>this._currentIndex)throw new Error("The marker has expired");this._currentIndex=t,t<this._accumulatedStartIndex&&(this._accumulatedStartIndex=t)},e}();var Jr=function(){return Jr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Jr.apply(this,arguments)};function hr(e){return e!==void 0&&Object.hasOwnProperty.call(e,"failureMessage")}var ka=function(){function e(t){this._parserContext=t,this._configuration=t.configuration,this._currentSection=t.docComment.summarySection}return e.prototype.parse=function(){for(var t=new Hi(this._parserContext),r=!1;!r;)switch(t.peekTokenKind()){case f.EndOfInput:r=!0;break;case f.Newline:this._pushAccumulatedPlainText(t),t.readToken(),this._pushNode(new Kr({parsed:!0,configuration:this._configuration,softBreakExcerpt:t.extractAccumulatedSequence()}));break;case f.Backslash:this._pushAccumulatedPlainText(t),this._pushNode(this._parseBackslashEscape(t));break;case f.AtSign:this._pushAccumulatedPlainText(t),this._parseAndPushBlock(t);break;case f.LeftCurlyBracket:{this._pushAccumulatedPlainText(t);var i=t.createMarker(),n=this._parseInlineTag(t),a=this._parserContext.docComment;if(n instanceof cr){var s=t.createMarker()-1;a.inheritDocTag===void 0?this._parserContext.docComment.inheritDocTag=n:this._pushNode(this._backtrackAndCreateErrorRange(t,i,s,w.ExtraInheritDocTag,"A doc comment cannot have more than one @inheritDoc tag"))}else this._pushNode(n);break}case f.RightCurlyBracket:this._pushAccumulatedPlainText(t),this._pushNode(this._createError(t,w.EscapeRightBrace,'The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag'));break;case f.LessThan:this._pushAccumulatedPlainText(t),t.peekTokenAfterKind()===f.Slash?this._pushNode(this._parseHtmlEndTag(t)):this._pushNode(this._parseHtmlStartTag(t));break;case f.GreaterThan:this._pushAccumulatedPlainText(t),this._pushNode(this._createError(t,w.EscapeGreaterThan,'The ">" character should be escaped using a backslash to avoid confusion with an HTML tag'));break;case f.Backtick:this._pushAccumulatedPlainText(t),t.peekTokenAfterKind()===f.Backtick&&t.peekTokenAfterAfterKind()===f.Backtick?this._pushNode(this._parseFencedCode(t)):this._pushNode(this._parseCodeSpan(t));break;default:t.readToken();break}this._pushAccumulatedPlainText(t),this._performValidationChecks()},e.prototype._performValidationChecks=function(){var t=this._parserContext.docComment;t.deprecatedBlock&&(Wr.hasAnyTextContent(t.deprecatedBlock)||this._parserContext.log.addMessageForTokenSequence(w.MissingDeprecationMessage,"The ".concat(t.deprecatedBlock.blockTag.tagName," block must include a deprecation message,")+" e.g. describing the recommended alternative",t.deprecatedBlock.blockTag.getTokenSequence(),t.deprecatedBlock)),t.inheritDocTag&&(t.remarksBlock&&this._parserContext.log.addMessageForTokenSequence(w.InheritDocIncompatibleTag,'A "'.concat(t.remarksBlock.blockTag.tagName,'" block must not be used, because that')+" content is provided by the @inheritDoc tag",t.remarksBlock.blockTag.getTokenSequence(),t.remarksBlock.blockTag),Wr.hasAnyTextContent(t.summarySection)&&this._parserContext.log.addMessageForTextRange(w.InheritDocIncompatibleSummary,"The summary section must not have any content, because that content is provided by the @inheritDoc tag",this._parserContext.commentRange))},e.prototype._validateTagDefinition=function(t,r,i,n,a){if(t){var s=t.syntaxKind===L.InlineTag;s!==i?i?this._parserContext.log.addMessageForTokenSequence(w.TagShouldNotHaveBraces,'The TSDoc tag "'.concat(r,'" is not an inline tag; it must not be enclosed in "{ }" braces'),n,a):this._parserContext.log.addMessageForTokenSequence(w.InlineTagMissingBraces,'The TSDoc tag "'.concat(r,'" is an inline tag; it must be enclosed in "{ }" braces'),n,a):this._parserContext.configuration.validation.reportUnsupportedTags&&(this._
Line truncated
|
||||
`,e.console_msg))});t.messageEl.appendChild(r)}var C=class extends Error{constructor(t,r){super(t);this.console_msg=r;this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}};async function de(e,t){try{return await e()}catch(r){return r instanceof C?le(r):le(new C(t,r instanceof Error?r.message:void 0)),null}}function je(e,t){try{return e()}catch(r){return le(new C(t,r instanceof Error?r.message:void 0)),null}}var me=$(require("obsidian"));function lt(e){return new Promise(t=>window.setTimeout(t,e))}function Ta(){return/(<%(?:-|_)?\s*[*~]{0,1})\+((?:.|\s)*?%>)/g}function Gi(e,t){t=(0,me.normalizePath)(t);let r=e.vault.getAbstractFileByPath(t);if(!r)throw new C(`Folder "${t}" doesn't exist`);if(!(r instanceof me.TFolder))throw new C(`${t} is a file, not a folder`);return r}function pt(e,t){t=(0,me.normalizePath)(t);let r=e.vault.getAbstractFileByPath(t);if(!r)throw new C(`File "${t}" doesn't exist`);if(!(r instanceof me.TFile))throw new C(`${t} is a folder, not a file`);return r}function Re(e,t){let r=Gi(e,t),i=[];return me.Vault.recurseChildren(r,n=>{n instanceof me.TFile&&i.push(n)}),i.sort((n,a)=>n.path.localeCompare(a.path)),i}async function Sa(e,t){return await Promise.all(t.map(async i=>{let n=await e.vault.cachedRead(i);return sc(i,n)}))}function sc(e,t){let r=Yi(t),i=new Ki(e);return i.description=r.description,i.returns=r.returns,i.arguments=r.arguments,i}function Yi(e){let r=new Ui().parseString(e);return{description:oc(r.docComment.summarySection),returns:cc(r.docComment.returnsBlock),arguments:uc(r.docComment.params)}}function oc(e){try{return e.nodes.map(r=>r.getChildNodes().filter(i=>i instanceof Me).map(i=>i.text).join(`
|
||||
`)).join(`
|
||||
`)}catch{return console.error("Failed to parse summary section"),""}}function cc(e){if(!e)return"";try{let t=e.content.nodes[0]?.getChildNodes()[0];return t instanceof Me?t.text.trim():""}catch{return""}}function uc(e){try{return e.blocks.map(i=>{let n=i.parameterName,a=i.content.getChildNodes()[0].getChildNodes().filter(s=>s instanceof Me).map(s=>s.text).join(" ");return new $i(n,a)})}catch{return[]}}function zi(e,t,r){if(r<0||r===e.length)return;let i=e.splice(t,1)[0];e.splice(r,0,i)}function ft(e){return e.workspace.activeEditor?.file??e.workspace.getActiveFile()}function Qr(e){let t=e.lastIndexOf("/");return t!==-1?e.slice(0,t):""}function Ca(e){let t=e.slice(e.lastIndexOf("/")+1),r=t.lastIndexOf(".");return r>0?t.slice(r+1).toLowerCase():""}function ue(e){return e!==null&&typeof e=="object"}var lc=/^[A-Za-z_$][\w$]*$/;function pc(e){return lc.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function dr(e){return e.map(pc).join("")}function Pa(e){let t=e.toString(),r=t.indexOf("(");return t.substring(r+1,t.indexOf(")")).replace(/ /g,"").split(",")}function Wi(e,t,r){let i=e.instanceOf(HTMLOListElement)?"li":"p",n=e.createEl(i),a=e.createEl("b",{text:t});return n.appendChild(a),n.appendChild(activeDocument.createTextNode(`: ${r}`)),n}function Ji(e,t){if(Object.keys(t).length!==0){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r))if(Object.prototype.hasOwnProperty.call(e,r)){let i=e[r],n=t[r];if(Array.isArray(i)||Array.isArray(n)){let a=Array.isArray(i)?i:[i],s=Array.isArray(n)?n:[n];e[r]=a.concat(s).unique()}else ue(i)&&ue(n)?Ji(i,n):n!=null&&n!==""&&(e[r]=n)}else e[r]=t[r]}}function Xr(e){let t={},r=(0,me.getFrontMatterInfo)(e);if(r.frontmatter)try{t=(0,me.parseYaml)(r.frontmatter)}catch{return{frontmatter:t,content:e}}return{frontmatter:t,content:e.slice(r.contentStart)}}var Zr=$(require("obsidian")),Qi=class extends Zr.ConfirmationModal{constructor(t,r,i,n){super(t);this.setTitle(r),this.modalEl.addClass("templater-confirm-dangerous-setting-modal"),this.contentEl.createEl("p",{text:i}),this.contentEl.createEl("p",{text:"Only enable this if you trust the current and future contents of this vault, including files you may later download, copy, or sync from other people.",cls:"mod-warning"}),this.contentEl.createEl("p",{text:"This setting is stored on this device only; enable it separately on each device where you use this vault."});let a;Zr.Platform.isMobile?this.addButton(s=>{a=s,s.setButtonText("I understand the risks, enable").setCta().onClick(async()=>{await n()})}):this.addCheckbox("I understand the risks",s=>{a.setDisabled(!s)}).addButton(s=>{a=s,s.setButtonText("Enable").setCta().setDisabled(!0).onClick(async()=>{await n()})}),this.addCancelButton()}};var Ut=$(require("obsidian"));var ei=$(require("obsidian"));var ge;(function(r){r[r.TemplateFiles=0]="TemplateFiles",r[r.ScriptFiles=1]="ScriptFiles"})(ge||(ge={}));var Xe=class extends ei.AbstractInputSuggest{constructor(t,r,i){super(r.app,t);this.inputEl=t;this.plugin=r;this.mode=i}get_folder(t){switch(t){case 0:return this.plugin.settings.templates_folder;case 1:return this.plugin.settings.user_scripts_folder}}get_error_msg(t){switch(t){case 0:return"Templates folder doesn't exist";case 1:return"User Scripts folder doesn't exist"}}getSuggestions(t){let r=je(()=>Re(this.plugin.app,this.get_folder(this.mode)),this.get_error_msg(this.mode));if(!r)return[];let i=[],n=t.toLowerCase();return r.forEach(a=>{a instanceof ei.TFile&&a.path.toLowerCase().includes(n)&&i.push(a)}),i.slice(0,1e3)}renderSuggestion(t,r){r.setText(t.path)}selectSuggestion(t){this.setValue(t.path),this.inputEl.trigger("input"),this.close()}};var Xi=class extends Ut.Modal{constructor(t,r,i,n){super(t);this.plugin=r;this.onSubmit=n;this.regex=i.regex,this.template=i.template}onOpen(){this.setTitle("File regex template"),this.modalEl.addClass("templater-file-regex-template-modal");let{contentEl:t}=this,r=new Ut.Setting(t).setName("File regex").setDesc("Regex to match on. Tests against full file path relative to the root of the vault, including file extension.").addText(n=>{n.setPlaceholder("File regex").setValue(this.regex).onChange(a=>{this.regex=a})}),i=new Ut.Setting(t).setName("Template").setDesc("Template to apply on match.").addText(n=>{new Xe(n.inputEl,this.plugin,ge.TemplateFiles),n.setPlaceholder("Template").setValue(this.template).onChange(a=>{this.template=a})});new Ut.Setting(t).addButton(n=>n.setButtonText("Done").setCta().onClick(async()=>{if(!this.regex){r.setErrorMessage("File regex cannot be empty");return}if(!this.template){i.setErrorMessage("Template cannot be empty");return}await this.onSubmit(this.regex,this.template),this.close()})).addButton(n=>n.setButtonText("Cancel").onClick(()=>this.close()))}onClose(){this.contentEl.empty()}};var Kt=$(require("obsidian"));var Ia=$(require("obsidian")),mr=class extends Ia.AbstractInputSuggest{constructor(t,r){super(t,r);this.inputEl=r}getSuggestions(t){let r=t.toLowerCase();return this.app.vault.getAllFolders().filter(n=>n
Line truncated
|
||||
> \u2014 ${l}`}catch{return new C("Error generating daily quote"),"Error generating daily quote"}}}generate_random_picture(){return async(t,r,i=!1)=>{try{let n=await this.getRequest(`https://templater-unsplash-2.fly.dev/${r?"?q="+r:""}`).then(s=>s.json),a=n.full;if(t&&!i)if(t.includes("x")){let[s,c]=t.split("x");a=a.concat(`&w=${s}&h=${c}`)}else a=a.concat(`&w=${t}`);return i?``:``}catch{return new C("Error generating random picture"),"Error generating random picture"}}}generate_request(){return async(t,r)=>{try{let n=(await this.getRequest(t)).json;return r&&n?r.split(".").reduce((a,s)=>{if(Object.prototype.hasOwnProperty.call(a,s))return a[s];throw new Error(`Path ${r} not found in the JSON response`)},n):n}catch(i){throw console.error(i),new C("Error fetching and extracting value")}}}};var dn=class extends he{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(t=>{t.e.offref(t)}),this.event_refs=[]}generate_on_all_templates_executed(){return t=>{let r=this.plugin.app.workspace.on("templater:all-templates-executed",async()=>{await lt(1),t()});r&&this.event_refs.push(r)}}};var mn=class extends he{constructor(){super(...arguments);this.name="frontmatter"}async create_static_templates(){}async create_dynamic_templates(){let t=this.plugin.app.metadataCache.getFileCache(this.config.target_file);this.dynamic_functions=new Map(Object.entries(t?.frontmatter||{}))}async teardown(){}};var He=$(require("obsidian"));var gn=class extends He.Modal{constructor(t,r,i,n,a){super(t);this.prompt_text=r;this.default_value=i;this.multi_line=n;this.select_default_value=a;this.submitted=!1}onOpen(){this.titleEl.setText(this.prompt_text),this.createForm()}onClose(){this.contentEl.empty(),this.submitted||this.reject(new C("Cancelled prompt"))}createForm(){let t=this.contentEl.createDiv();t.addClass("templater-prompt-div");let r;this.multi_line?r=new He.TextAreaComponent(t):r=new He.TextComponent(t);let i=this.contentEl.createDiv();i.addClass("templater-button-div");let n=new He.ButtonComponent(i);n.buttonEl.addClass("mod-cta"),n.setButtonText("Submit").onClick(a=>{this.resolveAndClose(a)}),this.value=this.default_value??"",r.inputEl.addClass("templater-prompt-input"),r.setPlaceholder("Type text here"),r.setValue(this.value),r.onChange(a=>this.value=a),r.inputEl.focus(),this.select_default_value&&r.inputEl.select(),r.inputEl.addEventListener("keydown",a=>this.enterCallback(a))}enterCallback(t){t.isComposing||t.keyCode===229||(this.multi_line?He.Platform.isDesktop&&t.key==="Enter"&&!t.shiftKey&&this.resolveAndClose(t):t.key==="Enter"&&this.resolveAndClose(t))}resolveAndClose(t){this.submitted=!0,t.preventDefault(),this.resolve(this.value),this.close()}async openAndGetValue(t,r){this.resolve=t,this.reject=r,this.open()}};var Ga=$(require("obsidian")),An=class extends Ga.FuzzySuggestModal{constructor(t,r,i,n,a,s){super(t);this.text_items=r;this.items=i;this.default_value=s;this.submitted=!1;this.containerEl.addClass("templater-suggester-modal"),this.setPlaceholder(n),a&&(this.limit=a)}getItems(){return this.items}onOpen(){super.onOpen(),this.default_value!==void 0&&(this.inputEl.value=this.getItemText(this.default_value),this.inputEl.dispatchEvent(new InputEvent("input")))}onClose(){this.submitted||this.reject(new C("Cancelled prompt"))}selectSuggestion(t,r){this.submitted=!0,this.close(),this.onChooseSuggestion(t,r)}getItemText(t){return this.text_items instanceof Function?this.text_items(t):this.text_items[this.items.indexOf(t)]||"Undefined Text Item"}onChooseItem(t){this.resolve(t)}async openAndGetValue(t,r){this.resolve=t,this.reject=r,this.open()}};var be=$(require("obsidian")),_n=class extends be.Modal{constructor(t,r,i,n,a,s){super(t);this.text_items=r;this.items=i;this.submitted=!1;this.selectedItems=[];this.setTitle(n),this.listEl=this.contentEl.createDiv("templater-multisuggester-list");let c=this.contentEl.createDiv("templater-multisuggester-div"),l=new be.TextComponent(c);l.inputEl.addClass("templater-multisuggester-input"),this.suggester=new Ya(t,l.inputEl,m=>this.getItemText(m),i,a).onSelect(m=>this.onChooseItem(m));let h=this.contentEl.createDiv("modal-button-container");new be.ButtonComponent(h).setButtonText("Save").setCta().onClick(()=>this.save()),new be.ButtonComponent(h).setButtonText("Cancel").onClick(()=>this.close()),s&&(this.selectedItems=s)}onOpen(){this.processSelectedItems()}display(){this.listEl.empty(),this.selectedItems.forEach(t=>{let r=this.listEl.createDiv("templater-multisuggester-list-item");r.createSpan("templater-multisuggester-list-item-name").setText(this.getItemText(t)),r.createDiv("clickable-icon templater-multisuggester-list-item-option-icon",i=>{(0,be.se
Line truncated
|
||||
});`],{type:"text/javascript"})),i=window,n=createEl("script");n.src=r;let a,s=l=>{l.filename===r&&(a=l.message)};window.addEventListener("error",s);let c;try{await new Promise(l=>{n.onload=()=>l(),n.onerror=()=>l(),document.head.appendChild(n)}),c=i[t]}finally{delete i[t],window.removeEventListener("error",s),n.remove(),URL.revokeObjectURL(r)}if(!c)throw new Error(a??"Could not evaluate script.");return c}var wn=class{constructor(t){this.plugin=t}async generate_user_script_functions(){let t=new Map,r=je(()=>Re(this.plugin.app,this.plugin.settings.user_scripts_folder),`Couldn't find user script folder "${this.plugin.settings.user_scripts_folder}"`);if(!r)return new Map;for(let i of r)i.extension.toLowerCase()==="js"&&await this.load_user_script_function(i,t);return t}async load_user_script_function(t,r){let i=l=>window.require&&window.require(l),n={},a={exports:n},s=await this.plugin.app.vault.read(t);try{(await dc(s))(i,a,n)}catch(l){throw new C(`Failed to load user script at "${t.path}".`,l instanceof Error?l.message:String(l))}let c=n.default??a.exports;if(!c)throw new C(`Failed to load user script at "${t.path}". No exports detected.`);if(typeof c=="function")r.set(t.basename,c);else if(typeof c=="object"&&c!==null){if(!Object.values(c).every(h=>typeof h=="function"))throw new C(`Exported object in "${t.path}" must contain only functions.`);r.set(t.basename,c)}else throw new C(`Invalid export in "${t.path}". Must be a function or object of functions.`)}async generate_object(){let t=await this.generate_user_script_functions();return Object.fromEntries(t)}};var kn=class{constructor(t){this.plugin=t;this.user_system_functions=new bn(t),this.user_script_functions=new wn(t)}async generate_object(t){let r={},i={};return Ve(this.plugin.app).enable_system_commands&&(r=await this.user_system_functions.generate_object(t)),this.plugin.settings.user_scripts_folder&&(i=await this.user_script_functions.generate_object()),{...r,...i}}};var mc=$(require("obsidian")),Ue;(function(r){r[r.INTERNAL=0]="INTERNAL",r[r.USER_INTERNAL=1]="USER_INTERNAL"})(Ue||(Ue={}));var jn=class{constructor(t){this.plugin=t;this.internal_functions=new vn(this.plugin),this.user_functions=new kn(this.plugin)}async init(){await this.internal_functions.init()}async teardown(){await this.internal_functions.teardown()}additional_functions(){return{app:this.plugin.app,obsidian:mc}}async generate_object(t,r=1){let i={},n=this.additional_functions(),a=await this.internal_functions.generate_object(t),s={};switch(Object.assign(i,n),r){case 0:Object.assign(i,a);break;case 1:s=await this.user_functions.generate_object(t),Object.assign(i,{...a,user:s});break}return i}};var jc={},S,Fe=new Array(32).fill(void 0);Fe.push(void 0,null,!0,!1);function we(e){return Fe[e]}var Ar=Fe.length;function gc(e){e<36||(Fe[e]=Ar,Ar=e)}function En(e){let t=we(e);return gc(e),t}var za=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});za.decode();var ni=new Uint8Array;function ai(){return ni.byteLength===0&&(ni=new Uint8Array(S.memory.buffer)),ni}function ht(e,t){return za.decode(ai().subarray(e,e+t))}function dt(e){Ar===Fe.length&&Fe.push(Fe.length+1);let t=Ar;return Ar=Fe[t],Fe[t]=e,t}var Be=0,si=new TextEncoder("utf-8"),Ac=typeof si.encodeInto=="function"?function(e,t){return si.encodeInto(e,t)}:function(e,t){let r=si.encode(e);return t.set(r),{read:e.length,written:r.length}};function rt(e,t,r){if(r===void 0){let c=si.encode(e),l=t(c.length);return ai().subarray(l,l+c.length).set(c),Be=c.length,l}let i=e.length,n=t(i),a=ai(),s=0;for(;s<i;s++){let c=e.charCodeAt(s);if(c>127)break;a[n+s]=c}if(s!==i){s!==0&&(e=e.slice(s)),n=r(n,i,i=s+e.length*3);let c=ai().subarray(n+s,n+i);s+=Ac(e,c).written}return Be=s,n}function _c(e){return e==null}var oi=new Int32Array;function ke(){return oi.byteLength===0&&(oi=new Int32Array(S.memory.buffer)),oi}function Tn(e){let t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){let n=e.description;return n==null?"Symbol":`Symbol(${n})`}if(t=="function"){let n=e.name;return typeof n=="string"&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){let n=e.length,a="[";n>0&&(a+=Tn(e[0]));for(let s=1;s<n;s++)a+=", "+Tn(e[s]);return a+="]",a}let r=/\[object ([^\]]+)\]/.exec(toString.call(e)),i;if(r.length>1)i=r[1];else return toString.call(e);if(i=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
||||
${e.stack}`:i}function xc(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}var ci=32;function yc(e){if(ci==1)throw new Error("out of js stack");return Fe[--ci]=e,ci}function Sn(e,t){try{return e.apply(this,t)}catch(r){S.__wbindgen_exn_store(dt(r))}}var St=class{static __wrap(t){let r=Object.create(St.prototype);return r.ptr=t,r}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();S.__wbg_parserconfig_free(t)}get interpolate(){let t=S.__wbg_get_parserconfig_interpolate(this.ptr);return String.fromCodePoint(t)}set interpolate(t){S.__wbg_set_parserconfig_interpolate(this.ptr,t.codePointAt(0))}get execution(){let t=S.__wbg_get_parserconfig_execution(this.ptr);return String.fromCodePoint(t)}set execution(t){S.__wbg_set_parserconfig_execution(this.ptr,t.codePointAt(0))}get single_whitespace(){let t=S.__wbg_get_parserconfig_single_whitespace(this.ptr);return String.fromCodePoint(t)}set single_whitespace(t){S.__wbg_set_parserconfig_single_whitespace(this.ptr,t.codePointAt(0))}get multiple_whitespace(){let t=S.__wbg_get_parserconfig_multiple_whitespace(this.ptr);return String.fromCodePoint(t)}set multiple_whitespace(t){S.__wbg_set_parserconfig_multiple_whitespace(this.ptr,t.codePointAt(0))}constructor(t,r,i,n,a,s,c){let l=rt(t,S.__wbindgen_malloc,S.__wbindgen_realloc),h=Be,m=rt(r,S.__wbindgen_malloc,S.__wbindgen_realloc),_=Be,E=rt(c,S.__wbindgen_malloc,S.__wbindgen_realloc),O=Be,q=S.parserconfig_new(l,h,m,_,i.codePointAt(0),n.codePointAt(0),a.codePointAt(0),s.codePointAt(0),E,O);return St.__wrap(q)}get opening_tag(){try{let i=S.__wbindgen_add_to_stack_pointer(-16);S.parserconfig_opening_tag(i,this.ptr);var t=ke()[i/4+0],r=ke()[i/4+1];return ht(t,r)}finally{S.__wbindgen_add_to_stack_pointer(16),S.__wbindgen_free(t,r)}}set opening_tag(t){let r=rt(t,S.__wbindgen_malloc,S.__wbindgen_realloc),i=Be;S.parserconfig_set_opening_tag(this.ptr,r,i)}get closing_tag(){try{let i=S.__wbindgen_add_to_stack_pointer(-16);S.parserconfig_closing_tag(i,this.ptr);var t=ke()[i/4+0],r=ke()[i/4+1];return ht(t,r)}finally{S.__wbindgen_add_to_stack_pointer(16),S.__wbindgen_free(t,r)}}set closing_tag(t){let r=rt(t,S.__wbindgen_malloc,S.__wbindgen_realloc),i=Be;S.parserconfig_set_closing_tag(this.ptr,r,i)}get global_var(){try{let i=S.__wbindgen_add_to_stack_pointer(-16);S.parserconfig_global_var(i,this.ptr);var t=ke()[i/4+0],r=ke()[i/4+1];return ht(t,r)}finally{S.__wbindgen_add_to_stack_pointer(16),S.__wbindgen_free(t,r)}}set global_var(t){let r=rt(t,S.__wbindgen_malloc,S.__wbindgen_realloc),i=Be;S.parserconfig_set_global_var(this.ptr,r,i)}},zt=class{static __wrap(t){let r=Object.create(zt.prototype);return r.ptr=t,r}__destroy_into_raw(){let t=this.ptr;return this.ptr=0,t}free(){let t=this.__destroy_into_raw();S.__wbg_renderer_free(t)}constructor(t){xc(t,St);var r=t.ptr;t.ptr=0;let i=S.renderer_new(r);return zt.__wrap(i)}render_content(t,r){try{let s=S.__wbindgen_add_to_stack_pointer(-16),c=rt(t,S.__wbindgen_malloc,S.__wbindgen_realloc),l=Be;S.renderer_render_content(s,this.ptr,c,l,yc(r));var i=ke()[s/4+0],n=ke()[s/4+1],a=ke()[s/4+2];if(a)throw En(n);return En(i)}finally{S.__wbindgen_add_to_stack_pointer(16),Fe[ci++]=void 0}}};async function vc(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(i){if(e.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",i);else throw i}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}}function bc(){let e={};return e.wbg={},e.wbg.__wbindgen_object_drop_ref=function(t){En(t)},e.wbg.__wbindgen_string_new=function(t,r){let i=ht(t,r);return dt(i)},e.wbg.__wbindgen_string_get=function(t,r){let i=we(r),n=typeof i=="string"?i:void 0;var a=_c(n)?0:rt(n,S.__wbindgen_malloc,S.__wbindgen_realloc),s=Be;ke()[t/4+1]=s,ke()[t/4+0]=a},e.wbg.__wbg_call_97ae9d8645dc388b=function(){return Sn(function(t,r){let i=we(t).call(we(r));return dt(i)},arguments)},e.wbg.__wbg_new_8d2af00bc1e329ee=function(t,r){let i=new Error(ht(t,r));return dt(i)},e.wbg.__wbg_message_fe2af63ccc8985bc=function(t){let r=we(t).message;return dt(r)},e.wbg.__wbg_newwithargs_8fe23e3842840c8e=function(t,r,i,n){let a=new Function(ht(t,r),ht(i,n));return dt(a)},e.wbg.__wbg_call_168da88779e35f61=function(){return Sn(function(t,r,i){let n=we(t).call(we(r),we(i));return dt(n)},arguments)},e.wbg.__wbg_call_3999bee59e9f7719=function(){return Sn(function(t,r,i,n){let a=we(t).call(we(r),we(i),we(n));return dt(a)},arguments)},e.wbg.__wbindgen_debug_string=function(t,r){let i=Tn(we(r)),n=rt(i,S.__wbindgen_malloc,S.__wbindgen_realloc),a=Be;ke
Line truncated
|
||||
${(0,X.stringifyYaml)(c)}---
|
||||
`),l+=s+n,l}async overwrite_active_file_commands(){let t=this.plugin.app.workspace.activeEditor;if(!t||!t.file){le(new C("Active editor is null, can't overwrite content"));return}await this.overwrite_file_commands(t.file,!0)}async overwrite_file_commands(t,r=!1){let{path:i}=t;this.start_templater_task(i);let n=this.create_running_config(t,t,r?3:2),a=await de(async()=>this.read_and_parse_template(n),"Template parsing error, aborting.");if(a==null){await this.end_templater_task(i);return}await this.plugin.app.vault.modify(t,a),this.plugin.app.workspace.trigger("templater:overwrite-file",{file:t,content:a}),await this.plugin.editor_handler.jump_to_next_cursor_location(t,!0),await this.end_templater_task(i)}async process_dynamic_templates(t,r){let i=Ta(),n=activeDocument.createNodeIterator(t,NodeFilter.SHOW_TEXT),a,s=!1,c;for(;a=n.nextNode();){let l=a.nodeValue;if(l!==null){let h=i.exec(l);if(h!==null){let m=this.plugin.app.metadataCache.getFirstLinkpathDest("",r.sourcePath);if(!m||!(m instanceof X.TFile))return;if(!s){s=!0;let _=this.create_running_config(m,m,4);c=await this.functions_generator.generate_object(_,Ue.USER_INTERNAL),this.current_functions_object=c}}for(;h!=null;){let m=h[1]+h[2],_=await de(async()=>await this.parser.parse_commands(m,c),`Command Parsing error in dynamic command '${m}'`);if(_==null)return;let E=i.lastIndex-h[0].length,O=i.lastIndex;l=l.substring(0,E)+_+l.substring(O),i.lastIndex+=_.length-h[0].length,h=i.exec(l)}a.nodeValue=l}}}get_new_file_template_for_folder(t,r){let i=t;for(;i instanceof X.TFolder;){let n=i,a=this.plugin.settings.folder_templates.find(s=>s.folder==n.path&&(r===void 0||Xa(s.template,r)));if(a&&a.template)return a.template;i=i.parent}}get_new_file_template_for_file(t){let r=this.plugin.settings.file_templates.find(i=>new RegExp(i.regex).test(t.path)&&Xa(i.template,t.extension));if(r&&r.template)return r.template}static async on_file_creation(t,r,i){if(!Ve(r).trigger_on_file_creation||!(i instanceof X.TFile))return;let n=i.extension==="md",a=t.plugin.settings.trigger_on_file_creation_mode;if(!n&&a!=="folder"&&a!=="regex")return;let s=(0,X.normalizePath)(t.plugin.settings.templates_folder);if(i.path.includes(s)&&s!=="/")return;for(let h of t.plugin.settings.ignore_folders_on_creation){let m=(0,X.normalizePath)(h.folder);if(i.path.startsWith(m)&&m!=="")return}if(await lt(300),t.files_with_pending_templates.has(i.path)||!n&&i.stat.size!==0)return;let c=await r.vault.read(i),l=n?c.length-(0,X.getFrontMatterInfo)(c).contentStart:c.length;if(l==0&&a==="folder"){if(!(i.parent instanceof X.TFolder))return;let h=t.get_new_file_template_for_folder(i.parent,i.extension);if(!h)return;let m=await de(async()=>pt(r,h),`Couldn't find template ${h}`);if(m==null)return;await t.write_template_to_file(m,i)}else if(l==0&&a==="regex"){let h=t.get_new_file_template_for_file(i);if(!h)return;let m=await de(async()=>pt(r,h),`Couldn't find template ${h}`);if(m==null)return;await t.write_template_to_file(m,i)}else if(n){let h=1e5;i.stat.size<=h?await t.overwrite_file_commands(i):console.debug(`Templater skipped parsing ${i.path} because file size exceeds ${h}`)}}async execute_startup_scripts(){if(!!Ve(this.plugin.app).enable_startup_templates)for(let t of this.plugin.settings.startup_templates){if(!t)continue;let r=je(()=>pt(this.plugin.app,t),`Couldn't find startup template "${t}"`);if(!r)continue;let{path:i}=r;this.start_templater_task(i);let n=this.create_running_config(r,r,5);await de(async()=>this.read_and_parse_template(n),"Startup Template parsing error, aborting."),await this.end_templater_task(i)}}};var Jt=$(require("obsidian"));var ui=class{constructor(t,r){this.plugin=t;this.templater=r}async setup(){this.plugin.app.workspace.onLayoutReady(async()=>{if(Ve(this.plugin.app).trigger_on_file_creation&&this.plugin.app.vault.getConfig("openBehavior")==="daily"){let r=this.plugin.app.internalPlugins.getEnabledPluginById("daily-notes");if(r){let{folder:i,format:n}=r.options,a=(0,Jt.normalizePath)(`${i}/${(0,Jt.moment)().format(n)}.md`),s=ft(this.plugin.app);s?.path===a&&await Wt.on_file_creation(this.templater,this.plugin.app,s)}}this.plugin.registerEvent(this.plugin.app.vault.on("create",t=>Wt.on_file_creation(this.templater,this.plugin.app,t)))}),await this.update_syntax_highlighting(),this.update_file_menu()}async update_syntax_highlighting(){let t=this.plugin.editor_handler.desktopShouldHighlight(),r=this.plugin.editor_handler.mobileShouldHighlight();t||r?await this.plugin.editor_handler.enable_highlighter():await this.plugin.editor_handler.disable_highlighter()}update_file_menu(){this.plugin.registerEvent(this.plugin.app.workspace.on("file-menu",(t,r)=>{r instanceof Jt.TFolder&&t.addItem(i=>{i.setTitle("Create new note from template").setIcon("templater-icon").onClick(()=>{this.plugin.fuzzy_suggester.create_new_note_from_template(r)})})}))}};var Pn=$(require("obsidian"));var In=class{constructor(t){this.plugin=t;this.registered_hotkey_templates=new Set}setup(){this.plugin.addCommand(
Line truncated
|
||||
`,s+1))!==-1;n++,a=s);a+=1;let c=t.slice(a,r).length;return{line:n,ch:c}}get_cursor_matches_and_positions(t){let r=/<%\s*tp\.file\.cursor\((?<order>(?:-?[0-9]+(?:\.[0-9]+)?)?)\)\s*%>/g,i=[],n;for(;(n=r.exec(t))!==null;)i.push(n);if(i.length===0)return{};let a=_=>Number(_.groups?.order||0),s=_=>(_.groups?.order??"")===""?"":String(a(_));i.sort((_,E)=>a(_)-a(E));let c=s(i[0]),l=c===""?[i[0]]:i.filter(_=>s(_)===c),h=[],m=0;for(let _ of l){let E=_.index-m;h.push(this.get_editor_position_from_index(t,E)),t=t.slice(0,E)+t.slice(E+_[0].length),m+=_[0].length}return{cursor_matches:l,positions:h}}};var Ys=$(require("obsidian"));var Tc=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Za=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Sc="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80
Line truncated
|
||||
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),as(t.onToken)){var i=t.onToken;t.onToken=function(n){return i.push(n)}}if(as(t.onComment)&&(t.onComment=Oc(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function Oc(e,t){return function(r,i,n,a,s,c){var l={type:r?"Block":"Line",value:i,start:n,end:a};e.locations&&(l.loc=new li(this,s,c)),e.ranges&&(l.range=[n,a]),t.push(l)}}var Ct=1,Pt=2,Ln=4,us=8,Rn=16,ls=32,pi=64,ps=128,It=256,xr=512,fs=1024,fi=Ct|Pt|It;function Vn(e,t){return Pt|(e?Ln:0)|(t?us:0)}var hi=0,Hn=1,nt=2,hs=3,ds=4,ms=5,ne=function(t,r,i){this.options=t=Bc(t),this.sourceFile=t.sourceFile,this.keywords=gt(Cc[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=Mn[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=gt(n);var a=(n?n+" ":"")+Mn.strict;this.reservedWordsStrict=gt(a),this.reservedWordsStrictBind=gt(a+" "+Mn.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
||||
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_e).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||t.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Pt:Ct),this.regexpState=null,this.privateNameStack=[]},Se={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ne.prototype.parse=function(){var t=this,r=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(r)})};Se.inFunction.get=function(){return(this.currentVarScope().flags&Pt)>0};Se.inGenerator.get=function(){return(this.currentVarScope().flags&us)>0};Se.inAsync.get=function(){return(this.currentVarScope().flags&Ln)>0};Se.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(It|xr))return!1;if(r&Pt)return(r&Ln)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Se.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ct)};Se.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&pi)>0||this.options.allowSuperOutsideMethod};Se.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ps)>0};Se.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Se.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],r=t.flags;if(r&(It|xr)||r&Pt&&!(r&Rn))return!0}return!1};Se.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&fs||!this.inModule&&t&Ct)};Se.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&It)>0};ne.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,n=0;n<t.length;n++)i=t[n](i);return i};ne.parse=function(t,r){return new this(r,t).parse()};ne.parseExpressionAt=function(t,r,i){var n=new this(i,t,r);return n.nextToken(),n.parseExpression()};ne.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(ne.prototype,Se);var pe=ne.prototype,qc=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pe.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){se.lastIndex=e,e+=se.exec(this.input)[0].length;var t=qc.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){se.lastIndex=e+t[0].length;var r=se.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return n===";"||n==="}"||_e.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,se.lastIndex=e,e+=se.exec(this.input)[0].length,this.input[e]===";"&&e++}};pe.eat=function(e){return this.type===e?(this.next(),!0):!1};pe.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};pe.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};pe.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};pe.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};pe.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||_e.test(this.input.slice(this.lastTokEnd,this.start))};pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};pe.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};pe.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};pe.expect=function(e){this.eat(e)||this.unexpected()};pe.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var di=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pe.checkPatternErrors=function(e,t){if(!!e)Line truncated
|
||||
`),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
||||
`),cooked:this.value},this.next(),r.tail=this.type===u.backQuote,this.finishNode(r,"TemplateElement")};D.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(u.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};D.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!_e.test(this.input.slice(this.lastTokEnd,this.start))};D.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,n,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};D.parseProperty=function(e,t){var r=this.startNode(),i,n,a,s;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,s=this.startLoc),e||(i=this.eat(u.star)));var c=this.containsEsc;return this.parsePropertyName(r),!e&&!c&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,e,i,n,a,s,t,c),this.finishNode(r,"Property")};D.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=e.kind==="get"?0:1;if(e.value.params.length!==r){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};D.parsePropertyValue=function(e,t,r,i,n,a,s,c){(r||i)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,i),e.kind="init"):!t&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq?((r||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),t?e.value=this.parseMaybeDefault(n,a,this.copyNode(e.key)):this.type===u.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};D.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};D.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};D.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Vn(t,i.generator)|pi|(r?ps:0)),this.expect(u.parenL),i.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(i,"FunctionExpression")};D.parseArrowExpression=function(e,t,r,i){var n=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(Vn(r,!1)|Rn),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos
Line truncated
|
||||
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};B.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
||||
`&&++this.pos;case`
|
||||
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};B.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
||||
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return it(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return Qt(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};B.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};B.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(mt(n,i))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?$e:mt)(s,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=it(s),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};B.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=On[e]),this.finishToken(t,e)};var uu="8.17.0";ne.acorn={Parser:ne,version:uu,defaultOptions:qn,Position:_r,SourceLocation:li,getLineInfo:os,Node:Ai,TokenType:U,tokTypes:u,keywordTypes:On,TokContext:Oe,tokContexts:Z,isIdentifierChar:mt,isIdentifierStart:$e,Token:Yn,isNewLine:Qt,lineBreak:_e,lineBreakG:Dc,nonASCIIwhitespace:is};function zn(e,t){return ne.parse(e,t)}var lu={app:{name:"app",description:"This module exposes the app instance. Prefer to use this over the global app instance."},user:{name:"user",description:"This module exposes custom made scripts, written by yourself within the script file folder location"},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 | string, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to the [Momentjs 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 to use instead of today's date, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to the [Momentjs 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 the [Momentjs 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 the [Momentjs 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 the [Momentjs 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 reference date to use instead of today, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to the [Momentjs 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.f
Line truncated
|
||||
|
||||
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.
|
||||
The order can be any number, including a decimal one, so you can insert a new jump between two existing ones without renumbering them, e.g. 1.5 jumps after 1 and before 2.
|
||||
`}],examples:[{name:"File cursor",example:"<% tp.file.cursor() %>"},{name:"File multi-cursor",example:"<% tp.file.cursor(1) %>Content<% tp.file.cursor(1) %>"},{name:"File cursor with a decimal order",example:"<% tp.file.cursor(1) %>Content<% tp.file.cursor(1.5) %>Content<% tp.file.cursor(2) %>"}]},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 | 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:'<% await tp.file.include("[[Template1]]") %>'},{name:"File include TFile",example:'<% await tp.file.include(tp.file.find_tfile("MyFile")) %>'},{name:"File include section",example:'<% await tp.file.include("[[MyFile#Section1]]") %>'},{name:"File include block",example:'<% await 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 %>"}]}
Line truncated
|
||||
let value = await tp.system.prompt("Please enter a value");
|
||||
%>
|
||||
# <% value %>
|
||||
selected value: <% value %>`}]},suggester:{name:"suggester",description:"Spawns a suggester prompt and returns the user's chosen item.",definition:'tp.system.suggester(text_items: string[] | ((item: T) => string), items: T[], throw_on_cancel: boolean = false, placeholder: string = "", limit?: number = undefined, default_value?: T = 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)."},{name:"default_value",description:"Default value to initialize the suggester with."}],examples:[{name:"Suggester",example:'<% await tp.system.suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester with mapping function (same as above example)",example:'<% await tp.system.suggester((item) => item, ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester for files",example:"[[<% (await tp.system.suggester((item) => item.basename, tp.app.vault.getMarkdownFiles())).basename %>]]"},{name:"Suggester for tags",example:'<% await tp.system.suggester(item => item, Object.keys(tp.app.metadataCache.getTags()).map(x => x.replace("#", ""))) %>'},{name:"Reuse value from suggester",example:`<%*
|
||||
let selectedValue = await tp.system.suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]);
|
||||
%>
|
||||
# <% selectedValue %>
|
||||
selected value: <% selectedValue %>`},{name:"Default value for the suggester",example:`<%*
|
||||
let selectedValue = await tp.system.suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"], false, "", undefined, "Confused");
|
||||
%>
|
||||
# <% selectedValue %>
|
||||
selected value: <% selectedValue %>`}]},multi_suggester:{name:"multi_suggester",description:"Spawns a suggester prompt that supports selecting multiple items and returns the user's chosen items.",definition:'tp.system.multi_suggester(text_items: string[] | ((item: T) => string), items: T[], throw_on_cancel: boolean = false, title: string = "", limit?: number = undefined, default_values?: T[] = 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:"title",description:"Text placed at the top of the modal."},{name:"limit",description:"Limit the number of items rendered at once (useful to improve performance when displaying large lists)."},{name:"default_values",description:"Default values to initialize the suggester with."}],examples:[{name:"Multi-suggester",example:'<% await tp.system.multi_suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>'},{name:"Multi-suggester with mapping function (same as above example)",example:'<% await tp.system.multi_suggester((item) => item, ["Happy", "Sad", "Confused"]) %>'},{name:"Multi-suggester for files",example:"<% (await tp.system.multi_suggester((item) => item.basename, tp.app.vault.getMarkdownFiles())).map(f => `[[${f.basename}]]`) %>"},{name:"Multi-suggester for tags",example:'<% await tp.system.multi_suggester(item => item, Object.keys(tp.app.metadataCache.getTags()).map(x => x.replace("#", ""))) %>'},{name:"Reuse value from multi-suggester",example:`<%*
|
||||
let selectedValues = await tp.system.multi_suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]);
|
||||
%>
|
||||
# <% selectedValues %>
|
||||
selected values: <% selectedValues %>`},{name:"Default value for the suggester",example:`<%*
|
||||
let selectedValue = await tp.system.multi_suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"], false, "", undefined, ["Happy", "Confused"]);
|
||||
%>
|
||||
# <% selectedValue %>
|
||||
selected value: <% selectedValue %>`}]}}},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 a daily quote as a callout. Without arguments it uses the language configured in Obsidian (via `getLanguage()`), falling back to English. English quotes come from `https://github.com/Zachatoo/quotes-database` and Spanish quotes from `https://github.com/wulflo/frases-inventario`.",definition:"tp.web.daily_quote(language?: string)",args:[{name:"language",description:'Optional language code (e.g. `"en"`, `"es"`) selecting the quotes database. Defaults to Obsidian\'s display language, falling back to English when no database is registered for that language.'}],examples:[{name:"Daily quote",example:"<% await tp.web.daily_quote() %>"},{name:"Daily quote in Spanish",example:'<% await tp.web.daily_quote("es") %>'}]},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:"<% await tp.web.random_picture() %>"},{name:"Random picture with size",example:'<% await tp.web.random_picture("200x200") %>'},{name:"Random picture with size and query",example:'<% await 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:'<% await tp.web.request("https://jsonplaceholder.typicode.com/todos/1") %>'},{name:"Request with path",example:'<% await tp.web.request("https://jsonplaceholder.typicode.com/todos", "0.title") %>'}]}}}},Hs={tp:lu};var pu=["app","config","date","file","frontmatter","hooks","obsidian","system","user","web"],fu=new Set(pu);function Us(e){return typeof e=="string"&&fu.has(e)}function Ks(e){return!!(e.definition||e.returns||e.args)}var Wn=class{constructor(t){this.plugin=t;this.documentation=Hs}get_all_modules_documentation(){let t=this.documentation.tp,r=Object.values(t);return(!this.plugin.settings||!this.plugin.settings.user_scripts_folder)&&(r=r.filter(i=>i.name!=="user")),r.map(i=>(i.queryPath=[i.name],i))}async get_all_functions_documentation(t,r){if(t==="app")return this.get_app_functions_documentation(this.plugin.app,r);if(t==="user"){if(!this.plugin.settings||!this.plugin.settings.user_scripts_folder)return;let i=await de(()=>Promise.resolve(Re(this.plugin.app,this.plugin.settings.user_scripts_folder).filter(c=>c.extension==="js")),"User Scripts folder doesn't exist");if(!i||i.length===0)return;let[n,...a]=r;if(a.length>0){let c=i.find(l=>l.basename===n);return c?hu(this.plugin,c,n):[]}let s=await de(()=>Sa(this.plugin.app,i),"Failed to parse user script documentation");return!s||s.length===0?void 0:s.reduce((c,l)=>[...c,{name:l.basename,queryPath:[l.basename],definition:"",description:l.description??"",returns:l.returns??"",args:Gs(l.arguments??[]),example:""}],[])}if(!!this.documentation.tp[t].functions)return Object.values(this.documentation.tp[t].functions).map(i=>(i.queryPath=[i.name],i))}get_app_functions_documentation(t,r){if(!ue(t))return[];let i=r;if(i.length===0)return[];let n=t;for(let c=0;c<i.length-1;c++){let l=i[c];if(l in n){let h=n[l];if(!ue(h))return[];n=h}}let a=i.slice(0,i.length-1),s=[];for(let c in n){let l=`tp${dr(["app",...a,c])}`;s.push({name:c,queryPath:[...a,c],definition:typeof n[c]=="function"?`${l}(${Pa(n[c]).join(", ")})`:l,description:"",returns:"",example:""})}return s}get_module_documentation(t){return this.documentation.tp[t]}get_function_documentation(t,r){return this.documentation.tp[t].functions[r]}get_argument_documentation(t,r,i){let n=this.get_function_documentation(t,r);return!n||!n.args?null:n.args[i]}};async function hu(e,t,r){let i=await e.app.vault.cachedRead(t),n=Au(i);return du(i).map(s=>{let c=n.get(s),l=c?.args?Object.keys(c.args):[];return{name:s,queryPath:[r,s],definition:`tp${dr(["user",r,s])}(${l.join(", ")})`,description:c?.description??"",returns:c?.returns??"",args:c?.args,example:""}})}function du(e){let t;try{t=zn(e,{ecmaVersion:"latest",sourceType:"module"})}catch{try{t=zn(e,{ecmaVersion:"latest",sourceType:"script",allowReturnOutsideFunction:!0})}catch{return[]}}if(!ue(t)||!A
Line truncated
|
||||
|
||||
/* nosourcemap */
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "templater-obsidian",
|
||||
"name": "Templater",
|
||||
"version": "2.26.0",
|
||||
"description": "Advanced templating and automation using handlebars-like syntax.",
|
||||
"minAppVersion": "1.13.0",
|
||||
"author": "SilentVoid",
|
||||
"authorUrl": "https://github.com/SilentVoid13",
|
||||
"fundingUrl": {
|
||||
"GitHub Sponser (Zachatoo, maintainer)": "https://github.com/sponsors/Zachatoo",
|
||||
"Ko-fi (Zachatoo, maintainer)": "https://ko-fi.com/zachatoo",
|
||||
"GitHub Sponser (SilentVoid13, creator)": "https://github.com/sponsors/SilentVoid13",
|
||||
"Paypal (SilentVoid13, creator)": "https://www.paypal.com/donate?hosted_button_id=U2SRGAFYXT32Q"
|
||||
},
|
||||
"helpUrl": "https://silentvoid13.github.io/Templater/",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
.templater-prompt-div,
|
||||
.templater-multisuggester-div {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.templater-prompt-input,
|
||||
.templater-multisuggester-input {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.templater-button-div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
textarea.templater-prompt-input {
|
||||
height: 10rem;
|
||||
}
|
||||
|
||||
.templater-ignore-folder-modal .modal-content input[type="text"],
|
||||
.templater-startup-template-modal .modal-content input[type="text"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
textarea.templater-prompt-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.templater-multisuggester-list {
|
||||
margin: 1.5em 0;
|
||||
|
||||
.templater-multisuggester-list-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.cm-s-obsidian .templater-command-bg {
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command {
|
||||
font-size: 0.85em;
|
||||
font-family: var(--font-monospace);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .templater-inline .cm-templater-command {
|
||||
background-color: var(--background-primary-alt);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-opening-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-closing-tag {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-interpolation-tag {
|
||||
color: var(--code-property, #008bff);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-templater-execution-tag {
|
||||
color: var(--code-function, #c0d700);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-keyword {
|
||||
color: var(--code-keyword, #00a7aa);
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-atom {
|
||||
color: var(--code-normal, #f39b35);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-value,
|
||||
.cm-s-obsidian .cm-templater-command.cm-number,
|
||||
.cm-s-obsidian .cm-templater-command.cm-type {
|
||||
color: var(--code-value, #a06fca);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-def,
|
||||
.cm-s-obsidian .cm-templater-command.cm-type.cm-def {
|
||||
color: var(--code-normal, var(--text-normal));
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-property,
|
||||
.cm-s-obsidian .cm-templater-command.cm-property.cm-def,
|
||||
.cm-s-obsidian .cm-templater-command.cm-attribute {
|
||||
color: var(--code-function, #98e342);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable,
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable-2,
|
||||
.cm-s-obsidian .cm-templater-command.cm-variable-3,
|
||||
.cm-s-obsidian .cm-templater-command.cm-meta {
|
||||
color: var(--code-property, #d4d4d4);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-callee,
|
||||
.cm-s-obsidian .cm-templater-command.cm-operator,
|
||||
.cm-s-obsidian .cm-templater-command.cm-qualifier,
|
||||
.cm-s-obsidian .cm-templater-command.cm-builtin {
|
||||
color: var(--code-operator, #fc4384);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-tag {
|
||||
color: var(--code-tag, #fc4384);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment,
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment.cm-tag,
|
||||
.cm-s-obsidian .cm-templater-command.cm-comment.cm-attribute {
|
||||
color: var(--code-comment, #696d70);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-string,
|
||||
.cm-s-obsidian .cm-templater-command.cm-string-2 {
|
||||
color: var(--code-string, #e6db74);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-header,
|
||||
.cm-s-obsidian .cm-templater-command.cm-hr {
|
||||
color: var(--code-keyword, #da7dae);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-link {
|
||||
color: var(--code-normal, #696d70);
|
||||
}
|
||||
|
||||
.cm-s-obsidian .cm-templater-command.cm-error {
|
||||
border-bottom: 1px solid #c42412;
|
||||
}
|
||||
|
||||
.CodeMirror-hints {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
|
||||
-webkit-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
|
||||
border-radius: 3px;
|
||||
border: 1px solid silver;
|
||||
|
||||
background: white;
|
||||
font-size: 90%;
|
||||
font-family: monospace;
|
||||
|
||||
max-height: 20em;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.CodeMirror-hint {
|
||||
margin: 0;
|
||||
padding: 0 4px;
|
||||
border-radius: 2px;
|
||||
white-space: pre;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
li.CodeMirror-hint-active {
|
||||
background: #0088ff;
|
||||
color: white;
|
||||
}
|
||||
Vendored
+76
-31
@@ -4,42 +4,27 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "97f6c2981c97c045",
|
||||
"id": "05a1d7ffeac2689a",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "d0867651da092994",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "30연대 26년도 예산.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "30연대 26년도 예산"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "410ec5aadcc30ec8",
|
||||
"id": "ff35c29e3faa6056",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "canvas",
|
||||
"state": {
|
||||
"file": "2026년 월력형 메모형 일정(2월).canvas",
|
||||
"viewState": {
|
||||
"x": 1667.3247504844805,
|
||||
"y": 86564.90550309507,
|
||||
"zoom": -0.44562031728046514
|
||||
"x": 1563.3659281404146,
|
||||
"y": 89103.33804490385,
|
||||
"zoom": -0.2820772448460468
|
||||
}
|
||||
},
|
||||
"icon": "lucide-layout-dashboard",
|
||||
"title": "2026년 월력형 메모형 일정(2월)"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 1
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
@@ -54,7 +39,7 @@
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical",
|
||||
"sortOrder": "byCreatedTime",
|
||||
"autoReveal": false,
|
||||
"showSearch": false,
|
||||
"searchQuery": ""
|
||||
@@ -69,7 +54,7 @@
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "section: 판쵸우의",
|
||||
"query": "Section:5271",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
@@ -123,7 +108,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "5a0c9d4c0a28ff0f",
|
||||
"id": "6736a867220d38de",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "mk-path-view",
|
||||
@@ -133,7 +118,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 1
|
||||
"currentTab": 0
|
||||
},
|
||||
"right": {
|
||||
"id": "7962c784afa9214c",
|
||||
@@ -186,9 +171,21 @@
|
||||
"icon": "lucide-list",
|
||||
"title": "개요"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fe98781638055b7c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-properties",
|
||||
"state": {
|
||||
"file": "2026년 월력형 메모형 일정(2월).canvas"
|
||||
},
|
||||
"icon": "lucide-info",
|
||||
"title": "파일 속성"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 0
|
||||
"currentTab": 3
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
@@ -201,14 +198,62 @@
|
||||
"bases:새 베이스 생성하기": false,
|
||||
"remotely-save:Remotely Save": false,
|
||||
"obsidian-kanban:새 보드 만들기": false,
|
||||
"notion-bases:Notion bases": false
|
||||
"notion-bases:Notion Bases": false,
|
||||
"obsidian-livesync:Replicate": false,
|
||||
"obsidian-livesync:Show Log": false,
|
||||
"templater-obsidian:Templater": false,
|
||||
"obsidian-livesync:사용자 설정 동기화 표시": false
|
||||
}
|
||||
},
|
||||
"active": "410ec5aadcc30ec8",
|
||||
"active": "ff35c29e3faa6056",
|
||||
"lastOpenFiles": [
|
||||
"30연대 26년도 예산.md",
|
||||
"30-1교육대 훈련병 배출주관.md",
|
||||
"2026년 월력형 메모형 일정(2월).canvas",
|
||||
"방독면 살균소독장비.md",
|
||||
"보안점검.md"
|
||||
"벙독면 세척기 설치.md",
|
||||
"26-3차 치장 화생방물자(보호의5호)불출 지시.md",
|
||||
"화생방 보호의 4호 수입.md",
|
||||
"방독면 연대재산 신품 49개 불출.md",
|
||||
"26년 전투장비지휘검열 연대 및 연대본부.md",
|
||||
"일일결산.md",
|
||||
"30연대 26년도 예산.md",
|
||||
"방독면휴대주머니 수입.md",
|
||||
"총기보관함 폐처리 반납.md",
|
||||
"2교육대 대형버스 배차 건의공문발송.md",
|
||||
"2교육대 대형버스 배차신청.md",
|
||||
"방독면 폐품 세트로 준비해야하는지 문의.md",
|
||||
"1교 총기탁본 교체 2정.md",
|
||||
"앰프불출.md",
|
||||
"연대 장비재산 참모인원들에게 뿌리기.md",
|
||||
"3교육대장 교체에 따른 총기수불.md",
|
||||
"총기일일결산.md",
|
||||
"피아식별용 IR 불출.md",
|
||||
"앰프 일련번호.md",
|
||||
"~~피아식별용 IR 불출.md",
|
||||
"총기 손질유 윤활유 보급.md",
|
||||
"매연 측정 대상차량 수송부 입고.md",
|
||||
"안일남상사님 행보관 인사명령 확인.md",
|
||||
"송준서, 박건하 전화번호.md",
|
||||
"Screenshot_20261023_092652_KakaoTalk.jpg",
|
||||
"Screenshot_20261023_092657_KakaoTalk 1.jpg",
|
||||
"Screenshot_20261023_092657_KakaoTalk.jpg",
|
||||
"2025년 월력형 메모형 일정.canvas",
|
||||
"Screenshot_20261022_094956_KakaoTalk.jpg",
|
||||
"1791945436466.jpg",
|
||||
"1791945436398.jpg",
|
||||
"1791945436332.jpg",
|
||||
"Resized_20260713_135741.jpeg",
|
||||
"2026년_10월_대형달력.canvas",
|
||||
"test.canvas",
|
||||
"2026-11-Calendar.canvas",
|
||||
"2026_new_일정관리/2026년_10월_대형달력.canvas",
|
||||
"테스트20261011.canvas",
|
||||
"2026_new_일정관리",
|
||||
".md",
|
||||
"schedule.db",
|
||||
"copilot/copilot-custom-prompts",
|
||||
"copilot/memory",
|
||||
"Tags/#copilot-conversation",
|
||||
"copilot/copilot-conversations",
|
||||
"copilot"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user