1import{Fn as e,Hr as t,er as n,nt as r}from"./src-D9GYhO4rRw.js";import{t as i}from"./handbagHandleRenderExport-Cr6nXkYCJ7.js";function a(e,t=!0){if(typeof e==`boolean`)return e;if(e&&typeof e==`object`&&`value`in e){let t=e.value;if(typeof t==`boolean`)return t}return e==null?t:!!e}function o(e,t){var n;return!a(t)&&!(e==null||(n=e.scene)==null)&&n.matte&&(e.scene.matte.width=0,e.scene.matte.length=0),e}var s=async(r,i=`render-cover`,a=!1,o=`png`)=>{try{let s=new FormData;return s.append(`file`,e(r)),await n(s.get(`file`),{rename:`${t()}.${o}`,xapi:i,scope:!1,showErrorDialog:a})}catch(e){return console.error(`ä¸ä¼ å°é¢é误: `,e),``}};function c(e){let t=async()=>await r(e);async function n(e={w:1,h:1},n={w:1920,h:1920},r=!0){let a=await t(),s={...await a.getBrayRenderData(),version:`bray`,size:n};return await i(s,a),o(s,r),s.scene.sunLight.intensity*=2.5,s.scene.envLight.envMapIntensity*=1.2,s}return{getD3:t,organizeRenderData:n}}export{c as n,s as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.