@flyfish-group/file-viewer 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -16
- package/dist/components/3MFLoader.js +1 -1
- package/dist/components/AMFLoader.js +1 -1
- package/dist/components/AudioViewer.js +1 -1
- package/dist/components/CadViewer.js +1 -1
- package/dist/components/CodeViewer.js +1 -1
- package/dist/components/ColladaLoader.js +1 -1
- package/dist/components/DrawingViewer.js +1 -1
- package/dist/components/EdaViewer.js +1 -1
- package/dist/components/EmailViewer.js +1 -1
- package/dist/components/EpubViewer.js +1 -1
- package/dist/components/FBXLoader.js +1 -1
- package/dist/components/GLTFLoader.js +1 -1
- package/dist/components/ImageViewer.js +1 -1
- package/dist/components/KMZLoader.js +1 -1
- package/dist/components/MarkdownViewer.js +1 -1
- package/dist/components/OBJLoader.js +1 -1
- package/dist/components/OfdViewer.js +1 -1
- package/dist/components/PCDLoader.js +1 -1
- package/dist/components/PLYLoader.js +1 -1
- package/dist/components/PdfView.js +3595 -3564
- package/dist/components/STLLoader.js +1 -1
- package/dist/components/TDSLoader.js +1 -1
- package/dist/components/USDLoader.js +1 -1
- package/dist/components/UmdViewer.js +2 -2
- package/dist/components/VRMLLoader.js +1 -1
- package/dist/components/VTKLoader.js +1 -1
- package/dist/components/XYZLoader.js +1 -1
- package/dist/components/XlsxTable.js +1 -1
- package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
- package/dist/components/_commonjs-dynamic-modules.js +1 -1
- package/dist/components/_commonjsHelpers.js +1 -1
- package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
- package/dist/components/arc.js +1 -1
- package/dist/components/architecture-7EHR7CIX.js +1 -1
- package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
- package/dist/components/az-AZ-76LH7QW2.js +1 -1
- package/dist/components/bg-BG-XCXSNQG7.js +1 -1
- package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
- package/dist/components/bn-BD-2XOGV67Q.js +1 -1
- package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
- package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
- package/dist/components/cfb.js +1 -1
- package/dist/components/channel.js +1 -1
- package/dist/components/chunk-2J33WTMH.js +1 -1
- package/dist/components/chunk-4BX2VUAB.js +1 -1
- package/dist/components/chunk-55IACEB6.js +1 -1
- package/dist/components/chunk-727SXJPM.js +1 -1
- package/dist/components/chunk-AQP2D5EJ.js +1 -1
- package/dist/components/chunk-FMBD7UC4.js +1 -1
- package/dist/components/chunk-ND2GUHAM.js +1 -1
- package/dist/components/chunk-QZHKN3VN.js +1 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
- package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
- package/dist/components/cytoscape.esm.js +1 -1
- package/dist/components/da-DK-5WZEPLOC.js +1 -1
- package/dist/components/dagre-BM42HDAG.js +1 -1
- package/dist/components/de-DE-XR44H4JA.js +1 -1
- package/dist/components/defaultLocale.js +1 -1
- package/dist/components/diagram-2AECGRRQ.js +1 -1
- package/dist/components/diagram-5GNKFQAL.js +1 -1
- package/dist/components/diagram-KO2AKTUF.js +1 -1
- package/dist/components/diagram-LMA3HP47.js +1 -1
- package/dist/components/diagram-OG6HWLK6.js +1 -1
- package/dist/components/directory-open-01563666.js +1 -1
- package/dist/components/directory-open-4ed118d0.js +1 -1
- package/dist/components/docx-preview.js +2 -2
- package/dist/components/el-GR-BZB4AONW.js +1 -1
- package/dist/components/en-B4ZKOASM.js +1 -1
- package/dist/components/erDiagram-TEJ5UH35.js +1 -1
- package/dist/components/es-ES-U4NZUMDT.js +1 -1
- package/dist/components/eu-ES-A7QVB2H4.js +1 -1
- package/dist/components/eventmodeling-FCH6USID.js +1 -1
- package/dist/components/fa-IR-HGAKTJCU.js +1 -1
- package/dist/components/fflate.module.js +1 -1
- package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
- package/dist/components/file-open-002ab408.js +1 -1
- package/dist/components/file-open-7c801643.js +1 -1
- package/dist/components/file-save-3189631c.js +1 -1
- package/dist/components/file-save-745eba88.js +1 -1
- package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
- package/dist/components/fr-FR-RHASNOE6.js +1 -1
- package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
- package/dist/components/gitGraph-WXDBUCRP.js +1 -1
- package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
- package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/he-IL-6SHJWFNN.js +1 -1
- package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
- package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
- package/dist/components/id-ID-SAP4L64H.js +1 -1
- package/dist/components/image-GAAHSSAO.js +1 -1
- package/dist/components/image-blob-reduce.esm.js +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +2 -2
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +1 -1
- package/dist/components/info-J43DQDTF.js +1 -1
- package/dist/components/infoDiagram-5YYISTIA.js +1 -1
- package/dist/components/init.js +1 -1
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
- package/dist/components/it-IT-JPQ66NNP.js +1 -1
- package/dist/components/ja-JP-DBVTYXUO.js +1 -1
- package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
- package/dist/components/jszip.min.js +1 -1
- package/dist/components/kaa-6HZHGXH3.js +1 -1
- package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
- package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
- package/dist/components/katex.js +1 -1
- package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
- package/dist/components/km-KH-HSX4SM5Z.js +1 -1
- package/dist/components/ko-KR-MTYHY66A.js +1 -1
- package/dist/components/ku-TR-6OUDTVRD.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/libarchive.js +1 -1
- package/dist/components/linear.js +1 -1
- package/dist/components/lt-LT-XHIRWOB4.js +1 -1
- package/dist/components/lv-LV-5QDEKY6T.js +1 -1
- package/dist/components/mermaid-parser.core.js +2 -2
- package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
- package/dist/components/mr-IN-CRQNXWMA.js +1 -1
- package/dist/components/my-MM-5M5IBNSE.js +1 -1
- package/dist/components/nb-NO-T6EIAALU.js +1 -1
- package/dist/components/nestedRender.js +1 -1
- package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
- package/dist/components/nn-NO-6E72VCQL.js +1 -1
- package/dist/components/oc-FR-POXYY2M6.js +1 -1
- package/dist/components/ofd.js +1 -1
- package/dist/components/ordinal.js +1 -1
- package/dist/components/pa-IN-N4M65BXN.js +1 -1
- package/dist/components/packet-YPE3B663.js +1 -1
- package/dist/components/percentages-BXMCSKIN.js +1 -1
- package/dist/components/pica.js +1 -1
- package/dist/components/pie-LRSECV5Y.js +1 -1
- package/dist/components/pie.js +1 -1
- package/dist/components/pieDiagram-4H26LBE5.js +1 -1
- package/dist/components/pl-PL-T2D74RX3.js +1 -1
- package/dist/components/postal-mime.js +1 -1
- package/dist/components/pt-BR-5N22H2LF.js +1 -1
- package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
- package/dist/components/radar-GUYGQ44K.js +1 -1
- package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
- package/dist/components/ro-RO-JPDTUUEW.js +1 -1
- package/dist/components/rough.esm.js +1 -1
- package/dist/components/roundRect.js +1 -1
- package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
- package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
- package/dist/components/si-LK-N5RQ5JYF.js +1 -1
- package/dist/components/sk-SK-C5VTKIMK.js +1 -1
- package/dist/components/sl-SI-NN7IZMDC.js +1 -1
- package/dist/components/stateDiagram-AJRCARHV.js +1 -1
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
- package/dist/components/subset-shared.chunk.js +1 -1
- package/dist/components/subset-worker.chunk.js +1 -1
- package/dist/components/sv-SE-XGPEYMSR.js +1 -1
- package/dist/components/ta-IN-2NMHFXQM.js +1 -1
- package/dist/components/th-TH-HPSO5L25.js +1 -1
- package/dist/components/time.js +1 -1
- package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
- package/dist/components/tr-TR-DEFEU3FU.js +1 -1
- package/dist/components/transform.js +1 -1
- package/dist/components/treeView-BLDUP644.js +1 -1
- package/dist/components/treemap-LRROVOQU.js +1 -1
- package/dist/components/uk-UA-QMV73CPH.js +1 -1
- package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
- package/dist/components/vi-VN-M7AON7JQ.js +1 -1
- package/dist/components/wardley-L42UT6IY.js +1 -1
- package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
- package/dist/components/worker-ref.js +1 -1
- package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
- package/dist/components/zh-CN-LNUGB5OW.js +1 -1
- package/dist/components/zh-HK-E62DVLB3.js +1 -1
- package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.mjs +1 -1
- package/dist/package/index.d.ts +1 -1
- package/dist/style.css +3 -3
- package/package.json +8 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const bb=c;(function(a0,a1){const ba=c,a2=a0();while(!![]){try{const a3=-parseInt(ba(0x15e))/0x1+-parseInt(ba(0x184))/0x2*(-parseInt(ba(0x117))/0x3)+parseInt(ba(0x198))/0x4*(parseInt(ba(0x134))/0x5)+-parseInt(ba(0x1ef))/0x6+parseInt(ba(0x11c))/0x7+-parseInt(ba(0x108))/0x8*(-parseInt(ba(0x1d5))/0x9)+parseInt(ba(0x114))/0xa*(-parseInt(ba(0x199))/0xb);if(a3===a1)break;else a2['push'](a2['shift']());}catch(a4){a2['push'](a2['shift']());}}}(a,0x8f5f5));import{u as d}from'./fflate.module.js';import{G as e,i as f,aw as g,Q as h,V as i,O as j,aA as k,z as l,E as m,q as n,y as o,f as p,a6 as q,w as r,v as s,C as t,aB as u,Z as v,_ as w,$ as x,B as y,g as B,H as F,J as G,a0 as H,S as I,ai as M,R as N,l as O,k as P,ab as R,a9 as S,aa as T,al as U,aj as V,aC as W,L as X,F as Z}from'./ModelViewer.js';import'vue';import'./index7.js';const Xt=/^def\s+(?:(\w+)\s+)?"?([^"]+)"?$/,Zt=/^string\s+(\w+)$/,Qt=/^(?:uniform\s+)?(\w+(?:\[\])?)\s+(.+)$/;class Yt{[bb(0x188)](a0){const bc=bb;a0=this['_preprocess'](a0);const a1={},a2=a0['split']('\x0a');let a3=null,a4=a1;const a5=[a1];for(const a6 of a2)if(a6['includes']('=')){const a7=this['_findAssignmentOperator'](a6);if(a7===-0x1){a3=a6['trim']();continue;}const a8=a6['slice'](0x0,a7)[bc(0x19f)](),a9=a6[bc(0x1d8)](a7+0x1)['trim']();if(a9['endsWith']('{')){const aa={};a5['push'](aa),a4[a8]=aa,a4=aa;}else{if(a9['endsWith']('(')){const ab=a9['slice'](0x0,-0x1);a4[a8]=ab;const ac={};a5['push'](ac),a4=ac;}else a4[a8]=a9;}}else{if(a6['includes'](':')&&!a6['includes']('=')){const ad=a6[bc(0x196)](':'),ae=a6['slice'](0x0,ad)['trim'](),af=a6[bc(0x1d8)](ad+0x1)[bc(0x19f)]();/^[\d.]+$/['test'](ae)&&(a4[ae]=af);}else{if(a6['endsWith']('{')){const ag=a4[a3]||{};a5['push'](ag),a4[a3]=ag,a4=ag;}else{if(a6['endsWith']('}')){if(a5['pop'](),a5['length']===0x0)continue;a4=a5[a5['length']-0x1];}else{if(a6['endsWith']('(')){const ah={};a5[bc(0x1ac)](ah),a3=a6[bc(0x14d)]('(')[0x0]['trim']()||a3,a4[a3]=ah,a4=ah;}else a6['endsWith'](')')?(a5[bc(0x146)](),a4=a5[a5['length']-0x1]):a6['trim']()&&(a3=a6['trim']());}}}}return a1;}[bb(0x1c7)](a0){const bd=bb;a0=this['_stripBlockComments'](a0),a0=this['_collapseTripleQuotedStrings'](a0);const a1=a0['split']('\x0a'),a2=[];let a3=!0x1,a4=0x0,a5=0x0,a6='';for(let a7=0x0;a7<a1['length'];a7++){let a8=a1[a7];a8=this['_stripInlineComment'](a8);const a9=a8[bd(0x19f)]();if(a3){a6+='\x20'+a9;for(const aa of a9)aa==='['?a4++:aa===']'?a4--:aa==='('&&a4>0x0?a5++:aa===')'&&a4>0x0&&a5--;a4===0x0&&a5===0x0&&(a2['push'](a6),a6='',a3=!0x1);}else{if(a9['includes']('=')){const ab=this[bd(0x1df)](a9);if(ab!==-0x1){const ac=a9['slice'](ab+0x1)['trim']();let ad=0x0,ae=0x0;for(const af of ac)af==='['?ad++:af===']'&&ae++;if(ad>ae){a3=!0x0,a4=ad-ae,a5=0x0,a6=a9;continue;}}}a2['push'](a9);}}return a2['join']('\x0a');}['_stripBlockComments'](a0){const be=bb;let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='/'&&a2+0x1<a0['length']&&a0[a2+0x1]==='*'){let a3=a2+0x2;for(;a3<a0[be(0x12e)];){if(a0[a3]==='*'&&a3+0x1<a0['length']&&a0[a3+0x1]==='/'){a3+=0x2;break;}a3++;}a2=a3;}else a1+=a0[a2],a2++;return a1;}[bb(0x149)](a0){let a1='',a2=0x0;for(;a2<a0['length'];){if(a2+0x2<a0['length']){const a3=a0['slice'](a2,a2+0x3);if(a3==='\x27\x27\x27'||a3==='\x22\x22\x22'){const a4=a3;for(a1+=a4,a2+=0x3;a2<a0['length'];)if(a2+0x2<a0['length']&&a0['slice'](a2,a2+0x3)===a4){a1+=a4,a2+=0x3;break;}else a0[a2]==='\x0a'?a1+='\x5cn':a0[a2]!=='\x0d'&&(a1+=a0[a2]),a2++;continue;}}a1+=a0[a2],a2++;}return a1;}['_stripInlineComment'](a0){const bf=bb;if(a0['trim']()['startsWith']('#usda'))return a0;let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='#')return a0[bf(0x1d8)](0x0,a4)['trimEnd']();}}}return a0;}[bb(0x1df)](a0){let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='=')return a4;}}}return-0x1;}['parseData'](a0){const bg=bb,a1=this['parseText'](a0),a2={},a3={'Attribute':0x1,'Prim':0x6,'Relationship':0x8},a4={};if('#usda\x201.0'in a1){const a6=a1[bg(0x187)];a6['upAxis']&&(a4['upAxis']=a6[bg(0x128)]['replace'](/"/g,'')),a6['defaultPrim']&&(a4['defaultPrim']=a6['defaultPrim']['replace'](/"/g,'')),a6['metersPerUnit']!==void 0x0&&(a4['metersPerUnit']=parseFloat(a6['metersPerUnit']));}a2['/']={'specType':a3['Prim'],'fields':a4};const a5=(a7,a8)=>{const a9=[];for(const aa in a7){if(aa==='#usda\x201.0'||aa==='variants')continue;const ab=aa['match'](Xt);if(ab){const ac=ab[0x1]||'',ad=ab[0x2],ae=a8==='/'?'/'+ad:a8+'/'+ad;a9['push'](ad);const af={'typeName':ac},ag=a7[aa];this['_extractPrimData'](ag,ae,af,a2,a3),a2[ae]={'specType':a3['Prim'],'fields':af},a5(ag,ae);}}a9['length']>0x0&&a2[a8]&&(a2[a8]['fields']['primChildren']=a9);};return a5(a1,'/'),{'specsByPath':a2};}['_extractPrimData'](a0,a1,a2,a3,a4){const bh=bb;if(!(!a0||typeof a0!='object'))for(const a5 in a0){if(a5['startsWith']('def\x20'))continue;if(a5==='prepend\x20references'){a2[bh(0x1d3)]=[a0[a5]];continue;}if(a5==='payload'){a2['payload']=a0[a5];continue;}if(a5==='variants'){const a7={},a8=a0[a5];for(const a9 in a8){const aa=a9['match'](Zt);if(aa){const ab=aa[0x1],ac=a8[a9]['replace'](/"/g,'');a7[ab]=ac;}}Object['keys'](a7)['length']>0x0&&(a2[bh(0x14a)]=a7);continue;}if(a5['startsWith']('rel\x20')){const ad=a5['slice'](0x4),ae=a1+'.'+ad,af=a0[a5][bh(0x1d9)](/[<>]/g,'');a3[ae]={'specType':a4['Relationship'],'fields':{'targetPaths':[af]}};continue;}if(a5['includes']('xformOpOrder')){const ag=a0[a5]['replace'](/[\[\]]/g,'')['split'](',')['map'](ah=>ah['trim']()['replace'](/"/g,''));a2[bh(0x129)]=ag;continue;}const a6=a5['match'](Qt);if(a6){const ah=a6[0x1],ai=a6[0x2],aj=a0[a5];if(ai['endsWith']('.connect')){const ak=ai['slice'](0x0,-0x8),al=a1+'.'+ak;let am=String(aj)['trim']();am['startsWith']('<')&&(am=am['slice'](0x1)),am['endsWith']('>')&&(am=am[bh(0x1d8)](0x0,-0x1)),a3[al]||(a3[al]={'specType':a4['Attribute'],'fields':{'typeName':ah}}),a3[al]['fields']['connectionPaths']=[am];continue;}if(ai['endsWith'](bh(0x193))&&typeof aj=='object'){const an=ai['slice'](0x0,-0xc),ao=a1+'.'+an,ap=[],aq=[];for(const as in aj){const au=parseFloat(as);isNaN(au)||(ap['push'](au),aq['push'](this['_parseAttributeValue'](ah,aj[as])));}const ar=ap['map']((av,aw)=>({'t':av,'v':aq[aw]}))['sort']((av,aw)=>av['t']-aw['t']);a3[ao]={'specType':a4['Attribute'],'fields':{'timeSamples':{'times':ar['map'](av=>av['t']),'values':ar['map'](av=>av['v'])},'typeName':ah}};}else{const av=this['_parseAttributeValue'](ah,aj),aw=a1+'.'+ai;a3[aw]={'specType':a4['Attribute'],'fields':{'default':av,'typeName':ah}};}}}}['_parseAttributeValue'](a0,a1){const bi=bb;if(a1==null)return;const a2=String(a1)[bi(0x19f)]();if(a0[bi(0x1e2)]('[]'))try{let a3=a2[bi(0x1d9)](/\(/g,'[')[bi(0x1d9)](/\)/g,']');a3['endsWith'](',')&&(a3=a3[bi(0x1d8)](0x0,-0x1));const a4=JSON['parse'](a3);return Array['isArray'](a4)&&Array['isArray'](a4[0x0])?a4['flat']():a4;}catch{return a2['replace'](/[\[\]]/g,'')['split'](',')[bi(0x116)](a5=>{const a6=a5['trim'](),a7=parseFloat(a6);return isNaN(a7)?a6['replace'](/"/g,''):a7;});}if(a0[bi(0x11d)]('3')||a0['includes']('2')||a0['includes']('4'))return a2['replace'](/[()]/g,'')['split'](',')['map'](a5=>parseFloat(a5['trim']()));if(a0['startsWith'](bi(0x180))){const a5=a2['replace'](/[()]/g,'')['split'](',')['map'](a6=>parseFloat(a6['trim']()));return[a5[0x1],a5[0x2],a5[0x3],a5[0x0]];}return a0['includes']('matrix')?a2['replace'](/[()]/g,'')[bi(0x14d)](',')['map'](a6=>parseFloat(a6['trim']())):a0==='float'||a0==='double'||a0==='int'?parseFloat(a2):a0==='string'||a0==='token'?this['_parseString'](a2):a0==='asset'?a2['replace'](/@/g,'')['replace'](/"/g,''):this['_parseString'](a2);}['_parseString'](a0){const bj=bb;(a0[bj(0x17d)]('\x22')&&a0['endsWith']('\x22')||a0['startsWith']('\x27')&&a0['endsWith']('\x27'))&&(a0=a0['slice'](0x1,-0x1));let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='\x5c'&&a2+0x1<a0['length']){const a3=a0[a2+0x1];switch(a3){case'n':a1+='\x0a';break;case't':a1+='\x09';break;case'r':a1+='\x0d';break;case'\x5c':a1+='\x5c';break;case'\x22':a1+='\x22';break;case'\x27':a1+='\x27';break;default:a1+=a3;break;}a2+=0x2;}else a1+=a0[a2],a2++;return a1;}}const ft=new TextDecoder(),vt=new Float32Array(0x20);function c(b,d){b=b-0xf5;const e=a();let f=e[b];return f;}for(let A=0x0;A<0x20;A++)vt[A]=Math['pow'](0x2,A-0xf);const Kt=Math['pow'](0x2,-0xe),b={'Invalid':0x0,'Bool':0x1,'UChar':0x2,'Int':0x3,'UInt':0x4,'Int64':0x5,'UInt64':0x6,'Half':0x7,'Float':0x8,'Double':0x9,'String':0xa,'Token':0xb,'AssetPath':0xc,'Matrix2d':0xd,'Matrix3d':0xe,'Matrix4d':0xf,'Quatd':0x10,'Quatf':0x11,'Quath':0x12,'Vec2d':0x13,'Vec2f':0x14,'Vec2h':0x15,'Vec2i':0x16,'Vec3d':0x17,'Vec3f':0x18,'Vec3h':0x19,'Vec3i':0x1a,'Vec4d':0x1b,'Vec4f':0x1c,'Vec4h':0x1d,'Vec4i':0x1e,'Dictionary':0x1f,'TokenListOp':0x20,'StringListOp':0x21,'PathListOp':0x22,'ReferenceListOp':0x23,'IntListOp':0x24,'Int64ListOp':0x25,'UIntListOp':0x26,'UInt64ListOp':0x27,'PathVector':0x28,'TokenVector':0x29,'Specifier':0x2a,'Permission':0x2b,'Variability':0x2c,'VariantSelectionMap':0x2d,'TimeSamples':0x2e,'Payload':0x2f,'DoubleVector':0x30,'LayerOffsetVector':0x31,'StringVector':0x32,'ValueBlock':0x33,'Value':0x34,'UnregisteredValue':0x35,'UnregisteredValueListOp':0x36,'PayloadListOp':0x37,'TimeCode':0x38,'PathExpression':0x39,'Relocates':0x3a,'Spline':0x3b,'AnimationBlock':0x3c},$t=0xffffffff,Jt=0x69,te=0x74;function St(a0,a1,a2,a3,a4,a5){for(;a1<a2;){const a6=a0[a1++];if(a1>a2)break;let a7=a6>>0x4;if(a7===0xf){let ab;do{if(a1>=a2)break;ab=a0[a1++],a7+=ab;}while(ab===0xff&&a1<a2);}if(a7>0x0){a1+a7>a2&&(a7=a2-a1);for(let ac=0x0;ac<a7&&!(a4>=a5);ac++)a3[a4++]=a0[a1++];}if(a1>=a2||a1+0x2>a2)break;const a8=a0[a1++]|a0[a1++]<<0x8;if(a8===0x0)break;let a9=(a6&0xf)+0x4;if(a9===0x13){let ad;do{if(a1>=a2)break;ad=a0[a1++],a9+=ad;}while(ad===0xff&&a1<a2);}const aa=a4-a8;if(aa<0x0)break;for(let ae=0x0;ae<a9&&!(a4>=a5);ae++)a3[a4++]=a3[aa+ae];}return a4;}function ut(a0,a1){const bk=bb,a2=new Uint8Array(a1),a3=a0[0x0];if(a3===0x0)return St(a0,0x1,a0[bk(0x12e)],a2,0x0,a1),a2;{let a4=0x1;const a5=[];for(let a8=0x0;a8<a3;a8++){const a9=(a0[a4]|a0[a4+0x1]<<0x8|a0[a4+0x2]<<0x10|a0[a4+0x3]<<0x18)>>>0x0;a5['push'](a9),a4+=0x4;}let a6=a4,a7=0x0;for(let aa=0x0;aa<a3;aa++){const ab=a5[aa],ac=Math['min'](0x10000,a1-a7);St(a0,a6,a6+ab,a2,a7,a7+ac),a6+=ab,a7+=ac;}return a2;}}function z(a0,a1){const a2=a1*0x4+(a1*0x2+0x7>>0x3)+0x4,a3=ut(new Uint8Array(a0),a2);return ee(a3,a1);}function a(){const cM=['Vec4i','494236LULtFL','2202013hSxvdP','externalVariantSelections','_readPathsRecursive','setUint32','Prim','repeat','trim','.xformOp:rotateXYZ','makeScale','joints','/Materials/','getInt32','_buildTransformAnimations','Quatf','join','USDCParser:\x20Invalid\x20payload\x20offset\x20','withCredentials','reader','points','push','parentToHoles','_triangulateIndicesWithPattern','lastIndexOf','skeletons','_getLocalVariantSelections','specularIntensity','scale','readUint8','decode','translations','original','USDCParser:\x20Invalid\x20array\x20size\x20','_applyTriangulationPattern','getUint16','usdProjection','_buildGeomPrimitive','pattern','jpg','.scale','Half','NodeGraph','focalLength','png','sections','Int','_buildIndexes','_preprocess','!invert!','_buildLight','normalize','metalnessMap','_findUV2Primvar','parse','color','material:binding','_buildMesh','manager','paths','references','min','182178vdVumt','transparent','Token','slice','replace','inputs:occlusion','normal','readString','PXR-USDC','specs','_findAssignmentOperator','userData','_resolveFilePath','endsWith','fps','.quaternion','quaternion','_collectAttributesFromPath','Vec3d','name','Mesh','.inputs:bump_map','fill','opacity','xformOp:rotateZ','UsdUVTexture','358134QcvdOP','iridescence',':typeName','emissiveMap','SkelRoot','Vec2f','tell','_findUVPrimvar','readInt64','getInt8','inputs:ior','xformOp:rotateXYZ','get','inputs:base_color','arnold:openpbr_surface','_getTextureFromOpenPBRConnection','skinIndex','readUint32','usdc','height','emissive','xformOp:scale','136vgTvnV','invert','Sphere','seek','itemError','targetPaths','EPSILON','setFromEuler','fieldSets','decompose','makeRotationX','inputs:radius','70dCPOVi','has','map','538710tOHzdd','_readCompressedArray','_readSpecs','_buildHierarchy','clearcoatRoughness','5601743MlwWSD','includes','materialsByRoot','st1','max','RectLight','_readValue','version','_getAttributes','_getTimeSampledAttribute','setAttribute','add','upAxis','xformOpOrder','position','isSkelRoot','arnold:image','_parseNumber','length','GeomSubset','clippingRange','.xformOp:orient','clone','Vec3h','45EtCHZT','readUint64','arnold:bump2d','specType','keys','_createTextureFromData','skel:','Double','byteOffset','multiply','readFloat32','bone','minor','offset','_selectTopWeights','textureCache','subset','_flattenMatrixArray','pop','arraybuffer','getUint32','_collapseTripleQuotedStrings','variantSelection','inputs:specularColor','alphaTest','split','indices','_readScalarValue','attributesByPrimPath','normalMap','readBytes','shadersByMaterialPath','_buildGeometry','primvars:displayOpacity','set','_expandAttribute','.skel:animationSource','inputs:file','_buildAnimationClip','_buildHoleMap','crossVectors','readFloat64','1106021mrZLFT','parseData','.xformOp:scale','verticalAperture','number','Xform','TimeSamples','primvars:arnold:polygon_holes','Vec3i','fields','specsByPath','horizontalAperture','_loadTexture','.material:binding','Vec4d','tokens','Vec3f','inputs:normal','floor','string','start','SphereLight','isInlined','childrenByPath','xformOp:rotateX','Camera','applyTransform','usda','orthographic','pivot','readInt32','startsWith','matrix','connectionPaths','quat','sort','buffer','payload','10wsfono','info:id','byteLength','#usda\x201.0','parseText','specularColor','_hasNonIdentityTransform','Material','primvars:st','_getVariantPaths','specularColorMap','dot','_getMaterialPath','inputs:opacity','default','.timeSamples','setRequestHeader','faceVertexCounts','indexOf'];a=function(){return cM;};return a();}function ee(a0,a1){const bl=bb,a2=new DataView(a0[bl(0x182)],a0['byteOffset'],a0[bl(0x186)]);let a3=0x0;const a4=a2['getInt32'](a3,!0x0);a3+=0x4;const a5=a1*0x2+0x7>>0x3,a6=a3,a7=a3+a5,a8=new Int32Array(a1);let a9=0x0,aa=a6,ab=a7;for(let ac=0x0;ac<a1;){const ad=a0[aa++];for(let ae=0x0;ae<0x4&&ac<a1;ae++,ac++){const af=ad>>ae*0x2&0x3;let ag=0x0;switch(af){case 0x0:ag=a4;break;case 0x1:ag=a2['getInt8'](ab),ab+=0x1;break;case 0x2:ag=a2['getInt16'](ab,!0x0),ab+=0x2;break;case 0x3:ag=a2[bl(0x1a4)](ab,!0x0),ab+=0x4;break;}a9+=ag,a8[ac]=a9;}}return a8;}class se{constructor(a0){this['buffer']=a0,this['view']=new DataView(a0),this['offset']=0x0;}['seek'](a0){const bm=bb;this[bm(0x141)]=a0;}[bb(0xf8)](){return this['offset'];}['readUint8'](){const bn=bb,a0=this['view']['getUint8'](this[bn(0x141)]);return this['offset']+=0x1,a0;}['readInt8'](){const bo=bb,a0=this['view'][bo(0xfb)](this['offset']);return this['offset']+=0x1,a0;}['readUint16'](){const a0=this['view']['getUint16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readInt16'](){const a0=this['view']['getInt16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readUint32'](){const bp=bb,a0=this['view']['getUint32'](this[bp(0x141)],!0x0);return this['offset']+=0x4,a0;}['readInt32'](){const bq=bb,a0=this['view']['getInt32'](this[bq(0x141)],!0x0);return this['offset']+=0x4,a0;}['readUint64'](){const br=bb,a0=this['view'][br(0x148)](this['offset'],!0x0),a1=this['view'][br(0x148)](this[br(0x141)]+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}[bb(0xfa)](){const a0=this['view']['getUint32'](this['offset'],!0x0),a1=this['view']['getInt32'](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}[bb(0x13e)](){const bs=bb,a0=this['view']['getFloat32'](this[bs(0x141)],!0x0);return this['offset']+=0x4,a0;}['readFloat64'](){const bu=bb,a0=this['view']['getFloat64'](this[bu(0x141)],!0x0);return this['offset']+=0x8,a0;}['readBytes'](a0){const bv=bb,a1=new Uint8Array(this['buffer'],this[bv(0x141)],a0);return this['offset']+=a0,a1;}[bb(0x1dc)](a0){const a1=this['readBytes'](a0);let a2=0x0;for(;a2<a0&&a1[a2]!==0x0;)a2++;return ft['decode'](a1['subarray'](0x0,a2));}}class st{constructor(a0,a1){this['lo']=a0,this['hi']=a1;}get['isArray'](){return(this['hi']&0x80000000)!==0x0;}get[bb(0x174)](){return(this['hi']&0x40000000)!==0x0;}get['isCompressed'](){return(this['hi']&0x20000000)!==0x0;}get['typeEnum'](){return this['hi']>>0x10&0xff;}get[bb(0x183)](){return this['lo']+(this['hi']&0xffff)*0x100000000;}['getInlinedValue'](){return this['lo'];}}class ne{[bb(0x15f)](a0){const bw=bb;this['buffer']=a0 instanceof ArrayBuffer?a0:a0['buffer'],this['reader']=new se(this['buffer']),this['version']={'major':0x0,'minor':0x0,'patch':0x0},this['_conversionBuffer']=new ArrayBuffer(0x4),this['_conversionView']=new DataView(this['_conversionBuffer']),this['_readBootstrap'](),this['_readTOC'](),this['_readTokens'](),this['_readStrings'](),this['_readFields'](),this['_readFieldSets'](),this['_readPaths'](),this['_readSpecs'](),this['specsByPath']={};for(const a1 of this['specs']){const a2=this[bw(0x1d2)][a1['pathIndex']];if(!a2)continue;const a3=this['_getFieldsForSpec'](a1);this[bw(0x168)][a2]={'specType':a1['specType'],'fields':a3};}return{'specsByPath':this['specsByPath']};}['_readBootstrap'](){const bx=bb,a0=this[bx(0x1aa)];if(a0['seek'](0x0),a0[bx(0x1dc)](0x8)!==bx(0x1dd))throw new Error('Not\x20a\x20valid\x20USDC\x20file');this[bx(0x123)]['major']=a0['readUint8'](),this['version']['minor']=a0['readUint8'](),this['version']['patch']=a0['readUint8'](),a0['readBytes'](0x5),this['tocOffset']=a0[bx(0x135)]();}['_readTOC'](){const by=bb,a0=this['reader'];a0[by(0x10b)](this['tocOffset']);const a1=a0['readUint64']();this[by(0x1c4)]={};for(let a2=0x0;a2<a1;a2++){const a3=a0['readString'](0x10),a4=a0['readUint64'](),a5=a0['readUint64']();this[by(0x1c4)][a3]={'start':a4,'size':a5};}}['_readTokens'](){const bz=bb,a0=this['sections']['TOKENS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0[bz(0x172)]);const a2=a1[bz(0x135)]();if(this['tokens']=[],this[bz(0x123)]['major']===0x0&&this[bz(0x123)][bz(0x140)]<0x4){const a3=a1['readUint64'](),a4=a1['readBytes'](a3);let a5=0x0;for(let a6=0x0;a6<a2;a6++){let a7=a5;for(;a7<a4['length']&&a4[a7]!==0x0;)a7++;this['tokens'][bz(0x1ac)](ft[bz(0x1b5)](a4['subarray'](a5,a7))),a5=a7+0x1;}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=ut(aa,a8);let ac=0x0;for(let ad=0x0;ad<a2;ad++){let ae=ac;for(;ae<ab['length']&&ab[ae]!==0x0;)ae++;this['tokens']['push'](ft['decode'](ab['subarray'](ac,ae))),ac=ae+0x1;}}}['_readStrings'](){const bA=bb,a0=this['sections']['STRINGS'];if(!a0){this['strings']=[];return;}const a1=this['reader'];a1['seek'](a0['start']);const a2=Math['floor'](a0['size']/0x4);this['strings']=[];for(let a3=0x0;a3<a2;a3++)this['strings']['push'](a1[bA(0x103)]());}['_readFields'](){const bB=bb,a0=this['sections']['FIELDS'];if(!a0)return;const a1=this[bB(0x1aa)];if(a1['seek'](a0['start']),this[bB(0x167)]=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=Math[bB(0x170)](a0['size']/0xc);for(let a3=0x0;a3<a2;a3++){const a4=a1[bB(0x103)](),a5=a1['readUint32'](),a6=a1['readUint32']();this['fields'][bB(0x1ac)]({'tokenIndex':a4,'valueRep':new st(a5,a6)});}}else{const a7=a1['readUint64'](),a8=a1['readUint64'](),a9=a1[bB(0x152)](a8),aa=z(a9['buffer']['slice'](a9['byteOffset'],a9['byteOffset']+a8),a7),ab=a1[bB(0x135)](),ac=a1['readBytes'](ab),ad=ut(ac,a7*0x8),ae=new DataView(ad['buffer'],ad[bB(0x13c)],ad['byteLength']);for(let af=0x0;af<a7;af++){const ag=ae['getUint32'](af*0x8,!0x0),ah=ae[bB(0x148)](af*0x8+0x4,!0x0);this['fields']['push']({'tokenIndex':aa[af],'valueRep':new st(ag,ah)});}}}['_readFieldSets'](){const bC=bb,a0=this['sections']['FIELDSETS'];if(!a0)return;const a1=this['reader'];if(a1[bC(0x10b)](a0['start']),this['fieldSets']=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=Math['floor'](a0['size']/0x4);for(let a3=0x0;a3<a2;a3++)this['fieldSets']['push'](a1['readUint32']());}else{const a4=a1['readUint64'](),a5=a1['readUint64'](),a6=a1[bC(0x152)](a5),a7=z(a6['buffer']['slice'](a6['byteOffset'],a6['byteOffset']+a5),a4);for(let a8=0x0;a8<a4;a8++)this['fieldSets'][bC(0x1ac)](a7[a8]);}}['_readPaths'](){const bD=bb,a0=this['sections']['PATHS'];if(!a0)return;const a1=this['reader'];a1[bD(0x10b)](a0['start']);const a2=a1['readUint64']();if(this['paths']=new Array(a2)['fill'](''),this['version']['major']===0x0&&this['version'][bD(0x140)]<0x4)this['_readPathsRecursive']('');else{a1[bD(0x135)]();const a3=a1['readUint64'](),a4=a1[bD(0x152)](a3),a5=z(a4['buffer']['slice'](a4['byteOffset'],a4['byteOffset']+a3),a2),a6=a1[bD(0x135)](),a7=a1['readBytes'](a6),a8=z(a7['buffer']['slice'](a7['byteOffset'],a7[bD(0x13c)]+a6),a2),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer']['slice'](aa[bD(0x13c)],aa['byteOffset']+a9),a2);this['_buildPathsFromCompressed'](a5,a8,ab);}}['_readPathsRecursive'](a0,a1=0x0){const bE=bb,a2=this['reader'];if(a1>0x3e8)return;const a3=a2['readUint32'](),a4=a2[bE(0x103)](),a5=a2['readUint8'](),a6=(a5&0x1)!==0x0,a7=(a5&0x2)!==0x0,a8=(a5&0x4)!==0x0;let a9;if(a0==='')a9='/';else{const aa=this['tokens'][a4]||'';a8?a9=a0+'.'+aa:a9=a0==='/'?'/'+aa:a0+'/'+aa;}if(this['paths'][a3]=a9,a6&&a7){const ab=a2['readUint64']();this['_readPathsRecursive'](a9,a1+0x1),a2['seek'](ab),this['_readPathsRecursive'](a0,a1+0x1);}else a6?this[bE(0x19b)](a9,a1+0x1):a7&&this['_readPathsRecursive'](a0,a1+0x1);}['_buildPathsFromCompressed'](a0,a1,a2){const a3=(a4,a5)=>{let a6=a4;for(;a6<a0['length'];){const a7=a6++,a8=a0[a7],a9=a1[a7],aa=a2[a7];let ab;if(a5==='')ab='/',a5=ab;else{const ae=this['tokens'][Math['abs'](a9)]||'';a9<0x0?ab=a5+'.'+ae:ab=a5==='/'?'/'+ae:a5+'/'+ae;}this['paths'][a8]=ab;const ac=aa>0x0||aa===-0x1,ad=aa>=0x0;if(ac){if(ad){const af=a7+aa;a3(af,a5);}a5=ab;}else{if(!ad)break;}}};a3(0x0,'');}[bb(0x119)](){const bF=bb,a0=this['sections']['SPECS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['specs']=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=this['version'][bF(0x140)]===0x0&&this['version']['patch']===0x1?0x10:0xc,a3=Math['floor'](a0['size']/a2);for(let a4=0x0;a4<a3;a4++){const a5=a1[bF(0x103)](),a6=a1[bF(0x103)](),a7=a1['readUint32']();a2===0x10&&a1['readUint32'](),this['specs']['push']({'pathIndex':a5,'fieldSetIndex':a6,'specType':a7});}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer'][bF(0x1d8)](aa['byteOffset'],aa['byteOffset']+a9),a8),ac=a1['readUint64'](),ad=a1['readBytes'](ac),ae=z(ad['buffer']['slice'](ad['byteOffset'],ad[bF(0x13c)]+ac),a8),af=a1[bF(0x135)](),ag=a1['readBytes'](af),ah=z(ag['buffer']['slice'](ag['byteOffset'],ag[bF(0x13c)]+af),a8);for(let ai=0x0;ai<a8;ai++)this[bF(0x1de)][bF(0x1ac)]({'pathIndex':ab[ai],'fieldSetIndex':ae[ai],'specType':ah[ai]});}}[bb(0x122)](a0){const bG=bb,a1=a0['typeEnum'],a2=a0['isArray'],a3=a0['isInlined'];if(a1===b[bG(0x164)])return this['_readTimeSamples'](a0);if(a3)return this['_readInlinedValue'](a0);const a4=a0['payload'];if(a4===0x0&&a2)return[];if(a4<0x0||a4>=this['buffer']['byteLength'])throw new RangeError(bG(0x1a8)+a4+'\x20for\x20type\x20'+a1+'.');const a5=this['reader']['tell']();this['reader']['seek'](a4);let a6;return a2?a6=this['_readArrayValue'](a0):a6=this[bG(0x14f)](a1),this['reader']['seek'](a5),a6;}['_readInlinedValue'](a0){const bH=bb,a1=a0['typeEnum'],a2=a0['getInlinedValue'](),a3=this['_conversionView'];switch(a1){case b['Bool']:return a2!==0x0;case b['UChar']:return a2&0xff;case b['Int']:case b['UInt']:return a2;case b['Float']:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b[bH(0x13b)]:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b['Token']:return this['tokens'][a2]||'';case b['String']:return this['tokens'][this['strings'][a2]]||'';case b['AssetPath']:return this['tokens'][a2]||'';case b['Specifier']:return a2;case b['Permission']:case b['Variability']:return a2;case b['Vec2h']:return a3['setUint32'](0x0,a2,!0x0),[this['_halfToFloat'](a3['getUint16'](0x0,!0x0)),this['_halfToFloat'](a3[bH(0x1ba)](0x2,!0x0))];case b['Vec2f']:case b['Vec2i']:return a3['setUint32'](0x0,a2,!0x0),[a3['getInt8'](0x0),a3['getInt8'](0x1)];case b[bH(0x16e)]:case b['Vec3i']:return a3['setUint32'](0x0,a2,!0x0),[a3[bH(0xfb)](0x0),a3['getInt8'](0x1),a3['getInt8'](0x2)];case b['Vec4f']:case b[bH(0x197)]:return a3[bH(0x19c)](0x0,a2,!0x0),[a3[bH(0xfb)](0x0),a3['getInt8'](0x1),a3['getInt8'](0x2),a3[bH(0xfb)](0x3)];case b['Matrix2d']:{a3['setUint32'](0x0,a2,!0x0);const a4=a3['getInt8'](0x0),a5=a3['getInt8'](0x1);return[a4,0x0,0x0,a5];}case b['Matrix3d']:{a3['setUint32'](0x0,a2,!0x0);const a6=a3['getInt8'](0x0),a7=a3['getInt8'](0x1),a8=a3['getInt8'](0x2);return[a6,0x0,0x0,0x0,a7,0x0,0x0,0x0,a8];}case b['Matrix4d']:{a3['setUint32'](0x0,a2,!0x0);const a9=a3['getInt8'](0x0),aa=a3['getInt8'](0x1),ab=a3['getInt8'](0x2),ac=a3['getInt8'](0x3);return[a9,0x0,0x0,0x0,0x0,aa,0x0,0x0,0x0,0x0,ab,0x0,0x0,0x0,0x0,ac];}default:return a2;}}['_readTimeSamples'](a0){const bI=bb,a1=this['reader'],a2=a0['payload'],a3=a1['tell']();a1['seek'](a2);const a4=a1['tell'](),a5=a1['readInt64']();a1['seek'](a4+a5);const a6=a1['readUint32'](),a7=a1['readUint32'](),a8=new st(a6,a7),a9=this['_readValue'](a8),aa=a4+a5+0x8;a1['seek'](aa);const ab=a1['tell'](),ac=a1['readInt64']();a1['seek'](ab+ac);const ad=a1['readUint64'](),ae=[];for(let ag=0x0;ag<ad;ag++){const ah=a1[bI(0x103)](),ai=a1['readUint32']();ae[bI(0x1ac)](new st(ah,ai));}const af=[];for(let aj=0x0;aj<ad;aj++)af['push'](this['_readValue'](ae[aj]));return a1['seek'](a3),{'times':a9 instanceof Float64Array?Array['from'](a9):Array['isArray'](a9)?a9:[a9],'values':af};}['_readScalarValue'](a0){const bJ=bb,a1=this['reader'];switch(a0){case b['Invalid']:return null;case b['Bool']:return a1['readUint8']()!==0x0;case b['UChar']:return a1['readUint8']();case b['Int']:return a1['readInt32']();case b['UInt']:return a1['readUint32']();case b['Int64']:return a1[bJ(0xfa)]();case b['UInt64']:return a1['readUint64']();case b[bJ(0x1c0)]:return this['_readHalf']();case b['Float']:return a1['readFloat32']();case b['Double']:return a1['readFloat64']();case b['String']:case b[bJ(0x1d7)]:{const a2=a1['readUint32']();return this['tokens'][a2]||'';}case b['AssetPath']:{const a3=a1['readUint32']();return this[bJ(0x16d)][a3]||'';}case b[bJ(0xf7)]:return[a1[bJ(0x13e)](),a1[bJ(0x13e)]()];case b['Vec2d']:return[a1['readFloat64'](),a1['readFloat64']()];case b['Vec2i']:return[a1['readInt32'](),a1['readInt32']()];case b['Vec3f']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b[bJ(0x1e7)]:return[a1[bJ(0x15d)](),a1[bJ(0x15d)](),a1[bJ(0x15d)]()];case b[bJ(0x166)]:return[a1['readInt32'](),a1['readInt32'](),a1[bJ(0x17c)]()];case b['Vec4f']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b[bJ(0x16c)]:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Quatf']:return[a1['readFloat32'](),a1[bJ(0x13e)](),a1['readFloat32'](),a1['readFloat32']()];case b['Quatd']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Matrix4d']:{const a4=[];for(let a5=0x0;a5<0x10;a5++)a4['push'](a1['readFloat64']());return a4;}case b['TokenVector']:{const a6=a1['readUint64'](),a7=[];for(let a8=0x0;a8<a6;a8++){const a9=a1['readUint32']();a7['push'](this['tokens'][a9]||'');}return a7;}case b['PathVector']:{const aa=a1['readUint64'](),ab=[];for(let ac=0x0;ac<aa;ac++){const ad=a1['readUint32']();ab[bJ(0x1ac)](this['paths'][ad]||'');}return ab;}case b['DoubleVector']:{const ae=a1[bJ(0x135)](),af=new Float64Array(ae);for(let ag=0x0;ag<ae;ag++)af[ag]=a1['readFloat64']();return af;}case b['Dictionary']:{const ah=a1['readUint64'](),ai={};for(let aj=0x0;aj<ah;aj++){const ak=a1['readUint32'](),al=this['tokens'][ak],am=a1[bJ(0x12a)],an=a1['readInt64'](),ao=am+an,ap=a1['position'];a1['position']=ao;const aq=a1['readUint64'](),ar=new st(aq);let as=null;ar['isInlined']?as=this['_readInlinedValue'](ar):ar['isArray']?(a1['position']=ar['payload'],as=this['_readArrayValue'](ar)):(a1[bJ(0x12a)]=ar['payload'],as=this['_readScalarValue'](ar['typeEnum'])),a1['position']=ap,al!==void 0x0&&as!==null&&(ai[al]=as);}return ai;}case b['TokenListOp']:case b['StringListOp']:case b['IntListOp']:case b['Int64ListOp']:case b['UIntListOp']:case b['UInt64ListOp']:return null;case b['PathListOp']:{const au=a1[bJ(0x1b4)](),av=(au&0x2)!==0x0,aw=(au&0x4)!==0x0,ax=(au&0x8)!==0x0,ay=(au&0x10)!==0x0,az=(au&0x20)!==0x0,aA=(au&0x40)!==0x0,aB=()=>{const bK=bJ,aG=a1['readUint64'](),aH=[];for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32']();aH[bK(0x1ac)](this['paths'][aJ]);}return aH;};let aC=null,aD=null,aE=null,aF=null;return av&&(aC=aB()),aw&&(aD=aB()),az&&(aE=aB()),aA&&(aF=aB()),ax&&aB(),ay&&aB(),aE&&aE['length']>0x0?aE:aC&&aC[bJ(0x12e)]>0x0?aC:aF&&aF['length']>0x0?aF:aD&&aD['length']>0x0?aD:null;}case b['VariantSelectionMap']:{const aG=a1['readUint64'](),aH={};for(let aI=0x0;aI<aG;aI++){const aJ=a1[bJ(0x103)](),aK=a1[bJ(0x103)](),aL=this['tokens'][this['strings'][aJ]],aM=this['tokens'][this['strings'][aK]];aL&&aM&&(aH[aL]=aM);}return aH;}default:return console['warn']('USDCParser:\x20Unsupported\x20scalar\x20type',a0),null;}}['_readArrayValue'](a0){const bL=bb,a1=this['reader'],a2=a0['typeEnum'],a3=a0['isCompressed'];let a4;if(this['version']['major']===0x0&&this[bL(0x123)][bL(0x140)]<0x7?a4=a1['readUint32']():a4=a1['readUint64'](),!Number['isSafeInteger'](a4)||a4<0x0)throw new RangeError(bL(0x1b8)+a4+'\x20for\x20type\x20'+a2+'.');if(a4>0x7fffffff)throw new RangeError('USDCParser:\x20Array\x20size\x20'+a4+'\x20exceeds\x20implementation\x20limits.');if(a4===0x0)return[];if(a3)return this['_readCompressedArray'](a2,a4);switch(a2){case b['Int']:{const a5=new Int32Array(a4);for(let a6=0x0;a6<a4;a6++)a5[a6]=a1['readInt32']();return a5;}case b['UInt']:{const a7=new Uint32Array(a4);for(let a8=0x0;a8<a4;a8++)a7[a8]=a1['readUint32']();return a7;}case b['Float']:{const a9=new Float32Array(a4);for(let aa=0x0;aa<a4;aa++)a9[aa]=a1['readFloat32']();return a9;}case b['Double']:{const ab=new Float64Array(a4);for(let ac=0x0;ac<a4;ac++)ab[ac]=a1['readFloat64']();return ab;}case b['Vec2f']:{const ad=new Float32Array(a4*0x2);for(let ae=0x0;ae<a4*0x2;ae++)ad[ae]=a1['readFloat32']();return ad;}case b[bL(0x16e)]:{const af=new Float32Array(a4*0x3);for(let ag=0x0;ag<a4*0x3;ag++)af[ag]=a1['readFloat32']();return af;}case b['Vec4f']:{const ah=new Float32Array(a4*0x4);for(let ai=0x0;ai<a4*0x4;ai++)ah[ai]=a1['readFloat32']();return ah;}case b[bL(0x133)]:{const aj=new Float32Array(a4*0x3);for(let ak=0x0;ak<a4*0x3;ak++)aj[ak]=this['_readHalf']();return aj;}case b[bL(0x1a6)]:{const al=new Float32Array(a4*0x4);for(let am=0x0;am<a4*0x4;am++)al[am]=a1['readFloat32']();return al;}case b['Quath']:{const an=new Float32Array(a4*0x4);for(let ao=0x0;ao<a4*0x4;ao++)an[ao]=this['_readHalf']();return an;}case b['Matrix4d']:{const ap=new Float64Array(a4*0x10);for(let aq=0x0;aq<a4*0x10;aq++)ap[aq]=a1[bL(0x15d)]();return ap;}case b['Token']:{const ar=[];for(let as=0x0;as<a4;as++){const au=a1[bL(0x103)]();ar['push'](this['tokens'][au]||'');}return ar;}case b['Half']:{const av=new Float32Array(a4);for(let aw=0x0;aw<a4;aw++)av[aw]=this['_readHalf']();return av;}default:return console['warn']('USDCParser:\x20Unsupported\x20array\x20type',a2),[];}}[bb(0x118)](a0,a1){const bM=bb,a2=this['reader'];switch(a0){case b[bM(0x1c5)]:case b['UInt']:{const a3=a2[bM(0x135)](),a4=a2['readBytes'](a3);return z(a4['buffer']['slice'](a4['byteOffset'],a4['byteOffset']+a3),a1);}case b['Float']:{const a5=a2['readInt8']();if(a5===Jt){const a6=a2['readUint64'](),a7=a2['readBytes'](a6),a8=z(a7['buffer']['slice'](a7['byteOffset'],a7['byteOffset']+a6),a1),a9=new Float32Array(a1);for(let aa=0x0;aa<a1;aa++)a9[aa]=a8[aa];return a9;}else{if(a5===te){const ab=a2['readUint32'](),ac=new Float32Array(ab);for(let ah=0x0;ah<ab;ah++)ac[ah]=a2['readFloat32']();const ad=a2['readUint64'](),ae=a2['readBytes'](ad),af=z(ae['buffer']['slice'](ae['byteOffset'],ae[bM(0x13c)]+ad),a1),ag=new Float32Array(a1);for(let ai=0x0;ai<a1;ai++)ag[ai]=ac[af[ai]];return ag;}}return console['warn']('USDCParser:\x20Unknown\x20float\x20compression\x20code',a5),new Float32Array(a1);}default:return console['warn']('USDCParser:\x20Unsupported\x20compressed\x20array\x20type',a0),[];}}['_readHalf'](){const bN=bb;return this['_halfToFloat'](this[bN(0x1aa)]['readUint16']());}['_halfToFloat'](a0){const a1=(a0&0x8000)>>0xf,a2=(a0&0x7c00)>>0xa,a3=a0&0x3ff;return a2===0x0?a3===0x0?a1?-0x0:0x0:(a1?-0x1:0x1)*Kt*(a3/0x400):a2===0x1f?a3?NaN:a1?-0x1/0x0:0x1/0x0:(a1?-0x1:0x1)*vt[a2]*(0x1+a3/0x400);}['_getFieldsForSpec'](a0){const bO=bb,a1={};let a2=a0['fieldSetIndex'];const a3=0x2710;let a4=0x0;for(;a2<this[bO(0x110)]['length']&&a4<a3;){const a5=this['fieldSets'][a2];if(a5===$t||a5===-0x1)break;const a6=this[bO(0x167)][a5];if(a6){const a7=this[bO(0x16d)][a6['tokenIndex']],a8=this[bO(0x122)](a6['valueRep']);a1[a7]=a8;}a2++,a4++;}return a1;}}const re=/^(.+?)\/\{(\w+)=(\w+)\}\/(.+)$/,K={'Unknown':0x0,'Attribute':0x1,'Connection':0x2,'Expression':0x3,'Mapper':0x4,'MapperArg':0x5,'Prim':0x6,'PseudoRoot':0x7,'Relationship':0x8,'RelationshipTarget':0x9,'Variant':0xa,'VariantSet':0xb},E={'projection':'perspective','clippingRange':[0x1,0xf4240],'horizontalAperture':20.955,'verticalAperture':15.2908,'horizontalApertureOffset':0x0,'verticalApertureOffset':0x0,'focalLength':0x32,'focusDistance':0x0,'fStop':0x0};class tt{constructor(a0=null){this['textureCache']={},this['skinnedMeshes']=[],this['manager']=a0;}['compose'](a0,a1={},a2={},a3=''){const bP=bb;this[bP(0x168)]=a0['specsByPath'],this['assets']=a1,this[bP(0x19a)]=a2,this['basePath']=a3,this['skinnedMeshes']=[],this['skeletons']={},this['_buildIndexes']();const a4=this['specsByPath']['/'],a5=a4?a4['fields']:{};this['fps']=a5['framesPerSecond']||a5['timeCodesPerSecond']||0x1e;const a6=new e();this['_buildHierarchy'](a6,'/'),this['_bindSkeletons']();const a7=Object[bP(0x138)](this['skeletons']);a7['length']===0x1&&(a6['skeleton']=this[bP(0x1b0)][a7[0x0]]['skeleton']),a6['animations']=this['_buildAnimations']();const a8=a5['metersPerUnit'];return a8!==void 0x0&&a8!==0x1&&a6['scale']['setScalar'](a8),a4&&a4['fields']&&a4['fields'][bP(0x128)]==='Z'&&(a6['rotation']['x']=-Math['PI']/0x2),a6;}['applyTransform'](a0,a1,a2={}){const bQ=bb,a3={...a1,...a2},a4=a3['xformOpOrder'];if(a4&&a4['length']>0x0){const a5=new f(),a6=new f();let a7=null;for(let a8=0x0;a8<a4[bQ(0x12e)];a8++){const a9=a4[a8],aa=a9['startsWith'](bQ(0x1c8)),ab=aa?a9['slice'](0x8):a9;if(ab==='xformOp:transform'){const ac=a3['xformOp:transform'];ac&&ac['length']===0x10&&(a6[bQ(0x156)](ac[0x0],ac[0x4],ac[0x8],ac[0xc],ac[0x1],ac[0x5],ac[0x9],ac[0xd],ac[0x2],ac[0x6],ac[0xa],ac[0xe],ac[0x3],ac[0x7],ac[0xb],ac[0xf]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:translate'){const ad=a3['xformOp:translate'];ad&&(a6['makeTranslation'](ad[0x0],ad[0x1],ad[0x2]),aa&&a6['invert'](),a5[bQ(0x13d)](a6));}else{if(ab==='xformOp:translate:pivot'){const ae=a3['xformOp:translate:pivot'];ae&&(a6['makeTranslation'](ae[0x0],ae[0x1],ae[0x2]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:scale'){const af=a3['xformOp:scale'];af&&(Array['isArray'](af)?(a6[bQ(0x1a1)](af[0x0],af[0x1],af[0x2]),a7=[af[0x0],af[0x1],af[0x2]]):(a6[bQ(0x1a1)](af,af,af),a7=[af,af,af]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab===bQ(0xfd)){const ag=a3['xformOp:rotateXYZ'];if(ag){const ah=new g(ag[0x0]*Math['PI']/0xb4,ag[0x1]*Math['PI']/0xb4,ag[0x2]*Math['PI']/0xb4,'ZYX');a6['makeRotationFromEuler'](ah),aa&&a6[bQ(0x109)](),a5['multiply'](a6);}}else{if(ab==='xformOp:rotateX'){const ai=a3[bQ(0x176)];ai!==void 0x0&&(a6[bQ(0x112)](ai*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateY'){const aj=a3['xformOp:rotateY'];aj!==void 0x0&&(a6['makeRotationY'](aj*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateZ'){const ak=a3[bQ(0x1ed)];ak!==void 0x0&&(a6['makeRotationZ'](ak*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:orient'){const al=a3['xformOp:orient'];if(al&&al['length']===0x4){const am=new h(al[0x0],al[0x1],al[0x2],al[0x3]);a6['makeRotationFromQuaternion'](am),aa&&a6['invert'](),a5['multiply'](a6);}}}}}}}}}}}if(a0['matrix']['copy'](a5),a0[bQ(0x17e)]['decompose'](a0['position'],a0[bQ(0x1e5)],a0['scale']),a7){const an=a7[0x0]<0x0,ao=a7[0x1]<0x0,ap=a7[0x2]<0x0;(an?0x1:0x0)+(ao?0x1:0x0)+(ap?0x1:0x0)===0x3&&(a0['scale']['set'](a7[0x0],a7[0x1],a7[0x2]),a0['quaternion']['set'](a0['quaternion']['x'],-a0['quaternion']['y'],a0[bQ(0x1e5)]['z'],-a0['quaternion']['w']));}return;}if(a3['xformOp:translate']){const aq=a3['xformOp:translate'];a0[bQ(0x12a)]['set'](aq[0x0],aq[0x1],aq[0x2]);}if(a3['xformOp:translate:pivot']){const ar=a3['xformOp:translate:pivot'];a0[bQ(0x17b)]=new i(ar[0x0],ar[0x1],ar[0x2]);}if(a3['xformOp:scale']){const as=a3[bQ(0x107)];Array['isArray'](as)?a0['scale']['set'](as[0x0],as[0x1],as[0x2]):a0['scale']['set'](as,as,as);}if(a3['xformOp:rotateXYZ']){const au=a3['xformOp:rotateXYZ'];a0['rotation']['set'](au[0x0]*Math['PI']/0xb4,au[0x1]*Math['PI']/0xb4,au[0x2]*Math['PI']/0xb4);}if(a3['xformOp:orient']){const av=a3['xformOp:orient'];av['length']===0x4&&a0[bQ(0x1e5)]['set'](av[0x0],av[0x1],av[0x2],av[0x3]);}}[bb(0x1c6)](){const bR=bb;this[bR(0x175)]=new Map(),this['attributesByPrimPath']=new Map(),this['materialsByRoot']=new Map(),this['shadersByMaterialPath']=new Map(),this['geomSubsetsByMeshPath']=new Map();for(const a0 in this['specsByPath']){const a1=this['specsByPath'][a0];if(a1['specType']===K['Prim']){const a2=a0['lastIndexOf']('/');if(a2>0x0){const a4=a0['slice'](0x0,a2),a5=a0['slice'](a2+0x1);this['childrenByPath']['has'](a4)||this['childrenByPath']['set'](a4,[]),this['childrenByPath']['get'](a4)['push']({'name':a5,'path':a0});}else{if(a2===0x0&&a0['length']>0x1){const a6=a0['slice'](0x1);this['childrenByPath']['has']('/')||this['childrenByPath']['set']('/',[]),this['childrenByPath']['get']('/')['push']({'name':a6,'path':a0});}}const a3=a1['fields']['typeName'];if(a3==='Material'){const a7=a0['split']('/'),a8=a7['length']>0x1?'/'+a7[0x1]:'/';this[bR(0x11e)]['has'](a8)||this['materialsByRoot']['set'](a8,[]),this['materialsByRoot'][bR(0xfe)](a8)['push'](a0);}if(a3==='Shader'&&a2>0x0){let a9=a0['slice'](0x0,a2);for(;a9['length']>0x0;){const aa=this['specsByPath'][a9];if(aa&&aa[bR(0x137)]===K['Prim']&&aa['fields']['typeName']==='Material'){this['shadersByMaterialPath']['has'](a9)||this['shadersByMaterialPath']['set'](a9,[]),this['shadersByMaterialPath'][bR(0xfe)](a9)[bR(0x1ac)](a0);break;}const ab=a9['lastIndexOf']('/');if(ab<=0x0)break;a9=a9['slice'](0x0,ab);}}if(a3==='GeomSubset'&&a2>0x0){const ac=a0['slice'](0x0,a2);this['geomSubsetsByMeshPath']['has'](ac)||this['geomSubsetsByMeshPath'][bR(0x156)](ac,[]),this['geomSubsetsByMeshPath']['get'](ac)['push'](a0);}}else{if(a1['specType']===K['Attribute']||a1['specType']===K['Relationship']){const ad=a0['lastIndexOf']('.');if(ad>0x0){const ae=a0[bR(0x1d8)](0x0,ad),af=a0['slice'](ad+0x1);this['attributesByPrimPath']['has'](ae)||this[bR(0x150)]['set'](ae,new Map()),this['attributesByPrimPath'][bR(0xfe)](ae)[bR(0x156)](af,a1);}}}}}['_isDirectChild'](a0,a1,a2){const bS=bb;if(!a1['startsWith'](a2))return!0x1;const a3=a1[bS(0x1d8)](a2['length']);return a3['length']===0x0||a3['startsWith']('{')?!0x1:!a3['includes']('/');}['_buildHierarchy'](a0,a1){const bT=bb,a2=[],a3=new Set(),a4=this['childrenByPath'][bT(0xfe)](a1);if(a4){for(const a6 of a4)a3['has'](a6['path'])||(a3['add'](a6['path']),a2['push'](a6));}const a5=this[bT(0x18d)](a1);for(const a7 of a5){const a8=this['childrenByPath']['get'](a7);if(a8){for(const a9 of a8)a3[bT(0x115)](a9['path'])||(a3[bT(0x127)](a9['path']),a2['push'](a9));}}for(const {name:aa,path:ab}of a2){const ac=this['specsByPath'][ab];if(!ac||ac['specType']!==K['Prim'])continue;const ad=ac['fields']['typeName'],ae=this['_getReferences'](ac);if(ae['length']>0x0){const af=this[bT(0x1b1)](ac['fields']),ag=[];for(const ah of ae){const ai=this['_resolveReference'](ah,af);ai&&ag['push'](ai);}if(ag[bT(0x12e)]>0x0){const aj=this['_getAttributes'](ab);if(ag['length']===0x1){const al=this['_findSingleMesh'](ag[0x0]);if(al&&(ad===bT(0x163)||!ad)){al['name']=aa,this[bT(0x178)](al,ac['fields'],aj),this['_applyMaterialBinding'](al,ab),a0['add'](al),this['_buildHierarchy'](al,ab);continue;}}const ak=new j();ak['name']=aa,this[bT(0x178)](ak,ac['fields'],aj);for(const am of ag)for(;am['children']['length']>0x0;)ak['add'](am['children'][0x0]);a0['add'](ak),this['_buildHierarchy'](ak,ab);continue;}}if(ad===bT(0xf6)){const an=new j();an['name']=aa,an['userData'][bT(0x12b)]=!0x0;const ao=this[bT(0x124)](ab);this['applyTransform'](an,ac['fields'],ao),a0[bT(0x127)](an),this['_buildHierarchy'](an,ab);}else{if(ad==='Skeleton'){const ap=this['_buildSkeleton'](ab);ap&&(this['skeletons'][ab]=ap),this['_buildHierarchy'](a0,ab);}else{if(ad!=='SkelAnimation'){if(ad===bT(0x1e9)){const aq=this[bT(0x1d0)](ab,ac);aq&&(a0['add'](aq),this['_buildHierarchy'](aq,ab));}else{if(ad===bT(0x177)){const ar=this['_buildCamera'](ab);ar[bT(0x1e8)]=aa;const as=this['_getAttributes'](ab);this['applyTransform'](ar,ac[bT(0x167)],as),a0['add'](ar),this[bT(0x11a)](ar,ab);}else{if(ad==='DistantLight'||ad==='SphereLight'||ad===bT(0x121)||ad==='DiskLight'){const au=this[bT(0x1c9)](ab,ad);au['name']=aa;const av=this['_getAttributes'](ab);this['applyTransform'](au,ac['fields'],av),a0['add'](au),this['_buildHierarchy'](au,ab);}else{if(ad==='Cube'||ad==='Sphere'||ad==='Cylinder'||ad==='Cone'||ad==='Capsule'){const aw=this['_buildGeomPrimitive'](ab,ac,ad);aw&&(a0['add'](aw),this['_buildHierarchy'](aw,ab));}else{if(!(ad===bT(0x18b)||ad==='Shader'||ad===bT(0x12f))){const ax=new j();ax[bT(0x1e8)]=aa;const ay=this['_getAttributes'](ab);this['applyTransform'](ax,ac['fields'],ay),a0['add'](ax),this['_buildHierarchy'](ax,ab);}}}}}}}}}}[bb(0x18d)](a0){const bU=bb,a1=this[bU(0x168)][a0],a2=a1?.['fields']?.['variantSetChildren'],a3=[];if(!a2||a2['length']===0x0)return a3;for(const a4 of a2){let a5=this['externalVariantSelections'][a4]||null;if(!a5){const a6=a1['fields']['variantSelection'];a5=a6?a6[a4]:null;}if(!a5){const a7=a0+'/{'+a4+'=}',a8=this[bU(0x168)][a7];a8?.['fields']?.['variantChildren']&&(a5=a8['fields']['variantChildren'][0x0]);}if(a5){const a9=a0+'/{'+a4+'='+a5+'}';a3['push'](a9);}}return a3;}['_resolveFilePath'](a0){let a1=a0;return a1['startsWith']('./')&&(a1=a1['slice'](0x2)),this['basePath']?this['basePath']+'/'+a1:a1;}['_resolveReference'](a0,a1={}){if(!a0)return null;const a2=a0['match'](/@([^@]+)@(?:<([^>]+)>)?/);if(!a2)return null;const a3=a2[0x1],a4=a2[0x2],a5=this['_resolveFilePath'](a3),a6={...a1,...this['externalVariantSelections']},a7=this['assets'][a5];if(!a7)return null;if(a7['specsByPath']){const a8=new tt(this['manager']),a9=this['_getBasePath'](a5),aa=a8['compose'](a7,this['assets'],a6,a9);if(a4){const ab=a4['split']('/')['pop']();let ac=null;for(const ad of aa['children'])if(ad['name']===ab){ac=ad;break;}if(ac){aa['remove'](ac);const ae=new e();return ae['add'](ac),ae;}}return aa;}return a7['isGroup']||a7['isObject3D']?a7['clone']():null;}['_findSingleMesh'](a0){for(const a1 of a0['children'])if(a1['isMesh'])return a0['remove'](a1),a1;if(a0['children']['length']===0x1){const a2=a0['children'][0x0];if(a2['children']&&a2['children']['length']===0x1){const a3=a2['children'][0x0];if(a3['isMesh']&&!this['_hasNonIdentityTransform'](a2))return a2['remove'](a3),a3;}}return null;}[bb(0x18a)](a0){const a1=a0['position'],a2=a0['rotation'],a3=a0['scale'],a4=a1['x']!==0x0||a1['y']!==0x0||a1['z']!==0x0,a5=a2['x']!==0x0||a2['y']!==0x0||a2['z']!==0x0,a6=a3['x']!==0x1||a3['y']!==0x1||a3['z']!==0x1;return a4||a5||a6;}['_getBasePath'](a0){const a1=a0['lastIndexOf']('/');return a1>=0x0?a0['slice'](0x0,a1):'';}['_getLocalVariantSelections'](a0){const bV=bb,a1={};if(a0['variantSelection']){for(const a2 in a0['variantSelection'])a1[a2]=a0[bV(0x14a)][a2];}return a1;}['_getReferences'](a0){const bW=bb,a1=[];if(a0['fields']['references']&&a0['fields']['references']['length']>0x0){const a2=a0['fields'][bW(0x1d3)][0x0];if(typeof a2=='string'){const a3=a2['matchAll'](/@([^@]+)@(?:<([^>]+)>)?/g);for(const a4 of a3)a1['push'](a4[0x0]);}else a2['assetPath']&&a1[bW(0x1ac)]('@'+a2['assetPath']+'@');}if(a1['length']===0x0&&a0[bW(0x167)][bW(0x183)]){const a5=a0['fields']['payload'];typeof a5=='string'?a1['push'](a5):a5['assetPath']&&a1['push']('@'+a5['assetPath']+'@');}return a1;}[bb(0x124)](a0){const bX=bb,a1={};this['_collectAttributesFromPath'](a0,a1);const a2=a0['match'](re);if(a2){const a3=a2[0x1],a4=a2[0x4],a5=this['_getVariantPaths'](a3);for(const a6 of a5){if(a0['startsWith'](a6))continue;const a7=a6+'/'+a4;this['_collectAttributesFromPath'](a7,a1);}}else{const a8=a0['split']('/');for(let a9=0x1;a9<a8['length']-0x1;a9++){const aa=a8[bX(0x1d8)](0x0,a9+0x1)[bX(0x1a7)]('/'),ab=a8['slice'](a9+0x1)['join']('/'),ac=this['_getVariantPaths'](aa);for(const ad of ac){const ae=ad+'/'+ab;this['_collectAttributesFromPath'](ae,a1);}}}return a1;}[bb(0x1e6)](a0,a1){const bY=bb,a2=this[bY(0x150)]['get'](a0);if(a2)for(const [a3,a4]of a2){if(a4['fields']?.['default']!==void 0x0)a1[a3]=a4['fields']['default'];else{if(a4['fields']?.['timeSamples']){const {times:a5,values:a6}=a4['fields']['timeSamples'];if(a5&&a6&&a5['length']>0x0){const a7=a5['indexOf'](0x0);a1[a3]=a7>=0x0?a6[a7]:a6[0x0];}}}a4['fields']?.['elementSize']!==void 0x0&&(a1[a3+':elementSize']=a4['fields']['elementSize']),a3['startsWith']('primvars:')&&a4['fields']?.['typeName']!==void 0x0&&(a1[a3+':typeName']=a4['fields']['typeName']);}}[bb(0x1bc)](a0,a1,a2){const bZ=bb,a3=this[bZ(0x124)](a0),a4=a0['split']('/')['pop']();let a5;switch(a2){case'Cube':{const a9=a3['size']||0x2;a5=new o(a9,a9,a9);break;}case bZ(0x10a):{const aa=a3['radius']||0x1;a5=new n(aa,0x20,0x10);break;}case'Cylinder':{const ab=a3['height']||0x2,ac=a3['radius']||0x1;a5=new m(ac,ac,ab,0x20);break;}case'Cone':{const ad=a3['height']||0x2,ae=a3['radius']||0x1;a5=new l(ae,ad,0x20);break;}case'Capsule':{const af=a3[bZ(0x105)]||0x1,ag=a3['radius']||0.5;a5=new k(ag,af,0x10,0x20);break;}}const a6=a3['axis']||'Z';a6==='X'?a5['rotateZ'](-Math['PI']/0x2):a6==='Z'&&a5['rotateX'](Math['PI']/0x2);const a7=this['_buildMaterial'](a0,a1['fields']),a8=new p(a5,a7);return a8[bZ(0x1e8)]=a4,this[bZ(0x178)](a8,a1['fields'],a3),a8;}[bb(0x1d0)](a0,a1){const c0=bb,a2=this['_getAttributes'](a0),a3=a2['primvars:skel:jointIndices'],a4=a2['primvars:skel:jointWeights'],a5=a3&&a4&&a3['length']>0x0&&a4[c0(0x12e)]>0x0,a6=this['_getGeomSubsets'](a0);let a7,a8;if(a6[c0(0x12e)]>0x0){a7=this['_buildGeometryWithSubsets'](a2,a6,a5);const ac=this['_getMaterialPath'](a0,a1['fields']);a8=a6[c0(0x116)](ad=>{const ae=ad['materialPath']||ac;return this['_buildMaterialForPath'](ae);});}else a7=this['_buildGeometry'](a0,a2,a5),a8=this['_buildMaterial'](a0,a1[c0(0x167)]);const a9=a2['primvars:displayColor'];if(a9&&a9['length']>=0x3){const ad=ae=>{const c1=c0;ae[c1(0x1ce)]&&ae['color']['r']===0x1&&ae[c1(0x1ce)]['g']===0x1&&ae['color']['b']===0x1&&!ae['map']&&ae['color']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);};Array['isArray'](a8)?a8['forEach'](ad):ad(a8);}const aa=a2[c0(0x155)];if(aa&&aa['length']===0x1&&a6['length']===0x0){const ae=aa[0x0],af=ag=>{ae<0x1&&ag['opacity']===0x1&&ag['transparent']===!0x1&&(ag['opacity']=ae,ag['transparent']=!0x0);};Array['isArray'](a8)?a8['forEach'](af):af(a8);}let ab;if(a5){ab=new q(a7,a8);let ag=this['specsByPath'][a0+'.skel:skeleton'];ag||(ag=this['specsByPath'][a0+'.rel\x20skel:skeleton']);let ah=null;ag&&(ag['fields']['targetPaths']&&ag['fields'][c0(0x10d)]['length']>0x0?ah=ag['fields'][c0(0x10d)][0x0]:ag['fields']['default']&&(ah=ag['fields'][c0(0x192)]['replace'](/<|>/g,'')));const ai=a2['skel:joints'],aj=a2['primvars:skel:geomBindTransform'];this['skinnedMeshes']['push']({'mesh':ab,'skeletonPath':ah,'path':a0,'localJoints':ai,'geomBindTransform':aj});}else ab=new p(a7,a8);return ab[c0(0x1e8)]=a0['split']('/')['pop'](),this[c0(0x178)](ab,a1['fields'],a2),ab;}['_buildCamera'](a0){const c2=bb,a1=this['_getAttributes'](a0),a2=a1['projection'],a3=typeof a2==c2(0x171)?a2['toLowerCase']():E['projection'],a4=a1[c2(0x130)]||E['clippingRange'],a5=Math['max'](Number[c2(0x10e)],this['_parseNumber'](a4[0x0],E['clippingRange'][0x0])),a6=Math['max'](a5+Number['EPSILON'],this['_parseNumber'](a4[0x1],E['clippingRange'][0x1])),a7=this['_parseNumber'](a1[c2(0x169)],E['horizontalAperture']),a8=this['_parseNumber'](a1[c2(0x161)],E['verticalAperture']),a9=this['_parseNumber'](a1['horizontalApertureOffset'],E['horizontalApertureOffset']),aa=this[c2(0x12d)](a1['verticalApertureOffset'],E['verticalApertureOffset']),ab=this['_parseNumber'](a1[c2(0x1c2)],E['focalLength']),ac=this['_parseNumber'](a1['focusDistance'],E['focusDistance']),ad=this['_parseNumber'](a1['fStop'],E['fStop']);let ae;if(a3===c2(0x17a)){const af=a7/0xa,ag=a8/0xa,ah=a9/0xa,ai=aa/0xa;ae=new r(ah-af*0.5,ah+af*0.5,ai+ag*0.5,ai-ag*0.5,a5,a6);}else{const aj=Math['max'](Number['EPSILON'],a8),ak=Math['max'](Number['EPSILON'],ab),al=a7/aj,am=0x2*Math['atan'](aj/(0x2*ak))*0xb4/Math['PI'];ae=new s(am,al,a5,a6),ae['filmGauge']=Math['max'](a7,a8),ae['filmOffset']=a9,ae['focus']=ac,ae['setFocalLength'](ak),aa!==0x0&&(ae['userData']['verticalApertureOffset']=aa);}return ae['userData']['fStop']=ad,ae['userData'][c2(0x1bb)]=a3,ae;}['_buildLight'](a0,a1){const c3=bb,a2=this['_getAttributes'](a0),a3=this['_parseNumber'](a2['inputs:intensity'],0x1),a4=a2['inputs:color']||[0x1,0x1,0x1],a5=a2['inputs:enableColorTemperature']===!0x0,a6=this['_parseNumber'](a2['inputs:colorTemperature'],0x1964),a7=new t(a4[0x0],a4[0x1],a4[0x2]);if(a5){const a9=this['_colorTemperature'](a6);a7['multiply'](a9);}let a8;switch(a1){case'DistantLight':a8=new x(a7,a3);break;case c3(0x173):{const aa=this[c3(0x12d)](a2['shaping:cone:angle'],0x0);if(aa>0x0){const ab=aa*Math['PI']/0xb4,ac=this[c3(0x12d)](a2['shaping:cone:softness'],0x0);a8=new v(a7,a3,0x0,ab,ac);}else a8=new w(a7,a3);break;}case'RectLight':{const ad=this['_parseNumber'](a2['inputs:width'],0x1),ae=this[c3(0x12d)](a2['inputs:height'],0x1);a8=new u(a7,a3,ad,ae);break;}case'DiskLight':{const af=this['_parseNumber'](a2[c3(0x113)],0.5)*0x2;a8=new u(a7,a3,af,af);break;}}return a8;}['_colorTemperature'](a0){const c4=bb,a1=a0/0x64;let a2,a3,a4;return a1<=0x42?(a2=0x1,a3=0.3900815787690196*Math['log'](a1)-0.6318414437886275):(a2=1.292936186062745*Math['pow'](a1-0x3c,-0.1332047592),a3=1.1298908608952942*Math['pow'](a1-0x3c,-0.0755148492)),a1>=0x42?a4=0x1:a1<=0x13?a4=0x0:a4=0.543206789110196*Math['log'](a1-0xa)-1.19625408914,new t(Math['min'](Math['max'](a2,0x0),0x1),Math[c4(0x1d4)](Math[c4(0x120)](a3,0x0),0x1),Math[c4(0x1d4)](Math['max'](a4,0x0),0x1));}['_parseNumber'](a0,a1){const a2=Number(a0);return Number['isFinite'](a2)?a2:a1;}['_getGeomSubsets'](a0){const a1=[],a2=this['geomSubsetsByMeshPath']['get'](a0);if(!a2)return a1;for(const a3 of a2){const a4=this['_getAttributes'](a3)['indices'];if(!a4||a4['length']===0x0)continue;const a5=this['_getMaterialBindingTarget'](a3);a1['push']({'name':a3['split']('/')['pop'](),'indices':a4,'materialPath':a5});}return a1;}['_getMaterialBindingTarget'](a0){const c5=bb,a1='material:binding',a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3?.['fields']?.['targetPaths']?.['length']>0x0)return a3['fields']['targetPaths'][0x0];const a4=a0['split']('/');for(let a5=0x1;a5<a4['length'];a5++){const a6=a4['slice'](0x0,a5+0x1)[c5(0x1a7)]('/'),a7=a4['slice'](a5+0x1)['join']('/'),a8=this['_getVariantPaths'](a6);for(const a9 of a8){const aa=a7?a9+'/'+a7+'.'+a1:a9+'.'+a1,ab=this['specsByPath'][aa];if(ab?.['fields']?.[c5(0x10d)]?.['length']>0x0)return ab['fields']['targetPaths'][0x0];}}return null;}[bb(0x154)](a0,a1,a2=!0x1){const c6=bb,a3=new y(),a4=a1['points'];if(!a4||a4['length']===0x0)return a3;const a5=a1['faceVertexIndices'],a6=a1['faceVertexCounts'],a7=a1[c6(0x165)],a8=this['_buildHoleMap'](a7);let a9=a5,aa=null;if(a6&&a6['length']>0x0){const aj=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8);a9=aj[c6(0x14e)],aa=aj[c6(0x1bd)];}let ab=a4;a9&&a9['length']>0x0&&(ab=this['_expandAttribute'](a4,a9,0x3)),a3['setAttribute']('position',new B(new Float32Array(ab),0x3));const ac=a1['normals']||a1['primvars:normals'],ad=a1['normals:indices']||a1['primvars:normals:indices'];if(ac&&ac['length']>0x0){let ak=ac;if(ad&&ad['length']>0x0&&aa){const al=this['_applyTriangulationPattern'](ad,aa);ak=this['_expandAttribute'](ac,al,0x3);}else{if(ac['length']===a4['length'])a9&&a9['length']>0x0&&(ak=this['_expandAttribute'](ac,a9,0x3));else{if(aa){const am=this[c6(0x1b9)](Array['from']({'length':ac['length']/0x3},(an,ao)=>ao),aa);ak=this[c6(0x157)](ac,am,0x3);}}}a3['setAttribute']('normal',new B(new Float32Array(ak),0x3));}else{const an=this['_computeVertexNormals'](a4,a9);a3['setAttribute']('normal',new B(new Float32Array(this['_expandAttribute'](an,a9,0x3)),0x3));}const {uvs:ae,uvIndices:af}=this[c6(0xf9)](a1),ag=a5?a5[c6(0x12e)]:0x0;if(ae&&ae['length']>0x0){let ao=ae;if(af&&af['length']>0x0&&aa){const ap=this['_applyTriangulationPattern'](af,aa);ao=this['_expandAttribute'](ae,ap,0x2);}else{if(a9&&ae['length']/0x2===a4['length']/0x3)ao=this['_expandAttribute'](ae,a9,0x2);else{if(aa&&ae['length']/0x2===ag){const aq=this['_applyTriangulationPattern'](Array['from']({'length':ag},(ar,as)=>as),aa);ao=this['_expandAttribute'](ae,aq,0x2);}}}a3[c6(0x126)]('uv',new B(new Float32Array(ao),0x2));}const {uvs2:ah,uv2Indices:ai}=this[c6(0x1cc)](a1);if(ah&&ah['length']>0x0){let ar=ah;if(ai&&ai['length']>0x0&&aa){const as=this['_applyTriangulationPattern'](ai,aa);ar=this['_expandAttribute'](ah,as,0x2);}else{if(a9&&ah['length']/0x2===a4['length']/0x3)ar=this['_expandAttribute'](ah,a9,0x2);else{if(aa&&ah['length']/0x2===ag){const au=this['_applyTriangulationPattern'](Array['from']({'length':ag},(av,aw)=>aw),aa);ar=this[c6(0x157)](ah,au,0x2);}}}a3['setAttribute']('uv1',new B(new Float32Array(ar),0x2));}if(a2){const av=a1['primvars:skel:jointIndices'],aw=a1['primvars:skel:jointWeights'],ax=a1['primvars:skel:jointIndices:elementSize']||0x4;if(av&&aw){const ay=ab['length']/0x3;let az,aA;a9&&a9['length']>0x0?(az=this['_expandAttribute'](av,a9,ax),aA=this['_expandAttribute'](aw,a9,ax)):(az=av,aA=aw);const aB=new Uint16Array(ay*0x4),aC=new Float32Array(ay*0x4);this[c6(0x142)](az,aA,ax,ay,aB,aC),a3['setAttribute']('skinIndex',new B(aB,0x4)),a3['setAttribute']('skinWeight',new B(aC,0x4));}}return a3;}['_buildGeometryWithSubsets'](a0,a1,a2=!0x1){const c7=bb,a3=new y(),a4=a0[c7(0x1ab)];if(!a4||a4['length']===0x0)return a3;const a5=a0['faceVertexIndices'],a6=a0[c7(0x195)];if(!a6||a6[c7(0x12e)]===0x0)return a3;const a7=a0['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7),a9=a8['holeFaces'],aa=a8[c7(0x1ad)],{uvs:ab,uvIndices:ac}=this[c7(0xf9)](a0),{uvs2:ad,uv2Indices:ae}=this['_findUV2Primvar'](a0),af=a0['normals']||a0['primvars:normals'],ag=a0['normals:indices']||a0['primvars:normals:indices'],ah=a2?a0['primvars:skel:jointIndices']:null,ai=a2?a0['primvars:skel:jointWeights']:null,aj=a0['primvars:skel:jointIndices:elementSize']||0x4,ak=[];let al=0x0;for(let aJ=0x0;aJ<a6[c7(0x12e)];aJ++){if(ak['push'](al),a9['has'](aJ))continue;const aK=a6[aJ],aL=aa['get'](aJ);if(aL&&aL['length']>0x0){let aM=aK;for(const aN of aL)aM+=a6[aN];al+=aM-0x2;}else aK>=0x3&&(al+=aK-0x2);}const am=new Int32Array(al)[c7(0x1eb)](-0x1);for(let aO=0x0;aO<a1['length'];aO++){const aP=a1[aO];for(let aQ=0x0;aQ<aP['indices'][c7(0x12e)];aQ++){const aR=aP['indices'][aQ];if(aR>=a6['length'])continue;const aS=ak[aR],aT=a6[aR]-0x2;for(let aU=0x0;aU<aT;aU++)am[aS+aU]=aO;}}const an=[];for(let aV=0x0;aV<al;aV++)an['push']({'original':aV,'subset':am[aV]});an[c7(0x181)]((aW,aX)=>aW['subset']-aX['subset']);const ao=[];let ap=an['length']>0x0?an[0x0][c7(0x144)]:-0x1,aq=0x0;for(let aW=0x0;aW<an['length'];aW++)an[aW][c7(0x144)]!==ap&&(ap>=0x0&&ao['push']({'start':aq*0x3,'count':(aW-aq)*0x3,'materialIndex':ap}),ap=an[aW]['subset'],aq=aW);ap>=0x0&&an['length']>aq&&ao['push']({'start':aq*0x3,'count':(an[c7(0x12e)]-aq)*0x3,'materialIndex':ap});for(const aX of ao)a3['addGroup'](aX[c7(0x172)],aX['count'],aX['materialIndex']);const {indices:ar,pattern:as}=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8),au=a6['reduce']((aY,aZ)=>aY+aZ,0x0),av=ab&&!ac&&ab['length']/0x2===au||ad&&!ae&&ad['length']/0x2===au?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aw=ac?this[c7(0x1b9)](ac,as):ab&&ab['length']/0x2===au?av:null,ax=ae?this['_applyTriangulationPattern'](ae,as):ad&&ad['length']/0x2===au?av:null,ay=af&&ag&&ag['length']>0x0,az=af&&af[c7(0x12e)]/0x3===au,aA=ay?this[c7(0x1b9)](ag,as):az?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aB=!af&&ar[c7(0x12e)]>0x0?this['_computeVertexNormals'](a4,ar):null,aC=al*0x3,aD=new Float32Array(aC*0x3),aE=ab?new Float32Array(aC*0x2):null,aF=ad?new Float32Array(aC*0x2):null,aG=af||aB?new Float32Array(aC*0x3):null,aH=ah?new Uint16Array(aC*aj):null,aI=ai?new Float32Array(aC*aj):null;for(let aY=0x0;aY<an['length'];aY++){const aZ=an[aY][c7(0x1b7)];for(let b0=0x0;b0<0x3;b0++){const b1=aZ*0x3+b0,b2=aY*0x3+b0,b3=ar[b1];if(aD[b2*0x3]=a4[b3*0x3],aD[b2*0x3+0x1]=a4[b3*0x3+0x1],aD[b2*0x3+0x2]=a4[b3*0x3+0x2],aE&&ab){if(aw){const b4=aw[b1];aE[b2*0x2]=ab[b4*0x2],aE[b2*0x2+0x1]=ab[b4*0x2+0x1];}else ab['length']/0x2===a4['length']/0x3&&(aE[b2*0x2]=ab[b3*0x2],aE[b2*0x2+0x1]=ab[b3*0x2+0x1]);}if(aF&&ad){if(ax){const b5=ax[b1];aF[b2*0x2]=ad[b5*0x2],aF[b2*0x2+0x1]=ad[b5*0x2+0x1];}else ad['length']/0x2===a4['length']/0x3&&(aF[b2*0x2]=ad[b3*0x2],aF[b2*0x2+0x1]=ad[b3*0x2+0x1]);}if(aG){if(af&&aA){const b6=aA[b1];aG[b2*0x3]=af[b6*0x3],aG[b2*0x3+0x1]=af[b6*0x3+0x1],aG[b2*0x3+0x2]=af[b6*0x3+0x2];}else af&&af[c7(0x12e)]===a4['length']?(aG[b2*0x3]=af[b3*0x3],aG[b2*0x3+0x1]=af[b3*0x3+0x1],aG[b2*0x3+0x2]=af[b3*0x3+0x2]):aB&&(aG[b2*0x3]=aB[b3*0x3],aG[b2*0x3+0x1]=aB[b3*0x3+0x1],aG[b2*0x3+0x2]=aB[b3*0x3+0x2]);}if(aH&&aI&&ah&&ai){for(let b7=0x0;b7<aj;b7++)aH[b2*aj+b7]=ah[b3*aj+b7]||0x0,aI[b2*aj+b7]=ai[b3*aj+b7]||0x0;}}}if(a3['setAttribute']('position',new B(aD,0x3)),aE&&a3['setAttribute']('uv',new B(aE,0x2)),aF&&a3[c7(0x126)]('uv1',new B(aF,0x2)),a3['setAttribute'](c7(0x1db),new B(aG,0x3)),aH&&aI){const b8=new Uint16Array(aC*0x4),b9=new Float32Array(aC*0x4);this['_selectTopWeights'](aH,aI,aj,aC,b8,b9),a3['setAttribute'](c7(0x102),new B(b8,0x4)),a3['setAttribute']('skinWeight',new B(b9,0x4));}return a3;}['_selectTopWeights'](a0,a1,a2,a3,a4,a5){if(a2<=0x4){for(let a7=0x0;a7<a3;a7++)for(let a8=0x0;a8<0x4;a8++)a8<a2?(a4[a7*0x4+a8]=a0[a7*a2+a8]||0x0,a5[a7*0x4+a8]=a1[a7*a2+a8]||0x0):(a4[a7*0x4+a8]=0x0,a5[a7*0x4+a8]=0x0);return;}const a6=new Uint32Array(a2);for(let a9=0x0;a9<a3;a9++){const aa=a9*a2;for(let ac=0x0;ac<a2;ac++)a6[ac]=ac;for(let ad=0x0;ad<0x4;ad++){let ae=ad,af=a1[aa+a6[ad]]||0x0;for(let ag=ad+0x1;ag<a2;ag++){const ah=a1[aa+a6[ag]]||0x0;ah>af&&(af=ah,ae=ag);}if(ae!==ad){const ai=a6[ad];a6[ad]=a6[ae],a6[ae]=ai;}}let ab=0x0;for(let aj=0x0;aj<0x4;aj++)ab+=a1[aa+a6[aj]]||0x0;for(let ak=0x0;ak<0x4;ak++){const al=a6[ak];ab>0x0?(a4[a9*0x4+ak]=a0[aa+al]||0x0,a5[a9*0x4+ak]=(a1[aa+al]||0x0)/ab):(a4[a9*0x4+ak]=0x0,a5[a9*0x4+ak]=0x0);}}}['_findUVPrimvar'](a0){const c8=bb;for(const a3 in a0){if(!a3['startsWith']('primvars:')||a3['endsWith'](':typeName')||a3['endsWith'](':elementSize')||a3['endsWith'](':indices')||a3['includes'](c8(0x13a)))continue;const a4=a0[a3+c8(0x1f1)];if(a4&&a4['includes']('texCoord'))return{'uvs':a0[a3],'uvIndices':a0[a3+':indices']};}const a1=a0[c8(0x18c)]||a0['primvars:UVMap'],a2=a0['primvars:st:indices'];return{'uvs':a1,'uvIndices':a2};}['_findUV2Primvar'](a0){const a1=a0['primvars:st1'],a2=a0['primvars:st1:indices'];return{'uvs2':a1,'uv2Indices':a2};}[bb(0x15b)](a0){const c9=bb;if(!a0||a0['length']===0x0)return{'parentToHoles':new Map(),'holeFaces':new Set()};const a1=new Map(),a2=new Set();for(let a3=0x0;a3<a0['length'];a3+=0x2){const a4=a0[a3],a5=a0[a3+0x1];a2['add'](a4),a1['has'](a5)||a1['set'](a5,[]),a1['get'](a5)[c9(0x1ac)](a4);}return{'parentToHoles':a1,'holeFaces':a2};}[bb(0x1ae)](a0,a1,a2=null,a3=null){const ca=bb,a4=[],a5=[],a6=[];let a7=0x0;for(let ab=0x0;ab<a1['length'];ab++)a6['push'](a7),a7+=a1[ab];const a8=a3?.['parentToHoles']||new Map(),a9=a3?.['holeFaces']||new Set();let aa=0x0;for(let ac=0x0;ac<a1['length'];ac++){const ad=a1[ac];if(a9[ca(0x115)](ac)){aa+=ad;continue;}const ae=a8['get'](ac);if(ae&&ae[ca(0x12e)]>0x0&&a2&&a2['length']>0x0){const af=new Map(),ag=[];for(let aj=0x0;aj<ad;aj++){const ak=a0[aa+aj];ag['push'](ak),af[ca(0x156)](ak,aa+aj);}const ah=[];for(const al of ae){const am=a6[al],an=a1[al],ao=[];for(let ap=0x0;ap<an;ap++){const aq=a0[am+ap];ao['push'](aq),af['set'](aq,am+ap);}ah['push'](ao);}const ai=this['_triangulateNGonWithHoles'](ag,ah,a2);for(const ar of ai)a4['push'](ar[0x0],ar[0x1],ar[0x2]),a5[ca(0x1ac)](af['get'](ar[0x0]),af['get'](ar[0x1]),af['get'](ar[0x2]));}else{if(ad===0x3)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2]),a5['push'](aa,aa+0x1,aa+0x2);else{if(ad===0x4)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2],a0[aa],a0[aa+0x2],a0[aa+0x3]),a5['push'](aa,aa+0x1,aa+0x2,aa,aa+0x2,aa+0x3);else{if(ad>0x4){if(a2&&a2['length']>0x0){const as=[];for(let av=0x0;av<ad;av++)as['push'](a0[aa+av]);const au=this['_triangulateNGon'](as,a2);for(const aw of au)a4['push'](aw[0x0],aw[0x1],aw[0x2]),a5['push'](aa+as['indexOf'](aw[0x0]),aa+as['indexOf'](aw[0x1]),aa+as['indexOf'](aw[0x2]));}else{for(let ax=0x1;ax<ad-0x1;ax++)a4['push'](a0[aa],a0[aa+ax],a0[aa+ax+0x1]),a5['push'](aa,aa+ax,aa+ax+0x1);}}}}}aa+=ad;}return{'indices':a4,'pattern':a5};}['_applyTriangulationPattern'](a0,a1){const a2=[];for(let a3=0x0;a3<a1['length'];a3++)a2['push'](a0[a1[a3]]);return a2;}['_triangulateNGon'](a0,a1){const cb=bb,a2=[],a3=[];for(const a9 of a0)a3[cb(0x1ac)](new i(a1[a9*0x3],a1[a9*0x3+0x1],a1[a9*0x3+0x2]));const a4=new i();for(let aa=0x0;aa<a3['length'];aa++){const ab=a3[aa],ac=a3[(aa+0x1)%a3[cb(0x12e)]];a4['x']+=(ab['y']-ac['y'])*(ab['z']+ac['z']),a4['y']+=(ab['z']-ac['z'])*(ab['x']+ac['x']),a4['z']+=(ab['x']-ac['x'])*(ab['y']+ac['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)[cb(0x1ca)](),a5[cb(0x15c)](a6,a4)['normalize']();for(const ad of a3)a2['push'](new F(ad[cb(0x18f)](a5),ad['dot'](a6)));const a7=G['triangulateShape'](a2,[]),a8=[];for(const ae of a7)a8['push']([a0[ae[0x0]],a0[ae[0x1]],a0[ae[0x2]]]);return a8;}['_triangulateNGonWithHoles'](a0,a1,a2){const cc=bb,a3=[];for(const ac of a0)a3['push'](new i(a2[ac*0x3],a2[ac*0x3+0x1],a2[ac*0x3+0x2]));const a4=new i();for(let ad=0x0;ad<a3['length'];ad++){const ae=a3[ad],af=a3[(ad+0x1)%a3['length']];a4['x']+=(ae['y']-af['y'])*(ae['z']+af['z']),a4['y']+=(ae['z']-af['z'])*(ae['x']+af['x']),a4['z']+=(ae['x']-af['x'])*(ae['y']+af['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();const a7=[];for(const ag of a3)a7['push'](new F(ag[cc(0x18f)](a5),ag['dot'](a6)));const a8=[];for(const ah of a1){const ai=[];for(const aj of ah){const ak=new i(a2[aj*0x3],a2[aj*0x3+0x1],a2[aj*0x3+0x2]);ai[cc(0x1ac)](new F(ak['dot'](a5),ak[cc(0x18f)](a6)));}a8['push'](ai);}const a9=[...a0];for(const al of a1)a9['push'](...al);const aa=G['triangulateShape'](a7,a8),ab=[];for(const am of aa)ab['push']([a9[am[0x0]],a9[am[0x1]],a9[am[0x2]]]);return ab;}['_triangulateIndices'](a0,a1){const cd=bb,a2=[];let a3=0x0;for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];if(a5===0x3)a2[cd(0x1ac)](a0[a3],a0[a3+0x1],a0[a3+0x2]);else{if(a5===0x4)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2],a0[a3],a0[a3+0x2],a0[a3+0x3]);else{if(a5>0x4){for(let a6=0x1;a6<a5-0x1;a6++)a2[cd(0x1ac)](a0[a3],a0[a3+a6],a0[a3+a6+0x1]);}}}a3+=a5;}return a2;}['_expandAttribute'](a0,a1,a2){const ce=bb,a3=new Array(a1['length']*a2);for(let a4=0x0;a4<a1[ce(0x12e)];a4++){const a5=a1[a4];for(let a6=0x0;a6<a2;a6++)a3[a4*a2+a6]=a0[a5*a2+a6];}return a3;}['_computeVertexNormals'](a0,a1){const a2=a0['length']/0x3,a3=new Float32Array(a2*0x3);for(let a4=0x0;a4<a1['length'];a4+=0x3){const a5=a1[a4],a6=a1[a4+0x1],a7=a1[a4+0x2],a8=a0[a5*0x3],a9=a0[a5*0x3+0x1],aa=a0[a5*0x3+0x2],ab=a0[a6*0x3],ac=a0[a6*0x3+0x1],ad=a0[a6*0x3+0x2],ae=a0[a7*0x3],af=a0[a7*0x3+0x1],ag=a0[a7*0x3+0x2],ah=ab-a8,ai=ac-a9,aj=ad-aa,ak=ae-a8,al=af-a9,am=ag-aa,an=ai*am-aj*al,ao=aj*ak-ah*am,ap=ah*al-ai*ak;a3[a5*0x3]+=an,a3[a5*0x3+0x1]+=ao,a3[a5*0x3+0x2]+=ap,a3[a6*0x3]+=an,a3[a6*0x3+0x1]+=ao,a3[a6*0x3+0x2]+=ap,a3[a7*0x3]+=an,a3[a7*0x3+0x1]+=ao,a3[a7*0x3+0x2]+=ap;}for(let aq=0x0;aq<a2;aq++){const ar=a3[aq*0x3],as=a3[aq*0x3+0x1],au=a3[aq*0x3+0x2],av=Math['sqrt'](ar*ar+as*as+au*au);av>0x0&&(a3[aq*0x3]/=av,a3[aq*0x3+0x1]/=av,a3[aq*0x3+0x2]/=av);}return a3;}[bb(0x190)](a0,a1){const cf=bb;let a2=null;const a3=a1[cf(0x1cf)];return a3&&(a2=Array['isArray'](a3)?a3[0x0]:a3),a2||(a2=this['_getMaterialBindingTarget'](a0)),a2;}['_buildMaterial'](a0,a1){const cg=bb,a2=new H();let a3=null;const a4=a1['material:binding'];if(a4&&(a3=Array['isArray'](a4)?a4[0x0]:a4),a3||(a3=this['_getMaterialBindingTarget'](a0)),!a3){const a5=[],a6=a0+'/';for(const a7 in this[cg(0x168)]){if(!a7['startsWith'](a6)||!a7['endsWith'](cg(0x16b)))continue;const a8=this['specsByPath'][a7];if(!a8)continue;const a9=a8['fields']['targetPaths'];a9&&a9['length']>0x0&&a5['push'](a9[0x0]);}a5['length']>0x0&&(a3=this['_pickBestMaterial'](a5));}if(!a3){const aa='/'+a0['split']('/')[0x1],ab=this['materialsByRoot']['get'](aa);if(ab){for(const ac of ab)if(ac[cg(0x17d)](aa+'/Looks/')||ac['startsWith'](aa+cg(0x1a3))){a3=ac;break;}}}return a3&&this['_applyMaterial'](a2,a3),a2;}['_buildMaterialForPath'](a0){const a1=new H();return a0&&this['_applyMaterial'](a1,a0),a1;}['_applyMaterialBinding'](a0,a1){const a2=a1+'.material:binding',a3=this['specsByPath'][a2];if(!a3)return;let a4=null;const a5=a3['fields']?.['targetPaths']||a3['fields']?.['default'];if(a5&&(a4=Array['isArray'](a5)?a5[0x0]:a5),!a4)return;a4=String(a4)['replace'](/^<|>$/g,'');const a6=new H();this['_applyMaterial'](a6,a4),a0['material']=a6;}['_pickBestMaterial'](a0){const ch=bb;for(const a1 of a0){const a2=this[ch(0x153)]['get'](a1);if(a2)for(const a3 of a2){const a4=this['_getAttributes'](a3);if(a4['info:id']==='UsdUVTexture'&&a4['inputs:file'])return a1;}}return a0[0x0];}['_applyMaterial'](a0,a1){const ci=bb;if(!this['specsByPath'][a1])return;const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this['specsByPath'][a3];if(!a4)continue;const a5=this['_getAttributes'](a3)['info:id']||a4['fields'][ci(0x185)];a5==='UsdPreviewSurface'||a5==='ND_UsdPreviewSurface_surfaceshader'?this['_applyPreviewSurface'](a0,a3):a5===ci(0x100)&&this['_applyOpenPBRSurface'](a0,a3);}}['_applyTextureOrValue'](a0,a1,a2,a3,a4,a5,a6,a7){const cj=bb,a8=a1+'.'+a3,a9=this['specsByPath'][a8];if(a9&&a9[cj(0x167)]['connectionPaths']&&a9['fields']['connectionPaths']['length']>0x0){const aa=a7===this['_getTextureFromOpenPBRConnection']?a9['fields']['connectionPaths']:[a9['fields']['connectionPaths'][0x0]];for(const ab of aa){const ac=a7['call'](this,ab);if(ac)return ac['colorSpace']=a5,a0[a4]=ac,!0x0;}}return a2[a3]!==void 0x0&&a6&&a6(a2[a3]),!0x1;}['_applyPreviewSurface'](a0,a1){const ck=bb,a2=this[ck(0x124)](a1),a3=(a6,a7,a8,a9)=>this['_applyTextureOrValue'](a0,a1,a2,a6,a7,a8,a9,this['_getTextureFromConnection']),a4=a6=>{const cl=ck,a7=a1+'.'+a6;return this[cl(0x168)][a7];};if(a3('inputs:diffuseColor','map',I,a6=>{Array['isArray'](a6)&&a6['length']>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}),a0['map']&&a0['map']['userData'][ck(0x1b3)]){const a6=a0['map']['userData']['scale'];Array['isArray'](a6)&&a6['length']>=0x3&&a0[ck(0x1ce)]['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}if(a3('inputs:emissiveColor','emissiveMap',I,a7=>{const cm=ck;Array['isArray'](a7)&&a7[cm(0x12e)]>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}),a0[ck(0xf5)]){if(a0['emissiveMap']['userData']['scale']){const a7=a0['emissiveMap']['userData']['scale'];Array['isArray'](a7)&&a7['length']>=0x3&&a0[ck(0x106)]['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}else a0[ck(0x106)]['set'](0xffffff);}if(a3(ck(0x16f),'normalMap',W,null),a0['normalMap']&&a0['normalMap']['userData'][ck(0x1b3)]){const a8=a0['normalMap']['userData']['scale'];a0['normalScale']=new F(a8[0x0],a8[0x1]);}if(a3('inputs:roughness','roughnessMap',W,a9=>{a0['roughness']=a9;})&&(a0['roughness']=0x1),a3('inputs:metallic',ck(0x1cb),W,a9=>{a0['metalness']=a9;})&&(a0['metalness']=0x1),a3(ck(0x1da),'aoMap',W,null),a2['inputs:ior']!==void 0x0&&(a0['ior']=a2[ck(0xfc)]),a3(ck(0x14b),ck(0x18e),I,a9=>{const cn=ck;Array['isArray'](a9)&&a9['length']>=0x3&&a0[cn(0x189)]['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}),a0['specularColorMap']&&a0['specularColorMap']['userData']['scale']){const a9=a0['specularColorMap']['userData']['scale'];Array['isArray'](a9)&&a9['length']>=0x3&&a0['specularColor']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}a2['inputs:clearcoat']!==void 0x0&&(a0['clearcoat']=a2['inputs:clearcoat']),a2['inputs:clearcoatRoughness']!==void 0x0&&(a0['clearcoatRoughness']=a2['inputs:clearcoatRoughness']);const a5=a2['inputs:opacityThreshold']!==void 0x0?a2['inputs:opacityThreshold']:0x0;if(a4(ck(0x191))?.['fields']?.['connectionPaths']?.['length']>0x0)a5>0x0?(a0[ck(0x14c)]=a5,a0['transparent']=!0x1):a0[ck(0x1d6)]=!0x0;else{const aa=a2['inputs:opacity']!==void 0x0?a2['inputs:opacity']:0x1;aa<0x1&&(a0['transparent']=!0x0,a0[ck(0x1ec)]=aa);}}['_applyOpenPBRSurface'](a0,a1){const co=bb,a2=this[co(0x124)](a1),a3=(ae,af,ag,ah)=>this['_applyTextureOrValue'](a0,a1,a2,ae,af,ag,ah,this['_getTextureFromOpenPBRConnection']);if(a3(co(0xff),'map',I,ae=>{const cp=co;Array['isArray'](ae)&&ae['length']>=0x3&&a0[cp(0x1ce)]['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}),a0['map']&&a0['map']['userData'][co(0x1b3)]){const ae=a0['map']['userData']['scale'];Array['isArray'](ae)&&ae['length']>=0x3&&a0[co(0x1ce)]['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}a3('inputs:base_metalness','metalnessMap',W,af=>{typeof af=='number'&&(a0['metalness']=af);}),a3('inputs:specular_roughness','roughnessMap',W,af=>{typeof af=='number'&&(a0['roughness']=af);});const a4=a3('inputs:emission_color','emissiveMap',I,af=>{Array['isArray'](af)&&af['length']>=0x3&&a0['emissive']['setRGB'](af[0x0],af[0x1],af[0x2],I);}),a5=a2['inputs:emission_luminance'];a5!==void 0x0&&a5>0x0&&(a4?a0['emissiveIntensity']=a5:a0['emissive']['multiplyScalar'](a5));const a6=a2['inputs:transmission_weight'];if(a6!==void 0x0&&a6>0x0){a0['transmission']=a6;const af=a2['inputs:transmission_depth'];af!==void 0x0&&(a0['thickness']=af);const ag=a2['inputs:transmission_color'];ag!==void 0x0&&Array['isArray'](ag)&&(a0['attenuationColor']['setRGB'](ag[0x0],ag[0x1],ag[0x2]),a0['attenuationDistance']=af||0x1);}const a7=a2['inputs:geometry_opacity'];a7!==void 0x0&&a7<0x1&&(a0['opacity']=a7,a0['transparent']=!0x0);const a8=a2['inputs:specular_ior'];a8!==void 0x0&&(a0['ior']=a8);const a9=a2['inputs:coat_weight'];if(a9!==void 0x0&&a9>0x0){a0['clearcoat']=a9;const ah=a2['inputs:coat_roughness'];ah!==void 0x0&&(a0[co(0x11b)]=ah);}const aa=a2['inputs:thin_film_weight'];if(aa!==void 0x0&&aa>0x0){a0[co(0x1f0)]=aa;const ai=a2['inputs:thin_film_ior'];ai!==void 0x0&&(a0['iridescenceIOR']=ai);const aj=a2['inputs:thin_film_thickness'];if(aj!==void 0x0){const ak=aj*0x3e8;a0['iridescenceThicknessRange']=[ak,ak];}}const ab=a2['inputs:specular_weight'];ab!==void 0x0&&(a0[co(0x1b2)]=ab);const ac=a2['inputs:specular_color'];ac!==void 0x0&&Array['isArray'](ac)&&a0['specularColor']['setRGB'](ac[0x0],ac[0x1],ac[0x2]);const ad=a2['inputs:specular_roughness_anisotropy'];ad!==void 0x0&&ad>0x0&&(a0['anisotropy']=ad),a3('inputs:geometry_normal',co(0x151),W,null);}['_getTextureFromOpenPBRConnection'](a0){const cq=bb,a1=a0[cq(0x1d9)](/<|>/g,''),a2=a1['split']('.')[0x0],a3=this['specsByPath'][a2];if(!a3)return null;const a4=this['_getAttributes'](a2),a5=a4[cq(0x185)]||a3['fields']['info:id'];if(a3[cq(0x167)]['typeName']===cq(0x1c1)){const a7=a1['split']('.')[0x1],a8=a2+'.'+a7,a9=this['specsByPath'][a8];return a9?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](a9['fields']['connectionPaths'][0x0]):null;}if(a5===cq(0x12c)){const aa=a4['inputs:filename'];return aa?this['_loadTextureFromPath'](aa):null;}if(a5&&a5['startsWith']('ND_image_')){const ab=a4[cq(0x159)];return ab?this['_loadTextureFromPath'](ab):null;}if(a5==='MayaND_fileTexture_color4'){const ac=a2+'.inputs:inColor',ad=this['specsByPath'][ac];return ad?.['fields']?.['connectionPaths']?.[cq(0x12e)]>0x0?this['_getTextureFromOpenPBRConnection'](ad[cq(0x167)]['connectionPaths'][0x0]):null;}if(a5&&a5['startsWith']('ND_convert_')){const ae=a2+'.inputs:in',af=this['specsByPath'][ae];return af?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](af['fields']['connectionPaths'][0x0]):null;}if(a5===cq(0x136)){const ag=a2+cq(0x1ea),ah=this['specsByPath'][ag];return ah?.['fields']?.['connectionPaths']?.['length']>0x0?this[cq(0x101)](ah['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:color_correct'){const ai=a2+'.inputs:input',aj=this['specsByPath'][ai];return aj?.[cq(0x167)]?.[cq(0x17f)]?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](aj[cq(0x167)][cq(0x17f)][0x0]):null;}const a6=a2['substring'](0x0,a2[cq(0x1af)]('/'));if(a6){const ak=this['specsByPath'][a6];if(ak){const al=this['_getAttributes'](a6);if((al['info:id']||ak['fields']['info:id'])==='arnold:image'){const am=al['inputs:filename'];if(am)return this['_loadTextureFromPath'](am);}}}return null;}['_loadTextureFromPath'](a0){const cr=bb;if(!a0)return null;if(this[cr(0x143)][a0])return this[cr(0x143)][a0];const a1=this['_loadTexture'](a0,null,null);return a1&&(this['textureCache'][a0]=a1),a1;}['_getTextureFromConnection'](a0){const cs=bb,a1=a0[cs(0x14d)]('.')[0x0],a2=this['specsByPath'][a1];if(!a2)return null;const a3=this['_getAttributes'](a1);if((a3[cs(0x185)]||a2['fields']['info:id'])!==cs(0x1ee))return null;const a4=a3['inputs:file'];if(!a4)return null;let a5=null,a6=0x0;const a7=a1+'.inputs:st',a8=this['specsByPath'][a7];if(a8?.['fields']?.['connectionPaths']?.[cs(0x12e)]>0x0){const ad=a8['fields']['connectionPaths'][0x0]['replace'](/<|>/g,'')['split']('.')[0x0],ae=this['specsByPath'][ad];if(ae){const af=this['_getAttributes'](ad),ag=af['info:id']||ae['fields']['info:id'];if(ag==='UsdTransform2d'){a5=af;const ah=ad+'.inputs:in',ai=this[cs(0x168)][ah];if(ai?.['fields']?.['connectionPaths']?.['length']>0x0){const aj=ai[cs(0x167)]['connectionPaths'][0x0]['replace'](/<|>/g,'')[cs(0x14d)]('.')[0x0],ak=this['_getAttributes'](aj)['inputs:varname'];ak==='st1'?a6=0x1:ak==='st2'&&(a6=0x2);}}else{if(ag==='UsdPrimvarReader_float2'){const al=af['inputs:varname'];al===cs(0x11f)?a6=0x1:al==='st2'&&(a6=0x2);}}}}const a9=a3['inputs:scale'],aa=a3['inputs:bias'];let ab=a4;if(a9&&(ab+=':s'+a9['join'](',')),aa&&(ab+=':b'+aa['join'](',')),this['textureCache'][ab])return this[cs(0x143)][ab];const ac=this['_loadTexture'](a4,a3,a5);return ac&&(a9&&(ac['userData']['scale']=a9),aa&&(ac[cs(0x1e0)]['bias']=aa),a6!==0x0&&(ac['channel']=a6),this[cs(0x143)][ab]=ac),ac;}['_applyTextureTransforms'](a0,a1){const cu=bb;if(!a1)return;const a2=a1['inputs:scale'];a2&&Array['isArray'](a2)&&a2['length']>=0x2&&a0['repeat']['set'](a2[0x0],a2[0x1]);const a3=a1['inputs:translation'];a3&&Array['isArray'](a3)&&a3[cu(0x12e)]>=0x2&&a0[cu(0x141)]['set'](a3[0x0],a3[0x1]);const a4=a1['inputs:rotation'];typeof a4==cu(0x162)&&(a0['rotation']=a4*Math['PI']/0xb4);}[bb(0x16a)](a0,a1,a2){const cv=bb;let a3=a0;a3['startsWith']('@')&&(a3=a3['slice'](0x1)),a3['endsWith']('@')&&(a3=a3['slice'](0x0,-0x1));const a4=this[cv(0x1e1)](a3);let a5=this['assets'][a4];if(a5||(a5=this['assets'][a3]),!a5){const a6=a3[cv(0x14d)]('/')[cv(0x146)]();for(const a7 in this['assets'])if(a7['endsWith'](a6)||a7['endsWith']('/'+a6))return this['_createTextureFromData'](this['assets'][a7],a1,a2);if(this['manager']){const a8=this['manager']['resolveURL'](a6);if(a8!==a6)return this['_createTextureFromData'](a8,a1,a2);}return console['warn']('USDLoader:\x20Texture\x20not\x20found:',a3),null;}return this['_createTextureFromData'](a5,a1,a2);}[bb(0x139)](a0,a1,a2){if(!a0)return null;const a3=this,a4=new M();let a5;if(typeof a0=='string')a5=a0;else{if(a0 instanceof Uint8Array||a0 instanceof ArrayBuffer){const a7=new Blob([a0]);a5=URL['createObjectURL'](a7);}else return null;}const a6=new Image();return a6['onload']=function(){const cw=c;a4['image']=a6,a1&&(a4['wrapS']=a3['_getWrapMode'](a1['inputs:wrapS']),a4['wrapT']=a3['_getWrapMode'](a1['inputs:wrapT'])),a3['_applyTextureTransforms'](a4,a2),a4['needsUpdate']=!0x0,typeof a0!=cw(0x171)&&URL['revokeObjectURL'](a5);},a6['src']=a5,a4;}['_getWrapMode'](a0){const cx=bb;return a0===cx(0x19e)?N:a0==='mirror'?O:a0==='clamp'?P:N;}['_buildSkeleton'](a0){const cy=bb,a1=this[cy(0x124)](a0),a2=a1[cy(0x1a2)];if(!a2||a2[cy(0x12e)]===0x0)return null;const a3=a1['bindTransforms'],a4=a1['restTransforms'],a5=this['_flattenMatrixArray'](a3,a2['length']),a6=this['_flattenMatrixArray'](a4,a2['length']),a7=[],a8={},a9=[];for(let ad=0x0;ad<a2['length'];ad++){const ae=a2[ad],af=ae['split']('/')['pop'](),ag=new R();if(ag['name']=af,a7[cy(0x1ac)](ag),a8[ae]={'bone':ag,'index':ad},a5&&a5['length']>=(ad+0x1)*0x10){const ah=new f(),ai=a5['slice'](ad*0x10,(ad+0x1)*0x10);ah['set'](ai[0x0],ai[0x4],ai[0x8],ai[0xc],ai[0x1],ai[0x5],ai[0x9],ai[0xd],ai[0x2],ai[0x6],ai[0xa],ai[0xe],ai[0x3],ai[0x7],ai[0xb],ai[0xf]);const aj=ah[cy(0x132)]()['invert']();a9['push'](aj);}else a9['push'](new f());}for(let ak=0x0;ak<a2['length'];ak++){const al=a2[ak]['split']('/');if(al[cy(0x12e)]>0x1){const am=al['slice'](0x0,-0x1)[cy(0x1a7)]('/'),an=a8[am];an&&an[cy(0x13f)]['add'](a7[ak]);}}if(a6&&a6['length']>=a2['length']*0x10)for(let ao=0x0;ao<a2['length'];ao++){const ap=new f(),aq=a6['slice'](ao*0x10,(ao+0x1)*0x10);ap['set'](aq[0x0],aq[0x4],aq[0x8],aq[0xc],aq[0x1],aq[0x5],aq[0x9],aq[0xd],aq[0x2],aq[0x6],aq[0xa],aq[0xe],aq[0x3],aq[0x7],aq[0xb],aq[0xf]),ap[cy(0x111)](a7[ao]['position'],a7[ao]['quaternion'],a7[ao]['scale']);}const aa=a7['filter'](ar=>!ar['parent']||!ar['parent']['isBone']),ab=this['specsByPath'][a0+cy(0x158)];let ac=null;return ab&&ab[cy(0x167)][cy(0x10d)]&&ab['fields']['targetPaths']['length']>0x0&&(ac=ab['fields']['targetPaths'][0x0]),{'skeleton':new S(a7,a9),'joints':a2,'rootBones':aa,'animationPath':ac,'path':a0};}['_bindSkeletons'](){const cz=bb;for(const a0 of this['skinnedMeshes']){const {mesh:a1,skeletonPath:a2,localJoints:a3,geomBindTransform:a4}=a0;let a5=null;if(a2&&this['skeletons'][a2]&&(a5=this['skeletons'][a2]),!a5){for(const aa in this['skeletons'])if(a2&&(a2[cz(0x11d)](aa)||aa['includes'](a2))){a5=this['skeletons'][aa];break;}}if(!a5){const ab=Object['keys'](this['skeletons']);ab['length']>0x0&&(a5=this['skeletons'][ab[0x0]]);}if(!a5){console['warn']('USDComposer:\x20No\x20skeleton\x20found\x20for\x20skinned\x20mesh',a1['name']);continue;}const {skeleton:a6,rootBones:a7,joints:a8}=a5;if(a3&&a3['length']>0x0){const ac=a1['geometry']['attributes'][cz(0x102)];if(ac){const ad=[];for(let af=0x0;af<a3['length'];af++){const ag=a3[af],ah=a8[cz(0x196)](ag);ad[af]=ah>=0x0?ah:0x0;}const ae=ac['array'];for(let ai=0x0;ai<ae['length'];ai++){const aj=ae[ai];aj<ad['length']&&(ae[ai]=ad[aj]);}}}for(const ak of a7)a1[cz(0x127)](ak);const a9=new f();if(a4&&a4['length']===0x10){const al=a4;a9[cz(0x156)](al[0x0],al[0x4],al[0x8],al[0xc],al[0x1],al[0x5],al[0x9],al[0xd],al[0x2],al[0x6],al[0xa],al[0xe],al[0x3],al[0x7],al[0xb],al[0xf]);}a1['bind'](a6,a9);}}['_buildAnimations'](){const cA=bb,a0=[];for(const a2 in this['specsByPath']){const a3=this['specsByPath'][a2];if(a3['specType']!==K['Prim']||a3['fields']['typeName']!=='SkelAnimation')continue;const a4=this[cA(0x15a)](a2);a4&&a0['push'](a4);}const a1=this[cA(0x1a5)]();return a1['length']>0x0&&a0['push'](new T('TransformAnimation',-0x1,a1)),a0;}['_buildTransformAnimations'](){const cB=bb,a0=[];for(const a1 in this['specsByPath']){const a2=this['specsByPath'][a1];if(a2['specType']!==K[cB(0x19d)])continue;const a3=a2['fields']?.['typeName'];if(a3!=='Xform'&&a3!=='Scope'&&a3!==cB(0x1e9))continue;const a4=a1['split']('/')[cB(0x146)](),a5=a1+cB(0x131),a6=this['specsByPath'][a5];if(a6?.['fields']?.['timeSamples']){const {times:ae,values:af}=a6['fields']['timeSamples'],ag=[],ah=[];for(let ai=0x0;ai<ae['length'];ai++){ag['push'](ae[ai]/this['fps']);const aj=af[ai];ah[cB(0x1ac)](aj[0x0],aj[0x1],aj[0x2],aj[0x3]);}ag['length']>0x0&&a0['push'](new U(a4+'.quaternion',new Float32Array(ag),new Float32Array(ah)));}const a7=a1+cB(0x1a0),a8=this['specsByPath'][a7];if(a8?.['fields']?.['timeSamples']){const {times:ak,values:al}=a8['fields']['timeSamples'],am=[],an=[],ao=new g(),ap=new h();for(let aq=0x0;aq<ak['length'];aq++){am['push'](ak[aq]/this['fps']);const ar=al[aq];ao['set'](ar[0x0]*Math['PI']/0xb4,ar[0x1]*Math['PI']/0xb4,ar[0x2]*Math['PI']/0xb4,'ZYX'),ap[cB(0x10f)](ao),an['push'](ap['x'],ap['y'],ap['z'],ap['w']);}am[cB(0x12e)]>0x0&&a0[cB(0x1ac)](new U(a4+cB(0x1e4),new Float32Array(am),new Float32Array(an)));}const a9=a1+'.xformOp:translate',aa=this['specsByPath'][a9];if(aa?.['fields']?.['timeSamples']){const {times:as,values:au}=aa[cB(0x167)]['timeSamples'],av=[],aw=[];for(let ax=0x0;ax<as[cB(0x12e)];ax++){av['push'](as[ax]/this['fps']);const ay=au[ax];aw['push'](ay[0x0],ay[0x1],ay[0x2]);}av['length']>0x0&&a0['push'](new V(a4+'.position',new Float32Array(av),new Float32Array(aw)));}const ab=a1+cB(0x160),ac=this['specsByPath'][ab];if(ac?.['fields']?.['timeSamples']){const {times:az,values:aA}=ac['fields']['timeSamples'],aB=[],aC=[];for(let aD=0x0;aD<az['length'];aD++){aB['push'](az[aD]/this[cB(0x1e3)]);const aE=aA[aD];aC['push'](aE[0x0],aE[0x1],aE[0x2]);}aB[cB(0x12e)]>0x0&&a0['push'](new V(a4+cB(0x1bf),new Float32Array(aB),new Float32Array(aC)));}const ad=a2['fields']?.['properties']||[];for(const aF of ad){if(!aF['startsWith']('xformOp:transform'))continue;const aG=a1+'.'+aF,aH=this['specsByPath'][aG];if(!aH?.['fields']?.['timeSamples'])continue;const {times:aI,values:aJ}=aH['fields']['timeSamples'],aK=[],aL=[],aM=[],aN=[],aO=[],aP=[],aQ=new f(),aR=new i(),aS=new h(),aT=new i();for(let aU=0x0;aU<aI['length'];aU++){const aV=aJ[aU];if(!aV||aV['length']<0x10)continue;const aW=aI[aU]/this['fps'];aQ[cB(0x156)](aV[0x0],aV[0x4],aV[0x8],aV[0xc],aV[0x1],aV[0x5],aV[0x9],aV[0xd],aV[0x2],aV[0x6],aV[0xa],aV[0xe],aV[0x3],aV[0x7],aV[0xb],aV[0xf]),aQ['decompose'](aR,aS,aT),aK['push'](aW),aL[cB(0x1ac)](aR['x'],aR['y'],aR['z']),aM['push'](aW),aN['push'](aS['x'],aS['y'],aS['z'],aS['w']),aO['push'](aW),aP['push'](aT['x'],aT['y'],aT['z']);}aK['length']>0x0&&(a0['push'](new V(a4+'.position',new Float32Array(aK),new Float32Array(aL))),a0['push'](new U(a4+'.quaternion',new Float32Array(aM),new Float32Array(aN))),a0['push'](new V(a4+'.scale',new Float32Array(aO),new Float32Array(aP))));break;}}return a0;}['_buildAnimationClip'](a0){const cC=bb,a1=this[cC(0x124)](a0)['joints'];if(!a1||a1['length']===0x0)return null;const a2=[],a3=this[cC(0x125)](a0,'rotations');if(a3&&a3['times']&&a3['values']){const {times:a7,values:a8}=a3;for(let a9=0x0;a9<a1['length'];a9++){const aa=a1[a9]['split']('/')['pop'](),ab=[],ac=[];for(let ad=0x0;ad<a7['length'];ad++){const ae=a8[ad];if(!ae||ae['length']<(a9+0x1)*0x4)continue;ab['push'](a7[ad]/this['fps']);const af=ae[a9*0x4+0x0],ag=ae[a9*0x4+0x1],ah=ae[a9*0x4+0x2],ai=ae[a9*0x4+0x3];ac['push'](af,ag,ah,ai);}ab['length']>0x0&&a2['push'](new U(aa+'.quaternion',new Float32Array(ab),new Float32Array(ac)));}}const a4=this['_getTimeSampledAttribute'](a0,cC(0x1b6));if(a4&&a4['times']&&a4['values']){const {times:aj,values:ak}=a4;for(let al=0x0;al<a1['length'];al++){const am=a1[al]['split']('/')['pop'](),an=[],ao=[];for(let ap=0x0;ap<aj['length'];ap++){const aq=ak[ap];!aq||aq['length']<(al+0x1)*0x3||(an[cC(0x1ac)](aj[ap]/this['fps']),ao['push'](aq[al*0x3+0x0],aq[al*0x3+0x1],aq[al*0x3+0x2]));}an['length']>0x0&&a2[cC(0x1ac)](new V(am+'.position',new Float32Array(an),new Float32Array(ao)));}}const a5=this['_getTimeSampledAttribute'](a0,'scales');if(a5&&a5['times']&&a5['values']){const {times:ar,values:as}=a5;for(let au=0x0;au<a1['length'];au++){const av=a1[au]['split']('/')[cC(0x146)](),aw=[],ax=[];for(let ay=0x0;ay<ar['length'];ay++){const az=as[ay];!az||az['length']<(au+0x1)*0x3||(aw['push'](ar[ay]/this['fps']),ax['push'](az[au*0x3+0x0],az[au*0x3+0x1],az[au*0x3+0x2]));}aw[cC(0x12e)]>0x0&&a2['push'](new V(av+'.scale',new Float32Array(aw),new Float32Array(ax)));}}if(a2['length']===0x0)return null;const a6=a0['split']('/')['pop']();return new T(a6,-0x1,a2);}['_getTimeSampledAttribute'](a0,a1){const cD=bb,a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3&&a3[cD(0x167)]['timeSamples']){const a4=a3[cD(0x167)]['timeSamples'];if(a4['times']&&a4['values'])return a4;}return null;}[bb(0x145)](a0,a1){const cE=bb;if(!a0||a0[cE(0x12e)]===0x0)return null;if(typeof a0[0x0]=='number')return a0;const a2=[];for(let a3=0x0;a3<a1;a3++)for(let a4=0x0;a4<0x4;a4++){const a5=a0[a3*0x4+a4];a5&&a5['length']===0x4?a2['push'](a5[0x0],a5[0x1],a5[0x2],a5[0x3]):a2['push'](a4===0x0?0x1:0x0,a4===0x1?0x1:0x0,a4===0x2?0x1:0x0,a4===0x3?0x1:0x0);}return a2;}}class le extends X{constructor(a0){super(a0);}['load'](a0,a1,a2,a3){const cF=bb,a4=this,a5=new Z(a4['manager']);a5['setPath'](a4['path']),a5['setResponseType'](cF(0x147)),a5[cF(0x194)](a4['requestHeader']),a5['setWithCredentials'](a4[cF(0x1a9)]),a5['load'](a0,function(a6){const cG=cF;try{a1(a4[cG(0x1cd)](a6));}catch(a7){a3?a3(a7):console['error'](a7),a4['manager'][cG(0x10c)](a0);}},a2,a3);}['parse'](a0){const cL=bb,a1=new Yt(),a2=new ne(),a3=new TextDecoder();function a4(ae){const cH=c;return ae instanceof ArrayBuffer?ae:ae['byteOffset']===0x0&&ae['byteLength']===ae['buffer'][cH(0x186)]?ae['buffer']:ae['buffer']['slice'](ae['byteOffset'],ae['byteOffset']+ae['byteLength']);}function a5(ae){const af=ae['lastIndexOf']('.');return af<0x0||ae['lastIndexOf']('/')>af?'':ae['slice'](af+0x1)['toLowerCase']();}function a6(ae){const cI=c,af={};for(const ag in ae){const ah=ae[ag],ai=a5(ag);if(ai===cI(0x1c3)||ai===cI(0x1be)||ai==='jpeg'||ai==='avif'){af[ag]=ah;continue;}ai!=='usd'&&ai!==cI(0x179)&&ai!=='usdc'||(a7(ah)?af[ag]=a2['parseData'](a4(ah)):af[ag]=a1['parseData'](a3['decode'](ah)));}return af;}function a7(ae){const cJ=c,af=new Uint8Array([0x50,0x58,0x52,0x2d,0x55,0x53,0x44,0x43]),ag=ae instanceof Uint8Array?ae:new Uint8Array(ae);if(ag[cJ(0x186)]<af['length'])return!0x1;for(let ah=0x0;ah<af[cJ(0x12e)];ah++)if(ag[ah]!==af[ah])return!0x1;return!0x0;}function a8(ae){const cK=c,af=Object['keys'](ae);if(af[cK(0x12e)]<0x1)return{'file':void 0x0,'filename':'','basePath':''};const ag=af[0x0],ah=a5(ag);let ai=!0x1;const aj=ag['lastIndexOf']('/'),ak=aj>=0x0?ag['slice'](0x0,aj):'';if(ah==='usda')return{'file':ae[ag],'filename':ag,'basePath':ak};if(ah===cK(0x104))ai=!0x0;else{if(ah==='usd'){if(a7(ae[ag]))ai=!0x0;else return{'file':ae[ag],'filename':ag,'basePath':ak};}}return ai?{'file':ae[ag],'filename':ag,'basePath':ak}:{'file':void 0x0,'filename':'','basePath':''};}const a9=this;if(typeof a0=='string'){const ae=new tt(a9[cL(0x1d1)]),af=a1['parseData'](a0);return ae['compose'](af,{});}if(a7(a0)){const ag=new tt(a9['manager']),ah=a2['parseData'](a4(a0));return ag['compose'](ah,{});}const aa=new Uint8Array(a0);if(aa[0x0]===0x50&&aa[0x1]===0x4b){const ai=d(aa),aj=a6(ai),{file:ak,filename:al,basePath:am}=a8(ai);if(!ak)throw new Error('USDLoader:\x20Invalid\x20USDZ\x20package.\x20The\x20first\x20ZIP\x20entry\x20must\x20be\x20a\x20USD\x20layer\x20(.usd/.usda/.usdc).');const an=new tt(a9['manager']),ao=aj[al];if(!ao)throw new Error('USDLoader:\x20Failed\x20to\x20parse\x20root\x20layer\x20\x22'+al+'\x22.');return an['compose'](ao,aj,{},am);}const ab=new tt(a9[cL(0x1d1)]),ac=a3['decode'](aa),ad=a1['parseData'](ac);return ab['compose'](ad,{});}}export{le as USDLoader};
|
|
1
|
+
const bd=c;(function(a0,a1){const ba=c,a2=a0();while(!![]){try{const a3=-parseInt(ba(0x12c))/0x1+-parseInt(ba(0x1d5))/0x2+-parseInt(ba(0x1a9))/0x3*(-parseInt(ba(0x1a1))/0x4)+parseInt(ba(0x17b))/0x5+-parseInt(ba(0x213))/0x6*(parseInt(ba(0x196))/0x7)+parseInt(ba(0x124))/0x8*(parseInt(ba(0x15d))/0x9)+parseInt(ba(0x212))/0xa*(parseInt(ba(0x20c))/0xb);if(a3===a1)break;else a2['push'](a2['shift']());}catch(a4){a2['push'](a2['shift']());}}}(a,0x4024e));import{u as d}from'./fflate.module.js';import{G as e,i as f,aw as g,Q as h,V as i,O as j,aA as k,z as l,E as m,q as n,y as o,f as p,a6 as q,w as r,v as s,C as t,aB as u,Z as v,_ as w,$ as x,B as y,g as B,H as F,J as G,a0 as H,S as I,ai as M,R as N,l as O,k as P,ab as R,a9 as S,aa as T,al as U,aj as V,aC as W,L as X,F as Z}from'./ModelViewer.js';import'vue';function c(b,d){b=b-0x121;const e=a();let f=e[b];return f;}import'./index7.js';const Xt=/^def\s+(?:(\w+)\s+)?"?([^"]+)"?$/,Zt=/^string\s+(\w+)$/,Qt=/^(?:uniform\s+)?(\w+(?:\[\])?)\s+(.+)$/;class Yt{['parseText'](a0){const bb=c;a0=this['_preprocess'](a0);const a1={},a2=a0['split']('\x0a');let a3=null,a4=a1;const a5=[a1];for(const a6 of a2)if(a6[bb(0x1f3)]('=')){const a7=this['_findAssignmentOperator'](a6);if(a7===-0x1){a3=a6[bb(0x1c4)]();continue;}const a8=a6['slice'](0x0,a7)[bb(0x1c4)](),a9=a6['slice'](a7+0x1)['trim']();if(a9['endsWith']('{')){const aa={};a5['push'](aa),a4[a8]=aa,a4=aa;}else{if(a9['endsWith']('(')){const ab=a9['slice'](0x0,-0x1);a4[a8]=ab;const ac={};a5['push'](ac),a4=ac;}else a4[a8]=a9;}}else{if(a6['includes'](':')&&!a6['includes']('=')){const ad=a6['indexOf'](':'),ae=a6[bb(0x1fd)](0x0,ad)['trim'](),af=a6['slice'](ad+0x1)['trim']();/^[\d.]+$/['test'](ae)&&(a4[ae]=af);}else{if(a6['endsWith']('{')){const ag=a4[a3]||{};a5['push'](ag),a4[a3]=ag,a4=ag;}else{if(a6['endsWith']('}')){if(a5['pop'](),a5[bb(0x1a8)]===0x0)continue;a4=a5[a5['length']-0x1];}else{if(a6['endsWith']('(')){const ah={};a5['push'](ah),a3=a6['split']('(')[0x0]['trim']()||a3,a4[a3]=ah,a4=ah;}else a6['endsWith'](')')?(a5['pop'](),a4=a5[a5['length']-0x1]):a6[bb(0x1c4)]()&&(a3=a6[bb(0x1c4)]());}}}}return a1;}['_preprocess'](a0){const bc=c;a0=this['_stripBlockComments'](a0),a0=this['_collapseTripleQuotedStrings'](a0);const a1=a0[bc(0x186)]('\x0a'),a2=[];let a3=!0x1,a4=0x0,a5=0x0,a6='';for(let a7=0x0;a7<a1['length'];a7++){let a8=a1[a7];a8=this['_stripInlineComment'](a8);const a9=a8['trim']();if(a3){a6+='\x20'+a9;for(const aa of a9)aa==='['?a4++:aa===']'?a4--:aa==='('&&a4>0x0?a5++:aa===')'&&a4>0x0&&a5--;a4===0x0&&a5===0x0&&(a2['push'](a6),a6='',a3=!0x1);}else{if(a9[bc(0x1f3)]('=')){const ab=this['_findAssignmentOperator'](a9);if(ab!==-0x1){const ac=a9[bc(0x1fd)](ab+0x1)['trim']();let ad=0x0,ae=0x0;for(const af of ac)af==='['?ad++:af===']'&&ae++;if(ad>ae){a3=!0x0,a4=ad-ae,a5=0x0,a6=a9;continue;}}}a2['push'](a9);}}return a2['join']('\x0a');}[bd(0x182)](a0){const be=bd;let a1='',a2=0x0;for(;a2<a0[be(0x1a8)];)if(a0[a2]==='/'&&a2+0x1<a0['length']&&a0[a2+0x1]==='*'){let a3=a2+0x2;for(;a3<a0['length'];){if(a0[a3]==='*'&&a3+0x1<a0[be(0x1a8)]&&a0[a3+0x1]==='/'){a3+=0x2;break;}a3++;}a2=a3;}else a1+=a0[a2],a2++;return a1;}['_collapseTripleQuotedStrings'](a0){let a1='',a2=0x0;for(;a2<a0['length'];){if(a2+0x2<a0['length']){const a3=a0['slice'](a2,a2+0x3);if(a3==='\x27\x27\x27'||a3==='\x22\x22\x22'){const a4=a3;for(a1+=a4,a2+=0x3;a2<a0['length'];)if(a2+0x2<a0['length']&&a0['slice'](a2,a2+0x3)===a4){a1+=a4,a2+=0x3;break;}else a0[a2]==='\x0a'?a1+='\x5cn':a0[a2]!=='\x0d'&&(a1+=a0[a2]),a2++;continue;}}a1+=a0[a2],a2++;}return a1;}['_stripInlineComment'](a0){const bf=bd;if(a0['trim']()[bf(0x1d4)]('#usda'))return a0;let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='#')return a0['slice'](0x0,a4)['trimEnd']();}}}return a0;}['_findAssignmentOperator'](a0){let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='=')return a4;}}}return-0x1;}['parseData'](a0){const bg=bd,a1=this['parseText'](a0),a2={},a3={'Attribute':0x1,'Prim':0x6,'Relationship':0x8},a4={};if('#usda\x201.0'in a1){const a6=a1['#usda\x201.0'];a6['upAxis']&&(a4['upAxis']=a6['upAxis']['replace'](/"/g,'')),a6[bg(0x221)]&&(a4['defaultPrim']=a6['defaultPrim']['replace'](/"/g,'')),a6['metersPerUnit']!==void 0x0&&(a4['metersPerUnit']=parseFloat(a6[bg(0x1e1)]));}a2['/']={'specType':a3['Prim'],'fields':a4};const a5=(a7,a8)=>{const bh=bg,a9=[];for(const aa in a7){if(aa==='#usda\x201.0'||aa===bh(0x20b))continue;const ab=aa['match'](Xt);if(ab){const ac=ab[0x1]||'',ad=ab[0x2],ae=a8==='/'?'/'+ad:a8+'/'+ad;a9['push'](ad);const af={'typeName':ac},ag=a7[aa];this['_extractPrimData'](ag,ae,af,a2,a3),a2[ae]={'specType':a3['Prim'],'fields':af},a5(ag,ae);}}a9['length']>0x0&&a2[a8]&&(a2[a8]['fields']['primChildren']=a9);};return a5(a1,'/'),{'specsByPath':a2};}[bd(0x214)](a0,a1,a2,a3,a4){const bi=bd;if(!(!a0||typeof a0!='object'))for(const a5 in a0){if(a5['startsWith'](bi(0x128)))continue;if(a5===bi(0x1c5)){a2['references']=[a0[a5]];continue;}if(a5==='payload'){a2['payload']=a0[a5];continue;}if(a5==='variants'){const a7={},a8=a0[a5];for(const a9 in a8){const aa=a9['match'](Zt);if(aa){const ab=aa[0x1],ac=a8[a9][bi(0x1f7)](/"/g,'');a7[ab]=ac;}}Object['keys'](a7)['length']>0x0&&(a2[bi(0x199)]=a7);continue;}if(a5['startsWith']('rel\x20')){const ad=a5['slice'](0x4),ae=a1+'.'+ad,af=a0[a5]['replace'](/[<>]/g,'');a3[ae]={'specType':a4['Relationship'],'fields':{'targetPaths':[af]}};continue;}if(a5['includes']('xformOpOrder')){const ag=a0[a5][bi(0x1f7)](/[\[\]]/g,'')['split'](',')['map'](ah=>ah['trim']()['replace'](/"/g,''));a2['xformOpOrder']=ag;continue;}const a6=a5['match'](Qt);if(a6){const ah=a6[0x1],ai=a6[0x2],aj=a0[a5];if(ai[bi(0x204)]('.connect')){const ak=ai['slice'](0x0,-0x8),al=a1+'.'+ak;let am=String(aj)['trim']();am[bi(0x1d4)]('<')&&(am=am['slice'](0x1)),am['endsWith']('>')&&(am=am['slice'](0x0,-0x1)),a3[al]||(a3[al]={'specType':a4['Attribute'],'fields':{'typeName':ah}}),a3[al]['fields'][bi(0x15f)]=[am];continue;}if(ai['endsWith'](bi(0x18b))&&typeof aj=='object'){const an=ai['slice'](0x0,-0xc),ao=a1+'.'+an,ap=[],aq=[];for(const as in aj){const au=parseFloat(as);isNaN(au)||(ap['push'](au),aq['push'](this['_parseAttributeValue'](ah,aj[as])));}const ar=ap['map']((av,aw)=>({'t':av,'v':aq[aw]}))['sort']((av,aw)=>av['t']-aw['t']);a3[ao]={'specType':a4['Attribute'],'fields':{'timeSamples':{'times':ar['map'](av=>av['t']),'values':ar[bi(0x1c3)](av=>av['v'])},'typeName':ah}};}else{const av=this['_parseAttributeValue'](ah,aj),aw=a1+'.'+ai;a3[aw]={'specType':a4['Attribute'],'fields':{'default':av,'typeName':ah}};}}}}['_parseAttributeValue'](a0,a1){const bj=bd;if(a1==null)return;const a2=String(a1)['trim']();if(a0['endsWith']('[]'))try{let a3=a2['replace'](/\(/g,'[')['replace'](/\)/g,']');a3[bj(0x204)](',')&&(a3=a3['slice'](0x0,-0x1));const a4=JSON['parse'](a3);return Array[bj(0x1d8)](a4)&&Array['isArray'](a4[0x0])?a4['flat']():a4;}catch{return a2['replace'](/[\[\]]/g,'')[bj(0x186)](',')['map'](a5=>{const a6=a5['trim'](),a7=parseFloat(a6);return isNaN(a7)?a6['replace'](/"/g,''):a7;});}if(a0['includes']('3')||a0['includes']('2')||a0['includes']('4'))return a2[bj(0x1f7)](/[()]/g,'')['split'](',')['map'](a5=>parseFloat(a5['trim']()));if(a0['startsWith']('quat')){const a5=a2['replace'](/[()]/g,'')['split'](',')['map'](a6=>parseFloat(a6['trim']()));return[a5[0x1],a5[0x2],a5[0x3],a5[0x0]];}return a0['includes']('matrix')?a2['replace'](/[()]/g,'')['split'](',')['map'](a6=>parseFloat(a6['trim']())):a0==='float'||a0===bj(0x220)||a0==='int'?parseFloat(a2):a0==='string'||a0==='token'?this['_parseString'](a2):a0==='asset'?a2[bj(0x1f7)](/@/g,'')['replace'](/"/g,''):this['_parseString'](a2);}['_parseString'](a0){(a0['startsWith']('\x22')&&a0['endsWith']('\x22')||a0['startsWith']('\x27')&&a0['endsWith']('\x27'))&&(a0=a0['slice'](0x1,-0x1));let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='\x5c'&&a2+0x1<a0['length']){const a3=a0[a2+0x1];switch(a3){case'n':a1+='\x0a';break;case't':a1+='\x09';break;case'r':a1+='\x0d';break;case'\x5c':a1+='\x5c';break;case'\x22':a1+='\x22';break;case'\x27':a1+='\x27';break;default:a1+=a3;break;}a2+=0x2;}else a1+=a0[a2],a2++;return a1;}}function a(){const cR=['opacity','207ghTCrI','.xformOp:scale','connectionPaths','reader','.inputs:bump_map','TokenListOp','roughnessMap','quaternion','compose','normalMap','faceVertexIndices','userData','byteLength','readString','primvars:normals:indices','_conversionBuffer','inputs:specularColor','Vec4i','textureCache','view','materialPath','match','EPSILON','push','typeEnum','references','skeletons','VariantSelectionMap','skinWeight','rotation','339205GKUZfr','readInt8','info:id','timeSamples','clearcoatRoughness','_buildSkeleton','holeFaces','_stripBlockComments','DiskLight','has','inputs:specular_roughness_anisotropy','split','lastIndexOf','readFloat64','st1','emissive','.timeSamples','_getMaterialPath','readBytes','isMesh','major','ND_UsdPreviewSurface_surfaceshader','scales','targetPaths','_buildCamera','version','Vec4f','35txQGcx','readUint8','xformOp:rotateY','variantSelection','_triangulateIndices','setUint32','withCredentials','_loadTextureFromPath','toLowerCase','USDComposer:\x20No\x20skeleton\x20found\x20for\x20skinned\x20mesh','values','73468EQLoRg','PathVector','_getGeomSubsets','byteOffset','readInt64','_applyOpenPBRSurface','readUint32','length','51bdYndl','pop','tell','faceVertexCounts','specType','fStop','basePath','.inputs:inColor','invert','SPECS','mirror','inputs:file','verticalApertureOffset','_expandAttribute','.quaternion','_parseNumber','orthographic','_getVariantPaths','_triangulateIndicesWithPattern','readInt32','_findUVPrimvar','inputs:specular_weight','setAttribute','usdc','Not\x20a\x20valid\x20USDC\x20file','set','map','trim','prepend\x20references','readUint16','remove','transparent','inputs:ior','_readHalf','multiply','offset','start','fields','Relationship','position','_conversionView','add','points','startsWith','453430CjnYOf','AssetPath','childrenByPath','isArray','inputs:opacity','get','specsByPath','inputs:wrapT','.inputs:input',':typeName','getInt32','name','metersPerUnit','_collectAttributesFromPath','string','primvars:','UInt64','TimeSamples','UInt','_buildAnimationClip','image','ND_image_','Cylinder','pivot','fieldSets','_readInlinedValue','primvars:skel:jointWeights','wrapS','.skel:skeleton','number','includes','tocOffset','MayaND_fileTexture_color4','typeName','replace','setResponseType','getUint16','shadersByMaterialPath','_readTOC','jpg','slice','_applyTriangulationPattern','Dictionary','inputs:thin_film_weight','_readSpecs','minor','bindTransforms','endsWith','_applyMaterialBinding','load','Prim','_applyTextureOrValue','/Materials/','subarray','variants','3908278nAfxWx','isSafeInteger','UChar','horizontalApertureOffset','manager','inputs:filename','10ZcrTfl','288006YklzTX','_extractPrimData','.scale','isFinite','dot','revokeObjectURL','xformOpOrder','material','getUint32','parentToHoles','Float','xformOp:orient','_createTextureFromData','double','defaultPrim','color','warn','isInlined','inputs:scale','clippingRange','indices','normal','variantChildren','filmOffset','_getTimeSampledAttribute','keys','min','107712wDnGRm','isSkelRoot','Int','inputs:thin_film_thickness','def\x20','size','log','seek','315596RWdMnL','Cube','_buildMesh','repeat','_triangulateNGon','_buildLight','decode','attenuationColor','reduce','applyTransform','_buildPathsFromCompressed','UInt64ListOp','decompose','Vec3h','abs','path','_readPathsRecursive','scale','metalness','getInt16','getInt8','specularIntensity','readUint64','_resolveReference','_getLocalVariantSelections','Vec2i','pathIndex','_getAttributes','Permission','geometry','max','strings','multiplyScalar','pow','buffer','uv1','tokens','String','Capsule','getFloat32','readFloat32','_buildHierarchy','setRGB','_getTextureFromOpenPBRConnection','children','_getTextureFromConnection','resolveURL','inputs:bias'];a=function(){return cR;};return a();}const ft=new TextDecoder(),vt=new Float32Array(0x20);for(let A=0x0;A<0x20;A++)vt[A]=Math['pow'](0x2,A-0xf);const Kt=Math['pow'](0x2,-0xe),b={'Invalid':0x0,'Bool':0x1,'UChar':0x2,'Int':0x3,'UInt':0x4,'Int64':0x5,'UInt64':0x6,'Half':0x7,'Float':0x8,'Double':0x9,'String':0xa,'Token':0xb,'AssetPath':0xc,'Matrix2d':0xd,'Matrix3d':0xe,'Matrix4d':0xf,'Quatd':0x10,'Quatf':0x11,'Quath':0x12,'Vec2d':0x13,'Vec2f':0x14,'Vec2h':0x15,'Vec2i':0x16,'Vec3d':0x17,'Vec3f':0x18,'Vec3h':0x19,'Vec3i':0x1a,'Vec4d':0x1b,'Vec4f':0x1c,'Vec4h':0x1d,'Vec4i':0x1e,'Dictionary':0x1f,'TokenListOp':0x20,'StringListOp':0x21,'PathListOp':0x22,'ReferenceListOp':0x23,'IntListOp':0x24,'Int64ListOp':0x25,'UIntListOp':0x26,'UInt64ListOp':0x27,'PathVector':0x28,'TokenVector':0x29,'Specifier':0x2a,'Permission':0x2b,'Variability':0x2c,'VariantSelectionMap':0x2d,'TimeSamples':0x2e,'Payload':0x2f,'DoubleVector':0x30,'LayerOffsetVector':0x31,'StringVector':0x32,'ValueBlock':0x33,'Value':0x34,'UnregisteredValue':0x35,'UnregisteredValueListOp':0x36,'PayloadListOp':0x37,'TimeCode':0x38,'PathExpression':0x39,'Relocates':0x3a,'Spline':0x3b,'AnimationBlock':0x3c},$t=0xffffffff,Jt=0x69,te=0x74;function St(a0,a1,a2,a3,a4,a5){for(;a1<a2;){const a6=a0[a1++];if(a1>a2)break;let a7=a6>>0x4;if(a7===0xf){let ab;do{if(a1>=a2)break;ab=a0[a1++],a7+=ab;}while(ab===0xff&&a1<a2);}if(a7>0x0){a1+a7>a2&&(a7=a2-a1);for(let ac=0x0;ac<a7&&!(a4>=a5);ac++)a3[a4++]=a0[a1++];}if(a1>=a2||a1+0x2>a2)break;const a8=a0[a1++]|a0[a1++]<<0x8;if(a8===0x0)break;let a9=(a6&0xf)+0x4;if(a9===0x13){let ad;do{if(a1>=a2)break;ad=a0[a1++],a9+=ad;}while(ad===0xff&&a1<a2);}const aa=a4-a8;if(aa<0x0)break;for(let ae=0x0;ae<a9&&!(a4>=a5);ae++)a3[a4++]=a3[aa+ae];}return a4;}function ut(a0,a1){const a2=new Uint8Array(a1),a3=a0[0x0];if(a3===0x0)return St(a0,0x1,a0['length'],a2,0x0,a1),a2;{let a4=0x1;const a5=[];for(let a8=0x0;a8<a3;a8++){const a9=(a0[a4]|a0[a4+0x1]<<0x8|a0[a4+0x2]<<0x10|a0[a4+0x3]<<0x18)>>>0x0;a5['push'](a9),a4+=0x4;}let a6=a4,a7=0x0;for(let aa=0x0;aa<a3;aa++){const ab=a5[aa],ac=Math['min'](0x10000,a1-a7);St(a0,a6,a6+ab,a2,a7,a7+ac),a6+=ab,a7+=ac;}return a2;}}function z(a0,a1){const a2=a1*0x4+(a1*0x2+0x7>>0x3)+0x4,a3=ut(new Uint8Array(a0),a2);return ee(a3,a1);}function ee(a0,a1){const bk=bd,a2=new DataView(a0['buffer'],a0['byteOffset'],a0[bk(0x169)]);let a3=0x0;const a4=a2['getInt32'](a3,!0x0);a3+=0x4;const a5=a1*0x2+0x7>>0x3,a6=a3,a7=a3+a5,a8=new Int32Array(a1);let a9=0x0,aa=a6,ab=a7;for(let ac=0x0;ac<a1;){const ad=a0[aa++];for(let ae=0x0;ae<0x4&&ac<a1;ae++,ac++){const af=ad>>ae*0x2&0x3;let ag=0x0;switch(af){case 0x0:ag=a4;break;case 0x1:ag=a2['getInt8'](ab),ab+=0x1;break;case 0x2:ag=a2['getInt16'](ab,!0x0),ab+=0x2;break;case 0x3:ag=a2['getInt32'](ab,!0x0),ab+=0x4;break;}a9+=ag,a8[ac]=a9;}}return a8;}class se{constructor(a0){const bl=bd;this['buffer']=a0,this[bl(0x170)]=new DataView(a0),this['offset']=0x0;}[bd(0x12b)](a0){this['offset']=a0;}['tell'](){return this['offset'];}['readUint8'](){const a0=this['view']['getUint8'](this['offset']);return this['offset']+=0x1,a0;}['readInt8'](){const bm=bd,a0=this[bm(0x170)]['getInt8'](this['offset']);return this['offset']+=0x1,a0;}['readUint16'](){const a0=this['view']['getUint16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readInt16'](){const bn=bd,a0=this['view'][bn(0x13f)](this[bn(0x1cc)],!0x0);return this['offset']+=0x2,a0;}[bd(0x1a7)](){const a0=this['view']['getUint32'](this['offset'],!0x0);return this['offset']+=0x4,a0;}['readInt32'](){const bo=bd,a0=this['view'][bo(0x1df)](this['offset'],!0x0);return this['offset']+=0x4,a0;}[bd(0x142)](){const bp=bd,a0=this['view'][bp(0x21b)](this['offset'],!0x0),a1=this[bp(0x170)]['getUint32'](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}['readInt64'](){const bq=bd,a0=this[bq(0x170)]['getUint32'](this['offset'],!0x0),a1=this['view']['getInt32'](this['offset']+0x4,!0x0);return this[bq(0x1cc)]+=0x8,a1*0x100000000+a0;}['readFloat32'](){const br=bd,a0=this['view']['getFloat32'](this['offset'],!0x0);return this[br(0x1cc)]+=0x4,a0;}['readFloat64'](){const a0=this['view']['getFloat64'](this['offset'],!0x0);return this['offset']+=0x8,a0;}['readBytes'](a0){const a1=new Uint8Array(this['buffer'],this['offset'],a0);return this['offset']+=a0,a1;}['readString'](a0){const a1=this['readBytes'](a0);let a2=0x0;for(;a2<a0&&a1[a2]!==0x0;)a2++;return ft['decode'](a1['subarray'](0x0,a2));}}class st{constructor(a0,a1){this['lo']=a0,this['hi']=a1;}get['isArray'](){return(this['hi']&0x80000000)!==0x0;}get['isInlined'](){return(this['hi']&0x40000000)!==0x0;}get['isCompressed'](){return(this['hi']&0x20000000)!==0x0;}get[bd(0x175)](){return this['hi']>>0x10&0xff;}get['payload'](){return this['lo']+(this['hi']&0xffff)*0x100000000;}['getInlinedValue'](){return this['lo'];}}class ne{['parseData'](a0){const bs=bd;this['buffer']=a0 instanceof ArrayBuffer?a0:a0['buffer'],this[bs(0x160)]=new se(this[bs(0x14e)]),this[bs(0x194)]={'major':0x0,'minor':0x0,'patch':0x0},this[bs(0x16c)]=new ArrayBuffer(0x4),this[bs(0x1d1)]=new DataView(this['_conversionBuffer']),this['_readBootstrap'](),this['_readTOC'](),this['_readTokens'](),this['_readStrings'](),this['_readFields'](),this['_readFieldSets'](),this['_readPaths'](),this[bs(0x201)](),this['specsByPath']={};for(const a1 of this['specs']){const a2=this['paths'][a1[bs(0x146)]];if(!a2)continue;const a3=this['_getFieldsForSpec'](a1);this['specsByPath'][a2]={'specType':a1[bs(0x1ad)],'fields':a3};}return{'specsByPath':this['specsByPath']};}['_readBootstrap'](){const bu=bd,a0=this['reader'];if(a0['seek'](0x0),a0['readString'](0x8)!=='PXR-USDC')throw new Error(bu(0x1c1));this['version']['major']=a0['readUint8'](),this['version']['minor']=a0['readUint8'](),this['version']['patch']=a0['readUint8'](),a0['readBytes'](0x5),this[bu(0x1f4)]=a0['readUint64']();}[bd(0x1fb)](){const bv=bd,a0=this['reader'];a0['seek'](this[bv(0x1f4)]);const a1=a0[bv(0x142)]();this['sections']={};for(let a2=0x0;a2<a1;a2++){const a3=a0[bv(0x16a)](0x10),a4=a0['readUint64'](),a5=a0['readUint64']();this['sections'][a3]={'start':a4,'size':a5};}}['_readTokens'](){const bw=bd,a0=this['sections']['TOKENS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0['start']);const a2=a1['readUint64']();if(this['tokens']=[],this['version']['major']===0x0&&this[bw(0x194)]['minor']<0x4){const a3=a1['readUint64'](),a4=a1['readBytes'](a3);let a5=0x0;for(let a6=0x0;a6<a2;a6++){let a7=a5;for(;a7<a4[bw(0x1a8)]&&a4[a7]!==0x0;)a7++;this[bw(0x150)]['push'](ft['decode'](a4['subarray'](a5,a7))),a5=a7+0x1;}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=ut(aa,a8);let ac=0x0;for(let ad=0x0;ad<a2;ad++){let ae=ac;for(;ae<ab['length']&&ab[ae]!==0x0;)ae++;this['tokens']['push'](ft[bw(0x132)](ab[bw(0x20a)](ac,ae))),ac=ae+0x1;}}}['_readStrings'](){const bx=bd,a0=this['sections']['STRINGS'];if(!a0){this[bx(0x14b)]=[];return;}const a1=this['reader'];a1['seek'](a0['start']);const a2=Math['floor'](a0[bx(0x129)]/0x4);this['strings']=[];for(let a3=0x0;a3<a2;a3++)this['strings'][bx(0x174)](a1['readUint32']());}['_readFields'](){const by=bd,a0=this['sections']['FIELDS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['fields']=[],this[by(0x194)][by(0x18f)]===0x0&&this['version']['minor']<0x4){const a2=Math['floor'](a0['size']/0xc);for(let a3=0x0;a3<a2;a3++){const a4=a1['readUint32'](),a5=a1['readUint32'](),a6=a1['readUint32']();this['fields']['push']({'tokenIndex':a4,'valueRep':new st(a5,a6)});}}else{const a7=a1['readUint64'](),a8=a1['readUint64'](),a9=a1['readBytes'](a8),aa=z(a9['buffer']['slice'](a9['byteOffset'],a9['byteOffset']+a8),a7),ab=a1['readUint64'](),ac=a1['readBytes'](ab),ad=ut(ac,a7*0x8),ae=new DataView(ad['buffer'],ad['byteOffset'],ad[by(0x169)]);for(let af=0x0;af<a7;af++){const ag=ae['getUint32'](af*0x8,!0x0),ah=ae['getUint32'](af*0x8+0x4,!0x0);this['fields']['push']({'tokenIndex':aa[af],'valueRep':new st(ag,ah)});}}}['_readFieldSets'](){const bz=bd,a0=this['sections']['FIELDSETS'];if(!a0)return;const a1=this['reader'];if(a1[bz(0x12b)](a0['start']),this['fieldSets']=[],this['version']['major']===0x0&&this[bz(0x194)]['minor']<0x4){const a2=Math['floor'](a0[bz(0x129)]/0x4);for(let a3=0x0;a3<a2;a3++)this[bz(0x1ed)]['push'](a1['readUint32']());}else{const a4=a1['readUint64'](),a5=a1[bz(0x142)](),a6=a1['readBytes'](a5),a7=z(a6['buffer']['slice'](a6['byteOffset'],a6['byteOffset']+a5),a4);for(let a8=0x0;a8<a4;a8++)this['fieldSets'][bz(0x174)](a7[a8]);}}['_readPaths'](){const bA=bd,a0=this['sections']['PATHS'];if(!a0)return;const a1=this[bA(0x160)];a1['seek'](a0[bA(0x1cd)]);const a2=a1['readUint64']();if(this['paths']=new Array(a2)['fill'](''),this['version']['major']===0x0&&this[bA(0x194)]['minor']<0x4)this['_readPathsRecursive']('');else{a1[bA(0x142)]();const a3=a1[bA(0x142)](),a4=a1[bA(0x18d)](a3),a5=z(a4['buffer']['slice'](a4['byteOffset'],a4['byteOffset']+a3),a2),a6=a1['readUint64'](),a7=a1[bA(0x18d)](a6),a8=z(a7['buffer']['slice'](a7['byteOffset'],a7['byteOffset']+a6),a2),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa[bA(0x14e)]['slice'](aa['byteOffset'],aa['byteOffset']+a9),a2);this[bA(0x136)](a5,a8,ab);}}[bd(0x13c)](a0,a1=0x0){const bB=bd,a2=this['reader'];if(a1>0x3e8)return;const a3=a2['readUint32'](),a4=a2[bB(0x1a7)](),a5=a2[bB(0x197)](),a6=(a5&0x1)!==0x0,a7=(a5&0x2)!==0x0,a8=(a5&0x4)!==0x0;let a9;if(a0==='')a9='/';else{const aa=this['tokens'][a4]||'';a8?a9=a0+'.'+aa:a9=a0==='/'?'/'+aa:a0+'/'+aa;}if(this['paths'][a3]=a9,a6&&a7){const ab=a2['readUint64']();this['_readPathsRecursive'](a9,a1+0x1),a2['seek'](ab),this[bB(0x13c)](a0,a1+0x1);}else a6?this[bB(0x13c)](a9,a1+0x1):a7&&this['_readPathsRecursive'](a0,a1+0x1);}['_buildPathsFromCompressed'](a0,a1,a2){const a3=(a4,a5)=>{const bC=c;let a6=a4;for(;a6<a0[bC(0x1a8)];){const a7=a6++,a8=a0[a7],a9=a1[a7],aa=a2[a7];let ab;if(a5==='')ab='/',a5=ab;else{const ae=this['tokens'][Math[bC(0x13a)](a9)]||'';a9<0x0?ab=a5+'.'+ae:ab=a5==='/'?'/'+ae:a5+'/'+ae;}this['paths'][a8]=ab;const ac=aa>0x0||aa===-0x1,ad=aa>=0x0;if(ac){if(ad){const af=a7+aa;a3(af,a5);}a5=ab;}else{if(!ad)break;}}};a3(0x0,'');}['_readSpecs'](){const bD=bd,a0=this['sections'][bD(0x1b2)];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['specs']=[],this[bD(0x194)]['major']===0x0&&this['version'][bD(0x202)]<0x4){const a2=this['version']['minor']===0x0&&this['version']['patch']===0x1?0x10:0xc,a3=Math['floor'](a0[bD(0x129)]/a2);for(let a4=0x0;a4<a3;a4++){const a5=a1[bD(0x1a7)](),a6=a1['readUint32'](),a7=a1[bD(0x1a7)]();a2===0x10&&a1['readUint32'](),this['specs']['push']({'pathIndex':a5,'fieldSetIndex':a6,'specType':a7});}}else{const a8=a1[bD(0x142)](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer'][bD(0x1fd)](aa['byteOffset'],aa[bD(0x1a4)]+a9),a8),ac=a1['readUint64'](),ad=a1['readBytes'](ac),ae=z(ad['buffer'][bD(0x1fd)](ad['byteOffset'],ad['byteOffset']+ac),a8),af=a1[bD(0x142)](),ag=a1['readBytes'](af),ah=z(ag['buffer'][bD(0x1fd)](ag['byteOffset'],ag[bD(0x1a4)]+af),a8);for(let ai=0x0;ai<a8;ai++)this['specs']['push']({'pathIndex':ab[ai],'fieldSetIndex':ae[ai],'specType':ah[ai]});}}['_readValue'](a0){const bE=bd,a1=a0['typeEnum'],a2=a0['isArray'],a3=a0['isInlined'];if(a1===b[bE(0x1e6)])return this['_readTimeSamples'](a0);if(a3)return this['_readInlinedValue'](a0);const a4=a0['payload'];if(a4===0x0&&a2)return[];if(a4<0x0||a4>=this[bE(0x14e)][bE(0x169)])throw new RangeError('USDCParser:\x20Invalid\x20payload\x20offset\x20'+a4+'\x20for\x20type\x20'+a1+'.');const a5=this['reader'][bE(0x1ab)]();this[bE(0x160)]['seek'](a4);let a6;return a2?a6=this['_readArrayValue'](a0):a6=this['_readScalarValue'](a1),this['reader']['seek'](a5),a6;}['_readInlinedValue'](a0){const bF=bd,a1=a0['typeEnum'],a2=a0['getInlinedValue'](),a3=this['_conversionView'];switch(a1){case b['Bool']:return a2!==0x0;case b[bF(0x20e)]:return a2&0xff;case b[bF(0x126)]:case b['UInt']:return a2;case b['Float']:return a3[bF(0x19b)](0x0,a2,!0x0),a3[bF(0x153)](0x0,!0x0);case b['Double']:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b['Token']:return this['tokens'][a2]||'';case b['String']:return this[bF(0x150)][this['strings'][a2]]||'';case b['AssetPath']:return this[bF(0x150)][a2]||'';case b['Specifier']:return a2;case b[bF(0x148)]:case b['Variability']:return a2;case b['Vec2h']:return a3['setUint32'](0x0,a2,!0x0),[this['_halfToFloat'](a3['getUint16'](0x0,!0x0)),this['_halfToFloat'](a3[bF(0x1f9)](0x2,!0x0))];case b['Vec2f']:case b['Vec2i']:return a3['setUint32'](0x0,a2,!0x0),[a3['getInt8'](0x0),a3['getInt8'](0x1)];case b['Vec3f']:case b['Vec3i']:return a3['setUint32'](0x0,a2,!0x0),[a3['getInt8'](0x0),a3[bF(0x140)](0x1),a3['getInt8'](0x2)];case b['Vec4f']:case b[bF(0x16e)]:return a3[bF(0x19b)](0x0,a2,!0x0),[a3['getInt8'](0x0),a3['getInt8'](0x1),a3['getInt8'](0x2),a3['getInt8'](0x3)];case b['Matrix2d']:{a3['setUint32'](0x0,a2,!0x0);const a4=a3[bF(0x140)](0x0),a5=a3['getInt8'](0x1);return[a4,0x0,0x0,a5];}case b['Matrix3d']:{a3['setUint32'](0x0,a2,!0x0);const a6=a3['getInt8'](0x0),a7=a3[bF(0x140)](0x1),a8=a3['getInt8'](0x2);return[a6,0x0,0x0,0x0,a7,0x0,0x0,0x0,a8];}case b['Matrix4d']:{a3['setUint32'](0x0,a2,!0x0);const a9=a3['getInt8'](0x0),aa=a3['getInt8'](0x1),ab=a3['getInt8'](0x2),ac=a3['getInt8'](0x3);return[a9,0x0,0x0,0x0,0x0,aa,0x0,0x0,0x0,0x0,ab,0x0,0x0,0x0,0x0,ac];}default:return a2;}}['_readTimeSamples'](a0){const bG=bd,a1=this['reader'],a2=a0['payload'],a3=a1['tell']();a1['seek'](a2);const a4=a1['tell'](),a5=a1['readInt64']();a1['seek'](a4+a5);const a6=a1['readUint32'](),a7=a1['readUint32'](),a8=new st(a6,a7),a9=this['_readValue'](a8),aa=a4+a5+0x8;a1['seek'](aa);const ab=a1[bG(0x1ab)](),ac=a1[bG(0x1a5)]();a1['seek'](ab+ac);const ad=a1[bG(0x142)](),ae=[];for(let ag=0x0;ag<ad;ag++){const ah=a1[bG(0x1a7)](),ai=a1['readUint32']();ae['push'](new st(ah,ai));}const af=[];for(let aj=0x0;aj<ad;aj++)af['push'](this['_readValue'](ae[aj]));return a1['seek'](a3),{'times':a9 instanceof Float64Array?Array['from'](a9):Array[bG(0x1d8)](a9)?a9:[a9],'values':af};}['_readScalarValue'](a0){const bH=bd,a1=this['reader'];switch(a0){case b['Invalid']:return null;case b['Bool']:return a1[bH(0x197)]()!==0x0;case b['UChar']:return a1['readUint8']();case b[bH(0x126)]:return a1['readInt32']();case b[bH(0x1e7)]:return a1['readUint32']();case b['Int64']:return a1['readInt64']();case b[bH(0x1e5)]:return a1['readUint64']();case b['Half']:return this['_readHalf']();case b['Float']:return a1[bH(0x154)]();case b['Double']:return a1[bH(0x188)]();case b[bH(0x151)]:case b['Token']:{const a2=a1['readUint32']();return this[bH(0x150)][a2]||'';}case b[bH(0x1d6)]:{const a3=a1['readUint32']();return this[bH(0x150)][a3]||'';}case b['Vec2f']:return[a1['readFloat32'](),a1['readFloat32']()];case b['Vec2d']:return[a1['readFloat64'](),a1['readFloat64']()];case b[bH(0x145)]:return[a1['readInt32'](),a1['readInt32']()];case b['Vec3f']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b['Vec3d']:return[a1['readFloat64'](),a1[bH(0x188)](),a1[bH(0x188)]()];case b['Vec3i']:return[a1['readInt32'](),a1['readInt32'](),a1['readInt32']()];case b[bH(0x195)]:return[a1['readFloat32'](),a1[bH(0x154)](),a1['readFloat32'](),a1['readFloat32']()];case b['Vec4d']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1[bH(0x188)]()];case b['Quatf']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b['Quatd']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Matrix4d']:{const a4=[];for(let a5=0x0;a5<0x10;a5++)a4['push'](a1[bH(0x188)]());return a4;}case b['TokenVector']:{const a6=a1[bH(0x142)](),a7=[];for(let a8=0x0;a8<a6;a8++){const a9=a1[bH(0x1a7)]();a7['push'](this['tokens'][a9]||'');}return a7;}case b[bH(0x1a2)]:{const aa=a1['readUint64'](),ab=[];for(let ac=0x0;ac<aa;ac++){const ad=a1['readUint32']();ab['push'](this['paths'][ad]||'');}return ab;}case b['DoubleVector']:{const ae=a1[bH(0x142)](),af=new Float64Array(ae);for(let ag=0x0;ag<ae;ag++)af[ag]=a1['readFloat64']();return af;}case b[bH(0x1ff)]:{const ah=a1['readUint64'](),ai={};for(let aj=0x0;aj<ah;aj++){const ak=a1['readUint32'](),al=this[bH(0x150)][ak],am=a1['position'],an=a1['readInt64'](),ao=am+an,ap=a1['position'];a1[bH(0x1d0)]=ao;const aq=a1[bH(0x142)](),ar=new st(aq);let as=null;ar[bH(0x224)]?as=this[bH(0x1ee)](ar):ar['isArray']?(a1['position']=ar['payload'],as=this['_readArrayValue'](ar)):(a1['position']=ar['payload'],as=this['_readScalarValue'](ar['typeEnum'])),a1['position']=ap,al!==void 0x0&&as!==null&&(ai[al]=as);}return ai;}case b[bH(0x162)]:case b['StringListOp']:case b['IntListOp']:case b['Int64ListOp']:case b['UIntListOp']:case b[bH(0x137)]:return null;case b['PathListOp']:{const au=a1[bH(0x197)](),av=(au&0x2)!==0x0,aw=(au&0x4)!==0x0,ax=(au&0x8)!==0x0,ay=(au&0x10)!==0x0,az=(au&0x20)!==0x0,aA=(au&0x40)!==0x0,aB=()=>{const bI=bH,aG=a1[bI(0x142)](),aH=[];for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32']();aH['push'](this['paths'][aJ]);}return aH;};let aC=null,aD=null,aE=null,aF=null;return av&&(aC=aB()),aw&&(aD=aB()),az&&(aE=aB()),aA&&(aF=aB()),ax&&aB(),ay&&aB(),aE&&aE[bH(0x1a8)]>0x0?aE:aC&&aC['length']>0x0?aC:aF&&aF['length']>0x0?aF:aD&&aD['length']>0x0?aD:null;}case b[bH(0x178)]:{const aG=a1[bH(0x142)](),aH={};for(let aI=0x0;aI<aG;aI++){const aJ=a1[bH(0x1a7)](),aK=a1['readUint32'](),aL=this['tokens'][this['strings'][aJ]],aM=this[bH(0x150)][this[bH(0x14b)][aK]];aL&&aM&&(aH[aL]=aM);}return aH;}default:return console['warn']('USDCParser:\x20Unsupported\x20scalar\x20type',a0),null;}}['_readArrayValue'](a0){const bJ=bd,a1=this['reader'],a2=a0['typeEnum'],a3=a0['isCompressed'];let a4;if(this['version']['major']===0x0&&this['version']['minor']<0x7?a4=a1['readUint32']():a4=a1['readUint64'](),!Number[bJ(0x20d)](a4)||a4<0x0)throw new RangeError('USDCParser:\x20Invalid\x20array\x20size\x20'+a4+'\x20for\x20type\x20'+a2+'.');if(a4>0x7fffffff)throw new RangeError('USDCParser:\x20Array\x20size\x20'+a4+'\x20exceeds\x20implementation\x20limits.');if(a4===0x0)return[];if(a3)return this['_readCompressedArray'](a2,a4);switch(a2){case b['Int']:{const a5=new Int32Array(a4);for(let a6=0x0;a6<a4;a6++)a5[a6]=a1[bJ(0x1bc)]();return a5;}case b['UInt']:{const a7=new Uint32Array(a4);for(let a8=0x0;a8<a4;a8++)a7[a8]=a1['readUint32']();return a7;}case b[bJ(0x21d)]:{const a9=new Float32Array(a4);for(let aa=0x0;aa<a4;aa++)a9[aa]=a1['readFloat32']();return a9;}case b['Double']:{const ab=new Float64Array(a4);for(let ac=0x0;ac<a4;ac++)ab[ac]=a1['readFloat64']();return ab;}case b['Vec2f']:{const ad=new Float32Array(a4*0x2);for(let ae=0x0;ae<a4*0x2;ae++)ad[ae]=a1['readFloat32']();return ad;}case b['Vec3f']:{const af=new Float32Array(a4*0x3);for(let ag=0x0;ag<a4*0x3;ag++)af[ag]=a1['readFloat32']();return af;}case b['Vec4f']:{const ah=new Float32Array(a4*0x4);for(let ai=0x0;ai<a4*0x4;ai++)ah[ai]=a1['readFloat32']();return ah;}case b[bJ(0x139)]:{const aj=new Float32Array(a4*0x3);for(let ak=0x0;ak<a4*0x3;ak++)aj[ak]=this['_readHalf']();return aj;}case b['Quatf']:{const al=new Float32Array(a4*0x4);for(let am=0x0;am<a4*0x4;am++)al[am]=a1['readFloat32']();return al;}case b['Quath']:{const an=new Float32Array(a4*0x4);for(let ao=0x0;ao<a4*0x4;ao++)an[ao]=this[bJ(0x1ca)]();return an;}case b['Matrix4d']:{const ap=new Float64Array(a4*0x10);for(let aq=0x0;aq<a4*0x10;aq++)ap[aq]=a1['readFloat64']();return ap;}case b['Token']:{const ar=[];for(let as=0x0;as<a4;as++){const au=a1['readUint32']();ar['push'](this['tokens'][au]||'');}return ar;}case b['Half']:{const av=new Float32Array(a4);for(let aw=0x0;aw<a4;aw++)av[aw]=this['_readHalf']();return av;}default:return console['warn']('USDCParser:\x20Unsupported\x20array\x20type',a2),[];}}['_readCompressedArray'](a0,a1){const bK=bd,a2=this[bK(0x160)];switch(a0){case b['Int']:case b['UInt']:{const a3=a2['readUint64'](),a4=a2[bK(0x18d)](a3);return z(a4['buffer']['slice'](a4[bK(0x1a4)],a4['byteOffset']+a3),a1);}case b[bK(0x21d)]:{const a5=a2[bK(0x17c)]();if(a5===Jt){const a6=a2[bK(0x142)](),a7=a2[bK(0x18d)](a6),a8=z(a7['buffer']['slice'](a7['byteOffset'],a7['byteOffset']+a6),a1),a9=new Float32Array(a1);for(let aa=0x0;aa<a1;aa++)a9[aa]=a8[aa];return a9;}else{if(a5===te){const ab=a2['readUint32'](),ac=new Float32Array(ab);for(let ah=0x0;ah<ab;ah++)ac[ah]=a2[bK(0x154)]();const ad=a2['readUint64'](),ae=a2['readBytes'](ad),af=z(ae['buffer'][bK(0x1fd)](ae[bK(0x1a4)],ae['byteOffset']+ad),a1),ag=new Float32Array(a1);for(let ai=0x0;ai<a1;ai++)ag[ai]=ac[af[ai]];return ag;}}return console['warn']('USDCParser:\x20Unknown\x20float\x20compression\x20code',a5),new Float32Array(a1);}default:return console['warn']('USDCParser:\x20Unsupported\x20compressed\x20array\x20type',a0),[];}}['_readHalf'](){const bL=bd;return this['_halfToFloat'](this['reader'][bL(0x1c6)]());}['_halfToFloat'](a0){const a1=(a0&0x8000)>>0xf,a2=(a0&0x7c00)>>0xa,a3=a0&0x3ff;return a2===0x0?a3===0x0?a1?-0x0:0x0:(a1?-0x1:0x1)*Kt*(a3/0x400):a2===0x1f?a3?NaN:a1?-0x1/0x0:0x1/0x0:(a1?-0x1:0x1)*vt[a2]*(0x1+a3/0x400);}['_getFieldsForSpec'](a0){const bM=bd,a1={};let a2=a0['fieldSetIndex'];const a3=0x2710;let a4=0x0;for(;a2<this[bM(0x1ed)]['length']&&a4<a3;){const a5=this['fieldSets'][a2];if(a5===$t||a5===-0x1)break;const a6=this[bM(0x1ce)][a5];if(a6){const a7=this[bM(0x150)][a6['tokenIndex']],a8=this['_readValue'](a6['valueRep']);a1[a7]=a8;}a2++,a4++;}return a1;}}const re=/^(.+?)\/\{(\w+)=(\w+)\}\/(.+)$/,K={'Unknown':0x0,'Attribute':0x1,'Connection':0x2,'Expression':0x3,'Mapper':0x4,'MapperArg':0x5,'Prim':0x6,'PseudoRoot':0x7,'Relationship':0x8,'RelationshipTarget':0x9,'Variant':0xa,'VariantSet':0xb},E={'projection':'perspective','clippingRange':[0x1,0xf4240],'horizontalAperture':20.955,'verticalAperture':15.2908,'horizontalApertureOffset':0x0,'verticalApertureOffset':0x0,'focalLength':0x32,'focusDistance':0x0,'fStop':0x0};class tt{constructor(a0=null){this['textureCache']={},this['skinnedMeshes']=[],this['manager']=a0;}['compose'](a0,a1={},a2={},a3=''){const bN=bd;this['specsByPath']=a0['specsByPath'],this['assets']=a1,this['externalVariantSelections']=a2,this['basePath']=a3,this['skinnedMeshes']=[],this['skeletons']={},this['_buildIndexes']();const a4=this['specsByPath']['/'],a5=a4?a4['fields']:{};this['fps']=a5['framesPerSecond']||a5['timeCodesPerSecond']||0x1e;const a6=new e();this['_buildHierarchy'](a6,'/'),this['_bindSkeletons']();const a7=Object[bN(0x122)](this['skeletons']);a7[bN(0x1a8)]===0x1&&(a6['skeleton']=this['skeletons'][a7[0x0]]['skeleton']),a6['animations']=this['_buildAnimations']();const a8=a5[bN(0x1e1)];return a8!==void 0x0&&a8!==0x1&&a6['scale']['setScalar'](a8),a4&&a4['fields']&&a4['fields']['upAxis']==='Z'&&(a6[bN(0x17a)]['x']=-Math['PI']/0x2),a6;}['applyTransform'](a0,a1,a2={}){const bO=bd,a3={...a1,...a2},a4=a3[bO(0x219)];if(a4&&a4['length']>0x0){const a5=new f(),a6=new f();let a7=null;for(let a8=0x0;a8<a4['length'];a8++){const a9=a4[a8],aa=a9['startsWith']('!invert!'),ab=aa?a9[bO(0x1fd)](0x8):a9;if(ab==='xformOp:transform'){const ac=a3['xformOp:transform'];ac&&ac['length']===0x10&&(a6['set'](ac[0x0],ac[0x4],ac[0x8],ac[0xc],ac[0x1],ac[0x5],ac[0x9],ac[0xd],ac[0x2],ac[0x6],ac[0xa],ac[0xe],ac[0x3],ac[0x7],ac[0xb],ac[0xf]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:translate'){const ad=a3['xformOp:translate'];ad&&(a6['makeTranslation'](ad[0x0],ad[0x1],ad[0x2]),aa&&a6[bO(0x1b1)](),a5['multiply'](a6));}else{if(ab==='xformOp:translate:pivot'){const ae=a3['xformOp:translate:pivot'];ae&&(a6['makeTranslation'](ae[0x0],ae[0x1],ae[0x2]),aa&&a6[bO(0x1b1)](),a5['multiply'](a6));}else{if(ab==='xformOp:scale'){const af=a3['xformOp:scale'];af&&(Array['isArray'](af)?(a6['makeScale'](af[0x0],af[0x1],af[0x2]),a7=[af[0x0],af[0x1],af[0x2]]):(a6['makeScale'](af,af,af),a7=[af,af,af]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateXYZ'){const ag=a3['xformOp:rotateXYZ'];if(ag){const ah=new g(ag[0x0]*Math['PI']/0xb4,ag[0x1]*Math['PI']/0xb4,ag[0x2]*Math['PI']/0xb4,'ZYX');a6['makeRotationFromEuler'](ah),aa&&a6['invert'](),a5['multiply'](a6);}}else{if(ab==='xformOp:rotateX'){const ai=a3['xformOp:rotateX'];ai!==void 0x0&&(a6['makeRotationX'](ai*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateY'){const aj=a3[bO(0x198)];aj!==void 0x0&&(a6['makeRotationY'](aj*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateZ'){const ak=a3['xformOp:rotateZ'];ak!==void 0x0&&(a6['makeRotationZ'](ak*Math['PI']/0xb4),aa&&a6['invert'](),a5[bO(0x1cb)](a6));}else{if(ab==='xformOp:orient'){const al=a3[bO(0x21e)];if(al&&al['length']===0x4){const am=new h(al[0x0],al[0x1],al[0x2],al[0x3]);a6['makeRotationFromQuaternion'](am),aa&&a6['invert'](),a5['multiply'](a6);}}}}}}}}}}}if(a0['matrix']['copy'](a5),a0['matrix'][bO(0x138)](a0['position'],a0[bO(0x164)],a0[bO(0x13d)]),a7){const an=a7[0x0]<0x0,ao=a7[0x1]<0x0,ap=a7[0x2]<0x0;(an?0x1:0x0)+(ao?0x1:0x0)+(ap?0x1:0x0)===0x3&&(a0['scale'][bO(0x1c2)](a7[0x0],a7[0x1],a7[0x2]),a0['quaternion']['set'](a0['quaternion']['x'],-a0['quaternion']['y'],a0['quaternion']['z'],-a0['quaternion']['w']));}return;}if(a3['xformOp:translate']){const aq=a3['xformOp:translate'];a0['position'][bO(0x1c2)](aq[0x0],aq[0x1],aq[0x2]);}if(a3['xformOp:translate:pivot']){const ar=a3['xformOp:translate:pivot'];a0[bO(0x1ec)]=new i(ar[0x0],ar[0x1],ar[0x2]);}if(a3['xformOp:scale']){const as=a3['xformOp:scale'];Array['isArray'](as)?a0['scale']['set'](as[0x0],as[0x1],as[0x2]):a0['scale']['set'](as,as,as);}if(a3['xformOp:rotateXYZ']){const au=a3['xformOp:rotateXYZ'];a0['rotation'][bO(0x1c2)](au[0x0]*Math['PI']/0xb4,au[0x1]*Math['PI']/0xb4,au[0x2]*Math['PI']/0xb4);}if(a3['xformOp:orient']){const av=a3[bO(0x21e)];av['length']===0x4&&a0[bO(0x164)]['set'](av[0x0],av[0x1],av[0x2],av[0x3]);}}['_buildIndexes'](){const bP=bd;this[bP(0x1d7)]=new Map(),this['attributesByPrimPath']=new Map(),this['materialsByRoot']=new Map(),this[bP(0x1fa)]=new Map(),this['geomSubsetsByMeshPath']=new Map();for(const a0 in this[bP(0x1db)]){const a1=this['specsByPath'][a0];if(a1['specType']===K[bP(0x207)]){const a2=a0['lastIndexOf']('/');if(a2>0x0){const a4=a0['slice'](0x0,a2),a5=a0['slice'](a2+0x1);this['childrenByPath']['has'](a4)||this[bP(0x1d7)]['set'](a4,[]),this['childrenByPath']['get'](a4)['push']({'name':a5,'path':a0});}else{if(a2===0x0&&a0['length']>0x1){const a6=a0[bP(0x1fd)](0x1);this['childrenByPath']['has']('/')||this[bP(0x1d7)]['set']('/',[]),this['childrenByPath']['get']('/')['push']({'name':a6,'path':a0});}}const a3=a1['fields']['typeName'];if(a3==='Material'){const a7=a0['split']('/'),a8=a7['length']>0x1?'/'+a7[0x1]:'/';this['materialsByRoot']['has'](a8)||this['materialsByRoot']['set'](a8,[]),this['materialsByRoot']['get'](a8)['push'](a0);}if(a3==='Shader'&&a2>0x0){let a9=a0['slice'](0x0,a2);for(;a9['length']>0x0;){const aa=this[bP(0x1db)][a9];if(aa&&aa['specType']===K['Prim']&&aa['fields']['typeName']==='Material'){this[bP(0x1fa)][bP(0x184)](a9)||this['shadersByMaterialPath']['set'](a9,[]),this['shadersByMaterialPath']['get'](a9)['push'](a0);break;}const ab=a9['lastIndexOf']('/');if(ab<=0x0)break;a9=a9['slice'](0x0,ab);}}if(a3==='GeomSubset'&&a2>0x0){const ac=a0['slice'](0x0,a2);this['geomSubsetsByMeshPath']['has'](ac)||this['geomSubsetsByMeshPath']['set'](ac,[]),this['geomSubsetsByMeshPath']['get'](ac)[bP(0x174)](a0);}}else{if(a1['specType']===K['Attribute']||a1['specType']===K[bP(0x1cf)]){const ad=a0['lastIndexOf']('.');if(ad>0x0){const ae=a0['slice'](0x0,ad),af=a0['slice'](ad+0x1);this['attributesByPrimPath']['has'](ae)||this['attributesByPrimPath']['set'](ae,new Map()),this['attributesByPrimPath']['get'](ae)['set'](af,a1);}}}}}['_isDirectChild'](a0,a1,a2){const bQ=bd;if(!a1['startsWith'](a2))return!0x1;const a3=a1['slice'](a2['length']);return a3['length']===0x0||a3['startsWith']('{')?!0x1:!a3[bQ(0x1f3)]('/');}[bd(0x155)](a0,a1){const bR=bd,a2=[],a3=new Set(),a4=this['childrenByPath']['get'](a1);if(a4){for(const a6 of a4)a3['has'](a6['path'])||(a3['add'](a6['path']),a2['push'](a6));}const a5=this['_getVariantPaths'](a1);for(const a7 of a5){const a8=this['childrenByPath'][bR(0x1da)](a7);if(a8){for(const a9 of a8)a3[bR(0x184)](a9[bR(0x13b)])||(a3['add'](a9['path']),a2['push'](a9));}}for(const {name:aa,path:ab}of a2){const ac=this[bR(0x1db)][ab];if(!ac||ac['specType']!==K[bR(0x207)])continue;const ad=ac['fields']['typeName'],ae=this['_getReferences'](ac);if(ae['length']>0x0){const af=this['_getLocalVariantSelections'](ac['fields']),ag=[];for(const ah of ae){const ai=this[bR(0x143)](ah,af);ai&&ag[bR(0x174)](ai);}if(ag['length']>0x0){const aj=this['_getAttributes'](ab);if(ag['length']===0x1){const al=this['_findSingleMesh'](ag[0x0]);if(al&&(ad==='Xform'||!ad)){al['name']=aa,this['applyTransform'](al,ac['fields'],aj),this[bR(0x205)](al,ab),a0['add'](al),this['_buildHierarchy'](al,ab);continue;}}const ak=new j();ak['name']=aa,this[bR(0x135)](ak,ac['fields'],aj);for(const am of ag)for(;am['children']['length']>0x0;)ak['add'](am['children'][0x0]);a0[bR(0x1d2)](ak),this['_buildHierarchy'](ak,ab);continue;}}if(ad==='SkelRoot'){const an=new j();an['name']=aa,an[bR(0x168)][bR(0x125)]=!0x0;const ao=this['_getAttributes'](ab);this['applyTransform'](an,ac[bR(0x1ce)],ao),a0['add'](an),this['_buildHierarchy'](an,ab);}else{if(ad==='Skeleton'){const ap=this[bR(0x180)](ab);ap&&(this['skeletons'][ab]=ap),this['_buildHierarchy'](a0,ab);}else{if(ad!=='SkelAnimation'){if(ad==='Mesh'){const aq=this['_buildMesh'](ab,ac);aq&&(a0[bR(0x1d2)](aq),this['_buildHierarchy'](aq,ab));}else{if(ad==='Camera'){const ar=this['_buildCamera'](ab);ar['name']=aa;const as=this['_getAttributes'](ab);this['applyTransform'](ar,ac['fields'],as),a0['add'](ar),this['_buildHierarchy'](ar,ab);}else{if(ad==='DistantLight'||ad==='SphereLight'||ad==='RectLight'||ad===bR(0x183)){const au=this[bR(0x131)](ab,ad);au['name']=aa;const av=this['_getAttributes'](ab);this['applyTransform'](au,ac['fields'],av),a0[bR(0x1d2)](au),this['_buildHierarchy'](au,ab);}else{if(ad==='Cube'||ad==='Sphere'||ad==='Cylinder'||ad==='Cone'||ad==='Capsule'){const aw=this['_buildGeomPrimitive'](ab,ac,ad);aw&&(a0[bR(0x1d2)](aw),this[bR(0x155)](aw,ab));}else{if(!(ad==='Material'||ad==='Shader'||ad==='GeomSubset')){const ax=new j();ax['name']=aa;const ay=this[bR(0x147)](ab);this['applyTransform'](ax,ac['fields'],ay),a0['add'](ax),this['_buildHierarchy'](ax,ab);}}}}}}}}}}['_getVariantPaths'](a0){const bS=bd,a1=this[bS(0x1db)][a0],a2=a1?.['fields']?.['variantSetChildren'],a3=[];if(!a2||a2['length']===0x0)return a3;for(const a4 of a2){let a5=this['externalVariantSelections'][a4]||null;if(!a5){const a6=a1[bS(0x1ce)][bS(0x199)];a5=a6?a6[a4]:null;}if(!a5){const a7=a0+'/{'+a4+'=}',a8=this['specsByPath'][a7];a8?.['fields']?.[bS(0x229)]&&(a5=a8['fields']['variantChildren'][0x0]);}if(a5){const a9=a0+'/{'+a4+'='+a5+'}';a3[bS(0x174)](a9);}}return a3;}['_resolveFilePath'](a0){const bT=bd;let a1=a0;return a1['startsWith']('./')&&(a1=a1['slice'](0x2)),this['basePath']?this[bT(0x1af)]+'/'+a1:a1;}['_resolveReference'](a0,a1={}){const bU=bd;if(!a0)return null;const a2=a0[bU(0x172)](/@([^@]+)@(?:<([^>]+)>)?/);if(!a2)return null;const a3=a2[0x1],a4=a2[0x2],a5=this['_resolveFilePath'](a3),a6={...a1,...this['externalVariantSelections']},a7=this['assets'][a5];if(!a7)return null;if(a7['specsByPath']){const a8=new tt(this['manager']),a9=this['_getBasePath'](a5),aa=a8['compose'](a7,this['assets'],a6,a9);if(a4){const ab=a4['split']('/')['pop']();let ac=null;for(const ad of aa[bU(0x158)])if(ad['name']===ab){ac=ad;break;}if(ac){aa[bU(0x1c7)](ac);const ae=new e();return ae['add'](ac),ae;}}return aa;}return a7['isGroup']||a7['isObject3D']?a7['clone']():null;}['_findSingleMesh'](a0){const bV=bd;for(const a1 of a0['children'])if(a1[bV(0x18e)])return a0['remove'](a1),a1;if(a0['children']['length']===0x1){const a2=a0[bV(0x158)][0x0];if(a2[bV(0x158)]&&a2[bV(0x158)][bV(0x1a8)]===0x1){const a3=a2['children'][0x0];if(a3['isMesh']&&!this['_hasNonIdentityTransform'](a2))return a2['remove'](a3),a3;}}return null;}['_hasNonIdentityTransform'](a0){const bW=bd,a1=a0['position'],a2=a0['rotation'],a3=a0[bW(0x13d)],a4=a1['x']!==0x0||a1['y']!==0x0||a1['z']!==0x0,a5=a2['x']!==0x0||a2['y']!==0x0||a2['z']!==0x0,a6=a3['x']!==0x1||a3['y']!==0x1||a3['z']!==0x1;return a4||a5||a6;}['_getBasePath'](a0){const bX=bd,a1=a0[bX(0x187)]('/');return a1>=0x0?a0['slice'](0x0,a1):'';}[bd(0x144)](a0){const a1={};if(a0['variantSelection']){for(const a2 in a0['variantSelection'])a1[a2]=a0['variantSelection'][a2];}return a1;}['_getReferences'](a0){const bY=bd,a1=[];if(a0['fields'][bY(0x176)]&&a0['fields']['references']['length']>0x0){const a2=a0['fields']['references'][0x0];if(typeof a2=='string'){const a3=a2['matchAll'](/@([^@]+)@(?:<([^>]+)>)?/g);for(const a4 of a3)a1['push'](a4[0x0]);}else a2['assetPath']&&a1['push']('@'+a2['assetPath']+'@');}if(a1['length']===0x0&&a0['fields']['payload']){const a5=a0['fields']['payload'];typeof a5=='string'?a1[bY(0x174)](a5):a5['assetPath']&&a1['push']('@'+a5['assetPath']+'@');}return a1;}['_getAttributes'](a0){const bZ=bd,a1={};this[bZ(0x1e2)](a0,a1);const a2=a0['match'](re);if(a2){const a3=a2[0x1],a4=a2[0x4],a5=this[bZ(0x1ba)](a3);for(const a6 of a5){if(a0[bZ(0x1d4)](a6))continue;const a7=a6+'/'+a4;this['_collectAttributesFromPath'](a7,a1);}}else{const a8=a0['split']('/');for(let a9=0x1;a9<a8['length']-0x1;a9++){const aa=a8['slice'](0x0,a9+0x1)['join']('/'),ab=a8['slice'](a9+0x1)['join']('/'),ac=this['_getVariantPaths'](aa);for(const ad of ac){const ae=ad+'/'+ab;this['_collectAttributesFromPath'](ae,a1);}}}return a1;}['_collectAttributesFromPath'](a0,a1){const c0=bd,a2=this['attributesByPrimPath'][c0(0x1da)](a0);if(a2)for(const [a3,a4]of a2){if(a4['fields']?.['default']!==void 0x0)a1[a3]=a4['fields']['default'];else{if(a4['fields']?.['timeSamples']){const {times:a5,values:a6}=a4['fields']['timeSamples'];if(a5&&a6&&a5['length']>0x0){const a7=a5['indexOf'](0x0);a1[a3]=a7>=0x0?a6[a7]:a6[0x0];}}}a4['fields']?.['elementSize']!==void 0x0&&(a1[a3+':elementSize']=a4['fields']['elementSize']),a3['startsWith']('primvars:')&&a4[c0(0x1ce)]?.['typeName']!==void 0x0&&(a1[a3+':typeName']=a4['fields']['typeName']);}}['_buildGeomPrimitive'](a0,a1,a2){const c1=bd,a3=this['_getAttributes'](a0),a4=a0['split']('/')['pop']();let a5;switch(a2){case c1(0x12d):{const a9=a3['size']||0x2;a5=new o(a9,a9,a9);break;}case'Sphere':{const aa=a3['radius']||0x1;a5=new n(aa,0x20,0x10);break;}case c1(0x1eb):{const ab=a3['height']||0x2,ac=a3['radius']||0x1;a5=new m(ac,ac,ab,0x20);break;}case'Cone':{const ad=a3['height']||0x2,ae=a3['radius']||0x1;a5=new l(ae,ad,0x20);break;}case c1(0x152):{const af=a3['height']||0x1,ag=a3['radius']||0.5;a5=new k(ag,af,0x10,0x20);break;}}const a6=a3['axis']||'Z';a6==='X'?a5['rotateZ'](-Math['PI']/0x2):a6==='Z'&&a5['rotateX'](Math['PI']/0x2);const a7=this['_buildMaterial'](a0,a1['fields']),a8=new p(a5,a7);return a8['name']=a4,this['applyTransform'](a8,a1['fields'],a3),a8;}[bd(0x12e)](a0,a1){const c2=bd,a2=this['_getAttributes'](a0),a3=a2['primvars:skel:jointIndices'],a4=a2[c2(0x1ef)],a5=a3&&a4&&a3['length']>0x0&&a4['length']>0x0,a6=this[c2(0x1a3)](a0);let a7,a8;if(a6['length']>0x0){a7=this['_buildGeometryWithSubsets'](a2,a6,a5);const ac=this[c2(0x18c)](a0,a1['fields']);a8=a6['map'](ad=>{const c3=c2,ae=ad[c3(0x171)]||ac;return this['_buildMaterialForPath'](ae);});}else a7=this['_buildGeometry'](a0,a2,a5),a8=this['_buildMaterial'](a0,a1[c2(0x1ce)]);const a9=a2['primvars:displayColor'];if(a9&&a9['length']>=0x3){const ad=ae=>{const c4=c2;ae['color']&&ae['color']['r']===0x1&&ae['color']['g']===0x1&&ae['color']['b']===0x1&&!ae[c4(0x1c3)]&&ae['color'][c4(0x156)](a9[0x0],a9[0x1],a9[0x2],I);};Array['isArray'](a8)?a8['forEach'](ad):ad(a8);}const aa=a2['primvars:displayOpacity'];if(aa&&aa['length']===0x1&&a6['length']===0x0){const ae=aa[0x0],af=ag=>{const c5=c2;ae<0x1&&ag[c5(0x15c)]===0x1&&ag[c5(0x1c8)]===!0x1&&(ag['opacity']=ae,ag['transparent']=!0x0);};Array['isArray'](a8)?a8['forEach'](af):af(a8);}let ab;if(a5){ab=new q(a7,a8);let ag=this['specsByPath'][a0+c2(0x1f1)];ag||(ag=this[c2(0x1db)][a0+'.rel\x20skel:skeleton']);let ah=null;ag&&(ag['fields']['targetPaths']&&ag['fields'][c2(0x192)]['length']>0x0?ah=ag['fields']['targetPaths'][0x0]:ag[c2(0x1ce)]['default']&&(ah=ag['fields']['default']['replace'](/<|>/g,'')));const ai=a2['skel:joints'],aj=a2['primvars:skel:geomBindTransform'];this['skinnedMeshes']['push']({'mesh':ab,'skeletonPath':ah,'path':a0,'localJoints':ai,'geomBindTransform':aj});}else ab=new p(a7,a8);return ab['name']=a0[c2(0x186)]('/')['pop'](),this[c2(0x135)](ab,a1[c2(0x1ce)],a2),ab;}[bd(0x193)](a0){const c6=bd,a1=this[c6(0x147)](a0),a2=a1['projection'],a3=typeof a2=='string'?a2['toLowerCase']():E['projection'],a4=a1[c6(0x226)]||E['clippingRange'],a5=Math[c6(0x14a)](Number['EPSILON'],this['_parseNumber'](a4[0x0],E['clippingRange'][0x0])),a6=Math['max'](a5+Number['EPSILON'],this['_parseNumber'](a4[0x1],E['clippingRange'][0x1])),a7=this['_parseNumber'](a1['horizontalAperture'],E['horizontalAperture']),a8=this['_parseNumber'](a1['verticalAperture'],E['verticalAperture']),a9=this[c6(0x1b8)](a1['horizontalApertureOffset'],E[c6(0x20f)]),aa=this[c6(0x1b8)](a1['verticalApertureOffset'],E[c6(0x1b5)]),ab=this['_parseNumber'](a1['focalLength'],E['focalLength']),ac=this[c6(0x1b8)](a1['focusDistance'],E['focusDistance']),ad=this['_parseNumber'](a1['fStop'],E['fStop']);let ae;if(a3===c6(0x1b9)){const af=a7/0xa,ag=a8/0xa,ah=a9/0xa,ai=aa/0xa;ae=new r(ah-af*0.5,ah+af*0.5,ai+ag*0.5,ai-ag*0.5,a5,a6);}else{const aj=Math['max'](Number['EPSILON'],a8),ak=Math['max'](Number[c6(0x173)],ab),al=a7/aj,am=0x2*Math['atan'](aj/(0x2*ak))*0xb4/Math['PI'];ae=new s(am,al,a5,a6),ae['filmGauge']=Math['max'](a7,a8),ae[c6(0x22a)]=a9,ae['focus']=ac,ae['setFocalLength'](ak),aa!==0x0&&(ae['userData']['verticalApertureOffset']=aa);}return ae['userData'][c6(0x1ae)]=ad,ae[c6(0x168)]['usdProjection']=a3,ae;}['_buildLight'](a0,a1){const c7=bd,a2=this['_getAttributes'](a0),a3=this['_parseNumber'](a2['inputs:intensity'],0x1),a4=a2['inputs:color']||[0x1,0x1,0x1],a5=a2['inputs:enableColorTemperature']===!0x0,a6=this[c7(0x1b8)](a2['inputs:colorTemperature'],0x1964),a7=new t(a4[0x0],a4[0x1],a4[0x2]);if(a5){const a9=this['_colorTemperature'](a6);a7['multiply'](a9);}let a8;switch(a1){case'DistantLight':a8=new x(a7,a3);break;case'SphereLight':{const aa=this['_parseNumber'](a2['shaping:cone:angle'],0x0);if(aa>0x0){const ab=aa*Math['PI']/0xb4,ac=this['_parseNumber'](a2['shaping:cone:softness'],0x0);a8=new v(a7,a3,0x0,ab,ac);}else a8=new w(a7,a3);break;}case'RectLight':{const ad=this['_parseNumber'](a2['inputs:width'],0x1),ae=this[c7(0x1b8)](a2['inputs:height'],0x1);a8=new u(a7,a3,ad,ae);break;}case'DiskLight':{const af=this[c7(0x1b8)](a2['inputs:radius'],0.5)*0x2;a8=new u(a7,a3,af,af);break;}}return a8;}['_colorTemperature'](a0){const c8=bd,a1=a0/0x64;let a2,a3,a4;return a1<=0x42?(a2=0x1,a3=0.3900815787690196*Math[c8(0x12a)](a1)-0.6318414437886275):(a2=1.292936186062745*Math[c8(0x14d)](a1-0x3c,-0.1332047592),a3=1.1298908608952942*Math[c8(0x14d)](a1-0x3c,-0.0755148492)),a1>=0x42?a4=0x1:a1<=0x13?a4=0x0:a4=0.543206789110196*Math['log'](a1-0xa)-1.19625408914,new t(Math['min'](Math['max'](a2,0x0),0x1),Math[c8(0x123)](Math['max'](a3,0x0),0x1),Math['min'](Math['max'](a4,0x0),0x1));}['_parseNumber'](a0,a1){const c9=bd,a2=Number(a0);return Number[c9(0x216)](a2)?a2:a1;}[bd(0x1a3)](a0){const ca=bd,a1=[],a2=this['geomSubsetsByMeshPath']['get'](a0);if(!a2)return a1;for(const a3 of a2){const a4=this['_getAttributes'](a3)['indices'];if(!a4||a4['length']===0x0)continue;const a5=this['_getMaterialBindingTarget'](a3);a1['push']({'name':a3[ca(0x186)]('/')[ca(0x1aa)](),'indices':a4,'materialPath':a5});}return a1;}['_getMaterialBindingTarget'](a0){const cb=bd,a1='material:binding',a2=a0+'.'+a1,a3=this[cb(0x1db)][a2];if(a3?.['fields']?.['targetPaths']?.['length']>0x0)return a3[cb(0x1ce)]['targetPaths'][0x0];const a4=a0['split']('/');for(let a5=0x1;a5<a4[cb(0x1a8)];a5++){const a6=a4['slice'](0x0,a5+0x1)['join']('/'),a7=a4['slice'](a5+0x1)['join']('/'),a8=this['_getVariantPaths'](a6);for(const a9 of a8){const aa=a7?a9+'/'+a7+'.'+a1:a9+'.'+a1,ab=this['specsByPath'][aa];if(ab?.['fields']?.['targetPaths']?.['length']>0x0)return ab['fields']['targetPaths'][0x0];}}return null;}['_buildGeometry'](a0,a1,a2=!0x1){const cc=bd,a3=new y(),a4=a1[cc(0x1d3)];if(!a4||a4['length']===0x0)return a3;const a5=a1[cc(0x167)],a6=a1['faceVertexCounts'],a7=a1['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7);let a9=a5,aa=null;if(a6&&a6['length']>0x0){const aj=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8);a9=aj['indices'],aa=aj['pattern'];}let ab=a4;a9&&a9[cc(0x1a8)]>0x0&&(ab=this['_expandAttribute'](a4,a9,0x3)),a3[cc(0x1bf)]('position',new B(new Float32Array(ab),0x3));const ac=a1['normals']||a1['primvars:normals'],ad=a1['normals:indices']||a1['primvars:normals:indices'];if(ac&&ac[cc(0x1a8)]>0x0){let ak=ac;if(ad&&ad[cc(0x1a8)]>0x0&&aa){const al=this['_applyTriangulationPattern'](ad,aa);ak=this['_expandAttribute'](ac,al,0x3);}else{if(ac['length']===a4['length'])a9&&a9['length']>0x0&&(ak=this['_expandAttribute'](ac,a9,0x3));else{if(aa){const am=this['_applyTriangulationPattern'](Array['from']({'length':ac['length']/0x3},(an,ao)=>ao),aa);ak=this['_expandAttribute'](ac,am,0x3);}}}a3[cc(0x1bf)](cc(0x228),new B(new Float32Array(ak),0x3));}else{const an=this['_computeVertexNormals'](a4,a9);a3['setAttribute'](cc(0x228),new B(new Float32Array(this[cc(0x1b6)](an,a9,0x3)),0x3));}const {uvs:ae,uvIndices:af}=this[cc(0x1bd)](a1),ag=a5?a5['length']:0x0;if(ae&&ae['length']>0x0){let ao=ae;if(af&&af['length']>0x0&&aa){const ap=this[cc(0x1fe)](af,aa);ao=this['_expandAttribute'](ae,ap,0x2);}else{if(a9&&ae['length']/0x2===a4[cc(0x1a8)]/0x3)ao=this[cc(0x1b6)](ae,a9,0x2);else{if(aa&&ae['length']/0x2===ag){const aq=this['_applyTriangulationPattern'](Array['from']({'length':ag},(ar,as)=>as),aa);ao=this[cc(0x1b6)](ae,aq,0x2);}}}a3['setAttribute']('uv',new B(new Float32Array(ao),0x2));}const {uvs2:ah,uv2Indices:ai}=this['_findUV2Primvar'](a1);if(ah&&ah['length']>0x0){let ar=ah;if(ai&&ai[cc(0x1a8)]>0x0&&aa){const as=this['_applyTriangulationPattern'](ai,aa);ar=this[cc(0x1b6)](ah,as,0x2);}else{if(a9&&ah['length']/0x2===a4['length']/0x3)ar=this['_expandAttribute'](ah,a9,0x2);else{if(aa&&ah['length']/0x2===ag){const au=this[cc(0x1fe)](Array['from']({'length':ag},(av,aw)=>aw),aa);ar=this['_expandAttribute'](ah,au,0x2);}}}a3['setAttribute']('uv1',new B(new Float32Array(ar),0x2));}if(a2){const av=a1['primvars:skel:jointIndices'],aw=a1['primvars:skel:jointWeights'],ax=a1['primvars:skel:jointIndices:elementSize']||0x4;if(av&&aw){const ay=ab[cc(0x1a8)]/0x3;let az,aA;a9&&a9['length']>0x0?(az=this['_expandAttribute'](av,a9,ax),aA=this['_expandAttribute'](aw,a9,ax)):(az=av,aA=aw);const aB=new Uint16Array(ay*0x4),aC=new Float32Array(ay*0x4);this['_selectTopWeights'](az,aA,ax,ay,aB,aC),a3[cc(0x1bf)]('skinIndex',new B(aB,0x4)),a3[cc(0x1bf)]('skinWeight',new B(aC,0x4));}}return a3;}['_buildGeometryWithSubsets'](a0,a1,a2=!0x1){const cd=bd,a3=new y(),a4=a0['points'];if(!a4||a4['length']===0x0)return a3;const a5=a0['faceVertexIndices'],a6=a0[cd(0x1ac)];if(!a6||a6['length']===0x0)return a3;const a7=a0['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7),a9=a8[cd(0x181)],aa=a8[cd(0x21c)],{uvs:ab,uvIndices:ac}=this['_findUVPrimvar'](a0),{uvs2:ad,uv2Indices:ae}=this['_findUV2Primvar'](a0),af=a0['normals']||a0['primvars:normals'],ag=a0['normals:indices']||a0[cd(0x16b)],ah=a2?a0['primvars:skel:jointIndices']:null,ai=a2?a0['primvars:skel:jointWeights']:null,aj=a0['primvars:skel:jointIndices:elementSize']||0x4,ak=[];let al=0x0;for(let aJ=0x0;aJ<a6['length'];aJ++){if(ak['push'](al),a9['has'](aJ))continue;const aK=a6[aJ],aL=aa['get'](aJ);if(aL&&aL[cd(0x1a8)]>0x0){let aM=aK;for(const aN of aL)aM+=a6[aN];al+=aM-0x2;}else aK>=0x3&&(al+=aK-0x2);}const am=new Int32Array(al)['fill'](-0x1);for(let aO=0x0;aO<a1['length'];aO++){const aP=a1[aO];for(let aQ=0x0;aQ<aP[cd(0x227)]['length'];aQ++){const aR=aP['indices'][aQ];if(aR>=a6[cd(0x1a8)])continue;const aS=ak[aR],aT=a6[aR]-0x2;for(let aU=0x0;aU<aT;aU++)am[aS+aU]=aO;}}const an=[];for(let aV=0x0;aV<al;aV++)an['push']({'original':aV,'subset':am[aV]});an['sort']((aW,aX)=>aW['subset']-aX['subset']);const ao=[];let ap=an[cd(0x1a8)]>0x0?an[0x0]['subset']:-0x1,aq=0x0;for(let aW=0x0;aW<an[cd(0x1a8)];aW++)an[aW]['subset']!==ap&&(ap>=0x0&&ao['push']({'start':aq*0x3,'count':(aW-aq)*0x3,'materialIndex':ap}),ap=an[aW]['subset'],aq=aW);ap>=0x0&&an['length']>aq&&ao['push']({'start':aq*0x3,'count':(an[cd(0x1a8)]-aq)*0x3,'materialIndex':ap});for(const aX of ao)a3['addGroup'](aX[cd(0x1cd)],aX['count'],aX['materialIndex']);const {indices:ar,pattern:as}=this[cd(0x1bb)](a5,a6,a4,a8),au=a6[cd(0x134)]((aY,aZ)=>aY+aZ,0x0),av=ab&&!ac&&ab['length']/0x2===au||ad&&!ae&&ad[cd(0x1a8)]/0x2===au?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aw=ac?this[cd(0x1fe)](ac,as):ab&&ab['length']/0x2===au?av:null,ax=ae?this['_applyTriangulationPattern'](ae,as):ad&&ad['length']/0x2===au?av:null,ay=af&&ag&&ag['length']>0x0,az=af&&af['length']/0x3===au,aA=ay?this['_applyTriangulationPattern'](ag,as):az?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aB=!af&&ar['length']>0x0?this['_computeVertexNormals'](a4,ar):null,aC=al*0x3,aD=new Float32Array(aC*0x3),aE=ab?new Float32Array(aC*0x2):null,aF=ad?new Float32Array(aC*0x2):null,aG=af||aB?new Float32Array(aC*0x3):null,aH=ah?new Uint16Array(aC*aj):null,aI=ai?new Float32Array(aC*aj):null;for(let aY=0x0;aY<an['length'];aY++){const aZ=an[aY]['original'];for(let b0=0x0;b0<0x3;b0++){const b1=aZ*0x3+b0,b2=aY*0x3+b0,b3=ar[b1];if(aD[b2*0x3]=a4[b3*0x3],aD[b2*0x3+0x1]=a4[b3*0x3+0x1],aD[b2*0x3+0x2]=a4[b3*0x3+0x2],aE&&ab){if(aw){const b4=aw[b1];aE[b2*0x2]=ab[b4*0x2],aE[b2*0x2+0x1]=ab[b4*0x2+0x1];}else ab['length']/0x2===a4[cd(0x1a8)]/0x3&&(aE[b2*0x2]=ab[b3*0x2],aE[b2*0x2+0x1]=ab[b3*0x2+0x1]);}if(aF&&ad){if(ax){const b5=ax[b1];aF[b2*0x2]=ad[b5*0x2],aF[b2*0x2+0x1]=ad[b5*0x2+0x1];}else ad['length']/0x2===a4[cd(0x1a8)]/0x3&&(aF[b2*0x2]=ad[b3*0x2],aF[b2*0x2+0x1]=ad[b3*0x2+0x1]);}if(aG){if(af&&aA){const b6=aA[b1];aG[b2*0x3]=af[b6*0x3],aG[b2*0x3+0x1]=af[b6*0x3+0x1],aG[b2*0x3+0x2]=af[b6*0x3+0x2];}else af&&af['length']===a4['length']?(aG[b2*0x3]=af[b3*0x3],aG[b2*0x3+0x1]=af[b3*0x3+0x1],aG[b2*0x3+0x2]=af[b3*0x3+0x2]):aB&&(aG[b2*0x3]=aB[b3*0x3],aG[b2*0x3+0x1]=aB[b3*0x3+0x1],aG[b2*0x3+0x2]=aB[b3*0x3+0x2]);}if(aH&&aI&&ah&&ai){for(let b7=0x0;b7<aj;b7++)aH[b2*aj+b7]=ah[b3*aj+b7]||0x0,aI[b2*aj+b7]=ai[b3*aj+b7]||0x0;}}}if(a3['setAttribute']('position',new B(aD,0x3)),aE&&a3[cd(0x1bf)]('uv',new B(aE,0x2)),aF&&a3['setAttribute'](cd(0x14f),new B(aF,0x2)),a3['setAttribute'](cd(0x228),new B(aG,0x3)),aH&&aI){const b8=new Uint16Array(aC*0x4),b9=new Float32Array(aC*0x4);this['_selectTopWeights'](aH,aI,aj,aC,b8,b9),a3['setAttribute']('skinIndex',new B(b8,0x4)),a3[cd(0x1bf)](cd(0x179),new B(b9,0x4));}return a3;}['_selectTopWeights'](a0,a1,a2,a3,a4,a5){if(a2<=0x4){for(let a7=0x0;a7<a3;a7++)for(let a8=0x0;a8<0x4;a8++)a8<a2?(a4[a7*0x4+a8]=a0[a7*a2+a8]||0x0,a5[a7*0x4+a8]=a1[a7*a2+a8]||0x0):(a4[a7*0x4+a8]=0x0,a5[a7*0x4+a8]=0x0);return;}const a6=new Uint32Array(a2);for(let a9=0x0;a9<a3;a9++){const aa=a9*a2;for(let ac=0x0;ac<a2;ac++)a6[ac]=ac;for(let ad=0x0;ad<0x4;ad++){let ae=ad,af=a1[aa+a6[ad]]||0x0;for(let ag=ad+0x1;ag<a2;ag++){const ah=a1[aa+a6[ag]]||0x0;ah>af&&(af=ah,ae=ag);}if(ae!==ad){const ai=a6[ad];a6[ad]=a6[ae],a6[ae]=ai;}}let ab=0x0;for(let aj=0x0;aj<0x4;aj++)ab+=a1[aa+a6[aj]]||0x0;for(let ak=0x0;ak<0x4;ak++){const al=a6[ak];ab>0x0?(a4[a9*0x4+ak]=a0[aa+al]||0x0,a5[a9*0x4+ak]=(a1[aa+al]||0x0)/ab):(a4[a9*0x4+ak]=0x0,a5[a9*0x4+ak]=0x0);}}}['_findUVPrimvar'](a0){const ce=bd;for(const a3 in a0){if(!a3['startsWith'](ce(0x1e4))||a3[ce(0x204)](':typeName')||a3['endsWith'](':elementSize')||a3['endsWith'](':indices')||a3['includes']('skel:'))continue;const a4=a0[a3+ce(0x1de)];if(a4&&a4['includes']('texCoord'))return{'uvs':a0[a3],'uvIndices':a0[a3+':indices']};}const a1=a0['primvars:st']||a0['primvars:UVMap'],a2=a0['primvars:st:indices'];return{'uvs':a1,'uvIndices':a2};}['_findUV2Primvar'](a0){const a1=a0['primvars:st1'],a2=a0['primvars:st1:indices'];return{'uvs2':a1,'uv2Indices':a2};}['_buildHoleMap'](a0){const cf=bd;if(!a0||a0['length']===0x0)return{'parentToHoles':new Map(),'holeFaces':new Set()};const a1=new Map(),a2=new Set();for(let a3=0x0;a3<a0['length'];a3+=0x2){const a4=a0[a3],a5=a0[a3+0x1];a2['add'](a4),a1['has'](a5)||a1['set'](a5,[]),a1['get'](a5)[cf(0x174)](a4);}return{'parentToHoles':a1,'holeFaces':a2};}['_triangulateIndicesWithPattern'](a0,a1,a2=null,a3=null){const cg=bd,a4=[],a5=[],a6=[];let a7=0x0;for(let ab=0x0;ab<a1['length'];ab++)a6['push'](a7),a7+=a1[ab];const a8=a3?.[cg(0x21c)]||new Map(),a9=a3?.['holeFaces']||new Set();let aa=0x0;for(let ac=0x0;ac<a1['length'];ac++){const ad=a1[ac];if(a9['has'](ac)){aa+=ad;continue;}const ae=a8['get'](ac);if(ae&&ae['length']>0x0&&a2&&a2['length']>0x0){const af=new Map(),ag=[];for(let aj=0x0;aj<ad;aj++){const ak=a0[aa+aj];ag['push'](ak),af['set'](ak,aa+aj);}const ah=[];for(const al of ae){const am=a6[al],an=a1[al],ao=[];for(let ap=0x0;ap<an;ap++){const aq=a0[am+ap];ao['push'](aq),af['set'](aq,am+ap);}ah['push'](ao);}const ai=this['_triangulateNGonWithHoles'](ag,ah,a2);for(const ar of ai)a4[cg(0x174)](ar[0x0],ar[0x1],ar[0x2]),a5['push'](af[cg(0x1da)](ar[0x0]),af['get'](ar[0x1]),af['get'](ar[0x2]));}else{if(ad===0x3)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2]),a5['push'](aa,aa+0x1,aa+0x2);else{if(ad===0x4)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2],a0[aa],a0[aa+0x2],a0[aa+0x3]),a5['push'](aa,aa+0x1,aa+0x2,aa,aa+0x2,aa+0x3);else{if(ad>0x4){if(a2&&a2['length']>0x0){const as=[];for(let av=0x0;av<ad;av++)as['push'](a0[aa+av]);const au=this[cg(0x130)](as,a2);for(const aw of au)a4[cg(0x174)](aw[0x0],aw[0x1],aw[0x2]),a5['push'](aa+as['indexOf'](aw[0x0]),aa+as['indexOf'](aw[0x1]),aa+as['indexOf'](aw[0x2]));}else{for(let ax=0x1;ax<ad-0x1;ax++)a4['push'](a0[aa],a0[aa+ax],a0[aa+ax+0x1]),a5['push'](aa,aa+ax,aa+ax+0x1);}}}}}aa+=ad;}return{'indices':a4,'pattern':a5};}['_applyTriangulationPattern'](a0,a1){const a2=[];for(let a3=0x0;a3<a1['length'];a3++)a2['push'](a0[a1[a3]]);return a2;}['_triangulateNGon'](a0,a1){const ch=bd,a2=[],a3=[];for(const a9 of a0)a3['push'](new i(a1[a9*0x3],a1[a9*0x3+0x1],a1[a9*0x3+0x2]));const a4=new i();for(let aa=0x0;aa<a3['length'];aa++){const ab=a3[aa],ac=a3[(aa+0x1)%a3['length']];a4['x']+=(ab['y']-ac['y'])*(ab['z']+ac['z']),a4['y']+=(ab['z']-ac['z'])*(ab['x']+ac['x']),a4['z']+=(ab['x']-ac['x'])*(ab['y']+ac['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();for(const ad of a3)a2[ch(0x174)](new F(ad['dot'](a5),ad[ch(0x217)](a6)));const a7=G['triangulateShape'](a2,[]),a8=[];for(const ae of a7)a8['push']([a0[ae[0x0]],a0[ae[0x1]],a0[ae[0x2]]]);return a8;}['_triangulateNGonWithHoles'](a0,a1,a2){const ci=bd,a3=[];for(const ac of a0)a3[ci(0x174)](new i(a2[ac*0x3],a2[ac*0x3+0x1],a2[ac*0x3+0x2]));const a4=new i();for(let ad=0x0;ad<a3[ci(0x1a8)];ad++){const ae=a3[ad],af=a3[(ad+0x1)%a3['length']];a4['x']+=(ae['y']-af['y'])*(ae['z']+af['z']),a4['y']+=(ae['z']-af['z'])*(ae['x']+af['x']),a4['z']+=(ae['x']-af['x'])*(ae['y']+af['y']);}a4['normalize']();const a5=new i(),a6=new i();Math[ci(0x13a)](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();const a7=[];for(const ag of a3)a7['push'](new F(ag['dot'](a5),ag['dot'](a6)));const a8=[];for(const ah of a1){const ai=[];for(const aj of ah){const ak=new i(a2[aj*0x3],a2[aj*0x3+0x1],a2[aj*0x3+0x2]);ai['push'](new F(ak['dot'](a5),ak['dot'](a6)));}a8['push'](ai);}const a9=[...a0];for(const al of a1)a9[ci(0x174)](...al);const aa=G['triangulateShape'](a7,a8),ab=[];for(const am of aa)ab[ci(0x174)]([a9[am[0x0]],a9[am[0x1]],a9[am[0x2]]]);return ab;}[bd(0x19a)](a0,a1){const a2=[];let a3=0x0;for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];if(a5===0x3)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2]);else{if(a5===0x4)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2],a0[a3],a0[a3+0x2],a0[a3+0x3]);else{if(a5>0x4){for(let a6=0x1;a6<a5-0x1;a6++)a2['push'](a0[a3],a0[a3+a6],a0[a3+a6+0x1]);}}}a3+=a5;}return a2;}['_expandAttribute'](a0,a1,a2){const cj=bd,a3=new Array(a1['length']*a2);for(let a4=0x0;a4<a1[cj(0x1a8)];a4++){const a5=a1[a4];for(let a6=0x0;a6<a2;a6++)a3[a4*a2+a6]=a0[a5*a2+a6];}return a3;}['_computeVertexNormals'](a0,a1){const a2=a0['length']/0x3,a3=new Float32Array(a2*0x3);for(let a4=0x0;a4<a1['length'];a4+=0x3){const a5=a1[a4],a6=a1[a4+0x1],a7=a1[a4+0x2],a8=a0[a5*0x3],a9=a0[a5*0x3+0x1],aa=a0[a5*0x3+0x2],ab=a0[a6*0x3],ac=a0[a6*0x3+0x1],ad=a0[a6*0x3+0x2],ae=a0[a7*0x3],af=a0[a7*0x3+0x1],ag=a0[a7*0x3+0x2],ah=ab-a8,ai=ac-a9,aj=ad-aa,ak=ae-a8,al=af-a9,am=ag-aa,an=ai*am-aj*al,ao=aj*ak-ah*am,ap=ah*al-ai*ak;a3[a5*0x3]+=an,a3[a5*0x3+0x1]+=ao,a3[a5*0x3+0x2]+=ap,a3[a6*0x3]+=an,a3[a6*0x3+0x1]+=ao,a3[a6*0x3+0x2]+=ap,a3[a7*0x3]+=an,a3[a7*0x3+0x1]+=ao,a3[a7*0x3+0x2]+=ap;}for(let aq=0x0;aq<a2;aq++){const ar=a3[aq*0x3],as=a3[aq*0x3+0x1],au=a3[aq*0x3+0x2],av=Math['sqrt'](ar*ar+as*as+au*au);av>0x0&&(a3[aq*0x3]/=av,a3[aq*0x3+0x1]/=av,a3[aq*0x3+0x2]/=av);}return a3;}['_getMaterialPath'](a0,a1){let a2=null;const a3=a1['material:binding'];return a3&&(a2=Array['isArray'](a3)?a3[0x0]:a3),a2||(a2=this['_getMaterialBindingTarget'](a0)),a2;}['_buildMaterial'](a0,a1){const ck=bd,a2=new H();let a3=null;const a4=a1['material:binding'];if(a4&&(a3=Array['isArray'](a4)?a4[0x0]:a4),a3||(a3=this['_getMaterialBindingTarget'](a0)),!a3){const a5=[],a6=a0+'/';for(const a7 in this['specsByPath']){if(!a7[ck(0x1d4)](a6)||!a7['endsWith']('.material:binding'))continue;const a8=this['specsByPath'][a7];if(!a8)continue;const a9=a8['fields']['targetPaths'];a9&&a9['length']>0x0&&a5['push'](a9[0x0]);}a5['length']>0x0&&(a3=this['_pickBestMaterial'](a5));}if(!a3){const aa='/'+a0['split']('/')[0x1],ab=this['materialsByRoot']['get'](aa);if(ab){for(const ac of ab)if(ac['startsWith'](aa+'/Looks/')||ac[ck(0x1d4)](aa+ck(0x209))){a3=ac;break;}}}return a3&&this['_applyMaterial'](a2,a3),a2;}['_buildMaterialForPath'](a0){const a1=new H();return a0&&this['_applyMaterial'](a1,a0),a1;}['_applyMaterialBinding'](a0,a1){const cl=bd,a2=a1+'.material:binding',a3=this['specsByPath'][a2];if(!a3)return;let a4=null;const a5=a3[cl(0x1ce)]?.['targetPaths']||a3[cl(0x1ce)]?.['default'];if(a5&&(a4=Array[cl(0x1d8)](a5)?a5[0x0]:a5),!a4)return;a4=String(a4)['replace'](/^<|>$/g,'');const a6=new H();this['_applyMaterial'](a6,a4),a0[cl(0x21a)]=a6;}['_pickBestMaterial'](a0){const cm=bd;for(const a1 of a0){const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this['_getAttributes'](a3);if(a4[cm(0x17d)]==='UsdUVTexture'&&a4['inputs:file'])return a1;}}return a0[0x0];}['_applyMaterial'](a0,a1){const cn=bd;if(!this['specsByPath'][a1])return;const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this[cn(0x1db)][a3];if(!a4)continue;const a5=this['_getAttributes'](a3)['info:id']||a4['fields']['info:id'];a5==='UsdPreviewSurface'||a5===cn(0x190)?this['_applyPreviewSurface'](a0,a3):a5==='arnold:openpbr_surface'&&this[cn(0x1a6)](a0,a3);}}[bd(0x208)](a0,a1,a2,a3,a4,a5,a6,a7){const co=bd,a8=a1+'.'+a3,a9=this['specsByPath'][a8];if(a9&&a9[co(0x1ce)]['connectionPaths']&&a9['fields']['connectionPaths']['length']>0x0){const aa=a7===this[co(0x157)]?a9[co(0x1ce)]['connectionPaths']:[a9['fields']['connectionPaths'][0x0]];for(const ab of aa){const ac=a7['call'](this,ab);if(ac)return ac['colorSpace']=a5,a0[a4]=ac,!0x0;}}return a2[a3]!==void 0x0&&a6&&a6(a2[a3]),!0x1;}['_applyPreviewSurface'](a0,a1){const cp=bd,a2=this['_getAttributes'](a1),a3=(a6,a7,a8,a9)=>this[cp(0x208)](a0,a1,a2,a6,a7,a8,a9,this['_getTextureFromConnection']),a4=a6=>{const a7=a1+'.'+a6;return this['specsByPath'][a7];};if(a3('inputs:diffuseColor','map',I,a6=>{const cq=cp;Array['isArray'](a6)&&a6['length']>=0x3&&a0[cq(0x222)]['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}),a0['map']&&a0['map'][cp(0x168)]['scale']){const a6=a0['map']['userData']['scale'];Array['isArray'](a6)&&a6['length']>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}if(a3('inputs:emissiveColor','emissiveMap',I,a7=>{const cr=cp;Array['isArray'](a7)&&a7['length']>=0x3&&a0[cr(0x18a)]['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}),a0['emissiveMap']){if(a0['emissiveMap']['userData']['scale']){const a7=a0['emissiveMap'][cp(0x168)][cp(0x13d)];Array['isArray'](a7)&&a7['length']>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}else a0['emissive']['set'](0xffffff);}if(a3('inputs:normal','normalMap',W,null),a0['normalMap']&&a0['normalMap']['userData'][cp(0x13d)]){const a8=a0[cp(0x166)][cp(0x168)]['scale'];a0['normalScale']=new F(a8[0x0],a8[0x1]);}if(a3('inputs:roughness',cp(0x163),W,a9=>{a0['roughness']=a9;})&&(a0['roughness']=0x1),a3('inputs:metallic','metalnessMap',W,a9=>{a0['metalness']=a9;})&&(a0['metalness']=0x1),a3('inputs:occlusion','aoMap',W,null),a2['inputs:ior']!==void 0x0&&(a0['ior']=a2[cp(0x1c9)]),a3(cp(0x16d),'specularColorMap',I,a9=>{const cs=cp;Array[cs(0x1d8)](a9)&&a9[cs(0x1a8)]>=0x3&&a0['specularColor']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}),a0['specularColorMap']&&a0['specularColorMap'][cp(0x168)]['scale']){const a9=a0['specularColorMap']['userData']['scale'];Array['isArray'](a9)&&a9['length']>=0x3&&a0['specularColor'][cp(0x156)](a9[0x0],a9[0x1],a9[0x2],I);}a2['inputs:clearcoat']!==void 0x0&&(a0['clearcoat']=a2['inputs:clearcoat']),a2['inputs:clearcoatRoughness']!==void 0x0&&(a0[cp(0x17f)]=a2['inputs:clearcoatRoughness']);const a5=a2['inputs:opacityThreshold']!==void 0x0?a2['inputs:opacityThreshold']:0x0;if(a4('inputs:opacity')?.['fields']?.['connectionPaths']?.['length']>0x0)a5>0x0?(a0['alphaTest']=a5,a0['transparent']=!0x1):a0['transparent']=!0x0;else{const aa=a2[cp(0x1d9)]!==void 0x0?a2['inputs:opacity']:0x1;aa<0x1&&(a0['transparent']=!0x0,a0['opacity']=aa);}}['_applyOpenPBRSurface'](a0,a1){const cu=bd,a2=this['_getAttributes'](a1),a3=(ae,af,ag,ah)=>this['_applyTextureOrValue'](a0,a1,a2,ae,af,ag,ah,this['_getTextureFromOpenPBRConnection']);if(a3('inputs:base_color','map',I,ae=>{Array['isArray'](ae)&&ae['length']>=0x3&&a0['color']['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}),a0[cu(0x1c3)]&&a0['map']['userData'][cu(0x13d)]){const ae=a0['map']['userData']['scale'];Array[cu(0x1d8)](ae)&&ae['length']>=0x3&&a0[cu(0x222)]['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}a3('inputs:base_metalness','metalnessMap',W,af=>{const cv=cu;typeof af=='number'&&(a0[cv(0x13e)]=af);}),a3('inputs:specular_roughness',cu(0x163),W,af=>{typeof af=='number'&&(a0['roughness']=af);});const a4=a3('inputs:emission_color','emissiveMap',I,af=>{Array['isArray'](af)&&af['length']>=0x3&&a0['emissive']['setRGB'](af[0x0],af[0x1],af[0x2],I);}),a5=a2['inputs:emission_luminance'];a5!==void 0x0&&a5>0x0&&(a4?a0['emissiveIntensity']=a5:a0['emissive'][cu(0x14c)](a5));const a6=a2['inputs:transmission_weight'];if(a6!==void 0x0&&a6>0x0){a0['transmission']=a6;const af=a2['inputs:transmission_depth'];af!==void 0x0&&(a0['thickness']=af);const ag=a2['inputs:transmission_color'];ag!==void 0x0&&Array['isArray'](ag)&&(a0[cu(0x133)]['setRGB'](ag[0x0],ag[0x1],ag[0x2]),a0['attenuationDistance']=af||0x1);}const a7=a2['inputs:geometry_opacity'];a7!==void 0x0&&a7<0x1&&(a0['opacity']=a7,a0['transparent']=!0x0);const a8=a2['inputs:specular_ior'];a8!==void 0x0&&(a0['ior']=a8);const a9=a2['inputs:coat_weight'];if(a9!==void 0x0&&a9>0x0){a0['clearcoat']=a9;const ah=a2['inputs:coat_roughness'];ah!==void 0x0&&(a0['clearcoatRoughness']=ah);}const aa=a2[cu(0x200)];if(aa!==void 0x0&&aa>0x0){a0['iridescence']=aa;const ai=a2['inputs:thin_film_ior'];ai!==void 0x0&&(a0['iridescenceIOR']=ai);const aj=a2[cu(0x127)];if(aj!==void 0x0){const ak=aj*0x3e8;a0['iridescenceThicknessRange']=[ak,ak];}}const ab=a2[cu(0x1be)];ab!==void 0x0&&(a0[cu(0x141)]=ab);const ac=a2['inputs:specular_color'];ac!==void 0x0&&Array['isArray'](ac)&&a0['specularColor']['setRGB'](ac[0x0],ac[0x1],ac[0x2]);const ad=a2[cu(0x185)];ad!==void 0x0&&ad>0x0&&(a0['anisotropy']=ad),a3('inputs:geometry_normal','normalMap',W,null);}['_getTextureFromOpenPBRConnection'](a0){const cw=bd,a1=a0['replace'](/<|>/g,''),a2=a1['split']('.')[0x0],a3=this['specsByPath'][a2];if(!a3)return null;const a4=this['_getAttributes'](a2),a5=a4['info:id']||a3[cw(0x1ce)]['info:id'];if(a3['fields']['typeName']==='NodeGraph'){const a7=a1[cw(0x186)]('.')[0x1],a8=a2+'.'+a7,a9=this[cw(0x1db)][a8];return a9?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](a9['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:image'){const aa=a4[cw(0x211)];return aa?this[cw(0x19d)](aa):null;}if(a5&&a5['startsWith'](cw(0x1ea))){const ab=a4[cw(0x1b4)];return ab?this['_loadTextureFromPath'](ab):null;}if(a5===cw(0x1f5)){const ac=a2+cw(0x1b0),ad=this['specsByPath'][ac];return ad?.['fields']?.['connectionPaths']?.['length']>0x0?this[cw(0x157)](ad['fields']['connectionPaths'][0x0]):null;}if(a5&&a5['startsWith']('ND_convert_')){const ae=a2+'.inputs:in',af=this['specsByPath'][ae];return af?.['fields']?.['connectionPaths']?.[cw(0x1a8)]>0x0?this[cw(0x157)](af['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:bump2d'){const ag=a2+cw(0x161),ah=this['specsByPath'][ag];return ah?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](ah['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:color_correct'){const ai=a2+cw(0x1dd),aj=this['specsByPath'][ai];return aj?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](aj['fields']['connectionPaths'][0x0]):null;}const a6=a2['substring'](0x0,a2['lastIndexOf']('/'));if(a6){const ak=this['specsByPath'][a6];if(ak){const al=this['_getAttributes'](a6);if((al['info:id']||ak['fields']['info:id'])==='arnold:image'){const am=al['inputs:filename'];if(am)return this['_loadTextureFromPath'](am);}}}return null;}['_loadTextureFromPath'](a0){const cx=bd;if(!a0)return null;if(this['textureCache'][a0])return this[cx(0x16f)][a0];const a1=this['_loadTexture'](a0,null,null);return a1&&(this['textureCache'][a0]=a1),a1;}[bd(0x159)](a0){const cy=bd,a1=a0[cy(0x186)]('.')[0x0],a2=this['specsByPath'][a1];if(!a2)return null;const a3=this['_getAttributes'](a1);if((a3['info:id']||a2['fields']['info:id'])!=='UsdUVTexture')return null;const a4=a3['inputs:file'];if(!a4)return null;let a5=null,a6=0x0;const a7=a1+'.inputs:st',a8=this['specsByPath'][a7];if(a8?.[cy(0x1ce)]?.['connectionPaths']?.['length']>0x0){const ad=a8['fields'][cy(0x15f)][0x0][cy(0x1f7)](/<|>/g,'')['split']('.')[0x0],ae=this[cy(0x1db)][ad];if(ae){const af=this['_getAttributes'](ad),ag=af['info:id']||ae['fields']['info:id'];if(ag==='UsdTransform2d'){a5=af;const ah=ad+'.inputs:in',ai=this[cy(0x1db)][ah];if(ai?.['fields']?.['connectionPaths']?.['length']>0x0){const aj=ai['fields']['connectionPaths'][0x0]['replace'](/<|>/g,'')[cy(0x186)]('.')[0x0],ak=this[cy(0x147)](aj)['inputs:varname'];ak===cy(0x189)?a6=0x1:ak==='st2'&&(a6=0x2);}}else{if(ag==='UsdPrimvarReader_float2'){const al=af['inputs:varname'];al==='st1'?a6=0x1:al==='st2'&&(a6=0x2);}}}}const a9=a3[cy(0x225)],aa=a3[cy(0x15b)];let ab=a4;if(a9&&(ab+=':s'+a9['join'](',')),aa&&(ab+=':b'+aa['join'](',')),this['textureCache'][ab])return this['textureCache'][ab];const ac=this['_loadTexture'](a4,a3,a5);return ac&&(a9&&(ac['userData']['scale']=a9),aa&&(ac['userData']['bias']=aa),a6!==0x0&&(ac['channel']=a6),this[cy(0x16f)][ab]=ac),ac;}['_applyTextureTransforms'](a0,a1){const cz=bd;if(!a1)return;const a2=a1['inputs:scale'];a2&&Array['isArray'](a2)&&a2['length']>=0x2&&a0[cz(0x12f)]['set'](a2[0x0],a2[0x1]);const a3=a1['inputs:translation'];a3&&Array[cz(0x1d8)](a3)&&a3['length']>=0x2&&a0['offset']['set'](a3[0x0],a3[0x1]);const a4=a1['inputs:rotation'];typeof a4=='number'&&(a0[cz(0x17a)]=a4*Math['PI']/0xb4);}['_loadTexture'](a0,a1,a2){const cA=bd;let a3=a0;a3['startsWith']('@')&&(a3=a3[cA(0x1fd)](0x1)),a3['endsWith']('@')&&(a3=a3['slice'](0x0,-0x1));const a4=this['_resolveFilePath'](a3);let a5=this['assets'][a4];if(a5||(a5=this['assets'][a3]),!a5){const a6=a3['split']('/')['pop']();for(const a7 in this['assets'])if(a7['endsWith'](a6)||a7['endsWith']('/'+a6))return this[cA(0x21f)](this['assets'][a7],a1,a2);if(this['manager']){const a8=this['manager'][cA(0x15a)](a6);if(a8!==a6)return this['_createTextureFromData'](a8,a1,a2);}return console['warn']('USDLoader:\x20Texture\x20not\x20found:',a3),null;}return this['_createTextureFromData'](a5,a1,a2);}['_createTextureFromData'](a0,a1,a2){if(!a0)return null;const a3=this,a4=new M();let a5;if(typeof a0=='string')a5=a0;else{if(a0 instanceof Uint8Array||a0 instanceof ArrayBuffer){const a7=new Blob([a0]);a5=URL['createObjectURL'](a7);}else return null;}const a6=new Image();return a6['onload']=function(){const cB=c;a4[cB(0x1e9)]=a6,a1&&(a4[cB(0x1f0)]=a3['_getWrapMode'](a1['inputs:wrapS']),a4['wrapT']=a3['_getWrapMode'](a1[cB(0x1dc)])),a3['_applyTextureTransforms'](a4,a2),a4['needsUpdate']=!0x0,typeof a0!='string'&&URL[cB(0x218)](a5);},a6['src']=a5,a4;}['_getWrapMode'](a0){const cC=bd;return a0==='repeat'?N:a0===cC(0x1b3)?O:a0==='clamp'?P:N;}['_buildSkeleton'](a0){const cD=bd,a1=this['_getAttributes'](a0),a2=a1['joints'];if(!a2||a2['length']===0x0)return null;const a3=a1[cD(0x203)],a4=a1['restTransforms'],a5=this['_flattenMatrixArray'](a3,a2['length']),a6=this['_flattenMatrixArray'](a4,a2['length']),a7=[],a8={},a9=[];for(let ad=0x0;ad<a2['length'];ad++){const ae=a2[ad],af=ae[cD(0x186)]('/')['pop'](),ag=new R();if(ag[cD(0x1e0)]=af,a7[cD(0x174)](ag),a8[ae]={'bone':ag,'index':ad},a5&&a5['length']>=(ad+0x1)*0x10){const ah=new f(),ai=a5['slice'](ad*0x10,(ad+0x1)*0x10);ah['set'](ai[0x0],ai[0x4],ai[0x8],ai[0xc],ai[0x1],ai[0x5],ai[0x9],ai[0xd],ai[0x2],ai[0x6],ai[0xa],ai[0xe],ai[0x3],ai[0x7],ai[0xb],ai[0xf]);const aj=ah['clone']()['invert']();a9['push'](aj);}else a9['push'](new f());}for(let ak=0x0;ak<a2[cD(0x1a8)];ak++){const al=a2[ak][cD(0x186)]('/');if(al['length']>0x1){const am=al['slice'](0x0,-0x1)['join']('/'),an=a8[am];an&&an['bone']['add'](a7[ak]);}}if(a6&&a6['length']>=a2['length']*0x10)for(let ao=0x0;ao<a2['length'];ao++){const ap=new f(),aq=a6['slice'](ao*0x10,(ao+0x1)*0x10);ap['set'](aq[0x0],aq[0x4],aq[0x8],aq[0xc],aq[0x1],aq[0x5],aq[0x9],aq[0xd],aq[0x2],aq[0x6],aq[0xa],aq[0xe],aq[0x3],aq[0x7],aq[0xb],aq[0xf]),ap['decompose'](a7[ao]['position'],a7[ao][cD(0x164)],a7[ao][cD(0x13d)]);}const aa=a7['filter'](ar=>!ar['parent']||!ar['parent']['isBone']),ab=this['specsByPath'][a0+'.skel:animationSource'];let ac=null;return ab&&ab['fields'][cD(0x192)]&&ab['fields']['targetPaths']['length']>0x0&&(ac=ab['fields'][cD(0x192)][0x0]),{'skeleton':new S(a7,a9),'joints':a2,'rootBones':aa,'animationPath':ac,'path':a0};}['_bindSkeletons'](){const cE=bd;for(const a0 of this['skinnedMeshes']){const {mesh:a1,skeletonPath:a2,localJoints:a3,geomBindTransform:a4}=a0;let a5=null;if(a2&&this[cE(0x177)][a2]&&(a5=this['skeletons'][a2]),!a5){for(const aa in this['skeletons'])if(a2&&(a2['includes'](aa)||aa['includes'](a2))){a5=this[cE(0x177)][aa];break;}}if(!a5){const ab=Object['keys'](this['skeletons']);ab['length']>0x0&&(a5=this['skeletons'][ab[0x0]]);}if(!a5){console[cE(0x223)](cE(0x19f),a1['name']);continue;}const {skeleton:a6,rootBones:a7,joints:a8}=a5;if(a3&&a3['length']>0x0){const ac=a1[cE(0x149)]['attributes']['skinIndex'];if(ac){const ad=[];for(let af=0x0;af<a3[cE(0x1a8)];af++){const ag=a3[af],ah=a8['indexOf'](ag);ad[af]=ah>=0x0?ah:0x0;}const ae=ac['array'];for(let ai=0x0;ai<ae['length'];ai++){const aj=ae[ai];aj<ad[cE(0x1a8)]&&(ae[ai]=ad[aj]);}}}for(const ak of a7)a1['add'](ak);const a9=new f();if(a4&&a4['length']===0x10){const al=a4;a9['set'](al[0x0],al[0x4],al[0x8],al[0xc],al[0x1],al[0x5],al[0x9],al[0xd],al[0x2],al[0x6],al[0xa],al[0xe],al[0x3],al[0x7],al[0xb],al[0xf]);}a1['bind'](a6,a9);}}['_buildAnimations'](){const cF=bd,a0=[];for(const a2 in this['specsByPath']){const a3=this['specsByPath'][a2];if(a3['specType']!==K['Prim']||a3['fields'][cF(0x1f6)]!=='SkelAnimation')continue;const a4=this[cF(0x1e8)](a2);a4&&a0['push'](a4);}const a1=this['_buildTransformAnimations']();return a1['length']>0x0&&a0['push'](new T('TransformAnimation',-0x1,a1)),a0;}['_buildTransformAnimations'](){const cG=bd,a0=[];for(const a1 in this['specsByPath']){const a2=this['specsByPath'][a1];if(a2['specType']!==K['Prim'])continue;const a3=a2['fields']?.['typeName'];if(a3!=='Xform'&&a3!=='Scope'&&a3!=='Mesh')continue;const a4=a1['split']('/')['pop'](),a5=a1+'.xformOp:orient',a6=this['specsByPath'][a5];if(a6?.['fields']?.['timeSamples']){const {times:ae,values:af}=a6['fields']['timeSamples'],ag=[],ah=[];for(let ai=0x0;ai<ae['length'];ai++){ag['push'](ae[ai]/this['fps']);const aj=af[ai];ah['push'](aj[0x0],aj[0x1],aj[0x2],aj[0x3]);}ag[cG(0x1a8)]>0x0&&a0['push'](new U(a4+'.quaternion',new Float32Array(ag),new Float32Array(ah)));}const a7=a1+'.xformOp:rotateXYZ',a8=this[cG(0x1db)][a7];if(a8?.['fields']?.['timeSamples']){const {times:ak,values:al}=a8['fields']['timeSamples'],am=[],an=[],ao=new g(),ap=new h();for(let aq=0x0;aq<ak['length'];aq++){am['push'](ak[aq]/this['fps']);const ar=al[aq];ao[cG(0x1c2)](ar[0x0]*Math['PI']/0xb4,ar[0x1]*Math['PI']/0xb4,ar[0x2]*Math['PI']/0xb4,'ZYX'),ap['setFromEuler'](ao),an['push'](ap['x'],ap['y'],ap['z'],ap['w']);}am['length']>0x0&&a0['push'](new U(a4+cG(0x1b7),new Float32Array(am),new Float32Array(an)));}const a9=a1+'.xformOp:translate',aa=this['specsByPath'][a9];if(aa?.['fields']?.['timeSamples']){const {times:as,values:au}=aa['fields']['timeSamples'],av=[],aw=[];for(let ax=0x0;ax<as[cG(0x1a8)];ax++){av['push'](as[ax]/this['fps']);const ay=au[ax];aw['push'](ay[0x0],ay[0x1],ay[0x2]);}av['length']>0x0&&a0[cG(0x174)](new V(a4+'.position',new Float32Array(av),new Float32Array(aw)));}const ab=a1+cG(0x15e),ac=this['specsByPath'][ab];if(ac?.[cG(0x1ce)]?.['timeSamples']){const {times:az,values:aA}=ac['fields']['timeSamples'],aB=[],aC=[];for(let aD=0x0;aD<az['length'];aD++){aB[cG(0x174)](az[aD]/this['fps']);const aE=aA[aD];aC['push'](aE[0x0],aE[0x1],aE[0x2]);}aB['length']>0x0&&a0['push'](new V(a4+'.scale',new Float32Array(aB),new Float32Array(aC)));}const ad=a2['fields']?.['properties']||[];for(const aF of ad){if(!aF['startsWith']('xformOp:transform'))continue;const aG=a1+'.'+aF,aH=this['specsByPath'][aG];if(!aH?.[cG(0x1ce)]?.['timeSamples'])continue;const {times:aI,values:aJ}=aH['fields'][cG(0x17e)],aK=[],aL=[],aM=[],aN=[],aO=[],aP=[],aQ=new f(),aR=new i(),aS=new h(),aT=new i();for(let aU=0x0;aU<aI['length'];aU++){const aV=aJ[aU];if(!aV||aV['length']<0x10)continue;const aW=aI[aU]/this['fps'];aQ[cG(0x1c2)](aV[0x0],aV[0x4],aV[0x8],aV[0xc],aV[0x1],aV[0x5],aV[0x9],aV[0xd],aV[0x2],aV[0x6],aV[0xa],aV[0xe],aV[0x3],aV[0x7],aV[0xb],aV[0xf]),aQ['decompose'](aR,aS,aT),aK['push'](aW),aL['push'](aR['x'],aR['y'],aR['z']),aM[cG(0x174)](aW),aN['push'](aS['x'],aS['y'],aS['z'],aS['w']),aO['push'](aW),aP[cG(0x174)](aT['x'],aT['y'],aT['z']);}aK['length']>0x0&&(a0['push'](new V(a4+'.position',new Float32Array(aK),new Float32Array(aL))),a0['push'](new U(a4+'.quaternion',new Float32Array(aM),new Float32Array(aN))),a0['push'](new V(a4+cG(0x215),new Float32Array(aO),new Float32Array(aP))));break;}}return a0;}['_buildAnimationClip'](a0){const cH=bd,a1=this['_getAttributes'](a0)['joints'];if(!a1||a1[cH(0x1a8)]===0x0)return null;const a2=[],a3=this['_getTimeSampledAttribute'](a0,'rotations');if(a3&&a3['times']&&a3['values']){const {times:a7,values:a8}=a3;for(let a9=0x0;a9<a1['length'];a9++){const aa=a1[a9]['split']('/')['pop'](),ab=[],ac=[];for(let ad=0x0;ad<a7['length'];ad++){const ae=a8[ad];if(!ae||ae[cH(0x1a8)]<(a9+0x1)*0x4)continue;ab['push'](a7[ad]/this['fps']);const af=ae[a9*0x4+0x0],ag=ae[a9*0x4+0x1],ah=ae[a9*0x4+0x2],ai=ae[a9*0x4+0x3];ac[cH(0x174)](af,ag,ah,ai);}ab['length']>0x0&&a2['push'](new U(aa+'.quaternion',new Float32Array(ab),new Float32Array(ac)));}}const a4=this[cH(0x121)](a0,'translations');if(a4&&a4['times']&&a4['values']){const {times:aj,values:ak}=a4;for(let al=0x0;al<a1['length'];al++){const am=a1[al]['split']('/')[cH(0x1aa)](),an=[],ao=[];for(let ap=0x0;ap<aj['length'];ap++){const aq=ak[ap];!aq||aq['length']<(al+0x1)*0x3||(an['push'](aj[ap]/this['fps']),ao['push'](aq[al*0x3+0x0],aq[al*0x3+0x1],aq[al*0x3+0x2]));}an['length']>0x0&&a2['push'](new V(am+'.position',new Float32Array(an),new Float32Array(ao)));}}const a5=this['_getTimeSampledAttribute'](a0,cH(0x191));if(a5&&a5['times']&&a5['values']){const {times:ar,values:as}=a5;for(let au=0x0;au<a1['length'];au++){const av=a1[au]['split']('/')[cH(0x1aa)](),aw=[],ax=[];for(let ay=0x0;ay<ar['length'];ay++){const az=as[ay];!az||az[cH(0x1a8)]<(au+0x1)*0x3||(aw['push'](ar[ay]/this['fps']),ax[cH(0x174)](az[au*0x3+0x0],az[au*0x3+0x1],az[au*0x3+0x2]));}aw['length']>0x0&&a2[cH(0x174)](new V(av+'.scale',new Float32Array(aw),new Float32Array(ax)));}}if(a2[cH(0x1a8)]===0x0)return null;const a6=a0['split']('/')['pop']();return new T(a6,-0x1,a2);}[bd(0x121)](a0,a1){const cI=bd,a2=a0+'.'+a1,a3=this[cI(0x1db)][a2];if(a3&&a3[cI(0x1ce)][cI(0x17e)]){const a4=a3['fields']['timeSamples'];if(a4['times']&&a4[cI(0x1a0)])return a4;}return null;}['_flattenMatrixArray'](a0,a1){const cJ=bd;if(!a0||a0['length']===0x0)return null;if(typeof a0[0x0]==cJ(0x1f2))return a0;const a2=[];for(let a3=0x0;a3<a1;a3++)for(let a4=0x0;a4<0x4;a4++){const a5=a0[a3*0x4+a4];a5&&a5[cJ(0x1a8)]===0x4?a2['push'](a5[0x0],a5[0x1],a5[0x2],a5[0x3]):a2['push'](a4===0x0?0x1:0x0,a4===0x1?0x1:0x0,a4===0x2?0x1:0x0,a4===0x3?0x1:0x0);}return a2;}}class le extends X{constructor(a0){super(a0);}['load'](a0,a1,a2,a3){const cK=bd,a4=this,a5=new Z(a4[cK(0x210)]);a5['setPath'](a4['path']),a5[cK(0x1f8)]('arraybuffer'),a5['setRequestHeader'](a4['requestHeader']),a5['setWithCredentials'](a4[cK(0x19c)]),a5[cK(0x206)](a0,function(a6){try{a1(a4['parse'](a6));}catch(a7){a3?a3(a7):console['error'](a7),a4['manager']['itemError'](a0);}},a2,a3);}['parse'](a0){const cQ=bd,a1=new Yt(),a2=new ne(),a3=new TextDecoder();function a4(ae){const cL=c;return ae instanceof ArrayBuffer?ae:ae['byteOffset']===0x0&&ae[cL(0x169)]===ae['buffer']['byteLength']?ae['buffer']:ae['buffer']['slice'](ae['byteOffset'],ae['byteOffset']+ae['byteLength']);}function a5(ae){const cM=c,af=ae['lastIndexOf']('.');return af<0x0||ae['lastIndexOf']('/')>af?'':ae[cM(0x1fd)](af+0x1)[cM(0x19e)]();}function a6(ae){const cN=c,af={};for(const ag in ae){const ah=ae[ag],ai=a5(ag);if(ai==='png'||ai===cN(0x1fc)||ai==='jpeg'||ai==='avif'){af[ag]=ah;continue;}ai!=='usd'&&ai!=='usda'&&ai!==cN(0x1c0)||(a7(ah)?af[ag]=a2['parseData'](a4(ah)):af[ag]=a1['parseData'](a3['decode'](ah)));}return af;}function a7(ae){const cO=c,af=new Uint8Array([0x50,0x58,0x52,0x2d,0x55,0x53,0x44,0x43]),ag=ae instanceof Uint8Array?ae:new Uint8Array(ae);if(ag['byteLength']<af[cO(0x1a8)])return!0x1;for(let ah=0x0;ah<af['length'];ah++)if(ag[ah]!==af[ah])return!0x1;return!0x0;}function a8(ae){const cP=c,af=Object[cP(0x122)](ae);if(af['length']<0x1)return{'file':void 0x0,'filename':'','basePath':''};const ag=af[0x0],ah=a5(ag);let ai=!0x1;const aj=ag[cP(0x187)]('/'),ak=aj>=0x0?ag['slice'](0x0,aj):'';if(ah==='usda')return{'file':ae[ag],'filename':ag,'basePath':ak};if(ah==='usdc')ai=!0x0;else{if(ah==='usd'){if(a7(ae[ag]))ai=!0x0;else return{'file':ae[ag],'filename':ag,'basePath':ak};}}return ai?{'file':ae[ag],'filename':ag,'basePath':ak}:{'file':void 0x0,'filename':'','basePath':''};}const a9=this;if(typeof a0==cQ(0x1e3)){const ae=new tt(a9['manager']),af=a1['parseData'](a0);return ae['compose'](af,{});}if(a7(a0)){const ag=new tt(a9['manager']),ah=a2['parseData'](a4(a0));return ag['compose'](ah,{});}const aa=new Uint8Array(a0);if(aa[0x0]===0x50&&aa[0x1]===0x4b){const ai=d(aa),aj=a6(ai),{file:ak,filename:al,basePath:am}=a8(ai);if(!ak)throw new Error('USDLoader:\x20Invalid\x20USDZ\x20package.\x20The\x20first\x20ZIP\x20entry\x20must\x20be\x20a\x20USD\x20layer\x20(.usd/.usda/.usdc).');const an=new tt(a9['manager']),ao=aj[al];if(!ao)throw new Error('USDLoader:\x20Failed\x20to\x20parse\x20root\x20layer\x20\x22'+al+'\x22.');return an['compose'](ao,aj,{},am);}const ab=new tt(a9['manager']),ac=a3['decode'](aa),ad=a1['parseData'](ac);return ab[cQ(0x165)](ad,{});}}export{le as USDLoader};
|