import{GLTFLoader as i,ArrayItem as s}from"./glTFLoader-D7Ip1ckF.js";import{aG as u,aH as _}from"./index-BZt0m9TU.js";import"./index-xGeN4i2A.js";import"./svelte/svelte_svelte.js";import"./svelte/svelte_animate.js";import"./svelte/svelte_attachments.js";import"./svelte/svelte_easing.js";import"./svelte/svelte_internal_client.js";import"./svelte/svelte_internal_flags_async.js";import"./svelte/svelte_internal_flags_legacy.js";import"./svelte/svelte_internal_flags_tracing.js";import"./svelte/svelte_internal_server.js";import"./svelte/svelte_legacy.js";import"./svelte/svelte_motion.js";import"./svelte/svelte_reactivity.js";import"./svelte/svelte_reactivity_window.js";import"./svelte/svelte_server.js";import"./svelte/svelte_store.js";import"./svelte/svelte_transition.js";import"./svelte/svelte_events.js";import"./bone-YYGb69ru.js";import"./skeleton-CxSQJ60q.js";import"./rawTexture-BbVql4Zp.js";import"./assetContainer-DSQHYjvp.js";import"./objectModelMapping-CUuE-96p.js";const o="EXT_texture_webp";class c{constructor(r){this.name=o,this._loader=r,this.enabled=r.isExtensionUsed(o)}dispose(){this._loader=null}_loadTextureAsync(r,t,m){return i.LoadExtensionAsync(r,t,this.name,async(p,a)=>{const n=t.sampler==null?i.DefaultSampler:s.Get(`${r}/sampler`,this._loader.gltf.samplers,t.sampler),l=s.Get(`${p}/source`,this._loader.gltf.images,a.source);return await this._loader._createTextureAsync(r,n,l,d=>{m(d)},void 0,!t._textureInfo.nonColorData)})}}u(o);_(o,!0,e=>new c(e));export{c as EXT_texture_webp};
