import{T as x,aC as I,v as p,aB as f}from"./entry.DvY7Va7m.js";const g="data-n-ids";function b(t){var r,d,o,u,a,c;if(typeof t!="string")throw new TypeError("[nuxt] [useId] key must be a string.");t=t.slice(1);const e=p(),n=f();if(!n)throw new TypeError("[nuxt] `useId` must be called within a component setup function.");e._id||(e._id=0),n._nuxtIdIndex||(n._nuxtIdIndex={}),(r=n._nuxtIdIndex)[t]||(r[t]=0);const i=t+":"+n._nuxtIdIndex[t]++;if(e.payload.serverRendered&&e.isHydrating&&!x(I,!1)){const s=((d=n.vnode.el)==null?void 0:d.nodeType)===8&&((u=(o=n.vnode.el)==null?void 0:o.nextElementSibling)!=null&&u.getAttribute)?(a=n.vnode.el)==null?void 0:a.nextElementSibling:n.vnode.el,l=JSON.parse(((c=s==null?void 0:s.getAttribute)==null?void 0:c.call(s,g))||"{}");if(l[i])return l[i]}return t+"_"+e._id++}export{b as u};
