import{rase}from"./chunk-DECur_0Z.js";import{nast,rasn,tasr}from"./jsx-runtime-BpGWiA-R.js";import{aasi,iasa}from"./react-three-fiber.esm-CgPHUpXo.js";import{aaso,iass}from"./SettingsProvider-CCHVZuSg.js";import{nasc,rasl,tasu}from"./useBaseQuery-BcnVzmUC.js";import{tasd}from"./logger-z_EpIdIa.js";import{$asf,Basp,Ctasm,Dash,Dtasg,Fas_,Ftasv,Gasy,Hasb,Htasx,IasS,JasC,Kasw,LasT,MtasE,NasD,NtasO,Otask,Pasee,Qaste,Rasne,Rtasre,Stasie,Tasae,Uasoe,UtasA,Wasse,Wtasce,Xasle,Zasj,_tasue,aasde,atasM,basN,ctasfe,daspe,dtasme,etashe,fasge,ftas_e,gasve,hasye,htasbe,itasP,jasxe,jtasSe,ltasCe,masF,mtaswe,ntasI,oasTe,otasL,ptasEe,qasDe,rtasOe,staske,ttasAe,utasje,vasR,vtasMe,xtasNe,ytasPe,zasFe,ztasIe}from"./three.module-07hRbor4.js";import{iasLe,nasRe,rasze}from"./engineStore-Dkm20jvr.js";import{aasBe,casVe,dasHe,pasUe,tasWe}from"./loaders-VxR5Bl13.js";import{tasGe}from"./Texture-CIsc25mc.js";import{tasKe}from"./FloatingLabel-C7nyg5oz.js";import{casqe,fasJe,lasYe,oasXe,tasZe,uasQe}from"./globalFogUniforms-CtxQvsRj.js";function$e(e,t){returnu({...e,enabled:!0,suspense:!0,throwOnError:c,placeholderData:void0},l,t)}varet=parseInt(`182`.replace(/\D+/g,``));functiontt(e,t){if(t===0)returnconsole.warn(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles.`),e;if(t===2||t===1){letn=e.getIndex();if(n===null){lett=[],r=e.getAttribute(`position`);if(r!==void0){for(lete=0;e<r.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}elsereturnconsole.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.`),e}letr=n.count-2,i=[];if(n)if(t===2)for(lete=1;e<=r;e++)i.push(n.getX(0)),i.push(n.getX(e)),i.push(n.getX(e+1));elsefor(lete=0;e<r;e++)e%2==0?(i.push(n.getX(e)),i.push(n.getX(e+1)),i.push(n.getX(e+2))):(i.push(n.getX(e+2)),i.push(n.getX(e+1)),i.push(n.getX(e)));i.length/3!==r&&console.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.`);leta=e.clone();returna.setIndex(i),a.clearGroups(),a}elsereturnconsole.error(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:`,t),e}functionnt(e){if(typeofTextDecoder<`u`)returnnewTextDecoder().decode(e);lett=``;for(letn=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{returndecodeURIComponent(escape(t))}catch{returnt}}varz=`srgb`,B=`srgb-linear`,rt=3001,it=3e3,at=classextendsle{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){returnnewut(e)}),this.register(function(e){returnnewdt(e)}),this.register(function(e){returnnewbt(e)}),this.register(function(e){returnnewxt(e)}),this.register(function(e){returnnewSt(e)}),this.register(function(e){returnnewpt(e)}),this.register(function(e){returnnewmt(e)}),this.register(function(e){returnnewht(e)}),this.register(function(e){returnnewgt(e)}),this.register(function(e){returnnewlt(e)}),this.register(function(e){returnnew_t(e)}),this.register(function(e){returnnewft(e)}),this.register(function(e){returnnewyt(e)}),this.register(function(e){returnnewvt(e)}),this.register(function(e){returnnewst(e)}),this.register(function(e){returnnewCt(e)}),this.register(function(e){returnnewwt(e)})}load(e,t,n,r){leti=this,a;if(this.resourcePath!==``)a=this.resourcePath;elseif(this.path!==``){lett=j.extractUrlBase(e);a=j.resolveURL(t,this.path)}elsea=j.extractUrlBase(e);this.manager.itemStart(e);leto=function(t){r?r(t):console.error(t),i.manager.itemError(e),i.manager.itemEnd(e)},s=newh(this.manager);s.setPath(this.path),s.setResponseType(`arraybuffer`),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(n){try{i.parse(n,a,function(n){t(n),i.manager.itemEnd(e)},o)}catch(e){o(e)}},n,o)}setDRACOLoader(e){returnthis.dracoLoader=e,this}setDDSLoader()