@flyfish-group/file-viewer 1.0.14 → 1.0.15

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.
Files changed (201) hide show
  1. package/dist/components/3MFLoader.js +1 -1
  2. package/dist/components/AMFLoader.js +1 -1
  3. package/dist/components/ArchiveViewer.js +201 -1
  4. package/dist/components/AudioViewer.js +1 -1
  5. package/dist/components/CadViewer.js +1 -1
  6. package/dist/components/CodeViewer.js +1 -1
  7. package/dist/components/ColladaLoader.js +1 -1
  8. package/dist/components/DrawingViewer.js +1 -1
  9. package/dist/components/EdaViewer.js +1 -1
  10. package/dist/components/EmailViewer.js +1 -1
  11. package/dist/components/EpubViewer.js +1 -1
  12. package/dist/components/FBXLoader.js +1 -1
  13. package/dist/components/GLTFLoader.js +1 -1
  14. package/dist/components/ImageViewer.js +1 -1
  15. package/dist/components/KMZLoader.js +1 -1
  16. package/dist/components/MarkdownViewer.js +1 -1
  17. package/dist/components/OBJLoader.js +1 -1
  18. package/dist/components/OfdViewer.js +1 -1
  19. package/dist/components/PCDLoader.js +1 -1
  20. package/dist/components/PLYLoader.js +1 -1
  21. package/dist/components/PptxRender.js +19323 -1
  22. package/dist/components/STLLoader.js +1 -1
  23. package/dist/components/TDSLoader.js +1 -1
  24. package/dist/components/USDLoader.js +1 -1
  25. package/dist/components/UmdViewer.js +2 -2
  26. package/dist/components/VRMLLoader.js +1 -1
  27. package/dist/components/VTKLoader.js +1 -1
  28. package/dist/components/XYZLoader.js +1 -1
  29. package/dist/components/XlsxTable.js +1 -1
  30. package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
  31. package/dist/components/_commonjs-dynamic-modules.js +1 -1
  32. package/dist/components/_commonjsHelpers.js +1 -1
  33. package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
  34. package/dist/components/arc.js +1 -1
  35. package/dist/components/architecture-7EHR7CIX.js +1 -1
  36. package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
  37. package/dist/components/az-AZ-76LH7QW2.js +1 -1
  38. package/dist/components/bg-BG-XCXSNQG7.js +1 -1
  39. package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
  40. package/dist/components/bn-BD-2XOGV67Q.js +1 -1
  41. package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
  42. package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
  43. package/dist/components/cfb.js +1 -1
  44. package/dist/components/channel.js +1 -1
  45. package/dist/components/chunk-2J33WTMH.js +1 -1
  46. package/dist/components/chunk-4BX2VUAB.js +1 -1
  47. package/dist/components/chunk-55IACEB6.js +1 -1
  48. package/dist/components/chunk-727SXJPM.js +1 -1
  49. package/dist/components/chunk-AQP2D5EJ.js +1 -1
  50. package/dist/components/chunk-FMBD7UC4.js +1 -1
  51. package/dist/components/chunk-ND2GUHAM.js +1 -1
  52. package/dist/components/chunk-QZHKN3VN.js +1 -1
  53. package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
  54. package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
  55. package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
  56. package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
  57. package/dist/components/cytoscape.esm.js +1 -1
  58. package/dist/components/da-DK-5WZEPLOC.js +1 -1
  59. package/dist/components/dagre-BM42HDAG.js +1 -1
  60. package/dist/components/de-DE-XR44H4JA.js +1 -1
  61. package/dist/components/defaultLocale.js +1 -1
  62. package/dist/components/diagram-2AECGRRQ.js +1 -1
  63. package/dist/components/diagram-5GNKFQAL.js +1 -1
  64. package/dist/components/diagram-KO2AKTUF.js +1 -1
  65. package/dist/components/diagram-LMA3HP47.js +1 -1
  66. package/dist/components/diagram-OG6HWLK6.js +1 -1
  67. package/dist/components/directory-open-01563666.js +1 -1
  68. package/dist/components/directory-open-4ed118d0.js +1 -1
  69. package/dist/components/docx-preview.js +2 -2
  70. package/dist/components/el-GR-BZB4AONW.js +1 -1
  71. package/dist/components/en-B4ZKOASM.js +1 -1
  72. package/dist/components/erDiagram-TEJ5UH35.js +1 -1
  73. package/dist/components/es-ES-U4NZUMDT.js +1 -1
  74. package/dist/components/eu-ES-A7QVB2H4.js +1 -1
  75. package/dist/components/eventmodeling-FCH6USID.js +1 -1
  76. package/dist/components/fa-IR-HGAKTJCU.js +1 -1
  77. package/dist/components/fflate.module.js +1 -1
  78. package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
  79. package/dist/components/file-open-002ab408.js +1 -1
  80. package/dist/components/file-open-7c801643.js +1 -1
  81. package/dist/components/file-save-3189631c.js +1 -1
  82. package/dist/components/file-save-745eba88.js +1 -1
  83. package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
  84. package/dist/components/fr-FR-RHASNOE6.js +1 -1
  85. package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
  86. package/dist/components/gitGraph-WXDBUCRP.js +1 -1
  87. package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
  88. package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
  89. package/dist/components/graph.js +1 -1
  90. package/dist/components/he-IL-6SHJWFNN.js +1 -1
  91. package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
  92. package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
  93. package/dist/components/id-ID-SAP4L64H.js +1 -1
  94. package/dist/components/image-GAAHSSAO.js +1 -1
  95. package/dist/components/image-blob-reduce.esm.js +1 -1
  96. package/dist/components/index10.js +1 -1
  97. package/dist/components/index11.js +1 -1
  98. package/dist/components/index12.js +1 -1
  99. package/dist/components/index13.js +1 -1
  100. package/dist/components/index14.js +1 -1
  101. package/dist/components/index15.js +1 -1
  102. package/dist/components/index16.js +1 -1
  103. package/dist/components/index17.js +1 -1
  104. package/dist/components/index18.js +1 -1
  105. package/dist/components/index19.js +1 -1
  106. package/dist/components/index2.js +1 -1
  107. package/dist/components/index20.js +1 -1
  108. package/dist/components/index21.js +2 -2
  109. package/dist/components/index22.js +1 -1
  110. package/dist/components/index23.js +1 -1
  111. package/dist/components/index24.js +1 -1
  112. package/dist/components/index3.js +1 -1
  113. package/dist/components/index4.js +1 -1
  114. package/dist/components/index5.js +1 -1
  115. package/dist/components/index6.js +1 -1
  116. package/dist/components/index7.js +1 -1
  117. package/dist/components/index8.js +1 -1
  118. package/dist/components/index9.js +1 -1
  119. package/dist/components/info-J43DQDTF.js +1 -1
  120. package/dist/components/infoDiagram-5YYISTIA.js +1 -1
  121. package/dist/components/init.js +1 -1
  122. package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
  123. package/dist/components/it-IT-JPQ66NNP.js +1 -1
  124. package/dist/components/ja-JP-DBVTYXUO.js +1 -1
  125. package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
  126. package/dist/components/jszip.min.js +1 -1
  127. package/dist/components/kaa-6HZHGXH3.js +1 -1
  128. package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
  129. package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
  130. package/dist/components/katex.js +1 -1
  131. package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
  132. package/dist/components/km-KH-HSX4SM5Z.js +1 -1
  133. package/dist/components/ko-KR-MTYHY66A.js +1 -1
  134. package/dist/components/ku-TR-6OUDTVRD.js +1 -1
  135. package/dist/components/layout.js +1 -1
  136. package/dist/components/libarchive.js +1 -1
  137. package/dist/components/linear.js +1 -1
  138. package/dist/components/lt-LT-XHIRWOB4.js +1 -1
  139. package/dist/components/lv-LV-5QDEKY6T.js +1 -1
  140. package/dist/components/mermaid-parser.core.js +2 -2
  141. package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
  142. package/dist/components/mr-IN-CRQNXWMA.js +1 -1
  143. package/dist/components/my-MM-5M5IBNSE.js +1 -1
  144. package/dist/components/nb-NO-T6EIAALU.js +1 -1
  145. package/dist/components/nestedRender.js +1 -1
  146. package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
  147. package/dist/components/nn-NO-6E72VCQL.js +1 -1
  148. package/dist/components/oc-FR-POXYY2M6.js +1 -1
  149. package/dist/components/ofd.js +1 -1
  150. package/dist/components/ordinal.js +1 -1
  151. package/dist/components/pa-IN-N4M65BXN.js +1 -1
  152. package/dist/components/packet-YPE3B663.js +1 -1
  153. package/dist/components/percentages-BXMCSKIN.js +1 -1
  154. package/dist/components/pica.js +1 -1
  155. package/dist/components/pie-LRSECV5Y.js +1 -1
  156. package/dist/components/pie.js +1 -1
  157. package/dist/components/pieDiagram-4H26LBE5.js +1 -1
  158. package/dist/components/pl-PL-T2D74RX3.js +1 -1
  159. package/dist/components/postal-mime.js +1 -1
  160. package/dist/components/pt-BR-5N22H2LF.js +1 -1
  161. package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
  162. package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
  163. package/dist/components/radar-GUYGQ44K.js +1 -1
  164. package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
  165. package/dist/components/ro-RO-JPDTUUEW.js +1 -1
  166. package/dist/components/rough.esm.js +1 -1
  167. package/dist/components/roundRect.js +1 -1
  168. package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
  169. package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
  170. package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
  171. package/dist/components/si-LK-N5RQ5JYF.js +1 -1
  172. package/dist/components/sk-SK-C5VTKIMK.js +1 -1
  173. package/dist/components/sl-SI-NN7IZMDC.js +1 -1
  174. package/dist/components/stateDiagram-AJRCARHV.js +1 -1
  175. package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
  176. package/dist/components/subset-shared.chunk.js +1 -1
  177. package/dist/components/subset-worker.chunk.js +1 -1
  178. package/dist/components/sv-SE-XGPEYMSR.js +1 -1
  179. package/dist/components/ta-IN-2NMHFXQM.js +1 -1
  180. package/dist/components/th-TH-HPSO5L25.js +1 -1
  181. package/dist/components/time.js +1 -1
  182. package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
  183. package/dist/components/tr-TR-DEFEU3FU.js +1 -1
  184. package/dist/components/transform.js +1 -1
  185. package/dist/components/treeView-BLDUP644.js +1 -1
  186. package/dist/components/treemap-LRROVOQU.js +1 -1
  187. package/dist/components/uk-UA-QMV73CPH.js +1 -1
  188. package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
  189. package/dist/components/vi-VN-M7AON7JQ.js +1 -1
  190. package/dist/components/wardley-L42UT6IY.js +1 -1
  191. package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
  192. package/dist/components/worker-ref.js +1 -1
  193. package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
  194. package/dist/components/zh-CN-LNUGB5OW.js +1 -1
  195. package/dist/components/zh-HK-E62DVLB3.js +1 -1
  196. package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
  197. package/dist/index.mjs +1 -1
  198. package/dist/style.css +2 -2
  199. package/package.json +1 -1
  200. package/dist/components/worker-bundle.js +0 -1
  201. package/dist/worker/pptx.worker.js +0 -1
