@pie-players/pie-section-player 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/dist/browser/assets/{evaluation-worker-0xRDVTJx.js → evaluation-worker-B336Lsun.js} +48398 -46681
- package/dist/browser/chunks/calculator-element-271c142f.js +4 -4
- package/dist/browser/chunks/dist-41b39e7f.js +1 -1
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -1
- package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +1 -1
- package/dist/browser/chunks/{runtime-YFqnU6ic-d5c0cb49.js → runtime-BCz9m_IT-7b48a036.js} +305 -292
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +5 -5
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +5 -5
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +5 -5
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +3 -3
- package/dist/browser/chunks/tool-graph-cb0338e8.js +4 -4
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +3 -3
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +4 -4
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +3 -3
- package/dist/browser/chunks/tool-protractor-23f77028.js +6 -6
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +6 -6
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +4 -4
- package/dist/browser/pie-section-player.js +52 -44
- package/dist/components/shared/card-title.d.ts +18 -0
- package/dist/contracts/card-title-formatters.d.ts +8 -1
- package/dist/pie-section-player.js +8789 -8699
- package/package.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{t as Qi}from"./attribute-coercion-b93b482c.js";import{a as Xi,i as Yi,n as Zi,r as Ui,t as ts}from"./term-lookup-632cf6b1.js";if(typeof window<"u"){var hr,vr;((hr=(vr=window).__svelte??(vr.__svelte={})).v??(hr.v=new Set)).add("5")}var ce={},L=Symbol("uninitialized"),Nr=Array.isArray,es=Array.prototype.indexOf,On=Array.prototype.includes,gn=Array.from,nn=Object.keys,Oe=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyDescriptors,rs=Object.prototype,is=Array.prototype,Cr=Object.getPrototypeOf,dr=Object.isExtensible,ss=()=>{};function os(t){for(var e=0;e<t.length;e++)t[e]()}function Lr(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function je(t){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(t)}function as(t,e){if(je(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ls(t){var e=as(t,"string");return je(e)=="symbol"?e:e+""}function T(t,e,n){return(e=ls(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tt=1024,ct=2048,ne=4096,Jn=8192,us=16384,Kn=32768,pr=1<<25,Gn=65536,ge=1<<19,fs=1<<20,We=1<<25,gr=1<<21,cs=1<<22,rn=1<<23,Ze=Symbol("$state"),zr=Symbol("component"),Rr=Symbol("legacy props"),hs=Symbol(""),jn=Symbol("attributes"),vs=Symbol("class"),ds=Symbol("style"),Ue=Symbol("text"),Ee=Symbol("form reset"),Re=new class extends Error{constructor(...t){super(...t),T(this,"name","StaleReactionError"),T(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ps=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function gs(){console.warn("https://svelte.dev/e/derived_inert")}function mn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var E=!1;function Pt(t){E=t}var W;function J(t){if(t===null)throw mn(),ce;return W=t}function yn(){return J(xt(W))}function gt(t){if(E){if(xt(W)!==null)throw mn(),ce;W=t}}function ys(t=1){if(E){for(var e=t,n=W;e--;)n=xt(n);W=n}}function sn(t=!0){for(var e=0,n=W;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=xt(n);t&&n.remove(),n=i}}function Ir(t){if(!t||t.nodeType!==8)throw mn(),ce;return t.data}function Br(t){return t===this.v}function ws(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Dr(t){return!ws(t,this.v)}function _s(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function $s(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ks(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function xs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ss(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ms(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var me=!1,wn=!1,R=null;function he(t){R=t}function Vr(t,e=!1,n){R={p:R,i:!1,c:null,e:null,s:t,x:null,r:q,l:wn&&!e?{s:null,u:null,$:[]}:null}}function Hr(t){var e=R,n=e.e;if(n!==null){e.e=null;for(var r of n)di(r)}return t!==void 0&&(e.x=t),e.i=!0,R=e.p,Fr(t)}function Fr(t={}){return Oe(t,zr,{value:!0}),t}function Ie(){return!wn||R!==null&&R.l===null}var Gt=[];function Jr(){var t=Gt;Gt=[],os(t)}function kt(t){if(Gt.length===0&&!Te){var e=Gt;queueMicrotask(()=>{e===Gt&&Jr()})}Gt.push(t)}function Os(){for(;Gt.length>0;)Jr()}var js=~(ct|ne|tt);function N(t,e){t.f=t.f&js|e}function Qn(t){(t.f&512)!==0||t.deps===null?N(t,tt):N(t,ne)}function Kr(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),N(t,tt)}var mr=!1;function Gr(){mr||(mr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Ee]?.()})},{capture:!0}))}function ye(t){var e=S,n=q;nt(null),qt(null);try{return t()}finally{nt(e),qt(n)}}function As(t,e,n,r=n){t.addEventListener(e,()=>ye(n));const i=t[Ee];i?t[Ee]=()=>{i(),r(!0)}:t[Ee]=()=>r(!0),Gr()}function Ns(t,e,n,r){const i=Ie()?Ae:Xn;var s=t.filter(h=>!h.settled),a=e.map(i);if(n.length===0&&s.length===0){r(a);return}var l=q,f=Cs(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function c(h){if((l.f&16384)===0){f();try{r([...a,...h])}catch(m){$t(m,l)}on()}}var v=Qr();if(n.length===0){u.then(()=>c([])).finally(v);return}function d(){Promise.all(n.map(h=>Ls(h))).then(c).catch(h=>$t(h,l)).finally(v)}u?u.then(()=>{f(),d(),on()}):d()}function Cs(){var t=q,e=S,n=R,r=$;return function(i=!0){qt(t),nt(e),he(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function on(t=!0){qt(null),nt(null),he(null),t&&$?.deactivate()}function Qr(){var t=q,e=t.b,n=$,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function Ae(t){var e=2|ct;return q!==null&&(q.f|=ge),{ctx:R,deps:null,effects:null,equals:Br,f:e,fn:t,reactions:null,rv:0,v:L,wv:0,parent:q,ac:null}}var xe=Symbol("obsolete");function Ls(t,e,n){let r=q;r===null&&_s();var i=void 0,s=ee(L),a=!S,l=new Set;return to(()=>{var f=q,u=Lr();i=u.promise;try{Promise.resolve(t()).then(u.resolve,h=>{h!==Re&&u.reject(h)}).finally(on)}catch(h){u.reject(h),on()}var c=$;if(a){if((f.f&32768)!==0)var v=Qr();if(r.b?.is_rendered())c.async_deriveds.get(f)?.reject(xe);else for(const h of l.values())h.reject(xe);l.add(u),c.async_deriveds.set(f,u)}const d=(h,m=void 0)=>{v?.(),l.delete(u),m!==xe&&(c.activate(),m?(s.f|=rn,de(s,m)):(s.f&8388608&&(s.f^=rn),de(s,h)),c.deactivate())};u.promise.then(d,h=>d(null,h||"unknown"))}),vi(()=>{for(const f of l)f.reject(xe)}),new Promise(f=>{function u(c){function v(){c===i?f(s):u(i)}c.then(v,v)}u(i)})}function yr(t){const e=Ae(t);return wi(e),e}function Xn(t){const e=Ae(t);return e.equals=Dr,e}function zs(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)V(e[n])}}function Yn(t){var e,n=q,r=t.parent;if(!jt&&r!==null&&t.v!==L&&(r.f&24576)!==0)return gs(),t.v;qt(r);try{zs(t),e=ki(t)}finally{qt(n)}return e}function Xr(t){var e=Yn(t);if(!t.equals(e)&&(t.wv=bi(),(!$?.is_fork||t.deps===null)&&($!==null?($.capture(t,e,!0),an?.capture(t,e,!0)):t.v=e,t.deps===null))){N(t,tt);return}jt||(D!==null?(er()||$?.is_fork)&&D.set(t,e):Qn(t))}function Rs(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&ye(()=>{e.ac.abort(Re),e.ac=null}),e.fn!==null&&(e.teardown=ss),Ce(e,0),ir(e))}function Yr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&pe(e)}function Zr(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Zn(t,e){Zr(t,e),e.add(t)}function b(t,e,n){Zr(t,e),e.set(t,n)}function k(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function y(t,e,n){return t.set(k(t,e),n),n}function o(t,e){return t.get(k(t,e))}var Ur,An=null,se=null,$=null,an=null,D=null,Nn=null,Te=!1,kn=!1,Ne=null,ln=null,ti=0,Is=1,Cn=new WeakMap,Zt=new WeakMap,ue=new WeakMap,un=new WeakMap,He=new WeakMap,oe=new WeakMap,Jt=new WeakMap,Se=new WeakMap,wt=new WeakMap,wr=new WeakMap,ve=new WeakMap,Ot=new WeakMap,It=new WeakMap,qn=new WeakMap,Fe=new WeakMap,C=new WeakSet,re=class ei{constructor(){Zn(this,C),T(this,"id",Is++),b(this,Cn,!1),T(this,"linked",!0),b(this,Zt,null),b(this,ue,null),T(this,"async_deriveds",new Map),T(this,"current",new Map),T(this,"previous",new Map),b(this,un,new Set),b(this,He,new Set),b(this,oe,0),b(this,Jt,new Map),b(this,Se,null),b(this,wt,[]),b(this,wr,[]),b(this,ve,new Set),b(this,Ot,new Set),b(this,It,new Map),b(this,qn,new Set),T(this,"is_fork",!1),b(this,Fe,!1),se===null?An=se=this:(y(ue,se,this),y(Zt,this,se)),se=this}skip_effect(e){o(It,this).has(e)||o(It,this).set(e,{d:[],m:[]}),o(qn,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=o(It,this).get(e);if(r){o(It,this).delete(e);for(var i of r.d)N(i,ct),n(i);for(i of r.m)N(i,ne),n(i)}o(qn,this).add(e)}capture(e,n,r=!1){e.v!==L&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),D?.set(e,n)),this.is_fork||(e.v=n)}activate(){$=this}deactivate(){$=null,D=null}flush(){try{kn=!0,$=this,k(C,this,fn).call(this)}finally{ti=0,Nn=null,Ne=null,ln=null,kn=!1,$=null,D=null,bt.clear()}}discard(){for(const e of o(He,this))e(this);o(He,this).clear();for(const e of this.async_deriveds.values())e.reject(xe);k(C,this,cn).call(this),o(Se,this)?.resolve()}register_created_effect(e){o(wr,this).push(e)}increment(e,n){if(y(oe,this,o(oe,this)+1),e){let r=o(Jt,this).get(n)??0;o(Jt,this).set(n,r+1)}}decrement(e,n){if(y(oe,this,o(oe,this)-1),e){let r=o(Jt,this).get(n)??0;r===1?o(Jt,this).delete(n):o(Jt,this).set(n,r-1)}o(Fe,this)||(y(Fe,this,!0),kt(()=>{y(Fe,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)o(ve,this).add(r);for(const r of n)o(Ot,this).add(r);e.clear(),n.clear()}oncommit(e){o(un,this).add(e)}ondiscard(e){o(He,this).add(e)}settled(){return(o(Se,this)??y(Se,this,Lr())).promise}static ensure(){if($===null){const e=$=new ei;!kn&&!Te&&kt(()=>{o(Cn,e)||e.flush()})}return $}apply(){if(!me||!this.is_fork&&o(Zt,this)===null&&o(ue,this)===null){D=null;return}D=new Map;for(const[n,[r]]of this.current)D.set(n,r);for(let n=An;n!==null;n=o(ue,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)D.has(r)||D.set(r,i)}}schedule(e){if(Nn=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}o(wt,this).push(e)}};Ur=re;function _r(){if(this.is_fork)return!0;for(const n of o(Jt,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(o(It,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Bs(){var t=[];for(const i of o(wt,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=tt}}n||t.push(e)}return y(wt,this,[]),t}function fn(){y(Cn,this,!0);for(const a of o(ve,this))o(Ot,this).delete(a),N(a,ct),this.schedule(a);for(const a of o(Ot,this))N(a,ne),this.schedule(a);this.apply();for(var t=Ne=[],e=[],n=ln=[];o(wt,this).length>0;){ti++>1e3&&(k(C,this,cn).call(this),Fs());for(const a of k(C,this,Bs).call(this))try{k(C,this,Ds).call(this,a,t,e)}catch(l){throw ii(a),k(C,this,_r).call(this)||this.discard(),l}}if($=null,n.length>0){var r=Ur.ensure();for(const a of n)r.schedule(a)}if(Ne=null,ln=null,k(C,this,_r).call(this)){k(C,this,Je).call(this,e),k(C,this,Je).call(this,t);for(const[a,l]of o(It,this))ri(a,l);n.length>0&&k(C,$,fn).call($);return}const i=k(C,this,Vs).call(this);if(i){k(C,this,Je).call(this,e),k(C,this,Je).call(this,t),k(C,i,Hs).call(i,this);return}o(ve,this).clear(),o(Ot,this).clear();for(const a of o(un,this))a(this);o(un,this).clear(),an=this,br(e),br(t),an=null,o(Se,this)?.resolve();var s=$;if(o(oe,this)===0&&(o(wt,this).length===0||s!==null)&&k(C,this,cn).call(this),o(wt,this).length>0)if(s!==null){for(const a of o(wt,this))o(wt,s).push(a);y(wt,this,[])}else s=this;s!==null&&(bt.clear(),k(C,s,fn).call(s))}function Ds(t,e,n){t.f^=tt;for(var r=t.first;r!==null;){var i=r.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||o(It,this).has(r))&&r.fn!==null){s?r.f^=tt:(i&4)!==0?e.push(r):me&&(i&16777224)!==0?n.push(r):Be(r)&&(i&16&&o(Ot,this).add(r),pe(r));var a=r.first;if(a!==null){r=a;continue}}for(;r!==null;){var l=r.next;if(l!==null){r=l;break}r=r.parent}}}function Vs(){for(var t=o(Zt,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=o(Zt,t)}return null}function Hs(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(o(ve,t),o(Ot,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const a of r){var i=a.f;if((i&2)!==0)e(a);else{var s=a;i&4194320&&!this.async_deriveds.has(s)&&(o(Ot,this).delete(s),N(s,ct),this.schedule(s))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),k(C,t,cn).call(t),$=this,k(C,this,fn).call(this)}function Je(t){for(var e=0;e<t.length;e+=1)Kr(t[e],o(ve,this),o(Ot,this))}function cn(){if(this.linked){var t=o(Zt,this),e=o(ue,this);t===null?An=e:y(ue,t,e),e===null?se=t:y(Zt,e,t),this.linked=!1}}function st(t){var e=Te;Te=!0;try{var n;for(t&&($!==null&&!$.is_fork&&$.flush(),n=t());;){if(Os(),$===null)return n;$.flush()}}finally{Te=e}}function Fs(){try{xs()}catch(t){$t(t,Nn)}}var yt=null;function br(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&Be(r)&&(yt=new Set,pe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gi(r),yt?.size>0)){bt.clear();for(const i of yt){if((i.f&24576)!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)yt.has(a)&&(yt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];!(f.f&24576)&&pe(f)}}yt.clear()}}yt=null}}function ni(t){$.schedule(t)}function ri(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),N(t,tt);for(var n=t.first;n!==null;)ri(n,e),n=n.next}}function ii(t){N(t,tt);for(var e=t.first;e!==null;)ii(e),e=e.next}var hn=new Set,bt=new Map,si=!1;function ee(t,e){return{f:0,v:t,reactions:null,equals:Br,rv:0,wv:0}}function mt(t,e){const n=ee(t,e);return wi(n),n}function oi(t,e=!1,n=!0){const r=ee(t);if(e||(r.equals=Dr),wn&&n&&R!==null&&R.l!==null){var i;((i=R.l).s??(i.s=[])).push(r)}return r}function Z(t,e,n=!1){return S!==null&&(!ot||S.f&131072)&&Ie()&&S.f&4325394&&(lt===null||!lt.has(t))&&Ts(),de(t,n?Qt(e):e,ln)}var Kt=null,Ln=0;function de(t,e,n=null){if(!t.equals(e)){jt?bt.set(t,e):bt.has(t)||bt.set(t,t.v);var r=re.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Yn(i),D===null&&Qn(i)}t.wv=bi(),Kt=null,Ln=0,ai(t,ct,n),Kt=null,Ie()&&q!==null&&q.f&1024&&!(q.f&96)&&(Y===null?io([t]):Y.push(t)),!r.is_fork&&hn.size>0&&!si&&Js()}return e}function Js(){si=!1;for(const t of hn){t.f&1024&&N(t,ne);let e;try{e=Be(t)}catch{e=!0}e&&pe(t)}hn.clear()}function Pe(t){Z(t,t.v+1)}function ai(t,e,n){var r=t.reactions;if(r!==null){var i=Ie(),s=r.length;if(Ln+=s,Ln>1e5&&Kt===null&&(Kt=new Set),Kt!==null){if(Kt.has(t))return;Kt.add(t)}for(var a=0;a<s;a++){var l=r[a],f=l.f;if(!(!i&&l===q)){var u=(f&ct)===0;if(u&&N(l,e),(f&131072)!==0)hn.add(l);else if((f&2)!==0){var c=l;D?.delete(c),ai(c,ne,n)}else if(u){var v=l;f&16&&yt!==null&&yt.add(v),n!==null?n.push(v):ni(v)}}}}}function Qt(t){if(typeof t!="object"||t===null||Ze in t||zr in t)return t;const e=Cr(t);if(e!==rs&&e!==is)return t;var n=new Map,r=Nr(t),i=mt(0),s=null,a=Ut,l=f=>{if(Ut===a)return f();var u=S,c=Ut;nt(null),xr(a);var v=f();return nt(u),xr(c),v};return r&&n.set("length",mt(t.length,s)),new Proxy(t,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Ws();var v=n.get(u);return v===void 0?l(()=>{var d=mt(c.value,s);return n.set(u,d),d}):Z(v,c.value,!0),!0},deleteProperty(f,u){var c=n.get(u);if(c===void 0){if(u in f){const v=l(()=>mt(L,s));n.set(u,v),Pe(i)}}else Z(c,L),Pe(i);return!0},get(f,u,c){if(u===Ze)return t;var v=n.get(u),d=u in f;if(v===void 0&&(!d||Yt(f,u)?.writable)&&(v=l(()=>mt(Qt(d?f[u]:L),s)),n.set(u,v)),v!==void 0){var h=_(v);return h===L?void 0:h}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),v=n.get(u);if(v!==void 0){var d=_(v);if(d===L)return;if(c&&"value"in c)c.value=d;else return{enumerable:!0,configurable:!0,value:d,writable:!0}}return c},has(f,u){if(u===Ze)return!0;var c=n.get(u),v=c!==void 0&&c.v!==L||Reflect.has(f,u);return(c!==void 0||q!==null&&(!v||Yt(f,u)?.writable))&&(c===void 0&&(c=l(()=>mt(v?Qt(f[u]):L,s)),n.set(u,c)),_(c)===L)?!1:v},set(f,u,c,v){var d=n.get(u),h=u in f;if(r&&u==="length")for(var m=c;m<d.v;m+=1){var x=n.get(m+"");x!==void 0?Z(x,L):m in f&&(x=l(()=>mt(L,s)),n.set(m+"",x))}if(d===void 0)(!h||Yt(f,u)?.writable)&&(d=l(()=>mt(void 0,s)),Z(d,Qt(c)),n.set(u,d));else{h=d.v!==L;var p=l(()=>Qt(c));Z(d,p)}var g=Reflect.getOwnPropertyDescriptor(f,u);if(g?.set&&g.set.call(v,c),!h){if(r&&typeof u=="string"){var O=n.get("length"),j=Number(u);Number.isInteger(j)&&j>=O.v&&Z(O,j+1)}Pe(i)}return!0},ownKeys(f){_(i);var u=Reflect.ownKeys(f).filter(d=>{var h=n.get(d);return h===void 0||h.v!==L});for(var[c,v]of n)v.v!==L&&!(c in f)&&u.push(c);return u},setPrototypeOf(){Es()}})}var $r,li,ui,fi;function zn(){if($r===void 0){$r=window,li=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ui=Yt(e,"firstChild").get,fi=Yt(e,"nextSibling").get,dr(t)&&(t[vs]=void 0,t[jn]=null,t[ds]=void 0,t.__e=void 0),dr(n)&&(n[Ue]=void 0)}}function U(t=""){return document.createTextNode(t)}function Dt(t){return ui.call(t)}function xt(t){return fi.call(t)}function Rt(t,e){if(!E)return Dt(t);var n=Dt(W);if(n===null)n=W.appendChild(U());else if(e&&n.nodeType!==3){var r=U();return n?.before(r),J(r),r}return e&&tr(n),J(n),n}function Ks(t,e=!1){if(!E){var n=Dt(t);return n instanceof Comment&&n.data===""?xt(n):n}if(e){if(W?.nodeType!==3){var r=U();return W?.before(r),J(r),r}tr(W)}return W}function Nt(t,e=!1){if(!E)return Dt(t);var n=Rt(t,e);return gt(t),n}function Ct(t,e=1,n=!1){let r=E?W:t;for(var i;e--;)i=r,r=xt(r);if(!E)return r;if(n){if(r?.nodeType!==3){var s=U();return r===null?i?.after(s):r.before(s),J(s),s}tr(r)}return J(r),r}function ci(t){t.textContent=""}function hi(){return!me||yt!==null?!1:(q.f&Kn)!==0}function Un(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function tr(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Gs(t){var e=q;if(e===null)return S.f|=rn,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;$t(t,e)}function $t(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function Qs(t){q===null&&(S===null&&qs(t),ks()),jt&&$s(t)}function Xs(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function St(t,e){var n=q;n!==null&&n.f&8192&&(t|=Jn);var r={ctx:R,deps:null,nodes:null,f:t|ct|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(r);var i=r;if((t&4)!==0)Ne!==null?Ne.push(r):re.ensure().schedule(r);else if(e!==null){try{pe(r)}catch(a){throw V(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Gn))}if(i!==null&&(i.parent=n,n!==null&&Xs(i,n),S!==null&&(S.f&2)!==0&&(t&64)===0)){var s=S;(s.effects??(s.effects=[])).push(i)}return r}function er(){return S!==null&&!ot}function vi(t){const e=St(8,null);return N(e,tt),e.teardown=t,e}function kr(t){Qs("$effect");var e=q.f;if(!S&&(e&32)!==0&&R!==null&&!R.i){var n=R;(n.e??(n.e=[])).push(t)}else return di(t)}function di(t){return St(4|fs,t)}function Ys(t){re.ensure();const e=St(64|ge,t);return()=>{V(e)}}function Zs(t){re.ensure();const e=St(64|ge,t);return(n={})=>new Promise(r=>{n.outro?ie(e,()=>{V(e),r(void 0)}):(V(e),r(void 0))})}function Us(t){return St(4,t)}function to(t){return St(cs|ge,t)}function nr(t,e=0){return St(8|e,t)}function Mt(t,e=[],n=[],r=[]){Ns(r,e,n,i=>{St(8,()=>{t(...i.map(_))})})}function rr(t,e=0){return St(16|e,t)}function et(t){return St(32|ge,t)}function pi(t){var e=t.teardown;if(e!==null){const n=jt,r=S;qr(!0),nt(null);try{e.call(null)}catch(i){$t(i,t.parent)}finally{qr(n),nt(r)}}}function ir(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&ye(()=>{i.abort(Re)});var r=n.next;(n.f&64)!==0?n.parent=null:V(n,e),n=r}}function eo(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&V(e),e=n}}function V(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(no(t.nodes.start,t.nodes.end),n=!0),t.f|=pr,ir(t,e&&!n),Ce(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const s of r)s.stop();pi(t),t.f^=pr,t.f|=us;var i=t.parent;i!==null&&i.first!==null&&gi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function no(t,e){for(;t!==null;){var n=t===e?null:xt(t);t.remove(),t=n}}function gi(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ie(t,e,n=!0){var r=[];t.f|=256,mi(t,r,!0);var i=()=>{n&&V(t),e&&e()},s=r.length;if(s>0){var a=()=>--s||i();for(var l of r)l.out(a)}else i()}function mi(t,e,n){if((t.f&8192)===0){t.f^=Jn;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var s=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;mi(i,e,a?n:!1)}i=s}}}function vn(t){t.f&=-257,yi(t,!0)}function yi(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Jn,!(t.f&1024)&&(N(t,ct),re.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;yi(n,i?e:!1),n=r}var s=t.nodes&&t.nodes.t;if(s!==null)for(const a of s)(a.is_global||e)&&a.in()}}function sr(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:xt(n);e.append(n),n=i}}var ro=null,tn=!1,jt=!1;function qr(t){jt=t}var S=null,ot=!1;function nt(t){S=t}var q=null;function qt(t){q=t}var lt=null;function wi(t){S!==null&&(S.f&2097152||S.f&2)&&(lt??(lt=new Set)).add(t)}var F=null,K=0,Y=null;function io(t){Y=t}var _i=1,Xt=0,Ut=Xt;function xr(t){Ut=t}function bi(){return++_i}function Be(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Be(s)&&Xr(s),s.wv>t.wv)return!0}e&512&&D===null&&N(t,tt)}return!1}function $i(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!me&<!==null&<.has(t)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&2)!==0?$i(s,e,!1):e===s&&(n?N(s,ct):s.f&1024&&N(s,ne),ni(s))}}function ki(t){var e=F,n=K,r=Y,i=S,s=lt,a=R,l=ot,f=Ut,u=t.f;F=null,K=0,Y=null,S=(u&96)===0?t:null,lt=null,he(t.ctx),ot=!1,Ut=++Xt,t.ac!==null&&(ye(()=>{t.ac.abort(Re)}),t.ac=null);try{t.f|=gr;var c=t.fn,v=c();t.f|=Kn;var d=Sr(t);if(Ie()&&Y!==null&&!ot&&d!==null&&(t.f&6146)===0)for(var h=0;h<Y.length;h++)$i(Y[h],t);if(i!==null&&i!==t){if(Xt++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=Xt;if(e!==null)for(const m of e)m.rv=Xt;Y!==null&&(r===null?r=Y:r.push(...Y))}return t.f&8388608&&(t.f^=rn),v}catch(m){return Sr(t),Gs(m)}finally{t.f^=gr,F=e,K=n,Y=r,S=i,lt=s,he(a),ot=l,Ut=f}}function Sr(t){var e=t.deps,n=$?.is_fork;if(F!==null){var r;if(n||Ce(t,K),e!==null&&K>0)for(e.length=K+F.length,r=0;r<F.length;r++)e[K+r]=F[r];else t.deps=e=F;if(er()&&(t.f&512)!==0)for(r=K;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&K<e.length&&(Ce(t,K),e.length=K);return e}function so(t,e){let n=e.reactions;if(n!==null){var r=es.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(F===null||!On.call(F,e))){var s=e;s.f&512&&(s.f^=512),s.v!==L&&Qn(s),s.ac!==null&&ye(()=>{s.ac.abort(Re),s.ac=null,N(s,ct)}),Rs(s),Ce(s,0)}}function Ce(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)so(t,n[r])}function pe(t){var e=t.f;if((e&16384)===0){N(t,tt);var n=q,r=tn;q=t,tn=(e&96)===0;try{(e&16777232)!==0?eo(t):ir(t),pi(t);var i=ki(t);t.teardown=typeof i=="function"?i:null,t.wv=_i}finally{tn=r,q=n}}}async function oo(){if(me)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),st()}function _(t){var e=(t.f&2)!==0;if(ro?.add(t),S!==null&&!ot&&!(q!==null&&(q.f&16384)!==0)&&(lt===null||!lt.has(t))){var n=S.deps;if((S.f&2097152)!==0)t.rv<Xt&&(t.rv=Xt,F===null&&n!==null&&n[K]===t?K++:F===null?F=[t]:F.push(t));else{var r;(r=S).deps??(r.deps=[]),On.call(S.deps,t)||S.deps.push(t);var i=t.reactions;i===null?t.reactions=[S]:On.call(i,S)||i.push(S)}}if(jt&&bt.has(t))return bt.get(t);if(e){var s=t;if(jt){var a=s.v;return(!(s.f&1024)&&s.reactions!==null||xi(s))&&(a=Yn(s)),bt.set(s,a),a}var l=(s.f&512)===0&&!ot&&S!==null&&(tn||(S.f&512)!==0),f=(s.f&Kn)===0;Be(s)&&(l&&(s.f|=512),Xr(s)),l&&!f&&(Yr(s),qi(s))}if(D?.has(t))return D.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function qi(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(Yr(e),qi(e))}function xi(t){if(t.v===L)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(bt.has(e)||(e.f&2)!==0&&xi(e))return!0;return!1}function Le(t){var e=ot;try{return ot=!0,t()}finally{ot=e}}var Ke=Symbol("events"),ao=new Set,Mr=new Set;function lo(t,e,n,r={}){function i(s){if(r.capture||Rn.call(e,s),!s.cancelBubble)return ye(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,kt(()=>{i.__removed||e.addEventListener(t,i,r)})):e.addEventListener(t,i,r),i}function uo(t,e,n,r,i){var s={capture:r,passive:i},a=lo(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&vi(()=>{a.__removed=!0,e.removeEventListener(t,a,s)})}var xn=null,Sn=!1;function Rn(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;xn=t,Sn||(Sn=!0,setTimeout(()=>{Sn=!1,xn=null}));var a=0,l=xn===t&&t[Ke];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Ke]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||t.target,s!==e){Oe(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=S,v=q;nt(null),qt(null);try{for(var d,h=[];s!==null&&s!==e;){try{var m=s[Ke]?.[r];m!=null&&(!s.disabled||t.target===s)&&m.call(s,t)}catch(x){d?h.push(x):d=x}if(t.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(d){for(let x of h)queueMicrotask(()=>{throw x});throw d}}finally{t[Ke]=e,delete t.currentTarget,nt(c),qt(v)}}}var fo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function co(t){return fo?.createHTML(t)??t}function ho(t){var e=Un("template");return e.innerHTML=co(t.replaceAll("<!>","<!---->")),e.content}function fe(t,e){var n=q;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function ht(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(E)return fe(W,null),W;i===void 0&&(i=ho(s?t:"<!>"+t),n||(i=Dt(i)));var a=r||li?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Dt(a),f=a.lastChild;fe(l,f)}else fe(a,a);return a}}function vo(){if(E)return fe(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),n=U();return t.append(e,n),fe(e,n),t}function H(t,e){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=W),yn();return}t!==null&&t.before(e)}var po=["touchstart","touchmove"];function go(t){return po.includes(t)}function mo(t){let e=0,n=ee(0),r;return()=>{er()&&(_(n),nr(()=>(e===0&&(r=Le(()=>t(()=>Pe(n)))),e+=1,()=>{kt(()=>{e-=1,e===0&&(r?.(),r=void 0,Pe(n))})})))}}var yo=Gn|ge;function wo(t,e,n,r){new _o(t,e,n,r)}var ut=new WeakMap,In=new WeakMap,_t=new WeakMap,ze=new WeakMap,G=new WeakMap,ft=new WeakMap,Q=new WeakMap,at=new WeakMap,Bt=new WeakMap,ae=new WeakMap,te=new WeakMap,Ge=new WeakMap,Bn=new WeakMap,Dn=new WeakMap,Ht=new WeakMap,Wr=new WeakMap,z=new WeakSet,_o=class{constructor(t,e,n,r){Zn(this,z),T(this,"parent",void 0),T(this,"is_pending",!1),T(this,"transform_error",void 0),b(this,ut,void 0),b(this,In,E?W:null),b(this,_t,void 0),b(this,ze,void 0),b(this,G,void 0),b(this,ft,null),b(this,Q,null),b(this,at,null),b(this,Bt,null),b(this,ae,0),b(this,te,0),b(this,Ge,!1),b(this,Bn,new Set),b(this,Dn,new Set),b(this,Ht,null),b(this,Wr,mo(()=>(y(Ht,this,ee(o(ae,this))),()=>{y(Ht,this,null)}))),y(ut,this,t),y(_t,this,e),y(ze,this,i=>{var s=q;s.b=this,s.f|=128,n(i)}),this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(i=>i),y(G,this,rr(()=>{if(E){const i=o(In,this);yn();const s=i.data==="[!";if(i.data.startsWith("[?")){const a=JSON.parse(i.data.slice(2));k(z,this,$o).call(this,a)}else s?k(z,this,ko).call(this):k(z,this,bo).call(this)}else k(z,this,Mi).call(this)},yo)),E&&y(ut,this,W)}defer_effect(t){Kr(t,o(Bn,this),o(Dn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!o(_t,this).pending}update_pending_count(t,e){k(z,this,Wi).call(this,t,e),y(ae,this,o(ae,this)+t),o(Ht,this)&&!o(Ge,this)&&(y(Ge,this,!0),kt(()=>{y(Ge,this,!1),o(Ht,this)&&de(o(Ht,this),o(ae,this))}))}get_effect_pending(){return o(Wr,this).call(this),_(o(Ht,this))}error(t){if(!o(_t,this).onerror&&!o(_t,this).failed)throw t;$?.is_fork?(o(ft,this)&&$.skip_effect(o(ft,this)),o(Q,this)&&$.skip_effect(o(Q,this)),o(at,this)&&$.skip_effect(o(at,this)),$.oncommit(()=>{k(z,this,Er).call(this,t)})):k(z,this,Er).call(this,t)}};function bo(){try{y(ft,this,et(()=>o(ze,this).call(this,o(ut,this))))}catch(t){this.error(t)}}function $o(t){const e=o(_t,this).failed,{reset:n,invoke_onerror:r}=k(z,this,Si).call(this,t);kt(r),e&&y(at,this,et(()=>{e(o(ut,this),()=>t,()=>n)}))}function Si(t){var e=!1,n=!1;const r=()=>{if(e){ms();return}e=!0,n&&Ps(),o(at,this)!==null&&ie(o(at,this),()=>{y(at,this,null)}),k(z,this,or).call(this,()=>{k(z,this,Mi).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,o(_t,this).onerror?.(t,r),n=!1}catch(i){$t(i,o(G,this)&&o(G,this).parent)}}}}function ko(){const t=o(_t,this).pending;t&&(this.is_pending=!0,y(Q,this,et(()=>t(o(ut,this)))),kt(()=>{var e=y(Bt,this,document.createDocumentFragment()),n=U(),r=!1;if(e.append(n),y(ft,this,k(z,this,or).call(this,()=>{try{return et(()=>o(ze,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(s){$t(s,o(G,this).parent)}return null}})),o(ft,this)===null){y(Bt,this,null),r&&k(z,this,dn).call(this,$);return}o(te,this)===0&&(o(ut,this).before(e),y(Bt,this,null),ie(o(Q,this),()=>{y(Q,this,null)}),k(z,this,dn).call(this,$))}))}function Mi(){try{if(this.is_pending=this.has_pending_snippet(),y(te,this,0),y(ae,this,0),y(ft,this,et(()=>{o(ze,this).call(this,o(ut,this))})),o(te,this)>0){var t=y(Bt,this,document.createDocumentFragment());sr(o(ft,this),t);const e=o(_t,this).pending;y(Q,this,et(()=>e(o(ut,this))))}else k(z,this,dn).call(this,$)}catch(e){this.error(e)}}function dn(t){this.is_pending=!1,t.transfer_effects(o(Bn,this),o(Dn,this))}function or(t){var e=q,n=S,r=R;qt(o(G,this)),nt(o(G,this)),he(o(G,this).ctx);try{return re.ensure(),t()}finally{qt(e),nt(n),he(r)}}function Wi(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;k(z,n=this.parent,Wi).call(n,t,e)}return}y(te,this,o(te,this)+t),o(te,this)===0&&(k(z,this,dn).call(this,e),o(Q,this)&&ie(o(Q,this),()=>{y(Q,this,null)}),o(Bt,this)&&(o(ut,this).before(o(Bt,this)),y(Bt,this,null)))}function Er(t){o(ft,this)&&(V(o(ft,this)),y(ft,this,null)),o(Q,this)&&(V(o(Q,this)),y(Q,this,null)),o(at,this)&&(V(o(at,this)),y(at,this,null)),E&&(J(o(In,this)),ys(),J(sn()));let e=o(_t,this).failed;const n=r=>{const{reset:i,invoke_onerror:s}=k(z,this,Si).call(this,r);s(),e&&y(at,this,k(z,this,or).call(this,()=>{try{return et(()=>{var a=q;a.b=this,a.f|=128,e(o(ut,this),()=>r,()=>i)})}catch(a){return $t(a,o(G,this).parent),null}}))};kt(()=>{var r;try{r=this.transform_error(t)}catch(i){$t(i,o(G,this)&&o(G,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>$t(i,o(G,this)&&o(G,this).parent)):n(r)})}function Wt(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Ue]??(t[Ue]=t.nodeValue))&&(t[Ue]=n,t.nodeValue=`${n}`)}function Ei(t,e){return Ti(t,e)}function qo(t,e){zn(),e.intro=e.intro??!1;const n=e.target,r=E,i=W;try{for(var s=Dt(n);s&&(s.nodeType!==8||s.data!=="[");)s=xt(s);if(!s)throw ce;Pt(!0),J(s);const a=Ti(t,{...e,anchor:s});return Pt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ce&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ss(),zn(),ci(n),Pt(!1),Ei(t,e)}finally{Pt(r),J(i)}}var Qe=new Map;function Ti(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:l}){zn();var f=void 0,u=Zs(()=>{var c=n??e.appendChild(U());wo(c,{pending:()=>{}},h=>{Vr({});var m=R;if(s&&(m.c=s),i&&(r.$$events=i),E&&fe(h,null),f=t(h,r)||Fr(),E&&(q.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw mn(),ce;Hr()},l);var v=new Set,d=h=>{for(var m=0;m<h.length;m++){var x=h[m];if(!v.has(x)){v.add(x);var p=go(x);for(const j of[e,document]){var g=Qe.get(j);g===void 0&&(g=new Map,Qe.set(j,g));var O=g.get(x);O===void 0?(j.addEventListener(x,Rn,{passive:p}),g.set(x,1)):g.set(x,O+1)}}}};return d(gn(ao)),Mr.add(d),()=>{for(var h of v)for(const p of[e,document]){var m=Qe.get(p),x=m.get(h);--x==0?(p.removeEventListener(h,Rn),m.delete(h),m.size===0&&Qe.delete(p)):m.set(h,x)}Mr.delete(d),c!==n&&c.parentNode?.removeChild(c)}});return Vn.set(f,u),f}var Vn=new WeakMap;function xo(t,e){const n=Vn.get(t);return n?(Vn.delete(t),n(e)):Promise.resolve()}var Et=new WeakMap,Lt=new WeakMap,it=new WeakMap,$e=new WeakMap,Mn=new WeakMap,Wn=new WeakMap,Tr=new WeakMap,So=class{constructor(t,e=!0){T(this,"anchor",void 0),b(this,Et,new Map),b(this,Lt,new Map),b(this,it,new Map),b(this,$e,new Set),b(this,Mn,!0),b(this,Wn,n=>{if(o(Et,this).has(n)){var r=o(Et,this).get(n),i=o(Lt,this).get(r);if(i)vn(i),o($e,this).delete(r);else{var s=o(it,this).get(r);s&&(vn(s.effect),o(Lt,this).set(r,s.effect),o(it,this).delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[a,l]of o(Et,this)){if(o(Et,this).delete(a),a===n)break;const f=o(it,this).get(l);f&&(V(f.effect),o(it,this).delete(l))}for(const[a,l]of o(Lt,this)){if(a===r||o($e,this).has(a))continue;const f=()=>{if(Array.from(o(Et,this).values()).includes(a)){var u=document.createDocumentFragment();sr(l,u),u.append(U()),o(it,this).set(a,{effect:l,fragment:u})}else V(l);o($e,this).delete(a),o(Lt,this).delete(a)};o(Mn,this)||!i?(o($e,this).add(a),ie(l,f,!1)):f()}}}),b(this,Tr,n=>{o(Et,this).delete(n);const r=Array.from(o(Et,this).values());for(const[i,s]of o(it,this))r.includes(i)||(V(s.effect),o(it,this).delete(i))}),this.anchor=t,y(Mn,this,e)}ensure(t,e){var n=$,r=hi();if(e&&!o(Lt,this).has(t)&&!o(it,this).has(t))if(r){var i=document.createDocumentFragment(),s=U();i.append(s),o(it,this).set(t,{effect:et(()=>e(s)),fragment:i})}else o(Lt,this).set(t,et(()=>e(this.anchor)));if(o(Et,this).set(n,t),r){for(const[a,l]of o(Lt,this))a===t?n.unskip_effect(l):n.skip_effect(l);for(const[a,l]of o(it,this))a===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(o(Wn,this)),n.ondiscard(o(Tr,this))}else E&&(this.anchor=W),o(Wn,this).call(this,n)}};function ke(t,e,n=!1){var r;E&&(r=W,yn());var i=new So(t),s=n?Gn:0;function a(l,f){if(E){var u=Ir(r);if(l!==parseInt(u.substring(1))){var c=sn();J(c),i.anchor=c,Pt(!1),i.ensure(l,f),Pt(!0);return}}i.ensure(l,f)}rr(()=>{var l=!1;e((f,u=0)=>{l=!0,a(u,f)}),l||a(-1,null)},s)}function Mo(t,e){return e}function Wo(t,e,n){for(var r=[],i=e.length,s,a=e.length,l=0;l<i;l++){let v=e[l];ie(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var d=t.outrogroups;Hn(t,gn(s.done)),d.delete(s),d.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var f=r.length===0&&n!==null&&t.pending.size===0;if(f){var u=n,c=u.parentNode;ci(c),c.append(u),t.items.clear()}Hn(t,e,!f)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function Hn(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const a of t.pending.values())for(const l of a)r.add(t.items.get(l).e)}for(var i=0;i<e.length;i++){var s=e[i];r?.has(s)?(s.f|=We,sr(s,document.createDocumentFragment())):V(e[i],n)}}var Xe;function Pr(t,e,n,r,i,s=null){var a=t,l=new Map;if((e&4)!==0){var f=t;a=E?J(Dt(f)):f.appendChild(U())}E&&yn();var u=null,c=Xn(()=>{var g=n();return Nr(g)?g:g==null?[]:gn(g)}),v,d=new Map,h=!0;function m(g){!(p.effect.f&16384)&&(p.pending.delete(g),p.fallback=u,Eo(p,v,a,e,r),u!==null&&(v.length===0?(u.f&33554432)===0?vn(u):(u.f^=We,Me(u,null,a)):ie(u,()=>{u=null})))}function x(g){p.pending.delete(g)}var p={effect:rr(()=>{v=_(c);var g=v.length;let O=!1;E&&Ir(a)==="[!"!=(g===0)&&(a=sn(),J(a),Pt(!1),O=!0);for(var j=new Set,M=$,w=hi(),A=0;A<g;A+=1){E&&W.nodeType===8&&W.data==="]"&&(a=W,O=!0,Pt(!1));var I=v[A],rt=r(I,A),B=h?null:l.get(rt);B?(B.v&&de(B.v,I),B.i&&de(B.i,A),w&&M.unskip_effect(B.e)):(B=To(l,h?a:Xe??(Xe=U()),I,rt,A,i,e,n),h||(B.e.f|=We),l.set(rt,B)),j.add(rt)}if(g===0&&s&&!u&&(h?u=et(()=>s(a)):(u=et(()=>s(Xe??(Xe=U()))),u.f|=We)),g>j.size&&bs("","",""),E&&g>0&&J(sn()),!h)if(d.set(M,j),w){for(const[vt,De]of l)j.has(vt)||M.skip_effect(De.e);M.oncommit(m),M.ondiscard(x)}else m(M);O&&Pt(!0),_(c)}),flags:e,items:l,pending:d,outrogroups:null,fallback:u};h=!1,E&&(a=W)}function qe(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function Eo(t,e,n,r,i){var s=(r&8)!==0,a=e.length,l=t.items,f=qe(t.effect.first),u,c=null,v,d=[],h=[],m,x,p,g;if(s)for(g=0;g<a;g+=1)m=e[g],x=i(m,g),p=l.get(x).e,!(p.f&33554432)&&(p.nodes?.a?.measure(),(v??(v=new Set)).add(p));for(g=0;g<a;g+=1){if(m=e[g],x=i(m,g),p=l.get(x).e,t.outrogroups!==null)for(const vt of t.outrogroups)vt.pending.delete(p),vt.done.delete(p);if(p.f&8192&&(vn(p),s&&(p.nodes?.a?.unfix(),(v??(v=new Set)).delete(p))),(p.f&33554432)!==0)if(p.f^=We,p===f)Me(p,null,n);else{var O=c?c.next:f;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),zt(t,c,p),zt(t,p,O),Me(p,O,n),c=p,d=[],h=[],f=qe(c.next);continue}if(p!==f){if(u!==void 0&&u.has(p)){if(d.length<h.length){var j=h[0],M;c=j.prev;var w=d[0],A=d[d.length-1];for(M=0;M<d.length;M+=1)Me(d[M],j,n);for(M=0;M<h.length;M+=1)u.delete(h[M]);zt(t,w.prev,A.next),zt(t,c,w),zt(t,A,j),f=j,c=A,g-=1,d=[],h=[]}else u.delete(p),Me(p,f,n),zt(t,p.prev,p.next),zt(t,p,c===null?t.effect.first:c.next),zt(t,c,p),c=p;continue}for(d=[],h=[];f!==null&&f!==p;)(u??(u=new Set)).add(f),h.push(f),f=qe(f.next);if(f===null)continue}!(p.f&33554432)&&d.push(p),c=p,f=qe(p.next)}if(t.outrogroups!==null){for(const vt of t.outrogroups)vt.pending.size===0&&(Hn(t,gn(vt.done)),t.outrogroups?.delete(vt));t.outrogroups.size===0&&(t.outrogroups=null)}if(f!==null||u!==void 0){var I=[];if(u!==void 0)for(p of u)!(p.f&8192)&&I.push(p);for(;f!==null;)!(f.f&8192)&&f!==t.fallback&&I.push(f),f=qe(f.next);var rt=I.length;if(rt>0){var B=(r&4)!==0&&a===0?n:null;if(s){for(g=0;g<rt;g+=1)I[g].nodes?.a?.measure();for(g=0;g<rt;g+=1)I[g].nodes?.a?.fix()}Wo(t,I,B)}}s&&kt(()=>{if(v!==void 0)for(p of v)p.nodes?.a?.apply()})}function To(t,e,n,r,i,s,a,l){var f=(a&1)!==0?(a&16)===0?oi(n,!1,!1):ee(n):null,u=(a&2)!==0?ee(i):null;return{v:f,i:u,e:et(()=>(s(e,f??n,u??i,l),()=>{t.delete(r)}))}}function Me(t,e,n){if(t.nodes)for(var r=t.nodes.start,i=t.nodes.end,s=e&&(e.f&33554432)===0?e.nodes.start:n;r!==null;){var a=xt(r);if(s.before(r),r===i)return;r=a}}function zt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Po(t,e){Us(()=>{t=q?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=Un("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}var Oo=Symbol("is custom element"),jo=Symbol("is html"),Ao=ps?"link":"LINK";function No(t){if(E){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;Fn(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;Fn(t,"checked",null),t.checked=i}}};t[Ee]=n,kt(n),Gr()}}function Fn(t,e,n,r){var i=Co(t);E&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Ao)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[hs]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Lo(t).has(e)?t[e]=n:t.setAttribute(e,n))}function Co(t){return t[jn]??(t[jn]={[Oo]:t.nodeName.includes("-"),[jo]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Or=new Map;function Lo(t){var e=t.getAttribute("is")||t.nodeName,n=Or.get(e);if(n)return n;Or.set(e,n=new Set);for(var r,i=t,s=Element.prototype;s!==i;){r=ns(i);for(var a in r)r[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.add(a);i=Cr(i)}return n}function zo(t,e,n=e){var r=new WeakSet;As(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=En(t)?Tn(s):s,n(s),$!==null&&r.add($),await oo(),s!==(s=e())){var a=t.selectionStart,l=t.selectionEnd,f=t.value.length;if(t.value=s??"",l!==null){var u=t.value.length;a===l&&l===f&&u>f?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=a,t.selectionEnd=Math.min(l,u))}}}),(E&&t.defaultValue!==t.value||Le(e)==null&&t.value)&&(n(En(t)?Tn(t.value):t.value),$!==null&&r.add($)),nr(()=>{var i=e();if(t===document.activeElement){var s=me?an:$;if(r.has(s))return}En(t)&&i===Tn(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function En(t){var e=t.type;return e==="number"||e==="range"}function Tn(t){return t===""?null:+t}var Pi,le=new WeakMap,pn=new WeakMap,Pn=new WeakMap,jr=new WeakSet,Oi=class{constructor(t){Zn(this,jr),b(this,le,new WeakMap),b(this,pn,void 0),b(this,Pn,void 0),y(Pn,this,t)}observe(t,e){var n=o(le,this).get(t)||new Set;return n.add(e),o(le,this).set(t,n),k(jr,this,Ro).call(this).observe(t,o(Pn,this)),()=>{var r=o(le,this).get(t);r.delete(e),r.size===0&&(o(le,this).delete(t),o(pn,this).unobserve(t))}}};Pi=Oi;function Ro(){return o(pn,this)??y(pn,this,new ResizeObserver(t=>{for(var e of t){Pi.entries.set(e.target,e);for(var n of o(le,this).get(e.target)||[])n(e)}}))}T(Oi,"entries",new WeakMap);var Ye=!1;function Io(t){var e=Ye;try{return Ye=!1,[t(),Ye]}finally{Ye=e}}function Tt(t,e,n,r){var i=!wn||(n&2)!==0,s=(n&8)!==0,a=(n&16)!==0,l=r,f=!0,u=void 0,c=()=>a&&i?(u??(u=Ae(r)),_(u)):(f&&(f=!1,l=a?Le(r):r),l);let v;if(s){var d=Ze in t||Rr in t;v=Yt(t,e)?.set??(d&&e in t?M=>t[e]=M:void 0)}var h,m=!1;s?[h,m]=Io(()=>t[e]):h=t[e],h===void 0&&r!==void 0&&(h=c(),v&&(i&&Ms(e),v(h)));var x;if(i?x=()=>{var M=t[e];return M===void 0?c():(f=!0,M)}:x=()=>{var M=t[e];return M!==void 0&&(l=void 0),M===void 0?l:M},i&&(n&4)===0)return x;if(v){var p=t.$$legacy;return(function(M,w){return arguments.length>0?((!i||!w||p||m)&&v(w?x():M),M):x()})}var g=!1,O=((n&1)!==0?Ae:Xn)(()=>(g=!1,x()));s&&_(O);var j=q;return(function(M,w){if(arguments.length>0){const A=w?_(O):i&&s?Qt(M):M;return Z(O,A),g=!0,l!==void 0&&(l=A),M}return jt&&g||(j.f&16384)!==0?O.v:_(O)})}function Bo(t){return new Do(t)}var Ft=new WeakMap,pt=new WeakMap,Do=class{constructor(t){b(this,Ft,void 0),b(this,pt,void 0);var e=new Map,n=(i,s)=>{var a=oi(s,!1,!1);return e.set(i,a),a};const r=new Proxy({...t.props||{},$$events:{}},{get(i,s){return _(e.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Rr?!0:(_(e.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return Z(e.get(s)??n(s,a),a),Reflect.set(i,s,a)}});y(pt,this,(t.hydrate?qo:Ei)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&st(),y(Ft,this,r.$$events);for(const i of Object.keys(o(pt,this)))i==="$set"||i==="$destroy"||i==="$on"||Oe(this,i,{get(){return o(pt,this)[i]},set(s){o(pt,this)[i]=s},enumerable:!0});o(pt,this).$set=i=>{Object.assign(r,i)},o(pt,this).$destroy=()=>{xo(o(pt,this))}}$set(t){o(pt,this).$set(t)}$on(t,e){o(Ft,this)[t]=o(Ft,this)[t]||[];const n=(...r)=>e.call(this,...r);return o(Ft,this)[t].push(n),()=>{o(Ft,this)[t]=o(Ft,this)[t].filter(r=>r!==n)}}$destroy(){o(pt,this).$destroy()}},ji;typeof HTMLElement=="function"&&(ji=class extends HTMLElement{constructor(t,e,n){super(),T(this,"$$ctor",void 0),T(this,"$$s",void 0),T(this,"$$c",void 0),T(this,"$$cn",!1),T(this,"$$d",{}),T(this,"$$r",!1),T(this,"$$p_d",{}),T(this,"$$l",{}),T(this,"$$l_u",new Map),T(this,"$$me",void 0),T(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=Un("slot");r!=="default"&&(s.name=r),H(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Vo(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=en(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Bo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Ys(()=>{nr(()=>{this.$$r=!0;for(const r of nn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=en(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=en(t,n,this.$$p_d,"toProp"),this.$$c?.$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 nn(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function en(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Vo(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Ho(t,e,n,r,i,s){let a=class extends ji{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return nn(e).map(l=>(e[l].attribute||l).toLowerCase())}};return nn(e).forEach(l=>{Oe(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=en(l,f,e),this.$$d[l]=f;var u=this.$$c;u&&(Yt(u,l)?.get?u[l]=f:u.$set({[l]:f}))}})}),r.forEach(l=>{Oe(a.prototype,l,{get(){return this.$$c?.[l]}})}),s&&(a=s(a)),t.element=a,a}var Ai="dictionary";function Fo(t){if(!t||typeof t!="object")return null;const e=t,n=typeof e.word=="string"?e.word.trim():"";if(!n)return null;const r=Array.isArray(e.senses)?e.senses:[],i=[];for(const s of r){if(!s||typeof s!="object")continue;const a=s,l=typeof a.definition=="string"?a.definition.trim():"";l&&i.push({definition:l,partOfSpeech:typeof a.partOfSpeech=="string"?a.partOfSpeech:void 0,example:typeof a.example=="string"?a.example:void 0})}return i.length===0?null:{word:n,pronunciation:typeof e.pronunciation=="string"?e.pronunciation:void 0,senses:i}}function Jo(t){return Yi(t,{serviceLabel:Ai,keys:["entries"],toItem:Fo})}function Ko(t){return Zi({...t,serviceLabel:Ai,readResponse:Jo})}var Go=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">No dictionary service is configured for this assessment.</p>'),Qo=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">Type a word to look it up.</p>'),Ar=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt"> </p>'),Xo=ht('<p class="pie-tool-dictionary__error svelte-1qfqsgt" role="alert"> </p>'),Yo=ht('<span class="pie-tool-dictionary__pronunciation svelte-1qfqsgt"> </span>'),Zo=ht('<span class="pie-tool-dictionary__pos svelte-1qfqsgt"> </span>'),Uo=ht('<span class="pie-tool-dictionary__example svelte-1qfqsgt"> </span>'),ta=ht('<li class="pie-tool-dictionary__sense svelte-1qfqsgt"><!> <span class="pie-tool-dictionary__definition"> </span> <!></li>'),ea=ht('<li class="pie-tool-dictionary__entry svelte-1qfqsgt"><p class="pie-tool-dictionary__word svelte-1qfqsgt"> <!></p> <ol class="pie-tool-dictionary__senses svelte-1qfqsgt"></ol></li>'),na=ht('<ul class="pie-tool-dictionary__entries svelte-1qfqsgt"></ul>'),ra=ht('<div class="pie-tool-dictionary svelte-1qfqsgt" role="dialog" aria-label="Dictionary"><form class="pie-tool-dictionary__search svelte-1qfqsgt"><label class="pie-tool-dictionary__label svelte-1qfqsgt" for="pie-tool-dictionary-term">Word or phrase</label> <div class="pie-tool-dictionary__row svelte-1qfqsgt"><input id="pie-tool-dictionary-term" class="pie-tool-dictionary__input svelte-1qfqsgt" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-dictionary__submit svelte-1qfqsgt" type="submit">Look up</button></div></form> <div class="pie-tool-dictionary__status svelte-1qfqsgt" role="status" aria-live="polite"> </div> <div class="pie-tool-dictionary__body svelte-1qfqsgt"><!></div></div>'),ia={hash:"svelte-1qfqsgt",code:`.pie-tool-dictionary.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-dictionary__search.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-dictionary__label.svelte-1qfqsgt {font-size:0.8rem;font-weight:600;}.pie-tool-dictionary__row.svelte-1qfqsgt {display:flex;gap:0.5rem;}.pie-tool-dictionary__input.svelte-1qfqsgt {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-dictionary__submit.svelte-1qfqsgt {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-dictionary__submit.svelte-1qfqsgt:disabled {opacity:0.5;cursor:not-allowed;}
|
|
1
|
+
import{t as Xi}from"./attribute-coercion-b93b482c.js";import{a as Ui,i as Zi,n as Gi,r as ts,t as es}from"./term-lookup-632cf6b1.js";if(typeof window<"u"){var dr,pr;((dr=(pr=window).__svelte??(pr.__svelte={})).v??(dr.v=new Set)).add("5")}var Dt={},z=Symbol("uninitialized"),Or=Array.isArray,ns=Array.prototype.indexOf,rn=Array.prototype.includes,mn=Array.from,sn=Object.keys,Ne=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyDescriptors,is=Object.prototype,ss=Array.prototype,Rr=Object.getPrototypeOf,gr=Object.isExtensible,os=()=>{};function ls(t){for(var e=0;e<t.length;e++)t[e]()}function zr(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function Le(t){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(t)}function as(t,e){if(Le(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Le(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function us(t){var e=as(t,"string");return Le(e)=="symbol"?e:e+""}function P(t,e,n){return(e=us(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var et=1024,ct=2048,se=4096,Kn=8192,Cr=16384,Yn=32768,An=1<<25,Qn=65536,ye=1<<19,fs=1<<20,Te=1<<25,mr=1<<21,cs=1<<22,on=1<<23,tn=Symbol("$state"),Ir=Symbol("component"),Br=Symbol("legacy props"),hs=Symbol(""),Nn=Symbol("attributes"),vs=Symbol("class"),ds=Symbol("style"),en=Symbol("text"),Pe=Symbol("form reset"),Be=new class extends Error{constructor(...t){super(...t),P(this,"name","StaleReactionError"),P(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ps=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function gs(){console.warn("https://svelte.dev/e/derived_inert")}function yn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ms(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var E=!1;function Pt(t){E=t}var W;function K(t){if(t===null)throw yn(),Dt;return W=t}function wn(){return K(xt(W))}function gt(t){if(E){if(xt(W)!==null)throw yn(),Dt;W=t}}function ys(t=1){if(E){for(var e=t,n=W;e--;)n=xt(n);W=n}}function ln(t=!0){for(var e=0,n=W;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=xt(n);t&&n.remove(),n=i}}function Xn(t){if(!t||t.nodeType!==8)throw yn(),Dt;return t.data}function Dr(t){return t===this.v}function ws(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Vr(t){return!ws(t,this.v)}function _s(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function $s(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ks(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function xs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ss(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ms(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var we=!1,_n=!1,C=null;function de(t){C=t}function Hr(t,e=!1,n){C={p:C,i:!1,c:null,e:null,s:t,x:null,r:x,l:_n&&!e?{s:null,u:null,$:[]}:null}}function Fr(t){var e=C,n=e.e;if(n!==null){e.e=null;for(var r of n)pi(r)}return t!==void 0&&(e.x=t),e.i=!0,C=e.p,Jr(t)}function Jr(t={}){return Ne(t,Ir,{value:!0}),t}function De(){return!_n||C!==null&&C.l===null}var Qt=[];function Kr(){var t=Qt;Qt=[],ls(t)}function kt(t){if(Qt.length===0&&!je){var e=Qt;queueMicrotask(()=>{e===Qt&&Kr()})}Qt.push(t)}function js(){for(;Qt.length>0;)Kr()}var As=~(ct|se|et);function O(t,e){t.f=t.f&As|e}function Un(t){(t.f&512)!==0||t.deps===null?O(t,et):O(t,se)}function Yr(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),O(t,et)}var yr=!1;function Qr(){yr||(yr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Pe]?.()})},{capture:!0}))}function _e(t){var e=S,n=x;rt(null),qt(null);try{return t()}finally{rt(e),qt(n)}}function Ns(t,e,n,r=n){t.addEventListener(e,()=>_e(n));const i=t[Pe];i?t[Pe]=()=>{i(),r(!0)}:t[Pe]=()=>r(!0),Qr()}function Ls(t,e,n,r){const i=De()?Oe:Zn;var s=t.filter(p=>!p.settled),l=e.map(i);if(n.length===0&&s.length===0){r(l);return}var a=x,f=Os(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function c(p){if((a.f&16384)===0){f();try{r([...l,...p])}catch(m){$t(m,a)}an()}}var v=Xr();if(n.length===0){u.then(()=>c([])).finally(v);return}function h(){Promise.all(n.map(p=>Rs(p))).then(c).catch(p=>$t(p,a)).finally(v)}u?u.then(()=>{if((a.f&16384)!==0){v();return}f(),h(),an()}):h()}function Os(){var t=x,e=S,n=C,r=q;return function(i=!0){qt(t),rt(e),de(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function an(t=!0){qt(null),rt(null),de(null),t&&q?.deactivate()}function Xr(){var t=x,e=t.b,n=q,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function Oe(t){var e=2|ct;return x!==null&&(x.f|=ye),{ctx:C,deps:null,effects:null,equals:Dr,f:e,fn:t,reactions:null,rv:0,v:z,wv:0,parent:x,ac:null}}var Me=Symbol("obsolete");function Rs(t,e,n){let r=x;r===null&&_s();var i=void 0,s=ie(z),l=!S,a=new Set;return to(()=>{var f=x,u=zr();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==Be&&u.reject(p)}).finally(an)}catch(p){u.reject(p),an()}var c=q;if(l){if((f.f&32768)!==0)var v=Xr();if(r.b?.is_rendered())c.async_deriveds.get(f)?.reject(Me);else for(const p of a.values())p.reject(Me);a.add(u),c.async_deriveds.set(f,u)}const h=(p,m=void 0)=>{v?.(),a.delete(u),m!==Me&&(c.activate(),m?(s.f|=on,ge(s,m)):(s.f&8388608&&(s.f^=on),ge(s,p)),c.deactivate())};u.promise.then(h,p=>h(null,p||"unknown"))}),di(()=>{for(const f of a)f.reject(Me)}),new Promise(f=>{function u(c){function v(){c===i?f(s):u(i)}c.then(v,v)}u(i)})}function wr(t){const e=Oe(t);return _i(e),e}function Zn(t){const e=Oe(t);return e.equals=Vr,e}function zs(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)V(e[n])}}function Gn(t){var e,n=x,r=t.parent;if(!At&&r!==null&&t.v!==z&&(r.f&24576)!==0)return gs(),t.v;qt(r);try{zs(t),e=qi(t)}finally{qt(n)}return e}function Ur(t){var e=Gn(t);if(!t.equals(e)&&(t.wv=$i(),(!q?.is_fork||t.deps===null)&&(q!==null?(q.capture(t,e,!0),Gt?.capture(t,e,!0)):t.v=e,t.deps===null))){O(t,et);return}At||(D!==null?(rr()||q?.is_fork)&&D.set(t,e):Un(t))}function Cs(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&_e(()=>{e.ac.abort(Be),e.ac=null}),e.fn!==null&&(e.teardown=os),ze(e,0),or(e))}function Zr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&me(e)}function Gr(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function tr(t,e){Gr(t,e),e.add(t)}function $(t,e,n){Gr(t,e),e.set(t,n)}function y(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function g(t,e,n){return t.set(y(t,e),n),n}function o(t,e){return t.get(y(t,e))}var ti,Ln=null,ae=null,q=null,Gt=null,D=null,On=null,je=!1,qn=!1,Re=null,un=null,ei=0,Is=1,Rn=new WeakMap,te=new WeakMap,he=new WeakMap,fn=new WeakMap,Je=new WeakMap,ue=new WeakMap,Kt=new WeakMap,We=new WeakMap,wt=new WeakMap,_r=new WeakMap,pe=new WeakMap,jt=new WeakMap,It=new WeakMap,xn=new WeakMap,Ke=new WeakMap,R=new WeakSet,oe=class ni{constructor(){tr(this,R),P(this,"id",Is++),$(this,Rn,!1),P(this,"linked",!0),$(this,te,null),$(this,he,null),P(this,"async_deriveds",new Map),P(this,"current",new Map),P(this,"previous",new Map),$(this,fn,new Set),$(this,Je,new Set),$(this,ue,0),$(this,Kt,new Map),$(this,We,null),$(this,wt,[]),$(this,_r,[]),$(this,pe,new Set),$(this,jt,new Set),$(this,It,new Map),$(this,xn,new Set),P(this,"is_fork",!1),$(this,Ke,!1),ae===null?Ln=ae=this:(g(he,ae,this),g(te,this,ae)),ae=this}skip_effect(e){o(It,this).has(e)||o(It,this).set(e,{d:[],m:[]}),o(xn,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=o(It,this).get(e);if(r){o(It,this).delete(e);for(var i of r.d)O(i,ct),n(i);for(i of r.m)O(i,se),n(i)}o(xn,this).add(e)}capture(e,n,r=!1){e.v!==z&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),D?.set(e,n)),this.is_fork||(e.v=n)}activate(){q=this}deactivate(){q=null,D=null}flush(){try{qn=!0,q=this,y(R,this,cn).call(this)}finally{ei=0,On=null,Re=null,un=null,qn=!1,q=null,D=null,bt.clear()}}discard(){for(const e of o(Je,this))e(this);o(Je,this).clear();for(const e of this.async_deriveds.values())e.reject(Me);y(R,this,hn).call(this),o(We,this)?.resolve()}register_created_effect(e){o(_r,this).push(e)}increment(e,n){if(g(ue,this,o(ue,this)+1),e){let r=o(Kt,this).get(n)??0;o(Kt,this).set(n,r+1)}}decrement(e,n){if(g(ue,this,o(ue,this)-1),e){let r=o(Kt,this).get(n)??0;r===1?o(Kt,this).delete(n):o(Kt,this).set(n,r-1)}o(Ke,this)||(g(Ke,this,!0),kt(()=>{g(Ke,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)o(pe,this).add(r);for(const r of n)o(jt,this).add(r);e.clear(),n.clear()}oncommit(e){o(fn,this).add(e)}ondiscard(e){o(Je,this).add(e)}settled(){return(o(We,this)??g(We,this,zr())).promise}static ensure(){if(q===null){const e=q=new ni;!qn&&!je&&kt(()=>{o(Rn,e)||e.flush()})}return q}apply(){if(!we||!this.is_fork&&o(te,this)===null&&o(he,this)===null){D=null;return}D=new Map;for(const[n,[r]]of this.current)D.set(n,r);for(let n=Ln;n!==null;n=o(he,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)D.has(r)||D.set(r,i)}}schedule(e){if(On=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}o(wt,this).push(e)}};ti=oe;function br(){if(this.is_fork)return!0;for(const n of o(Kt,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(o(It,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Bs(){var t=[];for(const i of o(wt,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=et}}n||t.push(e)}return g(wt,this,[]),t}function cn(){g(Rn,this,!0);for(const l of o(pe,this))o(jt,this).delete(l),O(l,ct),this.schedule(l);for(const l of o(jt,this))O(l,se),this.schedule(l);this.apply();for(var t=Re=[],e=[],n=un=[];o(wt,this).length>0;){ei++>1e3&&(y(R,this,hn).call(this),Fs());for(const l of y(R,this,Bs).call(this))try{y(R,this,Ds).call(this,l,t,e)}catch(a){throw si(l),y(R,this,br).call(this)||this.discard(),a}}if(q=null,n.length>0){var r=ti.ensure();for(const l of n)r.schedule(l)}if(Re=null,un=null,y(R,this,br).call(this)){y(R,this,Ye).call(this,e),y(R,this,Ye).call(this,t);for(const[l,a]of o(It,this))ii(l,a);n.length>0&&y(R,q,cn).call(q);return}const i=y(R,this,Vs).call(this);if(i){y(R,this,Ye).call(this,e),y(R,this,Ye).call(this,t),y(R,i,Hs).call(i,this);return}o(pe,this).clear(),o(jt,this).clear();for(const l of o(fn,this))l(this);o(fn,this).clear(),Gt=this,$r(e),$r(t),Gt=null,o(We,this)?.resolve();var s=q;if(o(ue,this)===0&&(o(wt,this).length===0||s!==null)&&y(R,this,hn).call(this),o(wt,this).length>0)if(s!==null){for(const l of o(wt,this))o(wt,s).push(l);g(wt,this,[])}else s=this;s!==null&&(bt.clear(),y(R,s,cn).call(s))}function Ds(t,e,n){t.f^=et;for(var r=t.first;r!==null;){var i=r.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||o(It,this).has(r))&&r.fn!==null){s?r.f^=et:(i&4)!==0?e.push(r):we&&(i&16777224)!==0?n.push(r):Ve(r)&&(i&16&&o(jt,this).add(r),me(r));var l=r.first;if(l!==null){r=l;continue}}for(;r!==null;){var a=r.next;if(a!==null){r=a;break}r=r.parent}}}function Vs(){for(var t=o(te,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=o(te,t)}return null}function Hs(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(o(pe,t),o(jt,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const l of r){var i=l.f;if((i&2)!==0)e(l);else{var s=l;i&4194320&&!this.async_deriveds.has(s)&&(o(jt,this).delete(s),O(s,ct),this.schedule(s))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),y(R,t,hn).call(t),q=this,y(R,this,cn).call(this)}function Ye(t){for(var e=0;e<t.length;e+=1)Yr(t[e],o(pe,this),o(jt,this))}function hn(){if(this.linked){var t=o(te,this),e=o(he,this);t===null?Ln=e:g(he,t,e),e===null?ae=t:g(te,e,t),this.linked=!1}}function U(t){var e=je,n=Gt;Gt=null,je=!0;try{var r;for(t&&(U(),r=t());;){if(js(),q===null)return r;q.flush()}}finally{je=e,Gt=n}}function Fs(){try{xs()}catch(t){$t(t,On)}}var yt=null;function $r(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&Ve(r)&&(yt=new Set,me(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mi(r),yt?.size>0)){bt.clear();for(const i of yt){if((i.f&24576)!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)yt.has(l)&&(yt.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const f=s[a];!(f.f&24576)&&me(f)}}yt.clear()}}yt=null}}function ri(t){q.schedule(t)}function ii(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),O(t,et);for(var n=t.first;n!==null;)ii(n,e),n=n.next}}function si(t){O(t,et);for(var e=t.first;e!==null;)si(e),e=e.next}var vn=new Set,bt=new Map,oi=!1;function ie(t,e){return{f:0,v:t,reactions:null,equals:Dr,rv:0,wv:0}}function mt(t,e){const n=ie(t,e);return _i(n),n}function li(t,e=!1,n=!0){const r=ie(t);if(e||(r.equals=Vr),_n&&n&&C!==null&&C.l!==null){var i;((i=C.l).s??(i.s=[])).push(r)}return r}function G(t,e,n=!1){return S!==null&&(!ot||S.f&131072)&&De()&&S.f&4325394&&(at===null||!at.has(t))&&Ts(),ge(t,n?Xt(e):e,un)}var Yt=null,zn=0;function ge(t,e,n=null){if(!t.equals(e)){At?bt.set(t,e):bt.has(t)||bt.set(t,t.v);var r=oe.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Gn(i),D===null&&Un(i)}t.wv=$i(),Yt=null,zn=0,ai(t,ct,n),Yt=null,De()&&x!==null&&x.f&1024&&!(x.f&96)&&(Z===null?io([t]):Z.push(t)),!r.is_fork&&vn.size>0&&!oi&&Js()}return e}function Js(){oi=!1;for(const t of vn){t.f&1024&&O(t,se);let e;try{e=Ve(t)}catch{e=!0}e&&me(t)}vn.clear()}function Ae(t){G(t,t.v+1)}function ai(t,e,n){var r=t.reactions;if(r!==null){var i=De(),s=r.length;if(zn+=s,zn>1e5&&Yt===null&&(Yt=new Set),Yt!==null){if(Yt.has(t))return;Yt.add(t)}for(var l=0;l<s;l++){var a=r[l],f=a.f;if(!(!i&&a===x)){var u=(f&ct)===0;if(u&&O(a,e),(f&131072)!==0)vn.add(a);else if((f&2)!==0){var c=a;D?.delete(c),ai(c,se,n)}else if(u){var v=a;f&16&&yt!==null&&yt.add(v),n!==null?n.push(v):ri(v)}}}}}function Xt(t){if(typeof t!="object"||t===null||tn in t||Ir in t)return t;const e=Rr(t);if(e!==is&&e!==ss)return t;var n=new Map,r=Or(t),i=mt(0),s=null,l=ee,a=f=>{if(ee===l)return f();var u=S,c=ee;rt(null),Sr(l);var v=f();return rt(u),Sr(c),v};return r&&n.set("length",mt(t.length,s)),new Proxy(t,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Ws();var v=n.get(u);return v===void 0?a(()=>{var h=mt(c.value,s);return n.set(u,h),h}):G(v,c.value,!0),!0},deleteProperty(f,u){var c=n.get(u);if(c===void 0){if(u in f){const v=a(()=>mt(z,s));n.set(u,v),Ae(i)}}else G(c,z),Ae(i);return!0},get(f,u,c){if(u===tn)return t;var v=n.get(u),h=u in f;if(v===void 0&&(!h||Zt(f,u)?.writable)&&(v=a(()=>mt(Xt(h?f[u]:z),s)),n.set(u,v)),v!==void 0){var p=b(v);return p===z?void 0:p}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),v=n.get(u);if(v!==void 0){var h=b(v);if(h===z)return;if(c&&"value"in c)c.value=h;else return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(f,u){if(u===tn)return!0;var c=n.get(u),v=c!==void 0&&c.v!==z||Reflect.has(f,u);return(c!==void 0||x!==null&&(!v||Zt(f,u)?.writable))&&(c===void 0&&(c=a(()=>mt(v?Xt(f[u]):z,s)),n.set(u,c)),b(c)===z)?!1:v},set(f,u,c,v){var h=n.get(u),p=u in f;if(r&&u==="length")for(var m=c;m<h.v;m+=1){var k=n.get(m+"");k!==void 0?G(k,z):m in f&&(k=a(()=>mt(z,s)),n.set(m+"",k))}if(h===void 0)(!p||Zt(f,u)?.writable)&&(h=a(()=>mt(void 0,s)),G(h,Xt(c)),n.set(u,h));else{p=h.v!==z;var d=a(()=>Xt(c));G(h,d)}var w=Reflect.getOwnPropertyDescriptor(f,u);if(w?.set&&w.set.call(v,c),!p){if(r&&typeof u=="string"){var A=n.get("length"),N=Number(u);Number.isInteger(N)&&N>=A.v&&G(A,N+1)}Ae(i)}return!0},ownKeys(f){b(i);var u=Reflect.ownKeys(f).filter(h=>{var p=n.get(h);return p===void 0||p.v!==z});for(var[c,v]of n)v.v!==z&&!(c in f)&&u.push(c);return u},setPrototypeOf(){Es()}})}var kr,ui,fi,ci;function Cn(){if(kr===void 0){kr=window,ui=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;fi=Zt(e,"firstChild").get,ci=Zt(e,"nextSibling").get,gr(t)&&(t[vs]=void 0,t[Nn]=null,t[ds]=void 0,t.__e=void 0),gr(n)&&(n[en]=void 0)}}function tt(t=""){return document.createTextNode(t)}function Vt(t){return fi.call(t)}function xt(t){return ci.call(t)}function Ct(t,e){if(!E)return Vt(t);var n=Vt(W);if(n===null)n=W.appendChild(tt());else if(e&&n.nodeType!==3){var r=tt();return n?.before(r),K(r),r}return e&&nr(n),K(n),n}function Ks(t,e=!1){if(!E){var n=Vt(t);return n instanceof Comment&&n.data===""?xt(n):n}if(e){if(W?.nodeType!==3){var r=tt();return W?.before(r),K(r),r}nr(W)}return W}function Lt(t,e=!1){if(!E)return Vt(t);var n=Ct(t,e);return gt(t),n}function Ot(t,e=1,n=!1){let r=E?W:t;for(var i;e--;)i=r,r=xt(r);if(!E)return r;if(n){if(r?.nodeType!==3){var s=tt();return r===null?i?.after(s):r.before(s),K(s),s}nr(r)}return K(r),r}function hi(t){t.textContent=""}function vi(){return!we||yt!==null?!1:(x.f&Yn)!==0}function er(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function nr(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Ys(t){var e=x;if(e===null)return S.f|=on,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;$t(t,e)}function $t(t,e){if(t===Dt)throw t;if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function Qs(t){x===null&&(S===null&&qs(t),ks()),At&&$s(t)}function Xs(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function St(t,e){var n=x;n!==null&&n.f&8192&&(t|=Kn);var r={ctx:C,deps:null,nodes:null,f:t|ct|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};q?.register_created_effect(r);var i=r;if((t&4)!==0)Re!==null?Re.push(r):oe.ensure().schedule(r);else if(e!==null){try{me(r)}catch(l){throw V(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Qn))}if(i!==null&&(i.parent=n,n!==null&&Xs(i,n),S!==null&&(S.f&2)!==0&&(t&64)===0)){var s=S;(s.effects??(s.effects=[])).push(i)}return r}function rr(){return S!==null&&!ot}function di(t){const e=St(8,null);return O(e,et),e.teardown=t,e}function qr(t){Qs("$effect");var e=x.f;if(!S&&(e&32)!==0&&C!==null&&!C.i){var n=C;(n.e??(n.e=[])).push(t)}else return pi(t)}function pi(t){return St(4|fs,t)}function Us(t){oe.ensure();const e=St(64|ye,t);return()=>{V(e)}}function Zs(t){oe.ensure();const e=St(64|ye,t);return(n={})=>new Promise(r=>{n.outro?le(e,()=>{V(e),r(void 0)}):(V(e),r(void 0))})}function Gs(t){return St(4,t)}function to(t){return St(cs|ye,t)}function ir(t,e=0){return St(8|e,t)}function Mt(t,e=[],n=[],r=[]){Ls(r,e,n,i=>{St(8,()=>{t(...i.map(b))})})}function sr(t,e=0){return St(16|e,t)}function nt(t){return St(32|ye,t)}function gi(t){var e=t.teardown;if(e!==null){const n=At,r=S;xr(!0),rt(null);try{e.call(null)}catch(i){$t(i,t.parent)}finally{xr(n),rt(r)}}}function or(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&_e(()=>{i.abort(Be)});var r=n.next;(n.f&64)!==0?n.parent=null:V(n,e),n=r}}function eo(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&V(e),e=n}}function V(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(no(t.nodes.start,t.nodes.end),n=!0),t.f|=An,or(t,e&&!n),ze(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const s of r)s.stop();gi(t),t.f^=An,t.f|=Cr;var i=t.parent;i!==null&&i.first!==null&&mi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function no(t,e){for(;t!==null;){var n=t===e?null:xt(t);t.remove(),t=n}}function mi(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function le(t,e,n=!0){var r=[];t.f|=256,yi(t,r,!0);var i=()=>{n&&V(t),e&&e()},s=r.length;if(s>0){var l=()=>--s||i();for(var a of r)a.out(l)}else i()}function yi(t,e,n){if((t.f&8192)===0){t.f^=Kn;var r=t.nodes&&t.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&e.push(a);for(var i=t.first;i!==null;){var s=i.next;if((i.f&64)===0){var l=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;yi(i,e,l?n:!1)}i=s}}}function dn(t){t.f&=-257,wi(t,!0)}function wi(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Kn,!(t.f&1024)&&(O(t,ct),oe.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;wi(n,i?e:!1),n=r}var s=t.nodes&&t.nodes.t;if(s!==null)for(const l of s)(l.is_global||e)&&l.in()}}function lr(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:xt(n);e.append(n),n=i}}var ro=null,At=!1;function xr(t){At=t}var S=null,ot=!1;function rt(t){S=t}var x=null;function qt(t){x=t}var at=null;function _i(t){S!==null&&(S.f&2097152||S.f&2)&&(at??(at=new Set)).add(t)}var F=null,Y=0,Z=null;function io(t){Z=t}var bi=1,Ut=0,ee=Ut;function Sr(t){ee=t}function $i(){return++bi}function Ve(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Ve(s)&&Ur(s),s.wv>t.wv)return!0}e&512&&D===null&&O(t,et)}return!1}function ki(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!we&&at!==null&&at.has(t)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&2)!==0?ki(s,e,!1):e===s&&(n?O(s,ct):s.f&1024&&O(s,se),ri(s))}}function qi(t){var e=F,n=Y,r=Z,i=S,s=at,l=C,a=ot,f=ee,u=t.f;F=null,Y=0,Z=null,S=(u&96)===0?t:null,at=null,de(t.ctx),ot=!1,ee=++Ut,t.ac!==null&&(_e(()=>{t.ac.abort(Be)}),t.ac=null);try{t.f|=mr;var c=t.fn,v=c();t.f|=Yn;var h=Mr(t);if(De()&&Z!==null&&!ot&&h!==null&&(t.f&6146)===0)for(var p=0;p<Z.length;p++)ki(Z[p],t);if(i!==null&&i!==t){if(Ut++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=Ut;if(e!==null)for(const m of e)m.rv=Ut;Z!==null&&(r===null?r=Z:r.push(...Z))}return t.f&8388608&&(t.f^=on),v}catch(m){return Mr(t),Ys(m)}finally{t.f^=mr,F=e,Y=n,Z=r,S=i,at=s,de(l),ot=a,ee=f}}function Mr(t){var e=t.deps,n=q?.is_fork;if(F!==null){var r;if(n||ze(t,Y),e!==null&&Y>0)for(e.length=Y+F.length,r=0;r<F.length;r++)e[Y+r]=F[r];else t.deps=e=F;if(rr()&&(t.f&512)!==0)for(r=Y;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&Y<e.length&&(ze(t,Y),e.length=Y);return e}function so(t,e){let n=e.reactions;if(n!==null){var r=ns.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(F===null||!rn.call(F,e))){var s=e;s.f&512&&(s.f^=512),s.v!==z&&Un(s),s.ac!==null&&_e(()=>{s.ac.abort(Be),s.ac=null,O(s,ct)}),Cs(s),ze(s,0)}}function ze(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)so(t,n[r])}function me(t){var e=t.f;if((e&16384)===0){O(t,et);var n=x;x=t;try{(e&16777232)!==0?eo(t):or(t),gi(t);var r=qi(t);t.teardown=typeof r=="function"?r:null,t.wv=bi}finally{x=n}}}async function oo(){if(we)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),U()}function b(t){var e=(t.f&2)!==0;if(ro?.add(t),S!==null&&!ot&&!(x!==null&&(x.f&16384)!==0)&&(at===null||!at.has(t))){var n=S.deps;if((S.f&2097152)!==0)t.rv<Ut&&(t.rv=Ut,F===null&&n!==null&&n[Y]===t?Y++:F===null?F=[t]:F.push(t));else{var r;(r=S).deps??(r.deps=[]),rn.call(S.deps,t)||S.deps.push(t);var i=t.reactions;i===null?t.reactions=[S]:rn.call(i,S)||i.push(S)}}if(At&&bt.has(t))return bt.get(t);if(e){var s=t;if(At){var l=s.v;return(!(s.f&1024)&&s.reactions!==null||Si(s))&&(l=Gn(s)),bt.set(s,l),l}var a=(s.f&512)===0&&!ot&&S!==null&&(S.f&512)!==0,f=(s.f&Yn)===0;Ve(s)&&(a&&(s.f|=512),Ur(s)),a&&!f&&(Zr(s),xi(s))}if(D?.has(t))return D.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function xi(t){if(t.f|=512,t.deps!==null)for(const n of t.deps){var e=n.reactions;e===null?n.reactions=[t]:rn.call(e,t)||e.push(t),n.f&2&&!(n.f&512)&&(Zr(n),xi(n))}}function Si(t){if(t.v===z)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(bt.has(e)||(e.f&2)!==0&&Si(e))return!0;return!1}function Ce(t){var e=ot;try{return ot=!0,t()}finally{ot=e}}var Qe=Symbol("events"),lo=new Set,Wr=new Set;function ao(t,e,n,r={}){function i(s){if(r.capture||In.call(e,s),!s.cancelBubble)return _e(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,kt(()=>{i.__removed||e.addEventListener(t,i,r)})):e.addEventListener(t,i,r),i}function uo(t,e,n,r,i){var s={capture:r,passive:i},l=ao(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&di(()=>{l.__removed=!0,e.removeEventListener(t,l,s)})}var Sn=null,Mn=!1;function In(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;Sn=t,Mn||(Mn=!0,setTimeout(()=>{Mn=!1,Sn=null}));var l=0,a=Sn===t&&t[Qe];if(a){var f=i.indexOf(a);if(f!==-1&&(e===document||e===window)){t[Qe]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(l=f)}if(s=i[l]||t.target,s!==e){Ne(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=S,v=x;rt(null),qt(null);try{for(var h,p=[];s!==null&&s!==e;){try{var m=s[Qe]?.[r];m!=null&&(!s.disabled||t.target===s)&&m.call(s,t)}catch(k){h?p.push(k):h=k}if(t.cancelBubble)break;l++,s=l<i.length?i[l]:null}if(h){for(let k of p)queueMicrotask(()=>{throw k});throw h}}finally{t[Qe]=e,delete t.currentTarget,rt(c),qt(v)}}}var fo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function co(t){return fo?.createHTML(t)??t}function ho(t){var e=er("template");return e.innerHTML=co(t.replaceAll("<!>","<!---->")),e.content}function ve(t,e){var n=x;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function ht(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(E)return ve(W,null),W;i===void 0&&(i=ho(s?t:"<!>"+t),n||(i=Vt(i)));var l=r||ui?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Vt(l),f=l.lastChild;ve(a,f)}else ve(l,l);return l}}function vo(){if(E)return ve(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),n=tt();return t.append(e,n),ve(e,n),t}function H(t,e){if(E){var n=x;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=W),wn();return}t!==null&&t.before(e)}var po=["touchstart","touchmove"];function go(t){return po.includes(t)}function mo(t){let e=0,n=ie(0),r;return()=>{rr()&&(b(n),ir(()=>(e===0&&(r=Ce(()=>t(()=>Ae(n)))),e+=1,()=>{kt(()=>{e-=1,e===0&&(r?.(),r=void 0,Ae(n))})})))}}var yo=Qn|ye;function wo(t,e,n,r){new _o(t,e,n,r)}var ut=new WeakMap,Bn=new WeakMap,_t=new WeakMap,Ie=new WeakMap,J=new WeakMap,ft=new WeakMap,Q=new WeakMap,lt=new WeakMap,Bt=new WeakMap,fe=new WeakMap,ne=new WeakMap,Xe=new WeakMap,Dn=new WeakMap,Vn=new WeakMap,Ft=new WeakMap,Er=new WeakMap,T=new WeakSet,_o=class{constructor(t,e,n,r){tr(this,T),P(this,"parent",void 0),P(this,"is_pending",!1),P(this,"transform_error",void 0),$(this,ut,void 0),$(this,Bn,E?W:null),$(this,_t,void 0),$(this,Ie,void 0),$(this,J,void 0),$(this,ft,null),$(this,Q,null),$(this,lt,null),$(this,Bt,null),$(this,fe,0),$(this,ne,0),$(this,Xe,!1),$(this,Dn,new Set),$(this,Vn,new Set),$(this,Ft,null),$(this,Er,mo(()=>(g(Ft,this,ie(o(fe,this))),()=>{g(Ft,this,null)}))),g(ut,this,t),g(_t,this,e),g(Ie,this,i=>{var s=x;s.b=this,s.f|=128,n(i)}),this.parent=x.b,this.transform_error=r??this.parent?.transform_error??(i=>i),g(J,this,sr(()=>{if(E){const i=Xn(o(Bn,this));wn();const s=i==="[!";if(i.startsWith("[?")){const l=JSON.parse(i.slice(2));y(T,this,$o).call(this,l)}else s?y(T,this,ko).call(this):y(T,this,bo).call(this)}else y(T,this,Wi).call(this)},yo)),E&&g(ut,this,W)}defer_effect(t){Yr(t,o(Dn,this),o(Vn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!o(_t,this).pending}update_pending_count(t,e){y(T,this,Ei).call(this,t,e),g(fe,this,o(fe,this)+t),o(Ft,this)&&!o(Xe,this)&&(g(Xe,this,!0),kt(()=>{g(Xe,this,!1),o(Ft,this)&&ge(o(Ft,this),o(fe,this))}))}get_effect_pending(){return o(Er,this).call(this),b(o(Ft,this))}error(t){if(t===Dt||!o(_t,this).onerror&&!o(_t,this).failed)throw t;q?.is_fork?(o(ft,this)&&q.skip_effect(o(ft,this)),o(Q,this)&&q.skip_effect(o(Q,this)),o(lt,this)&&q.skip_effect(o(lt,this)),q.oncommit(()=>{y(T,this,re).call(this)||y(T,this,Tr).call(this,t)})):y(T,this,Tr).call(this,t)}};function bo(){try{g(ft,this,nt(()=>o(Ie,this).call(this,o(ut,this))))}catch(t){this.error(t)}}function $o(t){const e=o(_t,this).failed,{reset:n,invoke_onerror:r}=y(T,this,Mi).call(this,t);kt(r),e&&g(lt,this,nt(()=>{e(o(ut,this),()=>t,()=>n)}))}function Mi(t){var e=!1,n=!1;const r=()=>{if(!y(T,this,re).call(this)){if(e){ms();return}e=!0,n&&Ps(),o(lt,this)!==null&&le(o(lt,this),()=>{g(lt,this,null)}),y(T,this,ar).call(this,()=>{y(T,this,Wi).call(this)})}};return{reset:r,invoke_onerror:()=>{if(!y(T,this,re).call(this))try{n=!0,o(_t,this).onerror?.(t,r),n=!1}catch(i){$t(i,o(J,this)&&o(J,this).parent)}}}}function re(){return(o(J,this).f&(Cr|An))!==0}function ko(){const t=o(_t,this).pending;t&&(this.is_pending=!0,g(Q,this,nt(()=>t(o(ut,this)))),kt(()=>{if(!y(T,this,re).call(this)){var e=g(Bt,this,document.createDocumentFragment()),n=tt(),r=!1;if(e.append(n),g(ft,this,y(T,this,ar).call(this,()=>{try{return nt(()=>o(Ie,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(s){$t(s,o(J,this).parent)}return null}})),o(ft,this)===null){g(Bt,this,null),r&&y(T,this,pn).call(this,q);return}o(ne,this)===0&&(o(ut,this).before(e),g(Bt,this,null),le(o(Q,this),()=>{g(Q,this,null)}),y(T,this,pn).call(this,q))}}))}function Wi(){try{if(this.is_pending=this.has_pending_snippet(),g(ne,this,0),g(fe,this,0),g(ft,this,nt(()=>{o(Ie,this).call(this,o(ut,this))})),o(ne,this)>0){var t=g(Bt,this,document.createDocumentFragment());lr(o(ft,this),t);const e=o(_t,this).pending;g(Q,this,nt(()=>e(o(ut,this))))}else y(T,this,pn).call(this,q)}catch(e){this.error(e)}}function pn(t){this.is_pending=!1,t.transfer_effects(o(Dn,this),o(Vn,this))}function ar(t){var e=x,n=S,r=C;qt(o(J,this)),rt(o(J,this)),de(o(J,this).ctx);try{return oe.ensure(),t()}finally{qt(e),rt(n),de(r)}}function Ei(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;y(T,n=this.parent,Ei).call(n,t,e)}return}g(ne,this,o(ne,this)+t),o(ne,this)===0&&(y(T,this,pn).call(this,e),o(Q,this)&&le(o(Q,this),()=>{g(Q,this,null)}),o(Bt,this)&&(o(ut,this).before(o(Bt,this)),g(Bt,this,null)))}function Tr(t){o(ft,this)&&(V(o(ft,this)),g(ft,this,null)),o(Q,this)&&(V(o(Q,this)),g(Q,this,null)),o(lt,this)&&(V(o(lt,this)),g(lt,this,null)),E&&(K(o(Bn,this)),ys(),K(ln()));let e=o(_t,this).failed;const n=r=>{if(y(T,this,re).call(this))return;const{reset:i,invoke_onerror:s}=y(T,this,Mi).call(this,r);s(),e&&!y(T,this,re).call(this)&&g(lt,this,y(T,this,ar).call(this,()=>{try{return nt(()=>{var l=x;l.b=this,l.f|=128,e(o(ut,this),()=>r,()=>i)})}catch(l){return $t(l,o(J,this).parent),null}}))};kt(()=>{if(!y(T,this,re).call(this)){var r;try{r=this.transform_error(t)}catch(i){$t(i,o(J,this)&&o(J,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>$t(i,o(J,this)&&o(J,this).parent)):n(r)}})}function Wt(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[en]??(t[en]=t.nodeValue))&&(t[en]=n,t.nodeValue=`${n}`)}function Ti(t,e){return Pi(t,e)}function qo(t,e){Cn(),e.intro=e.intro??!1;const n=e.target,r=E,i=W;try{for(var s=Vt(n);s&&(s.nodeType!==8||s.data!=="[");)s=xt(s);if(!s)throw Dt;Pt(!0),K(s);const l=Pi(t,{...e,anchor:s});return Pt(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Dt&&console.warn("Failed to hydrate: ",l),e.recover===!1&&Ss(),Cn(),hi(n),Pt(!1),Ti(t,e)}finally{Pt(r),K(i)}}var Ue=new Map;function Pi(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:a}){Cn();var f=void 0,u=Zs(()=>{var c=n??e.appendChild(tt());wo(c,{pending:()=>{}},p=>{Hr({});var m=C;if(s&&(m.c=s),i&&(r.$$events=i),E&&ve(p,null),f=t(p,r)||Jr(),E&&(x.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw yn(),Dt;Fr()},a);var v=new Set,h=p=>{for(var m=0;m<p.length;m++){var k=p[m];if(!v.has(k)){v.add(k);var d=go(k);for(const N of[e,document]){var w=Ue.get(N);w===void 0&&(w=new Map,Ue.set(N,w));var A=w.get(k);A===void 0?(N.addEventListener(k,In,{passive:d}),w.set(k,1)):w.set(k,A+1)}}}};return h(mn(lo)),Wr.add(h),()=>{for(var p of v)for(const d of[e,document]){var m=Ue.get(d),k=m.get(p);--k==0?(d.removeEventListener(p,In),m.delete(p),m.size===0&&Ue.delete(d)):m.set(p,k)}Wr.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return Hn.set(f,u),f}var Hn=new WeakMap;function xo(t,e){const n=Hn.get(t);return n?(Hn.delete(t),n(e)):Promise.resolve()}var Et=new WeakMap,Rt=new WeakMap,st=new WeakMap,qe=new WeakMap,Wn=new WeakMap,En=new WeakMap,Pr=new WeakMap,So=class{constructor(t,e=!0){P(this,"anchor",void 0),$(this,Et,new Map),$(this,Rt,new Map),$(this,st,new Map),$(this,qe,new Set),$(this,Wn,!0),$(this,En,n=>{if(o(Et,this).has(n)){var r=o(Et,this).get(n),i=o(Rt,this).get(r);if(i)dn(i),o(qe,this).delete(r);else{var s=o(st,this).get(r);s&&(dn(s.effect),o(Rt,this).set(r,s.effect),o(st,this).delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[l,a]of o(Et,this)){if(o(Et,this).delete(l),l===n)break;const f=o(st,this).get(a);f&&(V(f.effect),o(st,this).delete(a))}for(const[l,a]of o(Rt,this)){if(l===r||o(qe,this).has(l))continue;const f=()=>{if(Array.from(o(Et,this).values()).includes(l)){var u=document.createDocumentFragment();lr(a,u),u.append(tt()),o(st,this).set(l,{effect:a,fragment:u})}else V(a);o(qe,this).delete(l),o(Rt,this).delete(l)};o(Wn,this)||!i?(o(qe,this).add(l),le(a,f,!1)):f()}}}),$(this,Pr,n=>{o(Et,this).delete(n);const r=Array.from(o(Et,this).values());for(const[i,s]of o(st,this))r.includes(i)||(V(s.effect),o(st,this).delete(i))}),this.anchor=t,g(Wn,this,e)}ensure(t,e){var n=q,r=vi();if(e&&!o(Rt,this).has(t)&&!o(st,this).has(t))if(r){var i=document.createDocumentFragment(),s=tt();i.append(s),o(st,this).set(t,{effect:nt(()=>e(s)),fragment:i})}else o(Rt,this).set(t,nt(()=>e(this.anchor)));if(o(Et,this).set(n,t),r){for(const[l,a]of o(Rt,this))l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of o(st,this))l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(o(En,this)),n.ondiscard(o(Pr,this))}else E&&(this.anchor=W),o(En,this).call(this,n)}};function xe(t,e,n=!1){var r;E&&(r=W,wn());var i=new So(t),s=n?Qn:0;function l(a,f){if(E){var u=Xn(r);if(a!==parseInt(u.substring(1))){var c=ln();K(c),i.anchor=c,Pt(!1),i.ensure(a,f),Pt(!0);return}}i.ensure(a,f)}sr(()=>{var a=!1;e((f,u=0)=>{a=!0,l(u,f)}),a||l(-1,null)},s)}function Mo(t,e){return e}function Wo(t,e,n){for(var r=[],i=e.length,s,l=e.length,a=0;a<i;a++){let v=e[a];le(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;Fn(t,mn(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=r.length===0&&n!==null&&t.pending.size===0;if(f){var u=n,c=u.parentNode;hi(c),c.append(u),t.items.clear()}Fn(t,e,!f)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function Fn(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const l of t.pending.values())for(const a of l)r.add(t.items.get(a).e)}for(var i=0;i<e.length;i++){var s=e[i];r?.has(s)?(s.f|=Te,lr(s,document.createDocumentFragment())):V(e[i],n)}}var Ze;function jr(t,e,n,r,i,s=null){var l=t,a=new Map;if((e&4)!==0){var f=t;l=E?K(Vt(f)):f.appendChild(tt())}E&&wn();var u=null,c=Zn(()=>{var d=n();return Or(d)?d:d==null?[]:mn(d)}),v=new Map,h=!0;function p(d){if((k.effect.f&16384)===0){k.pending.delete(d);var w=b(c);k.fallback=u,Eo(k,w,l,e,r),u!==null&&(w.length===0?(u.f&33554432)===0?dn(u):(u.f^=Te,Ee(u,null,l)):le(u,()=>{u=null}))}}function m(d){k.pending.delete(d)}var k={effect:sr(()=>{var d=b(c),w=d.length;let A=!1;E&&Xn(l)==="[!"!=(w===0)&&(l=ln(),K(l),Pt(!1),A=!0);for(var N=new Set,M=q,_=vi(),L=0;L<w;L+=1){E&&W.nodeType===8&&W.data==="]"&&(l=W,A=!0,Pt(!1));var I=d[L],it=r(I,L),B=h?null:a.get(it);B?(B.v&&ge(B.v,I),B.i&&ge(B.i,L),_&&M.unskip_effect(B.e)):(B=To(a,h?l:Ze??(Ze=tt()),I,it,L,i,e,n),h||(B.e.f|=Te),a.set(it,B)),N.add(it)}if(w===0&&s&&!u&&(h?u=nt(()=>s(l)):(u=nt(()=>s(Ze??(Ze=tt()))),u.f|=Te)),w>N.size&&bs("","",""),E&&w>0&&K(ln()),!h)if(v.set(M,N),_){for(const[vt,He]of a)N.has(vt)||M.skip_effect(He.e);M.oncommit(p),M.ondiscard(m)}else p(M);A&&Pt(!0),b(c)}),flags:e,items:a,pending:v,outrogroups:null,fallback:u};h=!1,E&&(l=W)}function Se(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function Eo(t,e,n,r,i){var s=(r&8)!==0,l=e.length,a=t.items,f=Se(t.effect.first),u,c=null,v,h=[],p=[],m,k,d,w;if(s)for(w=0;w<l;w+=1)m=e[w],k=i(m,w),d=a.get(k).e,!(d.f&33554432)&&(d.nodes?.a?.measure(),(v??(v=new Set)).add(d));for(w=0;w<l;w+=1){if(m=e[w],k=i(m,w),d=a.get(k).e,t.outrogroups!==null)for(const vt of t.outrogroups)vt.pending.delete(d),vt.done.delete(d);if(d.f&8192&&(dn(d),s&&(d.nodes?.a?.unfix(),(v??(v=new Set)).delete(d))),(d.f&33554432)!==0)if(d.f^=Te,d===f)Ee(d,null,n);else{var A=c?c.next:f;d===t.effect.last&&(t.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),zt(t,c,d),zt(t,d,A),Ee(d,A,n),c=d,h=[],p=[],f=Se(c.next);continue}if(d!==f){if(u!==void 0&&u.has(d)){if(h.length<p.length){var N=p[0],M;c=N.prev;var _=h[0],L=h[h.length-1];for(M=0;M<h.length;M+=1)Ee(h[M],N,n);for(M=0;M<p.length;M+=1)u.delete(p[M]);zt(t,_.prev,L.next),zt(t,c,_),zt(t,L,N),f=N,c=L,w-=1,h=[],p=[]}else u.delete(d),Ee(d,f,n),zt(t,d.prev,d.next),zt(t,d,c===null?t.effect.first:c.next),zt(t,c,d),c=d;continue}for(h=[],p=[];f!==null&&f!==d;)(u??(u=new Set)).add(f),p.push(f),f=Se(f.next);if(f===null)continue}!(d.f&33554432)&&h.push(d),c=d,f=Se(d.next)}if(t.outrogroups!==null){for(const vt of t.outrogroups)vt.pending.size===0&&(Fn(t,mn(vt.done)),t.outrogroups?.delete(vt));t.outrogroups.size===0&&(t.outrogroups=null)}if(f!==null||u!==void 0){var I=[];if(u!==void 0)for(d of u)!(d.f&8192)&&I.push(d);for(;f!==null;)!(f.f&8192)&&f!==t.fallback&&I.push(f),f=Se(f.next);var it=I.length;if(it>0){var B=(r&4)!==0&&l===0?n:null;if(s){for(w=0;w<it;w+=1)I[w].nodes?.a?.measure();for(w=0;w<it;w+=1)I[w].nodes?.a?.fix()}Wo(t,I,B)}}s&&kt(()=>{if(v!==void 0)for(d of v)d.nodes?.a?.apply()})}function To(t,e,n,r,i,s,l,a){var f=(l&1)!==0?(l&16)===0?li(n,!1,!1):ie(n):null,u=(l&2)!==0?ie(i):null;return{v:f,i:u,e:nt(()=>(s(e,f??n,u??i,a),()=>{t.delete(r)}))}}function Ee(t,e,n){if(t.nodes)for(var r=t.nodes.start,i=t.nodes.end,s=e&&(e.f&33554432)===0?e.nodes.start:n;r!==null;){var l=xt(r);if(s.before(r),r===i)return;r=l}}function zt(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Po(t,e){Gs(()=>{t=x?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=er("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}var jo=Symbol("is custom element"),Ao=Symbol("is html"),No=ps?"link":"LINK";function Lo(t){if(E){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var r=t.value;Jn(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var i=t.checked;Jn(t,"checked",null),t.checked=i}}};t[Pe]=n,kt(n),Qr()}}function Jn(t,e,n,r){var i=Oo(t);E&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===No)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[hs]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Ro(t).has(e)?t[e]=n:t.setAttribute(e,n))}function Oo(t){return t[Nn]??(t[Nn]={[jo]:t.nodeName.includes("-"),[Ao]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Ar=new Map;function Ro(t){var e=t.getAttribute("is")||t.nodeName,n=Ar.get(e);if(n)return n;Ar.set(e,n=new Set);for(var r,i=t,s=Element.prototype;s!==i;){r=rs(i);for(var l in r)r[l].set&&l!=="innerHTML"&&l!=="textContent"&&l!=="innerText"&&n.add(l);i=Rr(i)}return n}function zo(t,e,n=e){var r=new WeakSet;Ns(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=Tn(t)?Pn(s):s,n(s),q!==null&&r.add(q),await oo(),s!==(s=e())){var l=t.selectionStart,a=t.selectionEnd,f=t.value.length;if(t.value=s??"",a!==null){var u=t.value.length;l===a&&a===f&&u>f?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=l,t.selectionEnd=Math.min(a,u))}}}),(E&&t.defaultValue!==t.value||Ce(e)==null&&t.value)&&(n(Tn(t)?Pn(t.value):t.value),q!==null&&r.add(q)),ir(()=>{var i=e();if(t===document.activeElement){var s=we?Gt:q;if(r.has(s))return}Tn(t)&&i===Pn(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Tn(t){var e=t.type;return e==="number"||e==="range"}function Pn(t){return t===""?null:+t}var ji,ce=new WeakMap,gn=new WeakMap,jn=new WeakMap,Nr=new WeakSet,Ai=class{constructor(t){tr(this,Nr),$(this,ce,new WeakMap),$(this,gn,void 0),$(this,jn,void 0),g(jn,this,t)}observe(t,e){var n=o(ce,this).get(t)||new Set;return n.add(e),o(ce,this).set(t,n),y(Nr,this,Co).call(this).observe(t,o(jn,this)),()=>{var r=o(ce,this).get(t);r.delete(e),r.size===0&&(o(ce,this).delete(t),o(gn,this).unobserve(t))}}};ji=Ai;function Co(){return o(gn,this)??g(gn,this,new ResizeObserver(t=>{for(var e of t){ji.entries.set(e.target,e);for(var n of o(ce,this).get(e.target)||[])n(e)}}))}P(Ai,"entries",new WeakMap);var Ge=!1;function Io(t){var e=Ge;try{return Ge=!1,[t(),Ge]}finally{Ge=e}}function Tt(t,e,n,r){var i=!_n||(n&2)!==0,s=(n&8)!==0,l=(n&16)!==0,a=r,f=!0,u=void 0,c=()=>l&&i?(u??(u=Oe(r)),b(u)):(f&&(f=!1,a=l?Ce(r):r),a);let v;if(s){var h=tn in t||Br in t;v=Zt(t,e)?.set??(h&&e in t?M=>t[e]=M:void 0)}var p,m=!1;s?[p,m]=Io(()=>t[e]):p=t[e],p===void 0&&r!==void 0&&(p=c(),v&&(i&&Ms(e),v(p)));var k;if(i?k=()=>{var M=t[e];return M===void 0?c():(f=!0,M)}:k=()=>{var M=t[e];return M!==void 0&&(a=void 0),M===void 0?a:M},i&&(n&4)===0)return k;if(v){var d=t.$$legacy;return(function(M,_){return arguments.length>0?((!i||!_||d||m)&&v(_?k():M),M):k()})}var w=!1,A=((n&1)!==0?Oe:Zn)(()=>(w=!1,k()));s&&b(A);var N=x;return(function(M,_){if(arguments.length>0){const L=_?b(A):i&&s?Xt(M):M;return G(A,L),w=!0,a!==void 0&&(a=L),M}return At&&w||(N.f&16384)!==0?A.v:b(A)})}function Bo(t){return new Do(t)}var Jt=new WeakMap,pt=new WeakMap,Do=class{constructor(t){$(this,Jt,void 0),$(this,pt,void 0);var e=new Map,n=(i,s)=>{var l=li(s,!1,!1);return e.set(i,l),l};const r=new Proxy({...t.props||{},$$events:{}},{get(i,s){return b(e.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Br?!0:(b(e.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,l){return G(e.get(s)??n(s,l),l),Reflect.set(i,s,l)}});g(pt,this,(t.hydrate?qo:Ti)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&U(),g(Jt,this,r.$$events);for(const i of Object.keys(o(pt,this)))i==="$set"||i==="$destroy"||i==="$on"||Ne(this,i,{get(){return o(pt,this)[i]},set(s){o(pt,this)[i]=s},enumerable:!0});o(pt,this).$set=i=>{Object.assign(r,i)},o(pt,this).$destroy=()=>{xo(o(pt,this))}}$set(t){o(pt,this).$set(t)}$on(t,e){o(Jt,this)[t]=o(Jt,this)[t]||[];const n=(...r)=>e.call(this,...r);return o(Jt,this)[t].push(n),()=>{o(Jt,this)[t]=o(Jt,this)[t].filter(r=>r!==n)}}$destroy(){o(pt,this).$destroy()}},Ni;typeof HTMLElement=="function"&&(Ni=class extends HTMLElement{constructor(t,e,n){super(),P(this,"$$ctor",void 0),P(this,"$$s",void 0),P(this,"$$c",void 0),P(this,"$$cn",!1),P(this,"$$d",{}),P(this,"$$r",!1),P(this,"$$p_d",{}),P(this,"$$l",{}),P(this,"$$l_u",new Map),P(this,"$$me",void 0),P(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=er("slot");r!=="default"&&(s.name=r),H(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Vo(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=nn(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Bo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Us(()=>{ir(()=>{this.$$r=!0;for(const r of sn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=nn(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=nn(t,n,this.$$p_d,"toProp"),this.$$c?.$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 sn(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function nn(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Vo(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Ho(t,e,n,r,i,s){let l=class extends Ni{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return sn(e).map(a=>(e[a].attribute||a).toLowerCase())}};return sn(e).forEach(a=>{Ne(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(f){f=nn(a,f,e),this.$$d[a]=f;var u=this.$$c;u&&(Zt(u,a)?.get?u[a]=f:u.$set({[a]:f}))}})}),r.forEach(a=>{Ne(l.prototype,a,{get(){return this.$$c?.[a]}})}),s&&(l=s(l)),t.element=l,l}var Li="dictionary";function Fo(t){if(!t||typeof t!="object")return null;const e=t,n=typeof e.word=="string"?e.word.trim():"";if(!n)return null;const r=Array.isArray(e.senses)?e.senses:[],i=[];for(const s of r){if(!s||typeof s!="object")continue;const l=s,a=typeof l.definition=="string"?l.definition.trim():"";a&&i.push({definition:a,partOfSpeech:typeof l.partOfSpeech=="string"?l.partOfSpeech:void 0,example:typeof l.example=="string"?l.example:void 0})}return i.length===0?null:{word:n,pronunciation:typeof e.pronunciation=="string"?e.pronunciation:void 0,senses:i}}function Jo(t){return Zi(t,{serviceLabel:Li,keys:["entries"],toItem:Fo})}function Ko(t){return Gi({...t,serviceLabel:Li,readResponse:Jo})}var Yo=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">No dictionary service is configured for this assessment.</p>'),Qo=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">Type a word to look it up.</p>'),Lr=ht('<p class="pie-tool-dictionary__notice svelte-1qfqsgt"> </p>'),Xo=ht('<p class="pie-tool-dictionary__error svelte-1qfqsgt" role="alert"> </p>'),Uo=ht('<span class="pie-tool-dictionary__pronunciation svelte-1qfqsgt"> </span>'),Zo=ht('<span class="pie-tool-dictionary__pos svelte-1qfqsgt"> </span>'),Go=ht('<span class="pie-tool-dictionary__example svelte-1qfqsgt"> </span>'),tl=ht('<li class="pie-tool-dictionary__sense svelte-1qfqsgt"><!> <span class="pie-tool-dictionary__definition"> </span> <!></li>'),el=ht('<li class="pie-tool-dictionary__entry svelte-1qfqsgt"><p class="pie-tool-dictionary__word svelte-1qfqsgt"> <!></p> <ol class="pie-tool-dictionary__senses svelte-1qfqsgt"></ol></li>'),nl=ht('<ul class="pie-tool-dictionary__entries svelte-1qfqsgt"></ul>'),rl=ht('<div class="pie-tool-dictionary svelte-1qfqsgt" role="dialog" aria-label="Dictionary"><form class="pie-tool-dictionary__search svelte-1qfqsgt"><label class="pie-tool-dictionary__label svelte-1qfqsgt" for="pie-tool-dictionary-term">Word or phrase</label> <div class="pie-tool-dictionary__row svelte-1qfqsgt"><input id="pie-tool-dictionary-term" class="pie-tool-dictionary__input svelte-1qfqsgt" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-dictionary__submit svelte-1qfqsgt" type="submit">Look up</button></div></form> <div class="pie-tool-dictionary__status svelte-1qfqsgt" role="status" aria-live="polite"> </div> <div class="pie-tool-dictionary__body svelte-1qfqsgt"><!></div></div>'),il={hash:"svelte-1qfqsgt",code:`.pie-tool-dictionary.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-dictionary__search.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-dictionary__label.svelte-1qfqsgt {font-size:0.8rem;font-weight:600;}.pie-tool-dictionary__row.svelte-1qfqsgt {display:flex;gap:0.5rem;}.pie-tool-dictionary__input.svelte-1qfqsgt {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-dictionary__submit.svelte-1qfqsgt {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-dictionary__submit.svelte-1qfqsgt:disabled {opacity:0.5;cursor:not-allowed;}
|
|
3
3
|
|
|
4
4
|
/* Visible focus is not optional: this panel is the keyboard route into the tool. */.pie-tool-dictionary__input.svelte-1qfqsgt:focus-visible,
|
|
5
5
|
.pie-tool-dictionary__submit.svelte-1qfqsgt:focus-visible {outline:2px solid var(--pie-button-focus-outline, #2563eb);outline-offset:2px;}.pie-tool-dictionary__status.svelte-1qfqsgt {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.pie-tool-dictionary__body.svelte-1qfqsgt {flex:1 1 auto;min-height:0;overflow-y:auto;}.pie-tool-dictionary__notice.svelte-1qfqsgt,
|
|
6
6
|
.pie-tool-dictionary__error.svelte-1qfqsgt {margin:0.25rem 0;}.pie-tool-dictionary__entries.svelte-1qfqsgt,
|
|
7
|
-
.pie-tool-dictionary__senses.svelte-1qfqsgt {margin:0;padding:0 0 0 1.1rem;}.pie-tool-dictionary__entries.svelte-1qfqsgt {list-style:none;padding-left:0;}.pie-tool-dictionary__entry.svelte-1qfqsgt + .pie-tool-dictionary__entry:where(.svelte-1qfqsgt) {margin-top:0.75rem;padding-top:0.75rem;border-top:1px solid var(--pie-border-light, #e5e7eb);}.pie-tool-dictionary__word.svelte-1qfqsgt {margin:0 0 0.25rem;font-weight:700;}.pie-tool-dictionary__pronunciation.svelte-1qfqsgt {margin-left:0.4rem;font-weight:400;opacity:0.75;}.pie-tool-dictionary__sense.svelte-1qfqsgt {margin-bottom:0.35rem;}.pie-tool-dictionary__pos.svelte-1qfqsgt {margin-right:0.3rem;font-style:italic;opacity:0.8;}.pie-tool-dictionary__example.svelte-1qfqsgt {display:block;opacity:0.8;}`};function
|
|
7
|
+
.pie-tool-dictionary__senses.svelte-1qfqsgt {margin:0;padding:0 0 0 1.1rem;}.pie-tool-dictionary__entries.svelte-1qfqsgt {list-style:none;padding-left:0;}.pie-tool-dictionary__entry.svelte-1qfqsgt + .pie-tool-dictionary__entry:where(.svelte-1qfqsgt) {margin-top:0.75rem;padding-top:0.75rem;border-top:1px solid var(--pie-border-light, #e5e7eb);}.pie-tool-dictionary__word.svelte-1qfqsgt {margin:0 0 0.25rem;font-weight:700;}.pie-tool-dictionary__pronunciation.svelte-1qfqsgt {margin-left:0.4rem;font-weight:400;opacity:0.75;}.pie-tool-dictionary__sense.svelte-1qfqsgt {margin-bottom:0.35rem;}.pie-tool-dictionary__pos.svelte-1qfqsgt {margin-right:0.3rem;font-style:italic;opacity:0.8;}.pie-tool-dictionary__example.svelte-1qfqsgt {display:block;opacity:0.8;}`};function sl(t,e){Hr(e,!0),Po(t,il);let n=Tt(e,"visible",7,!1),r=Tt(e,"toolId",7,"dictionary"),i=Tt(e,"term",7,""),s=Tt(e,"termRequestId",7,void 0),l=Tt(e,"endpoint",7,""),a=Tt(e,"language",7,""),f=Tt(e,"lookup",7,void 0),u=Tt(e,"headers",7,void 0),c=Tt(e,"credentials",7,void 0),v=mt(""),h=mt(Xt({kind:"idle"}));const p=wr(()=>f()??(l()?Ko({endpoint:l(),headers:u(),credentials:c()}):null)),m=new es({resolver:()=>b(p),max:6,language:()=>a(),onState:_=>{G(h,_,!0)}});qr(()=>{b(p),Ce(()=>m.syncConfigured(b(h)))}),qr(()=>{const _=ts(i()),L=s(),I=n();Ce(()=>{m.syncRequestedTerm({term:_,requestId:L,visible:I})&&G(v,_,!0)})});function k(_){_.preventDefault(),m.run(b(v))}const d=wr(()=>Ui(b(h),{countLabel:_=>`${_} ${_===1?"entry":"entries"}`,emptyLabel:_=>`No dictionary entry for ${_}`}));var w={get visible(){return n()},set visible(_=!1){n(_),U()},get toolId(){return r()},set toolId(_="dictionary"){r(_),U()},get term(){return i()},set term(_=""){i(_),U()},get termRequestId(){return s()},set termRequestId(_=void 0){s(_),U()},get endpoint(){return l()},set endpoint(_=""){l(_),U()},get language(){return a()},set language(_=""){a(_),U()},get lookup(){return f()},set lookup(_=void 0){f(_),U()},get headers(){return u()},set headers(_=void 0){u(_),U()},get credentials(){return c()},set credentials(_=void 0){c(_),U()}},A=vo(),N=Ks(A),M=_=>{var L=rl(),I=Ct(L),it=Ot(Ct(I),2),B=Ct(it);Lo(B);var vt=Ot(B,2);gt(it),gt(I);var He=Ot(I,2),Oi=Lt(He,!0),ur=Ot(He,2),Ri=Ct(ur),zi=j=>{H(j,Yo())},Ci=j=>{H(j,Qo())},Ii=j=>{var X=Lr(),dt=Lt(X);Mt(()=>Wt(dt,`Looking up “${b(h).term??""}”…`)),H(j,X)},Bi=j=>{var X=Lr(),dt=Lt(X);Mt(()=>Wt(dt,`No entry for “${b(h).term??""}”.`)),H(j,X)},Di=j=>{var X=Xo(),dt=Lt(X,!0);Mt(()=>Wt(dt,b(h).reason)),H(j,X)},Vi=j=>{var X=nl();jr(X,21,()=>b(h).items,dt=>dt.word+dt.senses.length,(dt,Fe)=>{var bn=el(),$n=Ct(bn),fr=Ct($n),Hi=Ot(fr),Fi=be=>{var Nt=Uo(),$e=Lt(Nt,!0);Mt(()=>Wt($e,b(Fe).pronunciation)),H(be,Nt)};xe(Hi,be=>{b(Fe).pronunciation&&be(Fi)}),gt($n);var cr=Ot($n,2);jr(cr,21,()=>b(Fe).senses,Mo,(be,Nt)=>{var $e=tl(),hr=Ct($e),Ji=Ht=>{var ke=Zo(),kn=Lt(ke,!0);Mt(()=>Wt(kn,b(Nt).partOfSpeech)),H(Ht,ke)};xe(hr,Ht=>{b(Nt).partOfSpeech&&Ht(Ji)});var vr=Ot(hr,2),Ki=Lt(vr,!0),Yi=Ot(vr,2),Qi=Ht=>{var ke=Go(),kn=Lt(ke);Mt(()=>Wt(kn,`“${b(Nt).example??""}”`)),H(Ht,ke)};xe(Yi,Ht=>{b(Nt).example&&Ht(Qi)}),gt($e),Mt(()=>Wt(Ki,b(Nt).definition)),H(be,$e)}),gt(cr),gt(bn),Mt(()=>Wt(fr,`${b(Fe).word??""} `)),H(dt,bn)}),gt(X),H(j,X)};xe(Ri,j=>{b(h).kind==="unconfigured"?j(zi):b(h).kind==="idle"?j(Ci,1):b(h).kind==="searching"?j(Ii,2):b(h).kind==="empty"?j(Bi,3):b(h).kind==="error"?j(Di,4):j(Vi,-1)}),gt(ur),gt(L),Mt(j=>{Jn(L,"data-pie-tool-id",r()),B.disabled=b(h).kind==="unconfigured",vt.disabled=j,Wt(Oi,b(d))},[()=>b(h).kind==="unconfigured"||!b(v).trim()]),uo("submit",I,k),zo(B,()=>b(v),j=>G(v,j)),H(_,L)};return xe(N,_=>{n()&&_(M)}),H(t,A),Fr(w)}ol("pie-tool-dictionary",Ho(sl,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},term:{attribute:"term",type:"String"},endpoint:{attribute:"endpoint",type:"String"},language:{attribute:"language",type:"String"},termRequestId:{},lookup:{},headers:{},credentials:{}},[],[],{mode:"open"},Xi));function ol(t,e){customElements.get(t)||customElements.define(t,e)}export{sl as default};
|