mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-02-23 06:39:51 -06:00
14 lines
76 KiB
JavaScript
14 lines
76 KiB
JavaScript
|
const An=function(){const ot=document.createElement("link").relList;if(ot&&ot.supports&&ot.supports("modulepreload"))return;for(const q of document.querySelectorAll('link[rel="modulepreload"]'))Mt(q);new MutationObserver(q=>{for(const _t of q)if(_t.type==="childList")for(const R of _t.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&Mt(R)}).observe(document,{childList:!0,subtree:!0});function Qt(q){const _t={};return q.integrity&&(_t.integrity=q.integrity),q.referrerpolicy&&(_t.referrerPolicy=q.referrerpolicy),q.crossorigin==="use-credentials"?_t.credentials="include":q.crossorigin==="anonymous"?_t.credentials="omit":_t.credentials="same-origin",_t}function Mt(q){if(q.ep)return;q.ep=!0;const _t=Qt(q);fetch(q.href,_t)}};An();var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cn={exports:{}};/*! For license information please see lsplugin.user.js.LICENSE.txt */(function(Q,ot){(function(Qt,Mt){Q.exports=Mt()})(self,()=>(()=>{var Qt={227:(R,p,S)=>{var N=S(155);p.formatArgs=function(E){if(E[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+E[0]+(this.useColors?"%c ":" ")+"+"+R.exports.humanize(this.diff),!this.useColors)return;const U="color: "+this.color;E.splice(1,0,U,"color: inherit");let m=0,l=0;E[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(m++,g==="%c"&&(l=m))}),E.splice(l,0,U)},p.save=function(E){try{E?p.storage.setItem("debug",E):p.storage.removeItem("debug")}catch{}},p.load=function(){let E;try{E=p.storage.getItem("debug")}catch{}return!E&&N!==void 0&&"env"in N&&(E=N.env.DEBUG),E},p.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},p.storage=function(){try{return localStorage}catch{}}(),p.destroy=(()=>{let E=!1;return()=>{E||(E=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),p.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],p.log=console.debug||console.log||(()=>{}),R.exports=S(447)(p);const{formatters:w}=R.exports;w.j=function(E){try{return JSON.stringify(E)}catch(U){return"[UnexpectedJSONParseError]: "+U.message}}},447:(R,p,S)=>{R.exports=function(N){function w(m){let l,g,y,z=null;function I(...k){if(!I.enabled)return;const $=I,A=Number(new Date),L=A-(l||A);$.diff=L,$.prev=l,$.curr=A,l=A,k[0]=w.coerce(k[0]),typeof k[0]!="string"&&k.unshift("%O");let i=0;k[0]=k[0].replace(/%([a-zA-Z%])/g,(s,h)=>{if(s==="%%")return"%";i++;const x=w.formatters[h];if(typeof x=="function"){const H=k[i];s=x.call($,H),k.splice(i,1),i--}return s}),w.formatArgs.call($,k),($.log||w.log).apply($,k)}return I.namespace=m,I.useColors=w.useColors(),I.color=w.selectColor(m),I.extend=E,I.destroy=w.d
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U(P,b){(b==null||b>P.length)&&(b=P.length);for(var T=0,W=new Array(b);T<b;T++)W[T]=P[T];return W}var m=Object.hasOwnProperty,l=Object.setPrototypeOf,g=Object.isFrozen,y=Object.getPrototypeOf,z=Object.getOwnPropertyDescriptor,I=Object.freeze,k=Object.seal,$=Object.create,A=typeof Reflect<"u"&&Reflect,L=A.apply,i=A.construct;L||(L=function(P,b,T){return P.apply(b,T)}),I||(I=function(P){return P}),k||(k=function(P){return P}),i||(i=function(P,b){return w(P,E(b))});var s,h=c(Array.prototype.forEach),x=c(Array.prototype.pop),H=c(Array.prototype.push),G=c(String.prototype.toLowerCase),tt=c(String.prototype.match),it=c(String.prototype.replace),wt=c(String.prototype.indexOf),vt=c(String.prototype.trim),st=c(RegExp.prototype.test),qt=(s=TypeError,function(){for(var P=arguments.length,b=new Array(P),T=0;T<P;T++)b[T]=arguments[T];return i(s,b)});function c(P){return function(b){for(var T=arguments.length,W=new Array(T>1?T-1:0),et=1;et<T;et++)W[et-1]=arguments[et];return L(P,b,W)}}function u(P,b){l&&l(P,null);for(var T=b.length;T--;){var W=b[T];if(typeof W=="string"){var et=G(W);et!==W&&(g(b)||(b[T]=et),W=et)}P[W]=!0}return P}function F(P){var b,T=$(null);for(b in P)L(m,P,[b])&&(T[b]=P[b]);return T}function V(P,b){for(;P!==null;){var T=z(P,b);if(T){if(T.get)return c(T.get);if(typeof T.value=="function")return c(T.value)}P=y(P)}return function(W){return console.warn("fallback value for",W),null}}var gt=I(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ut=I(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=I(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),at=I(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ht=I(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),dt=I(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rt=I(["#text"]),xt=I(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","col
|
||
|
`+a),Jt&&(a=it(a,Oe," "),a=it(a,de," ")),It&&oe?It.createHTML(a):a},T.setConfig=function(r){Me(r),Zt=!0},T.clearConfig=function(){Xt=null,Zt=!1},T.isValidAttribute=function(r,C,v){Xt||Me({});var Z=zt(r),rt=zt(C);return ln(Z,rt,v)},T.addHook=function(r,C){typeof C=="function"&&(St[r]=St[r]||[],H(St[r],C))},T.removeHook=function(r){if(St[r])return x(St[r])},T.removeHooks=function(r){St[r]&&(St[r]=[])},T.removeAllHooks=function(){St={}},T}()}()},729:R=>{var p=Object.prototype.hasOwnProperty,S="~";function N(){}function w(l,g,y){this.fn=l,this.context=g,this.once=y||!1}function E(l,g,y,z,I){if(typeof y!="function")throw new TypeError("The listener must be a function");var k=new w(y,z||l,I),$=S?S+g:g;return l._events[$]?l._events[$].fn?l._events[$]=[l._events[$],k]:l._events[$].push(k):(l._events[$]=k,l._eventsCount++),l}function U(l,g){--l._eventsCount==0?l._events=new N:delete l._events[g]}function m(){this._events=new N,this._eventsCount=0}Object.create&&(N.prototype=Object.create(null),new N().__proto__||(S=!1)),m.prototype.eventNames=function(){var l,g,y=[];if(this._eventsCount===0)return y;for(g in l=this._events)p.call(l,g)&&y.push(S?g.slice(1):g);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(l)):y},m.prototype.listeners=function(l){var g=S?S+l:l,y=this._events[g];if(!y)return[];if(y.fn)return[y.fn];for(var z=0,I=y.length,k=new Array(I);z<I;z++)k[z]=y[z].fn;return k},m.prototype.listenerCount=function(l){var g=S?S+l:l,y=this._events[g];return y?y.fn?1:y.length:0},m.prototype.emit=function(l,g,y,z,I,k){var $=S?S+l:l;if(!this._events[$])return!1;var A,L,i=this._events[$],s=arguments.length;if(i.fn){switch(i.once&&this.removeListener(l,i.fn,void 0,!0),s){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,g),!0;case 3:return i.fn.call(i.context,g,y),!0;case 4:return i.fn.call(i.context,g,y,z),!0;case 5:return i.fn.call(i.context,g,y,z,I),!0;case 6:return i.fn.call(i.context,g,y,z,I,k),!0}for(L=1,A=new Array(s-1);L<s;L++)A[L-1]=arguments[L];i.fn.apply(i.context,A)}else{var h,x=i.length;for(L=0;L<x;L++)switch(i[L].once&&this.removeListener(l,i[L].fn,void 0,!0),s){case 1:i[L].fn.call(i[L].context);break;case 2:i[L].fn.call(i[L].context,g);break;case 3:i[L].fn.call(i[L].context,g,y);break;case 4:i[L].fn.call(i[L].context,g,y,z);break;default:if(!A)for(h=1,A=new Array(s-1);h<s;h++)A[h-1]=arguments[h];i[L].fn.apply(i[L].context,A)}}return!0},m.prototype.on=function(l,g,y){return E(this,l,g,y,!1)},m.prototype.once=function(l,g,y){return E(this,l,g,y,!0)},m.prototype.removeListener=function(l,g,y,z){var I=S?S+l:l;if(!this._events[I])return this;if(!g)return U(this,I),this;var k=this._events[I];if(k.fn)k.fn!==g||z&&!k.once||y&&k.context!==y||U(this,I);else{for(var $=0,A=[],L=k.length;$<L;$++)(k[$].fn!==g||z&&!k[$].once||y&&k[$].context!==y)&&A.push(k[$]);A.length?this._events[I]=A.length===1?A[0]:A:U(this,I)}return this},m.prototype.removeAllListeners=function(l){var g;return l?(g=S?S+l:l,this._events[g]&&U(this,g)):(this._events=new N,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prefixed=S,m.EventEmitter=m,R.exports=m},824:R=>{var p=1e3,S=60*p,N=60*S,w=24*N;function E(U,m,l,g){var y=m>=1.5*l;return Math.round(U/l)+" "+g+(y?"s":"")}R.exports=function(U,m){m=m||{};var l,g,y=typeof U;if(y==="string"&&U.length>0)return function(z){if(!((z=String(z)).length>100)){var I=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(z);if(I){var k=parseFloat(I[1]);switch((I[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return 6048e5*k;case"days":case"day":case"d":return k*w;case"hours":case"hour":case"hrs":case"hr":case"h":return k*N;case"minutes":case"minute":case"mins":case"min":case"m":return k*S;case"seconds":case"second":case"secs":case"sec":case"s":return k*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(U);if(y==="numb
|
||
|
`),Et+Bt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?pt[0]+(Y===""?"":Y+`
|
||
|
`)+" "+ct.join(`,
|
||
|
`)+" "+pt[1]:pt[0]+Y+" "+ct.join(", ")+" "+pt[1]}(ht,dt,xt)):xt[0]+dt+xt[1]}function z(c){return"["+Error.prototype.toString.call(c)+"]"}function I(c,u,F,V,gt,ut){var B,at,ht;if((ht=Object.getOwnPropertyDescriptor(u,gt)||{value:u[gt]}).get?at=ht.set?c.stylize("[Getter/Setter]","special"):c.stylize("[Getter]","special"):ht.set&&(at=c.stylize("[Setter]","special")),qt(V,gt)||(B="["+gt+"]"),at||(c.seen.indexOf(ht.value)<0?(at=A(F)?y(c,ht.value,null):y(c,ht.value,F-1)).indexOf(`
|
||
|
`)>-1&&(at=ut?at.split(`
|
||
|
`).map(function(dt){return" "+dt}).join(`
|
||
|
`).substr(2):`
|
||
|
`+at.split(`
|
||
|
`).map(function(dt){return" "+dt}).join(`
|
||
|
`)):at=c.stylize("[Circular]","special")),s(B)){if(ut&>.match(/^\d+$/))return at;(B=JSON.stringify(""+gt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(B=B.substr(1,B.length-2),B=c.stylize(B,"name")):(B=B.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),B=c.stylize(B,"string"))}return B+": "+at}function k(c){return Array.isArray(c)}function $(c){return typeof c=="boolean"}function A(c){return c===null}function L(c){return typeof c=="number"}function i(c){return typeof c=="string"}function s(c){return c===void 0}function h(c){return x(c)&&it(c)==="[object RegExp]"}function x(c){return typeof c=="object"&&c!==null}function H(c){return x(c)&&it(c)==="[object Date]"}function G(c){return x(c)&&(it(c)==="[object Error]"||c instanceof Error)}function tt(c){return typeof c=="function"}function it(c){return Object.prototype.toString.call(c)}function wt(c){return c<10?"0"+c.toString(10):c.toString(10)}p.debuglog=function(c){if(s(E)&&(E=N.env.NODE_DEBUG||""),c=c.toUpperCase(),!U[c])if(new RegExp("\\b"+c+"\\b","i").test(E)){var u=N.pid;U[c]=function(){var F=p.format.apply(p,arguments);console.error("%s %d: %s",c,u,F)}}else U[c]=function(){};return U[c]},p.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},p.isArray=k,p.isBoolean=$,p.isNull=A,p.isNullOrUndefined=function(c){return c==null},p.isNumber=L,p.isString=i,p.isSymbol=function(c){return typeof c=="symbol"},p.isUndefined=s,p.isRegExp=h,p.isObject=x,p.isDate=H,p.isError=G,p.isFunction=tt,p.isPrimitive=function(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||c===void 0},p.isBuffer=S(384);var vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function st(){var c=new Date,u=[wt(c.getHours()),wt(c.getMinutes()),wt(c.getSeconds())].join(":");return[c.getDate(),vt[c.getMonth()],u].join(" ")}function qt(c,u){return Object.prototype.hasOwnProperty.call(c,u)}p.log=function(){console.log("%s - %s",st(),p.format.apply(p,arguments))},p.inherits=S(496),p._extend=function(c,u){if(!u||!x(u))return c;for(var F=Object.keys(u),V=F.length;V--;)c[F[V]]=u[F[V]];return c}}},Mt={};function q(R){var p=Mt[R];if(p!==void 0)return p.exports;var S=Mt[R]={exports:{}};return Qt[R].call(S.exports,S,S.exports,q),S.exports}q.n=R=>{var p=R&&R.__esModule?()=>R.default:()=>R;return q.d(p,{a:p}),p},q.d=(R,p)=>{for(var S in p)q.o(p,S)&&!q.o(R,S)&&Object.defineProperty(R,S,{enumerable:!0,get:p[S]})},q.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),q.o=(R,p)=>Object.prototype.hasOwnProperty.call(R,p),q.r=R=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})};var _t={};return(()=>{q.r(_t),q.d(_t,{LSPluginUser:()=>Z,setupPluginUserInstance:()=>rt});var R=q(520);q(856);const p=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(p(e[n][0],t))return n;return-1};var N=Array.prototype.splice;function w(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}w.prototype.clear=function(){this.__data__=[],this.size=0},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),--this.size,0))},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,o=S(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};const E=w,U=typeof pn=="object"&&pn&&pn.Object===Object&&pn;var m=typeof self=="object"&&self&&self.Object===Object&&self;const l=U||m||Function("return this")(),g=l.Symbol;var y=Object.prototype,z=
|
||
|
`);logseq.provideStyle({key:xn.id+"-vars",style:`:root { ${Mt} }`})}async function In(){Sn(),logseq.onSettingsChanged(Sn),wn&&logseq.provideStyle({key:xn.id,style:wn.css});const Q=await Tn();if(Q!==wn?.version){console.log("logseq-bullet-threading: updating to latest version "+Q);const ot=await jn(Q);logseq.provideStyle({key:xn.id+"-styles",style:ot}),kn({css:ot,version:Q})}}logseq.useSettingsSchema([{key:"width",default:"2px",description:"Width of the bullet threading.",title:"Width of the bullet threading path",type:"enum",enumPicker:"radio",enumChoices:["1px","2px","3px"]},{key:"customColor",default:!1,description:"Overwrite threading path color?",title:"Whether or not to overwrite threading path color.",type:"boolean"},{key:"color",default:"",description:"Color of the bullet threading. You need to enable 'Overwrite threading path color?' first",title:"Color of the bullet threading path.",type:"string",inputAs:"color"}]).ready(In).catch(console.error);
|