function o(t,e){const n=t[e];if(n===void 0)throw new Error(`Cursor field '${e}' not found in entity`);const r=t.id;if(r!=null){const i={value:String(n),id:String(r)};return Buffer.from(JSON.stringify(i)).toString("base64")}return Buffer.from(String(n)).toString("base64")}export{o as createCursor};
