import{t as e}from"./rolldown-runtime.s3yPkF3n.mjs";import{I as t,N as n,R as r,c as i,f as a,o,u as s,w as c}from"./react.eNNBfCGs.mjs";import{S as l}from"./motion.Dwr-SKqy.mjs";import{A as u,C as d,Y as f,_ as ee,o as p,r as te,t as ne}from"./framer.Bj-T8EHK.mjs";function m(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function h(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function g(e){throw Error(`Unexpected value: ${e}`)}function _(e,t,n,r){h(e>=t,e,`outside lower bound for`,r),h(e<=n,e,`outside upper bound for`,r)}function v(e){return typeof e==`string`}function y(e){return Number.isFinite(e)}function b(e){return e===null}function x(e){if(b(e))return 0;switch(e.type){case p.Array:return 1;case p.Boolean:return 2;case p.Color:return 3;case p.Date:return 4;case p.Enum:return 5;case p.File:return 6;case p.ResponsiveImage:return 10;case p.Link:return 7;case p.Number:return 8;case p.Object:return 9;case p.RichText:return 11;case p.String:return 12;case p.VectorSetItem:return 13;default:g(e)}}function re(e){let t=e.readUint16(),n=[];for(let r=0;ri)return 1;for(let i=0;it.value?1:0}function le(e){return{type:p.Color,value:e.readString()}}function ue(e,t){e.writeString(t.value)}function de(e,t){return e.valuet.value?1:0}function fe(e){let t=e.readInt64(),n=new Date(t);return{type:p.Date,value:n.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?1:0}function he(e){return{type:p.Enum,value:e.readString()}}function ge(e,t){e.writeString(t.value)}function _e(e,t){return e.valuet.value?1:0}function ve(e){return{type:p.File,value:e.readString()}}function ye(e,t){e.writeString(t.value)}function be(e,t){return e.valuet.value?1:0}function xe(e){return{type:p.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?1:0}function we(e){return{type:p.Number,value:e.readFloat64()}}function Te(e,t){e.writeFloat64(t.value)}function Ee(e,t){return e.valuet.value?1:0}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=w.compare(c,l,n);if(u!==0)return u}return 0}function Ae(e){return{type:p.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?1:0}function Ne(e){let t=e.readInt8();if(t===0)return{type:p.RichText,value:e.readUint32()};if(t===1)return{type:p.RichText,value:e.readString()};throw Error(`Invalid rich text pointer`)}function Pe(e,t){if(y(t.value)){e.writeInt8(0),e.writeUint32(t.value);return}if(v(t.value)){e.writeInt8(1),e.writeString(t.value);return}throw Error(`Invalid rich text pointer`)}function Fe(e,t){let n=e.value,r=t.value;if(y(n)&&y(r)||v(n)&&v(r))return nr?1:0;throw Error(`Invalid rich text pointer`)}function Ie(e){return{type:p.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?1:0}function ze(e){return{type:p.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?1:0}async function He(e){let t=Math.floor(Ze*(Math.random()+1)*2**(e-1));await new Promise(e=>{setTimeout(e,t)})}async function S(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 U(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 $e,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 C(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){h(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 w,T,E,D,O,k,A,j,We,Ge,Ke,M,qe,N,P,Je,F,I,L,R,z,B,Ye,V,Xe,H,Ze,Qe,U,$e,W,G,et,tt,nt=e((()=>{t(),f(),T=Object.create,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,k=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,j=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,We=(e,t)=>function(){return t||(0,e[O(e)[0]])((t={exports:{}}).exports,t),t.exports},Ge=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of O(t))A.call(e,i)||i===n||E(e,i,{get:()=>t[i],enumerable:!(r=D(t,i))||r.enumerable});return e},Ke=(e,t,n)=>(n=e==null?{}:T(k(e)),Ge(!t&&e&&e.__esModule?n:E(n,`default`,{value:e,enumerable:!0}),e)),M=(e,t,n)=>j(e,typeof t==`symbol`?t:t+``,n),qe=Ke(We({"../../../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),N={Uint8:1,Uint16:2,Uint32:4,BigUint64:8,Int8:1,Int16:2,Int32:4,BigInt64:8,Float32:4,Float64:8},P=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=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 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,M(this,`offset`,0),M(this,`view`),M(this,`decoder`,new TextDecoder),this.view=m(this.bytes)}},r!==void 0&&r.requestIdleCallback,Je=1024,F=1.5,I=e=>2**e-1,L=e=>-(2**(e-1)),R=e=>2**(e-1)-1,z={Uint8:0,Uint16:0,Uint32:0,Uint64:0,BigUint64:0,Int8:L(8),Int16:L(16),Int32:L(32),Int64:-(2**53-1),BigInt64:-(BigInt(2)**BigInt(63))},B={Uint8:I(8),Uint16:I(16),Uint32:I(32),Uint64:2**53-1,BigUint64:BigInt(2)**BigInt(64)-BigInt(1),Int8:R(8),Int16:R(16),Int32:R(32),Int64:2**53-1,BigInt64:BigInt(2)**BigInt(63)-BigInt(1)},Ye=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*F)+e);n.set(this.bytes),this.bytes=n,this.view=m(n)}writeUint8(e){_(e,z.Uint8,B.Uint8,`Uint8`);let t=N.Uint8;this.ensureLength(t),this.view.setUint8(this.offset,e),this.offset+=t}writeUint16(e){_(e,z.Uint16,B.Uint16,`Uint16`);let t=N.Uint16;this.ensureLength(t),this.view.setUint16(this.offset,e),this.offset+=t}writeUint32(e){_(e,z.Uint32,B.Uint32,`Uint32`);let t=N.Uint32;this.ensureLength(t),this.view.setUint32(this.offset,e),this.offset+=t}writeUint64(e){_(e,z.Uint64,B.Uint64,`Uint64`);let t=BigInt(e);this.writeBigUint64(t)}writeBigUint64(e){_(e,z.BigUint64,B.BigUint64,`BigUint64`);let t=N.BigUint64;this.ensureLength(t),this.view.setBigUint64(this.offset,e),this.offset+=t}writeInt8(e){_(e,z.Int8,B.Int8,`Int8`);let t=N.Int8;this.ensureLength(t),this.view.setInt8(this.offset,e),this.offset+=t}writeInt16(e){_(e,z.Int16,B.Int16,`Int16`);let t=N.Int16;this.ensureLength(t),this.view.setInt16(this.offset,e),this.offset+=t}writeInt32(e){_(e,z.Int32,B.Int32,`Int32`);let t=N.Int32;this.ensureLength(t),this.view.setInt32(this.offset,e),this.offset+=t}writeInt64(e){_(e,z.Int64,B.Int64,`Int64`);let t=BigInt(e);this.writeBigInt64(t)}writeBigInt64(e){_(e,z.BigInt64,B.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(Je)),M(this,`view`,m(this.bytes)),M(this,`encoder`,new TextEncoder),M(this,`encodedStrings`,new Map)}},V=class e{static fromString(t){let[n,r,i]=t.split(`/`).map(Number);return h(y(n),`Invalid chunkId`),h(y(r),`Invalid offset`),h(y(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:(h(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 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:g(t)}},e.write=function(e,t){let n=x(t);if(e.writeUint8(n),!b(t))switch(t.type){case p.Array:return ie(e,t);case p.Boolean:return se(e,t);case p.Color:return ue(e,t);case p.Date:return pe(e,t);case p.Enum:return ge(e,t);case p.File:return ye(e,t);case p.Link:return Se(e,t);case p.Number:return Te(e,t);case p.Object:return Oe(e,t);case p.ResponsiveImage:return je(e,t);case p.RichText:return Pe(e,t);case p.VectorSetItem:return Be(e,t);case p.String:return Le(e,t);default:g(t)}},e.compare=function(e,t,n){let r=x(e),i=x(t);if(ri)return 1;if(b(e)||b(t))return 0;switch(e.type){case p.Array:return h(t.type===p.Array),ae(e,t,n);case p.Boolean:return h(t.type===p.Boolean),ce(e,t);case p.Color:return h(t.type===p.Color),de(e,t);case p.Date:return h(t.type===p.Date),me(e,t);case p.Enum:return h(t.type===p.Enum),_e(e,t);case p.File:return h(t.type===p.File),be(e,t);case p.Link:return h(t.type===p.Link),Ce(e,t);case p.Number:return h(t.type===p.Number),Ee(e,t);case p.Object:return h(t.type===p.Object),ke(e,t,n);case p.ResponsiveImage:return h(t.type===p.ResponsiveImage),Me(e,t);case p.RichText:return h(t.type===p.RichText),Fe(e,t);case p.VectorSetItem:return h(t.type===p.VectorSetItem),Ve(e,t);case p.String:return h(t.type===p.String),Re(e,t,n);default:g(e)}}})(w||={}),Xe=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,M(this,`entries`,[])}},H=3,Ze=250,Qe=[408,429,500,502,503,504],U=async(e,t)=>{let n=0;for(;;){try{let r=await fetch(e,t);if(!Qe.includes(r.status)||++n>H)return r}catch(e){if(t?.signal?.aborted||++n>H)throw e}await He(n)}},$e=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=C(e.data.subarray(0,r),t),n=e.start}break}}for(;a>i;a--){let e=this.chunks[a-1];if(h(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:g(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!==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){return this.findItems(e,n,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){return this.findItems(e,n,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>w.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];w.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 P(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 S(this.url,t)).map((t,n)=>{let r=new P(t),i=G.read(r),a=e[n];return h(a,`Missing pointer`),{pointer:a,data:i.getData()}})},{maxBatchSize:250}))}},tt=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 h(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 w.compare(e,t,n)}constructor(e){this.options=e,M(this,`id`),M(this,`schema`),M(this,`indexes`),M(this,`resolveRichText`),M(this,`resolveVectorSetItem`),M(this,`chunks`),this.chunks=this.options.chunks.map((e,t)=>new et(t,e)),this.schema=e.schema,this.indexes=e.indexes,this.resolveRichText=e.resolveRichText,this.resolveVectorSetItem=e.resolveVectorSetItem,this.id=e.id}}}));function rt(e){return typeof e==`object`&&!!e&&!a(e)&&ot in e}function it(e,...t){if(!e)throw Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``))}function at(e){let t=new Map;return r=>{let a=t.get(r);if(a)return a;let o=function t(r){switch(r[0]){case 1:{let[,...e]=r;return s(n,void 0,...e.map(t))}case 2:{let[,e,...n]=r;return s(ee,e,...n.map(t))}case 3:{let[,n,a,o]=r;for(let e of o){let n=a[e];n&&(a[e]=t(n))}let s=e[n];return it(s,`Module not found`),rt(s)&&s.preload(),i(te,{componentIdentifier:n,children:e=>i(ne,{component:s,props:{...e,...a}})})}case 4:{let[,e,n,...i]=r,a=i.map(t);return s(e===`a`?l.a:e,n,...a)}case 5:{let[,e]=r;return e}}}(JSON.parse(r));return t.set(r,o),o}}var K,ot,st,ct=e((()=>{t(),o(),f(),c(),r!==void 0&&r.requestIdleCallback,ot=`preload`,st=((K=st||{})[K.Fragment=1]=`Fragment`,K[K.Link=2]=`Link`,K[K.Module=3]=`Module`,K[K.Tag=4]=`Tag`,K[K.Text=5]=`Text`,K)})),q,lt,J,ut,dt,ft,pt,mt,Y,ht,gt,_t,vt,yt,bt,xt,St,Ct,X,Z,wt,Q,Tt,Et,$,Dt=e((()=>{f(),nt(),ct(),q={createdAt:{isNullable:!0,type:p.Date},hQl_iPA_q:{isNullable:!0,type:p.ResponsiveImage},id:{isNullable:!1,type:p.String},ijRfj7Adk:{isNullable:!0,type:p.String},KBZ0y8G78:{isNullable:!0,type:p.RichText},KtuZYoOMc:{isNullable:!0,type:p.String},lVUTMfGEP:{isNullable:!0,type:p.String},nextItemId:{isNullable:!0,type:p.String},previousItemId:{isNullable:!0,type:p.String},rPXl1Qv0g:{isNullable:!0,type:p.Date},updatedAt:{isNullable:!0,type:p.Date},USYdOjtja:{isNullable:!0,type:p.Enum}},lt=[`id`],J={type:1},ut=[`previousItemId`],dt=[`nextItemId`],ft=[`id`,`lVUTMfGEP`],pt=[`lVUTMfGEP`,`id`],mt=[`KtuZYoOMc`],Y={type:0},ht=[`lVUTMfGEP`],gt=[`rPXl1Qv0g`],_t=[`hQl_iPA_q`],vt=[`KBZ0y8G78`],yt=[`USYdOjtja`],bt=[`ijRfj7Adk`],xt=[],St=e=>{let t=xt[e];if(t)return t().then(e=>e.default)},Ct=at({}),X=new d,Z={collectionByLocaleId:{default:new tt({chunks:[new URL(`./tEToNfAOb-chunk-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)],id:`24f788b6-f4e4-45ce-9dbf-5ba08d3032c0default`,indexes:[new W({collation:J,collectionSchema:q,fieldNames:lt,range:{from:0,to:145},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:J,collectionSchema:q,fieldNames:ut,range:{from:145,to:289},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:J,collectionSchema:q,fieldNames:dt,range:{from:289,to:429},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:J,collectionSchema:q,fieldNames:ft,range:{from:429,to:1007},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:J,collectionSchema:q,fieldNames:pt,range:{from:1007,to:1585},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:mt,range:{from:1585,to:2096},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:ht,range:{from:2096,to:2598},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:gt,range:{from:2598,to:2725},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:_t,range:{from:2725,to:5069},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:vt,range:{from:5069,to:15946},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:yt,range:{from:15946,to:16098},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)}),new W({collation:Y,collectionSchema:q,fieldNames:bt,range:{from:16098,to:16601},url:new URL(`./tEToNfAOb-indexes-default-0.framercms`,`https://framerusercontent.com/modules/XndiYUUP0Sa3CqPkAmVK/Zrxj3V8EssSs86zKOBZB/tEToNfAOb.js`).href.replace(`/modules/`,`/cms/`)})],resolveRichText:Ct,resolveVectorSetItem:St,schema:q})},displayName:`Articles`,id:`24f788b6-f4e4-45ce-9dbf-5ba08d3032c0`},wt=Z,u(Z,{KtuZYoOMc:{defaultValue:``,title:`Título`,type:p.String},lVUTMfGEP:{preventLocalization:!0,title:`Slug`,type:p.String},rPXl1Qv0g:{defaultValue:``,title:`Date`,type:p.Date},hQl_iPA_q:{title:`Image`,type:p.ResponsiveImage},KBZ0y8G78:{defaultValue:``,title:`Content`,type:p.RichText},USYdOjtja:{defaultValue:`RzpunzPvh`,options:[`RzpunzPvh`,`vUYkr8S6h`,`z_fEczK9o`,`ZALFDe62C`,`u10WJWCP6`],optionTitles:[`Saúde e bem-estar`,`Mercado e legislação`,`Ciência e inovação`,`Estilo de vida e cultura`,`Investimentos e negócios`],title:`Categoria`,type:p.Enum},ijRfj7Adk:{defaultValue:``,maxLength:140,title:`Descrição no card`,type:p.String},createdAt:{title:`Created`,type:p.Date},updatedAt:{title:`Updated`,type:p.Date},previousItemId:{dataIdentifier:`local-module:collection/tEToNfAOb:default`,title:`Previous`,type:p.CollectionReference},nextItemId:{dataIdentifier:`local-module:collection/tEToNfAOb:default`,title:`Next`,type:p.CollectionReference}}),Q=(e,t)=>{switch(t?.fallback,e){case`RzpunzPvh`:return`Saúde e bem-estar`;case`vUYkr8S6h`:return`Mercado e legislação`;case`z_fEczK9o`:return`Ciência e inovação`;case`ZALFDe62C`:return`Estilo de vida e cultura`;case`u10WJWCP6`:return`Investimentos e negócios`;default:return``}},Tt={USYdOjtja:Q},Et={async getSlugByRecordId(e,t){let[n]=await X.query({from:{data:Z,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`lVUTMfGEP`,type:`Identifier`}],where:{left:{name:`id`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.lVUTMfGEP},async getRecordIdBySlug(e,t){let[n]=await X.query({from:{data:Z,type:`Collection`},limit:{type:`LiteralValue`,value:1},select:[{name:`id`,type:`Identifier`}],where:{left:{name:`lVUTMfGEP`,type:`Identifier`},operator:`==`,right:{type:`LiteralValue`,value:e},type:`BinaryOperation`}},t);return n?.id}},$={exports:{utils:{type:`variable`,annotations:{framerContractVersion:`1`}},default:{type:`data`,name:`data`,annotations:{framerContractVersion:`1`,framerData:`true`,framerEnumToDisplayNameUtils:`2`,framerCollectionUtils:`1`,framerCollectionId:`tEToNfAOb`,framerRecordIdKey:`id`,framerColorSyntax:`false`,framerAutoSizeImages:`true`,framerSlug:`lVUTMfGEP`}},USYdOjtjaToDisplayName:{type:`variable`,annotations:{framerContractVersion:`1`}},enumToDisplayNameFunctions:{type:`variable`,annotations:{framerContractVersion:`1`}},__FramerMetadata__:{type:`variable`}}}}));export{wt as a,Dt as i,$ as n,Et as o,Tt as r,Q as t}; //# sourceMappingURL=tEToNfAOb.SHzPmBvR.mjs.map