1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="cac26f03-7ab5-41b0-afb5-5da5077355c7",e._sentryDebugIdIdentifier="sentry-dbid-cac26f03-7ab5-41b0-afb5-5da5077355c7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1389],{6201:(e,r,t)=>{"use strict";t.r(r),t.d(r,{NewNomiAnchorRouteQueryParams:()=>e_,default:()=>eM});var n=t(26811),a=t(76547),o=t(46225),i=t(75834),s=t(39128),c=t(66257),l=t(24742),d=t(99742),u=t(22338),h=t(43728),m=t(17862),f=t(61632),p=t(85361),g=t(20787),y=t(86861),v=t(23575),b=t(11488),Y=t(42762),w=t(33989),I=t(5499),k=t(96456),C=t.n(k),A=t(67858),S=t(83847),E=t(85e3),F=t(2530),P=t(99059),x=t(14345),D=t(5409),U=t(85784);function L(){var e=(0,m._)((0,i.useState)(!0),2),r=e[0],t=e[1];return(0,n.Y)(U.a,{opened:r,onClose:function(){return t(!1)},title:"Suggested Anchor Settings",centered:!0,children:(0,n.FD)(g.B,{children:[(0,n.Y)(y.E,{children:"Weâve suggested a generation type and style based on your custom avatar. Review these settings before generating your anchor."}),(0,n.Y)(y.E,{children:"You can add appearance and aesthetic prompts in Advanced Options. These suggestions are a starting point; your anchor may look different from the preview."}),(0,n.Y)(v.$,{onClick:function(){return t(!1)},children:"Review Settings"})]})})}var _=t(13748),B=t(94408),M=["cartoon","massive breasts","extremely thick thighs","massive tits","extremely large breasts"],R=["natural glowing skin","luminous skin","beautiful","stunning","makeup","glam","bombshell","pretty"],q=t(36185),z=t(70324),N=t(39894),T=t(35362),Z=t(96953),G=t(85398),K=t(14063),j=t(96675),O=t(98398),$=t(81638),V=t(57838),H=t(94049),Q=t(36888),W=t(35269),X=t(76315),J=t(49587),ee=t(79470),er=t(50930),et=t(74918),en=t(38800);let ea=function(e){var r=e.disabled,t=e.form,o=(0,m._)((0,et.j)(!1),2),i=o[0],s=o[1].toggle,c=(0,m._)((0,et.j)(!1),2),l=c[0],d=c[1].toggle;return(0,et.j)(!1),(0,n.Y)(J.n,{radius:"md",styles:{control:{paddingLeft:0,paddingRight:0},label:{paddingLeft:0},content:{paddingLeft:0,paddingRight:0}},children:(0,n.FD)(J.n.Item,{value:"advanced",children:[(0,n.Y)(J.n.Control,{disabled:r,children:(0,n.Y)(a.h,{order:4,c:r?"dimmed":void 0,children:"Advanced Options"})}),(0,n.Y)(J.n.Panel,{children:(0,n.FD)(g.B,{gap:"md",children:[(0,n.Y)(y.E,{children:"These are optional, please keep in mind the more you configure, the more you invite likeness drift."}),(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(a.h,{order:5,children:"Additional Appearance Traits"}),(0,n.FD)(y.E,{children:["Anchors capture face, hair, and body details from your reference image automatically. Use this section to change or emphasize traits from the above reference image."," ",(0,n.Y)("strong",{children:"Remember, any prompts added here will be subject to AI interpretation."})]}),(0,n.Y)(y.E,{fs:"italic",children:"Keep traits clear and concise for best results. You do not need to include your Nomi's name."}),(0,n.Y)(v.$,{variant:"subtle",size:"compact-sm",px:"xs",w:"fit-content",disabled:r,onClick:s,children:i?"Show less":"Learn more"}),(0,n.Y)(ee.S,{expanded:i,children:(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(y.E,{children:"This section is useful for unique or exotic features that might not come through clearly from the reference alone, like specific body type details, tattoos, or accessories you always want your Nomi to have."}),(0,n.Y)(y.E,{children:'It can also help stabilize non-human presenting characters. For example, prompts like "is a raccoon, has a raccoon body" or "is a robot" can improve consistency.'})]})})]}),(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(er.T,(0,F._)({size:"md",disabled:r,placeholder:"very curly hair, broad shoulders, silver hoop earrings",autosize:!0,minRows:3},t.getInputProps("appearancePrompts")),t.key("appearancePrompts")),(0,n.Y)(en.A,{maxCharacter:E.bR,currentLength:t.getValues().appearancePrompts.length,showError:!0})]}),(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(a.h,{order:5,children:"Sticky Aesthetics"}),(0,n.Y)(y.E,{children:"Use this section to give your Nomi a certain aesthetic while using this anchor. This can impact overall anchor flexibility and impacts backgrounds, outfits, and accessories."}),(0,n.Y)(y.E,{fs:"italic",children:"Keep aesthetics clear and concise for best results."}),(0,n.Y)(v.$,{variant:"subtle",size:"compact-sm",px:"xs",w:"fit-content",disabled:r,onClick:d,children:l?"Show less":"Learn more"}),l?(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(y.E,{children:"Sticky aesthetics are great when you want a consistent vibe, like modern luxury, medieval, dark academia, or cyberpunk streetwear, etc."}),(0,n.Y)(y.E,{children:"They can have a strong influence on backgrounds and outfits, so some aesthetics make it harder to generate convincing images outside that look."})]}):null]}),(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(er.T,(0,F._)({size:"md",disabled:r,placeholder:"modern luxury",autosize:!0,minRows:1},t.getInputProps("aestheticPrompts")),t.key("appearancePrompts")),(0,n.Y)(en.A,{maxCharacter:E.hz,currentLength:t.getValues().aestheticPrompts.length,showError:!0})]})]})})]})})};var eo=t(5023),ei=t(38117);let es=function(e){var r=e.opened,t=e.onClose,a=e.onConfirm,o=e.pending,i=e.values,s=e.fundingSource,c=(0,eo.F)({base:"wrap-reverse",sm:"nowrap"});return(0,n.Y)(U.a,{opened:r,onClose:t,title:"Confirm Anchor Settings",centered:!0,size:"xl",children:(0,n.FD)(g.B,{gap:"md",children:[(0,n.Y)(y.E,{size:"sm",children:"Please confirm the settings below, once generation starts, they will be baked into the anch
1or. You will be able to fine-tune in Image Settings, but large changes may require creating a new anchor."}),(0,n.Y)(p.t,{withBorder:!0,p:"md",radius:"md",children:(0,n.FD)(g.B,{gap:"sm",children:[(0,n.FD)(g.B,{gap:2,children:[(0,n.Y)(y.E,{size:"sm",fw:700,tt:"uppercase",children:"Anchor Type"}),(0,n.Y)(y.E,{size:"sm",children:i.generationProcess})]}),(0,n.FD)(g.B,{gap:2,children:[(0,n.Y)(y.E,{size:"sm",fw:700,tt:"uppercase",children:"Default Style"}),(0,n.Y)(y.E,{size:"sm",children:i.customStyle||i.styleMode})]}),i.appearancePrompts&&(0,n.FD)(g.B,{gap:2,children:[(0,n.Y)(y.E,{size:"sm",fw:700,tt:"uppercase",children:"Additional Appearance Traits"}),(0,n.Y)(y.E,{size:"sm",style:{whiteSpace:"pre-line"},children:i.appearancePrompts})]}),i.aestheticPrompts&&(0,n.FD)(g.B,{gap:2,children:[(0,n.Y)(y.E,{size:"sm",fw:700,tt:"uppercase",children:"Sticky Aesthetics"}),(0,n.Y)(y.E,{size:"sm",children:i.aestheticPrompts})]})]})}),(0,n.Y)(y.E,{fw:"bold",ta:"center",children:"AnchorLookPass"===s?"This generation will use 1 anchor pass.":"This generation will cost ".concat(A.AU," credits.")}),(0,n.FD)(ei.s,{gap:"sm",justify:"center",wrap:c,children:[(0,n.Y)(v.$,{variant:"default",disabled:o,onClick:t,children:"Keep editing"}),(0,n.Y)(v.$,{loading:o,onClick:a,children:"Confirm and generate"})]})]})})};var ec=t(46878),el=t(95338),ed=t(5567);let eu=(0,t(20648).A)("outline","photo-edit","PhotoEdit",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M11 20h-4a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v4",key:"svg-1"}],["path",{d:"M4 15l4 -4c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-2"}],["path",{d:"M14 14l1 -1c.31 -.298 .644 -.497 .987 -.596",key:"svg-3"}],["path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39",key:"svg-4"}]]);var eh={"aria-label":"Choose a different image",variant:"filled",radius:"xl",size:"lg",pos:"absolute",top:10,right:10,style:{backdropFilter:"blur(6px)",background:"color-mix(in srgb, var(--mantine-color-black) 45%, transparent)",border:"1px solid color-mix(in srgb, var(--mantine-color-white) 25%, transparent)"}};let em=function(e){var r=e.referenceImageSrc,t=e.nomi,a=e.disabled,o="/nomis/".concat(t.id,"/photo-album?to=create-anchor-look");return(0,n.Y)(g.B,{gap:6,children:(0,n.Y)(f.a,{maw:380,w:"100%",pos:"relative",mx:"auto",children:r?(0,n.FD)(n.FK,{children:[(0,n.Y)(ec._,{src:r,alt:"Anchor reference image",radius:"md"}),(0,n.Y)(el.m,{label:"Choose a different image",withArrow:!0,children:a?(0,n.Y)(ed.M,(0,P._)((0,F._)({},eh),{disabled:!0,children:(0,n.Y)(eu,{size:18})})):(0,n.Y)(ed.M,(0,P._)((0,F._)({},eh),{component:C(),href:o,children:(0,n.Y)(eu,{size:18})}))})]}):(0,n.Y)(p.t,{withBorder:!0,radius:"md",p:"xl",style:{borderStyle:"dashed"},children:(0,n.FD)(g.B,{align:"center",gap:"sm",children:[(0,n.Y)(y.E,{c:"dimmed",ta:"center",children:"No reference image selected yet."}),(0,n.Y)(v.$,{component:C(),href:o,children:"Select a reference image"})]})})})})};var ef=t(45531),ep=t(6917),eg=t(76301);let ey=function(e){var r=e.value,t=e.disabled,o=e.onChange,i=(0,m._)((0,et.j)(!1),2),s=i[0],c=i[1].toggle;return(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(a.h,{order:4,children:"Anchor Type"}),(0,n.Y)(y.E,{children:"Choose what matters most in your anchor, like maximum detail versus maximum likeness."}),(0,n.Y)(v.$,{variant:"subtle",size:"compact-sm",px:"xs",w:"fit-content",disabled:t,onClick:c,children:s?"Collapse tradeoffs":"Show all tradeoffs"}),(0,n.Y)(ee.S,{expanded:s,children:(0,n.FD)(ef.Y,{grow:!0,align:"stretch",children:[(0,n.FD)(p.t,{withBorder:!0,p:"md",radius:"md",children:[(0,n.Y)(y.E,{fw:600,mb:4,children:"Riva"}),(0,n.FD)(ep.B,{size:"xs",children:[(0,n.Y)(ep.B.Item,{children:"Maximum detail - some likeness drift possible due to added detail"}),(0,n.Y)(ep.B.Item,{children:"Sticks to more realistic body proportions even in non-realistic styles"}),(0,n.Y)(ep.B.Item,{children:"Can create animal and creature subjects (beta - quality may vary)"}),(0,n.Y)(ep.B.Item,{children:"Better for highly detailed or realistic styles"}),(0,n.Y)(ep.B.Item,{children:"More sensitive to potentially sensual reference images and prompts"})]})]}),(0,n.FD)(p.t,{withBorder:!0,p:"md",radius:"md",children:[(0,n.Y)(y.E,{fw:600,mb:4,children:"Lago"}),(0,n.FD)(ep.B,{size:"xs",children:[(0,n.Y)(ep.B.Item,{children:"Maximum likeness, with slightly less detail overall"}),(0,n.Y)(ep.B.Item,{children:"More receptive to imaginative and diverse body types across styles"}),(0,n.Y)(ep.B.Item,{children:"Not currently recommended for non-human subjects (unstable)"}),(0,n.Y)(ep.B.Item,{children:"Great for creative and non-realistic styles â especially more creative cartoon styles"}),(0,n.Y)(ep.B.Item,{children:"Less restrictive around potentially sensual reference images and prompts"})]})]})]})}),(0,n.Y)(eg.I,{fullWidth:!0,size:"md",disabled:t,data:[{label:"Riva",value:"Riva"},{label:"Lago",value:"Lago"}],value:r,onChange:function(e){return o(E.cs.parse(e))}})]})};var ev=t(22477),eb=t(20905);let eY=function(e){var r=e.styleMode,t=e.customStyle,o=e.customStyleKey,i=e.customStyleError,s=e.disabled,c=e.onStyleModeChange,l=e.onCustomStyleChange,d=(0,m._)((0,et.j)(!1),2),u=d[0],h=d[1].toggle;return(0,n.FD)(n.FK,{children:[(0,n.FD)(g.B,{gap:"xs",pt:"md",children:[(0,n.Y)(a.h,{order:4,children:"Default Style"}),(0,n.Y)(y.E,{children:"This sets the visual home base for images made with this anchor. Prompting can also impact style, but this creates the foundation."}),(0,n.Y)(y.E,{fs:"italic",children:"Match your default style to the style of your reference image for more predictable results."}),(0,n.Y)(v.$,{variant:"subtle",size:"compact-sm",px:"xs",w:"fit-content",disabled:s,onClick:h,children:u?"Show less":"Learn more"}),(0,n.Y)(ee.S,{expanded:u,children:(0,n.FD)(g.B,{gap:"xs",children:[(0,n.FD)(y.E,{children:[(0,n.Y)(y.E,{span:!0,fw:700,children:"Photorealistic"})," ","and"," ",(0,n.Y)(y.E,{span:!0,fw:700,children:"Nomi Anime"})," ","are optimized presets for those styles."]}),(0,n.FD)(y.E,{children:[(0,n.Y)(y.E,{span:!0,fw:700,children:"Custom"})," ",'gives you the most creative range. Think watercolor, 3D animation, vaporwave, retro futuristic cartoon, or anything you can describe. (If you\'re not sure how to describe the style of your reference image, you can enter "the exact same style as the reference image".)']})]})}),(0,n.Y)(ev.s.Group,{size:"md",value:r,onChange:function(e){return c(e)},children:(0,n.FD)(g.B,{gap:8,children:[(0,n.Y)(ev.s,{size:"md",value:"photorealistic",label:"Photorealistic",disabled:s}),(0,n.Y)(ev.s,{size:"md",value:"nomi anime",label:"Nomi Anime",disabled:s}),(0,n.Y)(ev.s,{size:"md",value:"custom",label:"Custom",disabled:s})]})})]}),"custom"===r&&(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(eb.A,{disabled:s,value:t,error:i,onChange:l},o),(0,n.Y)(en.A,{maxCharacter:E.SZ,currentLength:t.length,showError:!0})]})]})};
1var ew=t(62886),eI=t(41348),ek=t(8425);function eC(e){return"photorealistic"===e||"nomi anime"===e?{styleMode:e,customStyle:""}:{styleMode:"custom",customStyle:e}}let eA=function(e){var r,t,a,o,c,l,d=e.currentCreatingAnchorLook,u=e.failedAnchorLook,h=e.nomi,f=e.referenceImage,p=e.dailyUsageCounts,b=e.userCreditBalance,Y=e.user,w=e.bodyElemRef,I=e.suggestedSettings,k=(0,G.jE)(),C=(0,eI.A)(),S=(0,m._)((0,i.useState)(null),2),x=S[0],U=S[1],L=null!=(t=null==d?void 0:d.userAnchorLook)?t:null==u?void 0:u.userAnchorLook,_=(0,Z.m)({initialValues:(0,F._)((0,P._)((0,F._)({},eC(null!=(a=null==L?void 0:L.style)?a:"photorealistic")),{generationProcess:null!=(o=null==L?void 0:L.generationProcess)?o:"Riva",appearancePrompts:null!=(c=null==L?void 0:L.appearancePrompts)?c:"",aestheticPrompts:null!=(l=null==L?void 0:L.aestheticPrompts)?l:""}),L?void 0:I),validateInputOnChange:!0,validateInputOnBlur:!0,validate:{customStyle:function(e,r){return"custom"!==r.styleMode?null:e.trim()?e.length>E.SZ?"Style cannot be more than ".concat(E.SZ," characters."):null:"Please enter a custom style."},appearancePrompts:function(e){return e.length>E.bR?"Additional appearance prompts cannot exceed ".concat(E.bR," characters."):null},aestheticPrompts:function(e){return e.length>E.hz?"Aesthetic prompts cannot be more than ".concat(E.hz," characters."):null}}}),B=(0,K.n)({mutationFn:function(e){var r=e.values,t=e.fundingSource,n=e.referenceImage;return E.Ay.create(h.id,(0,F._)({fundingSource:t,generationProcess:r.generationProcess,style:"custom"===r.styleMode?r.customStyle:r.styleMode,appearancePrompts:r.appearancePrompts,aestheticPrompts:r.aestheticPrompts,fidelity:1,appearanceTraits:""},n))},onMutate:function(){U(null)},onSuccess:function(e){return(0,q._)(function(){var r,t,n,a,o,i,s,c,l;return(0,z.YH)(this,function(d){switch(d.label){case 0:if(_.setInitialValues((0,P._)((0,F._)({},eC(null!=(i=null==(r=e.userAnchorLook)?void 0:r.style)?i:"photorealistic")),{generationProcess:null!=(s=null==(t=e.userAnchorLook)?void 0:t.generationProcess)?s:"Riva",appearancePrompts:null!=(c=null==(n=e.userAnchorLook)?void 0:n.appearancePrompts)?c:"",aestheticPrompts:null!=(l=null==(a=e.userAnchorLook)?void 0:a.aestheticPrompts)?l:""})),_.reset(),!u)return[3,2];return[4,C.replace({pathname:C.pathname,query:(0,P._)((0,F._)({},"string"==typeof C.query.back?{back:C.query.back}:{}),{nomiId:h.id,resume:"creating"})},void 0,{shallow:!0})];case 1:d.sent(),d.label=2;case 2:return null==(o=w.current)||o.scrollTo({top:0,behavior:"smooth"}),[4,Promise.all([k.invalidateQueries({queryKey:["nomiAnchorLooks",h.id]}),k.invalidateQueries({queryKey:["me","credit-balance"]}),k.invalidateQueries({queryKey:["dailyUsage"]})])];case 3:return d.sent(),(0,X.A)({message:"Anchor generation started.",autoClose:3e3,color:X.v.success}),[2]}})})()},onError:function(e){return(0,q._)(function(){var r,t,n,a,o,i,c,l;return(0,z.YH)(this,function(d){switch(d.label){case 0:if(!(0,j.Dx)(e))return(0,W.A)(e),(0,X.A)({message:"Failed to create anchor. Please try again.",autoClose:5e3,color:X.v.error,"data-persist-on-route-change":!0}),[2];switch(e.response.data.error.type){case"ContainsForbiddenTerm":return[3,1];case"InsufficientAnchorLookPasses":return[3,2];case"AnchorLookPassUsageRateLimitExceeded":return[3,4];case"InsufficientCredits":return[3,6];case"NomiAlreadyCreatingAnchorLook":return[3,8]}return[3,10];case 1:r=s.Ik({type:s.eu("ContainsForbiddenTerm"),fields:s.Ik({field:s.k5(["style","appearancePrompts","aestheticPrompts","appearanceTraits"]),firstBlockTerm:s.Yj()}).array()}).parse(e.response.data.error),t=!0,n=!1,a=void 0;try{for(o=r.fields[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=i.value,l=(0,Q.M)("This field contains a forbidden term. Please edit and try again.",c.firstBlockTerm),"style"===c.field?_.setFieldError("customStyle",l):_.setFieldError(c.field,l)}catch(e){n=!0,a=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw a}}return[3,11];case 2:return(0,X.A)({message:"You do not have any anchor passes left. Purchase ".concat(A.AU," credits to generate now."),autoClose:5e3,color:X.v.error}),[4,k.invalidateQueries({queryKey:["me","credit-balance"]})];case 3:case 5:case 7:case 9:return d.sent(),[3,11];case 4:return(0,X.A)({message:"You may only use 1 anchor pass per day. Wait until tomorrow to use another anchor pass or generate a new anchor now for ".concat(A.AU," credits."),autoClose:5e3,color:X.v.error}),[4,Promise.all([k.invalidateQueries({queryKey:["me","credit-balance"]}),k.invalidateQueries({queryKey:["dailyUsage"]})])];case 6:return(0,X.A)({message:"You need ".concat(A.AU," credits to generate an anchor."),autoClose:5e3,color:X.v.error}),[4,k.invalidateQueries({queryKey:["me","credit-balance"]})];case 8:return(0,X.A)({message:"You can only generate one anchor at a time. Please wait for your current anchor to finish.",autoClose:5e3,color:X.v.error}),[4,k.invalidateQueries({queryKey:["nomiAnchorLooks",h.id]})];case 10:(0,X.A)({message:"Failed to create anchor. Please try again.",autoClose:5e3,color:X.v.error,"data-
1persist-on-route-change":!0}),(0,W.A)(e),d.label=11;case 11:return[2]}})})()}});(0,$._P)(function(e){"AnchorLookFailed"===e.type&&e.payload.nomiId===h.id&&C.replace({pathname:C.pathname,query:(0,P._)((0,F._)({},"string"==typeof C.query.back?{back:C.query.back}:{}),{nomiId:h.id,resume:"failed",failedNomiAnchorLookUuid:e.payload.nomiAnchorLookUuid})},void 0,{shallow:!0})});var M=(0,i.useMemo)(function(){if(f.referenceMediaItemUuid)return O.Ay.getImageUrl(f.referenceMediaItemUuid,"webp");if(f.referenceCharacterId&&f.referenceCharacterImageId)return"/api/characters/".concat(f.referenceCharacterId,"/").concat(f.referenceCharacterImageId,".webp");if(null!==f.referenceSelfieRequestId&&void 0!==f.referenceSelfieRequestId&&f.referenceSelfieImageId)return"/api/nomis/".concat(h.id,"/selfies/").concat(f.referenceSelfieImageId,".webp");if(f.referenceImageEditRequestUuid)return"/api/image-edit-requests/".concat(f.referenceImageEditRequestUuid,"/edited-image.webp");throw Error("Missing anchor look reference image.")},[h.id,f]),R="Admin"===Y.role||"Internal"===Y.role||!!Y.subscription,J=b.anchorLookPasses>0,ee=p.passAnchorLooks>0,er=R&&J&&!ee,et=b.creditAmount>=A.AU,en=er?"AnchorLookPass":R&&et?"Credits":null,eo=!!d||B.isPending||!en;return(0,n.FD)("form",{onSubmit:_.onSubmit(function(e){en&&U({values:e,fundingSource:en,referenceImage:f})}),children:[R?!en&&(0,n.Y)(D.F,{color:"red",variant:"monochrome",children:(0,n.FD)(y.E,{children:["You must have at least 50 credits to create a custom anchor."," ",(0,n.Y)(N.M,{component:ew.A,href:"/profile/credit?source=Anchor",children:"Click here to get credits"})]})}):(0,n.Y)(D.F,{color:"red",variant:"monochrome",children:(0,n.FD)(y.E,{children:["You must be subscribed and have at least 50 credits or an anchor pass to create a custom anchor."," ",(0,n.Y)(N.M,{component:ew.A,href:"/profile/subscription?source=Anchor",children:"Click here to subscribe"})]})}),(0,n.Y)(es,{opened:!!x,fundingSource:null!=en?en:"Credits",onConfirm:function(){if(!x)throw Error("Missing pending anchor look submission.");U(null),B.mutate(x),H.A.clickedCreateAnchor(h,x)},onClose:function(){U(null)},values:_.getValues(),pending:B.isPending}),(0,n.Y)(ek.Ay,{title:"Your new anchor is not created yet.",unsavedChanges:_.isDirty(),children:"If you leave now, any entered text will be lost."}),(0,n.FD)(g.B,{gap:"md",children:[(0,n.Y)(y.E,{fw:500,children:"Your anchor sets the overall image style and helps keep your Nomi's likeness (face, hair, body, accessories, etc) consistent across selfies and art."}),(0,n.Y)(y.E,{fw:500,children:"Choose an anchor type, default style, and optionally configure advanced settings below. You can further customize your Anchor's impact in Image Settings and through prompting, but your anchor sets the baseline influence."}),(0,n.Y)(em,{referenceImageSrc:M,nomi:h,disabled:eo}),(0,n.Y)(T.c,{my:"lg"}),(0,n.Y)(ey,{value:_.values.generationProcess,disabled:eo,onChange:function(e){return _.setFieldValue("generationProcess",e)}}),(0,n.Y)(eY,{styleMode:_.values.styleMode,customStyle:_.values.customStyle,customStyleKey:_.key("customStyle"),customStyleError:"string"==typeof _.errors.customStyle?_.errors.customStyle:void 0,disabled:eo,onStyleModeChange:function(e){return _.setFieldValue("styleMode",e)},onCustomStyleChange:function(e){_.setFieldValue("customStyle",e)}}),(0,n.Y)(ea,{disabled:eo,form:_}),(0,n.Y)(y.E,{children:"Anchors are robust, so they take up to an hour to generate, but you can still chat and create images with any of your existing anchors during that time."}),(0,n.Y)(y.E,{children:"You will receive a notification when your new anchor is ready, and the new anchor will automatically become the default anchor when itâs ready."}),(0,n.Y)(y.E,{children:"Once your anchor finishes, you can further customize your anchor appearance traits and the fidelity slider in Image Settings."}),R&&!d?(0,n.FD)(g.B,{gap:4,mt:"sm",children:[en?(0,n.Y)(v.$,{type:"submit",loading:B.isPending,disabled:eo,children:"Generate New Anchor"}):(0,n.Y)(v.$,{type:"button",component:ew.A,href:"/profile/credit?source=Anchor",children:"Get More Credits to Generate Anchor"}),(0,n.Y)(y.E,{size:"xs",c:"dimmed",ta:"center",children:er?"You currently have ".concat((r=b.anchorLookPasses,"".concat(r," ").concat((0,V.t)(r,"anchor pass","anchor passes"))),". Use 1 anchor pass to generate."):J&&ee?"You may only use 1 anchor pass per day. Wait until tomorrow to use another anchor pass or generate a new anchor now for ".concat(A.AU," credits. You have ").concat(eS(b.creditAmount),"."):"New Anchor generation costs ".concat(A.AU," credits. You have ").concat(eS(b.creditAmount),".")})]}):!d&&(0,n.FD)(g.B,{gap:4,mt:"sm",children:[(0,n.Y)(v.$,{type:"button",component:ew.A,href:"/profile/subscription?source=Anchor",onClick:function(){return H.A.clickedUpgradeButton("CreateAnchor",Y,h.id,h.created)},children:"Subscribe to Create an Anchor"}),(0,n.Y)(y.E,{size:"sm",c:"dimmed",ta:"center",children:"Anchors cost 50 credits to generate. First time subscribers will receive a one-time gift of 10 anchor passes."})]})]})]})};function eS(e){return"".concat(e," ").concat((0,V.t)(e,"credit"))}function eE(e){var r,t=e.avatarCreatorSessionUuid,a=e.avatarCreatorGenerationUuid,o=(0,x._)(e,["avatarCreatorSessionUuid","avatarCreatorGenerationUuid"]),s=o.currentCreatingAnchorLook||o.failedAnchorLook?null:null!=t?t:null,c=(0,w.I)((0,B.WT)(s)),l=(0,w.I)((0,B.FI)(s)),d=null==(r=l.data)?void 0:r.find(function(e){return e.uuid===a}),u=(0,i.useMemo)(function(){return s&&d&&l.data?function(e,r){for(var t=new Map(r.map(function(e){return[e.uuid,e]})),n=new Set,a=[],o=e;o;){if(n.has(o.uuid)||o.sessionUuid!==e.sessionUuid)throw Error("Invalid avatar generation lineage.");n.add(o.uuid),a.push(o.prompt.toLowerCase().replace(/\s+/g," "));var i=o.parentGenerationUuid;if(o=i?t.get(i):void 0,i&&!o)throw Error("Missing avatar parent generation.")}var s=function(e){return a.some(function(r){return e.some(function(e){return r.includes(e)})})},c=s(M)?"Lago":"Riva";return"nomi anime"===e.style?{generationProcess:c,styleMode:"nomi anime",customStyle:""}:"photorealistic"===e.style?s(R)?{generationProcess:c,styleMode:"custom",customStyle:"lightly airbrushed photorealistic"}:{generationProcess:c,styleMode:"photorealistic",customStyle:""}:{generationProcess:c,styleMode:"custom",customStyle:e.style}}(d,l.data):void 0},[s,d,l.data]);if(s){if(c.isError)return(0,n.Y)(_.A,{error:c.error,onRetry:function(){c.refetch()}});if(l.isError)return(0,n.Y)(_.A,{error:l.error,onRetry:function(){l.refetch()}});if(!c.data||!l.data)return(0,n.Y)(b.o,{children:(0,n.Y)(Y.a,{})});if((null==d?void 0:d.status)!=="Completed")return(0,n.Y)(D.F,{color:"red",children:"This avatar is not available for this Nomi. Return to the avatar creator and select a completed draft."})}return(0,n.FD)(n.FK,{children:[u&&(0,n.Y)(L,{}),(0,n.Y)(eA,(0,P._)((0,F._)({},o),{suggestedSettings:u}))]})}let eF=function(e){var r=e.nomi,t=e.onEdit,o=e.onStartOver;
1return(0,n.Y)(p.t,{withBorder:!0,p:"lg",radius:"md",children:(0,n.FD)(g.B,{gap:"md",children:[(0,n.Y)(a.h,{order:3,children:"Anchor Generation Failed"}),(0,n.Y)(y.E,{children:"Your Anchor could not be generated - any credits or passes used were returned."}),(0,n.FD)(ep.B,{children:[(0,n.FD)(ep.B.Item,{children:["If anything about your reference image or prompts could be considered not safe for work, we recommend trying again with the"," ",(0,n.Y)("strong",{children:"Lago anchor type"}),", and/or editing your existing settings."]}),(0,n.Y)(ep.B.Item,{children:"If you are having issues with the Lago anchor type, you may want to edit your settings and/or start over with a new reference image before trying again."}),(0,n.Y)(ep.B.Item,{children:"If this issue continues, message support with a screenshot of your settings (including reference image) for advice."})]}),(0,n.FD)(ef.Y,{gap:"sm",children:[(0,n.Y)(v.$,{variant:"light",onClick:t,children:"Edit my existing settings"}),(0,n.Y)(v.$,{variant:"default",component:C(),href:"/nomis/".concat(r.id,"/photo-album?to=create-anchor-look"),onClick:o,children:"Start over with new reference image"})]})]})})};var eP=t(42714),ex=t(58513),eD=t(97438);let eU=(0,i.memo)(function(e){var r,t,o=e.creatingNomiAnchorLook,s=(null!=(t=null==(r=o.userAnchorLook)?void 0:r.completionEstimate)?t:(0,ex.z)(o.added,60)).getTime(),c=(0,eD.o)(s,o.added),l=(0,eD.o)(s,new Date),d=(0,m._)((0,i.useState)((c-l)/c*100),2),u=d[0],h=d[1];return(0,i.useEffect)(function(){var e=window.setInterval(function(){h((c-(0,eD.o)(s,new Date))/c*100)},250);return function(){window.clearInterval(e)}},[s,c]),(0,n.Y)(p.t,{withBorder:!0,p:"lg",radius:"md",mb:"lg",children:(0,n.FD)(g.B,{gap:"md",children:[(0,n.Y)(ef.Y,{justify:"space-between",align:"flex-start",children:(0,n.Y)(a.h,{order:3,children:"Generating Your Anchor"})}),(0,n.FD)(g.B,{gap:"xs",children:[(0,n.Y)(eP.k,{value:u,striped:!0,animated:!0,size:"lg",radius:"xl",transitionDuration:200}),(0,n.FD)(y.E,{size:"xs",children:["Estimated time remaining:"," ",l<1?"less than 1 minute":1===l?"1 minute":"".concat(l," minutes")]})]}),(0,n.FD)(y.E,{size:"sm",children:["Creating an Anchor can take about an hour. You don't need to stay on this page, the Anchor will keep generating.",(0,n.Y)("br",{}),(0,n.Y)("br",{}),"Once generation is complete, your new Anchor will be automatically applied and you'll receive a notification when it's ready."]})]})})}),eL=function(e){var r,t=e.nomi,a=e.queryParams,o=e.user,s=e.bodyElemRef,c=(0,w.I)({queryKey:["nomiAnchorLook",t.id,a.failedNomiAnchorLookUuid],queryFn:a.failedNomiAnchorLookUuid?function(){return E.Ay.fetch(t.id,a.failedNomiAnchorLookUuid)}:I.hT}),l=(0,m._)((0,i.useState)(!1),2),d=l[0],u=l[1],h=(0,w.I)({queryKey:["nomiAnchorLooks",t.id],queryFn:function(){return E.Ay.fetchAll(t.id)}}),k=(0,w.I)({queryKey:["me","credit-balance"],queryFn:A.Ay.CreditBalance.getUserBalance,staleTime:3e4}),F=(0,w.I)({queryKey:["dailyUsage"],queryFn:S.Ay.fetchDailyUsageCounts,staleTime:3e4}),P=(0,i.useMemo)(function(){var e,r;return null!=(r=null==(e=h.data)?void 0:e.find(function(e){var r;return(null==(r=e.userAnchorLook)?void 0:r.status)==="Creating"}))?r:null},[h.data]),x=(0,i.useMemo)(function(){if(P){if("User"!==P.type)throw Error("Creating anchor look must be a user anchor look.");return{referenceMediaItemUuid:P.userAnchorLook.referenceMediaItemUuid}}if(c.data){if("User"!==c.data.type)throw Error("Failed anchor look must be a user anchor look.");return{referenceMediaItemUuid:c.data.userAnchorLook.referenceMediaItemUuid}}if(a.resume)return null;if(a.referenceMediaItemUuid)return{referenceMediaItemUuid:a.referenceMediaItemUuid};if(a.referenceCharacterId&&a.referenceCharacterImageId)return{referenceCharacterId:a.referenceCharacterId,referenceCharacterImageId:a.referenceCharacterImageId};if(void 0!==a.referenceSelfieRequestId&&a.referenceSelfieImageId)return{referenceSelfieRequestId:a.referenceSelfieRequestId,referenceSelfieImageId:a.referenceSelfieImageId};if(a.referenceImageEditRequestUuid)return{referenceImageEditRequestUuid:a.referenceImageEditRequestUuid};throw Error("Missing anchor look reference image.")},[P,c.data,a]);return(0,n.FD)(f.a,{w:"100%",px:24,mx:"auto",maw:{base:void 0,md:680},pb:48,pt:{base:24,md:0},children:[P&&(0,n.Y)(eU,{creatingNomiAnchorLook:P}),x?c.data&&!d?(0,n.Y)(eF,{nomi:t,onEdit:function(){return u(!0)},onStartOver:function(){}}):F.data&&k.data?(0,n.Y)(eE,{avatarCreatorSessionUuid:a.avatarCreatorSessionUuid,avatarCreatorGenerationUuid:a.avatarCreatorGenerationUuid,user:o,nomi:t,referenceImage:
1x,dailyUsageCounts:F.data,userCreditBalance:k.data,currentCreatingAnchorLook:P,failedAnchorLook:c.data,bodyElemRef:s},null!=(r=a.avatarCreatorGenerationUuid)?r:"default"):(0,n.Y)(b.o,{children:(0,n.Y)(Y.a,{})}):(0,n.Y)(f.a,{maw:380,w:"100%",pos:"relative",mx:"auto",children:(0,n.Y)(p.t,{withBorder:!0,radius:"md",p:"xl",style:{borderStyle:"dashed"},children:(0,n.FD)(g.B,{align:"center",gap:"sm",children:[(0,n.Y)(y.E,{c:"dimmed",ta:"center",children:"No reference image selected yet."}),(0,n.Y)(v.$,{component:C(),href:"/nomis/".concat(t.id,"/photo-album?to=create-anchor-look"),children:"Select a reference image"})]})})})]})};var e_=s.Ik({back:s.Yj().optional(),avatarCreatorSessionUuid:s.nH().optional(),avatarCreatorGenerationUuid:s.nH().optional()}).refine(function(e){return!!e.avatarCreatorSessionUuid==!!e.avatarCreatorGenerationUuid}).and(s.KC([s.Ik({resume:s.eu("creating"),failedNomiAnchorLookUuid:s.Zm().optional(),referenceMediaItemUuid:s.Zm().optional(),referenceCharacterId:s.Zm().optional(),referenceCharacterImageId:s.Zm().optional(),referenceSelfieRequestId:s.Zm().optional(),referenceSelfieImageId:s.Zm().optional(),referenceImageEditRequestUuid:s.Zm().optional()}),s.Ik({resume:s.eu("failed"),failedNomiAnchorLookUuid:s.nH(),referenceMediaItemUuid:s.Zm().optional(),referenceCharacterId:s.Zm().optional(),referenceCharacterImageId:s.Zm().optional(),referenceSelfieRequestId:s.Zm().optional(),referenceSelfieImageId:s.Zm().optional(),referenceImageEditRequestUuid:s.Zm().optional()}),s.Ik({resume:s.Zm().optional(),failedNomiAnchorLookUuid:s.Zm().optional(),referenceMediaItemUuid:s.nH(),referenceCharacterId:s.Zm().optional(),referenceCharacterImageId:s.Zm().optional(),referenceSelfieRequestId:s.Zm().optional(),referenceSelfieImageId:s.Zm().optional(),referenceImageEditRequestUuid:s.Zm().optional()}),s.Ik({resume:s.Zm().optional(),failedNomiAnchorLookUuid:s.Zm().optional(),referenceMediaItemUuid:s.Zm().optional(),referenceCharacterId:s.Yj(),referenceCharacterImageId:s.tW("sha256",{enc:"hex"}),referenceSelfieRequestId:s.Zm().optional(),referenceSelfieImageId:s.Zm().optional(),referenceImageEditRequestUuid:s.Zm().optional()}),s.Ik({resume:s.Zm().optional(),failedNomiAnchorLookUuid:s.Zm().optional(),referenceMediaItemUuid:s.Zm().optional(),referenceCharacterId:s.Zm().optional(),referenceCharacterImageId:s.Zm().optional(),referenceSelfieRequestId:c.ai(),referenceSelfieImageId:s.Yj(),referenceImageEditRequestUuid:s.Zm().optional()}),s.Ik({resume:s.Zm().optional(),failedNomiAnchorLookUuid:s.Zm().optional(),referenceMediaItemUuid:s.Zm().optional(),referenceCharacterId:s.Zm().optional(),referenceCharacterImageId:s.Zm().optional(),referenceSelfieRequestId:s.Zm().optional(),referenceSelfieImageId:s.Zm().optional(),referenceImageEditRequestUuid:s.gZ()})])).readonly(),eB=function(e){var r,t=e.user,s=(0,o.useRouter)(),c=e_.safeParse(s.query),d=(0,h.CV)(),m=d?"/nomis/".concat(d.id,"/settings/image"):"/nomis",f=(0,i.useRef)(null);return d&&c.success?(0,n.Y)(u.A,{title:"".concat(d.name," - Create New Anchor"),header:(0,n.FD)(a.h,{order:3,children:[d.name," - Create New Anchor"]}),chatName:d.name,backHref:null!=(r=c.data.back)?r:m,backBehavior:c.data.avatarCreatorSessionUuid?"link":"history",bodyElemRef:f,children:(0,n.Y)(eL,{user:t,nomi:d,queryParams:c.data,bodyElemRef:f})}):(0,n.Y)(l.A,{})};eB.getLayout=d.A.layoutBuilder;let eM=eB},13748:(e,r,t)=>{"use strict";t.d(r,{A:()=>d});var n=t(40869),a=t(26811),o=t(5409),i=t(20787),s=t(86861),c=t(23575),l=t(96675);function d(e){var r=e.error,t=e.onRetry;return(0,a.Y)(o.F,{color:"red",title:"Avatar creator",role:"alert",children:(0,a.FD)(i.B,{gap:"sm",children:[(0,a.Y)(s.E,{size:"sm",children:function(e){if((0,n._)(e,l.Ip))return"Please complete age verification before generating an avatar.";if((0,l.Dx)(e))switch(e.response.data.error.type){case"LimitExceeded":return"You have used your daily image requests and credits. Purchase more credits to keep generating.";case"PromptContainsForbiddenTerm":var r=e.response.data.error.firstBlockTerm;return r?"Your prompt contains a restricted term: â".concat(r,"â. Please revise it and try again."):"Your prompt contains a restricted term. Please revise it and try again.";case"ParentGenerationNotFound":case"ParentGenerationNotCompleted":return"This draft is not available to refine. Select a completed draft and try again.";case"AvatarCreatorSessionNotFound":return"This avatar draft could not be found. Go back and start a new draft.";case"AvatarCreatorGenerationNotFound":case"AvatarCreatorGenerationNotCompleted":return"This avatar is not available. Select a completed draft and try again.";case"AvatarCreatorSessionNomiMismatch":return"This avatar draft belongs to another Nomi. Go back and select a different draft."}return"We couldn't complete this request. Please try again."}(r)}
1),t&&(0,a.Y)(c.$,{variant:"default",onClick:t,children:"Try Again"})]})})}},16871:(e,r,t)=>{"use strict";t.d(r,{v:()=>o});var n=t(46225),a=t(75834);function o(e){var r=(0,n.useRouter)();return(0,a.useCallback)(function(){if(window.history.length>1)return void r.back();r.replace(e)},[e,r])}},20905:(e,r,t)=>{"use strict";t.d(r,{A:()=>f});var n=t(2530),a=t(99059),o=t(14345),i=t(26811),s=t(5023),c=t(29036),l=t(40369),d=t(22038),u=t(86861),h=t(75834),m=["lightly airbrushed photorealistic","a blend of high saturation vaporwave and synthwave","digital 3D cartoon animation","futuristic tron","high fantasy","retro futuristic cartoon","the exact same style as the reference image","vivid watercolor"];function f(e){var r=e.value,t=e.onChange,f=(0,o._)(e,["value","onChange"]),p=(0,s.F)({base:180,sm:280}),g=(0,s.F)({base:5,sm:7}),y=(0,c.B)({onDropdownClose:function(){return y.resetSelectedOption()},onDropdownOpen:function(){return y.updateSelectedOptionIndex()}}),v=(0,h.useMemo)(function(){var e=r.trim().toLowerCase();return m.filter(function(r){return r.toLowerCase().includes(e)}).slice(0,g)},[r,g]);return(0,i.FD)(l.G,{size:"md",store:y,onOptionSubmit:function(e){t(e),y.closeDropdown()},children:[(0,i.Y)(l.G.DropdownTarget,{children:(0,i.Y)(l.G.EventsTarget,{children:(0,i.Y)(d.k,(0,a._)((0,n._)({size:"md",label:"Custom Style",placeholder:"select a popular option or type your own custom style"},f),{value:r,onFocus:function(){v.length>0&&y.openDropdown()},onBlur:function(){return y.closeDropdown()},onClick:function(){v.length>0&&y.openDropdown()},onChange:function(e){t(e.currentTarget.value),y.updateSelectedOptionIndex();var r=e.currentTarget.value.trim().toLowerCase();m.some(function(e){return e.toLowerCase().includes(r)})?y.openDropdown():y.closeDropdown()}}))})}),(0,i.Y)(l.G.Dropdown,{children:(0,i.Y)(l.G.Options,{mah:p,style:{overflowY:"auto"},children:v.length>0?(0,i.FD)(i.FK,{children:[(0,i.Y)(u.E,{size:"xs",px:"sm",py:6,children:"Popular suggestions"}),v.map(function(e){return(0,i.Y)(l.G.Option,{value:e,children:e},e)})]}):(0,i.Y)(l.G.Empty,{children:"No matching suggestions"})})})]})}},22338:(e,r,t)=>{"use strict";t.d(r,{A:()=>p});var n=t(26811),a=t(5567),o=t(38117),i=t(17384),s=t(24322),c=t.n(s),l=t(96456),d=t.n(l),u=t(53690),h=t(74913),m=t.n(h),f=t(16871);let p=function(e){var r=e.header,t=e.children,s=e.title,l=e.chatName,h=e.backHref,p=e.backBehavior,g=e.nomi,y=e.user,v=e.audioElementRef,b=e.footer,Y=e.bodyElemRef,w=(0,f.v)(h);return(0,n.FD)("div",{className:m().root,children:[(0,n.Y)(c(),{children:(0,n.Y)("title",{children:"".concat(s," | ").concat(l," | Nomi.ai")})}),(0,n.FD)("header",{className:m().header,children:["history"===(void 0===p?"link":p)?(0,n.Y)(a.M,{color:"bright",variant:"transparent","aria-label":"Go back",onClick:w,children:(0,n.Y)(i.A,{size:24})}):(0,n.Y)(a.M,{color:"bright",variant:"transparent",component:d(),"aria-label":"Go back",href:h,children:(0,n.Y)(i.A,{size:24})}),r,g&&y&&v&&(0,n.Y)(o.s,{align:"center",display:{base:"block",md:"none"},children:(0,n.Y)(u.A,{nomi:g,user:y,audioElementRef:v})})]}),(0,n.Y)("main",{ref:Y,className:m().body,children:t}),b&&(0,n.Y)("footer",{className:m().footer,children:b})]})}},36888:(e,r,t)=>{"use strict";function n(e,r){return r?"".concat(e,' Blocked term: "').concat(r,'".'):e}t.d(r,{M:()=>n})},38800:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(26811),a=t(61632),o=t(86861),i=t(35382);let s=function(e){var r=e.maxCharacter,t=e.currentLength,s=e.showError;return(0,n.FD)(a.a,{mt:-8,style:{alignSelf:"flex-end",justifySelf:"center"},children:[r-t>=0&&(0,n.FD)(o.E,{size:"sm",c:"dimmed",children:[(0,n.Y)(i.K,{value:r-t,thousandSeparator:!0})," ","/ ",(0,n.Y)(i.K,{value:r,thousandSeparator:!0})," ","characters left"]}),s&&r-t<0&&(0,n.FD)(n.FK,{children:[(0,n.FD)(o.E,{size:"sm",c:"red",style:{justifySelf:"flex-end"},children:[(0,n.Y)(i.K,{value:r-t,thousandSeparator:!0})," ","/ ",(0,n.Y)(i.K,{value:r,thousandSeparator:!0})," ","characters left."]}),(0,n.Y)(o.E,{size:"sm",c:"red",children:"You will need to trim part of the content above to continue."})]})]})}},42714:(e,r,t)=>{"use strict";t.d(r,{k:()=>k}
1);var n=t(86695),a=t(31973),o=t(95515),i={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd","stripes-animation-vertical":"m_e0fb7a86",label:"m_91e40b74"},s=t(61632);let[c,l]=(0,t(41217).F)("Progress.Root component was not found in tree");var d=t(26514);let u=(0,o.P9)(e=>{let{classNames:r,className:t,style:a,styles:o,vars:i,...c}=(0,n.Y)("ProgressLabel",null,e),u=l();return(0,d.jsx)(s.a,{...u.getStyles("label",{className:t,style:a,classNames:r,styles:o}),...c})});u.classes=i,u.displayName="@mantine/core/ProgressLabel";var h=t(57715),m=t(11107),f=t(31372);let p=(0,m.V)((e,{size:r,radius:t,transitionDuration:n})=>({root:{"--progress-size":(0,h.YC)(r,"progress-size"),"--progress-radius":void 0===t?void 0:(0,h.nJ)(t),"--progress-transition-duration":"number"==typeof n?`${n}ms`:void 0}})),g=(0,o.P9)(e=>{let r=(0,n.Y)("ProgressRoot",null,e),{classNames:t,className:a,style:o,styles:l,unstyled:u,vars:h,autoContrast:m,transitionDuration:g,orientation:y,attributes:v,mod:b,...Y}=r,w=(0,f.I)({name:"Progress",classes:i,props:r,className:a,style:o,classNames:t,styles:l,unstyled:u,attributes:v,vars:h,varsResolver:p});return(0,d.jsx)(c,{value:{getStyles:w,autoContrast:m},children:(0,d.jsx)(s.a,{mod:[{orientation:y},b],...w("root"),...Y})})});g.classes=i,g.varsResolver=p,g.displayName="@mantine/core/ProgressRoot";var y=t(79303),v=t(35527),b=t(21923),Y=t(86443);let w={withAria:!0},I=(0,o.P9)(e=>{let{classNames:r,className:t,style:a,styles:o,vars:i,value:c,withAria:u,color:h,striped:m,animated:f,mod:p,...g}=(0,n.Y)("ProgressSection",w,e),I=l(),k=(0,Y.xd)(),C=u?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,"aria-valuetext":`${c}%`}:{};return(0,d.jsx)(s.a,{...I.getStyles("section",{className:t,classNames:r,styles:o,style:a}),...g,...C,mod:[{striped:m||f,animated:f},p],__vars:{"--progress-section-size":`${c}%`,"--progress-section-color":(0,y.r)(h,k),"--progress-label-color":(0,b.v)(I.autoContrast,k)?(0,v.w5)({color:h,theme:k,autoContrast:I.autoContrast}):void 0}})});I.classes=i,I.displayName="@mantine/core/ProgressSection";let k=(0,o.P9)(e=>{let r=(0,n.Y)("Progress",null,e),{value:t,classNames:o,styles:i,vars:s,color:c,striped:l,animated:u,"aria-label":h,...m}=r,{resolvedClassNames:f,resolvedStyles:p}=(0,a.Y)({classNames:o,styles:i,props:r});return(0,d.jsx)(g,{classNames:f,styles:p,vars:s,...m,children:(0,d.jsx)(I,{value:t,color:c,striped:l,animated:u,"aria-label":h})})});k.classes=i,k.displayName="@mantine/core/Progress",k.Section=I,k.Root=g,k.Label=u},52476:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/nomis/[nomiId]/anchors/new",function(){return t(6201)}])},74913:e=>{e.exports={root:"ChatSubPage_root__mNlGz",header:"ChatSubPage_header__fGTaa",body:"ChatSubPage_body__HEknn",footer
1:"ChatSubPage_footer__25kxr"}},94408:(e,r,t)=>{"use strict";t.d(r,{FI:()=>c,Pj:()=>l,WT:()=>s,Xy:()=>i});var n=t(5226),a=t(5499),o=t(79518);function i(){return(0,n.j)({queryKey:["avatarCreatorSessions"],queryFn:function(){return o.Ay.getAllSessions()},throwOnError:!1})}function s(e){return(0,n.j)({queryKey:["avatarCreatorSession",e],queryFn:e?function(){return o.Ay.getSession(e)}:a.hT,throwOnError:!1})}function c(e){return(0,n.j)({queryKey:["avatarCreatorGenerations",e],queryFn:e?function(){return o.Ay.getAllGenerations(e)}:a.hT,refetchInterval:function(e){var r;return null!=(r=e.state.data)&&!!r.some(l)&&2e3},throwOnError:!1})}function l(e){return"Requested"===e.status||"Processing"===e.status}}},e=>{e.O(0,[7737,7353,7948,3700,8099,3690,9742,636,6593,8792],()=>e(e.s=52476)),_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.