1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f35968f1-2ec1-4e17-8ac1-bf37d49bb23b",e._sentryDebugIdIdentifier="sentry-dbid-f35968f1-2ec1-4e17-8ac1-bf37d49bb23b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1290],{93284:function(e,t,n){"use strict";n.d(t,{O:function(){return g}});var r=n(67294),i=n(3241),s=n(24241),a=(0,n(56817).k)(e=>({root:{display:"flex",alignItems:"center"},breadcrumb:{lineHeight:1,whiteSpace:"nowrap",WebkitTapHighlightColor:"transparent"},separator:{marginLeft:e.spacing.xs,marginRight:e.spacing.xs,color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[7],lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center"}})),o=n(95117),c=n(64523),l=Object.defineProperty,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&h(e,n,t[n]);if(u)for(var n of u(t))m.call(t,n)&&h(e,n,t[n]);return e},x=(e,t)=>{var n={};for(var r in e)d.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&u)for(var r of u(e))0>t.indexOf(r)&&m.call(e,r)&&(n[r]=e[r]);return n};let f={separator:"/"},g=(0,r.forwardRef)((e,t)=>{let n=(0,i.N4)("Breadcrumbs",f,e),{className:l,children:u,separator:d,classNames:m,styles:h,unstyled:g,variant:j}=n,v=x(n,["className","children","separator","classNames","styles","unstyled","variant"]),{classes:y,cx:b}=a(null,{classNames:m,styles:h,unstyled:g,name:"Breadcrumbs",variant:j}),w=r.Children.toArray(u).reduce((e,t,n,i)=>{var a;let c=(0,s.k)(t)?r.cloneElement(t,{className:b(y.breadcrumb,null==(a=t.props)?void 0:a.className),key:n}):r.createElement("div",{className:y.breadcrumb,key:n},t);return e.push(c),n!==i.length-1&&e.push(r.createElement(o.x,{size:"sm",className:y.separator,key:`separator-${n}`},d)),e},[]);return r.createElement(c.x,p({className:b(y.root,l),ref:t},v),w)});g.displayName="@mantine/core/Breadcrumbs"},72445:function(e,t,n){"use strict";n.d(t,{W:function(){return j}});var r=n(67294),i=n(96768),s=n(3241),a=n(56817),o=n(14258),c=(0,a.k)((e,{fluid:t,sizes:n},{size:r})=>({root:{paddingLeft:e.spacing.md,paddingRight:e.spacing.md,maxWidth:t?"100%":(0,o.a)({size:r,sizes:n}),marginLeft:"auto",marginRight:"auto"}})),l=n(64523),u=Object.defineProperty,d=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&p(e,n,t[n]);if(d)for(var n of d(t))h.call(t,n)&&p(e,n,t[n]);return e},f=(e,t)=>{var n={};for(var r in e)m.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&d)for(var r of d(e))0>t.indexOf(r)&&h.call(e,r)&&(n[r]=e[r]);return n};let g={sizes:{xs:(0,i.h)(540),sm:(0,i.h)(720),md:(0,i.h)(960),lg:(0,i.h)(1140),xl:(0,i.h)(1320)}},j=(0,r.forwardRef)((e,t)=>{let n=(0,s.N4)("Container",g,e),{className:i,fluid:a,size:o,unstyled:u,sizes:d,variant:m}=n,h=f(n,["className","fluid","size","unstyled","sizes","variant"]),{classes:p,cx:j}=c({fluid:a,sizes:d},{unstyled:u,name:"Container",variant:m,size:o});return r.createElement(l.x,x({className:j(p.root,i),ref:t},h))});j.displayName="@mantine/core/Container"},95887:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(67294),i=n(3241),s=Object.defineProperty,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>
1{for(var n in t||(t={}))o.call(t,n)&&l(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&l(e,n,t[n]);return e},d=(e,t)=>{var n={};for(var r in e)o.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))0>t.indexOf(r)&&c.call(e,r)&&(n[r]=e[r]);return n};let m={timeout:1e3};function h(e){let t=(0,i.N4)("CopyButton",m,e),{children:n,timeout:s,value:a}=t,o=d(t,["children","timeout","value"]),c=function({timeout:e=2e3}={}){let[t,n]=(0,r.useState)(null),[i,s]=(0,r.useState)(!1),[a,o]=(0,r.useState)(null),c=t=>{clearTimeout(a),o(setTimeout(()=>s(!1),e)),s(t)};return{copy:e=>{"clipboard"in navigator?navigator.clipboard.writeText(e).then(()=>c(!0)).catch(e=>n(e)):n(Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{s(!1),n(null),clearTimeout(a)},error:t,copied:i}}({timeout:s});return r.createElement(r.Fragment,null,n(u({copy:()=>c.copy(a),copied:c.copied},o)))}h.displayName="@mantine/core/CopyButton"},12185:function(e,t,n){"use strict";n.d(t,{h:function(){return o},y:function(){return a}});var r=n(67294),i=n(10129);let s={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function a(){let e=(0,r.useRef)(0),t=(0,r.useRef)(null),[n,a]=(0,r.useState)(s),o=(0,r.useMemo)(()=>"undefined"!=typeof window?new ResizeObserver(n=>{let r=n[0];r&&(cancelAnimationFrame(e.current),e.current=requestAnimationFrame(()=>{t.current&&a(r.contentRect)}))}):null,[]);return(0,i.Y)(()=>(t.current&&(o.observe(t.current),a(t.current.getBoundingClientRect())),()=>{o.disconnect(),e.current&&cancelAnimationFrame(e.current)}),[t.current]),[t,n]}function o(){let[e,{width:t,height:n}]=a();return{ref:e,width:t,height:n}}},27484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="week",s="month",a="quarter",o="year",c="date",l="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var x="$isDayjsObject",f=function(e){return e instanceof y||!(!e||!e[x])},g=function e(t,n,r){var i;if(!t)return h;if("string"==typeof t){var s=t.toLowerCase();p[s]&&(i=s),n&&(p[s]=n,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;p[o]=t,i=o}return!r&&i&&(h=i),i||!r&&h},j=function(e,t){if(f(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new y(n)},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+m(Math.floor(n/60),2,"0")+":"+m(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,s),a=n-i<0,o=t.clone().add(r+(a?-1:1),s);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:s,y:o,w:i,d:"day",D:c,h:r,m:n,s:t,ms:e,Q:a})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=g,v.i=f,v.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function m(e){this.$L=g(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var h=m.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(u);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return v},h.isValid=function(){return this.$d.toString()!==l},h.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return j(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<j(e)},h.$g=function(e,t,n){return v.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var l=this,u=!!v.u(a)||a,d=v.p(e),m=function(e,t){var n=v.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return u?n:n.endOf("day")},h=function(e,t){return v.w(l.toDate()[e].apply(l.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},p=this.$W,x=this.$M,f=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case o:return u?m(1,0):m(31,11);case s:return u?m(1,x):m(0,x+1);
1case i:var j=this.$locale().weekStart||0,y=(p<j?p+7:p)-j;return m(u?f-y:f+(6-y),x);case"day":case c:return h(g+"Hours",0);case r:return h(g+"Minutes",1);case n:return h(g+"Seconds",2);case t:return h(g+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,a){var l,u=v.p(i),d="set"+(this.$u?"UTC":""),m=((l={}).day=d+"Date",l[c]=d+"Date",l[s]=d+"Month",l[o]=d+"FullYear",l[r]=d+"Hours",l[n]=d+"Minutes",l[t]=d+"Seconds",l[e]=d+"Milliseconds",l)[u],h="day"===u?this.$D+(a-this.$W):a;if(u===s||u===o){var p=this.clone().set(c,1);p.$d[m](h),p.init(),this.$d=p.set(c,Math.min(this.$D,p.daysInMonth())).$d}else m&&this.$d[m](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[v.p(e)]()},h.add=function(e,a){var c,l=this;e=Number(e);var u=v.p(a),d=function(t){var n=j(l);return v.w(n.date(n.date()+Math.round(t*e)),l)};if(u===s)return this.set(s,this.$M+e);if(u===o)return this.set(o,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var m=((c={})[n]=6e4,c[r]=36e5,c[t]=1e3,c)[u]||1,h=this.$d.getTime()+e*m;return v.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),s=this.$H,a=this.$m,o=this.$M,c=n.weekdays,u=n.months,m=n.meridiem,h=function(e,n,i,s){return e&&(e[
1n]||e(t,r))||i[n].slice(0,s)},p=function(e){return v.s(s%12||12,e,"0")},x=m||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return o+1;case"MM":return v.s(o+1,2,"0");case"MMM":return h(n.monthsShort,o,u,3);case"MMMM":return h(u,o);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(s);case"HH":return v.s(s,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return x(s,a,!0);case"A":return x(s,a,!1);case"m":return String(a);case"mm":return v.s(a,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,c,l){var u,d=this,m=v.p(c),h=j(e),p=(h.utcOffset()-this.utcOffset())*6e4,x=this-h,f=function(){return v.m(d,h)};switch(m){case o:u=f()/12;break;case s:u=f();break;case a:u=f()/3;break;case i:u=(x-p)/6048e5;break;case"day":u=(x-p)/864e5;break;case r:u=x/36e5;break;case n:u=x/6e4;break;case t:u=x/1e3;break;default:u=x}return l?u:v.a(u)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return p[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=g(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return v.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},m}(),b=y.prototype;return j.prototype=b,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",s],["$y",o],["$D",c]].forEach(function(e){b[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,y,j),e.$i=!0),j},j.locale=g,j.isDayjs=f,j.unix=function(e){return j(1e3*e)},j.en=p[h],j.Ls=p,j.p={},j},e.exports=t()},39744:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/[uuid]",function(){return n(21907)}])},26900:function(e,t,n){"use strict";var r=n(37685),i=n(69575);t.Z=function(e){return Object.freeze({getPost:function(t){return e.get("/admin/posts/".concat(t)).then(e=>e.data)},updatePost:function(t,n){return e.put("/admin/posts/".concat(t),{nsfw_score:n}).then(e=>e.data)},deletePost:function(t){return e.delete("/admin/posts/".concat(t))},listPostReports:function(t){let{page:n=1,per_page:s=10}=t,a=(0,i.i)({page:n,per_page:s});return e.get("/admin/post_reports",{params:a}).then(e=>({data:e.data,...(0,r.dr)(e)}))},getModel:function(t){return e.get("/admin/models/".concat(t)).then(e=>e.data)},updateModel:function(t,n){return e.put("/admin/models/".concat(t),{nsfw_score:n}).then(e=>e.data)},deleteModel:function(t){return e.delete("/admin/models/".concat(t))},deleteModelVersion:function(t){return e.delete("/admin/model_versions/".concat(t))},listModelReports:function(t){let{page:n=1,per_page:s=10}=t,a=(0,i.i)({page:n,per_page:s});return e.get("/admin/model_reports",{params:a}).then(e=>({data:e.data,...(0,r.dr)(e)}))},getBanStatus:function(t){return e.get("/admin/users/".concat(t,"/ban")).then(e=>e.data)},ban:function(t,n,r){return e.post("/admin/users/".concat(t,"/ban"),{reason:n,days:r}).then(e=>e.data)},unban:function(t){return e.post("/admin/users/".concat(t,"/unban"))}})}},57098:function(e,t,n){"use strict";var r=n(85893),i=n(95887),s=n(88393),a=n(49834),o=n(3241),c=n(79986);t.Z=function(e){let{value:t}=e,n=(0,o.rZ)();return(0,r.jsx)(i.q,{value:t,children:e=>{let{copied:t,copy:i}=e;return t?(0,r.jsx)(s.u,{label:"Copied!",closeDelay:500,children:(0,r.jsx)(a.A,{variant:"transparent",onClick:i,c:n.colors.green[7],children:(0,r.jsx)(c.nQ,{strokeWidth:4,size:"1.2rem"})})}):(0,r.jsx)(a.A,{variant:"transparent",onClick:i,children:(0,r.jsx)(c.TI,{strokeWidth:2,size:"1.2rem"})})}})}},21600:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893),i=n(95117);function s(e){return(0,r.jsx)(i.x,{...e,variant:"dimmed"})}},18877:function(e,t,n){"use strict";var r=n(85893),i=n(72445);t.Z=function(e){let{children:t,...n}=e;return(0,r.jsx)(i.W,{sx:e=>({width:"100%",maxWidth:"80rem",padding:"4rem 2rem",[e.fn.smallerThan("sm")]:{width:"100%",padding:"var(--mobile-vertical-padding) var(--mobile-horizontal-padding)"}}),...n,children:t})}},44213:function(e,t,n){"use strict";var r=n(85893),i=n(56817),s=n(32103),a=n(43523),o=n(49834),c=n(79986);let l=(0,i.k)(e=>({leftButton:{zIndex:20,opacity:.7,position:"absolute",top:"50%",left:20,fontSize:e.fontSizes.xl,transform:"translateY(-50%)","&:active":{transform:"translateY(-50%)"},[e.fn.smallerThan("sm")]:{left:4}},rightButton:{zIndex:20,opacity:.7,position:"absolute",top:"50%",right:20,fontSize:e.fontSizes.xl,transform:"translateY(-50%)","&:active":{transform:"translateY(-50%)"},[e.fn.smallerThan("sm")]:{right:4}}}));t.Z=function(e){let{src:t,onClose:n,width:i,height:u,onPrev:d,onNext:m,hasNext:h,hasPrev:p,...x}=e,{classes:f}=l();return(0,r.jsxs)(s.u,{...x,fullScreen:!0,withCloseButton:!1,styles:()=>({header:{display:"none"},content:{backgroundColor:"rgba(0, 0, 0, 0.6)",boxShadow:"none",cursor:"zoom-out",margin:"0px !important",padding:"0px !important",borderRadius:"0px"},body:{margin:"0px !important",padding:"0px !important",borderRadius:"0px",backgroundColor:"red,"}
1,overlay:{cursor:"zoom-out"}}),onClose:n,closeOnClickOutside:!0,onClick:()=>n(),trapFocus:!1,children:[(0,r.jsx)(a.M,{onClick:()=>n(),h:"100vh",w:"100vw",sx:{overflow:"hidden"},children:(0,r.jsx)("img",{src:t,alt:"zoomed",style:{width:"100%",height:"100%",objectFit:"contain"}})}),p&&(0,r.jsx)(o.A,{className:f.leftButton,variant:"default",onClick:e=>{e.stopPropagation(),null==d||d()},h:"6rem",children:(0,r.jsx)(c.wy,{})}),h&&(0,r.jsx)(o.A,{className:f.rightButton,variant:"default",onClick:e=>{e.stopPropagation(),null==m||m()},h:"6rem",children:(0,r.jsx)(c.XC,{})})]})}},25523:function(e,t,n){"use strict";var r=n(85893),i=n(41664),s=n.n(i),a=n(64523),o=n(82623),c=n(71232),l=n(95117),u=n(78798),d=n(25140);t.Z=function(e){let{name:t,type:n,href:i,imageUrl:m,censorImage:h,...p}=e,x={};return i&&(x={component:s(),href:i}),(0,r.jsx)(a.x,{...p,children:(0,r.jsx)(o.X,{miw:"12rem",px:12,py:8,withBorder:!0,...x,fz:"sm",children:(0,r.jsxs)(c.Z,{noWrap:!0,spacing:12,children:[(0,r.jsx)(a.x,{children:(0,r.jsx)(d.Z,{src:m,w:44,h:44,censor:h})}),(0,r.jsxs)(a.x,{maw:"80%",children:[(0,r.jsx)(l.x,{fw:500,c:"white",lineClamp:1,sx:{wordBreak:"break-word"},children:t}),(0,r.jsxs)(a.x,{bg:"black",c:"gray.2",fz:"xs",fw:400,px:"4px",py:"2px",mt:0,sx:{borderRadius:5,display:"inline-block"},children:[n===u.BY.CHECKPOINT&&"Checkpoint",n===u.BY.EMBEDDING&&"Embedding",n===u.BY.LORA&&"LoRA"]})]})]})})})}},25140:function(e,t,n){"use strict";var r=n(85893),i=n(10856),s=n(25675),a=n.n(s),o=n(64523),c=n(43523),l=n(97564),u=n(12185),d=n(21600);t.Z=function(e){let{src:t,priority:n,censor:s,...m}=e,[h,p]=(0,u.y)();return!t||s?(0,r.jsx)(o.x,{ref:h,...m,children:(0,r.jsx)(c.M,{w:"100%",h:"100%",bg:"dark.9",sx:{borderRadius:"var(--image-radius)"},children:(0,r.jsxs)(l.K,{align:"center",spacing:"0.5rem",children:[(0,r.jsx)(i.IEp,{size:"50%",color:"var(--dimmed)",strokeWidth:1}),p&&p.width>150&&p.height>150&&(0,r.jsx)(d.Z,{fw:500,fz:"md",children:"NO IMAGE"})]})})}):(0,r.jsx)(o.x,{...m,pos:"relative",children:(0,r.jsx)(a(),{src:t,alt:t,fill:!0,style:{borderRadius:"var(--image-radius)"},priority:n})})}},87340:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),i=n(64523),s=n(43523),a=n(95117);function o(e){let{...t}=e;return(0,r.jsx)(i.x,{...t,children:(0,r.jsx)(s.M,{mih:"10rem",children:(0,r.jsx)(a.x,{children:"Log in to view NSFW content."})})})}},21907:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return e_},default:function(){return eS}});var r=n(85893),i=n(47389),s=n(18877),a=n(87340),o=n(37825),c=n(13480);function l(e){let{post:t,noindex:n}=e,i=(0,o.A)((0,o.n)().post(t.uuid)),s=[];t.nsfw||s.push({url:t.resized_url,alt:t.resized_url,width:t.resized_width,height:t.resized_height});let a="".concat(t.title," :: AI Art by ").concat(t.user.username);return(0,r.jsx)(c.Z,{title:a,description:t.description,canonical:i,images:s,noindex:n})}var u=n(67294),d=n(41664),m=n.n(d),h=n(11163),p=n(64523),x=n(97564),f=n(69876),g=n(95117),j=n(71232),v=n(93284),y=n(54777),b=n(91759),w=n(30202),k=n(78798),C=n(45142),_=n(93233),S=n(29579),z=n(17657),D=n(44213),$=n(58533),M=n(43523),O=n(20966),T=n(29726),N=n(37685),I=function(e){return Object.freeze({axiosInstance:e,list:function(t){let{uuid:n,page:r=1,per_page:i=20}=t;return e.get("/posts/".concat(n,"/comments"),{params:{page:r,per_page:i}}).then(e=>({data:e.data,...(0,N.dr)(e)}))},listReplies:function(t){let{parent_uuid:n,page:r=1,per_page:i=20}=t;return e.get("/post_comments/".concat(n,"/replies"),{params:{page:r,per_page:i}}).then(e=>({data:e.data,...(0,N.dr)(e)}))},create:function(t){return e.post("/post_comments",t).then(e=>e.data)},del:function(t){return e.delete("/post_comments/".concat(t)).then(e=>e.data)},rate:function(t,n){return e.post("/post_comments/".concat(t,"/rate"),{rating:n})},report:function(t,n){return e.post("/post_comments/".concat(t,"/report"),{reason:n})}})},Z=n(54102),E=n(54685),R=n(80061),P=n(67841),A=n(49834),F=n(77248),Y=n(98029),L=n(29867),U=n(97680),H=n(40413),W=n(79986),B=n(12245);let K=(0,n(56817).k)(()=>({avatar:{borderRadius:"50%",backgroundColor:"black"}}));function V(e){let{...t}=e,{classes:n}=K();return(0,r.jsx)(p.x,{children:(0,r.jsx)(p.x,{className:n.avatar,style:{width:t.size,height:t.size}})})}var q=function(e){let{postUUID:t,postCommentUUID:n,onCreate:i,showCloseButton:s,onClose:a,avatarSize:o,...c}=e,l=I((0,Z.b)()),[,u]=(0,U.f)(),d=(0,C.Z)(),m=(0,F.c)({initialValues:{content:""}}),h=(0,Y.D)({mutationFn:()=>l.create({post_uuid:t||"",content:m.values.content}),onSuccess:e=>{m.reset(),null==i||i(e)},onError:e=>{(0,N.zg)(e)===L.Z.TOO_MANY_POST_COMMENTS&&(0,H.HV)("Too many comments, please try again later.")}}),x=(0,Y.D)({mutationFn:()=>l.create({parent_comment_uuid:n||"",content:m.values.content}),onSuccess:e=>{m.reset(),null==i||i(e)},onError:e=>{(0,N.zg)(e)===L.Z.TOO_MANY_POST_COMMENTS&&(0,H.HV)("Too many comments, please try again later.")}}),v=n?x:h,y=!m.values.content.trim()||!!(null==d?void 0:d.community_banned_until);return(0,r.jsxs)(p.x,{w:"100%",...c,children:[(0,r.jsxs)(j.Z,{spacing:16,noWrap:!0,children:[(0,r.jsxs)(f.k,{children:[d&&(0,r.jsx)(B.Z,{size:o||34,username:d.username,src:d.sm_avatar_url,linked:!1}),!d&&(0,r.jsx)(V,{size:o||38})]}),(0,r.jsxs)(f.k,{sx:{flexGrow:2}
1,children:[(0,r.jsx)(p.x,{w:"100%",sx:{display:d?"none":"block",padding:"0.5rem 0.75rem",borderRadius:"5px"},bg:"dark.7",children:(0,r.jsx)(E.e,{onClick:()=>{u.open()},children:"Log in to leave a comment"})}),(0,r.jsx)("form",{style:{width:"100%",display:d?"flex":"none"},onSubmit:m.onSubmit(()=>v.mutate()),children:(0,r.jsxs)(j.Z,{w:"100%",pos:"relative",spacing:0,noWrap:!0,children:[(0,r.jsx)(R.o,{placeholder:"Add a comment..",size:"sm",sx:{zIndex:40,flexGrow:1},maxLength:200,...m.getInputProps("content")}),(0,r.jsx)(P.z,{ml:"8px",size:"sm",variant:"subtle",px:8,sx:{backgroundColor:"transparent",":hover":{backgroundColor:"transparent"},":disabled":{backgroundColor:"transparent",color:"var(--dimmed)"}},disabled:y,loading:v.isPending,type:"submit",children:"Post"}),s&&(0,r.jsx)(A.A,{variant:"transparent",onClick:()=>{m.reset(),null==a||a()},children:(0,r.jsx)(W.Tw,{size:"1.5rem"})})]})})]})]}),(null==d?void 0:d.community_banned_until)&&(0,r.jsxs)(g.x,{c:"red",mt:"0.5rem",children:["You are unable to post comments until ",(0,S.Jr)(d.community_banned_until)]})]})},G=n(34736),J=n(73946),X=n(21600),Q=n(88002),ee=n(32103),et=n(58654),en=function(e){let{uuid:t,onClose:n,...i}=e,s=I((0,Z.b)()),[a,o]=(0,u.useState)(k.uv.SPAM),c=()=>{o(k.uv.SPAM),n()},l=(0,Y.D)({mutationFn:()=>s.report(t,a),onSuccess:()=>{(0,H.ky)("Report submitted")}});return(0,r.jsxs)(ee.u,{title:"Report comment",onClose:c,...i,children:[(0,r.jsxs)(x.K,{children:[(0,r.jsx)(et.Y,{label:"Spam",checked:a===k.uv.SPAM,onChange:e=>{e.currentTarget.checked&&o(k.uv.SPAM)}}),(0,r.jsx)(et.Y,{label:"Child abuse",checked:a===k.uv.CHILD_ABUSE,onChange:e=>{e.currentTarget.checked&&o(k.uv.CHILD_ABUSE)}}),(0,r.jsx)(et.Y,{label:"Disturbing content",checked:a===k.uv.DISTURBING_CONTENT,onChange:e=>{e.currentTarget.checked&&o(k.uv.DISTURBING_CONTENT)}})]}),(0,r.jsxs)(j.Z,{position:"right",mt:"1rem",spacing:"0.5rem",children:[(0,r.jsx)(P.z,{variant:"default",onClick:c,children:"Cancel"}),(0,r.jsx)(P.z,{color:"green",onClick:()=>{l.mutate(),c()},loading:l.isPending,children:"Send"})]})]})},er=function(e){let{uuid:t,isCreator:n,onDelete:i,...s}=e,a=I((0,Z.b)()),o=(0,Y.D)({mutationFn:()=>a.del(t),onSuccess:()=>{null==i||i(t)}}),[c,l]=(0,b.q)(!1);return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(en,{uuid:t,onClose:()=>{l.close()},opened:c}),(0,r.jsx)(p.x,{...s,children:(0,r.jsxs)(Q.v,{children:[(0,r.jsx)(Q.v.Target,{children:(0,r.jsx)(A.A,{children:(0,r.jsx)(W.Yv,{size:"1.2rem"})})}),(0,r.jsxs)(Q.v.Dropdown,{children:[(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(W.pJ,{}),display:n?void 0:"none",onClick:()=>{o.mutate()},children:"Delete"}),(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(W.cW,{}),onClick:()=>{l.open()},display:n?"none":void 0,children:"Report"})]})]})})]})},ei=function(e){let{comment:t,onDelete:n,onReplyCreate:i,avatarSize:s,formAvatarSize:a,...c}=e,l=(0,C.Z)(),[,d]=(0,U.f)(),{update:h,liked:x,likeCount:f}=function(e){let{uuid:t,liked:n,likeCount:r}=e,i=I((0,Z.b)()),s=(0,C.Z)(),[a,o]=(0,u.useState)(!1),[c,l]=(0,J.v)({liked:n,likeCount:r});return(0,u.useEffect)(()=>{s&&a&&i.rate(t,c.liked?k.dF.LIKE:k.dF.NEUTRAL).finally(()=>o(!1))},[s,a,c,t,i]),{liked:c.liked,likeCount:c.likeCount,update:e=>{s&&(l(t=>({liked:e,likeCount:t.likeCount+(e?1:-1)})),o(!0))}}}({uuid:t.uuid,liked:t.rating===k.dF.LIKE,likeCount:t.like_count}),v=x?(0,r.jsx)(W.e7,{size:"1rem",color:"var(--heart-color)"}):(0,r.jsx)(W.h_,{size:"1rem"}),y=(0,r.jsx)(E.e,{fw:500,fz:"sm",c:"white",component:m(),href:(0,o.n)().profile(t.user.username),children:t.user.username}),b=(0,r.jsx)(B.Z,{size:s||34,username:t.user.username,src:t.user.sm_avatar_url});t.user_deleted&&(y=(0,r.jsx)(g.x,{fw:500,fz:"sm",c:"white",children:"(Deleted user)"}),b=(0,r.jsx)(V,{size:s||34}));let[w,_]=(0,u.useState)(!1),D=null;return t.mentioning_username&&(D=(0,r.jsxs)(E.e,{href:(0,o.n)().profile(t.mentioning_username),children:["@",t.mentioning_username," "]})),(0,r.jsx)(p.x,{...c,w:"100%",children:(0,r.jsxs)(j.Z,{spacing:16,align:"start",noWrap:!0,pos:"relative",children:[(0,r.jsx)(p.x,{children:b}),(0,r.jsxs)(p.x,{w:"100%",children:[y,(0,r.jsxs)(g.x,{mt:4,sx:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[D,t.content]}
1),(0,r.jsxs)(j.Z,{align:"end",children:[(0,r.jsx)(X.Z,{mt:4,fz:"sm",children:(0,S.Jr)(t.created_at)}),(0,r.jsx)(G.k,{fz:"sm",onClick:()=>{l?h(!x):d.open()},children:(0,r.jsx)(M.M,{children:(0,r.jsxs)(j.Z,{align:"center",spacing:4,children:[v,(0,r.jsx)(X.Z,{children:(0,z.yr)(f)})]})})}),(0,r.jsx)(E.e,{c:"dimmed",fz:"sm",onClick:()=>{_(!0)},sx:{display:l?"inline":"none"},children:"Reply"})]}),w&&(0,r.jsx)(p.x,{mt:"1rem",mb:"0.5rem",children:(0,r.jsx)(q,{postCommentUUID:t.uuid,showCloseButton:!0,onClose:()=>{_(!1)},onCreate:e=>{null==i||i(e),_(!1)},avatarSize:a})})]}),(0,r.jsx)(er,{uuid:t.uuid,isCreator:t.user.uuid===(null==l?void 0:l.uuid),onDelete:()=>{null==n||n(t.uuid)},sx:{position:"absolute",right:"4px"}})]})})},es=function(e){let{comment:t,onDelete:n,...i}=e,[s,a]=(0,u.useState)(0),o=I((0,Z.b)()),[c,l]=(0,u.useState)([]),[d,m]=(0,u.useState)([]),h=[...d,...c],f=t.reply_count-d.length,[g,j]=(0,u.useState)(!1);return(0,r.jsxs)(p.x,{...i,children:[(0,r.jsx)(ei,{comment:t,onDelete:n,onReplyCreate:e=>{l([...c,e])},formAvatarSize:28}),(0,r.jsxs)(p.x,{ml:"3.3rem",mt:"0.5rem",children:[(0,r.jsx)(x.K,{spacing:"0.5rem",children:h.map(e=>(0,r.jsx)(ei,{comment:e,onDelete:n,avatarSize:28,formAvatarSize:28,onReplyCreate:e=>{l([...c,e])}},e.uuid))}),f>0&&(0,r.jsx)(P.z,{mt:d.length>0?"0.5rem":"0",variant:"default",size:"xs",onClick:()=>{j(!0),a(s+1),o.listReplies({parent_uuid:t.uuid,page:s+1,per_page:10}).then(e=>{m([...d,...e.data]),j(!1)})},loading:g,children:1===f?"View 1 reply":"View ".concat((0,z.yr)(f)," replies")})]})]})},ea=function(e){let{postUUID:t,onCommentCreate:n,onCommentDelete:i,...s}=e,[a,o]=(0,u.useState)([]),[c,l]=(0,u.useState)([]),d=I((0,Z.b)()),{data:m,fetchNextPage:h,hasNextPage:f,isLoading:g}=(0,T.N)({queryKey:["post_comments",t],queryFn:e=>{let{pageParam:n}=e;return d.list({uuid:t,page:n.page,per_page:20}).then(e=>({data:e.data,page:e.page,nextPage:e.nextPage}))},initialPageParam:{page:1},getNextPageParam:e=>{if(e.nextPage)return{page:e.nextPage}},refetchOnMount:!0,refetchOnWindowFocus:!0}),j=[...a,...m?m.pages.map(e=>e.data).flat():[]].filter(e=>!c.includes(e.uuid)),v=(0,r.jsx)(M.M,{mt:"2rem",w:"100%",children:(0,r.jsx)(O.a,{})});return(0,r.jsxs)(p.x,{w:"100%",...s,children:[(0,r.jsx)(q,{postUUID:t,onCreate:e=>{o([e,...a]),null==n||n(e)}}),g&&v,!g&&j.length>0&&(0,r.jsx)($.Z,{dataLength:j.length,next:h,hasMore:f,loader:v,children:(0,r.jsx)(x.K,{mt:"2rem",spacing:"1.5rem",children:j.map(e=>(0,r.jsx)(es,{comment:e,onDelete:e=>{l([...c,e]),null==i||i(e)}},e.uuid))})})]})},eo=n(85822),ec=n(57925),el=function(e){let{postUUID:t,liked:n,likeCount:i,...s}=e,{update:a,liked:o,likeCount:c}=(0,ec.Z)({uuid:t,liked:n,likeCount:i}),l=(0,C.Z)(),[,u]=(0,U.f)(),d=o?(0,r.jsx)(W.e7,{size:"1.2rem",color:"var(--heart-color)"}):(0,r.jsx)(W.h_,{size:"1.2rem"});return(0,r.jsx)(p.x,{...s,children:(0,r.jsx)(P.z,{variant:"default",leftIcon:d,h:"2.4rem",miw:"4rem",onClick:()=>{l?a(!o):u.open()},children:(0,z.yr)(c)})})},eu=n(10856),ed=n(26900),em=n(72794),eh=n(25652),ep=n(78551),ex=function(e){let{postUUID:t,opened:n,onClose:i,...s}=e,[a,o]=(0,u.useState)(null),c=(0,ed.Z)((0,Z.b)()),l=(0,Y.D)({mutationFn:()=>c.updatePost(t,a),onSuccess:()=>{(0,H.ky)("Update success"),i()},onError:()=>{(0,H.HV)("Failed to update")}}),{data:d,isLoading:m}=(0,ep.a)({queryKey:["admin_post",t],queryFn:()=>c.getPost(t),enabled:n});return(0,u.useEffect)(()=>{var e;d&&o(null!==(e=d.mod_nsfw_score)&&void 0!==e?e:null)},[d]),(0,r.jsxs)(ee.u,{title:"NSFW",opened:n,onClose:i,...s,children:[m&&(0,r.jsx)(M.M,{my:"1rem",children:(0,r.jsx)(O.a,{})}),!m&&(0,r.jsxs)(x.K,{spacing:"1rem",children:[(0,r.jsx)(et.Y,{label:"Let AI decide",checked:null===a,onChange:e=>{e.currentTarget.checked&&o(null)}}),(0,r.jsx)(et.Y,{label:"Safe",checked:0===a,onChange:e=>{e.currentTarget.checked&&o(0)}}),(0,r.jsx)(et.Y,{label:"Standard",checked:1===a,onChange:e=>{e.currentTarget.checked&&o(1)}}),(0,r.jsx)(et.Y,{label:"Mature",checked:2===a,onChange:e=>{e.currentTarget.checked&&o(2)}})]}),(0,r.jsxs)(j.Z,{position:"right",mt:"1rem",spacing:"0.5rem",children:[(0,r.jsx)(P.z,{variant:"default",onClick:i,size:"sm",children:"Cancel"}),(0,r.jsx)(P.z,{color:"green",onClick:()=>{l.mutate()},loading:l.isPending,disabled:m,size:"sm",children:"Save"})]})]})},ef=function(e){let{uuid:t,onClose:n,...i}=e,s=(0,em.Z)((0,Z.b)()),[a,o]=(0,u.useState)(k.Cz.SPAM),c=(0,Y.D)({mutationFn:()=>s.report(t,a),onSuccess:()=>{(0,H.ky)("Report submitted")}});return(0,r.jsxs)(ee.u,{title:"Report post",onClose:n,...i,children:[(0,r.jsxs)(x.K,{children:[(0,r.jsx)(et.Y,{label:"Spam",checked:a===k.Cz.SPAM,onChange:e=>{e.currentTarget.checked&&o(k.Cz.SPAM)}}),(0,r.jsx)(et.Y,{label:"Child abuse",checked:a===k.Cz.CHILD_ABUSE,onChange:e=>{e.currentTarget.checked&&o(k.Cz.CHILD_ABUSE)}}),(0,r.jsx)(et.Y,{label:"Violent content",checked:a===k.Cz.VIOLENT_CONTENT,onChange:e=>{e.currentTarget.checked&&o(k.Cz.VIOLENT_CONTENT)}}),(0,r.jsx)(et.Y,{label:"Disturbing content",checked:a===k.Cz.DISTURBING_CONTENT,onChange:e=>{e.currentTarget.checked&&o(k.Cz.DISTURBING_CONTENT)}}),(0,r.jsx)(et.Y,{label:"NSFW",checked:a===k.Cz.INCORRECT_NSFW,onChange:e=>{e.currentTarget.checked&&o(k.Cz.INCORRECT_NSFW)}}),(0,r.jsx)(et.Y,{label:"Harrassment",checked:a===k.Cz.HARRASSMENT,onChange:e=>{e.currentTarget.checked&&o(k.Cz.HARRASSMENT)}})]}),(0,r.jsxs)(j.Z,{position:"right",mt:"1rem",spacing:"0.5rem",children:[(0,r.jsx)(P.z,{variant:"default",onClick:()=>{n()},children:"Cancel"}),(0,r.jsx)(P.z,{color:"green",onClick:()=>{c.mutate(),n()},loading:c.isPending,children:"Send"})]})]})},eg=function(e){let{uuid:t,isCreator:n,onDelete:i,...s}=e,a=(0,Z.b)(),c=(0,eh.Z)(),l=(0,em.Z)(a),u=(0,Y.D)({mutationFn:()=>l.del(t),onSuccess:()=>{null==i||i(t),(0,H.ky)("Post deleted")}}),d=(0,ed.Z)(a),h=(0,Y.D)({mutationFn:()=>d.deletePost(t),onSuccess:()=>{null==i||i(t),(0,H.ky)("Post deleted")},onError:e=>{(0,N.zg)(e)===L.Z.MODERATOR_LIMIT_REACHED&&(0,H.HV)("Moderator daily limit reached")}}),[x,f]=(0,b.q)(!1),[g,j]=(0,b.q)(!1);return(0,r.jsxs)(p.x,{...s,children:[(0,r.jsx)(ef,{uuid:t,opened:x,onClose:f.close}),(0,r.jsx)(ex,{postUUID:t,opened:g,onClose:j.close}),(0,r.jsxs)(Q.v,{children:[(0,r.jsx)(Q.v.Target,{children:(0,r.jsx)(A.A,{children:(0,r.jsx)(W.Yv,{size:"1.2rem"})})}),(0,r.jsxs)(Q.v.Dropdown,{children:[(0,r.jsx)(Q.v.Item,{icon:(0,r.jsx)(W.dY,{}),display:n?void 0:"none",component:m(),href:(0,o.n)().editPost(t),children:"Edit"}),n&&(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(W.pJ,{}),onClick:()=>{u.mutate()},children:"Delete"}),(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(W.cW,{}),onClick:()=>{f.open()},display:n?"none":void 0,children:"Report"}),c&&(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(eu.f7Q,{}),onClick:()=>{j.open()}
1,children:"(Mod) Flag NSFW"}),c&&(0,r.jsx)(Q.v.Item,{color:"red",icon:(0,r.jsx)(W.pJ,{}),onClick:()=>{h.mutate()},children:"(Mod) Delete"})]})]})]})},ej=n(82623),ev=n(76285),ey=n(57098),eb=n(25523),ew=function(e){var t;let{type:n,data:i,modelVersions:s,stashes:a,...c}=e,l=(0,o.n)(),u=(null===(t=ev.KH.find(e=>e.value===i.sampler))||void 0===t?void 0:t.label)||"Unknown",d=s.sort((e,t)=>e.model_type!==t.model_type?e.model_type.localeCompare(t.model_type):e.name.localeCompare(t.name)),m="";"postprocess"in i&&i.postprocess&&(m=(0,ev.RR)(i.postprocess));let h=(0,C.Z)();return(0,r.jsxs)(p.x,{...c,children:[!!i.prompt&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(j.Z,{align:"center",children:[(0,r.jsx)(g.x,{fw:600,children:"Prompt"}),(0,r.jsx)(ey.Z,{value:i.prompt})]}),(0,r.jsx)(ej.X,{p:"1rem",mt:"0.5rem",w:"100%",mih:"2.5rem",children:(0,r.jsx)(g.x,{children:i.prompt})})]}),!!i.negative_prompt&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(j.Z,{align:"center",mt:"2rem",w:"100%",children:[(0,r.jsx)(g.x,{fw:600,children:"Negative Prompt"}),(0,r.jsx)(ey.Z,{value:i.negative_prompt})]}),(0,r.jsx)(ej.X,{p:"1rem",mt:"0.5rem",w:"100%",mih:"2.5rem",children:(0,r.jsx)(g.x,{children:i.negative_prompt})})]}),(d.length>0||a.length>0)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.x,{fw:600,mt:"2rem",children:"Models"}),(0,r.jsxs)(j.Z,{mt:"0.5rem",sx:{rowGap:"0.5rem",columnGap:"0.5rem"},children:[d.map(e=>(0,r.jsx)(eb.Z,{name:"".concat(e.model_name," - ").concat(e.name),href:l.model(e.model_uuid,e.uuid),type:e.model_type,imageUrl:e.sm_cover_url,censorImage:!h&&[void 0,null,k.j5.EXPLICIT].includes(e.model_resolved_nsfw_score)},e.uuid)),a.map(e=>(0,r.jsx)(eb.Z,{name:"STASH",href:"",type:e.type,censorImage:!0},e.uuid))]})]}),(0,r.jsxs)(j.Z,{mt:"2.5rem",children:[(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Sampler"}),(0,r.jsx)(g.x,{mt:"0.25rem",c:"dark.0",children:u})]}),!!i.steps&&(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Steps"}),(0,r.jsx)(g.x,{mt:"0.25rem",c:"dark.0",children:i.steps})]}),!!i.cfg&&(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Guidance"}),(0,r.jsx)(g.x,{mt:"0.25rem",c:"dark.0",children:Number(i.cfg).toFixed(1)})]}),!!i.seed&&(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Seed"}),(0,r.jsx)(g.x,{mt:"0.25rem",c:"dark.0",children:i.seed})]}),!!i.width&&!!i.height&&(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Resolution"}),(0,r.jsxs)(g.x,{mt:"0.25rem",c:"dark.0",children:[i.width,"X",i.height]})]}),m&&(0,r.jsxs)(p.x,{miw:"12rem",children:[(0,r.jsx)(g.x,{fw:600,children:"Postprocessing"}),(0,r.jsx)(g.x,{mt:4,children:m})]})]})]})},ek=function(e){let{postUUID:t,disabled:n,...i}=e,s=(0,C.Z)(),[,a]=(0,U.f)(),c=(0,o.n)(),l=(0,h.useRouter)();return(0,r.jsx)(p.x,{...i,children:(0,r.jsx)(P.z,{h:"2.4rem",miw:"6rem",variant:"default",leftIcon:(0,r.jsx)(W.Vj,{size:"1.2rem"}),onClick:()=>{s?l.push(c.generator({tweakUUID:t})):a.open()},disabled:!!n,children:"Tweak"})})};function eC(e){let{post:t,...n}=e,i=(0,h.useRouter)(),s=(0,o.n)(),a=(0,C.Z)(),c=!!a&&t.user.uuid===a.uuid,[l,d]=(0,u.useState)(t.comment_count),$=(0,w.NL)(),{goBack:M,canGoBack:O}=(0,_.k)(),[T,N]=(0,b.q)(!1),I=Math.min(t.original_height,512);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.Z,{src:t.original_url,width:t.original_width,height:t.original_height,opened:T,onClose:()=>N.close()}),(0,r.jsxs)(p.x,{...n,children:[(0,r.jsx)(x.K,{align:"center",onClick:()=>{N.open()},sx:e=>({width:"100%",cursor:"zoom-in",backgroundColor:"black",height:"".concat(I,"px"),[e.fn.smallerThan("sm")]:{marginLeft:"calc(-1 * var(--mobile-horizontal-padding))",marginRight:"calc(-1 * var(--mobile-horizontal-padding))",width:"calc(100% + 2 * var(--mobile-horizontal-padding))"}}),children:(0,r.jsx)("img",{src:t.original_url,alt:t.original_url,style:{width:"100%",objectFit:"contain",height:"".concat(I,"px")}})}),(0,r.jsxs)(f.k,{mt:"1rem",sx:e=>({flexDirection:"row",[e.fn.smallerThan("sm")]:{flexDirection:"column-reverse"}}),children:[(0,r.jsx)(g.x,{size:"xl",fw:600,maw:{base:"100%",sm:"70%"},mt:{base:"1rem",sm:"0rem"},lh:"1.2",children:t.title}),(0,r.jsxs)(j.Z,{spacing:8,ml:"auto",children:[(0,r.jsx)(el,{postUUID:t.uuid,likeCount:t.like_count,liked:t.rating===k.dF.LIKE}),(0,r.jsx)(ek,{postUUID:t.uuid,disabled:!t.is_tweakable}),(0,r.jsx)(eg,{uuid:t.uuid,isCreator:c,onDelete:()=>{$.invalidateQueries({queryKey:["post_feed"]}),$.resetQueries({queryKey:["post_feed"]}),O?M():i.push(s.home())}})]})]}),(0,r.jsxs)(j.Z,{mt:4,spacing:8,children:[(0,r.jsx)(B.Z,{src:t.user.avatar_url,username:t.user.username,size:26}),(0,r.jsx)(g.x,{component:m(),href:s.profile(t.user.username),children:t.user.username})]}),(0,r.jsx)(p.x,{mt:"1.5rem",children:(0,r.jsx)(v.O,{fz:"sm",children:(0,r.jsxs)(g.x,{children:["Uploaded ",(0,S.Jr)(t.created_at)]})})}),t.generation_type&&t.generation_data&&(0,r.jsxs)(p.x,{mt:"2rem","data-nosnippet"
1:!0,children:[(0,r.jsx)(ew,{mt:"0.5rem",type:t.generation_type,data:t.generation_data,modelVersions:t.model_versions,stashes:t.stashes}),(0,r.jsx)(y.i,{my:"2rem"})]}),(0,r.jsx)(p.x,{mt:"2rem",children:(0,r.jsx)(g.x,{mt:"0.5rem",style:{whiteSpace:"pre-line"},children:t.description})}),t.tags.length>0&&(0,r.jsx)(j.Z,{spacing:8,mt:"2rem",children:t.tags.map(e=>(0,r.jsx)(eo.Z,{value:e,tagType:"post"},e))}),(0,r.jsxs)(p.x,{mt:"2.5rem",children:[(0,r.jsxs)(g.x,{fw:600,id:"comments",children:["Comments ","(".concat((0,z.yr)(l),")")]}),(0,r.jsx)(ea,{mt:"1rem",postUUID:t.uuid,onCommentCreate:()=>{d(l+1)},onCommentDelete:()=>{d(l-1)}})]})]})]})}var e_=!0;function eS(e){let{post:t}=e;return(0,r.jsx)(s.Z,{maw:"60rem",children:(0,r.jsx)(eC,{post:t})})}eS.getLayout=function(e,t){let{self:n,post:s}=t,o=s.nsfw&&!n;return(0,r.jsxs)(i.Z,{self:n,children:[(0,r.jsx)(l,{post:s,noindex:s.nsfw}),o?(0,r.jsx)(a.Z,{}):e]})}}},function(e){e.O(0,[5970,8391,2651,5777,3835,7692,2929,4866,2888,9774,179],function(){return e(e.s=39744)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.