From da769a4a240557ae2702c4e1b610d9087037e57f Mon Sep 17 00:00:00 2001 From: Affolter Matias Date: Sun, 9 Jun 2024 00:44:53 +0200 Subject: [PATCH] Demo img --- client/chunk_11.min.js | 2 +- service-worker.js | 8 ++++---- src/js/utils/demoData.js | 10 ++++++++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/client/chunk_11.min.js b/client/chunk_11.min.js index 3bcd87dc..2945b271 100644 --- a/client/chunk_11.min.js +++ b/client/chunk_11.min.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{602:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s,c,u,f,g,d,h,m,p,C,E,B,w,U,S,R,v,b,y,O,Q,x,I,G,k,D,K,M,Y,V,F,N,W,H,J,P,T,j,z,L,q,Z,X,_,$,ee,te,Ae,ne,ae,ie,re,oe,le,se,ce,ue,fe,ge,de,he,me,pe,Ce,Ee,Be,we,Ue,Se,Re,ve,be,ye,Oe,Qe,xe,Ie,Ge,ke,De,Ke,Me,Ye,Ve,Fe,Ne,We,He,Je,Pe,Te,je,ze,Le,qe,Ze,Xe,_e,$e,et,tt,At,nt,at,it,rt,ot,lt,st,ct,ut,ft,gt,dt,ht,mt,pt,Ct,Et,Bt,wt,Ut,St,Rt,vt,bt,yt,Ot,Qt,xt,It,Gt,kt,Dt,Kt,Mt,Yt,Vt,Ft,Nt,Wt,Ht,Jt,Pt,Tt,jt,zt,Lt,qt,Zt;Object.defineProperty(t,"__esModule",{value:!0}),a=function(){function e(e,t){var A,n;for(A=0;A div > h1":{bottom:"-60px",opacity:0,transition:"all 700ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"&:hover > div > p":{bottom:"-40px",opacity:0,transition:"all 700ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},profileBannerImage:{width:"100%",height:"100%",background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKkAAAAhBAMAAABQGJapAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURW0tFufQZtiOLi8RD/fz5apmOV4AAAKASURBVEjHjZaLbcQgDIYtPAG0AxhnARo2qLr/TLUN5HglCieddEfy8fP7AeAg2/jxPjAzgWOQkSGnOnOGQI4Y8/1IKK9z9ASsDAKgOuPlfxkALAxhYm5UmXDXYzbmFcDe9pWqqtoTVSyLWPlCU3BR2W2lpo4ahGovk+01f7BRuWBGiKBGjT4Q5KehVDHAV0nQPy1YlUuVCpWaWaiP0GarDxuqYeVfpxMo0Wq7jo+hKtTQUaedmbf6EW+E+rztmcqVasEehoiNshfFYkbYBGb3W6lsVNJ98kxVDzSaJB6kgXolAW61itQYhGpJtMTWGzayzACmB61TCqjUSl0dKGI9B2B1dgXgA5UrdY4WNrFlQVhAiTbeqq1RUoCtOFcHjuaBUbGoPW61Vq8TSvnJ9qNRaaa6gNUDjWRNZveLBk+rAZfW0zaolaBU3mjNkluSWmDJlT9az5tQoVJjLMbpiwvVMD9cCqxRq7547KmHUjmWHWrHcLztGmesPbHfr/sO2/iLa0r1lephoA6vWJNxY2rdaE1Fa6MGMYDvO5xk3ajt2dfLVnJ8p3XXndMMw0/BnpYC3MZFTY8ddNXpOiElX1k7AXPgt1pTnNc0EWlo2qzVZWCmdy30nNc9j64OSnsNsSTBeyrMHpVaxa696hH7norbFjAeOdKzokot58EL6qVw9J1ppIZGjXop2FDTXusxPLBS7eDmUgevD7z8NSYW9yta1653n3LL2CdWmhPt/B12cw7GSrgKNU7UOcl5nHHff0NzSWpB6oqrUgOvt4wuGn66WfVa0ZbtbomNKodzKYIbql6t6N5XVCz24WpU32prV6t6D9wcE62YaKkSo2rMNA3oHyXswn26lJknAAAAAElFTkSuQmCC)",backgroundSize:"cover",backgroundPosition:"50% 75%"},profileBannerOverlay:{position:"absolute",borderRadius:"4px",top:0,let:0,width:"100%",height:"100%",transition:"filter 300ms cubic-bezier(0.4, 0, 0.2, 1) 50ms",filter:"opacity(1)",background:"linear-gradient(to top, #000000a1 5%, #00000085 25%, #00000045 50%, #ffffff00 75%)","@media (max-width: 800px)":{background:"linear-gradient(to bottom, #000000a1 5%, #00000085 25%, #00000045 50%, #ffffff00 75%)"},"&:hover, &:active":{filter:"opacity(0)",transition:"filter 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms"}},"@global":{"@keyframes ripple":{"0%":{transform:"scale(1)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}},"@keyframes float":{"0%":{paddingBottom:"0px"},"50%":{paddingBottom:"5px"},"100%":{paddingBottom:"0px"}},"@keyframes sparkle":{"0%":{boxShadow:"0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff1200, 0rem 0rem 0 0rem #ff6f6f, 0rem 0rem 0 0rem rgba(0, 0, 0, 0.26), 0rem 0rem 0 0rem #ff3073, 0rem 0rem 0 0rem #ff80b5, 0rem 0rem 0 0rem #ff8097, 0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff9280, 0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff3131, 0rem 0rem 0 0rem #ff5151, 0rem 0rem 0 0rem #ff0958, 0rem 0rem 0 0rem #ff8080"},"75%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ff8080, -0.32476rem -2.625rem 0 -0.1875rem #ffed80, 2.54798rem -1.61656rem 0 -0.1875rem #ffed80, 1.84982rem -1.89057rem 0 -0.1875rem #a4ff80, 2.85252rem 0.98418rem 0 -0.1875rem #a4ff80, 2.63145rem 0.2675rem 0 -0.1875rem #80ffc8, 1.00905rem 2.84381rem 0 -0.1875rem #80ffc8, 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff, -1.59425rem 2.562rem 0 -0.1875rem #80c8ff, -0.84635rem 2.50595rem 0 -0.1875rem #a480ff, -2.99705rem 0.35095rem 0 -0.1875rem #a480ff, -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed, -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed, -2.25479rem -1.38275rem 0 -0.1875rem #ff8080"},"100%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ff808000, -0.32476rem -2.625rem 0 -0.1875rem #ffed8000, 2.54798rem -1.61656rem 0 -0.1875rem #ffed8000, 1.84982rem -1.89057rem 0 -0.1875rem #a4ff8000, 2.85252rem 0.98418rem 0 -0.1875rem #a4ff8000, 2.63145rem 0.2675rem 0 -0.1875rem #80ffc800, 1.00905rem 2.84381rem 0 -0.1875rem #80ffc800, 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff00, -1.59425rem 2.562rem 0 -0.1875rem #80c8ff00, -0.84635rem 2.50595rem 0 -0.1875rem #a480ff00, -2.99705rem 0.35095rem 0 -0.1875rem #a480ff00, -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed00, -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed00, -2.25479rem -1.38275rem 0 -0.1875rem #ff808000"}},"@keyframes sparklewhite":{"0%":{boxShadow:"0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem rgba(0, 0, 0, 0.26), 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff"},"75%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ffffff, -0.32476rem -2.625rem 0 -0.1875rem #ffffff, 2.54798rem -1.61656rem 0 -0.1875rem #ffffff, 1.84982rem -1.89057rem 0 -0.1875rem #ffffff, 2.85252rem 0.98418rem 0 -0.1875rem #ffffff, 2.63145rem 0.2675rem 0 -0.1875rem #ffffff, 1.00905rem 2.84381rem 0 -0.1875rem #ffffff, 1.43154rem 2.22414rem 0 -0.1875rem #ffffff, -1.59425rem 2.562rem 0 -0.1875rem #ffffff, -0.84635rem 2.50595rem 0 -0.1875rem #ffffff, -2.99705rem 0.35095rem 0 -0.1875rem #ffffff, -2.48692rem 0.90073rem 0 -0.1875rem #ffffff, -2.14301rem -2.12438rem 0 -0.1875rem #ffffff, -2.25479rem -1.38275rem 0 -0.1875rem #ff8080"},"100%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ffffff00, -0.32476rem -2.625rem 0 -0.1875rem #ffffff00, 2.54798rem -1.61656rem 0 -0.1875rem #ffffff00, 1.84982rem -1.89057rem 0 -0.1875rem #ffffff00, 2.85252rem 0.98418rem 0 -0.1875rem #ffffff00, 2.63145rem 0.2675rem 0 -0.1875rem #ffffff00, 1.00905rem 2.84381rem 0 -0.1875rem #ffffff00, 1.43154rem 2.22414rem 0 -0.1875rem #ffffff00, -1.59425rem 2.562rem 0 -0.1875rem #ffffff00, -0.84635rem 2.50595rem 0 -0.1875rem #ffffff00, -2.99705rem 0.35095rem 0 -0.1875rem #ffffff, -2.48692rem 0.90073rem 0 -0.1875rem #ffffff00, -2.14301rem -2.12438rem 0 -0.1875rem #ffffff00, -2.25479rem -1.38275rem 0 -0.1875rem #ffffff00"}}},profileImage:{cursor:"pointer",height:224,width:224,background:"url(data:image/png;base64,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)",borderRadius:"50%",position:"absolute",left:154,top:224,margin:0,transform:"translate(-50%, -50%) scale(1)",backgroundPosition:"50% 50%",backgroundSize:"cover",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$float 1000ms infinite cubic-bezier(0.4, 0, 0.2, 1) 0ms",transformOrigin:"center",zIndex:1,"&:hover":{boxShadow:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",transform:"translate(-50%, -50%) scale(1.05)"},"& .MuiBadge-badge":{backgroundColor:"#51d106",color:"#ffffff",boxShadow:"0 0 2px 4px #51d106",width:36,height:36,borderRadius:"50%",fontWeight:"bold",fontSize:"18px","&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 0.7s infinite cubic-bezier(0.4, 0, 0.2, 1)",border:"2px solid #51d10699",content:'""'},"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 1.7s infinite cubic-bezier(0.4, 0, 0.2, 1)",border:"1px solid #51d106ee",content:'""'}},"@media (max-width: 800px)":{width:192,height:192,left:128,top:192,"& .MuiBadge-badge":{width:32,height:32,fontSize:"16px"}},"@media (max-width: 532px)":{width:156,height:156,left:96,top:168}},profileInformation:{padding:"156px 16px 24px 16px",margin:0,width:"100%",position:"relative",zIndex:0},profileInformationOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},profileInformationButtons:{position:"absolute",right:0,top:0},followButton:{margin:"16px 4px 8px 8px"},linkButton:{margin:"16px 4px 8px 4px"},drawerHashtag:{"& .MuiDrawer-paper":{width:256,background:"white",contain:"style size paint layout",boxShadow:"-2px 0px 4px 0px rgb(0 0 0 / 20%), -4px 0px 5px 0px rgb(0 0 0 / 14%), -6px 0px 10px 0px rgb(0 0 0 / 12%)",maxHeight:"100%",height:"100%"}},settingButton:{margin:"16px 16px 8px 4px",transform:"rotate(0deg)",transition:"transform 720ms linear 0ms","&:hover":{transform:"rotate(-72deg)"},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"9px !important"}}},profileName:{color:"white",pointerEvents:"none",margin:0,left:297,position:"absolute",fontSize:"48px",bottom:40,transition:"all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:1,"@media (max-width: 800px)":{left:"32px",top:"16px",bottom:"inherit"}},profileDescription:{color:"white",pointerEvents:"none",left:305,margin:"12px 0px 12px 0px",position:"absolute",fontSize:"18px",bottom:0,opacity:1,transition:"all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:555,"@media (max-width: 800px)":{display:"none"}},profileCards:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileHistory:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileFollowers:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileFollowing:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileWallet:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileComments:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},mediaCard:{contain:"paint style layout",cursor:"pointer",width:"100%",maxWidth:"100vw",position:"relative",marginBottom:24,borderRadius:"4px",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)","&:hover":{boxShadow:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)"}},media:{width:"100%",height:"100%",borderRadius:"4px",position:"relative"},mediaOverlay:{overflow:"hidden","& > .top":{position:"absolute",textAlign:"left",left:4,"& > button, & > button:nth-child(1), & > button:nth-child(2), & > button:nth-child(3), ":{opacity:0,marginTop:-40,padding:8},"& > button:nth-child(1)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 75ms"},"& > button:nth-child(2)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 50ms"},"& > button:nth-child(3)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 25ms"},"& > button":{transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},"& > .bottom":{bottom:"-60px",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:0},position:"absolute",top:0,width:"100%",height:"100%",borderRadius:"4px",transition:"filter 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",background:"linear-gradient(to top, #000000cc 25px, #000000b8 50px, #00000096 75px, #0000001a 125px, #00000000 185px), linear-gradient(to bottom, #000000cc 20px, #000000b8 35px, #00000096 45px, #0000001a 75px, #00000000 105px)",filter:"opacity(0)","&:hover, &:active":{filter:"opacity(1)","& > .top":{textAlign:"left","& > button, & > button:nth-child(1), & > button:nth-child(2), & > button:nth-child(3), ":{marginTop:0,opacity:1},"& > button:nth-child(1)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 25ms"},"& > button:nth-child(2)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 50ms"},"& > button:nth-child(3)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 75ms"},"& > button":{transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},"& > .bottom":{bottom:0,opacity:1}}},mediaTitle:{position:"absolute",margin:0,bottom:0,left:0,color:"white",textAlign:"left"},mediaTitleAuthor:{fontSize:"16px",fontWeight:"inherit",margin:"4px 0px 12px 12px",display:"block","@media (max-width: 800px)":{fontSize:"14px"}},mediaTitleName:{fontSize:"21px",fontWeight:"bold",margin:"0px 0px 0px 12px",display:"block","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},profileTabs:{position:"absolute",left:0,bottom:0,margin:0,padding:0,width:"100%",contain:"paint size style layout",animationFillMode:"both",animationName:"$menu",animationDuration:"175ms",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",animationDirection:"alternate",animationIterationCount:"1",animationDelay:"0ms",height:72,display:"grid","& .MuiTabs-scroller":{overflowY:"hidden"},"& .MuiTab-root":{minWidth:"auto",flex:"auto"},"& .MuiTabs-indicator":{backgroundColor:"#050c4c"}},profileTab:{"@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"10px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"9px !important"}},backgroundColor:"#fafafa",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .275s","&.Mui-selected":{fontWeight:"bold",backgroundColor:"#dfddf2",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .175s",borderRadius:"4px 4px 0px 0px"},"&:hover":{fontWeight:"bold",backgroundColor:"#e8e6f5",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .175s",borderRadius:"6px 6px 0px 0px"},"&:first-child":{borderRadius:"0px 4px 0px 0px"},"&:last-child":{borderRadius:"4px 0px 0px 0px"},"& .MuiTab-wrapper":{fontSize:"11px"},"& .MuiTab-wrapper svg":{width:32,height:32,contentVisibility:"auto"}},mediaMoney:{position:"absolute",margin:12,bottom:0,right:0,color:"white",textAlign:"right","& svg":{height:24,width:24,marginBottom:-4}},mediaPriceUnavailable:{color:"#ff3333",fontSize:"21px",fontWeight:"bold","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},mediaPriceAvailable:{fontSize:"21px",fontWeight:"bold",color:"#66ff33","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},mediaValue:{fontSize:"16px",fontWeight:"inherit",margin:"0px",display:"block",textDecoration:"none","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"14px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"12px !important"}}},tabSort:{"& .MuiTab-root":{minWidth:64}},votes:{position:"absolute",margin:0,top:8,left:8,"& .MuiIconButton-root":{color:"#fff","&:hover::after":{content:'""',position:"absolute",marginTop:8,marginRight:8,width:8,height:8,borderRadius:"100%",transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$sparklewhite 750ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animationFillMode:"both"}}},walletCards:{width:"100%",display:"flex",textAlign:"left","@media (max-width: 1000px)":{display:"initial"}},favoriteTrue:{position:"absolute",color:"#ff1200",margin:0,width:"48px !important",top:16,right:"12px !important",left:"auto !important",borderRadius:"100%",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&::after":{content:'""',position:"absolute",top:20,right:20,width:8,height:8,borderRadius:"100%",transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$sparkle 750ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animationFillMode:"both"}},favoriteFalse:{position:"absolute",color:"#ffffff",margin:0,width:"48px !important",top:16,right:"12px !important",left:"auto !important",borderRadius:"100%",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},iconCount:{color:"white",marginLeft:4,fontSize:"16px"},location:{color:"#05009d",position:"absolute",top:"72px",right:"24px"},actions:{position:"fixed",bottom:16,right:16,"& .MuiButtonBase-root.MuiFab-root":{borderRadius:8}},actionButton:{borderRadius:4,"&.MuiSpeedDialAction-fab, &.MuiSpeedDialAction-fab .MuiSvgIcon-root":{color:"white",width:48,height:48,padding:14}},timeLine:{"& .MuiTimelineOppositeContent-root.MuiTimelineItem-oppositeContent":{maxWidth:96}},timeLineTime:{fontWeight:"bold"},timeLineDescription:{color:e.palette.primary,textAlign:"left"},drawerPaper:{position:"absolute","@media (max-width: 800px)":{width:"100% !important"},width:384,textAlign:"left","& h1":{display:"block",margin:"12px auto"},"& h2":{display:"block",margin:"8px 16px"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff","&.MuiBackdrop-root":{backgroundColor:"rgba(1,2,18,0.92)"},"& .MuiIconButton-root":{color:"white"}},leftFromDrawer:{position:"absolute",left:0,top:0,display:"block",height:"100%",width:"100% !important",pointerEvents:"none",overflow:"hidden",touchAction:"none",userSelect:"none",perspective:200},fullCard:{borderRadius:8},colors:{flexFlow:"wrap",placeContent:"stretch flex-start",margin:"8px 14px 8px 14px"},drawer:{},list:{"& .MuiListItem-container":{lineHeight:32,height:32},"& .MuiListItemText-root span":{fontWeight:"bold"},"& .MuiListItemSecondaryAction-root":{color:e.palette.secondary.main},"& svg":{height:"24px",verticalAlign:"middle"}},titleWallet:{color:"#43e",fontSize:14,marginRight:72,marginBottom:8},tooltip:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:14}}},Zt=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){var e;n.canvas_pos.set_notifiers(n.requestForceUpdate,n.closeMediaCard),n.canvas_pos.set_boolean_move_on_click(!0),n.canvas_pos.set_perspective(!0),n.canvas_pos.init_speed_interval(),Qt.default.jamy_update("flirty"),window.addEventListener("resize",(function(){n.setRefFromLeft()})),(e=document.createElement("style")).innerHTML='.Canvas-Wrapper-Overflow.Shown {\n animation-name: canvanimation;\n transform-origin: center center !important;\n animation-fill-mode: both;\n animation-duration: 325ms;\n animation-delay: 25ms;\n animation-timing-function: linear;\n }\n .Canvas-Wrapper-Overflow .Canvas-Wrapper::after {\n content: "";\n position: fixed;\n width: 100%;\n background: linear-gradient(to top, #ffffff00 0%, #1700ff14 14%, #1700ff57 21%, transparent);\n height: 50%;\n left: 0;\n z-index: 2;\n top: 100%;\n }\n .Canvas-Wrapper-Overflow.Shown .Canvas-Wrapper::after {\n animation-name: canvanimationscan;\n animation-fill-mode: both;\n animation-duration: 675ms;\n animation-delay: 525ms;\n animation-timing-function: linear;\n }\n .Canvas-Wrapper-Overflow.Not-Shown {\n animation-name: canvanimation;\n transform-origin: center center !important;\n animation-fill-mode: both;\n animation-duration: 300ms;\n animation-delay: 50ms;\n animation-timing-function: linear;\n animation-direction: reverse;\n }\n @keyframes canvanimation { \n 0% { transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.0); will-change: transform, filter; }\n 4.3% { transform: matrix3d(0.12, 0, 0, 0, 0, 0.271, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.3); will-change: transform, filter; }\n 8.61% { transform: matrix3d(.64, 0, 0, 0, 0, .818, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.7); will-change: transform, filter; }\n 12.91% { transform: matrix3d(1.16, 0, 0, 0, 0, 1.078, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.9); will-change: transform, filter; }\n 17.22% { transform: matrix3d(1.25, 0, 0, 0, 0, 1.11, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 28.33% { transform: matrix3d(1.04, 0, 0, 0, 0, 1.031, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 39.44% { transform: matrix3d(.98, 0, 0, 0, 0, .991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 61.66% { transform: matrix3d(1.01, 0, 0, 0, 0, 1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 83.98% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: initial; } \n }\n @keyframes canvanimationscan { \n 0% { top: -50%; mix-blend-mode: screen; }\n 100% { top: 100%; mix-blend-mode: none; } \n }',e.id="media-style",document.head.appendChild(e),window.addEventListener("resize",n.updateDimension),n.setst4te({_h_svg:(0,Et.createLocalBlob)((0,St.default)(r.default.createElement(wt.default,{color:"rgba(1,17,255,0.1)"}))),_h_svg_size:"100px 115px"},(function(){n.forceUpdate((function(){n.updateDimension()}))})),setTimeout((function(){n.forceUpdate((function(){n.setRefFromLeft(null)}))}),1e3)},n.goToEditor=function(){Qt.default.load_with("")},n.updateDimension=function(){var e,t,A,a;n.setRefFromLeft(null),e=document.documentElement,t=document.body||document.getElementsByTagName("body")[0],A=window.innerWidth||e.clientWidth||t.clientWidth,window.innerHeight||e.clientHeight||t.clientHeight,a=!!(A<1280),n.setst4te({isMobile:a})},n.handleTabChange=function(e,t){n.setst4te({tabValue:t},(function(){n.forceUpdate()}))},n.handleTabTagChange=function(e,t){n.setst4te({tabTagValue:t},(function(){n.forceUpdate()}))},n.handleMainTabChange=function(e,t){n.setst4te({mainTabValue:t},(function(){n.forceUpdate()}))},n.toggleFavoriteAtIndex=function(e){var t=n.st4te.imagesProfile;t[e].favorite=!t[e].favorite,n.setst4te({imagesProfile:t},(function(){n.forceUpdate()}))},n.requestForceUpdate=function(){n.forceUpdate()},n.renderMedia=function(e,t,a){var i;switch(n.setst4te({renderingMenuAnchorEl:null},(function(){n.forceUpdate()})),URL.revokeObjectURL(n.st4te.src),i=function(e){var t,A,a=document.createElement("canvas");a.width=e.width,a.height=e.height,(t=a.getContext("2d")).putImageData(e,0,0),A=t.canvas.toDataURL("image/png"),n.setst4te({src:A,type:"png"},(function(){n.forceUpdate()}))},e){case"pixelated":Qt.default.trigger_voice("vision_deactivated"),n.setst4te({src:n.st4te.openedMediaData.src,type:"png"},(function(){n.forceUpdate()}));break;case"crt":(0,yt.default)((function(){return A.e(3).then(A.t.bind(null,719,7))})).then((function(e){(0,e.crt)(t,960/Math.sqrt(t.width*t.height)|0,vt.default).then(i)}));break;case"hex":Qt.default.trigger_loading_update(0),(0,yt.default)((function(){return A.e(6).then(A.t.bind(null,720,7))})).then((function(e){e.hexagonrender(t,2974.451209887296/Math.sqrt(t.width*t.height)|0,!1).then((function(e){n.setst4te({src:e,type:"png"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(66),(0,yt.default)((function(){return A.e(0).then(A.t.bind(null,656,7))})).then((function(t){(0,t.png_quant)(e,30,100,3,vt.default).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"png"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("enhanced")}))}))}))}))}))}));break;case"svg":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),(0,yt.default)((function(){return A.e(4).then(A.t.bind(null,721,7))})).then((function(e){e.default(t,6,vt.default).then((function(e){(0,Gt.createSVG)(e).then((function(e){n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(75),Qt.default.trigger_voice("vision_activated"),n.forceUpdate();var t=new FileReader;t.onload=function(e){var t=e.target.result;(0,yt.default)((function(){return A.e(2).then(A.bind(null,689))})).then((function(e){var A=e.optimize;t=A(t,{path:"path-to.svg",multipass:!0,mergePaths:!0,mergeStyles:!0,collapseGroups:!0,reusePaths:!0,plugin:["multipass","mergePaths","collapseGroups","reusePaths","mergeStyles"]}).data,URL.revokeObjectURL(n.st4te.src),n.setst4te({src:"data:image/svg+xml;base64,"+window.btoa(t),type:"svg"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("enhanced")}))}))},fetch(e).then((function(e){e.blob().then((function(e){t.readAsText(e)}))}))}))}))}))}));break;case"tree":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),new rt.default({shape:"circle"}).loadImage(t).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("vision_activated"),n.forceUpdate()}))}));break;case"poly":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),new lt.default({size:2974.451209887296/Math.sqrt(a.width*a.height)|0}).processImage(t,!0).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("vision_activated"),n.forceUpdate()}))}))}},n.openMediaCard=function(e){Qt.default.trigger_sfx("navigation_selection-complete-celebration"),n.setst4te({openedMediaData:e,src:e.src},(function(){n.forceUpdate(),(0,at.getImageDataFromBase64)(e.src).then((function(e){n.canvas_pos.set_sizes(e.width,e.height),n.canvas_pos.set_current_scale_default(),n.setst4te({openedMediaDataData:e},(function(){n.forceUpdate()}))}))}))},n.closeMediaCard=function(){URL.revokeObjectURL(n.st4te.src),Qt.default.trigger_sfx("st4te-change_confirm_down"),n.setst4te({openedMediaData:null},(function(){n.forceUpdate()}))},n.setRefFromLeft=function(e){null==e&&null==n.st4te.refleft||n.setst4te({refleft:e||n.st4te.refleft},(function(){var t=window.innerWidth,A=n.st4te.refleft.getBoundingClientRect(),a=t>800?A.width-384:A.width,i=A.height||0,r=A.left||0,o=A.top||0;n.canvas_pos.set_canvas_container(o,r,i,a),e&&(e.addEventListener("wheel",n._canvas_pos_handle_wheel,{passive:!1}),e.addEventListener("pointerdown",n._canvas_pos_handle_pointer_down,{passive:!1}),e.addEventListener("pointermove",n._canvas_pos_handle_pointer_move,{passive:!1}),e.addEventListener("pointerup",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointercancel",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerout",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerleave",n._canvas_pos_handle_pointer_up,{passive:!1}))}))},n._canvas_pos_handle_wheel=function(e){n.canvas_pos.handle_wheel(e)},n._canvas_pos_handle_pointer_down=function(e){n.canvas_pos.handle_pointer_down(e)},n._canvas_pos_handle_pointer_move=function(e){n.canvas_pos.handle_pointer_move(e)},n._canvas_pos_handle_pointer_up=function(e){n.canvas_pos.handle_pointer_up(e)},n.edit=function(e){Qt.default.load_with(e)},n.toggleDrawer=function(){n.setst4te({openedDrawer:!n.st4te.openedDrawer})},n.toggleHashtagDrawer=function(){n.setst4te({drawerHashtagOpen:!n.st4te.drawerHashtagOpen})},n.toggleFavoriteTag=function(e){var t,A,a=n.st4te.categories;for(t=0;t800?400:14,top:16}},r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.download(O,B.name,"sophia.julio",x)}},r.default.createElement(Ge.default,null,r.default.createElement(mt.default,null))),r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.edit(B.src)}},r.default.createElement(Ge.default,null,r.default.createElement(De.default,null))),r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.closeMediaCard()}},r.default.createElement(Ge.default,null,r.default.createElement(Oe.default,null)))),r.default.createElement("div",{style:{position:"absolute",bottom:16,left:16}},r.default.createElement(u.default,{title:"14 Reposts"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Re.default,null)))),r.default.createElement(u.default,{title:"88 UpVotes"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Ue.default,null)))),r.default.createElement(u.default,{title:"0 DownVote"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Be.default,null))))),r.default.createElement("div",{style:{position:"absolute",bottom:16,right:16,display:window.innerWidth>=800?"none":"block"}},r.default.createElement(k.default,{style:{color:"white",fontWeight:"bold"},onClick:function(){e.toggleDrawer(B.src)}},"Details"))),B&&U&&r.default.createElement(nt.default,{className:A.drawer,variant:"persistent",anchor:window.innerWidth>=800?"right":"bottom",open:D,classes:{paper:A.drawerPaper}},r.default.createElement(K.default,{onClick:this.toggleDrawer,style:{display:window.innerWidth>=800?"none":"block",color:"#060e23",width:64,height:64,position:"fixed",right:4,top:4}},r.default.createElement(Oe.default,null)),r.default.createElement("h1",null,B.name),r.default.createElement("h2",null,(U.colors||[]).length," Colors"),r.default.createElement("div",{className:A.colors},(U.colors||[]).map((function(t,A){return r.default.createElement(u.default,{title:t,key:A},r.default.createElement(K.default,{disableRipple:!0,onClick:function(A){e.props.onClick(A,t)},style:{background:t,width:24,height:24,borderRadius:"2px",margin:4}}))}))),r.default.createElement("h2",null,"Description"),r.default.createElement("p",{style:{textAlign:"justify",margin:"8px 16px"}},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),r.default.createElement("h2",null,"st4te"),r.default.createElement(ct.default,{dense:!0,className:A.list},r.default.createElement(S.default,{divider:!0},r.default.createElement(dt.default,{primary:"Created:"}),r.default.createElement(ft.default,null,"Just now")),r.default.createElement(S.default,{divider:!0},r.default.createElement(dt.default,{primary:"Author:"}),r.default.createElement(ft.default,null,"@sophia.julio")),r.default.createElement(S.default,{divider:!0},r.default.createElement(dt.default,{primary:"Status:"}),r.default.createElement(ft.default,{style:{color:B.sold?"red":"green"}},B.sold?"Sold":"For sale!")),r.default.createElement(S.default,{divider:!0},r.default.createElement(dt.default,{primary:"Price:"}),r.default.createElement(ft.default,null,B.price," ",B.money)),r.default.createElement(S.default,{divider:!0},r.default.createElement(dt.default,{primary:"Dimension:"}),r.default.createElement(ft.default,null,U.width,"x",U.height))),r.default.createElement(k.default,{style:{fontWeight:"bold",margin:"8px 16px 32px 16px",backgroundColor:"rgb(0 28 255 / 25%)",color:"#001238",width:"calc(100% - 32px)"},color:"primary"},"BUY NOW"))))}}]),t}(r.default.PureComponent),t.default=(0,s.default)(qt)(Zt)},651:function(e,t,A){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;A>>0,this.rgba_[3]=e>>24&255,this.rgba_[2]=e>>16&255,this.rgba_[1]=e>>8&255,this.rgba_[0]=255&e}},{key:"r",get:function(){return this.rgba_[0]}},{key:"g",get:function(){return this.rgba_[1]}},{key:"b",get:function(){return this.rgba_[2]}},{key:"a",get:function(){return this.rgba_[3]}},{key:"rgba",get:function(){return this.rgba_.subarray(0,4)}},{key:"uint32",get:function(){return(this.r<<24|this.g<<16|this.b<<8|this.a)>>>0}}],[{key:"createUint32",value:function(t){return new e(new Uint8Array(Uint32Array.of((0|t)>>>0).buffer))}}]),e}(),t.default=a},652:function(e,t,A){"use strict";var n,a,i,r,o;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;A>>0,A[1]=(A[1]+t[1]|0)>>>0,A[2]=(A[2]+t[2]|0)>>>0,A[3]=(A[3]+t[3]|0)>>>0})),t=e.length,new i.default(Uint8Array.of(A[0]/t|0,A[1]/t|0,A[2]/t|0,A[3]/t|0))}}]),e}(),t.default=r},654:function(e,t,A){"use strict";var n,a=A(653),i=A(647),r=(0,i.SIMDopeCreateConfAdd)({create:{new_of:!0},properties:{uint32:!0,laba:!0,rgbaon4bits:!0,rgbaon6bits:!0,rgbaon8bits:!0,rgbaon12bits:!0,rgbaon16bits:!0,skin:!0},methods:{simplify:!0,get_new_element:!0,get_use_element:!0,set_tail:!0,is_dark:!0,blend_first_with:!0,blend_first_with_tails:!0,blend_all:!0,manhattan_match_with:!0,copy:!0}}),o=Math.fround,l=o(1),s=o(.777),c=(0,i.SIMDopeCreate)(r),u=c.simdops,f=c.Color,g=c.Colors,d=(u.minus_int,u.int_not_equal,u.plus_int,u.plus_uint,u.minus_uint,u.multiply_int,u.multiply_uint,u.multiply_uint_4),h=(u.divide_uint,u.clamp_uint8,u.clamp_uint32,u.int_equal,u.uint_less,u.int_less,u.int_greater_equal,u.uint_not_equal,u.uint_less_equal,u.min_uint,function e(t){if(t=t||{},!(this instanceof e))return new e(t);t.pxl_colors=t.pxl_colors||new Uint32Array(0),t.pxls=t.pxls||new Uint32Array(0),this.new_pxls_="buffer"in t.pxls?new Uint32Array(t.pxls.buffer):Uint32Array.from(t.pxls),this.new_pxl_colors_="buffer"in t.pxl_colors?new g(t.pxl_colors.buffer):new g(Uint32Array.from(t.pxl_colors).buffer),this.original_pxls_=this.new_pxls_.slice(0,this.new_pxls_.length),this.original_pxl_colors_=this.new_pxl_colors_.slice_uint32(0,this.new_pxl_colors_.length);var A=0|this.new_pxl_colors_.length;this.new_pxl_colors_is_skin_mask_=new a.SetFixed(0|A),this.set_new_pxl_skin_mask(),this.best_color_number_=t.number_of_color,this.max_cluster_=A>65536?65537:A>16384?4097:A>8192?257:A>512?17:1,this.index_clusters_=Array(this.max_cluster_),this.length_clusters_=new Uint32Array(this.max_cluster_),this.pxl_colors_usage_=new Uint32Array(A),this.all_index_clusters_=new Uint32Array(A),this.clean_pxl_colors_=new Uint32Array(A),this.clean_pxl_colors_lookup_={},this.is_skin_ops_=0,this.match_ops_=0,this.blend_ops_=0,this.remove_duplicate_ops_=0,this.simplify_ops_=0,this.classify_on_x_bits_ops_=0});Object.defineProperty(h.prototype,"set_is_skin_ops",{get:function(){return function(e){this.is_skin_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_match_ops",{get:function(){return function(e){this.match_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_blend_ops",{get:function(){return function(e){this.blend_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_remove_duplicate_ops",{get:function(){return function(e){this.remove_duplicate_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_simplify_ops",{get:function(){return function(e){this.simplify_ops_=e}}}),Object.defineProperty(h.prototype,"set_classify_on_x_bits_ops",{get:function(){return function(e){this.classify_on_x_bits_ops_=e}}}),Object.defineProperty(h.prototype,"get_is_skin_ops",{get:function(){return function(){return 0|this.is_skin_ops_}}}),Object.defineProperty(h.prototype,"get_match_ops",{get:function(){return function(){return 0|this.match_ops_}}}),Object.defineProperty(h.prototype,"get_blend_ops",{get:function(){return function(){return 0|this.blend_ops_}}}),Object.defineProperty(h.prototype,"get_remove_duplicate_ops",{get:function(){return function(){return 0|this.remove_duplicate_ops_}}}),Object.defineProperty(h.prototype,"get_simplify_ops",{get:function(){return function(){return this.simplify_ops_}}}),Object.defineProperty(h.prototype,"get_classify_on_x_bits_ops",{get:function(){return function(){return this.classify_on_x_bits_ops_}}}),Object.defineProperty(h.prototype,"reset_deduplicate",{get:function(){return function(e){this.clean_pxl_colors_lookup_={},this.pxl_colors_usage_.fill(0,0,0|e),this.clean_pxl_colors_.fill(0,0,0|e)}}}),Object.defineProperty(h.prototype,"index_of_color_within_cleaned",{get:function(){return function(e){return(0|this.clean_pxl_colors_lookup_[(0|e)>>>0])-1|0}}}),Object.defineProperty(h.prototype,"set_cleaned_pxl_colors",{get:function(){return function(e,t){this.clean_pxl_colors_[(0|e)>>>0]=(0|t)>>>0,this.clean_pxl_colors_lookup_[(0|t)>>>0]=(e+1|0)>>>0}}}),Object.defineProperty(h.prototype,"increase_color_usage",{get:function(){return function(e){this.pxl_colors_usage_[(0|e)>>>0]=(this.pxl_colors_usage_[(0|e)>>>0]+1|0)>>>0}}}),Object.defineProperty(h.prototype,"set_new_pxls",{get:function(){return function(e,t){this.new_pxls_[(0|e)>>>0]=(0|t)>>>0}}}),Object.defineProperty(h.prototype,"set_new_pxl_colors",{get:function(){return function(e){this.new_pxl_colors_=new g(this.clean_pxl_colors_.buffer.slice(0,d(0|e))),this.set_new_pxl_skin_mask()}}}),Object.defineProperty(h.prototype,"set_new_pxl_skin_mask",{get:function(){return function(){var e=new f(new ArrayBuffer(4)),t=0|this.new_pxl_colors_.length,A=0;for(this.new_pxl_colors_is_skin_mask_=new a.SetFixed(0|t);(0|A)<(0|t);A=A+1|0)this.new_pxl_colors_.get_use_element(0|A,e).skin&&this.new_pxl_colors_is_skin_mask_.add(0|A);this.set_is_skin_ops(this.get_is_skin_ops()+A|0)}}}),Object.defineProperty(h.prototype,"get_a_new_pxl_color_from_pxl_index",{get:function(){return function(e){return 4294967295&this.new_pxl_colors_.buffer_getUint32(this.new_pxls_[0|e])}}}),Object.defineProperty(h.prototype,"reset_cluster",{get:function(){return function(){this.max_cluster_=this.new_pxl_colors_.length>65536?65537:this.new_pxl_colors_.length>16384?4097:this.new_pxl_colors_.length>8192?257:this.new_pxl_colors_.length>512?17:1,this.length_clusters_.fill(0,0,0|this.max_cluster);for(var e=0;(0|e)<(0|this.max_cluster);e=(e+1|0)>>>0)this.index_clusters_[0|e]=[]}}}),Object.defineProperty(h.prototype,"reset_original_data",{get:function(){return function(){this.new_pxl_colors_=new g(this.original_pxl_colors_.slice(0,this.original_pxl_colors_.length).buffer),this.new_pxls_=this.original_pxls_.slice(0,this.original_pxls_.length)}}}),Object.defineProperty(h.prototype,"add_in_indexes_cluster",{get:function(){return function(e,t){this.index_clusters_[(0|e)>>>0].push((0|t)>>>0)}}}),Object.defineProperty(h.prototype,"set_all_cluster_indexes",{get:function(){return function(){for(var e=0,t=0;(0|e)<(0|this.max_cluster);e=(e+1|0)>>>0)this.all_index_clusters_.set(this.index_clusters_[(0|e)>>>0],(0|t)>>>0),t=(t+this.get_length_in_index_clusters(0|e)|0)>>>0}}}),Object.defineProperty(h.prototype,"get_length_in_index_clusters",{get:function(){return function(e){return(0|this.index_clusters_[(0|e)>>>0].length)>>>0}}}),Object.defineProperty(h.prototype,"get_in_cluster_lengths",{get:function(){return function(e){return(0|this.length_clusters_[(0|e)>>>0])>>>0}}}),Object.defineProperty(h.prototype,"get_an_index_in_clusters",{get:function(){return function(e){return(0|this.all_index_clusters_[0|e])>>>0}}}),Object.defineProperty(h.prototype,"get_a_color_usage",{get:function(){return function(e){return(0|this.pxl_colors_usage_[0|e])>>>0}}}),Object.defineProperty(h.prototype,"set_a_color_usage",{get:function(){return function(e,t){return this.pxl_colors_usage_[0|e]=(0|t)>>>0}}}),Object.defineProperty(h.prototype,"get_a_color_usage_percent",{get:function(){return function(e){return o(this.pxl_colors_usage_[0|e]/this.new_pxls_.length)}}}),Object.defineProperty(h.prototype,"get_average_color_usage_percent",{get:function(){return function(e,t){var A,n,a;for(t=0|((t|=0)<(e|=0)?this.pxl_colors_usage_.length:t),A=0,n=0,a=0,n=0|e;(0|n)<(0|t);n=(n+1|0)>>>0)a=(0|this.get_an_index_in_clusters((0|n)>>>0))>>>0,A+=this.pxl_colors_usage_[0|a]/this.new_pxls_.length;return A/(t-e|0)}}}),Object.defineProperty(h.prototype,"get_a_new_pxl_color",{get:function(){return function(e){return this.new_pxl_colors_.get_new_element(0|e)}}}),Object.defineProperty(h.prototype,"is_pxl_color_skin",{get:function(){return function(e){return this.new_pxl_colors_is_skin_mask_.has(0|e)}}}),Object.defineProperty(h.prototype,"max_cluster",{get:function(){return 0|this.max_cluster_}}),Object.defineProperty(h.prototype,"new_pxls_length",{get:function(){return 0|this.new_pxls_.length}}),Object.defineProperty(h.prototype,"new_pxl_colors_length",{get:function(){return 0|this.new_pxl_colors_.length}}),Object.defineProperty(h.prototype,"best_color_number",{get:function(){return 0|this.best_color_number_}}),Object.defineProperty(h.prototype,"get_data",{get:function(){return function(){return Array.of(this.new_pxls_,this.new_pxl_colors_.slice_uint32(0,this.new_pxl_colors_.length),{deduplicate:this.get_remove_duplicate_ops(),simplify:this.get_simplify_ops(),classify:this.get_classify_on_x_bits_ops(),skin:this.get_is_skin_ops(),blend:this.get_blend_ops(),match:this.get_match_ops()})}}}),h.prototype.output=function(e){var t,A;return e=e||"heap",t=this.get_data(),"heap"==e?((A=new Uint32Array(2+t[0].length+t[1].length))[0]=0|t[0].length,A[1]=0|t[1].length,A.set(t[0],2),A.set(t[1],2+t[0].length),A.buffer):t},h.prototype.deduplicate=function(){var e,t,A,n,a;for(this.set_remove_duplicate_ops(this.get_remove_duplicate_ops()+1|0),this.reset_deduplicate(0|this.new_pxl_colors_length),e=0,t=0,A=0,n=0,a=0|this.new_pxls_length;(0|n)<(0|a);n=(n+1|0)>>>0)t=0|this.get_a_new_pxl_color_from_pxl_index(0|n),-1==(0|(A=0|this.index_of_color_within_cleaned(0|t)))&&(this.set_cleaned_pxl_colors(0|e,0|t),A=0|e,e=e+1|0),this.increase_color_usage(0|A),this.set_new_pxls(0|n,0|A);this.set_new_pxl_colors(e)},h.prototype.clusterize=function(){this.reset_cluster();var e=0;if(65537===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon16bits)>>>0,(0|e)>>>0);else if(4097===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon12bits)>>>0,(0|e)>>>0);else if(257===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon8bits)>>>0,(0|e)>>>0);else if(17===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon4bits)>>>0,(0|e)>>>0);else for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster(0,(0|e)>>>0);this.max_cluster>1&&this.set_classify_on_x_bits_ops(this.get_classify_on_x_bits_ops()+this.new_pxl_colors_length),this.set_all_cluster_indexes()},h.prototype.process_threshold=function(e){var t,A,n,a,i,r,c,u,g,d,h,m,p,C,E,B,w,U,S,R,v,b,y,O,Q,x;for(A=function(e,A){return o(Math.pow(e,t)/A)}(e=(0|e)>>>0,Math.pow(100,t=1.5)),n=!1,a=[],i=[],r=0,c=0,d=!1,h=!1,m=0,p=0,C=0,E=0,B=0,w=0,v=0,b=0,y=0,O=0,Q=0,x=0,R=o((U=A)*s),S=o(U*l);(0|Q)<(0|this.max_cluster);Q=(Q+1|0)>>>0){for(c=(r+((0|this.get_length_in_index_clusters(0|Q))>>>0)|0)>>>0,B=this.get_average_color_usage_percent(0|r,0|c),y=0|r;(0|y)<(0|c);y=(y+1|0)>>>0){if(v=(0|this.get_an_index_in_clusters((0|y)>>>0))>>>0,u=this.get_a_new_pxl_color((0|v)>>>0),d=this.is_pxl_color_skin((0|v)>>>0),(0|(m=(0|this.get_a_color_usage((0|v)>>>0))>>>0))>0)for(a=[],O=0|r;(0|O)<(0|c);O=(O+1|0)>>>0)b=(0|this.get_an_index_in_clusters((0|O)>>>0))>>>0,g=this.get_a_new_pxl_color((0|b)>>>0),h=this.is_pxl_color_skin((0|b)>>>0),0|(p=(0|this.get_a_color_usage((0|b)>>>0))>>>0)&&(0|v)!=(0|b)&&(0|d)==(0|h)&&(C=this.get_a_color_usage_percent((0|v)>>>0)/B,E=this.get_a_color_usage_percent((0|b)>>>0)/B,x=o((x=d&&h?R:d||h?S:U)*(0*Math.abs(C-E)+.14*(2-(C+E))/2+.88)/1.02),u.manhattan_match_with(g,x)&&(w=o(p/m),n=!0,this.set_a_color_usage(0|b,0),a.push(g),i.push(w)));(0|a.length)>0&&(f.blend_all(u,a,i),a=[],i=[])}r=0|c}return n},h.prototype.round=function(){var e,t;if(this.new_pxl_colors_length>2048){for(e=0|(this.new_pxl_colors_length>6e4?4:this.new_pxl_colors_length>32e3?3:this.new_pxl_colors_length>16e3?2:this.new_pxl_colors_length>8192?1.5:this.new_pxl_colors_length>4096?1.25:1),t=0;(0|t)<(0|this.new_pxl_colors_length);t=(t+1|0)>>>0)this.get_a_new_pxl_color((0|t)>>>0).simplify(e);this.set_simplify_ops(this.get_simplify_ops()+this.new_pxl_colors_length)}},h.prototype.init=function(){return this.round(),this.deduplicate(),this.clusterize(),this},h.prototype.reset_original=function(){return this.reset_original_data(),this},h.prototype.run=function(){var e=0|(this.new_pxl_colors_length>6e4?12:this.new_pxl_colors_length>32e3?8:this.new_pxl_colors_length>16e3?4:this.new_pxl_colors_length>8192?3:this.new_pxl_colors_length>4096?2:1);if(this.new_pxl_colors_length<=this.best_color_number)return this.deduplicate(),this.clusterize(),this;for(;this.new_pxl_colors_length>this.best_color_number;)this.process_threshold(0|e)&&(this.deduplicate(),this.clusterize()),e=e+(this.new_pxl_colors_length>6e4?12:this.new_pxl_colors_length>32e3?8:this.new_pxl_colors_length>16e3?4:this.new_pxl_colors_length>8192?3:this.new_pxl_colors_length>4096?2:1)|0;return this.reset_original(),this.deduplicate(),this.clusterize(),this.process_threshold(0|e),this.deduplicate(),this.clusterize(),this},h.split_image_data=function(e){var t,A,n=new Uint32Array(e.data.buffer),a=Uint32Array.from(new Set(n)),i={},r=a.length,o=new Uint32Array(n.length);for(t=0,A=0|r;(0|t)<(0|A);t=(t+1|0)>>>0)i[a[0|t]]=(0|t)>>>0;for(t=0,A=0|n.length;(0|t)<(0|A);t=(t+1|0)>>>0)o[0|t]=(0|i[n[0|t]])>>>0;return[o,a,n,r]},n=function(e,t){return new Promise((function(A){var n,a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),4!==a.length);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(h.split_image_data(e)),i=a[0],r=a[1],o=a[2],l=a[3],s=Date.now(),c=h({pxls:i,pxl_colors:r,number_of_color:"auto"===t?l/1.314|0:parseFloat(t)<1?l-Math.ceil(l/25):t,width:e.width,height:e.height}).init().run().output("split"),u=Date.now(),f=c[0],g=0|f.length,d=c[1];for(n=0;(0|n)<(0|g);n=(n+1|0)>>>0)o[0|n]=(0|d[(0|f[0|n])>>>0])>>>0;A([e=new ImageData(new Uint8ClampedArray(o.buffer),e.width,e.height),f,d,l-d.length,d.length,u-s])}))},e.exports={QuantiMatGlobal:n,QuantiMat:h}},655:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,A,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.strength=t,this.tilesManager=A,this.tiles=A.getTiles(),this.width=n,this.height=a}},657:function(e,t,A){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=(a=A(670))&&a.__esModule?a:{default:a},t.default=n.default.pool({minWorkers:0,maxWorkers:3})},659:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,A=Array(e.length);t=4&&i<=32;)t=e[i],e[2*i-1],e[2*i],e[2*i+1],e[4*i-1],e[4*i],e[4*i+1],a<(A=t*i*(1+.1*i))&&(a=A,r=i),i++;return n=0,e.forEach((function(e,t){n+=e*t})),{tileSize:r,certainty:Math.fround(r*e[r]/n)}}var A,n,a,i,r,o,l,s=e.width,c=e.height,u=new Uint32Array(e.data.buffer),f=256,g=new Uint32Array(f),d=new Uint32Array(f),h=0,m=new Uint32Array(2);for(A=0;A1&&h0&&h1&&h0&&h>24&255)-(t>>24&255)),l((e>>16&255)-(t>>16&255)),l((e>>8&255)-(t>>8&255))),n=Uint16Array.of(s(A[0],A[0]),s(A[1],A[1]),s(A[2],A[2]));return(0|Math.sqrt((((n[0]<<1)+n[0]|0)+(n[1]<<2)+(n[2]<<1)|0)/10))>>>0}},{key:"quantizeImageData",value:function(e,t){var A,n,a,r,l=e.getImageData(0,0,e.canvas.width,e.canvas.height),s=Date.now(),c=o.QuantiMat.split_image_data(l),u=i(c,2),f=u[0],g=u[1],d=Date.now(),h=(0,o.QuantiMat)({pxls:f,pxl_colors:g,number_of_color:Math.min(g.length,t),width:l.width,height:l.height}).init().run().output("split"),m=Date.now();for(console.log(d-s,m-d),A=h[0],n=h[1],a=new Uint32Array(A.length),r=0;rr&&(i=o,r=t[o]);return i}},{key:"_calculateElbowStrength",value:function(e,t){var A,n,i,r=e.map((function(t,A){return A/(e.length-1)})),o=Math.max.apply(Math,a(e)),l=Math.min.apply(Math,a(e)),s=e.map((function(e){return(e-l)/(o-l)})),c=[0,s[0]],u=[1,s[s.length-1]],f=[r[t],s[t]],g=Math.sqrt(Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)),d=Math.abs(((i=u)[1]-(n=c)[1])*(A=f)[0]-(i[0]-n[0])*A[1]+i[0]*n[1]-i[1]*n[0])/Math.sqrt(Math.pow(i[1]-n[1],2)+Math.pow(i[0]-n[0],2));return Math.fround(d/g)}}]),e}(),t.default=c},660:function(e,t,A){"use strict";var n,a,i;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;At&&(t=i,A=a)})),A}},{key:"distance",value:function(e,t){return this.c1.set_from_array(e),this.c2.set_from_array(t),16192*this.c1.fast_match_with(this.c2)|0}},{key:"reassignCentroids",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:16,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(this.initializeCentroids(),e=0,t=!1,A=void 0,n=function(){var n=r.centroids.map((function(e){return Uint32Array.from(e)}));r.assignClusters(),A=r.updateCentroids(),e++,t=r.centroids.every((function(e,t){return r.distance(e,n[t])<2})),l&&!t&&r.reassignCentroids(A)};!t&&e1&&void 0!==arguments[1]&&arguments[1],n=(0,a.default)(e);return A&&(t=/(?:#)[0-9a-f]{8}|(?:#)[0-9a-f]{6}|(?:#)[0-9a-f]{4}|(?:#)[0-9a-f]{3}/gi,n.match(t).forEach((function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),3!==a.length);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.match(/\w\w/g).map((function(e){return parseInt(e,16)}))),A=t[0],a=t[1],i=t[2],r=Math.round((A+a+i)/3),o=function(e,t,A){return e=e.toString(16),t=t.toString(16),A=A.toString(16),1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==A.length&&(A="0"+A),"#"+e+t+A}(r,r,r);n=n.replace(e,o)}))),(0,i.default)(n)}},667:function(e,t,A){"use strict";var n=A(668);e.exports={createLocalBlob:function(e){var t,A,a,i,r=(e.match(/(data\:([a-z]+\/[a-z\+]+)\;base64\,)([a-zA-Z0-9\/\+]+\(\=+)?/)||[,,])[1];return r?(A=(t=r.match(/data\:([a-z]+\/[a-z\+]+)\;base64\,/)[1]).match(/[a-z]+\/([a-z\+]+)/)[1],e=e.replace(r,""),a=(0,n.base64ToBytes)(e),i=new File([a],"name."+A,{type:t}),URL.createObjectURL(i)):""}}},668:function(e,t,A){"use strict";var n=new(A(266).B64chromium);e.exports={bytesToBase64:n.bytesToBase64.bind(n),base64ToBytes:n.base64ToBytes.bind(n)}},676:function(e,t,A){"use strict";var n,a=A(677),i=Object.getPrototypeOf((n=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e,this)})),function(){var e=n.apply(this,arguments);return new Promise((function(t,A){return function n(a,i){var r,o;try{o=(r=e[a](i)).value}catch(l){return void A(l)}if(!r.done)return Promise.resolve(o).then((function(e){n("next",e)}),(function(e){n("throw",e)}));t(o)}("next")}))})).constructor,r=Object.getPrototypeOf((function(){})).constructor,o=new r('var t = function(file) {\n "use strict";\n \n try {\n \n return new Promise(function(resolve, _) {\n resolve(new FileReaderSync().readAsDataURL(file));\n });\n \n } catch(error) {\n \n return new Promise(function(resolve, _) {\n var reader = new FileReader();\n reader.onload = function(){ resolve(reader.result)};\n reader.readAsDataURL(file);\n });\n }\n \n}; return t;')(),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==A?A.exec(o,[e]).catch((function(t){return o(e)})).timeout(5e3).then((function(e){t(e)})):o(e).then((function(e){t(e)}))},s=new i('var t = async function(base64) {\n\n "use strict";\n\n return fetch(base64).then(function(res) {\n\n return res.blob().then(function(blb){\n\n return createImageBitmap(blb, {\n resizeQuality: "pixelated",\n premultiplyAlpha: \'premultiply\'\n });\n });\n });\n\n}; return t;')(),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==A?A.exec(s,[e]).catch((function(t){return s(e)})).timeout(5e3).then((function(e){t(e)})):s(e).then((function(e){t(e)}))},u=function(e){for(var t,A,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2073600,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=1;Math.round(e.width*i)*Math.round(e.height*i)>n;)i-=.01;try{createImageBitmap(e,0,0,e.width,e.height,{resizeWidth:Math.round(e.width*i),resizeHeight:Math.round(e.height*i),resizeQuality:"pixelated",premultiplyAlpha:"premultiply"}).then((function(e){var t,A=void 0;try{A=new OffscreenCanvas(e.width,e.height)}catch(n){(A=document.createElement("canvas")).width=e.width,A.height=e.height}(t=A.getContext("2d")).imageSmoothingEnabled=!1,t.drawImage(e,0,0,e.width,e.height),a(t.getImageData(0,0,e.width,e.height))}))}catch(r){t=void 0;try{t=new OffscreenCanvas(Math.round(e.width*i),Math.round(e.height*i))}catch(o){(t=document.createElement("canvas")).width=Math.round(e.width*i),t.height=Math.round(e.height*i)}(A=t.getContext("2d")).imageSmoothingEnabled=!1,A.drawImage(e,0,0,t.width,t.height),a(A.getImageData(0,0,t.width,t.height))}},f=new r('var t = function(imagedata, type) {\n\n "use strict"\n type = type || "image/png";\n var quality = type.includes("webp") ? 1: type.includes("png") ? undefined: 0.7;\n try {\n \n return new Promise(function(resolve, _) {\n\n createImageBitmap(imagedata, 0, 0, imagedata.width, imagedata.height, {\n premultiplyAlpha: \'premultiply\',\n resizeQuality: \'pixelated\'\n }).then((bmp) => {\n \n var canvas;\n canvas = new OffscreenCanvas(imagedata.width, imagedata.height);\n var ctx = canvas.getContext("bitmaprenderer");\n ctx.imageSmoothingEnabled = false;\n ctx.transferFromImageBitmap(bmp);\n \n canvas.convertToBlob({type: type, quality: quality}).then((blb) => {\n try {\n resolve(new FileReaderSync().readAsDataURL(blb));\n } catch(e2) {\n var reader = new FileReader();\n reader.onload = function(){ resolve(reader.result)};\n reader.readAsDataURL(blb);\n }\n });\n });\n });\n \n }catch (e) {\n \n return new Promise(function(resolve, _) {\n var canvas = document.createElement("canvas");\n canvas.width = imagedata.width;\n canvas.height = imagedata.height;\n var ctx = canvas.getContext("2d");\n ctx.imageSmoothingEnabled = false;\n ctx.putImageData(imagedata, 0, 0);\n \n var base64 = canvas.toDataURL(type, quality);\n canvas = null;\n resolve(base64);\n });\n }\n\n}; return t;')();e.exports={file_to_imagedata_resized:function(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Date.now(),e.type,"image/jpg"!==e.type&&e.type,e.type,l(e,(function(e){c(e,(function(e){u(e,t,(function(e){A(e)}),n)}),n)}),n)},file_to_base64:l,base64_to_bitmap:c,bitmap_to_imagedata:u,imagedata_to_base64:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;null!==n?n.exec(f,[e,t]).catch((function(A){return f(e,t)})).timeout(5e3).then((function(e){A(e)})):f(e,t).then((function(e){A(e)}))},base64_sanitize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};(function(e,t,A){return A=A||"pixelize",new Promise((function(n,i){var r=new Image,o=e.startsWith("data:image/png;");r.onload=function(){var e,i,l=r.naturalWidth*t,s=r.naturalHeight*t,c=function(e,t,A,n){var i,r,o,l,s=void 0;if("pixelize"===n||"normal"===n){i=void 0,r=void 0;try{i=new OffscreenCanvas(e.width,e.height),r=new OffscreenCanvas(t,A)}catch(c){i=document.createElement("canvas"),r=document.createElement("canvas"),i.width=e.width,i.height=e.height,r.width=t,r.height=A}o=i.getContext("2d"),l=r.getContext("2d"),o.imageSmoothingEnabled=!("normal"!==n),l.imageSmoothingEnabled=!("normal"!==n),o.drawImage(e,0,0,e.width,e.height),l.drawImage(i,0,0,i.width,i.height,0,0,r.width,r.height),s=l}else"doppel"===n&&(s=a.scaler.processImage(e,t,A));return s}(r,0|l,0|s,A);try{e=c.getImageData(0,0,c.canvas.width,c.canvas.height),createImageBitmap(e).then((function(e){var t,A;try{t=new OffscreenCanvas(e.width,e.height)}catch(a){(t=document.createElement("canvas")).height=e.height,t.width=e.width}(A=t.getContext("bitmaprenderer")).imageSmoothingEnabled=!1,A.transferFromImageBitmap(e),t.convertToBlob({type:o?"image/png":"image/jpeg"}).then((function(e){try{n((new FileReaderSync).readAsDataURL(e))}catch(A){var t=new FileReader;t.onload=function(){n(t.result)},t.readAsDataURL(e)}}))}))}catch(u){i=c.canvas,n(i.toDataURL(o?"image/png":"image/jpeg"))}},r.onerror=function(){i()},r.src=e}))})(e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,arguments[4]).then((function(e){t(e)}))},file_to_bitmap:function(e,t){createImageBitmap(e).then(t)}}},677:function(e,t,A){"use strict";var n,a=(n=A(678))&&n.__esModule?n:{default:n},i=new a.default({strength:1,overlapFactor:1,despeckleStrength:.88});e.exports={scaler:i,ImageProcessor:a.default}},678:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s,c,u,f,g,d,h;Object.defineProperty(t,"__esModule",{value:!0}),a=function(){function e(e,t){var A,n;for(A=0;A.25&&(this.options.quantizeStrength=t,i=(a=this.imageManager.analyzeImageForTileSize(n)).tileSize,o=a.certainty,l=Math.sqrt(this.tileWidth*this.tileHeight),console.log(o,i),4*i>l&&i<4*l&&(console.log("changeFinalCanvasParameters: "+(this.canvas.width/i|0)+"/"+(this.canvas.height/i|0)),this.changeFinalCanvasParameters(this.canvas.width/i|0,this.canvas.height/i|0)))}},{key:"updateTiles",value:function(){this.tilesManager=new l.default(this.context,this.targetContext,this.targetImageData,this.sizes),this.tilesManager.createTiles(),this.tilesManager.computeTiles()}},{key:"paintTiles",value:function(){this.tilesManager.paintTiles()}},{key:"filterTiles",value:function(){this.filters.applyFilters()}},{key:"setCanvas",value:function(e,t,A){var n,a;e=0|e||1,t=0|t||1,A=A||{width:0,height:0},n=f.default.initializeCanvas(A),this.canvas=n.canvas,this.context=n.context,a=f.default.initializeCanvas(void 0,e,t),this.targetCanvas=a.canvas,this.targetContext=a.context,this.targetImageData=this.targetContext.getImageData(0,0,e,t),this.finalWidth=e,this.finalHeight=t,this.tileWidth=Math.fround(this.canvas.width/this.targetCanvas.width),this.tileHeight=Math.fround(this.canvas.height/this.targetCanvas.height)}},{key:"changeFinalCanvasParameters",value:function(e,t){e=0|e||1,t=0|t||1;var A=f.default.initializeCanvas(void 0,e,t);this.targetCanvas=A.canvas,this.targetContext=A.context,this.targetImageData=this.targetContext.getImageData(0,0,e,t),this.finalWidth=e,this.finalHeight=t,this.tileWidth=Math.fround(this.canvas.width/this.targetCanvas.width),this.tileHeight=Math.fround(this.canvas.height/this.targetCanvas.height)}},{key:"updateThreshold",value:function(){var e,t,A,n,a,i=this,r=this.tilesManager.getTiles(),o=[];for(e=0;e=this.finalWidth||r>=this.finalHeight||o.push(this.tiles[i+r*this.finalWidth]);return o}},{key:"paintTiles",value:function(){this.imageData.data.set(this.tilesColorUint8a),this.contextDestination.putImageData(this.imageData,0,0)}}]),e}(),t.default=r},680:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){var A,n;for(A=0;A2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.imageData=t,this.meanColor=new o.default(A),this.coordinates=Uint16Array.of(a,i),n=this.imageData.data.length,this.k=n>=64?8:n>=16?6:n>=9?4:n>=2?3:1}return i(e,[{key:"extractColorData",value:function(e){var t,A=Array(e.length/4);for(t=0;t=r-2&&(l.forEach((function(e){e.meanColor.setRGBA(A.meanColor.rgba);var t=e.x+e.y*n.width;a[t]=!0})),a[s]=!0)},A=0;A0&&a<60&&d.setRGBA(n.rgba);break;case"EDGE":i=new s.default(B[0].data),r=new s.default(B[1].data),l=o.default.colorDifference(i,r),c=o.default.colorDifference(i,d),f=o.default.colorDifference(r,d),5*Math.abs(c-f)>=l&&(g=new s.default(new u.default(m.map((function(e){return e.meanColor.rgba})),4).run(4).centroidsSorted[0].data),d.setRGBA(g.rgba))}}},{key:"determineClassification",value:function(e,t){return e[0].count>=.75*t?"AREA":Math.abs(e[0].count-e[1].count)*Math.abs(e[2].count-e[3].count)<25?"SHAPE":Math.abs(e[0].count-e[1].count)<.75*Math.abs(e[1].count-e[2].count)?"EDGE":"COMPLEX"}}]),t}(i.default),t.default=f},684:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),a=function(){function e(e,t){var A,n;for(A=0;A3&&void 0!==arguments[3]?arguments[3]:[32,32,32,32],o=window.innerWidth,l=window.innerHeight;return o<800?(o-=0,l-=56):(o-=384,o-=64,l-=64),a=0,i=0,(n=e/t)U?r*(a-s)+u:l*(a-c)+f),{i:t,j:A,k:n,x:a,y:i,r:(g=p-a)*g+(d=C-i)*d}}function a(e){var t,A,n,a,i,r;for(A=e.length;A;)for(a=e[--A],n=e[--A],t=A;t;)if(r=e[--t],n===(i=e[--t])&&a===r||n===r&&a===i){e.splice(A,2),e.splice(t,2);break}}function i(e,t,A,n){t=(e=e||{width:0,height:0}).width||t||1,A=e.height||A||1;var a=void 0,i=void 0;try{if(!1===n)throw new ErrorEvent("Must support toDataURL later, skipping offrscreen canvas solution.");i=(a=new OffscreenCanvas(t,A)).getContext("2d",{willReadFrequently:!0,desynchronized:n})}catch(r){(a=document.createElement("canvas")).width=t,a.height=A,i=a.getContext("2d",{willReadFrequently:!0})}return e instanceof ImageData?i.putImageData(e,0,0):e.width&&i.drawImage(e,0,0,t,A),{canvas:a,context:i}}var r=function(){function e(e,t){var A,n;for(A=0;As&&(s=e[t][0]),e[t][1]c&&(c=e[t][1]);return[[(i=o+.5*(A=s-o))-20*(a=Math.max(A,n=c-l)),(r=l+.5*n)-a],[i,r+20*a],[i+20*a,r-a]]}(e),e.push(l[0],l[1],l[2]),s=[n(e,p+0,p+1,p+2)],c=[],u=[],A=r.length;A--;u.length=0){for(m=r[A],i=s.length;i--;)(f=e[m][0]-s[i].x)>0&&f*f>s[i].r?(c.push(s[i]),s.splice(i,1)):f*f+(g=e[m][1]-s[i].y)*g-s[i].r>o||(u.push(s[i].i,s[i].j,s[i].j,s[i].k,s[i].k,s[i].i),s.splice(i,1));for(a(u),i=u.length;i;)h=u[--i],d=u[--i],s.push(n(e,d,h,m))}for(A=s.length;A--;)c.push(s[A]);for(s.length=0,A=c.length;A--;)c[A].ie[0][0]&&t[0]>e[1][0]&&t[0]>e[2][0]||t[1]e[0][1]&&t[1]>e[1][1]&&t[1]>e[2][1]?null:(A=e[1][0]-e[0][0],n=e[2][0]-e[0][0],a=e[1][1]-e[0][1],0==(r=A*(i=e[2][1]-e[0][1])-n*a)?null:(o=(i*(t[0]-e[0][0])-n*(t[1]-e[0][1]))/r,l=(A*(t[1]-e[0][1])-a*(t[0]-e[0][0]))/r,o<0||l<0||o+l>1?null:[o,l]))}},s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:16};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t.size,this.delaunay=l}return r(e,[{key:"processImage",value:function(e,t){var A=this;return new Promise((function(n,a){if(!e)throw Error("Image source is undefined");var i=new Image;i.src=e,i.onload=function(){A.polygonize(i,t).then(n)},i.onerror=function(){a(Error("Invalid image source"))}}))}},{key:"polygonize",value:function(e,t){var A=this;return new Promise((function(n){var a,r,o=i(void 0,1,1,!0),l=i(void 0,1,1,!1),s=o.canvas,c=o.context,u=l.canvas,f=l.context,g=e.width*A.size,d=e.height*A.size;s.width=g,s.height=d,u.width=g,u.height=d,c.drawImage(e,0,0,g,d),a=A.generatePoints(g,d),r=A.delaunay.triangulate(a),A.svgElement=document.createElementNS("http://www.w3.org/2000/svg","svg"),A.svgElement.setAttribute("width",f.canvas.width),A.svgElement.setAttribute("height",f.canvas.height),A.drawTriangles(a,r,c,t?void 0:f),t?n(A.getSVGURL()):function(e,t){var A,n;try{e.toBlob((function(e){var A=URL.createObjectURL(e);t(A)}))}catch(a){A=function(e){var t,A=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),a=[];for(t=0;t div > h1":{bottom:"-60px",opacity:0,transition:"all 700ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},"&:hover > div > p":{bottom:"-40px",opacity:0,transition:"all 700ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},profileBannerImage:{width:"100%",height:"100%",background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKkAAAAhBAMAAABQGJapAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAPUExURW0tFufQZtiOLi8RD/fz5apmOV4AAAKASURBVEjHjZaLbcQgDIYtPAG0AxhnARo2qLr/TLUN5HglCieddEfy8fP7AeAg2/jxPjAzgWOQkSGnOnOGQI4Y8/1IKK9z9ASsDAKgOuPlfxkALAxhYm5UmXDXYzbmFcDe9pWqqtoTVSyLWPlCU3BR2W2lpo4ahGovk+01f7BRuWBGiKBGjT4Q5KehVDHAV0nQPy1YlUuVCpWaWaiP0GarDxuqYeVfpxMo0Wq7jo+hKtTQUaedmbf6EW+E+rztmcqVasEehoiNshfFYkbYBGb3W6lsVNJ98kxVDzSaJB6kgXolAW61itQYhGpJtMTWGzayzACmB61TCqjUSl0dKGI9B2B1dgXgA5UrdY4WNrFlQVhAiTbeqq1RUoCtOFcHjuaBUbGoPW61Vq8TSvnJ9qNRaaa6gNUDjWRNZveLBk+rAZfW0zaolaBU3mjNkluSWmDJlT9az5tQoVJjLMbpiwvVMD9cCqxRq7547KmHUjmWHWrHcLztGmesPbHfr/sO2/iLa0r1lephoA6vWJNxY2rdaE1Fa6MGMYDvO5xk3ajt2dfLVnJ8p3XXndMMw0/BnpYC3MZFTY8ddNXpOiElX1k7AXPgt1pTnNc0EWlo2qzVZWCmdy30nNc9j64OSnsNsSTBeyrMHpVaxa696hH7norbFjAeOdKzokot58EL6qVw9J1ppIZGjXop2FDTXusxPLBS7eDmUgevD7z8NSYW9yta1653n3LL2CdWmhPt/B12cw7GSrgKNU7UOcl5nHHff0NzSWpB6oqrUgOvt4wuGn66WfVa0ZbtbomNKodzKYIbql6t6N5XVCz24WpU32prV6t6D9wcE62YaKkSo2rMNA3oHyXswn26lJknAAAAAElFTkSuQmCC)",backgroundSize:"cover",backgroundPosition:"50% 75%"},profileBannerOverlay:{position:"absolute",borderRadius:"4px",top:0,let:0,width:"100%",height:"100%",transition:"filter 300ms cubic-bezier(0.4, 0, 0.2, 1) 50ms",filter:"opacity(1)",background:"linear-gradient(to top, #000000a1 5%, #00000085 25%, #00000045 50%, #ffffff00 75%)","@media (max-width: 800px)":{background:"linear-gradient(to bottom, #000000a1 5%, #00000085 25%, #00000045 50%, #ffffff00 75%)"},"&:hover, &:active":{filter:"opacity(0)",transition:"filter 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms"}},"@global":{"@keyframes ripple":{"0%":{transform:"scale(1)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}},"@keyframes float":{"0%":{paddingBottom:"0px"},"50%":{paddingBottom:"5px"},"100%":{paddingBottom:"0px"}},"@keyframes sparkle":{"0%":{boxShadow:"0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff1200, 0rem 0rem 0 0rem #ff6f6f, 0rem 0rem 0 0rem rgba(0, 0, 0, 0.26), 0rem 0rem 0 0rem #ff3073, 0rem 0rem 0 0rem #ff80b5, 0rem 0rem 0 0rem #ff8097, 0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff9280, 0rem 0rem 0 0rem #ff8080, 0rem 0rem 0 0rem #ff3131, 0rem 0rem 0 0rem #ff5151, 0rem 0rem 0 0rem #ff0958, 0rem 0rem 0 0rem #ff8080"},"75%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ff8080, -0.32476rem -2.625rem 0 -0.1875rem #ffed80, 2.54798rem -1.61656rem 0 -0.1875rem #ffed80, 1.84982rem -1.89057rem 0 -0.1875rem #a4ff80, 2.85252rem 0.98418rem 0 -0.1875rem #a4ff80, 2.63145rem 0.2675rem 0 -0.1875rem #80ffc8, 1.00905rem 2.84381rem 0 -0.1875rem #80ffc8, 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff, -1.59425rem 2.562rem 0 -0.1875rem #80c8ff, -0.84635rem 2.50595rem 0 -0.1875rem #a480ff, -2.99705rem 0.35095rem 0 -0.1875rem #a480ff, -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed, -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed, -2.25479rem -1.38275rem 0 -0.1875rem #ff8080"},"100%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ff808000, -0.32476rem -2.625rem 0 -0.1875rem #ffed8000, 2.54798rem -1.61656rem 0 -0.1875rem #ffed8000, 1.84982rem -1.89057rem 0 -0.1875rem #a4ff8000, 2.85252rem 0.98418rem 0 -0.1875rem #a4ff8000, 2.63145rem 0.2675rem 0 -0.1875rem #80ffc800, 1.00905rem 2.84381rem 0 -0.1875rem #80ffc800, 1.43154rem 2.22414rem 0 -0.1875rem #80c8ff00, -1.59425rem 2.562rem 0 -0.1875rem #80c8ff00, -0.84635rem 2.50595rem 0 -0.1875rem #a480ff00, -2.99705rem 0.35095rem 0 -0.1875rem #a480ff00, -2.48692rem 0.90073rem 0 -0.1875rem #ff80ed00, -2.14301rem -2.12438rem 0 -0.1875rem #ff80ed00, -2.25479rem -1.38275rem 0 -0.1875rem #ff808000"}},"@keyframes sparklewhite":{"0%":{boxShadow:"0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem rgba(0, 0, 0, 0.26), 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff, 0rem 0rem 0 0rem #ffffff"},"75%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ffffff, -0.32476rem -2.625rem 0 -0.1875rem #ffffff, 2.54798rem -1.61656rem 0 -0.1875rem #ffffff, 1.84982rem -1.89057rem 0 -0.1875rem #ffffff, 2.85252rem 0.98418rem 0 -0.1875rem #ffffff, 2.63145rem 0.2675rem 0 -0.1875rem #ffffff, 1.00905rem 2.84381rem 0 -0.1875rem #ffffff, 1.43154rem 2.22414rem 0 -0.1875rem #ffffff, -1.59425rem 2.562rem 0 -0.1875rem #ffffff, -0.84635rem 2.50595rem 0 -0.1875rem #ffffff, -2.99705rem 0.35095rem 0 -0.1875rem #ffffff, -2.48692rem 0.90073rem 0 -0.1875rem #ffffff, -2.14301rem -2.12438rem 0 -0.1875rem #ffffff, -2.25479rem -1.38275rem 0 -0.1875rem #ff8080"},"100%":{boxShadow:"0.32476rem -3rem 0 -0.1875rem #ffffff00, -0.32476rem -2.625rem 0 -0.1875rem #ffffff00, 2.54798rem -1.61656rem 0 -0.1875rem #ffffff00, 1.84982rem -1.89057rem 0 -0.1875rem #ffffff00, 2.85252rem 0.98418rem 0 -0.1875rem #ffffff00, 2.63145rem 0.2675rem 0 -0.1875rem #ffffff00, 1.00905rem 2.84381rem 0 -0.1875rem #ffffff00, 1.43154rem 2.22414rem 0 -0.1875rem #ffffff00, -1.59425rem 2.562rem 0 -0.1875rem #ffffff00, -0.84635rem 2.50595rem 0 -0.1875rem #ffffff00, -2.99705rem 0.35095rem 0 -0.1875rem #ffffff, -2.48692rem 0.90073rem 0 -0.1875rem #ffffff00, -2.14301rem -2.12438rem 0 -0.1875rem #ffffff00, -2.25479rem -1.38275rem 0 -0.1875rem #ffffff00"}}},profileImage:{cursor:"pointer",height:224,width:224,background:"url(data:image/png;base64,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)",borderRadius:"50%",position:"absolute",left:154,top:224,margin:0,transform:"translate(-50%, -50%) scale(1)",backgroundPosition:"50% 50%",backgroundSize:"cover",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$float 1000ms infinite cubic-bezier(0.4, 0, 0.2, 1) 0ms",transformOrigin:"center",zIndex:1,"&:hover":{boxShadow:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",transform:"translate(-50%, -50%) scale(1.05)"},"& .MuiBadge-badge":{backgroundColor:"#51d106",color:"#ffffff",boxShadow:"0 0 2px 4px #51d106",width:36,height:36,borderRadius:"50%",fontWeight:"bold",fontSize:"18px","&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 0.7s infinite cubic-bezier(0.4, 0, 0.2, 1)",border:"2px solid #51d10699",content:'""'},"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"$ripple 1.7s infinite cubic-bezier(0.4, 0, 0.2, 1)",border:"1px solid #51d106ee",content:'""'}},"@media (max-width: 800px)":{width:192,height:192,left:128,top:192,"& .MuiBadge-badge":{width:32,height:32,fontSize:"16px"}},"@media (max-width: 532px)":{width:156,height:156,left:96,top:168}},profileInformation:{padding:"156px 16px 24px 16px",margin:0,width:"100%",position:"relative",zIndex:0},profileInformationOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},profileInformationButtons:{position:"absolute",right:0,top:0},followButton:{margin:"16px 4px 8px 8px"},linkButton:{margin:"16px 4px 8px 4px"},drawerHashtag:{"& .MuiDrawer-paper":{width:256,background:"white",contain:"style size paint layout",boxShadow:"-2px 0px 4px 0px rgb(0 0 0 / 20%), -4px 0px 5px 0px rgb(0 0 0 / 14%), -6px 0px 10px 0px rgb(0 0 0 / 12%)",maxHeight:"100%",height:"100%"}},settingButton:{margin:"16px 16px 8px 4px",transform:"rotate(0deg)",transition:"transform 720ms linear 0ms","&:hover":{transform:"rotate(-72deg)"},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"9px !important"}}},profileName:{color:"white",pointerEvents:"none",margin:0,left:297,position:"absolute",fontSize:"48px",bottom:40,transition:"all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:1,"@media (max-width: 800px)":{left:"32px",top:"16px",bottom:"inherit"}},profileDescription:{color:"white",pointerEvents:"none",left:305,margin:"12px 0px 12px 0px",position:"absolute",fontSize:"18px",bottom:0,opacity:1,transition:"all 350ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:555,"@media (max-width: 800px)":{display:"none"}},profileCards:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileHistory:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileFollowers:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileFollowing:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileWallet:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},profileComments:{width:1152,maxWidth:"100%",margin:"32px auto 16px auto","@media (max-width: 1260px)":{margin:"24px 16px 16px 16px",maxWidth:"calc(100% - 32px)"}},mediaCard:{contain:"paint style layout",cursor:"pointer",width:"100%",maxWidth:"100vw",position:"relative",marginBottom:24,borderRadius:"4px",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)","&:hover":{boxShadow:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)"}},media:{width:"100%",height:"100%",borderRadius:"4px",position:"relative"},mediaOverlay:{overflow:"hidden","& > .top":{position:"absolute",textAlign:"left",left:4,"& > button, & > button:nth-child(1), & > button:nth-child(2), & > button:nth-child(3), ":{opacity:0,marginTop:-40,padding:8},"& > button:nth-child(1)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 75ms"},"& > button:nth-child(2)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 50ms"},"& > button:nth-child(3)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 25ms"},"& > button":{transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},"& > .bottom":{bottom:"-60px",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:0},position:"absolute",top:0,width:"100%",height:"100%",borderRadius:"4px",transition:"filter 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",background:"linear-gradient(to top, #000000cc 25px, #000000b8 50px, #00000096 75px, #0000001a 125px, #00000000 185px), linear-gradient(to bottom, #000000cc 20px, #000000b8 35px, #00000096 45px, #0000001a 75px, #00000000 105px)",filter:"opacity(0)","&:hover, &:active":{filter:"opacity(1)","& > .top":{textAlign:"left","& > button, & > button:nth-child(1), & > button:nth-child(2), & > button:nth-child(3), ":{marginTop:0,opacity:1},"& > button:nth-child(1)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 25ms"},"& > button:nth-child(2)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 50ms"},"& > button:nth-child(3)":{transition:"all 225ms cubic-bezier(0.4, 0, 0.2, 1) 75ms"},"& > button":{transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}},"& > .bottom":{bottom:0,opacity:1}}},mediaTitle:{position:"absolute",margin:0,bottom:0,left:0,color:"white",textAlign:"left"},mediaTitleAuthor:{fontSize:"16px",fontWeight:"inherit",margin:"4px 0px 12px 12px",display:"block","@media (max-width: 800px)":{fontSize:"14px"}},mediaTitleName:{fontSize:"21px",fontWeight:"bold",margin:"0px 0px 0px 12px",display:"block","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},profileTabs:{position:"absolute",left:0,bottom:0,margin:0,padding:0,width:"100%",contain:"paint size style layout",animationFillMode:"both",animationName:"$menu",animationDuration:"175ms",animationTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",animationDirection:"alternate",animationIterationCount:"1",animationDelay:"0ms",height:72,display:"grid","& .MuiTabs-scroller":{overflowY:"hidden"},"& .MuiTab-root":{minWidth:"auto",flex:"auto"},"& .MuiTabs-indicator":{backgroundColor:"#050c4c"}},profileTab:{"@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"10px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"9px !important"}},backgroundColor:"#fafafa",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .275s","&.Mui-selected":{fontWeight:"bold",backgroundColor:"#dfddf2",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .175s",borderRadius:"4px 4px 0px 0px"},"&:hover":{fontWeight:"bold",backgroundColor:"#e8e6f5",color:"#050c4c",transition:"color, background-color cubic-bezier(0.4, 0, 0.2, 1) .175s",borderRadius:"6px 6px 0px 0px"},"&:first-child":{borderRadius:"0px 4px 0px 0px"},"&:last-child":{borderRadius:"4px 0px 0px 0px"},"& .MuiTab-wrapper":{fontSize:"11px"},"& .MuiTab-wrapper svg":{width:32,height:32,contentVisibility:"auto"}},mediaMoney:{position:"absolute",margin:12,bottom:0,right:0,color:"white",textAlign:"right","& svg":{height:24,width:24,marginBottom:-4}},mediaPriceUnavailable:{color:"#ff3333",fontSize:"21px",fontWeight:"bold","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},mediaPriceAvailable:{fontSize:"21px",fontWeight:"bold",color:"#66ff33","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"18px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"16px !important"}}},mediaValue:{fontSize:"16px",fontWeight:"inherit",margin:"0px",display:"block",textDecoration:"none","@media (max-width: 800px)":{"& .MuiTab-wrapper":{fontSize:"14px !important"}},"@media (max-width: 532px)":{"& .MuiTab-wrapper":{fontSize:"12px !important"}}},tabSort:{"& .MuiTab-root":{minWidth:64}},votes:{position:"absolute",margin:0,top:8,left:8,"& .MuiIconButton-root":{color:"#fff","&:hover::after":{content:'""',position:"absolute",marginTop:8,marginRight:8,width:8,height:8,borderRadius:"100%",transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$sparklewhite 750ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animationFillMode:"both"}}},walletCards:{width:"100%",display:"flex",textAlign:"left","@media (max-width: 1000px)":{display:"initial"}},favoriteTrue:{position:"absolute",color:"#ff1200",margin:0,width:"48px !important",top:16,right:"12px !important",left:"auto !important",borderRadius:"100%",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&::after":{content:'""',position:"absolute",top:20,right:20,width:8,height:8,borderRadius:"100%",transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animation:"$sparkle 750ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",animationFillMode:"both"}},favoriteFalse:{position:"absolute",color:"#ffffff",margin:0,width:"48px !important",top:16,right:"12px !important",left:"auto !important",borderRadius:"100%",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},iconCount:{color:"white",marginLeft:4,fontSize:"16px"},location:{color:"#05009d",position:"absolute",top:"72px",right:"24px"},actions:{position:"fixed",bottom:16,right:16,"& .MuiButtonBase-root.MuiFab-root":{borderRadius:8}},actionButton:{borderRadius:4,"&.MuiSpeedDialAction-fab, &.MuiSpeedDialAction-fab .MuiSvgIcon-root":{color:"white",width:48,height:48,padding:14}},timeLine:{"& .MuiTimelineOppositeContent-root.MuiTimelineItem-oppositeContent":{maxWidth:96}},timeLineTime:{fontWeight:"bold"},timeLineDescription:{color:e.palette.primary,textAlign:"left"},drawerPaper:{position:"absolute","@media (max-width: 800px)":{width:"100% !important"},width:384,textAlign:"left","& h1":{display:"block",margin:"12px auto"},"& h2":{display:"block",margin:"8px 16px"}},backdrop:{zIndex:e.zIndex.drawer+1,color:"#fff","&.MuiBackdrop-root":{backgroundColor:"rgba(1,2,18,0.92)"},"& .MuiIconButton-root":{color:"white"}},leftFromDrawer:{position:"absolute",left:0,top:0,display:"block",height:"100%",width:"100% !important",pointerEvents:"none",overflow:"hidden",touchAction:"none",userSelect:"none",perspective:200},fullCard:{borderRadius:8},colors:{flexFlow:"wrap",placeContent:"stretch flex-start",margin:"8px 14px 8px 14px"},drawer:{},list:{"& .MuiListItem-container":{lineHeight:32,height:32},"& .MuiListItemText-root span":{fontWeight:"bold"},"& .MuiListItemSecondaryAction-root":{color:e.palette.secondary.main},"& svg":{height:"24px",verticalAlign:"middle"}},titleWallet:{color:"#43e",fontSize:14,marginRight:72,marginBottom:8},tooltip:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[1],fontSize:14}}},Zt=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){var e;n.canvas_pos.set_notifiers(n.requestForceUpdate,n.closeMediaCard),n.canvas_pos.set_boolean_move_on_click(!0),n.canvas_pos.set_perspective(!0),n.canvas_pos.init_speed_interval(),Qt.default.jamy_update("flirty"),window.addEventListener("resize",(function(){n.setRefFromLeft()})),(e=document.createElement("style")).innerHTML='.Canvas-Wrapper-Overflow.Shown {\n animation-name: canvanimation;\n transform-origin: center center !important;\n animation-fill-mode: both;\n animation-duration: 325ms;\n animation-delay: 25ms;\n animation-timing-function: linear;\n }\n .Canvas-Wrapper-Overflow .Canvas-Wrapper::after {\n content: "";\n position: fixed;\n width: 100%;\n background: linear-gradient(to top, #ffffff00 0%, #1700ff14 14%, #1700ff57 21%, transparent);\n height: 50%;\n left: 0;\n z-index: 2;\n top: 100%;\n }\n .Canvas-Wrapper-Overflow.Shown .Canvas-Wrapper::after {\n animation-name: canvanimationscan;\n animation-fill-mode: both;\n animation-duration: 675ms;\n animation-delay: 525ms;\n animation-timing-function: linear;\n }\n .Canvas-Wrapper-Overflow.Not-Shown {\n animation-name: canvanimation;\n transform-origin: center center !important;\n animation-fill-mode: both;\n animation-duration: 300ms;\n animation-delay: 50ms;\n animation-timing-function: linear;\n animation-direction: reverse;\n }\n @keyframes canvanimation { \n 0% { transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.0); will-change: transform, filter; }\n 4.3% { transform: matrix3d(0.12, 0, 0, 0, 0, 0.271, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.3); will-change: transform, filter; }\n 8.61% { transform: matrix3d(.64, 0, 0, 0, 0, .818, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.7); will-change: transform, filter; }\n 12.91% { transform: matrix3d(1.16, 0, 0, 0, 0, 1.078, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(.9); will-change: transform, filter; }\n 17.22% { transform: matrix3d(1.25, 0, 0, 0, 0, 1.11, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 28.33% { transform: matrix3d(1.04, 0, 0, 0, 0, 1.031, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 39.44% { transform: matrix3d(.98, 0, 0, 0, 0, .991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 61.66% { transform: matrix3d(1.01, 0, 0, 0, 0, 1.001, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 83.98% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: transform, filter; }\n 100% { transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); filter: opacity(1); will-change: initial; } \n }\n @keyframes canvanimationscan { \n 0% { top: -50%; mix-blend-mode: screen; }\n 100% { top: 100%; mix-blend-mode: none; } \n }',e.id="media-style",document.head.appendChild(e),window.addEventListener("resize",n.updateDimension),n.setst4te({_h_svg:(0,Et.createLocalBlob)((0,wt.default)(r.default.createElement(Ut.default,{color:"rgba(1,17,255,0.1)"}))),_h_svg_size:"100px 115px"},(function(){n.forceUpdate((function(){n.updateDimension()}))})),setTimeout((function(){n.forceUpdate((function(){n.setRefFromLeft(null)}))}),1e3)},n.goToEditor=function(){Qt.default.load_with("")},n.updateDimension=function(){var e,t,A,a;n.setRefFromLeft(null),e=document.documentElement,t=document.body||document.getElementsByTagName("body")[0],A=window.innerWidth||e.clientWidth||t.clientWidth,window.innerHeight||e.clientHeight||t.clientHeight,a=!!(A<1280),n.setst4te({isMobile:a})},n.handleTabChange=function(e,t){n.setst4te({tabValue:t},(function(){n.forceUpdate()}))},n.handleTabTagChange=function(e,t){n.setst4te({tabTagValue:t},(function(){n.forceUpdate()}))},n.handleMainTabChange=function(e,t){n.setst4te({mainTabValue:t},(function(){n.forceUpdate()}))},n.toggleFavoriteAtIndex=function(e){var t=n.st4te.imagesProfile;t[e].favorite=!t[e].favorite,n.setst4te({imagesProfile:t},(function(){n.forceUpdate()}))},n.requestForceUpdate=function(){n.forceUpdate()},n.renderMedia=function(e,t,a){var i;switch(n.setst4te({renderingMenuAnchorEl:null},(function(){n.forceUpdate()})),URL.revokeObjectURL(n.st4te.src),i=function(e){var t,A,a=document.createElement("canvas");a.width=e.width,a.height=e.height,(t=a.getContext("2d")).putImageData(e,0,0),A=t.canvas.toDataURL("image/png"),n.setst4te({src:A,type:"png"},(function(){n.forceUpdate()}))},e){case"pixelated":Qt.default.trigger_voice("vision_deactivated"),n.setst4te({src:n.st4te.openedMediaData.src,type:"png"},(function(){n.forceUpdate()}));break;case"crt":(0,yt.default)((function(){return A.e(3).then(A.t.bind(null,719,7))})).then((function(e){(0,e.crt)(t,960/Math.sqrt(t.width*t.height)|0,vt.default).then(i)}));break;case"hex":Qt.default.trigger_loading_update(0),(0,yt.default)((function(){return A.e(6).then(A.t.bind(null,720,7))})).then((function(e){e.hexagonrender(t,2974.451209887296/Math.sqrt(t.width*t.height)|0,!1).then((function(e){n.setst4te({src:e,type:"png"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(66),(0,yt.default)((function(){return A.e(0).then(A.t.bind(null,656,7))})).then((function(t){(0,t.png_quant)(e,30,100,3,vt.default).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"png"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("enhanced")}))}))}))}))}))}));break;case"svg":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),(0,yt.default)((function(){return A.e(4).then(A.t.bind(null,721,7))})).then((function(e){e.default(t,6,vt.default).then((function(e){(0,Gt.createSVG)(e).then((function(e){n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(75),Qt.default.trigger_voice("vision_activated"),n.forceUpdate();var t=new FileReader;t.onload=function(e){var t=e.target.result;(0,yt.default)((function(){return A.e(2).then(A.bind(null,689))})).then((function(e){var A=e.optimize;t=A(t,{path:"path-to.svg",multipass:!0,mergePaths:!0,mergeStyles:!0,collapseGroups:!0,reusePaths:!0,plugin:["multipass","mergePaths","collapseGroups","reusePaths","mergeStyles"]}).data,URL.revokeObjectURL(n.st4te.src),n.setst4te({src:"data:image/svg+xml;base64,"+window.btoa(t),type:"svg"},(function(){n.forceUpdate(),Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("enhanced")}))}))},fetch(e).then((function(e){e.blob().then((function(e){t.readAsText(e)}))}))}))}))}))}));break;case"tree":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),new rt.default({shape:"circle"}).loadImage(t).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("vision_activated"),n.forceUpdate()}))}));break;case"poly":Qt.default.trigger_loading_update(0),Qt.default.trigger_voice("processing"),new lt.default({size:2974.451209887296/Math.sqrt(a.width*a.height)|0}).processImage(t,!0).then((function(e){URL.revokeObjectURL(n.st4te.src),n.setst4te({src:e,type:"svg"},(function(){Qt.default.trigger_loading_update(100),Qt.default.trigger_voice("vision_activated"),n.forceUpdate()}))}))}},n.openMediaCard=function(e){Qt.default.trigger_sfx("navigation_selection-complete-celebration"),n.setst4te({openedMediaData:e,src:e.src},(function(){n.forceUpdate(),(0,at.getImageDataFromBase64)(e.src).then((function(e){n.canvas_pos.set_sizes(e.width,e.height),n.canvas_pos.set_current_scale_default(),n.setst4te({openedMediaDataData:e},(function(){n.forceUpdate()}))}))}))},n.closeMediaCard=function(){URL.revokeObjectURL(n.st4te.src),Qt.default.trigger_sfx("st4te-change_confirm_down"),n.setst4te({openedMediaData:null},(function(){n.forceUpdate()}))},n.setRefFromLeft=function(e){null==e&&null==n.st4te.refleft||n.setst4te({refleft:e||n.st4te.refleft},(function(){var t=window.innerWidth,A=n.st4te.refleft.getBoundingClientRect(),a=t>800?A.width-384:A.width,i=A.height||0,r=A.left||0,o=A.top||0;n.canvas_pos.set_canvas_container(o,r,i,a),e&&(e.addEventListener("wheel",n._canvas_pos_handle_wheel,{passive:!1}),e.addEventListener("pointerdown",n._canvas_pos_handle_pointer_down,{passive:!1}),e.addEventListener("pointermove",n._canvas_pos_handle_pointer_move,{passive:!1}),e.addEventListener("pointerup",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointercancel",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerout",n._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerleave",n._canvas_pos_handle_pointer_up,{passive:!1}))}))},n._canvas_pos_handle_wheel=function(e){n.canvas_pos.handle_wheel(e)},n._canvas_pos_handle_pointer_down=function(e){n.canvas_pos.handle_pointer_down(e)},n._canvas_pos_handle_pointer_move=function(e){n.canvas_pos.handle_pointer_move(e)},n._canvas_pos_handle_pointer_up=function(e){n.canvas_pos.handle_pointer_up(e)},n.edit=function(e){Qt.default.load_with(e)},n.toggleDrawer=function(){n.setst4te({openedDrawer:!n.st4te.openedDrawer})},n.toggleHashtagDrawer=function(){n.setst4te({drawerHashtagOpen:!n.st4te.drawerHashtagOpen})},n.toggleFavoriteTag=function(e){var t,A,a=n.st4te.categories;for(t=0;t800?400:14,top:16}},r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.download(O,B.name,"sophia.julio",x)}},r.default.createElement(Ge.default,null,r.default.createElement(mt.default,null))),r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.edit(B.src)}},r.default.createElement(Ge.default,null,r.default.createElement(De.default,null))),r.default.createElement(K.default,{style:{color:"#ffffff"},onClick:function(){e.closeMediaCard()}},r.default.createElement(Ge.default,null,r.default.createElement(Oe.default,null)))),r.default.createElement("div",{style:{position:"absolute",bottom:16,left:16}},r.default.createElement(u.default,{title:"14 Reposts"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Re.default,null)))),r.default.createElement(u.default,{title:"88 UpVotes"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Se.default,null)))),r.default.createElement(u.default,{title:"0 DownVote"},r.default.createElement(K.default,null,r.default.createElement(Ge.default,null,r.default.createElement(Be.default,null))))),r.default.createElement("div",{style:{position:"absolute",bottom:16,right:16,display:window.innerWidth>=800?"none":"block"}},r.default.createElement(k.default,{style:{color:"white",fontWeight:"bold"},onClick:function(){e.toggleDrawer(B.src)}},"Details"))),B&&S&&r.default.createElement(nt.default,{className:A.drawer,variant:"persistent",anchor:window.innerWidth>=800?"right":"bottom",open:D,classes:{paper:A.drawerPaper}},r.default.createElement(K.default,{onClick:this.toggleDrawer,style:{display:window.innerWidth>=800?"none":"block",color:"#060e23",width:64,height:64,position:"fixed",right:4,top:4}},r.default.createElement(Oe.default,null)),r.default.createElement("h1",null,B.name),r.default.createElement("h2",null,(S.colors||[]).length," Colors"),r.default.createElement("div",{className:A.colors},(S.colors||[]).map((function(t,A){return r.default.createElement(u.default,{title:t,key:A},r.default.createElement(K.default,{disableRipple:!0,onClick:function(A){e.props.onClick(A,t)},style:{background:t,width:24,height:24,borderRadius:"2px",margin:4}}))}))),r.default.createElement("h2",null,"Description"),r.default.createElement("p",{style:{textAlign:"justify",margin:"8px 16px"}},"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."),r.default.createElement("h2",null,"st4te"),r.default.createElement(ct.default,{dense:!0,className:A.list},r.default.createElement(w.default,{divider:!0},r.default.createElement(dt.default,{primary:"Created:"}),r.default.createElement(ft.default,null,"Just now")),r.default.createElement(w.default,{divider:!0},r.default.createElement(dt.default,{primary:"Author:"}),r.default.createElement(ft.default,null,"@sophia.julio")),r.default.createElement(w.default,{divider:!0},r.default.createElement(dt.default,{primary:"Status:"}),r.default.createElement(ft.default,{style:{color:B.sold?"red":"green"}},B.sold?"Sold":"For sale!")),r.default.createElement(w.default,{divider:!0},r.default.createElement(dt.default,{primary:"Price:"}),r.default.createElement(ft.default,null,B.price," ",B.money)),r.default.createElement(w.default,{divider:!0},r.default.createElement(dt.default,{primary:"Dimension:"}),r.default.createElement(ft.default,null,S.width,"x",S.height))),r.default.createElement(k.default,{style:{fontWeight:"bold",margin:"8px 16px 32px 16px",backgroundColor:"rgb(0 28 255 / 25%)",color:"#001238",width:"calc(100% - 32px)"},color:"primary"},"BUY NOW"))))}}]),t}(r.default.PureComponent),t.default=(0,s.default)(Lt)(Zt)},651:function(e,t,A){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;A>>0,this.rgba_[3]=e>>24&255,this.rgba_[2]=e>>16&255,this.rgba_[1]=e>>8&255,this.rgba_[0]=255&e}},{key:"r",get:function(){return this.rgba_[0]}},{key:"g",get:function(){return this.rgba_[1]}},{key:"b",get:function(){return this.rgba_[2]}},{key:"a",get:function(){return this.rgba_[3]}},{key:"rgba",get:function(){return this.rgba_.subarray(0,4)}},{key:"uint32",get:function(){return(this.r<<24|this.g<<16|this.b<<8|this.a)>>>0}}],[{key:"createUint32",value:function(t){return new e(new Uint8Array(Uint32Array.of((0|t)>>>0).buffer))}}]),e}(),t.default=a},652:function(e,t,A){"use strict";var n,a,i,r,o;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;A>>0,A[1]=(A[1]+t[1]|0)>>>0,A[2]=(A[2]+t[2]|0)>>>0,A[3]=(A[3]+t[3]|0)>>>0})),t=e.length,new i.default(Uint8Array.of(A[0]/t|0,A[1]/t|0,A[2]/t|0,A[3]/t|0))}}]),e}(),t.default=r},654:function(e,t,A){"use strict";var n,a=A(653),i=A(647),r=(0,i.SIMDopeCreateConfAdd)({create:{new_of:!0},properties:{uint32:!0,laba:!0,rgbaon4bits:!0,rgbaon6bits:!0,rgbaon8bits:!0,rgbaon12bits:!0,rgbaon16bits:!0,skin:!0},methods:{simplify:!0,get_new_element:!0,get_use_element:!0,set_tail:!0,is_dark:!0,blend_first_with:!0,blend_first_with_tails:!0,blend_all:!0,manhattan_match_with:!0,copy:!0}}),o=Math.fround,l=o(1),s=o(.777),c=(0,i.SIMDopeCreate)(r),u=c.simdops,f=c.Color,g=c.Colors,d=(u.minus_int,u.int_not_equal,u.plus_int,u.plus_uint,u.minus_uint,u.multiply_int,u.multiply_uint,u.multiply_uint_4),h=(u.divide_uint,u.clamp_uint8,u.clamp_uint32,u.int_equal,u.uint_less,u.int_less,u.int_greater_equal,u.uint_not_equal,u.uint_less_equal,u.min_uint,function e(t){if(t=t||{},!(this instanceof e))return new e(t);t.pxl_colors=t.pxl_colors||new Uint32Array(0),t.pxls=t.pxls||new Uint32Array(0),this.new_pxls_="buffer"in t.pxls?new Uint32Array(t.pxls.buffer):Uint32Array.from(t.pxls),this.new_pxl_colors_="buffer"in t.pxl_colors?new g(t.pxl_colors.buffer):new g(Uint32Array.from(t.pxl_colors).buffer),this.original_pxls_=this.new_pxls_.slice(0,this.new_pxls_.length),this.original_pxl_colors_=this.new_pxl_colors_.slice_uint32(0,this.new_pxl_colors_.length);var A=0|this.new_pxl_colors_.length;this.new_pxl_colors_is_skin_mask_=new a.SetFixed(0|A),this.set_new_pxl_skin_mask(),this.best_color_number_=t.number_of_color,this.max_cluster_=A>65536?65537:A>16384?4097:A>8192?257:A>512?17:1,this.index_clusters_=Array(this.max_cluster_),this.length_clusters_=new Uint32Array(this.max_cluster_),this.pxl_colors_usage_=new Uint32Array(A),this.all_index_clusters_=new Uint32Array(A),this.clean_pxl_colors_=new Uint32Array(A),this.clean_pxl_colors_lookup_={},this.is_skin_ops_=0,this.match_ops_=0,this.blend_ops_=0,this.remove_duplicate_ops_=0,this.simplify_ops_=0,this.classify_on_x_bits_ops_=0});Object.defineProperty(h.prototype,"set_is_skin_ops",{get:function(){return function(e){this.is_skin_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_match_ops",{get:function(){return function(e){this.match_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_blend_ops",{get:function(){return function(e){this.blend_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_remove_duplicate_ops",{get:function(){return function(e){this.remove_duplicate_ops_=(0|e)>>>0}}}),Object.defineProperty(h.prototype,"set_simplify_ops",{get:function(){return function(e){this.simplify_ops_=e}}}),Object.defineProperty(h.prototype,"set_classify_on_x_bits_ops",{get:function(){return function(e){this.classify_on_x_bits_ops_=e}}}),Object.defineProperty(h.prototype,"get_is_skin_ops",{get:function(){return function(){return 0|this.is_skin_ops_}}}),Object.defineProperty(h.prototype,"get_match_ops",{get:function(){return function(){return 0|this.match_ops_}}}),Object.defineProperty(h.prototype,"get_blend_ops",{get:function(){return function(){return 0|this.blend_ops_}}}),Object.defineProperty(h.prototype,"get_remove_duplicate_ops",{get:function(){return function(){return 0|this.remove_duplicate_ops_}}}),Object.defineProperty(h.prototype,"get_simplify_ops",{get:function(){return function(){return this.simplify_ops_}}}),Object.defineProperty(h.prototype,"get_classify_on_x_bits_ops",{get:function(){return function(){return this.classify_on_x_bits_ops_}}}),Object.defineProperty(h.prototype,"reset_deduplicate",{get:function(){return function(e){this.clean_pxl_colors_lookup_={},this.pxl_colors_usage_.fill(0,0,0|e),this.clean_pxl_colors_.fill(0,0,0|e)}}}),Object.defineProperty(h.prototype,"index_of_color_within_cleaned",{get:function(){return function(e){return(0|this.clean_pxl_colors_lookup_[(0|e)>>>0])-1|0}}}),Object.defineProperty(h.prototype,"set_cleaned_pxl_colors",{get:function(){return function(e,t){this.clean_pxl_colors_[(0|e)>>>0]=(0|t)>>>0,this.clean_pxl_colors_lookup_[(0|t)>>>0]=(e+1|0)>>>0}}}),Object.defineProperty(h.prototype,"increase_color_usage",{get:function(){return function(e){this.pxl_colors_usage_[(0|e)>>>0]=(this.pxl_colors_usage_[(0|e)>>>0]+1|0)>>>0}}}),Object.defineProperty(h.prototype,"set_new_pxls",{get:function(){return function(e,t){this.new_pxls_[(0|e)>>>0]=(0|t)>>>0}}}),Object.defineProperty(h.prototype,"set_new_pxl_colors",{get:function(){return function(e){this.new_pxl_colors_=new g(this.clean_pxl_colors_.buffer.slice(0,d(0|e))),this.set_new_pxl_skin_mask()}}}),Object.defineProperty(h.prototype,"set_new_pxl_skin_mask",{get:function(){return function(){var e=new f(new ArrayBuffer(4)),t=0|this.new_pxl_colors_.length,A=0;for(this.new_pxl_colors_is_skin_mask_=new a.SetFixed(0|t);(0|A)<(0|t);A=A+1|0)this.new_pxl_colors_.get_use_element(0|A,e).skin&&this.new_pxl_colors_is_skin_mask_.add(0|A);this.set_is_skin_ops(this.get_is_skin_ops()+A|0)}}}),Object.defineProperty(h.prototype,"get_a_new_pxl_color_from_pxl_index",{get:function(){return function(e){return 4294967295&this.new_pxl_colors_.buffer_getUint32(this.new_pxls_[0|e])}}}),Object.defineProperty(h.prototype,"reset_cluster",{get:function(){return function(){this.max_cluster_=this.new_pxl_colors_.length>65536?65537:this.new_pxl_colors_.length>16384?4097:this.new_pxl_colors_.length>8192?257:this.new_pxl_colors_.length>512?17:1,this.length_clusters_.fill(0,0,0|this.max_cluster);for(var e=0;(0|e)<(0|this.max_cluster);e=(e+1|0)>>>0)this.index_clusters_[0|e]=[]}}}),Object.defineProperty(h.prototype,"reset_original_data",{get:function(){return function(){this.new_pxl_colors_=new g(this.original_pxl_colors_.slice(0,this.original_pxl_colors_.length).buffer),this.new_pxls_=this.original_pxls_.slice(0,this.original_pxls_.length)}}}),Object.defineProperty(h.prototype,"add_in_indexes_cluster",{get:function(){return function(e,t){this.index_clusters_[(0|e)>>>0].push((0|t)>>>0)}}}),Object.defineProperty(h.prototype,"set_all_cluster_indexes",{get:function(){return function(){for(var e=0,t=0;(0|e)<(0|this.max_cluster);e=(e+1|0)>>>0)this.all_index_clusters_.set(this.index_clusters_[(0|e)>>>0],(0|t)>>>0),t=(t+this.get_length_in_index_clusters(0|e)|0)>>>0}}}),Object.defineProperty(h.prototype,"get_length_in_index_clusters",{get:function(){return function(e){return(0|this.index_clusters_[(0|e)>>>0].length)>>>0}}}),Object.defineProperty(h.prototype,"get_in_cluster_lengths",{get:function(){return function(e){return(0|this.length_clusters_[(0|e)>>>0])>>>0}}}),Object.defineProperty(h.prototype,"get_an_index_in_clusters",{get:function(){return function(e){return(0|this.all_index_clusters_[0|e])>>>0}}}),Object.defineProperty(h.prototype,"get_a_color_usage",{get:function(){return function(e){return(0|this.pxl_colors_usage_[0|e])>>>0}}}),Object.defineProperty(h.prototype,"set_a_color_usage",{get:function(){return function(e,t){return this.pxl_colors_usage_[0|e]=(0|t)>>>0}}}),Object.defineProperty(h.prototype,"get_a_color_usage_percent",{get:function(){return function(e){return o(this.pxl_colors_usage_[0|e]/this.new_pxls_.length)}}}),Object.defineProperty(h.prototype,"get_average_color_usage_percent",{get:function(){return function(e,t){var A,n,a;for(t=0|((t|=0)<(e|=0)?this.pxl_colors_usage_.length:t),A=0,n=0,a=0,n=0|e;(0|n)<(0|t);n=(n+1|0)>>>0)a=(0|this.get_an_index_in_clusters((0|n)>>>0))>>>0,A+=this.pxl_colors_usage_[0|a]/this.new_pxls_.length;return A/(t-e|0)}}}),Object.defineProperty(h.prototype,"get_a_new_pxl_color",{get:function(){return function(e){return this.new_pxl_colors_.get_new_element(0|e)}}}),Object.defineProperty(h.prototype,"is_pxl_color_skin",{get:function(){return function(e){return this.new_pxl_colors_is_skin_mask_.has(0|e)}}}),Object.defineProperty(h.prototype,"max_cluster",{get:function(){return 0|this.max_cluster_}}),Object.defineProperty(h.prototype,"new_pxls_length",{get:function(){return 0|this.new_pxls_.length}}),Object.defineProperty(h.prototype,"new_pxl_colors_length",{get:function(){return 0|this.new_pxl_colors_.length}}),Object.defineProperty(h.prototype,"best_color_number",{get:function(){return 0|this.best_color_number_}}),Object.defineProperty(h.prototype,"get_data",{get:function(){return function(){return Array.of(this.new_pxls_,this.new_pxl_colors_.slice_uint32(0,this.new_pxl_colors_.length),{deduplicate:this.get_remove_duplicate_ops(),simplify:this.get_simplify_ops(),classify:this.get_classify_on_x_bits_ops(),skin:this.get_is_skin_ops(),blend:this.get_blend_ops(),match:this.get_match_ops()})}}}),h.prototype.output=function(e){var t,A;return e=e||"heap",t=this.get_data(),"heap"==e?((A=new Uint32Array(2+t[0].length+t[1].length))[0]=0|t[0].length,A[1]=0|t[1].length,A.set(t[0],2),A.set(t[1],2+t[0].length),A.buffer):t},h.prototype.deduplicate=function(){var e,t,A,n,a;for(this.set_remove_duplicate_ops(this.get_remove_duplicate_ops()+1|0),this.reset_deduplicate(0|this.new_pxl_colors_length),e=0,t=0,A=0,n=0,a=0|this.new_pxls_length;(0|n)<(0|a);n=(n+1|0)>>>0)t=0|this.get_a_new_pxl_color_from_pxl_index(0|n),-1==(0|(A=0|this.index_of_color_within_cleaned(0|t)))&&(this.set_cleaned_pxl_colors(0|e,0|t),A=0|e,e=e+1|0),this.increase_color_usage(0|A),this.set_new_pxls(0|n,0|A);this.set_new_pxl_colors(e)},h.prototype.clusterize=function(){this.reset_cluster();var e=0;if(65537===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon16bits)>>>0,(0|e)>>>0);else if(4097===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon12bits)>>>0,(0|e)>>>0);else if(257===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon8bits)>>>0,(0|e)>>>0);else if(17===this.max_cluster)for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster((0|this.get_a_new_pxl_color((0|e)>>>0).rgbaon4bits)>>>0,(0|e)>>>0);else for(;(0|e)<(0|this.new_pxl_colors_length);e=(e+1|0)>>>0)this.add_in_indexes_cluster(0,(0|e)>>>0);this.max_cluster>1&&this.set_classify_on_x_bits_ops(this.get_classify_on_x_bits_ops()+this.new_pxl_colors_length),this.set_all_cluster_indexes()},h.prototype.process_threshold=function(e){var t,A,n,a,i,r,c,u,g,d,h,m,p,C,E,B,U,S,w,R,v,b,y,O,Q,x;for(A=function(e,A){return o(Math.pow(e,t)/A)}(e=(0|e)>>>0,Math.pow(100,t=1.5)),n=!1,a=[],i=[],r=0,c=0,d=!1,h=!1,m=0,p=0,C=0,E=0,B=0,U=0,v=0,b=0,y=0,O=0,Q=0,x=0,R=o((S=A)*s),w=o(S*l);(0|Q)<(0|this.max_cluster);Q=(Q+1|0)>>>0){for(c=(r+((0|this.get_length_in_index_clusters(0|Q))>>>0)|0)>>>0,B=this.get_average_color_usage_percent(0|r,0|c),y=0|r;(0|y)<(0|c);y=(y+1|0)>>>0){if(v=(0|this.get_an_index_in_clusters((0|y)>>>0))>>>0,u=this.get_a_new_pxl_color((0|v)>>>0),d=this.is_pxl_color_skin((0|v)>>>0),(0|(m=(0|this.get_a_color_usage((0|v)>>>0))>>>0))>0)for(a=[],O=0|r;(0|O)<(0|c);O=(O+1|0)>>>0)b=(0|this.get_an_index_in_clusters((0|O)>>>0))>>>0,g=this.get_a_new_pxl_color((0|b)>>>0),h=this.is_pxl_color_skin((0|b)>>>0),0|(p=(0|this.get_a_color_usage((0|b)>>>0))>>>0)&&(0|v)!=(0|b)&&(0|d)==(0|h)&&(C=this.get_a_color_usage_percent((0|v)>>>0)/B,E=this.get_a_color_usage_percent((0|b)>>>0)/B,x=o((x=d&&h?R:d||h?w:S)*(0*Math.abs(C-E)+.14*(2-(C+E))/2+.88)/1.02),u.manhattan_match_with(g,x)&&(U=o(p/m),n=!0,this.set_a_color_usage(0|b,0),a.push(g),i.push(U)));(0|a.length)>0&&(f.blend_all(u,a,i),a=[],i=[])}r=0|c}return n},h.prototype.round=function(){var e,t;if(this.new_pxl_colors_length>2048){for(e=0|(this.new_pxl_colors_length>6e4?4:this.new_pxl_colors_length>32e3?3:this.new_pxl_colors_length>16e3?2:this.new_pxl_colors_length>8192?1.5:this.new_pxl_colors_length>4096?1.25:1),t=0;(0|t)<(0|this.new_pxl_colors_length);t=(t+1|0)>>>0)this.get_a_new_pxl_color((0|t)>>>0).simplify(e);this.set_simplify_ops(this.get_simplify_ops()+this.new_pxl_colors_length)}},h.prototype.init=function(){return this.round(),this.deduplicate(),this.clusterize(),this},h.prototype.reset_original=function(){return this.reset_original_data(),this},h.prototype.run=function(){var e=0|(this.new_pxl_colors_length>6e4?12:this.new_pxl_colors_length>32e3?8:this.new_pxl_colors_length>16e3?4:this.new_pxl_colors_length>8192?3:this.new_pxl_colors_length>4096?2:1);if(this.new_pxl_colors_length<=this.best_color_number)return this.deduplicate(),this.clusterize(),this;for(;this.new_pxl_colors_length>this.best_color_number;)this.process_threshold(0|e)&&(this.deduplicate(),this.clusterize()),e=e+(this.new_pxl_colors_length>6e4?12:this.new_pxl_colors_length>32e3?8:this.new_pxl_colors_length>16e3?4:this.new_pxl_colors_length>8192?3:this.new_pxl_colors_length>4096?2:1)|0;return this.reset_original(),this.deduplicate(),this.clusterize(),this.process_threshold(0|e),this.deduplicate(),this.clusterize(),this},h.split_image_data=function(e){var t,A,n=new Uint32Array(e.data.buffer),a=Uint32Array.from(new Set(n)),i={},r=a.length,o=new Uint32Array(n.length);for(t=0,A=0|r;(0|t)<(0|A);t=(t+1|0)>>>0)i[a[0|t]]=(0|t)>>>0;for(t=0,A=0|n.length;(0|t)<(0|A);t=(t+1|0)>>>0)o[0|t]=(0|i[n[0|t]])>>>0;return[o,a,n,r]},n=function(e,t){return new Promise((function(A){var n,a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),4!==a.length);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(h.split_image_data(e)),i=a[0],r=a[1],o=a[2],l=a[3],s=Date.now(),c=h({pxls:i,pxl_colors:r,number_of_color:"auto"===t?l/1.314|0:parseFloat(t)<1?l-Math.ceil(l/25):t,width:e.width,height:e.height}).init().run().output("split"),u=Date.now(),f=c[0],g=0|f.length,d=c[1];for(n=0;(0|n)<(0|g);n=(n+1|0)>>>0)o[0|n]=(0|d[(0|f[0|n])>>>0])>>>0;A([e=new ImageData(new Uint8ClampedArray(o.buffer),e.width,e.height),f,d,l-d.length,d.length,u-s])}))},e.exports={QuantiMatGlobal:n,QuantiMat:h}},655:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,A,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.strength=t,this.tilesManager=A,this.tiles=A.getTiles(),this.width=n,this.height=a}},657:function(e,t,A){"use strict";var n,a;Object.defineProperty(t,"__esModule",{value:!0}),n=(a=A(670))&&a.__esModule?a:{default:a},t.default=n.default.pool({minWorkers:0,maxWorkers:3})},659:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,A=Array(e.length);t=4&&i<=32;)t=e[i],e[2*i-1],e[2*i],e[2*i+1],e[4*i-1],e[4*i],e[4*i+1],a<(A=t*i*(1+.1*i))&&(a=A,r=i),i++;return n=0,e.forEach((function(e,t){n+=e*t})),{tileSize:r,certainty:Math.fround(r*e[r]/n)}}var A,n,a,i,r,o,l,s=e.width,c=e.height,u=new Uint32Array(e.data.buffer),f=256,g=new Uint32Array(f),d=new Uint32Array(f),h=0,m=new Uint32Array(2);for(A=0;A1&&h0&&h1&&h0&&h>24&255)-(t>>24&255)),l((e>>16&255)-(t>>16&255)),l((e>>8&255)-(t>>8&255))),n=Uint16Array.of(s(A[0],A[0]),s(A[1],A[1]),s(A[2],A[2]));return(0|Math.sqrt((((n[0]<<1)+n[0]|0)+(n[1]<<2)+(n[2]<<1)|0)/10))>>>0}},{key:"quantizeImageData",value:function(e,t){var A,n,a,r,l=e.getImageData(0,0,e.canvas.width,e.canvas.height),s=Date.now(),c=o.QuantiMat.split_image_data(l),u=i(c,2),f=u[0],g=u[1],d=Date.now(),h=(0,o.QuantiMat)({pxls:f,pxl_colors:g,number_of_color:Math.min(g.length,t),width:l.width,height:l.height}).init().run().output("split"),m=Date.now();for(console.log(d-s,m-d),A=h[0],n=h[1],a=new Uint32Array(A.length),r=0;rr&&(i=o,r=t[o]);return i}},{key:"_calculateElbowStrength",value:function(e,t){var A,n,i,r=e.map((function(t,A){return A/(e.length-1)})),o=Math.max.apply(Math,a(e)),l=Math.min.apply(Math,a(e)),s=e.map((function(e){return(e-l)/(o-l)})),c=[0,s[0]],u=[1,s[s.length-1]],f=[r[t],s[t]],g=Math.sqrt(Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)),d=Math.abs(((i=u)[1]-(n=c)[1])*(A=f)[0]-(i[0]-n[0])*A[1]+i[0]*n[1]-i[1]*n[0])/Math.sqrt(Math.pow(i[1]-n[1],2)+Math.pow(i[0]-n[0],2));return Math.fround(d/g)}}]),e}(),t.default=c},660:function(e,t,A){"use strict";var n,a,i;Object.defineProperty(t,"__esModule",{value:!0}),n=function(){function e(e,t){var A,n;for(A=0;At&&(t=i,A=a)})),A}},{key:"distance",value:function(e,t){return this.c1.set_from_array(e),this.c2.set_from_array(t),16192*this.c1.fast_match_with(this.c2)|0}},{key:"reassignCentroids",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:16,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(this.initializeCentroids(),e=0,t=!1,A=void 0,n=function(){var n=r.centroids.map((function(e){return Uint32Array.from(e)}));r.assignClusters(),A=r.updateCentroids(),e++,t=r.centroids.every((function(e,t){return r.distance(e,n[t])<2})),l&&!t&&r.reassignCentroids(A)};!t&&e1&&void 0!==arguments[1]&&arguments[1],n=(0,a.default)(e);return A&&(t=/(?:#)[0-9a-f]{8}|(?:#)[0-9a-f]{6}|(?:#)[0-9a-f]{4}|(?:#)[0-9a-f]{3}/gi,n.match(t).forEach((function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),3!==a.length);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.match(/\w\w/g).map((function(e){return parseInt(e,16)}))),A=t[0],a=t[1],i=t[2],r=Math.round((A+a+i)/3),o=function(e,t,A){return e=e.toString(16),t=t.toString(16),A=A.toString(16),1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==A.length&&(A="0"+A),"#"+e+t+A}(r,r,r);n=n.replace(e,o)}))),(0,i.default)(n)}},667:function(e,t,A){"use strict";var n=A(668);e.exports={createLocalBlob:function(e){var t,A,a,i,r=(e.match(/(data\:([a-z]+\/[a-z\+]+)\;base64\,)([a-zA-Z0-9\/\+]+\(\=+)?/)||[,,])[1];return r?(A=(t=r.match(/data\:([a-z]+\/[a-z\+]+)\;base64\,/)[1]).match(/[a-z]+\/([a-z\+]+)/)[1],e=e.replace(r,""),a=(0,n.base64ToBytes)(e),i=new File([a],"name."+A,{type:t}),URL.createObjectURL(i)):""}}},668:function(e,t,A){"use strict";var n=new(A(266).B64chromium);e.exports={bytesToBase64:n.bytesToBase64.bind(n),base64ToBytes:n.base64ToBytes.bind(n)}},676:function(e,t,A){"use strict";var n,a=A(677),i=Object.getPrototypeOf((n=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e,this)})),function(){var e=n.apply(this,arguments);return new Promise((function(t,A){return function n(a,i){var r,o;try{o=(r=e[a](i)).value}catch(l){return void A(l)}if(!r.done)return Promise.resolve(o).then((function(e){n("next",e)}),(function(e){n("throw",e)}));t(o)}("next")}))})).constructor,r=Object.getPrototypeOf((function(){})).constructor,o=new r('var t = function(file) {\n "use strict";\n \n try {\n \n return new Promise(function(resolve, _) {\n resolve(new FileReaderSync().readAsDataURL(file));\n });\n \n } catch(error) {\n \n return new Promise(function(resolve, _) {\n var reader = new FileReader();\n reader.onload = function(){ resolve(reader.result)};\n reader.readAsDataURL(file);\n });\n }\n \n}; return t;')(),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==A?A.exec(o,[e]).catch((function(t){return o(e)})).timeout(5e3).then((function(e){t(e)})):o(e).then((function(e){t(e)}))},s=new i('var t = async function(base64) {\n\n "use strict";\n\n return fetch(base64).then(function(res) {\n\n return res.blob().then(function(blb){\n\n return createImageBitmap(blb, {\n resizeQuality: "pixelated",\n premultiplyAlpha: \'premultiply\'\n });\n });\n });\n\n}; return t;')(),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==A?A.exec(s,[e]).catch((function(t){return s(e)})).timeout(5e3).then((function(e){t(e)})):s(e).then((function(e){t(e)}))},u=function(e){for(var t,A,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2073600,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=1;Math.round(e.width*i)*Math.round(e.height*i)>n;)i-=.01;try{createImageBitmap(e,0,0,e.width,e.height,{resizeWidth:Math.round(e.width*i),resizeHeight:Math.round(e.height*i),resizeQuality:"pixelated",premultiplyAlpha:"premultiply"}).then((function(e){var t,A=void 0;try{A=new OffscreenCanvas(e.width,e.height)}catch(n){(A=document.createElement("canvas")).width=e.width,A.height=e.height}(t=A.getContext("2d")).imageSmoothingEnabled=!1,t.drawImage(e,0,0,e.width,e.height),a(t.getImageData(0,0,e.width,e.height))}))}catch(r){t=void 0;try{t=new OffscreenCanvas(Math.round(e.width*i),Math.round(e.height*i))}catch(o){(t=document.createElement("canvas")).width=Math.round(e.width*i),t.height=Math.round(e.height*i)}(A=t.getContext("2d")).imageSmoothingEnabled=!1,A.drawImage(e,0,0,t.width,t.height),a(A.getImageData(0,0,t.width,t.height))}},f=new r('var t = function(imagedata, type) {\n\n "use strict"\n type = type || "image/png";\n var quality = type.includes("webp") ? 1: type.includes("png") ? undefined: 0.7;\n try {\n \n return new Promise(function(resolve, _) {\n\n createImageBitmap(imagedata, 0, 0, imagedata.width, imagedata.height, {\n premultiplyAlpha: \'premultiply\',\n resizeQuality: \'pixelated\'\n }).then((bmp) => {\n \n var canvas;\n canvas = new OffscreenCanvas(imagedata.width, imagedata.height);\n var ctx = canvas.getContext("bitmaprenderer");\n ctx.imageSmoothingEnabled = false;\n ctx.transferFromImageBitmap(bmp);\n \n canvas.convertToBlob({type: type, quality: quality}).then((blb) => {\n try {\n resolve(new FileReaderSync().readAsDataURL(blb));\n } catch(e2) {\n var reader = new FileReader();\n reader.onload = function(){ resolve(reader.result)};\n reader.readAsDataURL(blb);\n }\n });\n });\n });\n \n }catch (e) {\n \n return new Promise(function(resolve, _) {\n var canvas = document.createElement("canvas");\n canvas.width = imagedata.width;\n canvas.height = imagedata.height;\n var ctx = canvas.getContext("2d");\n ctx.imageSmoothingEnabled = false;\n ctx.putImageData(imagedata, 0, 0);\n \n var base64 = canvas.toDataURL(type, quality);\n canvas = null;\n resolve(base64);\n });\n }\n\n}; return t;')();e.exports={file_to_imagedata_resized:function(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Date.now(),e.type,"image/jpg"!==e.type&&e.type,e.type,l(e,(function(e){c(e,(function(e){u(e,t,(function(e){A(e)}),n)}),n)}),n)},file_to_base64:l,base64_to_bitmap:c,bitmap_to_imagedata:u,imagedata_to_base64:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;null!==n?n.exec(f,[e,t]).catch((function(A){return f(e,t)})).timeout(5e3).then((function(e){A(e)})):f(e,t).then((function(e){A(e)}))},base64_sanitize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};(function(e,t,A){return A=A||"pixelize",new Promise((function(n,i){var r=new Image,o=e.startsWith("data:image/png;");r.onload=function(){var e,i,l=r.naturalWidth*t,s=r.naturalHeight*t,c=function(e,t,A,n){var i,r,o,l,s=void 0;if("pixelize"===n||"normal"===n){i=void 0,r=void 0;try{i=new OffscreenCanvas(e.width,e.height),r=new OffscreenCanvas(t,A)}catch(c){i=document.createElement("canvas"),r=document.createElement("canvas"),i.width=e.width,i.height=e.height,r.width=t,r.height=A}o=i.getContext("2d"),l=r.getContext("2d"),o.imageSmoothingEnabled=!("normal"!==n),l.imageSmoothingEnabled=!("normal"!==n),o.drawImage(e,0,0,e.width,e.height),l.drawImage(i,0,0,i.width,i.height,0,0,r.width,r.height),s=l}else"doppel"===n&&(s=a.scaler.processImage(e,t,A));return s}(r,0|l,0|s,A);try{e=c.getImageData(0,0,c.canvas.width,c.canvas.height),createImageBitmap(e).then((function(e){var t,A;try{t=new OffscreenCanvas(e.width,e.height)}catch(a){(t=document.createElement("canvas")).height=e.height,t.width=e.width}(A=t.getContext("bitmaprenderer")).imageSmoothingEnabled=!1,A.transferFromImageBitmap(e),t.convertToBlob({type:o?"image/png":"image/jpeg"}).then((function(e){try{n((new FileReaderSync).readAsDataURL(e))}catch(A){var t=new FileReader;t.onload=function(){n(t.result)},t.readAsDataURL(e)}}))}))}catch(u){i=c.canvas,n(i.toDataURL(o?"image/png":"image/jpeg"))}},r.onerror=function(){i()},r.src=e}))})(e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,arguments[4]).then((function(e){t(e)}))},file_to_bitmap:function(e,t){createImageBitmap(e).then(t)}}},677:function(e,t,A){"use strict";var n,a=(n=A(678))&&n.__esModule?n:{default:n},i=new a.default({strength:1,overlapFactor:1,despeckleStrength:.88});e.exports={scaler:i,ImageProcessor:a.default}},678:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s,c,u,f,g,d,h;Object.defineProperty(t,"__esModule",{value:!0}),a=function(){function e(e,t){var A,n;for(A=0;A.25&&(this.options.quantizeStrength=t,i=(a=this.imageManager.analyzeImageForTileSize(n)).tileSize,o=a.certainty,l=Math.sqrt(this.tileWidth*this.tileHeight),console.log(o,i),4*i>l&&i<4*l&&(console.log("changeFinalCanvasParameters: "+(this.canvas.width/i|0)+"/"+(this.canvas.height/i|0)),this.changeFinalCanvasParameters(this.canvas.width/i|0,this.canvas.height/i|0)))}},{key:"updateTiles",value:function(){this.tilesManager=new l.default(this.context,this.targetContext,this.targetImageData,this.sizes),this.tilesManager.createTiles(),this.tilesManager.computeTiles()}},{key:"paintTiles",value:function(){this.tilesManager.paintTiles()}},{key:"filterTiles",value:function(){this.filters.applyFilters()}},{key:"setCanvas",value:function(e,t,A){var n,a;e=0|e||1,t=0|t||1,A=A||{width:0,height:0},n=f.default.initializeCanvas(A),this.canvas=n.canvas,this.context=n.context,a=f.default.initializeCanvas(void 0,e,t),this.targetCanvas=a.canvas,this.targetContext=a.context,this.targetImageData=this.targetContext.getImageData(0,0,e,t),this.finalWidth=e,this.finalHeight=t,this.tileWidth=Math.fround(this.canvas.width/this.targetCanvas.width),this.tileHeight=Math.fround(this.canvas.height/this.targetCanvas.height)}},{key:"changeFinalCanvasParameters",value:function(e,t){e=0|e||1,t=0|t||1;var A=f.default.initializeCanvas(void 0,e,t);this.targetCanvas=A.canvas,this.targetContext=A.context,this.targetImageData=this.targetContext.getImageData(0,0,e,t),this.finalWidth=e,this.finalHeight=t,this.tileWidth=Math.fround(this.canvas.width/this.targetCanvas.width),this.tileHeight=Math.fround(this.canvas.height/this.targetCanvas.height)}},{key:"updateThreshold",value:function(){var e,t,A,n,a,i=this,r=this.tilesManager.getTiles(),o=[];for(e=0;e=this.finalWidth||r>=this.finalHeight||o.push(this.tiles[i+r*this.finalWidth]);return o}},{key:"paintTiles",value:function(){this.imageData.data.set(this.tilesColorUint8a),this.contextDestination.putImageData(this.imageData,0,0)}}]),e}(),t.default=r},680:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var A,n,a=[],i=!0,r=!1,o=void 0;try{for(A=e[Symbol.iterator]();!(i=(n=A.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&A.return&&A.return()}finally{if(r)throw o}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){var A,n;for(A=0;A2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.imageData=t,this.meanColor=new o.default(A),this.coordinates=Uint16Array.of(a,i),n=this.imageData.data.length,this.k=n>=64?8:n>=16?6:n>=9?4:n>=2?3:1}return i(e,[{key:"extractColorData",value:function(e){var t,A=Array(e.length/4);for(t=0;t=r-2&&(l.forEach((function(e){e.meanColor.setRGBA(A.meanColor.rgba);var t=e.x+e.y*n.width;a[t]=!0})),a[s]=!0)},A=0;A0&&a<60&&d.setRGBA(n.rgba);break;case"EDGE":i=new s.default(B[0].data),r=new s.default(B[1].data),l=o.default.colorDifference(i,r),c=o.default.colorDifference(i,d),f=o.default.colorDifference(r,d),5*Math.abs(c-f)>=l&&(g=new s.default(new u.default(m.map((function(e){return e.meanColor.rgba})),4).run(4).centroidsSorted[0].data),d.setRGBA(g.rgba))}}},{key:"determineClassification",value:function(e,t){return e[0].count>=.75*t?"AREA":Math.abs(e[0].count-e[1].count)*Math.abs(e[2].count-e[3].count)<25?"SHAPE":Math.abs(e[0].count-e[1].count)<.75*Math.abs(e[1].count-e[2].count)?"EDGE":"COMPLEX"}}]),t}(i.default),t.default=f},684:function(e,t,A){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a,i,r,o,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),a=function(){function e(e,t){var A,n;for(A=0;A3&&void 0!==arguments[3]?arguments[3]:[32,32,32,32],o=window.innerWidth,l=window.innerHeight;return o<800?(o-=0,l-=56):(o-=384,o-=64,l-=64),a=0,i=0,(n=e/t)S?r*(a-s)+u:l*(a-c)+f),{i:t,j:A,k:n,x:a,y:i,r:(g=p-a)*g+(d=C-i)*d}}function a(e){var t,A,n,a,i,r;for(A=e.length;A;)for(a=e[--A],n=e[--A],t=A;t;)if(r=e[--t],n===(i=e[--t])&&a===r||n===r&&a===i){e.splice(A,2),e.splice(t,2);break}}function i(e,t,A,n){t=(e=e||{width:0,height:0}).width||t||1,A=e.height||A||1;var a=void 0,i=void 0;try{if(!1===n)throw new ErrorEvent("Must support toDataURL later, skipping offrscreen canvas solution.");i=(a=new OffscreenCanvas(t,A)).getContext("2d",{willReadFrequently:!0,desynchronized:n})}catch(r){(a=document.createElement("canvas")).width=t,a.height=A,i=a.getContext("2d",{willReadFrequently:!0})}return e instanceof ImageData?i.putImageData(e,0,0):e.width&&i.drawImage(e,0,0,t,A),{canvas:a,context:i}}var r=function(){function e(e,t){var A,n;for(A=0;As&&(s=e[t][0]),e[t][1]c&&(c=e[t][1]);return[[(i=o+.5*(A=s-o))-20*(a=Math.max(A,n=c-l)),(r=l+.5*n)-a],[i,r+20*a],[i+20*a,r-a]]}(e),e.push(l[0],l[1],l[2]),s=[n(e,p+0,p+1,p+2)],c=[],u=[],A=r.length;A--;u.length=0){for(m=r[A],i=s.length;i--;)(f=e[m][0]-s[i].x)>0&&f*f>s[i].r?(c.push(s[i]),s.splice(i,1)):f*f+(g=e[m][1]-s[i].y)*g-s[i].r>o||(u.push(s[i].i,s[i].j,s[i].j,s[i].k,s[i].k,s[i].i),s.splice(i,1));for(a(u),i=u.length;i;)h=u[--i],d=u[--i],s.push(n(e,d,h,m))}for(A=s.length;A--;)c.push(s[A]);for(s.length=0,A=c.length;A--;)c[A].ie[0][0]&&t[0]>e[1][0]&&t[0]>e[2][0]||t[1]e[0][1]&&t[1]>e[1][1]&&t[1]>e[2][1]?null:(A=e[1][0]-e[0][0],n=e[2][0]-e[0][0],a=e[1][1]-e[0][1],0==(r=A*(i=e[2][1]-e[0][1])-n*a)?null:(o=(i*(t[0]-e[0][0])-n*(t[1]-e[0][1]))/r,l=(A*(t[1]-e[0][1])-a*(t[0]-e[0][0]))/r,o<0||l<0||o+l>1?null:[o,l]))}},s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:16};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t.size,this.delaunay=l}return r(e,[{key:"processImage",value:function(e,t){var A=this;return new Promise((function(n,a){if(!e)throw Error("Image source is undefined");var i=new Image;i.src=e,i.onload=function(){A.polygonize(i,t).then(n)},i.onerror=function(){a(Error("Invalid image source"))}}))}},{key:"polygonize",value:function(e,t){var A=this;return new Promise((function(n){var a,r,o=i(void 0,1,1,!0),l=i(void 0,1,1,!1),s=o.canvas,c=o.context,u=l.canvas,f=l.context,g=e.width*A.size,d=e.height*A.size;s.width=g,s.height=d,u.width=g,u.height=d,c.drawImage(e,0,0,g,d),a=A.generatePoints(g,d),r=A.delaunay.triangulate(a),A.svgElement=document.createElementNS("http://www.w3.org/2000/svg","svg"),A.svgElement.setAttribute("width",f.canvas.width),A.svgElement.setAttribute("height",f.canvas.height),A.drawTriangles(a,r,c,t?void 0:f),t?n(A.getSVGURL()):function(e,t){var A,n;try{e.toBlob((function(e){var A=URL.createObjectURL(e);t(A)}))}catch(a){A=function(e){var t,A=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),a=[];for(t=0;t, + price: 120, + value: 78.12, + sold: true, + favorite: true, + nsfw: false, + }, { src: "data:image/png;base64,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", name: "BaphoBomb",