import{t as e}from"./rolldown-runtime.cphuhz_t.mjs";import{C as t,I as n,N as r,R as i,c as a,f as o,o as s,u as c}from"./react.1oavuedn.mjs";import{w as l}from"./motion.djgz2g5m.mjs";import{D as u,K as d,b as ee,m as te,o as f,r as ne,t as re}from"./framer.brzj6z8l.mjs";function p(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function m(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function h(e){throw Error(`Unexpected value: ${e}`)}function g(e,t,n,r){m(e>=t,e,`outside lower bound for`,r),m(e<=n,e,`outside upper bound for`,r)}function _(e){return typeof e==`string`}function v(e){return Number.isFinite(e)}function y(e){return e===null}function b(e){if(y(e))return 0;switch(e.type){case f.Array:return 1;case f.Boolean:return 2;case f.Color:return 3;case f.Date:return 4;case f.Enum:return 5;case f.File:return 6;case f.ResponsiveImage:return 10;case f.Link:return 7;case f.Number:return 8;case f.Object:return 9;case f.RichText:return 11;case f.String:return 12;case f.VectorSetItem:return 13;default:h(e)}}function ie(e){let t=e.readUint16(),n=[];for(let r=0;ri)return 1;for(let i=0;it.value?1:0}function ue(e){return{type:f.Color,value:e.readString()}}function de(e,t){e.writeString(t.value)}function fe(e,t){return e.valuet.value?1:0}function pe(e){let t=e.readInt64(),n=new Date(t);return{type:f.Date,value:n.toISOString()}}function me(e,t){let n=new Date(t.value).getTime();e.writeInt64(n)}function he(e,t){let n=new Date(e.value),r=new Date(t.value);return nr?1:0}function ge(e){return{type:f.Enum,value:e.readString()}}function _e(e,t){e.writeString(t.value)}function ve(e,t){return e.valuet.value?1:0}function ye(e){return{type:f.File,value:e.readString()}}function be(e,t){e.writeString(t.value)}function xe(e,t){return e.valuet.value?1:0}function Se(e){return{type:f.Link,value:e.readJson()}}function Ce(e,t){e.writeJson(t.value)}function we(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr?1:0}function Te(e){return{type:f.Number,value:e.readFloat64()}}function Ee(e,t){e.writeFloat64(t.value)}function De(e,t){return e.valuet.value?1:0}function Oe(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=S.compare(c,l,n);if(u!==0)return u}return 0}function je(e){return{type:f.ResponsiveImage,value:e.readJson()}}function Me(e,t){e.writeJson(t.value)}function Ne(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return nr?1:0}function Pe(e){let t=e.readInt8();if(t===0)return{type:f.RichText,value:e.readUint32()};if(t===1)return{type:f.RichText,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Fe(e,t){if(v(t.value)){e.writeInt8(0),e.writeUint32(t.value);return}if(_(t.value)){e.writeInt8(1),e.writeString(t.value);return}throw Error(`Invalid rich text pointer`)}function Ie(e,t){let n=e.value,r=t.value;if(v(n)&&v(r)||_(n)&&_(r))return nr?1:0;throw Error(`Invalid rich text pointer`)}function Le(e){return{type:f.String,value:e.readString()}}function Re(e,t){e.writeString(t.value)}function ze(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),ri?1:0}function Be(e){return{type:f.VectorSetItem,value:e.readUint32()}}function Ve(e,t){e.writeUint32(t.value)}function He(e,t){let n=e.value,r=t.value;return nr?1:0}async function Ue(e){let t=Math.floor(Xe*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function We(e,t){let n=Ge(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 W(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 G,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 x(e,t){let n=e.length+t.length,r=new Uint8Array(n);return r.set(e,0),r.set(t,e.length),r}function Ge(e){m(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}var S,C,w,T,E,D,O,k,Ke,qe,Je,A,Ye,j,M,N,P,F,I,L,R,z,B,V,H,U,Xe,Ze,W,G,K,q,Qe,$e,et=e((()=>{n(),d(),C=Object.create,w=Object.defineProperty,T=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,D=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,k=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ke=(e,t)=>function(){return t||(0,e[E(e)[0]])((t={exports:{}}).exports,t),t.exports},qe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of E(t))O.call(e,i)||i===n||w(e,i,{get:()=>t[i],enumerable:!(r=T(t,i))||r.enumerable});return e},Je=(e,t,n)=>(n=e==null?{}:C(D(e)),qe(!t&&e&&e.__esModule?n:w(n,`default`,{value:e,enumerable:!0}),e)),A=(e,t,n)=>k(e,typeof t==`symbol`?t:t+``,n),Ye=Je(Ke({"../../../node_modules/dataloader/index.js"(e,t){var n,r=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 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),j={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},M=class{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=j.Uint8;this.ensureLength(e);let t=this.view.getUint8(this.offset);return this.offset+=e,t}readUint16(){let e=j.Uint16;this.ensureLength(e);let t=this.view.getUint16(this.offset);return this.offset+=e,t}readUint32(){let e=j.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=j.BigUint64;this.ensureLength(e);let t=this.view.getBigUint64(this.offset);return this.offset+=e,t}readInt8(){let e=j.Int8;this.ensureLength(e);let t=this.view.getInt8(this.offset);return this.offset+=e,t}readInt16(){let e=j.Int16;this.ensureLength(e);let t=this.view.getInt16(this.offset);return this.offset+=e,t}readInt32(){let e=j.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=j.BigInt64;this.ensureLength(e);let t=this.view.getBigInt64(this.offset);return this.offset+=e,t}readFloat32(){let e=j.Float32;this.ensureLength(e);let t=this.view.getFloat32(this.offset);return this.offset+=e,t}readFloat64(){let e=j.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 e=this.readUint32(),t=this.readBytes(e);return this.decoder.decode(t)}readJson(){let e=this.readString();return JSON.parse(e)}constructor(e){this.bytes=e,A(this,`offset`,0),A(this,`view`),A(this,`decoder`,new TextDecoder),this.view=p(this.bytes)}},i!==void 0&&i.requestIdleCallback,N=1024,P=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)},B=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*P)+e);n.set(this.bytes),this.bytes=n,this.view=p(n)}writeUint8(e){g(e,R.Uint8,z.Uint8,`Uint8`);let t=j.Uint8;this.ensureLength(t),this.view.setUint8(this.offset,e),this.offset+=t}writeUint16(e){g(e,R.Uint16,z.Uint16,`Uint16`);let t=j.Uint16;this.ensureLength(t),this.view.setUint16(this.offset,e),this.offset+=t}writeUint32(e){g(e,R.Uint32,z.Uint32,`Uint32`);let t=j.Uint32;this.ensureLength(t),this.view.setUint32(this.offset,e),this.offset+=t}writeUint64(e){g(e,R.Uint64,z.Uint64,`Uint64`);let t=BigInt(e);this.writeBigUint64(t)}writeBigUint64(e){g(e,R.BigUint64,z.BigUint64,`BigUint64`);let t=j.BigUint64;this.ensureLength(t),this.view.setBigUint64(this.offset,e),this.offset+=t}writeInt8(e){g(e,R.Int8,z.Int8,`Int8`);let t=j.Int8;this.ensureLength(t),this.view.setInt8(this.offset,e),this.offset+=t}writeInt16(e){g(e,R.Int16,z.Int16,`Int16`);let t=j.Int16;this.ensureLength(t),this.view.setInt16(this.offset,e),this.offset+=t}writeInt32(e){g(e,R.Int32,z.Int32,`Int32`);let t=j.Int32;this.ensureLength(t),this.view.setInt32(this.offset,e),this.offset+=t}writeInt64(e){g(e,R.Int64,z.Int64,`Int64`);let t=BigInt(e);this.writeBigInt64(t)}writeBigInt64(e){g(e,R.BigInt64,z.BigInt64,`BigInt64`);let t=j.BigInt64;this.ensureLength(t),this.view.setBigInt64(this.offset,e),this.offset+=t}writeFloat32(e){let t=j.Float32;this.ensureLength(t),this.view.setFloat32(this.offset,e),this.offset+=t}writeFloat64(e){let t=j.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(){A(this,`offset`,0),A(this,`bytes`,new Uint8Array(N)),A(this,`view`,p(this.bytes)),A(this,`encoder`,new TextEncoder),A(this,`encodedStrings`,new Map)}},V=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return m(v(n),`Invalid chunkId`),m(v(r),`Invalid offset`),m(v(i),`Invalid length`),new e(n,r,i)}toString(){return`${this.chunkId}/${this.offset}/${this.length}`}static read(t){return new e(t.readUint16(),t.readUint32(),t.readUint32())}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:(m(this.length===e.length),0)}constructor(e,t,n){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 ie(e);case 2:return se(e);case 3:return ue(e);case 4:return pe(e);case 5:return ge(e);case 6:return ye(e);case 7:return Se(e);case 8:return Te(e);case 9:return Oe(e);case 10:return je(e);case 11:return Pe(e);case 12:return Le(e);case 13:return Be(e);default:h(t)}},e.write=function(e,t){let n=b(t);if(e.writeUint8(n),!y(t))switch(t.type){case f.Array:return ae(e,t);case f.Boolean:return ce(e,t);case f.Color:return de(e,t);case f.Date:return me(e,t);case f.Enum:return _e(e,t);case f.File:return be(e,t);case f.Link:return Ce(e,t);case f.Number:return Ee(e,t);case f.Object:return ke(e,t);case f.ResponsiveImage:return Me(e,t);case f.RichText:return Fe(e,t);case f.VectorSetItem:return Ve(e,t);case f.String:return Re(e,t);default:h(t)}},e.compare=function(e,t,n){let r=b(e),i=b(t);if(ri)return 1;if(y(e)||y(t))return 0;switch(e.type){case f.Array:return m(t.type===f.Array),oe(e,t,n);case f.Boolean:return m(t.type===f.Boolean),le(e,t);case f.Color:return m(t.type===f.Color),fe(e,t);case f.Date:return m(t.type===f.Date),he(e,t);case f.Enum:return m(t.type===f.Enum),ve(e,t);case f.File:return m(t.type===f.File),xe(e,t);case f.Link:return m(t.type===f.Link),we(e,t);case f.Number:return m(t.type===f.Number),De(e,t);case f.Object:return m(t.type===f.Object),Ae(e,t,n);case f.ResponsiveImage:return m(t.type===f.ResponsiveImage),Ne(e,t);case f.RichText:return m(t.type===f.RichText),Ie(e,t);case f.VectorSetItem:return m(t.type===f.VectorSetItem),He(e,t);case f.String:return m(t.type===f.String),ze(e,t,n);default:h(e)}}})(S||={}),H=class e{sortEntries(){this.entries.sort((e,t)=>{for(let n=0;ne.getField(t)??null);this.entries.push({values:n,pointer:t})}constructor(e,t){this.fieldNames=e,this.options=t,A(this,`entries`,[])}},U=3,Xe=250,Ze=[408,429,500,502,503,504],W=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!Ze.includes(r.status)||++n>U)return r}catch(e){if(t?.signal?.aborted||++n>U)throw e}await Ue(n)}},G=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=x(e.data.subarray(0,r),t),n=e.start}break}}for(;a>i;a--){let e=this.chunks[a-1];if(m(e,`Missing chunk`),!(re.flatMap(e=>{switch(t.type){case`All`:return[e];case`Equals`:return this.queryEquals(e,t,n);case`NotEquals`:return this.queryNotEquals(e,t,n);case`LessThan`:return this.queryLessThan(e,t,n);case`GreaterThan`:return this.queryGreaterThan(e,t,n);case`Contains`:return this.queryContains(e,t,n);case`StartsWith`:return this.queryStartsWith(e,t,n);case`EndsWith`:return this.queryEndsWith(e,t,n);default:h(t)}}),[t.entries]),r=[];for(let e of n)for(let t of e){let e={};for(let n=0;n0?[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){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.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){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.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){return this.findItems(e,n,e=>{if(e?.type!==f.String||t.value?.type!==f.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>S.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];S.compare(o,n,this.collation)>0?i=a:r=a+1}return i-1}findItems(e,t,n){let r=[],i=0;for(let a=0;a{if(!e.ok)throw Error(`Request failed: ${e.status} ${e.statusText}`);let t=await e.arrayBuffer(),n=new M(new Uint8Array(t)),r=[],i=n.readUint32();for(let e=0;e{let t=e.map(e=>{let t=V.fromString(e);return{from:t.offset,to:t.offset+t.length}});return(await We(this.url,t)).map((t,n)=>{let r=new M(t),i=q.read(r),a=e[n];return m(a,`Missing pointer`),{pointer:a,data:i.getData()}})},{maxBatchSize:250}))}},$e=class{async scanItems(){return(await Promise.all(this.chunks.map(async e=>e.scanItems()))).flat()}resolveItems(e){return Promise.all(e.map(e=>{let t=V.fromString(e),n=this.chunks[t.chunkId];return m(n,`Missing chunk`),n.resolveItem(e)}))}compareItems(e,t){let n=V.fromString(e.pointer),r=V.fromString(t.pointer);return n.compare(r)}compareValues(e,t,n){return S.compare(e,t,n)}constructor(e){this.options=e,A(this,`id`),A(this,`schema`),A(this,`indexes`),A(this,`resolveRichText`),A(this,`resolveVectorSetItem`),A(this,`chunks`),this.chunks=this.options.chunks.map((e,t)=>new Qe(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}}));function tt(e){return typeof e==`object`&&!!e&&!o(e)&&it in e}function nt(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function rt(e){let t=new Map;return n=>{let i=t.get(n);if(i)return i;let o=function t(n){switch(n[0]){case 1:{let[,...e]=n;return c(r,void 0,...e.map(t))}case 2:{let[,e,...r]=n;return c(te,e,...r.map(t))}case 3:{let[,r,i,o,s]=n;for(let e of o){let n=i[e];n&&(i[e]=t(n))}for(let t of s){let n=i[t];if(typeof n!=`string`)continue;let r=e[n];r&&(tt(r)&&r.preload(),i[t]=r)}let c=e[r];return nt(c,`Module not found`),tt(c)&&c.preload(),a(ne,{componentIdentifier:r,children:e=>a(re,{component:c,props:{...e,...i}})})}case 4:{let[,e,r,...i]=n,a=i.map(t);return c(e===`a`?l.a:e,r,...a)}case 5:{let[,e]=n;return e}}}(JSON.parse(n));return t.set(n,o),o}}var J,it,at,ot=e((()=>{n(),s(),d(),t(),i!==void 0&&i.requestIdleCallback,it=`preload`,at=((J=at||{})[J.Fragment=1]=`Fragment`,J[J.Link=2]=`Link`,J[J.Module=3]=`Module`,J[J.Tag=4]=`Tag`,J[J.Text=5]=`Text`,J)})),Y,st,X,ct,lt,ut,dt,ft,Z,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Q,$,Ot,kt,At,jt,Mt=e((()=>{d(),et(),ot(),Y={a6_6xSNmM:{isNullable:!0,type:f.String},createdAt:{isNullable:!0,type:f.Date},e3jcr2FZ8:{isNullable:!0,type:f.String},Fu6rjL8y8:{isNullable:!0,type:f.String},id:{isNullable:!1,type:f.String},l7fZlDk1X:{isNullable:!0,type:f.Boolean},mIBtUw6BK:{isNullable:!0,type:f.Link},nextItemId:{isNullable:!0,type:f.String},nK1rDPgPM:{isNullable:!0,type:f.String},previousItemId:{isNullable:!0,type:f.String},RQjzUsTF8:{isNullable:!0,type:f.String},SIJLhMe0g:{definition:{definitions:{id:{isNullable:!1,type:f.String},SBDAcrPSH:{isNullable:!0,type:f.ResponsiveImage}},isNullable:!0,type:f.Object},isNullable:!0,type:f.Array},smpx5PE1F:{definition:{definitions:{id:{isNullable:!1,type:f.String},SBDAcrPSH:{isNullable:!0,type:f.ResponsiveImage}},isNullable:!0,type:f.Object},isNullable:!0,type:f.Array},TSuHCNbcZ:{isNullable:!0,type:f.ResponsiveImage},updatedAt:{isNullable:!0,type:f.Date},WcQkWBjG0:{isNullable:!0,type:f.ResponsiveImage},yraDyz195:{isNullable:!0,type:f.ResponsiveImage},YZyI25P0n:{isNullable:!0,type:f.String}},st=[`id`],X={type:1},ct=[`previousItemId`],lt=[`nextItemId`],ut=[`id`,`YZyI25P0n`],dt=[`YZyI25P0n`,`id`],ft=[`nK1rDPgPM`],Z={type:0},pt=[`l7fZlDk1X`],mt=[`e3jcr2FZ8`],ht=[`YZyI25P0n`],gt=[`RQjzUsTF8`],_t=[`mIBtUw6BK`],vt=[`Fu6rjL8y8`],yt=[`a6_6xSNmM`],bt=[`TSuHCNbcZ`],xt=[`yraDyz195`],St=[`SIJLhMe0g`],Ct=[`WcQkWBjG0`],wt=[`smpx5PE1F`],Tt=[],Et=e=>{let t=Tt[e];if(t)return t().then(e=>e.default)},Dt=rt({}),Q=new ee,$={collectionByLocaleId:{default:new $e({chunks:[new URL("js/lzlyzjhx_-chunk-default-0.framercms", window.location.origin)],id:`4f514016-e2db-4c00-9ad1-31ca9d6aa51cdefault`,indexes:[new K({collation:X,collectionSchema:Y,fieldNames:st,range:{from:0,to:169},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:X,collectionSchema:Y,fieldNames:ct,range:{from:169,to:337},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:X,collectionSchema:Y,fieldNames:lt,range:{from:337,to:501},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:X,collectionSchema:Y,fieldNames:ut,range:{from:501,to:749},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:X,collectionSchema:Y,fieldNames:dt,range:{from:749,to:997},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:ft,range:{from:997,to:1277},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:pt,range:{from:1277,to:1381},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:mt,range:{from:1381,to:1602},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:ht,range:{from:1602,to:1760},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:gt,range:{from:1760,to:3498},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:_t,range:{from:3498,to:3596},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:vt,range:{from:3596,to:3836},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:yt,range:{from:3836,to:3982},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:bt,range:{from:3982,to:7299},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:xt,range:{from:7299,to:8819},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:St,range:{from:8819,to:16776},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:Ct,range:{from:16776,to:18314},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)}),new K({collation:Z,collectionSchema:Y,fieldNames:wt,range:{from:18314,to:18424},url:new URL("js/lzlyzjhx_-indexes-default-0.framercms", window.location.origin)})],resolveRichText:Dt,resolveVectorSetItem:Et,schema:Y})},displayName:`Works`,id:`4f514016-e2db-4c00-9ad1-31ca9d6aa51c`},Ot=$,u($,{nK1rDPgPM:{defaultValue:``,title:`Title`,type:f.String},l7fZlDk1X:{defaultValue:!1,title:`HasVideo`,type:f.Boolean},e3jcr2FZ8:{defaultValue:``,title:`VideoUrl`,type:f.String},YZyI25P0n:{preventLocalization:!0,title:`Slug`,type:f.String},RQjzUsTF8:{defaultValue:``,title:`Intro`,type:f.String},mIBtUw6BK:{title:`Live Project`,type:f.Link},Fu6rjL8y8:{defaultValue:``,title:`Work Type`,type:f.String},a6_6xSNmM:{defaultValue:``,title:`Year`,type:f.String},TSuHCNbcZ:{title:`Hero`,type:f.ResponsiveImage},yraDyz195:{title:`Full Image 01`,type:f.ResponsiveImage},SIJLhMe0g:{__vekterDefault:[],control:{controls:{SBDAcrPSH:{title:`Image`,type:`responsiveimage`}},type:`object`},maxCount:4,title:`Gallery Grid 01`,type:f.Array},WcQkWBjG0:{title:`Full Image 02`,type:f.ResponsiveImage},smpx5PE1F:{__vekterDefault:[],control:{controls:{SBDAcrPSH:{title:`Image`,type:`responsiveimage`}},type:`object`},maxCount:4,title:`Gallery Grid 02`,type:f.Array},createdAt:{title:`Created`,type:f.Date},updatedAt:{title:`Updated`,type:f.Date},previousItemId:{dataIdentifier:`local-module:collection/lZLyZjHX_:default`,title:`Previous`,type:f.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/lZLyZjHX_:default`,title:`Next`,type:f.CollectionReference}}),kt={},At={async getSlugByRecordId(e,t){let[n]=await Q.query({from:{data:$,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`YZyI25P0n`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.YZyI25P0n},async getRecordIdBySlug(e,t){let[n]=await Q.query({from:{data:$,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`YZyI25P0n`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id}},jt={exports:{utils:{type:`variable`,annotations:{framerContractVersion:`1`}},default:{type:`data`,name:`data`,annotations:{framerContractVersion:`1`,framerRecordIdKey:`id`,framerColorSyntax:`false`,framerCollectionId:`lZLyZjHX_`,framerData:`true`,framerEnumToDisplayNameUtils:`2`,framerSlug:`YZyI25P0n`,framerCollectionUtils:`1`,framerAutoSizeImages:`true`}},enumToDisplayNameFunctions:{type:`variable`,annotations:{framerContractVersion:`1`}},__FramerMetadata__:{type:`variable`}}}}));export{At as a,Ot as i,kt as n,Mt as r,jt as t}; //# sourceMappingURL=lZLyZjHX_.BD7Joyk6.mjs.map