I am Terraphim, your personal assistant.
+ `,SA(i.src,r=WA)||y(i,"src",r),y(i,"alt","Terraphim Logo"),y(i,"class","svelte-88gkdy"),y(t,"class","content has-text-grey has-text-centered"),y(o,"class","content has-text-grey has-text-centered"),y(e,"class","section")},m(l,a){B(l,e,a),w(e,t),w(t,i),w(e,s),w(e,o)},p:ce,i:ce,o:ce,d(l){l&&N(e)}}}function dE(n){let e,t,i=n[0],r=[];for(let o=0;o+ Enter a JavaScript function to filter, sort, or transform the data. +
+`,VL={id:"javascript",name:"JavaScript",description:zL,createQuery:HL,executeQuery:WL};function HL(n,e){const{filter:t,sort:i,projection:r}=e,s=[` return data +`];if(t&&t.path&&t.relation&&t.value){const o=`item => item${Fo(t.path)}`,l=FL(t.value),a=typeof l=="string"?`'${t.value}'`:HR(t.value)&&!Number.isSafeInteger(l)?`${t.value}n`:t.value;s.push(` .filter(${o} ${t.relation} ${a}) +`)}if(i&&i.path&&i.direction&&(i.direction==="desc"?s.push(` .slice() + .sort((a, b) => { + // sort descending + const valueA = a${Fo(i.path)} + const valueB = b${Fo(i.path)} + return valueA > valueB ? -1 : valueA < valueB ? 1 : 0 + }) +`):s.push(` .slice() + .sort((a, b) => { + // sort ascending + const valueA = a${Fo(i.path)} + const valueB = b${Fo(i.path)} + return valueA > valueB ? 1 : valueA < valueB ? -1 : 0 + }) +`)),r&&r.paths)if(r.paths.length>1){const o=r.paths.map(l=>{const a=l[l.length-1]||"item",c=`item${Fo(l)}`;return` ${JSON.stringify(a)}: ${c}`});s.push(` .map(item => ({ +${o.join(`, +`)}}) + ) +`)}else{const o=`item${Fo(r.paths[0])}`;s.push(` .map(item => ${o}) +`)}return`function query (data) { +${s.join("")}}`}function WL(n,e){const i=new Function(`"use strict"; + +`+e+` + +if (typeof query !== "function") { + throw new Error("Cannot execute query: expecting a function named 'query' but is undefined") +} + +return query; +`)()(n);return i!==void 0?i:null}var UL={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M297.2 248.9C311.6 228.3 320 203.2 320 176c0-70.7-57.3-128-128-128S64 105.3 64 176c0 27.2 8.4 52.3 22.8 72.9c3.7 5.3 8.1 11.3 12.8 17.7l0 0c12.9 17.7 28.3 38.9 39.8 59.8c10.4 19 15.7 38.8 18.3 57.5H109c-2.2-12-5.9-23.7-11.8-34.5c-9.9-18-22.2-34.9-34.5-51.8l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176C16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0c-12.3 16.8-24.6 33.7-34.5 51.8c-5.9 10.8-9.6 22.5-11.8 34.5H226.4c2.6-18.7 7.9-38.6 18.3-57.5c11.5-20.9 26.9-42.1 39.8-59.8l0 0 0 0 0 0c4.7-6.4 9-12.4 12.7-17.7zM192 128c-26.5 0-48 21.5-48 48c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-44.2 35.8-80 80-80c8.8 0 16 7.2 16 16s-7.2 16-16 16zm0 384c-44.2 0-80-35.8-80-80V416H272v16c0 44.2-35.8 80-80 80z"]},qL={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 80c-8.8 0-16 7.2-16 16V416c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V96c0-8.8-7.2-16-16-16H64zM0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Fc=qL,zc={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H384zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"]},JL={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};function KL(n){let e;return{c(){e=Cr("g")},m(t,i){B(t,e,i),e.innerHTML=n[0]},p(t,[i]){i&1&&(e.innerHTML=t[0])},i:ce,o:ce,d(t){t&&N(e)}}}function GL(n,e,t){let i=870711;function r(){return i+=1,`fa-${i.toString(16)}`}let s="",{data:o}=e;function l(a){if(!a||!a.raw)return"";let c=a.raw;const u={};return c=c.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,(f,h)=>{const d=r();return u[h]=d,` id="${d}"`}),c=c.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,(f,h,d,m)=>{const p=h||m;return!p||!u[p]?f:`#${u[p]}`}),c}return n.$$set=a=>{"data"in a&&t(1,o=a.data)},n.$$.update=()=>{n.$$.dirty&2&&t(0,s=l(o))},[s,o]}class YL extends Me{constructor(e){super(),Ae(this,e,GL,KL,it,{data:1})}}function QL(n){let e,t,i,r;const s=n[12].default,o=gt(s,n,n[11],null);let l=[{version:"1.1"},{class:t="fa-icon "+n[0]},{width:n[1]},{height:n[2]},{"aria-label":n[9]},{role:i=n[9]?"img":"presentation"},{viewBox:n[3]},{style:n[8]},n[10]],a={};for(let c=0;c