134 lines
673 KiB
JavaScript
134 lines
673 KiB
JavaScript
/*
|
||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
if you want to view the source visit the plugins github repository
|
||
*/
|
||
|
||
var by=Object.create;var Na=Object.defineProperty;var wy=Object.getOwnPropertyDescriptor;var Ey=Object.getOwnPropertyNames;var Sy=Object.getPrototypeOf,xy=Object.prototype.hasOwnProperty;var Pu=t=>Na(t,"__esModule",{value:!0});var ky=(t,n)=>()=>(t&&(n=t(t=0)),n),rt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Oi=(t,n)=>{for(var e in n)Na(t,e,{get:n[e],enumerable:!0})},_y=(t,n,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ey(n))!xy.call(t,r)&&r!=="default"&&Na(t,r,{get:()=>n[r],enumerable:!(e=wy(n,r))||e.enumerable});return t},me=t=>_y(Pu(Na(t!=null?by(Sy(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var It=rt((Nn,Td)=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});function En(t){return typeof t=="object"&&!("toString"in t)?Object.prototype.toString.call(t).slice(8,-1):t}var nb=typeof process=="object"&&!0;function pn(t,n){if(!t)throw nb?new Error("Invariant failed"):new Error(n())}Nn.invariant=pn;var sl=Object.prototype.hasOwnProperty,rb=Array.prototype.splice,ib=Object.prototype.toString;function xr(t){return ib.call(t).slice(8,-1)}var qa=Object.assign||function(t,n){return ll(n).forEach(function(e){sl.call(n,e)&&(t[e]=n[e])}),t},ll=typeof Object.getOwnPropertySymbols=="function"?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function or(t){return Array.isArray(t)?qa(t.constructor(t.length),t):xr(t)==="Map"?new Map(t):xr(t)==="Set"?new Set(t):t&&typeof t=="object"?qa(Object.create(Object.getPrototypeOf(t)),t):t}var Sd=function(){function t(){this.commands=qa({},ab),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(n,e){return n===e},this.update.newContext=function(){return new t().update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(n){this.update.isEquals=n},enumerable:!0,configurable:!0}),t.prototype.extend=function(n,e){this.commands[n]=e},t.prototype.update=function(n,e){var r=this,i=typeof e=="function"?{$apply:e}:e;Array.isArray(n)&&Array.isArray(i)||pn(!Array.isArray(i),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),pn(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(r.commands).join(", ")+".")});var a=n;return ll(i).forEach(function(o){if(sl.call(r.commands,o)){var s=n===a;a=r.commands[o](i[o],a,i,n),s&&r.isEquals(a,n)&&(a=n)}else{var u=xr(n)==="Map"?r.update(n.get(o),i[o]):r.update(n[o],i[o]),l=xr(a)==="Map"?a.get(o):a[o];(!r.isEquals(u,l)||typeof u=="undefined"&&!sl.call(n,o))&&(a===n&&(a=or(n)),xr(a)==="Map"?a.set(o,u):a[o]=u)}}),a},t}();Nn.Context=Sd;var ab={$push:function(t,n,e){return xd(n,e,"$push"),t.length?n.concat(t):n},$unshift:function(t,n,e){return xd(n,e,"$unshift"),t.length?t.concat(n):n},$splice:function(t,n,e,r){return ob(n,e),t.forEach(function(i){kd(i),n===r&&i.length&&(n=or(r)),rb.apply(n,i)}),n},$set:function(t,n,e){return lb(e),t},$toggle:function(t,n){Ki(t,"$toggle");var e=t.length?or(n):n;return t.forEach(function(r){e[r]=!n[r]}),e},$unset:function(t,n,e,r){return Ki(t,"$unset"),t.forEach(function(i){Object.hasOwnProperty.call(n,i)&&(n===r&&(n=or(r)),delete n[i])}),n},$add:function(t,n,e,r){return _d(n,"$add"),Ki(t,"$add"),xr(n)==="Map"?t.forEach(function(i){var a=i[0],o=i[1];n===r&&n.get(a)!==o&&(n=or(r)),n.set(a,o)}):t.forEach(function(i){n===r&&!n.has(i)&&(n=or(r)),n.add(i)}),n},$remove:function(t,n,e,r){return _d(n,"$remove"),Ki(t,"$remove"),t.forEach(function(i){n===r&&n.has(i)&&(n=or(r)),n.delete(i)}),n},$merge:function(t,n,e,r){return cb(n,t),ll(t).forEach(function(i){t[i]!==n[i]&&(n===r&&(n=or(r)),n[i]=t[i])}),n},$apply:function(t,n){return sb(t),t(n)}},cl=new Sd;Nn.isEquals=cl.update.isEquals;Nn.extend=cl.extend;Nn.default=cl.update;Nn.default.default=Td.exports=qa(Nn.default,Nn);function xd(t,n,e){pn(Array.isArray(t),function(){return"update(): expected target of "+En(e)+" to be an array; got "+En(t)+"."}),Ki(n[e],e)}function Ki(t,n){pn(Array.isArray(t),function(){return"update(): expected spec of "+En(n)+" to be an array; got "+En(t)+". Did you forget to wrap your parameter in an array?"})}function ob(t,n){pn(Array.isArray(t),function(){return"Expected $splice target to be an array; got "+En(t)}),kd(n.$splice)}function kd(t){pn(Array.isArray(t),function(){return"update(): expected spec of $splice to be an array of arrays; got "+En(t)+". Did you forget to wrap your parameters in an array?"})}function sb(t){pn(typeof t=="function",function(){return"update(): expected spec of $apply to be a function; got "+En(t)+"."})}function lb(t){pn(Object.keys(t).length===1,function(){return"Cannot have more than one key in an object with $set"})}function cb(t,n){pn(n&&typeof n=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+En(n)}),pn(t&&typeof t=="object",function(){return"update(): $merge expects a target of type 'object'; got "+En(t)})}function _d(t,n){var e=xr(t);pn(e==="Map"||e==="Set",function(){return"update(): "+En(n)+" expects a target of type Set or Map; got "+En(e)})}});var Ad=rt((L_,Dd)=>{"use strict";var ub=function(n){return db(n)&&!fb(n)};function db(t){return!!t&&typeof t=="object"}function fb(t){var n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||mb(t)}var hb=typeof Symbol=="function"&&Symbol.for,pb=hb?Symbol.for("react.element"):60103;function mb(t){return t.$$typeof===pb}function gb(t){return Array.isArray(t)?[]:{}}function $i(t,n){return n.clone!==!1&&n.isMergeableObject(t)?Gr(gb(t),t,n):t}function vb(t,n,e){return t.concat(n).map(function(r){return $i(r,e)})}function yb(t,n){if(!n.customMerge)return Gr;var e=n.customMerge(t);return typeof e=="function"?e:Gr}function bb(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return t.propertyIsEnumerable(n)}):[]}function Md(t){return Object.keys(t).concat(bb(t))}function Cd(t,n){try{return n in t}catch(e){return!1}}function wb(t,n){return Cd(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))}function Eb(t,n,e){var r={};return e.isMergeableObject(t)&&Md(t).forEach(function(i){r[i]=$i(t[i],e)}),Md(n).forEach(function(i){wb(t,i)||(Cd(t,i)&&e.isMergeableObject(n[i])?r[i]=yb(i,e)(t[i],n[i],e):r[i]=$i(n[i],e))}),r}function Gr(t,n,e){e=e||{},e.arrayMerge=e.arrayMerge||vb,e.isMergeableObject=e.isMergeableObject||ub,e.cloneUnlessOtherwiseSpecified=$i;var r=Array.isArray(n),i=Array.isArray(t),a=r===i;return a?r?e.arrayMerge(t,n,e):Eb(t,n,e):$i(n,e)}Gr.all=function(n,e){if(!Array.isArray(n))throw new Error("first argument should be an array");return n.reduce(function(r,i){return Gr(r,i,e)},{})};var Sb=Gr;Dd.exports=Sb});var to=rt(ot=>{"use strict";var wl=32;ot.INT_BITS=wl;ot.INT_MAX=2147483647;ot.INT_MIN=-1<<wl-1;ot.sign=function(t){return(t>0)-(t<0)};ot.abs=function(t){var n=t>>wl-1;return(t^n)-n};ot.min=function(t,n){return n^(t^n)&-(t<n)};ot.max=function(t,n){return t^(t^n)&-(t<n)};ot.isPow2=function(t){return!(t&t-1)&&!!t};ot.log2=function(t){var n,e;return n=(t>65535)<<4,t>>>=n,e=(t>255)<<3,t>>>=e,n|=e,e=(t>15)<<2,t>>>=e,n|=e,e=(t>3)<<1,t>>>=e,n|=e,n|t>>1};ot.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0};ot.popCount=function(t){return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24};function qd(t){var n=32;return t&=-t,t&&n--,t&65535&&(n-=16),t&16711935&&(n-=8),t&252645135&&(n-=4),t&858993459&&(n-=2),t&1431655765&&(n-=1),n}ot.countTrailingZeros=qd;ot.nextPow2=function(t){return t+=t===0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1};ot.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t-(t>>>1)};ot.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,t&=15,27030>>>t&1};var Yi=new Array(256);(function(t){for(var n=0;n<256;++n){var e=n,r=n,i=7;for(e>>>=1;e;e>>>=1)r<<=1,r|=e&1,--i;t[n]=r<<i&255}})(Yi);ot.reverse=function(t){return Yi[t&255]<<24|Yi[t>>>8&255]<<16|Yi[t>>>16&255]<<8|Yi[t>>>24&255]};ot.interleave2=function(t,n){return t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,t|n<<1};ot.deinterleave2=function(t,n){return t=t>>>n&1431655765,t=(t|t>>>1)&858993459,t=(t|t>>>2)&252645135,t=(t|t>>>4)&16711935,t=(t|t>>>16)&65535,t<<16>>16};ot.interleave3=function(t,n,e){return t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,t|=n<<1,e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t|e<<2};ot.deinterleave3=function(t,n){return t=t>>>n&1227133513,t=(t|t>>>2)&3272356035,t=(t|t>>>4)&251719695,t=(t|t>>>8)&4278190335,t=(t|t>>>16)&1023,t<<22>>22};ot.nextCombination=function(t){var n=t|t-1;return n+1|(~n&-~n)-1>>>qd(t)+1}});var Gd=rt((u1,Jd)=>{"use strict";function Yd(t,n,e){var r=t[e]|0;if(r<=0)return[];var i=new Array(r),a;if(e===t.length-1)for(a=0;a<r;++a)i[a]=n;else for(a=0;a<r;++a)i[a]=Yd(t,n,e+1);return i}function Pb(t,n){var e,r;for(e=new Array(t),r=0;r<t;++r)e[r]=n;return e}function Ob(t,n){switch(typeof n=="undefined"&&(n=0),typeof t){case"number":if(t>0)return Pb(t|0,n);break;case"object":if(typeof t.length=="number")return Yd(t,n,0);break}return[]}Jd.exports=Ob});var vf={};Oi(vf,{Buffer:()=>Z,INSPECT_MAX_BYTES:()=>tf,SlowBuffer:()=>jb,isBuffer:()=>mf,kMaxLength:()=>Kb});function Qd(){El=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,e=t.length;n<e;++n)Hn[n]=t[n],mn[t.charCodeAt(n)]=n;mn["-".charCodeAt(0)]=62,mn["_".charCodeAt(0)]=63}function Fb(t){El||Qd();var n,e,r,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Nb(s*3/4-a),r=a>0?s-4:s;var u=0;for(n=0,e=0;n<r;n+=4,e+=3)i=mn[t.charCodeAt(n)]<<18|mn[t.charCodeAt(n+1)]<<12|mn[t.charCodeAt(n+2)]<<6|mn[t.charCodeAt(n+3)],o[u++]=i>>16&255,o[u++]=i>>8&255,o[u++]=i&255;return a===2?(i=mn[t.charCodeAt(n)]<<2|mn[t.charCodeAt(n+1)]>>4,o[u++]=i&255):a===1&&(i=mn[t.charCodeAt(n)]<<10|mn[t.charCodeAt(n+1)]<<4|mn[t.charCodeAt(n+2)]>>2,o[u++]=i>>8&255,o[u++]=i&255),o}function Rb(t){return Hn[t>>18&63]+Hn[t>>12&63]+Hn[t>>6&63]+Hn[t&63]}function Hb(t,n,e){for(var r,i=[],a=n;a<e;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Rb(r));return i.join("")}function Xd(t){El||Qd();for(var n,e=t.length,r=e%3,i="",a=[],o=16383,s=0,u=e-r;s<u;s+=o)a.push(Hb(t,s,s+o>u?u:s+o));return r===1?(n=t[e-1],i+=Hn[n>>2],i+=Hn[n<<4&63],i+="=="):r===2&&(n=(t[e-2]<<8)+t[e-1],i+=Hn[n>>10],i+=Hn[n>>4&63],i+=Hn[n<<2&63],i+="="),a.push(i),a.join("")}function no(t,n,e,r,i){var a,o,s=i*8-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=e?i-1:0,f=e?-1:1,h=t[n+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=a*256+t[n+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=o*256+t[n+d],d+=f,c-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(h?-1:1)*Infinity;o=o+Math.pow(2,r),a=a-l}return(h?-1:1)*o*Math.pow(2,a-r)}function Zd(t,n,e,r,i,a){var o,s,u,l=a*8-i-1,c=(1<<l)-1,d=c>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,p=r?1:-1,g=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===Infinity?(s=isNaN(n)?1:0,o=c):(o=Math.floor(Math.log(n)/Math.LN2),n*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?n+=f/u:n+=f*Math.pow(2,1-d),n*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(n*u-1)*Math.pow(2,i),o=o+d):(s=n*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;t[e+h]=s&255,h+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[e+h]=o&255,h+=p,o/=256,l-=8);t[e+h-p]|=g*128}function ro(){return Z.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function qn(t,n){if(ro()<n)throw new RangeError("Invalid typed array length");return Z.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n),t.__proto__=Z.prototype):(t===null&&(t=new Z(n)),t.length=n),t}function Z(t,n,e){if(!Z.TYPED_ARRAY_SUPPORT&&!(this instanceof Z))return new Z(t,n,e);if(typeof t=="number"){if(typeof n=="string")throw new Error("If encoding is specified then the first argument must be a string");return Sl(this,t)}return nf(this,t,n,e)}function nf(t,n,e,r){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer?zb(t,n,e,r):typeof n=="string"?Ub(t,n,e):Vb(t,n)}function rf(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function $b(t,n,e,r){return rf(n),n<=0?qn(t,n):e!==void 0?typeof r=="string"?qn(t,n).fill(e,r):qn(t,n).fill(e):qn(t,n)}function Sl(t,n){if(rf(n),t=qn(t,n<0?0:kl(n)|0),!Z.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function Ub(t,n,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Z.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=af(n,e)|0;t=qn(t,r);var i=t.write(n,e);return i!==r&&(t=t.slice(0,i)),t}function xl(t,n){var e=n.length<0?0:kl(n.length)|0;t=qn(t,e);for(var r=0;r<e;r+=1)t[r]=n[r]&255;return t}function zb(t,n,e,r){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");return e===void 0&&r===void 0?n=new Uint8Array(n):r===void 0?n=new Uint8Array(n,e):n=new Uint8Array(n,e,r),Z.TYPED_ARRAY_SUPPORT?(t=n,t.__proto__=Z.prototype):t=xl(t,n),t}function Vb(t,n){if(Bn(n)){var e=kl(n.length)|0;return t=qn(t,e),t.length===0||n.copy(t,0,0,e),t}if(n){if(typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||uw(n.length)?qn(t,0):xl(t,n);if(n.type==="Buffer"&&ef(n.data))return xl(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function kl(t){if(t>=ro())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ro().toString(16)+" bytes");return t|0}function jb(t){return+t!=t&&(t=0),Z.alloc(+t)}function Bn(t){return!!(t!=null&&t._isBuffer)}function af(t,n){if(Bn(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return oo(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return pf(t).length;default:if(r)return oo(t).length;n=(""+n).toLowerCase(),r=!0}}function Wb(t,n,e){var r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,n>>>=0,e<=n))return"";for(t||(t="utf8");;)switch(t){case"hex":return nw(this,n,e);case"utf8":case"utf-8":return cf(this,n,e);case"ascii":return ew(this,n,e);case"latin1":case"binary":return tw(this,n,e);case"base64":return Xb(this,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rw(this,n,e);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _r(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function of(t,n,e,r,i){if(t.length===0)return-1;if(typeof e=="string"?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof n=="string"&&(n=Z.from(n,r)),Bn(n))return n.length===0?-1:sf(t,n,e,r,i);if(typeof n=="number")return n=n&255,Z.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,n,e):Uint8Array.prototype.lastIndexOf.call(t,n,e):sf(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function sf(t,n,e,r,i){var a=1,o=t.length,s=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||n.length<2)return-1;a=2,o/=2,s/=2,e/=2}function u(h,p){return a===1?h[p]:h.readUInt16BE(p*a)}var l;if(i){var c=-1;for(l=e;l<o;l++)if(u(t,l)===u(n,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(e+s>o&&(e=o-s),l=e;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(u(t,l+f)!==u(n,f)){d=!1;break}if(d)return l}return-1}function qb(t,n,e,r){e=Number(e)||0;var i=t.length-e;r?(r=Number(r),r>i&&(r=i)):r=i;var a=n.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(n.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function Yb(t,n,e,r){return so(oo(n,t.length-e),t,e,r)}function lf(t,n,e,r){return so(lw(n),t,e,r)}function Jb(t,n,e,r){return lf(t,n,e,r)}function Gb(t,n,e,r){return so(pf(n),t,e,r)}function Qb(t,n,e,r){return so(cw(n,t.length-e),t,e,r)}function Xb(t,n,e){return n===0&&e===t.length?Xd(t):Xd(t.slice(n,e))}function cf(t,n,e){e=Math.min(t.length,e);for(var r=[],i=n;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var u,l,c,d;switch(s){case 1:a<128&&(o=a);break;case 2:u=t[i+1],(u&192)==128&&(d=(a&31)<<6|u&63,d>127&&(o=d));break;case 3:u=t[i+1],l=t[i+2],(u&192)==128&&(l&192)==128&&(d=(a&15)<<12|(u&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:u=t[i+1],l=t[i+2],c=t[i+3],(u&192)==128&&(l&192)==128&&(c&192)==128&&(d=(a&15)<<18|(u&63)<<12|(l&63)<<6|c&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return Zb(r)}function Zb(t){var n=t.length;if(n<=uf)return String.fromCharCode.apply(String,t);for(var e="",r=0;r<n;)e+=String.fromCharCode.apply(String,t.slice(r,r+=uf));return e}function ew(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(t[i]&127);return r}function tw(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(t[i]);return r}function nw(t,n,e){var r=t.length;(!n||n<0)&&(n=0),(!e||e<0||e>r)&&(e=r);for(var i="",a=n;a<e;++a)i+=sw(t[a]);return i}function rw(t,n,e){for(var r=t.slice(n,e),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}function St(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+n>e)throw new RangeError("Trying to access beyond buffer length")}function Jt(t,n,e,r,i,a){if(!Bn(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<a)throw new RangeError('"value" argument is out of bounds');if(e+r>t.length)throw new RangeError("Index out of range")}function io(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(n&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}function ao(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=n>>>(r?i:3-i)*8&255}function df(t,n,e,r,i,a){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ff(t,n,e,r,i){return i||df(t,n,e,4),Zd(t,n,e,r,23,4),e+4}function hf(t,n,e,r,i){return i||df(t,n,e,8),Zd(t,n,e,r,52,8),e+8}function aw(t){if(t=ow(t).replace(iw,""),t.length<2)return"";for(;t.length%4!=0;)t=t+"=";return t}function ow(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function sw(t){return t<16?"0"+t.toString(16):t.toString(16)}function oo(t,n){n=n||Infinity;for(var e,r=t.length,i=null,a=[],o=0;o<r;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(n-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(n-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(n-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(n-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((n-=1)<0)break;a.push(e)}else if(e<2048){if((n-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((n-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((n-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function lw(t){for(var n=[],e=0;e<t.length;++e)n.push(t.charCodeAt(e)&255);return n}function cw(t,n){for(var e,r,i,a=[],o=0;o<t.length&&!((n-=2)<0);++o)e=t.charCodeAt(o),r=e>>8,i=e%256,a.push(i),a.push(r);return a}function pf(t){return Fb(aw(t))}function so(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}function uw(t){return t!==t}function mf(t){return t!=null&&(!!t._isBuffer||gf(t)||dw(t))}function gf(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function dw(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&gf(t.slice(0,0))}var Hn,mn,Nb,El,Bb,ef,tf,Kb,uf,iw,yf=ky(()=>{Hn=[],mn=[],Nb=typeof Uint8Array!="undefined"?Uint8Array:Array,El=!1;Bb={}.toString,ef=Array.isArray||function(t){return Bb.call(t)=="[object Array]"};tf=50;Z.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;Kb=ro();Z.poolSize=8192;Z._augment=function(t){return t.__proto__=Z.prototype,t};Z.from=function(t,n,e){return nf(null,t,n,e)};Z.TYPED_ARRAY_SUPPORT&&(Z.prototype.__proto__=Uint8Array.prototype,Z.__proto__=Uint8Array);Z.alloc=function(t,n,e){return $b(null,t,n,e)};Z.allocUnsafe=function(t){return Sl(null,t)};Z.allocUnsafeSlow=function(t){return Sl(null,t)};Z.isBuffer=mf;Z.compare=function(n,e){if(!Bn(n)||!Bn(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var r=n.length,i=e.length,a=0,o=Math.min(r,i);a<o;++a)if(n[a]!==e[a]){r=n[a],i=e[a];break}return r<i?-1:i<r?1:0};Z.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Z.concat=function(n,e){if(!ef(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return Z.alloc(0);var r;if(e===void 0)for(e=0,r=0;r<n.length;++r)e+=n[r].length;var i=Z.allocUnsafe(e),a=0;for(r=0;r<n.length;++r){var o=n[r];if(!Bn(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};Z.byteLength=af;Z.prototype._isBuffer=!0;Z.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<n;e+=2)_r(this,e,e+1);return this};Z.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<n;e+=4)_r(this,e,e+3),_r(this,e+1,e+2);return this};Z.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<n;e+=8)_r(this,e,e+7),_r(this,e+1,e+6),_r(this,e+2,e+5),_r(this,e+3,e+4);return this};Z.prototype.toString=function(){var n=this.length|0;return n===0?"":arguments.length===0?cf(this,0,n):Wb.apply(this,arguments)};Z.prototype.equals=function(n){if(!Bn(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:Z.compare(this,n)===0};Z.prototype.inspect=function(){var n="",e=tf;return this.length>0&&(n=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(n+=" ... ")),"<Buffer "+n+">"};Z.prototype.compare=function(n,e,r,i,a){if(!Bn(n))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),r===void 0&&(r=n?n.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||r>n.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=r)return 0;if(i>=a)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,i>>>=0,a>>>=0,this===n)return 0;for(var o=a-i,s=r-e,u=Math.min(o,s),l=this.slice(i,a),c=n.slice(e,r),d=0;d<u;++d)if(l[d]!==c[d]){o=l[d],s=c[d];break}return o<s?-1:s<o?1:0};Z.prototype.includes=function(n,e,r){return this.indexOf(n,e,r)!==-1};Z.prototype.indexOf=function(n,e,r){return of(this,n,e,r,!0)};Z.prototype.lastIndexOf=function(n,e,r){return of(this,n,e,r,!1)};Z.prototype.write=function(n,e,r,i){if(e===void 0)i="utf8",r=this.length,e=0;else if(r===void 0&&typeof e=="string")i=e,r=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(r)?(r=r|0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((r===void 0||r>a)&&(r=a),n.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return qb(this,n,e,r);case"utf8":case"utf-8":return Yb(this,n,e,r);case"ascii":return lf(this,n,e,r);case"latin1":case"binary":return Jb(this,n,e,r);case"base64":return Gb(this,n,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qb(this,n,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};Z.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};uf=4096;Z.prototype.slice=function(n,e){var r=this.length;n=~~n,e=e===void 0?r:~~e,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<n&&(e=n);var i;if(Z.TYPED_ARRAY_SUPPORT)i=this.subarray(n,e),i.__proto__=Z.prototype;else{var a=e-n;i=new Z(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+n]}return i};Z.prototype.readUIntLE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=this[n],a=1,o=0;++o<e&&(a*=256);)i+=this[n+o]*a;return i};Z.prototype.readUIntBE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=this[n+--e],a=1;e>0&&(a*=256);)i+=this[n+--e]*a;return i};Z.prototype.readUInt8=function(n,e){return e||St(n,1,this.length),this[n]};Z.prototype.readUInt16LE=function(n,e){return e||St(n,2,this.length),this[n]|this[n+1]<<8};Z.prototype.readUInt16BE=function(n,e){return e||St(n,2,this.length),this[n]<<8|this[n+1]};Z.prototype.readUInt32LE=function(n,e){return e||St(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216};Z.prototype.readUInt32BE=function(n,e){return e||St(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])};Z.prototype.readIntLE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=this[n],a=1,o=0;++o<e&&(a*=256);)i+=this[n+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};Z.prototype.readIntBE=function(n,e,r){n=n|0,e=e|0,r||St(n,e,this.length);for(var i=e,a=1,o=this[n+--i];i>0&&(a*=256);)o+=this[n+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};Z.prototype.readInt8=function(n,e){return e||St(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]};Z.prototype.readInt16LE=function(n,e){e||St(n,2,this.length);var r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r};Z.prototype.readInt16BE=function(n,e){e||St(n,2,this.length);var r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r};Z.prototype.readInt32LE=function(n,e){return e||St(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24};Z.prototype.readInt32BE=function(n,e){return e||St(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]};Z.prototype.readFloatLE=function(n,e){return e||St(n,4,this.length),no(this,n,!0,23,4)};Z.prototype.readFloatBE=function(n,e){return e||St(n,4,this.length),no(this,n,!1,23,4)};Z.prototype.readDoubleLE=function(n,e){return e||St(n,8,this.length),no(this,n,!0,52,8)};Z.prototype.readDoubleBE=function(n,e){return e||St(n,8,this.length),no(this,n,!1,52,8)};Z.prototype.writeUIntLE=function(n,e,r,i){if(n=+n,e=e|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;Jt(this,n,e,r,a,0)}var o=1,s=0;for(this[e]=n&255;++s<r&&(o*=256);)this[e+s]=n/o&255;return e+r};Z.prototype.writeUIntBE=function(n,e,r,i){if(n=+n,e=e|0,r=r|0,!i){var a=Math.pow(2,8*r)-1;Jt(this,n,e,r,a,0)}var o=r-1,s=1;for(this[e+o]=n&255;--o>=0&&(s*=256);)this[e+o]=n/s&255;return e+r};Z.prototype.writeUInt8=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,1,255,0),Z.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=n&255,e+1};Z.prototype.writeUInt16LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8):io(this,n,e,!0),e+2};Z.prototype.writeUInt16BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,65535,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n&255):io(this,n,e,!1),e+2};Z.prototype.writeUInt32LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=n&255):ao(this,n,e,!0),e+4};Z.prototype.writeUInt32BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,4294967295,0),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n&255):ao(this,n,e,!1),e+4};Z.prototype.writeIntLE=function(n,e,r,i){if(n=+n,e=e|0,!i){var a=Math.pow(2,8*r-1);Jt(this,n,e,r,a-1,-a)}var o=0,s=1,u=0;for(this[e]=n&255;++o<r&&(s*=256);)n<0&&u===0&&this[e+o-1]!==0&&(u=1),this[e+o]=(n/s>>0)-u&255;return e+r};Z.prototype.writeIntBE=function(n,e,r,i){if(n=+n,e=e|0,!i){var a=Math.pow(2,8*r-1);Jt(this,n,e,r,a-1,-a)}var o=r-1,s=1,u=0;for(this[e+o]=n&255;--o>=0&&(s*=256);)n<0&&u===0&&this[e+o+1]!==0&&(u=1),this[e+o]=(n/s>>0)-u&255;return e+r};Z.prototype.writeInt8=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,1,127,-128),Z.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=n&255,e+1};Z.prototype.writeInt16LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8):io(this,n,e,!0),e+2};Z.prototype.writeInt16BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,2,32767,-32768),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=n&255):io(this,n,e,!1),e+2};Z.prototype.writeInt32LE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,2147483647,-2147483648),Z.TYPED_ARRAY_SUPPORT?(this[e]=n&255,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):ao(this,n,e,!0),e+4};Z.prototype.writeInt32BE=function(n,e,r){return n=+n,e=e|0,r||Jt(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),Z.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=n&255):ao(this,n,e,!1),e+4};Z.prototype.writeFloatLE=function(n,e,r){return ff(this,n,e,!0,r)};Z.prototype.writeFloatBE=function(n,e,r){return ff(this,n,e,!1,r)};Z.prototype.writeDoubleLE=function(n,e,r){return hf(this,n,e,!0,r)};Z.prototype.writeDoubleBE=function(n,e,r){return hf(this,n,e,!1,r)};Z.prototype.copy=function(n,e,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),e>=n.length&&(e=n.length),e||(e=0),i>0&&i<r&&(i=r),i===r||n.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),n.length-e<i-r&&(i=n.length-e+r);var a=i-r,o;if(this===n&&r<e&&e<i)for(o=a-1;o>=0;--o)n[o+e]=this[o+r];else if(a<1e3||!Z.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)n[o+e]=this[o+r];else Uint8Array.prototype.set.call(n,this.subarray(r,r+a),e);return a};Z.prototype.fill=function(n,e,r,i){if(typeof n=="string"){if(typeof e=="string"?(i=e,e=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),n.length===1){var a=n.charCodeAt(0);a<256&&(n=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Z.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof n=="number"&&(n=n&255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e=e>>>0,r=r===void 0?this.length:r>>>0,n||(n=0);var o;if(typeof n=="number")for(o=e;o<r;++o)this[o]=n;else{var s=Bn(n)?n:oo(new Z(n,i).toString()),u=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%u]}return this};iw=/[^+\/0-9A-Za-z-_]/g});var bf=rt((d1,lo)=>{var Tr=(yf(),vf);if(Tr&&Tr.default){lo.exports=Tr.default;for(let t in Tr)lo.exports[t]=Tr[t]}else Tr&&(lo.exports=Tr)});var fo=rt(Re=>{"use strict";var dr=to(),xt=Gd(),wf=bf().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:xt([32,0]),UINT16:xt([32,0]),UINT32:xt([32,0]),BIGUINT64:xt([32,0]),INT8:xt([32,0]),INT16:xt([32,0]),INT32:xt([32,0]),BIGINT64:xt([32,0]),FLOAT:xt([32,0]),DOUBLE:xt([32,0]),DATA:xt([32,0]),UINT8C:xt([32,0]),BUFFER:xt([32,0])});var fw=typeof Uint8ClampedArray!="undefined",hw=typeof BigUint64Array!="undefined",pw=typeof BigInt64Array!="undefined",ut=window.__TYPEDARRAY_POOL;ut.UINT8C||(ut.UINT8C=xt([32,0]));ut.BIGUINT64||(ut.BIGUINT64=xt([32,0]));ut.BIGINT64||(ut.BIGINT64=xt([32,0]));ut.BUFFER||(ut.BUFFER=xt([32,0]));var co=ut.DATA,uo=ut.BUFFER;Re.free=function(n){if(wf.isBuffer(n))uo[dr.log2(n.length)].push(n);else{if(Object.prototype.toString.call(n)!=="[object ArrayBuffer]"&&(n=n.buffer),!n)return;var e=n.length||n.byteLength,r=dr.log2(e)|0;co[r].push(n)}};function Ef(t){if(!!t){var n=t.length||t.byteLength,e=dr.log2(n);co[e].push(t)}}function mw(t){Ef(t.buffer)}Re.freeUint8=Re.freeUint16=Re.freeUint32=Re.freeBigUint64=Re.freeInt8=Re.freeInt16=Re.freeInt32=Re.freeBigInt64=Re.freeFloat32=Re.freeFloat=Re.freeFloat64=Re.freeDouble=Re.freeUint8Clamped=Re.freeDataView=mw;Re.freeArrayBuffer=Ef;Re.freeBuffer=function(n){uo[dr.log2(n.length)].push(n)};Re.malloc=function(n,e){if(e===void 0||e==="arraybuffer")return Gt(n);switch(e){case"uint8":return _l(n);case"uint16":return Sf(n);case"uint32":return xf(n);case"int8":return kf(n);case"int16":return _f(n);case"int32":return Tf(n);case"float":case"float32":return Mf(n);case"double":case"float64":return Cf(n);case"uint8_clamped":return Df(n);case"bigint64":return If(n);case"biguint64":return Af(n);case"buffer":return Pf(n);case"data":case"dataview":return Lf(n);default:return null}return null};function Gt(t){var t=dr.nextPow2(t),n=dr.log2(t),e=co[n];return e.length>0?e.pop():new ArrayBuffer(t)}Re.mallocArrayBuffer=Gt;function _l(t){return new Uint8Array(Gt(t),0,t)}Re.mallocUint8=_l;function Sf(t){return new Uint16Array(Gt(2*t),0,t)}Re.mallocUint16=Sf;function xf(t){return new Uint32Array(Gt(4*t),0,t)}Re.mallocUint32=xf;function kf(t){return new Int8Array(Gt(t),0,t)}Re.mallocInt8=kf;function _f(t){return new Int16Array(Gt(2*t),0,t)}Re.mallocInt16=_f;function Tf(t){return new Int32Array(Gt(4*t),0,t)}Re.mallocInt32=Tf;function Mf(t){return new Float32Array(Gt(4*t),0,t)}Re.mallocFloat32=Re.mallocFloat=Mf;function Cf(t){return new Float64Array(Gt(8*t),0,t)}Re.mallocFloat64=Re.mallocDouble=Cf;function Df(t){return fw?new Uint8ClampedArray(Gt(t),0,t):_l(t)}Re.mallocUint8Clamped=Df;function Af(t){return hw?new BigUint64Array(Gt(8*t),0,t):null}Re.mallocBigUint64=Af;function If(t){return pw?new BigInt64Array(Gt(8*t),0,t):null}Re.mallocBigInt64=If;function Lf(t){return new DataView(Gt(t),0,t)}Re.mallocDataView=Lf;function Pf(t){t=dr.nextPow2(t);var n=dr.log2(t),e=uo[n];return e.length>0?e.pop():new wf(t)}Re.mallocBuffer=Pf;Re.clearCache=function(){for(var n=0;n<32;++n)ut.UINT8[n].length=0,ut.UINT16[n].length=0,ut.UINT32[n].length=0,ut.INT8[n].length=0,ut.INT16[n].length=0,ut.INT32[n].length=0,ut.FLOAT[n].length=0,ut.DOUBLE[n].length=0,ut.BIGUINT64[n].length=0,ut.BIGINT64[n].length=0,ut.UINT8C[n].length=0,co[n].length=0,uo[n].length=0}});var Hf=rt((h1,Rf)=>{"use strict";Rf.exports=gw;var ho=32;function gw(t,n){n<=4*ho?po(0,n-1,t):go(0,n-1,t)}function po(t,n,e){for(var r=2*(t+1),i=t+1;i<=n;++i){for(var a=e[r++],o=e[r++],s=i,u=r-2;s-- >t;){var l=e[u-2],c=e[u-1];if(l<a)break;if(l===a&&c<o)break;e[u]=l,e[u+1]=c,u-=2}e[u]=a,e[u+1]=o}}function Of(t,n,e){t*=2,n*=2;var r=e[t],i=e[t+1];e[t]=e[n],e[t+1]=e[n+1],e[n]=r,e[n+1]=i}function Nf(t,n,e){t*=2,n*=2,e[t]=e[n],e[t+1]=e[n+1]}function vw(t,n,e,r){t*=2,n*=2,e*=2;var i=r[t],a=r[t+1];r[t]=r[n],r[t+1]=r[n+1],r[n]=r[e],r[n+1]=r[e+1],r[e]=i,r[e+1]=a}function Ff(t,n,e,r,i){t*=2,n*=2,i[t]=i[n],i[n]=e,i[t+1]=i[n+1],i[n+1]=r}function Yn(t,n,e){t*=2,n*=2;var r=e[t],i=e[n];return r<i?!1:r===i?e[t+1]>e[n+1]:!0}function mo(t,n,e,r){t*=2;var i=r[t];return i<n?!0:i===n?r[t+1]<e:!1}function go(t,n,e){var r=(n-t+1)/6|0,i=t+r,a=n-r,o=t+n>>1,s=o-r,u=o+r,l=i,c=s,d=o,f=u,h=a,p=t+1,g=n-1,w=0;Yn(l,c,e)&&(w=l,l=c,c=w),Yn(f,h,e)&&(w=f,f=h,h=w),Yn(l,d,e)&&(w=l,l=d,d=w),Yn(c,d,e)&&(w=c,c=d,d=w),Yn(l,f,e)&&(w=l,l=f,f=w),Yn(d,f,e)&&(w=d,d=f,f=w),Yn(c,h,e)&&(w=c,c=h,h=w),Yn(c,d,e)&&(w=c,c=d,d=w),Yn(f,h,e)&&(w=f,f=h,h=w);for(var S=e[2*c],T=e[2*c+1],k=e[2*f],D=e[2*f+1],N=2*l,C=2*d,O=2*h,B=2*i,z=2*o,Q=2*a,X=0;X<2;++X){var ie=e[N+X],q=e[C+X],J=e[O+X];e[B+X]=ie,e[z+X]=q,e[Q+X]=J}Nf(s,t,e),Nf(u,n,e);for(var te=p;te<=g;++te)if(mo(te,S,T,e))te!==p&&Of(te,p,e),++p;else if(!mo(te,k,D,e))for(;;)if(mo(g,k,D,e)){mo(g,S,T,e)?(vw(te,p,g,e),++p,--g):(Of(te,g,e),--g);break}else{if(--g<te)break;continue}Ff(t,p-1,S,T,e),Ff(n,g+1,k,D,e),p-2-t<=ho?po(t,p-2,e):go(t,p-2,e),n-(g+2)<=ho?po(g+2,n,e):go(g+2,n,e),g-p<=ho?po(p,g,e):go(p,g,e)}});var Tl=rt((p1,Bf)=>{"use strict";Bf.exports={init:bw,sweepBipartite:ww,sweepComplete:Ew,scanBipartite:Sw,scanComplete:xw};var dt=fo(),yw=to(),vo=Hf(),sn=1<<28,Mr=1024,kt=dt.mallocInt32(Mr),Jn=dt.mallocInt32(Mr),Gn=dt.mallocInt32(Mr),Cr=dt.mallocInt32(Mr),ei=dt.mallocInt32(Mr),Ji=dt.mallocInt32(Mr),Pe=dt.mallocDouble(Mr*8);function bw(t){var n=yw.nextPow2(t);kt.length<n&&(dt.free(kt),kt=dt.mallocInt32(n)),Jn.length<n&&(dt.free(Jn),Jn=dt.mallocInt32(n)),Gn.length<n&&(dt.free(Gn),Gn=dt.mallocInt32(n)),Cr.length<n&&(dt.free(Cr),Cr=dt.mallocInt32(n)),ei.length<n&&(dt.free(ei),ei=dt.mallocInt32(n)),Ji.length<n&&(dt.free(Ji),Ji=dt.mallocInt32(n));var e=8*n;Pe.length<e&&(dt.free(Pe),Pe=dt.mallocDouble(e))}function ti(t,n,e,r){var i=n[r],a=t[e-1];t[i]=a,n[a]=i}function ni(t,n,e,r){t[e]=r,n[r]=e}function ww(t,n,e,r,i,a,o,s,u,l){for(var c=0,d=2*t,f=t-1,h=d-1,p=e;p<r;++p){var g=a[p],w=d*p;Pe[c++]=i[w+f],Pe[c++]=-(g+1),Pe[c++]=i[w+h],Pe[c++]=g}for(var p=o;p<s;++p){var g=l[p]+sn,S=d*p;Pe[c++]=u[S+f],Pe[c++]=-g,Pe[c++]=u[S+h],Pe[c++]=g}var T=c>>>1;vo(Pe,T);for(var k=0,D=0,p=0;p<T;++p){var N=Pe[2*p+1]|0;if(N>=sn)N=N-sn|0,ti(Gn,Cr,D--,N);else if(N>=0)ti(kt,Jn,k--,N);else if(N<=-sn){N=-N-sn|0;for(var C=0;C<k;++C){var O=n(kt[C],N);if(O!==void 0)return O}ni(Gn,Cr,D++,N)}else{N=-N-1|0;for(var C=0;C<D;++C){var O=n(N,Gn[C]);if(O!==void 0)return O}ni(kt,Jn,k++,N)}}}function Ew(t,n,e,r,i,a,o,s,u,l){for(var c=0,d=2*t,f=t-1,h=d-1,p=e;p<r;++p){var g=a[p]+1<<1,w=d*p;Pe[c++]=i[w+f],Pe[c++]=-g,Pe[c++]=i[w+h],Pe[c++]=g}for(var p=o;p<s;++p){var g=l[p]+1<<1,S=d*p;Pe[c++]=u[S+f],Pe[c++]=-g|1,Pe[c++]=u[S+h],Pe[c++]=g|1}var T=c>>>1;vo(Pe,T);for(var k=0,D=0,N=0,p=0;p<T;++p){var C=Pe[2*p+1]|0,O=C&1;if(p<T-1&&C>>1==Pe[2*p+3]>>1&&(O=2,p+=1),C<0){for(var B=-(C>>1)-1,z=0;z<N;++z){var Q=n(ei[z],B);if(Q!==void 0)return Q}if(O!==0)for(var z=0;z<k;++z){var Q=n(kt[z],B);if(Q!==void 0)return Q}if(O!==1)for(var z=0;z<D;++z){var Q=n(Gn[z],B);if(Q!==void 0)return Q}O===0?ni(kt,Jn,k++,B):O===1?ni(Gn,Cr,D++,B):O===2&&ni(ei,Ji,N++,B)}else{var B=(C>>1)-1;O===0?ti(kt,Jn,k--,B):O===1?ti(Gn,Cr,D--,B):O===2&&ti(ei,Ji,N--,B)}}}function Sw(t,n,e,r,i,a,o,s,u,l,c,d){var f=0,h=2*t,p=n,g=n+t,w=1,S=1;r?S=sn:w=sn;for(var T=i;T<a;++T){var k=T+w,D=h*T;Pe[f++]=o[D+p],Pe[f++]=-k,Pe[f++]=o[D+g],Pe[f++]=k}for(var T=u;T<l;++T){var k=T+S,N=h*T;Pe[f++]=c[N+p],Pe[f++]=-k}var C=f>>>1;vo(Pe,C);for(var O=0,T=0;T<C;++T){var B=Pe[2*T+1]|0;if(B<0){var k=-B,z=!1;if(k>=sn?(z=!r,k-=sn):(z=!!r,k-=1),z)ni(kt,Jn,O++,k);else{var Q=d[k],X=h*k,ie=c[X+n+1],q=c[X+n+1+t];e:for(var J=0;J<O;++J){var te=kt[J],ce=h*te;if(!(q<o[ce+n+1]||o[ce+n+1+t]<ie)){for(var de=n+2;de<t;++de)if(c[X+de+t]<o[ce+de]||o[ce+de+t]<c[X+de])continue e;var fe=s[te],he;if(r?he=e(Q,fe):he=e(fe,Q),he!==void 0)return he}}}}else ti(kt,Jn,O--,B-w)}}function xw(t,n,e,r,i,a,o,s,u,l,c){for(var d=0,f=2*t,h=n,p=n+t,g=r;g<i;++g){var w=g+sn,S=f*g;Pe[d++]=a[S+h],Pe[d++]=-w,Pe[d++]=a[S+p],Pe[d++]=w}for(var g=s;g<u;++g){var w=g+1,T=f*g;Pe[d++]=l[T+h],Pe[d++]=-w}var k=d>>>1;vo(Pe,k);for(var D=0,g=0;g<k;++g){var N=Pe[2*g+1]|0;if(N<0){var w=-N;if(w>=sn)kt[D++]=w-sn;else{w-=1;var C=c[w],O=f*w,B=l[O+n+1],z=l[O+n+1+t];e:for(var Q=0;Q<D;++Q){var X=kt[Q],ie=o[X];if(ie===C)break;var q=f*X;if(!(z<a[q+n+1]||a[q+n+1+t]<B)){for(var J=n+2;J<t;++J)if(l[O+J+t]<a[q+J]||a[q+J+t]<l[O+J])continue e;var te=e(ie,C);if(te!==void 0)return te}}}}else{for(var w=N-sn,Q=D-1;Q>=0;--Q)if(kt[Q]===w){for(var J=Q+1;J<D;++J)kt[J-1]=kt[J];break}--D}}}});var Vf=rt(Pl=>{"use strict";var Dr="d",ri="ax",Kf="vv",Ml="fp",Gi="es",yo="rs",Cl="re",Qi="rb",$f="ri",ii="rp",bo="bs",Dl="be",Xi="bb",Uf="bi",ai="bp",Al="rv",Il="Q",Ll=[Dr,ri,Kf,yo,Cl,Qi,$f,bo,Dl,Xi,Uf];function kw(t,n,e){var r="bruteForce"+(t?"Red":"Blue")+(n?"Flip":"")+(e?"Full":""),i=["function ",r,"(",Ll.join(),"){","var ",Gi,"=2*",Dr,";"],a="for(var i="+yo+","+ii+"="+Gi+"*"+yo+";i<"+Cl+";++i,"+ii+"+="+Gi+"){var x0="+Qi+"["+ri+"+"+ii+"],x1="+Qi+"["+ri+"+"+ii+"+"+Dr+"],xi="+$f+"[i];",o="for(var j="+bo+","+ai+"="+Gi+"*"+bo+";j<"+Dl+";++j,"+ai+"+="+Gi+"){var y0="+Xi+"["+ri+"+"+ai+"],"+(e?"y1="+Xi+"["+ri+"+"+ai+"+"+Dr+"],":"")+"yi="+Uf+"[j];";return t?i.push(a,Il,":",o):i.push(o,Il,":",a),e?i.push("if(y1<x0||x1<y0)continue;"):n?i.push("if(y0<=x0||x1<y0)continue;"):i.push("if(y0<x0||x1<y0)continue;"),i.push("for(var k="+ri+"+1;k<"+Dr+";++k){var r0="+Qi+"[k+"+ii+"],r1="+Qi+"[k+"+Dr+"+"+ii+"],b0="+Xi+"[k+"+ai+"],b1="+Xi+"[k+"+Dr+"+"+ai+"];if(r1<b0||b1<r0)continue "+Il+";}var "+Al+"="+Kf+"("),n?i.push("yi,xi"):i.push("xi,yi"),i.push(");if("+Al+"!==void 0)return "+Al+";}}}"),{name:r,code:i.join("")}}function zf(t){var n="bruteForce"+(t?"Full":"Partial"),e=[],r=Ll.slice();t||r.splice(3,0,Ml);var i=["function "+n+"("+r.join()+"){"];function a(u,l){var c=kw(u,l,t);e.push(c.code),i.push("return "+c.name+"("+Ll.join()+");")}i.push("if("+Cl+"-"+yo+">"+Dl+"-"+bo+"){"),t?(a(!0,!1),i.push("}else{"),a(!1,!1)):(i.push("if("+Ml+"){"),a(!0,!0),i.push("}else{"),a(!0,!1),i.push("}}else{if("+Ml+"){"),a(!1,!0),i.push("}else{"),a(!1,!1),i.push("}")),i.push("}}return "+n);var o=e.join("")+i.join(""),s=new Function(o);return s()}Pl.partial=zf(!1);Pl.full=zf(!0)});var Ol=rt((g1,jf)=>{"use strict";jf.exports=Tw;var _w="for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m";function Tw(t,n){var e="abcdef".split("").concat(n),r=[];return t.indexOf("lo")>=0&&r.push("lo=e[k+n]"),t.indexOf("hi")>=0&&r.push("hi=e[k+o]"),e.push(_w.replace("_",r.join()).replace("$",t)),Function.apply(void 0,e)}});var Yf=rt((v1,qf)=>{"use strict";qf.exports=Aw;var Mw=Ol(),Wf=Mw("lo<p0",["p0"]),Cw=8;function Dw(t,n,e,r,i,a){for(var o=2*t,s=o*(e+1)+n,u=e+1;u<r;++u,s+=o)for(var l=i[s],c=u,d=o*(u-1);c>e&&i[d+n]>l;--c,d-=o){for(var f=d,h=d+o,p=0;p<o;++p,++f,++h){var g=i[f];i[f]=i[h],i[h]=g}var w=a[c];a[c]=a[c-1],a[c-1]=w}}function Aw(t,n,e,r,i,a){if(r<=e+1)return e;for(var o=e,s=r,u=r+e>>>1,l=2*t,c=u,d=i[l*u+n];o<s;){if(s-o<Cw){Dw(t,n,o,s,i,a),d=i[l*u+n];break}var f=s-o,h=Math.random()*f+o|0,p=i[l*h+n],g=Math.random()*f+o|0,w=i[l*g+n],S=Math.random()*f+o|0,T=i[l*S+n];p<=w?T>=w?(c=g,d=w):p>=T?(c=h,d=p):(c=S,d=T):w>=T?(c=g,d=w):T>=p?(c=h,d=p):(c=S,d=T);for(var k=l*(s-1),D=l*c,N=0;N<l;++N,++k,++D){var C=i[k];i[k]=i[D],i[D]=C}var O=a[s-1];a[s-1]=a[c],a[c]=O,c=Wf(t,n,o,s-1,i,a,d);for(var k=l*(s-1),D=l*c,N=0;N<l;++N,++k,++D){var C=i[k];i[k]=i[D],i[D]=C}var O=a[s-1];if(a[s-1]=a[c],a[c]=O,u<c){for(s=c-1;o<s&&i[l*(s-1)+n]===d;)s-=1;s+=1}else if(c<u)for(o=c+1;o<s&&i[l*o+n]===d;)o+=1;else break}return Wf(t,n,e,u,i,a,i[l*u+n])}});var th=rt((y1,eh)=>{"use strict";eh.exports=zw;var oi=fo(),Nl=to(),Jf=Vf(),Iw=Jf.partial,Lw=Jf.full,fr=Tl(),Pw=Yf(),si=Ol(),Gf=128,Ow=1<<22,Nw=1<<22,Fw=si("!(lo>=p0)&&!(p1>=hi)",["p0","p1"]),Qf=si("lo===p0",["p0"]),Rw=si("lo<p0",["p0"]),Hw=si("hi<=p0",["p0"]),Xf=si("lo<=p0&&p0<=hi",["p0"]),Bw=si("lo<p0&&p0<=hi",["p0"]),Fl=6,Rl=2,Zf=1024,Ut=oi.mallocInt32(Zf),Ar=oi.mallocDouble(Zf);function Kw(t,n){var e=8*Nl.log2(n+1)*(t+1)|0,r=Nl.nextPow2(Fl*e);Ut.length<r&&(oi.free(Ut),Ut=oi.mallocInt32(r));var i=Nl.nextPow2(Rl*e);Ar.length<i&&(oi.free(Ar),Ar=oi.mallocDouble(i))}function Sn(t,n,e,r,i,a,o,s,u){var l=Fl*t;Ut[l]=n,Ut[l+1]=e,Ut[l+2]=r,Ut[l+3]=i,Ut[l+4]=a,Ut[l+5]=o;var c=Rl*t;Ar[c]=s,Ar[c+1]=u}function $w(t,n,e,r,i,a,o,s,u,l,c){var d=2*t,f=u*d,h=l[f+n];e:for(var p=i,g=i*d;p<a;++p,g+=d){var w=o[g+n],S=o[g+n+t];if(!(h<w||S<h)&&!(r&&h===w)){for(var T=s[p],k=n+1;k<t;++k){var w=o[g+k],S=o[g+k+t],D=l[f+k],N=l[f+k+t];if(S<D||N<w)continue e}var C;if(r?C=e(c,T):C=e(T,c),C!==void 0)return C}}}function Uw(t,n,e,r,i,a,o,s,u,l){var c=2*t,d=s*c,f=u[d+n];e:for(var h=r,p=r*c;h<i;++h,p+=c){var g=o[h];if(g!==l){var w=a[p+n],S=a[p+n+t];if(!(f<w||S<f)){for(var T=n+1;T<t;++T){var w=a[p+T],S=a[p+T+t],k=u[d+T],D=u[d+T+t];if(S<k||D<w)continue e}var N=e(g,l);if(N!==void 0)return N}}}}function zw(t,n,e,r,i,a,o,s,u){Kw(t,r+o);var l=0,c=2*t,d;for(Sn(l++,0,0,r,0,o,e?16:0,-Infinity,Infinity),e||Sn(l++,0,0,o,0,r,1,-Infinity,Infinity);l>0;){l-=1;var f=l*Fl,h=Ut[f],p=Ut[f+1],g=Ut[f+2],w=Ut[f+3],S=Ut[f+4],T=Ut[f+5],k=l*Rl,D=Ar[k],N=Ar[k+1],C=T&1,O=!!(T&16),B=i,z=a,Q=s,X=u;if(C&&(B=s,z=u,Q=i,X=a),!(T&2&&(g=Rw(t,h,p,g,B,z,N),p>=g))&&!(T&4&&(p=Hw(t,h,p,g,B,z,D),p>=g))){var ie=g-p,q=S-w;if(O){if(t*ie*(ie+q)<Nw){if(d=fr.scanComplete(t,h,n,p,g,B,z,w,S,Q,X),d!==void 0)return d;continue}}else if(t*Math.min(ie,q)<Gf){if(d=Iw(t,h,n,C,p,g,B,z,w,S,Q,X),d!==void 0)return d;continue}else if(t*ie*q<Ow){if(d=fr.scanBipartite(t,h,n,C,p,g,B,z,w,S,Q,X),d!==void 0)return d;continue}var J=Fw(t,h,p,g,B,z,D,N);if(p<J)if(t*(J-p)<Gf){if(d=Lw(t,h+1,n,p,J,B,z,w,S,Q,X),d!==void 0)return d}else if(h===t-2){if(C?d=fr.sweepBipartite(t,n,w,S,Q,X,p,J,B,z):d=fr.sweepBipartite(t,n,p,J,B,z,w,S,Q,X),d!==void 0)return d}else Sn(l++,h+1,p,J,w,S,C,-Infinity,Infinity),Sn(l++,h+1,w,S,p,J,C^1,-Infinity,Infinity);if(J<g){var te=Pw(t,h,w,S,Q,X),ce=Q[c*te+h],de=Qf(t,h,te,S,Q,X,ce);if(de<S&&Sn(l++,h,J,g,de,S,(C|4)+(O?16:0),ce,N),w<te&&Sn(l++,h,J,g,w,te,(C|2)+(O?16:0),D,ce),te+1===de){if(O?d=Uw(t,h,n,J,g,B,z,te,Q,X[te]):d=$w(t,h,n,C,J,g,B,z,te,Q,X[te]),d!==void 0)return d}else if(te<de){var fe;if(O){if(fe=Xf(t,h,J,g,B,z,ce),J<fe){var he=Qf(t,h,J,fe,B,z,ce);if(h===t-2){if(J<he&&(d=fr.sweepComplete(t,n,J,he,B,z,te,de,Q,X),d!==void 0)||he<fe&&(d=fr.sweepBipartite(t,n,he,fe,B,z,te,de,Q,X),d!==void 0))return d}else J<he&&Sn(l++,h+1,J,he,te,de,16,-Infinity,Infinity),he<fe&&(Sn(l++,h+1,he,fe,te,de,0,-Infinity,Infinity),Sn(l++,h+1,te,de,he,fe,1,-Infinity,Infinity))}}else C?fe=Bw(t,h,J,g,B,z,ce):fe=Xf(t,h,J,g,B,z,ce),J<fe&&(h===t-2?C?d=fr.sweepBipartite(t,n,te,de,Q,X,J,fe,B,z):d=fr.sweepBipartite(t,n,J,fe,B,z,te,de,Q,X):(Sn(l++,h+1,J,fe,te,de,C,-Infinity,Infinity),Sn(l++,h+1,te,de,J,fe,C^1,-Infinity,Infinity)))}}}}}});var ah=rt((b1,ih)=>{"use strict";ih.exports=Yw;var hr=fo(),wo=Tl(),Vw=th();function jw(t,n){for(var e=0;e<t;++e)if(!(n[e]<=n[e+t]))return!0;return!1}function nh(t,n,e,r){for(var i=0,a=0,o=0,s=t.length;o<s;++o){var u=t[o];if(!jw(n,u)){for(var l=0;l<2*n;++l)e[i++]=u[l];r[a++]=o}}return a}function Eo(t,n,e,r){var i=t.length,a=n.length;if(!(i<=0||a<=0)){var o=t[0].length>>>1;if(!(o<=0)){var s,u=hr.mallocDouble(2*o*i),l=hr.mallocInt32(i);if(i=nh(t,o,u,l),i>0){if(o===1&&r)wo.init(i),s=wo.sweepComplete(o,e,0,i,u,l,0,i,u,l);else{var c=hr.mallocDouble(2*o*a),d=hr.mallocInt32(a);a=nh(n,o,c,d),a>0&&(wo.init(i+a),o===1?s=wo.sweepBipartite(o,e,0,i,u,l,0,a,c,d):s=Vw(o,e,r,i,u,l,a,c,d),hr.free(c),hr.free(d))}hr.free(u),hr.free(l)}return s}}}var Zi;function rh(t,n){Zi.push([t,n])}function Ww(t){return Zi=[],Eo(t,t,rh,!0),Zi}function qw(t,n){return Zi=[],Eo(t,n,rh,!1),Zi}function Yw(t,n,e){var r;switch(arguments.length){case 1:return Ww(t);case 2:return typeof n=="function"?Eo(t,t,n,!0):qw(t,n);case 3:return Eo(t,n,e,!1);default:throw new Error("box-intersect: Invalid arguments")}}});var Th=rt((E1,_o)=>{var oh,sh,lh,ch,uh,dh,fh,hh,ph,xo,Hl,mh,gh,vh,li,yh,bh,wh,Eh,Sh,xh,kh,_h,ko;(function(t){var n=typeof window=="object"?window:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){t(e(n,e(r)))}):typeof _o=="object"&&typeof _o.exports=="object"?t(e(n,e(_o.exports))):t(e(n));function e(r,i){return r!==n&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,o){return r[a]=i?i(a,o):o}}})(function(t){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])};oh=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)},sh=Object.assign||function(r){for(var i,a=1,o=arguments.length;a<o;a++){i=arguments[a];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},lh=function(r,i){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(a[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)i.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(a[o[s]]=r[o[s]]);return a},ch=function(r,i,a,o){var s=arguments.length,u=s<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,a):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(r,i,a,o);else for(var c=r.length-1;c>=0;c--)(l=r[c])&&(u=(s<3?l(u):s>3?l(i,a,u):l(i,a))||u);return s>3&&u&&Object.defineProperty(i,a,u),u},uh=function(r,i){return function(a,o){i(a,o,r)}},dh=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},fh=function(r,i,a,o){function s(u){return u instanceof a?u:new a(function(l){l(u)})}return new(a||(a=Promise))(function(u,l){function c(h){try{f(o.next(h))}catch(p){l(p)}}function d(h){try{f(o.throw(h))}catch(p){l(p)}}function f(h){h.done?u(h.value):s(h.value).then(c,d)}f((o=o.apply(r,i||[])).next())})},hh=function(r,i){var a={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,s,u,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return d([f,h])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,s&&(u=f[0]&2?s.return:f[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,f[1])).done)return u;switch(s=0,u&&(f=[f[0]&2,u.value]),f[0]){case 0:case 1:u=f;break;case 4:return a.label++,{value:f[1],done:!1};case 5:a.label++,s=f[1],f=[0];continue;case 7:f=a.ops.pop(),a.trys.pop();continue;default:if(u=a.trys,!(u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){a=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){a.label=f[1];break}if(f[0]===6&&a.label<u[1]){a.label=u[1],u=f;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(f);break}u[2]&&a.ops.pop(),a.trys.pop();continue}f=i.call(r,a)}catch(h){f=[6,h],s=0}finally{o=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},ph=function(r,i){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&ko(i,r,a)},ko=Object.create?function(r,i,a,o){o===void 0&&(o=a),Object.defineProperty(r,o,{enumerable:!0,get:function(){return i[a]}})}:function(r,i,a,o){o===void 0&&(o=a),r[o]=i[a]},xo=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&r[i],o=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Hl=function(r,i){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var o=a.call(r),s,u=[],l;try{for(;(i===void 0||i-- >0)&&!(s=o.next()).done;)u.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(l)throw l.error}}return u},mh=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(Hl(arguments[i]));return r},gh=function(){for(var r=0,i=0,a=arguments.length;i<a;i++)r+=arguments[i].length;for(var o=Array(r),s=0,i=0;i<a;i++)for(var u=arguments[i],l=0,c=u.length;l<c;l++,s++)o[s]=u[l];return o},vh=function(r,i,a){if(a||arguments.length===2)for(var o=0,s=i.length,u;o<s;o++)(u||!(o in i))&&(u||(u=Array.prototype.slice.call(i,0,o)),u[o]=i[o]);return r.concat(u||Array.prototype.slice.call(i))},li=function(r){return this instanceof li?(this.v=r,this):new li(r)},yh=function(r,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=a.apply(r,i||[]),s,u=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(g){o[g]&&(s[g]=function(w){return new Promise(function(S,T){u.push([g,w,S,T])>1||c(g,w)})})}function c(g,w){try{d(o[g](w))}catch(S){p(u[0][3],S)}}function d(g){g.value instanceof li?Promise.resolve(g.value.v).then(f,h):p(u[0][2],g)}function f(g){c("next",g)}function h(g){c("throw",g)}function p(g,w){g(w),u.shift(),u.length&&c(u[0][0],u[0][1])}},bh=function(r){var i,a;return i={},o("next"),o("throw",function(s){throw s}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(s,u){i[s]=r[s]?function(l){return(a=!a)?{value:li(r[s](l)),done:s==="return"}:u?u(l):l}:u}},wh=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof xo=="function"?xo(r):r[Symbol.iterator](),a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a);function o(u){a[u]=r[u]&&function(l){return new Promise(function(c,d){l=r[u](l),s(c,d,l.done,l.value)})}}function s(u,l,c,d){Promise.resolve(d).then(function(f){u({value:f,done:c})},l)}},Eh=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var e=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};Sh=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&ko(i,r,a);return e(i,r),i},xh=function(r){return r&&r.__esModule?r:{default:r}},kh=function(r,i,a,o){if(a==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?o:a==="a"?o.call(r):o?o.value:i.get(r)},_h=function(r,i,a,o,s){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!s:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?s.call(r,a):s?s.value=a:i.set(r,a),a},t("__extends",oh),t("__assign",sh),t("__rest",lh),t("__decorate",ch),t("__param",uh),t("__metadata",dh),t("__awaiter",fh),t("__generator",hh),t("__exportStar",ph),t("__createBinding",ko),t("__values",xo),t("__read",Hl),t("__spread",mh),t("__spreadArrays",gh),t("__spreadArray",vh),t("__await",li),t("__asyncGenerator",yh),t("__asyncDelegator",bh),t("__asyncValues",wh),t("__makeTemplateObject",Eh),t("__importStar",Sh),t("__importDefault",xh),t("__classPrivateFieldGet",kh),t("__classPrivateFieldSet",_h)})});var ql=rt(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var it=require("obsidian"),jl="YYYY-MM-DD",Wl="gggg-[W]ww",Hh="YYYY-MM",Bh="YYYY-[Q]Q",Kh="YYYY";function ia(t){let n=window.app.plugins.getPlugin("periodic-notes");return n&&n.settings?.[t]?.enabled}function aa(){try{let{internalPlugins:t,plugins:n}=window.app;if(ia("daily")){let{format:a,folder:o,template:s}=n.getPlugin("periodic-notes")?.settings?.daily||{};return{format:a||jl,folder:o?.trim()||"",template:s?.trim()||""}}let{folder:e,format:r,template:i}=t.getPluginById("daily-notes")?.instance?.options||{};return{format:r||jl,folder:e?.trim()||"",template:i?.trim()||""}}catch(t){console.info("No custom daily note settings found!",t)}}function oa(){try{let t=window.app.plugins,n=t.getPlugin("calendar")?.options,e=t.getPlugin("periodic-notes")?.settings?.weekly;if(ia("weekly"))return{format:e.format||Wl,folder:e.folder?.trim()||"",template:e.template?.trim()||""};let r=n||{};return{format:r.weeklyNoteFormat||Wl,folder:r.weeklyNoteFolder?.trim()||"",template:r.weeklyNoteTemplate?.trim()||""}}catch(t){console.info("No custom weekly note settings found!",t)}}function sa(){let t=window.app.plugins;try{let n=ia("monthly")&&t.getPlugin("periodic-notes")?.settings?.monthly||{};return{format:n.format||Hh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom monthly note settings found!",n)}}function la(){let t=window.app.plugins;try{let n=ia("quarterly")&&t.getPlugin("periodic-notes")?.settings?.quarterly||{};return{format:n.format||Bh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom quarterly note settings found!",n)}}function ca(){let t=window.app.plugins;try{let n=ia("yearly")&&t.getPlugin("periodic-notes")?.settings?.yearly||{};return{format:n.format||Kh,folder:n.folder?.trim()||"",template:n.template?.trim()||""}}catch(n){console.info("No custom yearly note settings found!",n)}}function $h(...t){let n=[];for(let r=0,i=t.length;r<i;r++)n=n.concat(t[r].split("/"));let e=[];for(let r=0,i=n.length;r<i;r++){let a=n[r];!a||a==="."||e.push(a)}return n[0]===""&&e.unshift(""),e.join("/")}function lE(t){let n=t.substring(t.lastIndexOf("/")+1);return n.lastIndexOf(".")!=-1&&(n=n.substring(0,n.lastIndexOf("."))),n}async function cE(t){let n=t.replace(/\\/g,"/").split("/");if(n.pop(),n.length){let e=$h(...n);window.app.vault.getAbstractFileByPath(e)||await window.app.vault.createFolder(e)}}async function ua(t,n){n.endsWith(".md")||(n+=".md");let e=it.normalizePath($h(t,n));return await cE(e),e}async function hi(t){let{metadataCache:n,vault:e}=window.app,r=it.normalizePath(t);if(r==="/")return Promise.resolve(["",null]);try{let i=n.getFirstLinkpathDest(r,""),a=await e.cachedRead(i),o=window.app.foldManager.load(i);return[a,o]}catch(i){return console.error(`Failed to read the daily note template '${r}'`,i),new it.Notice("Failed to read the daily note template"),["",null]}}function xn(t,n="day"){let e=t.clone().startOf(n).format();return`${n}-${e}`}function Uh(t){return t.replace(/\[[^\]]*\]/g,"")}function uE(t,n){if(n==="week"){let e=Uh(t);return/w{1,2}/i.test(e)&&(/M{1,4}/.test(e)||/D{1,4}/.test(e))}return!1}function pi(t,n){return zh(t.basename,n)}function dE(t,n){return zh(lE(t),n)}function zh(t,n){let r={day:aa,week:oa,month:sa,quarter:la,year:ca}[n]().format.split("/").pop(),i=window.moment(t,r,!0);if(!i.isValid())return null;if(uE(r,n)&&n==="week"){let a=Uh(r);if(/w{1,2}/i.test(a))return window.moment(t,r.replace(/M{1,4}/g,"").replace(/D{1,4}/g,""),!1)}return i}var Vh=class extends Error{};async function jh(t){let n=window.app,{vault:e}=n,r=window.moment,{template:i,format:a,folder:o}=aa(),[s,u]=await hi(i),l=t.format(a),c=await ua(o,l);try{let d=await e.create(c,s.replace(/{{\s*date\s*}}/gi,l).replace(/{{\s*time\s*}}/gi,r().format("HH:mm")).replace(/{{\s*title\s*}}/gi,l).replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(f,h,p,g,w,S)=>{let T=r(),k=t.clone().set({hour:T.get("hour"),minute:T.get("minute"),second:T.get("second")});return p&&k.add(parseInt(g,10),w),S?k.format(S.substring(1).trim()):k.format(a)}).replace(/{{\s*yesterday\s*}}/gi,t.clone().subtract(1,"day").format(a)).replace(/{{\s*tomorrow\s*}}/gi,t.clone().add(1,"d").format(a)));return n.foldManager.save(d,u),d}catch(d){console.error(`Failed to create file: '${c}'`,d),new it.Notice("Unable to create new file.")}}function fE(t,n){return n[xn(t,"day")]??null}function hE(){let{vault:t}=window.app,{folder:n}=aa(),e=t.getAbstractFileByPath(it.normalizePath(n));if(!e)throw new Vh("Failed to find daily notes folder");let r={};return it.Vault.recurseChildren(e,i=>{if(i instanceof it.TFile){let a=pi(i,"day");if(a){let o=xn(a,"day");r[o]=i}}}),r}var Wh=class extends Error{};function pE(){let{moment:t}=window,n=t.localeData()._week.dow,e=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];for(;n;)e.push(e.shift()),n--;return e}function mE(t){return pE().indexOf(t.toLowerCase())}async function qh(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=oa(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).replace(/{{\s*title\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi,(c,d,f)=>{let h=mE(d);return t.weekday(h).format(f.trim())}));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new it.Notice("Unable to create new file.")}}function gE(t,n){return n[xn(t,"week")]??null}function vE(){let t={};if(!Xh())return t;let{vault:n}=window.app,{folder:e}=oa(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Wh("Failed to find weekly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"week");if(a){let o=xn(a,"week");t[o]=i}}}),t}var Yh=class extends Error{};async function Jh(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=sa(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new it.Notice("Unable to create new file.")}}function yE(t,n){return n[xn(t,"month")]??null}function bE(){let t={};if(!Zh())return t;let{vault:n}=window.app,{folder:e}=sa(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Yh("Failed to find monthly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"month");if(a){let o=xn(a,"month");t[o]=i}}}),t}var Gh=class extends Error{};async function wE(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=la(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new it.Notice("Unable to create new file.")}}function EE(t,n){return n[xn(t,"quarter")]??null}function SE(){let t={};if(!ep())return t;let{vault:n}=window.app,{folder:e}=la(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Gh("Failed to find quarterly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"quarter");if(a){let o=xn(a,"quarter");t[o]=i}}}),t}var Qh=class extends Error{};async function xE(t){let{vault:n}=window.app,{template:e,format:r,folder:i}=ca(),[a,o]=await hi(e),s=t.format(r),u=await ua(i,s);try{let l=await n.create(u,a.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi,(c,d,f,h,p,g)=>{let w=window.moment(),S=t.clone().set({hour:w.get("hour"),minute:w.get("minute"),second:w.get("second")});return f&&S.add(parseInt(h,10),p),g?S.format(g.substring(1).trim()):S.format(r)}).replace(/{{\s*date\s*}}/gi,s).replace(/{{\s*time\s*}}/gi,window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi,s));return window.app.foldManager.save(l,o),l}catch(l){console.error(`Failed to create file: '${u}'`,l),new it.Notice("Unable to create new file.")}}function kE(t,n){return n[xn(t,"year")]??null}function _E(){let t={};if(!tp())return t;let{vault:n}=window.app,{folder:e}=ca(),r=n.getAbstractFileByPath(it.normalizePath(e));if(!r)throw new Qh("Failed to find yearly notes folder");return it.Vault.recurseChildren(r,i=>{if(i instanceof it.TFile){let a=pi(i,"year");if(a){let o=xn(a,"year");t[o]=i}}}),t}function TE(){let{app:t}=window,n=t.internalPlugins.plugins["daily-notes"];if(n&&n.enabled)return!0;let e=t.plugins.getPlugin("periodic-notes");return e&&e.settings?.daily?.enabled}function Xh(){let{app:t}=window;if(t.plugins.getPlugin("calendar"))return!0;let n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.weekly?.enabled}function Zh(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.monthly?.enabled}function ep(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.quarterly?.enabled}function tp(){let{app:t}=window,n=t.plugins.getPlugin("periodic-notes");return n&&n.settings?.yearly?.enabled}function ME(t){return{day:aa,week:oa,month:sa,quarter:la,year:ca}[t]()}function CE(t,n){return{day:jh,month:Jh,week:qh}[t](n)}Ne.DEFAULT_DAILY_NOTE_FORMAT=jl;Ne.DEFAULT_MONTHLY_NOTE_FORMAT=Hh;Ne.DEFAULT_QUARTERLY_NOTE_FORMAT=Bh;Ne.DEFAULT_WEEKLY_NOTE_FORMAT=Wl;Ne.DEFAULT_YEARLY_NOTE_FORMAT=Kh;Ne.appHasDailyNotesPluginLoaded=TE;Ne.appHasMonthlyNotesPluginLoaded=Zh;Ne.appHasQuarterlyNotesPluginLoaded=ep;Ne.appHasWeeklyNotesPluginLoaded=Xh;Ne.appHasYearlyNotesPluginLoaded=tp;Ne.createDailyNote=jh;Ne.createMonthlyNote=Jh;Ne.createPeriodicNote=CE;Ne.createQuarterlyNote=wE;Ne.createWeeklyNote=qh;Ne.createYearlyNote=xE;Ne.getAllDailyNotes=hE;Ne.getAllMonthlyNotes=bE;Ne.getAllQuarterlyNotes=SE;Ne.getAllWeeklyNotes=vE;Ne.getAllYearlyNotes=_E;Ne.getDailyNote=fE;Ne.getDailyNoteSettings=aa;Ne.getDateFromFile=pi;Ne.getDateFromPath=dE;Ne.getDateUID=xn;Ne.getMonthlyNote=yE;Ne.getMonthlyNoteSettings=sa;Ne.getPeriodicNoteSettings=ME;Ne.getQuarterlyNote=EE;Ne.getQuarterlyNoteSettings=la;Ne.getTemplateInfo=hi;Ne.getWeeklyNote=gE;Ne.getWeeklyNoteSettings=oa;Ne.getYearlyNote=kE;Ne.getYearlyNoteSettings=ca});var op=rt((No,ap)=>{(function(t,n){typeof No=="object"&&typeof ap!="undefined"?n(No):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.index={}))})(No,function(t){"use strict";var n=function(){return n=Object.assign||function(Ln){for(var Oa,qs=1,yy=arguments.length;qs<yy;qs++){Oa=arguments[qs];for(var Ys in Oa)Object.prototype.hasOwnProperty.call(Oa,Ys)&&(Ln[Ys]=Oa[Ys])}return Ln},n.apply(this,arguments)},e=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],longhand:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]},firstDayOfWeek:6,rangeSeparator:" \u0625\u0644\u0649 ",weekAbbreviation:"Wk",scrollTitle:"\u0642\u0645 \u0628\u0627\u0644\u062A\u0645\u0631\u064A\u0631 \u0644\u0644\u0632\u064A\u0627\u062F\u0629",toggleTitle:"\u0627\u0636\u063A\u0637 \u0644\u0644\u062A\u0628\u062F\u064A\u0644",amPM:["\u0635","\u0645"],yearAriaLabel:"\u0633\u0646\u0629",monthAriaLabel:"\u0634\u0647\u0631",hourAriaLabel:"\u0633\u0627\u0639\u0629",minuteAriaLabel:"\u062F\u0642\u064A\u0642\u0629",time_24hr:!1};e.l10ns.ar=r,e.l10ns;var i=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},a={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["J\xE4n","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["J\xE4nner","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};i.l10ns.at=a,i.l10ns;var o=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},s={weekdays:{shorthand:["B.","B.e.","\xC7.a.","\xC7.","C.a.","C.","\u015E."],longhand:["Bazar","Bazar ert\u0259si","\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131","\xC7\u0259r\u015F\u0259nb\u0259","C\xFCm\u0259 ax\u015Fam\u0131","C\xFCm\u0259","\u015E\u0259nb\u0259"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","\u0130yn","\u0130yl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmaq \xFC\xE7\xFCn s\xFCr\xFC\u015Fd\xFCr\xFCn",toggleTitle:"A\xE7 / Ba\u011Fla",amPM:["G\u018F","GS"],time_24hr:!0};o.l10ns.az=s,o.l10ns;var u=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},l={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0410\u045E","\u0421\u0440","\u0427\u0446","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u044F\u0434\u0437\u0435\u043B\u044F","\u041F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A","\u0410\u045E\u0442\u043E\u0440\u0430\u043A","\u0421\u0435\u0440\u0430\u0434\u0430","\u0427\u0430\u0446\u0432\u0435\u0440","\u041F\u044F\u0442\u043D\u0456\u0446\u0430","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0442\u0443","\u041B\u044E\u0442","\u0421\u0430\u043A","\u041A\u0440\u0430","\u0422\u0440\u0430","\u0427\u044D\u0440","\u041B\u0456\u043F","\u0416\u043D\u0456","\u0412\u0435\u0440","\u041A\u0430\u0441","\u041B\u0456\u0441","\u0421\u043D\u0435"],longhand:["\u0421\u0442\u0443\u0434\u0437\u0435\u043D\u044C","\u041B\u044E\u0442\u044B","\u0421\u0430\u043A\u0430\u0432\u0456\u043A","\u041A\u0440\u0430\u0441\u0430\u0432\u0456\u043A","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u044D\u0440\u0432\u0435\u043D\u044C","\u041B\u0456\u043F\u0435\u043D\u044C","\u0416\u043D\u0456\u0432\u0435\u043D\u044C","\u0412\u0435\u0440\u0430\u0441\u0435\u043D\u044C","\u041A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A","\u041B\u0456\u0441\u0442\u0430\u043F\u0430\u0434","\u0421\u043D\u0435\u0436\u0430\u043D\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0422\u044B\u0434.",scrollTitle:"\u041F\u0440\u0430\u043A\u0440\u0443\u0446\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0430\u0432\u0435\u043B\u0456\u0447\u044D\u043D\u043D\u044F",toggleTitle:"\u041D\u0430\u0446\u0456\u0441\u043D\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};u.l10ns.be=l,u.l10ns;var c=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},d={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};c.l10ns.bs=d,c.l10ns;var f=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},h={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0435\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u044F\u0434\u0430","\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A","\u041F\u0435\u0442\u044A\u043A","\u0421\u044A\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0443","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},time_24hr:!0,firstDayOfWeek:1};f.l10ns.bg=h,f.l10ns;var p=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},g={weekdays:{shorthand:["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],longhand:["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"]},months:{shorthand:["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7","\u0985\u0995\u09CD\u099F\u09CB","\u09A8\u09AD\u09C7","\u09A1\u09BF\u09B8\u09C7"],longhand:["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]}};p.l10ns.bn=g,p.l10ns;var w=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},S={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Mar\xE7","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Mar\xE7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:function(je){var Ln=je%100;if(Ln>3&&Ln<21)return"\xE8";switch(Ln%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"\xE8"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};w.l10ns.cat=w.l10ns.ca=S,w.l10ns;var T=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},k={weekdays:{shorthand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"],longhand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"]},months:{shorthand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"],longhand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"]},firstDayOfWeek:6,ordinal:function(){return""}};T.l10ns.ckb=k,T.l10ns;var D=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},N={weekdays:{shorthand:["Ne","Po","\xDAt","St","\u010Ct","P\xE1","So"],longhand:["Ned\u011Ble","Pond\u011Bl\xED","\xDAter\xFD","St\u0159eda","\u010Ctvrtek","P\xE1tek","Sobota"]},months:{shorthand:["Led","\xDAn","B\u0159e","Dub","Kv\u011B","\u010Cer","\u010Cvc","Srp","Z\xE1\u0159","\u0158\xEDj","Lis","Pro"],longhand:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"T\xFDd.",scrollTitle:"Rolujte pro zm\u011Bnu",toggleTitle:"P\u0159epnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};D.l10ns.cs=N,D.l10ns;var C=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},O={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function(je){return je===1?"af":je===2?"ail":je===3||je===4?"ydd":je===5||je===6?"ed":je>=7&&je<=10||je==12||je==15||je==18||je==20?"fed":je==11||je==13||je==14||je==16||je==17||je==19?"eg":je>=21&&je<=39?"ain":""},time_24hr:!0};C.l10ns.cy=O,C.l10ns;var B=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},z={weekdays:{shorthand:["s\xF8n","man","tir","ons","tors","fre","l\xF8r"],longhand:["s\xF8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xF8rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};B.l10ns.da=z,B.l10ns;var Q=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},X={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};Q.l10ns.de=X,Q.l10ns;var ie={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(je){var Ln=je%100;if(Ln>3&&Ln<21)return"th";switch(Ln%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},q=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},J={firstDayOfWeek:1,rangeSeparator:" \u011Dis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por \u015Dalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","\u0134a\u016D","Ven","Sab"],longhand:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016Ddo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","A\u016Dg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016Dgusto","septembro","oktobro","novembro","decembro"]},ordinal:function(){return"-a"},time_24hr:!0};q.l10ns.eo=J,q.l10ns;var te=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ce={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xE9","Jue","Vie","S\xE1b"],longhand:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"\xBA"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};te.l10ns.es=ce,te.l10ns;var de=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fe={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["P\xFChap\xE4ev","Esmasp\xE4ev","Teisip\xE4ev","Kolmap\xE4ev","Neljap\xE4ev","Reede","Laup\xE4ev"]},months:{shorthand:["Jaan","Veebr","M\xE4rts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","M\xE4rts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"N\xE4d",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Kl\xF5psa, et vahetada",time_24hr:!0};de.l10ns.et=fe,de.l10ns;var he=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},De={weekdays:{shorthand:["\u06CC\u06A9","\u062F\u0648","\u0633\u0647","\u0686\u0647\u0627\u0631","\u067E\u0646\u062C","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],longhand:["\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u0686\u200C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},months:{shorthand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],longhand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},firstDayOfWeek:6,ordinal:function(){return""}};he.l10ns.fa=De,he.l10ns;var A=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},I={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kes\xE4","hein\xE4","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xE4kuu","hein\xE4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:function(){return"."},time_24hr:!0};A.l10ns.fi=I,A.l10ns;var et=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},qe={weekdays:{shorthand:["Sun","M\xE1n","T\xFDs","Mik","H\xF3s","Fr\xED","Ley"],longhand:["Sunnudagur","M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apr\xEDl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r",time_24hr:!0};et.l10ns.fo=qe,et.l10ns;var K=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},V={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xE9vr","mars","avr","mai","juin","juil","ao\xFBt","sept","oct","nov","d\xE9c"],longhand:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},ordinal:function(je){return je>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};K.l10ns.fr=V,K.l10ns;var U=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},G={weekdays:{shorthand:["\u039A\u03C5","\u0394\u03B5","\u03A4\u03C1","\u03A4\u03B5","\u03A0\u03AD","\u03A0\u03B1","\u03A3\u03AC"],longhand:["\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE","\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1","\u03A4\u03C1\u03AF\u03C4\u03B7","\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7","\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7","\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE","\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF"]},months:{shorthand:["\u0399\u03B1\u03BD","\u03A6\u03B5\u03B2","\u039C\u03AC\u03C1","\u0391\u03C0\u03C1","\u039C\u03AC\u03B9","\u0399\u03BF\u03CD\u03BD","\u0399\u03BF\u03CD\u03BB","\u0391\u03CD\u03B3","\u03A3\u03B5\u03C0","\u039F\u03BA\u03C4","\u039D\u03BF\u03AD","\u0394\u03B5\u03BA"],longhand:["\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2","\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2","\u039C\u03AC\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2","\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2","\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2","\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2"]},firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"\u0395\u03B2\u03B4",rangeSeparator:" \u03AD\u03C9\u03C2 ",scrollTitle:"\u039C\u03B5\u03C4\u03B1\u03BA\u03C5\u03BB\u03AE\u03C3\u03C4\u03B5 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03CD\u03BE\u03B7\u03C3\u03B7",toggleTitle:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE",amPM:["\u03A0\u039C","\u039C\u039C"],yearAriaLabel:"\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2",monthAriaLabel:"\u03BC\u03AE\u03BD\u03B1\u03C2",hourAriaLabel:"\u03CE\u03C1\u03B1",minuteAriaLabel:"\u03BB\u03B5\u03C0\u03C4\u03CC"};U.l10ns.gr=G,U.l10ns;var ye=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ee={weekdays:{shorthand:["\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05E9"],longhand:["\u05E8\u05D0\u05E9\u05D5\u05DF","\u05E9\u05E0\u05D9","\u05E9\u05DC\u05D9\u05E9\u05D9","\u05E8\u05D1\u05D9\u05E2\u05D9","\u05D7\u05DE\u05D9\u05E9\u05D9","\u05E9\u05D9\u05E9\u05D9","\u05E9\u05D1\u05EA"]},months:{shorthand:["\u05D9\u05E0\u05D5\u05F3","\u05E4\u05D1\u05E8\u05F3","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05F3","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05F3","\u05E1\u05E4\u05D8\u05F3","\u05D0\u05D5\u05E7\u05F3","\u05E0\u05D5\u05D1\u05F3","\u05D3\u05E6\u05DE\u05F3"],longhand:["\u05D9\u05E0\u05D5\u05D0\u05E8","\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05D9\u05DC","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8","\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8","\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8","\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8","\u05D3\u05E6\u05DE\u05D1\u05E8"]},rangeSeparator:" \u05D0\u05DC ",time_24hr:!0};ye.l10ns.he=Ee,ye.l10ns;var Fe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ge={weekdays:{shorthand:["\u0930\u0935\u093F","\u0938\u094B\u092E","\u092E\u0902\u0917\u0932","\u092C\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],longhand:["\u0930\u0935\u093F\u0935\u093E\u0930","\u0938\u094B\u092E\u0935\u093E\u0930","\u092E\u0902\u0917\u0932\u0935\u093E\u0930","\u092C\u0941\u0927\u0935\u093E\u0930","\u0917\u0941\u0930\u0941\u0935\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930","\u0936\u0928\u093F\u0935\u093E\u0930"]},months:{shorthand:["\u091C\u0928","\u092B\u0930","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917","\u0938\u093F\u0924","\u0905\u0915\u094D\u091F","\u0928\u0935","\u0926\u093F"],longhand:["\u091C\u0928\u0935\u0930\u0940 ","\u092B\u0930\u0935\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u0924 ","\u0938\u093F\u0924\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u0942\u092C\u0930","\u0928\u0935\u092E\u094D\u092C\u0930","\u0926\u093F\u0938\u092E\u094D\u092C\u0930"]}};Fe.l10ns.hi=Ge,Fe.l10ns;var ht=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},pt={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","O\u017Eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Sije\u010Danj","Velja\u010Da","O\u017Eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]},time_24hr:!0};ht.l10ns.hr=pt,ht.l10ns;var tn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yn={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vas\xE1rnap","H\xE9tf\u0151","Kedd","Szerda","Cs\xFCt\xF6rt\xF6k","P\xE9ntek","Szombat"]},months:{shorthand:["Jan","Feb","M\xE1r","\xC1pr","M\xE1j","J\xFAn","J\xFAl","Aug","Szep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","M\xE1rcius","\xC1prilis","M\xE1jus","J\xFAnius","J\xFAlius","Augusztus","Szeptember","Okt\xF3ber","November","December"]},ordinal:function(){return"."},weekAbbreviation:"H\xE9t",scrollTitle:"G\xF6rgessen",toggleTitle:"Kattintson a v\xE1lt\xE1shoz",rangeSeparator:" - ",time_24hr:!0};tn.l10ns.hu=yn,tn.l10ns;var nn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Wt={weekdays:{shorthand:["\u053F\u056B\u0580","\u0535\u0580\u056F","\u0535\u0580\u0584","\u0549\u0580\u0584","\u0540\u0576\u0563","\u0548\u0582\u0580\u0562","\u0547\u0562\u0569"],longhand:["\u053F\u056B\u0580\u0561\u056F\u056B","\u0535\u056F\u0578\u0582\u0577\u0561\u0562\u0569\u056B","\u0535\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0549\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0540\u056B\u0576\u0563\u0577\u0561\u0562\u0569\u056B","\u0548\u0582\u0580\u0562\u0561\u0569","\u0547\u0561\u0562\u0561\u0569"]},months:{shorthand:["\u0540\u0576\u057E","\u0553\u057F\u0580","\u0544\u0561\u0580","\u0531\u057A\u0580","\u0544\u0561\u0575","\u0540\u0576\u057D","\u0540\u056C\u057D","\u0555\u0563\u057D","\u054D\u0565\u057A","\u0540\u0578\u056F","\u0546\u0574\u0562","\u0534\u0565\u056F"],longhand:["\u0540\u0578\u0582\u0576\u057E\u0561\u0580","\u0553\u0565\u057F\u0580\u057E\u0561\u0580","\u0544\u0561\u0580\u057F","\u0531\u057A\u0580\u056B\u056C","\u0544\u0561\u0575\u056B\u057D","\u0540\u0578\u0582\u0576\u056B\u057D","\u0540\u0578\u0582\u056C\u056B\u057D","\u0555\u0563\u0578\u057D\u057F\u0578\u057D","\u054D\u0565\u057A\u057F\u0565\u0574\u0562\u0565\u0580","\u0540\u0578\u056F\u057F\u0565\u0574\u0562\u0565\u0580","\u0546\u0578\u0575\u0565\u0574\u0562\u0565\u0580","\u0534\u0565\u056F\u057F\u0565\u0574\u0562\u0565\u0580"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0547\u0532\u054F",scrollTitle:"\u0548\u056C\u0578\u0580\u0565\u0584\u055D \u0574\u0565\u056E\u0561\u0581\u0576\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",toggleTitle:"\u054D\u0565\u0572\u0574\u0565\u0584\u055D \u0583\u0578\u056D\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",amPM:["\u0544\u053F","\u053F\u0540"],yearAriaLabel:"\u054F\u0561\u0580\u056B",monthAriaLabel:"\u0531\u0574\u056B\u057D",hourAriaLabel:"\u053A\u0561\u0574",minuteAriaLabel:"\u0550\u0578\u057A\u0565",time_24hr:!0};nn.l10ns.hy=Wt,nn.l10ns;var Ct=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Un={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};Ct.l10ns.id=Un,Ct.l10ns;var zn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Tn={weekdays:{shorthand:["Sun","M\xE1n","\xDEri","Mi\xF0","Fim","F\xF6s","Lau"],longhand:["Sunnudagur","M\xE1nudagur","\xDEri\xF0judagur","Mi\xF0vikudagur","Fimmtudagur","F\xF6studagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Ma\xED","J\xFAn","J\xFAl","\xC1g\xFA","Sep","Okt","N\xF3v","Des"],longhand:["Jan\xFAar","Febr\xFAar","Mars","Apr\xEDl","Ma\xED","J\xFAn\xED","J\xFAl\xED","\xC1g\xFAst","September","Okt\xF3ber","N\xF3vember","Desember"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r",time_24hr:!0};zn.l10ns.is=Tn,zn.l10ns;var Mn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Cn={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xEC","Marted\xEC","Mercoled\xEC","Gioved\xEC","Venerd\xEC","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"\xB0"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};Mn.l10ns.it=Cn,Mn.l10ns;var lt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bt={weekdays:{shorthand:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],longhand:["\u65E5\u66DC\u65E5","\u6708\u66DC\u65E5","\u706B\u66DC\u65E5","\u6C34\u66DC\u65E5","\u6728\u66DC\u65E5","\u91D1\u66DC\u65E5","\u571F\u66DC\u65E5"]},months:{shorthand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],longhand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},time_24hr:!0,rangeSeparator:" \u304B\u3089 ",monthAriaLabel:"\u6708",amPM:["\u5348\u524D","\u5348\u5F8C"],yearAriaLabel:"\u5E74",hourAriaLabel:"\u6642\u9593",minuteAriaLabel:"\u5206"};lt.l10ns.ja=Bt,lt.l10ns;var tt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},j={weekdays:{shorthand:["\u10D9\u10D5","\u10DD\u10E0","\u10E1\u10D0","\u10DD\u10D7","\u10EE\u10E3","\u10DE\u10D0","\u10E8\u10D0"],longhand:["\u10D9\u10D5\u10D8\u10E0\u10D0","\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10D8","\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8"]},months:{shorthand:["\u10D8\u10D0\u10DC","\u10D7\u10D4\u10D1","\u10DB\u10D0\u10E0","\u10D0\u10DE\u10E0","\u10DB\u10D0\u10D8","\u10D8\u10D5\u10DC","\u10D8\u10D5\u10DA","\u10D0\u10D2\u10D5","\u10E1\u10D4\u10E5","\u10DD\u10E5\u10E2","\u10DC\u10DD\u10D4","\u10D3\u10D4\u10D9"],longhand:["\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10D8","\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10D8","\u10DB\u10D0\u10E0\u10E2\u10D8","\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8","\u10DB\u10D0\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DC\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DA\u10D8\u10E1\u10D8","\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10DD","\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u10D9\u10D5.",scrollTitle:"\u10D3\u10D0\u10E1\u10E5\u10E0\u10DD\u10DA\u10D4\u10D7 \u10D2\u10D0\u10E1\u10D0\u10D3\u10D8\u10D3\u10D4\u10D1\u10DA\u10D0\u10D3",toggleTitle:"\u10D3\u10D0\u10D0\u10D9\u10DA\u10D8\u10D9\u10D4\u10D7 \u10D2\u10D0\u10D3\u10D0\u10E0\u10D7\u10D5\u10D8\u10E1\u10D7\u10D5\u10D8\u10E1",amPM:["AM","PM"],yearAriaLabel:"\u10EC\u10D4\u10DA\u10D8",time_24hr:!0};tt.l10ns.ka=j,tt.l10ns;var ne=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},be={weekdays:{shorthand:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],longhand:["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"]},months:{shorthand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"],longhand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]},ordinal:function(){return"\uC77C"},rangeSeparator:" ~ ",amPM:["\uC624\uC804","\uC624\uD6C4"]};ne.l10ns.ko=be,ne.l10ns;var Be=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ct={weekdays:{shorthand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F.","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"],longhand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"]},months:{shorthand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"],longhand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"]},ordinal:function(){return""},firstDayOfWeek:1,rangeSeparator:" \u178A\u179B\u17CB ",weekAbbreviation:"\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD",scrollTitle:"\u179A\u17C6\u1780\u17B7\u179B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1794\u1784\u17D2\u1780\u17BE\u1793",toggleTitle:"\u1785\u17BB\u1785\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1795\u17D2\u179B\u17B6\u179F\u17CB\u1794\u17D2\u178A\u17BC\u179A",yearAriaLabel:"\u1786\u17D2\u1793\u17B6\u17C6",time_24hr:!0};Be.l10ns.km=ct,Be.l10ns;var rn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ue={weekdays:{shorthand:["\u0416\u0441","\u0414\u0441","\u0421c","\u0421\u0440","\u0411\u0441","\u0416\u043C","\u0421\u0431"],longhand:["\u0416\u0435\u043A\u0441\u0435\u043D\u0431i","\u0414\u04AF\u0439\u0441\u0435\u043D\u0431i","\u0421\u0435\u0439\u0441\u0435\u043D\u0431i","\u0421\u04D9\u0440\u0441\u0435\u043D\u0431i","\u0411\u0435\u0439\u0441\u0435\u043D\u0431i","\u0416\u04B1\u043C\u0430","\u0421\u0435\u043D\u0431i"]},months:{shorthand:["\u049A\u0430\u04A3","\u0410\u049B\u043F","\u041D\u0430\u0443","\u0421\u04D9\u0443","\u041C\u0430\u043C","\u041C\u0430\u0443","\u0428i\u043B","\u0422\u0430\u043C","\u049A\u044B\u0440","\u049A\u0430\u0437","\u049A\u0430\u0440","\u0416\u0435\u043B"],longhand:["\u049A\u0430\u04A3\u0442\u0430\u0440","\u0410\u049B\u043F\u0430\u043D","\u041D\u0430\u0443\u0440\u044B\u0437","\u0421\u04D9\u0443i\u0440","\u041C\u0430\u043C\u044B\u0440","\u041C\u0430\u0443\u0441\u044B\u043C","\u0428i\u043B\u0434\u0435","\u0422\u0430\u043C\u044B\u0437","\u049A\u044B\u0440\u043A\u04AF\u0439\u0435\u043A","\u049A\u0430\u0437\u0430\u043D","\u049A\u0430\u0440\u0430\u0448\u0430","\u0416\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0410\u043F\u0442\u0430",scrollTitle:"\u04AE\u043B\u043A\u0435\u0439\u0442\u0443 \u04AF\u0448\u0456\u043D \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u044B\u04A3\u044B\u0437",toggleTitle:"\u0410\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u04AF\u0448\u0456\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",amPM:["\u0422\u0414","\u0422\u041A"],yearAriaLabel:"\u0416\u044B\u043B"};rn.l10ns.kz=Ue,rn.l10ns;var Se=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dt={weekdays:{shorthand:["S","Pr","A","T","K","Pn","\u0160"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Tre\u010Diadienis","Ketvirtadienis","Penktadienis","\u0160e\u0161tadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegu\u017E\u0117","Bir\u017Eelis","Liepa","Rugpju\u0304tis","Rugse\u0307jis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},rangeSeparator:" iki ",weekAbbreviation:"Sav",scrollTitle:"Keisti laik\u0105 pel\u0117s rateliu",toggleTitle:"Perjungti laiko format\u0105",time_24hr:!0};Se.l10ns.lt=Dt,Se.l10ns;var Kt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ye={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","J\u016Bn","J\u016Bl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janv\u0101ris","Febru\u0101ris","Marts","Apr\u012Blis","Maijs","J\u016Bnijs","J\u016Blijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" l\u012Bdz ",time_24hr:!0};Kt.l10ns.lv=Ye,Kt.l10ns;var qt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yt={weekdays:{shorthand:["\u041D\u0435","\u041F\u043E","\u0412\u0442","\u0421\u0440","\u0427\u0435","\u041F\u0435","\u0421\u0430"],longhand:["\u041D\u0435\u0434\u0435\u043B\u0430","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0440\u0442\u043E\u043A","\u041F\u0435\u0442\u043E\u043A","\u0421\u0430\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0408\u0430\u043D","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0458","\u0408\u0443\u043D","\u0408\u0443\u043B","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u0408\u0430\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0458","\u0408\u0443\u043D\u0438","\u0408\u0443\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},firstDayOfWeek:1,weekAbbreviation:"\u041D\u0435\u0434.",rangeSeparator:" \u0434\u043E ",time_24hr:!0};qt.l10ns.mk=yt,qt.l10ns;var Yt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$r={firstDayOfWeek:1,weekdays:{shorthand:["\u0414\u0430","\u041C\u044F","\u041B\u0445","\u041F\u04AF","\u0411\u0430","\u0411\u044F","\u041D\u044F"],longhand:["\u0414\u0430\u0432\u0430\u0430","\u041C\u044F\u0433\u043C\u0430\u0440","\u041B\u0445\u0430\u0433\u0432\u0430","\u041F\u04AF\u0440\u044D\u0432","\u0411\u0430\u0430\u0441\u0430\u043D","\u0411\u044F\u043C\u0431\u0430","\u041D\u044F\u043C"]},months:{shorthand:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],longhand:["\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},rangeSeparator:"-\u0441 ",time_24hr:!0};Yt.l10ns.mn=$r,Yt.l10ns;var Li=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},x={weekdays:{shorthand:["Aha","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function(){return""}};Li.l10ns;var _=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},R={weekdays:{shorthand:["\u1014\u103D\u1031","\u101C\u102C","\u1002\u102B","\u101F\u1030\u1038","\u1000\u103C\u102C","\u101E\u1031\u102C","\u1014\u1031"],longhand:["\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031","\u1010\u1014\u1004\u103A\u1039\u101C\u102C","\u1021\u1004\u103A\u1039\u1002\u102B","\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038","\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038","\u101E\u1031\u102C\u1000\u103C\u102C","\u1005\u1014\u1031"]},months:{shorthand:["\u1007\u1014\u103A","\u1016\u1031","\u1019\u1010\u103A","\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u101C\u102D\u102F\u1004\u103A","\u101E\u103C","\u1005\u1000\u103A","\u1021\u1031\u102C\u1000\u103A","\u1014\u102D\u102F","\u1012\u102E"],longhand:["\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E","\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E","\u1019\u1010\u103A","\u1027\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u1007\u1030\u101C\u102D\u102F\u1004\u103A","\u101E\u103C\u1002\u102F\u1010\u103A","\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C","\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C","\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C","\u1012\u102E\u1007\u1004\u103A\u1018\u102C"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0};_.l10ns.my=R,_.l10ns;var W=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},re={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:function(je){return je===1||je===8||je>=20?"ste":"de"}};W.l10ns.nl=re,W.l10ns;var ae=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},xe={weekdays:{shorthand:["S\xF8.","M\xE5.","Ty.","On.","To.","Fr.","La."],longhand:["S\xF8ndag","M\xE5ndag","Tysdag","Onsdag","Torsdag","Fredag","Laurdag"]},months:{shorthand:["Jan","Feb","Mars","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Veke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:function(){return"."}};ae.l10ns.nn=xe,ae.l10ns;var ue=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},_e={weekdays:{shorthand:["S\xF8n","Man","Tir","Ons","Tor","Fre","L\xF8r"],longhand:["S\xF8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:function(){return"."}};ue.l10ns.no=_e,ue.l10ns;var le=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},we={weekdays:{shorthand:["\u0A10\u0A24","\u0A38\u0A4B\u0A2E","\u0A2E\u0A70\u0A17\u0A32","\u0A2C\u0A41\u0A71\u0A27","\u0A35\u0A40\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30"],longhand:["\u0A10\u0A24\u0A35\u0A3E\u0A30","\u0A38\u0A4B\u0A2E\u0A35\u0A3E\u0A30","\u0A2E\u0A70\u0A17\u0A32\u0A35\u0A3E\u0A30","\u0A2C\u0A41\u0A71\u0A27\u0A35\u0A3E\u0A30","\u0A35\u0A40\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30\u0A35\u0A3E\u0A30"]},months:{shorthand:["\u0A1C\u0A28","\u0A2B\u0A3C\u0A30","\u0A2E\u0A3E\u0A30","\u0A05\u0A2A\u0A4D\u0A30\u0A48","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E","\u0A05\u0A17","\u0A38\u0A24\u0A70","\u0A05\u0A15","\u0A28\u0A35\u0A70","\u0A26\u0A38\u0A70"],longhand:["\u0A1C\u0A28\u0A35\u0A30\u0A40","\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40","\u0A2E\u0A3E\u0A30\u0A1A","\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E\u0A08","\u0A05\u0A17\u0A38\u0A24","\u0A38\u0A24\u0A70\u0A2C\u0A30","\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30","\u0A28\u0A35\u0A70\u0A2C\u0A30","\u0A26\u0A38\u0A70\u0A2C\u0A30"]},time_24hr:!0};le.l10ns.pa=we,le.l10ns;var ze=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},At={weekdays:{shorthand:["Nd","Pn","Wt","\u015Ar","Cz","Pt","So"],longhand:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015Aroda","Czwartek","Pi\u0105tek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017A","Lis","Gru"],longhand:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017Adziernik","Listopad","Grudzie\u0144"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewi\u0144, aby zwi\u0119kszy\u0107",toggleTitle:"Kliknij, aby prze\u0142\u0105czy\u0107",firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return"."}};ze.l10ns.pl=At,ze.l10ns;var mt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dn={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],longhand:["Domingo","Segunda-feira","Ter\xE7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xE1bado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" at\xE9 ",time_24hr:!0};mt.l10ns.pt=Dn,mt.l10ns;var bn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Sr={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","S\xE2m"],longhand:["Duminic\u0103","Luni","Mar\u021Bi","Miercuri","Joi","Vineri","S\xE2mb\u0103t\u0103"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return""}};bn.l10ns.ro=Sr,bn.l10ns;var Vn=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ur={weekdays:{shorthand:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u041D\u0435\u0434.",scrollTitle:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0435 \u0434\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F",toggleTitle:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};Vn.l10ns.ru=Ur,Vn.l10ns;var zr=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Vr={weekdays:{shorthand:["\u0D89","\u0DC3","\u0D85","\u0DB6","\u0DB6\u0DCA\u200D\u0DBB","\u0DC3\u0DD2","\u0DC3\u0DD9"],longhand:["\u0D89\u0DBB\u0DD2\u0DAF\u0DCF","\u0DC3\u0DB3\u0DD4\u0DAF\u0DCF","\u0D85\u0D9F\u0DC4\u0DBB\u0DD4\u0DC0\u0DCF\u0DAF\u0DCF","\u0DB6\u0DAF\u0DCF\u0DAF\u0DCF","\u0DB6\u0DCA\u200D\u0DBB\u0DC4\u0DC3\u0DCA\u0DB4\u0DAD\u0DD2\u0DB1\u0DCA\u0DAF\u0DCF","\u0DC3\u0DD2\u0D9A\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF","\u0DC3\u0DD9\u0DB1\u0DC3\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF"]},months:{shorthand:["\u0DA2\u0DB1","\u0DB4\u0DD9\u0DB6","\u0DB8\u0DCF\u0DBB\u0DCA","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD","\u0DC3\u0DD0\u0DB4\u0DCA","\u0D94\u0D9A\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0","\u0DAF\u0DD9\u0DC3\u0DD0"],longhand:["\u0DA2\u0DB1\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB4\u0DD9\u0DB6\u0DBB\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB8\u0DCF\u0DBB\u0DCA\u0DAD\u0DD4","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA\u0DBD\u0DCA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD\u0DC3\u0DCA\u0DAD\u0DD4","\u0DC3\u0DD0\u0DB4\u0DCA\u0DAD\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0D94\u0D9A\u0DCA\u0DAD\u0DDD\u0DB6\u0DBB\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0DAF\u0DD9\u0DC3\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA"]},time_24hr:!0};zr.l10ns.si=Vr,zr.l10ns;var jr=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Pi={weekdays:{shorthand:["Ned","Pon","Ut","Str","\u0160tv","Pia","Sob"],longhand:["Nede\u013Ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","M\xE1j","J\xFAn","J\xFAl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","Marec","Apr\xEDl","M\xE1j","J\xFAn","J\xFAl","August","September","Okt\xF3ber","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};jr.l10ns.sk=Pi,jr.l10ns;var L=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},y={weekdays:{shorthand:["Ned","Pon","Tor","Sre","\u010Cet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","\u010Cetrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};L.l10ns.sl=y,L.l10ns;var b=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},m={weekdays:{shorthand:["Di","H\xEB","Ma","M\xEB","En","Pr","Sh"],longhand:["E Diel","E H\xEBn\xEB","E Mart\xEB","E M\xEBrkur\xEB","E Enjte","E Premte","E Shtun\xEB"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xEBn","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xEBntor","Dhjetor"]},time_24hr:!0};b.l10ns.sq=m,b.l10ns;var E=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},M={weekdays:{shorthand:["Ned","Pon","Uto","Sre","\u010Cet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};E.l10ns.sr=M,E.l10ns;var P=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},H={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["s\xF6n","m\xE5n","tis","ons","tor","fre","l\xF6r"],longhand:["s\xF6ndag","m\xE5ndag","tisdag","onsdag","torsdag","fredag","l\xF6rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},rangeSeparator:" till ",time_24hr:!0,ordinal:function(){return"."}};P.l10ns.sv=H,P.l10ns;var Y=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ee={weekdays:{shorthand:["\u0E2D\u0E32","\u0E08","\u0E2D","\u0E1E","\u0E1E\u0E24","\u0E28","\u0E2A"],longhand:["\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C","\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C","\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23","\u0E1E\u0E38\u0E18","\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35","\u0E28\u0E38\u0E01\u0E23\u0E4C","\u0E40\u0E2A\u0E32\u0E23\u0E4C"]},months:{shorthand:["\u0E21.\u0E04.","\u0E01.\u0E1E.","\u0E21\u0E35.\u0E04.","\u0E40\u0E21.\u0E22.","\u0E1E.\u0E04.","\u0E21\u0E34.\u0E22.","\u0E01.\u0E04.","\u0E2A.\u0E04.","\u0E01.\u0E22.","\u0E15.\u0E04.","\u0E1E.\u0E22.","\u0E18.\u0E04."],longhand:["\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21","\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C","\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21","\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19","\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21","\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19","\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21","\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21","\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19","\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21","\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19","\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21"]},firstDayOfWeek:1,rangeSeparator:" \u0E16\u0E36\u0E07 ",scrollTitle:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E14",toggleTitle:"\u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",time_24hr:!0,ordinal:function(){return""}};Y.l10ns.th=ee,Y.l10ns;var oe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ve={weekdays:{shorthand:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"],time_24hr:!0};oe.l10ns.tr=ve,oe.l10ns;var pe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ce={firstDayOfWeek:1,weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0456\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041F'\u044F\u0442\u043D\u0438\u0446\u044F","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0456\u0447","\u041B\u044E\u0442","\u0411\u0435\u0440","\u041A\u0432\u0456","\u0422\u0440\u0430","\u0427\u0435\u0440","\u041B\u0438\u043F","\u0421\u0435\u0440","\u0412\u0435\u0440","\u0416\u043E\u0432","\u041B\u0438\u0441","\u0413\u0440\u0443"],longhand:["\u0421\u0456\u0447\u0435\u043D\u044C","\u041B\u044E\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u041A\u0432\u0456\u0442\u0435\u043D\u044C","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u0435\u0440\u0432\u0435\u043D\u044C","\u041B\u0438\u043F\u0435\u043D\u044C","\u0421\u0435\u0440\u043F\u0435\u043D\u044C","\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0416\u043E\u0432\u0442\u0435\u043D\u044C","\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043D\u044C"]},time_24hr:!0};pe.l10ns.uk=Ce,pe.l10ns;var Ie=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Te={weekdays:{shorthand:["\u042F\u043A\u0448","\u0414\u0443\u0448","\u0421\u0435\u0448","\u0427\u043E\u0440","\u041F\u0430\u0439","\u0416\u0443\u043C","\u0428\u0430\u043D"],longhand:["\u042F\u043A\u0448\u0430\u043D\u0431\u0430","\u0414\u0443\u0448\u0430\u043D\u0431\u0430","\u0421\u0435\u0448\u0430\u043D\u0431\u0430","\u0427\u043E\u0440\u0448\u0430\u043D\u0431\u0430","\u041F\u0430\u0439\u0448\u0430\u043D\u0431\u0430","\u0416\u0443\u043C\u0430","\u0428\u0430\u043D\u0431\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440","\u0424\u0435\u0432\u0440\u0430\u043B","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440","\u041E\u043A\u0442\u044F\u0431\u0440","\u041D\u043E\u044F\u0431\u0440","\u0414\u0435\u043A\u0430\u0431\u0440"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u04B2\u0430\u0444\u0442\u0430",scrollTitle:"\u041A\u0430\u0442\u0442\u0430\u043B\u0430\u0448\u0442\u0438\u0440\u0438\u0448 \u0443\u0447\u0443\u043D \u0430\u0439\u043B\u0430\u043D\u0442\u0438\u0440\u0438\u043D\u0433",toggleTitle:"\u040E\u0442\u0438\u0448 \u0443\u0447\u0443\u043D \u0431\u043E\u0441\u0438\u043D\u0433",amPM:["AM","PM"],yearAriaLabel:"\u0419\u0438\u043B",time_24hr:!0};Ie.l10ns.uz=Te,Ie.l10ns;var Oe=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ae={weekdays:{shorthand:["Ya","Du","Se","Cho","Pa","Ju","Sha"],longhand:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"Hafta",scrollTitle:"Kattalashtirish uchun aylantiring",toggleTitle:"O\u2018tish uchun bosing",amPM:["AM","PM"],yearAriaLabel:"Yil",time_24hr:!0};Oe.l10ns.uz_latn=Ae,Oe.l10ns;var Le=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},nt={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Ch\u1EE7 nh\u1EADt","Th\u1EE9 hai","Th\u1EE9 ba","Th\u1EE9 t\u01B0","Th\u1EE9 n\u0103m","Th\u1EE9 s\xE1u","Th\u1EE9 b\u1EA3y"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Th\xE1ng m\u1ED9t","Th\xE1ng hai","Th\xE1ng ba","Th\xE1ng t\u01B0","Th\xE1ng n\u0103m","Th\xE1ng s\xE1u","Th\xE1ng b\u1EA3y","Th\xE1ng t\xE1m","Th\xE1ng ch\xEDn","Th\xE1ng m\u01B0\u1EDDi","Th\xE1ng m\u01B0\u1EDDi m\u1ED9t","Th\xE1ng m\u01B0\u1EDDi hai"]},firstDayOfWeek:1,rangeSeparator:" \u0111\u1EBFn "};Le.l10ns.vn=nt,Le.l10ns;var gt=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},bt={weekdays:{shorthand:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u5468",scrollTitle:"\u6EDA\u52A8\u5207\u6362",toggleTitle:"\u70B9\u51FB\u5207\u6362 12/24 \u5C0F\u65F6\u65F6\u5236"};gt.l10ns.zh=bt,gt.l10ns;var An=typeof window!="undefined"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},In={weekdays:{shorthand:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u9031",scrollTitle:"\u6EFE\u52D5\u5207\u63DB",toggleTitle:"\u9EDE\u64CA\u5207\u63DB 12/24 \u5C0F\u6642\u6642\u5236"};An.l10ns.zh_tw=In,An.l10ns;var ar={ar:r,at:a,az:s,be:l,bg:h,bn:g,bs:d,ca:S,ckb:k,cat:S,cs:N,cy:O,da:z,de:X,default:n({},ie),en:ie,eo:J,es:ce,et:fe,fa:De,fi:I,fo:qe,fr:V,gr:G,he:Ee,hi:Ge,hr:pt,hu:yn,hy:Wt,id:Un,is:Tn,it:Cn,ja:Bt,ka:j,ko:be,km:ct,kz:Ue,lt:Dt,lv:Ye,mk:yt,mn:$r,ms:x,my:R,nl:re,nn:xe,no:_e,pa:we,pl:At,pt:Dn,ro:Sr,ru:Ur,si:Vr,sk:Pi,sl:y,sq:m,sr:M,sv:H,th:ee,tr:ve,uk:Ce,vn:nt,zh:bt,zh_tw:In,uz:Te,uz_latn:Ae};t.default=ar,Object.defineProperty(t,"__esModule",{value:!0})})});var pa=rt((uM,mc)=>{"use strict";var DS=Object.prototype.hasOwnProperty,zt="~";function ha(){}Object.create&&(ha.prototype=Object.create(null),new ha().__proto__||(zt=!1));function AS(t,n,e){this.fn=t,this.context=n,this.once=e||!1}function Wp(t,n,e,r,i){if(typeof e!="function")throw new TypeError("The listener must be a function");var a=new AS(e,r||t,i),o=zt?zt+n:n;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],a]:t._events[o].push(a):(t._events[o]=a,t._eventsCount++),t}function Xo(t,n){--t._eventsCount==0?t._events=new ha:delete t._events[n]}function Ft(){this._events=new ha,this._eventsCount=0}Ft.prototype.eventNames=function(){var n=[],e,r;if(this._eventsCount===0)return n;for(r in e=this._events)DS.call(e,r)&&n.push(zt?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n};Ft.prototype.listeners=function(n){var e=zt?zt+n:n,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o};Ft.prototype.listenerCount=function(n){var e=zt?zt+n:n,r=this._events[e];return r?r.fn?1:r.length:0};Ft.prototype.emit=function(n,e,r,i,a,o){var s=zt?zt+n:n;if(!this._events[s])return!1;var u=this._events[s],l=arguments.length,c,d;if(u.fn){switch(u.once&&this.removeListener(n,u.fn,void 0,!0),l){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,i),!0;case 5:return u.fn.call(u.context,e,r,i,a),!0;case 6:return u.fn.call(u.context,e,r,i,a,o),!0}for(d=1,c=new Array(l-1);d<l;d++)c[d-1]=arguments[d];u.fn.apply(u.context,c)}else{var f=u.length,h;for(d=0;d<f;d++)switch(u[d].once&&this.removeListener(n,u[d].fn,void 0,!0),l){case 1:u[d].fn.call(u[d].context);break;case 2:u[d].fn.call(u[d].context,e);break;case 3:u[d].fn.call(u[d].context,e,r);break;case 4:u[d].fn.call(u[d].context,e,r,i);break;default:if(!c)for(h=1,c=new Array(l-1);h<l;h++)c[h-1]=arguments[h];u[d].fn.apply(u[d].context,c)}}return!0};Ft.prototype.on=function(n,e,r){return Wp(this,n,e,r,!1)};Ft.prototype.once=function(n,e,r){return Wp(this,n,e,r,!0)};Ft.prototype.removeListener=function(n,e,r,i){var a=zt?zt+n:n;if(!this._events[a])return this;if(!e)return Xo(this,a),this;var o=this._events[a];if(o.fn)o.fn===e&&(!i||o.once)&&(!r||o.context===r)&&Xo(this,a);else{for(var s=0,u=[],l=o.length;s<l;s++)(o[s].fn!==e||i&&!o[s].once||r&&o[s].context!==r)&&u.push(o[s]);u.length?this._events[a]=u.length===1?u[0]:u:Xo(this,a)}return this};Ft.prototype.removeAllListeners=function(n){var e;return n?(e=zt?zt+n:n,this._events[e]&&Xo(this,e)):(this._events=new ha,this._eventsCount=0),this};Ft.prototype.off=Ft.prototype.removeListener;Ft.prototype.addListener=Ft.prototype.on;Ft.prefixed=zt;Ft.EventEmitter=Ft;typeof mc!="undefined"&&(mc.exports=Ft)});var Zp=rt((OM,Zo)=>{(function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window!="undefined",e=n&&window.mozInnerScreenX!=null;function r(i,a,o){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var s=o&&o.debug||!1;if(s){var u=document.querySelector("#input-textarea-caret-position-mirror-div");u&&u.parentNode.removeChild(u)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var c=l.style,d=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,f=i.nodeName==="INPUT";c.whiteSpace="pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",s||(c.visibility="hidden"),t.forEach(function(g){f&&g==="lineHeight"?c.lineHeight=d.height:c[g]=d[g]}),e?i.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",l.textContent=i.value.substring(0,a),f&&(l.textContent=l.textContent.replace(/\s/g,"\xA0"));var h=document.createElement("span");h.textContent=i.value.substring(a)||".",l.appendChild(h);var p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),height:parseInt(d.lineHeight)};return s?h.style.backgroundColor="#aaa":document.body.removeChild(l),p}typeof Zo!="undefined"&&typeof Zo.exports!="undefined"?Zo.exports=r:n&&(window.getCaretCoordinates=r)})()});var $m=rt((Ac,Ic)=>{(function(t,n){typeof Ac=="object"&&typeof Ic!="undefined"?Ic.exports=n():typeof define=="function"&&define.amd?define(n):t.Mark=n()})(Ac,function(){"use strict";var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n=function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")},e=function(){function s(u,l){for(var c=0;c<l.length;c++){var d=l[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,l,c){return l&&s(u.prototype,l),c&&s(u,c),u}}(),r=Object.assign||function(s){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s},i=function(){function s(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;n(this,s),this.ctx=u,this.iframes=l,this.exclude=c,this.iframesTimeout=d}return e(s,[{key:"getContexts",value:function(){var l=void 0,c=[];return typeof this.ctx=="undefined"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(d){var f=c.filter(function(h){return h.contains(d)}).length>0;c.indexOf(d)===-1&&!f&&c.push(d)}),c}},{key:"getIframeContents",value:function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=void 0;try{var h=l.contentWindow;if(f=h.document,!h||!f)throw new Error("iframe inaccessible")}catch(p){d()}f&&c(f)}},{key:"isIframeBlank",value:function(l){var c="about:blank",d=l.getAttribute("src").trim(),f=l.contentWindow.location.href;return f===c&&d!==c&&d}},{key:"observeIframeLoad",value:function(l,c,d){var f=this,h=!1,p=null,g=function w(){if(!h){h=!0,clearTimeout(p);try{f.isIframeBlank(l)||(l.removeEventListener("load",w),f.getIframeContents(l,c,d))}catch(S){d()}}};l.addEventListener("load",g),p=setTimeout(g,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,c,d){try{l.contentWindow.document.readyState==="complete"?this.isIframeBlank(l)?this.observeIframeLoad(l,c,d):this.getIframeContents(l,c,d):this.observeIframeLoad(l,c,d)}catch(f){d()}}},{key:"waitForIframes",value:function(l,c){var d=this,f=0;this.forEachIframe(l,function(){return!0},function(h){f++,d.waitForIframes(h.querySelector("html"),function(){--f||c()})},function(h){h||c()})}},{key:"forEachIframe",value:function(l,c,d){var f=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},p=l.querySelectorAll("iframe"),g=p.length,w=0;p=Array.prototype.slice.call(p);var S=function(){--g<=0&&h(w)};g||S(),p.forEach(function(T){s.matches(T,f.exclude)?S():f.onIframeReady(T,function(k){c(T)&&(w++,d(k)),S()},S)})}},{key:"createIterator",value:function(l,c,d){return document.createNodeIterator(l,c,d,!1)}},{key:"createInstanceOnIframe",value:function(l){return new s(l.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(l,c,d){var f=l.compareDocumentPosition(d),h=Node.DOCUMENT_POSITION_PRECEDING;if(f&h)if(c!==null){var p=c.compareDocumentPosition(d),g=Node.DOCUMENT_POSITION_FOLLOWING;if(p&g)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(l){var c=l.previousNode(),d=void 0;return c===null?d=l.nextNode():d=l.nextNode()&&l.nextNode(),{prevNode:c,node:d}}},{key:"checkIframeFilter",value:function(l,c,d,f){var h=!1,p=!1;return f.forEach(function(g,w){g.val===d&&(h=w,p=g.handled)}),this.compareNodeIframe(l,c,d)?(h===!1&&!p?f.push({val:d,handled:!0}):h!==!1&&!p&&(f[h].handled=!0),!0):(h===!1&&f.push({val:d,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(l,c,d,f){var h=this;l.forEach(function(p){p.handled||h.getIframeContents(p.val,function(g){h.createInstanceOnIframe(g).forEachNode(c,d,f)})})}},{key:"iterateThroughNodes",value:function(l,c,d,f,h){for(var p=this,g=this.createIterator(c,l,f),w=[],S=[],T=void 0,k=void 0,D=function(){var C=p.getIteratorNode(g);return k=C.prevNode,T=C.node,T};D();)this.iframes&&this.forEachIframe(c,function(N){return p.checkIframeFilter(T,k,N,w)},function(N){p.createInstanceOnIframe(N).forEachNode(l,function(C){return S.push(C)},f)}),S.push(T);S.forEach(function(N){d(N)}),this.iframes&&this.handleOpenIframes(w,l,d,f),h()}},{key:"forEachNode",value:function(l,c,d){var f=this,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},p=this.getContexts(),g=p.length;g||h(),p.forEach(function(w){var S=function(){f.iterateThroughNodes(l,w,c,d,function(){--g<=0&&h()})};f.iframes?f.waitForIframes(w,S):S()})}}],[{key:"matches",value:function(l,c){var d=typeof c=="string"?[c]:c,f=l.matches||l.matchesSelector||l.msMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector;if(f){var h=!1;return d.every(function(p){return f.call(l,p)?(h=!0,!1):!0}),h}else return!1}}]),s}(),a=function(){function s(u){n(this,s),this.ctx=u,this.ie=!1;var l=window.navigator.userAgent;(l.indexOf("MSIE")>-1||l.indexOf("Trident")>-1)&&(this.ie=!0)}return e(s,[{key:"log",value:function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",d=this.opt.log;!this.opt.debug||(typeof d=="undefined"?"undefined":t(d))==="object"&&typeof d[c]=="function"&&d[c]("mark.js: "+l)}},{key:"escapeStr",value:function(l){return l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(l){return this.opt.wildcards!=="disabled"&&(l=this.setupWildcardsRegExp(l)),l=this.escapeStr(l),Object.keys(this.opt.synonyms).length&&(l=this.createSynonymsRegExp(l)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),this.opt.diacritics&&(l=this.createDiacriticsRegExp(l)),l=this.createMergedBlanksRegExp(l),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.createJoinersRegExp(l)),this.opt.wildcards!=="disabled"&&(l=this.createWildcardsRegExp(l)),l=this.createAccuracyRegExp(l),l}},{key:"createSynonymsRegExp",value:function(l){var c=this.opt.synonyms,d=this.opt.caseSensitive?"":"i",f=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var h in c)if(c.hasOwnProperty(h)){var p=c[h],g=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(h):this.escapeStr(h),w=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(p):this.escapeStr(p);g!==""&&w!==""&&(l=l.replace(new RegExp("("+this.escapeStr(g)+"|"+this.escapeStr(w)+")","gm"+d),f+("("+this.processSynomyms(g)+"|")+(this.processSynomyms(w)+")")+f))}return l}},{key:"processSynomyms",value:function(l){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(l=this.setupIgnoreJoinersRegExp(l)),l}},{key:"setupWildcardsRegExp",value:function(l){return l=l.replace(/(?:\\)*\?/g,function(c){return c.charAt(0)==="\\"?"?":""}),l.replace(/(?:\\)*\*/g,function(c){return c.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(l){var c=this.opt.wildcards==="withSpaces";return l.replace(/\u0001/g,c?"[\\S\\s]?":"\\S?").replace(/\u0002/g,c?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(l){return l.replace(/[^(|)\\]/g,function(c,d,f){var h=f.charAt(d+1);return/[(|)\\]/.test(h)||h===""?c:c+"\0"})}},{key:"createJoinersRegExp",value:function(l){var c=[],d=this.opt.ignorePunctuation;return Array.isArray(d)&&d.length&&c.push(this.escapeStr(d.join(""))),this.opt.ignoreJoiners&&c.push("\\u00ad\\u200b\\u200c\\u200d"),c.length?l.split(/\u0000+/).join("["+c.join("")+"]*"):l}},{key:"createDiacriticsRegExp",value:function(l){var c=this.opt.caseSensitive?"":"i",d=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],f=[];return l.split("").forEach(function(h){d.every(function(p){if(p.indexOf(h)!==-1){if(f.indexOf(p)>-1)return!1;l=l.replace(new RegExp("["+p+"]","gm"+c),"["+p+"]"),f.push(p)}return!0})}),l}},{key:"createMergedBlanksRegExp",value:function(l){return l.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(l){var c=this,d="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",f=this.opt.accuracy,h=typeof f=="string"?f:f.value,p=typeof f=="string"?[]:f.limiters,g="";switch(p.forEach(function(w){g+="|"+c.escapeStr(w)}),h){case"partially":default:return"()("+l+")";case"complementary":return g="\\s"+(g||this.escapeStr(d)),"()([^"+g+"]*"+l+"[^"+g+"]*)";case"exactly":return"(^|\\s"+g+")("+l+")(?=$|\\s"+g+")"}}},{key:"getSeparatedKeywords",value:function(l){var c=this,d=[];return l.forEach(function(f){c.opt.separateWordSearch?f.split(" ").forEach(function(h){h.trim()&&d.indexOf(h)===-1&&d.push(h)}):f.trim()&&d.indexOf(f)===-1&&d.push(f)}),{keywords:d.sort(function(f,h){return h.length-f.length}),length:d.length}}},{key:"isNumeric",value:function(l){return Number(parseFloat(l))==l}},{key:"checkRanges",value:function(l){var c=this;if(!Array.isArray(l)||Object.prototype.toString.call(l[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(l),[];var d=[],f=0;return l.sort(function(h,p){return h.start-p.start}).forEach(function(h){var p=c.callNoMatchOnInvalidRanges(h,f),g=p.start,w=p.end,S=p.valid;S&&(h.start=g,h.length=w-g,d.push(h),f=w)}),d}},{key:"callNoMatchOnInvalidRanges",value:function(l,c){var d=void 0,f=void 0,h=!1;return l&&typeof l.start!="undefined"?(d=parseInt(l.start,10),f=d+parseInt(l.length,10),this.isNumeric(l.start)&&this.isNumeric(l.length)&&f-c>0&&f-d>0?h=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(l))),this.opt.noMatch(l))):(this.log("Ignoring invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:d,end:f,valid:h}}},{key:"checkWhitespaceRanges",value:function(l,c,d){var f=void 0,h=!0,p=d.length,g=c-p,w=parseInt(l.start,10)-g;return w=w>p?p:w,f=w+parseInt(l.length,10),f>p&&(f=p,this.log("End range automatically set to the max value of "+p)),w<0||f-w<0||w>p||f>p?(h=!1,this.log("Invalid range: "+JSON.stringify(l)),this.opt.noMatch(l)):d.substring(w,f).replace(/\s+/g,"")===""&&(h=!1,this.log("Skipping whitespace only range: "+JSON.stringify(l)),this.opt.noMatch(l)),{start:w,end:f,valid:h}}},{key:"getTextNodes",value:function(l){var c=this,d="",f=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(h){f.push({start:d.length,end:(d+=h.textContent).length,node:h})},function(h){return c.matchesExclude(h.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){l({value:d,nodes:f})})}},{key:"matchesExclude",value:function(l){return i.matches(l,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(l,c,d){var f=this.opt.element?this.opt.element:"mark",h=l.splitText(c),p=h.splitText(d-c),g=document.createElement(f);return g.setAttribute("data-markjs","true"),this.opt.className&&g.setAttribute("class",this.opt.className),g.textContent=h.textContent,h.parentNode.replaceChild(g,h),p}},{key:"wrapRangeInMappedTextNode",value:function(l,c,d,f,h){var p=this;l.nodes.every(function(g,w){var S=l.nodes[w+1];if(typeof S=="undefined"||S.start>c){if(!f(g.node))return!1;var T=c-g.start,k=(d>g.end?g.end:d)-g.start,D=l.value.substr(0,g.start),N=l.value.substr(k+g.start);if(g.node=p.wrapRangeInTextNode(g.node,T,k),l.value=D+N,l.nodes.forEach(function(C,O){O>=w&&(l.nodes[O].start>0&&O!==w&&(l.nodes[O].start-=k),l.nodes[O].end-=k)}),d-=k,h(g.node.previousSibling,g.start),d>g.end)c=g.end;else return!1}return!0})}},{key:"wrapMatches",value:function(l,c,d,f,h){var p=this,g=c===0?0:c+1;this.getTextNodes(function(w){w.nodes.forEach(function(S){S=S.node;for(var T=void 0;(T=l.exec(S.textContent))!==null&&T[g]!=="";)if(!!d(T[g],S)){var k=T.index;if(g!==0)for(var D=1;D<g;D++)k+=T[D].length;S=p.wrapRangeInTextNode(S,k,k+T[g].length),f(S.previousSibling),l.lastIndex=0}}),h()})}},{key:"wrapMatchesAcrossElements",value:function(l,c,d,f,h){var p=this,g=c===0?0:c+1;this.getTextNodes(function(w){for(var S=void 0;(S=l.exec(w.value))!==null&&S[g]!=="";){var T=S.index;if(g!==0)for(var k=1;k<g;k++)T+=S[k].length;var D=T+S[g].length;p.wrapRangeInMappedTextNode(w,T,D,function(N){return d(S[g],N)},function(N,C){l.lastIndex=C,f(N)})}h()})}},{key:"wrapRangeFromIndex",value:function(l,c,d,f){var h=this;this.getTextNodes(function(p){var g=p.value.length;l.forEach(function(w,S){var T=h.checkWhitespaceRanges(w,g,p.value),k=T.start,D=T.end,N=T.valid;N&&h.wrapRangeInMappedTextNode(p,k,D,function(C){return c(C,w,p.value.substring(k,D),S)},function(C){d(C,w)})}),f()})}},{key:"unwrapMatches",value:function(l){for(var c=l.parentNode,d=document.createDocumentFragment();l.firstChild;)d.appendChild(l.removeChild(l.firstChild));c.replaceChild(d,l),this.ie?this.normalizeTextNode(c):c.normalize()}},{key:"normalizeTextNode",value:function(l){if(!!l){if(l.nodeType===3)for(;l.nextSibling&&l.nextSibling.nodeType===3;)l.nodeValue+=l.nextSibling.nodeValue,l.parentNode.removeChild(l.nextSibling);else this.normalizeTextNode(l.firstChild);this.normalizeTextNode(l.nextSibling)}}},{key:"markRegExp",value:function(l,c){var d=this;this.opt=c,this.log('Searching with expression "'+l+'"');var f=0,h="wrapMatches",p=function(w){f++,d.opt.each(w)};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),this[h](l,this.opt.ignoreGroups,function(g,w){return d.opt.filter(w,g,f)},p,function(){f===0&&d.opt.noMatch(l),d.opt.done(f)})}},{key:"mark",value:function(l,c){var d=this;this.opt=c;var f=0,h="wrapMatches",p=this.getSeparatedKeywords(typeof l=="string"?[l]:l),g=p.keywords,w=p.length,S=this.opt.caseSensitive?"":"i",T=function k(D){var N=new RegExp(d.createRegExp(D),"gm"+S),C=0;d.log('Searching with expression "'+N+'"'),d[h](N,1,function(O,B){return d.opt.filter(B,D,f,C)},function(O){C++,f++,d.opt.each(O)},function(){C===0&&d.opt.noMatch(D),g[w-1]===D?d.opt.done(f):k(g[g.indexOf(D)+1])})};this.opt.acrossElements&&(h="wrapMatchesAcrossElements"),w===0?this.opt.done(f):T(g[0])}},{key:"markRanges",value:function(l,c){var d=this;this.opt=c;var f=0,h=this.checkRanges(l);h&&h.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(h)),this.wrapRangeFromIndex(h,function(p,g,w,S){return d.opt.filter(p,g,w,S)},function(p,g){f++,d.opt.each(p,g)},function(){d.opt.done(f)})):this.opt.done(f)}},{key:"unmark",value:function(l){var c=this;this.opt=l;var d=this.opt.element?this.opt.element:"*";d+="[data-markjs]",this.opt.className&&(d+="."+this.opt.className),this.log('Removal selector "'+d+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(f){c.unwrapMatches(f)},function(f){var h=i.matches(f,d),p=c.matchesExclude(f);return!h||p?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(l){this._opt=r({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},l)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),s}();function o(s){var u=this,l=new a(s);return this.mark=function(c,d){return l.mark(c,d),u},this.markRegExp=function(c,d){return l.markRegExp(c,d),u},this.markRanges=function(c,d){return l.markRanges(c,d),u},this.unmark=function(c){return l.unmark(c),u},this}return o})});var Nc=rt(rr=>{"use strict";var rs=rr&&rr.__assign||function(){return rs=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},rs.apply(this,arguments)},Ox=rr&&rr.__awaiter||function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(c){try{l(r.next(c))}catch(d){o(d)}}function u(c){try{l(r.throw(c))}catch(d){o(d)}}function l(c){c.done?a(c.value):i(c.value).then(s,u)}l((r=r.apply(t,n||[])).next())})},Nx=rr&&rr.__generator||function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(c){return u([l,c])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=n.call(t,e)}catch(c){l=[6,c],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};Object.defineProperty(rr,"__esModule",{value:!0});function is(t){var n=0,e=0,r=t;do n+=r.offsetTop||0,e+=r.offsetLeft||0,r=r.offsetParent;while(r);return{top:n,left:e}}var Fx=function(){function t(n){this.element=n}return t.prototype.getHorizontalScroll=function(){return this.element.scrollLeft},t.prototype.getVerticalScroll=function(){return this.element.scrollTop},t.prototype.getMaxHorizontalScroll=function(){return this.element.scrollWidth-this.element.clientWidth},t.prototype.getMaxVerticalScroll=function(){return this.element.scrollHeight-this.element.clientHeight},t.prototype.getHorizontalElementScrollOffset=function(n,e){return is(n).left-is(e).left},t.prototype.getVerticalElementScrollOffset=function(n,e){return is(n).top-is(e).top},t.prototype.scrollTo=function(n,e){this.element.scrollLeft=n,this.element.scrollTop=e},t}(),Rx=function(){function t(){}return t.prototype.getHorizontalScroll=function(){return window.scrollX||document.documentElement.scrollLeft},t.prototype.getVerticalScroll=function(){return window.scrollY||document.documentElement.scrollTop},t.prototype.getMaxHorizontalScroll=function(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth},t.prototype.getMaxVerticalScroll=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight},t.prototype.getHorizontalElementScrollOffset=function(n){var e=window.scrollX||document.documentElement.scrollLeft;return e+n.getBoundingClientRect().left},t.prototype.getVerticalElementScrollOffset=function(n){var e=window.scrollY||document.documentElement.scrollTop;return e+n.getBoundingClientRect().top},t.prototype.scrollTo=function(n,e){window.scrollTo(n,e)},t}(),nr={elements:[],cancelMethods:[],add:function(t,n){nr.elements.push(t),nr.cancelMethods.push(n)},remove:function(t,n){n===void 0&&(n=!0);var e=nr.elements.indexOf(t);e>-1&&(n&&nr.cancelMethods[e](),nr.elements.splice(e,1),nr.cancelMethods.splice(e,1))}},rg=typeof window!="undefined",Hx={cancelOnUserAction:!0,easing:function(t){return--t*t*t+1},elementToScroll:rg?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function Bx(t,n){return n===void 0&&(n={}),Ox(this,void 0,void 0,function(){var e,r,i,a,o,s,u,l,c,d,f,h,p,g,w,S,T,k;return Nx(this,function(D){if(rg){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return[2,new Promise(function(N){N(!1)})];if(a=rs(rs({},Hx),n),o=a.elementToScroll===window,s=!!a.elementToScroll.nodeName,!o&&!s)throw"Element to scroll needs to be either window or DOM element.";if(u=o?document.documentElement:a.elementToScroll,l=getComputedStyle(u).getPropertyValue("scroll-behavior"),l==="smooth"&&console.warn(u.tagName+` has "scroll-behavior: smooth" which can mess up with animated-scroll-to's animations`),c=o?new Rx:new Fx(a.elementToScroll),t instanceof Element){if(i=t,s&&(!a.elementToScroll.contains(i)||a.elementToScroll.isSameNode(i)))throw"options.elementToScroll has to be a parent of scrollToElement";e=c.getHorizontalElementScrollOffset(i,a.elementToScroll),r=c.getVerticalElementScrollOffset(i,a.elementToScroll)}else if(typeof t=="number")e=c.getHorizontalScroll(),r=t;else if(Array.isArray(t)&&t.length===2)e=t[0]===null?c.getHorizontalScroll():t[0],r=t[1]===null?c.getVerticalScroll():t[1];else throw`Wrong function signature. Check documentation.
|
||
Available method signatures are:
|
||
animateScrollTo(y:number, options)
|
||
animateScrollTo([x:number | null, y:number | null], options)
|
||
animateScrollTo(scrollToElement:Element, options)`;return e+=a.horizontalOffset,r+=a.verticalOffset,d=c.getMaxHorizontalScroll(),f=c.getHorizontalScroll(),e>d&&(e=d),h=e-f,p=c.getMaxVerticalScroll(),g=c.getVerticalScroll(),r>p&&(r=p),w=r-g,S=Math.abs(Math.round(h/1e3*a.speed)),T=Math.abs(Math.round(w/1e3*a.speed)),k=S>T?S:T,k<a.minDuration?k=a.minDuration:k>a.maxDuration&&(k=a.maxDuration),[2,new Promise(function(N,C){h===0&&w===0&&N(!0),nr.remove(a.elementToScroll,!0);var O,B=function(){q(),cancelAnimationFrame(O),N(!1)};nr.add(a.elementToScroll,B);var z=function(ce){return ce.preventDefault()},Q=a.cancelOnUserAction?B:z,X=a.cancelOnUserAction?{passive:!0}:{passive:!1},ie=["wheel","touchstart","keydown","mousedown"],q=function(){ie.forEach(function(ce){a.elementToScroll.removeEventListener(ce,Q,X)})};ie.forEach(function(ce){a.elementToScroll.addEventListener(ce,Q,X)});var J=Date.now(),te=function(){var ce=Date.now()-J,de=ce/k,fe=Math.round(f+h*a.easing(de)),he=Math.round(g+w*a.easing(de));ce<k&&(fe!==e||he!==r)?(c.scrollTo(fe,he),O=requestAnimationFrame(te)):(c.scrollTo(e,r),cancelAnimationFrame(O),q(),nr.remove(a.elementToScroll,!1),N(!0))};O=requestAnimationFrame(te)})]})})}rr.default=Bx});var Yg=rt((gs,jc)=>{(function(n,e){typeof gs=="object"&&typeof jc=="object"?jc.exports=e():typeof define=="function"&&define.amd?define([],e):typeof gs=="object"?gs.Choices=e():n.Choices=e()})(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(r,i,a){e.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,i){if(i&1&&(r=e(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var o in r)e.d(a,o,function(s){return r[s]}.bind(null,o));return a},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="/public/assets/scripts/",e(e.s=4)}([function(t,n,e){"use strict";var r=function(D){return i(D)&&!a(D)};function i(k){return!!k&&typeof k=="object"}function a(k){var D=Object.prototype.toString.call(k);return D==="[object RegExp]"||D==="[object Date]"||u(k)}var o=typeof Symbol=="function"&&Symbol.for,s=o?Symbol.for("react.element"):60103;function u(k){return k.$$typeof===s}function l(k){return Array.isArray(k)?[]:{}}function c(k,D){return D.clone!==!1&&D.isMergeableObject(k)?S(l(k),k,D):k}function d(k,D,N){return k.concat(D).map(function(C){return c(C,N)})}function f(k,D){if(!D.customMerge)return S;var N=D.customMerge(k);return typeof N=="function"?N:S}function h(k){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(k).filter(function(D){return k.propertyIsEnumerable(D)}):[]}function p(k){return Object.keys(k).concat(h(k))}function g(k,D){try{return D in k&&!(Object.hasOwnProperty.call(k,D)&&Object.propertyIsEnumerable.call(k,D))}catch(N){return!1}}function w(k,D,N){var C={};return N.isMergeableObject(k)&&p(k).forEach(function(O){C[O]=c(k[O],N)}),p(D).forEach(function(O){g(k,O)||(!N.isMergeableObject(D[O])||!k[O]?C[O]=c(D[O],N):C[O]=f(O,N)(k[O],D[O],N))}),C}function S(k,D,N){N=N||{},N.arrayMerge=N.arrayMerge||d,N.isMergeableObject=N.isMergeableObject||r,N.cloneUnlessOtherwiseSpecified=c;var C=Array.isArray(D),O=Array.isArray(k),B=C===O;return B?C?N.arrayMerge(k,D,N):w(k,D,N):c(D,N)}S.all=function(D,N){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(C,O){return S(C,O,N)},{})};var T=S;t.exports=T},function(t,n,e){"use strict";(function(r,i){var a=e(3),o;typeof self!="undefined"?o=self:typeof window!="undefined"?o=window:typeof r!="undefined"?o=r:o=i;var s=Object(a.a)(o);n.a=s}).call(this,e(5),e(6)(t))},function(t,n,e){(function(r,i){t.exports=i()})(this,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,u){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:u})},a.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(u,l,function(c){return o[c]}.bind(null,l));return u},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=1)}([function(r,i){r.exports=function(a){return Array.isArray?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"}},function(r,i,a){function o(f){return(o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(f)}function s(f,h){for(var p=0;p<h.length;p++){var g=h[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}var u=a(2),l=a(8),c=a(0),d=function(){function f(w,S){var T=S.location,k=T===void 0?0:T,D=S.distance,N=D===void 0?100:D,C=S.threshold,O=C===void 0?.6:C,B=S.maxPatternLength,z=B===void 0?32:B,Q=S.caseSensitive,X=Q!==void 0&&Q,ie=S.tokenSeparator,q=ie===void 0?/ +/g:ie,J=S.findAllMatches,te=J!==void 0&&J,ce=S.minMatchCharLength,de=ce===void 0?1:ce,fe=S.id,he=fe===void 0?null:fe,De=S.keys,A=De===void 0?[]:De,I=S.shouldSort,et=I===void 0||I,qe=S.getFn,K=qe===void 0?l:qe,V=S.sortFn,U=V===void 0?function(Wt,Ct){return Wt.score-Ct.score}:V,G=S.tokenize,ye=G!==void 0&&G,Ee=S.matchAllTokens,Fe=Ee!==void 0&&Ee,Ge=S.includeMatches,ht=Ge!==void 0&&Ge,pt=S.includeScore,tn=pt!==void 0&&pt,yn=S.verbose,nn=yn!==void 0&&yn;(function(Wt,Ct){if(!(Wt instanceof Ct))throw new TypeError("Cannot call a class as a function")})(this,f),this.options={location:k,distance:N,threshold:O,maxPatternLength:z,isCaseSensitive:X,tokenSeparator:q,findAllMatches:te,minMatchCharLength:de,id:he,keys:A,includeMatches:ht,includeScore:tn,shouldSort:et,getFn:K,sortFn:U,verbose:nn,tokenize:ye,matchAllTokens:Fe},this.setCollection(w)}var h,p,g;return h=f,(p=[{key:"setCollection",value:function(w){return this.list=w,w}},{key:"search",value:function(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`---------
|
||
Search pattern: "`.concat(w,'"'));var T=this._prepareSearchers(w),k=T.tokenSearchers,D=T.fullSearcher,N=this._search(k,D),C=N.weights,O=N.results;return this._computeScore(C,O),this.options.shouldSort&&this._sort(O),S.limit&&typeof S.limit=="number"&&(O=O.slice(0,S.limit)),this._format(O)}},{key:"_prepareSearchers",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",S=[];if(this.options.tokenize)for(var T=w.split(this.options.tokenSeparator),k=0,D=T.length;k<D;k+=1)S.push(new u(T[k],this.options));return{tokenSearchers:S,fullSearcher:new u(w,this.options)}}},{key:"_search",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=arguments.length>1?arguments[1]:void 0,T=this.list,k={},D=[];if(typeof T[0]=="string"){for(var N=0,C=T.length;N<C;N+=1)this._analyze({key:"",value:T[N],record:N,index:N},{resultMap:k,results:D,tokenSearchers:w,fullSearcher:S});return{weights:null,results:D}}for(var O={},B=0,z=T.length;B<z;B+=1)for(var Q=T[B],X=0,ie=this.options.keys.length;X<ie;X+=1){var q=this.options.keys[X];if(typeof q!="string"){if(O[q.name]={weight:1-q.weight||1},q.weight<=0||q.weight>1)throw new Error("Key weight has to be > 0 and <= 1");q=q.name}else O[q]={weight:1};this._analyze({key:q,value:this.options.getFn(Q,q),record:Q,index:B},{resultMap:k,results:D,tokenSearchers:w,fullSearcher:S})}return{weights:O,results:D}}},{key:"_analyze",value:function(w,S){var T=w.key,k=w.arrayIndex,D=k===void 0?-1:k,N=w.value,C=w.record,O=w.index,B=S.tokenSearchers,z=B===void 0?[]:B,Q=S.fullSearcher,X=Q===void 0?[]:Q,ie=S.resultMap,q=ie===void 0?{}:ie,J=S.results,te=J===void 0?[]:J;if(N!=null){var ce=!1,de=-1,fe=0;if(typeof N=="string"){this._log(`
|
||
Key: `.concat(T===""?"-":T));var he=X.search(N);if(this._log('Full text: "'.concat(N,'", score: ').concat(he.score)),this.options.tokenize){for(var De=N.split(this.options.tokenSeparator),A=[],I=0;I<z.length;I+=1){var et=z[I];this._log(`
|
||
Pattern: "`.concat(et.pattern,'"'));for(var qe=!1,K=0;K<De.length;K+=1){var V=De[K],U=et.search(V),G={};U.isMatch?(G[V]=U.score,ce=!0,qe=!0,A.push(U.score)):(G[V]=1,this.options.matchAllTokens||A.push(1)),this._log('Token: "'.concat(V,'", score: ').concat(G[V]))}qe&&(fe+=1)}de=A[0];for(var ye=A.length,Ee=1;Ee<ye;Ee+=1)de+=A[Ee];de/=ye,this._log("Token score average:",de)}var Fe=he.score;de>-1&&(Fe=(Fe+de)/2),this._log("Score average:",Fe);var Ge=!this.options.tokenize||!this.options.matchAllTokens||fe>=z.length;if(this._log(`
|
||
Check Matches: `.concat(Ge)),(ce||he.isMatch)&&Ge){var ht=q[O];ht?ht.output.push({key:T,arrayIndex:D,value:N,score:Fe,matchedIndices:he.matchedIndices}):(q[O]={item:C,output:[{key:T,arrayIndex:D,value:N,score:Fe,matchedIndices:he.matchedIndices}]},te.push(q[O]))}}else if(c(N))for(var pt=0,tn=N.length;pt<tn;pt+=1)this._analyze({key:T,arrayIndex:pt,value:N[pt],record:C,index:O},{resultMap:q,results:te,tokenSearchers:z,fullSearcher:X})}}},{key:"_computeScore",value:function(w,S){this._log(`
|
||
|
||
Computing score:
|
||
`);for(var T=0,k=S.length;T<k;T+=1){for(var D=S[T].output,N=D.length,C=1,O=1,B=0;B<N;B+=1){var z=w?w[D[B].key].weight:1,Q=(z===1?D[B].score:D[B].score||.001)*z;z!==1?O=Math.min(O,Q):(D[B].nScore=Q,C*=Q)}S[T].score=O===1?C:O,this._log(S[T])}}},{key:"_sort",value:function(w){this._log(`
|
||
|
||
Sorting....`),w.sort(this.options.sortFn)}},{key:"_format",value:function(w){var S=[];if(this.options.verbose){var T=[];this._log(`
|
||
|
||
Output:
|
||
|
||
`,JSON.stringify(w,function(Q,X){if(o(X)==="object"&&X!==null){if(T.indexOf(X)!==-1)return;T.push(X)}return X})),T=null}var k=[];this.options.includeMatches&&k.push(function(Q,X){var ie=Q.output;X.matches=[];for(var q=0,J=ie.length;q<J;q+=1){var te=ie[q];if(te.matchedIndices.length!==0){var ce={indices:te.matchedIndices,value:te.value};te.key&&(ce.key=te.key),te.hasOwnProperty("arrayIndex")&&te.arrayIndex>-1&&(ce.arrayIndex=te.arrayIndex),X.matches.push(ce)}}}),this.options.includeScore&&k.push(function(Q,X){X.score=Q.score});for(var D=0,N=w.length;D<N;D+=1){var C=w[D];if(this.options.id&&(C.item=this.options.getFn(C.item,this.options.id)[0]),k.length){for(var O={item:C.item},B=0,z=k.length;B<z;B+=1)k[B](C,O);S.push(O)}else S.push(C.item)}return S}},{key:"_log",value:function(){var w;this.options.verbose&&(w=console).log.apply(w,arguments)}}])&&s(h.prototype,p),g&&s(h,g),f}();r.exports=d},function(r,i,a){function o(d,f){for(var h=0;h<f.length;h++){var p=f[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(g,w){var S=w.location,T=S===void 0?0:S,k=w.distance,D=k===void 0?100:k,N=w.threshold,C=N===void 0?.6:N,O=w.maxPatternLength,B=O===void 0?32:O,z=w.isCaseSensitive,Q=z!==void 0&&z,X=w.tokenSeparator,ie=X===void 0?/ +/g:X,q=w.findAllMatches,J=q!==void 0&&q,te=w.minMatchCharLength,ce=te===void 0?1:te;(function(de,fe){if(!(de instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:T,distance:D,threshold:C,maxPatternLength:B,isCaseSensitive:Q,tokenSeparator:ie,findAllMatches:J,minMatchCharLength:ce},this.pattern=this.options.isCaseSensitive?g:g.toLowerCase(),this.pattern.length<=B&&(this.patternAlphabet=l(this.pattern))}var f,h,p;return f=d,(h=[{key:"search",value:function(g){if(this.options.isCaseSensitive||(g=g.toLowerCase()),this.pattern===g)return{isMatch:!0,score:0,matchedIndices:[[0,g.length-1]]};var w=this.options,S=w.maxPatternLength,T=w.tokenSeparator;if(this.pattern.length>S)return s(g,this.pattern,T);var k=this.options,D=k.location,N=k.distance,C=k.threshold,O=k.findAllMatches,B=k.minMatchCharLength;return u(g,this.pattern,this.patternAlphabet,{location:D,distance:N,threshold:C,findAllMatches:O,minMatchCharLength:B})}}])&&o(f.prototype,h),p&&o(f,p),d}();r.exports=c},function(r,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;r.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a,"\\$&").replace(u,"|")),c=o.match(l),d=!!c,f=[];if(d)for(var h=0,p=c.length;h<p;h+=1){var g=c[h];f.push([o.indexOf(g),g.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:f}}},function(r,i,a){var o=a(5),s=a(6);r.exports=function(u,l,c,d){for(var f=d.location,h=f===void 0?0:f,p=d.distance,g=p===void 0?100:p,w=d.threshold,S=w===void 0?.6:w,T=d.findAllMatches,k=T!==void 0&&T,D=d.minMatchCharLength,N=D===void 0?1:D,C=h,O=u.length,B=S,z=u.indexOf(l,C),Q=l.length,X=[],ie=0;ie<O;ie+=1)X[ie]=0;if(z!==-1){var q=o(l,{errors:0,currentLocation:z,expectedLocation:C,distance:g});if(B=Math.min(q,B),(z=u.lastIndexOf(l,C+Q))!==-1){var J=o(l,{errors:0,currentLocation:z,expectedLocation:C,distance:g});B=Math.min(J,B)}}z=-1;for(var te=[],ce=1,de=Q+O,fe=1<<Q-1,he=0;he<Q;he+=1){for(var De=0,A=de;De<A;)o(l,{errors:he,currentLocation:C+A,expectedLocation:C,distance:g})<=B?De=A:de=A,A=Math.floor((de-De)/2+De);de=A;var I=Math.max(1,C-A+1),et=k?O:Math.min(C+A,O)+Q,qe=Array(et+2);qe[et+1]=(1<<he)-1;for(var K=et;K>=I;K-=1){var V=K-1,U=c[u.charAt(V)];if(U&&(X[V]=1),qe[K]=(qe[K+1]<<1|1)&U,he!==0&&(qe[K]|=(te[K+1]|te[K])<<1|1|te[K+1]),qe[K]&fe&&(ce=o(l,{errors:he,currentLocation:V,expectedLocation:C,distance:g}))<=B){if(B=ce,(z=V)<=C)break;I=Math.max(1,2*C-z)}}if(o(l,{errors:he+1,currentLocation:C,expectedLocation:C,distance:g})>B)break;te=qe}return{isMatch:z>=0,score:ce===0?.001:ce,matchedIndices:s(X,N)}}},function(r,i){r.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,f=d===void 0?0:d,h=o.distance,p=h===void 0?100:h,g=u/a.length,w=Math.abs(f-c);return p?g+w/p:w?1:g}},function(r,i){r.exports=function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=[],u=-1,l=-1,c=0,d=a.length;c<d;c+=1){var f=a[c];f&&u===-1?u=c:f||u===-1||((l=c-1)-u+1>=o&&s.push([u,l]),u=-1)}return a[c-1]&&c-u>=o&&s.push([u,c-1]),s}},function(r,i){r.exports=function(a){for(var o={},s=a.length,u=0;u<s;u+=1)o[a.charAt(u)]=0;for(var l=0;l<s;l+=1)o[a.charAt(l)]|=1<<s-l-1;return o}},function(r,i,a){var o=a(0);r.exports=function(s,u){return function l(c,d,f){if(d){var h=d.indexOf("."),p=d,g=null;h!==-1&&(p=d.slice(0,h),g=d.slice(h+1));var w=c[p];if(w!=null)if(g||typeof w!="string"&&typeof w!="number")if(o(w))for(var S=0,T=w.length;S<T;S+=1)l(w[S],g,f);else g&&l(w,g,f);else f.push(w.toString())}else f.push(c);return f}(s,u,[])}}])})},function(t,n,e){"use strict";e.d(n,"a",function(){return r});function r(i){var a,o=i.Symbol;return typeof o=="function"?o.observable?a=o.observable:(a=o("observable"),o.observable=a):a="@@observable",a}},function(t,n,e){t.exports=e(7)},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){typeof window=="object"&&(e=window)}t.exports=e},function(t,n){t.exports=function(e){if(!e.webpackPolyfill){var r=Object.create(e);r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),Object.defineProperty(r,"exports",{enumerable:!0}),r.webpackPolyfill=1}return r}},function(t,n,e){"use strict";e.r(n);var r=e(2),i=e.n(r),a=e(0),o=e.n(a),s=e(1),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(L){if(typeof L!="object"||L===null)return!1;for(var y=L;Object.getPrototypeOf(y)!==null;)y=Object.getPrototypeOf(y);return Object.getPrototypeOf(L)===y}function d(L,y,b){var m;if(typeof y=="function"&&typeof b=="function"||typeof b=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof y=="function"&&typeof b=="undefined"&&(b=y,y=void 0),typeof b!="undefined"){if(typeof b!="function")throw new Error("Expected the enhancer to be a function.");return b(d)(L,y)}if(typeof L!="function")throw new Error("Expected the reducer to be a function.");var E=L,M=y,P=[],H=P,Y=!1;function ee(){H===P&&(H=P.slice())}function oe(){if(Y)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return M}function ve(Te){if(typeof Te!="function")throw new Error("Expected the listener to be a function.");if(Y)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var Oe=!0;return ee(),H.push(Te),function(){if(!!Oe){if(Y)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");Oe=!1,ee();var Le=H.indexOf(Te);H.splice(Le,1)}}}function pe(Te){if(!c(Te))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof Te.type=="undefined")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(Y)throw new Error("Reducers may not dispatch actions.");try{Y=!0,M=E(M,Te)}finally{Y=!1}for(var Oe=P=H,Ae=0;Ae<Oe.length;Ae++){var Le=Oe[Ae];Le()}return Te}function Ce(Te){if(typeof Te!="function")throw new Error("Expected the nextReducer to be a function.");E=Te,pe({type:l.REPLACE})}function Ie(){var Te,Oe=ve;return Te={subscribe:function(Le){if(typeof Le!="object"||Le===null)throw new TypeError("Expected the observer to be an object.");function nt(){Le.next&&Le.next(oe())}nt();var gt=Oe(nt);return{unsubscribe:gt}}},Te[s.a]=function(){return this},Te}return pe({type:l.INIT}),m={dispatch:pe,subscribe:ve,getState:oe,replaceReducer:Ce},m[s.a]=Ie,m}function f(L){typeof console!="undefined"&&typeof console.error=="function"&&console.error(L);try{throw new Error(L)}catch(y){}}function h(L,y){var b=y&&y.type,m=b&&'action "'+String(b)+'"'||"an action";return"Given "+m+', reducer "'+L+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function p(L,y,b,m){var E=Object.keys(y),M=b&&b.type===l.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(E.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!c(L))return"The "+M+' has unexpected type of "'+{}.toString.call(L).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+E.join('", "')+'"');var P=Object.keys(L).filter(function(H){return!y.hasOwnProperty(H)&&!m[H]});if(P.forEach(function(H){m[H]=!0}),!(b&&b.type===l.REPLACE)&&P.length>0)return"Unexpected "+(P.length>1?"keys":"key")+" "+('"'+P.join('", "')+'" found in '+M+". ")+"Expected to find one of the known reducer keys instead: "+('"'+E.join('", "')+'". Unexpected keys will be ignored.')}function g(L){Object.keys(L).forEach(function(y){var b=L[y],m=b(void 0,{type:l.INIT});if(typeof m=="undefined")throw new Error('Reducer "'+y+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof b(void 0,{type:l.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error('Reducer "'+y+'" returned undefined when probed with a random type. '+("Don't try to handle "+l.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function w(L){for(var y=Object.keys(L),b={},m=0;m<y.length;m++){var E=y[m];typeof L[E]=="function"&&(b[E]=L[E])}var M=Object.keys(b),P,H;try{g(b)}catch(Y){H=Y}return function(ee,oe){if(ee===void 0&&(ee={}),H)throw H;if(!1)var ve;for(var pe=!1,Ce={},Ie=0;Ie<M.length;Ie++){var Te=M[Ie],Oe=b[Te],Ae=ee[Te],Le=Oe(Ae,oe);if(typeof Le=="undefined"){var nt=h(Te,oe);throw new Error(nt)}Ce[Te]=Le,pe=pe||Le!==Ae}return pe?Ce:ee}}function S(L,y){return function(){return y(L.apply(this,arguments))}}function T(L,y){if(typeof L=="function")return S(L,y);if(typeof L!="object"||L===null)throw new Error("bindActionCreators expected an object or a function, instead received "+(L===null?"null":typeof L)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var b={};for(var m in L){var E=L[m];typeof E=="function"&&(b[m]=S(E,y))}return b}function k(L,y,b){return y in L?Object.defineProperty(L,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):L[y]=b,L}function D(L,y){var b=Object.keys(L);return Object.getOwnPropertySymbols&&b.push.apply(b,Object.getOwnPropertySymbols(L)),y&&(b=b.filter(function(m){return Object.getOwnPropertyDescriptor(L,m).enumerable})),b}function N(L){for(var y=1;y<arguments.length;y++){var b=arguments[y]!=null?arguments[y]:{};y%2?D(b,!0).forEach(function(m){k(L,m,b[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(b)):D(b).forEach(function(m){Object.defineProperty(L,m,Object.getOwnPropertyDescriptor(b,m))})}return L}function C(){for(var L=arguments.length,y=new Array(L),b=0;b<L;b++)y[b]=arguments[b];return y.length===0?function(m){return m}:y.length===1?y[0]:y.reduce(function(m,E){return function(){return m(E.apply(void 0,arguments))}})}function O(){for(var L=arguments.length,y=new Array(L),b=0;b<L;b++)y[b]=arguments[b];return function(m){return function(){var E=m.apply(void 0,arguments),M=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},P={getState:E.getState,dispatch:function(){return M.apply(void 0,arguments)}},H=y.map(function(Y){return Y(P)});return M=C.apply(void 0,H)(E.dispatch),N({},E,{dispatch:M})}}}function B(){}var z=[];function Q(L,y){switch(L===void 0&&(L=z),y.type){case"ADD_ITEM":{var b=[].concat(L,[{id:y.id,choiceId:y.choiceId,groupId:y.groupId,value:y.value,label:y.label,active:!0,highlighted:!1,customProperties:y.customProperties,placeholder:y.placeholder||!1,keyCode:null}]);return b.map(function(m){var E=m;return E.highlighted=!1,E})}case"REMOVE_ITEM":return L.map(function(m){var E=m;return E.id===y.id&&(E.active=!1),E});case"HIGHLIGHT_ITEM":return L.map(function(m){var E=m;return E.id===y.id&&(E.highlighted=y.highlighted),E});default:return L}}var X=[];function ie(L,y){switch(L===void 0&&(L=X),y.type){case"ADD_GROUP":return[].concat(L,[{id:y.id,value:y.value,active:y.active,disabled:y.disabled}]);case"CLEAR_CHOICES":return[];default:return L}}var q=[];function J(L,y){switch(L===void 0&&(L=q),y.type){case"ADD_CHOICE":return[].concat(L,[{id:y.id,elementId:y.elementId,groupId:y.groupId,value:y.value,label:y.label||y.value,disabled:y.disabled||!1,selected:!1,active:!0,score:9999,customProperties:y.customProperties,placeholder:y.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return y.activateOptions?L.map(function(b){var m=b;return m.active=y.active,m}):y.choiceId>-1?L.map(function(b){var m=b;return m.id===parseInt(y.choiceId,10)&&(m.selected=!0),m}):L;case"REMOVE_ITEM":return y.choiceId>-1?L.map(function(b){var m=b;return m.id===parseInt(y.choiceId,10)&&(m.selected=!1),m}):L;case"FILTER_CHOICES":return L.map(function(b){var m=b;return m.active=y.results.some(function(E){var M=E.item,P=E.score;return M.id===m.id?(m.score=P,!0):!1}),m});case"ACTIVATE_CHOICES":return L.map(function(b){var m=b;return m.active=y.active,m});case"CLEAR_CHOICES":return q;default:return L}}var te={loading:!1},ce=function(y,b){switch(y===void 0&&(y=te),b.type){case"SET_IS_LOADING":return{loading:b.isLoading};default:return y}},de=ce,fe=function(y,b){return Math.floor(Math.random()*(b-y)+y)},he=function(y){return Array.from({length:y},function(){return fe(0,36).toString(36)}).join("")},De=function(y,b){var m=y.id||y.name&&y.name+"-"+he(2)||he(4);return m=m.replace(/(:|\.|\[|\]|,)/g,""),m=b+"-"+m,m},A=function(y){return Object.prototype.toString.call(y).slice(8,-1)},I=function(y,b){return b!=null&&A(b)===y},et=function(y,b){return b===void 0&&(b=document.createElement("div")),y.nextSibling?y.parentNode.insertBefore(b,y.nextSibling):y.parentNode.appendChild(b),b.appendChild(y)},qe=function(y,b,m){if(m===void 0&&(m=1),!(!(y instanceof Element)||typeof b!="string")){for(var E=(m>0?"next":"previous")+"ElementSibling",M=y[E];M;){if(M.matches(b))return M;M=M[E]}return M}},K=function(y,b,m){if(m===void 0&&(m=1),!y)return!1;var E;return m>0?E=b.scrollTop+b.offsetHeight>=y.offsetTop+y.offsetHeight:E=y.offsetTop>=b.scrollTop,E},V=function(y){return typeof y!="string"?y:y.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},U=function(){var L=document.createElement("div");return function(y){var b=y.trim();L.innerHTML=b;for(var m=L.children[0];L.firstChild;)L.removeChild(L.firstChild);return m}}(),G=function(y,b){var m=y.value,E=y.label,M=E===void 0?m:E,P=b.value,H=b.label,Y=H===void 0?P:H;return M.localeCompare(Y,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},ye=function(y,b){return y.score-b.score},Ee=function(y,b,m){m===void 0&&(m=null);var E=new CustomEvent(b,{detail:m,bubbles:!0,cancelable:!0});return y.dispatchEvent(E)},Fe=function(y,b,m){return m===void 0&&(m="value"),y.some(function(E){return typeof b=="string"?E[m]===b.trim():E[m]===b})},Ge=function(y){return JSON.parse(JSON.stringify(y))},ht=function(y,b){var m=Object.keys(y).sort(),E=Object.keys(b).sort();return m.filter(function(M){return E.indexOf(M)<0})},pt=w({items:Q,groups:ie,choices:J,general:de}),tn=function(y,b){var m=y;if(b.type==="CLEAR_ALL")m=void 0;else if(b.type==="RESET_TO")return Ge(b.state);return pt(m,b)},yn=tn;function nn(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function Wt(L,y,b){return y&&nn(L.prototype,y),b&&nn(L,b),L}var Ct=function(){function L(){this._store=d(yn,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var y=L.prototype;return y.subscribe=function(m){this._store.subscribe(m)},y.dispatch=function(m){this._store.dispatch(m)},y.isLoading=function(){return this.state.general.loading},y.getChoiceById=function(m){return this.activeChoices.find(function(E){return E.id===parseInt(m,10)})},y.getGroupById=function(m){return this.groups.find(function(E){return E.id===m})},Wt(L,[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter(function(m){return m.active===!0})}},{key:"highlightedActiveItems",get:function(){return this.items.filter(function(m){return m.active&&m.highlighted})}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter(function(m){return m.active===!0})}},{key:"selectableChoices",get:function(){return this.choices.filter(function(m){return m.disabled!==!0})}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter(function(m){return m.placeholder!==!0})}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find(function(m){return m.placeholder===!0})}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var m=this.groups,E=this.choices;return m.filter(function(M){var P=M.active===!0&&M.disabled===!1,H=E.some(function(Y){return Y.active===!0&&Y.disabled===!1});return P&&H},[])}}]),L}();function Un(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function zn(L,y,b){return y&&Un(L.prototype,y),b&&Un(L,b),L}var Tn=function(){function L(b){var m=b.element,E=b.type,M=b.classNames;this.element=m,this.classNames=M,this.type=E,this.isActive=!1}var y=L.prototype;return y.getChild=function(m){return this.element.querySelector(m)},y.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},y.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},zn(L,[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}]),L}(),Mn={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},Cn={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:G,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(y){return'Press Enter to add <b>"'+V(y)+'"</b>'},maxItemText:function(y){return"Only "+y+" values can be added"},valueComparer:function(y,b){return y===b},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:Mn},lt={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice"},Bt={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL"},tt={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},j="text",ne="select-one",be="select-multiple",Be=4,ct=function(){function L(b){var m=b.element,E=b.type,M=b.classNames,P=b.position;this.element=m,this.classNames=M,this.type=E,this.position=P,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var y=L.prototype;return y.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},y.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},y.shouldFlip=function(m){if(typeof m!="number")return!1;var E=!1;return this.position==="auto"?E=!window.matchMedia("(min-height: "+(m+1)+"px)").matches:this.position==="top"&&(E=!0),E},y.setActiveDescendant=function(m){this.element.setAttribute("aria-activedescendant",m)},y.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},y.open=function(m){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(m)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},y.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},y.focus=function(){this.isFocussed||this.element.focus()},y.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},y.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},y.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===ne&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},y.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===ne&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},y.wrap=function(m){et(m,this.element)},y.unwrap=function(m){this.element.parentNode.insertBefore(m,this.element),this.element.parentNode.removeChild(this.element)},y.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},y.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},y._onFocus=function(){this.isFocussed=!0},y._onBlur=function(){this.isFocussed=!1},L}();function rn(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function Ue(L,y,b){return y&&rn(L.prototype,y),b&&rn(L,b),L}var Se=function(){function L(b){var m=b.element,E=b.type,M=b.classNames,P=b.preventPaste;this.element=m,this.type=E,this.classNames=M,this.preventPaste=P,this.isFocussed=this.element===document.activeElement,this.isDisabled=m.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var y=L.prototype;return y.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},y.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},y.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},y.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},y.focus=function(){this.isFocussed||this.element.focus()},y.blur=function(){this.isFocussed&&this.element.blur()},y.clear=function(m){return m===void 0&&(m=!0),this.element.value&&(this.element.value=""),m&&this.setWidth(),this},y.setWidth=function(){var m=this.element,E=m.style,M=m.value,P=m.placeholder;E.minWidth=P.length+1+"ch",E.width=M.length+1+"ch"},y.setActiveDescendant=function(m){this.element.setAttribute("aria-activedescendant",m)},y.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},y._onInput=function(){this.type!==ne&&this.setWidth()},y._onPaste=function(m){this.preventPaste&&m.preventDefault()},y._onFocus=function(){this.isFocussed=!0},y._onBlur=function(){this.isFocussed=!1},Ue(L,[{key:"placeholder",set:function(m){this.element.placeholder=m}},{key:"value",get:function(){return V(this.element.value)},set:function(m){this.element.value=m}}]),L}(),Dt=function(){function L(b){var m=b.element;this.element=m,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var y=L.prototype;return y.clear=function(){this.element.innerHTML=""},y.append=function(m){this.element.appendChild(m)},y.getChild=function(m){return this.element.querySelector(m)},y.hasChildren=function(){return this.element.hasChildNodes()},y.scrollToTop=function(){this.element.scrollTop=0},y.scrollToChildElement=function(m,E){var M=this;if(!!m){var P=this.element.offsetHeight,H=this.element.scrollTop+P,Y=m.offsetHeight,ee=m.offsetTop+Y,oe=E>0?this.element.scrollTop+ee-H:m.offsetTop;requestAnimationFrame(function(){M._animateScroll(oe,E)})}},y._scrollDown=function(m,E,M){var P=(M-m)/E,H=P>1?P:1;this.element.scrollTop=m+H},y._scrollUp=function(m,E,M){var P=(m-M)/E,H=P>1?P:1;this.element.scrollTop=m-H},y._animateScroll=function(m,E){var M=this,P=Be,H=this.element.scrollTop,Y=!1;E>0?(this._scrollDown(H,P,m),H<m&&(Y=!0)):(this._scrollUp(H,P,m),H>m&&(Y=!0)),Y&&requestAnimationFrame(function(){M._animateScroll(m,E)})},L}();function Kt(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function Ye(L,y,b){return y&&Kt(L.prototype,y),b&&Kt(L,b),L}var qt=function(){function L(b){var m=b.element,E=b.classNames;if(this.element=m,this.classNames=E,!(m instanceof HTMLInputElement)&&!(m instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var y=L.prototype;return y.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var m=this.element.getAttribute("style");m&&this.element.setAttribute("data-choice-orig-style",m),this.element.setAttribute("data-choice","active")},y.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var m=this.element.getAttribute("data-choice-orig-style");m?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",m)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},y.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},y.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},y.triggerEvent=function(m,E){Ee(this.element,m,E)},Ye(L,[{key:"isActive",get:function(){return this.element.dataset.choice==="active"}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(m){this.element.value=m}}]),L}();function yt(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function Yt(L,y,b){return y&&yt(L.prototype,y),b&&yt(L,b),L}function $r(L,y){L.prototype=Object.create(y.prototype),L.prototype.constructor=L,L.__proto__=y}var Li=function(L){$r(y,L);function y(b){var m,E=b.element,M=b.classNames,P=b.delimiter;return m=L.call(this,{element:E,classNames:M})||this,m.delimiter=P,m}return Yt(y,[{key:"value",get:function(){return this.element.value},set:function(m){var E=m.map(function(P){var H=P.value;return H}),M=E.join(this.delimiter);this.element.setAttribute("value",M),this.element.value=M}}]),y}(qt);function x(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function _(L,y,b){return y&&x(L.prototype,y),b&&x(L,b),L}function R(L,y){L.prototype=Object.create(y.prototype),L.prototype.constructor=L,L.__proto__=y}var W=function(L){R(y,L);function y(m){var E,M=m.element,P=m.classNames,H=m.template;return E=L.call(this,{element:M,classNames:P})||this,E.template=H,E}var b=y.prototype;return b.appendDocFragment=function(E){this.element.innerHTML="",this.element.appendChild(E)},_(y,[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(E){var M=this,P=document.createDocumentFragment(),H=function(ee){var oe=M.template(ee);P.appendChild(oe)};E.forEach(function(Y){return H(Y)}),this.appendDocFragment(P)}}]),y}(qt),re={containerOuter:function(y,b,m,E,M,P){var H=y.containerOuter,Y=Object.assign(document.createElement("div"),{className:H});return Y.dataset.type=P,b&&(Y.dir=b),E&&(Y.tabIndex=0),m&&(Y.setAttribute("role",M?"combobox":"listbox"),M&&Y.setAttribute("aria-autocomplete","list")),Y.setAttribute("aria-haspopup","true"),Y.setAttribute("aria-expanded","false"),Y},containerInner:function(y){var b=y.containerInner;return Object.assign(document.createElement("div"),{className:b})},itemList:function(y,b){var m=y.list,E=y.listSingle,M=y.listItems;return Object.assign(document.createElement("div"),{className:m+" "+(b?E:M)})},placeholder:function(y,b){var m=y.placeholder;return Object.assign(document.createElement("div"),{className:m,innerHTML:b})},item:function(y,b,m){var E=y.item,M=y.button,P=y.highlightedState,H=y.itemSelectable,Y=y.placeholder,ee=b.id,oe=b.value,ve=b.label,pe=b.customProperties,Ce=b.active,Ie=b.disabled,Te=b.highlighted,Oe=b.placeholder,Ae=Object.assign(document.createElement("div"),{className:E,innerHTML:ve});if(Object.assign(Ae.dataset,{item:"",id:ee,value:oe,customProperties:pe}),Ce&&Ae.setAttribute("aria-selected","true"),Ie&&Ae.setAttribute("aria-disabled","true"),Oe&&Ae.classList.add(Y),Ae.classList.add(Te?P:H),m){Ie&&Ae.classList.remove(H),Ae.dataset.deletable="";var Le="Remove item",nt=Object.assign(document.createElement("button"),{type:"button",className:M,innerHTML:Le});nt.setAttribute("aria-label",Le+": '"+oe+"'"),nt.dataset.button="",Ae.appendChild(nt)}return Ae},choiceList:function(y,b){var m=y.list,E=Object.assign(document.createElement("div"),{className:m});return b||E.setAttribute("aria-multiselectable","true"),E.setAttribute("role","listbox"),E},choiceGroup:function(y,b){var m=y.group,E=y.groupHeading,M=y.itemDisabled,P=b.id,H=b.value,Y=b.disabled,ee=Object.assign(document.createElement("div"),{className:m+" "+(Y?M:"")});return ee.setAttribute("role","group"),Object.assign(ee.dataset,{group:"",id:P,value:H}),Y&&ee.setAttribute("aria-disabled","true"),ee.appendChild(Object.assign(document.createElement("div"),{className:E,innerHTML:H})),ee},choice:function(y,b,m){var E=y.item,M=y.itemChoice,P=y.itemSelectable,H=y.selectedState,Y=y.itemDisabled,ee=y.placeholder,oe=b.id,ve=b.value,pe=b.label,Ce=b.groupId,Ie=b.elementId,Te=b.disabled,Oe=b.selected,Ae=b.placeholder,Le=Object.assign(document.createElement("div"),{id:Ie,innerHTML:pe,className:E+" "+M});return Oe&&Le.classList.add(H),Ae&&Le.classList.add(ee),Le.setAttribute("role",Ce>0?"treeitem":"option"),Object.assign(Le.dataset,{choice:"",id:oe,value:ve,selectText:m}),Te?(Le.classList.add(Y),Le.dataset.choiceDisabled="",Le.setAttribute("aria-disabled","true")):(Le.classList.add(P),Le.dataset.choiceSelectable=""),Le},input:function(y,b){var m=y.input,E=y.inputCloned,M=Object.assign(document.createElement("input"),{type:"text",className:m+" "+E,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return M.setAttribute("role","textbox"),M.setAttribute("aria-autocomplete","list"),M.setAttribute("aria-label",b),M},dropdown:function(y){var b=y.list,m=y.listDropdown,E=document.createElement("div");return E.classList.add(b,m),E.setAttribute("aria-expanded","false"),E},notice:function(y,b,m){var E=y.item,M=y.itemChoice,P=y.noResults,H=y.noChoices;m===void 0&&(m="");var Y=[E,M];return m==="no-choices"?Y.push(H):m==="no-results"&&Y.push(P),Object.assign(document.createElement("div"),{innerHTML:b,className:Y.join(" ")})},option:function(y){var b=y.label,m=y.value,E=y.customProperties,M=y.active,P=y.disabled,H=new Option(b,m,!1,M);return E&&(H.dataset.customProperties=E),H.disabled=P,H}},ae=re,xe=function(y){var b=y.value,m=y.label,E=y.id,M=y.groupId,P=y.disabled,H=y.elementId,Y=y.customProperties,ee=y.placeholder,oe=y.keyCode;return{type:Bt.ADD_CHOICE,value:b,label:m,id:E,groupId:M,disabled:P,elementId:H,customProperties:Y,placeholder:ee,keyCode:oe}},ue=function(y){return{type:Bt.FILTER_CHOICES,results:y}},_e=function(y){return y===void 0&&(y=!0),{type:Bt.ACTIVATE_CHOICES,active:y}},le=function(){return{type:Bt.CLEAR_CHOICES}},we=function(y){var b=y.value,m=y.label,E=y.id,M=y.choiceId,P=y.groupId,H=y.customProperties,Y=y.placeholder,ee=y.keyCode;return{type:Bt.ADD_ITEM,value:b,label:m,id:E,choiceId:M,groupId:P,customProperties:H,placeholder:Y,keyCode:ee}},ze=function(y,b){return{type:Bt.REMOVE_ITEM,id:y,choiceId:b}},At=function(y,b){return{type:Bt.HIGHLIGHT_ITEM,id:y,highlighted:b}},mt=function(y){var b=y.value,m=y.id,E=y.active,M=y.disabled;return{type:Bt.ADD_GROUP,value:b,id:m,active:E,disabled:M}},Dn=function(){return{type:"CLEAR_ALL"}},bn=function(y){return{type:"RESET_TO",state:y}},Sr=function(y){return{type:"SET_IS_LOADING",isLoading:y}};function Vn(L,y){for(var b=0;b<y.length;b++){var m=y[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(L,m.key,m)}}function Ur(L,y,b){return y&&Vn(L.prototype,y),b&&Vn(L,b),L}var zr="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Vr={},jr=function(){Ur(L,null,[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return Vr},get templates(){return re}})}}]);function L(b,m){var E=this;b===void 0&&(b="[data-choice]"),m===void 0&&(m={}),this.config=o.a.all([Cn,L.defaults.options,m],{arrayMerge:function(Ce,Ie){return[].concat(Ie)}});var M=ht(this.config,Cn);M.length&&console.warn("Unknown config option(s) passed",M.join(", "));var P=typeof b=="string"?document.querySelector(b):b;if(!(P instanceof HTMLInputElement||P instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=P.type===j,this._isSelectOneElement=P.type===ne,this._isSelectMultipleElement=P.type===be,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),m.addItemFilter&&typeof m.addItemFilter!="function"){var H=m.addItemFilter instanceof RegExp?m.addItemFilter:new RegExp(m.addItemFilter);this.config.addItemFilter=H.test.bind(H)}if(this._isTextElement?this.passedElement=new Li({element:P,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new W({element:P,classNames:this.config.classNames,template:function(Ce){return E._templates.option(Ce)}}),this.initialised=!1,this._store=new Ct,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=De(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var Y=window.getComputedStyle(this.passedElement.element),ee=Y.direction,oe=window.getComputedStyle(document.documentElement),ve=oe.direction;ee!==ve&&(this._direction=ee)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach(function(pe){E._presetChoices.push({value:pe.value,label:pe.innerHTML,selected:pe.selected,disabled:pe.disabled||pe.parentNode.disabled,placeholder:pe.value===""||pe.hasAttribute("placeholder"),customProperties:pe.getAttribute("data-custom-properties")})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),this.initialised=!0;return}this.init()}var y=L.prototype;return y.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=Ge(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners();var m=!this.config.addItems||this.passedElement.element.hasAttribute("disabled");m&&this.disable(),this.initialised=!0;var E=this.config.callbackOnInit;E&&typeof E=="function"&&E.call(this)}},y.destroy=function(){!this.initialised||(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},y.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},y.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},y.highlightItem=function(m,E){if(E===void 0&&(E=!0),!m)return this;var M=m.id,P=m.groupId,H=P===void 0?-1:P,Y=m.value,ee=Y===void 0?"":Y,oe=m.label,ve=oe===void 0?"":oe,pe=H>=0?this._store.getGroupById(H):null;return this._store.dispatch(At(M,!0)),E&&this.passedElement.triggerEvent(lt.highlightItem,{id:M,value:ee,label:ve,groupValue:pe&&pe.value?pe.value:null}),this},y.unhighlightItem=function(m){if(!m)return this;var E=m.id,M=m.groupId,P=M===void 0?-1:M,H=m.value,Y=H===void 0?"":H,ee=m.label,oe=ee===void 0?"":ee,ve=P>=0?this._store.getGroupById(P):null;return this._store.dispatch(At(E,!1)),this.passedElement.triggerEvent(lt.highlightItem,{id:E,value:Y,label:oe,groupValue:ve&&ve.value?ve.value:null}),this},y.highlightAll=function(){var m=this;return this._store.items.forEach(function(E){return m.highlightItem(E)}),this},y.unhighlightAll=function(){var m=this;return this._store.items.forEach(function(E){return m.unhighlightItem(E)}),this},y.removeActiveItemsByValue=function(m){var E=this;return this._store.activeItems.filter(function(M){return M.value===m}).forEach(function(M){return E._removeItem(M)}),this},y.removeActiveItems=function(m){var E=this;return this._store.activeItems.filter(function(M){var P=M.id;return P!==m}).forEach(function(M){return E._removeItem(M)}),this},y.removeHighlightedItems=function(m){var E=this;return m===void 0&&(m=!1),this._store.highlightedActiveItems.forEach(function(M){E._removeItem(M),m&&E._triggerChange(M.value)}),this},y.showDropdown=function(m){var E=this;return this.dropdown.isActive?this:(requestAnimationFrame(function(){E.dropdown.show(),E.containerOuter.open(E.dropdown.distanceFromTopWindow),!m&&E._canSearch&&E.input.focus(),E.passedElement.triggerEvent(lt.showDropdown,{})}),this)},y.hideDropdown=function(m){var E=this;return this.dropdown.isActive?(requestAnimationFrame(function(){E.dropdown.hide(),E.containerOuter.close(),!m&&E._canSearch&&(E.input.removeActiveDescendant(),E.input.blur()),E.passedElement.triggerEvent(lt.hideDropdown,{})}),this):this},y.getValue=function(m){m===void 0&&(m=!1);var E=this._store.activeItems.reduce(function(M,P){var H=m?P.value:P;return M.push(H),M},[]);return this._isSelectOneElement?E[0]:E},y.setValue=function(m){var E=this;return this.initialised?(m.forEach(function(M){return E._setChoiceOrItem(M)}),this):this},y.setChoiceByValue=function(m){var E=this;if(!this.initialised||this._isTextElement)return this;var M=Array.isArray(m)?m:[m];return M.forEach(function(P){return E._findAndSelectChoiceByValue(P)}),this},y.setChoices=function(m,E,M,P){var H=this;if(m===void 0&&(m=[]),E===void 0&&(E="value"),M===void 0&&(M="label"),P===void 0&&(P=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if(typeof E!="string"||!E)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(P&&this.clearChoices(),typeof m=="function"){var Y=m(this);if(typeof Promise=="function"&&Y instanceof Promise)return new Promise(function(ee){return requestAnimationFrame(ee)}).then(function(){return H._handleLoadingState(!0)}).then(function(){return Y}).then(function(ee){return H.setChoices(ee,E,M,P)}).catch(function(ee){H.config.silent||console.error(ee)}).then(function(){return H._handleLoadingState(!1)}).then(function(){return H});if(!Array.isArray(Y))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof Y);return this.setChoices(Y,E,M,!1)}if(!Array.isArray(m))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),m.forEach(function(ee){ee.choices?H._addGroup({id:parseInt(ee.id,10)||null,group:ee,valueKey:E,labelKey:M}):H._addChoice({value:ee[E],label:ee[M],isSelected:ee.selected,isDisabled:ee.disabled,customProperties:ee.customProperties,placeholder:ee.placeholder})}),this._stopLoading(),this},y.clearChoices=function(){return this._store.dispatch(le()),this},y.clearStore=function(){return this._store.dispatch(Dn()),this},y.clearInput=function(){var m=!this._isSelectOneElement;return this.input.clear(m),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(_e(!0))),this},y._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var m=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,E=this._isSelectElement,M=this._currentState.items!==this._prevState.items;!m||(E&&this._renderChoices(),M&&this._renderItems(),this._prevState=this._currentState)}},y._renderChoices=function(){var m=this,E=this._store,M=E.activeGroups,P=E.activeChoices,H=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return m.choiceList.scrollToTop()}),M.length>=1&&!this._isSearching){var Y=P.filter(function(Ce){return Ce.placeholder===!0&&Ce.groupId===-1});Y.length>=1&&(H=this._createChoicesFragment(Y,H)),H=this._createGroupsFragment(M,P,H)}else P.length>=1&&(H=this._createChoicesFragment(P,H));if(H.childNodes&&H.childNodes.length>0){var ee=this._store.activeItems,oe=this._canAddItem(ee,this.input.value);oe.response?(this.choiceList.append(H),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",oe.notice))}else{var ve,pe;this._isSearching?(pe=typeof this.config.noResultsText=="function"?this.config.noResultsText():this.config.noResultsText,ve=this._getTemplate("notice",pe,"no-results")):(pe=typeof this.config.noChoicesText=="function"?this.config.noChoicesText():this.config.noChoicesText,ve=this._getTemplate("notice",pe,"no-choices")),this.choiceList.append(ve)}},y._renderItems=function(){var m=this._store.activeItems||[];this.itemList.clear();var E=this._createItemsFragment(m);E.childNodes&&this.itemList.append(E)},y._createGroupsFragment=function(m,E,M){var P=this;M===void 0&&(M=document.createDocumentFragment());var H=function(ee){return E.filter(function(oe){return P._isSelectOneElement?oe.groupId===ee.id:oe.groupId===ee.id&&(P.config.renderSelectedChoices==="always"||!oe.selected)})};return this.config.shouldSort&&m.sort(this.config.sorter),m.forEach(function(Y){var ee=H(Y);if(ee.length>=1){var oe=P._getTemplate("choiceGroup",Y);M.appendChild(oe),P._createChoicesFragment(ee,M,!0)}}),M},y._createChoicesFragment=function(m,E,M){var P=this;E===void 0&&(E=document.createDocumentFragment()),M===void 0&&(M=!1);var H=this.config,Y=H.renderSelectedChoices,ee=H.searchResultLimit,oe=H.renderChoiceLimit,ve=this._isSearching?ye:this.config.sorter,pe=function(bt){var An=Y==="auto"?P._isSelectOneElement||!bt.selected:!0;if(An){var In=P._getTemplate("choice",bt,P.config.itemSelectText);E.appendChild(In)}},Ce=m;Y==="auto"&&!this._isSelectOneElement&&(Ce=m.filter(function(gt){return!gt.selected}));var Ie=Ce.reduce(function(gt,bt){return bt.placeholder?gt.placeholderChoices.push(bt):gt.normalChoices.push(bt),gt},{placeholderChoices:[],normalChoices:[]}),Te=Ie.placeholderChoices,Oe=Ie.normalChoices;(this.config.shouldSort||this._isSearching)&&Oe.sort(ve);var Ae=Ce.length,Le=this._isSelectOneElement?[].concat(Te,Oe):Oe;this._isSearching?Ae=ee:oe&&oe>0&&!M&&(Ae=oe);for(var nt=0;nt<Ae;nt+=1)Le[nt]&&pe(Le[nt]);return E},y._createItemsFragment=function(m,E){var M=this;E===void 0&&(E=document.createDocumentFragment());var P=this.config,H=P.shouldSortItems,Y=P.sorter,ee=P.removeItemButton;H&&!this._isSelectOneElement&&m.sort(Y),this._isTextElement?this.passedElement.value=m:this.passedElement.options=m;var oe=function(pe){var Ce=M._getTemplate("item",pe,ee);E.appendChild(Ce)};return m.forEach(oe),E},y._triggerChange=function(m){m!=null&&this.passedElement.triggerEvent(lt.change,{value:m})},y._selectPlaceholderChoice=function(){var m=this._store.placeholderChoice;m&&(this._addItem({value:m.value,label:m.label,choiceId:m.id,groupId:m.groupId,placeholder:m.placeholder}),this._triggerChange(m.value))},y._handleButtonAction=function(m,E){if(!(!m||!E||!this.config.removeItems||!this.config.removeItemButton)){var M=E.parentNode.getAttribute("data-id"),P=m.find(function(H){return H.id===parseInt(M,10)});this._removeItem(P),this._triggerChange(P.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},y._handleItemAction=function(m,E,M){var P=this;if(M===void 0&&(M=!1),!(!m||!E||!this.config.removeItems||this._isSelectOneElement)){var H=E.getAttribute("data-id");m.forEach(function(Y){Y.id===parseInt(H,10)&&!Y.highlighted?P.highlightItem(Y):!M&&Y.highlighted&&P.unhighlightItem(Y)}),this.input.focus()}},y._handleChoiceAction=function(m,E){if(!(!m||!E)){var M=E.dataset.id,P=this._store.getChoiceById(M);if(!!P){var H=m[0]&&m[0].keyCode?m[0].keyCode:null,Y=this.dropdown.isActive;if(P.keyCode=H,this.passedElement.triggerEvent(lt.choice,{choice:P}),!P.selected&&!P.disabled){var ee=this._canAddItem(m,P.value);ee.response&&(this._addItem({value:P.value,label:P.label,choiceId:P.id,groupId:P.groupId,customProperties:P.customProperties,placeholder:P.placeholder,keyCode:P.keyCode}),this._triggerChange(P.value))}this.clearInput(),Y&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},y._handleBackspace=function(m){if(!(!this.config.removeItems||!m)){var E=m[m.length-1],M=m.some(function(P){return P.highlighted});this.config.editItems&&!M&&E?(this.input.value=E.value,this.input.setWidth(),this._removeItem(E),this._triggerChange(E.value)):(M||this.highlightItem(E,!1),this.removeHighlightedItems(!0))}},y._startLoading=function(){this._store.dispatch(Sr(!0))},y._stopLoading=function(){this._store.dispatch(Sr(!1))},y._handleLoadingState=function(m){m===void 0&&(m=!0);var E=this.itemList.getChild("."+this.config.classNames.placeholder);m?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?E?E.innerHTML=this.config.loadingText:(E=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(E)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?E.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},y._handleSearch=function(m){if(!(!m||!this.input.isFocussed)){var E=this._store.choices,M=this.config,P=M.searchFloor,H=M.searchChoices,Y=E.some(function(oe){return!oe.active});if(m&&m.length>=P){var ee=H?this._searchChoices(m):0;this.passedElement.triggerEvent(lt.search,{value:m,resultCount:ee})}else Y&&(this._isSearching=!1,this._store.dispatch(_e(!0)))}},y._canAddItem=function(m,E){var M=!0,P=typeof this.config.addItemText=="function"?this.config.addItemText(E):this.config.addItemText;if(!this._isSelectOneElement){var H=Fe(m,E);this.config.maxItemCount>0&&this.config.maxItemCount<=m.length&&(M=!1,P=typeof this.config.maxItemText=="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&H&&M&&(M=!1,P=typeof this.config.uniqueItemText=="function"?this.config.uniqueItemText(E):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&M&&typeof this.config.addItemFilter=="function"&&!this.config.addItemFilter(E)&&(M=!1,P=typeof this.config.customAddItemText=="function"?this.config.customAddItemText(E):this.config.customAddItemText)}return{response:M,notice:P}},y._searchChoices=function(m){var E=typeof m=="string"?m.trim():m,M=typeof this._currentValue=="string"?this._currentValue.trim():this._currentValue;if(E.length<1&&E===M+" ")return 0;var P=this._store.searchableChoices,H=E,Y=[].concat(this.config.searchFields),ee=Object.assign(this.config.fuseOptions,{keys:Y}),oe=new i.a(P,ee),ve=oe.search(H);return this._currentValue=E,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(ue(ve)),ve.length},y._addEventListeners=function(){var m=document,E=m.documentElement;E.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),E.addEventListener("click",this._onClick,{passive:!0}),E.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},y._removeEventListeners=function(){var m=document,E=m.documentElement;E.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),E.removeEventListener("click",this._onClick),E.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},y._onKeyDown=function(m){var E,M=m.target,P=m.keyCode,H=m.ctrlKey,Y=m.metaKey,ee=this._store.activeItems,oe=this.input.isFocussed,ve=this.dropdown.isActive,pe=this.itemList.hasChildren(),Ce=String.fromCharCode(P),Ie=tt.BACK_KEY,Te=tt.DELETE_KEY,Oe=tt.ENTER_KEY,Ae=tt.A_KEY,Le=tt.ESC_KEY,nt=tt.UP_KEY,gt=tt.DOWN_KEY,bt=tt.PAGE_UP_KEY,An=tt.PAGE_DOWN_KEY,In=H||Y;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(Ce)&&this.showDropdown();var ar=(E={},E[Ae]=this._onAKey,E[Oe]=this._onEnterKey,E[Le]=this._onEscapeKey,E[nt]=this._onDirectionKey,E[bt]=this._onDirectionKey,E[gt]=this._onDirectionKey,E[An]=this._onDirectionKey,E[Te]=this._onDeleteKey,E[Ie]=this._onDeleteKey,E);ar[P]&&ar[P]({event:m,target:M,keyCode:P,metaKey:Y,activeItems:ee,hasFocusedInput:oe,hasActiveDropdown:ve,hasItems:pe,hasCtrlDownKeyPressed:In})},y._onKeyUp=function(m){var E=m.target,M=m.keyCode,P=this.input.value,H=this._store.activeItems,Y=this._canAddItem(H,P),ee=tt.BACK_KEY,oe=tt.DELETE_KEY;if(this._isTextElement){var ve=Y.notice&&P;if(ve){var pe=this._getTemplate("notice",Y.notice);this.dropdown.element.innerHTML=pe.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0)}else{var Ce=(M===ee||M===oe)&&!E.value,Ie=!this._isTextElement&&this._isSearching,Te=this._canSearch&&Y.response;Ce&&Ie?(this._isSearching=!1,this._store.dispatch(_e(!0))):Te&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},y._onAKey=function(m){var E=m.hasItems,M=m.hasCtrlDownKeyPressed;if(M&&E){this._canSearch=!1;var P=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;P&&this.highlightAll()}},y._onEnterKey=function(m){var E=m.event,M=m.target,P=m.activeItems,H=m.hasActiveDropdown,Y=tt.ENTER_KEY,ee=M.hasAttribute("data-button");if(this._isTextElement&&M.value){var oe=this.input.value,ve=this._canAddItem(P,oe);ve.response&&(this.hideDropdown(!0),this._addItem({value:oe}),this._triggerChange(oe),this.clearInput())}if(ee&&(this._handleButtonAction(P,M),E.preventDefault()),H){var pe=this.dropdown.getChild("."+this.config.classNames.highlightedState);pe&&(P[0]&&(P[0].keyCode=Y),this._handleChoiceAction(P,pe)),E.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),E.preventDefault())},y._onEscapeKey=function(m){var E=m.hasActiveDropdown;E&&(this.hideDropdown(!0),this.containerOuter.focus())},y._onDirectionKey=function(m){var E=m.event,M=m.hasActiveDropdown,P=m.keyCode,H=m.metaKey,Y=tt.DOWN_KEY,ee=tt.PAGE_UP_KEY,oe=tt.PAGE_DOWN_KEY;if(M||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var ve=P===Y||P===oe?1:-1,pe=H||P===oe||P===ee,Ce="[data-choice-selectable]",Ie;if(pe)ve>0?Ie=this.dropdown.element.querySelector(Ce+":last-of-type"):Ie=this.dropdown.element.querySelector(Ce);else{var Te=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);Te?Ie=qe(Te,Ce,ve):Ie=this.dropdown.element.querySelector(Ce)}Ie&&(K(Ie,this.choiceList.element,ve)||this.choiceList.scrollToChildElement(Ie,ve),this._highlightChoice(Ie)),E.preventDefault()}},y._onDeleteKey=function(m){var E=m.event,M=m.target,P=m.hasFocusedInput,H=m.activeItems;P&&!M.value&&!this._isSelectOneElement&&(this._handleBackspace(H),E.preventDefault())},y._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},y._onTouchEnd=function(m){var E=m||m.touches[0],M=E.target,P=this._wasTap&&this.containerOuter.element.contains(M);if(P){var H=M===this.containerOuter.element||M===this.containerInner.element;H&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),m.stopPropagation()}this._wasTap=!0},y._onMouseDown=function(m){var E=m.target;if(E instanceof HTMLElement){if(zr&&this.choiceList.element.contains(E)){var M=this.choiceList.element.firstElementChild,P=this._direction==="ltr"?m.offsetX>=M.offsetWidth:m.offsetX<M.offsetLeft;this._isScrollingOnIe=P}if(E!==this.input.element){var H=E.closest("[data-button],[data-item],[data-choice]");if(H instanceof HTMLElement){var Y=m.shiftKey,ee=this._store.activeItems,oe=H.dataset;"button"in oe?this._handleButtonAction(ee,H):"item"in oe?this._handleItemAction(ee,H,Y):"choice"in oe&&this._handleChoiceAction(ee,H)}m.preventDefault()}}},y._onMouseOver=function(m){var E=m.target;E instanceof HTMLElement&&"choice"in E.dataset&&this._highlightChoice(E)},y._onClick=function(m){var E=m.target,M=this.containerOuter.element.contains(E);if(M)!this.dropdown.isActive&&!this.containerOuter.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):this._isSelectOneElement&&E!==this.input.element&&!this.dropdown.element.contains(E)&&this.hideDropdown();else{var P=this._store.highlightedActiveItems.length>0;P&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0)}},y._onFocus=function(m){var E=this,M,P=m.target,H=this.containerOuter.element.contains(P);if(!!H){var Y=(M={},M[j]=function(){P===E.input.element&&E.containerOuter.addFocusState()},M[ne]=function(){E.containerOuter.addFocusState(),P===E.input.element&&E.showDropdown(!0)},M[be]=function(){P===E.input.element&&(E.showDropdown(!0),E.containerOuter.addFocusState())},M);Y[this.passedElement.element.type]()}},y._onBlur=function(m){var E=this,M=m.target,P=this.containerOuter.element.contains(M);if(P&&!this._isScrollingOnIe){var H,Y=this._store.activeItems,ee=Y.some(function(ve){return ve.highlighted}),oe=(H={},H[j]=function(){M===E.input.element&&(E.containerOuter.removeFocusState(),ee&&E.unhighlightAll(),E.hideDropdown(!0))},H[ne]=function(){E.containerOuter.removeFocusState(),(M===E.input.element||M===E.containerOuter.element&&!E._canSearch)&&E.hideDropdown(!0)},H[be]=function(){M===E.input.element&&(E.containerOuter.removeFocusState(),E.hideDropdown(!0),ee&&E.unhighlightAll())},H);oe[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},y._onFormReset=function(){this._store.dispatch(bn(this._initialState))},y._highlightChoice=function(m){var E=this;m===void 0&&(m=null);var M=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!!M.length){var P=m,H=Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState));H.forEach(function(Y){Y.classList.remove(E.config.classNames.highlightedState),Y.setAttribute("aria-selected","false")}),P?this._highlightPosition=M.indexOf(P):(M.length>this._highlightPosition?P=M[this._highlightPosition]:P=M[M.length-1],P||(P=M[0])),P.classList.add(this.config.classNames.highlightedState),P.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(lt.highlightChoice,{el:P}),this.dropdown.isActive&&(this.input.setActiveDescendant(P.id),this.containerOuter.setActiveDescendant(P.id))}},y._addItem=function(m){var E=m.value,M=m.label,P=M===void 0?null:M,H=m.choiceId,Y=H===void 0?-1:H,ee=m.groupId,oe=ee===void 0?-1:ee,ve=m.customProperties,pe=ve===void 0?null:ve,Ce=m.placeholder,Ie=Ce===void 0?!1:Ce,Te=m.keyCode,Oe=Te===void 0?null:Te,Ae=typeof E=="string"?E.trim():E,Le=Oe,nt=pe,gt=this._store.items,bt=P||Ae,An=Y||-1,In=oe>=0?this._store.getGroupById(oe):null,ar=gt?gt.length+1:1;return this.config.prependValue&&(Ae=this.config.prependValue+Ae.toString()),this.config.appendValue&&(Ae+=this.config.appendValue.toString()),this._store.dispatch(we({value:Ae,label:bt,id:ar,choiceId:An,groupId:oe,customProperties:pe,placeholder:Ie,keyCode:Le})),this._isSelectOneElement&&this.removeActiveItems(ar),this.passedElement.triggerEvent(lt.addItem,{id:ar,value:Ae,label:bt,customProperties:nt,groupValue:In&&In.value?In.value:void 0,keyCode:Le}),this},y._removeItem=function(m){if(!m||!I("Object",m))return this;var E=m.id,M=m.value,P=m.label,H=m.choiceId,Y=m.groupId,ee=Y>=0?this._store.getGroupById(Y):null;return this._store.dispatch(ze(E,H)),ee&&ee.value?this.passedElement.triggerEvent(lt.removeItem,{id:E,value:M,label:P,groupValue:ee.value}):this.passedElement.triggerEvent(lt.removeItem,{id:E,value:M,label:P}),this},y._addChoice=function(m){var E=m.value,M=m.label,P=M===void 0?null:M,H=m.isSelected,Y=H===void 0?!1:H,ee=m.isDisabled,oe=ee===void 0?!1:ee,ve=m.groupId,pe=ve===void 0?-1:ve,Ce=m.customProperties,Ie=Ce===void 0?null:Ce,Te=m.placeholder,Oe=Te===void 0?!1:Te,Ae=m.keyCode,Le=Ae===void 0?null:Ae;if(!(typeof E=="undefined"||E===null)){var nt=this._store.choices,gt=P||E,bt=nt?nt.length+1:1,An=this._baseId+"-"+this._idNames.itemChoice+"-"+bt;this._store.dispatch(xe({id:bt,groupId:pe,elementId:An,value:E,label:gt,disabled:oe,customProperties:Ie,placeholder:Oe,keyCode:Le})),Y&&this._addItem({value:E,label:gt,choiceId:bt,customProperties:Ie,placeholder:Oe,keyCode:Le})}},y._addGroup=function(m){var E=this,M=m.group,P=m.id,H=m.valueKey,Y=H===void 0?"value":H,ee=m.labelKey,oe=ee===void 0?"label":ee,ve=I("Object",M)?M.choices:Array.from(M.getElementsByTagName("OPTION")),pe=P||Math.floor(new Date().valueOf()*Math.random()),Ce=M.disabled?M.disabled:!1;if(ve){this._store.dispatch(mt({value:M.label,id:pe,active:!0,disabled:Ce}));var Ie=function(Oe){var Ae=Oe.disabled||Oe.parentNode&&Oe.parentNode.disabled;E._addChoice({value:Oe[Y],label:I("Object",Oe)?Oe[oe]:Oe.innerHTML,isSelected:Oe.selected,isDisabled:Ae,groupId:pe,customProperties:Oe.customProperties,placeholder:Oe.placeholder})};ve.forEach(Ie)}else this._store.dispatch(mt({value:M.label,id:M.id,active:!1,disabled:M.disabled}))},y._getTemplate=function(m){var E;if(!m)return null;for(var M=this.config.classNames,P=arguments.length,H=new Array(P>1?P-1:0),Y=1;Y<P;Y++)H[Y-1]=arguments[Y];return(E=this._templates[m]).call.apply(E,[this,M].concat(H))},y._createTemplates=function(){var m=this.config.callbackOnCreateTemplates,E={};m&&typeof m=="function"&&(E=m.call(this,U)),this._templates=o()(re,E)},y._createElements=function(){this.containerOuter=new ct({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new ct({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new Se({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new Dt({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new Dt({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new Tn({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},y._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},y._addPredefinedGroups=function(m){var E=this,M=this.passedElement.placeholderOption;M&&M.parentNode.tagName==="SELECT"&&this._addChoice({value:M.value,label:M.innerHTML,isSelected:M.selected,isDisabled:M.disabled,placeholder:!0}),m.forEach(function(P){return E._addGroup({group:P,id:P.id||null})})},y._addPredefinedChoices=function(m){var E=this;this.config.shouldSort&&m.sort(this.config.sorter);var M=m.some(function(H){return H.selected}),P=m.findIndex(function(H){return H.disabled===void 0||!H.disabled});m.forEach(function(H,Y){var ee=H.value,oe=H.label,ve=H.customProperties,pe=H.placeholder;if(E._isSelectElement)if(H.choices)E._addGroup({group:H,id:H.id||null});else{var Ce=E._isSelectOneElement&&!M&&Y===P,Ie=Ce?!0:H.selected,Te=H.disabled;E._addChoice({value:ee,label:oe,isSelected:Ie,isDisabled:Te,customProperties:ve,placeholder:pe})}else E._addChoice({value:ee,label:oe,isSelected:H.selected,isDisabled:H.disabled,customProperties:ve,placeholder:pe})})},y._addPredefinedItems=function(m){var E=this;m.forEach(function(M){typeof M=="object"&&M.value&&E._addItem({value:M.value,label:M.label,choiceId:M.id,customProperties:M.customProperties,placeholder:M.placeholder}),typeof M=="string"&&E._addItem({value:M})})},y._setChoiceOrItem=function(m){var E=this,M=A(m).toLowerCase(),P={object:function(){!m.value||(E._isTextElement?E._addItem({value:m.value,label:m.label,choiceId:m.id,customProperties:m.customProperties,placeholder:m.placeholder}):E._addChoice({value:m.value,label:m.label,isSelected:!0,isDisabled:!1,customProperties:m.customProperties,placeholder:m.placeholder}))},string:function(){E._isTextElement?E._addItem({value:m}):E._addChoice({value:m,label:m,isSelected:!0,isDisabled:!1})}};P[M]()},y._findAndSelectChoiceByValue=function(m){var E=this,M=this._store.choices,P=M.find(function(H){return E.config.valueComparer(H.value,m)});P&&!P.selected&&this._addItem({value:P.value,label:P.label,choiceId:P.id,groupId:P.groupId,customProperties:P.customProperties,placeholder:P.placeholder,keyCode:P.keyCode})},y._generatePlaceholderValue=function(){if(this._isSelectElement){var m=this.passedElement.placeholderOption;return m?m.text:!1}var E=this.config,M=E.placeholder,P=E.placeholderValue,H=this.passedElement.element.dataset;if(M){if(P)return P;if(H.placeholder)return H.placeholder}return!1},L}(),Pi=n.default=jr}]).default})});var iv=rt((Ds,rv)=>{(function(t,n){typeof Ds=="object"&&typeof rv!="undefined"?n(Ds):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,n(t.immutableJSONPatch={}))})(Ds,function(t){"use strict";function n(K){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(U){return typeof U}:n=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},n(K)}function e(K,V){return JSON.stringify(K)===JSON.stringify(V)}function r(K,V){return K===V}function i(K){return K.slice(0,K.length-1)}function a(K){return K[K.length-1]}function o(K,V){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r;if(K.length<V.length)return!1;for(var G=0;G<V.length;G++)if(!U(K[G],V[G]))return!1;return!0}function s(K){return n(K)==="object"&&K!==null}function u(K,V){var U=Object.keys(K);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(K);V&&(G=G.filter(function(ye){return Object.getOwnPropertyDescriptor(K,ye).enumerable})),U.push.apply(U,G)}return U}function l(K){for(var V=1;V<arguments.length;V++){var U=arguments[V]!=null?arguments[V]:{};V%2?u(Object(U),!0).forEach(function(G){c(K,G,U[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(U)):u(Object(U)).forEach(function(G){Object.defineProperty(K,G,Object.getOwnPropertyDescriptor(U,G))})}return K}function c(K,V,U){return V in K?Object.defineProperty(K,V,{value:U,enumerable:!0,configurable:!0,writable:!0}):K[V]=U,K}function d(K){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(U){return typeof U}:d=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},d(K)}function f(K){if(Array.isArray(K)){var V=K.slice();return Object.getOwnPropertySymbols(K).forEach(function(G){V[G]=K[G]}),V}else if(d(K)==="object"){var U=l({},K);return Object.getOwnPropertySymbols(K).forEach(function(G){U[G]=K[G]}),U}else return K}function h(K,V,U){if(K[V]===U)return K;var G=f(K);return G[V]=U,G}function p(K,V){for(var U=K,G=0;G<V.length;)s(U)?U=U[V[G]]:U=void 0,G++;return U}function g(K,V,U){var G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(V.length===0)return U;var ye=V[0],Ee=g(K?K[ye]:void 0,V.slice(1),U,G);if(!s(K))if(G){var Fe=typeof ye=="number"?[]:{};return Fe[ye]=Ee,Fe}else throw new Error("Path does not exist");return h(K,ye,Ee)}function w(K,V,U){if(V.length===0)return U(K);if(!s(K))throw new Error("Path doesn't exist");var G=V[0],ye=w(K[G],V.slice(1),U);return h(K,G,ye)}function S(K,V){if(V.length===0)return K;if(!s(K))throw new Error("Path does not exist");if(V.length===1){var U=V[0];if(U in K){var G=f(K);return Array.isArray(G)?G.splice(U,1):delete G[U],G}else return K}var ye=V[0],Ee=S(K[ye],V.slice(1));return h(K,ye,Ee)}function T(K,V,U){var G=V.slice(0,V.length-1),ye=V[V.length-1];return w(K,G,function(Ee){if(!Array.isArray(Ee))throw new TypeError("Array expected at path "+JSON.stringify(G));var Fe=f(Ee);return Fe.splice(ye,0,U),Fe})}function k(K,V){return K===void 0?!1:V.length===0?!0:k(K[V[0]],V.slice(1))}function D(K){var V=K.split("/");return V.shift(),V.map(function(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")})}function N(K){return K.map(function(V){return"/"+String(V).replace(/~/g,"~0").replace(/\//g,"~1")}).join("")}function C(K,V,U){for(var G=K,ye=0;ye<V.length;ye++){ce(V[ye]);var Ee=de(G,V[ye]);if(U&&U.before){var Fe=U.before(G,Ee);Fe!==void 0&&(Fe.json!==void 0&&(G=Fe.json),Fe.operation!==void 0&&(Ee=Fe.operation))}var Ge=G,ht=O[Ee.op];if(ht)G=ht(G,Ee);else if(Ee.op==="test")q(G,Ee);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(Ee.op));if(U&&U.after){var pt=U.after(G,Ee,Ge);pt!==void 0&&(G=pt)}}return G}var O={add:Q,remove:z,replace:B,copy:X,move:ie};function B(K,V){var U=V.path,G=V.value;return g(K,U,G)}function z(K,V){var U=V.path;return S(K,U)}function Q(K,V){var U=V.path,G=V.value;return J(K,U)?T(K,U,G):g(K,U,G)}function X(K,V){var U=V.path,G=V.from,ye=p(K,G);if(J(K,U))return T(K,U,ye);var Ee=p(K,G);return g(K,U,Ee)}function ie(K,V){var U=V.path,G=V.from,ye=p(K,G),Ee=S(K,G);return J(Ee,U)?T(Ee,U,ye):g(Ee,U,ye)}function q(K,V){var U=V.path,G=V.value;if(G===void 0)throw new Error('Test failed: no value provided (path: "'.concat(N(U),'")'));if(!k(K,U))throw new Error('Test failed: path not found (path: "'.concat(N(U),'")'));var ye=p(K,U);if(!e(ye,G))throw new Error('Test failed, value differs (path: "'.concat(N(U),'")'))}function J(K,V){if(V.length===0)return!1;var U=p(K,i(V));return Array.isArray(U)}function te(K,V){if(a(V)!=="-")return V;var U=i(V),G=p(K,U);return U.concat(G.length)}function ce(K){var V=["add","remove","replace","copy","move","test"];if(!V.includes(K.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(K.op));if(typeof K.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(K));if((K.op==="copy"||K.op==="move")&&typeof K.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(K))}function de(K,V){return{op:V.op,path:te(K,D(V.path)),from:V.from!==void 0?D(V.from):null,value:V.value}}function fe(K,V){var U=[];return C(K,V,{before:function(ye,Ee){var Fe=he[Ee.op];Fe&&(U=Fe(ye,Ee).concat(U))}}),U}var he={add:I,remove:A,replace:De,copy:et,move:qe};function De(K,V){var U=V.path;return[{op:"replace",path:N(U),value:p(K,U)}]}function A(K,V){var U=V.path;return[{op:"add",path:N(U),value:p(K,U)}]}function I(K,V){var U=V.path,G=V.value;return J(K,U)||!k(K,U)?[{op:"remove",path:N(U)}]:De(K,{path:U,value:G})}function et(K,V){var U=V.path,G=V.value;return I(K,{path:U,value:G})}function qe(K,V){var U=V.path,G=V.from;if(U.length<G.length&&o(G,U))return[{op:"replace",path:N(U),value:K}];var ye=[{op:"move",from:N(U),path:N(G)}];return!J(K,U)&&k(K,U)&&(ye=ye.concat(A(K,{path:U}))),ye}t.compileJSONPointer=N,t.deleteIn=S,t.existsIn=k,t.getIn=p,t.immutableJSONPatch=C,t.insertAt=T,t.parseJSONPointer=D,t.revertJSONPatch=fe,t.setIn=g,t.updateIn=w,Object.defineProperty(t,"__esModule",{value:!0})})});var Wv=rt((GR,ku)=>{(function(){var t;typeof ku!="undefined"?t=ku.exports=r:t=function(){return this||(0,eval)("this")}(),t.format=r,t.vsprintf=e,typeof console!="undefined"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(r.apply(null,arguments))}function e(i,a){return r.apply(null,[i].concat(a))}function r(i){for(var a=1,o=[].slice.call(arguments),s=0,u=i.length,l="",c,d=!1,f,h,p=!1,g,w=function(){return o[a++]},S=function(){for(var T="";/\d/.test(i[s]);)T+=i[s++],c=i[s];return T.length>0?parseInt(T):null};s<u;++s)if(c=i[s],d)switch(d=!1,c=="."?(p=!1,c=i[++s]):c=="0"&&i[s+1]=="."?(p=!0,s+=2,c=i[s]):p=!0,g=S(),c){case"b":l+=parseInt(w(),10).toString(2);break;case"c":f=w(),typeof f=="string"||f instanceof String?l+=f:l+=String.fromCharCode(parseInt(f,10));break;case"d":l+=parseInt(w(),10);break;case"f":h=String(parseFloat(w()).toFixed(g||6)),l+=p?h:h.replace(/^0/,"");break;case"j":l+=JSON.stringify(w());break;case"o":l+="0"+parseInt(w(),10).toString(8);break;case"s":l+=w();break;case"x":l+="0x"+parseInt(w(),10).toString(16);break;case"X":l+="0x"+parseInt(w(),10).toString(16).toUpperCase();break;default:l+=c;break}else c==="%"?d=!0:l+=c;return l}})()});Pu(exports);Oi(exports,{default:()=>Lu});function Fa(t,n){let e=Object.keys(n).map(r=>Ty(t,r,n[r]));return e.length===1?e[0]:function(){e.forEach(r=>r())}}function Ty(t,n,e){let r=t[n],i=t.hasOwnProperty(n),a=e(r);return r&&Object.setPrototypeOf(a,r),Object.setPrototypeOf(o,a),t[n]=o,s;function o(...u){return a===r&&t[n]===o&&s(),a.apply(this,u)}function s(){t[n]===o&&(i?t[n]=r:delete t[n]),a!==r&&(a=r,Object.setPrototypeOf(o,r||Function))}}var vn=me(require("obsidian"));var Ni,ge,Ou,My,Fi,Nu,Fu,Ru,Ra={},Hu=[],Cy=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function jn(t,n){for(var e in n)t[e]=n[e];return t}function Bu(t){var n=t.parentNode;n&&n.removeChild(t)}function wn(t,n,e){var r,i,a,o={};for(a in n)a=="key"?r=n[a]:a=="ref"?i=n[a]:o[a]=n[a];if(arguments.length>2&&(o.children=arguments.length>3?Ni.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return Ri(t,o,r,i,null)}function Ri(t,n,e,r,i){var a={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Ou:i};return i==null&&ge.vnode!=null&&ge.vnode(a),a}function Js(){return{current:null}}function Pn(t){return t.children}function hn(t,n){this.props=t,this.context=n}function Wr(t,n){if(n==null)return t.__?Wr(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n<t.__k.length;n++)if((e=t.__k[n])!=null&&e.__e!=null)return e.__e;return typeof t.type=="function"?Wr(t):null}function Ku(t){var n,e;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if((e=t.__k[n])!=null&&e.__e!=null){t.__e=t.__c.base=e.__e;break}return Ku(t)}}function Gs(t){(!t.__d&&(t.__d=!0)&&Fi.push(t)&&!Ha.__r++||Fu!==ge.debounceRendering)&&((Fu=ge.debounceRendering)||Nu)(Ha)}function Ha(){for(var t;Ha.__r=Fi.length;)t=Fi.sort(function(n,e){return n.__v.__b-e.__v.__b}),Fi=[],t.some(function(n){var e,r,i,a,o,s;n.__d&&(o=(a=(e=n).__v).__e,(s=e.__P)&&(r=[],(i=jn({},a)).__v=a.__v+1,Qs(s,a,i,e.__n,s.ownerSVGElement!==void 0,a.__h!=null?[o]:null,r,o==null?Wr(a):o,a.__h),qu(r,a),a.__e!=o&&Ku(a)))})}function $u(t,n,e,r,i,a,o,s,u,l){var c,d,f,h,p,g,w,S=r&&r.__k||Hu,T=S.length;for(e.__k=[],c=0;c<n.length;c++)if((h=e.__k[c]=(h=n[c])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?Ri(null,h,null,null,h):Array.isArray(h)?Ri(Pn,{children:h},null,null,null):h.__b>0?Ri(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=e,h.__b=e.__b+1,(f=S[c])===null||f&&h.key==f.key&&h.type===f.type)S[c]=void 0;else for(d=0;d<T;d++){if((f=S[d])&&h.key==f.key&&h.type===f.type){S[d]=void 0;break}f=null}Qs(t,h,f=f||Ra,i,a,o,s,u,l),p=h.__e,(d=h.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,h),w.push(d,h.__c||p,h)),p!=null?(g==null&&(g=p),typeof h.type=="function"&&h.__k===f.__k?h.__d=u=Uu(h,u,t):u=zu(t,h,f,S,p,u),typeof e.type=="function"&&(e.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=Wr(f))}for(e.__e=g,c=T;c--;)S[c]!=null&&(typeof e.type=="function"&&S[c].__e!=null&&S[c].__e==e.__d&&(e.__d=Wr(r,c+1)),Ju(S[c],S[c]));if(w)for(c=0;c<w.length;c++)Yu(w[c],w[++c],w[++c])}function Uu(t,n,e){for(var r,i=t.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=t,n=typeof r.type=="function"?Uu(r,n,e):zu(e,r,r,i,r.__e,n));return n}function On(t,n){return n=n||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(e){On(e,n)}):n.push(t)),n}function zu(t,n,e,r,i,a){var o,s,u;if(n.__d!==void 0)o=n.__d,n.__d=void 0;else if(e==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(i),o=null;else{for(s=a,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==i)break e;t.insertBefore(i,a),o=a}return o!==void 0?o:i.nextSibling}function Dy(t,n,e,r,i){var a;for(a in e)a==="children"||a==="key"||a in n||Ba(t,a,null,e[a],r);for(a in n)i&&typeof n[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||e[a]===n[a]||Ba(t,a,n[a],e[a],r)}function Vu(t,n,e){n[0]==="-"?t.setProperty(n,e):t[n]=e==null?"":typeof e!="number"||Cy.test(n)?e:e+"px"}function Ba(t,n,e,r,i){var a;e:if(n==="style")if(typeof e=="string")t.style.cssText=e;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||Vu(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||Vu(t.style,n,e[n])}else if(n[0]==="o"&&n[1]==="n")a=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+a]=e,e?r||t.addEventListener(n,a?Wu:ju,a):t.removeEventListener(n,a?Wu:ju,a);else if(n!=="dangerouslySetInnerHTML"){if(i)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!=="href"&&n!=="list"&&n!=="form"&&n!=="tabIndex"&&n!=="download"&&n in t)try{t[n]=e==null?"":e;break e}catch(o){}typeof e=="function"||(e!=null&&(e!==!1||n[0]==="a"&&n[1]==="r")?t.setAttribute(n,e):t.removeAttribute(n))}}function ju(t){this.l[t.type+!1](ge.event?ge.event(t):t)}function Wu(t){this.l[t.type+!0](ge.event?ge.event(t):t)}function Qs(t,n,e,r,i,a,o,s,u){var l,c,d,f,h,p,g,w,S,T,k,D=n.type;if(n.constructor!==void 0)return null;e.__h!=null&&(u=e.__h,s=n.__e=e.__e,n.__h=null,a=[s]),(l=ge.__b)&&l(n);try{e:if(typeof D=="function"){if(w=n.props,S=(l=D.contextType)&&r[l.__c],T=l?S?S.props.value:l.__:r,e.__c?g=(c=n.__c=e.__c).__=c.__E:("prototype"in D&&D.prototype.render?n.__c=c=new D(w,T):(n.__c=c=new hn(w,T),c.constructor=D,c.render=Iy),S&&S.sub(c),c.props=w,c.state||(c.state={}),c.context=T,c.__n=r,d=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),D.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=jn({},c.__s)),jn(c.__s,D.getDerivedStateFromProps(w,c.__s))),f=c.props,h=c.state,d)D.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(D.getDerivedStateFromProps==null&&w!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(w,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,T)===!1||n.__v===e.__v){c.props=w,c.state=c.__s,n.__v!==e.__v&&(c.__d=!1),c.__v=n,n.__e=e.__e,n.__k=e.__k,n.__k.forEach(function(N){N&&(N.__=n)}),c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(w,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,h,p)})}c.context=T,c.props=w,c.state=c.__s,(l=ge.__r)&&l(n),c.__d=!1,c.__v=n,c.__P=t,l=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(r=jn(jn({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(p=c.getSnapshotBeforeUpdate(f,h)),k=l!=null&&l.type===Pn&&l.key==null?l.props.children:l,$u(t,Array.isArray(k)?k:[k],n,e,r,i,a,o,s,u),c.base=n.__e,n.__h=null,c.__h.length&&o.push(c),g&&(c.__E=c.__=null),c.__e=!1}else a==null&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=Ay(e.__e,n,e,r,i,a,o,u);(l=ge.diffed)&&l(n)}catch(N){n.__v=null,(u||a!=null)&&(n.__e=s,n.__h=!!u,a[a.indexOf(s)]=null),ge.__e(N,n,e)}}function qu(t,n){ge.__c&&ge.__c(n,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(r){r.call(e)})}catch(r){ge.__e(r,e.__v)}})}function Ay(t,n,e,r,i,a,o,s){var u,l,c,d=e.props,f=n.props,h=n.type,p=0;if(h==="svg"&&(i=!0),a!=null){for(;p<a.length;p++)if((u=a[p])&&"setAttribute"in u==!!h&&(h?u.localName===h:u.nodeType===3)){t=u,a[p]=null;break}}if(t==null){if(h===null)return document.createTextNode(f);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),a=null,s=!1}if(h===null)d===f||s&&t.data===f||(t.data=f);else{if(a=a&&Ni.call(t.childNodes),l=(d=e.props||Ra).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!s){if(a!=null)for(d={},p=0;p<t.attributes.length;p++)d[t.attributes[p].name]=t.attributes[p].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(Dy(t,f,d,i,s),c)n.__k=[];else if(p=n.props.children,$u(t,Array.isArray(p)?p:[p],n,e,r,i&&h!=="foreignObject",a,o,a?a[0]:e.__k&&Wr(e,0),s),a!=null)for(p=a.length;p--;)a[p]!=null&&Bu(a[p]);s||("value"in f&&(p=f.value)!==void 0&&(p!==t.value||h==="progress"&&!p||h==="option"&&p!==d.value)&&Ba(t,"value",p,d.value,!1),"checked"in f&&(p=f.checked)!==void 0&&p!==t.checked&&Ba(t,"checked",p,d.checked,!1))}return t}function Yu(t,n,e){try{typeof t=="function"?t(n):t.current=n}catch(r){ge.__e(r,e)}}function Ju(t,n,e){var r,i;if(ge.unmount&&ge.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Yu(r,null,n)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){ge.__e(a,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Ju(r[i],n,typeof t.type!="function");e||t.__e==null||Bu(t.__e),t.__e=t.__d=void 0}function Iy(t,n,e){return this.constructor(t,e)}function qr(t,n,e){var r,i,a;ge.__&&ge.__(t,n),i=(r=typeof e=="function")?null:e&&e.__k||n.__k,a=[],Qs(n,t=(!r&&e||n).__k=wn(Pn,null,[t]),i||Ra,Ra,n.ownerSVGElement!==void 0,!r&&e?[e]:i?null:n.firstChild?Ni.call(n.childNodes):null,a,!r&&e?e:i?i.__e:n.firstChild,r),qu(a,t)}function Xs(t,n){qr(t,n,Xs)}function Gu(t,n,e){var r,i,a,o=jn({},t.props);for(a in n)a=="key"?r=n[a]:a=="ref"?i=n[a]:o[a]=n[a];return arguments.length>2&&(o.children=arguments.length>3?Ni.call(arguments,2):e),Ri(t.type,o,r||t.key,i||t.ref,null)}function Zs(t,n){var e={__c:n="__cC"+Ru++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[n]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(Gs)},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),r.children}};return e.Provider.__=e.Consumer.contextType=e}Ni=Hu.slice,ge={__e:function(t,n,e,r){for(var i,a,o;n=n.__;)if((i=n.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},Ou=0,My=function(t){return t!=null&&t.constructor===void 0},hn.prototype.setState=function(t,n){var e;e=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jn({},this.state),typeof t=="function"&&(t=t(jn({},e),this.props)),t&&jn(e,t),t!=null&&this.__v&&(n&&this.__h.push(n),Gs(this))},hn.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Gs(this))},hn.prototype.render=Pn,Fi=[],Nu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ha.__r=0,Ru=0;var Yr,$t,Qu,Jr=0,Xu=[],Zu=ge.__b,ed=ge.__r,td=ge.diffed,nd=ge.__c,rd=ge.unmount;function Hi(t,n){ge.__h&&ge.__h($t,t,Jr||n),Jr=0;var e=$t.__H||($t.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function Ka(t){return Jr=1,el(ld,t)}function el(t,n,e){var r=Hi(Yr++,2);return r.t=t,r.__c||(r.__=[e?e(n):ld(void 0,n),function(i){var a=r.t(r.__[0],i);r.__[0]!==a&&(r.__=[a,r.__[1]],r.__c.setState({}))}],r.__c=$t),r.__}function $a(t,n){var e=Hi(Yr++,3);!ge.__s&&rl(e.__H,n)&&(e.__=t,e.__H=n,$t.__H.__h.push(e))}function tl(t,n){var e=Hi(Yr++,4);!ge.__s&&rl(e.__H,n)&&(e.__=t,e.__H=n,$t.__h.push(e))}function Ua(t){return Jr=5,za(function(){return{current:t}},[])}function id(t,n,e){Jr=6,tl(function(){return typeof t=="function"?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0},e==null?e:e.concat(t))}function za(t,n){var e=Hi(Yr++,7);return rl(e.__H,n)&&(e.__=t(),e.__H=n,e.__h=t),e.__}function Va(t,n){return Jr=8,za(function(){return t},n)}function ad(t){var n=$t.context[t.__c],e=Hi(Yr++,9);return e.c=t,n?(e.__==null&&(e.__=!0,n.sub($t)),n.props.value):t.__}function od(t,n){ge.useDebugValue&&ge.useDebugValue(n?n(t):t)}function Ly(){for(var t;t=Xu.shift();)if(t.__P)try{t.__H.__h.forEach(ja),t.__H.__h.forEach(nl),t.__H.__h=[]}catch(n){t.__H.__h=[],ge.__e(n,t.__v)}}ge.__b=function(t){$t=null,Zu&&Zu(t)},ge.__r=function(t){ed&&ed(t),Yr=0;var n=($t=t.__c).__H;n&&(n.__h.forEach(ja),n.__h.forEach(nl),n.__h=[])},ge.diffed=function(t){td&&td(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(Xu.push(n)!==1&&Qu===ge.requestAnimationFrame||((Qu=ge.requestAnimationFrame)||function(e){var r,i=function(){clearTimeout(a),sd&&cancelAnimationFrame(r),setTimeout(e)},a=setTimeout(i,100);sd&&(r=requestAnimationFrame(i))})(Ly)),$t=null},ge.__c=function(t,n){n.some(function(e){try{e.__h.forEach(ja),e.__h=e.__h.filter(function(r){return!r.__||nl(r)})}catch(r){n.some(function(i){i.__h&&(i.__h=[])}),n=[],ge.__e(r,e.__v)}}),nd&&nd(t,n)},ge.unmount=function(t){rd&&rd(t);var n,e=t.__c;e&&e.__H&&(e.__H.__.forEach(function(r){try{ja(r)}catch(i){n=i}}),n&&ge.__e(n,e.__v))};var sd=typeof requestAnimationFrame=="function";function ja(t){var n=$t,e=t.__c;typeof e=="function"&&(t.__c=void 0,e()),$t=n}function nl(t){var n=$t;t.__c=t.__(),$t=n}function rl(t,n){return!t||t.length!==n.length||n.some(function(e,r){return e!==t[r]})}function ld(t,n){return typeof n=="function"?n(t):n}function cd(t,n){for(var e in n)t[e]=n[e];return t}function il(t,n){for(var e in t)if(e!=="__source"&&!(e in n))return!0;for(var r in n)if(r!=="__source"&&t[r]!==n[r])return!0;return!1}function al(t){this.props=t}function Py(t,n){function e(i){var a=this.props.ref,o=a==i.ref;return!o&&a&&(a.call?a(null):a.current=null),n?!n(this.props,i)||!o:il(this.props,i)}function r(i){return this.shouldComponentUpdate=e,wn(t,i)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(al.prototype=new hn).isPureReactComponent=!0,al.prototype.shouldComponentUpdate=function(t,n){return il(this.props,t)||il(this.state,n)};var ud=ge.__b;ge.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ud&&ud(t)};var Oy=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ny(t){function n(e,r){var i=cd({},e);return delete i.ref,t(i,!(r=e.ref||r)||typeof r=="object"&&Object.keys(r).length===0?null:r)}return n.$$typeof=Oy,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}var dd=function(t,n){return t==null?null:On(On(t).map(n))},Fy={map:dd,forEach:dd,count:function(t){return t?On(t).length:0},only:function(t){var n=On(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:On},Ry=ge.__e;ge.__e=function(t,n,e,r){if(t.then){for(var i,a=n;a=a.__;)if((i=a.__c)&&i.__c)return n.__e==null&&(n.__e=e.__e,n.__k=e.__k),i.__c(t,n)}Ry(t,n,e,r)};var fd=ge.unmount;function Wa(){this.__u=0,this.t=null,this.__b=null}function hd(t){var n=t.__.__c;return n&&n.__e&&n.__e(t)}function Hy(t){var n,e,r;function i(a){if(n||(n=t()).then(function(o){e=o.default||o},function(o){r=o}),r)throw r;if(!e)throw n;return wn(e,a)}return i.displayName="Lazy",i.__f=!0,i}function Bi(){this.u=null,this.o=null}ge.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),fd&&fd(t)},(Wa.prototype=new hn).__c=function(t,n){var e=n.__c,r=this;r.t==null&&(r.t=[]),r.t.push(e);var i=hd(r.__v),a=!1,o=function(){a||(a=!0,e.__R=null,i?i(s):s())};e.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var l=r.state.__e;r.__v.__k[0]=function d(f,h,p){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(g){return d(g,h,p)}),f.__c&&f.__c.__P===h&&(f.__e&&p.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=p)),f}(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__e:r.__b=null});c=r.t.pop();)c.forceUpdate()}},u=n.__h===!0;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(o,o)},Wa.prototype.componentWillUnmount=function(){this.t=[]},Wa.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,s,u){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),o.__c.__H=null),(o=cd({},o)).__c!=null&&(o.__c.__P===u&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(l){return a(l,s,u)})),o}(this.__b,e,r.__O=r.__P)}this.__b=null}var i=n.__e&&wn(Pn,null,t.fallback);return i&&(i.__h=null),[wn(Pn,null,n.__e?null:t.children),i]};var pd=function(t,n,e){if(++e[1]===e[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(e=t.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.u=e=e[2]}};function By(t){return this.getChildContext=function(){return t.context},t.children}function Ky(t){var n=this,e=t.i;n.componentWillUnmount=function(){qr(null,n.l),n.l=null,n.i=null},n.i&&n.i!==e&&n.componentWillUnmount(),t.__v?(n.l||(n.i=e,n.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(r){this.childNodes.push(r),n.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),n.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),n.i.removeChild(r)}}),qr(wn(By,{context:n.context},t.__v),n.l)):n.l&&n.componentWillUnmount()}function ol(t,n){return wn(Ky,{__v:t,i:n})}(Bi.prototype=new hn).__e=function(t){var n=this,e=hd(n.__v),r=n.o.get(t);return r[0]++,function(i){var a=function(){n.props.revealOrder?(r.push(i),pd(n,t,r)):i()};e?e(a):a()}},Bi.prototype.render=function(t){this.u=null,this.o=new Map;var n=On(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&n.reverse();for(var e=n.length;e--;)this.o.set(n[e],this.u=[1,0,this.u]);return t.children},Bi.prototype.componentDidUpdate=Bi.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(n,e){pd(t,e,n)})};var md=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,$y=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Uy=typeof document!="undefined",zy=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Vy(t,n,e){return n.__k==null&&(n.textContent=""),qr(t,n),typeof e=="function"&&e(),t?t.__c:null}function jy(t,n,e){return Xs(t,n),typeof e=="function"&&e(),t?t.__c:null}hn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(hn.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var gd=ge.event;function Wy(){}function qy(){return this.cancelBubble}function Yy(){return this.defaultPrevented}ge.event=function(t){return gd&&(t=gd(t)),t.persist=Wy,t.isPropagationStopped=qy,t.isDefaultPrevented=Yy,t.nativeEvent=t};var vd,yd={configurable:!0,get:function(){return this.class}},bd=ge.vnode;ge.vnode=function(t){var n=t.type,e=t.props,r=e;if(typeof n=="string"){var i=n.indexOf("-")===-1;for(var a in r={},e){var o=e[a];Uy&&a==="children"&&n==="noscript"||a==="value"&&"defaultValue"in e&&o==null||(a==="defaultValue"&&"value"in e&&e.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+n)&&!zy(e.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&$y.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),r[a]=o)}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=On(e.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=On(e.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),t.props=r,e.class!=e.className&&(yd.enumerable="className"in e,e.className!=null&&(r.class=e.className),Object.defineProperty(r,"className",yd))}t.$$typeof=md,bd&&bd(t)};var wd=ge.__r;ge.__r=function(t){wd&&wd(t),vd=t.__c};var Jy={ReactCurrentDispatcher:{current:{readContext:function(t){return vd.__n[t.__c].props.value}}}};function Gy(t){return wn.bind(null,t)}function Ed(t){return!!t&&t.$$typeof===md}function Qy(t){return Ed(t)?Gu.apply(null,arguments):t}function Xy(t){return!!t.__k&&(qr(null,t),!0)}function Zy(t){return t&&(t.base||t.nodeType===1&&t)||null}var eb=function(t,n){return t(n)},tb=function(t,n){return t(n)};var v={useState:Ka,useReducer:el,useEffect:$a,useLayoutEffect:tl,useRef:Ua,useImperativeHandle:id,useMemo:za,useCallback:Va,useContext:ad,useDebugValue:od,version:"17.0.2",Children:Fy,render:Vy,hydrate:jy,unmountComponentAtNode:Xy,createPortal:ol,createElement:wn,createContext:Zs,createFactory:Gy,cloneElement:Qy,createRef:Js,Fragment:Pn,isValidElement:Ed,findDOMNode:Zy,Component:hn,PureComponent:al,memo:Py,forwardRef:Ny,flushSync:tb,unstable_batchedUpdates:eb,StrictMode:Pn,Suspense:Wa,SuspenseList:Bi,lazy:Hy,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Jy};var Lg=me(It());var We=v.createContext(null),Ya=v.createContext(null);var Bd=me(It()),Ja=me(require("obsidian"));var Pd=me(Ad()),sr=me(It());function Id(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ld(t){var n,e;return Id(t)===!1?!1:(n=t.constructor,n===void 0?!0:(e=n.prototype,!(Id(e)===!1||e.hasOwnProperty("isPrototypeOf")===!1)))}function xb(t,n){return t.length!==n.length?!1:t.every((e,r,i)=>r===i.length-1?e!==n[r]:e===n[r])}function kb(t,n){return t.length===n.length&&t.every((e,r)=>e===n[r])}var an;(function(i){i[i.Before=0]="Before",i[i.After=1]="After",i[i.Self=2]="Self",i[i.NotSiblings=3]="NotSiblings"})(an||(an={}));function Ui(t,n){if(kb(t,n))return 2;if(!xb(t,n))return 3;let e=t.length-1;return t[e]<n[e]?1:0}function vt(t,n){let e=n.length?n[0]:null;return e!==null&&t.children&&t.children[e]?vt(t.children[e],n.slice(1)):t}function _b(t,n){let e=n;for(let r=t.length-1;r>=0;r--)e={children:{[t[r]]:e}};return e}function zi(t,n){let e=n;for(let r=t.length-2;r>=0;r--)e={children:{[t[r]]:e}};return e}function Od(t){return zi(t,{children:{$splice:[[t[t.length-1],1]]}})}function Nd(t,n,e=0){return zi(t,{children:{$splice:[[t[t.length-1]+e,0,...n]]}})}function Tb(t,n){return zi(t,{children:{$push:n}})}function Mb(t,n){return zi(t,{children:{$unshift:n}})}function Fd(t,n,e,r){let i=r?r(vt(t,n)):vt(t,n),o=Ui(n,e)===an.After?-1:0,s=Od(n),u=Nd(e,[i],o),l=(0,Pd.default)(s,u,{isMergeableObject:d=>Ld(d)||Array.isArray(d)});return(0,sr.default)(t,l)}function kr(t,n){return(0,sr.default)(t,Od(n))}function lr(t,n,e){return(0,sr.default)(t,Nd(n,e))}function ul(t,n,e){return(0,sr.default)(t,Tb(n,e))}function Rd(t,n,e){return(0,sr.default)(t,Mb(n,e))}function Hd(t,n,e){return(0,sr.default)(t,_b(n,e))}function dl(t,n,e){return(0,sr.default)(t,zi(n,e))}var fl="kanban-plugin";function Qr(){}function $(t){return`${fl}__${t}`}function Ke(t=9){return Math.random().toString(36).slice(2,2+t)}function hl(t,n,e,r,i){var l,c;let a=vt(t,n.slice(0,-1)),o=vt(e,r.slice(0,-1)),s=(l=a==null?void 0:a.data)==null?void 0:l.shouldMarkItemsComplete,u=(c=o==null?void 0:o.data)==null?void 0:c.shouldMarkItemsComplete;return!s&&!u||u===!!i.data.isComplete?i:(0,Bd.default)(i,{data:{isComplete:{$set:u}}})}function Ga(){let t=v.useRef(!1);return{oncompositionstart:()=>{t.current=!0},oncompositionend:()=>{t.current=!1},getShouldIMEBlockAction:()=>t.current}}var Cb=/<%/;async function Kd(t,n){let e=n?t.app.vault.getAbstractFileByPath(n):null;if(e&&e instanceof Ja.TFile){let r=t.app.workspace.activeLeaf.view;try{r instanceof Ja.MarkdownView&&r.getMode()!=="source"&&await r.setState({...r.getState(),mode:"source"},{});let{templatesEnabled:i,templaterEnabled:a,templatesPlugin:o,templaterPlugin:s}=pl(t.app),u=await t.app.vault.read(e);if(i&&a)return Cb.test(u)?await s.append_template_to_active_file(e):await o.instance.insertTemplate(e);if(i)return await o.instance.insertTemplate(e);if(a)return await s.append_template_to_active_file(e);await t.app.vault.modify(t.app.workspace.getActiveFile(),u)}catch(i){console.error(i),t.setError(i)}}}function Xr(t){var s,u,l,c,d;let n=t.internalPlugins.plugins,e=(s=n["daily-notes"])==null?void 0:s.enabled,r=(u=n["daily-notes"])==null?void 0:u.instance.options.format,i=(l=t.plugins.plugins["nldates-obsidian"])==null?void 0:l.settings.format,a=(c=n.templates)==null?void 0:c.enabled,o=(d=n.templates)==null?void 0:d.instance.options.dateFormat;return e&&r||i||a&&o||"YYYY-MM-DD"}function Vi(t){var a,o,s;let n=t.internalPlugins.plugins,e=(a=t.plugins.plugins["nldates-obsidian"])==null?void 0:a.settings.timeFormat,r=(o=n.templates)==null?void 0:o.enabled,i=(s=n.templates)==null?void 0:s.instance.options.timeFormat;return e||r&&i||"HH:mm"}var $d=/[\\^$.*+?()[\]{}|]/g,Db=RegExp($d.source);function Fn(t){return t&&Db.test(t)?t.replace($d,"\\$&"):t||""}function pl(t){var s;let n=t.internalPlugins.plugins.templates,e=n.enabled,r=t.plugins.plugins["templater-obsidian"],i=t.plugins.enabledPlugins.has("templater-obsidian"),a=r&&((s=this.app.plugins.plugins["templater-obsidian"].settings)==null?void 0:s.empty_file_template),o=e?n.instance.options.folder:r?r.settings.template_folder:void 0;return{templatesPlugin:n,templatesEnabled:e,templaterPlugin:r==null?void 0:r.templater,templaterEnabled:i,templaterEmptyFileTemplate:a,templateFolder:o}}function wt(t){if(typeof t=="string"||typeof t=="number")return""+t;let n="";if(Array.isArray(t))for(let e=0,r;e<t.length;e++)(r=wt(t[e]))!==""&&(n+=(n&&" ")+r);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}var on={x:0,y:0,maxX:0,maxY:0},Rn={x:0,y:0};var ji=class{constructor(){this.scrollStates=new Map,this.idScopes=new Map}setScrollState(n,e,r){if(this.scrollStates.set(e,r),this.idScopes.has(e)){let i=this.idScopes.get(e);i.has(n)||i.add(n)}else this.idScopes.set(e,new Set([n]))}getScrollState(n){return this.scrollStates.has(n)?this.scrollStates.get(n):on}unmountScope(n){let e=[];this.idScopes.forEach((r,i)=>{r.has(n)&&(r.delete(n),r.size===0&&e.push(i))}),e.forEach(r=>{this.idScopes.delete(r),this.scrollStates.delete(r)})}};var Et=v.createContext(null),cr=v.createContext(""),Wi=v.createContext(null),qi=v.createContext(new ji),Qa=v.createContext(null),Xa=v.createContext(null);var Ud={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){}},zd=[0,0,0,0];function Qe(t){return t===void 0?0:t}function Za(t,n,e,r){return[t.left+Qe(n==null?void 0:n.x)+Qe(e==null?void 0:e.x)-Qe(r==null?void 0:r.x),t.top+Qe(n==null?void 0:n.y)+Qe(e==null?void 0:e.y)-Qe(r==null?void 0:r.y),t.left+t.width+Qe(n==null?void 0:n.x)+Qe(e==null?void 0:e.x)-Qe(r==null?void 0:r.x),t.top+t.height+Qe(n==null?void 0:n.y)+Qe(e==null?void 0:e.y)-Qe(r==null?void 0:r.y)]}function ml(t,n,e,r){let i=Za(t,n,e,null);return r==="top"?(i[3]=i[1]+35,i):r==="right"?(i[0]=i[0]+t.width-35,i):r==="bottom"?(i[1]=i[1]+t.height-35,i):(i[2]=i[0]+35,i)}function eo(t,n,e,r,i,a){return[t-Qe(i==null?void 0:i.x)-Qe(a==null?void 0:a.x),n-Qe(i==null?void 0:i.y)-Qe(a==null?void 0:a.y),e-Qe(i==null?void 0:i.x)-Qe(a==null?void 0:a.x),r-Qe(i==null?void 0:i.y)-Qe(a==null?void 0:a.y)]}var Ab=t=>Ib(t,(n,e)=>n<e);function Ib(t,n){if(t.length===0)return-1;let e=t[0],r=0;for(let i=1;i<t.length;i++)n(t[i],e)&&(r=i,e=t[i]);return r}function Vd(t,n,e){let r=gl(t,n,e);if(!r)return null;let i=r.getData().side,a=r.getHitbox(),o=0,s=0;i==="left"?(o=0,s=2):i==="right"?(o=2,s=0):i==="top"?(o=1,s=3):i==="bottom"&&(o=3,s=1);let u=Math.abs(n[o]-a[s]),l=Math.abs(a[o]-a[s]);return[r,l-u]}function jd(t){return[{x:t[0],y:t[1]},{x:t[2],y:t[1]},{x:t[0],y:t[3]},{x:t[2],y:t[3]}]}function Zr(t,n){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Lb(t){return{x:(t[0]+t[2])/2,y:(t[1]+t[2])/2}}function gl(t,n,e){let r=jd(n)[0],i=t.map(o=>{if(o.entityId===e)return Infinity;let s=o.getHitbox(),u=jd(s)[0],l=Lb(n),c=o.getData().sortAxis==="horizontal"?"x":"y",d=l[c]>r[c]?1e3:0;return Zr(u,r)+d}),a=Ab(i);return t[a]?t[a]:null}function vl(t){let{scrollLeft:n,scrollTop:e,scrollWidth:r,scrollHeight:i,offsetWidth:a,offsetHeight:o}=t,s=n,u=e,l=r-a,c=i-o;return{x:s,y:u,maxX:Math.max(l,0),maxY:Math.max(c,0)}}function Wd(t,n,e){let r=Math.trunc((e.x-n.x)*100)/100,i=Math.trunc((e.y-n.y)*100)/100;return[t[0]+r,t[1]+i,t[2]+r,t[3]+i]}function yl(t,n=[0,0,0,0]){let e=t[0]-n[0],r=t[1]-n[1],i=t[2]+n[2],o=t[3]+n[3]-r;return{width:i-e,height:o}}var bl=class{constructor(n,e,r,i,a,o,s,u,l,c){this.isVisible=!1;this.id=r,this.instanceId=Ke(),this.scopeId=e,this.entityId=`${e}-${r}`,this.dndManager=n,this.index=i,this.children=new Map,this.parent=a,this.scrollParent=o,this.getEntityData=c,this.sortManager=s,this.pollForNodes(u,l)}pollForNodes(n,e){!n()||!e()?requestAnimationFrame(()=>this.pollForNodes(n,e)):this.initNodes(n(),e())}initNodes(n,e){var r,i;if(this.entityNode=n,this.measureNode=e,e.dataset.hitboxid=this.entityId,(r=this.sortManager)==null||r.registerSortable(this.entityId,this.getEntity(Ud),n,e),this.scrollParent)this.scrollParent.registerObserverHandler(this.entityId,e,a=>{var o,s;if(a.isIntersecting){let u=this.getEntity(a.boundingClientRect);(o=this.parent)==null||o.children.set(this.entityId,{entity:u,manager:this}),this.dndManager.observeResize(e),(!this.parent||this.parent.isVisible)&&(this.dndManager.registerHitboxEntity(this.entityId,u),this.children.forEach((l,c)=>{this.dndManager.registerHitboxEntity(c,l.entity)}),this.setVisibility(!0))}else this.dndManager.unregisterHitboxEntity(this.entityId),this.children.forEach((u,l)=>{this.dndManager.unregisterHitboxEntity(l)}),(s=this.parent)==null||s.children.delete(this.entityId),this.dndManager.unobserveResize(e),this.setVisibility(!1)});else{let a=this.getEntity(e.getBoundingClientRect());this.dndManager.observeResize(e),this.dndManager.registerHitboxEntity(this.entityId,a),(i=this.parent)==null||i.children.set(this.entityId,{entity:a,manager:this}),this.setVisibility(!0)}}setVisibility(n){this.isVisible=n,this.children.forEach(e=>{e.manager.setVisibility(n)})}destroy(){var n,e,r;this.dndManager.unobserveResize(this.measureNode),(n=this.sortManager)==null||n.unregisterSortable(this.entityId),(e=this.scrollParent)==null||e.unregisterObserverHandler(this.entityId,this.measureNode),this.dndManager.unregisterHitboxEntity(this.entityId),(r=this.parent)==null||r.children.delete(this.entityId)}getPath(){var n;return[...((n=this.parent)==null?void 0:n.getPath())||[],this.index]}getEntity(n){var r,i;let e=this;return{scopeId:this.scopeId,entityId:this.entityId,initial:Za(n,((r=e.scrollParent)==null?void 0:r.scrollState)||on,((i=e.scrollParent)==null?void 0:i.getScrollShift())||Rn,null),getParentScrollState(){var a;return((a=e.scrollParent)==null?void 0:a.scrollState)||on},getParentScrollShift(){var a;return((a=e.scrollParent)==null?void 0:a.getScrollShift())||Rn},recalcInitial(){var a,o;this.initial=Za(e.measureNode.getBoundingClientRect(),((a=e.scrollParent)==null?void 0:a.scrollState)||on,((o=e.scrollParent)==null?void 0:o.getScrollShift())||Rn,null)},getHitbox(){return eo(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return e.getPath()},getData(){var a;return{...e.getEntityData(),sortAxis:(a=e.sortManager)==null?void 0:a.axis}}}}};var ur=v.memo(function({id:n,index:e,elementRef:r,measureRef:i,children:a,data:o}){let s=v.useContext(Et),u=v.useContext(Qa),l=v.useContext(cr),c=v.useContext(Xa),d=v.useContext(Wi),f=v.useRef(o),h=v.useRef();f.current=o;let p=v.useMemo(()=>{if(s){h.current&&h.current.destroy();let g=new bl(s,l,n,e,c,d,u,()=>r.current,()=>i.current,()=>f.current);return h.current=g,g}return null},[n,e,s,l,c,d,u]);return v.useEffect(()=>()=>{var g;return(g=h.current)==null?void 0:g.destroy()},[]),p?v.createElement(Xa.Provider,{value:p},a):null});function Wn(t){let n=v.useContext(Xa),e=(n==null?void 0:n.getPath())||[];return t!==void 0&&e.push(t),v.useMemo(()=>e,e)}var Ql=me(ah()),dp=me(require("obsidian"));var Jw=function(n){var e=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];e=s,!r&&(r=requestAnimationFrame(function(){r=null,n.apply(void 0,e)}))};return i.cancel=function(){!r||(cancelAnimationFrame(r),r=null)},i},So=Jw;var Mh=me(Th()),{__extends:S1,__assign:x1,__rest:k1,__decorate:_1,__param:T1,__metadata:M1,__awaiter:ci,__generator:ui,__exportStar:C1,__createBinding:D1,__values:A1,__read:I1,__spread:Ch,__spreadArrays:L1,__spreadArray:P1,__await:O1,__asyncGenerator:N1,__asyncDelegator:F1,__asyncValues:R1,__makeTemplateObject:H1,__importStar:B1,__importDefault:K1,__classPrivateFieldGet:$1,__classPrivateFieldSet:U1}=Mh.default;var Gw=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function ea(t,n){var e=Qw(t);if(typeof e.path!="string"){var r=t.webkitRelativePath;Object.defineProperty(e,"path",{value:typeof n=="string"?n:typeof r=="string"&&r.length>0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function Qw(t){var n=t.name,e=n&&n.lastIndexOf(".")!==-1;if(e&&!t.type){var r=n.split(".").pop().toLowerCase(),i=Gw.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}var Xw=[".DS_Store","Thumbs.db"];function Bl(t){return ci(this,void 0,void 0,function(){return ui(this,function(n){return[2,Zw(t)&&t.dataTransfer?nE(t.dataTransfer,t.type):eE(t)]})})}function Zw(t){return!!t.dataTransfer}function eE(t){var n=tE(t.target)?t.target.files?Kl(t.target.files):[]:[];return n.map(function(e){return ea(e)})}function tE(t){return t!==null}function nE(t,n){return ci(this,void 0,void 0,function(){var e,r;return ui(this,function(i){switch(i.label){case 0:return t.items?(e=Kl(t.items).filter(function(a){return a.kind==="file"}),n!=="drop"?[2,e]:[4,Promise.all(e.map(rE))]):[3,2];case 1:return r=i.sent(),[2,Dh(Ah(r))];case 2:return[2,Dh(Kl(t.files).map(function(a){return ea(a)}))]}})})}function Dh(t){return t.filter(function(n){return Xw.indexOf(n.name)===-1})}function Kl(t){for(var n=[],e=0;e<t.length;e++){var r=t[e];n.push(r)}return n}function rE(t){if(typeof t.webkitGetAsEntry!="function")return Ih(t);var n=t.webkitGetAsEntry();return n&&n.isDirectory?Lh(n):Ih(t)}function Ah(t){return t.reduce(function(n,e){return Ch(n,Array.isArray(e)?Ah(e):[e])},[])}function Ih(t){var n=t.getAsFile();if(!n)return Promise.reject(t+" is not a File");var e=ea(n);return Promise.resolve(e)}function iE(t){return ci(this,void 0,void 0,function(){return ui(this,function(n){return[2,t.isDirectory?Lh(t):aE(t)]})})}function Lh(t){var n=t.createReader();return new Promise(function(e,r){var i=[];function a(){var o=this;n.readEntries(function(s){return ci(o,void 0,void 0,function(){var u,l,c;return ui(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return u=d.sent(),e(u),[3,4];case 3:return l=d.sent(),r(l),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(iE)),i.push(c),a(),d.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function aE(t){return ci(this,void 0,void 0,function(){return ui(this,function(n){return[2,new Promise(function(e,r){t.file(function(i){var a=ea(i,t.fullPath);e(a)},function(i){r(i)})})]})})}var To=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],pr={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return typeof console!="undefined"&&console.warn(t)},getWeek:function(t){var n=new Date(t.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var e=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var Mo={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var n=t%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Co=Mo;var Lt=function(t,n){return n===void 0&&(n=2),("000"+t).slice(n*-1)},Qt=function(t){return t===!0?1:0};function $l(t,n){var e;return function(){var r=this,i=arguments;clearTimeout(e),e=setTimeout(function(){return t.apply(r,i)},n)}}var Do=function(t){return t instanceof Array?t:[t]};function Pt(t,n,e){if(e===!0)return t.classList.add(n);t.classList.remove(n)}function Ve(t,n,e){var r=window.document.createElement(t);return n=n||"",e=e||"",r.className=n,e!==void 0&&(r.textContent=e),r}function ta(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Ul(t,n){if(n(t))return t;if(t.parentNode)return Ul(t.parentNode,n)}function na(t,n){var e=Ve("div","numInputWrapper"),r=Ve("input","numInput "+t),i=Ve("span","arrowUp"),a=Ve("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),n!==void 0)for(var o in n)r.setAttribute(o,n[o]);return e.appendChild(r),e.appendChild(i),e.appendChild(a),e}function Xt(t){try{if(typeof t.composedPath=="function"){var n=t.composedPath();return n[0]}return t.target}catch(e){return t.target}}var zl=function(){},ra=function(t,n,e){return e.months[n?"shorthand":"longhand"][t]},Ph={D:zl,F:function(t,n,e){t.setMonth(e.months.longhand.indexOf(n))},G:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},H:function(t,n){t.setHours(parseFloat(n))},J:function(t,n){t.setDate(parseFloat(n))},K:function(t,n,e){t.setHours(t.getHours()%12+12*Qt(new RegExp(e.amPM[1],"i").test(n)))},M:function(t,n,e){t.setMonth(e.months.shorthand.indexOf(n))},S:function(t,n){t.setSeconds(parseFloat(n))},U:function(t,n){return new Date(parseFloat(n)*1e3)},W:function(t,n,e){var r=parseInt(n),i=new Date(t.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:function(t,n){t.setFullYear(parseFloat(n))},Z:function(t,n){return new Date(n)},d:function(t,n){t.setDate(parseFloat(n))},h:function(t,n){t.setHours((t.getHours()>=12?12:0)+parseFloat(n))},i:function(t,n){t.setMinutes(parseFloat(n))},j:function(t,n){t.setDate(parseFloat(n))},l:zl,m:function(t,n){t.setMonth(parseFloat(n)-1)},n:function(t,n){t.setMonth(parseFloat(n)-1)},s:function(t,n){t.setSeconds(parseFloat(n))},u:function(t,n){return new Date(parseFloat(n))},w:zl,y:function(t,n){t.setFullYear(2e3+parseFloat(n))}},Qn={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},di={Z:function(t){return t.toISOString()},D:function(t,n,e){return n.weekdays.shorthand[di.w(t,n,e)]},F:function(t,n,e){return ra(di.n(t,n,e)-1,!1,n)},G:function(t,n,e){return Lt(di.h(t,n,e))},H:function(t){return Lt(t.getHours())},J:function(t,n){return n.ordinal!==void 0?t.getDate()+n.ordinal(t.getDate()):t.getDate()},K:function(t,n){return n.amPM[Qt(t.getHours()>11)]},M:function(t,n){return ra(t.getMonth(),!0,n)},S:function(t){return Lt(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,n,e){return e.getWeek(t)},Y:function(t){return Lt(t.getFullYear(),4)},d:function(t){return Lt(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Lt(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,n){return n.weekdays.longhand[t.getDay()]},m:function(t){return Lt(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}};var Vl=function(t){var n=t.config,e=n===void 0?pr:n,r=t.l10n,i=r===void 0?Mo:r,a=t.isMobile,o=a===void 0?!1:a;return function(s,u,l){var c=l||i;return e.formatDate!==void 0&&!o?e.formatDate(s,u,c):u.split("").map(function(d,f,h){return di[d]&&h[f-1]!=="\\"?di[d](s,c,e):d!=="\\"?d:""}).join("")}},Ao=function(t){var n=t.config,e=n===void 0?pr:n,r=t.l10n,i=r===void 0?Mo:r;return function(a,o,s,u){if(!(a!==0&&!a)){var l=u||i,c,d=a;if(a instanceof Date)c=new Date(a.getTime());else if(typeof a!="string"&&a.toFixed!==void 0)c=new Date(a);else if(typeof a=="string"){var f=o||(e||pr).dateFormat,h=String(a).trim();if(h==="today")c=new Date,s=!0;else if(e&&e.parseDate)c=e.parseDate(a,f);else if(/Z$/.test(h)||/GMT$/.test(h))c=new Date(a);else{for(var p=void 0,g=[],w=0,S=0,T="";w<f.length;w++){var k=f[w],D=k==="\\",N=f[w-1]==="\\"||D;if(Qn[k]&&!N){T+=Qn[k];var C=new RegExp(T).exec(a);C&&(p=!0)&&g[k!=="Y"?"push":"unshift"]({fn:Ph[k],val:C[++S]})}else D||(T+=".")}c=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),g.forEach(function(O){var B=O.fn,z=O.val;return c=B(c,z,l)||c}),c=p?c:void 0}}if(!(c instanceof Date&&!isNaN(c.getTime()))){e.errorHandler(new Error("Invalid date provided: "+d));return}return s===!0&&c.setHours(0,0,0,0),c}}};function Zt(t,n,e){return e===void 0&&(e=!0),e!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):t.getTime()-n.getTime()}var Oh=function(t,n,e){return t>Math.min(n,e)&&t<Math.max(n,e)},Io=function(t,n,e){return t*3600+n*60+e},Nh=function(t){var n=Math.floor(t/3600),e=(t-n*3600)/60;return[n,e,t-n*3600-e*60]},Fh={DAY:864e5};function Lo(t){var n=t.defaultHour,e=t.defaultMinute,r=t.defaultSeconds;if(t.minDate!==void 0){var i=t.minDate.getHours(),a=t.minDate.getMinutes(),o=t.minDate.getSeconds();n<i&&(n=i),n===i&&e<a&&(e=a),n===i&&e===a&&r<o&&(r=t.minDate.getSeconds())}if(t.maxDate!==void 0){var s=t.maxDate.getHours(),u=t.maxDate.getMinutes();n=Math.min(n,s),n===s&&(e=Math.min(u,e)),n===s&&e===u&&(r=t.maxDate.getSeconds())}return{hours:n,minutes:e,seconds:r}}"use strict";typeof Object.assign!="function"&&(Object.assign=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var r=function(s){s&&Object.keys(s).forEach(function(u){return t[u]=s[u]})},i=0,a=n;i<a.length;i++){var o=a[i];r(o)}return t});var Ot=function(){return Ot=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ot.apply(this,arguments)},Rh=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;for(var r=Array(t),i=0,n=0;n<e;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},oE=300;function sE(t,n){var e={config:Ot(Ot({},pr),ft.defaultConfig),l10n:Co};e.parseDate=Ao({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=g,e._setHoursFromDate=f,e._positionCalendar=Ct,e.changeMonth=A,e.changeYear=U,e.clear=I,e.close=et,e.onMouseOver=Ge,e._createElement=Ve,e.createDay=C,e.destroy=qe,e.isEnabled=G,e.jumpToDate=T,e.updateValue=Yt,e.open=pt,e.redraw=Tn,e.set=Bt,e.setDate=j,e.toggle=Ue;function r(){e.utils={getDaysInMonth:function(x,_){return x===void 0&&(x=e.currentMonth),_===void 0&&(_=e.currentYear),x===1&&(_%4==0&&_%100!=0||_%400==0)?29:e.l10n.daysInMonth[x]}}}function i(){e.element=e.input=t,e.isOpen=!1,yn(),Wt(),Be(),be(),r(),e.isMobile||N(),S(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&f(e.config.noCalendar?e.latestSelectedDateObj:void 0),Yt(!1)),s();var x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&x&&Ct(),Se("onReady")}function a(){var x;return((x=e.calendarContainer)===null||x===void 0?void 0:x.getRootNode()).activeElement||document.activeElement}function o(x){return x.bind(e)}function s(){var x=e.config;x.weekNumbers===!1&&x.showMonths===1||x.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var _=(e.days.offsetWidth+1)*x.showMonths;e.daysContainer.style.width=_+"px",e.calendarContainer.style.width=_+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function u(x){if(e.selectedDates.length===0){var _=e.config.minDate===void 0||Zt(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),R=Lo(e.config);_.setHours(R.hours,R.minutes,R.seconds,_.getMilliseconds()),e.selectedDates=[_],e.latestSelectedDateObj=_}x!==void 0&&x.type!=="blur"&&Li(x);var W=e._input.value;d(),Yt(),e._input.value!==W&&e._debouncedChange()}function l(x,_){return x%12+12*Qt(_===e.l10n.amPM[1])}function c(x){switch(x%24){case 0:case 12:return 12;default:return x%12}}function d(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var x=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,_=(parseInt(e.minuteElement.value,10)||0)%60,R=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(x=l(x,e.amPM.textContent));var W=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&Zt(e.latestSelectedDateObj,e.config.minDate,!0)===0,re=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&Zt(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var ae=Io(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),xe=Io(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),ue=Io(x,_,R);if(ue>xe&&ue<ae){var _e=Nh(ae);x=_e[0],_=_e[1],R=_e[2]}}else{if(re){var le=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;x=Math.min(x,le.getHours()),x===le.getHours()&&(_=Math.min(_,le.getMinutes())),_===le.getMinutes()&&(R=Math.min(R,le.getSeconds()))}if(W){var we=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;x=Math.max(x,we.getHours()),x===we.getHours()&&_<we.getMinutes()&&(_=we.getMinutes()),_===we.getMinutes()&&(R=Math.max(R,we.getSeconds()))}}h(x,_,R)}}function f(x){var _=x||e.latestSelectedDateObj;_&&_ instanceof Date&&h(_.getHours(),_.getMinutes(),_.getSeconds())}function h(x,_,R){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(x%24,_,R||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=Lt(e.config.time_24hr?x:(12+x)%12+12*Qt(x%12==0)),e.minuteElement.value=Lt(_),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[Qt(x>=12)]),e.secondElement!==void 0&&(e.secondElement.value=Lt(R)))}function p(x){var _=Xt(x),R=parseInt(_.value)+(x.delta||0);(R/1e3>1||x.key==="Enter"&&!/[^\d]/.test(R.toString()))&&U(R)}function g(x,_,R,W){if(_ instanceof Array)return _.forEach(function(re){return g(x,re,R,W)});if(x instanceof Array)return x.forEach(function(re){return g(re,_,R,W)});x.addEventListener(_,R,W),e._handlers.push({remove:function(){return x.removeEventListener(_,R,W)}})}function w(){Se("onChange")}function S(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(R){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+R+"]"),function(W){return g(W,"click",e[R])})}),e.isMobile){rn();return}var x=$l(ht,50);if(e._debouncedChange=$l(w,oE),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&g(e.daysContainer,"mouseover",function(R){e.config.mode==="range"&&Ge(Xt(R))}),g(e._input,"keydown",Fe),e.calendarContainer!==void 0&&g(e.calendarContainer,"keydown",Fe),!e.config.inline&&!e.config.static&&g(window,"resize",x),window.ontouchstart!==void 0?g(window.document,"touchstart",V):g(window.document,"mousedown",V),g(window.document,"focus",V,{capture:!0}),e.config.clickOpens===!0&&(g(e._input,"focus",e.open),g(e._input,"click",e.open)),e.daysContainer!==void 0&&(g(e.monthNav,"click",$r),g(e.monthNav,["keyup","increment"],p),g(e.daysContainer,"click",Cn)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var _=function(R){return Xt(R).select()};g(e.timeContainer,["increment"],u),g(e.timeContainer,"blur",u,{capture:!0}),g(e.timeContainer,"click",k),g([e.hourElement,e.minuteElement],["focus","click"],_),e.secondElement!==void 0&&g(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&g(e.amPM,"click",function(R){u(R)})}e.config.allowInput&&g(e._input,"blur",Ee)}function T(x,_){var R=x!==void 0?e.parseDate(x):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),W=e.currentYear,re=e.currentMonth;try{R!==void 0&&(e.currentYear=R.getFullYear(),e.currentMonth=R.getMonth())}catch(ae){ae.message="Invalid date supplied: "+R,e.config.errorHandler(ae)}_&&e.currentYear!==W&&(Se("onYearChange"),q()),_&&(e.currentYear!==W||e.currentMonth!==re)&&Se("onMonthChange"),e.redraw()}function k(x){var _=Xt(x);~_.className.indexOf("arrow")&&D(x,_.classList.contains("arrowUp")?1:-1)}function D(x,_,R){var W=x&&Xt(x),re=R||W&&W.parentNode&&W.parentNode.firstChild,ae=Dt("increment");ae.delta=_,re&&re.dispatchEvent(ae)}function N(){var x=window.document.createDocumentFragment();if(e.calendarContainer=Ve("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(x.appendChild(ce()),e.innerContainer=Ve("div","flatpickr-innerContainer"),e.config.weekNumbers){var _=De(),R=_.weekWrapper,W=_.weekNumbers;e.innerContainer.appendChild(R),e.weekNumbers=W,e.weekWrapper=R}e.rContainer=Ve("div","flatpickr-rContainer"),e.rContainer.appendChild(fe()),e.daysContainer||(e.daysContainer=Ve("div","flatpickr-days"),e.daysContainer.tabIndex=-1),ie(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),x.appendChild(e.innerContainer)}e.config.enableTime&&x.appendChild(de()),Pt(e.calendarContainer,"rangeMode",e.config.mode==="range"),Pt(e.calendarContainer,"animate",e.config.animate===!0),Pt(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(x);var re=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!re&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var ae=Ve("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(ae,e.element),ae.appendChild(e.element),e.altInput&&ae.appendChild(e.altInput),ae.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function C(x,_,R,W){var re=G(_,!0),ae=Ve("span",x,_.getDate().toString());return ae.dateObj=_,ae.$i=W,ae.setAttribute("aria-label",e.formatDate(_,e.config.ariaDateFormat)),x.indexOf("hidden")===-1&&Zt(_,e.now)===0&&(e.todayDateElem=ae,ae.classList.add("today"),ae.setAttribute("aria-current","date")),re?(ae.tabIndex=-1,Kt(_)&&(ae.classList.add("selected"),e.selectedDateElem=ae,e.config.mode==="range"&&(Pt(ae,"startRange",e.selectedDates[0]&&Zt(_,e.selectedDates[0],!0)===0),Pt(ae,"endRange",e.selectedDates[1]&&Zt(_,e.selectedDates[1],!0)===0),x==="nextMonthDay"&&ae.classList.add("inRange")))):ae.classList.add("flatpickr-disabled"),e.config.mode==="range"&&Ye(_)&&!Kt(_)&&ae.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&x!=="prevMonthDay"&&R%7==1&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(_)+"</span>"),Se("onDayCreate",ae),ae}function O(x){x.focus(),e.config.mode==="range"&&Ge(x)}function B(x){for(var _=x>0?0:e.config.showMonths-1,R=x>0?e.config.showMonths:-1,W=_;W!=R;W+=x)for(var re=e.daysContainer.children[W],ae=x>0?0:re.children.length-1,xe=x>0?re.children.length:-1,ue=ae;ue!=xe;ue+=x){var _e=re.children[ue];if(_e.className.indexOf("hidden")===-1&&G(_e.dateObj))return _e}}function z(x,_){for(var R=x.className.indexOf("Month")===-1?x.dateObj.getMonth():e.currentMonth,W=_>0?e.config.showMonths:-1,re=_>0?1:-1,ae=R-e.currentMonth;ae!=W;ae+=re)for(var xe=e.daysContainer.children[ae],ue=R-e.currentMonth===ae?x.$i+_:_<0?xe.children.length-1:0,_e=xe.children.length,le=ue;le>=0&&le<_e&&le!=(_>0?_e:-1);le+=re){var we=xe.children[le];if(we.className.indexOf("hidden")===-1&&G(we.dateObj)&&Math.abs(x.$i-le)>=Math.abs(_))return O(we)}e.changeMonth(re),Q(B(re),0)}function Q(x,_){var R=a(),W=ye(R||document.body),re=x!==void 0?x:W?R:e.selectedDateElem!==void 0&&ye(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&ye(e.todayDateElem)?e.todayDateElem:B(_>0?1:-1);re===void 0?e._input.focus():W?z(re,_):O(re)}function X(x,_){for(var R=(new Date(x,_,1).getDay()-e.l10n.firstDayOfWeek+7)%7,W=e.utils.getDaysInMonth((_-1+12)%12,x),re=e.utils.getDaysInMonth(_,x),ae=window.document.createDocumentFragment(),xe=e.config.showMonths>1,ue=xe?"prevMonthDay hidden":"prevMonthDay",_e=xe?"nextMonthDay hidden":"nextMonthDay",le=W+1-R,we=0;le<=W;le++,we++)ae.appendChild(C("flatpickr-day "+ue,new Date(x,_-1,le),le,we));for(le=1;le<=re;le++,we++)ae.appendChild(C("flatpickr-day",new Date(x,_,le),le,we));for(var ze=re+1;ze<=42-R&&(e.config.showMonths===1||we%7!=0);ze++,we++)ae.appendChild(C("flatpickr-day "+_e,new Date(x,_+1,ze%re),ze,we));var At=Ve("div","dayContainer");return At.appendChild(ae),At}function ie(){if(e.daysContainer!==void 0){ta(e.daysContainer),e.weekNumbers&&ta(e.weekNumbers);for(var x=document.createDocumentFragment(),_=0;_<e.config.showMonths;_++){var R=new Date(e.currentYear,e.currentMonth,1);R.setMonth(e.currentMonth+_),x.appendChild(X(R.getFullYear(),R.getMonth()))}e.daysContainer.appendChild(x),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Ge()}}function q(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var x=function(W){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&W<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&W>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var _=0;_<12;_++)if(!!x(_)){var R=Ve("option","flatpickr-monthDropdown-month");R.value=new Date(e.currentYear,_).getMonth().toString(),R.textContent=ra(_,e.config.shorthandCurrentMonth,e.l10n),R.tabIndex=-1,e.currentMonth===_&&(R.selected=!0),e.monthsDropdownContainer.appendChild(R)}}}function J(){var x=Ve("div","flatpickr-month"),_=window.document.createDocumentFragment(),R;e.config.showMonths>1||e.config.monthSelectorType==="static"?R=Ve("span","cur-month"):(e.monthsDropdownContainer=Ve("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),g(e.monthsDropdownContainer,"change",function(xe){var ue=Xt(xe),_e=parseInt(ue.value,10);e.changeMonth(_e-e.currentMonth),Se("onMonthChange")}),q(),R=e.monthsDropdownContainer);var W=na("cur-year",{tabindex:"-1"}),re=W.getElementsByTagName("input")[0];re.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&re.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(re.setAttribute("max",e.config.maxDate.getFullYear().toString()),re.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var ae=Ve("div","flatpickr-current-month");return ae.appendChild(R),ae.appendChild(W),_.appendChild(ae),x.appendChild(_),{container:x,yearElement:re,monthElement:R}}function te(){ta(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var x=e.config.showMonths;x--;){var _=J();e.yearElements.push(_.yearElement),e.monthElements.push(_.monthElement),e.monthNav.appendChild(_.container)}e.monthNav.appendChild(e.nextMonthNav)}function ce(){return e.monthNav=Ve("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=Ve("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=Ve("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,te(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(x){e.__hidePrevMonthArrow!==x&&(Pt(e.prevMonthNav,"flatpickr-disabled",x),e.__hidePrevMonthArrow=x)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(x){e.__hideNextMonthArrow!==x&&(Pt(e.nextMonthNav,"flatpickr-disabled",x),e.__hideNextMonthArrow=x)}}),e.currentYearElement=e.yearElements[0],qt(),e.monthNav}function de(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var x=Lo(e.config);e.timeContainer=Ve("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var _=Ve("span","flatpickr-time-separator",":"),R=na("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=R.getElementsByTagName("input")[0];var W=na("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=W.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?x.hours:c(x.hours)),e.minuteElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():x.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(R),e.timeContainer.appendChild(_),e.timeContainer.appendChild(W),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var re=na("flatpickr-second");e.secondElement=re.getElementsByTagName("input")[0],e.secondElement.value=Lt(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():x.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(Ve("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(re)}return e.config.time_24hr||(e.amPM=Ve("span","flatpickr-am-pm",e.l10n.amPM[Qt((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function fe(){e.weekdayContainer?ta(e.weekdayContainer):e.weekdayContainer=Ve("div","flatpickr-weekdays");for(var x=e.config.showMonths;x--;){var _=Ve("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(_)}return he(),e.weekdayContainer}function he(){if(!!e.weekdayContainer){var x=e.l10n.firstDayOfWeek,_=Rh(e.l10n.weekdays.shorthand);x>0&&x<_.length&&(_=Rh(_.splice(x,_.length),_.splice(0,x)));for(var R=e.config.showMonths;R--;)e.weekdayContainer.children[R].innerHTML=`
|
||
<span class='flatpickr-weekday'>
|
||
`+_.join("</span><span class='flatpickr-weekday'>")+`
|
||
</span>
|
||
`}}function De(){e.calendarContainer.classList.add("hasWeeks");var x=Ve("div","flatpickr-weekwrapper");x.appendChild(Ve("span","flatpickr-weekday",e.l10n.weekAbbreviation));var _=Ve("div","flatpickr-weeks");return x.appendChild(_),{weekWrapper:x,weekNumbers:_}}function A(x,_){_===void 0&&(_=!0);var R=_?x:x-e.currentMonth;R<0&&e._hidePrevMonthArrow===!0||R>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=R,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,Se("onYearChange"),q()),ie(),Se("onMonthChange"),qt())}function I(x,_){if(x===void 0&&(x=!0),_===void 0&&(_=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,_===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var R=Lo(e.config),W=R.hours,re=R.minutes,ae=R.seconds;h(W,re,ae)}e.redraw(),x&&Se("onChange")}function et(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Se("onClose")}function qe(){e.config!==void 0&&Se("onDestroy");for(var x=e._handlers.length;x--;)e._handlers[x].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var _=e.calendarContainer.parentNode;if(_.lastChild&&_.removeChild(_.lastChild),_.parentNode){for(;_.firstChild;)_.parentNode.insertBefore(_.firstChild,_);_.parentNode.removeChild(_)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(R){try{delete e[R]}catch(W){}})}function K(x){return e.calendarContainer.contains(x)}function V(x){if(e.isOpen&&!e.config.inline){var _=Xt(x),R=K(_),W=_===e.input||_===e.altInput||e.element.contains(_)||x.path&&x.path.indexOf&&(~x.path.indexOf(e.input)||~x.path.indexOf(e.altInput)),re=!W&&!R&&!K(x.relatedTarget),ae=!e.config.ignoredFocusElements.some(function(xe){return xe.contains(_)});re&&ae&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&u(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function U(x){if(!(!x||e.config.minDate&&x<e.config.minDate.getFullYear()||e.config.maxDate&&x>e.config.maxDate.getFullYear())){var _=x,R=e.currentYear!==_;e.currentYear=_||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),R&&(e.redraw(),Se("onYearChange"),q())}}function G(x,_){var R;_===void 0&&(_=!0);var W=e.parseDate(x,void 0,_);if(e.config.minDate&&W&&Zt(W,e.config.minDate,_!==void 0?_:!e.minDateHasTime)<0||e.config.maxDate&&W&&Zt(W,e.config.maxDate,_!==void 0?_:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(W===void 0)return!1;for(var re=!!e.config.enable,ae=(R=e.config.enable)!==null&&R!==void 0?R:e.config.disable,xe=0,ue=void 0;xe<ae.length;xe++){if(ue=ae[xe],typeof ue=="function"&&ue(W))return re;if(ue instanceof Date&&W!==void 0&&ue.getTime()===W.getTime())return re;if(typeof ue=="string"){var _e=e.parseDate(ue,void 0,!0);return _e&&_e.getTime()===W.getTime()?re:!re}else if(typeof ue=="object"&&W!==void 0&&ue.from&&ue.to&&W.getTime()>=ue.from.getTime()&&W.getTime()<=ue.to.getTime())return re}return!re}function ye(x){return e.daysContainer!==void 0?x.className.indexOf("hidden")===-1&&x.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(x):!1}function Ee(x){var _=x.target===e._input;_&&(e.selectedDates.length>0||e._input.value.length>0)&&!(x.relatedTarget&&K(x.relatedTarget))&&e.setDate(e._input.value,!0,x.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Fe(x){var _=Xt(x),R=e.config.wrap?t.contains(_):_===e._input,W=e.config.allowInput,re=e.isOpen&&(!W||!R),ae=e.config.inline&&R&&!W;if(x.keyCode===13&&R){if(W)return e.setDate(e._input.value,!0,_===e.altInput?e.config.altFormat:e.config.dateFormat),e.close(),_.blur();e.open()}else if(K(_)||re||ae){var xe=!!e.timeContainer&&e.timeContainer.contains(_);switch(x.keyCode){case 13:xe?(x.preventDefault(),u(),Mn()):Cn(x);break;case 27:x.preventDefault(),Mn();break;case 8:case 46:R&&!e.config.allowInput&&(x.preventDefault(),e.clear());break;case 37:case 39:if(!xe&&!R){x.preventDefault();var ue=a();if(e.daysContainer!==void 0&&(W===!1||ue&&ye(ue))){var _e=x.keyCode===39?1:-1;x.ctrlKey?(x.stopPropagation(),A(_e),Q(B(1),0)):Q(void 0,_e)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:x.preventDefault();var le=x.keyCode===40?1:-1;e.daysContainer&&_.$i!==void 0||_===e.input||_===e.altInput?x.ctrlKey?(x.stopPropagation(),U(e.currentYear-le),Q(B(1),0)):xe||Q(void 0,le*7):_===e.currentYearElement?U(e.currentYear-le):e.config.enableTime&&(!xe&&e.hourElement&&e.hourElement.focus(),u(x),e._debouncedChange());break;case 9:if(xe){var we=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(function(mt){return mt}),ze=we.indexOf(_);if(ze!==-1){var At=we[ze+(x.shiftKey?-1:1)];x.preventDefault(),(At||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(_)&&x.shiftKey&&(x.preventDefault(),e._input.focus());break;default:break}}if(e.amPM!==void 0&&_===e.amPM)switch(x.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],d(),Yt();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],d(),Yt();break}(R||K(_))&&Se("onKeyDown",x)}function Ge(x,_){if(_===void 0&&(_="flatpickr-day"),!(e.selectedDates.length!==1||x&&(!x.classList.contains(_)||x.classList.contains("flatpickr-disabled")))){for(var R=x?x.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),W=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),re=Math.min(R,e.selectedDates[0].getTime()),ae=Math.max(R,e.selectedDates[0].getTime()),xe=!1,ue=0,_e=0,le=re;le<ae;le+=Fh.DAY)G(new Date(le),!0)||(xe=xe||le>re&&le<ae,le<W&&(!ue||le>ue)?ue=le:le>W&&(!_e||le<_e)&&(_e=le));var we=Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+"+e.config.showMonths+") > ."+_));we.forEach(function(ze){var At=ze.dateObj,mt=At.getTime(),Dn=ue>0&&mt<ue||_e>0&&mt>_e;if(Dn){ze.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(bn){ze.classList.remove(bn)});return}else if(xe&&!Dn)return;["startRange","inRange","endRange","notAllowed"].forEach(function(bn){ze.classList.remove(bn)}),x!==void 0&&(x.classList.add(R<=e.selectedDates[0].getTime()?"startRange":"endRange"),W<R&&mt===W?ze.classList.add("startRange"):W>R&&mt===W&&ze.classList.add("endRange"),mt>=ue&&(_e===0||mt<=_e)&&Oh(mt,W,R)&&ze.classList.add("inRange"))})}}function ht(){e.isOpen&&!e.config.static&&!e.config.inline&&Ct()}function pt(x,_){if(_===void 0&&(_=e._positionElement),e.isMobile===!0){if(x){x.preventDefault();var R=Xt(x);R&&R.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Se("onOpen");return}else if(e._input.disabled||e.config.inline)return;var W=e.isOpen;e.isOpen=!0,W||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),Se("onOpen"),Ct(_)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(x===void 0||!e.timeContainer.contains(x.relatedTarget))&&setTimeout(function(){return e.hourElement.select()},50)}function tn(x){return function(_){var R=e.config["_"+x+"Date"]=e.parseDate(_,e.config.dateFormat),W=e.config["_"+(x==="min"?"max":"min")+"Date"];R!==void 0&&(e[x==="min"?"minDateHasTime":"maxDateHasTime"]=R.getHours()>0||R.getMinutes()>0||R.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(function(re){return G(re)}),!e.selectedDates.length&&x==="min"&&f(R),Yt()),e.daysContainer&&(Tn(),R!==void 0?e.currentYearElement[x]=R.getFullYear().toString():e.currentYearElement.removeAttribute(x),e.currentYearElement.disabled=!!W&&R!==void 0&&W.getFullYear()===R.getFullYear())}}function yn(){var x=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],_=Ot(Ot({},JSON.parse(JSON.stringify(t.dataset||{}))),n),R={};e.config.parseDate=_.parseDate,e.config.formatDate=_.formatDate,Object.defineProperty(e.config,"enable",{get:function(){return e.config._enable},set:function(we){e.config._enable=ne(we)}}),Object.defineProperty(e.config,"disable",{get:function(){return e.config._disable},set:function(we){e.config._disable=ne(we)}});var W=_.mode==="time";if(!_.dateFormat&&(_.enableTime||W)){var re=ft.defaultConfig.dateFormat||pr.dateFormat;R.dateFormat=_.noCalendar||W?"H:i"+(_.enableSeconds?":S":""):re+" H:i"+(_.enableSeconds?":S":"")}if(_.altInput&&(_.enableTime||W)&&!_.altFormat){var ae=ft.defaultConfig.altFormat||pr.altFormat;R.altFormat=_.noCalendar||W?"h:i"+(_.enableSeconds?":S K":" K"):ae+(" h:i"+(_.enableSeconds?":S":"")+" K")}Object.defineProperty(e.config,"minDate",{get:function(){return e.config._minDate},set:tn("min")}),Object.defineProperty(e.config,"maxDate",{get:function(){return e.config._maxDate},set:tn("max")});var xe=function(we){return function(ze){e.config[we==="min"?"_minTime":"_maxTime"]=e.parseDate(ze,"H:i:S")}};Object.defineProperty(e.config,"minTime",{get:function(){return e.config._minTime},set:xe("min")}),Object.defineProperty(e.config,"maxTime",{get:function(){return e.config._maxTime},set:xe("max")}),_.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,R,_);for(var ue=0;ue<x.length;ue++)e.config[x[ue]]=e.config[x[ue]]===!0||e.config[x[ue]]==="true";To.filter(function(we){return e.config[we]!==void 0}).forEach(function(we){e.config[we]=Do(e.config[we]||[]).map(o)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ue=0;ue<e.config.plugins.length;ue++){var _e=e.config.plugins[ue](e)||{};for(var le in _e)To.indexOf(le)>-1?e.config[le]=Do(_e[le]).map(o).concat(e.config[le]):typeof _[le]=="undefined"&&(e.config[le]=_e[le])}_.altInputClass||(e.config.altInputClass=nn().className+" "+e.config.altInputClass),Se("onParseConfig")}function nn(){return e.config.wrap?t.querySelector("[data-input]"):t}function Wt(){typeof e.config.locale!="object"&&typeof ft.l10ns[e.config.locale]=="undefined"&&e.config.errorHandler(new Error("flatpickr: invalid locale "+e.config.locale)),e.l10n=Ot(Ot({},ft.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?ft.l10ns[e.config.locale]:void 0),Qn.D="("+e.l10n.weekdays.shorthand.join("|")+")",Qn.l="("+e.l10n.weekdays.longhand.join("|")+")",Qn.M="("+e.l10n.months.shorthand.join("|")+")",Qn.F="("+e.l10n.months.longhand.join("|")+")",Qn.K="("+e.l10n.amPM[0]+"|"+e.l10n.amPM[1]+"|"+e.l10n.amPM[0].toLowerCase()+"|"+e.l10n.amPM[1].toLowerCase()+")";var x=Ot(Ot({},n),JSON.parse(JSON.stringify(t.dataset||{})));x.time_24hr===void 0&&ft.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Vl(e),e.parseDate=Ao({config:e.config,l10n:e.l10n})}function Ct(x){if(typeof e.config.position=="function")return void e.config.position(e,x);if(e.calendarContainer!==void 0){Se("onPreCalendarPosition");var _=x||e._positionElement,R=Array.prototype.reduce.call(e.calendarContainer.children,function(y,b){return y+b.offsetHeight},0),W=e.calendarContainer.offsetWidth,re=e.config.position.split(" "),ae=re[0],xe=re.length>1?re[1]:null,ue=_.getBoundingClientRect(),_e=window.innerHeight-ue.bottom,le=ae==="above"||ae!=="below"&&_e<R&&ue.top>R,we=window.pageYOffset+ue.top+(le?-R-2:_.offsetHeight+2);if(Pt(e.calendarContainer,"arrowTop",!le),Pt(e.calendarContainer,"arrowBottom",le),!e.config.inline){var ze=window.pageXOffset+ue.left,At=!1,mt=!1;xe==="center"?(ze-=(W-ue.width)/2,At=!0):xe==="right"&&(ze-=W-ue.width,mt=!0),Pt(e.calendarContainer,"arrowLeft",!At&&!mt),Pt(e.calendarContainer,"arrowCenter",At),Pt(e.calendarContainer,"arrowRight",mt);var Dn=window.document.body.offsetWidth-(window.pageXOffset+ue.right),bn=ze+W>window.document.body.offsetWidth,Sr=Dn+W>window.document.body.offsetWidth;if(Pt(e.calendarContainer,"rightMost",bn),!e.config.static)if(e.calendarContainer.style.top=we+"px",!bn)e.calendarContainer.style.left=ze+"px",e.calendarContainer.style.right="auto";else if(!Sr)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=Dn+"px";else{var Vn=Un();if(Vn===void 0)return;var Ur=window.document.body.offsetWidth,zr=Math.max(0,Ur/2-W/2),Vr=".flatpickr-calendar.centerMost:before",jr=".flatpickr-calendar.centerMost:after",Pi=Vn.cssRules.length,L="{left:"+ue.left+"px;right:auto;}";Pt(e.calendarContainer,"rightMost",!1),Pt(e.calendarContainer,"centerMost",!0),Vn.insertRule(Vr+","+jr+L,Pi),e.calendarContainer.style.left=zr+"px",e.calendarContainer.style.right="auto"}}}}function Un(){for(var x=null,_=0;_<document.styleSheets.length;_++){var R=document.styleSheets[_];if(!!R.cssRules){try{R.cssRules}catch(W){continue}x=R;break}}return x!=null?x:zn()}function zn(){var x=document.createElement("style");return document.head.appendChild(x),x.sheet}function Tn(){e.config.noCalendar||e.isMobile||(q(),qt(),ie())}function Mn(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function Cn(x){x.preventDefault(),x.stopPropagation();var _=function(we){return we.classList&&we.classList.contains("flatpickr-day")&&!we.classList.contains("flatpickr-disabled")&&!we.classList.contains("notAllowed")},R=Ul(Xt(x),_);if(R!==void 0){var W=R,re=e.latestSelectedDateObj=new Date(W.dateObj.getTime()),ae=(re.getMonth()<e.currentMonth||re.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=W,e.config.mode==="single")e.selectedDates=[re];else if(e.config.mode==="multiple"){var xe=Kt(re);xe?e.selectedDates.splice(parseInt(xe),1):e.selectedDates.push(re)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=re,e.selectedDates.push(re),Zt(re,e.selectedDates[0],!0)!==0&&e.selectedDates.sort(function(we,ze){return we.getTime()-ze.getTime()}));if(d(),ae){var ue=e.currentYear!==re.getFullYear();e.currentYear=re.getFullYear(),e.currentMonth=re.getMonth(),ue&&(Se("onYearChange"),q()),Se("onMonthChange")}if(qt(),ie(),Yt(),!ae&&e.config.mode!=="range"&&e.config.showMonths===1?O(W):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){var _e=e.config.mode==="single"&&!e.config.enableTime,le=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(_e||le)&&Mn()}w()}}var lt={locale:[Wt,he],showMonths:[te,s,fe],minDate:[T],maxDate:[T],positionElement:[ct],clickOpens:[function(){e.config.clickOpens===!0?(g(e._input,"focus",e.open),g(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Bt(x,_){if(x!==null&&typeof x=="object"){Object.assign(e.config,x);for(var R in x)lt[R]!==void 0&<[R].forEach(function(W){return W()})}else e.config[x]=_,lt[x]!==void 0?lt[x].forEach(function(W){return W()}):To.indexOf(x)>-1&&(e.config[x]=Do(_));e.redraw(),Yt(!0)}function tt(x,_){var R=[];if(x instanceof Array)R=x.map(function(W){return e.parseDate(W,_)});else if(x instanceof Date||typeof x=="number")R=[e.parseDate(x,_)];else if(typeof x=="string")switch(e.config.mode){case"single":case"time":R=[e.parseDate(x,_)];break;case"multiple":R=x.split(e.config.conjunction).map(function(W){return e.parseDate(W,_)});break;case"range":R=x.split(e.l10n.rangeSeparator).map(function(W){return e.parseDate(W,_)});break;default:break}else e.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(x)));e.selectedDates=e.config.allowInvalidPreload?R:R.filter(function(W){return W instanceof Date&&G(W,!1)}),e.config.mode==="range"&&e.selectedDates.sort(function(W,re){return W.getTime()-re.getTime()})}function j(x,_,R){if(_===void 0&&(_=!1),R===void 0&&(R=e.config.dateFormat),x!==0&&!x||x instanceof Array&&x.length===0)return e.clear(_);tt(x,R),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),T(void 0,_),f(),e.selectedDates.length===0&&e.clear(!1),Yt(_),_&&Se("onChange")}function ne(x){return x.slice().map(function(_){return typeof _=="string"||typeof _=="number"||_ instanceof Date?e.parseDate(_,void 0,!0):_&&typeof _=="object"&&_.from&&_.to?{from:e.parseDate(_.from,void 0),to:e.parseDate(_.to,void 0)}:_}).filter(function(_){return _})}function be(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;var x=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);x&&tt(x,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Be(){if(e.input=nn(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=Ve(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),ct()}function ct(){e._positionElement=e.config.positionElement||e._input}function rn(){var x=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=Ve("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=x,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=x==="datetime-local"?"Y-m-d\\TH:i:S":x==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch(_){}g(e.mobileInput,"change",function(_){e.setDate(Xt(_).value,!1,e.mobileFormatStr),Se("onChange"),Se("onClose")})}function Ue(x){if(e.isOpen===!0)return e.close();e.open(x)}function Se(x,_){if(e.config!==void 0){var R=e.config[x];if(R!==void 0&&R.length>0)for(var W=0;R[W]&&W<R.length;W++)R[W](e.selectedDates,e.input.value,e,_);x==="onChange"&&(e.input.dispatchEvent(Dt("change")),e.input.dispatchEvent(Dt("input")))}}function Dt(x){var _=document.createEvent("Event");return _.initEvent(x,!0,!0),_}function Kt(x){for(var _=0;_<e.selectedDates.length;_++){var R=e.selectedDates[_];if(R instanceof Date&&Zt(R,x)===0)return""+_}return!1}function Ye(x){return e.config.mode!=="range"||e.selectedDates.length<2?!1:Zt(x,e.selectedDates[0])>=0&&Zt(x,e.selectedDates[1])<=0}function qt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach(function(x,_){var R=new Date(e.currentYear,e.currentMonth,1);R.setMonth(e.currentMonth+_),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[_].textContent=ra(R.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=R.getMonth().toString(),x.value=R.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function yt(x){return e.selectedDates.map(function(_){return e.formatDate(_,x)}).filter(function(_,R,W){return e.config.mode!=="range"||e.config.enableTime||W.indexOf(_)===R}).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Yt(x){x===void 0&&(x=!0),e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=yt(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=yt(e.config.altFormat)),x!==!1&&Se("onValueUpdate")}function $r(x){var _=Xt(x),R=e.prevMonthNav.contains(_),W=e.nextMonthNav.contains(_);R||W?A(R?-1:1):e.yearElements.indexOf(_)>=0?_.select():_.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):_.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Li(x){x.preventDefault();var _=x.type==="keydown",R=Xt(x),W=R;e.amPM!==void 0&&R===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Qt(e.amPM.textContent===e.l10n.amPM[0])]);var re=parseFloat(W.getAttribute("min")),ae=parseFloat(W.getAttribute("max")),xe=parseFloat(W.getAttribute("step")),ue=parseInt(W.value,10),_e=x.delta||(_?x.which===38?1:-1:0),le=ue+xe*_e;if(typeof W.value!="undefined"&&W.value.length===2){var we=W===e.hourElement,ze=W===e.minuteElement;le<re?(le=ae+le+Qt(!we)+(Qt(we)&&Qt(!e.amPM)),ze&&D(void 0,-1,e.hourElement)):le>ae&&(le=W===e.hourElement?le-ae-Qt(!e.amPM):re,ze&&D(void 0,1,e.hourElement)),e.amPM&&we&&(xe===1?le+ue===23:Math.abs(le-ue)>xe)&&(e.amPM.textContent=e.l10n.amPM[Qt(e.amPM.textContent===e.l10n.amPM[0])]),W.value=Lt(le)}}return i(),e}function fi(t,n){for(var e=Array.prototype.slice.call(t).filter(function(o){return o instanceof HTMLElement}),r=[],i=0;i<e.length;i++){var a=e[i];try{if(a.getAttribute("data-fp-omit")!==null)continue;a._flatpickr!==void 0&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=sE(a,n||{}),r.push(a._flatpickr)}catch(o){console.error(o)}}return r.length===1?r[0]:r}typeof HTMLElement!="undefined"&&typeof HTMLCollection!="undefined"&&typeof NodeList!="undefined"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return fi(this,t)},HTMLElement.prototype.flatpickr=function(t){return fi([this],t)});var ft=function(t,n){return typeof t=="string"?fi(window.document.querySelectorAll(t),n):t instanceof Node?fi([t],n):fi(t,n)};ft.defaultConfig={};ft.l10ns={en:Ot({},Co),default:Ot({},Co)};ft.localize=function(t){ft.l10ns.default=Ot(Ot({},ft.l10ns.default),t)};ft.setDefaults=function(t){ft.defaultConfig=Ot(Ot({},ft.defaultConfig),t)};ft.parseDate=Ao({});ft.formatDate=Vl({});ft.compareDates=Zt;typeof jQuery!="undefined"&&typeof jQuery.fn!="undefined"&&(jQuery.fn.flatpickr=function(t){return fi(this,t)});Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))};typeof window!="undefined"&&(window.flatpickr=ft);var Po=ft;var at=me(require("obsidian"));var da=me(ql());function np(t,n){let e=(0,da.getDateFromFile)(n,"day");if(!e||!e.isValid())return;t.internalPlugins.plugins["daily-notes"].instance.gotoNextExisting(e)}function rp(t,n){let e=(0,da.getDateFromFile)(n,"day");if(!e||!e.isValid())return;t.internalPlugins.plugins["daily-notes"].instance.gotoPreviousExisting(e)}function Oo(t,n){let e=(0,da.getDailyNoteSettings)();return t.vault.getConfig("useMarkdownLinks")?`[${n}](${e.folder?`${encodeURIComponent(e.folder)}/`:""}${encodeURIComponent(n)}.md)`:`[[${n}]]`}function ip(t){if(!t)return!1;let n=t.match(/---\s+([\w\W]+?)\s+---/);return!(!n||!n[1].contains("kanban-plugin"))}var Ze=me(op()),sp=me(require("obsidian")),lp={ar:Ze.default.ar,cs:Ze.default.cs,da:Ze.default.da,de:Ze.default.de,en:Ze.default.en,"en-gb":Ze.default.en,es:Ze.default.es,fr:Ze.default.fr,hi:Ze.default.hi,id:Ze.default.id,it:Ze.default.it,ja:Ze.default.ja,ko:Ze.default.ko,nl:Ze.default.nl,nn:Ze.default.no,pl:Ze.default.pl,pt:Ze.default.pt,"pt-br":Ze.default.pt,ro:Ze.default.ro,ru:Ze.default.ru,tr:Ze.default.tr,"zh-cn":Ze.default.zh,"zh-tw":Ze.default.zh_tw},DE=lp[sp.moment.locale()];function Fo(t){let n=t==null?void 0:t.getSetting("date-picker-week-start"),e=DE||lp.en;return n?{...e,firstDayOfWeek:n}:e}function Ro(t,n,e,r){return document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},i=>{i.style.left=`${n.x||0}px`,i.style.top=`${n.y||0}px`,i.createEl("input",{type:"text"},a=>{setTimeout(()=>{let o=null,s=c=>{c.target instanceof HTMLElement&&c.target.closest(`.${$("date-picker")}`)===null&&l()},u=c=>{c.key==="Escape"&&l()},l=()=>{o.destroy(),i.remove(),document.body.removeEventListener("click",s),document.removeEventListener("keydown",u)};o=Po(a,{locale:Fo(t),defaultDate:r,inline:!0,onChange:c=>{e(c),l()}}),setTimeout(()=>{let c=i.clientHeight,d=i.clientWidth;n.y+c>window.innerHeight&&(i.style.top=`${(n.y||0)-c}px`),n.x+d>window.innerWidth&&(i.style.left=`${(n.x||0)-d}px`)}),document.body.addEventListener("click",s),document.addEventListener("keydown",u)})})})}function Ho({stateManager:t,boardModifiers:n,item:e,hasDate:r,path:i}){let a=t.getSetting("date-format"),o=t.getSetting("link-date-to-daily-note"),s=t.getSetting("date-trigger"),u=o?"(?:\\[[^\\]]+\\]\\([^)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",l=new RegExp(`(^|\\s)${Fn(s)}${u}`);return c=>{let d=c[0],f=(0,at.moment)(d).format(a),h=o?Oo(t.app,f):`{${f}}`,p=e.data.titleRaw;r?p=e.data.titleRaw.replace(l,`$1${s}${h}`):p=`${e.data.titleRaw} ${s}${h}`,t.updateItemContent(e,p).then(g=>{n.updateItem(i,g)}).catch(g=>{t.setError(g),console.error(g)})}}function Yl(t){let n=t.getSetting("time-format"),e=[];for(let r=0;r<24;r++)e.push((0,at.moment)({hour:r}).format(n)),e.push((0,at.moment)({hour:r,minute:15}).format(n)),e.push((0,at.moment)({hour:r,minute:30}).format(n)),e.push((0,at.moment)({hour:r,minute:45}).format(n));return e}function Bo(t,n,e,r){let i=$("time-picker"),a=t.getSetting("time-format"),o=r==null?void 0:r.format(a);document.body.createDiv({cls:`${i} ${$("ignore-click-outside")}`},s=>{let u=Yl(t),l=g=>{g.target instanceof HTMLElement&&g.target.hasClass($("time-picker-item"))&&g.target.dataset.value&&(e(g.target.dataset.value),f())},c=g=>{g.target instanceof HTMLElement&&g.target.closest(`.${i}`)===null&&f()},d=g=>{g.key==="Escape"&&f()},f=()=>{s.remove(),s.removeEventListener("click",l),document.body.removeEventListener("click",c),document.removeEventListener("keydown",d)};s.style.left=`${n.x||0}px`,s.style.top=`${n.y||0}px`;let h=null,p=null;u.forEach((g,w)=>{let S=g===o;s.createDiv({cls:`${$("time-picker-item")} ${S?"is-selected":""}`,text:g},T=>{T.createEl("span",{cls:$("time-picker-check"),prepend:!0},k=>{(0,at.setIcon)(k,"checkmark")}),w%4==0&&T.addClass("is-hour"),T.dataset.value=g,S&&(h=T),w===Math.floor(u.length/2)&&(p=T)})}),setTimeout(()=>{var S;let g=s.clientHeight,w=s.clientWidth;n.y+g>window.innerHeight&&(s.style.top=`${(n.y||0)-g}px`),n.x+w>window.innerWidth&&(s.style.left=`${(n.x||0)-w}px`),(S=h||p)==null||S.scrollIntoView({block:"center",inline:"nearest"}),s.addEventListener("click",l),document.body.addEventListener("click",c),document.addEventListener("keydown",d)})})}function Ko({stateManager:t,boardModifiers:n,item:e,hasTime:r,path:i}){let a=t.getSetting("time-trigger"),o=new RegExp(`(^|\\s)${Fn(a)}{([^}]+)}`);return s=>{let u=e.data.titleRaw;r?u=e.data.titleRaw.replace(o,`$1${a}{${s}}`):u=`${e.data.titleRaw} ${a}{${s}}`,t.updateItemContent(e,u).then(l=>{n.updateItem(i,l)}).catch(l=>{t.setError(l),console.error(l)})}}function cp(t){let n=t.data.metadata.date,e=[];n&&(n.isSame(new Date,"day")&&e.push("is-today"),n.isAfter(new Date,"day")&&e.push("is-future"),n.isBefore(new Date,"day")&&e.push("is-past")),t.data.isComplete&&e.push("is-complete");for(let r of t.data.metadata.tags)e.push(`has-tag-${r.slice(1)}`);return e}function Ir(t,n,e,r){return t.app.fileManager.generateMarkdownLink(n,e,r)}function AE(t,n,e){return at.htmlToMarkdown?(0,at.htmlToMarkdown)(e):at.MarkdownSourceView.prototype.handleDataTransfer.call({app:t.app},n)}function IE(t){return t.replace(/^\[(.*)\]\(app:\/\/obsidian.md\/(.*)\)$/,"[$1]($2)")}function Jl(){var n;let t=window.require("electron").remote.clipboard;if(process.platform==="darwin"){if(t.has("NSFilenamesPboardType"))return((n=t.read("NSFilenamesPboardType").match(/<string>.*<\/string>/g))==null?void 0:n.map(e=>e.replace(/<string>|<\/string>/g,"")))||[];{let e=t.readImage("clipboard");return e.isEmpty()?[t.read("public.file-url").replace("file://","")].filter(r=>r):[{buffer:e.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,at.moment)().format("YYYYMMDDHHmmss")}.png`}]}}else if(t.has("CF_HDROP")){let e=t.read("CF_HDROP")||"",r=[...e].filter((a,o)=>e.charCodeAt(o)!==0).join("").replace(/\\/g,"\\"),i=r.match(/[a-zA-Z]:\\/);if(i){let a=r.indexOf(i[0]);return a!==0&&(r=r.slice(a)),r.split(i[0]).filter(o=>o).map(o=>i+o)}}else{let e=t.readImage("clipboard");return e.isEmpty()?[t.readBuffer("FileNameW").toString("ucs2").replace(RegExp(String.fromCharCode(0),"g"),"")].filter(r=>r):[{buffer:e.toPNG(),mimeType:"image/png",originalName:`Pasted image ${(0,at.moment)().format("YYYYMMDDHHmmss")}.png`}]}return null}function LE(t){return t.split("\\").pop().split("/").pop()}async function PE(t,n,e,r){let i=await t.app.vault.getAvailablePathForAttachments(n,e,t.file),a=await t.app.vault.createBinary(i,r);return Ir(t,a,t.file.path)}async function OE(t){let n=Jl();if(!n||n.length===0)return null;let e=window.require("fs/promises"),r=window.require("path");return(await Promise.all(n.map(async i=>{if(typeof i=="string"){let o=LE(i).split("."),s=o.pop(),u=o.join("."),l=await t.app.vault.getAvailablePathForAttachments(u,s,t.file),c=t.app.vault.adapter.basePath;await e.copyFile(i,r.join(c,l)),await new Promise(f=>setTimeout(f,50));let d=t.app.vault.getAbstractFileByPath(l);return Ir(t,d,t.file.path)}else{let a=i.originalName.split("."),o=a.pop(),s=a.join(".");return await PE(t,s,o,i.buffer)}}))).filter(i=>i)}function up(t,n,e){return Promise.all(n.map(r=>{let i=r.name.split("."),a=i.pop(),o=i.join(".");if(e){switch(r.type){case"text/jpg":a="jpg";break;case"text/jpeg":a="jpeg";break;case"text/png":a="png";break}o="Pasted image "+(0,at.moment)().format("YYYYMMDDHHmmss")}return new Promise((s,u)=>{let l=new FileReader;l.onload=async c=>{try{let d=await t.app.vault.getAvailablePathForAttachments(o,a,t.file),f=await t.app.vault.createBinary(d,c.target.result);s(Ir(t,f,t.file.path))}catch(d){console.error(d),u(d)}},l.readAsArrayBuffer(r)})}))}async function NE(t,n){let e=n instanceof ClipboardEvent,r=e?t.getAView().isShiftPressed:!1,i=e?n.clipboardData:n.dataTransfer,a=e&&at.Platform.isDesktopApp?window.require("electron").remote.clipboard:null,o=a?a.availableFormats():[];if(e){if(e&&!r&&!o.includes("text/rtf")){if(at.Platform.isDesktopApp){let h=await OE(t);if(h==null?void 0:h.length)return h}let d=[],f=n.clipboardData.items;for(let h in f){let p=f[h];p.kind==="file"&&d.push(p.getAsFile())}if(d.length)return await up(t,d,!0)}}else{let d=await Bl(n);if(d.length)return await up(t,d)}let s=i.getData("text/html"),u=i.getData("text/plain"),l=i.getData("text/uri-list"),c=r?u||s:AE(t,i,s);return[IE(c||l||u||s||"").trim()]}async function $o(t,n){let e=t.app.dragManager.draggable,r=n instanceof DragEvent?n.dataTransfer:n.clipboardData;switch(e==null?void 0:e.type){case"file":return[Ir(t,e.file,t.file.path)];case"files":return e.files.map(i=>Ir(t,i,t.file.path));case"folder":return e.file.children.map(i=>i instanceof at.TFolder?null:Ir(t,i,t.file.path)).filter(i=>i);case"link":{let i=e.file?Ir(t,e.file,(0,at.parseLinktext)(e.linktext).subpath):`[[${e.linktext}]]`,a=new DOMParser().parseFromString(r.getData("text/html"),"text/html").documentElement.textContent;return i=i.replace(/]]$/,`|${a}]]`).replace(/^\[[^\]].+]\(/,`[${a}](`),[i]}default:return await NE(t,n)}}var Xe={Item:"item",Lane:"lane",Board:"board",MetadataSetting:"metadata-setting"},Uo={accepts:[Xe.Item],type:Xe.Item,children:[]},mr={accepts:[Xe.Lane],type:Xe.Lane},zo={accepts:[],type:Xe.Board},Vo={accepts:[Xe.MetadataSetting],type:Xe.MetadataSetting,children:[]};function Gl(t,n,e,r){let i="htmldnd",a=Ke(),o=t-75,s=t+75,u=n-25,l=n+25;return{scopeId:i,entityId:`${i}-${a}`,initial:[o,u,s,l],getParentScrollState(){return on},getParentScrollShift(){return Rn},recalcInitial(){},getHitbox(){return this.initial},getPath(){return[]},getData(){return{viewId:r,type:Xe.Item,id:a,content:e,accepts:[]}}}}var Xl=class{constructor(n,e,r){this.isHTMLDragging=!1;this.dragOverTimeout=0;this.hitboxEntities=e,this.scrollEntities=r,this.emitter=n}getDragEventData(){return{dragEntity:this.dragEntity,dragEntityId:this.dragEntityId,dragEntityMargin:this.dragEntityMargin,dragOrigin:this.dragOrigin,dragOriginHitbox:this.dragOriginHitbox,dragPosition:this.dragPosition,primaryIntersection:this.primaryIntersection,scrollIntersection:this.scrollIntersection}}dragStart(n,e){var a;let r=(e==null?void 0:e.dataset.hitboxid)||n.currentTarget.dataset.hitboxid;if(!r)return;let i=getComputedStyle(e||n.currentTarget);this.dragEntityId=r,this.dragOrigin={x:n.pageX,y:n.pageY},this.dragPosition={x:n.pageX,y:n.pageY},this.dragEntity=this.hitboxEntities.get(r),this.dragOriginHitbox=(a=this.dragEntity)==null?void 0:a.getHitbox(),this.dragEntityMargin=[parseFloat(i.marginLeft)||0,parseFloat(i.marginTop)||0,parseFloat(i.marginRight)||0,parseFloat(i.marginBottom)||0],this.emitter.emit("dragStart",this.getDragEventData())}dragStartHTML(n,e){this.isHTMLDragging=!0;let r=Gl(n.pageX,n.pageY,[],e);this.dragEntityId=r.entityId,this.dragOrigin={x:n.pageX,y:n.pageY},this.dragPosition={x:n.pageX,y:n.pageY},this.dragEntity=r,this.dragOriginHitbox=r.getHitbox(),this.dragEntityMargin=[0,0,0,0],this.emitter.emit("dragStart",this.getDragEventData())}dragMove(n){this.dragPosition={x:n.pageX,y:n.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragMoveHTML(n){this.dragPosition={x:n.pageX,y:n.pageY},this.emitter.emit("dragMove",this.getDragEventData()),this.calculateDragIntersect()}dragEnd(n){this.emitter.emit("dragEnd",this.getDragEventData()),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0}dragEndHTML(n,e,r,i){this.isHTMLDragging=!1,i||(this.dragEntity=Gl(n.pageX,n.pageY,r,e),this.emitter.emit("dragEnd",this.getDragEventData())),this.dragEntityMargin=void 0,this.dragEntity=void 0,this.dragEntityId=void 0,this.dragOrigin=void 0,this.dragOriginHitbox=void 0,this.dragPosition=void 0,this.scrollIntersection=void 0,this.primaryIntersection=void 0,i&&this.emitter.emit("dragEnd",this.getDragEventData())}onHTMLDragLeave(n){clearTimeout(this.dragOverTimeout),this.dragOverTimeout=window.setTimeout(n,351)}calculateDragIntersect(){if(!this.dragEntity||!this.dragPosition||!this.dragOrigin||!this.dragOriginHitbox)return;let{type:n}=this.dragEntity.getData(),e=[],r=[],i=[],a=[];this.hitboxEntities.forEach(u=>{u.getData().accepts.includes(n)&&(e.push(u),r.push(u.getHitbox()))}),this.scrollEntities.forEach(u=>{u.getData().accepts.includes(n)&&(i.push(u),a.push(u.getHitbox()))});let o=Wd(this.dragOriginHitbox,this.dragOrigin,this.dragPosition);this.handleScrollIntersect(o,this.dragEntity.entityId,a,i)||this.handleHitboxIntersect(o,this.dragEntity.entityId,r,e)}handleScrollIntersect(n,e,r,i){let a=(0,Ql.default)([n],r).map(s=>i[s[1]]),o=Vd(a,n,e);if(this.scrollIntersection&&(!o||o[0]!==this.scrollIntersection[0])){let[s,u]=this.scrollIntersection,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("endDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=void 0}if(o&&(!this.scrollIntersection||this.scrollIntersection[0]!==o[0])){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("beginDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}else if(o&&this.scrollIntersection&&o[0]===this.scrollIntersection[0]){let[s,u]=o,l=s.getData(),c=s.entityId,d=l.side;this.emitter.emit("updateDragScroll",{...this.getDragEventData(),scrollEntity:s,scrollEntityId:c,scrollEntitySide:d,scrollStrength:u},c),this.scrollIntersection=o}return!!o}handleHitboxIntersect(n,e,r,i){let a=(0,Ql.default)([n],r).map(s=>i[s[1]]),o=gl(a,n,e);this.primaryIntersection&&this.primaryIntersection!==o&&(this.emitter.emit("dragLeave",this.getDragEventData(),this.primaryIntersection.entityId),this.primaryIntersection=void 0),o&&this.primaryIntersection!==o&&(this.emitter.emit("dragEnter",{...this.getDragEventData(),primaryIntersection:o},o.entityId),this.primaryIntersection=o)}},mi=t=>{t.preventDefault(),t.stopPropagation()};function gi(t,n){let e=v.useContext(Et);v.useEffect(()=>{let r=t.current,i=n.current;if(!e||!r||!i)return;let a=s=>{if(s.defaultPrevented||s.target.dataset.ignoreDrag||s.button!==0&&s.buttons!==1)return;let u=dp.Platform.isMobile;u||(s.stopPropagation(),s.preventDefault());let l=s,c={x:s.pageX,y:s.pageY},d=!1,f=0;u&&(window.addEventListener("contextmenu",mi,!0),f=window.setTimeout(()=>{e.dragManager.dragStart(l,r),d=!0,window.addEventListener("touchmove",mi,{passive:!1})},500));let h=So(g=>{u?d?e.dragManager.dragMove(g):Zr(c,{x:g.pageX,y:g.pageY})>5&&(clearTimeout(f),window.removeEventListener("touchmove",mi),window.removeEventListener("contextmenu",mi,!0),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p)):d?e.dragManager.dragMove(g):Zr(c,{x:g.pageX,y:g.pageY})>5&&(e.dragManager.dragStart(l,r),d=!0)}),p=g=>{clearTimeout(f),d=!1,e.dragManager.dragEnd(g),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),u&&(window.removeEventListener("contextmenu",mi,!0),window.removeEventListener("touchmove",mi))};window.addEventListener("pointermove",h),window.addEventListener("pointerup",p),window.addEventListener("pointercancel",p)},o=s=>{s.stopPropagation()};return i.addEventListener("pointerdown",a),i.addEventListener("touchstart",o),()=>{i.removeEventListener("pointerdown",a),i.removeEventListener("touchstart",o)}},[t,n,e])}function fp(t){let n=v.useContext(Et),e=v.useCallback(i=>{n.dragManager.isHTMLDragging?(i.preventDefault(),n.dragManager.dragMoveHTML(i.nativeEvent)):n.dragManager.dragStartHTML(i.nativeEvent,t.getAView().id),n.dragManager.onHTMLDragLeave(()=>{n.dragManager.dragEndHTML(i.nativeEvent,t.getAView().id,[],!0)})},[n,t]),r=v.useCallback(async i=>{n.dragManager.dragEndHTML(i.nativeEvent,t.getAView().id,await $o(t,i.nativeEvent),!1)},[n,t]);return{onDragOver:e,onDrop:r}}var pp=me(It());var hp=me(require("obsidian"));function en({name:t,className:n}){return v.createElement("span",{"data-icon":t,className:`${$("icon")} ${n||""}`,ref:e=>{e&&(0,hp.setIcon)(e,t)}})}var mp=v.memo(function({shouldMarkItemsComplete:n,path:e,item:r,stateManager:i,boardModifiers:a}){let o=i.useSetting("show-checkboxes"),[s,u]=v.useState(!1),[l,c]=v.useState(!1);return v.useEffect(()=>{if(l){let d=f=>{f.metaKey||f.ctrlKey?u(!0):u(!1)};return window.addEventListener("keydown",d),window.addEventListener("keyup",d),()=>{window.removeEventListener("keydown",d),window.removeEventListener("keyup",d)}}},[l]),n||o?v.createElement("div",{onMouseEnter:d=>{c(!0),(d.ctrlKey||d.metaKey)&&u(!0)},onMouseLeave:()=>{c(!1),s&&u(!1)},className:$("item-prefix-button-wrapper")},o&&!s&&v.createElement("input",{onChange:()=>{a.updateItem(e,(0,pp.default)(r,{data:{$toggle:["isComplete"]}}))},type:"checkbox",className:"task-list-item-checkbox",checked:!!r.data.isComplete}),(s||!o&&n)&&v.createElement("button",{onClick:()=>{a.archiveItem(e)},className:$("item-prefix-button"),"aria-label":s?void 0:"Archive card"},v.createElement(en,{name:"sheets-in-box"}))):null});var Zl;function gp(t){if(t.nodeName!=="TEXTAREA")return!1;if(typeof Zl=="undefined"){var n=document.createElement("textarea");n.value=1,Zl=!!n.firstChild}return Zl}function FE(t,n){if(t.focus(),document.selection){var e=document.selection.createRange();e.text=n,e.collapse(!1),e.select();return}var r=document.execCommand("insertText",!1,n);if(!r){var i=t.selectionStart,a=t.selectionEnd;if(typeof t.setRangeText=="function")t.setRangeText(n);else{var o=document.createRange(),s=document.createTextNode(n);if(gp(t)){var u=t.firstChild;if(!u)t.appendChild(s);else{for(var l=0,c=null,d=null;u&&(c===null||d===null);){var f=u.nodeValue.length;i>=l&&i<=l+f&&o.setStart(c=u,i-l),a>=l&&a<=l+f&&o.setEnd(d=u,a-l),l+=f,u=u.nextSibling}i!==a&&o.deleteContents()}}if(gp(t)&&o.commonAncestorContainer.nodeName==="#text")o.insertNode(s);else{var h=t.value;t.value=h.slice(0,i)+n+h.slice(a)}}t.setSelectionRange(i+n.length,i+n.length);var p=document.createEvent("UIEvent");p.initEvent("input",!0,!1),t.dispatchEvent(p)}}var fa=FE;var vp=me(require("obsidian"));var ec=t=>t.charCodeAt(0)===10,yp=t=>t===" "||ec(t);function RE(t,n,e){if(!t)throw Error("Argument 'text' should be truthy");let r=0,i=t.length;for(let a=n;a-1>-1;a--)if(ec(t[a-1])){r=a;break}for(let a=e===void 0?n:e;a<t.length;a++)if(ec(t[a])){i=a;break}return{start:r,end:i}}function HE(t,n,e){if(!t)throw Error("Argument 'text' should be truthy");let r=0,i=t.length;for(let a=n;a-1>-1;a--)if(yp(t[a-1])){r=a;break}for(let a=e===void 0?n:e;a<t.length;a++)if(yp(t[a])){i=a;break}return{start:r,end:i}}function BE({text:t,selection:n}){return t&&t.length?HE(t,n.start,n.end):n}function vi({text:t,selection:n}){return t&&t.length?RE(t,n.start,n.end):n}function Kn(t){return{selection:{start:t.selectionStart,end:t.selectionEnd},text:t.value,selectedText:t.value.slice(t.selectionStart,t.selectionEnd)}}function _t(t,n){return fa(t,n),Kn(t)}function Nt(t,n){return t.focus(),t.selectionStart=n.start,t.selectionEnd=n.end,Kn(t)}function yi(t,n,e,r){let i=Kn(t),a=BE({text:i.text,selection:i.selection}),o=Nt(t,a);if(n.test(o.selectedText))_t(t,e(o.selectedText)),Nt(t,{start:o.selection.start,end:o.selection.start+o.selectedText.length-r.length*2});else{let s=_t(t,`${r}${o.selectedText}${r}`);Nt(t,{start:s.selection.end-r.length-o.selectedText.length,end:s.selection.end-r.length})}}function ln(t,n,e,r,i){let a=Kn(t);if(r&&a.selection.end===a.selection.start||!i&&a.selection.end===a.selection.start&&a.selection.start>0&&t.value[a.selection.start-1]!==" ")return!1;if(a.selection.end===a.selection.start){let s=_t(t,`${e}`);return Nt(t,{start:s.selection.end-1-a.selectedText.length,end:s.selection.end-1}),!1}let o=_t(t,`${n}${a.selectedText}${e}`);return Nt(t,{start:o.selection.end-1-a.selectedText.length,end:o.selection.end-1}),!0}function jo(t,n,e,r){let i=Kn(t),a=vi({text:i.text,selection:i.selection}),o=Nt(t,a),s=n.test(o.selectedText)?r(o.selectedText):e(o.selectedText),u=_t(t,s);Nt(t,{start:o.selection.start,end:u.selection.end})}function Wo(t,n){var e;if(n.types.includes("text/uri-list")||["file","files","link","folder"].includes((e=t.app.dragManager.draggable)==null?void 0:e.type))return"link";if(n.types.includes("text/html")||n.types.includes("text/plain"))return"copy"}async function qo(t,n){let e=t.clipboardData.getData("text/html"),r=t.clipboardData.types.includes("Files"),i=vp.Platform.isDesktopApp?Jl():null,a=e||r||(i==null?void 0:i.length)>0;a&&t.preventDefault();try{let o=await $o(n,t.nativeEvent);if(a){let s=t.target,u=o.join(`
|
||
`);_t(s,u)}}catch(o){console.error(o),n.setError(o)}}var Dc=me(require("obsidian"));function Xn(t){return Array.isArray?Array.isArray(t):Ep(t)==="[object Array]"}var KE=1/0;function $E(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-KE?"-0":n}function UE(t){return t==null?"":$E(t)}function Zn(t){return typeof t=="string"}function bp(t){return typeof t=="number"}function zE(t){return t===!0||t===!1||VE(t)&&Ep(t)=="[object Boolean]"}function wp(t){return typeof t=="object"}function VE(t){return wp(t)&&t!==null}function cn(t){return t!=null}function tc(t){return!t.trim().length}function Ep(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var jE="Incorrect 'index' type",WE=t=>`Invalid value for key ${t}`,qE=t=>`Pattern length exceeds max of ${t}.`,YE=t=>`Missing ${t} property in key`,JE=t=>`Property 'weight' in key '${t}' must be a positive integer`,Sp=Object.prototype.hasOwnProperty,xp=class{constructor(n){this._keys=[],this._keyMap={};let e=0;n.forEach(r=>{let i=kp(r);e+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(r=>{r.weight/=e})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function kp(t){let n=null,e=null,r=null,i=1;if(Zn(t)||Xn(t))r=t,n=_p(t),e=nc(t);else{if(!Sp.call(t,"name"))throw new Error(YE("name"));let a=t.name;if(r=a,Sp.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(JE(a));n=_p(a),e=nc(a)}return{path:n,id:e,weight:i,src:r}}function _p(t){return Xn(t)?t:t.split(".")}function nc(t){return Xn(t)?t.join("."):t}function GE(t,n){let e=[],r=!1,i=(a,o,s)=>{if(!!cn(a))if(!o[s])e.push(a);else{let u=o[s],l=a[u];if(!cn(l))return;if(s===o.length-1&&(Zn(l)||bp(l)||zE(l)))e.push(UE(l));else if(Xn(l)){r=!0;for(let c=0,d=l.length;c<d;c+=1)i(l[c],o,s+1)}else o.length&&i(l,o,s+1)}};return i(t,Zn(n)?n.split("."):n,0),r?e:e[0]}var QE={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},XE={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},ZE={location:0,threshold:.6,distance:100},eS={useExtendedSearch:!1,getFn:GE,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Me={...XE,...QE,...ZE,...eS},tS=/[^ ]+/g;function nS(t=1,n=3){let e=new Map,r=Math.pow(10,n);return{get(i){let a=i.match(tS).length;if(e.has(a))return e.get(a);let o=1/Math.pow(a,.5*t),s=parseFloat(Math.round(o*r)/r);return e.set(a,s),s},clear(){e.clear()}}}var Yo=class{constructor({getFn:n=Me.getFn,fieldNormWeight:e=Me.fieldNormWeight}={}){this.norm=nS(e,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((e,r)=>{this._keysMap[e.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Zn(this.docs[0])?this.docs.forEach((n,e)=>{this._addString(n,e)}):this.docs.forEach((n,e)=>{this._addObject(n,e)}),this.norm.clear())}add(n){let e=this.size();Zn(n)?this._addString(n,e):this._addObject(n,e)}removeAt(n){this.records.splice(n,1);for(let e=n,r=this.size();e<r;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(n,e){return n[this._keysMap[e]]}size(){return this.records.length}_addString(n,e){if(!cn(n)||tc(n))return;let r={v:n,i:e,n:this.norm.get(n)};this.records.push(r)}_addObject(n,e){let r={i:e,$:{}};this.keys.forEach((i,a)=>{let o=this.getFn(n,i.path);if(!!cn(o)){if(Xn(o)){let s=[],u=[{nestedArrIndex:-1,value:o}];for(;u.length;){let{nestedArrIndex:l,value:c}=u.pop();if(!!cn(c))if(Zn(c)&&!tc(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xn(c)&&c.forEach((d,f)=>{u.push({nestedArrIndex:f,value:d})})}r.$[a]=s}else if(!tc(o)){let s={v:o,n:this.norm.get(o)};r.$[a]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};function Tp(t,n,{getFn:e=Me.getFn,fieldNormWeight:r=Me.fieldNormWeight}={}){let i=new Yo({getFn:e,fieldNormWeight:r});return i.setKeys(t.map(kp)),i.setSources(n),i.create(),i}function rS(t,{getFn:n=Me.getFn,fieldNormWeight:e=Me.fieldNormWeight}={}){let{keys:r,records:i}=t,a=new Yo({getFn:n,fieldNormWeight:e});return a.setKeys(r),a.setIndexRecords(i),a}function Jo(t,{errors:n=0,currentLocation:e=0,expectedLocation:r=0,distance:i=Me.distance,ignoreLocation:a=Me.ignoreLocation}={}){let o=n/t.length;if(a)return o;let s=Math.abs(r-e);return i?o+s/i:s?1:o}function iS(t=[],n=Me.minMatchCharLength){let e=[],r=-1,i=-1,a=0;for(let o=t.length;a<o;a+=1){let s=t[a];s&&r===-1?r=a:!s&&r!==-1&&(i=a-1,i-r+1>=n&&e.push([r,i]),r=-1)}return t[a-1]&&a-r>=n&&e.push([r,a-1]),e}var Lr=32;function aS(t,n,e,{location:r=Me.location,distance:i=Me.distance,threshold:a=Me.threshold,findAllMatches:o=Me.findAllMatches,minMatchCharLength:s=Me.minMatchCharLength,includeMatches:u=Me.includeMatches,ignoreLocation:l=Me.ignoreLocation}={}){if(n.length>Lr)throw new Error(qE(Lr));let c=n.length,d=t.length,f=Math.max(0,Math.min(r,d)),h=a,p=f,g=s>1||u,w=g?Array(d):[],S;for(;(S=t.indexOf(n,p))>-1;){let O=Jo(n,{currentLocation:S,expectedLocation:f,distance:i,ignoreLocation:l});if(h=Math.min(O,h),p=S+c,g){let B=0;for(;B<c;)w[S+B]=1,B+=1}}p=-1;let T=[],k=1,D=c+d,N=1<<c-1;for(let O=0;O<c;O+=1){let B=0,z=D;for(;B<z;)Jo(n,{errors:O,currentLocation:f+z,expectedLocation:f,distance:i,ignoreLocation:l})<=h?B=z:D=z,z=Math.floor((D-B)/2+B);D=z;let Q=Math.max(1,f-z+1),X=o?d:Math.min(f+z,d)+c,ie=Array(X+2);ie[X+1]=(1<<O)-1;for(let J=X;J>=Q;J-=1){let te=J-1,ce=e[t.charAt(te)];if(g&&(w[te]=+!!ce),ie[J]=(ie[J+1]<<1|1)&ce,O&&(ie[J]|=(T[J+1]|T[J])<<1|1|T[J+1]),ie[J]&N&&(k=Jo(n,{errors:O,currentLocation:te,expectedLocation:f,distance:i,ignoreLocation:l}),k<=h)){if(h=k,p=te,p<=f)break;Q=Math.max(1,2*f-p)}}if(Jo(n,{errors:O+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>h)break;T=ie}let C={isMatch:p>=0,score:Math.max(.001,k)};if(g){let O=iS(w,s);O.length?u&&(C.indices=O):C.isMatch=!1}return C}function oS(t){let n={};for(let e=0,r=t.length;e<r;e+=1){let i=t.charAt(e);n[i]=(n[i]||0)|1<<r-e-1}return n}var rc=class{constructor(n,{location:e=Me.location,threshold:r=Me.threshold,distance:i=Me.distance,includeMatches:a=Me.includeMatches,findAllMatches:o=Me.findAllMatches,minMatchCharLength:s=Me.minMatchCharLength,isCaseSensitive:u=Me.isCaseSensitive,ignoreLocation:l=Me.ignoreLocation}={}){if(this.options={location:e,threshold:r,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l},this.pattern=u?n:n.toLowerCase(),this.chunks=[],!this.pattern.length)return;let c=(f,h)=>{this.chunks.push({pattern:f,alphabet:oS(f),startIndex:h})},d=this.pattern.length;if(d>Lr){let f=0,h=d%Lr,p=d-h;for(;f<p;)c(this.pattern.substr(f,Lr),f),f+=Lr;if(h){let g=d-Lr;c(this.pattern.substr(g),g)}}else c(this.pattern,0)}searchIn(n){let{isCaseSensitive:e,includeMatches:r}=this.options;if(e||(n=n.toLowerCase()),this.pattern===n){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,n.length-1]]),p}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:u,ignoreLocation:l}=this.options,c=[],d=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:g,startIndex:w})=>{let{isMatch:S,score:T,indices:k}=aS(n,p,g,{location:i+w,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:u,includeMatches:r,ignoreLocation:l});S&&(f=!0),d+=T,S&&k&&(c=[...c,...k])});let h={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(h.indices=c),h}},er=class{constructor(n){this.pattern=n}static isMultiMatch(n){return Mp(n,this.multiRegex)}static isSingleMatch(n){return Mp(n,this.singleRegex)}search(){}};function Mp(t,n){let e=t.match(n);return e?e[1]:null}var Cp=class extends er{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){let e=n===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},Dp=class extends er{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){let r=n.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}},Ap=class extends er{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){let e=n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},Ip=class extends er{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){let e=!n.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},Lp=class extends er{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){let e=n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[n.length-this.pattern.length,n.length-1]}}},Pp=class extends er{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){let e=!n.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,n.length-1]}}},ic=class extends er{constructor(n,{location:e=Me.location,threshold:r=Me.threshold,distance:i=Me.distance,includeMatches:a=Me.includeMatches,findAllMatches:o=Me.findAllMatches,minMatchCharLength:s=Me.minMatchCharLength,isCaseSensitive:u=Me.isCaseSensitive,ignoreLocation:l=Me.ignoreLocation}={}){super(n);this._bitapSearch=new rc(n,{location:e,threshold:r,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}},ac=class extends er{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let e=0,r,i=[],a=this.pattern.length;for(;(r=n.indexOf(this.pattern,e))>-1;)e=r+a,i.push([r,e-1]);let o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}},oc=[Cp,ac,Ap,Ip,Pp,Lp,Dp,ic],Op=oc.length,sS=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,lS="|";function cS(t,n={}){return t.split(lS).map(e=>{let r=e.trim().split(sS).filter(a=>a&&!!a.trim()),i=[];for(let a=0,o=r.length;a<o;a+=1){let s=r[a],u=!1,l=-1;for(;!u&&++l<Op;){let c=oc[l],d=c.isMultiMatch(s);d&&(i.push(new c(d,n)),u=!0)}if(!u)for(l=-1;++l<Op;){let c=oc[l],d=c.isSingleMatch(s);if(d){i.push(new c(d,n));break}}}return i})}var uS=new Set([ic.type,ac.type]),Np=class{constructor(n,{isCaseSensitive:e=Me.isCaseSensitive,includeMatches:r=Me.includeMatches,minMatchCharLength:i=Me.minMatchCharLength,ignoreLocation:a=Me.ignoreLocation,findAllMatches:o=Me.findAllMatches,location:s=Me.location,threshold:u=Me.threshold,distance:l=Me.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:u,distance:l},this.pattern=e?n:n.toLowerCase(),this.query=cS(this.pattern,this.options)}static condition(n,e){return e.useExtendedSearch}searchIn(n){let e=this.query;if(!e)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:i}=this.options;n=i?n:n.toLowerCase();let a=0,o=[],s=0;for(let u=0,l=e.length;u<l;u+=1){let c=e[u];o.length=0,a=0;for(let d=0,f=c.length;d<f;d+=1){let h=c[d],{isMatch:p,indices:g,score:w}=h.search(n);if(p){if(a+=1,s+=w,r){let S=h.constructor.type;uS.has(S)?o=[...o,...g]:o.push(g)}}else{s=0,a=0,o.length=0;break}}if(a){let d={isMatch:!0,score:s/a};return r&&(d.indices=o),d}}return{isMatch:!1,score:1}}},sc=[];function dS(...t){sc.push(...t)}function lc(t,n){for(let e=0,r=sc.length;e<r;e+=1){let i=sc[e];if(i.condition(t,n))return new i(t,n)}return new rc(t,n)}var Go={AND:"$and",OR:"$or"},cc={PATH:"$path",PATTERN:"$val"},uc=t=>!!(t[Go.AND]||t[Go.OR]),fS=t=>!!t[cc.PATH],hS=t=>!Xn(t)&&wp(t)&&!uc(t),Fp=t=>({[Go.AND]:Object.keys(t).map(n=>({[n]:t[n]}))});function Rp(t,n,{auto:e=!0}={}){let r=i=>{let a=Object.keys(i),o=fS(i);if(!o&&a.length>1&&!uc(i))return r(Fp(i));if(hS(i)){let u=o?i[cc.PATH]:a[0],l=o?i[cc.PATTERN]:i[u];if(!Zn(l))throw new Error(WE(u));let c={keyId:nc(u),pattern:l};return e&&(c.searcher=lc(l,n)),c}let s={children:[],operator:a[0]};return a.forEach(u=>{let l=i[u];Xn(l)&&l.forEach(c=>{s.children.push(r(c))})}),s};return uc(t)||(t=Fp(t)),r(t)}function pS(t,{ignoreFieldNorm:n=Me.ignoreFieldNorm}){t.forEach(e=>{let r=1;e.matches.forEach(({key:i,norm:a,score:o})=>{let s=i?i.weight:null;r*=Math.pow(o===0&&s?Number.EPSILON:o,(s||1)*(n?1:a))}),e.score=r})}function mS(t,n){let e=t.matches;n.matches=[],!!cn(e)&&e.forEach(r=>{if(!cn(r.indices)||!r.indices.length)return;let{indices:i,value:a}=r,o={indices:i,value:a};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),n.matches.push(o)})}function gS(t,n){n.score=t.score}function vS(t,n,{includeMatches:e=Me.includeMatches,includeScore:r=Me.includeScore}={}){let i=[];return e&&i.push(mS),r&&i.push(gS),t.map(a=>{let{idx:o}=a,s={item:n[o],refIndex:o};return i.length&&i.forEach(u=>{u(a,s)}),s})}var gn=class{constructor(n,e={},r){this.options={...Me,...e},this.options.useExtendedSearch,this._keyStore=new xp(this.options.keys),this.setCollection(n,r)}setCollection(n,e){if(this._docs=n,e&&!(e instanceof Yo))throw new Error(jE);this._myIndex=e||Tp(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){!cn(n)||(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){let e=[];for(let r=0,i=this._docs.length;r<i;r+=1){let a=this._docs[r];n(a,r)&&(this.removeAt(r),r-=1,i-=1,e.push(a))}return e}removeAt(n){this._docs.splice(n,1),this._myIndex.removeAt(n)}getIndex(){return this._myIndex}search(n,{limit:e=-1}={}){let{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options,u=Zn(n)?Zn(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return pS(u,{ignoreFieldNorm:s}),a&&u.sort(o),bp(e)&&e>-1&&(u=u.slice(0,e)),vS(u,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(n){let e=lc(n,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:a,i:o,n:s})=>{if(!cn(a))return;let{isMatch:u,score:l,indices:c}=e.searchIn(a);u&&i.push({item:a,idx:o,matches:[{score:l,value:a,norm:s,indices:c}]})}),i}_searchLogical(n){let e=Rp(n,this.options),r=(s,u,l)=>{if(!s.children){let{keyId:d,searcher:f}=s,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:f});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}let c=[];for(let d=0,f=s.children.length;d<f;d+=1){let h=s.children[d],p=r(h,u,l);if(p.length)c.push(...p);else if(s.operator===Go.AND)return[]}return c},i=this._myIndex.records,a={},o=[];return i.forEach(({$:s,i:u})=>{if(cn(s)){let l=r(e,s,u);l.length&&(a[u]||(a[u]={idx:u,item:s,matches:[]},o.push(a[u])),l.forEach(({matches:c})=>{a[u].matches.push(...c)}))}}),o}_searchObjectList(n){let e=lc(n,this.options),{keys:r,records:i}=this._myIndex,a=[];return i.forEach(({$:o,i:s})=>{if(!cn(o))return;let u=[];r.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:o[c],searcher:e}))}),u.length&&a.push({idx:s,item:o,matches:u})}),a}_findMatches({key:n,value:e,searcher:r}){if(!cn(e))return[];let i=[];if(Xn(e))e.forEach(({v:a,i:o,n:s})=>{if(!cn(a))return;let{isMatch:u,score:l,indices:c}=r.searchIn(a);u&&i.push({score:l,key:n,value:a,idx:o,norm:s,indices:c})});else{let{v:a,n:o}=e,{isMatch:s,score:u,indices:l}=r.searchIn(a);s&&i.push({score:u,key:n,value:a,norm:o,indices:l})}return i}};gn.version="6.5.3";gn.createIndex=Tp;gn.parseIndex=rS;gn.config=Me;gn.parseQuery=Rp;dS(Np);var am=me(require("obsidian"));var Hp=me(require("obsidian"));function Qo(t,n,e){let r=e.getSetting("date-format"),i=e.getSetting("link-date-to-daily-note"),a=(0,Hp.moment)(t).format(r),o=i?Oo(e.app,a):`{${a}}`;_t(n.current,o),n.current.focus()}function Bp({div:t,inputRef:n,cb:e,stateManager:r}){t.createEl("input",{type:"text"},i=>{setTimeout(()=>e(Po(i,{now:new Date,locale:Fo(r),inline:!0,onChange:a=>{Qo(a[0],n,r)}})))})}function dc(t,n){let e=n.clientHeight,r=n.clientWidth;t.top+e>window.innerHeight&&(n.style.top=`${(t.clientTop||0)-e}px`),t.left+r>window.innerWidth&&(n.style.left=`${(t.left||0)-r}px`)}function Kp(t){let n=t.getSetting("time-trigger"),e=new RegExp(`\\B${Fn(n)}{?([^}]*)$`),r=Yl(t);return{id:"time",match:e,index:1,search:(i,a)=>{a(i?r.filter(o=>o.startsWith(i)):r)},template:i=>i,replace:i=>`${n}{${i}} `}}function $p(t){let n=t.month(),e=t.clone().startOf("month").weekday(0),r=t.diff(e,"week");t.subtract(1,"month").startOf("month").weekday(6).add(r,"week");let i=t.month();for(;n===i;)t.subtract(1,"week"),i=t.month();return t}function Up(t){let n=t.month(),e=t.clone().startOf("month").weekday(6),r=t.diff(e,"week");t.add(1,"month").startOf("month").weekday(0).add(r,"week");let i=t.month();for(;n===i;)t.add(1,"week"),i=t.month();return t}var zp=me(require("obsidian"));var yS=/\B\[\[([^\]]*)$/,bS=/\B!\[\[([^\]]*)$/,wS=/\B\[\[([^#\]]+)#([^\]]*)$/,ES=/\B!\[\[([^#\]]+)#([^\]]*)$/,SS=/\B\[\[([^#\]]+)#?\^([^\]]*)$/,xS=/\B!\[\[([^#\]]+)#?\^([^\]]*)$/;function kS(t,n,e){let r=createDiv($("file-suggestion-wrapper"));(0,zp.setIcon)(r.createDiv($("file-suggestion-icon")),"forward-arrow",12),r.createDiv({},a=>{a.createDiv({cls:$("file-suggestion-title"),text:e.item.alias}),a.createDiv({cls:$("file-suggestion-subtitle"),text:t.app.metadataCache.fileToLinktext(e.item.file,n)})});let i=r.outerHTML;return r.remove(),r=null,i}function fc(t,n,e,r,i,a){return{id:`link-${a?"embed":"normal"}`,match:a?bS:yS,index:1,template:o=>o.item.alias?kS(r,e,o):r.app.metadataCache.fileToLinktext(o.item.file,e),search:(o,s)=>{s(o?n.search(o):t.slice(0,10).map((u,l)=>({item:u,refIndex:l})))},replace:o=>{let s=[];a&&o.item.file.extension==="md"&&s.push("!"),s.push(r.app.fileManager.generateMarkdownLink(o.item.file,r.file.path,void 0,o.item.alias));let u=!!r.app.vault.getConfig("useMarkdownLinks");return i&&!u?s[s.length-1]=s[s.length-1].slice(0,-2):!i&&!u&&s.push("]] "),s.join("")}}}function _S(t,n,e,r){var u;if(!e)return[];let i=e.split("|"),a=t.metadataCache.getFirstLinkpathDest(i[0],n);if(!a)return[];let o=t.metadataCache.getFileCache(a);if(!o||!((u=o.headings)==null?void 0:u.length))return[];let s=o.headings.map(l=>({file:a,heading:l.heading,alias:i[1]||""}));return r?new gn(s,{keys:["heading"]}).search(r):s.map((l,c)=>({item:l,refIndex:c}))}function hc(t,n,e,r){return{id:`heading-${r?"embed":"normal"}`,match:r?ES:wS,index:1,template:i=>i.item.heading,search:(i,a,o)=>{a(_S(n.app,t,o[1],o[2]))},replace:i=>{let a=[];r&&i.item.file.extension==="md"&&a.push("!"),a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,"#"+i.item.heading,i.item.alias));let o=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!o?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!o&&a.push("]] "),a.join("")}}}var Vp=class{constructor(){this.running=!1;this.cancelled=!1}start(){this.running=!0}stop(){this.running=!1}cancel(){this.stop(),this.cancelled=!0}isRunning(){return this.running}isCancelled(){return this.cancelled}};async function TS(t,n,e,r,i){var u;if(!e)return i([]);let a=e.split("|"),o=t.metadataCache.getFirstLinkpathDest(a[0],n);if(!o)return i([]);let s=t.metadataCache.getFileCache(o);if(!s||!((u=s.sections)==null?void 0:u.length))return i([]);try{let l=await t.metadataCache.blockCache.getForFile(new Vp,o);if(!(l==null?void 0:l.blocks))return i([]);let c=l.blocks.map(d=>d.node.type==="heading"?null:{file:o,searchString:d.display,blockId:d.node.id,block:{type:d.node.type,start:d.node.position.start.offset,end:d.node.position.end.offset},alias:a[1]||""}).filter(d=>d);i(r?new gn(c,{keys:["searchString","blockId"]}).search(r):c.map((d,f)=>({item:d,refIndex:f})))}catch(l){i([])}}function MS(t){return["blockquote","code","table","comment","footnoteDefinition"].includes(t)}function pc(t,n,e,r){return{id:`block-${r?"embed":"normal"}`,match:r?xS:SS,index:1,template:i=>i.item.blockId?`<div class="${$("file-suggestion-wrapper")}"><div><div class="${$("file-suggestion-title")}">${i.item.searchString}</div><div class="${$("file-suggestion-subtitle")}">${i.item.blockId}</div><div></div>`:i.item.searchString,search:(i,a,o)=>{TS(n.app,t,o[1],o[2],a)},replace:i=>{let a=[];r&&i.item.file.extension==="md"&&a.push("!");let o="#^";if(i.item.blockId)o+=i.item.blockId;else{let u=Ke(),l=MS(i.item.block.type)?`
|
||
|
||
`:" ";n.app.vault.cachedRead(i.item.file).then(c=>{let d=`${c.slice(0,i.item.block.end)}${l}^${u}${c.slice(i.item.block.end)}`;n.app.vault.modify(i.item.file,d)}).catch(c=>{n.setError(c),console.error(c)}),o+=u}a.push(n.app.fileManager.generateMarkdownLink(i.item.file,n.file.path,o,i.item.alias));let s=!!n.app.vault.getConfig("useMarkdownLinks");return e&&!s?a[a.length-1]=a[a.length-1].slice(0,-2):!e&&!s&&a.push("]] "),a.join("")}}}var CS=/\B#([^\s]*)?$/;function jp(t,n){return{id:"tag",match:CS,index:1,search:(e,r)=>{r(e?n.search(e,{limit:50}):t.slice(0,50).map((i,a)=>({item:i,refIndex:a})))},template:e=>e.item,replace:e=>`${e.item} `}}var qp=me(pa());var IS=/\$&/g,LS=/\$(\d)/g,gc=class{constructor(n,e,r){this.data=n;this.term=e;this.strategy=r}getReplacementData(n){let e=this.strategy.replace(this.data);if(e==null)return null;let r="";Array.isArray(e)&&(r=e[1],e=e[0]);let i=this.strategy.match(n);if(i==null||i.index==null)return null;let a=e.replace(IS,i[0]).replace(LS,(o,s)=>i[parseInt(s)]);return{start:i.index,end:i.index+i[0].length,beforeCursor:a,afterCursor:r}}replace(n,e){let r=this.getReplacementData(n);if(r!==null)return e=r.afterCursor+e,[[n.slice(0,r.start),r.beforeCursor,n.slice(r.end)].join(""),e]}render(){return this.strategy.renderTemplate(this.data,this.term)}getStrategyId(){return this.strategy.getId()}};var PS=1,vc=class{constructor(n){this.props=n;this.cache={}}destroy(){return this.cache={},this}replace(n){return this.props.replace(n)}execute(n,e){var a;let r=this.matchWithContext(n);if(!r)return!1;let i=r[(a=this.props.index)!=null?a:PS];return this.search(i,o=>{e(o.map(s=>new gc(s,i,this)))},r),!0}renderTemplate(n,e){if(this.props.template)return this.props.template(n,e);if(typeof n=="string")return n;throw new Error(`Unexpected render data type: ${typeof n}. Please implement template parameter by yourself`)}getId(){return this.props.id||null}match(n){return typeof this.props.match=="function"?this.props.match(n):n.match(this.props.match)}search(n,e,r){this.props.cache?this.searchWithCach(n,e,r):this.props.search(n,e,r)}matchWithContext(n){let e=this.context(n);return e===!1?null:this.match(e===!0?n:e)}context(n){return this.props.context?this.props.context(n):!0}searchWithCach(n,e,r){this.cache[n]!=null?e(this.cache[n]):this.props.search(n,i=>{this.cache[n]=i,e(i)},r)}};var yc=class extends qp.EventEmitter{constructor(n){super();this.handleQueryResult=n=>{this.emit("hit",{searchResults:n})};this.strategies=n.map(e=>new vc(e))}destroy(){return this.strategies.forEach(n=>n.destroy()),this}run(n){for(let e of this.strategies)if(e.execute(n,this.handleQueryResult))return;this.handleQueryResult([])}};var Yp=me(pa());var OS=typeof window!="undefined"&&!!window.CustomEvent,Rt=(t,n)=>{if(OS)return new CustomEvent(t,n);let e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,(n==null?void 0:n.cancelable)||!1,(n==null?void 0:n.detail)||void 0),e};var NS=10,FS="auto",RS="dropdown-menu textcomplete-dropdown",Jp="textcomplete-item",HS=`${Jp} active`,ma=class extends Yp.EventEmitter{constructor(n,e){super();this.el=n;this.option=e;this.shown=!1;this.items=[];this.activeIndex=null}static create(n){let e=document.createElement("ul");e.className=n.className||RS,Object.assign(e.style,{display:"none",position:"absolute",zIndex:"1000"},n.style);let r=n.parent||document.body;return r==null||r.appendChild(e),new ma(e,n)}render(n,e){let r=Rt("render",{cancelable:!0});return this.emit("render",r),r.defaultPrevented?this:(this.clear(),n.length===0?this.hide():(this.items=n.slice(0,this.option.maxCount||NS).map((i,a)=>{var o;return new Gp(this,a,i,((o=this.option)==null?void 0:o.item)||{})}),this.setStrategyId(n[0]).renderEdge(n,"header").renderItems().renderEdge(n,"footer").show().setOffset(e).activate(0),this.emit("rendered",Rt("rendered")),this))}destroy(){var n;return this.clear(),(n=this.el.parentNode)==null||n.removeChild(this.el),this}select(n){let e={searchResult:n.searchResult},r=Rt("select",{cancelable:!0,detail:e});return this.emit("select",r),r.defaultPrevented?this:(this.hide(),this.emit("selected",Rt("selected",{detail:e})),this)}show(){if(!this.shown){let n=Rt("show",{cancelable:!0});if(this.emit("show",n),n.defaultPrevented)return this;this.el.style.display="block",this.shown=!0,this.emit("shown",Rt("shown"))}return this}hide(){if(this.shown){let n=Rt("hide",{cancelable:!0});if(this.emit("hide",n),n.defaultPrevented)return this;this.el.style.display="none",this.shown=!1,this.clear(),this.emit("hidden",Rt("hidden"))}return this}clear(){return this.items.forEach(n=>n.destroy()),this.items=[],this.el.innerHTML="",this.activeIndex=null,this}up(n){return this.shown?this.moveActiveItem("prev",n):this}down(n){return this.shown?this.moveActiveItem("next",n):this}moveActiveItem(n,e){if(this.activeIndex!=null){let r=n==="next"?this.getNextActiveIndex():this.getPrevActiveIndex();r!=null&&(this.activate(r),e.preventDefault())}return this}activate(n){return this.activeIndex!==n&&(this.activeIndex!=null&&this.items[this.activeIndex].deactivate(),this.activeIndex=n,this.items[n].activate()),this}isShown(){return this.shown}getActiveItem(){return this.activeIndex!=null?this.items[this.activeIndex]:null}setOffset(n){let e=document.documentElement;if(e){let r=this.el.offsetWidth;if(n.left){let o=this.option.dynamicWidth?e.scrollWidth:e.clientWidth;n.left+r>o&&(n.left=o-r),this.el.style.left=`${n.left}px`}else n.right&&(n.right-r<0&&(n.right=0),this.el.style.right=`${n.right}px`);let i=!1,a=this.option.placement||FS;if(a==="auto"){let o=this.el.clientHeight;i=n.clientTop!=null&&n.clientTop+o>e.clientHeight}a==="top"||i?(this.el.style.bottom=`${e.clientHeight-n.top+n.lineHeight}px`,this.el.style.top="auto"):(this.el.style.top=`${n.top}px`,this.el.style.bottom="auto")}return this}getNextActiveIndex(){if(this.activeIndex==null)throw new Error;return this.activeIndex<this.items.length-1?this.activeIndex+1:this.option.rotate?0:null}getPrevActiveIndex(){if(this.activeIndex==null)throw new Error;return this.activeIndex!==0?this.activeIndex-1:this.option.rotate?this.items.length-1:null}renderItems(){let n=document.createDocumentFragment();for(let e of this.items)n.appendChild(e.el);return this.el.appendChild(n),this}setStrategyId(n){let e=n.getStrategyId();return e&&(this.el.dataset.strategy=e),this}renderEdge(n,e){let r=this.option[e],i=document.createElement("li");return i.className=`textcomplete-${e}`,i.innerHTML=typeof r=="function"?r(n.map(a=>a.data)):r||"",this.el.appendChild(i),this}},Gp=class{constructor(n,e,r,i){this.dropdown=n;this.index=e;this.searchResult=r;this.props=i;this.active=!1;this.onClick=n=>{n.preventDefault(),this.dropdown.select(this)};this.className=this.props.className||Jp,this.activeClassName=this.props.activeClassName||HS;let a=document.createElement("li");a.className=this.active?this.activeClassName:this.className;let o=document.createElement("span");o.tabIndex=-1,o.innerHTML=this.searchResult.render(),a.appendChild(o),a.addEventListener("mousedown",this.onClick),a.addEventListener("touchstart",this.onClick),this.el=a}destroy(){var e;let n=this.el;return(e=n.parentNode)==null||e.removeChild(n),n.removeEventListener("mousedown",this.onClick,!1),n.removeEventListener("touchstart",this.onClick,!1),this}activate(){return this.active||(this.active=!0,this.el.className=this.activeClassName,this.dropdown.el.scrollTop=this.el.offsetTop),this}deactivate(){return this.active&&(this.active=!1,this.el.className=this.className),this}};var Qp=me(pa());var bc=class extends Qp.EventEmitter{destroy(){return this}applySearchResult(n){throw new Error("Not implemented.")}getCursorOffset(){throw new Error("Not implemented.")}getBeforeCursor(){throw new Error("Not implemented.")}emitMoveEvent(n){let e=Rt("move",{cancelable:!0,detail:{code:n}});return this.emit("move",e),e}emitEnterEvent(){let n=Rt("enter",{cancelable:!0});return this.emit("enter",n),n}emitChangeEvent(){let n=Rt("change",{detail:{beforeCursor:this.getBeforeCursor()}});return this.emit("change",n),n}emitEscEvent(){let n=Rt("esc",{cancelable:!0});return this.emit("esc",n),n}getCode(n){return n.keyCode===9||n.keyCode===13?"ENTER":n.keyCode===27?"ESC":n.keyCode===38?"UP":n.keyCode===40||n.keyCode===78&&n.ctrlKey?"DOWN":n.keyCode===80&&n.ctrlKey?"UP":"OTHER"}};var Xp=me(pa());var BS=["show","shown","render","rendered","selected","hidden","hide"],wc=class extends Xp.EventEmitter{constructor(n,e,r){super();this.editor=n;this.isQueryInFlight=!1;this.nextPendingQuery=null;this.handleHit=({searchResults:n})=>{n.length?this.dropdown.render(n,this.editor.getCursorOffset()):this.dropdown.hide(),this.isQueryInFlight=!1,this.nextPendingQuery!==null&&this.trigger(this.nextPendingQuery)};this.handleMove=n=>{n.detail.code==="UP"?this.dropdown.up(n):this.dropdown.down(n)};this.handleEnter=n=>{let e=this.dropdown.getActiveItem();e?(this.dropdown.select(e),n.preventDefault()):this.dropdown.hide()};this.handleEsc=n=>{this.dropdown.isShown()&&(this.dropdown.hide(),n.preventDefault())};this.handleChange=n=>{n.detail.beforeCursor!=null?this.trigger(n.detail.beforeCursor):this.dropdown.hide()};this.handleSelect=n=>{this.emit("select",n),n.defaultPrevented||this.editor.applySearchResult(n.detail.searchResult)};this.handleResize=()=>{this.dropdown.isShown()&&this.dropdown.setOffset(this.editor.getCursorOffset())};this.completer=new yc(e),this.dropdown=ma.create((r==null?void 0:r.dropdown)||{}),this.startListening()}destroy(n=!0){return this.completer.destroy(),this.dropdown.destroy(),n&&this.editor.destroy(),this.stopListening(),this}isShown(){return this.dropdown.isShown()}hide(){return this.dropdown.hide(),this}trigger(n){return this.isQueryInFlight?this.nextPendingQuery=n:(this.isQueryInFlight=!0,this.nextPendingQuery=null,this.completer.run(n)),this}startListening(){var n;this.editor.on("move",this.handleMove).on("enter",this.handleEnter).on("esc",this.handleEsc).on("change",this.handleChange),this.dropdown.on("select",this.handleSelect);for(let e of BS)this.dropdown.on(e,r=>this.emit(e,r));this.completer.on("hit",this.handleHit),(n=this.dropdown.el.ownerDocument.defaultView)==null||n.addEventListener("resize",this.handleResize)}stopListening(){var n;(n=this.dropdown.el.ownerDocument.defaultView)==null||n.removeEventListener("resize",this.handleResize),this.completer.removeAllListeners(),this.dropdown.removeAllListeners(),this.editor.removeListener("move",this.handleMove).removeListener("enter",this.handleEnter).removeListener("esc",this.handleEsc).removeListener("change",this.handleChange)}};var im=me(Zp());function em(t,n,e){let r=t.value,i=n+(e||""),a=document.activeElement,o=0,s=0;for(;o<r.length&&o<i.length&&r[o]===i[o];)o++;for(;r.length-s-1>=0&&i.length-s-1>=0&&r[r.length-s-1]===i[i.length-s-1];)s++;o=Math.min(o,Math.min(r.length,i.length)-s),t.setSelectionRange(o,r.length-s);let u=i.substring(o,i.length-s);if(t.focus(),!document.execCommand("insertText",!1,u)){t.value=i;let l=document.createEvent("Event");l.initEvent("input",!0,!0),t.dispatchEvent(l)}return t.setSelectionRange(n.length,n.length),a.focus(),t}var tm=t=>{let n=t.getBoundingClientRect(),e=t.ownerDocument;if(e==null)throw new Error("Given element does not belong to document");let{defaultView:r,documentElement:i}=e;if(r==null)throw new Error("Given element does not belong to window");let a={top:n.top+r.pageYOffset,left:n.left+r.pageXOffset};return i&&(a.top-=i.clientTop,a.left-=i.clientLeft),a};var KS="0".charCodeAt(0),$S="9".charCodeAt(0),nm=t=>KS<=t&&t<=$S,rm=t=>{let n=getComputedStyle(t),e=n.lineHeight;if(nm(e.charCodeAt(0))){let r=parseFloat(e);return nm(e.charCodeAt(e.length-1))?r*parseFloat(n.fontSize):r}return US(t.nodeName,n)},US=(t,n)=>{let e=document.body;if(!e)return 0;let r=document.createElement(t);r.innerHTML=" ",Object.assign(r.style,{fontSize:n.fontSize,fontFamily:n.fontFamily,padding:"0"}),e.appendChild(r),r instanceof HTMLTextAreaElement&&(r.rows=1);let i=r.offsetHeight;return e.removeChild(r),i};var es=class extends bc{constructor(n){super();this.el=n;this.onInput=()=>{this.emitChangeEvent()};this.onKeydown=n=>{let e=this.getCode(n),r;e==="UP"||e==="DOWN"?r=this.emitMoveEvent(e):e==="ENTER"?r=this.emitEnterEvent():e==="ESC"&&(r=this.emitEscEvent()),r&&r.defaultPrevented&&n.preventDefault()};this.startListening()}destroy(){return super.destroy(),this.stopListening(),this}applySearchResult(n){let e=this.getBeforeCursor();if(e!=null){let r=n.replace(e,this.getAfterCursor());this.el.focus(),Array.isArray(r)&&(em(this.el,r[0],r[1]),this.el&&this.el.dispatchEvent(Rt("input")))}}getCursorOffset(){let n=tm(this.el),e=this.getElScroll(),r=this.getCursorPosition(),i=rm(this.el),a=n.top-e.top+r.top+i,o=n.left-e.left+r.left,s=this.el.getBoundingClientRect().top;if(this.el.dir!=="rtl")return{top:a,left:o,lineHeight:i,clientTop:s};{let u=document.documentElement?document.documentElement.clientWidth-o:0;return{top:a,right:u,lineHeight:i,clientTop:s}}}getBeforeCursor(){return this.el.selectionStart!==this.el.selectionEnd?null:this.el.value.slice(0,this.el.selectionEnd)}getAfterCursor(){return this.el.value.slice(this.el.selectionEnd)}getElScroll(){return{top:this.el.scrollTop,left:this.el.scrollLeft}}getCursorPosition(){return(0,im.default)(this.el,this.el.selectionEnd)}startListening(){this.el.addEventListener("input",this.onInput),this.el.addEventListener("keydown",this.onKeydown)}stopListening(){this.el.removeEventListener("input",this.onInput),this.el.removeEventListener("keydown",this.onKeydown)}};function zS({inputRef:t,isAutocompleteVisibleRef:n,obsidianContext:e,excludeDatePicker:r}){let{stateManager:i,filePath:a,view:o}=e,s=null,u=null,l=i.getSetting("date-trigger"),c=new RegExp(`(?:^|\\s)${Fn(l)}$`),d=Object.keys(i.app.metadataCache.getTags()).sort(),f=new gn(d),h=i.app.metadataCache.getLinkSuggestions().filter(N=>!!N.file),p=new gn(h,{keys:["file.basename","alias"]}),g=o.app.vault.getConfig("autoPairBrackets"),w=[jp(d,f),pc(a,i,g,!0),pc(a,i,g,!1),hc(a,i,g,!0),hc(a,i,g,!1),fc(h,p,a,i,g,!0),fc(h,p,a,i,g,!1)];r||w.push(Kp(i));let S=new es(t.current),T=new wc(S,w,{dropdown:{maxCount:96,className:`${$("autocomplete")} ${$("ignore-click-outside")}`,rotate:!0,item:{className:`${$("autocomplete-item")} ${$("ignore-click-outside")}`,activeClassName:`${$("autocomplete-item-active")} ${$("ignore-click-outside")}`}}}),k=()=>{T.isShown()||(n.current=!1),u.destroy(),s.remove(),setTimeout(()=>s=null)};T.on("show",()=>{n.current=!0}),T.on("hidden",()=>{n.current=!1});let D;return r||(D=N=>{if(T.isShown&&["#","^"].contains(N.key)){let O=T.dropdown.getActiveItem(),B=O==null?void 0:O.searchResult;if(B&&B.strategy.props.id.startsWith("link")){N.preventDefault(),S.applySearchResult(B),_t(t.current,N.key==="^"?"#^":"#");return}}if(!s)return;if(N.key==="Enter"){N.preventDefault();let O=u.selectedDates;return O.length?Qo(O[0],t,i):Qo(new Date,t,i),k()}if(N.key==="Escape")return N.preventDefault(),k();let C=(0,am.moment)(u.selectedDates[0]||new Date);if(N.key==="ArrowRight"){N.preventDefault(),C.weekday()===6?u.setDate(Up(C).toDate(),!1):u.setDate(C.add(1,"day").toDate(),!1);return}if(N.key==="ArrowLeft"){N.preventDefault(),C.weekday()===0?u.setDate($p(C).toDate(),!1):u.setDate(C.subtract(1,"day").toDate(),!1);return}if(N.key==="ArrowUp"){N.preventDefault(),u.setDate(C.subtract(1,"week").toDate(),!1);return}if(N.key==="ArrowDown"){N.preventDefault(),u.setDate(C.add(1,"week").toDate(),!1);return}},t.current.addEventListener("keydown",D),S.on("change",N=>{let C=N.detail.beforeCursor;if(C&&c.test(C)){let O=S.getCursorOffset();s?(s.style.left=`${O.left||0}px`,s.style.top=`${O.top||0}px`,dc(O,s)):s=document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},B=>{B.style.left=`${O.left||0}px`,B.style.top=`${O.top||0}px`,Bp({div:B,inputRef:t,stateManager:i,cb:z=>{u=z,n.current=!0,dc(O,s)}})})}else s&&k()})),()=>{!r&&t.current&&t.current.removeEventListener("keydown",D),s&&k(),T.destroy(),S.destroy()}}function om({isInputVisible:t,onEnter:n,onEscape:e,onKeyDown:r,excludeDatePicker:i}){let a=v.useContext(We),o=v.useRef(!1),s=v.useRef(),{oncompositionstart:u,oncompositionend:l,getShouldIMEBlockAction:c}=Ga();return v.useEffect(()=>{let d=s.current;if(t&&d)return d.focus(),d.selectionStart=d.selectionEnd=d.value.length,zS({inputRef:s,isAutocompleteVisibleRef:o,obsidianContext:a,excludeDatePicker:i})},[t]),{ref:s,oncompositionstart:u,oncompositionend:l,onKeyDownCapture:d=>{c()||o.current||r(d)||(d.key==="Enter"?n&&n(d):d.key==="Escape"&&e&&e(d))}}}var sm=/^[*_]{2}(.+)[*_]{2}$/;function VS(t){return t.replace(sm,"$1")}var lm=/^[*_]{1}(.+)[*_]{1}$/;function jS(t){return t.replace(lm,"$1")}var cm=/^`{1}(.+)`{1}$/;function WS(t){return t.replace(cm,"$1")}var um=/^={2}(.+)={2}$/;function qS(t){return t.replace(um,"$1")}var dm=/^~{2}(.+)~{2}$/;function YS(t){return t.replace(dm,"$1")}var JS=/^(?:>.+?(?:[\r\n]|$))+$/;function GS(t){return t.split(`
|
||
`).map(e=>e[0]===">"?e:`> ${e}`).join(`
|
||
`)}function QS(t){return t.split(`
|
||
`).map(e=>e[0]!==">"?e:e.replace(/^>+\s*/,"")).join(`
|
||
`)}var ga=/^(?:\s*\d+[.)]\s+.+?(?:[\r\n]|$))+$/,Ec=/^(?:\s*\d+[.)]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,Sc=/^(?:\s*\d+[.)]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function XS(t){return t.match(/^\s*/)[0].length}function ZS(t){return parseInt(t.match(/^\s*(\d+)/)[1],10)}function ex(t){let n=[0],e=0;return t.split(`
|
||
`).map(r=>{let i=XS(r);if(i>e?n.push(0):i<e&&n.pop(),e=i,ga.test(r)){let a=ZS(r);return n[n.length-1]=a,r}return n[n.length-1]=n[n.length-1]+1,r.replace(/^(\s*)/,`$1${n[n.length-1]}. `)}).join(`
|
||
`)}function tx(t){return t.split(`
|
||
`).map(n=>ga.test(n)?n.replace(/^(\s*)\d+[.)]\s+/,"$1"):n).join(`
|
||
`)}var va=/^(?:\s*[-*+]\s+.+?(?:[\r\n]|$))+$/,xc=/^(?:\s*[-*+]\s+\[\s+\]+.+?(?:[\r\n]|$))+$/,kc=/^(?:\s*[-*+]\s+\[[^\]\s]+\]+.+?(?:[\r\n]|$))+$/;function fm(t){return t.split(`
|
||
`).map(e=>va.test(e)?e:e.replace(/^(\s*)/,"$1- ")).join(`
|
||
`)}function nx(t){return t.split(`
|
||
`).map(n=>xc.test(n)||kc.test(n)?n:n.replace(/^(\s*[-*+]\s+)/,"$1[ ] ")).join(`
|
||
`)}function rx(t){return t.split(`
|
||
`).map(n=>Ec.test(n)||Sc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)/,"$1[ ] ")).join(`
|
||
`)}function ix(t){return t.split(`
|
||
`).map(n=>xc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")).join(`
|
||
`)}function ax(t){return t.split(`
|
||
`).map(n=>Ec.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[[^\]]{1}\]/,"$1[ ]")).join(`
|
||
`)}function ox(t){return t.split(`
|
||
`).map(n=>kc.test(n)?n:n.replace(/^(\s*[-*+]\s+)\[\s\]/,"$1[x]")).join(`
|
||
`)}function sx(t){return t.split(`
|
||
`).map(n=>Sc.test(n)?n:n.replace(/^(\s*\d+[.)]\s+)\[\s\]/,"$1[x]")).join(`
|
||
`)}function lx(t){return t.split(`
|
||
`).map(e=>va.test(e)?e.replace(/^(\s*)[-+*]\s+/,"$1"):e).join(`
|
||
`)}var hm={"editor:toggle-bold":t=>{yi(t,sm,VS,"**")},"editor:toggle-code":t=>{yi(t,cm,WS,"`")},"editor:toggle-italics":t=>{yi(t,lm,jS,"*")},"editor:toggle-highlight":t=>{yi(t,um,qS,"==")},"editor:toggle-strikethrough":t=>{yi(t,dm,YS,"~~")},"editor:toggle-blockquote":t=>{jo(t,JS,GS,QS)},"editor:toggle-bullet-list":t=>{jo(t,va,fm,lx)},"editor:toggle-numbered-list":t=>{jo(t,ga,ex,tx)},"editor:toggle-checklist-status":t=>{let n=Kn(t),e=vi({text:n.text,selection:n.selection}),r=Nt(t,e),i=r.selectedText,a=va.test(i),o=ga.test(i);!a&&!o?i=fm(i):a?xc.test(i)?i=ox(i):kc.test(i)?i=ix(i):i=nx(i):Ec.test(i)?i=sx(i):Sc.test(i)?i=ax(i):i=rx(i);let s=_t(t,i);Nt(t,{start:r.selection.start,end:s.selection.end})}},_c={"(":t=>ln(t,"(",")",!1),"[":t=>ln(t,"[","]",!1,!0),"{":t=>ln(t,"{","}",!1),"'":t=>ln(t,"'","'",!1),'"':t=>ln(t,'"','"',!1)},Tc={"*":t=>ln(t,"*","*",!1),_:t=>ln(t,"_","_",!1),"`":t=>ln(t,"`","`",!1),"=":t=>ln(t,"=","=",!0),"~":t=>ln(t,"~","~",!0),$:t=>ln(t,"$","$",!0),"%":t=>ln(t,"%","%",!0)},cx={"(":")","[":"]","{":"}","'":"'",'"':'"',"*":"*",_:"_","`":"`","=":"=","~":"~",$:"$","%":"%"};function pm(t,n){let e=Kn(t);if(e.selection.end!==e.selection.start||e.selection.end===e.text.length)return!1;let r=e.text[e.selection.end-1],i=e.text[e.selection.end];if(n[r]&&i===cx[r])return Nt(t,{start:e.selection.end,end:e.selection.end+1}),_t(t,""),!0}function mm(t){return pm(t,_c)}function gm(t){return pm(t,Tc)}function ux(t,n,e){let r=n?" ":" ".repeat(e);return t.split(`
|
||
`).map(i=>r+i).join(`
|
||
`)}function dx(t,n,e){let r=n?"\\t":" ".repeat(e),i=new RegExp(`^${r}`);return t.split(`
|
||
`).map(a=>i.test(a)?a.replace(i,""):a).join(`
|
||
`)}function vm(t,n,e,r){let i=Kn(t);if(n){let l=vi(i),c=Nt(t,l);if(_t(t,dx(c.selectedText,e,r)),i.selection.start===i.selection.end){let d=e?1:r;Nt(t,{start:i.selection.start-d,end:i.selection.end-d})}return!0}let a=vi(i),o=Nt(t,a),u=ux(o.selectedText,e,r).replace(/^(\s*)(\d+)([.)]\s)/,(l,c,d,f)=>`${c}1${f}`);return _t(t,u),!0}function ym(t){let n=Kn(t);if(n.selection.start!==n.selection.end)return!1;let e=vi(n),r=t.value.slice(e.start,n.selection.end),i=t.value.slice(e.start,e.end);if(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Nt(t,{start:e.start-1,end:e.end}),_t(t,`
|
||
`),!0;if(/^(\s*\d[.)]\s+(?:\[[^\]]\]\s*)?)$/.test(i))return Nt(t,{start:e.start-1,end:e.end}),_t(t,`
|
||
`),!0;if(va.test(r)){let a=r.match(/^(\s*[-*+]\s+(?:\[[^\]]\]\s*)?)/)[1];return fa(t,`
|
||
${a.replace(/^(\s*[-*+]\s+)\[[^\]]\]/,"$1[ ]")}`),!0}if(ga.test(r)){let s=r.match(/^(\s*\d+[.)]\s+(?:\[[^\]]\]\s*)?)/)[1].replace(/^(\s*\d+[.)]\s+)\[[^\]]\]/,"$1[ ]").replace(/^(\s*)(\d+)/,(u,l,c)=>`${l}${parseInt(c)+1}`);return fa(t,`
|
||
${s}`),!0}return!1}var bm={};var wm={};var Em={};var Sm={"Open as kanban board":"\xD6ffne als Kanban-Board","Create new board":"Erstelle ein neues Board","Archive completed cards in active board":"Archiviere fertiggestellte Karten im aktiven Board","Error: current file is not a Kanban board":"Fehler: Momentan ge\xF6ffnete Datei ist kein Kanban-Board","Convert empty note to Kanban":"Konvertiere leere Notiz in ein Kanban-Board","Error: cannot create Kanban, the current note is not empty":"Fehler: Kanban konnte nicht erstellt werden, momentan ge\xF6ffnete Datei ist nicht leer","New kanban board":"Neues Kanban-Board","Untitled Kanban":"Unbenanntes Kanban","Toggle between Kanban and markdown mode":"Wechsle zwischen Kanban und Markdown Modus","Open as markdown":"\xD6ffne als Markdown","Open board settings":"\xD6ffne Board-Einstellungen","Archive completed cards":"Archiviere fertiggestellte Karten","Something went wrong":"Etwas ist schief gelaufen","You may wish to open as markdown and inspect or edit the file.":"Du kannst die Datei im Markdown Modus \xF6ffnen und \xFCberpr\xFCfen oder bearbeiten.","Are you sure you want to archive all completed cards on this board?":"Bist du dir sicher, dass du alle fertiggestellten Karten des Boards archivieren m\xF6chtest?",Complete:"Fertiggestellt",Archive:"Archiv","Invalid Kanban file: problems parsing frontmatter":"Fehlerhafte Kanban Datei: Probleme beim Parsen des Frontmatters","I don't know how to interpret this line:":"Ich wei\xDF nicht, wie ich diese Zeile interpretieren soll:",Untitled:"Unbenannt","Note: No template plugins are currently enabled.":"Beachte: Keine Template-Plugins sind derzeit aktiviert.",default:"Standard","Search...":"Suche...","These settings will take precedence over the default Kanban board settings.":"Diese Einstellung wird Vorrang vor der standard Kanban-Board Einstellung haben. ","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Stelle standard Kanban-Board Einstellungen ein. Einstellungen k\xF6nnen auf einer Board-f\xFCr-Board Basis \xFCberschrieben werden.","Note template":"Notiz Vorlage","This template will be used when creating new notes from Kanban cards.":"Diese Vorlage wird beim Erstellen neuer Notizen aus Kanban-Karten verwendet.","No template":"Keine Vorlage","Note folder":"Notiz Ordner","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.","Default folder":"Standard Ordner","Lane width":"Schienen Breite","Enter a number to set the lane width in pixels.":"Gebe ein Zahl ein, um die Schienen Breite in Pixeln einzustellen.","Maximum number of archived cards":"Maximale Anzahl archivierter Karten.","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archivierte Karten k\xF6nnen im Markdown-Modus betrachtet werden. Diese Einstellung wird alte Karten l\xF6schen, sobald das Limit erreicht wird. Eine Einstellung von -1 setzt das Archiv auf eine unendliche Gr\xF6\xDFe.","Display card checkbox":"Zeige Karten Checkbox","When toggled, a checkbox will be displayed with each card":"Wenn aktiviert, wird eine Checkbox mit jeder Karte angezeigt.","Reset to default":"Zur\xFCcksetzen","Date & Time":"Datum & Uhrzeit","Date trigger":"Datums Ausl\xF6ser","When this is typed, it will trigger the date selector":"Wenn dies eingegeben wird, dann wird die Datumsauswahl angezeigt","Time trigger":"Uhrzeit Ausl\xF6ser","When this is typed, it will trigger the time selector":"Wenn dies eingegeben wird, dann wird die Uhrzeitsauswahl angezeigt","Date format":"Format des Datums","This format will be used when saving dates in markdown.":"Dieses Format wird verwendet, wenn ein Datum in Markdown gespeichert wird.","For more syntax, refer to":"F\xFCr mehr Syntax Informationen siehe","format reference":"Formatvorlage","Your current syntax looks like this":"Dein momentanes Format sieht so aus","Time format":"Format der Uhrzeit","Date display format":"Format der Datums Anzeige","This format will be used when displaying dates in Kanban cards.":"Dieses Format wird verwendet, wenn ein Datum in einer Kanban-Karte angezeigt wird.","Show relative date":"Zeige relatives Datum","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Wenn aktiviert, wird die Zeitspanne zwischen Heute und dem Datum angezeigt. Zum Beispiel: 'In 3 Tagen', 'Vor einem Monat'","Hide card display dates":"Verstecke Karten Datum","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Wenn aktiviert, werden formatierte Daten nicht auf der Karte angezeigt. Relative Daten werden dennoch angezeigt, solange sie aktiviert sind.","Hide dates in card titles":"Verstecke Daten im Titel der Karte","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Wenn aktiviert, werden Daten nicht im Titel der Karte angezeigt. Dies verhindert, dass Daten im Titel neu erstellter Notizen vorhanden sind.","Link dates to daily notes":"Verbinde Daten zu Daily Notes","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Wenn aktiviert, werden Daten mit Daily Notes verbunden. Zum Beispiel [[26.4.2021]]","Add date and time to archived cards":"F\xFCge Datum und Uhrzeit zu archivierten Notizen hinzu","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Wenn aktiviert, wird das momentane Datum und die momentane Zeit am Anfang einer Karte hinzugef\xFCgt, wenn sie archiviert wird. Zum Beispiel: - [ ] 14.05.2021 10:00 Mein Karten Titel","Archive date/time separator":"Datum/Uhrzeit Trenner f\xFCr das Archiv","This will be used to separate the archived date/time from the title":"Dies wird verwendet, um das Datum und die Uhrzeit archivierter Karten vom Titel zu trennen","Archive date/time format":"Format des Datums und der Uhrzeit f\xFCr das Archiv","Kanban Plugin":"Kanban Erweiterung","New line trigger":"Taste f\xFCr neue Zeile","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"W\xE4hle aus ob Enter oder Umschalttaste+Enter eine neue Zeile erstellen soll. Das Gegenteil kannst du verwenden um die Karte zu erstellen oder das bearbeiten der Karte oder Schiene zu beenden.","Shift + Enter":"Umschalttaste + Enter",Enter:"Enter","Prepend / append new cards":"Neue Karten voranf\xFCgen / anh\xE4ngen","This setting controls whether new cards are added to the beginning or end of the list.":"Diese Einstellung gibt an ob neue Karten am Anfang oder am Ende einer Liste hinzugef\xFCgt werden.",Prepend:"Voranf\xFCgen",Append:"Anh\xE4ngen","Hide tags in card titles":"Ausblenden von Tags in Kartentiteln","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"Ist diese Einstellung an, so werden Tags im Kartentitel nicht angezeigt. Dadurch wird verhindert, dass Tags beim Erstellen neuer Notizen in den Titel aufgenommen werden.","Hide card display tags":"Ausblenden von Kartenanzeige-Tags","When toggled, tags will not be displayed below the card title.":"Ist diese Einstellung an, werden Tags nicht unter dem Kartentitel angezeigt.","Linked Page Metadata":"Metadaten f\xFCr verkn\xFCpfte (verlinkte) Notizen","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Zeigen Sie Metadaten f\xFCr die erste Notiz an, die innerhalb einer Karte verkn\xFCpft ist. Geben Sie an, welche Metadatenschl\xFCssel unten angezeigt werden sollen. Ein optionales Label kann hinzugef\xFCgt werden, es kann aber auch vollst\xE4ndig ausgeblendet werden.","Metadata key":"Metadatenschl\xFCssel","Display label":"Anzeigelabel","Hide label":"Label ausblenden","Drag to rearrange":"Zum Neuanordnen ziehen",Delete:"L\xF6schen","Add key":"Schl\xFCssel hinzuf\xFCgen","Field contains markdown":"Feld beinhaltet Markdown","More options":"Mehr optionen",Cancel:"Abbrechen",today:"heute",yesterday:"gestern",tomorrow:"morgen","Change date":"Ver\xE4ndere Datum","Change time":"Ver\xE4ndere Uhrzeit","Card title...":"Karten Titel...","Add card":"Karte hinzuf\xFCgen","Add a card":"F\xFCge eine Karte hinzu","Edit card":"Karte editieren","New note from card":"Neue Notiz aus Karte erstellen","Archive card":"Karte archivieren","Delete card":"Karte l\xF6schen","Edit date":"Datum editieren","Add date":"Datum hinzuf\xFCgen","Remove date":"Datum entfernen","Edit time":"Karte editieren","Add time":"Uhrzeit hinzuf\xFCgen","Remove time":"Uhrzeit entfernen","Duplicate card":"Karte duplizieren","Enter list title...":"Listen Titel eingeben..","Mark cards in this list as complete":"Markiere Karten in dieser Liste als fertiggestellt","Add list":"Liste hinzuf\xFCgen","Add a list":"F\xFCge eine Liste hinzu","Move list":"Liste verschieben",Close:"Schlie\xDFen","Are you sure you want to delete this list and all its cards?":"Bist du dir sicher, dass du diese Liste und alle ihre Karten l\xF6schen m\xF6chtest?","Yes, delete list":"Ja, l\xF6sche diese Liste","Are you sure you want to archive this list and all its cards?":"Bist du dir sicher, dass du diese Liste und alle ihre Karten archivieren m\xF6chtest?","Yes, archive list":"Ja, archiviere diese Liste","Are you sure you want to archive all cards in this list?":"Bist du dir sicher, dass du alle Karten in dieser Liste archivieren m\xF6chtest?","Yes, archive cards":"Ja, archiviere Karten","Edit list":"Editiere Liste","Archive cards":"Archiviere Karten","Archive list":"Archiviere List","Delete list":"L\xF6sche Liste"};var Mc={"Open as kanban board":"Open as kanban board","Create new board":"Create new board","Archive completed cards in active board":"Archive completed cards in active board","Error: current file is not a Kanban board":"Error: current file is not a Kanban board","Convert empty note to Kanban":"Convert empty note to Kanban","Error: cannot create Kanban, the current note is not empty":"Error: cannot create Kanban, the current note is not empty","New kanban board":"New kanban board","Untitled Kanban":"Untitled Kanban","Toggle between Kanban and markdown mode":"Toggle between Kanban and markdown mode","Open as markdown":"Open as markdown","Open board settings":"Open board settings","Archive completed cards":"Archive completed cards","Something went wrong":"Something went wrong","You may wish to open as markdown and inspect or edit the file.":"You may wish to open as markdown and inspect or edit the file.","Are you sure you want to archive all completed cards on this board?":"Are you sure you want to archive all completed cards on this board?",Complete:"Complete",Archive:"Archive","Invalid Kanban file: problems parsing frontmatter":"Invalid Kanban file: problems parsing frontmatter","I don't know how to interpret this line:":"I don't know how to interpret this line:",Untitled:"Untitled","Note: No template plugins are currently enabled.":"Note: No template plugins are currently enabled.",default:"default","Search...":"Search...","New line trigger":"New line trigger","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"Prepend / append new cards","This setting controls whether new cards are added to the beginning or end of the list.":"This setting controls whether new cards are added to the beginning or end of the list.",Prepend:"Prepend","Prepend (compact)":"Prepend (compact)",Append:"Append","These settings will take precedence over the default Kanban board settings.":"These settings will take precedence over the default Kanban board settings.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.","Note template":"Note template","This template will be used when creating new notes from Kanban cards.":"This template will be used when creating new notes from Kanban cards.","No template":"No template","Note folder":"Note folder","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.","Default folder":"Default folder","Lane width":"Lane width","Enter a number to set the lane width in pixels.":"Enter a number to set the lane width in pixels.","Maximum number of archived cards":"Maximum number of archived cards","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.","Display card checkbox":"Display card checkbox","When toggled, a checkbox will be displayed with each card":"When toggled, a checkbox will be displayed with each card","Reset to default":"Reset to default","Date & Time":"Date & Time","Date trigger":"Date trigger","When this is typed, it will trigger the date selector":"When this is typed, it will trigger the date selector","Time trigger":"Time trigger","When this is typed, it will trigger the time selector":"When this is typed, it will trigger the time selector","Date format":"Date format","This format will be used when saving dates in markdown.":"This format will be used when saving dates in markdown.","For more syntax, refer to":"For more syntax, refer to","format reference":"format reference","Your current syntax looks like this":"Your current syntax looks like this","Time format":"Time format","Date display format":"Date display format","This format will be used when displaying dates in Kanban cards.":"This format will be used when displaying dates in Kanban cards.","Show relative date":"Show relative date","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'","Hide card display dates":"Hide card display dates","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.","Hide dates in card titles":"Hide dates in card titles","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.","Link dates to daily notes":"Link dates to daily notes","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"When toggled, dates will link to daily notes. Eg. [[2021-04-26]]","Add date and time to archived cards":"Add date and time to archived cards","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title","Archive date/time separator":"Archive date/time separator","This will be used to separate the archived date/time from the title":"This will be used to separate the archived date/time from the title","Archive date/time format":"Archive date/time format","Kanban Plugin":"Kanban Plugin","Hide tags in card titles":"Hide tags in card titles","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.","Hide card display tags":"Hide card display tags","When toggled, tags will not be displayed below the card title.":"When toggled, tags will not be displayed below the card title.","Linked Page Metadata":"Linked Page Metadata","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.","Board Header Buttons":"Board Header Buttons","Calendar: first day of week":"Calendar: first day of week","Override which day is used as the start of the week":"Override which day is used as the start of the week",Sunday:"Sunday",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday","Metadata key":"Metadata key","Display label":"Display label","Hide label":"Hide label","Drag to rearrange":"Drag to rearrange",Delete:"Delete","Add key":"Add key","Field contains markdown":"Field contains markdown","More options":"More options",Cancel:"Cancel",today:"today",yesterday:"yesterday",tomorrow:"tomorrow","Change date":"Change date","Change time":"Change time","Card title...":"Card title...","Add card":"Add card","Add a card":"Add a card","Edit card":"Edit card","New note from card":"New note from card","Archive card":"Archive card","Delete card":"Delete card","Edit date":"Edit date","Add date":"Add date","Remove date":"Remove date","Edit time":"Edit time","Add time":"Add time","Remove time":"Remove time","Duplicate card":"Duplicate card","Split card":"Split card","Copy link to card":"Copy link to card","Insert card before":"Insert card before","Insert card after":"Insert card after","Enter list title...":"Enter list title...","Mark cards in this list as complete":"Mark cards in this list as complete","Add list":"Add list","Add a list":"Add a list","Move list":"Move list",Close:"Close","Are you sure you want to delete this list and all its cards?":"Are you sure you want to delete this list and all its cards?","Yes, delete list":"Yes, delete list","Are you sure you want to archive this list and all its cards?":"Are you sure you want to archive this list and all its cards?","Yes, archive list":"Yes, archive list","Are you sure you want to archive all cards in this list?":"Are you sure you want to archive all cards in this list?","Yes, archive cards":"Yes, archive cards","Edit list":"Edit list","Archive cards":"Archive cards","Archive list":"Archive list","Delete list":"Delete list","Insert list before":"Insert list before","Insert list after":"Insert list after","Unable to find":"Unable to find","Open in default app":"Open in default app",Submit:"Submit"};var xm={};var km={};var _m={};var Tm={};var Mm={"Open as kanban board":"Apri come bacheca Kanban","Create new board":"Crea nuova bacheca","Archive completed cards in active board":"Archivia schede completate nella bacheca attiva","Error: current file is not a Kanban board":"Errore: il file corrente non \xE8 una bacheca Kanban","Convert empty note to Kanban":"Converti nota vuota in Kanban","Error: cannot create Kanban, the current note is not empty":"Errore: Impossibile creare Kanban, la nota corrente non \xE8 vuota","New kanban board":"Nuova bacheca Kanban","Untitled Kanban":"Kanban senza titolo","Open as markdown":"Apri come markdown","Open board settings":"Apri impostazioni bacheca","Archive completed cards":"Archivia schede completate",Complete:"Completato",Archive:"Archivio","Note: No template plugins are currently enabled.":"Nota: Nessun plugin dei modelli attualmente abilitato.",default:"predefinito","Search...":"Ricerca...","These settings will take precedence over the default Kanban board settings.":"Queste impostazioni avranno la precedenza sulle impostazioni predefinite della bacheca Kanban.","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Impostazioni predefinite della bacheca Kanban. Le impostazioni possono essere sovrascritte per ogni bacheca.","Note template":"Nota modello","This template will be used when creating new notes from Kanban cards.":"Questo modello verr\xE0 utilizzato durante la creazione di nuove note dalle schede Kanban.","No template":"Nessun modello","Note folder":"Cartella delle note","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Le note create dalle schede Kanban verranno inserite in questa cartella. Se vuota, verranno inserite nella posizione predefinita del vault.","Default folder":"Cartella predefinita","Lane width":"Larghezza colonna","Enter a number to set the lane width in pixels.":"Inserire un numero per impostare la larghezza della colonna in pixel.","Maximum number of archived cards":"Numero massimo di schede archiviate","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Le schede archiviate possono essere visualizzate in modalit\xE0 Markdown. Le vecchie schede verranno rimosse una volta raggiunto il limite. Impostando il valore -1 il numero di schede archiviate sar\xE0 illimitato.","Display card checkbox":"Mostra casella di controllo","When toggled, a checkbox will be displayed with each card":"Se attiva, verr\xE0 visualizzata una casella di controllo per ogni scheda","Reset to default":"Ripristina predefiniti","Date & Time":"Data e ora","Date trigger":"Selettore data","When this is typed, it will trigger the date selector":"Digitando questo, verr\xE0 attivato il selettore della data","Time trigger":"Selettore ora","When this is typed, it will trigger the time selector":"Digitando questo, verr\xE0 attivato il selettore dell'ora","Date format":"Formato data","This format will be used when saving dates in markdown.":"Formato utilizzato per il salvataggio delle date in Markdown.","For more syntax, refer to":"Per maggiori informazioni, vedere","format reference":"formato di riferimento","Your current syntax looks like this":"Formato corrente","Time format":"Formato ora","Date display format":"Formato visualizzazione data","This format will be used when displaying dates in Kanban cards.":"Formato utilizzato per visualizzare le date nelle schede Kanban.","Show relative date":"Mostra data relativa","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Se attiva, le schede indicheranno la distanza tra la data odierna e la data della scheda. eg. 'Tra 3 giorni', 'Un mese fa'","Hide card display dates":"Hide card display dates","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Se attiva, la data non verr\xE0 mostrata sulla scheda. Le date relative verranno comunque mostrate se sono state abilitate.","Hide dates in card titles":"Nascondi date nei titoli delle schede","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Se attiva, la data non verr\xE0 mostrata nei titoli delle schede. Questo impedisce alle date di essere incluse quando vengono create nuove note.","Link dates to daily notes":"Collega date alle Note del giorno","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Se attiva, le date verranno collegate alle Note del giorno. Eg. [[2021-04-26]]","Add date and time to archived cards":"Aggiungi data e ora alle schede archiviate","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Se attiva, la data e l'ora corrente verranno aggiunte all'inizio della scheda quando viene archiviata. Eg. - [ ] 2021-05-14 10:00am Mia scheda","Archive date/time separator":"Separatore data/ora dell'archivio","This will be used to separate the archived date/time from the title":"Verr\xE0 usato per separare data e ora dell'archiviazione dal titolo","Archive date/time format":"Formato data/ora dell'archivio","Kanban Plugin":"Plugin Kanban","More options":"Altre opzioni",Cancel:"Annulla",today:"oggi",yesterday:"ieri",tomorrow:"domani","Change date":"Modifica data","Change time":"Modifica ora","Card title...":"Titolo elemento...","Add card":"Aggiungi elemento","Add a card":"Aggiungi un'altra scheda","Edit card":"Modifica scheda","New note from card":"Nuova nota da scheda","Archive card":"Archivia scheda","Delete card":"Elimina scheda","Edit date":"Modifica data","Add date":"Aggiungi data","Remove date":"Rimuovi data","Edit time":"Modifica ora","Add time":"Aggiungi ora","Remove time":"Rimuovi ora","Enter list title...":"Inserisci titolo lista...","Mark cards in this list as complete":"Segna elementi della lista come completati","Add list":"Aggiungi lista","Add a list":"Aggiungi un'altra lista","Move list":"Sposta lista",Close:"Chiudi","Are you sure you want to delete this list and all its cards?":"Cancellare questa lista e tutte le sue schede?","Yes, delete list":"Cancella lista","Are you sure you want to archive this list and all its cards?":"Archiviare questa lista e tutte le sue schede?","Yes, archive list":"Archivia lista","Are you sure you want to archive all cards in this list?":"Archiviare tutte le schede in questa lista?","Yes, archive cards":"Archivia schede","Edit list":"Modifica lista","Archive cards":"Archivia schede","Archive list":"Archivia lista","Delete list":"Cancella lista"};var Cm={"Open as kanban board":"\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3068\u3057\u3066\u958B\u304F","Create new board":"\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3092\u65B0\u898F\u4F5C\u6210","Archive completed cards in active board":"\u30A2\u30AF\u30C6\u30A3\u30D6\u30DC\u30FC\u30C9\u306E\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Error: current file is not a Kanban board":"\u30A8\u30E9\u30FC: \u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u3067\u306F\u3042\u308A\u307E\u305B\u3093","Convert empty note to Kanban":"\u7A7A\u306E\u30CE\u30FC\u30C8\u3092\u30AB\u30F3\u30D0\u30F3\u306B\u5909\u63DB","Error: cannot create Kanban, the current note is not empty":"\u30A8\u30E9\u30FC: \u73FE\u5728\u958B\u3044\u3066\u3044\u308B\u30CE\u30FC\u30C8\u306F\u7A7A\u3067\u3042\u308A\u3001\u30AB\u30F3\u30D0\u30F3\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093","New kanban board":"\u65B0\u898F\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9","Untitled Kanban":"\u7121\u984C\u306E\u30AB\u30F3\u30D0\u30F3","Toggle between Kanban and markdown mode":"\u30AB\u30F3\u30D0\u30F3\u3068\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u306E\u30E2\u30FC\u30C9\u3092\u5207\u308A\u66FF\u3048\u308B","Open as markdown":"\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3068\u3057\u3066\u958B\u304F","Open board settings":"\u30DC\u30FC\u30C9\u8A2D\u5B9A\u3092\u958B\u304F","Archive completed cards":"\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Something went wrong":"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","You may wish to open as markdown and inspect or edit the file.":"\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3068\u3057\u3066\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u3044\u3066\u8ABF\u67FB\u3059\u308B\u304B\u7DE8\u96C6\u3059\u308B\u3053\u3068\u3092\u304A\u3059\u3059\u3081\u3057\u307E\u3059\u3002","Are you sure you want to archive all completed cards on this board?":"\u3053\u306E\u30DC\u30FC\u30C9\u306B\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u5B8C\u4E86\u3057\u305F\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F",Complete:"\u5B8C\u4E86",Archive:"\u30A2\u30FC\u30AB\u30A4\u30D6","Invalid Kanban file: problems parsing frontmatter":"\u7121\u52B9\u306A\u30AB\u30F3\u30D0\u30F3\u30D5\u30A1\u30A4\u30EB: \u30D5\u30ED\u30F3\u30C8\u30DE\u30BF\u30FC\u306E\u30D1\u30FC\u30B9\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059","I don't know how to interpret this line:":"\u3053\u306E\u884C\u3092\u3069\u3046\u89E3\u91C8\u3059\u308C\u3070\u3088\u3044\u304B\u5206\u304B\u308A\u307E\u305B\u3093",Untitled:"\u7121\u984C","Note: No template plugins are currently enabled.":"\u30CE\u30FC\u30C8: \u73FE\u5728\u3001\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u7121\u52B9\u5316\u3055\u308C\u3066\u3044\u307E\u3059",default:"\u30C7\u30D5\u30A9\u30EB\u30C8","Search...":"\u691C\u7D22\u2026","New line trigger":"\u6539\u884C\u30C8\u30EA\u30AC\u30FC","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"\u6539\u884C\u306B\u4F7F\u3046\u30AD\u30FC\u3068\u3057\u3066Enter\u304BShift+Enter\u306E\u3069\u3061\u3089\u3092\u4F7F\u3046\u304B\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u9078\u629E\u3057\u306A\u304B\u3063\u305F\u65B9\u306E\u30AD\u30FC\u306F\u30AB\u30FC\u30C9\u3068\u30EC\u30FC\u30F3\u306E\u4F5C\u6210\u3068\u7DE8\u96C6\u5B8C\u4E86\u306E\u30C8\u30EA\u30AC\u30FC\u3068\u306A\u308A\u307E\u3059\u3002","Shift + Enter":"Shift + Enter",Enter:"Enter","Prepend / append new cards":"\u5148\u982D\u307E\u305F\u306F\u672B\u5C3E\u306B\u65B0\u898F\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0\u3059\u308B","This setting controls whether new cards are added to the beginning or end of the list.":"\u3053\u306E\u8A2D\u5B9A\u306B\u3088\u3063\u3066\u65B0\u898F\u30AB\u30FC\u30C9\u3092\u30EA\u30B9\u30C8\u306E\u5148\u982D\u307E\u305F\u306F\u672B\u5C3E\u306B\u8FFD\u52A0\u3059\u308B\u304B\u3092\u6C7A\u3081\u307E\u3059\u3002",Prepend:"\u5148\u982D\u306B\u8FFD\u52A0","Prepend (compact)":"\u5148\u982D\u306B\u8FFD\u52A0(\u30B3\u30F3\u30D1\u30AF\u30C8)",Append:"\u672B\u5C3E\u306B\u8FFD\u52A0","These settings will take precedence over the default Kanban board settings.":"\u3053\u308C\u3089\u306E\u8A2D\u5B9A\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30AB\u30F3\u30D0\u30F3\u8A2D\u5B9A\u3088\u308A\u512A\u5148\u3055\u308C\u307E\u3059\u3002","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30AB\u30F3\u30D0\u30F3\u30DC\u30FC\u30C9\u8A2D\u5B9A\u3092\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3053\u306E\u8A2D\u5B9A\u306F\u30DC\u30FC\u30C9\u6BCE\u306B\u4E0A\u66F8\u304D\u3067\u304D\u307E\u3059\u3002","Note template":"\u30CE\u30FC\u30C8\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8","This template will be used when creating new notes from Kanban cards.":"\u3053\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u304B\u3089\u30CE\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210\u3057\u305F\u969B\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","No template":"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093","Note folder":"\u30CE\u30FC\u30C8\u30D5\u30A9\u30EB\u30C0","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u304B\u3089\u4F5C\u6210\u3055\u308C\u305F\u30CE\u30FC\u30C8\u306F\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u5185\u306B\u7F6E\u304B\u308C\u307E\u3059\u3002\u30D6\u30E9\u30F3\u30AF\u306E\u5834\u5408\u306B\u306F\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u306B\u7F6E\u304B\u308C\u307E\u3059\u3002","Default folder":"\u30C7\u30D5\u30A9\u30EB\u30C8\u30D5\u30A9\u30EB\u30C0","Lane width":"\u30EC\u30FC\u30F3\u306E\u5E45","Enter a number to set the lane width in pixels.":"\u30EC\u30FC\u30F3\u306E\u5E45\u3092\u30D4\u30AF\u30BB\u30EB\u5358\u4F4D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002","Maximum number of archived cards":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306E\u6700\u5927\u6570","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306F\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u30E2\u30FC\u30C9\u3067\u95B2\u89A7\u3067\u304D\u307E\u3059\u3002\u3053\u306E\u8A2D\u5B9A\u306B\u3088\u308A\u6307\u5B9A\u3055\u308C\u305F\u30A2\u30FC\u30AB\u30A4\u30D6\u306E\u9650\u754C\u6570\u307E\u3067\u9054\u3057\u305F\u969B\u306B\u306F\u53E4\u3044\u30AB\u30FC\u30C9\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u5024\u3092-1\u306B\u8A2D\u5B9A\u3059\u308B\u3068\u30DC\u30FC\u30C9\u306E\u30A2\u30FC\u30AB\u30A4\u30D6\u9650\u754C\u3092\u7121\u9650\u306B\u3057\u307E\u3059\u3002","Display card checkbox":"\u30AB\u30FC\u30C9\u306E\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u3092\u8868\u793A","When toggled, a checkbox will be displayed with each card":"\u6709\u52B9\u5316\u3059\u308B\u3068\u5404\u30AB\u30FC\u30C9\u306E\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002","Reset to default":"\u30C7\u30D5\u30A9\u30EB\u30C8\u306B\u30EA\u30BB\u30C3\u30C8","Date & Time":"\u65E5\u4ED8\u3068\u6642\u9593","Date trigger":"\u65E5\u4ED8\u30C8\u30EA\u30AC\u30FC","When this is typed, it will trigger the date selector":"\u3053\u306E\u8A2D\u5B9A\u306B\u5165\u529B\u3055\u308C\u305F\u6587\u5B57\u5217\u3067\u65E5\u4ED8\u30BB\u30EC\u30AF\u30BF\u30FC\u3092\u30C8\u30EA\u30AC\u30FC\u3057\u307E\u3059\u3002","Time trigger":"\u6642\u9593\u30C8\u30EA\u30AC\u30FC","When this is typed, it will trigger the time selector":"\u3053\u306E\u8A2D\u5B9A\u306B\u5165\u529B\u3055\u308C\u305F\u6587\u5B57\u5217\u3067\u6642\u9593\u30BB\u30EC\u30AF\u30BF\u30FC\u3092\u30C8\u30EA\u30AC\u30FC\u3057\u307E\u3059\u3002","Date format":"\u65E5\u4ED8\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","This format will be used when saving dates in markdown.":"\u3053\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u306F\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3067\u65E5\u4ED8\u304C\u4FDD\u5B58\u3055\u308C\u308B\u969B\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","For more syntax, refer to":"\u30B7\u30F3\u30BF\u30C3\u30AF\u30B9\u306B\u3064\u3044\u3066\u306F\u3053\u3061\u3089\u3092\u53C2\u7167:","format reference":"\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u30EA\u30D5\u30A1\u30EC\u30F3\u30B9","Your current syntax looks like this":"\u73FE\u5728\u306E\u30B7\u30F3\u30BF\u30C3\u30AF\u30B9\u306F\u6B21\u306E\u3088\u3046\u306B\u898B\u3048\u307E\u3059","Time format":"\u6642\u9593\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","Date display format":"\u65E5\u4ED8\u8868\u793A\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8","This format will be used when displaying dates in Kanban cards.":"\u3053\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u306F\u30AB\u30F3\u30D0\u30F3\u30AB\u30FC\u30C9\u5185\u306B\u3066\u65E5\u4ED8\u306E\u8868\u793A\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","Show relative date":"\u76F8\u5BFE\u65E5\u4ED8\u3092\u8868\u793A","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u306E\u65E5\u4ED8\u3068\u4ECA\u65E5\u306E\u9593\u306E\u65E5\u6570\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u4F8B: '3\u65E5\u5F8C', '1\u30F6\u6708\u524D'","Hide card display dates":"\u30AB\u30FC\u30C9\u306B\u8868\u793A\u3055\u308C\u308B\u65E5\u4ED8\u3092\u96A0\u3059","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u4E0A\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3055\u308C\u305F\u65E5\u4ED8\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u6709\u52B9\u5316\u3055\u308C\u305F\u5834\u5408\u306B\u306F\u76F8\u5BFE\u65E5\u4ED8\u306F\u8868\u793A\u3055\u308C\u307E\u307E\u3068\u306A\u308A\u307E\u3059\u3002","Hide dates in card titles":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u65E5\u4ED8\u3092\u96A0\u3059","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u65E5\u4ED8\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u3053\u308C\u306F\u65B0\u898F\u30CE\u30FC\u30C8\u3092\u4F5C\u6210\u3057\u305F\u969B\u306B\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306B\u65E5\u4ED8\u304C\u542B\u307E\u308C\u308B\u306E\u3092\u9632\u304E\u307E\u3059\u3002","Link dates to daily notes":"\u30C7\u30A4\u30EA\u30FC\u30CE\u30FC\u30C8\u306B\u65E5\u4ED8\u3092\u30EA\u30F3\u30AF","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u6709\u52B9\u5316\u3059\u308B\u3068\u65E5\u4ED8\u304C\u30C7\u30A4\u30EA\u30FC\u30CE\u30FC\u30C8\u306B\u30EA\u30F3\u30AF\u3055\u308C\u307E\u3059\u3002 \u4F8B: [[2021-04-26]]","Add date and time to archived cards":"\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u30AB\u30FC\u30C9\u306B\u65E5\u4ED8\u3068\u6642\u9593\u3092\u8FFD\u52A0","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u304C\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u969B\u306B\u73FE\u5728\u306E\u65E5\u4ED8\u3068\u6642\u9593\u304C\u30AB\u30FC\u30C9\u306E\u6700\u521D\u306B\u8FFD\u8A18\u3055\u308C\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002\u4F8B: - [ ] 2021-05-14 10:00am \u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB","Archive date/time separator":"\u65E5\u4ED8\u30FB\u6642\u9593\u30BB\u30D1\u30EC\u30FC\u30BF\u30FC\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","This will be used to separate the archived date/time from the title":"\u3053\u308C\u306F\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u305F\u65E5\u4ED8\u30FB\u6642\u9593\u3092\u30BF\u30A4\u30C8\u30EB\u304B\u3089\u5206\u96E2\u3059\u308B\u306E\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002","Archive date/time format":"\u65E5\u4ED8\u30FB\u6642\u9593\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Kanban Plugin":"\u30AB\u30F3\u30D0\u30F3\u30D7\u30E9\u30B0\u30A4\u30F3","Hide tags in card titles":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u5185\u306E\u30BF\u30B0\u3092\u96A0\u3059","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u5185\u306E\u30BF\u30B0\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002\u3053\u308C\u306F\u65B0\u898F\u30CE\u30FC\u30C8\u3092\u4F5C\u6210\u3057\u305F\u969B\u306B\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306B\u30BF\u30B0\u304C\u542B\u307E\u308C\u308B\u306E\u3092\u9632\u304E\u307E\u3059\u3002","Hide card display tags":"\u30AB\u30FC\u30C9\u306B\u8868\u793A\u3055\u308C\u308B\u30BF\u30B0\u3092\u96A0\u3059","When toggled, tags will not be displayed below the card title.":"\u6709\u52B9\u5316\u3059\u308B\u3068\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u306E\u4E0B\u306E\u30BF\u30B0\u304C\u975E\u8868\u793A\u306B\u306A\u308A\u307E\u3059\u3002","Linked Page Metadata":"\u30EA\u30F3\u30AF\u3055\u308C\u305F\u30DA\u30FC\u30B8\u306E\u30E1\u30BF\u30C7\u30FC\u30BF","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"\u30AB\u30FC\u30C9\u5185\u3067\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u308B\u6700\u521D\u306E\u30CE\u30FC\u30C8\u306E\u30E1\u30BF\u30C7\u30FC\u30BF\u3092\u8868\u793A\u3057\u307E\u3059\u3002\u4E0B\u306B\u8868\u793A\u3059\u308B\u30E1\u30BF\u30C7\u30FC\u30BF\u306E\u30AD\u30FC\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30AA\u30D7\u30B7\u30E7\u30F3\u3068\u3057\u3066\u30E9\u30D9\u30EB\u306E\u4ED8\u4E0E\u304C\u53EF\u80FD\u3067\u3042\u308A\u3001\u30E9\u30D9\u30EB\u306F\u5B8C\u5168\u306B\u975E\u8868\u793A\u306B\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002","Board Header Buttons":"\u30DC\u30FC\u30C9\u306E\u30D8\u30C3\u30C0\u30FC\u30DC\u30BF\u30F3","Calendar: first day of week":"\u30AB\u30EC\u30F3\u30C0\u30FC: \u9031\u306E\u59CB\u307E\u308A","Override which day is used as the start of the week":"\u9031\u306E\u59CB\u307E\u308A\u3068\u3057\u3066\u4F7F\u7528\u3059\u308B\u66DC\u65E5\u3092\u5909\u66F4\u3057\u307E\u3059\u3002",Sunday:"\u65E5\u66DC\u65E5",Monday:"\u6708\u66DC\u65E5",Tuesday:"\u706B\u66DC\u65E5",Wednesday:"\u6C34\u66DC\u65E5",Thursday:"\u6728\u66DC\u65E5",Friday:"\u91D1\u66DC\u65E5",Saturday:"\u571F\u66DC\u65E5","Metadata key":"\u30E1\u30BF\u30C7\u30FC\u30BF\u306E\u30AD\u30FC","Display label":"\u30E9\u30D9\u30EB\u3092\u8868\u793A","Hide label":"\u30E9\u30D9\u30EB\u3092\u96A0\u3059","Drag to rearrange":"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u4E26\u3079\u66FF\u3048\u308B",Delete:"\u524A\u9664","Add key":"\u30AD\u30FC\u3092\u8FFD\u52A0","Field contains markdown":"\u30D5\u30A3\u30FC\u30EB\u30C9\u306B\u30DE\u30FC\u30AF\u30C0\u30A6\u30F3\u3092\u542B\u307F\u307E\u3059","More options":"\u4ED6\u306E\u30AA\u30D7\u30B7\u30E7\u30F3",Cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",today:"\u4ECA\u65E5",yesterday:"\u6628\u65E5",tomorrow:"\u660E\u65E5","Change date":"\u65E5\u4ED8\u3092\u5909\u66F4","Change time":"\u6642\u9593\u3092\u5909\u66F4","Card title...":"\u30AB\u30FC\u30C9\u30BF\u30A4\u30C8\u30EB\u2026","Add card":"\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0","Add a card":"\u30AB\u30FC\u30C9\u3092\u8FFD\u52A0","Edit card":"\u30AB\u30FC\u30C9\u3092\u7DE8\u96C6","New note from card":"\u30AB\u30FC\u30C9\u304B\u3089\u30CE\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210","Archive card":"\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Delete card":"\u30AB\u30FC\u30C9\u3092\u524A\u9664","Edit date":"\u65E5\u4ED8\u3092\u7DE8\u96C6","Add date":"\u65E5\u4ED8\u3092\u8FFD\u52A0","Remove date":"\u65E5\u4ED8\u3092\u524A\u9664","Edit time":"\u6642\u9593\u3092\u7DE8\u96C6","Add time":"\u6642\u9593\u3092\u8FFD\u52A0","Remove time":"\u6642\u9593\u3092\u524A\u9664","Duplicate card":"\u30AB\u30FC\u30C9\u3092\u8907\u88FD","Split card":"\u30AB\u30FC\u30C9\u3092\u5206\u5272","Copy link to card":"\u30AB\u30FC\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC","Enter list title...":"\u30EA\u30B9\u30C8\u30BF\u30A4\u30C8\u30EB\u3092\u7DE8\u96C6\u2026","Mark cards in this list as complete":"\u3053\u306E\u30EA\u30B9\u30C8\u306B\u542B\u307E\u308C\u308B\u30AB\u30FC\u30C9\u3092\u5B8C\u4E86\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3059\u308B","Add list":"\u30EA\u30B9\u30C8\u3092\u8FFD\u52A0","Add a list":"\u30EA\u30B9\u30C8\u3092\u8FFD\u52A0","Move list":"\u30EA\u30B9\u30C8\u3092\u79FB\u52D5",Close:"\u9589\u3058\u308B","Are you sure you want to delete this list and all its cards?":"\u3053\u306E\u30EA\u30B9\u30C8\u3068\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u524A\u9664\u3057\u307E\u3059\u304B\b\uFF1F","Yes, delete list":"\u306F\u3044\u3001\u30EA\u30B9\u30C8\u3092\u524A\u9664\u3057\u307E\u3059","Are you sure you want to archive this list and all its cards?":"\u3053\u306E\u30EA\u30B9\u30C8\u3068\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F","Yes, archive list":"\u306F\u3044\u3001\u30EA\u30B9\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059","Are you sure you want to archive all cards in this list?":"\u3053\u306E\u30EA\u30B9\u30C8\u306B\u542B\u307E\u308C\u308B\u3059\u3079\u3066\u306E\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059\u304B\uFF1F","Yes, archive cards":"\u306F\u3044\u3001\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3057\u307E\u3059","Edit list":"\u30EA\u30B9\u30C8\u3092\u7DE8\u96C6","Archive cards":"\u30AB\u30FC\u30C9\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Archive list":"\u30EA\u30B9\u30C8\u3092\u30A2\u30FC\u30AB\u30A4\u30D6","Delete list":"\u30EA\u30B9\u30C8\u3092\u524A\u9664","Unable to find":"\u898B\u3064\u304B\u308A\u307E\u305B\u3093","Open in default app":"\u30C7\u30D5\u30A9\u30EB\u30C8\u30A2\u30D7\u30EA\u3067\u958B\u304F"};var Dm={};var Am={};var Im={};var Lm={};var Pm={};var Om={"Open as Kanban board":"Abrir como quadro Kanban","Create new board":"Criar um novo quadro","Archive completed cards in active board":"Arquivar cart\xF5es conclu\xEDdos no quadro ativo","Error: current file is not a Kanban board":"Erro: o arquivo atual n\xE3o \xE9 um quadro Kanban","Convert empty note to Kanban":"Converter nota vazia em Kanban","Error: cannot create Kanban, the current note is not empty":"Erro: n\xE3o \xE9 poss\xEDvel criar o quadro Kanban, a nota atual n\xE3o est\xE1 vazia","New Kanban board":"Novo quadro Kanban","Untitled Kanban":"Kanban sem t\xEDtulo","Toggle between Kanban and markdown mode":"Alternar entre os modos Kanban e Markdown","Open as markdown":"Abrir como markdown","Open board settings":"Abrir configura\xE7\xF5es do quadro Kanban","Archive completed cards":"Arquivar cart\xF5es conclu\xEDdos",Complete:"Conclu\xEDdo",Archive:"Arquivado","Note: No template plugins are currently enabled.":"Nota: N\xE3o h\xE1 plug-ins de modelo habilitados no momento.",default:"padr\xE3o","Search...":"Pesquisar...","These settings will take precedence over the default Kanban board settings.":"Essas configura\xE7\xF5es sobrescrever\xE3o as configura\xE7\xF5es padr\xE3o do quadro Kanban","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Defina as configura\xE7\xF5es padr\xE3o do quadro Kanban. Cada quadro Kanban pode ter sua pr\xF3pria configura\xE7\xE3o.","Note template":"Modelo de nota","This template will be used when creating new notes from Kanban cards.":"Este modelo ser\xE1 usado quando uma nova nota Kanban for criada.","No template":"Sem modelo","Note folder":"Pasta de notas","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"As notas criadas pelos links dos cart\xF5es Kanban ser\xE3o colocadas nesta pasta. Se estiver em branco, ser\xE3o colocadas no local configurado como padr\xE3o deste cofre.","Default folder":"Pasta padr\xE3o","Lane width":"Largura das listas","Enter a number to set the lane width in pixels.":"Insira um n\xFAmero para definir a largura das listas em pixels.","Maximum number of archived cards":"Quantidade m\xE1xima de cart\xF5es arquivados","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Os cart\xF5es arquivados podem ser vistos no modo Markdown. Esta configura\xE7\xE3o excluir\xE1 os cart\xF5es antigos assim que o limite for atingido. Inserir o valor -1 retira o limite para cart\xF5es arquivados.","Display card checkbox":"Exibe uma caixa de sele\xE7\xE3o do cart\xE3o","When toggled, a checkbox will be displayed with each card":"Quando ativada, uma caixa de sele\xE7\xE3o ser\xE1 exibida em cada cart\xE3o.","Reset to default":"Redefinir configura\xE7\xF5es padr\xE3o","Date & Time":"Data e Hora","Date trigger":"Gatilho de data","When this is typed, it will trigger the date selector":"Quando este caractere \xE9 digitado, o seletor de data \xE9 exibido.","Time trigger":"Gatilho de hora","When this is typed, it will trigger the time selector":"Quando este caractere \xE9 digitado, o seletor de hora \xE9 exibido.","Date format":"Formado da data","This format will be used when saving dates in markdown.":"Este formato ser\xE1 usado quando datas forem armazenadas no Markdown.","For more syntax, refer to":"Para mais informa\xE7\xF5es sobre esta sintaxe, consulte os","format reference":"modelos de formato.","Your current syntax looks like this":"Sua atual sintaxe est\xE1 assim","Time format":"Formato da hora","Date display format":"Formato de exibi\xE7\xE3o da data","This format will be used when displaying dates in Kanban cards.":"Este ser\xE1 o formato das datas exibido nos cart\xF5es do Kanban.","Show relative date":"Exibir datas relativas","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"Ao ativar, os cart\xF5es exibir\xE3o o intervalo de tempo entre hoje e a data do cart\xE3o: Ex.: 'Em 3 dias', 'Um m\xEAs atr\xE1s'","Hide card display dates":"Ocultar datas dos cart\xF5es","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"Ao ativar, as datas formatadas n\xE3o ser\xE3o exibidas no cart\xE3o. As datas relativas ainda ser\xE3o exibidas se estiverem ativadas.","Hide dates in card titles":"Ocultar datas dos t\xEDtulos dos cart\xF5es","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"Ao ativar, as datas ser\xE3o t\xEDtulos de cart\xF5es ocultos. Evita que datas sejam inclu\xEDdas no t\xEDtulo ao criar novas notas.","Link dates to daily notes":"Vincular datas a notas di\xE1rias","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"Ao ativar, as datas ser\xE3o vinculadas \xE0s notas di\xE1rias. Ex.: [[2021-04-26]]","Add date and time to archived cards":"Adicionar data e hora aos cart\xF5es arquivados","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"Quando ativada, a data e a hora atuais ser\xE3o adicionadas ao in\xEDcio de um cart\xE3o quando ele for arquivado. Ex.: - [] 2021-05-14 10:00 T\xEDtulo do meu cart\xE3o","Archive date/time separator":"Separador de data/hora do arquivo","This will be used to separate the archived date/time from the title":"Isso ser\xE1 usado para separar a data/hora arquivada do t\xEDtulo.","Archive date/time format":"Formato de data/hora do arquivo","Kanban Plugin":"Plugin Kanban","Hide tags in card titles":"Ocultar \u2018tags\u2019 nos t\xEDtulos dos cart\xF5es","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"Quando ativada, as \u2018tags\u2019 n\xE3o ser\xE3o exibidas nos t\xEDtulos de cartas. Isso impedir\xE1 que as \u2018tags\u2019 sejam inclu\xEDdas no t\xEDtulo ao criar novas notas.","Hide card display tags":"Ocultar \u2018tags\u2019 de exibi\xE7\xE3o de cart\xE3o","When toggled, tags will not be displayed below the card title.":"Quando ativada, as \u2018tags\u2019 n\xE3o ser\xE3o exibidas abaixo do t\xEDtulo do cart\xE3o.","Linked Page Metadata":"Metadados de p\xE1ginas 'lincadas'","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"Exibe metadados para a primeira nota 'lincada' em um cart\xE3o. Especifique abaixo quais metadados ser\xE3o exibidos. Um r\xF3tulo opcional pode ser fornecido e os r\xF3tulos podem ser ocultados completamente.","Metadata key":"Metadado","Display label":"Descri\xE7\xE3o personalizada","Hide label":"Ocultar","Drag to rearrange":"Arraste para reorganizar",Delete:"Excluir","Add key":"Adicionar metadado","More options":"Mais op\xE7\xF5es",Cancel:"Cancelar",today:"hoje",yesterday:"ontem",tomorrow:"amanh\xE3","Change date":"Alterar data","Change time":"Mudar hora","Card title...":"T\xEDtulo do item...","Add card":"Adicionar Item","Add a card":"Adicione um cart\xE3o","Edit card":"Editar cart\xE3o","New note from card":"Nova nota do cart\xE3o","Archive card":"Arquivar cart\xE3o","Delete card":"Excluir cart\xE3o","Edit date":"Editar data","Add date":"Adicionar data","Remove date":"Remover data","Edit time":"Editar hora","Add time":"Adicionar hora","Remove time":"Remover hora","Duplicate card":"Duplicate card","Enter list title...":"Insira o t\xEDtulo da lista...","Mark cards in this list as complete":"Marcar os itens nesta lista como conclu\xEDdos","Add list":"Adicionar lista","Add a list":"Adicionar uma lista","Move list":"Mover lista",Close:"Fechar","Are you sure you want to delete this list and all its cards?":"Tem certeza de que deseja excluir esta lista e todos os seus cart\xF5es?","Yes, delete list":"Sim, excluir esta lista","Are you sure you want to archive this list and all its cards?":"Tem certeza de que deseja arquivar esta lista e todos os seus cart\xF5es?","Yes, archive list":"Sim, arquivar esta lista","Are you sure you want to archive all cards in this list?":"Tem certeza de que deseja arquivar todos os cart\xF5es desta lista?","Yes, archive cards":"Sim, arquivar cart\xF5es","Edit list":"Editar lista","Archive cards":"Arquivar cart\xF5es","Archive list":"Arquivar lista","Delete list":"Excluir lista"};var Nm={};var Fm={};var Rm={};var ts={};var Hm={"Open as kanban board":"\u6253\u5F00\u4E3A\u770B\u677F","Create new board":"\u521B\u5EFA\u65B0\u770B\u677F","Archive completed cards in active board":"\u5728\u5F53\u524D\u770B\u677F\u4E2D\u5F52\u6863\u5DF2\u5B8C\u6210\u5361\u7247","Error: current file is not a Kanban board":"\u9519\u8BEF\uFF1A\u5F53\u524D\u6587\u4EF6\u4E0D\u662F\u770B\u677F\u6587\u4EF6","Convert empty note to Kanban":"\u8F6C\u6362\u7A7A\u767D\u6587\u6863\u4E3A\u770B\u677F","Error: cannot create Kanban, the current note is not empty":"\u9519\u8BEF\uFF1A\u65E0\u6CD5\u8F6C\u6362\u5F53\u524D\u6587\u4EF6\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u662F\u7A7A\u767D\u6587\u6863","New kanban board":"\u65B0\u770B\u677F","Untitled Kanban":"\u672A\u547D\u540D\u770B\u677F","Toggle between Kanban and markdown mode":"\u5728\u770B\u677F\u548C Markdown \u6A21\u5F0F\u4E4B\u95F4\u8FDB\u884C\u5207\u6362","Open as markdown":"\u6253\u5F00\u4E3A Markdown \u6587\u4EF6","Open board settings":"\u6253\u5F00\u770B\u677F\u8BBE\u7F6E","Archive completed cards":"\u5F52\u6863\u5DF2\u5B8C\u6210\u5361\u7247","Something went wrong":"\u51FA\u4E86\u70B9\u95EE\u9898 `(*>\uFE4F<*)\u2032 ","You may wish to open as markdown and inspect or edit the file.":"\u4F60\u53EF\u80FD\u5E0C\u671B\u4EE5 Markdown \u65B9\u5F0F\u6253\u5F00\uFF0C\u5E76\u68C0\u67E5\u6216\u7F16\u8F91\u8BE5\u6587\u4EF6\u3002","Are you sure you want to archive all completed cards on this board?":"\u4F60\u786E\u5B9A\u8981\u5C06\u8FD9\u4E2A\u677F\u5757\u4E0A\u6240\u6709\u5DF2\u5B8C\u6210\u7684\u5361\u7247\u5F52\u6863\u5417\uFF1F",Complete:"\u5B8C\u6210",Archive:"\u5F52\u6863","Invalid Kanban file: problems parsing frontmatter":"\u65E0\u6548\u7684\u770B\u677F\u6587\u4EF6\uFF1A\u89E3\u6790\u524D\u7AEF\u5185\u5BB9\u65F6\u51FA\u73B0\u95EE\u9898","I don't know how to interpret this line:":"\u6211\u4E0D\u77E5\u9053\u5982\u4F55\u89E3\u8BFB\u8FD9\u53E5\u8BDD: ",Untitled:"\u672A\u547D\u540D","Note: No template plugins are currently enabled.":"\u6CE8\u610F\uFF1A\u5F53\u524D\u6A21\u677F\u63D2\u4EF6\u6CA1\u6709\u8FD0\u884C",default:"\u9ED8\u8BA4","Search...":"\u641C\u7D22...","New line trigger":"\u6362\u884C\u89E6\u53D1\u5668","Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.":"\u9009\u62E9 Enter \u6216\u662F Shift+Enter \u6765\u521B\u5EFA\u65B0\u884C, \u4F60\u6CA1\u6709\u9009\u62E9\u7684\u5C06\u7528\u6765\u521B\u5EFA\u548C\u5B8C\u6210\u5361\u7247","Prepend / append new cards":"\u8FFD\u52A0\u65B0\u5361","This setting controls whether new cards are added to the beginning or end of the list.":"\u8BBE\u7F6E\u65B0\u5361\u7247\u6DFB\u52A0\u5230\u5217\u8868\u5934\u90E8\u6216\u5C3E\u90E8\u3002",Prepend:"\u5934\u90E8","Prepend (compact)":"\u5934\u90E8 (\u7D27\u51D1)",Append:"\u5C3E\u90E8","These settings will take precedence over the default Kanban board settings.":"\u5F53\u524D\u770B\u677F\u8BBE\u7F6E\u5C06\u4F1A\u8986\u76D6\u9ED8\u8BA4\u7684\u770B\u677F\u8BBE\u7F6E","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"\u8BBE\u7F6E\u770B\u677F\u7684\u9ED8\u8BA4\u8BBE\u7F6E\u3002\u8BBE\u7F6E\u53EF\u4EE5\u6BCF\u4E2A\u770B\u677F\u5355\u72EC\u8BBE\u7F6E\u3002","Note template":"\u7B14\u8BB0\u6A21\u677F","This template will be used when creating new notes from Kanban cards.":"\u521B\u5EFA\u65B0\u770B\u677F\u5361\u7247\u65F6\u4F1A\u4F7F\u7528\u8BE5\u6A21\u677F","No template":"\u6CA1\u6709\u6A21\u677F","Note folder":"\u7B14\u8BB0\u5B58\u653E\u4F4D\u7F6E","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"\u4ECE\u770B\u677F\u5361\u7247\u521B\u5EFA\u7684\u7B14\u8BB0\u4F1A\u653E\u7F6E\u5230\u8BE5\u6587\u4EF6\u5939\u4E2D\uFF0C\u5982\u679C\u8FD9\u91CC\u4E3A\u7A7A\uFF0C\u5728\u770B\u677F\u521B\u5EFA\u7684\u7B14\u8BB0\u4F1A\u653E\u7F6E\u5230 Obsidian \u7684\u9ED8\u8BA4\u6587\u4EF6\u5B58\u653E\u4F4D\u7F6E\u3002","Default folder":"\u9ED8\u8BA4\u6587\u4EF6\u5939","Lane width":"\u5361\u7247\u5BBD\u5EA6","Enter a number to set the lane width in pixels.":"\u8F93\u5165\u4E00\u4E2A\u6570\u5B57\u6765\u8BBE\u7F6E\u770B\u677F\u7684\u5361\u7247\u5BBD\u5EA6","Maximum number of archived cards":"\u5355\u4E2A\u770B\u677F\u7684\u5F52\u6863\u5361\u7247\u7684\u6700\u5927\u6570\u91CF","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"\u5DF2\u5F52\u6863\u7684\u5361\u7247\u53EF\u4EE5\u5728 Markdown \u6A21\u5F0F\u4E0B\u67E5\u770B\u3002\u8FD9\u4E2A\u8BBE\u7F6E\u4F1A\u5BFC\u81F4\u63D2\u4EF6\u5728\u5DF2\u5F52\u6863\u7684\u5361\u7247\u6570\u91CF\u62B5\u8FBE\u9650\u5236\u503C\u65F6\u5F00\u59CB\u5220\u9664\u5361\u7247\u3002\u5F53\u524D\u503C\u8BBE\u7F6E\u4E3A -1 \u7684\u8BDD\u53EF\u4EE5\u6C38\u4E45\u4FDD\u7559\u6240\u6709\u5F52\u6863\u5361\u7247\u3002","Display card checkbox":"\u5C55\u793A\u5361\u7247\u590D\u9009\u6846","When toggled, a checkbox will be displayed with each card":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u590D\u9009\u6846\u4F1A\u51FA\u73B0\u5728\u6BCF\u4E2A\u5361\u7247\u4E0A","Reset to default":"\u8FD8\u539F\u521D\u59CB\u8BBE\u7F6E","Date & Time":"\u65E5\u671F\u548C\u65F6\u95F4","Date trigger":"\u65E5\u671F\u89E6\u53D1\u6307\u4EE4","When this is typed, it will trigger the date selector":"\u5F53\u5728\u770B\u677F\u5361\u7247\u4E2D\u8F93\u5165\u8FD9\u4E2A\u65F6\uFF0C\u4F1A\u89E6\u53D1\u4E00\u4E2A\u65E5\u671F\u9009\u62E9\u5668","Time trigger":"\u65F6\u95F4\u89E6\u53D1\u6307\u4EE4","When this is typed, it will trigger the time selector":"\u5F53\u5728\u770B\u677F\u5361\u7247\u4E2D\u8F93\u5165\u8FD9\u4E2A\u65F6\uFF0C\u4F1A\u89E6\u53D1\u4E00\u4E2A\u65F6\u95F4\u9009\u62E9\u5668","Date format":"\u65E5\u671F\u683C\u5F0F","This format will be used when saving dates in markdown.":"\u8FD9\u4E2A\u683C\u5F0F\u4F1A\u5728\u65E5\u671F\u4FDD\u5B58\u5230 Markdown \u683C\u5F0F\u65F6\u4F7F\u7528\u3002","For more syntax, refer to":"\u66F4\u591A\u683C\u5F0F\uFF0C\u8BF7\u67E5\u770B","format reference":"\u683C\u5F0F\u53C2\u8003","Your current syntax looks like this":"\u4F60\u5F53\u524D\u8BBE\u7F6E\u7684\u683C\u5F0F\u4F1A\u662F","Time format":"\u65F6\u95F4\u683C\u5F0F","Date display format":"\u65E5\u671F\u5C55\u793A\u683C\u5F0F","This format will be used when displaying dates in Kanban cards.":"\u5728\u770B\u677F\u5361\u7247\u4E2D\uFF0C\u4F1A\u57FA\u4E8E\u8BE5\u683C\u5F0F\u5C55\u793A\u65E5\u671F","Show relative date":"\u5C55\u793A\u76F8\u5BF9\u65E5\u671F","When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u4F1A\u5C55\u793A\u5176\u8BBE\u7F6E\u7684\u65E5\u671F\u4E0E\u4ECA\u5929\u7684\u65E5\u671F\u7684\u5DEE\u503C\uFF0C\u4F8B\u5982\u4E09\u5929\u5185\u3001\u4E00\u4E2A\u6708\u5185\u7B49\u3002","Hide card display dates":"\u9690\u85CF\u5361\u7247\u65E5\u671F","When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u683C\u5F0F\u5316\u7684\u65E5\u671F\u4E0D\u4F1A\u5C55\u793A\uFF0C\u4F46\u662F\u5982\u679C\u4F60\u5F00\u542F\u4E86\u76F8\u5BF9\u65E5\u671F\u7684\u529F\u80FD\uFF0C\u76F8\u5BF9\u65E5\u671F\u8FD8\u662F\u4F1A\u7EE7\u7EED\u5C55\u793A\u3002","Hide dates in card titles":"\u5728\u5361\u7247\u6807\u9898\u4E2D\u9690\u85CF\u65E5\u671F","When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E2D\u7684\u65E5\u671F\u4F1A\u9690\u85CF\uFF0C\u5F53\u57FA\u4E8E\u5361\u7247\u521B\u5EFA\u65B0\u7B14\u8BB0\u7684\u65F6\u5019\u53EF\u4EE5\u907F\u514D\u65E5\u671F\u6DF7\u6742\u5176\u4E2D\u3002","Link dates to daily notes":"\u94FE\u63A5\u65E5\u671F\u5230\u65E5\u8BB0","When toggled, dates will link to daily notes. Eg. [[2021-04-26]]":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u65E5\u671F\u4F1A\u81EA\u52A8\u94FE\u63A5\u5230\u65E5\u8BB0\u9875\u9762\uFF0C\u4F8B\u5982 [[2021-04-26]]","Add date and time to archived cards":"\u6DFB\u52A0\u65E5\u671F\u548C\u65F6\u95F4\u5230\u5F52\u6863\u5361\u7247","When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5F53\u524D\u7684\u65E5\u671F\u548C\u65F6\u95F4\u4F1A\u88AB\u6DFB\u52A0\u5230\u5F52\u6863\u7684\u5361\u7247\u7684\u524D\u7AEF\u4E0A\uFF0C\u4F8B\u5982\u201C- [ ] 2021-05-14 10:00am \u6211\u7684\u5361\u7247\u6807\u9898\u201D","Archive date/time separator":"\u65E5\u671F\u6216\u65F6\u95F4\u5206\u9694\u7B26","This will be used to separate the archived date/time from the title":"\u7528\u4E8E\u4ECE\u5206\u9694\u5F52\u6863\u5361\u7247\u7684\u65E5\u671F\u6216\u65F6\u95F4","Archive date/time format":"\u5F52\u6863\u65E5\u671F\u6216\u65F6\u95F4\u683C\u5F0F","Kanban Plugin":"\u770B\u677F\u63D2\u4EF6","Hide tags in card titles":"\u9690\u85CF\u5361\u7247\u6807\u9898\u4E2D\u7684\u6807\u7B7E","When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E2D\u7684\u6807\u7B7E\u5C06\u4F1A\u88AB\u9690\u85CF\uFF0C\u6765\u907F\u514D\u751F\u6210\u5361\u7247\u7B14\u8BB0\u7684\u65F6\u5019\u9644\u5E26\u4E0A\u6807\u7B7E","Hide card display tags":"\u9690\u85CF\u5361\u7247\u4E0A\u7684\u6807\u7B7E","When toggled, tags will not be displayed below the card title.":"\u5F53\u6253\u5F00\u8FD9\u4E2A\uFF0C\u5361\u7247\u6807\u9898\u4E0B\u65B9\u7684\u6807\u7B7E\u5C06\u4E0D\u4F1A\u5C55\u793A","Linked Page Metadata":"\u8FDE\u63A5\u7684\u9875\u9762\u5143\u6570\u636E","Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.":"\u5C55\u793A\u5361\u7247\u4E2D\u7B2C\u4E00\u4E2A\u8FDE\u63A5\u6240\u5BF9\u5E94\u7684\u7B14\u8BB0\u5143\u6570\u636E\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6307\u5B9A\u54EA\u4E9B\u5143\u6570\u636E\u53EF\u4EE5\u5C55\u793A\u3002\u4F60\u53EF\u4EE5\u9009\u62E9\u5C55\u793A\u6807\u5FD7\uFF0C\u6807\u5FD7\u53EF\u4EE5\u90FD\u88AB\u9690\u85CF\u3002","Board Header Buttons":"\u677F\u5934\u6309\u94AE","Calendar: first day of week":"\u65E5\u5386\uFF1A\u4E00\u5468\u7684\u7B2C\u4E00\u5929","Override which day is used as the start of the week":"\u54EA\u4E00\u5929\u4F5C\u4E3A\u4E00\u5468\u7684\u5F00\u59CB",Sunday:"\u5468\u65E5",Monday:"\u5468\u4E00",Tuesday:"\u5468\u4E8C",Wednesday:"\u5468\u4E09",Thursday:"\u5468\u56DB",Friday:"\u5468\u4E94",Saturday:"\u5468\u516D","Metadata key":"\u5143\u6570\u636E\u53C2\u6570\u540D","Display label":"\u5C55\u793A\u6807\u5FD7","Hide label":"\u9690\u85CF\u6807\u5FD7","Drag to rearrange":"\u62D6\u52A8\u6765\u91CD\u6392\u987A\u5E8F",Delete:"\u5220\u9664","Add key":"\u6DFB\u52A0\u53C2\u6570\u540D","Field contains markdown":"\u5B57\u6BB5\u5305\u542B Markdown","More options":"\u66F4\u591A\u9009\u9879",Cancel:"\u53D6\u6D88",today:"\u4ECA\u5929",yesterday:"\u6628\u5929",tomorrow:"\u660E\u5929","Change date":"\u66F4\u6539\u65E5\u671F","Change time":"\u66F4\u6539\u65F6\u95F4","Card title...":"\u5361\u7247\u6807\u9898","Add card":"\u6DFB\u52A0","Add a card":"\u6DFB\u52A0\u5361\u7247","Edit card":"\u7F16\u8F91\u5361\u7247","New note from card":"\u4ECE\u5361\u7247\u65B0\u5EFA\u7B14\u8BB0","Archive card":"\u5F52\u6863\u5361\u7247","Delete card":"\u5220\u9664\u5361\u7247","Edit date":"\u7F16\u8F91\u65E5\u671F","Add date":"\u6DFB\u52A0\u65E5\u671F","Remove date":"\u79FB\u9664\u65E5\u671F","Edit time":"\u7F16\u8F91\u65F6\u95F4","Add time":"\u6DFB\u52A0\u65F6\u95F4","Remove time":"\u79FB\u9664\u65F6\u95F4","Duplicate card":"\u590D\u5236\u5361\u7247","Split card":"\u5206\u79BB\u5361\u7247","Copy link to card":"\u590D\u5236\u94FE\u63A5\u81F3\u5361\u7247","Enter list title...":"\u8F93\u5165\u65B0\u7684\u5217\u6807\u9898","Mark cards in this list as complete":"\u5C06\u8BE5\u5217\u8BBE\u7F6E\u4E3A\u5B8C\u6210\u5217","Add list":"\u6DFB\u52A0","Add a list":"\u6DFB\u52A0\u5217","Move list":"\u79FB\u52A8\u5217",Close:"\u5173\u95ED","Are you sure you want to delete this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5220\u9664\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, delete list":"\u662F\uFF0C\u5220\u9664\u5217","Are you sure you want to archive this list and all its cards?":"\u4F60\u786E\u5B9A\u4F60\u8981\u5F52\u6863\u6574\u5217\u4EE5\u53CA\u8BE5\u5217\u4E0B\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive list":"\u662F, \u5F52\u6863\u5217","Are you sure you want to archive all cards in this list?":"\u4F60\u786E\u8BA4\u4F60\u8981\u5F52\u6863\u5F53\u524D\u5217\u7684\u6240\u6709\u5361\u7247\u5417\uFF1F","Yes, archive cards":"\u662F\uFF0C\u5F52\u6863\u6240\u6709\u5361\u7247","Edit list":"\u7F16\u8F91\u5217","Archive cards":"\u5F52\u6863\u5361\u7247","Archive list":"\u5F52\u6863\u5217","Delete list":"\u5220\u9664\u5217","Unable to find":"\u65E0\u6CD5\u627E\u5230","Open in default app":"\u5728\u9ED8\u8BA4\u5E94\u7528\u4E2D\u6253\u5F00"};var Bm={};var fx={ar:bm,cz:wm,da:Em,de:Sm,en:Mc,es:xm,fr:km,hi:_m,id:Tm,it:Mm,ja:Cm,ko:Dm,nl:Am,no:Im,pl:Lm,"pt-BR":Om,pt:Pm,ro:Nm,ru:Fm,sq:Rm,tr:ts,uk:ts,"zh-TW":Bm,zh:Hm},Km=window.localStorage.getItem("language"),Cc=fx[Km||"en"];function F(t){return Cc||console.error("Error: kanban locale not found",Km),Cc&&Cc[t]||Mc[t]}function tr(t,n){return Dc.Platform.isMobile?!0:n.getSetting("new-line-trigger")==="enter"?t.key==="Enter"&&!(t.shiftKey||t.metaKey||t.ctrlKey):t.key==="Enter"&&t.shiftKey}var gr=v.forwardRef(function({onEnter:n,onEscape:e,onSubmit:r,...i},a){let{view:o,stateManager:s}=v.useContext(We),u=v.useMemo(()=>o.app.vault.getConfig("autoPairMarkdown"),[o]),l=v.useMemo(()=>o.app.vault.getConfig("autoPairBrackets"),[o]),c=v.useMemo(()=>o.app.vault.getConfig("useTab"),[o]),d=v.useMemo(()=>o.app.vault.getConfig("tabSize"),[o]),f=!!o.app.vault.getConfig("useMarkdownLinks"),h=om({isInputVisible:!0,onEnter:n,onEscape:e,onKeyDown:p=>{if(p.key==="Backspace"){let g=mm(p.target);return g||gm(p.target)}if(tr(p,s)){let g=ym(p.target);if(g)return p.preventDefault(),g}if(p.key==="Tab")return p.preventDefault(),vm(p.target,p.shiftKey,c,d);if(u){let g=Tc[p.key];if(g&&g(p.target))return p.preventDefault(),!0}if(l){if(f&&p.key==="[")return!1;let g=_c[p.key];if(g&&g(p.target))return p.preventDefault(),!0}return!1}});return v.useEffect(()=>{let p=g=>{let w=hm[g];w&&w(h.ref.current)};return o.emitter.on("hotkey",p),()=>{o.emitter.off("hotkey",p)}},[o]),v.createElement(v.Fragment,null,v.createElement("div",{"data-replicated-value":i.value,className:$("grow-wrap")},v.createElement("textarea",{"data-ignore-drag":!0,rows:1,className:$("item-input"),...i,...h,ref:p=>{h.ref.current=p,a&&typeof a=="function"?a(p):a&&(a.current=p)}})),Dc.Platform.isMobile&&v.createElement("button",{onPointerDown:r,className:$("item-submit-button")},F("Submit")))});var Lc=me($m());var vr=me(require("obsidian"));var hx=["bmp","png","jpg","jpeg","gif","svg"],px=["mp3","wav","m4a","3gp","flac","ogg","oga"],mx=["mp4","webm","ogv"],gx=/\u00A0/g,vx=/[!"#$%&()*+,.:;<=>?@^`{|}~/[\]\\]/g;function Um(t){return t.replace(vx," ").replace(/\s+/g," ").trim()}function Pr(t){let e=t.replace(gx," ").normalize("NFC").split(/\|(.*)/),r=e[0].split(/#(.*)/);return{root:r[0],subpath:r[1]?"#"+r[1]:"",alias:e[1]||""}}function yx(t,n){if(!t||!n)return null;let e=n.split("#").filter(l=>!!l);if(!e||e.length===0)return null;if(e.length===1){let l=e[0];if(l.startsWith("^")){let c=l.slice(1).toLowerCase(),d=t.blocks;if(d&&d[c]){let f=d[c];return{type:"block",block:f,start:f.position.start.offset,end:f.position.end.offset}}else return null}}let r=t.headings;if(!r||r.length===0)return null;let i=0,a=0,o=0,s=null,u=null;for(;a<r.length;a++){let l=r[a];if(s&&l.level<=o){u=l;break}!s&&l.level>o&&Um(l.heading).toLowerCase()===Um(e[i]).toLowerCase()&&(i++,o=l.level,i===e.length&&(s=l))}return s?{type:"heading",current:s,next:u,start:s.position.start.offset,end:u?u.position.start.offset:null}:null}function bx(t){t.querySelectorAll(".task-list-item-checkbox").forEach((e,r)=>{e.dataset.checkboxIndex=r.toString()})}function wx(t,n){t.querySelectorAll(".internal-link").forEach(r=>{let i=Pr(r.getAttr("href"));n.app.metadataCache.getFirstLinkpathDest(i.root,n.file.path)||r.addClass("is-unresolved")})}function Ex(t,n,e){t.empty(),t.createEl("img",{attr:{src:e.app.vault.getResourcePath(n)}},r=>{t.hasAttribute("width")&&r.setAttribute("width",t.getAttribute("width")),t.hasAttribute("height")&&r.setAttribute("height",t.getAttribute("height")),t.hasAttribute("alt")&&r.setAttribute("alt",t.getAttribute("alt"))}),t.addClasses(["image-embed","is-loaded"])}function zm(t,n,e){t.empty(),t.createEl("audio",{attr:{controls:"",src:e.app.vault.getResourcePath(n)}}),t.addClasses(["media-embed","is-loaded"])}function Sx(t,n,e){t.empty(),t.createEl("video",{attr:{controls:"",src:e.app.vault.getResourcePath(n)}},r=>{let i=()=>{r.removeEventListener("loadedmetadata",i),r.videoWidth===0&&r.videoHeight===0&&(t.empty(),zm(t,n,e))};r.addEventListener("loadedmetadata",i)}),t.addClasses(["media-embed","is-loaded"])}async function Vm(t,n,e){let r=e.app.metadataCache.getFileCache(t);if(!r)return null;let i=await e.app.vault.cachedRead(t);if(!n.subpath)return i;let a=yx(r,n.subpath);if(a)return i.substring(a.start,a.end===null?void 0:a.end);if(n.subpath)return`${F("Unable to find")} ${n.root}${n.subpath}`}function jm(t,n,e,r){setTimeout(async()=>{if(e.plugin.viewMap.has(e.id)){let i=await Vm(t,n,e);if(!i)return;i.startsWith(F("Unable to find"))?r>0&&jm(t,n,e,--r):e.plugin.stateManagers.forEach(a=>{a.onFileMetadataChange()})}},2e3)}async function xx(t,n,e,r,i){let a=await Vm(n,e,r);if(!a)return;t.empty();let o=t.createDiv();o.addClasses(["markdown-preview-view",$("markdown-preview-view")]),o.createDiv($("embed-link-wrapper"),s=>{s.createEl("a",{href:t.getAttr("src")||n.basename,cls:`internal-link ${$("embed-link")}`},u=>{(0,vr.setIcon)(u,"link"),u.setAttr("aria-label",n.basename)})}),await vr.MarkdownRenderer.renderMarkdown(a,o.createDiv(),n.path,r),t.addClass("is-loaded"),a.startsWith(F("Unable to find"))&&e.subpath&&e.subpath!=="#"&&jm(n,e,r,4),i>0&&await Wm(o,r,--i)}function kx(t,n){t.addClass("is-loaded"),t.empty(),t.createEl("a",{cls:"file-link",href:t.getAttribute("src"),text:n.name},e=>{e.setAttribute("aria-label",F("Open in default app")),e.createSpan({},r=>(0,vr.setIcon)(r,"open-elsewhere-glyph"))})}function Wm(t,n,e){return Promise.all(t.findAll(".internal-embed").map(async r=>{let i=r.getAttribute("src"),a=Pr(i),o=typeof i=="string"&&n.app.metadataCache.getFirstLinkpathDest(a.root,n.file.path);if(o instanceof vr.TFile)return hx.contains(o.extension)?Ex(r,o,n):px.contains(o.extension)?zm(r,o,n):mx.contains(o.extension)?Sx(r,o,n):o.extension==="md"?await xx(r,o,a,n,e):kx(r,o)}))}async function ya(t,n){let e=createDiv();try{await vr.MarkdownRenderer.renderMarkdown(n,e,t.file.path,t),await Wm(e,t,5),bx(e),wx(e,t)}catch(r){console.error(r)}return e}function Pc(t,n){!n||!t||(t&&!t.firstChild?t.appendChild(n):t.firstChild&&t.firstChild!==n&&t.replaceChild(n,t.firstChild))}var ba=v.memo(function({className:n,markdownString:e,searchQuery:r,...i}){let{stateManager:a}=v.useContext(We),o=v.useRef(),s=v.useRef(),u=v.useRef();return v.useEffect(()=>{ya(a.getAView(),e).then(l=>{s.current=l,u.current=new Lc.default(l),o.current&&Pc(o.current,l)}).catch(l=>{a.setError(l),console.error(l)})},[a,e]),v.useEffect(()=>{var l,c;(l=u.current)==null||l.unmark(),r&&r.trim()&&((c=u.current)==null||c.mark(r))},[r]),v.createElement("div",{ref:l=>{o.current=l,Pc(l,s.current)},className:wt(["markdown-preview-view",$("markdown-preview-view"),n]),...i})}),qm=v.memo(function({dom:n,className:e,searchQuery:r,...i}){let{stateManager:a}=v.useContext(We),o=v.useMemo(()=>n.cloneNode(!0),[n,a]),s=v.useMemo(()=>new Lc.default(o),[o]);return v.useEffect(()=>{s.unmark(),r&&r.trim()&&s.mark(r)},[s,r]),v.createElement("div",{ref:u=>{Pc(u,o)},className:wt(["markdown-preview-view",$("markdown-preview-view"),e]),...i})});var wa=me(require("obsidian"));function _x(t,n){if(n)return n.from((0,wa.moment)());let e=(0,wa.moment)().startOf("day");if(e.isSame(t,"day"))return F("today");let r=t.diff(e,"day");return r===-1?F("yesterday"):r===1?F("tomorrow"):t.from(e)}function Ym({item:t,stateManager:n}){if(!n.useSetting("show-relative-date")||!t.data.metadata.date)return null;let r=_x(t.data.metadata.date,t.data.metadata.time);return v.createElement("span",{className:$("item-metadata-date-relative")},r)}function Jm({item:t,stateManager:n,filePath:e,onEditDate:r,onEditTime:i}){let a=n.useSetting("hide-date-display"),o=n.useSetting("date-format"),s=n.useSetting("time-format"),u=n.useSetting("date-display-format"),l=n.useSetting("link-date-to-daily-note");if(a||!t.data.metadata.date)return null;let c=t.data.metadata.date.format(o);if(!c)return null;let d=!!t.data.metadata.time,f=t.data.metadata.date.format(u),h=d?t.data.metadata.time.format(s):null,p=c?(0,wa.getLinkpath)(c):null,g=c?n.app.metadataCache.getFirstLinkpathDest(p,e):null,w=p&&l?v.createElement("a",{href:p,"data-href":p,className:`internal-link ${g?"":"is-unresolved"}`,target:"blank",rel:"noopener"},f):f,S={};return l||(S["aria-label"]=F("Change date"),S.onClick=r),v.createElement("span",{className:$("item-metadata-date-wrapper")},v.createElement("span",{...S,className:`${$("item-metadata-date")} ${l?"":"is-button"}`},w)," ",d&&v.createElement("span",{onClick:i,className:`${$("item-metadata-time")} is-button`,"aria-label":F("Change time")},h))}function Tx(t){let{stateManager:n,boardModifiers:e}=v.useContext(We),r=Wn();return v.useMemo(()=>({onEditDate:o=>{var s;Ro(n,{x:o.clientX,y:o.clientY},Ho({stateManager:n,boardModifiers:e,item:t,hasDate:!0,path:r}),(s=t.data.metadata.date)==null?void 0:s.toDate())},onEditTime:o=>{Bo(n,{x:o.clientX,y:o.clientY},Ko({stateManager:n,boardModifiers:e,item:t,hasTime:!0,path:r}),t.data.metadata.time)}}),[e,r,t,n])}function Mx(t,n){let e=0;return t.replace(/^(\s*[-+*]\s+?\[)([^\]])(\]\s+)/gm,(r,i,a,o)=>{let s=r;return e===n&&(a===" "?s=`${i}x${o}`:s=`${i} ${o}`),e++,s})}var Gm=v.memo(function({item:n,isEditing:e,setIsEditing:r,searchQuery:i}){var T;let[a,o]=v.useState(n.data.titleRaw),{stateManager:s,filePath:u,boardModifiers:l}=v.useContext(We),c=s.useSetting("hide-tags-display"),d=Wn(),{onEditDate:f,onEditTime:h}=Tx(n);v.useEffect(()=>{e&&o(n.data.titleRaw)},[e]);let p=v.useCallback(k=>{if(!tr(k,s))return k.preventDefault(),s.updateItemContent(n,a).then(D=>{l.updateItem(d,D)}).catch(D=>{s.setError(D),console.error(D)}),r(!1),!0},[s,a,n,d]),g=v.useCallback(()=>{s.updateItemContent(n,a).then(k=>{l.updateItem(d,k)}).catch(k=>{s.setError(k),console.error(k)}),r(!1)},[s,a,n,d]),w=v.useCallback(()=>(r(!1),o(n.data.titleRaw),!0),[n]),S=v.useCallback(k=>{let D=k.target;if(D.hasClass("task-list-item-checkbox")){let N=parseInt(D.dataset.checkboxIndex,10);s.updateItemContent(n,Mx(n.data.titleRaw,N)).then(C=>{l.updateItem(d,C)}).catch(C=>{s.setError(C),console.error(C)})}},[d,l,s,n]);return e?v.createElement("div",{className:$("item-input-wrapper")},v.createElement(gr,{className:$("item-input"),onChange:k=>o(k.target.value),onEnter:p,onEscape:w,onSubmit:g,value:a,onPaste:k=>{qo(k,s)}})):v.createElement("div",{className:$("item-title")},v.createElement(qm,{className:$("item-markdown"),dom:n.data.dom,searchQuery:i,onClick:S}),v.createElement("div",{className:$("item-metadata")},v.createElement(Ym,{item:n,stateManager:s}),v.createElement(Jm,{item:n,stateManager:s,filePath:u,onEditDate:f,onEditTime:h}),!c&&!!((T=n.data.metadata.tags)==null?void 0:T.length)&&v.createElement("div",{className:$("item-tags")},n.data.metadata.tags.map((k,D)=>v.createElement("a",{href:k,key:D,className:`tag ${$("item-tag")} ${k.toLocaleLowerCase().contains(i)?"is-search-match":""}`},v.createElement("span",null,k[0]),k.slice(1))))))});var ns=me(require("obsidian"));var Cx=/[\\/:"*?<>|]+/g,Dx=/!?\[\[([^\]]*)\.[^\]]+\]\]/g,Ax=/!?\[\[([^\]]*)\]\]/g,Ix=/!?\[([^\]]*)\]\([^)]*\)/g;function Qm({setIsEditing:t,item:n,path:e,boardModifiers:r,stateManager:i}){return v.useCallback((a,o)=>{if(o)i.app.workspace.onLinkContextMenu(a,(0,ns.getLinkpath)(o),i.file.path);else{let s={x:a.clientX,y:a.clientY},u=!!n.data.metadata.date,l=!!n.data.metadata.time,c=new ns.Menu(i.app).addItem(d=>{d.setIcon("pencil").setTitle(F("Edit card")).onClick(()=>t(!0))});c.addItem(d=>{d.setIcon("create-new").setTitle(F("New note from card")).onClick(async()=>{let f=n.data.title.split(`
|
||
`)[0].trim(),h=f.replace(Dx,"$1").replace(Ax,"$1").replace(Ix,"$1").replace(Cx," ").trim(),p=i.getSetting("new-note-folder"),g=i.getSetting("new-note-template"),w=p?i.app.vault.getAbstractFileByPath(p):i.app.fileManager.getNewFileParent(i.file.path),S=await i.app.fileManager.createNewMarkdownFile(w,h),T=i.app.workspace.splitActiveLeaf();await T.openFile(S),i.app.workspace.setActiveLeaf(T,!1,!0),await Kd(i,g);let k=n.data.titleRaw.replace(f,i.app.fileManager.generateMarkdownLink(S,i.file.path));i.updateItemContent(n,k).then(D=>{r.updateItem(e,D)}).catch(D=>{i.setError(D),console.error(D)})})}).addItem(d=>{d.setIcon("links-coming-in").setTitle(F("Copy link to card")).onClick(()=>{if(n.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+n.data.blockId)}`);else{let f=Ke(6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+f)}`),i.updateItemContent(n,`${n.data.titleRaw} ^${f}`).then(h=>{r.updateItem(e,h)}).catch(h=>{i.setError(h),console.error(h)})}})}).addSeparator(),/\n/.test(n.data.titleRaw)&&c.addItem(d=>{d.setIcon("split").setTitle(F("Split card")).onClick(async()=>{let f=n.data.titleRaw.split(/[\r\n]+/g).map(p=>p.trim()),h=await Promise.all(f.map(p=>i.getNewItem(p)));r.splitItem(e,h)})}),c.addItem(d=>{d.setIcon("documents").setTitle(F("Duplicate card")).onClick(()=>r.duplicateEntity(e))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card before")).onClick(async()=>r.insertItems(e,[await i.getNewItem("",!1,!0)]))}).addItem(d=>{d.setIcon("plus-with-circle").setTitle(F("Insert card after")).onClick(async()=>{let f=[...e];f[f.length-1]=f[f.length-1]+1,r.insertItems(f,[await i.getNewItem("",!1,!0)])})}).addItem(d=>{d.setIcon("sheets-in-box").setTitle(F("Archive card")).onClick(()=>r.archiveItem(e))}).addItem(d=>{d.setIcon("trash").setTitle(F("Delete card")).onClick(()=>r.deleteEntity(e))}).addSeparator().addItem(d=>{d.setIcon("calendar-with-checkmark").setTitle(u?F("Edit date"):F("Add date")).onClick(()=>{var f;Ro(i,s,Ho({stateManager:i,boardModifiers:r,item:n,hasDate:u,path:e}),(f=n.data.metadata.date)==null?void 0:f.toDate())})}),u&&(c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove date")).onClick(()=>{let f=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),p=f?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",g=new RegExp(`(^|\\s)${Fn(h)}${p}`),w=n.data.titleRaw.replace(g,"").trim();i.updateItemContent(n,w).then(S=>{r.updateItem(e,S)}).catch(S=>{i.setError(S),console.error(S)})})}),c.addItem(d=>{d.setIcon("clock").setTitle(l?F("Edit time"):F("Add time")).onClick(()=>{Bo(i,s,Ko({stateManager:i,boardModifiers:r,item:n,hasTime:l,path:e}),n.data.metadata.time)})}),l&&c.addItem(d=>{d.setIcon("cross").setTitle(F("Remove time")).onClick(()=>{let f=i.getSetting("time-trigger"),h=new RegExp(`(^|\\s)${Fn(f)}{([^}]+)}`),p=n.data.titleRaw.replace(h,"").trim();i.updateItemContent(n,p).then(g=>{r.updateItem(e,g)}).catch(g=>{i.setError(g),console.error(g)})})})),c.showAtPosition(s)}},[t,n,e,r,i])}var Xm=v.memo(function({isEditing:n,setIsEditing:e,showMenu:r}){let i=v.useMemo(()=>n?{"data-ignore-drag":!0}:{},[n]);return v.createElement("div",{...i,className:$("item-postfix-button-wrapper")},n?v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>{a.preventDefault()},onClick:()=>{e(!1)},className:`${$("item-postfix-button")} is-enabled`,"aria-label":F("Cancel")},v.createElement(en,{name:"cross"})):v.createElement("button",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:r,className:$("item-postfix-button"),"aria-label":F("More options")},v.createElement(en,{name:"vertical-three-dots"})))});function Zm({item:t,isSettingsVisible:n,searchQuery:e}){return n||!t.data.metadata.fileMetadata?null:v.createElement("div",{className:$("item-metadata-wrapper")},v.createElement(Px,{metadata:t.data.metadata.fileMetadata,order:t.data.metadata.fileMetadataOrder,searchQuery:e}))}function eg(t){return`${t.embed?"!":""}[[${t.path}${t.display?`|${t.display}`:""}]]`}function Lx({data:t,searchQuery:n}){if(Array.isArray(t.value))return v.createElement("span",{className:$("meta-value")},t.value.map((a,o,s)=>{let u=`${a}`,l=typeof a=="object"&&eg(a),c=u.toLocaleLowerCase().contains(n);return v.createElement(v.Fragment,null,l||t.containsMarkdown?v.createElement(ba,{className:"inline",markdownString:l||u,searchQuery:n}):c?v.createElement("span",{className:"is-search-match"},u):u,o<s.length-1?v.createElement("span",null,", "):"")}));let e=`${t.value}`,r=e.toLocaleLowerCase().contains(n),i=typeof t.value=="object"&&eg(t.value);return v.createElement("span",{className:`${$("meta-value")} ${r&&!t.containsMarkdown?"is-search-match":""}`},t.containsMarkdown||!!i?v.createElement(ba,{markdownString:i||e,searchQuery:n}):e)}var Px=v.memo(function({metadata:n,order:e,searchQuery:r}){return!n||!e||e.length===0?null:v.createElement("table",{className:$("meta-table")},v.createElement("tbody",null,e.map(i=>{let a=n[i];return v.createElement("tr",{key:i,className:$("meta-row")},!a.shouldHideLabel&&v.createElement("td",{className:`${$("meta-key")} ${(a.label||i).toLocaleLowerCase().contains(r)?"is-search-match":""}`,"data-key":i},v.createElement("span",null,a.label||i)),v.createElement("td",{colSpan:a.shouldHideLabel?2:1,className:$("meta-value-wrapper"),"data-value":Array.isArray(a.value)?a.value.join(", "):`${a.value}`},i==="tags"?a.value.map((o,s)=>v.createElement("a",{href:o,key:s,className:`tag ${$("item-tag")} ${o.toLocaleLowerCase().contains(r)?"is-search-match":""}`},v.createElement("span",null,o[0]),o.slice(1))):v.createElement(Lx,{data:a,searchQuery:r})))})))});var tg=v.memo(function({item:n,shouldMarkItemsComplete:e,isMatch:r,searchQuery:i}){let{stateManager:a,boardModifiers:o}=v.useContext(We),[s,u]=v.useState(!1),l=v.useContext(Et);v.useEffect(()=>{let g=()=>{s&&u(!1)};return l.dragManager.emitter.on("dragStart",g),()=>{l.dragManager.emitter.off("dragStart",g)}},[l,s]),v.useEffect(()=>{n.data.forceEditMode&&u(!0)},[n.data.forceEditMode]);let c=Wn(),d=Qm({boardModifiers:o,item:n,setIsEditing:u,stateManager:a,path:c}),f=v.useCallback(g=>{if(g.target instanceof HTMLTextAreaElement)return;g.preventDefault(),g.stopPropagation();let w=g.target instanceof HTMLAnchorElement&&g.target.hasClass("internal-link")?g.target.dataset.href:void 0;d(g.nativeEvent,w)},[d]),h=v.useCallback(()=>{u(!0)},[u]),p=v.useMemo(()=>s?{"data-ignore-drag":!0}:{},[s]);return v.createElement("div",{onContextMenu:f,onDoubleClick:h,className:$("item-content-wrapper"),...p},v.createElement("div",{className:$("item-title-wrapper"),...p},v.createElement(mp,{boardModifiers:o,item:n,path:c,shouldMarkItemsComplete:e,stateManager:a}),v.createElement(Gm,{isEditing:s,item:n,searchQuery:r?i:void 0,setIsEditing:u}),v.createElement(Xm,{isEditing:s,setIsEditing:u,showMenu:d})),v.createElement(Zm,{searchQuery:r?i:void 0,isSettingsVisible:s,item:n}))}),Oc=v.memo(function(n){let e=v.useRef(null),r=v.useRef(null),i=v.useContext(Ya),{itemIndex:a,...o}=n;gi(r,r);let s=i?o.item.data.titleSearch.contains(i):!1,u=cp(o.item);return i&&(s?u.push("is-search-hit"):u.push("is-search-miss")),v.createElement("div",{ref:r,className:$("item-wrapper")},v.createElement("div",{ref:e,className:wt([$("item"),...u])},n.isStatic?v.createElement(tg,{...o,isMatch:s,searchQuery:i}):v.createElement(ur,{elementRef:e,measureRef:r,id:n.item.id,index:a,data:n.item},v.createElement(tg,{...o,isMatch:s,searchQuery:i}))))}),ng=v.memo(function({isStatic:n,items:e,shouldMarkItemsComplete:r}){return v.createElement(v.Fragment,null,e.map((i,a)=>v.createElement(Oc,{key:i.id,item:i,itemIndex:a,shouldMarkItemsComplete:r,isStatic:n})))});var _g=me(Nc());var Tg=me(It());var Kx="scroll-container",as=8,os=["top","right","bottom","left"],Fc=class{constructor(n,e,r,i,a){this.scrollFrame=0;this.onScroll=()=>{this.activeScroll.size===0&&(this.scrollState=vl(this.scrollEl),this.handleEntityRegistration())};this.onDragEnd=()=>{this.activeScroll.clear()};this.handleBeginDragScroll=({scrollEntitySide:n,scrollStrength:e})=>{this.isDoneScrolling(n)||(this.activeScroll.set(n,e),this.handleDragScroll())};this.handleUpdateDragScroll=({scrollEntitySide:n,scrollStrength:e})=>{this.isDoneScrolling(n)||this.activeScroll.set(n,e)};this.handleEndDragScroll=({scrollEntitySide:n})=>{this.activeScroll.delete(n)};this.dndManager=n,this.instanceId=Ke(),this.scopeId=e,this.triggerTypes=r,this.scrollState=on,this.parent=i,this.activeScroll=new Map,this.pollForNodes(a)}pollForNodes(n){n()?this.initNodes(n()):requestAnimationFrame(()=>this.pollForNodes(n))}initNodes(n){this.scrollEl=n,this.scrollEl.dataset.hitboxid=this.instanceId,this.scrollEl.dataset.scrollid=this.instanceId,this.top=this.createScrollEntity("top"),this.right=this.createScrollEntity("right"),this.bottom=this.createScrollEntity("bottom"),this.left=this.createScrollEntity("left"),this.bindScrollHandlers(),this.observerHandlers=new Map,this.observer=new IntersectionObserver(e=>{e.forEach(r=>{if(r.target instanceof HTMLElement){let i=r.target.dataset.hitboxid;if(i&&this.observerHandlers.has(i)){let a=this.observerHandlers.get(i);a&&a(r)}}})},{root:n,threshold:.1}),this.scrollEl.addEventListener("scroll",this.onScroll,{passive:!0,capture:!1}),this.dndManager.emitter.on("scrollResize",this.onScroll),setTimeout(()=>{this.onScroll()}),this.dndManager.observeResize(this.scrollEl),this.parent?this.parent.registerObserverHandler(this.instanceId,this.scrollEl,e=>{e.isIntersecting?this.handleEntityRegistration():this.handleEntityUnregistration()}):this.handleEntityRegistration()}destroy(){var n;this.handleEntityUnregistration(),this.observer.disconnect(),this.unbindScrollHandlers(),this.scrollEl.removeEventListener("scroll",this.onScroll),this.dndManager.emitter.off("scrollResize",this.onScroll),(n=this.parent)==null||n.unregisterObserverHandler(this.instanceId,this.scrollEl),this.dndManager.unobserveResize(this.scrollEl)}handleEntityRegistration(){os.forEach(n=>{let e=this.getId(n),r=this.dndManager.scrollEntities.has(e),i=this.isDoneScrolling(n);!i&&!r?this.dndManager.registerScrollEntity(e,this[n]):i&&r&&this.dndManager.unregisterScrollEntity(e)})}handleEntityUnregistration(){os.forEach(n=>{let e=this.getId(n);this.dndManager.unregisterScrollEntity(e)})}registerObserverHandler(n,e,r){this.observerHandlers.set(n,r),this.observer.observe(e)}unregisterObserverHandler(n,e){this.observerHandlers.delete(n),this.observer.unobserve(e)}bindScrollHandlers(){os.forEach(n=>{let e=this.getId(n);this.dndManager.dragManager.emitter.on("beginDragScroll",this.handleBeginDragScroll,e),this.dndManager.dragManager.emitter.on("updateDragScroll",this.handleUpdateDragScroll,e),this.dndManager.dragManager.emitter.on("endDragScroll",this.handleEndDragScroll,e),this.dndManager.dragManager.emitter.on("dragEnd",this.onDragEnd)})}unbindScrollHandlers(){os.forEach(n=>{let e=this.getId(n);this.dndManager.dragManager.emitter.off("beginDragScroll",this.handleBeginDragScroll,e),this.dndManager.dragManager.emitter.off("updateDragScroll",this.handleUpdateDragScroll,e),this.dndManager.dragManager.emitter.off("endDragScroll",this.handleEndDragScroll,e),this.dndManager.dragManager.emitter.off("dragEnd",this.onDragEnd)})}isDoneScrolling(n){switch(n){case"top":return this.scrollState.y===0;case"right":return this.scrollState.x===this.scrollState.maxX;case"bottom":return this.scrollState.y===this.scrollState.maxY;case"left":return this.scrollState.x===0}}handleDragScroll(){this.activeScroll.size!==0&&requestAnimationFrame(()=>{let n={left:0,top:0};this.activeScroll.forEach((e,r)=>{if(this.isDoneScrolling(r))return this.activeScroll.delete(r);let i=["left","right"].includes(r)?"left":"top",a=["right","bottom"].includes(r);n[i]=a?Math.max(as-as*e/35,0):Math.min(-as+as*e/35,0)}),this.scrollEl.scrollBy(n),this.scrollState=vl(this.scrollEl),this.handleEntityRegistration(),this.handleDragScroll()})}getId(n){return`${this.instanceId}-${n}`}getPath(n){var e,r,i,a;switch(n){case"right":return[...((e=this.parent)==null?void 0:e.getPath())||[],1];case"bottom":return[...((r=this.parent)==null?void 0:r.getPath())||[],2];case"left":return[...((i=this.parent)==null?void 0:i.getPath())||[],3]}return[...((a=this.parent)==null?void 0:a.getPath())||[],0]}getScrollShift(){var e,r,i;let n=(e=this.parent)==null?void 0:e.getScrollShift();return{x:Qe((r=this.parent)==null?void 0:r.scrollState.x)+Qe(n==null?void 0:n.x),y:Qe((i=this.parent)==null?void 0:i.scrollState.y)+Qe(n==null?void 0:n.y)}}createScrollEntity(n){var r,i;let e=this;return{scopeId:this.scopeId,entityId:e.getId(n),initial:ml(this.scrollEl.getBoundingClientRect(),((r=this.parent)==null?void 0:r.scrollState)||on,((i=this.parent)==null?void 0:i.getScrollShift())||Rn,n),getParentScrollState(){var a;return((a=e.parent)==null?void 0:a.scrollState)||on},getParentScrollShift(){var a;return((a=e.parent)==null?void 0:a.getScrollShift())||Rn},recalcInitial(){var a,o;this.initial=ml(e.scrollEl.getBoundingClientRect(),((a=e.parent)==null?void 0:a.scrollState)||on,((o=e.parent)==null?void 0:o.getScrollShift())||Rn,n)},getHitbox(){return eo(this.initial[0],this.initial[1],this.initial[2],this.initial[3],this.getParentScrollState(),this.getParentScrollShift())},getPath(){return e.getPath(n)},getData(){return{id:e.getId(n),type:Kx,side:n,accepts:e.triggerTypes||[],scrollContainer:e.scrollEl}}}}};function ig({scrollRef:t,triggerTypes:n,children:e}){let r=v.useContext(Et),i=v.useContext(cr),a=v.useContext(Wi),o=v.useRef(),s=v.useMemo(()=>{if(r){o.current&&o.current.destroy();let u=new Fc(r,i,n||[],a,()=>t.current);return o.current=u,u}return null},[r,i,t,n,a]);return v.useEffect(()=>()=>{var u;return(u=o.current)==null?void 0:u.destroy()},[]),s?v.createElement(Wi.Provider,{value:s},e):null}function ag({children:t}){let n=v.useMemo(()=>new ji,[]);return v.createElement(qi.Provider,{value:n},t)}function og(t,n){let e=v.useContext(cr),r=v.useRef(null),i=v.useContext(qi),a=o=>{r.current=o,r.current&&requestAnimationFrame(()=>{let s=i.getScrollState(t);s&&(s.x!==0||s.y!==0)&&(r.current.scrollLeft=s.x,r.current.scrollTop=s.y)})};return v.useEffect(()=>{let o=r.current;if(!o)return;let s=So(u=>{let l=u.target;i.setScrollState(e,t,{x:l.scrollLeft,y:l.scrollTop})});return o.addEventListener("scroll",s),()=>{o.removeEventListener("scroll",s)}},[i,t,n]),{setRef:a,scrollRef:r}}function ss({className:t,children:n,triggerTypes:e,isStatic:r,id:i,index:a}){let{setRef:o,scrollRef:s}=og(i,a);return v.createElement("div",{ref:o,className:wt([t,$("scroll-container")])},r?n:v.createElement(ig,{scrollRef:s,triggerTypes:e},n))}var sg={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"};var bi={outOfTheWay:200,minDropTime:330,maxDropTime:550},yr=`${bi.outOfTheWay}ms ${sg.outOfTheWay}`;var un={none:"none",fluid:`opacity ${yr}`,snap:`transform ${yr}, opacity ${yr}`,drop:t=>{let n=`${t}ms ${sg.drop}`;return`transform ${n}, opacity ${n}`},outOfTheWay:`transform ${yr}`,placeholder:`height ${yr}, width ${yr}, margin ${yr}, border-color ${yr}`},$x=(t,n)=>t.x===n.x&&t.y===n.y,Ux={x:0,y:0},lg=t=>$x(t,Ux)?void 0:`translate(${t.x}px, ${t.y}px)`,cg={moveTo:lg,drop:t=>lg(t)},zx=bi.maxDropTime-bi.minDropTime,ug=1500,Vx=.6;function wi({position:t,destination:n,isCancel:e}){let r=Zr(t,n);if(r<=0)return bi.minDropTime;if(r>=ug)return bi.maxDropTime;let i=r/ug,a=bi.minDropTime+zx*i,o=e?a*Vx:a;return Math.round(o)}function kn(t,n,e){t.style.getPropertyValue(n)!==e&&t.style.setProperty(n,e)}function ls(t,n){t.style.getPropertyValue(n)&&t.style.removeProperty(n)}var Rc={width:0,height:0},jx=100,Hc=class{constructor(n,e,r){this.hitboxDimensions=Rc;this.handleDragStart=({dragEntity:n,dragEntityMargin:e,dragOriginHitbox:r})=>{let i=n==null?void 0:n.entityId,a=i?this.sortables.has(i):null;!n||!a||!r||(this.setSortState(!0),this.hitboxDimensions=yl(r,e),this.activatePlaceholder(this.hitboxDimensions,un.none),this.sortables.forEach(([o,s,u])=>{let l=Ui(n.getPath(),o.getPath()),c=o.entityId;if(l===an.Self)return this.hidden.add(c),this.hideDraggingEntity(u);l===an.After&&(this.shifted.has(c)||this.shifted.add(c),this.shiftEl(s,un.none,this.hitboxDimensions))}))};this.dragEndTimeout=0;this.handleDragEnd=({primaryIntersection:n,dragPosition:e,dragOriginHitbox:r,dragEntity:i})=>{if(!this.isSorting||!e||!r||!i){if(!n&&i&&this.sortables.has(i.entityId))return this.resetSelf({maintainHidden:!1});if(n&&i){let s=(n==null?void 0:n.getHitbox())||r,u=wi({position:e,destination:{x:s[0],y:s[1]}});return window.setTimeout(()=>{this.resetSelf({maintainHidden:!1})},u)}return this.resetSelf({maintainHidden:!0})}clearTimeout(this.dragEnterTimeout),clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEndTimeout);let a=(n==null?void 0:n.getHitbox())||r,o=i.scopeId==="htmldnd"?0:wi({position:e,destination:{x:a[0],y:a[1]}});this.dragEndTimeout=window.setTimeout(()=>{let s=i.entityId.split(":::").pop(),u=n==null?void 0:n.entityId.split(":::").pop();n&&this.sortables.has(n.entityId)&&u!==s&&this.dndManager.onDrop(i,n),this.resetSelf({maintainHidden:!1,shiftTransition:un.none,placeholderTransition:un.none})},o),this.hitboxDimensions=Rc};this.dragEnterTimeout=0;this.handleDragEnter=({dragEntity:n,dragEntityMargin:e,dragOriginHitbox:r,primaryIntersection:i})=>{let a=i==null?void 0:i.entityId,o=a?this.sortables.has(a):null;if(!n||!i||!o||!r){!o&&this.isSorting&&this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0});return}n.entityId!==i.entityId&&(clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEnterTimeout),this.dragEnterTimeout=window.setTimeout(()=>{this.setSortState(!0),this.hitboxDimensions=yl(r,e),this.activatePlaceholder(this.hitboxDimensions,un.placeholder),this.sortables.forEach(([s,u])=>{let l=Ui(i.getPath(),s.getPath()),c=s.entityId;!this.hidden.has(c)&&(l===an.Self||l===an.After)?this.shifted.has(c)||(this.shifted.add(c),this.shiftEl(u,un.outOfTheWay,this.hitboxDimensions)):this.shifted.has(c)&&(this.shifted.delete(c),this.resetEl(u))})},10))};this.dragLeaveTimeout=0;this.handleDragLeave=()=>{!this.isSorting||(clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEnterTimeout),this.dragLeaveTimeout=window.setTimeout(()=>{this.resetSelf({maintainHidden:!0,maintainPlaceholder:!0})},jx),this.hitboxDimensions=Rc)};this.instanceId=Ke(),this.dndManager=n,this.sortables=new Map,this.shifted=new Set,this.hidden=new Set,this.isSorting=!1,this.axis=e,this.placeholder=null,this.sortListeners=r?[r]:[],n.dragManager.emitter.on("dragStart",this.handleDragStart),n.dragManager.emitter.on("dragEnd",this.handleDragEnd),n.dragManager.emitter.on("dragEnter",this.handleDragEnter),n.dragManager.emitter.on("dragLeave",this.handleDragLeave)}destroy(){clearTimeout(this.dragLeaveTimeout),clearTimeout(this.dragEndTimeout),this.dndManager.dragManager.emitter.off("dragStart",this.handleDragStart),this.dndManager.dragManager.emitter.off("dragEnd",this.handleDragEnd),this.dndManager.dragManager.emitter.off("dragEnter",this.handleDragEnter),this.dndManager.dragManager.emitter.off("dragLeave",this.handleDragLeave)}registerSortable(n,e,r,i){let a=e.getData().type==="placeholder";this.sortables.set(n,[e,r,i]),a?(this.placeholder=[e,r,i],i.dataset.axis=this.axis,kn(i,"transition",un.none)):kn(r,"transition",un.none)}unregisterSortable(n){this.sortables.delete(n)}resetSelf({maintainHidden:n,maintainPlaceholder:e,shiftTransition:r,placeholderTransition:i}){this.isSorting&&this.setSortState(!1),this.isPlaceholderActive&&!e&&this.deactivatePlaceholder(i),this.shifted.size>0&&(this.shifted.forEach(a=>{if(this.sortables.has(a)){let[,o]=this.sortables.get(a);this.resetEl(o,r)}}),this.shifted.clear()),!n&&this.hidden.size>0&&(this.hidden.forEach(a=>{if(this.sortables.has(a)){let[,,o]=this.sortables.get(a);this.resetEl(o,r)}}),this.hidden.clear())}activatePlaceholder(n,e){if(this.placeholder){let r=this.axis==="horizontal",[,,i]=this.placeholder;kn(i,"transition",e),kn(i,r?"width":"height",`${r?n.width:n.height}px`),this.isPlaceholderActive=!0}}deactivatePlaceholder(n=un.placeholder){if(this.placeholder){let[,,e]=this.placeholder;kn(e,"transition",n),ls(e,"width"),ls(e,"height"),this.isPlaceholderActive=!1}}hideDraggingEntity(n){kn(n,"display","none")}shiftEl(n,e,r){let i=this.axis==="horizontal"?`translate3d(${r.width}px, 0, 0)`:`translate3d(0, ${r.height}px, 0)`;kn(n,"transition",e),kn(n,"transform",i)}resetEl(n,e=un.outOfTheWay){kn(n,"transition",e),kn(n,"transform","translate3d(0, 0, 0)"),ls(n,"display")}addSortNotifier(n){this.sortListeners.push(n)}removeSortNotifier(n){this.sortListeners=this.sortListeners.filter(e=>e!==n)}setSortState(n){this.isSorting!==n&&(this.isSorting=n,this.sortListeners.forEach(e=>e(n)))}};function Ei({axis:t,children:n,onSortChange:e}){let r=v.useContext(Et),i=v.useRef(),a=v.useMemo(()=>{if(r){i.current&&i.current.destroy();let o=new Hc(r,t,e);return i.current=o,o}return null},[r,t,e]);return v.useEffect(()=>()=>{var o;return(o=i.current)==null?void 0:o.destroy()},[]),a?v.createElement(Qa.Provider,{value:a},n):null}function Si({index:t,accepts:n,className:e,isStatic:r}){let i=v.useRef(null),a=v.useRef(null),o=v.useMemo(()=>({id:Ke(),type:"placeholder",accepts:n}),n);return v.createElement("div",{ref:a,className:wt([e,$("placeholder")])},v.createElement("div",{ref:i},!r&&v.createElement(ur,{elementRef:i,measureRef:a,id:o.id,index:t,data:o})))}var Wx=function(){if(typeof window=="undefined"||typeof window.addEventListener!="function")return!1;var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),e=function(){return null};return window.addEventListener("test",e,n),window.removeEventListener("test",e,n),t},qx="ignore-onclickoutside",dg=function(n,e){var r;return(r=n.classList)==null?void 0:r.contains(e)},fg=function(n,e){for(var r=n.target||n;r;){if(Array.isArray(e)){if(e.some(function(i){return dg(r,i)}))return!0}else if(dg(r,e))return!0;r=r.parentElement}return!1},Yx=function(n){return document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY},hg=function(n){return n.includes("touch")&&Wx()?{passive:!0}:!1},Jx=function(n,e){var r=e===void 0?{}:e,i=r.refs,a=r.disabled,o=r.eventTypes,s=o===void 0?["mousedown","touchstart"]:o,u=r.excludeScrollbar,l=r.ignoreClass,c=l===void 0?qx:l,d=r.detectIFrame,f=d===void 0?!0:d,h=Ka([]),p=h[0],g=h[1],w=Ua(n);w.current=n;var S=Va(function(T){return g(function(k){return[].concat(k,[{current:T}])})},[]);return $a(function(){if(!(!(i!=null&&i.length)&&!p.length)){var T=function(){var O=[];return(i||p).forEach(function(B){var z=B.current;return z&&O.push(z)}),O},k=function(O){!fg(O,c)&&!(u&&Yx(O))&&T().every(function(B){return!B.contains(O.target)})&&w.current(O)},D=function(O){return setTimeout(function(){var B=document,z=B.activeElement;(z==null?void 0:z.tagName)==="IFRAME"&&!fg(z,c)&&!T().includes(z)&&w.current(O)},0)},N=function(){s.forEach(function(O){return document.removeEventListener(O,k,hg(O))}),f&&window.removeEventListener("blur",D)};if(a){N();return}return s.forEach(function(C){return document.addEventListener(C,k,hg(C))}),f&&window.addEventListener("blur",D),function(){return N()}}},[p,c,u,a,f,JSON.stringify(s)]),S},cs=Jx;function Bc({addItems:t,isInputVisible:n,setIsInputVisible:e,hideButton:r}){let[i,a]=v.useState(""),{stateManager:o}=v.useContext(We),s=v.useRef(),u=cs(()=>{e(!1)},{ignoreClass:$("ignore-click-outside")}),l=v.useCallback(()=>{a(""),e(!1)},[]),c=async h=>{try{t(await Promise.all(h.map(p=>o.getNewItem(p))))}catch(p){o.setError(p)}},d=h=>{if(!tr(h,o)){h.preventDefault();let p=i.trim();p&&(c([p]),a(""))}},f=()=>{let h=i.trim();h&&(c([h]),a(""))};return n?v.createElement("div",{className:$("item-form"),ref:u},v.createElement("div",{className:$("item-input-wrapper")},v.createElement(gr,{ref:s,className:$("item-input"),placeholder:F("Card title..."),onEnter:d,onEscape:l,onSubmit:f,value:i,onChange:h=>{a(h.target.value)},onPaste:h=>{qo(h,o)}}))):r?null:v.createElement("div",{className:$("item-button-wrapper")},v.createElement("button",{className:$("new-item-button"),onClick:()=>e(!0),onDragOver:h=>{Wo(o,h.dataTransfer)&&e(!0)}},v.createElement("span",{className:$("item-button-plus")},"+")," ",F("Add a card")))}var xg=me(It());function pg(t){return v.createElement("svg",{...t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v.createElement("path",{fill:"currentColor",d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"}))}var mg=me(require("obsidian"));var gg={delete:{description:F("Are you sure you want to delete this list and all its cards?"),confirm:F("Yes, delete list")},archive:{description:F("Are you sure you want to archive this list and all its cards?"),confirm:F("Yes, archive list")},"archive-items":{description:F("Are you sure you want to archive all cards in this list?"),confirm:F("Yes, archive cards")}};function vg({action:t,cancel:n,onAction:e,lane:r}){return v.useEffect(()=>{t&&r.children.length===0&&e()},[t,r.children.length]),!t||t&&r.children.length===0?null:v.createElement("div",{className:$("action-confirm-wrapper")},v.createElement("div",{className:$("action-confirm-text")},gg[t].description),v.createElement("div",null,v.createElement("button",{onClick:e,className:$("confirm-action-button")},gg[t].confirm),v.createElement("button",{onClick:n,className:$("cancel-action-button")},"Cancel")))}function yg({setIsEditing:t,path:n}){let{stateManager:e,boardModifiers:r}=v.useContext(We),[i,a]=v.useState(null);return{settingsMenu:v.useMemo(()=>new mg.Menu(e.app).addItem(s=>{s.setIcon("pencil").setTitle(F("Edit list")).onClick(()=>t(!0))}).addItem(s=>{s.setIcon("documents").setTitle(F("Archive cards")).onClick(()=>a("archive-items"))}).addSeparator().addItem(s=>{s.setIcon("plus-with-circle").setTitle(F("Insert list before")).onClick(()=>r.insertLane(n,{...mr,id:Ke(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}}))}).addItem(s=>{s.setIcon("plus-with-circle").setTitle(F("Insert list after")).onClick(()=>{let u=[...n];u[u.length-1]=u[u.length-1]+1,r.insertLane(u,{...mr,id:Ke(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}})})}).addSeparator().addItem(s=>{s.setIcon("sheets-in-box").setTitle(F("Archive list")).onClick(()=>a("archive"))}).addItem(s=>{s.setIcon("trash").setTitle(F("Delete list")).onClick(()=>a("delete"))}),[e,a,n]),confirmAction:i,setConfirmAction:a}}var bg=me(It());function wg({lane:t,lanePath:n}){let{boardModifiers:e}=v.useContext(We);return v.createElement("div",{className:$("lane-setting-wrapper")},v.createElement("div",{className:$("checkbox-wrapper")},v.createElement("div",{className:$("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>e.updateLane(n,(0,bg.default)(t,{data:{$toggle:["shouldMarkItemsComplete"]}})),className:`checkbox-container ${t.data.shouldMarkItemsComplete?"is-enabled":""}`})))}var Eg=me(require("obsidian"));function Sg({itemCount:t,isEditing:n,setIsEditing:e,title:r,onChange:i}){let{stateManager:a}=v.useContext(We),o=v.useRef(),s=c=>{tr(c,a)||(c.preventDefault(),n&&e(!1))},u=()=>{n&&e(!1)},l=()=>{n&&e(!1)};return v.useEffect(()=>{if(n&&o.current){let c=o.current;o.current.focus(),c.selectionStart=c.selectionEnd=c.value.length}},[n]),v.createElement(v.Fragment,null,v.createElement("div",{className:$("lane-title")},n?v.createElement(gr,{ref:o,className:$("lane-input"),onChange:i,onEnter:s,onEscape:l,onSubmit:u,value:r}):v.createElement(v.Fragment,null,v.createElement("div",{className:$("lane-title-text"),onContextMenu:c=>{c.preventDefault(),c.stopPropagation();let d=c.target instanceof HTMLAnchorElement&&c.target.hasClass("internal-link")?c.target.dataset.href:void 0;d&&a.app.workspace.onLinkContextMenu(c,(0,Eg.getLinkpath)(d),a.file.path)}},v.createElement(ba,{markdownString:r})))),!n&&v.createElement("div",{className:$("lane-title-count")},t))}var kg=v.memo(function({lane:n,laneIndex:e,dragHandleRef:r,setIsItemInputVisible:i}){let{boardModifiers:a,stateManager:o}=v.useContext(We),[s,u]=v.useState(!1),l=Wn(e),{settingsMenu:c,confirmAction:d,setConfirmAction:f}=yg({setIsEditing:u,path:l});return v.useEffect(()=>{n.data.forceEditMode&&u(!0)},[n.data.forceEditMode]),v.createElement(v.Fragment,null,v.createElement("div",{onDoubleClick:()=>u(!0),className:$("lane-header-wrapper")},v.createElement("div",{className:$("lane-grip"),ref:r},v.createElement(pg,null)),v.createElement(Sg,{isEditing:s,setIsEditing:u,itemCount:n.children.length,title:n.data.title,onChange:h=>{a.updateLane(l,(0,xg.default)(n,{data:{title:{$set:h.target.value}}}))}}),v.createElement("div",{className:$("lane-settings-button-wrapper")},s?v.createElement("button",{onClick:()=>{u(!1)},"aria-label":"Close",className:`${$("lane-settings-button")} is-enabled`},v.createElement(en,{name:"cross"})):v.createElement(v.Fragment,null,i&&v.createElement("button",{"aria-label":F("Add a card"),className:$("lane-settings-button"),onClick:()=>{i(!0)},onDragOver:h=>{Wo(o,h.dataTransfer)&&i(!0)}},v.createElement(en,{name:"plus-with-circle"})),v.createElement("button",{"aria-label":F("More options"),className:$("lane-settings-button"),onClick:h=>{c.showAtPosition({x:h.clientX,y:h.clientY})}},v.createElement(en,{name:"vertical-three-dots"}))))),s&&v.createElement(wg,{lane:n,lanePath:l}),d&&v.createElement(vg,{lane:n,action:d,onAction:()=>{switch(d){case"archive":a.archiveLane(l);break;case"archive-items":a.archiveLaneItems(l);break;case"delete":a.deleteEntity(l);break}f(null)},cancel:()=>f(null)}))});var Mg=[Xe.Item],Kc=v.memo(function({isStatic:n,lane:e,laneIndex:r}){let{stateManager:i,boardModifiers:a}=v.useContext(We),[o,s]=v.useState(!1),u=Wn(r),l=i.useSetting("lane-width"),c=i.useSetting("new-card-insertion-method"),d=!!e.data.shouldMarkItemsComplete,f=l?{width:`${l}px`}:void 0,h=v.useRef(null),p=v.useRef(null),g=v.useRef(null),[w,S]=v.useState(!1),T=c==="prepend-compact",k=T||c==="prepend";gi(p,g);let D=O=>{a[k?"prependItems":"appendItems"]([...u,e.children.length-1],O.map(B=>(0,Tg.default)(B,{data:{isComplete:{$set:d}}}))),setTimeout(()=>{var z;let B=(z=h.current)==null?void 0:z.getElementsByClassName($("lane-items"));B.length&&(0,_g.default)([0,k?0:B[0].scrollHeight],{elementToScroll:B[0],speed:200,minDuration:150,easing:Q=>Q===1?1:1-Math.pow(2,-10*Q)})})},N=v.createElement(v.Fragment,null,v.createElement(ng,{items:e.children,isStatic:n,shouldMarkItemsComplete:d}),v.createElement(Si,{accepts:Mg,index:e.children.length,isStatic:n})),C=v.createElement(ss,{id:e.id,index:r,className:wt([$("lane-items"),$("vertical")]),triggerTypes:Mg,isStatic:n},n?N:v.createElement(Ei,{onSortChange:S,axis:"vertical"},N));return v.createElement("div",{ref:p,className:wt([$("lane-wrapper"),{"is-sorting":w}]),style:f},v.createElement("div",{"data-count":e.children.length,ref:h,className:wt([$("lane"),{"will-prepend":k}])},v.createElement(kg,{dragHandleRef:g,laneIndex:r,lane:e,setIsItemInputVisible:T?s:void 0}),k&&v.createElement(Bc,{addItems:D,hideButton:T,isInputVisible:o,setIsInputVisible:s}),n?C:v.createElement(ur,{elementRef:h,measureRef:p,id:e.id,index:r,data:e},C),!k&&v.createElement(Bc,{addItems:D,isInputVisible:o,setIsInputVisible:s})))}),Cg=v.memo(function({lanes:n}){return v.createElement(v.Fragment,null,n.map((e,r)=>v.createElement(Kc,{lane:e,laneIndex:r,key:e.id})))});var Dg=me(require("obsidian"));function us(){return{events:{},emit(t,n,e){let r=`${t}${e||""}`,i=this.events[t],a=this.events[r];if(!i&&!a){console.warn("Event emitted with no handler",t,e);return}e&&a&&a.forEach(o=>o(n)),i&&i.forEach(o=>o(n))},on(t,n,e){let r=`${t}${e||""}`,i=this.events[r];return i||(this.events[r]=i=[]),i.push(n),()=>this.off(t,n,e)},off(t,n,e){let r=`${t}${e||""}`,i=this.events[r];i&&(i.splice(i.indexOf(n)>>>0,1),i.length===0&&delete this.events[r])}}}var $c=class{constructor(n){this.scrollResizeDebounce=0;this.handleResize=n=>{n.forEach(e=>{e.target.dataset.scrollid&&(clearTimeout(this.scrollResizeDebounce),this.scrollResizeDebounce=window.setTimeout(()=>{this.emitter.emit("scrollResize",null)},50))}),this.hitboxEntities.forEach(e=>{e.recalcInitial()}),this.scrollEntities.forEach(e=>{e.recalcInitial()})};this.emitter=us(),this.hitboxEntities=new Map,this.scrollEntities=new Map,this.onDrop=n,this.resizeObserver=new ResizeObserver((0,Dg.debounce)(this.handleResize,100,!0)),this.dragManager=new Xl(this.emitter,this.hitboxEntities,this.scrollEntities)}destroy(){this.resizeObserver.disconnect()}observeResize(n){n instanceof Element&&this.resizeObserver.observe(n,{box:"border-box"})}unobserveResize(n){n instanceof Element&&this.resizeObserver.unobserve(n)}registerHitboxEntity(n,e){this.hitboxEntities.set(n,e)}registerScrollEntity(n,e){this.scrollEntities.set(n,e)}unregisterHitboxEntity(n){this.hitboxEntities.delete(n)}unregisterScrollEntity(n){this.scrollEntities.delete(n)}};function ds({children:t,onDrop:n}){let e=v.useRef(n);e.current=n;let r=v.useMemo(()=>new $c((i,a)=>e.current(i,a)),[]);return v.useEffect(()=>()=>{r.destroy()},[r]),v.createElement(Et.Provider,{value:r},v.createElement(ag,null,t))}function Uc(t,n,e,r,i,a){let o=[e[0]-r[0],e[1]-r[1],e[2]+r[2],e[3]+r[3]];return{transform:a||`translate3d(${t.x-n.x+o[0]}px, ${t.y-n.y+o[1]}px, 0px)`,width:`${o[2]-o[0]}px`,height:`${o[3]-o[1]}px`,transition:i}}function fs({children:t}){let n=v.useContext(Et),[e,r]=v.useState(),[i,a]=v.useState();return v.useEffect(()=>{if(!n)return;let o=zd,s=({dragEntity:c,dragOrigin:d,dragPosition:f,dragEntityMargin:h})=>{!c||!f||!d||(o=c.getHitbox(),r(c),a(Uc(f,d,o,h)))},u=({dragOrigin:c,dragPosition:d,dragEntityMargin:f})=>{!d||!c||a(Uc(d,c,o,f))},l=({dragOrigin:c,primaryIntersection:d,dragPosition:f,dragEntityMargin:h})=>{if(d&&f&&c){let p=d.getHitbox(),g={x:p[0],y:p[1]},w=wi({position:f,destination:g}),S=un.drop(w),T=cg.drop(g);a(Uc(f,c,o,h,S,T)),setTimeout(()=>{r(void 0),a(void 0)},w)}else r(void 0),a(void 0)};return n.dragManager.emitter.on("dragStart",s),n.dragManager.emitter.on("dragMove",u),n.dragManager.emitter.on("dragEnd",l),()=>{n.dragManager.emitter.off("dragStart",s),n.dragManager.emitter.off("dragMove",u),n.dragManager.emitter.off("dragEnd",l)}},[n]),!e||!i?null:t(e,i)}function Ag(){let t=v.useContext(Et),[n,e]=v.useState(!1);return v.useEffect(()=>{let r=()=>{e(!0)},i=({primaryIntersection:a,dragPosition:o})=>{let s=(a==null?void 0:a.getHitbox())||[0,0],u={x:s[0],y:s[1]},l=wi({position:o||u,destination:u});setTimeout(()=>{e(!1)},l)};return t.dragManager.emitter.on("dragStart",r),t.dragManager.emitter.on("dragEnd",i),()=>{t.dragManager.emitter.off("dragStart",r),t.dragManager.emitter.off("dragEnd",i)}},[t]),n}var Ea=me(It()),Ig=me(require("obsidian"));function hs(t){let n=e=>{let r=t.getSetting("prepend-archive-format"),i=t.getSetting("prepend-archive-separator"),a=[(0,Ig.moment)().format(r)];i&&a.push(i),a.push(e.data.titleRaw);let o=a.join(" ");return t.updateItemContent(e,o)};return{appendItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>ul(i,e,r))},prependItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>Rd(i,e,r))},insertItems:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>lr(i,e,r))},splitItem:(e,r)=>{r.forEach(i=>t.app.workspace.trigger("kanban:card-added",t.file,i)),t.setState(i=>lr(kr(i,e),e,r))},addLane:e=>{t.app.workspace.trigger("kanban:lane-added",t.file,e),t.setState(r=>ul(r,[],[e]))},insertLane:(e,r)=>{t.app.workspace.trigger("kanban:lane-added",t.file,r),t.setState(i=>lr(i,e,[r]))},updateLane:(e,r)=>{t.app.workspace.trigger("kanban:lane-updated",t.file,r),t.setState(i=>dl(i,e,{children:{[e[e.length-1]]:{$set:r}}}))},archiveLane:e=>{t.setState(async r=>{let i=vt(r,e),a=i.children;t.app.workspace.trigger("kanban:lane-archived",t.file,i);try{return(0,Ea.default)(kr(r,e),{data:{archive:{$unshift:t.getSetting("prepend-archive-date")?await Promise.all(a.map(n)):a}}})}catch(o){return t.setError(o),r}})},archiveLaneItems:e=>{t.setState(async r=>{let a=vt(r,e).children;t.app.workspace.trigger("kanban:lane-cards-archived",t.file,a);try{return(0,Ea.default)(Hd(r,e,{children:{$set:[]}}),{data:{archive:{$unshift:t.getSetting("prepend-archive-date")?await Promise.all(a.map(n)):a}}})}catch(o){return t.setError(o),r}})},deleteEntity:e=>{t.setState(r=>{let i=vt(r,e);return t.app.workspace.trigger(`kanban:${i.type}-deleted`,t.file,i),kr(r,e)})},updateItem:(e,r)=>{t.setState(i=>{let a=vt(i,e);return t.app.workspace.trigger("kanban:card-updated",t.file,a,r),dl(i,e,{children:{[e[e.length-1]]:{$set:r}}})})},archiveItem:e=>{t.setState(async r=>{let i=vt(r,e);t.app.workspace.trigger("kanban:card-archived",t.file,e,i);try{return(0,Ea.default)(kr(r,e),{data:{archive:{$push:[t.getSetting("prepend-archive-date")?await n(i):i]}}})}catch(a){return t.setError(a),r}})},duplicateEntity:e=>{t.setState(r=>{let i=vt(r,e);t.app.workspace.trigger(`kanban:${i.type}-duplicated`,t.file,e,i);let a=(0,Ea.default)(i,{id:{$set:Ke()}});return lr(r,e,[a])})}}}function Pg(t){return v.createElement(Qx,{plugin:t})}var Gx=v.memo(function({view:n}){return ol(n.getPortal(),n.contentEl)});function Qx({plugin:t}){let n=t.useViewState(),e=n.map(i=>v.createElement(Gx,{key:i.id,view:i})),r=v.useCallback((i,a)=>{if(!i||!a)return;if(i.scopeId==="htmldnd"){let f=i.getData(),h=t.getStateManagerFromViewID(f.viewId),p=a.getPath(),g=vt(h.state,p.slice(0,-1));(S=>Promise.all(S.map(T=>h.getNewItem(T))))(f.content).then(S=>{let T=S.map(k=>{var D;return(0,Lg.default)(k,{data:{isComplete:{$set:!!((D=g==null?void 0:g.data)==null?void 0:D.shouldMarkItemsComplete)}}})});return h.setState(k=>lr(k,p,T))}).catch(S=>{h.setError(S),console.error(S)});return}let o=i.getPath(),s=a.getPath(),[,u]=i.scopeId.split(":::"),[,l]=a.scopeId.split(":::");if(u===l){let f=t.getStateManagerFromViewID(i.scopeId);return t.app.workspace.trigger("kanban:card-moved",f.file,o,s,i.getData()),f.setState(h=>Fd(h,o,s,p=>p.type===Xe.Item?hl(h,o,h,s,p):p))}let c=t.getStateManagerFromViewID(i.scopeId),d=t.getStateManagerFromViewID(a.scopeId);c.setState(f=>{let h=vt(f,o);return d.setState(p=>{let g=h.type===Xe.Item?hl(f,o,p,s,h):h;return lr(p,s,[g])}),kr(f,o)})},[n]);if(e.length)return v.createElement(ds,{onDrop:r},e,v.createElement(fs,null,(i,a)=>{let[o,s]=v.useMemo(()=>{if(i.scopeId==="htmldnd")return[null,null];let u=t.getKanbanView(i.scopeId),l=t.stateManagers.get(u.file),c=vt(l.state,i.getPath()),d=hs(l),f=u.file.path;return[c,{view:u,stateManager:l,boardModifiers:d,filePath:f}]},[i]);return(o==null?void 0:o.type)===Xe.Lane?v.createElement(We.Provider,{value:s},v.createElement("div",{className:$("drag-container"),style:a},v.createElement(Kc,{lane:o,laneIndex:0,isStatic:!0}))):(o==null?void 0:o.type)===Xe.Item?v.createElement(We.Provider,{value:s},v.createElement("div",{className:$("drag-container"),style:a},v.createElement(Oc,{item:o,itemIndex:0,isStatic:!0}))):v.createElement("div",null)}))}var Jc=me(It()),ev=me(require("obsidian"));var $g=me(Nc());var Ug=me(It()),zg=me(require("obsidian")),ms=me(ql());function ps({id:t,children:n}){let e=v.useContext(qi),r=v.useMemo(()=>t||Ke(),[t]);return v.useEffect(()=>()=>{e.unmountScope(t)},[t]),v.createElement(cr.Provider,{value:r},n)}var dn="kanban-plugin",Og;(function(n){n[n.List=0]="List"})(Og||(Og={}));var Ng=`**${F("Complete")}**`,Fg="***",zc=["---","",`${dn}: basic`,"","---","",""].join(`
|
||
`);function Rg(t){return["","","%% kanban:settings","```",JSON.stringify(t),"```","%%"].join(`
|
||
`)}function Hg(t,n,e){let r=t.innerText.trim();if((n==null?void 0:n.length)&&(r+=" "+n.join(" ")),e){let i=Object.keys(e).join(" "),a=Object.values(e).map(o=>Array.isArray(o.value)?o.value.join(" "):o.value.toString()).join(" ");r+=" "+i+" "+a}return r.toLocaleLowerCase()}function Xx(t,n,e){var r,i,a;if(t.plugins.enabledPlugins.has("dataview")&&((a=(i=(r=t.plugins)==null?void 0:r.plugins)==null?void 0:i.dataview)==null?void 0:a.api))return t.plugins.plugins.dataview.api.page(n.path,e.path)}function Vc(t,n){let e=t.getSetting("metadata-keys");if(!e.length)return{};if(!n)return{};let r=t.app.metadataCache.getFileCache(n),i=Xx(t.app,n,t.file);if(!r&&!i)return{};let a={},o={},s={},u=[],l=!1;return e.forEach(c=>{var d;if(!s[c.metadataKey]){if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let f=(r==null?void 0:r.tags)||[];if(Array.isArray((d=r==null?void 0:r.frontmatter)==null?void 0:d.tags)&&(f=[].concat(f,r.frontmatter.tags.map(h=>({tag:`#${h}`})))),(f==null?void 0:f.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:f.map(h=>h.tag).filter(h=>o[h]?!1:(o[h]=!0,!0))},l=!0;return}if((r==null?void 0:r.frontmatter)&&r.frontmatter[c.metadataKey])u.push(c.metadataKey),a[c.metadataKey]={...c,value:r.frontmatter[c.metadataKey]},l=!0;else if(i&&i[c.metadataKey]){let f=i[c.metadataKey],h=f.values||f.val||f;if(h===f&&typeof h=="object")h={...f};else if(!Array.isArray(h)&&typeof h!="string"&&typeof h!="number")return;u.push(c.metadataKey),a[c.metadataKey]={...c,value:h},l=!0}}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function Bg(t,n){return!t&&n?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","hide-date-in-title","hide-tags-in-title"].every(r=>t[r]===n[r])}function Kg({onNewLane:t,closeLaneForm:n}){let{boardModifiers:e,stateManager:r}=v.useContext(We),[i,a]=v.useState(!1),[o,s]=v.useState(""),u=v.useRef(),l=cs(()=>{n()},{ignoreClass:$("ignore-click-outside")});v.useLayoutEffect(()=>{var d;(d=u.current)==null||d.focus()},[]);let c=()=>{e.addLane({...mr,id:Ke(),children:[],data:{title:o,shouldMarkItemsComplete:i}}),s(""),a(!1),t()};return v.createElement("div",{ref:l,className:$("lane-form-wrapper")},v.createElement("div",{className:$("lane-input-wrapper")},v.createElement(gr,{ref:u,className:$("lane-input"),onChange:d=>s(d.target.value),onEnter:d=>{tr(d,r)||(d.preventDefault(),c())},onSubmit:()=>{c()},onEscape:n,value:o})),v.createElement("div",{className:$("checkbox-wrapper")},v.createElement("div",{className:$("checkbox-label")},F("Mark cards in this list as complete")),v.createElement("div",{onClick:()=>a(!i),className:`checkbox-container ${i?"is-enabled":""}`})),v.createElement("div",{className:$("lane-input-actions")},v.createElement("button",{className:$("lane-action-add"),onClick:c},F("Add list")),v.createElement("button",{className:$("lane-action-cancel"),onClick:n},F("Cancel"))))}var Zx=[Xe.Item,Xe.Lane],ek=[Xe.Lane],Vg=({view:t,stateManager:n})=>{let e=n.useState(),r=Ag(),i=v.useRef(null),a=v.useRef(null),[o,s]=v.useState(""),[u,l]=v.useState(!1),[c,d]=v.useState(""),[f,h]=v.useState((e==null?void 0:e.children.length)===0),p=n.file.path,g=n.useSetting("max-archive-size"),w=v.useCallback(()=>{(e==null?void 0:e.children.length)>0&&h(!1)},[e==null?void 0:e.children.length]);v.useEffect(()=>{(e==null?void 0:e.children.length)===0&&h(!0)},[e==null?void 0:e.children.length]);let S=v.useCallback(()=>{setTimeout(()=>{var B;let O=(B=i.current)==null?void 0:B.getElementsByClassName($("board"));O.length&&(0,$g.default)([O[0].scrollWidth,0],{elementToScroll:O[0],speed:300,minDuration:150,easing:z=>z===1?1:1-Math.pow(2,-10*z)})})},[]);v.useEffect(()=>{let O=z=>{z==="editor:open-search"&&l(Q=>!Q)},B=()=>{h(!0)};return t.emitter.on("hotkey",O),t.emitter.on("showLaneForm",B),()=>{t.emitter.off("hotkey",O),t.emitter.off("showLaneForm",B)}},[t]),v.useEffect(()=>{var O;u&&((O=a.current)==null||O.focus())},[u]),v.useEffect(()=>{let O=o.trim(),B;return O?B=window.setTimeout(()=>{d(O)},250):d(""),()=>{window.clearTimeout(B)}},[o]),v.useEffect(()=>{g===void 0||g===-1||typeof g=="number"&&(e==null?void 0:e.data.archive.length)>g&&n.setState(O=>(0,Ug.default)(O,{data:{archive:{$set:O.data.archive.slice(g*-1)}}}))},[e==null?void 0:e.data.archive.length,g]);let T=v.useMemo(()=>hs(n),[n]),k=v.useCallback(O=>{let B=O.target;B.tagName==="A"&&B.hasClass("internal-link")&&t.app.workspace.trigger("hover-link",{event:O.nativeEvent,source:dn,hoverParent:t,targetEl:B,linktext:B.getAttr("href"),sourcePath:t.file.path})},[t]),D=v.useCallback(async O=>{if(O.type==="auxclick"&&O.button==2)return;let B=O.target,z=B.tagName==="A"?B:B.closest("a");if(!!z){if(z.hasClass("file-link")){O.preventDefault();let Q=z.getAttribute("href"),X=Pr(Q),ie=typeof Q=="string"&&t.app.metadataCache.getFirstLinkpathDest(X.root,t.file.path);if(!ie)return;n.app.openWithDefaultApp(ie.path);return}if(z.hasClass("internal-link")){O.preventDefault();let Q=z.getAttr("href"),X=O.button===1||O.ctrlKey||O.metaKey;if(z.hasClass("is-unresolved")&&(0,ms.appHasDailyNotesPluginLoaded)()){let q=n.getSetting("date-format"),J=(0,zg.moment)(Q,q,!0);if(J.isValid()){try{let te=await(0,ms.createDailyNote)(J);await(X?t.app.workspace.splitActiveLeaf():t.app.workspace.getUnpinnedLeaf()).openFile(te,{active:!0})}catch(te){console.error(te),n.setError(te)}return}}n.app.workspace.openLinkText(Q,p,X);return}if(z.hasClass("tag")){O.preventDefault(),n.app.internalPlugins.getPluginById("global-search").instance.openGlobalSearch(`tag:${z.getAttr("href")}`);return}z.hasClass("external-link")&&(O.preventDefault(),window.open(z.getAttr("href"),"_blank"))}},[n,p]),N=v.useMemo(()=>({view:t,stateManager:n,boardModifiers:T,filePath:p}),[t,n,T,p]),C=fp(n);return e==null?v.createElement("div",{className:$("loading")},v.createElement("div",{className:"sk-pulse"})):e.data.errors.length>0?v.createElement("div",null,v.createElement("div",null,"Error:"),e.data.errors.map((O,B)=>v.createElement("div",{key:B},v.createElement("div",null,O.description),v.createElement("pre",null,O.stack)))):v.createElement(ps,{id:t.id},v.createElement(We.Provider,{value:N},v.createElement(Ya.Provider,{value:c?c.toLocaleLowerCase():null},v.createElement("div",{ref:i,className:wt([fl,{"something-is-dragging":r}]),onMouseOver:k,onClick:D,onAuxClick:D,...C},(f||e.children.length===0)&&v.createElement(Kg,{onNewLane:S,closeLaneForm:w}),u&&v.createElement("div",{className:$("search-wrapper")},v.createElement("input",{ref:a,value:o,onChange:O=>{s(O.target.value)},onKeyDown:O=>{O.key==="Escape"&&(s(""),d(""),O.target.blur(),l(!1))},type:"text",className:$("filter-input"),placeholder:F("Search...")}),v.createElement("button",{className:$("search-cancel-button"),onClick:()=>{s(""),d(""),l(!1)},"aria-label":F("Cancel")},v.createElement(en,{name:"cross"}))),v.createElement(ss,{id:t.id,className:wt([$("board"),$("horizontal"),{"is-adding-lane":f}]),triggerTypes:Zx},v.createElement("div",null,v.createElement(Ei,{axis:"horizontal"},v.createElement(Cg,{lanes:e.children}),v.createElement(Si,{className:$("lane-placeholder"),accepts:ek,index:e.children.length}))))))))};var Qg=me(It()),$e=me(require("obsidian"));var Or=me(It());function jg({isStatic:t,itemIndex:n,item:e,toggleShouldHideLabel:r,toggleContainsMarkdown:i,deleteKey:a,updateKey:o,updateLabel:s}){let u=v.useRef(null),l=v.useRef(null),c=v.useRef(null);gi(l,c);let d=v.createElement("div",{className:$("setting-controls-wrapper")},v.createElement("div",{className:$("setting-input-wrapper")},v.createElement("div",null,v.createElement("div",{className:$("setting-item-label")},F("Metadata key")),v.createElement("input",{type:"text",value:e.data.metadataKey,onChange:f=>o(f.target.value)})),v.createElement("div",null,v.createElement("div",{className:$("setting-item-label")},F("Display label")),v.createElement("input",{type:"text",value:e.data.label,onChange:f=>s(f.target.value)}))),v.createElement("div",{className:$("setting-toggle-wrapper")},v.createElement("div",null,v.createElement("div",{className:`checkbox-container ${e.data.shouldHideLabel?"is-enabled":""}`,onClick:r,"aria-label":F("Hide label")}),v.createElement("div",{className:$("setting-item-label")},F("Hide label"))),v.createElement("div",null,v.createElement("div",{className:`checkbox-container ${e.data.containsMarkdown?"is-enabled":""}`,onClick:i,"aria-label":F("Field contains markdown")}),v.createElement("div",{className:$("setting-item-label")},F("Field contains markdown")))));return v.createElement("div",{ref:l,className:$("setting-item-wrapper")},v.createElement("div",{ref:u,className:$("setting-item")},t?d:v.createElement(ur,{elementRef:u,measureRef:l,id:e.id,index:n,data:e},d),v.createElement("div",{className:$("setting-button-wrapper")},v.createElement("div",{onClick:a,"aria-label":F("Delete")},v.createElement(en,{name:"cross"})),v.createElement("div",{className:"mobile-option-setting-drag-icon","aria-label":F("Drag to rearrange"),ref:c},v.createElement(en,{name:"three-horizontal-bars"})))))}function tk({onChange:t,inputValue:n,keys:e,setKeys:r}){let i=a=>{t(a),r(a)};return{updateKey:a=>o=>{i((0,Or.default)(e,{[a]:{data:{metadataKey:{$set:o}}}}))},updateLabel:a=>o=>{i((0,Or.default)(e,{[a]:{data:{label:{$set:o}}}}))},toggleShouldHideLabel:a=>()=>{i((0,Or.default)(e,{[a]:{data:{$toggle:["shouldHideLabel"]}}}))},toggleContainsMarkdown:a=>()=>{i((0,Or.default)(e,{[a]:{data:{$toggle:["containsMarkdown"]}}}))},deleteKey:a=>()=>{i((0,Or.default)(e,{$splice:[[a,1]]}))},newKey:()=>{i((0,Or.default)(e,{$push:[{...Vo,id:Ke(),data:{metadataKey:n,label:"",shouldHideLabel:!1,containsMarkdown:!1}}]}))},moveKey:(a,o)=>{let s=a.getPath(),u=o.getPath(),l=s[s.length-1],c=u[u.length-1];if(l===c)return;let d=e.slice(),[f]=d.splice(l,1);d.splice(c,0,f),i(d)}}}var nk=[Xe.MetadataSetting];function rk({keys:t}){return v.createPortal(v.createElement(fs,null,(n,e)=>{let i=n.getPath()[0],a=t[i];return v.createElement("div",{className:$("drag-container"),style:e},v.createElement(jg,{item:a,itemIndex:i,updateKey:Qr,updateLabel:Qr,toggleShouldHideLabel:Qr,toggleContainsMarkdown:Qr,deleteKey:Qr,isStatic:!0}))}),document.body)}function ik({scrollEl:t}){let n=v.useContext(Et);return v.useEffect(()=>{let e=0,r=()=>{clearTimeout(e),e=window.setTimeout(()=>{n.hitboxEntities.forEach(i=>{i.recalcInitial()})},100)};return t.addEventListener("scroll",r,{passive:!0,capture:!1}),()=>{t.removeEventListener("scroll",r)}},[t,n]),null}function ak(t){let[n,e]=v.useState(t.dataKeys),[r,i]=v.useState(""),{getShouldIMEBlockAction:a,...o}=Ga(),{updateKey:s,updateLabel:u,toggleShouldHideLabel:l,toggleContainsMarkdown:c,deleteKey:d,newKey:f,moveKey:h}=tk({onChange:t.onChange,inputValue:r,keys:n,setKeys:e});return v.createElement(v.Fragment,null,v.createElement(ds,{onDrop:h},v.createElement(ik,{scrollEl:t.scrollEl}),v.createElement(ps,null,v.createElement(Ei,{axis:"vertical"},n.map((p,g)=>v.createElement(jg,{key:p.id,item:p,itemIndex:g,updateKey:s(g),updateLabel:u(g),toggleShouldHideLabel:l(g),toggleContainsMarkdown:c(g),deleteKey:d(g)})),v.createElement(Si,{accepts:nk,index:n.length}))),v.createElement(rk,{keys:n})),v.createElement("div",{className:$("setting-key-input-wrapper")},v.createElement("input",{placeholder:F("Metadata key"),type:"text",value:r,onChange:p=>i(p.target.value),onKeyDown:p=>{if(!a()){if(p.key==="Enter"){f(),i("");let g=p.target;setTimeout(()=>{g.scrollIntoView()});return}p.key==="Escape"&&(i(""),p.target.blur())}},...o}),v.createElement("button",{onClick:p=>{f(),i("");let g=p.target;setTimeout(()=>{g.scrollIntoView()})}},F("Add key"))))}function Wg(t,n,e,r){v.render(v.createElement(ak,{dataKeys:e,scrollEl:n,onChange:r}),t)}function qg(t){v.unmountComponentAtNode(t)}var Jg=me(Yg()),vs=me(It()),br=me(require("obsidian"));var ys="@",bs="@@";function ok(t){let n=[];return br.Vault.recurseChildren(t.vault.getRoot(),e=>{e instanceof br.TFolder&&n.push({value:e.path,label:e.path,selected:!1,disabled:!1})}),n}function sk(t,n){let e=[],r=n?t.vault.getAbstractFileByPath(n):null;return(!r||!(r instanceof br.TFolder))&&(r=t.vault.getRoot()),br.Vault.recurseChildren(r,i=>{i instanceof br.TFile&&e.push({value:i.path,label:i.basename,selected:!1,disabled:!1})}),e}function Gg(t){let{templateFolder:n,templatesEnabled:e,templaterPlugin:r}=pl(t),i=sk(t,n),a=ok(t),o="";return!e&&!r&&(o=F("Note: No template plugins are currently enabled.")),{templateFiles:i,vaultFolders:a,templateWarning:o}}function Wc({choices:t,key:n,warningText:e,local:r,placeHolderStr:i,manager:a}){return o=>{o.controlEl.createEl("select",{},s=>{setTimeout(()=>{let u=t,[l,c]=a.getSetting(n,r);if(c){let h=t.findIndex(g=>g.value===c),p=t[h];u=(0,vs.default)(u,{$splice:[[h,1]],$unshift:[(0,vs.default)(p,{placeholder:{$set:!0},value:{$set:""},label:{$apply:g=>`${g} (${F("default")})`}})]})}else u=(0,vs.default)(u,{$unshift:[{placeholder:!0,value:"",label:i,selected:!1,disabled:!1}]});let d=new Jg.default(s,{placeholder:!0,position:"bottom",searchPlaceholderValue:F("Search..."),searchEnabled:u.length>10,choices:u}).setChoiceByValue("");l&&typeof l=="string"&&d.setChoiceByValue(l);let f=h=>{let p=h.detail.value;p?a.applySettingsUpdate({[n]:{$set:p}}):a.applySettingsUpdate({$unset:[n]})};s.addEventListener("change",f),a.cleanupFns.push(()=>{d.destroy(),s.removeEventListener("change",f)})}),e&&o.descEl.createDiv({},u=>{u.createEl("strong",{text:e})})})}}var Xg=/^\d+(?:\.\d+)?$/,Zg={[dn]:!0,"date-display-format":!0,"date-format":!0,"date-picker-week-start":!0,"date-time-display-format":!0,"date-trigger":!0,"hide-date-display":!0,"hide-date-in-title":!0,"hide-tags-display":!0,"hide-tags-in-title":!0,"lane-width":!0,"link-date-to-daily-note":!0,"max-archive-size":!0,"metadata-keys":!0,"new-card-insertion-method":!0,"new-line-trigger":!0,"new-note-folder":!0,"new-note-template":!0,"prepend-archive-date":!0,"prepend-archive-format":!0,"prepend-archive-separator":!0,"show-checkboxes":!0,"show-relative-date":!0,"time-format":!0,"time-trigger":!0,"show-add-list":!0,"show-archive-all":!0,"show-view-as-markdown":!0,"show-board-settings":!0,"show-search":!0},qc=class{constructor(n,e,r){this.cleanupFns=[];this.applyDebounceTimer=0;this.app=n.app,this.plugin=n,this.config=e,this.settings=r}applySettingsUpdate(n){clearTimeout(this.applyDebounceTimer),this.applyDebounceTimer=window.setTimeout(()=>{this.settings=(0,Qg.default)(this.settings,n),this.config.onSettingsChange(this.settings)},200)}getSetting(n,e){return e?[this.settings[n],this.plugin.settings[n]]:[this.settings[n],null]}constructUI(n,e,r){let{templateFiles:i,vaultFolders:a,templateWarning:o}=Gg(this.app);n.createEl("h3",{text:e}),r?n.createEl("p",{text:F("These settings will take precedence over the default Kanban board settings.")}):n.createEl("p",{text:F("Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.")}),new $e.Setting(n).setName(F("New line trigger")).setDesc(F("Select whether Enter or Shift+Enter creates a new line. The opposite of what you choose will create and complete editing of cards and lanes.")).addDropdown(s=>{s.addOption("shift-enter",F("Shift + Enter")),s.addOption("enter",F("Enter"));let[u,l]=this.getSetting("new-line-trigger",r);s.setValue(u||l||"shift-enter"),s.onChange(c=>{this.applySettingsUpdate({"new-line-trigger":{$set:c}})})}),new $e.Setting(n).setName(F("Prepend / append new cards")).setDesc(F("This setting controls whether new cards are added to the beginning or end of the list.")).addDropdown(s=>{s.addOption("prepend",F("Prepend")),s.addOption("prepend-compact",F("Prepend (compact)")),s.addOption("append",F("Append"));let[u,l]=this.getSetting("new-card-insertion-method",r);s.setValue(u||l||"append"),s.onChange(c=>{this.applySettingsUpdate({"new-card-insertion-method":{$set:c}})})}),new $e.Setting(n).setName(F("Note template")).setDesc(F("This template will be used when creating new notes from Kanban cards.")).then(Wc({choices:i,key:"new-note-template",warningText:o,local:r,placeHolderStr:F("No template"),manager:this})),new $e.Setting(n).setName(F("Note folder")).setDesc(F("Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.")).then(Wc({choices:a,key:"new-note-folder",local:r,placeHolderStr:F("Default folder"),manager:this})),new $e.Setting(n).setName(F("Lane width")).setDesc(F("Enter a number to set the lane width in pixels.")).addText(s=>{let[u,l]=this.getSetting("lane-width",r);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"272"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Xg.test(c)){s.inputEl.removeClass("error"),this.applySettingsUpdate({"lane-width":{$set:parseInt(c)}});return}c&&s.inputEl.addClass("error"),this.applySettingsUpdate({$unset:["lane-width"]})})}),new $e.Setting(n).setName(F("Maximum number of archived cards")).setDesc(F("Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.")).addText(s=>{let[u,l]=this.getSetting("max-archive-size",r);s.inputEl.setAttr("type","number"),s.inputEl.placeholder=`${l||"-1"} (default)`,s.inputEl.value=u?u.toString():"",s.onChange(c=>{if(c&&Xg.test(c)){s.inputEl.removeClass("error"),this.applySettingsUpdate({"max-archive-size":{$set:parseInt(c)}});return}c&&s.inputEl.addClass("error"),this.applySettingsUpdate({$unset:["max-archive-size"]})})}),new $e.Setting(n).setName(F("Display card checkbox")).setDesc(F("When toggled, a checkbox will be displayed with each card")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-checkboxes",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"show-checkboxes":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-checkboxes",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-checkboxes"]})})})}),new $e.Setting(n).setName(F("Hide tags in card titles")).setDesc(F("When toggled, tags will be hidden card titles. This will prevent tags from being included in the title when creating new notes.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-tags-in-title",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-tags-in-title":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-in-title",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-in-title"]})})})}),new $e.Setting(n).setName(F("Hide card display tags")).setDesc(F("When toggled, tags will not be displayed below the card title.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-tags-display",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-tags-display":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-tags-display",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-tags-display"]})})})}),n.createEl("h4",{text:F("Board Header Buttons")}),new $e.Setting(n).setName(F("Add a list")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-add-list",r);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-add-list":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-add-list",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-add-list"]})})})}),new $e.Setting(n).setName(F("Archive completed cards")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-archive-all",r);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-archive-all":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-archive-all",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-archive-all"]})})})}),new $e.Setting(n).setName(F("Open as markdown")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-view-as-markdown",r);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-view-as-markdown":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-view-as-markdown",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-view-as-markdown"]})})})}),new $e.Setting(n).setName(F("Open board settings")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-board-settings",r);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-board-settings":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-board-settings",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-board-settings"]})})})}),new $e.Setting(n).setName(F("Search...")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-search",r);c!=null?l.setValue(c):d!=null?l.setValue(d):l.setValue(!0),l.onChange(f=>{this.applySettingsUpdate({"show-search":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-search",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-search"]})})})}),n.createEl("h4",{text:F("Date & Time")}),new $e.Setting(n).setName(F("Date trigger")).setDesc(F("When this is typed, it will trigger the date selector")).addText(s=>{let[u,l]=this.getSetting("date-trigger",r);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||ys),s.onChange(c=>{c?this.applySettingsUpdate({"date-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["date-trigger"]})})}),new $e.Setting(n).setName(F("Time trigger")).setDesc(F("When this is typed, it will trigger the time selector")).addText(s=>{let[u,l]=this.getSetting("time-trigger",r);(u||l)&&s.setValue(u||l),s.setPlaceholder(l||bs),s.onChange(c=>{c?this.applySettingsUpdate({"time-trigger":{$set:c}}):this.applySettingsUpdate({$unset:["time-trigger"]})})}),new $e.Setting(n).setName(F("Date format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("This format will be used when saving dates in markdown.")),f.createEl("br"),f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("date-format",r),d=Xr(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"date-format":{$set:f}}):this.applySettingsUpdate({$unset:["date-format"]})})})}),new $e.Setting(n).setName(F("Time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("time-format",r),d=Vi(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"time-format":{$set:f}}):this.applySettingsUpdate({$unset:["time-format"]})})})}),new $e.Setting(n).setName(F("Date display format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(f=>{f.appendText(F("This format will be used when displaying dates in Kanban cards.")),f.createEl("br"),f.appendText(F("For more syntax, refer to")+" "),f.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},h=>{h.setAttr("target","_blank")}),f.createEl("br"),f.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(f.createEl("b",{cls:"u-pop"})),f.createEl("br")}));let[l,c]=this.getSetting("date-display-format",r),d=Xr(this.app);u.setPlaceholder(d),u.setDefaultFormat(d),(l||c)&&u.setValue(l||c),u.onChange(f=>{f?this.applySettingsUpdate({"date-display-format":{$set:f}}):this.applySettingsUpdate({$unset:["date-display-format"]})})})}),new $e.Setting(n).setName(F("Show relative date")).setDesc(F("When toggled, cards will display the distance between today and the card's date. eg. 'In 3 days', 'A month ago'")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("show-relative-date",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"show-relative-date":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("show-relative-date",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["show-relative-date"]})})})}),new $e.Setting(n).setName(F("Hide card display dates")).setDesc(F("When toggled, formatted dates will not be displayed on the card. Relative dates will still be displayed if they are enabled.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-date-display",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-date-display":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-display",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-display"]})})})}),new $e.Setting(n).setName(F("Hide dates in card titles")).setDesc(F("When toggled, dates will be hidden card titles. This will prevent dates from being included in the title when creating new notes.")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("hide-date-in-title",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"hide-date-in-title":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("hide-date-in-title",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["hide-date-in-title"]})})})}),new $e.Setting(n).setName(F("Link dates to daily notes")).setDesc(F("When toggled, dates will link to daily notes. Eg. [[2021-04-26]]")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("link-date-to-daily-note",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"link-date-to-daily-note":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("link-date-to-daily-note",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["link-date-to-daily-note"]})})})}),new $e.Setting(n).setName(F("Add date and time to archived cards")).setDesc(F("When toggled, the current date and time will be added to the beginning of a card when it is archived. Eg. - [ ] 2021-05-14 10:00am My card title")).then(s=>{let u;s.addToggle(l=>{u=l;let[c,d]=this.getSetting("prepend-archive-date",r);c!==void 0?l.setValue(c):d!==void 0&&l.setValue(d),l.onChange(f=>{this.applySettingsUpdate({"prepend-archive-date":{$set:f}})})}).addExtraButton(l=>{l.setIcon("reset").setTooltip(F("Reset to default")).onClick(()=>{let[,c]=this.getSetting("prepend-archive-date",r);u.setValue(!!c),this.applySettingsUpdate({$unset:["prepend-archive-date"]})})})}),new $e.Setting(n).setName(F("Archive date/time separator")).setDesc(F("This will be used to separate the archived date/time from the title")).addText(s=>{let[u,l]=this.getSetting("prepend-archive-separator",r);s.inputEl.placeholder=l?`${l} (default)`:"",s.inputEl.value=u||"",s.onChange(c=>{if(c){this.applySettingsUpdate({"prepend-archive-separator":{$set:c}});return}this.applySettingsUpdate({$unset:["prepend-archive-separator"]})})}),new $e.Setting(n).setName(F("Archive date/time format")).then(s=>{s.addMomentFormat(u=>{s.descEl.appendChild(createFragment(T=>{T.appendText(F("For more syntax, refer to")+" "),T.createEl("a",{text:F("format reference"),href:"https://momentjs.com/docs/#/displaying/format/"},k=>{k.setAttr("target","_blank")}),T.createEl("br"),T.appendText(F("Your current syntax looks like this")+": "),u.setSampleEl(T.createEl("b",{cls:"u-pop"})),T.createEl("br")}));let[l,c]=this.getSetting("prepend-archive-format",r),[d,f]=this.getSetting("date-format",r),h=d||f||Xr(this.app),[p,g]=this.getSetting("time-format",r),w=p||g||Vi(this.app),S=`${h} ${w}`;u.setPlaceholder(S),u.setDefaultFormat(S),(l||c)&&u.setValue(l||c),u.onChange(T=>{T?this.applySettingsUpdate({"prepend-archive-format":{$set:T}}):this.applySettingsUpdate({$unset:["prepend-archive-format"]})})})}),new $e.Setting(n).setName(F("Calendar: first day of week")).setDesc(F("Override which day is used as the start of the week")).addDropdown(s=>{s.addOption("",F("default")),s.addOption("0",F("Sunday")),s.addOption("1",F("Monday")),s.addOption("2",F("Tuesday")),s.addOption("3",F("Wednesday")),s.addOption("4",F("Thursday")),s.addOption("5",F("Friday")),s.addOption("6",F("Saturday"));let[u,l]=this.getSetting("date-picker-week-start",r);s.setValue((u==null?void 0:u.toString())||(l==null?void 0:l.toString())||""),s.onChange(c=>{c?this.applySettingsUpdate({"date-picker-week-start":{$set:Number(c)}}):this.applySettingsUpdate({$unset:["date-picker-week-start"]})})}),n.createEl("br"),n.createEl("h4",{text:F("Linked Page Metadata")}),n.createEl("p",{cls:$("metadata-setting-desc"),text:F("Display metadata for the first note linked within a card. Specify which metadata keys to display below. An optional label can be provided, and labels can be hidden altogether.")}),new $e.Setting(n).then(s=>{s.settingEl.addClass($("draggable-setting-container"));let[u]=this.getSetting("metadata-keys",r),l=(u||[]).map(c=>({...Vo,id:Ke(),data:c}));Wg(s.settingEl,n,l,c=>this.applySettingsUpdate({"metadata-keys":{$set:c.map(d=>d.data)}})),this.cleanupFns.push(()=>{s.settingEl&&qg(s.settingEl)})})}cleanUp(){this.cleanupFns.forEach(n=>n()),this.cleanupFns=[]}},ws=class extends $e.Modal{constructor(n,e,r){super(n.app);this.view=n,this.settingsManager=new qc(n.plugin,e,r)}onOpen(){let{contentEl:n,modalEl:e}=this;e.addClass($("board-settings-modal")),this.settingsManager.constructUI(n,this.view.file.basename,!0)}onClose(){let{contentEl:n}=this;this.settingsManager.cleanUp(),n.empty()}},Yc=class extends $e.PluginSettingTab{constructor(n,e){super(n.app,n);this.plugin=n,this.settingsManager=new qc(n,e,n.settings)}display(){let{containerEl:n}=this;n.empty(),n.addClass($("board-settings-modal")),this.settingsManager.constructUI(n,F("Kanban Plugin"),!1)}};var _n="kanban",Es="blocks",Nr=class extends ev.TextFileView{constructor(n,e){super(n);this.actionButtons={};this.plugin=e,this.emitter=us(),this.emitter.on("hotkey",r=>{switch(r){case"daily-notes:goto-prev":{rp(this.app,this.file);break}case"daily-notes:goto-next":{np(this.app,this.file);break}}})}get isPrimary(){var n;return((n=this.plugin.getStateManager(this.file))==null?void 0:n.getAView())===this}get id(){var n;return`${this.leaf.id}:::${(n=this.file)==null?void 0:n.path}`}get isShiftPressed(){return this.plugin.isShiftPressed}setBoard(n,e=!0){this.plugin.stateManagers.get(this.file).setState(n,e)}getBoard(){return this.plugin.stateManagers.get(this.file).state}getViewType(){return _n}getIcon(){return Es}getDisplayText(){var n;return((n=this.file)==null?void 0:n.basename)||"Kanban"}async onLoadFile(n){try{return await super.onLoadFile(n)}catch(e){throw this.plugin.stateManagers.get(this.file).setError(e),e}}destroy(){this.plugin.removeView(this),Object.values(this.actionButtons).forEach(n=>n.remove()),this.actionButtons={}}async onClose(){this.destroy()}async onUnloadFile(n){return this.destroy(),await super.onUnloadFile(n)}handleRename(n,e){this.file.path===n&&this.plugin.handleViewFileRename(this,e)}requestSaveToDisk(n){this.data!==n&&this.isPrimary?(this.data=n,this.requestSave()):this.data=n}getViewData(){return this.data}setViewData(n,e){if(!ip(n)){this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.removeView(this),this.plugin.setMarkdownView(this.leaf,!1);return}this.plugin.addView(this,n,!e&&this.isPrimary)}getPortal(){let n=this.plugin.stateManagers.get(this.file);return v.createElement(Vg,{stateManager:n,view:this})}onMoreOptionsMenu(n){n.addItem(e=>{e.setTitle(F("Open as markdown")).setIcon("document").onClick(()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)})}).addItem(e=>{e.setTitle(F("Open board settings")).setIcon("gear").onClick(()=>{let r=this.plugin.stateManagers.get(this.file),i=r.state;new ws(this,{onSettingsChange:a=>{let o=(0,Jc.default)(i,{data:{settings:{$set:a}}});r.setState(o)}},i.data.settings).open()})}).addItem(e=>{e.setTitle(F("Archive completed cards")).setIcon("sheets-in-box").onClick(()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()})}).addSeparator(),super.onMoreOptionsMenu(n)}initHeaderButtons(){let n=this.plugin.getStateManager(this.file);if(!!n)if(n.getSetting("show-board-settings")&&!this.actionButtons["show-board-settings"]?this.actionButtons["show-board-settings"]=this.addAction("gear",F("Open board settings"),()=>{let e=this.plugin.stateManagers.get(this.file),r=e.state;new ws(this,{onSettingsChange:i=>{let a=(0,Jc.default)(r,{data:{settings:{$set:i}}});e.setState(a)}},r.data.settings).open()}):!n.getSetting("show-board-settings")&&this.actionButtons["show-board-settings"]&&(this.actionButtons["show-board-settings"].remove(),delete this.actionButtons["show-board-settings"]),n.getSetting("show-search")&&!this.actionButtons["show-search"]?this.actionButtons["show-search"]=this.addAction("search",F("Search..."),()=>{this.emitter.emit("hotkey","editor:open-search")}):!n.getSetting("show-search")&&this.actionButtons["show-search"]&&(this.actionButtons["show-search"].remove(),delete this.actionButtons["show-search"]),n.getSetting("show-view-as-markdown")&&!this.actionButtons["show-view-as-markdown"]?this.actionButtons["show-view-as-markdown"]=this.addAction("document",F("Open as markdown"),()=>{this.plugin.kanbanFileModes[this.leaf.id||this.file.path]="markdown",this.plugin.setMarkdownView(this.leaf)}):!n.getSetting("show-view-as-markdown")&&this.actionButtons["show-view-as-markdown"]&&(this.actionButtons["show-view-as-markdown"].remove(),delete this.actionButtons["show-view-as-markdown"]),n.getSetting("show-archive-all")&&!this.actionButtons["show-archive-all"]?this.actionButtons["show-archive-all"]=this.addAction("sheets-in-box",F("Archive completed cards"),()=>{this.plugin.stateManagers.get(this.file).archiveCompletedCards()}):!n.getSetting("show-archive-all")&&this.actionButtons["show-archive-all"]&&(this.actionButtons["show-archive-all"].remove(),delete this.actionButtons["show-archive-all"]),n.getSetting("show-add-list")&&!this.actionButtons["show-add-list"]){let e=this.addAction("plus-with-circle",F("Add a list"),()=>{this.emitter.emit("showLaneForm",void 0)});e.addClass($("ignore-click-outside")),this.actionButtons["show-add-list"]=e}else!n.getSetting("show-add-list")&&this.actionButtons["show-add-list"]&&(this.actionButtons["show-add-list"].remove(),delete this.actionButtons["show-add-list"])}clear(){}};var Ii=me(It()),vy=me(require("obsidian"));var Gc={};Oi(Gc,{JsonPatchError:()=>st,_areEquals:()=>ka,applyOperation:()=>Fr,applyPatch:()=>Ms,applyReducer:()=>fk,deepClone:()=>uk,getValueByPointer:()=>Ts,validate:()=>nv,validator:()=>Cs});var lk=function(){var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},t(n,e)};return function(n,e){t(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ck=Object.prototype.hasOwnProperty;function Ss(t,n){return ck.call(t,n)}function xs(t){if(Array.isArray(t)){for(var e=new Array(t.length),n=0;n<e.length;n++)e[n]=""+n;return e}if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Ss(t,r)&&e.push(r);return e}function Tt(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function ks(t){for(var n=0,e=t.length,r;n<e;){if(r=t.charCodeAt(n),r>=48&&r<=57){n++;continue}return!1}return!0}function $n(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Sa(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function _s(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var n=0,e=t.length;n<e;n++)if(_s(t[n]))return!0}else if(typeof t=="object"){for(var r=xs(t),i=r.length,n=0;n<i;n++)if(_s(t[r[n]]))return!0}}return!1}function tv(t,n){var e=[t];for(var r in n){var i=typeof n[r]=="object"?JSON.stringify(n[r],null,2):n[r];typeof i!="undefined"&&e.push(r+": "+i)}return e.join(`
|
||
`)}var xa=function(t){lk(n,t);function n(e,r,i,a,o){var s=this.constructor,u=t.call(this,tv(e,{name:r,index:i,operation:a,tree:o}))||this;return u.name=r,u.index=i,u.operation=a,u.tree=o,Object.setPrototypeOf(u,s.prototype),u.message=tv(e,{name:r,index:i,operation:a,tree:o}),u}return n}(Error);var st=xa,uk=Tt,xi={add:function(t,n,e){return t[n]=this.value,{newDocument:e}},remove:function(t,n,e){var r=t[n];return delete t[n],{newDocument:e,removed:r}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:function(t,n,e){var r=Ts(e,this.path);r&&(r=Tt(r));var i=Fr(e,{op:"remove",path:this.from}).removed;return Fr(e,{op:"add",path:this.path,value:i}),{newDocument:e,removed:r}},copy:function(t,n,e){var r=Ts(e,this.from);return Fr(e,{op:"add",path:this.path,value:Tt(r)}),{newDocument:e}},test:function(t,n,e){return{newDocument:e,test:ka(t[n],this.value)}},_get:function(t,n,e){return this.value=t[n],{newDocument:e}}},dk={add:function(t,n,e){return ks(n)?t.splice(n,0,this.value):t[n]=this.value,{newDocument:e,index:n}},remove:function(t,n,e){var r=t.splice(n,1);return{newDocument:e,removed:r[0]}},replace:function(t,n,e){var r=t[n];return t[n]=this.value,{newDocument:e,removed:r}},move:xi.move,copy:xi.copy,test:xi.test,_get:xi._get};function Ts(t,n){if(n=="")return t;var e={op:"_get",path:n};return Fr(t,e),e.value}function Fr(t,n,e,r,i,a){if(e===void 0&&(e=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),e&&(typeof e=="function"?e(n,0,t,n.path):Cs(n,0)),n.path===""){var o={newDocument:t};if(n.op==="add")return o.newDocument=n.value,o;if(n.op==="replace")return o.newDocument=n.value,o.removed=t,o;if(n.op==="move"||n.op==="copy")return o.newDocument=Ts(t,n.from),n.op==="move"&&(o.removed=t),o;if(n.op==="test"){if(o.test=ka(t,n.value),o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o.newDocument=t,o}else{if(n.op==="remove")return o.removed=t,o.newDocument=null,o;if(n.op==="_get")return n.value=t,o;if(e)throw new st("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,n,t);return o}}else{r||(t=Tt(t));var s=n.path||"",u=s.split("/"),l=t,c=1,d=u.length,f=void 0,h=void 0,p=void 0;for(typeof e=="function"?p=e:p=Cs;;){if(h=u[c],h&&h.indexOf("~")!=-1&&(h=Sa(h)),i&&h=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(e&&f===void 0&&(l[h]===void 0?f=u.slice(0,c).join("/"):c==d-1&&(f=n.path),f!==void 0&&p(n,0,t,f)),c++,Array.isArray(l)){if(h==="-")h=l.length;else{if(e&&!ks(h))throw new st("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,n,t);ks(h)&&(h=~~h)}if(c>=d){if(e&&n.op==="add"&&h>l.length)throw new st("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,n,t);var o=dk[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}}else if(c>=d){var o=xi[n.op].call(n,l,h,t);if(o.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",a,n,t);return o}if(l=l[h],e&&c<d&&(!l||typeof l!="object"))throw new st("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,n,t)}}}function Ms(t,n,e,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),e&&!Array.isArray(n))throw new st("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(t=Tt(t));for(var a=new Array(n.length),o=0,s=n.length;o<s;o++)a[o]=Fr(t,n[o],e,!0,i,o),t=a[o].newDocument;return a.newDocument=t,a}function fk(t,n,e){var r=Fr(t,n);if(r.test===!1)throw new st("Test operation failed","TEST_OPERATION_FAILED",e,n,t);return r.newDocument}function Cs(t,n,e,r){if(typeof t!="object"||t===null||Array.isArray(t))throw new st("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,e);if(xi[t.op]){if(typeof t.path!="string")throw new st("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,e);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new st('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,t,e);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new st("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,e);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new st("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,e);if((t.op==="add"||t.op==="replace"||t.op==="test")&&_s(t.value))throw new st("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,e);if(e){if(t.op=="add"){var i=t.path.split("/").length,a=r.split("/").length;if(i!==a+1&&i!==a)throw new st("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,e)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==r)throw new st("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,e)}else if(t.op==="move"||t.op==="copy"){var o={op:"_get",path:t.from,value:void 0},s=nv([o],e);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new st("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,e)}}}else throw new st("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,e)}function nv(t,n,e){try{if(!Array.isArray(t))throw new st("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)Ms(Tt(n),Tt(t),e||!0);else{e=e||Cs;for(var r=0;r<t.length;r++)e(t[r],r,n,void 0)}}catch(i){if(i instanceof st)return i;throw i}}function ka(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){var e=Array.isArray(t),r=Array.isArray(n),i,a,o;if(e&&r){if(a=t.length,a!=n.length)return!1;for(i=a;i--!=0;)if(!ka(t[i],n[i]))return!1;return!0}if(e!=r)return!1;var s=Object.keys(t);if(a=s.length,a!==Object.keys(n).length)return!1;for(i=a;i--!=0;)if(!n.hasOwnProperty(s[i]))return!1;for(i=a;i--!=0;)if(o=s[i],!ka(t[o],n[o]))return!1;return!0}return t!==t&&n!==n}var tu={};Oi(tu,{compare:()=>eu,generate:()=>Xc,observe:()=>bk,unobserve:()=>yk});var Qc=new WeakMap,hk=function(){function t(n){this.observers=new Map,this.obj=n}return t}(),pk=function(){function t(n,e){this.callback=n,this.observer=e}return t}();function mk(t){return Qc.get(t)}function gk(t,n){return t.observers.get(n)}function vk(t,n){t.observers.delete(n.callback)}function yk(t,n){n.unobserve()}function bk(t,n){var e=[],r,i=mk(t);if(!i)i=new hk(t),Qc.set(t,i);else{var a=gk(i,n);r=a&&a.observer}if(r)return r;if(r={},i.value=Tt(t),n){r.callback=n,r.next=null;var o=function(){Xc(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window!="undefined"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=e,r.object=t,r.unobserve=function(){Xc(r),clearTimeout(r.next),vk(i,r),typeof window!="undefined"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},i.observers.set(n,new pk(n,r)),r}function Xc(t,n){n===void 0&&(n=!1);var e=Qc.get(t.object);Zc(e.value,t.object,t.patches,"",n),t.patches.length&&Ms(e.value,t.patches);var r=t.patches;return r.length>0&&(t.patches=[],t.callback&&t.callback(r)),r}function Zc(t,n,e,r,i){if(n!==t){typeof n.toJSON=="function"&&(n=n.toJSON());for(var a=xs(n),o=xs(t),s=!1,u=!1,l=o.length-1;l>=0;l--){var c=o[l],d=t[c];if(Ss(n,c)&&!(n[c]===void 0&&d!==void 0&&Array.isArray(n)===!1)){var f=n[c];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?Zc(d,f,e,r+"/"+$n(c),i):d!==f&&(s=!0,i&&e.push({op:"test",path:r+"/"+$n(c),value:Tt(d)}),e.push({op:"replace",path:r+"/"+$n(c),value:Tt(f)}))}else Array.isArray(t)===Array.isArray(n)?(i&&e.push({op:"test",path:r+"/"+$n(c),value:Tt(d)}),e.push({op:"remove",path:r+"/"+$n(c)}),u=!0):(i&&e.push({op:"test",path:r,value:t}),e.push({op:"replace",path:r,value:n}),s=!0)}if(!(!u&&a.length==o.length))for(var l=0;l<a.length;l++){var c=a[l];!Ss(t,c)&&n[c]!==void 0&&e.push({op:"add",path:r+"/"+$n(c),value:Tt(n[c])})}}}function eu(t,n,e){e===void 0&&(e=!1);var r=[];return Zc(t,n,r,"",e),r}var yO=Object.assign({},Gc,tu,{JsonPatchError:xa,deepClone:Tt,escapePathComponent:$n,unescapePathComponent:Sa});var gy=me(iv());var js=me(It());function _a(t,n){var{includeImageAlt:e=!0}=n||{};return av(t,e)}function av(t,n){return t&&typeof t=="object"&&(t.value||(n?t.alt:"")||"children"in t&&ov(t.children,n)||Array.isArray(t)&&ov(t,n))||""}function ov(t,n){for(var e=[],r=-1;++r<t.length;)e[r]=av(t[r],n);return e.join("")}var uy=me(require("obsidian"));var nu=function(t){if(t==null)return xk;if(typeof t=="string")return Sk(t);if(typeof t=="object")return Array.isArray(t)?wk(t):Ek(t);if(typeof t=="function")return As(t);throw new Error("Expected function, string, or object as test")};function wk(t){let n=[],e=-1;for(;++e<t.length;)n[e]=nu(t[e]);return As(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].call(this,...i))return!0;return!1}}function Ek(t){return As(n);function n(e){let r;for(r in t)if(e[r]!==t[r])return!1;return!0}}function Sk(t){return As(n);function n(e){return e&&e.type===t}}function As(t){return n;function n(...e){return Boolean(t.call(this,...e))}}function xk(){return!0}function sv(t){return"[33m"+t+"[39m"}var lv=!0,cv="skip",ru=!1,uv=function(t,n,e,r){typeof n=="function"&&typeof e!="function"&&(r=e,e=n,n=null);let i=nu(n),a=r?-1:1;o(t,null,[])();function o(s,u,l){let c=typeof s=="object"&&s!==null?s:{},d;return typeof c.type=="string"&&(d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+sv(c.type+(d?"<"+d+">":""))+")"})),f;function f(){let h=[],p,g,w;if((!n||i(s,u,l[l.length-1]||null))&&(h=kk(e(s,l)),h[0]===ru))return h;if(s.children&&h[0]!==cv)for(g=(r?s.children.length:-1)+a,w=l.concat(s);g>-1&&g<s.children.length;){if(p=o(s.children[g],g,w)(),p[0]===ru)return p;g=typeof p[1]=="number"?p[1]:g+a}return h}}};function kk(t){return Array.isArray(t)?t:typeof t=="number"?[lv,t]:[t]}var dv=function(t,n,e,r){typeof n=="function"&&typeof e!="function"&&(r=e,e=n,n=null),uv(t,n,i,r);function i(a,o){let s=o[o.length-1];return e(a,s?s.children.indexOf(a):null,s)}};function iu(t){if(t.children.length===0)return null;let n=t.children.length-1;return t.children[n].type==="blockid"?n===0?{start:t.children[0].position.start.offset,end:t.children[0].position.start.offset}:{start:t.children[0].position.start.offset,end:t.children[n-1].position.end.offset}:{start:t.children[0].position.start.offset,end:t.children[n].position.end.offset}}function au(t,n){return n?t.slice(n.start,n.end):""}function fv(t,n){return n<=0?null:t[n-1]}function hv(t,n,e,r=()=>!0){for(let i=n+1,a=t.length;i<a;i++){let o=t[i];if(e===o.type)return o;if(!r(o))return null}return null}var ou=me(require("obsidian"));async function pv(t,n){try{let e=await ya(t.getAView(),n.data.title);return n.data.dom=e,n}catch(e){throw t.setError(e),e}}async function Ta(t,n){let e;try{e=await ya(t.getAView(),n.data.title)}catch(o){throw t.setError(o),o}n.data.dom=e,n.data.titleSearch=Hg(e,n.data.metadata.tags,n.data.metadata.fileMetadata);let{dateStr:r,timeStr:i,fileAccessor:a}=n.data.metadata;if(r&&(n.data.metadata.date=(0,ou.moment)(r,t.getSetting("date-format"))),i){let o=(0,ou.moment)(i,t.getSetting("time-format"));if(n.data.metadata.date){let s=n.data.metadata.date;s.hour(o.hour()),s.minute(o.minute()),o=s.clone()}n.data.metadata.time=o}if(a){let o=t.app.metadataCache.getFirstLinkpathDest(a.target,t.file.path);o&&(n.data.metadata.file=o)}return n}async function mv(t,n){try{await Promise.all(n.children.map(async e=>{try{await pv(t,e),await Promise.all(e.children.map(r=>Ta(t,r)))}catch(r){throw t.setError(r),r}}))}catch(e){throw t.setError(e),e}return n}function _k(t){return(t.op==="add"||t.op==="replace")&&["/title","/titleRaw","/dateStr","/timeStr",/\d$/,/\/fileAccessor\/.+$/].some(n=>typeof n=="string"?t.path.endsWith(n):n.test(t.path))}async function gv(t,n,e){let r={},i=e.reduce((a,o)=>{if(!_k(o))return a;let s=o.path.split("/").reduce((l,c)=>(/\d+/.test(c)&&l.push(Number(c)),l),[]),u=s.join(",");return r[u]||(r[u]=!0,a.push(s)),a},[]);try{await Promise.all(i.map(a=>{let o=vt(n,a);if(o.type===Xe.Lane)return pv(t,o);if(o.type===Xe.Item)return Ta(t,o)}))}catch(a){throw t.setError(a),a}return n}function Is(t,n){let e=n.end-n.start;return t.slice(0,n.start)+"\0".repeat(e)+t.slice(n.end)}function vv(t){return t.replace(/\s*\0+\s*/g," ").trim()}function Mt(t,n,e,r){let i=t.length,a=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,e=e>0?e:0,r.length<1e4)o=Array.from(r),o.unshift(n,e),[].splice.apply(t,o);else for(e&&[].splice.apply(t,[n,e]);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),[].splice.apply(t,o),a+=1e4,n+=1e4}function Vt(t,n){return t.length>0?(Mt(t,t.length,0,n),t):n}var yv={}.hasOwnProperty;function bv(t){let n={},e=-1;for(;++e<t.length;)Tk(n,t[e]);return n}function Tk(t,n){let e;for(e in n){let i=(yv.call(t,e)?t[e]:void 0)||(t[e]={}),a=n[e],o;for(o in a){yv.call(i,o)||(i[o]=[]);let s=a[o];Mk(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Mk(t,n){let e=-1,r=[];for(;++e<n.length;)(n[e].add==="after"?t:r).push(n[e]);Mt(t,0,0,r)}var wv=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;var fn=wr(/[A-Za-z]/),Ma=wr(/\d/),Ev=wr(/[\dA-Fa-f]/),jt=wr(/[\dA-Za-z]/),Sv=wr(/[!-/:-@[-`{-~]/),su=wr(/[#-'*+\--9=?A-Z^-~]/);function Ca(t){return t!==null&&(t<32||t===127)}function Je(t){return t!==null&&(t<0||t===32)}function se(t){return t!==null&&t<-2}function He(t){return t===-2||t===-1||t===32}var xv=wr(/\s/),kv=wr(wv);function wr(t){return n;function n(e){return e!==null&&t.test(String.fromCharCode(e))}}function ke(t,n,e,r){let i=r?r-1:Number.POSITIVE_INFINITY,a=0;return o;function o(u){return He(u)?(t.enter(e),s(u)):n(u)}function s(u){return He(u)&&a++<i?(t.consume(u),s):(t.exit(e),n(u))}}var _v={tokenize:Ck};function Ck(t){let n=t.attempt(this.parser.constructs.contentInitial,r,i),e;return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),ke(t,n,"linePrefix")}function i(s){return t.enter("paragraph"),a(s)}function a(s){let u=t.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=u),e=u,o(s)}function o(s){if(s===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(s);return}return se(s)?(t.consume(s),t.exit("chunkText"),a):(t.consume(s),o)}}var Tv={tokenize:Dk},Mv={tokenize:Ak};function Dk(t){let n=this,e=[],r=0,i,a,o;return s;function s(k){if(r<e.length){let D=e[r];return n.containerState=D[1],t.attempt(D[0].continuation,u,l)(k)}return l(k)}function u(k){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();let D=n.events.length,N=D,C;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){C=n.events[N][1].end;break}S(r);let O=D;for(;O<n.events.length;)n.events[O][1].end=Object.assign({},C),O++;return Mt(n.events,N+1,0,n.events.slice(D)),n.events.length=O,l(k)}return s(k)}function l(k){if(r===e.length){if(!i)return f(k);if(i.currentConstruct&&i.currentConstruct.concrete)return p(k);n.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},t.check(Mv,c,d)(k)}function c(k){return i&&T(),S(r),f(k)}function d(k){return n.parser.lazy[n.now().line]=r!==e.length,o=n.now().offset,p(k)}function f(k){return n.containerState={},t.attempt(Mv,h,p)(k)}function h(k){return r++,e.push([n.currentConstruct,n.containerState]),f(k)}function p(k){if(k===null){i&&T(),S(0),t.consume(k);return}return i=i||n.parser.flow(n.now()),t.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),g(k)}function g(k){if(k===null){w(t.exit("chunkFlow"),!0),S(0),t.consume(k);return}return se(k)?(t.consume(k),w(t.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(t.consume(k),g)}function w(k,D){let N=n.sliceStream(k);if(D&&N.push(null),k.previous=a,a&&(a.next=k),a=k,i.defineSkip(k.start),i.write(N),n.parser.lazy[k.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;let O=n.events.length,B=O,z,Q;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(z){Q=n.events[B][1].end;break}z=!0}for(S(r),C=O;C<n.events.length;)n.events[C][1].end=Object.assign({},Q),C++;Mt(n.events,B+1,0,n.events.slice(O)),n.events.length=C}}function S(k){let D=e.length;for(;D-- >k;){let N=e[D];n.containerState=N[1],N[0].exit.call(n,t)}e.length=k}function T(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ak(t,n,e){return ke(t,t.attempt(this.parser.constructs.document,n,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lu(t){if(t===null||Je(t)||xv(t))return 1;if(kv(t))return 2}function ki(t,n,e){let r=[],i=-1;for(;++i<t.length;){let a=t[i].resolveAll;a&&!r.includes(a)&&(n=a(n,e),r.push(a))}return n}var Da={name:"attention",tokenize:Lk,resolveAll:Ik};function Ik(t,n){let e=-1,r,i,a,o,s,u,l,c;for(;++e<t.length;)if(t[e][0]==="enter"&&t[e][1].type==="attentionSequence"&&t[e][1]._close){for(r=e;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&n.sliceSerialize(t[r][1]).charCodeAt(0)===n.sliceSerialize(t[e][1]).charCodeAt(0)){if((t[r][1]._close||t[e][1]._open)&&(t[e][1].end.offset-t[e][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[e][1].end.offset-t[e][1].start.offset)%3))continue;u=t[r][1].end.offset-t[r][1].start.offset>1&&t[e][1].end.offset-t[e][1].start.offset>1?2:1;let d=Object.assign({},t[r][1].end),f=Object.assign({},t[e][1].start);Cv(d,-u),Cv(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},t[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[e][1].start),end:f},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[e][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},t[r][1].end=Object.assign({},o.start),t[e][1].start=Object.assign({},s.end),l=[],t[r][1].end.offset-t[r][1].start.offset&&(l=Vt(l,[["enter",t[r][1],n],["exit",t[r][1],n]])),l=Vt(l,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",a,n]]),l=Vt(l,ki(n.parser.constructs.insideSpan.null,t.slice(r+1,e),n)),l=Vt(l,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",i,n]]),t[e][1].end.offset-t[e][1].start.offset?(c=2,l=Vt(l,[["enter",t[e][1],n],["exit",t[e][1],n]])):c=0,Mt(t,r-1,e-r+3,l),e=r+l.length-c-2;break}}for(e=-1;++e<t.length;)t[e][1].type==="attentionSequence"&&(t[e][1].type="data");return t}function Lk(t,n){let e=this.parser.constructs.attentionMarkers.null,r=this.previous,i=lu(r),a;return o;function o(u){return t.enter("attentionSequence"),a=u,s(u)}function s(u){if(u===a)return t.consume(u),s;let l=t.exit("attentionSequence"),c=lu(u),d=!c||c===2&&i||e.includes(u),f=!i||i===2&&c||e.includes(r);return l._open=Boolean(a===42?d:d&&(i||!f)),l._close=Boolean(a===42?f:f&&(c||!d)),n(u)}}function Cv(t,n){t.column+=n,t.offset+=n,t._bufferIndex+=n}var cu={name:"autolink",tokenize:Pk};function Pk(t,n,e){let r=1;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(p){return fn(p)?(t.consume(p),o):su(p)?l(p):e(p)}function o(p){return p===43||p===45||p===46||jt(p)?s(p):l(p)}function s(p){return p===58?(t.consume(p),u):(p===43||p===45||p===46||jt(p))&&r++<32?(t.consume(p),s):l(p)}function u(p){return p===62?(t.exit("autolinkProtocol"),h(p)):p===null||p===32||p===60||Ca(p)?e(p):(t.consume(p),u)}function l(p){return p===64?(t.consume(p),r=0,c):su(p)?(t.consume(p),l):e(p)}function c(p){return jt(p)?d(p):e(p)}function d(p){return p===46?(t.consume(p),r=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",h(p)):f(p)}function f(p){return(p===45||jt(p))&&r++<63?(t.consume(p),p===45?f:d):e(p)}function h(p){return t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),n}}var Er={tokenize:Ok,partial:!0};function Ok(t,n,e){return ke(t,r,"linePrefix");function r(i){return i===null||se(i)?n(i):e(i)}}var Ls={name:"blockQuote",tokenize:Nk,continuation:{tokenize:Fk},exit:Rk};function Nk(t,n,e){let r=this;return i;function i(o){if(o===62){let s=r.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),a}return e(o)}function a(o){return He(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),n):(t.exit("blockQuotePrefix"),n(o))}}function Fk(t,n,e){return ke(t,t.attempt(Ls,n,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Rk(t){t.exit("blockQuote")}var Ps={name:"characterEscape",tokenize:Hk};function Hk(t,n,e){return r;function r(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),i}function i(a){return Sv(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),n):e(a)}}var uu={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
||
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var Bk={}.hasOwnProperty;function _i(t){return Bk.call(uu,t)?uu[t]:!1}var Os={name:"characterReference",tokenize:Kk};function Kk(t,n,e){let r=this,i=0,a,o;return s;function s(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),u}function u(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),a=31,o=jt,c(d))}function l(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=Ev,c):(t.enter("characterReferenceValue"),a=7,o=Ma,c(d))}function c(d){let f;return d===59&&i?(f=t.exit("characterReferenceValue"),o===jt&&!_i(r.sliceSerialize(f))?e(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)):o(d)&&i++<a?(t.consume(d),c):e(d)}}var Ns={name:"codeFenced",tokenize:$k,concrete:!0};function $k(t,n,e){let r=this,i={tokenize:N,partial:!0},a={tokenize:D,partial:!0},o=this.events[this.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0,l;return c;function c(C){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l=C,d(C)}function d(C){return C===l?(t.consume(C),u++,d):(t.exit("codeFencedFenceSequence"),u<3?e(C):ke(t,f,"whitespace")(C))}function f(C){return C===null||se(C)?w(C):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(C))}function h(C){return C===null||Je(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ke(t,p,"whitespace")(C)):C===96&&C===l?e(C):(t.consume(C),h)}function p(C){return C===null||se(C)?w(C):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(C))}function g(C){return C===null||se(C)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),w(C)):C===96&&C===l?e(C):(t.consume(C),g)}function w(C){return t.exit("codeFencedFence"),r.interrupt?n(C):S(C)}function S(C){return C===null?k(C):se(C)?t.attempt(a,t.attempt(i,k,s?ke(t,S,"linePrefix",s+1):S),k)(C):(t.enter("codeFlowValue"),T(C))}function T(C){return C===null||se(C)?(t.exit("codeFlowValue"),S(C)):(t.consume(C),T)}function k(C){return t.exit("codeFenced"),n(C)}function D(C,O,B){let z=this;return Q;function Q(ie){return C.enter("lineEnding"),C.consume(ie),C.exit("lineEnding"),X}function X(ie){return z.parser.lazy[z.now().line]?B(ie):O(ie)}}function N(C,O,B){let z=0;return ke(C,Q,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Q(q){return C.enter("codeFencedFence"),C.enter("codeFencedFenceSequence"),X(q)}function X(q){return q===l?(C.consume(q),z++,X):z<u?B(q):(C.exit("codeFencedFenceSequence"),ke(C,ie,"whitespace")(q))}function ie(q){return q===null||se(q)?(C.exit("codeFencedFence"),O(q)):B(q)}}}var Aa={name:"codeIndented",tokenize:zk},Uk={tokenize:Vk,partial:!0};function zk(t,n,e){let r=this;return i;function i(l){return t.enter("codeIndented"),ke(t,a,"linePrefix",4+1)(l)}function a(l){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):e(l)}function o(l){return l===null?u(l):se(l)?t.attempt(Uk,o,u)(l):(t.enter("codeFlowValue"),s(l))}function s(l){return l===null||se(l)?(t.exit("codeFlowValue"),o(l)):(t.consume(l),s)}function u(l){return t.exit("codeIndented"),n(l)}}function Vk(t,n,e){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?e(o):se(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i):ke(t,a,"linePrefix",4+1)(o)}function a(o){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):se(o)?i(o):e(o)}}var du={name:"codeText",tokenize:qk,resolve:jk,previous:Wk};function jk(t){let n=t.length-4,e=3,r,i;if((t[e][1].type==="lineEnding"||t[e][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(r=e;++r<n;)if(t[r][1].type==="codeTextData"){t[e][1].type="codeTextPadding",t[n][1].type="codeTextPadding",e+=2,n-=2;break}}for(r=e-1,n++;++r<=n;)i===void 0?r!==n&&t[r][1].type!=="lineEnding"&&(i=r):(r===n||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return t}function Wk(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function qk(t,n,e){let r=this,i=0,a,o;return s;function s(f){return t.enter("codeText"),t.enter("codeTextSequence"),u(f)}function u(f){return f===96?(t.consume(f),i++,u):(t.exit("codeTextSequence"),l(f))}function l(f){return f===null?e(f):f===96?(o=t.enter("codeTextSequence"),a=0,d(f)):f===32?(t.enter("space"),t.consume(f),t.exit("space"),l):se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),l):(t.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||se(f)?(t.exit("codeTextData"),l(f)):(t.consume(f),c)}function d(f){return f===96?(t.consume(f),a++,d):a===i?(t.exit("codeTextSequence"),t.exit("codeText"),n(f)):(o.type="codeTextData",c(f))}}function Fs(t){let n={},e=-1,r,i,a,o,s,u,l;for(;++e<t.length;){for(;e in n;)e=n[e];if(r=t[e],e&&r[1].type==="chunkFlow"&&t[e-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Yk(t,e)),e=n[e],l=!0);else if(r[1]._container){for(a=e,i=void 0;a--&&(o=t[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(r[1].end=Object.assign({},t[i][1].start),s=t.slice(i,e),s.unshift(r),Mt(t,i,e-i+1,s))}}return!l}function Yk(t,n){let e=t[n][1],r=t[n][2],i=n-1,a=[],o=e._tokenizer||r.parser[e.contentType](e.start),s=o.events,u=[],l={},c,d,f=-1,h=e,p=0,g=0,w=[g];for(;h;){for(;t[++i][1]!==h;);a.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=e;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,w.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),f=w.length;f--;){let S=s.slice(w[f],w[f+1]),T=a.pop();u.unshift([T,T+S.length-1]),Mt(t,T,2,S)}for(f=-1;++f<u.length;)l[p+u[f][0]]=p+u[f][1],p+=u[f][1]-u[f][0]-1;return l}var fu={tokenize:Qk,resolve:Gk},Jk={tokenize:Xk,partial:!0};function Gk(t){return Fs(t),t}function Qk(t,n){let e;return r;function r(s){return t.enter("content"),e=t.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):se(s)?t.check(Jk,o,a)(s):(t.consume(s),i)}function a(s){return t.exit("chunkContent"),t.exit("content"),n(s)}function o(s){return t.consume(s),t.exit("chunkContent"),e.next=t.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function Xk(t,n,e){let r=this;return i;function i(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),ke(t,a,"linePrefix")}function a(o){if(o===null||se(o))return e(o);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):t.interrupt(r.parser.constructs.flow,e,n)(o)}}function Rs(t,n,e,r,i,a,o,s,u){let l=u||Number.POSITIVE_INFINITY,c=0;return d;function d(S){return S===60?(t.enter(r),t.enter(i),t.enter(a),t.consume(S),t.exit(a),f):S===null||S===41||Ca(S)?e(S):(t.enter(r),t.enter(o),t.enter(s),t.enter("chunkString",{contentType:"string"}),g(S))}function f(S){return S===62?(t.enter(a),t.consume(S),t.exit(a),t.exit(i),t.exit(r),n):(t.enter(s),t.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===62?(t.exit("chunkString"),t.exit(s),f(S)):S===null||S===60||se(S)?e(S):(t.consume(S),S===92?p:h)}function p(S){return S===60||S===62||S===92?(t.consume(S),h):h(S)}function g(S){return S===40?++c>l?e(S):(t.consume(S),g):S===41?c--?(t.consume(S),g):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),n(S)):S===null||Je(S)?c?e(S):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),n(S)):Ca(S)?e(S):(t.consume(S),S===92?w:g)}function w(S){return S===40||S===41||S===92?(t.consume(S),g):g(S)}}function Hs(t,n,e,r,i,a){let o=this,s=0,u;return l;function l(h){return t.enter(r),t.enter(i),t.consume(h),t.exit(i),t.enter(a),c}function c(h){return h===null||h===91||h===93&&!u||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs||s>999?e(h):h===93?(t.exit(a),t.enter(i),t.consume(h),t.exit(i),t.exit(r),n):se(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||se(h)||s++>999?(t.exit("chunkString"),c(h)):(t.consume(h),u=u||!He(h),h===92?f:d)}function f(h){return h===91||h===92||h===93?(t.consume(h),s++,d):d(h)}}function Bs(t,n,e,r,i,a){let o;return s;function s(f){return t.enter(r),t.enter(i),t.consume(f),t.exit(i),o=f===40?41:f,u}function u(f){return f===o?(t.enter(i),t.consume(f),t.exit(i),t.exit(r),n):(t.enter(a),l(f))}function l(f){return f===o?(t.exit(a),u(o)):f===null?e(f):se(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),ke(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||se(f)?(t.exit("chunkString"),l(f)):(t.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(t.consume(f),c):c(f)}}function Rr(t,n){let e;return r;function r(i){return se(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),e=!0,r):He(i)?ke(t,r,e?"linePrefix":"lineSuffix")(i):n(i)}}function ir(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var hu={name:"definition",tokenize:e0},Zk={tokenize:t0,partial:!0};function e0(t,n,e){let r=this,i;return a;function a(u){return t.enter("definition"),Hs.call(r,t,o,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(u)}function o(u){return i=ir(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(t.enter("definitionMarker"),t.consume(u),t.exit("definitionMarker"),Rr(t,Rs(t,t.attempt(Zk,ke(t,s,"whitespace"),ke(t,s,"whitespace")),e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):e(u)}function s(u){return u===null||se(u)?(t.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(u)):e(u)}}function t0(t,n,e){return r;function r(o){return Je(o)?Rr(t,i)(o):e(o)}function i(o){return o===34||o===39||o===40?Bs(t,ke(t,a,"whitespace"),e,"definitionTitle","definitionTitleMarker","definitionTitleString")(o):e(o)}function a(o){return o===null||se(o)?n(o):e(o)}}var pu={name:"hardBreakEscape",tokenize:n0};function n0(t,n,e){return r;function r(a){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(a),i}function i(a){return se(a)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),n(a)):e(a)}}var mu={name:"headingAtx",tokenize:i0,resolve:r0};function r0(t,n){let e=t.length-2,r=3,i,a;return t[r][1].type==="whitespace"&&(r+=2),e-2>r&&t[e][1].type==="whitespace"&&(e-=2),t[e][1].type==="atxHeadingSequence"&&(r===e-1||e-4>r&&t[e-2][1].type==="whitespace")&&(e-=r+1===e?2:4),e>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[e][1].end},a={type:"chunkText",start:t[r][1].start,end:t[e][1].end,contentType:"text"},Mt(t,r,e-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),t}function i0(t,n,e){let r=this,i=0;return a;function a(c){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(t.consume(c),o):c===null||Je(c)?(t.exit("atxHeadingSequence"),r.interrupt?n(c):s(c)):e(c)}function s(c){return c===35?(t.enter("atxHeadingSequence"),u(c)):c===null||se(c)?(t.exit("atxHeading"),n(c)):He(c)?ke(t,s,"whitespace")(c):(t.enter("atxHeadingText"),l(c))}function u(c){return c===35?(t.consume(c),u):(t.exit("atxHeadingSequence"),s(c))}function l(c){return c===null||c===35||Je(c)?(t.exit("atxHeadingText"),s(c)):(t.consume(c),l)}}var Dv=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],gu=["pre","script","style","textarea"];var vu={name:"htmlFlow",tokenize:s0,resolveTo:o0,concrete:!0},a0={tokenize:l0,partial:!0};function o0(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function s0(t,n,e){let r=this,i,a,o,s,u;return l;function l(I){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(I),c}function c(I){return I===33?(t.consume(I),d):I===47?(t.consume(I),p):I===63?(t.consume(I),i=3,r.interrupt?n:he):fn(I)?(t.consume(I),o=String.fromCharCode(I),a=!0,g):e(I)}function d(I){return I===45?(t.consume(I),i=2,f):I===91?(t.consume(I),i=5,o="CDATA[",s=0,h):fn(I)?(t.consume(I),i=4,r.interrupt?n:he):e(I)}function f(I){return I===45?(t.consume(I),r.interrupt?n:he):e(I)}function h(I){return I===o.charCodeAt(s++)?(t.consume(I),s===o.length?r.interrupt?n:X:h):e(I)}function p(I){return fn(I)?(t.consume(I),o=String.fromCharCode(I),g):e(I)}function g(I){return I===null||I===47||I===62||Je(I)?I!==47&&a&&gu.includes(o.toLowerCase())?(i=1,r.interrupt?n(I):X(I)):Dv.includes(o.toLowerCase())?(i=6,I===47?(t.consume(I),w):r.interrupt?n(I):X(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?e(I):a?T(I):S(I)):I===45||jt(I)?(t.consume(I),o+=String.fromCharCode(I),g):e(I)}function w(I){return I===62?(t.consume(I),r.interrupt?n:X):e(I)}function S(I){return He(I)?(t.consume(I),S):z(I)}function T(I){return I===47?(t.consume(I),z):I===58||I===95||fn(I)?(t.consume(I),k):He(I)?(t.consume(I),T):z(I)}function k(I){return I===45||I===46||I===58||I===95||jt(I)?(t.consume(I),k):D(I)}function D(I){return I===61?(t.consume(I),N):He(I)?(t.consume(I),D):T(I)}function N(I){return I===null||I===60||I===61||I===62||I===96?e(I):I===34||I===39?(t.consume(I),u=I,C):He(I)?(t.consume(I),N):(u=null,O(I))}function C(I){return I===null||se(I)?e(I):I===u?(t.consume(I),B):(t.consume(I),C)}function O(I){return I===null||I===34||I===39||I===60||I===61||I===62||I===96||Je(I)?D(I):(t.consume(I),O)}function B(I){return I===47||I===62||He(I)?T(I):e(I)}function z(I){return I===62?(t.consume(I),Q):e(I)}function Q(I){return He(I)?(t.consume(I),Q):I===null||se(I)?X(I):e(I)}function X(I){return I===45&&i===2?(t.consume(I),te):I===60&&i===1?(t.consume(I),ce):I===62&&i===4?(t.consume(I),De):I===63&&i===3?(t.consume(I),he):I===93&&i===5?(t.consume(I),fe):se(I)&&(i===6||i===7)?t.check(a0,De,ie)(I):I===null||se(I)?ie(I):(t.consume(I),X)}function ie(I){return t.exit("htmlFlowData"),q(I)}function q(I){return I===null?A(I):se(I)?t.attempt({tokenize:J,partial:!0},q,A)(I):(t.enter("htmlFlowData"),X(I))}function J(I,et,qe){return K;function K(U){return I.enter("lineEnding"),I.consume(U),I.exit("lineEnding"),V}function V(U){return r.parser.lazy[r.now().line]?qe(U):et(U)}}function te(I){return I===45?(t.consume(I),he):X(I)}function ce(I){return I===47?(t.consume(I),o="",de):X(I)}function de(I){return I===62&&gu.includes(o.toLowerCase())?(t.consume(I),De):fn(I)&&o.length<8?(t.consume(I),o+=String.fromCharCode(I),de):X(I)}function fe(I){return I===93?(t.consume(I),he):X(I)}function he(I){return I===62?(t.consume(I),De):I===45&&i===2?(t.consume(I),he):X(I)}function De(I){return I===null||se(I)?(t.exit("htmlFlowData"),A(I)):(t.consume(I),De)}function A(I){return t.exit("htmlFlow"),n(I)}}function l0(t,n,e){return r;function r(i){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(i),t.exit("lineEndingBlank"),t.attempt(Er,n,e)}}var yu={name:"htmlText",tokenize:c0};function c0(t,n,e){let r=this,i,a,o,s;return u;function u(A){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(A),l}function l(A){return A===33?(t.consume(A),c):A===47?(t.consume(A),O):A===63?(t.consume(A),N):fn(A)?(t.consume(A),Q):e(A)}function c(A){return A===45?(t.consume(A),d):A===91?(t.consume(A),a="CDATA[",o=0,w):fn(A)?(t.consume(A),D):e(A)}function d(A){return A===45?(t.consume(A),f):e(A)}function f(A){return A===null||A===62?e(A):A===45?(t.consume(A),h):p(A)}function h(A){return A===null||A===62?e(A):p(A)}function p(A){return A===null?e(A):A===45?(t.consume(A),g):se(A)?(s=p,fe(A)):(t.consume(A),p)}function g(A){return A===45?(t.consume(A),De):p(A)}function w(A){return A===a.charCodeAt(o++)?(t.consume(A),o===a.length?S:w):e(A)}function S(A){return A===null?e(A):A===93?(t.consume(A),T):se(A)?(s=S,fe(A)):(t.consume(A),S)}function T(A){return A===93?(t.consume(A),k):S(A)}function k(A){return A===62?De(A):A===93?(t.consume(A),k):S(A)}function D(A){return A===null||A===62?De(A):se(A)?(s=D,fe(A)):(t.consume(A),D)}function N(A){return A===null?e(A):A===63?(t.consume(A),C):se(A)?(s=N,fe(A)):(t.consume(A),N)}function C(A){return A===62?De(A):N(A)}function O(A){return fn(A)?(t.consume(A),B):e(A)}function B(A){return A===45||jt(A)?(t.consume(A),B):z(A)}function z(A){return se(A)?(s=z,fe(A)):He(A)?(t.consume(A),z):De(A)}function Q(A){return A===45||jt(A)?(t.consume(A),Q):A===47||A===62||Je(A)?X(A):e(A)}function X(A){return A===47?(t.consume(A),De):A===58||A===95||fn(A)?(t.consume(A),ie):se(A)?(s=X,fe(A)):He(A)?(t.consume(A),X):De(A)}function ie(A){return A===45||A===46||A===58||A===95||jt(A)?(t.consume(A),ie):q(A)}function q(A){return A===61?(t.consume(A),J):se(A)?(s=q,fe(A)):He(A)?(t.consume(A),q):X(A)}function J(A){return A===null||A===60||A===61||A===62||A===96?e(A):A===34||A===39?(t.consume(A),i=A,te):se(A)?(s=J,fe(A)):He(A)?(t.consume(A),J):(t.consume(A),i=void 0,de)}function te(A){return A===i?(t.consume(A),ce):A===null?e(A):se(A)?(s=te,fe(A)):(t.consume(A),te)}function ce(A){return A===62||A===47||Je(A)?X(A):e(A)}function de(A){return A===null||A===34||A===39||A===60||A===61||A===96?e(A):A===62||Je(A)?X(A):(t.consume(A),de)}function fe(A){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),ke(t,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function he(A){return t.enter("htmlTextData"),s(A)}function De(A){return A===62?(t.consume(A),t.exit("htmlTextData"),t.exit("htmlText"),n):e(A)}}var Hr={name:"labelEnd",tokenize:m0,resolveTo:p0,resolveAll:h0},u0={tokenize:g0},d0={tokenize:v0},f0={tokenize:y0};function h0(t){let n=-1,e;for(;++n<t.length;)e=t[n][1],(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(t.splice(n+1,e.type==="labelImage"?4:2),e.type="data",n++);return t}function p0(t,n){let e=t.length,r=0,i,a,o,s;for(;e--;)if(i=t[e][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(t[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=e,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=e);let u={type:t[a][1].type==="labelLink"?"link":"image",start:Object.assign({},t[a][1].start),end:Object.assign({},t[t.length-1][1].end)},l={type:"label",start:Object.assign({},t[a][1].start),end:Object.assign({},t[o][1].end)},c={type:"labelText",start:Object.assign({},t[a+r+2][1].end),end:Object.assign({},t[o-2][1].start)};return s=[["enter",u,n],["enter",l,n]],s=Vt(s,t.slice(a+1,a+r+3)),s=Vt(s,[["enter",c,n]]),s=Vt(s,ki(n.parser.constructs.insideSpan.null,t.slice(a+r+4,o-3),n)),s=Vt(s,[["exit",c,n],t[o-2],t[o-1],["exit",l,n]]),s=Vt(s,t.slice(o+1)),s=Vt(s,[["exit",u,n]]),Mt(t,a,t.length,s),t}function m0(t,n,e){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(c){return a?a._inactive?l(c):(o=r.parser.defined.includes(ir(r.sliceSerialize({start:a.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelEnd"),u):e(c)}function u(c){return c===40?t.attempt(u0,n,o?n:l)(c):c===91?t.attempt(d0,n,o?t.attempt(f0,n,l):l)(c):o?n(c):l(c)}function l(c){return a._balanced=!0,e(c)}}function g0(t,n,e){return r;function r(u){return t.enter("resource"),t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),Rr(t,i)}function i(u){return u===41?s(u):Rs(t,a,e,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function a(u){return Je(u)?Rr(t,o)(u):s(u)}function o(u){return u===34||u===39||u===40?Bs(t,Rr(t,s),e,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):s(u)}function s(u){return u===41?(t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),t.exit("resource"),n):e(u)}}function v0(t,n,e){let r=this;return i;function i(o){return Hs.call(r,t,a,e,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(ir(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):e(o)}}function y0(t,n,e){return r;function r(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),i}function i(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),n):e(a)}}var bu={name:"labelStartImage",tokenize:b0,resolveAll:Hr.resolveAll};function b0(t,n,e){let r=this;return i;function i(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),a}function a(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),o):e(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(s):n(s)}}var wu={name:"labelStartLink",tokenize:w0,resolveAll:Hr.resolveAll};function w0(t,n,e){let r=this;return i;function i(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(o):n(o)}}var Ia={name:"lineEnding",tokenize:E0};function E0(t,n){return e;function e(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),ke(t,n,"linePrefix")}}var Br={name:"thematicBreak",tokenize:S0};function S0(t,n,e){let r=0,i;return a;function a(u){return t.enter("thematicBreak"),i=u,o(u)}function o(u){return u===i?(t.enter("thematicBreakSequence"),s(u)):He(u)?ke(t,o,"whitespace")(u):r<3||u!==null&&!se(u)?e(u):(t.exit("thematicBreak"),n(u))}function s(u){return u===i?(t.consume(u),r++,s):(t.exit("thematicBreakSequence"),o(u))}}var Ht={name:"list",tokenize:_0,continuation:{tokenize:T0},exit:C0},x0={tokenize:D0,partial:!0},k0={tokenize:M0,partial:!0};function _0(t,n,e){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){let p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ma(h)){if(r.containerState.type||(r.containerState.type=p,t.enter(p,{_container:!0})),p==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(Br,e,l)(h):l(h);if(!r.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(h)}return e(h)}function u(h){return Ma(h)&&++o<10?(t.consume(h),u):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),l(h)):e(h)}function l(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,t.check(Er,r.interrupt?e:c,t.attempt(x0,f,d))}function c(h){return r.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return He(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),f):e(h)}function f(h){return r.containerState.size=a+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(h)}}function T0(t,n,e){let r=this;return r.containerState._closeFlow=void 0,t.check(Er,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(t,n,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!He(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(k0,n,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(t,t.attempt(Ht,n,e),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function M0(t,n,e){let r=this;return ke(t,i,"listItemIndent",r.containerState.size+1);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(a):e(a)}}function C0(t){t.exit(this.containerState.type)}function D0(t,n,e){let r=this;return ke(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){let o=r.events[r.events.length-1];return!He(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):e(a)}}var Ks={name:"setextUnderline",tokenize:I0,resolveTo:A0};function A0(t,n){let e=t.length,r,i,a;for(;e--;)if(t[e][0]==="enter"){if(t[e][1].type==="content"){r=e;break}t[e][1].type==="paragraph"&&(i=e)}else t[e][1].type==="content"&&t.splice(e,1),!a&&t[e][1].type==="definition"&&(a=e);let o={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",a?(t.splice(i,0,["enter",o,n]),t.splice(a+1,0,["exit",t[r][1],n]),t[r][1].end=Object.assign({},t[a][1].end)):t[r][1]=o,t.push(["exit",o,n]),t}function I0(t,n,e){let r=this,i=r.events.length,a,o;for(;i--;)if(r.events[i][1].type!=="lineEnding"&&r.events[i][1].type!=="linePrefix"&&r.events[i][1].type!=="content"){o=r.events[i][1].type==="paragraph";break}return s;function s(c){return!r.parser.lazy[r.now().line]&&(r.interrupt||o)?(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),a=c,u(c)):e(c)}function u(c){return c===a?(t.consume(c),u):(t.exit("setextHeadingLineSequence"),ke(t,l,"lineSuffix")(c))}function l(c){return c===null||se(c)?(t.exit("setextHeadingLine"),n(c)):e(c)}}var Av={tokenize:L0};function L0(t){let n=this,e=t.attempt(Er,r,t.attempt(this.parser.constructs.flowInitial,i,ke(t,t.attempt(this.parser.constructs.flow,i,t.attempt(fu,i)),"linePrefix")));return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),n.currentConstruct=void 0,e}function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n.currentConstruct=void 0,e}}var Iv={resolveAll:Nv()},Lv=Ov("string"),Pv=Ov("text");function Ov(t){return{tokenize:n,resolveAll:Nv(t==="text"?P0:void 0)};function n(e){let r=this,i=this.parser.constructs[t],a=e.attempt(i,o,s);return o;function o(c){return l(c)?a(c):s(c)}function s(c){if(c===null){e.consume(c);return}return e.enter("data"),e.consume(c),u}function u(c){return l(c)?(e.exit("data"),a(c)):(e.consume(c),u)}function l(c){if(c===null)return!0;let d=i[c],f=-1;if(d)for(;++f<d.length;){let h=d[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Nv(t){return n;function n(e,r){let i=-1,a;for(;++i<=e.length;)a===void 0?e[i]&&e[i][1].type==="data"&&(a=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),i=a+2),a=void 0);return t?t(e,r):e}}function P0(t,n){let e=0;for(;++e<=t.length;)if((e===t.length||t[e][1].type==="lineEnding")&&t[e-1][1].type==="data"){let r=t[e-1][1],i=n.sliceStream(r),a=i.length,o=-1,s=0,u;for(;a--;){let l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){a++;break}}if(s){let l={type:e===t.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},l.start),r.start.offset===r.end.offset?Object.assign(r,l):(t.splice(e,0,["enter",l,n],["exit",l,n]),e+=2)}e++}return t}function Fv(t,n,e){let r=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},a=[],o=[],s=[],u=!0,l={consume:D,enter:N,exit:C,attempt:z(O),check:z(B),interrupt:z(B,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:g,sliceSerialize:p,now:w,defineSkip:S,write:h},d=n.tokenize.call(c,l),f;return n.resolveAll&&a.push(n),c;function h(q){return o=Vt(o,q),T(),o[o.length-1]!==null?[]:(Q(n,0),c.events=ki(a,c.events,c),c.events)}function p(q,J){return N0(g(q),J)}function g(q){return O0(o,q)}function w(){return Object.assign({},r)}function S(q){i[q.line]=q.column,ie()}function T(){let q;for(;r._index<o.length;){let J=o[r._index];if(typeof J=="string")for(q=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===q&&r._bufferIndex<J.length;)k(J.charCodeAt(r._bufferIndex));else k(J)}}function k(q){u=void 0,f=q,d=d(q)}function D(q){se(q)?(r.line++,r.column=1,r.offset+=q===-3?2:1,ie()):q!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=q,u=!0}function N(q,J){let te=J||{};return te.type=q,te.start=w(),c.events.push(["enter",te,c]),s.push(te),te}function C(q){let J=s.pop();return J.end=w(),c.events.push(["exit",J,c]),J}function O(q,J){Q(q,J.from)}function B(q,J){J.restore()}function z(q,J){return te;function te(ce,de,fe){let he,De,A,I;return Array.isArray(ce)?qe(ce):"tokenize"in ce?qe([ce]):et(ce);function et(G){return ye;function ye(Ee){let Fe=Ee!==null&&G[Ee],Ge=Ee!==null&&G.null,ht=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return qe(ht)(Ee)}}function qe(G){return he=G,De=0,G.length===0?fe:K(G[De])}function K(G){return ye;function ye(Ee){return I=X(),A=G,G.partial||(c.currentConstruct=G),G.name&&c.parser.constructs.disable.null.includes(G.name)?U(Ee):G.tokenize.call(J?Object.assign(Object.create(c),J):c,l,V,U)(Ee)}}function V(G){return u=!0,q(A,I),de}function U(G){return u=!0,I.restore(),++De<he.length?K(he[De]):fe}}}function Q(q,J){q.resolveAll&&!a.includes(q)&&a.push(q),q.resolve&&Mt(c.events,J,c.events.length-J,q.resolve(c.events.slice(J),c)),q.resolveTo&&(c.events=q.resolveTo(c.events,c))}function X(){let q=w(),J=c.previous,te=c.currentConstruct,ce=c.events.length,de=Array.from(s);return{restore:fe,from:ce};function fe(){r=q,c.previous=J,c.currentConstruct=te,c.events.length=ce,s=de,ie()}}function ie(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function O0(t,n){let e=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex,o;return e===i?o=[t[e].slice(r,a)]:(o=t.slice(e,i),r>-1&&(o[0]=o[0].slice(r)),a>0&&o.push(t[i].slice(0,a))),o}function N0(t,n){let e=-1,r=[],i;for(;++e<t.length;){let a=t[e],o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
||
`;break}case-3:{o=`\r
|
||
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}var Eu={};Oi(Eu,{attentionMarkers:()=>z0,contentInitial:()=>R0,disable:()=>V0,document:()=>F0,flow:()=>B0,flowInitial:()=>H0,insideSpan:()=>U0,string:()=>K0,text:()=>$0});var F0={[42]:Ht,[43]:Ht,[45]:Ht,[48]:Ht,[49]:Ht,[50]:Ht,[51]:Ht,[52]:Ht,[53]:Ht,[54]:Ht,[55]:Ht,[56]:Ht,[57]:Ht,[62]:Ls},R0={[91]:hu},H0={[-2]:Aa,[-1]:Aa,[32]:Aa},B0={[35]:mu,[42]:Br,[45]:[Ks,Br],[60]:vu,[61]:Ks,[95]:Br,[96]:Ns,[126]:Ns},K0={[38]:Os,[92]:Ps},$0={[-5]:Ia,[-4]:Ia,[-3]:Ia,[33]:bu,[38]:Os,[42]:Da,[60]:[cu,yu],[91]:wu,[92]:[pu,Ps],[93]:Hr,[95]:Da,[96]:du},U0={null:[Da,Iv]},z0={null:[42,95]},V0={null:[]};function Rv(t={}){let n=bv([Eu].concat(t.extensions||[])),e={defined:[],lazy:{},constructs:n,content:r(_v),document:r(Tv),flow:r(Av),string:r(Lv),text:r(Pv)};return e;function r(i){return a;function a(o){return Fv(e,i,o)}}}var Hv=/[\0\t\n\r]/g;function Bv(){let t=1,n="",e=!0,r;return i;function i(a,o,s){let u=[],l,c,d,f,h;for(a=n+a.toString(o),d=0,n="",e&&(a.charCodeAt(0)===65279&&d++,e=void 0);d<a.length;){if(Hv.lastIndex=d,l=Hv.exec(a),f=l&&l.index!==void 0?l.index:a.length,h=a.charCodeAt(f),!l){n=a.slice(d);break}if(h===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(a.slice(d,f)),t+=f-d),h){case 0:{u.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,u.push(-2);t++<c;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:r=!0,t=1}d=f+1}return s&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}function Kv(t){for(;!Fs(t););return t}function $s(t,n){let e=Number.parseInt(t,n);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)==65535||(e&65535)==65534||e>1114111?"\uFFFD":String.fromCharCode(e)}var j0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $v(t){return t.replace(j0,W0)}function W0(t,n,e){if(n)return n;if(e.charCodeAt(0)===35){let i=e.charCodeAt(1),a=i===120||i===88;return $s(e.slice(a?2:1),a?16:10)}return _i(e)||t}var Ti={}.hasOwnProperty;function La(t){return!t||typeof t!="object"?"":Ti.call(t,"position")||Ti.call(t,"type")?Uv(t.position):Ti.call(t,"start")||Ti.call(t,"end")?Uv(t):Ti.call(t,"line")||Ti.call(t,"column")?Su(t):""}function Su(t){return zv(t&&t.line)+":"+zv(t&&t.column)}function Uv(t){return Su(t&&t.start)+"-"+Su(t&&t.end)}function zv(t){return t&&typeof t=="number"?t:1}var xu={}.hasOwnProperty,Us=function(t,n,e){return typeof n!="string"&&(e=n,n=void 0),q0(e)(Kv(Rv(e).document().write(Bv()(t,n,!0))))};function q0(t={}){let n=Vv({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(zn),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:u(nn),blockQuote:u(Ge),characterEscape:ie,characterReference:ie,codeFenced:u(ht),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(ht,l),codeText:u(pt,l),codeTextData:ie,data:ie,codeFlowValue:ie,definition:u(tn),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(yn),hardBreakEscape:u(Wt),hardBreakTrailing:u(Wt),htmlFlow:u(Ct,l),htmlFlowData:ie,htmlText:u(Ct,l),htmlTextData:ie,image:u(Un),label:l,link:u(zn),listItem:u(Mn),listItemValue:g,listOrdered:u(Tn,p),listUnordered:u(Tn),paragraph:u(Cn),reference:V,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(nn),strong:u(lt),thematicBreak:u(tt)},exit:{atxHeading:d(),atxHeadingSequence:B,autolink:d(),autolinkEmail:Fe,autolinkProtocol:Ee,blockQuote:d(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:ye,codeFenced:d(k),codeFencedFence:T,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:q,codeIndented:d(D),codeText:d(fe),codeTextData:q,data:q,definition:d(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:C,emphasis:d(),hardBreakEscape:d(te),hardBreakTrailing:d(te),htmlFlow:d(ce),htmlFlowData:q,htmlText:d(de),htmlTextData:q,image:d(De),label:I,labelText:A,lineEnding:J,link:d(he),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:et,resourceTitleString:qe,resource:K,setextHeading:d(X),setextHeadingLineSequence:Q,setextHeadingText:z,strong:d(),thematicBreak:d()}},t.mdastExtensions||[]),e={};return r;function r(j){let ne={type:"root",children:[]},be=[ne],Be=[],ct=[],rn={stack:be,tokenStack:Be,config:n,enter:c,exit:f,buffer:l,resume:h,setData:a,getData:o},Ue=-1;for(;++Ue<j.length;)if(j[Ue][1].type==="listOrdered"||j[Ue][1].type==="listUnordered")if(j[Ue][0]==="enter")ct.push(Ue);else{let Se=ct.pop();Ue=i(j,Se,Ue)}for(Ue=-1;++Ue<j.length;){let Se=n[j[Ue][0]];xu.call(Se,j[Ue][1].type)&&Se[j[Ue][1].type].call(Object.assign({sliceSerialize:j[Ue][2].sliceSerialize},rn),j[Ue][1])}if(Be.length>0){let Se=Be[Be.length-1];(Se[1]||jv).call(rn,void 0,Se[0])}for(ne.position={start:s(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:s(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<n.transforms.length;)ne=n.transforms[Ue](ne)||ne;return ne}function i(j,ne,be){let Be=ne-1,ct=-1,rn=!1,Ue,Se,Dt,Kt;for(;++Be<=be;){let Ye=j[Be];if(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered"||Ye[1].type==="blockQuote"?(Ye[0]==="enter"?ct++:ct--,Kt=void 0):Ye[1].type==="lineEndingBlank"?Ye[0]==="enter"&&(Ue&&!Kt&&!ct&&!Dt&&(Dt=Be),Kt=void 0):Ye[1].type==="linePrefix"||Ye[1].type==="listItemValue"||Ye[1].type==="listItemMarker"||Ye[1].type==="listItemPrefix"||Ye[1].type==="listItemPrefixWhitespace"||(Kt=void 0),!ct&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||ct===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Ue){let qt=Be;for(Se=void 0;qt--;){let yt=j[qt];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;Se&&(j[Se][1].type="lineEndingBlank",rn=!0),yt[1].type="lineEnding",Se=qt}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}Dt&&(!Se||Dt<Se)&&(Ue._spread=!0),Ue.end=Object.assign({},Se?j[Se][1].start:Ye[1].end),j.splice(Se||Be,0,["exit",Ue,Ye[2]]),Be++,be++}Ye[1].type==="listItemPrefix"&&(Ue={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start)},j.splice(Be,0,["enter",Ue,Ye[2]]),Be++,be++,Dt=void 0,Kt=!0)}}return j[ne][1]._spread=rn,be}function a(j,ne){e[j]=ne}function o(j){return e[j]}function s(j){return{line:j.line,column:j.column,offset:j.offset}}function u(j,ne){return be;function be(Be){c.call(this,j(Be),Be),ne&&ne.call(this,Be)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(j,ne,be){return this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([ne,be]),j.position={start:s(ne.start)},j}function d(j){return ne;function ne(be){j&&j.call(this,be),f.call(this,be)}}function f(j,ne){let be=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==j.type&&(ne?ne.call(this,j,Be[0]):(Be[1]||jv).call(this,j,Be[0]));else throw new Error("Cannot close `"+j.type+"` ("+La({start:j.start,end:j.end})+"): it\u2019s not open");return be.position.end=s(j.end),be}function h(){return _a(this.stack.pop())}function p(){a("expectingFirstListItemValue",!0)}function g(j){if(o("expectingFirstListItemValue")){let ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(j),10),a("expectingFirstListItemValue")}}function w(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=j}function S(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=j}function T(){o("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function k(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function D(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.value=j.replace(/(\r?\n|\r)$/g,"")}function N(j){let ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=ir(this.sliceSerialize(j)).toLowerCase()}function C(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.title=j}function O(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.url=j}function B(j){let ne=this.stack[this.stack.length-1];if(!ne.depth){let be=this.sliceSerialize(j).length;ne.depth=be}}function z(){a("setextHeadingSlurpLineEnding",!0)}function Q(j){let ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(j).charCodeAt(0)===61?1:2}function X(){a("setextHeadingSlurpLineEnding")}function ie(j){let ne=this.stack[this.stack.length-1],be=ne.children[ne.children.length-1];(!be||be.type!=="text")&&(be=Bt(),be.position={start:s(j.start)},ne.children.push(be)),this.stack.push(be)}function q(j){let ne=this.stack.pop();ne.value+=this.sliceSerialize(j),ne.position.end=s(j.end)}function J(j){let ne=this.stack[this.stack.length-1];if(o("atHardBreak")){let be=ne.children[ne.children.length-1];be.position.end=s(j.end),a("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(ne.type)&&(ie.call(this,j),q.call(this,j))}function te(){a("atHardBreak",!0)}function ce(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.value=j}function de(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.value=j}function fe(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.value=j}function he(){let j=this.stack[this.stack.length-1];o("inReference")?(j.type+="Reference",j.referenceType=o("referenceType")||"shortcut",delete j.url,delete j.title):(delete j.identifier,delete j.label),a("referenceType")}function De(){let j=this.stack[this.stack.length-1];o("inReference")?(j.type+="Reference",j.referenceType=o("referenceType")||"shortcut",delete j.url,delete j.title):(delete j.identifier,delete j.label),a("referenceType")}function A(j){let ne=this.stack[this.stack.length-2],be=this.sliceSerialize(j);ne.label=$v(be),ne.identifier=ir(be).toLowerCase()}function I(){let j=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];a("inReference",!0),be.type==="link"?be.children=j.children:be.alt=ne}function et(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.url=j}function qe(){let j=this.resume(),ne=this.stack[this.stack.length-1];ne.title=j}function K(){a("inReference")}function V(){a("referenceType","collapsed")}function U(j){let ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=ir(this.sliceSerialize(j)).toLowerCase(),a("referenceType","full")}function G(j){a("characterReferenceType",j.type)}function ye(j){let ne=this.sliceSerialize(j),be=o("characterReferenceType"),Be;be?(Be=$s(ne,be==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):Be=_i(ne);let ct=this.stack.pop();ct.value+=Be,ct.position.end=s(j.end)}function Ee(j){q.call(this,j);let ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(j)}function Fe(j){q.call(this,j);let ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(j)}function Ge(){return{type:"blockquote",children:[]}}function ht(){return{type:"code",lang:null,meta:null,value:""}}function pt(){return{type:"inlineCode",value:""}}function tn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yn(){return{type:"emphasis",children:[]}}function nn(){return{type:"heading",depth:void 0,children:[]}}function Wt(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function Un(){return{type:"image",title:null,url:"",alt:null}}function zn(){return{type:"link",title:null,url:"",children:[]}}function Tn(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Mn(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function lt(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function tt(){return{type:"thematicBreak"}}}function Vv(t,n){let e=-1;for(;++e<n.length;){let r=n[e];Array.isArray(r)?Vv(t,r):Y0(t,r)}return t}function Y0(t,n){let e;for(e in n)if(xu.call(n,e)){let r=e==="canContainEols"||e==="transforms",a=(xu.call(t,e)?t[e]:void 0)||(t[e]=r?[]:{}),o=n[e];o&&(r?t[e]=[...a,...o]:Object.assign(a,o))}}function jv(t,n){throw t?new Error("Cannot close `"+t.type+"` ("+La({start:t.start,end:t.end})+"): a different token (`"+n.type+"`, "+La({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+La({start:n.start,end:n.end})+") is still open")}var qv=me(Wv()),Pa=Object.assign(Kr(Error),{eval:Kr(EvalError),range:Kr(RangeError),reference:Kr(ReferenceError),syntax:Kr(SyntaxError),type:Kr(TypeError),uri:Kr(URIError)});function Kr(t){return n.displayName=t.displayName||t.name,n;function n(e,...r){var i=e&&(0,qv.default)(e,...r);return new t(i)}}var zs={}.hasOwnProperty,Yv={yaml:"-",toml:"+"};function Vs(t="yaml"){let n=[],e=-1;for(Array.isArray(t)||(t=[t]);++e<t.length;)n[e]=J0(t[e]);return n}function J0(t){let n=t;if(typeof n=="string"){if(!zs.call(Yv,n))throw Pa("Missing matter definition for `%s`",n);n={type:n,marker:Yv[n]}}else if(typeof n!="object")throw Pa("Expected matter to be an object, not `%j`",n);if(!zs.call(n,"type"))throw Pa("Missing `type` in matter `%j`",n);if(!zs.call(n,"fence")&&!zs.call(n,"marker"))throw Pa("Missing `marker` or `fence` in matter `%j`",n);return n}function Jv(t){let n=Vs(t),e={},r={},i=-1;for(;++i<n.length;){let a=n[i];e[a.type]=G0(a),r[a.type]=Q0,r[a.type+"Value"]=X0}return{enter:e,exit:r}}function G0(t){return n;function n(e){this.enter({type:t.type,value:""},e),this.buffer()}}function Q0(t){let n=this.resume();this.exit(t).value=n.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function X0(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}function _u(t){let n=Vs(t),e={},r=-1,i,a;for(;++r<n.length;)i=n[r],a=Tu(i,"open").charCodeAt(0),a in e?e[a].push(Gv(i)):e[a]=[Gv(i)];return{flow:e}}function Gv(t){let n=t.type,e=t.anywhere,r=n+"Value",i=n+"Fence",a=i+"Sequence",o={tokenize:l,partial:!0},s;return{tokenize:u,concrete:!0};function u(c,d,f){let h=this;return p;function p(D){let N=h.now();return N.column!==1||!e&&N.line!==1?f(D):(c.enter(n),s=Tu(t,"open"),c.attempt(o,g,f)(D))}function g(D){return s=Tu(t,"close"),T(D)}function w(D){return D===null||se(D)?T(D):(c.enter(r),S(D))}function S(D){return D===null||se(D)?(c.exit(r),T(D)):(c.consume(D),S)}function T(D){return D===null?f(D):(c.enter("lineEnding"),c.consume(D),c.exit("lineEnding"),c.attempt(o,k,w))}function k(D){return c.exit(n),d(D)}}function l(c,d,f){let h=0;return p;function p(T){return T===s.charCodeAt(h)?(c.enter(i),c.enter(a),g(T)):f(T)}function g(T){return h===s.length?(c.exit(a),He(T)?(c.enter("whitespace"),w(T)):S(T)):T===s.charCodeAt(h++)?(c.consume(T),g):f(T)}function w(T){return He(T)?(c.consume(T),w):(c.exit("whitespace"),S(T))}function S(T){return T===null||se(T)?(c.exit(i),d(T)):f(T)}}}function Tu(t,n){return t.marker?Qv(t.marker,n).repeat(3):Qv(t.fence,n)}function Qv(t,n){return typeof t=="string"?t:t[n]}var oy=me(require("obsidian"));function Mi(t){return t[t.length-1]}function Xv(){let t="blockid",n="^";function e(i,a,o){let s=!1,u=0;return l;function l(h){return h!==n.charCodeAt(u)?o(h):(i.enter(t),i.enter(`${t}Marker`),c(h))}function c(h){return u===n.length?(i.exit(`${t}Marker`),d(h)):h!==n.charCodeAt(u)?o(h):(i.consume(h),u++,c)}function d(h){return i.enter(`${t}Data`),i.enter(`${t}Target`),f(h)}function f(h){return He(h)?o(h):se(h)||h===null?s?(i.exit(`${t}Target`),i.exit(`${t}Data`),i.exit(t),a(h)):o(h):(s=!0,i.consume(h),f)}}let r={tokenize:e};return{text:{[n.charCodeAt(0)]:r}}}function Zv(){let t="blockid";function n(i){this.enter({type:t,value:null},i)}function e(i){let a=this.sliceSerialize(i),o=Mi(this.stack);o.value=a}function r(i){this.exit(i)}return{enter:{[t]:n},exit:{[`${t}Target`]:e,[t]:r}}}function Ci(t,n,e){function r(a,o,s){let u=!1,l=0,c=0;return d;function d(w){return w!==n.charCodeAt(l)?s(w):(a.enter(t),a.enter(`${t}Marker`),f(w))}function f(w){return l===n.length?(a.exit(`${t}Marker`),h(w)):w!==n.charCodeAt(l)?s(w):(a.consume(w),l++,f)}function h(w){return se(w)||w===null?s(w):(a.enter(`${t}Data`),a.enter(`${t}Target`),p(w))}function p(w){return w===e.charCodeAt(c)?u?(a.exit(`${t}Target`),a.exit(`${t}Data`),a.enter(`${t}Marker`),g(w)):s(w):se(w)||w===null?s(w):(Je(w)||(u=!0),a.consume(w),p)}function g(w){return c===e.length?(a.exit(`${t}Marker`),a.exit(t),o(w)):w!==e.charCodeAt(c)?s(w):(a.consume(w),c++,g)}}let i={tokenize:r};return{text:{[n.charCodeAt(0)]:i}}}function Di(t,n){function e(a){this.enter({type:t,value:null},a)}function r(a){let o=this.sliceSerialize(a),s=Mi(this.stack);s.value=o,n&&n(o,s)}function i(a){this.exit(a)}return{enter:{[t]:e},exit:{[`${t}Target`]:r,[t]:i}}}function ey(t){function n(r){t(this.stack[this.stack.length-1],!1),this.exit(r)}function e(r){t(this.stack[this.stack.length-1],!0),this.exit(r)}return{exit:{link:n,image:e}}}function ty(){let t="hashtag",n="#";function e(i,a,o){let s=!1,u=0,l=this;return c;function c(p){return p!==n.charCodeAt(u)||u===0&&l.previous!==" ".charCodeAt(0)&&l.previous!==">".charCodeAt(0)?o(p):(i.enter(t),i.enter(`${t}Marker`),d(p))}function d(p){return u===n.length?(i.exit(`${t}Marker`),f(p)):p!==n.charCodeAt(u)?o(p):(i.consume(p),u++,d)}function f(p){return i.enter(`${t}Data`),i.enter(`${t}Target`),h(p)}function h(p){return Je(p)||"<".charCodeAt(0)===p||"#".charCodeAt(0)===p||p===null?s?(i.exit(`${t}Target`),i.exit(`${t}Data`),i.exit(t),a(p)):o(p):(s=!0,i.consume(p),h)}}let r={tokenize:e};return{text:{[n.charCodeAt(0)]:r}}}function ny(){let t="hashtag";function n(i){this.enter({type:t,value:null},i)}function e(i){let a=this.sliceSerialize(i),o=Mi(this.stack);o.value=a}function r(i){this.exit(i)}return{enter:{[t]:n},exit:{[`${t}Target`]:e,[t]:r}}}var Ai={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var Mu={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var Z0={tokenize:e_},ry={text:{[Ai.leftSquareBracket]:Z0}};function e_(t,n,e){let r=this;return i;function i(s){return r.previous!==Ai.eof||!r._gfmTasklistFirstContentOfListItem?e(s):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),a)}function a(s){return He(s)?(t.enter("taskListCheckValueUnchecked"),t.consume(s),t.exit("taskListCheckValueUnchecked"),o):s!==Ai.rightSquareBracket?(t.enter("taskListCheckValueChecked"),t.consume(s),t.exit("taskListCheckValueChecked"),o):e(s)}function o(s){return s===Ai.rightSquareBracket?(t.enter("taskListCheckMarker"),t.consume(s),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),t.check({tokenize:t_},n,e)):e(s)}}function t_(t,n,e){let r=this;return ke(t,i,Mu.whitespace);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type===Mu.whitespace&&a!==Ai.eof&&!Je(a)?n(a):e(a)}}var iy={exit:{taskListCheckValueChecked:ay,taskListCheckValueUnchecked:ay,paragraph:n_}};function ay(t){let n=this.stack[this.stack.length-2];n.checked=t.type==="taskListCheckValueChecked",n.checkChar=this.sliceSerialize(t)}function n_(t){let n=this.stack[this.stack.length-2],e=this.stack[this.stack.length-1],r=n.children,i=e.children[0],a=-1,o;if(n&&n.type==="listItem"&&typeof n.checked=="boolean"&&i&&i.type==="text"){for(;++a<r.length;){let s=r[a];if(s.type==="paragraph"){o=s;break}}o===e&&(i.value=i.value.slice(1),i.value.length===0?e.children.shift():e.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}this.exit(t)}function r_(t){let n=-1,e=0;for(let r=0,i=t.length;r<i;r++){if(e<3)if(t[r]==="-"){e++;continue}else throw new Error("Error parsing frontmatter");if(n<0&&(n=r),t[r]==="-"&&/[\r\n]/.test(t[r-1])&&t[r+1]==="-"&&t[r+2]==="-")return(0,oy.parseYaml)(t.slice(n,r-1).trim())}}function i_(t){let n=!1,e=0,r=-1;for(let i=t.length-1;i>=0;i--){if(!n&&/[`%\n\r]/.test(t[i])){t[i]==="`"&&(e++,e===3&&(n=!0,r=i-1));continue}else if(!n)return{};if(t[i]==="`"&&t[i-1]==="`"&&t[i-2]==="`"&&/[\r\n]/.test(t[i-3]))return JSON.parse(t.slice(i+1,r).trim())}}function sy(t){return[ry,Ci("date",`${t.getSetting("date-trigger")}{`,"}"),Ci("dateLink",`${t.getSetting("date-trigger")}[[`,"]]"),Ci("time",`${t.getSetting("time-trigger")}{`,"}"),Ci("embedWikilink","![[","]]"),Ci("wikilink","[[","]]"),ty(),Xv()]}function ly(t){return[iy,Di("date",(n,e)=>{!n||(e.date=n)}),Di("dateLink",(n,e)=>{!n||(e.date=n)}),Di("time",(n,e)=>{!n||(e.time=n)}),Di("embedWikilink",(n,e)=>{if(!n)return;let r=Pr(n),i=t.app.metadataCache.getFirstLinkpathDest(r.root,t.file.path);e.fileAccessor={target:r.root,isEmbed:!0,stats:i==null?void 0:i.stat}}),Di("wikilink",(n,e)=>{if(!n)return;let r=Pr(n),i=t.app.metadataCache.getFirstLinkpathDest(r.root,t.file.path);if(e.fileAccessor={target:r.root,isEmbed:!1},i){let a=Vc(t,i);e.fileMetadata=a.fileMetadata,e.fileMetadataOrder=a.fileMetadataOrder}}),ey((n,e)=>{if(!n.url||/:\/\//.test(n.url)||!/.md$/.test(n.url))return;let r=t.app.metadataCache.getFirstLinkpathDest(decodeURIComponent(n.url),t.file.path);if(e)n.type="embedLink",n.fileAccessor={target:decodeURIComponent(n.url),isEmbed:!0,stats:r.stat};else if(n.fileAccessor={target:decodeURIComponent(n.url),isEmbed:!1},r){let i=Vc(t,r);n.fileMetadata=i.fileMetadata,n.fileMetadataOrder=i.fileMetadataOrder}}),ny(),Zv()]}function cy(t,n){let e=r_(n),i={...i_(n)},a={};return Object.keys(e).forEach(o=>{o===dn?(i[o]=e[o],a[o]=e[o]):Zg[o]?i[o]=e[o]:a[o]=e[o]}),t.compileSettings(i),{settings:i,frontmatter:a,ast:Us(n,{extensions:[_u(["yaml"]),...sy(t)],mdastExtensions:[Jv(["yaml"]),...ly(t)]})}}function Cu(t,n){return Us(n,{extensions:sy(t),mdastExtensions:ly(t)})}function Ws(t,n,e){let r=t.getSetting("hide-tags-in-title"),i=t.getSetting("hide-date-in-title"),a=iu(e.children[0]),o=au(n,a);(o==="[ ]"||o==="[x]")&&(o="");let s=o,u={titleRaw:o.replace(/<br>/g,`
|
||
`),blockId:void 0,title:"",titleSearch:"",metadata:{dateStr:void 0,date:void 0,time:void 0,timeStr:void 0,tags:[],fileAccessor:void 0,file:void 0,fileMetadata:void 0,fileMetadataOrder:void 0},dom:void 0,isComplete:!!e.checked};return dv(e,l=>l.type!=="paragraph",l=>{let c=l;if(c.type==="blockid")return u.blockId=c.value,!0;if(c.type==="hashtag")return u.metadata.tags||(u.metadata.tags=[]),u.metadata.tags.push("#"+c.value),r&&(s=Is(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="date"||c.type==="dateLink")return u.metadata.dateStr=c.date,i&&(s=Is(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start})),!0;if(c.type==="time")return u.metadata.timeStr=c.time,s=Is(s,{start:l.position.start.offset-a.start,end:l.position.end.offset-a.start}),!0;if(c.type==="embedWikilink")return u.metadata.fileAccessor=c.fileAccessor,!0;if(c.type==="wikilink"||c.type==="link"&&c.fileAccessor)return u.metadata.fileAccessor=c.fileAccessor,u.metadata.fileMetadata=c.fileMetadata,u.metadata.fileMetadataOrder=c.fileMetadataOrder,!0;if(c.type==="embedLink")return u.metadata.fileAccessor=c.fileAccessor,!0}),u.title=vv(s).replace(/<br>/g,`
|
||
`),u}function a_(t,n,e){if(t.type!=="heading"||_a(t,{includeImageAlt:!1})!==F("Archive"))return!1;let r=fv(n,e);return r&&r.type==="thematicBreak"}function dy(t,n,e,r,i){let a=[],o=[];return r.children.forEach((s,u)=>{if(s.type==="heading"){let l=a_(s,r.children,u),c=iu(s),d=au(i,c),f=!1,h=hv(r.children,u,"list",p=>{if(p.type==="heading")return!1;if(p.type==="paragraph"){let g=_a(p);if(g.startsWith("%% kanban:settings"))return!1;if(g===F("Complete"))return f=!0,!0}return!0});if(l&&h){o.push(...h.children.map(p=>({...Uo,id:Ke(),data:Ws(t,i,p)})));return}h?a.push({...mr,children:h.children.map(p=>({...Uo,id:Ke(),data:Ws(t,i,p)})),id:Ke(),data:{title:d,shouldMarkItemsComplete:f}}):a.push({...mr,children:[],id:Ke(),data:{title:d,shouldMarkItemsComplete:f}})}}),{...zo,id:t.file.path,children:a,data:{settings:n,frontmatter:e,archive:o,isSearching:!1,errors:[]}}}async function Du(t,n,e){let r=`- [${n.data.isComplete?"x":" "}] ${e.replace(/(\r\n|\n)/g,"<br>").trim()}${n.data.blockId?` ^${n.data.blockId}`:""}`,i=Cu(t,r),a=Ws(t,r,i.children[0].children[0]),o=(0,js.default)(n,{data:{$set:a}});try{await Ta(t,o)}catch(s){console.error(s)}return o}async function fy(t,n,e,r){let i=`- [${e?"x":" "}] ${n.trim().replace(/(\r\n|\n)/g,"<br>")}`,a=Cu(t,i),o=Ws(t,i,a.children[0].children[0]);o.forceEditMode=!!r;let s={...Uo,id:Ke(),data:o};try{await Ta(t,s)}catch(u){console.error(u)}return s}async function hy(t,n){try{return(0,js.default)(n,{children:{$set:await Promise.all(n.children.map(async e=>{try{return(0,js.default)(e,{children:{$set:await Promise.all(e.children.map(r=>Du(t,r,r.data.titleRaw)))}})}catch(r){throw t.setError(r),r}}))}})}catch(e){throw t.setError(e),e}}function py(t){return`- [${t.data.isComplete?"x":" "}] ${t.data.titleRaw.replace(/(\r\n|\n)/g,"<br>").trim()}${t.data.blockId?` ^${t.data.blockId}`:""}`}function o_(t){let n=[];return n.push(`## ${t.data.title}`),n.push(""),t.data.shouldMarkItemsComplete&&n.push(Ng),t.children.forEach(e=>{n.push(py(e))}),n.push(""),n.push(""),n.push(""),n.join(`
|
||
`)}function s_(t){if(t.length){let n=[Fg,"",`## ${F("Archive")}`,""];return t.forEach(e=>{n.push(py(e))}),n.join(`
|
||
`)}return""}function my(t){let n=t.children.reduce((r,i)=>r+o_(i),"");return["---","",(0,uy.stringifyYaml)(t.data.frontmatter),"---","",""].join(`
|
||
`)+n+s_(t.data.archive)+Rg(t.data.settings)}var Au=class{constructor(n){this.stateManager=n}newItem(n,e,r){return fy(this.stateManager,n,e,r)}updateItemContent(n,e){return Du(this.stateManager,n,e)}boardToMd(n){return my(n)}mdToBoard(n){let{ast:e,settings:r,frontmatter:i}=cy(this.stateManager,n),a=dy(this.stateManager,r,i,e,n);if(this.stateManager.state){let s=eu(this.stateManager.state,a).filter(l=>["/id","/dom","/date","/time","/titleSearch","/file"].every(c=>!l.path.endsWith(c))),u=(0,gy.immutableJSONPatch)(this.stateManager.state,s);return gv(this.stateManager,u,s)}return mv(this.stateManager,a)}reparseBoard(){return hy(this.stateManager,this.stateManager.state)}};var Iu=class{constructor(n,e,r,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.newBoardPromise=null;this.getSetting=(n,e)=>e&&e[n]!==void 0?e[n]:this.compiledSettings&&this.compiledSettings[n]!==void 0?this.compiledSettings[n]:this.getSettingRaw(n);this.getSettingRaw=(n,e)=>{var r,i;return e&&e[n]!==void 0?e[n]:((i=(r=this.state)==null?void 0:r.data)==null?void 0:i.settings)&&this.state.data.settings[n]!==void 0?this.state.data.settings[n]:this.getGlobalSetting(n)};this.getGlobalSetting=n=>{let e=this.getGlobalSettings();return e&&e[n]!==void 0?e[n]:null};this.app=n,this.file=e.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new Au(this),this.registerView(e,r,!0)}getAView(){return this.viewSet.values().next().value}registerView(n,e,r){this.viewSet.has(n)||(this.viewSet.add(n),n.initHeaderButtons()),r&&(this.newBoardPromise!==null?this.newBoardPromise.then(()=>this.newBoard(e)):this.newBoardPromise=this.newBoard(e).then(()=>{this.newBoardPromise=null}).catch(i=>{console.error(i),this.setError(i)}))}unregisterView(n){this.viewSet.has(n)&&(this.viewSet.delete(n),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(n){try{await this.setState(await this.getParsedBoard(n),!1)}catch(e){this.setError(e)}}saveToDisk(){if(this.state.data.errors.length>0)return;let n=this.getAView(),e=this.parser.boardToMd(this.state);n.requestSaveToDisk(e),this.viewSet.forEach(r=>{r.data=e})}softRefresh(){this.stateReceivers.forEach(n=>n({...this.state}))}async forceRefresh(){if(this.state)try{this.compileSettings(),this.state=await this.parser.reparseBoard(),this.stateReceivers.forEach(n=>n(this.state)),this.viewSet.forEach(n=>n.initHeaderButtons())}catch(n){console.error(n),this.setError(n)}}async setState(n,e=!0){var r;try{let i=(r=this.state)==null?void 0:r.data.settings,a=typeof n=="function"?await n(this.state):n,o=a==null?void 0:a.data.settings;i&&o&&Bg(i,o)?(this.state=(0,Ii.default)(this.state,{data:{settings:{$set:o}}}),this.compileSettings(),this.state=await this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.viewSet.forEach(s=>s.initHeaderButtons()),e&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[n,e]=v.useState(this.state);return v.useEffect(()=>(this.stateReceivers.push(r=>{e(r)}),e(this.state),()=>{this.stateReceivers.remove(e)}),[]),n}useSetting(n){let[e,r]=v.useState(this.getSetting(n));return v.useEffect(()=>{let i=()=>{r(this.getSetting(n))};return this.settingsNotifiers.has(n)?this.settingsNotifiers.get(n).push(i):this.settingsNotifiers.set(n,[i]),()=>{this.settingsNotifiers.get(n).remove(i)}},[]),e}compileSettings(n){var s,u,l,c,d;let e=this.getGlobalSetting("metadata-keys")||[],r=this.getSettingRaw("metadata-keys",n)||[],i=this.getSettingRaw("date-format",n)||Xr(this.app),a=this.getSettingRaw("time-format",n)||Vi(this.app),o=this.getSettingRaw("prepend-archive-format",n)||`${i} ${a}`;this.compiledSettings={"date-format":i,"date-display-format":this.getSettingRaw("date-display-format",n)||i,"date-trigger":this.getSettingRaw("date-trigger",n)||ys,"time-format":a,"time-trigger":this.getSettingRaw("time-trigger",n)||bs,"link-date-to-daily-note":this.getSettingRaw("link-date-to-daily-note",n),"hide-date-in-title":this.getSettingRaw("hide-date-in-title",n),"hide-tags-in-title":this.getSettingRaw("hide-tags-in-title",n),"metadata-keys":[...e,...r],"prepend-archive-separator":this.getSettingRaw("prepend-archive-separator")||"","prepend-archive-format":o,"show-add-list":(s=this.getSettingRaw("show-add-list",n))!=null?s:!0,"show-archive-all":(u=this.getSettingRaw("show-archive-all",n))!=null?u:!0,"show-view-as-markdown":(l=this.getSettingRaw("show-view-as-markdown",n))!=null?l:!0,"show-board-settings":(c=this.getSettingRaw("show-board-settings",n))!=null?c:!0,"show-search":(d=this.getSettingRaw("show-search",n))!=null?d:!0}}async getParsedBoard(n){let e=n.trim(),r={...zo,id:this.file.path,children:[],data:{archive:[],settings:{"kanban-plugin":"basic"},frontmatter:{},isSearching:!1,errors:[]}};try{e&&(r=await this.parser.mdToBoard(e))}catch(i){console.error(i),r=(0,Ii.default)(r,{data:{errors:{$push:[{description:i.toString(),stack:i.stack}]}}})}return r}setError(n){this.setState((0,Ii.default)(this.state,{data:{errors:{$push:[{description:n.toString(),stack:n.stack}]}}}),!1)}onFileMetadataChange(){this.reparseBoardFromMd()}async reparseBoardFromMd(){try{this.setState(await this.getParsedBoard(this.getAView().data),!1)}catch(n){console.error(n),this.setError(n)}}async archiveCompletedCards(){let n=this.state,e=[],r=!!this.getSetting("prepend-archive-date"),i=this.getSetting("prepend-archive-separator"),a=this.getSetting("prepend-archive-format"),o=u=>{let l=[(0,vy.moment)().format(a)];i&&l.push(i),l.push(u.data.titleRaw);let c=l.join(" ");return this.parser.updateItemContent(u,c)},s=n.children.map(u=>(0,Ii.default)(u,{children:{$set:u.children.filter(l=>((u.data.shouldMarkItemsComplete||l.data.isComplete)&&e.push(l),!l.data.isComplete&&!u.data.shouldMarkItemsComplete))}}));this.app.workspace.trigger("kanban:board-cards-archived",this.file,e);try{this.setState((0,Ii.default)(n,{children:{$set:s},data:{archive:{$push:r?await Promise.all(e.map(u=>o(u))):e}}}))}catch(u){this.setError(u)}}getNewItem(n,e,r){return this.parser.newItem(n,e,r)}updateItemContent(n,e){return this.parser.updateItemContent(n,e)}};var Lu=class extends vn.Plugin{constructor(){super(...arguments);this.settings={};this.kanbanFileModes={};this.stateManagers=new Map;this.viewMap=new Map;this._loaded=!1;this.isShiftPressed=!1;this.handleShift=n=>{this.isShiftPressed=n.shiftKey};this.viewStateReceivers=[]}async loadSettings(){this.settings=Object.assign({},await this.loadData())}async saveSettings(){await this.saveData(this.settings)}onunload(){this.stateManagers.clear(),this.viewStateReceivers.forEach(e=>e(this.getKanbanViews())),this.app.workspace.getLeavesOfType(_n).forEach(e=>{this.setMarkdownView(e)}),this.app.workspace.unregisterHoverLinkSource(dn),this.appEl&&(v.unmountComponentAtNode(this.appEl),this.appEl.detach()),window.removeEventListener("keydown",this.handleShift),window.removeEventListener("keyup",this.handleShift)}async onload(){await this.loadSettings(),this.settingsTab=new Yc(this,{onSettingsChange:async n=>{this.settings=n,await this.saveSettings(),this.stateManagers.forEach(e=>{e.forceRefresh()})}}),this.addSettingTab(this.settingsTab),this.registerView(_n,n=>new Nr(n,this)),this.registerMonkeyPatches(),this.registerCommands(),this.registerEvents(),this.mount(),window.addEventListener("keydown",this.handleShift),window.addEventListener("keyup",this.handleShift)}getKanbanViews(){return Array.from(this.viewMap.values())}getKanbanView(n){return this.viewMap.get(n)}getStateManager(n){return this.stateManagers.get(n)}getStateManagerFromViewID(n){return this.stateManagers.get(this.getKanbanView(n).file)}useViewState(){let[n,e]=v.useState(this.getKanbanViews());return v.useEffect(()=>(this.viewStateReceivers.push(e),()=>{this.viewStateReceivers.remove(e)}),[]),n}addView(n,e,r){this.viewMap.has(n.id)||this.viewMap.set(n.id,n);let i=n.file;this.stateManagers.has(i)?this.stateManagers.get(i).registerView(n,e,r):this.stateManagers.set(i,new Iu(this.app,n,e,()=>this.stateManagers.delete(i),()=>this.settings)),this.viewStateReceivers.forEach(a=>a(this.getKanbanViews()))}removeView(n){let e=n.file;this.viewMap.has(n.id)&&this.viewMap.delete(n.id),this.stateManagers.has(e)&&(this.stateManagers.get(e).unregisterView(n),this.viewStateReceivers.forEach(r=>r(this.getKanbanViews())))}handleViewFileRename(n,e){let r=`${n.leaf.id}:::${e}`;this.viewMap.has(r)&&this.viewMap.delete(r),this.viewMap.has(n.id)||this.viewMap.set(n.id,n),n.isPrimary&&this.getStateManager(n.file).softRefresh()}mount(){var n;v.render(Pg(this),(n=this.appEl)!=null?n:this.appEl=document.body.createDiv())}async setMarkdownView(n,e=!0){await n.setViewState({type:"markdown",state:n.view.getState(),popstate:!0},{focus:e})}async setKanbanView(n){await n.setViewState({type:_n,state:n.view.getState(),popstate:!0})}async newKanban(n){var r;let e=n||this.app.fileManager.getNewFileParent(((r=this.app.workspace.getActiveFile())==null?void 0:r.path)||"");try{let i=await this.app.fileManager.createNewMarkdownFile(e,F("Untitled Kanban"));await this.app.vault.modify(i,zc),await this.app.workspace.activeLeaf.setViewState({type:_n,state:{file:i.path}})}catch(i){console.error("Error creating kanban board:",i)}}registerEvents(){this.registerEvent(this.app.workspace.on("file-menu",(e,r)=>{r instanceof vn.TFolder&&e.addItem(i=>{i.setTitle(F("New kanban board")).setIcon(Es).onClick(()=>this.newKanban(r))})})),this.registerEvent(this.app.vault.on("rename",(e,r)=>{this.app.workspace.getLeavesOfType(_n).forEach(a=>{a.view.handleRename(e.path,r)})}));let n=(0,vn.debounce)(e=>{this.stateManagers.forEach(r=>{r.file!==e&&r.onFileMetadataChange()})},2e3,!0);this.registerEvent(this.app.vault.on("modify",e=>{e instanceof vn.TFile&&n(e)})),this.registerEvent(this.app.metadataCache.on("changed",e=>{n(e)})),this.registerEvent(this.app.metadataCache.on("dataview:metadata-change",(e,r)=>{n(r)})),this.registerEvent(this.app.metadataCache.on("dataview:api-ready",()=>{this.stateManagers.forEach(e=>{e.forceRefresh()})})),this.app.workspace.registerHoverLinkSource(dn,{display:"Kanban",defaultMod:!0})}registerCommands(){this.addCommand({id:"create-new-kanban-board",name:F("Create new board"),callback:()=>this.newKanban()}),this.addCommand({id:"archive-completed-cards",name:F("Archive completed cards in active board"),checkCallback:n=>{let e=this.app.workspace.getActiveViewOfType(Nr);if(!e)return!1;if(n)return!0;this.stateManagers.get(e.file).archiveCompletedCards()}}),this.addCommand({id:"toggle-kanban-view",name:F("Toggle between Kanban and markdown mode"),checkCallback:n=>{let e=this.app.workspace.getActiveFile();if(!e)return!1;let r=this.app.metadataCache.getFileCache(e),i=!!(r==null?void 0:r.frontmatter)&&!!r.frontmatter[dn];if(n)return i;let a=this.app.workspace.activeLeaf;(a==null?void 0:a.view)&&a.view instanceof Nr?(this.kanbanFileModes[a.id||e.path]="markdown",this.setMarkdownView(a)):i&&(this.kanbanFileModes[a.id||e.path]=_n,this.setKanbanView(a))}}),this.addCommand({id:"convert-to-kanban",name:F("Convert empty note to Kanban"),checkCallback:n=>{let e=this.app.workspace.getActiveFile(),r=this.app.workspace.activeLeaf;if(!e||!r)return!1;let i=e.stat.size===0;if(n)return i;i&&this.app.vault.modify(e,zc).then(()=>{this.setKanbanView(r)}).catch(a=>console.error(a))}}),this.addCommand({id:"add-kanban-lane",name:F("Add a list"),checkCallback:n=>{let e=this.app.workspace.activeLeaf;if(n)return e.view instanceof Nr;e.view.emitter.emit("showLaneForm",void 0)}})}registerMonkeyPatches(){let n=this;this.app.workspace.onLayoutReady(()=>{this.register(Fa(this.app.commands,{executeCommandById(e){return function(r){let i=n.app.workspace.getActiveViewOfType(Nr);return i&&i.emitter.emit("hotkey",r),e.call(this,r)}}}))}),this.register(Fa(vn.WorkspaceLeaf.prototype,{detach(e){return function(){var i;let r=(i=this.view)==null?void 0:i.getState();return(r==null?void 0:r.file)&&n.kanbanFileModes[this.id||r.file]&&delete n.kanbanFileModes[this.id||r.file],e.apply(this)}},setViewState(e){return function(r,...i){var a;if(n._loaded&&r.type==="markdown"&&((a=r.state)==null?void 0:a.file)&&n.kanbanFileModes[this.id||r.state.file]!=="markdown"){let o=n.app.metadataCache.getCache(r.state.file);if((o==null?void 0:o.frontmatter)&&o.frontmatter[dn]){let s={...r,type:_n};return n.kanbanFileModes[r.state.file]=_n,e.apply(this,[s,...i])}}return e.apply(this,[r,...i])}}})),this.register(Fa(vn.MarkdownView.prototype,{onMoreOptionsMenu(e){return function(r){let i=this.file,a=i?n.app.metadataCache.getFileCache(i):null;if(!i||!(a==null?void 0:a.frontmatter)||!a.frontmatter[dn])return e.call(this,r);r.addItem(o=>{o.setTitle(F("Open as kanban board")).setIcon(Es).onClick(()=>{n.kanbanFileModes[this.leaf.id||i.path]=_n,n.setKanbanView(this.leaf)})}).addSeparator(),e.call(this,r)}}}))}};0&&(module.exports={});
|
||
/*!
|
||
* Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
|
||
*
|
||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||
* All Rights Reserved. Apache Software License 2.0
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*/
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
/*!
|
||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||
* (c) 2017 Joachim Wester
|
||
* MIT license
|
||
*/
|
||
/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||
/*!***************************************************
|
||
* mark.js v8.11.1
|
||
* https://markjs.io/
|
||
* Copyright (c) 2014–2018, Julian Kühnel
|
||
* Released under the MIT license https://git.io/vwTVl
|
||
*****************************************************/
|