diff --git a/assets/simplifyTruths-9f9ba6fc.js b/assets/simplifyTruths-27f78f5b.js similarity index 97% rename from assets/simplifyTruths-9f9ba6fc.js rename to assets/simplifyTruths-27f78f5b.js index 7852f64..1efd634 100644 --- a/assets/simplifyTruths-9f9ba6fc.js +++ b/assets/simplifyTruths-27f78f5b.js @@ -5,7 +5,7 @@ import{b as Je,i as ce,t as xe,d as kn,e as Re,o as Vi,c as K,s as er,I as Lr,m ${x?"bg-green-700":"bg-red-700"}`),ce(p,x?"T":"F"),h})()})),c})()})),d0(o=>of(a,n,o)),a})();function Fr(e,t){let r={},n=Object.keys(e);for(let i=0,a=n.length;i`.")}function Bf(e){return typeof e=="function"&&e.length>0}function bf(e){let t=Pn();return at(()=>{let r=e.children;return Bf(r)?r(t):r})}function ht(e){return{get children(){return K(bf,{get children(){return e.children}})}}}function Uf(e){let t,r;if("defaultOpen"in e){let[n,i]=Re(e.defaultOpen);t=n,r=a=>{hf(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else t=()=>e.isOpen,r=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return t()},setState(n){e.disabled||r(n)},disabled(){return!!e.disabled}}}function Wf(e){return typeof e=="function"&&e.length>0}function Mn(e){let t=Uf(e);return K(Ki.Provider,{value:t,get children(){return at(()=>{let r=e.children;return Wf(r)?r(t):r})}})}function Ir(e,t){return K(uf,mr({get component(){return e()}},t))}function Hf(e){return typeof e=="function"}function Bn(e,t){return r=>{"ref"in e&&Hf(e.ref)&&e.ref(r),t(r)}}function bn(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function $f(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Vf='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]';function Yi(e,t){let r=e.querySelectorAll(Vf),n=[];for(let i=0,a=r.length;i=0&&n=e.length&&(n=0),r===-1&&n<0&&(n=e.length-1)}}function Gf(e,t){var r;for(let n=0,i=e.length;n{let n=t();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),Rn(()=>{n.removeEventListener("keydown",i)})}}),Ir(()=>{var n;return(n=e.as)!=null?n:"button"},mr({get tabindex(){return e.disabled?-1:0},role:"button"},bn(()=>e.disabled),Fr(e,["as","ref"]),jf,{ref:Bn(e,n=>{r(()=>n)})}))}function Un(e,t,r){return K(tr,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return r()},get children(){return K(tr,{get when(){return t()},get children(){return r()}})}})}function q0(){var e,t;return(t=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:t.parentElement}function qf(e){if(e){let t=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}}var Zf=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=q0()),Rn(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():qf(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=q0()}};function Qi(){return new Zf}function ea(e){return at(()=>e.children)}var p0=Ln();function v0(e){let t=Nn(p0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var ra=Jr("dialog"),Qf=Jr("dialog-description"),el=Jr("dialog-panel"),rl=Jr("dialog-title");function tl(e){let t=nr(),r=nr(),n=nr(),i=nr(),a=Qi();return K(p0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return K(Mn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>Un(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},mr(Fr(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),ra,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ht(e))))})}})}function nl(e){let t=nr(),r=nr(),n=nr(),i=nr(),a=Qi();return K(p0.Provider,{value:{ownerID:t,panelID:r,titleID:n,descriptionID:i},get children(){return K(Mn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>Un(e,s,()=>Ir(()=>{var f;return(f=e.as)!=null?f:"div"},mr(Fr(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),ra,{id:t,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},ht(e))))})}})}function il(e){return"defaultOpen"in e}function al(e){return il(e)?K(nl,e):K(tl,e)}function sl(e){let t=v0("DialogDescription");return Ir(()=>{var r;return(r=e.as)!=null?r:"p"},mr(Fr(e,["as","children"]),Qf,{id:t.descriptionID},ht(e)))}function fl(e){let t=v0("DialogPanel"),r=Pn(),[n,i]=Re();return Dt(()=>{let a=n();if(a instanceof HTMLElement&&r.isOpen()){Zi(Yi(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Kf(a,f.shiftKey)):f.key==="Escape"&&r.setState(!1))};a.addEventListener("keydown",s),Rn(()=>{a.removeEventListener("keydown",s)})}}),Ir(()=>{var a;return(a=e.as)!=null?a:"div"},mr(Fr(e,["as","children","ref"]),el,{id:t.panelID,ref:Bn(e,a=>{i(()=>a)})},ht(e)))}function ll(e){let t=v0("DialogTitle");return Ir(()=>{var r;return(r=e.as)!=null?r:"h2"},mr(Fr(e,["as","children"]),rl,{id:t.titleID},ht(e)))}var m0=Ln();function ta(e){let t=Nn(m0);if(t)return t;throw new Error(`<${e}> must be used inside a `)}var na=Jr("disclosure"),ol=Jr("disclosure-button"),cl=Jr("disclosure-panel");function ul(e){let t=nr(),r=nr(),n=nr();return K(m0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:ea},mr(Fr(e,["isOpen","as","children","disabled","onChange"]),na,bn(()=>e.disabled),{get children(){return K(Mn,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function hl(e){let t=nr(),r=nr(),n=nr();return K(m0.Provider,{value:{ownerID:t,buttonID:r,panelID:n},get children(){return Ir(()=>{var i;return(i=e.as)!=null?i:ea},mr(Fr(e,["defaultOpen","as","children","disabled","onChange"]),na,bn(()=>e.disabled),{get children(){return K(Mn,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function xl(e){return"defaultOpen"in e}function dl(e){return xl(e)?K(hl,e):K(ul,e)}function pl(e){let t=ta("DisclosureButton"),r=Pn(),[n,i]=Re();return Dt(()=>{let a=n();if(a instanceof HTMLElement){let s=()=>{r.disabled()||e.disabled||r.setState(!r.isOpen())};a.addEventListener("click",s),Rn(()=>{a.removeEventListener("click",s)})}}),K(Jf,mr(Fr(e,["children","ref"]),ol,{id:t.buttonID,ref:Bn(e,a=>{i(()=>a)}),get"aria-controls"(){return r.isOpen()&&t.panelID}},bn(()=>{let a=r.disabled(),s=e.disabled;return a||s}),$f(()=>r.isOpen()),ht(e)))}function vl(e){let t=ta("DisclosurePanel"),r=Pn();return Un(e,()=>r.isOpen(),()=>Ir(()=>{var n;return(n=e.as)!=null?n:"div"},mr(Fr(e,["as","unmount","children"]),cl,{id:t.panelID},ht(e))))}var ia=Ln();function ml(e){let t=Nn(ia);if(t)return t;throw new Error(`<${e}> must be used inside a `)}function Vr(e){return e?e.split(" "):[]}function rt(e,t){let r=t.filter(n=>n);r.length&&e.classList.add(...r)}function tt(e,t){let r=t.filter(n=>n);r.length&&e.classList.remove(...r)}function gl(e){let t=ml("TransitionChild"),[r,n]=Re(t.show),[i,a]=Re(),s=!0;function f(l,o){var c,x;if(o){if(s){let h=Vr(e.enter),p=Vr(e.enterFrom),_=Vr(e.enterTo),u=Vr(e.entered),m=()=>{var A;tt(l,h),tt(l,_),rt(l,u),(A=e.afterEnter)==null||A.call(e)};(c=e.beforeEnter)==null||c.call(e),rt(l,h),rt(l,p),requestAnimationFrame(()=>{tt(l,p),rt(l,_),l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})})}}else{let h=Vr(e.leave),p=Vr(e.leaveFrom),_=Vr(e.leaveTo),u=Vr(e.entered);(x=e.beforeLeave)==null||x.call(e),tt(l,u),rt(l,h),rt(l,p),requestAnimationFrame(()=>{tt(l,p),rt(l,_)});let m=()=>{var A;tt(l,h),tt(l,_),n(!1),(A=e.afterLeave)==null||A.call(e)};l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})}}return Dt(()=>{let l=t.show;l&&n(!0);let o=i();o instanceof HTMLElement?f(o,l):s=!0}),Un(e,r,()=>Ir(()=>{var l;return(l=e.as)!=null?l:"div"},mr(Fr(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:Bn(e,l=>{a(()=>l)})})))}function _l(e){let[t,r]=cf(e,["show"]);return K(ia.Provider,{value:t,get children(){return K(gl,r)}})}const Tl=xe('

'),aa=xe("
"),El=xe('

'),wl=xe('

'),sa=({title:e,children:t,error:r=!1,className:n})=>(()=>{const i=Tl(),a=i.firstChild,s=a.nextSibling;return Je(i,`border-rounded ${r?"border-red-500":"border-gray-500"} ${n}`),Je(a,`border-b px-2 ${r?"border-red-500":"border-gray-500"}`),ce(a,e),ce(s,t),i})(),g0=({title:e,children:t,defaultOpen:r=!1,className:n,id:i,onClick:a})=>(()=>{const s=aa();return er(s,"id",i),Je(s,`border-rounded bg-default-bg ${n}`),ce(s,K(dl,{defaultOpen:r,children:({isOpen:f})=>[K(pl,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{const l=El();return ce(l,e),l})(),K(Lr,{path:xf,get class(){return`w-5 ${f()&&"transform rotate-180"} transition`}})]}}),K(_l,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",show:!0,get children(){return K(vl,{get children(){const l=wl();return ce(l,t),l}})}})]})),s})(),fa=({children:e,className:t})=>(()=>{const r=aa();return Je(r,`bg-cyan-900 border-rounded dark:border-gray-800 p-2 mb-2 flex flex-col gap-1 ${t}`),ce(r,e),r})();function Hr(){}Hr.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var a=this;function s(u){return i?(setTimeout(function(){i(void 0,u)},0),!0):u}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,l=t.length,o=1,c=f+l;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var x=[{newPos:-1,components:[]}],h=this.extractCommon(x[0],r,t,0);if(x[0].newPos+1>=f&&h+1>=l)return s([{value:this.join(r),count:r.length}]);function p(){for(var u=-1*o;u<=o;u+=2){var m=void 0,A=x[u-1],O=x[u+1],y=(O?O.newPos:0)-u;A&&(x[u-1]=void 0);var M=A&&A.newPos+1=f&&y+1>=l)return s(Sl(a,m.components,r,t,a.useLongestToken));x[u]=m}o++}if(i)(function u(){setTimeout(function(){if(o>c)return i();p()||u()},0)})();else for(;o<=c;){var _=p();if(_)return _}},pushComponent:function(t,r,n){var i=t[t.length-1];i&&i.added===r&&i.removed===n?t[t.length-1]={count:i.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,i){for(var a=r.length,s=n.length,f=t.newPos,l=f-i,o=0;f+1p.length?u:p}),o.value=e.join(c)}else o.value=e.join(r.slice(f,f+o.count));f+=o.count,o.added||(l+=o.count)}}var h=t[s-1];return s>1&&typeof h.value=="string"&&(h.added||h.removed)&&e.equals("",h.value)&&(t[s-2].value+=h.value,t.pop()),t}function Al(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Fl=new Hr;function yl(e,t,r){return Fl.diff(e,t,r)}var Z0=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Q0=/\S/,la=new Hr;la.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Q0.test(e)&&!Q0.test(t)};la.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r"u"?r:s}:n;return typeof e=="string"?e:JSON.stringify(l0(e,null,null,i),i," ")};Xt.equals=function(e,t){return Hr.prototype.equals.call(Xt,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function l0(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var a;for(a=0;a'),kl=xe("