Module 87558

1,418 characters · in 61bd1303c8f40f17.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,r,t){t.d(r,{Ay:()=>i,GT:()=>s,Mz:()=>u,fB:()=>p,qH:()=>o,rs:()=>c}),t(323874),t(14289),t(35956),t(508300),t(393431),t(532706),t(42231),t(232424),t(949626),t(767709),t(65162);var a,n=t(115943),l=t.n(n);let i=async(e,r,t)=>{var a;return{src:e,base64:e,loop:!1,loopDelay:0,duration:Math.round((a=await r.arrayBuffer(),l().decode(a)).frames.reduce((e,r)=>e+r.delay,0)),start:0,position:{x:0,y:0},zIndex:100+t,height:880,width:450,name:r.name}};var o=((a={}).THUMBNAIL="Thumbnail",a.STATIC="Static",a.REDUCED_MOTION="Reduced Motion",a);let s=(e,r)=>({name:r.name,src:URL.createObjectURL(r),base64:e}),u=(e,r)=>{if(null==e)return;let t=new FileReader;t.onload=e=>{null==e.target||"string"==typeof e.target.result&&r?.(e.target.result)},t.readAsDataURL(e)},c=e=>"PASTE THIS INTO THE DROP JSON:\n\n[\n"+e.map(e=>JSON.stringify({path:(e=>{if(null==e)return"";let r=e.split("/").pop()??e;return r.endsWith(".png.png")?r.replace(/\.png\.png$/,".png"):r})(e.name),loop:e.loop,start:e.start,duration:e.duration,loop_delay:e.loopDelay,z_index:e.zIndex,...null!=e.randomizedSources?{randomized_paths:e.randomizedSources.map(e=>e.src)}:{}},null,4).split("\n").map(e=>" ".repeat(22)+e).join("\n")).join(",\n")+"\n]",p=e=>{let r=(e=>{let[r,t]=e.split(","),a=atob(t),n=r.split(";")[0],l=new Uint8Array(a.length);for(let e=0;e<a.length;e++)l[e]=a.charCodeAt(e);return new Blob([l],{type:n})})(e);return URL.createObjectURL(r)}}