40 lines
53 KiB
JavaScript
40 lines
53 KiB
JavaScript
/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
if you want to view the source, please visit the github repository of this plugin
|
|
*/
|
|
|
|
var Or=Object.defineProperty;var Ki=Object.getOwnPropertyDescriptor;var Zi=Object.getOwnPropertyNames;var Xi=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty;var Qi=Reflect.get;var es=(e,t,r)=>t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ts=(e,t)=>{for(var r in t)Or(e,r,{get:t[r],enumerable:!0})},rs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Zi(t))!Ji.call(e,o)&&o!==r&&Or(e,o,{get:()=>t[o],enumerable:!(n=Ki(t,o))||n.enumerable});return e};var ns=e=>rs(Or({},"__esModule",{value:!0}),e);var _e=(e,t,r)=>(es(e,typeof t!="symbol"?t+"":t,r),r),gn=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var a=(e,t,r)=>(gn(e,t,"read from private field"),r?r.call(e):t.get(e)),T=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},j=(e,t,r,n)=>(gn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Q=(e,t,r)=>(gn(e,t,"access private method"),r),Eo=(e,t,r)=>Qi(Xi(e),r,t);var ga={};ts(ga,{VIEW_TYPE_WORDCRAFT:()=>Rr,WordCraftView:()=>vn,default:()=>hn});module.exports=ns(ga);var xn=require("obsidian");var $o="5";var To,So,Ao;typeof window!="undefined"&&((Ao=(So=(To=window.__svelte)!=null?To:window.__svelte={}).v)!=null?Ao:So.v=new Set).add($o);var Je="[",lt="[!",ut="]",Qe={};var F=Symbol(),Y=Symbol("filename"),ko=Symbol("hmr");var No,Oo,Ro=(Oo=(No=globalThis.process)==null?void 0:No.env)==null?void 0:Oo.NODE_ENV,d=Ro&&!Ro.toLowerCase().startsWith("prod");var me=Symbol("$state"),ct=Symbol("$state metadata"),Ir=Symbol("legacy props"),Io=Symbol("");var Ae=Array.isArray,Co=Array.prototype.indexOf,Gt=Array.from,wn=Object.keys,z=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,yn=Object.getOwnPropertyDescriptors,bn=Object.prototype,Do=Array.prototype,pt=Object.getPrototypeOf;function Kt(e){for(var t=0;t<e.length;t++)e[t]()}var is=typeof requestIdleCallback=="undefined"?e=>setTimeout(e,1):requestIdleCallback,Zt=[],Xt=[];function Po(){var e=Zt;Zt=[],Kt(e)}function Lo(){var e=Xt;Xt=[],Kt(e)}function he(e){Zt.length===0&&queueMicrotask(Po),Zt.push(e)}function Mo(e){Xt.length===0&&is(Lo),Xt.push(e)}function En(){Zt.length>0&&Po(),Xt.length>0&&Lo()}function Cr(e){return e===this.v}function Dr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function At(e){return!Dr(e,this.v)}function $n(){if(d){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function Fo(){if(d){let e=new Error(`derived_references_self
|
|
A derived value cannot reference itself recursively
|
|
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function Vo(){if(d){let e=new Error(`effect_update_depth_exceeded
|
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qo(){if(d){let e=new Error(`hydration_failed
|
|
Failed to hydrate the application
|
|
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function Bo(e){if(d){let t=new Error(`props_invalid_value
|
|
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
|
|
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Yo(e){if(d){let t=new Error(`rune_outside_svelte
|
|
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Uo(){if(d){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ho(){if(d){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jo(){if(d){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function zo(){if(d){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var et=!1,Ce=!1;var Jt=null;function ze(e){let t=Error(),r=t.stack;if(r){let n=r.split(`
|
|
`),o=[`
|
|
`];for(let i=0;i<n.length;i++){let s=n[i];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||o.push(s)}}if(o.length===1)return null;z(t,"stack",{value:o.join(`
|
|
`)}),z(t,"name",{value:`${e}Error`})}return t}var _t=new Set;function An(e){_t=e}function E(e,t){var r={f:0,v:e,reactions:null,equals:Cr,rv:0,wv:0};return d&&Ce&&(r.created=t!=null?t:ze("CreatedAt"),r.debug=null),r}function kn(e){return ss(E(e))}function rt(e,t=!1){var n,o;let r=E(e);return t||(r.equals=At),et&&I!==null&&I.l!==null&&((o=(n=I.l).s)!=null?o:n.s=[]).push(r),r}function ss(e){return A!==null&&!le&&A.f&2&&(Re===null?Ko([e]):Re.push(e)),e}function g(e,t){return A!==null&&!le&&Le()&&A.f&18&&(Re===null||!Re.includes(e))&&zo(),Rt(e,t)}function Rt(e,t){var n;if(!e.equals(t)){var r=e.v;if(e.v=t,e.wv=er(),d&&Ce&&(e.updated=ze("UpdatedAt"),k!=null&&(e.trace_need_increase=!0,(n=e.trace_v)!=null||(e.trace_v=r))),Go(e,2048),Le()&&k!==null&&k.f&1024&&!(k.f&96)&&(De===null?Zo([e]):De.push(e)),d&&_t.size>0){let o=Array.from(_t);for(let i of o)i.f&1024&&te(i,4096),nt(i)&&Nt(i);_t.clear()}}return t}function Go(e,t){var r=e.reactions;if(r!==null)for(var n=Le(),o=r.length,i=0;i<o;i++){var s=r[i],f=s.f;if(!(f&2048)&&!(!n&&s===k)){if(d&&f&262144){_t.add(s);continue}te(s,t),f&1280&&(f&2?Go(s,4096):Ot(s))}}}function ge(e){var t=2050,r=A!==null&&A.f&2?A:null;k===null||r!==null&&r.f&256?t|=256:k.f|=1048576;let n={ctx:I,deps:null,effects:null,equals:Cr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r!=null?r:k};return d&&Ce&&(n.created=ze("CreatedAt")),n}function tr(e){let t=ge(e);return t.equals=At,t}function Lr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)W(t[r])}}var Rn=[];function as(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t;t=t.parent}return null}function fs(e){var t,r=k;if(H(as(e)),d){let n=_t;An(new Set);try{Rn.includes(e)&&Fo(),Rn.push(e),Lr(e),t=Mr(e)}finally{H(r),An(n),Rn.pop()}}else try{Lr(e),t=Mr(e)}finally{H(r)}return t}function On(e){var t=fs(e),r=(We||e.f&256)&&e.deps!==null?4096:1024;te(e,r),e.equals(t)||(e.v=t,e.wv=er())}var rr="font-weight: bold",nr="font-weight: normal";function Xo(e,t,r){d?console.warn(`%c[svelte] hydration_attribute_changed
|
|
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
|
|
https://svelte.dev/e/hydration_attribute_changed`,rr,nr):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function It(e){d?console.warn(`%c[svelte] hydration_mismatch
|
|
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
https://svelte.dev/e/hydration_mismatch`,rr,nr):console.warn("https://svelte.dev/e/hydration_mismatch")}function Jo(){d?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
%cTried to unmount a component that was not mounted
|
|
https://svelte.dev/e/lifecycle_double_unmount`,rr,nr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function In(e,t){d?console.warn(`%c[svelte] ownership_invalid_mutation
|
|
%c${e?`${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
https://svelte.dev/e/ownership_invalid_mutation`,rr,nr):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Fr(e){d?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
|
|
https://svelte.dev/e/state_proxy_equality_mismatch`,rr,nr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var b=!1;function re(e){b=e}var S;function M(e){if(e===null)throw It(),Qe;return S=e}function G(){return M(ne(S))}function Me(e){if(b){if(ne(S)!==null)throw It(),Qe;S=e}}function Ct(){for(var e=0,t=S;;){if(t.nodeType===8){var r=t.data;if(r===ut){if(e===0)return t;e-=1}else(r===Je||r===lt)&&(e+=1)}var n=ne(t);t.remove(),t=n}}function ye(e,t=null,r){var _,x;var n=null;if(d&&Ce&&(n=ze("CreatedAt")),typeof e!="object"||e===null||me in e)return e;let o=pt(e);if(o!==bn&&o!==Do)return e;var i=new Map,s=Ae(e),f=E(0);s&&i.set("length",E(e.length,n));var u;if(d)if(u={parent:t,owners:null},r){let m=(x=(_=r.v)==null?void 0:_[ct])==null?void 0:x.owners;u.owners=m?new Set(m):null}else u.owners=t===null?I!==null?new Set([I.function]):null:new Set;return new Proxy(e,{defineProperty(m,l,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Uo();var h=i.get(l);return h===void 0?(h=E(c.value,n),i.set(l,h)):g(h,ye(c.value,u)),!0},deleteProperty(m,l){var c=i.get(l);if(c===void 0)l in m&&i.set(l,E(F,n));else{if(s&&typeof l=="string"){var h=i.get("length"),v=Number(l);Number.isInteger(v)&&v<h.v&&g(h,v)}g(c,F),Qo(f)}return!0},get(m,l,c){var P;if(d&&l===ct)return u;if(l===me)return e;var h=i.get(l),v=l in m;if(h===void 0&&(!v||(P=ke(m,l))!=null&&P.writable)&&(h=E(ye(v?m[l]:F,u),n),i.set(l,h)),h!==void 0){var y=p(h);if(d){var C=y==null?void 0:y[ct];C&&(C==null?void 0:C.parent)!==u&&Cn(u,C)}return y===F?void 0:y}return Reflect.get(m,l,c)},getOwnPropertyDescriptor(m,l){var c=Reflect.getOwnPropertyDescriptor(m,l);if(c&&"value"in c){var h=i.get(l);h&&(c.value=p(h))}else if(c===void 0){var v=i.get(l),y=v==null?void 0:v.v;if(v!==void 0&&y!==F)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return c},has(m,l){var y;if(d&&l===ct||l===me)return!0;var c=i.get(l),h=c!==void 0&&c.v!==F||Reflect.has(m,l);if(c!==void 0||k!==null&&(!h||(y=ke(m,l))!=null&&y.writable)){c===void 0&&(c=E(h?ye(m[l],u):F,n),i.set(l,c));var v=p(c);if(v===F)return!1}return h},set(m,l,c,h){var se;var v=i.get(l),y=l in m;if(s&&l==="length")for(var C=c;C<v.v;C+=1){var P=i.get(C+"");P!==void 0?g(P,F):C in m&&(P=E(F,n),i.set(C+"",P))}if(v===void 0?(!y||(se=ke(m,l))!=null&&se.writable)&&(v=E(void 0,n),g(v,ye(c,u)),i.set(l,v)):(y=v.v!==F,g(v,ye(c,u))),d){var N=c==null?void 0:c[ct];N&&(N==null?void 0:N.parent)!==u&&Cn(u,N),ei(u)}var $=Reflect.getOwnPropertyDescriptor(m,l);if($!=null&&$.set&&$.set.call(h,c),!y){if(s&&typeof l=="string"){var R=i.get("length"),J=Number(l);Number.isInteger(J)&&J>=R.v&&g(R,J+1)}Qo(f)}return!0},ownKeys(m){p(f);var l=Reflect.ownKeys(m).filter(v=>{var y=i.get(v);return y===void 0||y.v!==F});for(var[c,h]of i)h.v!==F&&!(c in m)&&l.push(c);return l},setPrototypeOf(){Ho()}})}function Qo(e,t=1){g(e,e.v+t)}function Dt(e){return e!==null&&typeof e=="object"&&me in e?e[me]:e}function Dn(e,t){return Object.is(Dt(e),Dt(t))}function ti(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:o}=e;e.indexOf=function(i,s){let f=r.call(this,i,s);if(f===-1){for(let u=s!=null?s:0;u<this.length;u+=1)if(Dt(this[u])===i){Fr("array.indexOf(...)");break}}return f},e.lastIndexOf=function(i,s){let f=n.call(this,i,s!=null?s:this.length-1);if(f===-1){for(let u=0;u<=(s!=null?s:this.length-1);u+=1)if(Dt(this[u])===i){Fr("array.lastIndexOf(...)");break}}return f},e.includes=function(i,s){let f=o.call(this,i,s);if(!f){for(let u=0;u<this.length;u+=1)if(Dt(this[u])===i){Fr("array.includes(...)");break}}return f},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=o}}var Pn,ri,or,ni,oi;function Vr(){if(Pn===void 0){Pn=window,ri=document,or=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;ni=ke(t,"firstChild").get,oi=ke(t,"nextSibling").get,e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0,d&&(e.__svelte_meta=null,ti())}}function be(e=""){return document.createTextNode(e)}function K(e){return ni.call(e)}function ne(e){return oi.call(e)}function dt(e,t){if(!b)return K(e);var r=K(S);if(r===null)r=S.appendChild(be());else if(t&&r.nodeType!==3){var n=be();return r==null||r.before(n),M(n),n}return M(r),r}function Ln(e,t){var o,i;if(!b){var r=K(e);return r instanceof Comment&&r.data===""?ne(r):r}if(t&&((o=S)==null?void 0:o.nodeType)!==3){var n=be();return(i=S)==null||i.before(n),M(n),n}return S}function mt(e,t=1,r=!1){let n=b?S:e;for(var o;t--;)o=n,n=ne(n);if(!b)return n;var i=n==null?void 0:n.nodeType;if(r&&i!==3){var s=be();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function ir(e){e.textContent=""}var ii=new WeakSet,qr=!1,fr=!1,sr=null,ht=!1,Vn=!1;function qn(e){Vn=e}var ar=[],Yr=[],A=null,le=!1;function B(e){A=e}var k=null;function H(e){k=e}var Re=null;function Ko(e){Re=e}var oe=null,de=0,De=null;function Zo(e){De=e}var ui=1,Ur=0,We=!1,Qt=null;function er(){return++ui}function nt(e){var m,l;var t=e.f;if(t&2048)return!0;if(t&4096){var r=e.deps,n=(t&256)!==0;if(r!==null){var o,i,s=(t&512)!==0,f=n&&k!==null&&!We,u=r.length;if(s||f){var _=e,x=_.parent;for(o=0;o<u;o++)i=r[o],(s||!((m=i==null?void 0:i.reactions)!=null&&m.includes(_)))&&((l=i.reactions)!=null?l:i.reactions=[]).push(_);s&&(_.f^=512),f&&x!==null&&!(x.f&256)&&(_.f^=256)}for(o=0;o<u;o++)if(i=r[o],nt(i)&&On(i),i.wv>e.wv)return!0}(!n||k!==null&&!We)&&te(e,1024)}return!1}function si(e,t){for(var r=t;r!==null;){if(r.f&128)try{r.fn(e);return}catch(n){r.f^=128}r=r.parent}throw qr=!1,e}function ai(e){return(e.f&16384)===0&&(e.parent===null||(e.parent.f&128)===0)}function Lt(e,t,r,n){var x,m;if(qr){if(r===null&&(qr=!1),ai(t))throw e;return}if(r!==null&&(qr=!0),!d||n===null||!(e instanceof Error)||ii.has(e)){si(e,t);return}ii.add(e);let o=[],i=(x=t.fn)==null?void 0:x.name;i&&o.push(i);let s=n;for(;s!==null;){if(d){var f=(m=s.function)==null?void 0:m[Y];if(f){let l=f.split("/").pop();o.push(l)}}s=s.p}let u=or?" ":" ";z(e,"message",{value:e.message+`
|
|
${o.map(l=>`
|
|
${u}in ${l}`).join("")}
|
|
`}),z(e,"component_stack",{value:o});let _=e.stack;if(_){let l=_.split(`
|
|
`),c=[];for(let h=0;h<l.length;h++){let v=l[h];v.includes("svelte/src/internal")||c.push(v)}z(e,"stack",{value:c.join(`
|
|
`)})}if(si(e,t),ai(t))throw e}function ci(e,t,r=!0){var n=e.reactions;if(n!==null)for(var o=0;o<n.length;o++){var i=n[o];i.f&2?ci(i,t,!1):t===i&&(r?te(i,2048):i.f&1024&&te(i,4096),Ot(i))}}function Mr(e){var c,h;var t=oe,r=de,n=De,o=A,i=We,s=Re,f=I,u=le,_=e.f;oe=null,de=0,De=null,We=(_&256)!==0&&(le||!ht||A===null),A=_&96?null:e,Re=null,ur(e.ctx),le=!1,Ur++;try{var x=(0,e.fn)(),m=e.deps;if(oe!==null){var l;if(lr(e,de),m!==null&&de>0)for(m.length=de+oe.length,l=0;l<oe.length;l++)m[de+l]=oe[l];else e.deps=m=oe;if(!We)for(l=de;l<m.length;l++)((h=(c=m[l]).reactions)!=null?h:c.reactions=[]).push(e)}else m!==null&&de<m.length&&(lr(e,de),m.length=de);if(Le()&&De!==null&&!le&&m!==null&&!(e.f&6146))for(l=0;l<De.length;l++)ci(De[l],e);return o!==null&&Ur++,x}finally{oe=t,de=r,De=n,A=o,We=i,Re=s,ur(f),le=u}}function ls(e,t){let r=t.reactions;if(r!==null){var n=Co.call(r,e);if(n!==-1){var o=r.length-1;o===0?r=t.reactions=null:(r[n]=r[o],r.pop())}}r===null&&t.f&2&&(oe===null||!oe.includes(t))&&(te(t,4096),t.f&768||(t.f^=512),Lr(t),lr(t,0))}function lr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ls(e,r[n])}function Nt(e){var t=e.f;if(!(t&16384)){te(e,1024);var r=k,n=I,o=ht;if(k=e,ht=!0,d){var i=Ee;cr(e.component_function)}try{t&16?pi(e):Yn(e),Bn(e);var s=Mr(e);e.teardown=typeof s=="function"?s:null,e.wv=ui;var f=e.deps;if(d&&Ce&&e.f&2048&&f!==null)for(let _=0;_<f.length;_++){var u=f[_];u.trace_need_increase&&(u.wv=er(),u.trace_need_increase=void 0,u.trace_v=void 0)}d&&Yr.push(e)}catch(_){Lt(_,e,r,n||e.ctx)}finally{ht=o,k=r,d&&cr(i)}}}function fi(){console.error("Last ten effects were: ",Yr.slice(-10).map(e=>e.fn)),Yr=[]}function us(){try{Vo()}catch(e){if(d&&z(e,"stack",{value:""}),sr!==null)if(d)try{Lt(e,sr,null,null)}catch(t){throw fi(),t}else Lt(e,sr,null,null);else throw d&&fi(),e}}function Mn(){var e=ht;try{var t=0;for(ht=!0;ar.length>0;){t++>1e3&&us();var r=ar,n=r.length;ar=[];for(var o=0;o<n;o++){var i=r[o];i.f&1024||(i.f^=1024);var s=ps(i);cs(s)}}}finally{fr=!1,ht=e,sr=null,d&&(Yr=[])}}function cs(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&24576))try{nt(n)&&(Nt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Un(n):n.fn=null))}catch(o){Lt(o,n,null,n.ctx)}}}function Ot(e){fr||(fr=!0,queueMicrotask(Mn));for(var t=sr=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024))return;t.f^=1024}}ar.push(t)}function ps(e){for(var t=[],r=e.first;r!==null;){var n=r.f,o=(n&32)!==0,i=o&&(n&1024)!==0;if(!i&&!(n&8192)){if(n&4)t.push(r);else if(o)r.f^=1024;else{var s=A;try{A=r,nt(r)&&Nt(r)}catch(_){Lt(_,r,null,r.ctx)}finally{A=s}}var f=r.first;if(f!==null){r=f;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}return t}function Mt(e){var t;for(e&&(fr=!0,Mn(),t=e()),En();ar.length>0;)fr=!0,Mn(),En();return t}async function Hr(){await Promise.resolve(),Mt()}function p(e){var t=e.f,r=(t&2)!==0;if(Qt!==null&&Qt.add(e),A!==null&&!le){Re!==null&&Re.includes(e)&&jo();var n=A.deps;e.rv<Ur&&(e.rv=Ur,oe===null&&n!==null&&n[de]===e?de++:oe===null?oe=[e]:(!We||!oe.includes(e))&&oe.push(e))}else if(r&&e.deps===null&&e.effects===null){var o=e,i=o.parent;i!==null&&!(i.f&256)&&(o.f^=256)}if(r&&(o=e,nt(o)&&On(o)),d&&Ce&&Jt!==null&&A!==null&&Jt.reaction===A){if(e.debug)e.debug();else if(e.created){var s=Jt.entries.get(e);s===void 0&&(s={read:[]},Jt.entries.set(e,s)),s.read.push(ze("TracedAt"))}}return e.v}function L(e){var t=le;try{return le=!0,e()}finally{le=t}}var _s=-7169;function te(e,t){e.f=e.f&_s|t}function ds(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function vt(e,t,r,n=!0){var _;var o=(e&64)!==0,i=k;if(d)for(;i!==null&&i.f&262144;)i=i.parent;var s={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:o?null:i,prev:null,teardown:null,transitions:null,wv:0};if(d&&(s.component_function=Ee),r)try{Nt(s),s.f|=32768}catch(x){throw W(s),x}else t!==null&&Ot(s);var f=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!f&&!o&&n&&(i!==null&&ds(s,i),A!==null&&A.f&2)){var u=A;((_=u.effects)!=null?_:u.effects=[]).push(s)}return s}function Pr(){return A!==null&&!le}function $e(e){let t=vt(8,null,!1);return te(t,1024),t.teardown=e,t}function Hn(e){let t=vt(64,e,!0);return()=>{W(t)}}function mi(e){let t=vt(64,e,!0);return(r={})=>new Promise(n=>{r.outro?Oe(t,()=>{W(t),n(void 0)}):(W(t),n(void 0))})}function Te(e){return vt(4,e,!1)}function ie(e){return vt(8,e,!0)}function Ft(e,t=[],r=ge){let n=t.map(r),o=()=>e(...n.map(p));return d&&z(o,"name",{value:"{expression}"}),ue(o)}function ue(e,t=0){return vt(24|t,e,!0)}function Z(e,t=!0){return vt(40,e,!0,t)}function Bn(e){var t=e.teardown;if(t!==null){let r=Vn,n=A;qn(!0),B(null);try{t.call(null)}finally{qn(r),B(n)}}}function Yn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;W(r,t),r=n}}function pi(e){for(var t=e.first;t!==null;){var r=t.next;t.f&32||W(t),t=r}}function W(e,t=!0){var r=!1;if((t||e.f&524288)&&e.nodes_start!==null){for(var n=e.nodes_start,o=e.nodes_end;n!==null;){var i=n===o?null:ne(n);n.remove(),n=i}r=!0}Yn(e,t&&!r),lr(e,0),te(e,16384);var s=e.transitions;if(s!==null)for(let u of s)u.stop();Bn(e);var f=e.parent;f!==null&&f.first!==null&&Un(e),d&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Un(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Oe(e,t){var r=[];zr(e,r,!0),jn(r,()=>{W(e),t&&t()})}function jn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var o of e)o.out(n)}else t()}function zr(e,t,r){if(!(e.f&8192)){if(e.f^=8192,e.transitions!==null)for(let s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var o=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;zr(n,t,i?r:!1),n=o}}}function ot(e){hi(e,!0)}function hi(e,t){if(e.f&8192){e.f^=8192,e.f&1024||(e.f^=1024),nt(e)&&(te(e,2048),Ot(e));for(var r=e.first;r!==null;){var n=r.next,o=(r.f&65536)!==0||(r.f&32)!==0;hi(r,o?t:!1),r=n}if(e.transitions!==null)for(let i of e.transitions)(i.is_global||t)&&i.in()}}var ms={},hs=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,vs=/@(.+):(\d+):(\d+)$/;function xs(){var r;let e=new Error().stack;if(!e)return null;let t=[];for(let n of e.split(`
|
|
`)){let o=(r=hs.exec(n))!=null?r:vs.exec(n);o&&t.push({file:o[1],line:+o[2],column:+o[3]})}return t}function vi(){var t;let e=(t=xs())==null?void 0:t.slice(4);if(!e)return null;for(let r=0;r<e.length;r++){let n=e[r],o=ms[n.file];if(!o){if(r===0)return null;continue}for(let i of o){if(i.end==null)return null;if(i.start.line<n.line&&i.end.line>n.line)return i.component}}return null}var gs=Symbol("ADD_OWNER");function Cn(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function xi(e,t){return e.owners===null?!0:e.owners.has(t)||Y in t&&[...e.owners].some(r=>r[Y]===t[Y])||e.parent!==null&&xi(e.parent,t)}function gi(e){var t,r;return(r=(t=e==null?void 0:e.owners)==null?void 0:t.values().next().value)!=null?r:gi(e.parent)}var ws=!1;function ei(e){if(ws)return;let t=vi();if(t&&!xi(e,t)){let r=gi(e);r[Y]!==t[Y]?In(t[Y],r[Y]):In()}}var I=null;function ur(e){I=e}var Ee=null;function cr(e){Ee=e}function _r(e,t=!1,r){I={p:I,c:null,e:null,m:!1,s:e,x:null,l:null},et&&!t&&(I.l={s:null,u:null,r1:[],r2:E(!1)}),d&&(I.function=r,Ee=r)}function dr(e){var s,f;let t=I;if(t!==null){e!==void 0&&(t.x=e);let u=t.e;if(u!==null){var r=k,n=A;t.e=null;try{for(var o=0;o<u.length;o++){var i=u[o];H(i.effect),B(i.reaction),Te(i.fn)}}finally{H(r),B(n)}}I=t.p,d&&(Ee=(f=(s=t.p)==null?void 0:s.function)!=null?f:null),t.m=!0}return e||{}}function Le(){return!et||I!==null&&I.l===null}var Es=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Sl=[...Es,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var $s=["touchstart","touchmove"];function yi(e){return $s.includes(e)}var bi=new Map;function Ei(e,t){var r=bi.get(e);r||(r=new Set,bi.set(e,r)),r.add(t)}var $i=!1;function Gr(){$i||($i=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(let r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function mr(e){var t=A,r=k;B(null),H(null);try{return e()}finally{B(t),H(r)}}function Kr(e,t,r,n=r){e.addEventListener(t,()=>mr(r));let o=e.__on_r;o?e.__on_r=()=>{o(),n(!0)}:e.__on_r=()=>n(!0),Gr()}var zn=new Set,Zr=new Set;function Ti(e,t,r,n={}){function o(i){if(n.capture||Vt.call(t,i),!i.cancelBubble)return mr(()=>r==null?void 0:r.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?he(()=>{t.addEventListener(e,o,n)}):t.addEventListener(e,o,n),o}function Wn(e,t,r,n,o){var i={capture:n,passive:o},s=Ti(e,t,r,i);(t===document.body||t===window||t===document)&&$e(()=>{t.removeEventListener(e,s,i)})}function Xr(e){for(var t=0;t<e.length;t++)zn.add(e[t]);for(var r of Zr)r(e)}function Vt(e){var P;var t=this,r=t.ownerDocument,n=e.type,o=((P=e.composedPath)==null?void 0:P.call(e))||[],i=o[0]||e.target,s=0,f=e.__root;if(f){var u=o.indexOf(f);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var _=o.indexOf(t);if(_===-1)return;u<=_&&(s=u)}if(i=o[s]||e.target,i!==t){z(e,"currentTarget",{configurable:!0,get(){return i||r}});var x=A,m=k;B(null),H(null);try{for(var l,c=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var v=i["__"+n];if(v!==void 0&&(!i.disabled||e.target===i))if(Ae(v)){var[y,...C]=v;y.apply(i,[e,...C])}else v.call(i,e)}catch(N){l?c.push(N):l=N}if(e.cancelBubble||h===t||h===null)break;i=h}if(l){for(let N of c)queueMicrotask(()=>{throw N});throw l}}finally{e.__root=t,delete e.currentTarget,B(x),H(m)}}}var Ss;function Si(){Ss=void 0}function Jr(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Ve(e,t){var r=k;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function xt(e,t){var r=(t&1)!==0,n=(t&2)!==0,o,i=!e.startsWith("<!>");return()=>{if(b)return Ve(S,null),S;o===void 0&&(o=Jr(i?e:"<!>"+e),r||(o=K(o)));var s=n||or?document.importNode(o,!0):o.cloneNode(!0);if(r){var f=K(s),u=s.lastChild;Ve(f,u)}else Ve(s,s);return s}}function Gn(){if(b)return Ve(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=be();return e.append(t,r),Ve(t,r),e}function qe(e,t){if(b){k.nodes_end=S,G();return}e!==null&&e.before(t)}var Kn=!0;function Bt(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Yt(e,t){return Ai(e,t)}function Xn(e,t){var s;Vr(),t.intro=(s=t.intro)!=null?s:!1;let r=t.target,n=b,o=S;try{for(var i=K(r);i&&(i.nodeType!==8||i.data!==Je);)i=ne(i);if(!i)throw Qe;re(!0),M(i),G();let f=Ai(e,{...t,anchor:i});if(S===null||S.nodeType!==8||S.data!==ut)throw It(),Qe;return re(!1),f}catch(f){if(f===Qe)return t.recover===!1&&qo(),Vr(),ir(r),re(!1),Yt(e,t);throw f}finally{re(n),M(o),Si()}}var qt=new Map;function Ai(e,{target:t,anchor:r,props:n={},events:o,context:i,intro:s=!0}){Vr();var f=new Set,u=m=>{for(var l=0;l<m.length;l++){var c=m[l];if(!f.has(c)){f.add(c);var h=yi(c);t.addEventListener(c,Vt,{passive:h});var v=qt.get(c);v===void 0?(document.addEventListener(c,Vt,{passive:h}),qt.set(c,1)):qt.set(c,v+1)}}};u(Gt(zn)),Zr.add(u);var _=void 0,x=mi(()=>{var m=r!=null?r:t.appendChild(be());return Z(()=>{if(i){_r({});var l=I;l.c=i}o&&(n.$$events=o),b&&Ve(m,null),Kn=s,_=e(m,n)||{},Kn=!0,b&&(k.nodes_end=S),i&&dr()}),()=>{var h;for(var l of f){t.removeEventListener(l,Vt);var c=qt.get(l);--c===0?(document.removeEventListener(l,Vt),qt.delete(l)):qt.set(l,c)}Zr.delete(u),m!==r&&((h=m.parentNode)==null||h.removeChild(m))}});return Zn.set(_,x),_}var Zn=new WeakMap;function hr(e,t){let r=Zn.get(e);return r?(Zn.delete(e),r(t)):(d&&Jo(),Promise.resolve())}function Qr(e,t,[r,n]=[0,0]){b&&r===0&&G();var o=e,i=null,s=null,f=F,u=r>0?65536:0,_=!1;let x=(l,c=!0)=>{_=!0,m(c,l)},m=(l,c)=>{if(f===(f=l))return;let h=!1;if(b&&n!==-1){if(r===0){let y=o.data;y===Je?n=0:y===lt?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=f?1/0:-1))}let v=n>r;!!f===v&&(o=Ct(),M(o),re(!1),h=!0,n=-1)}f?(i?ot(i):c&&(i=Z(()=>c(o))),s&&Oe(s,()=>{s=null})):(s?ot(s):c&&(s=Z(()=>c(o,[r+1,n]))),i&&Oe(i,()=>{i=null})),h&&re(!0)};ue(()=>{_=!1,t(x),_||m(null,null)},u),b&&(o=S)}var vr=null;function xr(e,t){return t}function Is(e,t,r,n){for(var o=[],i=t.length,s=0;s<i;s++)zr(t[s].e,o,!0);var f=i>0&&o.length===0&&r!==null;if(f){var u=r.parentNode;ir(u),u.append(r),n.clear(),it(e,t[0].prev,t[i-1].next)}jn(o,()=>{for(var _=0;_<i;_++){var x=t[_];f||(n.delete(x.k),it(e,x.prev,x.next)),W(x.e,!f)}})}function gr(e,t,r,n,o,i=null){var s=e,f={flags:t,items:new Map,first:null},u=(t&4)!==0;if(u){var _=e;s=b?M(K(_)):_.appendChild(be())}b&&G();var x=null,m=!1,l=tr(()=>{var c=r();return Ae(c)?c:c==null?[]:Gt(c)});ue(()=>{var c=p(l),h=c.length;if(m&&h===0)return;m=h===0;let v=!1;if(b){var y=s.data===lt;y!==(h===0)&&(s=Ct(),M(s),re(!1),v=!0)}if(b){for(var C=null,P,N=0;N<h;N++){if(S.nodeType===8&&S.data===ut){s=S,v=!0,re(!1);break}var $=c[N],R=n($,N);P=Ni(S,f,C,null,$,R,N,o,t,r),f.items.set(R,P),C=P}h>0&&M(Ct())}b||Cs(c,f,s,o,t,n,r),i!==null&&(h===0?x?ot(x):x=Z(()=>i(s)):x!==null&&Oe(x,()=>{x=null})),v&&re(!0),p(l)}),b&&(s=S)}function Cs(e,t,r,n,o,i,s){var pe,Xe,Nr,yo;var f=(o&8)!==0,u=(o&3)!==0,_=e.length,x=t.items,m=t.first,l=m,c,h=null,v,y=[],C=[],P,N,$,R;if(f)for(R=0;R<_;R+=1)P=e[R],N=i(P,R),$=x.get(N),$!==void 0&&((pe=$.a)==null||pe.measure(),(v!=null?v:v=new Set).add($));for(R=0;R<_;R+=1){if(P=e[R],N=i(P,R),$=x.get(N),$===void 0){var J=l?l.e.nodes_start:r;h=Ni(J,t,h,h===null?t.first:h.next,P,N,R,n,o,s),x.set(N,h),y=[],C=[],l=h.next;continue}if(u&&Ds($,P,R,o),$.e.f&8192&&(ot($.e),f&&((Xe=$.a)==null||Xe.unfix(),(v!=null?v:v=new Set).delete($))),$!==l){if(c!==void 0&&c.has($)){if(y.length<C.length){var se=C[0],O;h=se.prev;var w=y[0],D=y[y.length-1];for(O=0;O<y.length;O+=1)ki(y[O],se,r);for(O=0;O<C.length;O+=1)c.delete(C[O]);it(t,w.prev,D.next),it(t,h,w),it(t,D,se),l=se,h=D,R-=1,y=[],C=[]}else c.delete($),ki($,l,r),it(t,$.prev,$.next),it(t,$,h===null?t.first:h.next),it(t,h,$),h=$;continue}for(y=[],C=[];l!==null&&l.k!==N;)l.e.f&8192||(c!=null?c:c=new Set).add(l),C.push(l),l=l.next;if(l===null)continue;$=l}y.push($),h=$,l=$.next}if(l!==null||c!==void 0){for(var q=c===void 0?[]:Gt(c);l!==null;)l.e.f&8192||q.push(l),l=l.next;var ce=q.length;if(ce>0){var je=o&4&&_===0?r:null;if(f){for(R=0;R<ce;R+=1)(Nr=q[R].a)==null||Nr.measure();for(R=0;R<ce;R+=1)(yo=q[R].a)==null||yo.fix()}Is(t,q,je,x)}}f&&he(()=>{var bo;if(v!==void 0)for($ of v)(bo=$.a)==null||bo.apply()}),k.first=t.first&&t.first.e,k.last=h&&h.e}function Ds(e,t,r,n){n&1&&Rt(e.v,t),n&2?Rt(e.i,r):e.i=r}function Ni(e,t,r,n,o,i,s,f,u,_){var x=vr,m=(u&1)!==0,l=(u&16)===0,c=m?l?rt(o):E(o):o,h=u&2?E(s):s;d&&m&&(c.debug=()=>{var y=typeof h=="number"?s:h.v;_()[y]});var v={i:h,v:c,k:i,a:null,e:null,prev:r,next:n};vr=v;try{return v.e=Z(()=>f(e,c,h,_),b),v.e.prev=r&&r.e,v.e.next=n&&n.e,r===null?t.first=v:(r.next=v,r.e.next=v.e),n!==null&&(n.prev=v,n.e.prev=v.e),v}finally{vr=x}}function ki(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,o=t?t.e.nodes_start:r,i=e.e.nodes_start;i!==n;){var s=ne(i);o.before(i),i=s}}function it(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function eo(e,t){he(()=>{var o;var r=e.getRootNode(),n=r.host?r:(o=r.head)!=null?o:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){let i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i),d&&Ei(t.hash,i)}})}function Ii(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ii(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ci(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ii(e))&&(n&&(n+=" "),n+=t);return n}function en(e){return typeof e=="object"?Ci(e):e!=null?e:""}var Di=[...`
|
|
\r\f\xA0\v\uFEFF`];function Pi(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var o in r)if(r[o])n=n?n+" "+o:o;else if(n.length)for(var i=o.length,s=0;(s=n.indexOf(o,s))>=0;){var f=s+i;(s===0||Di.includes(n[s-1]))&&(f===n.length||Di.includes(n[f]))?n=(s===0?"":n.substring(0,s))+n.substring(f+1):s=f}}return n===""?null:n}function tn(e,t,r,n,o,i){var s=e.__className;if(b||s!==r){var f=Pi(r,n,i);(!b||f!==e.getAttribute("class"))&&(f==null?e.removeAttribute("class"):t?e.className=f:e.setAttribute("class",f)),e.__className=r}else if(i)for(var u in i){var _=!!i[u];(o==null||_!==!!o[u])&&e.classList.toggle(u,_)}return i}var Ms=Symbol("class"),Fs=Symbol("style");function rn(e){if(b){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;to(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var o=e.checked;to(e,"checked",null),e.checked=o}}};e.__on_r=r,Mo(r),Gr()}}function to(e,t,r,n){var i;var o=(i=e.__attributes)!=null?i:e.__attributes={};if(b&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||qs(e,t,r!=null?r:"");return}o[t]!==(o[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Io]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Vs(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var Li=new Map;function Vs(e){var t=Li.get(e.nodeName);if(t)return t;Li.set(e.nodeName,t=[]);for(var r,n=e,o=Element.prototype;o!==n;){r=yn(n);for(var i in r)r[i].set&&t.push(i);n=pt(n)}return t}function qs(e,t,r){var n;d&&(t==="srcset"&&Bs(e,r)||ro((n=e.getAttribute(t))!=null?n:"",r)||Xo(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function ro(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Mi(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function Bs(e,t){var r=Mi(e.srcset),n=Mi(t);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(ro(r[s][0],o)||ro(o,r[s][0])))}function on(e,t,r=t){var n=Le();Kr(e,"input",o=>{d&&e.type==="checkbox"&&$n();var i=o?e.defaultValue:e.value;if(i=no(e)?oo(i):i,r(i),n&&i!==(i=t())){var s=e.selectionStart,f=e.selectionEnd;e.value=i!=null?i:"",f!==null&&(e.selectionStart=s,e.selectionEnd=Math.min(f,e.value.length))}}),(b&&e.defaultValue!==e.value||L(t)==null&&e.value)&&r(no(e)?oo(e.value):e.value),ie(()=>{d&&e.type==="checkbox"&&$n();var o=t();no(e)&&o===oo(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o!=null?o:"")})}function no(e){var t=e.type;return t==="number"||t==="range"}function oo(e){return e===""?null:+e}function sn(e,t,r){if(e.multiple)return Hs(e,t);for(var n of e.options){var o=wr(n);if(Dn(o,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Fi(e,t){let r=!0;Te(()=>{t&&sn(e,L(t),r),r=!1;var n=new MutationObserver(()=>{var o=e.__value;sn(e,o)});return n.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{n.disconnect()}})}function io(e,t,r=t){var n=!0;Kr(e,"change",o=>{var u;var i=o?"[selected]":":checked",s;if(e.multiple)s=[].map.call(e.querySelectorAll(i),wr);else{var f=(u=e.querySelector(i))!=null?u:e.querySelector("option:not([disabled])");s=f&&wr(f)}r(s)}),Te(()=>{var o=t();if(sn(e,o,n),n&&o===void 0){var i=e.querySelector(":checked");i!==null&&(o=wr(i),r(o))}e.__value=o,n=!1}),Fi(e)}function Hs(e,t){for(var r of e.options)r.selected=~t.indexOf(wr(r))}function wr(e){return"__value"in e?e.__value:e.value}var st,Ut,yr,an,Vi,ao=class{constructor(t){T(this,an);T(this,st,new WeakMap);T(this,Ut,void 0);T(this,yr,void 0);j(this,yr,t)}observe(t,r){var n=a(this,st).get(t)||new Set;return n.add(r),a(this,st).set(t,n),Q(this,an,Vi).call(this).observe(t,a(this,yr)),()=>{var o=a(this,st).get(t);o.delete(r),o.size===0&&(a(this,st).delete(t),a(this,Ut).unobserve(t))}}},so=ao;st=new WeakMap,Ut=new WeakMap,yr=new WeakMap,an=new WeakSet,Vi=function(){var t;return(t=a(this,Ut))!=null?t:j(this,Ut,new ResizeObserver(r=>{for(var n of r){ao.entries.set(n.target,n);for(var o of a(this,st).get(n.target)||[])o(n)}}))},_e(so,"entries",new WeakMap);if(d){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;Yo(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}var fn=!1,nm=Symbol();function fo(e){var t=fn;try{return fn=!1,[e(),fn]}finally{fn=t}}function Ht(e,t,r,n){var se,O;var o=(r&1)!==0,i=!et||(r&2)!==0,s=(r&8)!==0,f=(r&16)!==0,u=!1,_;s?[_,u]=fo(()=>e[t]):_=e[t];var x=me in e||Ir in e,m=s&&((O=(se=ke(e,t))==null?void 0:se.set)!=null?O:x&&t in e&&(w=>e[t]=w))||void 0,l=n,c=!0,h=!1,v=()=>(h=!0,c&&(c=!1,f?l=L(n):l=n),l);_===void 0&&n!==void 0&&(m&&i&&Bo(t),_=v(),m&&m(_));var y;if(i)y=()=>{var w=e[t];return w===void 0?v():(c=!0,h=!1,w)};else{var C=(o?ge:tr)(()=>e[t]);C.f|=131072,y=()=>{var w=p(C);return w!==void 0&&(l=void 0),w===void 0?l:w}}if(!(r&4))return y;if(m){var P=e.$$legacy;return function(w,D){return arguments.length>0?((!i||!D||P||u)&&m(D?y():w),w):y()}}var N=!1,$=!1,R=rt(_),J=ge(()=>{var w=y(),D=p(R);return N?(N=!1,$=!0,D):($=!1,R.v=w)});return o||(J.equals=At),function(w,D){if(Qt!==null&&(N=$,y(),p(R)),arguments.length>0){let q=D?p(J):i&&s?ye(w):w;return J.equals(q)||(N=!0,g(R,q),h&&l!==void 0&&(l=q),L(()=>p(J))),w}return p(J)}}function Yi(e){return new lo(e)}var Ge,Se,lo=class{constructor(t){T(this,Ge,void 0);T(this,Se,void 0);var i,s;var r=new Map,n=(f,u)=>{var _=rt(u);return r.set(f,_),_};let o=new Proxy({...t.props||{},$$events:{}},{get(f,u){var _;return p((_=r.get(u))!=null?_:n(u,Reflect.get(f,u)))},has(f,u){var _;return u===Ir?!0:(p((_=r.get(u))!=null?_:n(u,Reflect.get(f,u))),Reflect.has(f,u))},set(f,u,_){var x;return g((x=r.get(u))!=null?x:n(u,_),_),Reflect.set(f,u,_)}});j(this,Se,(t.hydrate?Xn:Yt)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:(i=t.intro)!=null?i:!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&Mt(),j(this,Ge,o.$$events);for(let f of Object.keys(a(this,Se)))f==="$set"||f==="$destroy"||f==="$on"||z(this,f,{get(){return a(this,Se)[f]},set(u){a(this,Se)[f]=u},enumerable:!0});a(this,Se).$set=f=>{Object.assign(o,f)},a(this,Se).$destroy=()=>{hr(a(this,Se))}}$set(t){a(this,Se).$set(t)}$on(t,r){a(this,Ge)[t]=a(this,Ge)[t]||[];let n=(...o)=>r.call(this,...o);return a(this,Ge)[t].push(n),()=>{a(this,Ge)[t]=a(this,Ge)[t].filter(o=>o!==n)}}$destroy(){a(this,Se).$destroy()}};Ge=new WeakMap,Se=new WeakMap;var ia;typeof HTMLElement=="function"&&(ia=class extends HTMLElement{constructor(t,r,n){super();_e(this,"$$ctor");_e(this,"$$s");_e(this,"$$c");_e(this,"$$cn",!1);_e(this,"$$d",{});_e(this,"$$r",!1);_e(this,"$$p_d",{});_e(this,"$$l",{});_e(this,"$$l_u",new Map);_e(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){let o=this.$$c.$on(t,r);this.$$l_u.set(r,o)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){let o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return i=>{let s=document.createElement("slot");o!=="default"&&(s.name=o),qe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=sa(this);for(let o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=t(o),r.default=!0):r[o]=t(o));for(let o of this.attributes){let i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=uo(i,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Yi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Hn(()=>{ie(()=>{var o;this.$$r=!0;for(let i of wn(this.$$c)){if(!((o=this.$$p_d[i])!=null&&o.reflect))continue;this.$$d[i]=this.$$c[i];let s=uo(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(let o in this.$$l)for(let i of this.$$l[o]){let s=this.$$c.$on(o,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=uo(t,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return wn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function uo(e,t,r,n){var i;let o=(i=r[e])==null?void 0:i.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function sa(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ui(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function f(x){try{_(n.next(x))}catch(m){s(m)}}function u(x){try{_(n.throw(x))}catch(m){s(m)}}function _(x){x.done?i(x.value):o(x.value).then(f,u)}_((n=n.apply(e,t||[])).next())})}var Hi=!1,jt,br,ln,un,ji,po=class extends Date{constructor(...r){super(...r);T(this,un);T(this,jt,E(super.getTime()));T(this,br,new Map);T(this,ln,A);Hi||Q(this,un,ji).call(this)}},co=po;jt=new WeakMap,br=new WeakMap,ln=new WeakMap,un=new WeakSet,ji=function(){Hi=!0;var r=po.prototype,n=Date.prototype,o=Object.getOwnPropertyNames(n);for(let i of o)(i.startsWith("get")||i.startsWith("to")||i==="valueOf")&&(r[i]=function(...s){if(s.length>0)return p(a(this,jt)),n[i].apply(this,s);var f=a(this,br).get(i);if(f===void 0){let u=A;B(a(this,ln)),f=ge(()=>(p(a(this,jt)),n[i].apply(this,s))),a(this,br).set(i,f),B(u)}return p(f)}),i.startsWith("set")&&(r[i]=function(...s){var f=n[i].apply(this,s);return g(a(this,jt),n.getTime.call(this)),f})};function U(e){g(e,e.v+1)}var la=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],ua=["difference","intersection","symmetricDifference","union"],zi=!1,zt,Ie,at,cn,Wi,pn=class extends Set{constructor(r){super();T(this,cn);T(this,zt,new Map);T(this,Ie,E(0));T(this,at,E(0));if(d&&(r=new Set(r)),r){for(var n of r)super.add(n);a(this,at).v=super.size}zi||Q(this,cn,Wi).call(this)}has(r){var n=super.has(r),o=a(this,zt),i=o.get(r);if(i===void 0){if(!n)return p(a(this,Ie)),!1;i=E(!0),o.set(r,i)}return p(i),n}add(r){return super.has(r)||(super.add(r),g(a(this,at),super.size),U(a(this,Ie))),this}delete(r){var n=super.delete(r),o=a(this,zt),i=o.get(r);return i!==void 0&&(o.delete(r),g(i,!1)),n&&(g(a(this,at),super.size),U(a(this,Ie))),n}clear(){if(super.size!==0){super.clear();var r=a(this,zt);for(var n of r.values())g(n,!1);r.clear(),g(a(this,at),0),U(a(this,Ie))}}keys(){return this.values()}values(){return p(a(this,Ie)),super.values()}entries(){return p(a(this,Ie)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return p(a(this,at))}},Er=pn;zt=new WeakMap,Ie=new WeakMap,at=new WeakMap,cn=new WeakSet,Wi=function(){zi=!0;var r=pn.prototype,n=Set.prototype;for(let o of la)r[o]=function(...i){return p(a(this,Ie)),n[o].apply(this,i)};for(let o of ua)r[o]=function(...i){p(a(this,Ie));var s=n[o].apply(this,i);return new pn(s)}};var Be,Ye,Ke,Wt,_n,mo=class extends Map{constructor(r){super();T(this,Wt);T(this,Be,new Map);T(this,Ye,E(0));T(this,Ke,E(0));if(d&&(r=new Map(r)),r){for(var[n,o]of r)super.set(n,o);a(this,Ke).v=super.size}}has(r){var n=a(this,Be),o=n.get(r);if(o===void 0){var i=super.get(r);if(i!==void 0)o=E(0),n.set(r,o);else return p(a(this,Ye)),!1}return p(o),!0}forEach(r,n){Q(this,Wt,_n).call(this),super.forEach(r,n)}get(r){var n=a(this,Be),o=n.get(r);if(o===void 0){var i=super.get(r);if(i!==void 0)o=E(0),n.set(r,o);else{p(a(this,Ye));return}}return p(o),super.get(r)}set(r,n){var m;var o=a(this,Be),i=o.get(r),s=super.get(r),f=super.set(r,n),u=a(this,Ye);if(i===void 0)o.set(r,E(0)),g(a(this,Ke),super.size),U(u);else if(s!==n){U(i);var _=u.reactions===null?null:new Set(u.reactions),x=_===null||!((m=i.reactions)!=null&&m.every(l=>_.has(l)));x&&U(u)}return f}delete(r){var n=a(this,Be),o=n.get(r),i=super.delete(r);return o!==void 0&&(n.delete(r),g(a(this,Ke),super.size),g(o,-1),U(a(this,Ye))),i}clear(){if(super.size!==0){super.clear();var r=a(this,Be);g(a(this,Ke),0);for(var n of r.values())g(n,-1);U(a(this,Ye)),r.clear()}}keys(){return p(a(this,Ye)),super.keys()}values(){return Q(this,Wt,_n).call(this),super.values()}entries(){return Q(this,Wt,_n).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(a(this,Ke)),super.size}},_o=mo;Be=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Wt=new WeakSet,_n=function(){p(a(this,Ye));var r=a(this,Be);if(a(this,Ke).v!==r.size)for(var n of Eo(mo.prototype,this,"keys").call(this))r.has(n)||r.set(n,E(0));for(var[,o]of a(this,Be))p(o)};var dn=Symbol(),X,Sr,Ze,wt,$r,Tr=class extends URLSearchParams{constructor(){super(...arguments);T(this,wt);T(this,X,E(0));T(this,Sr,Gi());T(this,Ze,!1)}[dn](r){if(!a(this,Ze)){j(this,Ze,!0);for(let n of[...super.keys()])super.delete(n);for(let[n,o]of r)super.append(n,o);U(a(this,X)),j(this,Ze,!1)}}append(r,n){super.append(r,n),Q(this,wt,$r).call(this),U(a(this,X))}delete(r,n){var o=super.has(r,n);super.delete(r,n),o&&(Q(this,wt,$r).call(this),U(a(this,X)))}get(r){return p(a(this,X)),super.get(r)}getAll(r){return p(a(this,X)),super.getAll(r)}has(r,n){return p(a(this,X)),super.has(r,n)}keys(){return p(a(this,X)),super.keys()}set(r,n){var o=super.getAll(r).join("");super.set(r,n),o!==super.getAll(r).join("")&&(Q(this,wt,$r).call(this),U(a(this,X)))}sort(){super.sort(),Q(this,wt,$r).call(this),U(a(this,X))}toString(){return p(a(this,X)),super.toString()}values(){return p(a(this,X)),super.values()}entries(){return p(a(this,X)),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(a(this,X)),super.size}};X=new WeakMap,Sr=new WeakMap,Ze=new WeakMap,wt=new WeakSet,$r=function(){if(!a(this,Sr)||a(this,Ze))return;j(this,Ze,!0);let r=this.toString();a(this,Sr).search=r&&`?${r}`,j(this,Ze,!1)};var ho=null;function Gi(){return ho}var ft,yt,bt,Ue,He,Et,$t,Tt,St,vo=class extends URL{constructor(r,n){r=new URL(r,n);super(r);T(this,ft,E(super.protocol));T(this,yt,E(super.username));T(this,bt,E(super.password));T(this,Ue,E(super.hostname));T(this,He,E(super.port));T(this,Et,E(super.pathname));T(this,$t,E(super.hash));T(this,Tt,E(super.search));T(this,St,void 0);ho=this,j(this,St,new Tr(r.searchParams)),ho=null}get hash(){return p(a(this,$t))}set hash(r){super.hash=r,g(a(this,$t),super.hash)}get host(){return p(a(this,Ue)),p(a(this,He)),super.host}set host(r){super.host=r,g(a(this,Ue),super.hostname),g(a(this,He),super.port)}get hostname(){return p(a(this,Ue))}set hostname(r){super.hostname=r,g(a(this,Ue),super.hostname)}get href(){return p(a(this,ft)),p(a(this,yt)),p(a(this,bt)),p(a(this,Ue)),p(a(this,He)),p(a(this,Et)),p(a(this,$t)),p(a(this,Tt)),super.href}set href(r){super.href=r,g(a(this,ft),super.protocol),g(a(this,yt),super.username),g(a(this,bt),super.password),g(a(this,Ue),super.hostname),g(a(this,He),super.port),g(a(this,Et),super.pathname),g(a(this,$t),super.hash),g(a(this,Tt),super.search),a(this,St)[dn](super.searchParams)}get password(){return p(a(this,bt))}set password(r){super.password=r,g(a(this,bt),super.password)}get pathname(){return p(a(this,Et))}set pathname(r){super.pathname=r,g(a(this,Et),super.pathname)}get port(){return p(a(this,He))}set port(r){super.port=r,g(a(this,He),super.port)}get protocol(){return p(a(this,ft))}set protocol(r){super.protocol=r,g(a(this,ft),super.protocol)}get search(){return p(a(this,Tt))}set search(r){super.search=r,g(a(this,Tt),r),a(this,St)[dn](super.searchParams)}get username(){return p(a(this,yt))}set username(r){super.username=r,g(a(this,yt),super.username)}get origin(){return p(a(this,ft)),p(a(this,Ue)),p(a(this,He)),super.origin}get searchParams(){return a(this,St)}toString(){return this.href}toJSON(){return this.href}};ft=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ue=new WeakMap,He=new WeakMap,Et=new WeakMap,$t=new WeakMap,Tt=new WeakMap,St=new WeakMap;function xo(e){let t=0,r=E(0),n;return()=>{Pr()&&(p(r),ie(()=>(t===0&&(n=L(()=>e(()=>U(r)))),t+=1,()=>{Hr().then(()=>{t-=1,t===0&&(n==null||n(),n=void 0)})})))}}var Ar,kr,go=class{constructor(t,r){T(this,Ar,void 0);T(this,kr,void 0);j(this,Ar,t),j(this,kr,xo(r))}get current(){return a(this,kr).call(this),a(this,Ar).call(this)}};Ar=new WeakMap,kr=new WeakMap;var mn=require("obsidian"),ca=xt("<option> </option>"),pa=(e,t,r,n,o)=>{t(p(r).word),n()===2?n(3):n()===3&&n(2),o()},_a=xt('<div class="svelte-1l6g9nh"> </div>'),da=(e,t,r)=>{t.has(p(r))?t.delete(p(r)):t.add(p(r))},ma=xt('<span class="svelte-1l6g9nh"> </span>'),ha=xt("<div> <!></div>"),va=xt('<div class="wordcraft svelte-1l6g9nh"><select class="mode dropdown svelte-1l6g9nh"></select> <input type="text" placeholder="Search for words..." class="svelte-1l6g9nh"> <input type="text" placeholder="Themes (optional)" class="svelte-1l6g9nh"> <div class="list svelte-1l6g9nh"></div> <div class="meters svelte-1l6g9nh"></div></div>'),xa={hash:"svelte-1l6g9nh",code:`.wordcraft.svelte-1l6g9nh {width:100%;height:100%;max-width:var(--file-line-width);margin-left:auto;margin-right:auto;display:flex;flex-direction:column;padding:8px;}.wordcraft.svelte-1l6g9nh > :where(.svelte-1l6g9nh) {width:100%;margin:4px 0;}.wordcraft.svelte-1l6g9nh > input:where(.svelte-1l6g9nh),
|
|
select.svelte-1l6g9nh,
|
|
.meters.svelte-1l6g9nh {flex-shrink:0;}.list.svelte-1l6g9nh {height:100%;overflow-y:scroll;text-align:center;}.list.svelte-1l6g9nh > div:where(.svelte-1l6g9nh) {padding:8px 12px;text-align:center;border-radius:var(--radius-s);transition:background-color 0.1s ease-out;display:inline-block;}.list.svelte-1l6g9nh > div:where(.svelte-1l6g9nh):hover {color:var(--text-normal);background-color:var(--background-modifier-hover);}.meters.svelte-1l6g9nh {display:flex;flex-wrap:wrap;justify-content:center;}.meter.svelte-1l6g9nh {margin:2px;padding:2px 4px;border-radius:var(--radius-s);font-family:var(--font-monospace);font-size:var(--font-ui-medium);background:var(--interactive-normal);transition:background-color 0.1s ease-out;}.meter.svelte-1l6g9nh:hover {background:var(--interactive-hover);}.meter.selected.svelte-1l6g9nh {background:var(--interactive-accent);--text-color: var(--text-on-accent);}.meter.selected.svelte-1l6g9nh:hover {background:var(--interactive-accent-hover);}.meter.svelte-1l6g9nh > span:where(.svelte-1l6g9nh) {font-family:var(--font-interface);font-size:var(--font-ui-smaller);font-weight:var(--font-thin);padding:4px;}`};function wo(e,t){_r(t,!0),eo(e,xa);let r=Ht(t,"topics",7,""),n=Ht(t,"search",7,""),o=Ht(t,"mode",7,0),i=Ht(t,"meters",19,()=>"/ x/ /x // /xx x/x xx/".split(" ")),s=ye(new Er),f=kn(ye([])),u=ge(()=>_(p(f)));function _(O){let w={};for(let D of O){let q=v(D);i().includes(q)?w[q]=(w[q]||0)+1:w.misc=(w.misc||0)+1}return w}let x="https://api.datamuse.com/words",m=[{name:"Means like...",params:"ml="},{name:"Rhymes with...",params:"arhy=1&sl="},{name:"Nouns described by...",params:"rel_jja="},{name:"Adjectives that describe...",params:"rel_jjb="}],l="max=500&md=fr&topics=";function c(){return Ui(this,void 0,void 0,function*(){if(!n())return;let O=`${x}?${l}${r()}&${m[o()].params}${n()}`,D=yield(yield(0,mn.requestUrl)(O)).json;g(f,ye(D))})}function h(O){for(let w of O.tags)if(w.startsWith("pron:"))return w.slice(5);return""}function v(O){let w="";for(let D of h(O))D==="1"?w+="/":D==="0"&&(w+="x");return w}function y(O){let w=v(O);return s.size===0||s.has(w)||s.has("misc")&&!i().includes(w)}let C=(0,mn.debounce)(c,200,!0);c();var P=va(),N=dt(P);N.__click=c,gr(N,21,()=>m,xr,(O,w,D,q)=>{var ce=ca();ce.value=(ce.__value=D)==null?"":D;var je=dt(ce,!0);Me(ce),Ft(()=>Bt(je,p(w).name)),qe(O,ce)}),Me(N);var $=mt(N,2);rn($),$.__input=C;var R=mt($,2);rn(R),R.__input=C;var J=mt(R,2);gr(J,21,()=>p(f),xr,(O,w)=>{var D=Gn(),q=Ln(D);{var ce=je=>{var pe=_a();pe.__click=[pa,n,w,o,c];var Xe=dt(pe,!0);Me(pe),Ft(()=>Bt(Xe,p(w).word)),qe(je,pe)};Qr(q,je=>{y(p(w))&&je(ce)})}qe(O,D)}),Me(J);var se=mt(J,2);gr(se,21,()=>[...i(),"misc"],xr,(O,w)=>{var D=ha();D.__click=[da,s,w];var q=dt(D,!0),ce=mt(q);{var je=pe=>{var Xe=ma(),Nr=dt(Xe,!0);Me(Xe),Ft(()=>Bt(Nr,p(u)[p(w)])),qe(pe,Xe)};Qr(ce,pe=>{p(u)[p(w)]&&pe(je)})}Me(D),Ft(pe=>{tn(D,1,en(pe),"svelte-1l6g9nh"),Bt(q,p(w))},[()=>({meter:p(w),selected:s.has(p(w))})]),qe(O,D)}),Me(se),Me(P),io(N,o),on($,n),on(R,r),Wn("wheel",se,O=>{O.deltaY&&(O.preventDefault(),O.currentTarget.scrollLeft+=O.deltaY)}),qe(e,P),dr()}Xr(["click","input"]);var Rr="wordcraft-view",hn=class extends xn.Plugin{async onload(){this.registerView(Rr,t=>new vn(t)),this.addRibbonIcon("book-open-text","Open WordCraft",()=>{this.activateView()}),this.addCommand({id:"open-view",name:"Open view",callback:()=>{this.activateView()}})}async activateView(){let{workspace:t}=this.app,r=null,n=t.getLeavesOfType(Rr);n.length>0?r=n[0]:(r=t.getRightLeaf(!1),await(r==null?void 0:r.setViewState({type:Rr,active:!0}))),r&&t.revealLeaf(r)}},vn=class extends xn.ItemView{constructor(r){super(r);this.icon="book-open-text"}getViewType(){return Rr}getDisplayText(){return"WordCraft"}async onOpen(){this.component=Yt(wo,{target:this.contentEl})}async onClose(){this.component&&hr(this.component)}};
|
|
|
|
/* nosourcemap */ |