import{aG as n,aH as r}from"./index-CDrXokXW.js";import"./index-DWyDLubb.js";const s="KHR_xmp_json_ld";class i{constructor(t){this.name=s,this.order=100,this._loader=t,this.enabled=this._loader.isExtensionUsed(s)}dispose(){this._loader=null}onLoading(){if(this._loader.rootBabylonMesh===null)return;const t=this._loader.gltf.extensions?.KHR_xmp_json_ld,o=this._loader.gltf.asset?.extensions?.KHR_xmp_json_ld;if(t&&o){const a=+o.packet;t.packets&&a<t.packets.length&&(this._loader.rootBabylonMesh.metadata=this._loader.rootBabylonMesh.metadata||{},this._loader.rootBabylonMesh.metadata.xmp=t.packets[a])}}}n(s);r(s,!0,e=>new i(e));export{i as KHR_xmp_json_ld};
