diff --git a/.makemd/fileCache.mdc b/.makemd/fileCache.mdc index fc551a3..4eea716 100644 Binary files a/.makemd/fileCache.mdc and b/.makemd/fileCache.mdc differ diff --git a/.makemd/superstate.mdc b/.makemd/superstate.mdc index f7a040c..5f54d52 100644 Binary files a/.makemd/superstate.mdc and b/.makemd/superstate.mdc differ diff --git a/.obsidian/plugins/notion-bases/main.js b/.obsidian/plugins/notion-bases/main.js index a1b73c4..22887d5 100644 --- a/.obsidian/plugins/notion-bases/main.js +++ b/.obsidian/plugins/notion-bases/main.js @@ -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 Jb=Object.create;var es=Object.defineProperty;var ey=Object.getOwnPropertyDescriptor;var ty=Object.getOwnPropertyNames;var ny=Object.getPrototypeOf,oy=Object.prototype.hasOwnProperty;var jo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ry=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},Xm=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ty(t))!oy.call(e,r)&&r!==n&&es(e,r,{get:()=>t[r],enumerable:!(o=ey(t,r))||o.enumerable});return e};var Fe=(e,t,n)=>(n=e!=null?Jb(ny(e)):{},Xm(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),ay=e=>Xm(es({},"__esModule",{value:!0}),e);var ff=jo(gt=>{"use strict";var Li=Symbol.for("react.element"),fy=Symbol.for("react.portal"),gy=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),vy=Symbol.for("react.provider"),by=Symbol.for("react.context"),yy=Symbol.for("react.forward_ref"),wy=Symbol.for("react.suspense"),Cy=Symbol.for("react.memo"),ky=Symbol.for("react.lazy"),nf=Symbol.iterator;function Sy(e){return e===null||typeof e!="object"?null:(e=nf&&e[nf]||e["@@iterator"],typeof e=="function"?e:null)}var af={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lf=Object.assign,sf={};function Fa(e,t,n){this.props=e,this.context=t,this.refs=sf,this.updater=n||af}Fa.prototype.isReactComponent={};Fa.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")};Fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uf(){}uf.prototype=Fa.prototype;function Ec(e,t,n){this.props=e,this.context=t,this.refs=sf,this.updater=n||af}var Dc=Ec.prototype=new uf;Dc.constructor=Ec;lf(Dc,Fa.prototype);Dc.isPureReactComponent=!0;var of=Array.isArray,cf=Object.prototype.hasOwnProperty,Fc={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function pf(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)cf.call(t,o)&&!df.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(l===1)r.children=n;else if(1{"use strict";gf.exports=ff()});var Nf=jo(Lt=>{"use strict";function Ic(e,t){var n=e.length;e.push(t);e:for(;0>>1,r=e[o];if(0>>1;ors(l,n))srs(d,l)?(e[o]=d,e[s]=n,o=s):(e[o]=l,e[i]=n,o=i);else if(srs(d,n))e[o]=d,e[s]=n,o=s;else break e}}return t}function rs(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_f=performance,Lt.unstable_now=function(){return _f.now()}):(Tc=Date,hf=Tc.now(),Lt.unstable_now=function(){return Tc.now()-hf});var _f,Tc,hf,Mo=[],lr=[],Dy=1,ro=null,hn=3,ls=!1,qr=!1,Ai=!1,yf=typeof setTimeout=="function"?setTimeout:null,wf=typeof clearTimeout=="function"?clearTimeout:null,vf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ac(e){for(var t=bo(lr);t!==null;){if(t.callback===null)is(lr);else if(t.startTime<=e)is(lr),t.sortIndex=t.expirationTime,Ic(Mo,t);else break;t=bo(lr)}}function Oc(e){if(Ai=!1,Ac(e),!qr)if(bo(Mo)!==null)qr=!0,zc($c);else{var t=bo(lr);t!==null&&Vc(Oc,t.startTime-e)}}function $c(e,t){qr=!1,Ai&&(Ai=!1,wf(Oi),Oi=-1),ls=!0;var n=hn;try{for(Ac(t),ro=bo(Mo);ro!==null&&(!(ro.expirationTime>t)||e&&!Sf());){var o=ro.callback;if(typeof o=="function"){ro.callback=null,hn=ro.priorityLevel;var r=o(ro.expirationTime<=t);t=Lt.unstable_now(),typeof r=="function"?ro.callback=r:ro===bo(Mo)&&is(Mo),Ac(t)}else is(Mo);ro=bo(Mo)}if(ro!==null)var a=!0;else{var i=bo(lr);i!==null&&Vc(Oc,i.startTime-t),a=!1}return a}finally{ro=null,hn=n,ls=!1}}var ss=!1,as=null,Oi=-1,Cf=5,kf=-1;function Sf(){return!(Lt.unstable_now()-kfe||125o?(e.sortIndex=n,Ic(lr,e),bo(Mo)===null&&e===bo(lr)&&(Ai?(wf(Oi),Oi=-1):Ai=!0,Vc(Oc,n-o))):(e.sortIndex=r,Ic(Mo,e),qr||ls||(qr=!0,zc($c))),e};Lt.unstable_shouldYield=Sf;Lt.unstable_wrapCallback=function(e){var t=hn;return function(){var n=hn;hn=t;try{return e.apply(this,arguments)}finally{hn=n}}}});var Rf=jo((ox,xf)=>{"use strict";xf.exports=Nf()});var Mh=jo(eo=>{"use strict";var Fy=xt(),Zn=Rf();function pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ud=Object.prototype.hasOwnProperty,My=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ef={},Df={};function Ty(e){return ud.call(Df,e)?!0:ud.call(Ef,e)?!1:My.test(e)?Df[e]=!0:(Ef[e]=!0,!1)}function Py(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ly(e,t,n,o){if(t===null||typeof t>"u"||Py(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dn(e,t,n,o,r,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var gn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gn[e]=new Dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gn[t]=new Dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gn[e]=new Dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gn[e]=new Dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gn[e]=new Dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gn[e]=new Dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gn[e]=new Dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gn[e]=new Dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gn[e]=new Dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var tp=/[\-:]([a-z])/g;function np(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(tp,np);gn[t]=new Dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(tp,np);gn[t]=new Dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(tp,np);gn[t]=new Dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!1,!1)});gn.xlinkHref=new Dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function op(e,t,n,o){var r=gn.hasOwnProperty(t)?gn[t]:null;(r!==null?r.type!==0:o||!(2()=>(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{"use strict";Nf.exports=Sf()});var Af=zo(Mt=>{"use strict";function jc(e,t){var n=e.length;e.push(t);e:for(;0>>1,r=e[o];if(0>>1;ous(l,n))sus(d,l)?(e[o]=d,e[s]=n,o=s):(e[o]=l,e[i]=n,o=i);else if(sus(d,n))e[o]=d,e[s]=n,o=s;else break e}}return t}function us(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(xf=performance,Mt.unstable_now=function(){return xf.now()}):(Vc=Date,Rf=Vc.now(),Mt.unstable_now=function(){return Vc.now()-Rf});var xf,Vc,Rf,Eo=[],ar=[],zy=1,eo=null,gn=3,ps=!1,Kr=!1,zi=!1,Ff=typeof setTimeout=="function"?setTimeout:null,Mf=typeof clearTimeout=="function"?clearTimeout:null,Ef=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Uc(e){for(var t=_o(ar);t!==null;){if(t.callback===null)ds(ar);else if(t.startTime<=e)ds(ar),t.sortIndex=t.expirationTime,jc(Eo,t);else break;t=_o(ar)}}function Wc(e){if(zi=!1,Uc(e),!Kr)if(_o(Eo)!==null)Kr=!0,qc(Gc);else{var t=_o(ar);t!==null&&Yc(Wc,t.startTime-e)}}function Gc(e,t){Kr=!1,zi&&(zi=!1,Mf(Vi),Vi=-1),ps=!0;var n=gn;try{for(Uc(t),eo=_o(Eo);eo!==null&&(!(eo.expirationTime>t)||e&&!Lf());){var o=eo.callback;if(typeof o=="function"){eo.callback=null,gn=eo.priorityLevel;var r=o(eo.expirationTime<=t);t=Mt.unstable_now(),typeof r=="function"?eo.callback=r:eo===_o(Eo)&&ds(Eo),Uc(t)}else ds(Eo);eo=_o(Eo)}if(eo!==null)var a=!0;else{var i=_o(ar);i!==null&&Yc(Wc,i.startTime-t),a=!1}return a}finally{eo=null,gn=n,ps=!1}}var ms=!1,cs=null,Vi=-1,Tf=5,Pf=-1;function Lf(){return!(Mt.unstable_now()-Pfe||125o?(e.sortIndex=n,jc(ar,e),_o(Eo)===null&&e===_o(ar)&&(zi?(Mf(Vi),Vi=-1):zi=!0,Yc(Wc,n-o))):(e.sortIndex=r,jc(Eo,e),Kr||ps||(Kr=!0,qc(Gc))),e};Mt.unstable_shouldYield=Lf;Mt.unstable_wrapCallback=function(e){var t=gn;return function(){var n=gn;gn=t;try{return e.apply(this,arguments)}finally{gn=n}}}});var Of=zo((fx,If)=>{"use strict";If.exports=Af()});var Bh=zo(Xn=>{"use strict";var Vy=wt(),Yn=Of();function pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hd=Object.prototype.hasOwnProperty,By=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$f={},zf={};function Hy(e){return hd.call(zf,e)?!0:hd.call($f,e)?!1:By.test(e)?zf[e]=!0:($f[e]=!0,!1)}function jy(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uy(e,t,n,o){if(t===null||typeof t>"u"||jy(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dn(e,t,n,o,r,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var dn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dn[e]=new Dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dn[t]=new Dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dn[e]=new Dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dn[e]=new Dn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dn[e]=new Dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dn[e]=new Dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dn[e]=new Dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dn[e]=new Dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dn[e]=new Dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var up=/[\-:]([a-z])/g;function cp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(up,cp);dn[t]=new Dn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(up,cp);dn[t]=new Dn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(up,cp);dn[t]=new Dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!1,!1)});dn.xlinkHref=new Dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dn[e]=new Dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function dp(e,t,n,o){var r=dn.hasOwnProperty(t)?dn[t]:null;(r!==null?r.type!==0:o||!(2l||r[i]!==a[l]){var s=` -`+r[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=l);break}}}finally{jc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gi(e):""}function Iy(e){switch(e.tag){case 5:return Gi(e.type);case 16:return Gi("Lazy");case 13:return Gi("Suspense");case 19:return Gi("SuspenseList");case 0:case 2:case 15:return e=Hc(e.type,!1),e;case 11:return e=Hc(e.type.render,!1),e;case 1:return e=Hc(e.type,!0),e;default:return""}}function md(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 La:return"Fragment";case Pa:return"Portal";case cd:return"Profiler";case rp:return"StrictMode";case dd:return"Suspense";case pd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ag:return(e.displayName||"Context")+".Consumer";case Ig:return(e._context.displayName||"Context")+".Provider";case ap:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ip:return t=e.displayName||null,t!==null?t:md(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return md(e(t))}catch{}}return null}function Ay(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 md(t);case 8:return t===rp?"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 kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $g(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oy(e){var t=$g(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 cs(e){e._valueTracker||(e._valueTracker=Oy(e))}function zg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=$g(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function $s(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 fd(e,t){var n=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=kr(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 Vg(e,t){t=t.checked,t!=null&&op(e,"checked",t,!1)}function gd(e,t){Vg(e,t);var n=kr(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")?_d(e,t.type,n):t.hasOwnProperty("defaultValue")&&_d(e,t.type,kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tf(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 _d(e,t,n){(t!=="number"||$s(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qi=Array.isArray;function Wa(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function il(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$y=["Webkit","ms","Moz","O"];Object.keys(Xi).forEach(function(e){$y.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xi[t]=Xi[e]})});function Ug(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xi.hasOwnProperty(e)&&Xi[e]?(""+t).trim():t+"px"}function Wg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Ug(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var zy=Wt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bd(e,t){if(t){if(zy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pe(62))}}function yd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wd=null;function lp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cd=null,Ga=null,qa=null;function If(e){if(e=Sl(e)){if(typeof Cd!="function")throw Error(pe(280));var t=e.stateNode;t&&(t=pu(t),Cd(e.stateNode,e.type,t))}}function Gg(e){Ga?qa?qa.push(e):qa=[e]:Ga=e}function qg(){if(Ga){var e=Ga,t=qa;if(qa=Ga=null,If(e),t)for(e=0;e>>=0,e===0?32:31-(Xy(e)/Qy|0)|0}var ps=64,ms=4194304;function Ki(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function js(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~r;l!==0?o=Ki(l):(a&=i,a!==0&&(o=Ki(a)))}else i=n&~r,i!==0?o=Ki(i):a!==0&&(o=Ki(a));if(o===0)return 0;if(t!==0&&t!==o&&(t&r)===0&&(r=o&-o,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Cl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-So(t),e[t]=n}function tw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=Zi),Uf=" ",Wf=!1;function m_(e,t){switch(e){case"keyup":return Dw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ia=!1;function Mw(e,t){switch(e){case"compositionend":return f_(t);case"keypress":return t.which!==32?null:(Wf=!0,Uf);case"textInput":return e=t.data,e===Uf&&Wf?null:e;default:return null}}function Tw(e,t){if(Ia)return e==="compositionend"||!gp&&m_(e,t)?(e=d_(),Ds=pp=mr=null,Ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kf(n)}}function v_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b_(){for(var e=window,t=$s();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$s(e.document)}return t}function _p(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bw(e){var t=b_(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&v_(n.ownerDocument.documentElement,n)){if(o!==null&&_p(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(o.start,r);o=o.end===void 0?a:Math.min(o.end,r),!e.extend&&a>o&&(r=o,o=a,a=r),r=Yf(n,a);var i=Yf(n,o);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Aa=null,Ed=null,el=null,Dd=!1;function Xf(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dd||Aa==null||Aa!==$s(o)||(o=Aa,"selectionStart"in o&&_p(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),el&&pl(el,o)||(el=o,o=Ws(Ed,"onSelect"),0za||(e.current=Id[za],Id[za]=null,za--)}function It(e,t){za++,Id[za]=e.current,e.current=t}var Sr={},wn=xr(Sr),On=xr(!1),ta=Sr;function Za(e,t){var n=e.type.contextTypes;if(!n)return Sr;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 $n(e){return e=e.childContextTypes,e!=null}function qs(){Ot(On),Ot(wn)}function ag(e,t,n){if(wn.current!==Sr)throw Error(pe(168));It(wn,t),It(On,n)}function E_(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,Ay(e)||"Unknown",r));return Wt({},n,o)}function Ks(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,ta=wn.current,It(wn,e),It(On,On.current),!0}function ig(e,t,n){var o=e.stateNode;if(!o)throw Error(pe(169));n?(e=E_(e,t,ta),o.__reactInternalMemoizedMergedChildContext=e,Ot(On),Ot(wn),It(wn,e)):Ot(On),It(On,n)}var Uo=null,mu=!1,ed=!1;function D_(e){Uo===null?Uo=[e]:Uo.push(e)}function Qw(e){mu=!0,D_(e)}function Rr(){if(!ed&&Uo!==null){ed=!0;var e=0,t=Mt;try{var n=Uo;for(Mt=1;e>=i,r-=i,Wo=1<<32-So(t)+r|n<j?(re=V,V=null):re=V.sibling;var ne=m(f,V,y[j],k);if(ne===null){V===null&&(V=re);break}e&&V&&ne.alternate===null&&t(f,V),_=a(ne,_,j),T===null?F=ne:T.sibling=ne,T=ne,V=re}if(j===y.length)return n(f,V),zt&&Kr(f,j),F;if(V===null){for(;jj?(re=V,V=null):re=V.sibling;var de=m(f,V,ne.value,k);if(de===null){V===null&&(V=re);break}e&&V&&de.alternate===null&&t(f,V),_=a(de,_,j),T===null?F=de:T.sibling=de,T=de,V=re}if(ne.done)return n(f,V),zt&&Kr(f,j),F;if(V===null){for(;!ne.done;j++,ne=y.next())ne=g(f,ne.value,k),ne!==null&&(_=a(ne,_,j),T===null?F=ne:T.sibling=ne,T=ne);return zt&&Kr(f,j),F}for(V=o(f,V);!ne.done;j++,ne=y.next())ne=c(V,f,j,ne.value,k),ne!==null&&(e&&ne.alternate!==null&&V.delete(ne.key===null?j:ne.key),_=a(ne,_,j),T===null?F=ne:T.sibling=ne,T=ne);return e&&V.forEach(function(ve){return t(f,ve)}),zt&&Kr(f,j),F}function b(f,_,y,k){if(typeof y=="object"&&y!==null&&y.type===La&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case us:e:{for(var F=y.key,T=_;T!==null;){if(T.key===F){if(F=y.type,F===La){if(T.tag===7){n(f,T.sibling),_=r(T,y.props.children),_.return=f,f=_;break e}}else if(T.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ur&&ug(F)===T.type){n(f,T.sibling),_=r(T,y.props),_.ref=ji(f,T,y),_.return=f,f=_;break e}n(f,T);break}else t(f,T);T=T.sibling}y.type===La?(_=ea(y.props.children,f.mode,k,y.key),_.return=f,f=_):(k=Os(y.type,y.key,y.props,null,f.mode,k),k.ref=ji(f,_,y),k.return=f,f=k)}return i(f);case Pa:e:{for(T=y.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===y.containerInfo&&_.stateNode.implementation===y.implementation){n(f,_.sibling),_=r(_,y.children||[]),_.return=f,f=_;break e}else{n(f,_);break}else t(f,_);_=_.sibling}_=sd(y,f.mode,k),_.return=f,f=_}return i(f);case ur:return T=y._init,b(f,_,T(y._payload),k)}if(qi(y))return v(f,_,y,k);if($i(y))return h(f,_,y,k);Ss(f,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,_!==null&&_.tag===6?(n(f,_.sibling),_=r(_,y),_.return=f,f=_):(n(f,_),_=ld(y,f.mode,k),_.return=f,f=_),i(f)):n(f,_)}return b}var ei=P_(!0),L_=P_(!1),Qs=xr(null),Zs=null,ja=null,yp=null;function wp(){yp=ja=Zs=null}function Cp(e){var t=Qs.current;Ot(Qs),e._currentValue=t}function $d(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ya(e,t){Zs=e,yp=ja=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(An=!0),e.firstContext=null)}function uo(e){var t=e._currentValue;if(yp!==e)if(e={context:e,memoizedValue:t,next:null},ja===null){if(Zs===null)throw Error(pe(308));ja=e,Zs.dependencies={lanes:0,firstContext:e}}else ja=ja.next=e;return t}var Qr=null;function kp(e){Qr===null?Qr=[e]:Qr.push(e)}function I_(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,kp(t)):(n.next=r.next,r.next=n),t.interleaved=n,Xo(e,o)}function Xo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function Sp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(kt&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Xo(e,n)}return r=o.interleaved,r===null?(t.next=t,kp(o)):(t.next=r.next,r.next=t),o.interleaved=t,Xo(e,n)}function Ms(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,up(e,n)}}function cg(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?r=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?r=a=t:a=a.next=t}else r=a=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Js(e,t,n,o){var r=e.updateQueue;cr=!1;var a=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,d=s.next;s.next=null,i===null?a=d:i.next=d,i=s;var p=e.alternate;p!==null&&(p=p.updateQueue,l=p.lastBaseUpdate,l!==i&&(l===null?p.firstBaseUpdate=d:l.next=d,p.lastBaseUpdate=s))}if(a!==null){var g=r.baseState;i=0,p=d=s=null,l=a;do{var m=l.lane,c=l.eventTime;if((o&m)===m){p!==null&&(p=p.next={eventTime:c,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,h=l;switch(m=t,c=n,h.tag){case 1:if(v=h.payload,typeof v=="function"){g=v.call(c,g,m);break e}g=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=h.payload,m=typeof v=="function"?v.call(c,g,m):v,m==null)break e;g=Wt({},g,m);break e;case 2:cr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=r.effects,m===null?r.effects=[l]:m.push(l))}else c={eventTime:c,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},p===null?(d=p=c,s=g):p=p.next=c,i|=m;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;m=l,l=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);if(p===null&&(s=g),r.baseState=s,r.firstBaseUpdate=d,r.lastBaseUpdate=p,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else a===null&&(r.shared.lanes=0);ra|=i,e.lanes=i,e.memoizedState=g}}function dg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=nd.transition;nd.transition={};try{e(!1),t()}finally{Mt=n,nd.transition=o}}function J_(){return co().memoizedState}function tC(e,t,n){var o=wr(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},eh(e))th(t,n);else if(n=I_(e,t,n,o),n!==null){var r=En();No(n,e,o,r),nh(n,t,o)}}function nC(e,t,n){var o=wr(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(eh(e))th(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(r.hasEagerState=!0,r.eagerState=l,xo(l,i)){var s=t.interleaved;s===null?(r.next=r,kp(t)):(r.next=s.next,s.next=r),t.interleaved=r;return}}catch{}n=I_(e,t,r,o),n!==null&&(r=En(),No(n,e,o,r),nh(n,t,o))}}function eh(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function th(e,t){tl=tu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nh(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,up(e,n)}}var nu={readContext:uo,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useInsertionEffect:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useMutableSource:vn,useSyncExternalStore:vn,useId:vn,unstable_isNewReconciler:!1},oC={readContext:uo,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:uo,useEffect:mg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ps(4194308,4,K_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ps(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ps(4,2,e,t)},useMemo:function(e,t){var n=Po();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Po();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=tC.bind(null,Ut,e),[o.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:pg,useDebugValue:Tp,useDeferredValue:function(e){return Po().memoizedState=e},useTransition:function(){var e=pg(!1),t=e[0];return e=eC.bind(null,e[1]),Po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ut,r=Po();if(zt){if(n===void 0)throw Error(pe(407));n=n()}else{if(n=t(),un===null)throw Error(pe(349));(oa&30)!==0||V_(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,mg(j_.bind(null,o,a,e),[e]),o.flags|=2048,yl(9,B_.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=Po(),t=un.identifierPrefix;if(zt){var n=Go,o=Wo;n=(o&~(1<<32-So(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=vl++,0")&&(s=s.replace("",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"+t.valueOf().toString()+"",t=_s.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ji={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yy=["Webkit","ms","Moz","O"];Object.keys(Ji).forEach(function(e){Yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ji[t]=Ji[e]})});function e_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ji.hasOwnProperty(e)&&Ji[e]?(""+t).trim():t+"px"}function t_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=e_(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var Ky=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rd(e,t){if(t){if(Ky[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pe(62))}}function Ed(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dd=null;function gp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fd=null,Xa=null,Qa=null;function Wf(e){if(e=Rl(e)){if(typeof Fd!="function")throw Error(pe(280));var t=e.stateNode;t&&(t=hu(t),Fd(e.stateNode,e.type,t))}}function n_(e){Xa?Qa?Qa.push(e):Qa=[e]:Xa=e}function o_(){if(Xa){var e=Xa,t=Qa;if(Qa=Xa=null,Wf(e),t)for(e=0;e>>=0,e===0?32:31-(iw(e)/lw|0)|0}var hs=64,vs=4194304;function Qi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qs(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~r;l!==0?o=Qi(l):(a&=i,a!==0&&(o=Qi(a)))}else i=n&~r,i!==0?o=Qi(i):a!==0&&(o=Qi(a));if(o===0)return 0;if(t!==0&&t!==o&&(t&r)===0&&(r=o&-o,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Nl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wo(t),e[t]=n}function dw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=tl),eg=" ",tg=!1;function k_(e,t){switch(e){case"keyup":return zw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function Bw(e,t){switch(e){case"compositionend":return S_(t);case"keypress":return t.which!==32?null:(tg=!0,eg);case"textInput":return e=t.data,e===eg&&tg?null:e;default:return null}}function Hw(e,t){if(za)return e==="compositionend"||!kp&&k_(e,t)?(e=w_(),Ls=yp=dr=null,za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rg(n)}}function E_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function D_(){for(var e=window,t=js();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=js(e.document)}return t}function Sp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qw(e){var t=D_(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&E_(n.ownerDocument.documentElement,n)){if(o!==null&&Sp(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(o.start,r);o=o.end===void 0?a:Math.min(o.end,r),!e.extend&&a>o&&(r=o,o=a,a=r),r=ag(n,a);var i=ag(n,o);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Va=null,Id=null,ol=null,Od=!1;function ig(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Od||Va==null||Va!==js(o)||(o=Va,"selectionStart"in o&&Sp(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ol&&gl(ol,o)||(ol=o,o=Xs(Id,"onSelect"),0ja||(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>=i,r-=i,Ho=1<<32-wo(t)+r|n<j?(le=V,V=null):le=V.sibling;var re=m(f,V,w[j],S);if(re===null){V===null&&(V=le);break}e&&V&&re.alternate===null&&t(f,V),_=a(re,_,j),T===null?D=re:T.sibling=re,T=re,V=le}if(j===w.length)return n(f,V),Ot&&Xr(f,j),D;if(V===null){for(;jj?(le=V,V=null):le=V.sibling;var _e=m(f,V,re.value,S);if(_e===null){V===null&&(V=le);break}e&&V&&_e.alternate===null&&t(f,V),_=a(_e,_,j),T===null?D=_e:T.sibling=_e,T=_e,V=le}if(re.done)return n(f,V),Ot&&Xr(f,j),D;if(V===null){for(;!re.done;j++,re=w.next())re=g(f,re.value,S),re!==null&&(_=a(re,_,j),T===null?D=re:T.sibling=re,T=re);return Ot&&Xr(f,j),D}for(V=o(f,V);!re.done;j++,re=w.next())re=c(V,f,j,re.value,S),re!==null&&(e&&re.alternate!==null&&V.delete(re.key===null?j:re.key),_=a(re,_,j),T===null?D=re:T.sibling=re,T=re);return e&&V.forEach(function(ye){return t(f,ye)}),Ot&&Xr(f,j),D}function b(f,_,w,S){if(typeof w=="object"&&w!==null&&w.type===$a&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case fs:e:{for(var D=w.key,T=_;T!==null;){if(T.key===D){if(D=w.type,D===$a){if(T.tag===7){n(f,T.sibling),_=r(T,w.props.children),_.return=f,f=_;break e}}else if(T.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===lr&&bg(D)===T.type){n(f,T.sibling),_=r(T,w.props),_.ref=Wi(f,T,w),_.return=f,f=_;break e}n(f,T);break}else t(f,T);T=T.sibling}w.type===$a?(_=na(w.props.children,f.mode,S,w.key),_.return=f,f=_):(S=Hs(w.type,w.key,w.props,null,f.mode,S),S.ref=Wi(f,_,w),S.return=f,f=S)}return i(f);case Oa:e:{for(T=w.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(f,_.sibling),_=r(_,w.children||[]),_.return=f,f=_;break e}else{n(f,_);break}else t(f,_);_=_.sibling}_=_d(w,f.mode,S),_.return=f,f=_}return i(f);case lr:return T=w._init,b(f,_,T(w._payload),S)}if(Xi(w))return h(f,_,w,S);if(Bi(w))return v(f,_,w,S);Ds(f,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(f,_.sibling),_=r(_,w),_.return=f,f=_):(n(f,_),_=gd(w,f.mode,S),_.return=f,f=_),i(f)):n(f,_)}return b}var ri=j_(!0),U_=j_(!1),nu=Sr(null),ou=null,Ga=null,Ep=null;function Dp(){Ep=Ga=ou=null}function Fp(e){var t=nu.current;At(nu),e._currentValue=t}function Gd(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ja(e,t){ou=e,Ep=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Pn=!0),e.firstContext=null)}function ao(e){var t=e._currentValue;if(Ep!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(ou===null)throw Error(pe(308));Ga=e,ou.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Jr=null;function Mp(e){Jr===null?Jr=[e]:Jr.push(e)}function W_(e,t,n,o){var r=t.interleaved;return r===null?(n.next=n,Mp(t)):(n.next=r.next,r.next=n),t.interleaved=n,qo(e,o)}function qo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sr=!1;function Tp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function G_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hr(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ht&2)!==0){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,qo(e,n)}return r=o.interleaved,r===null?(t.next=t,Mp(o)):(t.next=r.next,r.next=t),o.interleaved=t,qo(e,n)}function Is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,hp(e,n)}}function yg(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?r=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?r=a=t:a=a.next=t}else r=a=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ru(e,t,n,o){var r=e.updateQueue;sr=!1;var a=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,d=s.next;s.next=null,i===null?a=d:i.next=d,i=s;var p=e.alternate;p!==null&&(p=p.updateQueue,l=p.lastBaseUpdate,l!==i&&(l===null?p.firstBaseUpdate=d:l.next=d,p.lastBaseUpdate=s))}if(a!==null){var g=r.baseState;i=0,p=d=s=null,l=a;do{var m=l.lane,c=l.eventTime;if((o&m)===m){p!==null&&(p=p.next={eventTime:c,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(m=t,c=n,v.tag){case 1:if(h=v.payload,typeof h=="function"){g=h.call(c,g,m);break e}g=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,m=typeof h=="function"?h.call(c,g,m):h,m==null)break e;g=Bt({},g,m);break e;case 2:sr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=r.effects,m===null?r.effects=[l]:m.push(l))}else c={eventTime:c,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},p===null?(d=p=c,s=g):p=p.next=c,i|=m;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;m=l,l=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);if(p===null&&(s=g),r.baseState=s,r.firstBaseUpdate=d,r.lastBaseUpdate=p,t=r.shared.interleaved,t!==null){r=t;do i|=r.lane,r=r.next;while(r!==t)}else a===null&&(r.shared.lanes=0);ia|=i,e.lanes=i,e.memoizedState=g}}function wg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=cd.transition;cd.transition={};try{e(!1),t()}finally{Ft=n,cd.transition=o}}function uh(){return io().memoizedState}function dC(e,t,n){var o=br(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))dh(t,n);else if(n=W_(e,t,n,o),n!==null){var r=En();Co(n,e,o,r),ph(n,t,o)}}function pC(e,t,n){var o=br(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))dh(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(r.hasEagerState=!0,r.eagerState=l,ko(l,i)){var s=t.interleaved;s===null?(r.next=r,Mp(t)):(r.next=s.next,s.next=r),t.interleaved=r;return}}catch{}n=W_(e,t,r,o),n!==null&&(r=En(),Co(n,e,o,r),ph(n,t,o))}}function ch(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function dh(e,t){rl=iu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ph(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,hp(e,n)}}var lu={readContext:ao,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useInsertionEffect:_n,useLayoutEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,useState:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useMutableSource:_n,useSyncExternalStore:_n,useId:_n,unstable_isNewReconciler:!1},mC={readContext:ao,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:ao,useEffect:kg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$s(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $s(4194308,4,e,t)},useInsertionEffect:function(e,t){return $s(4,2,e,t)},useMemo:function(e,t){var n=Fo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Fo();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=dC.bind(null,Vt,e),[o.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:Cg,useDebugValue:Vp,useDeferredValue:function(e){return Fo().memoizedState=e},useTransition:function(){var e=Cg(!1),t=e[0];return e=cC.bind(null,e[1]),Fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Vt,r=Fo();if(Ot){if(n===void 0)throw Error(pe(407));n=n()}else{if(n=t(),rn===null)throw Error(pe(349));(aa&30)!==0||X_(o,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,kg(Z_.bind(null,o,a,e),[e]),o.flags|=2048,kl(9,Q_.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=Fo(),t=rn.identifierPrefix;if(Ot){var n=jo,o=Ho;n=(o&~(1<<32-wo(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=wl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=i.createElement(n,{is:o.is}):(e=i.createElement(n),n==="select"&&(i=e,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):e=i.createElementNS(e,n),e[Lo]=t,e[gl]=o,ph(e,t,!1,!1),t.stateNode=e;e:{switch(i=yd(n,o),n){case"dialog":At("cancel",e),At("close",e),r=o;break;case"iframe":case"object":case"embed":At("load",e),r=o;break;case"video":case"audio":for(r=0;roi&&(t.flags|=128,o=!0,Hi(a,!1),t.lanes=4194304)}else{if(!o)if(e=eu(i),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!zt)return bn(t),null}else 2*qt()-a.renderingStartTime>oi&&n!==1073741824&&(t.flags|=128,o=!0,Hi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=qt(),t.sibling=null,n=Ht.current,It(Ht,o?n&1|2:n&1),t):(bn(t),null);case 22:case 23:return $p(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Yn&1073741824)!==0&&(bn(t),t.subtreeFlags&6&&(t.flags|=8192)):bn(t),null;case 24:return null;case 25:return null}throw Error(pe(156,t.tag))}function dC(e,t){switch(vp(t),t.tag){case 1:return $n(t.type)&&qs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),Ot(On),Ot(wn),Rp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xp(t),null;case 13:if(Ot(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pe(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot(Ht),null;case 4:return ti(),null;case 10:return Cp(t.type._context),null;case 22:case 23:return $p(),null;case 24:return null;default:return null}}var xs=!1,yn=!1,pC=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Ha(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Gt(e,t,o)}else n.current=null}function qd(e,t,n){try{n()}catch(o){Gt(e,t,o)}}var Sg=!1;function mC(e,t){if(Fd=Hs,e=b_(),_p(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,d=0,p=0,g=e,m=null;t:for(;;){for(var c;g!==n||r!==0&&g.nodeType!==3||(l=i+r),g!==a||o!==0&&g.nodeType!==3||(s=i+o),g.nodeType===3&&(i+=g.nodeValue.length),(c=g.firstChild)!==null;)m=g,g=c;for(;;){if(g===e)break t;if(m===n&&++d===r&&(l=i),m===a&&++p===o&&(s=i),(c=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=c}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Md={focusedElem:e,selectionRange:n},Hs=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){t=Ie;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var h=v.memoizedProps,b=v.memoizedState,f=t.stateNode,_=f.getSnapshotBeforeUpdate(t.elementType===t.type?h:wo(t.type,h),b);f.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pe(163))}}catch(k){Gt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}return v=Sg,Sg=!1,v}function nl(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&qd(t,n,a)}r=r.next}while(r!==o)}}function _u(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Kd(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function gh(e){var t=e.alternate;t!==null&&(e.alternate=null,gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lo],delete t[gl],delete t[Ld],delete t[Yw],delete t[Xw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _h(e){return e.tag===5||e.tag===3||e.tag===4}function Ng(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_h(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yd(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gs));else if(o!==4&&(e=e.child,e!==null))for(Yd(e,t,n),e=e.sibling;e!==null;)Yd(e,t,n),e=e.sibling}function Xd(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Xd(e,t,n),e=e.sibling;e!==null;)Xd(e,t,n),e=e.sibling}var mn=null,Co=!1;function sr(e,t,n){for(n=n.child;n!==null;)hh(e,t,n),n=n.sibling}function hh(e,t,n){if(Io&&typeof Io.onCommitFiberUnmount=="function")try{Io.onCommitFiberUnmount(su,n)}catch{}switch(n.tag){case 5:yn||Ha(n,t);case 6:var o=mn,r=Co;mn=null,sr(e,t,n),mn=o,Co=r,mn!==null&&(Co?(e=mn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mn.removeChild(n.stateNode));break;case 18:mn!==null&&(Co?(e=mn,n=n.stateNode,e.nodeType===8?Jc(e.parentNode,n):e.nodeType===1&&Jc(e,n),cl(e)):Jc(mn,n.stateNode));break;case 4:o=mn,r=Co,mn=n.stateNode.containerInfo,Co=!0,sr(e,t,n),mn=o,Co=r;break;case 0:case 11:case 14:case 15:if(!yn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var a=r,i=a.destroy;a=a.tag,i!==void 0&&((a&2)!==0||(a&4)!==0)&&qd(n,t,i),r=r.next}while(r!==o)}sr(e,t,n);break;case 1:if(!yn&&(Ha(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){Gt(n,t,l)}sr(e,t,n);break;case 21:sr(e,t,n);break;case 22:n.mode&1?(yn=(o=yn)||n.memoizedState!==null,sr(e,t,n),yn=o):sr(e,t,n);break;default:sr(e,t,n)}}function xg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pC),t.forEach(function(o){var r=CC.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function yo(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=i),o&=~a}if(o=r,o=qt()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*gC(o/1960))-o,10e?16:e,fr===null)var o=!1;else{if(e=fr,fr=null,au=0,(kt&6)!==0)throw Error(pe(331));var r=kt;for(kt|=4,Ie=e.current;Ie!==null;){var a=Ie,i=a.child;if((Ie.flags&16)!==0){var l=a.deletions;if(l!==null){for(var s=0;sqt()-Ap?Jr(e,0):Ip|=n),zn(e,t)}function Nh(e,t){t===0&&((e.mode&1)===0?t=1:(t=ms,ms<<=1,(ms&130023424)===0&&(ms=4194304)));var n=En();e=Xo(e,t),e!==null&&(Cl(e,t,n),zn(e,n))}function wC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nh(e,n)}function CC(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(pe(314))}o!==null&&o.delete(t),Nh(e,n)}var xh;xh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)An=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return An=!1,uC(e,t,n);An=(e.flags&131072)!==0}else An=!1,zt&&(t.flags&1048576)!==0&&F_(t,Xs,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ls(e,t),e=t.pendingProps;var r=Za(t,wn.current);Ya(t,n),r=Dp(null,t,o,e,r,n);var a=Fp();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$n(o)?(a=!0,Ks(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Sp(t),r.updater=gu,t.stateNode=r,r._reactInternals=t,Vd(t,o,e,n),t=Hd(null,t,o,!0,a,n)):(t.tag=0,zt&&a&&hp(t),Rn(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Ls(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=SC(o),e=wo(o,e),r){case 0:t=jd(null,t,o,e,n);break e;case 1:t=wg(null,t,o,e,n);break e;case 11:t=bg(null,t,o,e,n);break e;case 14:t=yg(null,t,o,wo(o.type,e),n);break e}throw Error(pe(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:wo(o,r),jd(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:wo(o,r),wg(e,t,o,r,n);case 3:e:{if(uh(t),e===null)throw Error(pe(387));o=t.pendingProps,a=t.memoizedState,r=a.element,A_(e,t),Js(t,o,null,n);var i=t.memoizedState;if(o=i.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=ni(Error(pe(423)),t),t=Cg(e,t,o,n,r);break e}else if(o!==r){r=ni(Error(pe(424)),t),t=Cg(e,t,o,n,r);break e}else for(Xn=vr(t.stateNode.containerInfo.firstChild),Qn=t,zt=!0,ko=null,n=L_(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ja(),o===r){t=Qo(e,t,n);break e}Rn(e,t,o,n)}t=t.child}return t;case 5:return O_(t),e===null&&Od(t),o=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,i=r.children,Td(o,r)?i=null:a!==null&&Td(o,a)&&(t.flags|=32),sh(e,t),Rn(e,t,i,n),t.child;case 6:return e===null&&Od(t),null;case 13:return ch(e,t,n);case 4:return Np(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ei(t,null,o,n):Rn(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:wo(o,r),bg(e,t,o,r,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value,It(Qs,o._currentValue),o._currentValue=i,a!==null)if(xo(a.value,i)){if(a.children===r.children&&!On.current){t=Qo(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(a.tag===1){s=qo(-1,n&-n),s.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?s.next=s:(s.next=p.next,p.next=s),d.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),$d(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(pe(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),$d(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Rn(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ya(t,n),r=uo(r),o=o(r),t.flags|=1,Rn(e,t,o,n),t.child;case 14:return o=t.type,r=wo(o,t.pendingProps),r=wo(o.type,r),yg(e,t,o,r,n);case 15:return ih(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:wo(o,r),Ls(e,t),t.tag=1,$n(o)?(e=!0,Ks(t)):e=!1,Ya(t,n),oh(t,o,r),Vd(t,o,r,n),Hd(null,t,o,!0,e,n);case 19:return dh(e,t,n);case 22:return lh(e,t,n)}throw Error(pe(156,t.tag))};function Rh(e,t){return e_(e,t)}function kC(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lo(e,t,n,o){return new kC(e,t,n,o)}function Vp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function SC(e){if(typeof e=="function")return Vp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ap)return 11;if(e===ip)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=lo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Os(e,t,n,o,r,a){var i=2;if(o=e,typeof e=="function")Vp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case La:return ea(n.children,r,a,t);case rp:i=8,r|=8;break;case cd:return e=lo(12,n,t,r|2),e.elementType=cd,e.lanes=a,e;case dd:return e=lo(13,n,t,r),e.elementType=dd,e.lanes=a,e;case pd:return e=lo(19,n,t,r),e.elementType=pd,e.lanes=a,e;case Og:return vu(n,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ig:i=10;break e;case Ag:i=9;break e;case ap:i=11;break e;case ip:i=14;break e;case ur:i=16,o=null;break e}throw Error(pe(130,e==null?e:typeof e,""))}return t=lo(i,n,t,r),t.elementType=e,t.type=o,t.lanes=a,t}function ea(e,t,n,o){return e=lo(7,e,o,t),e.lanes=n,e}function vu(e,t,n,o){return e=lo(22,e,o,t),e.elementType=Og,e.lanes=n,e.stateNode={isHidden:!1},e}function ld(e,t,n){return e=lo(6,e,null,t),e.lanes=n,e}function sd(e,t,n){return t=lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NC(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wc(0),this.expirationTimes=Wc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bp(e,t,n,o,r,a,i,l,s){return e=new NC(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=lo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sp(a),e}function xC(e,t,n){var o=3{"use strict";function Th(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Th)}catch(e){console.error(e)}}Th(),Ph.exports=Mh()});var Gp=jo(Wp=>{"use strict";var Lh=po();Wp.createRoot=Lh.createRoot,Wp.hydrateRoot=Lh.hydrateRoot;var ix});var Gv=jo(Yu=>{"use strict";var eS=xt(),tS=Symbol.for("react.element"),nS=Symbol.for("react.fragment"),oS=Object.prototype.hasOwnProperty,rS=eS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aS={key:!0,ref:!0,__self:!0,__source:!0};function Wv(e,t,n){var o,r={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)oS.call(t,o)&&!aS.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:tS,type:e,key:a,ref:i,props:r,_owner:rS.current}}Yu.Fragment=nS;Yu.jsx=Wv;Yu.jsxs=Wv});var St=jo((i1,qv)=>{"use strict";qv.exports=Gv()});var ON={};ry(ON,{default:()=>dc});module.exports=ay(ON);var zo=require("obsidian");var tf=require("obsidian");var iy={view_table:"Table",view_list:"List",view_board:"Board",view_gallery:"Gallery",view_calendar:"Calendar",view_timeline:"Timeline",view_chart:"Chart",add_view:"Add view",remove_view:"Remove view",rename_view_hint:"Double-click to rename",fields:"Fields",filter:"Filter",filters:"Filters",sort:"Sort",actions:"Actions",group_by:"Group by",cover:"Cover",date_field:"Date",start_field:"Start",end_field:"End",group_field:"Group",fields_in_card:"Fields in card",fields_label:"Fields",fields_on_bars:"Fields on bars",filter_by:"Filter by",sort_by:"Sort by",group_by_label:"Group by",date_field_label:"Date field",cover_field_label:"Cover field",card_size_label:"Card size",row_height_label:"Row height",none_value:"None",no_value:"No value",no_cover:"None",size_small:"Small",size_medium:"Medium",size_large:"Large",height_compact:"Compact",height_medium:"Medium",height_tall:"Tall",add_filter_advanced:"Add advanced filter",add_sort:"Add sort",no_active_sorts:"No active sorts",name_column:"Name",conjunction_and:"AND",conjunction_or:"OR",filter_number_placeholder:"Number...",filter_value_placeholder:"Value...",delete_selected:"Delete all selected",move_selected:"Move all selected",duplicate_selected:"Duplicate all selected",export_csv:"Export CSV",import_csv:"Import CSV",open_note:"Open note",delete_note:"Delete note",duplicate_note:"Duplicate note",sort_asc:"Ascending",sort_desc:"Descending",sort_asc_title:"Sort descending",sort_desc_title:"Remove sort",sort_none_title:"Sort ascending",rename_column:"Rename",edit_formula:"Edit formula",configure_lookup:"Configure lookup",configure_relation:"Configure relation",format_number:"Format number",configure_image_folder:"Configure image folder",field_type_label:"Field type",hide_field:"Hide field",enable_wrap_text:"Wrap text",disable_wrap_text:"Unwrap text",delete_field:"Delete field",type_title:"Title",type_text:"Text",type_number:"Number",type_select:"Select",type_multiselect:"Multi-select",type_date:"Date",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Phone",type_status:"Status",type_formula:"Formula",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configure rollup",rollup_select_relation:"1. Relation column",rollup_select_relation_placeholder:"Select relation...",rollup_select_target:"2. Target column",rollup_select_target_placeholder:"Select column...",rollup_select_function:"3. Aggregation",rollup_no_relations:"No relation columns found. Add a relation column first.",rollup_fn_sum:"Sum",rollup_fn_count:"Count",rollup_fn_avg:"Average",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Count unique",rollup_fn_list:"List all",type_image:"Image",type_audio:"Audio",audio_path_placeholder:"Path to audio file...",audio_select_placeholder:"Select audio...",audio_picker_title:"Select audio",audio_picker_clear:"Clear",audio_picker_empty_folder:"No audio files in folder",audio_picker_empty_vault:"No audio files in vault",audio_panel_title:"Audio settings",audio_folder_label:"Source folder (leave empty for entire vault)",audio_folder_placeholder:"Ex: audio/music",configure_audio_folder:"Configure audio folder",type_video:"Video",video_select_placeholder:"Select video...",video_picker_clear:"Clear",video_picker_empty_folder:"No video files in folder",video_picker_empty_vault:"No video files in vault",video_panel_title:"Video settings",video_folder_label:"Source folder (leave empty for entire vault)",video_folder_placeholder:"Ex: video/clips",configure_video_folder:"Configure video folder",formula_panel_title:"Formula",formula_placeholder:'Example: if(status = "done", 1, 0)',formula_valid:"Valid syntax",formula_available_cols:"Available columns:",formula_ref_toggle:"Function reference",formula_save:"Save",formula_cancel:"Cancel",formula_save_hint:"Save (Ctrl+Enter)",formula_group_logic:"Logic",formula_group_comparators:"Comparators",formula_group_aggregators:"Aggregators",formula_group_text:"Text",formula_group_math:"Math",formula_group_utils:"Utilities",formula_desc_if:"Returns a if cond is true, otherwise b",formula_desc_ifs:"Tests conditions in sequence",formula_desc_and:"True if all are true",formula_desc_or:"True if any is true",formula_desc_not:"Inverts the logical value",formula_desc_comparators:"Compares two values; combine with conditionals",formula_desc_sum:"Sums all values in the column",formula_desc_avg:"Average of values in the column",formula_desc_count:"Counts non-empty values in the column",formula_desc_min:"Smallest value in the column",formula_desc_max:"Largest value in the column",formula_desc_concat:"Concatenates texts (or use &)",formula_desc_len:"Number of characters",formula_desc_upper_lower:"Uppercase / lowercase",formula_desc_trim:"Removes leading and trailing whitespace",formula_desc_left:"First n characters",formula_desc_right:"Last n characters",formula_desc_mid:"Substring starting at position",formula_desc_substitute:"Replaces occurrences",formula_desc_round:"Rounds n to d decimal places",formula_desc_floor_ceil:"Rounds down / up",formula_desc_abs:"Absolute value",formula_desc_mod:"Remainder of division",formula_desc_power:"Base raised to exponent",formula_desc_sqrt:"Square root",formula_desc_isnull:"True if v is empty or null",formula_desc_coalesce:"First non-empty value",formula_desc_text:"Converts to text",formula_desc_value:"Converts to number",number_format_title:"Format",number_decimals_label:"Decimal places",number_thousands_label:"Thousands separator",number_prefix_label:"Prefix",number_suffix_label:"Suffix",number_prefix_placeholder:"Ex: $, \u20AC",number_suffix_placeholder:"Ex: %, kg, km",number_remove_format:"Remove formatting",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Reference table",lookup_select_table:"Select table...",lookup_col_to_display:"2. Column to display",lookup_origin_col:"2. Source field for values",lookup_select_col:"Select column...",lookup_file_name:"File name",lookup_join_col:"3. Join column (this table)",lookup_join_col_title:"File name (join by title)",lookup_select_join_col:"Select column...",lookup_hint:"The value of this column must match the file name in the referenced table",image_panel_title:"Image",image_folder_label:"Source folder (optional)",image_folder_placeholder:"Ex: images/covers",image_picker_title:"Select image",image_picker_clear:"Clear",image_picker_empty_vault:"No images found in vault",image_picker_empty_folder:"No images found in",image_select_placeholder:"Select image\u2026",agg_none:"None",agg_count:"Count",agg_count_values:"Count values",agg_sum:"Sum",agg_avg:"Average",agg_min:"Min",agg_max:"Max",no_database_open:"No database open.",no_database_hint:'Use the ribbon button or the "create new database" command.',loading:"Loading...",no_results:"No items found",item_singular:"Item",item_plural:"Items",row_singular:"Row",row_plural:"Rows",record_singular:"Record",record_plural:"Records",add_row:"New row",add_entry:"New entry",add_card:"New card",new_field:"New field",add_field:"Add field",board_no_select_col:"The board requires a select or status column to group cards.",board_add_select_hint:"Add a column of that type in the table view and come back here.",board_drag_reorder:"Drag to reorder",board_set_limit:"Click to set card limit",board_limit_placeholder:"Limit (0 = none)",board_show_more:"More",board_show_less:"Show less",hide_empty_cols:"Hide empty",hide_no_value_cols:"Hide no-value",calendar_no_date_field:"Select a date field in the toolbar to show the calendar.",calendar_no_date_section:"No date",calendar_click_to_create:"Click to create note",calendar_today:"Today",calendar_prev_month:"Previous month",calendar_next_month:"Next month",calendar_view_month:"Month",calendar_view_week:"Week",calendar_prev_week:"Previous week",calendar_next_week:"Next week",calendar_add_time:"Add time",calendar_remove_time:"Remove time",calendar_all_day:"All day",day_sun:"Sun",day_mon:"Mon",day_tue:"Tue",day_wed:"Wed",day_thu:"Thu",day_fri:"Fri",day_sat:"Sat",month_january:"January",month_february:"February",month_march:"March",month_april:"April",month_may:"May",month_june:"June",month_july:"July",month_august:"August",month_september:"September",month_october:"October",month_november:"November",month_december:"December",timeline_no_start_field:"Select a start field in the toolbar to show the timeline.",timeline_no_interval:"No interval",timeline_scroll_prev:"Scroll back",timeline_scroll_next:"Scroll forward",zoom_days:"Days",zoom_weeks:"Weeks",zoom_months:"Months",month_short_jan:"Jan",month_short_feb:"Feb",month_short_mar:"Mar",month_short_apr:"Apr",month_short_may:"May",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Aug",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"Dec",hierarchy_toggle:"Use as hierarchy",hierarchy_toggle_hint:"Enables parent-child relationships between rows in this database",add_subrow:"Add sub-row",collapse_all:"Collapse all",expand_all:"Expand all",max_depth_reached:"Maximum depth reached (3 levels)",chart_configure:"Configure",chart_type:"Chart type",chart_type_bar:"Bar",chart_type_line:"Line",chart_type_pie:"Pie",chart_x_axis:"Categories (X axis)",chart_y_axis:"Values (y axis)",chart_aggregation:"Aggregation",chart_select_column:"Select column...",chart_count_records:"Count",chart_no_config:"Configure the chart to get started.",chart_no_config_hint:"Select a column for categories in the toolbar above.",tooltip_pin_column:"Pin columns up to here",tooltip_unpin_column:"Unpin columns",tooltip_resize_column:"Drag to resize; double-click to fit content",tooltip_wrap_text:"Wrap text",tooltip_include_subfolders:"Include subfolders",folder_column:"Folder",tooltip_manage_fields:"Manage fields",tooltip_batch_actions:"Batch actions",tooltip_remove_filter:"Remove filter",hide_filters:"Hide filters",show_filters:"Show filters",filters_count_one:"1 filter",filters_count_other:"{n} filters",tooltip_drag_reorder:"Drag to reorder",tooltip_search:"Search",tooltip_toggle_and_or:"Click to switch the logical operator",tooltip_close:"Close",tooltip_remove:"Remove",tooltip_move_up:"Move up",tooltip_move_down:"Move down",tooltip_change_color:"Change color",tooltip_delete_status:"Delete status",status_not_started:"Not started",status_in_progress:"In progress",status_done:"Done",status_cancelled:"Cancelled",relation_search_placeholder:"Search...",relation_clear:"Clear",relation_no_results:"No results",relation_two_way:"Two-way relation",relation_two_way_hint:"Automatically creates a reverse relation in the target database",select_clear:"Clear",select_create_placeholder:"Create new option...",status_new_placeholder:"New status...",color_custom:"Custom",validate_non_numeric:'Cell(s) contain non-numeric values (e.g.: "',validate_invalid_dates:'Cell(s) contain values that are not valid dates (e.g.: "',validate_invalid_checkbox:'Cell(s) contain values incompatible with checkbox (e.g.: "',validate_multiselect_to_select:"Row(s) have multiple values selected. Remove extras before changing to single select.",validate_invalid_email:'Cell(s) contain values that are not valid emails (e.g.: "',validate_invalid_url:'Cell(s) contain values that are not valid URLs (e.g.: "',validate_invalid_phone:'Cell(s) contain values that are not valid phone numbers (e.g.: "',validate_type_change_prefix:"Cannot change type: ",email_invalid:"Invalid email",op_is:"Is",op_is_not:"Is not",op_contains:"Contains",op_not_contains:"Does not contain",op_starts_with:"Starts with",op_ends_with:"Ends with",op_is_empty:"Is empty",op_is_not_empty:"Is not empty",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Is checked",op_is_unchecked:"Is unchecked",settings_db_filename_name:"Database file name",settings_db_filename_desc:"Name of the special file that identifies a database in a folder.",settings_row_height_name:"Default row height",settings_row_height_desc:"Height in pixels of each table row.",settings_inline_fields_name:"Read dataview inline fields",settings_inline_fields_desc:"Parse key:: value fields from note body and display as column values (read-only)",db_untitled_note:"Untitled",db_copy_suffix:"(copy)",db_copy_suffix_n:"(copy $n)",db_already_exists:'A database already exists in "$folder"',db_tip_body:"This file is a database. Open it to see the table view.",formula_err_unclosed_string:"Unclosed string at position $pos",formula_err_unclosed_bracket:"Unclosed bracket at position $pos",formula_err_unexpected_bang:"Unexpected character '!' at position $pos",formula_err_unexpected_char:"Unexpected character '$char' at position $pos",formula_err_expected_token:"Expected $expected, found '$found' at position $pos",formula_err_unexpected_token:"Unexpected token '$token' at position $pos",formula_err_circular_ref:'Circular reference: "$name" is a formula column',formula_err_unknown_fn:"Unknown function: $fn()",formula_err_if_args:"Expected if(condition, if_true, [if_false])",formula_err_avg_args:"Expected avg(column) \u2014 requires a column reference as argument",formula_err_count_args:"Expected count(column) \u2014 requires a column reference as argument",formula_err_mid_args:"Expected mid(text, start, length)",formula_err_mod_args:"Expected mod(number, divisor)",formula_err_sqrt_args:"Expected sqrt(number)",formula_err_not_implemented:"Function not implemented: $fn()",plugin_display_name:"Notion bases",no_databases_found:'No databases found. Use the "create new database" command to create one.',cmd_open_database:"Open database for this folder",cmd_create_database:"Create new database in current folder",ctx_create_database:"Create database here",arr_settings_title:"Folder arrangement",arr_settings_desc:"Automatically move row files into nested subfolders based on the values of the selected properties, in order.",arr_settings_enabled_name:"Enable folder arrangement",arr_settings_enabled_desc:"When on, rows are moved as soon as one of the selected properties changes. Off by default.",arr_settings_no_props:"No properties selected. Add one below to define the folder hierarchy.",arr_settings_no_candidates:"No eligible columns. Folder arrangement supports text, select, status, and date columns.",arr_settings_add_placeholder:"Select a property...",arr_settings_add_btn:"Add",arr_settings_preview_btn:"Preview & apply to existing rows",arr_preview_title:"Folder arrangement preview",arr_preview_empty:"No rows need to be moved.",arr_preview_desc:"$count row(s) will be moved:",arr_preview_filtered_note:"Only files visible in the current view will be considered.",arr_preview_apply:"Apply",arr_preview_cancel:"Cancel",arr_preview_applied:"Moved $count row(s).",cmd_quick_add:"Quick add row to database",quick_add_title:"Quick add",quick_add_note_title:"Title",quick_add_note_title_placeholder:"Note title...",quick_add_create:"Create",quick_add_create_and_open:"Create and open",quick_add_no_visible_fields:"No editable fields in this database",picker_placeholder:"Select database...",picker_root:"/ (root)",view_fallback_name:"Database",saving:"Saving",saved:"Saved",save_error:"Save error",settings_page_size_name:"Rows per page",settings_page_size_desc:'Number of rows to display per page. Set to "all" for continuous scrolling',settings_page_size_all:"All (continuous scroll)",page_of:"Page {current} of {total}",first_page:"First page",last_page:"Last page",prev_page:"Previous page",next_page:"Next page",conditional_formatting:"Conditional formatting",no_conditional_formats:"No rules yet",add_rule:"Add rule",select_value:"Select a value",style:"Style",background:"Background",text_color:"Text color",save:"Save",cancel:"Cancel",value:"Value",db_settings_open:"Database settings",db_settings_title:"Database settings",db_settings_template_name:"Row template",db_settings_template_desc:"Apply this template to the body of every new row created in this database.",db_settings_template_choose:"Choose template",db_settings_template_clear:"Clear template",db_settings_template_none:"No template selected",db_settings_ask_name:"Ask for template on create",db_settings_ask_desc:"Prompt for a template each time a new row is added instead of applying the default.",template_picker_placeholder:"Choose a template...",template_picker_none:"No template (empty body)",folder_picker_placeholder:"Choose a destination folder..."},Sc=iy;var ly={view_table:"Tabela",view_list:"Lista",view_board:"Board",view_gallery:"Galeria",view_calendar:"Calend\xE1rio",view_timeline:"Timeline",view_chart:"Gr\xE1fico",add_view:"Adicionar view",remove_view:"Remover view",rename_view_hint:"Duplo clique para renomear",fields:"Campos",filter:"Filtro",filters:"Filtros",sort:"Ordenar",actions:"A\xE7\xF5es",group_by:"Agrupar por",cover:"Capa",date_field:"Data",start_field:"In\xEDcio",end_field:"Fim",group_field:"Agrupar",fields_in_card:"Campos no card",fields_label:"Campos",fields_on_bars:"Campos nas barras",filter_by:"Filtrar por",sort_by:"Ordenar por",group_by_label:"Agrupar por",date_field_label:"Campo de data",cover_field_label:"Campo de capa",card_size_label:"Tamanho dos cards",row_height_label:"Altura das linhas",none_value:"Nenhum",no_value:"Sem valor",no_cover:"Nenhuma",size_small:"Pequeno",size_medium:"M\xE9dio",size_large:"Grande",height_compact:"Compacto",height_medium:"M\xE9dio",height_tall:"Alto",add_filter_advanced:"Adicionar filtro avan\xE7ado",add_sort:"Adicionar ordena\xE7\xE3o",no_active_sorts:"Nenhuma ordena\xE7\xE3o ativa",name_column:"Nome",conjunction_and:"E",conjunction_or:"OU",filter_number_placeholder:"N\xFAmero...",filter_value_placeholder:"Valor...",delete_selected:"Apagar todos selecionados",move_selected:"Mover todos selecionados",duplicate_selected:"Duplicar todos selecionados",export_csv:"Exportar CSV",import_csv:"Importar CSV",open_note:"Abrir nota",delete_note:"Excluir nota",duplicate_note:"Duplicar nota",sort_asc:"Ascendente",sort_desc:"Descendente",sort_asc_title:"Ordenar descendente",sort_desc_title:"Remover ordena\xE7\xE3o",sort_none_title:"Ordenar ascendente",rename_column:"Renomear",edit_formula:"Editar f\xF3rmula",configure_lookup:"Configurar lookup",configure_relation:"Configurar rela\xE7\xE3o",format_number:"Formatar n\xFAmero",configure_image_folder:"Configurar pasta de imagens",field_type_label:"Tipo de campo",hide_field:"Ocultar campo",enable_wrap_text:"Quebrar texto",disable_wrap_text:"N\xE3o quebrar texto",delete_field:"Excluir campo",type_title:"T\xEDtulo",type_text:"Texto",type_number:"N\xFAmero",type_select:"Sele\xE7\xE3o",type_multiselect:"Multi-sele\xE7\xE3o",type_date:"Data",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Telefone",type_status:"Status",type_formula:"F\xF3rmula",type_relation:"Rela\xE7\xE3o",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurar rollup",rollup_select_relation:"1. Coluna de rela\xE7\xE3o",rollup_select_relation_placeholder:"Selecionar rela\xE7\xE3o...",rollup_select_target:"2. Coluna de destino",rollup_select_target_placeholder:"Selecionar coluna...",rollup_select_function:"3. Agrega\xE7\xE3o",rollup_no_relations:"Nenhuma coluna de rela\xE7\xE3o encontrada. Adicione uma coluna de rela\xE7\xE3o primeiro.",rollup_fn_sum:"Soma",rollup_fn_count:"Contar",rollup_fn_avg:"M\xE9dia",rollup_fn_min:"M\xEDn",rollup_fn_max:"M\xE1x",rollup_fn_count_values:"Contar \xFAnicos",rollup_fn_list:"Listar tudo",type_image:"Imagem",type_audio:"\xC1udio",audio_path_placeholder:"Caminho para o arquivo de \xE1udio...",audio_select_placeholder:"Selecionar \xE1udio...",audio_picker_title:"Selecionar \xE1udio",audio_picker_clear:"Limpar",audio_picker_empty_folder:"Nenhum arquivo de \xE1udio na pasta",audio_picker_empty_vault:"Nenhum arquivo de \xE1udio no vault",audio_panel_title:"Configura\xE7\xF5es de \xE1udio",audio_folder_label:"Pasta de origem (deixe vazio para o vault inteiro)",audio_folder_placeholder:"Ex: audio/musica",configure_audio_folder:"Configurar pasta de \xE1udio",type_video:"V\xEDdeo",video_select_placeholder:"Selecionar v\xEDdeo...",video_picker_clear:"Limpar",video_picker_empty_folder:"Nenhum arquivo de v\xEDdeo na pasta",video_picker_empty_vault:"Nenhum arquivo de v\xEDdeo no vault",video_panel_title:"Configura\xE7\xF5es de v\xEDdeo",video_folder_label:"Pasta de origem (deixe vazio para o vault inteiro)",video_folder_placeholder:"Ex: video/clipes",configure_video_folder:"Configurar pasta de v\xEDdeo",formula_panel_title:"F\xF3rmula",formula_placeholder:'Ex: if(status = "feito", 1, 0)',formula_valid:"Sintaxe v\xE1lida",formula_available_cols:"Colunas dispon\xEDveis:",formula_ref_toggle:"Refer\xEAncia de fun\xE7\xF5es",formula_save:"Salvar",formula_cancel:"Cancelar",formula_save_hint:"Salvar (Ctrl+Enter)",formula_group_logic:"L\xF3gica",formula_group_comparators:"Comparadores",formula_group_aggregators:"Agregadores",formula_group_text:"Texto",formula_group_math:"Matem\xE1tica",formula_group_utils:"Utilit\xE1rios",formula_desc_if:"Retorna a se cond for verdadeiro, caso contr\xE1rio b",formula_desc_ifs:"Testa condi\xE7\xF5es em sequ\xEAncia",formula_desc_and:"Verdadeiro se todos forem verdadeiros",formula_desc_or:"Verdadeiro se algum for verdadeiro",formula_desc_not:"Inverte o valor l\xF3gico",formula_desc_comparators:"Compara dois valores; combine com condicionais",formula_desc_sum:"Soma todos os valores da coluna",formula_desc_avg:"M\xE9dia dos valores da coluna",formula_desc_count:"Conta valores n\xE3o vazios da coluna",formula_desc_min:"Menor valor da coluna",formula_desc_max:"Maior valor da coluna",formula_desc_concat:"Concatena textos (ou use &)",formula_desc_len:"N\xFAmero de caracteres",formula_desc_upper_lower:"Mai\xFAsculas / min\xFAsculas",formula_desc_trim:"Remove espa\xE7os no in\xEDcio e no fim",formula_desc_left:"Primeiros n caracteres",formula_desc_right:"\xDAltimos n caracteres",formula_desc_mid:"Substring a partir da posi\xE7\xE3o",formula_desc_substitute:"Substitui ocorr\xEAncias",formula_desc_round:"Arredonda n para d casas decimais",formula_desc_floor_ceil:"Arredonda para baixo / para cima",formula_desc_abs:"Valor absoluto",formula_desc_mod:"Resto da divis\xE3o",formula_desc_power:"Base elevada ao expoente",formula_desc_sqrt:"Raiz quadrada",formula_desc_isnull:"Verdadeiro se v estiver vazio ou nulo",formula_desc_coalesce:"Primeiro valor n\xE3o vazio",formula_desc_text:"Converte para texto",formula_desc_value:"Converte para n\xFAmero",number_format_title:"Formatar",number_decimals_label:"Casas decimais",number_thousands_label:"Separador de milhar",number_prefix_label:"Prefixo",number_suffix_label:"Sufixo",number_prefix_placeholder:"Ex: R$, $, \u20AC",number_suffix_placeholder:"Ex: %, kg, km",number_remove_format:"Remover formata\xE7\xE3o",relation_panel_title:"Rela\xE7\xE3o",lookup_panel_title:"Lookup",lookup_ref_table:"1. Tabela de refer\xEAncia",lookup_select_table:"Selecionar tabela...",lookup_col_to_display:"2. Coluna a exibir",lookup_origin_col:"2. Campo de origem dos valores",lookup_select_col:"Selecionar coluna...",lookup_file_name:"Nome do arquivo",lookup_join_col:"3. Coluna de jun\xE7\xE3o (nesta tabela)",lookup_join_col_title:"Nome do arquivo (jun\xE7\xE3o por t\xEDtulo)",lookup_select_join_col:"Selecionar coluna...",lookup_hint:"O valor desta coluna deve ser igual ao nome do arquivo da nota na tabela referenciada",image_panel_title:"Imagem",image_folder_label:"Pasta de origem (opcional)",image_folder_placeholder:"Ex: imagens/capas",image_picker_title:"Selecionar imagem",image_picker_clear:"Limpar",image_picker_empty_vault:"Nenhuma imagem encontrada no vault",image_picker_empty_folder:"Nenhuma imagem encontrada em",image_select_placeholder:"Selecionar imagem\u2026",agg_none:"Nenhum",agg_count:"Contar",agg_count_values:"Contar valores",agg_sum:"Soma",agg_avg:"M\xE9dia",agg_min:"M\xEDn",agg_max:"M\xE1x",no_database_open:"Nenhum banco de dados aberto.",no_database_hint:'Use o bot\xE3o na ribbon ou o comando "criar novo banco de dados".',loading:"Carregando...",no_results:"Nenhum item encontrado",item_singular:"Item",item_plural:"Itens",row_singular:"Linha",row_plural:"Linhas",record_singular:"Registro",record_plural:"Registros",add_row:"Nova linha",add_entry:"Nova entrada",add_card:"Novo card",new_field:"Novo campo",add_field:"Adicionar campo",board_no_select_col:"O board precisa de uma coluna do tipo select ou status para agrupar os cards.",board_add_select_hint:"Adicione uma coluna desse tipo na view de tabela e volte aqui.",board_drag_reorder:"Arraste para reordenar",board_set_limit:"Clique para definir limite de cards",board_limit_placeholder:"Limite (0 = nenhum)",board_show_more:"Mais",board_show_less:"Mostrar menos",hide_empty_cols:"Ocultar vazias",hide_no_value_cols:"Ocultar sem valor",calendar_no_date_field:"Selecione um campo de data no toolbar para exibir o calend\xE1rio.",calendar_no_date_section:"Sem data",calendar_click_to_create:"Clique para criar nota",calendar_today:"Hoje",calendar_prev_month:"M\xEAs anterior",calendar_next_month:"Pr\xF3ximo m\xEAs",calendar_view_month:"M\xEAs",calendar_view_week:"Semana",calendar_prev_week:"Semana anterior",calendar_next_week:"Pr\xF3xima semana",calendar_add_time:"Adicionar hor\xE1rio",calendar_remove_time:"Remover hor\xE1rio",calendar_all_day:"Dia inteiro",day_sun:"Dom",day_mon:"Seg",day_tue:"Ter",day_wed:"Qua",day_thu:"Qui",day_fri:"Sex",day_sat:"S\xE1b",month_january:"Janeiro",month_february:"Fevereiro",month_march:"Mar\xE7o",month_april:"Abril",month_may:"Maio",month_june:"Junho",month_july:"Julho",month_august:"Agosto",month_september:"Setembro",month_october:"Outubro",month_november:"Novembro",month_december:"Dezembro",timeline_no_start_field:"Selecione um campo de in\xEDcio no toolbar para exibir a timeline.",timeline_no_interval:"Sem intervalo",timeline_scroll_prev:"Scroll anterior",timeline_scroll_next:"Scroll pr\xF3ximo",zoom_days:"Dias",zoom_weeks:"Semanas",zoom_months:"Meses",month_short_jan:"Jan",month_short_feb:"Fev",month_short_mar:"Mar",month_short_apr:"Abr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ago",month_short_sep:"Set",month_short_oct:"Out",month_short_nov:"Nov",month_short_dec:"Dez",hierarchy_toggle:"Usar como hierarquia",hierarchy_toggle_hint:"Habilita relacionamentos pai-filho entre linhas neste banco de dados",add_subrow:"Adicionar sublinha",collapse_all:"Recolher tudo",expand_all:"Expandir tudo",max_depth_reached:"Profundidade m\xE1xima atingida (3 n\xEDveis)",chart_configure:"Configurar",chart_type:"Tipo de gr\xE1fico",chart_type_bar:"Barras",chart_type_line:"Linhas",chart_type_pie:"Pizza",chart_x_axis:"Categorias (eixo X)",chart_y_axis:"Valores (eixo Y)",chart_aggregation:"Agrega\xE7\xE3o",chart_select_column:"Selecionar coluna...",chart_count_records:"Contagem",chart_no_config:"Configure o gr\xE1fico para come\xE7ar.",chart_no_config_hint:"Selecione uma coluna para categorias na barra de ferramentas acima.",tooltip_pin_column:"Fixar colunas at\xE9 aqui",tooltip_unpin_column:"Desafixar colunas",tooltip_resize_column:"Arrastar para redimensionar; clique duplo para ajustar ao conte\xFAdo",tooltip_wrap_text:"Wrap de texto",tooltip_include_subfolders:"Incluir subpastas",folder_column:"Pasta",tooltip_manage_fields:"Gerenciar campos",tooltip_batch_actions:"A\xE7\xF5es em lote",tooltip_remove_filter:"Remover filtro",hide_filters:"Ocultar filtros",show_filters:"Exibir filtros",filters_count_one:"1 filtro",filters_count_other:"{n} filtros",tooltip_drag_reorder:"Arrastar para reordenar",tooltip_search:"Pesquisar",tooltip_toggle_and_or:"Clique para alternar o operador l\xF3gico",tooltip_close:"Fechar",tooltip_remove:"Remover",tooltip_move_up:"Mover para cima",tooltip_move_down:"Mover para baixo",tooltip_change_color:"Trocar cor",tooltip_delete_status:"Excluir status",status_not_started:"N\xE3o iniciado",status_in_progress:"Em andamento",status_done:"Conclu\xEDdo",status_cancelled:"Cancelado",relation_search_placeholder:"Buscar...",relation_clear:"Limpar",relation_no_results:"Nenhum resultado",relation_two_way:"Rela\xE7\xE3o bidirecional",relation_two_way_hint:"Cria automaticamente uma rela\xE7\xE3o inversa no banco de dados de destino",select_clear:"Limpar",select_create_placeholder:"Criar nova op\xE7\xE3o...",status_new_placeholder:"Novo status...",color_custom:"Personalizada",validate_non_numeric:'C\xE9lula(s) cont\xEAm valores n\xE3o num\xE9ricos (ex: "',validate_invalid_dates:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o datas v\xE1lidas (ex: "',validate_invalid_checkbox:'C\xE9lula(s) cont\xEAm valores incompat\xEDveis com checkbox (ex: "',validate_multiselect_to_select:"Linha(s) t\xEAm m\xFAltiplos valores selecionados. Remova os extras antes de mudar para sele\xE7\xE3o \xFAnica.",validate_invalid_email:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o e-mails v\xE1lidos (ex: "',validate_invalid_url:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o URLs v\xE1lidas (ex: "',validate_invalid_phone:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o telefones v\xE1lidos (ex: "',validate_type_change_prefix:"N\xE3o \xE9 poss\xEDvel mudar o tipo: ",email_invalid:"E-mail inv\xE1lido",op_is:"\xC9",op_is_not:"N\xE3o \xE9",op_contains:"Cont\xE9m",op_not_contains:"N\xE3o cont\xE9m",op_starts_with:"Come\xE7a com",op_ends_with:"Termina com",op_is_empty:"Est\xE1 vazio",op_is_not_empty:"N\xE3o est\xE1 vazio",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est\xE1 marcado",op_is_unchecked:"N\xE3o est\xE1 marcado",settings_db_filename_name:"Nome do arquivo de banco de dados",settings_db_filename_desc:"Nome do arquivo especial que identifica um banco de dados na pasta.",settings_row_height_name:"Altura padr\xE3o das linhas",settings_row_height_desc:"Altura em pixels de cada linha da tabela.",settings_inline_fields_name:"Ler campos inline do dataview",settings_inline_fields_desc:"Interpreta campos key:: value no corpo da nota e os exibe como valores de coluna (somente leitura)",db_untitled_note:"Sem t\xEDtulo",db_copy_suffix:"(c\xF3pia)",db_copy_suffix_n:"(c\xF3pia $n)",db_already_exists:'J\xE1 existe um banco de dados em "$folder"',db_tip_body:"Este arquivo \xE9 um banco de dados. Abra-o para ver a visualiza\xE7\xE3o de tabela.",formula_err_unclosed_string:"String n\xE3o fechada na posi\xE7\xE3o $pos",formula_err_unclosed_bracket:"Colchete n\xE3o fechado na posi\xE7\xE3o $pos",formula_err_unexpected_bang:"Caractere inesperado '!' na posi\xE7\xE3o $pos",formula_err_unexpected_char:"Caractere inesperado '$char' na posi\xE7\xE3o $pos",formula_err_expected_token:"Esperado $expected, encontrado '$found' na posi\xE7\xE3o $pos",formula_err_unexpected_token:"Token inesperado '$token' na posi\xE7\xE3o $pos",formula_err_circular_ref:'Refer\xEAncia circular: "$name" \xE9 uma coluna f\xF3rmula',formula_err_unknown_fn:"Fun\xE7\xE3o desconhecida: $fn()",formula_err_if_args:"Esperado if(condi\xE7\xE3o, se_verdadeiro, [se_falso])",formula_err_avg_args:"Esperado avg(coluna) \u2014 requer refer\xEAncia de coluna como argumento",formula_err_count_args:"Esperado count(coluna) \u2014 requer refer\xEAncia de coluna como argumento",formula_err_mid_args:"Esperado mid(texto, in\xEDcio, comprimento)",formula_err_mod_args:"Esperado mod(n\xFAmero, divisor)",formula_err_sqrt_args:"Esperado sqrt(n\xFAmero)",formula_err_not_implemented:"Fun\xE7\xE3o n\xE3o implementada: $fn()",plugin_display_name:"Notion bases",no_databases_found:'Nenhum banco de dados encontrado. Use o comando "Criar novo banco de dados" para criar um.',cmd_open_database:"Abrir banco de dados desta pasta",cmd_create_database:"Criar novo banco de dados na pasta atual",ctx_create_database:"Criar banco de dados aqui",arr_settings_title:"Organiza\xE7\xE3o por pastas",arr_settings_desc:"Move automaticamente os arquivos de linha para subpastas aninhadas com base nos valores das propriedades selecionadas, na ordem definida.",arr_settings_enabled_name:"Ativar organiza\xE7\xE3o por pastas",arr_settings_enabled_desc:"Quando ativado, as linhas s\xE3o movidas assim que uma das propriedades selecionadas \xE9 alterada. Desativado por padr\xE3o.",arr_settings_no_props:"Nenhuma propriedade selecionada. Adicione uma abaixo para definir a hierarquia de pastas.",arr_settings_no_candidates:"Nenhuma coluna eleg\xEDvel. A organiza\xE7\xE3o por pastas suporta colunas de texto, sele\xE7\xE3o, status e data.",arr_settings_add_placeholder:"Selecionar uma propriedade...",arr_settings_add_btn:"Adicionar",arr_settings_preview_btn:"Pr\xE9-visualizar e aplicar \xE0s linhas existentes",arr_preview_title:"Pr\xE9-visualiza\xE7\xE3o da organiza\xE7\xE3o por pastas",arr_preview_empty:"Nenhuma linha precisa ser movida.",arr_preview_desc:"$count linha(s) ser\xE1(\xE3o) movida(s):",arr_preview_filtered_note:"Apenas arquivos vis\xEDveis na view atual ser\xE3o considerados.",arr_preview_apply:"Aplicar",arr_preview_cancel:"Cancelar",arr_preview_applied:"$count linha(s) movida(s).",cmd_quick_add:"Adicionar linha rapidamente ao banco de dados",quick_add_title:"Adi\xE7\xE3o r\xE1pida",quick_add_note_title:"T\xEDtulo",quick_add_note_title_placeholder:"T\xEDtulo da nota...",quick_add_create:"Criar",quick_add_create_and_open:"Criar e abrir",quick_add_no_visible_fields:"Nenhum campo edit\xE1vel neste banco de dados",picker_placeholder:"Selecionar banco de dados...",picker_root:"/ (Raiz)",view_fallback_name:"Banco de dados",saving:"Salvando",saved:"Salvo",save_error:"Erro ao salvar",settings_page_size_name:"Linhas por p\xE1gina",settings_page_size_desc:'N\xFAmero de linhas a exibir por p\xE1gina. Defina como "Todas" para rolagem cont\xEDnua',settings_page_size_all:"Todas (rolagem cont\xEDnua)",page_of:"P\xE1gina {current} de {total}",first_page:"Primeira p\xE1gina",last_page:"\xDAltima p\xE1gina",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",conditional_formatting:"Formata\xE7\xE3o condicional",no_conditional_formats:"Nenhuma regra ainda",add_rule:"Adicionar regra",select_value:"Selecione um valor",style:"Estilo",background:"Plano de fundo",text_color:"Cor do texto",save:"Salvar",cancel:"Cancelar",value:"Valor",db_settings_open:"Configura\xE7\xF5es do banco de dados",db_settings_title:"Configura\xE7\xF5es do banco de dados",db_settings_template_name:"Modelo de linha",db_settings_template_desc:"Aplica este modelo ao corpo de cada nova linha criada neste banco de dados.",db_settings_template_choose:"Escolher modelo",db_settings_template_clear:"Remover modelo",db_settings_template_none:"Nenhum modelo selecionado",db_settings_ask_name:"Perguntar pelo modelo ao criar",db_settings_ask_desc:"Solicitar um modelo toda vez que uma nova linha for adicionada, em vez de usar o padr\xE3o.",template_picker_placeholder:"Escolha um modelo...",template_picker_none:"Sem modelo (corpo vazio)",folder_picker_placeholder:"Escolha uma pasta de destino..."},Nc=ly;var sy={view_table:"Tabla",view_list:"Lista",view_board:"Tablero",view_gallery:"Galer\xEDa",view_calendar:"Calendario",view_timeline:"L\xEDnea de tiempo",view_chart:"Gr\xE1fico",add_view:"A\xF1adir vista",remove_view:"Eliminar vista",rename_view_hint:"Doble clic para renombrar",fields:"Campos",filter:"Filtro",filters:"Filtros",sort:"Ordenar",actions:"Acciones",group_by:"Agrupar por",cover:"Portada",date_field:"Fecha",start_field:"Inicio",end_field:"Fin",group_field:"Grupo",fields_in_card:"Campos en tarjeta",fields_label:"Campos",fields_on_bars:"Campos en barras",filter_by:"Filtrar por",sort_by:"Ordenar por",group_by_label:"Agrupar por",date_field_label:"Campo de fecha",cover_field_label:"Campo de portada",card_size_label:"Tama\xF1o de tarjeta",row_height_label:"Altura de fila",none_value:"Ninguno",no_value:"Sin valor",no_cover:"Ninguna",size_small:"Peque\xF1o",size_medium:"Mediano",size_large:"Grande",height_compact:"Compacto",height_medium:"Mediano",height_tall:"Alto",add_filter_advanced:"A\xF1adir filtro avanzado",add_sort:"A\xF1adir ordenaci\xF3n",no_active_sorts:"Sin ordenaciones activas",name_column:"Nombre",conjunction_and:"Y",conjunction_or:"O",filter_number_placeholder:"N\xFAmero...",filter_value_placeholder:"Valor...",delete_selected:"Eliminar todos los seleccionados",move_selected:"Mover todos los seleccionados",duplicate_selected:"Duplicar todos los seleccionados",export_csv:"Exportar CSV",import_csv:"Importar CSV",open_note:"Abrir nota",delete_note:"Eliminar nota",duplicate_note:"Duplicar nota",sort_asc:"Ascendente",sort_desc:"Descendente",sort_asc_title:"Ordenar descendente",sort_desc_title:"Eliminar ordenaci\xF3n",sort_none_title:"Ordenar ascendente",rename_column:"Renombrar",edit_formula:"Editar f\xF3rmula",configure_lookup:"Configurar lookup",configure_relation:"Configurar relaci\xF3n",format_number:"Formatear n\xFAmero",configure_image_folder:"Configurar carpeta de im\xE1genes",field_type_label:"Tipo de campo",hide_field:"Ocultar campo",enable_wrap_text:"Ajustar texto",disable_wrap_text:"No ajustar texto",delete_field:"Eliminar campo",type_title:"T\xEDtulo",type_text:"Texto",type_number:"N\xFAmero",type_select:"Selecci\xF3n",type_multiselect:"Multi-selecci\xF3n",type_date:"Fecha",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Tel\xE9fono",type_status:"Estado",type_formula:"F\xF3rmula",type_relation:"Relaci\xF3n",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurar rollup",rollup_select_relation:"1. Columna de relaci\xF3n",rollup_select_relation_placeholder:"Seleccionar relaci\xF3n...",rollup_select_target:"2. Columna de destino",rollup_select_target_placeholder:"Seleccionar columna...",rollup_select_function:"3. Agregaci\xF3n",rollup_no_relations:"No se encontraron columnas de relaci\xF3n. A\xF1ade una columna de relaci\xF3n primero.",rollup_fn_sum:"Suma",rollup_fn_count:"Contar",rollup_fn_avg:"Promedio",rollup_fn_min:"M\xEDn",rollup_fn_max:"M\xE1x",rollup_fn_count_values:"Contar \xFAnicos",rollup_fn_list:"Listar todo",type_image:"Imagen",type_audio:"Audio",audio_path_placeholder:"Ruta al archivo de audio...",audio_select_placeholder:"Seleccionar audio...",audio_picker_title:"Seleccionar audio",audio_picker_clear:"Limpiar",audio_picker_empty_folder:"No hay archivos de audio en la carpeta",audio_picker_empty_vault:"No hay archivos de audio en el vault",audio_panel_title:"Configuraci\xF3n de audio",audio_folder_label:"Carpeta de origen (dejar vac\xEDo para todo el vault)",audio_folder_placeholder:"Ej: audio/musica",configure_audio_folder:"Configurar carpeta de audio",type_video:"V\xEDdeo",video_select_placeholder:"Seleccionar v\xEDdeo...",video_picker_clear:"Limpiar",video_picker_empty_folder:"No hay archivos de v\xEDdeo en la carpeta",video_picker_empty_vault:"No hay archivos de v\xEDdeo en el vault",video_panel_title:"Configuraci\xF3n de v\xEDdeo",video_folder_label:"Carpeta de origen (dejar vac\xEDo para todo el vault)",video_folder_placeholder:"Ej: video/clips",configure_video_folder:"Configurar carpeta de v\xEDdeo",formula_panel_title:"F\xF3rmula",formula_placeholder:'Ejemplo: if(status = "done", 1, 0)',formula_valid:"Sintaxis v\xE1lida",formula_available_cols:"Columnas disponibles:",formula_ref_toggle:"Referencia de funciones",formula_save:"Guardar",formula_cancel:"Cancelar",formula_save_hint:"Guardar (Ctrl+Enter)",formula_group_logic:"L\xF3gica",formula_group_comparators:"Comparadores",formula_group_aggregators:"Agregadores",formula_group_text:"Texto",formula_group_math:"Matem\xE1ticas",formula_group_utils:"Utilidades",formula_desc_if:"Devuelve a si cond es verdadero, de lo contrario b",formula_desc_ifs:"Prueba condiciones en secuencia",formula_desc_and:"Verdadero si todos son verdaderos",formula_desc_or:"Verdadero si alguno es verdadero",formula_desc_not:"Invierte el valor l\xF3gico",formula_desc_comparators:"Compara dos valores; combinar con condicionales",formula_desc_sum:"Suma todos los valores de la columna",formula_desc_avg:"Promedio de los valores de la columna",formula_desc_count:"Cuenta los valores no vac\xEDos de la columna",formula_desc_min:"Valor m\xE1s peque\xF1o de la columna",formula_desc_max:"Valor m\xE1s grande de la columna",formula_desc_concat:"Concatena textos (o usar &)",formula_desc_len:"N\xFAmero de caracteres",formula_desc_upper_lower:"May\xFAsculas / min\xFAsculas",formula_desc_trim:"Elimina espacios al inicio y al final",formula_desc_left:"Primeros n caracteres",formula_desc_right:"\xDAltimos n caracteres",formula_desc_mid:"Subcadena a partir de la posici\xF3n",formula_desc_substitute:"Reemplaza ocurrencias",formula_desc_round:"Redondea n a d decimales",formula_desc_floor_ceil:"Redondea hacia abajo / hacia arriba",formula_desc_abs:"Valor absoluto",formula_desc_mod:"Resto de la divisi\xF3n",formula_desc_power:"Base elevada al exponente",formula_desc_sqrt:"Ra\xEDz cuadrada",formula_desc_isnull:"Verdadero si v est\xE1 vac\xEDo o es nulo",formula_desc_coalesce:"Primer valor no vac\xEDo",formula_desc_text:"Convierte a texto",formula_desc_value:"Convierte a n\xFAmero",number_format_title:"Formato",number_decimals_label:"Decimales",number_thousands_label:"Separador de miles",number_prefix_label:"Prefijo",number_suffix_label:"Sufijo",number_prefix_placeholder:"Ej: $, \u20AC",number_suffix_placeholder:"Ej: %, kg, km",number_remove_format:"Eliminar formato",relation_panel_title:"Relaci\xF3n",lookup_panel_title:"Lookup",lookup_ref_table:"1. Tabla de referencia",lookup_select_table:"Seleccionar tabla...",lookup_col_to_display:"2. Columna a mostrar",lookup_origin_col:"2. Campo de origen de valores",lookup_select_col:"Seleccionar columna...",lookup_file_name:"Nombre de archivo",lookup_join_col:"3. Columna de uni\xF3n (esta tabla)",lookup_join_col_title:"Nombre de archivo (unir por t\xEDtulo)",lookup_select_join_col:"Seleccionar columna...",lookup_hint:"El valor de esta columna debe coincidir con el nombre de archivo en la tabla referenciada",image_panel_title:"Imagen",image_folder_label:"Carpeta de origen (opcional)",image_folder_placeholder:"Ej: images/covers",image_picker_title:"Seleccionar imagen",image_picker_clear:"Limpiar",image_picker_empty_vault:"No se encontraron im\xE1genes en el vault",image_picker_empty_folder:"No se encontraron im\xE1genes en",image_select_placeholder:"Seleccionar imagen\u2026",agg_none:"Ninguno",agg_count:"Contar",agg_count_values:"Contar valores",agg_sum:"Suma",agg_avg:"Promedio",agg_min:"M\xEDn",agg_max:"M\xE1x",no_database_open:"No hay base de datos abierta.",no_database_hint:'Usa el bot\xF3n de la barra lateral o el comando "crear nueva base de datos".',loading:"Cargando...",no_results:"No se encontraron elementos",item_singular:"Elemento",item_plural:"Elementos",row_singular:"Fila",row_plural:"Filas",record_singular:"Registro",record_plural:"Registros",add_row:"Nueva fila",add_entry:"Nueva entrada",add_card:"Nueva tarjeta",new_field:"Nuevo campo",add_field:"A\xF1adir campo",board_no_select_col:"El tablero requiere una columna de selecci\xF3n o estado para agrupar tarjetas.",board_add_select_hint:"A\xF1ade una columna de ese tipo en la vista de tabla y vuelve aqu\xED.",board_drag_reorder:"Arrastra para reordenar",board_set_limit:"Clic para definir limite de tarjetas",board_limit_placeholder:"Limite (0 = ninguno)",board_show_more:"Mas",board_show_less:"Mostrar menos",hide_empty_cols:"Ocultar vac\xEDas",hide_no_value_cols:"Ocultar sin valor",calendar_no_date_field:"Selecciona un campo de fecha en la barra de herramientas para mostrar el calendario.",calendar_no_date_section:"Sin fecha",calendar_click_to_create:"Clic para crear nota",calendar_today:"Hoy",calendar_prev_month:"Mes anterior",calendar_next_month:"Mes siguiente",calendar_view_month:"Mes",calendar_view_week:"Semana",calendar_prev_week:"Semana anterior",calendar_next_week:"Semana siguiente",calendar_add_time:"A\xF1adir hora",calendar_remove_time:"Quitar hora",calendar_all_day:"Todo el d\xEDa",day_sun:"Dom",day_mon:"Lun",day_tue:"Mar",day_wed:"Mi\xE9",day_thu:"Jue",day_fri:"Vie",day_sat:"S\xE1b",month_january:"Enero",month_february:"Febrero",month_march:"Marzo",month_april:"Abril",month_may:"Mayo",month_june:"Junio",month_july:"Julio",month_august:"Agosto",month_september:"Septiembre",month_october:"Octubre",month_november:"Noviembre",month_december:"Diciembre",timeline_no_start_field:"Selecciona un campo de inicio en la barra de herramientas para mostrar la l\xEDnea de tiempo.",timeline_no_interval:"Sin intervalo",timeline_scroll_prev:"Desplazar atr\xE1s",timeline_scroll_next:"Desplazar adelante",zoom_days:"D\xEDas",zoom_weeks:"Semanas",zoom_months:"Meses",month_short_jan:"Ene",month_short_feb:"Feb",month_short_mar:"Mar",month_short_apr:"Abr",month_short_may:"May",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ago",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"Dic",hierarchy_toggle:"Usar como jerarqu\xEDa",hierarchy_toggle_hint:"Habilita relaciones padre-hijo entre filas de esta base de datos",add_subrow:"A\xF1adir subfila",collapse_all:"Contraer todo",expand_all:"Expandir todo",max_depth_reached:"Profundidad m\xE1xima alcanzada (3 niveles)",chart_configure:"Configurar",chart_type:"Tipo de gr\xE1fico",chart_type_bar:"Barras",chart_type_line:"L\xEDneas",chart_type_pie:"Circular",chart_x_axis:"Categor\xEDas (eje X)",chart_y_axis:"Valores (eje Y)",chart_aggregation:"Agregaci\xF3n",chart_select_column:"Seleccionar columna...",chart_count_records:"Contar",chart_no_config:"Configura el gr\xE1fico para empezar.",chart_no_config_hint:"Selecciona una columna para categor\xEDas en la barra de herramientas de arriba.",tooltip_pin_column:"Fijar columnas hasta aqu\xED",tooltip_unpin_column:"Desfijar columnas",tooltip_resize_column:"Arrastra para redimensionar; doble clic para ajustar al contenido",tooltip_wrap_text:"Ajuste de texto",tooltip_include_subfolders:"Incluir subcarpetas",folder_column:"Carpeta",tooltip_manage_fields:"Gestionar campos",tooltip_batch_actions:"Acciones en lote",tooltip_remove_filter:"Eliminar filtro",hide_filters:"Ocultar filtros",show_filters:"Mostrar filtros",filters_count_one:"1 filtro",filters_count_other:"{n} filtros",tooltip_drag_reorder:"Arrastar para reordenar",tooltip_search:"Buscar",tooltip_toggle_and_or:"Clic para cambiar el operador l\xF3gico",tooltip_close:"Cerrar",tooltip_remove:"Eliminar",tooltip_move_up:"Mover arriba",tooltip_move_down:"Mover abajo",tooltip_change_color:"Cambiar color",tooltip_delete_status:"Eliminar estado",status_not_started:"No iniciado",status_in_progress:"En progreso",status_done:"Hecho",status_cancelled:"Cancelado",relation_search_placeholder:"Buscar...",relation_clear:"Limpiar",relation_no_results:"Sin resultados",relation_two_way:"Relaci\xF3n bidireccional",relation_two_way_hint:"Crea autom\xE1ticamente una relaci\xF3n inversa en la base de datos de destino",select_clear:"Limpiar",select_create_placeholder:"Crear nueva opci\xF3n...",status_new_placeholder:"Nuevo estado...",color_custom:"Personalizado",validate_non_numeric:'Celda(s) contienen valores no num\xE9ricos (ej: "',validate_invalid_dates:'Celda(s) contienen valores que no son fechas v\xE1lidas (ej: "',validate_invalid_checkbox:'Celda(s) contienen valores incompatibles con checkbox (ej: "',validate_multiselect_to_select:"Fila(s) tienen m\xFAltiples valores seleccionados. Elimina los extras antes de cambiar a selecci\xF3n \xFAnica.",validate_invalid_email:'Celda(s) contienen valores que no son emails v\xE1lidos (ej: "',validate_invalid_url:'Celda(s) contienen valores que no son URLs v\xE1lidas (ej: "',validate_invalid_phone:'Celda(s) contienen valores que no son tel\xE9fonos v\xE1lidos (ej: "',validate_type_change_prefix:"No se puede cambiar el tipo: ",email_invalid:"Email inv\xE1lido",op_is:"Es",op_is_not:"No es",op_contains:"Contiene",op_not_contains:"No contiene",op_starts_with:"Empieza con",op_ends_with:"Termina con",op_is_empty:"Est\xE1 vac\xEDo",op_is_not_empty:"No est\xE1 vac\xEDo",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est\xE1 marcado",op_is_unchecked:"No est\xE1 marcado",settings_db_filename_name:"Nombre del archivo de base de datos",settings_db_filename_desc:"Nombre del archivo especial que identifica una base de datos en una carpeta.",settings_row_height_name:"Altura de fila predeterminada",settings_row_height_desc:"Altura en p\xEDxeles de cada fila de la tabla.",settings_inline_fields_name:"Leer campos inline de dataview",settings_inline_fields_desc:"Interpreta campos key:: value del cuerpo de la nota y los muestra como valores de columna (solo lectura)",db_untitled_note:"Sin t\xEDtulo",db_copy_suffix:"(copia)",db_copy_suffix_n:"(copia $n)",db_already_exists:'Ya existe una base de datos en "$folder"',db_tip_body:"Este archivo es una base de datos. \xC1brelo para ver la vista de tabla.",formula_err_unclosed_string:"Cadena sin cerrar en posici\xF3n $pos",formula_err_unclosed_bracket:"Corchete sin cerrar en posici\xF3n $pos",formula_err_unexpected_bang:"Car\xE1cter inesperado '!' en posici\xF3n $pos",formula_err_unexpected_char:"Car\xE1cter inesperado '$char' en posici\xF3n $pos",formula_err_expected_token:"Se esperaba $expected, se encontr\xF3 '$found' en posici\xF3n $pos",formula_err_unexpected_token:"Token inesperado '$token' en posici\xF3n $pos",formula_err_circular_ref:'Referencia circular: "$name" es una columna f\xF3rmula',formula_err_unknown_fn:"Funci\xF3n desconocida: $fn()",formula_err_if_args:"Expected if(condition, if_true, [if_false])",formula_err_avg_args:"Se espera avg(columna) \u2014 requiere referencia de columna como argumento",formula_err_count_args:"Se espera count(columna) \u2014 requiere referencia de columna como argumento",formula_err_mid_args:"Se espera mid(texto, inicio, longitud)",formula_err_mod_args:"Se espera mod(n\xFAmero, divisor)",formula_err_sqrt_args:"Se espera sqrt(n\xFAmero)",formula_err_not_implemented:"Funci\xF3n no implementada: $fn()",plugin_display_name:"Notion bases",no_databases_found:'No se encontraron bases de datos. Usa el comando "crear nueva base de datos" para crear una.',cmd_open_database:"Abrir base de datos de esta carpeta",cmd_create_database:"Crear nueva base de datos en la carpeta actual",ctx_create_database:"Crear base de datos aqu\xED",arr_settings_title:"Organizaci\xF3n por carpetas",arr_settings_desc:"Mueve autom\xE1ticamente los archivos de fila a subcarpetas anidadas seg\xFAn los valores de las propiedades seleccionadas, en orden.",arr_settings_enabled_name:"Activar organizaci\xF3n por carpetas",arr_settings_enabled_desc:"Cuando est\xE1 activado, las filas se mueven en cuanto cambia una de las propiedades seleccionadas. Desactivado por defecto.",arr_settings_no_props:"No hay propiedades seleccionadas. A\xF1ade una a continuaci\xF3n para definir la jerarqu\xEDa de carpetas.",arr_settings_no_candidates:"No hay columnas elegibles. La organizaci\xF3n por carpetas admite columnas de texto, selecci\xF3n, estado y fecha.",arr_settings_add_placeholder:"Seleccionar una propiedad...",arr_settings_add_btn:"A\xF1adir",arr_settings_preview_btn:"Previsualizar y aplicar a filas existentes",arr_preview_title:"Previsualizaci\xF3n de la organizaci\xF3n por carpetas",arr_preview_empty:"No hay filas que mover.",arr_preview_desc:"$count fila(s) ser\xE1n movidas:",arr_preview_filtered_note:"Solo se considerar\xE1n los archivos visibles en la vista actual.",arr_preview_apply:"Aplicar",arr_preview_cancel:"Cancelar",arr_preview_applied:"$count fila(s) movida(s).",cmd_quick_add:"A\xF1adir fila r\xE1pidamente a la base de datos",quick_add_title:"A\xF1adir r\xE1pido",quick_add_note_title:"T\xEDtulo",quick_add_note_title_placeholder:"T\xEDtulo de la nota...",quick_add_create:"Crear",quick_add_create_and_open:"Crear y abrir",quick_add_no_visible_fields:"No hay campos editables en esta base de datos",picker_placeholder:"Seleccionar base de datos...",picker_root:"/ (Ra\xEDz)",view_fallback_name:"Base de datos",saving:"Guardando",saved:"Guardado",save_error:"Error al guardar",settings_page_size_name:"Filas por p\xE1gina",settings_page_size_desc:'N\xFAmero de filas a mostrar por p\xE1gina. Establece "Todas" para desplazamiento continuo',settings_page_size_all:"Todas (desplazamiento continuo)",page_of:"P\xE1gina {current} de {total}",first_page:"Primera p\xE1gina",last_page:"\xDAltima p\xE1gina",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",conditional_formatting:"Formato condicional",no_conditional_formats:"Sin reglas todav\xEDa",add_rule:"A\xF1adir regla",select_value:"Selecciona un valor",style:"Estilo",background:"Fondo",text_color:"Color de texto",save:"Guardar",cancel:"Cancelar",value:"Valor",db_settings_open:"Configuraci\xF3n de la base de datos",db_settings_title:"Configuraci\xF3n de la base de datos",db_settings_template_name:"Plantilla de fila",db_settings_template_desc:"Aplica esta plantilla al cuerpo de cada nueva fila creada en esta base de datos.",db_settings_template_choose:"Elegir plantilla",db_settings_template_clear:"Quitar plantilla",db_settings_template_none:"Sin plantilla seleccionada",db_settings_ask_name:"Pedir plantilla al crear",db_settings_ask_desc:"Solicitar una plantilla cada vez que se a\xF1ada una nueva fila en lugar de aplicar la predeterminada.",template_picker_placeholder:"Elige una plantilla...",template_picker_none:"Sin plantilla (cuerpo vac\xEDo)",folder_picker_placeholder:"Elige una carpeta de destino..."},Qm=sy;var uy={view_table:"Tableau",view_list:"Liste",view_board:"Tableau Kanban",view_gallery:"Galerie",view_calendar:"Calendrier",view_timeline:"Chronologie",view_chart:"Graphique",add_view:"Ajouter une vue",remove_view:"Supprimer la vue",rename_view_hint:"Double-cliquez pour renommer",fields:"Champs",filter:"Filtre",filters:"Filtres",sort:"Trier",actions:"Actions",group_by:"Grouper par",cover:"Couverture",date_field:"Date",start_field:"D\xE9but",end_field:"Fin",group_field:"Groupe",fields_in_card:"Champs dans la carte",fields_label:"Champs",fields_on_bars:"Champs sur les barres",filter_by:"Filtrer par",sort_by:"Trier par",group_by_label:"Grouper par",date_field_label:"Champ de date",cover_field_label:"Champ de couverture",card_size_label:"Taille de carte",row_height_label:"Hauteur de ligne",none_value:"Aucun",no_value:"Sans valeur",no_cover:"Aucune",size_small:"Petit",size_medium:"Moyen",size_large:"Grand",height_compact:"Compact",height_medium:"Moyen",height_tall:"Grand",add_filter_advanced:"Ajouter un filtre avanc\xE9",add_sort:"Ajouter un tri",no_active_sorts:"Aucun tri actif",name_column:"Nom",conjunction_and:"ET",conjunction_or:"OU",filter_number_placeholder:"Nombre...",filter_value_placeholder:"Valeur...",delete_selected:"Supprimer tous les s\xE9lectionn\xE9s",move_selected:"D\xE9placer tous les s\xE9lectionn\xE9s",duplicate_selected:"Dupliquer tous les s\xE9lectionn\xE9s",export_csv:"Exporter CSV",import_csv:"Importer CSV",open_note:"Ouvrir la note",delete_note:"Supprimer la note",duplicate_note:"Dupliquer la note",sort_asc:"Croissant",sort_desc:"D\xE9croissant",sort_asc_title:"Trier d\xE9croissant",sort_desc_title:"Supprimer le tri",sort_none_title:"Trier croissant",rename_column:"Renommer",edit_formula:"Modifier la formule",configure_lookup:"Configurer le lookup",configure_relation:"Configurer la relation",format_number:"Formater le nombre",configure_image_folder:"Configurer le dossier d'images",field_type_label:"Type de champ",hide_field:"Masquer le champ",enable_wrap_text:"Retour \xE0 la ligne",disable_wrap_text:"D\xE9sactiver le retour \xE0 la ligne",delete_field:"Supprimer le champ",type_title:"Titre",type_text:"Texte",type_number:"Nombre",type_select:"S\xE9lection",type_multiselect:"Multi-s\xE9lection",type_date:"Date",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"T\xE9l\xE9phone",type_status:"Statut",type_formula:"Formule",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurer le rollup",rollup_select_relation:"1. Colonne de relation",rollup_select_relation_placeholder:"S\xE9lectionner une relation...",rollup_select_target:"2. Colonne cible",rollup_select_target_placeholder:"S\xE9lectionner une colonne...",rollup_select_function:"3. Agr\xE9gation",rollup_no_relations:"Aucune colonne de relation trouv\xE9e. Ajoutez d'abord une colonne de relation.",rollup_fn_sum:"Somme",rollup_fn_count:"Compter",rollup_fn_avg:"Moyenne",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Compter les uniques",rollup_fn_list:"Tout lister",type_image:"Image",type_audio:"Audio",audio_path_placeholder:"Chemin vers le fichier audio...",audio_select_placeholder:"S\xE9lectionner un audio...",audio_picker_title:"S\xE9lectionner un audio",audio_picker_clear:"Effacer",audio_picker_empty_folder:"Aucun fichier audio dans le dossier",audio_picker_empty_vault:"Aucun fichier audio dans le vault",audio_panel_title:"Param\xE8tres audio",audio_folder_label:"Dossier source (laisser vide pour tout le vault)",audio_folder_placeholder:"Ex : audio/musique",configure_audio_folder:"Configurer le dossier audio",type_video:"Vid\xE9o",video_select_placeholder:"S\xE9lectionner une vid\xE9o...",video_picker_clear:"Effacer",video_picker_empty_folder:"Aucun fichier vid\xE9o dans le dossier",video_picker_empty_vault:"Aucun fichier vid\xE9o dans le vault",video_panel_title:"Param\xE8tres vid\xE9o",video_folder_label:"Dossier source (laisser vide pour tout le vault)",video_folder_placeholder:"Ex : video/clips",configure_video_folder:"Configurer le dossier vid\xE9o",formula_panel_title:"Formule",formula_placeholder:'Exemple : if(status = "done", 1, 0)',formula_valid:"Syntaxe valide",formula_available_cols:"Colonnes disponibles :",formula_ref_toggle:"R\xE9f\xE9rence des fonctions",formula_save:"Enregistrer",formula_cancel:"Annuler",formula_save_hint:"Enregistrer (Ctrl+Entr\xE9e)",formula_group_logic:"Logique",formula_group_comparators:"Comparateurs",formula_group_aggregators:"Agr\xE9gateurs",formula_group_text:"Texte",formula_group_math:"Math\xE9matiques",formula_group_utils:"Utilitaires",formula_desc_if:"Retourne a si cond est vrai, sinon b",formula_desc_ifs:"Teste les conditions en s\xE9quence",formula_desc_and:"Vrai si tous sont vrais",formula_desc_or:"Vrai si au moins un est vrai",formula_desc_not:"Inverse la valeur logique",formula_desc_comparators:"Compare deux valeurs ; combiner avec des conditionnels",formula_desc_sum:"Somme toutes les valeurs de la colonne",formula_desc_avg:"Moyenne des valeurs de la colonne",formula_desc_count:"Compte les valeurs non vides de la colonne",formula_desc_min:"Plus petite valeur de la colonne",formula_desc_max:"Plus grande valeur de la colonne",formula_desc_concat:"Concat\xE8ne des textes (ou utiliser &)",formula_desc_len:"Nombre de caract\xE8res",formula_desc_upper_lower:"Majuscules / minuscules",formula_desc_trim:"Supprime les espaces en d\xE9but et en fin",formula_desc_left:"n premiers caract\xE8res",formula_desc_right:"n derniers caract\xE8res",formula_desc_mid:"Sous-cha\xEEne \xE0 partir de la position",formula_desc_substitute:"Remplace les occurrences",formula_desc_round:"Arrondit n \xE0 d d\xE9cimales",formula_desc_floor_ceil:"Arrondit vers le bas / vers le haut",formula_desc_abs:"Valeur absolue",formula_desc_mod:"Reste de la division",formula_desc_power:"Base \xE9lev\xE9e \xE0 l'exposant",formula_desc_sqrt:"Racine carr\xE9e",formula_desc_isnull:"Vrai si v est vide ou nul",formula_desc_coalesce:"Premi\xE8re valeur non vide",formula_desc_text:"Convertit en texte",formula_desc_value:"Convertit en nombre",number_format_title:"Format",number_decimals_label:"D\xE9cimales",number_thousands_label:"S\xE9parateur de milliers",number_prefix_label:"Pr\xE9fixe",number_suffix_label:"Suffixe",number_prefix_placeholder:"Ex : $, \u20AC",number_suffix_placeholder:"Ex : %, kg, km",number_remove_format:"Supprimer le format",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Table de r\xE9f\xE9rence",lookup_select_table:"S\xE9lectionner une table...",lookup_col_to_display:"2. Colonne \xE0 afficher",lookup_origin_col:"2. Champ source des valeurs",lookup_select_col:"S\xE9lectionner une colonne...",lookup_file_name:"Nom du fichier",lookup_join_col:"3. Colonne de jointure (cette table)",lookup_join_col_title:"Nom du fichier (jointure par titre)",lookup_select_join_col:"S\xE9lectionner une colonne...",lookup_hint:"La valeur de cette colonne doit correspondre au nom du fichier dans la table r\xE9f\xE9renc\xE9e",image_panel_title:"Image",image_folder_label:"Dossier source (optionnel)",image_folder_placeholder:"Ex : images/covers",image_picker_title:"S\xE9lectionner une image",image_picker_clear:"Effacer",image_picker_empty_vault:"Aucune image trouv\xE9e dans le vault",image_picker_empty_folder:"Aucune image trouv\xE9e dans",image_select_placeholder:"S\xE9lectionner une image\u2026",agg_none:"Aucun",agg_count:"Compter",agg_count_values:"Compter les valeurs",agg_sum:"Somme",agg_avg:"Moyenne",agg_min:"Min",agg_max:"Max",no_database_open:"Aucune base de donn\xE9es ouverte.",no_database_hint:'Utilisez le bouton du ruban ou la commande "cr\xE9er une nouvelle base de donn\xE9es".',loading:"Chargement...",no_results:"Aucun \xE9l\xE9ment trouv\xE9",item_singular:"\xC9l\xE9ment",item_plural:"\xC9l\xE9ments",row_singular:"Ligne",row_plural:"Lignes",record_singular:"Enregistrement",record_plural:"Enregistrements",add_row:"Nouvelle ligne",add_entry:"Nouvelle entr\xE9e",add_card:"Nouvelle carte",new_field:"Nouveau champ",add_field:"Ajouter un champ",board_no_select_col:"Le tableau n\xE9cessite une colonne de s\xE9lection ou de statut pour grouper les cartes.",board_add_select_hint:"Ajoutez une colonne de ce type dans la vue tableau et revenez ici.",board_drag_reorder:"Glisser pour r\xE9organiser",board_set_limit:"Cliquer pour definir la limite de cartes",board_limit_placeholder:"Limite (0 = aucune)",board_show_more:"De plus",board_show_less:"Afficher moins",hide_empty_cols:"Masquer vides",hide_no_value_cols:"Masquer sans valeur",calendar_no_date_field:"S\xE9lectionnez un champ de date dans la barre d'outils pour afficher le calendrier.",calendar_no_date_section:"Sans date",calendar_click_to_create:"Cliquez pour cr\xE9er une note",calendar_today:"Aujourd'hui",calendar_prev_month:"Mois pr\xE9c\xE9dent",calendar_next_month:"Mois suivant",calendar_view_month:"Mois",calendar_view_week:"Semaine",calendar_prev_week:"Semaine pr\xE9c\xE9dente",calendar_next_week:"Semaine suivante",calendar_add_time:"Ajouter une heure",calendar_remove_time:"Supprimer l'heure",calendar_all_day:"Toute la journ\xE9e",day_sun:"Dim",day_mon:"Lun",day_tue:"Mar",day_wed:"Mer",day_thu:"Jeu",day_fri:"Ven",day_sat:"Sam",month_january:"Janvier",month_february:"F\xE9vrier",month_march:"Mars",month_april:"Avril",month_may:"Mai",month_june:"Juin",month_july:"Juillet",month_august:"Ao\xFBt",month_september:"Septembre",month_october:"Octobre",month_november:"Novembre",month_december:"D\xE9cembre",timeline_no_start_field:"S\xE9lectionnez un champ de d\xE9but dans la barre d'outils pour afficher la chronologie.",timeline_no_interval:"Sans intervalle",timeline_scroll_prev:"D\xE9filer en arri\xE8re",timeline_scroll_next:"D\xE9filer en avant",zoom_days:"Jours",zoom_weeks:"Semaines",zoom_months:"Mois",month_short_jan:"Jan",month_short_feb:"F\xE9v",month_short_mar:"Mar",month_short_apr:"Avr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ao\xFB",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"D\xE9c",hierarchy_toggle:"Utiliser comme hi\xE9rarchie",hierarchy_toggle_hint:"Active les relations parent-enfant entre les lignes de cette base de donn\xE9es",add_subrow:"Ajouter une sous-ligne",collapse_all:"Tout r\xE9duire",expand_all:"Tout d\xE9velopper",max_depth_reached:"Profondeur maximale atteinte (3 niveaux)",chart_configure:"Configurer",chart_type:"Type de graphique",chart_type_bar:"Barres",chart_type_line:"Courbes",chart_type_pie:"Camembert",chart_x_axis:"Cat\xE9gories (axe X)",chart_y_axis:"Valeurs (axe Y)",chart_aggregation:"Agr\xE9gation",chart_select_column:"S\xE9lectionner une colonne...",chart_count_records:"Compter",chart_no_config:"Configurez le graphique pour commencer.",chart_no_config_hint:"S\xE9lectionnez une colonne pour les cat\xE9gories dans la barre d'outils ci-dessus.",tooltip_pin_column:"Fixer les colonnes jusqu'ici",tooltip_unpin_column:"D\xE9tacher les colonnes",tooltip_resize_column:"Glisser pour redimensionner ; double-clic pour ajuster au contenu",tooltip_wrap_text:"Retour \xE0 la ligne",tooltip_include_subfolders:"Inclure les sous-dossiers",folder_column:"Dossier",tooltip_manage_fields:"G\xE9rer les champs",tooltip_batch_actions:"Actions group\xE9es",tooltip_remove_filter:"Supprimer le filtre",hide_filters:"Masquer les filtres",show_filters:"Afficher les filtres",filters_count_one:"1 filtre",filters_count_other:"{n} filtres",tooltip_drag_reorder:"Glisser pour r\xE9organiser",tooltip_search:"Rechercher",tooltip_toggle_and_or:"Cliquer pour changer l'op\xE9rateur logique",tooltip_close:"Fermer",tooltip_remove:"Supprimer",tooltip_move_up:"Monter",tooltip_move_down:"Descendre",tooltip_change_color:"Changer la couleur",tooltip_delete_status:"Supprimer le statut",status_not_started:"Non commenc\xE9",status_in_progress:"En cours",status_done:"Termin\xE9",status_cancelled:"Annul\xE9",relation_search_placeholder:"Rechercher...",relation_clear:"Effacer",relation_no_results:"Aucun r\xE9sultat",relation_two_way:"Relation bidirectionnelle",relation_two_way_hint:"Cr\xE9e automatiquement une relation inverse dans la base de donn\xE9es cible",select_clear:"Effacer",select_create_placeholder:"Cr\xE9er une nouvelle option...",status_new_placeholder:"Nouveau statut...",color_custom:"Personnalis\xE9e",validate_non_numeric:'Cellule(s) contiennent des valeurs non num\xE9riques (ex : "',validate_invalid_dates:'Cellule(s) contiennent des valeurs qui ne sont pas des dates valides (ex : "',validate_invalid_checkbox:'Cellule(s) contiennent des valeurs incompatibles avec checkbox (ex : "',validate_multiselect_to_select:"Ligne(s) ont plusieurs valeurs s\xE9lectionn\xE9es. Supprimez les extras avant de passer en s\xE9lection unique.",validate_invalid_email:'Cellule(s) contiennent des valeurs qui ne sont pas des emails valides (ex : "',validate_invalid_url:'Cellule(s) contiennent des valeurs qui ne sont pas des URLs valides (ex : "',validate_invalid_phone:'Cellule(s) contiennent des valeurs qui ne sont pas des num\xE9ros de t\xE9l\xE9phone valides (ex : "',validate_type_change_prefix:"Impossible de changer le type : ",email_invalid:"Email invalide",op_is:"Est",op_is_not:"N'est pas",op_contains:"Contient",op_not_contains:"Ne contient pas",op_starts_with:"Commence par",op_ends_with:"Finit par",op_is_empty:"Est vide",op_is_not_empty:"N'est pas vide",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est coch\xE9",op_is_unchecked:"N'est pas coch\xE9",settings_db_filename_name:"Nom du fichier de base de donn\xE9es",settings_db_filename_desc:"Nom du fichier sp\xE9cial qui identifie une base de donn\xE9es dans un dossier.",settings_row_height_name:"Hauteur de ligne par d\xE9faut",settings_row_height_desc:"Hauteur en pixels de chaque ligne du tableau.",settings_inline_fields_name:"Lire les champs inline dataview",settings_inline_fields_desc:"Analyse les champs key:: value dans le corps de la note et les affiche comme valeurs de colonne (lecture seule)",db_untitled_note:"Sans titre",db_copy_suffix:"(copie)",db_copy_suffix_n:"(copie $n)",db_already_exists:'Une base de donn\xE9es existe d\xE9j\xE0 dans "$folder"',db_tip_body:"Ce fichier est une base de donn\xE9es. Ouvrez-le pour voir la vue tableau.",formula_err_unclosed_string:"Cha\xEEne non ferm\xE9e \xE0 la position $pos",formula_err_unclosed_bracket:"Crochet non ferm\xE9 \xE0 la position $pos",formula_err_unexpected_bang:"Caract\xE8re inattendu '!' \xE0 la position $pos",formula_err_unexpected_char:"Caract\xE8re inattendu '$char' \xE0 la position $pos",formula_err_expected_token:"Attendu $expected, trouv\xE9 '$found' \xE0 la position $pos",formula_err_unexpected_token:"Token inattendu '$token' \xE0 la position $pos",formula_err_circular_ref:'R\xE9f\xE9rence circulaire : "$name" est une colonne formule',formula_err_unknown_fn:"Fonction inconnue : $fn()",formula_err_if_args:"Attendu if(condition, si_vrai, [si_faux])",formula_err_avg_args:"Attendu avg(colonne) \u2014 n\xE9cessite une r\xE9f\xE9rence de colonne",formula_err_count_args:"Attendu count(colonne) \u2014 n\xE9cessite une r\xE9f\xE9rence de colonne",formula_err_mid_args:"Attendu mid(texte, d\xE9but, longueur)",formula_err_mod_args:"Attendu mod(nombre, diviseur)",formula_err_sqrt_args:"Attendu sqrt(nombre)",formula_err_not_implemented:"Fonction non impl\xE9ment\xE9e : $fn()",plugin_display_name:"Notion bases",no_databases_found:'Aucune base de donn\xE9es trouv\xE9e. Utilisez la commande "cr\xE9er une nouvelle base de donn\xE9es" pour en cr\xE9er une.',cmd_open_database:"Ouvrir la base de donn\xE9es de ce dossier",cmd_create_database:"Cr\xE9er une nouvelle base de donn\xE9es dans le dossier actuel",ctx_create_database:"Cr\xE9er une base de donn\xE9es ici",arr_settings_title:"Organisation par dossiers",arr_settings_desc:"D\xE9place automatiquement les fichiers de ligne dans des sous-dossiers imbriqu\xE9s selon les valeurs des propri\xE9t\xE9s s\xE9lectionn\xE9es, dans l'ordre.",arr_settings_enabled_name:"Activer l'organisation par dossiers",arr_settings_enabled_desc:"Quand activ\xE9, les lignes sont d\xE9plac\xE9es d\xE8s qu'une des propri\xE9t\xE9s s\xE9lectionn\xE9es change. D\xE9sactiv\xE9 par d\xE9faut.",arr_settings_no_props:"Aucune propri\xE9t\xE9 s\xE9lectionn\xE9e. Ajoutez-en une ci-dessous pour d\xE9finir la hi\xE9rarchie de dossiers.",arr_settings_no_candidates:"Aucune colonne \xE9ligible. L'organisation par dossiers prend en charge les colonnes de texte, s\xE9lection, statut et date.",arr_settings_add_placeholder:"S\xE9lectionner une propri\xE9t\xE9...",arr_settings_add_btn:"Ajouter",arr_settings_preview_btn:"Aper\xE7u et application aux lignes existantes",arr_preview_title:"Aper\xE7u de l'organisation par dossiers",arr_preview_empty:"Aucune ligne ne doit \xEAtre d\xE9plac\xE9e.",arr_preview_desc:"$count ligne(s) seront d\xE9plac\xE9es :",arr_preview_filtered_note:"Seuls les fichiers visibles dans la vue actuelle seront pris en compte.",arr_preview_apply:"Appliquer",arr_preview_cancel:"Annuler",arr_preview_applied:"$count ligne(s) d\xE9plac\xE9e(s).",cmd_quick_add:"Ajouter rapidement une ligne \xE0 la base de donn\xE9es",quick_add_title:"Ajout rapide",quick_add_note_title:"Titre",quick_add_note_title_placeholder:"Titre de la note...",quick_add_create:"Cr\xE9er",quick_add_create_and_open:"Cr\xE9er et ouvrir",quick_add_no_visible_fields:"Aucun champ modifiable dans cette base de donn\xE9es",picker_placeholder:"S\xE9lectionner une base de donn\xE9es...",picker_root:"/ (Racine)",view_fallback_name:"Base de donn\xE9es",saving:"Enregistrement",saved:"Enregistr\xE9",save_error:"Erreur de sauvegarde",settings_page_size_name:"Lignes par page",settings_page_size_desc:'Nombre de lignes \xE0 afficher par page. D\xE9finissez "Toutes" pour le d\xE9filement continu',settings_page_size_all:"Toutes (d\xE9filement continu)",page_of:"Page {current} sur {total}",first_page:"Premi\xE8re page",last_page:"Derni\xE8re page",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",conditional_formatting:"Mise en forme conditionnelle",no_conditional_formats:"Aucune r\xE8gle pour l'instant",add_rule:"Ajouter une r\xE8gle",select_value:"S\xE9lectionner une valeur",style:"Style",background:"Arri\xE8re-plan",text_color:"Couleur du texte",save:"Enregistrer",cancel:"Annuler",value:"Valeur",db_settings_open:"Param\xE8tres de la base de donn\xE9es",db_settings_title:"Param\xE8tres de la base de donn\xE9es",db_settings_template_name:"Mod\xE8le de ligne",db_settings_template_desc:"Applique ce mod\xE8le au corps de chaque nouvelle ligne cr\xE9\xE9e dans cette base de donn\xE9es.",db_settings_template_choose:"Choisir un mod\xE8le",db_settings_template_clear:"Effacer le mod\xE8le",db_settings_template_none:"Aucun mod\xE8le s\xE9lectionn\xE9",db_settings_ask_name:"Demander un mod\xE8le \xE0 la cr\xE9ation",db_settings_ask_desc:"Demander un mod\xE8le \xE0 chaque ajout de ligne au lieu d'appliquer celui par d\xE9faut.",template_picker_placeholder:"Choisir un mod\xE8le...",template_picker_none:"Aucun mod\xE8le (corps vide)",folder_picker_placeholder:"Choisissez un dossier de destination..."},Zm=uy;var cy={view_table:"Tabelle",view_list:"Liste",view_board:"Board",view_gallery:"Galerie",view_calendar:"Kalender",view_timeline:"Zeitleiste",view_chart:"Diagramm",add_view:"Ansicht hinzuf\xFCgen",remove_view:"Ansicht entfernen",rename_view_hint:"Doppelklick zum Umbenennen",fields:"Felder",filter:"Filter",filters:"Filter",sort:"Sortieren",actions:"Aktionen",group_by:"Gruppieren nach",cover:"Titelbild",date_field:"Datum",start_field:"Start",end_field:"Ende",group_field:"Gruppe",fields_in_card:"Felder in der Karte",fields_label:"Felder",fields_on_bars:"Felder auf Balken",filter_by:"Filtern nach",sort_by:"Sortieren nach",group_by_label:"Gruppieren nach",date_field_label:"Datumsfeld",cover_field_label:"Titelbildfeld",card_size_label:"Kartengr\xF6\xDFe",row_height_label:"Zeilenh\xF6he",none_value:"Keine",no_value:"Kein Wert",no_cover:"Keine",size_small:"Klein",size_medium:"Mittel",size_large:"Gro\xDF",height_compact:"Kompakt",height_medium:"Mittel",height_tall:"Gro\xDF",add_filter_advanced:"Erweiterten Filter hinzuf\xFCgen",add_sort:"Sortierung hinzuf\xFCgen",no_active_sorts:"Keine aktiven Sortierungen",name_column:"Name",conjunction_and:"UND",conjunction_or:"ODER",filter_number_placeholder:"Zahl...",filter_value_placeholder:"Wert...",delete_selected:"Alle ausgew\xE4hlten l\xF6schen",move_selected:"Alle ausgew\xE4hlten verschieben",duplicate_selected:"Alle ausgew\xE4hlten duplizieren",export_csv:"CSV exportieren",import_csv:"CSV importieren",open_note:"Notiz \xF6ffnen",delete_note:"Notiz l\xF6schen",duplicate_note:"Notiz duplizieren",sort_asc:"Aufsteigend",sort_desc:"Absteigend",sort_asc_title:"Absteigend sortieren",sort_desc_title:"Sortierung entfernen",sort_none_title:"Aufsteigend sortieren",rename_column:"Umbenennen",edit_formula:"Formel bearbeiten",configure_lookup:"Lookup konfigurieren",configure_relation:"Relation konfigurieren",format_number:"Zahl formatieren",configure_image_folder:"Bildordner konfigurieren",field_type_label:"Feldtyp",hide_field:"Feld ausblenden",enable_wrap_text:"Text umbrechen",disable_wrap_text:"Umbruch deaktivieren",delete_field:"Feld l\xF6schen",type_title:"Titel",type_text:"Text",type_number:"Zahl",type_select:"Auswahl",type_multiselect:"Mehrfachauswahl",type_date:"Datum",type_checkbox:"Checkbox",type_url:"URL",type_email:"E-Mail",type_phone:"Telefon",type_status:"Status",type_formula:"Formel",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Rollup konfigurieren",rollup_select_relation:"1. Relationsspalte",rollup_select_relation_placeholder:"Relation ausw\xE4hlen...",rollup_select_target:"2. Zielspalte",rollup_select_target_placeholder:"Spalte ausw\xE4hlen...",rollup_select_function:"3. Aggregation",rollup_no_relations:"Keine Relationsspalten gefunden. F\xFCgen Sie zuerst eine Relationsspalte hinzu.",rollup_fn_sum:"Summe",rollup_fn_count:"Anzahl",rollup_fn_avg:"Durchschnitt",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Eindeutige z\xE4hlen",rollup_fn_list:"Alle auflisten",type_image:"Bild",type_audio:"Audio",audio_path_placeholder:"Pfad zur Audiodatei...",audio_select_placeholder:"Audio ausw\xE4hlen...",audio_picker_title:"Audio ausw\xE4hlen",audio_picker_clear:"L\xF6schen",audio_picker_empty_folder:"Keine Audiodateien im Ordner",audio_picker_empty_vault:"Keine Audiodateien im Vault",audio_panel_title:"Audioeinstellungen",audio_folder_label:"Quellordner (leer lassen f\xFCr den gesamten Vault)",audio_folder_placeholder:"Z.B.: audio/musik",configure_audio_folder:"Audioordner konfigurieren",type_video:"Video",video_select_placeholder:"Video ausw\xE4hlen...",video_picker_clear:"L\xF6schen",video_picker_empty_folder:"Keine Videodateien im Ordner",video_picker_empty_vault:"Keine Videodateien im Vault",video_panel_title:"Videoeinstellungen",video_folder_label:"Quellordner (leer lassen f\xFCr den gesamten Vault)",video_folder_placeholder:"Z.B.: video/clips",configure_video_folder:"Videoordner konfigurieren",formula_panel_title:"Formel",formula_placeholder:'Beispiel: if(status = "done", 1, 0)',formula_valid:"G\xFCltige Syntax",formula_available_cols:"Verf\xFCgbare Spalten:",formula_ref_toggle:"Funktionsreferenz",formula_save:"Speichern",formula_cancel:"Abbrechen",formula_save_hint:"Speichern (Strg+Eingabe)",formula_group_logic:"Logik",formula_group_comparators:"Vergleiche",formula_group_aggregators:"Aggregatoren",formula_group_text:"Text",formula_group_math:"Mathematik",formula_group_utils:"Hilfsfunktionen",formula_desc_if:"Gibt a zur\xFCck wenn cond wahr ist, sonst b",formula_desc_ifs:"Pr\xFCft Bedingungen der Reihe nach",formula_desc_and:"Wahr wenn alle wahr sind",formula_desc_or:"Wahr wenn mindestens eines wahr ist",formula_desc_not:"Kehrt den logischen Wert um",formula_desc_comparators:"Vergleicht zwei Werte; mit Bedingungen kombinieren",formula_desc_sum:"Summiert alle Werte der Spalte",formula_desc_avg:"Durchschnitt der Spaltenwerte",formula_desc_count:"Z\xE4hlt nicht leere Werte der Spalte",formula_desc_min:"Kleinster Wert der Spalte",formula_desc_max:"Gr\xF6\xDFter Wert der Spalte",formula_desc_concat:"Verkettet Texte (oder & verwenden)",formula_desc_len:"Anzahl der Zeichen",formula_desc_upper_lower:"Gro\xDFbuchstaben / Kleinbuchstaben",formula_desc_trim:"Entfernt f\xFChrende und nachfolgende Leerzeichen",formula_desc_left:"Erste n Zeichen",formula_desc_right:"Letzte n Zeichen",formula_desc_mid:"Teilstring ab Position",formula_desc_substitute:"Ersetzt Vorkommen",formula_desc_round:"Rundet n auf d Dezimalstellen",formula_desc_floor_ceil:"Rundet ab / auf",formula_desc_abs:"Absoluter Wert",formula_desc_mod:"Rest der Division",formula_desc_power:"Basis hoch Exponent",formula_desc_sqrt:"Quadratwurzel",formula_desc_isnull:"Wahr wenn v leer oder null ist",formula_desc_coalesce:"Erster nicht leerer Wert",formula_desc_text:"Konvertiert in Text",formula_desc_value:"Konvertiert in Zahl",number_format_title:"Format",number_decimals_label:"Dezimalstellen",number_thousands_label:"Tausendertrennzeichen",number_prefix_label:"Pr\xE4fix",number_suffix_label:"Suffix",number_prefix_placeholder:"Z.B.: $, \u20AC",number_suffix_placeholder:"Z.B.: %, kg, km",number_remove_format:"Formatierung entfernen",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Referenztabelle",lookup_select_table:"Tabelle ausw\xE4hlen...",lookup_col_to_display:"2. Anzuzeigende Spalte",lookup_origin_col:"2. Quellfeld f\xFCr Werte",lookup_select_col:"Spalte ausw\xE4hlen...",lookup_file_name:"Dateiname",lookup_join_col:"3. Verkn\xFCpfungsspalte (diese Tabelle)",lookup_join_col_title:"Dateiname (Verkn\xFCpfung nach Titel)",lookup_select_join_col:"Spalte ausw\xE4hlen...",lookup_hint:"Der Wert dieser Spalte muss mit dem Dateinamen in der referenzierten Tabelle \xFCbereinstimmen",image_panel_title:"Bild",image_folder_label:"Quellordner (optional)",image_folder_placeholder:"Z.B.: images/covers",image_picker_title:"Bild ausw\xE4hlen",image_picker_clear:"L\xF6schen",image_picker_empty_vault:"Keine Bilder im Vault gefunden",image_picker_empty_folder:"Keine Bilder gefunden in",image_select_placeholder:"Bild ausw\xE4hlen\u2026",agg_none:"Keine",agg_count:"Anzahl",agg_count_values:"Werte z\xE4hlen",agg_sum:"Summe",agg_avg:"Durchschnitt",agg_min:"Min",agg_max:"Max",no_database_open:"Keine Datenbank ge\xF6ffnet.",no_database_hint:'Verwenden Sie die Schaltfl\xE4che in der Leiste oder den Befehl "Neue Datenbank erstellen".',loading:"Laden...",no_results:"Keine Eintr\xE4ge gefunden",item_singular:"Element",item_plural:"Elemente",row_singular:"Zeile",row_plural:"Zeilen",record_singular:"Datensatz",record_plural:"Datens\xE4tze",add_row:"Neue Zeile",add_entry:"Neuer Eintrag",add_card:"Neue Karte",new_field:"Neues Feld",add_field:"Feld hinzuf\xFCgen",board_no_select_col:"Das Board ben\xF6tigt eine Auswahl- oder Statusspalte zum Gruppieren der Karten.",board_add_select_hint:"F\xFCgen Sie eine Spalte dieses Typs in der Tabellenansicht hinzu und kehren Sie hierher zur\xFCck.",board_drag_reorder:"Ziehen zum Neuordnen",board_set_limit:"Klicken um Kartenlimit zu setzen",board_limit_placeholder:"Limit (0 = kein)",board_show_more:"Mehr",board_show_less:"Weniger anzeigen",hide_empty_cols:"Leere ausblenden",hide_no_value_cols:"Ohne Wert ausblenden",calendar_no_date_field:"W\xE4hlen Sie ein Datumsfeld in der Symbolleiste aus, um den Kalender anzuzeigen.",calendar_no_date_section:"Ohne Datum",calendar_click_to_create:"Klicken zum Erstellen einer Notiz",calendar_today:"Heute",calendar_prev_month:"Vorheriger Monat",calendar_next_month:"N\xE4chster Monat",calendar_view_month:"Monat",calendar_view_week:"Woche",calendar_prev_week:"Vorherige Woche",calendar_next_week:"N\xE4chste Woche",calendar_add_time:"Uhrzeit hinzuf\xFCgen",calendar_remove_time:"Uhrzeit entfernen",calendar_all_day:"Ganzt\xE4gig",day_sun:"So",day_mon:"Mo",day_tue:"Di",day_wed:"Mi",day_thu:"Do",day_fri:"Fr",day_sat:"Sa",month_january:"Januar",month_february:"Februar",month_march:"M\xE4rz",month_april:"April",month_may:"Mai",month_june:"Juni",month_july:"Juli",month_august:"August",month_september:"September",month_october:"Oktober",month_november:"November",month_december:"Dezember",timeline_no_start_field:"W\xE4hlen Sie ein Startfeld in der Symbolleiste aus, um die Zeitleiste anzuzeigen.",timeline_no_interval:"Kein Intervall",timeline_scroll_prev:"Zur\xFCck scrollen",timeline_scroll_next:"Vorw\xE4rts scrollen",zoom_days:"Tage",zoom_weeks:"Wochen",zoom_months:"Monate",month_short_jan:"Jan",month_short_feb:"Feb",month_short_mar:"M\xE4r",month_short_apr:"Apr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Aug",month_short_sep:"Sep",month_short_oct:"Okt",month_short_nov:"Nov",month_short_dec:"Dez",hierarchy_toggle:"Als hierarchie verwenden",hierarchy_toggle_hint:"Erm\xF6glicht Eltern-Kind-Beziehungen zwischen Zeilen in dieser Datenbank",add_subrow:"Unterzeile hinzuf\xFCgen",collapse_all:"Alle einklappen",expand_all:"Alle ausklappen",max_depth_reached:"Maximale tiefe erreicht (3 Ebenen)",chart_configure:"Konfigurieren",chart_type:"Diagrammtyp",chart_type_bar:"Balken",chart_type_line:"Linie",chart_type_pie:"Kreis",chart_x_axis:"Kategorien (X-Achse)",chart_y_axis:"Werte (Y-Achse)",chart_aggregation:"Aggregation",chart_select_column:"Spalte ausw\xE4hlen...",chart_count_records:"Anzahl",chart_no_config:"Konfigurieren Sie das Diagramm, um zu beginnen.",chart_no_config_hint:"W\xE4hlen Sie oben in der Symbolleiste eine Spalte f\xFCr Kategorien aus.",tooltip_pin_column:"Spalten bis hier fixieren",tooltip_unpin_column:"Spalten l\xF6sen",tooltip_resize_column:"Ziehen zum \xC4ndern der Gr\xF6\xDFe; Doppelklick zum Anpassen",tooltip_wrap_text:"Textumbruch",tooltip_include_subfolders:"Unterordner einbeziehen",folder_column:"Ordner",tooltip_manage_fields:"Felder verwalten",tooltip_batch_actions:"Stapelaktionen",tooltip_remove_filter:"Filter entfernen",hide_filters:"Filter ausblenden",show_filters:"Filter anzeigen",filters_count_one:"1 filter",filters_count_other:"{n} filter",tooltip_drag_reorder:"Ziehen zum Neuordnen",tooltip_search:"Suchen",tooltip_toggle_and_or:"Klicken, um den logischen Operator zu wechseln",tooltip_close:"Schlie\xDFen",tooltip_remove:"Entfernen",tooltip_move_up:"Nach oben",tooltip_move_down:"Nach unten",tooltip_change_color:"Farbe \xE4ndern",tooltip_delete_status:"Status l\xF6schen",status_not_started:"Nicht begonnen",status_in_progress:"In Bearbeitung",status_done:"Erledigt",status_cancelled:"Abgebrochen",relation_search_placeholder:"Suchen...",relation_clear:"L\xF6schen",relation_no_results:"Keine Ergebnisse",relation_two_way:"Bidirektionale relation",relation_two_way_hint:"Erstellt automatisch eine umgekehrte Relation in der Zieldatenbank",select_clear:"L\xF6schen",select_create_placeholder:"Neue Option erstellen...",status_new_placeholder:"Neuer Status...",color_custom:"Benutzerdefiniert",validate_non_numeric:'Zelle(n) enthalten nicht-numerische Werte (z.B.: "',validate_invalid_dates:'Zelle(n) enthalten Werte, die keine g\xFCltigen Daten sind (z.B.: "',validate_invalid_checkbox:'Zelle(n) enthalten Werte, die mit Checkbox inkompatibel sind (z.B.: "',validate_multiselect_to_select:"Zeile(n) haben mehrere Werte ausgew\xE4hlt. Entfernen Sie die Extras, bevor Sie zur Einzelauswahl wechseln.",validate_invalid_email:'Zelle(n) enthalten Werte, die keine g\xFCltigen E-Mails sind (z.B.: "',validate_invalid_url:'Zelle(n) enthalten Werte, die keine g\xFCltigen URLs sind (z.B.: "',validate_invalid_phone:'Zelle(n) enthalten Werte, die keine g\xFCltigen Telefonnummern sind (z.B.: "',validate_type_change_prefix:"Typ\xE4nderung nicht m\xF6glich: ",email_invalid:"Ung\xFCltige E-Mail",op_is:"Ist",op_is_not:"Ist nicht",op_contains:"Enth\xE4lt",op_not_contains:"Enth\xE4lt nicht",op_starts_with:"Beginnt mit",op_ends_with:"Endet mit",op_is_empty:"Ist leer",op_is_not_empty:"Ist nicht leer",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Ist aktiviert",op_is_unchecked:"Ist nicht aktiviert",settings_db_filename_name:"Datenbankdateiname",settings_db_filename_desc:"Name der speziellen Datei, die eine Datenbank in einem Ordner identifiziert.",settings_row_height_name:"Standard-Zeilenh\xF6he",settings_row_height_desc:"H\xF6he in Pixeln jeder Tabellenzeile.",settings_inline_fields_name:"Dataview-Inline-Felder lesen",settings_inline_fields_desc:"Liest key:: value-Felder aus dem Notiztext und zeigt sie als Spaltenwerte an (schreibgesch\xFCtzt)",db_untitled_note:"Unbenannt",db_copy_suffix:"(Kopie)",db_copy_suffix_n:"(Kopie $n)",db_already_exists:'Eine Datenbank existiert bereits in "$folder"',db_tip_body:"Diese Datei ist eine Datenbank. \xD6ffnen Sie sie, um die Tabellenansicht zu sehen.",formula_err_unclosed_string:"Nicht geschlossene Zeichenkette an Position $pos",formula_err_unclosed_bracket:"Nicht geschlossene Klammer an Position $pos",formula_err_unexpected_bang:"Unerwartetes Zeichen '!' an Position $pos",formula_err_unexpected_char:"Unerwartetes Zeichen '$char' an Position $pos",formula_err_expected_token:"Erwartet $expected, gefunden '$found' an Position $pos",formula_err_unexpected_token:"Unerwartetes Token '$token' an Position $pos",formula_err_circular_ref:'Zirkul\xE4re Referenz: "$name" ist eine Formelspalte',formula_err_unknown_fn:"Unbekannte Funktion: $fn()",formula_err_if_args:"Erwartet if(Bedingung, wenn_wahr, [wenn_falsch])",formula_err_avg_args:"Erwartet avg(Spalte) \u2014 ben\xF6tigt eine Spaltenreferenz als Argument",formula_err_count_args:"Erwartet count(Spalte) \u2014 ben\xF6tigt eine Spaltenreferenz als Argument",formula_err_mid_args:"Erwartet mid(Text, Start, L\xE4nge)",formula_err_mod_args:"Erwartet mod(Zahl, Divisor)",formula_err_sqrt_args:"Erwartet sqrt(Zahl)",formula_err_not_implemented:"Funktion nicht implementiert: $fn()",plugin_display_name:"Notion bases",no_databases_found:'Keine Datenbanken gefunden. Verwenden Sie den Befehl "Neue Datenbank erstellen", um eine zu erstellen.',cmd_open_database:"Datenbank f\xFCr diesen Ordner \xF6ffnen",cmd_create_database:"Neue Datenbank im aktuellen Ordner erstellen",ctx_create_database:"Datenbank hier erstellen",arr_settings_title:"Ordnerorganisation",arr_settings_desc:"Verschiebt Zeilendateien automatisch in verschachtelte Unterordner basierend auf den Werten der ausgew\xE4hlten Eigenschaften, in der angegebenen Reihenfolge.",arr_settings_enabled_name:"Ordnerorganisation aktivieren",arr_settings_enabled_desc:"Wenn aktiviert, werden Zeilen verschoben, sobald sich eine der ausgew\xE4hlten Eigenschaften \xE4ndert. Standardm\xE4\xDFig deaktiviert.",arr_settings_no_props:"Keine Eigenschaften ausgew\xE4hlt. F\xFCgen Sie unten eine hinzu, um die Ordnerhierarchie zu definieren.",arr_settings_no_candidates:"Keine geeigneten Spalten. Die Ordnerorganisation unterst\xFCtzt Text-, Auswahl-, Status- und Datumsspalten.",arr_settings_add_placeholder:"Eigenschaft ausw\xE4hlen...",arr_settings_add_btn:"Hinzuf\xFCgen",arr_settings_preview_btn:"Vorschau und auf bestehende Zeilen anwenden",arr_preview_title:"Vorschau der Ordnerorganisation",arr_preview_empty:"Keine Zeilen m\xFCssen verschoben werden.",arr_preview_desc:"$count Zeile(n) werden verschoben:",arr_preview_filtered_note:"Nur in der aktuellen Ansicht sichtbare Dateien werden ber\xFCcksichtigt.",arr_preview_apply:"Anwenden",arr_preview_cancel:"Abbrechen",arr_preview_applied:"$count Zeile(n) verschoben.",cmd_quick_add:"Zeile schnell zur Datenbank hinzuf\xFCgen",quick_add_title:"Schnell hinzuf\xFCgen",quick_add_note_title:"Titel",quick_add_note_title_placeholder:"Notiztitel...",quick_add_create:"Erstellen",quick_add_create_and_open:"Erstellen und \xF6ffnen",quick_add_no_visible_fields:"Keine bearbeitbaren Felder in dieser Datenbank",picker_placeholder:"Datenbank ausw\xE4hlen...",picker_root:"/ (Stammverzeichnis)",view_fallback_name:"Datenbank",saving:"Speichern",saved:"Gespeichert",save_error:"Speicherfehler",settings_page_size_name:"Zeilen pro Seite",settings_page_size_desc:'Anzahl der Zeilen pro Seite. Auf "Alle" setzen f\xFCr kontinuierliches Scrollen',settings_page_size_all:"Alle (kontinuierliches Scrollen)",page_of:"Seite {current} von {total}",first_page:"Erste Seite",last_page:"Letzte Seite",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",conditional_formatting:"Bedingte formatierung",no_conditional_formats:"Noch keine regeln",add_rule:"Regel hinzuf\xFCgen",select_value:"Wert ausw\xE4hlen",style:"Stil",background:"Hintergrund",text_color:"Textfarbe",save:"Speichern",cancel:"Abbrechen",value:"Wert",db_settings_open:"Datenbankeinstellungen",db_settings_title:"Datenbankeinstellungen",db_settings_template_name:"Zeilenvorlage",db_settings_template_desc:"Wendet diese Vorlage auf den Inhalt jeder neuen Zeile in dieser Datenbank an.",db_settings_template_choose:"Vorlage w\xE4hlen",db_settings_template_clear:"Vorlage entfernen",db_settings_template_none:"Keine Vorlage ausgew\xE4hlt",db_settings_ask_name:"Vorlage beim Erstellen abfragen",db_settings_ask_desc:"Bei jeder neuen Zeile nach einer Vorlage fragen, anstatt die Standardvorlage anzuwenden.",template_picker_placeholder:"Vorlage ausw\xE4hlen...",template_picker_none:"Keine Vorlage (leerer Inhalt)",folder_picker_placeholder:"Zielordner ausw\xE4hlen..."},Jm=cy;var dy={view_table:"\u8868\u683C",view_list:"\u5217\u8868",view_board:"\u770B\u677F",view_gallery:"\u753B\u5ECA",view_calendar:"\u65E5\u5386",view_timeline:"\u65F6\u95F4\u7EBF",view_chart:"\u56FE\u8868",add_view:"\u6DFB\u52A0\u89C6\u56FE",remove_view:"\u5220\u9664\u89C6\u56FE",rename_view_hint:"\u53CC\u51FB\u91CD\u547D\u540D",fields:"\u5B57\u6BB5",filter:"\u7B5B\u9009",filters:"\u7B5B\u9009",sort:"\u6392\u5E8F",actions:"\u64CD\u4F5C",group_by:"\u5206\u7EC4",cover:"\u5C01\u9762",date_field:"\u65E5\u671F",start_field:"\u5F00\u59CB",end_field:"\u7ED3\u675F",group_field:"\u5206\u7EC4",fields_in_card:"\u5361\u7247\u4E2D\u7684\u5B57\u6BB5",fields_label:"\u5B57\u6BB5",fields_on_bars:"\u6761\u5F62\u4E0A\u7684\u5B57\u6BB5",filter_by:"\u7B5B\u9009\u6761\u4EF6",sort_by:"\u6392\u5E8F\u6761\u4EF6",group_by_label:"\u5206\u7EC4\u6761\u4EF6",date_field_label:"\u65E5\u671F\u5B57\u6BB5",cover_field_label:"\u5C01\u9762\u5B57\u6BB5",card_size_label:"\u5361\u7247\u5927\u5C0F",row_height_label:"\u884C\u9AD8",none_value:"\u65E0",no_value:"\u65E0\u503C",no_cover:"\u65E0",size_small:"\u5C0F",size_medium:"\u4E2D",size_large:"\u5927",height_compact:"\u7D27\u51D1",height_medium:"\u4E2D\u7B49",height_tall:"\u9AD8",add_filter_advanced:"\u6DFB\u52A0\u9AD8\u7EA7\u7B5B\u9009",add_sort:"\u6DFB\u52A0\u6392\u5E8F",no_active_sorts:"\u65E0\u6D3B\u8DC3\u6392\u5E8F",name_column:"\u540D\u79F0",conjunction_and:"\u4E14",conjunction_or:"\u6216",filter_number_placeholder:"\u6570\u5B57...",filter_value_placeholder:"\u503C...",delete_selected:"\u5220\u9664\u6240\u6709\u9009\u4E2D\u9879",move_selected:"\u79FB\u52A8\u6240\u6709\u9009\u4E2D\u9879",duplicate_selected:"\u590D\u5236\u6240\u6709\u9009\u4E2D\u9879",export_csv:"\u5BFC\u51FA CSV",import_csv:"\u5BFC\u5165 CSV",open_note:"\u6253\u5F00\u7B14\u8BB0",delete_note:"\u5220\u9664\u7B14\u8BB0",duplicate_note:"\u590D\u5236\u7B14\u8BB0",sort_asc:"\u5347\u5E8F",sort_desc:"\u964D\u5E8F",sort_asc_title:"\u964D\u5E8F\u6392\u5217",sort_desc_title:"\u79FB\u9664\u6392\u5E8F",sort_none_title:"\u5347\u5E8F\u6392\u5217",rename_column:"\u91CD\u547D\u540D",edit_formula:"\u7F16\u8F91\u516C\u5F0F",configure_lookup:"\u914D\u7F6E lookup",configure_relation:"\u914D\u7F6E\u5173\u8054",format_number:"\u6570\u5B57\u683C\u5F0F",configure_image_folder:"\u914D\u7F6E\u56FE\u7247\u6587\u4EF6\u5939",field_type_label:"\u5B57\u6BB5\u7C7B\u578B",hide_field:"\u9690\u85CF\u5B57\u6BB5",enable_wrap_text:"\u81EA\u52A8\u6362\u884C",disable_wrap_text:"\u53D6\u6D88\u6362\u884C",delete_field:"\u5220\u9664\u5B57\u6BB5",type_title:"\u6807\u9898",type_text:"\u6587\u672C",type_number:"\u6570\u5B57",type_select:"\u5355\u9009",type_multiselect:"\u591A\u9009",type_date:"\u65E5\u671F",type_checkbox:"\u590D\u9009\u6846",type_url:"URL",type_email:"\u90AE\u7BB1",type_phone:"\u7535\u8BDD",type_status:"\u72B6\u6001",type_formula:"\u516C\u5F0F",type_relation:"\u5173\u8054",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"\u914D\u7F6E rollup",rollup_select_relation:"1. \u5173\u8054\u5217",rollup_select_relation_placeholder:"\u9009\u62E9\u5173\u8054...",rollup_select_target:"2. \u76EE\u6807\u5217",rollup_select_target_placeholder:"\u9009\u62E9\u5217...",rollup_select_function:"3. \u805A\u5408\u51FD\u6570",rollup_no_relations:"\u672A\u627E\u5230\u5173\u8054\u5217\u3002\u8BF7\u5148\u6DFB\u52A0\u4E00\u4E2A\u5173\u8054\u5217\u3002",rollup_fn_sum:"\u6C42\u548C",rollup_fn_count:"\u8BA1\u6570",rollup_fn_avg:"\u5E73\u5747\u503C",rollup_fn_min:"\u6700\u5C0F\u503C",rollup_fn_max:"\u6700\u5927\u503C",rollup_fn_count_values:"\u8BA1\u552F\u4E00\u503C",rollup_fn_list:"\u5217\u51FA\u5168\u90E8",type_image:"\u56FE\u7247",type_audio:"\u97F3\u9891",audio_path_placeholder:"\u97F3\u9891\u6587\u4EF6\u8DEF\u5F84...",audio_select_placeholder:"\u9009\u62E9\u97F3\u9891...",audio_picker_title:"\u9009\u62E9\u97F3\u9891",audio_picker_clear:"\u6E05\u9664",audio_picker_empty_folder:"\u6587\u4EF6\u5939\u4E2D\u6CA1\u6709\u97F3\u9891\u6587\u4EF6",audio_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u6CA1\u6709\u97F3\u9891\u6587\u4EF6",audio_panel_title:"\u97F3\u9891\u8BBE\u7F6E",audio_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u6574\u4E2A\u4ED3\u5E93\uFF09",audio_folder_placeholder:"\u4F8B\uFF1Aaudio/music",configure_audio_folder:"\u914D\u7F6E\u97F3\u9891\u6587\u4EF6\u5939",type_video:"\u89C6\u9891",video_select_placeholder:"\u9009\u62E9\u89C6\u9891...",video_picker_clear:"\u6E05\u9664",video_picker_empty_folder:"\u6587\u4EF6\u5939\u4E2D\u6CA1\u6709\u89C6\u9891\u6587\u4EF6",video_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u6CA1\u6709\u89C6\u9891\u6587\u4EF6",video_panel_title:"\u89C6\u9891\u8BBE\u7F6E",video_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u6574\u4E2A\u4ED3\u5E93\uFF09",video_folder_placeholder:"\u4F8B\uFF1Avideo/clips",configure_video_folder:"\u914D\u7F6E\u89C6\u9891\u6587\u4EF6\u5939",formula_panel_title:"\u516C\u5F0F",formula_placeholder:'\u793A\u4F8B\uFF1Aif(status = "done", 1, 0)',formula_valid:"\u8BED\u6CD5\u6B63\u786E",formula_available_cols:"\u53EF\u7528\u5217\uFF1A",formula_ref_toggle:"\u51FD\u6570\u53C2\u8003",formula_save:"\u4FDD\u5B58",formula_cancel:"\u53D6\u6D88",formula_save_hint:"\u4FDD\u5B58 (Ctrl+Enter)",formula_group_logic:"\u903B\u8F91",formula_group_comparators:"\u6BD4\u8F83",formula_group_aggregators:"\u805A\u5408",formula_group_text:"\u6587\u672C",formula_group_math:"\u6570\u5B66",formula_group_utils:"\u5DE5\u5177",formula_desc_if:"\u82E5 cond \u4E3A\u771F\u5219\u8FD4\u56DE a\uFF0C\u5426\u5219\u8FD4\u56DE b",formula_desc_ifs:"\u6309\u987A\u5E8F\u6D4B\u8BD5\u6761\u4EF6",formula_desc_and:"\u6240\u6709\u6761\u4EF6\u4E3A\u771F\u65F6\u8FD4\u56DE\u771F",formula_desc_or:"\u4EFB\u4E00\u6761\u4EF6\u4E3A\u771F\u65F6\u8FD4\u56DE\u771F",formula_desc_not:"\u53CD\u8F6C\u903B\u8F91\u503C",formula_desc_comparators:"\u6BD4\u8F83\u4E24\u4E2A\u503C\uFF1B\u4E0E\u6761\u4EF6\u8BED\u53E5\u914D\u5408\u4F7F\u7528",formula_desc_sum:"\u5BF9\u5217\u4E2D\u6240\u6709\u503C\u6C42\u548C",formula_desc_avg:"\u5217\u4E2D\u503C\u7684\u5E73\u5747\u6570",formula_desc_count:"\u7EDF\u8BA1\u5217\u4E2D\u975E\u7A7A\u503C\u7684\u6570\u91CF",formula_desc_min:"\u5217\u4E2D\u7684\u6700\u5C0F\u503C",formula_desc_max:"\u5217\u4E2D\u7684\u6700\u5927\u503C",formula_desc_concat:"\u62FC\u63A5\u6587\u672C\uFF08\u4E5F\u53EF\u4F7F\u7528 &\uFF09",formula_desc_len:"\u5B57\u7B26\u6570",formula_desc_upper_lower:"\u8F6C\u4E3A\u5927\u5199 / \u5C0F\u5199",formula_desc_trim:"\u5220\u9664\u9996\u5C3E\u7A7A\u767D\u5B57\u7B26",formula_desc_left:"\u524D n \u4E2A\u5B57\u7B26",formula_desc_right:"\u540E n \u4E2A\u5B57\u7B26",formula_desc_mid:"\u4ECE\u6307\u5B9A\u4F4D\u7F6E\u622A\u53D6\u5B50\u5B57\u7B26\u4E32",formula_desc_substitute:"\u66FF\u6362\u5339\u914D\u7684\u5185\u5BB9",formula_desc_round:"\u5C06 n \u56DB\u820D\u4E94\u5165\u5230 d \u4F4D\u5C0F\u6570",formula_desc_floor_ceil:"\u5411\u4E0B\u53D6\u6574 / \u5411\u4E0A\u53D6\u6574",formula_desc_abs:"\u7EDD\u5BF9\u503C",formula_desc_mod:"\u9664\u6CD5\u4F59\u6570",formula_desc_power:"\u5E95\u6570\u7684\u6307\u6570\u6B21\u5E42",formula_desc_sqrt:"\u5E73\u65B9\u6839",formula_desc_isnull:"\u82E5 v \u4E3A\u7A7A\u6216 null \u5219\u4E3A\u771F",formula_desc_coalesce:"\u7B2C\u4E00\u4E2A\u975E\u7A7A\u503C",formula_desc_text:"\u8F6C\u6362\u4E3A\u6587\u672C",formula_desc_value:"\u8F6C\u6362\u4E3A\u6570\u5B57",number_format_title:"\u683C\u5F0F",number_decimals_label:"\u5C0F\u6570\u4F4D\u6570",number_thousands_label:"\u5343\u4F4D\u5206\u9694\u7B26",number_prefix_label:"\u524D\u7F00",number_suffix_label:"\u540E\u7F00",number_prefix_placeholder:"\u4F8B\uFF1A$\u3001\xA5",number_suffix_placeholder:"\u4F8B\uFF1A%\u3001kg\u3001km",number_remove_format:"\u79FB\u9664\u683C\u5F0F",relation_panel_title:"\u5173\u8054",lookup_panel_title:"Lookup",lookup_ref_table:"1. \u5F15\u7528\u8868",lookup_select_table:"\u9009\u62E9\u8868...",lookup_col_to_display:"2. \u663E\u793A\u5217",lookup_origin_col:"2. \u503C\u7684\u6765\u6E90\u5B57\u6BB5",lookup_select_col:"\u9009\u62E9\u5217...",lookup_file_name:"\u6587\u4EF6\u540D",lookup_join_col:"3. \u8FDE\u63A5\u5217\uFF08\u672C\u8868\uFF09",lookup_join_col_title:"\u6587\u4EF6\u540D\uFF08\u6309\u6807\u9898\u8FDE\u63A5\uFF09",lookup_select_join_col:"\u9009\u62E9\u5217...",lookup_hint:"\u6B64\u5217\u7684\u503C\u5FC5\u987B\u4E0E\u5F15\u7528\u8868\u4E2D\u7684\u6587\u4EF6\u540D\u5339\u914D",image_panel_title:"\u56FE\u7247",image_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u53EF\u9009\uFF09",image_folder_placeholder:"\u4F8B\uFF1Aimages/covers",image_picker_title:"\u9009\u62E9\u56FE\u7247",image_picker_clear:"\u6E05\u9664",image_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u672A\u627E\u5230\u56FE\u7247",image_picker_empty_folder:"\u672A\u627E\u5230\u56FE\u7247\u4E8E",image_select_placeholder:"\u9009\u62E9\u56FE\u7247\u2026",agg_none:"\u65E0",agg_count:"\u8BA1\u6570",agg_count_values:"\u8BA1\u6570\u503C",agg_sum:"\u6C42\u548C",agg_avg:"\u5E73\u5747\u503C",agg_min:"\u6700\u5C0F\u503C",agg_max:"\u6700\u5927\u503C",no_database_open:"\u672A\u6253\u5F00\u6570\u636E\u5E93\u3002",no_database_hint:'\u4F7F\u7528\u5DE5\u5177\u680F\u6309\u94AE\u6216"\u521B\u5EFA\u65B0\u6570\u636E\u5E93"\u547D\u4EE4\u3002',loading:"\u52A0\u8F7D\u4E2D...",no_results:"\u672A\u627E\u5230\u9879\u76EE",item_singular:"\u9879",item_plural:"\u9879",row_singular:"\u884C",row_plural:"\u884C",record_singular:"\u8BB0\u5F55",record_plural:"\u8BB0\u5F55",add_row:"\u65B0\u5EFA\u884C",add_entry:"\u65B0\u5EFA\u6761\u76EE",add_card:"\u65B0\u5EFA\u5361\u7247",new_field:"\u65B0\u5B57\u6BB5",add_field:"\u6DFB\u52A0\u5B57\u6BB5",board_no_select_col:"\u770B\u677F\u9700\u8981\u4E00\u4E2A\u5355\u9009\u6216\u72B6\u6001\u5217\u6765\u5206\u7EC4\u5361\u7247\u3002",board_add_select_hint:"\u5728\u8868\u683C\u89C6\u56FE\u4E2D\u6DFB\u52A0\u8BE5\u7C7B\u578B\u7684\u5217\uFF0C\u7136\u540E\u56DE\u5230\u8FD9\u91CC\u3002",board_drag_reorder:"\u62D6\u52A8\u4EE5\u91CD\u65B0\u6392\u5E8F",board_set_limit:"\u70B9\u51FB\u8BBE\u7F6E\u5361\u7247\u9650\u5236",board_limit_placeholder:"\u9650\u5236 (0 = \u65E0)",board_show_more:"\u66F4\u591A",board_show_less:"\u6536\u8D77",hide_empty_cols:"\u9690\u85CF\u7A7A\u5217",hide_no_value_cols:"\u9690\u85CF\u65E0\u503C\u5217",calendar_no_date_field:"\u5728\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u65E5\u671F\u5B57\u6BB5\u4EE5\u663E\u793A\u65E5\u5386\u3002",calendar_no_date_section:"\u65E0\u65E5\u671F",calendar_click_to_create:"\u70B9\u51FB\u521B\u5EFA\u7B14\u8BB0",calendar_today:"\u4ECA\u5929",calendar_prev_month:"\u4E0A\u4E2A\u6708",calendar_next_month:"\u4E0B\u4E2A\u6708",calendar_view_month:"\u6708",calendar_view_week:"\u5468",calendar_prev_week:"\u4E0A\u4E00\u5468",calendar_next_week:"\u4E0B\u4E00\u5468",calendar_add_time:"\u6DFB\u52A0\u65F6\u95F4",calendar_remove_time:"\u79FB\u9664\u65F6\u95F4",calendar_all_day:"\u5168\u5929",day_sun:"\u65E5",day_mon:"\u4E00",day_tue:"\u4E8C",day_wed:"\u4E09",day_thu:"\u56DB",day_fri:"\u4E94",day_sat:"\u516D",month_january:"\u4E00\u6708",month_february:"\u4E8C\u6708",month_march:"\u4E09\u6708",month_april:"\u56DB\u6708",month_may:"\u4E94\u6708",month_june:"\u516D\u6708",month_july:"\u4E03\u6708",month_august:"\u516B\u6708",month_september:"\u4E5D\u6708",month_october:"\u5341\u6708",month_november:"\u5341\u4E00\u6708",month_december:"\u5341\u4E8C\u6708",timeline_no_start_field:"\u5728\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u5F00\u59CB\u5B57\u6BB5\u4EE5\u663E\u793A\u65F6\u95F4\u7EBF\u3002",timeline_no_interval:"\u65E0\u95F4\u9694",timeline_scroll_prev:"\u5411\u524D\u6EDA\u52A8",timeline_scroll_next:"\u5411\u540E\u6EDA\u52A8",zoom_days:"\u5929",zoom_weeks:"\u5468",zoom_months:"\u6708",month_short_jan:"1\u6708",month_short_feb:"2\u6708",month_short_mar:"3\u6708",month_short_apr:"4\u6708",month_short_may:"5\u6708",month_short_jun:"6\u6708",month_short_jul:"7\u6708",month_short_aug:"8\u6708",month_short_sep:"9\u6708",month_short_oct:"10\u6708",month_short_nov:"11\u6708",month_short_dec:"12\u6708",hierarchy_toggle:"\u7528\u4F5C\u5C42\u7EA7",hierarchy_toggle_hint:"\u542F\u7528\u6B64\u6570\u636E\u5E93\u4E2D\u884C\u4E4B\u95F4\u7684\u7236\u5B50\u5173\u7CFB",add_subrow:"\u6DFB\u52A0\u5B50\u884C",collapse_all:"\u5168\u90E8\u6298\u53E0",expand_all:"\u5168\u90E8\u5C55\u5F00",max_depth_reached:"\u5DF2\u8FBE\u5230\u6700\u5927\u6DF1\u5EA6\uFF083 \u5C42\uFF09",chart_configure:"\u914D\u7F6E",chart_type:"\u56FE\u8868\u7C7B\u578B",chart_type_bar:"\u67F1\u72B6\u56FE",chart_type_line:"\u6298\u7EBF\u56FE",chart_type_pie:"\u997C\u56FE",chart_x_axis:"\u5206\u7C7B (X \u8F74)",chart_y_axis:"\u6570\u503C (Y \u8F74)",chart_aggregation:"\u805A\u5408",chart_select_column:"\u9009\u62E9\u5217...",chart_count_records:"\u8BA1\u6570",chart_no_config:"\u8BF7\u914D\u7F6E\u56FE\u8868\u4EE5\u5F00\u59CB\u4F7F\u7528\u3002",chart_no_config_hint:"\u5728\u4E0A\u65B9\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u5206\u7C7B\u5217\u3002",tooltip_pin_column:"\u56FA\u5B9A\u5230\u6B64\u5217",tooltip_unpin_column:"\u53D6\u6D88\u56FA\u5B9A\u5217",tooltip_resize_column:"\u62D6\u52A8\u8C03\u6574\u5927\u5C0F\uFF1B\u53CC\u51FB\u9002\u5E94\u5185\u5BB9",tooltip_wrap_text:"\u6587\u5B57\u6362\u884C",tooltip_include_subfolders:"\u5305\u542B\u5B50\u6587\u4EF6\u5939",folder_column:"\u6587\u4EF6\u5939",tooltip_manage_fields:"\u7BA1\u7406\u5B57\u6BB5",tooltip_batch_actions:"\u6279\u91CF\u64CD\u4F5C",tooltip_remove_filter:"\u79FB\u9664\u7B5B\u9009",hide_filters:"\u9690\u85CF\u7B5B\u9009",show_filters:"\u663E\u793A\u7B5B\u9009",filters_count_one:"1 \u4E2A\u7B5B\u9009",filters_count_other:"{n} \u4E2A\u7B5B\u9009",tooltip_drag_reorder:"\u62D6\u52A8\u4EE5\u91CD\u65B0\u6392\u5E8F",tooltip_search:"\u641C\u7D22",tooltip_toggle_and_or:"\u70B9\u51FB\u5207\u6362\u903B\u8F91\u8FD0\u7B97\u7B26",tooltip_close:"\u5173\u95ED",tooltip_remove:"\u79FB\u9664",tooltip_move_up:"\u4E0A\u79FB",tooltip_move_down:"\u4E0B\u79FB",tooltip_change_color:"\u66F4\u6539\u989C\u8272",tooltip_delete_status:"\u5220\u9664\u72B6\u6001",status_not_started:"\u672A\u5F00\u59CB",status_in_progress:"\u8FDB\u884C\u4E2D",status_done:"\u5DF2\u5B8C\u6210",status_cancelled:"\u5DF2\u53D6\u6D88",relation_search_placeholder:"\u641C\u7D22...",relation_clear:"\u6E05\u9664",relation_no_results:"\u65E0\u7ED3\u679C",relation_two_way:"\u53CC\u5411\u5173\u8054",relation_two_way_hint:"\u81EA\u52A8\u5728\u76EE\u6807\u6570\u636E\u5E93\u4E2D\u521B\u5EFA\u53CD\u5411\u5173\u8054",select_clear:"\u6E05\u9664",select_create_placeholder:"\u521B\u5EFA\u65B0\u9009\u9879...",status_new_placeholder:"\u65B0\u72B6\u6001...",color_custom:"\u81EA\u5B9A\u4E49",validate_non_numeric:'\u5355\u5143\u683C\u5305\u542B\u975E\u6570\u5B57\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_dates:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u65E5\u671F\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_checkbox:'\u5355\u5143\u683C\u5305\u542B\u4E0E\u590D\u9009\u6846\u4E0D\u517C\u5BB9\u7684\u503C\uFF08\u4F8B\uFF1A"',validate_multiselect_to_select:"\u884C\u6709\u591A\u4E2A\u9009\u4E2D\u503C\u3002\u8BF7\u5728\u5207\u6362\u5230\u5355\u9009\u524D\u79FB\u9664\u591A\u4F59\u7684\u503C\u3002",validate_invalid_email:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u90AE\u7BB1\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_url:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548 URL \u503C\uFF08\u4F8B\uFF1A"',validate_invalid_phone:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u7535\u8BDD\u53F7\u7801\uFF08\u4F8B\uFF1A"',validate_type_change_prefix:"\u65E0\u6CD5\u66F4\u6539\u7C7B\u578B\uFF1A",email_invalid:"\u65E0\u6548\u90AE\u7BB1",op_is:"\u7B49\u4E8E",op_is_not:"\u4E0D\u7B49\u4E8E",op_contains:"\u5305\u542B",op_not_contains:"\u4E0D\u5305\u542B",op_starts_with:"\u5F00\u5934\u662F",op_ends_with:"\u7ED3\u5C3E\u662F",op_is_empty:"\u4E3A\u7A7A",op_is_not_empty:"\u4E0D\u4E3A\u7A7A",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"\u5DF2\u52FE\u9009",op_is_unchecked:"\u672A\u52FE\u9009",settings_db_filename_name:"\u6570\u636E\u5E93\u6587\u4EF6\u540D",settings_db_filename_desc:"\u7528\u4E8E\u6807\u8BC6\u6587\u4EF6\u5939\u4E2D\u6570\u636E\u5E93\u7684\u7279\u6B8A\u6587\u4EF6\u540D\u3002",settings_row_height_name:"\u9ED8\u8BA4\u884C\u9AD8",settings_row_height_desc:"\u6BCF\u4E2A\u8868\u683C\u884C\u7684\u50CF\u7D20\u9AD8\u5EA6\u3002",settings_inline_fields_name:"\u8BFB\u53D6 dataview \u5185\u8054\u5B57\u6BB5",settings_inline_fields_desc:"\u89E3\u6790\u7B14\u8BB0\u6B63\u6587\u4E2D\u7684 key:: value \u5B57\u6BB5\u5E76\u5C06\u5176\u663E\u793A\u4E3A\u5217\u503C\uFF08\u53EA\u8BFB\uFF09",db_untitled_note:"\u672A\u547D\u540D",db_copy_suffix:"(\u526F\u672C)",db_copy_suffix_n:"(\u526F\u672C $n)",db_already_exists:'"$folder" \u4E2D\u5DF2\u5B58\u5728\u6570\u636E\u5E93',db_tip_body:"\u6B64\u6587\u4EF6\u662F\u4E00\u4E2A\u6570\u636E\u5E93\u3002\u6253\u5F00\u5B83\u4EE5\u67E5\u770B\u8868\u683C\u89C6\u56FE\u3002",formula_err_unclosed_string:"\u4F4D\u7F6E $pos \u5904\u5B57\u7B26\u4E32\u672A\u5173\u95ED",formula_err_unclosed_bracket:"\u4F4D\u7F6E $pos \u5904\u62EC\u53F7\u672A\u5173\u95ED",formula_err_unexpected_bang:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u5B57\u7B26 '!'",formula_err_unexpected_char:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u5B57\u7B26 '$char'",formula_err_expected_token:"\u4F4D\u7F6E $pos \u5904\u671F\u671B $expected\uFF0C\u627E\u5230 '$found'",formula_err_unexpected_token:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u6807\u8BB0 '$token'",formula_err_circular_ref:'\u5FAA\u73AF\u5F15\u7528\uFF1A"$name" \u662F\u4E00\u4E2A\u516C\u5F0F\u5217',formula_err_unknown_fn:"\u672A\u77E5\u51FD\u6570\uFF1A$fn()",formula_err_if_args:"\u671F\u671B if(\u6761\u4EF6, \u771F\u503C, [\u5047\u503C])",formula_err_avg_args:"\u671F\u671B avg(\u5217) \u2014 \u9700\u8981\u5217\u5F15\u7528\u4F5C\u4E3A\u53C2\u6570",formula_err_count_args:"\u671F\u671B count(\u5217) \u2014 \u9700\u8981\u5217\u5F15\u7528\u4F5C\u4E3A\u53C2\u6570",formula_err_mid_args:"\u671F\u671B mid(\u6587\u672C, \u8D77\u59CB, \u957F\u5EA6)",formula_err_mod_args:"\u671F\u671B mod(\u6570\u5B57, \u9664\u6570)",formula_err_sqrt_args:"\u671F\u671B sqrt(\u6570\u5B57)",formula_err_not_implemented:"\u51FD\u6570\u672A\u5B9E\u73B0\uFF1A$fn()",plugin_display_name:"Notion bases",no_databases_found:'\u672A\u627E\u5230\u6570\u636E\u5E93\u3002\u4F7F\u7528"\u521B\u5EFA\u65B0\u6570\u636E\u5E93"\u547D\u4EE4\u6765\u521B\u5EFA\u4E00\u4E2A\u3002',cmd_open_database:"\u6253\u5F00\u6B64\u6587\u4EF6\u5939\u7684\u6570\u636E\u5E93",cmd_create_database:"\u5728\u5F53\u524D\u6587\u4EF6\u5939\u521B\u5EFA\u65B0\u6570\u636E\u5E93",ctx_create_database:"\u5728\u6B64\u5904\u521B\u5EFA\u6570\u636E\u5E93",arr_settings_title:"\u6587\u4EF6\u5939\u6392\u5217",arr_settings_desc:"\u6839\u636E\u6240\u9009\u5C5E\u6027\u7684\u503C\uFF0C\u6309\u987A\u5E8F\u81EA\u52A8\u5C06\u884C\u6587\u4EF6\u79FB\u52A8\u5230\u5D4C\u5957\u5B50\u6587\u4EF6\u5939\u4E2D\u3002",arr_settings_enabled_name:"\u542F\u7528\u6587\u4EF6\u5939\u6392\u5217",arr_settings_enabled_desc:"\u542F\u7528\u540E\uFF0C\u6240\u9009\u5C5E\u6027\u4E4B\u4E00\u53D1\u751F\u66F4\u6539\u65F6\u7ACB\u5373\u79FB\u52A8\u884C\u3002\u9ED8\u8BA4\u5173\u95ED\u3002",arr_settings_no_props:"\u672A\u9009\u62E9\u4EFB\u4F55\u5C5E\u6027\u3002\u8BF7\u5728\u4E0B\u65B9\u6DFB\u52A0\u4E00\u4E2A\u4EE5\u5B9A\u4E49\u6587\u4EF6\u5939\u5C42\u7EA7\u3002",arr_settings_no_candidates:"\u6CA1\u6709\u53EF\u7528\u5217\u3002\u6587\u4EF6\u5939\u6392\u5217\u652F\u6301\u6587\u672C\u3001\u9009\u62E9\u3001\u72B6\u6001\u548C\u65E5\u671F\u5217\u3002",arr_settings_add_placeholder:"\u9009\u62E9\u4E00\u4E2A\u5C5E\u6027...",arr_settings_add_btn:"\u6DFB\u52A0",arr_settings_preview_btn:"\u9884\u89C8\u5E76\u5E94\u7528\u5230\u73B0\u6709\u884C",arr_preview_title:"\u6587\u4EF6\u5939\u6392\u5217\u9884\u89C8",arr_preview_empty:"\u6CA1\u6709\u9700\u8981\u79FB\u52A8\u7684\u884C\u3002",arr_preview_desc:"\u5C06\u79FB\u52A8 $count \u884C\uFF1A",arr_preview_filtered_note:"\u4EC5\u8003\u8651\u5F53\u524D\u89C6\u56FE\u4E2D\u53EF\u89C1\u7684\u6587\u4EF6\u3002",arr_preview_apply:"\u5E94\u7528",arr_preview_cancel:"\u53D6\u6D88",arr_preview_applied:"\u5DF2\u79FB\u52A8 $count \u884C\u3002",cmd_quick_add:"\u5FEB\u901F\u5411\u6570\u636E\u5E93\u6DFB\u52A0\u884C",quick_add_title:"\u5FEB\u901F\u6DFB\u52A0",quick_add_note_title:"\u6807\u9898",quick_add_note_title_placeholder:"\u7B14\u8BB0\u6807\u9898...",quick_add_create:"\u521B\u5EFA",quick_add_create_and_open:"\u521B\u5EFA\u5E76\u6253\u5F00",quick_add_no_visible_fields:"\u6B64\u6570\u636E\u5E93\u4E2D\u6CA1\u6709\u53EF\u7F16\u8F91\u5B57\u6BB5",picker_placeholder:"\u9009\u62E9\u6570\u636E\u5E93...",picker_root:"/\uFF08\u6839\u76EE\u5F55\uFF09",view_fallback_name:"\u6570\u636E\u5E93",saving:"\u4FDD\u5B58\u4E2D",saved:"\u5DF2\u4FDD\u5B58",save_error:"\u4FDD\u5B58\u5931\u8D25",settings_page_size_name:"\u6BCF\u9875\u884C\u6570",settings_page_size_desc:'\u6BCF\u9875\u663E\u793A\u7684\u884C\u6570\u3002\u8BBE\u7F6E\u4E3A"\u5168\u90E8"\u4EE5\u542F\u7528\u8FDE\u7EED\u6EDA\u52A8',settings_page_size_all:"\u5168\u90E8\uFF08\u8FDE\u7EED\u6EDA\u52A8\uFF09",page_of:"\u7B2C {current} \u9875\uFF0C\u5171 {total} \u9875",first_page:"\u7B2C\u4E00\u9875",last_page:"\u6700\u540E\u4E00\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",conditional_formatting:"\u6761\u4EF6\u683C\u5F0F",no_conditional_formats:"\u6682\u65E0\u89C4\u5219",add_rule:"\u6DFB\u52A0\u89C4\u5219",select_value:"\u9009\u62E9\u4E00\u4E2A\u503C",style:"\u6837\u5F0F",background:"\u80CC\u666F",text_color:"\u6587\u5B57\u989C\u8272",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",value:"\u503C",db_settings_open:"\u6570\u636E\u5E93\u8BBE\u7F6E",db_settings_title:"\u6570\u636E\u5E93\u8BBE\u7F6E",db_settings_template_name:"\u884C\u6A21\u677F",db_settings_template_desc:"\u5C06\u6B64\u6A21\u677F\u5E94\u7528\u4E8E\u5728\u6B64\u6570\u636E\u5E93\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E00\u65B0\u884C\u7684\u6B63\u6587\u3002",db_settings_template_choose:"\u9009\u62E9\u6A21\u677F",db_settings_template_clear:"\u6E05\u9664\u6A21\u677F",db_settings_template_none:"\u672A\u9009\u62E9\u6A21\u677F",db_settings_ask_name:"\u521B\u5EFA\u65F6\u8BE2\u95EE\u6A21\u677F",db_settings_ask_desc:"\u6BCF\u6B21\u6DFB\u52A0\u65B0\u884C\u65F6\u63D0\u793A\u9009\u62E9\u6A21\u677F\uFF0C\u800C\u4E0D\u662F\u5E94\u7528\u9ED8\u8BA4\u6A21\u677F\u3002",template_picker_placeholder:"\u9009\u62E9\u4E00\u4E2A\u6A21\u677F...",template_picker_none:"\u65E0\u6A21\u677F\uFF08\u7A7A\u6B63\u6587\uFF09",folder_picker_placeholder:"\u9009\u62E9\u76EE\u6807\u6587\u4EF6\u5939..."},xc=dy;var py={view_table:"\u30C6\u30FC\u30D6\u30EB",view_list:"\u30EA\u30B9\u30C8",view_board:"\u30DC\u30FC\u30C9",view_gallery:"\u30AE\u30E3\u30E9\u30EA\u30FC",view_calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",view_timeline:"\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3",view_chart:"\u30C1\u30E3\u30FC\u30C8",add_view:"\u30D3\u30E5\u30FC\u3092\u8FFD\u52A0",remove_view:"\u30D3\u30E5\u30FC\u3092\u524A\u9664",rename_view_hint:"\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u540D\u524D\u5909\u66F4",fields:"\u30D5\u30A3\u30FC\u30EB\u30C9",filter:"\u30D5\u30A3\u30EB\u30BF\u30FC",filters:"\u30D5\u30A3\u30EB\u30BF\u30FC",sort:"\u4E26\u3079\u66FF\u3048",actions:"\u30A2\u30AF\u30B7\u30E7\u30F3",group_by:"\u30B0\u30EB\u30FC\u30D7\u5316",cover:"\u30AB\u30D0\u30FC",date_field:"\u65E5\u4ED8",start_field:"\u958B\u59CB",end_field:"\u7D42\u4E86",group_field:"\u30B0\u30EB\u30FC\u30D7",fields_in_card:"\u30AB\u30FC\u30C9\u306E\u30D5\u30A3\u30FC\u30EB\u30C9",fields_label:"\u30D5\u30A3\u30FC\u30EB\u30C9",fields_on_bars:"\u30D0\u30FC\u306E\u30D5\u30A3\u30FC\u30EB\u30C9",filter_by:"\u30D5\u30A3\u30EB\u30BF\u30FC\u6761\u4EF6",sort_by:"\u4E26\u3079\u66FF\u3048\u6761\u4EF6",group_by_label:"\u30B0\u30EB\u30FC\u30D7\u5316\u6761\u4EF6",date_field_label:"\u65E5\u4ED8\u30D5\u30A3\u30FC\u30EB\u30C9",cover_field_label:"\u30AB\u30D0\u30FC\u30D5\u30A3\u30FC\u30EB\u30C9",card_size_label:"\u30AB\u30FC\u30C9\u30B5\u30A4\u30BA",row_height_label:"\u884C\u306E\u9AD8\u3055",none_value:"\u306A\u3057",no_value:"\u5024\u306A\u3057",no_cover:"\u306A\u3057",size_small:"\u5C0F",size_medium:"\u4E2D",size_large:"\u5927",height_compact:"\u30B3\u30F3\u30D1\u30AF\u30C8",height_medium:"\u6A19\u6E96",height_tall:"\u9AD8\u3044",add_filter_advanced:"\u8A73\u7D30\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u8FFD\u52A0",add_sort:"\u4E26\u3079\u66FF\u3048\u3092\u8FFD\u52A0",no_active_sorts:"\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u4E26\u3079\u66FF\u3048\u306A\u3057",name_column:"\u540D\u524D",conjunction_and:"\u304B\u3064",conjunction_or:"\u307E\u305F\u306F",filter_number_placeholder:"\u6570\u5024...",filter_value_placeholder:"\u5024...",delete_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u524A\u9664",move_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u79FB\u52D5",duplicate_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u8907\u88FD",export_csv:"CSV \u30A8\u30AF\u30B9\u30DD\u30FC\u30C8",import_csv:"CSV \u30A4\u30F3\u30DD\u30FC\u30C8",open_note:"\u30CE\u30FC\u30C8\u3092\u958B\u304F",delete_note:"\u30CE\u30FC\u30C8\u3092\u524A\u9664",duplicate_note:"\u30CE\u30FC\u30C8\u3092\u8907\u88FD",sort_asc:"\u6607\u9806",sort_desc:"\u964D\u9806",sort_asc_title:"\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048",sort_desc_title:"\u4E26\u3079\u66FF\u3048\u3092\u89E3\u9664",sort_none_title:"\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048",rename_column:"\u540D\u524D\u5909\u66F4",edit_formula:"\u6570\u5F0F\u3092\u7DE8\u96C6",configure_lookup:"Lookup \u3092\u8A2D\u5B9A",configure_relation:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u8A2D\u5B9A",format_number:"\u6570\u5024\u306E\u66F8\u5F0F",configure_image_folder:"\u753B\u50CF\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",field_type_label:"\u30D5\u30A3\u30FC\u30EB\u30C9\u30BF\u30A4\u30D7",hide_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u975E\u8868\u793A",enable_wrap_text:"\u30C6\u30AD\u30B9\u30C8\u3092\u6298\u308A\u8FD4\u3059",disable_wrap_text:"\u6298\u308A\u8FD4\u3057\u3092\u89E3\u9664",delete_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u524A\u9664",type_title:"\u30BF\u30A4\u30C8\u30EB",type_text:"\u30C6\u30AD\u30B9\u30C8",type_number:"\u6570\u5024",type_select:"\u9078\u629E",type_multiselect:"\u8907\u6570\u9078\u629E",type_date:"\u65E5\u4ED8",type_checkbox:"\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9",type_url:"URL",type_email:"\u30E1\u30FC\u30EB",type_phone:"\u96FB\u8A71",type_status:"\u30B9\u30C6\u30FC\u30BF\u30B9",type_formula:"\u6570\u5F0F",type_relation:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Rollup \u3092\u8A2D\u5B9A",rollup_select_relation:"1. \u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217",rollup_select_relation_placeholder:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u9078\u629E...",rollup_select_target:"2. \u30BF\u30FC\u30B2\u30C3\u30C8\u5217",rollup_select_target_placeholder:"\u5217\u3092\u9078\u629E...",rollup_select_function:"3. \u96C6\u8A08",rollup_no_relations:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u5148\u306B\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",rollup_fn_sum:"\u5408\u8A08",rollup_fn_count:"\u30AB\u30A6\u30F3\u30C8",rollup_fn_avg:"\u5E73\u5747",rollup_fn_min:"\u6700\u5C0F",rollup_fn_max:"\u6700\u5927",rollup_fn_count_values:"\u4E00\u610F\u3092\u30AB\u30A6\u30F3\u30C8",rollup_fn_list:"\u3059\u3079\u3066\u5217\u6319",type_image:"\u753B\u50CF",type_audio:"\u30AA\u30FC\u30C7\u30A3\u30AA",audio_path_placeholder:"\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u306E\u30D1\u30B9...",audio_select_placeholder:"\u97F3\u58F0\u3092\u9078\u629E...",audio_picker_title:"\u97F3\u58F0\u3092\u9078\u629E",audio_picker_clear:"\u30AF\u30EA\u30A2",audio_picker_empty_folder:"\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",audio_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",audio_panel_title:"\u97F3\u58F0\u8A2D\u5B9A",audio_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u7A7A\u306B\u3059\u308B\u3068\u4FDD\u7BA1\u5EAB\u5168\u4F53\u3092\u5BFE\u8C61\uFF09",audio_folder_placeholder:"\u4F8B\uFF1Aaudio/music",configure_audio_folder:"\u97F3\u58F0\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",type_video:"\u52D5\u753B",video_select_placeholder:"\u52D5\u753B\u3092\u9078\u629E...",video_picker_clear:"\u30AF\u30EA\u30A2",video_picker_empty_folder:"\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",video_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",video_panel_title:"\u52D5\u753B\u8A2D\u5B9A",video_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u7A7A\u306B\u3059\u308B\u3068\u4FDD\u7BA1\u5EAB\u5168\u4F53\u3092\u5BFE\u8C61\uFF09",video_folder_placeholder:"\u4F8B\uFF1Avideo/clips",configure_video_folder:"\u52D5\u753B\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",formula_panel_title:"\u6570\u5F0F",formula_placeholder:'\u4F8B\uFF1Aif(status = "done", 1, 0)',formula_valid:"\u69CB\u6587\u306F\u6B63\u3057\u3044\u3067\u3059",formula_available_cols:"\u5229\u7528\u53EF\u80FD\u306A\u5217\uFF1A",formula_ref_toggle:"\u95A2\u6570\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9",formula_save:"\u4FDD\u5B58",formula_cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",formula_save_hint:"\u4FDD\u5B58 (Ctrl+Enter)",formula_group_logic:"\u8AD6\u7406",formula_group_comparators:"\u6BD4\u8F03",formula_group_aggregators:"\u96C6\u8A08",formula_group_text:"\u30C6\u30AD\u30B9\u30C8",formula_group_math:"\u6570\u5B66",formula_group_utils:"\u30E6\u30FC\u30C6\u30A3\u30EA\u30C6\u30A3",formula_desc_if:"cond \u304C\u771F\u306A\u3089 a \u3092\u8FD4\u3057\u3001\u305D\u3046\u3067\u306A\u3051\u308C\u3070 b \u3092\u8FD4\u3059",formula_desc_ifs:"\u6761\u4EF6\u3092\u9806\u756A\u306B\u30C6\u30B9\u30C8\u3059\u308B",formula_desc_and:"\u3059\u3079\u3066\u304C\u771F\u306E\u3068\u304D\u771F",formula_desc_or:"\u3044\u305A\u308C\u304B\u304C\u771F\u306E\u3068\u304D\u771F",formula_desc_not:"\u8AD6\u7406\u5024\u3092\u53CD\u8EE2\u3059\u308B",formula_desc_comparators:"2 \u3064\u306E\u5024\u3092\u6BD4\u8F03\u3059\u308B\uFF1B\u6761\u4EF6\u5F0F\u3068\u7D44\u307F\u5408\u308F\u305B\u3066\u4F7F\u7528",formula_desc_sum:"\u5217\u306E\u3059\u3079\u3066\u306E\u5024\u3092\u5408\u8A08\u3059\u308B",formula_desc_avg:"\u5217\u306E\u5024\u306E\u5E73\u5747",formula_desc_count:"\u5217\u306E\u7A7A\u3067\u306A\u3044\u5024\u3092\u6570\u3048\u308B",formula_desc_min:"\u5217\u306E\u6700\u5C0F\u5024",formula_desc_max:"\u5217\u306E\u6700\u5927\u5024",formula_desc_concat:"\u30C6\u30AD\u30B9\u30C8\u3092\u9023\u7D50\u3059\u308B\uFF08\u307E\u305F\u306F & \u3092\u4F7F\u7528\uFF09",formula_desc_len:"\u6587\u5B57\u6570",formula_desc_upper_lower:"\u5927\u6587\u5B57 / \u5C0F\u6587\u5B57\u306B\u5909\u63DB",formula_desc_trim:"\u5148\u982D\u3068\u672B\u5C3E\u306E\u7A7A\u767D\u3092\u524A\u9664\u3059\u308B",formula_desc_left:"\u6700\u521D\u306E n \u6587\u5B57",formula_desc_right:"\u6700\u5F8C\u306E n \u6587\u5B57",formula_desc_mid:"\u6307\u5B9A\u4F4D\u7F6E\u304B\u3089\u306E\u90E8\u5206\u6587\u5B57\u5217",formula_desc_substitute:"\u51FA\u73FE\u7B87\u6240\u3092\u7F6E\u63DB\u3059\u308B",formula_desc_round:"n \u3092 d \u5C0F\u6570\u70B9\u4EE5\u4E0B\u306B\u4E38\u3081\u308B",formula_desc_floor_ceil:"\u5207\u308A\u6368\u3066 / \u5207\u308A\u4E0A\u3052",formula_desc_abs:"\u7D76\u5BFE\u5024",formula_desc_mod:"\u9664\u7B97\u306E\u4F59\u308A",formula_desc_power:"\u5E95\u306E\u6307\u6570\u4E57",formula_desc_sqrt:"\u5E73\u65B9\u6839",formula_desc_isnull:"v \u304C\u7A7A\u307E\u305F\u306F null \u306E\u3068\u304D\u771F",formula_desc_coalesce:"\u6700\u521D\u306E\u7A7A\u3067\u306A\u3044\u5024",formula_desc_text:"\u30C6\u30AD\u30B9\u30C8\u306B\u5909\u63DB\u3059\u308B",formula_desc_value:"\u6570\u5024\u306B\u5909\u63DB\u3059\u308B",number_format_title:"\u66F8\u5F0F",number_decimals_label:"\u5C0F\u6570\u70B9\u4EE5\u4E0B\u306E\u6841\u6570",number_thousands_label:"\u6841\u533A\u5207\u308A",number_prefix_label:"\u63A5\u982D\u8F9E",number_suffix_label:"\u63A5\u5C3E\u8F9E",number_prefix_placeholder:"\u4F8B\uFF1A$\u3001\xA5",number_suffix_placeholder:"\u4F8B\uFF1A%\u3001kg\u3001km",number_remove_format:"\u66F8\u5F0F\u3092\u524A\u9664",relation_panel_title:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",lookup_panel_title:"Lookup",lookup_ref_table:"1. \u53C2\u7167\u30C6\u30FC\u30D6\u30EB",lookup_select_table:"\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E...",lookup_col_to_display:"2. \u8868\u793A\u3059\u308B\u5217",lookup_origin_col:"2. \u5024\u306E\u30BD\u30FC\u30B9\u30D5\u30A3\u30FC\u30EB\u30C9",lookup_select_col:"\u5217\u3092\u9078\u629E...",lookup_file_name:"\u30D5\u30A1\u30A4\u30EB\u540D",lookup_join_col:"3. \u7D50\u5408\u5217\uFF08\u3053\u306E\u30C6\u30FC\u30D6\u30EB\uFF09",lookup_join_col_title:"\u30D5\u30A1\u30A4\u30EB\u540D\uFF08\u30BF\u30A4\u30C8\u30EB\u3067\u7D50\u5408\uFF09",lookup_select_join_col:"\u5217\u3092\u9078\u629E...",lookup_hint:"\u3053\u306E\u5217\u306E\u5024\u306F\u53C2\u7167\u30C6\u30FC\u30D6\u30EB\u306E\u30D5\u30A1\u30A4\u30EB\u540D\u3068\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",image_panel_title:"\u753B\u50CF",image_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u4EFB\u610F\uFF09",image_folder_placeholder:"\u4F8B\uFF1Aimages/covers",image_picker_title:"\u753B\u50CF\u3092\u9078\u629E",image_picker_clear:"\u30AF\u30EA\u30A2",image_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u753B\u50CF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",image_picker_empty_folder:"\u753B\u50CF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF1A",image_select_placeholder:"\u753B\u50CF\u3092\u9078\u629E\u2026",agg_none:"\u306A\u3057",agg_count:"\u30AB\u30A6\u30F3\u30C8",agg_count_values:"\u5024\u3092\u30AB\u30A6\u30F3\u30C8",agg_sum:"\u5408\u8A08",agg_avg:"\u5E73\u5747",agg_min:"\u6700\u5C0F",agg_max:"\u6700\u5927",no_database_open:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093\u3002",no_database_hint:"\u30EA\u30DC\u30F3\u30DC\u30BF\u30F3\u307E\u305F\u306F\u300C\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u300D\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",loading:"\u8AAD\u307F\u8FBC\u307F\u4E2D...",no_results:"\u9805\u76EE\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",item_singular:"\u4EF6",item_plural:"\u4EF6",row_singular:"\u884C",row_plural:"\u884C",record_singular:"\u30EC\u30B3\u30FC\u30C9",record_plural:"\u30EC\u30B3\u30FC\u30C9",add_row:"\u65B0\u3057\u3044\u884C",add_entry:"\u65B0\u3057\u3044\u30A8\u30F3\u30C8\u30EA\u30FC",add_card:"\u65B0\u3057\u3044\u30AB\u30FC\u30C9",new_field:"\u65B0\u3057\u3044\u30D5\u30A3\u30FC\u30EB\u30C9",add_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u8FFD\u52A0",board_no_select_col:"\u30DC\u30FC\u30C9\u306B\u306F\u30AB\u30FC\u30C9\u3092\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u305F\u3081\u306E\u9078\u629E\u307E\u305F\u306F\u30B9\u30C6\u30FC\u30BF\u30B9\u5217\u304C\u5FC5\u8981\u3067\u3059\u3002",board_add_select_hint:"\u30C6\u30FC\u30D6\u30EB\u30D3\u30E5\u30FC\u3067\u305D\u306E\u30BF\u30A4\u30D7\u306E\u5217\u3092\u8FFD\u52A0\u3057\u3066\u304B\u3089\u3001\u3053\u3053\u306B\u623B\u3063\u3066\u304F\u3060\u3055\u3044\u3002",board_drag_reorder:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048",board_set_limit:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30AB\u30FC\u30C9\u5236\u9650\u3092\u8A2D\u5B9A",board_limit_placeholder:"\u5236\u9650 (0 = \u306A\u3057)",board_show_more:"\u4EF6\u4EE5\u4E0A",board_show_less:"\u6298\u308A\u305F\u305F\u3080",hide_empty_cols:"\u7A7A\u3092\u975E\u8868\u793A",hide_no_value_cols:"\u5024\u306A\u3057\u3092\u975E\u8868\u793A",calendar_no_date_field:"\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u65E5\u4ED8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u30AB\u30EC\u30F3\u30C0\u30FC\u3092\u8868\u793A\u3057\u307E\u3059\u3002",calendar_no_date_section:"\u65E5\u4ED8\u306A\u3057",calendar_click_to_create:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30CE\u30FC\u30C8\u3092\u4F5C\u6210",calendar_today:"\u4ECA\u65E5",calendar_prev_month:"\u524D\u6708",calendar_next_month:"\u7FCC\u6708",calendar_view_month:"\u6708",calendar_view_week:"\u9031",calendar_prev_week:"\u524D\u9031",calendar_next_week:"\u7FCC\u9031",calendar_add_time:"\u6642\u523B\u3092\u8FFD\u52A0",calendar_remove_time:"\u6642\u523B\u3092\u524A\u9664",calendar_all_day:"\u7D42\u65E5",day_sun:"\u65E5",day_mon:"\u6708",day_tue:"\u706B",day_wed:"\u6C34",day_thu:"\u6728",day_fri:"\u91D1",day_sat:"\u571F",month_january:"1\u6708",month_february:"2\u6708",month_march:"3\u6708",month_april:"4\u6708",month_may:"5\u6708",month_june:"6\u6708",month_july:"7\u6708",month_august:"8\u6708",month_september:"9\u6708",month_october:"10\u6708",month_november:"11\u6708",month_december:"12\u6708",timeline_no_start_field:"\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u958B\u59CB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\u3092\u8868\u793A\u3057\u307E\u3059\u3002",timeline_no_interval:"\u9593\u9694\u306A\u3057",timeline_scroll_prev:"\u524D\u306B\u30B9\u30AF\u30ED\u30FC\u30EB",timeline_scroll_next:"\u6B21\u306B\u30B9\u30AF\u30ED\u30FC\u30EB",zoom_days:"\u65E5",zoom_weeks:"\u9031",zoom_months:"\u6708",month_short_jan:"1\u6708",month_short_feb:"2\u6708",month_short_mar:"3\u6708",month_short_apr:"4\u6708",month_short_may:"5\u6708",month_short_jun:"6\u6708",month_short_jul:"7\u6708",month_short_aug:"8\u6708",month_short_sep:"9\u6708",month_short_oct:"10\u6708",month_short_nov:"11\u6708",month_short_dec:"12\u6708",hierarchy_toggle:"\u968E\u5C64\u3068\u3057\u3066\u4F7F\u7528",hierarchy_toggle_hint:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u884C\u9593\u306B\u89AA\u5B50\u95A2\u4FC2\u3092\u6709\u52B9\u306B\u3057\u307E\u3059",add_subrow:"\u30B5\u30D6\u884C\u3092\u8FFD\u52A0",collapse_all:"\u3059\u3079\u3066\u6298\u308A\u305F\u305F\u3080",expand_all:"\u3059\u3079\u3066\u5C55\u958B",max_depth_reached:"\u6700\u5927\u306E\u6DF1\u3055\u306B\u9054\u3057\u307E\u3057\u305F\uFF083 \u30EC\u30D9\u30EB\uFF09",chart_configure:"\u8A2D\u5B9A",chart_type:"\u30B0\u30E9\u30D5\u306E\u7A2E\u985E",chart_type_bar:"\u68D2\u30B0\u30E9\u30D5",chart_type_line:"\u6298\u308C\u7DDA\u30B0\u30E9\u30D5",chart_type_pie:"\u5186\u30B0\u30E9\u30D5",chart_x_axis:"\u30AB\u30C6\u30B4\u30EA\u30FC (X \u8EF8)",chart_y_axis:"\u5024 (Y \u8EF8)",chart_aggregation:"\u96C6\u8A08",chart_select_column:"\u5217\u3092\u9078\u629E...",chart_count_records:"\u30AB\u30A6\u30F3\u30C8",chart_no_config:"\u30B0\u30E9\u30D5\u3092\u8A2D\u5B9A\u3057\u3066\u59CB\u3081\u307E\u3057\u3087\u3046\u3002",chart_no_config_hint:"\u4E0A\u306E\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u30AB\u30C6\u30B4\u30EA\u30FC\u7528\u306E\u5217\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",tooltip_pin_column:"\u3053\u3053\u307E\u3067\u306E\u5217\u3092\u56FA\u5B9A",tooltip_unpin_column:"\u5217\u306E\u56FA\u5B9A\u3092\u89E3\u9664",tooltip_resize_column:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\uFF1B\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u5185\u5BB9\u306B\u5408\u308F\u305B\u308B",tooltip_wrap_text:"\u30C6\u30AD\u30B9\u30C8\u306E\u6298\u308A\u8FD4\u3057",tooltip_include_subfolders:"\u30B5\u30D6\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u542B\u3081\u308B",folder_column:"\u30D5\u30A9\u30EB\u30C0\u30FC",tooltip_manage_fields:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u7BA1\u7406",tooltip_batch_actions:"\u4E00\u62EC\u64CD\u4F5C",tooltip_remove_filter:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u524A\u9664",hide_filters:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u975E\u8868\u793A",show_filters:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u8868\u793A",filters_count_one:"1 \u4EF6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",filters_count_other:"{n} \u4EF6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",tooltip_drag_reorder:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048",tooltip_search:"\u691C\u7D22",tooltip_toggle_and_or:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u8AD6\u7406\u6F14\u7B97\u5B50\u3092\u5207\u308A\u66FF\u3048",tooltip_close:"\u9589\u3058\u308B",tooltip_remove:"\u524A\u9664",tooltip_move_up:"\u4E0A\u306B\u79FB\u52D5",tooltip_move_down:"\u4E0B\u306B\u79FB\u52D5",tooltip_change_color:"\u8272\u3092\u5909\u66F4",tooltip_delete_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",status_not_started:"\u672A\u7740\u624B",status_in_progress:"\u9032\u884C\u4E2D",status_done:"\u5B8C\u4E86",status_cancelled:"\u30AD\u30E3\u30F3\u30BB\u30EB\u6E08\u307F",relation_search_placeholder:"\u691C\u7D22...",relation_clear:"\u30AF\u30EA\u30A2",relation_no_results:"\u7D50\u679C\u306A\u3057",relation_two_way:"\u53CC\u65B9\u5411\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",relation_two_way_hint:"\u5BFE\u8C61\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u9006\u65B9\u5411\u306E\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u81EA\u52D5\u7684\u306B\u4F5C\u6210\u3057\u307E\u3059",select_clear:"\u30AF\u30EA\u30A2",select_create_placeholder:"\u65B0\u3057\u3044\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F5C\u6210...",status_new_placeholder:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9...",color_custom:"\u30AB\u30B9\u30BF\u30E0",validate_non_numeric:'\u30BB\u30EB\u306B\u6570\u5024\u3067\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_dates:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u65E5\u4ED8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_checkbox:'\u30BB\u30EB\u306B\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u3068\u4E92\u63DB\u6027\u306E\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_multiselect_to_select:"\u884C\u306B\u8907\u6570\u306E\u5024\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u5358\u4E00\u9078\u629E\u306B\u5909\u66F4\u3059\u308B\u524D\u306B\u4F59\u5206\u306A\u5024\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",validate_invalid_email:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_url:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044 URL \u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_phone:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u96FB\u8A71\u756A\u53F7\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_type_change_prefix:"\u30BF\u30A4\u30D7\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093\uFF1A",email_invalid:"\u7121\u52B9\u306A\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",op_is:"\u7B49\u3057\u3044",op_is_not:"\u7B49\u3057\u304F\u306A\u3044",op_contains:"\u542B\u3080",op_not_contains:"\u542B\u307E\u306A\u3044",op_starts_with:"\u3067\u59CB\u307E\u308B",op_ends_with:"\u3067\u7D42\u308F\u308B",op_is_empty:"\u7A7A\u3067\u3042\u308B",op_is_not_empty:"\u7A7A\u3067\u306A\u3044",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"\u30C1\u30A7\u30C3\u30AF\u6E08\u307F",op_is_unchecked:"\u672A\u30C1\u30A7\u30C3\u30AF",settings_db_filename_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB\u540D",settings_db_filename_desc:"\u30D5\u30A9\u30EB\u30C0\u30FC\u5185\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u8B58\u5225\u3059\u308B\u7279\u5225\u306A\u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002",settings_row_height_name:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u884C\u306E\u9AD8\u3055",settings_row_height_desc:"\u5404\u30C6\u30FC\u30D6\u30EB\u884C\u306E\u30D4\u30AF\u30BB\u30EB\u9AD8\u3055\u3002",settings_inline_fields_name:"Dataview \u30A4\u30F3\u30E9\u30A4\u30F3\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u8AAD\u307F\u53D6\u308B",settings_inline_fields_desc:"\u30CE\u30FC\u30C8\u672C\u6587\u306E key:: value \u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u89E3\u6790\u3057\u3001\u5217\u306E\u5024\u3068\u3057\u3066\u8868\u793A\u3057\u307E\u3059\uFF08\u8AAD\u307F\u53D6\u308A\u5C02\u7528\uFF09",db_untitled_note:"\u7121\u984C",db_copy_suffix:"(\u30B3\u30D4\u30FC)",db_copy_suffix_n:"(\u30B3\u30D4\u30FC $n)",db_already_exists:'"$folder" \u306B\u306F\u3059\u3067\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u5B58\u5728\u3057\u307E\u3059',db_tip_body:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3067\u3059\u3002\u30C6\u30FC\u30D6\u30EB\u30D3\u30E5\u30FC\u3092\u8868\u793A\u3059\u308B\u306B\u306F\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",formula_err_unclosed_string:"\u4F4D\u7F6E $pos \u3067\u6587\u5B57\u5217\u304C\u9589\u3058\u3089\u308C\u3066\u3044\u307E\u305B\u3093",formula_err_unclosed_bracket:"\u4F4D\u7F6E $pos \u3067\u62EC\u5F27\u304C\u9589\u3058\u3089\u308C\u3066\u3044\u307E\u305B\u3093",formula_err_unexpected_bang:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u6587\u5B57 '!'",formula_err_unexpected_char:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u6587\u5B57 '$char'",formula_err_expected_token:"\u4F4D\u7F6E $pos \u3067 $expected \u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001'$found' \u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F",formula_err_unexpected_token:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u30C8\u30FC\u30AF\u30F3 '$token'",formula_err_circular_ref:'\u5FAA\u74B0\u53C2\u7167\uFF1A"$name" \u306F\u6570\u5F0F\u5217\u3067\u3059',formula_err_unknown_fn:"\u4E0D\u660E\u306A\u95A2\u6570\uFF1A$fn()",formula_err_if_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Aif(\u6761\u4EF6, \u771F\u306E\u5024, [\u507D\u306E\u5024])",formula_err_avg_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Aavg(\u5217) \u2014 \u5217\u53C2\u7167\u304C\u5F15\u6570\u3068\u3057\u3066\u5FC5\u8981",formula_err_count_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Acount(\u5217) \u2014 \u5217\u53C2\u7167\u304C\u5F15\u6570\u3068\u3057\u3066\u5FC5\u8981",formula_err_mid_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Amid(\u30C6\u30AD\u30B9\u30C8, \u958B\u59CB, \u9577\u3055)",formula_err_mod_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Amod(\u6570\u5024, \u9664\u6570)",formula_err_sqrt_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Asqrt(\u6570\u5024)",formula_err_not_implemented:"\u672A\u5B9F\u88C5\u306E\u95A2\u6570\uFF1A$fn()",plugin_display_name:"Notion bases",no_databases_found:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u300C\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u300D\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3057\u3066\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002",cmd_open_database:"\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u958B\u304F",cmd_create_database:"\u73FE\u5728\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210",ctx_create_database:"\u3053\u3053\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210",arr_settings_title:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406",arr_settings_desc:"\u9078\u629E\u3057\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u5024\u306B\u57FA\u3065\u3044\u3066\u3001\u884C\u30D5\u30A1\u30A4\u30EB\u3092\u9806\u756A\u306B\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30B5\u30D6\u30D5\u30A9\u30EB\u30C0\u30FC\u3078\u81EA\u52D5\u7684\u306B\u79FB\u52D5\u3057\u307E\u3059\u3002",arr_settings_enabled_name:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u3092\u6709\u52B9\u306B\u3059\u308B",arr_settings_enabled_desc:"\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u9078\u629E\u3057\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u3044\u305A\u308C\u304B\u304C\u5909\u66F4\u3055\u308C\u308B\u3068\u3059\u3050\u306B\u884C\u304C\u79FB\u52D5\u3055\u308C\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u306F\u30AA\u30D5\u3067\u3059\u3002",arr_settings_no_props:"\u30D7\u30ED\u30D1\u30C6\u30A3\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u4E0B\u306B\u8FFD\u52A0\u3057\u3066\u30D5\u30A9\u30EB\u30C0\u30FC\u968E\u5C64\u3092\u5B9A\u7FA9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",arr_settings_no_candidates:"\u5BFE\u8C61\u3068\u306A\u308B\u5217\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u306F\u30C6\u30AD\u30B9\u30C8\u3001\u9078\u629E\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u65E5\u4ED8\u5217\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u3059\u3002",arr_settings_add_placeholder:"\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u9078\u629E...",arr_settings_add_btn:"\u8FFD\u52A0",arr_settings_preview_btn:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3057\u3066\u65E2\u5B58\u306E\u884C\u306B\u9069\u7528",arr_preview_title:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",arr_preview_empty:"\u79FB\u52D5\u304C\u5FC5\u8981\u306A\u884C\u306F\u3042\u308A\u307E\u305B\u3093\u3002",arr_preview_desc:"$count \u884C\u304C\u79FB\u52D5\u3055\u308C\u307E\u3059\uFF1A",arr_preview_filtered_note:"\u73FE\u5728\u306E\u30D3\u30E5\u30FC\u3067\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u30D5\u30A1\u30A4\u30EB\u306E\u307F\u304C\u5BFE\u8C61\u306B\u306A\u308A\u307E\u3059\u3002",arr_preview_apply:"\u9069\u7528",arr_preview_cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",arr_preview_applied:"$count \u884C\u3092\u79FB\u52D5\u3057\u307E\u3057\u305F\u3002",cmd_quick_add:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u884C\u3092\u3059\u3070\u3084\u304F\u8FFD\u52A0",quick_add_title:"\u30AF\u30A4\u30C3\u30AF\u8FFD\u52A0",quick_add_note_title:"\u30BF\u30A4\u30C8\u30EB",quick_add_note_title_placeholder:"\u30CE\u30FC\u30C8\u306E\u30BF\u30A4\u30C8\u30EB...",quick_add_create:"\u4F5C\u6210",quick_add_create_and_open:"\u4F5C\u6210\u3057\u3066\u958B\u304F",quick_add_no_visible_fields:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u7DE8\u96C6\u53EF\u80FD\u306A\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u3042\u308A\u307E\u305B\u3093",picker_placeholder:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u9078\u629E...",picker_root:"/\uFF08\u30EB\u30FC\u30C8\uFF09",view_fallback_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",saving:"\u4FDD\u5B58\u4E2D",saved:"\u4FDD\u5B58\u6E08\u307F",save_error:"\u4FDD\u5B58\u30A8\u30E9\u30FC",settings_page_size_name:"1\u30DA\u30FC\u30B8\u3042\u305F\u308A\u306E\u884C\u6570",settings_page_size_desc:"1\u30DA\u30FC\u30B8\u306B\u8868\u793A\u3059\u308B\u884C\u6570\u3002\u300C\u3059\u3079\u3066\u300D\u306B\u8A2D\u5B9A\u3059\u308B\u3068\u9023\u7D9A\u30B9\u30AF\u30ED\u30FC\u30EB\u306B\u306A\u308A\u307E\u3059",settings_page_size_all:"\u3059\u3079\u3066\uFF08\u9023\u7D9A\u30B9\u30AF\u30ED\u30FC\u30EB\uFF09",page_of:"{current} / {total} \u30DA\u30FC\u30B8",first_page:"\u6700\u521D\u306E\u30DA\u30FC\u30B8",last_page:"\u6700\u5F8C\u306E\u30DA\u30FC\u30B8",prev_page:"\u524D\u306E\u30DA\u30FC\u30B8",next_page:"\u6B21\u306E\u30DA\u30FC\u30B8",conditional_formatting:"\u6761\u4EF6\u4ED8\u304D\u66F8\u5F0F",no_conditional_formats:"\u30EB\u30FC\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",add_rule:"\u30EB\u30FC\u30EB\u3092\u8FFD\u52A0",select_value:"\u5024\u3092\u9078\u629E",style:"\u30B9\u30BF\u30A4\u30EB",background:"\u80CC\u666F",text_color:"\u30C6\u30AD\u30B9\u30C8\u306E\u8272",save:"\u4FDD\u5B58",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",value:"\u5024",db_settings_open:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u8A2D\u5B9A",db_settings_title:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u8A2D\u5B9A",db_settings_template_name:"\u884C\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",db_settings_template_desc:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u65B0\u3057\u304F\u4F5C\u6210\u3055\u308C\u308B\u3059\u3079\u3066\u306E\u884C\u306E\u672C\u6587\u306B\u3053\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9069\u7528\u3057\u307E\u3059\u3002",db_settings_template_choose:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",db_settings_template_clear:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u524A\u9664",db_settings_template_none:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",db_settings_ask_name:"\u4F5C\u6210\u6642\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u78BA\u8A8D\u3059\u308B",db_settings_ask_desc:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3092\u9069\u7528\u3059\u308B\u4EE3\u308F\u308A\u306B\u3001\u65B0\u3057\u3044\u884C\u3092\u8FFD\u52A0\u3059\u308B\u305F\u3073\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E\u3059\u308B\u3088\u3046\u4FC3\u3057\u307E\u3059\u3002",template_picker_placeholder:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E...",template_picker_none:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306A\u3057\uFF08\u672C\u6587\u3092\u7A7A\u306B\u3059\u308B\uFF09",folder_picker_placeholder:"\u79FB\u52D5\u5148\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u9078\u629E..."},ef=py;var my={en:Sc,"pt-BR":Nc,pt:Nc,es:Qm,fr:Zm,de:Jm,zh:xc,"zh-TW":xc,ja:ef};function u(e){let t=(0,tf.getLanguage)()??"en";return(my[t]??{})[e]??Sc[e]??e}var Mb=require("obsidian");var Hm=Fe(xt(),1),Tb=Fe(Gp(),1);var ku=Fe(xt(),1),xl=(0,ku.createContext)(null);function Vt(){let e=(0,ku.useContext)(xl);if(!e)throw new Error("useApp deve ser usado dentro de AppContext.Provider");return e}var Et=Fe(xt(),1);var li=require("obsidian");var Ih=require("obsidian");var ii=class extends Ih.FuzzySuggestModal{constructor(t,n,o){super(t),this.onChoose=n,this.preferredFolder=o??this.getCoreTemplatesFolder(),this.setPlaceholder(u("template_picker_placeholder"))}getCoreTemplatesFolder(){let n=this.app.internalPlugins?.plugins?.templates?.instance?.options?.folder;return typeof n=="string"&&n?n:null}getItems(){let t={file:null,label:u("template_picker_none")},n=this.app.vault.getMarkdownFiles().filter(i=>this.app.metadataCache.getFileCache(i)?.frontmatter?.["notion-bases"]!==!0),o=this.preferredFolder?n.filter(i=>i.path.startsWith(`${this.preferredFolder}/`)):[],r=o.length>0?n.filter(i=>!o.includes(i)):n,a=[...o.sort((i,l)=>i.path.localeCompare(l.path)),...r.sort((i,l)=>i.path.localeCompare(l.path))];return[t,...a.map(i=>({file:i,label:i.path}))]}getItemText(t){return t.label}onChooseItem(t){this.onChoose(t.file?.path??null)}};var Nu=require("obsidian");var Su=class extends Nu.Modal{constructor(n,o,r,a,i){super(n);this.manager=o;this.dbFile=r;this.config=a;this.restrictToPaths=i}onOpen(){let{contentEl:n}=this;n.empty(),n.createEl("h2",{text:u("arr_preview_title")}),this.restrictToPaths&&n.createEl("p",{text:u("arr_preview_filtered_note"),cls:"nb-arr-preview-filtered-note"});let o=this.manager.previewArrangement(this.dbFile,this.config,this.restrictToPaths).filter(l=>l.to!==null);if(o.length===0)n.createEl("p",{text:u("arr_preview_empty")});else{n.createEl("p",{text:u("arr_preview_desc").replace("$count",String(o.length))});let l=n.createDiv({cls:"nb-arr-preview-list"});for(let s of o){let d=l.createDiv({cls:"nb-arr-preview-row"});d.createSpan({cls:"nb-arr-preview-from",text:s.from}),d.createSpan({cls:"nb-arr-preview-arrow",text:"\u2192"}),d.createSpan({cls:"nb-arr-preview-to",text:s.to??""})}}let r=n.createDiv({cls:"nb-arr-preview-actions"}),a=r.createEl("button",{text:u("arr_preview_cancel")});a.onclick=()=>this.close();let i=r.createEl("button",{text:u("arr_preview_apply"),cls:"mod-cta"});i.disabled=o.length===0,i.onclick=async()=>{i.disabled=!0,a.disabled=!0;let l=await this.manager.applyArrangementToAll(this.dbFile,this.config,this.restrictToPaths);new Nu.Notice(u("arr_preview_applied").replace("$count",String(l.length))),this.close()}}onClose(){this.contentEl.empty()}};var Ah=["text","select","status","date"],xu=class extends li.Modal{constructor(t,n,o,r,a,i){super(t),this.config=n,this.onSave=o,this.manager=r??null,this.dbFile=a??null,this.restrictToPaths=i}onOpen(){let{contentEl:t}=this;t.empty(),t.createEl("h2",{text:u("db_settings_title")});let n=new li.Setting(t).setName(u("db_settings_template_name")).setDesc(u("db_settings_template_desc")),o=t.createDiv({cls:"nb-db-settings-template-path"}),r=()=>{o.empty(),o.setText(this.config.templatePath??u("db_settings_template_none"))};r(),n.addButton(a=>a.setButtonText(u("db_settings_template_choose")).onClick(()=>{new ii(this.app,i=>{this.config={...this.config,templatePath:i??void 0},r(),this.onSave({templatePath:this.config.templatePath})}).open()})),this.config.templatePath&&n.addExtraButton(a=>a.setIcon("x").setTooltip(u("db_settings_template_clear")).onClick(async()=>{this.config={...this.config,templatePath:void 0},r(),await this.onSave({templatePath:void 0}),this.onOpen()})),new li.Setting(t).setName(u("db_settings_ask_name")).setDesc(u("db_settings_ask_desc")).addToggle(a=>a.setValue(!!this.config.askTemplateOnCreate).onChange(async i=>{this.config={...this.config,askTemplateOnCreate:i},await this.onSave({askTemplateOnCreate:i})})),this.renderArrangementSection(t)}renderArrangementSection(t){let n=t.createDiv({cls:"nb-db-settings-arrangement"});n.createEl("h3",{text:u("arr_settings_title")}),n.createEl("p",{text:u("arr_settings_desc"),cls:"nb-db-settings-arrangement-desc"});let o=this.config.folderArrangement?{enabled:!!this.config.folderArrangement.enabled,propertyIds:[...this.config.folderArrangement.propertyIds]}:{enabled:!1,propertyIds:[]},r=async()=>{this.config={...this.config,folderArrangement:o},await this.onSave({folderArrangement:o})};new li.Setting(n).setName(u("arr_settings_enabled_name")).setDesc(u("arr_settings_enabled_desc")).addToggle(p=>p.setValue(o.enabled).onChange(async g=>{o.enabled=g,await r()}));let a=this.config.schema.filter(p=>Ah.includes(p.type)&&!o.propertyIds.includes(p.id)),i=n.createDiv({cls:"nb-arr-property-list"}),l=()=>{if(i.empty(),o.propertyIds.length===0){i.createEl("p",{text:u("arr_settings_no_props"),cls:"nb-arr-empty"});return}o.propertyIds.forEach((p,g)=>{let m=this.config.schema.find(f=>f.id===p),c=i.createDiv({cls:"nb-arr-property-row"});c.createSpan({cls:"nb-arr-property-index",text:String(g+1)}),c.createSpan({cls:"nb-arr-property-name",text:m?.name??p});let v=c.createEl("button",{text:"\u2191",cls:"nb-arr-btn"});v.disabled=g===0,v.onclick=async()=>{[o.propertyIds[g-1],o.propertyIds[g]]=[o.propertyIds[g],o.propertyIds[g-1]],await r(),l()};let h=c.createEl("button",{text:"\u2193",cls:"nb-arr-btn"});h.disabled=g===o.propertyIds.length-1,h.onclick=async()=>{[o.propertyIds[g+1],o.propertyIds[g]]=[o.propertyIds[g],o.propertyIds[g+1]],await r(),l()};let b=c.createEl("button",{text:"\xD7",cls:"nb-arr-btn nb-arr-btn-remove"});b.onclick=async()=>{o.propertyIds.splice(g,1),await r(),l(),d()}})},s=n.createDiv({cls:"nb-arr-add-row"}),d=()=>{s.empty();let p=this.config.schema.filter(c=>Ah.includes(c.type)&&!o.propertyIds.includes(c.id));if(p.length===0&&a.length===0){s.createEl("p",{text:u("arr_settings_no_candidates"),cls:"nb-arr-empty"});return}if(p.length===0)return;let g=s.createEl("select",{cls:"nb-arr-select"});g.createEl("option",{text:u("arr_settings_add_placeholder"),value:""});for(let c of p)g.createEl("option",{text:c.name,value:c.id});let m=s.createEl("button",{text:u("arr_settings_add_btn"),cls:"mod-cta nb-arr-add-btn"});m.onclick=async()=>{let c=g.value;c&&(o.propertyIds.push(c),await r(),l(),d())}};if(l(),d(),this.manager&&this.dbFile){let p=n.createEl("button",{text:u("arr_settings_preview_btn"),cls:"nb-arr-preview-btn"});p.onclick=()=>{!this.manager||!this.dbFile||new Su(this.app,this.manager,this.dbFile,{...this.config,folderArrangement:o},this.restrictToPaths).open()}}}onClose(){this.contentEl.empty()}};var to={id:"default",type:"table",filters:[],sorts:[],hiddenColumns:[],columnWidths:{},pinnedColumnId:null},Er={schema:[],views:[to]};function sa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ht(e){return e==null?"":typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"?e.toString():e instanceof Date?e.toISOString():JSON.stringify(e)??""}var MC=["contains","not_contains","starts_with","ends_with","is","is_not","is_empty","is_not_empty"],TC=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],PC=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],qp=["is","is_not","contains","not_contains","is_empty","is_not_empty"],LC=["is_checked","is_unchecked","is_empty","is_not_empty"];function si(e){switch(e){case"number":return TC;case"date":return PC;case"select":return qp;case"multiselect":return qp;case"status":return qp;case"checkbox":return LC;default:return MC}}function Fn(e){switch(e){case"number":case"date":return"is";case"checkbox":return"is_checked";case"select":case"multiselect":case"status":return"is";default:return"contains"}}function IC(){return{is:u("op_is"),is_not:u("op_is_not"),contains:u("op_contains"),not_contains:u("op_not_contains"),starts_with:u("op_starts_with"),ends_with:u("op_ends_with"),gt:u("op_gt"),gte:u("op_gte"),lt:u("op_lt"),lte:u("op_lte"),is_checked:u("op_is_checked"),is_unchecked:u("op_is_unchecked"),is_empty:u("op_is_empty"),is_not_empty:u("op_is_not_empty")}}var Dr=new Proxy({},{get:(e,t)=>IC()[t]??t}),Fr=new Set(["is_empty","is_not_empty","is_checked","is_unchecked"]),Oh="|||";function ui(e){return(e.columnType==="select"||e.columnType==="multiselect"||e.columnType==="status")&&(e.operator==="is"||e.operator==="is_not")}function ua(e){return e.split(Oh).filter(t=>t!=="")}function Ru(e,t){let n=ua(e),o=n.indexOf(t);return o>=0?n.splice(o,1):n.push(t),n.join(Oh)}function Xe(e){return{title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197",image:"\u{1F5BC}",audio:"\u{1F3B5}",video:"\u{1F3AC}"}[e]??"\xB7"}function Kp(e,t){if(!Fr.has(t.operator)&&t.value==="")return!0;let o=t.columnId==="_title"?e._title:e[t.columnId];if(t.operator==="is_empty")return o==null||String(o??"").trim()==="";if(t.operator==="is_not_empty")return o!=null&&String(o??"").trim()!=="";if(t.operator==="is_checked")return o===!0||o==="true";if(t.operator==="is_unchecked")return o!==!0&&o!=="true";if(t.columnType==="number"){let i=parseFloat(String(o??"")),l=parseFloat(t.value);if(isNaN(i)||isNaN(l))return!1;switch(t.operator){case"is":return i===l;case"is_not":return i!==l;case"gt":return i>l;case"gte":return i>=l;case"lt":return il;case"gte":return i>=l;case"lt":return is.toLowerCase());if(i.length===0)return!0;let l=Array.isArray(o)?o.map(s=>s.toLowerCase()):[String(o??"").toLowerCase()];return t.operator==="is"?l.some(s=>i.includes(s)):l.every(s=>!i.includes(s))}let r=Array.isArray(o)?o.join(", ").toLowerCase():String(o??"").toLowerCase(),a=t.value.toLowerCase();switch(t.operator){case"is":return r===a;case"is_not":return r!==a;case"contains":return r.includes(a);case"not_contains":return!r.includes(a);case"starts_with":return r.startsWith(a);case"ends_with":return r.endsWith(a);default:return!0}}function Vn(e,t){if(t.length===0)return e;let n=[],o=[];for(let r of t)r.conjunction==="or"&&o.length>0&&(n.push(o),o=[]),o.push(r);return o.length>0&&n.push(o),e.filter(r=>n.some(a=>a.every(i=>Kp(r,i))))}function $h(e,t){if(!t||t.length===0)return e;let n=new Map(t.map((o,r)=>[o,r]));return[...e].sort((o,r)=>{let a=n.get(o._file.path)??1/0,i=n.get(r._file.path)??1/0;return a-i})}function no(e,t){return t.length===0?e:[...e].sort((n,o)=>{for(let r of t){let a=r.columnId==="_title"?n._title:n[r.columnId],i=r.columnId==="_title"?o._title:o[r.columnId],l=0;if(a==null)l=-1;else if(i==null)l=1;else{let s=parseFloat(ht(a)),d=parseFloat(ht(i));!isNaN(s)&&!isNaN(d)?l=s-d:l=String(a??"").toLowerCase().localeCompare(String(i??"").toLowerCase())}if(l!==0)return r.direction==="asc"?l:-l}return 0})}function zh(e,t,n,o){for(let r of n){if(r.columnId!==t)continue;let a=o.find(s=>s.id===r.columnId),i=a?.type??"text",l={id:r.id,columnId:r.columnId,columnName:a?.name??r.columnId,columnType:i,icon:"",operator:r.operator,value:r.value,conjunction:"and"};if(Kp(e,l)){let s={};return r.bgColor&&(s.backgroundColor=r.bgColor),r.textColor&&(s.color=r.textColor),s}}}function ci(e,t,n){for(let o of t){let r=n.find(l=>l.id===o.columnId),a=r?.type??"text",i={id:o.id,columnId:o.columnId,columnName:r?.name??o.columnId,columnType:a,icon:"",operator:o.operator,value:o.value,conjunction:"and"};if(Kp(e,i)){let l={};return o.bgColor&&(l.borderLeft=`4px solid ${o.bgColor}`),o.textColor&&(l.color=o.textColor),l}}}var Bn=Fe(xt(),1);var _t=class extends Error{constructor(t){super(t),this.name="FormulaError"}};function Yp(e){let t=[],n=0;for(;n=e.length)throw new _t(u("formula_err_unclosed_string").replace("$pos",String(o)));n++,t.push({type:"STR",val:e.slice(o+1,n-1),pos:o});continue}if(e[n]==="["){n++;let r=n;for(;n=e.length)throw new _t(u("formula_err_unclosed_bracket").replace("$pos",String(o)));let a=e.slice(r,n++);t.push({type:"BRACKET_IDENT",val:a,pos:o});continue}if(/[a-zA-Z_]/.test(e[n])){for(;n"?(t.push({type:"NEQ",val:"<>",pos:n}),n+=2):e[n+1]==="="?(t.push({type:"LTE",val:"<=",pos:n}),n+=2):t.push({type:"LT",val:"<",pos:n++});break;case">":e[n+1]==="="?(t.push({type:"GTE",val:">=",pos:n}),n+=2):t.push({type:"GT",val:">",pos:n++});break;default:throw new _t(u("formula_err_unexpected_char").replace("$char",e[n]).replace("$pos",String(n)))}}return t.push({type:"EOF",val:"",pos:n}),t}var Eu=class{constructor(t){this.toks=t;this.p=0}cur(){return this.toks[this.p]}eat(){return this.toks[this.p++]}expect(t){let n=this.eat();if(n.type!==t)throw new _t(u("formula_err_expected_token").replace("$expected",String(t)).replace("$found",n.val).replace("$pos",String(n.pos)));return n}is(t){return this.cur().type===t}parse(){let t=this.expr();if(!this.is("EOF"))throw new _t(u("formula_err_unexpected_token").replace("$token",this.cur().val).replace("$pos",String(this.cur().pos)));return t}expr(){return this.cmp()}cmp(){let t=this.add();for(;["EQ","NEQ","GT","LT","GTE","LTE"].includes(this.cur().type);)t={k:"bin",op:this.eat().val,l:t,r:this.add()};return t}add(){let t=this.mul();for(;this.is("PLUS")||this.is("MINUS")||this.is("AMP");)t={k:"bin",op:this.eat().val,l:t,r:this.mul()};return t}mul(){let t=this.unary();for(;this.is("STAR")||this.is("SLASH");)t={k:"bin",op:this.eat().val,l:t,r:this.unary()};return t}unary(){return this.is("MINUS")?(this.eat(),{k:"neg",x:this.unary()}):this.primary()}primary(){let t=this.cur();if(t.type==="NUM")return this.eat(),{k:"num",v:parseFloat(t.val)};if(t.type==="STR")return this.eat(),{k:"str",v:t.val};if(t.type==="BOOL")return this.eat(),{k:"bool",v:t.val==="TRUE"};if(t.type==="BRACKET_IDENT")return this.eat(),{k:"col",name:t.val};if(t.type==="IDENT"){if(this.eat(),this.is("LPAREN")){this.eat();let n=[];if(!this.is("RPAREN"))for(n.push(this.expr());this.is("COMMA");)this.eat(),n.push(this.expr());return this.expect("RPAREN"),{k:"call",fn:t.val.toUpperCase(),args:n}}return{k:"col",name:t.val}}if(t.type==="LPAREN"){this.eat();let n=this.expr();return this.expect("RPAREN"),n}throw new _t(u("formula_err_unexpected_token").replace("$token",t.val).replace("$pos",String(t.pos)))}};function st(e){if(typeof e=="number")return isNaN(e)?0:e;if(typeof e=="string"){let t=parseFloat(e);return isNaN(t)?0:t}return typeof e=="boolean"&&e?1:0}function Mn(e){return e==null?"":Array.isArray(e)?e.map(Mn).join(", "):ht(e)}function Rl(e){return e!=null&&e!==!1&&e!==""&&e!==0}function Vh(e,t){let n=typeof e=="string"?e.toLowerCase():e,o=typeof t=="string"?t.toLowerCase():t;return n==o}function di(e,t){if(e==="_title")return"_title";let n=t.schema.find(r=>r.id===e&&r.type!=="formula");if(n)return n.id;let o=t.schema.find(r=>r.name.toLowerCase()===e.toLowerCase()&&r.type!=="formula");return o?o.id:null}function pi(e,t){return e==="_title"?t._title:t[e]}function AC(e,t){let n=di(e,t);if(n===null)throw t.schema.some(r=>(r.id===e||r.name.toLowerCase()===e.toLowerCase())&&r.type==="formula")?new _t(u("formula_err_circular_ref").replace("$name",e)):new _t(`Coluna desconhecida: "${e}"`);return pi(n,t.row)}var OC=new Set(["IF","IFS","AND","OR","NOT","SUM","AVG","AVERAGE","COUNT","COUNTA","MIN","MAX","CONCAT","LEN","UPPER","LOWER","TRIM","LEFT","RIGHT","MID","SUBSTITUTE","ROUND","FLOOR","CEIL","ABS","MOD","POWER","SQRT","ISNULL","ISEMPTY","COALESCE","TEXT","VALUE"]);function Je(e,t){switch(e.k){case"num":return e.v;case"str":return e.v;case"bool":return e.v;case"col":return AC(e.name,t);case"neg":return-st(Je(e.x,t));case"bin":{let{op:n,l:o,r}=e,a=Je(o,t),i=Je(r,t);switch(n){case"+":return st(a)+st(i);case"-":return st(a)-st(i);case"*":return st(a)*st(i);case"/":{let l=st(i);return l===0?null:st(a)/l}case"&":return Mn(a)+Mn(i);case"=":case"==":return Vh(a,i);case"<>":case"!=":return!Vh(a,i);case">":return st(a)>st(i);case"<":return st(a)=":return st(a)>=st(i);case"<=":return st(a)<=st(i);default:throw new _t(`Operador desconhecido: ${n}`)}}case"call":{let{fn:n,args:o}=e;if(!OC.has(n))throw new _t(u("formula_err_unknown_fn").replace("$fn",n));if(n==="IF"){if(o.length<2||o.length>3)throw new _t(u("formula_err_if_args"));return Rl(Je(o[0],t))?Je(o[1],t):o[2]?Je(o[2],t):null}if(n==="IFS"){if(o.length<2||o.length%2!==0)throw new _t("IFS(cond1, val1, cond2, val2, ...)");for(let r=0;rRl(Je(r,t)))}if(n==="OR"){if(o.length===0)throw new _t("OR requer ao menos 1 argumento");return o.some(r=>Rl(Je(r,t)))}if(n==="NOT"){if(o.length!==1)throw new _t("NOT(valor)");return!Rl(Je(o[0],t))}if(n==="SUM"){if(o.length===0)throw new _t("SUM requer ao menos 1 argumento");if(o.length===1&&o[0].k==="col"){let r=di(o[0].name,t);if(r)return t.allRows.reduce((a,i)=>a+st(pi(r,i)),0)}return o.reduce((r,a)=>r+st(Je(a,t)),0)}if(n==="AVG"||n==="AVERAGE"){if(o.length!==1||o[0].k!=="col")throw new _t(u("formula_err_avg_args"));let r=di(o[0].name,t);if(!r)throw new _t("Coluna desconhecida em AVG");let a=t.allRows.map(i=>st(pi(r,i)));return a.length?a.reduce((i,l)=>i+l,0)/a.length:0}if(n==="COUNT"||n==="COUNTA"){if(o.length!==1||o[0].k!=="col")throw new _t(u("formula_err_count_args"));let r=di(o[0].name,t);if(!r)throw new _t("Coluna desconhecida em COUNT");return t.allRows.filter(a=>{let i=pi(r,a);return i!=null&&i!==""}).length}if(n==="MIN"){if(o.length===1&&o[0].k==="col"){let r=di(o[0].name,t);if(r)return Math.min(...t.allRows.map(a=>st(pi(r,a))))}return Math.min(...o.map(r=>st(Je(r,t))))}if(n==="MAX"){if(o.length===1&&o[0].k==="col"){let r=di(o[0].name,t);if(r)return Math.max(...t.allRows.map(a=>st(pi(r,a))))}return Math.max(...o.map(r=>st(Je(r,t))))}if(n==="CONCAT")return o.map(r=>Mn(Je(r,t))).join("");if(n==="LEN"){if(o.length!==1)throw new _t("LEN(texto)");return Mn(Je(o[0],t)).length}if(n==="UPPER"){if(o.length!==1)throw new _t("UPPER(texto)");return Mn(Je(o[0],t)).toUpperCase()}if(n==="LOWER"){if(o.length!==1)throw new _t("LOWER(texto)");return Mn(Je(o[0],t)).toLowerCase()}if(n==="TRIM"){if(o.length!==1)throw new _t("TRIM(texto)");return Mn(Je(o[0],t)).trim()}if(n==="LEFT"){if(o.length!==2)throw new _t("LEFT(texto, n)");return Mn(Je(o[0],t)).slice(0,st(Je(o[1],t)))}if(n==="RIGHT"){if(o.length!==2)throw new _t("RIGHT(texto, n)");let r=Mn(Je(o[0],t)),a=st(Je(o[1],t));return r.slice(Math.max(0,r.length-a))}if(n==="MID"){if(o.length!==3)throw new _t(u("formula_err_mid_args"));let r=Mn(Je(o[0],t)),a=st(Je(o[1],t))-1;return r.slice(a,a+st(Je(o[2],t)))}if(n==="SUBSTITUTE"){if(o.length<3)throw new _t("SUBSTITUTE(texto, de, para)");return Mn(Je(o[0],t)).split(Mn(Je(o[1],t))).join(Mn(Je(o[2],t)))}if(n==="ROUND"){let r=st(Je(o[0],t)),a=o[1]?st(Je(o[1],t)):0;return Math.round(r*10**a)/10**a}if(n==="FLOOR")return Math.floor(st(Je(o[0],t)));if(n==="CEIL")return Math.ceil(st(Je(o[0],t)));if(n==="ABS")return Math.abs(st(Je(o[0],t)));if(n==="MOD"){if(o.length!==2)throw new _t(u("formula_err_mod_args"));return st(Je(o[0],t))%st(Je(o[1],t))}if(n==="POWER"){if(o.length!==2)throw new _t("POWER(base, expoente)");return Math.pow(st(Je(o[0],t)),st(Je(o[1],t)))}if(n==="SQRT"){if(o.length!==1)throw new _t(u("formula_err_sqrt_args"));return Math.sqrt(st(Je(o[0],t)))}if(n==="ISNULL"||n==="ISEMPTY"){if(o.length!==1)throw new _t(`${n}(valor)`);let r=Je(o[0],t);return r==null||r===""}if(n==="COALESCE"){for(let r of o){let a=Je(r,t);if(a!=null&&a!=="")return a}return null}if(n==="TEXT")return o.length===1?Mn(Je(o[0],t)):null;if(n==="VALUE")return o.length===1?st(Je(o[0],t)):null;throw new _t(u("formula_err_not_implemented").replace("$fn",n))}}}function Bh(e){if(!e.trim())return null;try{Yp(e);let t=Yp(e);return new Eu(t).parse(),null}catch(t){return t instanceof _t?t.message:String(t)}}function $C(e,t,n,o){if(!e.trim())return null;try{let r=new Eu(Yp(e)).parse(),a=new Set(o.filter(i=>i.type==="formula").map(i=>i.id));return Je(r,{row:t,allRows:n,schema:o,formulaColIds:a})}catch{return"#ERRO"}}function Du(e,t){let n=t.filter(o=>o.type==="formula"&&o.formula);return n.length===0?e:e.map(o=>{let r={...o};for(let a of n)r[a.id]=$C(a.formula,o,e,t);return r})}var Xp=200,zC=100,VC=50;async function BC(e,t,n,o,r){if(e.length<=zC)return Promise.all(e.map(i=>n.getNoteData(i,t)));let a=[];for(let i=0;in.getNoteData(d,t)));a.push(...s),i+Xpwindow.setTimeout(d,0))}return o.current===r?a:null}function Qp(e,t){return!e||e.length===0?[]:e.flatMap(n=>{if(n.columnId==="_title")return[{id:n.id??crypto.randomUUID(),columnId:"_title",columnName:u("name_column"),columnType:"title",icon:"\u{1F4C4}",operator:n.operator,value:n.value,conjunction:n.conjunction??"and"}];let o=t.find(r=>r.id===n.columnId);return o?[{id:n.id??crypto.randomUUID(),columnId:o.id,columnName:o.name,columnType:o.type,icon:Xe(o.type),operator:n.operator,value:n.value,conjunction:n.conjunction??"and"}]:[]})}function jn(e){let{app:t,dbFile:n,manager:o,includeSubfolders:r,externalView:a,onLoaded:i}=e,[l,s]=(0,Bn.useState)([]),[d,p]=(0,Bn.useState)(Er),[g,m]=(0,Bn.useState)(!0),[c,v]=(0,Bn.useState)([]),h=(0,Bn.useRef)(0),b=(0,Bn.useRef)(!1),f=(0,Bn.useCallback)(async()=>{if(!n){m(!1);return}m(!0);let _=++h.current,y=o.readConfig(n),k=o.getNotesInDatabase(n,r);y.schema.length===0&&k.length>0&&(y.schema=await o.inferSchema(k),await o.writeConfig(n,y));let F=await BC(k,y.schema,o,h,_);if(!F)return;let T=o.resolveRollupsForRows(o.resolveLookupsForRows(Du(F,y.schema),y.schema),y.schema);if(h.current===_){if(!b.current){b.current=!0;let V=a.activePills??[];v(Qp(V,y.schema))}p({schema:y.schema,views:y.views}),s(T),i?.(y,T),m(!1)}},[n,o,r,t,a,i]);return(0,Bn.useEffect)(()=>{b.current=!1},[n]),(0,Bn.useEffect)(()=>{f()},[f]),(0,Bn.useEffect)(()=>{let _=null,y=()=>{_&&window.clearTimeout(_),_=window.setTimeout(()=>{f()},VC)};return t.vault.on("create",y),t.vault.on("delete",y),t.vault.on("rename",y),t.metadataCache.on("changed",y),()=>{_&&window.clearTimeout(_),t.vault.off("create",y),t.vault.off("delete",y),t.vault.off("rename",y),t.metadataCache.off("changed",y)}},[t,f]),{rows:l,config:d,loading:g,activeFilters:c,setActiveFilters:v,reload:f}}var Fl=Fe(xt(),1);function Mr(e,t){return typeof e=="function"?e(t):e}function oo(e,t){return n=>{t.setState(o=>({...o,[e]:Mr(n,o[e])}))}}function Pu(e){return e instanceof Function}function jC(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function HC(e,t){let n=[],o=r=>{r.forEach(a=>{n.push(a);let i=t(a);i!=null&&i.length&&o(i)})};return o(e),n}function qe(e,t,n){let o=[],r;return a=>{let i;n.key&&n.debug&&(i=Date.now());let l=e(a);if(!(l.length!==o.length||l.some((p,g)=>o[g]!==p)))return r;o=l;let d;if(n.key&&n.debug&&(d=Date.now()),r=t(...l),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){let p=Math.round((Date.now()-i)*100)/100,g=Math.round((Date.now()-d)*100)/100,m=g/16,c=(v,h)=>{for(v=String(v);v.length<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=i.createElement(n,{is:o.is}):(e=i.createElement(n),n==="select"&&(i=e,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):e=i.createElementNS(e,n),e[Mo]=t,e[vl]=o,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ed(n,o),n){case"dialog":Lt("cancel",e),Lt("close",e),r=o;break;case"iframe":case"object":case"embed":Lt("load",e),r=o;break;case"video":case"audio":for(r=0;rli&&(t.flags|=128,o=!0,Gi(a,!1),t.lanes=4194304)}else{if(!o)if(e=au(i),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ot)return hn(t),null}else 2*Ut()-a.renderingStartTime>li&&n!==1073741824&&(t.flags|=128,o=!0,Gi(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,n=zt.current,Tt(zt,o?n&1|2:n&1),t):(hn(t),null);case 22:case 23:return Gp(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Wn&1073741824)!==0&&(hn(t),t.subtreeFlags&6&&(t.flags|=8192)):hn(t),null;case 24:return null;case 25:return null}throw Error(pe(156,t.tag))}function wC(e,t){switch(xp(t),t.tag){case 1:return An(t.type)&&Zs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ai(),At(Ln),At(bn),Ap(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Lp(t),null;case 13:if(At(zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pe(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(zt),null;case 4:return ai(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return Gp(),null;case 24:return null;default:return null}}var Ms=!1,vn=!1,CC=typeof WeakSet=="function"?WeakSet:Set,Le=null;function qa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){jt(e,t,o)}else n.current=null}function tp(e,t,n){try{n()}catch(o){jt(e,t,o)}}var Lg=!1;function kC(e,t){if($d=Ys,e=D_(),Sp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,s=-1,d=0,p=0,g=e,m=null;t:for(;;){for(var c;g!==n||r!==0&&g.nodeType!==3||(l=i+r),g!==a||o!==0&&g.nodeType!==3||(s=i+o),g.nodeType===3&&(i+=g.nodeValue.length),(c=g.firstChild)!==null;)m=g,g=c;for(;;){if(g===e)break t;if(m===n&&++d===r&&(l=i),m===a&&++p===o&&(s=i),(c=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=c}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},Ys=!1,Le=t;Le!==null;)if(t=Le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Le=e;else for(;Le!==null;){t=Le;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,b=h.memoizedState,f=t.stateNode,_=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:vo(t.type,v),b);f.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pe(163))}}catch(S){jt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Le=e;break}Le=t.return}return h=Lg,Lg=!1,h}function al(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&tp(t,n,a)}r=r.next}while(r!==o)}}function wu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function np(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mo],delete t[vl],delete t[Hd],delete t[aC],delete t[iC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xh(e){return e.tag===5||e.tag===3||e.tag===4}function Ag(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function op(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qs));else if(o!==4&&(e=e.child,e!==null))for(op(e,t,n),e=e.sibling;e!==null;)op(e,t,n),e=e.sibling}function rp(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(rp(e,t,n),e=e.sibling;e!==null;)rp(e,t,n),e=e.sibling}var un=null,bo=!1;function ir(e,t,n){for(n=n.child;n!==null;)Rh(e,t,n),n=n.sibling}function Rh(e,t,n){if(To&&typeof To.onCommitFiberUnmount=="function")try{To.onCommitFiberUnmount(mu,n)}catch{}switch(n.tag){case 5:vn||qa(n,t);case 6:var o=un,r=bo;un=null,ir(e,t,n),un=o,bo=r,un!==null&&(bo?(e=un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):un.removeChild(n.stateNode));break;case 18:un!==null&&(bo?(e=un,n=n.stateNode,e.nodeType===8?ld(e.parentNode,n):e.nodeType===1&&ld(e,n),ml(e)):ld(un,n.stateNode));break;case 4:o=un,r=bo,un=n.stateNode.containerInfo,bo=!0,ir(e,t,n),un=o,bo=r;break;case 0:case 11:case 14:case 15:if(!vn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var a=r,i=a.destroy;a=a.tag,i!==void 0&&((a&2)!==0||(a&4)!==0)&&tp(n,t,i),r=r.next}while(r!==o)}ir(e,t,n);break;case 1:if(!vn&&(qa(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(l){jt(n,t,l)}ir(e,t,n);break;case 21:ir(e,t,n);break;case 22:n.mode&1?(vn=(o=vn)||n.memoizedState!==null,ir(e,t,n),vn=o):ir(e,t,n);break;default:ir(e,t,n)}}function Ig(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new CC),t.forEach(function(o){var r=TC.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function ho(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=i),o&=~a}if(o=r,o=Ut()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*NC(o/1960))-o,10e?16:e,pr===null)var o=!1;else{if(e=pr,pr=null,cu=0,(ht&6)!==0)throw Error(pe(331));var r=ht;for(ht|=4,Le=e.current;Le!==null;){var a=Le,i=a.child;if((Le.flags&16)!==0){var l=a.deletions;if(l!==null){for(var s=0;sUt()-Up?ta(e,0):jp|=n),In(e,t)}function Ah(e,t){t===0&&((e.mode&1)===0?t=1:(t=vs,vs<<=1,(vs&130023424)===0&&(vs=4194304)));var n=En();e=qo(e,t),e!==null&&(Nl(e,t,n),In(e,n))}function MC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ah(e,n)}function TC(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(pe(314))}o!==null&&o.delete(t),Ah(e,n)}var Ih;Ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ln.current)Pn=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Pn=!1,bC(e,t,n);Pn=(e.flags&131072)!==0}else Pn=!1,Ot&&(t.flags&1048576)!==0&&V_(t,tu,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;zs(e,t),e=t.pendingProps;var r=ni(t,bn.current);Ja(t,n),r=Op(null,t,o,e,r,n);var a=$p();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,An(o)?(a=!0,Js(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Tp(t),r.updater=yu,t.stateNode=r,r._reactInternals=t,Yd(t,o,e,n),t=Qd(null,t,o,!0,a,n)):(t.tag=0,Ot&&a&&Np(t),Rn(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(zs(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=LC(o),e=vo(o,e),r){case 0:t=Xd(null,t,o,e,n);break e;case 1:t=Mg(null,t,o,e,n);break e;case 11:t=Dg(null,t,o,e,n);break e;case 14:t=Fg(null,t,o,vo(o.type,e),n);break e}throw Error(pe(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vo(o,r),Xd(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vo(o,r),Mg(e,t,o,r,n);case 3:e:{if(bh(t),e===null)throw Error(pe(387));o=t.pendingProps,a=t.memoizedState,r=a.element,G_(e,t),ru(t,o,null,n);var i=t.memoizedState;if(o=i.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=ii(Error(pe(423)),t),t=Tg(e,t,o,n,r);break e}else if(o!==r){r=ii(Error(pe(424)),t),t=Tg(e,t,o,n,r);break e}else for(Gn=_r(t.stateNode.containerInfo.firstChild),qn=t,Ot=!0,yo=null,n=U_(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oi(),o===r){t=Yo(e,t,n);break e}Rn(e,t,o,n)}t=t.child}return t;case 5:return q_(t),e===null&&Wd(t),o=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,i=r.children,Vd(o,r)?i=null:a!==null&&Vd(o,a)&&(t.flags|=32),vh(e,t),Rn(e,t,i,n),t.child;case 6:return e===null&&Wd(t),null;case 13:return yh(e,t,n);case 4:return Pp(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ri(t,null,o,n):Rn(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vo(o,r),Dg(e,t,o,r,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value,Tt(nu,o._currentValue),o._currentValue=i,a!==null)if(ko(a.value,i)){if(a.children===r.children&&!Ln.current){t=Yo(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(a.tag===1){s=Uo(-1,n&-n),s.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?s.next=s:(s.next=p.next,p.next=s),d.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Gd(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(pe(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Gd(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Rn(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ja(t,n),r=ao(r),o=o(r),t.flags|=1,Rn(e,t,o,n),t.child;case 14:return o=t.type,r=vo(o,t.pendingProps),r=vo(o.type,r),Fg(e,t,o,r,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vo(o,r),zs(e,t),t.tag=1,An(o)?(e=!0,Js(t)):e=!1,Ja(t,n),mh(t,o,r),Yd(t,o,r,n),Qd(null,t,o,!0,e,n);case 19:return wh(e,t,n);case 22:return hh(e,t,n)}throw Error(pe(156,t.tag))};function Oh(e,t){return c_(e,t)}function PC(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oo(e,t,n,o){return new PC(e,t,n,o)}function Yp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LC(e){if(typeof e=="function")return Yp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mp)return 11;if(e===fp)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=oo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hs(e,t,n,o,r,a){var i=2;if(o=e,typeof e=="function")Yp(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $a:return na(n.children,r,a,t);case pp:i=8,r|=8;break;case vd:return e=oo(12,n,t,r|2),e.elementType=vd,e.lanes=a,e;case bd:return e=oo(13,n,t,r),e.elementType=bd,e.lanes=a,e;case yd:return e=oo(19,n,t,r),e.elementType=yd,e.lanes=a,e;case qg:return ku(n,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wg:i=10;break e;case Gg:i=9;break e;case mp:i=11;break e;case fp:i=14;break e;case lr:i=16,o=null;break e}throw Error(pe(130,e==null?e:typeof e,""))}return t=oo(i,n,t,r),t.elementType=e,t.type=o,t.lanes=a,t}function na(e,t,n,o){return e=oo(7,e,o,t),e.lanes=n,e}function ku(e,t,n,o){return e=oo(22,e,o,t),e.elementType=qg,e.lanes=n,e.stateNode={isHidden:!1},e}function gd(e,t,n){return e=oo(6,e,null,t),e.lanes=n,e}function _d(e,t,n){return t=oo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AC(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jc(0),this.expirationTimes=Jc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jc(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Kp(e,t,n,o,r,a,i,l,s){return e=new AC(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=oo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tp(a),e}function IC(e,t,n){var o=3{"use strict";function Hh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hh)}catch(e){console.error(e)}}Hh(),jh.exports=Bh()});var em=zo(Jp=>{"use strict";var Uh=lo();Jp.createRoot=Uh.createRoot,Jp.hydrateRoot=Uh.hydrateRoot;var hx});var ub=zo(nc=>{"use strict";var gS=wt(),_S=Symbol.for("react.element"),hS=Symbol.for("react.fragment"),vS=Object.prototype.hasOwnProperty,bS=gS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yS={key:!0,ref:!0,__self:!0,__source:!0};function sb(e,t,n){var o,r={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)vS.call(t,o)&&!yS.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:_S,type:e,key:a,ref:i,props:r,_owner:bS.current}}nc.Fragment=hS;nc.jsx=sb;nc.jsxs=sb});var vt=zo((k1,cb)=>{"use strict";cb.exports=ub()});var YN={};fy(YN,{default:()=>_c});module.exports=gy(YN);var Io=require("obsidian");var pf=require("obsidian");var _y={view_table:"Table",view_list:"List",view_board:"Board",view_gallery:"Gallery",view_calendar:"Calendar",view_timeline:"Timeline",view_chart:"Chart",add_view:"Add view",remove_view:"Remove view",rename_view_hint:"Double-click to rename",fields:"Fields",filter:"Filter",filters:"Filters",sort:"Sort",actions:"Actions",group_by:"Group by",cover:"Cover",date_field:"Date",start_field:"Start",end_field:"End",group_field:"Group",fields_in_card:"Fields in card",fields_label:"Fields",fields_on_bars:"Fields on bars",filter_by:"Filter by",sort_by:"Sort by",group_by_label:"Group by",date_field_label:"Date field",cover_field_label:"Cover field",card_size_label:"Card size",row_height_label:"Row height",none_value:"None",no_value:"No value",no_cover:"None",size_small:"Small",size_medium:"Medium",size_large:"Large",height_compact:"Compact",height_medium:"Medium",height_tall:"Tall",add_filter_advanced:"Add advanced filter",add_sort:"Add sort",no_active_sorts:"No active sorts",name_column:"Name",conjunction_and:"AND",conjunction_or:"OR",filter_number_placeholder:"Number...",filter_value_placeholder:"Value...",delete_selected:"Delete all selected",move_selected:"Move all selected",duplicate_selected:"Duplicate all selected",export_csv:"Export CSV",import_csv:"Import CSV",open_note:"Open note",delete_note:"Delete note",duplicate_note:"Duplicate note",sort_asc:"Ascending",sort_desc:"Descending",sort_asc_title:"Sort descending",sort_desc_title:"Remove sort",sort_none_title:"Sort ascending",rename_column:"Rename",edit_formula:"Edit formula",configure_lookup:"Configure lookup",configure_relation:"Configure relation",settings_clip_ellipsis_name:"Show ellipsis when clipping text",settings_clip_ellipsis_desc:"When off, clipped cells cut the text at the cell edge without the ellipsis character, spreadsheet-style.",format_number:"Format number",format_date:"Format date",date_format_title:"Date format",date_format_preset_label:"Preset",date_format_pattern_label:"Pattern",date_format_custom:"Custom",configure_image_folder:"Configure image folder",field_type_label:"Field type",hide_field:"Hide field",enable_wrap_text:"Wrap text",disable_wrap_text:"Unwrap text",enable_clip_text:"Clip text",disable_clip_text:"Disable clip",delete_field:"Delete field",type_title:"Title",type_text:"Text",type_number:"Number",type_select:"Select",type_multiselect:"Multi-select",type_date:"Date",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Phone",type_status:"Status",type_formula:"Formula",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configure rollup",rollup_select_relation:"1. Relation column",rollup_select_relation_placeholder:"Select relation...",rollup_select_target:"2. Target column",rollup_select_target_placeholder:"Select column...",rollup_select_function:"3. Aggregation",rollup_no_relations:"No relation columns found. Add a relation column first.",rollup_fn_sum:"Sum",rollup_fn_count:"Count",rollup_fn_avg:"Average",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Count unique",rollup_fn_list:"List all",type_image:"Image",type_audio:"Audio",audio_path_placeholder:"Path to audio file...",audio_select_placeholder:"Select audio...",audio_picker_title:"Select audio",audio_picker_clear:"Clear",audio_picker_empty_folder:"No audio files in folder",audio_picker_empty_vault:"No audio files in vault",audio_panel_title:"Audio settings",audio_folder_label:"Source folder (leave empty for entire vault)",audio_folder_placeholder:"Ex: audio/music",configure_audio_folder:"Configure audio folder",type_video:"Video",video_select_placeholder:"Select video...",video_picker_clear:"Clear",video_picker_empty_folder:"No video files in folder",video_picker_empty_vault:"No video files in vault",video_panel_title:"Video settings",video_folder_label:"Source folder (leave empty for entire vault)",video_folder_placeholder:"Ex: video/clips",configure_video_folder:"Configure video folder",formula_panel_title:"Formula",formula_placeholder:'Example: if(status = "done", 1, 0)',formula_valid:"Valid syntax",formula_available_cols:"Available columns:",formula_ref_toggle:"Function reference",formula_save:"Save",formula_cancel:"Cancel",formula_save_hint:"Save (Ctrl+Enter)",formula_group_logic:"Logic",formula_group_comparators:"Comparators",formula_group_aggregators:"Aggregators",formula_group_text:"Text",formula_group_math:"Math",formula_group_date:"Date and time",formula_group_utils:"Utilities",formula_desc_if:"Returns a if cond is true, otherwise b",formula_desc_ifs:"Tests conditions in sequence",formula_desc_and:"True if all are true",formula_desc_or:"True if any is true",formula_desc_not:"Inverts the logical value",formula_desc_comparators:"Compares two values; combine with conditionals",formula_desc_sum:"Sums all values in the column",formula_desc_avg:"Average of values in the column",formula_desc_count:"Counts non-empty values in the column",formula_desc_min:"Smallest value in the column",formula_desc_max:"Largest value in the column",formula_desc_concat:"Concatenates texts (or use &)",formula_desc_len:"Number of characters",formula_desc_upper_lower:"Uppercase / lowercase",formula_desc_trim:"Removes leading and trailing whitespace",formula_desc_left:"First n characters",formula_desc_right:"Last n characters",formula_desc_mid:"Substring starting at position",formula_desc_substitute:"Replaces occurrences",formula_desc_round:"Rounds n to d decimal places",formula_desc_floor_ceil:"Rounds down / up",formula_desc_abs:"Absolute value",formula_desc_mod:"Remainder of division",formula_desc_power:"Base raised to exponent",formula_desc_sqrt:"Square root",formula_desc_now:"Current date and time",formula_desc_today:"Current date at midnight",formula_desc_date:"Builds a date from year, month and day",formula_desc_date_parts:"Year / month / day of a date",formula_desc_time_parts:"Hour / minute of a date",formula_desc_weekday:"Day of the week (1 = sun \u2026 7 = sat)",formula_desc_datedif:"Difference between two dates in the given unit",formula_desc_dateadd:"Adds n units to a date (days, months, years\u2026)",formula_desc_formatdate:"Formats a date using a pattern",formula_desc_isnull:"True if v is empty or null",formula_desc_coalesce:"First non-empty value",formula_desc_text:"Converts to text",formula_desc_value:"Converts to number",number_format_title:"Format",number_decimals_label:"Decimal places",number_thousands_label:"Thousands separator",number_prefix_label:"Prefix",number_suffix_label:"Suffix",number_prefix_placeholder:"Ex: $, \u20AC",number_suffix_placeholder:"Ex: %, kg, km",number_remove_format:"Remove formatting",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Reference table",lookup_select_table:"Select table...",lookup_col_to_display:"2. Column to display",lookup_origin_col:"2. Source field for values",lookup_select_col:"Select column...",lookup_file_name:"File name",lookup_join_col:"3. Join column (this table)",lookup_join_col_title:"File name (join by title)",lookup_select_join_col:"Select column...",lookup_hint:"The value of this column must match the file name in the referenced table",image_panel_title:"Image",image_folder_label:"Source folder (optional)",image_folder_placeholder:"Ex: images/covers",image_picker_title:"Select image",image_picker_clear:"Clear",image_picker_empty_vault:"No images found in vault",image_picker_empty_folder:"No images found in",image_select_placeholder:"Select image\u2026",agg_none:"None",agg_count:"Count",agg_count_values:"Count values",agg_sum:"Sum",agg_avg:"Average",agg_min:"Min",agg_max:"Max",no_database_open:"No database open.",no_database_hint:'Use the ribbon button or the "create new database" command.',loading:"Loading...",no_results:"No items found",item_singular:"Item",item_plural:"Items",row_singular:"Row",row_plural:"Rows",record_singular:"Record",record_plural:"Records",add_row:"New row",add_entry:"New entry",add_card:"New card",new_field:"New field",add_field:"Add field",board_no_select_col:"The board requires a select or status column to group cards.",board_add_select_hint:"Add a column of that type in the table view and come back here.",board_drag_reorder:"Drag to reorder",board_set_limit:"Click to set card limit",board_limit_placeholder:"Limit (0 = none)",board_show_more:"More",board_show_less:"Show less",hide_empty_cols:"Hide empty",hide_no_value_cols:"Hide no-value",calendar_no_date_field:"Select a date field in the toolbar to show the calendar.",calendar_no_date_section:"No date",calendar_click_to_create:"Click to create note",calendar_today:"Today",calendar_prev_month:"Previous month",calendar_next_month:"Next month",calendar_view_month:"Month",calendar_view_week:"Week",calendar_prev_week:"Previous week",calendar_next_week:"Next week",calendar_add_time:"Add time",calendar_remove_time:"Remove time",calendar_all_day:"All day",day_sun:"Sun",day_mon:"Mon",day_tue:"Tue",day_wed:"Wed",day_thu:"Thu",day_fri:"Fri",day_sat:"Sat",month_january:"January",month_february:"February",month_march:"March",month_april:"April",month_may:"May",month_june:"June",month_july:"July",month_august:"August",month_september:"September",month_october:"October",month_november:"November",month_december:"December",timeline_no_start_field:"Select a start field in the toolbar to show the timeline.",timeline_no_interval:"No interval",timeline_scroll_prev:"Scroll back",timeline_scroll_next:"Scroll forward",zoom_days:"Days",zoom_weeks:"Weeks",zoom_months:"Months",month_short_jan:"Jan",month_short_feb:"Feb",month_short_mar:"Mar",month_short_apr:"Apr",month_short_may:"May",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Aug",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"Dec",hierarchy_toggle:"Use as hierarchy",hierarchy_toggle_hint:"Enables parent-child relationships between rows in this database",add_subrow:"Add sub-row",collapse_all:"Collapse all",expand_all:"Expand all",max_depth_reached:"Maximum depth reached (3 levels)",chart_configure:"Configure",chart_type:"Chart type",chart_type_bar:"Bar",chart_type_line:"Line",chart_type_pie:"Pie",chart_x_axis:"Categories (X axis)",chart_y_axis:"Values (y axis)",chart_aggregation:"Aggregation",chart_select_column:"Select column...",chart_count_records:"Count",chart_no_config:"Configure the chart to get started.",chart_no_config_hint:"Select a column for categories in the toolbar above.",tooltip_pin_column:"Pin columns up to here",tooltip_unpin_column:"Unpin columns",tooltip_resize_column:"Drag to resize; double-click to fit content",tooltip_wrap_text:"Wrap text",tooltip_include_subfolders:"Include subfolders",folder_column:"Folder",tooltip_manage_fields:"Manage fields",tooltip_batch_actions:"Batch actions",tooltip_remove_filter:"Remove filter",hide_filters:"Hide filters",show_filters:"Show filters",filters_count_one:"1 filter",filters_count_other:"{n} filters",tooltip_drag_reorder:"Drag to reorder",tooltip_search:"Search",tooltip_toggle_and_or:"Click to switch the logical operator",tooltip_close:"Close",tooltip_remove:"Remove",tooltip_move_up:"Move up",tooltip_move_down:"Move down",tooltip_change_color:"Change color",tooltip_delete_status:"Delete status",status_not_started:"Not started",status_in_progress:"In progress",status_done:"Done",status_cancelled:"Cancelled",relation_search_placeholder:"Search...",relation_clear:"Clear",relation_no_results:"No results",relation_two_way:"Two-way relation",relation_two_way_hint:"Automatically creates a reverse relation in the target database",select_clear:"Clear",select_create_placeholder:"Create new option...",status_new_placeholder:"New status...",color_custom:"Custom",validate_non_numeric:'Cell(s) contain non-numeric values (e.g.: "',validate_invalid_dates:'Cell(s) contain values that are not valid dates (e.g.: "',validate_invalid_checkbox:'Cell(s) contain values incompatible with checkbox (e.g.: "',validate_multiselect_to_select:"Row(s) have multiple values selected. Remove extras before changing to single select.",validate_invalid_email:'Cell(s) contain values that are not valid emails (e.g.: "',validate_invalid_url:'Cell(s) contain values that are not valid URLs (e.g.: "',validate_invalid_phone:'Cell(s) contain values that are not valid phone numbers (e.g.: "',validate_type_change_prefix:"Cannot change type: ",email_invalid:"Invalid email",op_is:"Is",op_is_not:"Is not",op_contains:"Contains",op_not_contains:"Does not contain",op_starts_with:"Starts with",op_ends_with:"Ends with",op_is_empty:"Is empty",op_is_not_empty:"Is not empty",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Is checked",op_is_unchecked:"Is unchecked",settings_db_filename_name:"Database file name",settings_db_filename_desc:"Name of the special file that identifies a database in a folder.",settings_row_height_name:"Default row height",settings_row_height_desc:"Height in pixels of each table row.",settings_inline_fields_name:"Read dataview inline fields",settings_inline_fields_desc:"Parse key:: value fields from note body and display as column values (read-only)",db_untitled_note:"Untitled",db_copy_suffix:"(copy)",db_copy_suffix_n:"(copy $n)",db_already_exists:'A database already exists in "$folder"',db_tip_body:"This file is a database. Open it to see the table view.",formula_err_unclosed_string:"Unclosed string at position $pos",formula_err_unclosed_bracket:"Unclosed bracket at position $pos",formula_err_unexpected_bang:"Unexpected character '!' at position $pos",formula_err_unexpected_char:"Unexpected character '$char' at position $pos",formula_err_expected_token:"Expected $expected, found '$found' at position $pos",formula_err_unexpected_token:"Unexpected token '$token' at position $pos",formula_err_circular_ref:'Circular reference: "$name" is a formula column',formula_err_unknown_fn:"Unknown function: $fn()",formula_err_if_args:"Expected if(condition, if_true, [if_false])",formula_err_avg_args:"Expected avg(column) \u2014 requires a column reference as argument",formula_err_count_args:"Expected count(column) \u2014 requires a column reference as argument",formula_err_mid_args:"Expected mid(text, start, length)",formula_err_mod_args:"Expected mod(number, divisor)",formula_err_sqrt_args:"Expected sqrt(number)",formula_err_not_implemented:"Function not implemented: $fn()",plugin_display_name:"Notion bases",no_databases_found:'No databases found. Use the "create new database" command to create one.',cmd_open_database:"Open database for this folder",cmd_create_database:"Create new database in current folder",ctx_create_database:"Create database here",arr_settings_title:"Folder arrangement",arr_settings_desc:"Automatically move row files into nested subfolders based on the values of the selected properties, in order.",arr_settings_enabled_name:"Enable folder arrangement",arr_settings_enabled_desc:"When on, rows are moved as soon as one of the selected properties changes. Off by default.",arr_settings_no_props:"No properties selected. Add one below to define the folder hierarchy.",arr_settings_no_candidates:"No eligible columns. Folder arrangement supports text, select, status, and date columns.",arr_settings_add_placeholder:"Select a property...",arr_settings_add_btn:"Add",arr_settings_preview_btn:"Preview & apply to existing rows",arr_preview_title:"Folder arrangement preview",arr_preview_empty:"No rows need to be moved.",arr_preview_desc:"$count row(s) will be moved:",arr_preview_filtered_note:"Only files visible in the current view will be considered.",arr_preview_apply:"Apply",arr_preview_cancel:"Cancel",arr_preview_applied:"Moved $count row(s).",cmd_quick_add:"Quick add row to database",quick_add_title:"Quick add",quick_add_note_title:"Title",quick_add_note_title_placeholder:"Note title...",quick_add_create:"Create",quick_add_create_and_open:"Create and open",quick_add_no_visible_fields:"No editable fields in this database",picker_placeholder:"Select database...",picker_root:"/ (root)",view_fallback_name:"Database",saving:"Saving",saved:"Saved",save_error:"Save error",settings_page_size_name:"Rows per page",settings_page_size_desc:'Number of rows to display per page. Set to "all" for continuous scrolling',settings_page_size_all:"All (continuous scroll)",page_of:"Page {current} of {total}",first_page:"First page",last_page:"Last page",prev_page:"Previous page",next_page:"Next page",conditional_formatting:"Conditional formatting",no_conditional_formats:"No rules yet",add_rule:"Add rule",select_value:"Select a value",style:"Style",background:"Background",text_color:"Text color",save:"Save",cancel:"Cancel",value:"Value",db_settings_open:"Database settings",db_settings_title:"Database settings",db_settings_template_name:"Row template",db_settings_template_desc:"Apply this template to the body of every new row created in this database.",db_settings_template_choose:"Choose template",db_settings_template_clear:"Clear template",db_settings_template_none:"No template selected",db_settings_template_folder_name:"Template folder",db_settings_template_folder_desc:"Only show templates from this folder when picking a template for this database.",db_settings_template_folder_choose:"Choose folder",db_settings_template_folder_none:"Whole vault (no restriction)",db_settings_ask_name:"Ask for template on create",db_settings_ask_desc:"Prompt for a template each time a new row is added instead of applying the default.",template_picker_placeholder:"Choose a template...",template_picker_none:"No template (empty body)",folder_picker_placeholder:"Choose a destination folder..."},Tc=_y;var hy={view_table:"Tabela",view_list:"Lista",view_board:"Board",view_gallery:"Galeria",view_calendar:"Calend\xE1rio",view_timeline:"Timeline",view_chart:"Gr\xE1fico",add_view:"Adicionar view",remove_view:"Remover view",rename_view_hint:"Duplo clique para renomear",fields:"Campos",filter:"Filtro",filters:"Filtros",sort:"Ordenar",actions:"A\xE7\xF5es",group_by:"Agrupar por",cover:"Capa",date_field:"Data",start_field:"In\xEDcio",end_field:"Fim",group_field:"Agrupar",fields_in_card:"Campos no card",fields_label:"Campos",fields_on_bars:"Campos nas barras",filter_by:"Filtrar por",sort_by:"Ordenar por",group_by_label:"Agrupar por",date_field_label:"Campo de data",cover_field_label:"Campo de capa",card_size_label:"Tamanho dos cards",row_height_label:"Altura das linhas",none_value:"Nenhum",no_value:"Sem valor",no_cover:"Nenhuma",size_small:"Pequeno",size_medium:"M\xE9dio",size_large:"Grande",height_compact:"Compacto",height_medium:"M\xE9dio",height_tall:"Alto",add_filter_advanced:"Adicionar filtro avan\xE7ado",add_sort:"Adicionar ordena\xE7\xE3o",no_active_sorts:"Nenhuma ordena\xE7\xE3o ativa",name_column:"Nome",conjunction_and:"E",conjunction_or:"OU",filter_number_placeholder:"N\xFAmero...",filter_value_placeholder:"Valor...",delete_selected:"Apagar todos selecionados",move_selected:"Mover todos selecionados",duplicate_selected:"Duplicar todos selecionados",export_csv:"Exportar CSV",import_csv:"Importar CSV",open_note:"Abrir nota",delete_note:"Excluir nota",duplicate_note:"Duplicar nota",sort_asc:"Ascendente",sort_desc:"Descendente",sort_asc_title:"Ordenar descendente",sort_desc_title:"Remover ordena\xE7\xE3o",sort_none_title:"Ordenar ascendente",rename_column:"Renomear",edit_formula:"Editar f\xF3rmula",configure_lookup:"Configurar lookup",configure_relation:"Configurar rela\xE7\xE3o",settings_clip_ellipsis_name:"Mostrar retic\xEAncias ao cortar o texto",settings_clip_ellipsis_desc:"Quando desativado, as c\xE9lulas cortadas interrompem o texto na borda da c\xE9lula sem o caractere de retic\xEAncias, no estilo de planilha.",format_number:"Formatar n\xFAmero",format_date:"Formatar data",date_format_title:"Formato de data",date_format_preset_label:"Predefini\xE7\xE3o",date_format_pattern_label:"Padr\xE3o",date_format_custom:"Personalizado",configure_image_folder:"Configurar pasta de imagens",field_type_label:"Tipo de campo",hide_field:"Ocultar campo",enable_wrap_text:"Quebrar texto",disable_wrap_text:"N\xE3o quebrar texto",enable_clip_text:"Cortar texto",disable_clip_text:"Desativar corte",delete_field:"Excluir campo",type_title:"T\xEDtulo",type_text:"Texto",type_number:"N\xFAmero",type_select:"Sele\xE7\xE3o",type_multiselect:"Multi-sele\xE7\xE3o",type_date:"Data",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Telefone",type_status:"Status",type_formula:"F\xF3rmula",type_relation:"Rela\xE7\xE3o",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurar rollup",rollup_select_relation:"1. Coluna de rela\xE7\xE3o",rollup_select_relation_placeholder:"Selecionar rela\xE7\xE3o...",rollup_select_target:"2. Coluna de destino",rollup_select_target_placeholder:"Selecionar coluna...",rollup_select_function:"3. Agrega\xE7\xE3o",rollup_no_relations:"Nenhuma coluna de rela\xE7\xE3o encontrada. Adicione uma coluna de rela\xE7\xE3o primeiro.",rollup_fn_sum:"Soma",rollup_fn_count:"Contar",rollup_fn_avg:"M\xE9dia",rollup_fn_min:"M\xEDn",rollup_fn_max:"M\xE1x",rollup_fn_count_values:"Contar \xFAnicos",rollup_fn_list:"Listar tudo",type_image:"Imagem",type_audio:"\xC1udio",audio_path_placeholder:"Caminho para o arquivo de \xE1udio...",audio_select_placeholder:"Selecionar \xE1udio...",audio_picker_title:"Selecionar \xE1udio",audio_picker_clear:"Limpar",audio_picker_empty_folder:"Nenhum arquivo de \xE1udio na pasta",audio_picker_empty_vault:"Nenhum arquivo de \xE1udio no vault",audio_panel_title:"Configura\xE7\xF5es de \xE1udio",audio_folder_label:"Pasta de origem (deixe vazio para o vault inteiro)",audio_folder_placeholder:"Ex: audio/musica",configure_audio_folder:"Configurar pasta de \xE1udio",type_video:"V\xEDdeo",video_select_placeholder:"Selecionar v\xEDdeo...",video_picker_clear:"Limpar",video_picker_empty_folder:"Nenhum arquivo de v\xEDdeo na pasta",video_picker_empty_vault:"Nenhum arquivo de v\xEDdeo no vault",video_panel_title:"Configura\xE7\xF5es de v\xEDdeo",video_folder_label:"Pasta de origem (deixe vazio para o vault inteiro)",video_folder_placeholder:"Ex: video/clipes",configure_video_folder:"Configurar pasta de v\xEDdeo",formula_panel_title:"F\xF3rmula",formula_placeholder:'Ex: if(status = "feito", 1, 0)',formula_valid:"Sintaxe v\xE1lida",formula_available_cols:"Colunas dispon\xEDveis:",formula_ref_toggle:"Refer\xEAncia de fun\xE7\xF5es",formula_save:"Salvar",formula_cancel:"Cancelar",formula_save_hint:"Salvar (Ctrl+Enter)",formula_group_logic:"L\xF3gica",formula_group_comparators:"Comparadores",formula_group_aggregators:"Agregadores",formula_group_text:"Texto",formula_group_math:"Matem\xE1tica",formula_group_date:"Data e hora",formula_group_utils:"Utilit\xE1rios",formula_desc_if:"Retorna a se cond for verdadeiro, caso contr\xE1rio b",formula_desc_ifs:"Testa condi\xE7\xF5es em sequ\xEAncia",formula_desc_and:"Verdadeiro se todos forem verdadeiros",formula_desc_or:"Verdadeiro se algum for verdadeiro",formula_desc_not:"Inverte o valor l\xF3gico",formula_desc_comparators:"Compara dois valores; combine com condicionais",formula_desc_sum:"Soma todos os valores da coluna",formula_desc_avg:"M\xE9dia dos valores da coluna",formula_desc_count:"Conta valores n\xE3o vazios da coluna",formula_desc_min:"Menor valor da coluna",formula_desc_max:"Maior valor da coluna",formula_desc_concat:"Concatena textos (ou use &)",formula_desc_len:"N\xFAmero de caracteres",formula_desc_upper_lower:"Mai\xFAsculas / min\xFAsculas",formula_desc_trim:"Remove espa\xE7os no in\xEDcio e no fim",formula_desc_left:"Primeiros n caracteres",formula_desc_right:"\xDAltimos n caracteres",formula_desc_mid:"Substring a partir da posi\xE7\xE3o",formula_desc_substitute:"Substitui ocorr\xEAncias",formula_desc_round:"Arredonda n para d casas decimais",formula_desc_floor_ceil:"Arredonda para baixo / para cima",formula_desc_abs:"Valor absoluto",formula_desc_mod:"Resto da divis\xE3o",formula_desc_power:"Base elevada ao expoente",formula_desc_sqrt:"Raiz quadrada",formula_desc_now:"Data e hora atuais",formula_desc_today:"Data atual \xE0 meia-noite",formula_desc_date:"Cria uma data a partir de ano, m\xEAs e dia",formula_desc_date_parts:"Ano / m\xEAs / dia de uma data",formula_desc_time_parts:"Hora / minuto de uma data",formula_desc_weekday:"Dia da semana (1 = domingo \u2026 7 = s\xE1bado)",formula_desc_datedif:"Diferen\xE7a entre duas datas na unidade indicada",formula_desc_dateadd:"Adiciona n unidades a uma data (dias, meses, anos\u2026)",formula_desc_formatdate:"Formata uma data usando um padr\xE3o",formula_desc_isnull:"Verdadeiro se v estiver vazio ou nulo",formula_desc_coalesce:"Primeiro valor n\xE3o vazio",formula_desc_text:"Converte para texto",formula_desc_value:"Converte para n\xFAmero",number_format_title:"Formatar",number_decimals_label:"Casas decimais",number_thousands_label:"Separador de milhar",number_prefix_label:"Prefixo",number_suffix_label:"Sufixo",number_prefix_placeholder:"Ex: R$, $, \u20AC",number_suffix_placeholder:"Ex: %, kg, km",number_remove_format:"Remover formata\xE7\xE3o",relation_panel_title:"Rela\xE7\xE3o",lookup_panel_title:"Lookup",lookup_ref_table:"1. Tabela de refer\xEAncia",lookup_select_table:"Selecionar tabela...",lookup_col_to_display:"2. Coluna a exibir",lookup_origin_col:"2. Campo de origem dos valores",lookup_select_col:"Selecionar coluna...",lookup_file_name:"Nome do arquivo",lookup_join_col:"3. Coluna de jun\xE7\xE3o (nesta tabela)",lookup_join_col_title:"Nome do arquivo (jun\xE7\xE3o por t\xEDtulo)",lookup_select_join_col:"Selecionar coluna...",lookup_hint:"O valor desta coluna deve ser igual ao nome do arquivo da nota na tabela referenciada",image_panel_title:"Imagem",image_folder_label:"Pasta de origem (opcional)",image_folder_placeholder:"Ex: imagens/capas",image_picker_title:"Selecionar imagem",image_picker_clear:"Limpar",image_picker_empty_vault:"Nenhuma imagem encontrada no vault",image_picker_empty_folder:"Nenhuma imagem encontrada em",image_select_placeholder:"Selecionar imagem\u2026",agg_none:"Nenhum",agg_count:"Contar",agg_count_values:"Contar valores",agg_sum:"Soma",agg_avg:"M\xE9dia",agg_min:"M\xEDn",agg_max:"M\xE1x",no_database_open:"Nenhum banco de dados aberto.",no_database_hint:'Use o bot\xE3o na ribbon ou o comando "criar novo banco de dados".',loading:"Carregando...",no_results:"Nenhum item encontrado",item_singular:"Item",item_plural:"Itens",row_singular:"Linha",row_plural:"Linhas",record_singular:"Registro",record_plural:"Registros",add_row:"Nova linha",add_entry:"Nova entrada",add_card:"Novo card",new_field:"Novo campo",add_field:"Adicionar campo",board_no_select_col:"O board precisa de uma coluna do tipo select ou status para agrupar os cards.",board_add_select_hint:"Adicione uma coluna desse tipo na view de tabela e volte aqui.",board_drag_reorder:"Arraste para reordenar",board_set_limit:"Clique para definir limite de cards",board_limit_placeholder:"Limite (0 = nenhum)",board_show_more:"Mais",board_show_less:"Mostrar menos",hide_empty_cols:"Ocultar vazias",hide_no_value_cols:"Ocultar sem valor",calendar_no_date_field:"Selecione um campo de data no toolbar para exibir o calend\xE1rio.",calendar_no_date_section:"Sem data",calendar_click_to_create:"Clique para criar nota",calendar_today:"Hoje",calendar_prev_month:"M\xEAs anterior",calendar_next_month:"Pr\xF3ximo m\xEAs",calendar_view_month:"M\xEAs",calendar_view_week:"Semana",calendar_prev_week:"Semana anterior",calendar_next_week:"Pr\xF3xima semana",calendar_add_time:"Adicionar hor\xE1rio",calendar_remove_time:"Remover hor\xE1rio",calendar_all_day:"Dia inteiro",day_sun:"Dom",day_mon:"Seg",day_tue:"Ter",day_wed:"Qua",day_thu:"Qui",day_fri:"Sex",day_sat:"S\xE1b",month_january:"Janeiro",month_february:"Fevereiro",month_march:"Mar\xE7o",month_april:"Abril",month_may:"Maio",month_june:"Junho",month_july:"Julho",month_august:"Agosto",month_september:"Setembro",month_october:"Outubro",month_november:"Novembro",month_december:"Dezembro",timeline_no_start_field:"Selecione um campo de in\xEDcio no toolbar para exibir a timeline.",timeline_no_interval:"Sem intervalo",timeline_scroll_prev:"Scroll anterior",timeline_scroll_next:"Scroll pr\xF3ximo",zoom_days:"Dias",zoom_weeks:"Semanas",zoom_months:"Meses",month_short_jan:"Jan",month_short_feb:"Fev",month_short_mar:"Mar",month_short_apr:"Abr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ago",month_short_sep:"Set",month_short_oct:"Out",month_short_nov:"Nov",month_short_dec:"Dez",hierarchy_toggle:"Usar como hierarquia",hierarchy_toggle_hint:"Habilita relacionamentos pai-filho entre linhas neste banco de dados",add_subrow:"Adicionar sublinha",collapse_all:"Recolher tudo",expand_all:"Expandir tudo",max_depth_reached:"Profundidade m\xE1xima atingida (3 n\xEDveis)",chart_configure:"Configurar",chart_type:"Tipo de gr\xE1fico",chart_type_bar:"Barras",chart_type_line:"Linhas",chart_type_pie:"Pizza",chart_x_axis:"Categorias (eixo X)",chart_y_axis:"Valores (eixo Y)",chart_aggregation:"Agrega\xE7\xE3o",chart_select_column:"Selecionar coluna...",chart_count_records:"Contagem",chart_no_config:"Configure o gr\xE1fico para come\xE7ar.",chart_no_config_hint:"Selecione uma coluna para categorias na barra de ferramentas acima.",tooltip_pin_column:"Fixar colunas at\xE9 aqui",tooltip_unpin_column:"Desafixar colunas",tooltip_resize_column:"Arrastar para redimensionar; clique duplo para ajustar ao conte\xFAdo",tooltip_wrap_text:"Wrap de texto",tooltip_include_subfolders:"Incluir subpastas",folder_column:"Pasta",tooltip_manage_fields:"Gerenciar campos",tooltip_batch_actions:"A\xE7\xF5es em lote",tooltip_remove_filter:"Remover filtro",hide_filters:"Ocultar filtros",show_filters:"Exibir filtros",filters_count_one:"1 filtro",filters_count_other:"{n} filtros",tooltip_drag_reorder:"Arrastar para reordenar",tooltip_search:"Pesquisar",tooltip_toggle_and_or:"Clique para alternar o operador l\xF3gico",tooltip_close:"Fechar",tooltip_remove:"Remover",tooltip_move_up:"Mover para cima",tooltip_move_down:"Mover para baixo",tooltip_change_color:"Trocar cor",tooltip_delete_status:"Excluir status",status_not_started:"N\xE3o iniciado",status_in_progress:"Em andamento",status_done:"Conclu\xEDdo",status_cancelled:"Cancelado",relation_search_placeholder:"Buscar...",relation_clear:"Limpar",relation_no_results:"Nenhum resultado",relation_two_way:"Rela\xE7\xE3o bidirecional",relation_two_way_hint:"Cria automaticamente uma rela\xE7\xE3o inversa no banco de dados de destino",select_clear:"Limpar",select_create_placeholder:"Criar nova op\xE7\xE3o...",status_new_placeholder:"Novo status...",color_custom:"Personalizada",validate_non_numeric:'C\xE9lula(s) cont\xEAm valores n\xE3o num\xE9ricos (ex: "',validate_invalid_dates:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o datas v\xE1lidas (ex: "',validate_invalid_checkbox:'C\xE9lula(s) cont\xEAm valores incompat\xEDveis com checkbox (ex: "',validate_multiselect_to_select:"Linha(s) t\xEAm m\xFAltiplos valores selecionados. Remova os extras antes de mudar para sele\xE7\xE3o \xFAnica.",validate_invalid_email:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o e-mails v\xE1lidos (ex: "',validate_invalid_url:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o URLs v\xE1lidas (ex: "',validate_invalid_phone:'C\xE9lula(s) cont\xEAm valores que n\xE3o s\xE3o telefones v\xE1lidos (ex: "',validate_type_change_prefix:"N\xE3o \xE9 poss\xEDvel mudar o tipo: ",email_invalid:"E-mail inv\xE1lido",op_is:"\xC9",op_is_not:"N\xE3o \xE9",op_contains:"Cont\xE9m",op_not_contains:"N\xE3o cont\xE9m",op_starts_with:"Come\xE7a com",op_ends_with:"Termina com",op_is_empty:"Est\xE1 vazio",op_is_not_empty:"N\xE3o est\xE1 vazio",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est\xE1 marcado",op_is_unchecked:"N\xE3o est\xE1 marcado",settings_db_filename_name:"Nome do arquivo de banco de dados",settings_db_filename_desc:"Nome do arquivo especial que identifica um banco de dados na pasta.",settings_row_height_name:"Altura padr\xE3o das linhas",settings_row_height_desc:"Altura em pixels de cada linha da tabela.",settings_inline_fields_name:"Ler campos inline do dataview",settings_inline_fields_desc:"Interpreta campos key:: value no corpo da nota e os exibe como valores de coluna (somente leitura)",db_untitled_note:"Sem t\xEDtulo",db_copy_suffix:"(c\xF3pia)",db_copy_suffix_n:"(c\xF3pia $n)",db_already_exists:'J\xE1 existe um banco de dados em "$folder"',db_tip_body:"Este arquivo \xE9 um banco de dados. Abra-o para ver a visualiza\xE7\xE3o de tabela.",formula_err_unclosed_string:"String n\xE3o fechada na posi\xE7\xE3o $pos",formula_err_unclosed_bracket:"Colchete n\xE3o fechado na posi\xE7\xE3o $pos",formula_err_unexpected_bang:"Caractere inesperado '!' na posi\xE7\xE3o $pos",formula_err_unexpected_char:"Caractere inesperado '$char' na posi\xE7\xE3o $pos",formula_err_expected_token:"Esperado $expected, encontrado '$found' na posi\xE7\xE3o $pos",formula_err_unexpected_token:"Token inesperado '$token' na posi\xE7\xE3o $pos",formula_err_circular_ref:'Refer\xEAncia circular: "$name" \xE9 uma coluna f\xF3rmula',formula_err_unknown_fn:"Fun\xE7\xE3o desconhecida: $fn()",formula_err_if_args:"Esperado if(condi\xE7\xE3o, se_verdadeiro, [se_falso])",formula_err_avg_args:"Esperado avg(coluna) \u2014 requer refer\xEAncia de coluna como argumento",formula_err_count_args:"Esperado count(coluna) \u2014 requer refer\xEAncia de coluna como argumento",formula_err_mid_args:"Esperado mid(texto, in\xEDcio, comprimento)",formula_err_mod_args:"Esperado mod(n\xFAmero, divisor)",formula_err_sqrt_args:"Esperado sqrt(n\xFAmero)",formula_err_not_implemented:"Fun\xE7\xE3o n\xE3o implementada: $fn()",plugin_display_name:"Notion bases",no_databases_found:'Nenhum banco de dados encontrado. Use o comando "Criar novo banco de dados" para criar um.',cmd_open_database:"Abrir banco de dados desta pasta",cmd_create_database:"Criar novo banco de dados na pasta atual",ctx_create_database:"Criar banco de dados aqui",arr_settings_title:"Organiza\xE7\xE3o por pastas",arr_settings_desc:"Move automaticamente os arquivos de linha para subpastas aninhadas com base nos valores das propriedades selecionadas, na ordem definida.",arr_settings_enabled_name:"Ativar organiza\xE7\xE3o por pastas",arr_settings_enabled_desc:"Quando ativado, as linhas s\xE3o movidas assim que uma das propriedades selecionadas \xE9 alterada. Desativado por padr\xE3o.",arr_settings_no_props:"Nenhuma propriedade selecionada. Adicione uma abaixo para definir a hierarquia de pastas.",arr_settings_no_candidates:"Nenhuma coluna eleg\xEDvel. A organiza\xE7\xE3o por pastas suporta colunas de texto, sele\xE7\xE3o, status e data.",arr_settings_add_placeholder:"Selecionar uma propriedade...",arr_settings_add_btn:"Adicionar",arr_settings_preview_btn:"Pr\xE9-visualizar e aplicar \xE0s linhas existentes",arr_preview_title:"Pr\xE9-visualiza\xE7\xE3o da organiza\xE7\xE3o por pastas",arr_preview_empty:"Nenhuma linha precisa ser movida.",arr_preview_desc:"$count linha(s) ser\xE1(\xE3o) movida(s):",arr_preview_filtered_note:"Apenas arquivos vis\xEDveis na view atual ser\xE3o considerados.",arr_preview_apply:"Aplicar",arr_preview_cancel:"Cancelar",arr_preview_applied:"$count linha(s) movida(s).",cmd_quick_add:"Adicionar linha rapidamente ao banco de dados",quick_add_title:"Adi\xE7\xE3o r\xE1pida",quick_add_note_title:"T\xEDtulo",quick_add_note_title_placeholder:"T\xEDtulo da nota...",quick_add_create:"Criar",quick_add_create_and_open:"Criar e abrir",quick_add_no_visible_fields:"Nenhum campo edit\xE1vel neste banco de dados",picker_placeholder:"Selecionar banco de dados...",picker_root:"/ (Raiz)",view_fallback_name:"Banco de dados",saving:"Salvando",saved:"Salvo",save_error:"Erro ao salvar",settings_page_size_name:"Linhas por p\xE1gina",settings_page_size_desc:'N\xFAmero de linhas a exibir por p\xE1gina. Defina como "Todas" para rolagem cont\xEDnua',settings_page_size_all:"Todas (rolagem cont\xEDnua)",page_of:"P\xE1gina {current} de {total}",first_page:"Primeira p\xE1gina",last_page:"\xDAltima p\xE1gina",prev_page:"P\xE1gina anterior",next_page:"Pr\xF3xima p\xE1gina",conditional_formatting:"Formata\xE7\xE3o condicional",no_conditional_formats:"Nenhuma regra ainda",add_rule:"Adicionar regra",select_value:"Selecione um valor",style:"Estilo",background:"Plano de fundo",text_color:"Cor do texto",save:"Salvar",cancel:"Cancelar",value:"Valor",db_settings_open:"Configura\xE7\xF5es do banco de dados",db_settings_title:"Configura\xE7\xF5es do banco de dados",db_settings_template_name:"Modelo de linha",db_settings_template_desc:"Aplica este modelo ao corpo de cada nova linha criada neste banco de dados.",db_settings_template_choose:"Escolher modelo",db_settings_template_clear:"Remover modelo",db_settings_template_none:"Nenhum modelo selecionado",db_settings_template_folder_name:"Pasta de modelos",db_settings_template_folder_desc:"Mostrar apenas modelos desta pasta ao escolher um modelo para este banco de dados.",db_settings_template_folder_choose:"Escolher pasta",db_settings_template_folder_none:"Vault inteiro (sem restri\xE7\xE3o)",db_settings_ask_name:"Perguntar pelo modelo ao criar",db_settings_ask_desc:"Solicitar um modelo toda vez que uma nova linha for adicionada, em vez de usar o padr\xE3o.",template_picker_placeholder:"Escolha um modelo...",template_picker_none:"Sem modelo (corpo vazio)",folder_picker_placeholder:"Escolha uma pasta de destino..."},Pc=hy;var vy={view_table:"Tabla",view_list:"Lista",view_board:"Tablero",view_gallery:"Galer\xEDa",view_calendar:"Calendario",view_timeline:"L\xEDnea de tiempo",view_chart:"Gr\xE1fico",add_view:"A\xF1adir vista",remove_view:"Eliminar vista",rename_view_hint:"Doble clic para renombrar",fields:"Campos",filter:"Filtro",filters:"Filtros",sort:"Ordenar",actions:"Acciones",group_by:"Agrupar por",cover:"Portada",date_field:"Fecha",start_field:"Inicio",end_field:"Fin",group_field:"Grupo",fields_in_card:"Campos en tarjeta",fields_label:"Campos",fields_on_bars:"Campos en barras",filter_by:"Filtrar por",sort_by:"Ordenar por",group_by_label:"Agrupar por",date_field_label:"Campo de fecha",cover_field_label:"Campo de portada",card_size_label:"Tama\xF1o de tarjeta",row_height_label:"Altura de fila",none_value:"Ninguno",no_value:"Sin valor",no_cover:"Ninguna",size_small:"Peque\xF1o",size_medium:"Mediano",size_large:"Grande",height_compact:"Compacto",height_medium:"Mediano",height_tall:"Alto",add_filter_advanced:"A\xF1adir filtro avanzado",add_sort:"A\xF1adir ordenaci\xF3n",no_active_sorts:"Sin ordenaciones activas",name_column:"Nombre",conjunction_and:"Y",conjunction_or:"O",filter_number_placeholder:"N\xFAmero...",filter_value_placeholder:"Valor...",delete_selected:"Eliminar todos los seleccionados",move_selected:"Mover todos los seleccionados",duplicate_selected:"Duplicar todos los seleccionados",export_csv:"Exportar CSV",import_csv:"Importar CSV",open_note:"Abrir nota",delete_note:"Eliminar nota",duplicate_note:"Duplicar nota",sort_asc:"Ascendente",sort_desc:"Descendente",sort_asc_title:"Ordenar descendente",sort_desc_title:"Eliminar ordenaci\xF3n",sort_none_title:"Ordenar ascendente",rename_column:"Renombrar",edit_formula:"Editar f\xF3rmula",configure_lookup:"Configurar lookup",configure_relation:"Configurar relaci\xF3n",settings_clip_ellipsis_name:"Mostrar puntos suspensivos al cortar el texto",settings_clip_ellipsis_desc:"Cuando est\xE1 desactivado, las celdas cortadas interrumpen el texto en el borde de la celda sin el car\xE1cter de puntos suspensivos, al estilo de hoja de c\xE1lculo.",format_number:"Formatear n\xFAmero",format_date:"Formatear fecha",date_format_title:"Formato de fecha",date_format_preset_label:"Predefinido",date_format_pattern_label:"Patr\xF3n",date_format_custom:"Personalizado",configure_image_folder:"Configurar carpeta de im\xE1genes",field_type_label:"Tipo de campo",hide_field:"Ocultar campo",enable_wrap_text:"Ajustar texto",disable_wrap_text:"No ajustar texto",enable_clip_text:"Cortar texto",disable_clip_text:"Desactivar corte",delete_field:"Eliminar campo",type_title:"T\xEDtulo",type_text:"Texto",type_number:"N\xFAmero",type_select:"Selecci\xF3n",type_multiselect:"Multi-selecci\xF3n",type_date:"Fecha",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"Tel\xE9fono",type_status:"Estado",type_formula:"F\xF3rmula",type_relation:"Relaci\xF3n",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurar rollup",rollup_select_relation:"1. Columna de relaci\xF3n",rollup_select_relation_placeholder:"Seleccionar relaci\xF3n...",rollup_select_target:"2. Columna de destino",rollup_select_target_placeholder:"Seleccionar columna...",rollup_select_function:"3. Agregaci\xF3n",rollup_no_relations:"No se encontraron columnas de relaci\xF3n. A\xF1ade una columna de relaci\xF3n primero.",rollup_fn_sum:"Suma",rollup_fn_count:"Contar",rollup_fn_avg:"Promedio",rollup_fn_min:"M\xEDn",rollup_fn_max:"M\xE1x",rollup_fn_count_values:"Contar \xFAnicos",rollup_fn_list:"Listar todo",type_image:"Imagen",type_audio:"Audio",audio_path_placeholder:"Ruta al archivo de audio...",audio_select_placeholder:"Seleccionar audio...",audio_picker_title:"Seleccionar audio",audio_picker_clear:"Limpiar",audio_picker_empty_folder:"No hay archivos de audio en la carpeta",audio_picker_empty_vault:"No hay archivos de audio en el vault",audio_panel_title:"Configuraci\xF3n de audio",audio_folder_label:"Carpeta de origen (dejar vac\xEDo para todo el vault)",audio_folder_placeholder:"Ej: audio/musica",configure_audio_folder:"Configurar carpeta de audio",type_video:"V\xEDdeo",video_select_placeholder:"Seleccionar v\xEDdeo...",video_picker_clear:"Limpiar",video_picker_empty_folder:"No hay archivos de v\xEDdeo en la carpeta",video_picker_empty_vault:"No hay archivos de v\xEDdeo en el vault",video_panel_title:"Configuraci\xF3n de v\xEDdeo",video_folder_label:"Carpeta de origen (dejar vac\xEDo para todo el vault)",video_folder_placeholder:"Ej: video/clips",configure_video_folder:"Configurar carpeta de v\xEDdeo",formula_panel_title:"F\xF3rmula",formula_placeholder:'Ejemplo: if(status = "done", 1, 0)',formula_valid:"Sintaxis v\xE1lida",formula_available_cols:"Columnas disponibles:",formula_ref_toggle:"Referencia de funciones",formula_save:"Guardar",formula_cancel:"Cancelar",formula_save_hint:"Guardar (Ctrl+Enter)",formula_group_logic:"L\xF3gica",formula_group_comparators:"Comparadores",formula_group_aggregators:"Agregadores",formula_group_text:"Texto",formula_group_math:"Matem\xE1ticas",formula_group_date:"Fecha y hora",formula_group_utils:"Utilidades",formula_desc_if:"Devuelve a si cond es verdadero, de lo contrario b",formula_desc_ifs:"Prueba condiciones en secuencia",formula_desc_and:"Verdadero si todos son verdaderos",formula_desc_or:"Verdadero si alguno es verdadero",formula_desc_not:"Invierte el valor l\xF3gico",formula_desc_comparators:"Compara dos valores; combinar con condicionales",formula_desc_sum:"Suma todos los valores de la columna",formula_desc_avg:"Promedio de los valores de la columna",formula_desc_count:"Cuenta los valores no vac\xEDos de la columna",formula_desc_min:"Valor m\xE1s peque\xF1o de la columna",formula_desc_max:"Valor m\xE1s grande de la columna",formula_desc_concat:"Concatena textos (o usar &)",formula_desc_len:"N\xFAmero de caracteres",formula_desc_upper_lower:"May\xFAsculas / min\xFAsculas",formula_desc_trim:"Elimina espacios al inicio y al final",formula_desc_left:"Primeros n caracteres",formula_desc_right:"\xDAltimos n caracteres",formula_desc_mid:"Subcadena a partir de la posici\xF3n",formula_desc_substitute:"Reemplaza ocurrencias",formula_desc_round:"Redondea n a d decimales",formula_desc_floor_ceil:"Redondea hacia abajo / hacia arriba",formula_desc_abs:"Valor absoluto",formula_desc_mod:"Resto de la divisi\xF3n",formula_desc_power:"Base elevada al exponente",formula_desc_sqrt:"Ra\xEDz cuadrada",formula_desc_now:"Fecha y hora actuales",formula_desc_today:"Fecha actual a medianoche",formula_desc_date:"Crea una fecha a partir de a\xF1o, mes y d\xEDa",formula_desc_date_parts:"A\xF1o / mes / d\xEDa de una fecha",formula_desc_time_parts:"Hora / minuto de una fecha",formula_desc_weekday:"D\xEDa de la semana (1 = domingo \u2026 7 = s\xE1bado)",formula_desc_datedif:"Diferencia entre dos fechas en la unidad indicada",formula_desc_dateadd:"A\xF1ade n unidades a una fecha (d\xEDas, meses, a\xF1os\u2026)",formula_desc_formatdate:"Formatea una fecha usando un patr\xF3n",formula_desc_isnull:"Verdadero si v est\xE1 vac\xEDo o es nulo",formula_desc_coalesce:"Primer valor no vac\xEDo",formula_desc_text:"Convierte a texto",formula_desc_value:"Convierte a n\xFAmero",number_format_title:"Formato",number_decimals_label:"Decimales",number_thousands_label:"Separador de miles",number_prefix_label:"Prefijo",number_suffix_label:"Sufijo",number_prefix_placeholder:"Ej: $, \u20AC",number_suffix_placeholder:"Ej: %, kg, km",number_remove_format:"Eliminar formato",relation_panel_title:"Relaci\xF3n",lookup_panel_title:"Lookup",lookup_ref_table:"1. Tabla de referencia",lookup_select_table:"Seleccionar tabla...",lookup_col_to_display:"2. Columna a mostrar",lookup_origin_col:"2. Campo de origen de valores",lookup_select_col:"Seleccionar columna...",lookup_file_name:"Nombre de archivo",lookup_join_col:"3. Columna de uni\xF3n (esta tabla)",lookup_join_col_title:"Nombre de archivo (unir por t\xEDtulo)",lookup_select_join_col:"Seleccionar columna...",lookup_hint:"El valor de esta columna debe coincidir con el nombre de archivo en la tabla referenciada",image_panel_title:"Imagen",image_folder_label:"Carpeta de origen (opcional)",image_folder_placeholder:"Ej: images/covers",image_picker_title:"Seleccionar imagen",image_picker_clear:"Limpiar",image_picker_empty_vault:"No se encontraron im\xE1genes en el vault",image_picker_empty_folder:"No se encontraron im\xE1genes en",image_select_placeholder:"Seleccionar imagen\u2026",agg_none:"Ninguno",agg_count:"Contar",agg_count_values:"Contar valores",agg_sum:"Suma",agg_avg:"Promedio",agg_min:"M\xEDn",agg_max:"M\xE1x",no_database_open:"No hay base de datos abierta.",no_database_hint:'Usa el bot\xF3n de la barra lateral o el comando "crear nueva base de datos".',loading:"Cargando...",no_results:"No se encontraron elementos",item_singular:"Elemento",item_plural:"Elementos",row_singular:"Fila",row_plural:"Filas",record_singular:"Registro",record_plural:"Registros",add_row:"Nueva fila",add_entry:"Nueva entrada",add_card:"Nueva tarjeta",new_field:"Nuevo campo",add_field:"A\xF1adir campo",board_no_select_col:"El tablero requiere una columna de selecci\xF3n o estado para agrupar tarjetas.",board_add_select_hint:"A\xF1ade una columna de ese tipo en la vista de tabla y vuelve aqu\xED.",board_drag_reorder:"Arrastra para reordenar",board_set_limit:"Clic para definir limite de tarjetas",board_limit_placeholder:"Limite (0 = ninguno)",board_show_more:"Mas",board_show_less:"Mostrar menos",hide_empty_cols:"Ocultar vac\xEDas",hide_no_value_cols:"Ocultar sin valor",calendar_no_date_field:"Selecciona un campo de fecha en la barra de herramientas para mostrar el calendario.",calendar_no_date_section:"Sin fecha",calendar_click_to_create:"Clic para crear nota",calendar_today:"Hoy",calendar_prev_month:"Mes anterior",calendar_next_month:"Mes siguiente",calendar_view_month:"Mes",calendar_view_week:"Semana",calendar_prev_week:"Semana anterior",calendar_next_week:"Semana siguiente",calendar_add_time:"A\xF1adir hora",calendar_remove_time:"Quitar hora",calendar_all_day:"Todo el d\xEDa",day_sun:"Dom",day_mon:"Lun",day_tue:"Mar",day_wed:"Mi\xE9",day_thu:"Jue",day_fri:"Vie",day_sat:"S\xE1b",month_january:"Enero",month_february:"Febrero",month_march:"Marzo",month_april:"Abril",month_may:"Mayo",month_june:"Junio",month_july:"Julio",month_august:"Agosto",month_september:"Septiembre",month_october:"Octubre",month_november:"Noviembre",month_december:"Diciembre",timeline_no_start_field:"Selecciona un campo de inicio en la barra de herramientas para mostrar la l\xEDnea de tiempo.",timeline_no_interval:"Sin intervalo",timeline_scroll_prev:"Desplazar atr\xE1s",timeline_scroll_next:"Desplazar adelante",zoom_days:"D\xEDas",zoom_weeks:"Semanas",zoom_months:"Meses",month_short_jan:"Ene",month_short_feb:"Feb",month_short_mar:"Mar",month_short_apr:"Abr",month_short_may:"May",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ago",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"Dic",hierarchy_toggle:"Usar como jerarqu\xEDa",hierarchy_toggle_hint:"Habilita relaciones padre-hijo entre filas de esta base de datos",add_subrow:"A\xF1adir subfila",collapse_all:"Contraer todo",expand_all:"Expandir todo",max_depth_reached:"Profundidad m\xE1xima alcanzada (3 niveles)",chart_configure:"Configurar",chart_type:"Tipo de gr\xE1fico",chart_type_bar:"Barras",chart_type_line:"L\xEDneas",chart_type_pie:"Circular",chart_x_axis:"Categor\xEDas (eje X)",chart_y_axis:"Valores (eje Y)",chart_aggregation:"Agregaci\xF3n",chart_select_column:"Seleccionar columna...",chart_count_records:"Contar",chart_no_config:"Configura el gr\xE1fico para empezar.",chart_no_config_hint:"Selecciona una columna para categor\xEDas en la barra de herramientas de arriba.",tooltip_pin_column:"Fijar columnas hasta aqu\xED",tooltip_unpin_column:"Desfijar columnas",tooltip_resize_column:"Arrastra para redimensionar; doble clic para ajustar al contenido",tooltip_wrap_text:"Ajuste de texto",tooltip_include_subfolders:"Incluir subcarpetas",folder_column:"Carpeta",tooltip_manage_fields:"Gestionar campos",tooltip_batch_actions:"Acciones en lote",tooltip_remove_filter:"Eliminar filtro",hide_filters:"Ocultar filtros",show_filters:"Mostrar filtros",filters_count_one:"1 filtro",filters_count_other:"{n} filtros",tooltip_drag_reorder:"Arrastar para reordenar",tooltip_search:"Buscar",tooltip_toggle_and_or:"Clic para cambiar el operador l\xF3gico",tooltip_close:"Cerrar",tooltip_remove:"Eliminar",tooltip_move_up:"Mover arriba",tooltip_move_down:"Mover abajo",tooltip_change_color:"Cambiar color",tooltip_delete_status:"Eliminar estado",status_not_started:"No iniciado",status_in_progress:"En progreso",status_done:"Hecho",status_cancelled:"Cancelado",relation_search_placeholder:"Buscar...",relation_clear:"Limpiar",relation_no_results:"Sin resultados",relation_two_way:"Relaci\xF3n bidireccional",relation_two_way_hint:"Crea autom\xE1ticamente una relaci\xF3n inversa en la base de datos de destino",select_clear:"Limpiar",select_create_placeholder:"Crear nueva opci\xF3n...",status_new_placeholder:"Nuevo estado...",color_custom:"Personalizado",validate_non_numeric:'Celda(s) contienen valores no num\xE9ricos (ej: "',validate_invalid_dates:'Celda(s) contienen valores que no son fechas v\xE1lidas (ej: "',validate_invalid_checkbox:'Celda(s) contienen valores incompatibles con checkbox (ej: "',validate_multiselect_to_select:"Fila(s) tienen m\xFAltiples valores seleccionados. Elimina los extras antes de cambiar a selecci\xF3n \xFAnica.",validate_invalid_email:'Celda(s) contienen valores que no son emails v\xE1lidos (ej: "',validate_invalid_url:'Celda(s) contienen valores que no son URLs v\xE1lidas (ej: "',validate_invalid_phone:'Celda(s) contienen valores que no son tel\xE9fonos v\xE1lidos (ej: "',validate_type_change_prefix:"No se puede cambiar el tipo: ",email_invalid:"Email inv\xE1lido",op_is:"Es",op_is_not:"No es",op_contains:"Contiene",op_not_contains:"No contiene",op_starts_with:"Empieza con",op_ends_with:"Termina con",op_is_empty:"Est\xE1 vac\xEDo",op_is_not_empty:"No est\xE1 vac\xEDo",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est\xE1 marcado",op_is_unchecked:"No est\xE1 marcado",settings_db_filename_name:"Nombre del archivo de base de datos",settings_db_filename_desc:"Nombre del archivo especial que identifica una base de datos en una carpeta.",settings_row_height_name:"Altura de fila predeterminada",settings_row_height_desc:"Altura en p\xEDxeles de cada fila de la tabla.",settings_inline_fields_name:"Leer campos inline de dataview",settings_inline_fields_desc:"Interpreta campos key:: value del cuerpo de la nota y los muestra como valores de columna (solo lectura)",db_untitled_note:"Sin t\xEDtulo",db_copy_suffix:"(copia)",db_copy_suffix_n:"(copia $n)",db_already_exists:'Ya existe una base de datos en "$folder"',db_tip_body:"Este archivo es una base de datos. \xC1brelo para ver la vista de tabla.",formula_err_unclosed_string:"Cadena sin cerrar en posici\xF3n $pos",formula_err_unclosed_bracket:"Corchete sin cerrar en posici\xF3n $pos",formula_err_unexpected_bang:"Car\xE1cter inesperado '!' en posici\xF3n $pos",formula_err_unexpected_char:"Car\xE1cter inesperado '$char' en posici\xF3n $pos",formula_err_expected_token:"Se esperaba $expected, se encontr\xF3 '$found' en posici\xF3n $pos",formula_err_unexpected_token:"Token inesperado '$token' en posici\xF3n $pos",formula_err_circular_ref:'Referencia circular: "$name" es una columna f\xF3rmula',formula_err_unknown_fn:"Funci\xF3n desconocida: $fn()",formula_err_if_args:"Expected if(condition, if_true, [if_false])",formula_err_avg_args:"Se espera avg(columna) \u2014 requiere referencia de columna como argumento",formula_err_count_args:"Se espera count(columna) \u2014 requiere referencia de columna como argumento",formula_err_mid_args:"Se espera mid(texto, inicio, longitud)",formula_err_mod_args:"Se espera mod(n\xFAmero, divisor)",formula_err_sqrt_args:"Se espera sqrt(n\xFAmero)",formula_err_not_implemented:"Funci\xF3n no implementada: $fn()",plugin_display_name:"Notion bases",no_databases_found:'No se encontraron bases de datos. Usa el comando "crear nueva base de datos" para crear una.',cmd_open_database:"Abrir base de datos de esta carpeta",cmd_create_database:"Crear nueva base de datos en la carpeta actual",ctx_create_database:"Crear base de datos aqu\xED",arr_settings_title:"Organizaci\xF3n por carpetas",arr_settings_desc:"Mueve autom\xE1ticamente los archivos de fila a subcarpetas anidadas seg\xFAn los valores de las propiedades seleccionadas, en orden.",arr_settings_enabled_name:"Activar organizaci\xF3n por carpetas",arr_settings_enabled_desc:"Cuando est\xE1 activado, las filas se mueven en cuanto cambia una de las propiedades seleccionadas. Desactivado por defecto.",arr_settings_no_props:"No hay propiedades seleccionadas. A\xF1ade una a continuaci\xF3n para definir la jerarqu\xEDa de carpetas.",arr_settings_no_candidates:"No hay columnas elegibles. La organizaci\xF3n por carpetas admite columnas de texto, selecci\xF3n, estado y fecha.",arr_settings_add_placeholder:"Seleccionar una propiedad...",arr_settings_add_btn:"A\xF1adir",arr_settings_preview_btn:"Previsualizar y aplicar a filas existentes",arr_preview_title:"Previsualizaci\xF3n de la organizaci\xF3n por carpetas",arr_preview_empty:"No hay filas que mover.",arr_preview_desc:"$count fila(s) ser\xE1n movidas:",arr_preview_filtered_note:"Solo se considerar\xE1n los archivos visibles en la vista actual.",arr_preview_apply:"Aplicar",arr_preview_cancel:"Cancelar",arr_preview_applied:"$count fila(s) movida(s).",cmd_quick_add:"A\xF1adir fila r\xE1pidamente a la base de datos",quick_add_title:"A\xF1adir r\xE1pido",quick_add_note_title:"T\xEDtulo",quick_add_note_title_placeholder:"T\xEDtulo de la nota...",quick_add_create:"Crear",quick_add_create_and_open:"Crear y abrir",quick_add_no_visible_fields:"No hay campos editables en esta base de datos",picker_placeholder:"Seleccionar base de datos...",picker_root:"/ (Ra\xEDz)",view_fallback_name:"Base de datos",saving:"Guardando",saved:"Guardado",save_error:"Error al guardar",settings_page_size_name:"Filas por p\xE1gina",settings_page_size_desc:'N\xFAmero de filas a mostrar por p\xE1gina. Establece "Todas" para desplazamiento continuo',settings_page_size_all:"Todas (desplazamiento continuo)",page_of:"P\xE1gina {current} de {total}",first_page:"Primera p\xE1gina",last_page:"\xDAltima p\xE1gina",prev_page:"P\xE1gina anterior",next_page:"P\xE1gina siguiente",conditional_formatting:"Formato condicional",no_conditional_formats:"Sin reglas todav\xEDa",add_rule:"A\xF1adir regla",select_value:"Selecciona un valor",style:"Estilo",background:"Fondo",text_color:"Color de texto",save:"Guardar",cancel:"Cancelar",value:"Valor",db_settings_open:"Configuraci\xF3n de la base de datos",db_settings_title:"Configuraci\xF3n de la base de datos",db_settings_template_name:"Plantilla de fila",db_settings_template_desc:"Aplica esta plantilla al cuerpo de cada nueva fila creada en esta base de datos.",db_settings_template_choose:"Elegir plantilla",db_settings_template_clear:"Quitar plantilla",db_settings_template_none:"Sin plantilla seleccionada",db_settings_template_folder_name:"Carpeta de plantillas",db_settings_template_folder_desc:"Mostrar solo plantillas de esta carpeta al elegir una plantilla para esta base de datos.",db_settings_template_folder_choose:"Elegir carpeta",db_settings_template_folder_none:"Todo el vault (sin restricci\xF3n)",db_settings_ask_name:"Pedir plantilla al crear",db_settings_ask_desc:"Solicitar una plantilla cada vez que se a\xF1ada una nueva fila en lugar de aplicar la predeterminada.",template_picker_placeholder:"Elige una plantilla...",template_picker_none:"Sin plantilla (cuerpo vac\xEDo)",folder_picker_placeholder:"Elige una carpeta de destino..."},sf=vy;var by={view_table:"Tableau",view_list:"Liste",view_board:"Tableau Kanban",view_gallery:"Galerie",view_calendar:"Calendrier",view_timeline:"Chronologie",view_chart:"Graphique",add_view:"Ajouter une vue",remove_view:"Supprimer la vue",rename_view_hint:"Double-cliquez pour renommer",fields:"Champs",filter:"Filtre",filters:"Filtres",sort:"Trier",actions:"Actions",group_by:"Grouper par",cover:"Couverture",date_field:"Date",start_field:"D\xE9but",end_field:"Fin",group_field:"Groupe",fields_in_card:"Champs dans la carte",fields_label:"Champs",fields_on_bars:"Champs sur les barres",filter_by:"Filtrer par",sort_by:"Trier par",group_by_label:"Grouper par",date_field_label:"Champ de date",cover_field_label:"Champ de couverture",card_size_label:"Taille de carte",row_height_label:"Hauteur de ligne",none_value:"Aucun",no_value:"Sans valeur",no_cover:"Aucune",size_small:"Petit",size_medium:"Moyen",size_large:"Grand",height_compact:"Compact",height_medium:"Moyen",height_tall:"Grand",add_filter_advanced:"Ajouter un filtre avanc\xE9",add_sort:"Ajouter un tri",no_active_sorts:"Aucun tri actif",name_column:"Nom",conjunction_and:"ET",conjunction_or:"OU",filter_number_placeholder:"Nombre...",filter_value_placeholder:"Valeur...",delete_selected:"Supprimer tous les s\xE9lectionn\xE9s",move_selected:"D\xE9placer tous les s\xE9lectionn\xE9s",duplicate_selected:"Dupliquer tous les s\xE9lectionn\xE9s",export_csv:"Exporter CSV",import_csv:"Importer CSV",open_note:"Ouvrir la note",delete_note:"Supprimer la note",duplicate_note:"Dupliquer la note",sort_asc:"Croissant",sort_desc:"D\xE9croissant",sort_asc_title:"Trier d\xE9croissant",sort_desc_title:"Supprimer le tri",sort_none_title:"Trier croissant",rename_column:"Renommer",edit_formula:"Modifier la formule",configure_lookup:"Configurer le lookup",configure_relation:"Configurer la relation",settings_clip_ellipsis_name:"Afficher les points de suspension lors de la troncature du texte",settings_clip_ellipsis_desc:"Lorsque cette option est d\xE9sactiv\xE9e, les cellules tronqu\xE9es coupent le texte au bord de la cellule sans le caract\xE8re de points de suspension, comme dans un tableur.",format_number:"Formater le nombre",format_date:"Formater la date",date_format_title:"Format de date",date_format_preset_label:"Pr\xE9r\xE9glage",date_format_pattern_label:"Mod\xE8le",date_format_custom:"Personnalis\xE9",configure_image_folder:"Configurer le dossier d'images",field_type_label:"Type de champ",hide_field:"Masquer le champ",enable_wrap_text:"Retour \xE0 la ligne",disable_wrap_text:"D\xE9sactiver le retour \xE0 la ligne",enable_clip_text:"Tronquer le texte",disable_clip_text:"D\xE9sactiver la troncature",delete_field:"Supprimer le champ",type_title:"Titre",type_text:"Texte",type_number:"Nombre",type_select:"S\xE9lection",type_multiselect:"Multi-s\xE9lection",type_date:"Date",type_checkbox:"Checkbox",type_url:"URL",type_email:"Email",type_phone:"T\xE9l\xE9phone",type_status:"Statut",type_formula:"Formule",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Configurer le rollup",rollup_select_relation:"1. Colonne de relation",rollup_select_relation_placeholder:"S\xE9lectionner une relation...",rollup_select_target:"2. Colonne cible",rollup_select_target_placeholder:"S\xE9lectionner une colonne...",rollup_select_function:"3. Agr\xE9gation",rollup_no_relations:"Aucune colonne de relation trouv\xE9e. Ajoutez d'abord une colonne de relation.",rollup_fn_sum:"Somme",rollup_fn_count:"Compter",rollup_fn_avg:"Moyenne",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Compter les uniques",rollup_fn_list:"Tout lister",type_image:"Image",type_audio:"Audio",audio_path_placeholder:"Chemin vers le fichier audio...",audio_select_placeholder:"S\xE9lectionner un audio...",audio_picker_title:"S\xE9lectionner un audio",audio_picker_clear:"Effacer",audio_picker_empty_folder:"Aucun fichier audio dans le dossier",audio_picker_empty_vault:"Aucun fichier audio dans le vault",audio_panel_title:"Param\xE8tres audio",audio_folder_label:"Dossier source (laisser vide pour tout le vault)",audio_folder_placeholder:"Ex : audio/musique",configure_audio_folder:"Configurer le dossier audio",type_video:"Vid\xE9o",video_select_placeholder:"S\xE9lectionner une vid\xE9o...",video_picker_clear:"Effacer",video_picker_empty_folder:"Aucun fichier vid\xE9o dans le dossier",video_picker_empty_vault:"Aucun fichier vid\xE9o dans le vault",video_panel_title:"Param\xE8tres vid\xE9o",video_folder_label:"Dossier source (laisser vide pour tout le vault)",video_folder_placeholder:"Ex : video/clips",configure_video_folder:"Configurer le dossier vid\xE9o",formula_panel_title:"Formule",formula_placeholder:'Exemple : if(status = "done", 1, 0)',formula_valid:"Syntaxe valide",formula_available_cols:"Colonnes disponibles :",formula_ref_toggle:"R\xE9f\xE9rence des fonctions",formula_save:"Enregistrer",formula_cancel:"Annuler",formula_save_hint:"Enregistrer (Ctrl+Entr\xE9e)",formula_group_logic:"Logique",formula_group_comparators:"Comparateurs",formula_group_aggregators:"Agr\xE9gateurs",formula_group_text:"Texte",formula_group_math:"Math\xE9matiques",formula_group_date:"Date et heure",formula_group_utils:"Utilitaires",formula_desc_if:"Retourne a si cond est vrai, sinon b",formula_desc_ifs:"Teste les conditions en s\xE9quence",formula_desc_and:"Vrai si tous sont vrais",formula_desc_or:"Vrai si au moins un est vrai",formula_desc_not:"Inverse la valeur logique",formula_desc_comparators:"Compare deux valeurs ; combiner avec des conditionnels",formula_desc_sum:"Somme toutes les valeurs de la colonne",formula_desc_avg:"Moyenne des valeurs de la colonne",formula_desc_count:"Compte les valeurs non vides de la colonne",formula_desc_min:"Plus petite valeur de la colonne",formula_desc_max:"Plus grande valeur de la colonne",formula_desc_concat:"Concat\xE8ne des textes (ou utiliser &)",formula_desc_len:"Nombre de caract\xE8res",formula_desc_upper_lower:"Majuscules / minuscules",formula_desc_trim:"Supprime les espaces en d\xE9but et en fin",formula_desc_left:"n premiers caract\xE8res",formula_desc_right:"n derniers caract\xE8res",formula_desc_mid:"Sous-cha\xEEne \xE0 partir de la position",formula_desc_substitute:"Remplace les occurrences",formula_desc_round:"Arrondit n \xE0 d d\xE9cimales",formula_desc_floor_ceil:"Arrondit vers le bas / vers le haut",formula_desc_abs:"Valeur absolue",formula_desc_mod:"Reste de la division",formula_desc_power:"Base \xE9lev\xE9e \xE0 l'exposant",formula_desc_sqrt:"Racine carr\xE9e",formula_desc_now:"Date et heure actuelles",formula_desc_today:"Date actuelle \xE0 minuit",formula_desc_date:"Construit une date \xE0 partir de l'ann\xE9e, du mois et du jour",formula_desc_date_parts:"Ann\xE9e / mois / jour d'une date",formula_desc_time_parts:"Heure / minute d'une date",formula_desc_weekday:"Jour de la semaine (1 = dimanche \u2026 7 = samedi)",formula_desc_datedif:"Diff\xE9rence entre deux dates dans l'unit\xE9 donn\xE9e",formula_desc_dateadd:"Ajoute n unit\xE9s \xE0 une date (jours, mois, ann\xE9es\u2026)",formula_desc_formatdate:"Formate une date selon un motif",formula_desc_isnull:"Vrai si v est vide ou nul",formula_desc_coalesce:"Premi\xE8re valeur non vide",formula_desc_text:"Convertit en texte",formula_desc_value:"Convertit en nombre",number_format_title:"Format",number_decimals_label:"D\xE9cimales",number_thousands_label:"S\xE9parateur de milliers",number_prefix_label:"Pr\xE9fixe",number_suffix_label:"Suffixe",number_prefix_placeholder:"Ex : $, \u20AC",number_suffix_placeholder:"Ex : %, kg, km",number_remove_format:"Supprimer le format",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Table de r\xE9f\xE9rence",lookup_select_table:"S\xE9lectionner une table...",lookup_col_to_display:"2. Colonne \xE0 afficher",lookup_origin_col:"2. Champ source des valeurs",lookup_select_col:"S\xE9lectionner une colonne...",lookup_file_name:"Nom du fichier",lookup_join_col:"3. Colonne de jointure (cette table)",lookup_join_col_title:"Nom du fichier (jointure par titre)",lookup_select_join_col:"S\xE9lectionner une colonne...",lookup_hint:"La valeur de cette colonne doit correspondre au nom du fichier dans la table r\xE9f\xE9renc\xE9e",image_panel_title:"Image",image_folder_label:"Dossier source (optionnel)",image_folder_placeholder:"Ex : images/covers",image_picker_title:"S\xE9lectionner une image",image_picker_clear:"Effacer",image_picker_empty_vault:"Aucune image trouv\xE9e dans le vault",image_picker_empty_folder:"Aucune image trouv\xE9e dans",image_select_placeholder:"S\xE9lectionner une image\u2026",agg_none:"Aucun",agg_count:"Compter",agg_count_values:"Compter les valeurs",agg_sum:"Somme",agg_avg:"Moyenne",agg_min:"Min",agg_max:"Max",no_database_open:"Aucune base de donn\xE9es ouverte.",no_database_hint:'Utilisez le bouton du ruban ou la commande "cr\xE9er une nouvelle base de donn\xE9es".',loading:"Chargement...",no_results:"Aucun \xE9l\xE9ment trouv\xE9",item_singular:"\xC9l\xE9ment",item_plural:"\xC9l\xE9ments",row_singular:"Ligne",row_plural:"Lignes",record_singular:"Enregistrement",record_plural:"Enregistrements",add_row:"Nouvelle ligne",add_entry:"Nouvelle entr\xE9e",add_card:"Nouvelle carte",new_field:"Nouveau champ",add_field:"Ajouter un champ",board_no_select_col:"Le tableau n\xE9cessite une colonne de s\xE9lection ou de statut pour grouper les cartes.",board_add_select_hint:"Ajoutez une colonne de ce type dans la vue tableau et revenez ici.",board_drag_reorder:"Glisser pour r\xE9organiser",board_set_limit:"Cliquer pour definir la limite de cartes",board_limit_placeholder:"Limite (0 = aucune)",board_show_more:"De plus",board_show_less:"Afficher moins",hide_empty_cols:"Masquer vides",hide_no_value_cols:"Masquer sans valeur",calendar_no_date_field:"S\xE9lectionnez un champ de date dans la barre d'outils pour afficher le calendrier.",calendar_no_date_section:"Sans date",calendar_click_to_create:"Cliquez pour cr\xE9er une note",calendar_today:"Aujourd'hui",calendar_prev_month:"Mois pr\xE9c\xE9dent",calendar_next_month:"Mois suivant",calendar_view_month:"Mois",calendar_view_week:"Semaine",calendar_prev_week:"Semaine pr\xE9c\xE9dente",calendar_next_week:"Semaine suivante",calendar_add_time:"Ajouter une heure",calendar_remove_time:"Supprimer l'heure",calendar_all_day:"Toute la journ\xE9e",day_sun:"Dim",day_mon:"Lun",day_tue:"Mar",day_wed:"Mer",day_thu:"Jeu",day_fri:"Ven",day_sat:"Sam",month_january:"Janvier",month_february:"F\xE9vrier",month_march:"Mars",month_april:"Avril",month_may:"Mai",month_june:"Juin",month_july:"Juillet",month_august:"Ao\xFBt",month_september:"Septembre",month_october:"Octobre",month_november:"Novembre",month_december:"D\xE9cembre",timeline_no_start_field:"S\xE9lectionnez un champ de d\xE9but dans la barre d'outils pour afficher la chronologie.",timeline_no_interval:"Sans intervalle",timeline_scroll_prev:"D\xE9filer en arri\xE8re",timeline_scroll_next:"D\xE9filer en avant",zoom_days:"Jours",zoom_weeks:"Semaines",zoom_months:"Mois",month_short_jan:"Jan",month_short_feb:"F\xE9v",month_short_mar:"Mar",month_short_apr:"Avr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Ao\xFB",month_short_sep:"Sep",month_short_oct:"Oct",month_short_nov:"Nov",month_short_dec:"D\xE9c",hierarchy_toggle:"Utiliser comme hi\xE9rarchie",hierarchy_toggle_hint:"Active les relations parent-enfant entre les lignes de cette base de donn\xE9es",add_subrow:"Ajouter une sous-ligne",collapse_all:"Tout r\xE9duire",expand_all:"Tout d\xE9velopper",max_depth_reached:"Profondeur maximale atteinte (3 niveaux)",chart_configure:"Configurer",chart_type:"Type de graphique",chart_type_bar:"Barres",chart_type_line:"Courbes",chart_type_pie:"Camembert",chart_x_axis:"Cat\xE9gories (axe X)",chart_y_axis:"Valeurs (axe Y)",chart_aggregation:"Agr\xE9gation",chart_select_column:"S\xE9lectionner une colonne...",chart_count_records:"Compter",chart_no_config:"Configurez le graphique pour commencer.",chart_no_config_hint:"S\xE9lectionnez une colonne pour les cat\xE9gories dans la barre d'outils ci-dessus.",tooltip_pin_column:"Fixer les colonnes jusqu'ici",tooltip_unpin_column:"D\xE9tacher les colonnes",tooltip_resize_column:"Glisser pour redimensionner ; double-clic pour ajuster au contenu",tooltip_wrap_text:"Retour \xE0 la ligne",tooltip_include_subfolders:"Inclure les sous-dossiers",folder_column:"Dossier",tooltip_manage_fields:"G\xE9rer les champs",tooltip_batch_actions:"Actions group\xE9es",tooltip_remove_filter:"Supprimer le filtre",hide_filters:"Masquer les filtres",show_filters:"Afficher les filtres",filters_count_one:"1 filtre",filters_count_other:"{n} filtres",tooltip_drag_reorder:"Glisser pour r\xE9organiser",tooltip_search:"Rechercher",tooltip_toggle_and_or:"Cliquer pour changer l'op\xE9rateur logique",tooltip_close:"Fermer",tooltip_remove:"Supprimer",tooltip_move_up:"Monter",tooltip_move_down:"Descendre",tooltip_change_color:"Changer la couleur",tooltip_delete_status:"Supprimer le statut",status_not_started:"Non commenc\xE9",status_in_progress:"En cours",status_done:"Termin\xE9",status_cancelled:"Annul\xE9",relation_search_placeholder:"Rechercher...",relation_clear:"Effacer",relation_no_results:"Aucun r\xE9sultat",relation_two_way:"Relation bidirectionnelle",relation_two_way_hint:"Cr\xE9e automatiquement une relation inverse dans la base de donn\xE9es cible",select_clear:"Effacer",select_create_placeholder:"Cr\xE9er une nouvelle option...",status_new_placeholder:"Nouveau statut...",color_custom:"Personnalis\xE9e",validate_non_numeric:'Cellule(s) contiennent des valeurs non num\xE9riques (ex : "',validate_invalid_dates:'Cellule(s) contiennent des valeurs qui ne sont pas des dates valides (ex : "',validate_invalid_checkbox:'Cellule(s) contiennent des valeurs incompatibles avec checkbox (ex : "',validate_multiselect_to_select:"Ligne(s) ont plusieurs valeurs s\xE9lectionn\xE9es. Supprimez les extras avant de passer en s\xE9lection unique.",validate_invalid_email:'Cellule(s) contiennent des valeurs qui ne sont pas des emails valides (ex : "',validate_invalid_url:'Cellule(s) contiennent des valeurs qui ne sont pas des URLs valides (ex : "',validate_invalid_phone:'Cellule(s) contiennent des valeurs qui ne sont pas des num\xE9ros de t\xE9l\xE9phone valides (ex : "',validate_type_change_prefix:"Impossible de changer le type : ",email_invalid:"Email invalide",op_is:"Est",op_is_not:"N'est pas",op_contains:"Contient",op_not_contains:"Ne contient pas",op_starts_with:"Commence par",op_ends_with:"Finit par",op_is_empty:"Est vide",op_is_not_empty:"N'est pas vide",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Est coch\xE9",op_is_unchecked:"N'est pas coch\xE9",settings_db_filename_name:"Nom du fichier de base de donn\xE9es",settings_db_filename_desc:"Nom du fichier sp\xE9cial qui identifie une base de donn\xE9es dans un dossier.",settings_row_height_name:"Hauteur de ligne par d\xE9faut",settings_row_height_desc:"Hauteur en pixels de chaque ligne du tableau.",settings_inline_fields_name:"Lire les champs inline dataview",settings_inline_fields_desc:"Analyse les champs key:: value dans le corps de la note et les affiche comme valeurs de colonne (lecture seule)",db_untitled_note:"Sans titre",db_copy_suffix:"(copie)",db_copy_suffix_n:"(copie $n)",db_already_exists:'Une base de donn\xE9es existe d\xE9j\xE0 dans "$folder"',db_tip_body:"Ce fichier est une base de donn\xE9es. Ouvrez-le pour voir la vue tableau.",formula_err_unclosed_string:"Cha\xEEne non ferm\xE9e \xE0 la position $pos",formula_err_unclosed_bracket:"Crochet non ferm\xE9 \xE0 la position $pos",formula_err_unexpected_bang:"Caract\xE8re inattendu '!' \xE0 la position $pos",formula_err_unexpected_char:"Caract\xE8re inattendu '$char' \xE0 la position $pos",formula_err_expected_token:"Attendu $expected, trouv\xE9 '$found' \xE0 la position $pos",formula_err_unexpected_token:"Token inattendu '$token' \xE0 la position $pos",formula_err_circular_ref:'R\xE9f\xE9rence circulaire : "$name" est une colonne formule',formula_err_unknown_fn:"Fonction inconnue : $fn()",formula_err_if_args:"Attendu if(condition, si_vrai, [si_faux])",formula_err_avg_args:"Attendu avg(colonne) \u2014 n\xE9cessite une r\xE9f\xE9rence de colonne",formula_err_count_args:"Attendu count(colonne) \u2014 n\xE9cessite une r\xE9f\xE9rence de colonne",formula_err_mid_args:"Attendu mid(texte, d\xE9but, longueur)",formula_err_mod_args:"Attendu mod(nombre, diviseur)",formula_err_sqrt_args:"Attendu sqrt(nombre)",formula_err_not_implemented:"Fonction non impl\xE9ment\xE9e : $fn()",plugin_display_name:"Notion bases",no_databases_found:'Aucune base de donn\xE9es trouv\xE9e. Utilisez la commande "cr\xE9er une nouvelle base de donn\xE9es" pour en cr\xE9er une.',cmd_open_database:"Ouvrir la base de donn\xE9es de ce dossier",cmd_create_database:"Cr\xE9er une nouvelle base de donn\xE9es dans le dossier actuel",ctx_create_database:"Cr\xE9er une base de donn\xE9es ici",arr_settings_title:"Organisation par dossiers",arr_settings_desc:"D\xE9place automatiquement les fichiers de ligne dans des sous-dossiers imbriqu\xE9s selon les valeurs des propri\xE9t\xE9s s\xE9lectionn\xE9es, dans l'ordre.",arr_settings_enabled_name:"Activer l'organisation par dossiers",arr_settings_enabled_desc:"Quand activ\xE9, les lignes sont d\xE9plac\xE9es d\xE8s qu'une des propri\xE9t\xE9s s\xE9lectionn\xE9es change. D\xE9sactiv\xE9 par d\xE9faut.",arr_settings_no_props:"Aucune propri\xE9t\xE9 s\xE9lectionn\xE9e. Ajoutez-en une ci-dessous pour d\xE9finir la hi\xE9rarchie de dossiers.",arr_settings_no_candidates:"Aucune colonne \xE9ligible. L'organisation par dossiers prend en charge les colonnes de texte, s\xE9lection, statut et date.",arr_settings_add_placeholder:"S\xE9lectionner une propri\xE9t\xE9...",arr_settings_add_btn:"Ajouter",arr_settings_preview_btn:"Aper\xE7u et application aux lignes existantes",arr_preview_title:"Aper\xE7u de l'organisation par dossiers",arr_preview_empty:"Aucune ligne ne doit \xEAtre d\xE9plac\xE9e.",arr_preview_desc:"$count ligne(s) seront d\xE9plac\xE9es :",arr_preview_filtered_note:"Seuls les fichiers visibles dans la vue actuelle seront pris en compte.",arr_preview_apply:"Appliquer",arr_preview_cancel:"Annuler",arr_preview_applied:"$count ligne(s) d\xE9plac\xE9e(s).",cmd_quick_add:"Ajouter rapidement une ligne \xE0 la base de donn\xE9es",quick_add_title:"Ajout rapide",quick_add_note_title:"Titre",quick_add_note_title_placeholder:"Titre de la note...",quick_add_create:"Cr\xE9er",quick_add_create_and_open:"Cr\xE9er et ouvrir",quick_add_no_visible_fields:"Aucun champ modifiable dans cette base de donn\xE9es",picker_placeholder:"S\xE9lectionner une base de donn\xE9es...",picker_root:"/ (Racine)",view_fallback_name:"Base de donn\xE9es",saving:"Enregistrement",saved:"Enregistr\xE9",save_error:"Erreur de sauvegarde",settings_page_size_name:"Lignes par page",settings_page_size_desc:'Nombre de lignes \xE0 afficher par page. D\xE9finissez "Toutes" pour le d\xE9filement continu',settings_page_size_all:"Toutes (d\xE9filement continu)",page_of:"Page {current} sur {total}",first_page:"Premi\xE8re page",last_page:"Derni\xE8re page",prev_page:"Page pr\xE9c\xE9dente",next_page:"Page suivante",conditional_formatting:"Mise en forme conditionnelle",no_conditional_formats:"Aucune r\xE8gle pour l'instant",add_rule:"Ajouter une r\xE8gle",select_value:"S\xE9lectionner une valeur",style:"Style",background:"Arri\xE8re-plan",text_color:"Couleur du texte",save:"Enregistrer",cancel:"Annuler",value:"Valeur",db_settings_open:"Param\xE8tres de la base de donn\xE9es",db_settings_title:"Param\xE8tres de la base de donn\xE9es",db_settings_template_name:"Mod\xE8le de ligne",db_settings_template_desc:"Applique ce mod\xE8le au corps de chaque nouvelle ligne cr\xE9\xE9e dans cette base de donn\xE9es.",db_settings_template_choose:"Choisir un mod\xE8le",db_settings_template_clear:"Effacer le mod\xE8le",db_settings_template_none:"Aucun mod\xE8le s\xE9lectionn\xE9",db_settings_template_folder_name:"Dossier de mod\xE8les",db_settings_template_folder_desc:"Afficher uniquement les mod\xE8les de ce dossier lors du choix d'un mod\xE8le pour cette base de donn\xE9es.",db_settings_template_folder_choose:"Choisir un dossier",db_settings_template_folder_none:"Tout le vault (aucune restriction)",db_settings_ask_name:"Demander un mod\xE8le \xE0 la cr\xE9ation",db_settings_ask_desc:"Demander un mod\xE8le \xE0 chaque ajout de ligne au lieu d'appliquer celui par d\xE9faut.",template_picker_placeholder:"Choisir un mod\xE8le...",template_picker_none:"Aucun mod\xE8le (corps vide)",folder_picker_placeholder:"Choisissez un dossier de destination..."},uf=by;var yy={view_table:"Tabelle",view_list:"Liste",view_board:"Board",view_gallery:"Galerie",view_calendar:"Kalender",view_timeline:"Zeitleiste",view_chart:"Diagramm",add_view:"Ansicht hinzuf\xFCgen",remove_view:"Ansicht entfernen",rename_view_hint:"Doppelklick zum Umbenennen",fields:"Felder",filter:"Filter",filters:"Filter",sort:"Sortieren",actions:"Aktionen",group_by:"Gruppieren nach",cover:"Titelbild",date_field:"Datum",start_field:"Start",end_field:"Ende",group_field:"Gruppe",fields_in_card:"Felder in der Karte",fields_label:"Felder",fields_on_bars:"Felder auf Balken",filter_by:"Filtern nach",sort_by:"Sortieren nach",group_by_label:"Gruppieren nach",date_field_label:"Datumsfeld",cover_field_label:"Titelbildfeld",card_size_label:"Kartengr\xF6\xDFe",row_height_label:"Zeilenh\xF6he",none_value:"Keine",no_value:"Kein Wert",no_cover:"Keine",size_small:"Klein",size_medium:"Mittel",size_large:"Gro\xDF",height_compact:"Kompakt",height_medium:"Mittel",height_tall:"Gro\xDF",add_filter_advanced:"Erweiterten Filter hinzuf\xFCgen",add_sort:"Sortierung hinzuf\xFCgen",no_active_sorts:"Keine aktiven Sortierungen",name_column:"Name",conjunction_and:"UND",conjunction_or:"ODER",filter_number_placeholder:"Zahl...",filter_value_placeholder:"Wert...",delete_selected:"Alle ausgew\xE4hlten l\xF6schen",move_selected:"Alle ausgew\xE4hlten verschieben",duplicate_selected:"Alle ausgew\xE4hlten duplizieren",export_csv:"CSV exportieren",import_csv:"CSV importieren",open_note:"Notiz \xF6ffnen",delete_note:"Notiz l\xF6schen",duplicate_note:"Notiz duplizieren",sort_asc:"Aufsteigend",sort_desc:"Absteigend",sort_asc_title:"Absteigend sortieren",sort_desc_title:"Sortierung entfernen",sort_none_title:"Aufsteigend sortieren",rename_column:"Umbenennen",edit_formula:"Formel bearbeiten",configure_lookup:"Lookup konfigurieren",configure_relation:"Relation konfigurieren",settings_clip_ellipsis_name:"Auslassungspunkte beim Abschneiden von Text anzeigen",settings_clip_ellipsis_desc:"Wenn deaktiviert, schneiden abgeschnittene Zellen den Text am Zellenrand ohne Auslassungspunkte ab, wie in einer Tabellenkalkulation.",format_number:"Zahl formatieren",format_date:"Datum formatieren",date_format_title:"Datumsformat",date_format_preset_label:"Voreinstellung",date_format_pattern_label:"Muster",date_format_custom:"Benutzerdefiniert",configure_image_folder:"Bildordner konfigurieren",field_type_label:"Feldtyp",hide_field:"Feld ausblenden",enable_wrap_text:"Text umbrechen",disable_wrap_text:"Umbruch deaktivieren",enable_clip_text:"Text abschneiden",disable_clip_text:"Abschneiden deaktivieren",delete_field:"Feld l\xF6schen",type_title:"Titel",type_text:"Text",type_number:"Zahl",type_select:"Auswahl",type_multiselect:"Mehrfachauswahl",type_date:"Datum",type_checkbox:"Checkbox",type_url:"URL",type_email:"E-Mail",type_phone:"Telefon",type_status:"Status",type_formula:"Formel",type_relation:"Relation",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Rollup konfigurieren",rollup_select_relation:"1. Relationsspalte",rollup_select_relation_placeholder:"Relation ausw\xE4hlen...",rollup_select_target:"2. Zielspalte",rollup_select_target_placeholder:"Spalte ausw\xE4hlen...",rollup_select_function:"3. Aggregation",rollup_no_relations:"Keine Relationsspalten gefunden. F\xFCgen Sie zuerst eine Relationsspalte hinzu.",rollup_fn_sum:"Summe",rollup_fn_count:"Anzahl",rollup_fn_avg:"Durchschnitt",rollup_fn_min:"Min",rollup_fn_max:"Max",rollup_fn_count_values:"Eindeutige z\xE4hlen",rollup_fn_list:"Alle auflisten",type_image:"Bild",type_audio:"Audio",audio_path_placeholder:"Pfad zur Audiodatei...",audio_select_placeholder:"Audio ausw\xE4hlen...",audio_picker_title:"Audio ausw\xE4hlen",audio_picker_clear:"L\xF6schen",audio_picker_empty_folder:"Keine Audiodateien im Ordner",audio_picker_empty_vault:"Keine Audiodateien im Vault",audio_panel_title:"Audioeinstellungen",audio_folder_label:"Quellordner (leer lassen f\xFCr den gesamten Vault)",audio_folder_placeholder:"Z.B.: audio/musik",configure_audio_folder:"Audioordner konfigurieren",type_video:"Video",video_select_placeholder:"Video ausw\xE4hlen...",video_picker_clear:"L\xF6schen",video_picker_empty_folder:"Keine Videodateien im Ordner",video_picker_empty_vault:"Keine Videodateien im Vault",video_panel_title:"Videoeinstellungen",video_folder_label:"Quellordner (leer lassen f\xFCr den gesamten Vault)",video_folder_placeholder:"Z.B.: video/clips",configure_video_folder:"Videoordner konfigurieren",formula_panel_title:"Formel",formula_placeholder:'Beispiel: if(status = "done", 1, 0)',formula_valid:"G\xFCltige Syntax",formula_available_cols:"Verf\xFCgbare Spalten:",formula_ref_toggle:"Funktionsreferenz",formula_save:"Speichern",formula_cancel:"Abbrechen",formula_save_hint:"Speichern (Strg+Eingabe)",formula_group_logic:"Logik",formula_group_comparators:"Vergleiche",formula_group_aggregators:"Aggregatoren",formula_group_text:"Text",formula_group_math:"Mathematik",formula_group_date:"Datum und Uhrzeit",formula_group_utils:"Hilfsfunktionen",formula_desc_if:"Gibt a zur\xFCck wenn cond wahr ist, sonst b",formula_desc_ifs:"Pr\xFCft Bedingungen der Reihe nach",formula_desc_and:"Wahr wenn alle wahr sind",formula_desc_or:"Wahr wenn mindestens eines wahr ist",formula_desc_not:"Kehrt den logischen Wert um",formula_desc_comparators:"Vergleicht zwei Werte; mit Bedingungen kombinieren",formula_desc_sum:"Summiert alle Werte der Spalte",formula_desc_avg:"Durchschnitt der Spaltenwerte",formula_desc_count:"Z\xE4hlt nicht leere Werte der Spalte",formula_desc_min:"Kleinster Wert der Spalte",formula_desc_max:"Gr\xF6\xDFter Wert der Spalte",formula_desc_concat:"Verkettet Texte (oder & verwenden)",formula_desc_len:"Anzahl der Zeichen",formula_desc_upper_lower:"Gro\xDFbuchstaben / Kleinbuchstaben",formula_desc_trim:"Entfernt f\xFChrende und nachfolgende Leerzeichen",formula_desc_left:"Erste n Zeichen",formula_desc_right:"Letzte n Zeichen",formula_desc_mid:"Teilstring ab Position",formula_desc_substitute:"Ersetzt Vorkommen",formula_desc_round:"Rundet n auf d Dezimalstellen",formula_desc_floor_ceil:"Rundet ab / auf",formula_desc_abs:"Absoluter Wert",formula_desc_mod:"Rest der Division",formula_desc_power:"Basis hoch Exponent",formula_desc_sqrt:"Quadratwurzel",formula_desc_now:"Aktuelles Datum und aktuelle Uhrzeit",formula_desc_today:"Aktuelles Datum um Mitternacht",formula_desc_date:"Erstellt ein Datum aus Jahr, Monat und Tag",formula_desc_date_parts:"Jahr / Monat / Tag eines Datums",formula_desc_time_parts:"Stunde / Minute eines Datums",formula_desc_weekday:"Wochentag (1 = Sonntag \u2026 7 = Samstag)",formula_desc_datedif:"Differenz zwischen zwei Daten in der angegebenen Einheit",formula_desc_dateadd:"Addiert n Einheiten zu einem Datum (Tage, Monate, Jahre\u2026)",formula_desc_formatdate:"Formatiert ein Datum mit einem Muster",formula_desc_isnull:"Wahr wenn v leer oder null ist",formula_desc_coalesce:"Erster nicht leerer Wert",formula_desc_text:"Konvertiert in Text",formula_desc_value:"Konvertiert in Zahl",number_format_title:"Format",number_decimals_label:"Dezimalstellen",number_thousands_label:"Tausendertrennzeichen",number_prefix_label:"Pr\xE4fix",number_suffix_label:"Suffix",number_prefix_placeholder:"Z.B.: $, \u20AC",number_suffix_placeholder:"Z.B.: %, kg, km",number_remove_format:"Formatierung entfernen",relation_panel_title:"Relation",lookup_panel_title:"Lookup",lookup_ref_table:"1. Referenztabelle",lookup_select_table:"Tabelle ausw\xE4hlen...",lookup_col_to_display:"2. Anzuzeigende Spalte",lookup_origin_col:"2. Quellfeld f\xFCr Werte",lookup_select_col:"Spalte ausw\xE4hlen...",lookup_file_name:"Dateiname",lookup_join_col:"3. Verkn\xFCpfungsspalte (diese Tabelle)",lookup_join_col_title:"Dateiname (Verkn\xFCpfung nach Titel)",lookup_select_join_col:"Spalte ausw\xE4hlen...",lookup_hint:"Der Wert dieser Spalte muss mit dem Dateinamen in der referenzierten Tabelle \xFCbereinstimmen",image_panel_title:"Bild",image_folder_label:"Quellordner (optional)",image_folder_placeholder:"Z.B.: images/covers",image_picker_title:"Bild ausw\xE4hlen",image_picker_clear:"L\xF6schen",image_picker_empty_vault:"Keine Bilder im Vault gefunden",image_picker_empty_folder:"Keine Bilder gefunden in",image_select_placeholder:"Bild ausw\xE4hlen\u2026",agg_none:"Keine",agg_count:"Anzahl",agg_count_values:"Werte z\xE4hlen",agg_sum:"Summe",agg_avg:"Durchschnitt",agg_min:"Min",agg_max:"Max",no_database_open:"Keine Datenbank ge\xF6ffnet.",no_database_hint:'Verwenden Sie die Schaltfl\xE4che in der Leiste oder den Befehl "Neue Datenbank erstellen".',loading:"Laden...",no_results:"Keine Eintr\xE4ge gefunden",item_singular:"Element",item_plural:"Elemente",row_singular:"Zeile",row_plural:"Zeilen",record_singular:"Datensatz",record_plural:"Datens\xE4tze",add_row:"Neue Zeile",add_entry:"Neuer Eintrag",add_card:"Neue Karte",new_field:"Neues Feld",add_field:"Feld hinzuf\xFCgen",board_no_select_col:"Das Board ben\xF6tigt eine Auswahl- oder Statusspalte zum Gruppieren der Karten.",board_add_select_hint:"F\xFCgen Sie eine Spalte dieses Typs in der Tabellenansicht hinzu und kehren Sie hierher zur\xFCck.",board_drag_reorder:"Ziehen zum Neuordnen",board_set_limit:"Klicken um Kartenlimit zu setzen",board_limit_placeholder:"Limit (0 = kein)",board_show_more:"Mehr",board_show_less:"Weniger anzeigen",hide_empty_cols:"Leere ausblenden",hide_no_value_cols:"Ohne Wert ausblenden",calendar_no_date_field:"W\xE4hlen Sie ein Datumsfeld in der Symbolleiste aus, um den Kalender anzuzeigen.",calendar_no_date_section:"Ohne Datum",calendar_click_to_create:"Klicken zum Erstellen einer Notiz",calendar_today:"Heute",calendar_prev_month:"Vorheriger Monat",calendar_next_month:"N\xE4chster Monat",calendar_view_month:"Monat",calendar_view_week:"Woche",calendar_prev_week:"Vorherige Woche",calendar_next_week:"N\xE4chste Woche",calendar_add_time:"Uhrzeit hinzuf\xFCgen",calendar_remove_time:"Uhrzeit entfernen",calendar_all_day:"Ganzt\xE4gig",day_sun:"So",day_mon:"Mo",day_tue:"Di",day_wed:"Mi",day_thu:"Do",day_fri:"Fr",day_sat:"Sa",month_january:"Januar",month_february:"Februar",month_march:"M\xE4rz",month_april:"April",month_may:"Mai",month_june:"Juni",month_july:"Juli",month_august:"August",month_september:"September",month_october:"Oktober",month_november:"November",month_december:"Dezember",timeline_no_start_field:"W\xE4hlen Sie ein Startfeld in der Symbolleiste aus, um die Zeitleiste anzuzeigen.",timeline_no_interval:"Kein Intervall",timeline_scroll_prev:"Zur\xFCck scrollen",timeline_scroll_next:"Vorw\xE4rts scrollen",zoom_days:"Tage",zoom_weeks:"Wochen",zoom_months:"Monate",month_short_jan:"Jan",month_short_feb:"Feb",month_short_mar:"M\xE4r",month_short_apr:"Apr",month_short_may:"Mai",month_short_jun:"Jun",month_short_jul:"Jul",month_short_aug:"Aug",month_short_sep:"Sep",month_short_oct:"Okt",month_short_nov:"Nov",month_short_dec:"Dez",hierarchy_toggle:"Als hierarchie verwenden",hierarchy_toggle_hint:"Erm\xF6glicht Eltern-Kind-Beziehungen zwischen Zeilen in dieser Datenbank",add_subrow:"Unterzeile hinzuf\xFCgen",collapse_all:"Alle einklappen",expand_all:"Alle ausklappen",max_depth_reached:"Maximale tiefe erreicht (3 Ebenen)",chart_configure:"Konfigurieren",chart_type:"Diagrammtyp",chart_type_bar:"Balken",chart_type_line:"Linie",chart_type_pie:"Kreis",chart_x_axis:"Kategorien (X-Achse)",chart_y_axis:"Werte (Y-Achse)",chart_aggregation:"Aggregation",chart_select_column:"Spalte ausw\xE4hlen...",chart_count_records:"Anzahl",chart_no_config:"Konfigurieren Sie das Diagramm, um zu beginnen.",chart_no_config_hint:"W\xE4hlen Sie oben in der Symbolleiste eine Spalte f\xFCr Kategorien aus.",tooltip_pin_column:"Spalten bis hier fixieren",tooltip_unpin_column:"Spalten l\xF6sen",tooltip_resize_column:"Ziehen zum \xC4ndern der Gr\xF6\xDFe; Doppelklick zum Anpassen",tooltip_wrap_text:"Textumbruch",tooltip_include_subfolders:"Unterordner einbeziehen",folder_column:"Ordner",tooltip_manage_fields:"Felder verwalten",tooltip_batch_actions:"Stapelaktionen",tooltip_remove_filter:"Filter entfernen",hide_filters:"Filter ausblenden",show_filters:"Filter anzeigen",filters_count_one:"1 filter",filters_count_other:"{n} filter",tooltip_drag_reorder:"Ziehen zum Neuordnen",tooltip_search:"Suchen",tooltip_toggle_and_or:"Klicken, um den logischen Operator zu wechseln",tooltip_close:"Schlie\xDFen",tooltip_remove:"Entfernen",tooltip_move_up:"Nach oben",tooltip_move_down:"Nach unten",tooltip_change_color:"Farbe \xE4ndern",tooltip_delete_status:"Status l\xF6schen",status_not_started:"Nicht begonnen",status_in_progress:"In Bearbeitung",status_done:"Erledigt",status_cancelled:"Abgebrochen",relation_search_placeholder:"Suchen...",relation_clear:"L\xF6schen",relation_no_results:"Keine Ergebnisse",relation_two_way:"Bidirektionale relation",relation_two_way_hint:"Erstellt automatisch eine umgekehrte Relation in der Zieldatenbank",select_clear:"L\xF6schen",select_create_placeholder:"Neue Option erstellen...",status_new_placeholder:"Neuer Status...",color_custom:"Benutzerdefiniert",validate_non_numeric:'Zelle(n) enthalten nicht-numerische Werte (z.B.: "',validate_invalid_dates:'Zelle(n) enthalten Werte, die keine g\xFCltigen Daten sind (z.B.: "',validate_invalid_checkbox:'Zelle(n) enthalten Werte, die mit Checkbox inkompatibel sind (z.B.: "',validate_multiselect_to_select:"Zeile(n) haben mehrere Werte ausgew\xE4hlt. Entfernen Sie die Extras, bevor Sie zur Einzelauswahl wechseln.",validate_invalid_email:'Zelle(n) enthalten Werte, die keine g\xFCltigen E-Mails sind (z.B.: "',validate_invalid_url:'Zelle(n) enthalten Werte, die keine g\xFCltigen URLs sind (z.B.: "',validate_invalid_phone:'Zelle(n) enthalten Werte, die keine g\xFCltigen Telefonnummern sind (z.B.: "',validate_type_change_prefix:"Typ\xE4nderung nicht m\xF6glich: ",email_invalid:"Ung\xFCltige E-Mail",op_is:"Ist",op_is_not:"Ist nicht",op_contains:"Enth\xE4lt",op_not_contains:"Enth\xE4lt nicht",op_starts_with:"Beginnt mit",op_ends_with:"Endet mit",op_is_empty:"Ist leer",op_is_not_empty:"Ist nicht leer",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"Ist aktiviert",op_is_unchecked:"Ist nicht aktiviert",settings_db_filename_name:"Datenbankdateiname",settings_db_filename_desc:"Name der speziellen Datei, die eine Datenbank in einem Ordner identifiziert.",settings_row_height_name:"Standard-Zeilenh\xF6he",settings_row_height_desc:"H\xF6he in Pixeln jeder Tabellenzeile.",settings_inline_fields_name:"Dataview-Inline-Felder lesen",settings_inline_fields_desc:"Liest key:: value-Felder aus dem Notiztext und zeigt sie als Spaltenwerte an (schreibgesch\xFCtzt)",db_untitled_note:"Unbenannt",db_copy_suffix:"(Kopie)",db_copy_suffix_n:"(Kopie $n)",db_already_exists:'Eine Datenbank existiert bereits in "$folder"',db_tip_body:"Diese Datei ist eine Datenbank. \xD6ffnen Sie sie, um die Tabellenansicht zu sehen.",formula_err_unclosed_string:"Nicht geschlossene Zeichenkette an Position $pos",formula_err_unclosed_bracket:"Nicht geschlossene Klammer an Position $pos",formula_err_unexpected_bang:"Unerwartetes Zeichen '!' an Position $pos",formula_err_unexpected_char:"Unerwartetes Zeichen '$char' an Position $pos",formula_err_expected_token:"Erwartet $expected, gefunden '$found' an Position $pos",formula_err_unexpected_token:"Unerwartetes Token '$token' an Position $pos",formula_err_circular_ref:'Zirkul\xE4re Referenz: "$name" ist eine Formelspalte',formula_err_unknown_fn:"Unbekannte Funktion: $fn()",formula_err_if_args:"Erwartet if(Bedingung, wenn_wahr, [wenn_falsch])",formula_err_avg_args:"Erwartet avg(Spalte) \u2014 ben\xF6tigt eine Spaltenreferenz als Argument",formula_err_count_args:"Erwartet count(Spalte) \u2014 ben\xF6tigt eine Spaltenreferenz als Argument",formula_err_mid_args:"Erwartet mid(Text, Start, L\xE4nge)",formula_err_mod_args:"Erwartet mod(Zahl, Divisor)",formula_err_sqrt_args:"Erwartet sqrt(Zahl)",formula_err_not_implemented:"Funktion nicht implementiert: $fn()",plugin_display_name:"Notion bases",no_databases_found:'Keine Datenbanken gefunden. Verwenden Sie den Befehl "Neue Datenbank erstellen", um eine zu erstellen.',cmd_open_database:"Datenbank f\xFCr diesen Ordner \xF6ffnen",cmd_create_database:"Neue Datenbank im aktuellen Ordner erstellen",ctx_create_database:"Datenbank hier erstellen",arr_settings_title:"Ordnerorganisation",arr_settings_desc:"Verschiebt Zeilendateien automatisch in verschachtelte Unterordner basierend auf den Werten der ausgew\xE4hlten Eigenschaften, in der angegebenen Reihenfolge.",arr_settings_enabled_name:"Ordnerorganisation aktivieren",arr_settings_enabled_desc:"Wenn aktiviert, werden Zeilen verschoben, sobald sich eine der ausgew\xE4hlten Eigenschaften \xE4ndert. Standardm\xE4\xDFig deaktiviert.",arr_settings_no_props:"Keine Eigenschaften ausgew\xE4hlt. F\xFCgen Sie unten eine hinzu, um die Ordnerhierarchie zu definieren.",arr_settings_no_candidates:"Keine geeigneten Spalten. Die Ordnerorganisation unterst\xFCtzt Text-, Auswahl-, Status- und Datumsspalten.",arr_settings_add_placeholder:"Eigenschaft ausw\xE4hlen...",arr_settings_add_btn:"Hinzuf\xFCgen",arr_settings_preview_btn:"Vorschau und auf bestehende Zeilen anwenden",arr_preview_title:"Vorschau der Ordnerorganisation",arr_preview_empty:"Keine Zeilen m\xFCssen verschoben werden.",arr_preview_desc:"$count Zeile(n) werden verschoben:",arr_preview_filtered_note:"Nur in der aktuellen Ansicht sichtbare Dateien werden ber\xFCcksichtigt.",arr_preview_apply:"Anwenden",arr_preview_cancel:"Abbrechen",arr_preview_applied:"$count Zeile(n) verschoben.",cmd_quick_add:"Zeile schnell zur Datenbank hinzuf\xFCgen",quick_add_title:"Schnell hinzuf\xFCgen",quick_add_note_title:"Titel",quick_add_note_title_placeholder:"Notiztitel...",quick_add_create:"Erstellen",quick_add_create_and_open:"Erstellen und \xF6ffnen",quick_add_no_visible_fields:"Keine bearbeitbaren Felder in dieser Datenbank",picker_placeholder:"Datenbank ausw\xE4hlen...",picker_root:"/ (Stammverzeichnis)",view_fallback_name:"Datenbank",saving:"Speichern",saved:"Gespeichert",save_error:"Speicherfehler",settings_page_size_name:"Zeilen pro Seite",settings_page_size_desc:'Anzahl der Zeilen pro Seite. Auf "Alle" setzen f\xFCr kontinuierliches Scrollen',settings_page_size_all:"Alle (kontinuierliches Scrollen)",page_of:"Seite {current} von {total}",first_page:"Erste Seite",last_page:"Letzte Seite",prev_page:"Vorherige Seite",next_page:"N\xE4chste Seite",conditional_formatting:"Bedingte formatierung",no_conditional_formats:"Noch keine regeln",add_rule:"Regel hinzuf\xFCgen",select_value:"Wert ausw\xE4hlen",style:"Stil",background:"Hintergrund",text_color:"Textfarbe",save:"Speichern",cancel:"Abbrechen",value:"Wert",db_settings_open:"Datenbankeinstellungen",db_settings_title:"Datenbankeinstellungen",db_settings_template_name:"Zeilenvorlage",db_settings_template_desc:"Wendet diese Vorlage auf den Inhalt jeder neuen Zeile in dieser Datenbank an.",db_settings_template_choose:"Vorlage w\xE4hlen",db_settings_template_clear:"Vorlage entfernen",db_settings_template_none:"Keine Vorlage ausgew\xE4hlt",db_settings_template_folder_name:"Vorlagenordner",db_settings_template_folder_desc:"Beim Ausw\xE4hlen einer Vorlage f\xFCr diese Datenbank nur Vorlagen aus diesem Ordner anzeigen.",db_settings_template_folder_choose:"Ordner w\xE4hlen",db_settings_template_folder_none:"Gesamter Vault (keine Einschr\xE4nkung)",db_settings_ask_name:"Vorlage beim Erstellen abfragen",db_settings_ask_desc:"Bei jeder neuen Zeile nach einer Vorlage fragen, anstatt die Standardvorlage anzuwenden.",template_picker_placeholder:"Vorlage ausw\xE4hlen...",template_picker_none:"Keine Vorlage (leerer Inhalt)",folder_picker_placeholder:"Zielordner ausw\xE4hlen..."},cf=yy;var wy={view_table:"\u8868\u683C",view_list:"\u5217\u8868",view_board:"\u770B\u677F",view_gallery:"\u753B\u5ECA",view_calendar:"\u65E5\u5386",view_timeline:"\u65F6\u95F4\u7EBF",view_chart:"\u56FE\u8868",add_view:"\u6DFB\u52A0\u89C6\u56FE",remove_view:"\u5220\u9664\u89C6\u56FE",rename_view_hint:"\u53CC\u51FB\u91CD\u547D\u540D",fields:"\u5B57\u6BB5",filter:"\u7B5B\u9009",filters:"\u7B5B\u9009",sort:"\u6392\u5E8F",actions:"\u64CD\u4F5C",group_by:"\u5206\u7EC4",cover:"\u5C01\u9762",date_field:"\u65E5\u671F",start_field:"\u5F00\u59CB",end_field:"\u7ED3\u675F",group_field:"\u5206\u7EC4",fields_in_card:"\u5361\u7247\u4E2D\u7684\u5B57\u6BB5",fields_label:"\u5B57\u6BB5",fields_on_bars:"\u6761\u5F62\u4E0A\u7684\u5B57\u6BB5",filter_by:"\u7B5B\u9009\u6761\u4EF6",sort_by:"\u6392\u5E8F\u6761\u4EF6",group_by_label:"\u5206\u7EC4\u6761\u4EF6",date_field_label:"\u65E5\u671F\u5B57\u6BB5",cover_field_label:"\u5C01\u9762\u5B57\u6BB5",card_size_label:"\u5361\u7247\u5927\u5C0F",row_height_label:"\u884C\u9AD8",none_value:"\u65E0",no_value:"\u65E0\u503C",no_cover:"\u65E0",size_small:"\u5C0F",size_medium:"\u4E2D",size_large:"\u5927",height_compact:"\u7D27\u51D1",height_medium:"\u4E2D\u7B49",height_tall:"\u9AD8",add_filter_advanced:"\u6DFB\u52A0\u9AD8\u7EA7\u7B5B\u9009",add_sort:"\u6DFB\u52A0\u6392\u5E8F",no_active_sorts:"\u65E0\u6D3B\u8DC3\u6392\u5E8F",name_column:"\u540D\u79F0",conjunction_and:"\u4E14",conjunction_or:"\u6216",filter_number_placeholder:"\u6570\u5B57...",filter_value_placeholder:"\u503C...",delete_selected:"\u5220\u9664\u6240\u6709\u9009\u4E2D\u9879",move_selected:"\u79FB\u52A8\u6240\u6709\u9009\u4E2D\u9879",duplicate_selected:"\u590D\u5236\u6240\u6709\u9009\u4E2D\u9879",export_csv:"\u5BFC\u51FA CSV",import_csv:"\u5BFC\u5165 CSV",open_note:"\u6253\u5F00\u7B14\u8BB0",delete_note:"\u5220\u9664\u7B14\u8BB0",duplicate_note:"\u590D\u5236\u7B14\u8BB0",sort_asc:"\u5347\u5E8F",sort_desc:"\u964D\u5E8F",sort_asc_title:"\u964D\u5E8F\u6392\u5217",sort_desc_title:"\u79FB\u9664\u6392\u5E8F",sort_none_title:"\u5347\u5E8F\u6392\u5217",rename_column:"\u91CD\u547D\u540D",edit_formula:"\u7F16\u8F91\u516C\u5F0F",configure_lookup:"\u914D\u7F6E lookup",configure_relation:"\u914D\u7F6E\u5173\u8054",settings_clip_ellipsis_name:"\u622A\u65AD\u6587\u672C\u65F6\u663E\u793A\u7701\u7565\u53F7",settings_clip_ellipsis_desc:"\u5173\u95ED\u65F6\uFF0C\u88AB\u622A\u65AD\u7684\u5355\u5143\u683C\u4F1A\u5728\u5355\u5143\u683C\u8FB9\u7F18\u76F4\u63A5\u622A\u65AD\u6587\u672C\uFF0C\u4E0D\u663E\u793A\u7701\u7565\u53F7\u5B57\u7B26\uFF0C\u7C7B\u4F3C\u7535\u5B50\u8868\u683C\u7684\u6548\u679C\u3002",format_number:"\u6570\u5B57\u683C\u5F0F",format_date:"\u65E5\u671F\u683C\u5F0F",date_format_title:"\u65E5\u671F\u683C\u5F0F",date_format_preset_label:"\u9884\u8BBE",date_format_pattern_label:"\u683C\u5F0F\u6A21\u677F",date_format_custom:"\u81EA\u5B9A\u4E49",configure_image_folder:"\u914D\u7F6E\u56FE\u7247\u6587\u4EF6\u5939",field_type_label:"\u5B57\u6BB5\u7C7B\u578B",hide_field:"\u9690\u85CF\u5B57\u6BB5",enable_wrap_text:"\u81EA\u52A8\u6362\u884C",disable_wrap_text:"\u53D6\u6D88\u6362\u884C",enable_clip_text:"\u622A\u65AD\u6587\u672C",disable_clip_text:"\u53D6\u6D88\u622A\u65AD",delete_field:"\u5220\u9664\u5B57\u6BB5",type_title:"\u6807\u9898",type_text:"\u6587\u672C",type_number:"\u6570\u5B57",type_select:"\u5355\u9009",type_multiselect:"\u591A\u9009",type_date:"\u65E5\u671F",type_checkbox:"\u590D\u9009\u6846",type_url:"URL",type_email:"\u90AE\u7BB1",type_phone:"\u7535\u8BDD",type_status:"\u72B6\u6001",type_formula:"\u516C\u5F0F",type_relation:"\u5173\u8054",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"\u914D\u7F6E rollup",rollup_select_relation:"1. \u5173\u8054\u5217",rollup_select_relation_placeholder:"\u9009\u62E9\u5173\u8054...",rollup_select_target:"2. \u76EE\u6807\u5217",rollup_select_target_placeholder:"\u9009\u62E9\u5217...",rollup_select_function:"3. \u805A\u5408\u51FD\u6570",rollup_no_relations:"\u672A\u627E\u5230\u5173\u8054\u5217\u3002\u8BF7\u5148\u6DFB\u52A0\u4E00\u4E2A\u5173\u8054\u5217\u3002",rollup_fn_sum:"\u6C42\u548C",rollup_fn_count:"\u8BA1\u6570",rollup_fn_avg:"\u5E73\u5747\u503C",rollup_fn_min:"\u6700\u5C0F\u503C",rollup_fn_max:"\u6700\u5927\u503C",rollup_fn_count_values:"\u8BA1\u552F\u4E00\u503C",rollup_fn_list:"\u5217\u51FA\u5168\u90E8",type_image:"\u56FE\u7247",type_audio:"\u97F3\u9891",audio_path_placeholder:"\u97F3\u9891\u6587\u4EF6\u8DEF\u5F84...",audio_select_placeholder:"\u9009\u62E9\u97F3\u9891...",audio_picker_title:"\u9009\u62E9\u97F3\u9891",audio_picker_clear:"\u6E05\u9664",audio_picker_empty_folder:"\u6587\u4EF6\u5939\u4E2D\u6CA1\u6709\u97F3\u9891\u6587\u4EF6",audio_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u6CA1\u6709\u97F3\u9891\u6587\u4EF6",audio_panel_title:"\u97F3\u9891\u8BBE\u7F6E",audio_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u6574\u4E2A\u4ED3\u5E93\uFF09",audio_folder_placeholder:"\u4F8B\uFF1Aaudio/music",configure_audio_folder:"\u914D\u7F6E\u97F3\u9891\u6587\u4EF6\u5939",type_video:"\u89C6\u9891",video_select_placeholder:"\u9009\u62E9\u89C6\u9891...",video_picker_clear:"\u6E05\u9664",video_picker_empty_folder:"\u6587\u4EF6\u5939\u4E2D\u6CA1\u6709\u89C6\u9891\u6587\u4EF6",video_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u6CA1\u6709\u89C6\u9891\u6587\u4EF6",video_panel_title:"\u89C6\u9891\u8BBE\u7F6E",video_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u6574\u4E2A\u4ED3\u5E93\uFF09",video_folder_placeholder:"\u4F8B\uFF1Avideo/clips",configure_video_folder:"\u914D\u7F6E\u89C6\u9891\u6587\u4EF6\u5939",formula_panel_title:"\u516C\u5F0F",formula_placeholder:'\u793A\u4F8B\uFF1Aif(status = "done", 1, 0)',formula_valid:"\u8BED\u6CD5\u6B63\u786E",formula_available_cols:"\u53EF\u7528\u5217\uFF1A",formula_ref_toggle:"\u51FD\u6570\u53C2\u8003",formula_save:"\u4FDD\u5B58",formula_cancel:"\u53D6\u6D88",formula_save_hint:"\u4FDD\u5B58 (Ctrl+Enter)",formula_group_logic:"\u903B\u8F91",formula_group_comparators:"\u6BD4\u8F83",formula_group_aggregators:"\u805A\u5408",formula_group_text:"\u6587\u672C",formula_group_math:"\u6570\u5B66",formula_group_date:"\u65E5\u671F\u548C\u65F6\u95F4",formula_group_utils:"\u5DE5\u5177",formula_desc_if:"\u82E5 cond \u4E3A\u771F\u5219\u8FD4\u56DE a\uFF0C\u5426\u5219\u8FD4\u56DE b",formula_desc_ifs:"\u6309\u987A\u5E8F\u6D4B\u8BD5\u6761\u4EF6",formula_desc_and:"\u6240\u6709\u6761\u4EF6\u4E3A\u771F\u65F6\u8FD4\u56DE\u771F",formula_desc_or:"\u4EFB\u4E00\u6761\u4EF6\u4E3A\u771F\u65F6\u8FD4\u56DE\u771F",formula_desc_not:"\u53CD\u8F6C\u903B\u8F91\u503C",formula_desc_comparators:"\u6BD4\u8F83\u4E24\u4E2A\u503C\uFF1B\u4E0E\u6761\u4EF6\u8BED\u53E5\u914D\u5408\u4F7F\u7528",formula_desc_sum:"\u5BF9\u5217\u4E2D\u6240\u6709\u503C\u6C42\u548C",formula_desc_avg:"\u5217\u4E2D\u503C\u7684\u5E73\u5747\u6570",formula_desc_count:"\u7EDF\u8BA1\u5217\u4E2D\u975E\u7A7A\u503C\u7684\u6570\u91CF",formula_desc_min:"\u5217\u4E2D\u7684\u6700\u5C0F\u503C",formula_desc_max:"\u5217\u4E2D\u7684\u6700\u5927\u503C",formula_desc_concat:"\u62FC\u63A5\u6587\u672C\uFF08\u4E5F\u53EF\u4F7F\u7528 &\uFF09",formula_desc_len:"\u5B57\u7B26\u6570",formula_desc_upper_lower:"\u8F6C\u4E3A\u5927\u5199 / \u5C0F\u5199",formula_desc_trim:"\u5220\u9664\u9996\u5C3E\u7A7A\u767D\u5B57\u7B26",formula_desc_left:"\u524D n \u4E2A\u5B57\u7B26",formula_desc_right:"\u540E n \u4E2A\u5B57\u7B26",formula_desc_mid:"\u4ECE\u6307\u5B9A\u4F4D\u7F6E\u622A\u53D6\u5B50\u5B57\u7B26\u4E32",formula_desc_substitute:"\u66FF\u6362\u5339\u914D\u7684\u5185\u5BB9",formula_desc_round:"\u5C06 n \u56DB\u820D\u4E94\u5165\u5230 d \u4F4D\u5C0F\u6570",formula_desc_floor_ceil:"\u5411\u4E0B\u53D6\u6574 / \u5411\u4E0A\u53D6\u6574",formula_desc_abs:"\u7EDD\u5BF9\u503C",formula_desc_mod:"\u9664\u6CD5\u4F59\u6570",formula_desc_power:"\u5E95\u6570\u7684\u6307\u6570\u6B21\u5E42",formula_desc_sqrt:"\u5E73\u65B9\u6839",formula_desc_now:"\u5F53\u524D\u65E5\u671F\u548C\u65F6\u95F4",formula_desc_today:"\u5F53\u5929\u96F6\u70B9\u7684\u65E5\u671F",formula_desc_date:"\u6839\u636E\u5E74\u3001\u6708\u3001\u65E5\u521B\u5EFA\u65E5\u671F",formula_desc_date_parts:"\u65E5\u671F\u7684\u5E74 / \u6708 / \u65E5",formula_desc_time_parts:"\u65E5\u671F\u7684\u65F6 / \u5206",formula_desc_weekday:"\u661F\u671F\u51E0\uFF081 = \u661F\u671F\u65E5 \u2026 7 = \u661F\u671F\u516D\uFF09",formula_desc_datedif:"\u4E24\u4E2A\u65E5\u671F\u5728\u6307\u5B9A\u5355\u4F4D\u4E0B\u7684\u5DEE\u503C",formula_desc_dateadd:"\u4E3A\u65E5\u671F\u52A0\u4E0A n \u4E2A\u5355\u4F4D\uFF08\u5929\u3001\u6708\u3001\u5E74\u2026\u2026\uFF09",formula_desc_formatdate:"\u6309\u6307\u5B9A\u6A21\u5F0F\u683C\u5F0F\u5316\u65E5\u671F",formula_desc_isnull:"\u82E5 v \u4E3A\u7A7A\u6216 null \u5219\u4E3A\u771F",formula_desc_coalesce:"\u7B2C\u4E00\u4E2A\u975E\u7A7A\u503C",formula_desc_text:"\u8F6C\u6362\u4E3A\u6587\u672C",formula_desc_value:"\u8F6C\u6362\u4E3A\u6570\u5B57",number_format_title:"\u683C\u5F0F",number_decimals_label:"\u5C0F\u6570\u4F4D\u6570",number_thousands_label:"\u5343\u4F4D\u5206\u9694\u7B26",number_prefix_label:"\u524D\u7F00",number_suffix_label:"\u540E\u7F00",number_prefix_placeholder:"\u4F8B\uFF1A$\u3001\xA5",number_suffix_placeholder:"\u4F8B\uFF1A%\u3001kg\u3001km",number_remove_format:"\u79FB\u9664\u683C\u5F0F",relation_panel_title:"\u5173\u8054",lookup_panel_title:"Lookup",lookup_ref_table:"1. \u5F15\u7528\u8868",lookup_select_table:"\u9009\u62E9\u8868...",lookup_col_to_display:"2. \u663E\u793A\u5217",lookup_origin_col:"2. \u503C\u7684\u6765\u6E90\u5B57\u6BB5",lookup_select_col:"\u9009\u62E9\u5217...",lookup_file_name:"\u6587\u4EF6\u540D",lookup_join_col:"3. \u8FDE\u63A5\u5217\uFF08\u672C\u8868\uFF09",lookup_join_col_title:"\u6587\u4EF6\u540D\uFF08\u6309\u6807\u9898\u8FDE\u63A5\uFF09",lookup_select_join_col:"\u9009\u62E9\u5217...",lookup_hint:"\u6B64\u5217\u7684\u503C\u5FC5\u987B\u4E0E\u5F15\u7528\u8868\u4E2D\u7684\u6587\u4EF6\u540D\u5339\u914D",image_panel_title:"\u56FE\u7247",image_folder_label:"\u6765\u6E90\u6587\u4EF6\u5939\uFF08\u53EF\u9009\uFF09",image_folder_placeholder:"\u4F8B\uFF1Aimages/covers",image_picker_title:"\u9009\u62E9\u56FE\u7247",image_picker_clear:"\u6E05\u9664",image_picker_empty_vault:"\u4ED3\u5E93\u4E2D\u672A\u627E\u5230\u56FE\u7247",image_picker_empty_folder:"\u672A\u627E\u5230\u56FE\u7247\u4E8E",image_select_placeholder:"\u9009\u62E9\u56FE\u7247\u2026",agg_none:"\u65E0",agg_count:"\u8BA1\u6570",agg_count_values:"\u8BA1\u6570\u503C",agg_sum:"\u6C42\u548C",agg_avg:"\u5E73\u5747\u503C",agg_min:"\u6700\u5C0F\u503C",agg_max:"\u6700\u5927\u503C",no_database_open:"\u672A\u6253\u5F00\u6570\u636E\u5E93\u3002",no_database_hint:'\u4F7F\u7528\u5DE5\u5177\u680F\u6309\u94AE\u6216"\u521B\u5EFA\u65B0\u6570\u636E\u5E93"\u547D\u4EE4\u3002',loading:"\u52A0\u8F7D\u4E2D...",no_results:"\u672A\u627E\u5230\u9879\u76EE",item_singular:"\u9879",item_plural:"\u9879",row_singular:"\u884C",row_plural:"\u884C",record_singular:"\u8BB0\u5F55",record_plural:"\u8BB0\u5F55",add_row:"\u65B0\u5EFA\u884C",add_entry:"\u65B0\u5EFA\u6761\u76EE",add_card:"\u65B0\u5EFA\u5361\u7247",new_field:"\u65B0\u5B57\u6BB5",add_field:"\u6DFB\u52A0\u5B57\u6BB5",board_no_select_col:"\u770B\u677F\u9700\u8981\u4E00\u4E2A\u5355\u9009\u6216\u72B6\u6001\u5217\u6765\u5206\u7EC4\u5361\u7247\u3002",board_add_select_hint:"\u5728\u8868\u683C\u89C6\u56FE\u4E2D\u6DFB\u52A0\u8BE5\u7C7B\u578B\u7684\u5217\uFF0C\u7136\u540E\u56DE\u5230\u8FD9\u91CC\u3002",board_drag_reorder:"\u62D6\u52A8\u4EE5\u91CD\u65B0\u6392\u5E8F",board_set_limit:"\u70B9\u51FB\u8BBE\u7F6E\u5361\u7247\u9650\u5236",board_limit_placeholder:"\u9650\u5236 (0 = \u65E0)",board_show_more:"\u66F4\u591A",board_show_less:"\u6536\u8D77",hide_empty_cols:"\u9690\u85CF\u7A7A\u5217",hide_no_value_cols:"\u9690\u85CF\u65E0\u503C\u5217",calendar_no_date_field:"\u5728\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u65E5\u671F\u5B57\u6BB5\u4EE5\u663E\u793A\u65E5\u5386\u3002",calendar_no_date_section:"\u65E0\u65E5\u671F",calendar_click_to_create:"\u70B9\u51FB\u521B\u5EFA\u7B14\u8BB0",calendar_today:"\u4ECA\u5929",calendar_prev_month:"\u4E0A\u4E2A\u6708",calendar_next_month:"\u4E0B\u4E2A\u6708",calendar_view_month:"\u6708",calendar_view_week:"\u5468",calendar_prev_week:"\u4E0A\u4E00\u5468",calendar_next_week:"\u4E0B\u4E00\u5468",calendar_add_time:"\u6DFB\u52A0\u65F6\u95F4",calendar_remove_time:"\u79FB\u9664\u65F6\u95F4",calendar_all_day:"\u5168\u5929",day_sun:"\u65E5",day_mon:"\u4E00",day_tue:"\u4E8C",day_wed:"\u4E09",day_thu:"\u56DB",day_fri:"\u4E94",day_sat:"\u516D",month_january:"\u4E00\u6708",month_february:"\u4E8C\u6708",month_march:"\u4E09\u6708",month_april:"\u56DB\u6708",month_may:"\u4E94\u6708",month_june:"\u516D\u6708",month_july:"\u4E03\u6708",month_august:"\u516B\u6708",month_september:"\u4E5D\u6708",month_october:"\u5341\u6708",month_november:"\u5341\u4E00\u6708",month_december:"\u5341\u4E8C\u6708",timeline_no_start_field:"\u5728\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u5F00\u59CB\u5B57\u6BB5\u4EE5\u663E\u793A\u65F6\u95F4\u7EBF\u3002",timeline_no_interval:"\u65E0\u95F4\u9694",timeline_scroll_prev:"\u5411\u524D\u6EDA\u52A8",timeline_scroll_next:"\u5411\u540E\u6EDA\u52A8",zoom_days:"\u5929",zoom_weeks:"\u5468",zoom_months:"\u6708",month_short_jan:"1\u6708",month_short_feb:"2\u6708",month_short_mar:"3\u6708",month_short_apr:"4\u6708",month_short_may:"5\u6708",month_short_jun:"6\u6708",month_short_jul:"7\u6708",month_short_aug:"8\u6708",month_short_sep:"9\u6708",month_short_oct:"10\u6708",month_short_nov:"11\u6708",month_short_dec:"12\u6708",hierarchy_toggle:"\u7528\u4F5C\u5C42\u7EA7",hierarchy_toggle_hint:"\u542F\u7528\u6B64\u6570\u636E\u5E93\u4E2D\u884C\u4E4B\u95F4\u7684\u7236\u5B50\u5173\u7CFB",add_subrow:"\u6DFB\u52A0\u5B50\u884C",collapse_all:"\u5168\u90E8\u6298\u53E0",expand_all:"\u5168\u90E8\u5C55\u5F00",max_depth_reached:"\u5DF2\u8FBE\u5230\u6700\u5927\u6DF1\u5EA6\uFF083 \u5C42\uFF09",chart_configure:"\u914D\u7F6E",chart_type:"\u56FE\u8868\u7C7B\u578B",chart_type_bar:"\u67F1\u72B6\u56FE",chart_type_line:"\u6298\u7EBF\u56FE",chart_type_pie:"\u997C\u56FE",chart_x_axis:"\u5206\u7C7B (X \u8F74)",chart_y_axis:"\u6570\u503C (Y \u8F74)",chart_aggregation:"\u805A\u5408",chart_select_column:"\u9009\u62E9\u5217...",chart_count_records:"\u8BA1\u6570",chart_no_config:"\u8BF7\u914D\u7F6E\u56FE\u8868\u4EE5\u5F00\u59CB\u4F7F\u7528\u3002",chart_no_config_hint:"\u5728\u4E0A\u65B9\u5DE5\u5177\u680F\u4E2D\u9009\u62E9\u4E00\u4E2A\u5206\u7C7B\u5217\u3002",tooltip_pin_column:"\u56FA\u5B9A\u5230\u6B64\u5217",tooltip_unpin_column:"\u53D6\u6D88\u56FA\u5B9A\u5217",tooltip_resize_column:"\u62D6\u52A8\u8C03\u6574\u5927\u5C0F\uFF1B\u53CC\u51FB\u9002\u5E94\u5185\u5BB9",tooltip_wrap_text:"\u6587\u5B57\u6362\u884C",tooltip_include_subfolders:"\u5305\u542B\u5B50\u6587\u4EF6\u5939",folder_column:"\u6587\u4EF6\u5939",tooltip_manage_fields:"\u7BA1\u7406\u5B57\u6BB5",tooltip_batch_actions:"\u6279\u91CF\u64CD\u4F5C",tooltip_remove_filter:"\u79FB\u9664\u7B5B\u9009",hide_filters:"\u9690\u85CF\u7B5B\u9009",show_filters:"\u663E\u793A\u7B5B\u9009",filters_count_one:"1 \u4E2A\u7B5B\u9009",filters_count_other:"{n} \u4E2A\u7B5B\u9009",tooltip_drag_reorder:"\u62D6\u52A8\u4EE5\u91CD\u65B0\u6392\u5E8F",tooltip_search:"\u641C\u7D22",tooltip_toggle_and_or:"\u70B9\u51FB\u5207\u6362\u903B\u8F91\u8FD0\u7B97\u7B26",tooltip_close:"\u5173\u95ED",tooltip_remove:"\u79FB\u9664",tooltip_move_up:"\u4E0A\u79FB",tooltip_move_down:"\u4E0B\u79FB",tooltip_change_color:"\u66F4\u6539\u989C\u8272",tooltip_delete_status:"\u5220\u9664\u72B6\u6001",status_not_started:"\u672A\u5F00\u59CB",status_in_progress:"\u8FDB\u884C\u4E2D",status_done:"\u5DF2\u5B8C\u6210",status_cancelled:"\u5DF2\u53D6\u6D88",relation_search_placeholder:"\u641C\u7D22...",relation_clear:"\u6E05\u9664",relation_no_results:"\u65E0\u7ED3\u679C",relation_two_way:"\u53CC\u5411\u5173\u8054",relation_two_way_hint:"\u81EA\u52A8\u5728\u76EE\u6807\u6570\u636E\u5E93\u4E2D\u521B\u5EFA\u53CD\u5411\u5173\u8054",select_clear:"\u6E05\u9664",select_create_placeholder:"\u521B\u5EFA\u65B0\u9009\u9879...",status_new_placeholder:"\u65B0\u72B6\u6001...",color_custom:"\u81EA\u5B9A\u4E49",validate_non_numeric:'\u5355\u5143\u683C\u5305\u542B\u975E\u6570\u5B57\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_dates:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u65E5\u671F\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_checkbox:'\u5355\u5143\u683C\u5305\u542B\u4E0E\u590D\u9009\u6846\u4E0D\u517C\u5BB9\u7684\u503C\uFF08\u4F8B\uFF1A"',validate_multiselect_to_select:"\u884C\u6709\u591A\u4E2A\u9009\u4E2D\u503C\u3002\u8BF7\u5728\u5207\u6362\u5230\u5355\u9009\u524D\u79FB\u9664\u591A\u4F59\u7684\u503C\u3002",validate_invalid_email:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u90AE\u7BB1\u503C\uFF08\u4F8B\uFF1A"',validate_invalid_url:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548 URL \u503C\uFF08\u4F8B\uFF1A"',validate_invalid_phone:'\u5355\u5143\u683C\u5305\u542B\u65E0\u6548\u7535\u8BDD\u53F7\u7801\uFF08\u4F8B\uFF1A"',validate_type_change_prefix:"\u65E0\u6CD5\u66F4\u6539\u7C7B\u578B\uFF1A",email_invalid:"\u65E0\u6548\u90AE\u7BB1",op_is:"\u7B49\u4E8E",op_is_not:"\u4E0D\u7B49\u4E8E",op_contains:"\u5305\u542B",op_not_contains:"\u4E0D\u5305\u542B",op_starts_with:"\u5F00\u5934\u662F",op_ends_with:"\u7ED3\u5C3E\u662F",op_is_empty:"\u4E3A\u7A7A",op_is_not_empty:"\u4E0D\u4E3A\u7A7A",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"\u5DF2\u52FE\u9009",op_is_unchecked:"\u672A\u52FE\u9009",settings_db_filename_name:"\u6570\u636E\u5E93\u6587\u4EF6\u540D",settings_db_filename_desc:"\u7528\u4E8E\u6807\u8BC6\u6587\u4EF6\u5939\u4E2D\u6570\u636E\u5E93\u7684\u7279\u6B8A\u6587\u4EF6\u540D\u3002",settings_row_height_name:"\u9ED8\u8BA4\u884C\u9AD8",settings_row_height_desc:"\u6BCF\u4E2A\u8868\u683C\u884C\u7684\u50CF\u7D20\u9AD8\u5EA6\u3002",settings_inline_fields_name:"\u8BFB\u53D6 dataview \u5185\u8054\u5B57\u6BB5",settings_inline_fields_desc:"\u89E3\u6790\u7B14\u8BB0\u6B63\u6587\u4E2D\u7684 key:: value \u5B57\u6BB5\u5E76\u5C06\u5176\u663E\u793A\u4E3A\u5217\u503C\uFF08\u53EA\u8BFB\uFF09",db_untitled_note:"\u672A\u547D\u540D",db_copy_suffix:"(\u526F\u672C)",db_copy_suffix_n:"(\u526F\u672C $n)",db_already_exists:'"$folder" \u4E2D\u5DF2\u5B58\u5728\u6570\u636E\u5E93',db_tip_body:"\u6B64\u6587\u4EF6\u662F\u4E00\u4E2A\u6570\u636E\u5E93\u3002\u6253\u5F00\u5B83\u4EE5\u67E5\u770B\u8868\u683C\u89C6\u56FE\u3002",formula_err_unclosed_string:"\u4F4D\u7F6E $pos \u5904\u5B57\u7B26\u4E32\u672A\u5173\u95ED",formula_err_unclosed_bracket:"\u4F4D\u7F6E $pos \u5904\u62EC\u53F7\u672A\u5173\u95ED",formula_err_unexpected_bang:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u5B57\u7B26 '!'",formula_err_unexpected_char:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u5B57\u7B26 '$char'",formula_err_expected_token:"\u4F4D\u7F6E $pos \u5904\u671F\u671B $expected\uFF0C\u627E\u5230 '$found'",formula_err_unexpected_token:"\u4F4D\u7F6E $pos \u5904\u51FA\u73B0\u610F\u5916\u6807\u8BB0 '$token'",formula_err_circular_ref:'\u5FAA\u73AF\u5F15\u7528\uFF1A"$name" \u662F\u4E00\u4E2A\u516C\u5F0F\u5217',formula_err_unknown_fn:"\u672A\u77E5\u51FD\u6570\uFF1A$fn()",formula_err_if_args:"\u671F\u671B if(\u6761\u4EF6, \u771F\u503C, [\u5047\u503C])",formula_err_avg_args:"\u671F\u671B avg(\u5217) \u2014 \u9700\u8981\u5217\u5F15\u7528\u4F5C\u4E3A\u53C2\u6570",formula_err_count_args:"\u671F\u671B count(\u5217) \u2014 \u9700\u8981\u5217\u5F15\u7528\u4F5C\u4E3A\u53C2\u6570",formula_err_mid_args:"\u671F\u671B mid(\u6587\u672C, \u8D77\u59CB, \u957F\u5EA6)",formula_err_mod_args:"\u671F\u671B mod(\u6570\u5B57, \u9664\u6570)",formula_err_sqrt_args:"\u671F\u671B sqrt(\u6570\u5B57)",formula_err_not_implemented:"\u51FD\u6570\u672A\u5B9E\u73B0\uFF1A$fn()",plugin_display_name:"Notion bases",no_databases_found:'\u672A\u627E\u5230\u6570\u636E\u5E93\u3002\u4F7F\u7528"\u521B\u5EFA\u65B0\u6570\u636E\u5E93"\u547D\u4EE4\u6765\u521B\u5EFA\u4E00\u4E2A\u3002',cmd_open_database:"\u6253\u5F00\u6B64\u6587\u4EF6\u5939\u7684\u6570\u636E\u5E93",cmd_create_database:"\u5728\u5F53\u524D\u6587\u4EF6\u5939\u521B\u5EFA\u65B0\u6570\u636E\u5E93",ctx_create_database:"\u5728\u6B64\u5904\u521B\u5EFA\u6570\u636E\u5E93",arr_settings_title:"\u6587\u4EF6\u5939\u6392\u5217",arr_settings_desc:"\u6839\u636E\u6240\u9009\u5C5E\u6027\u7684\u503C\uFF0C\u6309\u987A\u5E8F\u81EA\u52A8\u5C06\u884C\u6587\u4EF6\u79FB\u52A8\u5230\u5D4C\u5957\u5B50\u6587\u4EF6\u5939\u4E2D\u3002",arr_settings_enabled_name:"\u542F\u7528\u6587\u4EF6\u5939\u6392\u5217",arr_settings_enabled_desc:"\u542F\u7528\u540E\uFF0C\u6240\u9009\u5C5E\u6027\u4E4B\u4E00\u53D1\u751F\u66F4\u6539\u65F6\u7ACB\u5373\u79FB\u52A8\u884C\u3002\u9ED8\u8BA4\u5173\u95ED\u3002",arr_settings_no_props:"\u672A\u9009\u62E9\u4EFB\u4F55\u5C5E\u6027\u3002\u8BF7\u5728\u4E0B\u65B9\u6DFB\u52A0\u4E00\u4E2A\u4EE5\u5B9A\u4E49\u6587\u4EF6\u5939\u5C42\u7EA7\u3002",arr_settings_no_candidates:"\u6CA1\u6709\u53EF\u7528\u5217\u3002\u6587\u4EF6\u5939\u6392\u5217\u652F\u6301\u6587\u672C\u3001\u9009\u62E9\u3001\u72B6\u6001\u548C\u65E5\u671F\u5217\u3002",arr_settings_add_placeholder:"\u9009\u62E9\u4E00\u4E2A\u5C5E\u6027...",arr_settings_add_btn:"\u6DFB\u52A0",arr_settings_preview_btn:"\u9884\u89C8\u5E76\u5E94\u7528\u5230\u73B0\u6709\u884C",arr_preview_title:"\u6587\u4EF6\u5939\u6392\u5217\u9884\u89C8",arr_preview_empty:"\u6CA1\u6709\u9700\u8981\u79FB\u52A8\u7684\u884C\u3002",arr_preview_desc:"\u5C06\u79FB\u52A8 $count \u884C\uFF1A",arr_preview_filtered_note:"\u4EC5\u8003\u8651\u5F53\u524D\u89C6\u56FE\u4E2D\u53EF\u89C1\u7684\u6587\u4EF6\u3002",arr_preview_apply:"\u5E94\u7528",arr_preview_cancel:"\u53D6\u6D88",arr_preview_applied:"\u5DF2\u79FB\u52A8 $count \u884C\u3002",cmd_quick_add:"\u5FEB\u901F\u5411\u6570\u636E\u5E93\u6DFB\u52A0\u884C",quick_add_title:"\u5FEB\u901F\u6DFB\u52A0",quick_add_note_title:"\u6807\u9898",quick_add_note_title_placeholder:"\u7B14\u8BB0\u6807\u9898...",quick_add_create:"\u521B\u5EFA",quick_add_create_and_open:"\u521B\u5EFA\u5E76\u6253\u5F00",quick_add_no_visible_fields:"\u6B64\u6570\u636E\u5E93\u4E2D\u6CA1\u6709\u53EF\u7F16\u8F91\u5B57\u6BB5",picker_placeholder:"\u9009\u62E9\u6570\u636E\u5E93...",picker_root:"/\uFF08\u6839\u76EE\u5F55\uFF09",view_fallback_name:"\u6570\u636E\u5E93",saving:"\u4FDD\u5B58\u4E2D",saved:"\u5DF2\u4FDD\u5B58",save_error:"\u4FDD\u5B58\u5931\u8D25",settings_page_size_name:"\u6BCF\u9875\u884C\u6570",settings_page_size_desc:'\u6BCF\u9875\u663E\u793A\u7684\u884C\u6570\u3002\u8BBE\u7F6E\u4E3A"\u5168\u90E8"\u4EE5\u542F\u7528\u8FDE\u7EED\u6EDA\u52A8',settings_page_size_all:"\u5168\u90E8\uFF08\u8FDE\u7EED\u6EDA\u52A8\uFF09",page_of:"\u7B2C {current} \u9875\uFF0C\u5171 {total} \u9875",first_page:"\u7B2C\u4E00\u9875",last_page:"\u6700\u540E\u4E00\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",conditional_formatting:"\u6761\u4EF6\u683C\u5F0F",no_conditional_formats:"\u6682\u65E0\u89C4\u5219",add_rule:"\u6DFB\u52A0\u89C4\u5219",select_value:"\u9009\u62E9\u4E00\u4E2A\u503C",style:"\u6837\u5F0F",background:"\u80CC\u666F",text_color:"\u6587\u5B57\u989C\u8272",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",value:"\u503C",db_settings_open:"\u6570\u636E\u5E93\u8BBE\u7F6E",db_settings_title:"\u6570\u636E\u5E93\u8BBE\u7F6E",db_settings_template_name:"\u884C\u6A21\u677F",db_settings_template_desc:"\u5C06\u6B64\u6A21\u677F\u5E94\u7528\u4E8E\u5728\u6B64\u6570\u636E\u5E93\u4E2D\u521B\u5EFA\u7684\u6BCF\u4E00\u65B0\u884C\u7684\u6B63\u6587\u3002",db_settings_template_choose:"\u9009\u62E9\u6A21\u677F",db_settings_template_clear:"\u6E05\u9664\u6A21\u677F",db_settings_template_none:"\u672A\u9009\u62E9\u6A21\u677F",db_settings_template_folder_name:"\u6A21\u677F\u6587\u4EF6\u5939",db_settings_template_folder_desc:"\u4E3A\u6B64\u6570\u636E\u5E93\u9009\u62E9\u6A21\u677F\u65F6\uFF0C\u4EC5\u663E\u793A\u6B64\u6587\u4EF6\u5939\u4E2D\u7684\u6A21\u677F\u3002",db_settings_template_folder_choose:"\u9009\u62E9\u6587\u4EF6\u5939",db_settings_template_folder_none:"\u6574\u4E2A\u4ED3\u5E93\uFF08\u65E0\u9650\u5236\uFF09",db_settings_ask_name:"\u521B\u5EFA\u65F6\u8BE2\u95EE\u6A21\u677F",db_settings_ask_desc:"\u6BCF\u6B21\u6DFB\u52A0\u65B0\u884C\u65F6\u63D0\u793A\u9009\u62E9\u6A21\u677F\uFF0C\u800C\u4E0D\u662F\u5E94\u7528\u9ED8\u8BA4\u6A21\u677F\u3002",template_picker_placeholder:"\u9009\u62E9\u4E00\u4E2A\u6A21\u677F...",template_picker_none:"\u65E0\u6A21\u677F\uFF08\u7A7A\u6B63\u6587\uFF09",folder_picker_placeholder:"\u9009\u62E9\u76EE\u6807\u6587\u4EF6\u5939..."},Lc=wy;var Cy={view_table:"\u30C6\u30FC\u30D6\u30EB",view_list:"\u30EA\u30B9\u30C8",view_board:"\u30DC\u30FC\u30C9",view_gallery:"\u30AE\u30E3\u30E9\u30EA\u30FC",view_calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",view_timeline:"\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3",view_chart:"\u30C1\u30E3\u30FC\u30C8",add_view:"\u30D3\u30E5\u30FC\u3092\u8FFD\u52A0",remove_view:"\u30D3\u30E5\u30FC\u3092\u524A\u9664",rename_view_hint:"\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u540D\u524D\u5909\u66F4",fields:"\u30D5\u30A3\u30FC\u30EB\u30C9",filter:"\u30D5\u30A3\u30EB\u30BF\u30FC",filters:"\u30D5\u30A3\u30EB\u30BF\u30FC",sort:"\u4E26\u3079\u66FF\u3048",actions:"\u30A2\u30AF\u30B7\u30E7\u30F3",group_by:"\u30B0\u30EB\u30FC\u30D7\u5316",cover:"\u30AB\u30D0\u30FC",date_field:"\u65E5\u4ED8",start_field:"\u958B\u59CB",end_field:"\u7D42\u4E86",group_field:"\u30B0\u30EB\u30FC\u30D7",fields_in_card:"\u30AB\u30FC\u30C9\u306E\u30D5\u30A3\u30FC\u30EB\u30C9",fields_label:"\u30D5\u30A3\u30FC\u30EB\u30C9",fields_on_bars:"\u30D0\u30FC\u306E\u30D5\u30A3\u30FC\u30EB\u30C9",filter_by:"\u30D5\u30A3\u30EB\u30BF\u30FC\u6761\u4EF6",sort_by:"\u4E26\u3079\u66FF\u3048\u6761\u4EF6",group_by_label:"\u30B0\u30EB\u30FC\u30D7\u5316\u6761\u4EF6",date_field_label:"\u65E5\u4ED8\u30D5\u30A3\u30FC\u30EB\u30C9",cover_field_label:"\u30AB\u30D0\u30FC\u30D5\u30A3\u30FC\u30EB\u30C9",card_size_label:"\u30AB\u30FC\u30C9\u30B5\u30A4\u30BA",row_height_label:"\u884C\u306E\u9AD8\u3055",none_value:"\u306A\u3057",no_value:"\u5024\u306A\u3057",no_cover:"\u306A\u3057",size_small:"\u5C0F",size_medium:"\u4E2D",size_large:"\u5927",height_compact:"\u30B3\u30F3\u30D1\u30AF\u30C8",height_medium:"\u6A19\u6E96",height_tall:"\u9AD8\u3044",add_filter_advanced:"\u8A73\u7D30\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u8FFD\u52A0",add_sort:"\u4E26\u3079\u66FF\u3048\u3092\u8FFD\u52A0",no_active_sorts:"\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u4E26\u3079\u66FF\u3048\u306A\u3057",name_column:"\u540D\u524D",conjunction_and:"\u304B\u3064",conjunction_or:"\u307E\u305F\u306F",filter_number_placeholder:"\u6570\u5024...",filter_value_placeholder:"\u5024...",delete_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u524A\u9664",move_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u79FB\u52D5",duplicate_selected:"\u9078\u629E\u9805\u76EE\u3092\u3059\u3079\u3066\u8907\u88FD",export_csv:"CSV \u30A8\u30AF\u30B9\u30DD\u30FC\u30C8",import_csv:"CSV \u30A4\u30F3\u30DD\u30FC\u30C8",open_note:"\u30CE\u30FC\u30C8\u3092\u958B\u304F",delete_note:"\u30CE\u30FC\u30C8\u3092\u524A\u9664",duplicate_note:"\u30CE\u30FC\u30C8\u3092\u8907\u88FD",sort_asc:"\u6607\u9806",sort_desc:"\u964D\u9806",sort_asc_title:"\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048",sort_desc_title:"\u4E26\u3079\u66FF\u3048\u3092\u89E3\u9664",sort_none_title:"\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048",rename_column:"\u540D\u524D\u5909\u66F4",edit_formula:"\u6570\u5F0F\u3092\u7DE8\u96C6",configure_lookup:"Lookup \u3092\u8A2D\u5B9A",configure_relation:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u8A2D\u5B9A",settings_clip_ellipsis_name:"\u30C6\u30AD\u30B9\u30C8\u306E\u5207\u308A\u8A70\u3081\u6642\u306B\u7701\u7565\u8A18\u53F7\u3092\u8868\u793A",settings_clip_ellipsis_desc:"\u30AA\u30D5\u306E\u5834\u5408\u3001\u5207\u308A\u8A70\u3081\u3089\u308C\u305F\u30BB\u30EB\u306F\u7701\u7565\u8A18\u53F7\u3092\u8868\u793A\u305B\u305A\u3001\u30B9\u30D7\u30EC\u30C3\u30C9\u30B7\u30FC\u30C8\u306E\u3088\u3046\u306B\u30BB\u30EB\u306E\u7AEF\u3067\u30C6\u30AD\u30B9\u30C8\u3092\u5207\u308A\u53D6\u308A\u307E\u3059\u3002",format_number:"\u6570\u5024\u306E\u66F8\u5F0F",format_date:"\u65E5\u4ED8\u306E\u66F8\u5F0F",date_format_title:"\u65E5\u4ED8\u306E\u66F8\u5F0F",date_format_preset_label:"\u30D7\u30EA\u30BB\u30C3\u30C8",date_format_pattern_label:"\u30D1\u30BF\u30FC\u30F3",date_format_custom:"\u30AB\u30B9\u30BF\u30E0",configure_image_folder:"\u753B\u50CF\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",field_type_label:"\u30D5\u30A3\u30FC\u30EB\u30C9\u30BF\u30A4\u30D7",hide_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u975E\u8868\u793A",enable_wrap_text:"\u30C6\u30AD\u30B9\u30C8\u3092\u6298\u308A\u8FD4\u3059",disable_wrap_text:"\u6298\u308A\u8FD4\u3057\u3092\u89E3\u9664",enable_clip_text:"\u30C6\u30AD\u30B9\u30C8\u3092\u5207\u308A\u8A70\u3081\u308B",disable_clip_text:"\u5207\u308A\u8A70\u3081\u3092\u89E3\u9664",delete_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u524A\u9664",type_title:"\u30BF\u30A4\u30C8\u30EB",type_text:"\u30C6\u30AD\u30B9\u30C8",type_number:"\u6570\u5024",type_select:"\u9078\u629E",type_multiselect:"\u8907\u6570\u9078\u629E",type_date:"\u65E5\u4ED8",type_checkbox:"\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9",type_url:"URL",type_email:"\u30E1\u30FC\u30EB",type_phone:"\u96FB\u8A71",type_status:"\u30B9\u30C6\u30FC\u30BF\u30B9",type_formula:"\u6570\u5F0F",type_relation:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",type_lookup:"Lookup",type_rollup:"Rollup",rollup_panel_title:"Rollup",configure_rollup:"Rollup \u3092\u8A2D\u5B9A",rollup_select_relation:"1. \u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217",rollup_select_relation_placeholder:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u9078\u629E...",rollup_select_target:"2. \u30BF\u30FC\u30B2\u30C3\u30C8\u5217",rollup_select_target_placeholder:"\u5217\u3092\u9078\u629E...",rollup_select_function:"3. \u96C6\u8A08",rollup_no_relations:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u5148\u306B\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u5217\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",rollup_fn_sum:"\u5408\u8A08",rollup_fn_count:"\u30AB\u30A6\u30F3\u30C8",rollup_fn_avg:"\u5E73\u5747",rollup_fn_min:"\u6700\u5C0F",rollup_fn_max:"\u6700\u5927",rollup_fn_count_values:"\u4E00\u610F\u3092\u30AB\u30A6\u30F3\u30C8",rollup_fn_list:"\u3059\u3079\u3066\u5217\u6319",type_image:"\u753B\u50CF",type_audio:"\u30AA\u30FC\u30C7\u30A3\u30AA",audio_path_placeholder:"\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u306E\u30D1\u30B9...",audio_select_placeholder:"\u97F3\u58F0\u3092\u9078\u629E...",audio_picker_title:"\u97F3\u58F0\u3092\u9078\u629E",audio_picker_clear:"\u30AF\u30EA\u30A2",audio_picker_empty_folder:"\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",audio_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u97F3\u58F0\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",audio_panel_title:"\u97F3\u58F0\u8A2D\u5B9A",audio_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u7A7A\u306B\u3059\u308B\u3068\u4FDD\u7BA1\u5EAB\u5168\u4F53\u3092\u5BFE\u8C61\uFF09",audio_folder_placeholder:"\u4F8B\uFF1Aaudio/music",configure_audio_folder:"\u97F3\u58F0\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",type_video:"\u52D5\u753B",video_select_placeholder:"\u52D5\u753B\u3092\u9078\u629E...",video_picker_clear:"\u30AF\u30EA\u30A2",video_picker_empty_folder:"\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",video_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093",video_panel_title:"\u52D5\u753B\u8A2D\u5B9A",video_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u7A7A\u306B\u3059\u308B\u3068\u4FDD\u7BA1\u5EAB\u5168\u4F53\u3092\u5BFE\u8C61\uFF09",video_folder_placeholder:"\u4F8B\uFF1Avideo/clips",configure_video_folder:"\u52D5\u753B\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u8A2D\u5B9A",formula_panel_title:"\u6570\u5F0F",formula_placeholder:'\u4F8B\uFF1Aif(status = "done", 1, 0)',formula_valid:"\u69CB\u6587\u306F\u6B63\u3057\u3044\u3067\u3059",formula_available_cols:"\u5229\u7528\u53EF\u80FD\u306A\u5217\uFF1A",formula_ref_toggle:"\u95A2\u6570\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9",formula_save:"\u4FDD\u5B58",formula_cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",formula_save_hint:"\u4FDD\u5B58 (Ctrl+Enter)",formula_group_logic:"\u8AD6\u7406",formula_group_comparators:"\u6BD4\u8F03",formula_group_aggregators:"\u96C6\u8A08",formula_group_text:"\u30C6\u30AD\u30B9\u30C8",formula_group_math:"\u6570\u5B66",formula_group_date:"\u65E5\u4ED8\u3068\u6642\u523B",formula_group_utils:"\u30E6\u30FC\u30C6\u30A3\u30EA\u30C6\u30A3",formula_desc_if:"cond \u304C\u771F\u306A\u3089 a \u3092\u8FD4\u3057\u3001\u305D\u3046\u3067\u306A\u3051\u308C\u3070 b \u3092\u8FD4\u3059",formula_desc_ifs:"\u6761\u4EF6\u3092\u9806\u756A\u306B\u30C6\u30B9\u30C8\u3059\u308B",formula_desc_and:"\u3059\u3079\u3066\u304C\u771F\u306E\u3068\u304D\u771F",formula_desc_or:"\u3044\u305A\u308C\u304B\u304C\u771F\u306E\u3068\u304D\u771F",formula_desc_not:"\u8AD6\u7406\u5024\u3092\u53CD\u8EE2\u3059\u308B",formula_desc_comparators:"2 \u3064\u306E\u5024\u3092\u6BD4\u8F03\u3059\u308B\uFF1B\u6761\u4EF6\u5F0F\u3068\u7D44\u307F\u5408\u308F\u305B\u3066\u4F7F\u7528",formula_desc_sum:"\u5217\u306E\u3059\u3079\u3066\u306E\u5024\u3092\u5408\u8A08\u3059\u308B",formula_desc_avg:"\u5217\u306E\u5024\u306E\u5E73\u5747",formula_desc_count:"\u5217\u306E\u7A7A\u3067\u306A\u3044\u5024\u3092\u6570\u3048\u308B",formula_desc_min:"\u5217\u306E\u6700\u5C0F\u5024",formula_desc_max:"\u5217\u306E\u6700\u5927\u5024",formula_desc_concat:"\u30C6\u30AD\u30B9\u30C8\u3092\u9023\u7D50\u3059\u308B\uFF08\u307E\u305F\u306F & \u3092\u4F7F\u7528\uFF09",formula_desc_len:"\u6587\u5B57\u6570",formula_desc_upper_lower:"\u5927\u6587\u5B57 / \u5C0F\u6587\u5B57\u306B\u5909\u63DB",formula_desc_trim:"\u5148\u982D\u3068\u672B\u5C3E\u306E\u7A7A\u767D\u3092\u524A\u9664\u3059\u308B",formula_desc_left:"\u6700\u521D\u306E n \u6587\u5B57",formula_desc_right:"\u6700\u5F8C\u306E n \u6587\u5B57",formula_desc_mid:"\u6307\u5B9A\u4F4D\u7F6E\u304B\u3089\u306E\u90E8\u5206\u6587\u5B57\u5217",formula_desc_substitute:"\u51FA\u73FE\u7B87\u6240\u3092\u7F6E\u63DB\u3059\u308B",formula_desc_round:"n \u3092 d \u5C0F\u6570\u70B9\u4EE5\u4E0B\u306B\u4E38\u3081\u308B",formula_desc_floor_ceil:"\u5207\u308A\u6368\u3066 / \u5207\u308A\u4E0A\u3052",formula_desc_abs:"\u7D76\u5BFE\u5024",formula_desc_mod:"\u9664\u7B97\u306E\u4F59\u308A",formula_desc_power:"\u5E95\u306E\u6307\u6570\u4E57",formula_desc_sqrt:"\u5E73\u65B9\u6839",formula_desc_now:"\u73FE\u5728\u306E\u65E5\u4ED8\u3068\u6642\u523B",formula_desc_today:"\u5F53\u65E5\u306E\u5348\u524D 0 \u6642\u306E\u65E5\u4ED8",formula_desc_date:"\u5E74\u30FB\u6708\u30FB\u65E5\u304B\u3089\u65E5\u4ED8\u3092\u4F5C\u6210\u3059\u308B",formula_desc_date_parts:"\u65E5\u4ED8\u306E\u5E74 / \u6708 / \u65E5",formula_desc_time_parts:"\u65E5\u4ED8\u306E\u6642 / \u5206",formula_desc_weekday:"\u66DC\u65E5\uFF081 = \u65E5\u66DC \u2026 7 = \u571F\u66DC\uFF09",formula_desc_datedif:"\u6307\u5B9A\u3057\u305F\u5358\u4F4D\u3067\u306E 2 \u3064\u306E\u65E5\u4ED8\u306E\u5DEE",formula_desc_dateadd:"\u65E5\u4ED8\u306B n \u5358\u4F4D\u3092\u52A0\u7B97\u3059\u308B\uFF08\u65E5\u3001\u6708\u3001\u5E74\u306A\u3069\uFF09",formula_desc_formatdate:"\u30D1\u30BF\u30FC\u30F3\u3067\u65E5\u4ED8\u3092\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3059\u308B",formula_desc_isnull:"v \u304C\u7A7A\u307E\u305F\u306F null \u306E\u3068\u304D\u771F",formula_desc_coalesce:"\u6700\u521D\u306E\u7A7A\u3067\u306A\u3044\u5024",formula_desc_text:"\u30C6\u30AD\u30B9\u30C8\u306B\u5909\u63DB\u3059\u308B",formula_desc_value:"\u6570\u5024\u306B\u5909\u63DB\u3059\u308B",number_format_title:"\u66F8\u5F0F",number_decimals_label:"\u5C0F\u6570\u70B9\u4EE5\u4E0B\u306E\u6841\u6570",number_thousands_label:"\u6841\u533A\u5207\u308A",number_prefix_label:"\u63A5\u982D\u8F9E",number_suffix_label:"\u63A5\u5C3E\u8F9E",number_prefix_placeholder:"\u4F8B\uFF1A$\u3001\xA5",number_suffix_placeholder:"\u4F8B\uFF1A%\u3001kg\u3001km",number_remove_format:"\u66F8\u5F0F\u3092\u524A\u9664",relation_panel_title:"\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",lookup_panel_title:"Lookup",lookup_ref_table:"1. \u53C2\u7167\u30C6\u30FC\u30D6\u30EB",lookup_select_table:"\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E...",lookup_col_to_display:"2. \u8868\u793A\u3059\u308B\u5217",lookup_origin_col:"2. \u5024\u306E\u30BD\u30FC\u30B9\u30D5\u30A3\u30FC\u30EB\u30C9",lookup_select_col:"\u5217\u3092\u9078\u629E...",lookup_file_name:"\u30D5\u30A1\u30A4\u30EB\u540D",lookup_join_col:"3. \u7D50\u5408\u5217\uFF08\u3053\u306E\u30C6\u30FC\u30D6\u30EB\uFF09",lookup_join_col_title:"\u30D5\u30A1\u30A4\u30EB\u540D\uFF08\u30BF\u30A4\u30C8\u30EB\u3067\u7D50\u5408\uFF09",lookup_select_join_col:"\u5217\u3092\u9078\u629E...",lookup_hint:"\u3053\u306E\u5217\u306E\u5024\u306F\u53C2\u7167\u30C6\u30FC\u30D6\u30EB\u306E\u30D5\u30A1\u30A4\u30EB\u540D\u3068\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",image_panel_title:"\u753B\u50CF",image_folder_label:"\u30BD\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\uFF08\u4EFB\u610F\uFF09",image_folder_placeholder:"\u4F8B\uFF1Aimages/covers",image_picker_title:"\u753B\u50CF\u3092\u9078\u629E",image_picker_clear:"\u30AF\u30EA\u30A2",image_picker_empty_vault:"\u4FDD\u7BA1\u5EAB\u306B\u753B\u50CF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",image_picker_empty_folder:"\u753B\u50CF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF1A",image_select_placeholder:"\u753B\u50CF\u3092\u9078\u629E\u2026",agg_none:"\u306A\u3057",agg_count:"\u30AB\u30A6\u30F3\u30C8",agg_count_values:"\u5024\u3092\u30AB\u30A6\u30F3\u30C8",agg_sum:"\u5408\u8A08",agg_avg:"\u5E73\u5747",agg_min:"\u6700\u5C0F",agg_max:"\u6700\u5927",no_database_open:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093\u3002",no_database_hint:"\u30EA\u30DC\u30F3\u30DC\u30BF\u30F3\u307E\u305F\u306F\u300C\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u300D\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",loading:"\u8AAD\u307F\u8FBC\u307F\u4E2D...",no_results:"\u9805\u76EE\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",item_singular:"\u4EF6",item_plural:"\u4EF6",row_singular:"\u884C",row_plural:"\u884C",record_singular:"\u30EC\u30B3\u30FC\u30C9",record_plural:"\u30EC\u30B3\u30FC\u30C9",add_row:"\u65B0\u3057\u3044\u884C",add_entry:"\u65B0\u3057\u3044\u30A8\u30F3\u30C8\u30EA\u30FC",add_card:"\u65B0\u3057\u3044\u30AB\u30FC\u30C9",new_field:"\u65B0\u3057\u3044\u30D5\u30A3\u30FC\u30EB\u30C9",add_field:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u8FFD\u52A0",board_no_select_col:"\u30DC\u30FC\u30C9\u306B\u306F\u30AB\u30FC\u30C9\u3092\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\u305F\u3081\u306E\u9078\u629E\u307E\u305F\u306F\u30B9\u30C6\u30FC\u30BF\u30B9\u5217\u304C\u5FC5\u8981\u3067\u3059\u3002",board_add_select_hint:"\u30C6\u30FC\u30D6\u30EB\u30D3\u30E5\u30FC\u3067\u305D\u306E\u30BF\u30A4\u30D7\u306E\u5217\u3092\u8FFD\u52A0\u3057\u3066\u304B\u3089\u3001\u3053\u3053\u306B\u623B\u3063\u3066\u304F\u3060\u3055\u3044\u3002",board_drag_reorder:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048",board_set_limit:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30AB\u30FC\u30C9\u5236\u9650\u3092\u8A2D\u5B9A",board_limit_placeholder:"\u5236\u9650 (0 = \u306A\u3057)",board_show_more:"\u4EF6\u4EE5\u4E0A",board_show_less:"\u6298\u308A\u305F\u305F\u3080",hide_empty_cols:"\u7A7A\u3092\u975E\u8868\u793A",hide_no_value_cols:"\u5024\u306A\u3057\u3092\u975E\u8868\u793A",calendar_no_date_field:"\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u65E5\u4ED8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u30AB\u30EC\u30F3\u30C0\u30FC\u3092\u8868\u793A\u3057\u307E\u3059\u3002",calendar_no_date_section:"\u65E5\u4ED8\u306A\u3057",calendar_click_to_create:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30CE\u30FC\u30C8\u3092\u4F5C\u6210",calendar_today:"\u4ECA\u65E5",calendar_prev_month:"\u524D\u6708",calendar_next_month:"\u7FCC\u6708",calendar_view_month:"\u6708",calendar_view_week:"\u9031",calendar_prev_week:"\u524D\u9031",calendar_next_week:"\u7FCC\u9031",calendar_add_time:"\u6642\u523B\u3092\u8FFD\u52A0",calendar_remove_time:"\u6642\u523B\u3092\u524A\u9664",calendar_all_day:"\u7D42\u65E5",day_sun:"\u65E5",day_mon:"\u6708",day_tue:"\u706B",day_wed:"\u6C34",day_thu:"\u6728",day_fri:"\u91D1",day_sat:"\u571F",month_january:"1\u6708",month_february:"2\u6708",month_march:"3\u6708",month_april:"4\u6708",month_may:"5\u6708",month_june:"6\u6708",month_july:"7\u6708",month_august:"8\u6708",month_september:"9\u6708",month_october:"10\u6708",month_november:"11\u6708",month_december:"12\u6708",timeline_no_start_field:"\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u958B\u59CB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\u3092\u8868\u793A\u3057\u307E\u3059\u3002",timeline_no_interval:"\u9593\u9694\u306A\u3057",timeline_scroll_prev:"\u524D\u306B\u30B9\u30AF\u30ED\u30FC\u30EB",timeline_scroll_next:"\u6B21\u306B\u30B9\u30AF\u30ED\u30FC\u30EB",zoom_days:"\u65E5",zoom_weeks:"\u9031",zoom_months:"\u6708",month_short_jan:"1\u6708",month_short_feb:"2\u6708",month_short_mar:"3\u6708",month_short_apr:"4\u6708",month_short_may:"5\u6708",month_short_jun:"6\u6708",month_short_jul:"7\u6708",month_short_aug:"8\u6708",month_short_sep:"9\u6708",month_short_oct:"10\u6708",month_short_nov:"11\u6708",month_short_dec:"12\u6708",hierarchy_toggle:"\u968E\u5C64\u3068\u3057\u3066\u4F7F\u7528",hierarchy_toggle_hint:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u884C\u9593\u306B\u89AA\u5B50\u95A2\u4FC2\u3092\u6709\u52B9\u306B\u3057\u307E\u3059",add_subrow:"\u30B5\u30D6\u884C\u3092\u8FFD\u52A0",collapse_all:"\u3059\u3079\u3066\u6298\u308A\u305F\u305F\u3080",expand_all:"\u3059\u3079\u3066\u5C55\u958B",max_depth_reached:"\u6700\u5927\u306E\u6DF1\u3055\u306B\u9054\u3057\u307E\u3057\u305F\uFF083 \u30EC\u30D9\u30EB\uFF09",chart_configure:"\u8A2D\u5B9A",chart_type:"\u30B0\u30E9\u30D5\u306E\u7A2E\u985E",chart_type_bar:"\u68D2\u30B0\u30E9\u30D5",chart_type_line:"\u6298\u308C\u7DDA\u30B0\u30E9\u30D5",chart_type_pie:"\u5186\u30B0\u30E9\u30D5",chart_x_axis:"\u30AB\u30C6\u30B4\u30EA\u30FC (X \u8EF8)",chart_y_axis:"\u5024 (Y \u8EF8)",chart_aggregation:"\u96C6\u8A08",chart_select_column:"\u5217\u3092\u9078\u629E...",chart_count_records:"\u30AB\u30A6\u30F3\u30C8",chart_no_config:"\u30B0\u30E9\u30D5\u3092\u8A2D\u5B9A\u3057\u3066\u59CB\u3081\u307E\u3057\u3087\u3046\u3002",chart_no_config_hint:"\u4E0A\u306E\u30C4\u30FC\u30EB\u30D0\u30FC\u3067\u30AB\u30C6\u30B4\u30EA\u30FC\u7528\u306E\u5217\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",tooltip_pin_column:"\u3053\u3053\u307E\u3067\u306E\u5217\u3092\u56FA\u5B9A",tooltip_unpin_column:"\u5217\u306E\u56FA\u5B9A\u3092\u89E3\u9664",tooltip_resize_column:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\uFF1B\u30C0\u30D6\u30EB\u30AF\u30EA\u30C3\u30AF\u3067\u5185\u5BB9\u306B\u5408\u308F\u305B\u308B",tooltip_wrap_text:"\u30C6\u30AD\u30B9\u30C8\u306E\u6298\u308A\u8FD4\u3057",tooltip_include_subfolders:"\u30B5\u30D6\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u542B\u3081\u308B",folder_column:"\u30D5\u30A9\u30EB\u30C0\u30FC",tooltip_manage_fields:"\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u7BA1\u7406",tooltip_batch_actions:"\u4E00\u62EC\u64CD\u4F5C",tooltip_remove_filter:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u524A\u9664",hide_filters:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u975E\u8868\u793A",show_filters:"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u8868\u793A",filters_count_one:"1 \u4EF6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",filters_count_other:"{n} \u4EF6\u306E\u30D5\u30A3\u30EB\u30BF\u30FC",tooltip_drag_reorder:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048",tooltip_search:"\u691C\u7D22",tooltip_toggle_and_or:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u8AD6\u7406\u6F14\u7B97\u5B50\u3092\u5207\u308A\u66FF\u3048",tooltip_close:"\u9589\u3058\u308B",tooltip_remove:"\u524A\u9664",tooltip_move_up:"\u4E0A\u306B\u79FB\u52D5",tooltip_move_down:"\u4E0B\u306B\u79FB\u52D5",tooltip_change_color:"\u8272\u3092\u5909\u66F4",tooltip_delete_status:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",status_not_started:"\u672A\u7740\u624B",status_in_progress:"\u9032\u884C\u4E2D",status_done:"\u5B8C\u4E86",status_cancelled:"\u30AD\u30E3\u30F3\u30BB\u30EB\u6E08\u307F",relation_search_placeholder:"\u691C\u7D22...",relation_clear:"\u30AF\u30EA\u30A2",relation_no_results:"\u7D50\u679C\u306A\u3057",relation_two_way:"\u53CC\u65B9\u5411\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3",relation_two_way_hint:"\u5BFE\u8C61\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u9006\u65B9\u5411\u306E\u30EA\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u81EA\u52D5\u7684\u306B\u4F5C\u6210\u3057\u307E\u3059",select_clear:"\u30AF\u30EA\u30A2",select_create_placeholder:"\u65B0\u3057\u3044\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u4F5C\u6210...",status_new_placeholder:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9...",color_custom:"\u30AB\u30B9\u30BF\u30E0",validate_non_numeric:'\u30BB\u30EB\u306B\u6570\u5024\u3067\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_dates:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u65E5\u4ED8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_checkbox:'\u30BB\u30EB\u306B\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u3068\u4E92\u63DB\u6027\u306E\u306A\u3044\u5024\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_multiselect_to_select:"\u884C\u306B\u8907\u6570\u306E\u5024\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u5358\u4E00\u9078\u629E\u306B\u5909\u66F4\u3059\u308B\u524D\u306B\u4F59\u5206\u306A\u5024\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",validate_invalid_email:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_url:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044 URL \u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_invalid_phone:'\u30BB\u30EB\u306B\u6709\u52B9\u3067\u306A\u3044\u96FB\u8A71\u756A\u53F7\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\uFF08\u4F8B\uFF1A"',validate_type_change_prefix:"\u30BF\u30A4\u30D7\u3092\u5909\u66F4\u3067\u304D\u307E\u305B\u3093\uFF1A",email_invalid:"\u7121\u52B9\u306A\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",op_is:"\u7B49\u3057\u3044",op_is_not:"\u7B49\u3057\u304F\u306A\u3044",op_contains:"\u542B\u3080",op_not_contains:"\u542B\u307E\u306A\u3044",op_starts_with:"\u3067\u59CB\u307E\u308B",op_ends_with:"\u3067\u7D42\u308F\u308B",op_is_empty:"\u7A7A\u3067\u3042\u308B",op_is_not_empty:"\u7A7A\u3067\u306A\u3044",op_gt:">",op_gte:">=",op_lt:"<",op_lte:"<=",op_is_checked:"\u30C1\u30A7\u30C3\u30AF\u6E08\u307F",op_is_unchecked:"\u672A\u30C1\u30A7\u30C3\u30AF",settings_db_filename_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB\u540D",settings_db_filename_desc:"\u30D5\u30A9\u30EB\u30C0\u30FC\u5185\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u8B58\u5225\u3059\u308B\u7279\u5225\u306A\u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002",settings_row_height_name:"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u884C\u306E\u9AD8\u3055",settings_row_height_desc:"\u5404\u30C6\u30FC\u30D6\u30EB\u884C\u306E\u30D4\u30AF\u30BB\u30EB\u9AD8\u3055\u3002",settings_inline_fields_name:"Dataview \u30A4\u30F3\u30E9\u30A4\u30F3\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u8AAD\u307F\u53D6\u308B",settings_inline_fields_desc:"\u30CE\u30FC\u30C8\u672C\u6587\u306E key:: value \u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u89E3\u6790\u3057\u3001\u5217\u306E\u5024\u3068\u3057\u3066\u8868\u793A\u3057\u307E\u3059\uFF08\u8AAD\u307F\u53D6\u308A\u5C02\u7528\uFF09",db_untitled_note:"\u7121\u984C",db_copy_suffix:"(\u30B3\u30D4\u30FC)",db_copy_suffix_n:"(\u30B3\u30D4\u30FC $n)",db_already_exists:'"$folder" \u306B\u306F\u3059\u3067\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u5B58\u5728\u3057\u307E\u3059',db_tip_body:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3067\u3059\u3002\u30C6\u30FC\u30D6\u30EB\u30D3\u30E5\u30FC\u3092\u8868\u793A\u3059\u308B\u306B\u306F\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",formula_err_unclosed_string:"\u4F4D\u7F6E $pos \u3067\u6587\u5B57\u5217\u304C\u9589\u3058\u3089\u308C\u3066\u3044\u307E\u305B\u3093",formula_err_unclosed_bracket:"\u4F4D\u7F6E $pos \u3067\u62EC\u5F27\u304C\u9589\u3058\u3089\u308C\u3066\u3044\u307E\u305B\u3093",formula_err_unexpected_bang:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u6587\u5B57 '!'",formula_err_unexpected_char:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u6587\u5B57 '$char'",formula_err_expected_token:"\u4F4D\u7F6E $pos \u3067 $expected \u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001'$found' \u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F",formula_err_unexpected_token:"\u4F4D\u7F6E $pos \u3067\u4E88\u671F\u3057\u306A\u3044\u30C8\u30FC\u30AF\u30F3 '$token'",formula_err_circular_ref:'\u5FAA\u74B0\u53C2\u7167\uFF1A"$name" \u306F\u6570\u5F0F\u5217\u3067\u3059',formula_err_unknown_fn:"\u4E0D\u660E\u306A\u95A2\u6570\uFF1A$fn()",formula_err_if_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Aif(\u6761\u4EF6, \u771F\u306E\u5024, [\u507D\u306E\u5024])",formula_err_avg_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Aavg(\u5217) \u2014 \u5217\u53C2\u7167\u304C\u5F15\u6570\u3068\u3057\u3066\u5FC5\u8981",formula_err_count_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Acount(\u5217) \u2014 \u5217\u53C2\u7167\u304C\u5F15\u6570\u3068\u3057\u3066\u5FC5\u8981",formula_err_mid_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Amid(\u30C6\u30AD\u30B9\u30C8, \u958B\u59CB, \u9577\u3055)",formula_err_mod_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Amod(\u6570\u5024, \u9664\u6570)",formula_err_sqrt_args:"\u671F\u5F85\u3055\u308C\u308B\u5F62\u5F0F\uFF1Asqrt(\u6570\u5024)",formula_err_not_implemented:"\u672A\u5B9F\u88C5\u306E\u95A2\u6570\uFF1A$fn()",plugin_display_name:"Notion bases",no_databases_found:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u300C\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210\u300D\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3057\u3066\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002",cmd_open_database:"\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u958B\u304F",cmd_create_database:"\u73FE\u5728\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210",ctx_create_database:"\u3053\u3053\u306B\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u4F5C\u6210",arr_settings_title:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406",arr_settings_desc:"\u9078\u629E\u3057\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u5024\u306B\u57FA\u3065\u3044\u3066\u3001\u884C\u30D5\u30A1\u30A4\u30EB\u3092\u9806\u756A\u306B\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30B5\u30D6\u30D5\u30A9\u30EB\u30C0\u30FC\u3078\u81EA\u52D5\u7684\u306B\u79FB\u52D5\u3057\u307E\u3059\u3002",arr_settings_enabled_name:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u3092\u6709\u52B9\u306B\u3059\u308B",arr_settings_enabled_desc:"\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u9078\u629E\u3057\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u3044\u305A\u308C\u304B\u304C\u5909\u66F4\u3055\u308C\u308B\u3068\u3059\u3050\u306B\u884C\u304C\u79FB\u52D5\u3055\u308C\u307E\u3059\u3002\u30C7\u30D5\u30A9\u30EB\u30C8\u306F\u30AA\u30D5\u3067\u3059\u3002",arr_settings_no_props:"\u30D7\u30ED\u30D1\u30C6\u30A3\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u4E0B\u306B\u8FFD\u52A0\u3057\u3066\u30D5\u30A9\u30EB\u30C0\u30FC\u968E\u5C64\u3092\u5B9A\u7FA9\u3057\u3066\u304F\u3060\u3055\u3044\u3002",arr_settings_no_candidates:"\u5BFE\u8C61\u3068\u306A\u308B\u5217\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u306F\u30C6\u30AD\u30B9\u30C8\u3001\u9078\u629E\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u65E5\u4ED8\u5217\u306B\u5BFE\u5FDC\u3057\u3066\u3044\u307E\u3059\u3002",arr_settings_add_placeholder:"\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u9078\u629E...",arr_settings_add_btn:"\u8FFD\u52A0",arr_settings_preview_btn:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3057\u3066\u65E2\u5B58\u306E\u884C\u306B\u9069\u7528",arr_preview_title:"\u30D5\u30A9\u30EB\u30C0\u30FC\u6574\u7406\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",arr_preview_empty:"\u79FB\u52D5\u304C\u5FC5\u8981\u306A\u884C\u306F\u3042\u308A\u307E\u305B\u3093\u3002",arr_preview_desc:"$count \u884C\u304C\u79FB\u52D5\u3055\u308C\u307E\u3059\uFF1A",arr_preview_filtered_note:"\u73FE\u5728\u306E\u30D3\u30E5\u30FC\u3067\u8868\u793A\u3055\u308C\u3066\u3044\u308B\u30D5\u30A1\u30A4\u30EB\u306E\u307F\u304C\u5BFE\u8C61\u306B\u306A\u308A\u307E\u3059\u3002",arr_preview_apply:"\u9069\u7528",arr_preview_cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",arr_preview_applied:"$count \u884C\u3092\u79FB\u52D5\u3057\u307E\u3057\u305F\u3002",cmd_quick_add:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u884C\u3092\u3059\u3070\u3084\u304F\u8FFD\u52A0",quick_add_title:"\u30AF\u30A4\u30C3\u30AF\u8FFD\u52A0",quick_add_note_title:"\u30BF\u30A4\u30C8\u30EB",quick_add_note_title_placeholder:"\u30CE\u30FC\u30C8\u306E\u30BF\u30A4\u30C8\u30EB...",quick_add_create:"\u4F5C\u6210",quick_add_create_and_open:"\u4F5C\u6210\u3057\u3066\u958B\u304F",quick_add_no_visible_fields:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u7DE8\u96C6\u53EF\u80FD\u306A\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u3042\u308A\u307E\u305B\u3093",picker_placeholder:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092\u9078\u629E...",picker_root:"/\uFF08\u30EB\u30FC\u30C8\uFF09",view_fallback_name:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9",saving:"\u4FDD\u5B58\u4E2D",saved:"\u4FDD\u5B58\u6E08\u307F",save_error:"\u4FDD\u5B58\u30A8\u30E9\u30FC",settings_page_size_name:"1\u30DA\u30FC\u30B8\u3042\u305F\u308A\u306E\u884C\u6570",settings_page_size_desc:"1\u30DA\u30FC\u30B8\u306B\u8868\u793A\u3059\u308B\u884C\u6570\u3002\u300C\u3059\u3079\u3066\u300D\u306B\u8A2D\u5B9A\u3059\u308B\u3068\u9023\u7D9A\u30B9\u30AF\u30ED\u30FC\u30EB\u306B\u306A\u308A\u307E\u3059",settings_page_size_all:"\u3059\u3079\u3066\uFF08\u9023\u7D9A\u30B9\u30AF\u30ED\u30FC\u30EB\uFF09",page_of:"{current} / {total} \u30DA\u30FC\u30B8",first_page:"\u6700\u521D\u306E\u30DA\u30FC\u30B8",last_page:"\u6700\u5F8C\u306E\u30DA\u30FC\u30B8",prev_page:"\u524D\u306E\u30DA\u30FC\u30B8",next_page:"\u6B21\u306E\u30DA\u30FC\u30B8",conditional_formatting:"\u6761\u4EF6\u4ED8\u304D\u66F8\u5F0F",no_conditional_formats:"\u30EB\u30FC\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",add_rule:"\u30EB\u30FC\u30EB\u3092\u8FFD\u52A0",select_value:"\u5024\u3092\u9078\u629E",style:"\u30B9\u30BF\u30A4\u30EB",background:"\u80CC\u666F",text_color:"\u30C6\u30AD\u30B9\u30C8\u306E\u8272",save:"\u4FDD\u5B58",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",value:"\u5024",db_settings_open:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u8A2D\u5B9A",db_settings_title:"\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u8A2D\u5B9A",db_settings_template_name:"\u884C\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8",db_settings_template_desc:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306B\u65B0\u3057\u304F\u4F5C\u6210\u3055\u308C\u308B\u3059\u3079\u3066\u306E\u884C\u306E\u672C\u6587\u306B\u3053\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9069\u7528\u3057\u307E\u3059\u3002",db_settings_template_choose:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",db_settings_template_clear:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u524A\u9664",db_settings_template_none:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",db_settings_template_folder_name:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30D5\u30A9\u30EB\u30C0\u30FC",db_settings_template_folder_desc:"\u3053\u306E\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E\u3059\u308B\u969B\u3001\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u5185\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u307F\u3092\u8868\u793A\u3057\u307E\u3059\u3002",db_settings_template_folder_choose:"\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u9078\u629E",db_settings_template_folder_none:"\u4FDD\u7BA1\u5EAB\u5168\u4F53\uFF08\u5236\u9650\u306A\u3057\uFF09",db_settings_ask_name:"\u4F5C\u6210\u6642\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u78BA\u8A8D\u3059\u308B",db_settings_ask_desc:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3092\u9069\u7528\u3059\u308B\u4EE3\u308F\u308A\u306B\u3001\u65B0\u3057\u3044\u884C\u3092\u8FFD\u52A0\u3059\u308B\u305F\u3073\u306B\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E\u3059\u308B\u3088\u3046\u4FC3\u3057\u307E\u3059\u3002",template_picker_placeholder:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E...",template_picker_none:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306A\u3057\uFF08\u672C\u6587\u3092\u7A7A\u306B\u3059\u308B\uFF09",folder_picker_placeholder:"\u79FB\u52D5\u5148\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u9078\u629E..."},df=Cy;var ky={en:Tc,"pt-BR":Pc,pt:Pc,es:sf,fr:uf,de:cf,zh:Lc,"zh-TW":Lc,ja:df};function u(e){let t=(0,pf.getLanguage)()??"en";return(ky[t]??{})[e]??Tc[e]??e}var Yb=require("obsidian");var Jm=De(wt(),1),Kb=De(em(),1);var Eu=De(wt(),1),Dl=(0,Eu.createContext)(null);function $t(){let e=(0,Eu.useContext)(Dl);if(!e)throw new Error("useApp deve ser usado dentro de AppContext.Provider");return e}var Nt=De(wt(),1);var ca=require("obsidian");var Wh=require("obsidian");var ci=class extends Wh.FuzzySuggestModal{constructor(t,n,o,r){super(t),this.onChoose=n,this.preferredFolder=o??this.getCoreTemplatesFolder(),this.restrictFolder=r??null,this.setPlaceholder(u("template_picker_placeholder"))}getCoreTemplatesFolder(){let n=this.app.internalPlugins?.plugins?.templates?.instance?.options?.folder;return typeof n=="string"&&n?n:null}getItems(){let t={file:null,label:u("template_picker_none")},n=this.app.vault.getMarkdownFiles().filter(i=>this.app.metadataCache.getFileCache(i)?.frontmatter?.["notion-bases"]!==!0);this.restrictFolder&&(n=n.filter(i=>i.path.startsWith(`${this.restrictFolder}/`)));let o=this.preferredFolder?n.filter(i=>i.path.startsWith(`${this.preferredFolder}/`)):[],r=o.length>0?n.filter(i=>!o.includes(i)):n,a=[...o.sort((i,l)=>i.path.localeCompare(l.path)),...r.sort((i,l)=>i.path.localeCompare(l.path))];return[t,...a.map(i=>({file:i,label:i.path}))]}getItemText(t){return t.label}onChooseItem(t){this.onChoose(t.file?.path??null)}};var Du=require("obsidian");var di=class extends Du.FuzzySuggestModal{constructor(t,n){super(t),this.onChoose=n,this.setPlaceholder(u("folder_picker_placeholder"))}getItems(){return this.app.vault.getAllLoadedFiles().filter(t=>t instanceof Du.TFolder).sort((t,n)=>t.path.localeCompare(n.path))}getItemText(t){return t.path||"/"}onChooseItem(t){this.onChoose(t)}};var Mu=require("obsidian");var Fu=class extends Mu.Modal{constructor(n,o,r,a,i){super(n);this.manager=o;this.dbFile=r;this.config=a;this.restrictToPaths=i}onOpen(){let{contentEl:n}=this;n.empty(),n.createEl("h2",{text:u("arr_preview_title")}),this.restrictToPaths&&n.createEl("p",{text:u("arr_preview_filtered_note"),cls:"nb-arr-preview-filtered-note"});let o=this.manager.previewArrangement(this.dbFile,this.config,this.restrictToPaths).filter(l=>l.to!==null);if(o.length===0)n.createEl("p",{text:u("arr_preview_empty")});else{n.createEl("p",{text:u("arr_preview_desc").replace("$count",String(o.length))});let l=n.createDiv({cls:"nb-arr-preview-list"});for(let s of o){let d=l.createDiv({cls:"nb-arr-preview-row"});d.createSpan({cls:"nb-arr-preview-from",text:s.from}),d.createSpan({cls:"nb-arr-preview-arrow",text:"\u2192"}),d.createSpan({cls:"nb-arr-preview-to",text:s.to??""})}}let r=n.createDiv({cls:"nb-arr-preview-actions"}),a=r.createEl("button",{text:u("arr_preview_cancel")});a.onclick=()=>this.close();let i=r.createEl("button",{text:u("arr_preview_apply"),cls:"mod-cta"});i.disabled=o.length===0,i.onclick=async()=>{i.disabled=!0,a.disabled=!0;let l=await this.manager.applyArrangementToAll(this.dbFile,this.config,this.restrictToPaths);new Mu.Notice(u("arr_preview_applied").replace("$count",String(l.length))),this.close()}}onClose(){this.contentEl.empty()}};var Gh=["text","select","status","date"],Tu=class extends ca.Modal{constructor(t,n,o,r,a,i){super(t),this.config=n,this.onSave=o,this.manager=r??null,this.dbFile=a??null,this.restrictToPaths=i}onOpen(){let{contentEl:t}=this;t.empty(),t.createEl("h2",{text:u("db_settings_title")});let n=new ca.Setting(t).setName(u("db_settings_template_name")).setDesc(u("db_settings_template_desc")),o=t.createDiv({cls:"nb-db-settings-template-path"}),r=()=>{o.empty(),o.setText(this.config.templatePath??u("db_settings_template_none"))};r(),n.addButton(s=>s.setButtonText(u("db_settings_template_choose")).onClick(()=>{new ci(this.app,d=>{this.config={...this.config,templatePath:d??void 0},r(),this.onSave({templatePath:this.config.templatePath})},null,this.config.templateFolder??null).open()})),this.config.templatePath&&n.addExtraButton(s=>s.setIcon("x").setTooltip(u("db_settings_template_clear")).onClick(async()=>{this.config={...this.config,templatePath:void 0},r(),await this.onSave({templatePath:void 0}),this.onOpen()}));let a=new ca.Setting(t).setName(u("db_settings_template_folder_name")).setDesc(u("db_settings_template_folder_desc")),i=t.createDiv({cls:"nb-db-settings-template-path"}),l=()=>{i.empty(),i.setText(this.config.templateFolder??u("db_settings_template_folder_none"))};l(),a.addButton(s=>s.setButtonText(u("db_settings_template_folder_choose")).onClick(()=>{new di(this.app,d=>{this.config={...this.config,templateFolder:d.path||void 0},l(),this.onSave({templateFolder:this.config.templateFolder})}).open()})),this.config.templateFolder&&a.addExtraButton(s=>s.setIcon("x").setTooltip(u("db_settings_template_clear")).onClick(async()=>{this.config={...this.config,templateFolder:void 0},l(),await this.onSave({templateFolder:void 0}),this.onOpen()})),new ca.Setting(t).setName(u("db_settings_ask_name")).setDesc(u("db_settings_ask_desc")).addToggle(s=>s.setValue(!!this.config.askTemplateOnCreate).onChange(async d=>{this.config={...this.config,askTemplateOnCreate:d},await this.onSave({askTemplateOnCreate:d})})),this.renderArrangementSection(t)}renderArrangementSection(t){let n=t.createDiv({cls:"nb-db-settings-arrangement"});n.createEl("h3",{text:u("arr_settings_title")}),n.createEl("p",{text:u("arr_settings_desc"),cls:"nb-db-settings-arrangement-desc"});let o=this.config.folderArrangement?{enabled:!!this.config.folderArrangement.enabled,propertyIds:[...this.config.folderArrangement.propertyIds]}:{enabled:!1,propertyIds:[]},r=async()=>{this.config={...this.config,folderArrangement:o},await this.onSave({folderArrangement:o})};new ca.Setting(n).setName(u("arr_settings_enabled_name")).setDesc(u("arr_settings_enabled_desc")).addToggle(p=>p.setValue(o.enabled).onChange(async g=>{o.enabled=g,await r()}));let a=this.config.schema.filter(p=>Gh.includes(p.type)&&!o.propertyIds.includes(p.id)),i=n.createDiv({cls:"nb-arr-property-list"}),l=()=>{if(i.empty(),o.propertyIds.length===0){i.createEl("p",{text:u("arr_settings_no_props"),cls:"nb-arr-empty"});return}o.propertyIds.forEach((p,g)=>{let m=this.config.schema.find(f=>f.id===p),c=i.createDiv({cls:"nb-arr-property-row"});c.createSpan({cls:"nb-arr-property-index",text:String(g+1)}),c.createSpan({cls:"nb-arr-property-name",text:m?.name??p});let h=c.createEl("button",{text:"\u2191",cls:"nb-arr-btn"});h.disabled=g===0,h.onclick=async()=>{[o.propertyIds[g-1],o.propertyIds[g]]=[o.propertyIds[g],o.propertyIds[g-1]],await r(),l()};let v=c.createEl("button",{text:"\u2193",cls:"nb-arr-btn"});v.disabled=g===o.propertyIds.length-1,v.onclick=async()=>{[o.propertyIds[g+1],o.propertyIds[g]]=[o.propertyIds[g],o.propertyIds[g+1]],await r(),l()};let b=c.createEl("button",{text:"\xD7",cls:"nb-arr-btn nb-arr-btn-remove"});b.onclick=async()=>{o.propertyIds.splice(g,1),await r(),l(),d()}})},s=n.createDiv({cls:"nb-arr-add-row"}),d=()=>{s.empty();let p=this.config.schema.filter(c=>Gh.includes(c.type)&&!o.propertyIds.includes(c.id));if(p.length===0&&a.length===0){s.createEl("p",{text:u("arr_settings_no_candidates"),cls:"nb-arr-empty"});return}if(p.length===0)return;let g=s.createEl("select",{cls:"nb-arr-select"});g.createEl("option",{text:u("arr_settings_add_placeholder"),value:""});for(let c of p)g.createEl("option",{text:c.name,value:c.id});let m=s.createEl("button",{text:u("arr_settings_add_btn"),cls:"mod-cta nb-arr-add-btn"});m.onclick=async()=>{let c=g.value;c&&(o.propertyIds.push(c),await r(),l(),d())}};if(l(),d(),this.manager&&this.dbFile){let p=n.createEl("button",{text:u("arr_settings_preview_btn"),cls:"nb-arr-preview-btn"});p.onclick=()=>{!this.manager||!this.dbFile||new Fu(this.app,this.manager,this.dbFile,{...this.config,folderArrangement:o},this.restrictToPaths).open()}}}onClose(){this.contentEl.empty()}};var Qn={id:"default",type:"table",filters:[],sorts:[],hiddenColumns:[],columnWidths:{},pinnedColumnId:null},xr={schema:[],views:[Qn]};function da(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function mt(e){return e==null?"":typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"?e.toString():e instanceof Date?e.toISOString():JSON.stringify(e)??""}var BC=["contains","not_contains","starts_with","ends_with","is","is_not","is_empty","is_not_empty"],HC=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],jC=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],tm=["is","is_not","contains","not_contains","is_empty","is_not_empty"],UC=["is_checked","is_unchecked","is_empty","is_not_empty"];function pi(e){switch(e){case"number":return HC;case"date":return jC;case"select":return tm;case"multiselect":return tm;case"status":return tm;case"checkbox":return UC;default:return BC}}function Fn(e){switch(e){case"number":case"date":return"is";case"checkbox":return"is_checked";case"select":case"multiselect":case"status":return"is";default:return"contains"}}function WC(){return{is:u("op_is"),is_not:u("op_is_not"),contains:u("op_contains"),not_contains:u("op_not_contains"),starts_with:u("op_starts_with"),ends_with:u("op_ends_with"),gt:u("op_gt"),gte:u("op_gte"),lt:u("op_lt"),lte:u("op_lte"),is_checked:u("op_is_checked"),is_unchecked:u("op_is_unchecked"),is_empty:u("op_is_empty"),is_not_empty:u("op_is_not_empty")}}var Rr=new Proxy({},{get:(e,t)=>WC()[t]??t}),Er=new Set(["is_empty","is_not_empty","is_checked","is_unchecked"]),qh="|||";function mi(e){return(e.columnType==="select"||e.columnType==="multiselect"||e.columnType==="status")&&(e.operator==="is"||e.operator==="is_not")}function pa(e){return e.split(qh).filter(t=>t!=="")}function Pu(e,t){let n=pa(e),o=n.indexOf(t);return o>=0?n.splice(o,1):n.push(t),n.join(qh)}function Je(e){return{title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197",image:"\u{1F5BC}",audio:"\u{1F3B5}",video:"\u{1F3AC}"}[e]??"\xB7"}function nm(e,t){if(!Er.has(t.operator)&&t.value==="")return!0;let o=t.columnId==="_title"?e._title:e[t.columnId];if(t.operator==="is_empty")return o==null||String(o??"").trim()==="";if(t.operator==="is_not_empty")return o!=null&&String(o??"").trim()!=="";if(t.operator==="is_checked")return o===!0||o==="true";if(t.operator==="is_unchecked")return o!==!0&&o!=="true";if(t.columnType==="number"){let i=parseFloat(String(o??"")),l=parseFloat(t.value);if(isNaN(i)||isNaN(l))return!1;switch(t.operator){case"is":return i===l;case"is_not":return i!==l;case"gt":return i>l;case"gte":return i>=l;case"lt":return il;case"gte":return i>=l;case"lt":return is.toLowerCase());if(i.length===0)return!0;let l=Array.isArray(o)?o.map(s=>s.toLowerCase()):[String(o??"").toLowerCase()];return t.operator==="is"?l.some(s=>i.includes(s)):l.every(s=>!i.includes(s))}let r=Array.isArray(o)?o.join(", ").toLowerCase():String(o??"").toLowerCase(),a=t.value.toLowerCase();switch(t.operator){case"is":return r===a;case"is_not":return r!==a;case"contains":return r.includes(a);case"not_contains":return!r.includes(a);case"starts_with":return r.startsWith(a);case"ends_with":return r.endsWith(a);default:return!0}}function On(e,t){if(t.length===0)return e;let n=[],o=[];for(let r of t)r.conjunction==="or"&&o.length>0&&(n.push(o),o=[]),o.push(r);return o.length>0&&n.push(o),e.filter(r=>n.some(a=>a.every(i=>nm(r,i))))}function Yh(e,t){if(!t||t.length===0)return e;let n=new Map(t.map((o,r)=>[o,r]));return[...e].sort((o,r)=>{let a=n.get(o._file.path)??1/0,i=n.get(r._file.path)??1/0;return a-i})}function Zn(e,t){return t.length===0?e:[...e].sort((n,o)=>{for(let r of t){let a=r.columnId==="_title"?n._title:n[r.columnId],i=r.columnId==="_title"?o._title:o[r.columnId],l=0;if(a==null)l=-1;else if(i==null)l=1;else{let s=parseFloat(mt(a)),d=parseFloat(mt(i));!isNaN(s)&&!isNaN(d)?l=s-d:l=String(a??"").toLowerCase().localeCompare(String(i??"").toLowerCase())}if(l!==0)return r.direction==="asc"?l:-l}return 0})}function Kh(e,t,n,o){for(let r of n){if(r.columnId!==t)continue;let a=o.find(s=>s.id===r.columnId),i=a?.type??"text",l={id:r.id,columnId:r.columnId,columnName:a?.name??r.columnId,columnType:i,icon:"",operator:r.operator,value:r.value,conjunction:"and"};if(nm(e,l)){let s={};return r.bgColor&&(s.backgroundColor=r.bgColor),r.textColor&&(s.color=r.textColor),s}}}function fi(e,t,n){for(let o of t){let r=n.find(l=>l.id===o.columnId),a=r?.type??"text",i={id:o.id,columnId:o.columnId,columnName:r?.name??o.columnId,columnType:a,icon:"",operator:o.operator,value:o.value,conjunction:"and"};if(nm(e,i)){let l={};return o.bgColor&&(l.borderLeft=`4px solid ${o.bgColor}`),o.textColor&&(l.color=o.textColor),l}}}var $n=De(wt(),1);var tt=class extends Error{constructor(t){super(t),this.name="FormulaError"}};function om(e){let t=[],n=0;for(;n=e.length)throw new tt(u("formula_err_unclosed_string").replace("$pos",String(o)));n++,t.push({type:"STR",val:e.slice(o+1,n-1),pos:o});continue}if(e[n]==="["){n++;let r=n;for(;n=e.length)throw new tt(u("formula_err_unclosed_bracket").replace("$pos",String(o)));let a=e.slice(r,n++);t.push({type:"BRACKET_IDENT",val:a,pos:o});continue}if(/[a-zA-Z_]/.test(e[n])){for(;n"?(t.push({type:"NEQ",val:"<>",pos:n}),n+=2):e[n+1]==="="?(t.push({type:"LTE",val:"<=",pos:n}),n+=2):t.push({type:"LT",val:"<",pos:n++});break;case">":e[n+1]==="="?(t.push({type:"GTE",val:">=",pos:n}),n+=2):t.push({type:"GT",val:">",pos:n++});break;default:throw new tt(u("formula_err_unexpected_char").replace("$char",e[n]).replace("$pos",String(n)))}}return t.push({type:"EOF",val:"",pos:n}),t}var Au=class{constructor(t){this.toks=t;this.p=0}cur(){return this.toks[this.p]}eat(){return this.toks[this.p++]}expect(t){let n=this.eat();if(n.type!==t)throw new tt(u("formula_err_expected_token").replace("$expected",String(t)).replace("$found",n.val).replace("$pos",String(n.pos)));return n}is(t){return this.cur().type===t}parse(){let t=this.expr();if(!this.is("EOF"))throw new tt(u("formula_err_unexpected_token").replace("$token",this.cur().val).replace("$pos",String(this.cur().pos)));return t}expr(){return this.cmp()}cmp(){let t=this.add();for(;["EQ","NEQ","GT","LT","GTE","LTE"].includes(this.cur().type);)t={k:"bin",op:this.eat().val,l:t,r:this.add()};return t}add(){let t=this.mul();for(;this.is("PLUS")||this.is("MINUS")||this.is("AMP");)t={k:"bin",op:this.eat().val,l:t,r:this.mul()};return t}mul(){let t=this.unary();for(;this.is("STAR")||this.is("SLASH");)t={k:"bin",op:this.eat().val,l:t,r:this.unary()};return t}unary(){return this.is("MINUS")?(this.eat(),{k:"neg",x:this.unary()}):this.primary()}primary(){let t=this.cur();if(t.type==="NUM")return this.eat(),{k:"num",v:parseFloat(t.val)};if(t.type==="STR")return this.eat(),{k:"str",v:t.val};if(t.type==="BOOL")return this.eat(),{k:"bool",v:t.val==="TRUE"};if(t.type==="BRACKET_IDENT")return this.eat(),{k:"col",name:t.val};if(t.type==="IDENT"){if(this.eat(),this.is("LPAREN")){this.eat();let n=[];if(!this.is("RPAREN"))for(n.push(this.expr());this.is("COMMA");)this.eat(),n.push(this.expr());return this.expect("RPAREN"),{k:"call",fn:t.val.toUpperCase(),args:n}}return{k:"col",name:t.val}}if(t.type==="LPAREN"){this.eat();let n=this.expr();return this.expect("RPAREN"),n}throw new tt(u("formula_err_unexpected_token").replace("$token",t.val).replace("$pos",String(t.pos)))}};function pt(e){if(typeof e=="number")return isNaN(e)?0:e;if(typeof e=="string"){let t=parseFloat(e);return isNaN(t)?0:t}return typeof e=="boolean"?e?1:0:e instanceof Date?e.getTime():0}function pn(e){return e==null?"":Array.isArray(e)?e.map(pn).join(", "):e instanceof Date?Zh(e):mt(e)}var GC=/^\d{4}-\d{2}-\d{2}$/;function Xo(e){if(e instanceof Date)return isNaN(e.getTime())?null:e;if(typeof e=="number"){let t=new Date(e);return isNaN(t.getTime())?null:t}if(typeof e=="string"){let t=e.trim();if(!t)return null;if(GC.test(t)){let[o,r,a]=t.split("-").map(Number);return new Date(o,r-1,a)}let n=Date.parse(t.includes(" ")?t.replace(" ","T"):t);return isNaN(n)?null:new Date(n)}return null}function Qo(e){return String(e).padStart(2,"0")}function Zh(e){let t=`${e.getFullYear()}-${Qo(e.getMonth()+1)}-${Qo(e.getDate())}`;return e.getHours()===0&&e.getMinutes()===0&&e.getSeconds()===0?t:`${t} ${Qo(e.getHours())}:${Qo(e.getMinutes())}`}function qC(e,t){return t.replace(/YYYY|YY|MM|DD|HH|mm|ss/g,n=>{switch(n){case"YYYY":return String(e.getFullYear());case"YY":return String(e.getFullYear()%100).padStart(2,"0");case"MM":return Qo(e.getMonth()+1);case"DD":return Qo(e.getDate());case"HH":return Qo(e.getHours());case"mm":return Qo(e.getMinutes());case"ss":return Qo(e.getSeconds());default:return n}})}function Xh(e){switch(pn(e).trim().toLowerCase()){case"y":case"year":case"years":return"years";case"m":case"month":case"months":return"months";case"w":case"week":case"weeks":return"weeks";case"":case"d":case"day":case"days":return"days";case"h":case"hour":case"hours":return"hours";case"min":case"minute":case"minutes":return"minutes";default:return null}}function Fl(e){return e!=null&&e!==!1&&e!==""&&e!==0}function Qh(e,t){if(e instanceof Date||t instanceof Date){let r=Xo(e),a=Xo(t);if(r&&a)return r.getTime()===a.getTime()}let n=typeof e=="string"?e.toLowerCase():e,o=typeof t=="string"?t.toLowerCase():t;return n==o}function Lu(e,t){if(e instanceof Date||t instanceof Date){let n=Xo(e),o=Xo(t);if(n&&o)return[n.getTime(),o.getTime()]}return[pt(e),pt(t)]}function gi(e,t){if(e==="_title")return"_title";let n=t.schema.find(r=>r.id===e&&r.type!=="formula");if(n)return n.id;let o=t.schema.find(r=>r.name.toLowerCase()===e.toLowerCase()&&r.type!=="formula");return o?o.id:null}function _i(e,t){return e==="_title"?t._title:t[e]}function YC(e,t){let n=gi(e,t);if(n===null)throw t.schema.some(r=>(r.id===e||r.name.toLowerCase()===e.toLowerCase())&&r.type==="formula")?new tt(u("formula_err_circular_ref").replace("$name",e)):new tt(`Coluna desconhecida: "${e}"`);return _i(n,t.row)}var KC=new Set(["IF","IFS","AND","OR","NOT","SUM","AVG","AVERAGE","COUNT","COUNTA","MIN","MAX","CONCAT","LEN","UPPER","LOWER","TRIM","LEFT","RIGHT","MID","SUBSTITUTE","ROUND","FLOOR","CEIL","ABS","MOD","POWER","SQRT","ISNULL","ISEMPTY","COALESCE","TEXT","VALUE","NOW","TODAY","DATE","YEAR","MONTH","DAY","HOUR","MINUTE","WEEKDAY","DATEDIF","DATEDIFF","DATEADD","FORMATDATE"]);function We(e,t){switch(e.k){case"num":return e.v;case"str":return e.v;case"bool":return e.v;case"col":return YC(e.name,t);case"neg":return-pt(We(e.x,t));case"bin":{let{op:n,l:o,r}=e,a=We(o,t),i=We(r,t);switch(n){case"+":return pt(a)+pt(i);case"-":return pt(a)-pt(i);case"*":return pt(a)*pt(i);case"/":{let l=pt(i);return l===0?null:pt(a)/l}case"&":return pn(a)+pn(i);case"=":case"==":return Qh(a,i);case"<>":case"!=":return!Qh(a,i);case">":{let[l,s]=Lu(a,i);return l>s}case"<":{let[l,s]=Lu(a,i);return l=":{let[l,s]=Lu(a,i);return l>=s}case"<=":{let[l,s]=Lu(a,i);return l<=s}default:throw new tt(`Operador desconhecido: ${n}`)}}case"call":{let{fn:n,args:o}=e;if(!KC.has(n))throw new tt(u("formula_err_unknown_fn").replace("$fn",n));if(n==="IF"){if(o.length<2||o.length>3)throw new tt(u("formula_err_if_args"));return Fl(We(o[0],t))?We(o[1],t):o[2]?We(o[2],t):null}if(n==="IFS"){if(o.length<2||o.length%2!==0)throw new tt("IFS(cond1, val1, cond2, val2, ...)");for(let r=0;rFl(We(r,t)))}if(n==="OR"){if(o.length===0)throw new tt("OR requer ao menos 1 argumento");return o.some(r=>Fl(We(r,t)))}if(n==="NOT"){if(o.length!==1)throw new tt("NOT(valor)");return!Fl(We(o[0],t))}if(n==="SUM"){if(o.length===0)throw new tt("SUM requer ao menos 1 argumento");if(o.length===1&&o[0].k==="col"){let r=gi(o[0].name,t);if(r)return t.allRows.reduce((a,i)=>a+pt(_i(r,i)),0)}return o.reduce((r,a)=>r+pt(We(a,t)),0)}if(n==="AVG"||n==="AVERAGE"){if(o.length!==1||o[0].k!=="col")throw new tt(u("formula_err_avg_args"));let r=gi(o[0].name,t);if(!r)throw new tt("Coluna desconhecida em AVG");let a=t.allRows.map(i=>pt(_i(r,i)));return a.length?a.reduce((i,l)=>i+l,0)/a.length:0}if(n==="COUNT"||n==="COUNTA"){if(o.length!==1||o[0].k!=="col")throw new tt(u("formula_err_count_args"));let r=gi(o[0].name,t);if(!r)throw new tt("Coluna desconhecida em COUNT");return t.allRows.filter(a=>{let i=_i(r,a);return i!=null&&i!==""}).length}if(n==="MIN"){if(o.length===1&&o[0].k==="col"){let r=gi(o[0].name,t);if(r)return Math.min(...t.allRows.map(a=>pt(_i(r,a))))}return Math.min(...o.map(r=>pt(We(r,t))))}if(n==="MAX"){if(o.length===1&&o[0].k==="col"){let r=gi(o[0].name,t);if(r)return Math.max(...t.allRows.map(a=>pt(_i(r,a))))}return Math.max(...o.map(r=>pt(We(r,t))))}if(n==="CONCAT")return o.map(r=>pn(We(r,t))).join("");if(n==="LEN"){if(o.length!==1)throw new tt("LEN(texto)");return pn(We(o[0],t)).length}if(n==="UPPER"){if(o.length!==1)throw new tt("UPPER(texto)");return pn(We(o[0],t)).toUpperCase()}if(n==="LOWER"){if(o.length!==1)throw new tt("LOWER(texto)");return pn(We(o[0],t)).toLowerCase()}if(n==="TRIM"){if(o.length!==1)throw new tt("TRIM(texto)");return pn(We(o[0],t)).trim()}if(n==="LEFT"){if(o.length!==2)throw new tt("LEFT(texto, n)");return pn(We(o[0],t)).slice(0,pt(We(o[1],t)))}if(n==="RIGHT"){if(o.length!==2)throw new tt("RIGHT(texto, n)");let r=pn(We(o[0],t)),a=pt(We(o[1],t));return r.slice(Math.max(0,r.length-a))}if(n==="MID"){if(o.length!==3)throw new tt(u("formula_err_mid_args"));let r=pn(We(o[0],t)),a=pt(We(o[1],t))-1;return r.slice(a,a+pt(We(o[2],t)))}if(n==="SUBSTITUTE"){if(o.length<3)throw new tt("SUBSTITUTE(texto, de, para)");return pn(We(o[0],t)).split(pn(We(o[1],t))).join(pn(We(o[2],t)))}if(n==="ROUND"){let r=pt(We(o[0],t)),a=o[1]?pt(We(o[1],t)):0;return Math.round(r*10**a)/10**a}if(n==="FLOOR")return Math.floor(pt(We(o[0],t)));if(n==="CEIL")return Math.ceil(pt(We(o[0],t)));if(n==="ABS")return Math.abs(pt(We(o[0],t)));if(n==="MOD"){if(o.length!==2)throw new tt(u("formula_err_mod_args"));return pt(We(o[0],t))%pt(We(o[1],t))}if(n==="POWER"){if(o.length!==2)throw new tt("POWER(base, expoente)");return Math.pow(pt(We(o[0],t)),pt(We(o[1],t)))}if(n==="SQRT"){if(o.length!==1)throw new tt(u("formula_err_sqrt_args"));return Math.sqrt(pt(We(o[0],t)))}if(n==="ISNULL"||n==="ISEMPTY"){if(o.length!==1)throw new tt(`${n}(valor)`);let r=We(o[0],t);return r==null||r===""}if(n==="COALESCE"){for(let r of o){let a=We(r,t);if(a!=null&&a!=="")return a}return null}if(n==="TEXT")return o.length===1?pn(We(o[0],t)):null;if(n==="VALUE")return o.length===1?pt(We(o[0],t)):null;if(n==="NOW"){if(o.length!==0)throw new tt("NOW()");return new Date}if(n==="TODAY"){if(o.length!==0)throw new tt("TODAY()");let r=new Date;return new Date(r.getFullYear(),r.getMonth(),r.getDate())}if(n==="DATE"){if(o.length!==3)throw new tt("DATE(ano, mes, dia)");return new Date(pt(We(o[0],t)),pt(We(o[1],t))-1,pt(We(o[2],t)))}if(n==="YEAR"||n==="MONTH"||n==="DAY"||n==="HOUR"||n==="MINUTE"||n==="WEEKDAY"){if(o.length!==1)throw new tt(`${n}(data)`);let r=Xo(We(o[0],t));if(!r)return null;switch(n){case"YEAR":return r.getFullYear();case"MONTH":return r.getMonth()+1;case"DAY":return r.getDate();case"HOUR":return r.getHours();case"MINUTE":return r.getMinutes();default:return r.getDay()+1}}if(n==="DATEDIF"||n==="DATEDIFF"){if(o.length<2||o.length>3)throw new tt("DATEDIF(inicio, fim, unidade?)");let r=Xo(We(o[0],t)),a=Xo(We(o[1],t));if(!r||!a)return null;let i=Xh(o[2]?We(o[2],t):"");if(!i)throw new tt("DATEDIF: unidade deve ser years, months, weeks, days, hours ou minutes");let l=Math.round((Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())-Date.UTC(r.getFullYear(),r.getMonth(),r.getDate()))/864e5);switch(i){case"days":return l;case"weeks":return Math.trunc(l/7);case"hours":return Math.trunc((a.getTime()-r.getTime())/36e5);case"minutes":return Math.trunc((a.getTime()-r.getTime())/6e4);case"months":case"years":{let s=(a.getFullYear()-r.getFullYear())*12+(a.getMonth()-r.getMonth());return s>0&&a.getDate()r.getDate()&&s++,i==="months"?s:Math.trunc(s/12)}}}if(n==="DATEADD"){if(o.length<2||o.length>3)throw new tt("DATEADD(data, n, unidade?)");let r=Xo(We(o[0],t));if(!r)return null;let a=Math.trunc(pt(We(o[1],t))),i=Xh(o[2]?We(o[2],t):"");if(!i)throw new tt("DATEADD: unidade deve ser years, months, weeks, days, hours ou minutes");let l=new Date(r.getTime());switch(i){case"years":l.setFullYear(l.getFullYear()+a);break;case"months":l.setMonth(l.getMonth()+a);break;case"weeks":l.setDate(l.getDate()+a*7);break;case"days":l.setDate(l.getDate()+a);break;case"hours":l.setHours(l.getHours()+a);break;case"minutes":l.setMinutes(l.getMinutes()+a);break}return l}if(n==="FORMATDATE"){if(o.length!==2)throw new tt("FORMATDATE(data, formato)");let r=Xo(We(o[0],t));return r?qC(r,pn(We(o[1],t))):null}throw new tt(u("formula_err_not_implemented").replace("$fn",n))}}}function Jh(e){if(!e.trim())return null;try{om(e);let t=om(e);return new Au(t).parse(),null}catch(t){return t instanceof tt?t.message:String(t)}}function XC(e,t,n,o){if(!e.trim())return null;try{let r=new Au(om(e)).parse(),a=new Set(o.filter(l=>l.type==="formula").map(l=>l.id)),i=We(r,{row:t,allRows:n,schema:o,formulaColIds:a});return i instanceof Date?Zh(i):i}catch{return"#ERRO"}}function Iu(e,t){let n=t.filter(o=>o.type==="formula"&&o.formula);return n.length===0?e:e.map(o=>{let r={...o};for(let a of n)r[a.id]=XC(a.formula,o,e,t);return r})}var rm=200,QC=100,ZC=50;async function JC(e,t,n,o,r){if(e.length<=QC)return Promise.all(e.map(i=>n.getNoteData(i,t)));let a=[];for(let i=0;in.getNoteData(d,t)));a.push(...s),i+rmwindow.setTimeout(d,0))}return o.current===r?a:null}function am(e,t){return!e||e.length===0?[]:e.flatMap(n=>{if(n.columnId==="_title")return[{id:n.id??crypto.randomUUID(),columnId:"_title",columnName:u("name_column"),columnType:"title",icon:"\u{1F4C4}",operator:n.operator,value:n.value,conjunction:n.conjunction??"and"}];let o=t.find(r=>r.id===n.columnId);return o?[{id:n.id??crypto.randomUUID(),columnId:o.id,columnName:o.name,columnType:o.type,icon:Je(o.type),operator:n.operator,value:n.value,conjunction:n.conjunction??"and"}]:[]})}function zn(e){let{app:t,dbFile:n,manager:o,includeSubfolders:r,externalView:a,onLoaded:i}=e,[l,s]=(0,$n.useState)([]),[d,p]=(0,$n.useState)(xr),[g,m]=(0,$n.useState)(!0),[c,h]=(0,$n.useState)([]),v=(0,$n.useRef)(0),b=(0,$n.useRef)(!1),f=(0,$n.useCallback)(async()=>{if(!n){m(!1);return}m(!0);let _=++v.current,w=o.readConfig(n),S=o.getNotesInDatabase(n,r);w.schema.length===0&&S.length>0&&(w.schema=await o.inferSchema(S),await o.writeConfig(n,w));let D=await JC(S,w.schema,o,v,_);if(!D)return;let T=o.resolveRollupsForRows(o.resolveLookupsForRows(Iu(D,w.schema),w.schema),w.schema);if(v.current===_){if(!b.current){b.current=!0;let V=a.activePills??[];h(am(V,w.schema))}p({schema:w.schema,views:w.views}),s(T),i?.(w,T),m(!1)}},[n,o,r,t,a,i]);return(0,$n.useEffect)(()=>{b.current=!1},[n]),(0,$n.useEffect)(()=>{f()},[f]),(0,$n.useEffect)(()=>{let _=null,w=()=>{_&&window.clearTimeout(_),_=window.setTimeout(()=>{f()},ZC)};return t.vault.on("create",w),t.vault.on("delete",w),t.vault.on("rename",w),t.metadataCache.on("changed",w),()=>{_&&window.clearTimeout(_),t.vault.off("create",w),t.vault.off("delete",w),t.vault.off("rename",w),t.metadataCache.off("changed",w)}},[t,f]),{rows:l,config:d,loading:g,activeFilters:c,setActiveFilters:h,reload:f}}var Pl=De(wt(),1);function Dr(e,t){return typeof e=="function"?e(t):e}function Jn(e,t){return n=>{t.setState(o=>({...o,[e]:Dr(n,o[e])}))}}function Vu(e){return e instanceof Function}function e0(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function t0(e,t){let n=[],o=r=>{r.forEach(a=>{n.push(a);let i=t(a);i!=null&&i.length&&o(i)})};return o(e),n}function Qe(e,t,n){let o=[],r;return a=>{let i;n.key&&n.debug&&(i=Date.now());let l=e(a);if(!(l.length!==o.length||l.some((p,g)=>o[g]!==p)))return r;o=l;let d;if(n.key&&n.debug&&(d=Date.now()),r=t(...l),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){let p=Math.round((Date.now()-i)*100)/100,g=Math.round((Date.now()-d)*100)/100,m=g/16,c=(h,v)=>{for(h=String(h);h.length{var r;return(r=e?.debugAll)!=null?r:e[t]},key:!1,onChange:o}}function UC(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}),Ke(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,n,t,e)},{}),a}function WC(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 h of s.split(".")){var v;c=(v=c)==null?void 0:v[h]}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())]},Ke(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:qe(()=>[e._getOrderColumnsFn()],m=>{var c;if((c=g.columns)!=null&&c.length){let v=g.columns.flatMap(h=>h.getLeafColumns());return m(v)}return[g]},Ke(e.options,"debugColumns","column.getLeafColumns"))};for(let m of e._features)m.createColumn==null||m.createColumn(g,e);return g}var Cn="debugHeaders";function jh(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 GC={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 Fu(t,[...l,...d,...s],e)},Ke(e.options,Cn,"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))),Fu(t,n,e,"center")),Ke(e.options,Cn,"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 Fu(t,a,e,"left")},Ke(e.options,Cn,"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 Fu(t,a,e,"right")},Ke(e.options,Cn,"getRightHeaderGroups")),e.getFooterGroups=qe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ke(e.options,Cn,"getFooterGroups")),e.getLeftFooterGroups=qe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ke(e.options,Cn,"getLeftFooterGroups")),e.getCenterFooterGroups=qe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ke(e.options,Cn,"getCenterFooterGroups")),e.getRightFooterGroups=qe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ke(e.options,Cn,"getRightFooterGroups")),e.getFlatHeaders=qe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ke(e.options,Cn,"getFlatHeaders")),e.getLeftFlatHeaders=qe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ke(e.options,Cn,"getLeftFlatHeaders")),e.getCenterFlatHeaders=qe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ke(e.options,Cn,"getCenterFlatHeaders")),e.getRightFlatHeaders=qe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ke(e.options,Cn,"getRightFlatHeaders")),e.getCenterLeafHeaders=qe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ke(e.options,Cn,"getCenterLeafHeaders")),e.getLeftLeafHeaders=qe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ke(e.options,Cn,"getLeftLeafHeaders")),e.getRightLeafHeaders=qe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Ke(e.options,Cn,"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])==null?void 0:d.headers)!=null?s:[]].map(p=>p.getLeafHeaders()).flat()},Ke(e.options,Cn,"getLeafHeaders"))}};function Fu(e,t,n,o){var r,a;let i=0,l=function(m,c){c===void 0&&(c=1),i=Math.max(i,c),m.filter(v=>v.getIsVisible()).forEach(v=>{var h;(h=v.columns)!=null&&h.length&&l(v.columns,c+1)},0)};l(e);let s=[],d=(m,c)=>{let v={depth:c,id:[o,`${c}`].filter(Boolean).join("_"),headers:[]},h=[];m.forEach(b=>{let f=[...h].reverse()[0],_=b.column.depth===v.depth,y,k=!1;if(_&&b.column.parent?y=b.column.parent:(y=b.column,k=!0),f&&f?.column===y)f.subHeaders.push(b);else{let F=jh(n,y,{id:[o,c,y.id,b?.id].filter(Boolean).join("_"),isPlaceholder:k,placeholderId:k?`${h.filter(T=>T.column===y).length}`:void 0,depth:c,index:h.length});F.subHeaders.push(b),h.push(F)}v.headers.push(b),b.headerGroup=v}),s.push(v),c>0&&d(h,c-1)},p=t.map((m,c)=>jh(n,m,{depth:i,index:c}));d(p,i-1),s.reverse();let g=m=>m.filter(v=>v.column.getIsVisible()).map(v=>{let h=0,b=0,f=[0];v.subHeaders&&v.subHeaders.length?(f=[],g(v.subHeaders).forEach(y=>{let{colSpan:k,rowSpan:F}=y;h+=k,f.push(F)})):h=1;let _=Math.min(...f);return b=b+_,v.colSpan=h,v.rowSpan=b,{colSpan:h,rowSpan:b}});return g((r=(a=s[0])==null?void 0:a.headers)!=null?r:[]),s}var cm=(e,t,n,o,r,a,i)=>{let l={id:t,index:o,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(l._valuesCache.hasOwnProperty(s))return l._valuesCache[s];let d=e.getColumn(s);if(d!=null&&d.accessorFn)return l._valuesCache[s]=d.accessorFn(l.original,o),l._valuesCache[s]},getUniqueValues:s=>{if(l._uniqueValuesCache.hasOwnProperty(s))return l._uniqueValuesCache[s];let d=e.getColumn(s);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[s]=d.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[s]):(l._uniqueValuesCache[s]=[l.getValue(s)],l._uniqueValuesCache[s])},renderValue:s=>{var d;return(d=l.getValue(s))!=null?d:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>HC(l.subRows,s=>s.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let s=[],d=l;for(;;){let p=d.getParentRow();if(!p)break;s.push(p),d=p}return s.reverse()},getAllCells:qe(()=>[e.getAllLeafColumns()],s=>s.map(d=>UC(e,l,d,d.id)),Ke(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:qe(()=>[l.getAllCells()],s=>s.reduce((d,p)=>(d[p.column.id]=p,d),{}),Ke(e.options,"debugRows","getAllCellsByColumnId"))};for(let s=0;s{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Uh=(e,t,n)=>{var o,r;let a=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(a))};Uh.autoRemove=e=>Ro(e);var Wh=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};Wh.autoRemove=e=>Ro(e);var Gh=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===n?.toLowerCase()};Gh.autoRemove=e=>Ro(e);var qh=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};qh.autoRemove=e=>Ro(e);var Kh=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});Kh.autoRemove=e=>Ro(e)||!(e!=null&&e.length);var Yh=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});Yh.autoRemove=e=>Ro(e)||!(e!=null&&e.length);var Xh=(e,t,n)=>e.getValue(t)===n;Xh.autoRemove=e=>Ro(e);var Qh=(e,t,n)=>e.getValue(t)==n;Qh.autoRemove=e=>Ro(e);var dm=(e,t,n)=>{let[o,r]=n,a=e.getValue(t);return a>=o&&a<=r};dm.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(o)?-1/0:o,i=n===null||Number.isNaN(r)?1/0:r;if(a>i){let l=a;a=i,i=l}return[a,i]};dm.autoRemove=e=>Ro(e)||Ro(e[0])&&Ro(e[1]);var Jo={includesString:Uh,includesStringSensitive:Wh,equalsString:Gh,arrIncludes:qh,arrIncludesAll:Kh,arrIncludesSome:Yh,equals:Xh,weakEquals:Qh,inNumberRange:dm};function Ro(e){return e==null||e===""}var KC={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:oo("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);return typeof o=="string"?Jo.includesString:typeof o=="number"?Jo.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Jo.equals:Array.isArray(o)?Jo.arrIncludes:Jo.weakEquals},e.getFilterFn=()=>{var n,o;return Pu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Jo[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{let r=e.getFilterFn(),a=o?.find(p=>p.id===e.id),i=Mr(n,a?a.value:void 0);if(Hh(r,i,e)){var l;return(l=o?.filter(p=>p.id!==e.id))!=null?l:[]}let s={id:e.id,value:i};if(a){var d;return(d=o?.map(p=>p.id===e.id?s:p))!=null?d:[]}return o!=null&&o.length?[...o,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns(),o=r=>{var a;return(a=Mr(t,r))==null?void 0:a.filter(i=>{let l=n.find(s=>s.id===i.id);if(l){let s=l.getFilterFn();if(Hh(s,i.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Hh(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}var YC=(e,t,n)=>n.reduce((o,r)=>{let a=r.getValue(e);return o+(typeof a=="number"?a:0)},0),XC=(e,t,n)=>{let o;return n.forEach(r=>{let a=r.getValue(e);a!=null&&(o>a||o===void 0&&a>=a)&&(o=a)}),o},QC=(e,t,n)=>{let o;return n.forEach(r=>{let a=r.getValue(e);a!=null&&(o=a)&&(o=a)}),o},ZC=(e,t,n)=>{let o,r;return n.forEach(a=>{let i=a.getValue(e);i!=null&&(o===void 0?i>=i&&(o=r=i):(o>i&&(o=i),r{let n=0,o=0;if(t.forEach(r=>{let a=r.getValue(e);a!=null&&(a=+a)>=a&&(++n,o+=a)}),n)return o/n},e0=(e,t)=>{if(!t.length)return;let n=t.map(a=>a.getValue(e));if(!jC(n))return;if(n.length===1)return n[0];let o=Math.floor(n.length/2),r=n.sort((a,i)=>a-i);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},t0=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),n0=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,o0=(e,t)=>t.length,Zp={sum:YC,min:XC,max:QC,extent:ZC,mean:JC,median:e0,unique:t0,uniqueCount:n0,count:o0},r0={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:oo("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);if(typeof o=="number")return Zp.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Zp.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return Pu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:Zp[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function a0(e,t,n){if(!(t!=null&&t.length)||!n)return e;let o=e.filter(a=>!t.includes(a.id));return n==="remove"?o:[...t.map(a=>e.find(i=>i.id===a)).filter(Boolean),...o]}var i0={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:oo("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=qe(n=>[Dl(t,n)],n=>n.findIndex(o=>o.id===e.id),Ke(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=Dl(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;let r=Dl(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=qe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let a=[];if(!(t!=null&&t.length))a=r;else{let i=[...t],l=[...r];for(;l.length&&i.length;){let s=i.shift(),d=l.findIndex(p=>p.id===s);d>-1&&a.push(l.splice(d,1)[0])}a=[...a,...l]}return a0(a,n,o)},Ke(e.options,"debugTable","_getOrderColumnsFn"))}},Jp=()=>({left:[],right:[]}),l0={getInitialState:e=>({columnPinning:Jp(),...e}),getDefaultOptions:e=>({onColumnPinningChange:oo("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var a,i;if(n==="right"){var l,s;return{left:((l=r?.left)!=null?l:[]).filter(g=>!(o!=null&&o.includes(g))),right:[...((s=r?.right)!=null?s:[]).filter(g=>!(o!=null&&o.includes(g))),...o]}}if(n==="left"){var d,p;return{left:[...((d=r?.left)!=null?d:[]).filter(g=>!(o!=null&&o.includes(g))),...o],right:((p=r?.right)!=null?p:[]).filter(g=>!(o!=null&&o.includes(g)))}}return{left:((a=r?.left)!=null?a:[]).filter(g=>!(o!=null&&o.includes(g))),right:((i=r?.right)!=null?i:[]).filter(g=>!(o!=null&&o.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,a,i;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((a=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(l=>l.id),{left:o,right:r}=t.getState().columnPinning,a=n.some(l=>o?.includes(l)),i=n.some(l=>r?.includes(l));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,o;let r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{let a=[...o??[],...r??[]];return n.filter(i=>!a.includes(i.column.id))},Ke(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Ke(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Ke(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?Jp():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:Jp())},e.getIsSomeColumnsPinned=t=>{var n;let o=e.getState().columnPinning;if(!t){var r,a;return!!((r=o.left)!=null&&r.length||(a=o.right)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),Ke(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),Ke(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{let r=[...n??[],...o??[]];return t.filter(a=>!r.includes(a.id))},Ke(e.options,"debugColumns","getCenterLeafColumns"))}};function s0(e){return e||(typeof document<"u"?document:null)}var Mu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},em=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),u0={getDefaultColumnDef:()=>Mu,getInitialState:e=>({columnSizing:{},columnSizingInfo:em(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:oo("columnSizing",e),onColumnSizingInfoChange:oo("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;let a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Mu.minSize,(o=a??e.columnDef.size)!=null?o:Mu.size),(r=e.columnDef.maxSize)!=null?r:Mu.maxSize)},e.getStart=qe(n=>[n,Dl(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,a)=>r+a.getSize(),0),Ke(t.options,"debugColumns","getStart")),e.getAfter=qe(n=>[n,Dl(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,a)=>r+a.getSize(),0),Ke(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0,o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var a;n+=(a=r.column.getSize())!=null?a:0}};return o(e),n},e.getStart=()=>{if(e.index>0){let n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{let o=t.getColumn(e.column.id),r=o?.getCanResize();return a=>{if(!o||!r||(a.persist==null||a.persist(),tm(a)&&a.touches&&a.touches.length>1))return;let i=e.getSize(),l=e?e.getLeafHeaders().map(f=>[f.column.id,f.column.getSize()]):[[o.id,o.getSize()]],s=tm(a)?Math.round(a.touches[0].clientX):a.clientX,d={},p=(f,_)=>{typeof _=="number"&&(t.setColumnSizingInfo(y=>{var k,F;let T=t.options.columnResizeDirection==="rtl"?-1:1,V=(_-((k=y?.startOffset)!=null?k:0))*T,j=Math.max(V/((F=y?.startSize)!=null?F:0),-.999999);return y.columnSizingStart.forEach(re=>{let[ne,de]=re;d[ne]=Math.round(Math.max(de+de*j,0)*100)/100}),{...y,deltaOffset:V,deltaPercentage:j}}),(t.options.columnResizeMode==="onChange"||f==="end")&&t.setColumnSizing(y=>({...y,...d})))},g=f=>p("move",f),m=f=>{p("end",f),t.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=s0(n),v={moveHandler:f=>g(f.clientX),upHandler:f=>{c?.removeEventListener("mousemove",v.moveHandler),c?.removeEventListener("mouseup",v.upHandler),m(f.clientX)}},h={moveHandler:f=>(f.cancelable&&(f.preventDefault(),f.stopPropagation()),g(f.touches[0].clientX),!1),upHandler:f=>{var _;c?.removeEventListener("touchmove",h.moveHandler),c?.removeEventListener("touchend",h.upHandler),f.cancelable&&(f.preventDefault(),f.stopPropagation()),m((_=f.touches[0])==null?void 0:_.clientX)}},b=c0()?{passive:!1}:!1;tm(a)?(c?.addEventListener("touchmove",h.moveHandler,b),c?.addEventListener("touchend",h.upHandler,b)):(c?.addEventListener("mousemove",v.moveHandler,b),c?.addEventListener("mouseup",v.upHandler,b)),t.setColumnSizingInfo(f=>({...f,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?em():(n=e.initialState.columnSizingInfo)!=null?n:em())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}},Tu=null;function c0(){if(typeof Tu=="boolean")return Tu;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Tu=e,Tu}function tm(e){return e.type==="touchstart"}var d0={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:oo("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;let r=e.columns;return(n=r.length?r.some(a=>a.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=qe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),Ke(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=qe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],Ke(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(n,o)=>qe(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Ke(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,a)=>({...r,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Dl(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var p0={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},m0={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:oo("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Jo.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:o}=e.options;return Pu(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Jo[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},f0={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:oo("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,a;e.setExpanded(o?{}:(r=(a=e.initialState)==null?void 0:a.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{let o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{let i=a.split(".");o=Math.max(o,i.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;let a=o===!0?!0:!!(o!=null&&o[e.id]),i={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{i[l]=!0}):i=o,n=(r=n)!=null?r:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){let{[e.id]:l,...s}=i;return s}return o})},e.getIsExpanded=()=>{var n;let o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o?.[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},am=0,im=10,nm=()=>({pageIndex:am,pageSize:im}),g0={getInitialState:e=>({...e,pagination:{...nm(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:oo("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{let r=a=>Mr(o,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?nm():(r=e.initialState.pagination)!=null?r:nm())},e.setPageIndex=o=>{e.setPagination(r=>{let a=Mr(o,r.pageIndex),i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...r,pageIndex:a}})},e.resetPageIndex=o=>{var r,a;e.setPageIndex(o?am:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?r:am)},e.resetPageSize=o=>{var r,a;e.setPageSize(o?im:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?r:im)},e.setPageSize=o=>{e.setPagination(r=>{let a=Math.max(1,Mr(o,r.pageSize)),i=r.pageSize*r.pageIndex,l=Math.floor(i/a);return{...r,pageIndex:l,pageSize:a}})},e.setPageCount=o=>e.setPagination(r=>{var a;let i=Mr(o,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=qe(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((a,i)=>i)),r},Ke(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:oe.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},om=()=>({top:[],bottom:[]}),_0={getInitialState:e=>({rowPinning:om(),...e}),getDefaultOptions:e=>({onRowPinningChange:oo("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{let a=o?e.getLeafRows().map(s=>{let{id:d}=s;return d}):[],i=r?e.getParentRows().map(s=>{let{id:d}=s;return d}):[],l=new Set([...i,e.id,...a]);t.setRowPinning(s=>{var d,p;if(n==="bottom"){var g,m;return{top:((g=s?.top)!=null?g:[]).filter(h=>!(l!=null&&l.has(h))),bottom:[...((m=s?.bottom)!=null?m:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)]}}if(n==="top"){var c,v;return{top:[...((c=s?.top)!=null?c:[]).filter(h=>!(l!=null&&l.has(h))),...Array.from(l)],bottom:((v=s?.bottom)!=null?v:[]).filter(h=>!(l!=null&&l.has(h)))}}return{top:((d=s?.top)!=null?d:[]).filter(h=>!(l!=null&&l.has(h))),bottom:((p=s?.bottom)!=null?p:[]).filter(h=>!(l!=null&&l.has(h)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{let n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,a=n.some(l=>o?.includes(l)),i=n.some(l=>r?.includes(l));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,o;let r=e.getIsPinned();if(!r)return-1;let a=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:l}=i;return l});return(o=a?.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?om():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:om())},e.getIsSomeRowsPinned=t=>{var n;let o=e.getState().rowPinning;if(!t){var r,a;return!!((r=o.top)!=null&&r.length||(a=o.bottom)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(i=>{let l=e.getRow(i,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(i=>t.find(l=>l.id===i))).filter(Boolean).map(i=>({...i,position:o}))},e.getTopRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ke(e.options,"debugRows","getTopRows")),e.getBottomRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ke(e.options,"debugRows","getBottomRows")),e.getCenterRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{let r=new Set([...n??[],...o??[]]);return t.filter(a=>!r.has(a.id))},Ke(e.options,"debugRows","getCenterRows"))}},h0={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:oo("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();let o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(a=>{a.getCanSelect()&&(o[a.id]=!0)}):r.forEach(a=>{delete o[a.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(a=>{lm(r,a.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?rm(e,n):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?rm(e,n):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?rm(e,n):{rows:[],flatRows:[],rowsById:{}},Ke(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState(),o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{let r=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return a;let l={...a};return lm(l,e.id,n,(i=o?.selectChildren)!=null?i:!0,t),l})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return pm(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return sm(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return sm(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{let n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},lm=(e,t,n,o,r)=>{var a;let i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>lm(e,l.id,n,o,r))};function rm(e,t){let n=e.getState().rowSelection,o=[],r={},a=function(i,l){return i.map(s=>{var d;let p=pm(s,n);if(p&&(o.push(s),r[s.id]=s),(d=s.subRows)!=null&&d.length&&(s={...s,subRows:a(s.subRows)}),p)return s}).filter(Boolean)};return{rows:a(t.rows),flatRows:o,rowsById:r}}function pm(e,t){var n;return(n=t[e.id])!=null?n:!1}function sm(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!r)&&(i.getCanSelect()&&(pm(i,t)?a=!0:r=!1),i.subRows&&i.subRows.length)){let l=sm(i,t);l==="all"?a=!0:(l==="some"&&(a=!0),r=!1)}}),r?"all":a?"some":!1}var um=/([0-9]+)/gm,v0=(e,t,n)=>Zh(Tr(e.getValue(n)).toLowerCase(),Tr(t.getValue(n)).toLowerCase()),b0=(e,t,n)=>Zh(Tr(e.getValue(n)),Tr(t.getValue(n))),y0=(e,t,n)=>mm(Tr(e.getValue(n)).toLowerCase(),Tr(t.getValue(n)).toLowerCase()),w0=(e,t,n)=>mm(Tr(e.getValue(n)),Tr(t.getValue(n))),C0=(e,t,n)=>{let o=e.getValue(n),r=t.getValue(n);return o>r?1:omm(e.getValue(n),t.getValue(n));function mm(e,t){return e===t?0:e>t?1:-1}function Tr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Zh(e,t){let n=e.split(um).filter(Boolean),o=t.split(um).filter(Boolean);for(;n.length&&o.length;){let r=n.shift(),a=o.shift(),i=parseInt(r,10),l=parseInt(a,10),s=[i,l].sort();if(isNaN(s[0])){if(r>a)return 1;if(a>r)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>l)return 1;if(l>i)return-1}return n.length-o.length}var El={alphanumeric:v0,alphanumericCaseSensitive:b0,text:y0,textCaseSensitive:w0,datetime:C0,basic:k0},S0={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:oo("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),o=!1;for(let r of n){let a=r?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return El.datetime;if(typeof a=="string"&&(o=!0,a.split(um).length>1))return El.alphanumeric}return o?El.text:El.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return Pu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:El[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{let r=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(i=>{let l=i?.find(c=>c.id===e.id),s=i?.findIndex(c=>c.id===e.id),d=[],p,g=a?n:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&o?l?p="toggle":p="add":i!=null&&i.length&&s!==i.length-1?p="replace":l?p="toggle":p="replace",p==="toggle"&&(a||r||(p="remove")),p==="add"){var m;d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else p==="toggle"?d=i.map(c=>c.id===e.id?{...c,desc:g}:c):p==="remove"?d=i.filter(c=>c.id!==e.id):d=[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;let a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},N0=[GC,d0,i0,l0,qC,KC,p0,m0,S0,r0,f0,g0,_0,h0,u0];function Jh(e){var t,n;let o=[...N0,...(t=e._features)!=null?t:[]],r={_features:o},a=r._features.reduce((m,c)=>Object.assign(m,c.getDefaultOptions==null?void 0:c.getDefaultOptions(r)),{}),i=m=>r.options.mergeOptions?r.options.mergeOptions(a,m):{...a,...m},s={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(m=>{var c;s=(c=m.getInitialState==null?void 0:m.getInitialState(s))!=null?c:s});let d=[],p=!1,g={_features:o,options:{...a,...e},initialState:s,_queue:m=>{d.push(m),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(c=>setTimeout(()=>{throw c})))},reset:()=>{r.setState(r.initialState)},setOptions:m=>{let c=Mr(m,r.options);r.options=i(c)},getState:()=>r.options.state,setState:m=>{r.options.onStateChange==null||r.options.onStateChange(m)},_getRowId:(m,c,v)=>{var h;return(h=r.options.getRowId==null?void 0:r.options.getRowId(m,c,v))!=null?h:`${v?[v.id,c].join("."):c}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(m,c)=>{let v=(c?r.getPrePaginationRowModel():r.getRowModel()).rowsById[m];if(!v&&(v=r.getCoreRowModel().rowsById[m],!v))throw new Error;return v},_getDefaultColumnDef:qe(()=>[r.options.defaultColumn],m=>{var c;return m=(c=m)!=null?c:{},{header:v=>{let h=v.header.column.columnDef;return h.accessorKey?h.accessorKey:h.accessorFn?h.id:null},cell:v=>{var h,b;return(h=(b=v.renderValue())==null||b.toString==null?void 0:b.toString())!=null?h:null},...r._features.reduce((v,h)=>Object.assign(v,h.getDefaultColumnDef==null?void 0:h.getDefaultColumnDef()),{}),...m}},Ke(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:qe(()=>[r._getColumnDefs()],m=>{let c=function(v,h,b){return b===void 0&&(b=0),v.map(f=>{let _=WC(r,f,b,h),y=f;return _.columns=y.columns?c(y.columns,_,b+1):[],_})};return c(m)},Ke(e,"debugColumns","getAllColumns")),getAllFlatColumns:qe(()=>[r.getAllColumns()],m=>m.flatMap(c=>c.getFlatColumns()),Ke(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:qe(()=>[r.getAllFlatColumns()],m=>m.reduce((c,v)=>(c[v.id]=v,c),{}),Ke(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:qe(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(m,c)=>{let v=m.flatMap(h=>h.getLeafColumns());return c(v)},Ke(e,"debugColumns","getAllLeafColumns")),getColumn:m=>r._getAllFlatColumnsById()[m]};Object.assign(r,g);for(let m=0;mqe(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},o=function(r,a,i){a===void 0&&(a=0);let l=[];for(let d=0;de._autoResetPageIndex()))}function x0(e,t,n){return n.options.filterFromLeafRows?R0(e,t,n):E0(e,t,n)}function R0(e,t,n){var o;let r=[],a={},i=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,l=function(s,d){d===void 0&&(d=0);let p=[];for(let m=0;mqe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,o)=>{if(!t.rows.length||!(n!=null&&n.length)&&!o){for(let m=0;m{var c;let v=e.getColumn(m.id);if(!v)return;let h=v.getFilterFn();h&&r.push({id:m.id,filterFn:h,resolvedValue:(c=h.resolveFilterValue==null?void 0:h.resolveFilterValue(m.value))!=null?c:m.value})});let i=(n??[]).map(m=>m.id),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());o&&l&&s.length&&(i.push("__global__"),s.forEach(m=>{var c;a.push({id:m.id,filterFn:l,resolvedValue:(c=l.resolveFilterValue==null?void 0:l.resolveFilterValue(o))!=null?c:o})}));let d,p;for(let m=0;m{c.columnFiltersMeta[h]=b})}if(a.length){for(let v=0;v{c.columnFiltersMeta[h]=b})){c.columnFilters.__global__=!0;break}}c.columnFilters.__global__!==!0&&(c.columnFilters.__global__=!1)}}let g=m=>{for(let c=0;ce._autoResetPageIndex()))}function nv(){return e=>qe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let o=e.getState().sorting,r=[],a=o.filter(s=>{var d;return(d=e.getColumn(s.id))==null?void 0:d.getCanSort()}),i={};a.forEach(s=>{let d=e.getColumn(s.id);d&&(i[s.id]={sortUndefined:d.columnDef.sortUndefined,invertSorting:d.columnDef.invertSorting,sortingFn:d.getSortingFn()})});let l=s=>{let d=s.map(p=>({...p}));return d.sort((p,g)=>{for(let c=0;c{var g;r.push(p),(g=p.subRows)!=null&&g.length&&(p.subRows=l(p.subRows))}),d};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}},Ke(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function mi(e,t){return e?D0(e)?Fl.createElement(e,t):e:null}function D0(e){return F0(e)||typeof e=="function"||M0(e)}function F0(e){return typeof e=="function"&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function M0(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function ov(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=Fl.useState(()=>({current:Jh(t)})),[o,r]=Fl.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...o,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}var ae=Fe(xt()),ga=Fe(po());var Kt=Fe(xt());function av(){for(var e=arguments.length,t=new Array(e),n=0;no=>{t.forEach(r=>r(o))},t)}var Ml=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ca(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Lu(e){return"nodeType"in e}function Tn(e){var t,n;return e?ca(e)?e:Lu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Iu(e){let{Document:t}=Tn(e);return e instanceof t}function fi(e){return ca(e)?!1:e instanceof Tn(e).HTMLElement}function gm(e){return e instanceof Tn(e).SVGElement}function da(e){return e?ca(e)?e.document:Lu(e)?Iu(e)?e:fi(e)||gm(e)?e.ownerDocument:document:document:document}var mo=Ml?Kt.useLayoutEffect:Kt.useEffect;function Au(e){let t=(0,Kt.useRef)(e);return mo(()=>{t.current=e}),(0,Kt.useCallback)(function(){for(var n=arguments.length,o=new Array(n),r=0;r{e.current=setInterval(o,r)},[]),n=(0,Kt.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function gi(e,t){t===void 0&&(t=[e]);let n=(0,Kt.useRef)(e);return mo(()=>{n.current!==e&&(n.current=e)},t),n}function _i(e,t){let n=(0,Kt.useRef)();return(0,Kt.useMemo)(()=>{let o=e(n.current);return n.current=o,o},[...t])}function Tl(e){let t=Au(e),n=(0,Kt.useRef)(null),o=(0,Kt.useCallback)(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Ou(e){let t=(0,Kt.useRef)();return(0,Kt.useEffect)(()=>{t.current=e},[e]),t.current}var fm={};function pa(e,t){return(0,Kt.useMemo)(()=>{if(t)return t;let n=fm[e]==null?0:fm[e]+1;return fm[e]=n,e+"-"+n},[e,t])}function lv(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{let l=Object.entries(i);for(let[s,d]of l){let p=a[s];p!=null&&(a[s]=p+e*d)}return a},{...t})}}var ma=lv(1),hi=lv(-1);function T0(e){return"clientX"in e&&"clientY"in e}function Pl(e){if(!e)return!1;let{KeyboardEvent:t}=Tn(e.target);return t&&e instanceof t}function P0(e){if(!e)return!1;let{TouchEvent:t}=Tn(e.target);return t&&e instanceof t}function $u(e){if(P0(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return T0(e)?{x:e.clientX,y:e.clientY}:null}var er=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[er.Translate.toString(e),er.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),rv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function sv(e){return e.matches(rv)?e:e.querySelector(rv)}var fa=Fe(xt()),L0={display:"none"};function uv(e){let{id:t,value:n}=e;return fa.default.createElement("div",{id:t,style:L0},n)}function cv(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e,r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return fa.default.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function dv(){let[e,t]=(0,fa.useState)("");return{announce:(0,fa.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}var kv=(0,ae.createContext)(null);function I0(e){let t=(0,ae.useContext)(kv);(0,ae.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function A0(){let[e]=(0,ae.useState)(()=>new Set),t=(0,ae.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,ae.useCallback)(o=>{let{type:r,event:a}=o;e.forEach(i=>{var l;return(l=i[r])==null?void 0:l.call(i,a)})},[e]),t]}var O0={draggable:` + 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])==null?void 0:d.headers)!=null?s:[]].map(p=>p.getLeafHeaders()).flat()},Ze(e.options,yn,"getLeafHeaders"))}};function Ou(e,t,n,o){var r,a;let i=0,l=function(m,c){c===void 0&&(c=1),i=Math.max(i,c),m.filter(h=>h.getIsVisible()).forEach(h=>{var v;(v=h.columns)!=null&&v.length&&l(h.columns,c+1)},0)};l(e);let s=[],d=(m,c)=>{let h={depth:c,id:[o,`${c}`].filter(Boolean).join("_"),headers:[]},v=[];m.forEach(b=>{let f=[...v].reverse()[0],_=b.column.depth===h.depth,w,S=!1;if(_&&b.column.parent?w=b.column.parent:(w=b.column,S=!0),f&&f?.column===w)f.subHeaders.push(b);else{let D=ev(n,w,{id:[o,c,w.id,b?.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${v.filter(T=>T.column===w).length}`:void 0,depth:c,index:v.length});D.subHeaders.push(b),v.push(D)}h.headers.push(b),b.headerGroup=h}),s.push(h),c>0&&d(v,c-1)},p=t.map((m,c)=>ev(n,m,{depth:i,index:c}));d(p,i-1),s.reverse();let g=m=>m.filter(h=>h.column.getIsVisible()).map(h=>{let v=0,b=0,f=[0];h.subHeaders&&h.subHeaders.length?(f=[],g(h.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:D}=w;v+=S,f.push(D)})):v=1;let _=Math.min(...f);return b=b+_,h.colSpan=v,h.rowSpan=b,{colSpan:v,rowSpan:b}});return g((r=(a=s[0])==null?void 0:a.headers)!=null?r:[]),s}var vm=(e,t,n,o,r,a,i)=>{let l={id:t,index:o,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(l._valuesCache.hasOwnProperty(s))return l._valuesCache[s];let d=e.getColumn(s);if(d!=null&&d.accessorFn)return l._valuesCache[s]=d.accessorFn(l.original,o),l._valuesCache[s]},getUniqueValues:s=>{if(l._uniqueValuesCache.hasOwnProperty(s))return l._uniqueValuesCache[s];let d=e.getColumn(s);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[s]=d.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[s]):(l._uniqueValuesCache[s]=[l.getValue(s)],l._uniqueValuesCache[s])},renderValue:s=>{var d;return(d=l.getValue(s))!=null?d:e.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>t0(l.subRows,s=>s.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let s=[],d=l;for(;;){let p=d.getParentRow();if(!p)break;s.push(p),d=p}return s.reverse()},getAllCells:Qe(()=>[e.getAllLeafColumns()],s=>s.map(d=>n0(e,l,d,d.id)),Ze(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Qe(()=>[l.getAllCells()],s=>s.reduce((d,p)=>(d[p.column.id]=p,d),{}),Ze(e.options,"debugRows","getAllCellsByColumnId"))};for(let s=0;s{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nv=(e,t,n)=>{var o,r;let a=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(a))};nv.autoRemove=e=>So(e);var ov=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};ov.autoRemove=e=>So(e);var rv=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===n?.toLowerCase()};rv.autoRemove=e=>So(e);var av=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};av.autoRemove=e=>So(e);var iv=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});iv.autoRemove=e=>So(e)||!(e!=null&&e.length);var lv=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});lv.autoRemove=e=>So(e)||!(e!=null&&e.length);var sv=(e,t,n)=>e.getValue(t)===n;sv.autoRemove=e=>So(e);var uv=(e,t,n)=>e.getValue(t)==n;uv.autoRemove=e=>So(e);var bm=(e,t,n)=>{let[o,r]=n,a=e.getValue(t);return a>=o&&a<=r};bm.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(o)?-1/0:o,i=n===null||Number.isNaN(r)?1/0:r;if(a>i){let l=a;a=i,i=l}return[a,i]};bm.autoRemove=e=>So(e)||So(e[0])&&So(e[1]);var Zo={includesString:nv,includesStringSensitive:ov,equalsString:rv,arrIncludes:av,arrIncludesAll:iv,arrIncludesSome:lv,equals:sv,weakEquals:uv,inNumberRange:bm};function So(e){return e==null||e===""}var i0={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Jn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);return typeof o=="string"?Zo.includesString:typeof o=="number"?Zo.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Zo.equals:Array.isArray(o)?Zo.arrIncludes:Zo.weakEquals},e.getFilterFn=()=>{var n,o;return Vu(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Zo[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{let r=e.getFilterFn(),a=o?.find(p=>p.id===e.id),i=Dr(n,a?a.value:void 0);if(tv(r,i,e)){var l;return(l=o?.filter(p=>p.id!==e.id))!=null?l:[]}let s={id:e.id,value:i};if(a){var d;return(d=o?.map(p=>p.id===e.id?s:p))!=null?d:[]}return o!=null&&o.length?[...o,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns(),o=r=>{var a;return(a=Dr(t,r))==null?void 0:a.filter(i=>{let l=n.find(s=>s.id===i.id);if(l){let s=l.getFilterFn();if(tv(s,i.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function tv(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}var l0=(e,t,n)=>n.reduce((o,r)=>{let a=r.getValue(e);return o+(typeof a=="number"?a:0)},0),s0=(e,t,n)=>{let o;return n.forEach(r=>{let a=r.getValue(e);a!=null&&(o>a||o===void 0&&a>=a)&&(o=a)}),o},u0=(e,t,n)=>{let o;return n.forEach(r=>{let a=r.getValue(e);a!=null&&(o=a)&&(o=a)}),o},c0=(e,t,n)=>{let o,r;return n.forEach(a=>{let i=a.getValue(e);i!=null&&(o===void 0?i>=i&&(o=r=i):(o>i&&(o=i),r{let n=0,o=0;if(t.forEach(r=>{let a=r.getValue(e);a!=null&&(a=+a)>=a&&(++n,o+=a)}),n)return o/n},p0=(e,t)=>{if(!t.length)return;let n=t.map(a=>a.getValue(e));if(!e0(n))return;if(n.length===1)return n[0];let o=Math.floor(n.length/2),r=n.sort((a,i)=>a-i);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},m0=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),f0=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,g0=(e,t)=>t.length,im={sum:l0,min:s0,max:u0,extent:c0,mean:d0,median:p0,unique:m0,uniqueCount:f0,count:g0},_0={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Jn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],o=n?.getValue(e.id);if(typeof o=="number")return im.sum;if(Object.prototype.toString.call(o)==="[object Date]")return im.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return Vu(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:im[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function h0(e,t,n){if(!(t!=null&&t.length)||!n)return e;let o=e.filter(a=>!t.includes(a.id));return n==="remove"?o:[...t.map(a=>e.find(i=>i.id===a)).filter(Boolean),...o]}var v0={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Jn("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Qe(n=>[Tl(t,n)],n=>n.findIndex(o=>o.id===e.id),Ze(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=Tl(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;let r=Tl(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Qe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let a=[];if(!(t!=null&&t.length))a=r;else{let i=[...t],l=[...r];for(;l.length&&i.length;){let s=i.shift(),d=l.findIndex(p=>p.id===s);d>-1&&a.push(l.splice(d,1)[0])}a=[...a,...l]}return h0(a,n,o)},Ze(e.options,"debugTable","_getOrderColumnsFn"))}},lm=()=>({left:[],right:[]}),b0={getInitialState:e=>({columnPinning:lm(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Jn("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var a,i;if(n==="right"){var l,s;return{left:((l=r?.left)!=null?l:[]).filter(g=>!(o!=null&&o.includes(g))),right:[...((s=r?.right)!=null?s:[]).filter(g=>!(o!=null&&o.includes(g))),...o]}}if(n==="left"){var d,p;return{left:[...((d=r?.left)!=null?d:[]).filter(g=>!(o!=null&&o.includes(g))),...o],right:((p=r?.right)!=null?p:[]).filter(g=>!(o!=null&&o.includes(g)))}}return{left:((a=r?.left)!=null?a:[]).filter(g=>!(o!=null&&o.includes(g))),right:((i=r?.right)!=null?i:[]).filter(g=>!(o!=null&&o.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,a,i;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((a=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(l=>l.id),{left:o,right:r}=t.getState().columnPinning,a=n.some(l=>o?.includes(l)),i=n.some(l=>r?.includes(l));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,o;let r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{let a=[...o??[],...r??[]];return n.filter(i=>!a.includes(i.column.id))},Ze(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Ze(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(a=>n.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Ze(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?lm():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:lm())},e.getIsSomeColumnsPinned=t=>{var n;let o=e.getState().columnPinning;if(!t){var r,a;return!!((r=o.left)!=null&&r.length||(a=o.right)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=Qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),Ze(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),Ze(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{let r=[...n??[],...o??[]];return t.filter(a=>!r.includes(a.id))},Ze(e.options,"debugColumns","getCenterLeafColumns"))}};function y0(e){return e||(typeof document<"u"?document:null)}var $u={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},sm=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),w0={getDefaultColumnDef:()=>$u,getInitialState:e=>({columnSizing:{},columnSizingInfo:sm(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Jn("columnSizing",e),onColumnSizingInfoChange:Jn("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;let a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:$u.minSize,(o=a??e.columnDef.size)!=null?o:$u.size),(r=e.columnDef.maxSize)!=null?r:$u.maxSize)},e.getStart=Qe(n=>[n,Tl(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,a)=>r+a.getSize(),0),Ze(t.options,"debugColumns","getStart")),e.getAfter=Qe(n=>[n,Tl(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,a)=>r+a.getSize(),0),Ze(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0,o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var a;n+=(a=r.column.getSize())!=null?a:0}};return o(e),n},e.getStart=()=>{if(e.index>0){let n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{let o=t.getColumn(e.column.id),r=o?.getCanResize();return a=>{if(!o||!r||(a.persist==null||a.persist(),um(a)&&a.touches&&a.touches.length>1))return;let i=e.getSize(),l=e?e.getLeafHeaders().map(f=>[f.column.id,f.column.getSize()]):[[o.id,o.getSize()]],s=um(a)?Math.round(a.touches[0].clientX):a.clientX,d={},p=(f,_)=>{typeof _=="number"&&(t.setColumnSizingInfo(w=>{var S,D;let T=t.options.columnResizeDirection==="rtl"?-1:1,V=(_-((S=w?.startOffset)!=null?S:0))*T,j=Math.max(V/((D=w?.startSize)!=null?D:0),-.999999);return w.columnSizingStart.forEach(le=>{let[re,_e]=le;d[re]=Math.round(Math.max(_e+_e*j,0)*100)/100}),{...w,deltaOffset:V,deltaPercentage:j}}),(t.options.columnResizeMode==="onChange"||f==="end")&&t.setColumnSizing(w=>({...w,...d})))},g=f=>p("move",f),m=f=>{p("end",f),t.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=y0(n),h={moveHandler:f=>g(f.clientX),upHandler:f=>{c?.removeEventListener("mousemove",h.moveHandler),c?.removeEventListener("mouseup",h.upHandler),m(f.clientX)}},v={moveHandler:f=>(f.cancelable&&(f.preventDefault(),f.stopPropagation()),g(f.touches[0].clientX),!1),upHandler:f=>{var _;c?.removeEventListener("touchmove",v.moveHandler),c?.removeEventListener("touchend",v.upHandler),f.cancelable&&(f.preventDefault(),f.stopPropagation()),m((_=f.touches[0])==null?void 0:_.clientX)}},b=C0()?{passive:!1}:!1;um(a)?(c?.addEventListener("touchmove",v.moveHandler,b),c?.addEventListener("touchend",v.upHandler,b)):(c?.addEventListener("mousemove",h.moveHandler,b),c?.addEventListener("mouseup",h.upHandler,b)),t.setColumnSizingInfo(f=>({...f,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?sm():(n=e.initialState.columnSizingInfo)!=null?n:sm())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}},zu=null;function C0(){if(typeof zu=="boolean")return zu;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return zu=e,zu}function um(e){return e.type==="touchstart"}var k0={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Jn("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;let r=e.columns;return(n=r.length?r.some(a=>a.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Qe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),Ze(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Qe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],Ze(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(n,o)=>Qe(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Ze(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,a)=>({...r,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Tl(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var S0={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},N0={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Jn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Zo.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:o}=e.options;return Vu(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Zo[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},x0={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Jn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,a;e.setExpanded(o?{}:(r=(a=e.initialState)==null?void 0:a.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{let o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{let i=a.split(".");o=Math.max(o,i.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;let a=o===!0?!0:!!(o!=null&&o[e.id]),i={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{i[l]=!0}):i=o,n=(r=n)!=null?r:!a,!a&&n)return{...i,[e.id]:!0};if(a&&!n){let{[e.id]:l,...s}=i;return s}return o})},e.getIsExpanded=()=>{var n;let o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o?.[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},mm=0,fm=10,cm=()=>({pageIndex:mm,pageSize:fm}),R0={getInitialState:e=>({...e,pagination:{...cm(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Jn("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{let r=a=>Dr(o,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?cm():(r=e.initialState.pagination)!=null?r:cm())},e.setPageIndex=o=>{e.setPagination(r=>{let a=Dr(o,r.pageIndex),i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...r,pageIndex:a}})},e.resetPageIndex=o=>{var r,a;e.setPageIndex(o?mm:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?r:mm)},e.resetPageSize=o=>{var r,a;e.setPageSize(o?fm:(r=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?r:fm)},e.setPageSize=o=>{e.setPagination(r=>{let a=Math.max(1,Dr(o,r.pageSize)),i=r.pageSize*r.pageIndex,l=Math.floor(i/a);return{...r,pageIndex:l,pageSize:a}})},e.setPageCount=o=>e.setPagination(r=>{var a;let i=Dr(o,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=Qe(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((a,i)=>i)),r},Ze(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:oe.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},dm=()=>({top:[],bottom:[]}),E0={getInitialState:e=>({rowPinning:dm(),...e}),getDefaultOptions:e=>({onRowPinningChange:Jn("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{let a=o?e.getLeafRows().map(s=>{let{id:d}=s;return d}):[],i=r?e.getParentRows().map(s=>{let{id:d}=s;return d}):[],l=new Set([...i,e.id,...a]);t.setRowPinning(s=>{var d,p;if(n==="bottom"){var g,m;return{top:((g=s?.top)!=null?g:[]).filter(v=>!(l!=null&&l.has(v))),bottom:[...((m=s?.bottom)!=null?m:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)]}}if(n==="top"){var c,h;return{top:[...((c=s?.top)!=null?c:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)],bottom:((h=s?.bottom)!=null?h:[]).filter(v=>!(l!=null&&l.has(v)))}}return{top:((d=s?.top)!=null?d:[]).filter(v=>!(l!=null&&l.has(v))),bottom:((p=s?.bottom)!=null?p:[]).filter(v=>!(l!=null&&l.has(v)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{let n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,a=n.some(l=>o?.includes(l)),i=n.some(l=>r?.includes(l));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,o;let r=e.getIsPinned();if(!r)return-1;let a=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:l}=i;return l});return(o=a?.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?dm():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:dm())},e.getIsSomeRowsPinned=t=>{var n;let o=e.getState().rowPinning;if(!t){var r,a;return!!((r=o.top)!=null&&r.length||(a=o.bottom)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(i=>{let l=e.getRow(i,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(i=>t.find(l=>l.id===i))).filter(Boolean).map(i=>({...i,position:o}))},e.getTopRows=Qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ze(e.options,"debugRows","getTopRows")),e.getBottomRows=Qe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ze(e.options,"debugRows","getBottomRows")),e.getCenterRows=Qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{let r=new Set([...n??[],...o??[]]);return t.filter(a=>!r.has(a.id))},Ze(e.options,"debugRows","getCenterRows"))}},D0={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Jn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();let o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(a=>{a.getCanSelect()&&(o[a.id]=!0)}):r.forEach(a=>{delete o[a.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(a=>{gm(r,a.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Qe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},Ze(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Qe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},Ze(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Qe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},Ze(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState(),o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{let r=e.getIsSelected();t.setRowSelection(a=>{var i;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return a;let l={...a};return gm(l,e.id,n,(i=o?.selectChildren)!=null?i:!0,t),l})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return ym(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return _m(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return _m(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{let n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},gm=(e,t,n,o,r)=>{var a;let i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>gm(e,l.id,n,o,r))};function pm(e,t){let n=e.getState().rowSelection,o=[],r={},a=function(i,l){return i.map(s=>{var d;let p=ym(s,n);if(p&&(o.push(s),r[s.id]=s),(d=s.subRows)!=null&&d.length&&(s={...s,subRows:a(s.subRows)}),p)return s}).filter(Boolean)};return{rows:a(t.rows),flatRows:o,rowsById:r}}function ym(e,t){var n;return(n=t[e.id])!=null?n:!1}function _m(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!r)&&(i.getCanSelect()&&(ym(i,t)?a=!0:r=!1),i.subRows&&i.subRows.length)){let l=_m(i,t);l==="all"?a=!0:(l==="some"&&(a=!0),r=!1)}}),r?"all":a?"some":!1}var hm=/([0-9]+)/gm,F0=(e,t,n)=>cv(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),M0=(e,t,n)=>cv(Fr(e.getValue(n)),Fr(t.getValue(n))),T0=(e,t,n)=>wm(Fr(e.getValue(n)).toLowerCase(),Fr(t.getValue(n)).toLowerCase()),P0=(e,t,n)=>wm(Fr(e.getValue(n)),Fr(t.getValue(n))),L0=(e,t,n)=>{let o=e.getValue(n),r=t.getValue(n);return o>r?1:owm(e.getValue(n),t.getValue(n));function wm(e,t){return e===t?0:e>t?1:-1}function Fr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function cv(e,t){let n=e.split(hm).filter(Boolean),o=t.split(hm).filter(Boolean);for(;n.length&&o.length;){let r=n.shift(),a=o.shift(),i=parseInt(r,10),l=parseInt(a,10),s=[i,l].sort();if(isNaN(s[0])){if(r>a)return 1;if(a>r)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>l)return 1;if(l>i)return-1}return n.length-o.length}var Ml={alphanumeric:F0,alphanumericCaseSensitive:M0,text:T0,textCaseSensitive:P0,datetime:L0,basic:A0},I0={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Jn("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),o=!1;for(let r of n){let a=r?.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Ml.datetime;if(typeof a=="string"&&(o=!0,a.split(hm).length>1))return Ml.alphanumeric}return o?Ml.text:Ml.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return Vu(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:Ml[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{let r=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(i=>{let l=i?.find(c=>c.id===e.id),s=i?.findIndex(c=>c.id===e.id),d=[],p,g=a?n:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&o?l?p="toggle":p="add":i!=null&&i.length&&s!==i.length-1?p="replace":l?p="toggle":p="replace",p==="toggle"&&(a||r||(p="remove")),p==="add"){var m;d=[...i,{id:e.id,desc:g}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else p==="toggle"?d=i.map(c=>c.id===e.id?{...c,desc:g}:c):p==="remove"?d=i.filter(c=>c.id!==e.id):d=[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;let a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},O0=[r0,k0,v0,b0,a0,i0,S0,N0,I0,_0,x0,R0,E0,D0,w0];function dv(e){var t,n;let o=[...O0,...(t=e._features)!=null?t:[]],r={_features:o},a=r._features.reduce((m,c)=>Object.assign(m,c.getDefaultOptions==null?void 0:c.getDefaultOptions(r)),{}),i=m=>r.options.mergeOptions?r.options.mergeOptions(a,m):{...a,...m},s={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(m=>{var c;s=(c=m.getInitialState==null?void 0:m.getInitialState(s))!=null?c:s});let d=[],p=!1,g={_features:o,options:{...a,...e},initialState:s,_queue:m=>{d.push(m),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(c=>setTimeout(()=>{throw c})))},reset:()=>{r.setState(r.initialState)},setOptions:m=>{let c=Dr(m,r.options);r.options=i(c)},getState:()=>r.options.state,setState:m=>{r.options.onStateChange==null||r.options.onStateChange(m)},_getRowId:(m,c,h)=>{var v;return(v=r.options.getRowId==null?void 0:r.options.getRowId(m,c,h))!=null?v:`${h?[h.id,c].join("."):c}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(m,c)=>{let h=(c?r.getPrePaginationRowModel():r.getRowModel()).rowsById[m];if(!h&&(h=r.getCoreRowModel().rowsById[m],!h))throw new Error;return h},_getDefaultColumnDef:Qe(()=>[r.options.defaultColumn],m=>{var c;return m=(c=m)!=null?c:{},{header:h=>{let v=h.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:h=>{var v,b;return(v=(b=h.renderValue())==null||b.toString==null?void 0:b.toString())!=null?v:null},...r._features.reduce((h,v)=>Object.assign(h,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...m}},Ze(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:Qe(()=>[r._getColumnDefs()],m=>{let c=function(h,v,b){return b===void 0&&(b=0),h.map(f=>{let _=o0(r,f,b,v),w=f;return _.columns=w.columns?c(w.columns,_,b+1):[],_})};return c(m)},Ze(e,"debugColumns","getAllColumns")),getAllFlatColumns:Qe(()=>[r.getAllColumns()],m=>m.flatMap(c=>c.getFlatColumns()),Ze(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Qe(()=>[r.getAllFlatColumns()],m=>m.reduce((c,h)=>(c[h.id]=h,c),{}),Ze(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Qe(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(m,c)=>{let h=m.flatMap(v=>v.getLeafColumns());return c(h)},Ze(e,"debugColumns","getAllLeafColumns")),getColumn:m=>r._getAllFlatColumnsById()[m]};Object.assign(r,g);for(let m=0;mQe(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},o=function(r,a,i){a===void 0&&(a=0);let l=[];for(let d=0;de._autoResetPageIndex()))}function $0(e,t,n){return n.options.filterFromLeafRows?z0(e,t,n):V0(e,t,n)}function z0(e,t,n){var o;let r=[],a={},i=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,l=function(s,d){d===void 0&&(d=0);let p=[];for(let m=0;mQe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,o)=>{if(!t.rows.length||!(n!=null&&n.length)&&!o){for(let m=0;m{var c;let h=e.getColumn(m.id);if(!h)return;let v=h.getFilterFn();v&&r.push({id:m.id,filterFn:v,resolvedValue:(c=v.resolveFilterValue==null?void 0:v.resolveFilterValue(m.value))!=null?c:m.value})});let i=(n??[]).map(m=>m.id),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());o&&l&&s.length&&(i.push("__global__"),s.forEach(m=>{var c;a.push({id:m.id,filterFn:l,resolvedValue:(c=l.resolveFilterValue==null?void 0:l.resolveFilterValue(o))!=null?c:o})}));let d,p;for(let m=0;m{c.columnFiltersMeta[v]=b})}if(a.length){for(let h=0;h{c.columnFiltersMeta[v]=b})){c.columnFilters.__global__=!0;break}}c.columnFilters.__global__!==!0&&(c.columnFilters.__global__=!1)}}let g=m=>{for(let c=0;ce._autoResetPageIndex()))}function fv(){return e=>Qe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let o=e.getState().sorting,r=[],a=o.filter(s=>{var d;return(d=e.getColumn(s.id))==null?void 0:d.getCanSort()}),i={};a.forEach(s=>{let d=e.getColumn(s.id);d&&(i[s.id]={sortUndefined:d.columnDef.sortUndefined,invertSorting:d.columnDef.invertSorting,sortingFn:d.getSortingFn()})});let l=s=>{let d=s.map(p=>({...p}));return d.sort((p,g)=>{for(let c=0;c{var g;r.push(p),(g=p.subRows)!=null&&g.length&&(p.subRows=l(p.subRows))}),d};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}},Ze(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function hi(e,t){return e?B0(e)?Pl.createElement(e,t):e:null}function B0(e){return H0(e)||typeof e=="function"||j0(e)}function H0(e){return typeof e=="function"&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function j0(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function gv(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=Pl.useState(()=>({current:dv(t)})),[o,r]=Pl.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...o,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}var ie=De(wt()),va=De(lo());var Wt=De(wt());function hv(){for(var e=arguments.length,t=new Array(e),n=0;no=>{t.forEach(r=>r(o))},t)}var Ll=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ma(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Bu(e){return"nodeType"in e}function Mn(e){var t,n;return e?ma(e)?e:Bu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Hu(e){let{Document:t}=Mn(e);return e instanceof t}function vi(e){return ma(e)?!1:e instanceof Mn(e).HTMLElement}function km(e){return e instanceof Mn(e).SVGElement}function fa(e){return e?ma(e)?e.document:Bu(e)?Hu(e)?e:vi(e)||km(e)?e.ownerDocument:document:document:document}var so=Ll?Wt.useLayoutEffect:Wt.useEffect;function ju(e){let t=(0,Wt.useRef)(e);return so(()=>{t.current=e}),(0,Wt.useCallback)(function(){for(var n=arguments.length,o=new Array(n),r=0;r{e.current=setInterval(o,r)},[]),n=(0,Wt.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function bi(e,t){t===void 0&&(t=[e]);let n=(0,Wt.useRef)(e);return so(()=>{n.current!==e&&(n.current=e)},t),n}function yi(e,t){let n=(0,Wt.useRef)();return(0,Wt.useMemo)(()=>{let o=e(n.current);return n.current=o,o},[...t])}function Al(e){let t=ju(e),n=(0,Wt.useRef)(null),o=(0,Wt.useCallback)(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Uu(e){let t=(0,Wt.useRef)();return(0,Wt.useEffect)(()=>{t.current=e},[e]),t.current}var Cm={};function ga(e,t){return(0,Wt.useMemo)(()=>{if(t)return t;let n=Cm[e]==null?0:Cm[e]+1;return Cm[e]=n,e+"-"+n},[e,t])}function bv(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{let l=Object.entries(i);for(let[s,d]of l){let p=a[s];p!=null&&(a[s]=p+e*d)}return a},{...t})}}var _a=bv(1),wi=bv(-1);function U0(e){return"clientX"in e&&"clientY"in e}function Il(e){if(!e)return!1;let{KeyboardEvent:t}=Mn(e.target);return t&&e instanceof t}function W0(e){if(!e)return!1;let{TouchEvent:t}=Mn(e.target);return t&&e instanceof t}function Wu(e){if(W0(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return U0(e)?{x:e.clientX,y:e.clientY}:null}var Jo=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Jo.Translate.toString(e),Jo.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),_v="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function yv(e){return e.matches(_v)?e:e.querySelector(_v)}var ha=De(wt()),G0={display:"none"};function wv(e){let{id:t,value:n}=e;return ha.default.createElement("div",{id:t,style:G0},n)}function Cv(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e,r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ha.default.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function kv(){let[e,t]=(0,ha.useState)("");return{announce:(0,ha.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}var Av=(0,ie.createContext)(null);function q0(e){let t=(0,ie.useContext)(Av);(0,ie.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Y0(){let[e]=(0,ie.useState)(()=>new Set),t=(0,ie.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,ie.useCallback)(o=>{let{type:r,event:a}=o;e.forEach(i=>{var l;return(l=i[r])==null?void 0:l.call(i,a)})},[e]),t]}var K0={draggable:` 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. - `},$0={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 z0(e){let{announcements:t=$0,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=O0}=e,{announce:a,announcement:i}=dv(),l=pa("DndLiveRegion"),[s,d]=(0,ae.useState)(!1);if((0,ae.useEffect)(()=>{d(!0)},[]),I0((0,ae.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=ae.default.createElement(ae.default.Fragment,null,ae.default.createElement(uv,{id:o,value:r.draggable}),ae.default.createElement(cv,{id:l,announcement:i}));return n?(0,ga.createPortal)(p,n):p}var an;(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"})(an||(an={}));function Vu(){}function km(e,t){return(0,ae.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function Sv(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(o=>o!=null),[...t])}var Eo=Object.freeze({x:0,y:0});function V0(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function B0(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function j0(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Nv(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function pv(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 Sm=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e,r=pv(t,t.left,t.top),a=[];for(let i of o){let{id:l}=i,s=n.get(l);if(s){let d=V0(pv(s),r);a.push({id:l,data:{droppableContainer:i,value:d}})}}return a.sort(B0)};function H0(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{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=H0(l,t);s>0&&r.push({id:i,data:{droppableContainer:a,value:s}})}}return r.sort(j0)};function W0(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function xv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Eo}function G0(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a({...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 q0=G0(1);function K0(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 Y0(e,t,n){let o=K0(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 X0={ignoreTransform:!1};function va(e,t){t===void 0&&(t=X0);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:d,transformOrigin:p}=Tn(e).getComputedStyle(e);d&&(n=Y0(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 mv(e){return va(e,{ignoreTransform:!0})}function Q0(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Z0(e,t){return t===void 0&&(t=Tn(e).getComputedStyle(e)),t.position==="fixed"}function J0(e,t){t===void 0&&(t=Tn(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 Hu(e,t){let n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(Iu(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!fi(r)||gm(r)||n.includes(r))return n;let a=Tn(e).getComputedStyle(r);return r!==e&&J0(r,a)&&n.push(r),Z0(r,a)?n:o(r.parentNode)}return e?o(e):n}function Rv(e){let[t]=Hu(e,1);return t??null}function _m(e){return!Ml||!e?null:ca(e)?e:Lu(e)?Iu(e)||e===da(e).scrollingElement?window:fi(e)?e:null:null}function Ev(e){return ca(e)?e.scrollX:e.scrollLeft}function Dv(e){return ca(e)?e.scrollY:e.scrollTop}function bm(e){return{x:Ev(e),y:Dv(e)}}var cn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(cn||(cn={}));function Fv(e){return!Ml||!e?!1:e===document.scrollingElement}function Mv(e){let t={x:0,y:0},n=Fv(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:r,isLeft:a,isBottom:i,isRight:l,maxScroll:o,minScroll:t}}var ek={x:.2,y:.2};function tk(e,t,n,o,r){let{top:a,left:i,right:l,bottom:s}=n;o===void 0&&(o=10),r===void 0&&(r=ek);let{isTop:d,isBottom:p,isLeft:g,isRight:m}=Mv(e),c={x:0,y:0},v={x:0,y:0},h={height:t.height*r.y,width:t.width*r.x};return!d&&a<=t.top+h.height?(c.y=cn.Backward,v.y=o*Math.abs((t.top+h.height-a)/h.height)):!p&&s>=t.bottom-h.height&&(c.y=cn.Forward,v.y=o*Math.abs((t.bottom-h.height-s)/h.height)),!m&&l>=t.right-h.width?(c.x=cn.Forward,v.x=o*Math.abs((t.right-h.width-l)/h.width)):!g&&i<=t.left+h.width&&(c.x=cn.Backward,v.x=o*Math.abs((t.left+h.width-i)/h.width)),{direction:c,speed:v}}function nk(e){if(e===document.scrollingElement){let{innerWidth:a,innerHeight:i}=window;return{top:0,left:0,right:a,bottom:i,width:a,height:i}}let{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Tv(e){return e.reduce((t,n)=>ma(t,bm(n)),Eo)}function ok(e){return e.reduce((t,n)=>t+Ev(n),0)}function rk(e){return e.reduce((t,n)=>t+Dv(n),0)}function ak(e,t){if(t===void 0&&(t=va),!e)return;let{top:n,left:o,bottom:r,right:a}=t(e);Rv(e)&&(r<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var ik=[["x",["left","right"],ok],["y",["top","bottom"],rk]],Il=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let o=Hu(n),r=Tv(o);this.rect={...t},this.width=t.width,this.height=t.height;for(let[a,i,l]of ik)for(let s of i)Object.defineProperty(this,s,{get:()=>{let d=l(o),p=r[a]-d;return this.rect[s]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},_a=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}};function lk(e){let{EventTarget:t}=Tn(e);return e instanceof t?e:da(e)}function hm(e,t){let n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var fo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(fo||(fo={}));function fv(e){e.preventDefault()}function sk(e){e.stopPropagation()}var Rt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Rt||(Rt={}));var Pv={start:[Rt.Space,Rt.Enter],cancel:[Rt.Esc],end:[Rt.Space,Rt.Enter,Rt.Tab]},uk=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Rt.Right:return{...n,x:n.x+25};case Rt.Left:return{...n,x:n.x-25};case Rt.Down:return{...n,y:n.y+25};case Rt.Up:return{...n,y:n.y-25}}},Bu=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new _a(da(n)),this.windowListeners=new _a(Tn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(fo.Resize,this.handleCancel),this.windowListeners.add(fo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(fo.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&ak(o),n(Eo)}handleKeyDown(t){if(Pl(t)){let{active:n,context:o,options:r}=this.props,{keyboardCodes:a=Pv,coordinateGetter:i=uk,scrollBehavior:l="smooth"}=r,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}let{collisionRect:d}=o.current,p=d?{x:d.left,y:d.top}:Eo;this.referenceCoordinates||(this.referenceCoordinates=p);let g=i(t,{active:n,context:o.current,currentCoordinates:p});if(g){let m=hi(g,p),c={x:0,y:0},{scrollableAncestors:v}=o.current;for(let h of v){let b=t.code,{isTop:f,isRight:_,isLeft:y,isBottom:k,maxScroll:F,minScroll:T}=Mv(h),V=nk(h),j={x:Math.min(b===Rt.Right?V.right-V.width/2:V.right,Math.max(b===Rt.Right?V.left:V.left+V.width/2,g.x)),y:Math.min(b===Rt.Down?V.bottom-V.height/2:V.bottom,Math.max(b===Rt.Down?V.top:V.top+V.height/2,g.y))},re=b===Rt.Right&&!_||b===Rt.Left&&!y,ne=b===Rt.Down&&!k||b===Rt.Up&&!f;if(re&&j.x!==g.x){let de=h.scrollLeft+m.x,ve=b===Rt.Right&&de<=F.x||b===Rt.Left&&de>=T.x;if(ve&&!m.y){h.scrollTo({left:de,behavior:l});return}ve?c.x=h.scrollLeft-de:c.x=b===Rt.Right?h.scrollLeft-F.x:h.scrollLeft-T.x,c.x&&h.scrollBy({left:-c.x,behavior:l});break}else if(ne&&j.y!==g.y){let de=h.scrollTop+m.y,ve=b===Rt.Down&&de<=F.y||b===Rt.Up&&de>=T.y;if(ve&&!m.x){h.scrollTo({top:de,behavior:l});return}ve?c.y=h.scrollTop-de:c.y=b===Rt.Down?h.scrollTop-F.y:h.scrollTop-T.y,c.y&&h.scrollBy({top:-c.y,behavior:l});break}}this.handleMove(t,ma(hi(g,this.referenceCoordinates),c))}}}handleMove(t,n){let{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Bu.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Pv,onActivation:r}=t,{active:a}=n,{code:i}=e.nativeEvent;if(o.start.includes(i)){let l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function gv(e){return!!(e&&"distance"in e)}function _v(e){return!!(e&&"delay"in e)}var Al=class{constructor(t,n,o){var r;o===void 0&&(o=lk(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:a}=t,{target:i}=a;this.props=t,this.events=n,this.document=da(i),this.documentListeners=new _a(this.document),this.listeners=new _a(o),this.windowListeners=new _a(Tn(i)),this.initialCoordinates=(r=$u(a))!=null?r:Eo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(fo.Resize,this.handleCancel),this.windowListeners.add(fo.DragStart,fv),this.windowListeners.add(fo.VisibilityChange,this.handleCancel),this.windowListeners.add(fo.ContextMenu,fv),this.documentListeners.add(fo.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(_v(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(gv(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(fo.Click,sk,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(fo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:o,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:l}}=a;if(!r)return;let s=(n=$u(t))!=null?n:Eo,d=hi(r,s);if(!o&&l){if(gv(l)){if(l.tolerance!=null&&hm(d,l.tolerance))return this.handleCancel();if(hm(d,l.distance))return this.handleStart()}if(_v(l)&&hm(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),i(s)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Rt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},ck={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},vi=class extends Al{constructor(t){let{event:n}=t,o=da(n.target);super(t,ck,o)}};vi.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];var dk={move:{name:"mousemove"},end:{name:"mouseup"}},ym;(function(e){e[e.RightClick=2]="RightClick"})(ym||(ym={}));var wm=class extends Al{constructor(t){super(t,dk,da(t.event.target))}};wm.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===ym.RightClick?!1:(o?.({event:n}),!0)}}];var vm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Ol=class extends Al{constructor(t){super(t,vm)}static setup(){return window.addEventListener(vm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(vm.move.name,t)};function t(){}}};Ol.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t,{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var Ll;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ll||(Ll={}));var ju;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ju||(ju={}));function pk(e){let{acceleration:t,activator:n=Ll.Pointer,canScroll:o,draggingRect:r,enabled:a,interval:i=5,order:l=ju.TreeOrder,pointerCoordinates:s,scrollableAncestors:d,scrollableAncestorRects:p,delta:g,threshold:m}=e,c=fk({delta:g,disabled:!a}),[v,h]=iv(),b=(0,ae.useRef)({x:0,y:0}),f=(0,ae.useRef)({x:0,y:0}),_=(0,ae.useMemo)(()=>{switch(n){case Ll.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Ll.DraggableRect:return r}},[n,r,s]),y=(0,ae.useRef)(null),k=(0,ae.useCallback)(()=>{let T=y.current;if(!T)return;let V=b.current.x*f.current.x,j=b.current.y*f.current.y;T.scrollBy(V,j)},[]),F=(0,ae.useMemo)(()=>l===ju.TreeOrder?[...d].reverse():d,[l,d]);(0,ae.useEffect)(()=>{if(!a||!d.length||!_){h();return}for(let T of F){if(o?.(T)===!1)continue;let V=d.indexOf(T),j=p[V];if(!j)continue;let{direction:re,speed:ne}=tk(T,j,_,t,m);for(let de of["x","y"])c[de][re[de]]||(ne[de]=0,re[de]=0);if(ne.x>0||ne.y>0){h(),y.current=T,v(k,i),b.current=ne,f.current=re;return}}b.current={x:0,y:0},f.current={x:0,y:0},h()},[t,k,o,h,a,i,JSON.stringify(_),JSON.stringify(c),v,d,F,p,JSON.stringify(m)])}var mk={x:{[cn.Backward]:!1,[cn.Forward]:!1},y:{[cn.Backward]:!1,[cn.Forward]:!1}};function fk(e){let{delta:t,disabled:n}=e,o=Ou(t);return _i(r=>{if(n||!o||!r)return mk;let a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[cn.Backward]:r.x[cn.Backward]||a.x===-1,[cn.Forward]:r.x[cn.Forward]||a.x===1},y:{[cn.Backward]:r.y[cn.Backward]||a.y===-1,[cn.Forward]:r.y[cn.Forward]||a.y===1}}},[n,t,o])}function gk(e,t){let n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return _i(r=>{var a;return t==null?null:(a=o??r)!=null?a:null},[o,t])}function _k(e,t){return(0,ae.useMemo)(()=>e.reduce((n,o)=>{let{sensor:r}=o,a=r.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...n,...a]},[]),[e,t])}var $l;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})($l||($l={}));var Cm;(function(e){e.Optimized="optimized"})(Cm||(Cm={}));var hv=new Map;function hk(e,t){let{dragging:n,dependencies:o,config:r}=t,[a,i]=(0,ae.useState)(null),{frequency:l,measure:s,strategy:d}=r,p=(0,ae.useRef)(e),g=b(),m=gi(g),c=(0,ae.useCallback)(function(f){f===void 0&&(f=[]),!m.current&&i(_=>_===null?f:_.concat(f.filter(y=>!_.includes(y))))},[m]),v=(0,ae.useRef)(null),h=_i(f=>{if(g&&!n)return hv;if(!f||f===hv||p.current!==e||a!=null){let _=new Map;for(let y of e){if(!y)continue;if(a&&a.length>0&&!a.includes(y.id)&&y.rect.current){_.set(y.id,y.rect.current);continue}let k=y.node.current,F=k?new Il(s(k),k):null;y.rect.current=F,F&&_.set(y.id,F)}return _}return f},[e,a,n,g,s]);return(0,ae.useEffect)(()=>{p.current=e},[e]),(0,ae.useEffect)(()=>{g||c()},[n,g]),(0,ae.useEffect)(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),(0,ae.useEffect)(()=>{g||typeof l!="number"||v.current!==null||(v.current=setTimeout(()=>{c(),v.current=null},l))},[l,g,c,...o]),{droppableRects:h,measureDroppableContainers:c,measuringScheduled:a!=null};function b(){switch(d){case $l.Always:return!1;case $l.BeforeDragging:return n;default:return!n}}}function Lv(e,t){return _i(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function vk(e,t){return Lv(e,t)}function bk(e){let{callback:t,disabled:n}=e,o=Au(t),r=(0,ae.useMemo)(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:a}=window;return new a(o)},[o,n]);return(0,ae.useEffect)(()=>()=>r?.disconnect(),[r]),r}function Uu(e){let{callback:t,disabled:n}=e,o=Au(t),r=(0,ae.useMemo)(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:a}=window;return new a(o)},[n]);return(0,ae.useEffect)(()=>()=>r?.disconnect(),[r]),r}function yk(e){return new Il(va(e),e)}function vv(e,t,n){t===void 0&&(t=yk);let[o,r]=(0,ae.useState)(null);function a(){r(s=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=s??n)!=null?d:null}let p=t(e);return JSON.stringify(s)===JSON.stringify(p)?s:p})}let i=bk({callback(s){if(e)for(let d of s){let{type:p,target:g}=d;if(p==="childList"&&g instanceof HTMLElement&&g.contains(e)){a();break}}}}),l=Uu({callback:a});return mo(()=>{a(),e?(l?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),i?.disconnect())},[e]),o}function wk(e){let t=Lv(e);return xv(e,t)}var bv=[];function Ck(e){let t=(0,ae.useRef)(e),n=_i(o=>e?o&&o!==bv&&e&&t.current&&e.parentNode===t.current.parentNode?o:Hu(e):bv,[e]);return(0,ae.useEffect)(()=>{t.current=e},[e]),n}function kk(e){let[t,n]=(0,ae.useState)(null),o=(0,ae.useRef)(e),r=(0,ae.useCallback)(a=>{let i=_m(a.target);i&&n(l=>l?(l.set(i,bm(i)),new Map(l)):null)},[]);return(0,ae.useEffect)(()=>{let a=o.current;if(e!==a){i(a);let l=e.map(s=>{let d=_m(s);return d?(d.addEventListener("scroll",r,{passive:!0}),[d,bm(d)]):null}).filter(s=>s!=null);n(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(a)};function i(l){l.forEach(s=>{let d=_m(s);d?.removeEventListener("scroll",r)})}},[r,e]),(0,ae.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>ma(a,i),Eo):Tv(e):Eo,[e,t])}function yv(e,t){t===void 0&&(t=[]);let n=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{n.current=null},t),(0,ae.useEffect)(()=>{let o=e!==Eo;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?hi(e,n.current):Eo}function Sk(e){(0,ae.useEffect)(()=>{if(!Ml)return;let t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Nk(e,t){return(0,ae.useMemo)(()=>e.reduce((n,o)=>{let{eventName:r,handler:a}=o;return n[r]=i=>{a(i,t)},n},{}),[e,t])}function Iv(e){return(0,ae.useMemo)(()=>e?Q0(e):null,[e])}var wv=[];function xk(e,t){t===void 0&&(t=va);let[n]=e,o=Iv(n?Tn(n):null),[r,a]=(0,ae.useState)(wv);function i(){a(()=>e.length?e.map(s=>Fv(s)?o:new Il(t(s),s)):wv)}let l=Uu({callback:i});return mo(()=>{l?.disconnect(),i(),e.forEach(s=>l?.observe(s))},[e]),r}function Rk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return fi(t)?t:e}function Ek(e){let{measure:t}=e,[n,o]=(0,ae.useState)(null),r=(0,ae.useCallback)(d=>{for(let{target:p}of d)if(fi(p)){o(g=>{let m=t(p);return g?{...g,width:m.width,height:m.height}:m});break}},[t]),a=Uu({callback:r}),i=(0,ae.useCallback)(d=>{let p=Rk(d);a?.disconnect(),p&&a?.observe(p),o(p?t(p):null)},[t,a]),[l,s]=Tl(i);return(0,ae.useMemo)(()=>({nodeRef:l,rect:n,setRef:s}),[n,l,s])}var Dk=[{sensor:vi,options:{}},{sensor:Bu,options:{}}],Fk={current:{}},zu={draggable:{measure:mv},droppable:{measure:mv,strategy:$l.WhileDragging,frequency:Cm.Optimized},dragOverlay:{measure:va}},ha=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}},Mk={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ha,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Vu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:zu,measureDroppableContainers:Vu,windowRect:null,measuringScheduled:!1},Tk={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Vu,draggableNodes:new Map,over:null,measureDroppableContainers:Vu},Wu=(0,ae.createContext)(Tk),Av=(0,ae.createContext)(Mk);function Pk(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ha}}}function Lk(e,t){switch(t.type){case an.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case an.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case an.DragEnd:case an.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case an.RegisterDroppable:{let{element:n}=t,{id:o}=n,r=new ha(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case an.SetDroppableDisabled:{let{id:n,key:o,disabled:r}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;let i=new ha(e.droppable.containers);return i.set(n,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case an.UnregisterDroppable:{let{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;let a=new ha(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Ik(e){let{disabled:t}=e,{active:n,activatorEvent:o,draggableNodes:r}=(0,ae.useContext)(Wu),a=Ou(o),i=Ou(n?.id);return(0,ae.useEffect)(()=>{if(!t&&!o&&a&&i!=null){if(!Pl(a)||document.activeElement===a.target)return;let l=r.get(i);if(!l)return;let{activatorNode:s,node:d}=l;if(!s.current&&!d.current)return;requestAnimationFrame(()=>{for(let p of[s.current,d.current]){if(!p)continue;let g=sv(p);if(g){g.focus();break}}})}},[o,t,r,i,a]),null}function Ak(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...o}),n):n}function Ok(e){return(0,ae.useMemo)(()=>({draggable:{...zu.draggable,...e?.draggable},droppable:{...zu.droppable,...e?.droppable},dragOverlay:{...zu.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function $k(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e,a=(0,ae.useRef)(!1),{x:i,y:l}=typeof r=="boolean"?{x:r,y:r}:r;mo(()=>{if(!i&&!l||!t){a.current=!1;return}if(a.current||!o)return;let d=t?.node.current;if(!d||d.isConnected===!1)return;let p=n(d),g=xv(p,o);if(i||(g.x=0),l||(g.y=0),a.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){let m=Rv(d);m&&m.scrollBy({top:g.y,left:g.x})}},[t,i,l,o,n])}var Ov=(0,ae.createContext)({...Eo,scaleX:1,scaleY:1}),Pr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Pr||(Pr={}));var Nm=(0,ae.memo)(function(t){var n,o,r,a;let{id:i,accessibility:l,autoScroll:s=!0,children:d,sensors:p=Dk,collisionDetection:g=U0,measuring:m,modifiers:c,...v}=t,h=(0,ae.useReducer)(Lk,void 0,Pk),[b,f]=h,[_,y]=A0(),[k,F]=(0,ae.useState)(Pr.Uninitialized),T=k===Pr.Initialized,{draggable:{active:V,nodes:j,translate:re},droppable:{containers:ne}}=b,de=V!=null?j.get(V):null,ve=(0,ae.useRef)({initial:null,translated:null}),Ce=(0,ae.useMemo)(()=>{var Z;return V!=null?{id:V,data:(Z=de?.data)!=null?Z:Fk,rect:ve}:null},[V,de]),Oe=(0,ae.useRef)(null),[q,W]=(0,ae.useState)(null),[O,Q]=(0,ae.useState)(null),ce=gi(v,Object.values(v)),Ne=pa("DndDescribedBy",i),Be=(0,ae.useMemo)(()=>ne.getEnabled(),[ne]),$e=Ok(m),{droppableRects:nt,measureDroppableContainers:et,measuringScheduled:fe}=hk(Be,{dragging:T,dependencies:[re.x,re.y],config:$e.droppable}),Me=gk(j,V),Ae=(0,ae.useMemo)(()=>O?$u(O):null,[O]),He=S(),ze=vk(Me,$e.draggable.measure);$k({activeNode:V!=null?j.get(V):null,config:He.layoutShiftCompensation,initialRect:ze,measure:$e.draggable.measure});let xe=vv(Me,$e.draggable.measure,ze),rt=vv(Me?Me.parentElement:null),K=(0,ae.useRef)({activatorEvent:null,active:null,activeNode:Me,collisionRect:null,collisions:null,droppableRects:nt,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:ne,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),D=ne.getNodeFor((n=K.current.over)==null?void 0:n.id),ie=Ek({measure:$e.dragOverlay.measure}),me=(o=ie.nodeRef.current)!=null?o:Me,se=T?(r=ie.rect)!=null?r:xe:null,Ve=!!(ie.nodeRef.current&&ie.rect),ge=wk(Ve?null:xe),Re=Iv(me?Tn(me):null),yt=Ck(T?D??Me:null),Tt=xk(yt),Pt=Ak(c,{transform:{x:re.x-ge.x,y:re.y-ge.y,scaleX:1,scaleY:1},activatorEvent:O,active:Ce,activeNodeRect:xe,containerNodeRect:rt,draggingNodeRect:se,over:K.current.over,overlayNodeRect:ie.rect,scrollableAncestors:yt,scrollableAncestorRects:Tt,windowRect:Re}),P=Ae?ma(Ae,re):null,ke=kk(yt),A=yv(ke),ee=yv(ke,[xe]),Le=ma(Pt,A),Te=se?q0(se,Pt):null,vt=Ce&&Te?g({active:Ce,collisionRect:Te,droppableRects:nt,droppableContainers:Be,pointerCoordinates:P}):null,dn=Nv(vt,"id"),[pt,pn]=(0,ae.useState)(null),en=Ve?Pt:ma(Pt,ee),tn=W0(en,(a=pt?.rect)!=null?a:null,xe),x=(0,ae.useRef)(null),N=(0,ae.useCallback)((Z,be)=>{let{sensor:we,options:De}=be;if(Oe.current==null)return;let Ye=j.get(Oe.current);if(!Ye)return;let We=Z.nativeEvent,H=new we({active:Oe.current,activeNode:Ye,event:We,options:De,context:K,onAbort(Pe){if(!j.get(Pe))return;let{onDragAbort:lt}=ce.current,bt={id:Pe};lt?.(bt),_({type:"onDragAbort",event:bt})},onPending(Pe,mt,lt,bt){if(!j.get(Pe))return;let{onDragPending:Bt}=ce.current,Dt={id:Pe,constraint:mt,initialCoordinates:lt,offset:bt};Bt?.(Dt),_({type:"onDragPending",event:Dt})},onStart(Pe){let mt=Oe.current;if(mt==null)return;let lt=j.get(mt);if(!lt)return;let{onDragStart:bt}=ce.current,$t={activatorEvent:We,active:{id:mt,data:lt.data,rect:ve}};(0,ga.unstable_batchedUpdates)(()=>{bt?.($t),F(Pr.Initializing),f({type:an.DragStart,initialCoordinates:Pe,active:mt}),_({type:"onDragStart",event:$t}),W(x.current),Q(We)})},onMove(Pe){f({type:an.DragMove,coordinates:Pe})},onEnd:je(an.DragEnd),onCancel:je(an.DragCancel)});x.current=H;function je(Pe){return async function(){let{active:lt,collisions:bt,over:$t,scrollAdjustedTranslate:Bt}=K.current,Dt=null;if(lt&&Bt){let{cancelDrop:ln}=ce.current;Dt={activatorEvent:We,active:lt,collisions:bt,delta:Bt,over:$t},Pe===an.DragEnd&&typeof ln=="function"&&await Promise.resolve(ln(Dt))&&(Pe=an.DragCancel)}Oe.current=null,(0,ga.unstable_batchedUpdates)(()=>{f({type:Pe}),F(Pr.Uninitialized),pn(null),W(null),Q(null),x.current=null;let ln=Pe===an.DragEnd?"onDragEnd":"onDragCancel";if(Dt){let qn=ce.current[ln];qn?.(Dt),_({type:ln,event:Dt})}})}}},[j]),X=(0,ae.useCallback)((Z,be)=>(we,De)=>{let Ye=we.nativeEvent,We=j.get(De);if(Oe.current!==null||!We||Ye.dndKit||Ye.defaultPrevented)return;let H={active:We};Z(we,be.options,H)===!0&&(Ye.dndKit={capturedBy:be.sensor},Oe.current=De,N(we,be))},[j,N]),ue=_k(p,X);Sk(p),mo(()=>{xe&&k===Pr.Initializing&&F(Pr.Initialized)},[xe,k]),(0,ae.useEffect)(()=>{let{onDragMove:Z}=ce.current,{active:be,activatorEvent:we,collisions:De,over:Ye}=K.current;if(!be||!we)return;let We={active:be,activatorEvent:we,collisions:De,delta:{x:Le.x,y:Le.y},over:Ye};(0,ga.unstable_batchedUpdates)(()=>{Z?.(We),_({type:"onDragMove",event:We})})},[Le.x,Le.y]),(0,ae.useEffect)(()=>{let{active:Z,activatorEvent:be,collisions:we,droppableContainers:De,scrollAdjustedTranslate:Ye}=K.current;if(!Z||Oe.current==null||!be||!Ye)return;let{onDragOver:We}=ce.current,H=De.get(dn),je=H&&H.rect.current?{id:H.id,rect:H.rect.current,data:H.data,disabled:H.disabled}:null,Pe={active:Z,activatorEvent:be,collisions:we,delta:{x:Ye.x,y:Ye.y},over:je};(0,ga.unstable_batchedUpdates)(()=>{pn(je),We?.(Pe),_({type:"onDragOver",event:Pe})})},[dn]),mo(()=>{K.current={activatorEvent:O,active:Ce,activeNode:Me,collisionRect:Te,collisions:vt,droppableRects:nt,draggableNodes:j,draggingNode:me,draggingNodeRect:se,droppableContainers:ne,over:pt,scrollableAncestors:yt,scrollAdjustedTranslate:Le},ve.current={initial:se,translated:Te}},[Ce,Me,vt,Te,j,me,se,nt,ne,pt,yt,Le]),pk({...He,delta:re,draggingRect:Te,pointerCoordinates:P,scrollableAncestors:yt,scrollableAncestorRects:Tt});let oe=(0,ae.useMemo)(()=>({active:Ce,activeNode:Me,activeNodeRect:xe,activatorEvent:O,collisions:vt,containerNodeRect:rt,dragOverlay:ie,draggableNodes:j,droppableContainers:ne,droppableRects:nt,over:pt,measureDroppableContainers:et,scrollableAncestors:yt,scrollableAncestorRects:Tt,measuringConfiguration:$e,measuringScheduled:fe,windowRect:Re}),[Ce,Me,xe,O,vt,rt,ie,j,ne,nt,pt,et,yt,Tt,$e,fe,Re]),te=(0,ae.useMemo)(()=>({activatorEvent:O,activators:ue,active:Ce,activeNodeRect:xe,ariaDescribedById:{draggable:Ne},dispatch:f,draggableNodes:j,over:pt,measureDroppableContainers:et}),[O,ue,Ce,xe,f,Ne,j,pt,et]);return ae.default.createElement(kv.Provider,{value:y},ae.default.createElement(Wu.Provider,{value:te},ae.default.createElement(Av.Provider,{value:oe},ae.default.createElement(Ov.Provider,{value:tn},d)),ae.default.createElement(Ik,{disabled:l?.restoreFocus===!1})),ae.default.createElement(z0,{...l,hiddenTextDescribedById:Ne}));function S(){let Z=q?.autoScrollEnabled===!1,be=typeof s=="object"?s.enabled===!1:s===!1,we=T&&!Z&&!be;return typeof s=="object"?{...s,enabled:we}:{enabled:we}}}),zk=(0,ae.createContext)(null),Cv="button",Vk="Draggable";function $v(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e,a=pa(Vk),{activators:i,activatorEvent:l,active:s,activeNodeRect:d,ariaDescribedById:p,draggableNodes:g,over:m}=(0,ae.useContext)(Wu),{role:c=Cv,roleDescription:v="draggable",tabIndex:h=0}=r??{},b=s?.id===t,f=(0,ae.useContext)(b?Ov:zk),[_,y]=Tl(),[k,F]=Tl(),T=Nk(i,t),V=gi(n);mo(()=>(g.set(t,{id:t,key:a,node:_,activatorNode:k,data:V}),()=>{let re=g.get(t);re&&re.key===a&&g.delete(t)}),[g,t]);let j=(0,ae.useMemo)(()=>({role:c,tabIndex:h,"aria-disabled":o,"aria-pressed":b&&c===Cv?!0:void 0,"aria-roledescription":v,"aria-describedby":p.draggable}),[o,c,h,b,v,p.draggable]);return{active:s,activatorEvent:l,activeNodeRect:d,attributes:j,isDragging:b,listeners:o?void 0:T,node:_,over:m,setNodeRef:y,setActivatorNodeRef:F,transform:f}}function zv(){return(0,ae.useContext)(Av)}var Bk="Droppable",jk={timeout:25};function Vv(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e,a=pa(Bk),{active:i,dispatch:l,over:s,measureDroppableContainers:d}=(0,ae.useContext)(Wu),p=(0,ae.useRef)({disabled:n}),g=(0,ae.useRef)(!1),m=(0,ae.useRef)(null),c=(0,ae.useRef)(null),{disabled:v,updateMeasurementsFor:h,timeout:b}={...jk,...r},f=gi(h??o),_=(0,ae.useCallback)(()=>{if(!g.current){g.current=!0;return}c.current!=null&&clearTimeout(c.current),c.current=setTimeout(()=>{d(Array.isArray(f.current)?f.current:[f.current]),c.current=null},b)},[b]),y=Uu({callback:_,disabled:v||!i}),k=(0,ae.useCallback)((j,re)=>{y&&(re&&(y.unobserve(re),g.current=!1),j&&y.observe(j))},[y]),[F,T]=Tl(k),V=gi(t);return(0,ae.useEffect)(()=>{!y||!F.current||(y.disconnect(),g.current=!1,y.observe(F.current))},[F,y]),(0,ae.useEffect)(()=>(l({type:an.RegisterDroppable,element:{id:o,key:a,disabled:n,node:F,rect:m,data:V}}),()=>l({type:an.UnregisterDroppable,key:a,id:o})),[o]),(0,ae.useEffect)(()=>{n!==p.current.disabled&&(l({type:an.SetDroppableDisabled,id:o,key:a,disabled:n}),p.current.disabled=n)},[o,a,n,l]),{active:i,rect:m,isOver:s?.id===o,node:F,over:s,setNodeRef:T}}var Yt=Fe(xt());function bi(e,t,n){let o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function Hk(e,t){return e.reduce((n,o,r)=>{let a=t.get(o);return a&&(n[r]=a),n},Array(e.length))}function Gu(e){return e!==null&&e>=0}function Uk(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:a,index:i}=e,l=(t=n[r])!=null?t:o;if(!l)return null;let s=Gk(n,i,r);if(i===r){let d=n[a];return d?{x:rr&&i<=a?{x:-l.width-s,y:0,...qu}:i=a?{x:l.width+s,y:0,...qu}:{x:0,y:0,...qu}};function Gk(e,t,n){let o=e[t],r=e[t-1],a=e[t+1];return!o||!r&&!a?0:n{let{rects:t,activeIndex:n,overIndex:o,index:r}=e,a=bi(t,o,n),i=t[r],l=a[r];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}};var jv="Sortable",Hv=Yt.default.createContext({activeIndex:-1,containerId:jv,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Bv,disabled:{draggable:!1,droppable:!1}});function Rm(e){let{children:t,id:n,items:o,strategy:r=Bv,disabled:a=!1}=e,{active:i,dragOverlay:l,droppableRects:s,over:d,measureDroppableContainers:p}=zv(),g=pa(jv,n),m=l.rect!==null,c=(0,Yt.useMemo)(()=>o.map(T=>typeof T=="object"&&"id"in T?T.id:T),[o]),v=i!=null,h=i?c.indexOf(i.id):-1,b=d?c.indexOf(d.id):-1,f=(0,Yt.useRef)(c),_=!Uk(c,f.current),y=b!==-1&&h===-1||_,k=Wk(a);mo(()=>{_&&v&&p(c)},[_,c,v,p]),(0,Yt.useEffect)(()=>{f.current=c},[c]);let F=(0,Yt.useMemo)(()=>({activeIndex:h,containerId:g,disabled:k,disableTransforms:y,items:c,overIndex:b,useDragOverlay:m,sortedRects:Hk(c,s),strategy:r}),[h,g,k.draggable,k.droppable,y,c,b,s,m,r]);return Yt.default.createElement(Hv.Provider,{value:F},t)}var qk=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return bi(n,o,r).indexOf(t)},Kk=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:d}=e;return!d||!o||l!==a&&r===i?!1:n?!0:i!==r&&t===s},Yk={duration:200,easing:"ease"},Uv="transform",Xk=er.Transition.toString({property:Uv,duration:0,easing:"linear"}),Qk={roleDescription:"sortable"};function Zk(e){let{disabled:t,index:n,node:o,rect:r}=e,[a,i]=(0,Yt.useState)(null),l=(0,Yt.useRef)(n);return mo(()=>{if(!t&&n!==l.current&&o.current){let s=r.current;if(s){let d=va(o.current,{ignoreTransform:!0}),p={x:s.left-d.left,y:s.top-d.top,scaleX:s.width/d.width,scaleY:s.height/d.height};(p.x||p.y)&&i(p)}}n!==l.current&&(l.current=n)},[t,n,o,r]),(0,Yt.useEffect)(()=>{a&&i(null)},[a]),a}function Em(e){let{animateLayoutChanges:t=Kk,attributes:n,disabled:o,data:r,getNewIndex:a=qk,id:i,strategy:l,resizeObserverConfig:s,transition:d=Yk}=e,{items:p,containerId:g,activeIndex:m,disabled:c,disableTransforms:v,sortedRects:h,overIndex:b,useDragOverlay:f,strategy:_}=(0,Yt.useContext)(Hv),y=Jk(o,c),k=p.indexOf(i),F=(0,Yt.useMemo)(()=>({sortable:{containerId:g,index:k,items:p},...r}),[g,r,k,p]),T=(0,Yt.useMemo)(()=>p.slice(p.indexOf(i)),[p,i]),{rect:V,node:j,isOver:re,setNodeRef:ne}=Vv({id:i,data:F,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...s}}),{active:de,activatorEvent:ve,activeNodeRect:Ce,attributes:Oe,setNodeRef:q,listeners:W,isDragging:O,over:Q,setActivatorNodeRef:ce,transform:Ne}=$v({id:i,data:F,attributes:{...Qk,...n},disabled:y.draggable}),Be=av(ne,q),$e=!!de,nt=$e&&!v&&Gu(m)&&Gu(b),et=!f&&O,fe=et&&nt?Ne:null,Ae=nt?fe??(l??_)({rects:h,activeNodeRect:Ce,activeIndex:m,overIndex:b,index:k}):null,He=Gu(m)&&Gu(b)?a({id:i,items:p,activeIndex:m,overIndex:b}):k,ze=de?.id,xe=(0,Yt.useRef)({activeId:ze,items:p,newIndex:He,containerId:g}),rt=p!==xe.current.items,K=t({active:de,containerId:g,isDragging:O,isSorting:$e,id:i,index:k,items:p,newIndex:xe.current.newIndex,previousItems:xe.current.items,previousContainerId:xe.current.containerId,transition:d,wasDragging:xe.current.activeId!=null}),D=Zk({disabled:!K,index:k,node:j,rect:V});return(0,Yt.useEffect)(()=>{$e&&xe.current.newIndex!==He&&(xe.current.newIndex=He),g!==xe.current.containerId&&(xe.current.containerId=g),p!==xe.current.items&&(xe.current.items=p)},[$e,He,g,p]),(0,Yt.useEffect)(()=>{if(ze===xe.current.activeId)return;if(ze!=null&&xe.current.activeId==null){xe.current.activeId=ze;return}let me=setTimeout(()=>{xe.current.activeId=ze},50);return()=>clearTimeout(me)},[ze]),{active:de,activeIndex:m,attributes:Oe,data:F,rect:V,index:k,newIndex:He,items:p,isOver:re,isSorting:$e,isDragging:O,listeners:W,node:j,overIndex:b,over:Q,setNodeRef:Be,setActivatorNodeRef:ce,setDroppableNodeRef:ne,setDraggableNodeRef:q,transform:D??Ae,transition:ie()};function ie(){if(D||rt&&xe.current.newIndex===k)return Xk;if(!(et&&!Pl(ve)||!d)&&($e||K))return er.Transition.toString({...d,property:Uv})}}function Jk(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}var n1=[Rt.Down,Rt.Right,Rt.Up,Rt.Left];var lb=require("obsidian"),le=Fe(xt(),1),nc=Fe(po(),1);var Ku=Fe(xt(),1);function Hn(e,t){let[n,o]=(0,Ku.useState)(e);return(0,Ku.useEffect)(()=>{let r=window.setTimeout(()=>o(e),t);return()=>window.clearTimeout(r)},[e,t]),n}var ye=Fe(xt(),1),Lr=Fe(po(),1);var E=Fe(St(),1),Kv={title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",url:"\u2197",email:"\u2709",phone:"\u{1F4DE}",status:"\u25CE",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197",rollup:"\u03A3",image:"\u{1F5BC}",audio:"\u{1F3B5}",video:"\u{1F3AC}"},iS=()=>({title:u("type_title"),text:u("type_text"),number:u("type_number"),select:u("type_select"),multiselect:u("type_multiselect"),date:u("type_date"),checkbox:u("type_checkbox"),url:u("type_url"),email:u("type_email"),phone:u("type_phone"),status:u("type_status"),formula:u("type_formula"),relation:u("type_relation"),lookup:u("type_lookup"),rollup:u("type_rollup"),image:u("type_image"),audio:u("type_audio"),video:u("type_video")});function Yv({col:e,schema:t,onUpdateSchema:n,onRenameColumn:o,onChangeType:r,manager:a,dbFile:i}){let l=Vt(),[s,d]=(0,ye.useState)(!1),[p,g]=(0,ye.useState)(!1),[m,c]=(0,ye.useState)(e.name),[v,h]=(0,ye.useState)(!1),[b,f]=(0,ye.useState)(e.formula??""),[_,y]=(0,ye.useState)(null),[k,F]=(0,ye.useState)(null),T=(0,ye.useRef)(null),V=(0,ye.useRef)(null),j=(0,ye.useRef)(null),re=(0,ye.useRef)(null),ne=(0,ye.useRef)(null),[de,ve]=(0,ye.useState)(!1),[Ce,Oe]=(0,ye.useState)(null),[q,W]=(0,ye.useState)(e.refDatabasePath??""),[O,Q]=(0,ye.useState)(e.refColumnId??""),[ce,Ne]=(0,ye.useState)(e.refMatchColumnId??""),[Be,$e]=(0,ye.useState)(!!e.pairedColumnId),[nt,et]=(0,ye.useState)(!!e.isHierarchical),[fe,Me]=(0,ye.useState)([]),[Ae,He]=(0,ye.useState)([]),ze=(0,ye.useRef)(null),xe=(0,ye.useRef)(null),[rt,K]=(0,ye.useState)(!1),[D,ie]=(0,ye.useState)(null),[me,se]=(0,ye.useState)(e.rollupRelationColumnId??""),[Ve,ge]=(0,ye.useState)(e.rollupTargetColumnId??""),[Re,yt]=(0,ye.useState)(e.rollupFunction??"count"),[Tt,Pt]=(0,ye.useState)([]),P=(0,ye.useRef)(null),ke=(0,ye.useRef)(null),[A,ee]=(0,ye.useState)(!1),[Le,Te]=(0,ye.useState)(null),[vt,dn]=(0,ye.useState)(e.numberFormat?.decimals??2),[pt,pn]=(0,ye.useState)(e.numberFormat?.thousandsSeparator??!1),[en,tn]=(0,ye.useState)(e.numberFormat?.prefix??""),[x,N]=(0,ye.useState)(e.numberFormat?.suffix??""),X=(0,ye.useRef)(null),ue=(0,ye.useRef)(null),[oe,te]=(0,ye.useState)(!1),[S,Z]=(0,ye.useState)(null),[be,we]=(0,ye.useState)(e.imageSourceFolder??""),De=(0,ye.useRef)(null),Ye=(0,ye.useRef)(null),[We,H]=(0,ye.useState)(!1),[je,Pe]=(0,ye.useState)(null),[mt,lt]=(0,ye.useState)(e.audioSourceFolder??""),bt=(0,ye.useRef)(null),$t=(0,ye.useRef)(null),[Bt,Dt]=(0,ye.useState)(!1),[ln,qn]=(0,ye.useState)(null),[Ni,xa]=(0,ye.useState)(e.videoSourceFolder??""),xi=(0,ye.useRef)(null),tr=(0,ye.useRef)(null);(0,ye.useEffect)(()=>{if(!s)return;let R=Ee=>{let Se=Ee.target,ft=T.current?.contains(Se),wt=ne.current?.contains(Se)||ze.current?.contains(Se)||P.current?.contains(Se)||X.current?.contains(Se)||De.current?.contains(Se)||bt.current?.contains(Se)||xi.current?.contains(Se);!ft&&!wt&&(d(!1),h(!1),ve(!1),ee(!1))};return activeDocument.addEventListener("mousedown",R),()=>activeDocument.removeEventListener("mousedown",R)},[s]),(0,ye.useEffect)(()=>{p||c(e.name)},[e.name,p]),(0,ye.useEffect)(()=>{v||f(e.formula??"")},[e.formula,v]),(0,ye.useEffect)(()=>{if(!p)return;let R=V.current;R&&(R.focus(),R.select())},[p]),(0,ye.useEffect)(()=>{if(v){if(T.current){let R=T.current.getBoundingClientRect(),Ee=320,Se=420,ft=R.left,wt=R.bottom+4;ft+Ee>window.innerWidth&&(ft=window.innerWidth-Ee-8),wt+Se>window.innerHeight&&(wt=R.top-Se-4),F({x:ft,y:wt})}window.setTimeout(()=>j.current?.focus(),50)}},[v]),(0,ye.useEffect)(()=>{if(!v)return;let R=Se=>{re.current&&F({x:Se.clientX-re.current.x,y:Se.clientY-re.current.y})},Ee=()=>{re.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[v]),(0,ye.useEffect)(()=>{y(Bh(b))},[b]),(0,ye.useEffect)(()=>{if(!de)return;let R=a.getAllDatabases().map(Ee=>({path:Ee.path,name:Ee.parent?.name||u("picker_root")}));if(Me(R),T.current){let Ee=T.current.getBoundingClientRect(),Se=320,ft=380,wt=Ee.left,ir=Ee.bottom+4;wt+Se>window.innerWidth&&(wt=window.innerWidth-Se-8),ir+ft>window.innerHeight&&(ir=Ee.top-ft-4),Oe({x:wt,y:ir})}},[de,a,i]),(0,ye.useEffect)(()=>{if(!q){He([]);return}let R=l.vault.getFileByPath(q);if(!R){He([]);return}He(a.readConfig(R).schema)},[q,l,a]),(0,ye.useEffect)(()=>{de||(W(e.refDatabasePath??""),Q(e.refColumnId??""),Ne(e.refMatchColumnId??""))},[e.refDatabasePath,e.refColumnId,e.refMatchColumnId,de]),(0,ye.useEffect)(()=>{if(!de)return;let R=Se=>{xe.current&&Oe({x:Se.clientX-xe.current.x,y:Se.clientY-xe.current.y})},Ee=()=>{xe.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[de]),(0,ye.useEffect)(()=>{if(!rt||!me){Pt([]);return}let R=t.find(ft=>ft.id===me);if(!R?.refDatabasePath){Pt([]);return}let Ee=l.vault.getFileByPath(R.refDatabasePath);if(!Ee){Pt([]);return}let Se=a.readConfig(Ee);Pt(Se.schema)},[rt,me,t,l,a]),(0,ye.useEffect)(()=>{rt||(se(e.rollupRelationColumnId??""),ge(e.rollupTargetColumnId??""),yt(e.rollupFunction??"count"))},[e.rollupRelationColumnId,e.rollupTargetColumnId,e.rollupFunction,rt]),(0,ye.useEffect)(()=>{if(!rt)return;if(T.current){let Se=T.current.getBoundingClientRect(),ft=Se.left,wt=Se.bottom+4;ft+340>window.innerWidth&&(ft=window.innerWidth-348),wt+300>window.innerHeight&&(wt=Se.top-304),ie({x:ft,y:wt})}let R=Se=>{ke.current&&ie({x:Se.clientX-ke.current.x,y:Se.clientY-ke.current.y})},Ee=()=>{ke.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[rt]),(0,ye.useEffect)(()=>{if(A&&T.current){let R=T.current.getBoundingClientRect(),Ee=300,Se=300,ft=R.left,wt=R.bottom+4;ft+Ee>window.innerWidth&&(ft=window.innerWidth-Ee-8),wt+Se>window.innerHeight&&(wt=R.top-Se-4),Te({x:ft,y:wt})}},[A]),(0,ye.useEffect)(()=>{A||(dn(e.numberFormat?.decimals??2),pn(e.numberFormat?.thousandsSeparator??!1),tn(e.numberFormat?.prefix??""),N(e.numberFormat?.suffix??""))},[e.numberFormat,A]),(0,ye.useEffect)(()=>{oe||we(e.imageSourceFolder??"")},[e.imageSourceFolder,oe]),(0,ye.useEffect)(()=>{if(oe&&T.current){let R=T.current.getBoundingClientRect(),Ee=280,Se=160,ft=R.left,wt=R.bottom+4;ft+Ee>window.innerWidth&&(ft=window.innerWidth-Ee-8),wt+Se>window.innerHeight&&(wt=R.top-Se-4),Z({x:ft,y:wt})}},[oe]),(0,ye.useEffect)(()=>{if(!oe)return;let R=Se=>{Ye.current&&Z({x:Se.clientX-Ye.current.x,y:Se.clientY-Ye.current.y})},Ee=()=>{Ye.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[oe]),(0,ye.useEffect)(()=>{We||lt(e.audioSourceFolder??"")},[e.audioSourceFolder,We]),(0,ye.useEffect)(()=>{if(We&&T.current){let R=T.current.getBoundingClientRect(),Ee=280,Se=160,ft=R.left,wt=R.bottom+4;ft+Ee>window.innerWidth&&(ft=window.innerWidth-Ee-8),wt+Se>window.innerHeight&&(wt=R.top-Se-4),Pe({x:ft,y:wt})}},[We]),(0,ye.useEffect)(()=>{if(!We)return;let R=Se=>{$t.current&&Pe({x:Se.clientX-$t.current.x,y:Se.clientY-$t.current.y})},Ee=()=>{$t.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[We]),(0,ye.useEffect)(()=>{Bt||xa(e.videoSourceFolder??"")},[e.videoSourceFolder,Bt]),(0,ye.useEffect)(()=>{if(Bt&&T.current){let R=T.current.getBoundingClientRect(),Ee=280,Se=160,ft=R.left,wt=R.bottom+4;ft+Ee>window.innerWidth&&(ft=window.innerWidth-Ee-8),wt+Se>window.innerHeight&&(wt=R.top-Se-4),qn({x:ft,y:wt})}},[Bt]),(0,ye.useEffect)(()=>{if(!Bt)return;let R=Se=>{tr.current&&qn({x:Se.clientX-tr.current.x,y:Se.clientY-tr.current.y})},Ee=()=>{tr.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[Bt]),(0,ye.useEffect)(()=>{if(!A)return;let R=Se=>{ue.current&&Te({x:Se.clientX-ue.current.x,y:Se.clientY-ue.current.y})},Ee=()=>{ue.current=null};return activeDocument.addEventListener("mousemove",R),activeDocument.addEventListener("mouseup",Ee),()=>{activeDocument.removeEventListener("mousemove",R),activeDocument.removeEventListener("mouseup",Ee)}},[A]);let vo=async()=>{await Kn({imageSourceFolder:be.trim()||void 0}),te(!1),d(!1)},Pn=()=>{te(!1),d(!1)},nr=R=>{S&&(Ye.current={x:R.clientX-S.x,y:R.clientY-S.y},R.preventDefault())},Ra=async()=>{await Kn({audioSourceFolder:mt.trim()||void 0}),H(!1),d(!1)},or=()=>{H(!1),d(!1)},jl=R=>{je&&($t.current={x:R.clientX-je.x,y:R.clientY-je.y},R.preventDefault())},Ea=async()=>{await Kn({videoSourceFolder:Ni.trim()||void 0}),Dt(!1),d(!1)},Ri=()=>{Dt(!1),d(!1)},Hl=R=>{ln&&(tr.current={x:R.clientX-ln.x,y:R.clientY-ln.y},R.preventDefault())},Kn=async R=>{let Ee=t.map(Se=>Se.id===e.id?{...Se,...R}:Se);await n(Ee)},Ul=async()=>{let R=m.trim();R&&R!==e.name&&await o(e.id,R),g(!1),d(!1)},pc=async()=>{await Kn({visible:!1}),d(!1)},jt=async()=>{let R=t.filter(Ee=>Ee.id!==e.id);await n(R),d(!1)},mc=async R=>{await r(R)&&(await Kn({type:R}),R==="formula"?h(!0):R==="lookup"||R==="relation"?ve(!0):R==="rollup"?K(!0):R==="image"?te(!0):d(!1))},Wl=async()=>{_||(await Kn({formula:b.trim()||void 0}),h(!1),d(!1))},Ei=()=>{h(!1),d(!1)},fc=R=>{k&&(re.current={x:R.clientX-k.x,y:R.clientY-k.y},R.preventDefault())},gc=async()=>{let R=e.pairedColumnId;if(e.type==="relation"&&Be&&q&&!e.pairedColumnId){let Ee=l.vault.getFileByPath(q);if(Ee){let Se=a.readConfig(Ee),ft=`rel_${e.id}_${Date.now()}`,wt=i?.parent?.name||l.vault.getName(),ir={id:ft,name:wt,type:"relation",visible:!0,refDatabasePath:i?.path.replace(/\/[^/]+$/,"/_database.md")??"",refColumnId:"_title",pairedColumnId:e.id};Se.schema.push(ir),await a.writeConfig(Ee,Se),R=ft}}else if(e.type==="relation"&&!Be&&e.pairedColumnId){let Ee=l.vault.getFileByPath(q||e.refDatabasePath||"");if(Ee){let Se=a.readConfig(Ee);Se.schema=Se.schema.filter(ft=>ft.id!==e.pairedColumnId),await a.writeConfig(Ee,Se)}R=void 0}await Kn({refDatabasePath:q,refColumnId:e.type==="relation"?"_title":O,...e.type==="lookup"?{refMatchColumnId:ce}:{},...e.type==="relation"?{pairedColumnId:R,isHierarchical:nt||void 0}:{}}),ve(!1),d(!1)},Gl=()=>{ve(!1),d(!1)},ql=R=>{Ce&&(xe.current={x:R.clientX-Ce.x,y:R.clientY-Ce.y},R.preventDefault())},_c=async()=>{await Kn({rollupRelationColumnId:me,rollupTargetColumnId:Ve,rollupFunction:Re}),K(!1),d(!1)},rr=R=>{D&&(ke.current={x:R.clientX-D.x,y:R.clientY-D.y},R.preventDefault())},Kl=[{value:"count",label:u("rollup_fn_count")},{value:"sum",label:u("rollup_fn_sum")},{value:"avg",label:u("rollup_fn_avg")},{value:"min",label:u("rollup_fn_min")},{value:"max",label:u("rollup_fn_max")},{value:"count_values",label:u("rollup_fn_count_values")},{value:"list",label:u("rollup_fn_list")}],Di=t.filter(R=>R.type==="relation"),Yl=async()=>{let R={decimals:vt,thousandsSeparator:pt,...en.trim()?{prefix:en.trim()}:{},...x.trim()?{suffix:x.trim()}:{}};await Kn({numberFormat:R}),ee(!1),d(!1)},Fi=()=>{ee(!1),d(!1)},Xl=async()=>{await Kn({numberFormat:void 0}),ee(!1),d(!1)},Ur=R=>{Le&&(ue.current={x:R.clientX-Le.x,y:R.clientY-Le.y},R.preventDefault())},[ar,hc]=(0,ye.useState)(!1),Wr=t.filter(R=>R.id!==e.id&&R.type!=="formula"),Mi=[{group:u("formula_group_logic"),items:[{fn:"IF(cond, a, b)",desc:u("formula_desc_if")},{fn:"IFS(c1, v1, c2, v2\u2026)",desc:u("formula_desc_ifs")},{fn:"AND(a, b, \u2026)",desc:u("formula_desc_and")},{fn:"OR(a, b, \u2026)",desc:u("formula_desc_or")},{fn:"NOT(a)",desc:u("formula_desc_not")}]},{group:u("formula_group_comparators"),items:[{fn:"= <> != > < >= <=",desc:u("formula_desc_comparators")}]},{group:u("formula_group_aggregators"),items:[{fn:"SUM(col)",desc:u("formula_desc_sum")},{fn:"AVG(col)",desc:u("formula_desc_avg")},{fn:"COUNT(col)",desc:u("formula_desc_count")},{fn:"MIN(col)",desc:u("formula_desc_min")},{fn:"MAX(col)",desc:u("formula_desc_max")}]},{group:u("formula_group_text"),items:[{fn:"CONCAT(a, b, \u2026)",desc:u("formula_desc_concat")},{fn:"LEN(text)",desc:u("formula_desc_len")},{fn:"UPPER / LOWER(text)",desc:u("formula_desc_upper_lower")},{fn:"TRIM(text)",desc:u("formula_desc_trim")},{fn:"LEFT(text, n)",desc:u("formula_desc_left")},{fn:"RIGHT(text, n)",desc:u("formula_desc_right")},{fn:"MID(text, start, n)",desc:u("formula_desc_mid")},{fn:"SUBSTITUTE(t, from, to)",desc:u("formula_desc_substitute")}]},{group:u("formula_group_math"),items:[{fn:"ROUND(n, d)",desc:u("formula_desc_round")},{fn:"FLOOR / CEIL(n)",desc:u("formula_desc_floor_ceil")},{fn:"ABS(n)",desc:u("formula_desc_abs")},{fn:"MOD(n, d)",desc:u("formula_desc_mod")},{fn:"POWER(b, e)",desc:u("formula_desc_power")},{fn:"SQRT(n)",desc:u("formula_desc_sqrt")}]},{group:u("formula_group_utils"),items:[{fn:"ISNULL(v)",desc:u("formula_desc_isnull")},{fn:"COALESCE(a, b, \u2026)",desc:u("formula_desc_coalesce")},{fn:"TEXT(v)",desc:u("formula_desc_text")},{fn:"VALUE(v)",desc:u("formula_desc_value")}]}],vc=(()=>{let R=1234.5678,Ee={minimumFractionDigits:vt,maximumFractionDigits:vt,useGrouping:pt},Se=new Intl.NumberFormat("pt-BR",Ee).format(R);return en.trim()&&(Se=`${en.trim()} ${Se}`),x.trim()&&(Se=`${Se} ${x.trim()}`),Se})(),bc=v&&k?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:ne,className:"nb-formula-floating-panel",style:{top:k.y,left:k.x},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:fc,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u0192"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("formula_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:Ei,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",children:[(0,E.jsx)("textarea",{ref:j,className:`nb-formula-textarea${_?" nb-formula-textarea--error":b.trim()?" nb-formula-textarea--ok":""}`,value:b,onChange:R=>f(R.target.value),placeholder:u("formula_placeholder"),rows:3,spellCheck:!1,onKeyDown:R=>{R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&(R.preventDefault(),Wl()),R.key==="Escape"&&Ei()}}),_&&(0,E.jsxs)("div",{className:"nb-formula-feedback nb-formula-feedback--error",children:[(0,E.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,E.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,E.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,E.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),_]}),!_&&b.trim()&&(0,E.jsxs)("div",{className:"nb-formula-feedback nb-formula-feedback--ok",children:[(0,E.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,E.jsx)("polyline",{points:"20 6 9 17 4 12"})}),u("formula_valid")]}),Wr.length>0&&(0,E.jsxs)("div",{className:"nb-formula-cols-hint",children:[(0,E.jsx)("span",{className:"nb-formula-cols-label",children:u("formula_available_cols")}),(0,E.jsx)("div",{className:"nb-formula-cols-list",children:Wr.map(R=>(0,E.jsx)("code",{className:"nb-formula-col-chip",title:`ID: ${R.id}`,onClick:()=>{let Ee=/\s/.test(R.name)?`[${R.name}]`:R.name;f(Se=>Se+Ee),j.current?.focus()},children:R.name},R.id))})]}),(0,E.jsxs)("div",{className:"nb-formula-ref",children:[(0,E.jsxs)("button",{className:"nb-formula-ref-toggle",onClick:()=>hc(R=>!R),children:[(0,E.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:ar?"rotate(90deg)":"none",transition:"transform 150ms"},children:(0,E.jsx)("polyline",{points:"9 18 15 12 9 6"})}),u("formula_ref_toggle")]}),ar&&(0,E.jsx)("div",{className:"nb-formula-ref-body",children:Mi.map(R=>(0,E.jsxs)("div",{className:"nb-formula-ref-group",children:[(0,E.jsx)("div",{className:"nb-formula-ref-group-title",children:R.group}),(0,E.jsx)("table",{className:"nb-formula-ref-table",children:(0,E.jsx)("tbody",{children:R.items.map(Ee=>(0,E.jsxs)("tr",{children:[(0,E.jsx)("td",{className:"nb-formula-ref-fn",children:(0,E.jsx)("code",{children:Ee.fn})}),(0,E.jsx)("td",{className:"nb-formula-ref-desc",children:Ee.desc})]},Ee.fn))})})]},R.group))})]}),(0,E.jsxs)("div",{className:"nb-formula-actions",children:[(0,E.jsx)("button",{className:"nb-formula-save",disabled:!!_,onClick:()=>{Wl()},title:u("formula_save_hint"),children:u("formula_save")}),(0,E.jsx)("button",{className:"nb-formula-cancel",onClick:Ei,children:u("formula_cancel")})]})]})]}),activeDocument.body):null,Ql=A&&Le?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:X,className:"nb-formula-floating-panel",style:{top:Le.y,left:Le.x},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:Ur,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"#"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("number_format_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:Fi,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",children:[(0,E.jsx)("div",{className:"nb-numfmt-preview",children:vc}),(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("number_decimals_label")}),(0,E.jsx)("select",{className:"nb-lookup-select",value:vt,onChange:R=>dn(Number(R.target.value)),children:[0,1,2,3,4,5,6].map(R=>(0,E.jsx)("option",{value:R,children:R},R))})]}),(0,E.jsxs)("div",{className:"nb-numfmt-checkbox-row",children:[(0,E.jsx)("input",{type:"checkbox",id:"nb-fmt-thousands",checked:pt,onChange:R=>pn(R.target.checked),className:"nb-cell-checkbox"}),(0,E.jsx)("label",{htmlFor:"nb-fmt-thousands",className:"nb-lookup-label",style:{cursor:"pointer"},children:u("number_thousands_label")})]}),(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("number_prefix_label")}),(0,E.jsx)("input",{type:"text",className:"nb-numfmt-text-input",value:en,onChange:R=>tn(R.target.value),placeholder:u("number_prefix_placeholder")})]}),(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("number_suffix_label")}),(0,E.jsx)("input",{type:"text",className:"nb-numfmt-text-input",value:x,onChange:R=>N(R.target.value),placeholder:u("number_suffix_placeholder")})]}),(0,E.jsxs)("div",{className:"nb-formula-actions",children:[(0,E.jsx)("button",{className:"nb-formula-save",onClick:()=>{Yl()},children:u("formula_save")}),(0,E.jsx)("button",{className:"nb-formula-cancel",onClick:Fi,children:u("formula_cancel")})]}),e.numberFormat&&(0,E.jsx)("div",{style:{marginTop:"8px",textAlign:"center"},children:(0,E.jsx)("button",{className:"nb-formula-cancel",onClick:()=>{Xl()},style:{color:"var(--text-error)",width:"100%"},children:u("number_remove_format")})})]})]}),activeDocument.body):null,yc=rt&&D?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:P,className:"nb-formula-floating-panel",style:{top:D.y,left:D.x},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:rr,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u03A3"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("rollup_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:()=>{K(!1),d(!1)},title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsx)("div",{className:"nb-formula-body",style:{padding:"12px"},children:Di.length===0?(0,E.jsx)("div",{style:{color:"var(--text-muted)",fontSize:"0.85rem"},children:u("rollup_no_relations")}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_relation")}),(0,E.jsxs)("select",{className:"nb-lookup-select",value:me,onChange:R=>{se(R.target.value),ge("")},children:[(0,E.jsx)("option",{value:"",children:u("rollup_select_relation_placeholder")}),Di.map(R=>(0,E.jsx)("option",{value:R.id,children:R.name},R.id))]})]}),me&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_target")}),(0,E.jsxs)("select",{className:"nb-lookup-select",value:Ve,onChange:R=>ge(R.target.value),children:[(0,E.jsx)("option",{value:"",children:u("rollup_select_target_placeholder")}),(0,E.jsx)("option",{value:"_title",children:u("lookup_file_name")}),Tt.map(R=>(0,E.jsx)("option",{value:R.id,children:R.name},R.id))]})]}),Ve&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_function")}),(0,E.jsx)("select",{className:"nb-lookup-select",value:Re,onChange:R=>yt(R.target.value),children:Kl.map(R=>(0,E.jsx)("option",{value:R.value,children:R.label},R.value))})]}),(0,E.jsx)("button",{className:"nb-formula-save",disabled:!me||!Ve,onClick:()=>{_c()},children:u("formula_save")})]})})]}),activeDocument.body):null,wc=de&&Ce?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:ze,className:"nb-formula-floating-panel",style:{top:Ce.y,left:Ce.x},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:ql,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:e.type==="relation"?"\u{1F517}":"\u2197"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[e.type==="relation"?u("relation_panel_title"):u("lookup_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:Gl,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",children:[(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("lookup_ref_table")}),(0,E.jsxs)("select",{className:"nb-lookup-select",value:q,onChange:R=>{W(R.target.value),Q("")},children:[(0,E.jsx)("option",{value:"",children:u("lookup_select_table")}),fe.map(R=>(0,E.jsx)("option",{value:R.path,children:R.name},R.path))]})]}),e.type!=="relation"&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("lookup_col_to_display")}),(0,E.jsxs)("select",{className:"nb-lookup-select",value:O,onChange:R=>Q(R.target.value),disabled:!q,children:[(0,E.jsx)("option",{value:"",children:u("lookup_select_col")}),(0,E.jsx)("option",{value:"_title",children:"\u{1F4C4} "+u("lookup_file_name")}),Ae.map(R=>(0,E.jsx)("option",{value:R.id,children:R.name},R.id))]})]}),e.type==="lookup"&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsx)("label",{className:"nb-lookup-label",children:u("lookup_join_col")}),(0,E.jsxs)("select",{className:"nb-lookup-select",value:ce,onChange:R=>Ne(R.target.value),children:[(0,E.jsx)("option",{value:"",children:u("lookup_select_col")}),(0,E.jsx)("option",{value:"_title",children:"\u{1F4C4} "+u("lookup_join_col_title")}),t.filter(R=>R.id!==e.id&&R.type!=="formula"&&R.type!=="lookup").map(R=>(0,E.jsx)("option",{value:R.id,children:R.name},R.id))]}),(0,E.jsx)("p",{className:"nb-lookup-hint",children:u("lookup_hint")})]}),e.type==="relation"&&q&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsxs)("label",{className:"nb-lookup-checkbox",children:[(0,E.jsx)("input",{type:"checkbox",checked:Be,onChange:R=>$e(R.target.checked)}),u("relation_two_way")]}),(0,E.jsx)("p",{className:"nb-lookup-hint",children:u("relation_two_way_hint")})]}),e.type==="relation"&&q&&q===i?.path&&(0,E.jsxs)("div",{className:"nb-lookup-section",children:[(0,E.jsxs)("label",{className:"nb-lookup-checkbox",children:[(0,E.jsx)("input",{type:"checkbox",checked:nt,onChange:R=>{R.target.checked&&t.some(Ee=>Ee.id!==e.id&&Ee.isHierarchical)||et(R.target.checked)}}),u("hierarchy_toggle")]}),(0,E.jsx)("p",{className:"nb-lookup-hint",children:u("hierarchy_toggle_hint")})]}),(0,E.jsxs)("div",{className:"nb-formula-actions",children:[(0,E.jsx)("button",{className:"nb-formula-save",disabled:!q||e.type==="lookup"&&(!O||!ce),onClick:()=>{gc()},children:u("formula_save")}),(0,E.jsx)("button",{className:"nb-formula-cancel",onClick:Gl,children:u("formula_cancel")})]})]})]}),activeDocument.body):null,Cc=oe&&S?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:De,className:"nb-formula-floating-panel",style:{top:S.y,left:S.x,minWidth:280},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:nr,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F5BC}"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("image_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:Pn,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,E.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("image_folder_label")}),(0,E.jsx)("input",{type:"text",className:"nb-header-rename-input",value:be,onChange:R=>we(R.target.value),placeholder:u("image_folder_placeholder")}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,E.jsx)("button",{className:"nb-menu-item",onClick:Pn,style:{flex:1},children:u("formula_cancel")}),(0,E.jsx)("button",{className:"nb-menu-item",onClick:()=>{vo()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null,Gr=We&&je?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:bt,className:"nb-formula-floating-panel",style:{top:je.y,left:je.x,minWidth:280},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:jl,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F3B5}"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("audio_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:or,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,E.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("audio_folder_label")}),(0,E.jsx)("input",{type:"text",className:"nb-header-rename-input",value:mt,onChange:R=>lt(R.target.value),placeholder:u("audio_folder_placeholder")}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,E.jsx)("button",{className:"nb-menu-item",onClick:or,style:{flex:1},children:u("formula_cancel")}),(0,E.jsx)("button",{className:"nb-menu-item",onClick:()=>{Ra()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null,Zl=Bt&&ln?(0,Lr.createPortal)((0,E.jsxs)("div",{ref:xi,className:"nb-formula-floating-panel",style:{top:ln.y,left:ln.x,minWidth:280},children:[(0,E.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:Hl,children:[(0,E.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F3AC}"}),(0,E.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("video_panel_title"),": ",e.name]}),(0,E.jsx)("button",{className:"nb-formula-close",onClick:Ri,title:u("tooltip_close"),children:"\xD7"})]}),(0,E.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,E.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("video_folder_label")}),(0,E.jsx)("input",{type:"text",className:"nb-header-rename-input",value:Ni,onChange:R=>xa(R.target.value),placeholder:u("video_folder_placeholder")}),(0,E.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,E.jsx)("button",{className:"nb-menu-item",onClick:Ri,style:{flex:1},children:u("formula_cancel")}),(0,E.jsx)("button",{className:"nb-menu-item",onClick:()=>{Ea()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null;return(0,E.jsxs)("div",{className:"nb-column-header",ref:T,children:[p?(0,E.jsx)("input",{ref:V,className:"nb-header-rename-input",value:m,onChange:R=>c(R.target.value),onBlur:()=>{Ul()},onKeyDown:R=>{R.key==="Enter"&&Ul(),R.key==="Escape"&&(g(!1),d(!1))},onClick:R=>R.stopPropagation()}):(0,E.jsxs)("button",{className:"nb-header-label",onClick:()=>{d(R=>!R),h(!1),ve(!1),ee(!1),te(!1)},title:e.name,children:[(0,E.jsx)("span",{className:"nb-header-icon",children:Kv[e.type]}),(0,E.jsx)("span",{className:"nb-header-name",children:e.name})]}),s&&!v&&!de&&!rt&&!A&&!oe&&(0,E.jsxs)("div",{className:"nb-column-menu",children:[(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>{d(!1),g(!0)},children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u270F\uFE0F"}),(0,E.jsx)("span",{children:u("rename_column")})]}),e.type==="formula"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>h(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u0192"}),(0,E.jsx)("span",{children:u("edit_formula")})]}),e.type==="lookup"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>ve(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u2197"}),(0,E.jsx)("span",{children:u("configure_lookup")})]}),e.type==="relation"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>ve(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F517}"}),(0,E.jsx)("span",{children:u("configure_relation")})]}),e.type==="rollup"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>K(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u03A3"}),(0,E.jsx)("span",{children:u("configure_rollup")})]}),e.type==="number"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>ee(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"#"}),(0,E.jsx)("span",{children:u("format_number")})]}),e.type==="image"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>te(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5BC}"}),(0,E.jsx)("span",{children:u("configure_image_folder")})]}),e.type==="audio"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>H(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F3B5}"}),(0,E.jsx)("span",{children:u("configure_audio_folder")})]}),e.type==="video"&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>Dt(!0),children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F3AC}"}),(0,E.jsx)("span",{children:u("configure_video_folder")})]}),(0,E.jsx)("div",{className:"nb-menu-separator"}),(0,E.jsx)("div",{className:"nb-menu-label",children:u("field_type_label")}),["text","number","select","multiselect","date","checkbox","url","email","phone","status","formula","relation","lookup","rollup","image","audio","video"].map(R=>(0,E.jsxs)("button",{className:`nb-menu-item nb-menu-type-item ${e.type===R?"nb-menu-item--active":""}`,onClick:()=>{mc(R)},children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:Kv[R]}),(0,E.jsx)("span",{children:iS()[R]})]},R)),(e.type==="text"||e.type==="title"||e.type==="url"||e.type==="email"||e.type==="phone")&&(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Kn({wrap:!e.wrap}),d(!1)},children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u21B5"}),(0,E.jsx)("span",{children:e.wrap?u("disable_wrap_text"):u("enable_wrap_text")})]}),(0,E.jsx)("div",{className:"nb-menu-separator"}),(0,E.jsxs)("button",{className:"nb-menu-item",onClick:()=>{pc()},children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F441}"}),(0,E.jsx)("span",{children:u("hide_field")})]}),(0,E.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{jt()},children:[(0,E.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,E.jsx)("span",{children:u("delete_field")})]})]}),bc,wc,yc,Ql,Cc,Gr,Zl]})}var _e=Fe(xt(),1),go=Fe(po(),1);var Xu=Fe(xt(),1);var I=Fe(St(),1),Fm=(0,Xu.createContext)(null);function Qu(){let e=(0,Xu.useContext)(Fm);if(!e)throw new Error("CellContext n\xE3o encontrado");return e}function lS(e,t){if(!t)return String(e);let n={minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals,useGrouping:t.thousandsSeparator},o=new Intl.NumberFormat("pt-BR",n).format(e);return t.prefix&&(o=`${t.prefix} ${o}`),t.suffix&&(o=`${o} ${t.suffix}`),o}var sS=[{value:u("status_not_started"),color:"#9E9E9E"},{value:u("status_in_progress"),color:"#2196F3"},{value:u("status_done"),color:"#4CAF50"},{value:u("status_cancelled"),color:"#F44336"}];function Dm(e){let t=e.replace(/\D/g,"").slice(0,11);return t.length<=2?`(${t}`:t.length<=6?`(${t.slice(0,2)}) ${t.slice(2)}`:t.length<=10?`(${t.slice(0,2)}) ${t.slice(2,6)}-${t.slice(6)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`}function Xv({value:e,href:t,isEditing:n,inputType:o,onStartEdit:r,onCommit:a,onCancel:i,validate:l}){let[s,d]=(0,_e.useState)(null),p=m=>{m.stopPropagation(),t&&window.open(t,"_blank")},g=m=>{if(m&&l){let c=l(m);if(c){d(c);return}}d(null),a(m)};return n?(0,I.jsxs)("div",{className:"nb-link-edit-wrapper",children:[(0,I.jsx)("input",{className:`nb-cell-input${s?" nb-cell-input--error":""}`,autoFocus:!0,type:o,defaultValue:e??"",onBlur:m=>g(m.target.value||null),onKeyDown:m=>{m.key==="Enter"&&g(m.target.value||null),m.key==="Escape"&&(d(null),i())}}),s&&(0,I.jsx)("span",{className:"nb-cell-error-msg",children:s})]}):(0,I.jsx)("div",{className:"nb-cell-clickable",onClick:r,children:e?(0,I.jsxs)("span",{className:"nb-cell-link-wrapper",children:[(0,I.jsx)("span",{className:"nb-cell-link",onClick:p,children:e}),(0,I.jsx)("span",{className:"nb-cell-link-icon",onClick:p,children:"\u2197"})]}):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}var Mm=_e.default.memo(function({col:t,value:n,rowIndex:o,columnId:r,file:a}){let{editingCell:i,setEditingCell:l,updateCell:s,relationOptions:d}=Qu(),p=Vt(),g=i?.rowIndex===o&&i?.columnId===r,m=()=>{t.type==="formula"||t.type==="lookup"||t.type==="rollup"||t.type==="checkbox"||l({rowIndex:o,columnId:r})};switch(t.type){case"title":return(0,I.jsx)(Qv,{value:String(n??""),isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null),onOpen:a?()=>{p.workspace.getLeaf(!1).openFile(a)}:void 0});case"text":return(0,I.jsx)(Qv,{value:String(n??""),isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null)});case"number":return(0,I.jsx)(uS,{value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null),format:t.numberFormat});case"select":return(0,I.jsx)(dS,{value:n,col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"multiselect":return(0,I.jsx)(mS,{value:Array.isArray(n)?n:[],col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"date":return(0,I.jsx)(gS,{value:n,isEditing:g,onStartEdit:m,onSave:c=>{s(o,r,c)},onClose:()=>l(null)});case"checkbox":return(0,I.jsx)(_S,{value:!!n,onCommit:c=>{s(o,r,c)}});case"relation":{let c=n,v=Array.isArray(c)?c.filter(h=>typeof h=="string"):typeof c=="string"&&c?[c]:[];return(0,I.jsx)(yS,{value:v,options:d.get(r)??[],isEditing:g,onStartEdit:m,onCommit:h=>{s(o,r,h.length>0?h:null),l(null)},onCancel:()=>l(null)})}case"url":return(0,I.jsx)(Xv,{value:n,href:n?ht(n):null,inputType:"url",isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"email":return(0,I.jsx)(Xv,{value:n,href:n?`mailto:${n}`:null,inputType:"email",isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null),validate:c=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?null:u("email_invalid")});case"phone":return(0,I.jsx)(cS,{value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"status":return(0,I.jsx)(pS,{value:n,col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"formula":return(0,I.jsx)(hS,{value:n,col:t});case"lookup":return(0,I.jsx)(vS,{value:n,col:t});case"rollup":return(0,I.jsx)(bS,{value:n,col:t});case"image":return(0,I.jsx)(wS,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"audio":return(0,I.jsx)(CS,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"video":return(0,I.jsx)(kS,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});default:return(0,I.jsx)("span",{className:"nb-cell-text",children:String(n??"")})}});function Qv({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r,onOpen:a}){let i=(0,_e.useRef)(null),[l,s]=(0,_e.useState)(e),d=(0,_e.useRef)(null);(0,_e.useEffect)(()=>{t&&(s(e),window.requestAnimationFrame(()=>i.current?.select()))},[t,e]),(0,_e.useEffect)(()=>()=>{d.current&&window.clearTimeout(d.current)},[]);let p=()=>{if(a){if(d.current!==null){window.clearTimeout(d.current),d.current=null;return}d.current=window.setTimeout(()=>{d.current=null,a()},250)}},g=()=>{d.current&&(window.clearTimeout(d.current),d.current=null),n()};return t?(0,I.jsx)("input",{ref:i,className:"nb-cell-input",value:l,onChange:m=>s(m.target.value),onBlur:()=>{o(l),r()},onKeyDown:m=>{m.key==="Enter"&&(o(l),r()),m.key==="Escape"&&r()}}):(0,I.jsx)("div",{className:"nb-cell-text nb-cell-clickable nb-cell-editable",onDoubleClick:g,children:a?(0,I.jsx)("span",{className:"nb-cell-title-link",onClick:p,children:e||(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}):e||(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}function uS({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r,format:a}){let i=(0,_e.useRef)(null),[l,s]=(0,_e.useState)(e?.toString()??"");return(0,_e.useEffect)(()=>{t&&(s(e?.toString()??""),window.requestAnimationFrame(()=>i.current?.select()))},[t,e]),t?(0,I.jsx)("input",{ref:i,type:"number",className:"nb-cell-input nb-cell-input--number",value:l,onChange:d=>s(d.target.value),onBlur:()=>{let d=l===""?null:Number(l);o(isNaN(d)?null:d),r()},onKeyDown:d=>{if(d.key==="Enter"){let p=l===""?null:Number(l);o(isNaN(p)?null:p),r()}d.key==="Escape"&&r()}}):(0,I.jsx)("div",{className:"nb-cell-text nb-cell-clickable nb-cell-number",onDoubleClick:n,children:e!=null?lS(e,a):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}function cS({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r}){let[a,i]=(0,_e.useState)("");(0,_e.useEffect)(()=>{t&&i(Dm(e??""))},[t,e]);let l=s=>{s.stopPropagation(),e&&window.open(`tel:${e}`,"_blank")};return t?(0,I.jsx)("input",{className:"nb-cell-input",autoFocus:!0,type:"tel",value:a,onChange:s=>i(Dm(s.target.value)),onBlur:()=>o(a||null),onKeyDown:s=>{s.key==="Enter"&&o(a||null),s.key==="Escape"&&r()}}):(0,I.jsx)("div",{className:"nb-cell-clickable",onClick:n,children:e?(0,I.jsxs)("span",{className:"nb-cell-link-wrapper",children:[(0,I.jsx)("span",{className:"nb-cell-link",onClick:l,children:Dm(e)}),(0,I.jsx)("span",{className:"nb-cell-link-icon",onClick:l,children:"\u{1F4DE}"})]}):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}var Ar=["#e2d9f3","#d1e8ff","#d4f1c0","#fde8c8","#ffd6d6","#d6f0f0","#f0d6f0","#f0f0d6"];function Zt(e,t){let n=e.find(r=>r.value===t);if(n?.color)return n.color;let o=e.findIndex(r=>r.value===t);return Ar[o%Ar.length]??"#e8e8e8"}function Ir(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),o=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return(.299*n+.587*o+.114*r)/255>.5?"rgba(0,0,0,0.75)":"rgba(255,255,255,0.9)"}function dS({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=Qu(),s=(0,_e.useRef)(null),d=(0,_e.useRef)(null),p=(0,_e.useRef)(null),[g,m]=(0,_e.useState)(null),[c,v]=(0,_e.useState)(""),[h,b]=(0,_e.useState)(null),[f,_]=(0,_e.useState)(null),[y,k]=(0,_e.useState)({}),F=t.options??[],T=F.map(W=>y[W.value]?{...W,color:y[W.value]}:W),V=(0,_e.useRef)({}),j=176,re=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],ne=(W,O)=>{k(Q=>({...Q,[W]:O})),V.current[W]=O},de=(0,_e.useCallback)(()=>{let W=V.current;if(Object.keys(W).length===0)return;let O=F.map(ce=>W[ce.value]?{...ce,color:W[ce.value]}:ce),Q=l.map(ce=>ce.id===t.id?{...ce,options:O}:ce);V.current={},k({}),i(Q)},[F,l,t.id,i]);(0,_e.useEffect)(()=>{if(!n)return;let W=O=>{let Q=s.current?.contains(O.target),ce=d.current?.contains(O.target),Ne=p.current?.contains(O.target);!Q&&!ce&&!Ne&&(de(),a())};return activeDocument.addEventListener("mousedown",W),()=>activeDocument.removeEventListener("mousedown",W)},[n,a,de]),(0,_e.useEffect)(()=>{if(!n){b(null);return}if(v(""),k({}),V.current={},s.current){let W=s.current.getBoundingClientRect();m({top:W.bottom,left:W.left,width:W.width})}},[n]),(0,_e.useEffect)(()=>{if(!h)return;let W=O=>{p.current?.contains(O.target)||b(null)};return activeDocument.addEventListener("mousedown",W),()=>activeDocument.removeEventListener("mousedown",W)},[h]);let ve=async W=>{let O=W.trim();if(!O||T.some(Be=>Be.value===O))return;let Q=Ar[T.length%Ar.length],ce=[...T,{value:O,color:Q}],Ne=l.map(Be=>Be.id===t.id?{...Be,options:ce}:Be);await i(Ne),r(O),v("")},Ce=async(W,O)=>{O.stopPropagation();let Q=T.filter(Ne=>Ne.value!==W),ce=l.map(Ne=>Ne.id===t.id?{...Ne,options:Q}:Ne);await i(ce),e===W&&r(null)},Oe=n&&g?(0,go.createPortal)((0,I.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:g.top,left:g.left,minWidth:g.width,zIndex:9999},children:[(0,I.jsx)("input",{className:"nb-select-new-input",type:"text",placeholder:u("select_create_placeholder"),value:c,autoFocus:!0,onChange:W=>v(W.target.value),onKeyDown:W=>{W.key==="Enter"&&(W.preventDefault(),ve(c))}}),(0,I.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>r(null),children:u("select_clear")}),T.map(W=>(0,I.jsxs)("div",{className:`nb-select-option-row ${e===W.value?"nb-select-option-row--active":""}`,children:[(0,I.jsx)("button",{className:`nb-select-option ${e===W.value?"nb-select-option--active":""}`,onClick:()=>r(W.value),children:(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(T,W.value),color:Ir(Zt(T,W.value))},children:W.value})}),(0,I.jsx)("button",{className:`nb-status-color-swatch ${h===W.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Zt(T,W.value)},onClick:O=>{O.stopPropagation();let Q=O.currentTarget.getBoundingClientRect();_({top:Q.bottom+4,left:Math.min(Q.right-j,window.innerWidth-j-8)}),b(ce=>ce===W.value?null:W.value)}}),(0,I.jsx)("button",{className:"nb-select-option-delete",onClick:O=>{Ce(W.value,O)},title:u("select_clear"),children:"\xD7"})]},W.value))]}),activeDocument.body):null,q=h&&f?(0,go.createPortal)((0,I.jsxs)("div",{ref:p,className:"nb-status-color-picker",style:{position:"fixed",top:f.top,left:f.left,zIndex:1e4},children:[(0,I.jsx)("div",{className:"nb-status-color-grid",children:re.map(W=>(0,I.jsx)("button",{className:"nb-status-color-dot",style:{background:W},title:W,onClick:O=>{O.stopPropagation(),ne(h,W)}},W))}),(0,I.jsx)("div",{className:"nb-status-color-custom",children:(0,I.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,I.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Zt(T,h),onChange:W=>{ne(h,W.target.value)}})]})})]}),activeDocument.body):null;return(0,I.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,I.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e?(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(T,e),color:Ir(Zt(T,e))},children:e}):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),Oe,q]})}function pS({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=Qu(),s=(0,_e.useRef)(null),d=(0,_e.useRef)(null),[p,g]=(0,_e.useState)(null),[m,c]=(0,_e.useState)(""),[v,h]=(0,_e.useState)(null),[b,f]=(0,_e.useState)(null),_=(0,_e.useRef)(null),[y,k]=(0,_e.useState)({}),F=(0,_e.useRef)({}),T=176,V=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],j=t.options?.length?t.options:sS,re=j.map(q=>y[q.value]?{...q,color:y[q.value]}:q),ne=(q,W)=>{k(O=>({...O,[q]:W})),F.current[q]=W},de=(0,_e.useCallback)(()=>{let q=F.current;if(Object.keys(q).length===0)return;let W=j.map(Q=>q[Q.value]?{...Q,color:q[Q.value]}:Q),O=l.map(Q=>Q.id===t.id?{...Q,options:W}:Q);F.current={},k({}),i(O)},[j,l,t.id,i]);(0,_e.useEffect)(()=>{if(!n)return;let q=W=>{let O=s.current?.contains(W.target),Q=d.current?.contains(W.target),ce=_.current?.contains(W.target);!O&&!Q&&!ce&&(de(),a())};return activeDocument.addEventListener("mousedown",q),()=>activeDocument.removeEventListener("mousedown",q)},[n,a,de]),(0,_e.useEffect)(()=>{if(!n){h(null);return}if(c(""),k({}),F.current={},s.current){let q=s.current.getBoundingClientRect();g({top:q.bottom,left:q.left,width:q.width})}},[n]),(0,_e.useEffect)(()=>{if(!v)return;let q=W=>{_.current?.contains(W.target)||h(null)};return activeDocument.addEventListener("mousedown",q),()=>activeDocument.removeEventListener("mousedown",q)},[v]);let ve=async()=>{let q=m.trim();if(!q)return;let W=Ar[re.length%Ar.length],O={value:q,color:W},Q=[...re,O],ce=l.map(Ne=>Ne.id===t.id?{...Ne,options:Q}:Ne);await i(ce),c(""),r(q)},Ce=n&&p?(0,go.createPortal)((0,I.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:p.top,left:p.left,minWidth:p.width,zIndex:9999},children:[(0,I.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>r(null),children:u("select_clear")}),re.map(q=>(0,I.jsxs)("div",{className:`nb-status-option-row ${e===q.value?"nb-status-option-row--active":""}`,children:[(0,I.jsx)("button",{className:`nb-select-option nb-status-option-btn ${e===q.value?"nb-select-option--active":""}`,onClick:()=>r(q.value),children:(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(re,q.value),color:Ir(Zt(re,q.value))},children:q.value})}),(0,I.jsx)("button",{className:`nb-status-color-swatch ${v===q.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Zt(re,q.value),color:Ir(Zt(re,q.value))},onClick:W=>{W.stopPropagation();let O=W.currentTarget.getBoundingClientRect();f({top:O.bottom+4,left:Math.min(O.right-T,window.innerWidth-T-8)}),h(Q=>Q===q.value?null:q.value)}}),(0,I.jsx)("button",{className:"nb-status-delete-btn",title:u("tooltip_delete_status"),onClick:W=>{W.stopPropagation();let O=re.filter(ce=>ce.value!==q.value),Q=l.map(ce=>ce.id===t.id?{...ce,options:O}:ce);i(Q),e===q.value&&r(null)},children:"\xD7"})]},q.value)),(0,I.jsxs)("div",{className:"nb-status-new-row",children:[(0,I.jsx)("input",{className:"nb-status-new-input",placeholder:u("status_new_placeholder"),value:m,onChange:q=>c(q.target.value),onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),ve()),q.key==="Escape"&&a(),q.stopPropagation()}}),(0,I.jsx)("button",{className:"nb-status-new-btn",onClick:()=>{ve()},disabled:!m.trim(),children:"+"})]})]}),activeDocument.body):null,Oe=v&&b?(0,go.createPortal)((0,I.jsxs)("div",{ref:_,className:"nb-status-color-picker",style:{position:"fixed",top:b.top,left:b.left,zIndex:1e4},children:[(0,I.jsx)("div",{className:"nb-status-color-grid",children:V.map(q=>(0,I.jsx)("button",{className:"nb-status-color-dot",style:{background:q},title:q,onClick:W=>{W.stopPropagation(),ne(v,q)}},q))}),(0,I.jsx)("div",{className:"nb-status-color-custom",children:(0,I.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,I.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Zt(re,v),onChange:q=>{ne(v,q.target.value)}})]})})]}),activeDocument.body):null;return(0,I.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,I.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e?(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(re,e),color:Ir(Zt(re,e))},children:e}):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),Ce,Oe]})}function mS({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=Qu(),s=(0,_e.useRef)(null),d=(0,_e.useRef)(null),p=(0,_e.useRef)(null),[g,m]=(0,_e.useState)(null),[c,v]=(0,_e.useState)(""),[h,b]=(0,_e.useState)(null),[f,_]=(0,_e.useState)(null),[y,k]=(0,_e.useState)({}),F=(0,_e.useRef)({}),T=t.options??[],V=T.map(O=>y[O.value]?{...O,color:y[O.value]}:O),j=176,re=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],ne=(O,Q)=>{k(ce=>({...ce,[O]:Q})),F.current[O]=Q},de=(0,_e.useCallback)(()=>{let O=F.current;if(Object.keys(O).length===0)return;let Q=T.map(Ne=>O[Ne.value]?{...Ne,color:O[Ne.value]}:Ne),ce=l.map(Ne=>Ne.id===t.id?{...Ne,options:Q}:Ne);F.current={},k({}),i(ce)},[T,l,t.id,i]);(0,_e.useEffect)(()=>{if(!n)return;let O=Q=>{let ce=s.current?.contains(Q.target),Ne=d.current?.contains(Q.target),Be=p.current?.contains(Q.target);!ce&&!Ne&&!Be&&(de(),a())};return activeDocument.addEventListener("mousedown",O),()=>activeDocument.removeEventListener("mousedown",O)},[n,a,de]),(0,_e.useEffect)(()=>{if(!n){b(null);return}if(v(""),k({}),F.current={},s.current){let O=s.current.getBoundingClientRect();m({top:O.bottom,left:O.left,width:O.width})}},[n]),(0,_e.useEffect)(()=>{if(!h)return;let O=Q=>{p.current?.contains(Q.target)||b(null)};return activeDocument.addEventListener("mousedown",O),()=>activeDocument.removeEventListener("mousedown",O)},[h]);let ve=O=>{let Q=e.includes(O)?e.filter(ce=>ce!==O):[...e,O];r(Q)},Ce=async O=>{let Q=O.trim();if(!Q||V.some($e=>$e.value===Q))return;let ce=Ar[V.length%Ar.length],Ne=[...V,{value:Q,color:ce}],Be=l.map($e=>$e.id===t.id?{...$e,options:Ne}:$e);await i(Be),r([...e,Q]),v("")},Oe=async(O,Q)=>{Q.stopPropagation();let ce=V.filter(Be=>Be.value!==O),Ne=l.map(Be=>Be.id===t.id?{...Be,options:ce}:Be);await i(Ne),e.includes(O)&&r(e.filter(Be=>Be!==O))},q=n&&g?(0,go.createPortal)((0,I.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:g.top,left:g.left,minWidth:g.width,zIndex:9999},children:[(0,I.jsx)("input",{className:"nb-select-new-input",type:"text",placeholder:u("select_create_placeholder"),value:c,autoFocus:!0,onChange:O=>v(O.target.value),onKeyDown:O=>{O.key==="Enter"&&(O.preventDefault(),Ce(c))}}),V.map(O=>(0,I.jsxs)("div",{className:`nb-select-option-row ${e.includes(O.value)?"nb-select-option-row--active":""}`,children:[(0,I.jsxs)("button",{className:`nb-select-option ${e.includes(O.value)?"nb-select-option--active":""}`,onClick:()=>ve(O.value),children:[(0,I.jsx)("span",{className:`nb-checkbox-indicator ${e.includes(O.value)?"nb-checkbox-indicator--checked":""}`}),(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(V,O.value),color:Ir(Zt(V,O.value))},children:O.value})]}),(0,I.jsx)("button",{className:`nb-status-color-swatch ${h===O.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Zt(V,O.value),color:Ir(Zt(V,O.value))},onClick:Q=>{Q.stopPropagation();let ce=Q.currentTarget.getBoundingClientRect();_({top:ce.bottom+4,left:Math.min(ce.right-j,window.innerWidth-j-8)}),b(Ne=>Ne===O.value?null:O.value)}}),(0,I.jsx)("button",{className:"nb-select-option-delete",onClick:Q=>{Oe(O.value,Q)},title:u("select_clear"),children:"\xD7"})]},O.value))]}),activeDocument.body):null,W=h&&f?(0,go.createPortal)((0,I.jsxs)("div",{ref:p,className:"nb-status-color-picker",style:{position:"fixed",top:f.top,left:f.left,zIndex:1e4},children:[(0,I.jsx)("div",{className:"nb-status-color-grid",children:re.map(O=>(0,I.jsx)("button",{className:"nb-status-color-dot",style:{background:O},title:O,onClick:Q=>{Q.stopPropagation(),ne(h,O)}},O))}),(0,I.jsx)("div",{className:"nb-status-color-custom",children:(0,I.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,I.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Zt(V,h),onChange:O=>{ne(h,O.target.value)}})]})})]}),activeDocument.body):null;return(0,I.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,I.jsx)("div",{className:"nb-cell-clickable nb-cell-multiselect",onClick:o,children:e.length>0?e.map(O=>(0,I.jsx)("span",{className:"nb-select-badge",style:{background:Zt(V,O),color:Ir(Zt(V,O))},children:O},O)):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),q,W]})}function fS({defaultValue:e,onChange:t,onEscape:n}){let[o,r]=(0,_e.useState)(e),a=l=>{let s=l.replace(/\D/g,"").slice(0,4);return s.length<=2?s:`${s.slice(0,2)}:${s.slice(2)}`},i=l=>{let s=l.match(/^(\d{1,2}):(\d{2})$/);if(!s)return;let d=Math.min(23,parseInt(s[1])),p=Math.min(59,parseInt(s[2])),g=`${String(d).padStart(2,"0")}:${String(p).padStart(2,"0")}`;r(g),t(g)};return(0,I.jsx)("input",{type:"text",inputMode:"numeric",className:"nb-cell-input nb-cell-input--time",value:o,placeholder:"HH:mm",onChange:l=>{let s=a(l.target.value);r(s),/^\d{2}:\d{2}$/.test(s)&&i(s)},onBlur:()=>i(o),onKeyDown:l=>{l.key==="Enter"&&i(o),l.key==="Escape"&&n()}})}function gS({value:e,isEditing:t,onStartEdit:n,onSave:o,onClose:r}){let a=(0,_e.useRef)(null),i=e?e.includes("T"):!1,l=e?e.split("T")[0]:null,s=e&&i?e.split("T")[1]:null,[d,p]=(0,_e.useState)(i);(0,_e.useEffect)(()=>{t&&p(i)},[t]),(0,_e.useEffect)(()=>{if(!t)return;let h=b=>{a.current&&!a.current.contains(b.target)&&r()};return activeDocument.addEventListener("mousedown",h),()=>activeDocument.removeEventListener("mousedown",h)},[t,r]);let g=(()=>{if(!l)return null;let[h,b,f]=l.split("-"),_=new Date(+h,+b-1,+f).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"});return i&&s?`${_} ${s}`:_})();if(!t)return(0,I.jsx)("div",{className:"nb-cell-clickable nb-cell-date",onClick:n,children:g??(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})});let m=h=>{if(!h){o(null);return}o(d&&s?`${h}T${s}`:d?`${h}T00:00`:h)},c=h=>{let b=l??new Date().toISOString().slice(0,10);o(h?`${b}T${h}`:b)},v=()=>{let h=!d;p(h),!h&&l?o(l):h&&l&&o(`${l}T${s??"00:00"}`)};return(0,I.jsxs)("div",{ref:a,className:"nb-cell-date-editor",children:[(0,I.jsx)("input",{type:"date",className:"nb-cell-input nb-cell-input--date",defaultValue:l??"",onChange:h=>m(h.target.value),onKeyDown:h=>{h.key==="Escape"&&r()}}),d&&(0,I.jsx)(fS,{defaultValue:s??"00:00",onChange:c,onEscape:r}),(0,I.jsx)("button",{className:`nb-cell-time-toggle${d?" nb-cell-time-toggle--active":""}`,onClick:h=>{h.stopPropagation(),v()},title:d?u("calendar_remove_time"):u("calendar_add_time"),children:"\u{1F550}"})]})}function _S({value:e,onCommit:t}){return(0,I.jsx)("div",{className:"nb-cell-checkbox-wrapper",children:(0,I.jsx)("input",{type:"checkbox",className:"nb-cell-checkbox",checked:e,onChange:n=>t(n.target.checked)})})}function hS({value:e,col:t}){let n=e==null?"\u2014":ht(e);return(0,I.jsx)("div",{className:"nb-cell-formula",title:u("formula_panel_title")+": "+(t.formula??""),children:n})}function vS({value:e,col:t}){let n=e==null?"\u2014":ht(e);return(0,I.jsx)("div",{className:"nb-cell-formula nb-cell-lookup",title:u("lookup_panel_title")+" de "+(t.refDatabasePath??""),children:n})}function bS({value:e,col:t}){let n=e==null?"\u2014":ht(e);return(0,I.jsx)("div",{className:"nb-cell-formula nb-cell-rollup",title:u("rollup_panel_title")+": "+(t.rollupFunction??""),children:n})}function yS({value:e,options:t,isEditing:n,onStartEdit:o,onCommit:r}){let a=(0,_e.useRef)(null),i=(0,_e.useRef)(null),[l,s]=(0,_e.useState)(""),d=(0,_e.useRef)(null),[p,g]=(0,_e.useState)(null),[m,c]=(0,_e.useState)(e);(0,_e.useEffect)(()=>{c(e)},[e]),(0,_e.useEffect)(()=>{if(!n)return;let f=_=>{let y=a.current?.contains(_.target),k=i.current?.contains(_.target);!y&&!k&&r(m)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[n,r,m]),(0,_e.useEffect)(()=>{if(n){if(s(""),c(e),a.current){let f=a.current.getBoundingClientRect();g({top:f.bottom,left:f.left,width:f.width})}window.setTimeout(()=>d.current?.focus(),0)}},[n]);let v=f=>{c(_=>_.includes(f)?_.filter(y=>y!==f):[..._,f])},h=t.filter(f=>f.toLowerCase().includes(l.toLowerCase())),b=n&&p?(0,go.createPortal)((0,I.jsxs)("div",{ref:i,className:"nb-select-dropdown nb-relation-dropdown",style:{position:"fixed",top:p.top,left:p.left,minWidth:p.width,zIndex:9999},children:[(0,I.jsx)("input",{ref:d,className:"nb-relation-search",placeholder:u("relation_search_placeholder"),value:l,onChange:f=>s(f.target.value),onKeyDown:f=>{f.key==="Escape"&&r(m)}}),m.length>0&&(0,I.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>c([]),children:u("relation_clear")}),h.map(f=>(0,I.jsxs)("button",{className:`nb-select-option ${m.includes(f)?"nb-select-option--active":""}`,onClick:()=>v(f),children:[m.includes(f)&&(0,I.jsx)("span",{className:"nb-relation-check",children:"\u2713"}),(0,I.jsx)("span",{className:"nb-relation-badge",children:f})]},f)),h.length===0&&(0,I.jsx)("div",{className:"nb-relation-empty",children:u("relation_no_results")})]}),activeDocument.body):null;return(0,I.jsxs)("div",{className:"nb-cell-select-wrapper",ref:a,children:[(0,I.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e.length>0?(0,I.jsx)("span",{className:"nb-relation-badges",children:e.map(f=>(0,I.jsx)("span",{className:"nb-relation-badge",children:f},f))}):(0,I.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),b]})}var Zv=new Set(["png","jpg","jpeg","gif","svg","webp","bmp"]);function wS({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=Vt(),[l,s]=(0,_e.useState)([]),[d,p]=(0,_e.useState)(null),g=(0,_e.useRef)(null),m=(0,_e.useRef)(null);(0,_e.useEffect)(()=>{if(!n)return;let b=e.imageSourceFolder,f=i.vault.getFiles(),_=b?f.filter(y=>Zv.has(y.extension.toLowerCase())&&(y.path.startsWith(b+"/")||y.parent?.path===b)):f.filter(y=>Zv.has(y.extension.toLowerCase()));if(s(_.sort((y,k)=>y.name.localeCompare(k.name))),g.current){let y=g.current.getBoundingClientRect(),k=y.left,F=y.bottom+4;k+280>window.innerWidth&&(k=window.innerWidth-288),p({x:k,y:F})}},[n,e.imageSourceFolder]),(0,_e.useEffect)(()=>{if(!n)return;let b=f=>{m.current?.contains(f.target)||g.current?.contains(f.target)||a()};return activeDocument.addEventListener("mousedown",b),()=>activeDocument.removeEventListener("mousedown",b)},[n,a]);let c=t?i.vault.getFileByPath(t):null,v=c?i.vault.getResourcePath(c):null;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:g,className:"nb-cell-image",onClick:o,children:v?(0,I.jsxs)("div",{className:"nb-image-cell-content",children:[(0,I.jsx)("img",{src:v,alt:"",className:"nb-image-cell-thumb"}),(0,I.jsx)("a",{className:"nb-image-cell-link",onClick:b=>{b.stopPropagation(),c&&i.workspace.getLeaf(!0).openFile(c)},title:t??"",children:c?.name??t??""})]}):(0,I.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("image_select_placeholder")})}),n&&d&&(0,go.createPortal)((0,I.jsxs)("div",{ref:m,className:"nb-image-picker",style:{position:"fixed",top:d.y,left:d.x},children:[(0,I.jsxs)("div",{className:"nb-image-picker-header",children:[(0,I.jsx)("span",{children:u("image_picker_title")}),t&&(0,I.jsx)("button",{className:"nb-image-picker-clear",onClick:b=>{b.stopPropagation(),r(null)},children:u("image_picker_clear")})]}),l.length===0?(0,I.jsx)("div",{className:"nb-image-picker-empty",children:e.imageSourceFolder?`${u("image_picker_empty_folder")} "${e.imageSourceFolder}"`:u("image_picker_empty_vault")}):(0,I.jsx)("div",{className:"nb-image-picker-grid",children:l.map(b=>{let f=i.vault.getResourcePath(b);return(0,I.jsxs)("div",{className:`nb-image-picker-item${t===b.path?" nb-image-picker-item--selected":""}`,onClick:_=>{_.stopPropagation(),r(b.path)},title:b.path,children:[(0,I.jsx)("img",{src:f,alt:b.name,className:"nb-image-picker-thumb"}),(0,I.jsx)("span",{className:"nb-image-picker-name",children:b.name})]},b.path)})})]}),activeDocument.body)]})}var Jv=new Set(["mp3","wav","ogg","flac","m4a","aac","webm"]);function CS({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=Vt(),[l,s]=(0,_e.useState)([]),[d,p]=(0,_e.useState)(null),g=(0,_e.useRef)(null),m=(0,_e.useRef)(null);(0,_e.useEffect)(()=>{if(!n)return;let h=e.audioSourceFolder,b=i.vault.getFiles(),f=h?b.filter(_=>Jv.has(_.extension.toLowerCase())&&(_.path.startsWith(h+"/")||_.parent?.path===h)):b.filter(_=>Jv.has(_.extension.toLowerCase()));if(s(f.sort((_,y)=>_.name.localeCompare(y.name))),g.current){let _=g.current.getBoundingClientRect();p({top:_.bottom,left:_.left,width:_.width})}},[n,e.audioSourceFolder]),(0,_e.useEffect)(()=>{if(!n)return;let h=b=>{m.current?.contains(b.target)||g.current?.contains(b.target)||a()};return activeDocument.addEventListener("mousedown",h),()=>activeDocument.removeEventListener("mousedown",h)},[n,a]);let c=t?i.vault.getFileByPath(t):null,v=c?i.vault.getResourcePath(c):null;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:g,className:"nb-cell-audio",onClick:o,children:v?(0,I.jsx)("audio",{controls:!0,preload:"metadata",src:v,className:"nb-audio-player",onClick:h=>h.stopPropagation()}):(0,I.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("audio_select_placeholder")})}),n&&d&&(0,go.createPortal)((0,I.jsxs)("div",{ref:m,className:"nb-select-dropdown",style:{position:"fixed",top:d.top,left:d.left,minWidth:d.width,zIndex:9999},children:[(0,I.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:h=>{h.stopPropagation(),r(null)},children:u("audio_picker_clear")}),(0,I.jsx)("div",{className:"nb-menu-separator"}),l.length===0?(0,I.jsx)("div",{className:"nb-select-option",style:{color:"var(--text-muted)",cursor:"default"},children:e.audioSourceFolder?`${u("audio_picker_empty_folder")} "${e.audioSourceFolder}"`:u("audio_picker_empty_vault")}):l.map(h=>(0,I.jsxs)("button",{className:`nb-select-option${t===h.path?" nb-select-option--active":""}`,onClick:b=>{b.stopPropagation(),r(h.path)},children:[(0,I.jsx)("span",{children:"\u{1F3B5}"}),(0,I.jsx)("span",{children:h.name})]},h.path))]}),activeDocument.body)]})}var eb=new Set(["mp4","webm","ogv","mov","mkv"]);function kS({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=Vt(),[l,s]=(0,_e.useState)([]),[d,p]=(0,_e.useState)(null),g=(0,_e.useRef)(null),m=(0,_e.useRef)(null);(0,_e.useEffect)(()=>{if(!n)return;let f=e.videoSourceFolder,_=i.vault.getFiles(),y=f?_.filter(k=>eb.has(k.extension.toLowerCase())&&(k.path.startsWith(f+"/")||k.parent?.path===f)):_.filter(k=>eb.has(k.extension.toLowerCase()));if(s(y.sort((k,F)=>k.name.localeCompare(F.name))),g.current){let k=g.current.getBoundingClientRect();p({top:k.bottom,left:k.left,width:k.width})}},[n,e.videoSourceFolder]),(0,_e.useEffect)(()=>{if(!n)return;let f=_=>{m.current?.contains(_.target)||g.current?.contains(_.target)||a()};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[n,a]);let[c,v]=(0,_e.useState)(!1),h=t?i.vault.getFileByPath(t):null,b=h?i.vault.getResourcePath(h):null;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:g,className:"nb-cell-video",onClick:o,children:h?(0,I.jsxs)("div",{className:"nb-video-cell-content",children:[(0,I.jsx)("span",{className:"nb-video-cell-icon",onClick:f=>{f.stopPropagation(),v(!0)},children:"\u25B6"}),(0,I.jsx)("a",{className:"nb-video-cell-link",onClick:f=>{f.stopPropagation(),v(!0)},title:t??"",children:h.name})]}):(0,I.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("video_select_placeholder")})}),c&&b&&(0,go.createPortal)((0,I.jsx)("div",{className:"nb-video-modal-backdrop",onClick:()=>v(!1),children:(0,I.jsxs)("div",{className:"nb-video-modal",onClick:f=>f.stopPropagation(),children:[(0,I.jsx)("video",{controls:!0,autoPlay:!0,src:b,className:"nb-video-modal-player"}),(0,I.jsx)("button",{className:"nb-video-modal-close",onClick:()=>v(!1),children:"\xD7"})]})}),activeDocument.body),n&&d&&(0,go.createPortal)((0,I.jsxs)("div",{ref:m,className:"nb-select-dropdown",style:{position:"fixed",top:d.top,left:d.left,minWidth:d.width,zIndex:9999},children:[(0,I.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:f=>{f.stopPropagation(),r(null)},children:u("video_picker_clear")}),(0,I.jsx)("div",{className:"nb-menu-separator"}),l.length===0?(0,I.jsx)("div",{className:"nb-select-option",style:{color:"var(--text-muted)",cursor:"default"},children:e.videoSourceFolder?`${u("video_picker_empty_folder")} "${e.videoSourceFolder}"`:u("video_picker_empty_vault")}):l.map(f=>(0,I.jsxs)("button",{className:`nb-select-option${t===f.path?" nb-select-option--active":""}`,onClick:_=>{_.stopPropagation(),r(f.path)},children:[(0,I.jsx)("span",{children:"\u{1F3AC}"}),(0,I.jsx)("span",{children:f.name})]},f.path))]}),activeDocument.body)]})}var Ju=require("obsidian");var Zu=class extends Ju.FuzzySuggestModal{constructor(t,n){super(t),this.onChoose=n,this.setPlaceholder(u("folder_picker_placeholder"))}getItems(){return this.app.vault.getAllLoadedFiles().filter(t=>t instanceof Ju.TFolder).sort((t,n)=>t.path.localeCompare(n.path))}getItemText(t){return t.path||"/"}onChooseItem(t){this.onChoose(t)}};var tb=require("obsidian");function kn(){return tb.Platform.isMobile}var Or=Fe(xt(),1),Tm=Fe(po(),1);var Ge=Fe(St(),1),Un=()=>(0,Ge.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Ge.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),_o=()=>(0,Ge.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ge.jsx)("line",{x1:"4",y1:"6",x2:"16",y2:"6"}),(0,Ge.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,Ge.jsx)("line",{x1:"4",y1:"18",x2:"8",y2:"18"})]}),Sn=()=>(0,Ge.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ge.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,Ge.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}),nb=()=>(0,Ge.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Ge.jsx)("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),Wn=()=>(0,Ge.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ge.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,Ge.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,Ge.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]});function Gn({search:e,actions:t,rowCount:n,rowCountLabel:o,filters:r,onFilterUpdate:a,onFilterRemove:i,onConjunctionToggle:l,actionBarRef:s,children:d}){let p=(0,Or.useRef)(null),g=s??p,[m,c]=(0,Or.useState)(!1),v=(0,Or.useRef)(null);return(0,Ge.jsxs)("div",{className:"nb-mobile-toolbar",children:[e&&(0,Ge.jsx)("div",{className:"nb-mobile-search-strip",children:(0,Ge.jsxs)("div",{className:"nb-mobile-search-wrapper",onClick:()=>c(!0),children:[(0,Ge.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-mobile-search-icon",children:[(0,Ge.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Ge.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Ge.jsx)("div",{className:`nb-mobile-search-input nb-mobile-search-fake${e.value?" nb-mobile-search-fake--has-value":""}`,role:"button",tabIndex:-1,children:e.value||u("filter_value_placeholder").replace("...","")+"..."})]})}),e&&m&&(0,Tm.createPortal)((0,Ge.jsx)("div",{className:"nb-mobile-search-overlay",onMouseDown:()=>c(!1),children:(0,Ge.jsxs)("div",{className:"nb-mobile-search-overlay-bar",onMouseDown:h=>h.stopPropagation(),children:[(0,Ge.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-mobile-search-overlay-icon",children:[(0,Ge.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Ge.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Ge.jsx)("input",{ref:v,className:"nb-mobile-search-overlay-input",type:"text",placeholder:u("filter_value_placeholder").replace("...","")+"...",value:e.value,onChange:h=>e.onChange(h.target.value),onKeyDown:h=>{h.key==="Enter"&&(h.currentTarget.blur(),c(!1))},autoFocus:!0}),(0,Ge.jsx)("button",{className:"nb-mobile-search-overlay-close",onClick:()=>c(!1),children:"\xD7"})]})}),activeDocument.body),(0,Ge.jsx)("div",{className:"nb-mobile-action-bar",ref:g,children:t.map(h=>(0,Ge.jsxs)("button",{className:`nb-mobile-action-btn${h.active?" nb-mobile-action-btn--active":""}`,onMouseDown:b=>{b.stopPropagation(),b.nativeEvent.stopImmediatePropagation()},onClick:h.onClick,children:[h.icon,(0,Ge.jsx)("span",{className:"nb-mobile-action-label",children:h.label}),h.badge!=null&&h.badge>0&&(0,Ge.jsx)("span",{className:"nb-mobile-action-badge",children:h.badge})]},h.id))}),d,(0,Ge.jsx)(SS,{filters:r,rowCount:n,rowCountLabel:o,onFilterUpdate:a,onFilterRemove:i,onConjunctionToggle:l})]})}function SS({filters:e,rowCount:t,rowCountLabel:n,onFilterUpdate:o,onFilterRemove:r,onConjunctionToggle:a}){let[i,l]=(0,Or.useState)(null);return e.length===0&&t<0?null:(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("div",{className:"nb-mobile-pills-strip",children:[e.map((s,d)=>(0,Ge.jsxs)(Or.Fragment,{children:[d>0&&(0,Ge.jsx)("button",{className:`nb-pill-conjunction${s.conjunction==="or"?" nb-pill-conjunction--or":""}`,onClick:()=>a(s.id),children:s.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,Ge.jsxs)("button",{className:`nb-filter-pill${i===s.id?" nb-filter-pill--expanded":""}`,onClick:()=>l(p=>p===s.id?null:s.id),children:[(0,Ge.jsx)("span",{className:"nb-pill-name",children:s.columnName}),(0,Ge.jsx)("span",{className:"nb-pill-remove",onClick:p=>{p.stopPropagation(),r(s.id)},children:"\xD7"})]})]},s.id)),(0,Ge.jsxs)("span",{className:"nb-mobile-row-count",children:[t," ",n]})]}),(()=>{let s=i?e.find(d=>d.id===i):null;return s?(0,Tm.createPortal)((0,Ge.jsx)("div",{className:"nb-mobile-search-overlay",onMouseDown:()=>l(null),children:(0,Ge.jsxs)("div",{className:"nb-mobile-search-overlay-bar nb-mobile-filter-overlay-bar",onMouseDown:d=>d.stopPropagation(),children:[(0,Ge.jsx)("span",{className:"nb-mobile-filter-overlay-title",children:s.columnName}),(0,Ge.jsx)("select",{className:"nb-mobile-filter-overlay-select",value:s.operator,onChange:d=>o(s.id,d.target.value,s.value),children:si(s.columnType).map(d=>(0,Ge.jsx)("option",{value:d,children:Dr[d]},d))}),!Fr.has(s.operator)&&(0,Ge.jsx)("input",{className:"nb-mobile-search-overlay-input",type:"text",value:s.value,placeholder:u("filter_value_placeholder"),onChange:d=>o(s.id,s.operator,d.target.value),autoFocus:!0}),(0,Ge.jsx)("button",{className:"nb-mobile-search-overlay-close",onClick:()=>l(null),children:"\xD7"})]})}),activeDocument.body):null})()]})}var Oo=Fe(xt(),1),ob=Fe(po(),1),ba=Fe(St(),1);function ct({open:e,onClose:t,title:n,children:o}){let[r,a]=(0,Oo.useState)(!1),[i,l]=(0,Oo.useState)(!1),s=(0,Oo.useRef)(null),[d,p]=(0,Oo.useState)("70vh");return(0,Oo.useEffect)(()=>{if(e){a(!0),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l(!0))});return}l(!1);let g=window.setTimeout(()=>a(!1),250);return()=>window.clearTimeout(g)},[e]),(0,Oo.useEffect)(()=>{if(!e)return;let g=m=>{m.key==="Escape"&&t()};return activeDocument.addEventListener("keydown",g),()=>activeDocument.removeEventListener("keydown",g)},[e,t]),(0,Oo.useEffect)(()=>{if(!e||!window.visualViewport)return;let g=()=>{let m=window.visualViewport.height;p(`${m*.7}px`)};return g(),window.visualViewport.addEventListener("resize",g),()=>window.visualViewport.removeEventListener("resize",g)},[e]),r?(0,ob.createPortal)((0,ba.jsx)("div",{className:`nb-bottomsheet-backdrop${i?" nb-bottomsheet-backdrop--open":""}`,onMouseDown:t,children:(0,ba.jsxs)("div",{ref:s,className:`nb-bottomsheet${i?" nb-bottomsheet--open":""}`,style:{maxHeight:d},onMouseDown:g=>g.stopPropagation(),children:[(0,ba.jsx)("div",{className:"nb-bottomsheet-handle"}),n&&(0,ba.jsx)("div",{className:"nb-bottomsheet-title",children:n}),(0,ba.jsx)("div",{className:"nb-bottomsheet-content",children:o})]})}),activeDocument.body):null}var rb=Fe(xt(),1);var Jt=Fe(St(),1),$r=rb.default.memo(function({status:t}){return t==="idle"?null:(0,Jt.jsxs)("span",{className:`nb-save-indicator nb-save-indicator--${t}`,"aria-live":"polite",children:[t==="saving"&&(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("span",{className:"nb-save-spinner"}),(0,Jt.jsx)("span",{className:"nb-save-label",children:u("saving")})]}),t==="saved"&&(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)("svg",{className:"nb-save-check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Jt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Jt.jsx)("span",{className:"nb-save-label",children:u("saved")})]}),t==="error"&&(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsxs)("svg",{className:"nb-save-error-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Jt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Jt.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,Jt.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),(0,Jt.jsx)("span",{className:"nb-save-label",children:u("save_error")})]})]})});var Pm=Fe(xt(),1);var dt=Fe(St(),1),NS=[{bg:"#dcfce7",text:""},{bg:"#fef9c3",text:""},{bg:"#fee2e2",text:""},{bg:"#dbeafe",text:""},{bg:"#f3e8ff",text:""},{bg:"#ffedd5",text:""},{bg:"",text:"#16a34a"},{bg:"",text:"#dc2626"},{bg:"",text:"#2563eb"},{bg:"#dc2626",text:"#ffffff"},{bg:"#16a34a",text:"#ffffff"},{bg:"#2563eb",text:"#ffffff"}];function zr({rules:e,schema:t,onChange:n,onClose:o}){let[r,a]=(0,Pm.useState)(null),i=t.filter(m=>m.visible&&m.type!=="formula"&&m.type!=="lookup"&&m.type!=="rollup"),l=()=>{let m=i[0];if(!m)return;let c={id:crypto.randomUUID(),columnId:m.id,operator:Fn(m.type),value:"",bgColor:"#dcfce7",textColor:""};a(c)},s=m=>{let v=e.find(h=>h.id===m.id)?e.map(h=>h.id===m.id?m:h):[...e,m];n(v),a(null)},d=m=>{n(e.filter(c=>c.id!==m)),r?.id===m&&a(null)},p=m=>t.find(c=>c.id===m)?.type??"text",g=m=>t.find(c=>c.id===m)?.name??m;return(0,dt.jsxs)("div",{className:"nb-cf-panel nb-fields-dropdown",children:[(0,dt.jsxs)("div",{className:"nb-cf-panel-header",children:[(0,dt.jsx)("span",{className:"nb-cf-panel-title",children:u("conditional_formatting")}),(0,dt.jsx)("button",{className:"nb-cf-panel-close",onClick:o,children:"\xD7"})]}),e.length===0&&!r&&(0,dt.jsx)("div",{className:"nb-cf-panel-empty",children:u("no_conditional_formats")}),e.map(m=>(0,dt.jsxs)("div",{className:"nb-cf-rule",onClick:()=>a({...m}),children:[(0,dt.jsx)("span",{className:"nb-cf-rule-preview",style:{backgroundColor:m.bgColor||void 0,color:m.textColor||void 0},children:"Aa"}),(0,dt.jsxs)("span",{className:"nb-cf-rule-desc",children:[g(m.columnId)," ",Dr[m.operator]," ",Fr.has(m.operator)?"":m.value]}),(0,dt.jsx)("button",{className:"nb-cf-rule-remove",onClick:c=>{c.stopPropagation(),d(m.id)},children:"\xD7"})]},m.id)),r&&(0,dt.jsx)(xS,{rule:r,schema:t,availableCols:i,getColType:p,onSave:s,onCancel:()=>a(null)}),!r&&(0,dt.jsx)("button",{className:"nb-cf-add-btn",onClick:l,children:"+ "+u("add_rule")})]})}function xS({rule:e,schema:t,availableCols:n,getColType:o,onSave:r,onCancel:a}){let[i,l]=(0,Pm.useState)(e),s=o(i.columnId),d=si(s),p=!Fr.has(i.operator),m=t.find(v=>v.id===i.columnId)?.options?.map(v=>v.value||v.label||"").filter(Boolean)??[],c=s==="select"||s==="multiselect"||s==="status";return(0,dt.jsxs)("div",{className:"nb-cf-editor",children:[(0,dt.jsxs)("div",{className:"nb-cf-editor-row",children:[(0,dt.jsx)("select",{className:"nb-cf-select",value:i.columnId,onChange:v=>{let h=o(v.target.value);l({...i,columnId:v.target.value,operator:Fn(h),value:""})},children:n.map(v=>(0,dt.jsx)("option",{value:v.id,children:v.name},v.id))}),(0,dt.jsx)("select",{className:"nb-cf-select",value:i.operator,onChange:v=>l({...i,operator:v.target.value}),children:d.map(v=>(0,dt.jsx)("option",{value:v,children:Dr[v]},v))})]}),p&&(0,dt.jsx)("div",{className:"nb-cf-editor-row",children:c&&m.length>0?(0,dt.jsxs)("select",{className:"nb-cf-select nb-cf-value",value:i.value,onChange:v=>l({...i,value:v.target.value}),children:[(0,dt.jsx)("option",{value:"",children:u("select_value")}),m.map(v=>(0,dt.jsx)("option",{value:v,children:v},v))]}):(0,dt.jsx)("input",{className:"nb-cf-input",type:s==="number"?"number":s==="date"?"date":"text",value:i.value,onChange:v=>l({...i,value:v.target.value}),placeholder:u("value"),autoFocus:!0})}),(0,dt.jsx)("div",{className:"nb-cf-editor-row",children:(0,dt.jsx)("span",{className:"nb-cf-color-label",children:u("style")})}),(0,dt.jsx)("div",{className:"nb-cf-presets",children:NS.map((v,h)=>(0,dt.jsx)("button",{className:`nb-cf-preset${i.bgColor===v.bg&&i.textColor===v.text?" nb-cf-preset--active":""}`,style:{backgroundColor:v.bg||"transparent",color:v.text||"var(--text-normal)",borderColor:v.bg||v.text||"var(--background-modifier-border)"},onClick:()=>l({...i,bgColor:v.bg,textColor:v.text}),children:"Aa"},h))}),(0,dt.jsxs)("div",{className:"nb-cf-editor-row nb-cf-custom-colors",children:[(0,dt.jsxs)("label",{className:"nb-cf-color-field",children:[(0,dt.jsx)("span",{children:u("background")}),(0,dt.jsx)("input",{type:"color",value:i.bgColor||"#ffffff",onChange:v=>l({...i,bgColor:v.target.value==="#ffffff"?"":v.target.value})})]}),(0,dt.jsxs)("label",{className:"nb-cf-color-field",children:[(0,dt.jsx)("span",{children:u("text_color")}),(0,dt.jsx)("input",{type:"color",value:i.textColor||"#000000",onChange:v=>l({...i,textColor:v.target.value==="#000000"?"":v.target.value})})]})]}),(0,dt.jsxs)("div",{className:"nb-cf-editor-actions",children:[(0,dt.jsx)("button",{className:"nb-cf-btn nb-cf-btn--save",onClick:()=>r(i),children:u("save")}),(0,dt.jsx)("button",{className:"nb-cf-btn nb-cf-btn--cancel",onClick:a,children:u("cancel")})]})]})}var ab=Fe(xt(),1);var Vr=Fe(St(),1),yi=ab.default.memo(function({currentPage:t,totalPages:n,onPageChange:o}){return n<=1?null:(0,Vr.jsxs)("div",{className:"nb-pagination",children:[(0,Vr.jsx)("button",{className:"nb-pagination-btn",disabled:t===1,onClick:()=>o(1),title:u("first_page"),children:"\xAB"}),(0,Vr.jsx)("button",{className:"nb-pagination-btn",disabled:t===1,onClick:()=>o(t-1),title:u("prev_page"),children:"\u2039"}),(0,Vr.jsx)("span",{className:"nb-pagination-info",children:u("page_of").replace("{current}",String(t)).replace("{total}",String(n))}),(0,Vr.jsx)("button",{className:"nb-pagination-btn",disabled:t===n,onClick:()=>o(t+1),title:u("next_page"),children:"\u203A"}),(0,Vr.jsx)("button",{className:"nb-pagination-btn",disabled:t===n,onClick:()=>o(n),title:u("last_page"),children:"\xBB"})]})});var ya=Fe(xt(),1);function Br(e=2e3){let[t,n]=(0,ya.useState)("idle"),o=(0,ya.useRef)(0),r=(0,ya.useRef)(),a=(0,ya.useCallback)(i=>(o.current++,r.current&&window.clearTimeout(r.current),n("saving"),i.then(l=>(o.current--,o.current===0&&(n("saved"),r.current=window.setTimeout(()=>n("idle"),e)),l),l=>{throw o.current--,o.current===0&&(n("error"),r.current=window.setTimeout(()=>n("idle"),e)),l})),[e]);return{status:t,trackSave:a}}var wa=Fe(xt(),1);function wi(e,t){let[n,o]=(0,wa.useState)(1),r=t>0?Math.max(1,Math.ceil(e.length/t)):1;return(0,wa.useEffect)(()=>{o(1)},[e.length,t]),(0,wa.useEffect)(()=>{n>r&&o(r)},[n,r]),{pageItems:(0,wa.useMemo)(()=>{if(t<=0)return e;let i=(n-1)*t;return e.slice(i,i+t)},[e,n,t]),currentPage:n,totalPages:r,setPage:o}}var RS=3;function ec(e,t){return e.find(n=>n.type==="relation"&&n.isHierarchical&&n.refDatabasePath===t)??null}function Lm(e,t){let n=e[t];return n?Array.isArray(n)?n:[ht(n)]:[]}function tc(e,t,n,o,r){let a=new Map,i=new Map,l=new Set;for(let c of e)a.set(c._title,c);for(let c of e){let v=Lm(c,t);for(let h of v)if(a.has(h)&&h!==c._title){let b=i.get(h)??[];b.push(c),i.set(h,b),l.add(c._file.path);break}}for(let c of e){if(!l.has(c._file.path))continue;let v=new Set,h=c._title;for(;h;){if(v.has(h)){l.delete(c._file.path);let _=Lm(c,t)[0];if(_){let y=i.get(_);if(y){let k=y.indexOf(c);k>=0&&y.splice(k,1),y.length===0&&i.delete(_)}}break}v.add(h);let b=a.get(h);if(!b||!l.has(b._file.path))break;h=Lm(b,t).find(_=>a.has(_)&&_!==b._title)??""}}let s=e.filter(c=>!l.has(c._file.path)),d=no(s,n),p=[],g=new Set;function m(c,v,h){if(g.has(c._title))return;g.add(c._title);let b=i.get(c._title)??[],f=b.length>0;if(p.push({row:c,depth:v,hasChildren:f,parentTitle:h}),!f||v>=RS||!(r?!o.has(c._file.path):o.has(c._file.path)))return;let y=no(b,n);for(let k of y)m(k,v+1,c._title)}for(let c of d)m(c,0,null);return p}var C=Fe(St(),1);function ES(e,t,n=!1){let[o,r]=(0,le.useState)({scrollTop:0,viewportHeight:800}),a=(0,le.useRef)(null);if((0,le.useEffect)(()=>{if(n)return;let d=e.current;if(!d)return;let p=()=>r({scrollTop:d.scrollTop,viewportHeight:d.clientHeight});p();let g=()=>{a.current||(a.current=window.setTimeout(()=>{a.current=null,p()},32))};d.addEventListener("scroll",g,{passive:!0});let m=new ResizeObserver(p);return m.observe(d),()=>{d.removeEventListener("scroll",g),m.disconnect(),a.current&&window.clearTimeout(a.current)}},[e,n]),n)return{startIdx:0,endIdx:Number.POSITIVE_INFINITY,topPad:0};let i=20,l=Math.max(0,Math.floor(o.scrollTop/t)-i),s=Math.ceil((o.scrollTop+o.viewportHeight)/t)+i;return{startIdx:l,endIdx:s,topPad:l*t}}function DS({scrollRef:e,rowHeight:t,rows:n,stickyMap:o,isMobile:r,setEditingCell:a,setContextMenuFile:i,longPressRef:l,columns:s,onAddRow:d,hierarchyMap:p,onToggleExpand:g,onAddSubRow:m,expandedSet:c,allExpanded:v,rowDragEnabled:h,dragOverPath:b,onRowDragStart:f,onRowDragOver:_,onRowDragEnd:y,onRowDrop:k,conditionalFormats:F,schema:T,disableVirtual:V}){let{startIdx:j,endIdx:re,topPad:ne}=ES(e,t,V),de=n.slice(j,Math.min(n.length,re)),ve=Math.max(0,(n.length-Math.min(n.length,re))*t);return(0,C.jsxs)("tbody",{className:"nb-tbody",children:[n.length===0?(0,C.jsx)("tr",{children:(0,C.jsx)("td",{colSpan:s.length+1,className:"nb-empty-rows",children:u("no_results")})}):(0,C.jsxs)(C.Fragment,{children:[ne>0&&(0,C.jsx)("tr",{style:{height:ne}}),de.map(Ce=>{let Oe=Ce.original._file.path;return(0,C.jsxs)("tr",{className:`nb-row${b===Oe?" nb-row--drag-over":""}`,onClick:()=>a(null),onContextMenu:W=>{W.preventDefault(),i(Ce.original._file)},onTouchStart:r?()=>{l.current=window.setTimeout(()=>i(Ce.original._file),500)}:void 0,onTouchMove:r?()=>{l.current&&(window.clearTimeout(l.current),l.current=null)}:void 0,onTouchEnd:r?()=>{l.current&&(window.clearTimeout(l.current),l.current=null)}:void 0,onDragOver:h?W=>{W.preventDefault(),_?.(Oe)}:void 0,onDrop:h?W=>{W.preventDefault(),k?.(Oe)}:void 0,children:[Ce.getVisibleCells().map(W=>{let O=o.get(W.column.id),Q=p?.get(Ce.original._file.path),ce=W.column.id==="_title"&&Q,Ne=Q?.depth??0,Be=v?!c?.has(Ce.original._file.path):!!c?.has(Ce.original._file.path),$e=W.column.id==="_select",nt=F?.length&&T?zh(Ce.original,W.column.id,F,T):void 0,et=!!T?.find(fe=>fe.id===W.column.id)?.wrap;return(0,C.jsx)("td",{"data-col-id":W.column.id,className:["nb-td",O?"nb-td--sticky":"",O?.isLast?"nb-td--sticky-last":"",et?"nb-td--wrap":""].filter(Boolean).join(" "),style:{width:W.column.getSize(),...O?{left:O.left,zIndex:1}:{},...nt},onClick:fe=>fe.stopPropagation(),children:$e&&h?(0,C.jsxs)("div",{className:"nb-td-inner nb-td-inner--drag",children:[(0,C.jsx)("span",{className:"nb-row-drag-handle",draggable:!0,onDragStart:fe=>{fe.dataTransfer.effectAllowed="move",fe.dataTransfer.setData("text/plain",Oe),f?.(Oe)},onDragEnd:()=>y?.(),children:"\u283F"}),mi(W.column.columnDef.cell,W.getContext())]}):ce?(0,C.jsxs)("div",{className:"nb-td-inner nb-hierarchy-cell",style:{paddingLeft:Ne*20},children:[Q.hasChildren?(0,C.jsx)("button",{className:"nb-hierarchy-toggle",onClick:fe=>{fe.stopPropagation(),g?.(Ce.original._file.path)},children:Be?"\u25BC":"\u25B6"}):(0,C.jsx)("span",{className:"nb-hierarchy-toggle-spacer"}),(0,C.jsx)("span",{style:{flex:1},children:mi(W.column.columnDef.cell,W.getContext())}),!r&&Ne<3&&(0,C.jsx)("button",{className:"nb-add-subrow-btn",onClick:fe=>{fe.stopPropagation(),m?.(Ce.original._title)},title:u("add_subrow"),children:"+"})]}):(0,C.jsx)("div",{className:"nb-td-inner",children:mi(W.column.columnDef.cell,W.getContext())})},W.id)}),(0,C.jsx)("td",{className:"nb-td nb-td-empty"})]},Ce.id)}),ve>0&&(0,C.jsx)("tr",{style:{height:ve}})]}),(0,C.jsx)("tr",{children:(0,C.jsx)("td",{colSpan:s.length+1,className:"nb-add-row-td",children:(0,C.jsx)("button",{className:"nb-add-row-btn",onClick:d,children:"+ "+u("add_row")})})})]})}function FS(e,t,n,o){if(n===o)return null;let r=["formula","lookup","relation"];if(r.includes(o)||r.includes(n))return null;let a=e.map(i=>i[t]).filter(i=>i!=null&&i!=="");if(o==="number"){let i=a.filter(l=>{let s=String(l).trim();return s!==""&&(isNaN(Number(s))||!isFinite(Number(s)))});if(i.length>0)return`${i.length} ${u("validate_non_numeric")}${String(i[0])}"`}if(o==="date"){let i=a.filter(l=>{let s=String(l).trim();return s!==""&&isNaN(new Date(s).getTime())});if(i.length>0)return`${i.length} ${u("validate_invalid_dates")}${String(i[0])}"`}if(o==="checkbox"){let i=new Set(["true","false","1","0","yes","no","sim","n\xE3o","nao"]),l=a.filter(s=>typeof s=="boolean"?!1:!i.has(String(s).toLowerCase().trim()));if(l.length>0)return`${l.length} ${u("validate_invalid_checkbox")}${String(l[0])}"`}if(n==="multiselect"&&o==="select"){let i=a.filter(l=>Array.isArray(l)&&l.length>1);if(i.length>0)return`${i.length} ${u("validate_multiselect_to_select")}`}if(o==="email"){let i=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,l=a.filter(s=>{let d=String(s).trim();return d!==""&&!i.test(d)});if(l.length>0)return`${l.length} ${u("validate_invalid_email")}${String(l[0])}"`}if(o==="url"){let i=a.filter(l=>{let s=String(l).trim();try{return new URL(s),!1}catch{return!0}});if(i.length>0)return`${i.length} ${u("validate_invalid_url")}${String(i[0])}"`}if(o==="phone"){let i=/^[\d\s()\-+]+$/,l=a.filter(s=>{let d=String(s).trim();return d!==""&&!i.test(d)});if(l.length>0)return`${l.length} ${u("validate_invalid_phone")}${String(l[0])}"`}return null}function MS(e){return{title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197"}[e]??"\xB7"}var TS=["contains","not_contains","starts_with","ends_with","is","is_not","is_empty","is_not_empty"],PS=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],LS=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],Im=["is","is_not","is_empty","is_not_empty"],IS=["is_checked","is_unchecked","is_empty","is_not_empty"];function AS(e){switch(e){case"number":return PS;case"date":return LS;case"select":return Im;case"multiselect":return Im;case"status":return Im;case"checkbox":return IS;default:return TS}}function OS(e){switch(e){case"number":case"date":return"is";case"checkbox":return"is_checked";case"select":case"multiselect":case"status":return"is";default:return"contains"}}var ib=new Proxy({},{get:(e,t)=>({is:u("op_is"),is_not:u("op_is_not"),contains:u("op_contains"),not_contains:u("op_not_contains"),starts_with:u("op_starts_with"),ends_with:u("op_ends_with"),gt:u("op_gt"),gte:u("op_gte"),lt:u("op_lt"),lte:u("op_lte"),is_checked:u("op_is_checked"),is_unchecked:u("op_is_unchecked"),is_empty:u("op_is_empty"),is_not_empty:u("op_is_not_empty")})[t]??t}),sb=new Set(["is_empty","is_not_empty","is_checked","is_unchecked"]);function $S(e,t){if(!sb.has(t.operator)&&t.value==="")return!0;let o=t.columnId==="_title"?e._title:e[t.columnId];if(t.operator==="is_empty")return o==null||String(o??"").trim()==="";if(t.operator==="is_not_empty")return o!=null&&String(o??"").trim()!=="";if(t.operator==="is_checked")return o===!0||o==="true";if(t.operator==="is_unchecked")return o!==!0&&o!=="true";if(t.columnType==="number"){let i=parseFloat(String(o??"")),l=parseFloat(t.value);if(isNaN(i)||isNaN(l))return!1;switch(t.operator){case"is":return i===l;case"is_not":return i!==l;case"gt":return i>l;case"gte":return i>=l;case"lt":return il;case"gte":return i>=l;case"lt":return is.toLowerCase());if(i.length===0)return!0;let l=Array.isArray(o)?o.map(s=>s.toLowerCase()):[String(o??"").toLowerCase()];return t.operator==="is"?l.some(s=>i.includes(s)):l.every(s=>!i.includes(s))}let r=Array.isArray(o)?o.join(", ").toLowerCase():String(o??"").toLowerCase(),a=t.value.toLowerCase();switch(t.operator){case"is":return r===a;case"is_not":return r!==a;case"contains":return r.includes(a);case"not_contains":return!r.includes(a);case"starts_with":return r.startsWith(a);case"ends_with":return r.endsWith(a);default:return!0}}function zS(e){switch(e){case"number":return"basic";case"date":return(t,n,o)=>{let r=new Date(String(t.getValue(o)??"")).getTime()||0,a=new Date(String(n.getValue(o)??"")).getTime()||0;return r-a};case"checkbox":return(t,n,o)=>{let r=t.getValue(o)?1:0,a=n.getValue(o)?1:0;return r-a};default:return"text"}}function VS({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,le.useState)(()=>({x:r.right-280,y:r.bottom+4})),s=b=>{b.preventDefault();let f=b.clientX-i.x,_=b.clientY-i.y,y=F=>l({x:F.clientX-f,y:F.clientY-_}),k=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",k)};window.addEventListener("mousemove",y),window.addEventListener("mouseup",k)},d=t.filter(b=>b.type!=="formula"&&b.type!=="lookup"&&b.type!=="relation"&&b.type!=="multiselect"),p=new Set(e.map(b=>b.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(b=>!p.has(b.id)).map(b=>({id:b.id,name:b.name}))],m=(b,f)=>{let _=[...e],y=b+f;y<0||y>=_.length||([_[b],_[y]]=[_[y],_[b]],n(_))},c=b=>{n(e.map(f=>f.columnId===b?{...f,direction:f.direction==="asc"?"desc":"asc"}:f))},v=b=>{n(e.filter(f=>f.columnId!==b))},h=b=>{b&&n([...e,{columnId:b,direction:"asc"}])};return(0,nc.createPortal)((0,C.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,C.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,C.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,C.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,C.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((b,f)=>{let _=b.columnId==="_title"?"Nome":t.find(y=>y.id===b.columnId)?.name??b.columnId;return(0,C.jsxs)("div",{className:"nb-sort-row",children:[(0,C.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,C.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(f,-1),disabled:f===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,C.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(f,1),disabled:f===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,C.jsx)("span",{className:"nb-sort-row-name",children:_}),(0,C.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>c(b.columnId),children:b.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,C.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>v(b.columnId),title:u("tooltip_remove"),children:"\xD7"})]},b.columnId)}),g.length>0&&(0,C.jsx)("div",{className:"nb-sort-add-row",children:(0,C.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:b=>{h(b.target.value),b.target.value=""},children:[(0,C.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(b=>(0,C.jsx)("option",{value:b.id,children:b.name},b.id))]})})]}),activeDocument.body)}function ub({onResize:e,onAutoFit:t}){return(0,C.jsx)("div",{className:"nb-col-resizer",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();let r=o.currentTarget.closest("th");if(!r)return;let a=o.clientX,i=r.offsetWidth,l=i,s=p=>{l=Math.max(50,i+(p.clientX-a)),r.style.width=l+"px"},d=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",d),e(l)};window.addEventListener("mousemove",s),window.addEventListener("mouseup",d)},onDoubleClick:o=>{o.stopPropagation(),t?.()},title:u("tooltip_resize_column")})}function BS({id:e,size:t,children:n,stickyLeft:o,isLastPinned:r,isPinned:a,onTogglePin:i,sorted:l,onToggleSort:s,onResize:d,onAutoFit:p}){let{attributes:g,listeners:m,setNodeRef:c,setActivatorNodeRef:v,transform:h,transition:b,isDragging:f}=Em({id:e}),_=o!==void 0;return(0,C.jsxs)("th",{ref:c,"data-col-id":e,className:["nb-th",f?"nb-th--dragging":"",_?"nb-th--sticky":"",r?"nb-th--sticky-last":""].filter(Boolean).join(" "),style:{width:t,transform:er.Transform.toString(h),transition:b,zIndex:f?10:_?3:void 0,..._?{left:o}:{}},children:[(0,C.jsxs)("div",{className:"nb-th-inner",children:[(0,C.jsx)("span",{ref:v,...m,...g,className:"nb-col-drag-handle",title:u("tooltip_drag_reorder"),children:"\u283F"}),n,s&&(0,C.jsxs)("button",{className:l?"nb-sort-btn nb-sort-btn--sorted":"nb-sort-btn",onClick:y=>{y.stopPropagation(),s()},title:l==="asc"?u("sort_asc_title"):l==="desc"?u("sort_desc_title"):u("sort_none_title"),children:[(0,C.jsx)("span",{className:l==="asc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2303"}),(0,C.jsx)("span",{className:l==="desc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2304"})]}),(0,C.jsx)("span",{className:"nb-col-drag-spacer","aria-hidden":"true"}),i&&(0,C.jsx)("button",{className:`nb-pin-btn${a?" nb-pin-btn--active":""}`,onClick:y=>{y.stopPropagation(),i()},title:a?u("tooltip_unpin_column"):u("tooltip_pin_column"),children:"\u{1F4CC}"})]}),d&&(0,C.jsx)(ub,{onResize:d,onAutoFit:p})]})}function jS({filter:e,isActive:t,onToggle:n,onRemove:o,btnRef:r}){let{attributes:a,listeners:i,setNodeRef:l,setActivatorNodeRef:s,transform:d,transition:p,isDragging:g}=Em({id:e.id});return(0,C.jsxs)("div",{ref:l,style:{transform:er.Transform.toString(d),transition:p,opacity:g?.4:1},className:"nb-filter-pill-sortable",children:[(0,C.jsx)("span",{ref:s,...i,...a,className:"nb-pill-drag-handle",title:u("tooltip_drag_reorder"),children:(0,C.jsxs)("svg",{width:"8",height:"14",viewBox:"0 0 8 14",fill:"currentColor",children:[(0,C.jsx)("circle",{cx:"2",cy:"2.5",r:"1.2"}),(0,C.jsx)("circle",{cx:"6",cy:"2.5",r:"1.2"}),(0,C.jsx)("circle",{cx:"2",cy:"7",r:"1.2"}),(0,C.jsx)("circle",{cx:"6",cy:"7",r:"1.2"}),(0,C.jsx)("circle",{cx:"2",cy:"11.5",r:"1.2"}),(0,C.jsx)("circle",{cx:"6",cy:"11.5",r:"1.2"})]})}),(0,C.jsxs)("button",{ref:r,className:`nb-filter-pill ${t?"nb-filter-pill--active":""}`,onClick:n,children:[(0,C.jsx)("span",{className:"nb-filter-pill-icon",children:e.icon}),(0,C.jsx)("span",{className:"nb-filter-pill-name",children:e.columnName}),(0,C.jsx)("span",{className:"nb-filter-pill-remove",onClick:m=>{m.stopPropagation(),o()},title:u("tooltip_remove_filter"),children:"\xD7"})]})]})}var HS=["number","formula"];function US({colType:e,current:t,onSelect:n,anchorEl:o}){let r=o?.getBoundingClientRect(),a=r?r.bottom+window.scrollY:0,i=r?r.left+window.scrollX:0,l=HS.includes(e),s=[{type:"none",label:u("agg_none")},{type:"count",label:u("agg_count")},{type:"count_values",label:u("agg_count_values")},{type:"sum",label:u("agg_sum"),numericOnly:!0},{type:"avg",label:u("agg_avg"),numericOnly:!0},{type:"min",label:u("agg_min"),numericOnly:!0},{type:"max",label:u("agg_max"),numericOnly:!0}];return(0,C.jsx)("div",{className:"nb-agg-dropdown",style:{position:"absolute",top:a,left:i,zIndex:9999},children:s.filter(d=>!d.numericOnly||l).map(d=>(0,C.jsx)("button",{className:`nb-menu-item ${t===d.type?"nb-menu-item--active":""}`,onClick:()=>n(d.type),children:d.label},d.type))})}function Am({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{status:a,trackSave:i}=Br(),l=(0,le.useRef)(null),[s,d]=(0,le.useState)(new Map),[p,g]=(0,le.useState)(null),m=(0,le.useCallback)((w,L)=>{if(l.current){let U=L.findIndex(he=>he._file.path===l.current);U!==-1&&L.push(...L.splice(U,1)),l.current=null}let M=new Map;for(let U of w.schema.filter(he=>he.type==="relation"&&he.refDatabasePath)){let he=r.vault.getFileByPath(U.refDatabasePath);if(!he)continue;let Ze=t.getNotesInDatabase(he),tt=new Set;for(let Ln of Ze){let nn=Ln.basename.trim();nn&&tt.add(nn)}M.set(U.id,Array.from(tt).sort())}d(M),g((n??w.views[0])?.pinnedColumnId??null)},[r,t,n]),{rows:c,config:v,loading:h,activeFilters:b,setActiveFilters:f}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n?.includeSubfolders,externalView:n??to,onLoaded:m}),[_,y]=(0,le.useState)([]),[k,F]=(0,le.useState)(Er);(0,le.useEffect)(()=>{y(c)},[c]),(0,le.useEffect)(()=>{F(v)},[v]);let[T,V]=(0,le.useState)([]),[j,re]=(0,le.useState)(!1),ne=(0,le.useRef)(null),[de,ve]=(0,le.useState)(null),Ce=(0,le.useRef)(null),[Oe,q]=(0,le.useState)(""),W=Hn(Oe,200),[O,Q]=(0,le.useState)(null),[ce,Ne]=(0,le.useState)(!1),Be=(0,le.useRef)(null),[$e,nt]=(0,le.useState)({}),[et,fe]=(0,le.useState)(!1),[Me,Ae]=(0,le.useState)(null),He=(0,le.useRef)(null),[ze,xe]=(0,le.useState)(!1),[rt,K]=(0,le.useState)(null),D=(0,le.useRef)(null),ie=(0,le.useRef)(null),me=(0,le.useRef)(null),[se,Ve]=(0,le.useState)(!1),ge=(0,le.useRef)(null),Re=(0,le.useRef)(null),yt=(0,le.useRef)(null),Tt=(0,le.useRef)(null),[Pt,P]=(0,le.useState)(!1),ke=(0,le.useRef)(null),[A,ee]=(0,le.useState)(null),Le=(0,le.useRef)({}),Te=(0,le.useRef)(null),[vt,dn]=(0,le.useState)(null),[pt,pn]=(0,le.useState)(null),en=(0,le.useRef)({}),[tn,x]=(0,le.useState)(!1),N=(0,le.useRef)(null),X=(0,le.useRef)(null),[ue,oe]=(0,le.useState)(new Set),[te]=(0,le.useState)(!0),[S,Z]=(0,le.useState)(null),[be,we]=(0,le.useState)(null),De=Sv(km(vi,{activationConstraint:{distance:8}}),km(Ol,{activationConstraint:{delay:200,tolerance:5}})),[Ye,We]=(0,le.useState)(n);(0,le.useEffect)(()=>{n&&We(n)},[n?.id]);let H=(n?Ye:void 0)??k.views[0]??to;(0,le.useEffect)(()=>{V(H.sorts.map(w=>({id:w.columnId,desc:w.direction==="desc"})))},[H.id]);let je=(0,le.useMemo)(()=>{let w=n?H.columnOrder:void 0;if(!w||w.length===0)return k.schema;let L=new Map(k.schema.map(he=>[he.id,he])),M=w.flatMap(he=>L.has(he)?[L.get(he)]:[]),U=k.schema.filter(he=>!w.includes(he.id));return[...M,...U]},[n,H.columnOrder,k.schema]),Pe=(0,le.useCallback)(async w=>{if(o)We(w),await o(w);else{if(!e)return;let L={...k,views:k.views.map((M,U)=>U===0?w:M)};F(L),await t.writeConfig(e,L)}},[o,k,e,t]),mt=(0,le.useRef)(_),lt=(0,le.useCallback)(async(w,L,M)=>{let U=mt.current[w];if(!U)return;y(Ze=>Ze.map(tt=>tt._file.path===U._file.path?{...tt,[L]:M}:tt)),await i((async()=>{if(L==="_title")await t.renameNote(U._file,String(M));else{await t.updateNoteField(U._file,L,M,U._inlineFields);let Ze=k.schema.find(tt=>tt.id===L);if(Ze?.type==="relation"&&Ze.pairedColumnId){let tt=U[L],Ln=Array.isArray(tt)?tt.map(Ft=>`${Ft}`):typeof tt=="string"&&tt!==""?[tt]:[],nn=Array.isArray(M)?M.map(Ft=>`${Ft}`):typeof M=="string"&&M!==""?[M]:[];await t.syncTwoWayRelation(U._file,Ze,Ln,nn)}}})())},[t,k.schema,i]),bt=(0,le.useCallback)(async w=>{if(!e)return;let L={...k,schema:w};F(L),await t.writeConfig(e,L)},[e,k,t]),$t=(0,le.useCallback)((w,L)=>{let M=k.schema.find(he=>he.id===w);if(!M)return!0;let U=FS(_,w,M.type,L);return U?(new lb.Notice(`${u("validate_type_change_prefix")}${U}`,6e3),!1):!0},[k.schema,_]),Bt=(0,le.useCallback)(async w=>{let L=p===w?null:w;g(L),await Pe({...H,pinnedColumnId:L})},[p,Pe,H]),Dt=(0,le.useCallback)(async w=>{V(w.map(L=>({id:L.columnId,desc:L.direction==="desc"}))),await Pe({...H,sorts:w})},[H,Pe]),ln=(0,le.useCallback)(w=>{let L=H.sorts.find(U=>U.columnId===w),M;L?L.direction==="asc"?M=H.sorts.map(U=>U.columnId===w?{...U,direction:"desc"}:U):M=H.sorts.filter(U=>U.columnId!==w):M=[...H.sorts,{columnId:w,direction:"asc"}],Dt(M)},[H.sorts,Dt]),qn=(0,le.useCallback)(async(w,L)=>{await Pe({...H,columnWidths:{...H.columnWidths,[w]:L}})},[H,Pe]),Ni=(0,le.useCallback)(async w=>{let L=yt.current;if(!L)return;let M=60;L.querySelectorAll(`[data-col-id="${w}"]`).forEach(U=>{M=Math.max(M,U.scrollWidth)}),await qn(w,M+16)},[qn]),xa=(0,le.useMemo)(()=>{let w=new Map,L=40,M=H.columnWidths._title??260;if(w.set("_select",{left:0,isLast:!1}),!p||(w.set("_title",{left:L,isLast:p==="_title"}),p==="_title"))return w;let U=L+M;for(let he of k.schema.filter(Ze=>Ze.visible)){let Ze=H.columnWidths[he.id]??he.width??150;if(w.set(he.id,{left:U,isLast:he.id===p}),U+=Ze,he.id===p)break}return w},[p,k]),xi=(0,le.useCallback)(async(w,L)=>{if(!e)return;let M=await t.renameColumn(e,k,w,L);F(M)},[e,k,t]),tr=(0,le.useMemo)(()=>{let w=[];if(w.push({id:"_select",size:40,enableSorting:!1,enableColumnFilter:!1,header:()=>null,cell:({row:M})=>(0,C.jsx)("div",{className:"nb-cell-checkbox-wrapper",onClick:M.getToggleSelectedHandler(),children:(0,C.jsx)("div",{className:`nb-cell-checkbox-custom${M.getIsSelected()?" nb-cell-checkbox-custom--checked":""}`,children:M.getIsSelected()&&(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-cell-check-icon",children:(0,C.jsx)("polyline",{points:"20 6 9 17 4 12"})})})})}),H.includeSubfolders&&!H.hiddenColumns.includes("_folder")){let M=e?.parent?.path??"",U=M.split("/").pop()||M||"";w.push({id:"_folder",accessorFn:he=>{let Ze=he._file.parent?.path??"";return Ze.length>M.length?Ze.slice(M.length+1):U},size:H.columnWidths._folder??150,enableColumnFilter:!0,enableSorting:!0,sortingFn:"text",header:()=>(0,C.jsx)("div",{className:"nb-header-title",children:(0,C.jsx)("span",{children:u("folder_column")})}),cell:he=>(0,C.jsxs)("span",{className:"nb-folder-path nb-folder-path--cell",children:[he.getValue(),"/"]})})}w.push({id:"_title",accessorFn:M=>M._title,size:H.columnWidths._title??260,enableColumnFilter:!0,enableSorting:!0,sortingFn:"text",header:({column:M})=>{let U=M.getIsSorted();return(0,C.jsxs)("div",{className:"nb-header-title",children:[(0,C.jsx)("span",{children:"\u{1F4C4}"}),(0,C.jsx)("span",{children:u("name_column")}),(0,C.jsxs)("button",{className:`nb-sort-btn ${U?"nb-sort-btn--sorted":""}`,onClick:he=>{he.stopPropagation(),ln("_title")},title:U==="asc"?u("sort_asc_title"):U==="desc"?u("sort_desc_title"):u("sort_none_title"),children:[(0,C.jsx)("span",{className:U==="asc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2303"}),(0,C.jsx)("span",{className:U==="desc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2304"})]})]})},cell:M=>{let U=e?.parent?.path??"",he=M.row.original._file.parent?.path??"",Ze=H.includeSubfolders&&he.length>U.length?he.slice(U.length+1):"";return(0,C.jsxs)("div",{children:[(0,C.jsx)(Mm,{col:{id:"_title",name:"Nome",type:"title",visible:!0},value:M.getValue(),rowIndex:M.row.index,columnId:"_title",file:M.row.original._file}),Ze&&(0,C.jsx)("div",{className:"nb-folder-path",children:Ze})]})}});let L=je.filter(M=>M.visible&&!H.hiddenColumns.includes(M.id));for(let M of L)w.push({id:M.id,accessorFn:U=>U[M.id],size:H.columnWidths[M.id]??M.width??150,enableColumnFilter:M.type!=="formula"&&M.type!=="lookup"&&M.type!=="relation",enableSorting:M.type!=="formula"&&M.type!=="lookup"&&M.type!=="relation"&&M.type!=="multiselect",sortingFn:zS(M.type),header:()=>(0,C.jsx)(Yv,{col:M,schema:k.schema,onUpdateSchema:bt,onRenameColumn:xi,onChangeType:U=>$t(M.id,U),manager:t,dbFile:e}),cell:U=>(0,C.jsx)(Mm,{col:M,value:U.getValue(),rowIndex:U.row.index,columnId:M.id})});return w},[k,je,H,bt,xi,$t,t,e]),vo=(0,le.useMemo)(()=>{if(b.length===0)return _;let w=[],L=[];for(let M of b)M.conjunction==="or"&&L.length>0&&(w.push(L),L=[]),L.push(M);return L.length>0&&w.push(L),_.filter(M=>w.some(U=>U.every(he=>$S(M,he))))},[_,b]),Pn=(0,le.useMemo)(()=>ec(k.schema,e?.path??""),[k.schema,e?.path]),nr=(0,le.useMemo)(()=>Pn?tc(vo,Pn.id,H.sorts,ue,te):null,[vo,Pn,H.sorts,ue,te]),Ra=!Pn&&T.length===0&&(H.rowOrder?.length??0)>0,or=(0,le.useMemo)(()=>nr?nr.map(w=>w.row):Ra?$h(vo,H.rowOrder):vo,[nr,vo,Ra,H.rowOrder]),jl=(0,le.useMemo)(()=>{if(!nr)return null;let w=new Map;for(let L of nr)w.set(L.row._file.path,L);return w},[nr]),Ea=t.pageSize>0,Ri=(0,le.useMemo)(()=>{if(!Ea||!W)return or;let w=W.toLowerCase();return or.filter(L=>Object.entries(L).some(([M,U])=>M==="_file"||M==="_inlineFields"||U==null?!1:typeof U=="string"?U.toLowerCase().includes(w):typeof U=="number"||typeof U=="boolean"?String(U).toLowerCase().includes(w):Array.isArray(U)?U.some(he=>typeof he=="string"&&he.toLowerCase().includes(w)):!1))},[or,W,Ea]),{pageItems:Hl,currentPage:Kn,totalPages:Ul,setPage:pc}=wi(Ri,t.pageSize);mt.current=Hl;let jt=ov({data:Hl,columns:tr,state:{sorting:T,globalFilter:Ea?"":W,rowSelection:$e},onSortingChange:V,onGlobalFilterChange:q,onRowSelectionChange:nt,enableRowSelection:!0,getCoreRowModel:ev(),getSortedRowModel:Pn||Ra?void 0:nv(),getFilteredRowModel:Ea?void 0:tv(),manualSorting:!!Pn||Ra,meta:{updateCell:lt,editingCell:O,setEditingCell:Q,schema:k.schema}}),mc=!Pn&&T.length===0,Wl=(0,le.useCallback)(w=>{Z(w)},[]),Ei=(0,le.useCallback)(w=>{we(w)},[]),fc=(0,le.useCallback)(()=>{Z(null),we(null)},[]),gc=(0,le.useCallback)(w=>{if(!S||S===w){Z(null),we(null);return}let L=or.map(tt=>tt._file.path),M=L.indexOf(S),U=L.indexOf(w);if(M===-1||U===-1)return;let he=[...L],[Ze]=he.splice(M,1);he.splice(U,0,Ze),Pe({...H,rowOrder:he}),Z(null),we(null)},[S,or,H,Pe]),Gl=async()=>{if(!e)return;let w=await t.createNoteWithTemplate(e);l.current=w.path},ql=(0,le.useCallback)(async w=>{if(!e||!Pn)return;let L=await t.createNoteWithTemplate(e,{[Pn.id]:[w]});l.current=L.path},[e,Pn,t]),_c=(0,le.useCallback)(w=>{oe(L=>{let M=new Set(L);return M.has(w)?M.delete(w):M.add(w),M})},[]);(0,le.useEffect)(()=>{if(!ce)return;let w=L=>{Re.current?.contains(L.target)||Be.current&&!Be.current.contains(L.target)&&Ne(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[ce]),(0,le.useEffect)(()=>{if(!et)return;let w=L=>{Re.current?.contains(L.target)||D.current&&!D.current.contains(L.target)&&fe(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[et]),(0,le.useEffect)(()=>{if(!ze)return;let w=L=>{Re.current?.contains(L.target)||ie.current&&!ie.current.contains(L.target)&&xe(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[ze]),(0,le.useEffect)(()=>{if(!rt)return;let w=L=>{let M=L.target,U=activeDocument.querySelector(".nb-agg-dropdown"),he=activeDocument.querySelector(`[data-agg-col="${rt}"]`);!U?.contains(M)&&!he?.contains(M)&&K(null)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[rt]),(0,le.useEffect)(()=>{if(!j)return;let w=L=>{Ce.current?.contains(L.target)||ne.current&&!ne.current.contains(L.target)&&re(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[j]);let rr=(0,le.useCallback)(()=>jt.getSelectedRowModel().rows.map(w=>w.original._file),[jt]),Kl=(0,le.useCallback)(async()=>{let w=rr();w.length!==0&&(await t.deleteNotes(w),nt({}),fe(!1))},[rr,t]),Di=(0,le.useCallback)(()=>{let w=rr();if(w.length===0)return;new Zu(r,M=>{t.moveNotes(w,M.path),nt({})}).open(),fe(!1)},[r,rr,t]),Yl=(0,le.useCallback)(async()=>{let w=rr();w.length!==0&&(await t.duplicateNotes(w),nt({}),fe(!1))},[rr,t]),Fi=(0,le.useCallback)(()=>{let w=je.filter(nn=>nn.visible&&!H.hiddenColumns.includes(nn.id)),L=nn=>{let Ft=nn==null?"":ht(nn);return Ft.includes(",")||Ft.includes('"')||Ft.includes(` -`)?'"'+Ft.replace(/"/g,'""')+'"':Ft},M=["Nome",...w.map(nn=>nn.name)],U=vo.map(nn=>[nn._title,...w.map(Fo=>{let Xt=nn[Fo.id];return Array.isArray(Xt)?Xt.join(";"):Xt})].map(L).join(",")),he=[M.join(","),...U].join(` -`),Ze=new Blob([he],{type:"text/csv;charset=utf-8;"}),tt=URL.createObjectURL(Ze),Ln=createEl("a");Ln.href=tt,Ln.download=(e?.parent?.name||r.vault.getName()||"database")+".csv",Ln.click(),URL.revokeObjectURL(tt),fe(!1)},[je,H.hiddenColumns,vo,e,r]),Xl=(0,le.useCallback)(async w=>{let L=w.target.files?.[0];if(!L||!e)return;let U=(await L.text()).split(/\r?\n/).filter(Ft=>Ft.trim()!=="");if(U.length<2)return;let he=Ft=>{let Fo=[],Xt="",Vo=!1;for(let Bo=0;BoFt.trim().toLowerCase()),tt=new Map,Ln=new Set;Ze.forEach((Ft,Fo)=>{if(Ft==="nome"||Ft==="title"||Ft==="name")return;let Xt=k.schema.find(Vo=>Vo.name.toLowerCase()===Ft);Xt&&!Ln.has(Xt.id)&&(tt.set(Fo,{id:Xt.id,type:Xt.type}),Ln.add(Xt.id))});let nn=Ze.findIndex(Ft=>Ft==="nome"||Ft==="title"||Ft==="name");for(let Ft of U.slice(1)){let Fo=he(Ft),Xt=nn>=0?Fo[nn]?.trim():"";if(Xt&&_.some(Bo=>Bo._title===Xt))continue;let Vo=await t.createNote(e);Xt&&await t.renameNote(Vo,Xt);for(let[Bo,Da]of tt){let kc=Fo[Bo]?.trim()??"";if(!kc)continue;let Qb=Da.type==="multiselect"?kc.split(";").map(Zb=>Zb.trim()):kc;await t.updateNoteField(Vo,Da.id,Qb)}}w.target.value="",fe(!1)},[e,k.schema,t,r]);(0,le.useEffect)(()=>{if(!Pt)return;let w=L=>{Re.current?.contains(L.target)||ke.current&&!ke.current.contains(L.target)&&P(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[Pt]),(0,le.useEffect)(()=>{if(!se)return;let w=L=>{ge.current&&!ge.current.contains(L.target)&&Ve(!1)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[se]),(0,le.useEffect)(()=>{if(!A){dn(null);return}let w=Le.current[A];if(!w)return;let L=w.getBoundingClientRect();dn({top:L.bottom+6,left:L.left})},[A]),(0,le.useEffect)(()=>{if(!A)return;let w=L=>{let M=Le.current[A],U=Te.current,he=M&&M.contains(L.target),Ze=U&&U.contains(L.target);!he&&!Ze&&ee(null)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[A]),(0,le.useEffect)(()=>{if(!pt)return;let w=L=>{let M=en.current[pt];M&&!M.contains(L.target)&&pn(null)};return activeDocument.addEventListener("mousedown",w),()=>activeDocument.removeEventListener("mousedown",w)},[pt]);let Ur=MS,ar=(0,le.useCallback)(async w=>{let L=w.map(M=>({id:M.id,columnId:M.columnId,operator:M.operator,value:M.value,conjunction:M.conjunction}));await Pe({...H,activePills:L})},[Pe,H]),hc=w=>{let{active:L,over:M}=w;if(!M||L.id===M.id)return;let U=b.findIndex(tt=>tt.id===L.id),he=b.findIndex(tt=>tt.id===M.id),Ze=bi(b,U,he);f(Ze),ar(Ze)},Wr=(w,L,M,U)=>{let he=crypto.randomUUID(),Ze=[...b,{id:he,columnId:w,columnName:L,columnType:U,icon:M,operator:OS(U),value:"",conjunction:"and"}];f(Ze),ar(Ze),P(!1)},Mi=w=>{let L=b.filter(M=>M.id!==w);f(L),ar(L),A===w&&ee(null),pt===w&&pn(null)},vc=async w=>{await Pe({...H,rowHeight:w}),xe(!1)},bc=async()=>{await Pe({...H,wrapText:!H.wrapText})},Ql=async()=>{await Pe({...H,includeSubfolders:!H.includeSubfolders})},yc=async(w,L)=>{let M={...H.aggregations??{},[w]:L};await Pe({...H,aggregations:M}),K(null)},wc=(w,L)=>{if(L==="none")return"";let M=vo.map(tt=>w==="_title"?tt._title:tt[w]),U=vo.length;if(L==="count")return`${U} ${U===1?u("row_singular").toLowerCase():u("row_plural").toLowerCase()}`;let he=M.filter(tt=>tt!=null&&String(tt).trim()!=="");if(L==="count_values")return`${he.length} preenchido${he.length!==1?"s":""}`;let Ze=he.map(tt=>parseFloat(String(tt))).filter(tt=>!isNaN(tt));return Ze.length===0?"\u2014":L==="sum"?String(Math.round(Ze.reduce((tt,Ln)=>tt+Ln,0)*1e10)/1e10):L==="avg"?String(Math.round(Ze.reduce((tt,Ln)=>tt+Ln,0)/Ze.length*1e10)/1e10):L==="min"?String(Math.min(...Ze)):L==="max"?String(Math.max(...Ze)):""},Cc={none:u("agg_none"),count:"",count_values:"",sum:u("agg_sum"),avg:u("agg_avg"),min:u("agg_min"),max:u("agg_max")},Gr=(w,L,M)=>{let U=b.map(he=>he.id===w?{...he,operator:L,value:M}:he);f(U),ar(U)},Zl=w=>{let L=b.map(M=>M.id===w?{...M,conjunction:M.conjunction==="and"?"or":"and"}:M);f(L),ar(L)},R=b.length>=3||b.some(w=>w.columnName.length>10);(0,le.useEffect)(()=>{R||(x(!1),X.current&&window.clearTimeout(X.current))},[R]),(0,le.useEffect)(()=>()=>{X.current&&window.clearTimeout(X.current)},[]);let Ee=()=>{X.current&&(window.clearTimeout(X.current),X.current=null)},Se=()=>{Ee(),X.current=window.setTimeout(()=>x(!1),6e3)},ft=()=>{x(!0),Se(),window.requestAnimationFrame(()=>N.current?.focus())},wt=()=>{Ee(),x(!1)},ir=(0,le.useCallback)(async w=>{if(n){let L=H.hiddenColumns.includes(w)?H.hiddenColumns.filter(M=>M!==w):[...H.hiddenColumns,w];await Pe({...H,hiddenColumns:L})}else{let L=k.schema.map(M=>M.id===w?{...M,visible:!M.visible}:M);await bt(L)}},[n,H,Pe,k.schema,bt]),Kb=(0,le.useCallback)(async w=>{let{active:L,over:M}=w;if(!M||L.id===M.id)return;let U=je.findIndex(Ze=>Ze.id===L.id),he=je.findIndex(Ze=>Ze.id===M.id);if(!(U===-1||he===-1))if(n){let Ze=bi(je,U,he).map(tt=>tt.id);await Pe({...H,columnOrder:Ze})}else await bt(bi(k.schema,U,he))},[je,n,H,Pe,k.schema,bt]),Yb=async()=>{let L={id:`campo_${Date.now()}`,name:u("new_field"),type:"text",visible:!0,width:150};await bt([...k.schema,L])},Jl=kn();if(!e)return(0,C.jsxs)("div",{className:"nb-empty-state",children:[(0,C.jsx)("p",{children:u("no_database_open")}),(0,C.jsx)("p",{children:u("no_database_hint")})]});if(h)return(0,C.jsx)("div",{className:"nb-loading",children:u("loading")});let Ti=jt.getRowModel().rows,Pi=w=>{w!=="fields"&&Ne(!1),w!=="actions"&&fe(!1),w!=="filter"&&P(!1),w!=="sort"&&re(!1)},Xb=Jl?(0,C.jsxs)(Gn,{actionBarRef:Re,search:{value:Oe,onChange:q},actions:[{id:"fields",label:u("fields"),icon:(0,C.jsx)(Sn,{}),active:ce,badge:k.schema.filter(w=>!w.visible).length||void 0,onClick:()=>{Pi("fields"),Ne(w=>!w)}},{id:"actions",label:u("actions"),icon:(0,C.jsx)(nb,{}),active:et,badge:jt.getSelectedRowModel().rows.length||void 0,onClick:()=>{Pi("actions"),fe(w=>!w)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,C.jsx)(Wn,{}),active:!!H.includeSubfolders,onClick:()=>{Pi(),Ql()}},{id:"sort",label:u("sort"),icon:(0,C.jsx)(_o,{}),active:H.sorts.length>0,badge:H.sorts.length||void 0,onClick:()=>{Pi("sort"),!j&&Ce.current&&ve(Ce.current.getBoundingClientRect()),re(w=>!w)}},{id:"filter",label:u("filter"),icon:(0,C.jsx)(Un,{}),active:Pt,badge:b.length||void 0,onClick:()=>{Pi("filter"),P(w=>!w)}}],rowCount:Ti.length,rowCountLabel:Ti.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:b,onFilterUpdate:Gr,onFilterRemove:Mi,onConjunctionToggle:Zl,children:[(0,C.jsx)(ct,{open:ce,onClose:()=>Ne(!1),title:u("fields"),children:k.schema.map(w=>(0,C.jsxs)("label",{className:"nb-field-row",children:[(0,C.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:n?w.visible&&!H.hiddenColumns.includes(w.id):w.visible,onChange:()=>{ir(w.id)}}),(0,C.jsx)("span",{className:"nb-field-icon",children:Ur(w.type)}),(0,C.jsx)("span",{className:"nb-field-name",children:w.name})]},w.id))}),(0,C.jsxs)(ct,{open:et,onClose:()=>fe(!1),title:u("actions"),children:[(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Kl()},disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,C.jsx)("span",{children:u("delete_selected")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:Di,disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C1}"}),(0,C.jsx)("span",{children:u("move_selected")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Yl()},disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,C.jsx)("span",{children:u("duplicate_selected")})]}),(0,C.jsx)("div",{className:"nb-menu-separator"}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:Fi,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B07"}),(0,C.jsx)("span",{children:u("export_csv")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>me.current?.click(),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B06"}),(0,C.jsx)("span",{children:u("import_csv")})]}),(0,C.jsx)("input",{ref:me,type:"file",accept:".csv",style:{display:"none"},onChange:w=>{Xl(w)}})]}),(0,C.jsxs)(ct,{open:Pt,onClose:()=>P(!1),title:u("filter"),children:[(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>Wr("_title","Nome","\u{1F4C4}","title"),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,C.jsx)("span",{children:u("name_column")})]}),k.schema.map(w=>(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>Wr(w.id,w.name,Ur(w.type),w.type),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:Ur(w.type)}),(0,C.jsx)("span",{children:w.name})]},w.id))]}),(0,C.jsxs)(ct,{open:j,onClose:()=>re(!1),title:u("sort"),children:[H.sorts.length===0&&(0,C.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),H.sorts.map((w,L)=>{let M=w.columnId==="_title"?"Nome":k.schema.find(U=>U.id===w.columnId)?.name??w.columnId;return(0,C.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,C.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,C.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let U=[...H.sorts];L>0&&([U[L],U[L-1]]=[U[L-1],U[L]],Dt(U))},disabled:L===0,children:"\u2191"}),(0,C.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let U=[...H.sorts];L{Dt(H.sorts.map(U=>U.columnId===w.columnId?{...U,direction:U.direction==="asc"?"desc":"asc"}:U))},children:w.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,C.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{Dt(H.sorts.filter(U=>U.columnId!==w.columnId))},children:"\xD7"})]},w.columnId)}),(()=>{let w=k.schema.filter(U=>U.type!=="formula"&&U.type!=="lookup"&&U.type!=="relation"&&U.type!=="multiselect"),L=new Set(H.sorts.map(U=>U.columnId)),M=[...L.has("_title")?[]:[{id:"_title",name:"Nome"}],...w.filter(U=>!L.has(U.id)).map(U=>({id:U.id,name:U.name}))];return M.length===0?null:(0,C.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:U=>{U.target.value&&(Dt([...H.sorts,{columnId:U.target.value,direction:"asc"}]),U.target.value="")},children:[(0,C.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),M.map(U=>(0,C.jsx)("option",{value:U.id,children:U.name},U.id))]})})()]})]}):null;return(0,C.jsxs)("div",{className:"nb-container",children:[Xb||(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"nb-toolbar",children:[(0,C.jsxs)("div",{className:`nb-search-container${R?tn?" nb-search-container--expanded":" nb-search-container--collapsed":""}`,children:[R&&(0,C.jsx)("button",{className:"nb-search-icon-btn",onClick:ft,title:u("tooltip_search"),children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,C.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),(0,C.jsx)("input",{ref:N,className:"nb-search",type:"text",placeholder:u("relation_search_placeholder"),value:Oe,onChange:w=>{q(w.target.value),R&&tn&&Se()},onKeyDown:w=>{w.key==="Enter"&&R&&tn&&wt()},onBlur:()=>{R&&tn&&wt()}})]}),(0,C.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ie,children:[(0,C.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${ze?"nb-toolbar-btn--active":""}`,onClick:()=>xe(w=>!w),title:u("row_height_label"),children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("line",{x1:"21",y1:"10",x2:"3",y2:"10"}),(0,C.jsx)("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),(0,C.jsx)("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),(0,C.jsx)("line",{x1:"21",y1:"18",x2:"3",y2:"18"})]})}),ze&&(0,C.jsxs)("div",{className:"nb-fields-dropdown nb-rowheight-dropdown",children:[(0,C.jsx)("div",{className:"nb-fields-dropdown-label",children:u("row_height_label")}),["compact","medium","tall"].map(w=>(0,C.jsxs)("button",{className:`nb-menu-item ${(H.rowHeight??"medium")===w?"nb-menu-item--active":""}`,onClick:()=>{vc(w)},children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:w==="compact"?"\u25A4":w==="medium"?"\u25A5":"\u25A6"}),(0,C.jsx)("span",{children:w==="compact"?u("height_compact"):w==="medium"?u("height_medium"):u("height_tall")})]},w))]})]}),(0,C.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${H.wrapText?"nb-toolbar-btn--active":""}`,onClick:()=>{bc()},title:u("tooltip_wrap_text"),children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("path",{d:"M3 18h12a3 3 0 0 0 0-6h-3"}),(0,C.jsx)("polyline",{points:"9 15 6 18 9 21"})]})}),(0,C.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${H.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{Ql()},title:u("tooltip_include_subfolders"),children:(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,C.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,C.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,C.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,C.jsxs)("button",{className:`nb-toolbar-btn ${ce?"nb-toolbar-btn--active":""}`,onClick:()=>Ne(w=>!w),title:u("tooltip_manage_fields"),children:[u("fields")," ",k.schema.some(w=>!w.visible)&&(0,C.jsx)("span",{className:"nb-hidden-badge",children:k.schema.filter(w=>!w.visible).length})]}),ce&&(0,C.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,C.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),k.schema.map(w=>(0,C.jsxs)("label",{className:"nb-field-row",children:[(0,C.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:n?w.visible&&!H.hiddenColumns.includes(w.id):w.visible,onChange:()=>{ir(w.id)}}),(0,C.jsx)("span",{className:"nb-field-icon",children:w.type==="text"?"Aa":w.type==="number"?"#":w.type==="select"?"\u25C9":w.type==="multiselect"?"\u25C8":w.type==="date"?"\u{1F4C5}":w.type==="checkbox"?"\u2611":w.type==="lookup"?"\u2197":w.type==="relation"?"\u{1F517}":w.type==="formula"?"\u0192":"\xB7"}),(0,C.jsx)("span",{className:"nb-field-name",children:w.name})]},w.id))]})]}),(0,C.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:D,children:[(0,C.jsxs)("button",{className:`nb-toolbar-btn ${et?"nb-toolbar-btn--active":""}`,onClick:()=>fe(w=>!w),title:u("tooltip_batch_actions"),children:[u("actions"),jt.getSelectedRowModel().rows.length>0&&(0,C.jsx)("span",{className:"nb-hidden-badge",children:jt.getSelectedRowModel().rows.length})]}),et&&(0,C.jsxs)("div",{className:"nb-fields-dropdown nb-actions-dropdown",children:[(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Kl()},disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,C.jsx)("span",{children:u("delete_selected")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:Di,disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C1}"}),(0,C.jsx)("span",{children:u("move_selected")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Yl()},disabled:jt.getSelectedRowModel().rows.length===0,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,C.jsx)("span",{children:u("duplicate_selected")})]}),(0,C.jsx)("div",{className:"nb-menu-separator"}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:Fi,children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B07"}),(0,C.jsx)("span",{children:u("export_csv")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>me.current?.click(),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B06"}),(0,C.jsx)("span",{children:u("import_csv")})]}),(0,C.jsx)("input",{ref:me,type:"file",accept:".csv",style:{display:"none"},onChange:w=>{Xl(w)}})]})]}),(0,C.jsxs)("span",{className:"nb-row-count",children:[Ti.length," ",Ti.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,C.jsx)($r,{status:a}),(0,C.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ke,style:{marginLeft:"auto"},children:[(0,C.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${Pt?"nb-toolbar-btn--active":""}`,onClick:()=>P(w=>!w),title:u("filters"),children:[(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,C.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),b.length>0&&(0,C.jsx)("span",{className:"nb-hidden-badge",children:b.length})]}),Pt&&(0,C.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,C.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>Wr("_title","Nome","\u{1F4C4}","title"),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,C.jsx)("span",{children:u("name_column")})]}),k.schema.map(w=>(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>Wr(w.id,w.name,Ur(w.type),w.type),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:Ur(w.type)}),(0,C.jsx)("span",{children:w.name})]},w.id)),(0,C.jsx)("div",{className:"nb-menu-separator"}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>P(!1),children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u26A1"}),(0,C.jsx)("span",{children:u("add_filter_advanced")})]})]})]}),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("button",{ref:Ce,className:`nb-toolbar-btn${H.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!j&&Ce.current&&ve(Ce.current.getBoundingClientRect()),re(w=>!w)},children:[(0,C.jsx)("span",{children:u("sort")}),H.sorts.length>0&&(0,C.jsx)("span",{className:"nb-hidden-badge",children:H.sorts.length})]}),j&&de&&(0,C.jsx)(VS,{sorts:H.sorts,schema:k.schema,onSortChange:w=>{Dt(w)},onClose:()=>re(!1),anchorRect:de,panelRef:ne})]}),(0,C.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ge,children:[(0,C.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(H.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>Ve(w=>!w),title:u("conditional_formatting"),children:[(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,C.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,C.jsx)("path",{d:"M3 9h18"}),(0,C.jsx)("path",{d:"M3 15h18"}),(0,C.jsx)("path",{d:"M9 3v18"})]}),(H.conditionalFormats?.length??0)>0&&(0,C.jsx)("span",{className:"nb-hidden-badge",children:H.conditionalFormats.length})]}),se&&(0,C.jsx)(zr,{rules:H.conditionalFormats??[],schema:k.schema,onChange:w=>{Pe({...H,conditionalFormats:w})},onClose:()=>Ve(!1)})]})]}),b.length>0&&!(R&&tn)&&(0,C.jsxs)("div",{className:`nb-pills-row${H.filtersCollapsed?" nb-filter-pills-row--collapsed":""}`,children:[!H.filtersCollapsed&&(0,C.jsx)(Nm,{sensors:De,collisionDetection:Sm,onDragStart:()=>ee(null),onDragEnd:hc,children:(0,C.jsx)(Rm,{items:b.map(w=>w.id),strategy:xm,children:b.map((w,L)=>(0,C.jsxs)(le.Fragment,{children:[L>0&&(0,C.jsx)("button",{className:`nb-pill-conjunction ${w.conjunction==="or"?"nb-pill-conjunction--or":""}`,onClick:()=>Zl(w.id),title:u("tooltip_toggle_and_or"),children:w.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,C.jsx)(jS,{filter:w,isActive:A===w.id,onToggle:()=>ee(M=>M===w.id?null:w.id),onRemove:()=>Mi(w.id),btnRef:M=>{Le.current[w.id]=M}})]},w.id))})}),H.filtersCollapsed&&(0,C.jsx)("span",{className:"nb-filter-pills-collapsed-label",children:b.length===1?u("filters_count_one"):u("filters_count_other").replace("{n}",String(b.length))}),(0,C.jsx)("button",{className:"nb-filter-pills-toggle",onClick:()=>{Pe({...H,filtersCollapsed:!H.filtersCollapsed})},title:H.filtersCollapsed?u("show_filters"):u("hide_filters"),children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:H.filtersCollapsed?(0,C.jsx)("polyline",{points:"6 9 12 15 18 9"}):(0,C.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]}),(()=>{let w=b.find(L=>L.id===A);return!w||!vt||H.filtersCollapsed?null:(0,nc.createPortal)((0,C.jsxs)("div",{ref:Te,className:"nb-filter-pill-dropdown",style:{position:"fixed",top:vt.top,left:vt.left,zIndex:1e3},children:[(0,C.jsxs)("div",{className:"nb-filter-query-row",children:[(0,C.jsx)("span",{className:"nb-filter-query-name",children:w.columnName}),(0,C.jsxs)("div",{className:"nb-filter-op-wrapper",ref:L=>{en.current[w.id]=L},children:[(0,C.jsxs)("button",{className:`nb-filter-op-btn ${pt===w.id?"nb-filter-op-btn--open":""}`,onClick:L=>{L.stopPropagation(),pn(M=>M===w.id?null:w.id)},children:[ib[w.operator],(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,C.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),pt===w.id&&(0,C.jsx)("div",{className:"nb-filter-op-dropdown",children:AS(w.columnType).map(L=>(0,C.jsx)("button",{className:`nb-menu-item ${w.operator===L?"nb-menu-item--active":""}`,onClick:M=>{M.stopPropagation(),Gr(w.id,L,""),pn(null)},children:ib[L]},L))})]}),(0,C.jsx)("button",{className:"nb-filter-query-clear",onClick:L=>{L.stopPropagation(),Mi(w.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]}),!sb.has(w.operator)&&(ui(w)?(0,C.jsx)("div",{className:"nb-filter-multi-select",children:(()=>{let M=k.schema.find(he=>he.id===w.columnId)?.options??[],U=ua(w.value);return M.length>0?M.map(he=>(0,C.jsxs)("label",{className:"nb-filter-multi-option",children:[(0,C.jsx)("input",{type:"checkbox",checked:U.includes(he.value),onChange:()=>Gr(w.id,w.operator,Ru(w.value,he.value))}),(0,C.jsx)("span",{className:"nb-filter-option-badge",style:he.color?{backgroundColor:he.color}:void 0,children:he.value})]},he.value)):(0,C.jsx)("input",{className:"nb-filter-value-input",type:"text",placeholder:u("filter_value_placeholder"),value:w.value,autoFocus:!Jl,onChange:he=>Gr(w.id,w.operator,he.target.value)})})()}):(0,C.jsx)("input",{className:"nb-filter-value-input",type:w.columnType==="number"?"number":w.columnType==="date"?"date":"text",placeholder:w.columnType==="number"?u("filter_number_placeholder"):w.columnType==="date"?"":u("filter_value_placeholder"),value:w.value,autoFocus:!Jl,onChange:L=>Gr(w.id,w.operator,L.target.value)}))]}),activeDocument.body)})()]}),(0,C.jsxs)(Fm.Provider,{value:{editingCell:O,setEditingCell:Q,updateCell:lt,schema:k.schema,relationOptions:s,updateSchema:bt},children:[(0,C.jsx)("div",{ref:Tt,className:`nb-table-wrapper${H.wrapText?" nb-table--wrap":""}`,style:{"--nb-row-height":H.rowHeight==="compact"?"28px":H.rowHeight==="tall"?"64px":"36px"},children:(0,C.jsxs)("table",{ref:yt,className:"nb-table",children:[(0,C.jsx)("thead",{className:"nb-thead",children:jt.getHeaderGroups().map(w=>{let L=je.filter(M=>M.visible&&!H.hiddenColumns.includes(M.id)).map(M=>M.id);return(0,C.jsx)(Nm,{sensors:De,collisionDetection:Sm,onDragEnd:M=>{Kb(M)},children:(0,C.jsx)(Rm,{items:L,strategy:xm,children:(0,C.jsxs)("tr",{className:"nb-header-row",children:[w.headers.map(M=>{let U=xa.get(M.id);return M.id==="_select"?(0,C.jsx)("th",{className:"nb-th nb-th-select nb-th--sticky",style:{width:M.getSize(),left:0,zIndex:3},children:(0,C.jsx)("div",{className:"nb-cell-checkbox-wrapper",onClick:jt.getToggleAllRowsSelectedHandler(),children:(0,C.jsx)("div",{className:`nb-cell-checkbox-custom${jt.getIsAllRowsSelected()?" nb-cell-checkbox-custom--checked":""}${jt.getIsSomeRowsSelected()&&!jt.getIsAllRowsSelected()?" nb-cell-checkbox-custom--indeterminate":""}`,children:(jt.getIsAllRowsSelected()||jt.getIsSomeRowsSelected())&&(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-cell-check-icon",children:jt.getIsAllRowsSelected()?(0,C.jsx)("polyline",{points:"20 6 9 17 4 12"}):(0,C.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"})})})})},M.id):M.id==="_title"?(0,C.jsxs)("th",{"data-col-id":"_title",className:["nb-th",U?"nb-th--sticky":"",U?.isLast?"nb-th--sticky-last":""].filter(Boolean).join(" "),style:{width:M.getSize(),...U?{left:U.left,zIndex:3}:{}},children:[(0,C.jsxs)("div",{className:"nb-th-inner-title",children:[(0,C.jsx)("div",{style:{flex:1},children:mi(M.column.columnDef.header,M.getContext())}),(0,C.jsx)("button",{className:`nb-pin-btn${p==="_title"?" nb-pin-btn--active":""}`,onClick:()=>{Bt("_title")},title:p==="_title"?u("tooltip_unpin_column"):u("tooltip_pin_column"),children:"\u{1F4CC}"})]}),(0,C.jsx)(ub,{onResize:he=>{qn("_title",he)},onAutoFit:()=>{Ni("_title")}})]},M.id):(0,C.jsx)(BS,{id:M.id,size:M.getSize(),stickyLeft:U?.left,isLastPinned:U?.isLast,isPinned:p===M.id,onTogglePin:()=>{Bt(M.id)},sorted:M.column.getCanSort()?M.column.getIsSorted():void 0,onToggleSort:M.column.getCanSort()?()=>ln(M.id):void 0,onResize:he=>{qn(M.id,he)},onAutoFit:()=>{Ni(M.id)},children:mi(M.column.columnDef.header,M.getContext())},M.id)}),(0,C.jsx)("th",{className:"nb-th nb-th-add-col",children:(0,C.jsx)("button",{className:"nb-add-col-btn",onClick:()=>{Yb()},title:u("add_field"),children:"+"})})]})})},w.id)})}),(0,C.jsx)(DS,{scrollRef:Tt,rowHeight:H.rowHeight==="compact"?28:H.rowHeight==="tall"?64:36,disableVirtual:k.schema.some(w=>w.wrap&&!H.hiddenColumns.includes(w.id)),rows:Ti,stickyMap:xa,isMobile:Jl,setEditingCell:Q,setContextMenuFile:Ae,longPressRef:He,columns:tr,onAddRow:()=>{Gl()},hierarchyMap:jl,onToggleExpand:_c,onAddSubRow:w=>{ql(w)},expandedSet:ue,allExpanded:te,rowDragEnabled:mc,dragOverPath:be,onRowDragStart:Wl,onRowDragOver:Ei,onRowDragEnd:fc,onRowDrop:gc,conditionalFormats:H.conditionalFormats,schema:k.schema}),(0,C.jsx)("tfoot",{className:"nb-tfoot",children:(0,C.jsxs)("tr",{children:[(0,C.jsx)("td",{className:"nb-td nb-agg-td nb-td--sticky",style:{left:0,zIndex:1,width:40}}),jt.getVisibleLeafColumns().filter(w=>w.id!=="_select").map(w=>{let L=xa.get(w.id),M=(H.aggregations??{})[w.id]??"none",U=wc(w.id,M);return(0,C.jsxs)("td",{"data-agg-col":w.id,className:["nb-td","nb-agg-td",L?"nb-td--sticky":"",L?.isLast?"nb-td--sticky-last":""].filter(Boolean).join(" "),style:{width:w.getSize(),...L?{left:L.left,zIndex:1}:{}},onClick:()=>K(he=>he===w.id?null:w.id),children:[M!=="none"?(0,C.jsxs)("div",{className:"nb-agg-cell",children:[(0,C.jsx)("span",{className:"nb-agg-label",children:Cc[M]}),(0,C.jsx)("span",{className:"nb-agg-value",children:U})]}):(0,C.jsx)("div",{className:"nb-agg-empty"}),rt===w.id&&(0,nc.createPortal)((0,C.jsx)(US,{colType:k.schema.find(he=>he.id===w.id)?.type??"text",current:M,onSelect:he=>{yc(w.id,he)},anchorEl:activeDocument.querySelector(`[data-agg-col="${w.id}"]`)}),activeDocument.body)]},w.id)}),(0,C.jsx)("td",{className:"nb-td nb-agg-td nb-td-empty"})]})})]})}),(0,C.jsxs)("div",{className:"nb-row-count-bar",children:[(()=>{let w=_.length,L=Ri.length;return L!==w?(0,C.jsxs)("span",{className:"nb-row-count",children:[L," de ",w," ",w!==1?u("record_plural").toLowerCase():u("record_singular").toLowerCase()]}):(0,C.jsxs)("span",{className:"nb-row-count",children:[w," ",w!==1?u("record_plural").toLowerCase():u("record_singular").toLowerCase()]})})(),(0,C.jsx)(yi,{currentPage:Kn,totalPages:Ul,onPageChange:pc})]})]}),(0,C.jsxs)(ct,{open:Me!==null,onClose:()=>Ae(null),title:Me?.basename??"",children:[(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Me&&r.workspace.getLeaf().openFile(Me),Ae(null)},children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,C.jsx)("span",{children:u("open_note")})]}),(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Me&&t.duplicateNotes([Me]),Ae(null)},children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,C.jsx)("span",{children:u("duplicate_note")})]}),Pn&&Me&&(jl?.get(Me.path)?.depth??0)<3&&(0,C.jsxs)("button",{className:"nb-menu-item",onClick:()=>{ql(Me.basename),Ae(null)},children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u21B3"}),(0,C.jsx)("span",{children:u("add_subrow")})]}),(0,C.jsx)("div",{className:"nb-menu-separator"}),(0,C.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{Me&&t.deleteNotes([Me]),Ae(null)},children:[(0,C.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,C.jsx)("span",{children:u("delete_note")})]})]})]})}var ot=Fe(xt(),1),db=Fe(po(),1);var Nn=Fe(xt(),1),cb=Fe(po(),1);var Nt=Fe(St(),1);function ho({activeFilters:e,schema:t,onUpdate:n,onRemove:o,onToggleConjunction:r,collapsed:a=!1,onToggleCollapsed:i}){let l=kn(),[s,d]=(0,Nn.useState)(null),[p,g]=(0,Nn.useState)(null),[m,c]=(0,Nn.useState)(null),v=(0,Nn.useRef)({}),h=(0,Nn.useRef)({}),b=(0,Nn.useRef)(null);(0,Nn.useLayoutEffect)(()=>{if(!s){c(null);return}let _=v.current[s];if(!_)return;let y=_.getBoundingClientRect();c({top:y.bottom+4,left:y.left})},[s]),(0,Nn.useEffect)(()=>{if(!s)return;let _=y=>{let k=v.current[s],F=y.target,T=k?.contains(F),V=b.current?.contains(F);!T&&!V&&d(null)};return activeDocument.addEventListener("mousedown",_),()=>activeDocument.removeEventListener("mousedown",_)},[s]),(0,Nn.useEffect)(()=>{if(!p)return;let _=y=>{let k=h.current[p];k&&!k.contains(y.target)&&g(null)};return activeDocument.addEventListener("mousedown",_),()=>activeDocument.removeEventListener("mousedown",_)},[p]),(0,Nn.useEffect)(()=>{e.find(_=>_.id===s)||d(null)},[e,s]);let f=e.find(_=>_.id===s);return(0,Nt.jsxs)(Nt.Fragment,{children:[e.length>0&&(0,Nt.jsxs)("div",{className:`nb-filter-pills-row${a?" nb-filter-pills-row--collapsed":""}`,children:[!a&&e.map((_,y)=>(0,Nt.jsxs)(Nn.Fragment,{children:[y>0&&(0,Nt.jsx)("button",{className:`nb-pill-conjunction${_.conjunction==="or"?" nb-pill-conjunction--or":""}`,onClick:()=>r(_.id),title:u("tooltip_toggle_and_or"),children:_.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,Nt.jsxs)("button",{ref:k=>{v.current[_.id]=k},className:`nb-filter-pill ${s===_.id?"nb-filter-pill--active":""}`,onClick:()=>d(k=>k===_.id?null:_.id),children:[(0,Nt.jsx)("span",{className:"nb-filter-pill-icon",children:_.icon}),(0,Nt.jsx)("span",{className:"nb-filter-pill-name",children:_.columnName}),(0,Nt.jsx)("span",{className:"nb-filter-pill-remove",onClick:k=>{k.stopPropagation(),o(_.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]})]},_.id)),a&&(0,Nt.jsx)("span",{className:"nb-filter-pills-collapsed-label",children:e.length===1?u("filters_count_one"):u("filters_count_other").replace("{n}",String(e.length))}),i&&(0,Nt.jsx)("button",{className:"nb-filter-pills-toggle",onClick:i,title:a?u("show_filters"):u("hide_filters"),children:(0,Nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:a?(0,Nt.jsx)("polyline",{points:"6 9 12 15 18 9"}):(0,Nt.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]}),f&&!a&&m&&(0,cb.createPortal)((0,Nt.jsxs)("div",{ref:b,className:"nb-filter-pill-dropdown",style:{position:"fixed",top:m.top,left:m.left,zIndex:1e3},children:[(0,Nt.jsxs)("div",{className:"nb-filter-query-row",children:[(0,Nt.jsx)("span",{className:"nb-filter-query-name",children:f.columnName}),(0,Nt.jsxs)("div",{className:"nb-filter-op-wrapper",ref:_=>{h.current[f.id]=_},children:[(0,Nt.jsxs)("button",{className:`nb-filter-op-btn ${p===f.id?"nb-filter-op-btn--open":""}`,onClick:_=>{_.stopPropagation(),g(y=>y===f.id?null:f.id)},children:[Dr[f.operator],(0,Nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,Nt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),p===f.id&&(0,Nt.jsx)("div",{className:"nb-filter-op-dropdown",children:si(f.columnType).map(_=>(0,Nt.jsx)("button",{className:`nb-menu-item ${f.operator===_?"nb-menu-item--active":""}`,onClick:y=>{y.stopPropagation(),n(f.id,_,""),g(null)},children:Dr[_]},_))})]}),(0,Nt.jsx)("button",{className:"nb-filter-query-clear",onClick:_=>{_.stopPropagation(),o(f.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]}),!Fr.has(f.operator)&&(ui(f)?(0,Nt.jsx)("div",{className:"nb-filter-multi-select",children:(()=>{let y=t.find(F=>F.id===f.columnId)?.options??[],k=ua(f.value);return y.length>0?y.map(F=>(0,Nt.jsxs)("label",{className:"nb-filter-multi-option",children:[(0,Nt.jsx)("input",{type:"checkbox",checked:k.includes(F.value),onChange:()=>n(f.id,f.operator,Ru(f.value,F.value))}),(0,Nt.jsx)("span",{className:"nb-filter-option-badge",style:F.color?{backgroundColor:F.color}:void 0,children:F.value})]},F.value)):(0,Nt.jsx)("input",{className:"nb-filter-value-input",type:"text",placeholder:u("filter_value_placeholder"),value:f.value,autoFocus:!l,onChange:F=>n(f.id,f.operator,F.target.value)})})()}):(0,Nt.jsx)("input",{className:"nb-filter-value-input",type:f.columnType==="number"?"number":f.columnType==="date"?"date":"text",placeholder:f.columnType==="number"?u("filter_number_placeholder"):f.columnType==="date"?"":u("filter_value_placeholder"),value:f.value,autoFocus:!l,onChange:_=>n(f.id,f.operator,_.target.value)}))]}),activeDocument.body)]})}var J=Fe(St(),1);function WS({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,ot.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let v=c.clientX-i.x,h=c.clientY-i.y,b=_=>l({x:_.clientX-v,y:_.clientY-h}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,v)=>{let h=[...e],b=c+v;b<0||b>=h.length||([h[c],h[b]]=[h[b],h[c]],n(h))};return(0,db.createPortal)((0,J.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,J.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,J.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,J.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,J.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,v)=>{let h=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,J.jsxs)("div",{className:"nb-sort-row",children:[(0,J.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,J.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,-1),disabled:v===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,J.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,1),disabled:v===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,J.jsx)("span",{className:"nb-sort-row-name",children:h}),(0,J.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,J.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,J.jsx)("div",{className:"nb-sort-add-row",children:(0,J.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,J.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,J.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}var GS=ot.default.memo(function({row:t,depth:n,hasChildren:o,isExpanded:r,isHierarchical:a,visibleCols:i,dbFolderPath:l,includeSubfolders:s,onOpen:d,onToggleExpand:p,isMobile:g,onLongPress:m,onContextMenu:c,longPressRef:v,cardStyle:h}){let b=t._file.parent?.path??"",f=s&&b.length>l.length?b.slice(l.length+1):"";return(0,J.jsxs)("div",{className:"nb-list-row",style:{...a?{paddingLeft:`${n*20+12}px`}:{},...h},onClick:()=>d(t._file),onContextMenu:g?void 0:_=>{_.preventDefault(),c(t._file)},onTouchStart:g?()=>{v.current=window.setTimeout(()=>m(t._file),500)}:void 0,onTouchMove:g?()=>{v.current&&(window.clearTimeout(v.current),v.current=null)}:void 0,onTouchEnd:g?()=>{v.current&&(window.clearTimeout(v.current),v.current=null)}:void 0,children:[o&&(0,J.jsx)("button",{className:"nb-hierarchy-toggle",onClick:_=>{_.stopPropagation(),p(t._file.path)},children:r?"\u25BC":"\u25B6"}),(0,J.jsx)("span",{className:"nb-list-row-icon",children:"\u{1F4C4}"}),(0,J.jsx)("span",{className:"nb-list-row-title",children:t._title}),f?(0,J.jsx)("span",{className:"nb-folder-path",style:{marginLeft:4},children:f}):null,i.length>0&&(0,J.jsx)("div",{className:"nb-list-row-props",children:i.map(_=>{let y=t[_.id];if(y==null||ht(y).trim()==="")return null;let k=Array.isArray(y)?y.join(", "):ht(y);return(0,J.jsxs)("span",{className:"nb-list-prop",children:[(0,J.jsxs)("span",{className:"nb-list-prop-name",children:[_.name,":"]}),(0,J.jsx)("span",{className:"nb-list-prop-value",children:k})]},_.id)})})]})});function pb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,ot.useState)(n),[m,c]=(0,ot.useState)(!1),[v,h]=(0,ot.useState)(!1),[b,f]=(0,ot.useState)(!1),[_,y]=(0,ot.useState)(null),[k,F]=(0,ot.useState)(!1),T=(0,ot.useRef)(null),V=(0,ot.useRef)(null),j=(0,ot.useRef)(null),re=(0,ot.useRef)(null),ne=(0,ot.useRef)(null),de=(0,ot.useRef)(null);(0,ot.useEffect)(()=>{g(n)},[n.id]);let ve=(0,ot.useCallback)(async A=>{g(A),await o(A)},[o]);(0,ot.useEffect)(()=>{if(!m)return;let A=ee=>{ne.current?.contains(ee.target)||T.current&&!T.current.contains(ee.target)&&c(!1)};return activeDocument.addEventListener("mousedown",A),()=>activeDocument.removeEventListener("mousedown",A)},[m]),(0,ot.useEffect)(()=>{if(!k)return;let A=ee=>{de.current&&!de.current.contains(ee.target)&&F(!1)};return activeDocument.addEventListener("mousedown",A),()=>activeDocument.removeEventListener("mousedown",A)},[k]),(0,ot.useEffect)(()=>{if(!v)return;let A=ee=>{ne.current?.contains(ee.target)||V.current&&!V.current.contains(ee.target)&&h(!1)};return activeDocument.addEventListener("mousedown",A),()=>activeDocument.removeEventListener("mousedown",A)},[v]),(0,ot.useEffect)(()=>{if(!b)return;let A=ee=>{ne.current?.contains(ee.target)||re.current?.contains(ee.target)||j.current&&!j.current.contains(ee.target)&&f(!1)};return activeDocument.addEventListener("mousedown",A),()=>activeDocument.removeEventListener("mousedown",A)},[b]);let Ce=(0,ot.useCallback)(async A=>{let ee=A.map(Le=>({id:Le.id,columnId:Le.columnId,operator:Le.operator,value:Le.value,conjunction:Le.conjunction}));await ve({...p,activePills:ee})},[ve,p]),Oe=(A,ee,Le,Te)=>{let vt=[...s,{id:crypto.randomUUID(),columnId:A,columnName:ee,columnType:Te,icon:Le,operator:Fn(Te),value:"",conjunction:"and"}];d(vt),Ce(vt),c(!1)},q=A=>{let ee=s.filter(Le=>Le.id!==A);d(ee),Ce(ee)},W=(A,ee,Le)=>{let Te=s.map(vt=>vt.id===A?{...vt,operator:ee,value:Le}:vt);d(Te),Ce(Te)},O=A=>{let ee=s.map(Le=>Le.id===A?{...Le,conjunction:Le.conjunction==="and"?"or":"and"}:Le);d(ee),Ce(ee)},Q=(0,ot.useCallback)(async A=>{let ee=p.hiddenColumns.includes(A)?p.hiddenColumns.filter(Le=>Le!==A):[...p.hiddenColumns,A];await ve({...p,hiddenColumns:ee})},[p,ve]),ce=(0,ot.useCallback)(async A=>{await ve({...p,sorts:A})},[p,ve]),Ne=async()=>{e&&await t.createNoteWithTemplate(e)},[Be,$e]=(0,ot.useState)(new Set),[nt]=(0,ot.useState)(!0),et=(0,ot.useMemo)(()=>ec(i.schema,e?.path??""),[i.schema,e?.path]),fe=(0,ot.useCallback)(A=>{$e(ee=>{let Le=new Set(ee);return Le.has(A)?Le.delete(A):Le.add(A),Le})},[]),Me=Hn(s,200),Ae=(0,ot.useMemo)(()=>Vn(a,Me),[a,Me]),He=(0,ot.useMemo)(()=>no(Ae,p.sorts),[Ae,p.sorts]),ze=(0,ot.useMemo)(()=>et?tc(He,et.id,p.sorts,Be,nt):null,[He,et,p.sorts,Be,nt]),{pageItems:xe,currentPage:rt,totalPages:K,setPage:D}=wi(He,et?0:t.pageSize),ie=(0,ot.useMemo)(()=>i.schema.filter(A=>A.visible&&!p.hiddenColumns.includes(A.id)),[i.schema,p.hiddenColumns]),me=kn(),se=e?.parent?.path??"",Ve=(0,ot.useCallback)(A=>{r.workspace.getLeaf().openFile(A)},[r]),[ge,Re]=(0,ot.useState)(null),yt=(0,ot.useRef)(null),Tt=(0,ot.useCallback)(A=>{Re(A)},[]),Pt=(0,ot.useCallback)(A=>{Re(A)},[]);if(!e)return(0,J.jsx)("div",{className:"nb-empty-state",children:(0,J.jsx)("p",{children:u("no_database_open")})});if(l)return(0,J.jsx)("div",{className:"nb-loading",children:u("loading")});let P=A=>{A!=="fields"&&h(!1),A!=="filter"&&c(!1),A!=="sort"&&f(!1)},ke=me?(0,J.jsxs)(Gn,{actionBarRef:ne,actions:[{id:"fields",label:u("fields"),icon:(0,J.jsx)(Sn,{}),active:v,onClick:()=>{P("fields"),h(A=>!A)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,J.jsx)(Wn,{}),active:!!p.includeSubfolders,onClick:()=>{P(),ve({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,J.jsx)(_o,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{P("sort"),!b&&re.current&&y(re.current.getBoundingClientRect()),f(A=>!A)}},{id:"filter",label:u("filter"),icon:(0,J.jsx)(Un,{}),active:m,badge:s.length||void 0,onClick:()=>{P("filter"),c(A=>!A)}}],rowCount:He.length,rowCountLabel:He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:s,onFilterUpdate:W,onFilterRemove:q,onConjunctionToggle:O,children:[(0,J.jsx)(ct,{open:v,onClose:()=>h(!1),title:u("fields"),children:i.schema.map(A=>(0,J.jsxs)("label",{className:"nb-field-row",children:[(0,J.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:A.visible&&!p.hiddenColumns.includes(A.id),onChange:()=>{Q(A.id)}}),(0,J.jsx)("span",{className:"nb-field-icon",children:Xe(A.type)}),(0,J.jsx)("span",{className:"nb-field-name",children:A.name})]},A.id))}),(0,J.jsxs)(ct,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,J.jsx)("span",{children:u("name_column")})]}),i.schema.map(A=>(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe(A.id,A.name,Xe(A.type),A.type),children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:Xe(A.type)}),(0,J.jsx)("span",{children:A.name})]},A.id))]}),(0,J.jsxs)(ct,{open:b,onClose:()=>f(!1),title:u("sort"),children:[p.sorts.length===0&&(0,J.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((A,ee)=>{let Le=A.columnId==="_title"?"Nome":i.schema.find(Te=>Te.id===A.columnId)?.name??A.columnId;return(0,J.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,J.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,J.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let Te=[...p.sorts];ee>0&&([Te[ee],Te[ee-1]]=[Te[ee-1],Te[ee]],ce(Te))},disabled:ee===0,children:"\u2191"}),(0,J.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let Te=[...p.sorts];ee{ce(p.sorts.map(Te=>Te.columnId===A.columnId?{...Te,direction:Te.direction==="asc"?"desc":"asc"}:Te))},children:A.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,J.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{ce(p.sorts.filter(Te=>Te.columnId!==A.columnId))},children:"\xD7"})]},A.columnId)}),(()=>{let A=i.schema.filter(Te=>Te.type!=="formula"&&Te.type!=="lookup"&&Te.type!=="relation"&&Te.type!=="multiselect"),ee=new Set(p.sorts.map(Te=>Te.columnId)),Le=[...ee.has("_title")?[]:[{id:"_title",name:"Nome"}],...A.filter(Te=>!ee.has(Te.id)).map(Te=>({id:Te.id,name:Te.name}))];return Le.length===0?null:(0,J.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:Te=>{Te.target.value&&(ce([...p.sorts,{columnId:Te.target.value,direction:"asc"}]),Te.target.value="")},children:[(0,J.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),Le.map(Te=>(0,J.jsx)("option",{value:Te.id,children:Te.name},Te.id))]})})()]})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("div",{className:"nb-toolbar",children:[(0,J.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:V,children:[(0,J.jsx)("button",{className:`nb-toolbar-btn ${v?"nb-toolbar-btn--active":""}`,onClick:()=>h(A=>!A),children:u("fields")}),v&&(0,J.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,J.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),i.schema.map(A=>(0,J.jsxs)("label",{className:"nb-field-row",children:[(0,J.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:A.visible&&!p.hiddenColumns.includes(A.id),onChange:()=>{Q(A.id)}}),(0,J.jsx)("span",{className:"nb-field-icon",children:Xe(A.type)}),(0,J.jsx)("span",{className:"nb-field-name",children:A.name})]},A.id))]})]}),(0,J.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ve({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,J.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,J.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,J.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,J.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,J.jsxs)("span",{className:"nb-row-count",children:[He.length," ",He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,J.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:T,style:{marginLeft:"auto"},children:[(0,J.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${m?"nb-toolbar-btn--active":""}`,onClick:()=>c(A=>!A),title:u("filters"),children:[(0,J.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,J.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,J.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,J.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,J.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,J.jsx)("span",{children:u("name_column")})]}),i.schema.map(A=>(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe(A.id,A.name,Xe(A.type),A.type),children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:Xe(A.type)}),(0,J.jsx)("span",{children:A.name})]},A.id))]})]}),(0,J.jsxs)("button",{ref:re,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!b&&re.current&&y(re.current.getBoundingClientRect()),f(A=>!A)},children:[(0,J.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,J.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),b&&_&&(0,J.jsx)(WS,{sorts:p.sorts,schema:i.schema,onSortChange:A=>{ce(A)},onClose:()=>f(!1),anchorRect:_,panelRef:j}),(0,J.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:de,children:[(0,J.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(p.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>F(A=>!A),title:u("conditional_formatting"),children:[(0,J.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,J.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,J.jsx)("path",{d:"M3 9h18"}),(0,J.jsx)("path",{d:"M3 15h18"}),(0,J.jsx)("path",{d:"M9 3v18"})]}),(p.conditionalFormats?.length??0)>0&&(0,J.jsx)("span",{className:"nb-hidden-badge",children:p.conditionalFormats.length})]}),k&&(0,J.jsx)(zr,{rules:p.conditionalFormats??[],schema:i.schema,onChange:A=>{ve({...p,conditionalFormats:A})},onClose:()=>F(!1)})]})]}),(0,J.jsx)(ho,{activeFilters:s,schema:i.schema,onUpdate:W,onRemove:q,onToggleConjunction:O,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{ve({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return(0,J.jsxs)("div",{className:"nb-container",children:[ke,(0,J.jsxs)("div",{className:"nb-list",children:[(ze??xe.map(A=>({row:A,depth:0,hasChildren:!1,parentTitle:null}))).map(({row:A,depth:ee,hasChildren:Le})=>{let Te=nt?!Be.has(A._file.path):Be.has(A._file.path);return(0,J.jsx)(GS,{row:A,depth:ee,hasChildren:Le,isExpanded:Te,isHierarchical:ze!==null,visibleCols:ie,dbFolderPath:se,includeSubfolders:p.includeSubfolders??!1,onOpen:Ve,onToggleExpand:fe,isMobile:me,onLongPress:Tt,onContextMenu:Pt,longPressRef:yt,cardStyle:p.conditionalFormats?.length?ci(A,p.conditionalFormats,i.schema):void 0},A._file.path)}),(0,J.jsx)("button",{className:"nb-add-row nb-list-add-row",onClick:()=>{Ne()},children:"+ "+u("add_entry")})]}),(0,J.jsx)(yi,{currentPage:rt,totalPages:K,onPageChange:D}),(0,J.jsxs)(ct,{open:ge!==null,onClose:()=>Re(null),title:ge?.basename??"",children:[(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>{ge&&r.workspace.getLeaf().openFile(ge),Re(null)},children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,J.jsx)("span",{children:u("open_note")})]}),(0,J.jsxs)("button",{className:"nb-menu-item",onClick:()=>{ge&&t.duplicateNotes([ge]),Re(null)},children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,J.jsx)("span",{children:u("duplicate_note")})]}),(0,J.jsx)("div",{className:"nb-menu-separator"}),(0,J.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{ge&&t.deleteNotes([ge]),Re(null)},children:[(0,J.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,J.jsx)("span",{children:u("delete_note")})]})]})]})}var Ue=Fe(xt(),1);var Y=Fe(St(),1),Ci="nb-card",oc="nb-column",qS=60,KS=30;function YS({children:e}){let t=(0,Ue.useRef)(null),[n,o]=(0,Ue.useState)(!1),r=(0,Ue.useRef)(qS);return(0,Ue.useEffect)(()=>{let a=t.current;if(!a)return;let i=new IntersectionObserver(([l])=>{l.isIntersecting&&(o(!0),i.disconnect())},{rootMargin:"200px 0px"});return i.observe(a),()=>i.disconnect()},[]),(0,Ue.useEffect)(()=>{n&&t.current&&(r.current=t.current.offsetHeight)},[n]),n?(0,Y.jsx)("div",{ref:t,children:e}):(0,Y.jsx)("div",{ref:t,style:{minHeight:r.current}})}var XS=Ue.default.memo(function({row:t,isMobile:n,visibleCols:o,dbFolderPath:r,includeSubfolders:a,onOpen:i,onDragStart:l,onTouchStart:s,onContextMenu:d,cardStyle:p}){let g=t._file.parent?.path??"",m=a&&g.length>r.length?g.slice(r.length+1):"";return(0,Y.jsxs)("div",{className:"nb-board-card",style:p,draggable:!n,onDragStart:n?void 0:c=>{c.stopPropagation(),l?.(c,t._file.path)},onTouchStart:n?c=>s?.(c,t._file):void 0,onContextMenu:n?void 0:c=>{c.preventDefault(),d?.(c,t._file)},onClick:()=>i(t._file),children:[(0,Y.jsx)("div",{className:"nb-board-card-title",children:t._title}),m?(0,Y.jsx)("div",{className:"nb-folder-path",children:m}):null,o.length>0&&(0,Y.jsx)("div",{className:"nb-board-card-props",children:o.map(c=>{let v=t[c.id];if(v==null||ht(v).trim()==="")return null;let h=Array.isArray(v)?v.join(", "):ht(v);return(0,Y.jsxs)("span",{className:"nb-board-card-prop",children:[(0,Y.jsxs)("span",{className:"nb-board-card-prop-name",children:[c.name,":"]}),(0,Y.jsx)("span",{className:"nb-board-card-prop-value",children:h})]},c.id)})})]})});function mb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{status:a,trackSave:i}=Br(),{rows:l,config:s,loading:d,activeFilters:p,setActiveFilters:g}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[m,c]=(0,Ue.useState)(n),[v,h]=(0,Ue.useState)(!1),[b,f]=(0,Ue.useState)(!1),[_,y]=(0,Ue.useState)(null),[k,F]=(0,Ue.useState)(new Set),[T,V]=(0,Ue.useState)(!1),[j,re]=(0,Ue.useState)(!1),[ne,de]=(0,Ue.useState)(!1),[ve,Ce]=(0,Ue.useState)(!1),[Oe,q]=(0,Ue.useState)(null),[W,O]=(0,Ue.useState)(null),[Q,ce]=(0,Ue.useState)(null),Ne=(0,Ue.useRef)(null),Be=(0,Ue.useRef)(null),$e=(0,Ue.useRef)(null),nt=(0,Ue.useRef)(null),et=(0,Ue.useRef)(null);(0,Ue.useEffect)(()=>{c(n)},[n.id]);let fe=(0,Ue.useCallback)(async N=>{c(N),await o(N)},[o]);(0,Ue.useEffect)(()=>{if(!T)return;let N=X=>{et.current?.contains(X.target)||Ne.current&&!Ne.current.contains(X.target)&&V(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[T]),(0,Ue.useEffect)(()=>{if(!j)return;let N=X=>{et.current?.contains(X.target)||Be.current&&!Be.current.contains(X.target)&&re(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[j]),(0,Ue.useEffect)(()=>{if(!ne)return;let N=X=>{et.current?.contains(X.target)||$e.current&&!$e.current.contains(X.target)&&de(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[ne]),(0,Ue.useEffect)(()=>{if(!ve)return;let N=X=>{nt.current&&!nt.current.contains(X.target)&&Ce(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[ve]);let Me=(0,Ue.useMemo)(()=>s.schema.filter(N=>N.type==="select"||N.type==="status"),[s.schema]),Ae=(0,Ue.useMemo)(()=>s.schema.find(N=>N.id===m.groupByColumnId)??Me[0]??null,[s.schema,m.groupByColumnId,Me]),He=Hn(p,200),ze=(0,Ue.useMemo)(()=>Vn(l,He),[l,He]),xe=(0,Ue.useMemo)(()=>no(ze,m.sorts),[ze,m.sorts]),rt=(0,Ue.useMemo)(()=>s.schema.filter(N=>N.id!==Ae?.id&&N.type!=="title"&&N.visible&&!m.hiddenColumns.includes(N.id)),[s.schema,m.hiddenColumns,Ae]),K=[{value:u("status_not_started"),color:"#9E9E9E"},{value:u("status_in_progress"),color:"#2196F3"},{value:u("status_done"),color:"#4CAF50"},{value:u("status_cancelled"),color:"#F44336"}],D=(0,Ue.useMemo)(()=>{if(!Ae)return[];let X=[...(Ae.type==="status"&&!Ae.options?.length?K:Ae.options??[]).map(S=>({value:S.value,label:S.value,color:S.color,rows:xe.filter(Z=>Z[Ae.id]===S.value)})),{value:"",label:u("no_value"),color:void 0,rows:xe.filter(S=>{let Z=S[Ae.id];return Z==null||ht(Z).trim()===""})}],ue=m.boardColumnOrder,oe=X;if(ue&&ue.length>0){let S=ue.flatMap(be=>{let we=X.find(De=>De.value===be);return we?[we]:[]}),Z=X.filter(be=>!ue.includes(be.value));oe=[...S,...Z]}let te=v?oe.filter(S=>S.rows.length>0):oe;return b&&(te=te.filter(S=>S.value!=="")),te},[Ae,xe,v,b,m.boardColumnOrder]),ie=(0,Ue.useCallback)(async(N,X)=>{if(!e||!Ae)return;let ue=r.vault.getFileByPath(N);ue&&await i(r.fileManager.processFrontMatter(ue,oe=>{X===""?delete oe[Ae.id]:oe[Ae.id]=X}))},[r,e,Ae,i]),me=(0,Ue.useCallback)(async(N,X)=>{if(N===X)return;let ue=D.map(Z=>Z.value),oe=ue.indexOf(N),te=ue.indexOf(X);if(oe===-1||te===-1)return;let S=[...ue];S.splice(oe,1),S.splice(te,0,N),await fe({...m,boardColumnOrder:S})},[D,m,fe]),se=(0,Ue.useRef)(null),Ve=(0,Ue.useRef)(ie);Ve.current=ie;let ge=(0,Ue.useRef)(me);ge.current=me;let Re=(N,X,ue)=>{let oe=N.cloneNode(!0),te=N.getBoundingClientRect();return oe.style.cssText=`position:fixed;z-index:9999;pointer-events:none;opacity:0.85;width:${te.width}px;transform:rotate(2deg);box-shadow:0 8px 24px rgba(0,0,0,0.2);`,oe.style.left=`${X-te.width/2}px`,oe.style.top=`${ue-20}px`,activeDocument.body.appendChild(oe),oe},yt=(0,Ue.useCallback)((N,X)=>{let ue=N.touches[0],oe=N.currentTarget,te=!1,S=null,Z=null,be=null,we=!1,De=window.setTimeout(()=>{we=!0,H(),ce(X)},500),Ye=mt=>{let lt=se.current;if(!lt)return;let bt=lt.getBoundingClientRect(),$t=50,Bt=8,Dt=mt-bt.left<$t,ln=bt.right-mt<$t;if(!Dt&&!ln){be&&(window.clearInterval(be),be=null);return}if(be)return;let qn=ln?1:-1;be=window.setInterval(()=>{lt.scrollLeft+=qn*Bt},16)},We=()=>{be&&(window.clearInterval(be),be=null)},H=()=>{oe.removeEventListener("touchmove",je),oe.removeEventListener("touchend",Pe),oe.removeEventListener("touchcancel",Pe)},je=mt=>{let lt=mt.touches[0];if(!te&&Math.abs(lt.clientX-ue.clientX)<12&&Math.abs(lt.clientY-ue.clientY)<12)return;window.clearTimeout(De),mt.preventDefault(),mt.stopPropagation(),te||(te=!0,oe.classList.add("nb-touch-drag-source"),se.current?.classList.add("nb-board--dragging"),Z=Re(oe,lt.clientX,lt.clientY)),Z&&(Z.style.left=`${lt.clientX-Z.offsetWidth/2}px`,Z.style.top=`${lt.clientY-20}px`),oe.classList.add("nb-touch-drag-hidden");let bt=activeDocument.elementFromPoint(lt.clientX,lt.clientY);oe.classList.remove("nb-touch-drag-hidden"),oe.classList.add("nb-touch-drag-source"),S=bt?.closest(".nb-board-column")?.dataset.colKey??null,q(S),Ye(lt.clientX)},Pe=()=>{window.clearTimeout(De),We(),se.current?.classList.remove("nb-board--dragging"),oe.classList.remove("nb-touch-drag-source","nb-touch-drag-hidden"),Z?.remove(),!we&&te&&S!==null&&Ve.current(X.path,S),q(null),H()};oe.addEventListener("touchmove",je,{passive:!1}),oe.addEventListener("touchend",Pe),oe.addEventListener("touchcancel",Pe)},[]),Tt=(0,Ue.useCallback)((N,X)=>{let ue=N.touches[0],oe=N.currentTarget.closest(".nb-board-column");if(!oe)return;let te=!1,S=null,Z=null,be=null,we=H=>{let je=se.current;if(!je)return;let Pe=je.getBoundingClientRect(),mt=50,lt=8,bt=H-Pe.left{je.scrollLeft+=Bt*lt},16)},De=()=>{be&&(window.clearInterval(be),be=null)},Ye=H=>{let je=H.touches[0];if(!te&&Math.abs(je.clientX-ue.clientX)<12&&Math.abs(je.clientY-ue.clientY)<12)return;H.preventDefault(),H.stopPropagation(),te||(te=!0,oe.classList.add("nb-touch-drag-source"),se.current?.classList.add("nb-board--dragging"),Z=Re(oe,je.clientX,je.clientY)),Z&&(Z.style.left=`${je.clientX-Z.offsetWidth/2}px`,Z.style.top=`${je.clientY-20}px`),oe.classList.add("nb-touch-drag-hidden");let Pe=activeDocument.elementFromPoint(je.clientX,je.clientY);oe.classList.remove("nb-touch-drag-hidden"),oe.classList.add("nb-touch-drag-source"),S=Pe?.closest(".nb-board-column")?.dataset.colKey??null,O(S),we(je.clientX)},We=()=>{De(),se.current?.classList.remove("nb-board--dragging"),oe.classList.remove("nb-touch-drag-source","nb-touch-drag-hidden"),Z?.remove(),te&&S!==null&&ge.current(X,S),O(null),oe.removeEventListener("touchmove",Ye),oe.removeEventListener("touchend",We),oe.removeEventListener("touchcancel",We)};oe.addEventListener("touchmove",Ye,{passive:!1}),oe.addEventListener("touchend",We),oe.addEventListener("touchcancel",We)},[]),Pt=(0,Ue.useCallback)(async N=>{if(!e||!Ae)return;let X=await t.createNoteWithTemplate(e);N!==""&&await i(r.fileManager.processFrontMatter(X,ue=>{ue[Ae.id]=N}))},[r,e,t,Ae,i]),P=(0,Ue.useCallback)(async N=>{let X=N.map(ue=>({id:ue.id,columnId:ue.columnId,operator:ue.operator,value:ue.value,conjunction:ue.conjunction}));await fe({...m,activePills:X})},[fe,m]),ke=(N,X,ue,oe)=>{let te=[...p,{id:crypto.randomUUID(),columnId:N,columnName:X,columnType:oe,icon:ue,operator:Fn(oe),value:"",conjunction:"and"}];g(te),P(te),de(!1)},A=N=>{let X=p.filter(ue=>ue.id!==N);g(X),P(X)},ee=(N,X,ue)=>{let oe=p.map(te=>te.id===N?{...te,operator:X,value:ue}:te);g(oe),P(oe)},Le=N=>{let X=p.map(ue=>ue.id===N?{...ue,conjunction:ue.conjunction==="and"?"or":"and"}:ue);g(X),P(X)},Te=(0,Ue.useCallback)(async N=>{let X=m.hiddenColumns.includes(N)?m.hiddenColumns.filter(ue=>ue!==N):[...m.hiddenColumns,N];await fe({...m,hiddenColumns:X})},[m,fe]),vt=kn(),dn=e?.parent?.path??"",pt=(0,Ue.useCallback)(N=>{r.workspace.getLeaf().openFile(N)},[r]),pn=(0,Ue.useCallback)((N,X)=>{N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("nb-drag-type",Ci),N.dataTransfer.setData("nb-row-path",X),N.dataTransfer.setData(Ci,"")},[]),en=(0,Ue.useCallback)((N,X)=>{ce(X)},[]);if(!e)return(0,Y.jsx)("div",{className:"nb-empty-state",children:(0,Y.jsx)("p",{children:u("no_database_open")})});if(d)return(0,Y.jsx)("div",{className:"nb-loading",children:u("loading")});if(Me.length===0)return(0,Y.jsxs)("div",{className:"nb-empty-state",children:[(0,Y.jsx)("p",{children:u("board_no_select_col")}),(0,Y.jsx)("p",{children:u("board_add_select_hint")})]});let tn=N=>{N!=="fields"&&V(!1),N!=="groupby"&&re(!1),N!=="filter"&&de(!1)},x=vt?(0,Y.jsxs)(Gn,{actionBarRef:et,actions:[{id:"fields",label:u("fields"),icon:(0,Y.jsx)(Sn,{}),active:T,onClick:()=>{tn("fields"),V(N=>!N)}},{id:"groupby",label:u("group_by"),icon:(0,Y.jsx)(_o,{}),active:j,onClick:()=>{tn("groupby"),re(N=>!N)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,Y.jsx)(Wn,{}),active:!!m.includeSubfolders,onClick:()=>{tn(),fe({...m,includeSubfolders:!m.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,Y.jsx)(Un,{}),active:ne,badge:p.length||void 0,onClick:()=>{tn("filter"),de(N=>!N)}}],rowCount:ze.length,rowCountLabel:ze.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:p,onFilterUpdate:ee,onFilterRemove:A,onConjunctionToggle:Le,children:[(0,Y.jsx)(ct,{open:T,onClose:()=>V(!1),title:u("fields_in_card"),children:s.schema.filter(N=>N.id!==Ae?.id&&N.type!=="title").map(N=>(0,Y.jsxs)("label",{className:"nb-field-row",children:[(0,Y.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:N.visible&&!m.hiddenColumns.includes(N.id),onChange:()=>{Te(N.id)}}),(0,Y.jsx)("span",{className:"nb-field-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{className:"nb-field-name",children:N.name})]},N.id))}),(0,Y.jsx)(ct,{open:j,onClose:()=>re(!1),title:u("group_by"),children:Me.map(N=>(0,Y.jsxs)("button",{className:`nb-menu-item${m.groupByColumnId===N.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...m,groupByColumnId:N.id}),re(!1)},children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{children:N.name})]},N.id))}),(0,Y.jsxs)(ct,{open:ne,onClose:()=>de(!1),title:u("filter"),children:[(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,Y.jsx)("span",{children:u("name_column")})]}),s.schema.map(N=>(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke(N.id,N.name,Xe(N.type),N.type),children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{children:N.name})]},N.id))]}),(0,Y.jsxs)("div",{className:"nb-mobile-toggles-row",children:[(0,Y.jsxs)("label",{className:"nb-mobile-toggle",children:[(0,Y.jsx)("input",{type:"checkbox",checked:v,onChange:N=>h(N.target.checked)}),(0,Y.jsx)("span",{children:u("hide_empty_cols")})]}),(0,Y.jsxs)("label",{className:"nb-mobile-toggle",children:[(0,Y.jsx)("input",{type:"checkbox",checked:b,onChange:N=>f(N.target.checked)}),(0,Y.jsx)("span",{children:u("hide_no_value_cols")})]})]})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"nb-toolbar",children:[(0,Y.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Ne,children:[(0,Y.jsx)("button",{className:`nb-toolbar-btn${T?" nb-toolbar-btn--active":""}`,onClick:()=>V(N=>!N),children:u("fields")}),T&&(0,Y.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,Y.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_in_card")}),s.schema.filter(N=>N.id!==Ae?.id&&N.type!=="title").map(N=>(0,Y.jsxs)("label",{className:"nb-field-row",children:[(0,Y.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:N.visible&&!m.hiddenColumns.includes(N.id),onChange:()=>{Te(N.id)}}),(0,Y.jsx)("span",{className:"nb-field-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{className:"nb-field-name",children:N.name})]},N.id))]})]}),(0,Y.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,Y.jsxs)("button",{className:`nb-toolbar-btn${j?" nb-toolbar-btn--active":""}`,onClick:()=>re(N=>!N),children:[u("group_by"),": ",(0,Y.jsx)("strong",{children:Ae?.name??"\u2014"})]}),j&&(0,Y.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,Y.jsx)("div",{className:"nb-fields-dropdown-label",children:u("group_by_label")}),Me.map(N=>(0,Y.jsxs)("button",{className:`nb-menu-item${m.groupByColumnId===N.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...m,groupByColumnId:N.id}),re(!1)},children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{children:N.name})]},N.id))]})]}),(0,Y.jsxs)("label",{className:"nb-toolbar-btn nb-toolbar-toggle",children:[(0,Y.jsx)("input",{type:"checkbox",checked:v,onChange:N=>h(N.target.checked)}),u("hide_empty_cols")]}),(0,Y.jsxs)("label",{className:"nb-toolbar-btn nb-toolbar-toggle",children:[(0,Y.jsx)("input",{type:"checkbox",checked:b,onChange:N=>f(N.target.checked)}),u("hide_no_value_cols")]}),(0,Y.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${m.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{fe({...m,includeSubfolders:!m.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,Y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Y.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,Y.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,Y.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,Y.jsxs)("span",{className:"nb-row-count",children:[ze.length," ",ze.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,Y.jsx)($r,{status:a}),(0,Y.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:$e,style:{marginLeft:"auto"},children:[(0,Y.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${ne?" nb-toolbar-btn--active":""}`,onClick:()=>de(N=>!N),title:u("filters"),children:[(0,Y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Y.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),p.length>0&&(0,Y.jsx)("span",{className:"nb-hidden-badge",children:p.length})]}),ne&&(0,Y.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,Y.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,Y.jsx)("span",{children:u("name_column")})]}),s.schema.map(N=>(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke(N.id,N.name,Xe(N.type),N.type),children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:Xe(N.type)}),(0,Y.jsx)("span",{children:N.name})]},N.id))]})]}),(0,Y.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:nt,children:[(0,Y.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(m.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>Ce(N=>!N),title:u("conditional_formatting"),children:[(0,Y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Y.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,Y.jsx)("path",{d:"M3 9h18"}),(0,Y.jsx)("path",{d:"M3 15h18"}),(0,Y.jsx)("path",{d:"M9 3v18"})]}),(m.conditionalFormats?.length??0)>0&&(0,Y.jsx)("span",{className:"nb-hidden-badge",children:m.conditionalFormats.length})]}),ve&&(0,Y.jsx)(zr,{rules:m.conditionalFormats??[],schema:s.schema,onChange:N=>{fe({...m,conditionalFormats:N})},onClose:()=>Ce(!1)})]})]}),(0,Y.jsx)(ho,{activeFilters:p,schema:s.schema,onUpdate:ee,onRemove:A,onToggleConjunction:Le,collapsed:!!m.filtersCollapsed,onToggleCollapsed:()=>{fe({...m,filtersCollapsed:!m.filtersCollapsed})}})]});return(0,Y.jsxs)("div",{className:"nb-container",children:[x,(0,Y.jsx)("div",{className:"nb-board",ref:se,children:D.map(N=>{let X=N.value||"__no_value__";return(0,Y.jsxs)("div",{"data-col-key":X,className:`nb-board-column${Oe===X?" nb-board-column--card-over":""}${W===X?" nb-board-column--col-over":""}${(()=>{let te=m.boardColumnLimits?.[N.value];return te&&te>0&&N.rows.length>=te?" nb-board-column--over-limit":""})()}`,onDragOver:te=>{te.preventDefault(),(te.dataTransfer.types.includes(Ci)?Ci:oc)===Ci?q(X):O(X)},onDragLeave:te=>{let S=te.relatedTarget;te.currentTarget.contains(S)||(q(null),O(null))},onDrop:async te=>{te.preventDefault(),q(null),O(null);let S=te.dataTransfer.getData("nb-drag-type");if(S===Ci){let Z=te.dataTransfer.getData("nb-row-path");Z&&await ie(Z,N.value)}else if(S===oc){let Z=te.dataTransfer.getData("nb-col-value");Z!==void 0&&await me(Z,N.value)}},children:[(0,Y.jsxs)("div",{className:"nb-board-column-header",draggable:!vt,onDragStart:vt?void 0:te=>{te.stopPropagation(),te.dataTransfer.effectAllowed="move",te.dataTransfer.setData("nb-drag-type",oc),te.dataTransfer.setData("nb-col-value",N.value),te.dataTransfer.setData(oc,"")},onDragEnd:vt?void 0:()=>O(null),title:u("board_drag_reorder"),children:[(0,Y.jsx)("span",{className:"nb-board-column-drag-handle",onTouchStart:vt?te=>Tt(te,N.value):void 0,children:"\u283F"}),N.color?(0,Y.jsx)("span",{className:"nb-board-column-badge",style:{background:N.color},children:N.label}):(0,Y.jsx)("span",{className:"nb-board-column-name",children:N.label}),(()=>{let te=m.boardColumnLimits?.[N.value],S=N.rows.length,Z=te!==void 0&&te>0&&S>=te;return(0,Y.jsx)("span",{className:`nb-board-column-count ${Z?"nb-board-column-count--over":""}`,onClick:be=>{be.stopPropagation(),y(_===N.value?null:N.value)},title:u("board_set_limit"),children:te&&te>0?`${S}/${te}`:S})})()]}),_===N.value&&(0,Y.jsx)("div",{className:"nb-board-limit-input-wrapper",children:(0,Y.jsx)("input",{className:"nb-board-limit-input",type:"number",min:"0",placeholder:u("board_limit_placeholder"),defaultValue:m.boardColumnLimits?.[N.value]??"",autoFocus:!0,onKeyDown:te=>{if(te.key==="Enter"||te.key==="Escape"){let S=parseInt(te.target.value),Z={...m.boardColumnLimits};isNaN(S)||S<=0?delete Z[N.value]:Z[N.value]=S,fe({...m,boardColumnLimits:Z}),y(null)}},onBlur:te=>{let S=parseInt(te.target.value),Z={...m.boardColumnLimits};isNaN(S)||S<=0?delete Z[N.value]:Z[N.value]=S,fe({...m,boardColumnLimits:Z}),y(null)}})}),(0,Y.jsx)("div",{className:"nb-board-cards",children:(()=>{let te=m.boardColumnLimits?.[N.value],S=k.has(N.value),Z=te&&te>0&&!S?N.rows.slice(0,te):N.rows,be=N.rows.length-Z.length;return(0,Y.jsxs)(Y.Fragment,{children:[Z.map(we=>{let De=Z.length>=KS,Ye=(0,Y.jsx)(XS,{row:we,isMobile:vt,visibleCols:rt,dbFolderPath:dn,includeSubfolders:m.includeSubfolders??!1,onOpen:pt,onDragStart:pn,onTouchStart:yt,onContextMenu:en,cardStyle:m.conditionalFormats?.length?ci(we,m.conditionalFormats,s.schema):void 0},we._file.path);return De?(0,Y.jsx)(YS,{children:Ye},we._file.path):(0,Y.jsx)(Ue.Fragment,{children:Ye},we._file.path)}),be>0&&(0,Y.jsx)("button",{className:"nb-board-show-more",onClick:()=>F(we=>{let De=new Set(we);return De.add(N.value),De}),children:`+${be} ${u("board_show_more")}`}),S&&te&&te>0&&N.rows.length>te&&(0,Y.jsx)("button",{className:"nb-board-show-more",onClick:()=>F(we=>{let De=new Set(we);return De.delete(N.value),De}),children:u("board_show_less")})]})})()}),(0,Y.jsx)("button",{className:"nb-board-add-card",onClick:()=>{Pt(N.value)},children:"+ "+u("add_card")})]},X)})}),(0,Y.jsxs)(ct,{open:Q!==null,onClose:()=>ce(null),title:Q?.basename??"",children:[(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Q&&r.workspace.getLeaf().openFile(Q),ce(null)},children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,Y.jsx)("span",{children:u("open_note")})]}),(0,Y.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Q&&t.duplicateNotes([Q]),ce(null)},children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,Y.jsx)("span",{children:u("duplicate_note")})]}),(0,Y.jsx)("div",{className:"nb-menu-separator"}),(0,Y.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{Q&&t.deleteNotes([Q]),ce(null)},children:[(0,Y.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,Y.jsx)("span",{children:u("delete_note")})]})]})]})}var it=Fe(xt(),1),gb=Fe(po(),1);var G=Fe(St(),1),fb=()=>({small:u("size_small"),medium:u("size_medium"),large:u("size_large")}),QS={small:"repeat(auto-fill, minmax(160px, 1fr))",medium:"repeat(auto-fill, minmax(220px, 1fr))",large:"repeat(auto-fill, minmax(300px, 1fr))"};function ZS({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,it.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let v=c.clientX-i.x,h=c.clientY-i.y,b=_=>l({x:_.clientX-v,y:_.clientY-h}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,v)=>{let h=[...e],b=c+v;b<0||b>=h.length||([h[c],h[b]]=[h[b],h[c]],n(h))};return(0,gb.createPortal)((0,G.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,G.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,G.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,G.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,G.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,v)=>{let h=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,G.jsxs)("div",{className:"nb-sort-row",children:[(0,G.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,-1),disabled:v===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,1),disabled:v===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,G.jsx)("span",{className:"nb-sort-row-name",children:h}),(0,G.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,G.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,G.jsx)("div",{className:"nb-sort-add-row",children:(0,G.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,G.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,G.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}var JS=it.default.memo(function({row:t,cardSize:n,coverField:o,visibleCols:r,dbFolderPath:a,includeSubfolders:i,onOpen:l,cardStyle:s}){let d=Vt(),p=o?.type==="image"?t[o.id]??null:null,g=p?d.vault.getFileByPath(p):null,m=g?d.vault.getResourcePath(g):null,c=o&&o.type!=="image"?o.type==="title"?t._title:String(t[o.id]??""):null,v=t._file.parent?.path??"",h=i&&v.length>a.length?v.slice(a.length+1):"";return(0,G.jsxs)("div",{className:`nb-gallery-card nb-gallery-card--${n}`,style:s,onClick:()=>l(t._file),children:[m?(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--image",children:(0,G.jsx)("img",{src:m,alt:""})}):c?(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--text",children:(0,G.jsx)("span",{children:c})}):(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--empty",children:(0,G.jsx)("span",{className:"nb-gallery-cover-icon",children:"\u{1F4C4}"})}),(0,G.jsxs)("div",{className:"nb-gallery-body",children:[(0,G.jsx)("div",{className:"nb-gallery-title",children:t._title}),h?(0,G.jsx)("div",{className:"nb-folder-path",children:h}):null,r.length>0&&(0,G.jsx)("div",{className:"nb-gallery-props",children:r.map(b=>{let f=t[b.id];if(f==null||ht(f).trim()==="")return null;let _=Array.isArray(f)?f.join(", "):ht(f);return(0,G.jsxs)("span",{className:"nb-gallery-prop",children:[(0,G.jsxs)("span",{className:"nb-gallery-prop-name",children:[b.name,":"]}),(0,G.jsx)("span",{className:"nb-gallery-prop-value",children:_})]},b.id)})})]})]})});function _b({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,it.useState)(n),[m,c]=(0,it.useState)(!1),[v,h]=(0,it.useState)(!1),[b,f]=(0,it.useState)(!1),[_,y]=(0,it.useState)(!1),[k,F]=(0,it.useState)(!1),[T,V]=(0,it.useState)(null),[j,re]=(0,it.useState)(!1),ne=(0,it.useRef)(null),de=(0,it.useRef)(null),ve=(0,it.useRef)(null),Ce=(0,it.useRef)(null),Oe=(0,it.useRef)(null),q=(0,it.useRef)(null),W=(0,it.useRef)(null),O=(0,it.useRef)(null);(0,it.useEffect)(()=>{g(n)},[n.id]);let Q=(0,it.useCallback)(async P=>{g(P),await o(P)},[o]);(0,it.useEffect)(()=>{if(!m)return;let P=ke=>{W.current?.contains(ke.target)||ne.current&&!ne.current.contains(ke.target)&&c(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[m]),(0,it.useEffect)(()=>{if(!j)return;let P=ke=>{O.current&&!O.current.contains(ke.target)&&re(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[j]),(0,it.useEffect)(()=>{if(!v)return;let P=ke=>{W.current?.contains(ke.target)||de.current&&!de.current.contains(ke.target)&&h(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[v]),(0,it.useEffect)(()=>{if(!b)return;let P=ke=>{W.current?.contains(ke.target)||ve.current&&!ve.current.contains(ke.target)&&f(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[b]),(0,it.useEffect)(()=>{if(!_)return;let P=ke=>{W.current?.contains(ke.target)||Ce.current&&!Ce.current.contains(ke.target)&&y(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[_]),(0,it.useEffect)(()=>{if(!k)return;let P=ke=>{W.current?.contains(ke.target)||q.current?.contains(ke.target)||Oe.current&&!Oe.current.contains(ke.target)&&F(!1)};return activeDocument.addEventListener("mousedown",P),()=>activeDocument.removeEventListener("mousedown",P)},[k]);let ce=Hn(s,200),Ne=(0,it.useMemo)(()=>Vn(a,ce),[a,ce]),Be=(0,it.useMemo)(()=>no(Ne,p.sorts),[Ne,p.sorts]),{pageItems:$e,currentPage:nt,totalPages:et,setPage:fe}=wi(Be,t.pageSize),Me=(0,it.useMemo)(()=>i.schema.filter(P=>P.visible&&!p.hiddenColumns.includes(P.id)),[i.schema,p.hiddenColumns]),Ae=(0,it.useMemo)(()=>i.schema.find(P=>P.id===p.galleryCoverField)??null,[i.schema,p.galleryCoverField]),He=p.galleryCardSize??"medium",ze=QS[He],xe=(0,it.useCallback)(async P=>{let ke=P.map(A=>({id:A.id,columnId:A.columnId,operator:A.operator,value:A.value,conjunction:A.conjunction}));await Q({...p,activePills:ke})},[Q,p]),rt=(P,ke,A,ee)=>{let Le=[...s,{id:crypto.randomUUID(),columnId:P,columnName:ke,columnType:ee,icon:A,operator:Fn(ee),value:"",conjunction:"and"}];d(Le),xe(Le),c(!1)},K=P=>{let ke=s.filter(A=>A.id!==P);d(ke),xe(ke)},D=(P,ke,A)=>{let ee=s.map(Le=>Le.id===P?{...Le,operator:ke,value:A}:Le);d(ee),xe(ee)},ie=P=>{let ke=s.map(A=>A.id===P?{...A,conjunction:A.conjunction==="and"?"or":"and"}:A);d(ke),xe(ke)},me=(0,it.useCallback)(async P=>{let ke=p.hiddenColumns.includes(P)?p.hiddenColumns.filter(A=>A!==P):[...p.hiddenColumns,P];await Q({...p,hiddenColumns:ke})},[p,Q]),se=(0,it.useCallback)(async P=>{await Q({...p,sorts:P})},[p,Q]),Ve=async()=>{e&&await t.createNoteWithTemplate(e)},ge=kn(),Re=e?.parent?.path??"",yt=(0,it.useCallback)(P=>{r.workspace.getLeaf().openFile(P)},[r]);if(!e)return(0,G.jsx)("div",{className:"nb-empty-state",children:(0,G.jsx)("p",{children:u("no_database_open")})});if(l)return(0,G.jsx)("div",{className:"nb-loading",children:u("loading")});let Tt=P=>{P!=="fields"&&h(!1),P!=="cover"&&f(!1),P!=="filter"&&c(!1),P!=="sort"&&F(!1)},Pt=ge?(0,G.jsxs)(Gn,{actionBarRef:W,actions:[{id:"fields",label:u("fields"),icon:(0,G.jsx)(Sn,{}),active:v,onClick:()=>{Tt("fields"),h(P=>!P)}},{id:"cover",label:u("cover"),icon:(0,G.jsx)(Sn,{}),active:b,onClick:()=>{Tt("cover"),f(P=>!P)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,G.jsx)(Wn,{}),active:!!p.includeSubfolders,onClick:()=>{Tt(),Q({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,G.jsx)(_o,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{Tt("sort"),!k&&q.current&&V(q.current.getBoundingClientRect()),F(P=>!P)}},{id:"filter",label:u("filter"),icon:(0,G.jsx)(Un,{}),active:m,badge:s.length||void 0,onClick:()=>{Tt("filter"),c(P=>!P)}}],rowCount:Be.length,rowCountLabel:Be.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:s,onFilterUpdate:D,onFilterRemove:K,onConjunctionToggle:ie,children:[(0,G.jsx)(ct,{open:v,onClose:()=>h(!1),title:u("fields"),children:i.schema.map(P=>(0,G.jsxs)("label",{className:"nb-field-row",children:[(0,G.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:P.visible&&!p.hiddenColumns.includes(P.id),onChange:()=>{me(P.id)}}),(0,G.jsx)("span",{className:"nb-field-icon",children:Xe(P.type)}),(0,G.jsx)("span",{className:"nb-field-name",children:P.name})]},P.id))}),(0,G.jsxs)(ct,{open:b,onClose:()=>f(!1),title:u("cover"),children:[(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField?"":" nb-menu-item--active"}`,onClick:()=>{Q({...p,galleryCoverField:void 0}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,G.jsx)("span",{children:u("no_cover")})]}),i.schema.filter(P=>P.type==="text"||P.type==="title"||P.type==="image").map(P=>(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField===P.id?" nb-menu-item--active":""}`,onClick:()=>{Q({...p,galleryCoverField:P.id}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Xe(P.type)}),(0,G.jsx)("span",{children:P.name})]},P.id))]}),(0,G.jsxs)(ct,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>rt("_title","Nome","\u{1F4C4}","title"),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,G.jsx)("span",{children:u("name_column")})]}),i.schema.map(P=>(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>rt(P.id,P.name,Xe(P.type),P.type),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Xe(P.type)}),(0,G.jsx)("span",{children:P.name})]},P.id))]}),(0,G.jsxs)(ct,{open:k,onClose:()=>F(!1),title:u("sort"),children:[p.sorts.length===0&&(0,G.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((P,ke)=>{let A=P.columnId==="_title"?"Nome":i.schema.find(ee=>ee.id===P.columnId)?.name??P.columnId;return(0,G.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,G.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let ee=[...p.sorts];ke>0&&([ee[ke],ee[ke-1]]=[ee[ke-1],ee[ke]],se(ee))},disabled:ke===0,children:"\u2191"}),(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let ee=[...p.sorts];ke{se(p.sorts.map(ee=>ee.columnId===P.columnId?{...ee,direction:ee.direction==="asc"?"desc":"asc"}:ee))},children:P.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,G.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{se(p.sorts.filter(ee=>ee.columnId!==P.columnId))},children:"\xD7"})]},P.columnId)}),(()=>{let P=i.schema.filter(ee=>ee.type!=="formula"&&ee.type!=="lookup"&&ee.type!=="relation"&&ee.type!=="multiselect"),ke=new Set(p.sorts.map(ee=>ee.columnId)),A=[...ke.has("_title")?[]:[{id:"_title",name:"Nome"}],...P.filter(ee=>!ke.has(ee.id)).map(ee=>({id:ee.id,name:ee.name}))];return A.length===0?null:(0,G.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:ee=>{ee.target.value&&(se([...p.sorts,{columnId:ee.target.value,direction:"asc"}]),ee.target.value="")},children:[(0,G.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),A.map(ee=>(0,G.jsx)("option",{value:ee.id,children:ee.name},ee.id))]})})()]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:"nb-toolbar",children:[(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:de,children:[(0,G.jsx)("button",{className:`nb-toolbar-btn${v?" nb-toolbar-btn--active":""}`,onClick:()=>h(P=>!P),children:u("fields")}),v&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),i.schema.map(P=>(0,G.jsxs)("label",{className:"nb-field-row",children:[(0,G.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:P.visible&&!p.hiddenColumns.includes(P.id),onChange:()=>{me(P.id)}}),(0,G.jsx)("span",{className:"nb-field-icon",children:Xe(P.type)}),(0,G.jsx)("span",{className:"nb-field-name",children:P.name})]},P.id))]})]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ve,children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn${b?" nb-toolbar-btn--active":""}`,onClick:()=>f(P=>!P),children:[u("cover"),": ",(0,G.jsx)("strong",{children:Ae?.name??u("no_cover")})]}),b&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("cover_field_label")}),(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField?"":" nb-menu-item--active"}`,onClick:()=>{Q({...p,galleryCoverField:void 0}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,G.jsx)("span",{children:u("no_cover")})]}),i.schema.filter(P=>P.type==="text"||P.type==="title"||P.type==="image").map(P=>(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField===P.id?" nb-menu-item--active":""}`,onClick:()=>{Q({...p,galleryCoverField:P.id}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Xe(P.type)}),(0,G.jsx)("span",{children:P.name})]},P.id))]})]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Ce,children:[(0,G.jsx)("button",{className:`nb-toolbar-btn${_?" nb-toolbar-btn--active":""}`,onClick:()=>y(P=>!P),children:fb()[He]}),_&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("card_size_label")}),["small","medium","large"].map(P=>(0,G.jsx)("button",{className:`nb-menu-item${He===P?" nb-menu-item--active":""}`,onClick:()=>{Q({...p,galleryCardSize:P}),y(!1)},children:fb()[P]},P))]})]}),(0,G.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{Q({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,G.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,G.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,G.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,G.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,G.jsxs)("span",{className:"nb-row-count",children:[Be.length," ",Be.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ne,style:{marginLeft:"auto"},children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${m?" nb-toolbar-btn--active":""}`,onClick:()=>c(P=>!P),title:u("filters"),children:[(0,G.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,G.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,G.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>rt("_title","Nome","\u{1F4C4}","title"),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,G.jsx)("span",{children:u("name_column")})]}),i.schema.map(P=>(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>rt(P.id,P.name,Xe(P.type),P.type),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Xe(P.type)}),(0,G.jsx)("span",{children:P.name})]},P.id))]})]}),(0,G.jsxs)("button",{ref:q,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!k&&q.current&&V(q.current.getBoundingClientRect()),F(P=>!P)},children:[(0,G.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),k&&T&&(0,G.jsx)(ZS,{sorts:p.sorts,schema:i.schema,onSortChange:P=>{se(P)},onClose:()=>F(!1),anchorRect:T,panelRef:Oe}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:O,children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(p.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>re(P=>!P),title:u("conditional_formatting"),children:[(0,G.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,G.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,G.jsx)("path",{d:"M3 9h18"}),(0,G.jsx)("path",{d:"M3 15h18"}),(0,G.jsx)("path",{d:"M9 3v18"})]}),(p.conditionalFormats?.length??0)>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:p.conditionalFormats.length})]}),j&&(0,G.jsx)(zr,{rules:p.conditionalFormats??[],schema:i.schema,onChange:P=>{Q({...p,conditionalFormats:P})},onClose:()=>re(!1)})]})]}),(0,G.jsx)(ho,{activeFilters:s,schema:i.schema,onUpdate:D,onRemove:K,onToggleConjunction:ie,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{Q({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return(0,G.jsxs)("div",{className:"nb-container",children:[Pt,(0,G.jsxs)("div",{className:"nb-gallery",style:{gridTemplateColumns:ze},children:[$e.map(P=>{let ke=p.conditionalFormats?.length?ci(P,p.conditionalFormats,i.schema):void 0;return(0,G.jsx)(JS,{row:P,cardSize:He,coverField:Ae,visibleCols:Me,dbFolderPath:Re,includeSubfolders:p.includeSubfolders??!1,onOpen:yt,cardStyle:ke},P._file.path)}),(0,G.jsx)("div",{className:"nb-gallery-card nb-gallery-card--add",onClick:()=>{Ve()},children:(0,G.jsx)("div",{className:"nb-gallery-add-inner",children:"+ "+u("add_entry")})})]}),(0,G.jsx)(yi,{currentPage:nt,totalPages:et,onPageChange:fe})]})}var at=Fe(xt(),1);var B=Fe(St(),1),hb=()=>[u("day_sun"),u("day_mon"),u("day_tue"),u("day_wed"),u("day_thu"),u("day_fri"),u("day_sat")],vb=()=>[u("month_january"),u("month_february"),u("month_march"),u("month_april"),u("month_may"),u("month_june"),u("month_july"),u("month_august"),u("month_september"),u("month_october"),u("month_november"),u("month_december")];function eN(e,t){let n=new Date(e,t,1).getDay(),o=new Date(e,t+1,0).getDate(),r=[];for(let a=0;a=0?e.slice(0,t):e).split("-");if(o.length!==3)return null;let r=parseInt(o[0]),a=parseInt(o[1])-1,i=parseInt(o[2]);if(isNaN(r)||isNaN(a)||isNaN(i))return null;if(t>=0){let s=e.slice(t+1).split(":");if(s.length>=2){let d=parseInt(s[0]),p=parseInt(s[1]);if(!isNaN(d)&&!isNaN(p))return{year:r,month:a,day:i,hour:d,minute:p}}}return{year:r,month:a,day:i}}function yb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{status:a,trackSave:i}=Br(),l=new Date,{rows:s,config:d,loading:p,activeFilters:g,setActiveFilters:m}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[c,v]=(0,at.useState)(n),[h,b]=(0,at.useState)(l.getFullYear()),[f,_]=(0,at.useState)(l.getMonth()),[y,k]=(0,at.useState)(l.getDate()),[F,T]=(0,at.useState)(!1),[V,j]=(0,at.useState)(!1),[re,ne]=(0,at.useState)(!1),[de,ve]=(0,at.useState)(null),[Ce,Oe]=(0,at.useState)(null),[q,W]=(0,at.useState)(null),O=(0,at.useRef)(null),Q=(0,at.useRef)(null),[ce,Ne]=(0,at.useState)(()=>{let x=new Date;return x.getHours()*60+x.getMinutes()}),Be=(0,at.useRef)(null),$e=(0,at.useRef)(null),nt=(0,at.useRef)(null),et=(0,at.useRef)(null);(0,at.useEffect)(()=>{v(n)},[n.id]),(0,at.useEffect)(()=>{let x=()=>{let X=new Date;Ne(X.getHours()*60+X.getMinutes())},N=window.setInterval(x,6e4);return()=>window.clearInterval(N)},[]);let fe=(0,at.useCallback)(async x=>{v(x),await o(x)},[o]),Me=c.calendarViewMode??"month";(0,at.useEffect)(()=>{if(!F)return;let x=N=>{et.current?.contains(N.target)||Be.current&&!Be.current.contains(N.target)&&T(!1)};return activeDocument.addEventListener("mousedown",x),()=>activeDocument.removeEventListener("mousedown",x)},[F]),(0,at.useEffect)(()=>{if(!V)return;let x=N=>{et.current?.contains(N.target)||$e.current&&!$e.current.contains(N.target)&&j(!1)};return activeDocument.addEventListener("mousedown",x),()=>activeDocument.removeEventListener("mousedown",x)},[V]),(0,at.useEffect)(()=>{if(!re)return;let x=N=>{et.current?.contains(N.target)||nt.current&&!nt.current.contains(N.target)&&ne(!1)};return activeDocument.addEventListener("mousedown",x),()=>activeDocument.removeEventListener("mousedown",x)},[re]);let Ae=Hn(g,200),He=(0,at.useMemo)(()=>Vn(s,Ae),[s,Ae]),ze=(0,at.useMemo)(()=>d.schema.find(x=>x.id===c.calendarDateField)??null,[d.schema,c.calendarDateField]),xe=(0,at.useMemo)(()=>d.schema.filter(x=>x.visible&&!c.hiddenColumns.includes(x.id)),[d.schema,c.hiddenColumns]),rt=(0,at.useMemo)(()=>eN(h,f),[h,f]),K=(0,at.useMemo)(()=>Me==="week"?tN(h,f,y):[],[Me,h,f,y]),D=(0,at.useMemo)(()=>{let x=new Map;if(!ze)return x;for(let N of He){let X=jr(N[ze.id]);if(!X)continue;let ue=ki(X.year,X.month,X.day);if(Me==="week"){if(K.some(te=>te.getFullYear()===X.year&&te.getMonth()===X.month&&te.getDate()===X.day)){let te=x.get(ue)??[];te.push(N),x.set(ue,te)}}else if(X.year===h&&X.month===f){let oe=x.get(ue)??[];oe.push(N),x.set(ue,oe)}}for(let[N,X]of x)X.sort((ue,oe)=>{let te=jr(ue[ze.id]),S=jr(oe[ze.id]),Z=(te?.hour??-1)*60+(te?.minute??-1),be=(S?.hour??-1)*60+(S?.minute??-1);return Z-be}),x.set(N,X);return x},[He,ze,h,f,y,Me,K]),ie=(0,at.useMemo)(()=>ze?He.filter(x=>{let N=x[ze.id];return!N||ht(N).trim()===""}):[],[He,ze]),me=(0,at.useMemo)(()=>{if(Me!=="week"||!ze)return null;let x=null;for(let[,N]of D)for(let X of N){let ue=jr(X[ze.id]);if(ue&&ue.hour!==void 0&&ue.minute!==void 0){let oe=ue.hour*60+ue.minute;(x===null||oe0?K[0].toISOString():"";(0,at.useEffect)(()=>{if(Me!=="week"||p)return;let x=window.setTimeout(()=>{let N=Q.current;if(!N||N.scrollHeight<=N.clientHeight)return;let ue=48*24,te=(me!==null?Math.min(me,ce):ce)/1440*ue,S=N.clientHeight;N.scrollTo({top:Math.max(0,te-S*.25),behavior:"smooth"})},100);return()=>window.clearTimeout(x)},[Me,se,p]);let Ve=(0,at.useCallback)(async x=>{let N=x.map(X=>({id:X.id,columnId:X.columnId,operator:X.operator,value:X.value,conjunction:X.conjunction}));await fe({...c,activePills:N})},[fe,c]),ge=(x,N,X,ue)=>{let oe=[...g,{id:crypto.randomUUID(),columnId:x,columnName:N,columnType:ue,icon:X,operator:Fn(ue),value:"",conjunction:"and"}];m(oe),Ve(oe),T(!1)},Re=x=>{let N=g.filter(X=>X.id!==x);m(N),Ve(N)},yt=(x,N,X)=>{let ue=g.map(oe=>oe.id===x?{...oe,operator:N,value:X}:oe);m(ue),Ve(ue)},Tt=x=>{let N=g.map(X=>X.id===x?{...X,conjunction:X.conjunction==="and"?"or":"and"}:X);m(N),Ve(N)},Pt=(0,at.useCallback)(async x=>{let N=c.hiddenColumns.includes(x)?c.hiddenColumns.filter(X=>X!==x):[...c.hiddenColumns,x];await fe({...c,hiddenColumns:N})},[c,fe]),P=()=>{if(Me==="week"){let x=new Date(h,f,y-7);b(x.getFullYear()),_(x.getMonth()),k(x.getDate())}else f===0?(_(11),b(x=>x-1)):_(x=>x-1)},ke=()=>{if(Me==="week"){let x=new Date(h,f,y+7);b(x.getFullYear()),_(x.getMonth()),k(x.getDate())}else f===11?(_(0),b(x=>x+1)):_(x=>x+1)},A=()=>{b(l.getFullYear()),_(l.getMonth()),k(l.getDate())},ee=async(x,N,X)=>{if(!e||!ze)return;let ue=await t.createNoteWithTemplate(e),oe=`${x}-${String(N+1).padStart(2,"0")}-${String(X).padStart(2,"0")}`;await i(r.fileManager.processFrontMatter(ue,te=>{te[ze.id]=oe}))},Le=(x,N)=>{x.dataTransfer.setData("nb-cal-path",N._file.path),x.dataTransfer.effectAllowed="move",x.stopPropagation()},Te=(x,N)=>{x.dataTransfer.types.includes("nb-cal-path")&&(x.preventDefault(),x.dataTransfer.dropEffect="move",ve(N))},vt=x=>{x.currentTarget.contains(x.relatedTarget)||ve(null)},dn=async(x,N,X,ue)=>{x.preventDefault(),x.stopPropagation(),ve(null);let oe=x.dataTransfer.getData("nb-cal-path");if(!oe||!ze)return;let te=r.vault.getFileByPath(oe);if(!te)return;let S=`${N}-${String(X+1).padStart(2,"0")}-${String(ue).padStart(2,"0")}`;await i(r.fileManager.processFrontMatter(te,Z=>{let be=Z[ze.id];typeof be=="string"&&be.includes("T")?Z[ze.id]=`${S}T${be.split("T")[1]}`:Z[ze.id]=S}))},pt=kn();if(!e)return(0,B.jsx)("div",{className:"nb-empty-state",children:(0,B.jsx)("p",{children:u("no_database_open")})});if(p)return(0,B.jsx)("div",{className:"nb-loading",children:u("loading")});let pn=l.getFullYear()===h&&l.getMonth()===f?l.getDate():null,en=x=>{x!=="datefield"&&ne(!1),x!=="fields"&&j(!1),x!=="filter"&&T(!1)},tn=pt?(0,B.jsxs)(Gn,{actionBarRef:et,actions:[{id:"datefield",label:u("date_field"),icon:(0,B.jsx)(Sn,{}),active:re,onClick:()=>{en("datefield"),ne(x=>!x)}},{id:"fields",label:u("fields"),icon:(0,B.jsx)(Sn,{}),active:V,onClick:()=>{en("fields"),j(x=>!x)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,B.jsx)(Wn,{}),active:!!c.includeSubfolders,onClick:()=>{en(),fe({...c,includeSubfolders:!c.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,B.jsx)(Un,{}),active:F,badge:g.length||void 0,onClick:()=>{en("filter"),T(x=>!x)}}],rowCount:He.length,rowCountLabel:He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:g,onFilterUpdate:yt,onFilterRemove:Re,onConjunctionToggle:Tt,children:[(0,B.jsxs)(ct,{open:re,onClose:()=>ne(!1),title:u("date_field"),children:[(0,B.jsxs)("button",{className:`nb-menu-item${c.calendarDateField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,calendarDateField:void 0}),ne(!1)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,B.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="date").map(x=>(0,B.jsxs)("button",{className:`nb-menu-item${c.calendarDateField===x.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,calendarDateField:x.id}),ne(!1)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,B.jsx)("span",{children:x.name})]},x.id))]}),(0,B.jsx)(ct,{open:V,onClose:()=>j(!1),title:u("fields"),children:d.schema.map(x=>(0,B.jsxs)("label",{className:"nb-field-row",children:[(0,B.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:x.visible&&!c.hiddenColumns.includes(x.id),onChange:()=>{Pt(x.id)}}),(0,B.jsx)("span",{className:"nb-field-icon",children:Xe(x.type)}),(0,B.jsx)("span",{className:"nb-field-name",children:x.name})]},x.id))}),(0,B.jsxs)(ct,{open:F,onClose:()=>T(!1),title:u("filter"),children:[(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge("_title","Nome","\u{1F4C4}","title"),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:u("name_column")})]}),d.schema.map(x=>(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge(x.id,x.name,Xe(x.type),x.type),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:Xe(x.type)}),(0,B.jsx)("span",{children:x.name})]},x.id))]}),(0,B.jsx)("div",{className:"nb-cal-view-toggle",style:{margin:"4px 12px"},children:["month","week"].map(x=>(0,B.jsx)("button",{className:`nb-cal-view-btn${Me===x?" nb-cal-view-btn--active":""}`,onClick:()=>{fe({...c,calendarViewMode:x})},children:x==="month"?u("calendar_view_month"):u("calendar_view_week")},x))}),(0,B.jsxs)("div",{className:"nb-cal-nav",style:{padding:"4px 12px"},children:[(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:P,title:Me==="week"?u("calendar_prev_week"):u("calendar_prev_month"),children:"\u2039"}),(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:A,children:u("calendar_today")}),(0,B.jsx)("span",{className:"nb-cal-month-label",children:Me==="week"?bb(K):`${vb()[f]} ${h}`}),(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:ke,title:Me==="week"?u("calendar_next_week"):u("calendar_next_month"),children:"\u203A"})]})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"nb-toolbar",children:[(0,B.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:nt,children:[(0,B.jsxs)("button",{className:`nb-toolbar-btn${re?" nb-toolbar-btn--active":""}`,onClick:()=>ne(x=>!x),children:[u("date_field"),": ",(0,B.jsx)("strong",{children:ze?.name??u("none_value")})]}),re&&(0,B.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,B.jsx)("div",{className:"nb-fields-dropdown-label",children:u("date_field_label")}),(0,B.jsxs)("button",{className:`nb-menu-item${c.calendarDateField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,calendarDateField:void 0}),ne(!1)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,B.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="date").map(x=>(0,B.jsxs)("button",{className:`nb-menu-item${c.calendarDateField===x.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,calendarDateField:x.id}),ne(!1)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,B.jsx)("span",{children:x.name})]},x.id))]})]}),(0,B.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:$e,children:[(0,B.jsx)("button",{className:`nb-toolbar-btn${V?" nb-toolbar-btn--active":""}`,onClick:()=>j(x=>!x),children:u("fields")}),V&&(0,B.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,B.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),d.schema.map(x=>(0,B.jsxs)("label",{className:"nb-field-row",children:[(0,B.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:x.visible&&!c.hiddenColumns.includes(x.id),onChange:()=>{Pt(x.id)}}),(0,B.jsx)("span",{className:"nb-field-icon",children:Xe(x.type)}),(0,B.jsx)("span",{className:"nb-field-name",children:x.name})]},x.id))]})]}),(0,B.jsx)("div",{className:"nb-cal-view-toggle",children:["month","week"].map(x=>(0,B.jsx)("button",{className:`nb-cal-view-btn${Me===x?" nb-cal-view-btn--active":""}`,onClick:()=>{fe({...c,calendarViewMode:x})},children:x==="month"?u("calendar_view_month"):u("calendar_view_week")},x))}),(0,B.jsxs)("div",{className:"nb-cal-nav",children:[(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:P,title:Me==="week"?u("calendar_prev_week"):u("calendar_prev_month"),children:"\u2039"}),(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:A,children:u("calendar_today")}),(0,B.jsx)("span",{className:"nb-cal-month-label",children:Me==="week"?bb(K):`${vb()[f]} ${h}`}),(0,B.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:ke,title:Me==="week"?u("calendar_next_week"):u("calendar_next_month"),children:"\u203A"})]}),(0,B.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${c.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{fe({...c,includeSubfolders:!c.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,B.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,B.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,B.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,B.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,B.jsxs)("span",{className:"nb-row-count",children:[He.length," ",He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,B.jsx)($r,{status:a}),(0,B.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,style:{marginLeft:"auto"},children:[(0,B.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${F?" nb-toolbar-btn--active":""}`,onClick:()=>T(x=>!x),title:u("filters"),children:[(0,B.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,B.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),g.length>0&&(0,B.jsx)("span",{className:"nb-hidden-badge",children:g.length})]}),F&&(0,B.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,B.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge("_title","Nome","\u{1F4C4}","title"),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:u("name_column")})]}),d.schema.map(x=>(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge(x.id,x.name,Xe(x.type),x.type),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:Xe(x.type)}),(0,B.jsx)("span",{children:x.name})]},x.id))]})]})]}),(0,B.jsx)(ho,{activeFilters:g,schema:d.schema,onUpdate:yt,onRemove:Re,onToggleConjunction:Tt,collapsed:!!c.filtersCollapsed,onToggleCollapsed:()=>{fe({...c,filtersCollapsed:!c.filtersCollapsed})}})]});return(0,B.jsxs)("div",{className:"nb-container",children:[tn,ze?(0,B.jsxs)(B.Fragment,{children:[Me==="week"?(0,B.jsxs)("div",{className:"nb-cal-week-container",children:[(0,B.jsxs)("div",{className:"nb-cal-week-allday",children:[(0,B.jsx)("div",{className:"nb-cal-week-time-gutter nb-cal-week-allday-label",children:u("calendar_all_day")}),K.map(x=>{let N=ki(x.getFullYear(),x.getMonth(),x.getDate()),X=(D.get(N)??[]).filter(ue=>{let oe=jr(ue[ze.id]);return!oe||oe.hour===void 0});return(0,B.jsx)("div",{className:"nb-cal-week-allday-cell",onClick:()=>{ee(x.getFullYear(),x.getMonth(),x.getDate())},onDragOver:ue=>Te(ue,x.getDate()),onDragLeave:vt,onDrop:ue=>{dn(ue,x.getFullYear(),x.getMonth(),x.getDate())},children:X.map(ue=>(0,B.jsx)("div",{className:"nb-cal-card nb-cal-card--allday",draggable:!0,onDragStart:oe=>Le(oe,ue),onClick:oe=>{oe.stopPropagation(),r.workspace.getLeaf().openFile(ue._file)},children:(0,B.jsx)("span",{className:"nb-cal-card-title",children:ue._title})},ue._file.path))},N)})]}),(0,B.jsxs)("div",{className:"nb-cal-week-header",children:[(0,B.jsx)("div",{className:"nb-cal-week-time-gutter"}),K.map(x=>{let N=x.getFullYear()===l.getFullYear()&&x.getMonth()===l.getMonth()&&x.getDate()===l.getDate();return(0,B.jsxs)("div",{className:`nb-cal-week-day-header${N?" nb-cal-week-day-header--today":""}`,children:[hb()[x.getDay()]," ",x.getDate()]},x.toISOString())})]}),(0,B.jsxs)("div",{className:"nb-cal-week-body",ref:Q,children:[K.some(x=>x.getFullYear()===l.getFullYear()&&x.getMonth()===l.getMonth()&&x.getDate()===l.getDate())&&(0,B.jsx)("div",{className:"nb-cal-now-line",style:{top:`${ce/1440*48*24}px`}}),(0,B.jsx)("div",{className:"nb-cal-week-time-gutter",children:Array.from({length:24},(x,N)=>(0,B.jsx)("div",{className:"nb-cal-week-hour-label",children:Om(N,0)},N))}),K.map(x=>{let N=ki(x.getFullYear(),x.getMonth(),x.getDate()),X=x.getFullYear()===l.getFullYear()&&x.getMonth()===l.getMonth()&&x.getDate()===l.getDate(),ue=(D.get(N)??[]).filter(oe=>{let te=jr(oe[ze.id]);return te&&te.hour!==void 0});return(0,B.jsxs)("div",{className:`nb-cal-week-day-col${X?" nb-cal-week-day-col--today":""}`,onClick:()=>{ee(x.getFullYear(),x.getMonth(),x.getDate())},onDragOver:oe=>Te(oe,x.getDate()),onDragLeave:vt,onDrop:oe=>{dn(oe,x.getFullYear(),x.getMonth(),x.getDate())},children:[Array.from({length:24},(oe,te)=>(0,B.jsx)("div",{className:"nb-cal-week-hour-slot"},te)),ue.map(oe=>{let te=jr(oe[ze.id]);if(!te||te.hour===void 0||te.minute===void 0)return null;let S=(te.hour*60+te.minute)/1440*100;return(0,B.jsx)("div",{className:"nb-cal-card nb-cal-card--timed",draggable:!0,onDragStart:Z=>Le(Z,oe),onClick:Z=>{Z.stopPropagation(),r.workspace.getLeaf().openFile(oe._file)},style:{top:`${S}%`},children:(0,B.jsxs)("div",{className:"nb-cal-card-title-row",children:[(0,B.jsx)("span",{className:"nb-cal-time-badge",children:Om(te.hour,te.minute)}),(0,B.jsx)("span",{className:"nb-cal-card-title",children:oe._title})]})},oe._file.path)})]},N)})]})]}):(0,B.jsxs)("div",{className:"nb-cal-grid",children:[hb().map(x=>(0,B.jsx)("div",{className:"nb-cal-day-header",children:x},x)),rt.map((x,N)=>{if(x===null)return(0,B.jsx)("div",{className:"nb-cal-cell nb-cal-cell--outside"},`empty-${N}`);let X=x===pn,ue=x===de,oe=D.get(ki(h,f,x))??[];return(0,B.jsxs)("div",{className:`nb-cal-cell${X?" nb-cal-cell--today":""}${ue?" nb-cal-cell--drag-over":""}`,onClick:pt?void 0:()=>{ee(h,f,x)},onDragOver:te=>Te(te,x),onDragLeave:vt,onDrop:te=>{dn(te,h,f,x)},title:pt?void 0:u("calendar_click_to_create"),onTouchStart:pt?()=>{O.current=window.setTimeout(()=>{W({year:h,month:f,day:x})},500)}:void 0,onTouchMove:pt?()=>{O.current&&(window.clearTimeout(O.current),O.current=null)}:void 0,onTouchEnd:pt?()=>{O.current&&(window.clearTimeout(O.current),O.current=null)}:void 0,children:[(0,B.jsx)("div",{className:"nb-cal-cell-header",children:(0,B.jsx)("span",{className:`nb-cal-day-num${X?" nb-cal-day-num--today":""}`,children:x})}),(0,B.jsx)("div",{className:"nb-cal-cell-body",children:(()=>{let S=pt&&oe.length>1?oe.slice(0,1):oe,Z=pt?oe.length-S.length:0,be=ki(h,f,x);return(0,B.jsxs)(B.Fragment,{children:[S.map(we=>(0,B.jsxs)("div",{className:"nb-cal-card",draggable:!pt,onDragStart:pt?void 0:De=>Le(De,we),onClick:De=>{De.stopPropagation(),r.workspace.getLeaf().openFile(we._file)},children:[(0,B.jsxs)("div",{className:"nb-cal-card-title-row",children:[ze&&(()=>{let De=nN(we,ze.id);return De?(0,B.jsx)("span",{className:"nb-cal-time-badge",children:De}):null})(),(0,B.jsx)("span",{className:"nb-cal-card-title",children:we._title})]}),!pt&&(()=>{let De=e?.parent?.path??"",Ye=we._file.parent?.path??"",We=c.includeSubfolders&&Ye.length>De.length?Ye.slice(De.length+1):"";return We?(0,B.jsx)("div",{className:"nb-folder-path",children:We}):null})(),!pt&&xe.length>0&&(0,B.jsx)("div",{className:"nb-cal-card-props",children:xe.map(De=>{let Ye=we[De.id];if(Ye==null||ht(Ye).trim()==="")return null;let We=Array.isArray(Ye)?Ye.join(", "):ht(Ye);return(0,B.jsx)("span",{className:"nb-cal-card-prop",children:We},De.id)})})]},we._file.path)),Z>0&&(0,B.jsxs)("button",{className:"nb-cal-more-badge",onClick:we=>{we.stopPropagation(),Oe(be)},children:["+",Z]})]})})()})]},x)})]}),ie.length>0&&(0,B.jsxs)("div",{className:"nb-cal-no-date",children:[(0,B.jsxs)("div",{className:"nb-cal-no-date-title",children:[u("calendar_no_date_section")," (",ie.length,")"]}),(0,B.jsx)("div",{className:"nb-cal-no-date-list",children:ie.map(x=>(0,B.jsxs)("div",{className:"nb-cal-card nb-cal-card--no-date",draggable:!0,onDragStart:N=>Le(N,x),onClick:()=>{r.workspace.getLeaf().openFile(x._file)},children:[(0,B.jsx)("span",{className:"nb-cal-card-title",children:x._title}),(()=>{let N=e?.parent?.path??"",X=x._file.parent?.path??"",ue=c.includeSubfolders&&X.length>N.length?X.slice(N.length+1):"";return ue?(0,B.jsx)("div",{className:"nb-folder-path",children:ue}):null})()]},x._file.path))})]})]}):(0,B.jsx)("div",{className:"nb-cal-no-field",children:(0,B.jsx)("p",{children:u("calendar_no_date_field")})}),(0,B.jsx)(ct,{open:Ce!==null,onClose:()=>Oe(null),title:Ce??"",children:(Ce!==null?D.get(Ce)??[]:[]).map(x=>(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>{r.workspace.getLeaf().openFile(x._file),Oe(null)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:x._title})]},x._file.path))}),(0,B.jsx)(ct,{open:q!==null,onClose:()=>W(null),title:q?`${q.day}/${q.month+1}/${q.year}`:"",children:q&&(()=>{let x=ki(q.year,q.month,q.day),N=D.get(x)??[];return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>{ee(q.year,q.month,q.day),W(null)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u2795"}),(0,B.jsx)("span",{children:u("add_card")})]}),N.length>0&&(0,B.jsx)("div",{className:"nb-menu-separator"}),N.map(X=>(0,B.jsxs)(at.Fragment,{children:[(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>{r.workspace.getLeaf().openFile(X._file),W(null)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:X._title})]}),(0,B.jsxs)("div",{className:"nb-cal-day-actions",children:[(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>{t.duplicateNotes([X._file]),W(null)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,B.jsx)("span",{children:u("duplicate_note")})]}),(0,B.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{t.deleteNotes([X._file]),W(null)},children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,B.jsx)("span",{children:u("delete_note")})]})]})]},X._file.path))]})})()})]})}var Qe=Fe(xt(),1);var $=Fe(St(),1),wb=200,Vm=34,Cb=28,rc=56,$m=()=>[u("month_short_jan"),u("month_short_feb"),u("month_short_mar"),u("month_short_apr"),u("month_short_may"),u("month_short_jun"),u("month_short_jul"),u("month_short_aug"),u("month_short_sep"),u("month_short_oct"),u("month_short_nov"),u("month_short_dec")],oN={days:30,weeks:80,months:100},rN={days:730,weeks:156,months:48},kb=()=>({days:u("zoom_days"),weeks:u("zoom_weeks"),months:u("zoom_months")});function $o(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Bm(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function Si(e){if(!e||typeof e!="string")return null;let t=e.split("-");if(t.length!==3)return null;let n=parseInt(t[0]),o=parseInt(t[1])-1,r=parseInt(t[2]);return isNaN(n)||isNaN(o)||isNaN(r)?null:new Date(n,o,r)}function aN(e,t){if(e==="months")return new Date(t.getFullYear()-1,0,1);if(e==="weeks"){let n=$o(t,-546);return $o(n,-n.getDay())}return new Date(t.getFullYear()-1,0,1)}function zm(e,t,n,o){if(t==="days")return Math.round((e.getTime()-n.getTime())/864e5)*o;if(t==="weeks")return(e.getTime()-n.getTime())/864e5/7*o;let r=(e.getFullYear()-n.getFullYear())*12+(e.getMonth()-n.getMonth()),a=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return(r+(e.getDate()-1)/a)*o}function Sb(e,t,n,o){return t==="days"?$o(n,Math.round(e/o)):t==="weeks"?$o(n,Math.round(e/o*7)):Bm(n,Math.floor(e/o))}function iN(e,t,n,o){let r=[],a=[];if(e==="months"){for(let s=0;si.length?h.slice(i.length+1):"";return(0,$.jsxs)("div",{className:"nb-tl-bar",style:{left:n,width:o,top:(Vm-22)/2,height:22},onClick:()=>{r?c(t._file):m(t._file)},onContextMenu:r?void 0:f=>{f.preventDefault(),c(t._file)},title:r?void 0:t._title,children:[(0,$.jsx)("div",{className:"nb-tl-bar-handle nb-tl-bar-handle--left",onMouseDown:f=>{f.stopPropagation(),f.preventDefault(),v(t._file.path,"left",f.clientX,s,d,p,g)}}),(0,$.jsx)("span",{className:"nb-tl-bar-title",children:t._title}),b?(0,$.jsx)("span",{className:"nb-folder-path",style:{marginLeft:4},children:b}):null,a.map(f=>{let _=t[f.id];if(!_||ht(_).trim()==="")return null;let y=Array.isArray(_)?_.join(", "):ht(_);return(0,$.jsxs)("span",{className:"nb-tl-bar-field",children:[" \xB7 ",y]},f.id)}),(0,$.jsx)("div",{className:"nb-tl-bar-handle nb-tl-bar-handle--right",onMouseDown:f=>{f.stopPropagation(),f.preventDefault(),v(t._file.path,"right",f.clientX,s,d,p,g)}})]})});function Nb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{status:a,trackSave:i}=Br(),l=(0,Qe.useMemo)(()=>new Date,[]),{rows:s,config:d,loading:p,activeFilters:g,setActiveFilters:m}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[c,v]=(0,Qe.useState)(n),[h,b]=(0,Qe.useState)(!1),[f,_]=(0,Qe.useState)(!1),[y,k]=(0,Qe.useState)(!1),[F,T]=(0,Qe.useState)(!1),[V,j]=(0,Qe.useState)(!1),[re,ne]=(0,Qe.useState)(!0),[de,ve]=(0,Qe.useState)(null),[Ce,Oe]=(0,Qe.useState)(0),[q,W]=(0,Qe.useState)(null),O=(0,Qe.useRef)(null),Q=(0,Qe.useRef)(null),ce=(0,Qe.useRef)(null),Ne=(0,Qe.useRef)(null),Be=(0,Qe.useRef)(null),$e=(0,Qe.useRef)(null),nt=(0,Qe.useRef)(null),et=(0,Qe.useRef)(!1);(0,Qe.useEffect)(()=>{v(n)},[n.id]);let fe=(0,Qe.useCallback)(async S=>{v(S),await o(S)},[o]),Me=(S,Z,be)=>(0,Qe.useEffect)(()=>{if(!S)return;let we=De=>{nt.current?.contains(De.target)||Z.current&&!Z.current.contains(De.target)&&be(!1)};return activeDocument.addEventListener("mousedown",we),()=>activeDocument.removeEventListener("mousedown",we)},[S]);Me(h,O,b),Me(f,Q,_),Me(y,ce,k),Me(F,Ne,T),Me(V,Be,j);let Ae=c.timelineZoom??"months",He=oN[Ae],ze=rN[Ae],xe=(0,Qe.useMemo)(()=>aN(Ae,l),[Ae,l]),rt=ze*He,K=(0,Qe.useMemo)(()=>iN(Ae,xe,He,ze),[Ae,xe,He,ze]),D=(0,Qe.useMemo)(()=>zm(l,Ae,xe,He),[l,Ae,xe,He]);(0,Qe.useEffect)(()=>{if(!de)return;let S=we=>Oe(we.clientX-de.startX),Z=async we=>{let De=we.clientX-de.startX;if(ve(null),Oe(0),activeDocument.body.classList.remove("nb-tl-resizing"),Math.abs(De)<2)return;et.current=!0,window.setTimeout(()=>{et.current=!1},200);let{handle:Ye,origBarLeft:We,origBarWidth:H,startFieldId:je,endFieldId:Pe,filePath:mt}=de,lt=We,bt=H;if(Ye==="left"?(lt=We+De,bt=H-De):bt=H+De,bt`${Dt.getFullYear()}-${String(Dt.getMonth()+1).padStart(2,"0")}-${String(Dt.getDate()).padStart(2,"0")}`,Bt=r.vault.getAbstractFileByPath(mt);Bt&&await i(r.fileManager.processFrontMatter(Bt,Dt=>{Ye==="left"&&je&&(Dt[je]=$t(Sb(lt,Ae,xe,He))),Ye==="right"&&Pe&&(Dt[Pe]=$t(Sb(lt+bt-He,Ae,xe,He)))}))};activeDocument.body.classList.add("nb-tl-resizing");let be=we=>{Z(we)};return window.addEventListener("mousemove",S),window.addEventListener("mouseup",be),()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",be)}},[de,Ae,xe,He,r]),(0,Qe.useEffect)(()=>{window.requestAnimationFrame(()=>{if(!$e.current)return;let S=Math.max(0,D-$e.current.clientWidth*.3);$e.current.scrollLeft=S})},[Ae]);let ie=Hn(g,200),me=(0,Qe.useMemo)(()=>Vn(s,ie),[s,ie]),se=(0,Qe.useMemo)(()=>no(me,c.sorts),[me,c.sorts]),Ve=(0,Qe.useMemo)(()=>d.schema.find(S=>S.id===c.timelineStartField)??null,[d.schema,c.timelineStartField]),ge=(0,Qe.useMemo)(()=>d.schema.find(S=>S.id===c.timelineEndField)??null,[d.schema,c.timelineEndField]),Re=(0,Qe.useMemo)(()=>d.schema.find(S=>S.id===c.timelineGroupByField)??null,[d.schema,c.timelineGroupByField]),yt=(0,Qe.useMemo)(()=>d.schema.filter(S=>S.visible&&!c.hiddenColumns.includes(S.id)&&S.id!==c.timelineStartField&&S.id!==c.timelineEndField),[d.schema,c.hiddenColumns,c.timelineStartField,c.timelineEndField]),Tt=(0,Qe.useMemo)(()=>Ve?me.filter(S=>!Si(S[Ve.id])):[],[me,Ve]),Pt=(0,Qe.useMemo)(()=>{let S=H=>{if(!Ve)return{kind:"row",row:H,barLeft:null,barWidth:null};let je=Si(H[Ve.id]);if(!je)return{kind:"row",row:H,barLeft:null,barWidth:null};let mt=(ge?Si(H[ge.id]):null)??je,lt=Math.max(0,zm(je,Ae,xe,He)),bt=zm(mt,Ae,xe,He)+He;return{kind:"row",row:H,barLeft:lt,barWidth:Math.max(8,bt-lt)}},Z=Ve?se.filter(H=>!!Si(H[Ve.id])):se,be=c.sorts.length>0||!Ve?Z:[...Z].sort((H,je)=>{let Pe=Si(H[Ve.id]),mt=Si(je[Ve.id]);return!Pe&&!mt?0:Pe?mt?Pe.getTime()-mt.getTime():-1:1});if(!Re)return be.map(S);let we=new Map;for(let H of be){let je=String(H[Re.id]??"");we.has(je)||we.set(je,[]),we.get(je).push(H)}let De=Re.options?.map(H=>H.value)??[],Ye=[...we.keys()].sort((H,je)=>{let Pe=De.indexOf(H),mt=De.indexOf(je);return Pe!==-1&&mt!==-1?Pe-mt:Pe!==-1?-1:mt!==-1||!H?1:je?H.localeCompare(je):-1}),We=[];for(let H of Ye){let je=Re.options?.find(Pe=>Pe.value===H);We.push({kind:"group",label:H||u("no_value"),color:je?.color});for(let Pe of we.get(H))We.push(S(Pe))}return We},[se,Ve,ge,Re,Ae,xe,He,c.sorts]),P=(0,Qe.useCallback)(async S=>{await fe({...c,activePills:S.map(Z=>({id:Z.id,columnId:Z.columnId,operator:Z.operator,value:Z.value,conjunction:Z.conjunction}))})},[fe,c]),ke=(S,Z,be,we)=>{let De=[...g,{id:crypto.randomUUID(),columnId:S,columnName:Z,columnType:we,icon:be,operator:Fn(we),value:"",conjunction:"and"}];m(De),P(De),b(!1)},A=S=>{let Z=g.filter(be=>be.id!==S);m(Z),P(Z)},ee=(S,Z,be)=>{let we=g.map(De=>De.id===S?{...De,operator:Z,value:be}:De);m(we),P(we)},Le=S=>{let Z=g.map(be=>be.id===S?{...be,conjunction:be.conjunction==="and"?"or":"and"}:be);m(Z),P(Z)},Te=(0,Qe.useCallback)(async S=>{let Z=c.hiddenColumns.includes(S)?c.hiddenColumns.filter(be=>be!==S):[...c.hiddenColumns,S];await fe({...c,hiddenColumns:Z})},[c,fe]),vt=()=>$e.current?.scrollBy({left:-($e.current.clientWidth*.6),behavior:"smooth"}),dn=()=>$e.current?.scrollBy({left:$e.current.clientWidth*.6,behavior:"smooth"}),pt=()=>{$e.current&&$e.current.scrollTo({left:Math.max(0,D-$e.current.clientWidth*.3),behavior:"smooth"})},pn=kn(),en=e?.parent?.path??"",tn=(0,Qe.useCallback)(S=>{r.workspace.getLeaf().openFile(S)},[r]),x=(0,Qe.useCallback)(S=>{W(S)},[]),N=(0,Qe.useCallback)((S,Z,be,we,De,Ye,We)=>{ve({filePath:S,handle:Z,startX:be,origBarLeft:we,origBarWidth:De,startFieldId:Ye,endFieldId:We}),Oe(0)},[]);if(!e)return(0,$.jsx)("div",{className:"nb-empty-state",children:(0,$.jsx)("p",{children:u("no_database_open")})});if(p)return(0,$.jsx)("div",{className:"nb-loading",children:u("loading")});let X=D>=0&&D<=rt,ue=({label:S,valueKey:Z,open:be,setOpen:we,menuRef:De})=>{let Ye=d.schema.find(We=>We.id===c[Z])?.name??u("none_value");return(0,$.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:De,children:[(0,$.jsxs)("button",{className:`nb-toolbar-btn${be?" nb-toolbar-btn--active":""}`,onClick:()=>we(!be),children:[S,": ",(0,$.jsx)("strong",{children:Ye})]}),be&&(0,$.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,$.jsx)("div",{className:"nb-fields-dropdown-label",children:S}),(0,$.jsxs)("button",{className:`nb-menu-item${c[Z]?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,[Z]:void 0}),we(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,$.jsx)("span",{children:u("none_value")})]}),d.schema.filter(We=>We.type==="date").map(We=>(0,$.jsxs)("button",{className:`nb-menu-item${c[Z]===We.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,[Z]:We.id}),we(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,$.jsx)("span",{children:We.name})]},We.id))]})]})},oe=S=>{S!=="start"&&k(!1),S!=="end"&&T(!1),S!=="group"&&j(!1),S!=="fields"&&_(!1),S!=="filter"&&b(!1)},te=pn?(0,$.jsxs)(Gn,{actionBarRef:nt,actions:[{id:"start",label:u("start_field"),icon:(0,$.jsx)(Sn,{}),active:y,onClick:()=>{oe("start"),k(S=>!S)}},{id:"end",label:u("end_field"),icon:(0,$.jsx)(Sn,{}),active:F,onClick:()=>{oe("end"),T(S=>!S)}},{id:"group",label:u("group_field"),icon:(0,$.jsx)(_o,{}),active:V,onClick:()=>{oe("group"),j(S=>!S)}},{id:"fields",label:u("fields"),icon:(0,$.jsx)(Sn,{}),active:f,onClick:()=>{oe("fields"),_(S=>!S)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,$.jsx)(Wn,{}),active:!!c.includeSubfolders,onClick:()=>{oe(),fe({...c,includeSubfolders:!c.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,$.jsx)(Un,{}),active:h,badge:g.length||void 0,onClick:()=>{oe("filter"),b(S=>!S)}}],rowCount:me.length,rowCountLabel:me.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:g,onFilterUpdate:ee,onFilterRemove:A,onConjunctionToggle:Le,children:[(0,$.jsxs)(ct,{open:y,onClose:()=>k(!1),title:u("start_field"),children:[(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineStartField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,timelineStartField:void 0}),k(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,$.jsx)("span",{children:u("none_value")})]}),d.schema.filter(S=>S.type==="date").map(S=>(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineStartField===S.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,timelineStartField:S.id}),k(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,$.jsx)("span",{children:S.name})]},S.id))]}),(0,$.jsxs)(ct,{open:F,onClose:()=>T(!1),title:u("end_field"),children:[(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineEndField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,timelineEndField:void 0}),T(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,$.jsx)("span",{children:u("none_value")})]}),d.schema.filter(S=>S.type==="date").map(S=>(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineEndField===S.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,timelineEndField:S.id}),T(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,$.jsx)("span",{children:S.name})]},S.id))]}),(0,$.jsxs)(ct,{open:V,onClose:()=>j(!1),title:u("group_field"),children:[(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,timelineGroupByField:void 0}),j(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,$.jsx)("span",{children:u("none_value")})]}),d.schema.filter(S=>S.type==="select"||S.type==="status").map(S=>(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField===S.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,timelineGroupByField:S.id}),j(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:Xe(S.type)}),(0,$.jsx)("span",{children:S.name})]},S.id))]}),(0,$.jsx)(ct,{open:f,onClose:()=>_(!1),title:u("fields"),children:d.schema.map(S=>(0,$.jsxs)("label",{className:"nb-field-row",children:[(0,$.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:S.visible&&!c.hiddenColumns.includes(S.id),onChange:()=>{Te(S.id)}}),(0,$.jsx)("span",{className:"nb-field-icon",children:Xe(S.type)}),(0,$.jsx)("span",{className:"nb-field-name",children:S.name})]},S.id))}),(0,$.jsxs)(ct,{open:h,onClose:()=>b(!1),title:u("filter"),children:[(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke("_title","Nome","\u{1F4C4}","title"),children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,$.jsx)("span",{children:u("name_column")})]}),d.schema.map(S=>(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke(S.id,S.name,Xe(S.type),S.type),children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:Xe(S.type)}),(0,$.jsx)("span",{children:S.name})]},S.id))]}),(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"4px 12px"},children:[(0,$.jsxs)("div",{className:"nb-cal-nav",children:[(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:vt,title:u("timeline_scroll_prev"),children:"\u2039"}),(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:pt,children:u("calendar_today")}),(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:dn,title:u("timeline_scroll_next"),children:"\u203A"})]}),(0,$.jsx)("div",{className:"nb-tl-zoom-group",children:["days","weeks","months"].map(S=>(0,$.jsx)("button",{className:`nb-tl-zoom-btn${Ae===S?" nb-tl-zoom-btn--active":""}`,onClick:()=>{fe({...c,timelineZoom:S})},children:kb()[S]},S))})]})]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{className:"nb-toolbar",children:[(0,$.jsx)(ue,{label:u("start_field"),valueKey:"timelineStartField",open:y,setOpen:k,menuRef:ce}),(0,$.jsx)(ue,{label:u("end_field"),valueKey:"timelineEndField",open:F,setOpen:T,menuRef:Ne}),(0,$.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,$.jsxs)("button",{className:`nb-toolbar-btn${V?" nb-toolbar-btn--active":""}`,onClick:()=>j(S=>!S),children:[u("group_field"),": ",(0,$.jsx)("strong",{children:Re?.name??u("none_value")})]}),V&&(0,$.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,$.jsx)("div",{className:"nb-fields-dropdown-label",children:u("group_by_label")}),(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField?"":" nb-menu-item--active"}`,onClick:()=>{fe({...c,timelineGroupByField:void 0}),j(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,$.jsx)("span",{children:u("none_value")})]}),d.schema.filter(S=>S.type==="select"||S.type==="status").map(S=>(0,$.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField===S.id?" nb-menu-item--active":""}`,onClick:()=>{fe({...c,timelineGroupByField:S.id}),j(!1)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:Xe(S.type)}),(0,$.jsx)("span",{children:S.name})]},S.id))]})]}),(0,$.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Q,children:[(0,$.jsx)("button",{className:`nb-toolbar-btn${f?" nb-toolbar-btn--active":""}`,onClick:()=>_(S=>!S),children:u("fields")}),f&&(0,$.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,$.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_on_bars")}),d.schema.map(S=>(0,$.jsxs)("label",{className:"nb-field-row",children:[(0,$.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:S.visible&&!c.hiddenColumns.includes(S.id),onChange:()=>{Te(S.id)}}),(0,$.jsx)("span",{className:"nb-field-icon",children:Xe(S.type)}),(0,$.jsx)("span",{className:"nb-field-name",children:S.name})]},S.id))]})]}),(0,$.jsxs)("div",{className:"nb-cal-nav",children:[(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:vt,title:u("timeline_scroll_prev"),children:"\u2039"}),(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:pt,children:u("calendar_today")}),(0,$.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:dn,title:u("timeline_scroll_next"),children:"\u203A"})]}),(0,$.jsx)("div",{className:"nb-tl-zoom-group",children:["days","weeks","months"].map(S=>(0,$.jsx)("button",{className:`nb-tl-zoom-btn${Ae===S?" nb-tl-zoom-btn--active":""}`,onClick:()=>{fe({...c,timelineZoom:S})},children:kb()[S]},S))}),(0,$.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${c.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{fe({...c,includeSubfolders:!c.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,$.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,$.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,$.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,$.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,$.jsxs)("span",{className:"nb-row-count",children:[me.length," ",me.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,$.jsx)($r,{status:a}),(0,$.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:O,style:{marginLeft:"auto"},children:[(0,$.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${h?" nb-toolbar-btn--active":""}`,onClick:()=>b(S=>!S),title:u("filters"),children:[(0,$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,$.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),g.length>0&&(0,$.jsx)("span",{className:"nb-hidden-badge",children:g.length})]}),h&&(0,$.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,$.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke("_title","Nome","\u{1F4C4}","title"),children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,$.jsx)("span",{children:u("name_column")})]}),d.schema.map(S=>(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>ke(S.id,S.name,Xe(S.type),S.type),children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:Xe(S.type)}),(0,$.jsx)("span",{children:S.name})]},S.id))]})]})]}),(0,$.jsx)(ho,{activeFilters:g,schema:d.schema,onUpdate:ee,onRemove:A,onToggleConjunction:Le,collapsed:!!c.filtersCollapsed,onToggleCollapsed:()=>{fe({...c,filtersCollapsed:!c.filtersCollapsed})}})]});return(0,$.jsxs)("div",{className:"nb-container",children:[te,Ve?(0,$.jsx)("div",{className:"nb-tl-body",ref:$e,children:(0,$.jsxs)("div",{className:"nb-tl-canvas-wrapper",style:{width:wb+rt},children:[(0,$.jsxs)("div",{className:"nb-tl-sidebar",style:{width:wb},children:[(0,$.jsx)("div",{className:"nb-tl-sidebar-corner",style:{height:rc}}),Pt.map((S,Z)=>S.kind==="group"?(0,$.jsxs)("div",{className:"nb-tl-sidebar-row nb-tl-sidebar-group",style:{height:Cb},children:[S.color&&(0,$.jsx)("span",{className:"nb-tl-group-dot",style:{background:S.color}}),(0,$.jsx)("span",{children:S.label})]},`sg-${Z}`):(0,$.jsxs)("div",{className:"nb-tl-sidebar-row",style:{height:Vm},onClick:()=>{r.workspace.getLeaf().openFile(S.row._file)},children:[(0,$.jsx)("span",{className:"nb-tl-row-label",children:S.row._title}),(()=>{let be=e?.parent?.path??"",we=S.row._file.parent?.path??"",De=c.includeSubfolders&&we.length>be.length?we.slice(be.length+1):"";return De?(0,$.jsx)("div",{className:"nb-folder-path",children:De}):null})()]},S.row._file.path))]}),(0,$.jsxs)("div",{className:"nb-tl-right",style:{width:rt},children:[(0,$.jsxs)("div",{className:"nb-tl-header",style:{height:rc},children:[(0,$.jsx)("div",{className:"nb-tl-header-row",style:{height:rc/2,borderBottom:"1px solid var(--background-modifier-border)"},children:K.top.map(S=>(0,$.jsx)("div",{className:"nb-tl-header-top-cell",style:{left:S.left,width:S.width},children:S.label},S.key))}),(0,$.jsx)("div",{className:"nb-tl-header-row",style:{height:rc/2},children:K.bottom.map(S=>(0,$.jsx)("div",{className:"nb-tl-header-bottom-cell",style:{left:S.left,width:S.width},children:S.label},S.key))})]}),(0,$.jsxs)("div",{style:{position:"relative",width:rt},children:[X&&(0,$.jsx)("div",{className:"nb-tl-today-line",style:{left:D}}),Pt.map((S,Z)=>S.kind==="group"?(0,$.jsx)("div",{className:"nb-tl-group-row",style:{height:Cb}},`gr-${Z}`):(0,$.jsx)("div",{className:`nb-tl-row${Z%2===0?"":" nb-tl-row--odd"}`,style:{height:Vm},children:S.barLeft!==null&&S.barWidth!==null&&(()=>{let be=de?.filePath===S.row._file.path,we=S.barLeft,De=S.barWidth;return be&&de&&(de.handle==="left"?(we=S.barLeft+Ce,De=S.barWidth-Ce):De=S.barWidth+Ce),De=Math.max(8,De),(0,$.jsx)(lN,{row:S.row,barLeft:we,barWidth:De,origBarLeft:S.barLeft,origBarWidth:S.barWidth,isMobile:pn,visibleCols:yt,dbFolderPath:en,includeSubfolders:c.includeSubfolders??!1,startFieldId:Ve?.id??null,endFieldId:ge?.id??null,onOpen:tn,onContextMenu:x,onResizeStart:N})})()},S.row._file.path))]})]})]})}):(0,$.jsx)("div",{className:"nb-cal-no-field",children:(0,$.jsx)("p",{children:u("timeline_no_start_field")})}),Tt.length>0&&(0,$.jsxs)("div",{className:"nb-tl-no-interval",children:[(0,$.jsxs)("div",{className:"nb-tl-no-interval-title",onClick:()=>ne(S=>!S),children:[re?"\u25BE":"\u25B8"," ",u("timeline_no_interval")," (",Tt.length,")"]}),re&&(0,$.jsx)("div",{className:"nb-tl-no-interval-list",children:Tt.map(S=>(0,$.jsx)("div",{className:"nb-cal-card nb-cal-card--no-date",onClick:()=>{r.workspace.getLeaf().openFile(S._file)},children:(0,$.jsx)("span",{className:"nb-cal-card-title",children:S._title})},S._file.path))})]}),(0,$.jsxs)(ct,{open:q!==null,onClose:()=>W(null),title:q?.basename??"",children:[(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>{q&&r.workspace.getLeaf().openFile(q),W(null)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,$.jsx)("span",{children:u("open_note")})]}),(0,$.jsxs)("button",{className:"nb-menu-item",onClick:()=>{q&&t.duplicateNotes([q]),W(null)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,$.jsx)("span",{children:u("duplicate_note")})]}),(0,$.jsx)("div",{className:"nb-menu-separator"}),(0,$.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{q&&t.deleteNotes([q]),W(null)},children:[(0,$.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,$.jsx)("span",{children:u("delete_note")})]})]})]})}var Ct=Fe(xt(),1),Rb=Fe(po(),1);var z=Fe(St(),1),zl=["#4c6ef5","#7950f2","#e64980","#f76707","#fab005","#40c057","#15aabf","#be4bdb","#fd7e14","#20c997","#228be6","#845ef7","#f06595","#ff922b","#fcc419","#51cf66","#22b8cf","#cc5de8","#ff6b6b","#38d9a9"];function Eb(e){let t=Math.abs(e);return t>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e4?(e/1e3).toFixed(0)+"k":t>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":Number.isInteger(e)?String(e):e.toFixed(1)}function jm(e){return Number.isInteger(e)?e.toLocaleString():e.toLocaleString(void 0,{maximumFractionDigits:2})}function Db(e,t){if(e<=t&&Number.isInteger(e))return Array.from({length:Math.floor(e)+1},(l,s)=>s);let n=e/t,o=Math.pow(10,Math.floor(Math.log10(n))),r=n/o,a=r<=1.5?o:r<=3?2*o:r<=7?5*o:10*o,i=[];for(let l=0;l<=e+a*.01;l+=a)i.push(Math.round(l*1e3)/1e3);return i[i.length-1]{let c=m[n];return typeof c=="number"?c:parseFloat(c==null?"":ht(c))}).filter(m=>!isNaN(m));switch(o){case"sum":p=g.reduce((m,c)=>m+c,0);break;case"avg":p=g.length>0?g.reduce((m,c)=>m+c,0)/g.length:0;break;case"min":p=g.length>0?Math.min(...g):0;break;case"max":p=g.length>0?Math.max(...g):0;break;default:p=g.reduce((m,c)=>m+c,0);break}}i.push({label:s,value:p,color:zl[l%zl.length]}),l++}return i}function uN({data:e,width:t,height:n}){if(e.length===0)return(0,z.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o={top:20,right:20,bottom:60,left:60},r=t-o.left-o.right,a=n-o.top-o.bottom,i=Math.max(...e.map(v=>v.value),1),l=Math.min(Math.max(r/e.length-4,8),60),s=e.length*(l+4),d=Math.max((r-s)/2,0),p=Db(i,5),g=p[p.length-1]||i,[m,c]=(0,Ct.useState)(null);return(0,z.jsxs)("g",{transform:`translate(${o.left},${o.top})`,children:[p.map((v,h)=>{let b=a-v/g*a;return(0,z.jsxs)("g",{children:[(0,z.jsx)("line",{x1:0,y1:b,x2:r,y2:b,stroke:"var(--background-modifier-border)",strokeDasharray:"2,2"}),(0,z.jsx)("text",{x:-8,y:b+4,textAnchor:"end",fontSize:11,fill:"var(--text-muted)",children:Eb(v)})]},h)}),e.map((v,h)=>{let b=v.value/g*a,f=d+h*(l+4),_=a-b,y=`${v.label}: ${jm(v.value)}`,k=Math.max(y.length*7,60);return(0,z.jsxs)("g",{onMouseEnter:()=>c(h),onMouseLeave:()=>c(null),children:[(0,z.jsx)("rect",{x:f,y:_,width:l,height:b,rx:2,fill:v.color,opacity:m===null||m===h?1:.4,style:{transition:"opacity 0.15s, height 0.3s, y 0.3s"}}),(0,z.jsx)("text",{x:f+l/2,y:a+14,textAnchor:"end",fontSize:11,fill:"var(--text-normal)",transform:`rotate(-35, ${f+l/2}, ${a+14})`,children:v.label.length>12?v.label.slice(0,11)+"\u2026":v.label}),m===h&&(0,z.jsxs)("g",{children:[(0,z.jsx)("rect",{x:f+l/2-k/2,y:_-28,width:k,height:22,rx:4,fill:"var(--background-primary)",stroke:"var(--background-modifier-border)"}),(0,z.jsx)("text",{x:f+l/2,y:_-13,textAnchor:"middle",fontSize:12,fontWeight:"600",fill:"var(--text-normal)",children:y})]})]},h)}),(0,z.jsx)("line",{x1:0,y1:0,x2:0,y2:a,stroke:"var(--background-modifier-border)"}),(0,z.jsx)("line",{x1:0,y1:a,x2:r,y2:a,stroke:"var(--background-modifier-border)"})]})}function cN({data:e,width:t,height:n}){if(e.length===0)return(0,z.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o=e.reduce((c,v)=>c+v.value,0);if(o===0)return(0,z.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let r=t*.4,a=n/2,i=Math.min(r,a)-20,[l,s]=(0,Ct.useState)(null),d=-Math.PI/2,p=e.map((c,v)=>{let h=c.value/o*2*Math.PI,b=d;d+=h;let f=d,_=r+i*Math.cos(b),y=a+i*Math.sin(b),k=r+i*Math.cos(f),F=a+i*Math.sin(f),T=h>Math.PI?1:0,V=b+h/2,j=i+16,re=r+j*Math.cos(V),ne=a+j*Math.sin(V),de=e.length===1?`M ${r+i} ${a} A ${i} ${i} 0 1 1 ${r+i-.001} ${a}`:`M ${r} ${a} L ${_} ${y} A ${i} ${i} 0 ${T} 1 ${k} ${F} Z`,ve=l===v,Ce=ve?"scale(1.04)":"scale(1)",Oe=(c.value/o*100).toFixed(1);return(0,z.jsxs)("g",{onMouseEnter:()=>s(v),onMouseLeave:()=>s(null),style:{transformOrigin:`${r}px ${a}px`,transform:Ce,transition:"transform 0.15s"},children:[(0,z.jsx)("path",{d:de,fill:c.color,opacity:l===null||ve?1:.5,stroke:"var(--background-primary)",strokeWidth:2}),h>.3&&(0,z.jsxs)("text",{x:re,y:ne,textAnchor:"middle",fontSize:11,fill:"var(--text-muted)",children:[Oe,"%"]})]},v)}),g=t*.75,m=e.slice(0,12);return(0,z.jsxs)("g",{children:[p,m.map((c,v)=>(0,z.jsxs)("g",{transform:`translate(${g}, ${30+v*22})`,onMouseEnter:()=>s(v),onMouseLeave:()=>s(null),style:{cursor:"default"},children:[(0,z.jsx)("rect",{width:12,height:12,rx:2,fill:c.color}),(0,z.jsxs)("text",{x:18,y:10,fontSize:12,fill:"var(--text-normal)",children:[c.label.length>16?c.label.slice(0,15)+"\u2026":c.label," (",jm(c.value),")"]})]},v)),e.length>12&&(0,z.jsxs)("text",{x:g,y:304,fontSize:11,fill:"var(--text-muted)",children:["+",e.length-12," ",u("board_show_more").toLowerCase()]})]})}function dN({data:e,width:t,height:n}){if(e.length===0)return(0,z.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o={top:20,right:20,bottom:60,left:60},r=t-o.left-o.right,a=n-o.top-o.bottom,i=Math.max(...e.map(f=>f.value),1),l=30,s=r-l*2,d=e.length>1?s/(e.length-1):0,p=Db(i,5),g=p[p.length-1]||i,[m,c]=(0,Ct.useState)(null),v=e.map((f,_)=>({x:l+(e.length===1?s/2:_*d),y:a-f.value/g*a})),h=v.map(f=>`${f.x},${f.y}`).join(" "),b=`M ${v[0].x} ${a} `+v.map(f=>`L ${f.x} ${f.y}`).join(" ")+` L ${v[v.length-1].x} ${a} Z`;return(0,z.jsxs)("g",{transform:`translate(${o.left},${o.top})`,children:[p.map((f,_)=>{let y=a-f/g*a;return(0,z.jsxs)("g",{children:[(0,z.jsx)("line",{x1:0,y1:y,x2:r,y2:y,stroke:"var(--background-modifier-border)",strokeDasharray:"2,2"}),(0,z.jsx)("text",{x:-8,y:y+4,textAnchor:"end",fontSize:11,fill:"var(--text-muted)",children:Eb(f)})]},_)}),(0,z.jsx)("path",{d:b,fill:zl[0],opacity:.1}),(0,z.jsx)("polyline",{points:h,fill:"none",stroke:zl[0],strokeWidth:2.5,strokeLinejoin:"round",strokeLinecap:"round"}),e.map((f,_)=>{let y=`${f.label}: ${jm(f.value)}`,k=Math.max(y.length*7,60);return(0,z.jsxs)("g",{onMouseEnter:()=>c(_),onMouseLeave:()=>c(null),children:[(0,z.jsx)("circle",{cx:v[_].x,cy:v[_].y,r:m===_?6:4,fill:zl[0],stroke:"var(--background-primary)",strokeWidth:2,style:{transition:"r 0.15s"}}),(0,z.jsx)("text",{x:v[_].x,y:a+14,textAnchor:"end",fontSize:11,fill:"var(--text-normal)",transform:`rotate(-35, ${v[_].x}, ${a+14})`,children:f.label.length>12?f.label.slice(0,11)+"\u2026":f.label}),m===_&&(0,z.jsxs)("g",{children:[(0,z.jsx)("rect",{x:v[_].x-k/2,y:v[_].y-28,width:k,height:22,rx:4,fill:"var(--background-primary)",stroke:"var(--background-modifier-border)"}),(0,z.jsx)("text",{x:v[_].x,y:v[_].y-13,textAnchor:"middle",fontSize:12,fontWeight:"600",fill:"var(--text-normal)",children:y})]})]},_)}),(0,z.jsx)("line",{x1:0,y1:0,x2:0,y2:a,stroke:"var(--background-modifier-border)"}),(0,z.jsx)("line",{x1:0,y1:a,x2:r,y2:a,stroke:"var(--background-modifier-border)"})]})}function pN({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,Ct.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let v=c.clientX-i.x,h=c.clientY-i.y,b=_=>l({x:_.clientX-v,y:_.clientY-h}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,v)=>{let h=[...e],b=c+v;b<0||b>=h.length||([h[c],h[b]]=[h[b],h[c]],n(h))};return(0,Rb.createPortal)((0,z.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,z.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,z.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,z.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,z.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,v)=>{let h=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,z.jsxs)("div",{className:"nb-sort-row",children:[(0,z.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,z.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,-1),disabled:v===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,z.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(v,1),disabled:v===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,z.jsx)("span",{className:"nb-sort-row-name",children:h}),(0,z.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,z.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,z.jsx)("div",{className:"nb-sort-add-row",children:(0,z.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,z.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,z.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}function xb(){return(0,z.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,z.jsx)("rect",{x:"3",y:"12",width:"4",height:"9"}),(0,z.jsx)("rect",{x:"10",y:"5",width:"4",height:"16"}),(0,z.jsx)("rect",{x:"17",y:"9",width:"4",height:"12"})]})}function mN(){return(0,z.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,z.jsx)("polyline",{points:"3 18 9 11 13 15 21 5"})})}function fN(){return(0,z.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,z.jsx)("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),(0,z.jsx)("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})}function Fb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=Vt(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=jn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,Ct.useState)(n),[m,c]=(0,Ct.useState)(!1),[v,h]=(0,Ct.useState)(!1),[b,f]=(0,Ct.useState)(null),[_,y]=(0,Ct.useState)(!1),k=(0,Ct.useRef)(null),F=(0,Ct.useRef)(null),T=(0,Ct.useRef)(null),V=(0,Ct.useRef)(null),j=(0,Ct.useRef)(null),re=(0,Ct.useRef)(null),[ne,de]=(0,Ct.useState)({width:600,height:400});(0,Ct.useEffect)(()=>{g(n)},[n.id]);let ve=(0,Ct.useCallback)(async D=>{g(D),await o(D)},[o]),Ce=p.chartType??"bar",Oe=p.chartXAxis??"",q=p.chartYAxis??"_count",W=p.chartAggregation??"count";(0,Ct.useEffect)(()=>{let D=re.current;if(!D)return;let ie=new ResizeObserver(me=>{for(let se of me){let Ve=se.contentRect.width,ge=Math.max(se.contentRect.height,300);de({width:Math.max(Ve,300),height:Math.min(ge,600)})}});return ie.observe(D),()=>ie.disconnect()},[l]),(0,Ct.useEffect)(()=>{if(!m)return;let D=ie=>{j.current?.contains(ie.target)||k.current&&!k.current.contains(ie.target)&&c(!1)};return activeDocument.addEventListener("mousedown",D),()=>activeDocument.removeEventListener("mousedown",D)},[m]),(0,Ct.useEffect)(()=>{if(!v)return;let D=ie=>{j.current?.contains(ie.target)||T.current?.contains(ie.target)||F.current&&!F.current.contains(ie.target)&&h(!1)};return activeDocument.addEventListener("mousedown",D),()=>activeDocument.removeEventListener("mousedown",D)},[v]),(0,Ct.useEffect)(()=>{if(!_)return;let D=ie=>{j.current?.contains(ie.target)||V.current&&!V.current.contains(ie.target)&&y(!1)};return activeDocument.addEventListener("mousedown",D),()=>activeDocument.removeEventListener("mousedown",D)},[_]);let O=(0,Ct.useCallback)(async D=>{let ie=D.map(me=>({id:me.id,columnId:me.columnId,operator:me.operator,value:me.value,conjunction:me.conjunction}));await ve({...p,activePills:ie})},[ve,p]),Q=(D,ie,me,se)=>{let Ve=[...s,{id:crypto.randomUUID(),columnId:D,columnName:ie,columnType:se,icon:me,operator:Fn(se),value:"",conjunction:"and"}];d(Ve),O(Ve),c(!1)},ce=D=>{let ie=s.filter(me=>me.id!==D);d(ie),O(ie)},Ne=(D,ie,me)=>{let se=s.map(Ve=>Ve.id===D?{...Ve,operator:ie,value:me}:Ve);d(se),O(se)},Be=D=>{let ie=s.map(me=>me.id===D?{...me,conjunction:me.conjunction==="and"?"or":"and"}:me);d(ie),O(ie)},$e=(0,Ct.useCallback)(async D=>{await ve({...p,sorts:D})},[p,ve]),nt=Hn(s,200),et=(0,Ct.useMemo)(()=>Vn(a,nt),[a,nt]),fe=(0,Ct.useMemo)(()=>no(et,p.sorts),[et,p.sorts]),Me=(0,Ct.useMemo)(()=>{if(!Oe)return[];let D=sN(fe,Oe,q==="_count"?void 0:q,W,i.schema);return p.sorts.length===0&&D.sort((ie,me)=>me.value-ie.value),D},[fe,Oe,q,W,i.schema,p.sorts.length]),Ae=(0,Ct.useMemo)(()=>{let D=i.schema.filter(ie=>ie.visible&&["text","select","multiselect","status","date","checkbox"].includes(ie.type));return[{id:"_title",name:u("name_column"),type:"title"},...D]},[i.schema]),He=(0,Ct.useMemo)(()=>{let D=i.schema.filter(ie=>ie.visible&&ie.type==="number");return[{id:"_count",name:u("chart_count_records"),type:"count"},...D]},[i.schema]),ze=kn();if(!e)return(0,z.jsx)("div",{className:"nb-empty-state",children:(0,z.jsx)("p",{children:u("no_database_open")})});if(l)return(0,z.jsx)("div",{className:"nb-loading",children:u("loading")});let xe=D=>{D!=="filter"&&c(!1),D!=="sort"&&h(!1),D!=="config"&&y(!1)},rt=(0,z.jsxs)("div",{className:"nb-chart-config-body",children:[(0,z.jsxs)("div",{className:"nb-chart-config-row",children:[(0,z.jsx)("label",{className:"nb-chart-config-label",children:u("chart_type")}),(0,z.jsx)("div",{className:"nb-chart-type-btns",children:["bar","line","pie"].map(D=>(0,z.jsxs)("button",{className:`nb-chart-type-btn${Ce===D?" nb-chart-type-btn--active":""}`,onClick:()=>{ve({...p,chartType:D})},title:u(`chart_type_${D}`),children:[D==="bar"&&(0,z.jsx)(xb,{}),D==="line"&&(0,z.jsx)(mN,{}),D==="pie"&&(0,z.jsx)(fN,{})]},D))})]}),(0,z.jsxs)("div",{className:"nb-chart-config-row",children:[(0,z.jsx)("label",{className:"nb-chart-config-label",children:u("chart_x_axis")}),(0,z.jsxs)("select",{className:"nb-chart-config-select",value:Oe,onChange:D=>{ve({...p,chartXAxis:D.target.value})},children:[(0,z.jsx)("option",{value:"",children:u("chart_select_column")}),Ae.map(D=>(0,z.jsx)("option",{value:D.id,children:D.name},D.id))]})]}),(0,z.jsxs)("div",{className:"nb-chart-config-row",children:[(0,z.jsx)("label",{className:"nb-chart-config-label",children:u("chart_y_axis")}),(0,z.jsx)("select",{className:"nb-chart-config-select",value:q,onChange:D=>{ve({...p,chartYAxis:D.target.value})},children:He.map(D=>(0,z.jsx)("option",{value:D.id,children:D.name},D.id))})]}),q!=="_count"&&(0,z.jsxs)("div",{className:"nb-chart-config-row",children:[(0,z.jsx)("label",{className:"nb-chart-config-label",children:u("chart_aggregation")}),(0,z.jsxs)("select",{className:"nb-chart-config-select",value:W,onChange:D=>{ve({...p,chartAggregation:D.target.value})},children:[(0,z.jsx)("option",{value:"sum",children:u("agg_sum")}),(0,z.jsx)("option",{value:"avg",children:u("agg_avg")}),(0,z.jsx)("option",{value:"min",children:u("agg_min")}),(0,z.jsx)("option",{value:"max",children:u("agg_max")})]})]})]}),K=ze?(0,z.jsxs)(Gn,{actionBarRef:j,actions:[{id:"config",label:u("chart_configure"),icon:(0,z.jsx)(xb,{}),active:_,onClick:()=>{xe("config"),y(D=>!D)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,z.jsx)(Wn,{}),active:!!p.includeSubfolders,onClick:()=>{xe(),ve({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,z.jsx)(_o,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{xe("sort"),!v&&T.current&&f(T.current.getBoundingClientRect()),h(D=>!D)}},{id:"filter",label:u("filter"),icon:(0,z.jsx)(Un,{}),active:m,badge:s.length||void 0,onClick:()=>{xe("filter"),c(D=>!D)}}],rowCount:fe.length,rowCountLabel:fe.length===1?u("record_singular").toLowerCase():u("record_plural").toLowerCase(),filters:s,onFilterUpdate:Ne,onFilterRemove:ce,onConjunctionToggle:Be,children:[(0,z.jsx)(ct,{open:_,onClose:()=>y(!1),title:u("chart_configure"),children:rt}),(0,z.jsxs)(ct,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Q("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,z.jsx)("span",{children:u("name_column")})]}),i.schema.map(D=>(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Q(D.id,D.name,Xe(D.type),D.type),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Xe(D.type)}),(0,z.jsx)("span",{children:D.name})]},D.id))]}),(0,z.jsxs)(ct,{open:v,onClose:()=>h(!1),title:u("sort"),children:[p.sorts.length===0&&(0,z.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((D,ie)=>{let me=D.columnId==="_title"?"Nome":i.schema.find(se=>se.id===D.columnId)?.name??D.columnId;return(0,z.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,z.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,z.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let se=[...p.sorts];ie>0&&([se[ie],se[ie-1]]=[se[ie-1],se[ie]],$e(se))},disabled:ie===0,children:"\u2191"}),(0,z.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let se=[...p.sorts];ie{$e(p.sorts.map(se=>se.columnId===D.columnId?{...se,direction:se.direction==="asc"?"desc":"asc"}:se))},children:D.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,z.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{$e(p.sorts.filter(se=>se.columnId!==D.columnId))},children:"\xD7"})]},D.columnId)}),(()=>{let D=i.schema.filter(se=>se.type!=="formula"&&se.type!=="lookup"&&se.type!=="relation"&&se.type!=="multiselect"),ie=new Set(p.sorts.map(se=>se.columnId)),me=[...ie.has("_title")?[]:[{id:"_title",name:"Nome"}],...D.filter(se=>!ie.has(se.id)).map(se=>({id:se.id,name:se.name}))];return me.length===0?null:(0,z.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:se=>{se.target.value&&($e([...p.sorts,{columnId:se.target.value,direction:"asc"}]),se.target.value="")},children:[(0,z.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),me.map(se=>(0,z.jsx)("option",{value:se.id,children:se.name},se.id))]})})()]})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:"nb-toolbar",children:[(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:V,children:[(0,z.jsx)("button",{className:`nb-toolbar-btn ${_?"nb-toolbar-btn--active":""}`,onClick:()=>y(D=>!D),children:u("chart_configure")}),_&&(0,z.jsxs)("div",{className:"nb-fields-dropdown nb-chart-config-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:u("chart_configure")}),rt]})]}),(0,z.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ve({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,z.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,z.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,z.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,z.jsxs)("span",{className:"nb-row-count",children:[fe.length," ",fe.length===1?u("record_singular").toLowerCase():u("record_plural").toLowerCase()]}),(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:k,style:{marginLeft:"auto"},children:[(0,z.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${m?"nb-toolbar-btn--active":""}`,onClick:()=>c(D=>!D),title:u("filters"),children:[(0,z.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,z.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,z.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,z.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Q("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,z.jsx)("span",{children:u("name_column")})]}),i.schema.map(D=>(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Q(D.id,D.name,Xe(D.type),D.type),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Xe(D.type)}),(0,z.jsx)("span",{children:D.name})]},D.id))]})]}),(0,z.jsxs)("button",{ref:T,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!v&&T.current&&f(T.current.getBoundingClientRect()),h(D=>!D)},children:[(0,z.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,z.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),v&&b&&(0,z.jsx)(pN,{sorts:p.sorts,schema:i.schema,onSortChange:D=>{$e(D)},onClose:()=>h(!1),anchorRect:b,panelRef:F})]}),(0,z.jsx)(ho,{activeFilters:s,schema:i.schema,onUpdate:Ne,onRemove:ce,onToggleConjunction:Be,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{ve({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return Oe?(0,z.jsxs)("div",{className:"nb-container",children:[K,(0,z.jsx)("div",{className:"nb-chart-wrapper",ref:re,children:(0,z.jsxs)("svg",{className:"nb-chart-svg",width:ne.width,height:ne.height,viewBox:`0 0 ${ne.width} ${ne.height}`,children:[Ce==="bar"&&(0,z.jsx)(uN,{data:Me,width:ne.width,height:ne.height}),Ce==="pie"&&(0,z.jsx)(cN,{data:Me,width:ne.width,height:ne.height}),Ce==="line"&&(0,z.jsx)(dN,{data:Me,width:ne.width,height:ne.height})]})})]}):(0,z.jsxs)("div",{className:"nb-container",children:[K,(0,z.jsxs)("div",{className:"nb-chart-empty",children:[(0,z.jsx)("p",{children:u("chart_no_config")}),(0,z.jsx)("p",{className:"nb-chart-empty-hint",children:u("chart_no_config_hint")})]})]})}var ut=Fe(St(),1),ac={table:"\u229E",list:"\u2261",board:"\u25A6",gallery:"\u229F",calendar:"\u{1F4C5}",timeline:"\u25AC",chart:"\u{1F4CA}"},Hr=()=>({table:u("view_table"),list:u("view_list"),board:u("view_board"),gallery:u("view_gallery"),calendar:u("view_calendar"),timeline:u("view_timeline"),chart:u("view_chart")});function ic({dbFile:e,manager:t,externalView:n,onViewChange:o,embedState:r,onEmbedStateChange:a}){let i=Vt(),[l,s]=(0,Et.useState)(Er),d=(0,Et.useRef)(0),p=(0,Et.useCallback)(async K=>{if(e){d.current++;try{await t.writeConfig(e,K)}finally{window.setTimeout(()=>{d.current=Math.max(0,d.current-1)},150)}}},[e,t]),[g,m]=(0,Et.useState)(""),[c,v]=(0,Et.useState)(!1),h=(0,Et.useRef)(null),[b,f]=(0,Et.useState)(r?.views??[]),[_,y]=(0,Et.useState)(r?.activeViewId??""),[k,F]=(0,Et.useState)(!!r),[T,V]=(0,Et.useState)(!1),j=(0,Et.useRef)(null),re=!!n,ne=!!a&&!re,de=!re&&!ne,[ve,Ce]=(0,Et.useState)(null),[Oe,q]=(0,Et.useState)(""),W=(0,Et.useRef)(null),[O,Q]=(0,Et.useState)(null),[ce,Ne]=(0,Et.useState)(null);(0,Et.useEffect)(()=>{if(!e||re)return;let K=t.readConfig(e);if(s(K),de)m(D=>D&&K.views.some(ie=>ie.id===D)?D:K.views[0]?.id??"");else if(ne&&!k){let D=K.views.map(me=>({...me,id:crypto.randomUUID()})),ie={activeViewId:D[0]?.id??"",views:D};f(D),y(D[0]?.id??""),F(!0),a(ie)}},[e,t,re]),(0,Et.useEffect)(()=>{if(!e||!de)return;let K=D=>{D===e&&(d.current>0||s(t.readConfig(e)))};return i.metadataCache.on("changed",K),()=>i.metadataCache.off("changed",K)},[e,t,i,de]),(0,Et.useEffect)(()=>{if(!c)return;let K=D=>{h.current&&!h.current.contains(D.target)&&v(!1)};return activeDocument.addEventListener("mousedown",K),()=>activeDocument.removeEventListener("mousedown",K)},[c]),(0,Et.useEffect)(()=>{if(!T)return;let K=D=>{j.current&&!j.current.contains(D.target)&&V(!1)};return activeDocument.addEventListener("mousedown",K),()=>activeDocument.removeEventListener("mousedown",K)},[T]);let Be=(K,D)=>{Ce(K),q(D),window.requestAnimationFrame(()=>{W.current?.select()})},$e=(0,Et.useCallback)(async(K,D,ie)=>{if(!ve)return;let me=D.trim();if(me){let se=K.map(Ve=>Ve.id===ve?{...Ve,name:me}:Ve);await ie(se)}Ce(null)},[ve]),nt=(K,D,ie)=>{let me=K.findIndex(Re=>Re.id===D),se=K.findIndex(Re=>Re.id===ie);if(me<0||se<0)return K;let Ve=[...K],[ge]=Ve.splice(me,1);return Ve.splice(se,0,ge),Ve},et=async K=>{if(Ne(null),!O||O===K||!e){Q(null);return}let D=nt(l.views,O,K),ie={...l,views:D};s(ie),Q(null),await p(ie)},fe=async K=>{if(Ne(null),!O||O===K){Q(null);return}let D=nt(b,O,K);f(D),Q(null),await a({activeViewId:_,views:D})};function Me(K,D,ie){let me={key:ie,dbFile:e,manager:t,externalView:K,onViewChange:D};return K.type==="list"?(0,ut.jsx)(pb,{...me}):K.type==="board"?(0,ut.jsx)(mb,{...me}):K.type==="gallery"?(0,ut.jsx)(_b,{...me}):K.type==="calendar"?(0,ut.jsx)(yb,{...me}):K.type==="timeline"?(0,ut.jsx)(Nb,{...me}):K.type==="chart"?(0,ut.jsx)(Fb,{...me}):(0,ut.jsx)(Am,{dbFile:e,manager:t,externalView:K,onViewChange:D},ie)}if(re)return Me(n,o);if(ne){let K=b.find(ge=>ge.id===_)??b[0]??to,D=async ge=>{let Re=b.map(yt=>yt.id===ge.id?ge:yt);f(Re),await a({activeViewId:_,views:Re})},ie=async ge=>{let Re={...to,id:crypto.randomUUID(),type:ge,name:Hr()[ge]??ge,filters:[],sorts:[],hiddenColumns:[],columnWidths:{}},yt=[...b,Re];f(yt),y(Re.id),V(!1),await a({activeViewId:Re.id,views:yt})},me=async ge=>{if(b.length<=1)return;let Re=b.filter(Tt=>Tt.id!==ge),yt=_===ge?Re[0].id:_;f(Re),y(yt),await a({activeViewId:yt,views:Re})},se=ge=>{y(ge),a({activeViewId:ge,views:b})},Ve=async ge=>{f(ge),await a({activeViewId:_,views:ge})};return(0,ut.jsxs)(Et.Fragment,{children:[(0,ut.jsxs)("div",{className:"nb-view-tabs nb-view-tabs--embed",children:[b.map(ge=>(0,ut.jsxs)("button",{className:`nb-view-tab${ge.id===_?" nb-view-tab--active":""}${ce===ge.id&&O!==ge.id?" nb-view-tab--drag-over":""}`,draggable:!0,onDragStart:()=>Q(ge.id),onDragOver:Re=>{Re.preventDefault(),Ne(ge.id)},onDragLeave:()=>Ne(null),onDrop:()=>{fe(ge.id)},onDragEnd:()=>{Q(null),Ne(null)},onClick:()=>ve!==ge.id&&se(ge.id),children:[(0,ut.jsx)("span",{className:"nb-view-tab-icon",children:ac[ge.type]??"\u25A1"}),ve===ge.id?(0,ut.jsx)("input",{ref:W,className:"nb-view-tab-rename-input",value:Oe,onChange:Re=>q(Re.target.value),onBlur:()=>{$e(b,Oe,Ve)},onKeyDown:Re=>{Re.key==="Enter"&&(Re.preventDefault(),$e(b,Oe,Ve)),Re.key==="Escape"&&(Re.preventDefault(),Ce(null))},onClick:Re=>Re.stopPropagation()}):(0,ut.jsx)("span",{onDoubleClick:Re=>{Re.stopPropagation(),Be(ge.id,ge.name??Hr()[ge.type]??ge.type)},title:u("rename_view_hint"),children:ge.name??Hr()[ge.type]??ge.type}),b.length>1&&ve!==ge.id&&(0,ut.jsx)("span",{className:"nb-view-tab-remove",onClick:Re=>{Re.stopPropagation(),me(ge.id)},title:u("remove_view"),children:"\xD7"})]},ge.id)),(0,ut.jsxs)("div",{className:"nb-view-tab-add",ref:j,children:[(0,ut.jsx)("button",{className:"nb-view-tab-add-btn",onClick:()=>V(ge=>!ge),title:u("add_view"),children:"+"}),T&&(0,ut.jsxs)("div",{className:"nb-view-add-menu nb-fields-dropdown",children:[(0,ut.jsx)("div",{className:"nb-fields-dropdown-label",children:u("add_view")}),["table","list","board","gallery","calendar","timeline","chart"].map(ge=>(0,ut.jsxs)("button",{className:"nb-menu-item",onClick:()=>{ie(ge)},children:[(0,ut.jsx)("span",{className:"nb-menu-item-icon",children:ac[ge]}),(0,ut.jsx)("span",{children:Hr()[ge]})]},ge))]})]})]}),Me(K,D,_)]})}let Ae=(0,Et.useCallback)(async K=>{if(!e)return;let D=l.views.map(me=>me.id===K.id?K:me),ie={...l,views:D};s(ie),await p(ie)},[l,e,p]),He=(0,Et.useCallback)(async K=>{if(!e)return;let D=l.views.length===1,ie=D?l.schema.map(Re=>({...Re,visible:!0})):l.schema,me=D?{...l.views[0],hiddenColumns:[...l.views[0].hiddenColumns??[],...l.schema.filter(Re=>!Re.visible).map(Re=>Re.id)]}:l.views[0],se={...to,id:crypto.randomUUID(),type:K,name:Hr()[K]??K,filters:[],sorts:[],hiddenColumns:[],columnWidths:{}},Ve=D?[me,se]:[...l.views,se],ge={schema:ie,views:Ve};s(ge),m(se.id),v(!1),await p(ge)},[l,e,p]),ze=(0,Et.useCallback)(async K=>{if(!e||l.views.length<=1)return;let D=l.views.filter(me=>me.id!==K),ie={...l,views:D};s(ie),g===K&&m(D[0].id),await p(ie)},[l,e,p,g]),xe=l.views.find(K=>K.id===g)??l.views[0]??to,rt=async K=>{if(!e)return;let D={...l,views:K};s(D),await p(D)};return(0,ut.jsxs)(Et.Fragment,{children:[(0,ut.jsxs)("div",{className:"nb-view-tabs",children:[l.views.map(K=>(0,ut.jsxs)("button",{className:`nb-view-tab${K.id===g?" nb-view-tab--active":""}${ce===K.id&&O!==K.id?" nb-view-tab--drag-over":""}`,draggable:!0,onDragStart:()=>Q(K.id),onDragOver:D=>{D.preventDefault(),Ne(K.id)},onDragLeave:()=>Ne(null),onDrop:()=>{et(K.id)},onDragEnd:()=>{Q(null),Ne(null)},onClick:()=>ve!==K.id&&m(K.id),children:[(0,ut.jsx)("span",{className:"nb-view-tab-icon",children:ac[K.type]??"\u25A1"}),ve===K.id?(0,ut.jsx)("input",{ref:W,className:"nb-view-tab-rename-input",value:Oe,onChange:D=>q(D.target.value),onBlur:()=>{$e(l.views,Oe,rt)},onKeyDown:D=>{D.key==="Enter"&&(D.preventDefault(),$e(l.views,Oe,rt)),D.key==="Escape"&&(D.preventDefault(),Ce(null))},onClick:D=>D.stopPropagation()}):(0,ut.jsx)("span",{onDoubleClick:D=>{D.stopPropagation(),Be(K.id,K.name??Hr()[K.type]??K.type)},title:u("rename_view_hint"),children:K.name??Hr()[K.type]??K.type}),l.views.length>1&&ve!==K.id&&(0,ut.jsx)("span",{className:"nb-view-tab-remove",onClick:D=>{D.stopPropagation(),ze(K.id)},title:u("remove_view"),children:"\xD7"})]},K.id)),(0,ut.jsxs)("div",{className:"nb-view-tab-add",ref:h,children:[(0,ut.jsx)("button",{className:"nb-view-tab-add-btn",onClick:()=>v(K=>!K),title:u("add_view"),children:"+"}),c&&(0,ut.jsxs)("div",{className:"nb-view-add-menu nb-fields-dropdown",children:[(0,ut.jsx)("div",{className:"nb-fields-dropdown-label",children:u("add_view")}),["table","list","board","gallery","calendar","timeline","chart"].map(K=>(0,ut.jsxs)("button",{className:"nb-menu-item",onClick:()=>{He(K)},children:[(0,ut.jsx)("span",{className:"nb-menu-item-icon",children:ac[K]}),(0,ut.jsx)("span",{children:Hr()[K]})]},K))]})]}),(0,ut.jsx)("button",{className:"nb-view-tab-settings-btn",title:u("db_settings_open"),onClick:()=>{if(!e)return;let K=(()=>{let D=xe.activePills??[];if(D.length===0)return;let ie=Qp(D,l.schema);if(ie.length===0)return;let se=t.getNotesInDatabase(e,xe.includeSubfolders).map(Re=>t.getNoteDataSync(Re,l.schema)),Ve=t.resolveRollupsForRows(t.resolveLookupsForRows(Du(se,l.schema),l.schema),l.schema),ge=Vn(Ve,ie);return new Set(ge.map(Re=>Re._file.path))})();new xu(i,l,async D=>{let ie={...l,...D};s(ie),await p(ie)},t,e,K).open()},children:"\u2699"})]}),xe.type==="table"?(0,ut.jsx)(Am,{dbFile:e,manager:t,externalView:xe,onViewChange:Ae},g):Me(xe,Ae,g)]})}var Vl="notion-bases-view",Ca=class extends Mb.ItemView{constructor(n,o){super(n);this.root=null;this.dbFilePath="";this.plugin=o}getViewType(){return Vl}getDisplayText(){return this.dbFilePath?this.app.vault.getFileByPath(this.dbFilePath)?.parent?.name??u("view_fallback_name"):u("plugin_display_name")}getIcon(){return"table"}async setState(n,o){n.dbFilePath&&(this.dbFilePath=n.dbFilePath),await super.setState(n,o),this.render()}getState(){return{dbFilePath:this.dbFilePath}}setDatabaseFile(n){this.dbFilePath=n.path,this.render()}getDatabaseFilePath(){return this.dbFilePath}async onOpen(){}async onClose(){this.root?.unmount(),this.root=null}render(){let n=this.containerEl.children[1];if(!n)return;this.root&&(this.root.unmount(),this.root=null),n.empty(),n.addClass("notion-bases-view-container");let o=this.dbFilePath?this.app.vault.getFileByPath(this.dbFilePath)??null:null,r=this.plugin.manager;this.root=(0,Tb.createRoot)(n),this.root.render((0,Hm.createElement)(xl.Provider,{value:this.app},(0,Hm.createElement)(ic,{dbFile:o,manager:r})))}};var _n=require("obsidian");var gN=/^(`{3,}|~{3,})/,_N=/`[^`]+`/g,hN=/^([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*(.*)$/,Pb=/\[([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*([^\]]*)\]/g,Lb=/\(([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*([^)]*)\)/g;function vN(e){let t=e.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);return t?e.slice(t[0].length):e}function Ib(e){let t=e.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);return t?t[0].split(/\r?\n/).length-1:0}function Um(e){return e.replace(/[*_~]/g,"").trim().toLowerCase().replace(/\s+/g,"-")}var bN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2})?)?$/,yN=/^\[\[.+\]\]$/,wN=/^-?\d+(\.\d+)?$/;function Wm(e){let t=e.trim();return t===""?null:t==="true"?!0:t==="false"?!1:wN.test(t)?Number(t):(bN.test(t)||yN.test(t),t)}function Gm(e){let n=vN(e).split(/\r?\n/),o=[],r=!1,a="";for(let i=0;i|]/g,"").replace(/\s+/g," ").trim()}var sc=class{constructor(t,n){this.app=t;this.databaseFileName=n;this.readInlineFields=!1;this.pageSize=0;this.folderArrangementInProgress=new Set}isDatabaseFile(t){return this.app.metadataCache.getFileCache(t)?.frontmatter?.[lc]===!0}getDatabaseFileInFolder(t){let n=(0,_n.normalizePath)(t?`${t}/${this.databaseFileName}`:this.databaseFileName);return this.app.vault.getFileByPath(n)??null}readConfig(t){let o=this.app.metadataCache.getFileCache(t)?.frontmatter,r=sa(o)?o:void 0;if(!r||!r[lc])return structuredClone(Er);let i=(Array.isArray(r.schema)?r.schema:[]).filter(d=>d.id&&typeof d.id=="string"&&!d.id.startsWith("notion-bases")&&d.type&&!d.options?.some(p=>p.value==="[object Object]")),l=r.folderArrangement,s;if(l&&typeof l=="object"&&!Array.isArray(l)){let d=l,p=Array.isArray(d.propertyIds)?d.propertyIds.filter(g=>typeof g=="string"):[];s={enabled:d.enabled===!0,propertyIds:p}}return{schema:i,views:Array.isArray(r.views)&&r.views.length>0?r.views:[to],templatePath:typeof r.templatePath=="string"&&r.templatePath?r.templatePath:void 0,askTemplateOnCreate:r.askTemplateOnCreate===!0,folderArrangement:s}}async writeConfig(t,n){await this.app.fileManager.processFrontMatter(t,o=>{o[lc]=!0,o.schema=n.schema,o.views=n.views,n.templatePath?o.templatePath=n.templatePath:delete o.templatePath,n.askTemplateOnCreate?o.askTemplateOnCreate=!0:delete o.askTemplateOnCreate,n.folderArrangement&&n.folderArrangement.propertyIds.length>0?o.folderArrangement={enabled:!!n.folderArrangement.enabled,propertyIds:n.folderArrangement.propertyIds}:delete o.folderArrangement})}getNotesInDatabase(t,n){let o=t.parent??this.app.vault.getRoot();if(!o)return[];if(n){let r=[],a=i=>{for(let l of i.children)l instanceof _n.TFile&&l.extension==="md"&&l.path!==t.path?r.push(l):l instanceof _n.TFolder&&a(l)};return a(o),r.sort((i,l)=>i.basename.localeCompare(l.basename))}return o.children.filter(r=>r instanceof _n.TFile&&r.extension==="md"&&r.path!==t.path).sort((r,a)=>r.basename.localeCompare(a.basename))}getNoteDataSync(t,n){let r=this.app.metadataCache.getFileCache(t)?.frontmatter??{},a={_file:t,_title:t.basename};for(let i of n)i.type==="formula"||i.type==="lookup"||i.type==="rollup"||(a[i.id]=r[i.id]??null);return a}async getNoteData(t,n){let o=this.getNoteDataSync(t,n);if(this.readInlineFields){let r=await this.app.vault.cachedRead(t),a=Gm(r),i=Ib(r),l={};for(let s of a){let d=n.find(p=>p.id===s.key);d&&o[d.id]==null&&(d.type==="multiselect"&&typeof s.value=="string"?o[d.id]=s.value.split(",").map(p=>p.trim()).filter(Boolean):o[d.id]=s.value,l[d.id]={format:s.format,rawKey:s.rawKey,rawValue:s.rawValue,lineNumber:i+s.lineNumber,fullMatch:s.fullMatch})}Object.keys(l).length>0&&(o._inlineFields=l)}return o}async updateNoteField(t,n,o,r){let a=r?.[n];a&&this.readInlineFields?o==null||o===""?await this.removeInlineField(t,a):await this.updateInlineField(t,o,a):await this.updateFrontmatterField(t,n,o)}async updateFrontmatterField(t,n,o){await this.app.fileManager.processFrontMatter(t,r=>{o==null||o===""?delete r[n]:r[n]=o})}async updateInlineField(t,n,o){let r=await this.app.vault.read(t),a=r.indexOf(o.fullMatch);if(a===-1){await this.app.fileManager.processFrontMatter(t,d=>{d[o.rawKey]=n});return}let i=this.serializeInlineValue(n),l;switch(o.format){case"standalone":l=`${o.rawKey}:: ${i}`;break;case"bracketed":l=`[${o.rawKey}:: ${i}]`;break;case"parenthesized":l=`(${o.rawKey}:: ${i})`;break}let s=r.slice(0,a)+l+r.slice(a+o.fullMatch.length);await this.app.vault.modify(t,s)}async removeInlineField(t,n){let o=await this.app.vault.read(t),r=o.indexOf(n.fullMatch);if(r===-1)return;let a;if(n.format==="standalone"){let i=o.lastIndexOf(` + `},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[...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{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({...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)}return e?o(e):n}function zv(e){let[t]=Xu(e,1);return t??null}function Sm(e){return!Ll||!e?null:ma(e)?e:Bu(e)?Hu(e)||e===fa(e).scrollingElement?window:vi(e)?e:null:null}function Vv(e){return ma(e)?e.scrollX:e.scrollLeft}function Bv(e){return ma(e)?e.scrollY:e.scrollTop}function Rm(e){return{x:Vv(e),y:Bv(e)}}var an;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(an||(an={}));function Hv(e){return!Ll||!e?!1:e===document.scrollingElement}function jv(e){let t={x:0,y:0},n=Hv(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:r,isLeft:a,isBottom:i,isRight:l,maxScroll:o,minScroll:t}}var pk={x:.2,y:.2};function mk(e,t,n,o,r){let{top:a,left:i,right:l,bottom:s}=n;o===void 0&&(o=10),r===void 0&&(r=pk);let{isTop:d,isBottom:p,isLeft:g,isRight:m}=jv(e),c={x:0,y:0},h={x:0,y:0},v={height:t.height*r.y,width:t.width*r.x};return!d&&a<=t.top+v.height?(c.y=an.Backward,h.y=o*Math.abs((t.top+v.height-a)/v.height)):!p&&s>=t.bottom-v.height&&(c.y=an.Forward,h.y=o*Math.abs((t.bottom-v.height-s)/v.height)),!m&&l>=t.right-v.width?(c.x=an.Forward,h.x=o*Math.abs((t.right-v.width-l)/v.width)):!g&&i<=t.left+v.width&&(c.x=an.Backward,h.x=o*Math.abs((t.left+v.width-i)/v.width)),{direction:c,speed:h}}function fk(e){if(e===document.scrollingElement){let{innerWidth:a,innerHeight:i}=window;return{top:0,left:0,right:a,bottom:i,width:a,height:i}}let{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Uv(e){return e.reduce((t,n)=>_a(t,Rm(n)),No)}function gk(e){return e.reduce((t,n)=>t+Vv(n),0)}function _k(e){return e.reduce((t,n)=>t+Bv(n),0)}function hk(e,t){if(t===void 0&&(t=wa),!e)return;let{top:n,left:o,bottom:r,right:a}=t(e);zv(e)&&(r<=0||a<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var vk=[["x",["left","right"],gk],["y",["top","bottom"],_k]],$l=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let o=Xu(n),r=Uv(o);this.rect={...t},this.width=t.width,this.height=t.height;for(let[a,i,l]of vk)for(let s of i)Object.defineProperty(this,s,{get:()=>{let d=l(o),p=r[a]-d;return this.rect[s]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},ba=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}};function bk(e){let{EventTarget:t}=Mn(e);return e instanceof t?e:fa(e)}function Nm(e,t){let n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var uo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(uo||(uo={}));function xv(e){e.preventDefault()}function yk(e){e.stopPropagation()}var Ct;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ct||(Ct={}));var Wv={start:[Ct.Space,Ct.Enter],cancel:[Ct.Esc],end:[Ct.Space,Ct.Enter,Ct.Tab]},wk=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ct.Right:return{...n,x:n.x+25};case Ct.Left:return{...n,x:n.x-25};case Ct.Down:return{...n,y:n.y+25};case Ct.Up:return{...n,y:n.y-25}}},Yu=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new ba(fa(n)),this.windowListeners=new ba(Mn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(uo.Resize,this.handleCancel),this.windowListeners.add(uo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(uo.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&hk(o),n(No)}handleKeyDown(t){if(Il(t)){let{active:n,context:o,options:r}=this.props,{keyboardCodes:a=Wv,coordinateGetter:i=wk,scrollBehavior:l="smooth"}=r,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}let{collisionRect:d}=o.current,p=d?{x:d.left,y:d.top}:No;this.referenceCoordinates||(this.referenceCoordinates=p);let g=i(t,{active:n,context:o.current,currentCoordinates:p});if(g){let m=wi(g,p),c={x:0,y:0},{scrollableAncestors:h}=o.current;for(let v of h){let b=t.code,{isTop:f,isRight:_,isLeft:w,isBottom:S,maxScroll:D,minScroll:T}=jv(v),V=fk(v),j={x:Math.min(b===Ct.Right?V.right-V.width/2:V.right,Math.max(b===Ct.Right?V.left:V.left+V.width/2,g.x)),y:Math.min(b===Ct.Down?V.bottom-V.height/2:V.bottom,Math.max(b===Ct.Down?V.top:V.top+V.height/2,g.y))},le=b===Ct.Right&&!_||b===Ct.Left&&!w,re=b===Ct.Down&&!S||b===Ct.Up&&!f;if(le&&j.x!==g.x){let _e=v.scrollLeft+m.x,ye=b===Ct.Right&&_e<=D.x||b===Ct.Left&&_e>=T.x;if(ye&&!m.y){v.scrollTo({left:_e,behavior:l});return}ye?c.x=v.scrollLeft-_e:c.x=b===Ct.Right?v.scrollLeft-D.x:v.scrollLeft-T.x,c.x&&v.scrollBy({left:-c.x,behavior:l});break}else if(re&&j.y!==g.y){let _e=v.scrollTop+m.y,ye=b===Ct.Down&&_e<=D.y||b===Ct.Up&&_e>=T.y;if(ye&&!m.x){v.scrollTo({top:_e,behavior:l});return}ye?c.y=v.scrollTop-_e:c.y=b===Ct.Down?v.scrollTop-D.y:v.scrollTop-T.y,c.y&&v.scrollBy({top:-c.y,behavior:l});break}}this.handleMove(t,_a(wi(g,this.referenceCoordinates),c))}}}handleMove(t,n){let{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Yu.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=Wv,onActivation:r}=t,{active:a}=n,{code:i}=e.nativeEvent;if(o.start.includes(i)){let l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r?.({event:e.nativeEvent}),!0)}return!1}}];function Rv(e){return!!(e&&"distance"in e)}function Ev(e){return!!(e&&"delay"in e)}var zl=class{constructor(t,n,o){var r;o===void 0&&(o=bk(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:a}=t,{target:i}=a;this.props=t,this.events=n,this.document=fa(i),this.documentListeners=new ba(this.document),this.listeners=new ba(o),this.windowListeners=new ba(Mn(i)),this.initialCoordinates=(r=Wu(a))!=null?r:No,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(uo.Resize,this.handleCancel),this.windowListeners.add(uo.DragStart,xv),this.windowListeners.add(uo.VisibilityChange,this.handleCancel),this.windowListeners.add(uo.ContextMenu,xv),this.documentListeners.add(uo.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ev(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Rv(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(uo.Click,yk,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(uo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:o,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:l}}=a;if(!r)return;let s=(n=Wu(t))!=null?n:No,d=wi(r,s);if(!o&&l){if(Rv(l)){if(l.tolerance!=null&&Nm(d,l.tolerance))return this.handleCancel();if(Nm(d,l.distance))return this.handleStart()}if(Ev(l)&&Nm(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),i(s)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ct.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Ck={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},Ci=class extends zl{constructor(t){let{event:n}=t,o=fa(n.target);super(t,Ck,o)}};Ci.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o?.({event:n}),!0)}}];var kk={move:{name:"mousemove"},end:{name:"mouseup"}},Em;(function(e){e[e.RightClick=2]="RightClick"})(Em||(Em={}));var Dm=class extends zl{constructor(t){super(t,kk,fa(t.event.target))}};Dm.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===Em.RightClick?!1:(o?.({event:n}),!0)}}];var xm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Vl=class extends zl{constructor(t){super(t,xm)}static setup(){return window.addEventListener(xm.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(xm.move.name,t)};function t(){}}};Vl.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t,{touches:r}=n;return r.length>1?!1:(o?.({event:n}),!0)}}];var Ol;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ol||(Ol={}));var Ku;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ku||(Ku={}));function Sk(e){let{acceleration:t,activator:n=Ol.Pointer,canScroll:o,draggingRect:r,enabled:a,interval:i=5,order:l=Ku.TreeOrder,pointerCoordinates:s,scrollableAncestors:d,scrollableAncestorRects:p,delta:g,threshold:m}=e,c=xk({delta:g,disabled:!a}),[h,v]=vv(),b=(0,ie.useRef)({x:0,y:0}),f=(0,ie.useRef)({x:0,y:0}),_=(0,ie.useMemo)(()=>{switch(n){case Ol.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Ol.DraggableRect:return r}},[n,r,s]),w=(0,ie.useRef)(null),S=(0,ie.useCallback)(()=>{let T=w.current;if(!T)return;let V=b.current.x*f.current.x,j=b.current.y*f.current.y;T.scrollBy(V,j)},[]),D=(0,ie.useMemo)(()=>l===Ku.TreeOrder?[...d].reverse():d,[l,d]);(0,ie.useEffect)(()=>{if(!a||!d.length||!_){v();return}for(let T of D){if(o?.(T)===!1)continue;let V=d.indexOf(T),j=p[V];if(!j)continue;let{direction:le,speed:re}=mk(T,j,_,t,m);for(let _e of["x","y"])c[_e][le[_e]]||(re[_e]=0,le[_e]=0);if(re.x>0||re.y>0){v(),w.current=T,h(S,i),b.current=re,f.current=le;return}}b.current={x:0,y:0},f.current={x:0,y:0},v()},[t,S,o,v,a,i,JSON.stringify(_),JSON.stringify(c),h,d,D,p,JSON.stringify(m)])}var Nk={x:{[an.Backward]:!1,[an.Forward]:!1},y:{[an.Backward]:!1,[an.Forward]:!1}};function xk(e){let{delta:t,disabled:n}=e,o=Uu(t);return yi(r=>{if(n||!o||!r)return Nk;let a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[an.Backward]:r.x[an.Backward]||a.x===-1,[an.Forward]:r.x[an.Forward]||a.x===1},y:{[an.Backward]:r.y[an.Backward]||a.y===-1,[an.Forward]:r.y[an.Forward]||a.y===1}}},[n,t,o])}function Rk(e,t){let n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return yi(r=>{var a;return t==null?null:(a=o??r)!=null?a:null},[o,t])}function Ek(e,t){return(0,ie.useMemo)(()=>e.reduce((n,o)=>{let{sensor:r}=o,a=r.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...n,...a]},[]),[e,t])}var Bl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Bl||(Bl={}));var Fm;(function(e){e.Optimized="optimized"})(Fm||(Fm={}));var Dv=new Map;function Dk(e,t){let{dragging:n,dependencies:o,config:r}=t,[a,i]=(0,ie.useState)(null),{frequency:l,measure:s,strategy:d}=r,p=(0,ie.useRef)(e),g=b(),m=bi(g),c=(0,ie.useCallback)(function(f){f===void 0&&(f=[]),!m.current&&i(_=>_===null?f:_.concat(f.filter(w=>!_.includes(w))))},[m]),h=(0,ie.useRef)(null),v=yi(f=>{if(g&&!n)return Dv;if(!f||f===Dv||p.current!==e||a!=null){let _=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}let S=w.node.current,D=S?new $l(s(S),S):null;w.rect.current=D,D&&_.set(w.id,D)}return _}return f},[e,a,n,g,s]);return(0,ie.useEffect)(()=>{p.current=e},[e]),(0,ie.useEffect)(()=>{g||c()},[n,g]),(0,ie.useEffect)(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),(0,ie.useEffect)(()=>{g||typeof l!="number"||h.current!==null||(h.current=setTimeout(()=>{c(),h.current=null},l))},[l,g,c,...o]),{droppableRects:v,measureDroppableContainers:c,measuringScheduled:a!=null};function b(){switch(d){case Bl.Always:return!1;case Bl.BeforeDragging:return n;default:return!n}}}function Gv(e,t){return yi(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Fk(e,t){return Gv(e,t)}function Mk(e){let{callback:t,disabled:n}=e,o=ju(t),r=(0,ie.useMemo)(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:a}=window;return new a(o)},[o,n]);return(0,ie.useEffect)(()=>()=>r?.disconnect(),[r]),r}function Qu(e){let{callback:t,disabled:n}=e,o=ju(t),r=(0,ie.useMemo)(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:a}=window;return new a(o)},[n]);return(0,ie.useEffect)(()=>()=>r?.disconnect(),[r]),r}function Tk(e){return new $l(wa(e),e)}function Fv(e,t,n){t===void 0&&(t=Tk);let[o,r]=(0,ie.useState)(null);function a(){r(s=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=s??n)!=null?d:null}let p=t(e);return JSON.stringify(s)===JSON.stringify(p)?s:p})}let i=Mk({callback(s){if(e)for(let d of s){let{type:p,target:g}=d;if(p==="childList"&&g instanceof HTMLElement&&g.contains(e)){a();break}}}}),l=Qu({callback:a});return so(()=>{a(),e?(l?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),i?.disconnect())},[e]),o}function Pk(e){let t=Gv(e);return $v(e,t)}var Mv=[];function Lk(e){let t=(0,ie.useRef)(e),n=yi(o=>e?o&&o!==Mv&&e&&t.current&&e.parentNode===t.current.parentNode?o:Xu(e):Mv,[e]);return(0,ie.useEffect)(()=>{t.current=e},[e]),n}function Ak(e){let[t,n]=(0,ie.useState)(null),o=(0,ie.useRef)(e),r=(0,ie.useCallback)(a=>{let i=Sm(a.target);i&&n(l=>l?(l.set(i,Rm(i)),new Map(l)):null)},[]);return(0,ie.useEffect)(()=>{let a=o.current;if(e!==a){i(a);let l=e.map(s=>{let d=Sm(s);return d?(d.addEventListener("scroll",r,{passive:!0}),[d,Rm(d)]):null}).filter(s=>s!=null);n(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(a)};function i(l){l.forEach(s=>{let d=Sm(s);d?.removeEventListener("scroll",r)})}},[r,e]),(0,ie.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((a,i)=>_a(a,i),No):Uv(e):No,[e,t])}function Tv(e,t){t===void 0&&(t=[]);let n=(0,ie.useRef)(null);return(0,ie.useEffect)(()=>{n.current=null},t),(0,ie.useEffect)(()=>{let o=e!==No;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?wi(e,n.current):No}function Ik(e){(0,ie.useEffect)(()=>{if(!Ll)return;let t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Ok(e,t){return(0,ie.useMemo)(()=>e.reduce((n,o)=>{let{eventName:r,handler:a}=o;return n[r]=i=>{a(i,t)},n},{}),[e,t])}function qv(e){return(0,ie.useMemo)(()=>e?uk(e):null,[e])}var Pv=[];function $k(e,t){t===void 0&&(t=wa);let[n]=e,o=qv(n?Mn(n):null),[r,a]=(0,ie.useState)(Pv);function i(){a(()=>e.length?e.map(s=>Hv(s)?o:new $l(t(s),s)):Pv)}let l=Qu({callback:i});return so(()=>{l?.disconnect(),i(),e.forEach(s=>l?.observe(s))},[e]),r}function zk(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return vi(t)?t:e}function Vk(e){let{measure:t}=e,[n,o]=(0,ie.useState)(null),r=(0,ie.useCallback)(d=>{for(let{target:p}of d)if(vi(p)){o(g=>{let m=t(p);return g?{...g,width:m.width,height:m.height}:m});break}},[t]),a=Qu({callback:r}),i=(0,ie.useCallback)(d=>{let p=zk(d);a?.disconnect(),p&&a?.observe(p),o(p?t(p):null)},[t,a]),[l,s]=Al(i);return(0,ie.useMemo)(()=>({nodeRef:l,rect:n,setRef:s}),[n,l,s])}var Bk=[{sensor:Ci,options:{}},{sensor:Yu,options:{}}],Hk={current:{}},Gu={draggable:{measure:Nv},droppable:{measure:Nv,strategy:Bl.WhileDragging,frequency:Fm.Optimized},dragOverlay:{measure:wa}},ya=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}},jk={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ya,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:qu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Gu,measureDroppableContainers:qu,windowRect:null,measuringScheduled:!1},Uk={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:qu,draggableNodes:new Map,over:null,measureDroppableContainers:qu},Zu=(0,ie.createContext)(Uk),Yv=(0,ie.createContext)(jk);function Wk(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ya}}}function Gk(e,t){switch(t.type){case nn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case nn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case nn.DragEnd:case nn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case nn.RegisterDroppable:{let{element:n}=t,{id:o}=n,r=new ya(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case nn.SetDroppableDisabled:{let{id:n,key:o,disabled:r}=t,a=e.droppable.containers.get(n);if(!a||o!==a.key)return e;let i=new ya(e.droppable.containers);return i.set(n,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case nn.UnregisterDroppable:{let{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;let a=new ya(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function qk(e){let{disabled:t}=e,{active:n,activatorEvent:o,draggableNodes:r}=(0,ie.useContext)(Zu),a=Uu(o),i=Uu(n?.id);return(0,ie.useEffect)(()=>{if(!t&&!o&&a&&i!=null){if(!Il(a)||document.activeElement===a.target)return;let l=r.get(i);if(!l)return;let{activatorNode:s,node:d}=l;if(!s.current&&!d.current)return;requestAnimationFrame(()=>{for(let p of[s.current,d.current]){if(!p)continue;let g=yv(p);if(g){g.focus();break}}})}},[o,t,r,i,a]),null}function Yk(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...o}),n):n}function Kk(e){return(0,ie.useMemo)(()=>({draggable:{...Gu.draggable,...e?.draggable},droppable:{...Gu.droppable,...e?.droppable},dragOverlay:{...Gu.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xk(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e,a=(0,ie.useRef)(!1),{x:i,y:l}=typeof r=="boolean"?{x:r,y:r}:r;so(()=>{if(!i&&!l||!t){a.current=!1;return}if(a.current||!o)return;let d=t?.node.current;if(!d||d.isConnected===!1)return;let p=n(d),g=$v(p,o);if(i||(g.x=0),l||(g.y=0),a.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){let m=zv(d);m&&m.scrollBy({top:g.y,left:g.x})}},[t,i,l,o,n])}var Kv=(0,ie.createContext)({...No,scaleX:1,scaleY:1}),Mr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Mr||(Mr={}));var Pm=(0,ie.memo)(function(t){var n,o,r,a;let{id:i,accessibility:l,autoScroll:s=!0,children:d,sensors:p=Bk,collisionDetection:g=nk,measuring:m,modifiers:c,...h}=t,v=(0,ie.useReducer)(Gk,void 0,Wk),[b,f]=v,[_,w]=Y0(),[S,D]=(0,ie.useState)(Mr.Uninitialized),T=S===Mr.Initialized,{draggable:{active:V,nodes:j,translate:le},droppable:{containers:re}}=b,_e=V!=null?j.get(V):null,ye=(0,ie.useRef)({initial:null,translated:null}),Ce=(0,ie.useMemo)(()=>{var ce;return V!=null?{id:V,data:(ce=_e?.data)!=null?ce:Hk,rect:ye}:null},[V,_e]),Oe=(0,ie.useRef)(null),[q,W]=(0,ie.useState)(null),[O,ne]=(0,ie.useState)(null),fe=bi(h,Object.values(h)),Ne=ga("DndDescribedBy",i),Be=(0,ie.useMemo)(()=>re.getEnabled(),[re]),$e=Kk(m),{droppableRects:je,measureDroppableContainers:nt,measuringScheduled:ve}=Dk(Be,{dragging:T,dependencies:[le.x,le.y],config:$e.droppable}),Me=Rk(j,V),ze=(0,ie.useMemo)(()=>O?Wu(O):null,[O]),He=x(),Ue=Fk(Me,$e.draggable.measure);Xk({activeNode:V!=null?j.get(V):null,config:He.layoutShiftCompensation,initialRect:Ue,measure:$e.draggable.measure});let Fe=Fv(Me,$e.draggable.measure,Ue),ot=Fv(Me?Me.parentElement:null),Y=(0,ie.useRef)({activatorEvent:null,active:null,activeNode:Me,collisionRect:null,collisions:null,droppableRects:je,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:re,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),E=re.getNodeFor((n=Y.current.over)==null?void 0:n.id),oe=Vk({measure:$e.dragOverlay.measure}),ge=(o=oe.nodeRef.current)!=null?o:Me,ue=T?(r=oe.rect)!=null?r:Fe:null,Ve=!!(oe.nodeRef.current&&oe.rect),be=Pk(Ve?null:Fe),xe=qv(ge?Mn(ge):null),ft=Lk(T?E??Me:null),kt=$k(ft),St=Yk(c,{transform:{x:le.x-be.x,y:le.y-be.y,scaleX:1,scaleY:1},activatorEvent:O,active:Ce,activeNodeRect:Fe,containerNodeRect:ot,draggingNodeRect:ue,over:Y.current.over,overlayNodeRect:oe.rect,scrollableAncestors:ft,scrollableAncestorRects:kt,windowRect:xe}),L=ze?_a(ze,le):null,Se=Ak(ft),I=Tv(Se),te=Tv(Se,[Fe]),Pe=_a(St,I),Te=ue?ak(ue,St):null,xt=Ce&&Te?g({active:Ce,collisionRect:Te,droppableRects:je,droppableContainers:Be,pointerCoordinates:L}):null,ln=Ov(xt,"id"),[ct,qt]=(0,ie.useState)(null),Zt=Ve?St:_a(St,te),M=ok(Zt,(a=ct?.rect)!=null?a:null,Fe),N=(0,ie.useRef)(null),Z=(0,ie.useCallback)((ce,ke)=>{let{sensor:Re,options:Ae}=ke;if(Oe.current==null)return;let Ke=j.get(Oe.current);if(!Ke)return;let Ie=ce.nativeEvent,U=new Re({active:Oe.current,activeNode:Ke,event:Ie,options:Ae,context:Y,onAbort(Ee){if(!j.get(Ee))return;let{onDragAbort:Rt}=fe.current,yt={id:Ee};Rt?.(yt),_({type:"onDragAbort",event:yt})},onPending(Ee,_t,Rt,yt){if(!j.get(Ee))return;let{onDragPending:Ht}=fe.current,Et={id:Ee,constraint:_t,initialCoordinates:Rt,offset:yt};Ht?.(Et),_({type:"onDragPending",event:Et})},onStart(Ee){let _t=Oe.current;if(_t==null)return;let Rt=j.get(_t);if(!Rt)return;let{onDragStart:yt}=fe.current,Jt={activatorEvent:Ie,active:{id:_t,data:Rt.data,rect:ye}};(0,va.unstable_batchedUpdates)(()=>{yt?.(Jt),D(Mr.Initializing),f({type:nn.DragStart,initialCoordinates:Ee,active:_t}),_({type:"onDragStart",event:Jt}),W(N.current),ne(Ie)})},onMove(Ee){f({type:nn.DragMove,coordinates:Ee})},onEnd:qe(nn.DragEnd),onCancel:qe(nn.DragCancel)});N.current=U;function qe(Ee){return async function(){let{active:Rt,collisions:yt,over:Jt,scrollAdjustedTranslate:Ht}=Y.current,Et=null;if(Rt&&Ht){let{cancelDrop:Sn}=fe.current;Et={activatorEvent:Ie,active:Rt,collisions:yt,delta:Ht,over:Jt},Ee===nn.DragEnd&&typeof Sn=="function"&&await Promise.resolve(Sn(Et))&&(Ee=nn.DragCancel)}Oe.current=null,(0,va.unstable_batchedUpdates)(()=>{f({type:Ee}),D(Mr.Uninitialized),qt(null),W(null),ne(null),N.current=null;let Sn=Ee===nn.DragEnd?"onDragEnd":"onDragCancel";if(Et){let fo=fe.current[Sn];fo?.(Et),_({type:Sn,event:Et})}})}}},[j]),J=(0,ie.useCallback)((ce,ke)=>(Re,Ae)=>{let Ke=Re.nativeEvent,Ie=j.get(Ae);if(Oe.current!==null||!Ie||Ke.dndKit||Ke.defaultPrevented)return;let U={active:Ie};ce(Re,ke.options,U)===!0&&(Ke.dndKit={capturedBy:ke.sensor},Oe.current=Ae,Z(Re,ke))},[j,Z]),X=Ek(p,J);Ik(p),so(()=>{Fe&&S===Mr.Initializing&&D(Mr.Initialized)},[Fe,S]),(0,ie.useEffect)(()=>{let{onDragMove:ce}=fe.current,{active:ke,activatorEvent:Re,collisions:Ae,over:Ke}=Y.current;if(!ke||!Re)return;let Ie={active:ke,activatorEvent:Re,collisions:Ae,delta:{x:Pe.x,y:Pe.y},over:Ke};(0,va.unstable_batchedUpdates)(()=>{ce?.(Ie),_({type:"onDragMove",event:Ie})})},[Pe.x,Pe.y]),(0,ie.useEffect)(()=>{let{active:ce,activatorEvent:ke,collisions:Re,droppableContainers:Ae,scrollAdjustedTranslate:Ke}=Y.current;if(!ce||Oe.current==null||!ke||!Ke)return;let{onDragOver:Ie}=fe.current,U=Ae.get(ln),qe=U&&U.rect.current?{id:U.id,rect:U.rect.current,data:U.data,disabled:U.disabled}:null,Ee={active:ce,activatorEvent:ke,collisions:Re,delta:{x:Ke.x,y:Ke.y},over:qe};(0,va.unstable_batchedUpdates)(()=>{qt(qe),Ie?.(Ee),_({type:"onDragOver",event:Ee})})},[ln]),so(()=>{Y.current={activatorEvent:O,active:Ce,activeNode:Me,collisionRect:Te,collisions:xt,droppableRects:je,draggableNodes:j,draggingNode:ge,draggingNodeRect:ue,droppableContainers:re,over:ct,scrollableAncestors:ft,scrollAdjustedTranslate:Pe},ye.current={initial:ue,translated:Te}},[Ce,Me,xt,Te,j,ge,ue,je,re,ct,ft,Pe]),Sk({...He,delta:le,draggingRect:Te,pointerCoordinates:L,scrollableAncestors:ft,scrollableAncestorRects:kt});let ae=(0,ie.useMemo)(()=>({active:Ce,activeNode:Me,activeNodeRect:Fe,activatorEvent:O,collisions:xt,containerNodeRect:ot,dragOverlay:oe,draggableNodes:j,droppableContainers:re,droppableRects:je,over:ct,measureDroppableContainers:nt,scrollableAncestors:ft,scrollableAncestorRects:kt,measuringConfiguration:$e,measuringScheduled:ve,windowRect:xe}),[Ce,Me,Fe,O,xt,ot,oe,j,re,je,ct,nt,ft,kt,$e,ve,xe]),de=(0,ie.useMemo)(()=>({activatorEvent:O,activators:X,active:Ce,activeNodeRect:Fe,ariaDescribedById:{draggable:Ne},dispatch:f,draggableNodes:j,over:ct,measureDroppableContainers:nt}),[O,X,Ce,Fe,f,Ne,j,ct,nt]);return ie.default.createElement(Av.Provider,{value:w},ie.default.createElement(Zu.Provider,{value:de},ie.default.createElement(Yv.Provider,{value:ae},ie.default.createElement(Kv.Provider,{value:M},d)),ie.default.createElement(qk,{disabled:l?.restoreFocus===!1})),ie.default.createElement(Q0,{...l,hiddenTextDescribedById:Ne}));function x(){let ce=q?.autoScrollEnabled===!1,ke=typeof s=="object"?s.enabled===!1:s===!1,Re=T&&!ce&&!ke;return typeof s=="object"?{...s,enabled:Re}:{enabled:Re}}}),Qk=(0,ie.createContext)(null),Lv="button",Zk="Draggable";function Xv(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e,a=ga(Zk),{activators:i,activatorEvent:l,active:s,activeNodeRect:d,ariaDescribedById:p,draggableNodes:g,over:m}=(0,ie.useContext)(Zu),{role:c=Lv,roleDescription:h="draggable",tabIndex:v=0}=r??{},b=s?.id===t,f=(0,ie.useContext)(b?Kv:Qk),[_,w]=Al(),[S,D]=Al(),T=Ok(i,t),V=bi(n);so(()=>(g.set(t,{id:t,key:a,node:_,activatorNode:S,data:V}),()=>{let le=g.get(t);le&&le.key===a&&g.delete(t)}),[g,t]);let j=(0,ie.useMemo)(()=>({role:c,tabIndex:v,"aria-disabled":o,"aria-pressed":b&&c===Lv?!0:void 0,"aria-roledescription":h,"aria-describedby":p.draggable}),[o,c,v,b,h,p.draggable]);return{active:s,activatorEvent:l,activeNodeRect:d,attributes:j,isDragging:b,listeners:o?void 0:T,node:_,over:m,setNodeRef:w,setActivatorNodeRef:D,transform:f}}function Qv(){return(0,ie.useContext)(Yv)}var Jk="Droppable",eS={timeout:25};function Zv(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e,a=ga(Jk),{active:i,dispatch:l,over:s,measureDroppableContainers:d}=(0,ie.useContext)(Zu),p=(0,ie.useRef)({disabled:n}),g=(0,ie.useRef)(!1),m=(0,ie.useRef)(null),c=(0,ie.useRef)(null),{disabled:h,updateMeasurementsFor:v,timeout:b}={...eS,...r},f=bi(v??o),_=(0,ie.useCallback)(()=>{if(!g.current){g.current=!0;return}c.current!=null&&clearTimeout(c.current),c.current=setTimeout(()=>{d(Array.isArray(f.current)?f.current:[f.current]),c.current=null},b)},[b]),w=Qu({callback:_,disabled:h||!i}),S=(0,ie.useCallback)((j,le)=>{w&&(le&&(w.unobserve(le),g.current=!1),j&&w.observe(j))},[w]),[D,T]=Al(S),V=bi(t);return(0,ie.useEffect)(()=>{!w||!D.current||(w.disconnect(),g.current=!1,w.observe(D.current))},[D,w]),(0,ie.useEffect)(()=>(l({type:nn.RegisterDroppable,element:{id:o,key:a,disabled:n,node:D,rect:m,data:V}}),()=>l({type:nn.UnregisterDroppable,key:a,id:o})),[o]),(0,ie.useEffect)(()=>{n!==p.current.disabled&&(l({type:nn.SetDroppableDisabled,id:o,key:a,disabled:n}),p.current.disabled=n)},[o,a,n,l]),{active:i,rect:m,isOver:s?.id===o,node:D,over:s,setNodeRef:T}}var Gt=De(wt());function ki(e,t,n){let o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function tS(e,t){return e.reduce((n,o,r)=>{let a=t.get(o);return a&&(n[r]=a),n},Array(e.length))}function Ju(e){return e!==null&&e>=0}function nS(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:a,index:i}=e,l=(t=n[r])!=null?t:o;if(!l)return null;let s=rS(n,i,r);if(i===r){let d=n[a];return d?{x:rr&&i<=a?{x:-l.width-s,y:0,...ec}:i=a?{x:l.width+s,y:0,...ec}:{x:0,y:0,...ec}};function rS(e,t,n){let o=e[t],r=e[t-1],a=e[t+1];return!o||!r&&!a?0:n{let{rects:t,activeIndex:n,overIndex:o,index:r}=e,a=ki(t,o,n),i=t[r],l=a[r];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}};var eb="Sortable",tb=Gt.default.createContext({activeIndex:-1,containerId:eb,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Jv,disabled:{draggable:!1,droppable:!1}});function Am(e){let{children:t,id:n,items:o,strategy:r=Jv,disabled:a=!1}=e,{active:i,dragOverlay:l,droppableRects:s,over:d,measureDroppableContainers:p}=Qv(),g=ga(eb,n),m=l.rect!==null,c=(0,Gt.useMemo)(()=>o.map(T=>typeof T=="object"&&"id"in T?T.id:T),[o]),h=i!=null,v=i?c.indexOf(i.id):-1,b=d?c.indexOf(d.id):-1,f=(0,Gt.useRef)(c),_=!nS(c,f.current),w=b!==-1&&v===-1||_,S=oS(a);so(()=>{_&&h&&p(c)},[_,c,h,p]),(0,Gt.useEffect)(()=>{f.current=c},[c]);let D=(0,Gt.useMemo)(()=>({activeIndex:v,containerId:g,disabled:S,disableTransforms:w,items:c,overIndex:b,useDragOverlay:m,sortedRects:tS(c,s),strategy:r}),[v,g,S.draggable,S.droppable,w,c,b,s,m,r]);return Gt.default.createElement(tb.Provider,{value:D},t)}var aS=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return ki(n,o,r).indexOf(t)},iS=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:d}=e;return!d||!o||l!==a&&r===i?!1:n?!0:i!==r&&t===s},lS={duration:200,easing:"ease"},nb="transform",sS=Jo.Transition.toString({property:nb,duration:0,easing:"linear"}),uS={roleDescription:"sortable"};function cS(e){let{disabled:t,index:n,node:o,rect:r}=e,[a,i]=(0,Gt.useState)(null),l=(0,Gt.useRef)(n);return so(()=>{if(!t&&n!==l.current&&o.current){let s=r.current;if(s){let d=wa(o.current,{ignoreTransform:!0}),p={x:s.left-d.left,y:s.top-d.top,scaleX:s.width/d.width,scaleY:s.height/d.height};(p.x||p.y)&&i(p)}}n!==l.current&&(l.current=n)},[t,n,o,r]),(0,Gt.useEffect)(()=>{a&&i(null)},[a]),a}function Im(e){let{animateLayoutChanges:t=iS,attributes:n,disabled:o,data:r,getNewIndex:a=aS,id:i,strategy:l,resizeObserverConfig:s,transition:d=lS}=e,{items:p,containerId:g,activeIndex:m,disabled:c,disableTransforms:h,sortedRects:v,overIndex:b,useDragOverlay:f,strategy:_}=(0,Gt.useContext)(tb),w=dS(o,c),S=p.indexOf(i),D=(0,Gt.useMemo)(()=>({sortable:{containerId:g,index:S,items:p},...r}),[g,r,S,p]),T=(0,Gt.useMemo)(()=>p.slice(p.indexOf(i)),[p,i]),{rect:V,node:j,isOver:le,setNodeRef:re}=Zv({id:i,data:D,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...s}}),{active:_e,activatorEvent:ye,activeNodeRect:Ce,attributes:Oe,setNodeRef:q,listeners:W,isDragging:O,over:ne,setActivatorNodeRef:fe,transform:Ne}=Xv({id:i,data:D,attributes:{...uS,...n},disabled:w.draggable}),Be=hv(re,q),$e=!!_e,je=$e&&!h&&Ju(m)&&Ju(b),nt=!f&&O,ve=nt&&je?Ne:null,ze=je?ve??(l??_)({rects:v,activeNodeRect:Ce,activeIndex:m,overIndex:b,index:S}):null,He=Ju(m)&&Ju(b)?a({id:i,items:p,activeIndex:m,overIndex:b}):S,Ue=_e?.id,Fe=(0,Gt.useRef)({activeId:Ue,items:p,newIndex:He,containerId:g}),ot=p!==Fe.current.items,Y=t({active:_e,containerId:g,isDragging:O,isSorting:$e,id:i,index:S,items:p,newIndex:Fe.current.newIndex,previousItems:Fe.current.items,previousContainerId:Fe.current.containerId,transition:d,wasDragging:Fe.current.activeId!=null}),E=cS({disabled:!Y,index:S,node:j,rect:V});return(0,Gt.useEffect)(()=>{$e&&Fe.current.newIndex!==He&&(Fe.current.newIndex=He),g!==Fe.current.containerId&&(Fe.current.containerId=g),p!==Fe.current.items&&(Fe.current.items=p)},[$e,He,g,p]),(0,Gt.useEffect)(()=>{if(Ue===Fe.current.activeId)return;if(Ue!=null&&Fe.current.activeId==null){Fe.current.activeId=Ue;return}let ge=setTimeout(()=>{Fe.current.activeId=Ue},50);return()=>clearTimeout(ge)},[Ue]),{active:_e,activeIndex:m,attributes:Oe,data:D,rect:V,index:S,newIndex:He,items:p,isOver:le,isSorting:$e,isDragging:O,listeners:W,node:j,overIndex:b,over:ne,setNodeRef:Be,setActivatorNodeRef:fe,setDroppableNodeRef:re,setDraggableNodeRef:q,transform:E??ze,transition:oe()};function oe(){if(E||ot&&Fe.current.newIndex===S)return sS;if(!(nt&&!Il(ye)||!d)&&($e||Y))return Jo.Transition.toString({...d,property:nb})}}function dS(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(o=e?.droppable)!=null?o:t.droppable}}var h1=[Ct.Down,Ct.Right,Ct.Up,Ct.Left];var Sb=require("obsidian"),se=De(wt(),1),lc=De(lo(),1);var Si={clipEllipsis:!0};var tc=De(wt(),1);function Vn(e,t){let[n,o]=(0,tc.useState)(e);return(0,tc.useEffect)(()=>{let r=window.setTimeout(()=>o(e),t);return()=>window.clearTimeout(r)},[e,t]),n}var me=De(wt(),1),er=De(lo(),1);var ib=require("obsidian");function Hl(){try{let e=(0,ib.getLanguage)();return new Intl.NumberFormat(e),e}catch{return"en"}}var ob=["#e0e7ff","#fce7f3","#fef3c7","#dcfce7","#dbeafe","#e9d5ff","#fed7aa","#fecaca","#d1fae5","#e0f2fe","#fae8ff","#fef9c3","#ffd6d6","#d6f0f0","#f0d6f0","#f0f0d6"];function rb(e,t){let n=e.find(r=>r.value===t);if(n?.color)return n.color;let o=e.findIndex(r=>r.value===t);return ob[o%ob.length]??"#e8e8e8"}function pS(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),o=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return(.299*n+.587*o+.114*r)/255>.5?"rgba(0,0,0,0.75)":"rgba(255,255,255,0.9)"}function mS(e,t){if(!t)return String(e);let n={minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals,useGrouping:t.thousandsSeparator},o=new Intl.NumberFormat(Hl(),n).format(e);return t.prefix&&(o=`${t.prefix} ${o}`),t.suffix&&(o=`${o} ${t.suffix}`),o}function Om(){return window.moment??null}function $m(e,t,n){if(!e)return"";let o=Om();if(!o)return e;let r=e.includes("T")||/ \d{1,2}:\d{2}/.test(e),a=n||t||(r?"L LT":"L");try{return o(e).format(a)}catch{return e}}function xo(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="bigint")return e.toString();try{return JSON.stringify(e)}catch{return""}}function fS(e,t,n){if(e==null||e==="")return"";if(!t)return Array.isArray(e)?e.map(xo).join(", "):xo(e);switch(t.type){case"number":{let o=typeof e=="number"?e:Number(xo(e));return Number.isNaN(o)?xo(e):mS(o,t.numberFormat)}case"date":return $m(xo(e),t.dateFormat,n);case"checkbox":return e?"\u2713":"\u2717";case"multiselect":case"relation":return Array.isArray(e)?e.map(xo).join(", "):xo(e);default:return Array.isArray(e)?e.map(xo).join(", "):xo(e)}}function ab(e,t){let n=createSpan();return n.className="nb-placeholder-pill",n.textContent=e,n.style.background=t,n.style.color=pS(t),n}function lb(e,t,n){if(e==null||e==="")return[activeDocument.createTextNode("")];if(t?.type==="select"||t?.type==="status"){let o=xo(e);return[ab(o,rb(t.options??[],o))]}if(t?.type==="multiselect"&&Array.isArray(e)){let o=[];return e.forEach((r,a)=>{let i=xo(r);a>0&&o.push(activeDocument.createTextNode(" ")),o.push(ab(i,rb(t.options??[],i)))}),o}return[activeDocument.createTextNode(fS(e,t,n))]}var R=De(vt(),1),db={title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",url:"\u2197",email:"\u2709",phone:"\u{1F4DE}",status:"\u25CE",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197",rollup:"\u03A3",image:"\u{1F5BC}",audio:"\u{1F3B5}",video:"\u{1F3AC}"},wS=()=>({title:u("type_title"),text:u("type_text"),number:u("type_number"),select:u("type_select"),multiselect:u("type_multiselect"),date:u("type_date"),checkbox:u("type_checkbox"),url:u("type_url"),email:u("type_email"),phone:u("type_phone"),status:u("type_status"),formula:u("type_formula"),relation:u("type_relation"),lookup:u("type_lookup"),rollup:u("type_rollup"),image:u("type_image"),audio:u("type_audio"),video:u("type_video")});function pb({col:e,schema:t,onUpdateSchema:n,onRenameColumn:o,onChangeType:r,manager:a,dbFile:i}){let l=$t(),[s,d]=(0,me.useState)(!1),[p,g]=(0,me.useState)(!1),[m,c]=(0,me.useState)(e.name),[h,v]=(0,me.useState)(!1),[b,f]=(0,me.useState)(e.formula??""),[_,w]=(0,me.useState)(null),[S,D]=(0,me.useState)(null),T=(0,me.useRef)(null),V=(0,me.useRef)(null),j=(0,me.useRef)(null),le=(0,me.useRef)(null),re=(0,me.useRef)(null),[_e,ye]=(0,me.useState)(!1),[Ce,Oe]=(0,me.useState)(null),[q,W]=(0,me.useState)(e.refDatabasePath??""),[O,ne]=(0,me.useState)(e.refColumnId??""),[fe,Ne]=(0,me.useState)(e.refMatchColumnId??""),[Be,$e]=(0,me.useState)(!!e.pairedColumnId),[je,nt]=(0,me.useState)(!!e.isHierarchical),[ve,Me]=(0,me.useState)([]),[ze,He]=(0,me.useState)([]),Ue=(0,me.useRef)(null),Fe=(0,me.useRef)(null),[ot,Y]=(0,me.useState)(!1),[E,oe]=(0,me.useState)(null),[ge,ue]=(0,me.useState)(e.rollupRelationColumnId??""),[Ve,be]=(0,me.useState)(e.rollupTargetColumnId??""),[xe,ft]=(0,me.useState)(e.rollupFunction??"count"),[kt,St]=(0,me.useState)([]),L=(0,me.useRef)(null),Se=(0,me.useRef)(null),[I,te]=(0,me.useState)(!1),[Pe,Te]=(0,me.useState)(null),[xt,ln]=(0,me.useState)(e.numberFormat?.decimals??2),[ct,qt]=(0,me.useState)(e.numberFormat?.thousandsSeparator??!1),[Zt,M]=(0,me.useState)(e.numberFormat?.prefix??""),[N,Z]=(0,me.useState)(e.numberFormat?.suffix??""),J=(0,me.useRef)(null),X=(0,me.useRef)(null),[ae,de]=(0,me.useState)(!1),[x,ce]=(0,me.useState)(null),[ke,Re]=(0,me.useState)(e.dateFormat??""),Ae=(0,me.useRef)(null),Ke=(0,me.useRef)(null),[Ie,U]=(0,me.useState)(!1),[qe,Ee]=(0,me.useState)(null),[_t,Rt]=(0,me.useState)(e.imageSourceFolder??""),yt=(0,me.useRef)(null),Jt=(0,me.useRef)(null),[Ht,Et]=(0,me.useState)(!1),[Sn,fo]=(0,me.useState)(null),[Fi,Ea]=(0,me.useState)(e.audioSourceFolder??""),Mi=(0,me.useRef)(null),tr=(0,me.useRef)(null),[sn,Nn]=(0,me.useState)(!1),[Un,Hr]=(0,me.useState)(null),[nr,Ti]=(0,me.useState)(e.videoSourceFolder??""),jr=(0,me.useRef)(null),or=(0,me.useRef)(null);(0,me.useEffect)(()=>{if(!s)return;let y=$=>{let Q=$.target,we=T.current?.contains(Q),Xe=re.current?.contains(Q)||Ue.current?.contains(Q)||L.current?.contains(Q)||J.current?.contains(Q)||Ae.current?.contains(Q)||yt.current?.contains(Q)||Mi.current?.contains(Q)||jr.current?.contains(Q);!we&&!Xe&&(d(!1),v(!1),ye(!1),te(!1),de(!1))};return activeDocument.addEventListener("mousedown",y),()=>activeDocument.removeEventListener("mousedown",y)},[s]),(0,me.useEffect)(()=>{p||c(e.name)},[e.name,p]),(0,me.useEffect)(()=>{h||f(e.formula??"")},[e.formula,h]),(0,me.useEffect)(()=>{if(!p)return;let y=V.current;y&&(y.focus(),y.select())},[p]),(0,me.useEffect)(()=>{if(h){if(T.current){let y=T.current.getBoundingClientRect(),$=320,Q=420,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),D({x:we,y:Xe})}window.setTimeout(()=>j.current?.focus(),50)}},[h]),(0,me.useEffect)(()=>{if(!h)return;let y=Q=>{le.current&&D({x:Q.clientX-le.current.x,y:Q.clientY-le.current.y})},$=()=>{le.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[h]),(0,me.useEffect)(()=>{w(Jh(b))},[b]),(0,me.useEffect)(()=>{if(!_e)return;let y=a.getAllDatabases().map($=>({path:$.path,name:$.parent?.name||u("picker_root")}));if(Me(y),T.current){let $=T.current.getBoundingClientRect(),Q=320,we=380,Xe=$.left,Pt=$.bottom+4;Xe+Q>window.innerWidth&&(Xe=window.innerWidth-Q-8),Pt+we>window.innerHeight&&(Pt=$.top-we-4),Oe({x:Xe,y:Pt})}},[_e,a,i]),(0,me.useEffect)(()=>{if(!q){He([]);return}let y=l.vault.getFileByPath(q);if(!y){He([]);return}He(a.readConfig(y).schema)},[q,l,a]),(0,me.useEffect)(()=>{_e||(W(e.refDatabasePath??""),ne(e.refColumnId??""),Ne(e.refMatchColumnId??""))},[e.refDatabasePath,e.refColumnId,e.refMatchColumnId,_e]),(0,me.useEffect)(()=>{if(!_e)return;let y=Q=>{Fe.current&&Oe({x:Q.clientX-Fe.current.x,y:Q.clientY-Fe.current.y})},$=()=>{Fe.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[_e]),(0,me.useEffect)(()=>{if(!ot||!ge){St([]);return}let y=t.find(we=>we.id===ge);if(!y?.refDatabasePath){St([]);return}let $=l.vault.getFileByPath(y.refDatabasePath);if(!$){St([]);return}let Q=a.readConfig($);St(Q.schema)},[ot,ge,t,l,a]),(0,me.useEffect)(()=>{ot||(ue(e.rollupRelationColumnId??""),be(e.rollupTargetColumnId??""),ft(e.rollupFunction??"count"))},[e.rollupRelationColumnId,e.rollupTargetColumnId,e.rollupFunction,ot]),(0,me.useEffect)(()=>{if(!ot)return;if(T.current){let Q=T.current.getBoundingClientRect(),we=Q.left,Xe=Q.bottom+4;we+340>window.innerWidth&&(we=window.innerWidth-348),Xe+300>window.innerHeight&&(Xe=Q.top-304),oe({x:we,y:Xe})}let y=Q=>{Se.current&&oe({x:Q.clientX-Se.current.x,y:Q.clientY-Se.current.y})},$=()=>{Se.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[ot]),(0,me.useEffect)(()=>{if(I&&T.current){let y=T.current.getBoundingClientRect(),$=300,Q=300,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),Te({x:we,y:Xe})}},[I]),(0,me.useEffect)(()=>{I||(ln(e.numberFormat?.decimals??2),qt(e.numberFormat?.thousandsSeparator??!1),M(e.numberFormat?.prefix??""),Z(e.numberFormat?.suffix??""))},[e.numberFormat,I]),(0,me.useEffect)(()=>{if(ae&&T.current){let y=T.current.getBoundingClientRect(),$=300,Q=280,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),ce({x:we,y:Xe})}},[ae]),(0,me.useEffect)(()=>{ae||Re(e.dateFormat??"")},[e.dateFormat,ae]),(0,me.useEffect)(()=>{if(!ae)return;let y=Q=>{Ke.current&&ce({x:Q.clientX-Ke.current.x,y:Q.clientY-Ke.current.y})},$=()=>{Ke.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[ae]),(0,me.useEffect)(()=>{Ie||Rt(e.imageSourceFolder??"")},[e.imageSourceFolder,Ie]),(0,me.useEffect)(()=>{if(Ie&&T.current){let y=T.current.getBoundingClientRect(),$=280,Q=160,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),Ee({x:we,y:Xe})}},[Ie]),(0,me.useEffect)(()=>{if(!Ie)return;let y=Q=>{Jt.current&&Ee({x:Q.clientX-Jt.current.x,y:Q.clientY-Jt.current.y})},$=()=>{Jt.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[Ie]),(0,me.useEffect)(()=>{Ht||Ea(e.audioSourceFolder??"")},[e.audioSourceFolder,Ht]),(0,me.useEffect)(()=>{if(Ht&&T.current){let y=T.current.getBoundingClientRect(),$=280,Q=160,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),fo({x:we,y:Xe})}},[Ht]),(0,me.useEffect)(()=>{if(!Ht)return;let y=Q=>{tr.current&&fo({x:Q.clientX-tr.current.x,y:Q.clientY-tr.current.y})},$=()=>{tr.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[Ht]),(0,me.useEffect)(()=>{sn||Ti(e.videoSourceFolder??"")},[e.videoSourceFolder,sn]),(0,me.useEffect)(()=>{if(sn&&T.current){let y=T.current.getBoundingClientRect(),$=280,Q=160,we=y.left,Xe=y.bottom+4;we+$>window.innerWidth&&(we=window.innerWidth-$-8),Xe+Q>window.innerHeight&&(Xe=y.top-Q-4),Hr({x:we,y:Xe})}},[sn]),(0,me.useEffect)(()=>{if(!sn)return;let y=Q=>{or.current&&Hr({x:Q.clientX-or.current.x,y:Q.clientY-or.current.y})},$=()=>{or.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[sn]),(0,me.useEffect)(()=>{if(!I)return;let y=Q=>{X.current&&Te({x:Q.clientX-X.current.x,y:Q.clientY-X.current.y})},$=()=>{X.current=null};return activeDocument.addEventListener("mousemove",y),activeDocument.addEventListener("mouseup",$),()=>{activeDocument.removeEventListener("mousemove",y),activeDocument.removeEventListener("mouseup",$)}},[I]);let Gl=async()=>{await fn({imageSourceFolder:_t.trim()||void 0}),U(!1),d(!1)},ql=()=>{U(!1),d(!1)},hc=y=>{qe&&(Jt.current={x:y.clientX-qe.x,y:y.clientY-qe.y},y.preventDefault())},vc=async()=>{await fn({audioSourceFolder:Fi.trim()||void 0}),Et(!1),d(!1)},It=()=>{Et(!1),d(!1)},bc=y=>{Sn&&(tr.current={x:y.clientX-Sn.x,y:y.clientY-Sn.y},y.preventDefault())},yc=async()=>{await fn({videoSourceFolder:nr.trim()||void 0}),Nn(!1),d(!1)},Yl=()=>{Nn(!1),d(!1)},wc=y=>{Un&&(or.current={x:y.clientX-Un.x,y:y.clientY-Un.y},y.preventDefault())},fn=async y=>{let $=t.map(Q=>Q.id===e.id?{...Q,...y}:Q);await n($)},Kl=async()=>{let y=m.trim();y&&y!==e.name&&await o(e.id,y),g(!1),d(!1)},Xl=async()=>{await fn({visible:!1}),d(!1)},Cc=async()=>{let y=t.filter($=>$.id!==e.id);await n(y),d(!1)},rr=async y=>{await r(y)&&(await fn({type:y}),y==="formula"?v(!0):y==="lookup"||y==="relation"?ye(!0):y==="rollup"?Y(!0):y==="image"?U(!0):d(!1))},Pi=async()=>{_||(await fn({formula:b.trim()||void 0}),v(!1),d(!1))},Da=()=>{v(!1),d(!1)},Ql=y=>{S&&(le.current={x:y.clientX-S.x,y:y.clientY-S.y},y.preventDefault())},Zl=async()=>{let y=e.pairedColumnId;if(e.type==="relation"&&Be&&q&&!e.pairedColumnId){let $=l.vault.getFileByPath(q);if($){let Q=a.readConfig($),we=`rel_${e.id}_${Date.now()}`,Xe=i?.parent?.name||l.vault.getName(),Pt={id:we,name:Xe,type:"relation",visible:!0,refDatabasePath:i?.path.replace(/\/[^/]+$/,"/_database.md")??"",refColumnId:"_title",pairedColumnId:e.id};Q.schema.push(Pt),await a.writeConfig($,Q),y=we}}else if(e.type==="relation"&&!Be&&e.pairedColumnId){let $=l.vault.getFileByPath(q||e.refDatabasePath||"");if($){let Q=a.readConfig($);Q.schema=Q.schema.filter(we=>we.id!==e.pairedColumnId),await a.writeConfig($,Q)}y=void 0}await fn({refDatabasePath:q,refColumnId:e.type==="relation"?"_title":O,...e.type==="lookup"?{refMatchColumnId:fe}:{},...e.type==="relation"?{pairedColumnId:y,isHierarchical:je||void 0}:{}}),ye(!1),d(!1)},Li=()=>{ye(!1),d(!1)},Ur=y=>{Ce&&(Fe.current={x:y.clientX-Ce.x,y:y.clientY-Ce.y},y.preventDefault())},Wr=async()=>{await fn({rollupRelationColumnId:ge,rollupTargetColumnId:Ve,rollupFunction:xe}),Y(!1),d(!1)},kc=y=>{E&&(Se.current={x:y.clientX-E.x,y:y.clientY-E.y},y.preventDefault())},Fa=[{value:"count",label:u("rollup_fn_count")},{value:"sum",label:u("rollup_fn_sum")},{value:"avg",label:u("rollup_fn_avg")},{value:"min",label:u("rollup_fn_min")},{value:"max",label:u("rollup_fn_max")},{value:"count_values",label:u("rollup_fn_count_values")},{value:"list",label:u("rollup_fn_list")}],Ma=t.filter(y=>y.type==="relation"),Sc=async()=>{let y={decimals:xt,thousandsSeparator:ct,...Zt.trim()?{prefix:Zt.trim()}:{},...N.trim()?{suffix:N.trim()}:{}};await fn({numberFormat:y}),te(!1),d(!1)},Jl=()=>{te(!1),d(!1)},es=async()=>{await fn({numberFormat:void 0}),te(!1),d(!1)},Nc=y=>{Pe&&(X.current={x:y.clientX-Pe.x,y:y.clientY-Pe.y},y.preventDefault())},xc=async()=>{await fn({dateFormat:ke.trim()||void 0}),de(!1),d(!1)},ts=()=>{de(!1),d(!1)},Gr=async()=>{await fn({dateFormat:void 0}),de(!1),d(!1)},ns=y=>{x&&(Ke.current={x:y.clientX-x.x,y:y.clientY-x.y},y.preventDefault())},[go,os]=(0,me.useState)(!1),Ai=t.filter(y=>y.id!==e.id&&y.type!=="formula"),Rc=[{group:u("formula_group_logic"),items:[{fn:"IF(cond, a, b)",desc:u("formula_desc_if")},{fn:"IFS(c1, v1, c2, v2\u2026)",desc:u("formula_desc_ifs")},{fn:"AND(a, b, \u2026)",desc:u("formula_desc_and")},{fn:"OR(a, b, \u2026)",desc:u("formula_desc_or")},{fn:"NOT(a)",desc:u("formula_desc_not")}]},{group:u("formula_group_comparators"),items:[{fn:"= <> != > < >= <=",desc:u("formula_desc_comparators")}]},{group:u("formula_group_aggregators"),items:[{fn:"SUM(col)",desc:u("formula_desc_sum")},{fn:"AVG(col)",desc:u("formula_desc_avg")},{fn:"COUNT(col)",desc:u("formula_desc_count")},{fn:"MIN(col)",desc:u("formula_desc_min")},{fn:"MAX(col)",desc:u("formula_desc_max")}]},{group:u("formula_group_text"),items:[{fn:"CONCAT(a, b, \u2026)",desc:u("formula_desc_concat")},{fn:"LEN(text)",desc:u("formula_desc_len")},{fn:"UPPER / LOWER(text)",desc:u("formula_desc_upper_lower")},{fn:"TRIM(text)",desc:u("formula_desc_trim")},{fn:"LEFT(text, n)",desc:u("formula_desc_left")},{fn:"RIGHT(text, n)",desc:u("formula_desc_right")},{fn:"MID(text, start, n)",desc:u("formula_desc_mid")},{fn:"SUBSTITUTE(t, from, to)",desc:u("formula_desc_substitute")}]},{group:u("formula_group_math"),items:[{fn:"ROUND(n, d)",desc:u("formula_desc_round")},{fn:"FLOOR / CEIL(n)",desc:u("formula_desc_floor_ceil")},{fn:"ABS(n)",desc:u("formula_desc_abs")},{fn:"MOD(n, d)",desc:u("formula_desc_mod")},{fn:"POWER(b, e)",desc:u("formula_desc_power")},{fn:"SQRT(n)",desc:u("formula_desc_sqrt")}]},{group:u("formula_group_date"),items:[{fn:"NOW()",desc:u("formula_desc_now")},{fn:"TODAY()",desc:u("formula_desc_today")},{fn:"DATE(y, m, d)",desc:u("formula_desc_date")},{fn:"YEAR / MONTH / DAY(date)",desc:u("formula_desc_date_parts")},{fn:"HOUR / MINUTE(date)",desc:u("formula_desc_time_parts")},{fn:"WEEKDAY(date)",desc:u("formula_desc_weekday")},{fn:"DATEDIF(start, end, unit)",desc:u("formula_desc_datedif")},{fn:"DATEADD(date, n, unit)",desc:u("formula_desc_dateadd")},{fn:'FORMATDATE(d, "DD/MM/YYYY")',desc:u("formula_desc_formatdate")}]},{group:u("formula_group_utils"),items:[{fn:"ISNULL(v)",desc:u("formula_desc_isnull")},{fn:"COALESCE(a, b, \u2026)",desc:u("formula_desc_coalesce")},{fn:"TEXT(v)",desc:u("formula_desc_text")},{fn:"VALUE(v)",desc:u("formula_desc_value")}]}],rs=(()=>{let y=1234.5678,$={minimumFractionDigits:xt,maximumFractionDigits:xt,useGrouping:ct},Q=new Intl.NumberFormat(Hl(),$).format(y);return Zt.trim()&&(Q=`${Zt.trim()} ${Q}`),N.trim()&&(Q=`${Q} ${N.trim()}`),Q})(),Ii=["YYYY-MM-DD","YYYY-MM-DD HH:mm","DD/MM/YYYY","DD/MM/YYYY HH:mm","MM/DD/YYYY","MM/DD/YYYY HH:mm","DD.MM.YYYY","MMM D, YYYY","D MMM YYYY HH:mm"],Ec=(()=>{let y=Om();if(!y)return"";try{return y(new Date).format(ke.trim()||"L LT")}catch{return""}})(),Dc=h&&S?(0,er.createPortal)((0,R.jsxs)("div",{ref:re,className:"nb-formula-floating-panel",style:{top:S.y,left:S.x},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:Ql,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u0192"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("formula_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:Da,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",children:[(0,R.jsx)("textarea",{ref:j,className:`nb-formula-textarea${_?" nb-formula-textarea--error":b.trim()?" nb-formula-textarea--ok":""}`,value:b,onChange:y=>f(y.target.value),placeholder:u("formula_placeholder"),rows:3,spellCheck:!1,onKeyDown:y=>{y.key==="Enter"&&(y.ctrlKey||y.metaKey)&&(y.preventDefault(),Pi()),y.key==="Escape"&&Da()}}),_&&(0,R.jsxs)("div",{className:"nb-formula-feedback nb-formula-feedback--error",children:[(0,R.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,R.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,R.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,R.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),_]}),!_&&b.trim()&&(0,R.jsxs)("div",{className:"nb-formula-feedback nb-formula-feedback--ok",children:[(0,R.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,R.jsx)("polyline",{points:"20 6 9 17 4 12"})}),u("formula_valid")]}),Ai.length>0&&(0,R.jsxs)("div",{className:"nb-formula-cols-hint",children:[(0,R.jsx)("span",{className:"nb-formula-cols-label",children:u("formula_available_cols")}),(0,R.jsx)("div",{className:"nb-formula-cols-list",children:Ai.map(y=>(0,R.jsx)("code",{className:"nb-formula-col-chip",title:`ID: ${y.id}`,onClick:()=>{let $=/\s/.test(y.name)?`[${y.name}]`:y.name;f(Q=>Q+$),j.current?.focus()},children:y.name},y.id))})]}),(0,R.jsxs)("div",{className:"nb-formula-ref",children:[(0,R.jsxs)("button",{className:"nb-formula-ref-toggle",onClick:()=>os(y=>!y),children:[(0,R.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:go?"rotate(90deg)":"none",transition:"transform 150ms"},children:(0,R.jsx)("polyline",{points:"9 18 15 12 9 6"})}),u("formula_ref_toggle")]}),go&&(0,R.jsx)("div",{className:"nb-formula-ref-body",children:Rc.map(y=>(0,R.jsxs)("div",{className:"nb-formula-ref-group",children:[(0,R.jsx)("div",{className:"nb-formula-ref-group-title",children:y.group}),(0,R.jsx)("table",{className:"nb-formula-ref-table",children:(0,R.jsx)("tbody",{children:y.items.map($=>(0,R.jsxs)("tr",{children:[(0,R.jsx)("td",{className:"nb-formula-ref-fn",children:(0,R.jsx)("code",{children:$.fn})}),(0,R.jsx)("td",{className:"nb-formula-ref-desc",children:$.desc})]},$.fn))})})]},y.group))})]}),(0,R.jsxs)("div",{className:"nb-formula-actions",children:[(0,R.jsx)("button",{className:"nb-formula-save",disabled:!!_,onClick:()=>{Pi()},title:u("formula_save_hint"),children:u("formula_save")}),(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:Da,children:u("formula_cancel")})]})]})]}),activeDocument.body):null,Ta=I&&Pe?(0,er.createPortal)((0,R.jsxs)("div",{ref:J,className:"nb-formula-floating-panel",style:{top:Pe.y,left:Pe.x},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:Nc,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"#"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("number_format_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:Jl,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",children:[(0,R.jsx)("div",{className:"nb-numfmt-preview",children:rs}),(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("number_decimals_label")}),(0,R.jsx)("select",{className:"nb-lookup-select",value:xt,onChange:y=>ln(Number(y.target.value)),children:[0,1,2,3,4,5,6].map(y=>(0,R.jsx)("option",{value:y,children:y},y))})]}),(0,R.jsxs)("div",{className:"nb-numfmt-checkbox-row",children:[(0,R.jsx)("input",{type:"checkbox",id:"nb-fmt-thousands",checked:ct,onChange:y=>qt(y.target.checked),className:"nb-cell-checkbox"}),(0,R.jsx)("label",{htmlFor:"nb-fmt-thousands",className:"nb-lookup-label",style:{cursor:"pointer"},children:u("number_thousands_label")})]}),(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("number_prefix_label")}),(0,R.jsx)("input",{type:"text",className:"nb-numfmt-text-input",value:Zt,onChange:y=>M(y.target.value),placeholder:u("number_prefix_placeholder")})]}),(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("number_suffix_label")}),(0,R.jsx)("input",{type:"text",className:"nb-numfmt-text-input",value:N,onChange:y=>Z(y.target.value),placeholder:u("number_suffix_placeholder")})]}),(0,R.jsxs)("div",{className:"nb-formula-actions",children:[(0,R.jsx)("button",{className:"nb-formula-save",onClick:()=>{Sc()},children:u("formula_save")}),(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:Jl,children:u("formula_cancel")})]}),e.numberFormat&&(0,R.jsx)("div",{style:{marginTop:"8px",textAlign:"center"},children:(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:()=>{es()},style:{color:"var(--text-error)",width:"100%"},children:u("number_remove_format")})})]})]}),activeDocument.body):null,qr=ae&&x?(0,er.createPortal)((0,R.jsxs)("div",{ref:Ae,className:"nb-formula-floating-panel",style:{top:x.y,left:x.x},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:ns,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F4C5}"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("date_format_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:ts,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",children:[(0,R.jsx)("div",{className:"nb-numfmt-preview",children:Ec}),(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("date_format_preset_label")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:Ii.includes(ke)?ke:"",onChange:y=>{y.target.value&&Re(y.target.value)},children:[(0,R.jsx)("option",{value:"",children:u("date_format_custom")}),Ii.map(y=>(0,R.jsx)("option",{value:y,children:y},y))]})]}),(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("date_format_pattern_label")}),(0,R.jsx)("input",{type:"text",className:"nb-numfmt-text-input",value:ke,onChange:y=>Re(y.target.value),placeholder:"YYYY-MM-DD HH:mm"})]}),(0,R.jsxs)("div",{className:"nb-formula-actions",children:[(0,R.jsx)("button",{className:"nb-formula-save",onClick:()=>{xc()},children:u("formula_save")}),(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:ts,children:u("formula_cancel")})]}),e.dateFormat&&(0,R.jsx)("div",{style:{marginTop:"8px",textAlign:"center"},children:(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:()=>{Gr()},style:{color:"var(--text-error)",width:"100%"},children:u("number_remove_format")})})]})]}),activeDocument.body):null,Yr=ot&&E?(0,er.createPortal)((0,R.jsxs)("div",{ref:L,className:"nb-formula-floating-panel",style:{top:E.y,left:E.x},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:kc,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u03A3"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("rollup_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:()=>{Y(!1),d(!1)},title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsx)("div",{className:"nb-formula-body",style:{padding:"12px"},children:Ma.length===0?(0,R.jsx)("div",{style:{color:"var(--text-muted)",fontSize:"0.85rem"},children:u("rollup_no_relations")}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_relation")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:ge,onChange:y=>{ue(y.target.value),be("")},children:[(0,R.jsx)("option",{value:"",children:u("rollup_select_relation_placeholder")}),Ma.map(y=>(0,R.jsx)("option",{value:y.id,children:y.name},y.id))]})]}),ge&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_target")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:Ve,onChange:y=>be(y.target.value),children:[(0,R.jsx)("option",{value:"",children:u("rollup_select_target_placeholder")}),(0,R.jsx)("option",{value:"_title",children:u("lookup_file_name")}),kt.map(y=>(0,R.jsx)("option",{value:y.id,children:y.name},y.id))]})]}),Ve&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("rollup_select_function")}),(0,R.jsx)("select",{className:"nb-lookup-select",value:xe,onChange:y=>ft(y.target.value),children:Fa.map(y=>(0,R.jsx)("option",{value:y.value,children:y.label},y.value))})]}),(0,R.jsx)("button",{className:"nb-formula-save",disabled:!ge||!Ve,onClick:()=>{Wr()},children:u("formula_save")})]})})]}),activeDocument.body):null,Fc=_e&&Ce?(0,er.createPortal)((0,R.jsxs)("div",{ref:Ue,className:"nb-formula-floating-panel",style:{top:Ce.y,left:Ce.x},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:Ur,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:e.type==="relation"?"\u{1F517}":"\u2197"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[e.type==="relation"?u("relation_panel_title"):u("lookup_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:Li,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",children:[(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("lookup_ref_table")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:q,onChange:y=>{W(y.target.value),ne("")},children:[(0,R.jsx)("option",{value:"",children:u("lookup_select_table")}),ve.map(y=>(0,R.jsx)("option",{value:y.path,children:y.name},y.path))]})]}),e.type!=="relation"&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("lookup_col_to_display")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:O,onChange:y=>ne(y.target.value),disabled:!q,children:[(0,R.jsx)("option",{value:"",children:u("lookup_select_col")}),(0,R.jsx)("option",{value:"_title",children:"\u{1F4C4} "+u("lookup_file_name")}),ze.map(y=>(0,R.jsx)("option",{value:y.id,children:y.name},y.id))]})]}),e.type==="lookup"&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsx)("label",{className:"nb-lookup-label",children:u("lookup_join_col")}),(0,R.jsxs)("select",{className:"nb-lookup-select",value:fe,onChange:y=>Ne(y.target.value),children:[(0,R.jsx)("option",{value:"",children:u("lookup_select_col")}),(0,R.jsx)("option",{value:"_title",children:"\u{1F4C4} "+u("lookup_join_col_title")}),t.filter(y=>y.id!==e.id&&y.type!=="formula"&&y.type!=="lookup").map(y=>(0,R.jsx)("option",{value:y.id,children:y.name},y.id))]}),(0,R.jsx)("p",{className:"nb-lookup-hint",children:u("lookup_hint")})]}),e.type==="relation"&&q&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsxs)("label",{className:"nb-lookup-checkbox",children:[(0,R.jsx)("input",{type:"checkbox",checked:Be,onChange:y=>$e(y.target.checked)}),u("relation_two_way")]}),(0,R.jsx)("p",{className:"nb-lookup-hint",children:u("relation_two_way_hint")})]}),e.type==="relation"&&q&&q===i?.path&&(0,R.jsxs)("div",{className:"nb-lookup-section",children:[(0,R.jsxs)("label",{className:"nb-lookup-checkbox",children:[(0,R.jsx)("input",{type:"checkbox",checked:je,onChange:y=>{y.target.checked&&t.some($=>$.id!==e.id&&$.isHierarchical)||nt(y.target.checked)}}),u("hierarchy_toggle")]}),(0,R.jsx)("p",{className:"nb-lookup-hint",children:u("hierarchy_toggle_hint")})]}),(0,R.jsxs)("div",{className:"nb-formula-actions",children:[(0,R.jsx)("button",{className:"nb-formula-save",disabled:!q||e.type==="lookup"&&(!O||!fe),onClick:()=>{Zl()},children:u("formula_save")}),(0,R.jsx)("button",{className:"nb-formula-cancel",onClick:Li,children:u("formula_cancel")})]})]})]}),activeDocument.body):null,C=Ie&&qe?(0,er.createPortal)((0,R.jsxs)("div",{ref:yt,className:"nb-formula-floating-panel",style:{top:qe.y,left:qe.x,minWidth:280},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:hc,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F5BC}"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("image_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:ql,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,R.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("image_folder_label")}),(0,R.jsx)("input",{type:"text",className:"nb-header-rename-input",value:_t,onChange:y=>Rt(y.target.value),placeholder:u("image_folder_placeholder")}),(0,R.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,R.jsx)("button",{className:"nb-menu-item",onClick:ql,style:{flex:1},children:u("formula_cancel")}),(0,R.jsx)("button",{className:"nb-menu-item",onClick:()=>{Gl()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null,P=Ht&&Sn?(0,er.createPortal)((0,R.jsxs)("div",{ref:Mi,className:"nb-formula-floating-panel",style:{top:Sn.y,left:Sn.x,minWidth:280},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:bc,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F3B5}"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("audio_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:It,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,R.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("audio_folder_label")}),(0,R.jsx)("input",{type:"text",className:"nb-header-rename-input",value:Fi,onChange:y=>Ea(y.target.value),placeholder:u("audio_folder_placeholder")}),(0,R.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,R.jsx)("button",{className:"nb-menu-item",onClick:It,style:{flex:1},children:u("formula_cancel")}),(0,R.jsx)("button",{className:"nb-menu-item",onClick:()=>{vc()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null,F=sn&&Un?(0,er.createPortal)((0,R.jsxs)("div",{ref:jr,className:"nb-formula-floating-panel",style:{top:Un.y,left:Un.x,minWidth:280},children:[(0,R.jsxs)("div",{className:"nb-formula-titlebar",onMouseDown:wc,children:[(0,R.jsx)("span",{className:"nb-formula-titlebar-icon",children:"\u{1F3AC}"}),(0,R.jsxs)("span",{className:"nb-formula-titlebar-title",children:[u("video_panel_title"),": ",e.name]}),(0,R.jsx)("button",{className:"nb-formula-close",onClick:Yl,title:u("tooltip_close"),children:"\xD7"})]}),(0,R.jsxs)("div",{className:"nb-formula-body",style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[(0,R.jsx)("label",{style:{fontSize:"var(--font-ui-small)",color:"var(--text-muted)"},children:u("video_folder_label")}),(0,R.jsx)("input",{type:"text",className:"nb-header-rename-input",value:nr,onChange:y=>Ti(y.target.value),placeholder:u("video_folder_placeholder")}),(0,R.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,R.jsx)("button",{className:"nb-menu-item",onClick:Yl,style:{flex:1},children:u("formula_cancel")}),(0,R.jsx)("button",{className:"nb-menu-item",onClick:()=>{yc()},style:{flex:1,color:"var(--interactive-accent)"},children:u("formula_save")})]})]})]}),activeDocument.body):null;return(0,R.jsxs)("div",{className:"nb-column-header",ref:T,children:[p?(0,R.jsx)("input",{ref:V,className:"nb-header-rename-input",value:m,onChange:y=>c(y.target.value),onBlur:()=>{Kl()},onKeyDown:y=>{y.key==="Enter"&&Kl(),y.key==="Escape"&&(g(!1),d(!1))},onClick:y=>y.stopPropagation()}):(0,R.jsxs)("button",{className:"nb-header-label",onClick:()=>{d(y=>!y),v(!1),ye(!1),te(!1),de(!1),U(!1)},title:e.name,children:[(0,R.jsx)("span",{className:"nb-header-icon",children:db[e.type]}),(0,R.jsx)("span",{className:"nb-header-name",children:e.name})]}),s&&!h&&!_e&&!ot&&!I&&!ae&&!Ie&&(0,R.jsxs)("div",{className:"nb-column-menu",children:[(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>{d(!1),g(!0)},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u270F\uFE0F"}),(0,R.jsx)("span",{children:u("rename_column")})]}),e.type==="formula"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>v(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u0192"}),(0,R.jsx)("span",{children:u("edit_formula")})]}),e.type==="lookup"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>ye(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u2197"}),(0,R.jsx)("span",{children:u("configure_lookup")})]}),e.type==="relation"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>ye(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F517}"}),(0,R.jsx)("span",{children:u("configure_relation")})]}),e.type==="rollup"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>Y(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u03A3"}),(0,R.jsx)("span",{children:u("configure_rollup")})]}),e.type==="number"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>te(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"#"}),(0,R.jsx)("span",{children:u("format_number")})]}),e.type==="date"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>de(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,R.jsx)("span",{children:u("format_date")})]}),e.type==="image"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>U(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5BC}"}),(0,R.jsx)("span",{children:u("configure_image_folder")})]}),e.type==="audio"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>Et(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F3B5}"}),(0,R.jsx)("span",{children:u("configure_audio_folder")})]}),e.type==="video"&&(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>Nn(!0),children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F3AC}"}),(0,R.jsx)("span",{children:u("configure_video_folder")})]}),(0,R.jsx)("div",{className:"nb-menu-separator"}),(0,R.jsx)("div",{className:"nb-menu-label",children:u("field_type_label")}),["text","number","select","multiselect","date","checkbox","url","email","phone","status","formula","relation","lookup","rollup","image","audio","video"].map(y=>(0,R.jsxs)("button",{className:`nb-menu-item nb-menu-type-item ${e.type===y?"nb-menu-item--active":""}`,onClick:()=>{rr(y)},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:db[y]}),(0,R.jsx)("span",{children:wS()[y]})]},y)),(e.type==="text"||e.type==="title"||e.type==="url"||e.type==="email"||e.type==="phone")&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>{fn({wrap:!e.wrap,clip:!1}),d(!1)},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u21B5"}),(0,R.jsx)("span",{children:e.wrap?u("disable_wrap_text"):u("enable_wrap_text")})]}),(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>{fn({clip:!e.clip,wrap:!1}),d(!1)},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u22EF"}),(0,R.jsx)("span",{children:e.clip?u("disable_clip_text"):u("enable_clip_text")})]})]}),(0,R.jsx)("div",{className:"nb-menu-separator"}),(0,R.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Xl()},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F441}"}),(0,R.jsx)("span",{children:u("hide_field")})]}),(0,R.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{Cc()},children:[(0,R.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,R.jsx)("span",{children:u("delete_field")})]})]}),Dc,Fc,Yr,Ta,qr,C,P,F]})}var he=De(wt(),1),co=De(lo(),1);var oc=De(wt(),1);var A=De(vt(),1),Vm=(0,oc.createContext)(null);function rc(){let e=(0,oc.useContext)(Vm);if(!e)throw new Error("CellContext n\xE3o encontrado");return e}function CS(e,t){if(!t)return String(e);let n={minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals,useGrouping:t.thousandsSeparator},o=new Intl.NumberFormat(Hl(),n).format(e);return t.prefix&&(o=`${t.prefix} ${o}`),t.suffix&&(o=`${o} ${t.suffix}`),o}var kS=[{value:u("status_not_started"),color:"#9E9E9E"},{value:u("status_in_progress"),color:"#2196F3"},{value:u("status_done"),color:"#4CAF50"},{value:u("status_cancelled"),color:"#F44336"}];function zm(e){let t=e.replace(/\D/g,"").slice(0,11);return t.length<=2?`(${t}`:t.length<=6?`(${t.slice(0,2)}) ${t.slice(2)}`:t.length<=10?`(${t.slice(0,2)}) ${t.slice(2,6)}-${t.slice(6)}`:`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`}function mb({value:e,href:t,isEditing:n,inputType:o,onStartEdit:r,onCommit:a,onCancel:i,validate:l}){let[s,d]=(0,he.useState)(null),p=m=>{m.stopPropagation(),t&&window.open(t,"_blank")},g=m=>{if(m&&l){let c=l(m);if(c){d(c);return}}d(null),a(m)};return n?(0,A.jsxs)("div",{className:"nb-link-edit-wrapper",children:[(0,A.jsx)("input",{className:`nb-cell-input${s?" nb-cell-input--error":""}`,autoFocus:!0,type:o,defaultValue:e??"",onBlur:m=>g(m.target.value||null),onKeyDown:m=>{m.key==="Enter"&&g(m.target.value||null),m.key==="Escape"&&(d(null),i())}}),s&&(0,A.jsx)("span",{className:"nb-cell-error-msg",children:s})]}):(0,A.jsx)("div",{className:"nb-cell-clickable",onClick:r,children:e?(0,A.jsxs)("span",{className:"nb-cell-link-wrapper",children:[(0,A.jsx)("span",{className:"nb-cell-link",onClick:p,children:e}),(0,A.jsx)("span",{className:"nb-cell-link-icon",onClick:p,children:"\u2197"})]}):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}var Bm=he.default.memo(function({col:t,value:n,rowIndex:o,columnId:r,file:a}){let{editingCell:i,setEditingCell:l,updateCell:s,relationOptions:d}=rc(),p=$t(),g=i?.rowIndex===o&&i?.columnId===r,m=()=>{t.type==="formula"||t.type==="lookup"||t.type==="rollup"||t.type==="checkbox"||l({rowIndex:o,columnId:r})};switch(t.type){case"title":return(0,A.jsx)(fb,{value:String(n??""),isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null),onOpen:a?()=>{p.workspace.getLeaf(!1).openFile(a)}:void 0});case"text":return(0,A.jsx)(fb,{value:String(n??""),isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null)});case"number":return(0,A.jsx)(SS,{value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c)},onCancel:()=>l(null),format:t.numberFormat});case"select":return(0,A.jsx)(xS,{value:n,col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"multiselect":return(0,A.jsx)(ES,{value:Array.isArray(n)?n:[],col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"date":return(0,A.jsx)(FS,{value:n,format:t.dateFormat,isEditing:g,onStartEdit:m,onSave:c=>{s(o,r,c)},onClose:()=>l(null)});case"checkbox":return(0,A.jsx)(MS,{value:!!n,onCommit:c=>{s(o,r,c)}});case"relation":{let c=n,h=Array.isArray(c)?c.filter(v=>typeof v=="string"):typeof c=="string"&&c?[c]:[];return(0,A.jsx)(AS,{value:h,options:d.get(r)??[],isEditing:g,onStartEdit:m,onCommit:v=>{s(o,r,v.length>0?v:null),l(null)},onCancel:()=>l(null)})}case"url":return(0,A.jsx)(mb,{value:n,href:n?mt(n):null,inputType:"url",isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"email":return(0,A.jsx)(mb,{value:n,href:n?`mailto:${n}`:null,inputType:"email",isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null),validate:c=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?null:u("email_invalid")});case"phone":return(0,A.jsx)(NS,{value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"status":return(0,A.jsx)(RS,{value:n,col:t,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"formula":return(0,A.jsx)(TS,{value:n,col:t});case"lookup":return(0,A.jsx)(PS,{value:n,col:t});case"rollup":return(0,A.jsx)(LS,{value:n,col:t});case"image":return(0,A.jsx)(IS,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"audio":return(0,A.jsx)(OS,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});case"video":return(0,A.jsx)($S,{col:t,value:n,isEditing:g,onStartEdit:m,onCommit:c=>{s(o,r,c),l(null)},onCancel:()=>l(null)});default:return(0,A.jsx)("span",{className:"nb-cell-text",children:String(n??"")})}});function fb({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r,onOpen:a}){let i=(0,he.useRef)(null),[l,s]=(0,he.useState)(e),d=(0,he.useRef)(null);(0,he.useEffect)(()=>{t&&(s(e),window.requestAnimationFrame(()=>i.current?.select()))},[t,e]),(0,he.useEffect)(()=>()=>{d.current&&window.clearTimeout(d.current)},[]);let p=()=>{if(a){if(d.current!==null){window.clearTimeout(d.current),d.current=null;return}d.current=window.setTimeout(()=>{d.current=null,a()},250)}},g=()=>{d.current&&(window.clearTimeout(d.current),d.current=null),n()};return t?(0,A.jsx)("input",{ref:i,className:"nb-cell-input",value:l,onChange:m=>s(m.target.value),onBlur:()=>{o(l),r()},onKeyDown:m=>{m.key==="Enter"&&(o(l),r()),m.key==="Escape"&&r()}}):(0,A.jsx)("div",{className:"nb-cell-text nb-cell-clickable nb-cell-editable",onDoubleClick:g,title:e||void 0,children:a?(0,A.jsx)("span",{className:"nb-cell-title-link",onClick:p,children:e||(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}):e||(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}function SS({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r,format:a}){let i=(0,he.useRef)(null),[l,s]=(0,he.useState)(e?.toString()??"");return(0,he.useEffect)(()=>{t&&(s(e?.toString()??""),window.requestAnimationFrame(()=>i.current?.select()))},[t,e]),t?(0,A.jsx)("input",{ref:i,type:"number",className:"nb-cell-input nb-cell-input--number",value:l,onChange:d=>s(d.target.value),onBlur:()=>{let d=l===""?null:Number(l);o(isNaN(d)?null:d),r()},onKeyDown:d=>{if(d.key==="Enter"){let p=l===""?null:Number(l);o(isNaN(p)?null:p),r()}d.key==="Escape"&&r()}}):(0,A.jsx)("div",{className:"nb-cell-text nb-cell-clickable nb-cell-number",onDoubleClick:n,children:e!=null?CS(e,a):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}function NS({value:e,isEditing:t,onStartEdit:n,onCommit:o,onCancel:r}){let[a,i]=(0,he.useState)("");(0,he.useEffect)(()=>{t&&i(zm(e??""))},[t,e]);let l=s=>{s.stopPropagation(),e&&window.open(`tel:${e}`,"_blank")};return t?(0,A.jsx)("input",{className:"nb-cell-input",autoFocus:!0,type:"tel",value:a,onChange:s=>i(zm(s.target.value)),onBlur:()=>o(a||null),onKeyDown:s=>{s.key==="Enter"&&o(a||null),s.key==="Escape"&&r()}}):(0,A.jsx)("div",{className:"nb-cell-clickable",onClick:n,children:e?(0,A.jsxs)("span",{className:"nb-cell-link-wrapper",children:[(0,A.jsx)("span",{className:"nb-cell-link",onClick:l,children:zm(e)}),(0,A.jsx)("span",{className:"nb-cell-link-icon",onClick:l,children:"\u{1F4DE}"})]}):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})})}var Pr=["#e2d9f3","#d1e8ff","#d4f1c0","#fde8c8","#ffd6d6","#d6f0f0","#f0d6f0","#f0f0d6"];function Xt(e,t){let n=e.find(r=>r.value===t);if(n?.color)return n.color;let o=e.findIndex(r=>r.value===t);return Pr[o%Pr.length]??"#e8e8e8"}function Tr(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),o=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return(.299*n+.587*o+.114*r)/255>.5?"rgba(0,0,0,0.75)":"rgba(255,255,255,0.9)"}function xS({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=rc(),s=(0,he.useRef)(null),d=(0,he.useRef)(null),p=(0,he.useRef)(null),[g,m]=(0,he.useState)(null),[c,h]=(0,he.useState)(""),[v,b]=(0,he.useState)(null),[f,_]=(0,he.useState)(null),[w,S]=(0,he.useState)({}),D=t.options??[],T=D.map(W=>w[W.value]?{...W,color:w[W.value]}:W),V=(0,he.useRef)({}),j=176,le=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],re=(W,O)=>{S(ne=>({...ne,[W]:O})),V.current[W]=O},_e=(0,he.useCallback)(()=>{let W=V.current;if(Object.keys(W).length===0)return;let O=D.map(fe=>W[fe.value]?{...fe,color:W[fe.value]}:fe),ne=l.map(fe=>fe.id===t.id?{...fe,options:O}:fe);V.current={},S({}),i(ne)},[D,l,t.id,i]);(0,he.useEffect)(()=>{if(!n)return;let W=O=>{let ne=s.current?.contains(O.target),fe=d.current?.contains(O.target),Ne=p.current?.contains(O.target);!ne&&!fe&&!Ne&&(_e(),a())};return activeDocument.addEventListener("mousedown",W),()=>activeDocument.removeEventListener("mousedown",W)},[n,a,_e]),(0,he.useEffect)(()=>{if(!n){b(null);return}if(h(""),S({}),V.current={},s.current){let W=s.current.getBoundingClientRect();m({top:W.bottom,left:W.left,width:W.width})}},[n]),(0,he.useEffect)(()=>{if(!v)return;let W=O=>{p.current?.contains(O.target)||b(null)};return activeDocument.addEventListener("mousedown",W),()=>activeDocument.removeEventListener("mousedown",W)},[v]);let ye=async W=>{let O=W.trim();if(!O||T.some(Be=>Be.value===O))return;let ne=Pr[T.length%Pr.length],fe=[...T,{value:O,color:ne}],Ne=l.map(Be=>Be.id===t.id?{...Be,options:fe}:Be);await i(Ne),r(O),h("")},Ce=async(W,O)=>{O.stopPropagation();let ne=T.filter(Ne=>Ne.value!==W),fe=l.map(Ne=>Ne.id===t.id?{...Ne,options:ne}:Ne);await i(fe),e===W&&r(null)},Oe=n&&g?(0,co.createPortal)((0,A.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:g.top,left:g.left,minWidth:g.width,zIndex:9999},children:[(0,A.jsx)("input",{className:"nb-select-new-input",type:"text",placeholder:u("select_create_placeholder"),value:c,autoFocus:!0,onChange:W=>h(W.target.value),onKeyDown:W=>{W.key==="Enter"&&(W.preventDefault(),ye(c))}}),(0,A.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>r(null),children:u("select_clear")}),T.map(W=>(0,A.jsxs)("div",{className:`nb-select-option-row ${e===W.value?"nb-select-option-row--active":""}`,children:[(0,A.jsx)("button",{className:`nb-select-option ${e===W.value?"nb-select-option--active":""}`,onClick:()=>r(W.value),children:(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(T,W.value),color:Tr(Xt(T,W.value))},children:W.value})}),(0,A.jsx)("button",{className:`nb-status-color-swatch ${v===W.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Xt(T,W.value)},onClick:O=>{O.stopPropagation();let ne=O.currentTarget.getBoundingClientRect();_({top:ne.bottom+4,left:Math.min(ne.right-j,window.innerWidth-j-8)}),b(fe=>fe===W.value?null:W.value)}}),(0,A.jsx)("button",{className:"nb-select-option-delete",onClick:O=>{Ce(W.value,O)},title:u("select_clear"),children:"\xD7"})]},W.value))]}),activeDocument.body):null,q=v&&f?(0,co.createPortal)((0,A.jsxs)("div",{ref:p,className:"nb-status-color-picker",style:{position:"fixed",top:f.top,left:f.left,zIndex:1e4},children:[(0,A.jsx)("div",{className:"nb-status-color-grid",children:le.map(W=>(0,A.jsx)("button",{className:"nb-status-color-dot",style:{background:W},title:W,onClick:O=>{O.stopPropagation(),re(v,W)}},W))}),(0,A.jsx)("div",{className:"nb-status-color-custom",children:(0,A.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,A.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Xt(T,v),onChange:W=>{re(v,W.target.value)}})]})})]}),activeDocument.body):null;return(0,A.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,A.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e?(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(T,e),color:Tr(Xt(T,e))},children:e}):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),Oe,q]})}function RS({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=rc(),s=(0,he.useRef)(null),d=(0,he.useRef)(null),[p,g]=(0,he.useState)(null),[m,c]=(0,he.useState)(""),[h,v]=(0,he.useState)(null),[b,f]=(0,he.useState)(null),_=(0,he.useRef)(null),[w,S]=(0,he.useState)({}),D=(0,he.useRef)({}),T=176,V=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],j=t.options?.length?t.options:kS,le=j.map(q=>w[q.value]?{...q,color:w[q.value]}:q),re=(q,W)=>{S(O=>({...O,[q]:W})),D.current[q]=W},_e=(0,he.useCallback)(()=>{let q=D.current;if(Object.keys(q).length===0)return;let W=j.map(ne=>q[ne.value]?{...ne,color:q[ne.value]}:ne),O=l.map(ne=>ne.id===t.id?{...ne,options:W}:ne);D.current={},S({}),i(O)},[j,l,t.id,i]);(0,he.useEffect)(()=>{if(!n)return;let q=W=>{let O=s.current?.contains(W.target),ne=d.current?.contains(W.target),fe=_.current?.contains(W.target);!O&&!ne&&!fe&&(_e(),a())};return activeDocument.addEventListener("mousedown",q),()=>activeDocument.removeEventListener("mousedown",q)},[n,a,_e]),(0,he.useEffect)(()=>{if(!n){v(null);return}if(c(""),S({}),D.current={},s.current){let q=s.current.getBoundingClientRect();g({top:q.bottom,left:q.left,width:q.width})}},[n]),(0,he.useEffect)(()=>{if(!h)return;let q=W=>{_.current?.contains(W.target)||v(null)};return activeDocument.addEventListener("mousedown",q),()=>activeDocument.removeEventListener("mousedown",q)},[h]);let ye=async()=>{let q=m.trim();if(!q)return;let W=Pr[le.length%Pr.length],O={value:q,color:W},ne=[...le,O],fe=l.map(Ne=>Ne.id===t.id?{...Ne,options:ne}:Ne);await i(fe),c(""),r(q)},Ce=n&&p?(0,co.createPortal)((0,A.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:p.top,left:p.left,minWidth:p.width,zIndex:9999},children:[(0,A.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>r(null),children:u("select_clear")}),le.map(q=>(0,A.jsxs)("div",{className:`nb-status-option-row ${e===q.value?"nb-status-option-row--active":""}`,children:[(0,A.jsx)("button",{className:`nb-select-option nb-status-option-btn ${e===q.value?"nb-select-option--active":""}`,onClick:()=>r(q.value),children:(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(le,q.value),color:Tr(Xt(le,q.value))},children:q.value})}),(0,A.jsx)("button",{className:`nb-status-color-swatch ${h===q.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Xt(le,q.value),color:Tr(Xt(le,q.value))},onClick:W=>{W.stopPropagation();let O=W.currentTarget.getBoundingClientRect();f({top:O.bottom+4,left:Math.min(O.right-T,window.innerWidth-T-8)}),v(ne=>ne===q.value?null:q.value)}}),(0,A.jsx)("button",{className:"nb-status-delete-btn",title:u("tooltip_delete_status"),onClick:W=>{W.stopPropagation();let O=le.filter(fe=>fe.value!==q.value),ne=l.map(fe=>fe.id===t.id?{...fe,options:O}:fe);i(ne),e===q.value&&r(null)},children:"\xD7"})]},q.value)),(0,A.jsxs)("div",{className:"nb-status-new-row",children:[(0,A.jsx)("input",{className:"nb-status-new-input",placeholder:u("status_new_placeholder"),value:m,onChange:q=>c(q.target.value),onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),ye()),q.key==="Escape"&&a(),q.stopPropagation()}}),(0,A.jsx)("button",{className:"nb-status-new-btn",onClick:()=>{ye()},disabled:!m.trim(),children:"+"})]})]}),activeDocument.body):null,Oe=h&&b?(0,co.createPortal)((0,A.jsxs)("div",{ref:_,className:"nb-status-color-picker",style:{position:"fixed",top:b.top,left:b.left,zIndex:1e4},children:[(0,A.jsx)("div",{className:"nb-status-color-grid",children:V.map(q=>(0,A.jsx)("button",{className:"nb-status-color-dot",style:{background:q},title:q,onClick:W=>{W.stopPropagation(),re(h,q)}},q))}),(0,A.jsx)("div",{className:"nb-status-color-custom",children:(0,A.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,A.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Xt(le,h),onChange:q=>{re(h,q.target.value)}})]})})]}),activeDocument.body):null;return(0,A.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,A.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e?(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(le,e),color:Tr(Xt(le,e))},children:e}):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),Ce,Oe]})}function ES({value:e,col:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let{updateSchema:i,schema:l}=rc(),s=(0,he.useRef)(null),d=(0,he.useRef)(null),p=(0,he.useRef)(null),[g,m]=(0,he.useState)(null),[c,h]=(0,he.useState)(""),[v,b]=(0,he.useState)(null),[f,_]=(0,he.useState)(null),[w,S]=(0,he.useState)({}),D=(0,he.useRef)({}),T=t.options??[],V=T.map(O=>w[O.value]?{...O,color:w[O.value]}:O),j=176,le=["#9E9E9E","#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#FFEB3B","#FF9800","#FF5722","#795548"],re=(O,ne)=>{S(fe=>({...fe,[O]:ne})),D.current[O]=ne},_e=(0,he.useCallback)(()=>{let O=D.current;if(Object.keys(O).length===0)return;let ne=T.map(Ne=>O[Ne.value]?{...Ne,color:O[Ne.value]}:Ne),fe=l.map(Ne=>Ne.id===t.id?{...Ne,options:ne}:Ne);D.current={},S({}),i(fe)},[T,l,t.id,i]);(0,he.useEffect)(()=>{if(!n)return;let O=ne=>{let fe=s.current?.contains(ne.target),Ne=d.current?.contains(ne.target),Be=p.current?.contains(ne.target);!fe&&!Ne&&!Be&&(_e(),a())};return activeDocument.addEventListener("mousedown",O),()=>activeDocument.removeEventListener("mousedown",O)},[n,a,_e]),(0,he.useEffect)(()=>{if(!n){b(null);return}if(h(""),S({}),D.current={},s.current){let O=s.current.getBoundingClientRect();m({top:O.bottom,left:O.left,width:O.width})}},[n]),(0,he.useEffect)(()=>{if(!v)return;let O=ne=>{p.current?.contains(ne.target)||b(null)};return activeDocument.addEventListener("mousedown",O),()=>activeDocument.removeEventListener("mousedown",O)},[v]);let ye=O=>{let ne=e.includes(O)?e.filter(fe=>fe!==O):[...e,O];r(ne)},Ce=async O=>{let ne=O.trim();if(!ne||V.some($e=>$e.value===ne))return;let fe=Pr[V.length%Pr.length],Ne=[...V,{value:ne,color:fe}],Be=l.map($e=>$e.id===t.id?{...$e,options:Ne}:$e);await i(Be),r([...e,ne]),h("")},Oe=async(O,ne)=>{ne.stopPropagation();let fe=V.filter(Be=>Be.value!==O),Ne=l.map(Be=>Be.id===t.id?{...Be,options:fe}:Be);await i(Ne),e.includes(O)&&r(e.filter(Be=>Be!==O))},q=n&&g?(0,co.createPortal)((0,A.jsxs)("div",{ref:d,className:"nb-select-dropdown",style:{position:"fixed",top:g.top,left:g.left,minWidth:g.width,zIndex:9999},children:[(0,A.jsx)("input",{className:"nb-select-new-input",type:"text",placeholder:u("select_create_placeholder"),value:c,autoFocus:!0,onChange:O=>h(O.target.value),onKeyDown:O=>{O.key==="Enter"&&(O.preventDefault(),Ce(c))}}),V.map(O=>(0,A.jsxs)("div",{className:`nb-select-option-row ${e.includes(O.value)?"nb-select-option-row--active":""}`,children:[(0,A.jsxs)("button",{className:`nb-select-option ${e.includes(O.value)?"nb-select-option--active":""}`,onClick:()=>ye(O.value),children:[(0,A.jsx)("span",{className:`nb-checkbox-indicator ${e.includes(O.value)?"nb-checkbox-indicator--checked":""}`}),(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(V,O.value),color:Tr(Xt(V,O.value))},children:O.value})]}),(0,A.jsx)("button",{className:`nb-status-color-swatch ${v===O.value?"nb-status-color-swatch--active":""}`,title:u("tooltip_change_color"),style:{background:Xt(V,O.value),color:Tr(Xt(V,O.value))},onClick:ne=>{ne.stopPropagation();let fe=ne.currentTarget.getBoundingClientRect();_({top:fe.bottom+4,left:Math.min(fe.right-j,window.innerWidth-j-8)}),b(Ne=>Ne===O.value?null:O.value)}}),(0,A.jsx)("button",{className:"nb-select-option-delete",onClick:ne=>{Oe(O.value,ne)},title:u("select_clear"),children:"\xD7"})]},O.value))]}),activeDocument.body):null,W=v&&f?(0,co.createPortal)((0,A.jsxs)("div",{ref:p,className:"nb-status-color-picker",style:{position:"fixed",top:f.top,left:f.left,zIndex:1e4},children:[(0,A.jsx)("div",{className:"nb-status-color-grid",children:le.map(O=>(0,A.jsx)("button",{className:"nb-status-color-dot",style:{background:O},title:O,onClick:ne=>{ne.stopPropagation(),re(v,O)}},O))}),(0,A.jsx)("div",{className:"nb-status-color-custom",children:(0,A.jsxs)("label",{className:"nb-status-color-custom-label",children:[u("color_custom"),(0,A.jsx)("input",{type:"color",className:"nb-status-color-input",defaultValue:Xt(V,v),onChange:O=>{re(v,O.target.value)}})]})})]}),activeDocument.body):null;return(0,A.jsxs)("div",{className:"nb-cell-select-wrapper",ref:s,children:[(0,A.jsx)("div",{className:"nb-cell-clickable nb-cell-multiselect",onClick:o,children:e.length>0?e.map(O=>(0,A.jsx)("span",{className:"nb-select-badge",style:{background:Xt(V,O),color:Tr(Xt(V,O))},children:O},O)):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),q,W]})}function DS({defaultValue:e,onChange:t,onEscape:n}){let[o,r]=(0,he.useState)(e),a=l=>{let s=l.replace(/\D/g,"").slice(0,4);return s.length<=2?s:`${s.slice(0,2)}:${s.slice(2)}`},i=l=>{let s=l.match(/^(\d{1,2}):(\d{2})$/);if(!s)return;let d=Math.min(23,parseInt(s[1])),p=Math.min(59,parseInt(s[2])),g=`${String(d).padStart(2,"0")}:${String(p).padStart(2,"0")}`;r(g),t(g)};return(0,A.jsx)("input",{type:"text",inputMode:"numeric",className:"nb-cell-input nb-cell-input--time",value:o,placeholder:"HH:mm",onChange:l=>{let s=a(l.target.value);r(s),/^\d{2}:\d{2}$/.test(s)&&i(s)},onBlur:()=>i(o),onKeyDown:l=>{l.key==="Enter"&&i(o),l.key==="Escape"&&n()}})}function FS({value:e,format:t,isEditing:n,onStartEdit:o,onSave:r,onClose:a}){let i=(0,he.useRef)(null),l=e?e.includes("T"):!1,s=e?e.split("T")[0]:null,d=e&&l?e.split("T")[1]:null,[p,g]=(0,he.useState)(l);(0,he.useEffect)(()=>{n&&g(l)},[n]),(0,he.useEffect)(()=>{if(!n)return;let b=f=>{i.current&&!i.current.contains(f.target)&&a()};return activeDocument.addEventListener("mousedown",b),()=>activeDocument.removeEventListener("mousedown",b)},[n,a]);let m=e&&s?$m(e,t):null;if(!n)return(0,A.jsx)("div",{className:"nb-cell-clickable nb-cell-date",onClick:o,children:m??(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})});let c=b=>{if(!b){r(null);return}r(p&&d?`${b}T${d}`:p?`${b}T00:00`:b)},h=b=>{let f=s??new Date().toISOString().slice(0,10);r(b?`${f}T${b}`:f)},v=()=>{let b=!p;g(b),!b&&s?r(s):b&&s&&r(`${s}T${d??"00:00"}`)};return(0,A.jsxs)("div",{ref:i,className:"nb-cell-date-editor",children:[(0,A.jsx)("input",{type:"date",className:"nb-cell-input nb-cell-input--date",defaultValue:s??"",onChange:b=>c(b.target.value),onKeyDown:b=>{b.key==="Escape"&&a()}}),p&&(0,A.jsx)(DS,{defaultValue:d??"00:00",onChange:h,onEscape:a}),(0,A.jsx)("button",{className:`nb-cell-time-toggle${p?" nb-cell-time-toggle--active":""}`,onClick:b=>{b.stopPropagation(),v()},title:p?u("calendar_remove_time"):u("calendar_add_time"),children:"\u{1F550}"})]})}function MS({value:e,onCommit:t}){return(0,A.jsx)("div",{className:"nb-cell-checkbox-wrapper",children:(0,A.jsx)("input",{type:"checkbox",className:"nb-cell-checkbox",checked:e,onChange:n=>t(n.target.checked)})})}function TS({value:e,col:t}){let n=e==null?"\u2014":mt(e);return(0,A.jsx)("div",{className:"nb-cell-formula",title:u("formula_panel_title")+": "+(t.formula??""),children:n})}function PS({value:e,col:t}){let n=e==null?"\u2014":mt(e);return(0,A.jsx)("div",{className:"nb-cell-formula nb-cell-lookup",title:u("lookup_panel_title")+" de "+(t.refDatabasePath??""),children:n})}function LS({value:e,col:t}){let n=e==null?"\u2014":mt(e);return(0,A.jsx)("div",{className:"nb-cell-formula nb-cell-rollup",title:u("rollup_panel_title")+": "+(t.rollupFunction??""),children:n})}function AS({value:e,options:t,isEditing:n,onStartEdit:o,onCommit:r}){let a=(0,he.useRef)(null),i=(0,he.useRef)(null),[l,s]=(0,he.useState)(""),d=(0,he.useRef)(null),[p,g]=(0,he.useState)(null),[m,c]=(0,he.useState)(e);(0,he.useEffect)(()=>{c(e)},[e]),(0,he.useEffect)(()=>{if(!n)return;let f=_=>{let w=a.current?.contains(_.target),S=i.current?.contains(_.target);!w&&!S&&r(m)};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[n,r,m]),(0,he.useEffect)(()=>{if(n){if(s(""),c(e),a.current){let f=a.current.getBoundingClientRect();g({top:f.bottom,left:f.left,width:f.width})}window.setTimeout(()=>d.current?.focus(),0)}},[n]);let h=f=>{c(_=>_.includes(f)?_.filter(w=>w!==f):[..._,f])},v=t.filter(f=>f.toLowerCase().includes(l.toLowerCase())),b=n&&p?(0,co.createPortal)((0,A.jsxs)("div",{ref:i,className:"nb-select-dropdown nb-relation-dropdown",style:{position:"fixed",top:p.top,left:p.left,minWidth:p.width,zIndex:9999},children:[(0,A.jsx)("input",{ref:d,className:"nb-relation-search",placeholder:u("relation_search_placeholder"),value:l,onChange:f=>s(f.target.value),onKeyDown:f=>{f.key==="Escape"&&r(m)}}),m.length>0&&(0,A.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:()=>c([]),children:u("relation_clear")}),v.map(f=>(0,A.jsxs)("button",{className:`nb-select-option ${m.includes(f)?"nb-select-option--active":""}`,onClick:()=>h(f),children:[m.includes(f)&&(0,A.jsx)("span",{className:"nb-relation-check",children:"\u2713"}),(0,A.jsx)("span",{className:"nb-relation-badge",children:f})]},f)),v.length===0&&(0,A.jsx)("div",{className:"nb-relation-empty",children:u("relation_no_results")})]}),activeDocument.body):null;return(0,A.jsxs)("div",{className:"nb-cell-select-wrapper",ref:a,children:[(0,A.jsx)("div",{className:"nb-cell-clickable",onClick:o,children:e.length>0?(0,A.jsx)("span",{className:"nb-relation-badges",children:e.map(f=>(0,A.jsx)("span",{className:"nb-relation-badge",children:f},f))}):(0,A.jsx)("span",{className:"nb-cell-empty",children:"\u2014"})}),b]})}var gb=new Set(["png","jpg","jpeg","gif","svg","webp","bmp"]);function IS({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=$t(),[l,s]=(0,he.useState)([]),[d,p]=(0,he.useState)(null),g=(0,he.useRef)(null),m=(0,he.useRef)(null);(0,he.useEffect)(()=>{if(!n)return;let b=e.imageSourceFolder,f=i.vault.getFiles(),_=b?f.filter(w=>gb.has(w.extension.toLowerCase())&&(w.path.startsWith(b+"/")||w.parent?.path===b)):f.filter(w=>gb.has(w.extension.toLowerCase()));if(s(_.sort((w,S)=>w.name.localeCompare(S.name))),g.current){let w=g.current.getBoundingClientRect(),S=w.left,D=w.bottom+4;S+280>window.innerWidth&&(S=window.innerWidth-288),p({x:S,y:D})}},[n,e.imageSourceFolder]),(0,he.useEffect)(()=>{if(!n)return;let b=f=>{m.current?.contains(f.target)||g.current?.contains(f.target)||a()};return activeDocument.addEventListener("mousedown",b),()=>activeDocument.removeEventListener("mousedown",b)},[n,a]);let c=t?i.vault.getFileByPath(t):null,h=c?i.vault.getResourcePath(c):null;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{ref:g,className:"nb-cell-image",onClick:o,children:h?(0,A.jsxs)("div",{className:"nb-image-cell-content",children:[(0,A.jsx)("img",{src:h,alt:"",className:"nb-image-cell-thumb"}),(0,A.jsx)("a",{className:"nb-image-cell-link",onClick:b=>{b.stopPropagation(),c&&i.workspace.getLeaf(!0).openFile(c)},title:t??"",children:c?.name??t??""})]}):(0,A.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("image_select_placeholder")})}),n&&d&&(0,co.createPortal)((0,A.jsxs)("div",{ref:m,className:"nb-image-picker",style:{position:"fixed",top:d.y,left:d.x},children:[(0,A.jsxs)("div",{className:"nb-image-picker-header",children:[(0,A.jsx)("span",{children:u("image_picker_title")}),t&&(0,A.jsx)("button",{className:"nb-image-picker-clear",onClick:b=>{b.stopPropagation(),r(null)},children:u("image_picker_clear")})]}),l.length===0?(0,A.jsx)("div",{className:"nb-image-picker-empty",children:e.imageSourceFolder?`${u("image_picker_empty_folder")} "${e.imageSourceFolder}"`:u("image_picker_empty_vault")}):(0,A.jsx)("div",{className:"nb-image-picker-grid",children:l.map(b=>{let f=i.vault.getResourcePath(b);return(0,A.jsxs)("div",{className:`nb-image-picker-item${t===b.path?" nb-image-picker-item--selected":""}`,onClick:_=>{_.stopPropagation(),r(b.path)},title:b.path,children:[(0,A.jsx)("img",{src:f,alt:b.name,className:"nb-image-picker-thumb"}),(0,A.jsx)("span",{className:"nb-image-picker-name",children:b.name})]},b.path)})})]}),activeDocument.body)]})}var _b=new Set(["mp3","wav","ogg","flac","m4a","aac","webm"]);function OS({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=$t(),[l,s]=(0,he.useState)([]),[d,p]=(0,he.useState)(null),g=(0,he.useRef)(null),m=(0,he.useRef)(null);(0,he.useEffect)(()=>{if(!n)return;let v=e.audioSourceFolder,b=i.vault.getFiles(),f=v?b.filter(_=>_b.has(_.extension.toLowerCase())&&(_.path.startsWith(v+"/")||_.parent?.path===v)):b.filter(_=>_b.has(_.extension.toLowerCase()));if(s(f.sort((_,w)=>_.name.localeCompare(w.name))),g.current){let _=g.current.getBoundingClientRect();p({top:_.bottom,left:_.left,width:_.width})}},[n,e.audioSourceFolder]),(0,he.useEffect)(()=>{if(!n)return;let v=b=>{m.current?.contains(b.target)||g.current?.contains(b.target)||a()};return activeDocument.addEventListener("mousedown",v),()=>activeDocument.removeEventListener("mousedown",v)},[n,a]);let c=t?i.vault.getFileByPath(t):null,h=c?i.vault.getResourcePath(c):null;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{ref:g,className:"nb-cell-audio",onClick:o,children:h?(0,A.jsx)("audio",{controls:!0,preload:"metadata",src:h,className:"nb-audio-player",onClick:v=>v.stopPropagation()}):(0,A.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("audio_select_placeholder")})}),n&&d&&(0,co.createPortal)((0,A.jsxs)("div",{ref:m,className:"nb-select-dropdown",style:{position:"fixed",top:d.top,left:d.left,minWidth:d.width,zIndex:9999},children:[(0,A.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:v=>{v.stopPropagation(),r(null)},children:u("audio_picker_clear")}),(0,A.jsx)("div",{className:"nb-menu-separator"}),l.length===0?(0,A.jsx)("div",{className:"nb-select-option",style:{color:"var(--text-muted)",cursor:"default"},children:e.audioSourceFolder?`${u("audio_picker_empty_folder")} "${e.audioSourceFolder}"`:u("audio_picker_empty_vault")}):l.map(v=>(0,A.jsxs)("button",{className:`nb-select-option${t===v.path?" nb-select-option--active":""}`,onClick:b=>{b.stopPropagation(),r(v.path)},children:[(0,A.jsx)("span",{children:"\u{1F3B5}"}),(0,A.jsx)("span",{children:v.name})]},v.path))]}),activeDocument.body)]})}var hb=new Set(["mp4","webm","ogv","mov","mkv"]);function $S({col:e,value:t,isEditing:n,onStartEdit:o,onCommit:r,onCancel:a}){let i=$t(),[l,s]=(0,he.useState)([]),[d,p]=(0,he.useState)(null),g=(0,he.useRef)(null),m=(0,he.useRef)(null);(0,he.useEffect)(()=>{if(!n)return;let f=e.videoSourceFolder,_=i.vault.getFiles(),w=f?_.filter(S=>hb.has(S.extension.toLowerCase())&&(S.path.startsWith(f+"/")||S.parent?.path===f)):_.filter(S=>hb.has(S.extension.toLowerCase()));if(s(w.sort((S,D)=>S.name.localeCompare(D.name))),g.current){let S=g.current.getBoundingClientRect();p({top:S.bottom,left:S.left,width:S.width})}},[n,e.videoSourceFolder]),(0,he.useEffect)(()=>{if(!n)return;let f=_=>{m.current?.contains(_.target)||g.current?.contains(_.target)||a()};return activeDocument.addEventListener("mousedown",f),()=>activeDocument.removeEventListener("mousedown",f)},[n,a]);let[c,h]=(0,he.useState)(!1),v=t?i.vault.getFileByPath(t):null,b=v?i.vault.getResourcePath(v):null;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{ref:g,className:"nb-cell-video",onClick:o,children:v?(0,A.jsxs)("div",{className:"nb-video-cell-content",children:[(0,A.jsx)("span",{className:"nb-video-cell-icon",onClick:f=>{f.stopPropagation(),h(!0)},children:"\u25B6"}),(0,A.jsx)("a",{className:"nb-video-cell-link",onClick:f=>{f.stopPropagation(),h(!0)},title:t??"",children:v.name})]}):(0,A.jsx)("span",{className:"nb-cell-text nb-cell-placeholder",children:u("video_select_placeholder")})}),c&&b&&(0,co.createPortal)((0,A.jsx)("div",{className:"nb-video-modal-backdrop",onClick:()=>h(!1),children:(0,A.jsxs)("div",{className:"nb-video-modal",onClick:f=>f.stopPropagation(),children:[(0,A.jsx)("video",{controls:!0,autoPlay:!0,src:b,className:"nb-video-modal-player"}),(0,A.jsx)("button",{className:"nb-video-modal-close",onClick:()=>h(!1),children:"\xD7"})]})}),activeDocument.body),n&&d&&(0,co.createPortal)((0,A.jsxs)("div",{ref:m,className:"nb-select-dropdown",style:{position:"fixed",top:d.top,left:d.left,minWidth:d.width,zIndex:9999},children:[(0,A.jsx)("button",{className:"nb-select-option nb-select-clear",onClick:f=>{f.stopPropagation(),r(null)},children:u("video_picker_clear")}),(0,A.jsx)("div",{className:"nb-menu-separator"}),l.length===0?(0,A.jsx)("div",{className:"nb-select-option",style:{color:"var(--text-muted)",cursor:"default"},children:e.videoSourceFolder?`${u("video_picker_empty_folder")} "${e.videoSourceFolder}"`:u("video_picker_empty_vault")}):l.map(f=>(0,A.jsxs)("button",{className:`nb-select-option${t===f.path?" nb-select-option--active":""}`,onClick:_=>{_.stopPropagation(),r(f.path)},children:[(0,A.jsx)("span",{children:"\u{1F3AC}"}),(0,A.jsx)("span",{children:f.name})]},f.path))]}),activeDocument.body)]})}var vb=require("obsidian");function wn(){return vb.Platform.isMobile}var Lr=De(wt(),1),Hm=De(lo(),1);var Ye=De(vt(),1),Bn=()=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Ye.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),po=()=>(0,Ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ye.jsx)("line",{x1:"4",y1:"6",x2:"16",y2:"6"}),(0,Ye.jsx)("line",{x1:"4",y1:"12",x2:"12",y2:"12"}),(0,Ye.jsx)("line",{x1:"4",y1:"18",x2:"8",y2:"18"})]}),Cn=()=>(0,Ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ye.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,Ye.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}),bb=()=>(0,Ye.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Ye.jsx)("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),Hn=()=>(0,Ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Ye.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,Ye.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,Ye.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]});function jn({search:e,actions:t,rowCount:n,rowCountLabel:o,filters:r,onFilterUpdate:a,onFilterRemove:i,onConjunctionToggle:l,actionBarRef:s,children:d}){let p=(0,Lr.useRef)(null),g=s??p,[m,c]=(0,Lr.useState)(!1),h=(0,Lr.useRef)(null);return(0,Ye.jsxs)("div",{className:"nb-mobile-toolbar",children:[e&&(0,Ye.jsx)("div",{className:"nb-mobile-search-strip",children:(0,Ye.jsxs)("div",{className:"nb-mobile-search-wrapper",onClick:()=>c(!0),children:[(0,Ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-mobile-search-icon",children:[(0,Ye.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Ye.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Ye.jsx)("div",{className:`nb-mobile-search-input nb-mobile-search-fake${e.value?" nb-mobile-search-fake--has-value":""}`,role:"button",tabIndex:-1,children:e.value||u("filter_value_placeholder").replace("...","")+"..."})]})}),e&&m&&(0,Hm.createPortal)((0,Ye.jsx)("div",{className:"nb-mobile-search-overlay",onMouseDown:()=>c(!1),children:(0,Ye.jsxs)("div",{className:"nb-mobile-search-overlay-bar",onMouseDown:v=>v.stopPropagation(),children:[(0,Ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-mobile-search-overlay-icon",children:[(0,Ye.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,Ye.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,Ye.jsx)("input",{ref:h,className:"nb-mobile-search-overlay-input",type:"text",placeholder:u("filter_value_placeholder").replace("...","")+"...",value:e.value,onChange:v=>e.onChange(v.target.value),onKeyDown:v=>{v.key==="Enter"&&(v.currentTarget.blur(),c(!1))},autoFocus:!0}),(0,Ye.jsx)("button",{className:"nb-mobile-search-overlay-close",onClick:()=>c(!1),children:"\xD7"})]})}),activeDocument.body),(0,Ye.jsx)("div",{className:"nb-mobile-action-bar",ref:g,children:t.map(v=>(0,Ye.jsxs)("button",{className:`nb-mobile-action-btn${v.active?" nb-mobile-action-btn--active":""}`,onMouseDown:b=>{b.stopPropagation(),b.nativeEvent.stopImmediatePropagation()},onClick:v.onClick,children:[v.icon,(0,Ye.jsx)("span",{className:"nb-mobile-action-label",children:v.label}),v.badge!=null&&v.badge>0&&(0,Ye.jsx)("span",{className:"nb-mobile-action-badge",children:v.badge})]},v.id))}),d,(0,Ye.jsx)(zS,{filters:r,rowCount:n,rowCountLabel:o,onFilterUpdate:a,onFilterRemove:i,onConjunctionToggle:l})]})}function zS({filters:e,rowCount:t,rowCountLabel:n,onFilterUpdate:o,onFilterRemove:r,onConjunctionToggle:a}){let[i,l]=(0,Lr.useState)(null);return e.length===0&&t<0?null:(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsxs)("div",{className:"nb-mobile-pills-strip",children:[e.map((s,d)=>(0,Ye.jsxs)(Lr.Fragment,{children:[d>0&&(0,Ye.jsx)("button",{className:`nb-pill-conjunction${s.conjunction==="or"?" nb-pill-conjunction--or":""}`,onClick:()=>a(s.id),children:s.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,Ye.jsxs)("button",{className:`nb-filter-pill${i===s.id?" nb-filter-pill--expanded":""}`,onClick:()=>l(p=>p===s.id?null:s.id),children:[(0,Ye.jsx)("span",{className:"nb-pill-name",children:s.columnName}),(0,Ye.jsx)("span",{className:"nb-pill-remove",onClick:p=>{p.stopPropagation(),r(s.id)},children:"\xD7"})]})]},s.id)),(0,Ye.jsxs)("span",{className:"nb-mobile-row-count",children:[t," ",n]})]}),(()=>{let s=i?e.find(d=>d.id===i):null;return s?(0,Hm.createPortal)((0,Ye.jsx)("div",{className:"nb-mobile-search-overlay",onMouseDown:()=>l(null),children:(0,Ye.jsxs)("div",{className:"nb-mobile-search-overlay-bar nb-mobile-filter-overlay-bar",onMouseDown:d=>d.stopPropagation(),children:[(0,Ye.jsx)("span",{className:"nb-mobile-filter-overlay-title",children:s.columnName}),(0,Ye.jsx)("select",{className:"nb-mobile-filter-overlay-select",value:s.operator,onChange:d=>o(s.id,d.target.value,s.value),children:pi(s.columnType).map(d=>(0,Ye.jsx)("option",{value:d,children:Rr[d]},d))}),!Er.has(s.operator)&&(0,Ye.jsx)("input",{className:"nb-mobile-search-overlay-input",type:"text",value:s.value,placeholder:u("filter_value_placeholder"),onChange:d=>o(s.id,s.operator,d.target.value),autoFocus:!0}),(0,Ye.jsx)("button",{className:"nb-mobile-search-overlay-close",onClick:()=>l(null),children:"\xD7"})]})}),activeDocument.body):null})()]})}var Lo=De(wt(),1),yb=De(lo(),1),Ca=De(vt(),1);function st({open:e,onClose:t,title:n,children:o}){let[r,a]=(0,Lo.useState)(!1),[i,l]=(0,Lo.useState)(!1),s=(0,Lo.useRef)(null),[d,p]=(0,Lo.useState)("70vh");return(0,Lo.useEffect)(()=>{if(e){a(!0),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l(!0))});return}l(!1);let g=window.setTimeout(()=>a(!1),250);return()=>window.clearTimeout(g)},[e]),(0,Lo.useEffect)(()=>{if(!e)return;let g=m=>{m.key==="Escape"&&t()};return activeDocument.addEventListener("keydown",g),()=>activeDocument.removeEventListener("keydown",g)},[e,t]),(0,Lo.useEffect)(()=>{if(!e||!window.visualViewport)return;let g=()=>{let m=window.visualViewport.height;p(`${m*.7}px`)};return g(),window.visualViewport.addEventListener("resize",g),()=>window.visualViewport.removeEventListener("resize",g)},[e]),r?(0,yb.createPortal)((0,Ca.jsx)("div",{className:`nb-bottomsheet-backdrop${i?" nb-bottomsheet-backdrop--open":""}`,onMouseDown:t,children:(0,Ca.jsxs)("div",{ref:s,className:`nb-bottomsheet${i?" nb-bottomsheet--open":""}`,style:{maxHeight:d},onMouseDown:g=>g.stopPropagation(),children:[(0,Ca.jsx)("div",{className:"nb-bottomsheet-handle"}),n&&(0,Ca.jsx)("div",{className:"nb-bottomsheet-title",children:n}),(0,Ca.jsx)("div",{className:"nb-bottomsheet-content",children:o})]})}),activeDocument.body):null}var wb=De(wt(),1);var Qt=De(vt(),1),Ar=wb.default.memo(function({status:t}){return t==="idle"?null:(0,Qt.jsxs)("span",{className:`nb-save-indicator nb-save-indicator--${t}`,"aria-live":"polite",children:[t==="saving"&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)("span",{className:"nb-save-spinner"}),(0,Qt.jsx)("span",{className:"nb-save-label",children:u("saving")})]}),t==="saved"&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)("svg",{className:"nb-save-check",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,Qt.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,Qt.jsx)("span",{className:"nb-save-label",children:u("saved")})]}),t==="error"&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsxs)("svg",{className:"nb-save-error-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Qt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,Qt.jsx)("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),(0,Qt.jsx)("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),(0,Qt.jsx)("span",{className:"nb-save-label",children:u("save_error")})]})]})});var jm=De(wt(),1);var ut=De(vt(),1),VS=[{bg:"#dcfce7",text:""},{bg:"#fef9c3",text:""},{bg:"#fee2e2",text:""},{bg:"#dbeafe",text:""},{bg:"#f3e8ff",text:""},{bg:"#ffedd5",text:""},{bg:"",text:"#16a34a"},{bg:"",text:"#dc2626"},{bg:"",text:"#2563eb"},{bg:"#dc2626",text:"#ffffff"},{bg:"#16a34a",text:"#ffffff"},{bg:"#2563eb",text:"#ffffff"}];function Ir({rules:e,schema:t,onChange:n,onClose:o}){let[r,a]=(0,jm.useState)(null),i=t.filter(m=>m.visible&&m.type!=="formula"&&m.type!=="lookup"&&m.type!=="rollup"),l=()=>{let m=i[0];if(!m)return;let c={id:crypto.randomUUID(),columnId:m.id,operator:Fn(m.type),value:"",bgColor:"#dcfce7",textColor:""};a(c)},s=m=>{let h=e.find(v=>v.id===m.id)?e.map(v=>v.id===m.id?m:v):[...e,m];n(h),a(null)},d=m=>{n(e.filter(c=>c.id!==m)),r?.id===m&&a(null)},p=m=>t.find(c=>c.id===m)?.type??"text",g=m=>t.find(c=>c.id===m)?.name??m;return(0,ut.jsxs)("div",{className:"nb-cf-panel nb-fields-dropdown",children:[(0,ut.jsxs)("div",{className:"nb-cf-panel-header",children:[(0,ut.jsx)("span",{className:"nb-cf-panel-title",children:u("conditional_formatting")}),(0,ut.jsx)("button",{className:"nb-cf-panel-close",onClick:o,children:"\xD7"})]}),e.length===0&&!r&&(0,ut.jsx)("div",{className:"nb-cf-panel-empty",children:u("no_conditional_formats")}),e.map(m=>(0,ut.jsxs)("div",{className:"nb-cf-rule",onClick:()=>a({...m}),children:[(0,ut.jsx)("span",{className:"nb-cf-rule-preview",style:{backgroundColor:m.bgColor||void 0,color:m.textColor||void 0},children:"Aa"}),(0,ut.jsxs)("span",{className:"nb-cf-rule-desc",children:[g(m.columnId)," ",Rr[m.operator]," ",Er.has(m.operator)?"":m.value]}),(0,ut.jsx)("button",{className:"nb-cf-rule-remove",onClick:c=>{c.stopPropagation(),d(m.id)},children:"\xD7"})]},m.id)),r&&(0,ut.jsx)(BS,{rule:r,schema:t,availableCols:i,getColType:p,onSave:s,onCancel:()=>a(null)}),!r&&(0,ut.jsx)("button",{className:"nb-cf-add-btn",onClick:l,children:"+ "+u("add_rule")})]})}function BS({rule:e,schema:t,availableCols:n,getColType:o,onSave:r,onCancel:a}){let[i,l]=(0,jm.useState)(e),s=o(i.columnId),d=pi(s),p=!Er.has(i.operator),m=t.find(h=>h.id===i.columnId)?.options?.map(h=>h.value||h.label||"").filter(Boolean)??[],c=s==="select"||s==="multiselect"||s==="status";return(0,ut.jsxs)("div",{className:"nb-cf-editor",children:[(0,ut.jsxs)("div",{className:"nb-cf-editor-row",children:[(0,ut.jsx)("select",{className:"nb-cf-select",value:i.columnId,onChange:h=>{let v=o(h.target.value);l({...i,columnId:h.target.value,operator:Fn(v),value:""})},children:n.map(h=>(0,ut.jsx)("option",{value:h.id,children:h.name},h.id))}),(0,ut.jsx)("select",{className:"nb-cf-select",value:i.operator,onChange:h=>l({...i,operator:h.target.value}),children:d.map(h=>(0,ut.jsx)("option",{value:h,children:Rr[h]},h))})]}),p&&(0,ut.jsx)("div",{className:"nb-cf-editor-row",children:c&&m.length>0?(0,ut.jsxs)("select",{className:"nb-cf-select nb-cf-value",value:i.value,onChange:h=>l({...i,value:h.target.value}),children:[(0,ut.jsx)("option",{value:"",children:u("select_value")}),m.map(h=>(0,ut.jsx)("option",{value:h,children:h},h))]}):(0,ut.jsx)("input",{className:"nb-cf-input",type:s==="number"?"number":s==="date"?"date":"text",value:i.value,onChange:h=>l({...i,value:h.target.value}),placeholder:u("value"),autoFocus:!0})}),(0,ut.jsx)("div",{className:"nb-cf-editor-row",children:(0,ut.jsx)("span",{className:"nb-cf-color-label",children:u("style")})}),(0,ut.jsx)("div",{className:"nb-cf-presets",children:VS.map((h,v)=>(0,ut.jsx)("button",{className:`nb-cf-preset${i.bgColor===h.bg&&i.textColor===h.text?" nb-cf-preset--active":""}`,style:{backgroundColor:h.bg||"transparent",color:h.text||"var(--text-normal)",borderColor:h.bg||h.text||"var(--background-modifier-border)"},onClick:()=>l({...i,bgColor:h.bg,textColor:h.text}),children:"Aa"},v))}),(0,ut.jsxs)("div",{className:"nb-cf-editor-row nb-cf-custom-colors",children:[(0,ut.jsxs)("label",{className:"nb-cf-color-field",children:[(0,ut.jsx)("span",{children:u("background")}),(0,ut.jsx)("input",{type:"color",value:i.bgColor||"#ffffff",onChange:h=>l({...i,bgColor:h.target.value==="#ffffff"?"":h.target.value})})]}),(0,ut.jsxs)("label",{className:"nb-cf-color-field",children:[(0,ut.jsx)("span",{children:u("text_color")}),(0,ut.jsx)("input",{type:"color",value:i.textColor||"#000000",onChange:h=>l({...i,textColor:h.target.value==="#000000"?"":h.target.value})})]})]}),(0,ut.jsxs)("div",{className:"nb-cf-editor-actions",children:[(0,ut.jsx)("button",{className:"nb-cf-btn nb-cf-btn--save",onClick:()=>r(i),children:u("save")}),(0,ut.jsx)("button",{className:"nb-cf-btn nb-cf-btn--cancel",onClick:a,children:u("cancel")})]})]})}var Cb=De(wt(),1);var Or=De(vt(),1),Ni=Cb.default.memo(function({currentPage:t,totalPages:n,onPageChange:o}){return n<=1?null:(0,Or.jsxs)("div",{className:"nb-pagination",children:[(0,Or.jsx)("button",{className:"nb-pagination-btn",disabled:t===1,onClick:()=>o(1),title:u("first_page"),children:"\xAB"}),(0,Or.jsx)("button",{className:"nb-pagination-btn",disabled:t===1,onClick:()=>o(t-1),title:u("prev_page"),children:"\u2039"}),(0,Or.jsx)("span",{className:"nb-pagination-info",children:u("page_of").replace("{current}",String(t)).replace("{total}",String(n))}),(0,Or.jsx)("button",{className:"nb-pagination-btn",disabled:t===n,onClick:()=>o(t+1),title:u("next_page"),children:"\u203A"}),(0,Or.jsx)("button",{className:"nb-pagination-btn",disabled:t===n,onClick:()=>o(n),title:u("last_page"),children:"\xBB"})]})});var ka=De(wt(),1);function $r(e=2e3){let[t,n]=(0,ka.useState)("idle"),o=(0,ka.useRef)(0),r=(0,ka.useRef)(),a=(0,ka.useCallback)(i=>(o.current++,r.current&&window.clearTimeout(r.current),n("saving"),i.then(l=>(o.current--,o.current===0&&(n("saved"),r.current=window.setTimeout(()=>n("idle"),e)),l),l=>{throw o.current--,o.current===0&&(n("error"),r.current=window.setTimeout(()=>n("idle"),e)),l})),[e]);return{status:t,trackSave:a}}var Sa=De(wt(),1);function xi(e,t){let[n,o]=(0,Sa.useState)(1),r=t>0?Math.max(1,Math.ceil(e.length/t)):1;return(0,Sa.useEffect)(()=>{o(1)},[e.length,t]),(0,Sa.useEffect)(()=>{n>r&&o(r)},[n,r]),{pageItems:(0,Sa.useMemo)(()=>{if(t<=0)return e;let i=(n-1)*t;return e.slice(i,i+t)},[e,n,t]),currentPage:n,totalPages:r,setPage:o}}var HS=3;function ac(e,t){return e.find(n=>n.type==="relation"&&n.isHierarchical&&n.refDatabasePath===t)??null}function Um(e,t){let n=e[t];return n?Array.isArray(n)?n:[mt(n)]:[]}function ic(e,t,n,o,r){let a=new Map,i=new Map,l=new Set;for(let c of e)a.set(c._title,c);for(let c of e){let h=Um(c,t);for(let v of h)if(a.has(v)&&v!==c._title){let b=i.get(v)??[];b.push(c),i.set(v,b),l.add(c._file.path);break}}for(let c of e){if(!l.has(c._file.path))continue;let h=new Set,v=c._title;for(;v;){if(h.has(v)){l.delete(c._file.path);let _=Um(c,t)[0];if(_){let w=i.get(_);if(w){let S=w.indexOf(c);S>=0&&w.splice(S,1),w.length===0&&i.delete(_)}}break}h.add(v);let b=a.get(v);if(!b||!l.has(b._file.path))break;v=Um(b,t).find(_=>a.has(_)&&_!==b._title)??""}}let s=e.filter(c=>!l.has(c._file.path)),d=Zn(s,n),p=[],g=new Set;function m(c,h,v){if(g.has(c._title))return;g.add(c._title);let b=i.get(c._title)??[],f=b.length>0;if(p.push({row:c,depth:h,hasChildren:f,parentTitle:v}),!f||h>=HS||!(r?!o.has(c._file.path):o.has(c._file.path)))return;let w=Zn(b,n);for(let S of w)m(S,h+1,c._title)}for(let c of d)m(c,0,null);return p}var k=De(vt(),1);function jS(e,t,n=!1){let[o,r]=(0,se.useState)({scrollTop:0,viewportHeight:800}),a=(0,se.useRef)(null);if((0,se.useEffect)(()=>{if(n)return;let d=e.current;if(!d)return;let p=()=>r({scrollTop:d.scrollTop,viewportHeight:d.clientHeight});p();let g=()=>{a.current||(a.current=window.setTimeout(()=>{a.current=null,p()},32))};d.addEventListener("scroll",g,{passive:!0});let m=new ResizeObserver(p);return m.observe(d),()=>{d.removeEventListener("scroll",g),m.disconnect(),a.current&&window.clearTimeout(a.current)}},[e,n]),n)return{startIdx:0,endIdx:Number.POSITIVE_INFINITY,topPad:0};let i=20,l=Math.max(0,Math.floor(o.scrollTop/t)-i),s=Math.ceil((o.scrollTop+o.viewportHeight)/t)+i;return{startIdx:l,endIdx:s,topPad:l*t}}function US({scrollRef:e,rowHeight:t,rows:n,stickyMap:o,isMobile:r,setEditingCell:a,setContextMenuFile:i,longPressRef:l,columns:s,onAddRow:d,hierarchyMap:p,onToggleExpand:g,onAddSubRow:m,expandedSet:c,allExpanded:h,rowDragEnabled:v,dragOverPath:b,onRowDragStart:f,onRowDragOver:_,onRowDragEnd:w,onRowDrop:S,conditionalFormats:D,schema:T,disableVirtual:V}){let{startIdx:j,endIdx:le,topPad:re}=jS(e,t,V),_e=n.slice(j,Math.min(n.length,le)),ye=Math.max(0,(n.length-Math.min(n.length,le))*t);return(0,k.jsxs)("tbody",{className:"nb-tbody",children:[n.length===0?(0,k.jsx)("tr",{children:(0,k.jsx)("td",{colSpan:s.length+1,className:"nb-empty-rows",children:u("no_results")})}):(0,k.jsxs)(k.Fragment,{children:[re>0&&(0,k.jsx)("tr",{style:{height:re}}),_e.map(Ce=>{let Oe=Ce.original._file.path;return(0,k.jsxs)("tr",{className:`nb-row${b===Oe?" nb-row--drag-over":""}`,onClick:()=>a(null),onContextMenu:W=>{W.preventDefault(),i(Ce.original._file)},onTouchStart:r?()=>{l.current=window.setTimeout(()=>i(Ce.original._file),500)}:void 0,onTouchMove:r?()=>{l.current&&(window.clearTimeout(l.current),l.current=null)}:void 0,onTouchEnd:r?()=>{l.current&&(window.clearTimeout(l.current),l.current=null)}:void 0,onDragOver:v?W=>{W.preventDefault(),_?.(Oe)}:void 0,onDrop:v?W=>{W.preventDefault(),S?.(Oe)}:void 0,children:[Ce.getVisibleCells().map(W=>{let O=o.get(W.column.id),ne=p?.get(Ce.original._file.path),fe=W.column.id==="_title"&&ne,Ne=ne?.depth??0,Be=h?!c?.has(Ce.original._file.path):!!c?.has(Ce.original._file.path),$e=W.column.id==="_select",je=D?.length&&T?Kh(Ce.original,W.column.id,D,T):void 0,nt=T?.find(ze=>ze.id===W.column.id),ve=!!nt?.clip,Me=!!nt?.wrap&&!ve;return(0,k.jsx)("td",{"data-col-id":W.column.id,className:["nb-td",O?"nb-td--sticky":"",O?.isLast?"nb-td--sticky-last":"",Me?"nb-td--wrap":"",ve?"nb-td--clip":""].filter(Boolean).join(" "),style:{width:W.column.getSize(),...O?{left:O.left,zIndex:1}:{},...je},onClick:ze=>ze.stopPropagation(),children:$e&&v?(0,k.jsxs)("div",{className:"nb-td-inner nb-td-inner--drag",children:[(0,k.jsx)("span",{className:"nb-row-drag-handle",draggable:!0,onDragStart:ze=>{ze.dataTransfer.effectAllowed="move",ze.dataTransfer.setData("text/plain",Oe),f?.(Oe)},onDragEnd:()=>w?.(),children:"\u283F"}),hi(W.column.columnDef.cell,W.getContext())]}):fe?(0,k.jsxs)("div",{className:"nb-td-inner nb-hierarchy-cell",style:{paddingLeft:Ne*20},children:[ne.hasChildren?(0,k.jsx)("button",{className:"nb-hierarchy-toggle",onClick:ze=>{ze.stopPropagation(),g?.(Ce.original._file.path)},children:Be?"\u25BC":"\u25B6"}):(0,k.jsx)("span",{className:"nb-hierarchy-toggle-spacer"}),(0,k.jsx)("span",{style:{flex:1},children:hi(W.column.columnDef.cell,W.getContext())}),!r&&Ne<3&&(0,k.jsx)("button",{className:"nb-add-subrow-btn",onClick:ze=>{ze.stopPropagation(),m?.(Ce.original._title)},title:u("add_subrow"),children:"+"})]}):(0,k.jsx)("div",{className:"nb-td-inner",children:hi(W.column.columnDef.cell,W.getContext())})},W.id)}),(0,k.jsx)("td",{className:"nb-td nb-td-empty"})]},Ce.id)}),ye>0&&(0,k.jsx)("tr",{style:{height:ye}})]}),(0,k.jsx)("tr",{children:(0,k.jsx)("td",{colSpan:s.length+1,className:"nb-add-row-td",children:(0,k.jsx)("button",{className:"nb-add-row-btn",onClick:d,children:"+ "+u("add_row")})})})]})}function WS(e,t,n,o){if(n===o)return null;let r=["formula","lookup","relation"];if(r.includes(o)||r.includes(n))return null;let a=e.map(i=>i[t]).filter(i=>i!=null&&i!=="");if(o==="number"){let i=a.filter(l=>{let s=String(l).trim();return s!==""&&(isNaN(Number(s))||!isFinite(Number(s)))});if(i.length>0)return`${i.length} ${u("validate_non_numeric")}${String(i[0])}"`}if(o==="date"){let i=a.filter(l=>{let s=String(l).trim();return s!==""&&isNaN(new Date(s).getTime())});if(i.length>0)return`${i.length} ${u("validate_invalid_dates")}${String(i[0])}"`}if(o==="checkbox"){let i=new Set(["true","false","1","0","yes","no","sim","n\xE3o","nao"]),l=a.filter(s=>typeof s=="boolean"?!1:!i.has(String(s).toLowerCase().trim()));if(l.length>0)return`${l.length} ${u("validate_invalid_checkbox")}${String(l[0])}"`}if(n==="multiselect"&&o==="select"){let i=a.filter(l=>Array.isArray(l)&&l.length>1);if(i.length>0)return`${i.length} ${u("validate_multiselect_to_select")}`}if(o==="email"){let i=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,l=a.filter(s=>{let d=String(s).trim();return d!==""&&!i.test(d)});if(l.length>0)return`${l.length} ${u("validate_invalid_email")}${String(l[0])}"`}if(o==="url"){let i=a.filter(l=>{let s=String(l).trim();try{return new URL(s),!1}catch{return!0}});if(i.length>0)return`${i.length} ${u("validate_invalid_url")}${String(i[0])}"`}if(o==="phone"){let i=/^[\d\s()\-+]+$/,l=a.filter(s=>{let d=String(s).trim();return d!==""&&!i.test(d)});if(l.length>0)return`${l.length} ${u("validate_invalid_phone")}${String(l[0])}"`}return null}function GS(e){return{title:"\u{1F4C4}",text:"Aa",number:"#",select:"\u25C9",multiselect:"\u25C8",date:"\u{1F4C5}",checkbox:"\u2611",formula:"\u0192",relation:"\u{1F517}",lookup:"\u2197"}[e]??"\xB7"}var qS=["contains","not_contains","starts_with","ends_with","is","is_not","is_empty","is_not_empty"],YS=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],KS=["is","is_not","gt","gte","lt","lte","is_empty","is_not_empty"],Wm=["is","is_not","is_empty","is_not_empty"],XS=["is_checked","is_unchecked","is_empty","is_not_empty"];function QS(e){switch(e){case"number":return YS;case"date":return KS;case"select":return Wm;case"multiselect":return Wm;case"status":return Wm;case"checkbox":return XS;default:return qS}}function ZS(e){switch(e){case"number":case"date":return"is";case"checkbox":return"is_checked";case"select":case"multiselect":case"status":return"is";default:return"contains"}}var kb=new Proxy({},{get:(e,t)=>({is:u("op_is"),is_not:u("op_is_not"),contains:u("op_contains"),not_contains:u("op_not_contains"),starts_with:u("op_starts_with"),ends_with:u("op_ends_with"),gt:u("op_gt"),gte:u("op_gte"),lt:u("op_lt"),lte:u("op_lte"),is_checked:u("op_is_checked"),is_unchecked:u("op_is_unchecked"),is_empty:u("op_is_empty"),is_not_empty:u("op_is_not_empty")})[t]??t}),Nb=new Set(["is_empty","is_not_empty","is_checked","is_unchecked"]);function JS(e,t){if(!Nb.has(t.operator)&&t.value==="")return!0;let o=t.columnId==="_title"?e._title:e[t.columnId];if(t.operator==="is_empty")return o==null||String(o??"").trim()==="";if(t.operator==="is_not_empty")return o!=null&&String(o??"").trim()!=="";if(t.operator==="is_checked")return o===!0||o==="true";if(t.operator==="is_unchecked")return o!==!0&&o!=="true";if(t.columnType==="number"){let i=parseFloat(String(o??"")),l=parseFloat(t.value);if(isNaN(i)||isNaN(l))return!1;switch(t.operator){case"is":return i===l;case"is_not":return i!==l;case"gt":return i>l;case"gte":return i>=l;case"lt":return il;case"gte":return i>=l;case"lt":return is.toLowerCase());if(i.length===0)return!0;let l=Array.isArray(o)?o.map(s=>s.toLowerCase()):[String(o??"").toLowerCase()];return t.operator==="is"?l.some(s=>i.includes(s)):l.every(s=>!i.includes(s))}let r=Array.isArray(o)?o.join(", ").toLowerCase():String(o??"").toLowerCase(),a=t.value.toLowerCase();switch(t.operator){case"is":return r===a;case"is_not":return r!==a;case"contains":return r.includes(a);case"not_contains":return!r.includes(a);case"starts_with":return r.startsWith(a);case"ends_with":return r.endsWith(a);default:return!0}}function eN(e){switch(e){case"number":return"basic";case"date":return(t,n,o)=>{let r=new Date(String(t.getValue(o)??"")).getTime()||0,a=new Date(String(n.getValue(o)??"")).getTime()||0;return r-a};case"checkbox":return(t,n,o)=>{let r=t.getValue(o)?1:0,a=n.getValue(o)?1:0;return r-a};default:return"text"}}function tN({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,se.useState)(()=>({x:r.right-280,y:r.bottom+4})),s=b=>{b.preventDefault();let f=b.clientX-i.x,_=b.clientY-i.y,w=D=>l({x:D.clientX-f,y:D.clientY-_}),S=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",S)};window.addEventListener("mousemove",w),window.addEventListener("mouseup",S)},d=t.filter(b=>b.type!=="formula"&&b.type!=="lookup"&&b.type!=="relation"&&b.type!=="multiselect"),p=new Set(e.map(b=>b.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(b=>!p.has(b.id)).map(b=>({id:b.id,name:b.name}))],m=(b,f)=>{let _=[...e],w=b+f;w<0||w>=_.length||([_[b],_[w]]=[_[w],_[b]],n(_))},c=b=>{n(e.map(f=>f.columnId===b?{...f,direction:f.direction==="asc"?"desc":"asc"}:f))},h=b=>{n(e.filter(f=>f.columnId!==b))},v=b=>{b&&n([...e,{columnId:b,direction:"asc"}])};return(0,lc.createPortal)((0,k.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,k.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,k.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,k.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,k.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((b,f)=>{let _=b.columnId==="_title"?"Nome":t.find(w=>w.id===b.columnId)?.name??b.columnId;return(0,k.jsxs)("div",{className:"nb-sort-row",children:[(0,k.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,k.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(f,-1),disabled:f===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,k.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(f,1),disabled:f===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,k.jsx)("span",{className:"nb-sort-row-name",children:_}),(0,k.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>c(b.columnId),children:b.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,k.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>h(b.columnId),title:u("tooltip_remove"),children:"\xD7"})]},b.columnId)}),g.length>0&&(0,k.jsx)("div",{className:"nb-sort-add-row",children:(0,k.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:b=>{v(b.target.value),b.target.value=""},children:[(0,k.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(b=>(0,k.jsx)("option",{value:b.id,children:b.name},b.id))]})})]}),activeDocument.body)}function xb({onResize:e,onAutoFit:t}){return(0,k.jsx)("div",{className:"nb-col-resizer",onMouseDown:o=>{o.preventDefault(),o.stopPropagation();let r=o.currentTarget.closest("th");if(!r)return;let a=o.clientX,i=r.offsetWidth,l=i,s=p=>{l=Math.max(24,i+(p.clientX-a)),r.style.width=l+"px"},d=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",d),e(l)};window.addEventListener("mousemove",s),window.addEventListener("mouseup",d)},onDoubleClick:o=>{o.stopPropagation(),t?.()},title:u("tooltip_resize_column")})}function nN({id:e,size:t,children:n,stickyLeft:o,isLastPinned:r,isPinned:a,onTogglePin:i,sorted:l,onToggleSort:s,onResize:d,onAutoFit:p,userSized:g}){let{attributes:m,listeners:c,setNodeRef:h,setActivatorNodeRef:v,transform:b,transition:f,isDragging:_}=Im({id:e}),w=o!==void 0;return(0,k.jsxs)("th",{ref:h,"data-col-id":e,className:["nb-th",_?"nb-th--dragging":"",w?"nb-th--sticky":"",r?"nb-th--sticky-last":"",g?"nb-th--fixed":""].filter(Boolean).join(" "),style:{width:t,transform:Jo.Transform.toString(b),transition:f,zIndex:_?10:w?3:void 0,...w?{left:o}:{}},children:[(0,k.jsxs)("div",{className:"nb-th-inner",children:[(0,k.jsx)("span",{ref:v,...c,...m,className:"nb-col-drag-handle",title:u("tooltip_drag_reorder"),children:"\u283F"}),n,s&&(0,k.jsxs)("button",{className:l?"nb-sort-btn nb-sort-btn--sorted":"nb-sort-btn",onClick:S=>{S.stopPropagation(),s()},title:l==="asc"?u("sort_asc_title"):l==="desc"?u("sort_desc_title"):u("sort_none_title"),children:[(0,k.jsx)("span",{className:l==="asc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2303"}),(0,k.jsx)("span",{className:l==="desc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2304"})]}),(0,k.jsx)("span",{className:"nb-col-drag-spacer","aria-hidden":"true"}),i&&(0,k.jsx)("button",{className:`nb-pin-btn${a?" nb-pin-btn--active":""}`,onClick:S=>{S.stopPropagation(),i()},title:a?u("tooltip_unpin_column"):u("tooltip_pin_column"),children:"\u{1F4CC}"})]}),d&&(0,k.jsx)(xb,{onResize:d,onAutoFit:p})]})}function oN({filter:e,isActive:t,onToggle:n,onRemove:o,btnRef:r}){let{attributes:a,listeners:i,setNodeRef:l,setActivatorNodeRef:s,transform:d,transition:p,isDragging:g}=Im({id:e.id});return(0,k.jsxs)("div",{ref:l,style:{transform:Jo.Transform.toString(d),transition:p,opacity:g?.4:1},className:"nb-filter-pill-sortable",children:[(0,k.jsx)("span",{ref:s,...i,...a,className:"nb-pill-drag-handle",title:u("tooltip_drag_reorder"),children:(0,k.jsxs)("svg",{width:"8",height:"14",viewBox:"0 0 8 14",fill:"currentColor",children:[(0,k.jsx)("circle",{cx:"2",cy:"2.5",r:"1.2"}),(0,k.jsx)("circle",{cx:"6",cy:"2.5",r:"1.2"}),(0,k.jsx)("circle",{cx:"2",cy:"7",r:"1.2"}),(0,k.jsx)("circle",{cx:"6",cy:"7",r:"1.2"}),(0,k.jsx)("circle",{cx:"2",cy:"11.5",r:"1.2"}),(0,k.jsx)("circle",{cx:"6",cy:"11.5",r:"1.2"})]})}),(0,k.jsxs)("button",{ref:r,className:`nb-filter-pill ${t?"nb-filter-pill--active":""}`,onClick:n,children:[(0,k.jsx)("span",{className:"nb-filter-pill-icon",children:e.icon}),(0,k.jsx)("span",{className:"nb-filter-pill-name",children:e.columnName}),(0,k.jsx)("span",{className:"nb-filter-pill-remove",onClick:m=>{m.stopPropagation(),o()},title:u("tooltip_remove_filter"),children:"\xD7"})]})]})}var rN=["number","formula"];function aN({colType:e,current:t,onSelect:n,anchorEl:o}){let r=o?.getBoundingClientRect(),a=r?r.bottom+window.scrollY:0,i=r?r.left+window.scrollX:0,l=rN.includes(e),s=[{type:"none",label:u("agg_none")},{type:"count",label:u("agg_count")},{type:"count_values",label:u("agg_count_values")},{type:"sum",label:u("agg_sum"),numericOnly:!0},{type:"avg",label:u("agg_avg"),numericOnly:!0},{type:"min",label:u("agg_min"),numericOnly:!0},{type:"max",label:u("agg_max"),numericOnly:!0}];return(0,k.jsx)("div",{className:"nb-agg-dropdown",style:{position:"absolute",top:a,left:i,zIndex:9999},children:s.filter(d=>!d.numericOnly||l).map(d=>(0,k.jsx)("button",{className:`nb-menu-item ${t===d.type?"nb-menu-item--active":""}`,onClick:()=>n(d.type),children:d.label},d.type))})}function Gm({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{status:a,trackSave:i}=$r(),l=(0,se.useRef)(null),[s,d]=(0,se.useState)(new Map),[p,g]=(0,se.useState)(null),m=(0,se.useCallback)((C,P)=>{if(l.current){let y=P.findIndex($=>$._file.path===l.current);y!==-1&&P.push(...P.splice(y,1)),l.current=null}let F=new Map;for(let y of C.schema.filter($=>$.type==="relation"&&$.refDatabasePath)){let $=r.vault.getFileByPath(y.refDatabasePath);if(!$)continue;let Q=t.getNotesInDatabase($),we=new Set;for(let Xe of Q){let Pt=Xe.basename.trim();Pt&&we.add(Pt)}F.set(y.id,Array.from(we).sort())}d(F),g((n??C.views[0])?.pinnedColumnId??null)},[r,t,n]),{rows:c,config:h,loading:v,activeFilters:b,setActiveFilters:f}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n?.includeSubfolders,externalView:n??Qn,onLoaded:m}),[_,w]=(0,se.useState)([]),[S,D]=(0,se.useState)(xr);(0,se.useEffect)(()=>{w(c)},[c]),(0,se.useEffect)(()=>{D(h)},[h]);let[T,V]=(0,se.useState)([]),[j,le]=(0,se.useState)(!1),re=(0,se.useRef)(null),[_e,ye]=(0,se.useState)(null),Ce=(0,se.useRef)(null),[Oe,q]=(0,se.useState)(""),W=Vn(Oe,200),[O,ne]=(0,se.useState)(null),[fe,Ne]=(0,se.useState)(!1),Be=(0,se.useRef)(null),[$e,je]=(0,se.useState)({}),[nt,ve]=(0,se.useState)(!1),[Me,ze]=(0,se.useState)(null),He=(0,se.useRef)(null),[Ue,Fe]=(0,se.useState)(!1),[ot,Y]=(0,se.useState)(null),E=(0,se.useRef)(null),oe=(0,se.useRef)(null),ge=(0,se.useRef)(null),[ue,Ve]=(0,se.useState)(!1),be=(0,se.useRef)(null),xe=(0,se.useRef)(null),ft=(0,se.useRef)(null),kt=(0,se.useRef)(null),[St,L]=(0,se.useState)(!1),Se=(0,se.useRef)(null),[I,te]=(0,se.useState)(null),Pe=(0,se.useRef)({}),Te=(0,se.useRef)(null),[xt,ln]=(0,se.useState)(null),[ct,qt]=(0,se.useState)(null),Zt=(0,se.useRef)({}),[M,N]=(0,se.useState)(!1),Z=(0,se.useRef)(null),J=(0,se.useRef)(null),[X,ae]=(0,se.useState)(new Set),[de]=(0,se.useState)(!0),[x,ce]=(0,se.useState)(null),[ke,Re]=(0,se.useState)(null),Ae=Iv(Mm(Ci,{activationConstraint:{distance:8}}),Mm(Vl,{activationConstraint:{delay:200,tolerance:5}})),[Ke,Ie]=(0,se.useState)(n);(0,se.useEffect)(()=>{n&&Ie(n)},[n?.id]);let U=(n?Ke:void 0)??S.views[0]??Qn;(0,se.useEffect)(()=>{V(U.sorts.map(C=>({id:C.columnId,desc:C.direction==="desc"})))},[U.id]);let qe=(0,se.useMemo)(()=>{let C=n?U.columnOrder:void 0;if(!C||C.length===0)return S.schema;let P=new Map(S.schema.map($=>[$.id,$])),F=C.flatMap($=>P.has($)?[P.get($)]:[]),y=S.schema.filter($=>!C.includes($.id));return[...F,...y]},[n,U.columnOrder,S.schema]),Ee=(0,se.useCallback)(async C=>{if(o)Ie(C),await o(C);else{if(!e)return;let P={...S,views:S.views.map((F,y)=>y===0?C:F)};D(P),await t.writeConfig(e,P)}},[o,S,e,t]),_t=(0,se.useRef)(_),Rt=(0,se.useCallback)(async(C,P,F)=>{let y=_t.current[C];if(!y)return;w(Q=>Q.map(we=>we._file.path===y._file.path?{...we,[P]:F}:we)),await i((async()=>{if(P==="_title")await t.renameNote(y._file,String(F));else{await t.updateNoteField(y._file,P,F,y._inlineFields);let Q=S.schema.find(we=>we.id===P);if(Q?.type==="relation"&&Q.pairedColumnId){let we=y[P],Xe=Array.isArray(we)?we.map(Dt=>`${Dt}`):typeof we=="string"&&we!==""?[we]:[],Pt=Array.isArray(F)?F.map(Dt=>`${Dt}`):typeof F=="string"&&F!==""?[F]:[];await t.syncTwoWayRelation(y._file,Q,Xe,Pt)}}})())},[t,S.schema,i]),yt=(0,se.useCallback)(async C=>{if(!e)return;let P={...S,schema:C};D(P),await t.writeConfig(e,P)},[e,S,t]),Jt=(0,se.useCallback)((C,P)=>{let F=S.schema.find($=>$.id===C);if(!F)return!0;let y=WS(_,C,F.type,P);return y?(new Sb.Notice(`${u("validate_type_change_prefix")}${y}`,6e3),!1):!0},[S.schema,_]),Ht=(0,se.useCallback)(async C=>{let P=p===C?null:C;g(P),await Ee({...U,pinnedColumnId:P})},[p,Ee,U]),Et=(0,se.useCallback)(async C=>{V(C.map(P=>({id:P.columnId,desc:P.direction==="desc"}))),await Ee({...U,sorts:C})},[U,Ee]),Sn=(0,se.useCallback)(C=>{let P=U.sorts.find(y=>y.columnId===C),F;P?P.direction==="asc"?F=U.sorts.map(y=>y.columnId===C?{...y,direction:"desc"}:y):F=U.sorts.filter(y=>y.columnId!==C):F=[...U.sorts,{columnId:C,direction:"asc"}],Et(F)},[U.sorts,Et]),fo=(0,se.useCallback)(async(C,P)=>{await Ee({...U,columnWidths:{...U.columnWidths,[C]:P}})},[U,Ee]),Fi=(0,se.useCallback)(async C=>{let P=ft.current;if(!P)return;let F=60;P.querySelectorAll(`[data-col-id="${C}"]`).forEach(y=>{F=Math.max(F,y.scrollWidth)}),await fo(C,F+16)},[fo]),Ea=(0,se.useMemo)(()=>{let C=new Map,P=40,F=U.columnWidths._title??260;if(C.set("_select",{left:0,isLast:!1}),!p||(C.set("_title",{left:P,isLast:p==="_title"}),p==="_title"))return C;let y=P+F;for(let $ of S.schema.filter(Q=>Q.visible)){let Q=U.columnWidths[$.id]??$.width??150;if(C.set($.id,{left:y,isLast:$.id===p}),y+=Q,$.id===p)break}return C},[p,S]),Mi=(0,se.useCallback)(async(C,P)=>{if(!e)return;let F=await t.renameColumn(e,S,C,P);D(F)},[e,S,t]),tr=(0,se.useMemo)(()=>{let C=[];if(C.push({id:"_select",size:40,enableSorting:!1,enableColumnFilter:!1,header:()=>null,cell:({row:F})=>(0,k.jsx)("div",{className:"nb-cell-checkbox-wrapper",onClick:F.getToggleSelectedHandler(),children:(0,k.jsx)("div",{className:`nb-cell-checkbox-custom${F.getIsSelected()?" nb-cell-checkbox-custom--checked":""}`,children:F.getIsSelected()&&(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-cell-check-icon",children:(0,k.jsx)("polyline",{points:"20 6 9 17 4 12"})})})})}),U.includeSubfolders&&!U.hiddenColumns.includes("_folder")){let F=e?.parent?.path??"",y=F.split("/").pop()||F||"";C.push({id:"_folder",accessorFn:$=>{let Q=$._file.parent?.path??"";return Q.length>F.length?Q.slice(F.length+1):y},size:U.columnWidths._folder??150,enableColumnFilter:!0,enableSorting:!0,sortingFn:"text",header:()=>(0,k.jsx)("div",{className:"nb-header-title",children:(0,k.jsx)("span",{children:u("folder_column")})}),cell:$=>(0,k.jsxs)("span",{className:"nb-folder-path nb-folder-path--cell",children:[$.getValue(),"/"]})})}C.push({id:"_title",accessorFn:F=>F._title,size:U.columnWidths._title??260,enableColumnFilter:!0,enableSorting:!0,sortingFn:"text",header:({column:F})=>{let y=F.getIsSorted();return(0,k.jsxs)("div",{className:"nb-header-title",children:[(0,k.jsx)("span",{children:"\u{1F4C4}"}),(0,k.jsx)("span",{children:u("name_column")}),(0,k.jsxs)("button",{className:`nb-sort-btn ${y?"nb-sort-btn--sorted":""}`,onClick:$=>{$.stopPropagation(),Sn("_title")},title:y==="asc"?u("sort_asc_title"):y==="desc"?u("sort_desc_title"):u("sort_none_title"),children:[(0,k.jsx)("span",{className:y==="asc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2303"}),(0,k.jsx)("span",{className:y==="desc"?"nb-sort-chevron--active":"nb-sort-chevron",children:"\u2304"})]})]})},cell:F=>{let y=e?.parent?.path??"",$=F.row.original._file.parent?.path??"",Q=U.includeSubfolders&&$.length>y.length?$.slice(y.length+1):"";return(0,k.jsxs)("div",{children:[(0,k.jsx)(Bm,{col:{id:"_title",name:"Nome",type:"title",visible:!0},value:F.getValue(),rowIndex:F.row.index,columnId:"_title",file:F.row.original._file}),Q&&(0,k.jsx)("div",{className:"nb-folder-path",children:Q})]})}});let P=qe.filter(F=>F.visible&&!U.hiddenColumns.includes(F.id));for(let F of P)C.push({id:F.id,accessorFn:y=>y[F.id],size:U.columnWidths[F.id]??F.width??150,enableColumnFilter:F.type!=="formula"&&F.type!=="lookup"&&F.type!=="relation",enableSorting:F.type!=="formula"&&F.type!=="lookup"&&F.type!=="relation"&&F.type!=="multiselect",sortingFn:eN(F.type),header:()=>(0,k.jsx)(pb,{col:F,schema:S.schema,onUpdateSchema:yt,onRenameColumn:Mi,onChangeType:y=>Jt(F.id,y),manager:t,dbFile:e}),cell:y=>(0,k.jsx)(Bm,{col:F,value:y.getValue(),rowIndex:y.row.index,columnId:F.id})});return C},[S,qe,U,yt,Mi,Jt,t,e]),sn=(0,se.useMemo)(()=>{if(b.length===0)return _;let C=[],P=[];for(let F of b)F.conjunction==="or"&&P.length>0&&(C.push(P),P=[]),P.push(F);return P.length>0&&C.push(P),_.filter(F=>C.some(y=>y.every($=>JS(F,$))))},[_,b]),Nn=(0,se.useMemo)(()=>ac(S.schema,e?.path??""),[S.schema,e?.path]),Un=(0,se.useMemo)(()=>Nn?ic(sn,Nn.id,U.sorts,X,de):null,[sn,Nn,U.sorts,X,de]),Hr=!Nn&&T.length===0&&(U.rowOrder?.length??0)>0,nr=(0,se.useMemo)(()=>Un?Un.map(C=>C.row):Hr?Yh(sn,U.rowOrder):sn,[Un,sn,Hr,U.rowOrder]),Ti=(0,se.useMemo)(()=>{if(!Un)return null;let C=new Map;for(let P of Un)C.set(P.row._file.path,P);return C},[Un]),jr=t.pageSize>0,or=(0,se.useMemo)(()=>{if(!jr||!W)return nr;let C=W.toLowerCase();return nr.filter(P=>Object.entries(P).some(([F,y])=>F==="_file"||F==="_inlineFields"||y==null?!1:typeof y=="string"?y.toLowerCase().includes(C):typeof y=="number"||typeof y=="boolean"?String(y).toLowerCase().includes(C):Array.isArray(y)?y.some($=>typeof $=="string"&&$.toLowerCase().includes(C)):!1))},[nr,W,jr]),{pageItems:Gl,currentPage:ql,totalPages:hc,setPage:vc}=xi(or,t.pageSize);_t.current=Gl;let It=gv({data:Gl,columns:tr,state:{sorting:T,globalFilter:jr?"":W,rowSelection:$e},onSortingChange:V,onGlobalFilterChange:q,onRowSelectionChange:je,enableRowSelection:!0,getCoreRowModel:pv(),getSortedRowModel:Nn||Hr?void 0:fv(),getFilteredRowModel:jr?void 0:mv(),manualSorting:!!Nn||Hr,meta:{updateCell:Rt,editingCell:O,setEditingCell:ne,schema:S.schema}}),bc=!Nn&&T.length===0,yc=(0,se.useCallback)(C=>{ce(C)},[]),Yl=(0,se.useCallback)(C=>{Re(C)},[]),wc=(0,se.useCallback)(()=>{ce(null),Re(null)},[]),fn=(0,se.useCallback)(C=>{if(!x||x===C){ce(null),Re(null);return}let P=nr.map(we=>we._file.path),F=P.indexOf(x),y=P.indexOf(C);if(F===-1||y===-1)return;let $=[...P],[Q]=$.splice(F,1);$.splice(y,0,Q),Ee({...U,rowOrder:$}),ce(null),Re(null)},[x,nr,U,Ee]),Kl=async()=>{if(!e)return;let C=await t.createNoteWithTemplate(e);l.current=C.path},Xl=(0,se.useCallback)(async C=>{if(!e||!Nn)return;let P=await t.createNoteWithTemplate(e,{[Nn.id]:[C]});l.current=P.path},[e,Nn,t]),Cc=(0,se.useCallback)(C=>{ae(P=>{let F=new Set(P);return F.has(C)?F.delete(C):F.add(C),F})},[]);(0,se.useEffect)(()=>{if(!fe)return;let C=P=>{xe.current?.contains(P.target)||Be.current&&!Be.current.contains(P.target)&&Ne(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[fe]),(0,se.useEffect)(()=>{if(!nt)return;let C=P=>{xe.current?.contains(P.target)||E.current&&!E.current.contains(P.target)&&ve(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[nt]),(0,se.useEffect)(()=>{if(!Ue)return;let C=P=>{xe.current?.contains(P.target)||oe.current&&!oe.current.contains(P.target)&&Fe(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[Ue]),(0,se.useEffect)(()=>{if(!ot)return;let C=P=>{let F=P.target,y=activeDocument.querySelector(".nb-agg-dropdown"),$=activeDocument.querySelector(`[data-agg-col="${ot}"]`);!y?.contains(F)&&!$?.contains(F)&&Y(null)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[ot]),(0,se.useEffect)(()=>{if(!j)return;let C=P=>{Ce.current?.contains(P.target)||re.current&&!re.current.contains(P.target)&&le(!1)};return activeDocument.addEventListener("mousedown",C),()=>activeDocument.removeEventListener("mousedown",C)},[j]);let rr=(0,se.useCallback)(()=>It.getSelectedRowModel().rows.map(C=>C.original._file),[It]),Pi=(0,se.useCallback)(async()=>{let C=rr();C.length!==0&&(await t.deleteNotes(C),je({}),ve(!1))},[rr,t]),Da=(0,se.useCallback)(()=>{let C=rr();if(C.length===0)return;new di(r,F=>{t.moveNotes(C,F.path),je({})}).open(),ve(!1)},[r,rr,t]),Ql=(0,se.useCallback)(async()=>{let C=rr();C.length!==0&&(await t.duplicateNotes(C),je({}),ve(!1))},[rr,t]),Zl=(0,se.useCallback)(()=>{let C=qe.filter(Pt=>Pt.visible&&!U.hiddenColumns.includes(Pt.id)),P=Pt=>{let Dt=Pt==null?"":mt(Pt);return Dt.includes(",")||Dt.includes('"')||Dt.includes(` +`)?'"'+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;$oDt.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||$===-1))if(n){let Q=ki(qe,y,$).map(we=>we.id);await Ee({...U,columnOrder:Q})}else await yt(ki(S.schema,y,$))},[qe,n,U,Ee,S.schema,yt]),Dc=async()=>{let P={id:`campo_${Date.now()}`,name:u("new_field"),type:"text",visible:!0,width:150};await yt([...S.schema,P])},Ta=wn();if(!e)return(0,k.jsxs)("div",{className:"nb-empty-state",children:[(0,k.jsx)("p",{children:u("no_database_open")}),(0,k.jsx)("p",{children:u("no_database_hint")})]});if(v)return(0,k.jsx)("div",{className:"nb-loading",children:u("loading")});let qr=It.getRowModel().rows,Yr=C=>{C!=="fields"&&Ne(!1),C!=="actions"&&ve(!1),C!=="filter"&&L(!1),C!=="sort"&&le(!1)},Fc=Ta?(0,k.jsxs)(jn,{actionBarRef:xe,search:{value:Oe,onChange:q},actions:[{id:"fields",label:u("fields"),icon:(0,k.jsx)(Cn,{}),active:fe,badge:S.schema.filter(C=>!C.visible).length||void 0,onClick:()=>{Yr("fields"),Ne(C=>!C)}},{id:"actions",label:u("actions"),icon:(0,k.jsx)(bb,{}),active:nt,badge:It.getSelectedRowModel().rows.length||void 0,onClick:()=>{Yr("actions"),ve(C=>!C)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,k.jsx)(Hn,{}),active:!!U.includeSubfolders,onClick:()=>{Yr(),es()}},{id:"sort",label:u("sort"),icon:(0,k.jsx)(po,{}),active:U.sorts.length>0,badge:U.sorts.length||void 0,onClick:()=>{Yr("sort"),!j&&Ce.current&&ye(Ce.current.getBoundingClientRect()),le(C=>!C)}},{id:"filter",label:u("filter"),icon:(0,k.jsx)(Bn,{}),active:St,badge:b.length||void 0,onClick:()=>{Yr("filter"),L(C=>!C)}}],rowCount:qr.length,rowCountLabel:qr.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:b,onFilterUpdate:Gr,onFilterRemove:Ma,onConjunctionToggle:ns,children:[(0,k.jsx)(st,{open:fe,onClose:()=>Ne(!1),title:u("fields"),children:S.schema.map(C=>(0,k.jsxs)("label",{className:"nb-field-row",children:[(0,k.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:n?C.visible&&!U.hiddenColumns.includes(C.id):C.visible,onChange:()=>{Ii(C.id)}}),(0,k.jsx)("span",{className:"nb-field-icon",children:Ur(C.type)}),(0,k.jsx)("span",{className:"nb-field-name",children:C.name})]},C.id))}),(0,k.jsxs)(st,{open:nt,onClose:()=>ve(!1),title:u("actions"),children:[(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Pi()},disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,k.jsx)("span",{children:u("delete_selected")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:Da,disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C1}"}),(0,k.jsx)("span",{children:u("move_selected")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Ql()},disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,k.jsx)("span",{children:u("duplicate_selected")})]}),(0,k.jsx)("div",{className:"nb-menu-separator"}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:Zl,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B07"}),(0,k.jsx)("span",{children:u("export_csv")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge.current?.click(),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B06"}),(0,k.jsx)("span",{children:u("import_csv")})]}),(0,k.jsx)("input",{ref:ge,type:"file",accept:".csv",style:{display:"none"},onChange:C=>{Li(C)}})]}),(0,k.jsxs)(st,{open:St,onClose:()=>L(!1),title:u("filter"),children:[(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>Fa("_title","Nome","\u{1F4C4}","title"),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,k.jsx)("span",{children:u("name_column")})]}),S.schema.map(C=>(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>Fa(C.id,C.name,Ur(C.type),C.type),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:Ur(C.type)}),(0,k.jsx)("span",{children:C.name})]},C.id))]}),(0,k.jsxs)(st,{open:j,onClose:()=>le(!1),title:u("sort"),children:[U.sorts.length===0&&(0,k.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),U.sorts.map((C,P)=>{let F=C.columnId==="_title"?"Nome":S.schema.find(y=>y.id===C.columnId)?.name??C.columnId;return(0,k.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,k.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,k.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let y=[...U.sorts];P>0&&([y[P],y[P-1]]=[y[P-1],y[P]],Et(y))},disabled:P===0,children:"\u2191"}),(0,k.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let y=[...U.sorts];P{Et(U.sorts.map(y=>y.columnId===C.columnId?{...y,direction:y.direction==="asc"?"desc":"asc"}:y))},children:C.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,k.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{Et(U.sorts.filter(y=>y.columnId!==C.columnId))},children:"\xD7"})]},C.columnId)}),(()=>{let C=S.schema.filter(y=>y.type!=="formula"&&y.type!=="lookup"&&y.type!=="relation"&&y.type!=="multiselect"),P=new Set(U.sorts.map(y=>y.columnId)),F=[...P.has("_title")?[]:[{id:"_title",name:"Nome"}],...C.filter(y=>!P.has(y.id)).map(y=>({id:y.id,name:y.name}))];return F.length===0?null:(0,k.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:y=>{y.target.value&&(Et([...U.sorts,{columnId:y.target.value,direction:"asc"}]),y.target.value="")},children:[(0,k.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),F.map(y=>(0,k.jsx)("option",{value:y.id,children:y.name},y.id))]})})()]})]}):null;return(0,k.jsxs)("div",{className:"nb-container",children:[Fc||(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"nb-toolbar",children:[(0,k.jsxs)("div",{className:`nb-search-container${go?M?" nb-search-container--expanded":" nb-search-container--collapsed":""}`,children:[go&&(0,k.jsx)("button",{className:"nb-search-icon-btn",onClick:Rc,title:u("tooltip_search"),children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,k.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),(0,k.jsx)("input",{ref:Z,className:"nb-search",type:"text",placeholder:u("relation_search_placeholder"),value:Oe,onChange:C=>{q(C.target.value),go&&M&&Ai()},onKeyDown:C=>{C.key==="Enter"&&go&&M&&rs()},onBlur:()=>{go&&M&&rs()}})]}),(0,k.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:oe,children:[(0,k.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${Ue?"nb-toolbar-btn--active":""}`,onClick:()=>Fe(C=>!C),title:u("row_height_label"),children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("line",{x1:"21",y1:"10",x2:"3",y2:"10"}),(0,k.jsx)("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),(0,k.jsx)("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),(0,k.jsx)("line",{x1:"21",y1:"18",x2:"3",y2:"18"})]})}),Ue&&(0,k.jsxs)("div",{className:"nb-fields-dropdown nb-rowheight-dropdown",children:[(0,k.jsx)("div",{className:"nb-fields-dropdown-label",children:u("row_height_label")}),["compact","medium","tall"].map(C=>(0,k.jsxs)("button",{className:`nb-menu-item ${(U.rowHeight??"medium")===C?"nb-menu-item--active":""}`,onClick:()=>{Sc(C)},children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:C==="compact"?"\u25A4":C==="medium"?"\u25A5":"\u25A6"}),(0,k.jsx)("span",{children:C==="compact"?u("height_compact"):C==="medium"?u("height_medium"):u("height_tall")})]},C))]})]}),(0,k.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${U.wrapText?"nb-toolbar-btn--active":""}`,onClick:()=>{Jl()},title:u("tooltip_wrap_text"),children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("path",{d:"M3 18h12a3 3 0 0 0 0-6h-3"}),(0,k.jsx)("polyline",{points:"9 15 6 18 9 21"})]})}),(0,k.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${U.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{es()},title:u("tooltip_include_subfolders"),children:(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,k.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,k.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,k.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,k.jsxs)("button",{className:`nb-toolbar-btn ${fe?"nb-toolbar-btn--active":""}`,onClick:()=>Ne(C=>!C),title:u("tooltip_manage_fields"),children:[u("fields")," ",S.schema.some(C=>!C.visible)&&(0,k.jsx)("span",{className:"nb-hidden-badge",children:S.schema.filter(C=>!C.visible).length})]}),fe&&(0,k.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,k.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),S.schema.map(C=>(0,k.jsxs)("label",{className:"nb-field-row",children:[(0,k.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:n?C.visible&&!U.hiddenColumns.includes(C.id):C.visible,onChange:()=>{Ii(C.id)}}),(0,k.jsx)("span",{className:"nb-field-icon",children:C.type==="text"?"Aa":C.type==="number"?"#":C.type==="select"?"\u25C9":C.type==="multiselect"?"\u25C8":C.type==="date"?"\u{1F4C5}":C.type==="checkbox"?"\u2611":C.type==="lookup"?"\u2197":C.type==="relation"?"\u{1F517}":C.type==="formula"?"\u0192":"\xB7"}),(0,k.jsx)("span",{className:"nb-field-name",children:C.name})]},C.id))]})]}),(0,k.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:E,children:[(0,k.jsxs)("button",{className:`nb-toolbar-btn ${nt?"nb-toolbar-btn--active":""}`,onClick:()=>ve(C=>!C),title:u("tooltip_batch_actions"),children:[u("actions"),It.getSelectedRowModel().rows.length>0&&(0,k.jsx)("span",{className:"nb-hidden-badge",children:It.getSelectedRowModel().rows.length})]}),nt&&(0,k.jsxs)("div",{className:"nb-fields-dropdown nb-actions-dropdown",children:[(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Pi()},disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,k.jsx)("span",{children:u("delete_selected")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:Da,disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C1}"}),(0,k.jsx)("span",{children:u("move_selected")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Ql()},disabled:It.getSelectedRowModel().rows.length===0,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,k.jsx)("span",{children:u("duplicate_selected")})]}),(0,k.jsx)("div",{className:"nb-menu-separator"}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:Zl,children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B07"}),(0,k.jsx)("span",{children:u("export_csv")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>ge.current?.click(),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u2B06"}),(0,k.jsx)("span",{children:u("import_csv")})]}),(0,k.jsx)("input",{ref:ge,type:"file",accept:".csv",style:{display:"none"},onChange:C=>{Li(C)}})]})]}),(0,k.jsxs)("span",{className:"nb-row-count",children:[qr.length," ",qr.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,k.jsx)(Ar,{status:a}),(0,k.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Se,style:{marginLeft:"auto"},children:[(0,k.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${St?"nb-toolbar-btn--active":""}`,onClick:()=>L(C=>!C),title:u("filters"),children:[(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,k.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),b.length>0&&(0,k.jsx)("span",{className:"nb-hidden-badge",children:b.length})]}),St&&(0,k.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,k.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>Fa("_title","Nome","\u{1F4C4}","title"),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,k.jsx)("span",{children:u("name_column")})]}),S.schema.map(C=>(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>Fa(C.id,C.name,Ur(C.type),C.type),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:Ur(C.type)}),(0,k.jsx)("span",{children:C.name})]},C.id)),(0,k.jsx)("div",{className:"nb-menu-separator"}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>L(!1),children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u26A1"}),(0,k.jsx)("span",{children:u("add_filter_advanced")})]})]})]}),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("button",{ref:Ce,className:`nb-toolbar-btn${U.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!j&&Ce.current&&ye(Ce.current.getBoundingClientRect()),le(C=>!C)},children:[(0,k.jsx)("span",{children:u("sort")}),U.sorts.length>0&&(0,k.jsx)("span",{className:"nb-hidden-badge",children:U.sorts.length})]}),j&&_e&&(0,k.jsx)(tN,{sorts:U.sorts,schema:S.schema,onSortChange:C=>{Et(C)},onClose:()=>le(!1),anchorRect:_e,panelRef:re})]}),(0,k.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:be,children:[(0,k.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(U.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>Ve(C=>!C),title:u("conditional_formatting"),children:[(0,k.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,k.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,k.jsx)("path",{d:"M3 9h18"}),(0,k.jsx)("path",{d:"M3 15h18"}),(0,k.jsx)("path",{d:"M9 3v18"})]}),(U.conditionalFormats?.length??0)>0&&(0,k.jsx)("span",{className:"nb-hidden-badge",children:U.conditionalFormats.length})]}),ue&&(0,k.jsx)(Ir,{rules:U.conditionalFormats??[],schema:S.schema,onChange:C=>{Ee({...U,conditionalFormats:C})},onClose:()=>Ve(!1)})]})]}),b.length>0&&!(go&&M)&&(0,k.jsxs)("div",{className:`nb-pills-row${U.filtersCollapsed?" nb-filter-pills-row--collapsed":""}`,children:[!U.filtersCollapsed&&(0,k.jsx)(Pm,{sensors:Ae,collisionDetection:Tm,onDragStart:()=>te(null),onDragEnd:kc,children:(0,k.jsx)(Am,{items:b.map(C=>C.id),strategy:Lm,children:b.map((C,P)=>(0,k.jsxs)(se.Fragment,{children:[P>0&&(0,k.jsx)("button",{className:`nb-pill-conjunction ${C.conjunction==="or"?"nb-pill-conjunction--or":""}`,onClick:()=>ns(C.id),title:u("tooltip_toggle_and_or"),children:C.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,k.jsx)(oN,{filter:C,isActive:I===C.id,onToggle:()=>te(F=>F===C.id?null:C.id),onRemove:()=>Ma(C.id),btnRef:F=>{Pe.current[C.id]=F}})]},C.id))})}),U.filtersCollapsed&&(0,k.jsx)("span",{className:"nb-filter-pills-collapsed-label",children:b.length===1?u("filters_count_one"):u("filters_count_other").replace("{n}",String(b.length))}),(0,k.jsx)("button",{className:"nb-filter-pills-toggle",onClick:()=>{Ee({...U,filtersCollapsed:!U.filtersCollapsed})},title:U.filtersCollapsed?u("show_filters"):u("hide_filters"),children:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:U.filtersCollapsed?(0,k.jsx)("polyline",{points:"6 9 12 15 18 9"}):(0,k.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]}),(()=>{let C=b.find(P=>P.id===I);return!C||!xt||U.filtersCollapsed?null:(0,lc.createPortal)((0,k.jsxs)("div",{ref:Te,className:"nb-filter-pill-dropdown",style:{position:"fixed",top:xt.top,left:xt.left,zIndex:1e3},children:[(0,k.jsxs)("div",{className:"nb-filter-query-row",children:[(0,k.jsx)("span",{className:"nb-filter-query-name",children:C.columnName}),(0,k.jsxs)("div",{className:"nb-filter-op-wrapper",ref:P=>{Zt.current[C.id]=P},children:[(0,k.jsxs)("button",{className:`nb-filter-op-btn ${ct===C.id?"nb-filter-op-btn--open":""}`,onClick:P=>{P.stopPropagation(),qt(F=>F===C.id?null:C.id)},children:[kb[C.operator],(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,k.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),ct===C.id&&(0,k.jsx)("div",{className:"nb-filter-op-dropdown",children:QS(C.columnType).map(P=>(0,k.jsx)("button",{className:`nb-menu-item ${C.operator===P?"nb-menu-item--active":""}`,onClick:F=>{F.stopPropagation(),Gr(C.id,P,""),qt(null)},children:kb[P]},P))})]}),(0,k.jsx)("button",{className:"nb-filter-query-clear",onClick:P=>{P.stopPropagation(),Ma(C.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]}),!Nb.has(C.operator)&&(mi(C)?(0,k.jsx)("div",{className:"nb-filter-multi-select",children:(()=>{let F=S.schema.find($=>$.id===C.columnId)?.options??[],y=pa(C.value);return F.length>0?F.map($=>(0,k.jsxs)("label",{className:"nb-filter-multi-option",children:[(0,k.jsx)("input",{type:"checkbox",checked:y.includes($.value),onChange:()=>Gr(C.id,C.operator,Pu(C.value,$.value))}),(0,k.jsx)("span",{className:"nb-filter-option-badge",style:$.color?{backgroundColor:$.color}:void 0,children:$.value})]},$.value)):(0,k.jsx)("input",{className:"nb-filter-value-input",type:"text",placeholder:u("filter_value_placeholder"),value:C.value,autoFocus:!Ta,onChange:$=>Gr(C.id,C.operator,$.target.value)})})()}):(0,k.jsx)("input",{className:"nb-filter-value-input",type:C.columnType==="number"?"number":C.columnType==="date"?"date":"text",placeholder:C.columnType==="number"?u("filter_number_placeholder"):C.columnType==="date"?"":u("filter_value_placeholder"),value:C.value,autoFocus:!Ta,onChange:P=>Gr(C.id,C.operator,P.target.value)}))]}),activeDocument.body)})()]}),(0,k.jsxs)(Vm.Provider,{value:{editingCell:O,setEditingCell:ne,updateCell:Rt,schema:S.schema,relationOptions:s,updateSchema:yt},children:[(0,k.jsx)("div",{ref:kt,className:`nb-table-wrapper${U.wrapText?" nb-table--wrap":""}${Si.clipEllipsis?"":" nb-clip-hard"}`,style:{"--nb-row-height":U.rowHeight==="compact"?"28px":U.rowHeight==="tall"?"64px":"36px"},children:(0,k.jsxs)("table",{ref:ft,className:"nb-table",children:[(0,k.jsx)("thead",{className:"nb-thead",children:It.getHeaderGroups().map(C=>{let P=qe.filter(F=>F.visible&&!U.hiddenColumns.includes(F.id)).map(F=>F.id);return(0,k.jsx)(Pm,{sensors:Ae,collisionDetection:Tm,onDragEnd:F=>{Ec(F)},children:(0,k.jsx)(Am,{items:P,strategy:Lm,children:(0,k.jsxs)("tr",{className:"nb-header-row",children:[C.headers.map(F=>{let y=Ea.get(F.id);return F.id==="_select"?(0,k.jsx)("th",{className:"nb-th nb-th-select nb-th--sticky",style:{width:F.getSize(),left:0,zIndex:3},children:(0,k.jsx)("div",{className:"nb-cell-checkbox-wrapper",onClick:It.getToggleAllRowsSelectedHandler(),children:(0,k.jsx)("div",{className:`nb-cell-checkbox-custom${It.getIsAllRowsSelected()?" nb-cell-checkbox-custom--checked":""}${It.getIsSomeRowsSelected()&&!It.getIsAllRowsSelected()?" nb-cell-checkbox-custom--indeterminate":""}`,children:(It.getIsAllRowsSelected()||It.getIsSomeRowsSelected())&&(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",className:"nb-cell-check-icon",children:It.getIsAllRowsSelected()?(0,k.jsx)("polyline",{points:"20 6 9 17 4 12"}):(0,k.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"})})})})},F.id):F.id==="_title"?(0,k.jsxs)("th",{"data-col-id":"_title",className:["nb-th",y?"nb-th--sticky":"",y?.isLast?"nb-th--sticky-last":"",U.columnWidths._title!==void 0?"nb-th--fixed":""].filter(Boolean).join(" "),style:{width:F.getSize(),...y?{left:y.left,zIndex:3}:{}},children:[(0,k.jsxs)("div",{className:"nb-th-inner-title",children:[(0,k.jsx)("div",{style:{flex:1},children:hi(F.column.columnDef.header,F.getContext())}),(0,k.jsx)("button",{className:`nb-pin-btn${p==="_title"?" nb-pin-btn--active":""}`,onClick:()=>{Ht("_title")},title:p==="_title"?u("tooltip_unpin_column"):u("tooltip_pin_column"),children:"\u{1F4CC}"})]}),(0,k.jsx)(xb,{onResize:$=>{fo("_title",$)},onAutoFit:()=>{Fi("_title")}})]},F.id):(0,k.jsx)(nN,{id:F.id,size:F.getSize(),stickyLeft:y?.left,isLastPinned:y?.isLast,isPinned:p===F.id,onTogglePin:()=>{Ht(F.id)},sorted:F.column.getCanSort()?F.column.getIsSorted():void 0,onToggleSort:F.column.getCanSort()?()=>Sn(F.id):void 0,onResize:$=>{fo(F.id,$)},onAutoFit:()=>{Fi(F.id)},userSized:U.columnWidths[F.id]!==void 0,children:hi(F.column.columnDef.header,F.getContext())},F.id)}),(0,k.jsx)("th",{className:"nb-th nb-th-add-col",children:(0,k.jsx)("button",{className:"nb-add-col-btn",onClick:()=>{Dc()},title:u("add_field"),children:"+"})})]})})},C.id)})}),(0,k.jsx)(US,{scrollRef:kt,rowHeight:U.rowHeight==="compact"?28:U.rowHeight==="tall"?64:36,disableVirtual:S.schema.some(C=>C.wrap&&!U.hiddenColumns.includes(C.id)),rows:qr,stickyMap:Ea,isMobile:Ta,setEditingCell:ne,setContextMenuFile:ze,longPressRef:He,columns:tr,onAddRow:()=>{Kl()},hierarchyMap:Ti,onToggleExpand:Cc,onAddSubRow:C=>{Xl(C)},expandedSet:X,allExpanded:de,rowDragEnabled:bc,dragOverPath:ke,onRowDragStart:yc,onRowDragOver:Yl,onRowDragEnd:wc,onRowDrop:fn,conditionalFormats:U.conditionalFormats,schema:S.schema}),(0,k.jsx)("tfoot",{className:"nb-tfoot",children:(0,k.jsxs)("tr",{children:[(0,k.jsx)("td",{className:"nb-td nb-agg-td nb-td--sticky",style:{left:0,zIndex:1,width:40}}),It.getVisibleLeafColumns().filter(C=>C.id!=="_select").map(C=>{let P=Ea.get(C.id),F=(U.aggregations??{})[C.id]??"none",y=xc(C.id,F);return(0,k.jsxs)("td",{"data-agg-col":C.id,className:["nb-td","nb-agg-td",P?"nb-td--sticky":"",P?.isLast?"nb-td--sticky-last":""].filter(Boolean).join(" "),style:{width:C.getSize(),...P?{left:P.left,zIndex:1}:{}},onClick:()=>Y($=>$===C.id?null:C.id),children:[F!=="none"?(0,k.jsxs)("div",{className:"nb-agg-cell",children:[(0,k.jsx)("span",{className:"nb-agg-label",children:ts[F]}),(0,k.jsx)("span",{className:"nb-agg-value",children:y})]}):(0,k.jsx)("div",{className:"nb-agg-empty"}),ot===C.id&&(0,lc.createPortal)((0,k.jsx)(aN,{colType:S.schema.find($=>$.id===C.id)?.type??"text",current:F,onSelect:$=>{Nc(C.id,$)},anchorEl:activeDocument.querySelector(`[data-agg-col="${C.id}"]`)}),activeDocument.body)]},C.id)}),(0,k.jsx)("td",{className:"nb-td nb-agg-td nb-td-empty"})]})})]})}),(0,k.jsxs)("div",{className:"nb-row-count-bar",children:[(()=>{let C=_.length,P=or.length;return P!==C?(0,k.jsxs)("span",{className:"nb-row-count",children:[P," de ",C," ",C!==1?u("record_plural").toLowerCase():u("record_singular").toLowerCase()]}):(0,k.jsxs)("span",{className:"nb-row-count",children:[C," ",C!==1?u("record_plural").toLowerCase():u("record_singular").toLowerCase()]})})(),(0,k.jsx)(Ni,{currentPage:ql,totalPages:hc,onPageChange:vc})]})]}),(0,k.jsxs)(st,{open:Me!==null,onClose:()=>ze(null),title:Me?.basename??"",children:[(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Me&&r.workspace.getLeaf().openFile(Me),ze(null)},children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,k.jsx)("span",{children:u("open_note")})]}),(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Me&&t.duplicateNotes([Me]),ze(null)},children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,k.jsx)("span",{children:u("duplicate_note")})]}),Nn&&Me&&(Ti?.get(Me.path)?.depth??0)<3&&(0,k.jsxs)("button",{className:"nb-menu-item",onClick:()=>{Xl(Me.basename),ze(null)},children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u21B3"}),(0,k.jsx)("span",{children:u("add_subrow")})]}),(0,k.jsx)("div",{className:"nb-menu-separator"}),(0,k.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{Me&&t.deleteNotes([Me]),ze(null)},children:[(0,k.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,k.jsx)("span",{children:u("delete_note")})]})]})]})}var rt=De(wt(),1),Eb=De(lo(),1);var kn=De(wt(),1),Rb=De(lo(),1);var bt=De(vt(),1);function mo({activeFilters:e,schema:t,onUpdate:n,onRemove:o,onToggleConjunction:r,collapsed:a=!1,onToggleCollapsed:i}){let l=wn(),[s,d]=(0,kn.useState)(null),[p,g]=(0,kn.useState)(null),[m,c]=(0,kn.useState)(null),h=(0,kn.useRef)({}),v=(0,kn.useRef)({}),b=(0,kn.useRef)(null);(0,kn.useLayoutEffect)(()=>{if(!s){c(null);return}let _=h.current[s];if(!_)return;let w=_.getBoundingClientRect();c({top:w.bottom+4,left:w.left})},[s]),(0,kn.useEffect)(()=>{if(!s)return;let _=w=>{let S=h.current[s],D=w.target,T=S?.contains(D),V=b.current?.contains(D);!T&&!V&&d(null)};return activeDocument.addEventListener("mousedown",_),()=>activeDocument.removeEventListener("mousedown",_)},[s]),(0,kn.useEffect)(()=>{if(!p)return;let _=w=>{let S=v.current[p];S&&!S.contains(w.target)&&g(null)};return activeDocument.addEventListener("mousedown",_),()=>activeDocument.removeEventListener("mousedown",_)},[p]),(0,kn.useEffect)(()=>{e.find(_=>_.id===s)||d(null)},[e,s]);let f=e.find(_=>_.id===s);return(0,bt.jsxs)(bt.Fragment,{children:[e.length>0&&(0,bt.jsxs)("div",{className:`nb-filter-pills-row${a?" nb-filter-pills-row--collapsed":""}`,children:[!a&&e.map((_,w)=>(0,bt.jsxs)(kn.Fragment,{children:[w>0&&(0,bt.jsx)("button",{className:`nb-pill-conjunction${_.conjunction==="or"?" nb-pill-conjunction--or":""}`,onClick:()=>r(_.id),title:u("tooltip_toggle_and_or"),children:_.conjunction==="or"?u("conjunction_or"):u("conjunction_and")}),(0,bt.jsxs)("button",{ref:S=>{h.current[_.id]=S},className:`nb-filter-pill ${s===_.id?"nb-filter-pill--active":""}`,onClick:()=>d(S=>S===_.id?null:_.id),children:[(0,bt.jsx)("span",{className:"nb-filter-pill-icon",children:_.icon}),(0,bt.jsx)("span",{className:"nb-filter-pill-name",children:_.columnName}),(0,bt.jsx)("span",{className:"nb-filter-pill-remove",onClick:S=>{S.stopPropagation(),o(_.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]})]},_.id)),a&&(0,bt.jsx)("span",{className:"nb-filter-pills-collapsed-label",children:e.length===1?u("filters_count_one"):u("filters_count_other").replace("{n}",String(e.length))}),i&&(0,bt.jsx)("button",{className:"nb-filter-pills-toggle",onClick:i,title:a?u("show_filters"):u("hide_filters"),children:(0,bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:a?(0,bt.jsx)("polyline",{points:"6 9 12 15 18 9"}):(0,bt.jsx)("polyline",{points:"18 15 12 9 6 15"})})})]}),f&&!a&&m&&(0,Rb.createPortal)((0,bt.jsxs)("div",{ref:b,className:"nb-filter-pill-dropdown",style:{position:"fixed",top:m.top,left:m.left,zIndex:1e3},children:[(0,bt.jsxs)("div",{className:"nb-filter-query-row",children:[(0,bt.jsx)("span",{className:"nb-filter-query-name",children:f.columnName}),(0,bt.jsxs)("div",{className:"nb-filter-op-wrapper",ref:_=>{v.current[f.id]=_},children:[(0,bt.jsxs)("button",{className:`nb-filter-op-btn ${p===f.id?"nb-filter-op-btn--open":""}`,onClick:_=>{_.stopPropagation(),g(w=>w===f.id?null:f.id)},children:[Rr[f.operator],(0,bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,bt.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),p===f.id&&(0,bt.jsx)("div",{className:"nb-filter-op-dropdown",children:pi(f.columnType).map(_=>(0,bt.jsx)("button",{className:`nb-menu-item ${f.operator===_?"nb-menu-item--active":""}`,onClick:w=>{w.stopPropagation(),n(f.id,_,""),g(null)},children:Rr[_]},_))})]}),(0,bt.jsx)("button",{className:"nb-filter-query-clear",onClick:_=>{_.stopPropagation(),o(f.id)},title:u("tooltip_remove_filter"),children:"\xD7"})]}),!Er.has(f.operator)&&(mi(f)?(0,bt.jsx)("div",{className:"nb-filter-multi-select",children:(()=>{let w=t.find(D=>D.id===f.columnId)?.options??[],S=pa(f.value);return w.length>0?w.map(D=>(0,bt.jsxs)("label",{className:"nb-filter-multi-option",children:[(0,bt.jsx)("input",{type:"checkbox",checked:S.includes(D.value),onChange:()=>n(f.id,f.operator,Pu(f.value,D.value))}),(0,bt.jsx)("span",{className:"nb-filter-option-badge",style:D.color?{backgroundColor:D.color}:void 0,children:D.value})]},D.value)):(0,bt.jsx)("input",{className:"nb-filter-value-input",type:"text",placeholder:u("filter_value_placeholder"),value:f.value,autoFocus:!l,onChange:D=>n(f.id,f.operator,D.target.value)})})()}):(0,bt.jsx)("input",{className:"nb-filter-value-input",type:f.columnType==="number"?"number":f.columnType==="date"?"date":"text",placeholder:f.columnType==="number"?u("filter_number_placeholder"):f.columnType==="date"?"":u("filter_value_placeholder"),value:f.value,autoFocus:!l,onChange:_=>n(f.id,f.operator,_.target.value)}))]}),activeDocument.body)]})}var ee=De(vt(),1);function iN({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,rt.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let h=c.clientX-i.x,v=c.clientY-i.y,b=_=>l({x:_.clientX-h,y:_.clientY-v}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,h)=>{let v=[...e],b=c+h;b<0||b>=v.length||([v[c],v[b]]=[v[b],v[c]],n(v))};return(0,Eb.createPortal)((0,ee.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,ee.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,ee.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,ee.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,ee.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,h)=>{let v=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,ee.jsxs)("div",{className:"nb-sort-row",children:[(0,ee.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,ee.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,-1),disabled:h===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,ee.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,1),disabled:h===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,ee.jsx)("span",{className:"nb-sort-row-name",children:v}),(0,ee.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,ee.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,ee.jsx)("div",{className:"nb-sort-add-row",children:(0,ee.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,ee.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,ee.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}var lN=rt.default.memo(function({row:t,depth:n,hasChildren:o,isExpanded:r,isHierarchical:a,visibleCols:i,dbFolderPath:l,includeSubfolders:s,onOpen:d,onToggleExpand:p,isMobile:g,onLongPress:m,onContextMenu:c,longPressRef:h,cardStyle:v}){let b=t._file.parent?.path??"",f=s&&b.length>l.length?b.slice(l.length+1):"";return(0,ee.jsxs)("div",{className:"nb-list-row",style:{...a?{paddingLeft:`${n*20+12}px`}:{},...v},onClick:()=>d(t._file),onContextMenu:g?void 0:_=>{_.preventDefault(),c(t._file)},onTouchStart:g?()=>{h.current=window.setTimeout(()=>m(t._file),500)}:void 0,onTouchMove:g?()=>{h.current&&(window.clearTimeout(h.current),h.current=null)}:void 0,onTouchEnd:g?()=>{h.current&&(window.clearTimeout(h.current),h.current=null)}:void 0,children:[o&&(0,ee.jsx)("button",{className:"nb-hierarchy-toggle",onClick:_=>{_.stopPropagation(),p(t._file.path)},children:r?"\u25BC":"\u25B6"}),(0,ee.jsx)("span",{className:"nb-list-row-icon",children:"\u{1F4C4}"}),(0,ee.jsx)("span",{className:"nb-list-row-title",children:t._title}),f?(0,ee.jsx)("span",{className:"nb-folder-path",style:{marginLeft:4},children:f}):null,i.length>0&&(0,ee.jsx)("div",{className:"nb-list-row-props",children:i.map(_=>{let w=t[_.id];if(w==null||mt(w).trim()==="")return null;let S=Array.isArray(w)?w.join(", "):mt(w);return(0,ee.jsxs)("span",{className:"nb-list-prop",children:[(0,ee.jsxs)("span",{className:"nb-list-prop-name",children:[_.name,":"]}),(0,ee.jsx)("span",{className:"nb-list-prop-value",children:S})]},_.id)})})]})});function Db({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,rt.useState)(n),[m,c]=(0,rt.useState)(!1),[h,v]=(0,rt.useState)(!1),[b,f]=(0,rt.useState)(!1),[_,w]=(0,rt.useState)(null),[S,D]=(0,rt.useState)(!1),T=(0,rt.useRef)(null),V=(0,rt.useRef)(null),j=(0,rt.useRef)(null),le=(0,rt.useRef)(null),re=(0,rt.useRef)(null),_e=(0,rt.useRef)(null);(0,rt.useEffect)(()=>{g(n)},[n.id]);let ye=(0,rt.useCallback)(async I=>{g(I),await o(I)},[o]);(0,rt.useEffect)(()=>{if(!m)return;let I=te=>{re.current?.contains(te.target)||T.current&&!T.current.contains(te.target)&&c(!1)};return activeDocument.addEventListener("mousedown",I),()=>activeDocument.removeEventListener("mousedown",I)},[m]),(0,rt.useEffect)(()=>{if(!S)return;let I=te=>{_e.current&&!_e.current.contains(te.target)&&D(!1)};return activeDocument.addEventListener("mousedown",I),()=>activeDocument.removeEventListener("mousedown",I)},[S]),(0,rt.useEffect)(()=>{if(!h)return;let I=te=>{re.current?.contains(te.target)||V.current&&!V.current.contains(te.target)&&v(!1)};return activeDocument.addEventListener("mousedown",I),()=>activeDocument.removeEventListener("mousedown",I)},[h]),(0,rt.useEffect)(()=>{if(!b)return;let I=te=>{re.current?.contains(te.target)||le.current?.contains(te.target)||j.current&&!j.current.contains(te.target)&&f(!1)};return activeDocument.addEventListener("mousedown",I),()=>activeDocument.removeEventListener("mousedown",I)},[b]);let Ce=(0,rt.useCallback)(async I=>{let te=I.map(Pe=>({id:Pe.id,columnId:Pe.columnId,operator:Pe.operator,value:Pe.value,conjunction:Pe.conjunction}));await ye({...p,activePills:te})},[ye,p]),Oe=(I,te,Pe,Te)=>{let xt=[...s,{id:crypto.randomUUID(),columnId:I,columnName:te,columnType:Te,icon:Pe,operator:Fn(Te),value:"",conjunction:"and"}];d(xt),Ce(xt),c(!1)},q=I=>{let te=s.filter(Pe=>Pe.id!==I);d(te),Ce(te)},W=(I,te,Pe)=>{let Te=s.map(xt=>xt.id===I?{...xt,operator:te,value:Pe}:xt);d(Te),Ce(Te)},O=I=>{let te=s.map(Pe=>Pe.id===I?{...Pe,conjunction:Pe.conjunction==="and"?"or":"and"}:Pe);d(te),Ce(te)},ne=(0,rt.useCallback)(async I=>{let te=p.hiddenColumns.includes(I)?p.hiddenColumns.filter(Pe=>Pe!==I):[...p.hiddenColumns,I];await ye({...p,hiddenColumns:te})},[p,ye]),fe=(0,rt.useCallback)(async I=>{await ye({...p,sorts:I})},[p,ye]),Ne=async()=>{e&&await t.createNoteWithTemplate(e)},[Be,$e]=(0,rt.useState)(new Set),[je]=(0,rt.useState)(!0),nt=(0,rt.useMemo)(()=>ac(i.schema,e?.path??""),[i.schema,e?.path]),ve=(0,rt.useCallback)(I=>{$e(te=>{let Pe=new Set(te);return Pe.has(I)?Pe.delete(I):Pe.add(I),Pe})},[]),Me=Vn(s,200),ze=(0,rt.useMemo)(()=>On(a,Me),[a,Me]),He=(0,rt.useMemo)(()=>Zn(ze,p.sorts),[ze,p.sorts]),Ue=(0,rt.useMemo)(()=>nt?ic(He,nt.id,p.sorts,Be,je):null,[He,nt,p.sorts,Be,je]),{pageItems:Fe,currentPage:ot,totalPages:Y,setPage:E}=xi(He,nt?0:t.pageSize),oe=(0,rt.useMemo)(()=>i.schema.filter(I=>I.visible&&!p.hiddenColumns.includes(I.id)),[i.schema,p.hiddenColumns]),ge=wn(),ue=e?.parent?.path??"",Ve=(0,rt.useCallback)(I=>{r.workspace.getLeaf().openFile(I)},[r]),[be,xe]=(0,rt.useState)(null),ft=(0,rt.useRef)(null),kt=(0,rt.useCallback)(I=>{xe(I)},[]),St=(0,rt.useCallback)(I=>{xe(I)},[]);if(!e)return(0,ee.jsx)("div",{className:"nb-empty-state",children:(0,ee.jsx)("p",{children:u("no_database_open")})});if(l)return(0,ee.jsx)("div",{className:"nb-loading",children:u("loading")});let L=I=>{I!=="fields"&&v(!1),I!=="filter"&&c(!1),I!=="sort"&&f(!1)},Se=ge?(0,ee.jsxs)(jn,{actionBarRef:re,actions:[{id:"fields",label:u("fields"),icon:(0,ee.jsx)(Cn,{}),active:h,onClick:()=>{L("fields"),v(I=>!I)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,ee.jsx)(Hn,{}),active:!!p.includeSubfolders,onClick:()=>{L(),ye({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,ee.jsx)(po,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{L("sort"),!b&&le.current&&w(le.current.getBoundingClientRect()),f(I=>!I)}},{id:"filter",label:u("filter"),icon:(0,ee.jsx)(Bn,{}),active:m,badge:s.length||void 0,onClick:()=>{L("filter"),c(I=>!I)}}],rowCount:He.length,rowCountLabel:He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:s,onFilterUpdate:W,onFilterRemove:q,onConjunctionToggle:O,children:[(0,ee.jsx)(st,{open:h,onClose:()=>v(!1),title:u("fields"),children:i.schema.map(I=>(0,ee.jsxs)("label",{className:"nb-field-row",children:[(0,ee.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:I.visible&&!p.hiddenColumns.includes(I.id),onChange:()=>{ne(I.id)}}),(0,ee.jsx)("span",{className:"nb-field-icon",children:Je(I.type)}),(0,ee.jsx)("span",{className:"nb-field-name",children:I.name})]},I.id))}),(0,ee.jsxs)(st,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,ee.jsx)("span",{children:u("name_column")})]}),i.schema.map(I=>(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe(I.id,I.name,Je(I.type),I.type),children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:Je(I.type)}),(0,ee.jsx)("span",{children:I.name})]},I.id))]}),(0,ee.jsxs)(st,{open:b,onClose:()=>f(!1),title:u("sort"),children:[p.sorts.length===0&&(0,ee.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((I,te)=>{let Pe=I.columnId==="_title"?"Nome":i.schema.find(Te=>Te.id===I.columnId)?.name??I.columnId;return(0,ee.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,ee.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,ee.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let Te=[...p.sorts];te>0&&([Te[te],Te[te-1]]=[Te[te-1],Te[te]],fe(Te))},disabled:te===0,children:"\u2191"}),(0,ee.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let Te=[...p.sorts];te{fe(p.sorts.map(Te=>Te.columnId===I.columnId?{...Te,direction:Te.direction==="asc"?"desc":"asc"}:Te))},children:I.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,ee.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{fe(p.sorts.filter(Te=>Te.columnId!==I.columnId))},children:"\xD7"})]},I.columnId)}),(()=>{let I=i.schema.filter(Te=>Te.type!=="formula"&&Te.type!=="lookup"&&Te.type!=="relation"&&Te.type!=="multiselect"),te=new Set(p.sorts.map(Te=>Te.columnId)),Pe=[...te.has("_title")?[]:[{id:"_title",name:"Nome"}],...I.filter(Te=>!te.has(Te.id)).map(Te=>({id:Te.id,name:Te.name}))];return Pe.length===0?null:(0,ee.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:Te=>{Te.target.value&&(fe([...p.sorts,{columnId:Te.target.value,direction:"asc"}]),Te.target.value="")},children:[(0,ee.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),Pe.map(Te=>(0,ee.jsx)("option",{value:Te.id,children:Te.name},Te.id))]})})()]})]}):(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:"nb-toolbar",children:[(0,ee.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:V,children:[(0,ee.jsx)("button",{className:`nb-toolbar-btn ${h?"nb-toolbar-btn--active":""}`,onClick:()=>v(I=>!I),children:u("fields")}),h&&(0,ee.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,ee.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),i.schema.map(I=>(0,ee.jsxs)("label",{className:"nb-field-row",children:[(0,ee.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:I.visible&&!p.hiddenColumns.includes(I.id),onChange:()=>{ne(I.id)}}),(0,ee.jsx)("span",{className:"nb-field-icon",children:Je(I.type)}),(0,ee.jsx)("span",{className:"nb-field-name",children:I.name})]},I.id))]})]}),(0,ee.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ye({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,ee.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,ee.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,ee.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,ee.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,ee.jsxs)("span",{className:"nb-row-count",children:[He.length," ",He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,ee.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:T,style:{marginLeft:"auto"},children:[(0,ee.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${m?"nb-toolbar-btn--active":""}`,onClick:()=>c(I=>!I),title:u("filters"),children:[(0,ee.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,ee.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,ee.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,ee.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,ee.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,ee.jsx)("span",{children:u("name_column")})]}),i.schema.map(I=>(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>Oe(I.id,I.name,Je(I.type),I.type),children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:Je(I.type)}),(0,ee.jsx)("span",{children:I.name})]},I.id))]})]}),(0,ee.jsxs)("button",{ref:le,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!b&&le.current&&w(le.current.getBoundingClientRect()),f(I=>!I)},children:[(0,ee.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,ee.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),b&&_&&(0,ee.jsx)(iN,{sorts:p.sorts,schema:i.schema,onSortChange:I=>{fe(I)},onClose:()=>f(!1),anchorRect:_,panelRef:j}),(0,ee.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:_e,children:[(0,ee.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(p.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>D(I=>!I),title:u("conditional_formatting"),children:[(0,ee.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,ee.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,ee.jsx)("path",{d:"M3 9h18"}),(0,ee.jsx)("path",{d:"M3 15h18"}),(0,ee.jsx)("path",{d:"M9 3v18"})]}),(p.conditionalFormats?.length??0)>0&&(0,ee.jsx)("span",{className:"nb-hidden-badge",children:p.conditionalFormats.length})]}),S&&(0,ee.jsx)(Ir,{rules:p.conditionalFormats??[],schema:i.schema,onChange:I=>{ye({...p,conditionalFormats:I})},onClose:()=>D(!1)})]})]}),(0,ee.jsx)(mo,{activeFilters:s,schema:i.schema,onUpdate:W,onRemove:q,onToggleConjunction:O,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{ye({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return(0,ee.jsxs)("div",{className:"nb-container",children:[Se,(0,ee.jsxs)("div",{className:"nb-list",children:[(Ue??Fe.map(I=>({row:I,depth:0,hasChildren:!1,parentTitle:null}))).map(({row:I,depth:te,hasChildren:Pe})=>{let Te=je?!Be.has(I._file.path):Be.has(I._file.path);return(0,ee.jsx)(lN,{row:I,depth:te,hasChildren:Pe,isExpanded:Te,isHierarchical:Ue!==null,visibleCols:oe,dbFolderPath:ue,includeSubfolders:p.includeSubfolders??!1,onOpen:Ve,onToggleExpand:ve,isMobile:ge,onLongPress:kt,onContextMenu:St,longPressRef:ft,cardStyle:p.conditionalFormats?.length?fi(I,p.conditionalFormats,i.schema):void 0},I._file.path)}),(0,ee.jsx)("button",{className:"nb-add-row nb-list-add-row",onClick:()=>{Ne()},children:"+ "+u("add_entry")})]}),(0,ee.jsx)(Ni,{currentPage:ot,totalPages:Y,onPageChange:E}),(0,ee.jsxs)(st,{open:be!==null,onClose:()=>xe(null),title:be?.basename??"",children:[(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>{be&&r.workspace.getLeaf().openFile(be),xe(null)},children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,ee.jsx)("span",{children:u("open_note")})]}),(0,ee.jsxs)("button",{className:"nb-menu-item",onClick:()=>{be&&t.duplicateNotes([be]),xe(null)},children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,ee.jsx)("span",{children:u("duplicate_note")})]}),(0,ee.jsx)("div",{className:"nb-menu-separator"}),(0,ee.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{be&&t.deleteNotes([be]),xe(null)},children:[(0,ee.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,ee.jsx)("span",{children:u("delete_note")})]})]})]})}var Ge=De(wt(),1);var K=De(vt(),1),Ri="nb-card",sc="nb-column",sN=60,uN=30;function cN({children:e}){let t=(0,Ge.useRef)(null),[n,o]=(0,Ge.useState)(!1),r=(0,Ge.useRef)(sN);return(0,Ge.useEffect)(()=>{let a=t.current;if(!a)return;let i=new IntersectionObserver(([l])=>{l.isIntersecting&&(o(!0),i.disconnect())},{rootMargin:"200px 0px"});return i.observe(a),()=>i.disconnect()},[]),(0,Ge.useEffect)(()=>{n&&t.current&&(r.current=t.current.offsetHeight)},[n]),n?(0,K.jsx)("div",{ref:t,children:e}):(0,K.jsx)("div",{ref:t,style:{minHeight:r.current}})}var dN=Ge.default.memo(function({row:t,isMobile:n,visibleCols:o,dbFolderPath:r,includeSubfolders:a,onOpen:i,onDragStart:l,onTouchStart:s,onContextMenu:d,cardStyle:p}){let g=t._file.parent?.path??"",m=a&&g.length>r.length?g.slice(r.length+1):"";return(0,K.jsxs)("div",{className:"nb-board-card",style:p,draggable:!n,onDragStart:n?void 0:c=>{c.stopPropagation(),l?.(c,t._file.path)},onTouchStart:n?c=>s?.(c,t._file):void 0,onContextMenu:n?void 0:c=>{c.preventDefault(),d?.(c,t._file)},onClick:()=>i(t._file),children:[(0,K.jsx)("div",{className:"nb-board-card-title",children:t._title}),m?(0,K.jsx)("div",{className:"nb-folder-path",children:m}):null,o.length>0&&(0,K.jsx)("div",{className:"nb-board-card-props",children:o.map(c=>{let h=t[c.id];if(h==null||mt(h).trim()==="")return null;let v=Array.isArray(h)?h.join(", "):mt(h);return(0,K.jsxs)("span",{className:"nb-board-card-prop",children:[(0,K.jsxs)("span",{className:"nb-board-card-prop-name",children:[c.name,":"]}),(0,K.jsx)("span",{className:"nb-board-card-prop-value",children:v})]},c.id)})})]})});function Fb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{status:a,trackSave:i}=$r(),{rows:l,config:s,loading:d,activeFilters:p,setActiveFilters:g}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[m,c]=(0,Ge.useState)(n),h=m.boardHideEmpty??!1,v=m.boardHideNoValue??!1,[b,f]=(0,Ge.useState)(null),[_,w]=(0,Ge.useState)(new Set),[S,D]=(0,Ge.useState)(!1),[T,V]=(0,Ge.useState)(!1),[j,le]=(0,Ge.useState)(!1),[re,_e]=(0,Ge.useState)(!1),[ye,Ce]=(0,Ge.useState)(null),[Oe,q]=(0,Ge.useState)(null),[W,O]=(0,Ge.useState)(null),ne=(0,Ge.useRef)(null),fe=(0,Ge.useRef)(null),Ne=(0,Ge.useRef)(null),Be=(0,Ge.useRef)(null),$e=(0,Ge.useRef)(null);(0,Ge.useEffect)(()=>{c(n)},[n.id]);let je=(0,Ge.useCallback)(async M=>{c(M),await o(M)},[o]);(0,Ge.useEffect)(()=>{if(!S)return;let M=N=>{$e.current?.contains(N.target)||ne.current&&!ne.current.contains(N.target)&&D(!1)};return activeDocument.addEventListener("mousedown",M),()=>activeDocument.removeEventListener("mousedown",M)},[S]),(0,Ge.useEffect)(()=>{if(!T)return;let M=N=>{$e.current?.contains(N.target)||fe.current&&!fe.current.contains(N.target)&&V(!1)};return activeDocument.addEventListener("mousedown",M),()=>activeDocument.removeEventListener("mousedown",M)},[T]),(0,Ge.useEffect)(()=>{if(!j)return;let M=N=>{$e.current?.contains(N.target)||Ne.current&&!Ne.current.contains(N.target)&&le(!1)};return activeDocument.addEventListener("mousedown",M),()=>activeDocument.removeEventListener("mousedown",M)},[j]),(0,Ge.useEffect)(()=>{if(!re)return;let M=N=>{Be.current&&!Be.current.contains(N.target)&&_e(!1)};return activeDocument.addEventListener("mousedown",M),()=>activeDocument.removeEventListener("mousedown",M)},[re]);let nt=(0,Ge.useMemo)(()=>s.schema.filter(M=>M.type==="select"||M.type==="status"),[s.schema]),ve=(0,Ge.useMemo)(()=>s.schema.find(M=>M.id===m.groupByColumnId)??nt[0]??null,[s.schema,m.groupByColumnId,nt]),Me=Vn(p,200),ze=(0,Ge.useMemo)(()=>On(l,Me),[l,Me]),He=(0,Ge.useMemo)(()=>Zn(ze,m.sorts),[ze,m.sorts]),Ue=(0,Ge.useMemo)(()=>s.schema.filter(M=>M.id!==ve?.id&&M.type!=="title"&&M.visible&&!m.hiddenColumns.includes(M.id)),[s.schema,m.hiddenColumns,ve]),Fe=[{value:u("status_not_started"),color:"#9E9E9E"},{value:u("status_in_progress"),color:"#2196F3"},{value:u("status_done"),color:"#4CAF50"},{value:u("status_cancelled"),color:"#F44336"}],ot=(0,Ge.useMemo)(()=>{if(!ve)return[];let N=[...(ve.type==="status"&&!ve.options?.length?Fe:ve.options??[]).map(ae=>({value:ae.value,label:ae.value,color:ae.color,rows:He.filter(de=>de[ve.id]===ae.value)})),{value:"",label:u("no_value"),color:void 0,rows:He.filter(ae=>{let de=ae[ve.id];return de==null||mt(de).trim()===""})}],Z=m.boardColumnOrder,J=N;if(Z&&Z.length>0){let ae=Z.flatMap(x=>{let ce=N.find(ke=>ke.value===x);return ce?[ce]:[]}),de=N.filter(x=>!Z.includes(x.value));J=[...ae,...de]}let X=h?J.filter(ae=>ae.rows.length>0):J;return v&&(X=X.filter(ae=>ae.value!=="")),X},[ve,He,h,v,m.boardColumnOrder]),Y=(0,Ge.useCallback)(async(M,N)=>{if(!e||!ve)return;let Z=r.vault.getFileByPath(M);Z&&await i(r.fileManager.processFrontMatter(Z,J=>{N===""?delete J[ve.id]:J[ve.id]=N}))},[r,e,ve,i]),E=(0,Ge.useCallback)(async(M,N)=>{if(M===N)return;let Z=ot.map(de=>de.value),J=Z.indexOf(M),X=Z.indexOf(N);if(J===-1||X===-1)return;let ae=[...Z];ae.splice(J,1),ae.splice(X,0,M),await je({...m,boardColumnOrder:ae})},[ot,m,je]),oe=(0,Ge.useRef)(null),ge=(0,Ge.useRef)(Y);ge.current=Y;let ue=(0,Ge.useRef)(E);ue.current=E;let Ve=(M,N,Z)=>{let J=M.cloneNode(!0),X=M.getBoundingClientRect();return J.style.cssText=`position:fixed;z-index:9999;pointer-events:none;opacity:0.85;width:${X.width}px;transform:rotate(2deg);box-shadow:0 8px 24px rgba(0,0,0,0.2);`,J.style.left=`${N-X.width/2}px`,J.style.top=`${Z-20}px`,activeDocument.body.appendChild(J),J},be=(0,Ge.useCallback)((M,N)=>{let Z=M.touches[0],J=M.currentTarget,X=!1,ae=null,de=null,x=null,ce=!1,ke=window.setTimeout(()=>{ce=!0,Ke(),O(N)},500),Re=qe=>{let Ee=oe.current;if(!Ee)return;let _t=Ee.getBoundingClientRect(),Rt=50,yt=8,Jt=qe-_t.left{Ee.scrollLeft+=Et*yt},16)},Ae=()=>{x&&(window.clearInterval(x),x=null)},Ke=()=>{J.removeEventListener("touchmove",Ie),J.removeEventListener("touchend",U),J.removeEventListener("touchcancel",U)},Ie=qe=>{let Ee=qe.touches[0];if(!X&&Math.abs(Ee.clientX-Z.clientX)<12&&Math.abs(Ee.clientY-Z.clientY)<12)return;window.clearTimeout(ke),qe.preventDefault(),qe.stopPropagation(),X||(X=!0,J.classList.add("nb-touch-drag-source"),oe.current?.classList.add("nb-board--dragging"),de=Ve(J,Ee.clientX,Ee.clientY)),de&&(de.style.left=`${Ee.clientX-de.offsetWidth/2}px`,de.style.top=`${Ee.clientY-20}px`),J.classList.add("nb-touch-drag-hidden");let _t=activeDocument.elementFromPoint(Ee.clientX,Ee.clientY);J.classList.remove("nb-touch-drag-hidden"),J.classList.add("nb-touch-drag-source"),ae=_t?.closest(".nb-board-column")?.dataset.colKey??null,Ce(ae),Re(Ee.clientX)},U=()=>{window.clearTimeout(ke),Ae(),oe.current?.classList.remove("nb-board--dragging"),J.classList.remove("nb-touch-drag-source","nb-touch-drag-hidden"),de?.remove(),!ce&&X&&ae!==null&&ge.current(N.path,ae),Ce(null),Ke()};J.addEventListener("touchmove",Ie,{passive:!1}),J.addEventListener("touchend",U),J.addEventListener("touchcancel",U)},[]),xe=(0,Ge.useCallback)((M,N)=>{let Z=M.touches[0],J=M.currentTarget.closest(".nb-board-column");if(!J)return;let X=!1,ae=null,de=null,x=null,ce=Ke=>{let Ie=oe.current;if(!Ie)return;let U=Ie.getBoundingClientRect(),qe=50,Ee=8,_t=Ke-U.left{Ie.scrollLeft+=yt*Ee},16)},ke=()=>{x&&(window.clearInterval(x),x=null)},Re=Ke=>{let Ie=Ke.touches[0];if(!X&&Math.abs(Ie.clientX-Z.clientX)<12&&Math.abs(Ie.clientY-Z.clientY)<12)return;Ke.preventDefault(),Ke.stopPropagation(),X||(X=!0,J.classList.add("nb-touch-drag-source"),oe.current?.classList.add("nb-board--dragging"),de=Ve(J,Ie.clientX,Ie.clientY)),de&&(de.style.left=`${Ie.clientX-de.offsetWidth/2}px`,de.style.top=`${Ie.clientY-20}px`),J.classList.add("nb-touch-drag-hidden");let U=activeDocument.elementFromPoint(Ie.clientX,Ie.clientY);J.classList.remove("nb-touch-drag-hidden"),J.classList.add("nb-touch-drag-source"),ae=U?.closest(".nb-board-column")?.dataset.colKey??null,q(ae),ce(Ie.clientX)},Ae=()=>{ke(),oe.current?.classList.remove("nb-board--dragging"),J.classList.remove("nb-touch-drag-source","nb-touch-drag-hidden"),de?.remove(),X&&ae!==null&&ue.current(N,ae),q(null),J.removeEventListener("touchmove",Re),J.removeEventListener("touchend",Ae),J.removeEventListener("touchcancel",Ae)};J.addEventListener("touchmove",Re,{passive:!1}),J.addEventListener("touchend",Ae),J.addEventListener("touchcancel",Ae)},[]),ft=(0,Ge.useCallback)(async M=>{if(!e||!ve)return;let N=await t.createNoteWithTemplate(e);M!==""&&await i(r.fileManager.processFrontMatter(N,Z=>{Z[ve.id]=M}))},[r,e,t,ve,i]),kt=(0,Ge.useCallback)(async M=>{let N=M.map(Z=>({id:Z.id,columnId:Z.columnId,operator:Z.operator,value:Z.value,conjunction:Z.conjunction}));await je({...m,activePills:N})},[je,m]),St=(M,N,Z,J)=>{let X=[...p,{id:crypto.randomUUID(),columnId:M,columnName:N,columnType:J,icon:Z,operator:Fn(J),value:"",conjunction:"and"}];g(X),kt(X),le(!1)},L=M=>{let N=p.filter(Z=>Z.id!==M);g(N),kt(N)},Se=(M,N,Z)=>{let J=p.map(X=>X.id===M?{...X,operator:N,value:Z}:X);g(J),kt(J)},I=M=>{let N=p.map(Z=>Z.id===M?{...Z,conjunction:Z.conjunction==="and"?"or":"and"}:Z);g(N),kt(N)},te=(0,Ge.useCallback)(async M=>{let N=m.hiddenColumns.includes(M)?m.hiddenColumns.filter(Z=>Z!==M):[...m.hiddenColumns,M];await je({...m,hiddenColumns:N})},[m,je]),Pe=wn(),Te=e?.parent?.path??"",xt=(0,Ge.useCallback)(M=>{r.workspace.getLeaf().openFile(M)},[r]),ln=(0,Ge.useCallback)((M,N)=>{M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("nb-drag-type",Ri),M.dataTransfer.setData("nb-row-path",N),M.dataTransfer.setData(Ri,"")},[]),ct=(0,Ge.useCallback)((M,N)=>{O(N)},[]);if(!e)return(0,K.jsx)("div",{className:"nb-empty-state",children:(0,K.jsx)("p",{children:u("no_database_open")})});if(d)return(0,K.jsx)("div",{className:"nb-loading",children:u("loading")});if(nt.length===0)return(0,K.jsxs)("div",{className:"nb-empty-state",children:[(0,K.jsx)("p",{children:u("board_no_select_col")}),(0,K.jsx)("p",{children:u("board_add_select_hint")})]});let qt=M=>{M!=="fields"&&D(!1),M!=="groupby"&&V(!1),M!=="filter"&&le(!1)},Zt=Pe?(0,K.jsxs)(jn,{actionBarRef:$e,actions:[{id:"fields",label:u("fields"),icon:(0,K.jsx)(Cn,{}),active:S,onClick:()=>{qt("fields"),D(M=>!M)}},{id:"groupby",label:u("group_by"),icon:(0,K.jsx)(po,{}),active:T,onClick:()=>{qt("groupby"),V(M=>!M)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,K.jsx)(Hn,{}),active:!!m.includeSubfolders,onClick:()=>{qt(),je({...m,includeSubfolders:!m.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,K.jsx)(Bn,{}),active:j,badge:p.length||void 0,onClick:()=>{qt("filter"),le(M=>!M)}}],rowCount:ze.length,rowCountLabel:ze.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:p,onFilterUpdate:Se,onFilterRemove:L,onConjunctionToggle:I,children:[(0,K.jsx)(st,{open:S,onClose:()=>D(!1),title:u("fields_in_card"),children:s.schema.filter(M=>M.id!==ve?.id&&M.type!=="title").map(M=>(0,K.jsxs)("label",{className:"nb-field-row",children:[(0,K.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:M.visible&&!m.hiddenColumns.includes(M.id),onChange:()=>{te(M.id)}}),(0,K.jsx)("span",{className:"nb-field-icon",children:Je(M.type)}),(0,K.jsx)("span",{className:"nb-field-name",children:M.name})]},M.id))}),(0,K.jsx)(st,{open:T,onClose:()=>V(!1),title:u("group_by"),children:nt.map(M=>(0,K.jsxs)("button",{className:`nb-menu-item${m.groupByColumnId===M.id?" nb-menu-item--active":""}`,onClick:()=>{je({...m,groupByColumnId:M.id}),V(!1)},children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:Je(M.type)}),(0,K.jsx)("span",{children:M.name})]},M.id))}),(0,K.jsxs)(st,{open:j,onClose:()=>le(!1),title:u("filter"),children:[(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>St("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,K.jsx)("span",{children:u("name_column")})]}),s.schema.map(M=>(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>St(M.id,M.name,Je(M.type),M.type),children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:Je(M.type)}),(0,K.jsx)("span",{children:M.name})]},M.id))]}),(0,K.jsxs)("div",{className:"nb-mobile-toggles-row",children:[(0,K.jsxs)("label",{className:"nb-mobile-toggle",children:[(0,K.jsx)("input",{type:"checkbox",checked:h,onChange:M=>{je({...m,boardHideEmpty:M.target.checked})}}),(0,K.jsx)("span",{children:u("hide_empty_cols")})]}),(0,K.jsxs)("label",{className:"nb-mobile-toggle",children:[(0,K.jsx)("input",{type:"checkbox",checked:v,onChange:M=>{je({...m,boardHideNoValue:M.target.checked})}}),(0,K.jsx)("span",{children:u("hide_no_value_cols")})]})]})]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{className:"nb-toolbar",children:[(0,K.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ne,children:[(0,K.jsx)("button",{className:`nb-toolbar-btn${S?" nb-toolbar-btn--active":""}`,onClick:()=>D(M=>!M),children:u("fields")}),S&&(0,K.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,K.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_in_card")}),s.schema.filter(M=>M.id!==ve?.id&&M.type!=="title").map(M=>(0,K.jsxs)("label",{className:"nb-field-row",children:[(0,K.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:M.visible&&!m.hiddenColumns.includes(M.id),onChange:()=>{te(M.id)}}),(0,K.jsx)("span",{className:"nb-field-icon",children:Je(M.type)}),(0,K.jsx)("span",{className:"nb-field-name",children:M.name})]},M.id))]})]}),(0,K.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:fe,children:[(0,K.jsxs)("button",{className:`nb-toolbar-btn${T?" nb-toolbar-btn--active":""}`,onClick:()=>V(M=>!M),children:[u("group_by"),": ",(0,K.jsx)("strong",{children:ve?.name??"\u2014"})]}),T&&(0,K.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,K.jsx)("div",{className:"nb-fields-dropdown-label",children:u("group_by_label")}),nt.map(M=>(0,K.jsxs)("button",{className:`nb-menu-item${m.groupByColumnId===M.id?" nb-menu-item--active":""}`,onClick:()=>{je({...m,groupByColumnId:M.id}),V(!1)},children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:Je(M.type)}),(0,K.jsx)("span",{children:M.name})]},M.id))]})]}),(0,K.jsxs)("label",{className:"nb-toolbar-btn nb-toolbar-toggle",children:[(0,K.jsx)("input",{type:"checkbox",checked:h,onChange:M=>{je({...m,boardHideEmpty:M.target.checked})}}),u("hide_empty_cols")]}),(0,K.jsxs)("label",{className:"nb-toolbar-btn nb-toolbar-toggle",children:[(0,K.jsx)("input",{type:"checkbox",checked:v,onChange:M=>{je({...m,boardHideNoValue:M.target.checked})}}),u("hide_no_value_cols")]}),(0,K.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${m.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{je({...m,includeSubfolders:!m.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,K.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,K.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,K.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,K.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,K.jsxs)("span",{className:"nb-row-count",children:[ze.length," ",ze.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,K.jsx)(Ar,{status:a}),(0,K.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Ne,style:{marginLeft:"auto"},children:[(0,K.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${j?" nb-toolbar-btn--active":""}`,onClick:()=>le(M=>!M),title:u("filters"),children:[(0,K.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,K.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),p.length>0&&(0,K.jsx)("span",{className:"nb-hidden-badge",children:p.length})]}),j&&(0,K.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,K.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>St("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,K.jsx)("span",{children:u("name_column")})]}),s.schema.map(M=>(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>St(M.id,M.name,Je(M.type),M.type),children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:Je(M.type)}),(0,K.jsx)("span",{children:M.name})]},M.id))]})]}),(0,K.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,K.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(m.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>_e(M=>!M),title:u("conditional_formatting"),children:[(0,K.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,K.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,K.jsx)("path",{d:"M3 9h18"}),(0,K.jsx)("path",{d:"M3 15h18"}),(0,K.jsx)("path",{d:"M9 3v18"})]}),(m.conditionalFormats?.length??0)>0&&(0,K.jsx)("span",{className:"nb-hidden-badge",children:m.conditionalFormats.length})]}),re&&(0,K.jsx)(Ir,{rules:m.conditionalFormats??[],schema:s.schema,onChange:M=>{je({...m,conditionalFormats:M})},onClose:()=>_e(!1)})]})]}),(0,K.jsx)(mo,{activeFilters:p,schema:s.schema,onUpdate:Se,onRemove:L,onToggleConjunction:I,collapsed:!!m.filtersCollapsed,onToggleCollapsed:()=>{je({...m,filtersCollapsed:!m.filtersCollapsed})}})]});return(0,K.jsxs)("div",{className:"nb-container",children:[Zt,(0,K.jsx)("div",{className:"nb-board",ref:oe,children:ot.map(M=>{let N=M.value||"__no_value__";return(0,K.jsxs)("div",{"data-col-key":N,className:`nb-board-column${ye===N?" nb-board-column--card-over":""}${Oe===N?" nb-board-column--col-over":""}${(()=>{let X=m.boardColumnLimits?.[M.value];return X&&X>0&&M.rows.length>=X?" nb-board-column--over-limit":""})()}`,onDragOver:X=>{X.preventDefault(),(X.dataTransfer.types.includes(Ri)?Ri:sc)===Ri?Ce(N):q(N)},onDragLeave:X=>{let ae=X.relatedTarget;X.currentTarget.contains(ae)||(Ce(null),q(null))},onDrop:async X=>{X.preventDefault(),Ce(null),q(null);let ae=X.dataTransfer.getData("nb-drag-type");if(ae===Ri){let de=X.dataTransfer.getData("nb-row-path");de&&await Y(de,M.value)}else if(ae===sc){let de=X.dataTransfer.getData("nb-col-value");de!==void 0&&await E(de,M.value)}},children:[(0,K.jsxs)("div",{className:"nb-board-column-header",draggable:!Pe,onDragStart:Pe?void 0:X=>{X.stopPropagation(),X.dataTransfer.effectAllowed="move",X.dataTransfer.setData("nb-drag-type",sc),X.dataTransfer.setData("nb-col-value",M.value),X.dataTransfer.setData(sc,"")},onDragEnd:Pe?void 0:()=>q(null),title:u("board_drag_reorder"),children:[(0,K.jsx)("span",{className:"nb-board-column-drag-handle",onTouchStart:Pe?X=>xe(X,M.value):void 0,children:"\u283F"}),M.color?(0,K.jsx)("span",{className:"nb-board-column-badge",style:{background:M.color},children:M.label}):(0,K.jsx)("span",{className:"nb-board-column-name",children:M.label}),(()=>{let X=m.boardColumnLimits?.[M.value],ae=M.rows.length,de=X!==void 0&&X>0&&ae>=X;return(0,K.jsx)("span",{className:`nb-board-column-count ${de?"nb-board-column-count--over":""}`,onClick:x=>{x.stopPropagation(),f(b===M.value?null:M.value)},title:u("board_set_limit"),children:X&&X>0?`${ae}/${X}`:ae})})()]}),b===M.value&&(0,K.jsx)("div",{className:"nb-board-limit-input-wrapper",children:(0,K.jsx)("input",{className:"nb-board-limit-input",type:"number",min:"0",placeholder:u("board_limit_placeholder"),defaultValue:m.boardColumnLimits?.[M.value]??"",autoFocus:!0,onKeyDown:X=>{if(X.key==="Enter"||X.key==="Escape"){let ae=parseInt(X.target.value),de={...m.boardColumnLimits};isNaN(ae)||ae<=0?delete de[M.value]:de[M.value]=ae,je({...m,boardColumnLimits:de}),f(null)}},onBlur:X=>{let ae=parseInt(X.target.value),de={...m.boardColumnLimits};isNaN(ae)||ae<=0?delete de[M.value]:de[M.value]=ae,je({...m,boardColumnLimits:de}),f(null)}})}),(0,K.jsx)("div",{className:"nb-board-cards",children:(()=>{let X=m.boardColumnLimits?.[M.value],ae=_.has(M.value),de=X&&X>0&&!ae?M.rows.slice(0,X):M.rows,x=M.rows.length-de.length;return(0,K.jsxs)(K.Fragment,{children:[de.map(ce=>{let ke=de.length>=uN,Re=(0,K.jsx)(dN,{row:ce,isMobile:Pe,visibleCols:Ue,dbFolderPath:Te,includeSubfolders:m.includeSubfolders??!1,onOpen:xt,onDragStart:ln,onTouchStart:be,onContextMenu:ct,cardStyle:m.conditionalFormats?.length?fi(ce,m.conditionalFormats,s.schema):void 0},ce._file.path);return ke?(0,K.jsx)(cN,{children:Re},ce._file.path):(0,K.jsx)(Ge.Fragment,{children:Re},ce._file.path)}),x>0&&(0,K.jsx)("button",{className:"nb-board-show-more",onClick:()=>w(ce=>{let ke=new Set(ce);return ke.add(M.value),ke}),children:`+${x} ${u("board_show_more")}`}),ae&&X&&X>0&&M.rows.length>X&&(0,K.jsx)("button",{className:"nb-board-show-more",onClick:()=>w(ce=>{let ke=new Set(ce);return ke.delete(M.value),ke}),children:u("board_show_less")})]})})()}),(0,K.jsx)("button",{className:"nb-board-add-card",onClick:()=>{ft(M.value)},children:"+ "+u("add_card")})]},N)})}),(0,K.jsxs)(st,{open:W!==null,onClose:()=>O(null),title:W?.basename??"",children:[(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>{W&&r.workspace.getLeaf().openFile(W),O(null)},children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,K.jsx)("span",{children:u("open_note")})]}),(0,K.jsxs)("button",{className:"nb-menu-item",onClick:()=>{W&&t.duplicateNotes([W]),O(null)},children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,K.jsx)("span",{children:u("duplicate_note")})]}),(0,K.jsx)("div",{className:"nb-menu-separator"}),(0,K.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{W&&t.deleteNotes([W]),O(null)},children:[(0,K.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,K.jsx)("span",{children:u("delete_note")})]})]})]})}var it=De(wt(),1),Tb=De(lo(),1);var G=De(vt(),1),Mb=()=>({small:u("size_small"),medium:u("size_medium"),large:u("size_large")}),pN={small:"repeat(auto-fill, minmax(160px, 1fr))",medium:"repeat(auto-fill, minmax(220px, 1fr))",large:"repeat(auto-fill, minmax(300px, 1fr))"};function mN({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,it.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let h=c.clientX-i.x,v=c.clientY-i.y,b=_=>l({x:_.clientX-h,y:_.clientY-v}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,h)=>{let v=[...e],b=c+h;b<0||b>=v.length||([v[c],v[b]]=[v[b],v[c]],n(v))};return(0,Tb.createPortal)((0,G.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,G.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,G.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,G.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,G.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,h)=>{let v=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,G.jsxs)("div",{className:"nb-sort-row",children:[(0,G.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,-1),disabled:h===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,1),disabled:h===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,G.jsx)("span",{className:"nb-sort-row-name",children:v}),(0,G.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,G.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,G.jsx)("div",{className:"nb-sort-add-row",children:(0,G.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,G.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,G.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}var fN=it.default.memo(function({row:t,cardSize:n,coverField:o,visibleCols:r,dbFolderPath:a,includeSubfolders:i,onOpen:l,cardStyle:s}){let d=$t(),p=o?.type==="image"?t[o.id]??null:null,g=p?d.vault.getFileByPath(p):null,m=g?d.vault.getResourcePath(g):null,c=o&&o.type!=="image"?o.type==="title"?t._title:String(t[o.id]??""):null,h=t._file.parent?.path??"",v=i&&h.length>a.length?h.slice(a.length+1):"";return(0,G.jsxs)("div",{className:`nb-gallery-card nb-gallery-card--${n}`,style:s,onClick:()=>l(t._file),children:[m?(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--image",children:(0,G.jsx)("img",{src:m,alt:""})}):c?(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--text",children:(0,G.jsx)("span",{children:c})}):(0,G.jsx)("div",{className:"nb-gallery-cover nb-gallery-cover--empty",children:(0,G.jsx)("span",{className:"nb-gallery-cover-icon",children:"\u{1F4C4}"})}),(0,G.jsxs)("div",{className:"nb-gallery-body",children:[(0,G.jsx)("div",{className:"nb-gallery-title",children:t._title}),v?(0,G.jsx)("div",{className:"nb-folder-path",children:v}):null,r.length>0&&(0,G.jsx)("div",{className:"nb-gallery-props",children:r.map(b=>{let f=t[b.id];if(f==null||mt(f).trim()==="")return null;let _=Array.isArray(f)?f.join(", "):mt(f);return(0,G.jsxs)("span",{className:"nb-gallery-prop",children:[(0,G.jsxs)("span",{className:"nb-gallery-prop-name",children:[b.name,":"]}),(0,G.jsx)("span",{className:"nb-gallery-prop-value",children:_})]},b.id)})})]})]})});function Pb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,it.useState)(n),[m,c]=(0,it.useState)(!1),[h,v]=(0,it.useState)(!1),[b,f]=(0,it.useState)(!1),[_,w]=(0,it.useState)(!1),[S,D]=(0,it.useState)(!1),[T,V]=(0,it.useState)(null),[j,le]=(0,it.useState)(!1),re=(0,it.useRef)(null),_e=(0,it.useRef)(null),ye=(0,it.useRef)(null),Ce=(0,it.useRef)(null),Oe=(0,it.useRef)(null),q=(0,it.useRef)(null),W=(0,it.useRef)(null),O=(0,it.useRef)(null);(0,it.useEffect)(()=>{g(n)},[n.id]);let ne=(0,it.useCallback)(async L=>{g(L),await o(L)},[o]);(0,it.useEffect)(()=>{if(!m)return;let L=Se=>{W.current?.contains(Se.target)||re.current&&!re.current.contains(Se.target)&&c(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[m]),(0,it.useEffect)(()=>{if(!j)return;let L=Se=>{O.current&&!O.current.contains(Se.target)&&le(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[j]),(0,it.useEffect)(()=>{if(!h)return;let L=Se=>{W.current?.contains(Se.target)||_e.current&&!_e.current.contains(Se.target)&&v(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[h]),(0,it.useEffect)(()=>{if(!b)return;let L=Se=>{W.current?.contains(Se.target)||ye.current&&!ye.current.contains(Se.target)&&f(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[b]),(0,it.useEffect)(()=>{if(!_)return;let L=Se=>{W.current?.contains(Se.target)||Ce.current&&!Ce.current.contains(Se.target)&&w(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[_]),(0,it.useEffect)(()=>{if(!S)return;let L=Se=>{W.current?.contains(Se.target)||q.current?.contains(Se.target)||Oe.current&&!Oe.current.contains(Se.target)&&D(!1)};return activeDocument.addEventListener("mousedown",L),()=>activeDocument.removeEventListener("mousedown",L)},[S]);let fe=Vn(s,200),Ne=(0,it.useMemo)(()=>On(a,fe),[a,fe]),Be=(0,it.useMemo)(()=>Zn(Ne,p.sorts),[Ne,p.sorts]),{pageItems:$e,currentPage:je,totalPages:nt,setPage:ve}=xi(Be,t.pageSize),Me=(0,it.useMemo)(()=>i.schema.filter(L=>L.visible&&!p.hiddenColumns.includes(L.id)),[i.schema,p.hiddenColumns]),ze=(0,it.useMemo)(()=>i.schema.find(L=>L.id===p.galleryCoverField)??null,[i.schema,p.galleryCoverField]),He=p.galleryCardSize??"medium",Ue=pN[He],Fe=(0,it.useCallback)(async L=>{let Se=L.map(I=>({id:I.id,columnId:I.columnId,operator:I.operator,value:I.value,conjunction:I.conjunction}));await ne({...p,activePills:Se})},[ne,p]),ot=(L,Se,I,te)=>{let Pe=[...s,{id:crypto.randomUUID(),columnId:L,columnName:Se,columnType:te,icon:I,operator:Fn(te),value:"",conjunction:"and"}];d(Pe),Fe(Pe),c(!1)},Y=L=>{let Se=s.filter(I=>I.id!==L);d(Se),Fe(Se)},E=(L,Se,I)=>{let te=s.map(Pe=>Pe.id===L?{...Pe,operator:Se,value:I}:Pe);d(te),Fe(te)},oe=L=>{let Se=s.map(I=>I.id===L?{...I,conjunction:I.conjunction==="and"?"or":"and"}:I);d(Se),Fe(Se)},ge=(0,it.useCallback)(async L=>{let Se=p.hiddenColumns.includes(L)?p.hiddenColumns.filter(I=>I!==L):[...p.hiddenColumns,L];await ne({...p,hiddenColumns:Se})},[p,ne]),ue=(0,it.useCallback)(async L=>{await ne({...p,sorts:L})},[p,ne]),Ve=async()=>{e&&await t.createNoteWithTemplate(e)},be=wn(),xe=e?.parent?.path??"",ft=(0,it.useCallback)(L=>{r.workspace.getLeaf().openFile(L)},[r]);if(!e)return(0,G.jsx)("div",{className:"nb-empty-state",children:(0,G.jsx)("p",{children:u("no_database_open")})});if(l)return(0,G.jsx)("div",{className:"nb-loading",children:u("loading")});let kt=L=>{L!=="fields"&&v(!1),L!=="cover"&&f(!1),L!=="filter"&&c(!1),L!=="sort"&&D(!1)},St=be?(0,G.jsxs)(jn,{actionBarRef:W,actions:[{id:"fields",label:u("fields"),icon:(0,G.jsx)(Cn,{}),active:h,onClick:()=>{kt("fields"),v(L=>!L)}},{id:"cover",label:u("cover"),icon:(0,G.jsx)(Cn,{}),active:b,onClick:()=>{kt("cover"),f(L=>!L)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,G.jsx)(Hn,{}),active:!!p.includeSubfolders,onClick:()=>{kt(),ne({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,G.jsx)(po,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{kt("sort"),!S&&q.current&&V(q.current.getBoundingClientRect()),D(L=>!L)}},{id:"filter",label:u("filter"),icon:(0,G.jsx)(Bn,{}),active:m,badge:s.length||void 0,onClick:()=>{kt("filter"),c(L=>!L)}}],rowCount:Be.length,rowCountLabel:Be.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:s,onFilterUpdate:E,onFilterRemove:Y,onConjunctionToggle:oe,children:[(0,G.jsx)(st,{open:h,onClose:()=>v(!1),title:u("fields"),children:i.schema.map(L=>(0,G.jsxs)("label",{className:"nb-field-row",children:[(0,G.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:L.visible&&!p.hiddenColumns.includes(L.id),onChange:()=>{ge(L.id)}}),(0,G.jsx)("span",{className:"nb-field-icon",children:Je(L.type)}),(0,G.jsx)("span",{className:"nb-field-name",children:L.name})]},L.id))}),(0,G.jsxs)(st,{open:b,onClose:()=>f(!1),title:u("cover"),children:[(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField?"":" nb-menu-item--active"}`,onClick:()=>{ne({...p,galleryCoverField:void 0}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,G.jsx)("span",{children:u("no_cover")})]}),i.schema.filter(L=>L.type==="text"||L.type==="title"||L.type==="image").map(L=>(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField===L.id?" nb-menu-item--active":""}`,onClick:()=>{ne({...p,galleryCoverField:L.id}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Je(L.type)}),(0,G.jsx)("span",{children:L.name})]},L.id))]}),(0,G.jsxs)(st,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>ot("_title","Nome","\u{1F4C4}","title"),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,G.jsx)("span",{children:u("name_column")})]}),i.schema.map(L=>(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>ot(L.id,L.name,Je(L.type),L.type),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Je(L.type)}),(0,G.jsx)("span",{children:L.name})]},L.id))]}),(0,G.jsxs)(st,{open:S,onClose:()=>D(!1),title:u("sort"),children:[p.sorts.length===0&&(0,G.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((L,Se)=>{let I=L.columnId==="_title"?"Nome":i.schema.find(te=>te.id===L.columnId)?.name??L.columnId;return(0,G.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,G.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let te=[...p.sorts];Se>0&&([te[Se],te[Se-1]]=[te[Se-1],te[Se]],ue(te))},disabled:Se===0,children:"\u2191"}),(0,G.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let te=[...p.sorts];Se{ue(p.sorts.map(te=>te.columnId===L.columnId?{...te,direction:te.direction==="asc"?"desc":"asc"}:te))},children:L.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,G.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{ue(p.sorts.filter(te=>te.columnId!==L.columnId))},children:"\xD7"})]},L.columnId)}),(()=>{let L=i.schema.filter(te=>te.type!=="formula"&&te.type!=="lookup"&&te.type!=="relation"&&te.type!=="multiselect"),Se=new Set(p.sorts.map(te=>te.columnId)),I=[...Se.has("_title")?[]:[{id:"_title",name:"Nome"}],...L.filter(te=>!Se.has(te.id)).map(te=>({id:te.id,name:te.name}))];return I.length===0?null:(0,G.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:te=>{te.target.value&&(ue([...p.sorts,{columnId:te.target.value,direction:"asc"}]),te.target.value="")},children:[(0,G.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),I.map(te=>(0,G.jsx)("option",{value:te.id,children:te.name},te.id))]})})()]})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:"nb-toolbar",children:[(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:_e,children:[(0,G.jsx)("button",{className:`nb-toolbar-btn${h?" nb-toolbar-btn--active":""}`,onClick:()=>v(L=>!L),children:u("fields")}),h&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),i.schema.map(L=>(0,G.jsxs)("label",{className:"nb-field-row",children:[(0,G.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:L.visible&&!p.hiddenColumns.includes(L.id),onChange:()=>{ge(L.id)}}),(0,G.jsx)("span",{className:"nb-field-icon",children:Je(L.type)}),(0,G.jsx)("span",{className:"nb-field-name",children:L.name})]},L.id))]})]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ye,children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn${b?" nb-toolbar-btn--active":""}`,onClick:()=>f(L=>!L),children:[u("cover"),": ",(0,G.jsx)("strong",{children:ze?.name??u("no_cover")})]}),b&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("cover_field_label")}),(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField?"":" nb-menu-item--active"}`,onClick:()=>{ne({...p,galleryCoverField:void 0}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,G.jsx)("span",{children:u("no_cover")})]}),i.schema.filter(L=>L.type==="text"||L.type==="title"||L.type==="image").map(L=>(0,G.jsxs)("button",{className:`nb-menu-item${p.galleryCoverField===L.id?" nb-menu-item--active":""}`,onClick:()=>{ne({...p,galleryCoverField:L.id}),f(!1)},children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Je(L.type)}),(0,G.jsx)("span",{children:L.name})]},L.id))]})]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Ce,children:[(0,G.jsx)("button",{className:`nb-toolbar-btn${_?" nb-toolbar-btn--active":""}`,onClick:()=>w(L=>!L),children:Mb()[He]}),_&&(0,G.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("card_size_label")}),["small","medium","large"].map(L=>(0,G.jsx)("button",{className:`nb-menu-item${He===L?" nb-menu-item--active":""}`,onClick:()=>{ne({...p,galleryCardSize:L}),w(!1)},children:Mb()[L]},L))]})]}),(0,G.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ne({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,G.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,G.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,G.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,G.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,G.jsxs)("span",{className:"nb-row-count",children:[Be.length," ",Be.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:re,style:{marginLeft:"auto"},children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${m?" nb-toolbar-btn--active":""}`,onClick:()=>c(L=>!L),title:u("filters"),children:[(0,G.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,G.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,G.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,G.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>ot("_title","Nome","\u{1F4C4}","title"),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,G.jsx)("span",{children:u("name_column")})]}),i.schema.map(L=>(0,G.jsxs)("button",{className:"nb-menu-item",onClick:()=>ot(L.id,L.name,Je(L.type),L.type),children:[(0,G.jsx)("span",{className:"nb-menu-item-icon",children:Je(L.type)}),(0,G.jsx)("span",{children:L.name})]},L.id))]})]}),(0,G.jsxs)("button",{ref:q,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!S&&q.current&&V(q.current.getBoundingClientRect()),D(L=>!L)},children:[(0,G.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),S&&T&&(0,G.jsx)(mN,{sorts:p.sorts,schema:i.schema,onSortChange:L=>{ue(L)},onClose:()=>D(!1),anchorRect:T,panelRef:Oe}),(0,G.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:O,children:[(0,G.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${(p.conditionalFormats?.length??0)>0?" nb-toolbar-btn--active":""}`,onClick:()=>le(L=>!L),title:u("conditional_formatting"),children:[(0,G.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,G.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,G.jsx)("path",{d:"M3 9h18"}),(0,G.jsx)("path",{d:"M3 15h18"}),(0,G.jsx)("path",{d:"M9 3v18"})]}),(p.conditionalFormats?.length??0)>0&&(0,G.jsx)("span",{className:"nb-hidden-badge",children:p.conditionalFormats.length})]}),j&&(0,G.jsx)(Ir,{rules:p.conditionalFormats??[],schema:i.schema,onChange:L=>{ne({...p,conditionalFormats:L})},onClose:()=>le(!1)})]})]}),(0,G.jsx)(mo,{activeFilters:s,schema:i.schema,onUpdate:E,onRemove:Y,onToggleConjunction:oe,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{ne({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return(0,G.jsxs)("div",{className:"nb-container",children:[St,(0,G.jsxs)("div",{className:"nb-gallery",style:{gridTemplateColumns:Ue},children:[$e.map(L=>{let Se=p.conditionalFormats?.length?fi(L,p.conditionalFormats,i.schema):void 0;return(0,G.jsx)(fN,{row:L,cardSize:He,coverField:ze,visibleCols:Me,dbFolderPath:xe,includeSubfolders:p.includeSubfolders??!1,onOpen:ft,cardStyle:Se},L._file.path)}),(0,G.jsx)("div",{className:"nb-gallery-card nb-gallery-card--add",onClick:()=>{Ve()},children:(0,G.jsx)("div",{className:"nb-gallery-add-inner",children:"+ "+u("add_entry")})})]}),(0,G.jsx)(Ni,{currentPage:je,totalPages:nt,onPageChange:ve})]})}var at=De(wt(),1);var H=De(vt(),1),Lb=()=>[u("day_sun"),u("day_mon"),u("day_tue"),u("day_wed"),u("day_thu"),u("day_fri"),u("day_sat")],Ab=()=>[u("month_january"),u("month_february"),u("month_march"),u("month_april"),u("month_may"),u("month_june"),u("month_july"),u("month_august"),u("month_september"),u("month_october"),u("month_november"),u("month_december")];function gN(e,t){let n=new Date(e,t,1).getDay(),o=new Date(e,t+1,0).getDate(),r=[];for(let a=0;a=0?e.slice(0,t):e).split("-");if(o.length!==3)return null;let r=parseInt(o[0]),a=parseInt(o[1])-1,i=parseInt(o[2]);if(isNaN(r)||isNaN(a)||isNaN(i))return null;if(t>=0){let s=e.slice(t+1).split(":");if(s.length>=2){let d=parseInt(s[0]),p=parseInt(s[1]);if(!isNaN(d)&&!isNaN(p))return{year:r,month:a,day:i,hour:d,minute:p}}}return{year:r,month:a,day:i}}function Ob({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{status:a,trackSave:i}=$r(),l=new Date,{rows:s,config:d,loading:p,activeFilters:g,setActiveFilters:m}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[c,h]=(0,at.useState)(n),[v,b]=(0,at.useState)(l.getFullYear()),[f,_]=(0,at.useState)(l.getMonth()),[w,S]=(0,at.useState)(l.getDate()),[D,T]=(0,at.useState)(!1),[V,j]=(0,at.useState)(!1),[le,re]=(0,at.useState)(!1),[_e,ye]=(0,at.useState)(null),[Ce,Oe]=(0,at.useState)(null),[q,W]=(0,at.useState)(null),O=(0,at.useRef)(null),ne=(0,at.useRef)(null),[fe,Ne]=(0,at.useState)(()=>{let N=new Date;return N.getHours()*60+N.getMinutes()}),Be=(0,at.useRef)(null),$e=(0,at.useRef)(null),je=(0,at.useRef)(null),nt=(0,at.useRef)(null);(0,at.useEffect)(()=>{h(n)},[n.id]),(0,at.useEffect)(()=>{let N=()=>{let J=new Date;Ne(J.getHours()*60+J.getMinutes())},Z=window.setInterval(N,6e4);return()=>window.clearInterval(Z)},[]);let ve=(0,at.useCallback)(async N=>{h(N),await o(N)},[o]),Me=c.calendarViewMode??"month";(0,at.useEffect)(()=>{if(!D)return;let N=Z=>{nt.current?.contains(Z.target)||Be.current&&!Be.current.contains(Z.target)&&T(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[D]),(0,at.useEffect)(()=>{if(!V)return;let N=Z=>{nt.current?.contains(Z.target)||$e.current&&!$e.current.contains(Z.target)&&j(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[V]),(0,at.useEffect)(()=>{if(!le)return;let N=Z=>{nt.current?.contains(Z.target)||je.current&&!je.current.contains(Z.target)&&re(!1)};return activeDocument.addEventListener("mousedown",N),()=>activeDocument.removeEventListener("mousedown",N)},[le]);let ze=Vn(g,200),He=(0,at.useMemo)(()=>On(s,ze),[s,ze]),Ue=(0,at.useMemo)(()=>d.schema.find(N=>N.id===c.calendarDateField)??null,[d.schema,c.calendarDateField]),Fe=(0,at.useMemo)(()=>d.schema.filter(N=>N.visible&&!c.hiddenColumns.includes(N.id)),[d.schema,c.hiddenColumns]),ot=(0,at.useMemo)(()=>gN(v,f),[v,f]),Y=(0,at.useMemo)(()=>Me==="week"?_N(v,f,w):[],[Me,v,f,w]),E=(0,at.useMemo)(()=>{let N=new Map;if(!Ue)return N;for(let Z of He){let J=zr(Z[Ue.id]);if(!J)continue;let X=Ei(J.year,J.month,J.day);if(Me==="week"){if(Y.some(de=>de.getFullYear()===J.year&&de.getMonth()===J.month&&de.getDate()===J.day)){let de=N.get(X)??[];de.push(Z),N.set(X,de)}}else if(J.year===v&&J.month===f){let ae=N.get(X)??[];ae.push(Z),N.set(X,ae)}}for(let[Z,J]of N)J.sort((X,ae)=>{let de=zr(X[Ue.id]),x=zr(ae[Ue.id]),ce=(de?.hour??-1)*60+(de?.minute??-1),ke=(x?.hour??-1)*60+(x?.minute??-1);return ce-ke}),N.set(Z,J);return N},[He,Ue,v,f,w,Me,Y]),oe=(0,at.useMemo)(()=>Ue?He.filter(N=>{let Z=N[Ue.id];return!Z||mt(Z).trim()===""}):[],[He,Ue]),ge=(0,at.useMemo)(()=>{if(Me!=="week"||!Ue)return null;let N=null;for(let[,Z]of E)for(let J of Z){let X=zr(J[Ue.id]);if(X&&X.hour!==void 0&&X.minute!==void 0){let ae=X.hour*60+X.minute;(N===null||ae0?Y[0].toISOString():"";(0,at.useEffect)(()=>{if(Me!=="week"||p)return;let N=window.setTimeout(()=>{let Z=ne.current;if(!Z||Z.scrollHeight<=Z.clientHeight)return;let X=48*24,de=(ge!==null?Math.min(ge,fe):fe)/1440*X,x=Z.clientHeight;Z.scrollTo({top:Math.max(0,de-x*.25),behavior:"smooth"})},100);return()=>window.clearTimeout(N)},[Me,ue,p]);let Ve=(0,at.useCallback)(async N=>{let Z=N.map(J=>({id:J.id,columnId:J.columnId,operator:J.operator,value:J.value,conjunction:J.conjunction}));await ve({...c,activePills:Z})},[ve,c]),be=(N,Z,J,X)=>{let ae=[...g,{id:crypto.randomUUID(),columnId:N,columnName:Z,columnType:X,icon:J,operator:Fn(X),value:"",conjunction:"and"}];m(ae),Ve(ae),T(!1)},xe=N=>{let Z=g.filter(J=>J.id!==N);m(Z),Ve(Z)},ft=(N,Z,J)=>{let X=g.map(ae=>ae.id===N?{...ae,operator:Z,value:J}:ae);m(X),Ve(X)},kt=N=>{let Z=g.map(J=>J.id===N?{...J,conjunction:J.conjunction==="and"?"or":"and"}:J);m(Z),Ve(Z)},St=(0,at.useCallback)(async N=>{let Z=c.hiddenColumns.includes(N)?c.hiddenColumns.filter(J=>J!==N):[...c.hiddenColumns,N];await ve({...c,hiddenColumns:Z})},[c,ve]),L=()=>{if(Me==="week"){let N=new Date(v,f,w-7);b(N.getFullYear()),_(N.getMonth()),S(N.getDate())}else f===0?(_(11),b(N=>N-1)):_(N=>N-1)},Se=()=>{if(Me==="week"){let N=new Date(v,f,w+7);b(N.getFullYear()),_(N.getMonth()),S(N.getDate())}else f===11?(_(0),b(N=>N+1)):_(N=>N+1)},I=()=>{b(l.getFullYear()),_(l.getMonth()),S(l.getDate())},te=async(N,Z,J)=>{if(!e||!Ue)return;let X=await t.createNoteWithTemplate(e),ae=`${N}-${String(Z+1).padStart(2,"0")}-${String(J).padStart(2,"0")}`;await i(r.fileManager.processFrontMatter(X,de=>{de[Ue.id]=ae}))},Pe=(N,Z)=>{N.dataTransfer.setData("nb-cal-path",Z._file.path),N.dataTransfer.effectAllowed="move",N.stopPropagation()},Te=(N,Z)=>{N.dataTransfer.types.includes("nb-cal-path")&&(N.preventDefault(),N.dataTransfer.dropEffect="move",ye(Z))},xt=N=>{N.currentTarget.contains(N.relatedTarget)||ye(null)},ln=async(N,Z,J,X)=>{N.preventDefault(),N.stopPropagation(),ye(null);let ae=N.dataTransfer.getData("nb-cal-path");if(!ae||!Ue)return;let de=r.vault.getFileByPath(ae);if(!de)return;let x=`${Z}-${String(J+1).padStart(2,"0")}-${String(X).padStart(2,"0")}`;await i(r.fileManager.processFrontMatter(de,ce=>{let ke=ce[Ue.id];typeof ke=="string"&&ke.includes("T")?ce[Ue.id]=`${x}T${ke.split("T")[1]}`:ce[Ue.id]=x}))},ct=wn();if(!e)return(0,H.jsx)("div",{className:"nb-empty-state",children:(0,H.jsx)("p",{children:u("no_database_open")})});if(p)return(0,H.jsx)("div",{className:"nb-loading",children:u("loading")});let qt=l.getFullYear()===v&&l.getMonth()===f?l.getDate():null,Zt=N=>{N!=="datefield"&&re(!1),N!=="fields"&&j(!1),N!=="filter"&&T(!1)},M=ct?(0,H.jsxs)(jn,{actionBarRef:nt,actions:[{id:"datefield",label:u("date_field"),icon:(0,H.jsx)(Cn,{}),active:le,onClick:()=>{Zt("datefield"),re(N=>!N)}},{id:"fields",label:u("fields"),icon:(0,H.jsx)(Cn,{}),active:V,onClick:()=>{Zt("fields"),j(N=>!N)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,H.jsx)(Hn,{}),active:!!c.includeSubfolders,onClick:()=>{Zt(),ve({...c,includeSubfolders:!c.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,H.jsx)(Bn,{}),active:D,badge:g.length||void 0,onClick:()=>{Zt("filter"),T(N=>!N)}}],rowCount:He.length,rowCountLabel:He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:g,onFilterUpdate:ft,onFilterRemove:xe,onConjunctionToggle:kt,children:[(0,H.jsxs)(st,{open:le,onClose:()=>re(!1),title:u("date_field"),children:[(0,H.jsxs)("button",{className:`nb-menu-item${c.calendarDateField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,calendarDateField:void 0}),re(!1)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,H.jsx)("span",{children:u("none_value")})]}),d.schema.filter(N=>N.type==="date").map(N=>(0,H.jsxs)("button",{className:`nb-menu-item${c.calendarDateField===N.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,calendarDateField:N.id}),re(!1)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,H.jsx)("span",{children:N.name})]},N.id))]}),(0,H.jsx)(st,{open:V,onClose:()=>j(!1),title:u("fields"),children:d.schema.map(N=>(0,H.jsxs)("label",{className:"nb-field-row",children:[(0,H.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:N.visible&&!c.hiddenColumns.includes(N.id),onChange:()=>{St(N.id)}}),(0,H.jsx)("span",{className:"nb-field-icon",children:Je(N.type)}),(0,H.jsx)("span",{className:"nb-field-name",children:N.name})]},N.id))}),(0,H.jsxs)(st,{open:D,onClose:()=>T(!1),title:u("filter"),children:[(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>be("_title","Nome","\u{1F4C4}","title"),children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,H.jsx)("span",{children:u("name_column")})]}),d.schema.map(N=>(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>be(N.id,N.name,Je(N.type),N.type),children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:Je(N.type)}),(0,H.jsx)("span",{children:N.name})]},N.id))]}),(0,H.jsx)("div",{className:"nb-cal-view-toggle",style:{margin:"4px 12px"},children:["month","week"].map(N=>(0,H.jsx)("button",{className:`nb-cal-view-btn${Me===N?" nb-cal-view-btn--active":""}`,onClick:()=>{ve({...c,calendarViewMode:N})},children:N==="month"?u("calendar_view_month"):u("calendar_view_week")},N))}),(0,H.jsxs)("div",{className:"nb-cal-nav",style:{padding:"4px 12px"},children:[(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:L,title:Me==="week"?u("calendar_prev_week"):u("calendar_prev_month"),children:"\u2039"}),(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:I,children:u("calendar_today")}),(0,H.jsx)("span",{className:"nb-cal-month-label",children:Me==="week"?Ib(Y):`${Ab()[f]} ${v}`}),(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:Se,title:Me==="week"?u("calendar_next_week"):u("calendar_next_month"),children:"\u203A"})]})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("div",{className:"nb-toolbar",children:[(0,H.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:je,children:[(0,H.jsxs)("button",{className:`nb-toolbar-btn${le?" nb-toolbar-btn--active":""}`,onClick:()=>re(N=>!N),children:[u("date_field"),": ",(0,H.jsx)("strong",{children:Ue?.name??u("none_value")})]}),le&&(0,H.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,H.jsx)("div",{className:"nb-fields-dropdown-label",children:u("date_field_label")}),(0,H.jsxs)("button",{className:`nb-menu-item${c.calendarDateField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,calendarDateField:void 0}),re(!1)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,H.jsx)("span",{children:u("none_value")})]}),d.schema.filter(N=>N.type==="date").map(N=>(0,H.jsxs)("button",{className:`nb-menu-item${c.calendarDateField===N.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,calendarDateField:N.id}),re(!1)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,H.jsx)("span",{children:N.name})]},N.id))]})]}),(0,H.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:$e,children:[(0,H.jsx)("button",{className:`nb-toolbar-btn${V?" nb-toolbar-btn--active":""}`,onClick:()=>j(N=>!N),children:u("fields")}),V&&(0,H.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,H.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_label")}),d.schema.map(N=>(0,H.jsxs)("label",{className:"nb-field-row",children:[(0,H.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:N.visible&&!c.hiddenColumns.includes(N.id),onChange:()=>{St(N.id)}}),(0,H.jsx)("span",{className:"nb-field-icon",children:Je(N.type)}),(0,H.jsx)("span",{className:"nb-field-name",children:N.name})]},N.id))]})]}),(0,H.jsx)("div",{className:"nb-cal-view-toggle",children:["month","week"].map(N=>(0,H.jsx)("button",{className:`nb-cal-view-btn${Me===N?" nb-cal-view-btn--active":""}`,onClick:()=>{ve({...c,calendarViewMode:N})},children:N==="month"?u("calendar_view_month"):u("calendar_view_week")},N))}),(0,H.jsxs)("div",{className:"nb-cal-nav",children:[(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:L,title:Me==="week"?u("calendar_prev_week"):u("calendar_prev_month"),children:"\u2039"}),(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:I,children:u("calendar_today")}),(0,H.jsx)("span",{className:"nb-cal-month-label",children:Me==="week"?Ib(Y):`${Ab()[f]} ${v}`}),(0,H.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:Se,title:Me==="week"?u("calendar_next_week"):u("calendar_next_month"),children:"\u203A"})]}),(0,H.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${c.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ve({...c,includeSubfolders:!c.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,H.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,H.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,H.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,H.jsxs)("span",{className:"nb-row-count",children:[He.length," ",He.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,H.jsx)(Ar,{status:a}),(0,H.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,style:{marginLeft:"auto"},children:[(0,H.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${D?" nb-toolbar-btn--active":""}`,onClick:()=>T(N=>!N),title:u("filters"),children:[(0,H.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,H.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),g.length>0&&(0,H.jsx)("span",{className:"nb-hidden-badge",children:g.length})]}),D&&(0,H.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,H.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>be("_title","Nome","\u{1F4C4}","title"),children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,H.jsx)("span",{children:u("name_column")})]}),d.schema.map(N=>(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>be(N.id,N.name,Je(N.type),N.type),children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:Je(N.type)}),(0,H.jsx)("span",{children:N.name})]},N.id))]})]})]}),(0,H.jsx)(mo,{activeFilters:g,schema:d.schema,onUpdate:ft,onRemove:xe,onToggleConjunction:kt,collapsed:!!c.filtersCollapsed,onToggleCollapsed:()=>{ve({...c,filtersCollapsed:!c.filtersCollapsed})}})]});return(0,H.jsxs)("div",{className:"nb-container",children:[M,Ue?(0,H.jsxs)(H.Fragment,{children:[Me==="week"?(0,H.jsxs)("div",{className:"nb-cal-week-container",children:[(0,H.jsxs)("div",{className:"nb-cal-week-allday",children:[(0,H.jsx)("div",{className:"nb-cal-week-time-gutter nb-cal-week-allday-label",children:u("calendar_all_day")}),Y.map(N=>{let Z=Ei(N.getFullYear(),N.getMonth(),N.getDate()),J=(E.get(Z)??[]).filter(X=>{let ae=zr(X[Ue.id]);return!ae||ae.hour===void 0});return(0,H.jsx)("div",{className:"nb-cal-week-allday-cell",onClick:()=>{te(N.getFullYear(),N.getMonth(),N.getDate())},onDragOver:X=>Te(X,N.getDate()),onDragLeave:xt,onDrop:X=>{ln(X,N.getFullYear(),N.getMonth(),N.getDate())},children:J.map(X=>(0,H.jsx)("div",{className:"nb-cal-card nb-cal-card--allday",draggable:!0,onDragStart:ae=>Pe(ae,X),onClick:ae=>{ae.stopPropagation(),r.workspace.getLeaf().openFile(X._file)},children:(0,H.jsx)("span",{className:"nb-cal-card-title",children:X._title})},X._file.path))},Z)})]}),(0,H.jsxs)("div",{className:"nb-cal-week-header",children:[(0,H.jsx)("div",{className:"nb-cal-week-time-gutter"}),Y.map(N=>{let Z=N.getFullYear()===l.getFullYear()&&N.getMonth()===l.getMonth()&&N.getDate()===l.getDate();return(0,H.jsxs)("div",{className:`nb-cal-week-day-header${Z?" nb-cal-week-day-header--today":""}`,children:[Lb()[N.getDay()]," ",N.getDate()]},N.toISOString())})]}),(0,H.jsxs)("div",{className:"nb-cal-week-body",ref:ne,children:[Y.some(N=>N.getFullYear()===l.getFullYear()&&N.getMonth()===l.getMonth()&&N.getDate()===l.getDate())&&(0,H.jsx)("div",{className:"nb-cal-now-line",style:{top:`${fe/1440*48*24}px`}}),(0,H.jsx)("div",{className:"nb-cal-week-time-gutter",children:Array.from({length:24},(N,Z)=>(0,H.jsx)("div",{className:"nb-cal-week-hour-label",children:qm(Z,0)},Z))}),Y.map(N=>{let Z=Ei(N.getFullYear(),N.getMonth(),N.getDate()),J=N.getFullYear()===l.getFullYear()&&N.getMonth()===l.getMonth()&&N.getDate()===l.getDate(),X=(E.get(Z)??[]).filter(ae=>{let de=zr(ae[Ue.id]);return de&&de.hour!==void 0});return(0,H.jsxs)("div",{className:`nb-cal-week-day-col${J?" nb-cal-week-day-col--today":""}`,onClick:()=>{te(N.getFullYear(),N.getMonth(),N.getDate())},onDragOver:ae=>Te(ae,N.getDate()),onDragLeave:xt,onDrop:ae=>{ln(ae,N.getFullYear(),N.getMonth(),N.getDate())},children:[Array.from({length:24},(ae,de)=>(0,H.jsx)("div",{className:"nb-cal-week-hour-slot"},de)),X.map(ae=>{let de=zr(ae[Ue.id]);if(!de||de.hour===void 0||de.minute===void 0)return null;let x=(de.hour*60+de.minute)/1440*100;return(0,H.jsx)("div",{className:"nb-cal-card nb-cal-card--timed",draggable:!0,onDragStart:ce=>Pe(ce,ae),onClick:ce=>{ce.stopPropagation(),r.workspace.getLeaf().openFile(ae._file)},style:{top:`${x}%`},children:(0,H.jsxs)("div",{className:"nb-cal-card-title-row",children:[(0,H.jsx)("span",{className:"nb-cal-time-badge",children:qm(de.hour,de.minute)}),(0,H.jsx)("span",{className:"nb-cal-card-title",children:ae._title})]})},ae._file.path)})]},Z)})]})]}):(0,H.jsxs)("div",{className:"nb-cal-grid",children:[Lb().map(N=>(0,H.jsx)("div",{className:"nb-cal-day-header",children:N},N)),ot.map((N,Z)=>{if(N===null)return(0,H.jsx)("div",{className:"nb-cal-cell nb-cal-cell--outside"},`empty-${Z}`);let J=N===qt,X=N===_e,ae=E.get(Ei(v,f,N))??[];return(0,H.jsxs)("div",{className:`nb-cal-cell${J?" nb-cal-cell--today":""}${X?" nb-cal-cell--drag-over":""}`,onClick:ct?void 0:()=>{te(v,f,N)},onDragOver:de=>Te(de,N),onDragLeave:xt,onDrop:de=>{ln(de,v,f,N)},title:ct?void 0:u("calendar_click_to_create"),onTouchStart:ct?()=>{O.current=window.setTimeout(()=>{W({year:v,month:f,day:N})},500)}:void 0,onTouchMove:ct?()=>{O.current&&(window.clearTimeout(O.current),O.current=null)}:void 0,onTouchEnd:ct?()=>{O.current&&(window.clearTimeout(O.current),O.current=null)}:void 0,children:[(0,H.jsx)("div",{className:"nb-cal-cell-header",children:(0,H.jsx)("span",{className:`nb-cal-day-num${J?" nb-cal-day-num--today":""}`,children:N})}),(0,H.jsx)("div",{className:"nb-cal-cell-body",children:(()=>{let x=ct&&ae.length>1?ae.slice(0,1):ae,ce=ct?ae.length-x.length:0,ke=Ei(v,f,N);return(0,H.jsxs)(H.Fragment,{children:[x.map(Re=>(0,H.jsxs)("div",{className:"nb-cal-card",draggable:!ct,onDragStart:ct?void 0:Ae=>Pe(Ae,Re),onClick:Ae=>{Ae.stopPropagation(),r.workspace.getLeaf().openFile(Re._file)},children:[(0,H.jsxs)("div",{className:"nb-cal-card-title-row",children:[Ue&&(()=>{let Ae=hN(Re,Ue.id);return Ae?(0,H.jsx)("span",{className:"nb-cal-time-badge",children:Ae}):null})(),(0,H.jsx)("span",{className:"nb-cal-card-title",children:Re._title})]}),!ct&&(()=>{let Ae=e?.parent?.path??"",Ke=Re._file.parent?.path??"",Ie=c.includeSubfolders&&Ke.length>Ae.length?Ke.slice(Ae.length+1):"";return Ie?(0,H.jsx)("div",{className:"nb-folder-path",children:Ie}):null})(),!ct&&Fe.length>0&&(0,H.jsx)("div",{className:"nb-cal-card-props",children:Fe.map(Ae=>{let Ke=Re[Ae.id];if(Ke==null||mt(Ke).trim()==="")return null;let Ie=Array.isArray(Ke)?Ke.join(", "):mt(Ke);return(0,H.jsx)("span",{className:"nb-cal-card-prop",children:Ie},Ae.id)})})]},Re._file.path)),ce>0&&(0,H.jsxs)("button",{className:"nb-cal-more-badge",onClick:Re=>{Re.stopPropagation(),Oe(ke)},children:["+",ce]})]})})()})]},N)})]}),oe.length>0&&(0,H.jsxs)("div",{className:"nb-cal-no-date",children:[(0,H.jsxs)("div",{className:"nb-cal-no-date-title",children:[u("calendar_no_date_section")," (",oe.length,")"]}),(0,H.jsx)("div",{className:"nb-cal-no-date-list",children:oe.map(N=>(0,H.jsxs)("div",{className:"nb-cal-card nb-cal-card--no-date",draggable:!0,onDragStart:Z=>Pe(Z,N),onClick:()=>{r.workspace.getLeaf().openFile(N._file)},children:[(0,H.jsx)("span",{className:"nb-cal-card-title",children:N._title}),(()=>{let Z=e?.parent?.path??"",J=N._file.parent?.path??"",X=c.includeSubfolders&&J.length>Z.length?J.slice(Z.length+1):"";return X?(0,H.jsx)("div",{className:"nb-folder-path",children:X}):null})()]},N._file.path))})]})]}):(0,H.jsx)("div",{className:"nb-cal-no-field",children:(0,H.jsx)("p",{children:u("calendar_no_date_field")})}),(0,H.jsx)(st,{open:Ce!==null,onClose:()=>Oe(null),title:Ce??"",children:(Ce!==null?E.get(Ce)??[]:[]).map(N=>(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>{r.workspace.getLeaf().openFile(N._file),Oe(null)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,H.jsx)("span",{children:N._title})]},N._file.path))}),(0,H.jsx)(st,{open:q!==null,onClose:()=>W(null),title:q?`${q.day}/${q.month+1}/${q.year}`:"",children:q&&(()=>{let N=Ei(q.year,q.month,q.day),Z=E.get(N)??[];return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>{te(q.year,q.month,q.day),W(null)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u2795"}),(0,H.jsx)("span",{children:u("add_card")})]}),Z.length>0&&(0,H.jsx)("div",{className:"nb-menu-separator"}),Z.map(J=>(0,H.jsxs)(at.Fragment,{children:[(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>{r.workspace.getLeaf().openFile(J._file),W(null)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,H.jsx)("span",{children:J._title})]}),(0,H.jsxs)("div",{className:"nb-cal-day-actions",children:[(0,H.jsxs)("button",{className:"nb-menu-item",onClick:()=>{t.duplicateNotes([J._file]),W(null)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,H.jsx)("span",{children:u("duplicate_note")})]}),(0,H.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{t.deleteNotes([J._file]),W(null)},children:[(0,H.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,H.jsx)("span",{children:u("delete_note")})]})]})]},J._file.path))]})})()})]})}var et=De(wt(),1);var z=De(vt(),1),$b=200,Xm=34,zb=28,uc=56,Ym=()=>[u("month_short_jan"),u("month_short_feb"),u("month_short_mar"),u("month_short_apr"),u("month_short_may"),u("month_short_jun"),u("month_short_jul"),u("month_short_aug"),u("month_short_sep"),u("month_short_oct"),u("month_short_nov"),u("month_short_dec")],vN={days:30,weeks:80,months:100},bN={days:730,weeks:156,months:48},Vb=()=>({days:u("zoom_days"),weeks:u("zoom_weeks"),months:u("zoom_months")});function Ao(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Qm(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function Di(e){if(!e||typeof e!="string")return null;let t=e.split("-");if(t.length!==3)return null;let n=parseInt(t[0]),o=parseInt(t[1])-1,r=parseInt(t[2]);return isNaN(n)||isNaN(o)||isNaN(r)?null:new Date(n,o,r)}function yN(e,t){if(e==="months")return new Date(t.getFullYear()-1,0,1);if(e==="weeks"){let n=Ao(t,-546);return Ao(n,-n.getDay())}return new Date(t.getFullYear()-1,0,1)}function Km(e,t,n,o){if(t==="days")return Math.round((e.getTime()-n.getTime())/864e5)*o;if(t==="weeks")return(e.getTime()-n.getTime())/864e5/7*o;let r=(e.getFullYear()-n.getFullYear())*12+(e.getMonth()-n.getMonth()),a=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return(r+(e.getDate()-1)/a)*o}function Bb(e,t,n,o){return t==="days"?Ao(n,Math.round(e/o)):t==="weeks"?Ao(n,Math.round(e/o*7)):Qm(n,Math.floor(e/o))}function wN(e,t,n,o){let r=[],a=[];if(e==="months"){for(let s=0;si.length?v.slice(i.length+1):"";return(0,z.jsxs)("div",{className:"nb-tl-bar",style:{left:n,width:o,top:(Xm-22)/2,height:22},onClick:()=>{r?c(t._file):m(t._file)},onContextMenu:r?void 0:f=>{f.preventDefault(),c(t._file)},title:r?void 0:t._title,children:[(0,z.jsx)("div",{className:"nb-tl-bar-handle nb-tl-bar-handle--left",onMouseDown:f=>{f.stopPropagation(),f.preventDefault(),h(t._file.path,"left",f.clientX,s,d,p,g)}}),(0,z.jsx)("span",{className:"nb-tl-bar-title",children:t._title}),b?(0,z.jsx)("span",{className:"nb-folder-path",style:{marginLeft:4},children:b}):null,a.map(f=>{let _=t[f.id];if(!_||mt(_).trim()==="")return null;let w=Array.isArray(_)?_.join(", "):mt(_);return(0,z.jsxs)("span",{className:"nb-tl-bar-field",children:[" \xB7 ",w]},f.id)}),(0,z.jsx)("div",{className:"nb-tl-bar-handle nb-tl-bar-handle--right",onMouseDown:f=>{f.stopPropagation(),f.preventDefault(),h(t._file.path,"right",f.clientX,s,d,p,g)}})]})});function Hb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{status:a,trackSave:i}=$r(),l=(0,et.useMemo)(()=>new Date,[]),{rows:s,config:d,loading:p,activeFilters:g,setActiveFilters:m}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[c,h]=(0,et.useState)(n),[v,b]=(0,et.useState)(!1),[f,_]=(0,et.useState)(!1),[w,S]=(0,et.useState)(!1),[D,T]=(0,et.useState)(!1),[V,j]=(0,et.useState)(!1),[le,re]=(0,et.useState)(!0),[_e,ye]=(0,et.useState)(null),[Ce,Oe]=(0,et.useState)(0),[q,W]=(0,et.useState)(null),O=(0,et.useRef)(null),ne=(0,et.useRef)(null),fe=(0,et.useRef)(null),Ne=(0,et.useRef)(null),Be=(0,et.useRef)(null),$e=(0,et.useRef)(null),je=(0,et.useRef)(null),nt=(0,et.useRef)(!1);(0,et.useEffect)(()=>{h(n)},[n.id]);let ve=(0,et.useCallback)(async x=>{h(x),await o(x)},[o]),Me=(x,ce,ke)=>(0,et.useEffect)(()=>{if(!x)return;let Re=Ae=>{je.current?.contains(Ae.target)||ce.current&&!ce.current.contains(Ae.target)&&ke(!1)};return activeDocument.addEventListener("mousedown",Re),()=>activeDocument.removeEventListener("mousedown",Re)},[x]);Me(v,O,b),Me(f,ne,_),Me(w,fe,S),Me(D,Ne,T),Me(V,Be,j);let ze=c.timelineZoom??"months",He=vN[ze],Ue=bN[ze],Fe=(0,et.useMemo)(()=>yN(ze,l),[ze,l]),ot=Ue*He,Y=(0,et.useMemo)(()=>wN(ze,Fe,He,Ue),[ze,Fe,He,Ue]),E=(0,et.useMemo)(()=>Km(l,ze,Fe,He),[l,ze,Fe,He]);(0,et.useEffect)(()=>{if(!_e)return;let x=Re=>Oe(Re.clientX-_e.startX),ce=async Re=>{let Ae=Re.clientX-_e.startX;if(ye(null),Oe(0),activeDocument.body.classList.remove("nb-tl-resizing"),Math.abs(Ae)<2)return;nt.current=!0,window.setTimeout(()=>{nt.current=!1},200);let{handle:Ke,origBarLeft:Ie,origBarWidth:U,startFieldId:qe,endFieldId:Ee,filePath:_t}=_e,Rt=Ie,yt=U;if(Ke==="left"?(Rt=Ie+Ae,yt=U-Ae):yt=U+Ae,yt`${Et.getFullYear()}-${String(Et.getMonth()+1).padStart(2,"0")}-${String(Et.getDate()).padStart(2,"0")}`,Ht=r.vault.getAbstractFileByPath(_t);Ht&&await i(r.fileManager.processFrontMatter(Ht,Et=>{Ke==="left"&&qe&&(Et[qe]=Jt(Bb(Rt,ze,Fe,He))),Ke==="right"&&Ee&&(Et[Ee]=Jt(Bb(Rt+yt-He,ze,Fe,He)))}))};activeDocument.body.classList.add("nb-tl-resizing");let ke=Re=>{ce(Re)};return window.addEventListener("mousemove",x),window.addEventListener("mouseup",ke),()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",ke)}},[_e,ze,Fe,He,r]),(0,et.useEffect)(()=>{window.requestAnimationFrame(()=>{if(!$e.current)return;let x=Math.max(0,E-$e.current.clientWidth*.3);$e.current.scrollLeft=x})},[ze]);let oe=Vn(g,200),ge=(0,et.useMemo)(()=>On(s,oe),[s,oe]),ue=(0,et.useMemo)(()=>Zn(ge,c.sorts),[ge,c.sorts]),Ve=(0,et.useMemo)(()=>d.schema.find(x=>x.id===c.timelineStartField)??null,[d.schema,c.timelineStartField]),be=(0,et.useMemo)(()=>d.schema.find(x=>x.id===c.timelineEndField)??null,[d.schema,c.timelineEndField]),xe=(0,et.useMemo)(()=>d.schema.find(x=>x.id===c.timelineGroupByField)??null,[d.schema,c.timelineGroupByField]),ft=(0,et.useMemo)(()=>d.schema.filter(x=>x.visible&&!c.hiddenColumns.includes(x.id)&&x.id!==c.timelineStartField&&x.id!==c.timelineEndField),[d.schema,c.hiddenColumns,c.timelineStartField,c.timelineEndField]),kt=(0,et.useMemo)(()=>Ve?ge.filter(x=>!Di(x[Ve.id])):[],[ge,Ve]),St=(0,et.useMemo)(()=>{let x=U=>{if(!Ve)return{kind:"row",row:U,barLeft:null,barWidth:null};let qe=Di(U[Ve.id]);if(!qe)return{kind:"row",row:U,barLeft:null,barWidth:null};let _t=(be?Di(U[be.id]):null)??qe,Rt=Math.max(0,Km(qe,ze,Fe,He)),yt=Km(_t,ze,Fe,He)+He;return{kind:"row",row:U,barLeft:Rt,barWidth:Math.max(8,yt-Rt)}},ce=Ve?ue.filter(U=>!!Di(U[Ve.id])):ue,ke=c.sorts.length>0||!Ve?ce:[...ce].sort((U,qe)=>{let Ee=Di(U[Ve.id]),_t=Di(qe[Ve.id]);return!Ee&&!_t?0:Ee?_t?Ee.getTime()-_t.getTime():-1:1});if(!xe)return ke.map(x);let Re=new Map;for(let U of ke){let qe=String(U[xe.id]??"");Re.has(qe)||Re.set(qe,[]),Re.get(qe).push(U)}let Ae=xe.options?.map(U=>U.value)??[],Ke=[...Re.keys()].sort((U,qe)=>{let Ee=Ae.indexOf(U),_t=Ae.indexOf(qe);return Ee!==-1&&_t!==-1?Ee-_t:Ee!==-1?-1:_t!==-1||!U?1:qe?U.localeCompare(qe):-1}),Ie=[];for(let U of Ke){let qe=xe.options?.find(Ee=>Ee.value===U);Ie.push({kind:"group",label:U||u("no_value"),color:qe?.color});for(let Ee of Re.get(U))Ie.push(x(Ee))}return Ie},[ue,Ve,be,xe,ze,Fe,He,c.sorts]),L=(0,et.useCallback)(async x=>{await ve({...c,activePills:x.map(ce=>({id:ce.id,columnId:ce.columnId,operator:ce.operator,value:ce.value,conjunction:ce.conjunction}))})},[ve,c]),Se=(x,ce,ke,Re)=>{let Ae=[...g,{id:crypto.randomUUID(),columnId:x,columnName:ce,columnType:Re,icon:ke,operator:Fn(Re),value:"",conjunction:"and"}];m(Ae),L(Ae),b(!1)},I=x=>{let ce=g.filter(ke=>ke.id!==x);m(ce),L(ce)},te=(x,ce,ke)=>{let Re=g.map(Ae=>Ae.id===x?{...Ae,operator:ce,value:ke}:Ae);m(Re),L(Re)},Pe=x=>{let ce=g.map(ke=>ke.id===x?{...ke,conjunction:ke.conjunction==="and"?"or":"and"}:ke);m(ce),L(ce)},Te=(0,et.useCallback)(async x=>{let ce=c.hiddenColumns.includes(x)?c.hiddenColumns.filter(ke=>ke!==x):[...c.hiddenColumns,x];await ve({...c,hiddenColumns:ce})},[c,ve]),xt=()=>$e.current?.scrollBy({left:-($e.current.clientWidth*.6),behavior:"smooth"}),ln=()=>$e.current?.scrollBy({left:$e.current.clientWidth*.6,behavior:"smooth"}),ct=()=>{$e.current&&$e.current.scrollTo({left:Math.max(0,E-$e.current.clientWidth*.3),behavior:"smooth"})},qt=wn(),Zt=e?.parent?.path??"",M=(0,et.useCallback)(x=>{r.workspace.getLeaf().openFile(x)},[r]),N=(0,et.useCallback)(x=>{W(x)},[]),Z=(0,et.useCallback)((x,ce,ke,Re,Ae,Ke,Ie)=>{ye({filePath:x,handle:ce,startX:ke,origBarLeft:Re,origBarWidth:Ae,startFieldId:Ke,endFieldId:Ie}),Oe(0)},[]);if(!e)return(0,z.jsx)("div",{className:"nb-empty-state",children:(0,z.jsx)("p",{children:u("no_database_open")})});if(p)return(0,z.jsx)("div",{className:"nb-loading",children:u("loading")});let J=E>=0&&E<=ot,X=({label:x,valueKey:ce,open:ke,setOpen:Re,menuRef:Ae})=>{let Ke=d.schema.find(Ie=>Ie.id===c[ce])?.name??u("none_value");return(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Ae,children:[(0,z.jsxs)("button",{className:`nb-toolbar-btn${ke?" nb-toolbar-btn--active":""}`,onClick:()=>Re(!ke),children:[x,": ",(0,z.jsx)("strong",{children:Ke})]}),ke&&(0,z.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:x}),(0,z.jsxs)("button",{className:`nb-menu-item${c[ce]?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,[ce]:void 0}),Re(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,z.jsx)("span",{children:u("none_value")})]}),d.schema.filter(Ie=>Ie.type==="date").map(Ie=>(0,z.jsxs)("button",{className:`nb-menu-item${c[ce]===Ie.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,[ce]:Ie.id}),Re(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,z.jsx)("span",{children:Ie.name})]},Ie.id))]})]})},ae=x=>{x!=="start"&&S(!1),x!=="end"&&T(!1),x!=="group"&&j(!1),x!=="fields"&&_(!1),x!=="filter"&&b(!1)},de=qt?(0,z.jsxs)(jn,{actionBarRef:je,actions:[{id:"start",label:u("start_field"),icon:(0,z.jsx)(Cn,{}),active:w,onClick:()=>{ae("start"),S(x=>!x)}},{id:"end",label:u("end_field"),icon:(0,z.jsx)(Cn,{}),active:D,onClick:()=>{ae("end"),T(x=>!x)}},{id:"group",label:u("group_field"),icon:(0,z.jsx)(po,{}),active:V,onClick:()=>{ae("group"),j(x=>!x)}},{id:"fields",label:u("fields"),icon:(0,z.jsx)(Cn,{}),active:f,onClick:()=>{ae("fields"),_(x=>!x)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,z.jsx)(Hn,{}),active:!!c.includeSubfolders,onClick:()=>{ae(),ve({...c,includeSubfolders:!c.includeSubfolders})}},{id:"filter",label:u("filter"),icon:(0,z.jsx)(Bn,{}),active:v,badge:g.length||void 0,onClick:()=>{ae("filter"),b(x=>!x)}}],rowCount:ge.length,rowCountLabel:ge.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase(),filters:g,onFilterUpdate:te,onFilterRemove:I,onConjunctionToggle:Pe,children:[(0,z.jsxs)(st,{open:w,onClose:()=>S(!1),title:u("start_field"),children:[(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineStartField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,timelineStartField:void 0}),S(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,z.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="date").map(x=>(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineStartField===x.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,timelineStartField:x.id}),S(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,z.jsx)("span",{children:x.name})]},x.id))]}),(0,z.jsxs)(st,{open:D,onClose:()=>T(!1),title:u("end_field"),children:[(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineEndField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,timelineEndField:void 0}),T(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,z.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="date").map(x=>(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineEndField===x.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,timelineEndField:x.id}),T(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C5}"}),(0,z.jsx)("span",{children:x.name})]},x.id))]}),(0,z.jsxs)(st,{open:V,onClose:()=>j(!1),title:u("group_field"),children:[(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,timelineGroupByField:void 0}),j(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,z.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="select"||x.type==="status").map(x=>(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField===x.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,timelineGroupByField:x.id}),j(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Je(x.type)}),(0,z.jsx)("span",{children:x.name})]},x.id))]}),(0,z.jsx)(st,{open:f,onClose:()=>_(!1),title:u("fields"),children:d.schema.map(x=>(0,z.jsxs)("label",{className:"nb-field-row",children:[(0,z.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:x.visible&&!c.hiddenColumns.includes(x.id),onChange:()=>{Te(x.id)}}),(0,z.jsx)("span",{className:"nb-field-icon",children:Je(x.type)}),(0,z.jsx)("span",{className:"nb-field-name",children:x.name})]},x.id))}),(0,z.jsxs)(st,{open:v,onClose:()=>b(!1),title:u("filter"),children:[(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Se("_title","Nome","\u{1F4C4}","title"),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,z.jsx)("span",{children:u("name_column")})]}),d.schema.map(x=>(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Se(x.id,x.name,Je(x.type),x.type),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Je(x.type)}),(0,z.jsx)("span",{children:x.name})]},x.id))]}),(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,padding:"4px 12px"},children:[(0,z.jsxs)("div",{className:"nb-cal-nav",children:[(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:xt,title:u("timeline_scroll_prev"),children:"\u2039"}),(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:ct,children:u("calendar_today")}),(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:ln,title:u("timeline_scroll_next"),children:"\u203A"})]}),(0,z.jsx)("div",{className:"nb-tl-zoom-group",children:["days","weeks","months"].map(x=>(0,z.jsx)("button",{className:`nb-tl-zoom-btn${ze===x?" nb-tl-zoom-btn--active":""}`,onClick:()=>{ve({...c,timelineZoom:x})},children:Vb()[x]},x))})]})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:"nb-toolbar",children:[(0,z.jsx)(X,{label:u("start_field"),valueKey:"timelineStartField",open:w,setOpen:S,menuRef:fe}),(0,z.jsx)(X,{label:u("end_field"),valueKey:"timelineEndField",open:D,setOpen:T,menuRef:Ne}),(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:Be,children:[(0,z.jsxs)("button",{className:`nb-toolbar-btn${V?" nb-toolbar-btn--active":""}`,onClick:()=>j(x=>!x),children:[u("group_field"),": ",(0,z.jsx)("strong",{children:xe?.name??u("none_value")})]}),V&&(0,z.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:u("group_by_label")}),(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField?"":" nb-menu-item--active"}`,onClick:()=>{ve({...c,timelineGroupByField:void 0}),j(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u2014"}),(0,z.jsx)("span",{children:u("none_value")})]}),d.schema.filter(x=>x.type==="select"||x.type==="status").map(x=>(0,z.jsxs)("button",{className:`nb-menu-item${c.timelineGroupByField===x.id?" nb-menu-item--active":""}`,onClick:()=>{ve({...c,timelineGroupByField:x.id}),j(!1)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Je(x.type)}),(0,z.jsx)("span",{children:x.name})]},x.id))]})]}),(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:ne,children:[(0,z.jsx)("button",{className:`nb-toolbar-btn${f?" nb-toolbar-btn--active":""}`,onClick:()=>_(x=>!x),children:u("fields")}),f&&(0,z.jsxs)("div",{className:"nb-fields-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:u("fields_on_bars")}),d.schema.map(x=>(0,z.jsxs)("label",{className:"nb-field-row",children:[(0,z.jsx)("input",{type:"checkbox",className:"nb-field-checkbox",checked:x.visible&&!c.hiddenColumns.includes(x.id),onChange:()=>{Te(x.id)}}),(0,z.jsx)("span",{className:"nb-field-icon",children:Je(x.type)}),(0,z.jsx)("span",{className:"nb-field-name",children:x.name})]},x.id))]})]}),(0,z.jsxs)("div",{className:"nb-cal-nav",children:[(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:xt,title:u("timeline_scroll_prev"),children:"\u2039"}),(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-today-btn",onClick:ct,children:u("calendar_today")}),(0,z.jsx)("button",{className:"nb-toolbar-btn nb-cal-nav-arrow",onClick:ln,title:u("timeline_scroll_next"),children:"\u203A"})]}),(0,z.jsx)("div",{className:"nb-tl-zoom-group",children:["days","weeks","months"].map(x=>(0,z.jsx)("button",{className:`nb-tl-zoom-btn${ze===x?" nb-tl-zoom-btn--active":""}`,onClick:()=>{ve({...c,timelineZoom:x})},children:Vb()[x]},x))}),(0,z.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${c.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ve({...c,includeSubfolders:!c.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,z.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,z.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,z.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,z.jsxs)("span",{className:"nb-row-count",children:[ge.length," ",ge.length===1?u("item_singular").toLowerCase():u("item_plural").toLowerCase()]}),(0,z.jsx)(Ar,{status:a}),(0,z.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:O,style:{marginLeft:"auto"},children:[(0,z.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon${v?" nb-toolbar-btn--active":""}`,onClick:()=>b(x=>!x),title:u("filters"),children:[(0,z.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,z.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),g.length>0&&(0,z.jsx)("span",{className:"nb-hidden-badge",children:g.length})]}),v&&(0,z.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,z.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Se("_title","Nome","\u{1F4C4}","title"),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,z.jsx)("span",{children:u("name_column")})]}),d.schema.map(x=>(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>Se(x.id,x.name,Je(x.type),x.type),children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:Je(x.type)}),(0,z.jsx)("span",{children:x.name})]},x.id))]})]})]}),(0,z.jsx)(mo,{activeFilters:g,schema:d.schema,onUpdate:te,onRemove:I,onToggleConjunction:Pe,collapsed:!!c.filtersCollapsed,onToggleCollapsed:()=>{ve({...c,filtersCollapsed:!c.filtersCollapsed})}})]});return(0,z.jsxs)("div",{className:"nb-container",children:[de,Ve?(0,z.jsx)("div",{className:"nb-tl-body",ref:$e,children:(0,z.jsxs)("div",{className:"nb-tl-canvas-wrapper",style:{width:$b+ot},children:[(0,z.jsxs)("div",{className:"nb-tl-sidebar",style:{width:$b},children:[(0,z.jsx)("div",{className:"nb-tl-sidebar-corner",style:{height:uc}}),St.map((x,ce)=>x.kind==="group"?(0,z.jsxs)("div",{className:"nb-tl-sidebar-row nb-tl-sidebar-group",style:{height:zb},children:[x.color&&(0,z.jsx)("span",{className:"nb-tl-group-dot",style:{background:x.color}}),(0,z.jsx)("span",{children:x.label})]},`sg-${ce}`):(0,z.jsxs)("div",{className:"nb-tl-sidebar-row",style:{height:Xm},onClick:()=>{r.workspace.getLeaf().openFile(x.row._file)},children:[(0,z.jsx)("span",{className:"nb-tl-row-label",children:x.row._title}),(()=>{let ke=e?.parent?.path??"",Re=x.row._file.parent?.path??"",Ae=c.includeSubfolders&&Re.length>ke.length?Re.slice(ke.length+1):"";return Ae?(0,z.jsx)("div",{className:"nb-folder-path",children:Ae}):null})()]},x.row._file.path))]}),(0,z.jsxs)("div",{className:"nb-tl-right",style:{width:ot},children:[(0,z.jsxs)("div",{className:"nb-tl-header",style:{height:uc},children:[(0,z.jsx)("div",{className:"nb-tl-header-row",style:{height:uc/2,borderBottom:"1px solid var(--background-modifier-border)"},children:Y.top.map(x=>(0,z.jsx)("div",{className:"nb-tl-header-top-cell",style:{left:x.left,width:x.width},children:x.label},x.key))}),(0,z.jsx)("div",{className:"nb-tl-header-row",style:{height:uc/2},children:Y.bottom.map(x=>(0,z.jsx)("div",{className:"nb-tl-header-bottom-cell",style:{left:x.left,width:x.width},children:x.label},x.key))})]}),(0,z.jsxs)("div",{style:{position:"relative",width:ot},children:[J&&(0,z.jsx)("div",{className:"nb-tl-today-line",style:{left:E}}),St.map((x,ce)=>x.kind==="group"?(0,z.jsx)("div",{className:"nb-tl-group-row",style:{height:zb}},`gr-${ce}`):(0,z.jsx)("div",{className:`nb-tl-row${ce%2===0?"":" nb-tl-row--odd"}`,style:{height:Xm},children:x.barLeft!==null&&x.barWidth!==null&&(()=>{let ke=_e?.filePath===x.row._file.path,Re=x.barLeft,Ae=x.barWidth;return ke&&_e&&(_e.handle==="left"?(Re=x.barLeft+Ce,Ae=x.barWidth-Ce):Ae=x.barWidth+Ce),Ae=Math.max(8,Ae),(0,z.jsx)(CN,{row:x.row,barLeft:Re,barWidth:Ae,origBarLeft:x.barLeft,origBarWidth:x.barWidth,isMobile:qt,visibleCols:ft,dbFolderPath:Zt,includeSubfolders:c.includeSubfolders??!1,startFieldId:Ve?.id??null,endFieldId:be?.id??null,onOpen:M,onContextMenu:N,onResizeStart:Z})})()},x.row._file.path))]})]})]})}):(0,z.jsx)("div",{className:"nb-cal-no-field",children:(0,z.jsx)("p",{children:u("timeline_no_start_field")})}),kt.length>0&&(0,z.jsxs)("div",{className:"nb-tl-no-interval",children:[(0,z.jsxs)("div",{className:"nb-tl-no-interval-title",onClick:()=>re(x=>!x),children:[le?"\u25BE":"\u25B8"," ",u("timeline_no_interval")," (",kt.length,")"]}),le&&(0,z.jsx)("div",{className:"nb-tl-no-interval-list",children:kt.map(x=>(0,z.jsx)("div",{className:"nb-cal-card nb-cal-card--no-date",onClick:()=>{r.workspace.getLeaf().openFile(x._file)},children:(0,z.jsx)("span",{className:"nb-cal-card-title",children:x._title})},x._file.path))})]}),(0,z.jsxs)(st,{open:q!==null,onClose:()=>W(null),title:q?.basename??"",children:[(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>{q&&r.workspace.getLeaf().openFile(q),W(null)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,z.jsx)("span",{children:u("open_note")})]}),(0,z.jsxs)("button",{className:"nb-menu-item",onClick:()=>{q&&t.duplicateNotes([q]),W(null)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4CB}"}),(0,z.jsx)("span",{children:u("duplicate_note")})]}),(0,z.jsx)("div",{className:"nb-menu-separator"}),(0,z.jsxs)("button",{className:"nb-menu-item nb-menu-item--danger",onClick:()=>{q&&t.deleteNotes([q]),W(null)},children:[(0,z.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F5D1}"}),(0,z.jsx)("span",{children:u("delete_note")})]})]})]})}var gt=De(wt(),1),Ub=De(lo(),1);var B=De(vt(),1),jl=["#4c6ef5","#7950f2","#e64980","#f76707","#fab005","#40c057","#15aabf","#be4bdb","#fd7e14","#20c997","#228be6","#845ef7","#f06595","#ff922b","#fcc419","#51cf66","#22b8cf","#cc5de8","#ff6b6b","#38d9a9"];function Wb(e){let t=Math.abs(e);return t>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e4?(e/1e3).toFixed(0)+"k":t>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":Number.isInteger(e)?String(e):e.toFixed(1)}function Zm(e){return Number.isInteger(e)?e.toLocaleString():e.toLocaleString(void 0,{maximumFractionDigits:2})}function Gb(e,t){if(e<=t&&Number.isInteger(e))return Array.from({length:Math.floor(e)+1},(l,s)=>s);let n=e/t,o=Math.pow(10,Math.floor(Math.log10(n))),r=n/o,a=r<=1.5?o:r<=3?2*o:r<=7?5*o:10*o,i=[];for(let l=0;l<=e+a*.01;l+=a)i.push(Math.round(l*1e3)/1e3);return i[i.length-1]{let c=m[n];return typeof c=="number"?c:parseFloat(c==null?"":mt(c))}).filter(m=>!isNaN(m));switch(o){case"sum":p=g.reduce((m,c)=>m+c,0);break;case"avg":p=g.length>0?g.reduce((m,c)=>m+c,0)/g.length:0;break;case"min":p=g.length>0?Math.min(...g):0;break;case"max":p=g.length>0?Math.max(...g):0;break;default:p=g.reduce((m,c)=>m+c,0);break}}i.push({label:s,value:p,color:jl[l%jl.length]}),l++}return i}function SN({data:e,width:t,height:n}){if(e.length===0)return(0,B.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o={top:20,right:20,bottom:60,left:60},r=t-o.left-o.right,a=n-o.top-o.bottom,i=Math.max(...e.map(h=>h.value),1),l=Math.min(Math.max(r/e.length-4,8),60),s=e.length*(l+4),d=Math.max((r-s)/2,0),p=Gb(i,5),g=p[p.length-1]||i,[m,c]=(0,gt.useState)(null);return(0,B.jsxs)("g",{transform:`translate(${o.left},${o.top})`,children:[p.map((h,v)=>{let b=a-h/g*a;return(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{x1:0,y1:b,x2:r,y2:b,stroke:"var(--background-modifier-border)",strokeDasharray:"2,2"}),(0,B.jsx)("text",{x:-8,y:b+4,textAnchor:"end",fontSize:11,fill:"var(--text-muted)",children:Wb(h)})]},v)}),e.map((h,v)=>{let b=h.value/g*a,f=d+v*(l+4),_=a-b,w=`${h.label}: ${Zm(h.value)}`,S=Math.max(w.length*7,60);return(0,B.jsxs)("g",{onMouseEnter:()=>c(v),onMouseLeave:()=>c(null),children:[(0,B.jsx)("rect",{x:f,y:_,width:l,height:b,rx:2,fill:h.color,opacity:m===null||m===v?1:.4,style:{transition:"opacity 0.15s, height 0.3s, y 0.3s"}}),(0,B.jsx)("text",{x:f+l/2,y:a+14,textAnchor:"end",fontSize:11,fill:"var(--text-normal)",transform:`rotate(-35, ${f+l/2}, ${a+14})`,children:h.label.length>12?h.label.slice(0,11)+"\u2026":h.label}),m===v&&(0,B.jsxs)("g",{children:[(0,B.jsx)("rect",{x:f+l/2-S/2,y:_-28,width:S,height:22,rx:4,fill:"var(--background-primary)",stroke:"var(--background-modifier-border)"}),(0,B.jsx)("text",{x:f+l/2,y:_-13,textAnchor:"middle",fontSize:12,fontWeight:"600",fill:"var(--text-normal)",children:w})]})]},v)}),(0,B.jsx)("line",{x1:0,y1:0,x2:0,y2:a,stroke:"var(--background-modifier-border)"}),(0,B.jsx)("line",{x1:0,y1:a,x2:r,y2:a,stroke:"var(--background-modifier-border)"})]})}function NN({data:e,width:t,height:n}){if(e.length===0)return(0,B.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o=e.reduce((c,h)=>c+h.value,0);if(o===0)return(0,B.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let r=t*.4,a=n/2,i=Math.min(r,a)-20,[l,s]=(0,gt.useState)(null),d=-Math.PI/2,p=e.map((c,h)=>{let v=c.value/o*2*Math.PI,b=d;d+=v;let f=d,_=r+i*Math.cos(b),w=a+i*Math.sin(b),S=r+i*Math.cos(f),D=a+i*Math.sin(f),T=v>Math.PI?1:0,V=b+v/2,j=i+16,le=r+j*Math.cos(V),re=a+j*Math.sin(V),_e=e.length===1?`M ${r+i} ${a} A ${i} ${i} 0 1 1 ${r+i-.001} ${a}`:`M ${r} ${a} L ${_} ${w} A ${i} ${i} 0 ${T} 1 ${S} ${D} Z`,ye=l===h,Ce=ye?"scale(1.04)":"scale(1)",Oe=(c.value/o*100).toFixed(1);return(0,B.jsxs)("g",{onMouseEnter:()=>s(h),onMouseLeave:()=>s(null),style:{transformOrigin:`${r}px ${a}px`,transform:Ce,transition:"transform 0.15s"},children:[(0,B.jsx)("path",{d:_e,fill:c.color,opacity:l===null||ye?1:.5,stroke:"var(--background-primary)",strokeWidth:2}),v>.3&&(0,B.jsxs)("text",{x:le,y:re,textAnchor:"middle",fontSize:11,fill:"var(--text-muted)",children:[Oe,"%"]})]},h)}),g=t*.75,m=e.slice(0,12);return(0,B.jsxs)("g",{children:[p,m.map((c,h)=>(0,B.jsxs)("g",{transform:`translate(${g}, ${30+h*22})`,onMouseEnter:()=>s(h),onMouseLeave:()=>s(null),style:{cursor:"default"},children:[(0,B.jsx)("rect",{width:12,height:12,rx:2,fill:c.color}),(0,B.jsxs)("text",{x:18,y:10,fontSize:12,fill:"var(--text-normal)",children:[c.label.length>16?c.label.slice(0,15)+"\u2026":c.label," (",Zm(c.value),")"]})]},h)),e.length>12&&(0,B.jsxs)("text",{x:g,y:304,fontSize:11,fill:"var(--text-muted)",children:["+",e.length-12," ",u("board_show_more").toLowerCase()]})]})}function xN({data:e,width:t,height:n}){if(e.length===0)return(0,B.jsx)("text",{x:t/2,y:n/2,textAnchor:"middle",fill:"var(--text-muted)",children:u("no_results")});let o={top:20,right:20,bottom:60,left:60},r=t-o.left-o.right,a=n-o.top-o.bottom,i=Math.max(...e.map(f=>f.value),1),l=30,s=r-l*2,d=e.length>1?s/(e.length-1):0,p=Gb(i,5),g=p[p.length-1]||i,[m,c]=(0,gt.useState)(null),h=e.map((f,_)=>({x:l+(e.length===1?s/2:_*d),y:a-f.value/g*a})),v=h.map(f=>`${f.x},${f.y}`).join(" "),b=`M ${h[0].x} ${a} `+h.map(f=>`L ${f.x} ${f.y}`).join(" ")+` L ${h[h.length-1].x} ${a} Z`;return(0,B.jsxs)("g",{transform:`translate(${o.left},${o.top})`,children:[p.map((f,_)=>{let w=a-f/g*a;return(0,B.jsxs)("g",{children:[(0,B.jsx)("line",{x1:0,y1:w,x2:r,y2:w,stroke:"var(--background-modifier-border)",strokeDasharray:"2,2"}),(0,B.jsx)("text",{x:-8,y:w+4,textAnchor:"end",fontSize:11,fill:"var(--text-muted)",children:Wb(f)})]},_)}),(0,B.jsx)("path",{d:b,fill:jl[0],opacity:.1}),(0,B.jsx)("polyline",{points:v,fill:"none",stroke:jl[0],strokeWidth:2.5,strokeLinejoin:"round",strokeLinecap:"round"}),e.map((f,_)=>{let w=`${f.label}: ${Zm(f.value)}`,S=Math.max(w.length*7,60);return(0,B.jsxs)("g",{onMouseEnter:()=>c(_),onMouseLeave:()=>c(null),children:[(0,B.jsx)("circle",{cx:h[_].x,cy:h[_].y,r:m===_?6:4,fill:jl[0],stroke:"var(--background-primary)",strokeWidth:2,style:{transition:"r 0.15s"}}),(0,B.jsx)("text",{x:h[_].x,y:a+14,textAnchor:"end",fontSize:11,fill:"var(--text-normal)",transform:`rotate(-35, ${h[_].x}, ${a+14})`,children:f.label.length>12?f.label.slice(0,11)+"\u2026":f.label}),m===_&&(0,B.jsxs)("g",{children:[(0,B.jsx)("rect",{x:h[_].x-S/2,y:h[_].y-28,width:S,height:22,rx:4,fill:"var(--background-primary)",stroke:"var(--background-modifier-border)"}),(0,B.jsx)("text",{x:h[_].x,y:h[_].y-13,textAnchor:"middle",fontSize:12,fontWeight:"600",fill:"var(--text-normal)",children:w})]})]},_)}),(0,B.jsx)("line",{x1:0,y1:0,x2:0,y2:a,stroke:"var(--background-modifier-border)"}),(0,B.jsx)("line",{x1:0,y1:a,x2:r,y2:a,stroke:"var(--background-modifier-border)"})]})}function RN({sorts:e,schema:t,onSortChange:n,onClose:o,anchorRect:r,panelRef:a}){let[i,l]=(0,gt.useState)({x:r.right-280,y:r.bottom+4}),s=c=>{c.preventDefault();let h=c.clientX-i.x,v=c.clientY-i.y,b=_=>l({x:_.clientX-h,y:_.clientY-v}),f=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",b),window.addEventListener("mouseup",f)},d=t.filter(c=>c.type!=="formula"&&c.type!=="lookup"&&c.type!=="relation"&&c.type!=="multiselect"),p=new Set(e.map(c=>c.columnId)),g=[...p.has("_title")?[]:[{id:"_title",name:"Nome"}],...d.filter(c=>!p.has(c.id)).map(c=>({id:c.id,name:c.name}))],m=(c,h)=>{let v=[...e],b=c+h;b<0||b>=v.length||([v[c],v[b]]=[v[b],v[c]],n(v))};return(0,Ub.createPortal)((0,B.jsxs)("div",{ref:a,className:"nb-sort-panel",style:{position:"fixed",top:i.y,left:i.x},children:[(0,B.jsxs)("div",{className:"nb-sort-panel-titlebar",onMouseDown:s,children:[(0,B.jsx)("span",{className:"nb-sort-panel-title",children:u("sort_by")}),(0,B.jsx)("button",{className:"nb-sort-panel-close",onClick:o,title:u("tooltip_close"),children:"\xD7"})]}),e.length===0&&(0,B.jsx)("div",{className:"nb-sort-panel-empty",children:u("no_active_sorts")}),e.map((c,h)=>{let v=c.columnId==="_title"?"Nome":t.find(b=>b.id===c.columnId)?.name??c.columnId;return(0,B.jsxs)("div",{className:"nb-sort-row",children:[(0,B.jsxs)("div",{className:"nb-sort-row-priority",children:[(0,B.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,-1),disabled:h===0,title:u("tooltip_move_up"),children:"\u2191"}),(0,B.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>m(h,1),disabled:h===e.length-1,title:u("tooltip_move_down"),children:"\u2193"})]}),(0,B.jsx)("span",{className:"nb-sort-row-name",children:v}),(0,B.jsx)("button",{className:"nb-sort-dir-btn",onClick:()=>n(e.map(b=>b.columnId===c.columnId?{...b,direction:b.direction==="asc"?"desc":"asc"}:b)),children:c.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,B.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>n(e.filter(b=>b.columnId!==c.columnId)),title:u("tooltip_remove"),children:"\xD7"})]},c.columnId)}),g.length>0&&(0,B.jsx)("div",{className:"nb-sort-add-row",children:(0,B.jsxs)("select",{className:"nb-sort-add-select",value:"",onChange:c=>{c.target.value&&(n([...e,{columnId:c.target.value,direction:"asc"}]),c.target.value="")},children:[(0,B.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),g.map(c=>(0,B.jsx)("option",{value:c.id,children:c.name},c.id))]})})]}),activeDocument.body)}function jb(){return(0,B.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,B.jsx)("rect",{x:"3",y:"12",width:"4",height:"9"}),(0,B.jsx)("rect",{x:"10",y:"5",width:"4",height:"16"}),(0,B.jsx)("rect",{x:"17",y:"9",width:"4",height:"12"})]})}function EN(){return(0,B.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,B.jsx)("polyline",{points:"3 18 9 11 13 15 21 5"})})}function DN(){return(0,B.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,B.jsx)("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),(0,B.jsx)("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})}function qb({dbFile:e,manager:t,externalView:n,onViewChange:o}){let r=$t(),{rows:a,config:i,loading:l,activeFilters:s,setActiveFilters:d}=zn({app:r,dbFile:e,manager:t,includeSubfolders:n.includeSubfolders,externalView:n}),[p,g]=(0,gt.useState)(n),[m,c]=(0,gt.useState)(!1),[h,v]=(0,gt.useState)(!1),[b,f]=(0,gt.useState)(null),[_,w]=(0,gt.useState)(!1),S=(0,gt.useRef)(null),D=(0,gt.useRef)(null),T=(0,gt.useRef)(null),V=(0,gt.useRef)(null),j=(0,gt.useRef)(null),le=(0,gt.useRef)(null),[re,_e]=(0,gt.useState)({width:600,height:400});(0,gt.useEffect)(()=>{g(n)},[n.id]);let ye=(0,gt.useCallback)(async E=>{g(E),await o(E)},[o]),Ce=p.chartType??"bar",Oe=p.chartXAxis??"",q=p.chartYAxis??"_count",W=p.chartAggregation??"count";(0,gt.useEffect)(()=>{let E=le.current;if(!E)return;let oe=new ResizeObserver(ge=>{for(let ue of ge){let Ve=ue.contentRect.width,be=Math.max(ue.contentRect.height,300);_e({width:Math.max(Ve,300),height:Math.min(be,600)})}});return oe.observe(E),()=>oe.disconnect()},[l]),(0,gt.useEffect)(()=>{if(!m)return;let E=oe=>{j.current?.contains(oe.target)||S.current&&!S.current.contains(oe.target)&&c(!1)};return activeDocument.addEventListener("mousedown",E),()=>activeDocument.removeEventListener("mousedown",E)},[m]),(0,gt.useEffect)(()=>{if(!h)return;let E=oe=>{j.current?.contains(oe.target)||T.current?.contains(oe.target)||D.current&&!D.current.contains(oe.target)&&v(!1)};return activeDocument.addEventListener("mousedown",E),()=>activeDocument.removeEventListener("mousedown",E)},[h]),(0,gt.useEffect)(()=>{if(!_)return;let E=oe=>{j.current?.contains(oe.target)||V.current&&!V.current.contains(oe.target)&&w(!1)};return activeDocument.addEventListener("mousedown",E),()=>activeDocument.removeEventListener("mousedown",E)},[_]);let O=(0,gt.useCallback)(async E=>{let oe=E.map(ge=>({id:ge.id,columnId:ge.columnId,operator:ge.operator,value:ge.value,conjunction:ge.conjunction}));await ye({...p,activePills:oe})},[ye,p]),ne=(E,oe,ge,ue)=>{let Ve=[...s,{id:crypto.randomUUID(),columnId:E,columnName:oe,columnType:ue,icon:ge,operator:Fn(ue),value:"",conjunction:"and"}];d(Ve),O(Ve),c(!1)},fe=E=>{let oe=s.filter(ge=>ge.id!==E);d(oe),O(oe)},Ne=(E,oe,ge)=>{let ue=s.map(Ve=>Ve.id===E?{...Ve,operator:oe,value:ge}:Ve);d(ue),O(ue)},Be=E=>{let oe=s.map(ge=>ge.id===E?{...ge,conjunction:ge.conjunction==="and"?"or":"and"}:ge);d(oe),O(oe)},$e=(0,gt.useCallback)(async E=>{await ye({...p,sorts:E})},[p,ye]),je=Vn(s,200),nt=(0,gt.useMemo)(()=>On(a,je),[a,je]),ve=(0,gt.useMemo)(()=>Zn(nt,p.sorts),[nt,p.sorts]),Me=(0,gt.useMemo)(()=>{if(!Oe)return[];let E=kN(ve,Oe,q==="_count"?void 0:q,W,i.schema);return p.sorts.length===0&&E.sort((oe,ge)=>ge.value-oe.value),E},[ve,Oe,q,W,i.schema,p.sorts.length]),ze=(0,gt.useMemo)(()=>{let E=i.schema.filter(oe=>oe.visible&&["text","select","multiselect","status","date","checkbox"].includes(oe.type));return[{id:"_title",name:u("name_column"),type:"title"},...E]},[i.schema]),He=(0,gt.useMemo)(()=>{let E=i.schema.filter(oe=>oe.visible&&oe.type==="number");return[{id:"_count",name:u("chart_count_records"),type:"count"},...E]},[i.schema]),Ue=wn();if(!e)return(0,B.jsx)("div",{className:"nb-empty-state",children:(0,B.jsx)("p",{children:u("no_database_open")})});if(l)return(0,B.jsx)("div",{className:"nb-loading",children:u("loading")});let Fe=E=>{E!=="filter"&&c(!1),E!=="sort"&&v(!1),E!=="config"&&w(!1)},ot=(0,B.jsxs)("div",{className:"nb-chart-config-body",children:[(0,B.jsxs)("div",{className:"nb-chart-config-row",children:[(0,B.jsx)("label",{className:"nb-chart-config-label",children:u("chart_type")}),(0,B.jsx)("div",{className:"nb-chart-type-btns",children:["bar","line","pie"].map(E=>(0,B.jsxs)("button",{className:`nb-chart-type-btn${Ce===E?" nb-chart-type-btn--active":""}`,onClick:()=>{ye({...p,chartType:E})},title:u(`chart_type_${E}`),children:[E==="bar"&&(0,B.jsx)(jb,{}),E==="line"&&(0,B.jsx)(EN,{}),E==="pie"&&(0,B.jsx)(DN,{})]},E))})]}),(0,B.jsxs)("div",{className:"nb-chart-config-row",children:[(0,B.jsx)("label",{className:"nb-chart-config-label",children:u("chart_x_axis")}),(0,B.jsxs)("select",{className:"nb-chart-config-select",value:Oe,onChange:E=>{ye({...p,chartXAxis:E.target.value})},children:[(0,B.jsx)("option",{value:"",children:u("chart_select_column")}),ze.map(E=>(0,B.jsx)("option",{value:E.id,children:E.name},E.id))]})]}),(0,B.jsxs)("div",{className:"nb-chart-config-row",children:[(0,B.jsx)("label",{className:"nb-chart-config-label",children:u("chart_y_axis")}),(0,B.jsx)("select",{className:"nb-chart-config-select",value:q,onChange:E=>{ye({...p,chartYAxis:E.target.value})},children:He.map(E=>(0,B.jsx)("option",{value:E.id,children:E.name},E.id))})]}),q!=="_count"&&(0,B.jsxs)("div",{className:"nb-chart-config-row",children:[(0,B.jsx)("label",{className:"nb-chart-config-label",children:u("chart_aggregation")}),(0,B.jsxs)("select",{className:"nb-chart-config-select",value:W,onChange:E=>{ye({...p,chartAggregation:E.target.value})},children:[(0,B.jsx)("option",{value:"sum",children:u("agg_sum")}),(0,B.jsx)("option",{value:"avg",children:u("agg_avg")}),(0,B.jsx)("option",{value:"min",children:u("agg_min")}),(0,B.jsx)("option",{value:"max",children:u("agg_max")})]})]})]}),Y=Ue?(0,B.jsxs)(jn,{actionBarRef:j,actions:[{id:"config",label:u("chart_configure"),icon:(0,B.jsx)(jb,{}),active:_,onClick:()=>{Fe("config"),w(E=>!E)}},{id:"subfolders",label:u("tooltip_include_subfolders"),icon:(0,B.jsx)(Hn,{}),active:!!p.includeSubfolders,onClick:()=>{Fe(),ye({...p,includeSubfolders:!p.includeSubfolders})}},{id:"sort",label:u("sort"),icon:(0,B.jsx)(po,{}),active:p.sorts.length>0,badge:p.sorts.length||void 0,onClick:()=>{Fe("sort"),!h&&T.current&&f(T.current.getBoundingClientRect()),v(E=>!E)}},{id:"filter",label:u("filter"),icon:(0,B.jsx)(Bn,{}),active:m,badge:s.length||void 0,onClick:()=>{Fe("filter"),c(E=>!E)}}],rowCount:ve.length,rowCountLabel:ve.length===1?u("record_singular").toLowerCase():u("record_plural").toLowerCase(),filters:s,onFilterUpdate:Ne,onFilterRemove:fe,onConjunctionToggle:Be,children:[(0,B.jsx)(st,{open:_,onClose:()=>w(!1),title:u("chart_configure"),children:ot}),(0,B.jsxs)(st,{open:m,onClose:()=>c(!1),title:u("filter"),children:[(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ne("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:u("name_column")})]}),i.schema.map(E=>(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ne(E.id,E.name,Je(E.type),E.type),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:Je(E.type)}),(0,B.jsx)("span",{children:E.name})]},E.id))]}),(0,B.jsxs)(st,{open:h,onClose:()=>v(!1),title:u("sort"),children:[p.sorts.length===0&&(0,B.jsx)("div",{className:"nb-sort-panel-empty",style:{padding:"8px 0"},children:u("no_active_sorts")}),p.sorts.map((E,oe)=>{let ge=E.columnId==="_title"?"Nome":i.schema.find(ue=>ue.id===E.columnId)?.name??E.columnId;return(0,B.jsxs)("div",{className:"nb-sort-row",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 0",minHeight:"44px"},children:[(0,B.jsxs)("div",{className:"nb-sort-row-priority",style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,B.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let ue=[...p.sorts];oe>0&&([ue[oe],ue[oe-1]]=[ue[oe-1],ue[oe]],$e(ue))},disabled:oe===0,children:"\u2191"}),(0,B.jsx)("button",{className:"nb-sort-priority-btn",onClick:()=>{let ue=[...p.sorts];oe{$e(p.sorts.map(ue=>ue.columnId===E.columnId?{...ue,direction:ue.direction==="asc"?"desc":"asc"}:ue))},children:E.direction==="asc"?u("sort_asc"):u("sort_desc")}),(0,B.jsx)("button",{className:"nb-sort-remove-btn",onClick:()=>{$e(p.sorts.filter(ue=>ue.columnId!==E.columnId))},children:"\xD7"})]},E.columnId)}),(()=>{let E=i.schema.filter(ue=>ue.type!=="formula"&&ue.type!=="lookup"&&ue.type!=="relation"&&ue.type!=="multiselect"),oe=new Set(p.sorts.map(ue=>ue.columnId)),ge=[...oe.has("_title")?[]:[{id:"_title",name:"Nome"}],...E.filter(ue=>!oe.has(ue.id)).map(ue=>({id:ue.id,name:ue.name}))];return ge.length===0?null:(0,B.jsxs)("select",{className:"nb-mobile-filter-overlay-select",style:{width:"100%",marginTop:"8px",padding:"10px"},value:"",onChange:ue=>{ue.target.value&&($e([...p.sorts,{columnId:ue.target.value,direction:"asc"}]),ue.target.value="")},children:[(0,B.jsx)("option",{value:"",children:"+ "+u("add_sort")+"..."}),ge.map(ue=>(0,B.jsx)("option",{value:ue.id,children:ue.name},ue.id))]})})()]})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"nb-toolbar",children:[(0,B.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:V,children:[(0,B.jsx)("button",{className:`nb-toolbar-btn ${_?"nb-toolbar-btn--active":""}`,onClick:()=>w(E=>!E),children:u("chart_configure")}),_&&(0,B.jsxs)("div",{className:"nb-fields-dropdown nb-chart-config-dropdown",children:[(0,B.jsx)("div",{className:"nb-fields-dropdown-label",children:u("chart_configure")}),ot]})]}),(0,B.jsx)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon nb-subfolder-toggle ${p.includeSubfolders?"nb-toolbar-btn--active":""}`,onClick:()=>{ye({...p,includeSubfolders:!p.includeSubfolders})},title:u("tooltip_include_subfolders"),children:(0,B.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,B.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),(0,B.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),(0,B.jsx)("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})}),(0,B.jsxs)("span",{className:"nb-row-count",children:[ve.length," ",ve.length===1?u("record_singular").toLowerCase():u("record_plural").toLowerCase()]}),(0,B.jsxs)("div",{className:"nb-fields-menu-wrapper",ref:S,style:{marginLeft:"auto"},children:[(0,B.jsxs)("button",{className:`nb-toolbar-btn nb-toolbar-btn--icon ${m?"nb-toolbar-btn--active":""}`,onClick:()=>c(E=>!E),title:u("filters"),children:[(0,B.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,B.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),s.length>0&&(0,B.jsx)("span",{className:"nb-hidden-badge",children:s.length})]}),m&&(0,B.jsxs)("div",{className:"nb-fields-dropdown nb-filter-menu-dropdown",children:[(0,B.jsx)("div",{className:"nb-fields-dropdown-label",children:u("filter_by")}),(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ne("_title",u("name_column"),"\u{1F4C4}","title"),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:"\u{1F4C4}"}),(0,B.jsx)("span",{children:u("name_column")})]}),i.schema.map(E=>(0,B.jsxs)("button",{className:"nb-menu-item",onClick:()=>ne(E.id,E.name,Je(E.type),E.type),children:[(0,B.jsx)("span",{className:"nb-menu-item-icon",children:Je(E.type)}),(0,B.jsx)("span",{children:E.name})]},E.id))]})]}),(0,B.jsxs)("button",{ref:T,className:`nb-toolbar-btn${p.sorts.length>0?" nb-toolbar-btn--active":""}`,onClick:()=>{!h&&T.current&&f(T.current.getBoundingClientRect()),v(E=>!E)},children:[(0,B.jsx)("span",{children:u("sort")}),p.sorts.length>0&&(0,B.jsx)("span",{className:"nb-hidden-badge",children:p.sorts.length})]}),h&&b&&(0,B.jsx)(RN,{sorts:p.sorts,schema:i.schema,onSortChange:E=>{$e(E)},onClose:()=>v(!1),anchorRect:b,panelRef:D})]}),(0,B.jsx)(mo,{activeFilters:s,schema:i.schema,onUpdate:Ne,onRemove:fe,onToggleConjunction:Be,collapsed:!!p.filtersCollapsed,onToggleCollapsed:()=>{ye({...p,filtersCollapsed:!p.filtersCollapsed})}})]});return Oe?(0,B.jsxs)("div",{className:"nb-container",children:[Y,(0,B.jsx)("div",{className:"nb-chart-wrapper",ref:le,children:(0,B.jsxs)("svg",{className:"nb-chart-svg",width:re.width,height:re.height,viewBox:`0 0 ${re.width} ${re.height}`,children:[Ce==="bar"&&(0,B.jsx)(SN,{data:Me,width:re.width,height:re.height}),Ce==="pie"&&(0,B.jsx)(NN,{data:Me,width:re.width,height:re.height}),Ce==="line"&&(0,B.jsx)(xN,{data:Me,width:re.width,height:re.height})]})})]}):(0,B.jsxs)("div",{className:"nb-container",children:[Y,(0,B.jsxs)("div",{className:"nb-chart-empty",children:[(0,B.jsx)("p",{children:u("chart_no_config")}),(0,B.jsx)("p",{className:"nb-chart-empty-hint",children:u("chart_no_config_hint")})]})]})}var lt=De(vt(),1),cc={table:"\u229E",list:"\u2261",board:"\u25A6",gallery:"\u229F",calendar:"\u{1F4C5}",timeline:"\u25AC",chart:"\u{1F4CA}"},Vr=()=>({table:u("view_table"),list:u("view_list"),board:u("view_board"),gallery:u("view_gallery"),calendar:u("view_calendar"),timeline:u("view_timeline"),chart:u("view_chart")});function dc({dbFile:e,manager:t,externalView:n,onViewChange:o,embedState:r,onEmbedStateChange:a}){let i=$t(),[l,s]=(0,Nt.useState)(xr),d=(0,Nt.useRef)(0),p=(0,Nt.useCallback)(async Y=>{if(e){d.current++;try{await t.writeConfig(e,Y)}finally{window.setTimeout(()=>{d.current=Math.max(0,d.current-1)},150)}}},[e,t]),[g,m]=(0,Nt.useState)(""),[c,h]=(0,Nt.useState)(!1),v=(0,Nt.useRef)(null),[b,f]=(0,Nt.useState)(r?.views??[]),[_,w]=(0,Nt.useState)(r?.activeViewId??""),[S,D]=(0,Nt.useState)(!!r),[T,V]=(0,Nt.useState)(!1),j=(0,Nt.useRef)(null),le=!!n,re=!!a&&!le,_e=!le&&!re,[ye,Ce]=(0,Nt.useState)(null),[Oe,q]=(0,Nt.useState)(""),W=(0,Nt.useRef)(null),[O,ne]=(0,Nt.useState)(null),[fe,Ne]=(0,Nt.useState)(null);(0,Nt.useEffect)(()=>{if(!e||le)return;let Y=t.readConfig(e);if(s(Y),_e)m(E=>E&&Y.views.some(oe=>oe.id===E)?E:Y.views[0]?.id??"");else if(re&&!S){let E=Y.views.map(ge=>({...ge,id:crypto.randomUUID()})),oe={activeViewId:E[0]?.id??"",views:E};f(E),w(E[0]?.id??""),D(!0),a(oe)}},[e,t,le]),(0,Nt.useEffect)(()=>{if(!e||!_e)return;let Y=E=>{E===e&&(d.current>0||s(t.readConfig(e)))};return i.metadataCache.on("changed",Y),()=>i.metadataCache.off("changed",Y)},[e,t,i,_e]),(0,Nt.useEffect)(()=>{if(!c)return;let Y=E=>{v.current&&!v.current.contains(E.target)&&h(!1)};return activeDocument.addEventListener("mousedown",Y),()=>activeDocument.removeEventListener("mousedown",Y)},[c]),(0,Nt.useEffect)(()=>{if(!T)return;let Y=E=>{j.current&&!j.current.contains(E.target)&&V(!1)};return activeDocument.addEventListener("mousedown",Y),()=>activeDocument.removeEventListener("mousedown",Y)},[T]);let Be=(Y,E)=>{Ce(Y),q(E),window.requestAnimationFrame(()=>{W.current?.select()})},$e=(0,Nt.useCallback)(async(Y,E,oe)=>{if(!ye)return;let ge=E.trim();if(ge){let ue=Y.map(Ve=>Ve.id===ye?{...Ve,name:ge}:Ve);await oe(ue)}Ce(null)},[ye]),je=(Y,E,oe)=>{let ge=Y.findIndex(xe=>xe.id===E),ue=Y.findIndex(xe=>xe.id===oe);if(ge<0||ue<0)return Y;let Ve=[...Y],[be]=Ve.splice(ge,1);return Ve.splice(ue,0,be),Ve},nt=async Y=>{if(Ne(null),!O||O===Y||!e){ne(null);return}let E=je(l.views,O,Y),oe={...l,views:E};s(oe),ne(null),await p(oe)},ve=async Y=>{if(Ne(null),!O||O===Y){ne(null);return}let E=je(b,O,Y);f(E),ne(null),await a({activeViewId:_,views:E})};function Me(Y,E,oe){let ge={key:oe,dbFile:e,manager:t,externalView:Y,onViewChange:E};return Y.type==="list"?(0,lt.jsx)(Db,{...ge}):Y.type==="board"?(0,lt.jsx)(Fb,{...ge}):Y.type==="gallery"?(0,lt.jsx)(Pb,{...ge}):Y.type==="calendar"?(0,lt.jsx)(Ob,{...ge}):Y.type==="timeline"?(0,lt.jsx)(Hb,{...ge}):Y.type==="chart"?(0,lt.jsx)(qb,{...ge}):(0,lt.jsx)(Gm,{dbFile:e,manager:t,externalView:Y,onViewChange:E},oe)}if(le)return Me(n,o);if(re){let Y=b.find(be=>be.id===_)??b[0]??Qn,E=async be=>{let xe=b.map(ft=>ft.id===be.id?be:ft);f(xe),await a({activeViewId:_,views:xe})},oe=async be=>{let xe={...Qn,id:crypto.randomUUID(),type:be,name:Vr()[be]??be,filters:[],sorts:[],hiddenColumns:[],columnWidths:{}},ft=[...b,xe];f(ft),w(xe.id),V(!1),await a({activeViewId:xe.id,views:ft})},ge=async be=>{if(b.length<=1)return;let xe=b.filter(kt=>kt.id!==be),ft=_===be?xe[0].id:_;f(xe),w(ft),await a({activeViewId:ft,views:xe})},ue=be=>{w(be),a({activeViewId:be,views:b})},Ve=async be=>{f(be),await a({activeViewId:_,views:be})};return(0,lt.jsxs)(Nt.Fragment,{children:[(0,lt.jsxs)("div",{className:"nb-view-tabs nb-view-tabs--embed",children:[b.map(be=>(0,lt.jsxs)("button",{className:`nb-view-tab${be.id===_?" nb-view-tab--active":""}${fe===be.id&&O!==be.id?" nb-view-tab--drag-over":""}`,draggable:!0,onDragStart:()=>ne(be.id),onDragOver:xe=>{xe.preventDefault(),Ne(be.id)},onDragLeave:()=>Ne(null),onDrop:()=>{ve(be.id)},onDragEnd:()=>{ne(null),Ne(null)},onClick:()=>ye!==be.id&&ue(be.id),children:[(0,lt.jsx)("span",{className:"nb-view-tab-icon",children:cc[be.type]??"\u25A1"}),ye===be.id?(0,lt.jsx)("input",{ref:W,className:"nb-view-tab-rename-input",value:Oe,onChange:xe=>q(xe.target.value),onBlur:()=>{$e(b,Oe,Ve)},onKeyDown:xe=>{xe.key==="Enter"&&(xe.preventDefault(),$e(b,Oe,Ve)),xe.key==="Escape"&&(xe.preventDefault(),Ce(null))},onClick:xe=>xe.stopPropagation()}):(0,lt.jsx)("span",{onDoubleClick:xe=>{xe.stopPropagation(),Be(be.id,be.name??Vr()[be.type]??be.type)},title:u("rename_view_hint"),children:be.name??Vr()[be.type]??be.type}),b.length>1&&ye!==be.id&&(0,lt.jsx)("span",{className:"nb-view-tab-remove",onClick:xe=>{xe.stopPropagation(),ge(be.id)},title:u("remove_view"),children:"\xD7"})]},be.id)),(0,lt.jsxs)("div",{className:"nb-view-tab-add",ref:j,children:[(0,lt.jsx)("button",{className:"nb-view-tab-add-btn",onClick:()=>V(be=>!be),title:u("add_view"),children:"+"}),T&&(0,lt.jsxs)("div",{className:"nb-view-add-menu nb-fields-dropdown",children:[(0,lt.jsx)("div",{className:"nb-fields-dropdown-label",children:u("add_view")}),["table","list","board","gallery","calendar","timeline","chart"].map(be=>(0,lt.jsxs)("button",{className:"nb-menu-item",onClick:()=>{oe(be)},children:[(0,lt.jsx)("span",{className:"nb-menu-item-icon",children:cc[be]}),(0,lt.jsx)("span",{children:Vr()[be]})]},be))]})]})]}),Me(Y,E,_)]})}let ze=(0,Nt.useCallback)(async Y=>{if(!e)return;let E=l.views.map(ge=>ge.id===Y.id?Y:ge),oe={...l,views:E};s(oe),await p(oe)},[l,e,p]),He=(0,Nt.useCallback)(async Y=>{if(!e)return;let E=l.views.length===1,oe=E?l.schema.map(xe=>({...xe,visible:!0})):l.schema,ge=E?{...l.views[0],hiddenColumns:[...l.views[0].hiddenColumns??[],...l.schema.filter(xe=>!xe.visible).map(xe=>xe.id)]}:l.views[0],ue={...Qn,id:crypto.randomUUID(),type:Y,name:Vr()[Y]??Y,filters:[],sorts:[],hiddenColumns:[],columnWidths:{}},Ve=E?[ge,ue]:[...l.views,ue],be={schema:oe,views:Ve};s(be),m(ue.id),h(!1),await p(be)},[l,e,p]),Ue=(0,Nt.useCallback)(async Y=>{if(!e||l.views.length<=1)return;let E=l.views.filter(ge=>ge.id!==Y),oe={...l,views:E};s(oe),g===Y&&m(E[0].id),await p(oe)},[l,e,p,g]),Fe=l.views.find(Y=>Y.id===g)??l.views[0]??Qn,ot=async Y=>{if(!e)return;let E={...l,views:Y};s(E),await p(E)};return(0,lt.jsxs)(Nt.Fragment,{children:[(0,lt.jsxs)("div",{className:"nb-view-tabs",children:[l.views.map(Y=>(0,lt.jsxs)("button",{className:`nb-view-tab${Y.id===g?" nb-view-tab--active":""}${fe===Y.id&&O!==Y.id?" nb-view-tab--drag-over":""}`,draggable:!0,onDragStart:()=>ne(Y.id),onDragOver:E=>{E.preventDefault(),Ne(Y.id)},onDragLeave:()=>Ne(null),onDrop:()=>{nt(Y.id)},onDragEnd:()=>{ne(null),Ne(null)},onClick:()=>ye!==Y.id&&m(Y.id),children:[(0,lt.jsx)("span",{className:"nb-view-tab-icon",children:cc[Y.type]??"\u25A1"}),ye===Y.id?(0,lt.jsx)("input",{ref:W,className:"nb-view-tab-rename-input",value:Oe,onChange:E=>q(E.target.value),onBlur:()=>{$e(l.views,Oe,ot)},onKeyDown:E=>{E.key==="Enter"&&(E.preventDefault(),$e(l.views,Oe,ot)),E.key==="Escape"&&(E.preventDefault(),Ce(null))},onClick:E=>E.stopPropagation()}):(0,lt.jsx)("span",{onDoubleClick:E=>{E.stopPropagation(),Be(Y.id,Y.name??Vr()[Y.type]??Y.type)},title:u("rename_view_hint"),children:Y.name??Vr()[Y.type]??Y.type}),l.views.length>1&&ye!==Y.id&&(0,lt.jsx)("span",{className:"nb-view-tab-remove",onClick:E=>{E.stopPropagation(),Ue(Y.id)},title:u("remove_view"),children:"\xD7"})]},Y.id)),(0,lt.jsxs)("div",{className:"nb-view-tab-add",ref:v,children:[(0,lt.jsx)("button",{className:"nb-view-tab-add-btn",onClick:()=>h(Y=>!Y),title:u("add_view"),children:"+"}),c&&(0,lt.jsxs)("div",{className:"nb-view-add-menu nb-fields-dropdown",children:[(0,lt.jsx)("div",{className:"nb-fields-dropdown-label",children:u("add_view")}),["table","list","board","gallery","calendar","timeline","chart"].map(Y=>(0,lt.jsxs)("button",{className:"nb-menu-item",onClick:()=>{He(Y)},children:[(0,lt.jsx)("span",{className:"nb-menu-item-icon",children:cc[Y]}),(0,lt.jsx)("span",{children:Vr()[Y]})]},Y))]})]}),(0,lt.jsx)("button",{className:"nb-view-tab-settings-btn",title:u("db_settings_open"),onClick:()=>{if(!e)return;let Y=(()=>{let E=Fe.activePills??[];if(E.length===0)return;let oe=am(E,l.schema);if(oe.length===0)return;let ue=t.getNotesInDatabase(e,Fe.includeSubfolders).map(xe=>t.getNoteDataSync(xe,l.schema)),Ve=t.resolveRollupsForRows(t.resolveLookupsForRows(Iu(ue,l.schema),l.schema),l.schema),be=On(Ve,oe);return new Set(be.map(xe=>xe._file.path))})();new Tu(i,l,async E=>{let oe={...l,...E};s(oe),await p(oe)},t,e,Y).open()},children:"\u2699"})]}),Fe.type==="table"?(0,lt.jsx)(Gm,{dbFile:e,manager:t,externalView:Fe,onViewChange:ze},g):Me(Fe,ze,g)]})}var Ul="notion-bases-view",Na=class extends Yb.ItemView{constructor(n,o){super(n);this.root=null;this.dbFilePath="";this.plugin=o}getViewType(){return Ul}getDisplayText(){return this.dbFilePath?this.app.vault.getFileByPath(this.dbFilePath)?.parent?.name??u("view_fallback_name"):u("plugin_display_name")}getIcon(){return"table"}async setState(n,o){n.dbFilePath&&(this.dbFilePath=n.dbFilePath),await super.setState(n,o),this.render()}getState(){return{dbFilePath:this.dbFilePath}}setDatabaseFile(n){this.dbFilePath=n.path,this.render()}getDatabaseFilePath(){return this.dbFilePath}async onOpen(){}async onClose(){this.root?.unmount(),this.root=null}render(){let n=this.containerEl.children[1];if(!n)return;this.root&&(this.root.unmount(),this.root=null),n.empty(),n.addClass("notion-bases-view-container");let o=this.dbFilePath?this.app.vault.getFileByPath(this.dbFilePath)??null:null,r=this.plugin.manager;this.root=(0,Kb.createRoot)(n),this.root.render((0,Jm.createElement)(Dl.Provider,{value:this.app},(0,Jm.createElement)(dc,{dbFile:o,manager:r})))}};var mn=require("obsidian");var FN=/^(`{3,}|~{3,})/,MN=/`[^`]+`/g,TN=/^([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*(.*)$/,Xb=/\[([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*([^\]]*)\]/g,Qb=/\(([A-Za-z0-9\u00C0-\u024F_ -]+)::\s*([^)]*)\)/g;function PN(e){let t=e.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);return t?e.slice(t[0].length):e}function Zb(e){let t=e.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);return t?t[0].split(/\r?\n/).length-1:0}function ef(e){return e.replace(/[*_~]/g,"").trim().toLowerCase().replace(/\s+/g,"-")}var LN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2})?)?$/,AN=/^\[\[.+\]\]$/,IN=/^-?\d+(\.\d+)?$/;function tf(e){let t=e.trim();return t===""?null:t==="true"?!0:t==="false"?!1:IN.test(t)?Number(t):(LN.test(t)||AN.test(t),t)}function nf(e){let n=PN(e).split(/\r?\n/),o=[],r=!1,a="";for(let i=0;i|]/g,"").replace(/\s+/g," ").trim()}var mc=class{constructor(t,n){this.app=t;this.databaseFileName=n;this.readInlineFields=!1;this.pageSize=0;this.folderArrangementInProgress=new Set}isDatabaseFile(t){return this.app.metadataCache.getFileCache(t)?.frontmatter?.[pc]===!0}getDatabaseFileInFolder(t){let n=(0,mn.normalizePath)(t?`${t}/${this.databaseFileName}`:this.databaseFileName);return this.app.vault.getFileByPath(n)??null}readConfig(t){let o=this.app.metadataCache.getFileCache(t)?.frontmatter,r=da(o)?o:void 0;if(!r||!r[pc])return structuredClone(xr);let i=(Array.isArray(r.schema)?r.schema:[]).filter(d=>d.id&&typeof d.id=="string"&&!d.id.startsWith("notion-bases")&&d.type&&!d.options?.some(p=>p.value==="[object Object]")),l=r.folderArrangement,s;if(l&&typeof l=="object"&&!Array.isArray(l)){let d=l,p=Array.isArray(d.propertyIds)?d.propertyIds.filter(g=>typeof g=="string"):[];s={enabled:d.enabled===!0,propertyIds:p}}return{schema:i,views:Array.isArray(r.views)&&r.views.length>0?r.views:[Qn],templatePath:typeof r.templatePath=="string"&&r.templatePath?r.templatePath:void 0,templateFolder:typeof r.templateFolder=="string"&&r.templateFolder?r.templateFolder:void 0,askTemplateOnCreate:r.askTemplateOnCreate===!0,folderArrangement:s}}async writeConfig(t,n){await this.app.fileManager.processFrontMatter(t,o=>{o[pc]=!0,o.schema=n.schema,o.views=n.views,n.templatePath?o.templatePath=n.templatePath:delete o.templatePath,n.templateFolder?o.templateFolder=n.templateFolder:delete o.templateFolder,n.askTemplateOnCreate?o.askTemplateOnCreate=!0:delete o.askTemplateOnCreate,n.folderArrangement&&n.folderArrangement.propertyIds.length>0?o.folderArrangement={enabled:!!n.folderArrangement.enabled,propertyIds:n.folderArrangement.propertyIds}:delete o.folderArrangement})}getNotesInDatabase(t,n){let o=t.parent??this.app.vault.getRoot();if(!o)return[];if(n){let r=[],a=i=>{for(let l of i.children)l instanceof mn.TFile&&l.extension==="md"&&l.path!==t.path?r.push(l):l instanceof mn.TFolder&&a(l)};return a(o),r.sort((i,l)=>i.basename.localeCompare(l.basename))}return o.children.filter(r=>r instanceof mn.TFile&&r.extension==="md"&&r.path!==t.path).sort((r,a)=>r.basename.localeCompare(a.basename))}getNoteDataSync(t,n){let r=this.app.metadataCache.getFileCache(t)?.frontmatter??{},a={_file:t,_title:t.basename};for(let i of n)i.type==="formula"||i.type==="lookup"||i.type==="rollup"||(a[i.id]=r[i.id]??null);return a}async getNoteData(t,n){let o=this.getNoteDataSync(t,n);if(this.readInlineFields){let r=await this.app.vault.cachedRead(t),a=nf(r),i=Zb(r),l={};for(let s of a){let d=n.find(p=>p.id===s.key);d&&o[d.id]==null&&(d.type==="multiselect"&&typeof s.value=="string"?o[d.id]=s.value.split(",").map(p=>p.trim()).filter(Boolean):o[d.id]=s.value,l[d.id]={format:s.format,rawKey:s.rawKey,rawValue:s.rawValue,lineNumber:i+s.lineNumber,fullMatch:s.fullMatch})}Object.keys(l).length>0&&(o._inlineFields=l)}return o}async updateNoteField(t,n,o,r){let a=r?.[n];a&&this.readInlineFields?o==null||o===""?await this.removeInlineField(t,a):await this.updateInlineField(t,o,a):await this.updateFrontmatterField(t,n,o)}async updateFrontmatterField(t,n,o){await this.app.fileManager.processFrontMatter(t,r=>{o==null||o===""?delete r[n]:r[n]=o})}async updateInlineField(t,n,o){let r=await this.app.vault.read(t),a=r.indexOf(o.fullMatch);if(a===-1){await this.app.fileManager.processFrontMatter(t,d=>{d[o.rawKey]=n});return}let i=this.serializeInlineValue(n),l;switch(o.format){case"standalone":l=`${o.rawKey}:: ${i}`;break;case"bracketed":l=`[${o.rawKey}:: ${i}]`;break;case"parenthesized":l=`(${o.rawKey}:: ${i})`;break}let s=r.slice(0,a)+l+r.slice(a+o.fullMatch.length);await this.app.vault.modify(t,s)}async removeInlineField(t,n){let o=await this.app.vault.read(t),r=o.indexOf(n.fullMatch);if(r===-1)return;let a;if(n.format==="standalone"){let i=o.lastIndexOf(` `,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,v=>{let h=Array.isArray(v[n.pairedColumnId])?v[n.pairedColumnId]:v[n.pairedColumnId]?[String(v[n.pairedColumnId])]:[];h.includes(l)||(v[n.pairedColumnId]=[...h,l])}),d.includes(c)&&await this.app.fileManager.processFrontMatter(p,v=>{let b=(Array.isArray(v[n.pairedColumnId])?v[n.pairedColumnId]:v[n.pairedColumnId]?[String(v[n.pairedColumnId])]:[]).filter(f=>f!==l);b.length>0?v[n.pairedColumnId]=b:delete v[n.pairedColumnId]})}}async renameNote(t,n){if(!n.trim()||n===t.basename)return;let o=(0,_n.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,_n.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(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,`--- --- -`);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 ii(this.app,i=>a(i),o.templatePath?this.folderOf(o.templatePath):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,_n.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,(v,h)=>d(String(h))).replace(/\{\{time:([^}]+)\}\}/g,(v,h)=>p(String(h))).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 v={};for(let[h,b]of Object.entries(c))v[h]=m(b);return v}return c};if(a){let c={};try{let v=(0,_n.parseYaml)(a[1]);v&&typeof v=="object"&&!Array.isArray(v)&&(c=m(v))}catch{c={}}Object.keys(c).length>0&&await this.app.fileManager.processFrontMatter(t,v=>{for(let[h,b]of Object.entries(c)){let f=v[h];(f==null||f==="")&&(v[h]=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=sa(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 v;if(typeof c=="string")v=c;else if(typeof c=="number"||typeof c=="boolean"||typeof c=="bigint")v=String(c);else continue;let h=CN(v);if(!h)break;l.push(h)}let d=[n.parent?.path??"",...l].filter(Boolean).join("/"),p=(0,_n.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(h=>h.id===l.rollupRelationColumnId);if(!s||!s.refDatabasePath){i[l.id]=null;continue}let d=r.get(s.refDatabasePath)??[],p=a[s.id],g=Array.isArray(p)?p.filter(h=>typeof h=="string"):typeof p=="string"&&p?[p]:[];if(g.length===0){i[l.id]=null;continue}let m=d.filter(h=>g.includes(h._title)),c=l.rollupTargetColumnId,v=m.map(h=>c==="_title"?h._title:h[c]).filter(h=>h!=null);i[l.id]=this.applyRollupFunction(v,l.rollupFunction)}return i})}applyRollupFunction(t,n){if(t.length===0)return null;switch(n){case"count":return t.length;case"count_values":return new Set(t.map(o=>String(o))).size;case"list":return t.map(o=>String(o)).join(", ");case"sum":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?o.reduce((r,a)=>r+a,0):null}case"avg":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.round(o.reduce((r,a)=>r+a,0)/o.length*100)/100:null}case"min":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.min(...o):null}case"max":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.max(...o):null}default:return null}}async deleteNotes(t){for(let n of t)await this.app.fileManager.trashFile(n)}async duplicateNotes(t){for(let n of t){let o=n.parent?.path??"",r=(0,_n.normalizePath)(`${o}/${n.basename} ${u("db_copy_suffix")}.md`),a=2;for(;this.app.vault.getFileByPath(r);)r=(0,_n.normalizePath)(`${o}/${n.basename} ${u("db_copy_suffix_n").replace("$n",String(a++))}.md`);let i=await this.app.vault.read(n);await this.app.vault.create(r,i)}}async moveNotes(t,n){for(let o of t){let r=(0,_n.normalizePath)(`${n}/${o.name}`);await this.app.fileManager.renameFile(o,r)}}async createDatabase(t){let n=(0,_n.normalizePath)(t?`${t}/${this.databaseFileName}`:this.databaseFileName);if(this.app.vault.getFileByPath(n))throw new Error(u("db_already_exists").replace("$folder",t||"/"));let o=["---",`${lc}: true`,"schema: []","views:"," - id: default"," type: table"," filters: []"," sorts: []"," hiddenColumns: []"," columnWidths: {}","---","","> [!tip] Notion Bases","> "+u("db_tip_body"),""].join(` -`);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=Gm(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({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 ka=require("obsidian");var Ab={databaseFileName:"_database.md",defaultRowHeight:36,embedViews:{},readInlineFields:!1,pageSize:0},uc=class extends ka.PluginSettingTab{constructor(t,n){super(t,n),this.plugin=n}display(){let{containerEl:t}=this;t.empty(),new ka.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 ka.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 ka.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 ka.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 Ob=require("obsidian");var Bl=class extends Ob.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.item.label,cls:"nb-picker-title"}),n.createEl("small",{text:t.item.sublabel,cls:"nb-picker-path"})}onChooseItem(t){this.onChoose(t.file)}};var Sa=require("obsidian");var kN=new Set(["text","number","select","multiselect","status","date","checkbox","url","email","phone"]),cc=class extends Sa.Modal{constructor(n,o,r,a){super(n);this.values={};this.titleValue="";this.manager=o,this.dbFile=r,this.schema=a}onOpen(){let{contentEl:n}=this;n.empty(),n.addClass("nb-quick-add-modal"),n.createEl("h3",{text:u("quick_add_title")});let o=this.dbFile.parent?.name??this.dbFile.path;n.createEl("p",{text:o,cls:"nb-quick-add-db-name"}),new Sa.Setting(n).setName(u("quick_add_note_title")).addText(s=>{s.setPlaceholder(u("quick_add_note_title_placeholder")),s.onChange(d=>{this.titleValue=d}),s.inputEl.addClass("nb-quick-add-title-input"),window.setTimeout(()=>s.inputEl.focus(),50)});let r=this.schema.filter(s=>s.type!=="title"&&s.visible&&kN.has(s.type)&&!s.formula&&!s.isHierarchical);if(r.length===0)n.createEl("p",{text:u("quick_add_no_visible_fields"),cls:"nb-quick-add-empty"});else for(let s of r)this.renderField(n,s);let a=n.createDiv({cls:"nb-quick-add-buttons"});a.createEl("button",{text:u("quick_add_create"),cls:"nb-quick-add-btn"}).addEventListener("click",()=>{this.handleCreate(!1)}),a.createEl("button",{text:u("quick_add_create_and_open"),cls:"nb-quick-add-btn nb-quick-add-btn--primary"}).addEventListener("click",()=>{this.handleCreate(!0)})}onClose(){this.contentEl.empty()}renderField(n,o){let r=new Sa.Setting(n).setName(o.name);switch(o.type){case"text":case"url":case"email":case"phone":r.addText(a=>{a.setPlaceholder(o.name),a.onChange(i=>{this.values[o.id]=i||null})});break;case"number":r.addText(a=>{a.setPlaceholder("0"),a.inputEl.type="number",a.onChange(i=>{this.values[o.id]=i?Number(i):null})});break;case"date":r.addText(a=>{a.inputEl.type="date",a.onChange(i=>{this.values[o.id]=i||null})});break;case"checkbox":r.addToggle(a=>{a.onChange(i=>{this.values[o.id]=i})});break;case"select":case"status":r.addDropdown(a=>{a.addOption("","");for(let i of o.options??[])a.addOption(i.value,i.value);a.onChange(i=>{this.values[o.id]=i||null})});break;case"multiselect":r.addText(a=>{let i=(o.options??[]).map(l=>l.value);a.setPlaceholder(i.join(", ")),a.onChange(l=>{this.values[o.id]=l?l.split(",").map(s=>s.trim()).filter(Boolean):null})});break}}async handleCreate(n){let o={};for(let[r,a]of Object.entries(this.values))a!=null&&a!==""&&!(Array.isArray(a)&&a.length===0)&&(o[r]=a);try{let r=await this.manager.createNoteWithTemplate(this.dbFile,o);if(this.titleValue.trim()){let a=r.parent?.path??"",i=a?`${a}/${this.titleValue.trim()}.md`:`${this.titleValue.trim()}.md`;await this.app.fileManager.renameFile(r,i)}if(this.close(),n){let a=this.titleValue.trim()?this.app.vault.getFileByPath((r.parent?.path?`${r.parent.path}/`:"")+`${this.titleValue.trim()}.md`)??r:r;await this.app.workspace.getLeaf("tab").openFile(a)}}catch(r){new Sa.Notice(String(r))}}};var $b=require("obsidian"),qm=Fe(xt(),1),zb=Fe(Gp(),1);var Na="notion-bases-embeds",SN=["table","list","board","gallery","calendar","timeline","chart"];function NN(e){let t="",n="",o;for(let r of e.trim().split(` -`)){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();SN.includes(s)&&(o=s)}}return{folderPath:t,embedId:n,forcedType:o}}var Km=class extends $b.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[Na]: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,p=this.plugin.app.metadataCache.getFileCache(o)?.frontmatter,g=sa(p)?p.views:void 0,m=Array.isArray(g)?g:void 0,c=m?.find(b=>b?.type===this.forcedType)??m?.[0],v;d?v={...d,id:this.embedId,type:this.forcedType}:v=c?{...c,id:this.embedId,type:this.forcedType}:{...to,id:this.embedId,type:this.forcedType},s={dbFile:o,manager:n,externalView:v,onViewChange:async b=>{let f=this.plugin.app.vault.getFileByPath(this.sourcePath);f&&await this.plugin.app.fileManager.processFrontMatter(f,_=>{_[Na]||(_[Na]={}),_[Na][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[Na]||(c[Na]={}),c[Na][this.embedId]=g})}}}this.root=(0,zb.createRoot)(this.containerEl),this.root.render((0,qm.createElement)(xl.Provider,{value:this.plugin.app},(0,qm.createElement)(ic,s)))}onunload(){this.root?.unmount(),this.root=null}};function Vb(e){e.registerMarkdownCodeBlockProcessor("nb-database",(t,n,o)=>{let r=NN(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 Km(n,e,a,l,o.sourcePath,i))})}var Gb=require("obsidian");var Bb=["#e0e7ff","#fce7f3","#fef3c7","#dcfce7","#dbeafe","#e9d5ff","#fed7aa","#fecaca","#d1fae5","#e0f2fe","#fae8ff","#fef9c3","#ffd6d6","#d6f0f0","#f0d6f0","#f0f0d6"];function jb(e,t){let n=e.find(r=>r.value===t);if(n?.color)return n.color;let o=e.findIndex(r=>r.value===t);return Bb[o%Bb.length]??"#e8e8e8"}function xN(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),o=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return(.299*n+.587*o+.114*r)/255>.5?"rgba(0,0,0,0.75)":"rgba(255,255,255,0.9)"}function RN(e,t){if(!t)return String(e);let n={minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals,useGrouping:t.thousandsSeparator},o=new Intl.NumberFormat("pt-BR",n).format(e);return t.prefix&&(o=`${t.prefix} ${o}`),t.suffix&&(o=`${o} ${t.suffix}`),o}function EN(){return window.moment??null}function Do(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="bigint")return e.toString();try{return JSON.stringify(e)}catch{return""}}function DN(e,t,n){if(e==null||e==="")return"";if(!t)return Array.isArray(e)?e.map(Do).join(", "):Do(e);switch(t.type){case"number":{let o=typeof e=="number"?e:Number(Do(e));return Number.isNaN(o)?Do(e):RN(o,t.numberFormat)}case"date":{let o=EN(),r=Do(e);if(!o)return r;let a=n||"YYYY-MM-DD";try{return o(r).format(a)}catch{return r}}case"checkbox":return e?"\u2713":"\u2717";case"multiselect":case"relation":return Array.isArray(e)?e.map(Do).join(", "):Do(e);default:return Array.isArray(e)?e.map(Do).join(", "):Do(e)}}function Hb(e,t){let n=createSpan();return n.className="nb-placeholder-pill",n.textContent=e,n.style.background=t,n.style.color=xN(t),n}function Ub(e,t,n){if(e==null||e==="")return[activeDocument.createTextNode("")];if(t?.type==="select"||t?.type==="status"){let o=Do(e);return[Hb(o,jb(t.options??[],o))]}if(t?.type==="multiselect"&&Array.isArray(e)){let o=[];return e.forEach((r,a)=>{let i=Do(r);a>0&&o.push(activeDocument.createTextNode(" ")),o.push(Hb(i,jb(t.options??[],i)))}),o}return[activeDocument.createTextNode(DN(e,t,n))]}var Wb=/\{\{([a-zA-Z0-9_-]+)(?::([^}]+))?\}\}/g,FN=new Set(["CODE","PRE","SCRIPT","STYLE","KBD"]);function MN(){return window.moment??null}function TN(e,t,n){let o=MN(),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=TN(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:Ub(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;Wb.lastIndex=0;let n=[],o=0,r,a=!1;for(;(r=Wb.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{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 Ym=class extends Gb.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=PN(d,p,i,o,this.file);if(g===null){s.textContent=p?`{{${d}:${p}}}`:`{{${d}}}`;return}s.replaceChildren(...g)})}};function qb(e,t){return(n,o)=>{let r=e.vault.getFileByPath(o.sourcePath);!r||t.isDatabaseFile(r)||!AN(n)||o.addChild(new Ym(n,e,t,r))}}var dc=class extends zo.Plugin{constructor(){super(...arguments);this._redirecting=!1}async onload(){await this.loadSettings(),this.manager=new sc(this.app,this.settings.databaseFileName),this.manager.readInlineFields=this.settings.readInlineFields,this.manager.pageSize=this.settings.pageSize,this.registerView(Vl,n=>new Ca(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 zo.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 zo.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)})),Vb(this),this.registerMarkdownPostProcessor(qb(this.app,this.manager)),this.addSettingTab(new uc(this.app,this))}onunload(){}async loadSettings(){this.settings=Object.assign({},Ab,await this.loadData())}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 zo.Notice(u("no_databases_found"));return}new Bl(this.app,n,o=>{let r=this.manager.readConfig(o);new cc(this.app,this.manager,o,r.schema).open()}).open()}openDatabasePicker(){let n=this.manager.getAllDatabases().sort((o,r)=>(o.parent?.path??"").localeCompare(r.parent?.path??""));if(n.length===0){new zo.Notice(u("no_databases_found"));return}new Bl(this.app,n,o=>{let r=this.findDatabaseLeaf(o.path);if(r){this.app.workspace.revealLeaf(r);return}let a=this.app.workspace.getLeaf("tab");this.openDatabaseInLeaf(a,o)}).open()}async openOrCreateDatabase(){let n=this.app.workspace.getActiveFile(),o=n?.parent?.path??"";if(!n){let a=this.app.workspace.getActiveViewOfType(Ca)?.leaf??null;if(a?.view instanceof Ca){let i=a.view.getDatabaseFilePath();o=this.app.vault.getFileByPath(i)?.parent?.path??""}}let r=this.manager.getDatabaseFileInFolder(o);if(r){let a=this.findDatabaseLeaf(r.path);if(a){this.app.workspace.revealLeaf(a);return}let i=this.app.workspace.getLeaf("tab");await this.openDatabaseInLeaf(i,r)}else await this.createAndOpenDatabase(o)}async createAndOpenDatabase(n){try{let o=await this.manager.createDatabase(n),r=this.app.workspace.getLeaf("tab");await this.openDatabaseInLeaf(r,o)}catch(o){new zo.Notice(String(o))}}async openDatabaseInLeaf(n,o){await n.setViewState({type:Vl,state:{dbFilePath:o.path},active:!0}),this.app.workspace.revealLeaf(n);let r=n.view;r instanceof Ca&&r.getDatabaseFilePath()!==o.path&&r.setDatabaseFile(o)}findDatabaseLeaf(n){let o=null;return this.app.workspace.iterateAllLeaves(r=>{if(o||r.view.getViewType()!==Vl)return;r.view.getState().dbFilePath===n&&(o=r)}),o}}; +`);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;continue}let d=r.get(s.refDatabasePath)??[],p=a[s.id],g=Array.isArray(p)?p.filter(v=>typeof v=="string"):typeof p=="string"&&p?[p]:[];if(g.length===0){i[l.id]=null;continue}let m=d.filter(v=>g.includes(v._title)),c=l.rollupTargetColumnId,h=m.map(v=>c==="_title"?v._title:v[c]).filter(v=>v!=null);i[l.id]=this.applyRollupFunction(h,l.rollupFunction)}return i})}applyRollupFunction(t,n){if(t.length===0)return null;switch(n){case"count":return t.length;case"count_values":return new Set(t.map(o=>String(o))).size;case"list":return t.map(o=>String(o)).join(", ");case"sum":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?o.reduce((r,a)=>r+a,0):null}case"avg":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.round(o.reduce((r,a)=>r+a,0)/o.length*100)/100:null}case"min":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.min(...o):null}case"max":{let o=t.map(Number).filter(r=>!isNaN(r));return o.length>0?Math.max(...o):null}default:return null}}async deleteNotes(t){for(let n of t)await this.app.fileManager.trashFile(n)}async duplicateNotes(t){for(let n of t){let o=n.parent?.path??"",r=(0,mn.normalizePath)(`${o}/${n.basename} ${u("db_copy_suffix")}.md`),a=2;for(;this.app.vault.getFileByPath(r);)r=(0,mn.normalizePath)(`${o}/${n.basename} ${u("db_copy_suffix_n").replace("$n",String(a++))}.md`);let i=await this.app.vault.read(n);await this.app.vault.create(r,i)}}async moveNotes(t,n){for(let o of t){let r=(0,mn.normalizePath)(`${n}/${o.name}`);await this.app.fileManager.renameFile(o,r)}}async createDatabase(t){let n=(0,mn.normalizePath)(t?`${t}/${this.databaseFileName}`:this.databaseFileName);if(this.app.vault.getFileByPath(n))throw new Error(u("db_already_exists").replace("$folder",t||"/"));let o=["---",`${pc}: true`,"schema: []","views:"," - id: default"," type: table"," filters: []"," sorts: []"," hiddenColumns: []"," columnWidths: {}","---","","> [!tip] Notion Bases","> "+u("db_tip_body"),""].join(` +`);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({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.item.label,cls:"nb-picker-title"}),n.createEl("small",{text:t.item.sublabel,cls:"nb-picker-path"})}onChooseItem(t){this.onChoose(t.file)}};var xa=require("obsidian");var $N=new Set(["text","number","select","multiselect","status","date","checkbox","url","email","phone"]),gc=class extends xa.Modal{constructor(n,o,r,a){super(n);this.values={};this.titleValue="";this.manager=o,this.dbFile=r,this.schema=a}onOpen(){let{contentEl:n}=this;n.empty(),n.addClass("nb-quick-add-modal"),n.createEl("h3",{text:u("quick_add_title")});let o=this.dbFile.parent?.name??this.dbFile.path;n.createEl("p",{text:o,cls:"nb-quick-add-db-name"}),new xa.Setting(n).setName(u("quick_add_note_title")).addText(s=>{s.setPlaceholder(u("quick_add_note_title_placeholder")),s.onChange(d=>{this.titleValue=d}),s.inputEl.addClass("nb-quick-add-title-input"),window.setTimeout(()=>s.inputEl.focus(),50)});let r=this.schema.filter(s=>s.type!=="title"&&s.visible&&$N.has(s.type)&&!s.formula&&!s.isHierarchical);if(r.length===0)n.createEl("p",{text:u("quick_add_no_visible_fields"),cls:"nb-quick-add-empty"});else for(let s of r)this.renderField(n,s);let a=n.createDiv({cls:"nb-quick-add-buttons"});a.createEl("button",{text:u("quick_add_create"),cls:"nb-quick-add-btn"}).addEventListener("click",()=>{this.handleCreate(!1)}),a.createEl("button",{text:u("quick_add_create_and_open"),cls:"nb-quick-add-btn nb-quick-add-btn--primary"}).addEventListener("click",()=>{this.handleCreate(!0)})}onClose(){this.contentEl.empty()}renderField(n,o){let r=new xa.Setting(n).setName(o.name);switch(o.type){case"text":case"url":case"email":case"phone":r.addText(a=>{a.setPlaceholder(o.name),a.onChange(i=>{this.values[o.id]=i||null})});break;case"number":r.addText(a=>{a.setPlaceholder("0"),a.inputEl.type="number",a.onChange(i=>{this.values[o.id]=i?Number(i):null})});break;case"date":r.addText(a=>{a.inputEl.type="date",a.onChange(i=>{this.values[o.id]=i||null})});break;case"checkbox":r.addToggle(a=>{a.onChange(i=>{this.values[o.id]=i})});break;case"select":case"status":r.addDropdown(a=>{a.addOption("","");for(let i of o.options??[])a.addOption(i.value,i.value);a.onChange(i=>{this.values[o.id]=i||null})});break;case"multiselect":r.addText(a=>{let i=(o.options??[]).map(l=>l.value);a.setPlaceholder(i.join(", ")),a.onChange(l=>{this.values[o.id]=l?l.split(",").map(s=>s.trim()).filter(Boolean):null})});break}}async handleCreate(n){let o={};for(let[r,a]of Object.entries(this.values))a!=null&&a!==""&&!(Array.isArray(a)&&a.length===0)&&(o[r]=a);try{let r=await this.manager.createNoteWithTemplate(this.dbFile,o);if(this.titleValue.trim()){let a=r.parent?.path??"",i=a?`${a}/${this.titleValue.trim()}.md`:`${this.titleValue.trim()}.md`;await this.app.fileManager.renameFile(r,i)}if(this.close(),n){let a=this.titleValue.trim()?this.app.vault.getFileByPath((r.parent?.path?`${r.parent.path}/`:"")+`${this.titleValue.trim()}.md`)??r:r;await this.app.workspace.getLeaf("tab").openFile(a)}}catch(r){new xa.Notice(String(r))}}};var ty=require("obsidian"),of=De(wt(),1),ny=De(em(),1);var Ra="notion-bases-embeds",zN=["table","list","board","gallery","calendar","timeline","chart"];function VN(e){let t="",n="",o;for(let r of e.trim().split(` +`)){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{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=this.manager.readConfig(o);new gc(this.app,this.manager,o,r.schema).open()}).open()}openDatabasePicker(){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=this.findDatabaseLeaf(o.path);if(r){this.app.workspace.revealLeaf(r);return}let a=this.app.workspace.getLeaf("tab");this.openDatabaseInLeaf(a,o)}).open()}async openOrCreateDatabase(){let n=this.app.workspace.getActiveFile(),o=n?.parent?.path??"";if(!n){let a=this.app.workspace.getActiveViewOfType(Na)?.leaf??null;if(a?.view instanceof Na){let i=a.view.getDatabaseFilePath();o=this.app.vault.getFileByPath(i)?.parent?.path??""}}let r=this.manager.getDatabaseFileInFolder(o);if(r){let a=this.findDatabaseLeaf(r.path);if(a){this.app.workspace.revealLeaf(a);return}let i=this.app.workspace.getLeaf("tab");await this.openDatabaseInLeaf(i,r)}else await this.createAndOpenDatabase(o)}async createAndOpenDatabase(n){try{let o=await this.manager.createDatabase(n),r=this.app.workspace.getLeaf("tab");await this.openDatabaseInLeaf(r,o)}catch(o){new Io.Notice(String(o))}}async openDatabaseInLeaf(n,o){await n.setViewState({type:Ul,state:{dbFilePath:o.path},active:!0}),this.app.workspace.revealLeaf(n);let r=n.view;r instanceof Na&&r.getDatabaseFilePath()!==o.path&&r.setDatabaseFile(o)}findDatabaseLeaf(n){let o=null;return this.app.workspace.iterateAllLeaves(r=>{if(o||r.view.getViewType()!==Ul)return;r.view.getState().dbFilePath===n&&(o=r)}),o}}; /*! Bundled license information: react/cjs/react.production.min.js: diff --git a/.obsidian/plugins/notion-bases/manifest.json b/.obsidian/plugins/notion-bases/manifest.json index ec8d6a5..5d010ea 100644 --- a/.obsidian/plugins/notion-bases/manifest.json +++ b/.obsidian/plugins/notion-bases/manifest.json @@ -1 +1 @@ -{"id":"notion-bases","name":"Notion Bases","version":"1.8.6","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","authorUrl":"https://github.com/bgarciamoura","isDesktopOnly":false,"fundingUrl":"https://github.com/sponsors/bgarciamoura"} \ No newline at end of file +{"id":"notion-bases","name":"Notion Bases","version":"1.10.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","authorUrl":"https://github.com/bgarciamoura","isDesktopOnly":false,"fundingUrl":{"GitHub Sponsors":"https://github.com/sponsors/bgarciamoura","PayPal":"https://www.paypal.com/donate/?business=JLSTWHFM8KD3G&no_recurring=0&item_name=Built+with+love%2C+powered+by+coffee.+Your+support+keeps+Notion+Bases+free+and+growing+for+everyone.+Thank+you%21¤cy_code=BRL"}} \ No newline at end of file diff --git a/.obsidian/plugins/notion-bases/styles.css b/.obsidian/plugins/notion-bases/styles.css index 4157d97..71f32b1 100644 --- a/.obsidian/plugins/notion-bases/styles.css +++ b/.obsidian/plugins/notion-bases/styles.css @@ -1893,6 +1893,69 @@ height: auto; } +/* Per-column clip (issue #45) — declared after the wrap rules on purpose: + same specificity, so source order lets clip win when the view-wide wrap is on */ +.nb-td--clip { + /* Sob table-layout auto, conteúdo nowrap alargaria a coluna (o "auto-fit" + da issue). max-width: 0 tira o conteúdo do cálculo de largura e faz a + célula respeitar a largura configurada, ativando o ellipsis. + height: 1px permite que o .nb-td-inner use height: 100% e preencha a + altura real da linha (que pode ser maior por causa de colunas com wrap), + mantendo toda a célula clicável; age como mínimo, a célula ainda estica. */ + max-width: 0; + height: 1px; +} + +.nb-td--clip .nb-td-inner { + height: 100%; + max-height: none; + min-height: var(--nb-row-height); + overflow: hidden; + align-items: stretch; + padding: 0; +} + +.nb-td--clip .nb-cell-text, +.nb-td--clip .nb-cell-clickable { + white-space: nowrap; + word-break: normal; + overflow: hidden; + text-overflow: ellipsis; + align-items: center; + height: 100%; + min-height: var(--nb-row-height); + padding-top: 0; + padding-bottom: 0; +} + +/* Ellipsis opcional (issue #51) — classe aplicada ao wrapper quando a + configuração "Show ellipsis when clipping text" está desligada */ +.nb-clip-hard .nb-td--clip .nb-cell-text, +.nb-clip-hard .nb-td--clip .nb-cell-clickable { + text-overflow: clip; +} + +/* Cabeçalho estreitável (issue #51): somente colunas com largura definida + pelo usuário param de impor min-content — o nome trunca quando faltar + espaço. Colunas nunca redimensionadas mantêm o auto-ajuste de sempre. */ +.nb-th--fixed { + max-width: 0; +} + +.nb-th--fixed .nb-header-label { + min-width: 0; + overflow: hidden; +} + +.nb-th--fixed .nb-header-name { + min-width: 0; + white-space: nowrap; +} + +.nb-th--fixed .nb-th-inner-title > div { + min-width: 0; +} + /* ── Linha de agregação ─────────────────────────────────────────────────────── */ .nb-tfoot { diff --git a/.obsidian/workspace-mobile.json b/.obsidian/workspace-mobile.json index 3064a1d..6869cd6 100644 --- a/.obsidian/workspace-mobile.json +++ b/.obsidian/workspace-mobile.json @@ -25,17 +25,14 @@ "id": "fc7d8007827e7536", "type": "leaf", "state": { - "type": "canvas", + "type": "markdown", "state": { - "file": "2026년 월력형 메모형 일정(2월).canvas", - "viewState": { - "x": 488.67130042226887, - "y": 74574.78151493247, - "zoom": 0.12050569471065414 - } + "file": "30연대 26년도 예산.md", + "mode": "source", + "source": false }, - "icon": "lucide-layout-dashboard", - "title": "2026년 월력형 메모형 일정(2월)" + "icon": "lucide-file", + "title": "30연대 26년도 예산" } }, { @@ -81,7 +78,7 @@ "state": { "type": "search", "state": { - "query": "section:에어컨 조태숙", + "query": "section:나침반", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -132,7 +129,7 @@ } }, { - "id": "08eb000fd17e35e8", + "id": "e919896920bfce1d", "type": "leaf", "state": { "type": "mk-path-view", @@ -200,7 +197,7 @@ "state": { "type": "file-properties", "state": { - "file": "2026년 월력형 메모형 일정(2월).canvas" + "file": "30연대 26년도 예산.md" }, "icon": "lucide-info", "title": "파일 속성" @@ -226,17 +223,17 @@ }, "active": "fc7d8007827e7536", "lastOpenFiles": [ - "30연대 26년도 예산.md", "2026년 월력형 메모형 일정(2월).canvas", + "30연대 26년도 예산.md", + "장비.md", + "inbox/위임보수.md", "재난대책.md", "하계재난대비계획.md", "혹서기일과.md", "하계 우기 대비 환경오염사고 방지대책 강구지시.md", "검차.md", - "inbox/위임보수.md", "inbox/위임수.md", "inbox/보급품 수령 , 분배, 반납.md", - "장비.md", "2025년 월력형 메모형 일정 (2).canvas", "2026-07-05.md", "가을 마라톤 대회를 풀코스로 준비하고 있는데, 현재 나이 48세, 몸무게 72kg, 10km 1시간 페이스로 달리는데, 대회를 준비하는 훈련계획표를 짜줘 - Google 검색.mht", diff --git a/2026년 월력형 메모형 일정(2월).canvas b/2026년 월력형 메모형 일정(2월).canvas index e484d67..1d2dae7 100644 --- a/2026년 월력형 메모형 일정(2월).canvas +++ b/2026년 월력형 메모형 일정(2월).canvas @@ -5102,17 +5102,6 @@ "width":428, "height":60 }, - { - "id":"18eee28c722ced82", - "type":"text", - "text":"- [ ] 방독면 58개 불용승인 처리에 따른 반납 건의, 이승민, 교육용 교훈처, 운영용 군지대 신청", - "styleAttributes":{}, - "x":-350, - "y":32700, - "width":428, - "height":60, - "color":"1" - }, { "id":"e8a9b09c59e98068", "type":"text", @@ -5154,2366 +5143,6 @@ "width":428, "height":60 }, - { - "id":"e4bd3a375e46319e", - "type":"text", - "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", - "styleAttributes":{}, - "x":290, - "y":42800, - "width":2120, - "height":60 - }, - { - "id":"1a3bf129eb681611", - "type":"text", - "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", - "styleAttributes":{}, - "x":290, - "y":42860, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"11736c0142fc864e", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":290, - "y":42920, - "width":2120, - "height":100, - "color":"3" - }, - { - "id":"48c31d3545a59bdc", - "type":"text", - "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", - "styleAttributes":{}, - "x":290, - "y":43020, - "width":2120, - "height":140, - "color":"1" - }, - { - "id":"8d8903dfffa152e6", - "type":"text", - "text":"- [ ] 보급품 분배\n\t- [ ] 티비 TV 10대\n\t\t- [ ] 1교 4(스탠드2벽걸이2)\n\t\t- [ ] 2교 2(벽걸이2)\n\t\t- [ ] 3교 4(벽걸이4)\n\t- [x] 방탄헬멧 260\n\t\t- [ ] 1교 30\n\t\t- [ ] 2교 100\n\t\t- [ ] 3교 120\n\t- [x] 방탄 부수기재(내피)1800\n\t\t- [ ] 1교 700\n\t\t- [ ] 2교 600\n\t\t- [ ] 3교 500ㄴ", - "styleAttributes":{}, - "x":1554, - "y":42680, - "width":400, - "height":480 - }, - { - "id":"a963a7248f52ce53", - "type":"text", - "text":"- [x] 버스팀장 09시 인솔\n- [x] 10시 계운과 보안교육 이후 퇴영", - "styleAttributes":{}, - "x":1554, - "y":43160, - "width":400, - "height":60 - }, - { - "id":"41534eb35d745a98", - "type":"text", - "text":"- [x] 정거리배차 소요종합, 유재형", - "styleAttributes":{}, - "x":1554, - "y":42500, - "width":400, - "height":60 - }, - { - "id":"89b46c98d5a009e4", - "type":"text", - "text":"- [x] 4월 간부영내급식 한시인가 소요 종합,장성국", - "styleAttributes":{}, - "x":1554, - "y":42560, - "width":400, - "height":60 - }, - { - "id":"b58b9eedaad70b9a", - "type":"text", - "text":"- [x] 위장포사이즈 파악,박형주", - "styleAttributes":{}, - "x":1554, - "y":42620, - "width":400, - "height":60 - }, - { - "id":"4fc1cf0642ba2dd3", - "type":"text", - "text":"[재난 및 안전관리 예산 부대 재배정]\n* 재배정 공문하달(3.16.)\n* 폭염대비 물자(폭염응급키트)\n* 재난예방 보수비(곡괭이, 삽, 마대 등)\n\n(별) 4월 3일 한 집행완료 후 공문보고\n(별) 예산집행 지침 준용, 타용도 사용금지", - "styleAttributes":{}, - "x":290, - "y":43340, - "width":430, - "height":240 - }, - { - "id":"70aec4e4bd55dde1", - "type":"text", - "text":"# 3. 27.(금) 이발예약 11시, 늦게퇴근", - "styleAttributes":{}, - "x":1962, - "y":42120, - "width":448, - "height":60 - }, - { - "id":"4f2105ee4f1c700d", - "type":"text", - "text":"- [ ] 투광등 공사,조범희 주무관(전기),1교5,풋살2,가로등6", - "styleAttributes":{}, - "x":1916, - "y":42500, - "width":474, - "height":60 - }, - { - "id":"71df38c0aa5b24e0", - "type":"text", - "text":"- [x] 건설장비 지원 종합,한서욱,~3.27", - "styleAttributes":{}, - "x":1962, - "y":42180, - "width":428, - "height":60 - }, - { - "id":"881a4a3962966bee", - "type":"text", - "text":"- [x] 25년 소방안전점검 후속조치 결과보고,유재형", - "styleAttributes":{}, - "x":290, - "y":43160, - "width":430, - "height":60 - }, - { - "id":"4b0d7c29660a75ee", - "type":"text", - "text":"# 3. 26.(목)", - "styleAttributes":{}, - "x":1554, - "y":42120, - "width":408, - "height":60 - }, - { - "id":"e5137228f1ca4ac4", - "type":"text", - "text":"- [x] 지원과 회식", - "styleAttributes":{}, - "x":1554, - "y":42180, - "width":408, - "height":60 - }, - { - "id":"cedf021003b92d05", - "type":"text", - "text":"- [ ] 장병 생명 안전 직결 물품소요파악, 조태숙,~3.25(수)", - "styleAttributes":{}, - "x":1146, - "y":42180, - "width":408, - "height":60 - }, - { - "id":"f7f007db7a3194d8", - "type":"text", - "text":"# 3. 25.(수)", - "styleAttributes":{}, - "x":1146, - "y":42120, - "width":408, - "height":60 - }, - { - "id":"1331ed8d5104b2ca", - "type":"text", - "text":"- [ ] 총기보관함 56개 수렁예정,황인찬", - "styleAttributes":{}, - "x":290, - "y":42180, - "width":428, - "height":60 - }, - { - "id":"907c266c34089723", - "type":"text", - "text":"# 3. 23. (월) ", - "styleAttributes":{}, - "x":290, - "y":42120, - "width":428, - "height":60 - }, - { - "id":"17f5aecf3461d93e", - "type":"text", - "text":"- [ ] 군수 3월 보급결산,~27\n\t- [ ] [[일일결산]]\n\t- [ ] 국방군수정보체계 재산 수입,불출,반납 처리 정리", - "styleAttributes":{}, - "x":290, - "y":42300, - "width":2100, - "height":140, - "color":"1" - }, - { - "id":"f7c53b5bbce8b2dc", - "type":"text", - "text":"- [ ] [[부대안전진단 결과]] 점검,,3.23~27,이동섭,안잔관리체게,시설물,위험물, 총기탄약,환경,23일연대본븐(행정)", - "styleAttributes":{}, - "x":290, - "y":42440, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"6ae1105f5d5a4c02", - "type":"text", - "text":"- [x] 병영생활 신축 추가 의견 반영\n- [ ] ", - "styleAttributes":{}, - "x":1160, - "y":43160, - "width":394, - "height":60 - }, - { - "id":"11193a405012894b", - "type":"text", - "text":"- [ ] 28-32 학교기관 조리기구 중기계획 현금배정 소요작성,조태숙,~3.25", - "styleAttributes":{}, - "x":1146, - "y":42500, - "width":408, - "height":60 - }, - { - "id":"8be5b549ce142ae3", - "type":"text", - "text":"- [x] 식중독 발생 현장점검, 식사추진시 청결유지. 수통위생관리, 식사전손씻기", - "styleAttributes":{}, - "x":290, - "y":42240, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"27491d0033aaf143", - "type":"text", - "text":"- [ ] . 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * **열외자는 지휘관주관 교육실시 후**\n\t **공문보고**", - "styleAttributes":{}, - "x":290, - "y":42620, - "width":428, - "height":180 - }, - { - "id":"b52998535bb64b70", - "type":"text", - "text":"- [ ] 부유대 조립체 수령,김용대, 1500,9번창고", - "styleAttributes":{}, - "x":290, - "y":43220, - "width":430, - "height":60 - }, - { - "id":"5da31665cde8885a", - "type":"text", - "text":"- [ ] 보호대 수령,1500, 김용대,9번창고 #미리받음", - "styleAttributes":{}, - "x":290, - "y":43280, - "width":430, - "height":60 - }, - { - "id":"295277c22f3eb53e", - "type":"text", - "text":"- [ ] TV(37X038075),거치대(37x011486) 불출 tv10,중앙스탠드형2,벽걸이브라겟형8 ", - "styleAttributes":{}, - "x":1554, - "y":42240, - "width":408, - "height":60 - }, - { - "id":"42859274186e0bd0", - "type":"text", - "text":"- [x] 3교육대,수통클린요청일, 880개, 김창규", - "styleAttributes":{}, - "x":1146, - "y":42240, - "width":408, - "height":60 - }, - { - "id":"d69de9c19ebb0d3e", - "type":"text", - "text":"담당관 8중대장입니다. \n퇴근했는데 미안합니다. \n중대 옴 의증으로 격리되어 있는 훈련병이 있습니다. \n해당인원 부모님이 대전병원 진료를 희망하고 있어서 인솔이 필요한데\n위 언급했듯이 격리되어있는 인원인데 자차로 인솔하긴 제한되는 실정입니다. \n배차를 사용 일주일전 신청하는것이 맞지만 위 사항은\n\n부모님이 어제 민원소요로 어제 연락오신점\n격리환자로서 개인 자차를 활용하기 제한되는점\n\n위 두가지를 고려하여 혹시 차량 배차를 받을수 있는지 문의합니다. ", - "styleAttributes":{}, - "x":720, - "y":43160, - "width":440, - "height":420 - }, - { - "id":"ce43ab8db535f82d", - "type":"text", - "text":"- [ ] 국방군수통합정보체계 장비정비분야 순회교육,한서욱,~3.24,0930-1530", - "styleAttributes":{}, - "x":718, - "y":42240, - "width":428, - "height":60 - }, - { - "id":"7cdf73adae8cf062", - "type":"text", - "text":"- [x] 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고", - "styleAttributes":{}, - "x":718, - "y":42500, - "width":428, - "height":60 - }, - { - "id":"4121c448129f5ae3", - "type":"text", - "text":"# 3. 24. (화) ", - "styleAttributes":{}, - "x":718, - "y":42120, - "width":428, - "height":60 - }, - { - "id":"8988014c0143e2af", - "type":"text", - "text":"- [x] 앰프 이동정비,3.24,임대원,이대성,김태환,조희철,연대본부,오전", - "styleAttributes":{}, - "x":718, - "y":42180, - "width":428, - "height":60 - }, - { - "id":"2dcd12c778bfb693", - "type":"text", - "text":"- [x] 교육사,부대관리 지도방문,~24,감찰,군수,의무,최기호", - "styleAttributes":{}, - "x":290, - "y":42560, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"9dfb70bd04cf8f2c", - "type":"text", - "text":"- [x] 육본 물자처장 부대방문, 1330, 3교햄활관,연대창고,병영식당,이동섭", - "styleAttributes":{}, - "x":290, - "y":42500, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"04f845f9505998f5", - "type":"text", - "text":"# 3. 12. (목)근무휴식, ", - "styleAttributes":{}, - "x":1384, - "y":36720, - "width":408, - "height":60 - }, - { - "id":"09a373884add8580", - "type":"text", - "text":"# 3. 11. ( 수 )본부중대 당직근무", - "styleAttributes":{}, - "x":976, - "y":36720, - "width":408, - "height":60 - }, - { - "id":"d90ea66f53f05d2d", - "type":"text", - "text":"- [x] 폭영대비물자소요보고,~3.11,유재형", - "styleAttributes":{}, - "x":976, - "y":36780, - "width":408, - "height":60 - }, - { - "id":"0810bea6c465f3af", - "type":"text", - "text":"# 3. 13. ( 금 ) ", - "styleAttributes":{}, - "x":1792, - "y":36720, - "width":428, - "height":60 - }, - { - "id":"12df0d41f2d48419", - "type":"text", - "text":"- [x] 손망실보고서 제출", - "styleAttributes":{}, - "x":1792, - "y":36780, - "width":428, - "height":60 - }, - { - "id":"08494b2190b57238", - "type":"text", - "text":"- [ ] 해빙기 차량사고예방 교육,박성현,광개토강당,1000 #미참석", - "styleAttributes":{}, - "x":1384, - "y":36780, - "width":408, - "height":60 - }, - { - "id":"aaacede94f2de116", - "type":"text", - "text":"- [ ] 월단위 부대위생정검,김영은,이동엽, #취소", - "styleAttributes":{}, - "x":1384, - "y":36840, - "width":408, - "height":60 - }, - { - "id":"07d86a463b20161e", - "type":"text", - "text":"- [x] 병영생활 관 신축 1단계 선행연구 착수토의,~13, 자체", - "styleAttributes":{}, - "x":1382, - "y":37220, - "width":836, - "height":70, - "color":"1" - }, - { - "id":"95c3deef450ec3e6", - "type":"text", - "text":"- [x] 개인정보동의서 제출", - "styleAttributes":{}, - "x":1790, - "y":36840, - "width":430, - "height":60 - }, - { - "id":"11ab919954beeda1", - "type":"text", - "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.\n\n신청하시길 바랍니다~", - "styleAttributes":{}, - "x":1792, - "y":36900, - "width":428, - "height":60 - }, - { - "id":"3ad5b5f88d64fb27", - "type":"text", - "text":"- [ ] 화장실 천장보수 소요 부대 예산 검토,보고,최기호,~3.13", - "styleAttributes":{}, - "x":1384, - "y":36960, - "width":836, - "height":60, - "color":"1" - }, - { - "id":"68328af8cf31e052", - "type":"text", - "text":"- [x] 장거리배차 소요종합,~3.12,유재형", - "styleAttributes":{}, - "x":1384, - "y":36900, - "width":408, - "height":60 - }, - { - "id":"9f8204e615d3f374", - "type":"text", - "text":"- [x] 군수사령관 현장방문,1030-1330,9중대 현장방문", - "styleAttributes":{}, - "x":976, - "y":36840, - "width":408, - "height":60 - }, - { - "id":"b3451e5b5b0f73aa", - "type":"text", - "text":"- [x] 1교육대 부대운영자재비 ", - "styleAttributes":{}, - "x":1792, - "y":37020, - "width":430, - "height":65 - }, - { - "id":"3cd4553971f53017", - "type":"text", - "text":"- [ ] 병영생활 관 신축 1단계 선행연구 착수토의,~13,박괸식 #조기실시", - "styleAttributes":{}, - "x":1386, - "y":37080, - "width":406, - "height":70 - }, - { - "id":"7c0d4b011b372fdb", - "type":"text", - "text":"- [x] 2월 재활용품 매각량 및 매각대금 보고,~13,신상이,매각량+매각대금 의견", - "styleAttributes":{}, - "x":1790, - "y":37080, - "width":430, - "height":70 - }, - { - "id":"a46b31de08573eeb", - "type":"text", - "text":"- [x] 예산 수정,부대운영자재 비", - "styleAttributes":{}, - "x":1790, - "y":37155, - "width":430, - "height":65, - "color":"1" - }, - { - "id":"242c2c1f8d0cdbf4", - "type":"text", - "text":"- [x] 헐거운 침대 연결조립체 조사 소요종합,~3.13, 최기호,30미리,35미리 2개종류 소요파악", - "styleAttributes":{}, - "x":1384, - "y":37020, - "width":408, - "height":60 - }, - { - "id":"0b9d8c5bb6b1f67d", - "type":"text", - "text":"- [x] 연결 키트 소요 보고", - "styleAttributes":{}, - "x":976, - "y":37230, - "width":408, - "height":60 - }, - { - "id":"9dd4a3872ecf9a44", - "type":"text", - "text":"- [x] 2월 음식물쓰레기 배출일지 제출 및 발생량 결과분석,~11,신상이", - "styleAttributes":{}, - "x":976, - "y":36960, - "width":408, - "height":60 - }, - { - "id":"0c81c9c2179f2f82", - "type":"text", - "text":"- [x] Fs연습기간 사고예방교육(군사경찰대장 주관)\n-대상 : 전장병 + 군무원\n- 1,2교육대 : 11일(수) 09시 / 1강의장\n- 3교육대 : 25(수) 14시 / 9강의장\n\n* 본부중대 및 참모부, 의무과는 가용날짜에 참석\n* 교육대는 가용한 강의장알려주십시오.", - "styleAttributes":{}, - "x":976, - "y":37020, - "width":408, - "height":210 - }, - { - "id":"5a6a61641afc0deb", - "type":"text", - "text":"- [ ] 종군교 직무보수(공병장비기본)~11,한서욱 #취소", - "styleAttributes":{}, - "x":976, - "y":36900, - "width":408, - "height":60 - }, - { - "id":"1ddf8ca582f739c3", - "type":"text", - "text":"- [x] **냉난방기 계량기교체(별관), 오후, 중부가스,육영건설, 유영대\n630113-1632325\n010.2871.2632** ", - "styleAttributes":{}, - "x":120, - "y":37160, - "width":856, - "height":130 - }, - { - "id":"bd0350a78cd2ee14", - "type":"text", - "text":"# 3. 10.( 화 )", - "styleAttributes":{}, - "x":548, - "y":36720, - "width":428, - "height":60 - }, - { - "id":"20889fadbea072ed", - "type":"text", - "text":"- [x] 사용자보수비 심의, 2교 견적서 제출,4건\n\t- [ ] 부대운영자재비 1건", - "styleAttributes":{}, - "x":486, - "y":36400, - "width":846, - "height":60 - }, - { - "id":"0ac526bfd6aefef7", - "type":"text", - "text":"- [x] 대량유류수령 4000,연무5동", - "styleAttributes":{}, - "x":548, - "y":36780, - "width":428, - "height":60 - }, - { - "id":"9296f4126cfcdb6d", - "type":"text", - "text":"- [x] 30연대 병영생활관 신축 선행연구 착수토의,1330, 연대장 김낙중실", - "styleAttributes":{}, - "x":548, - "y":36840, - "width":428, - "height":60 - }, - { - "id":"c18ff0ad3e0d8896", - "type":"text", - "text":"# 3. 9. (월)", - "styleAttributes":{}, - "x":120, - "y":36720, - "width":428, - "height":60 - }, - { - "id":"02e0acb92d8d81f5", - "type":"text", - "text":"- [x] 9203호, 차량예방정비", - "styleAttributes":{}, - "x":120, - "y":36780, - "width":428, - "height":60 - }, - { - "id":"e87e023099e47ad7", - "type":"text", - "text":"- [x] **해빙기 대비 도로교통공단 초빙강사 교육 소요보고,~3.9,유재형**", - "styleAttributes":{}, - "x":120, - "y":36900, - "width":856, - "height":60 - }, - { - "id":"4f47f79c9a3820f6", - "type":"text", - "text":"- [ ] **병영시설 화장실 개산사항 교육,훈련소주관,1교육대 2중대 화장실,지원과장,군수실무자, 1030** #취소", - "styleAttributes":{}, - "x":120, - "y":37020, - "width":428, - "height":140 - }, - { - "id":"4d3579157757ab13", - "type":"text", - "text":"- [x] **TV,거치대 소요파악, 황인찬,~3.9**", - "styleAttributes":{}, - "x":120, - "y":36840, - "width":428, - "height":60 - }, - { - "id":"ebe9490f1f094578", - "type":"text", - "text":"- [x] 손망실 처리 변상대상자 동의서 제출(이명세상사)", - "styleAttributes":{}, - "x":486, - "y":36460, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"928882be046927a9", - "type":"text", - "text":"- [ ] 지원과 사무실개선 집행계획,사용자보수비", - "styleAttributes":{}, - "x":1962, - "y":41560, - "width":438, - "height":60 - }, - { - "id":"e164c6cabb7ce365", - "type":"text", - "text":"- [x] 3교 150만원 사용자보수비 집행", - "styleAttributes":{}, - "x":1962, - "y":41620, - "width":438, - "height":60 - }, - { - "id":"d7074be738cc1bff", - "type":"text", - "text":"- [x] 26년 전반기 물자편성기준서 심의 조정소요 품목파납,~3.20.조태숙", - "styleAttributes":{}, - "x":1952, - "y":40180, - "width":428, - "height":60 - }, - { - "id":"d8b8a6a855eb9c20", - "type":"text", - "text":"- [x] 27년 도태결정 및 28-32년도 도태계획요구서 제출,한서욱,~3.20", - "styleAttributes":{}, - "x":1952, - "y":40240, - "width":428, - "height":60 - }, - { - "id":"e9d21a72662f89cd", - "type":"text", - "text":"- [ ] 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고", - "styleAttributes":{}, - "x":1952, - "y":40420, - "width":428, - "height":120 - }, - { - "id":"bb5d28c5b52d90c3", - "type":"text", - "text":"- [x] 자동온도조절튀김손 구매규격 의견종합,황인찬,~16", - "styleAttributes":{}, - "x":708, - "y":40300, - "width":428, - "height":60 - }, - { - "id":"31ec9a81627f4b1a", - "type":"text", - "text":"- [x] [[1중대]] 보급,4번창고,1500,박형주,3113개", - "styleAttributes":{}, - "x":708, - "y":40240, - "width":428, - "height":60 - }, - { - "id":"308515ca774ba577", - "type":"text", - "text":"- [x] 장거리배차 소요 종합,~3.19,유재형", - "styleAttributes":{}, - "x":1544, - "y":40240, - "width":408, - "height":60 - }, - { - "id":"1528230f5fce24eb", - "type":"text", - "text":"- [x] 26-2차 국방구 위함물 안전관리자 양상 교육 대상자 파악 보고,장성국,~3.18", - "styleAttributes":{}, - "x":1136, - "y":40480, - "width":408, - "height":60 - }, - { - "id":"dfac53c1ecf01bfc", - "type":"text", - "text":"# 3. 20. ( 금 ) 오후반가", - "styleAttributes":{}, - "x":1952, - "y":40120, - "width":428, - "height":60 - }, - { - "id":"41dcb200cfbde4db", - "type":"text", - "text":"- [ ] **[[부대운영진단]] 준비**", - "styleAttributes":{}, - "x":280, - "y":41320, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"348c26faf9f34580", - "type":"text", - "text":"- [x] CCTV정비비 집행계획작성, 이명세, 조태숙", - "styleAttributes":{}, - "x":1962, - "y":41500, - "width":438, - "height":60 - }, - { - "id":"fc92f776d4ee50ed", - "type":"text", - "text":"- [ ] 벼영생활관 신축 착수토의 소요건의,박관식,~3.20 #취소", - "styleAttributes":{}, - "x":1962, - "y":41380, - "width":438, - "height":60 - }, - { - "id":"1d41a479af4cb5dd", - "type":"text", - "text":"- [ ] 5군지사, 신품 k1방독면 정화통 소요보고,~3.31,김석", - "styleAttributes":{}, - "x":1962, - "y":41440, - "width":438, - "height":60, - "color":"1" - }, - { - "id":"004a2948a41d5297", - "type":"text", - "text":"- [x] 방탄헬멧\n\t교체소요 재파악합니다\n\t\n\t상태가 크랙가거나 위장포를 씌워서도 사용이 불가한 방탄헬멧 교체 소요를 파악합니다\n\t\n\t기존에 파악 했던 수량\n\t방탄헬멧(중형)391개\n\t부유대 1800개\n\t에서 문의드리는 내용입니다", - "styleAttributes":{}, - "x":1544, - "y":41380, - "width":418, - "height":260 - }, - { - "id":"8d4882bf1f138f1c", - "type":"text", - "text":"- [x] 화장실 천장보수 소요 부대 예산 검토,보고,최기호,~3.13", - "styleAttributes":{}, - "x":280, - "y":41260, - "width":428, - "height":60 - }, - { - "id":"362f4213cd150b6b", - "type":"text", - "text":"- [x] 발전기기술검사,,임대원,임헌준", - "styleAttributes":{}, - "x":1544, - "y":40420, - "width":408, - "height":60 - }, - { - "id":"9840d40379ba06e4", - "type":"text", - "text":"- [x] 부대운영진단 체크리스트 활용 점검 및 결과종합", - "styleAttributes":{}, - "x":1544, - "y":40300, - "width":408, - "height":60 - }, - { - "id":"99f202d4996877aa", - "type":"text", - "text":"- [x] 교육수료주 통합이동정비,3교육", - "styleAttributes":{}, - "x":1136, - "y":40300, - "width":408, - "height":60 - }, - { - "id":"86f5d4cec3a5103f", - "type":"text", - "text":"- [x] 유압크레인 지원소요 종합, 이민학,~3.18", - "styleAttributes":{}, - "x":1136, - "y":40420, - "width":408, - "height":60 - }, - { - "id":"71bea65b8417b20c", - "type":"text", - "text":" - [x] ☆**==FS연습기간 공직기강 점검 :==** 3. 9 ~ 19\n\t관련 간부 출퇴근, 총기탄약 관리, 예산사용, 당직근무체계, 비상대비태세, 보안, 식당관리 등 관심갖고 조치바랍니다. ", - "styleAttributes":{}, - "x":280, - "y":40720, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"209bd7d09a3fca3f", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":280, - "y":40780, - "width":2120, - "height":100, - "color":"3" - }, - { - "id":"6a2135aa53ff0085", - "type":"text", - "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", - "styleAttributes":{}, - "x":280, - "y":40880, - "width":2120, - "height":140, - "color":"1" - }, - { - "id":"9171ba9f064917d3", - "type":"text", - "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.성인지 원격교육\n\n신청하시길 바랍니다~", - "styleAttributes":{}, - "x":280, - "y":41380, - "width":428, - "height":60, - "color":"3" - }, - { - "id":"66189319c3f2520f", - "type":"text", - "text":"- [x] 1교육대 4중대 소대장 1명 전입으로 인해 총기 1정 오늘 1540에 연대무기고에서 수령하겠습니다, 12중대 1정 들어오고, 대검 1개반납받고, 안나가고", - "styleAttributes":{}, - "x":280, - "y":41440, - "width":428, - "height":140 - }, - { - "id":"ae5a6a72e07f1c4b", - "type":"text", - "text":"- [x] 침대 연결조립체 수량 재파악 보고\n\t- [ ] 1교 494\n\t- [ ] 2교 488\n\t- [ ] 3교 416", - "styleAttributes":{}, - "x":280, - "y":41710, - "width":428, - "height":140 - }, - { - "id":"abb37c09459c1a3f", - "type":"text", - "text":"- [x] 충성!\n인사행정부사관 상사 고재은입니다.\n연대장 부사관 평정 공개되었습니다.\n확인하시고 동의/비동의 눌러주시기바랍니다!", - "styleAttributes":{}, - "x":280, - "y":41580, - "width":428, - "height":130 - }, - { - "id":"6e888f319f08315c", - "type":"text", - "text":"- [x] 분부중대 온풍기 구매 재산등재, 홍채림, 한승민", - "styleAttributes":{}, - "x":280, - "y":41850, - "width":428, - "height":60 - }, - { - "id":"6d43c74ac31ec9b7", - "type":"text", - "text":"- [x] 방열판 사용다보수비집행가능여부 확인", - "styleAttributes":{}, - "x":280, - "y":41970, - "width":428, - "height":60 - }, - { - "id":"cc6d5d991a583b60", - "type":"text", - "text":"- [ ] 2교육대 한시인가 수정건의,10명,3.30-31 #취소", - "styleAttributes":{}, - "x":280, - "y":41910, - "width":428, - "height":60 - }, - { - "id":"ca11837d2b660db7", - "type":"text", - "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", - "styleAttributes":{}, - "x":280, - "y":41080, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"9e101a3cf45680f6", - "type":"text", - "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", - "styleAttributes":{}, - "x":280, - "y":40660, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"0152a46cb41e50d0", - "type":"text", - "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", - "styleAttributes":{}, - "x":280, - "y":40600, - "width":2120, - "height":60 - }, - { - "id":"2c0f12e6ac8f3225", - "type":"text", - "text":"- [ ] 해빙기 취약시설 안전점검 결과보고, 이동섭,~3.20", - "styleAttributes":{}, - "x":280, - "y":40360, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"35ac22bfd6bc6eae", - "type":"text", - "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", - "styleAttributes":{}, - "x":280, - "y":41140, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"74b87d0b5c432b7c", - "type":"text", - "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", - "styleAttributes":{}, - "x":280, - "y":41200, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"df9822fbac47c9c2", - "type":"text", - "text":"- [ ] **위험성평가 작성**", - "styleAttributes":{}, - "x":280, - "y":41020, - "width":1264, - "height":60, - "color":"4" - }, - { - "id":"166779037160b4f1", - "type":"text", - "text":"- [ ] . 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * **열외자는 지휘관주관 교육실시 후**\n\t **공문보고**", - "styleAttributes":{}, - "x":280, - "y":40420, - "width":428, - "height":180 - }, - { - "id":"fb32c0e19afa78a8", - "type":"text", - "text":"- [x] 가로등, 경계등 ON,OFF 시간 \n점검하고 각부대 조치바랍니다.\n\t* 3. 9. (월) 기준\n\t 소등 : 06:45, 점등 : 18:39\n\t(별) 가로등, 경계등에만 적용됨\n\t* 병영생활관에 부착된 등과 연병장 등은\n\t 취침시간에 소등\n\t(별) 군수과에서 에너지관리 관련\n\t 불시점검하여 우수부대는\n\t 전반기 에너지절약유공자(계획표창)\n\t 표창대상자 1명 선정하겠습니다.\n\t * 점검사항 : 멀티탭 준수,\n\t 불필요 전원 OFF\n\t 가로등 점등 및 소등상태 등", - "styleAttributes":{}, - "x":548, - "y":38260, - "width":428, - "height":440 - }, - { - "id":"ea4811d3ffbe6d41", - "type":"text", - "text":"- [x] 1월 재활용 매각대금\n✔️미제출 : 28,29,30연대\n\n\t1월 음식물 관리대장\n\t✔️미제출 : 28연대, 입심대\n\t\n\t미제출 부대는 익일까지 기존 메모로\n\t제출 부탁드립니다.", - "styleAttributes":{}, - "x":548, - "y":38700, - "width":428, - "height":240 - }, - { - "id":"1de1457ffaa2db5b", - "type":"text", - "text":"- [x] 건설장비 지원 소요 종합, 한서욱,~3.19", - "styleAttributes":{}, - "x":1544, - "y":40180, - "width":408, - "height":60 - }, - { - "id":"94ff4a23cbbd8988", - "type":"text", - "text":"# 3. 19. (목) 카풀", - "styleAttributes":{}, - "x":1544, - "y":40120, - "width":408, - "height":60 - }, - { - "id":"8b855b3f52b3837c", - "type":"text", - "text":"- [x] 병영생활 관 신축 1단계 선행연구 착수토의,~13, 연대장님주관", - "styleAttributes":{}, - "x":1136, - "y":40180, - "width":408, - "height":60 - }, - { - "id":"890967733f58876e", - "type":"text", - "text":"# 3. 18. ( 수 )", - "styleAttributes":{}, - "x":1136, - "y":40120, - "width":408, - "height":60 - }, - { - "id":"0e2cc76bed354895", - "type":"text", - "text":"- [x] K5 휴대주며니 수령,이승민, 251개", - "styleAttributes":{}, - "x":976, - "y":38320, - "width":1264, - "height":60 - }, - { - "id":"cdbbe36203ab042a", - "type":"text", - "text":"- [ ] 26년 연대 평가관련 현황종합 및 훈련준비,정구휘, 4.15\n\t1. 탄약치장물자 수령분배\n\t2. 개인군장결속\n\t3. 삽탄,임무형보호태세\n\t4. 개인임무수행철 최신화,3.16\n\t5. 연대통제 전투준비태세, 지휘통제기구 훈련,3.18 1400-1530\n\t6. ", - "styleAttributes":{}, - "x":976, - "y":38380, - "width":1264, - "height":220 - }, - { - "id":"5dbe882ddaaeddcb", - "type":"text", - "text":"- [ ] 안전관리자 인사명령 의뢰,,김수형,~.3.12", - "styleAttributes":{}, - "x":976, - "y":38600, - "width":1264, - "height":60 - }, - { - "id":"6991edff103b0c04", - "type":"text", - "text":"- [x] 부유대는 총 1700개입니다\n- [x] 1교 700, 2교 600, 3교 400\n\n- [x] 연결키트 종합\n- [x] 1교:30미리 135세트\n- [x] 2교:30미리 443세트\n- [x] 3교:30미리 160세트\n- [x] 로 보고 하겠습니다", - "styleAttributes":{}, - "x":548, - "y":39275, - "width":428, - "height":245 - }, - { - "id":"7cf1125e20ce2661", - "type":"text", - "text":"- [x] [차량사고예방교육 대상자 최신화]\n\t* 3. 5. (목) 15:46 발송메모\n\t\n\t부대별 1차 교육 참석자\n\t2차교육 참석예정인원, 미참석자\n\t최신화하여 의견으로\n\t오늘 중 올려주세요.\n\t* 보고완료 : 25연대, 군지,교지대대\n\t병역심사관리대", - "styleAttributes":{}, - "x":548, - "y":38940, - "width":428, - "height":335 - }, - { - "id":"333741a9ae2f78d4", - "type":"text", - "text":"- [x] 교육과구매품 재산증가,이명세, 회의용테이블(37w002126) 5개, TV(37w024149)3개", - "styleAttributes":{}, - "x":976, - "y":38260, - "width":408, - "height":60 - }, - { - "id":"3083c073eaacd986", - "type":"text", - "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", - "styleAttributes":{}, - "x":120, - "y":39520, - "width":2120, - "height":60 - }, - { - "id":"586de2cb8f4139bd", - "type":"text", - "text":"- [x] **병영생활 관 신축 1단계 선행연구 착수토의,~13, 자체,지원과장,교육대장,교지관**", - "styleAttributes":{}, - "x":280, - "y":40180, - "width":856, - "height":60 - }, - { - "id":"95a9d73b9bdc059b", - "type":"text", - "text":"- [x] 훈련병 방탄헬멧 교체소요 파악,박형주,~3.16", - "styleAttributes":{}, - "x":280, - "y":40240, - "width":428, - "height":60 - }, - { - "id":"bd12352d1e0b7417", - "type":"text", - "text":"- [ ] 국방군수통합체계 교육인원파악,한서욱 #없음", - "styleAttributes":{}, - "x":280, - "y":40300, - "width":428, - "height":60 - }, - { - "id":"c45a500bee9c402c", - "type":"text", - "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", - "styleAttributes":{}, - "x":120, - "y":39580, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"649ed3476e696fdd", - "type":"text", - "text":"고생많으십니다 \n혹시나해서 생수 예산반납 전 한번 더 전달드립니다.\n3월부터는 배출용생수는 도시락 업체에서 제공하기에 따로 신청하시면 안됩니다.\n각 교육대에도 꼭 전달 부탁 드립니다.\n(3월 1주차에 생수업체 통해 신청하신 부분은 제가 인지하고 있어서 1주차에 신청해서 필요한 예상금액 외에는 전액 반납예정입니다)", - "styleAttributes":{}, - "x":976, - "y":39640, - "width":464, - "height":280 - }, - { - "id":"091905d9503f6d90", - "type":"text", - "text":"# 3. 16. (월) ", - "styleAttributes":{}, - "x":280, - "y":40120, - "width":428, - "height":60 - }, - { - "id":"c8d734ac351ebacc", - "type":"text", - "text":"# 3. 17.( 화 ) 카풀", - "styleAttributes":{}, - "x":708, - "y":40120, - "width":428, - "height":60 - }, - { - "id":"1941c6a014a0cece", - "type":"text", - "text":"- [ ] 부대운영진단 준ㅂ", - "styleAttributes":{}, - "x":1880, - "y":38660, - "width":360, - "height":60, - "color":"1" - }, - { - "id":"bd92ac90717a18d6", - "type":"text", - "text":"- [ ] [군수계획업무전파]\n\t1. 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * 열외자는 지휘관주관 교육실시 후\n\t 공문보고\n\t1. 소방안전관리자 교육대상자 종합\n\t * 메모보고 참조(오늘중 보고)\n\t * 교육미이수자, 보직교체예정부대\n\t 교육필요\n\t1. 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고 \n\t1. 봄맞이 환경정화활동 적극실시\n\t * 4.2.(목) 지휘보고 포함 결과보고\n\t1. 에너지관리실태 현장확인\n\t * 가로등.경계등 ON OFF\n\t 올바른 멀티탭 사용\n\t 불필요전원코드 제거\n\t (별) 점검결과 우수부대는\n\t 전반기 에너지절약 계획표창반영(1명)", - "styleAttributes":{}, - "x":976, - "y":38660, - "width":408, - "height":700 - }, - { - "id":"df12114b7b09fb75", - "type":"text", - "text":"☆**==FS연습기간 공직기강 점검 :==** 3. 9 ~ 19\n관련 간부 출퇴근, 총기탄약 관리, 예산사용, 당직근무체계, 비상대비태세, 보안, 식당관리 등 관심갖고 조치바랍니다. **자체점검 결과보고** ", - "styleAttributes":{}, - "x":120, - "y":37960, - "width":2120, - "height":60, - "color":"1" - }, - { - "id":"75f349f3d1af34fa", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":120, - "y":38020, - "width":2120, - "height":100, - "color":"3" - }, - { - "id":"b69929a4f23c7f12", - "type":"text", - "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", - "styleAttributes":{}, - "x":120, - "y":38120, - "width":2120, - "height":140, - "color":"1" - }, - { - "id":"40b9f1e87ede3b0a", - "type":"text", - "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", - "styleAttributes":{}, - "x":120, - "y":37660, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"09014b045832959b", - "type":"text", - "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", - "styleAttributes":{}, - "x":120, - "y":37720, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"cffc77d75af09b15", - "type":"text", - "text":"- [x] 손망실 처리 변상대상자 동의서 제출(이명세상사)", - "styleAttributes":{}, - "x":120, - "y":37780, - "width":2100, - "height":60 - }, - { - "id":"0aa3944c916c827c", - "type":"text", - "text":"- [x] ==[[예산]] 사용계획보고== ", - "styleAttributes":{}, - "x":976, - "y":37840, - "width":1244, - "height":60, - "color":"1" - }, - { - "id":"956330e0c86f62b9", - "type":"text", - "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", - "styleAttributes":{}, - "x":120, - "y":37540, - "width":2100, - "height":60, - "color":"1" - }, - { - "id":"5d2e958af2bf2c64", - "type":"text", - "text":"- [x] **예산 집행 독촉,홍채림**\n\t- [ ] 지역상생\n\t- [ ] 취사기구유지비 \n\t- [ ] 26-2차 결과공문", - "styleAttributes":{}, - "x":548, - "y":37840, - "width":428, - "height":120 - }, - { - "id":"f9d90e3fc6c75224", - "type":"text", - "text":"- [x] **국방부 총기,탄약 점검(훈련소), 1330, 한서욱,1300~1400,전부대,물자관리과 중령 최기영,4급정유진,7급 김지호, CCTV감시적정,30일보관,열쇠이원화관리**", - "styleAttributes":{}, - "x":120, - "y":37840, - "width":428, - "height":120 - }, - { - "id":"d12194cae1a42603", - "type":"text", - "text":"- [x] **수통클린시스템, 수통분실 손망실 보고서작성,~13, 조태숙, 14개없어짐, 몇개줬는데 몇개 없어진건지** `확인해야함`,(25에서 14개),!", - "styleAttributes":{}, - "x":548, - "y":37290, - "width":1672, - "height":65 - }, - { - "id":"9dda6eecff52359a", - "type":"text", - "text":"- [x] **3중대 소총 손망실 서류 검토 제출, 이재성**", - "styleAttributes":{}, - "x":548, - "y":37355, - "width":1672, - "height":65 - }, - { - "id":"871ccc35147d3572", - "type":"text", - "text":"- [ ] 26-1차 국방 안전관리담당 교육 희망자 동합,~13,김수형,4.27~5.1,국방대", - "styleAttributes":{}, - "x":1386, - "y":37420, - "width":834, - "height":60 - }, - { - "id":"a3e77b2623a2e900", - "type":"text", - "text":"- [x] 1교육대 내일 전출간부 1명 총기 1정 및 대검 1정 연대무기고 반납 있습니다!\n개방시간은 1540으로 인지하겠습니다!\n@최병규 @박성현 하사 ", - "styleAttributes":{}, - "x":1384, - "y":37600, - "width":404, - "height":60 - }, - { - "id":"4ecfe43116174cd2", - "type":"text", - "text":"- [x] 3월 방역업체(케어원) 방문예정", - "styleAttributes":{}, - "x":1384, - "y":37480, - "width":406, - "height":60 - }, - { - "id":"913d80534bfb39fe", - "type":"text", - "text":"- [x] 가스결산", - "styleAttributes":{}, - "x":1788, - "y":37475, - "width":430, - "height":70 - }, - { - "id":"4a66d5656e8290fd", - "type":"text", - "text":"- [x] **26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화), / 지휘관 보고 및 심의, 3.5(목) 13:30, 집무실, 다시 수정해서 공문으로 보고, 지시했던 내용을 누락하지말자** ", - "styleAttributes":{}, - "x":120, - "y":37290, - "width":428, - "height":130 - }, - { - "id":"f822a7e4ebf42f05", - "type":"text", - "text":"- [x] **[[예산]], 사용자 보수비 계획보고, 안일남,김미화**", - "styleAttributes":{}, - "x":120, - "y":37600, - "width":856, - "height":60 - }, - { - "id":"1216f25d5fd1b6bd", - "type":"text", - "text":"- [x] 간부 인성검사", - "styleAttributes":{}, - "x":120, - "y":37480, - "width":1264, - "height":60 - }, - { - "id":"489f562861364417", - "type":"text", - "text":"- [ ] 위험성평가 작성", - "styleAttributes":{}, - "x":120, - "y":37420, - "width":1264, - "height":60, - "color":"3" - }, - { - "id":"cb2d7fffcdd272c8", - "type":"text", - "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", - "styleAttributes":{}, - "x":486, - "y":35980, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"0be413f59702dd4b", - "type":"text", - "text":"- [ ] **[[예산]], 사용자 보수비 계획보고, 안일남,김미화**", - "styleAttributes":{}, - "x":486, - "y":35920, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"05672f5ff4f49778", - "type":"text", - "text":"# 3. 6.( 금 )", - "styleAttributes":{}, - "x":1322, - "y":35000, - "width":428, - "height":60 - }, - { - "id":"4ee1ebe38076eaf5", - "type":"text", - "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", - "styleAttributes":{}, - "x":486, - "y":36140, - "width":1264, - "height":60 - }, - { - "id":"72bf07734a0c14a3", - "type":"text", - "text":"- [x] 식당, 가스계량기(G10)교체 추적확인, ~27 결과:2번째 섭체 선정\n\t- [ ] 01064075665 : 770,000원\n\t- [ ] [[01071921116]] : 699600원, 육영건설\n\t- [ ] 01066592067\n\t- [ ] 01041009427 : : 35만원(계량기#인건비) 입니다\n\t- [ ] [[01028286846]] : 632500원, 화성", - "styleAttributes":{}, - "x":486, - "y":36200, - "width":1264, - "height":200 - }, - { - "id":"1c2e29c0297ee671", - "type":"text", - "text":"- [x] 도시락 간담회,장성국,1400,김낙중영웅실,", - "styleAttributes":{}, - "x":1322, - "y":35120, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"0dbcfc382bcb081a", - "type":"text", - "text":"- [x] 지휘관 월간 탄약고 덤검", - "styleAttributes":{}, - "x":1322, - "y":35060, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"632a62dfda12fbd2", - "type":"text", - "text":"- [ ] 수저 소요종합,황인찬,37w034910,~3.6 #취소", - "styleAttributes":{}, - "x":1322, - "y":35180, - "width":428, - "height":60 - }, - { - "id":"d2605c4171896b86", - "type":"text", - "text":"- [ ] 손망실 처리 변상대상자 동의서 제출(이명세상사)", - "styleAttributes":{}, - "x":1342, - "y":34380, - "width":462, - "height":60, - "color":"1" - }, - { - "id":"e532839bef2453da", - "type":"text", - "text":"- [ ] 영상교재 활용,저장화생방 장비물ㅏ 시뇟닝 평가(csrp) 업무가이드", - "styleAttributes":{}, - "x":1346, - "y":34440, - "width":458, - "height":100 - }, - { - "id":"61f6efef25d5c391", - "type":"text", - "text":"- [x] 핸드토키,1대(cpl10215),정비불가,불용신청,조희철", - "styleAttributes":{}, - "x":486, - "y":35240, - "width":408, - "height":60 - }, - { - "id":"b5728ef779cb56a3", - "type":"text", - "text":"- [ ] 간부 인성검사", - "styleAttributes":{}, - "x":1342, - "y":35660, - "width":408, - "height":60 - }, - { - "id":"2a63968443b16167", - "type":"text", - "text":"- [x] **총기탄약 자체점검 결과보고, 1500**", - "styleAttributes":{}, - "x":1342, - "y":35720, - "width":408, - "height":60, - "color":"1" - }, - { - "id":"c9e0bf38db3b7d46", - "type":"text", - "text":"- [x] 2월 안전점검의날 행사 결과 종합, 작성, 안전실 게시판 보고", - "styleAttributes":{}, - "x":486, - "y":35360, - "width":1264, - "height":60 - }, - { - "id":"177e9de484c5e6d0", - "type":"text", - "text":"- [ ] **26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화),** / 지휘관 보고 및 심의, 3.5(목) 13:30, 집무실, 다시 수정해서 공문으로 보고, 지시했던 내용을 누락하지말자 ", - "styleAttributes":{}, - "x":486, - "y":35420, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"19bd0f77b934f231", - "type":"text", - "text":"- [x] 가스계량기 교체 업체 출입신청", - "styleAttributes":{}, - "x":1342, - "y":35480, - "width":408, - "height":60 - }, - { - "id":"9a2b276bb23fdbe8", - "type":"text", - "text":"- [ ] 위험성평가 작성", - "styleAttributes":{}, - "x":1342, - "y":35540, - "width":408, - "height":60, - "color":"3" - }, - { - "id":"9b89f886f4f203f0", - "type":"text", - "text":"- [x] **2월 은닉 재산초과 탄약 회수활동 결과보고,~3.4, 한서욱**", - "styleAttributes":{}, - "x":486, - "y":35480, - "width":408, - "height":60 - }, - { - "id":"a4c2b3ca19e619ec", - "type":"text", - "text":"- [x] 화생방보호의 교육용 정수부족 노후교체 소요종합,~5,한서욱", - "styleAttributes":{}, - "x":486, - "y":35120, - "width":836, - "height":60 - }, - { - "id":"22f37f7afa0bda7a", - "type":"text", - "text":"- [x] 기간 장병용 정수부족분 수통보급 소요종합, 박형주,~3.5", - "styleAttributes":{}, - "x":486, - "y":35180, - "width":836, - "height":60 - }, - { - "id":"c58de6ffb58dc631", - "type":"text", - "text":"- [x] 컴퓨터 교체,이명세, 인수인계서 작성제출,~6", - "styleAttributes":{}, - "x":894, - "y":35240, - "width":856, - "height":60 - }, - { - "id":"7dfea70b51f6f3c1", - "type":"text", - "text":"- [x] 병영생환관 화장실(대변칸) 천장보수 샘플제시,현장토의,최기호", - "styleAttributes":{}, - "x":486, - "y":35300, - "width":408, - "height":60 - }, - { - "id":"abe947ec9c5cdf2d", - "type":"text", - "text":"- [x] K5방독면 휴대주머니 교체소요 종합,이승민~3.6 결과 1교 251개", - "styleAttributes":{}, - "x":486, - "y":35800, - "width":1264, - "height":60 - }, - { - "id":"b7707eca90d961f9", - "type":"text", - "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", - "styleAttributes":{}, - "x":486, - "y":35860, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"82b43743b27b9aeb", - "type":"text", - "text":"- [ ] 물자유지비(cctv) 정비예산 건의,이명세, 견적서 메일보냄", - "styleAttributes":{}, - "x":894, - "y":35300, - "width":856, - "height":60, - "color":"1" - }, - { - "id":"7acec792f8f94452", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":-370, - "y":36040, - "width":2120, - "height":100, - "color":"3" - }, - { - "id":"e361bc2c2f15f16b", - "type":"text", - "text":"- [ ] 이재성 손망실, ~3.11(수), 군수과 제출 > 감찰실 검토 요청", - "styleAttributes":{}, - "x":-370, - "y":35600, - "width":2120, - "height":60 - }, - { - "id":"7c77c2a40f19e2b1", - "type":"text", - "text":"# 3. 5.( 목 )", - "styleAttributes":{}, - "x":894, - "y":35000, - "width":428, - "height":60 - }, - { - "id":"be48ebe435a2460e", - "type":"text", - "text":"# 3. 4.( 수 )", - "styleAttributes":{}, - "x":486, - "y":35000, - "width":408, - "height":60 - }, - { - "id":"2c49e0f40c45493a", - "type":"text", - "text":"# 3. 3.( 화 )", - "styleAttributes":{}, - "x":58, - "y":35000, - "width":428, - "height":60 - }, - { - "id":"a8b87cf0c929a34e", - "type":"text", - "text":"- [ ] 통신장비 예방정비", - "styleAttributes":{}, - "x":78, - "y":34060, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"6c901dc787b6b818", - "type":"text", - "text":"- [x] 사무실이동", - "styleAttributes":{}, - "x":78, - "y":33940, - "width":428, - "height":60 - }, - { - "id":"04e64c526d4f71f5", - "type":"text", - "text":"- [x] 2.25(수), 오후에 선임행보관님, 군수담당관은 종합된 의견 가지고 주임원사실에서 토의한번하겠습니다.", - "styleAttributes":{}, - "x":506, - "y":33030, - "width":428, - "height":170, - "color":"1" - }, - { - "id":"127d8cf32276af83", - "type":"text", - "text":"- [ ] [[봅맞이 환경정리]] 계획보고,~3.3(화) 100,유재", - "styleAttributes":{}, - "x":506, - "y":32970, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"b0b81fcded5526ff", - "type":"text", - "text":"- [x] 회식", - "styleAttributes":{}, - "x":934, - "y":33940, - "width":408, - "height":60 - }, - { - "id":"c11a7558a8330b48", - "type":"text", - "text":"- [x] 전역자 이불세탁 소요보고(3월15일기준),박관식 #매월 ~26", - "styleAttributes":{}, - "x":934, - "y":33020, - "width":408, - "height":80 - }, - { - "id":"45a00c4bf93ac18f", - "type":"text", - "text":"- [x] 장거리 배차 신청 종합 보고, 유재형,~2.26", - "styleAttributes":{}, - "x":934, - "y":32810, - "width":408, - "height":70 - }, - { - "id":"0b0865ee05eef2e7", - "type":"text", - "text":"- [ ] 청렴교육 수료증 제출,고재은,나라배움 #미실시-", - "styleAttributes":{}, - "x":1342, - "y":32810, - "width":428, - "height":70 - }, - { - "id":"c794c0f278ff3a56", - "type":"text", - "text":"- [x] 3월 안전점검의날 ", - "styleAttributes":{}, - "x":486, - "y":35060, - "width":408, - "height":60, - "color":"1" - }, - { - "id":"57d2334e0b657d90", - "type":"text", - "text":"- [ ] 2교육대 방독면 폐처리 정비의뢰,강재구\n\t- [ ] 전산상 반납후 전화요청\n\t- [ ] 2교육대 방독면 총 131개 입니다..!\n\t- [ ] 5중대 - 총 22개\n중좌 17개\n대좌 2개\n중우 3개\n\n6중대 - 총 32개\n소좌 3개\n중좌 21개\n대좌 8개\n\n7중대 - 총 65개\n중좌 61개\n대좌 4개\n\n8중대 - 총 12개\n중좌 8개\n중우 4개", - "styleAttributes":{}, - "x":78, - "y":34380, - "width":502, - "height":560, - "color":"1" - }, - { - "id":"5d25fae239339315", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":-350, - "y":33560, - "width":2100, - "height":100, - "color":"3" - }, - { - "id":"4ea3993c943d52af", - "type":"text", - "text":"- [ ] 식당, 가스계량기(G10)교체 추적확인, ~27\n\t- [ ] 01064075665\n\t- [ ] [[01071921116]] : 699600원, 육영건설\n\t- [ ] 01066592067\n\t- [ ] 01041009427 : : 35만원(계량기#인건비) 입니다\n\t- [ ] [[01028286846]] : 632500원, 화성", - "styleAttributes":{}, - "x":-350, - "y":33740, - "width":2100, - "height":200 - }, - { - "id":"337a1b5071d4677b", - "type":"text", - "text":"- [ ] 이재성 손망실, ~3.11(수), 군수과 제출 > 감찰실 검토 요청", - "styleAttributes":{}, - "x":-350, - "y":33200, - "width":2120, - "height":60 - }, - { - "id":"9299038c4dff079e", - "type":"text", - "text":"- [ ] 1교육대 K5정화통 반납, 누가?", - "styleAttributes":{}, - "x":64, - "y":33380, - "width":442, - "height":60 - }, - { - "id":"51caab59e1f8f46e", - "type":"text", - "text":"- [ ] 7중대 총기 1정(739426) 반납,오세열,김범수", - "styleAttributes":{}, - "x":506, - "y":33380, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"cfd75170577b5c93", - "type":"text", - "text":"- [ ] K5방독면 휴대주머니 교체소요 종합,이승민~3.6", - "styleAttributes":{}, - "x":506, - "y":33320, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"8cb4d677a6881d16", - "type":"text", - "text":"- [ ] 가스사용시설 안전관리자 교육,장성국,3.18-20 원격교육.! 3.23-24 소집교육", - "styleAttributes":{}, - "x":506, - "y":33260, - "width":428, - "height":60 - }, - { - "id":"82130f90719ff177", - "type":"text", - "text":"- [ ] 수리부속 수령,보안경200,1교청구", - "styleAttributes":{}, - "x":934, - "y":33260, - "width":408, - "height":60 - }, - { - "id":"535e88852e5d2724", - "type":"text", - "text":"- [ ] 2차 오수봔로 개선사업,신상이,1020,위병소 면회실,지원과장,군수실무자 #미참석", - "styleAttributes":{}, - "x":924, - "y":33100, - "width":496, - "height":60, - "color":"1" - }, - { - "id":"947b4dc6bf9eea88", - "type":"text", - "text":"~~최상사님~ 잘지내시죠?~~\n~~다름아니라 전군 군수품 조사 관련해서 전산착오품목 델리스상 군수품조정 입력해 주셔야 해서요. 가능하시면 내일 좀 부탁드려요~ 오늘도 고생하셨습니다.~~", - "styleAttributes":{}, - "x":1342, - "y":33320, - "width":462, - "height":200, - "color":"1" - }, - { - "id":"7f1cb4a3ed4b6523", - "type":"text", - "text":"- [ ] 원도우11 보안업데이트를 위한 조치,이명세", - "styleAttributes":{}, - "x":1342, - "y":32695, - "width":428, - "height":60 - }, - { - "id":"cbfb0e874b33409d", - "type":"text", - "text":"- [x] 이재성상사, 손망실 보고서 작성제출 처리, ", - "styleAttributes":{}, - "x":954, - "y":31740, - "width":816, - "height":60 - }, - { - "id":"a88a34ed05914cfe", - "type":"text", - "text":"- [ ] 3월 한시적 인가 소요파악 보고,~19,장성국 #진행중", - "styleAttributes":{}, - "x":954, - "y":31800, - "width":816, - "height":60 - }, - { - "id":"b12eaec1bfdbeaed", - "type":"text", - "text":"- [x] [[사이버 보안 진단의 날 시행-1]]사이버 보안진단의날 행사,", - "styleAttributes":{}, - "x":954, - "y":31860, - "width":816, - "height":60 - }, - { - "id":"27e54c4ce79d9a0a", - "type":"text", - "text":"- [ ] 위임보수 건의(식당 음료취수기쪽 바닥 타일 박리),연대장님 지시", - "styleAttributes":{}, - "x":78, - "y":32970, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"0bc112d6faf8a46b", - "type":"text", - "text":"# 2. 28.( 토 )", - "styleAttributes":{}, - "x":1770, - "y":32400, - "width":428, - "height":60, - "color":"#1100ff" - }, - { - "id":"83731d1c0039888d", - "type":"text", - "text":"# 2. 27.( 금 )", - "styleAttributes":{}, - "x":1342, - "y":32400, - "width":428, - "height":60 - }, - { - "id":"1a6b97ea206031fc", - "type":"text", - "text":"- [x] 부대운영자재비 사용 현황 보고, 주임원사님", - "styleAttributes":{}, - "x":1362, - "y":32020, - "width":408, - "height":60 - }, - { - "id":"0f9cb0f655d4c755", - "type":"text", - "text":"- [x] 군수예산 계획보고 수정보고,3건", - "styleAttributes":{}, - "x":1362, - "y":32140, - "width":408, - "height":60 - }, - { - "id":"0d2d1842f603eb80", - "type":"text", - "text":"- [x] 가스업체 소급업체 담당자 처리,1400", - "styleAttributes":{}, - "x":1362, - "y":32080, - "width":408, - "height":60 - }, - { - "id":"e2a1095d642c3e42", - "type":"text", - "text":"# 2. 26.( 목 )", - "styleAttributes":{}, - "x":934, - "y":32400, - "width":408, - "height":60 - }, - { - "id":"1a66b110f2f61ee9", - "type":"text", - "text":"- [x] 박성록 행보관님 전기기능사 원서 출력", - "styleAttributes":{}, - "x":2198, - "y":32460, - "width":428, - "height":60 - }, - { - "id":"27d0b52ae3b6e967", - "type":"text", - "text":"- [x] 26년 전반기 운행책임자 평가 결과보고,~27,유재형", - "styleAttributes":{}, - "x":934, - "y":32460, - "width":836, - "height":60 - }, - { - "id":"261e46bb235ac10b", - "type":"text", - "text":"# 3. 1. (일) 본부중대 당직근무", - "styleAttributes":{}, - "x":2198, - "y":32400, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"50181c9afe29bde6", - "type":"text", - "text":"- [ ] 육군규정 개정소요,한서욱,~3.6", - "styleAttributes":{}, - "x":-350, - "y":34000, - "width":2976, - "height":60 - }, - { - "id":"61880b61414d0a7d", - "type":"text", - "text":"- [ ] 사용자보수비 심의자료 작성", - "styleAttributes":{}, - "x":2198, - "y":32700, - "width":428, - "height":60 - }, - { - "id":"bb211e09d707972f", - "type":"text", - "text":"- [ ] 2분기 사용다보수비 소요종합,", - "styleAttributes":{}, - "x":1342, - "y":32640, - "width":1284, - "height":60 - }, - { - "id":"67136af9eb227564", - "type":"text", - "text":"- [ ] 군수예산 사용계획보고 공문작성", - "styleAttributes":{}, - "x":2198, - "y":32760, - "width":428, - "height":60 - }, - { - "id":"10ffb0899226d031", - "type":"text", - "text":"- [ ] 1분기 장비 탄약 관리실태 현장 확인 결과 조치해야할 사항\n\t- [ ] 관련근거\n\t\t- [ ] 육규 428 군수품 및 재산출납관리 규정\n\t\t- [ ] 유규 465 탄약관리규정\n\t\t- [ ] 육규 471 장비관리규정\n\t\t- [ ] 육규 742 화생방 장비 물자 관리규정\n\t- [ ] 은닉탄 회수함 보완\n\t- [ ] 저장화생방 장비물자 관리제웟표 최신화\n\t- [ ] 부대행정압무 총기결산, 전산대장 내용 누락\n\t- [ ] 총기관리책임관 정(교육대장,) cctv 확인\n\t- [ ] 정비지시서 미완결 처리(7일이내)", - "styleAttributes":{}, - "x":1342, - "y":33940, - "width":462, - "height":380, - "color":"1" - }, - { - "id":"e07866285076b3ee", - "type":"text", - "text":"[군수계획 업무 전파]\n1. 도로교통공단 전문강사 초빙\n 해빙기 차량사고 예방교육 \n 참석대상자 종합(메모보고 참조)\n * 대상 : 직접운전자, 운행책임자,\n 운전병 전원\n (별) 보고기한 : 2. 26. (목) 한\n\n2. 전반기 운행책임자 자격인증평가\n (공문 참조)\n * 대상 : 453명 / 전 부대(엑셀파일)\n * 국방수송정보체계 접속 후 \n 온라인평가\n (별) 부대(서)별 실시결과 보고(공문)\n : 2. 27.(금) 한 / 군지대대, 군수과 보고\n\n3. 폭염대비 재난대비물자 소요 종합\n (종합 메모보고 발송 예정)\n (별) 소요 종합 후 26년 배정예산 고려\n 예하부대 재배정\n * 대상 물자 : 폭염응급키트, 인삼천, \n 아이스조끼, 아이스팩, 보냉가방 등\n * 올해는 폭염응급키트 구매비용이 \n 추가로 나오지 않습니다.\n\n4. 봄맞이 주둔지, 훈련장 환경정리 추진\n (메모보고 참조)\n (별) 부대별 계획보고 : 3. 5. (목)\n - 연대 : 주간회의 지휘보고에 포함\n - 직할부대 : 참모장님 간담회시 보고", - "styleAttributes":{}, - "x":934, - "y":33320, - "width":408, - "height":880 - }, - { - "id":"52b244882390875f", - "type":"text", - "text":"- [ ] 2월 안전점검의날 행사 결과보고", - "styleAttributes":{}, - "x":506, - "y":32520, - "width":2120, - "height":60 - }, - { - "id":"69dc038518cf1af0", - "type":"text", - "text":"- [x] 이발,1430", - "styleAttributes":{}, - "x":78, - "y":32520, - "width":428, - "height":60 - }, - { - "id":"db7d1211fd377634", - "type":"text", - "text":"- [ ] 1교 수통세척예정", - "styleAttributes":{}, - "x":506, - "y":32640, - "width":428, - "height":60 - }, - { - "id":"8e66b7ebb9b36919", - "type":"text", - "text":"- [ ] 해빙기 차량사고예방 교육,유재형,박성현,충무강당,1000 #미참석", - "styleAttributes":{}, - "x":78, - "y":32640, - "width":428, - "height":60 - }, - { - "id":"675437a043034c50", - "type":"text", - "text":"# 2. 24.( 화 )", - "styleAttributes":{}, - "x":78, - "y":32400, - "width":428, - "height":60 - }, - { - "id":"b99f4d2d852ed008", - "type":"text", - "text":"# 2. 25.( 수 )", - "styleAttributes":{}, - "x":506, - "y":32400, - "width":428, - "height":60 - }, - { - "id":"83e770189723c061", - "type":"text", - "text":"- [x] 30-1 이불패드매트리스 세닥", - "styleAttributes":{}, - "x":506, - "y":32460, - "width":428, - "height":60 - }, - { - "id":"c20fad49ee098739", - "type":"text", - "text":"- [x] 차량예방정비,3508-3호", - "styleAttributes":{}, - "x":78, - "y":32460, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"75e33ac81dc9a81d", - "type":"text", - "text":"- [ ] 사용자보수비 심의, 2교 견적서 제출,4건\n\t- [ ] 부대운영자재비 1건", - "styleAttributes":{}, - "x":-350, - "y":34320, - "width":2976, - "height":60 - }, - { - "id":"42b76ed37498aa62", - "type":"text", - "text":"- [ ] 2월 안전점검의날 행사 결과 종합, 작성, 안전실 게시판 보고", - "styleAttributes":{}, - "x":-350, - "y":32580, - "width":2976, - "height":60 - }, { "id":"02858b9ac0d2e2fc", "type":"text", @@ -7525,99 +5154,6 @@ "height":60, "color":"1" }, - { - "id":"67ba71556f30f0c9", - "type":"text", - "text":"- [ ] 대냥유류 수령,4000리터, 연무5동,임대원,김용대 #취소", - "styleAttributes":{}, - "x":934, - "y":32640, - "width":408, - "height":60 - }, - { - "id":"8fc5a0889f11674e", - "type":"text", - "text":"- [ ] 26년 민간위닥 수정계약 공문, 보고, ~25 #미보고", - "styleAttributes":{}, - "x":78, - "y":32700, - "width":428, - "height":60 - }, - { - "id":"98e503a48ee34687", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":-330, - "y":31920, - "width":2100, - "height":100, - "color":"3" - }, - { - "id":"a51372ee24af7aba", - "type":"text", - "text":"- [x] 도시락 품평회,1030,식당, 장성국", - "styleAttributes":{}, - "x":78, - "y":32760, - "width":428, - "height":60 - }, - { - "id":"27d89f1ade54ec56", - "type":"text", - "text":"- [x] 참모주간 무기고탄약고 점검 #미실시-", - "styleAttributes":{}, - "x":1342, - "y":32755, - "width":428, - "height":60 - }, - { - "id":"550cb85af67ef33a", - "type":"text", - "text":"- [ ] 식기세척기용세제,린스 보급,0800,세척제37x923786,144,헹굼청가제 접시닦기용(375034413),48,28-30-26연대", - "styleAttributes":{}, - "x":934, - "y":32700, - "width":408, - "height":110 - }, - { - "id":"9011e16ad6d0bef0", - "type":"text", - "text":"- [ ] 3월 안전점검의날 일저 파악!!김수형,~27 #매월", - "styleAttributes":{}, - "x":1342, - "y":33020, - "width":1284, - "height":60 - }, - { - "id":"cfe9bb0e8b8492f6", - "type":"text", - "text":"- [ ] 2월 은닉 재산초과 탄약 회수활동 결과보고,~3.4, 한서욱", - "styleAttributes":{}, - "x":934, - "y":32960, - "width":1692, - "height":60, - "color":"1" - }, - { - "id":"a2ed536327463b72", - "type":"text", - "text":"- [ ] 26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화), ", - "styleAttributes":{}, - "x":78, - "y":32900, - "width":2548, - "height":60, - "color":"1" - }, { "id":"66ffcb1141a9bd8d", "type":"text", @@ -7670,6 +5206,2634 @@ "width":405, "height":60 }, + { + "id":"0c06c091ed43fe28", + "type":"text", + "text":"- [x] [설 연휴 전 부대별 조치사항 : 2. 12.(목) 10:00 한 완료보고] \n1. (교육사 지시) 무기고,탄약고 출입구(열쇠) 봉인\n * 미사용시설(창고,사무실 등)은\n 해부대 지휘관 판단 하 실시\n2. 연휴 전 화재취약시설 및 장소 \n 일제점검(화재 예방활동)\n (부대별 자체점검)\n * 미사용 전원코드 제거 \n 미사용시설 점검(화재취약요인제거)\n3. 연휴간 급식대책 이상유무 확인\n\n(별) 위 사항 부대별 진행하고\n 2. 12. (목) 10시까지 \n 아래와 같이 단톡방에\n 결과를 보고해주십시요.\n\n(별) 00연대 1,2,3번 완료", + "styleAttributes":{}, + "x":856, + "y":29798, + "width":405, + "height":482 + }, + { + "id":"bbc6c3b06eeb402a", + "type":"text", + "text":"- [ ] 장비지휘검열 확인검열 후속조치, 1분기 총기탄약 점검 후속조치 , 원정완 #취소", + "styleAttributes":{}, + "x":450, + "y":30398, + "width":808, + "height":62 + }, + { + "id":"9d49829f34735dc0", + "type":"text", + "text":"- [ ] 예산, 사용자 보수비 계획보고, 안일남,김미화", + "styleAttributes":{}, + "x":449, + "y":30338, + "width":1251, + "height":60, + "color":"1" + }, + { + "id":"4185e302a7a88fbc", + "type":"text", + "text":"- [x] 📌공지\n- [x] •군수분야 소통과 공감 일정 통보\n- [x] 일시 : 26. 2. 11(수), 10:00\n - 장소 : 군수지원대대 1층 회의실\n - 내용 : 군수분야 실시 / 예정사항\n 거구자피복 체계개선 교육\n 애로 및 건의사항 접수\n \n\t * 각 부대 지원과장, 군수담당관\n 보충역 교육대 행정보급관 등\n\n많은 관심 가져주시고 일정에 맞춰\n참석해주시면 감사하겠습니다.", + "styleAttributes":{}, + "x":450, + "y":29978, + "width":405, + "height":360 + }, + { + "id":"a925100a97aaeb7a", + "type":"text", + "text":"- [x] 대보수 소요,콘센트 소요", + "styleAttributes":{}, + "x":73, + "y":30098, + "width":379, + "height":60 + }, + { + "id":"1f1a7bccb4cafa59", + "type":"text", + "text":"- [x] 환경담당 교육파견 중에도 위 내용 전파 감사합니다.\n예하부대 다시 한번 체크 후에 보고 바랍니다. 독신숙소 포함\n이번 주, 금요일까지.\n예) 23연대 점검결과(0개소) : 이상무", + "styleAttributes":{}, + "x":73, + "y":29878, + "width":379, + "height":220 + }, + { + "id":"18eee28c722ced82", + "type":"text", + "text":"- [ ] 방독면 58개 불용승인 처리에 따른 반납 건의, 이승민, 교육용 교훈처, 운영용 군지대 신청", + "styleAttributes":{}, + "x":-350, + "y":32700, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"b2488e23f33ecb6b", + "type":"text", + "text":"- [x] 창고저장관리 현장확인,군수사 피복과장등 4명, 박형주 수행, 1100", + "styleAttributes":{}, + "x":-350, + "y":33000, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"6336f4522d15858c", + "type":"text", + "text":"- [x] 유류탱크저장소 화재사고 예방 점검결과도 부탁드립니다.\n(27연대+교육지원대대)", + "styleAttributes":{}, + "x":-350, + "y":32900, + "width":428, + "height":100 + }, + { + "id":"72468afad5ffaa63", + "type":"text", + "text":"- [x] 3월 한시인가 의견 월요일까지 부탁드립니다.\n(26.27.29.30.교지대)", + "styleAttributes":{}, + "x":-350, + "y":32820, + "width":428, + "height":80, + "color":"1" + }, + { + "id":"68e4cea991228aa3", + "type":"text", + "text":"- [ ] 군수 2월 보급결산,~27\n\t- [ ] [[일일결산]]\n\t- [ ] 국방군수정보체계 재산 수입,불출,반납 처리 정리", + "styleAttributes":{}, + "x":-350, + "y":33060, + "width":428, + "height":140, + "color":"5" + }, + { + "id":"8d8903dfffa152e6", + "type":"text", + "text":"- [ ] 보급품 분배\n\t- [ ] 티비 TV 10대\n\t\t- [ ] 1교 4(스탠드2벽걸이2)\n\t\t- [ ] 2교 2(벽걸이2)\n\t\t- [ ] 3교 4(벽걸이4)\n\t- [x] 방탄헬멧 260\n\t\t- [ ] 1교 30\n\t\t- [ ] 2교 100\n\t\t- [ ] 3교 120\n\t- [x] 방탄 부수기재(내피)1800\n\t\t- [ ] 1교 700\n\t\t- [ ] 2교 600\n\t\t- [ ] 3교 500ㄴ", + "styleAttributes":{}, + "x":1554, + "y":42680, + "width":400, + "height":480 + }, + { + "id":"a963a7248f52ce53", + "type":"text", + "text":"- [x] 버스팀장 09시 인솔\n- [x] 10시 계운과 보안교육 이후 퇴영", + "styleAttributes":{}, + "x":1554, + "y":43160, + "width":400, + "height":60 + }, + { + "id":"6ae1105f5d5a4c02", + "type":"text", + "text":"- [x] 병영생활 신축 추가 의견 반영\n- [ ] ", + "styleAttributes":{}, + "x":1160, + "y":43160, + "width":394, + "height":60 + }, + { + "id":"d69de9c19ebb0d3e", + "type":"text", + "text":"담당관 8중대장입니다. \n퇴근했는데 미안합니다. \n중대 옴 의증으로 격리되어 있는 훈련병이 있습니다. \n해당인원 부모님이 대전병원 진료를 희망하고 있어서 인솔이 필요한데\n위 언급했듯이 격리되어있는 인원인데 자차로 인솔하긴 제한되는 실정입니다. \n배차를 사용 일주일전 신청하는것이 맞지만 위 사항은\n\n부모님이 어제 민원소요로 어제 연락오신점\n격리환자로서 개인 자차를 활용하기 제한되는점\n\n위 두가지를 고려하여 혹시 차량 배차를 받을수 있는지 문의합니다. ", + "styleAttributes":{}, + "x":720, + "y":43160, + "width":440, + "height":420 + }, + { + "id":"216f7ac7690a477a", + "type":"text", + "text":"- [ ] 통신장비 폐처리,불용 신청 1대,이명세", + "styleAttributes":{}, + "x":720, + "y":43640, + "width":440, + "height":60 + }, + { + "id":"4c52c3c80ef72775", + "type":"text", + "text":"- [x] 소방점검 후속조치 , 소화기 즉시조치, 독신숙소 5동(소인사과 군숙소담당 자료요구),~3.22,유재형\n- [x] 전승훈, 956-7116,숙소관리관", + "styleAttributes":{}, + "x":290, + "y":43580, + "width":870, + "height":60, + "color":"1" + }, + { + "id":"4fc1cf0642ba2dd3", + "type":"text", + "text":"[재난 및 안전관리 예산 부대 재배정]\n* 재배정 공문하달(3.16.)\n* 폭염대비 물자(폭염응급키트)\n* 재난예방 보수비(곡괭이, 삽, 마대 등)\n\n(별) 4월 3일 한 집행완료 후 공문보고\n(별) 예산집행 지침 준용, 타용도 사용금지", + "styleAttributes":{}, + "x":290, + "y":43340, + "width":430, + "height":240 + }, + { + "id":"881a4a3962966bee", + "type":"text", + "text":"- [x] 25년 소방안전점검 후속조치 결과보고,유재형", + "styleAttributes":{}, + "x":290, + "y":43160, + "width":430, + "height":60 + }, + { + "id":"b52998535bb64b70", + "type":"text", + "text":"- [ ] 부유대 조립체 수령,김용대, 1500,9번창고", + "styleAttributes":{}, + "x":290, + "y":43220, + "width":430, + "height":60 + }, + { + "id":"5da31665cde8885a", + "type":"text", + "text":"- [ ] 보호대 수령,1500, 김용대,9번창고 #미리받음", + "styleAttributes":{}, + "x":290, + "y":43280, + "width":430, + "height":60 + }, + { + "id":"e4bd3a375e46319e", + "type":"text", + "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", + "styleAttributes":{}, + "x":290, + "y":42800, + "width":2120, + "height":60 + }, + { + "id":"1a3bf129eb681611", + "type":"text", + "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", + "styleAttributes":{}, + "x":290, + "y":42860, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"11736c0142fc864e", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":290, + "y":42920, + "width":2120, + "height":100, + "color":"3" + }, + { + "id":"48c31d3545a59bdc", + "type":"text", + "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", + "styleAttributes":{}, + "x":290, + "y":43020, + "width":2120, + "height":140, + "color":"1" + }, + { + "id":"17f5aecf3461d93e", + "type":"text", + "text":"- [ ] 군수 3월 보급결산,~27\n\t- [ ] [[일일결산]]\n\t- [ ] 국방군수정보체계 재산 수입,불출,반납 처리 정리", + "styleAttributes":{}, + "x":290, + "y":42300, + "width":2100, + "height":140, + "color":"1" + }, + { + "id":"f7c53b5bbce8b2dc", + "type":"text", + "text":"- [ ] [[부대안전진단 결과]] 점검,,3.23~27,이동섭,안잔관리체게,시설물,위험물, 총기탄약,환경,23일연대본븐(행정)", + "styleAttributes":{}, + "x":290, + "y":42440, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"11193a405012894b", + "type":"text", + "text":"- [ ] 28-32 학교기관 조리기구 중기계획 현금배정 소요작성,조태숙,~3.25", + "styleAttributes":{}, + "x":1146, + "y":42500, + "width":408, + "height":60 + }, + { + "id":"7cdf73adae8cf062", + "type":"text", + "text":"- [x] 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고", + "styleAttributes":{}, + "x":718, + "y":42500, + "width":428, + "height":60 + }, + { + "id":"27491d0033aaf143", + "type":"text", + "text":"- [ ] . 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * **열외자는 지휘관주관 교육실시 후**\n\t **공문보고**", + "styleAttributes":{}, + "x":290, + "y":42620, + "width":428, + "height":180 + }, + { + "id":"2dcd12c778bfb693", + "type":"text", + "text":"- [x] 교육사,부대관리 지도방문,~24,감찰,군수,의무,최기호", + "styleAttributes":{}, + "x":290, + "y":42560, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"71df38c0aa5b24e0", + "type":"text", + "text":"- [x] 건설장비 지원 종합,한서욱,~3.27", + "styleAttributes":{}, + "x":1962, + "y":42180, + "width":428, + "height":60 + }, + { + "id":"4f2105ee4f1c700d", + "type":"text", + "text":"- [ ] 투광등 공사,조범희 주무관(전기),1교5,풋살2,가로등6", + "styleAttributes":{}, + "x":1916, + "y":42500, + "width":474, + "height":60 + }, + { + "id":"fc92f776d4ee50ed", + "type":"text", + "text":"- [ ] 벼영생활관 신축 착수토의 소요건의,박관식,~3.20 #취소", + "styleAttributes":{}, + "x":1962, + "y":41380, + "width":438, + "height":60 + }, + { + "id":"70aec4e4bd55dde1", + "type":"text", + "text":"# 3. 27.(금) 이발예약 11시, 늦게퇴근", + "styleAttributes":{}, + "x":1962, + "y":42120, + "width":448, + "height":60 + }, + { + "id":"928882be046927a9", + "type":"text", + "text":"- [ ] 지원과 사무실개선 집행계획,사용자보수비", + "styleAttributes":{}, + "x":1962, + "y":41560, + "width":438, + "height":60 + }, + { + "id":"e164c6cabb7ce365", + "type":"text", + "text":"- [x] 3교 150만원 사용자보수비 집행", + "styleAttributes":{}, + "x":1962, + "y":41620, + "width":438, + "height":60 + }, + { + "id":"348c26faf9f34580", + "type":"text", + "text":"- [x] CCTV정비비 집행계획작성, 이명세, 조태숙", + "styleAttributes":{}, + "x":1962, + "y":41500, + "width":438, + "height":60 + }, + { + "id":"1d41a479af4cb5dd", + "type":"text", + "text":"- [ ] 5군지사, 신품 k1방독면 정화통 소요보고,~3.31,김석", + "styleAttributes":{}, + "x":1962, + "y":41440, + "width":438, + "height":60, + "color":"1" + }, + { + "id":"004a2948a41d5297", + "type":"text", + "text":"- [x] 방탄헬멧\n\t교체소요 재파악합니다\n\t\n\t상태가 크랙가거나 위장포를 씌워서도 사용이 불가한 방탄헬멧 교체 소요를 파악합니다\n\t\n\t기존에 파악 했던 수량\n\t방탄헬멧(중형)391개\n\t부유대 1800개\n\t에서 문의드리는 내용입니다", + "styleAttributes":{}, + "x":1544, + "y":41380, + "width":418, + "height":260 + }, + { + "id":"9dfb70bd04cf8f2c", + "type":"text", + "text":"- [x] 육본 물자처장 부대방문, 1330, 3교햄활관,연대창고,병영식당,이동섭", + "styleAttributes":{}, + "x":290, + "y":42500, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"d7074be738cc1bff", + "type":"text", + "text":"- [x] 26년 전반기 물자편성기준서 심의 조정소요 품목파납,~3.20.조태숙", + "styleAttributes":{}, + "x":1952, + "y":40180, + "width":428, + "height":60 + }, + { + "id":"d8b8a6a855eb9c20", + "type":"text", + "text":"- [x] 27년 도태결정 및 28-32년도 도태계획요구서 제출,한서욱,~3.20", + "styleAttributes":{}, + "x":1952, + "y":40240, + "width":428, + "height":60 + }, + { + "id":"e9d21a72662f89cd", + "type":"text", + "text":"- [ ] 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고", + "styleAttributes":{}, + "x":1952, + "y":40420, + "width":428, + "height":120 + }, + { + "id":"41534eb35d745a98", + "type":"text", + "text":"- [x] 정거리배차 소요종합, 유재형", + "styleAttributes":{}, + "x":1554, + "y":42500, + "width":400, + "height":60 + }, + { + "id":"4b0d7c29660a75ee", + "type":"text", + "text":"# 3. 26.(목)", + "styleAttributes":{}, + "x":1554, + "y":42120, + "width":408, + "height":60 + }, + { + "id":"e5137228f1ca4ac4", + "type":"text", + "text":"- [x] 지원과 회식", + "styleAttributes":{}, + "x":1554, + "y":42180, + "width":408, + "height":60 + }, + { + "id":"295277c22f3eb53e", + "type":"text", + "text":"- [ ] TV(37X038075),거치대(37x011486) 불출 tv10,중앙스탠드형2,벽걸이브라겟형8 ", + "styleAttributes":{}, + "x":1554, + "y":42240, + "width":408, + "height":60 + }, + { + "id":"308515ca774ba577", + "type":"text", + "text":"- [x] 장거리배차 소요 종합,~3.19,유재형", + "styleAttributes":{}, + "x":1544, + "y":40240, + "width":408, + "height":60 + }, + { + "id":"9840d40379ba06e4", + "type":"text", + "text":"- [x] 부대운영진단 체크리스트 활용 점검 및 결과종합", + "styleAttributes":{}, + "x":1544, + "y":40300, + "width":408, + "height":60 + }, + { + "id":"362f4213cd150b6b", + "type":"text", + "text":"- [x] 발전기기술검사,,임대원,임헌준", + "styleAttributes":{}, + "x":1544, + "y":40420, + "width":408, + "height":60 + }, + { + "id":"89b46c98d5a009e4", + "type":"text", + "text":"- [x] 4월 간부영내급식 한시인가 소요 종합,장성국", + "styleAttributes":{}, + "x":1554, + "y":42560, + "width":400, + "height":60 + }, + { + "id":"b58b9eedaad70b9a", + "type":"text", + "text":"- [x] 위장포사이즈 파악,박형주", + "styleAttributes":{}, + "x":1554, + "y":42620, + "width":400, + "height":60 + }, + { + "id":"cedf021003b92d05", + "type":"text", + "text":"- [ ] 장병 생명 안전 직결 물품소요파악, 조태숙,~3.25(수)", + "styleAttributes":{}, + "x":1146, + "y":42180, + "width":408, + "height":60 + }, + { + "id":"f7f007db7a3194d8", + "type":"text", + "text":"# 3. 25.(수)", + "styleAttributes":{}, + "x":1146, + "y":42120, + "width":408, + "height":60 + }, + { + "id":"42859274186e0bd0", + "type":"text", + "text":"- [x] 3교육대,수통클린요청일, 880개, 김창규", + "styleAttributes":{}, + "x":1146, + "y":42240, + "width":408, + "height":60 + }, + { + "id":"1331ed8d5104b2ca", + "type":"text", + "text":"- [ ] 총기보관함 56개 수렁예정,황인찬", + "styleAttributes":{}, + "x":290, + "y":42180, + "width":428, + "height":60 + }, + { + "id":"907c266c34089723", + "type":"text", + "text":"# 3. 23. (월) ", + "styleAttributes":{}, + "x":290, + "y":42120, + "width":428, + "height":60 + }, + { + "id":"8be5b549ce142ae3", + "type":"text", + "text":"- [x] 식중독 발생 현장점검, 식사추진시 청결유지. 수통위생관리, 식사전손씻기", + "styleAttributes":{}, + "x":290, + "y":42240, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"6d43c74ac31ec9b7", + "type":"text", + "text":"- [x] 방열판 사용다보수비집행가능여부 확인", + "styleAttributes":{}, + "x":280, + "y":41970, + "width":428, + "height":60 + }, + { + "id":"9171ba9f064917d3", + "type":"text", + "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.성인지 원격교육\n\n신청하시길 바랍니다~", + "styleAttributes":{}, + "x":280, + "y":41380, + "width":428, + "height":60, + "color":"3" + }, + { + "id":"ca11837d2b660db7", + "type":"text", + "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", + "styleAttributes":{}, + "x":280, + "y":41080, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"35ac22bfd6bc6eae", + "type":"text", + "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", + "styleAttributes":{}, + "x":280, + "y":41140, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"74b87d0b5c432b7c", + "type":"text", + "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", + "styleAttributes":{}, + "x":280, + "y":41200, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"6a2135aa53ff0085", + "type":"text", + "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", + "styleAttributes":{}, + "x":280, + "y":40880, + "width":2120, + "height":140, + "color":"1" + }, + { + "id":"df9822fbac47c9c2", + "type":"text", + "text":"- [ ] **위험성평가 작성**", + "styleAttributes":{}, + "x":280, + "y":41020, + "width":1264, + "height":60, + "color":"4" + }, + { + "id":"66189319c3f2520f", + "type":"text", + "text":"- [x] 1교육대 4중대 소대장 1명 전입으로 인해 총기 1정 오늘 1540에 연대무기고에서 수령하겠습니다, 12중대 1정 들어오고, 대검 1개반납받고, 안나가고", + "styleAttributes":{}, + "x":280, + "y":41440, + "width":428, + "height":140 + }, + { + "id":"ae5a6a72e07f1c4b", + "type":"text", + "text":"- [x] 침대 연결조립체 수량 재파악 보고\n\t- [ ] 1교 494\n\t- [ ] 2교 488\n\t- [ ] 3교 416", + "styleAttributes":{}, + "x":280, + "y":41710, + "width":428, + "height":140 + }, + { + "id":"abb37c09459c1a3f", + "type":"text", + "text":"- [x] 충성!\n인사행정부사관 상사 고재은입니다.\n연대장 부사관 평정 공개되었습니다.\n확인하시고 동의/비동의 눌러주시기바랍니다!", + "styleAttributes":{}, + "x":280, + "y":41580, + "width":428, + "height":130 + }, + { + "id":"6e888f319f08315c", + "type":"text", + "text":"- [x] 분부중대 온풍기 구매 재산등재, 홍채림, 한승민", + "styleAttributes":{}, + "x":280, + "y":41850, + "width":428, + "height":60 + }, + { + "id":"cc6d5d991a583b60", + "type":"text", + "text":"- [ ] 2교육대 한시인가 수정건의,10명,3.30-31 #취소", + "styleAttributes":{}, + "x":280, + "y":41910, + "width":428, + "height":60 + }, + { + "id":"41dcb200cfbde4db", + "type":"text", + "text":"- [ ] **[[부대운영진단]] 준비**", + "styleAttributes":{}, + "x":280, + "y":41320, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"71bea65b8417b20c", + "type":"text", + "text":" - [x] ☆**==FS연습기간 공직기강 점검 :==** 3. 9 ~ 19\n\t관련 간부 출퇴근, 총기탄약 관리, 예산사용, 당직근무체계, 비상대비태세, 보안, 식당관리 등 관심갖고 조치바랍니다. ", + "styleAttributes":{}, + "x":280, + "y":40720, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"9e101a3cf45680f6", + "type":"text", + "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", + "styleAttributes":{}, + "x":280, + "y":40660, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"209bd7d09a3fca3f", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":280, + "y":40780, + "width":2120, + "height":100, + "color":"3" + }, + { + "id":"0152a46cb41e50d0", + "type":"text", + "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", + "styleAttributes":{}, + "x":280, + "y":40600, + "width":2120, + "height":60 + }, + { + "id":"8b855b3f52b3837c", + "type":"text", + "text":"- [x] 병영생활 관 신축 1단계 선행연구 착수토의,~13, 연대장님주관", + "styleAttributes":{}, + "x":1136, + "y":40180, + "width":408, + "height":60 + }, + { + "id":"1de1457ffaa2db5b", + "type":"text", + "text":"- [x] 건설장비 지원 소요 종합, 한서욱,~3.19", + "styleAttributes":{}, + "x":1544, + "y":40180, + "width":408, + "height":60 + }, + { + "id":"890967733f58876e", + "type":"text", + "text":"# 3. 18. ( 수 )", + "styleAttributes":{}, + "x":1136, + "y":40120, + "width":408, + "height":60 + }, + { + "id":"94ff4a23cbbd8988", + "type":"text", + "text":"# 3. 19. (목) 카풀", + "styleAttributes":{}, + "x":1544, + "y":40120, + "width":408, + "height":60 + }, + { + "id":"8d4882bf1f138f1c", + "type":"text", + "text":"- [x] 화장실 천장보수 소요 부대 예산 검토,보고,최기호,~3.13", + "styleAttributes":{}, + "x":280, + "y":41260, + "width":428, + "height":60 + }, + { + "id":"99f202d4996877aa", + "type":"text", + "text":"- [x] 교육수료주 통합이동정비,3교육", + "styleAttributes":{}, + "x":1136, + "y":40300, + "width":408, + "height":60 + }, + { + "id":"86f5d4cec3a5103f", + "type":"text", + "text":"- [x] 유압크레인 지원소요 종합, 이민학,~3.18", + "styleAttributes":{}, + "x":1136, + "y":40420, + "width":408, + "height":60 + }, + { + "id":"bb5d28c5b52d90c3", + "type":"text", + "text":"- [x] 자동온도조절튀김손 구매규격 의견종합,황인찬,~16", + "styleAttributes":{}, + "x":708, + "y":40300, + "width":428, + "height":60 + }, + { + "id":"31ec9a81627f4b1a", + "type":"text", + "text":"- [x] [[1중대]] 보급,4번창고,1500,박형주,3113개", + "styleAttributes":{}, + "x":708, + "y":40240, + "width":428, + "height":60 + }, + { + "id":"dfac53c1ecf01bfc", + "type":"text", + "text":"# 3. 20. ( 금 ) 오후반가", + "styleAttributes":{}, + "x":1952, + "y":40120, + "width":428, + "height":60 + }, + { + "id":"ce43ab8db535f82d", + "type":"text", + "text":"- [ ] 국방군수통합정보체계 장비정비분야 순회교육,한서욱,~3.24,0930-1530", + "styleAttributes":{}, + "x":718, + "y":42240, + "width":428, + "height":60 + }, + { + "id":"4121c448129f5ae3", + "type":"text", + "text":"# 3. 24. (화) ", + "styleAttributes":{}, + "x":718, + "y":42120, + "width":428, + "height":60 + }, + { + "id":"8988014c0143e2af", + "type":"text", + "text":"- [x] 앰프 이동정비,3.24,임대원,이대성,김태환,조희철,연대본부,오전", + "styleAttributes":{}, + "x":718, + "y":42180, + "width":428, + "height":60 + }, + { + "id":"1528230f5fce24eb", + "type":"text", + "text":"- [x] 26-2차 국방구 위함물 안전관리자 양상 교육 대상자 파악 보고,장성국,~3.18", + "styleAttributes":{}, + "x":1136, + "y":40480, + "width":408, + "height":60 + }, + { + "id":"2c0f12e6ac8f3225", + "type":"text", + "text":"- [ ] 해빙기 취약시설 안전점검 결과보고, 이동섭,~3.20", + "styleAttributes":{}, + "x":280, + "y":40360, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"3083c073eaacd986", + "type":"text", + "text":"- [ ] 해빙기 취약시설 일제점검, 이동섭, ~3.27(금),시살물(일반,경계,복지시설/훈련장시설/기타(소방,전기,가스,유류시설)),체크리스트,~4.3(금)한", + "styleAttributes":{}, + "x":120, + "y":39520, + "width":2120, + "height":60 + }, + { + "id":"586de2cb8f4139bd", + "type":"text", + "text":"- [x] **병영생활 관 신축 1단계 선행연구 착수토의,~13, 자체,지원과장,교육대장,교지관**", + "styleAttributes":{}, + "x":280, + "y":40180, + "width":856, + "height":60 + }, + { + "id":"c45a500bee9c402c", + "type":"text", + "text":"- [ ] **쌍안경,대검 재산 수정**, 대검 박성현이 작성한 한긃파일을 기준으로 총기기준 대검조정소요 작성하여 전파(메모)", + "styleAttributes":{}, + "x":120, + "y":39580, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"649ed3476e696fdd", + "type":"text", + "text":"고생많으십니다 \n혹시나해서 생수 예산반납 전 한번 더 전달드립니다.\n3월부터는 배출용생수는 도시락 업체에서 제공하기에 따로 신청하시면 안됩니다.\n각 교육대에도 꼭 전달 부탁 드립니다.\n(3월 1주차에 생수업체 통해 신청하신 부분은 제가 인지하고 있어서 1주차에 신청해서 필요한 예상금액 외에는 전액 반납예정입니다)", + "styleAttributes":{}, + "x":976, + "y":39640, + "width":464, + "height":280 + }, + { + "id":"c8d734ac351ebacc", + "type":"text", + "text":"# 3. 17.( 화 ) 카풀", + "styleAttributes":{}, + "x":708, + "y":40120, + "width":428, + "height":60 + }, + { + "id":"166779037160b4f1", + "type":"text", + "text":"- [ ] . 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * **열외자는 지휘관주관 교육실시 후**\n\t **공문보고**", + "styleAttributes":{}, + "x":280, + "y":40420, + "width":428, + "height":180 + }, + { + "id":"091905d9503f6d90", + "type":"text", + "text":"# 3. 16. (월) ", + "styleAttributes":{}, + "x":280, + "y":40120, + "width":428, + "height":60 + }, + { + "id":"95a9d73b9bdc059b", + "type":"text", + "text":"- [x] 훈련병 방탄헬멧 교체소요 파악,박형주,~3.16", + "styleAttributes":{}, + "x":280, + "y":40240, + "width":428, + "height":60 + }, + { + "id":"bd12352d1e0b7417", + "type":"text", + "text":"- [ ] 국방군수통합체계 교육인원파악,한서욱 #없음", + "styleAttributes":{}, + "x":280, + "y":40300, + "width":428, + "height":60 + }, + { + "id":"6991edff103b0c04", + "type":"text", + "text":"- [x] 부유대는 총 1700개입니다\n- [x] 1교 700, 2교 600, 3교 400\n\n- [x] 연결키트 종합\n- [x] 1교:30미리 135세트\n- [x] 2교:30미리 443세트\n- [x] 3교:30미리 160세트\n- [x] 로 보고 하겠습니다", + "styleAttributes":{}, + "x":548, + "y":39275, + "width":428, + "height":245 + }, + { + "id":"0e2cc76bed354895", + "type":"text", + "text":"- [x] K5 휴대주며니 수령,이승민, 251개", + "styleAttributes":{}, + "x":976, + "y":38320, + "width":1264, + "height":60 + }, + { + "id":"cdbbe36203ab042a", + "type":"text", + "text":"- [ ] 26년 연대 평가관련 현황종합 및 훈련준비,정구휘, 4.15\n\t1. 탄약치장물자 수령분배\n\t2. 개인군장결속\n\t3. 삽탄,임무형보호태세\n\t4. 개인임무수행철 최신화,3.16\n\t5. 연대통제 전투준비태세, 지휘통제기구 훈련,3.18 1400-1530\n\t6. ", + "styleAttributes":{}, + "x":976, + "y":38380, + "width":1264, + "height":220 + }, + { + "id":"5dbe882ddaaeddcb", + "type":"text", + "text":"- [ ] 안전관리자 인사명령 의뢰,,김수형,~.3.12", + "styleAttributes":{}, + "x":976, + "y":38600, + "width":1264, + "height":60 + }, + { + "id":"1941c6a014a0cece", + "type":"text", + "text":"- [ ] 부대운영진단 준ㅂ", + "styleAttributes":{}, + "x":1880, + "y":38660, + "width":360, + "height":60, + "color":"1" + }, + { + "id":"0aa3944c916c827c", + "type":"text", + "text":"- [x] ==[[예산]] 사용계획보고== ", + "styleAttributes":{}, + "x":976, + "y":37840, + "width":1244, + "height":60, + "color":"1" + }, + { + "id":"fb32c0e19afa78a8", + "type":"text", + "text":"- [x] 가로등, 경계등 ON,OFF 시간 \n점검하고 각부대 조치바랍니다.\n\t* 3. 9. (월) 기준\n\t 소등 : 06:45, 점등 : 18:39\n\t(별) 가로등, 경계등에만 적용됨\n\t* 병영생활관에 부착된 등과 연병장 등은\n\t 취침시간에 소등\n\t(별) 군수과에서 에너지관리 관련\n\t 불시점검하여 우수부대는\n\t 전반기 에너지절약유공자(계획표창)\n\t 표창대상자 1명 선정하겠습니다.\n\t * 점검사항 : 멀티탭 준수,\n\t 불필요 전원 OFF\n\t 가로등 점등 및 소등상태 등", + "styleAttributes":{}, + "x":548, + "y":38260, + "width":428, + "height":440 + }, + { + "id":"ea4811d3ffbe6d41", + "type":"text", + "text":"- [x] 1월 재활용 매각대금\n✔️미제출 : 28,29,30연대\n\n\t1월 음식물 관리대장\n\t✔️미제출 : 28연대, 입심대\n\t\n\t미제출 부대는 익일까지 기존 메모로\n\t제출 부탁드립니다.", + "styleAttributes":{}, + "x":548, + "y":38700, + "width":428, + "height":240 + }, + { + "id":"7cf1125e20ce2661", + "type":"text", + "text":"- [x] [차량사고예방교육 대상자 최신화]\n\t* 3. 5. (목) 15:46 발송메모\n\t\n\t부대별 1차 교육 참석자\n\t2차교육 참석예정인원, 미참석자\n\t최신화하여 의견으로\n\t오늘 중 올려주세요.\n\t* 보고완료 : 25연대, 군지,교지대대\n\t병역심사관리대", + "styleAttributes":{}, + "x":548, + "y":38940, + "width":428, + "height":335 + }, + { + "id":"bd92ac90717a18d6", + "type":"text", + "text":"- [ ] [군수계획업무전파]\n\t1. 차량사고예방교육 (2차)\n\t - 3.12(목) 10시 광개토강당\n\t - 최대한 많은 인원참석(열외최소화)\n\t * 열외자는 지휘관주관 교육실시 후\n\t 공문보고\n\t1. 소방안전관리자 교육대상자 종합\n\t * 메모보고 참조(오늘중 보고)\n\t * 교육미이수자, 보직교체예정부대\n\t 교육필요\n\t1. 25년 후반기 소방점검 후속조치\n\t 결과보고(이행결과)\n\t * 공사결과 포함하여\n\t 3.20(금) 한 보고 \n\t1. 봄맞이 환경정화활동 적극실시\n\t * 4.2.(목) 지휘보고 포함 결과보고\n\t1. 에너지관리실태 현장확인\n\t * 가로등.경계등 ON OFF\n\t 올바른 멀티탭 사용\n\t 불필요전원코드 제거\n\t (별) 점검결과 우수부대는\n\t 전반기 에너지절약 계획표창반영(1명)", + "styleAttributes":{}, + "x":976, + "y":38660, + "width":408, + "height":700 + }, + { + "id":"333741a9ae2f78d4", + "type":"text", + "text":"- [x] 교육과구매품 재산증가,이명세, 회의용테이블(37w002126) 5개, TV(37w024149)3개", + "styleAttributes":{}, + "x":976, + "y":38260, + "width":408, + "height":60 + }, + { + "id":"df12114b7b09fb75", + "type":"text", + "text":"☆**==FS연습기간 공직기강 점검 :==** 3. 9 ~ 19\n관련 간부 출퇴근, 총기탄약 관리, 예산사용, 당직근무체계, 비상대비태세, 보안, 식당관리 등 관심갖고 조치바랍니다. **자체점검 결과보고** ", + "styleAttributes":{}, + "x":120, + "y":37960, + "width":2120, + "height":60, + "color":"1" + }, + { + "id":"75f349f3d1af34fa", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":120, + "y":38020, + "width":2120, + "height":100, + "color":"3" + }, + { + "id":"b69929a4f23c7f12", + "type":"text", + "text":"- [ ] 봄맞이 환경정리\n\t\t계획보고 3.5주간회의시,연대장\n\t\t환경정리 3.9~4.2\n\t\t결과보고4.2 주간회의시 연대장\n\t\t", + "styleAttributes":{}, + "x":120, + "y":38120, + "width":2120, + "height":140, + "color":"1" + }, + { + "id":"40b9f1e87ede3b0a", + "type":"text", + "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", + "styleAttributes":{}, + "x":120, + "y":37660, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"956330e0c86f62b9", + "type":"text", + "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", + "styleAttributes":{}, + "x":120, + "y":37540, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"a3e77b2623a2e900", + "type":"text", + "text":"- [x] 1교육대 내일 전출간부 1명 총기 1정 및 대검 1정 연대무기고 반납 있습니다!\n개방시간은 1540으로 인지하겠습니다!\n@최병규 @박성현 하사 ", + "styleAttributes":{}, + "x":1384, + "y":37600, + "width":404, + "height":60 + }, + { + "id":"f822a7e4ebf42f05", + "type":"text", + "text":"- [x] **[[예산]], 사용자 보수비 계획보고, 안일남,김미화**", + "styleAttributes":{}, + "x":120, + "y":37600, + "width":856, + "height":60 + }, + { + "id":"09014b045832959b", + "type":"text", + "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", + "styleAttributes":{}, + "x":120, + "y":37720, + "width":2100, + "height":60, + "color":"1" + }, + { + "id":"5d2e958af2bf2c64", + "type":"text", + "text":"- [x] **예산 집행 독촉,홍채림**\n\t- [ ] 지역상생\n\t- [ ] 취사기구유지비 \n\t- [ ] 26-2차 결과공문", + "styleAttributes":{}, + "x":548, + "y":37840, + "width":428, + "height":120 + }, + { + "id":"f9d90e3fc6c75224", + "type":"text", + "text":"- [x] **국방부 총기,탄약 점검(훈련소), 1330, 한서욱,1300~1400,전부대,물자관리과 중령 최기영,4급정유진,7급 김지호, CCTV감시적정,30일보관,열쇠이원화관리**", + "styleAttributes":{}, + "x":120, + "y":37840, + "width":428, + "height":120 + }, + { + "id":"cffc77d75af09b15", + "type":"text", + "text":"- [x] 손망실 처리 변상대상자 동의서 제출(이명세상사)", + "styleAttributes":{}, + "x":120, + "y":37780, + "width":2100, + "height":60 + }, + { + "id":"1216f25d5fd1b6bd", + "type":"text", + "text":"- [x] 간부 인성검사", + "styleAttributes":{}, + "x":120, + "y":37480, + "width":1264, + "height":60 + }, + { + "id":"d12194cae1a42603", + "type":"text", + "text":"- [x] **수통클린시스템, 수통분실 손망실 보고서작성,~13, 조태숙, 14개없어짐, 몇개줬는데 몇개 없어진건지** `확인해야함`,(25에서 14개),!", + "styleAttributes":{}, + "x":548, + "y":37290, + "width":1672, + "height":65 + }, + { + "id":"9dda6eecff52359a", + "type":"text", + "text":"- [x] **3중대 소총 손망실 서류 검토 제출, 이재성**", + "styleAttributes":{}, + "x":548, + "y":37355, + "width":1672, + "height":65 + }, + { + "id":"489f562861364417", + "type":"text", + "text":"- [ ] 위험성평가 작성", + "styleAttributes":{}, + "x":120, + "y":37420, + "width":1264, + "height":60, + "color":"3" + }, + { + "id":"871ccc35147d3572", + "type":"text", + "text":"- [ ] 26-1차 국방 안전관리담당 교육 희망자 동합,~13,김수형,4.27~5.1,국방대", + "styleAttributes":{}, + "x":1386, + "y":37420, + "width":834, + "height":60 + }, + { + "id":"07d86a463b20161e", + "type":"text", + "text":"- [x] 병영생활 관 신축 1단계 선행연구 착수토의,~13, 자체", + "styleAttributes":{}, + "x":1382, + "y":37220, + "width":836, + "height":70, + "color":"1" + }, + { + "id":"4ecfe43116174cd2", + "type":"text", + "text":"- [x] 3월 방역업체(케어원) 방문예정", + "styleAttributes":{}, + "x":1384, + "y":37480, + "width":406, + "height":60 + }, + { + "id":"1ddf8ca582f739c3", + "type":"text", + "text":"- [x] **냉난방기 계량기교체(별관), 오후, 중부가스,육영건설, 유영대\n630113-1632325\n010.2871.2632** ", + "styleAttributes":{}, + "x":120, + "y":37160, + "width":856, + "height":130 + }, + { + "id":"4a66d5656e8290fd", + "type":"text", + "text":"- [x] **26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화), / 지휘관 보고 및 심의, 3.5(목) 13:30, 집무실, 다시 수정해서 공문으로 보고, 지시했던 내용을 누락하지말자** ", + "styleAttributes":{}, + "x":120, + "y":37290, + "width":428, + "height":130 + }, + { + "id":"3cd4553971f53017", + "type":"text", + "text":"- [ ] 병영생활 관 신축 1단계 선행연구 착수토의,~13,박괸식 #조기실시", + "styleAttributes":{}, + "x":1386, + "y":37080, + "width":406, + "height":70 + }, + { + "id":"7c0d4b011b372fdb", + "type":"text", + "text":"- [x] 2월 재활용품 매각량 및 매각대금 보고,~13,신상이,매각량+매각대금 의견", + "styleAttributes":{}, + "x":1790, + "y":37080, + "width":430, + "height":70 + }, + { + "id":"a46b31de08573eeb", + "type":"text", + "text":"- [x] 예산 수정,부대운영자재 비", + "styleAttributes":{}, + "x":1790, + "y":37155, + "width":430, + "height":65, + "color":"1" + }, + { + "id":"913d80534bfb39fe", + "type":"text", + "text":"- [x] 가스결산", + "styleAttributes":{}, + "x":1788, + "y":37475, + "width":430, + "height":70 + }, + { + "id":"242c2c1f8d0cdbf4", + "type":"text", + "text":"- [x] 헐거운 침대 연결조립체 조사 소요종합,~3.13, 최기호,30미리,35미리 2개종류 소요파악", + "styleAttributes":{}, + "x":1384, + "y":37020, + "width":408, + "height":60 + }, + { + "id":"3ad5b5f88d64fb27", + "type":"text", + "text":"- [ ] 화장실 천장보수 소요 부대 예산 검토,보고,최기호,~3.13", + "styleAttributes":{}, + "x":1384, + "y":36960, + "width":836, + "height":60, + "color":"1" + }, + { + "id":"68328af8cf31e052", + "type":"text", + "text":"- [x] 장거리배차 소요종합,~3.12,유재형", + "styleAttributes":{}, + "x":1384, + "y":36900, + "width":408, + "height":60 + }, + { + "id":"08494b2190b57238", + "type":"text", + "text":"- [ ] 해빙기 차량사고예방 교육,박성현,광개토강당,1000 #미참석", + "styleAttributes":{}, + "x":1384, + "y":36780, + "width":408, + "height":60 + }, + { + "id":"aaacede94f2de116", + "type":"text", + "text":"- [ ] 월단위 부대위생정검,김영은,이동엽, #취소", + "styleAttributes":{}, + "x":1384, + "y":36840, + "width":408, + "height":60 + }, + { + "id":"04f845f9505998f5", + "type":"text", + "text":"# 3. 12. (목)근무휴식, ", + "styleAttributes":{}, + "x":1384, + "y":36720, + "width":408, + "height":60 + }, + { + "id":"b3451e5b5b0f73aa", + "type":"text", + "text":"- [x] 1교육대 부대운영자재비 ", + "styleAttributes":{}, + "x":1792, + "y":37020, + "width":430, + "height":65 + }, + { + "id":"12df0d41f2d48419", + "type":"text", + "text":"- [x] 손망실보고서 제출", + "styleAttributes":{}, + "x":1792, + "y":36780, + "width":428, + "height":60 + }, + { + "id":"95c3deef450ec3e6", + "type":"text", + "text":"- [x] 개인정보동의서 제출", + "styleAttributes":{}, + "x":1790, + "y":36840, + "width":430, + "height":60 + }, + { + "id":"11ab919954beeda1", + "type":"text", + "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.\n\n신청하시길 바랍니다~", + "styleAttributes":{}, + "x":1792, + "y":36900, + "width":428, + "height":60 + }, + { + "id":"0810bea6c465f3af", + "type":"text", + "text":"# 3. 13. ( 금 ) ", + "styleAttributes":{}, + "x":1792, + "y":36720, + "width":428, + "height":60 + }, + { + "id":"b5728ef779cb56a3", + "type":"text", + "text":"- [ ] 간부 인성검사", + "styleAttributes":{}, + "x":1342, + "y":35660, + "width":408, + "height":60 + }, + { + "id":"2a63968443b16167", + "type":"text", + "text":"- [x] **총기탄약 자체점검 결과보고, 1500**", + "styleAttributes":{}, + "x":1342, + "y":35720, + "width":408, + "height":60, + "color":"1" + }, + { + "id":"19bd0f77b934f231", + "type":"text", + "text":"- [x] 가스계량기 교체 업체 출입신청", + "styleAttributes":{}, + "x":1342, + "y":35480, + "width":408, + "height":60 + }, + { + "id":"9a2b276bb23fdbe8", + "type":"text", + "text":"- [ ] 위험성평가 작성", + "styleAttributes":{}, + "x":1342, + "y":35540, + "width":408, + "height":60, + "color":"3" + }, + { + "id":"09a373884add8580", + "type":"text", + "text":"# 3. 11. ( 수 )본부중대 당직근무", + "styleAttributes":{}, + "x":976, + "y":36720, + "width":408, + "height":60 + }, + { + "id":"d90ea66f53f05d2d", + "type":"text", + "text":"- [x] 폭영대비물자소요보고,~3.11,유재형", + "styleAttributes":{}, + "x":976, + "y":36780, + "width":408, + "height":60 + }, + { + "id":"9f8204e615d3f374", + "type":"text", + "text":"- [x] 군수사령관 현장방문,1030-1330,9중대 현장방문", + "styleAttributes":{}, + "x":976, + "y":36840, + "width":408, + "height":60 + }, + { + "id":"9dd4a3872ecf9a44", + "type":"text", + "text":"- [x] 2월 음식물쓰레기 배출일지 제출 및 발생량 결과분석,~11,신상이", + "styleAttributes":{}, + "x":976, + "y":36960, + "width":408, + "height":60 + }, + { + "id":"5a6a61641afc0deb", + "type":"text", + "text":"- [ ] 종군교 직무보수(공병장비기본)~11,한서욱 #취소", + "styleAttributes":{}, + "x":976, + "y":36900, + "width":408, + "height":60 + }, + { + "id":"0b9d8c5bb6b1f67d", + "type":"text", + "text":"- [x] 연결 키트 소요 보고", + "styleAttributes":{}, + "x":976, + "y":37230, + "width":408, + "height":60 + }, + { + "id":"0c81c9c2179f2f82", + "type":"text", + "text":"- [x] Fs연습기간 사고예방교육(군사경찰대장 주관)\n-대상 : 전장병 + 군무원\n- 1,2교육대 : 11일(수) 09시 / 1강의장\n- 3교육대 : 25(수) 14시 / 9강의장\n\n* 본부중대 및 참모부, 의무과는 가용날짜에 참석\n* 교육대는 가용한 강의장알려주십시오.", + "styleAttributes":{}, + "x":976, + "y":37020, + "width":408, + "height":210 + }, + { + "id":"e87e023099e47ad7", + "type":"text", + "text":"- [x] **해빙기 대비 도로교통공단 초빙강사 교육 소요보고,~3.9,유재형**", + "styleAttributes":{}, + "x":120, + "y":36900, + "width":856, + "height":60 + }, + { + "id":"9296f4126cfcdb6d", + "type":"text", + "text":"- [x] 30연대 병영생활관 신축 선행연구 착수토의,1330, 연대장 김낙중실", + "styleAttributes":{}, + "x":548, + "y":36840, + "width":428, + "height":60 + }, + { + "id":"4f47f79c9a3820f6", + "type":"text", + "text":"- [ ] **병영시설 화장실 개산사항 교육,훈련소주관,1교육대 2중대 화장실,지원과장,군수실무자, 1030** #취소", + "styleAttributes":{}, + "x":120, + "y":37020, + "width":428, + "height":140 + }, + { + "id":"c18ff0ad3e0d8896", + "type":"text", + "text":"# 3. 9. (월)", + "styleAttributes":{}, + "x":120, + "y":36720, + "width":428, + "height":60 + }, + { + "id":"bd0350a78cd2ee14", + "type":"text", + "text":"# 3. 10.( 화 )", + "styleAttributes":{}, + "x":548, + "y":36720, + "width":428, + "height":60 + }, + { + "id":"20889fadbea072ed", + "type":"text", + "text":"- [x] 사용자보수비 심의, 2교 견적서 제출,4건\n\t- [ ] 부대운영자재비 1건", + "styleAttributes":{}, + "x":486, + "y":36400, + "width":846, + "height":60 + }, + { + "id":"0ac526bfd6aefef7", + "type":"text", + "text":"- [x] 대량유류수령 4000,연무5동", + "styleAttributes":{}, + "x":548, + "y":36780, + "width":428, + "height":60 + }, + { + "id":"ebe9490f1f094578", + "type":"text", + "text":"- [x] 손망실 처리 변상대상자 동의서 제출(이명세상사)", + "styleAttributes":{}, + "x":486, + "y":36460, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"0be413f59702dd4b", + "type":"text", + "text":"- [ ] **[[예산]], 사용자 보수비 계획보고, 안일남,김미화**", + "styleAttributes":{}, + "x":486, + "y":35920, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"4ee1ebe38076eaf5", + "type":"text", + "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", + "styleAttributes":{}, + "x":486, + "y":36140, + "width":1264, + "height":60 + }, + { + "id":"72bf07734a0c14a3", + "type":"text", + "text":"- [x] 식당, 가스계량기(G10)교체 추적확인, ~27 결과:2번째 섭체 선정\n\t- [ ] 01064075665 : 770,000원\n\t- [ ] [[01071921116]] : 699600원, 육영건설\n\t- [ ] 01066592067\n\t- [ ] 01041009427 : : 35만원(계량기#인건비) 입니다\n\t- [ ] [[01028286846]] : 632500원, 화성", + "styleAttributes":{}, + "x":486, + "y":36200, + "width":1264, + "height":200 + }, + { + "id":"cb2d7fffcdd272c8", + "type":"text", + "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이", + "styleAttributes":{}, + "x":486, + "y":35980, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"02e0acb92d8d81f5", + "type":"text", + "text":"- [x] 9203호, 차량예방정비", + "styleAttributes":{}, + "x":120, + "y":36780, + "width":428, + "height":60 + }, + { + "id":"4d3579157757ab13", + "type":"text", + "text":"- [x] **TV,거치대 소요파악, 황인찬,~3.9**", + "styleAttributes":{}, + "x":120, + "y":36840, + "width":428, + "height":60 + }, + { + "id":"22f37f7afa0bda7a", + "type":"text", + "text":"- [x] 기간 장병용 정수부족분 수통보급 소요종합, 박형주,~3.5", + "styleAttributes":{}, + "x":486, + "y":35180, + "width":836, + "height":60 + }, + { + "id":"e361bc2c2f15f16b", + "type":"text", + "text":"- [ ] 이재성 손망실, ~3.11(수), 군수과 제출 > 감찰실 검토 요청", + "styleAttributes":{}, + "x":-370, + "y":35600, + "width":2120, + "height":60 + }, + { + "id":"c9e0bf38db3b7d46", + "type":"text", + "text":"- [x] 2월 안전점검의날 행사 결과 종합, 작성, 안전실 게시판 보고", + "styleAttributes":{}, + "x":486, + "y":35360, + "width":1264, + "height":60 + }, + { + "id":"177e9de484c5e6d0", + "type":"text", + "text":"- [ ] **26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화),** / 지휘관 보고 및 심의, 3.5(목) 13:30, 집무실, 다시 수정해서 공문으로 보고, 지시했던 내용을 누락하지말자 ", + "styleAttributes":{}, + "x":486, + "y":35420, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"9b89f886f4f203f0", + "type":"text", + "text":"- [x] **2월 은닉 재산초과 탄약 회수활동 결과보고,~3.4, 한서욱**", + "styleAttributes":{}, + "x":486, + "y":35480, + "width":408, + "height":60 + }, + { + "id":"82b43743b27b9aeb", + "type":"text", + "text":"- [ ] 물자유지비(cctv) 정비예산 건의,이명세, 견적서 메일보냄", + "styleAttributes":{}, + "x":894, + "y":35300, + "width":856, + "height":60, + "color":"1" + }, + { + "id":"abe947ec9c5cdf2d", + "type":"text", + "text":"- [x] K5방독면 휴대주머니 교체소요 종합,이승민~3.6 결과 1교 251개", + "styleAttributes":{}, + "x":486, + "y":35800, + "width":1264, + "height":60 + }, + { + "id":"b7707eca90d961f9", + "type":"text", + "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", + "styleAttributes":{}, + "x":486, + "y":35860, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"7acec792f8f94452", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":-370, + "y":36040, + "width":2120, + "height":100, + "color":"3" + }, + { + "id":"7dfea70b51f6f3c1", + "type":"text", + "text":"- [x] 병영생환관 화장실(대변칸) 천장보수 샘플제시,현장토의,최기호", + "styleAttributes":{}, + "x":486, + "y":35300, + "width":408, + "height":60 + }, + { + "id":"05672f5ff4f49778", + "type":"text", + "text":"# 3. 6.( 금 )", + "styleAttributes":{}, + "x":1322, + "y":35000, + "width":428, + "height":60 + }, + { + "id":"b0b81fcded5526ff", + "type":"text", + "text":"- [x] 회식", + "styleAttributes":{}, + "x":934, + "y":33940, + "width":408, + "height":60 + }, + { + "id":"e07866285076b3ee", + "type":"text", + "text":"[군수계획 업무 전파]\n1. 도로교통공단 전문강사 초빙\n 해빙기 차량사고 예방교육 \n 참석대상자 종합(메모보고 참조)\n * 대상 : 직접운전자, 운행책임자,\n 운전병 전원\n (별) 보고기한 : 2. 26. (목) 한\n\n2. 전반기 운행책임자 자격인증평가\n (공문 참조)\n * 대상 : 453명 / 전 부대(엑셀파일)\n * 국방수송정보체계 접속 후 \n 온라인평가\n (별) 부대(서)별 실시결과 보고(공문)\n : 2. 27.(금) 한 / 군지대대, 군수과 보고\n\n3. 폭염대비 재난대비물자 소요 종합\n (종합 메모보고 발송 예정)\n (별) 소요 종합 후 26년 배정예산 고려\n 예하부대 재배정\n * 대상 물자 : 폭염응급키트, 인삼천, \n 아이스조끼, 아이스팩, 보냉가방 등\n * 올해는 폭염응급키트 구매비용이 \n 추가로 나오지 않습니다.\n\n4. 봄맞이 주둔지, 훈련장 환경정리 추진\n (메모보고 참조)\n (별) 부대별 계획보고 : 3. 5. (목)\n - 연대 : 주간회의 지휘보고에 포함\n - 직할부대 : 참모장님 간담회시 보고", + "styleAttributes":{}, + "x":934, + "y":33320, + "width":408, + "height":880 + }, + { + "id":"535e88852e5d2724", + "type":"text", + "text":"- [ ] 2차 오수봔로 개선사업,신상이,1020,위병소 면회실,지원과장,군수실무자 #미참석", + "styleAttributes":{}, + "x":924, + "y":33100, + "width":496, + "height":60, + "color":"1" + }, + { + "id":"d2605c4171896b86", + "type":"text", + "text":"- [ ] 손망실 처리 변상대상자 동의서 제출(이명세상사)", + "styleAttributes":{}, + "x":1342, + "y":34380, + "width":462, + "height":60, + "color":"1" + }, + { + "id":"e532839bef2453da", + "type":"text", + "text":"- [ ] 영상교재 활용,저장화생방 장비물ㅏ 시뇟닝 평가(csrp) 업무가이드", + "styleAttributes":{}, + "x":1346, + "y":34440, + "width":458, + "height":100 + }, + { + "id":"947b4dc6bf9eea88", + "type":"text", + "text":"~~최상사님~ 잘지내시죠?~~\n~~다름아니라 전군 군수품 조사 관련해서 전산착오품목 델리스상 군수품조정 입력해 주셔야 해서요. 가능하시면 내일 좀 부탁드려요~ 오늘도 고생하셨습니다.~~", + "styleAttributes":{}, + "x":1342, + "y":33320, + "width":462, + "height":200, + "color":"1" + }, + { + "id":"10ffb0899226d031", + "type":"text", + "text":"- [ ] 1분기 장비 탄약 관리실태 현장 확인 결과 조치해야할 사항\n\t- [ ] 관련근거\n\t\t- [ ] 육규 428 군수품 및 재산출납관리 규정\n\t\t- [ ] 유규 465 탄약관리규정\n\t\t- [ ] 육규 471 장비관리규정\n\t\t- [ ] 육규 742 화생방 장비 물자 관리규정\n\t- [ ] 은닉탄 회수함 보완\n\t- [ ] 저장화생방 장비물자 관리제웟표 최신화\n\t- [ ] 부대행정압무 총기결산, 전산대장 내용 누락\n\t- [ ] 총기관리책임관 정(교육대장,) cctv 확인\n\t- [ ] 정비지시서 미완결 처리(7일이내)", + "styleAttributes":{}, + "x":1342, + "y":33940, + "width":462, + "height":380, + "color":"1" + }, + { + "id":"61f6efef25d5c391", + "type":"text", + "text":"- [x] 핸드토키,1대(cpl10215),정비불가,불용신청,조희철", + "styleAttributes":{}, + "x":486, + "y":35240, + "width":408, + "height":60 + }, + { + "id":"c58de6ffb58dc631", + "type":"text", + "text":"- [x] 컴퓨터 교체,이명세, 인수인계서 작성제출,~6", + "styleAttributes":{}, + "x":894, + "y":35240, + "width":856, + "height":60 + }, + { + "id":"0dbcfc382bcb081a", + "type":"text", + "text":"- [x] 지휘관 월간 탄약고 덤검", + "styleAttributes":{}, + "x":1322, + "y":35060, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"1c2e29c0297ee671", + "type":"text", + "text":"- [x] 도시락 간담회,장성국,1400,김낙중영웅실,", + "styleAttributes":{}, + "x":1322, + "y":35120, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"632a62dfda12fbd2", + "type":"text", + "text":"- [ ] 수저 소요종합,황인찬,37w034910,~3.6 #취소", + "styleAttributes":{}, + "x":1322, + "y":35180, + "width":428, + "height":60 + }, + { + "id":"c794c0f278ff3a56", + "type":"text", + "text":"- [x] 3월 안전점검의날 ", + "styleAttributes":{}, + "x":486, + "y":35060, + "width":408, + "height":60, + "color":"1" + }, + { + "id":"a4c2b3ca19e619ec", + "type":"text", + "text":"- [x] 화생방보호의 교육용 정수부족 노후교체 소요종합,~5,한서욱", + "styleAttributes":{}, + "x":486, + "y":35120, + "width":836, + "height":60 + }, + { + "id":"7c77c2a40f19e2b1", + "type":"text", + "text":"# 3. 5.( 목 )", + "styleAttributes":{}, + "x":894, + "y":35000, + "width":428, + "height":60 + }, + { + "id":"be48ebe435a2460e", + "type":"text", + "text":"# 3. 4.( 수 )", + "styleAttributes":{}, + "x":486, + "y":35000, + "width":408, + "height":60 + }, + { + "id":"2c49e0f40c45493a", + "type":"text", + "text":"# 3. 3.( 화 )", + "styleAttributes":{}, + "x":58, + "y":35000, + "width":428, + "height":60 + }, + { + "id":"57d2334e0b657d90", + "type":"text", + "text":"- [ ] 2교육대 방독면 폐처리 정비의뢰,강재구\n\t- [ ] 전산상 반납후 전화요청\n\t- [ ] 2교육대 방독면 총 131개 입니다..!\n\t- [ ] 5중대 - 총 22개\n중좌 17개\n대좌 2개\n중우 3개\n\n6중대 - 총 32개\n소좌 3개\n중좌 21개\n대좌 8개\n\n7중대 - 총 65개\n중좌 61개\n대좌 4개\n\n8중대 - 총 12개\n중좌 8개\n중우 4개", + "styleAttributes":{}, + "x":78, + "y":34380, + "width":502, + "height":560, + "color":"1" + }, + { + "id":"9299038c4dff079e", + "type":"text", + "text":"- [ ] 1교육대 K5정화통 반납, 누가?", + "styleAttributes":{}, + "x":64, + "y":33380, + "width":442, + "height":60 + }, + { + "id":"a8b87cf0c929a34e", + "type":"text", + "text":"- [ ] 통신장비 예방정비", + "styleAttributes":{}, + "x":78, + "y":34060, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"6c901dc787b6b818", + "type":"text", + "text":"- [x] 사무실이동", + "styleAttributes":{}, + "x":78, + "y":33940, + "width":428, + "height":60 + }, + { + "id":"5d25fae239339315", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":-350, + "y":33560, + "width":2100, + "height":100, + "color":"3" + }, + { + "id":"4ea3993c943d52af", + "type":"text", + "text":"- [ ] 식당, 가스계량기(G10)교체 추적확인, ~27\n\t- [ ] 01064075665\n\t- [ ] [[01071921116]] : 699600원, 육영건설\n\t- [ ] 01066592067\n\t- [ ] 01041009427 : : 35만원(계량기#인건비) 입니다\n\t- [ ] [[01028286846]] : 632500원, 화성", + "styleAttributes":{}, + "x":-350, + "y":33740, + "width":2100, + "height":200 + }, + { + "id":"cfd75170577b5c93", + "type":"text", + "text":"- [ ] K5방독면 휴대주머니 교체소요 종합,이승민~3.6", + "styleAttributes":{}, + "x":506, + "y":33320, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"8cb4d677a6881d16", + "type":"text", + "text":"- [ ] 가스사용시설 안전관리자 교육,장성국,3.18-20 원격교육.! 3.23-24 소집교육", + "styleAttributes":{}, + "x":506, + "y":33260, + "width":428, + "height":60 + }, + { + "id":"82130f90719ff177", + "type":"text", + "text":"- [ ] 수리부속 수령,보안경200,1교청구", + "styleAttributes":{}, + "x":934, + "y":33260, + "width":408, + "height":60 + }, + { + "id":"51caab59e1f8f46e", + "type":"text", + "text":"- [ ] 7중대 총기 1정(739426) 반납,오세열,김범수", + "styleAttributes":{}, + "x":506, + "y":33380, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"337a1b5071d4677b", + "type":"text", + "text":"- [ ] 이재성 손망실, ~3.11(수), 군수과 제출 > 감찰실 검토 요청", + "styleAttributes":{}, + "x":-350, + "y":33200, + "width":2120, + "height":60 + }, + { + "id":"cbfb0e874b33409d", + "type":"text", + "text":"- [x] 이재성상사, 손망실 보고서 작성제출 처리, ", + "styleAttributes":{}, + "x":954, + "y":31740, + "width":816, + "height":60 + }, + { + "id":"0bc112d6faf8a46b", + "type":"text", + "text":"# 2. 28.( 토 )", + "styleAttributes":{}, + "x":1770, + "y":32400, + "width":428, + "height":60, + "color":"#1100ff" + }, + { + "id":"83731d1c0039888d", + "type":"text", + "text":"# 2. 27.( 금 )", + "styleAttributes":{}, + "x":1342, + "y":32400, + "width":428, + "height":60 + }, + { + "id":"61880b61414d0a7d", + "type":"text", + "text":"- [ ] 사용자보수비 심의자료 작성", + "styleAttributes":{}, + "x":2198, + "y":32700, + "width":428, + "height":60 + }, + { + "id":"67136af9eb227564", + "type":"text", + "text":"- [ ] 군수예산 사용계획보고 공문작성", + "styleAttributes":{}, + "x":2198, + "y":32760, + "width":428, + "height":60 + }, + { + "id":"1a66b110f2f61ee9", + "type":"text", + "text":"- [x] 박성록 행보관님 전기기능사 원서 출력", + "styleAttributes":{}, + "x":2198, + "y":32460, + "width":428, + "height":60 + }, + { + "id":"27d0b52ae3b6e967", + "type":"text", + "text":"- [x] 26년 전반기 운행책임자 평가 결과보고,~27,유재형", + "styleAttributes":{}, + "x":934, + "y":32460, + "width":836, + "height":60 + }, + { + "id":"db7d1211fd377634", + "type":"text", + "text":"- [ ] 1교 수통세척예정", + "styleAttributes":{}, + "x":506, + "y":32640, + "width":428, + "height":60 + }, + { + "id":"a88a34ed05914cfe", + "type":"text", + "text":"- [ ] 3월 한시적 인가 소요파악 보고,~19,장성국 #진행중", + "styleAttributes":{}, + "x":954, + "y":31800, + "width":816, + "height":60 + }, + { + "id":"b12eaec1bfdbeaed", + "type":"text", + "text":"- [x] [[사이버 보안 진단의 날 시행-1]]사이버 보안진단의날 행사,", + "styleAttributes":{}, + "x":954, + "y":31860, + "width":816, + "height":60 + }, + { + "id":"261e46bb235ac10b", + "type":"text", + "text":"# 3. 1. (일) 본부중대 당직근무", + "styleAttributes":{}, + "x":2198, + "y":32400, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"bb211e09d707972f", + "type":"text", + "text":"- [ ] 2분기 사용다보수비 소요종합,", + "styleAttributes":{}, + "x":1342, + "y":32640, + "width":1284, + "height":60 + }, + { + "id":"27d89f1ade54ec56", + "type":"text", + "text":"- [x] 참모주간 무기고탄약고 점검 #미실시-", + "styleAttributes":{}, + "x":1342, + "y":32755, + "width":428, + "height":60 + }, + { + "id":"a2ed536327463b72", + "type":"text", + "text":"- [ ] 26년도 2분기 사용자 보수비 심의 자료 종합보고(연대장님, ~3.3(화), ", + "styleAttributes":{}, + "x":78, + "y":32900, + "width":2548, + "height":60, + "color":"1" + }, + { + "id":"52b244882390875f", + "type":"text", + "text":"- [ ] 2월 안전점검의날 행사 결과보고", + "styleAttributes":{}, + "x":506, + "y":32520, + "width":2120, + "height":60 + }, + { + "id":"69dc038518cf1af0", + "type":"text", + "text":"- [x] 이발,1430", + "styleAttributes":{}, + "x":78, + "y":32520, + "width":428, + "height":60 + }, + { + "id":"67ba71556f30f0c9", + "type":"text", + "text":"- [ ] 대냥유류 수령,4000리터, 연무5동,임대원,김용대 #취소", + "styleAttributes":{}, + "x":934, + "y":32640, + "width":408, + "height":60 + }, + { + "id":"50181c9afe29bde6", + "type":"text", + "text":"- [ ] 육군규정 개정소요,한서욱,~3.6", + "styleAttributes":{}, + "x":-350, + "y":34000, + "width":2976, + "height":60 + }, + { + "id":"75e33ac81dc9a81d", + "type":"text", + "text":"- [ ] 사용자보수비 심의, 2교 견적서 제출,4건\n\t- [ ] 부대운영자재비 1건", + "styleAttributes":{}, + "x":-350, + "y":34320, + "width":2976, + "height":60 + }, + { + "id":"9011e16ad6d0bef0", + "type":"text", + "text":"- [ ] 3월 안전점검의날 일저 파악!!김수형,~27 #매월", + "styleAttributes":{}, + "x":1342, + "y":33020, + "width":1284, + "height":60 + }, + { + "id":"cfe9bb0e8b8492f6", + "type":"text", + "text":"- [ ] 2월 은닉 재산초과 탄약 회수활동 결과보고,~3.4, 한서욱", + "styleAttributes":{}, + "x":934, + "y":32960, + "width":1692, + "height":60, + "color":"1" + }, + { + "id":"b99f4d2d852ed008", + "type":"text", + "text":"# 2. 25.( 수 )", + "styleAttributes":{}, + "x":506, + "y":32400, + "width":428, + "height":60 + }, + { + "id":"83e770189723c061", + "type":"text", + "text":"- [x] 30-1 이불패드매트리스 세닥", + "styleAttributes":{}, + "x":506, + "y":32460, + "width":428, + "height":60 + }, + { + "id":"8e66b7ebb9b36919", + "type":"text", + "text":"- [ ] 해빙기 차량사고예방 교육,유재형,박성현,충무강당,1000 #미참석", + "styleAttributes":{}, + "x":78, + "y":32640, + "width":428, + "height":60 + }, + { + "id":"675437a043034c50", + "type":"text", + "text":"# 2. 24.( 화 )", + "styleAttributes":{}, + "x":78, + "y":32400, + "width":428, + "height":60 + }, + { + "id":"c20fad49ee098739", + "type":"text", + "text":"- [x] 차량예방정비,3508-3호", + "styleAttributes":{}, + "x":78, + "y":32460, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"42b76ed37498aa62", + "type":"text", + "text":"- [ ] 2월 안전점검의날 행사 결과 종합, 작성, 안전실 게시판 보고", + "styleAttributes":{}, + "x":-350, + "y":32580, + "width":2976, + "height":60 + }, + { + "id":"8fc5a0889f11674e", + "type":"text", + "text":"- [ ] 26년 민간위닥 수정계약 공문, 보고, ~25 #미보고", + "styleAttributes":{}, + "x":78, + "y":32700, + "width":428, + "height":60 + }, + { + "id":"a51372ee24af7aba", + "type":"text", + "text":"- [x] 도시락 품평회,1030,식당, 장성국", + "styleAttributes":{}, + "x":78, + "y":32760, + "width":428, + "height":60 + }, + { + "id":"2f80c21e82db6021", + "type":"text", + "text":"- # 2. 20. ( 금 )", + "styleAttributes":{}, + "x":1362, + "y":31320, + "width":408, + "height":60 + }, + { + "id":"6c5c87da61bf6f6e", + "type":"text", + "text":"- [ ] 참모주간 무기고탄약고 점검 #미실시", + "styleAttributes":{}, + "x":1362, + "y":31380, + "width":408, + "height":60 + }, + { + "id":"127d8cf32276af83", + "type":"text", + "text":"- [ ] [[봅맞이 환경정리]] 계획보고,~3.3(화) 100,유재", + "styleAttributes":{}, + "x":506, + "y":32970, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"0b0865ee05eef2e7", + "type":"text", + "text":"- [ ] 청렴교육 수료증 제출,고재은,나라배움 #미실시-", + "styleAttributes":{}, + "x":1342, + "y":32810, + "width":428, + "height":70 + }, + { + "id":"7f1cb4a3ed4b6523", + "type":"text", + "text":"- [ ] 원도우11 보안업데이트를 위한 조치,이명세", + "styleAttributes":{}, + "x":1342, + "y":32695, + "width":428, + "height":60 + }, + { + "id":"8730f74c351ffedf", + "type":"text", + "text":"- [ ] 청렴교육 수료증 제출,고재은,나라배움 #미실시", + "styleAttributes":{}, + "x":1362, + "y":31680, + "width":408, + "height":60 + }, + { + "id":"bc8f8307ad0d456e", + "type":"text", + "text":"- [x] 인권교육 수료증 제출,기변,나라배움,인트라넷,고재은", + "styleAttributes":{}, + "x":1362, + "y":31590, + "width":408, + "height":90 + }, + { + "id":"d4de69032b54791b", + "type":"text", + "text":"- [x] 건설자재 소요파악,~20,황인찬", + "styleAttributes":{}, + "x":1362, + "y":31530, + "width":408, + "height":60 + }, + { + "id":"1a6b97ea206031fc", + "type":"text", + "text":"- [x] 부대운영자재비 사용 현황 보고, 주임원사님", + "styleAttributes":{}, + "x":1362, + "y":32020, + "width":408, + "height":60 + }, + { + "id":"0f9cb0f655d4c755", + "type":"text", + "text":"- [x] 군수예산 계획보고 수정보고,3건", + "styleAttributes":{}, + "x":1362, + "y":32140, + "width":408, + "height":60 + }, + { + "id":"0d2d1842f603eb80", + "type":"text", + "text":"- [x] 가스업체 소급업체 담당자 처리,1400", + "styleAttributes":{}, + "x":1362, + "y":32080, + "width":408, + "height":60 + }, + { + "id":"e2a1095d642c3e42", + "type":"text", + "text":"# 2. 26.( 목 )", + "styleAttributes":{}, + "x":934, + "y":32400, + "width":408, + "height":60 + }, + { + "id":"04e64c526d4f71f5", + "type":"text", + "text":"- [x] 2.25(수), 오후에 선임행보관님, 군수담당관은 종합된 의견 가지고 주임원사실에서 토의한번하겠습니다.", + "styleAttributes":{}, + "x":506, + "y":33030, + "width":428, + "height":170, + "color":"1" + }, + { + "id":"c11a7558a8330b48", + "type":"text", + "text":"- [x] 전역자 이불세탁 소요보고(3월15일기준),박관식 #매월 ~26", + "styleAttributes":{}, + "x":934, + "y":33020, + "width":408, + "height":80 + }, + { + "id":"45a00c4bf93ac18f", + "type":"text", + "text":"- [x] 장거리 배차 신청 종합 보고, 유재형,~2.26", + "styleAttributes":{}, + "x":934, + "y":32810, + "width":408, + "height":70 + }, + { + "id":"27e54c4ce79d9a0a", + "type":"text", + "text":"- [ ] 위임보수 건의(식당 음료취수기쪽 바닥 타일 박리),연대장님 지시", + "styleAttributes":{}, + "x":78, + "y":32970, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"550cb85af67ef33a", + "type":"text", + "text":"- [ ] 식기세척기용세제,린스 보급,0800,세척제37x923786,144,헹굼청가제 접시닦기용(375034413),48,28-30-26연대", + "styleAttributes":{}, + "x":934, + "y":32700, + "width":408, + "height":110 + }, { "id":"54c74fb448b4f5b3", "type":"text", @@ -7712,6 +7876,17 @@ "height":180, "color":"1" }, + { + "id":"98e503a48ee34687", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":-330, + "y":31920, + "width":2100, + "height":100, + "color":"3" + }, { "id":"1f73c91c638bd0f6", "type":"text", @@ -7722,57 +7897,6 @@ "width":428, "height":60 }, - { - "id":"0c06c091ed43fe28", - "type":"text", - "text":"- [x] [설 연휴 전 부대별 조치사항 : 2. 12.(목) 10:00 한 완료보고] \n1. (교육사 지시) 무기고,탄약고 출입구(열쇠) 봉인\n * 미사용시설(창고,사무실 등)은\n 해부대 지휘관 판단 하 실시\n2. 연휴 전 화재취약시설 및 장소 \n 일제점검(화재 예방활동)\n (부대별 자체점검)\n * 미사용 전원코드 제거 \n 미사용시설 점검(화재취약요인제거)\n3. 연휴간 급식대책 이상유무 확인\n\n(별) 위 사항 부대별 진행하고\n 2. 12. (목) 10시까지 \n 아래와 같이 단톡방에\n 결과를 보고해주십시요.\n\n(별) 00연대 1,2,3번 완료", - "styleAttributes":{}, - "x":856, - "y":29798, - "width":405, - "height":482 - }, - { - "id":"bbc6c3b06eeb402a", - "type":"text", - "text":"- [ ] 장비지휘검열 확인검열 후속조치, 1분기 총기탄약 점검 후속조치 , 원정완 #취소", - "styleAttributes":{}, - "x":450, - "y":30398, - "width":808, - "height":62 - }, - { - "id":"9d49829f34735dc0", - "type":"text", - "text":"- [ ] 예산, 사용자 보수비 계획보고, 안일남,김미화", - "styleAttributes":{}, - "x":449, - "y":30338, - "width":1251, - "height":60, - "color":"1" - }, - { - "id":"8730f74c351ffedf", - "type":"text", - "text":"- [ ] 청렴교육 수료증 제출,고재은,나라배움 #미실시", - "styleAttributes":{}, - "x":1362, - "y":31680, - "width":408, - "height":60 - }, - { - "id":"2f80c21e82db6021", - "type":"text", - "text":"- # 2. 20. ( 금 )", - "styleAttributes":{}, - "x":1362, - "y":31320, - "width":408, - "height":60 - }, { "id":"bc75fb65a406576b", "type":"text", @@ -7783,36 +7907,6 @@ "width":428, "height":60 }, - { - "id":"bc8f8307ad0d456e", - "type":"text", - "text":"- [x] 인권교육 수료증 제출,기변,나라배움,인트라넷,고재은", - "styleAttributes":{}, - "x":1362, - "y":31590, - "width":408, - "height":90 - }, - { - "id":"d4de69032b54791b", - "type":"text", - "text":"- [x] 건설자재 소요파악,~20,황인찬", - "styleAttributes":{}, - "x":1362, - "y":31530, - "width":408, - "height":60 - }, - { - "id":"6c5c87da61bf6f6e", - "type":"text", - "text":"- [ ] 참모주간 무기고탄약고 점검 #미실시", - "styleAttributes":{}, - "x":1362, - "y":31380, - "width":408, - "height":60 - }, { "id":"d638be3b1a97a1b2", "type":"text", @@ -7823,202 +7917,6 @@ "width":408, "height":90 }, - { - "id":"4185e302a7a88fbc", - "type":"text", - "text":"- [x] 📌공지\n- [x] •군수분야 소통과 공감 일정 통보\n- [x] 일시 : 26. 2. 11(수), 10:00\n - 장소 : 군수지원대대 1층 회의실\n - 내용 : 군수분야 실시 / 예정사항\n 거구자피복 체계개선 교육\n 애로 및 건의사항 접수\n \n\t * 각 부대 지원과장, 군수담당관\n 보충역 교육대 행정보급관 등\n\n많은 관심 가져주시고 일정에 맞춰\n참석해주시면 감사하겠습니다.", - "styleAttributes":{}, - "x":450, - "y":29978, - "width":405, - "height":360 - }, - { - "id":"a925100a97aaeb7a", - "type":"text", - "text":"- [x] 대보수 소요,콘센트 소요", - "styleAttributes":{}, - "x":73, - "y":30098, - "width":379, - "height":60 - }, - { - "id":"1f1a7bccb4cafa59", - "type":"text", - "text":"- [x] 환경담당 교육파견 중에도 위 내용 전파 감사합니다.\n예하부대 다시 한번 체크 후에 보고 바랍니다. 독신숙소 포함\n이번 주, 금요일까지.\n예) 23연대 점검결과(0개소) : 이상무", - "styleAttributes":{}, - "x":73, - "y":29878, - "width":379, - "height":220 - }, - { - "id":"216f7ac7690a477a", - "type":"text", - "text":"- [ ] 통신장비 폐처리,불용 신청 1대,이명세", - "styleAttributes":{}, - "x":720, - "y":43640, - "width":440, - "height":60 - }, - { - "id":"4c52c3c80ef72775", - "type":"text", - "text":"- [x] 소방점검 후속조치 , 소화기 즉시조치, 독신숙소 5동(소인사과 군숙소담당 자료요구),~3.22,유재형\n- [x] 전승훈, 956-7116,숙소관리관", - "styleAttributes":{}, - "x":290, - "y":43580, - "width":870, - "height":60, - "color":"1" - }, - { - "id":"d52123c067d49323", - "type":"text", - "text":"- [x] 카니발 : 01육1292\n (과장님, 중령 송수민, 박민선, 소령 조호현, 중위 조보현)\n* K3 : 209고5623\n (중령 사왕궁, 이운재, 5급 이승환, 최종민)\n\n0920분 도착입니다. 26연대부터 30연대, 23연대 순으로 갑니다", - "styleAttributes":{}, - "x":-350, - "y":34060, - "width":428, - "height":260 - }, - { - "id":"f63a3b6a56b58df9", - "type":"text", - "text":"- [x] [[주유취급소 및 유류탱크저장소 화재사고 예방 점검]]결과보고,박관식,~2.20 #미실시-완료", - "styleAttributes":{}, - "x":-350, - "y":33660, - "width":428, - "height":80 - }, - { - "id":"eda3b4fbadb6e51a", - "type":"text", - "text":"- [ ] 해빙기 취약시설 안전점검 결과보고, 이동섭,~3.20", - "styleAttributes":{}, - "x":-350, - "y":34380, - "width":428, - "height":80 - }, - { - "id":"5e927944ebba5925", - "type":"text", - "text":"- [ ] 1교육대 교육수료주 통합이동정비 추속조치,임대원\n\t- [ ] 방독면 폐처리:1중대16,2중대10,3중대9,4중대27\n\t- [ ] 총기 폐처리:2중대 1정(손망실), 4중대2정", - "styleAttributes":{}, - "x":-350, - "y":34460, - "width":428, - "height":220 - }, - { - "id":"9662862419f8a87d", - "type":"text", - "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", - "styleAttributes":{}, - "x":-350, - "y":33500, - "width":428, - "height":60 - }, - { - "id":"b006301111973121", - "type":"text", - "text":"- [ ] 예산, 사용자 보수비 계획보고, 안일남,김미화", - "styleAttributes":{}, - "x":-350, - "y":33380, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"d881df080348871d", - "type":"text", - "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", - "styleAttributes":{}, - "x":-350, - "y":33320, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"f7007e71f217c95f", - "type":"text", - "text":"- [x] 총기탄약 국방부 점검,육훈소대상, 자체점검체크리스트 점검실시,후 연대장님 보고", - "styleAttributes":{}, - "x":-260, - "y":36900, - "width":380, - "height":60 - }, - { - "id":"11a9f622200bd214", - "type":"text", - "text":"- [ ] 대전 하나 시티즌 프로 축구 개막전 #취소", - "styleAttributes":{}, - "x":-370, - "y":35060, - "width":428, - "height":60 - }, - { - "id":"a88beacf318c0b93", - "type":"text", - "text":"# 3. 2. (월) 근무휴식, ", - "styleAttributes":{}, - "x":-370, - "y":35000, - "width":428, - "height":60 - }, - { - "id":"b2488e23f33ecb6b", - "type":"text", - "text":"- [x] 창고저장관리 현장확인,군수사 피복과장등 4명, 박형주 수행, 1100", - "styleAttributes":{}, - "x":-350, - "y":33000, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"6336f4522d15858c", - "type":"text", - "text":"- [x] 유류탱크저장소 화재사고 예방 점검결과도 부탁드립니다.\n(27연대+교육지원대대)", - "styleAttributes":{}, - "x":-350, - "y":32900, - "width":428, - "height":100 - }, - { - "id":"72468afad5ffaa63", - "type":"text", - "text":"- [x] 3월 한시인가 의견 월요일까지 부탁드립니다.\n(26.27.29.30.교지대)", - "styleAttributes":{}, - "x":-350, - "y":32820, - "width":428, - "height":80, - "color":"1" - }, - { - "id":"a1f38b3f2fc8fee5", - "type":"text", - "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이 #미실시", - "styleAttributes":{}, - "x":-350, - "y":33440, - "width":428, - "height":60, - "color":"1" - }, { "id":"a4f968e2bd1c2967", "type":"text", @@ -8029,6 +7927,17 @@ "width":428, "height":60 }, + { + "id":"40ad2b92473fe6ed", + "type":"text", + "text":"- [x] 3월 한시인가 결산결과 공문으로 보내주시면 확인하겠습니다(~4.5)", + "styleAttributes":{}, + "x":2032, + "y":45060, + "width":428, + "height":60, + "color":"1" + }, { "id":"c8f69c02e67654ff", "type":"text", @@ -8039,6 +7948,16 @@ "width":408, "height":60 }, + { + "id":"8fb6923c263306fa", + "type":"text", + "text":"- [x] 25,26년 불용장비폐처리결과 보고,한서욱,~4.2", + "styleAttributes":{}, + "x":1624, + "y":45060, + "width":408, + "height":60 + }, { "id":"29c7d346b4e8fe88", "type":"text", @@ -8050,13 +7969,13 @@ "height":60 }, { - "id":"b5cd88687b5ec77a", + "id":"650a4241c18323a2", "type":"text", - "text":"# 3. 30. (월) ", + "text":"- [ ] 4월 은닉 및 초과 재산탄약 회수활동 결과 보고,~4.1, 한서욱", "styleAttributes":{}, - "x":360, - "y":45000, - "width":428, + "x":1216, + "y":45060, + "width":408, "height":60 }, { @@ -8070,26 +7989,26 @@ "height":60 }, { - "id":"20f47e98a2ad282d", + "id":"0317c1529a191e19", "type":"text", - "text":"- [x] [군수과 전파]\n\t국방부 주관 급식개선 민관군협의체 전체회의를 훈련소에서 실시합니다.\n\t(메모보고 참조)\n\t\n\t(별) 추가사항은\n\t 1 5:30 전체회의 종료 후\n\t 국.군수국장님이 \n\t 모든 민간위탁식당을 방문합니다.\n\t* 민간위탁식당 점장이 안내/설명\n\t* 26연대(15:40) --> 27연대(16:00) \n\t --> 30연대(16:20)\n\t* 시간은 대략적인 시간입니다.", + "text":"- [x] 3월 안전점검의날 해마결과보고,김수형,~31", "styleAttributes":{}, - "x":-300, - "y":45000, - "width":428, - "height":380 - }, - { - "id":"40ad2b92473fe6ed", - "type":"text", - "text":"- [x] 3월 한시인가 결산결과 공문으로 보내주시면 확인하겠습니다(~4.5)", - "styleAttributes":{}, - "x":2032, + "x":788, "y":45060, "width":428, "height":60, "color":"1" }, + { + "id":"b5cd88687b5ec77a", + "type":"text", + "text":"# 3. 30. (월) ", + "styleAttributes":{}, + "x":360, + "y":45000, + "width":428, + "height":60 + }, { "id":"62a36f30f4613968", "type":"text", @@ -8112,12 +8031,12 @@ "color":"1" }, { - "id":"8fb6923c263306fa", + "id":"2bc467a39828447e", "type":"text", - "text":"- [x] 25,26년 불용장비폐처리결과 보고,한서욱,~4.2", + "text":"- [x] 주간예정사항 작성,이명세 ", "styleAttributes":{}, "x":1624, - "y":45060, + "y":45300, "width":408, "height":60 }, @@ -8152,15 +8071,34 @@ "height":60 }, { - "id":"ba97883af9c6995c", + "id":"6a6d4e37bfef997d", "type":"text", - "text":"- [ ] 4월 안전점검의 날 행사 일정 종합,김수형, ~3.31", + "text":"- [ ] 6중대 물자유지비 사용계획보고 작성", "styleAttributes":{}, - "x":788, - "y":45240, - "width":428, - "height":60, - "color":"1" + "x":1624, + "y":45360, + "width":408, + "height":60 + }, + { + "id":"f000f3aa01202a6c", + "type":"text", + "text":"- [x] . 봄맞이 환경정화활동 적극실시\n\t * 4.2.(목) 지휘보고 포함 결과보고", + "styleAttributes":{}, + "x":360, + "y":45120, + "width":1264, + "height":60 + }, + { + "id":"b8fa9b944eca74e6", + "type":"text", + "text":"- [x] 취사장 교육", + "styleAttributes":{}, + "x":1216, + "y":45180, + "width":408, + "height":60 }, { "id":"4cd42bf705e8b499", @@ -8172,17 +8110,6 @@ "width":428, "height":60 }, - { - "id":"0317c1529a191e19", - "type":"text", - "text":"- [x] 3월 안전점검의날 해마결과보고,김수형,~31", - "styleAttributes":{}, - "x":788, - "y":45060, - "width":428, - "height":60, - "color":"1" - }, { "id":"ce6c04a261eafd3a", "type":"text", @@ -8216,14 +8143,26 @@ "height":360 }, { - "id":"f000f3aa01202a6c", + "id":"ba97883af9c6995c", "type":"text", - "text":"- [x] . 봄맞이 환경정화활동 적극실시\n\t * 4.2.(목) 지휘보고 포함 결과보고", + "text":"- [ ] 4월 안전점검의 날 행사 일정 종합,김수형, ~3.31", "styleAttributes":{}, - "x":360, - "y":45120, - "width":1264, - "height":60 + "x":788, + "y":45240, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"1b6b646b465f8e66", + "type":"text", + "text":"- [ ] 안전보건확보의무이행 관련 주둔지내 법정시설요도 작성,아등섭,~3.31", + "styleAttributes":{}, + "x":788, + "y":45300, + "width":428, + "height":60, + "color":"1" }, { "id":"e915b17838612e14", @@ -8235,16 +8174,6 @@ "width":428, "height":60 }, - { - "id":"b859999b7b75abb3", - "type":"text", - "text":"- [x] 차량5부제 종합 보고,유재형(매월보고)", - "styleAttributes":{}, - "x":360, - "y":45360, - "width":428, - "height":60 - }, { "id":"8a5ccb897ac08a2c", "type":"text", @@ -8255,17 +8184,6 @@ "width":428, "height":60 }, - { - "id":"1b6b646b465f8e66", - "type":"text", - "text":"- [ ] 안전보건확보의무이행 관련 주둔지내 법정시설요도 작성,아등섭,~3.31", - "styleAttributes":{}, - "x":788, - "y":45300, - "width":428, - "height":60, - "color":"1" - }, { "id":"58c581afdd6dd819", "type":"text", @@ -8277,56 +8195,95 @@ "height":60, "color":"1" }, - {"id":"8e7a3b6468ac3d8d","type":"file","file":"부대운영진단 대비 보안분야 개인조치사항.md","x":-300,"y":45380,"width":428,"height":780}, { - "id":"68e4cea991228aa3", + "id":"b859999b7b75abb3", "type":"text", - "text":"- [ ] 군수 2월 보급결산,~27\n\t- [ ] [[일일결산]]\n\t- [ ] 국방군수정보체계 재산 수입,불출,반납 처리 정리", + "text":"- [x] 차량5부제 종합 보고,유재형(매월보고)", + "styleAttributes":{}, + "x":360, + "y":45360, + "width":428, + "height":60 + }, + { + "id":"35b773eb015dc4da", + "type":"text", + "text":"- [x] 26부대안전진단,안전실,(3월예정), 이동섭", + "styleAttributes":{}, + "x":-791, + "y":45380, + "width":491, + "height":60 + }, + { + "id":"5e927944ebba5925", + "type":"text", + "text":"- [ ] 1교육대 교육수료주 통합이동정비 추속조치,임대원\n\t- [ ] 방독면 폐처리:1중대16,2중대10,3중대9,4중대27\n\t- [ ] 총기 폐처리:2중대 1정(손망실), 4중대2정", "styleAttributes":{}, "x":-350, - "y":33060, + "y":34460, "width":428, - "height":140, - "color":"5" + "height":220 }, { - "id":"6a6d4e37bfef997d", + "id":"9662862419f8a87d", "type":"text", - "text":"- [ ] 6중대 물자유지비 사용계획보고 작성", + "text":"- [ ] [[훼손처리 총기]] 재산정리, 이영민,이재성,이승민", "styleAttributes":{}, - "x":1624, - "y":45360, - "width":408, + "x":-350, + "y":33500, + "width":428, "height":60 }, { - "id":"2bc467a39828447e", + "id":"11a9f622200bd214", "type":"text", - "text":"- [x] 주간예정사항 작성,이명세 ", + "text":"- [ ] 대전 하나 시티즌 프로 축구 개막전 #취소", "styleAttributes":{}, - "x":1624, - "y":45300, - "width":408, + "x":-370, + "y":35060, + "width":428, "height":60 }, { - "id":"b8fa9b944eca74e6", + "id":"a88beacf318c0b93", "type":"text", - "text":"- [x] 취사장 교육", + "text":"# 3. 2. (월) 근무휴식, ", "styleAttributes":{}, - "x":1216, - "y":45180, - "width":408, + "x":-370, + "y":35000, + "width":428, "height":60 }, { - "id":"650a4241c18323a2", + "id":"eda3b4fbadb6e51a", "type":"text", - "text":"- [ ] 4월 은닉 및 초과 재산탄약 회수활동 결과 보고,~4.1, 한서욱", + "text":"- [ ] 해빙기 취약시설 안전점검 결과보고, 이동섭,~3.20", "styleAttributes":{}, - "x":1216, - "y":45060, - "width":408, + "x":-350, + "y":34380, + "width":428, + "height":80 + }, + { + "id":"20f47e98a2ad282d", + "type":"text", + "text":"- [x] [군수과 전파]\n\t국방부 주관 급식개선 민관군협의체 전체회의를 훈련소에서 실시합니다.\n\t(메모보고 참조)\n\t\n\t(별) 추가사항은\n\t 1 5:30 전체회의 종료 후\n\t 국.군수국장님이 \n\t 모든 민간위탁식당을 방문합니다.\n\t* 민간위탁식당 점장이 안내/설명\n\t* 26연대(15:40) --> 27연대(16:00) \n\t --> 30연대(16:20)\n\t* 시간은 대략적인 시간입니다.", + "styleAttributes":{}, + "x":-300, + "y":45000, + "width":428, + "height":380 + }, + {"id":"8e7a3b6468ac3d8d","type":"file","file":"부대운영진단 대비 보안분야 개인조치사항.md","x":-300,"y":45380,"width":428,"height":780}, + { + "id":"f7007e71f217c95f", + "type":"text", + "text":"- [x] 총기탄약 국방부 점검,육훈소대상, 자체점검체크리스트 점검실시,후 연대장님 보고", + "styleAttributes":{}, + "x":-260, + "y":36900, + "width":380, "height":60 }, { @@ -8339,16 +8296,6 @@ "width":428, "height":160 }, - { - "id":"35b773eb015dc4da", - "type":"text", - "text":"- [x] 26부대안전진단,안전실,(3월예정), 이동섭", - "styleAttributes":{}, - "x":-791, - "y":45380, - "width":491, - "height":60 - }, { "id":"0b0127a03b232537", "type":"text", @@ -8360,125 +8307,57 @@ "height":60 }, { - "id":"7a45c327cbdfecd8", + "id":"d52123c067d49323", "type":"text", - "text":"# 4. 10.(금) 정상퇴근1730", + "text":"- [x] 카니발 : 01육1292\n (과장님, 중령 송수민, 박민선, 소령 조호현, 중위 조보현)\n* K3 : 209고5623\n (중령 사왕궁, 이운재, 5급 이승환, 최종민)\n\n0920분 도착입니다. 26연대부터 30연대, 23연대 순으로 갑니다", "styleAttributes":{}, - "x":2042, - "y":46720, + "x":-350, + "y":34060, "width":428, - "height":60 + "height":260 }, { - "id":"9ebadd4055e8db52", + "id":"f63a3b6a56b58df9", "type":"text", - "text":"- [x] 주간유류탱크점검,유류소모", + "text":"- [x] [[주유취급소 및 유류탱크저장소 화재사고 예방 점검]]결과보고,박관식,~2.20 #미실시-완료", "styleAttributes":{}, - "x":2040, - "y":46960, - "width":430, - "height":60 - }, - { - "id":"53804a2924d935c6", - "type":"text", - "text":"# 4. 9.(목)", - "styleAttributes":{}, - "x":1634, - "y":46720, - "width":408, - "height":60 - }, - { - "id":"89f9935d44ddd651", - "type":"text", - "text":"- [x] 총기보관함 10인용 보급,황인찬,~4.9,56개(24,32),도수하역(인원필요),1교18,2교19,3교 19", - "styleAttributes":{}, - "x":1634, - "y":46780, - "width":408, - "height":60 - }, - { - "id":"c2dbf7c0610185a6", - "type":"text", - "text":"- [ ] 모래주머니 소요 종합,황인찬,~4.9 #취소 ", - "styleAttributes":{}, - "x":1634, - "y":46960, - "width":406, - "height":60 - }, - { - "id":"296224789442e8b1", - "type":"text", - "text":"- [ ] 건설장비 소요종합 보고,한서욱,~4.9 #취소", - "styleAttributes":{}, - "x":1634, - "y":46900, - "width":406, - "height":60 - }, - { - "id":"ac1165f5fcf05514", - "type":"text", - "text":"# 4. 6. (월) ", - "styleAttributes":{}, - "x":370, - "y":46720, + "x":-350, + "y":33660, "width":428, - "height":60 + "height":80 }, { - "id":"1fc3ffe3287653f8", + "id":"b006301111973121", "type":"text", - "text":"- [x] 26년 후생용품(이발도구) 납품,조태숙,0930-1000,전기이발기70,미용보28,스펀지130,정대룡,01058479773", + "text":"- [ ] 예산, 사용자 보수비 계획보고, 안일남,김미화", "styleAttributes":{}, - "x":370, - "y":46900, + "x":-350, + "y":33380, "width":428, "height":60, "color":"1" }, { - "id":"3c950de130712a45", + "id":"d881df080348871d", "type":"text", - "text":"- [x] 상담실 시스템에어컨 이전,박관식,위임보수신청", + "text":"- [ ] 1중대, 총기 반납1정(725605), 총몽멈치옷확장", "styleAttributes":{}, - "x":370, - "y":46840, + "x":-350, + "y":33320, "width":428, - "height":60 + "height":60, + "color":"1" }, { - "id":"f314065d7cdcf62e", + "id":"a1f38b3f2fc8fee5", "type":"text", - "text":"- [x] 통합이동정비, 2교,임대원,오전", + "text":"- [ ] 욱본 동계 환경오염사고 예방 현장점겸결과보고,~13,자체점검결과보고,신상이 #미실시", "styleAttributes":{}, - "x":370, - "y":46780, + "x":-350, + "y":33440, "width":428, - "height":60 - }, - { - "id":"19942abda1789692", - "type":"text", - "text":"- [x] [승용차 2부제(홀짝제) 시행]\n\t(별) 메모보고 참조\n\t\n\t1. 시행일 : 4. 13.(월) 06:30 부\n\t2. 대상 : 군인, 군무원, 근무원 전 차량\n\t * 10인승 이하 승용자동차\n\t1. 시행방법 : 끝자리 숫자가 \n\t 홀수면 홀수일, 짝수면 짝수일 운행\n\t2. 적용시간 : 평일(월~금) 24시간\n\t * 주말, 공휴일, 31일 제외\n\t3. 제외차량 : 기존 5부제 지침 적용\n\t * 추가사항 \n\t - 대중교통 미운행 시간에 출근 하는\n\t 차량 포함(06시 30분 이전 출근)\n\t - 논산에서 버스 첫차 출발시간 고려\n\t (201번 버스 기준 06시에 논산 출발)\n\t (별) 적용제외차량 스티커는\n\t A4 코팅하여 차량 전면\n\t 잘 보이는 곳에 위치\n\t (양식이 다르면 미인정)\n\t\n\t메모보고 참고하시고\n\t기존양식 활용하여\n\t2부제 제외차량 공문으로\n\t보고바랍니다.(4. 10.(금) 한)", - "styleAttributes":{}, - "x":2040, - "y":47160, - "width":450, - "height":615 - }, - { - "id":"be2c8bf0fb4ea944", - "type":"text", - "text":"- [ ] 육군규정 수정 개정소요 제출,~4.10,조태숙 #취소", - "styleAttributes":{}, - "x":2042, - "y":46780, - "width":428, - "height":60 + "height":60, + "color":"1" }, { "id":"4d1d3aed023ce83b", @@ -8502,64 +8381,33 @@ "height":60 }, { - "id":"631741e9b210aaa8", + "id":"53804a2924d935c6", "type":"text", - "text":"- [x] 밝은눈 안과 출장검진,고재은,4.10,1300-1330,연무관", + "text":"# 4. 9.(목)", "styleAttributes":{}, - "x":2042, - "y":46840, - "width":428, - "height":60 - }, - { - "id":"ce3e16baceeb6154", - "type":"text", - "text":"- [x] 28-32 국방중기계획 작성교육, 남재우, 1000, 교육지원대대장, 교지대 다목적홀", - "styleAttributes":{}, - "x":2042, - "y":46900, - "width":428, - "height":60 - }, - { - "id":"901ae0ebbea9300a", - "type":"text", - "text":"# 4. 7 . (화) ", - "styleAttributes":{}, - "x":798, + "x":1634, "y":46720, - "width":428, + "width":408, "height":60 }, { - "id":"e749340efafac690", + "id":"296224789442e8b1", "type":"text", - "text":"- [ ] 교육과 이명세상사, 전관방송용앰프 120w 폐처리 기술검사 건의 및 불용결정 신청", + "text":"- [ ] 건설장비 소요종합 보고,한서욱,~4.9 #취소", "styleAttributes":{}, - "x":370, - "y":47200, - "width":428, - "height":60, - "color":"1" + "x":1634, + "y":46900, + "width":406, + "height":60 }, { - "id":"b41b39ff0ebe936c", + "id":"89f9935d44ddd651", "type":"text", - "text":" - [x] 정기점검표 양식은 작년에 정기점검 한 자료가 있습니다.\n\t확인하시고 점검 후 공문 보내주시면 종합하겠습니다.\n\t1. 3월 한시인가 결산결과도 보내주시면 종합하겠습니다.", + "text":"- [x] 총기보관함 10인용 보급,황인찬,~4.9,56개(24,32),도수하역(인원필요),1교18,2교19,3교 19", "styleAttributes":{}, - "x":370, - "y":47260, - "width":428, - "height":190 - }, - { - "id":"14406fff6a8712e7", - "type":"text", - "text":"- [x] 26년 방역약품 소요파악,한승민,~4.6", - "styleAttributes":{}, - "x":370, - "y":47140, - "width":428, + "x":1634, + "y":46780, + "width":408, "height":60 }, { @@ -8572,6 +8420,97 @@ "width":408, "height":60 }, + { + "id":"ac1165f5fcf05514", + "type":"text", + "text":"# 4. 6. (월) ", + "styleAttributes":{}, + "x":370, + "y":46720, + "width":428, + "height":60 + }, + { + "id":"3c950de130712a45", + "type":"text", + "text":"- [x] 상담실 시스템에어컨 이전,박관식,위임보수신청", + "styleAttributes":{}, + "x":370, + "y":46840, + "width":428, + "height":60 + }, + { + "id":"f314065d7cdcf62e", + "type":"text", + "text":"- [x] 통합이동정비, 2교,임대원,오전", + "styleAttributes":{}, + "x":370, + "y":46780, + "width":428, + "height":60 + }, + { + "id":"1fc3ffe3287653f8", + "type":"text", + "text":"- [x] 26년 후생용품(이발도구) 납품,조태숙,0930-1000,전기이발기70,미용보28,스펀지130,정대룡,01058479773", + "styleAttributes":{}, + "x":370, + "y":46900, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"586e93f50436381d", + "type":"text", + "text":"- [x] ✔️전반기 교육사 군수통합지도방문\n🌱환경+재난분야는 3.9.(목) 예정입니다.\n각 부대별 미흡사항 있는지 사전 점검 부탁드립니다.", + "styleAttributes":{}, + "x":1634, + "y":47160, + "width":408, + "height":120 + }, + { + "id":"c2dbf7c0610185a6", + "type":"text", + "text":"- [ ] 모래주머니 소요 종합,황인찬,~4.9 #취소 ", + "styleAttributes":{}, + "x":1634, + "y":46960, + "width":406, + "height":60 + }, + { + "id":"6a2f7c6d6e9319b6", + "type":"text", + "text":"- [x] 출입신청서 보내드립니다.\n납품일:4월 9일 오후 13시 도착\n품명: 총기보관함 10정용 72개 \n계약자:동광시스템\n\n1.성명: 김종운\n생년월일 : 730123\n주소: 경기도 고양시 덕양구 내유동현대파크빌B동301호\n연락처 : 010-6349-7531\n차종 : 프리마/흰색\n차량번호 : 경기92자2973(5톤)\n2. 성명:김윤성\n생년월일:820220\n연락처:010-7425-1214\n주소:경기도 파주시 심학산로385 운정센트럴 푸르지오아파트 1015동1102호\n차량정보:경기87바2650(구쎈8톤/검정색)", + "styleAttributes":{}, + "x":1634, + "y":47280, + "width":408, + "height":550 + }, + { + "id":"0909035d927b14c0", + "type":"text", + "text":"- [x] 군수계획(소방.재난).환경분야는\n내일점검합니다\n(교육사 군수계획장교,환경담당)", + "styleAttributes":{}, + "x":1634, + "y":47830, + "width":408, + "height":130 + }, + { + "id":"5cc20e631b6ab756", + "type":"text", + "text":"- [x] 오늘 1교육대 징집분대장 2명 전입으로 인해 연대무기고에서 총기 및 대검 2정 1540에 수령하겠습니다!", + "styleAttributes":{}, + "x":1634, + "y":47960, + "width":408, + "height":120 + }, { "id":"62354298d7007344", "type":"text", @@ -8582,16 +8521,6 @@ "width":408, "height":60 }, - { - "id":"c6c8d7b855587922", - "type":"text", - "text":"- [x] 사령부 전반기 군수지동방문", - "styleAttributes":{}, - "x":1226, - "y":46900, - "width":408, - "height":60 - }, { "id":"b6dc15cad6ee79a3", "type":"text", @@ -8603,46 +8532,15 @@ "height":60 }, { - "id":"7ab8d5c34f0d8665", + "id":"901ae0ebbea9300a", "type":"text", - "text":"- [x] 연대 전훌훈련평가 예행연습", - "styleAttributes":{}, - "x":1226, - "y":46840, - "width":408, - "height":60 - }, - { - "id":"b1d83de61e99015b", - "type":"text", - "text":"- [x] 🌱 실내공기질 측정 예정\n- 금일 : 30-1교(라돈 6지점), 25-2교, 25-3교\n- 익일(예정) : 27-3교, 28연대 식당, 30-2교, 30-3교\n\n각 부대별 인지하시어 인솔 및 측정지점 안내바랍니다.\n\n* 콘센트, 측정기기 공간 확보 필수\n* 순차적으로 연락예정\n* 병영생활시설의 경우 병영생활관에 1지점 이상 설치 필수\n* 실내공기질 측정 기사님 연락처입니다.\n성당-> 30-1교육대 안내부탁드리겠습니다.\n01095570500 백규현기사", - "styleAttributes":{}, - "x":1226, - "y":47140, - "width":408, - "height":430 - }, - { - "id":"22eeb17d83225aae", - "type":"text", - "text":"- [x] 중기계획 교육,10시,군재다목적강당", + "text":"# 4. 7 . (화) ", "styleAttributes":{}, "x":798, - "y":46900, + "y":46720, "width":428, "height":60 }, - { - "id":"97e514c126366fd2", - "type":"text", - "text":"- [x] 26년 해빙기 취약시설 안전점검 결과보고,이동섭,~4.3", - "styleAttributes":{}, - "x":370, - "y":46960, - "width":856, - "height":60, - "color":"1" - }, { "id":"1233d5aa897ce748", "type":"text", @@ -8664,131 +8562,6 @@ "height":60, "color":"1" }, - { - "id":"586e93f50436381d", - "type":"text", - "text":"- [x] ✔️전반기 교육사 군수통합지도방문\n🌱환경+재난분야는 3.9.(목) 예정입니다.\n각 부대별 미흡사항 있는지 사전 점검 부탁드립니다.", - "styleAttributes":{}, - "x":1634, - "y":47160, - "width":408, - "height":120 - }, - { - "id":"6a2f7c6d6e9319b6", - "type":"text", - "text":"- [x] 출입신청서 보내드립니다.\n납품일:4월 9일 오후 13시 도착\n품명: 총기보관함 10정용 72개 \n계약자:동광시스템\n\n1.성명: 김종운\n생년월일 : 730123\n주소: 경기도 고양시 덕양구 내유동현대파크빌B동301호\n연락처 : 010-6349-7531\n차종 : 프리마/흰색\n차량번호 : 경기92자2973(5톤)\n2. 성명:김윤성\n생년월일:820220\n연락처:010-7425-1214\n주소:경기도 파주시 심학산로385 운정센트럴 푸르지오아파트 1015동1102호\n차량정보:경기87바2650(구쎈8톤/검정색)", - "styleAttributes":{}, - "x":1634, - "y":47280, - "width":408, - "height":550 - }, - { - "id":"b50c63e75a26e13d", - "type":"text", - "text":"- [x] 손망실 소집교읅, 구은지, 1030,성당", - "styleAttributes":{}, - "x":2040, - "y":47775, - "width":430, - "height":60 - }, - { - "id":"6b05dafc0aed08b8", - "type":"text", - "text":"- [x] 연대전술훈련평가 자체예행연습,연대장", - "styleAttributes":{}, - "x":370, - "y":47690, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"357267fce19d565a", - "type":"text", - "text":"- [x] 26년 실내공기질 측정,신상이,~5.4, 1교 라돈, 취사식당4.16-17, 3교4.14-15,윤정현010-5409-8081", - "styleAttributes":{}, - "x":370, - "y":47570, - "width":1264, - "height":60, - "color":"4" - }, - { - "id":"98fd06d3ec5017ac", - "type":"text", - "text":"- [x] 사령부 전반기 군수분야지도방문", - "styleAttributes":{}, - "x":370, - "y":47630, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"5f64427bc237e7f2", - "type":"text", - "text":"- [x] 내일 군수통합지도방문(급양)은 현재까지는 직영식당 현장위주로 보신다고합니다.\n어떤거 위주로 보실건지는 확인 후 전파드리겠습니다.\n\n관련해서 군수과장님과 저는 15시부터 28-25-29에 현장확인을 할 예정입니다. ", - "styleAttributes":{}, - "x":1226, - "y":47750, - "width":408, - "height":210 - }, - { - "id":"7c18b75171ed5b42", - "type":"text", - "text":"- [ ] 국기게양식, [[223. 부대안전점검]]의날 행사 실시", - "styleAttributes":{}, - "x":370, - "y":47510, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"825bd7ceaab851bd", - "type":"text", - "text":"- [x] 유류,가스 결산", - "styleAttributes":{}, - "x":370, - "y":47750, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"804008abf4d931f6", - "type":"text", - "text":"- [x] 대검 수량실셈,2교육대,배성수", - "styleAttributes":{}, - "x":370, - "y":47450, - "width":428, - "height":60 - }, - { - "id":"1300eaf11478780b", - "type":"text", - "text":"- [x] 2교육대 폐처리 지시서 확인,이국진", - "styleAttributes":{}, - "x":370, - "y":47810, - "width":418, - "height":60 - }, - { - "id":"0909035d927b14c0", - "type":"text", - "text":"- [x] 군수계획(소방.재난).환경분야는\n내일점검합니다\n(교육사 군수계획장교,환경담당)", - "styleAttributes":{}, - "x":1634, - "y":47830, - "width":408, - "height":130 - }, { "id":"650e05392de57424", "type":"text", @@ -8819,6 +8592,244 @@ "width":406, "height":60 }, + { + "id":"a64a3e4e45a45d38", + "type":"text", + "text":"- [x] 연대 창고 중기계획보고,창고,박관식,", + "styleAttributes":{}, + "x":375, + "y":48378, + "width":1665, + "height":60, + "color":"1" + }, + { + "id":"c6c8d7b855587922", + "type":"text", + "text":"- [x] 사령부 전반기 군수지동방문", + "styleAttributes":{}, + "x":1226, + "y":46900, + "width":408, + "height":60 + }, + { + "id":"7ab8d5c34f0d8665", + "type":"text", + "text":"- [x] 연대 전훌훈련평가 예행연습", + "styleAttributes":{}, + "x":1226, + "y":46840, + "width":408, + "height":60 + }, + { + "id":"22eeb17d83225aae", + "type":"text", + "text":"- [x] 중기계획 교육,10시,군재다목적강당", + "styleAttributes":{}, + "x":798, + "y":46900, + "width":428, + "height":60 + }, + { + "id":"97e514c126366fd2", + "type":"text", + "text":"- [x] 26년 해빙기 취약시설 안전점검 결과보고,이동섭,~4.3", + "styleAttributes":{}, + "x":370, + "y":46960, + "width":856, + "height":60, + "color":"1" + }, + { + "id":"e749340efafac690", + "type":"text", + "text":"- [ ] 교육과 이명세상사, 전관방송용앰프 120w 폐처리 기술검사 건의 및 불용결정 신청", + "styleAttributes":{}, + "x":370, + "y":47200, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"14406fff6a8712e7", + "type":"text", + "text":"- [x] 26년 방역약품 소요파악,한승민,~4.6", + "styleAttributes":{}, + "x":370, + "y":47140, + "width":428, + "height":60 + }, + { + "id":"6df1eaf34780b7a9", + "type":"text", + "text":"- [ ] 간부 성인지교육 신청", + "styleAttributes":{}, + "x":1634, + "y":48445, + "width":406, + "height":60 + }, + { + "id":"3d1076c84eadb0b3", + "type":"text", + "text":"- [ ] 장거리 배차 소요종합,유재형,~4.16", + "styleAttributes":{}, + "x":1634, + "y":48505, + "width":406, + "height":75 + }, + { + "id":"b41b39ff0ebe936c", + "type":"text", + "text":" - [x] 정기점검표 양식은 작년에 정기점검 한 자료가 있습니다.\n\t확인하시고 점검 후 공문 보내주시면 종합하겠습니다.\n\t1. 3월 한시인가 결산결과도 보내주시면 종합하겠습니다.", + "styleAttributes":{}, + "x":370, + "y":47260, + "width":428, + "height":190 + }, + { + "id":"825bd7ceaab851bd", + "type":"text", + "text":"- [x] 유류,가스 결산", + "styleAttributes":{}, + "x":370, + "y":47750, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"1300eaf11478780b", + "type":"text", + "text":"- [x] 2교육대 폐처리 지시서 확인,이국진", + "styleAttributes":{}, + "x":370, + "y":47810, + "width":418, + "height":60 + }, + { + "id":"7b8de56d7386ef24", + "type":"text", + "text":"- [x] 총기보관함 훈련병 생환관 정수대비 보유현황,황인찬,~4.13", + "styleAttributes":{}, + "x":370, + "y":48260, + "width":428, + "height":60 + }, + { + "id":"a374287b5443553f", + "type":"text", + "text":"# 4. 13. (월) ", + "styleAttributes":{}, + "x":370, + "y":48200, + "width":428, + "height":60 + }, + { + "id":"d221234ac81836ca", + "type":"text", + "text":"- [x] 재정지도방문,훈련소자체,4.13,홍채림", + "styleAttributes":{}, + "x":370, + "y":48320, + "width":428, + "height":60 + }, + { + "id":"7c18b75171ed5b42", + "type":"text", + "text":"- [ ] 국기게양식, [[223. 부대안전점검]]의날 행사 실시", + "styleAttributes":{}, + "x":370, + "y":47510, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"804008abf4d931f6", + "type":"text", + "text":"- [x] 대검 수량실셈,2교육대,배성수", + "styleAttributes":{}, + "x":370, + "y":47450, + "width":428, + "height":60 + }, + { + "id":"2cdb1ad1d8df5afd", + "type":"text", + "text":"- [ ] 월하준비 시행지침 획인, ", + "styleAttributes":{}, + "x":1634, + "y":48580, + "width":408, + "height":60 + }, + { + "id":"b1d83de61e99015b", + "type":"text", + "text":"- [x] 🌱 실내공기질 측정 예정\n- 금일 : 30-1교(라돈 6지점), 25-2교, 25-3교\n- 익일(예정) : 27-3교, 28연대 식당, 30-2교, 30-3교\n\n각 부대별 인지하시어 인솔 및 측정지점 안내바랍니다.\n\n* 콘센트, 측정기기 공간 확보 필수\n* 순차적으로 연락예정\n* 병영생활시설의 경우 병영생활관에 1지점 이상 설치 필수\n* 실내공기질 측정 기사님 연락처입니다.\n성당-> 30-1교육대 안내부탁드리겠습니다.\n01095570500 백규현기사", + "styleAttributes":{}, + "x":1226, + "y":47140, + "width":408, + "height":430 + }, + { + "id":"357267fce19d565a", + "type":"text", + "text":"- [x] 26년 실내공기질 측정,신상이,~5.4, 1교 라돈, 취사식당4.16-17, 3교4.14-15,윤정현010-5409-8081", + "styleAttributes":{}, + "x":370, + "y":47570, + "width":1264, + "height":60, + "color":"4" + }, + { + "id":"98fd06d3ec5017ac", + "type":"text", + "text":"- [x] 사령부 전반기 군수분야지도방문", + "styleAttributes":{}, + "x":370, + "y":47630, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"6b05dafc0aed08b8", + "type":"text", + "text":"- [x] 연대전술훈련평가 자체예행연습,연대장", + "styleAttributes":{}, + "x":370, + "y":47690, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"5f64427bc237e7f2", + "type":"text", + "text":"- [x] 내일 군수통합지도방문(급양)은 현재까지는 직영식당 현장위주로 보신다고합니다.\n어떤거 위주로 보실건지는 확인 후 전파드리겠습니다.\n\n관련해서 군수과장님과 저는 15시부터 28-25-29에 현장확인을 할 예정입니다. ", + "styleAttributes":{}, + "x":1226, + "y":47750, + "width":408, + "height":210 + }, { "id":"454827b322a05a94", "type":"text", @@ -8840,12 +8851,42 @@ "height":60 }, { - "id":"aa5a1a98dc8cef3e", + "id":"0906621464de7e30", "type":"text", - "text":"[[월간 지휘관 무기고탄약고 점검]] ", + "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", + "styleAttributes":{}, + "x":370, + "y":48440, + "width":1264, + "height":65 + }, + { + "id":"d5260f058d7a8aab", + "type":"text", + "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", + "styleAttributes":{}, + "x":370, + "y":48510, + "width":1264, + "height":70 + }, + { + "id":"7a45c327cbdfecd8", + "type":"text", + "text":"# 4. 10.(금) 정상퇴근1730", "styleAttributes":{}, "x":2042, - "y":48785, + "y":46720, + "width":428, + "height":60 + }, + { + "id":"be2c8bf0fb4ea944", + "type":"text", + "text":"- [ ] 육군규정 수정 개정소요 제출,~4.10,조태숙 #취소", + "styleAttributes":{}, + "x":2042, + "y":46780, "width":428, "height":60 }, @@ -8870,24 +8911,66 @@ "height":60 }, { - "id":"9622b765751deea0", + "id":"096ad31c759ffd09", "type":"text", - "text":"[[대검]] 실셈 1교,1400", + "text":"[[방역업체]] 방문", "styleAttributes":{}, - "x":2040, - "y":48845, + "x":1634, + "y":48640, + "width":408, + "height":60 + }, + { + "id":"56ca3acbc39f184a", + "type":"text", + "text":"- [x] 부대안전진단 결과 보고 확인,안전실,4.14", + "styleAttributes":{}, + "x":798, + "y":48260, + "width":430, + "height":60 + }, + { + "id":"6a1a7d8b51705b36", + "type":"text", + "text":"# 4. 14 . (화) ", + "styleAttributes":{}, + "x":798, + "y":48200, "width":428, "height":60 }, { - "id":"5cc20e631b6ab756", + "id":"88bcc83300977084", "type":"text", - "text":"- [x] 오늘 1교육대 징집분대장 2명 전입으로 인해 연대무기고에서 총기 및 대검 2정 1540에 수령하겠습니다!", + "text":"- [x] 📝 방탄헬멧 위장보 보급계획\n\t\n\t• 일시: 4월 14일(화) 15:00, (소)408,(중)2076\n\t• 장소: 9번창고(급식유통센터쪽/면수건 수령창고)\n\t• 협조: 물품,물량에 적합한 차량과 상하차 인원 준비부탁드리겠습니다.\n\t• 참조: 자세한 내용은 박형주주무관님메모(4.6) 방탄헬멧 위장포 보급 계획 메모 참조바랍니다.(위장포 1박스당 200ea/박스크기 1파렛트 1단에 3박스 정도 사이즈)\n\t\n\t특이사항발생 시 내용\n\t전파하도록 하겠습니다.\n\t방탄헬멧 위장포 보급,박형주,~4.14,4번창고,1500, ", "styleAttributes":{}, - "x":1634, - "y":47960, - "width":408, - "height":120 + "x":798, + "y":48580, + "width":418, + "height":290 + }, + { + "id":"1d63e577573b8477", + "type":"text", + "text":"- [ ] 2교 물탱크 교체 2분기 위임보수 건의 필요 #취소", + "styleAttributes":{}, + "x":370, + "y":48640, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"9c83ec6ba5c19383", + "type":"text", + "text":"- [x] 교육과 이명세상사, 전관방송용앰프 120w 폐처리 기술검사 건의 및 불용결정 신청", + "styleAttributes":{}, + "x":370, + "y":48580, + "width":428, + "height":60, + "color":"1" }, { "id":"ea39ab719b851d27", @@ -8900,6 +8983,107 @@ "height":60, "color":"5" }, + { + "id":"19942abda1789692", + "type":"text", + "text":"- [x] [승용차 2부제(홀짝제) 시행]\n\t(별) 메모보고 참조\n\t\n\t1. 시행일 : 4. 13.(월) 06:30 부\n\t2. 대상 : 군인, 군무원, 근무원 전 차량\n\t * 10인승 이하 승용자동차\n\t1. 시행방법 : 끝자리 숫자가 \n\t 홀수면 홀수일, 짝수면 짝수일 운행\n\t2. 적용시간 : 평일(월~금) 24시간\n\t * 주말, 공휴일, 31일 제외\n\t3. 제외차량 : 기존 5부제 지침 적용\n\t * 추가사항 \n\t - 대중교통 미운행 시간에 출근 하는\n\t 차량 포함(06시 30분 이전 출근)\n\t - 논산에서 버스 첫차 출발시간 고려\n\t (201번 버스 기준 06시에 논산 출발)\n\t (별) 적용제외차량 스티커는\n\t A4 코팅하여 차량 전면\n\t 잘 보이는 곳에 위치\n\t (양식이 다르면 미인정)\n\t\n\t메모보고 참고하시고\n\t기존양식 활용하여\n\t2부제 제외차량 공문으로\n\t보고바랍니다.(4. 10.(금) 한)", + "styleAttributes":{}, + "x":2040, + "y":47160, + "width":450, + "height":615 + }, + { + "id":"b50c63e75a26e13d", + "type":"text", + "text":"- [x] 손망실 소집교읅, 구은지, 1030,성당", + "styleAttributes":{}, + "x":2040, + "y":47775, + "width":430, + "height":60 + }, + { + "id":"62dcc978bcc03154", + "type":"text", + "text":"- [x] 정비지시서 욀결", + "styleAttributes":{}, + "x":2042, + "y":47835, + "width":428, + "height":60 + }, + { + "id":"a5b76db968407408", + "type":"text", + "text":"- [ ] 교육과,본부중대재산 워키토키 2대정리,이명세", + "styleAttributes":{}, + "x":2040, + "y":47895, + "width":430, + "height":65, + "color":"1" + }, + { + "id":"8cda3e6d3e0f8593", + "type":"text", + "text":"- [x] 1분기위임보수 공사(중대화장실3개소분3천만원) 예산 물품구매 협조,위임보수담당,안일남", + "styleAttributes":{}, + "x":2040, + "y":47960, + "width":430, + "height":60 + }, + { + "id":"8082198901af2a0b", + "type":"text", + "text":"# 4. 17.(금)", + "styleAttributes":{}, + "x":2042, + "y":48200, + "width":428, + "height":60 + }, + { + "id":"9ebadd4055e8db52", + "type":"text", + "text":"- [x] 주간유류탱크점검,유류소모", + "styleAttributes":{}, + "x":2040, + "y":46960, + "width":430, + "height":60 + }, + { + "id":"ce3e16baceeb6154", + "type":"text", + "text":"- [x] 28-32 국방중기계획 작성교육, 남재우, 1000, 교육지원대대장, 교지대 다목적홀", + "styleAttributes":{}, + "x":2042, + "y":46900, + "width":428, + "height":60 + }, + { + "id":"631741e9b210aaa8", + "type":"text", + "text":"- [x] 밝은눈 안과 출장검진,고재은,4.10,1300-1330,연무관", + "styleAttributes":{}, + "x":2042, + "y":46840, + "width":428, + "height":60 + }, + { + "id":"b4ebe82204b7dfa3", + "type":"text", + "text":"- [x] 대형정수기 업체 계속 정비가능여부 확인", + "styleAttributes":{}, + "x":2040, + "y":48020, + "width":430, + "height":60 + }, { "id":"671d9e93eb470997", "type":"text", @@ -8920,6 +9104,67 @@ "width":428, "height":60 }, + { + "id":"e47d2c9a32f052c2", + "type":"text", + "text":"- [ ] 충성! 보급관님\n1교육대 대검 재산 실셈파악은\n4.17(금) 에 실시하겠습니다!", + "styleAttributes":{}, + "x":2042, + "y":48380, + "width":428, + "height":100, + "color":"1" + }, + { + "id":"64b3e554babd1130", + "type":"text", + "text":"- [ ] 노후 등기구 조사, 조범희,~4.17", + "styleAttributes":{}, + "x":2042, + "y":48480, + "width":428, + "height":60 + }, + { + "id":"91979ff8d4b98b55", + "type":"text", + "text":"- [ ] 해빙기 취약시설 안전점검 결과보고 내용확인,이동섭", + "styleAttributes":{}, + "x":2042, + "y":48540, + "width":438, + "height":60 + }, + { + "id":"ebbc69dc68babf63", + "type":"text", + "text":"- [x] 건설장비 소요 종합,한서욱,~4.17", + "styleAttributes":{}, + "x":2040, + "y":48600, + "width":428, + "height":60 + }, + { + "id":"aa5a1a98dc8cef3e", + "type":"text", + "text":"[[월간 지휘관 무기고탄약고 점검]] ", + "styleAttributes":{}, + "x":2042, + "y":48785, + "width":428, + "height":60 + }, + { + "id":"9622b765751deea0", + "type":"text", + "text":"[[대검]] 실셈 1교,1400", + "styleAttributes":{}, + "x":2040, + "y":48845, + "width":428, + "height":60 + }, { "id":"f83dcbf8aea7338a", "type":"text", @@ -8942,6 +9187,16 @@ "height":80, "color":"1" }, + { + "id":"892b8a89cb3fa271", + "type":"text", + "text":"- [x] 위임보수 2분기 심의결과 확인,박관식,4.14", + "styleAttributes":{}, + "x":798, + "y":48870, + "width":418, + "height":60 + }, { "id":"d7d5d24f38b94344", "type":"text", @@ -8985,200 +9240,6 @@ "width":2100, "height":60 }, - { - "id":"62dcc978bcc03154", - "type":"text", - "text":"- [x] 정비지시서 욀결", - "styleAttributes":{}, - "x":2042, - "y":47835, - "width":428, - "height":60 - }, - { - "id":"8082198901af2a0b", - "type":"text", - "text":"# 4. 17.(금)", - "styleAttributes":{}, - "x":2042, - "y":48200, - "width":428, - "height":60 - }, - { - "id":"e47d2c9a32f052c2", - "type":"text", - "text":"- [ ] 충성! 보급관님\n1교육대 대검 재산 실셈파악은\n4.17(금) 에 실시하겠습니다!", - "styleAttributes":{}, - "x":2042, - "y":48380, - "width":428, - "height":100, - "color":"1" - }, - { - "id":"91979ff8d4b98b55", - "type":"text", - "text":"- [ ] 해빙기 취약시설 안전점검 결과보고 내용확인,이동섭", - "styleAttributes":{}, - "x":2042, - "y":48540, - "width":438, - "height":60 - }, - { - "id":"64b3e554babd1130", - "type":"text", - "text":"- [ ] 노후 등기구 조사, 조범희,~4.17", - "styleAttributes":{}, - "x":2042, - "y":48480, - "width":428, - "height":60 - }, - { - "id":"ebbc69dc68babf63", - "type":"text", - "text":"- [x] 건설장비 소요 종합,한서욱,~4.17", - "styleAttributes":{}, - "x":2040, - "y":48600, - "width":428, - "height":60 - }, - { - "id":"9c83ec6ba5c19383", - "type":"text", - "text":"- [x] 교육과 이명세상사, 전관방송용앰프 120w 폐처리 기술검사 건의 및 불용결정 신청", - "styleAttributes":{}, - "x":370, - "y":48580, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"7b8de56d7386ef24", - "type":"text", - "text":"- [x] 총기보관함 훈련병 생환관 정수대비 보유현황,황인찬,~4.13", - "styleAttributes":{}, - "x":370, - "y":48260, - "width":428, - "height":60 - }, - { - "id":"a374287b5443553f", - "type":"text", - "text":"# 4. 13. (월) ", - "styleAttributes":{}, - "x":370, - "y":48200, - "width":428, - "height":60 - }, - { - "id":"d221234ac81836ca", - "type":"text", - "text":"- [x] 재정지도방문,훈련소자체,4.13,홍채림", - "styleAttributes":{}, - "x":370, - "y":48320, - "width":428, - "height":60 - }, - { - "id":"a5b76db968407408", - "type":"text", - "text":"- [ ] 교육과,본부중대재산 워키토키 2대정리,이명세", - "styleAttributes":{}, - "x":2040, - "y":47895, - "width":430, - "height":65, - "color":"1" - }, - { - "id":"8cda3e6d3e0f8593", - "type":"text", - "text":"- [x] 1분기위임보수 공사(중대화장실3개소분3천만원) 예산 물품구매 협조,위임보수담당,안일남", - "styleAttributes":{}, - "x":2040, - "y":47960, - "width":430, - "height":60 - }, - { - "id":"b4ebe82204b7dfa3", - "type":"text", - "text":"- [x] 대형정수기 업체 계속 정비가능여부 확인", - "styleAttributes":{}, - "x":2040, - "y":48020, - "width":430, - "height":60 - }, - { - "id":"a64a3e4e45a45d38", - "type":"text", - "text":"- [x] 연대 창고 중기계획보고,창고,박관식,", - "styleAttributes":{}, - "x":375, - "y":48378, - "width":1665, - "height":60, - "color":"1" - }, - { - "id":"0906621464de7e30", - "type":"text", - "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", - "styleAttributes":{}, - "x":370, - "y":48440, - "width":1264, - "height":65 - }, - { - "id":"6df1eaf34780b7a9", - "type":"text", - "text":"- [ ] 간부 성인지교육 신청", - "styleAttributes":{}, - "x":1634, - "y":48445, - "width":406, - "height":60 - }, - { - "id":"d5260f058d7a8aab", - "type":"text", - "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", - "styleAttributes":{}, - "x":370, - "y":48510, - "width":1264, - "height":70 - }, - { - "id":"56ca3acbc39f184a", - "type":"text", - "text":"- [x] 부대안전진단 결과 보고 확인,안전실,4.14", - "styleAttributes":{}, - "x":798, - "y":48260, - "width":430, - "height":60 - }, - { - "id":"6a1a7d8b51705b36", - "type":"text", - "text":"# 4. 14 . (화) ", - "styleAttributes":{}, - "x":798, - "y":48200, - "width":428, - "height":60 - }, { "id":"1c19d6bcf0ba28e7", "type":"text", @@ -9190,67 +9251,6 @@ "height":60, "color":"1" }, - { - "id":"3d1076c84eadb0b3", - "type":"text", - "text":"- [ ] 장거리 배차 소요종합,유재형,~4.16", - "styleAttributes":{}, - "x":1634, - "y":48505, - "width":406, - "height":75 - }, - { - "id":"2cdb1ad1d8df5afd", - "type":"text", - "text":"- [ ] 월하준비 시행지침 획인, ", - "styleAttributes":{}, - "x":1634, - "y":48580, - "width":408, - "height":60 - }, - { - "id":"88bcc83300977084", - "type":"text", - "text":"- [x] 📝 방탄헬멧 위장보 보급계획\n\t\n\t• 일시: 4월 14일(화) 15:00, (소)408,(중)2076\n\t• 장소: 9번창고(급식유통센터쪽/면수건 수령창고)\n\t• 협조: 물품,물량에 적합한 차량과 상하차 인원 준비부탁드리겠습니다.\n\t• 참조: 자세한 내용은 박형주주무관님메모(4.6) 방탄헬멧 위장포 보급 계획 메모 참조바랍니다.(위장포 1박스당 200ea/박스크기 1파렛트 1단에 3박스 정도 사이즈)\n\t\n\t특이사항발생 시 내용\n\t전파하도록 하겠습니다.\n\t방탄헬멧 위장포 보급,박형주,~4.14,4번창고,1500, ", - "styleAttributes":{}, - "x":798, - "y":48580, - "width":418, - "height":290 - }, - { - "id":"096ad31c759ffd09", - "type":"text", - "text":"[[방역업체]] 방문", - "styleAttributes":{}, - "x":1634, - "y":48640, - "width":408, - "height":60 - }, - { - "id":"1d63e577573b8477", - "type":"text", - "text":"- [ ] 2교 물탱크 교체 2분기 위임보수 건의 필요 #취소", - "styleAttributes":{}, - "x":370, - "y":48640, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"892b8a89cb3fa271", - "type":"text", - "text":"- [x] 위임보수 2분기 심의결과 확인,박관식,4.14", - "styleAttributes":{}, - "x":798, - "y":48870, - "width":418, - "height":60 - }, { "id":"b18fbdb122c094ec", "type":"text", @@ -9291,16 +9291,6 @@ "width":428, "height":420 }, - { - "id":"e890b5dc4ff9394d", - "type":"text", - "text":"# 4. 20. (월) ", - "styleAttributes":{}, - "x":400, - "y":50760, - "width":428, - "height":60 - }, { "id":"b4e4b55a1c38789a", "type":"text", @@ -9321,26 +9311,6 @@ "width":408, "height":60 }, - { - "id":"7e0beb2d4c188a54", - "type":"text", - "text":"# 4. 21 . (화) ", - "styleAttributes":{}, - "x":828, - "y":50760, - "width":428, - "height":60 - }, - { - "id":"e7f847e0b2c6ef54", - "type":"text", - "text":"# 4. 24.(금) 이발예약14시,정상퇴근", - "styleAttributes":{}, - "x":2072, - "y":50760, - "width":468, - "height":60 - }, { "id":"f7d19a81e410822b", "type":"text", @@ -9391,6 +9361,36 @@ "width":408, "height":60 }, + { + "id":"7e0beb2d4c188a54", + "type":"text", + "text":"# 4. 21 . (화) ", + "styleAttributes":{}, + "x":828, + "y":50760, + "width":428, + "height":60 + }, + { + "id":"3f2df223b98343f5", + "type":"text", + "text":"예방정비,3508-2", + "styleAttributes":{}, + "x":828, + "y":50820, + "width":428, + "height":60 + }, + { + "id":"74db9e3202192e8b", + "type":"text", + "text":"간부 상인지교육,소집,고재은 0830-1010, 1020-1200 #미참석", + "styleAttributes":{}, + "x":828, + "y":50880, + "width":428, + "height":60 + }, { "id":"57c0a1389b463244", "type":"text", @@ -9401,16 +9401,6 @@ "width":408, "height":60 }, - { - "id":"a33d39bdf1308eb7", - "type":"text", - "text":"[[병영생활관신축]] 선행연구 30토의,박관식1030,김낙중", - "styleAttributes":{}, - "x":1256, - "y":50940, - "width":408, - "height":60 - }, { "id":"77c8d402a2ab070d", "type":"text", @@ -9422,23 +9412,23 @@ "height":60 }, { - "id":"123634bc46285cbd", + "id":"99b3f890c77f0b24", "type":"text", - "text":"- [x] 통합이동정비,1교,오후,임대원", + "text":"- [ ] 예방정비, 3508-3호", "styleAttributes":{}, "x":400, - "y":50820, + "y":51000, "width":428, "height":60 }, { - "id":"3f2df223b98343f5", + "id":"da757833170da178", "type":"text", - "text":"예방정비,3508-2", + "text":"[[보급품 수령 , 분배, 반납-1]], 황인찬", "styleAttributes":{}, - "x":828, - "y":50820, - "width":428, + "x":1664, + "y":51060, + "width":408, "height":60 }, { @@ -9462,12 +9452,93 @@ "height":60 }, { - "id":"da757833170da178", + "id":"e890b5dc4ff9394d", "type":"text", - "text":"[[보급품 수령 , 분배, 반납-1]], 황인찬", + "text":"# 4. 20. (월) ", "styleAttributes":{}, - "x":1664, - "y":51060, + "x":400, + "y":50760, + "width":428, + "height":60 + }, + { + "id":"123634bc46285cbd", + "type":"text", + "text":"- [x] 통합이동정비,1교,오후,임대원", + "styleAttributes":{}, + "x":400, + "y":50820, + "width":428, + "height":60 + }, + { + "id":"5e7394ec3bef8a78", + "type":"text", + "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", + "styleAttributes":{}, + "x":400, + "y":50940, + "width":428, + "height":60 + }, + { + "id":"0532f80d28d4c664", + "type":"text", + "text":"- [ ] [[대한민국 안전대전환 집중 안전점검]],~5.15,이동섭", + "styleAttributes":{}, + "x":400, + "y":50880, + "width":428, + "height":60 + }, + { + "id":"e7f847e0b2c6ef54", + "type":"text", + "text":"# 4. 24.(금) 이발예약14시,정상퇴근", + "styleAttributes":{}, + "x":2072, + "y":50760, + "width":468, + "height":60 + }, + { + "id":"988cfde9224448af", + "type":"text", + "text":"- [x] 에방정비,3130호", + "styleAttributes":{}, + "x":2072, + "y":50820, + "width":428, + "height":60 + }, + { + "id":"122f7f4d6475aa73", + "type":"text", + "text":"- [ ] 부대안잔진단 결과 11개과제 호속조치, 실시결과 종합 보고서작성,4.24~", + "styleAttributes":{}, + "x":2072, + "y":50880, + "width":428, + "height":90, + "color":"1" + }, + { + "id":"00dbce2e0e630b6c", + "type":"text", + "text":"[[1분기 작전지원능력 평가서]] 양식 작성,한서욱,", + "styleAttributes":{}, + "x":2072, + "y":50970, + "width":428, + "height":60 + }, + { + "id":"a33d39bdf1308eb7", + "type":"text", + "text":"[[병영생활관신축]] 선행연구 30토의,박관식1030,김낙중", + "styleAttributes":{}, + "x":1256, + "y":50940, "width":408, "height":60 }, @@ -9482,6 +9553,17 @@ "height":60, "color":"1" }, + { + "id":"aa0dbb4c91d5df0e", + "type":"text", + "text":"[[부대운영진단]] 후속조치\n![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", + "styleAttributes":{}, + "x":420, + "y":51300, + "width":2080, + "height":140, + "color":"1" + }, { "id":"6e275d8d425b45d5", "type":"text", @@ -9502,6 +9584,36 @@ "width":408, "height":60 }, + { + "id":"4dfa0fd5cc3ad244", + "type":"text", + "text":"# 4. 28. (화) ", + "styleAttributes":{}, + "x":828, + "y":52080, + "width":428, + "height":60 + }, + { + "id":"c3400b31eab99f59", + "type":"text", + "text":"# 4. 27. (월) ", + "styleAttributes":{}, + "x":400, + "y":52080, + "width":428, + "height":60 + }, + { + "id":"dc80d65b13948801", + "type":"text", + "text":"# 5. 1. (금) ", + "styleAttributes":{}, + "x":2072, + "y":52080, + "width":428, + "height":60 + }, { "id":"db6f6af075619b36", "type":"text", @@ -9545,36 +9657,6 @@ "width":1672, "height":60 }, - { - "id":"988cfde9224448af", - "type":"text", - "text":"- [x] 에방정비,3130호", - "styleAttributes":{}, - "x":2072, - "y":50820, - "width":428, - "height":60 - }, - { - "id":"4dfa0fd5cc3ad244", - "type":"text", - "text":"# 4. 28. (화) ", - "styleAttributes":{}, - "x":828, - "y":52080, - "width":428, - "height":60 - }, - { - "id":"c3400b31eab99f59", - "type":"text", - "text":"# 4. 27. (월) ", - "styleAttributes":{}, - "x":400, - "y":52080, - "width":428, - "height":60 - }, { "id":"4422c9e0eae057f1", "type":"text", @@ -9651,34 +9733,15 @@ "height":60 }, { - "id":"69a2b70a782c3a6e", + "id":"79ac55c09f0cced9", "type":"text", - "text":"~~[[30연대 26년도 예산]], 견적서 접수, 계획보고,안일남~~", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", "styleAttributes":{}, - "x":826, - "y":53057, - "width":430, - "height":60 - }, - { - "id":"60409f1eb5897802", - "type":"text", - "text":"~~[[실내 공기질 측정]], 1교(라돈,5개소),식당(2개소,미세먼지),백규현설치기사(010-9557-0500)~~", - "styleAttributes":{}, - "x":400, - "y":53057, - "width":426, - "height":60 - }, - { - "id":"bb18657078ea8878", - "type":"text", - "text":"~~[[주간 유류탱크 점검]]~~", - "styleAttributes":{}, - "x":1664, - "y":53057, - "width":408, - "height":60 + "x":398, + "y":52892, + "width":1672, + "height":105, + "color":"1" }, { "id":"d3906f5b9a0b752e", @@ -9710,276 +9773,6 @@ "width":408, "height":60 }, - { - "id":"680dca0b6c6ec780", - "type":"text", - "text":"~~[[30연대 26년도 예산]], 견적서 접수, 계획보고,2,3중대 에어컨정비~~", - "styleAttributes":{}, - "x":826, - "y":53117, - "width":430, - "height":60 - }, - { - "id":"9905e0e1a798ca93", - "type":"text", - "text":"- [x] 예방정비,1330호", - "styleAttributes":{}, - "x":398, - "y":53117, - "width":428, - "height":60 - }, - { - "id":"79ac55c09f0cced9", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", - "styleAttributes":{}, - "x":398, - "y":52892, - "width":1672, - "height":105, - "color":"1" - }, - { - "id":"09e5b16122aa3a16", - "type":"text", - "text":"[[월하준비]] 계획 작성, ~30", - "styleAttributes":{}, - "x":398, - "y":52997, - "width":1264, - "height":60, - "color":"1" - }, - { - "id":"aa0dbb4c91d5df0e", - "type":"text", - "text":"[[부대운영진단]] 후속조치\n![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", - "styleAttributes":{}, - "x":420, - "y":51300, - "width":2080, - "height":140, - "color":"1" - }, - { - "id":"5e7394ec3bef8a78", - "type":"text", - "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", - "styleAttributes":{}, - "x":400, - "y":50940, - "width":428, - "height":60 - }, - { - "id":"74db9e3202192e8b", - "type":"text", - "text":"간부 상인지교육,소집,고재은 0830-1010, 1020-1200 #미참석", - "styleAttributes":{}, - "x":828, - "y":50880, - "width":428, - "height":60 - }, - { - "id":"0532f80d28d4c664", - "type":"text", - "text":"- [ ] [[대한민국 안전대전환 집중 안전점검]],~5.15,이동섭", - "styleAttributes":{}, - "x":400, - "y":50880, - "width":428, - "height":60 - }, - { - "id":"99b3f890c77f0b24", - "type":"text", - "text":"- [ ] 예방정비, 3508-3호", - "styleAttributes":{}, - "x":400, - "y":51000, - "width":428, - "height":60 - }, - { - "id":"f11746583890d67f", - "type":"text", - "text":"# 5. 7.(목)", - "styleAttributes":{}, - "x":1654, - "y":54400, - "width":428, - "height":60 - }, - { - "id":"d5797f8b13969207", - "type":"text", - "text":"# 5. 8. (금) ", - "styleAttributes":{}, - "x":2082, - "y":54400, - "width":428, - "height":60 - }, - { - "id":"c88d28f1f29e579a", - "type":"text", - "text":"# 5. 6.(수)", - "styleAttributes":{}, - "x":1246, - "y":54400, - "width":408, - "height":60 - }, - { - "id":"c549c1d00f831c7e", - "type":"text", - "text":"# 5. 4 . (월) ", - "styleAttributes":{}, - "x":410, - "y":54400, - "width":428, - "height":60 - }, - { - "id":"9cbb738d814a8667", - "type":"text", - "text":"# 5. 5 . (화) ", - "styleAttributes":{}, - "x":838, - "y":54400, - "width":408, - "height":60 - }, - { - "id":"122f7f4d6475aa73", - "type":"text", - "text":"- [ ] 부대안잔진단 결과 11개과제 호속조치, 실시결과 종합 보고서작성,4.24~", - "styleAttributes":{}, - "x":2072, - "y":50880, - "width":428, - "height":90, - "color":"1" - }, - { - "id":"00dbce2e0e630b6c", - "type":"text", - "text":"[[1분기 작전지원능력 평가서]] 양식 작성,한서욱,", - "styleAttributes":{}, - "x":2072, - "y":50970, - "width":428, - "height":60 - }, - { - "id":"dc80d65b13948801", - "type":"text", - "text":"# 5. 1. (금) ", - "styleAttributes":{}, - "x":2072, - "y":52080, - "width":428, - "height":60 - }, - { - "id":"426cd64f6cfee25e", - "type":"text", - "text":"~~[[하계 집중운용장비 기술검사 및 정비지원]],한서욱~~", - "styleAttributes":{}, - "x":1256, - "y":53057, - "width":408, - "height":60 - }, - { - "id":"70acb7641eb090b5", - "type":"text", - "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", - "styleAttributes":{}, - "x":410, - "y":54840, - "width":2100, - "height":60, - "color":"3" - }, - { - "id":"525a1f67e97621fc", - "type":"text", - "text":"~~[[대한민국 안전대전환 집중 안전점검]] 결과보고,이동섭~~", - "styleAttributes":{}, - "x":410, - "y":54460, - "width":2100, - "height":60, - "color":"3" - }, - { - "id":"8deafa5340c6d921", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":415, - "y":54520, - "width":2095, - "height":100, - "color":"3" - }, - { - "id":"1c903a28f1ef8e6e", - "type":"text", - "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", - "styleAttributes":{}, - "x":415, - "y":54620, - "width":2095, - "height":60 - }, - { - "id":"70e3756a4107a300", - "type":"text", - "text":"- [ ] [[부대운영진단]] 후속조치\n\t![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", - "styleAttributes":{}, - "x":410, - "y":54680, - "width":2100, - "height":100, - "color":"1" - }, - { - "id":"e74022528663d1cd", - "type":"text", - "text":"- [ ] [[대한민국 안전대전환 집중 안전점검]],~5.15,이동섭", - "styleAttributes":{}, - "x":410, - "y":54780, - "width":2100, - "height":60, - "color":"3" - }, - { - "id":"f5925b18cfad19ae", - "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]], 수령, 15시,수리부속창고, 이승민~~", - "styleAttributes":{}, - "x":826, - "y":53177, - "width":430, - "height":60 - }, - { - "id":"c98b28dbc35537c7", - "type":"text", - "text":"~~상업용 건조기 전수조사,한승민~~", - "styleAttributes":{}, - "x":398, - "y":53177, - "width":428, - "height":60, - "color":"1" - }, { "id":"38d253cd3b6ea6a2", "type":"text", @@ -10001,16 +9794,6 @@ "height":60, "color":"1" }, - { - "id":"c47e4d1e16bb919a", - "type":"text", - "text":"26년 [[월하준비]] 시행 지침, 유재형", - "styleAttributes":{}, - "x":1664, - "y":53237, - "width":408, - "height":70 - }, { "id":"dbc61657533562bf", "type":"text", @@ -10061,6 +9844,223 @@ "width":428, "height":60 }, + { + "id":"69a2b70a782c3a6e", + "type":"text", + "text":"~~[[30연대 26년도 예산]], 견적서 접수, 계획보고,안일남~~", + "styleAttributes":{}, + "x":826, + "y":53057, + "width":430, + "height":60 + }, + { + "id":"bb18657078ea8878", + "type":"text", + "text":"~~[[주간 유류탱크 점검]]~~", + "styleAttributes":{}, + "x":1664, + "y":53057, + "width":408, + "height":60 + }, + { + "id":"09e5b16122aa3a16", + "type":"text", + "text":"[[월하준비]] 계획 작성, ~30", + "styleAttributes":{}, + "x":398, + "y":52997, + "width":1264, + "height":60, + "color":"1" + }, + { + "id":"426cd64f6cfee25e", + "type":"text", + "text":"~~[[하계 집중운용장비 기술검사 및 정비지원]],한서욱~~", + "styleAttributes":{}, + "x":1256, + "y":53057, + "width":408, + "height":60 + }, + { + "id":"60409f1eb5897802", + "type":"text", + "text":"~~[[실내 공기질 측정]], 1교(라돈,5개소),식당(2개소,미세먼지),백규현설치기사(010-9557-0500)~~", + "styleAttributes":{}, + "x":400, + "y":53057, + "width":426, + "height":60 + }, + { + "id":"680dca0b6c6ec780", + "type":"text", + "text":"~~[[30연대 26년도 예산]], 견적서 접수, 계획보고,2,3중대 에어컨정비~~", + "styleAttributes":{}, + "x":826, + "y":53117, + "width":430, + "height":60 + }, + { + "id":"9905e0e1a798ca93", + "type":"text", + "text":"- [x] 예방정비,1330호", + "styleAttributes":{}, + "x":398, + "y":53117, + "width":428, + "height":60 + }, + { + "id":"f5925b18cfad19ae", + "type":"text", + "text":"~~[[보급품 수령 , 분배, 반납]], 수령, 15시,수리부속창고, 이승민~~", + "styleAttributes":{}, + "x":826, + "y":53177, + "width":430, + "height":60 + }, + { + "id":"c98b28dbc35537c7", + "type":"text", + "text":"~~상업용 건조기 전수조사,한승민~~", + "styleAttributes":{}, + "x":398, + "y":53177, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"c47e4d1e16bb919a", + "type":"text", + "text":"26년 [[월하준비]] 시행 지침, 유재형", + "styleAttributes":{}, + "x":1664, + "y":53237, + "width":408, + "height":70 + }, + { + "id":"f11746583890d67f", + "type":"text", + "text":"# 5. 7.(목)", + "styleAttributes":{}, + "x":1654, + "y":54400, + "width":428, + "height":60 + }, + { + "id":"d5797f8b13969207", + "type":"text", + "text":"# 5. 8. (금) ", + "styleAttributes":{}, + "x":2082, + "y":54400, + "width":428, + "height":60 + }, + { + "id":"c88d28f1f29e579a", + "type":"text", + "text":"# 5. 6.(수)", + "styleAttributes":{}, + "x":1246, + "y":54400, + "width":408, + "height":60 + }, + { + "id":"c549c1d00f831c7e", + "type":"text", + "text":"# 5. 4 . (월) ", + "styleAttributes":{}, + "x":410, + "y":54400, + "width":428, + "height":60 + }, + { + "id":"525a1f67e97621fc", + "type":"text", + "text":"~~[[대한민국 안전대전환 집중 안전점검]] 결과보고,이동섭~~", + "styleAttributes":{}, + "x":410, + "y":54460, + "width":2100, + "height":60, + "color":"3" + }, + { + "id":"9cbb738d814a8667", + "type":"text", + "text":"# 5. 5 . (화) ", + "styleAttributes":{}, + "x":838, + "y":54400, + "width":408, + "height":60 + }, + { + "id":"8deafa5340c6d921", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":415, + "y":54520, + "width":2095, + "height":100, + "color":"3" + }, + { + "id":"1c903a28f1ef8e6e", + "type":"text", + "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", + "styleAttributes":{}, + "x":415, + "y":54620, + "width":2095, + "height":60 + }, + { + "id":"70acb7641eb090b5", + "type":"text", + "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", + "styleAttributes":{}, + "x":410, + "y":54840, + "width":2100, + "height":60, + "color":"3" + }, + { + "id":"70e3756a4107a300", + "type":"text", + "text":"- [ ] [[부대운영진단]] 후속조치\n\t![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", + "styleAttributes":{}, + "x":410, + "y":54680, + "width":2100, + "height":100, + "color":"1" + }, + { + "id":"e74022528663d1cd", + "type":"text", + "text":"- [ ] [[대한민국 안전대전환 집중 안전점검]],~5.15,이동섭", + "styleAttributes":{}, + "x":410, + "y":54780, + "width":2100, + "height":60, + "color":"3" + }, { "id":"10277221e91b693d", "type":"text", @@ -10103,6 +10103,28 @@ "width":1239, "height":65 }, + { + "id":"65605a589a2a19a3", + "type":"text", + "text":"[[월하준비]] 계획 작성, ~30, 계획작성은 취소, 추진진도만 작성", + "styleAttributes":{}, + "x":415, + "y":55260, + "width":2095, + "height":60, + "color":"1" + }, + { + "id":"bca6afe80df81980", + "type":"text", + "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", + "styleAttributes":{}, + "x":410, + "y":55190, + "width":1244, + "height":66, + "color":"4" + }, { "id":"38b009243714e587", "type":"text", @@ -10113,6 +10135,16 @@ "width":424, "height":117 }, + { + "id":"2842b9a28ec1d123", + "type":"text", + "text":"~~교육수료주 [[통합이동정비]] , 3교,오전,임대원~~", + "styleAttributes":{}, + "x":1246, + "y":55320, + "width":408, + "height":60 + }, { "id":"5c02d624d7ba49a9", "type":"text", @@ -10123,6 +10155,36 @@ "width":408, "height":60 }, + { + "id":"84bc085de9e32137", + "type":"text", + "text":"- [ ] 체력검정 #미참석", + "styleAttributes":{}, + "x":1653, + "y":55328, + "width":424, + "height":60 + }, + { + "id":"c30746300da2cbce", + "type":"text", + "text":"~~[[보급품 수령 , 분배, 반납]], 신청,황인찬~~", + "styleAttributes":{}, + "x":1653, + "y":55388, + "width":424, + "height":65 + }, + { + "id":"89d230ead45725f1", + "type":"text", + "text":"~~[[실내 공기질 측정]],1교(5개소)~~", + "styleAttributes":{}, + "x":413, + "y":55383, + "width":425, + "height":60 + }, { "id":"ea35249138dc263d", "type":"text", @@ -10144,121 +10206,66 @@ "height":60 }, { - "id":"944b191ed55b91ec", + "id":"5c9f335ae7cd5b83", "type":"text", - "text":"~~[[inbox/위임보수|위임보수]] 토의.$ 10시, 영선대 회의실~~", - "styleAttributes":{}, - "x":1653, - "y":55523, - "width":424, - "height":60 - }, - { - "id":"e399dfd2fbb86722", - "type":"text", - "text":"[[30연대 26년도 예산]], 휘사장,에어커튼,이동엽", - "styleAttributes":{}, - "x":2081, - "y":55590, - "width":429, - "height":73 - }, - { - "id":"ac7bf954a65e015d", - "type":"text", - "text":"~~[[세탁지원]], 크린센터, 김용환~~", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#미사용 전투장구류 및 비품 일제 재산정리(야전삽, TV거치대등)]]#", "styleAttributes":{}, "x":425, - "y":55586, + "y":55928, + "width":620, + "height":80 + }, + { + "id":"88a2745dfb50ab28", + "type":"text", + "text":"[[통합이동정비]], 1교 후속조치, ", + "styleAttributes":{}, + "x":425, + "y":55646, "width":413, "height":60 }, { - "id":"ffd6be5c101cdada", + "id":"b43f144fc2adfd71", "type":"text", - "text":"~~[[은닉초과재산탄약회수활동]] 결과보고,한서욱~~", - "styleAttributes":{}, - "x":415, - "y":55320, - "width":423, - "height":60, - "color":"1" - }, - { - "id":"89d230ead45725f1", - "type":"text", - "text":"~~[[실내 공기질 측정]],1교(5개소)~~", - "styleAttributes":{}, - "x":413, - "y":55383, - "width":425, - "height":60 - }, - { - "id":"f4b7aeb2df0f00a3", - "type":"text", - "text":"[[주간 유류탱크 점검]] #미실시", - "styleAttributes":{}, - "x":2081, - "y":55669, - "width":429, - "height":60 - }, - { - "id":"65605a589a2a19a3", - "type":"text", - "text":"[[월하준비]] 계획 작성, ~30, 계획작성은 취소, 추진진도만 작성", - "styleAttributes":{}, - "x":415, - "y":55260, - "width":2095, - "height":60, - "color":"1" - }, - { - "id":"bca6afe80df81980", - "type":"text", - "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", - "styleAttributes":{}, - "x":410, - "y":55190, - "width":1244, - "height":66, - "color":"4" - }, - { - "id":"f3c5bef6ce555b2b", - "type":"text", - "text":"~~[[부대운영진단 ]] 결과 종합보고,박병노~~", - "styleAttributes":{}, - "x":1246, - "y":55493, - "width":408, - "height":60, - "color":"1" - }, - { - "id":"61a86cfaf7daeda7", - "type":"text", - "text":"[[사용자보수심의]] 준비,3분기,박관식", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#화생방 물자 신회성 평가후 재산정리 필요(정화통반납)]]#", "styleAttributes":{}, "x":425, - "y":55446, - "width":426, - "height":80, - "color":"4" + "y":55848, + "width":620, + "height":80 }, { - "id":"7d21d11648cea686", + "id":"5bd83f9f83052f4e", "type":"text", - "text":"~~[[inbox/안전점검의날|안전점검의날]], 5월행사실시,김수형~~", + "text":"~~[[예방정비]] , 통신, 999~~", "styleAttributes":{}, - "x":415, - "y":55526, - "width":423, + "x":425, + "y":55706, + "width":413, "height":60, "color":"1" }, + { + "id":"c9ae6cd79ffc2964", + "type":"text", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#식당 본관 <-> 별관 이동로 정비(미끄럼 방지대책 강구)]]#", + "styleAttributes":{}, + "x":425, + "y":56168, + "width":620, + "height":80 + }, + { + "id":"c8e05f2942445908", + "type":"text", + "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#연대 총기관리관 인사명령 용어 수정 총기 관리책임관, 총기관리담당관]]", + "styleAttributes":{}, + "x":425, + "y":56248, + "width":620, + "height":80 + }, { "id":"945e1799f06bb689", "type":"text", @@ -10289,106 +10296,6 @@ "width":620, "height":80 }, - { - "id":"6bcfd307abebf1f1", - "type":"text", - "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#총기취급인원 신원조사 의뢰]]#", - "styleAttributes":{}, - "x":425, - "y":56650, - "width":620, - "height":80 - }, - { - "id":"dd6e18252f55b2ad", - "type":"text", - "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#백신 냉장고 잠금장치 비밀번호 변경 및 잠금상태 유지]]#", - "styleAttributes":{}, - "x":425, - "y":56730, - "width":620, - "height":80 - }, - { - "id":"84bc085de9e32137", - "type":"text", - "text":"- [ ] 체력검정 #미참석", - "styleAttributes":{}, - "x":1653, - "y":55328, - "width":424, - "height":60 - }, - { - "id":"c30746300da2cbce", - "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]], 신청,황인찬~~", - "styleAttributes":{}, - "x":1653, - "y":55388, - "width":424, - "height":65 - }, - { - "id":"2842b9a28ec1d123", - "type":"text", - "text":"~~교육수료주 [[통합이동정비]] , 3교,오전,임대원~~", - "styleAttributes":{}, - "x":1246, - "y":55320, - "width":408, - "height":60 - }, - { - "id":"5c9f335ae7cd5b83", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#미사용 전투장구류 및 비품 일제 재산정리(야전삽, TV거치대등)]]#", - "styleAttributes":{}, - "x":425, - "y":55928, - "width":620, - "height":80 - }, - { - "id":"5c0a93a4dd9699f9", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#장비예방정비]]", - "styleAttributes":{}, - "x":425, - "y":56008, - "width":620, - "height":80 - }, - { - "id":"afac3da5de5fd394", - "type":"text", - "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#소방계획서 작성]]", - "styleAttributes":{}, - "x":425, - "y":56088, - "width":620, - "height":80 - }, - { - "id":"c9ae6cd79ffc2964", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#식당 본관 <-> 별관 이동로 정비(미끄럼 방지대책 강구)]]#", - "styleAttributes":{}, - "x":425, - "y":56168, - "width":620, - "height":80 - }, - { - "id":"c8e05f2942445908", - "type":"text", - "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#연대 총기관리관 인사명령 용어 수정 총기 관리책임관, 총기관리담당관]]", - "styleAttributes":{}, - "x":425, - "y":56248, - "width":620, - "height":80 - }, { "id":"0e5e03cf87567a84", "type":"text", @@ -10400,14 +10307,26 @@ "height":80 }, { - "id":"700ea1c28d051364", + "id":"ffd6be5c101cdada", "type":"text", - "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#취사기구류(전처리 도구, 취반기) 및 조미료 위생(보관)상태 개선]]#", + "text":"~~[[은닉초과재산탄약회수활동]] 결과보고,한서욱~~", "styleAttributes":{}, - "x":425, - "y":56810, - "width":620, - "height":80 + "x":415, + "y":55320, + "width":423, + "height":60, + "color":"1" + }, + { + "id":"f3c5bef6ce555b2b", + "type":"text", + "text":"~~[[부대운영진단 ]] 결과 종합보고,박병노~~", + "styleAttributes":{}, + "x":1246, + "y":55493, + "width":408, + "height":60, + "color":"1" }, { "id":"26cd90fb4a0934a8", @@ -10430,26 +10349,6 @@ "width":403, "height":60 }, - { - "id":"37ed45ba7c64dce9", - "type":"text", - "text":"[[차량 2부제]], 추가", - "styleAttributes":{}, - "x":1653, - "y":55583, - "width":424, - "height":60 - }, - { - "id":"88a2745dfb50ab28", - "type":"text", - "text":"[[통합이동정비]], 1교 후속조치, ", - "styleAttributes":{}, - "x":425, - "y":55646, - "width":413, - "height":60 - }, { "id":"e1321b58f738b0d5", "type":"text", @@ -10460,6 +10359,48 @@ "width":424, "height":60 }, + { + "id":"61a86cfaf7daeda7", + "type":"text", + "text":"[[사용자보수심의]] 준비,3분기,박관식", + "styleAttributes":{}, + "x":425, + "y":55446, + "width":426, + "height":80, + "color":"4" + }, + { + "id":"7d21d11648cea686", + "type":"text", + "text":"~~[[inbox/안전점검의날|안전점검의날]], 5월행사실시,김수형~~", + "styleAttributes":{}, + "x":415, + "y":55526, + "width":423, + "height":60, + "color":"1" + }, + { + "id":"5c0a93a4dd9699f9", + "type":"text", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#장비예방정비]]", + "styleAttributes":{}, + "x":425, + "y":56008, + "width":620, + "height":80 + }, + { + "id":"afac3da5de5fd394", + "type":"text", + "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#소방계획서 작성]]", + "styleAttributes":{}, + "x":425, + "y":56088, + "width":620, + "height":80 + }, { "id":"4a554852b2eda5e1", "type":"text", @@ -10471,25 +10412,84 @@ "height":97 }, { - "id":"b43f144fc2adfd71", + "id":"ac7bf954a65e015d", "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#화생방 물자 신회성 평가후 재산정리 필요(정화통반납)]]#", + "text":"~~[[세탁지원]], 크린센터, 김용환~~", "styleAttributes":{}, "x":425, - "y":55848, + "y":55586, + "width":413, + "height":60 + }, + { + "id":"6bcfd307abebf1f1", + "type":"text", + "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#총기취급인원 신원조사 의뢰]]#", + "styleAttributes":{}, + "x":425, + "y":56650, "width":620, "height":80 }, { - "id":"5bd83f9f83052f4e", + "id":"dd6e18252f55b2ad", "type":"text", - "text":"~~[[예방정비]] , 통신, 999~~", + "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#백신 냉장고 잠금장치 비밀번호 변경 및 잠금상태 유지]]#", "styleAttributes":{}, "x":425, - "y":55706, - "width":413, - "height":60, - "color":"1" + "y":56730, + "width":620, + "height":80 + }, + { + "id":"700ea1c28d051364", + "type":"text", + "text":"- [x] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#취사기구류(전처리 도구, 취반기) 및 조미료 위생(보관)상태 개선]]#", + "styleAttributes":{}, + "x":425, + "y":56810, + "width":620, + "height":80 + }, + { + "id":"944b191ed55b91ec", + "type":"text", + "text":"~~[[inbox/위임보수|위임보수]] 토의.$ 10시, 영선대 회의실~~", + "styleAttributes":{}, + "x":1653, + "y":55523, + "width":424, + "height":60 + }, + { + "id":"e399dfd2fbb86722", + "type":"text", + "text":"[[30연대 26년도 예산]], 휘사장,에어커튼,이동엽", + "styleAttributes":{}, + "x":2081, + "y":55590, + "width":429, + "height":73 + }, + { + "id":"37ed45ba7c64dce9", + "type":"text", + "text":"[[차량 2부제]], 추가", + "styleAttributes":{}, + "x":1653, + "y":55583, + "width":424, + "height":60 + }, + { + "id":"f4b7aeb2df0f00a3", + "type":"text", + "text":"[[주간 유류탱크 점검]] #미실시", + "styleAttributes":{}, + "x":2081, + "y":55669, + "width":429, + "height":60 }, { "id":"814de1ebfd00a43a", @@ -10626,6 +10626,49 @@ "height":60, "color":"1" }, + { + "id":"70be8c1d0b27783d", + "type":"text", + "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", + "styleAttributes":{}, + "x":412, + "y":59260, + "width":2095, + "height":60 + }, + { + "id":"39423ff05676cb95", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", + "styleAttributes":{}, + "x":412, + "y":59320, + "width":2100, + "height":105, + "color":"3" + }, + { + "id":"1f6f4c9d95ff6612", + "type":"text", + "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", + "styleAttributes":{}, + "x":412, + "y":59425, + "width":1239, + "height":65, + "color":"3" + }, + { + "id":"c008f948961bedd1", + "type":"text", + "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", + "styleAttributes":{}, + "x":412, + "y":59490, + "width":1244, + "height":66, + "color":"4" + }, { "id":"7324e76270c1f6bb", "type":"text", @@ -10646,6 +10689,16 @@ "width":1672, "height":60 }, + { + "id":"21fffd15bf8dd4c1", + "type":"text", + "text":"[[발전기가동점검]] ", + "styleAttributes":{}, + "x":2062, + "y":59799, + "width":428, + "height":60 + }, { "id":"2bf3fef7750aacbe", "type":"text", @@ -10657,25 +10710,105 @@ "height":60 }, { - "id":"70be8c1d0b27783d", + "id":"b1cd0ffcb36c7db0", "type":"text", - "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", + "text":"~~[[군차량 매연 측정]], 53군지단,ㅡ~~", "styleAttributes":{}, - "x":412, - "y":59260, - "width":2095, + "x":1245, + "y":59739, + "width":408, "height":60 }, { - "id":"39423ff05676cb95", + "id":"dd5604b534ddb209", "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", + "text":"[[급식운영회의]], 5월, 1330,김낙중영옹실", "styleAttributes":{}, - "x":412, - "y":59320, - "width":2100, - "height":105, - "color":"3" + "x":1653, + "y":59739, + "width":408, + "height":60 + }, + { + "id":"bb62396fc8cfcc0d", + "type":"text", + "text":"[[inbox/체육대회|체육대회]], 훈련소주최", + "styleAttributes":{}, + "x":2062, + "y":59859, + "width":428, + "height":60 + }, + { + "id":"f4d43d8cc87c9e26", + "type":"text", + "text":"[[보급품 수령 , 분배, 반납]], 화장지,0830,박형주", + "styleAttributes":{}, + "x":2062, + "y":59919, + "width":428, + "height":60 + }, + { + "id":"33318911e40b7df8", + "type":"text", + "text":"[[보급품 수령 , 분배, 반납]], 소요파악,박형즈", + "styleAttributes":{}, + "x":2062, + "y":59979, + "width":428, + "height":64 + }, + { + "id":"5020a4baf388a507", + "type":"text", + "text":"~~[[폐자원매각대금]]철 제출, 군수과 환경담당,09시까지 제출~~", + "styleAttributes":{}, + "x":843, + "y":59816, + "width":405, + "height":60 + }, + { + "id":"3952c15c924eaa9f", + "type":"text", + "text":"- [ ] 체력측정", + "styleAttributes":{}, + "x":1245, + "y":59799, + "width":408, + "height":60 + }, + { + "id":"29006030772b8796", + "type":"text", + "text":"~~[[정수기]] 업체 방문,~~ ", + "styleAttributes":{}, + "x":1248, + "y":59859, + "width":408, + "height":60 + }, + { + "id":"a74cf86f3045e06c", + "type":"text", + "text":"[[지휘관 교체 재물조사]],7중대장(원사이재광)교체예정", + "styleAttributes":{}, + "x":2062, + "y":60043, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"3917c6beca5402b8", + "type":"text", + "text":"[[26년 30연대 전술훈련평가 수검자료 정리]] ftx, 1330", + "styleAttributes":{}, + "x":1248, + "y":59919, + "width":403, + "height":61 }, { "id":"764887dcab5cf054", @@ -10711,180 +10844,27 @@ "color":"3" }, { - "id":"90e8c058b27a13ab", + "id":"f512276f29fdb20e", "type":"text", - "text":"# 5. 21.(목)", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#치장물자 실셈후 재포장 상태 확인/조치]]#", "styleAttributes":{}, - "x":1674, - "y":61280, - "width":408, - "height":60 - }, - { - "id":"21fffd15bf8dd4c1", - "type":"text", - "text":"[[발전기가동점검]] ", - "styleAttributes":{}, - "x":2062, - "y":59799, + "x":415, + "y":59893, "width":428, - "height":60 - }, - { - "id":"bb62396fc8cfcc0d", - "type":"text", - "text":"[[inbox/체육대회|체육대회]], 훈련소주최", - "styleAttributes":{}, - "x":2062, - "y":59859, - "width":428, - "height":60 - }, - { - "id":"f4d43d8cc87c9e26", - "type":"text", - "text":"[[보급품 수령 , 분배, 반납]], 화장지,0830,박형주", - "styleAttributes":{}, - "x":2062, - "y":59919, - "width":428, - "height":60 - }, - { - "id":"33318911e40b7df8", - "type":"text", - "text":"[[보급품 수령 , 분배, 반납]], 소요파악,박형즈", - "styleAttributes":{}, - "x":2062, - "y":59979, - "width":428, - "height":64 - }, - { - "id":"a74cf86f3045e06c", - "type":"text", - "text":"[[지휘관 교체 재물조사]],7중대장(원사이재광)교체예정", - "styleAttributes":{}, - "x":2062, - "y":60043, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"8470b105289ae4ef", - "type":"text", - "text":"# 5. 22.(금)", - "styleAttributes":{}, - "x":2082, - "y":61280, - "width":428, - "height":60 - }, - { - "id":"f4e3b223d64de45c", - "type":"text", - "text":"[[30연대 26년도 예산]], 휘사장,에어커튼,이동엽", - "styleAttributes":{}, - "x":412, - "y":60450, - "width":429, - "height":73, - "color":"1" - }, - { - "id":"ada8f16516dbeddc", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진2![[부대운영진단#치장물자]]", - "styleAttributes":{}, - "x":421, - "y":60523, - "width":424, - "height":97, + "height":120, "color":"3" }, { - "id":"b02625cd15641827", + "id":"663e20b8d2fe739f", "type":"text", - "text":"[[사용자보수심의]] 준비,3분기,박관식", + "text":"~~[[안전활동유공]]., 대상자 교육대별 1명선정, 주임보고~~", "styleAttributes":{}, - "x":421, - "y":60620, - "width":426, - "height":80, - "color":"4" - }, - { - "id":"d90da80cfa8f0744", - "type":"text", - "text":"[[지휘관 교체 재물조사]] 조사표 작성", - "styleAttributes":{}, - "x":421, - "y":60700, - "width":419, - "height":60 - }, - { - "id":"fb9016eb2b67d998", - "type":"text", - "text":"# 5. 19.(화) ", - "styleAttributes":{}, - "x":838, - "y":61280, - "width":428, - "height":60 - }, - { - "id":"d391595a5c88fbd0", - "type":"text", - "text":"~~[[위생점검]], 병영식당~~", - "styleAttributes":{}, - "x":838, - "y":61460, - "width":428, - "height":60 - }, - { - "id":"349a33cd5dab5ac3", - "type":"text", - "text":"~~[[전술훈련평가]] 30연대~~", - "styleAttributes":{}, - "x":838, - "y":61340, + "x":412, + "y":59816, "width":428, "height":60, "color":"1" }, - { - "id":"6af03b71b4bef0b5", - "type":"text", - "text":"~~[[월하준비]] 추진평가회의(VTC) 1030 지원과장~~", - "styleAttributes":{}, - "x":838, - "y":61400, - "width":428, - "height":60 - }, - { - "id":"534f1176c0a623ad", - "type":"text", - "text":"# 5. 20. (수) 이발1430", - "styleAttributes":{}, - "x":1266, - "y":61280, - "width":408, - "height":60 - }, - { - "id":"5d735af937d950fb", - "type":"text", - "text":"[[보급품 수령 , 분배, 반납]], 정리", - "styleAttributes":{}, - "x":1266, - "y":61580, - "width":408, - "height":60 - }, { "id":"25b4f80305a7747d", "type":"text", @@ -10896,17 +10876,6 @@ "height":60, "color":"1" }, - { - "id":"f512276f29fdb20e", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#치장물자 실셈후 재포장 상태 확인/조치]]#", - "styleAttributes":{}, - "x":415, - "y":59893, - "width":428, - "height":120, - "color":"3" - }, { "id":"bbfb2bcc08b8bfc4", "type":"text", @@ -10951,6 +10920,49 @@ "height":133, "color":"3" }, + { + "id":"f4e3b223d64de45c", + "type":"text", + "text":"[[30연대 26년도 예산]], 휘사장,에어커튼,이동엽", + "styleAttributes":{}, + "x":412, + "y":60450, + "width":429, + "height":73, + "color":"1" + }, + { + "id":"ada8f16516dbeddc", + "type":"text", + "text":"- [ ] 부대운영진단 후속조치 추진2![[부대운영진단#치장물자]]", + "styleAttributes":{}, + "x":421, + "y":60523, + "width":424, + "height":97, + "color":"3" + }, + { + "id":"b02625cd15641827", + "type":"text", + "text":"[[사용자보수심의]] 준비,3분기,박관식", + "styleAttributes":{}, + "x":421, + "y":60620, + "width":426, + "height":80, + "color":"4" + }, + { + "id":"d90da80cfa8f0744", + "type":"text", + "text":"[[지휘관 교체 재물조사]] 조사표 작성", + "styleAttributes":{}, + "x":421, + "y":60700, + "width":419, + "height":60 + }, { "id":"8c8a3a615a00e407", "type":"text", @@ -10961,6 +10973,67 @@ "width":422, "height":60 }, + { + "id":"fb9016eb2b67d998", + "type":"text", + "text":"# 5. 19.(화) ", + "styleAttributes":{}, + "x":838, + "y":61280, + "width":428, + "height":60 + }, + { + "id":"349a33cd5dab5ac3", + "type":"text", + "text":"~~[[전술훈련평가]] 30연대~~", + "styleAttributes":{}, + "x":838, + "y":61340, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"90e8c058b27a13ab", + "type":"text", + "text":"# 5. 21.(목)", + "styleAttributes":{}, + "x":1674, + "y":61280, + "width":408, + "height":60 + }, + { + "id":"534f1176c0a623ad", + "type":"text", + "text":"# 5. 20. (수) 이발1430", + "styleAttributes":{}, + "x":1266, + "y":61280, + "width":408, + "height":60 + }, + { + "id":"4092c0c8c120a752", + "type":"text", + "text":"~~[[예방정비]], 차량, 9230호, 박승대~~", + "styleAttributes":{}, + "x":1674, + "y":61340, + "width":408, + "height":60 + }, + { + "id":"e59d7ef7c6a0b92e", + "type":"text", + "text":"[[병영생활관신축]], 90%토의 #몰라", + "styleAttributes":{}, + "x":1674, + "y":61460, + "width":408, + "height":60 + }, { "id":"4444f28e041bc74b", "type":"text", @@ -10992,119 +11065,25 @@ "height":60 }, { - "id":"1f6f4c9d95ff6612", + "id":"b3a8f2d7be36a642", "type":"text", - "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", + "text":"~~[[훈련병]] 입영, 1교~~", "styleAttributes":{}, - "x":412, - "y":59425, - "width":1239, - "height":65, - "color":"3" - }, - { - "id":"c008f948961bedd1", - "type":"text", - "text":"- [ ] 나침반,비설치형,자기식,003354972,10개\n- [ ] 나침반,자기식,비설치형,M2,1개,005606596", - "styleAttributes":{}, - "x":412, - "y":59490, - "width":1244, - "height":66, - "color":"4" - }, - { - "id":"b1cd0ffcb36c7db0", - "type":"text", - "text":"~~[[군차량 매연 측정]], 53군지단,ㅡ~~", - "styleAttributes":{}, - "x":1245, - "y":59739, - "width":408, - "height":60 - }, - { - "id":"dd5604b534ddb209", - "type":"text", - "text":"[[급식운영회의]], 5월, 1330,김낙중영옹실", - "styleAttributes":{}, - "x":1653, - "y":59739, - "width":408, - "height":60 - }, - { - "id":"5020a4baf388a507", - "type":"text", - "text":"~~[[폐자원매각대금]]철 제출, 군수과 환경담당,09시까지 제출~~", - "styleAttributes":{}, - "x":843, - "y":59816, - "width":405, - "height":60 - }, - { - "id":"663e20b8d2fe739f", - "type":"text", - "text":"~~[[안전활동유공]]., 대상자 교육대별 1명선정, 주임보고~~", - "styleAttributes":{}, - "x":412, - "y":59816, + "x":410, + "y":61460, "width":428, - "height":60, - "color":"1" - }, - { - "id":"3952c15c924eaa9f", - "type":"text", - "text":"- [ ] 체력측정", - "styleAttributes":{}, - "x":1245, - "y":59799, - "width":408, "height":60 }, { - "id":"29006030772b8796", + "id":"8470b105289ae4ef", "type":"text", - "text":"~~[[정수기]] 업체 방문,~~ ", + "text":"# 5. 22.(금)", "styleAttributes":{}, - "x":1248, - "y":59859, - "width":408, + "x":2082, + "y":61280, + "width":428, "height":60 }, - { - "id":"3917c6beca5402b8", - "type":"text", - "text":"[[26년 30연대 전술훈련평가 수검자료 정리]] ftx, 1330", - "styleAttributes":{}, - "x":1248, - "y":59919, - "width":403, - "height":61 - }, - { - "id":"9d7a0ee2341ffe2f", - "type":"text", - "text":"~~[[위생지도]] 논산시 보건소 결과 후속조치,이동엽~~", - "styleAttributes":{}, - "x":1266, - "y":61340, - "width":408, - "height":60 - }, - { - "id":"1ea626d94260a137", - "type":"text", - "text":"[[지휘관 교체 재물조사]], 한서욱", - "styleAttributes":{}, - "x":1266, - "y":61400, - "width":1244, - "height":60, - "color":"1" - }, { "id":"b0983513e81f37b9", "type":"text", @@ -11116,23 +11095,23 @@ "height":60 }, { - "id":"e59d7ef7c6a0b92e", + "id":"7d3c379bb8889603", "type":"text", - "text":"[[병영생활관신축]], 90%토의 #몰라", + "text":"[[하계재난대비계획#공문으로 작성 보고 5.22(금)]] 잭성 보고,,유재형", "styleAttributes":{}, - "x":1674, + "x":2082, "y":61460, - "width":408, + "width":428, "height":60 }, { - "id":"a50a8bc3606dfb24", + "id":"5d735af937d950fb", "type":"text", - "text":"[[대형정수기 필터교체 업체방문]]", + "text":"[[보급품 수령 , 분배, 반납]], 정리", "styleAttributes":{}, - "x":838, - "y":61520, - "width":428, + "x":1266, + "y":61580, + "width":408, "height":60 }, { @@ -11145,26 +11124,6 @@ "width":836, "height":60 }, - { - "id":"4092c0c8c120a752", - "type":"text", - "text":"~~[[예방정비]], 차량, 9230호, 박승대~~", - "styleAttributes":{}, - "x":1674, - "y":61340, - "width":408, - "height":60 - }, - { - "id":"7d3c379bb8889603", - "type":"text", - "text":"[[하계재난대비계획#공문으로 작성 보고 5.22(금)]] 잭성 보고,,유재형", - "styleAttributes":{}, - "x":2082, - "y":61460, - "width":428, - "height":60 - }, { "id":"3eaa90c95273edd6", "type":"text", @@ -11185,37 +11144,6 @@ "width":433, "height":60 }, - { - "id":"b5edac1ffa3ec8c7", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":415, - "y":62380, - "width":2095, - "height":100, - "color":"3" - }, - { - "id":"b3a8f2d7be36a642", - "type":"text", - "text":"~~[[훈련병]] 입영, 1교~~", - "styleAttributes":{}, - "x":410, - "y":61460, - "width":428, - "height":60 - }, - { - "id":"7c400176490cbdba", - "type":"text", - "text":"[[월하약품불출]]", - "styleAttributes":{}, - "x":410, - "y":61520, - "width":428, - "height":60 - }, { "id":"58e18ba78223714a", "type":"text", @@ -11236,6 +11164,67 @@ "width":403, "height":60 }, + { + "id":"7c400176490cbdba", + "type":"text", + "text":"[[월하약품불출]]", + "styleAttributes":{}, + "x":410, + "y":61520, + "width":428, + "height":60 + }, + { + "id":"1ea626d94260a137", + "type":"text", + "text":"[[지휘관 교체 재물조사]], 한서욱", + "styleAttributes":{}, + "x":1266, + "y":61400, + "width":1244, + "height":60, + "color":"1" + }, + { + "id":"9d7a0ee2341ffe2f", + "type":"text", + "text":"~~[[위생지도]] 논산시 보건소 결과 후속조치,이동엽~~", + "styleAttributes":{}, + "x":1266, + "y":61340, + "width":408, + "height":60 + }, + { + "id":"d391595a5c88fbd0", + "type":"text", + "text":"~~[[위생점검]], 병영식당~~", + "styleAttributes":{}, + "x":838, + "y":61460, + "width":428, + "height":60 + }, + { + "id":"6af03b71b4bef0b5", + "type":"text", + "text":"~~[[월하준비]] 추진평가회의(VTC) 1030 지원과장~~", + "styleAttributes":{}, + "x":838, + "y":61400, + "width":428, + "height":60 + }, + { + "id":"a50a8bc3606dfb24", + "type":"text", + "text":"[[대형정수기 필터교체 업체방문]]", + "styleAttributes":{}, + "x":838, + "y":61520, + "width":428, + "height":60 + }, { "id":"b6e52a36b055557d", "type":"text", @@ -11257,14 +11246,15 @@ "height":300 }, { - "id":"35f76c4ad9109db2", + "id":"b5edac1ffa3ec8c7", "type":"text", - "text":"# 5. 29.(금)", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", "styleAttributes":{}, - "x":2082, - "y":62680, - "width":428, - "height":60 + "x":415, + "y":62380, + "width":2095, + "height":100, + "color":"3" }, { "id":"514f3c26d33910db", @@ -11308,15 +11298,34 @@ "height":60 }, { - "id":"31e2fe7b5dd0801b", + "id":"35f76c4ad9109db2", "type":"text", - "text":"~~[[차량 2부제]] 6월 최신화,유재형~~", + "text":"# 5. 29.(금)", "styleAttributes":{}, - "x":1674, - "y":62800, - "width":408, - "height":60, - "color":"1" + "x":2082, + "y":62680, + "width":428, + "height":60 + }, + { + "id":"097ee029c0b613b6", + "type":"text", + "text":"# 5. 31. (일)[[당직근무]] ", + "styleAttributes":{}, + "x":2510, + "y":62680, + "width":428, + "height":60 + }, + { + "id":"ce199a5d6d87f992", + "type":"text", + "text":"# 5. 25. (월) 부처님오신날", + "styleAttributes":{}, + "x":410, + "y":62680, + "width":428, + "height":60 }, { "id":"c6742e18a67768a2", @@ -11329,13 +11338,13 @@ "height":60 }, { - "id":"0754e93b46e945d0", + "id":"b39bba04d11300dd", "type":"text", - "text":"[[방독면살균소독장비]] 사용현황 양식작성보고,5.29일한", + "text":"[[월단위업무#월말, 무기고 총기/대검 손질]]", "styleAttributes":{}, - "x":2082, - "y":62800, - "width":428, + "x":1674, + "y":62860, + "width":408, "height":60 }, { @@ -11349,12 +11358,33 @@ "height":60 }, { - "id":"097ee029c0b613b6", + "id":"00cc7c8a47d3233c", "type":"text", - "text":"# 5. 31. (일)[[당직근무]] ", + "text":"~~[[보급품 수령 , 분배, 반납]], 개인장구류 불출요청, 김진복~~", "styleAttributes":{}, - "x":2510, - "y":62680, + "x":838, + "y":62860, + "width":428, + "height":60 + }, + { + "id":"31e2fe7b5dd0801b", + "type":"text", + "text":"~~[[차량 2부제]] 6월 최신화,유재형~~", + "styleAttributes":{}, + "x":1674, + "y":62800, + "width":408, + "height":60, + "color":"1" + }, + { + "id":"0754e93b46e945d0", + "type":"text", + "text":"[[방독면살균소독장비]] 사용현황 양식작성보고,5.29일한", + "styleAttributes":{}, + "x":2082, + "y":62800, "width":428, "height":60 }, @@ -11378,6 +11408,36 @@ "width":1672, "height":60 }, + { + "id":"f784a8bebcc38917", + "type":"text", + "text":" [[월하준비#초안작성]]", + "styleAttributes":{}, + "x":838, + "y":62980, + "width":428, + "height":60 + }, + { + "id":"08b8a6f6acef8a04", + "type":"text", + "text":" [[월하준비#검토1, 결재]]", + "styleAttributes":{}, + "x":1674, + "y":62980, + "width":408, + "height":60 + }, + { + "id":"a698c679f1342181", + "type":"text", + "text":" [[월하준비#현황 최신화]]", + "styleAttributes":{}, + "x":1266, + "y":62980, + "width":408, + "height":60 + }, { "id":"2e626f9003b81170", "type":"text", @@ -11388,6 +11448,46 @@ "width":423, "height":60 }, + { + "id":"aff9874dc85798fa", + "type":"text", + "text":"- [x] 체력측정", + "styleAttributes":{}, + "x":838, + "y":63100, + "width":428, + "height":60 + }, + { + "id":"706c22945d3f3233", + "type":"text", + "text":"[[은닉초과재산탄약회수활동#메모 전파, 종합(7일전)]], 5월분", + "styleAttributes":{}, + "x":1266, + "y":63040, + "width":406, + "height":90 + }, + { + "id":"c3388e62c35bf34f", + "type":"text", + "text":"[[방독면살균소독장비#교육연대별 1대 설치예정]] 사용현황 양식작성보고,5.29일한", + "styleAttributes":{}, + "x":838, + "y":63160, + "width":1244, + "height":60 + }, + { + "id":"99803c74db9af33e", + "type":"text", + "text":"~~총기탄약 규정 개선지침 관련 협조토의,1330, 군수과사무실,한서욱~~", + "styleAttributes":{}, + "x":838, + "y":63220, + "width":428, + "height":60 + }, { "id":"220549ae16f59e54", "type":"text", @@ -11409,106 +11509,6 @@ "height":100, "color":"3" }, - { - "id":"2cb65f0661977c40", - "type":"text", - "text":"은닉 초과 탄약 회수활동 결과 종합", - "styleAttributes":{}, - "x":2082, - "y":63380, - "width":428, - "height":60 - }, - { - "id":"00cc7c8a47d3233c", - "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]], 개인장구류 불출요청, 김진복~~", - "styleAttributes":{}, - "x":838, - "y":62860, - "width":428, - "height":60 - }, - { - "id":"f784a8bebcc38917", - "type":"text", - "text":" [[월하준비#초안작성]]", - "styleAttributes":{}, - "x":838, - "y":62980, - "width":428, - "height":60 - }, - { - "id":"aff9874dc85798fa", - "type":"text", - "text":"- [x] 체력측정", - "styleAttributes":{}, - "x":838, - "y":63100, - "width":428, - "height":60 - }, - { - "id":"99803c74db9af33e", - "type":"text", - "text":"~~총기탄약 규정 개선지침 관련 협조토의,1330, 군수과사무실,한서욱~~", - "styleAttributes":{}, - "x":838, - "y":63220, - "width":428, - "height":60 - }, - { - "id":"b39bba04d11300dd", - "type":"text", - "text":"[[월단위업무#월말, 무기고 총기/대검 손질]]", - "styleAttributes":{}, - "x":1674, - "y":62860, - "width":408, - "height":60 - }, - { - "id":"08b8a6f6acef8a04", - "type":"text", - "text":" [[월하준비#검토1, 결재]]", - "styleAttributes":{}, - "x":1674, - "y":62980, - "width":408, - "height":60 - }, - { - "id":"a698c679f1342181", - "type":"text", - "text":" [[월하준비#현황 최신화]]", - "styleAttributes":{}, - "x":1266, - "y":62980, - "width":408, - "height":60 - }, - { - "id":"706c22945d3f3233", - "type":"text", - "text":"[[은닉초과재산탄약회수활동#메모 전파, 종합(7일전)]], 5월분", - "styleAttributes":{}, - "x":1266, - "y":63040, - "width":406, - "height":90 - }, - { - "id":"8f567cc3d939a56b", - "type":"text", - "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", - "styleAttributes":{}, - "x":838, - "y":63500, - "width":1667, - "height":60 - }, { "id":"90bf61528a887793", "type":"text", @@ -11520,54 +11520,15 @@ "height":90 }, { - "id":"e169b54f78a11635", + "id":"174c0bed598e40c2", "type":"text", - "text":"[[하계재난대비계획#메모전파, 일자,대상자(행보관,당직근무자), 보고양식,설치 참고자료 전파, 일주전전파]]", + "text":"6월 한시인가 종합보고", "styleAttributes":{}, - "x":2082, - "y":63560, - "width":428, - "height":90 - }, - { - "id":"d7dd69feb589aaa0", - "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]],이승민,1330,정비대~~", - "styleAttributes":{}, - "x":1680, - "y":63560, - "width":402, - "height":60 - }, - { - "id":"d671e992d92bb7c7", - "type":"text", - "text":"[군수계획업무 재공지]\n1. 연~~대 하계 재난대비계획 보고(공문)~~ \n ~~: 5. 26.(화)까지 보고기한~~\n * ~~미보고부대 오늘까지 보고바랍니다.~~\n - ~~27연대~~\n\n1. ~~6월 차량 2부제 제외차량 및~~\n ~~위반차량 점검결과 보고 : 5. 28. (목) 한~~\n * ~~보고완료 : 23,25,29연대~~\n ~~정보통신대,군지대대,입영심사대,~~\n ~~교지대대, 병역심사대~~\n\n1. **전반기 소방안전 FTX 실시** \n **/ 결과보고(공문) : 5. 29. (금) 한**\n\n2. **월하준비 결과(공문) : 5. 29.(금) 한**\n **(별) 6. 4(금) 주간상황평가회의시** \n **지휘보고에 포함하여 보고**\n **- 직할부대는 참모장님께 별도보고**", - "styleAttributes":{}, - "x":1680, - "y":63860, - "width":402, - "height":499 - }, - { - "id":"a0196d27e4242e2c", - "type":"text", - "text":"~~[[하계재난대비계획#공문으로 작성 보고 5.22(금)]] 잭성 보고,,유재형~~", - "styleAttributes":{}, - "x":838, - "y":63560, - "width":428, - "height":60 - }, - { - "id":"c3388e62c35bf34f", - "type":"text", - "text":"[[방독면살균소독장비#교육연대별 1대 설치예정]] 사용현황 양식작성보고,5.29일한", - "styleAttributes":{}, - "x":838, - "y":63160, - "width":1244, - "height":60 + "x":1266, + "y":63380, + "width":414, + "height":60, + "color":"1" }, { "id":"f4782cd1ca809c10", @@ -11590,15 +11551,44 @@ "height":60 }, { - "id":"174c0bed598e40c2", + "id":"2cb65f0661977c40", "type":"text", - "text":"6월 한시인가 종합보고", + "text":"은닉 초과 탄약 회수활동 결과 종합", "styleAttributes":{}, - "x":1266, + "x":2082, "y":63380, - "width":414, - "height":60, - "color":"1" + "width":428, + "height":60 + }, + { + "id":"8f567cc3d939a56b", + "type":"text", + "text":"- [ ] 26년 전반기 안전보건확보의무 이행 자율 점검 결과보고, 이동섭,~6.15", + "styleAttributes":{}, + "x":838, + "y":63500, + "width":1667, + "height":60 + }, + { + "id":"d7dd69feb589aaa0", + "type":"text", + "text":"~~[[보급품 수령 , 분배, 반납]],이승민,1330,정비대~~", + "styleAttributes":{}, + "x":1680, + "y":63560, + "width":402, + "height":60 + }, + { + "id":"a0196d27e4242e2c", + "type":"text", + "text":"~~[[하계재난대비계획#공문으로 작성 보고 5.22(금)]] 잭성 보고,,유재형~~", + "styleAttributes":{}, + "x":838, + "y":63560, + "width":428, + "height":60 }, { "id":"4c377ed2c6a24119", @@ -11610,6 +11600,16 @@ "width":408, "height":60 }, + { + "id":"e169b54f78a11635", + "type":"text", + "text":"[[하계재난대비계획#메모전파, 일자,대상자(행보관,당직근무자), 보고양식,설치 참고자료 전파, 일주전전파]]", + "styleAttributes":{}, + "x":2082, + "y":63560, + "width":428, + "height":90 + }, { "id":"29d8175238240fab", "type":"text", @@ -11621,16 +11621,6 @@ "height":60, "color":"1" }, - { - "id":"7e6f940a2caabf3a", - "type":"text", - "text":"~~[[차량 2부제]]6월 대상자 파악,보고~~", - "styleAttributes":{}, - "x":1680, - "y":63800, - "width":402, - "height":60 - }, { "id":"9ea5a03df9cacef2", "type":"text", @@ -11641,6 +11631,26 @@ "width":438, "height":60 }, + { + "id":"d671e992d92bb7c7", + "type":"text", + "text":"[군수계획업무 재공지]\n1. 연~~대 하계 재난대비계획 보고(공문)~~ \n ~~: 5. 26.(화)까지 보고기한~~\n * ~~미보고부대 오늘까지 보고바랍니다.~~\n - ~~27연대~~\n\n1. ~~6월 차량 2부제 제외차량 및~~\n ~~위반차량 점검결과 보고 : 5. 28. (목) 한~~\n * ~~보고완료 : 23,25,29연대~~\n ~~정보통신대,군지대대,입영심사대,~~\n ~~교지대대, 병역심사대~~\n\n1. **전반기 소방안전 FTX 실시** \n **/ 결과보고(공문) : 5. 29. (금) 한**\n\n2. **월하준비 결과(공문) : 5. 29.(금) 한**\n **(별) 6. 4(금) 주간상황평가회의시** \n **지휘보고에 포함하여 보고**\n **- 직할부대는 참모장님께 별도보고**", + "styleAttributes":{}, + "x":1680, + "y":63860, + "width":402, + "height":499 + }, + { + "id":"7e6f940a2caabf3a", + "type":"text", + "text":"~~[[차량 2부제]]6월 대상자 파악,보고~~", + "styleAttributes":{}, + "x":1680, + "y":63800, + "width":402, + "height":60 + }, { "id":"d98d84969091fdf4", "type":"text", @@ -11661,16 +11671,6 @@ "width":402, "height":61 }, - { - "id":"ce199a5d6d87f992", - "type":"text", - "text":"# 5. 25. (월) 부처님오신날", - "styleAttributes":{}, - "x":410, - "y":62680, - "width":428, - "height":60 - }, { "id":"6a7ec11d6024c82a", "type":"text", @@ -11692,6 +11692,66 @@ "height":60, "color":"1" }, + { + "id":"ecce97ce83181d43", + "type":"text", + "text":"# 6. 4.(목)", + "styleAttributes":{}, + "x":1694, + "y":64880, + "width":408, + "height":60 + }, + { + "id":"cfc9553527c83b68", + "type":"text", + "text":"# 6. 2.(화)", + "styleAttributes":{}, + "x":838, + "y":64880, + "width":428, + "height":60 + }, + { + "id":"ebc563daa9361c36", + "type":"text", + "text":"~~[[월하준비]] 지휘보고, 주간상황평가회의시, 연대장님~~", + "styleAttributes":{}, + "x":1694, + "y":64940, + "width":408, + "height":60 + }, + { + "id":"7de05af40151e2e2", + "type":"text", + "text":"# 6. 3.(수) 지방선거", + "styleAttributes":{}, + "x":1266, + "y":64880, + "width":428, + "height":60 + }, + { + "id":"f7fae52811cdc184", + "type":"text", + "text":"", + "styleAttributes":{}, + "x":1266, + "y":64940, + "width":428, + "height":60 + }, + { + "id":"68212c5286aec2bf", + "type":"text", + "text":"~~26 [[소방시설]] 작동기능점검 , 6.2,~~ ", + "styleAttributes":{}, + "x":838, + "y":64940, + "width":428, + "height":60 + }, { "id":"b0f873b7f0f1dadd", "type":"text", @@ -11713,6 +11773,90 @@ "height":60, "color":"1" }, + { + "id":"f265f1ed4be30a5b", + "type":"text", + "text":"영선대 협조, 26년 집중안전점검 점검표 교육", + "styleAttributes":{}, + "x":2082, + "y":64480, + "width":478, + "height":80 + }, + { + "id":"4031ebfabad4bd75", + "type":"text", + "text":"# 6.5.(금)", + "styleAttributes":{}, + "x":2102, + "y":64880, + "width":428, + "height":60 + }, + { + "id":"057aad5e05419a57", + "type":"text", + "text":"[[병영생활관 에어컨 교체소요]],메모종합", + "styleAttributes":{}, + "x":2102, + "y":65000, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"8e1ef55deeee0adf", + "type":"text", + "text":"26-5기 야전균수실무과정 교육희망자 바악보고,조태숙", + "styleAttributes":{}, + "x":2102, + "y":65060, + "width":428, + "height":60 + }, + { + "id":"e763b0dfafc15705", + "type":"text", + "text":"[[하계재난대비계획#훈련실시, 시간(?),장소(3개소), 준비물,차수벽설치,배수로점검청소]] 재난대응훈련,차수벽 설치", + "styleAttributes":{}, + "x":2102, + "y":65120, + "width":428, + "height":100, + "color":"1" + }, + { + "id":"8f256b3d3470d6d6", + "type":"text", + "text":"[[27저장화생방장비물자신뢰성평가대상품목보유현황#소량로트 지정항목]]보고", + "styleAttributes":{}, + "x":2102, + "y":65220, + "width":426, + "height":60, + "color":"1" + }, + { + "id":"e83d42d1951cfd7e", + "type":"text", + "text":"26 전반기 소방안전FTX훈련 결과보고, 연대 지휘보고에 포함", + "styleAttributes":{}, + "x":1694, + "y":65301, + "width":416, + "height":60 + }, + { + "id":"391286bf2cb6d3a5", + "type":"text", + "text":"**[[물자유지비 추가배정건의]]**", + "styleAttributes":{}, + "x":1694, + "y":65361, + "width":424, + "height":60, + "color":"1" + }, { "id":"d54bb4b918df6a22", "type":"text", @@ -11733,6 +11877,68 @@ "width":428, "height":60 }, + { + "id":"13cb2fc5e6b3e128", + "type":"text", + "text":"~~[[장비#부사관학교, 지원과 백민지 상사(958-1161,01050807779), 오세열 주무관 01088229555,]], 전환, 나침의 11개~~", + "styleAttributes":{}, + "x":838, + "y":65000, + "width":428, + "height":120 + }, + { + "id":"e13bdd11ba59b534", + "type":"text", + "text":"~~*법정 전기설비 정기검사,조볌희, 0900-1525, 식당*~~", + "styleAttributes":{}, + "x":838, + "y":65180, + "width":428, + "height":60 + }, + { + "id":"672cebba9aae152e", + "type":"text", + "text":"[[27저장화생방장비물자신뢰성평가대상품목보유현황#로트추가,사진첨부]]보고", + "styleAttributes":{}, + "x":838, + "y":65240, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"884edf3abb884b0c", + "type":"text", + "text":"~~[[보급품 수령 , 분배, 반납]],1500,9번창고, 황인찬~~", + "styleAttributes":{}, + "x":838, + "y":65300, + "width":428, + "height":60 + }, + { + "id":"1840fab210d8d15b", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":420, + "y":65421, + "width":2120, + "height":120, + "color":"3" + }, + { + "id":"eca5678754c83a1c", + "type":"text", + "text":"[[월단위업무#월말, 국방군수통합정보체계(Deliis) 전산재산 결산]]", + "styleAttributes":{"textAlign":"center"}, + "x":858, + "y":65541, + "width":1672, + "height":60 + }, { "id":"c8ef40bc2aecd326", "type":"text", @@ -11754,64 +11960,26 @@ "height":60 }, { - "id":"96cc7d815e190fcd", + "id":"c864be5af389d58f", "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]], 박형주,4번창고,1500~~", + "text":"[[대한민국 안전대전환 집중 안전점검]] 결과보고,이동섭", "styleAttributes":{}, - "x":1694, - "y":65241, - "width":408, - "height":60 - }, - { - "id":"ecce97ce83181d43", - "type":"text", - "text":"# 6. 4.(목)", - "styleAttributes":{}, - "x":1694, - "y":64880, - "width":408, - "height":60 - }, - { - "id":"7de05af40151e2e2", - "type":"text", - "text":"# 6. 3.(수) 지방선거", - "styleAttributes":{}, - "x":1266, - "y":64880, + "x":410, + "y":65300, "width":428, - "height":60 + "height":60, + "color":"1" }, { - "id":"cfc9553527c83b68", + "id":"0ffd177997e1a9d1", "type":"text", - "text":"# 6. 2.(화)", + "text":"**[[물자유지비 추가배정건의]]**", "styleAttributes":{}, - "x":838, - "y":64880, - "width":428, - "height":60 - }, - { - "id":"ebc563daa9361c36", - "type":"text", - "text":"~~[[월하준비]] 지휘보고, 주간상황평가회의시, 연대장님~~", - "styleAttributes":{}, - "x":1694, - "y":64940, - "width":408, - "height":60 - }, - { - "id":"f7fae52811cdc184", - "type":"text", - "text":"", - "styleAttributes":{}, - "x":1266, - "y":64940, - "width":428, - "height":60 + "x":414, + "y":65360, + "width":424, + "height":60, + "color":"1" }, { "id":"f551819b1745349e", @@ -11845,116 +12013,23 @@ "height":61 }, { - "id":"1840fab210d8d15b", + "id":"96cc7d815e190fcd", "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "text":"~~[[보급품 수령 , 분배, 반납]], 박형주,4번창고,1500~~", "styleAttributes":{}, - "x":420, - "y":65421, - "width":2120, - "height":120, - "color":"3" - }, - { - "id":"eca5678754c83a1c", - "type":"text", - "text":"[[월단위업무#월말, 국방군수통합정보체계(Deliis) 전산재산 결산]]", - "styleAttributes":{"textAlign":"center"}, - "x":858, - "y":65541, - "width":1672, + "x":1694, + "y":65241, + "width":408, "height":60 }, { - "id":"f265f1ed4be30a5b", + "id":"a1e2d8410bf77864", "type":"text", - "text":"영선대 협조, 26년 집중안전점검 점검표 교육", + "text":"26 전반기 소방안전FTX훈련 결과보고, 연대 지휘보고에 포함", "styleAttributes":{}, - "x":2082, - "y":64480, - "width":478, - "height":80 - }, - { - "id":"4031ebfabad4bd75", - "type":"text", - "text":"# 6.5.(금)", - "styleAttributes":{}, - "x":2102, - "y":64880, + "x":840, + "y":65360, "width":428, - "height":60 - }, - { - "id":"68212c5286aec2bf", - "type":"text", - "text":"~~26 [[소방시설]] 작동기능점검 , 6.2,~~ ", - "styleAttributes":{}, - "x":838, - "y":64940, - "width":428, - "height":60 - }, - { - "id":"057aad5e05419a57", - "type":"text", - "text":"[[병영생활관 에어컨 교체소요]],메모종합", - "styleAttributes":{}, - "x":2102, - "y":65000, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"8e1ef55deeee0adf", - "type":"text", - "text":"26-5기 야전균수실무과정 교육희망자 바악보고,조태숙", - "styleAttributes":{}, - "x":2102, - "y":65060, - "width":428, - "height":60 - }, - { - "id":"13cb2fc5e6b3e128", - "type":"text", - "text":"~~[[장비#부사관학교, 지원과 백민지 상사(958-1161,01050807779), 오세열 주무관 01088229555,]], 전환, 나침의 11개~~", - "styleAttributes":{}, - "x":838, - "y":65000, - "width":428, - "height":120 - }, - { - "id":"e13bdd11ba59b534", - "type":"text", - "text":"~~*법정 전기설비 정기검사,조볌희, 0900-1525, 식당*~~", - "styleAttributes":{}, - "x":838, - "y":65180, - "width":428, - "height":60 - }, - { - "id":"e763b0dfafc15705", - "type":"text", - "text":"[[하계재난대비계획#훈련실시, 시간(?),장소(3개소), 준비물,차수벽설치,배수로점검청소]] 재난대응훈련,차수벽 설치", - "styleAttributes":{}, - "x":2102, - "y":65120, - "width":428, - "height":100, - "color":"1" - }, - { - "id":"8f256b3d3470d6d6", - "type":"text", - "text":"[[27저장화생방장비물자신뢰성평가대상품목보유현황#소량로트 지정항목]]보고", - "styleAttributes":{}, - "x":2102, - "y":65220, - "width":426, "height":60, "color":"1" }, @@ -11969,78 +12044,14 @@ "height":60 }, { - "id":"672cebba9aae152e", + "id":"1b132f4aec5dff5d", "type":"text", - "text":"[[27저장화생방장비물자신뢰성평가대상품목보유현황#로트추가,사진첨부]]보고", + "text":"# **[[27저장화생방장비물자신뢰성평가대상품목보유현황#로트추가,사진첨부]]보고**", "styleAttributes":{}, - "x":838, - "y":65240, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"884edf3abb884b0c", - "type":"text", - "text":"~~[[보급품 수령 , 분배, 반납]],1500,9번창고, 황인찬~~", - "styleAttributes":{}, - "x":838, - "y":65300, - "width":428, - "height":60 - }, - { - "id":"c864be5af389d58f", - "type":"text", - "text":"[[대한민국 안전대전환 집중 안전점검]] 결과보고,이동섭", - "styleAttributes":{}, - "x":410, - "y":65300, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"0ffd177997e1a9d1", - "type":"text", - "text":"**[[물자유지비 추가배정건의]]**", - "styleAttributes":{}, - "x":414, - "y":65360, - "width":424, - "height":60, - "color":"1" - }, - { - "id":"a1e2d8410bf77864", - "type":"text", - "text":"26 전반기 소방안전FTX훈련 결과보고, 연대 지휘보고에 포함", - "styleAttributes":{}, - "x":840, - "y":65360, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"e83d42d1951cfd7e", - "type":"text", - "text":"26 전반기 소방안전FTX훈련 결과보고, 연대 지휘보고에 포함", - "styleAttributes":{}, - "x":1694, - "y":65301, - "width":416, - "height":60 - }, - { - "id":"391286bf2cb6d3a5", - "type":"text", - "text":"**[[물자유지비 추가배정건의]]**", - "styleAttributes":{}, - "x":1694, - "y":65361, - "width":424, - "height":60, + "x":1691, + "y":65661, + "width":411, + "height":119, "color":"1" }, { @@ -12053,17 +12064,6 @@ "width":411, "height":60 }, - { - "id":"1b132f4aec5dff5d", - "type":"text", - "text":"# **[[27저장화생방장비물자신뢰성평가대상품목보유현황#로트추가,사진첨부]]보고**", - "styleAttributes":{}, - "x":1691, - "y":65661, - "width":411, - "height":119, - "color":"1" - }, { "id":"8b89684929bd8739", "type":"text", @@ -12074,27 +12074,6 @@ "width":438, "height":60 }, - { - "id":"4b0ae497cc619d92", - "type":"text", - "text":"- [ ] [[부대운영진단]] 후속조치\n\t![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", - "styleAttributes":{}, - "x":-60, - "y":66000, - "width":438, - "height":130, - "color":"3" - }, - { - "id":"3cef08511a62070f", - "type":"text", - "text":"# 6. 8. (월)", - "styleAttributes":{}, - "x":410, - "y":66000, - "width":428, - "height":60 - }, { "id":"71c40ab01e799a84", "type":"text", @@ -12135,6 +12114,27 @@ "width":428, "height":60 }, + { + "id":"4b0ae497cc619d92", + "type":"text", + "text":"- [ ] [[부대운영진단]] 후속조치\n\t![[부대운영진단#연대 창고내 불필요 물자 반납, 불출, 소모하여 제로화]]", + "styleAttributes":{}, + "x":-60, + "y":66000, + "width":438, + "height":130, + "color":"3" + }, + { + "id":"3cef08511a62070f", + "type":"text", + "text":"# 6. 8. (월)", + "styleAttributes":{}, + "x":410, + "y":66000, + "width":428, + "height":60 + }, { "id":"ddee5f4f17143b6a", "type":"text", @@ -12146,6 +12146,28 @@ "height":60, "color":"1" }, + { + "id":"a52b1b5e7c41b62d", + "type":"text", + "text":"~~[[지휘관 교체 재물조사]],7중대장(원사이재광)교체예정~~", + "styleAttributes":{}, + "x":410, + "y":66060, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"89b4a93dd3455e81", + "type":"text", + "text":"[[inbox/위임보수|위임보수]]소요보고", + "styleAttributes":{}, + "x":2102, + "y":66060, + "width":428, + "height":60, + "color":"1" + }, { "id":"f6aec24e43a272cd", "type":"text", @@ -12156,16 +12178,6 @@ "width":426, "height":60 }, - { - "id":"e7eb60f56c94cd71", - "type":"text", - "text":"5월 폐자원매각대금 입금보고", - "styleAttributes":{}, - "x":414, - "y":66250, - "width":424, - "height":60 - }, { "id":"b9c8f38809b721aa", "type":"text", @@ -12178,14 +12190,47 @@ "color":"1" }, { - "id":"5f382e5bc2d90e0d", + "id":"e1dcfb7a6a2445dc", "type":"text", - "text":"원사진급자 신원조사", + "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", "styleAttributes":{}, - "x":410, - "y":66304, - "width":430, - "height":60 + "x":-60, + "y":66130, + "width":438, + "height":60, + "color":"3" + }, + { + "id":"814486e52dc5ca18", + "type":"text", + "text":"27년 CSRP 품목 현시간부 종합본 실무자 분들께 전파드렸습니다!\n반드시 부대별 현황 확인하시고 수정사항은 오늘까지 보고 바랍니다!", + "styleAttributes":{}, + "x":2102, + "y":66120, + "width":428, + "height":140 + }, + { + "id":"e59b7593e47c3d07", + "type":"text", + "text":"지휘관 인수인계서,군수분야 작성,~6.16,박병도", + "styleAttributes":{}, + "x":414, + "y":66180, + "width":1186, + "height":60, + "color":"1" + }, + { + "id":"3125a32910740d88", + "type":"text", + "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", + "styleAttributes":{}, + "x":-60, + "y":66190, + "width":438, + "height":60, + "color":"3" }, { "id":"30ffb35c85664cd4", @@ -12198,6 +12243,57 @@ "height":60, "color":"1" }, + { + "id":"4e6d69ea2e849c54", + "type":"text", + "text":"[[오수관로공사]], 본부중대옆~영선대 앞 도로, 신사이 #쥐소", + "styleAttributes":{}, + "x":-60, + "y":66486, + "width":438, + "height":60 + }, + { + "id":"0f961f2a59a3ed17", + "type":"text", + "text":"[[장비]] 재산정리(2,4중대)", + "styleAttributes":{}, + "x":-60, + "y":66363, + "width":438, + "height":63, + "color":"3" + }, + { + "id":"16798afedd91a4b8", + "type":"text", + "text":"[국방부 주관 군 차량사고예방교육 공지]\n\n1. 일시 : 6. 16.(화) 10:00\n2. 장소 : 광개토강당\n3. 대상 : 간부직접운전자, 운전병\n4. 교육훈련 외 열외 최소화\n\n(별) 참석대상자 종합(메모 발송완료)\n * 6. 10.(수) 14시한 보고바랍니다. ", + "styleAttributes":{}, + "x":1270, + "y":66366, + "width":424, + "height":252 + }, + { + "id":"e7eb60f56c94cd71", + "type":"text", + "text":"5월 폐자원매각대금 입금보고", + "styleAttributes":{}, + "x":414, + "y":66250, + "width":424, + "height":60 + }, + { + "id":"5f382e5bc2d90e0d", + "type":"text", + "text":"원사진급자 신원조사", + "styleAttributes":{}, + "x":410, + "y":66304, + "width":430, + "height":60 + }, { "id":"c770df59b703df5e", "type":"text", @@ -12219,60 +12315,47 @@ "height":60 }, { - "id":"e59b7593e47c3d07", + "id":"063e83d3ac98f0d3", "type":"text", - "text":"지휘관 인수인계서,군수분야 작성,~6.16,박병도", - "styleAttributes":{}, - "x":414, - "y":66180, - "width":1186, - "height":60, - "color":"1" - }, - { - "id":"89b4a93dd3455e81", - "type":"text", - "text":"[[inbox/위임보수|위임보수]]소요보고", - "styleAttributes":{}, - "x":2102, - "y":66060, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"a52b1b5e7c41b62d", - "type":"text", - "text":"~~[[지휘관 교체 재물조사]],7중대장(원사이재광)교체예정~~", - "styleAttributes":{}, - "x":410, - "y":66060, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"e1dcfb7a6a2445dc", - "type":"text", - "text":"- [ ] 26년 [[시설물 정기 자체관리 대상시설 안전점검]],박관식,~5.31", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#치장물자 실셈후 재포장 상태 확인/조치]]", "styleAttributes":{}, "x":-60, - "y":66130, + "y":66546, "width":438, - "height":60, + "height":120, "color":"3" }, { - "id":"3125a32910740d88", + "id":"2ed6f51676dd8178", "type":"text", - "text":"- [ ] 2교육대 8중대 방독면 4개 및 입고정비 완결처리,임대원,~5.11", + "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#운영용 대검 손질 및 정비]]", "styleAttributes":{}, "x":-60, - "y":66190, + "y":66666, "width":438, - "height":60, + "height":80, "color":"3" }, + { + "id":"6c7fc6dd008ac378", + "type":"text", + "text":"- [x] 3교육대통합이동정비 후속조치\n\t- [ ] 방독면 입고정비:안면부8,휴대주머니68(9중3,20,10중3,8,11중2,25,12중0,15)\n\t- [ ] k2소총:입고정비17(9중5,10중2,11중8,12중2)\n\t- [ ] 통신장비(워키토키):입고정비2(11중1,12중1)", + "styleAttributes":{}, + "x":-2180, + "y":66500, + "width":428, + "height":240 + }, + { + "id":"d659b8a96c3cfd24", + "type":"text", + "text":"[[inbox/위임보수|위임보수]],, 2분기 공사기간, 김광훈", + "styleAttributes":{}, + "x":-60, + "y":66426, + "width":438, + "height":60 + }, { "id":"82515b3a2f707069", "type":"text", @@ -12296,14 +12379,24 @@ "color":"1" }, { - "id":"16798afedd91a4b8", + "id":"9407584a989f8021", "type":"text", - "text":"[국방부 주관 군 차량사고예방교육 공지]\n\n1. 일시 : 6. 16.(화) 10:00\n2. 장소 : 광개토강당\n3. 대상 : 간부직접운전자, 운전병\n4. 교육훈련 외 열외 최소화\n\n(별) 참석대상자 종합(메모 발송완료)\n * 6. 10.(수) 14시한 보고바랍니다. ", + "text":"충성! 고생많으십니다.\n한시인가 관련 5월 결산결과 공문으로 보고 부탁드립니다.\n\n기보고 : 25,27,28,입소대,교지대\n미보고 : 23,26,29,30,군지대,지구병원", "styleAttributes":{}, - "x":1270, - "y":66366, - "width":424, - "height":252 + "x":2102, + "y":66260, + "width":428, + "height":200 + }, + { + "id":"585b5eb83489a820", + "type":"text", + "text":"- [x] 충성!\n30연대 입니다.\n30연대 공사 가능 기간 3.30.(월)부터 2개 교육대 입영해 있어 가능합니다.\n* 단 2층 손 세척장 철거 기준입니다!!", + "styleAttributes":{}, + "x":-2180, + "y":66740, + "width":428, + "height":195 }, { "id":"ce13f863efd7b970", @@ -12326,99 +12419,6 @@ "height":120, "color":"3" }, - { - "id":"814486e52dc5ca18", - "type":"text", - "text":"27년 CSRP 품목 현시간부 종합본 실무자 분들께 전파드렸습니다!\n반드시 부대별 현황 확인하시고 수정사항은 오늘까지 보고 바랍니다!", - "styleAttributes":{}, - "x":2102, - "y":66120, - "width":428, - "height":140 - }, - { - "id":"9407584a989f8021", - "type":"text", - "text":"충성! 고생많으십니다.\n한시인가 관련 5월 결산결과 공문으로 보고 부탁드립니다.\n\n기보고 : 25,27,28,입소대,교지대\n미보고 : 23,26,29,30,군지대,지구병원", - "styleAttributes":{}, - "x":2102, - "y":66260, - "width":428, - "height":200 - }, - { - "id":"6c7fc6dd008ac378", - "type":"text", - "text":"- [x] 3교육대통합이동정비 후속조치\n\t- [ ] 방독면 입고정비:안면부8,휴대주머니68(9중3,20,10중3,8,11중2,25,12중0,15)\n\t- [ ] k2소총:입고정비17(9중5,10중2,11중8,12중2)\n\t- [ ] 통신장비(워키토키):입고정비2(11중1,12중1)", - "styleAttributes":{}, - "x":-2180, - "y":66500, - "width":428, - "height":240 - }, - { - "id":"4e6d69ea2e849c54", - "type":"text", - "text":"[[오수관로공사]], 본부중대옆~영선대 앞 도로, 신사이 #쥐소", - "styleAttributes":{}, - "x":-60, - "y":66486, - "width":438, - "height":60 - }, - { - "id":"063e83d3ac98f0d3", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#치장물자 실셈후 재포장 상태 확인/조치]]", - "styleAttributes":{}, - "x":-60, - "y":66546, - "width":438, - "height":120, - "color":"3" - }, - { - "id":"0f961f2a59a3ed17", - "type":"text", - "text":"[[장비]] 재산정리(2,4중대)", - "styleAttributes":{}, - "x":-60, - "y":66363, - "width":438, - "height":63, - "color":"3" - }, - { - "id":"d659b8a96c3cfd24", - "type":"text", - "text":"[[inbox/위임보수|위임보수]],, 2분기 공사기간, 김광훈", - "styleAttributes":{}, - "x":-60, - "y":66426, - "width":438, - "height":60 - }, - { - "id":"2ed6f51676dd8178", - "type":"text", - "text":"- [ ] 부대운영진단 후속조치 추진3![[부대운영진단#부대운영진단 정식공문 후속조치내용#운영용 대검 손질 및 정비]]", - "styleAttributes":{}, - "x":-60, - "y":66666, - "width":438, - "height":80, - "color":"3" - }, - { - "id":"585b5eb83489a820", - "type":"text", - "text":"- [x] 충성!\n30연대 입니다.\n30연대 공사 가능 기간 3.30.(월)부터 2개 교육대 입영해 있어 가능합니다.\n* 단 2층 손 세척장 철거 기준입니다!!", - "styleAttributes":{}, - "x":-2180, - "y":66740, - "width":428, - "height":195 - }, { "id":"39bd6d40c2da9931", "type":"text", @@ -12440,428 +12440,792 @@ "height":90 }, { - "id":"5b63b712f1db77d7", + "id":"895331d45b61dbcf", "type":"text", - "text":"- [ ] 지역상생 급식비 집행,46백만원,장성국\n\t- [x] 1차 3.21(토)~22(일)\n\t- [ ] 2차 6.6(토)~7(일)\n\t- [ ] 3차 9.19(토)~20(일)\n\t- [ ] 4차 11.14(토)~15(일)", + "text":"방독면 살균소독장비 협조회의, 1330, 29연대 1교육대 1중대 ~~김낙중영웅실~~, 최수현, 엄민규, 신두환", "styleAttributes":{}, - "x":-3120, - "y":71515, - "width":491, - "height":200, - "color":"1" + "x":1761, + "y":68180, + "width":408, + "height":90 }, { - "id":"26a76cd52036d7b8", + "id":"58136f65d9adcb00", "type":"text", - "text":"- [ ] 제설제 보유 13개,전투물자 창고", + "text":"# 6. 19.(금) ", "styleAttributes":{}, - "x":-3120, - "y":71455, - "width":491, - "height":60 - }, - { - "id":"8c32e2f599620349", - "type":"text", - "text":"~~침낭,야전깔개 소요종합,박형주~~", - "styleAttributes":{}, - "x":454, - "y":72420, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"2ffdc1e55622e94b", - "type":"text", - "text":"~~📌수통, 수통마개 보급계획~~\n~~•일시 : 7.7(화), 15:00~~\n~~•장소 : 9번 창고~~\n~~•수량 : 보급계획 메모 참고~~\n\n~~일자 확인하시고 당일 수령가능하도록 준비 부탁드립니다!~~\n~~수통(기간장병)354, 수통(훈련병,노후교체)500, 수통마개(훈련병노후교체)900~~\n\n~~[[보급품 수령 , 분배, 반납]]~~", - "styleAttributes":{}, - "x":882, - "y":72200, - "width":428, - "height":220 - }, - { - "id":"0dc3d716e0dbedad", - "type":"text", - "text":"~~📌전파사항~~\n1. ~~방탄헬멧(부수기재 포함) 노후교체 소요 종합~~\n - ~~기존 메모 추가의견 양식으로 작성 부탁드립니다.~~\n\n1. ~~무릎, 팔꿈치보호대 노후교체 소요 종합~~\n - ~~7.3(금)에 발송한 메모 참고하셔서 의견 부탁드립니다.~~\n\n~~보고기한 : 7.10(금)한~~\n\n~~번거롭게 해드려 죄송합니다.~~\n~~기한 내 꼭 보고 부탁드립니다.~~", - "styleAttributes":{}, - "x":454, - "y":71960, - "width":428, - "height":400 - }, - { - "id":"38bc0b8f77d2832b", - "type":"text", - "text":"~~차주 화요일 연대장님께 예산집행현황 보고 예정입니다.~~\n\n군수보급관님은 사업 예산 관련해서 준비해주십시오~~", - "styleAttributes":{}, - "x":882, - "y":72080, + "x":2169, + "y":68120, "width":428, "height":60 }, { - "id":"979db11e5ad24e23", + "id":"cb6208f454d9bb35", "type":"text", - "text":"~~📝 릴호스 , 수통품목 불출계획~~\n\n• 일시: 7월 7일(화) 15:00\n• 장소: 9번창고\n\n• 협조: 물품,물량에 적합한 차량과 상하차 인원 준비부탁드리겠습니다.\n\n• 참조: 자세한 내용은 메모 참조바랍니다.\n\n특이사항발생 시 내용\n전파하도록 하겠습니다.", + "text":"# 6. 18.(목)", "styleAttributes":{}, - "x":882, - "y":72140, - "width":428, - "height":60 - }, - { - "id":"6aeb38fd4e006b29", - "type":"text", - "text":"~~냉장고납품,조태숙~~\n~~본부1,1교육1,2교1,3교2~~", - "styleAttributes":{}, - "x":1738, - "y":72080, - "width":406, - "height":60 - }, - { - "id":"3c074af877d9172a", - "type":"text", - "text":"~~27련 통신물자 소요종합, 황인찬~~", - "styleAttributes":{}, - "x":1309, - "y":72020, - "width":429, - "height":60, - "color":"1" - }, - { - "id":"a02f5f7cccdc58d3", - "type":"text", - "text":"~~방탄부숮기재 소요,박형주~~", - "styleAttributes":{}, - "x":882, - "y":72020, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"24bbfe6a6c9faf85", - "type":"text", - "text":"~~치장보호의 보윱현횐,한서욱~~", - "styleAttributes":{}, - "x":1310, - "y":71960, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"37a8221cd81a37ea", - "type":"text", - "text":"조태숙, 교관조교 휘장 소요 #취소", - "styleAttributes":{}, - "x":882, - "y":71960, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"91183b77d7a55041", - "type":"text", - "text":"# 7.8.(수) ", - "styleAttributes":{}, - "x":1311, - "y":71900, - "width":427, - "height":60 - }, - { - "id":"5d034e351a7f8955", - "type":"text", - "text":"# 7.7.(화) , ~~당직근무~~", - "styleAttributes":{}, - "x":882, - "y":71900, - "width":428, - "height":60 - }, - { - "id":"161b5145c29d03bb", - "type":"text", - "text":"~~주간예정사항 작섯,이명세~~", - "styleAttributes":{}, - "x":1738, - "y":71960, - "width":406, - "height":60 - }, - { - "id":"c8226043b2b539ec", - "type":"text", - "text":"~~공기청정기 임차소요 종합, 한승민~~", - "styleAttributes":{}, - "x":2146, - "y":72080, - "width":426, - "height":60 - }, - { - "id":"7ec6e8f286d3d4e5", - "type":"text", - "text":"~~7월 소규모 복지장비(노래방,게밈기) 복지시설 검침, 박관식~~", - "styleAttributes":{}, - "x":2146, - "y":72020, - "width":426, - "height":60 - }, - { - "id":"5fab27780bf6aecc", - "type":"text", - "text":"~~부대비품소요,황인찬~~", - "styleAttributes":{}, - "x":2146, - "y":71960, - "width":426, - "height":60, - "color":"1" - }, - { - "id":"11007bdb39c5d056", - "type":"text", - "text":"# 7.10.(금) ", - "styleAttributes":{}, - "x":2144, - "y":71900, - "width":428, - "height":60 - }, - { - "id":"99ef2644979e78d6", - "type":"text", - "text":"~~보호대 교체소요브보고,박형주~~", - "styleAttributes":{}, - "x":2146, - "y":72140, - "width":426, - "height":60, - "color":"1" - }, - { - "id":"6e8e20a13f030b70", - "type":"text", - "text":"# 7.6.(월) 이발09", - "styleAttributes":{}, - "x":454, - "y":71900, - "width":428, - "height":60 - }, - { - "id":"ca9aac52d80d17c8", - "type":"text", - "text":"~~안전사고요구현황, 이동섭,17한~~", - "styleAttributes":{}, - "x":1738, - "y":72020, + "x":1761, + "y":68120, "width":408, "height":60 }, { - "id":"bfb20b409ebcf369", + "id":"2778ad3653bfc938", "type":"text", - "text":"~~6월 유류,공드럼 결산 부탁드립니다~~\n~~금일 15:00까지 결산 확정 해주시면 감사하겠습니다~~\n~~즐거운 하루 되세요~^^~~", + "text":"차량예방정비,9130", "styleAttributes":{}, - "x":454, - "y":71620, - "width":402, + "x":2169, + "y":68180, + "width":428, "height":60 }, { - "id":"bbf76af11d219720", + "id":"9b014b8d1c4697f7", "type":"text", - "text":"# 7.9.(목) ", + "text":"# 6. 17.(수) ", "styleAttributes":{}, - "x":1738, - "y":71900, + "x":1333, + "y":68120, + "width":428, + "height":60 + }, + { + "id":"1ac343a03107025c", + "type":"text", + "text":"연대 전반기 예산회의,1500,지통실", + "styleAttributes":{}, + "x":1333, + "y":68180, + "width":428, + "height":60 + }, + { + "id":"e4e1a644df2334f0", + "type":"text", + "text":"[[통합이동정비]], 32-2,오후", + "styleAttributes":{}, + "x":477, + "y":68180, + "width":430, + "height":60 + }, + { + "id":"23a8c5720d3c6845", + "type":"text", + "text":"# 6. 16.(화)", + "styleAttributes":{}, + "x":905, + "y":68120, + "width":428, + "height":60 + }, + { + "id":"7084af66b57bd104", + "type":"text", + "text":"[[통합이동정비]], 30-3,오후", + "styleAttributes":{}, + "x":905, + "y":68180, + "width":428, + "height":60 + }, + { + "id":"e78366e7cde6a8d2", + "type":"text", + "text":"# 6. 15. (월)", + "styleAttributes":{}, + "x":477, + "y":68120, + "width":428, + "height":60 + }, + { + "id":"db1a161644755a31", + "type":"text", + "text":"전반기 안전보건 관련 의견수령 및 필요개선 조치 의견종합", + "styleAttributes":{}, + "x":2169, + "y":68240, + "width":428, + "height":60 + }, + { + "id":"f04c4d80d5e28112", + "type":"text", + "text":"~~내일 주간예정사항토의는 참모부만 참석하시면 되겠습니다.~~", + "styleAttributes":{}, + "x":2169, + "y":68300, + "width":428, + "height":90 + }, + { + "id":"ba745f6b9121db17", + "type":"text", + "text":"3분기 사용자보수비 사용계획 심의,1000,각보급대 행복관", + "styleAttributes":{}, + "x":1761, + "y":68270, "width":408, "height":60 }, { - "id":"d98141c4c2562b0b", + "id":"19cc27710d3175fe", "type":"text", - "text":"~~1호기 보일러 섹션 중에 6개 사용불가(열을먹엇다 파ㅡㄴ)교체 필요,하나에 800만원,25연대도 파논, 4개가지고오고, 부족 2개 긴급위밈보수~~", + "text":"Dellis 상 총기류 재산현횐ㅇ 오류 확인보고,한서욱\n총번덮어씌우기", "styleAttributes":{}, - "x":2143, - "y":72200, - "width":429, - "height":220, - "color":"1" - }, - { - "id":"e421092f772fb888", - "type":"text", - "text":"~~가로등 3개 후속조치 확인, 이동혁~~", - "styleAttributes":{}, - "x":454, - "y":71560, - "width":402, - "height":60 - }, - { - "id":"1384231393b4a525", - "type":"text", - "text":"~~(별) 전반기 소방시설 자체점검~~\n ~~실시결과 보고서~~\n ~~오늘 오전 중 제출바랍니다.~~\n* ~~제출완료 : 28연대, 교지대대,~~\n ~~입영심사대, 지구병원~~", - "styleAttributes":{}, - "x":454, - "y":71370, - "width":402, - "height":190 - }, - { - "id":"f4fdcdd1019cde60", - "type":"text", - "text":"늄침대 소요,황인찬", - "styleAttributes":{}, - "x":2146, - "y":71400, - "width":428, + "x":907, + "y":68300, + "width":440, "height":60, "color":"1" }, { - "id":"c1d8069b4a3b779d", + "id":"48345e7a078103e0", "type":"text", - "text":"2군기 작전지원능력 평가서 작성,한서욱,1300한", + "text":"<긴급사항 > \n - 23.27, 30연대 민영식당 종사자 \n 간담회 실시 관련하여 \n 언제 했는지 일자랑 조치 결과 \n 메일로 보내 주세요 ", "styleAttributes":{}, - "x":2146, - "y":71340, - "width":454, - "height":60, - "color":"1" + "x":1333, + "y":68240, + "width":428, + "height":180 }, { - "id":"81b3e6a33b9d609c", + "id":"7bc06b179297e8df", "type":"text", - "text":"영선대, 헬스장 칸막이 철거 신청", + "text":"발전기 기술검사,14001430,7급임헌준", "styleAttributes":{}, - "x":454, - "y":71310, - "width":402, + "x":907, + "y":68240, + "width":426, "height":60 }, { - "id":"e24b67216a5d3dcc", + "id":"42413c6f8bd6e2f1", "type":"text", - "text":"7월 안전점검의날 실시,", + "text":"통신장비예방정비,p999k", "styleAttributes":{}, - "x":2146, - "y":71280, + "x":477, + "y":68240, "width":428, "height":60 }, { - "id":"0bf7579ea26f53b0", + "id":"8f0115f53f67edd5", "type":"text", - "text":"편성시효 물자 조치,조태숙", + "text":"[국방부 주관 군 차량사고예방교육 공지]\n\n1. 일시 : 6. 16.(화) 10:00\n2. 장소 : 광개토강당\n3. 대상 : 간부직접운전자, 운전병\n4. 교육훈련 외 열외 최소화\n\n(별) 참석대상자 종합(메모 발송완료)\n * 6. 10.(수) 14시한 보고바랍니다. ", "styleAttributes":{}, - "x":454, - "y":71250, - "width":402, - "height":60, - "color":"1" + "x":907, + "y":68360, + "width":426, + "height":200 }, { - "id":"832fd17c72533517", + "id":"9ea0cff6b6adc463", "type":"text", - "text":"체럭단련장 리오델링\n1.업체\n\t- 페인트, 거울 작업\n연대-자체\n\t바닥재, 벽지제거\n1.거울설치\n\t1. 가벽 설치시 보강재 필요\n\t\t1. 바닥에 앙카볼트 작업필요(10cm)\n\t2. 콘크리트 벽에 설치시 벽지 제거(연대자체)\n2. 7.3일한 작업완료(벽지제거, 나부물자 이동)\n천장작업(필요?)\n\n최종제안\n1.콘크리트 벽에 12개 거울() 설치\n2.가벽은 석고보드설치, 페인트", + "text":"~~3분기 사용자보수비 소요 심의 자료종합~~", "styleAttributes":{}, - "x":2146, - "y":70845, - "width":428, - "height":435 - }, - { - "id":"df47b8a8cef5f52e", - "type":"text", - "text":"[[장비]], 폐처리 1교육대", - "styleAttributes":{}, - "x":882, - "y":71190, - "width":429, + "x":1761, + "y":68330, + "width":408, "height":60 }, { - "id":"cef6e3a117e0db84", + "id":"1767f9b9b2a18c01", "type":"text", - "text":"~~방독면 살균 소독장비 설치,0900-1100,신상이~~", + "text":"[[소방점검 결과 후속조치]],유방기", "styleAttributes":{}, - "x":454, - "y":71190, - "width":402, + "x":1333, + "y":68420, + "width":428, "height":60 }, { - "id":"ff3c8beeb2e27fa3", + "id":"8e8d964f63fc0ad8", "type":"text", - "text":"- [ ] 우리연대 구형 침대 전량 교체예정(9월경)\n* 육군 전체물량을 우리쪽으로 불줄예정\n* 조립체가 아니라 침대셋트입니다.(참고로만 알고 계세요.)", + "text":"~~오늘은 6월 사이버보안 진단의 날 행시입니다. 아래와 같이 개인 보안조치 해주시기바랍니다.~~\n1. ~~호랑이 3마리 잡기~~\n2. ~~바이러스 정밀점검~~ \n3. ~~개인보안일일 결산~~\n4. ~~간부 보안규정평가~~\n\n~~훈련소 보안점검간 행사당일 바이러스 정밀점검이 안되어 있는곳이 많았습니다. 관심갖고 빠짐없이 모든pc 진행해주시기 바랍니다.~~\n\n~~좋은하루 되십시요 충성!~~", "styleAttributes":{}, - "x":-960, - "y":73225, - "width":428, - "height":165 + "x":1761, + "y":68390, + "width":408, + "height":250 }, { - "id":"13232148bbb26330", + "id":"da7b2d3bcf992f79", "type":"text", - "text":"- [ ] 2교육대 방독면 폐처리 정비의뢰,강재구\n\t- [ ] 전산상 반납후 전화요청\n\t- [ ] 2교육대 방독면 총 131개 입니다..!\n\t\t- [ ] 5중대 - 총 22개\n\t\t중좌 17개\n\t\t대좌 2개\n\t\t중우 3개\n\t\t\n\t\t- [ ] 6중대 - 총 32개\n\t\t소좌 3개\n\t\t중좌 21개\n\t\t대좌 8개\n\t\t\n\t\t- [ ] 7중대 - 총 65개\n\t\t중좌 61개\n\t\t대좌 4개\n\t\t\n\t\t- [ ] 8중대 - 총 12개\n\t\t중좌 8개\n\t\t중우 4개", + "text":"~~행보관님 총기 전산재산 및 총번 넘겼습니다 확인해주시고 수입완결 부탁드립니다!~~", "styleAttributes":{}, - "x":-960, - "y":73516, + "x":2169, + "y":68390, "width":428, - "height":510, - "color":"1" + "height":90 }, { - "id":"a52417529367df33", + "id":"5bafd5f1f3aeeb22", "type":"text", - "text":"- [ ] 장비관리부대장 임무\n\t1. ", + "text":"사용자보수비 사용겨획보고,식당발전기,김미화", "styleAttributes":{}, - "x":-960, - "y":73390, + "x":1333, + "y":68480, "width":428, - "height":110 + "height":60 }, { - "id":"00a3d07bc3453f39", + "id":"f48a360feb76e703", "type":"text", - "text":"- [ ] 구형방상외피 추가지급, 1교 916. 2교 916 3쿄 426", + "text":"~~토요일 우천 예보에 따라~~\n~~육본 상황전문이 하달되어~~\n~~메몹보고로 전파했습니다.~~\n~~(별) 각 부대는 오늘 13시 한 조치하고~~\n ~~아래 양식에 맞춰 보고바랍니다~~\n1. ~~주둔지 배수체계 기능 발휘 확인, 점검~~\n * ~~배수로, 수문 등~~\n~~2.[[재난대책]]본부 운영 준비~~\n ~~(재난대책본부 인원 사전 편성)~~\n2. ~~위험지역 접근근미 표식 설치 등~~\n ~~피해예방 및 안전대책 강구~~\n\n~~1,3번 확인하시고 의견부탁드립니다~~", "styleAttributes":{}, - "x":-960, - "y":73145, + "x":2169, + "y":68480, "width":428, + "height":160 + }, + { + "id":"4dc4407eb193dcdb", + "type":"text", + "text":"전반기 자체 안전진단 결과보고,이동섭, ~~해빙기~~,육지부대후속조치,~~대한민국~~,[[안전보건확보의무이행자울점검결과]]", + "styleAttributes":{}, + "x":1333, + "y":68540, + "width":428, + "height":100 + }, + { + "id":"7ccaf2bccec2490e", + "type":"text", + "text":"담당관님! 건전지 수령 다음주 화요일 10:20입니당~~", + "styleAttributes":{}, + "x":907, + "y":68560, + "width":426, "height":80 }, { - "id":"a700daaea885d709", + "id":"bcc0dcbb57508a25", "type":"text", - "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.성인지 원격교육\n\n신청하시길 바랍니다~", + "text":"26년 병영생활관 에어컨 설치를 위한 세부자료 종합, 조대숙,~6.17", "styleAttributes":{}, - "x":-960, - "y":73015, + "x":907, + "y":68700, + "width":854, + "height":60 + }, + { + "id":"e71c5a2a443c3444", + "type":"text", + "text":"26년 후반기 국가기술자격검정 원서접수,~7.1 1800, 지게차기능사,전기기능사,굴삭기기능사", + "styleAttributes":{}, + "x":907, + "y":68640, + "width":1690, + "height":60 + }, + { + "id":"e242a2c19552b305", + "type":"text", + "text":"전반기 안전보건 자울 점검 결과 보고 제출,~6.24,이동섭", + "styleAttributes":{}, + "x":907, + "y":68760, + "width":1690, + "height":60 + }, + { + "id":"c4c99aa9bc8972b0", + "type":"text", + "text":"[[민간워탁급식 현안업무 토의 결과 후속조치]]", + "styleAttributes":{}, + "x":2169, + "y":69060, "width":428, - "height":130, + "height":60 + }, + { + "id":"ca417a18f51d80d3", + "type":"text", + "text":"~~배출신병 도시락 불출 현장 확인~~", + "styleAttributes":{}, + "x":1761, + "y":69000, + "width":408, + "height":60 + }, + { + "id":"e6223d1296d1ac90", + "type":"text", + "text":"~~인증서 발급 공문신청~~", + "styleAttributes":{}, + "x":2169, + "y":69000, + "width":428, + "height":60 + }, + { + "id":"68f313efd322761d", + "type":"text", + "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", + "styleAttributes":{}, + "x":477, + "y":68880, + "width":2120, + "height":120, "color":"3" }, { - "id":"e96c8048f57d504a", + "id":"e1545b62f99de9f2", "type":"text", - "text":"- [ ] 11중대, 핸드토키,1대(cpl10215),정비불가,불용신청,조희철, 연말에 폐처리 요청", + "text":"~~1교육대 캐노피천막 구매 재산등대 요청,운영비~~", "styleAttributes":{}, - "x":-960, - "y":72935, + "x":1761, + "y":69180, + "width":699, + "height":60 + }, + { + "id":"f936709ab2652e3c", + "type":"text", + "text":"[[30연대 26년도 예산]], 환경예산 반기 예산배정", + "styleAttributes":{}, + "x":1761, + "y":69120, + "width":408, + "height":60 + }, + { + "id":"dfbaee8c31ed31b4", + "type":"text", + "text":"~~전입신병 총기,대검 21정 수령, 15시,보급대 실내무기고,이승민~~ [[장비]]", + "styleAttributes":{}, + "x":1752, + "y":69060, + "width":417, + "height":60 + }, + { + "id":"d9c0d3d8d6c28acd", + "type":"text", + "text":"5월 급식비 결과보고", + "styleAttributes":{}, + "x":907, + "y":68820, + "width":426, + "height":60 + }, + { + "id":"283da393ef7564e2", + "type":"text", + "text":"# 6. 26.(금) ", + "styleAttributes":{}, + "x":2143, + "y":69520, "width":428, - "height":80 + "height":60 + }, + { + "id":"9946039e6adc8f5f", + "type":"text", + "text":"# 6. 22. (월)", + "styleAttributes":{}, + "x":451, + "y":69520, + "width":428, + "height":60 + }, + { + "id":"be9a471813cd2248", + "type":"text", + "text":"# 6. 24.(수) ", + "styleAttributes":{}, + "x":1307, + "y":69520, + "width":428, + "height":60 + }, + { + "id":"cb5d324a861d414a", + "type":"text", + "text":"# 6. 25.(목)", + "styleAttributes":{}, + "x":1735, + "y":69520, + "width":408, + "height":60 + }, + { + "id":"1ed41330b327f773", + "type":"text", + "text":"~~26년 7월 간부 영내급식 한시인가 소요 종합,장성국~~", + "styleAttributes":{}, + "x":2143, + "y":69580, + "width":428, + "height":60 + }, + { + "id":"56b8945cf0b36f3b", + "type":"text", + "text":"~~27년 주방세제류 조달소요종합,황인찬~~", + "styleAttributes":{}, + "x":1307, + "y":69580, + "width":434, + "height":60 + }, + { + "id":"af8cf3610898fdb8", + "type":"text", + "text":"[[하계재난대비계획]] 추진병가회의, 지휘관,지원과장,군수관계관 #취소", + "styleAttributes":{}, + "x":1735, + "y":69580, + "width":408, + "height":60 + }, + { + "id":"f7643eb4a228fdac", + "type":"text", + "text":"[[inbox/위임보수|위임보수]] 3분기 심의,소군수과", + "styleAttributes":{}, + "x":881, + "y":69580, + "width":426, + "height":60 + }, + { + "id":"11df567d6109151c", + "type":"text", + "text":"6월 은닉 및 재산초과 탄약 회수활동,~26$.한서욱", + "styleAttributes":{}, + "x":451, + "y":69580, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"cffe3d394f901838", + "type":"text", + "text":"~~차량정비,3508-1~~", + "styleAttributes":{}, + "x":2143, + "y":69760, + "width":428, + "height":60 + }, + { + "id":"ca73c92320f483b3", + "type":"text", + "text":"~~소형냉장고 소요파악.$조대숙~~", + "styleAttributes":{}, + "x":2143, + "y":69820, + "width":428, + "height":60 + }, + { + "id":"ea9592000ccf72f7", + "type":"text", + "text":"~~연대장님 탄약고 점검~~", + "styleAttributes":{}, + "x":2143, + "y":69880, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"5cc81ff1f7753506", + "type":"text", + "text":"~~성인지교육,0830,1010,최양업교육관 바오로실~~", + "styleAttributes":{}, + "x":2143, + "y":69640, + "width":428, + "height":60 + }, + { + "id":"ef9a9fad5090b1d5", + "type":"text", + "text":"~~성인지교육 신청~~", + "styleAttributes":{}, + "x":1735, + "y":69640, + "width":408, + "height":60 + }, + { + "id":"14fd79a1e0eb7133", + "type":"text", + "text":"[[26년 전반기 소방점검 실시결과 보고]],유방기,유재형", + "styleAttributes":{}, + "x":1307, + "y":69910, + "width":428, + "height":90 + }, + { + "id":"23b518f4373f0d06", + "type":"text", + "text":"~~담당관님 업체 연락처입니다.~~\n~~010-2345-2656~~\n\n~~입영심사대 교체는 10시쯤 이뤄질 예정이고 끝나는 시간 보고 30연대 순서 조율할게요!~~", + "styleAttributes":{}, + "x":1307, + "y":69760, + "width":434, + "height":150 + }, + { + "id":"222d14053031469f", + "type":"text", + "text":"[[장비]], k2소총 3중대 반납(372923)", + "styleAttributes":{}, + "x":1311, + "y":69700, + "width":409, + "height":60 + }, + { + "id":"4b9230487ce38c3b", + "type":"text", + "text":"~~26년 라돈 저감시설 필터교체,34개,신상이,1교육대~~", + "styleAttributes":{}, + "x":1307, + "y":69640, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"deec07fcca5c6faf", + "type":"text", + "text":"[[통합이동정비]], 30-1,오전", + "styleAttributes":{}, + "x":451, + "y":69640, + "width":428, + "height":60 + }, + { + "id":"6040486caaa64772", + "type":"text", + "text":"# 6. 23.(화)", + "styleAttributes":{}, + "x":879, + "y":69520, + "width":428, + "height":60 + }, + { + "id":"3ea5fdf01d72ec96", + "type":"text", + "text":"~~차량정비,3502~~", + "styleAttributes":{}, + "x":1741, + "y":69760, + "width":402, + "height":60 + }, + { + "id":"983c4af27651a40e", + "type":"text", + "text":"차량예방정비,3130", + "styleAttributes":{}, + "x":879, + "y":69760, + "width":428, + "height":60 + }, + { + "id":"3a5dddbe8c6fc0d4", + "type":"text", + "text":"훈련소 2분기 [[장비탄약 관리실태 현장확인 및 지도]],한서욱", + "styleAttributes":{}, + "x":451, + "y":69760, + "width":430, + "height":60, + "color":"1" + }, + { + "id":"08dc40bdd2a0c32b", + "type":"text", + "text":"차량예방정비,1330", + "styleAttributes":{}, + "x":451, + "y":69820, + "width":428, + "height":60 + }, + { + "id":"77fe7d8e87c223a9", + "type":"text", + "text":"[26년 전반기 치장물자 결산 관련]\n\n~~메모활용 26년 치장물장 결산 양식 및 결산방법을 전파하였습니다.~~\n~~6.25일한 댓글회신 부탁드립니다.~~\n\n~~평시편제가 전시편제보다 많은 직할부대도 붙임문서 작성부탁드립니다.~~\n~~(현황 종합을 위한 군지사 요청사항임)~~", + "styleAttributes":{}, + "x":1735, + "y":69820, + "width":408, + "height":180, + "color":"1" + }, + { + "id":"d8cb08dbd73ec930", + "type":"text", + "text":"소방점검결과 수령일\n6.25(목)입니다.\n메모보고 6.24(목)으로\n오기되어 있어 정정전파합니다", + "styleAttributes":{}, + "x":1741, + "y":69700, + "width":402, + "height":60 + }, + { + "id":"1896b12fcb65ac92", + "type":"text", + "text":"~~[[하계재난대비계획#하계 재난대비 추진평가회의 6.25(목) 주간 상황평가회의시]] 잭성 보고,,유재형~~", + "styleAttributes":{}, + "x":465, + "y":70000, + "width":1692, + "height":60 + }, + { + "id":"3d055333eec9d59e", + "type":"text", + "text":"7월한시인가 소요종합보고,장성국", + "styleAttributes":{}, + "x":451, + "y":69880, + "width":430, + "height":60 + }, + { + "id":"1bc51ae411f9a33b", + "type":"text", + "text":"[[연대장님 이취임식]],30연대,잠정", + "styleAttributes":{}, + "x":881, + "y":69640, + "width":430, + "height":60 + }, + { + "id":"699e02e6ffbae7e7", + "type":"text", + "text":"국가자격증 원서접수,~7.1,김평회", + "styleAttributes":{}, + "x":2140, + "y":69940, + "width":431, + "height":60 + }, + { + "id":"2219aa22178267da", + "type":"text", + "text":"![[1782278762895.jpg]]", + "styleAttributes":{}, + "x":1311, + "y":70060, + "width":424, + "height":440 + }, + { + "id":"0257072ce3614948", + "type":"text", + "text":"# 7.1.(수) 당직근무", + "styleAttributes":{}, + "x":1310, + "y":70720, + "width":428, + "height":60 + }, + { + "id":"cea1514a80191294", + "type":"text", + "text":"배출용 생수 신청,매달\n도시락업체 생수불출 야하면", + "styleAttributes":{}, + "x":1310, + "y":70840, + "width":428, + "height":60 + }, + { + "id":"2e74e772591d7ed4", + "type":"text", + "text":"# 6. 29. (월)", + "styleAttributes":{}, + "x":454, + "y":70720, + "width":428, + "height":60 + }, + { + "id":"9b4d5e8f19406e04", + "type":"text", + "text":"# 6. 30.(화)", + "styleAttributes":{}, + "x":882, + "y":70720, + "width":428, + "height":60 + }, + { + "id":"24f2b9e78aa1909b", + "type":"text", + "text":"~~차량정비,3508-3~~", + "styleAttributes":{}, + "x":882, + "y":70840, + "width":428, + "height":60 + }, + { + "id":"a15de80986cccc32", + "type":"text", + "text":"[[하계재난대비계획#부대별 하계 재난 대웅흔련 6월한 실시후 결과보고(공문)]] 잭성 보고,,유재형", + "styleAttributes":{}, + "x":454, + "y":70780, + "width":1692, + "height":60 + }, + { + "id":"da51154d4033728b", + "type":"text", + "text":"~~26년 2차 볘개속 보급,황인찬, 1330, 2750개, [[보급품 수령 , 분배, 반납]]~~", + "styleAttributes":{}, + "x":882, + "y":70900, + "width":429, + "height":60 + }, + { + "id":"3a8733dedcb5eefc", + "type":"text", + "text":"27년 포장재료 11종 소요 종합,황인찬", + "styleAttributes":{}, + "x":1311, + "y":70900, + "width":427, + "height":60, + "color":"1" + }, + { + "id":"da4e741947dcc2d7", + "type":"text", + "text":"~~차량정비,3508-2~~", + "styleAttributes":{}, + "x":454, + "y":70840, + "width":402, + "height":60 + }, + { + "id":"2346bc1ecd76e5da", + "type":"text", + "text":"~~<전파드립니다 >~~\n~~다음주 월 전반기 안전관리 협의체 토의 관련 하여 전파드립니다~~ \n~~주관 : 참모장~~\n~~시간 : 11시예정 1000-1100~~\n~~장소 : 김낙중영웅실~~ \n~~대상 : 군수과, 영선대~~ \n ~~연대 및 직할대 과장 또는~~ \n ~~업무 추진 담당자~~ \n~~주제 : 안전진단 분야 중 미추진과제~~ \n 1. ~~상급부대 수검시 식별된 과제 중~~ \n ~~미 추진과제~~ \n 2. ~~안전실 부대별 진단시 식별된~~ \n ~~훈련소 추진과제~~ \n * ~~연대자체 추진과제 제외~~\n3. ~~연대 자체 점검( 해빙기,~~ \n ~~대한민국 등) 시 식별된 과제~~ \n\n~~*추진예정 과제에 대한 후속조치~~ \n ~~계획은 부대별 발표(1분이내)~~ \n\n~~오늘 각 부대별 추진과제 등 전파~~\n~~드리니 누락이나 추가여부 확인~~\n~~해주시고 ⭐️25(목)요일⭐️까지 의견으로 주시면 최종 종합하고 회의자료 탑재하겠습니다~~ ", + "styleAttributes":{}, + "x":454, + "y":70900, + "width":402, + "height":230 }, { "id":"9699a3c634b2e2de", @@ -12894,16 +13258,6 @@ "width":260, "height":60 }, - { - "id":"2346bc1ecd76e5da", - "type":"text", - "text":"~~<전파드립니다 >~~\n~~다음주 월 전반기 안전관리 협의체 토의 관련 하여 전파드립니다~~ \n~~주관 : 참모장~~\n~~시간 : 11시예정 1000-1100~~\n~~장소 : 김낙중영웅실~~ \n~~대상 : 군수과, 영선대~~ \n ~~연대 및 직할대 과장 또는~~ \n ~~업무 추진 담당자~~ \n~~주제 : 안전진단 분야 중 미추진과제~~ \n 1. ~~상급부대 수검시 식별된 과제 중~~ \n ~~미 추진과제~~ \n 2. ~~안전실 부대별 진단시 식별된~~ \n ~~훈련소 추진과제~~ \n * ~~연대자체 추진과제 제외~~\n3. ~~연대 자체 점검( 해빙기,~~ \n ~~대한민국 등) 시 식별된 과제~~ \n\n~~*추진예정 과제에 대한 후속조치~~ \n ~~계획은 부대별 발표(1분이내)~~ \n\n~~오늘 각 부대별 추진과제 등 전파~~\n~~드리니 누락이나 추가여부 확인~~\n~~해주시고 ⭐️25(목)요일⭐️까지 의견으로 주시면 최종 종합하고 회의자료 탑재하겠습니다~~ ", - "styleAttributes":{}, - "x":454, - "y":70900, - "width":402, - "height":230 - }, { "id":"ea22448119839dde", "type":"text", @@ -12935,6 +13289,186 @@ "width":408, "height":60 }, + { + "id":"cef6e3a117e0db84", + "type":"text", + "text":"~~방독면 살균 소독장비 설치,0900-1100,신상이~~", + "styleAttributes":{}, + "x":454, + "y":71190, + "width":402, + "height":60 + }, + { + "id":"df47b8a8cef5f52e", + "type":"text", + "text":"[[장비]], 폐처리 1교육대", + "styleAttributes":{}, + "x":882, + "y":71190, + "width":429, + "height":60 + }, + { + "id":"1ab492821581257a", + "type":"text", + "text":"# 7.3.(금) ", + "styleAttributes":{}, + "x":2146, + "y":70720, + "width":428, + "height":60 + }, + { + "id":"c0b69dc8945b7748", + "type":"text", + "text":"# 7.2.(목)", + "styleAttributes":{}, + "x":1738, + "y":70720, + "width":408, + "height":60 + }, + { + "id":"1384231393b4a525", + "type":"text", + "text":"~~(별) 전반기 소방시설 자체점검~~\n ~~실시결과 보고서~~\n ~~오늘 오전 중 제출바랍니다.~~\n* ~~제출완료 : 28연대, 교지대대,~~\n ~~입영심사대, 지구병원~~", + "styleAttributes":{}, + "x":454, + "y":71370, + "width":402, + "height":190 + }, + { + "id":"81b3e6a33b9d609c", + "type":"text", + "text":"영선대, 헬스장 칸막이 철거 신청", + "styleAttributes":{}, + "x":454, + "y":71310, + "width":402, + "height":60 + }, + { + "id":"0bf7579ea26f53b0", + "type":"text", + "text":"편성시효 물자 조치,조태숙", + "styleAttributes":{}, + "x":454, + "y":71250, + "width":402, + "height":60, + "color":"1" + }, + { + "id":"832fd17c72533517", + "type":"text", + "text":"체럭단련장 리오델링\n1.업체\n\t- 페인트, 거울 작업\n연대-자체\n\t바닥재, 벽지제거\n1.거울설치\n\t1. 가벽 설치시 보강재 필요\n\t\t1. 바닥에 앙카볼트 작업필요(10cm)\n\t2. 콘크리트 벽에 설치시 벽지 제거(연대자체)\n2. 7.3일한 작업완료(벽지제거, 나부물자 이동)\n천장작업(필요?)\n\n최종제안\n1.콘크리트 벽에 12개 거울() 설치\n2.가벽은 석고보드설치, 페인트", + "styleAttributes":{}, + "x":2146, + "y":70845, + "width":428, + "height":435 + }, + { + "id":"8202a4f4395a6d21", + "type":"text", + "text":"27년 피피박스등 행정비품에대한 소요 종합,황인찬", + "styleAttributes":{}, + "x":1738, + "y":70840, + "width":408, + "height":60, + "color":"1" + }, + { + "id":"2adf52ec0958194a", + "type":"text", + "text":"무릎,팔꿈치 보호대 교체소요 파악,박형주", + "styleAttributes":{}, + "x":2146, + "y":70780, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"1f69a2e097c8c2b2", + "type":"text", + "text":"27년 기타유지물자 소요종합,황인찬", + "styleAttributes":{}, + "x":1738, + "y":70900, + "width":408, + "height":60, + "color":"1" + }, + { + "id":"e24b67216a5d3dcc", + "type":"text", + "text":"7월 안전점검의날 실시,", + "styleAttributes":{}, + "x":2146, + "y":71280, + "width":428, + "height":60 + }, + { + "id":"4fa9f1831341f6d3", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", + "styleAttributes":{}, + "x":-1313, + "y":70825, + "width":620, + "height":75, + "color":"1" + }, + {"id":"a8aeb8498dd3bfb4","type":"file","file":"대검 현황.md","x":-1773,"y":70820,"width":460,"height":960}, + { + "id":"b20b938fa91825f1", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#**전교육대 기간병 물자없다.**]]", + "styleAttributes":{}, + "x":-1313, + "y":70900, + "width":620, + "height":75, + "color":"1" + }, + { + "id":"9b3e6880e4ce7597", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#연대 전체 방독면 두건에 개인주기]]", + "styleAttributes":{}, + "x":-1313, + "y":70975, + "width":620, + "height":75, + "color":"1" + }, + { + "id":"6dfe2fedb8d13dfb", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 물자분류 A형 , 목룍표제작]]", + "styleAttributes":{}, + "x":-1313, + "y":71053, + "width":620, + "height":75, + "color":"1" + }, + { + "id":"4abea30dab303e41", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#1교육대 물자분류 A형, 목록표제작]]", + "styleAttributes":{}, + "x":-1313, + "y":71128, + "width":620, + "height":75, + "color":"1" + }, { "id":"63c6112834e79f8c", "type":"text", @@ -12946,6 +13480,61 @@ "height":75, "color":"1" }, + { + "id":"c56a63ddd55f34ec", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#탄약은 경계태세 1단계 일때 분배한다.]]", + "styleAttributes":{}, + "x":-1313, + "y":71278, + "width":620, + "height":75, + "color":"1" + }, + { + "id":"93ba3ec15627223d", + "type":"text", + "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#**총기전환계획과 물자인수인계 계획은 평가시 무조건 본다.**]]", + "styleAttributes":{}, + "x":-1313, + "y":71203, + "width":620, + "height":75, + "color":"1" + }, + { + "id":"c1d8069b4a3b779d", + "type":"text", + "text":"2군기 작전지원능력 평가서 작성,한서욱,1300한", + "styleAttributes":{}, + "x":2146, + "y":71340, + "width":454, + "height":60, + "color":"1" + }, + { + "id":"3db6a78f47c801b5", + "type":"text", + "text":"- [ ] 1분기 장비 탄약 관리실태 현장 확인 결과 조치해야할 사항\n\t- [ ] 관련근거\n\t\t- [ ] 육규 428 군수품 및 재산출납관리 규정\n\t\t- [ ] 유규 465 탄약관리규정\n\t\t- [ ] 육규 471 장비관리규정\n\t\t- [ ] 육규 742 화생방 장비 물자 관리규정\n\t- [ ] 은닉탄 회수함 보완\n\t- [x] 저장화생방 장비물자 관리제웟표 최신화\n\t- [ ] 부대행정압무 총기결산, 전산대장 내용 누락\n\t- [x] 총기관리책임관 정(교육대장,) cctv 확인\n\t- [x] 정비지시서 미완결 처리(7일이내)", + "styleAttributes":{}, + "x":-2201, + "y":71330, + "width":428, + "height":450, + "color":"1" + }, + { + "id":"f4fdcdd1019cde60", + "type":"text", + "text":"늄침대 소요,황인찬", + "styleAttributes":{}, + "x":2146, + "y":71400, + "width":428, + "height":60, + "color":"1" + }, { "id":"1c7a43ac3db7858e", "type":"text", @@ -12957,6 +13546,335 @@ "height":75, "color":"1" }, + { + "id":"652cd6e07c237a4b", + "type":"text", + "text":"- [x] 1교육대 교육수료주 통합이동정비 추속조치,임대원\n\t- [ ] 방독면 폐처리:1중대16,2중대10,3중대9,4중대27\n\t- [ ] 총기 폐처리:2중대 1정(손망실), 4중대2정", + "styleAttributes":{}, + "x":-2629, + "y":71455, + "width":428, + "height":200 + }, + { + "id":"26a76cd52036d7b8", + "type":"text", + "text":"- [ ] 제설제 보유 13개,전투물자 창고", + "styleAttributes":{}, + "x":-3120, + "y":71455, + "width":491, + "height":60 + }, + { + "id":"e421092f772fb888", + "type":"text", + "text":"~~가로등 3개 후속조치 확인, 이동혁~~", + "styleAttributes":{}, + "x":454, + "y":71560, + "width":402, + "height":60 + }, + { + "id":"bfb20b409ebcf369", + "type":"text", + "text":"~~6월 유류,공드럼 결산 부탁드립니다~~\n~~금일 15:00까지 결산 확정 해주시면 감사하겠습니다~~\n~~즐거운 하루 되세요~^^~~", + "styleAttributes":{}, + "x":454, + "y":71620, + "width":402, + "height":60 + }, + { + "id":"3c074af877d9172a", + "type":"text", + "text":"~~27련 통신물자 소요종합, 황인찬~~", + "styleAttributes":{}, + "x":1309, + "y":72020, + "width":429, + "height":60, + "color":"1" + }, + { + "id":"24bbfe6a6c9faf85", + "type":"text", + "text":"~~치장보호의 보윱현횐,한서욱~~", + "styleAttributes":{}, + "x":1310, + "y":71960, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"161b5145c29d03bb", + "type":"text", + "text":"~~주간예정사항 작섯,이명세~~", + "styleAttributes":{}, + "x":1738, + "y":71960, + "width":406, + "height":60 + }, + { + "id":"ca9aac52d80d17c8", + "type":"text", + "text":"~~안전사고요구현황, 이동섭,17한~~", + "styleAttributes":{}, + "x":1738, + "y":72020, + "width":408, + "height":60 + }, + { + "id":"11007bdb39c5d056", + "type":"text", + "text":"# 7.10.(금) ", + "styleAttributes":{}, + "x":2144, + "y":71900, + "width":428, + "height":60 + }, + { + "id":"bbf76af11d219720", + "type":"text", + "text":"# 7.9.(목) ", + "styleAttributes":{}, + "x":1738, + "y":71900, + "width":408, + "height":60 + }, + { + "id":"6e8e20a13f030b70", + "type":"text", + "text":"# 7.6.(월) 이발09", + "styleAttributes":{}, + "x":454, + "y":71900, + "width":428, + "height":60 + }, + { + "id":"0dc3d716e0dbedad", + "type":"text", + "text":"~~📌전파사항~~\n1. ~~방탄헬멧(부수기재 포함) 노후교체 소요 종합~~\n - ~~기존 메모 추가의견 양식으로 작성 부탁드립니다.~~\n\n1. ~~무릎, 팔꿈치보호대 노후교체 소요 종합~~\n - ~~7.3(금)에 발송한 메모 참고하셔서 의견 부탁드립니다.~~\n\n~~보고기한 : 7.10(금)한~~\n\n~~번거롭게 해드려 죄송합니다.~~\n~~기한 내 꼭 보고 부탁드립니다.~~", + "styleAttributes":{}, + "x":454, + "y":71960, + "width":428, + "height":400 + }, + { + "id":"6aeb38fd4e006b29", + "type":"text", + "text":"~~냉장고납품,조태숙~~\n~~본부1,1교육1,2교1,3교2~~", + "styleAttributes":{}, + "x":1738, + "y":72080, + "width":406, + "height":60 + }, + { + "id":"a02f5f7cccdc58d3", + "type":"text", + "text":"~~방탄부숮기재 소요,박형주~~", + "styleAttributes":{}, + "x":882, + "y":72020, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"91183b77d7a55041", + "type":"text", + "text":"# 7.8.(수) ", + "styleAttributes":{}, + "x":1311, + "y":71900, + "width":427, + "height":60 + }, + { + "id":"38bc0b8f77d2832b", + "type":"text", + "text":"~~차주 화요일 연대장님께 예산집행현황 보고 예정입니다.~~\n\n군수보급관님은 사업 예산 관련해서 준비해주십시오~~", + "styleAttributes":{}, + "x":882, + "y":72080, + "width":428, + "height":60 + }, + { + "id":"37a8221cd81a37ea", + "type":"text", + "text":"조태숙, 교관조교 휘장 소요 #취소", + "styleAttributes":{}, + "x":882, + "y":71960, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"5d034e351a7f8955", + "type":"text", + "text":"# 7.7.(화) , ~~당직근무~~", + "styleAttributes":{}, + "x":882, + "y":71900, + "width":428, + "height":60 + }, + { + "id":"2ffdc1e55622e94b", + "type":"text", + "text":"~~📌수통, 수통마개 보급계획~~\n~~•일시 : 7.7(화), 15:00~~\n~~•장소 : 9번 창고~~\n~~•수량 : 보급계획 메모 참고~~\n\n~~일자 확인하시고 당일 수령가능하도록 준비 부탁드립니다!~~\n~~수통(기간장병)354, 수통(훈련병,노후교체)500, 수통마개(훈련병노후교체)900~~\n\n~~[[보급품 수령 , 분배, 반납]]~~", + "styleAttributes":{}, + "x":882, + "y":72200, + "width":428, + "height":220 + }, + { + "id":"979db11e5ad24e23", + "type":"text", + "text":"~~📝 릴호스 , 수통품목 불출계획~~\n\n• 일시: 7월 7일(화) 15:00\n• 장소: 9번창고\n\n• 협조: 물품,물량에 적합한 차량과 상하차 인원 준비부탁드리겠습니다.\n\n• 참조: 자세한 내용은 메모 참조바랍니다.\n\n특이사항발생 시 내용\n전파하도록 하겠습니다.", + "styleAttributes":{}, + "x":882, + "y":72140, + "width":428, + "height":60 + }, + { + "id":"2b825b4b977d71bd", + "type":"text", + "text":"~~군수분야 예산 집행 토의,연대장님 주관,1030~~", + "styleAttributes":{}, + "x":882, + "y":72420, + "width":428, + "height":60 + }, + { + "id":"8c32e2f599620349", + "type":"text", + "text":"~~침낭,야전깔개 소요종합,박형주~~", + "styleAttributes":{}, + "x":454, + "y":72420, + "width":428, + "height":60, + "color":"1" + }, + { + "id":"c8226043b2b539ec", + "type":"text", + "text":"~~공기청정기 임차소요 종합, 한승민~~", + "styleAttributes":{}, + "x":2146, + "y":72080, + "width":426, + "height":60 + }, + { + "id":"7ec6e8f286d3d4e5", + "type":"text", + "text":"~~7월 소규모 복지장비(노래방,게밈기) 복지시설 검침, 박관식~~", + "styleAttributes":{}, + "x":2146, + "y":72020, + "width":426, + "height":60 + }, + { + "id":"5fab27780bf6aecc", + "type":"text", + "text":"~~부대비품소요,황인찬~~", + "styleAttributes":{}, + "x":2146, + "y":71960, + "width":426, + "height":60, + "color":"1" + }, + { + "id":"99ef2644979e78d6", + "type":"text", + "text":"~~보호대 교체소요브보고,박형주~~", + "styleAttributes":{}, + "x":2146, + "y":72140, + "width":426, + "height":60, + "color":"1" + }, + { + "id":"d98141c4c2562b0b", + "type":"text", + "text":"~~1호기 보일러 섹션 중에 6개 사용불가(열을먹엇다 파ㅡㄴ)교체 필요,하나에 800만원,25연대도 파논, 4개가지고오고, 부족 2개 긴급위밈보수~~", + "styleAttributes":{}, + "x":2143, + "y":72200, + "width":429, + "height":220, + "color":"1" + }, + { + "id":"254083e6b11d8bdd", + "type":"text", + "text":"부대 완결정비지시서 완결요청, 조희철,2,5,11,본부중대", + "styleAttributes":{}, + "x":2146, + "y":72420, + "width":426, + "height":80 + }, + { + "id":"a8fb0840b5c4441c", + "type":"text", + "text":"~~민간식당 공사 지원토의, 한승민,1400,김낙중영웅실~~ ", + "styleAttributes":{}, + "x":882, + "y":72480, + "width":428, + "height":60 + }, + { + "id":"068db4132910c343", + "type":"text", + "text":"~~3분기 사용자보수비 사용계획보고(고정부분)~~", + "styleAttributes":{}, + "x":882, + "y":72540, + "width":428, + "height":60 + }, + { + "id":"7431d1a72d141e5c", + "type":"text", + "text":"~~4중대, 사용자보수비 사용계획,~~[[30연대 26년도 예산]]", + "styleAttributes":{}, + "x":882, + "y":72600, + "width":428, + "height":60 + }, + { + "id":"5b63b712f1db77d7", + "type":"text", + "text":"- [ ] 지역상생 급식비 집행,46백만원,장성국\n\t- [x] 1차 3.21(토)~22(일)\n\t- [ ] 2차 6.6(토)~7(일)\n\t- [ ] 3차 9.19(토)~20(일)\n\t- [ ] 4차 11.14(토)~15(일)", + "styleAttributes":{}, + "x":-3120, + "y":71515, + "width":491, + "height":200, + "color":"1" + }, { "id":"07266264beea378d", "type":"text", @@ -13009,235 +13927,76 @@ "height":80 }, { - "id":"9b3e6880e4ce7597", + "id":"a700daaea885d709", "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#연대 전체 방독면 두건에 개인주기]]", + "text":"- [ ] 국방부 나라배움터 인권교육, 자살예방교육 떴습니당.성인지 원격교육\n\n신청하시길 바랍니다~", + "styleAttributes":{}, + "x":-960, + "y":73015, + "width":428, + "height":130, + "color":"3" + }, + { + "id":"bc87387b4a916690", + "type":"text", + "text":"[[보급품 수령 , 분배, 반납]], 치장 화생방 물자,한서욱", "styleAttributes":{}, "x":-1313, - "y":70975, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"6dfe2fedb8d13dfb", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 물자분류 A형 , 목룍표제작]]", - "styleAttributes":{}, - "x":-1313, - "y":71053, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"4abea30dab303e41", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#1교육대 물자분류 A형, 목록표제작]]", - "styleAttributes":{}, - "x":-1313, - "y":71128, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"c56a63ddd55f34ec", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#탄약은 경계태세 1단계 일때 분배한다.]]", - "styleAttributes":{}, - "x":-1313, - "y":71278, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"93ba3ec15627223d", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#**총기전환계획과 물자인수인계 계획은 평가시 무조건 본다.**]]", - "styleAttributes":{}, - "x":-1313, - "y":71203, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"b20b938fa91825f1", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#**전교육대 기간병 물자없다.**]]", - "styleAttributes":{}, - "x":-1313, - "y":70900, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"1f69a2e097c8c2b2", - "type":"text", - "text":"27년 기타유지물자 소요종합,황인찬", - "styleAttributes":{}, - "x":1738, - "y":70900, - "width":408, - "height":60, - "color":"1" - }, - { - "id":"da51154d4033728b", - "type":"text", - "text":"~~26년 2차 볘개속 보급,황인찬, 1330, 2750개, [[보급품 수령 , 분배, 반납]]~~", - "styleAttributes":{}, - "x":882, - "y":70900, - "width":429, + "y":72020, + "width":260, "height":60 }, { - "id":"3a8733dedcb5eefc", + "id":"ff3c8beeb2e27fa3", "type":"text", - "text":"27년 포장재료 11종 소요 종합,황인찬", + "text":"- [ ] 우리연대 구형 침대 전량 교체예정(9월경)\n* 육군 전체물량을 우리쪽으로 불줄예정\n* 조립체가 아니라 침대셋트입니다.(참고로만 알고 계세요.)", "styleAttributes":{}, - "x":1311, - "y":70900, - "width":427, - "height":60, - "color":"1" - }, - { - "id":"4fa9f1831341f6d3", - "type":"text", - "text":"- [ ] 연대전술훈련평가 ![[26년 30연대 전술훈련평가 수검자료 정리#3교육대 화생방 정화통 보유가 없어 추가 보급이 필요]]", - "styleAttributes":{}, - "x":-1313, - "y":70825, - "width":620, - "height":75, - "color":"1" - }, - { - "id":"24f2b9e78aa1909b", - "type":"text", - "text":"~~차량정비,3508-3~~", - "styleAttributes":{}, - "x":882, - "y":70840, + "x":-960, + "y":73225, "width":428, - "height":60 + "height":165 }, { - "id":"cea1514a80191294", + "id":"13232148bbb26330", "type":"text", - "text":"배출용 생수 신청,매달\n도시락업체 생수불출 야하면", + "text":"- [ ] 2교육대 방독면 폐처리 정비의뢰,강재구\n\t- [ ] 전산상 반납후 전화요청\n\t- [ ] 2교육대 방독면 총 131개 입니다..!\n\t\t- [ ] 5중대 - 총 22개\n\t\t중좌 17개\n\t\t대좌 2개\n\t\t중우 3개\n\t\t\n\t\t- [ ] 6중대 - 총 32개\n\t\t소좌 3개\n\t\t중좌 21개\n\t\t대좌 8개\n\t\t\n\t\t- [ ] 7중대 - 총 65개\n\t\t중좌 61개\n\t\t대좌 4개\n\t\t\n\t\t- [ ] 8중대 - 총 12개\n\t\t중좌 8개\n\t\t중우 4개", "styleAttributes":{}, - "x":1310, - "y":70840, + "x":-960, + "y":73516, "width":428, - "height":60 - }, - { - "id":"8202a4f4395a6d21", - "type":"text", - "text":"27년 피피박스등 행정비품에대한 소요 종합,황인찬", - "styleAttributes":{}, - "x":1738, - "y":70840, - "width":408, - "height":60, + "height":510, "color":"1" }, { - "id":"da4e741947dcc2d7", + "id":"a52417529367df33", "type":"text", - "text":"~~차량정비,3508-2~~", + "text":"- [ ] 장비관리부대장 임무\n\t1. ", "styleAttributes":{}, - "x":454, - "y":70840, - "width":402, - "height":60 - }, - { - "id":"2adf52ec0958194a", - "type":"text", - "text":"무릎,팔꿈치 보호대 교체소요 파악,박형주", - "styleAttributes":{}, - "x":2146, - "y":70780, + "x":-960, + "y":73390, "width":428, - "height":60, - "color":"1" + "height":110 }, { - "id":"a15de80986cccc32", + "id":"e96c8048f57d504a", "type":"text", - "text":"[[하계재난대비계획#부대별 하계 재난 대웅흔련 6월한 실시후 결과보고(공문)]] 잭성 보고,,유재형", + "text":"- [ ] 11중대, 핸드토키,1대(cpl10215),정비불가,불용신청,조희철, 연말에 폐처리 요청", "styleAttributes":{}, - "x":454, - "y":70780, - "width":1692, - "height":60 - }, - { - "id":"1ab492821581257a", - "type":"text", - "text":"# 7.3.(금) ", - "styleAttributes":{}, - "x":2146, - "y":70720, + "x":-960, + "y":72935, "width":428, - "height":60 + "height":80 }, { - "id":"2e74e772591d7ed4", + "id":"00a3d07bc3453f39", "type":"text", - "text":"# 6. 29. (월)", + "text":"- [ ] 구형방상외피 추가지급, 1교 916. 2교 916 3쿄 426", "styleAttributes":{}, - "x":454, - "y":70720, + "x":-960, + "y":73145, "width":428, - "height":60 - }, - { - "id":"9b4d5e8f19406e04", - "type":"text", - "text":"# 6. 30.(화)", - "styleAttributes":{}, - "x":882, - "y":70720, - "width":428, - "height":60 - }, - { - "id":"0257072ce3614948", - "type":"text", - "text":"# 7.1.(수) 당직근무", - "styleAttributes":{}, - "x":1310, - "y":70720, - "width":428, - "height":60 - }, - { - "id":"c0b69dc8945b7748", - "type":"text", - "text":"# 7.2.(목)", - "styleAttributes":{}, - "x":1738, - "y":70720, - "width":408, - "height":60 - }, - { - "id":"2219aa22178267da", - "type":"text", - "text":"![[1782278762895.jpg]]", - "styleAttributes":{}, - "x":1311, - "y":70060, - "width":424, - "height":440 + "height":80 }, { "id":"82c4bffbd6a84cde", @@ -13289,877 +14048,6 @@ "width":491, "height":220 }, - { - "id":"bc87387b4a916690", - "type":"text", - "text":"[[보급품 수령 , 분배, 반납]], 치장 화생방 물자,한서욱", - "styleAttributes":{}, - "x":-1313, - "y":72020, - "width":260, - "height":60 - }, - { - "id":"1896b12fcb65ac92", - "type":"text", - "text":"~~[[하계재난대비계획#하계 재난대비 추진평가회의 6.25(목) 주간 상황평가회의시]] 잭성 보고,,유재형~~", - "styleAttributes":{}, - "x":465, - "y":70000, - "width":1692, - "height":60 - }, - { - "id":"23b518f4373f0d06", - "type":"text", - "text":"~~담당관님 업체 연락처입니다.~~\n~~010-2345-2656~~\n\n~~입영심사대 교체는 10시쯤 이뤄질 예정이고 끝나는 시간 보고 30연대 순서 조율할게요!~~", - "styleAttributes":{}, - "x":1307, - "y":69760, - "width":434, - "height":150 - }, - { - "id":"3a5dddbe8c6fc0d4", - "type":"text", - "text":"훈련소 2분기 [[장비탄약 관리실태 현장확인 및 지도]],한서욱", - "styleAttributes":{}, - "x":451, - "y":69760, - "width":430, - "height":60, - "color":"1" - }, - { - "id":"08dc40bdd2a0c32b", - "type":"text", - "text":"차량예방정비,1330", - "styleAttributes":{}, - "x":451, - "y":69820, - "width":428, - "height":60 - }, - { - "id":"3d055333eec9d59e", - "type":"text", - "text":"7월한시인가 소요종합보고,장성국", - "styleAttributes":{}, - "x":451, - "y":69880, - "width":430, - "height":60 - }, - { - "id":"14fd79a1e0eb7133", - "type":"text", - "text":"[[26년 전반기 소방점검 실시결과 보고]],유방기,유재형", - "styleAttributes":{}, - "x":1307, - "y":69910, - "width":428, - "height":90 - }, - { - "id":"3ea5fdf01d72ec96", - "type":"text", - "text":"~~차량정비,3502~~", - "styleAttributes":{}, - "x":1741, - "y":69760, - "width":402, - "height":60 - }, - { - "id":"ca73c92320f483b3", - "type":"text", - "text":"~~소형냉장고 소요파악.$조대숙~~", - "styleAttributes":{}, - "x":2143, - "y":69820, - "width":428, - "height":60 - }, - { - "id":"cffe3d394f901838", - "type":"text", - "text":"~~차량정비,3508-1~~", - "styleAttributes":{}, - "x":2143, - "y":69760, - "width":428, - "height":60 - }, - { - "id":"ea9592000ccf72f7", - "type":"text", - "text":"~~연대장님 탄약고 점검~~", - "styleAttributes":{}, - "x":2143, - "y":69880, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"699e02e6ffbae7e7", - "type":"text", - "text":"국가자격증 원서접수,~7.1,김평회", - "styleAttributes":{}, - "x":2140, - "y":69940, - "width":431, - "height":60 - }, - { - "id":"77fe7d8e87c223a9", - "type":"text", - "text":"[26년 전반기 치장물자 결산 관련]\n\n~~메모활용 26년 치장물장 결산 양식 및 결산방법을 전파하였습니다.~~\n~~6.25일한 댓글회신 부탁드립니다.~~\n\n~~평시편제가 전시편제보다 많은 직할부대도 붙임문서 작성부탁드립니다.~~\n~~(현황 종합을 위한 군지사 요청사항임)~~", - "styleAttributes":{}, - "x":1735, - "y":69820, - "width":408, - "height":180, - "color":"1" - }, - { - "id":"983c4af27651a40e", - "type":"text", - "text":"차량예방정비,3130", - "styleAttributes":{}, - "x":879, - "y":69760, - "width":428, - "height":60 - }, - { - "id":"222d14053031469f", - "type":"text", - "text":"[[장비]], k2소총 3중대 반납(372923)", - "styleAttributes":{}, - "x":1311, - "y":69700, - "width":409, - "height":60 - }, - { - "id":"d8cb08dbd73ec930", - "type":"text", - "text":"소방점검결과 수령일\n6.25(목)입니다.\n메모보고 6.24(목)으로\n오기되어 있어 정정전파합니다", - "styleAttributes":{}, - "x":1741, - "y":69700, - "width":402, - "height":60 - }, - { - "id":"5cc81ff1f7753506", - "type":"text", - "text":"~~성인지교육,0830,1010,최양업교육관 바오로실~~", - "styleAttributes":{}, - "x":2143, - "y":69640, - "width":428, - "height":60 - }, - { - "id":"4b9230487ce38c3b", - "type":"text", - "text":"~~26년 라돈 저감시설 필터교체,34개,신상이,1교육대~~", - "styleAttributes":{}, - "x":1307, - "y":69640, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"ef9a9fad5090b1d5", - "type":"text", - "text":"~~성인지교육 신청~~", - "styleAttributes":{}, - "x":1735, - "y":69640, - "width":408, - "height":60 - }, - { - "id":"deec07fcca5c6faf", - "type":"text", - "text":"[[통합이동정비]], 30-1,오전", - "styleAttributes":{}, - "x":451, - "y":69640, - "width":428, - "height":60 - }, - { - "id":"1bc51ae411f9a33b", - "type":"text", - "text":"[[연대장님 이취임식]],30연대,잠정", - "styleAttributes":{}, - "x":881, - "y":69640, - "width":430, - "height":60 - }, - { - "id":"1ed41330b327f773", - "type":"text", - "text":"~~26년 7월 간부 영내급식 한시인가 소요 종합,장성국~~", - "styleAttributes":{}, - "x":2143, - "y":69580, - "width":428, - "height":60 - }, - { - "id":"f7643eb4a228fdac", - "type":"text", - "text":"[[inbox/위임보수|위임보수]] 3분기 심의,소군수과", - "styleAttributes":{}, - "x":881, - "y":69580, - "width":426, - "height":60 - }, - { - "id":"11df567d6109151c", - "type":"text", - "text":"6월 은닉 및 재산초과 탄약 회수활동,~26$.한서욱", - "styleAttributes":{}, - "x":451, - "y":69580, - "width":428, - "height":60, - "color":"1" - }, - { - "id":"56b8945cf0b36f3b", - "type":"text", - "text":"~~27년 주방세제류 조달소요종합,황인찬~~", - "styleAttributes":{}, - "x":1307, - "y":69580, - "width":434, - "height":60 - }, - { - "id":"af8cf3610898fdb8", - "type":"text", - "text":"[[하계재난대비계획]] 추진병가회의, 지휘관,지원과장,군수관계관 #취소", - "styleAttributes":{}, - "x":1735, - "y":69580, - "width":408, - "height":60 - }, - { - "id":"283da393ef7564e2", - "type":"text", - "text":"# 6. 26.(금) ", - "styleAttributes":{}, - "x":2143, - "y":69520, - "width":428, - "height":60 - }, - { - "id":"9946039e6adc8f5f", - "type":"text", - "text":"# 6. 22. (월)", - "styleAttributes":{}, - "x":451, - "y":69520, - "width":428, - "height":60 - }, - { - "id":"6040486caaa64772", - "type":"text", - "text":"# 6. 23.(화)", - "styleAttributes":{}, - "x":879, - "y":69520, - "width":428, - "height":60 - }, - { - "id":"be9a471813cd2248", - "type":"text", - "text":"# 6. 24.(수) ", - "styleAttributes":{}, - "x":1307, - "y":69520, - "width":428, - "height":60 - }, - { - "id":"cb5d324a861d414a", - "type":"text", - "text":"# 6. 25.(목)", - "styleAttributes":{}, - "x":1735, - "y":69520, - "width":408, - "height":60 - }, - { - "id":"e1545b62f99de9f2", - "type":"text", - "text":"~~1교육대 캐노피천막 구매 재산등대 요청,운영비~~", - "styleAttributes":{}, - "x":1761, - "y":69180, - "width":699, - "height":60 - }, - { - "id":"f936709ab2652e3c", - "type":"text", - "text":"[[30연대 26년도 예산]], 환경예산 반기 예산배정", - "styleAttributes":{}, - "x":1761, - "y":69120, - "width":408, - "height":60 - }, - { - "id":"dfbaee8c31ed31b4", - "type":"text", - "text":"~~전입신병 총기,대검 21정 수령, 15시,보급대 실내무기고,이승민~~ [[장비]]", - "styleAttributes":{}, - "x":1752, - "y":69060, - "width":417, - "height":60 - }, - { - "id":"c4c99aa9bc8972b0", - "type":"text", - "text":"[[민간워탁급식 현안업무 토의 결과 후속조치]]", - "styleAttributes":{}, - "x":2169, - "y":69060, - "width":428, - "height":60 - }, - { - "id":"ca417a18f51d80d3", - "type":"text", - "text":"~~배출신병 도시락 불출 현장 확인~~", - "styleAttributes":{}, - "x":1761, - "y":69000, - "width":408, - "height":60 - }, - { - "id":"e6223d1296d1ac90", - "type":"text", - "text":"~~인증서 발급 공문신청~~", - "styleAttributes":{}, - "x":2169, - "y":69000, - "width":428, - "height":60 - }, - { - "id":"68f313efd322761d", - "type":"text", - "text":"- [ ] [[일일 무기,탄약결산]]\n- [ ] 15:00, 업무 [[일일결산]] \n- [ ] 주단위 유류저장시설 점검 부대일지 입력", - "styleAttributes":{}, - "x":477, - "y":68880, - "width":2120, - "height":120, - "color":"3" - }, - { - "id":"d9c0d3d8d6c28acd", - "type":"text", - "text":"5월 급식비 결과보고", - "styleAttributes":{}, - "x":907, - "y":68820, - "width":426, - "height":60 - }, - { - "id":"e242a2c19552b305", - "type":"text", - "text":"전반기 안전보건 자울 점검 결과 보고 제출,~6.24,이동섭", - "styleAttributes":{}, - "x":907, - "y":68760, - "width":1690, - "height":60 - }, - { - "id":"bcc0dcbb57508a25", - "type":"text", - "text":"26년 병영생활관 에어컨 설치를 위한 세부자료 종합, 조대숙,~6.17", - "styleAttributes":{}, - "x":907, - "y":68700, - "width":854, - "height":60 - }, - { - "id":"e71c5a2a443c3444", - "type":"text", - "text":"26년 후반기 국가기술자격검정 원서접수,~7.1 1800, 지게차기능사,전기기능사,굴삭기기능사", - "styleAttributes":{}, - "x":907, - "y":68640, - "width":1690, - "height":60 - }, - { - "id":"8e8d964f63fc0ad8", - "type":"text", - "text":"~~오늘은 6월 사이버보안 진단의 날 행시입니다. 아래와 같이 개인 보안조치 해주시기바랍니다.~~\n1. ~~호랑이 3마리 잡기~~\n2. ~~바이러스 정밀점검~~ \n3. ~~개인보안일일 결산~~\n4. ~~간부 보안규정평가~~\n\n~~훈련소 보안점검간 행사당일 바이러스 정밀점검이 안되어 있는곳이 많았습니다. 관심갖고 빠짐없이 모든pc 진행해주시기 바랍니다.~~\n\n~~좋은하루 되십시요 충성!~~", - "styleAttributes":{}, - "x":1761, - "y":68390, - "width":408, - "height":250 - }, - { - "id":"f48a360feb76e703", - "type":"text", - "text":"~~토요일 우천 예보에 따라~~\n~~육본 상황전문이 하달되어~~\n~~메몹보고로 전파했습니다.~~\n~~(별) 각 부대는 오늘 13시 한 조치하고~~\n ~~아래 양식에 맞춰 보고바랍니다~~\n1. ~~주둔지 배수체계 기능 발휘 확인, 점검~~\n * ~~배수로, 수문 등~~\n~~2.[[재난대책]]본부 운영 준비~~\n ~~(재난대책본부 인원 사전 편성)~~\n2. ~~위험지역 접근근미 표식 설치 등~~\n ~~피해예방 및 안전대책 강구~~\n\n~~1,3번 확인하시고 의견부탁드립니다~~", - "styleAttributes":{}, - "x":2169, - "y":68480, - "width":428, - "height":160 - }, - { - "id":"4dc4407eb193dcdb", - "type":"text", - "text":"전반기 자체 안전진단 결과보고,이동섭, ~~해빙기~~,육지부대후속조치,~~대한민국~~,[[안전보건확보의무이행자울점검결과]]", - "styleAttributes":{}, - "x":1333, - "y":68540, - "width":428, - "height":100 - }, - { - "id":"7ccaf2bccec2490e", - "type":"text", - "text":"담당관님! 건전지 수령 다음주 화요일 10:20입니당~~", - "styleAttributes":{}, - "x":907, - "y":68560, - "width":426, - "height":80 - }, - { - "id":"5bafd5f1f3aeeb22", - "type":"text", - "text":"사용자보수비 사용겨획보고,식당발전기,김미화", - "styleAttributes":{}, - "x":1333, - "y":68480, - "width":428, - "height":60 - }, - { - "id":"8f0115f53f67edd5", - "type":"text", - "text":"[국방부 주관 군 차량사고예방교육 공지]\n\n1. 일시 : 6. 16.(화) 10:00\n2. 장소 : 광개토강당\n3. 대상 : 간부직접운전자, 운전병\n4. 교육훈련 외 열외 최소화\n\n(별) 참석대상자 종합(메모 발송완료)\n * 6. 10.(수) 14시한 보고바랍니다. ", - "styleAttributes":{}, - "x":907, - "y":68360, - "width":426, - "height":200 - }, - { - "id":"da7b2d3bcf992f79", - "type":"text", - "text":"~~행보관님 총기 전산재산 및 총번 넘겼습니다 확인해주시고 수입완결 부탁드립니다!~~", - "styleAttributes":{}, - "x":2169, - "y":68390, - "width":428, - "height":90 - }, - { - "id":"1767f9b9b2a18c01", - "type":"text", - "text":"[[소방점검 결과 후속조치]],유방기", - "styleAttributes":{}, - "x":1333, - "y":68420, - "width":428, - "height":60 - }, - { - "id":"f04c4d80d5e28112", - "type":"text", - "text":"~~내일 주간예정사항토의는 참모부만 참석하시면 되겠습니다.~~", - "styleAttributes":{}, - "x":2169, - "y":68300, - "width":428, - "height":90 - }, - { - "id":"9ea0cff6b6adc463", - "type":"text", - "text":"~~3분기 사용자보수비 소요 심의 자료종합~~", - "styleAttributes":{}, - "x":1761, - "y":68330, - "width":408, - "height":60 - }, - { - "id":"48345e7a078103e0", - "type":"text", - "text":"<긴급사항 > \n - 23.27, 30연대 민영식당 종사자 \n 간담회 실시 관련하여 \n 언제 했는지 일자랑 조치 결과 \n 메일로 보내 주세요 ", - "styleAttributes":{}, - "x":1333, - "y":68240, - "width":428, - "height":180 - }, - { - "id":"895331d45b61dbcf", - "type":"text", - "text":"방독면 살균소독장비 협조회의, 1330, 29연대 1교육대 1중대 ~~김낙중영웅실~~, 최수현, 엄민규, 신두환", - "styleAttributes":{}, - "x":1761, - "y":68180, - "width":408, - "height":90 - }, - { - "id":"db1a161644755a31", - "type":"text", - "text":"전반기 안전보건 관련 의견수령 및 필요개선 조치 의견종합", - "styleAttributes":{}, - "x":2169, - "y":68240, - "width":428, - "height":60 - }, - { - "id":"ba745f6b9121db17", - "type":"text", - "text":"3분기 사용자보수비 사용계획 심의,1000,각보급대 행복관", - "styleAttributes":{}, - "x":1761, - "y":68270, - "width":408, - "height":60 - }, - { - "id":"7bc06b179297e8df", - "type":"text", - "text":"발전기 기술검사,14001430,7급임헌준", - "styleAttributes":{}, - "x":907, - "y":68240, - "width":426, - "height":60 - }, - { - "id":"19cc27710d3175fe", - "type":"text", - "text":"Dellis 상 총기류 재산현횐ㅇ 오류 확인보고,한서욱\n총번덮어씌우기", - "styleAttributes":{}, - "x":907, - "y":68300, - "width":440, - "height":60, - "color":"1" - }, - { - "id":"42413c6f8bd6e2f1", - "type":"text", - "text":"통신장비예방정비,p999k", - "styleAttributes":{}, - "x":477, - "y":68240, - "width":428, - "height":60 - }, - { - "id":"58136f65d9adcb00", - "type":"text", - "text":"# 6. 19.(금) ", - "styleAttributes":{}, - "x":2169, - "y":68120, - "width":428, - "height":60 - }, - { - "id":"cb6208f454d9bb35", - "type":"text", - "text":"# 6. 18.(목)", - "styleAttributes":{}, - "x":1761, - "y":68120, - "width":408, - "height":60 - }, - { - "id":"9b014b8d1c4697f7", - "type":"text", - "text":"# 6. 17.(수) ", - "styleAttributes":{}, - "x":1333, - "y":68120, - "width":428, - "height":60 - }, - { - "id":"1ac343a03107025c", - "type":"text", - "text":"연대 전반기 예산회의,1500,지통실", - "styleAttributes":{}, - "x":1333, - "y":68180, - "width":428, - "height":60 - }, - { - "id":"2778ad3653bfc938", - "type":"text", - "text":"차량예방정비,9130", - "styleAttributes":{}, - "x":2169, - "y":68180, - "width":428, - "height":60 - }, - { - "id":"e4e1a644df2334f0", - "type":"text", - "text":"[[통합이동정비]], 32-2,오후", - "styleAttributes":{}, - "x":477, - "y":68180, - "width":430, - "height":60 - }, - { - "id":"23a8c5720d3c6845", - "type":"text", - "text":"# 6. 16.(화)", - "styleAttributes":{}, - "x":905, - "y":68120, - "width":428, - "height":60 - }, - { - "id":"7084af66b57bd104", - "type":"text", - "text":"[[통합이동정비]], 30-3,오후", - "styleAttributes":{}, - "x":905, - "y":68180, - "width":428, - "height":60 - }, - { - "id":"e78366e7cde6a8d2", - "type":"text", - "text":"# 6. 15. (월)", - "styleAttributes":{}, - "x":477, - "y":68120, - "width":428, - "height":60 - }, - {"id":"a8aeb8498dd3bfb4","type":"file","file":"대검 현황.md","x":-1773,"y":70820,"width":460,"height":960}, - { - "id":"3db6a78f47c801b5", - "type":"text", - "text":"- [ ] 1분기 장비 탄약 관리실태 현장 확인 결과 조치해야할 사항\n\t- [ ] 관련근거\n\t\t- [ ] 육규 428 군수품 및 재산출납관리 규정\n\t\t- [ ] 유규 465 탄약관리규정\n\t\t- [ ] 육규 471 장비관리규정\n\t\t- [ ] 육규 742 화생방 장비 물자 관리규정\n\t- [ ] 은닉탄 회수함 보완\n\t- [x] 저장화생방 장비물자 관리제웟표 최신화\n\t- [ ] 부대행정압무 총기결산, 전산대장 내용 누락\n\t- [x] 총기관리책임관 정(교육대장,) cctv 확인\n\t- [x] 정비지시서 미완결 처리(7일이내)", - "styleAttributes":{}, - "x":-2201, - "y":71330, - "width":428, - "height":450, - "color":"1" - }, - { - "id":"652cd6e07c237a4b", - "type":"text", - "text":"- [x] 1교육대 교육수료주 통합이동정비 추속조치,임대원\n\t- [ ] 방독면 폐처리:1중대16,2중대10,3중대9,4중대27\n\t- [ ] 총기 폐처리:2중대 1정(손망실), 4중대2정", - "styleAttributes":{}, - "x":-2629, - "y":71455, - "width":428, - "height":200 - }, - { - "id":"7431d1a72d141e5c", - "type":"text", - "text":"~~4중대, 사용자보수비 사용계획,~~[[30연대 26년도 예산]]", - "styleAttributes":{}, - "x":882, - "y":72600, - "width":428, - "height":60 - }, - { - "id":"436d3c82372b2110", - "type":"text", - "text":"# 7.22.(수) ", - "styleAttributes":{}, - "x":1307, - "y":74104, - "width":427, - "height":60 - }, - { - "id":"eafbd5e02342c859", - "type":"text", - "text":"# 7.23(목)", - "styleAttributes":{}, - "x":1734, - "y":74104, - "width":410, - "height":60 - }, - { - "id":"068db4132910c343", - "type":"text", - "text":"~~3분기 사용자보수비 사용계획보고(고정부분)~~", - "styleAttributes":{}, - "x":882, - "y":72540, - "width":428, - "height":60 - }, - { - "id":"b0dcd5b9ad89bccf", - "type":"text", - "text":"# 7.24.(금)", - "styleAttributes":{}, - "x":2145, - "y":74104, - "width":428, - "height":60 - }, - { - "id":"a8fb0840b5c4441c", - "type":"text", - "text":"~~민간식당 공사 지원토의, 한승민,1400,김낙중영웅실~~ ", - "styleAttributes":{}, - "x":882, - "y":72480, - "width":428, - "height":60 - }, - { - "id":"254083e6b11d8bdd", - "type":"text", - "text":"부대 완결정비지시서 완결요청, 조희철,2,5,11,본부중대", - "styleAttributes":{}, - "x":2146, - "y":72420, - "width":426, - "height":80 - }, - { - "id":"2b825b4b977d71bd", - "type":"text", - "text":"~~군수분야 예산 집행 토의,연대장님 주관,1030~~", - "styleAttributes":{}, - "x":882, - "y":72420, - "width":428, - "height":60 - }, - { - "id":"751bc93034cd1dc6", - "type":"text", - "text":"포장재료 보급(비닐봉투8000)1500,9번창고,황인찬", - "styleAttributes":{}, - "x":1736, - "y":74164, - "width":411, - "height":60, - "color":"1" - }, - { - "id":"b41691f88beec8ee", - "type":"text", - "text":"# 7.29.(수) ", - "styleAttributes":{}, - "x":1309, - "y":74600, - "width":427, - "height":60 - }, - { - "id":"c8c56c988458cfe6", - "type":"text", - "text":"26년 전반기 소방정밀점검 결과보고(영선대 지원 포함), 공문보고,위밈보수필요항목 완료시 공문보고", - "styleAttributes":{}, - "x":1310, - "y":74660, - "width":424, - "height":80 - }, - { - "id":"913de5c11ce95fe9", - "type":"text", - "text":"교육사,3분기 제기능 부대진단 계획,유재형\nCctv.열쇠이ㅝㄴ화,무기탄약고관리", - "styleAttributes":{}, - "x":1734, - "y":74224, - "width":413, - "height":60, - "color":"1" - }, - { - "id":"879256e154697497", - "type":"text", - "text":"# 7.30(목)", - "styleAttributes":{}, - "x":1736, - "y":74600, - "width":410, - "height":60 - }, - { - "id":"b9c9a3068c2100e9", - "type":"text", - "text":"8월 한시적인가 소요보고,정성국", - "styleAttributes":{}, - "x":2145, - "y":74164, - "width":428, - "height":60 - }, - { - "id":"02ec7c06cd9e4800", - "type":"text", - "text":"# 7.31.(금) , 당직근무", - "styleAttributes":{}, - "x":2147, - "y":74600, - "width":428, - "height":60 - }, - { - "id":"b0f5500e6a45555e", - "type":"text", - "text":"# 7.25.(토) , 당직근무", - "styleAttributes":{}, - "x":2573, - "y":74104, - "width":428, - "height":60 - }, { "id":"735b5f0696e1b517", "type":"text", @@ -14171,47 +14059,106 @@ "height":60 }, { - "id":"a035ce73bc263acb", + "id":"48c4be1b17719fe0", "type":"text", - "text":"지휘관 월간 탄약고 점검(0830-0910,1310-)", + "text":"# 7.20(월)", "styleAttributes":{}, - "x":2146, - "y":74224, + "x":452, + "y":74104, + "width":428, + "height":60 + }, + { + "id":"998c87153330dfba", + "type":"text", + "text":"기 전파드린데로 \n이번주는 직할부대 \n다음주는 연대를 대상으로 \n혹서기(폭염) 대비 선제적 안전점검을 시행합니다 \n참고 바랍니다 ", + "styleAttributes":{}, + "x":453, + "y":74164, + "width":433, + "height":156 + }, + { + "id":"536a9d7166cd4794", + "type":"text", + "text":"~~국방통합시설정보체계 부대별 보유시설물 제원관리 현행화 지시에 따른 메모 전파하였습니다.~~\n~~작성기한 : 7.22.(수) 한~~\n~~메모의견은 : 7.24.(금) 한~~\n~~기한내 부탁드리며 언제든지 전화주세요.~~ ", + "styleAttributes":{}, + "x":455, + "y":74320, + "width":431, + "height":140 + }, + { + "id":"1857488d0529b6bc", + "type":"text", + "text":"국방부 오안 지원단, 신원조사 9월촞까지 제한", + "styleAttributes":{}, + "x":-38, + "y":74212, + "width":382, + "height":68, + "color":"3" + }, + { + "id":"a37078b75afcc614", + "type":"text", + "text":"혹서기 수시 안전점검 자체 확인", + "styleAttributes":{}, + "x":458, + "y":74460, + "width":428, + "height":60 + }, + { + "id":"557857d937f951af", + "type":"text", + "text":"부대사작성", + "styleAttributes":{}, + "x":180, + "y":74500, + "width":260, + "height":60 + }, + { + "id":"37ec22e00dac8dda", + "type":"text", + "text":"헬스장 공사()", + "styleAttributes":{}, + "x":458, + "y":74520, + "width":422, + "height":60 + }, + { + "id":"ff68f31ebd5fd285", + "type":"text", + "text":"사업비집행", + "styleAttributes":{}, + "x":180, + "y":74560, + "width":260, + "height":60 + }, + { + "id":"79df46732087e313", + "type":"text", + "text":"# 7.27(월)", + "styleAttributes":{}, + "x":455, + "y":74600, + "width":428, + "height":60 + }, + { + "id":"7f62d3f4eafda097", + "type":"text", + "text":"영선대, 스틸그레이팅 수령 485사이즈 50개수령, 임영묵 주무관", + "styleAttributes":{}, + "x":453, + "y":74660, "width":427, - "height":60, - "color":"1" - }, - { - "id":"66351f0031e74874", - "type":"text", - "text":"# 8.5(수)", - "styleAttributes":{}, - "x":1310, - "y":75180, - "width":428, "height":60 }, - { - "id":"1b02ea7cdd09a7e3", - "type":"text", - "text":"# 8.4(화)", - "styleAttributes":{}, - "x":882, - "y":75180, - "width":428, - "height":60 - }, - { - "id":"98ec56681ea57652", - "type":"text", - "text":"12중대 행정보급관 교체전 재물조사\n각교육대별 1명씩 지원,임시후임최우석중사", - "styleAttributes":{}, - "x":882, - "y":75240, - "width":428, - "height":60, - "color":"1" - }, { "id":"ce81d2c7885eb48b", "type":"text", @@ -14233,34 +14180,95 @@ "height":60 }, { - "id":"842f931940bac140", + "id":"dd07f0dda5e82be3", "type":"text", - "text":"[[장비]] 보급예정", + "text":"# 8.26(수) 당직근무", "styleAttributes":{}, - "x":-40, - "y":73280, - "width":382, + "x":1310, + "y":75740, + "width":428, "height":60 }, { - "id":"72e980ce0250709a", + "id":"a2d474decb78fdb3", "type":"text", - "text":"[[보급품 수령 , 분배, 반납]] 현황", + "text":"26년 차량 및 건설 장비 분배계획 비문수령,햔서욱,~8.7(7.29~8.4휴가제한)", "styleAttributes":{}, - "x":-40, - "y":73340, - "width":382, - "height":65 + "x":440, + "y":74720, + "width":440, + "height":60, + "color":"1" }, { - "id":"d6da653b113626d6", + "id":"138b3cc1529a3a50", "type":"text", - "text":"![[검차#‼️ 12. 29. 검차확인‼️]]", + "text":"발전기 예방정비 기술검사,임대원,임현준,오전", "styleAttributes":{}, - "x":-40, - "y":72940, - "width":382, - "height":340 + "x":900, + "y":75540, + "width":410, + "height":60 + }, + { + "id":"c9f399625cbf77be", + "type":"text", + "text":"# 8.10(월)", + "styleAttributes":{}, + "x":454, + "y":75480, + "width":428, + "height":60 + }, + { + "id":"e4225ae0acb25294", + "type":"text", + "text":"교육수료주 통합이동정비,30-2,오전,임대원", + "styleAttributes":{}, + "x":454, + "y":75540, + "width":428, + "height":60 + }, + { + "id":"61eb50fdcbb8fcc1", + "type":"text", + "text":"# 8.11(화)", + "styleAttributes":{}, + "x":882, + "y":75480, + "width":428, + "height":60 + }, + { + "id":"600c72e064aa5417", + "type":"text", + "text":"# 8.18(화)", + "styleAttributes":{}, + "x":882, + "y":75640, + "width":428, + "height":60 + }, + { + "id":"8d773f1a18fae594", + "type":"text", + "text":"교육수료주 통합이동정비,30-1,오후,임대원", + "styleAttributes":{}, + "x":882, + "y":75700, + "width":428, + "height":60 + }, + { + "id":"ebeca055b31b3ba3", + "type":"text", + "text":"~~멀티탭,구매,사용다보수비로집행(박관식주무관통화완료(박성현중사(진)0800-0900)),갯수파악~~", + "styleAttributes":{}, + "x":454, + "y":73300, + "width":427, + "height":60 }, { "id":"24b5be6867d1e15c", @@ -14282,16 +14290,6 @@ "width":428, "height":60 }, - { - "id":"ebeca055b31b3ba3", - "type":"text", - "text":"~~멀티탭,구매,사용다보수비로집행(박관식주무관통화완료(박성현중사(진)0800-0900)),갯수파악~~", - "styleAttributes":{}, - "x":454, - "y":73300, - "width":427, - "height":60 - }, { "id":"89231809c1298f3b", "type":"text", @@ -14314,24 +14312,14 @@ "color":"1" }, { - "id":"dec8df1808a4f9b9", + "id":"d6da653b113626d6", "type":"text", - "text":"~~치장 화생방보호의 3호 81개 수령,이승민~~", + "text":"![[검차#‼️ 12. 29. 검차확인‼️]]", "styleAttributes":{}, - "x":454, - "y":72990, - "width":427, - "height":60 - }, - { - "id":"5cbfbf319fab81e7", - "type":"text", - "text":"# 7.13(월)", - "styleAttributes":{}, - "x":454, - "y":72930, - "width":428, - "height":60 + "x":-40, + "y":72940, + "width":382, + "height":340 }, { "id":"8edf7a0bf9d8fbdc", @@ -14353,6 +14341,26 @@ "width":382, "height":60 }, + { + "id":"842f931940bac140", + "type":"text", + "text":"[[장비]] 보급예정", + "styleAttributes":{}, + "x":-40, + "y":73280, + "width":382, + "height":60 + }, + { + "id":"72e980ce0250709a", + "type":"text", + "text":"[[보급품 수령 , 분배, 반납]] 현황", + "styleAttributes":{}, + "x":-40, + "y":73340, + "width":382, + "height":65 + }, { "id":"c452c6769a0ac81d", "type":"text", @@ -14386,25 +14394,25 @@ }, {"id":"aca9f04b80312249","type":"file","file":"부대운영진단.md","x":-500,"y":72940,"width":460,"height":1211}, { - "id":"33475c4e61515fbb", + "id":"6e6859ddaab3346d", "type":"text", - "text":"~~병영식당회의,양지선(28연대 지원관련 업체 애로사항 청취)~~ \n~~김경만 원사님 01027762597~~", + "text":"~~병영식당 본관 냉온풍기 추가 설치 건의~~\n~~(훈련소 군수과로..)~~ \n~~기존에 영선대에서 전기사용량으로 인해 제한된다고 했으나, 전기튀김기를 안써서 전기용량이 많이 남아 사용가능함.~~", "styleAttributes":{}, - "x":882, - "y":73050, - "width":428, - "height":90, - "color":"1" + "x":884, + "y":73420, + "width":423, + "height":160 }, { - "id":"56ef3cf915085369", + "id":"9ecaf4ce2578a91e", "type":"text", - "text":"~~발전기 기술검사,군지대 임헌준~~", + "text":"'26년 시설물 정기 자체관리 대상시설 안전점검 지시(군수과-1559 '26.3.26)\n안전점검 미실시 부대는 이번주까지 실시하고 결과를 국방시설통합정보체계에 입력 바랍니다. ", "styleAttributes":{}, - "x":882, - "y":72990, - "width":427, - "height":60 + "x":884, + "y":73285, + "width":426, + "height":135, + "color":"1" }, { "id":"a2a8dee66e189e9b", @@ -14427,33 +14435,34 @@ "height":85 }, { - "id":"9ecaf4ce2578a91e", + "id":"33475c4e61515fbb", "type":"text", - "text":"'26년 시설물 정기 자체관리 대상시설 안전점검 지시(군수과-1559 '26.3.26)\n안전점검 미실시 부대는 이번주까지 실시하고 결과를 국방시설통합정보체계에 입력 바랍니다. ", + "text":"~~병영식당회의,양지선(28연대 지원관련 업체 애로사항 청취)~~ \n~~김경만 원사님 01027762597~~", "styleAttributes":{}, - "x":884, - "y":73285, - "width":426, - "height":135, + "x":882, + "y":73050, + "width":428, + "height":90, "color":"1" }, { - "id":"6e6859ddaab3346d", + "id":"8e7f3e930d96bba6", "type":"text", - "text":"~~병영식당 본관 냉온풍기 추가 설치 건의~~\n~~(훈련소 군수과로..)~~ \n~~기존에 영선대에서 전기사용량으로 인해 제한된다고 했으나, 전기튀김기를 안써서 전기용량이 많이 남아 사용가능함.~~", + "text":"~~사업계획서 작성(냉난방기관련)~~", "styleAttributes":{}, - "x":884, - "y":73420, - "width":423, - "height":160 + "x":1310, + "y":73050, + "width":425, + "height":60, + "color":"1" }, { - "id":"ce9b37016527745c", + "id":"56ef3cf915085369", "type":"text", - "text":"# 7.14(화)", + "text":"~~발전기 기술검사,군지대 임헌준~~", "styleAttributes":{}, "x":882, - "y":72930, + "y":72990, "width":427, "height":60 }, @@ -14469,15 +14478,24 @@ "color":"1" }, { - "id":"8e7f3e930d96bba6", + "id":"dec8df1808a4f9b9", "type":"text", - "text":"~~사업계획서 작성(냉난방기관련)~~", + "text":"~~치장 화생방보호의 3호 81개 수령,이승민~~", "styleAttributes":{}, - "x":1310, - "y":73050, - "width":425, - "height":60, - "color":"1" + "x":454, + "y":72990, + "width":427, + "height":60 + }, + { + "id":"ce9b37016527745c", + "type":"text", + "text":"# 7.14(화)", + "styleAttributes":{}, + "x":882, + "y":72930, + "width":427, + "height":60 }, { "id":"257a65751dad159d", @@ -14490,24 +14508,24 @@ "height":60 }, { - "id":"825038b1fdb4bc16", + "id":"5cbfbf319fab81e7", "type":"text", - "text":"# 7.16(목)", + "text":"# 7.13(월)", "styleAttributes":{}, - "x":1736, + "x":454, "y":72930, - "width":410, + "width":428, "height":60 }, { - "id":"15a60812c9f0f681", + "id":"4d4e6194de9deaf6", "type":"text", - "text":"부대사 종합,박병도", + "text":"~~수통불량 파악,박형주~~", "styleAttributes":{}, - "x":1736, - "y":72990, - "width":409, - "height":60, + "x":1735, + "y":73170, + "width":411, + "height":70, "color":"1" }, { @@ -14521,6 +14539,17 @@ "height":60, "color":"1" }, + { + "id":"15a60812c9f0f681", + "type":"text", + "text":"부대사 종합,박병도", + "styleAttributes":{}, + "x":1736, + "y":72990, + "width":409, + "height":60, + "color":"1" + }, { "id":"a15a5cd51cb0c8f9", "type":"text", @@ -14532,15 +14561,14 @@ "height":60 }, { - "id":"4d4e6194de9deaf6", + "id":"825038b1fdb4bc16", "type":"text", - "text":"~~수통불량 파악,박형주~~", + "text":"# 7.16(목)", "styleAttributes":{}, - "x":1735, - "y":73170, - "width":411, - "height":70, - "color":"1" + "x":1736, + "y":72930, + "width":410, + "height":60 }, { "id":"1259d4eda57411bd", @@ -14573,15 +14601,277 @@ "height":60 }, { - "id":"48c4be1b17719fe0", + "id":"b0dcd5b9ad89bccf", "type":"text", - "text":"# 7.20(월)", + "text":"# 7.24.(금)", "styleAttributes":{}, - "x":452, + "x":2145, "y":74104, "width":428, "height":60 }, + { + "id":"b0f5500e6a45555e", + "type":"text", + "text":"# 7.25.(토) , 당직근무", + "styleAttributes":{}, + "x":2573, + "y":74104, + "width":428, + "height":60 + }, + { + "id":"436d3c82372b2110", + "type":"text", + "text":"# 7.22.(수) ", + "styleAttributes":{}, + "x":1307, + "y":74104, + "width":427, + "height":60 + }, + { + "id":"eafbd5e02342c859", + "type":"text", + "text":"# 7.23(목)", + "styleAttributes":{}, + "x":1734, + "y":74104, + "width":410, + "height":60 + }, + { + "id":"751bc93034cd1dc6", + "type":"text", + "text":"포장재료 보급(비닐봉투8000)1500,9번창고,황인찬", + "styleAttributes":{}, + "x":1736, + "y":74164, + "width":411, + "height":60, + "color":"1" + }, + { + "id":"996d62fb187614ee", + "type":"text", + "text":"@@스틸그레이팅 50개 불줄예정@@\n형태: 날개형\n크기 :폭48.5cm, 날개포함 67cm\n소요 있으신곳 의견바랍니다\n(의견 없으시면 1교 막사뒤, 우측 배수로 쪽 설치예정)", + "styleAttributes":{}, + "x":1307, + "y":74164, + "width":431, + "height":60 + }, + { + "id":"a035ce73bc263acb", + "type":"text", + "text":"지휘관 월간 탄약고 점검(0830-0910,1310-)", + "styleAttributes":{}, + "x":2146, + "y":74224, + "width":427, + "height":60, + "color":"1" + }, + { + "id":"913de5c11ce95fe9", + "type":"text", + "text":"교육사,3분기 제기능 부대진단 계획,유재형\nCctv.열쇠이ㅝㄴ화,무기탄약고관리\n[교육사 제기능 군수분야 부대진단]\n\n1. 일정 : 7. 23. (목)\n2. 점검관 : 교육사 기능별 담당자\n * 계획, 보급, 장비정비, 수송, 환경담당\n3. 진단중점\n 가. 총기탄약관리 시스템\n 나. 식중독 예방활동\n 다. 전반기 군수통합지도방문 \n 후속조치 사항\n(별) 모든 분야 현장점검 예정입니다.\n(별) 점검표는 메모보고(7. 15 발송)\n 전파 완료\n(별) 훈련소 군수과 7. 21(화)~22(수) \n 자체 점검예정", + "styleAttributes":{}, + "x":1310, + "y":74224, + "width":835, + "height":176, + "color":"1" + }, + { + "id":"df502421a4a5b1ad", + "type":"text", + "text":"대량유류 소요파악(연무5동), 납품예정 8.6(목)", + "styleAttributes":{}, + "x":2147, + "y":74282, + "width":426, + "height":60, + "color":"2" + }, + { + "id":"5631c9d058b537a5", + "type":"text", + "text":"치장 보호의 재산현황보고,한서욱\n☆4호 8.21(금) 보급예정", + "styleAttributes":{}, + "x":2147, + "y":74340, + "width":426, + "height":60, + "color":"1" + }, + { + "id":"8ce1fe59ef63b4d8", + "type":"text", + "text":"방탄헬멧 (부수기대포함) 노후교체 보급,1500,9번창고, 방탄120,부유대 조립체(턱끈세트)1200\n방탄30,부수기재300", + "styleAttributes":{}, + "x":1736, + "y":74400, + "width":384, + "height":60, + "color":"1" + }, + { + "id":"9f0a3a090d651d5c", + "type":"text", + "text":"군수예산 계획보고(4건),최병규", + "styleAttributes":{}, + "x":1310, + "y":74400, + "width":424, + "height":60, + "color":"6" + }, + { + "id":"0182cb44eb208fc5", + "type":"text", + "text":"12중대 행보관교체전 재물조사 계획 보고 ", + "styleAttributes":{}, + "x":2147, + "y":74400, + "width":426, + "height":60 + }, + { + "id":"28f1fa9d2b601b2c", + "type":"text", + "text":"26년 3분기 바이러스 일제점검 결과 보고,~23, 이명세", + "styleAttributes":{}, + "x":1310, + "y":74460, + "width":834, + "height":60, + "color":"1" + }, + { + "id":"b9c9a3068c2100e9", + "type":"text", + "text":"8월 한시적인가 소요보고,정성국", + "styleAttributes":{}, + "x":1310, + "y":74520, + "width":1265, + "height":60 + }, + { + "id":"44d1aef0a124dc16", + "type":"text", + "text":"7월 사이버 보안진단의 날, 이명세", + "styleAttributes":{}, + "x":1734, + "y":74520, + "width":386, + "height":60, + "color":"4" + }, + { + "id":"02ec7c06cd9e4800", + "type":"text", + "text":"# 7.31.(금) , 당직근무", + "styleAttributes":{}, + "x":2147, + "y":74600, + "width":428, + "height":60 + }, + { + "id":"b41691f88beec8ee", + "type":"text", + "text":"# 7.29.(수) ", + "styleAttributes":{}, + "x":1309, + "y":74600, + "width":427, + "height":60 + }, + { + "id":"879256e154697497", + "type":"text", + "text":"# 7.30(목)", + "styleAttributes":{}, + "x":1736, + "y":74600, + "width":410, + "height":60 + }, + { + "id":"c8c56c988458cfe6", + "type":"text", + "text":"26년 전반기 소방정밀점검 결과보고(영선대 지원 포함), 공문보고,위밈보수필요항목 완료시 공문보고", + "styleAttributes":{}, + "x":1310, + "y":74660, + "width":424, + "height":80 + }, + { + "id":"fb08523183c0f2ee", + "type":"text", + "text":"26년 예초기날(35),안면보호기(6), 무릎보호대(6),여름이불(6) 불출,", + "styleAttributes":{}, + "x":1738, + "y":74660, + "width":406, + "height":80, + "color":"1" + }, + { + "id":"e8fa123957c69d52", + "type":"text", + "text":"민주우의와 헌법수호 온라인교윸 수강후 결과보고,박병도", + "styleAttributes":{}, + "x":458, + "y":74860, + "width":1270, + "height":60, + "color":"3" + }, + { + "id":"e449f4c886b08dd1", + "type":"text", + "text":"# 7.28(화)", + "styleAttributes":{}, + "x":883, + "y":74600, + "width":426, + "height":60 + }, + { + "id":"aef49d2b0db889a9", + "type":"text", + "text":"통합이동정비,3교육대,오전", + "styleAttributes":{}, + "x":883, + "y":74660, + "width":426, + "height":60 + }, + { + "id":"dc99d5c178e0e9a4", + "type":"text", + "text":"26년 소화기 4종보급(3.3kg 7개) 황인찬\n- 1교 3중대행정반강의실,4중대5생옆,1중대4생앞\n- 3교 12중대 8생\n- 총4개주고, 3개 ?", + "styleAttributes":{}, + "x":886, + "y":74720, + "width":424, + "height":170, + "color":"1" + }, + { + "id":"d29b26114ef48fd2", + "type":"text", + "text":"○ 실시사항(26.07.20.월)\n공사명 : 30연대 행장반 화장실보수\n1. 작업내용\n 1)천정공사(돔설치) 3개중대\n2)환풍기 및 전등설치\n3)바이오실리콘 마감\n2. 장비(차량)/인원 : 차량2대 / 인원2명\n3. 진도율\n 4) 내용 :65% \n\n○ 예정사항(26.07.21월)\n공사명 : 30연대 행정반 화장실보수\n1. 작업내용\n 2) 위생기구설치\n3. 장비(차량)/인원 : 차량3대 / 인원3명\n4. 진도율\n 5) 내용 :80%", + "styleAttributes":{}, + "x":886, + "y":74164, + "width":421, + "height":116 + }, { "id":"dbb480ddcf69e06d", "type":"text", @@ -14592,26 +14882,6 @@ "width":426, "height":60 }, - { - "id":"998c87153330dfba", - "type":"text", - "text":"기 전파드린데로 \n이번주는 직할부대 \n다음주는 연대를 대상으로 \n혹서기(폭염) 대비 선제적 안전점검을 시행합니다 \n참고 바랍니다 ", - "styleAttributes":{}, - "x":453, - "y":74164, - "width":433, - "height":156 - }, - { - "id":"536a9d7166cd4794", - "type":"text", - "text":"~~국방통합시설정보체계 부대별 보유시설물 제원관리 현행화 지시에 따른 메모 전파하였습니다.~~\n~~작성기한 : 7.22.(수) 한~~\n~~메모의견은 : 7.24.(금) 한~~\n~~기한내 부탁드리며 언제든지 전화주세요.~~ ", - "styleAttributes":{}, - "x":455, - "y":74320, - "width":431, - "height":140 - }, { "id":"019616b6e06e119a", "type":"text", @@ -14623,23 +14893,13 @@ "height":60 }, { - "id":"a37078b75afcc614", + "id":"622d7971e91bd5a2", "type":"text", - "text":"혹서기 수시 안전점검 자체 확인", + "text":"민간위탁업체 전환 추진토의, 1400,김낙중중영웅실", "styleAttributes":{}, - "x":458, - "y":74460, - "width":428, - "height":60 - }, - { - "id":"37ec22e00dac8dda", - "type":"text", - "text":"헬스장 공사()", - "styleAttributes":{}, - "x":458, - "y":74520, - "width":422, + "x":886, + "y":74380, + "width":394, "height":60 }, { @@ -14654,53 +14914,45 @@ "color":"1" }, { - "id":"e449f4c886b08dd1", + "id":"d5e6d87b1506b6b4", "type":"text", - "text":"# 7.28(화)", + "text":"전투조끼,개인천막 노후교체 소요종합, 박형주", "styleAttributes":{}, - "x":883, - "y":74600, - "width":426, - "height":60 + "x":1310, + "y":74740, + "width":428, + "height":65, + "color":"1" }, { - "id":"79df46732087e313", + "id":"1b02ea7cdd09a7e3", "type":"text", - "text":"# 7.27(월)", + "text":"# 8.4(화)", "styleAttributes":{}, - "x":455, - "y":74600, + "x":882, + "y":75180, "width":428, "height":60 }, { - "id":"aef49d2b0db889a9", + "id":"98ec56681ea57652", "type":"text", - "text":"통합이동정비,3교육대", + "text":"12중대 행정보급관 교체전 재물조사\n각교육대별 1명씩 지원,임시후임최우석중사", "styleAttributes":{}, - "x":883, - "y":74660, - "width":426, - "height":60 + "x":882, + "y":75240, + "width":428, + "height":60, + "color":"1" }, { - "id":"557857d937f951af", + "id":"66351f0031e74874", "type":"text", - "text":"부대사작성", + "text":"# 8.5(수)", "styleAttributes":{}, - "x":180, - "y":74500, - "width":260, - "height":60 - }, - { - "id":"ff68f31ebd5fd285", - "type":"text", - "text":"사업비집행", - "styleAttributes":{}, - "x":180, - "y":74560, - "width":260, + "x":1310, + "y":75180, + "width":428, "height":60 } ], diff --git a/30연대 26년도 예산.md b/30연대 26년도 예산.md index 2da5b90..0a5cbc4 100644 --- a/30연대 26년도 예산.md +++ b/30연대 26년도 예산.md @@ -24,8 +24,12 @@ 6. ~~3차~~ 7. 3차사용(공통,수정), 집행전금액 19299360 집행액 1320000 집행후금액 17979360 8. 4차사용(공통), 집행전금액 17979360 집행액 286000 집행후금액 17693360 -9. -10. +9. 5차 집행, 국솥,오븐기,온장고, 집행전금액 17693360 집행액 568200 집행후금액 17125160 +10. 6차 집행, 제빙기, 집행전금액 17125160 집행액 750000 집행후금액 16375160 +11. 7차 집행, 오븐기, 집행전금액 16375160 집행액 275000집행후금액 16100160 +12. +13. +14. # 물자유지비(집행후 국방군수통합정보체계 근거입력) 1. 2300-2332-305-001-000-000-210-01-0010 2. 부대비품유지비 @@ -66,7 +70,10 @@ 4. 건조기 청소 100×13만 = 13000000 30. 22차 집행, 11중대 건조기, 집행전금액 3970200집행액 114000집행후금액 3856200 31. 23차 집행, 6중대 에어컨, 집행전금액 3856200집행액 2030000집행후금액 1826200 -32. +32. 24차 집행, 9중대 건조기, 집행전금액 1826200 집행액 200900 집행후금액 1625300 +33. 25차 집행, 1교 냉장고(쇼계이스), 집행전금액 1625300 집행액 1200000 집행후금액 425300 +34. 26차 집행, 10중대 건조기, 집행전금액 425300 집행액 48200 집행후금액 377100 +35. 헌재(26.7.23 1630기준) 잔액 1313600 # 보온대 1. 2300-2332-302-003-000-000-210-11 @@ -81,7 +88,8 @@ 6. 잔액 89024080 7. 3차(4월_2차)집행, 집행전금액 89024080 집행액 21825400 집행후금액 67198680 8. 4차(6.6)집행, 집행전금액 67198680 집행액 27435000 집행후금액 39763680 -9. +9. 5차(7.25)집행, 집행전금액 39763680 집행액 28538600 집행후금액 11225080 +10. # 부대운영자재비 1. 250만원 @@ -157,8 +165,17 @@ 42. 35차집행, 1교 3분기 통합집행, 집행전금액9459550 집행액 2020700집행후금액 7438850 43. 36차 집행, 2교 3분기 통합집행, 집행전금액 7438850집행액 2000000집행후금액 5438850 44. 37차집행, 3교 3분기 통합집행, 집행전금액5438850 집행액 ~~2012100~~ , 2038500 집행후금액 ~~3426750~~ 3400350 -45. 38차 집행, 병영식당 발전기, 집행전금액 3400350 집행액 165000 집행후금액 3235350 -46. +45. 배정, 2000000 +46. 38차 집행, 2중대 유리교체, 집행전금액5426750 집행액 174900집행후금액 5251850 +47. 39차 집행, 본부중대 소방물품 구매, 집행전금액 5251850 집행액 83500 집행후금액 5168350 +48. 40차 집행, 병영식당 미크럼방지작업, 집행전금액 5168950 집행액 329800 집행후금액 4838550 +49. 41차 집행, 본부중대 사무실 보수, 집행전금액 4838550 집행액 287800 집행후금액 4550750 +50. 42차 집행, 병영식당 비상발전기, 집행전금액 4550750 집행액 165000 집행후금액 4385750 +51. 43차 집행, 병영식당 시설보수, 집행전금액 4385750 집행액 142100 집행후금액 4243650 +52. 44차 집행, 1교육대 목욕탕펌프교체, 집행전금액 4243650 집행액 ~~317000~~ 377000 +53. 집행후금액 3926650 +54. 벼영식당 시스템 에어컨 정비입금해야함 1958000, 건의중 +55. 현재잔액(26.7.23 1630기준) 3840250 # 재난 및 안전관리 예산(301-002-210-09,11) 1. 재난예방 및 보수비(2300-2337-301-002-000-000-210-11)