import{t as e}from"./rolldown-runtime.Bi-D_2cA.mjs";import{P as t,d as n,m as r,o as i,s as a,w as o}from"./react.Dxe_2v0O.mjs";import{w as s}from"./motion.x14TTX80.mjs";import{C as c,K as l,_ as u,i as d,k as ee,kt as f,s as p,t as te}from"./framer.AFZpyLWA.mjs";function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return typeof e==`function`?e():e}function ne(e,t){return M[e]>M[t]}function g(e){let t;for(let n of e){let e=h(n);if((t===void 0||ne(e,t))&&(t=e),t===`user-blocking`)break}return t}function _(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function v(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function y(e){throw Error(`Unexpected value: ${e}`)}function b(e,t,n,r){v(e>=t,e,`outside lower bound for`,r),v(e<=n,e,`outside upper bound for`,r)}function x(e){return typeof e==`string`}function S(e){return Number.isFinite(e)}function C(e){return e===null}function w(e){if(C(e))return 0;switch(e.type){case`array`:return 1;case`boolean`:return 2;case`color`:return 3;case`date`:return 4;case`enum`:return 5;case`file`:return 6;case`responsiveimage`:return 10;case`link`:return 7;case`number`:return 8;case`object`:return 9;case`richtext`:return 11;case`string`:return 12;case`vectorsetitem`:return 13;default:y(e)}}function re(e){let t=e.readUint16(),n=[];for(let r=0;ri)return 1;for(let i=0;it.value)}function le(e){return{type:`color`,value:e.readString()}}function ue(e,t){e.writeString(t.value)}function de(e,t){return e.valuet.value)}function fe(e){let t=e.readInt64();return{type:`date`,value:new Date(t).toISOString()}}function pe(e,t){let n=new Date(t.value).getTime();e.writeInt64(n)}function me(e,t){let n=new Date(e.value),r=new Date(t.value);return nr)}function he(e){return{type:`enum`,value:e.readString()}}function ge(e,t){e.writeString(t.value)}function _e(e,t){return e.valuet.value)}function ve(e){return{type:`file`,value:e.readString()}}function ye(e,t){e.writeString(t.value)}function be(e,t){return e.valuet.value)}function xe(e){return{type:`link`,value:e.readJson()}}function Se(e,t){e.writeJson(t.value)}function Ce(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr)}function we(e){return{type:`number`,value:e.readFloat64()}}function Te(e,t){e.writeFloat64(t.value)}function Ee(e,t){return e.valuet.value)}function De(e){let t=e.readUint16(),n={};for(let r=0;ri.length)return 1;for(let a=0;as)return 1;let c=e.value[o]??null,l=t.value[s]??null,u=k.compare(c,l,n);if(u!==0)return u}return 0}function Ae(e){return{type:`responsiveimage`,value:e.readJson()}}function je(e,t){e.writeJson(t.value)}function Me(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr)}function Ne(e){let t=e.readInt8();if(t===0)return{type:`richtext`,value:e.readUint32()};if(t===1)return{type:`richtext`,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Pe(e,t){if(S(t.value))e.writeInt8(0),e.writeUint32(t.value);else if(x(t.value))e.writeInt8(1),e.writeString(t.value);else throw Error(`Invalid rich text pointer`)}function Fe(e,t){let n=e.value,r=t.value;if(S(n)&&S(r)||x(n)&&x(r))return nr);throw Error(`Invalid rich text pointer`)}function Ie(e){return{type:`string`,value:e.readString()}}function Le(e,t){e.writeString(t.value)}function Re(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),ri)}function ze(e){return{type:`vectorsetitem`,value:e.readUint32()}}function Be(e,t){e.writeUint32(t.value)}function Ve(e,t){let n=e.value,r=t.value;return nr)}async function He(e){let t=Math.floor(rt*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function T(e,t){let n=Ue(t),r=[],i=0;for(let e of n)r.push(`${e.from}-${e.to-1}`),i+=e.to-e.from;let a=new URL(e),o=r.join(`,`);a.searchParams.set(`range`,o);let s=await H(a);if(s.status!==200)throw Error(`Request failed: ${s.status} ${s.statusText}`);let c=await s.arrayBuffer(),l=new Uint8Array(c);if(l.length!==i)throw Error(`Request failed: Unexpected response length`);let u=new at,d=0;for(let e of n){let t=e.to-e.from,n=d+t,r=l.subarray(d,n);u.write(e.from,r),d=n}return t.map(e=>u.read(e.from,e.to-e.from))}function E(e,t){let n=e.length+t.length,r=new Uint8Array(n);return r.set(e,0),r.set(t,e.length),r}function Ue(e){v(e.length>0,`Must have at least one range`);let t=[...e].sort((e,t)=>e.from-t.from),n=[];for(let e of t){let t=n.length-1,r=n[t];r&&e.from<=r.to?n[t]={from:r.from,to:Math.max(r.to,e.to)}:n.push(e)}return n}function D(e){let t={},n=e.readUint16();for(let r=0;r{l(),Ge=Object.create,A=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,qe=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty,Ye=(e,t)=>function(){try{return t||(0,e[j(e)[0]])((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},Xe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of j(t))Je.call(e,i)||i===n||A(e,i,{get:()=>t[i],enumerable:!(r=Ke(t,i))||r.enumerable});return e},Ze=(e,t,n)=>(n=e==null?{}:Ge(qe(e)),Xe(!t&&e&&e.__esModule?n:A(n,`default`,{value:e,enumerable:!0}),e)),Qe=Ze(Ye({"../../../node_modules/dataloader/index.js"(e,t){var n,r=/* @__PURE__ */ function(){function e(e,t){if(typeof e!=`function`)throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: `+e+`.`);this._batchLoadFn=e,this._maxBatchSize=function(e){if(e&&!1===e.batch)return 1;var t=e&&e.maxBatchSize;if(t===void 0)return 1/0;if(typeof t!=`number`||t<1)throw TypeError(`maxBatchSize must be a positive number: `+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(t===void 0)return i;if(typeof t!=`function`)throw TypeError(`batchScheduleFn must be a function: `+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(t===void 0)return function(e){return e};if(typeof t!=`function`)throw TypeError(`cacheKeyFn must be a function: `+t);return t}(t),this._cacheMap=function(e){if(e&&!1===e.cache)return null;var t=e&&e.cacheMap;if(t===void 0)return/* @__PURE__ */ new Map;if(t!==null){var n=[`get`,`set`,`delete`,`clear`].filter(function(e){return t&&typeof t[e]!=`function`});if(n.length!==0)throw TypeError(`Custom cacheMap missing methods: `+n.join(`, `))}return t}(t),this._batch=null,this.name=t&&t.name?t.name:null}var t=e.prototype;return t.load=function(e){if(e==null)throw TypeError(`The loader.load() function must be called with a value, but got: `+String(e)+`.`);var t=function(e){var t=e._batch;if(t!==null&&!t.hasDispatched&&t.keys.length and returns Promise>, but the function errored synchronously: `+String(n)+`.`))}if(!n||typeof n.then!=`function`)return a(e,t,TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: `+String(n)+`.`));n.then(function(e){if(!s(e))throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: `+String(e)+`.`);if(e.length!==t.keys.length)throw TypeError(`DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys. Keys: `+String(t.keys)+` Values: `+String(e));o(t);for(var n=0;n but got: `+e+`.`);for(var t=[],n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}t.exports=r}})(),1),M={background:0,"user-visible":1,"user-blocking":2},N={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},P=(O=class e{getOffset(){return this.offset}ensureLength(e){let t=this.bytes.length;if(!(this.offset+e<=t))throw Error(`Reading out of bounds`)}readUint8(){let e=N.Uint8;this.ensureLength(e);let t=this.view.getUint8(this.offset);return this.offset+=e,t}readUint16(){let e=N.Uint16;this.ensureLength(e);let t=this.view.getUint16(this.offset);return this.offset+=e,t}readUint32(){let e=N.Uint32;this.ensureLength(e);let t=this.view.getUint32(this.offset);return this.offset+=e,t}readUint64(){let e=this.readBigUint64();return Number(e)}readBigUint64(){let e=N.BigUint64;this.ensureLength(e);let t=this.view.getBigUint64(this.offset);return this.offset+=e,t}readInt8(){let e=N.Int8;this.ensureLength(e);let t=this.view.getInt8(this.offset);return this.offset+=e,t}readInt16(){let e=N.Int16;this.ensureLength(e);let t=this.view.getInt16(this.offset);return this.offset+=e,t}readInt32(){let e=N.Int32;this.ensureLength(e);let t=this.view.getInt32(this.offset);return this.offset+=e,t}readInt64(){let e=this.readBigInt64();return Number(e)}readBigInt64(){let e=N.BigInt64;this.ensureLength(e);let t=this.view.getBigInt64(this.offset);return this.offset+=e,t}readFloat32(){let e=N.Float32;this.ensureLength(e);let t=this.view.getFloat32(this.offset);return this.offset+=e,t}readFloat64(){let e=N.Float64;this.ensureLength(e);let t=this.view.getFloat64(this.offset);return this.offset+=e,t}readBytes(e){let t=this.offset,n=t+e,r=this.bytes.subarray(t,n);return this.offset=n,r}readString(){let t=this.readUint32(),n=this.readBytes(t);return e.textDecoder.decode(n)}readJson(){let e=this.readString();return JSON.parse(e)}constructor(e){m(this,`bytes`,void 0),m(this,`offset`,0),m(this,`view`,void 0),this.bytes=e,this.view=_(this.bytes)}},m(O,`textDecoder`,new TextDecoder),O),$e=1024,et=1.5,F=e=>2**e-1,I=e=>-(2**(e-1)),L=e=>2**(e-1)-1,R={Uint8:0,Uint16:0,Uint32:0,Uint64:0,BigUint64:0,Int8:I(8),Int16:I(16),Int32:I(32),Int64:-(2**53-1),BigInt64:-(BigInt(2)**BigInt(63))},z={Uint8:F(8),Uint16:F(16),Uint32:F(32),Uint64:2**53-1,BigUint64:BigInt(2)**BigInt(64)-BigInt(1),Int8:L(8),Int16:L(16),Int32:L(32),Int64:2**53-1,BigInt64:BigInt(2)**BigInt(63)-BigInt(1)},tt=class{getOffset(){return this.offset}slice(e=0,t=this.offset){return this.bytes.slice(e,t)}subarray(e=0,t=this.offset){return this.bytes.subarray(e,t)}ensureLength(e){let t=this.bytes.length;if(this.offset+e<=t)return;let n=new Uint8Array(Math.ceil(t*et)+e);n.set(this.bytes),this.bytes=n,this.view=_(n)}writeUint8(e){b(e,R.Uint8,z.Uint8,`Uint8`);let t=N.Uint8;this.ensureLength(t),this.view.setUint8(this.offset,e),this.offset+=t}writeUint16(e){b(e,R.Uint16,z.Uint16,`Uint16`);let t=N.Uint16;this.ensureLength(t),this.view.setUint16(this.offset,e),this.offset+=t}writeUint32(e){b(e,R.Uint32,z.Uint32,`Uint32`);let t=N.Uint32;this.ensureLength(t),this.view.setUint32(this.offset,e),this.offset+=t}writeUint64(e){b(e,R.Uint64,z.Uint64,`Uint64`);let t=BigInt(e);this.writeBigUint64(t)}writeBigUint64(e){b(e,R.BigUint64,z.BigUint64,`BigUint64`);let t=N.BigUint64;this.ensureLength(t),this.view.setBigUint64(this.offset,e),this.offset+=t}writeInt8(e){b(e,R.Int8,z.Int8,`Int8`);let t=N.Int8;this.ensureLength(t),this.view.setInt8(this.offset,e),this.offset+=t}writeInt16(e){b(e,R.Int16,z.Int16,`Int16`);let t=N.Int16;this.ensureLength(t),this.view.setInt16(this.offset,e),this.offset+=t}writeInt32(e){b(e,R.Int32,z.Int32,`Int32`);let t=N.Int32;this.ensureLength(t),this.view.setInt32(this.offset,e),this.offset+=t}writeInt64(e){b(e,R.Int64,z.Int64,`Int64`);let t=BigInt(e);this.writeBigInt64(t)}writeBigInt64(e){b(e,R.BigInt64,z.BigInt64,`BigInt64`);let t=N.BigInt64;this.ensureLength(t),this.view.setBigInt64(this.offset,e),this.offset+=t}writeFloat32(e){let t=N.Float32;this.ensureLength(t),this.view.setFloat32(this.offset,e),this.offset+=t}writeFloat64(e){let t=N.Float64;this.ensureLength(t),this.view.setFloat64(this.offset,e),this.offset+=t}writeBytes(e){let t=e.length;this.ensureLength(t),this.bytes.set(e,this.offset),this.offset+=t}encodeString(e){let t=this.encodedStrings.get(e);if(t)return t;let n=this.encoder.encode(e);return this.encodedStrings.set(e,n),n}writeString(e){let t=this.encodeString(e),n=t.length;this.writeUint32(n),this.writeBytes(t)}writeJson(e){let t=JSON.stringify(e);this.writeString(t)}constructor(){m(this,`offset`,0),m(this,`bytes`,new Uint8Array($e)),m(this,`view`,_(this.bytes)),m(this,`encoder`,new TextEncoder),m(this,`encodedStrings`,/* @__PURE__ */ new Map)}},B=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return v(S(n),`Invalid chunkId`),v(S(r),`Invalid offset`),v(S(i),`Invalid length`),new e(n,r,i)}toString(){return`${this.chunkId}/${this.offset}/${this.length}`}static read(t){let n=t.readUint16(),r=t.readUint32(),i=t.readUint32();return new e(n,r,i)}write(e){e.writeUint16(this.chunkId),e.writeUint32(this.offset),e.writeUint32(this.length)}compare(e){return this.chunkIde.chunkId?1:this.offsete.offset?1:(v(this.length===e.length),0)}constructor(e,t,n){m(this,`chunkId`,void 0),m(this,`offset`,void 0),m(this,`length`,void 0),this.chunkId=e,this.offset=t,this.length=n}},(e=>{e.read=function(e){let t=e.readUint8();switch(t){case 0:return null;case 1:return re(e);case 2:return oe(e);case 3:return le(e);case 4:return fe(e);case 5:return he(e);case 6:return ve(e);case 7:return xe(e);case 8:return we(e);case 9:return De(e);case 10:return Ae(e);case 11:return Ne(e);case 12:return Ie(e);case 13:return ze(e);default:y(t)}},e.write=function(e,t){let n=w(t);if(e.writeUint8(n),!C(t))switch(t.type){case`array`:return ie(e,t);case`boolean`:return se(e,t);case`color`:return ue(e,t);case`date`:return pe(e,t);case`enum`:return ge(e,t);case`file`:return ye(e,t);case`link`:return Se(e,t);case`number`:return Te(e,t);case`object`:return Oe(e,t);case`responsiveimage`:return je(e,t);case`richtext`:return Pe(e,t);case`vectorsetitem`:return Be(e,t);case`string`:return Le(e,t);default:y(t)}},e.compare=function(e,t,n){let r=w(e),i=w(t);if(ri)return 1;if(C(e)||C(t))return 0;switch(e.type){case`array`:return v(t.type===`array`),ae(e,t,n);case`boolean`:return v(t.type===`boolean`),ce(e,t);case`color`:return v(t.type===`color`),de(e,t);case`date`:return v(t.type===`date`),me(e,t);case`enum`:return v(t.type===`enum`),_e(e,t);case`file`:return v(t.type===`file`),be(e,t);case`link`:return v(t.type===`link`),Ce(e,t);case`number`:return v(t.type===`number`),Ee(e,t);case`object`:return v(t.type===`object`),ke(e,t,n);case`responsiveimage`:return v(t.type===`responsiveimage`),Me(e,t);case`richtext`:return v(t.type===`richtext`),Fe(e,t);case`vectorsetitem`:return v(t.type===`vectorsetitem`),Ve(e,t);case`string`:return v(t.type===`string`),Re(e,t,n);default:y(e)}}})(k||={}),nt=class e{sortEntries(){this.entries.sort((e,t)=>{for(let n=0;n{let e=[];for(let t=0;te.getField(t)??null);this.entries.push({values:n,pointer:t})}constructor(e,t){m(this,`fieldNames`,void 0),m(this,`options`,void 0),m(this,`entries`,[]),this.fieldNames=e,this.options=t}},V=3,rt=250,it=[408,429,500,502,503,504],H=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!it.includes(r.status)||++n>V)return r}catch(e){if(t?.signal?.aborted||++n>V)throw e}await He(n)}},at=class{read(e,t){for(let n of this.chunks){if(en.end)continue;if(e+t>n.end)break;let r=e-n.start,i=r+t;return n.data.slice(r,i)}throw Error(`Missing data`)}write(e,t){let n=e,r=n+t.length,i=0,a=this.chunks.length;for(;ie.end)){if(n>e.start){let r=n-e.start;t=E(e.data.subarray(0,r),t),n=e.start}break}}for(;a>i;a--){let e=this.chunks[a-1];if(v(e,`Missing chunk`),!(r{let e=g(this.modelPrioritySources);if(e)return f({batch:!0,priority:e})})}async getModel(e){return this.model||(e&&this.modelPrioritySources.add(e),this.modelPromise??=this.loadModel().finally(()=>{this.modelPrioritySources.clear()}),this.model??=await this.modelPromise),this.model}async lookupItems(e,t){v(e.length===this.fields.length,`Invalid query length`);let n=[(await this.getModel(t)).entries];for(let[r,i]of e.entries()){let e=[];for(let a of n){let n,o=t?f({batch:!0,priority:h(t)}):void 0;switch(o&&await o,i.type){case`All`:n=[a];break;case`Equals`:n=this.queryEquals(a,i,r);break;case`NotEquals`:n=this.queryNotEquals(a,i,r);break;case`LessThan`:n=this.queryLessThan(a,i,r);break;case`GreaterThan`:n=this.queryGreaterThan(a,i,r);break;case`Contains`:n=await this.queryContains(a,i,r,t);break;case`StartsWith`:n=await this.queryStartsWith(a,i,r,t);break;case`EndsWith`:n=await this.queryEndsWith(a,i,r,t);break;default:y(i)}e.push(...n)}n=e}let r=[];for(let e of n)for(let n of e){let e=t?f({batch:!0,priority:h(t)}):void 0;e&&await e;let i={};for(let e=0;e0?[a]:[]}queryNotEquals(e,t,n){let r=this.getLeftMost(e,n,t.value),i=this.getRightMost(e,n,t.value),a=[],o=e.slice(0,r);o.length>0&&a.push(o);let s=e.slice(i+1);return s.length>0&&a.push(s),a}queryLessThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getRightMost(e,n,t.value),i=e.slice(0,r+1);return i.length>0?[i]:[]}let i=this.getLeftMost(e,n,t.value),a=e.slice(0,i);return a.length>0?[a]:[]}queryGreaterThan(e,t,n){let r=this.getRightMost(e,n,null);if(e=e.slice(r+1),t.inclusive){let r=this.getLeftMost(e,n,t.value),i=e.slice(r);return i.length>0?[i]:[]}let i=this.getRightMost(e,n,t.value),a=e.slice(i+1);return a.length>0?[a]:[]}queryContains(e,t,n,r){return this.findItems(e,n,r,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.includes(r)})}queryStartsWith(e,t,n,r){return this.findItems(e,n,r,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.startsWith(r)})}queryEndsWith(e,t,n,r){return this.findItems(e,n,r,e=>{if(e?.type!==p.String||t.value?.type!==p.String)return!1;let n=e.value,r=t.value.value;return this.collation.type===0&&(n=n.toLowerCase(),r=r.toLowerCase()),n.endsWith(r)})}getLeftMost(e,t,n){let r=0,i=e.length;for(;r>1,o=e[a].values[t];0>k.compare(o,n,this.collation)?r=a+1:i=a}return r}getRightMost(e,t,n){let r=0,i=e.length;for(;r>1,o=e[a].values[t];k.compare(o,n,this.collation)>0?i=a:r=a+1}return i-1}async findItems(e,t,n,r){let i=[],a=0;for(let o=0;o{if(!e.ok)throw Error(`Request failed: ${e.status} ${e.statusText}`);let t=await e.arrayBuffer(),n=new P(new Uint8Array(t)),r=[],i=n.readUint32();for(let e=0;e{this.isScanning=!1,this.scanPrioritySources.clear()})),this.itemsPromise}resolveItem(e,t){let n=this.itemPrioritySources.get(e);n||(n=/* @__PURE__ */ new Set,this.itemPrioritySources.set(e,n)),t&&n.add(t);let r=this.itemLoader.load({pointer:e,prioritySources:n}),i=()=>this.itemPrioritySources.delete(e);return r.then(i,i),r}constructor(e,t){m(this,`id`,void 0),m(this,`url`,void 0),m(this,`itemsPromise`,void 0),m(this,`isScanning`,!1),m(this,`scanPrioritySources`,/* @__PURE__ */ new Set),m(this,`itemPrioritySources`,/* @__PURE__ */ new Map),m(this,`itemLoader`,new Qe.default(async e=>{let t=e.map(({pointer:e})=>{let t=B.fromString(e);return{from:t.offset,to:t.offset+t.length}}),n=await T(this.url,t),r=[];for(let t=0;te.pointer})),this.id=e,this.url=t}},st=class{async scanItems(e){return(await Promise.all(this.chunks.map(async t=>t.scanItems(e)))).flat()}resolveItems(e,t){return Promise.all(e.map(e=>{let n=B.fromString(e),r=this.chunks[n.chunkId];return v(r,`Missing chunk`),r.resolveItem(e,t)}))}compareItems(e,t){let n=B.fromString(e.pointer),r=B.fromString(t.pointer);return n.compare(r)}compareValues(e,t,n){return k.compare(e,t,n)}constructor(e){m(this,`options`,void 0),m(this,`id`,void 0),m(this,`schema`,void 0),m(this,`indexes`,void 0),m(this,`resolveRichText`,void 0),m(this,`resolveVectorSetItem`,void 0),m(this,`chunks`,void 0),this.options=e,this.chunks=this.options.chunks.map((e,t)=>new ot(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}})))()}function lt(e){return typeof e==`object`&&!!e&&!/*#__PURE__*/ r(e)&&mt in e}function ut(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function dt(e,t,n){for(let[r,i]of Object.entries(t)){let t=e[r];typeof i==`number`?e[r]=n(i,t):ft(t,i,n)}}function ft(e,t,n){if(typeof t!=`number`){if(Array.isArray(t)){if(!Array.isArray(e))return;let[r]=t;for(let t=0;t{let o=r.get(a);if(o)return o;let c=function r(a){switch(a[0]){case 1:{let[,...e]=a,i=e.map(r);return/*#__PURE__*/ n(t,void 0,...i)}case 2:{let[,e,...t]=a,i=t.map(r);return/*#__PURE__*/ n(u,e,...i)}case 3:{let[,t,n,o]=a;dt(n,o,(t,n)=>{if(t===1)return n&&r(n);if(typeof n!=`string`)return n;let i=e[n];return i?(lt(i)&&i.preload(),i):n});let s=e[t];return ut(s,`Module not found`),lt(s)&&s.preload(),/*#__PURE__*/ i(d,{componentIdentifier:t,children:e=>/*#__PURE__*/ i(te,{component:s,props:{...e,...n}})})}case 4:{let[,e,t,...i]=a,o=i.map(r);return n(e===`a`?s.a:e,t,...o)}case 5:{let[,e]=a;return e}}}(JSON.parse(a));return r.set(a,c),c}}var W,G,mt,ht,gt;function _t(){return(_t=e((()=>{a(),l(),o(),mt=`preload`,ht=((W=ht||{})[W.Fragment=1]=`Fragment`,W[W.Link=2]=`Link`,W[W.Module=3]=`Module`,W[W.Tag=4]=`Tag`,W[W.Text=5]=`Text`,W),gt=((G=gt||{})[G.RichText=1]=`RichText`,G[G.VectorSetItem=2]=`VectorSetItem`,G)})))()}var K,q,vt,J,yt,bt,xt,St,Y,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,X,It,Lt,Rt,zt,Z,Q,Bt,Vt,Ht;function $(){return($=e((()=>{l(),ct(),_t(),K={createdAt:{isNullable:!0,type:p.Date},DZBViJZPr:{isNullable:!0,type:p.ResponsiveImage},GY5msiSDt:{isNullable:!0,type:p.String},id:{isNullable:!1,type:p.String},kjT_b9ms4:{isNullable:!0,type:p.String},KUe3LjeUQ:{isNullable:!0,type:p.String},LC0U0S1p7:{isNullable:!0,type:p.String},LswRQwHkF:{isNullable:!0,type:p.ResponsiveImage},M_N3lkpXX:{isNullable:!0,type:p.String},nextItemId:{isNullable:!0,type:p.String},ny4c2qdMg:{isNullable:!0,type:p.String},OJHUvNCd6:{isNullable:!0,type:p.String},PlRSqdKiS:{isNullable:!0,type:p.ResponsiveImage},previousItemId:{isNullable:!0,type:p.String},re7kQlckZ:{isNullable:!0,type:p.String},sbm9EogBY:{isNullable:!0,type:p.String},updatedAt:{isNullable:!0,type:p.Date},UqULt0yAX:{isNullable:!0,type:p.String},VYSyFP1kL:{isNullable:!0,type:p.String},X4algFR5k:{isNullable:!0,type:p.String}},q=new URL(`./MZ1rHaUNL-indexes-default-0.framercms`,`https://framerusercontent.com/modules/anOgfWcxy66HFjDXTd4Y/3rEIp1tMRn8dyNAzpCxq/MZ1rHaUNL.js`).href.replace(`/modules/`,`/cms/`),vt=[`id`],J={type:1},yt=[`previousItemId`],bt=[`nextItemId`],xt=[`id`,`kjT_b9ms4`],St=[`kjT_b9ms4`,`id`],Y={type:0},Ct=[`ny4c2qdMg`],wt=[`kjT_b9ms4`],Tt=[`VYSyFP1kL`],Et=[`UqULt0yAX`],Dt=[`LswRQwHkF`],Ot=[`LC0U0S1p7`],kt=[`M_N3lkpXX`],At=[`OJHUvNCd6`],jt=[`re7kQlckZ`],Mt=[`X4algFR5k`],Nt=[`sbm9EogBY`],Pt=[`KUe3LjeUQ`],Ft=[`PlRSqdKiS`],X=[`DZBViJZPr`],It=[`GY5msiSDt`],Lt=[],Rt=e=>{let t=Lt[e];if(t)return t().then(e=>e.default)},zt=pt({}),Z=new c,Q={collectionByLocaleId:{default:new st({chunks:[new URL(`./MZ1rHaUNL-chunk-default-0.framercms`,`https://framerusercontent.com/modules/anOgfWcxy66HFjDXTd4Y/3rEIp1tMRn8dyNAzpCxq/MZ1rHaUNL.js`).href.replace(`/modules/`,`/cms/`)],id:`ae411559-5480-4647-b56b-60a4e7d04794default`,indexes:[new U({collation:J,collectionSchema:K,fieldNames:vt,range:{from:0,to:169},url:q}),new U({collation:J,collectionSchema:K,fieldNames:yt,range:{from:169,to:337},url:q}),new U({collation:J,collectionSchema:K,fieldNames:bt,range:{from:337,to:501},url:q}),new U({collation:J,collectionSchema:K,fieldNames:xt,range:{from:501,to:824},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:St,range:{from:824,to:1147},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Ct,range:{from:1147,to:1380},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:wt,range:{from:1380,to:1613},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Tt,range:{from:1613,to:1867},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Et,range:{from:1867,to:2071},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Dt,range:{from:2071,to:5035},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Ot,range:{from:5035,to:5594},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:kt,range:{from:5594,to:6484},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:At,range:{from:6484,to:7164},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:jt,range:{from:7164,to:7922},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Mt,range:{from:7922,to:8579},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Nt,range:{from:8579,to:9168},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Pt,range:{from:9168,to:9753},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:Ft,range:{from:9753,to:12728},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:X,range:{from:12728,to:15696},url:q}),new U({collation:Y,collectionSchema:K,fieldNames:It,range:{from:15696,to:15998},url:q})],resolveRichText:zt,resolveVectorSetItem:Rt,schema:K})},displayName:`Projects`,id:`ae411559-5480-4647-b56b-60a4e7d04794`},ee(Q,{ny4c2qdMg:{defaultValue:``,title:`Title`,type:p.String},kjT_b9ms4:{preventLocalization:!1,title:`Slug`,type:p.String},VYSyFP1kL:{defaultValue:``,title:`Category`,type:p.String},UqULt0yAX:{defaultValue:`Concept Project`,title:`Card Tag`,type:p.String},LswRQwHkF:{title:`Cover Image`,type:p.ResponsiveImage},LC0U0S1p7:{defaultValue:``,displayTextArea:!0,title:`Summary`,type:p.String},M_N3lkpXX:{defaultValue:``,displayTextArea:!0,title:`Project Overview`,type:p.String},OJHUvNCd6:{defaultValue:``,displayTextArea:!0,title:`Client Goals`,type:p.String},re7kQlckZ:{defaultValue:``,displayTextArea:!0,title:`Design Direction`,type:p.String},X4algFR5k:{defaultValue:``,displayTextArea:!0,title:`Selected Plants & Materials`,type:p.String},sbm9EogBY:{defaultValue:``,displayTextArea:!0,title:`Scope of Work`,type:p.String},KUe3LjeUQ:{defaultValue:``,displayTextArea:!0,title:`Final Outcome`,type:p.String},PlRSqdKiS:{title:`Gallery Image 1`,type:p.ResponsiveImage},DZBViJZPr:{title:`Gallery Image 2`,type:p.ResponsiveImage},GY5msiSDt:{defaultValue:``,title:`Related Service`,type:p.String},createdAt:{title:`Created`,type:p.Date},updatedAt:{title:`Updated`,type:p.Date},previousItemId:{dataIdentifier:`local-module:collection/MZ1rHaUNL:default`,title:`Previous`,type:p.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/MZ1rHaUNL:default`,title:`Next`,type:p.CollectionReference}}),Bt={},Vt={async getSlugByRecordId(e,t){let[n]=await Z.query({from:{data:Q,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`kjT_b9ms4`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.kjT_b9ms4},async getRecordIdBySlug(e,t){let[n]=await Z.query({from:{data:Q,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`kjT_b9ms4`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id},getContentLocaleIdByRecordId(e,t){}},Ht={exports:{default:{type:`data`,name:`data`,annotations:{framerCollectionId:`MZ1rHaUNL`,framerContractVersion:`1`,framerSlug:`kjT_b9ms4`,framerRecordIdKey:`id`,framerCollectionUtils:`1`,framerAutoSizeImages:`true`,framerEnumToDisplayNameUtils:`2`,framerColorSyntax:`false`,framerData:`true`}},enumToDisplayNameFunctions:{type:`variable`,annotations:{framerContractVersion:`1`}},utils:{type:`variable`,annotations:{framerContractVersion:`1`}},__FramerMetadata__:{type:`variable`}}}})))()}export{Vt as a,$ as i,Ht as n,Bt as r,Q as t}; //# sourceMappingURL=MZ1rHaUNL.BwOIrqs_.mjs.map