@@ -1 +1 @@
1
- const aa=c;(function(l,m){const a8=c,n=l();while(!![]){try{const o=parseInt(a8(0x1c2))/0x1*(-parseInt(a8(0x1cd))/0x2)+-parseInt(a8(0x1b2))/0x3+-parseInt(a8(0x1be))/0x4*(parseInt(a8(0x1a9))/0x5)+parseInt(a8(0x1c3))/0x6*(parseInt(a8(0x1d7))/0x7)+-parseInt(a8(0x1ba))/0x8*(parseInt(a8(0x1ca))/0x9)+parseInt(a8(0x1c0))/0xa+-parseInt(a8(0x1a4))/0xb*(-parseInt(a8(0x1cc))/0xc);if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0x46dc8));import{C as d,L as e,F as g,B as i,a as k,S}from'./ModelViewer.js';import'vue';import'./index7.js';function c(b,d){b=b-0x19f;const e=a();let f=e[b];return f;}function a(){const aq=['parse','normalz','float64','trim','includes','11RRDpFM','float32','vertex','shift','name','350VyMkLC','read','int','length','setCustomPropertyNameMapping','getInt32','split','binary_little_endian','uint32','1727988diNkmB','toNonIndexed','type','float','obj_info','log','size','attrT','248irzJXX','setRGB','uint8','error','23300XeKnaf','faceVertexUvs','569700vFqJfd','colors','4EoQUJg','1687308uISbaZ','getUint8','short','push','getInt16','indices','faceVertexColors','47583xlvvPH','end_header','15972324nAGFna','115662iOCcUm','comments','format','attrS','decode','properties','unhandled','uvs','itemError','customPropertyMapping','7JTsZmR','attrB','elements','diffuse_green','count','diffuse_red'];a=function(){return aq;};return a();}const f=new d();class F extends e{constructor(l){super(l),this['propertyNameMapping']={},this['customPropertyMapping']={};}['load'](l,m,n,o){const p=this,q=new g(this['manager']);q['setPath'](this['path']),q['setResponseType']('arraybuffer'),q['setRequestHeader'](this['requestHeader']),q['setWithCredentials'](this['withCredentials']),q['load'](l,function(r){const a9=c;try{m(p[a9(0x19f)](r));}catch(s){o?o(s):console[a9(0x1bd)](s),p['manager'][a9(0x1d5)](l);}},n,o);}['setPropertyNameMapping'](l){this['propertyNameMapping']=l;}[aa(0x1ad)](l){const ab=aa;this[ab(0x1d6)]=l;}['parse'](l){const ap=aa;function m(U,W=0x0){const ad=c,X=/^ply([\s\S]*)end_header(\r\n|\r|\n)/;let Y='';const Z=X['exec'](U);Z!==null&&(Y=Z[0x1]);const a0={'comments':[],'elements':[],'headerLength':W,'objInfo':''},a1=Y['split'](/\r\n|\r|\n/);let a2;function a3(a4,a5){const ac=c,a6={'type':a4[0x0]};return a6[ac(0x1b4)]==='list'?(a6['name']=a4[0x3],a6['countType']=a4[0x1],a6['itemType']=a4[0x2]):a6[ac(0x1a8)]=a4[0x1],a6['name']in a5&&(a6['name']=a5[a6['name']]),a6;}for(let a4=0x0;a4<a1['length'];a4++){let a5=a1[a4];if(a5=a5[ad(0x1a2)](),a5==='')continue;const a6=a5[ad(0x1af)](/\s+/),a7=a6[ad(0x1a7)]();switch(a5=a6['join']('\x20'),a7){case'format':a0['format']=a6[0x0],a0['version']=a6[0x1];break;case'comment':a0[ad(0x1ce)]['push'](a5);break;case'element':a2!==void 0x0&&a0['elements']['push'](a2),a2={},a2['name']=a6[0x0],a2['count']=parseInt(a6[0x1]),a2['properties']=[];break;case'property':a2['properties']['push'](a3(a6,T['propertyNameMapping']));break;case ad(0x1b6):a0['objInfo']=a5;break;default:console[ad(0x1b7)](ad(0x1d3),a7,a6);}}return a2!==void 0x0&&a0['elements']['push'](a2),a0;}function o(U,W){const ae=c;switch(W){case'char':case'uchar':case ae(0x1c5):case'ushort':case'int':case'uint':case'int8':case'uint8':case'int16':case'uint16':case'int32':case ae(0x1b1):return parseInt(U);case ae(0x1b5):case'double':case'float32':case'float64':return parseFloat(U);}}function p(U,W){const af=c,X={};for(let Y=0x0;Y<U['length'];Y++){if(W['empty']())return null;if(U[Y]['type']==='list'){const Z=[],a0=o(W['next'](),U[Y]['countType']);for(let a1=0x0;a1<a0;a1++){if(W['empty']())return null;Z['push'](o(W['next'](),U[Y]['itemType']));}X[U[Y]['name']]=Z;}else X[U[Y][af(0x1a8)]]=o(W['next'](),U[Y]['type']);}return X;}function q(){const U={'indices':[],'vertices':[],'normals':[],'uvs':[],'faceVertexUvs':[],'colors':[],'faceVertexColors':[]};for(const W of Object['keys'](T['customPropertyMapping']))U[W]=[];return U;}function D(U){const ah=c,W=U['map'](Y=>Y['name']);function X(Y){const ag=c;for(let Z=0x0,a0=Y['length'];Z<a0;Z++){const a1=Y[Z];if(W[ag(0x1a3)](a1))return a1;}return null;}return{'attrX':X(['x','px','posx'])||'x','attrY':X(['y','py','posy'])||'y','attrZ':X(['z','pz','posz'])||'z','attrNX':X(['nx','normalx']),'attrNY':X(['ny','normaly']),'attrNZ':X(['nz',ah(0x1a0)]),'attrS':X(['s','u','texture_u','tx']),'attrT':X(['t','v','texture_v','ty']),'attrR':X(['red',ah(0x1dc),'r','diffuse_r']),'attrG':X(['green',ah(0x1da),'g','diffuse_g']),'attrB':X(['blue','diffuse_blue','b','diffuse_b'])};}function E(U,W){const ai=c,X=q(),Y=/end_header\s+(\S[\s\S]*\S|\S)\s*$/;let Z,a0;(a0=Y['exec'](U))!==null?Z=a0[0x1]['split'](/\s+/):Z=[];const a1=new L(Z);a7:for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=D(a3['properties']);for(let a5=0x0;a5<a3[ai(0x1db)];a5++){const a6=p(a3['properties'],a1);if(!a6)break a7;H(X,a3[ai(0x1a8)],a6,a4);}}return G(X);}function G(U){const aj=c;let W=new i();U['indices']['length']>0x0&&W['setIndex'](U[aj(0x1c8)]),W['setAttribute']('position',new k(U['vertices'],0x3)),U['normals'][aj(0x1ac)]>0x0&&W['setAttribute']('normal',new k(U['normals'],0x3)),U['uvs']['length']>0x0&&W['setAttribute']('uv',new k(U[aj(0x1d4)],0x2)),U[aj(0x1c1)]['length']>0x0&&W['setAttribute']('color',new k(U['colors'],0x3)),(U['faceVertexUvs']['length']>0x0||U['faceVertexColors'][aj(0x1ac)]>0x0)&&(W=W[aj(0x1b3)](),U['faceVertexUvs'][aj(0x1ac)]>0x0&&W['setAttribute']('uv',new k(U['faceVertexUvs'],0x2)),U[aj(0x1c9)]['length']>0x0&&W['setAttribute']('color',new k(U['faceVertexColors'],0x3)));for(const X of Object['keys'](T['customPropertyMapping']))U[X]['length']>0x0&&W['setAttribute'](X,new k(U[X],T['customPropertyMapping'][X]['length']));return W['computeBoundingSphere'](),W;}function H(U,W,X,Y){const ak=c;if(W===ak(0x1a6)){U['vertices']['push'](X[Y['attrX']],X[Y['attrY']],X[Y['attrZ']]),Y['attrNX']!==null&&Y['attrNY']!==null&&Y['attrNZ']!==null&&U['normals']['push'](X[Y['attrNX']],X[Y['attrNY']],X[Y['attrNZ']]),Y[ak(0x1d0)]!==null&&Y['attrT']!==null&&U['uvs'][ak(0x1c6)](X[Y[ak(0x1d0)]],X[Y[ak(0x1b9)]]),Y['attrR']!==null&&Y['attrG']!==null&&Y['attrB']!==null&&(f[ak(0x1bb)](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U['colors']['push'](f['r'],f['g'],f['b']));for(const Z of Object['keys'](T['customPropertyMapping']))for(const a0 of T['customPropertyMapping'][Z])U[Z]['push'](X[a0]);}else{if(W==='face'){const a1=X['vertex_indices']||X['vertex_index'],a2=X['texcoord'];a1['length']===0x3?(U['indices']['push'](a1[0x0],a1[0x1],a1[0x2]),a2&&a2['length']===0x6&&(U['faceVertexUvs']['push'](a2[0x0],a2[0x1]),U['faceVertexUvs'][ak(0x1c6)](a2[0x2],a2[0x3]),U[ak(0x1bf)]['push'](a2[0x4],a2[0x5]))):a1['length']===0x4&&(U['indices']['push'](a1[0x0],a1[0x1],a1[0x3]),U['indices'][ak(0x1c6)](a1[0x1],a1[0x2],a1[0x3])),Y['attrR']!==null&&Y['attrG']!==null&&Y[ak(0x1d8)]!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U[ak(0x1c9)]['push'](f['r'],f['g'],f['b']),U[ak(0x1c9)]['push'](f['r'],f['g'],f['b']),U['faceVertexColors']['push'](f['r'],f['g'],f['b']));}}}function J(U,W){const al=c,X={};let Y=0x0;for(let Z=0x0;Z<W['length'];Z++){const a0=W[Z],a1=a0['valueReader'];if(a0['type']==='list'){const a2=[],a3=a0['countReader'][al(0x1aa)](U+Y);Y+=a0['countReader']['size'];for(let a4=0x0;a4<a3;a4++)a2[al(0x1c6)](a1['read'](U+Y)),Y+=a1[al(0x1b8)];X[a0['name']]=a2;}else X[a0['name']]=a1[al(0x1aa)](U+Y),Y+=a1[al(0x1b8)];}return[X,Y];}function K(U,W,X){function Y(Z,a0,a1){const am=c;switch(a0){case'int8':case'char':return{'read':a2=>Z['getInt8'](a2),'size':0x1};case am(0x1bc):case'uchar':return{'read':a2=>Z[am(0x1c4)](a2),'size':0x1};case'int16':case am(0x1c5):return{'read':a2=>Z[am(0x1c7)](a2,a1),'size':0x2};case'uint16':case'ushort':return{'read':a2=>Z['getUint16'](a2,a1),'size':0x2};case'int32':case am(0x1ab):return{'read':a2=>Z[am(0x1ae)](a2,a1),'size':0x4};case'uint32':case'uint':return{'read':a2=>Z['getUint32'](a2,a1),'size':0x4};case am(0x1a5):case'float':return{'read':a2=>Z['getFloat32'](a2,a1),'size':0x4};case am(0x1a1):case'double':return{'read':a2=>Z['getFloat64'](a2,a1),'size':0x8};}}for(let Z=0x0,a0=U['length'];Z<a0;Z++){const a1=U[Z];a1['type']==='list'?(a1['countReader']=Y(W,a1['countType'],X),a1['valueReader']=Y(W,a1['itemType'],X)):a1['valueReader']=Y(W,a1['type'],X);}}function N(U,W){const an=c,X=q(),Y=W[an(0x1cf)]===an(0x1b0),Z=new DataView(U,W['headerLength']);let a0,a1=0x0;for(let a2=0x0;a2<W['elements'][an(0x1ac)];a2++){const a3=W[an(0x1d9)][a2],a4=a3[an(0x1d2)],a5=D(a4);K(a4,Z,Y);for(let a6=0x0;a6<a3['count'];a6++){a0=J(a1,a4),a1+=a0[0x1];const a7=a0[0x0];H(X,a3[an(0x1a8)],a7,a5);}}return G(X);}function O(U){const ao=c;let W=0x0,X=!0x0,Y='';const Z=[],a0=new TextDecoder()['decode'](U['subarray'](0x0,0x5)),a1=/^ply\r\n/['test'](a0);do{const a2=String['fromCharCode'](U[W++]);a2!=='\x0a'&&a2!=='\x0d'?Y+=a2:(Y===ao(0x1cb)&&(X=!0x1),Y!==''&&(Z['push'](Y),Y=''));}while(X&&W<U['length']);return a1===!0x0&&W++,{'headerText':Z['join']('\x0d')+'\x0d','headerLength':W};}let Q;const T=this;if(l instanceof ArrayBuffer){const U=new Uint8Array(l),{headerText:W,headerLength:X}=O(U),Y=m(W,X);if(Y['format']==='ascii'){const Z=new TextDecoder()[ap(0x1d1)](U);Q=E(Z,Y);}else Q=N(l,Y);}else Q=E(l,m(l));return Q;}}class L{constructor(l){this['arr']=l,this['i']=0x0;}['empty'](){return this['i']>=this['arr']['length'];}['next'](){return this['arr'][this['i']++];}}export{F as PLYLoader};
1
+ const aq=c;function c(b,d){b=b-0x90;const e=a();let f=e[b];return f;}function a(){const at=['element','elements','92553dtpzJV','attrG','error','21yKsLpn','187cSuwDo','vertices','vertex_indices','105065SFWwtp','attrNZ','getUint16','read','uchar','uint8','2838927SwUNUL','valueReader','faceVertexColors','setResponseType','itemType','attrR','6226794KszYTN','arr','setWithCredentials','size','length','list','red','push','attrZ','normaly','propertyNameMapping','diffuse_g','position','empty','uint32','setPath','250056bBLbqF','keys','8flWhcH','float','char','log','computeBoundingSphere','customPropertyMapping','diffuse_b','getUint8','36suVfAT','getInt16','int8','join','name','faceVertexUvs','14514nwtELN','properties','next','shift','posz','texture_u','countType','normals','requestHeader','posy','5311540hnpuQz','44tvTnpl','green','decode'];a=function(){return at;};return a();}(function(l,m){const a8=c,n=l();while(!![]){try{const o=parseInt(a8(0xbc))/0x1*(parseInt(a8(0xa9))/0x2)+parseInt(a8(0xb9))/0x3*(-parseInt(a8(0xb4))/0x4)+parseInt(a8(0xc0))/0x5*(parseInt(a8(0xa3))/0x6)+-parseInt(a8(0xc6))/0x7*(parseInt(a8(0x9b))/0x8)+parseInt(a8(0xcc))/0x9+parseInt(a8(0xb3))/0xa+parseInt(a8(0xbd))/0xb*(-parseInt(a8(0x99))/0xc);if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0x62397));import{C as d,L as e,F as g,B as i,a as k,S}from'./ModelViewer.js';import'vue';import'./index7.js';const f=new d();class F extends e{constructor(l){const a9=c;super(l),this[a9(0x93)]={},this['customPropertyMapping']={};}['load'](l,m,n,o){const aa=c,p=this,q=new g(this['manager']);q[aa(0x98)](this['path']),q[aa(0xc9)]('arraybuffer'),q['setRequestHeader'](this[aa(0xb1)]),q[aa(0xce)](this['withCredentials']),q['load'](l,function(r){const ab=aa;try{m(p['parse'](r));}catch(s){o?o(s):console[ab(0xbb)](s),p['manager']['itemError'](l);}},n,o);}['setPropertyNameMapping'](l){const ac=c;this[ac(0x93)]=l;}['setCustomPropertyNameMapping'](l){this['customPropertyMapping']=l;}['parse'](l){function m(U,W=0x0){const ae=c,X=/^ply([\s\S]*)end_header(\r\n|\r|\n)/;let Y='';const Z=X['exec'](U);Z!==null&&(Y=Z[0x1]);const a0={'comments':[],'elements':[],'headerLength':W,'objInfo':''},a1=Y['split'](/\r\n|\r|\n/);let a2;function a3(a4,a5){const ad=c,a6={'type':a4[0x0]};return a6['type']==='list'?(a6['name']=a4[0x3],a6[ad(0xaf)]=a4[0x1],a6[ad(0xca)]=a4[0x2]):a6['name']=a4[0x1],a6['name']in a5&&(a6[ad(0xa7)]=a5[a6['name']]),a6;}for(let a4=0x0;a4<a1['length'];a4++){let a5=a1[a4];if(a5=a5['trim'](),a5==='')continue;const a6=a5['split'](/\s+/),a7=a6[ae(0xac)]();switch(a5=a6[ae(0xa6)]('\x20'),a7){case'format':a0['format']=a6[0x0],a0['version']=a6[0x1];break;case'comment':a0['comments'][ae(0x90)](a5);break;case ae(0xb7):a2!==void 0x0&&a0['elements']['push'](a2),a2={},a2['name']=a6[0x0],a2['count']=parseInt(a6[0x1]),a2['properties']=[];break;case'property':a2['properties']['push'](a3(a6,T['propertyNameMapping']));break;case'obj_info':a0['objInfo']=a5;break;default:console[ae(0x9e)]('unhandled',a7,a6);}}return a2!==void 0x0&&a0['elements']['push'](a2),a0;}function o(U,W){switch(W){case'char':case'uchar':case'short':case'ushort':case'int':case'uint':case'int8':case'uint8':case'int16':case'uint16':case'int32':case'uint32':return parseInt(U);case'float':case'double':case'float32':case'float64':return parseFloat(U);}}function p(U,W){const af=c,X={};for(let Y=0x0;Y<U[af(0xd0)];Y++){if(W['empty']())return null;if(U[Y]['type']==='list'){const Z=[],a0=o(W['next'](),U[Y]['countType']);for(let a1=0x0;a1<a0;a1++){if(W['empty']())return null;Z['push'](o(W['next'](),U[Y][af(0xca)]));}X[U[Y]['name']]=Z;}else X[U[Y]['name']]=o(W['next'](),U[Y]['type']);}return X;}function q(){const ag=c,U={'indices':[],'vertices':[],'normals':[],'uvs':[],'faceVertexUvs':[],'colors':[],'faceVertexColors':[]};for(const W of Object[ag(0x9a)](T[ag(0xa0)]))U[W]=[];return U;}function D(U){const ah=c,W=U['map'](Y=>Y['name']);function X(Y){for(let Z=0x0,a0=Y['length'];Z<a0;Z++){const a1=Y[Z];if(W['includes'](a1))return a1;}return null;}return{'attrX':X(['x','px','posx'])||'x','attrY':X(['y','py',ah(0xb2)])||'y','attrZ':X(['z','pz',ah(0xad)])||'z','attrNX':X(['nx','normalx']),'attrNY':X(['ny',ah(0x92)]),'attrNZ':X(['nz','normalz']),'attrS':X(['s','u',ah(0xae),'tx']),'attrT':X(['t','v','texture_v','ty']),'attrR':X([ah(0xd2),'diffuse_red','r','diffuse_r']),'attrG':X([ah(0xb5),'diffuse_green','g',ah(0x94)]),'attrB':X(['blue','diffuse_blue','b',ah(0xa1)])};}function E(U,W){const ai=c,X=q(),Y=/end_header\s+(\S[\s\S]*\S|\S)\s*$/;let Z,a0;(a0=Y['exec'](U))!==null?Z=a0[0x1]['split'](/\s+/):Z=[];const a1=new L(Z);a7:for(let a2=0x0;a2<W[ai(0xb8)][ai(0xd0)];a2++){const a3=W[ai(0xb8)][a2],a4=D(a3[ai(0xaa)]);for(let a5=0x0;a5<a3['count'];a5++){const a6=p(a3[ai(0xaa)],a1);if(!a6)break a7;H(X,a3['name'],a6,a4);}}return G(X);}function G(U){const aj=c;let W=new i();U['indices']['length']>0x0&&W['setIndex'](U['indices']),W['setAttribute'](aj(0x95),new k(U[aj(0xbe)],0x3)),U['normals'][aj(0xd0)]>0x0&&W['setAttribute']('normal',new k(U[aj(0xb0)],0x3)),U['uvs'][aj(0xd0)]>0x0&&W['setAttribute']('uv',new k(U['uvs'],0x2)),U['colors'][aj(0xd0)]>0x0&&W['setAttribute']('color',new k(U['colors'],0x3)),(U['faceVertexUvs']['length']>0x0||U['faceVertexColors']['length']>0x0)&&(W=W['toNonIndexed'](),U['faceVertexUvs']['length']>0x0&&W['setAttribute']('uv',new k(U['faceVertexUvs'],0x2)),U[aj(0xc8)]['length']>0x0&&W['setAttribute']('color',new k(U['faceVertexColors'],0x3)));for(const X of Object['keys'](T['customPropertyMapping']))U[X][aj(0xd0)]>0x0&&W['setAttribute'](X,new k(U[X],T[aj(0xa0)][X]['length']));return W[aj(0x9f)](),W;}function H(U,W,X,Y){const ak=c;if(W==='vertex'){U['vertices'][ak(0x90)](X[Y['attrX']],X[Y['attrY']],X[Y[ak(0x91)]]),Y['attrNX']!==null&&Y['attrNY']!==null&&Y[ak(0xc1)]!==null&&U['normals']['push'](X[Y['attrNX']],X[Y['attrNY']],X[Y['attrNZ']]),Y['attrS']!==null&&Y['attrT']!==null&&U['uvs']['push'](X[Y['attrS']],X[Y['attrT']]),Y[ak(0xcb)]!==null&&Y[ak(0xba)]!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U['colors']['push'](f['r'],f['g'],f['b']));for(const Z of Object['keys'](T['customPropertyMapping']))for(const a0 of T['customPropertyMapping'][Z])U[Z]['push'](X[a0]);}else{if(W==='face'){const a1=X[ak(0xbf)]||X['vertex_index'],a2=X['texcoord'];a1['length']===0x3?(U['indices']['push'](a1[0x0],a1[0x1],a1[0x2]),a2&&a2['length']===0x6&&(U['faceVertexUvs']['push'](a2[0x0],a2[0x1]),U['faceVertexUvs']['push'](a2[0x2],a2[0x3]),U[ak(0xa8)]['push'](a2[0x4],a2[0x5]))):a1['length']===0x4&&(U['indices']['push'](a1[0x0],a1[0x1],a1[0x3]),U['indices']['push'](a1[0x1],a1[0x2],a1[0x3])),Y['attrR']!==null&&Y['attrG']!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y[ak(0xba)]]/0xff,X[Y['attrB']]/0xff,S),U[ak(0xc8)][ak(0x90)](f['r'],f['g'],f['b']),U['faceVertexColors']['push'](f['r'],f['g'],f['b']),U['faceVertexColors']['push'](f['r'],f['g'],f['b']));}}}function J(U,W){const al=c,X={};let Y=0x0;for(let Z=0x0;Z<W['length'];Z++){const a0=W[Z],a1=a0['valueReader'];if(a0['type']===al(0xd1)){const a2=[],a3=a0['countReader']['read'](U+Y);Y+=a0['countReader'][al(0xcf)];for(let a4=0x0;a4<a3;a4++)a2['push'](a1['read'](U+Y)),Y+=a1['size'];X[a0[al(0xa7)]]=a2;}else X[a0['name']]=a1[al(0xc3)](U+Y),Y+=a1['size'];}return[X,Y];}function K(U,W,X){const an=c;function Y(Z,a0,a1){const am=c;switch(a0){case am(0xa5):case am(0x9d):return{'read':a2=>Z['getInt8'](a2),'size':0x1};case am(0xc5):case am(0xc4):return{'read':a2=>Z[am(0xa2)](a2),'size':0x1};case'int16':case'short':return{'read':a2=>Z[am(0xa4)](a2,a1),'size':0x2};case'uint16':case'ushort':return{'read':a2=>Z[am(0xc2)](a2,a1),'size':0x2};case'int32':case'int':return{'read':a2=>Z['getInt32'](a2,a1),'size':0x4};case am(0x97):case'uint':return{'read':a2=>Z['getUint32'](a2,a1),'size':0x4};case'float32':case am(0x9c):return{'read':a2=>Z['getFloat32'](a2,a1),'size':0x4};case'float64':case'double':return{'read':a2=>Z['getFloat64'](a2,a1),'size':0x8};}}for(let Z=0x0,a0=U[an(0xd0)];Z<a0;Z++){const a1=U[Z];a1['type']==='list'?(a1['countReader']=Y(W,a1[an(0xaf)],X),a1[an(0xc7)]=Y(W,a1['itemType'],X)):a1[an(0xc7)]=Y(W,a1['type'],X);}}function N(U,W){const ao=c,X=q(),Y=W['format']==='binary_little_endian',Z=new DataView(U,W['headerLength']);let a0,a1=0x0;for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=a3[ao(0xaa)],a5=D(a4);K(a4,Z,Y);for(let a6=0x0;a6<a3['count'];a6++){a0=J(a1,a4),a1+=a0[0x1];const a7=a0[0x0];H(X,a3['name'],a7,a5);}}return G(X);}function O(U){const ap=c;let W=0x0,X=!0x0,Y='';const Z=[],a0=new TextDecoder()[ap(0xb6)](U['subarray'](0x0,0x5)),a1=/^ply\r\n/['test'](a0);do{const a2=String['fromCharCode'](U[W++]);a2!=='\x0a'&&a2!=='\x0d'?Y+=a2:(Y==='end_header'&&(X=!0x1),Y!==''&&(Z['push'](Y),Y=''));}while(X&&W<U['length']);return a1===!0x0&&W++,{'headerText':Z['join']('\x0d')+'\x0d','headerLength':W};}let Q;const T=this;if(l instanceof ArrayBuffer){const U=new Uint8Array(l),{headerText:W,headerLength:X}=O(U),Y=m(W,X);if(Y['format']==='ascii'){const Z=new TextDecoder()['decode'](U);Q=E(Z,Y);}else Q=N(l,Y);}else Q=E(l,m(l));return Q;}}class L{constructor(l){this['arr']=l,this['i']=0x0;}[aq(0x96)](){const ar=aq;return this['i']>=this['arr'][ar(0xd0)];}[aq(0xab)](){const as=aq;return this[as(0xcd)][this['i']++];}}export{F as PLYLoader};