PageSourceSearch

https://lemgen.org/assets/index-DZ5SADsR.js

js lemgen.org collected 2026-09-29 09:53:52 UTC 699,793 bytes, 450 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/support-widget-DqrBxLl2.js","assets/utils-BOizZvZq.js","assets/button-BxVV7vbO.js","assets/dialog-iUgEK9Bp.js","assets/useOpenInteractionType-kjSTLUzQ.js","assets/owner-CkznycCR.js","assets/react-dom-B378M8Ei.js","assets/with-selector-CAvQvdjG.js","assets/DialogTitle-CHg2SSrm.js","assets/x-DrMCjWz_.js","assets/createLucideIcon-1BTIN15H.js","assets/client-uC0oZO3L.js","assets/messages-B-CFMV-4.js","assets/useQuery-CvZXDL2u.js","assets/navigation-BsN6ntJ0.js","assets/external-link-DeSSQBvq.js","assets/loader-circle-eUcVLqnD.js","assets/mail-DM8YzZjr.js","assets/send-jQMTCKtj.js","assets/dist-BGfT9HRh.js","assets/image-uploader-4dpbFwU7.js","assets/image-CtSdLBLF.js","assets/refresh-cw-CAfnqDuI.js","assets/upload-BLQ0cxBu.js","assets/label-2XmqiV7n.js","assets/textarea-DVjvwApm.js","assets/auth-dialog-C5OGz2g8.js","assets/api-client-BhvCIvMq.js","assets/support-BqINMZwi.js","assets/workspace-CcWClEJ9.js","assets/pricing-table-DFpF4wsF.js","assets/tooltip-C4pALFec.js","assets/dropdown-menu-ClMDai3M.js","assets/getPseudoElementBounds-CrYEzDhT.js","assets/chevron-right-TLPE-zc_.js","assets/useMutation-Bjt-5K14.js","assets/check-BOiVb4d9.js","assets/chevron-down-BpZQQVLJ.js","assets/credit-card-oadD1uLP.js","assets/gem-4o8XWEu6.js","assets/sparkles-kNy7B4XY.js","assets/use-public-config-C6cJm3U3.js","assets/analytics-KSJO_6Et.js","assets/kie-new-models-DLK5TeFD.js","assets/stripe-payment-methods-Ch3Rk0lR.js","assets/creation-tool-page-CrV7mE-l.js","assets/select-DndJo-Wf.js","assets/useField-CelEkSVW.js","assets/switch-B4LrkPU7.js","assets/useAriaLabelledBy-CMu4T0PG.js","assets/remote-media-CF6W1UA7.js","assets/wand-sparkles-BFMIQAA1.js","assets/video-ndk3X5xj.js","assets/house-Bpu02vr0.js","assets/config-D-kMigdE.js","assets/upgrade-pricing-dialog-CfP6d5Vs.js","assets/zap-DY-j5ZmB.js","assets/chevron-left-KK2PenpA.js","assets/circle-check-DPEBBc8n.js","assets/circle-x-C6Nsdic0.js","assets/clipboard-MtfByW5M.js","assets/coins-Bon7myjo.js","assets/download-DS47bbf6.js","assets/eye-DjPHqsVR.js","assets/file-audio-C4E9_1Gn.js","assets/locale-selector-DHabiwWX.js","assets/locale-CLeKRgUC.js","assets/list-ordered-DISoSu5X.js","assets/menu-CqIb29Ji.js","assets/message-square-heart-8tWSmFC4.js","assets/play-DBOEg2-g.js","assets/rotate-ccw-BBWxfoJX.js","assets/trash-2-CVJXLIr6.js","assets/site-user-menu-elxeKbay.js","assets/avatar-BSwRFKhQ.js","assets/use-user-permissions-CqOn2CIA.js","assets/settings-Br9lZbs7.js","assets/shield-DYY385V_.js","assets/download-Crp-UK3q.js","assets/free-generation-quota-BxS5_RB1.js","assets/video-to-video-BJx-1MFr.js","assets/text-to-video-DjjfsR6f.js","assets/text-to-speech-Cy37C1zg.js","assets/tool-shell-BBM7ZXjv.js","assets/theme-toggle-gCnkBupt.js","assets/sun-BCLxQTfz.js","assets/pause-B6sPhdVG.js","assets/footer-BVY4AHr-.js","assets/generator-content-ePrye88X.js","assets/product-marketing-C6CIkLw6.js","assets/common-controls-kamWs2R1.js","assets/model-selector-FrrpjaI5.js","assets/product-task-CPovwjTk.js","assets/request-idempotency-CJEfVcb_.js","assets/speech-voices-BP68NVk4.js","assets/text-to-image-BgEq0Zja.js","assets/pricing-BSoT0veC.js","assets/header-CGdU-Res.js","assets/pricing-nCy2Ls9L.js","assets/image-to-video-FKrNv9da.js","assets/image-editor-B2ti9qnq.js","assets/gpt-image-2-5-CPgjYE-v.js","assets/accordion-Bo_a25a2.js","assets/package-DWEQCMBV.js","assets/palette-DA8c2Ghc.js","assets/ai-script-generator-BU7i8xal.js","assets/minus-B_Mgt7p0.js","assets/plus-DGGKEiQX.js","assets/ai-music-generator-DTiDvG_d.js","assets/product-ai-Diw7c_aJ.js","assets/textideo-categories.generated-Bz_m2xd9.js","assets/textideo-effects.generated-DXhL7oNr.js","assets/ai-movie-generator-BMknWJ1o.js","assets/arrow-left-mUc-QloK.js","assets/image-plus-a7Q66o2Z.js","assets/route-Dte2KNaI.js","assets/key-8rPJZg_r.js","assets/app-layout-CXSIIkvE.js","assets/ellipsis-vertical-s4mtHsje.js","assets/separator-CvMPIcQd.js","assets/life-buoy-CcT_-Dzc.js","assets/route-bUmpMSJG.js","assets/route-ZkV6xJ-w.js","assets/mdx-components-35_DXFJ1.js","assets/routes-CnEofu_o.js","assets/lemgen-gallery-app-Fok62KuV.js","assets/camera-DusQND2s.js","assets/circle-alert-D8pSuoqU.js","assets/copy-DwFQrTSE.js","assets/ellipsis-By9XkgXJ.js","assets/pencil-CGhCerPz.js","assets/search-AcrrcXwC.js","assets/video-tools-CZPmM8G7.js","assets/video-effects-BMquSZc0.js","assets/photo-effects-Bqmv2La3.js","assets/image-tools-DKv0Q-a8.js","assets/blog-CygxSu2B.js","assets/posts-BWcYDmpn.js","assets/_slug-x6dHSe84.js","assets/category-detail-BCTn_v1t.js","assets/textideo-default-prompts.generated-o1iw6f85.js","assets/category-tabs-D-n2cWXQ.js","assets/textideo-localization-C3n50FeU.js","assets/dynamic-C-5v4FbA.js","assets/_slug-CARWH5zT.js","assets/gpt-image-2-5-Cqbcmi_2.js","assets/faymas-ai-prompt-WteBvN0E.js","assets/1980s-photo-prompts-landing-pNHb5I8q.js","assets/1980s-photo-BeLZbiW-.js","assets/_slug-CgPsD9xF.js","assets/_id-q1rJGeui.js","assets/_slug-DUQRz_3x.js","assets/_slug-CRhKtHhl.js","assets/_slug-Ddqye8vo.js","assets/markdown-content-CYJYbFx7.js","assets/verify-email-CwaXrAPt.js","assets/sign-up-D-nbzdvH.js","assets/reset-password-DWkLmnuF.js","assets/password-recovery-B2oR_7OU.js","assets/redeem-invite-D9aO08DJ.js","assets/forgot-password-hr0O0LiG.js","assets/settings-aiBW9Q-c.js","assets/tickets-CXk4bvQu.js","assets/data-table-DVUVDy94.js","assets/table-DdwT7LlD.js","assets/message-square-wnDj2zIa.js","assets/profile-BnYqjK_Y.js","assets/payments-B3Sf1mmF.js","assets/credits-C-hqXuIa.js","assets/billing-C6XnQcjB.js","assets/apikeys-BpJtV3O_.js","assets/admin-Sy73mVZd.js","assets/users-TGySkmQI.js","assets/checkbox-DFrvAeps.js","assets/device-BqqKrR9-.js","assets/tickets-Dso4ysif.js","assets/support-email-w5PhK5Pi.js","assets/subscriptions-CI2DVCAx.js","assets/settings-B8YXcjzB.js","assets/roles-BmtmDxzD.js","assets/posts-DJI0WvmG.js","assets/permissions-Yef3tvyc.js","assets/payments-puDDi3e3.js","assets/invite-codes-gtp0fFor.js","assets/expert-requests-D9TgZ8Nk.js","assets/credits-B2SfKiQj.js","assets/categories-Ctz3qrbi.js","assets/analytics-B0qPjcOm.js","assets/_page-B0HU9Ld8.js","assets/_page-CZKrCe-2.js","assets/_page-Bb0fRP9x.js","assets/_page-Bgq7JTuw.js"])))=>i.map(i=>d[i]);
2import{a as e,i as t,l as n,r,s as i,t as a}from"./utils-BOizZvZq.js";import{t as o}from"./react-dom-B378M8Ei.js";import{i as s,n as c,r as l,t as u}from"./createServerFn-CZTvrZYn.js";import{A as d,B as f,C as p,D as m,E as h,F as g,H as _,I as v,L as y,M as b,N as x,O as S,P as C,R as ee,S as te,T as ne,U as re,V as ie,W as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as w,g as T,h as de,i as fe,j as pe,k as me,l as he,m as E,n as ge,o as _e,p as ve,r as ye,s as be,t as xe,u as Se,v as Ce,w as we,x as Te,y as Ee,z as De}from"./navigation-BsN6ntJ0.js";import{a as Oe,c as ke,n as Ae,o as je,r as Me,s as Ne,t as Pe}from"./matchContext-DPbAsAVg.js";import{n as Fe,t as Ie}from"./qss-CuvTgpZA.js";import{t as Le}from"./with-selector-CAvQvdjG.js";import{n as Re,t as ze}from"./remote-media-CF6W1UA7.js";import{$F as D,$P as Be,AC as Ve,AP as He,Aa as Ue,BF as We,BP as Ge,CC as Ke,CP as qe,DC as Je,DP as Ye,EC as Xe,FF as Ze,FP as Qe,Fa as $e,GF as et,GP as tt,HP as nt,IF as rt,IP as it,Ia as at,JF as ot,JP as st,KF as ct,KP as lt,LF as ut,LP as dt,La as ft,MP as pt,Ma as mt,NP as ht,Na as gt,OC as _t,OP as vt,PP as yt,Pa as bt,QF as xt,QP as St,RF as Ct,RP as wt,SC as Tt,SP as Et,TC as Dt,TP as Ot,UP as kt,Us as At,VF as jt,VP as Mt,WF as Nt,WP as Pt,Ws as Ft,XF as It,XP as Lt,YF as Rt,YP as zt,ZF as Bt,ZP as Vt,_C as Ht,_P as Ut,_x as Wt,aF as Gt,an as Kt,bC as qt,bP as Jt,cC as Yt,cP as Xt,cn as Zt,dF as Qt,dP as $t,dr as en,eF as tn,eI as nn,en as rn,fP as an,fr as on,gC as sn,gP as cn,hC as ln,hP as un,hr as dn,iF as fn,iN as pn,in as mn,jC as hn,jP as gn,ja as _n,kC as vn,kP as yn,ka as bn,lC as xn,lP as Sn,ld as Cn,ln as wn,mC as Tn,mP as En,mr as Dn,nF as On,nI as kn,nn as An,oF as jn,on as Mn,pC as Nn,pF as Pn,pP as Fn,pd as In,pr as Ln,qF as Rn,qP as zn,rF as Bn,rn as Vn,sn as Hn,tF as Un,tI as Wn,tn as Gn,uP as Kn,ud as qn,ur as Jn,vC as Yn,vP as Xn,vx as Zn,wC as Qn,wP as $n,xC as er,xP as tr,yC as nr,yP as rr,zP as ir}from"./messages-B-CFMV-4.js";import{A as ar,C as or,D as sr,E as cr,F as lr,N as ur,O as dr,P as fr,S as pr,T as mr,b as hr,d as gr,f as _r,m as vr,t as yr,x as br,y as xr}from"./useQuery-CvZXDL2u.js";import{n as Sr,t as Cr}from"./useMutation-Bjt-5K14.js";import{a as wr,c as Tr,i as Er,l as Dr,n as Or,o as kr,r as Ar,s as jr,t as Mr}from"./auth-dialog-C5OGz2g8.js";import{t as Nr}from"./config-D-kMigdE.js";import{a as Pr,c as Fr,n as Ir,s as Lr,t as Rr}from"./client-uC0oZO3L.js";import{L as zr,O as Br,o as Vr,r as Hr,t as Ur}from"./button-BxVV7vbO.js";import{L as Wr,O as Gr,n as Kr,t as qr}
vendor: 16,443 bytes, lines 2-9
2from"./owner-CkznycCR.js";import{n as Jr,o as Yr,t as Xr}from"./dialog-iUgEK9Bp.js";import{t as Zr}from"./createLucideIcon-1BTIN15H.js";import{n as Qr}from"./wand-sparkles-BFMIQAA1.js";import{n as $r}from"./upgrade-pricing-dialog-CfP6d5Vs.js";import{t as ei}from"./check-BOiVb4d9.js";import{t as ti}from"./circle-check-DPEBBc8n.js";import{r as ni}from"./video-ndk3X5xj.js";import{n as ri}from"./gem-4o8XWEu6.js";import{t as ii}from"./external-link-DeSSQBvq.js";import{n as ai,t as oi}from"./creation-tool-page-CrV7mE-l.js";import{t as si}from"./loader-circle-eUcVLqnD.js";import{t as ci}from"./mail-DM8YzZjr.js";import{t as li}from"./rotate-ccw-BBWxfoJX.js";import{t as ui}from"./sparkles-kNy7B4XY.js";import{t as di}from"./x-DrMCjWz_.js";import{n as fi,t as pi}from"./dist-BGfT9HRh.js";import{t as mi}from"./analytics-KSJO_6Et.js";import{a as hi,r as gi}from"./api-client-BhvCIvMq.js";import{t as _i}from"./use-public-config-C6cJm3U3.js";import{t as vi}from"./label-2XmqiV7n.js";import"./separator-CvMPIcQd.js";import{i as yi,n as bi,o as xi,r as Si,s as Ci,t as wi}from"./useField-CelEkSVW.js";import{n as Ti,t as Ei}from"./textideo-localization-C3n50FeU.js";import{a as Di,i as Oi,n as ki,o as Ai,r as ji,t as Mi}from"./textideo-categories.generated-Bz_m2xd9.js";import{n as Ni,t as Pi}from"./textideo-effects.generated-DXhL7oNr.js";import{n as Fi,t as Ii}from"./category-pagination-VV2pFyX7.js";import{t as Li}from"./generator-content-ePrye88X.js";import{t as Ri}from"./category-tabs-D-n2cWXQ.js";import{t as zi}from"./footer-BVY4AHr-.js";var Bi=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function re(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Vi=e(((e,t)=>{t.exports=Bi()})),Hi=e((e=>{var n=Vi(),r=t(),i=o();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(a(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function E(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(E(ve,t),E(_e,e),E(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),E(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&E(ye,e);var t=ge.current,n=Wd(t,e.type);t!==n&&(E(_e,e),E(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),ep._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=n.unstable_scheduleCallback,Ne=n.unstable_cancelCallback,Pe=n.unstable_shouldYield,Fe=n.unstable_requestPaint,Ie=n.unstable_now,Le=n.unstable_getCurrentPriorityLevel,Re=n.unstable_ImmediatePriority,ze=n.unstable_UserBlockingPriority,D=n.unstable_NormalPriority,Be=n.unstable_LowPriority,Ve=n.unstable_IdlePriority,He=n.log,Ue=n.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=T.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function mt(e,t){var n=T.p;try{return T.p=e,t()}finally{T.p=n}}var ht=Math.random().toString(36).slice(2),gt=`__reactFiber$`+ht,_t=`__reactProps$`+ht,vt=`__reactContainer$`+ht,yt=`__reactEvents$`+ht,bt=`__reactListeners$`+ht,xt=`__reactHandles$`+ht,St=`__reactResources$`+ht,Ct=`__reactMarker$`+ht;function wt(e){delete e[gt],delete e[_t],delete e[yt],delete e[bt],delete e[xt]}function Tt(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[gt])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function Et(e){if(e=e[gt]||e[vt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Ot(e){var t=e[St];return t||=e[St]={hoistableStyles:new Map,hoistableScripts:new Map},t}function kt(e){e[Ct]=!0}var At=new Set,jt={};function Mt(e,t){Nt(e,t),Nt(e+`Capture`,t)}function Nt(e,t){for(jt[e]=t,e=0;e<t.length;e++)At.add(t[e])}var Pt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Ft={},It={};function Lt(e){return je.call(It,e)?!0:je.call(Ft,e)?!1:Pt.test(e)?It[e]=!0:(Ft[e]=!0,!1)}function Rt(e,t,n){if(Lt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Bt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Vt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ht(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ut(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wt(e){if(!e._valueTracker){var t=Ht(e)?`checked`:`value`;e._valueTracker=Ut(e,t,``+e[t])}}function Gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ht(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Kt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var qt=/[\n"\\]/g;function Jt(e){return e.replace(qt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Yt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Vt(t)):e.value!==``+Vt(t)&&(e.value=``+Vt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Zt(e,o,Vt(n)):Zt(e,o,Vt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Vt(s):e.removeAttribute(`name`)}function Xt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Wt(e);return}n=n==null?``:``+Vt(n),t=t==null?n:``+Vt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Wt(e)}function Zt(e,t,n){t===`number`&&Kt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Qt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function $t(e,t,n){if(t!=null&&(t=``+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Vt(n)}function en(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(ue(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}
vendor: 133,124 bytes, lines 9-10
9n=Vt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Wt(e)}function tn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function rn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||nn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function an(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&rn(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&rn(e,o,t[o])}function on(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var sn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),cn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ln(e){return cn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function un(){}var dn=null;function fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pn=null,mn=null;function hn(e){var t=Et(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[_t]||null;if(!i)throw Error(a(90));Yt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Gt(r)}break a;case`textarea`:$t(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Qt(e,!!n.multiple,t,!1)}}}var gn=!1;function _n(e,t,n){if(gn)return e(t,n);gn=!0;try{return e(t)}finally{if(gn=!1,(pn!==null||mn!==null)&&(Su(),pn&&(t=pn,e=mn,mn=pn=null,hn(t),e)))for(t=0;t<e.length;t++)hn(e[t])}}function vn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_t]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var yn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),bn=!1;if(yn)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){bn=!0}}),window.addEventListener(`test`,xn,xn),window.removeEventListener(`test`,xn,xn)}catch{bn=!1}var Sn=null,Cn=null,wn=null;function Tn(){if(wn)return wn;var e,t=Cn,n=t.length,r,i=`value`in Sn?Sn.value:Sn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return wn=i.slice(e,1<r?1-r:void 0)}function En(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Dn(){return!0}function On(){return!1}function kn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Dn:On,this.isPropagationStopped=On,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Dn)},persist:function(){},isPersistent:Dn}),t}var An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jn=kn(An),Mn=m({},An,{view:0,detail:0}),Nn=kn(Mn),Pn,Fn,In,Ln=m({},Mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==In&&(In&&e.type===`mousemove`?(Pn=e.screenX-In.screenX,Fn=e.screenY-In.screenY):Fn=Pn=0,In=e),Pn)},movementY:function(e){return`movementY`in e?e.movementY:Fn}}),Rn=kn(Ln),zn=kn(m({},Ln,{dataTransfer:0})),Bn=kn(m({},Mn,{relatedTarget:0})),Vn=kn(m({},An,{animationName:0,elapsedTime:0,pseudoElement:0})),Hn=kn(m({},An,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Un=kn(m({},An,{data:0})),Wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Gn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kn[e])?!!t[e]:!1}function Jn(){return qn}var Yn=kn(m({},Mn,{key:function(e){if(e.key){var t=Wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=En(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Gn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jn,charCode:function(e){return e.type===`keypress`?En(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?En(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Xn=kn(m({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Zn=kn(m({},Mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jn})),Qn=kn(m({},An,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=kn(m({},Ln,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),er=kn(m({},An,{newState:0,oldState:0})),tr=[9,13,27,32],nr=yn&&`CompositionEvent`in window,rr=null;yn&&`documentMode`in document&&(rr=document.documentMode);var ir=yn&&`TextEvent`in window&&!rr,ar=yn&&(!nr||rr&&8<rr&&11>=rr),or=` `,sr=!1;function cr(e,t){switch(e){case`keyup`:return tr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function lr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ur=!1;function dr(e,t){switch(e){case`compositionend`:return lr(t);case`keypress`:return t.which===32?(sr=!0,or):null;case`textInput`:return e=t.data,e===or&&sr?null:e;default:return null}}function fr(e,t){if(ur)return e===`compositionend`||!nr&&cr(e,t)?(e=Tn(),wn=Cn=Sn=null,ur=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ar&&t.locale!==`ko`?null:t.data;default:return null}}var pr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!pr[e.type]:t===`textarea`}function hr(e,t,n,r){pn?mn?mn.push(r):mn=[r]:pn=r,t=Od(t,`onChange`),0<t.length&&(n=new jn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var gr=null,_r=null;function vr(e){xd(e,0)}function yr(e){if(Gt(Dt(e)))return e}function br(e,t){if(e===`change`)return t}var xr=!1;if(yn){var Sr;if(yn){var Cr=`oninput`in document;if(!Cr){var wr=document.createElement(`div`);wr.setAttribute(`oninput`,`return;`),Cr=typeof wr.oninput==`function`}Sr=Cr}else Sr=!1;xr=Sr&&(!document.documentMode||9<document.documentMode)}function Tr(){gr&&(gr.detachEvent(`onpropertychange`,Er),_r=gr=null)}function Er(e){if(e.propertyName===`value`&&yr(_r)){var t=[];hr(t,_r,e,fn(e)),_n(vr,t)}}function Dr(e,t,n){e===`focusin`?(Tr(),gr=t,_r=n,gr.attachEvent(`onpropertychange`,Er)):e===`focusout`&&Tr()}function Or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return yr(_r)}function kr(e,t){if(e===`click`)return yr(t)}function Ar(e,t){if(e===`input`||e===`change`)return yr(t)}function jr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Mr=typeof Object.is==`function`?Object.is:jr;function Nr(e,t){if(Mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!je.call(t,i)||!Mr(e[i],t[i]))return!1}return!0}function Pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fr(e,t){var n=Pr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Pr(n)}}function Ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ir(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kt(e.document)}return t}function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var zr=yn&&`documentMode`in document&&11>=document.documentMode,Br=null,Vr=null,Hr=null,Ur=!1;function Wr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ur||Br==null||Br!==Kt(r)||(r=Br,`selectionStart`in r&&Rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hr&&Nr(Hr,r)||(Hr=r,r=Od(Vr,`onSelect`),0<r.length&&(t=new jn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Br)))}function Gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Kr={animationend:Gr(`Animation`,`AnimationEnd`),animationiteration:Gr(`Animation`,`AnimationIteration`),animationstart:Gr(`Animation`,`AnimationStart`),transitionrun:Gr(`Transition`,`TransitionRun`),transitionstart:Gr(`Transition`,`TransitionStart`),transitioncancel:Gr(`Transition`,`TransitionCancel`),transitionend:Gr(`Transition`,`TransitionEnd`)},qr={},Jr={};yn&&(Jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),`TransitionEvent`in window||delete Kr.transitionend.transition);function Yr(e){if(qr[e])return qr[e];if(!Kr[e])return e;var t=Kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return qr[e]=t[n];return e}var Xr=Yr(`animationend`),Zr=Yr(`animationiteration`),Qr=Yr(`animationstart`),$r=Yr(`transitionrun`),ei=Yr(`transitionstart`),ti=Yr(`transitioncancel`),ni=Yr(`transitionend`),ri=new Map,ii=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ii.push(`scrollEnd`);function ai(e,t){ri.set(e,t),Mt(t,[e])}var oi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},si=[],ci=0,li=0;function ui(){for(var e=ci,t=li=ci=0;t<e;){var n=si[t];si[t++]=null;var r=si[t];si[t++]=null;var i=si[t];si[t++]=null;var a=si[t];if(si[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&mi(n,i,a)}}function di(e,t,n,r){si[ci++]=e,si[ci++]=t,si[ci++]=n,si[ci++]=r,li|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function fi(e,t,n,r){return di(e,t,n,r),hi(e)}function pi(e,t){return di(e,null,null,t),hi(e)}function mi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function hi(e){if(50<pu)throw pu=0,mu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gi={};function _i(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(e,t,n,r){return new _i(e,t,n,r)}function yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bi(e,t){var n=e.alternate;return n===null?(n=vi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function xi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Si(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)yi(e)&&(s=1);else if(typeof e==`string`)s=Gf(e,n,ge.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ie:return e=vi(31,n,t,i),e.elementType=ie,e.lanes=o,e;case v:return Ci(n.children,i,o,t);case y:s=8,i|=24;break;case b:return e=vi(12,n,t,i|2),e.elementType=b,e.lanes=o,e;case ee:return e=vi(13,n,t,i),e.elementType=ee,e.lanes=o,e;case te:return e=vi(19,n,t,i),e.elementType=te,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case ne:s=14;break a;case re:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=vi(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ci(e,t,n,r){return e=vi(7,e,r,t),e.lanes=n,e}function wi(e,t,n){return e=vi(6,e,null,t),e.lanes=n,e}function Ti(e){var t=vi(18,null,null,0);return t.stateNode=e,t}function Ei(e,t,n){return t=vi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Di=new WeakMap;function Oi(e,t){if(typeof e==`object`&&e){var n=Di.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},Di.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}var ki=[],Ai=0,ji=null,Mi=0,Ni=[],Pi=0,Fi=null,Ii=1,Li=``;function Ri(e,t){ki[Ai++]=Mi,ki[Ai++]=ji,ji=e,Mi=t}function zi(e,t,n){Ni[Pi++]=Ii,Ni[Pi++]=Li,Ni[Pi++]=Fi,Fi=e;var r=Ii;e=Li;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ii=1<<32-qe(t)+i|n<<i|r,Li=a+e}else Ii=1<<a|n<<i|r,Li=e}function Bi(e){e.return!==null&&(Ri(e,1),zi(e,1,0))}function Hi(e){for(;e===ji;)ji=ki[--Ai],ki[Ai]=null,Mi=ki[--Ai],ki[Ai]=null;for(;e===Fi;)Fi=Ni[--Pi],Ni[Pi]=null,Li=Ni[--Pi],Ni[Pi]=null,Ii=Ni[--Pi],Ni[Pi]=null}function Ui(e,t){Ni[Pi++]=Ii,Ni[Pi++]=Li,Ni[Pi++]=Fi,Ii=t.id,Li=t.overflow,Fi=e}var Wi=null,Gi=null,O=!1,Ki=null,qi=!1,Ji=Error(a(519));function Yi(e){throw ta(Oi(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ji}function Xi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[gt]=e,t[_t]=r,n){case`dialog`:X(`cancel`,t),X(`close`,t);break;case`iframe`:case`object`:case`embed`:X(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)X(yd[n],t);break;case`source`:X(`error`,t);break;case`img`:case`image`:case`link`:X(`error`,t),X(`load`,t);break;case`details`:X(`toggle`,t);break;case`input`:X(`invalid`,t),Xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:X(`invalid`,t);break;case`textarea`:X(`invalid`,t),en(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Pd(t.textContent,n)?(r.popover!=null&&(X(`beforetoggle`,t),X(`toggle`,t)),r.onScroll!=null&&X(`scroll`,t),r.onScrollEnd!=null&&X(`scrollend`,t),r.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||Yi(e,!0)}function Zi(e){for(Wi=e.return;Wi;)switch(Wi.tag){case 5:case 31:case 13:qi=!1;return;case 27:case 3:qi=!0;return;default:Wi=Wi.return}}function Qi(e){if(e!==Wi)return!1;if(!O)return Zi(e),O=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&Gi&&Yi(e),Zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Gi=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Gi=ff(e)}else t===27?(t=Gi,$d(e.type)?(e=df,df=null,Gi=e):Gi=t):Gi=Wi?uf(e.stateNode.nextSibling):null;return!0}function $i(){Gi=Wi=null,O=!1}function ea(){var e=Ki;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Ki=null),e}function ta(e){Ki===null?Ki=[e]:Ki.push(e)}var na=me(null),ra=null,ia=null;function aa(e,t,n){E(na,t._currentValue),t._currentValue=n}function oa(e){e._currentValue=na.current,he(na)}function sa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ca(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),sa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),sa(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function la(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Mr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ye.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ep]:e.push(ep))}i=i.return}e!==null&&ca(t,e,n,r),t.flags|=262144}function ua(e){for(e=e.firstContext;e!==null;){if(!Mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function da(e){ra=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fa(e){return ma(ra,e)}function pa(e,t){return ra===null&&da(e),ma(e,t)}function ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ia===null){if(e===null)throw Error(a(308));ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ia=ia.next=t;return n}var ha=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ga=n.unstable_scheduleCallback,_a=n.unstable_NormalPriority,va={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ya(){return{controller:new ha,data:new Map,refCount:0}}function ba(e){e.refCount--,e.refCount===0&&ga(_a,function(){e.controller.abort()})}var xa=null,Sa=0,Ca=0,wa=null;function Ta(e,t){if(xa===null){var n=xa=[];Sa=0,Ca=pd(),wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Sa++,t.then(Ea,Ea),t}function Ea(){if(--Sa===0&&xa!==null){wa!==null&&(wa.status=`fulfilled`);var e=xa;xa=null,Ca=0,wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Oa=w.S;w.S=function(e,t){nu=Ie(),typeof t==`object`&&t&&typeof t.then==`function`&&Ta(e,t),Oa!==null&&Oa(e,t)};var ka=me(null);function Aa(){var e=ka.current;return e===null?U.pooledCache:e}function ja(e,t){t===null?E(ka,ka.current):E(ka,t.pool)}function Ma(){var e=Aa();return e===null?null:{parent:va._currentValue,pool:e}}var Na=Error(a(460)),Pa=Error(a(474)),Fa=Error(a(542)),Ia={then:function(){}};function La(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ra(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(un,un),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ha(e),e;default:if(typeof t.status==`string`)t.then(un,un);else{if(e=U,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ha(e),e}throw Ba=t,Na}}function za(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ba=e,Na):e}}var Ba=null;function Va(){if(Ba===null)throw Error(a(459));var e=Ba;return Ba=null,e}function Ha(e){if(e===Na||e===Fa)throw Error(a(483))}var Ua=null,Wa=0;function Ga(e){var t=Wa;return Wa+=1,Ua===null&&(Ua=[]),Ra(Ua,e,t)}function Ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function qa(e,t){throw t.$$typeof===h?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=bi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=wi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===re&&za(a)===t.type)?(t=i(t,n.props),Ka(t,n),t.return=e,t):(t=Si(n.type,n.key,n.props,null,e.mode,r),Ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ei(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Ci(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=wi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=Si(t.type,t.key,t.props,null,e.mode,n),Ka(n,t),n.return=e,n;case _:return t=Ei(t,e.mode,n),t.return=e,t;case re:return t=za(t),f(e,t,n)}if(ue(t)||se(t))return t=Ci(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ga(t),n);if(t.$$typeof===S)return f(e,pa(e,t),n);qa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case re:return n=za(n),p(e,t,n,r)}if(ue(n)||se(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ga(n),r);if(n.$$typeof===S)return p(e,t,pa(e,n),r);qa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:return r=za(r),m(e,t,n,r,i)}if(ue(r)||se(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ga(r),i);if(r.$$typeof===S)return m(e,t,n,pa(t,r),i);qa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),O&&Ri(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return O&&Ri(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),O&&Ri(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),O&&Ri(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return O&&Ri(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),O&&Ri(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&za(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=Ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=Si(o.type,o.key,o.props,null,e.mode,c),Ka(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Ei(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=za(o),b(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(se(o)){if(l=se(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ga(o),c);if(o.$$typeof===S)return b(e,r,pa(e,o),c);qa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=wi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Wa=0;var i=b(e,t,n,r);return Ua=null,i}catch(t){if(t===Na||t===Fa)throw t;var a=vi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ya=Ja(!0),Xa=Ja(!1),Za=!1;function Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $a(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function eo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function to(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=hi(e),mi(e,null,n),t}return di(e,r,t,n),hi(e)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var io=!1;function ao(){if(io){var e=wa;if(e!==null)throw e}}function oo(e,t,n,r){io=!1;var i=e.updateQueue;Za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(G&f)===f:(r&f)===f){f!==0&&f===Ca&&(io=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Za=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function so(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)so(n[e],t)}var lo=me(null),uo=me(0);function fo(e,t){e=Kl,E(uo,e),E(lo,t),Kl=e|t.baseLanes}function po(){E(uo,Kl),E(lo,lo.current)}function mo(){Kl=uo.current,he(lo),he(uo)}var ho=me(null),go=null;function _o(e){var t=e.alternate;E(bo,bo.current&1),E(ho,e),go===null&&(t===null||lo.current!==null||t.memoizedState!==null)&&(go=e)}function vo(e){E(bo,bo.current),E(ho,e),go===null&&(go=e)}function k(e){e.tag===22?(E(bo,bo.current),E(ho,e),go===null&&(go=e)):A(e)}function A(){E(bo,bo.current),E(ho,ho.current)}function yo(e){he(ho),go===e&&(go=null),he(bo)}var bo=me(0);function xo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var So=0,j=null,M=null,N=null,Co=!1,wo=!1,To=!1,Eo=0,Do=0,Oo=null,ko=0;function Ao(){throw Error(a(321))}function jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function Mo(e,t,n,r,i,a){return So=a,j=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?Ks:qs,To=!1,a=n(r,i),To=!1,wo&&(a=Po(t,n,r,i)),No(e),a}function No(e){w.H=Gs;var t=M!==null&&M.next!==null;if(So=0,N=M=j=null,Co=!1,Do=0,Oo=null,t)throw Error(a(300));e===null||lc||(e=e.dependencies,e!==null&&ua(e)&&(lc=!0))}function Po(e,t,n,r){j=e;var i=0;do{if(wo&&(Oo=null),Do=0,wo=!1,25<=i)throw Error(a(301));if(i+=1,N=M=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}w.H=Js,o=t(n,r)}while(wo);return o}function Fo(){var e=w.H,t=e.useState()[0];return t=typeof t.then==`function`?Ho(t):t,e=e.useState()[0],(M===null?null:M.memoizedState)!==e&&(j.flags|=1024),t}function Io(){var e=Eo!==0;return Eo=0,e}function Lo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ro(e){if(Co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Co=!1}So=0,N=M=j=null,wo=!1,Do=Eo=0,Oo=null}function zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return N===null?j.memoizedState=N=e:N=N.next=e,N}function Bo(){if(M===null){var e=j.alternate;e=e===null?null:e.memoizedState}else e=M.next;var t=N===null?j.memoizedState:N.next;if(t!==null)N=t,M=e;else{if(e===null)throw j.alternate===null?Error(a(467)):Error(a(310));M=e,e={memoizedState:M.memoizedState,baseState:M.baseState,baseQueue:M.baseQueue,queue:M.queue,next:null},N===null?j.memoizedState=N=e:N=N.next=e}return N}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ho(e){var t=Do;return Do+=1,Oo===null&&(Oo=[]),e=Ra(Oo,e,t),t=j,(N===null?t.memoizedState:N.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?Ks:qs),e}function Uo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ho(e);if(e.$$typeof===S)return fa(e)}throw Error(a(438,String(e)))}function Wo(e){var t=null,n=j.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=j.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Vo(),j.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ae;return t.index++,n}function Go(e,t){return typeof t==`function`?t(e):t}function Ko(e){return qo(Bo(),M,e)}function qo(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(So&f)===f:(G&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ca&&(d=!0);else if((So&p)===p){u=u.next,p===Ca&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,j.lanes|=p,Jl|=p;f=u.action,To&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,j.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Mr(o,e.memoizedState)&&(lc=!0,d&&(n=wa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Jo(e){var t=Bo(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Mr(o,t.memoizedState)||(lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yo(e,t,n){var r=j,i=Bo(),o=O;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Mr((M||i).memoizedState,n);if(s&&(i.memoizedState=n,lc=!0),i=i.queue,vs(Qo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||N!==null&&N.memoizedState.tag&1){if(r.flags|=2048,ps(9,{destroy:void 0},Zo.bind(null,r,i,n,t),null),U===null)throw Error(a(349));o||So&127||Xo(r,t,n)}return n}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=j.updateQueue,t===null?(t=Vo(),j.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,P(t)&&$o(e)}function Qo(e,t,n){return n(function(){P(t)&&$o(e)})}function P(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mr(e,n)}catch{return!0}}function $o(e){var t=pi(e,2);t!==null&&_u(t,e,2)}function F(e){var t=zo();if(typeof e==`function`){var n=e;if(e=n(),To){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},t}function es(e,t,n,r){return e.baseState=n,qo(e,M,typeof r==`function`?r:Go)}function ts(e,t,n,r,i){if(Hs(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};w.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ns(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ns(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=w.T,o={};w.T=o;try{var s=n(i,r),c=w.S;c!==null&&c(o,s),rs(e,t,s)}catch(n){as(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),w.T=a}}else try{a=n(i,r),rs(e,t,a)}catch(n){as(e,t,n)}}function rs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){is(e,t,n)},function(n){return as(e,t,n)}):is(e,t,n)}function is(e,t,n){t.status=`fulfilled`,t.value=n,os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ns(e,n)))}function as(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,os(t),t=t.next;while(t!==r)}e.action=null}function os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ss(e,t){return t}function cs(e,t){if(O){var n=U.formState;if(n!==null){a:{var r=j;if(O){if(Gi){b:{for(var i=Gi,a=qi;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Gi=uf(i.nextSibling),r=i.data===`F!`;break a}}Yi(r)}r=!1}r&&(t=n[0])}}return n=zo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:t},n.queue=r,n=zs.bind(null,j,r),r.dispatch=n,r=F(!1),a=Vs.bind(null,j,!1,r.queue),r=zo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ts.bind(null,j,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ls(e){return us(Bo(),M,e)}function us(e,t,n){if(t=qo(e,t,ss)[0],e=Ko(Go)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ho(t)}catch(e){throw e===Na?Fa:e}else r=t;t=Bo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(j.flags|=2048,ps(9,{destroy:void 0},ds.bind(null,i,n),null)),[r,a,e]}function ds(e,t){e.action=t}function fs(e){var t=Bo(),n=M;if(n!==null)return us(t,n,e);Bo(),t=t.memoizedState,n=Bo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=j.updateQueue,t===null&&(t=Vo(),j.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ms(){return Bo().memoizedState}function hs(e,t,n,r){var i=zo();j.flags|=e,i.memoizedState=ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function gs(e,t,n,r){var i=Bo();r=r===void 0?null:r;var a=i.memoizedState.inst;M!==null&&r!==null&&jo(r,M.memoizedState.deps)?i.memoizedState=ps(t,a,n,r):(j.flags|=e,i.memoizedState=ps(1|t,a,n,r))}function _s(e,t){hs(8390656,8,e,t)}function vs(e,t){gs(2048,8,e,t)}function ys(e){j.flags|=4;var t=j.updateQueue;if(t===null)t=Vo(),j.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function bs(e){var t=Bo().memoizedState;return ys({ref:t,nextImpl:e}),function(){if(H&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function xs(e,t){return gs(4,2,e,t)}function Ss(e,t){return gs(4,4,e,t)}function Cs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ws(e,t,n){n=n==null?null:n.concat([e]),gs(4,4,Cs.bind(null,t,e),n)}function Ts(){}function Es(e,t){var n=Bo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&jo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ds(e,t){var n=Bo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&jo(t,r[1]))return r[0];if(r=e(),To){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Os(e,t,n){return n===void 0||So&1073741824&&!(G&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),j.lanes|=e,Jl|=e,n)}function ks(e,t,n,r){return Mr(n,t)?n:lo.current===null?!(So&42)||So&1073741824&&!(G&261930)?(lc=!0,e.memoizedState=n):(e=gu(),j.lanes|=e,Jl|=e,t):(e=Os(e,n,r),Mr(e,t)||(lc=!0),e)}function As(e,t,n,r,i){var a=T.p;T.p=a!==0&&8>a?a:8;var o=w.T,s={};w.T=s,Vs(e,!1,t,n);try{var c=i(),l=w.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Bs(e,t,Da(c,r),hu(e)):Bs(e,t,r,hu(e))}catch(n){Bs(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{T.p=a,o!==null&&s.types!==null&&(o.types=s.types),w.T=o}}function I(){}function js(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Ms(e).queue;As(e,i,t,de,n===null?I:function(){return Ns(e),n(r)})}function Ms(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ns(e){var t=Ms(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},hu())}function Ps(){return fa(ep)}function Fs(){return Bo().memoizedState}function Is(){return Bo().memoizedState}function Ls(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=eo(n);var r=to(t,e,n);r!==null&&(_u(r,t,n),no(r,t,n)),t={cache:ya()},e.payload=t;return}t=t.return}}function Rs(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Us(t,n):(n=fi(e,t,n,r),n!==null&&(_u(n,e,r),Ws(n,t,r)))}function zs(e,t,n){Bs(e,t,n,hu())}function Bs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mr(s,o))return di(e,t,i,0),U===null&&ui(),!1}catch{}if(n=fi(e,t,i,r),n!==null)return _u(n,e,r),Ws(n,t,r),!0}return!1}function Vs(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(a(479))}else t=fi(e,n,r,2),t!==null&&_u(t,e,2)}function Hs(e){var t=e.alternate;return e===j||t!==null&&t===j}function Us(e,t){wo=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var Gs={readContext:fa,use:Uo,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useLayoutEffect:Ao,useInsertionEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useSyncExternalStore:Ao,useId:Ao,useHostTransitionStatus:Ao,useFormState:Ao,useActionState:Ao,useOptimistic:Ao,useMemoCache:Ao,useCacheRefresh:Ao};Gs.useEffectEvent=Ao;var Ks={readContext:fa,use:Uo,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:_s,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),hs(4194308,4,Cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){hs(4,2,e,t)},useMemo:function(e,t){var n=zo();t=t===void 0?null:t;var r=e();if(To){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=zo();if(n!==void 0){var i=n(t);if(To){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Rs.bind(null,j,e),[r.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:function(e){e=F(e);var t=e.queue,n=zs.bind(null,j,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ts,useDeferredValue:function(e,t){return Os(zo(),e,t)},useTransition:function(){var e=F(!1);return e=As.bind(null,j,e.queue,!0,!1),zo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=j,i=zo();if(O){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),U===null)throw Error(a(349));G&127||Xo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_s(Qo.bind(null,r,o,e),[e]),r.flags|=2048,ps(9,{destroy:void 0},Zo.bind(null,r,o,n,t),null),n},useId:function(){var e=zo(),t=U.identifierPrefix;if(O){var n=Li,r=Ii;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Eo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ko++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ps,useFormState:cs,useActionState:cs,useOptimistic:function(e){var t=zo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vs.bind(null,j,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wo,useCacheRefresh:function(){return zo().memoizedState=Ls.bind(null,j)},useEffectEvent:function(e){var t=zo(),n={impl:e};return t.memoizedState=n,function(){if(H&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},qs={readContext:fa,use:Uo,useCallback:Es,useContext:fa,useEffect:vs,useImperativeHandle:ws,useInsertionEffect:xs,useLayoutEffect:Ss,useMemo:Ds,useReducer:Ko,useRef:ms,useState:function(){return Ko(Go)},useDebugValue:Ts,useDeferredValue:function(e,t){return ks(Bo(),M.memoizedState,e,t)},useTransition:function(){var e=Ko(Go)[0],t=Bo().memoizedState;return[typeof e==`boolean`?e:Ho(e),t]},useSyncExternalStore:Yo,useId:Fs,useHostTransitionStatus:Ps,useFormState:ls,useActionState:ls,useOptimistic:function(e,t){return es(Bo(),M,e,t)},useMemoCache:Wo,useCacheRefresh:Is};qs.useEffectEvent=bs;var Js={readContext:fa,use:Uo,useCallback:Es,useContext:fa,useEffect:vs,useImperativeHandle:ws,useInsertionEffect:xs,useLayoutEffect:Ss,useMemo:Ds,useReducer:Jo,useRef:ms,useState:function(){return Jo(Go)},useDebugValue:Ts,useDeferredValue:function(e,t){var n=Bo();return M===null?Os(n,e,t):ks(n,M.memoizedState,e,t)},useTransition:function(){var e=Jo(Go)[0],t=Bo().memoizedState;return[typeof e==`boolean`?e:Ho(e),t]},useSyncExternalStore:Yo,useId:Fs,useHostTransitionStatus:Ps,useFormState:fs,useActionState:fs,useOptimistic:function(e,t){var n=Bo();return M===null?(n.baseState=e,[e,n.queue.dispatch]):es(n,M,e,t)},useMemoCache:Wo,useCacheRefresh:Is};Js.useEffectEvent=bs;function Ys(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=eo(r);i.payload=t,n!=null&&(i.callback=n),t=to(e,i,r),t!==null&&(_u(t,e,r),no(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=eo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=to(e,i,r),t!==null&&(_u(t,e,r),no(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=eo(n);r.tag=2,t!=null&&(r.callback=t),t=to(e,r,n),t!==null&&(_u(t,e,n),no(t,e,n))}};function Zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Nr(n,r)||!Nr(i,a):!0}function Qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xs.enqueueReplaceState(t,t.state,null)}function $s(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ec(e){oi(e)}function tc(e){console.error(e)}function nc(e){oi(e)}function rc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ic(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ac(e,t,n){return n=eo(n),n.tag=3,n.payload={element:null},n.callback=function(){rc(e,t)},n}function oc(e){return e=eo(e),e.tag=3,e}function sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ic(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ic(t,n,r),typeof i!=`function`&&(au===null?au=new Set([this]):au.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function cc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&la(t,n,i,!0),n=ho.current,n!==null){switch(n.tag){case 31:case 13:return go===null?ku():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ia?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,i)),!1;case 22:return n.flags|=65536,r===Ia?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,i)),!1}throw Error(a(435,n.tag))}return qu(e,r,i),ku(),!1}if(O)return t=ho.current,t===null?(r!==Ji&&(t=Error(a(423),{cause:r}),ta(Oi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Oi(r,n),i=ac(e.stateNode,r,i),ro(e,i),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ji&&(e=Error(a(422),{cause:r}),ta(Oi(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Oi(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=Oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ac(n.stateNode,r,e),ro(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(au===null||!au.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=oc(i),sc(i,e,n,r),ro(n,i),!1}n=n.return}while(n!==null);return!1}var L=Error(a(461)),lc=!1;function uc(e,t,n,r){t.child=e===null?Xa(t,null,n,r):Ya(t,e.child,n,r)}function dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return da(t),r=Mo(e,t,n,o,a,i),s=Io(),e!==null&&!lc?(Lo(e,t,i),Fc(e,t,i)):(O&&s&&Bi(t),t.flags|=1,uc(e,t,r,i),t.child)}function fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!yi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,pc(e,t,a,r,i)):(e=Si(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ic(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Nr:n,n(o,r)&&e.ref===t.ref)return Fc(e,t,i)}return t.flags|=1,e=bi(a,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Nr(a,r)&&e.ref===t.ref)if(lc=!1,t.pendingProps=r=a,Ic(e,i))e.flags&131072&&(lc=!0);else return t.lanes=e.lanes,Fc(e,t,i)}return xc(e,t,n,r,i)}function mc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return gc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ja(t,a===null?null:a.cachePool),a===null?po():fo(t,a),k(t);else return r=t.lanes=536870912,gc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ja(t,null),po(),A(t)):(ja(t,a.cachePool),fo(t,a),A(t),t.memoizedState=null);return uc(e,t,i,n),t.child}function hc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gc(e,t,n,r,i){var a=Aa();return a=a===null?null:{parent:va._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ja(t,null),po(),k(t),e!==null&&la(e,t,r,!0),t.childLanes=i,null}function _c(e,t){return t=Ac({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vc(e,t,n){return Ya(t,e.child,null,n),e=_c(t,t.pendingProps),e.flags|=2,yo(t),t.memoizedState=null,e}function yc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(O){if(r.mode===`hidden`)return e=_c(t,r),t.lanes=536870912,hc(null,e);if(vo(t),(e=Gi)?(e=of(e,qi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fi===null?null:{id:Ii,overflow:Li},retryLane:536870912,hydrationErrors:null},n=Ti(e),n.return=t,t.child=n,Wi=t,Gi=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return _c(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(vo(t),i)if(t.flags&256)t.flags&=-257,t=vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(lc||la(e,t,n,!1),i=(n&e.childLanes)!==0,lc||i){if(r=U,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,pi(e,s),_u(r,e,s),L;ku(),t=vc(e,t,n)}else e=o.treeContext,Gi=uf(s.nextSibling),Wi=t,O=!0,Ki=null,qi=!1,e!==null&&Ui(t,e),t=_c(t,r),t.flags|=4096;return t}return e=bi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function xc(e,t,n,r,i){return da(t),n=Mo(e,t,n,r,void 0,i),r=Io(),e!==null&&!lc?(Lo(e,t,i),Fc(e,t,i)):(O&&r&&Bi(t),t.flags|=1,uc(e,t,n,i),t.child)}function Sc(e,t,n,r,i,a){return da(t),t.updateQueue=null,n=Po(t,r,n,i),No(e),r=Io(),e!==null&&!lc?(Lo(e,t,a),Fc(e,t,a)):(O&&r&&Bi(t),t.flags|=1,uc(e,t,n,a),t.child)}function Cc(e,t,n,r,i){if(da(t),t.stateNode===null){var a=gi,o=n.contextType;typeof o==`object`&&o&&(a=fa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Xs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Qa(t),o=n.contextType,a.context=typeof o==`object`&&o?fa(o):gi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ys(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Xs.enqueueReplaceState(a,a.state,null),oo(t,r,a,i),ao(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=$s(n,s);a.props=c;var l=a.context,u=n.contextType;o=gi,typeof u==`object`&&u&&(o=fa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Qs(t,a,r,o),Za=!1;var f=t.memoizedState;a.state=f,oo(t,r,a,i),ao(),l=t.memoizedState,s||f!==l||Za?(typeof d==`function`&&(Ys(t,n,d,r),l=t.memoizedState),(c=Za||Zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$a(e,t),o=t.memoizedProps,u=$s(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=gi,typeof l==`object`&&l&&(c=fa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Qs(t,a,r,c),Za=!1,f=t.memoizedState,a.state=f,oo(t,r,a,i),ao();var p=t.memoizedState;o!==d||f!==p||Za||e!==null&&e.dependencies!==null&&ua(e.dependencies)?(typeof s==`function`&&(Ys(t,n,s,r),p=t.memoizedState),(u=Za||Zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ua(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,bc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ya(t,e.child,null,i),t.child=Ya(t,null,n,i)):uc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Fc(e,t,i),e}function wc(e,t,n,r){return $i(),t.flags|=256,uc(e,t,n,r),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:Ma()}}function Dc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function Oc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(bo.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(O){if(i?_o(t):A(t),(e=Gi)?(e=of(e,qi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fi===null?null:{id:Ii,overflow:Li},retryLane:536870912,hydrationErrors:null},n=Ti(e),n.return=t,t.child=n,Wi=t,Gi=null)):e=null,e===null)throw Yi(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(A(t),i=t.mode,c=Ac({mode:`hidden`,children:c},i),r=Ci(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Ec(n),r.childLanes=Dc(e,s,n),t.memoizedState=Tc,hc(null,r)):(_o(t),kc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(_o(t),t.flags&=-257,t=jc(e,t,n)):t.memoizedState===null?(A(t),c=r.fallback,i=t.mode,r=Ac({mode:`visible`,children:r.children},i),c=Ci(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ya(t,e.child,null,n),r=t.child,r.memoizedState=Ec(n),r.childLanes=Dc(e,s,n),t.memoizedState=Tc,t=hc(null,r)):(A(t),t.child=e.child,t.flags|=128,t=null);else if(_o(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,ta({value:r,source:null,stack:null}),t=jc(e,t,n)}else if(lc||la(e,t,n,!1),s=(n&e.childLanes)!==0,lc||s){if(s=U,s!==null&&(r=ut(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,pi(e,r),_u(s,e,r),L;sf(c)||ku(),t=jc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Gi=uf(c.nextSibling),Wi=t,O=!0,Ki=null,qi=!1,e!==null&&Ui(t,e),t=kc(t,r.children),t.flags|=4096);return t}return i?(A(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=bi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=Ci(c,i,n,null),c.flags|=2):c=bi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,hc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Ec(n):(i=c.cachePool,i===null?i=Ma():(l=va._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Dc(e,s,n),t.memoizedState=Tc,hc(e.child,r)):(_o(t),n=e.child,e=n.sibling,n=bi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function kc(e,t){return t=Ac({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ac(e,t){return e=vi(22,e,null,t),e.lanes=0,e}function jc(e,t,n){return Ya(t,e.child,null,n),e=kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sa(e.return,t,n)}function Nc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Pc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=bo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,E(bo,o),uc(e,t,r,n),r=O?Mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mc(e,n,t);else if(e.tag===19)Mc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Nc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Nc(t,!0,n,null,a,r);break;case`together`:Nc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Fc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(la(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=bi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ic(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ua(e))):!0}function Lc(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),aa(t,va,e.memoizedState.cache),$i();break;case 27:case 5:Se(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:aa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(_o(t),e=Fc(e,t,n),e===null?null:e.sibling):Oc(e,t,n):(_o(t),t.flags|=128,null);_o(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(la(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Pc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),E(bo,bo.current),r)break;return null;case 22:return t.lanes=0,mc(e,t,n,t.pendingProps);case 24:aa(t,va,e.memoizedState.cache)}return Fc(e,t,n)}function Rc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lc=!0;else{if(!Ic(e,n)&&!(t.flags&128))return lc=!1,Lc(e,t,n);lc=!!(e.flags&131072)}else lc=!1,O&&t.flags&1048576&&zi(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=za(t.elementType),t.type=e,typeof e==`function`)yi(e)?(r=$s(e,r),t.tag=1,t=Cc(null,t,e,r,n)):(t.tag=0,t=xc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=dc(null,t,e,r,n);break a}else if(i===ne){t.tag=14,t=fc(null,t,e,r,n);break a}}throw t=le(e)||e,Error(a(306,t,``))}}return t;case 0:return xc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$s(r,t.pendingProps),Cc(e,t,r,i,n);case 3:a:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,$a(e,t),oo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,aa(t,va,r),r!==o.cache&&ca(t,[va],n,!0),ao(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=wc(e,t,r,n);break a}else if(r!==i){i=Oi(Error(a(424)),t),ta(i),t=wc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Gi=uf(e.firstChild),Wi=t,O=!0,Ki=null,qi=!0,n=Xa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if($i(),r===i){t=Fc(e,t,n);break a}uc(e,t,r,n)}t=t.child}return t;case 26:return bc(e,t),e===null?(n=jf(t.type,null,t.pendingProps,null))?t.memoizedState=n:O||(n=t.type,e=t.pendingProps,r=Hd(ve.current).createElement(n),r[gt]=t,r[_t]=e,Id(r,n,e),kt(r),t.stateNode=r):t.memoizedState=jf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&O&&(r=t.stateNode=mf(t.type,t.pendingProps,ve.current),Wi=t,qi=!0,i=Gi,$d(t.type)?(df=i,Gi=uf(r.firstChild)):Gi=i),uc(e,t,t.pendingProps.children,n),bc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&O&&((i=r=Gi)&&(r=rf(r,t.type,t.pendingProps,qi),r===null?i=!1:(t.stateNode=r,Wi=t,Gi=uf(r.firstChild),qi=!1,i=!0)),i||Yi(t)),Se(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Gd(i,o)?r=null:s!==null&&Gd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Mo(e,t,Fo,null,null,n),ep._currentValue=i),bc(e,t),uc(e,t,r,n),t.child;case 6:return e===null&&O&&((e=n=Gi)&&(n=af(n,t.pendingProps,qi),n===null?e=!1:(t.stateNode=n,Wi=t,Gi=null,e=!0)),e||Yi(t)),null;case 13:return Oc(e,t,n);case 4:return be(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):uc(e,t,r,n),t.child;case 11:return dc(e,t,t.type,t.pendingProps,n);case 7:return uc(e,t,t.pendingProps,n),t.child;case 8:return uc(e,t,t.pendingProps.children,n),t.child;case 12:return uc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,aa(t,t.type,r.value),uc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,da(t),i=fa(i),r=r(i),t.flags|=1,uc(e,t,r,n),t.child;case 14:return fc(e,t,t.type,t.pendingProps,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 19:return Pc(e,t,n);case 31:return yc(e,t,n);case 22:return mc(e,t,n,t.pendingProps);case 24:return da(t),r=fa(va),e===null?(i=Aa(),i===null&&(i=U,o=ya(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Qa(t),aa(t,va,i)):((e.lanes&n)!==0&&($a(e,t),oo(t,null,null,n),ao()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,aa(t,va,r),r!==i.cache&&ca(t,[va],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),aa(t,va,r))),uc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function zc(e){e.flags|=4}function Bc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Eu())e.flags|=8192;else throw Ba=Ia,Pa}else e.flags&=-16777217}function Vc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t))if(Eu())e.flags|=8192;else throw Ba=Ia,Pa}function Hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,Ql|=t)}function Uc(e,t){if(!O)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gc(e,t,n){var r=t.pendingProps;switch(Hi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wc(t),null;case 1:return Wc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),oa(va),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qi(t)?zc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ea())),Wc(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(zc(t),o===null?(Wc(t),Bc(t,i,null,r,n)):(Wc(t),Vc(t,o))):o?o===e.memoizedState?(Wc(t),t.flags&=-16777217):(zc(t),Wc(t),Vc(t,o)):(e=e.memoizedProps,e!==r&&zc(t),Wc(t),Bc(t,i,e,r,n)),null;case 27:if(Ce(t),n=ve.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Wc(t),null}e=ge.current,Qi(t)?Xi(t,e):(e=mf(i,r,n),t.stateNode=e,zc(t))}return Wc(t),null;case 5:if(Ce(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Wc(t),null}if(o=ge.current,Qi(t))Xi(t,o);else{var s=Hd(ve.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&zc(t)}}return Wc(t),Bc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&zc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ve.current,Qi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Wi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Yi(t,!0)}else e=Hd(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Wc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Qi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[gt]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wc(t),e=!1}else n=ea(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(yo(t),t):(yo(t),null);if(t.flags&128)throw Error(a(558))}return Wc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[gt]=t}else $i(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wc(t),i=!1}else i=ea(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(yo(t),t):(yo(t),null)}return yo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Hc(t,t.updateQueue),Wc(t),null);case 4:return xe(),e===null&&wd(t.stateNode.containerInfo),Wc(t),null;case 10:return oa(t.type),Wc(t),null;case 19:if(he(bo),r=t.memoizedState,r===null)return Wc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Uc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=xo(e),o!==null){for(t.flags|=128,Uc(r,!1),e=o.updateQueue,t.updateQueue=e,Hc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)xi(n,e),n=n.sibling;return E(bo,bo.current&1|2),O&&Ri(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>ru&&(t.flags|=128,i=!0,Uc(r,!1),t.lanes=4194304)}else{if(!i)if(e=xo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hc(t,e),Uc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!O)return Wc(t),null}else 2*Ie()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,i=!0,Uc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Wc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ie(),e.sibling=null,n=bo.current,E(bo,i?n&1|2:n&1),O&&Ri(t,r.treeForkCount),e);case 22:case 23:return yo(t),mo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Wc(t),t.subtreeFlags&6&&(t.flags|=8192)):Wc(t),n=t.updateQueue,n!==null&&Hc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oa(va),Wc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Kc(e,t){switch(Hi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(va),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(yo(t),t.alternate===null)throw Error(a(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(bo),null;case 4:return xe(),null;case 10:return oa(t.type),null;case 22:case 23:return yo(t),mo(),e!==null&&he(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(va),null;case 25:return null;default:return null}}function qc(e,t){switch(Hi(t),t.tag){case 3:oa(va),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&yo(t);break;case 13:yo(t);break;case 19:he(bo);break;case 10:oa(t.type);break;case 22:case 23:yo(t),mo(),e!==null&&he(ka);break;case 24:oa(va)}}function Jc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Y(t,t.return,e)}}function Yc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Y(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Y(t,t.return,e)}}function Xc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{co(t,n)}catch(t){Y(e,e.return,t)}}}function Zc(e,t,n){n.props=$s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Y(e,t,n)}}function Qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Y(e,t,n)}}function $c(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Y(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Y(e,t,n)}else n.current=null}function el(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Y(e,e.return,t)}}function tl(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[_t]=t}catch(t){Y(e,e.return,t)}}function nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function rl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function il(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=un));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function ol(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[gt]=e,t[_t]=n}catch(t){Y(e,e.return,t)}}var sl=!1,R=!1,cl=!1,ll=typeof WeakSet==`function`?WeakSet:Set,ul=null;function dl(e,t){if(e=e.containerInfo,Bd=lp,e=Lr(e),Rr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,ul=t;ul!==null;)if(t=ul,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ul=e;else for(;ul!==null;){switch(t=ul,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=$s(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Y(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,ul=e;break}ul=t.return}}function fl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:El(e,n),r&4&&Jc(5,n);break;case 1:if(El(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Y(n,n.return,e)}else{var i=$s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Y(n,n.return,e)}}r&64&&Xc(n),r&512&&Qc(n,n.return);break;case 3:if(El(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{co(e,t)}catch(e){Y(n,n.return,e)}}break;case 27:t===null&&r&4&&ol(n);case 26:case 5:El(e,n),t===null&&r&4&&el(n),r&512&&Qc(n,n.return);break;case 12:El(e,n);break;case 31:El(e,n),r&4&&_l(e,n);break;case 13:El(e,n),r&4&&vl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||sl,!r){t=t!==null&&t.memoizedState!==null||R,i=sl;var a=R;sl=r,(R=t)&&!a?B(e,n,(n.subtreeFlags&8772)!=0):El(e,n),sl=i,R=a}break;case 30:break;default:El(e,n)}}function pl(e){var t=e.alternate;t!==null&&(e.alternate=null,pl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var z=null,ml=!1;function hl(e,t,n){for(n=n.child;n!==null;)gl(e,t,n),n=n.sibling}function gl(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:R||$c(n,t),hl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:R||$c(n,t);var r=z,i=ml;$d(n.type)&&(z=n.stateNode,ml=!1),hl(e,t,n),hf(n.stateNode),z=r,ml=i;break;case 5:R||$c(n,t);case 6:if(r=z,i=ml,z=null,hl(e,t,n),z=r,ml=i,z!==null)if(ml)try{(z.nodeType===9?z.body:z.nodeName===`HTML`?z.ownerDocument.body:z).removeChild(n.stateNode)}catch(e){Y(n,t,e)}else try{z.removeChild(n.stateNode)}catch(e){Y(n,t,e)}break;case 18:z!==null&&(ml?(e=z,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):ef(z,n.stateNode));break;case 4:r=z,i=ml,z=n.stateNode.containerInfo,ml=!0,hl(e,t,n),z=r,ml=i;break;case 0:case 11:case 14:case 15:Yc(2,n,t),R||Yc(4,n,t),hl(e,t,n);break;case 1:R||($c(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Zc(n,t,r)),hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:R=(r=R)||n.memoizedState!==null,hl(e,t,n),R=r;break;default:hl(e,t,n)}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){Y(t,t.return,e)}}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){Y(t,t.return,e)}}function yl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ll),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ll),t;default:throw Error(a(435,e.tag))}}function bl(e,t){var n=yl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function xl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){z=c.stateNode,ml=!1;break a}break;case 5:z=c.stateNode,ml=!1;break a;case 3:case 4:z=c.stateNode.containerInfo,ml=!0;break a}c=c.return}if(z===null)throw Error(a(160));gl(o,s,i),z=null,ml=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cl(t,e),t=t.sibling}var Sl=null;function Cl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xl(t,e),wl(e),r&4&&(Yc(3,e,e.return),Jc(3,e),Yc(5,e,e.return));break;case 1:xl(t,e),wl(e),r&512&&(R||n===null||$c(n,n.return)),r&64&&sl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Sl;if(xl(t,e),wl(e),r&512&&(R||n===null||$c(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[Ct]||o[gt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Id(o,r,n),o[gt]=e,kt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Id(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Uf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Id(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[gt]=e,kt(o),r=o}e.stateNode=r}else Wf(i,e.type,e.stateNode);else e.stateNode=Rf(i,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&tl(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Wf(i,e.type,e.stateNode):Rf(i,r,e.memoizedProps))}break;case 27:xl(t,e),wl(e),r&512&&(R||n===null||$c(n,n.return)),n!==null&&r&4&&tl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xl(t,e),wl(e),r&512&&(R||n===null||$c(n,n.return)),e.flags&32){i=e.stateNode;try{tn(i,``)}catch(t){Y(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,tl(e,i,n===null?i:n.memoizedProps)),r&1024&&(cl=!0);break;case 6:if(xl(t,e),wl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Y(e,e.return,t)}}break;case 3:if(Hf=null,i=Sl,Sl=vf(t.containerInfo),xl(t,e),Sl=i,wl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){Y(e,e.return,t)}cl&&(cl=!1,Tl(e));break;case 4:r=Sl,Sl=vf(e.stateNode.containerInfo),xl(t,e),wl(e),Sl=r;break;case 12:xl(t,e),wl(e);break;case 31:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 13:xl(t,e),wl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(J=Ie()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=sl,d=R;if(sl=u||i,R=d||l,xl(t,e),R=d,sl=u,wl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||sl||R||Dl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Y(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Y(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?tf(m,!0):tf(l.stateNode,!1)}catch(e){Y(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,bl(e,n))));break;case 19:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 30:break;case 21:break;default:xl(t,e),wl(e)}}function wl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(nl(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;al(e,rl(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(tn(o,``),n.flags&=-33),al(e,rl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;il(e,rl(e),s);break;default:throw Error(a(161))}}catch(t){Y(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fl(e,t.alternate,t),t=t.sibling}function Dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yc(4,t,t.return),Dl(t);break;case 1:$c(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Zc(t,t.return,n),Dl(t);break;case 27:hf(t.stateNode);case 26:case 5:$c(t,t.return),Dl(t);break;case 22:t.memoizedState===null&&Dl(t);break;case 30:Dl(t);break;default:Dl(t)}e=e.sibling}}function B(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:B(i,a,n),Jc(4,a);break;case 1:if(B(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Y(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)so(c[i],s)}catch(e){Y(r,r.return,e)}}n&&o&64&&Xc(a),Qc(a,a.return);break;case 27:ol(a);case 26:case 5:B(i,a,n),n&&r===null&&o&4&&el(a),Qc(a,a.return);break;case 12:B(i,a,n);break;case 31:B(i,a,n),n&&o&4&&_l(i,a);break;case 13:B(i,a,n),n&&o&4&&vl(i,a);break;case 22:a.memoizedState===null&&B(i,a,n),Qc(a,a.return);break;case 30:break;default:B(i,a,n)}t=t.sibling}}function Ol(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ba(n))}function kl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ba(e))}function Al(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jl(e,t,n,r),t=t.sibling}function jl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Al(e,t,n,r),i&2048&&Jc(9,t);break;case 1:Al(e,t,n,r);break;case 3:Al(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ba(e)));break;case 12:if(i&2048){Al(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Y(t,t.return,e)}}else Al(e,t,n,r);break;case 31:Al(e,t,n,r);break;case 13:Al(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Al(e,t,n,r):(a._visibility|=2,Ml(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Al(e,t,n,r):Nl(e,t),i&2048&&Ol(o,t);break;case 24:Al(e,t,n,r),i&2048&&kl(t.alternate,t);break;default:Al(e,t,n,r)}}function Ml(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ml(a,o,s,c,i),Jc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ml(a,o,s,c,i)):u._visibility&2?Ml(a,o,s,c,i):Nl(a,o),i&&l&2048&&Ol(o.alternate,o);break;case 24:Ml(a,o,s,c,i),i&&l&2048&&kl(o.alternate,o);break;default:Ml(a,o,s,c,i)}t=t.sibling}}function Nl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Nl(n,r),i&2048&&Ol(r.alternate,r);break;case 24:Nl(n,r),i&2048&&kl(r.alternate,r);break;default:Nl(n,r)}t=t.sibling}}var Pl=8192;function Fl(e,t,n){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)Il(e,t,n),e=e.sibling}function Il(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Pl&&e.memoizedState!==null&&qf(n,Sl,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var r=Sl;Sl=vf(e.stateNode.containerInfo),Fl(e,t,n),Sl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Pl,Pl=16777216,Fl(e,t,n),Pl=r):Fl(e,t,n));break;default:Fl(e,t,n)}}function Ll(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function V(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Bl(r,e)}Ll(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rl(e),e=e.sibling}function Rl(e){switch(e.tag){case 0:case 11:case 15:V(e),e.flags&2048&&Yc(9,e,e.return);break;case 3:V(e);break;case 12:V(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):V(e);break;default:V(e)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Bl(r,e)}Ll(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yc(8,t,t.return),zl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function Bl(e,t){for(;ul!==null;){var n=ul;switch(n.tag){case 0:case 11:case 15:Yc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ba(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ul=r;else a:for(n=e;ul!==null;){r=ul;var i=r.sibling,a=r.return;if(pl(r),r===n){ul=null;break a}if(i!==null){i.return=a,ul=i;break a}ul=a}}}var Vl={getCacheForType:function(e){var t=fa(va),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return fa(va).controller.signal}},Hl=typeof WeakMap==`function`?WeakMap:Map,H=0,U=null,W=null,G=0,K=0,Ul=null,q=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,J=0,nu=0,ru=1/0,iu=null,au=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return H&2&&G!==0?G&-G:w.T===null?pt():pd()}function gu(){if(Zl===0)if(!(G&536870912)||O){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),Zl=e}else Zl=536870912;return e=ho.current,e!==null&&(e.flags|=32),Zl}function _u(e,t,n){(e===U&&(K===2||K===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,G,Zl,!1)),ot(e,n),(!(H&2)||e!==U)&&(e===U&&(!(H&2)&&(Yl|=n),ql===4&&xu(e,G,Zl,!1)),ad(e))}function vu(e,t,n){if(H&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||nt(e,t),i=r?Mu(e,t):Au(e,t,!0),o=r;do{if(i===0){Wl&&!r&&xu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!bu(n)){i=Au(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,i=4;break a}o=eu,eu=i,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){wu(e,0),xu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:xu(r,t,Zl,!q);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=J+300-Ie(),10<i)){if(xu(r,t,Zl,!q),tt(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=Jd(yu.bind(null,r,n,eu,iu,tu,t,Zl,Yl,Ql,q,o,`Throttled`,-0,0),i);break a}yu(r,n,eu,iu,tu,t,Zl,Yl,Ql,q,o,null,-0,0)}}break}while(1);ad(e)}function yu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},Il(t,a,d);var m=(a&62914560)===a?J-Ie():(a&4194048)===a?nu-Ie():0;if(m=Yf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xu(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function Su(){return H&6?!0:(od(0,!1),!1)}function Cu(){if(W!==null){if(K===0)var e=W.return;else e=W,ia=ra=null,Ro(e),Ua=null,Wa=0,e=W;for(;e!==null;)qc(e.alternate,e),e=e.return;W=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),U=e,W=n=bi(e.current,null),G=t,K=0,Ul=null,q=!1,Wl=nt(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,ui(),n}function Tu(e,t){j=null,w.H=Gs,t===Na||t===Fa?(t=Va(),K=3):t===Pa?(t=Va(),K=4):K=t===L?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,W===null&&(ql=1,rc(e,Oi(t,e.current)))}function Eu(){var e=ho.current;return e===null?!0:(G&4194048)===G?go===null:(G&62914560)===G||G&536870912?e===go:!1}function Du(){var e=w.H;return w.H=Gs,e===null?Gs:e}function Ou(){var e=w.A;return w.A=Vl,e}function ku(){ql=4,q||(G&4194048)!==G&&ho.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||U===null||xu(U,G,Zl,!1)}function Au(e,t,n){var r=H;H|=2;var i=Du(),a=Ou();(U!==e||G!==t)&&(iu=null,wu(e,t)),t=!1;var o=ql;a:do try{if(K!==0&&W!==null){var s=W,c=Ul;switch(K){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:ho.current===null&&(t=!0);var l=K;if(K=0,Ul=null,Iu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=K,K=0,Ul=null,Iu(e,s,c,l)}}ju(),o=ql;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,ia=ra=null,H=r,w.H=i,w.A=a,W===null&&(U=null,G=0,ui()),o}function ju(){for(;W!==null;)Pu(W)}function Mu(e,t){var n=H;H|=2;var r=Du(),i=Ou();U!==e||G!==t?(iu=null,ru=Ie()+500,wu(e,t)):Wl=nt(e,t);a:do try{if(K!==0&&W!==null){t=W;var o=Ul;b:switch(K){case 1:K=0,Ul=null,Iu(e,t,o,1);break;case 2:case 9:if(La(o)){K=0,Ul=null,Fu(t);break}t=function(){K!==2&&K!==9||U!==e||(K=7),ad(e)},o.then(t,t);break a;case 3:K=7;break a;case 4:K=5;break a;case 7:La(o)?(K=0,Ul=null,Fu(t)):(K=0,Ul=null,Iu(e,t,o,7));break;case 5:var s=null;switch(W.tag){case 26:s=W.memoizedState;case 5:case 27:var c=W;if(s?Kf(s):c.stateNode.complete){K=0,Ul=null;var l=c.sibling;if(l!==null)W=l;else{var u=c.return;u===null?W=null:(W=u,Lu(u))}break b}}K=0,Ul=null,Iu(e,t,o,5);break;case 6:K=0,Ul=null,Iu(e,t,o,6);break;case 8:Cu(),ql=6;break a;default:throw Error(a(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return ia=ra=null,w.H=r,w.A=i,H=n,W===null?(U=null,G=0,ui(),ql):0}function Nu(){for(;W!==null&&!Pe();)Pu(W)}function Pu(e){var t=Rc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Lu(e):W=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Sc(n,t,t.pendingProps,t.type,void 0,G);break;case 11:t=Sc(n,t,t.pendingProps,t.type.render,t.ref,G);break;case 5:Ro(t);default:qc(n,t),t=W=xi(t,Kl),t=Rc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):W=t}function Iu(e,t,n,r){ia=ra=null,Ro(t),Ua=null,Wa=0;var i=t.return;try{if(cc(e,i,t,n,G)){ql=1,rc(e,Oi(n,e.current)),W=null;return}}catch(t){if(i!==null)throw W=i,t;ql=1,rc(e,Oi(n,e.current)),W=null;return}t.flags&32768?(O||r===1?e=!0:Wl||G&536870912?e=!1:(q=e=!0,(r===2||r===9||r===3||r===6)&&(r=ho.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(t,q);return}e=t.return;var n=Gc(t.alternate,t,Kl);if(n!==null){W=n;return}if(t=t.sibling,t!==null){W=t;return}W=t=e}while(t!==null);ql===0&&(ql=5)}function Ru(e,t){do{var n=Kc(e.alternate,e);if(n!==null){n.flags&=32767,W=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){W=e;return}W=e=n}while(e!==null);ql=6,W=null}function zu(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(H&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=li,st(e,n,o,s,c,l),e===U&&(W=U=null,G=0),cu=t,su=e,lu=n,uu=o,du=i,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(D,function(){return Gu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=w.T,w.T=null,i=T.p,T.p=2,s=H,H|=4;try{dl(e,t,n)}finally{H=s,T.p=i,w.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=H;H|=4;try{Cl(t,e);var a=Vd,o=Lr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ir(s.ownerDocument.documentElement,s)){if(c!==null&&Rr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Fr(s,h),v=Fr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}lp=!!Bd,Vd=Bd=null}finally{H=i,T.p=r,w.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=w.T,w.T=null;var r=T.p;T.p=2;var i=H;H|=4;try{fl(e,t.alternate,t)}finally{H=i,T.p=r,w.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,Fe();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(au=null),ft(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=w.T,i=T.p,T.p=2,w.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{w.T=t,T.p=i}}lu&3&&Wu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,od(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ba(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=ft(lu),r=w.T,i=T.p;try{T.p=32>n?32:n,w.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,H&6)throw Error(a(331));var c=H;if(H|=4,Rl(o.current),jl(o,o.current,s,n),H=c,od(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{T.p=i,w.T=r,Uu(e,t)}}function Ku(e,t,n){t=Oi(n,t),t=ac(e.stateNode,t,2),e=to(e,t,2),e!==null&&(ot(e,2),ad(e))}function Y(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(au===null||!au.has(r))){e=Oi(n,e),n=oc(2),r=to(t,n,2),r!==null&&(sc(n,r,t,e),ot(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,U===e&&(G&n)===n&&(ql===4||ql===3&&(G&62914560)===G&&300>Ie()-J?!(H&2)&&wu(e,0):Xl|=n,Ql===G&&(Ql=0)),ad(e)}function Yu(e,t){t===0&&(t=it()),e=pi(e,t),e!==null&&(ot(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return Me(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=G,a=tt(r,r===U?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=Ie(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}ou!==0&&ou!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=U,n=G,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ne(r),ft(n)){case 2:case 8:n=ze;break;case 32:n=D;break;case 268435456:n=Ve;break;default:n=D}return r=ud.bind(null,e),n=Me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ne(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=G;return r=tt(e,e===U?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ld(e,Ie()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Wu())return null;vu(e,t,!0)}function fd(){Zd(function(){H&6?Me(Re,sd):cd()})}function pd(){if(id===0){var e=Ca;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:ln(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[_t]||null).action),o=r.submitter;o&&(t=(t=o[_t]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new jn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);js(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),js(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<ii.length;_d++){var vd=ii[_d];ai(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}ai(Xr,`onAnimationEnd`),ai(Zr,`onAnimationIteration`),ai(Qr,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai($r,`onTransitionRun`),ai(ei,`onTransitionStart`),ai(ti,`onTransitionCancel`),ai(ni,`onTransitionEnd`),Nt(`onMouseEnter`,[`mouseout`,`mouseover`]),Nt(`onMouseLeave`,[`mouseout`,`mouseover`]),Nt(`onPointerEnter`,[`pointerout`,`pointerover`]),Nt(`onPointerLeave`,[`pointerout`,`pointerover`]),Mt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Mt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Mt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Mt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){oi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){oi(e)}i.currentTarget=null,a=c}}}}function X(e,t){var n=t[yt];n===void 0&&(n=t[yt]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,At.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(gp(t)){case 2:var i=up;break;case 8:i=dp;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!bn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Tt(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}_n(function(){var r=a,i=fn(n),o=[];a:{var s=ri.get(e);if(s!==void 0){var l=jn,u=e;switch(e){case`keypress`:if(En(n)===0)break a;case`keydown`:case`keyup`:l=Yn;break;case`focusin`:u=`focus`,l=Bn;break;case`focusout`:u=`blur`,l=Bn;break;case`beforeblur`:case`afterblur`:l=Bn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Rn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Zn;break;case Xr:case Zr:case Qr:l=Vn;break;case ni:l=Qn;break;case`scroll`:case`scrollend`:l=Nn;break;case`wheel`:l=$n;break;case`copy`:case`cut`:case`paste`:l=Hn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Xn;break;case`toggle`:case`beforetoggle`:l=er}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=vn(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==dn&&(u=n.relatedTarget||n.fromElement)&&(Tt(u)||u[vt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Tt(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Rn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Xn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:Dt(l),h=u==null?s:Dt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,Tt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(o,s,l,d,!1),u!==null&&f!==null&&Ad(o,f,u,d,!0)}}a:{if(s=r?Dt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=br;else if(mr(s))if(xr)v=Ar;else{v=Or;var y=Dr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&on(r.elementType)&&(v=br):v=kr;if(v&&=v(e,r)){hr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Zt(s,`number`,s.value)}switch(y=r?Dt(r):window,e){case`focusin`:(mr(y)||y.contentEditable===`true`)&&(Br=y,Vr=r,Hr=null);break;case`focusout`:Hr=Vr=Br=null;break;case`mousedown`:Ur=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ur=!1,Wr(o,n,i);break;case`selectionchange`:if(zr)break;case`keydown`:case`keyup`:Wr(o,n,i)}var b;if(nr)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ur?cr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(ar&&n.locale!==`ko`&&(ur||x!==`onCompositionStart`?x===`onCompositionEnd`&&ur&&(b=Tn()):(Sn=i,Cn=`value`in Sn?Sn.value:Sn.textContent,ur=!0)),y=Od(r,x),0<y.length&&(x=new Un(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=lr(n),b!==null&&(x.data=b)))),(b=ir?dr(e,n):fr(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new Un(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),gd(o,e,r,n,i)}xd(o,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=vn(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=vn(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=vn(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=vn(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
10`).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Z(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||tn(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&tn(e,``+r);break;case`className`:zt(e,`class`,r);break;case`tabIndex`:zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:zt(e,n,r);break;case`style`:an(e,r,o);break;case`data`:if(t!==`object`){zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=ln(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Z(e,t,`name`,i.name,i,null),Z(e,t,`formEncType`,i.formEncType,i,null),Z(e,t,`formMethod`,i.formMethod,i,null),Z(e,t,`formTarget`,i.formTarget,i,null)):(Z(e,t,`encType`,i.encType,i,null),Z(e,t,`method`,i.method,i,null),Z(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=ln(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=un);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=ln(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:X(`beforetoggle`,e),X(`toggle`,e),Rt(e,`popover`,r);break;case`xlinkActuate`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Rt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=sn.get(n)||n,Rt(e,n,r))}}function Fd(e,t,n,r,i,o){switch(n){case`style`:an(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?tn(e,r):(typeof r==`number`||typeof r==`bigint`)&&tn(e,``+r);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=un);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!jt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[_t]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Rt(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:X(`error`,e),X(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Z(e,t,o,s,n,null)}}i&&Z(e,t,`srcSet`,n.srcSet,n,null),r&&Z(e,t,`src`,n.src,n,null);return;case`input`:X(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:Z(e,t,r,d,n,null)}}Xt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in X(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Z(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Qt(e,!!r,n,!0):Qt(e,!!r,t,!1);return;case`textarea`:for(s in X(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Z(e,t,s,c,n,null)}en(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Z(e,t,l,r,n,null)}return;case`dialog`:X(`beforetoggle`,e),X(`toggle`,e),X(`cancel`,e),X(`close`,e);break;case`iframe`:case`object`:X(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)X(yd[r],e);break;case`image`:X(`error`,e),X(`load`,e);break;case`details`:X(`toggle`,e);break;case`embed`:case`source`:case`link`:X(`error`,e),X(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Z(e,t,u,r,n,null)}return;default:if(on(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Z(e,t,c,r,n,null))}function Ld(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Z(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Z(e,t,p,m,r,f)}}Yt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Z(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Z(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Qt(e,!!n,n?[]:``,!1):Qt(e,!!n,t,!0)):Qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Z(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Z(e,t,s,i,r,o)}$t(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Z(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Z(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Z(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:Z(e,t,u,p,r,m)}return;default:if(on(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);
vendor: 4,461 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Z(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Z(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Rd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Fp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;
vendor: 20,213 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=T.d;T.d={f:bf,r:xf,D:wf,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function bf(){var e=yf.f(),t=Su();return e||t}function xf(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?Ns(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),kt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Jt(n.imageSizes)+`"]`)):i+=`[href="`+Jt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),kt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Jt(r)+`"][href="`+Jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),kt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=Ot(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);kt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=Ot(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),kt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=Ot(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),kt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=ve.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=Ot(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=Ot(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=Ot(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+Jt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),kt(t),e.head.appendChild(t))}function If(e){return`[src="`+Jt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Jt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,kt(i),i):(r=n,(i=gf.get(o))&&(r=m({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),kt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ct]||a[gt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ep={$$typeof:S,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function tp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=vi(3,null,null,t),e.current=a,a.stateNode=e,t=ya(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Qa(a),e}function rp(e){return e?(e=gi,e):gi}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=eo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=to(e,r,t),n!==null&&(_u(n,e,t),no(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=pi(e,67108864);t!==null&&_u(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=hu();t=dt(t);var n=pi(e,t);n!==null&&_u(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=2,fp(e,t,n,r)}finally{T.p=a,w.T=i}}function dp(e,t,n,r){var i=w.T;w.T=null;var a=T.p;try{T.p=8,fp(e,t,n,r)}finally{T.p=a,w.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Ed(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=Et(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}ad(a),!(H&6)&&(ru=Ie()+500,od(0,!1))}}break;case 31:case 13:s=pi(a,2),s!==null&&_u(s,a,2),Su(),op(a,2)}if(a=pp(r),a===null&&Ed(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function pp(e){return e=fn(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=Tt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mp=e,null}function gp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Le()){case Re:return 2;case ze:return 8;case D:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Et(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=Tt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,mt(e.priority,function(){cp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,mt(e.priority,function(){cp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);dn=r,n.target.dispatchEvent(r),dn=null}else return t=Et(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,t){e.blockedOn===t&&(e.blockedOn=null,_p||(_p=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Np===e&&(Np=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(hp(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,js(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[_t]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[_t]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function Ip(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Lp(e){this._internalRoot=e}Rp.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;ip(n,hu(),e,t,null,null)},Rp.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;
10ip(e.current,2,null,e,null,null),Su(),t[vt]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var zp=r.version;if(zp!==`19.2.5`)throw Error(a(527,zp,`19.2.5`));T.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:w,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{We=Vp.inject(Bp),Ge=Vp}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(a(299));var r=!1,i=``,o=ec,c=tc,l=nc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=np(e,1,!0,t,n??null,r,i,u,o,c,l,Ip),t.context=rp(null),n=t.current,r=hu(),r=dt(r),i=eo(r),i.callback=null,to(n,i,r),n=r,t.current.lanes=n,ot(t,n),ad(t),e[vt]=t.current,wd(e),new Rp(t)}})),Ui=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hi()})),Wi=O(JSON.parse),Gi=Ki(JSON.stringify,JSON.parse);function O(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ie(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ki(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Fe(e,r);return t?`?${t}`:``}}var qi=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ji=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Yi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Xi=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Zi=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Qi=(e,t,n)=>{if(!(!Me(n)&&!Ne(n)))throw Me(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Me(n)?`redirected`:Ne(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Xi(e,t.index),isFetching:!1,error:n})),Ne(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Me(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},$i=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ea=(e,t,n)=>{let r=Xi(e,n);e.updateMatch(t,e=>({...e,context:r}))},ta=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Qi(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Qi(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Me(n)&&!Ne(n)&&(e.serialError??=n)},na=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Yi(e,t)&&(n.options.loader||n.options.beforeLoad||pa(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{qi(e)},i);r._nonReactive.pendingTimeout=t}},ra=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;na(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Qi(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ia=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=b(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&ta(e,n,o),s&&ta(e,n,s),na(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=b();let f={...Xi(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Yi(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Me(r)||Ne(r))&&(u(),ta(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),ie(y))return u(),y.catch(t=>{ta(e,n,t)}).then(v)}catch(t){u(),ta(e,n,t)}v(y)},aa=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>ia(e,n,t,i),s=()=>{if($i(e,n))return;let t=ra(e,n,i);return ie(t)?t.then(o):o()};return a()},oa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},sa=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Xi(e,r),d=Yi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},ca=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{fa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(sa(e,t,n,r,i)),l=!!s&&ie(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Qi(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Xi(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Xi(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Ne(t)&&await i.options.notFoundComponent?.preload?.(),Qi(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Qi(e,e.router.getMatch(n),t)}!Me(o)&&!Ne(o)&&await fa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Xi(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Qi(e,r,t)}},la=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(sa(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await ca(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Me(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await ca(e,t,i,n,d):ea(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if($i(e,i)){if(!e.router.getMatch(i))return e.matches[n];ea(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Yi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Qi(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=b(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function ua(e){let t=e,n=[];Ji(t.router)&&qi(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=aa(t,e);ie(n)&&await n}catch(e){if(Me(e))throw e;if(Ne(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?Zi(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(la(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Me(e))throw e;Ne(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=Zi(t,l);e===void 0&&me();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await fa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await fa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=oa(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=qi(t);if(ie(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function da(e,t){let n=t.map(t=>
10e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function fa(e,t=ma){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===ma?(()=>{if(e._componentsPromise===void 0){let t=da(e,ma);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():da(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function pa(e){for(let t of ma)if(e.options[t]?.preload)return!0;return!1}var ma=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ha(e){return{input:({url:t})=>{for(let n of e)t=_a(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=va(e[n],t);return t}}}function ga(e){let t=Ee(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=oe([`/`,t,e.pathname]),e)}}function _a(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function va(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ya(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>ba(o,_.get())),x=r(()=>ba(s,v.get())),C=r(()=>ba(c,y.get())),ee=r(()=>_.get()[0]),te=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),ne=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),re=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),ie=S(64);function ae(e){let t=ie.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ie.set(e,t)),t}let oe={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:C,firstId:ee,hasPending:te,matchRouteDeps:ne,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:re,getRouteMatchStore:ae,setMatches:se,setPending:ce,setCached:le};se(e.matches),a?.(oe);function se(e){xa(e,o,_,n,i)}function ce(e){xa(e,s,v,n,i)}function le(e){xa(e,c,y,n,i)}return oe}function ba(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function xa(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}pe(n.get(),a)||n.set(a)})}var Sa=`__TSR_index`,Ca=`popstate`,wa=`beforeunload`;function Ta(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ka(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Sa];i=Ea(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Sa];i=Ea(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Sa]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Ea(e,t){t||={};let n=Aa();return{...t,key:n,__TSR_key:n,[Sa]:e}}function Da(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ka(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Aa();t.history.replaceState({[Sa]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);
10_||(u=l),l=ka(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Sa]-l.state[Sa],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ta({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(wa,S,{capture:!0}),t.removeEventListener(Ca,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(wa,S,{capture:!0}),t.addEventListener(Ca,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Oa(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ka(e,t){let n=Oa(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Aa();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Sa]:0,key:a,__TSR_key:a}}}function Aa(){return(Math.random()+1).toString(36).substring(7)}function ja(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ma(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Na=new WeakMap,Pa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=de(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Da()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=S(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ya(La(this.latestLocation),e),ro(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Ee(o);t&&t!==`/`&&e.push(ga({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ha(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=m(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&h(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:x(e).path,external:!1,searchStr:o,search:re(t?.search,i),hash:x(r.slice(1)).path,state:ae(t?.state,a)}}let o=new URL(i,this.origin),s=_a(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:x(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:re(t?.search,c),hash:x(s.hash.slice(1)).path,state:ae(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Ce({base:e,to:t.includes(`//`)?E(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>za({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,y(t.params,s)),d=this.routesByPath[Te(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&ee(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:x(T({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ra(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=Ba({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=re(o,m);let h=this.options.stringifySearch(m),_=t.hash===!0?n.hash:t.hash?y(t.hash,n.hash):void 0,v=_?`#${_}`:``,b=t.state===!0?n.state:t.state?y(t.state,n.state):{};b=ae(n.state,b);let S=`${p}${h}${v}`,C,te,ne=!1;if(this.rewrite){let e=new URL(S,this.origin),t=va(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?te=t.pathname+t.search+t.hash:(te=t.href,ne=!0)}else C=g(S),te=C;return{publicHref:te,href:C,pathname:p,search:m,searchStr:h,state:b,hash:_??``,external:ne,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=p(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,y(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=C(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=Te(this.latestLocation.href)===Te(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=b(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ka(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=_a(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(De(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Na.set(this.latestLocation,t):Na.delete(this.latestLocation);let n=this.latestLocation,r=Ma(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ua({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Me(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Ne(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ma(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&De(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=fa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await ua({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Me(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Ne(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=ne(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!C(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?C(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Gi,parseSearch:e.parseSearch??Wi,protocolAllowlist:e.protocolAllowlist??d}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=te(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Te(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Ha(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Ra(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof Fa||(r=new Fa(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=T({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),x=v?._strictParams??g,S;if(!v)try{Ua(r,x)}catch(e){if(S=Ne(e)||Me(e)?e:new Ia(e.message,{cause:e}),t?.throwOnError)throw S}Object.assign(i,x);let C=y?`stay`:`enter`,ee;if(v)ee={...v,cause:C,params:y?.params??i,_strictParams:x,search:re(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||pa(r)?`pending`:`success`;ee={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:x,pathname:h,updatedAt:Date.now(),search:y?re(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:S,__routeContext:void 0,_nonReactive:{loadPromise:b()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:C,loaderDeps:y?ae(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(ee.globalNotFound=s===r.id),ee.searchError=f;let te=this.getParentContext(o);ee.context={...te,...ee.__routeContext,...ee.__beforeLoadContext},c[n]=ee}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?re(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=_(t),i={...e.search};for(let e of t)try{Object.assign(i,Ra(e.options.validateSearch,i))}catch{}let a=_(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ua(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Fa=class extends Error{},Ia=class extends Error{};function La(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ra(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Fa(`Async validation not supported`);if(n.issues)throw new Fa(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function za({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Te(e),a,o=we(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Ba({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Va(n)(e,t,r??!1)}function Va(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;
10`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...Ra(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:y(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function Ha(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return je}function Ua(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Wa(){try{return sessionStorage}catch{return}}var Ga=`tsr-scroll-restoration-v1_3`,Ka=Wa();function qa(){try{return JSON.parse(Ka?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ja(){try{Ka?.setItem(Ga,JSON.stringify(Ya))}catch{}}var Ya=qa(),Xa=`data-scroll-restoration-id`,Za=e=>e.state.__TSR_key||e.href;function Qa(e){let t=e.getAttribute(Xa);if(t)return`[${Xa}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var $a=!1,eo=`window`;function to(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function no(e){let t=[];for(let n of e){if(n===eo)continue;let e=to(n);e&&t.push(e)}return t}function ro(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,$a=!1;let n=e.options.getScrollRestorationKey||Za,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!($a||!e.isScrollRestoring))if(t.target===document)i(eo,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=Ya[t]||={};for(let[e,t]of r)e===eo?n[eo]=t:e.isConnected&&(n[Qa(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),Ja()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=Ya[l];if(e){let t=Ya[c];for(let n in e){if(n===eo){if(o)continue}else{let e=to(n);if(!e||o&&a&&(s??=no(a),s.includes(e)))continue}t||=Ya[c]={},t[n]??=e[n]}}}$a=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Na.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?Ya[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===eo){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=to(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=no(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{$a=!1}})}var io=Symbol.for(`TSR_DEFERRED_PROMISE`);function ao(e,t){let n=e;return n[io]?n:(n[io]={status:`pending`},n.then(e=>{n[io].status=`success`,n[io].data=e}).catch(e=>{n[io].status=`error`,n[io].error={data:(t?.serializeError??ja)(e),__isServerError:!0}}),n)}function oo(e,t){if(e)return typeof e==`string`?e:e[t]}function so(e){return e?.scriptFormat??`module`}function co(e,t,n){let r=lo(t),i=oo(n,`script`)??r.crossOrigin;return{...so(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function lo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function uo(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function fo(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var po=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=je:this.parentRoute||me();let r=n?je:t?.path;r&&r!==`/`&&(r=ce(r));let i=t?.id||r,a=n?je:oe([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);
10r===`__root__`&&(r=`/`),a!==`__root__`&&(a=oe([`/`,a]));let o=a===`__root__`?`/`:oe([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Te(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Oe({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},mo=class extends po{constructor(e){super(e)}},ho=l({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(s in e)?!1:!!e[s],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>c(e)});function go(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function _o(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function vo(e){window.$_TSR||me();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||me();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=go(e.i)}),n.lastMatchId&&=go(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=b();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}_o(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(Ne(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||me(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var k=n(t(),1),A=r();function yo({promise:e}){if(ue)return ue(e);let t=ao(e);
10if(t[io].status===`pending`)throw t;if(t[io].status===`error`)throw t[io].error;return t[io].data}function bo(e){let t=(0,A.jsx)(xo,{...e});return e.fallback?(0,A.jsx)(k.Suspense,{fallback:e.fallback,children:t}):t}function xo(e){let t=yo(e);return e.children(t)}function So(e){let t=e.errorComponent??M;return(0,A.jsx)(j,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?k.createElement(t,{error:n,reset:r}):e.children})}var j=class extends k.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function M({error:e}){let[t,n]=k.useState(!1);return(0,A.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,A.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,A.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,A.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,A.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,A.jsx)(`div`,{children:(0,A.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,A.jsx)(`code`,{children:e.message}):null})}):null]})}var N=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(N||{});function Co({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function wo(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var To=[],Eo=0,{link:Do,unlink:Oo,propagate:ko,checkDirty:Ao,shallowPropagate:jo}=Co({update(e){return e._update()},notify(e){To[No++]=e,e.flags&=~N.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=N.Mutable|N.Dirty,Lo(e))}}),Mo=0,No=0,Po,Fo=0;function Io(e){try{++Fo,e()}finally{--Fo||Ro()}}function Lo(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Oo(n,e)}function Ro(){if(!(Fo>0)){for(;Mo<No;){let e=To[Mo];To[Mo++]=void 0,e.notify()}Mo=0,No=0}}function zo(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?N.None:N.Mutable,get(){return Po!==void 0&&Do(i,Po,Eo),i._snapshot},subscribe(e){let t=wo(e),n={current:!1},r=Bo(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Po,o=t?.compare??Object.is;if(n)Po=i,++Eo,i.depsTail=void 0;else if(e===void 0)return!1;
10n&&(i.flags=N.Mutable|N.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Po=a,n&&(i.flags&=~N.RecursedCheck),Lo(i)}}};return n?(i.flags=N.Mutable|N.Dirty,i.get=function(){let e=i.flags;if(e&N.Dirty||e&N.Pending&&Ao(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&jo(e)}}else e&N.Pending&&(i.flags=e&~N.Pending);return Po!==void 0&&Do(i,Po,Eo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(ko(e),jo(e),Ro())}},i}function Bo(e){let t=()=>{let t=Po;Po=n,++Eo,n.depsTail=void 0,n.flags=N.Watching|N.RecursedCheck;try{return e()}finally{Po=t,n.flags&=~N.RecursedCheck,Lo(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:N.Watching|N.RecursedCheck,notify(){let e=this.flags;e&N.Dirty||e&N.Pending&&Ao(this.deps,this)?t():this.flags=N.Watching},stop(){this.flags=N.None,this.depsTail=void 0,Lo(this)}};return t(),n}var Vo={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Ho(e){let t=be(),n=k.useContext(e.from?Pe:Ae),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=k.useRef(void 0);return _e(i??Vo,n=>{if((e.shouldThrow??!0)&&!n&&me(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=ae(a.current,r);return a.current=e,e}return r})}function Uo(e){return Ho({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Wo(e){let{select:t,...n}=e;return Ho({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Go(e){return Ho({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Ko(e){return Ho({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function qo(e){let t=be();return k.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Jo(e){return Ho({...e,select:t=>e.select?e.select(t.context):t.context})}var Yo=class extends po{constructor(e){super(e),this.useMatch=e=>Ho({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Jo({...e,from:this.id}),this.useSearch=e=>Ko({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Go({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Wo({...e,from:this.id}),this.useLoaderData=e=>Uo({...e,from:this.id}),this.useNavigate=()=>qo({from:this.fullPath}),this.Link=k.forwardRef((e,t)=>(0,A.jsx)(se,{ref:t,from:this.fullPath,...e}))}};function Xo(e){return new Yo(e)}var Zo=class extends mo{constructor(e){super(e),this.useMatch=e=>Ho({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Jo({...e,from:this.id}),this.useSearch=e=>Ko({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Go({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Wo({...e,from:this.id}),this.useLoaderData=e=>Uo({...e,from:this.id}),this.useNavigate=()=>qo({from:this.fullPath}),this.Link=k.forwardRef((e,t)=>(0,A.jsx)(se,{ref:t,from:this.fullPath,...e}))}};function Qo(e){return new Zo(e)}function P(e){return new $o(e,{silent:!0}).createRoute}var $o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Xo(e);return t.isRoot=!1,t},this.silent=t?.silent}};function F(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,f(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(ue)ue(o());else throw o();return k.createElement(r,e)};return s.preload=o,s}function es(e){let t=be(),n=`not-found-${_e(t.stores.location,e=>e.pathname)}-${_e(t.stores.status,e=>e)}`;return(0,A.jsx)(So,{getResetKey:()=>n,onCatch:(t,n)=>{if(Ne(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Ne(t))return e.fallback?.(t);throw t},children:e.children})}function ts(){return(0,A.jsx)(`p`,{children:`Not Found`})}function ns(e){return(0,A.jsx)(A.Fragment,{children:e.children})}function rs(e,t,n){return t.options.notFoundComponent?(0,A.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,A.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,A.jsx)(ts,{})}
10var is=k.memo(function({matchId:e}){let t=be(),n=t.stores.matchStores.get(e);n||me();let r=_e(t.stores.loadedAt,e=>e),i=_e(n,e=>e);return(0,A.jsx)(as,{router:t,matchId:e,resetKey:r,matchState:k.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function as({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,A.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?k.Suspense:ns,f=s?So:ns,p=l?es:ns;return(0,A.jsxs)(i.isRoot?i.options.shellComponent??ns:ns,{children:[(0,A.jsx)(Ae.Provider,{value:t,children:(0,A.jsx)(d,{fallback:o,children:(0,A.jsx)(f,{getResetKey:()=>n,errorComponent:s||M,onCatch:(e,t)=>{if(Ne(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,A.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return k.createElement(l,e)},children:u||r._displayPending?(0,A.jsx)(he,{fallback:o,children:(0,A.jsx)(ss,{matchId:t})}):(0,A.jsx)(ss,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(os,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function os({resetKey:e}){let t=be(),n=k.useRef(void 0);return w(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ma(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ss=k.memo(function({matchId:e}){let t=be(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||me();let i=_e(r,e=>e),a=i.routeId,o=t.routesById[a],s=k.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=k.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,A.jsx)(e,{},s):(0,A.jsx)(cs,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=b();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Ne(i.error)||me(),rs(t,o,i.error);if(i.status===`redirected`)throw Me(i.error)||me(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),cs=k.memo(function(){let e=be(),t=k.useContext(Ae),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=_e(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=_e(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,A.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||me(),rs(e,a,void 0);if(!i)return null;let s=(0,A.jsx)(is,{matchId:i});return n===`__root__`?(0,A.jsx)(k.Suspense,{fallback:o,children:s}):s});function ls(){let e=be(),t=k.useRef({router:e,mounted:!1}),[n,r]=k.useState(!1),i=_e(e.stores.isLoading,e=>e),a=_e(e.stores.hasPending,e=>e),o=ve(i),s=i||n||a,c=ve(s),l=i||a,u=ve(l);return e.startTransition=e=>{r(!0),k.startTransition(()=>{e(),r(!1)})},k.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Te(e.latestLocation.publicHref)!==Te(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),w(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),w(()=>{o&&!i&&e.emit({type:`onLoad`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),w(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),w(()=>
10{if(c&&!s){let t=Ma(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Io(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function us(){let e=be(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,A.jsx)(t,{}):null,r=(0,A.jsxs)(typeof document<`u`&&e.ssr?ns:k.Suspense,{fallback:n,children:[(0,A.jsx)(ls,{}),(0,A.jsx)(ds,{})]});return e.options.InnerWrap?(0,A.jsx)(e.options.InnerWrap,{children:r}):r}function ds(){let e=be(),t=_e(e.stores.firstId,e=>e),n=_e(e.stores.loadedAt,e=>e),r=t?(0,A.jsx)(is,{matchId:t}):null;return(0,A.jsx)(Ae.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,A.jsx)(So,{getResetKey:()=>n,errorComponent:M,onCatch:void 0,children:r})})}var fs=e=>({createMutableStore:zo,createReadonlyStore:zo,batch:Io}),ps=e=>new ms(e),ms=class extends Pa{constructor(e){super(e,fs)}};function hs({router:e,children:t,...n}){ee(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,A.jsx)(le.Provider,{value:e,children:t});return e.options.Wrap?(0,A.jsx)(e.options.Wrap,{children:r}):r}function gs({router:e,...t}){return(0,A.jsx)(hs,{router:e,...t,children:(0,A.jsx)(us,{})})}function _s(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function vs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,A.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,A.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,A.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,A.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,A.jsx)(ys,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ys({attrs:e,children:t,preventScriptHoist:n}){be();let r=Se(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(k.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return _s(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,_s(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,A.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,A.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,A.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var bs=e=>{let t=be(),n=t.options.ssr?.nonce,r=_e(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),C),i=k.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:v(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=_e(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),C),o=_e(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=fo(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:oo(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a}
10,C),s=_e(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...co(a,t,e),nonce:n}})})}),i},C),c=_e(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),C),l=_e(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),C),u=[];return uo(u,i),u.push(...s),uo(u,a),u.push(...o),uo(u,c),uo(u,l),u};function xs(e){let t=bs(e.assetCrossOrigin),n=be().options.ssr?.nonce;return(0,A.jsx)(A.Fragment,{children:t.map(e=>(0,k.createElement)(vs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ss=()=>{let e=be(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=_e(e.stores.matches,n,C);return Cs(e,_e(e.stores.matches,r,C),i)};function Cs(e,t,n){let r=[...t,...n];return(0,A.jsx)(A.Fragment,{children:r.map((e,t)=>(0,k.createElement)(vs,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ws=class extends lr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Sr({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ts(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ts(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ts(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ts(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
10t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){hr.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>mr(t,e))}findAll(e={}){return this.getAll().filter(t=>mr(e,t))}notify(e){hr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return hr.batch(()=>Promise.all(e.map(e=>e.continue().catch(sr))))}};function Ts(e){return e.options.scope?.id}var Es=class extends lr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??or(r,t),a=this.get(i);return a||(a=new vr({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){hr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>cr(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>cr(e,t)):t}notify(e){hr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ds=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Es,this.#t=e.mutationCache||new ws,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=fr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=xr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ar(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=br(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return hr.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;hr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return hr.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=hr.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(sr).catch(sr)}invalidateQueries(e,t={}){return hr.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=hr.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(sr)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(sr)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ar(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sr).catch(sr)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sr).catch(sr)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return xr.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(pr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{dr(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(pr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{dr(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=or(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ur&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Os=`modulepreload`,ks=function(e){return`/`+e},As={},I=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ks(t,n),t in As)return;As[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Os,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n
10)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},js=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},Ms=[`light`,`dark`],Ns=`(prefers-color-scheme: dark)`,Ps=typeof window>`u`,Fs=k.createContext(void 0),Is={setTheme:e=>{},themes:[]},Ls=()=>k.useContext(Fs)??Is,Rs=e=>k.useContext(Fs)?k.createElement(k.Fragment,null,e.children):k.createElement(Bs,{...e}),zs=[`light`,`dark`],Bs=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i=`theme`,themes:a=zs,defaultTheme:o=n?`system`:`light`,attribute:s=`data-theme`,value:c,children:l,nonce:u,scriptProps:d})=>{let[f,p]=k.useState(()=>Hs(i,o)),[m,h]=k.useState(()=>f===`system`?Ws():f),g=c?Object.values(c):a,_=k.useCallback(e=>{let i=e;if(!i)return;e===`system`&&n&&(i=Ws());let a=c?c[i]:i,l=t?Us(u):null,d=document.documentElement,f=e=>{e===`class`?(d.classList.remove(...g),a&&d.classList.add(a)):e.startsWith(`data-`)&&(a?d.setAttribute(e,a):d.removeAttribute(e))};if(Array.isArray(s)?s.forEach(f):f(s),r){let e=Ms.includes(o)?o:null,t=Ms.includes(i)?i:e;d.style.colorScheme=t}l?.()},[u]),v=k.useCallback(e=>{let t=typeof e==`function`?e(f):e;p(t);try{localStorage.setItem(i,t)}catch{}},[f]),y=k.useCallback(t=>{h(Ws(t)),f===`system`&&n&&!e&&_(`system`)},[f,e]);k.useEffect(()=>{let e=window.matchMedia(Ns);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),k.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?p(e.newValue):v(o))};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[v]),k.useEffect(()=>{_(e??f)},[e,f]);let b=k.useMemo(()=>({theme:f,setTheme:v,forcedTheme:e,resolvedTheme:f===`system`?m:f,themes:n?[...a,`system`]:a,systemTheme:n?m:void 0}),[f,v,e,m,n,a]);return k.createElement(Fs.Provider,{value:b},k.createElement(Vs,{forcedTheme:e,storageKey:i,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:o,value:c,themes:a,nonce:u,scriptProps:d}),l)},Vs=k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return k.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${js.toString()})(${u})`}})}),Hs=(e,t)=>{if(Ps)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},Us=e=>{let t=document.createElement(`style`);return e&&t.setAttribute(`nonce`,e),t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Ws=e=>(e||=window.matchMedia(Ns),e.matches?`dark`:`light`);function Gs(){return new Ds({defaultOptions:{queries:{staleTime:3e4,retry:1,refetchOnWindowFocus:!1}}})}var Ks;function qs(){return typeof window>`u`?Gs():(Ks||=Gs(),Ks)}function Js(e){if(typeof document>`u`)return``;let t=`; ${document.cookie}`.split(`; ${e}=`);return t.length===2&&t.pop()?.split(`;`).shift()||``}function Ys(e,t,n){if(typeof document>`u`)return;let r=``;if(n){let e=new Date;e.setTime(e.getTime()+n*24*60*60*1e3),r=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${t}${r}; path=/`}var Xs=30;function Zs(e){try{return decodeURIComponent(e)}catch{return e}}function Qs(e){return Zs(e).trim().replace(/[^\w\-.:]/g,``).slice(0,100)}function $s(e){return e.trim().toLowerCase().replace(/^www\./,``).replace(/[^a-z0-9.-]/g,``).slice(0,100)}function ec(){return(0,k.useEffect)(()=>
10{if(!Js(`utm_source`)){let e=Qs(new URLSearchParams(window.location.search).get(`utm_source`)||``);e&&Ys(`utm_source`,encodeURIComponent(e),Xs)}if(!Js(`referrer_domain`)&&document.referrer)try{let e=$s(new URL(document.referrer).hostname),t=$s(window.location.hostname);e&&e!==t&&Ys(`referrer_domain`,encodeURIComponent(e),Xs)}catch{}},[]),null}var tc=Zr(`calendar-check`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`m9 16 2 2 4-4`,key:`19s6y9`}]]),nc=Zr(`gift`,[[`rect`,{x:`3`,y:`8`,width:`18`,height:`4`,rx:`1`,key:`bkv52`}],[`path`,{d:`M12 8v13`,key:`1c76mn`}],[`path`,{d:`M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7`,key:`6wjy6b`}],[`path`,{d:`M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5`,key:`1ihvrl`}]]),rc=Zr(`github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]),ic=Zr(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),ac=Zr(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),oc=Zr(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),sc=Zr(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),cc=Zr(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),L=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function lc({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&(L.RecursedCheck|L.Recursed|L.Dirty|L.Pending)?a&(L.RecursedCheck|L.Recursed)?a&L.RecursedCheck?!(a&(L.Dirty|L.Pending))&&c(e,i)?(i.flags=a|(L.Recursed|L.Pending),a&=L.Mutable):a=L.None:i.flags=a&~L.Recursed|L.Pending:a=L.None:i.flags=a|L.Pending,a&L.Watching&&t(i),a&
10L.Mutable){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&L.Dirty)a=!0;else if((c&(L.Mutable|L.Dirty))===(L.Mutable|L.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(L.Mutable|L.Pending))===(L.Mutable|L.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=~L.Pending;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&(L.Pending|L.Dirty))===L.Pending&&(n.flags=r|L.Dirty,(r&(L.Watching|L.RecursedCheck))===L.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function uc(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var dc=[],fc=0,{link:pc,unlink:mc,propagate:hc,checkDirty:gc,shallowPropagate:_c}=lc({update(e){return e._update()},notify(e){dc[yc++]=e,e.flags&=~L.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=L.Mutable|L.Dirty,Cc(e))}}),vc=0,yc=0,bc,xc=0;function Sc(e){try{++xc,e()}finally{--xc||wc()}}function Cc(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=mc(n,e)}function wc(){if(!(xc>0)){for(;vc<yc;){let e=dc[vc];dc[vc++]=void 0,e.notify()}vc=0,yc=0}}function Tc(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?L.None:L.Mutable,get(){return bc!==void 0&&pc(i,bc,fc),i._snapshot},subscribe(e){let t=uc(e),n={current:!1},r=Ec(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=bc,o=t?.compare??Object.is;if(n)bc=i,++fc,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=L.Mutable|L.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{bc=a,n&&(i.flags&=~L.RecursedCheck),Cc(i)}}};return n?(i.flags=L.Mutable|L.Dirty,i.get=function(){let e=i.flags;if(e&L.Dirty||e&L.Pending&&gc(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&_c(e)}}else e&L.Pending&&(i.flags=e&~L.Pending);return bc!==void 0&&pc(i,bc,fc),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(hc(e),_c(e),wc())}},i}function Ec(e){let t=()=>{let t=bc;bc=n,++fc,n.depsTail=void 0,n.flags=L.Watching|L.RecursedCheck;try{return e()}finally{bc=t,n.flags&=~L.RecursedCheck,Cc(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:L.Watching|L.RecursedCheck,notify(){let e=this.flags;e&L.Dirty||e&L.Pending&&gc(this.deps,this)?t():this.flags=L.Watching},stop(){this.flags=L.None,this.depsTail=void 0,Cc(this)}};return t(),n}var Dc=class{constructor(e,t){this.atom=Tc(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t&&(this.actions=t(this))}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(uc(e))}},Oc=class{constructor(e){this.atom=Tc(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(uc(e))}};function kc(e,t){return typeof e==`function`?new Oc(e):t?new Dc(e,t):new Dc(e)}var Ac=class{constructor(e,t){this.fn=e,this.options=t,this.lastExecutionTime=0,this.isPending=!1,this.maybeExecute=(...e)=>{let t=Date.now()-this.lastExecutionTime;if(this.options.leading&&t>=this.options.wait)this.execute(...e);else if(this.lastArgs=e,!this.timeoutId&&this.options.trailing){let e=this.options.wait-t;this.isPending=!0,this.timeoutId=setTimeout(()=>{this.lastArgs!==void 0&&this.execute(...this.lastArgs)},e)}},this.execute=(...e)=>{this.fn(...e),this.options.onExecute?.(e,this),this.lastExecutionTime=Date.now(),this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.flush=()=>{this.isPending&&this.lastArgs&&this.execute(...this.lastArgs)},this.cancel=()=>{this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.clearTimeout=()=>{this.timeoutId&&=(clearTimeout(this.timeoutId),void 0)},this.options.leading===void 0&&this.options.trailing===void 0&&(this.options.leading=!0,this.options.trailing=!0)}};function jc(e,t){return new Ac(e,t).maybeExecute}var Mc=class{#e=!0;#t;#n;#r;#i;#a;#o;#s;#c=0;#l=5;#u=!1;#d=!1;#f=null;#p=()=>{this.debugLog(`Connected to event bus`),this.#a=!0,this.#u=!1,this.debugLog(`Emitting queued events`,this.#i),this.#i.forEac
10h(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener(`tanstack-connect-success`,this.#p)};#m=()=>{if(this.#c<this.#l){this.#c++,this.dispatchCustomEvent(`tanstack-connect`,{});return}this.#n().removeEventListener(`tanstack-connect`,this.#m),this.#d=!0,this.debugLog(`Max retries reached, giving up on connection`),this.stopConnectLoop()};#h=()=>{this.#u||(this.#u=!0,this.#n().addEventListener(`tanstack-connect-success`,this.#p),this.#m())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(` Initializing event subscription for plugin`,this.#t),this.#i=[],this.#a=!1,this.#d=!1,this.#o=null,this.#s=r}startConnectLoop(){this.#o!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#s}ms)`),this.#o=setInterval(this.#m,this.#s))}stopConnectLoop(){this.#u=!1,this.#o!==null&&(clearInterval(this.#o),this.#o=null,this.#i=[],this.debugLog(`Stopped connect loop`))}debugLog(...e){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if(typeof globalThis<`u`&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog(`Using global event target`),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<`u`&&window.addEventListener!==void 0)return this.debugLog(`Using window as event target`),window;let e=typeof EventTarget<`u`?new EventTarget:void 0;return e===void 0||e.addEventListener===void 0?(this.debugLog(`No event mechanism available, running in non-web environment`),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog(`Using new EventTarget as fallback`),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch{this.debugLog(`Failed to dispatch shim event`)}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch{this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog(`Emitting event to client bus`,e),this.dispatchCustomEvent(`tanstack-dispatch-event`,e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e){this.debugLog(`Event bus client is disabled, not emitting event`,e,t);return}if(this.#f&&(this.debugLog(`Emitting event to internal event target`,e,t),this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d){this.debugLog(`Previously failed to connect, not emitting to bus`);return}if(!this.#a){this.debugLog(`Bus not available, will be pushed as soon as connected`),this.#i.push(this.createEventPayload(e,t)),typeof CustomEvent<`u`&&!this.#u&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#f||=new EventTarget,this.#f.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`,i),()=>{};let a=e=>{this.debugLog(`Received event from bus`,e.detail),t(e.detail)};return this.#n().addEventListener(i,a),this.debugLog(`Registered event to bus`,i
10),()=>{r&&this.#f?.removeEventListener(i,a),this.#n().removeEventListener(i,a)}}onAll(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}},Nc=new class extends Mc{constructor(){super({pluginId:`form-devtools`,reconnectEveryMs:1e3})}};function Pc(e,t){return typeof e==`function`?e(t):e}function Fc(e,t){return Uc(t).reduce((e,t)=>{if(e===null)return null;if(e!==void 0)return e[t]},e)}function Ic(e,t,n){let r=Uc(t);function i(e){if(!r.length)return Pc(n,e);let t=r.shift();if(typeof t==`string`||typeof t==`number`&&!Array.isArray(e))return typeof e==`object`?(e===null&&(e={}),{...e,[t]:i(e[t])}):{[t]:i()};if(Array.isArray(e)&&typeof t==`number`){let n=e.slice(0,t);return[...n.length?n:Array(t),i(e[t]),...e.slice(t+1)]}return[...Array(t),i()]}return i(e)}function Lc(e,t){let n=Uc(t);function r(e){if(!e)return;if(n.length===1){let t=n[0];if(Array.isArray(e)&&typeof t==`number`)return e.filter((e,n)=>n!==t);let{[t]:r,...i}=e;return i}let t=n.shift();if((typeof t==`string`||typeof t==`number`&&!Array.isArray(e))&&typeof e==`object`)return{...e,[t]:r(e[t])};if(typeof t==`number`&&Array.isArray(e)){if(t>=e.length)return e;let n=e.slice(0,t);return[...n.length?n:Array(t),r(e[t]),...e.slice(t+1)]}throw Error(`It seems we have created an infinite loop in deleteBy. `)}return r(e)}var Rc=46,zc=91,Bc=93,Vc=48,Hc=57;function Uc(e){if(Array.isArray(e))return[...e];if(typeof e!=`string`)throw Error(`Path must be a string.`);let t=e.length,n=[],r=+(t>0&&e.charCodeAt(0)===zc),i=!0,a=-1;for(let o=r;o<=t;o++){let s=o<t?e.charCodeAt(o):-1;if(o===t||s===Rc||s===zc||s===Bc){let t=o-r;if(t>0){let a=i&&(t===1||e.charCodeAt(r)!==Vc),s=e.slice(r,o);if(a){let e=parseInt(s,10);t<=15||String(e)===s?n.push(e):n.push(s)}else n.push(s)}else a!==Bc&&!(a===-1&&s===Bc)&&!(a===s&&(s===Rc||s===zc))&&n.push(``);r=o+1,i=!0}else (s<Vc||s>Hc)&&(i=!1);a=s}return n.length||n.push(``),n}function Wc(e){return!(Array.isArray(e)&&e.length===0)}function Gc(e,t){return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!1},runValidation:e=>e.validators.filter(Boolean).map(e=>({cause:e.cause,validate:e.fn}))})}function Kc(e,t){let{asyncDebounceMs:n}=t,{onBlurAsyncDebounceMs:r,onChangeAsyncDebounceMs:i,onDynamicAsyncDebounceMs:a}=t.validators||{},o=n??0;return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!0},runValidation:t=>t.validators.filter(Boolean).map(t=>{let n=t?.cause||e,s=o;switch(n){case`change`:s=i??o;break;case`blur`:s=r??o;break;case`dynamic`:s=a??o;break;case`submit`:s=0;break}return e===`submit`&&(s=0),{cause:n,validate:t.fn,debounceMs:s}})})}var qc=e=>!!e&&typeof e==`object`&&`fields`in e;function Jc(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length||n.length===0&&!Array.isArray(e)&&!Array.isArray(t)&&(Object.getPrototypeOf(e)!==Object.prototype||Object.getPrototypeOf(t)!==Object.prototype))return!1;for(let i of n)if(!r.includes(i)||!Jc(e[i],t[i]))return!1;return!0}var Yc=({newFormValidatorError:e,isPreviousErrorFromFormValidator:t,previousErrorValue:n})=>e?{newErrorValue:e,newSource:`form`}:t?{newErrorValue:void 0,newSource:void 0}:n?{newErrorValue:n,newSource:`field`}:{newErrorValue:void 0,newSource:void 0},Xc=({formLevelError:e,fieldLevelError:t})=>t?{newErrorValue:t,newSource:`field`}:e?{newErrorValue:e,newSource:`form`}:{newErrorValue:void 0,newSource:void 0};function Zc(e,t){return e==null?t:{...e,...t}}for(var Qc=256,$c=[],el;Qc--;)$c[Qc]=(Qc+256).toString(16).substring(1);function tl(){let e=0,t,n=``;if(!el||Qc+16>256){for(el=Array(256),e=256;e--;)el[e]=256*Math.random()|0;e=0,Qc=0}for(;e<16;
10e++)t=el[Qc+e],e===6?n+=$c[t&15|64]:e===8?n+=$c[t&63|128]:n+=$c[t],e&1&&e>1&&e<11&&(n+=`-`);return Qc++,n}var nl=jc(e=>Nc.emit(`form-state`,{id:e.formId,state:e.store.state}),{wait:300});function rl(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++)t[n]=rl(e[n]);return t}if(e instanceof Map){let t=new Map;return e.forEach((e,n)=>{t.set(n,rl(e))}),t}if(e instanceof Set){let t=new Set;return e.forEach(e=>{t.add(rl(e))}),t}let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=rl(e[n]));return t}function il(e,t){return t===e||t.startsWith(`${e}.`)||t.startsWith(`${e}[`)}var al=e=>{if(!e.validators)return e.runValidation({validators:[],form:e.form});let t=e.event.async,n=t?void 0:{fn:e.validators.onMount,cause:`mount`},r={fn:t?e.validators.onChangeAsync:e.validators.onChange,cause:`change`},i={fn:t?e.validators.onBlurAsync:e.validators.onBlur,cause:`blur`},a={fn:t?e.validators.onSubmitAsync:e.validators.onSubmit,cause:`submit`},o=t?void 0:{fn:()=>void 0,cause:`server`};switch(e.event.type){case`mount`:return e.runValidation({validators:[n],form:e.form});case`submit`:return e.runValidation({validators:[r,i,a,o],form:e.form});case`server`:return e.runValidation({validators:[],form:e.form});case`blur`:return e.runValidation({validators:[i,o],form:e.form});case`change`:return e.runValidation({validators:[r,o],form:e.form});default:throw Error(`Unknown validation event type: ${e.event.type}`)}};function ol(e,t){let n=new Map;for(let r of e){let e=r.path??[],i=t,a=``;for(let t=0;t<e.length;t++){let n=e[t];if(n===void 0)continue;let r=typeof n==`object`?n.key:n,o=Number(r);Array.isArray(i)&&!Number.isNaN(o)?a+=`[${o}]`:a+=(t>0?`.`:``)+String(r),i=typeof i==`object`&&i?i[r]:void 0}n.set(a,(n.get(a)??[]).concat(r))}return Object.fromEntries(n)}var sl=(e,t)=>{let n=ol(e,t);return{form:n,fields:n}},R={validate({value:e,validationSource:t},n){let r=n[`~standard`].validate(e);if(r instanceof Promise)throw Error(`async function passed to sync validator`);if(r.issues)return t===`field`?r.issues:sl(r.issues,e)},async validateAsync({value:e,validationSource:t},n){let r=await n[`~standard`].validate(e);if(r.issues)return t===`field`?r.issues:sl(r.issues,e)}},cl=e=>!!e&&`~standard`in e,ll={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{},_arrayVersion:0};function ul(e){function t(t){let n=e.getFieldMeta(t)??ll;e.setFieldMeta(t,{...n,_arrayVersion:(n._arrayVersion||0)+1})}function n(n,r,i){t(n);let a=s(n,r,`move`,i),c=Math.min(r,i),u=Math.max(r,i);for(let e=c;e<=u;e++)a.push(o(n,e));let d=Object.keys(e.fieldInfo).reduce((t,i)=>(i.startsWith(o(n,r))&&t.set(i,e.getFieldMeta(i)),t),new Map);l(a,r<i?`up`:`down`),Object.keys(e.fieldInfo).filter(e=>e.startsWith(o(n,i))).forEach(t=>{let a=t.replace(o(n,i),o(n,r)),s=d.get(a);s&&e.setFieldMeta(t,s)})}function r(e,n){t(e),l(s(e,n,`remove`),`up`)}function i(n,r,i){t(n),s(n,r,`swap`,i).forEach(t=>{if(!t.toString().startsWith(o(n,r)))return;let a=t.toString().replace(o(n,r),o(n,i)),[s,c]=[e.getFieldMeta(t),e.getFieldMeta(a)];s&&e.setFieldMeta(a,s),c&&e.setFieldMeta(t,c)})}function a(n,r){t(n);let i=s(n,r,`insert`);l(i,`down`),i.forEach(t=>{t.toString().startsWith(o(n,r))&&e.setFieldMeta(t,u())})}function o(e,t){return`${e}[${t}]`}function s(t,n,r,i){let a=[o(t,n)];switch(r){case`swap`:a.push(o(t,i));break;case`move`:{let[e,r]=[Math.min(n,i),Math.max(n,i)];for(let n=e;n<=r;n++)a.push(o(t,n));break}default:{let r=e.getFieldValue(t),i=Array.isArray(r)?r.length:0;for(let e=n+1;e<i;e++)a.push(o(t,e));break}}return Object.keys(e.fieldInfo).filter(e=>a.some(t=>e.startsWith(t)))}function c(e,t){return e.replace(/\[(\d+)\]/,(e,n)=>{let r=parseInt(n,10);return`[${t===`up`?r+1:Math.max(0,r-1)}]`})}function l(t,n){(n===`up`?t:[...t].reverse()).forEach(t=>{let r=c(t.toString(),n),i=e.getFieldMeta(r);i?e.setFieldMeta(t,i):e.setFieldMeta(t,u())})}let u=()=>ll;return{bumpArrayVersion:t,handleArrayMove:n,handleArrayRemove:r,handleArraySwap:i,handleArrayInsert:a}}function dl(e){return{values:e.values??{},errorMap:e.errorMap??{},fieldMetaBase:e.fieldMetaBase??{},formGroupStateBase:e.formGroupStateBase??{},isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1,validationMetaMap:e.validationMetaMap??{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}}}var fl=class{constructor(e){this.options={},this.fieldInfo={},this.formGroupApis=new Set,this.mount=()=>{let e=this.store.subscribe(()=>{nl(this)}),t=Nc.on(`request-form-state`,e=>{e.payload.id===this._formId&&Nc.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}),n=Nc.on(`request-form-reset`,e=>{e.payload.id===this._formId&&this.reset()}),r=Nc.on(`request-form-force-submit`,e=>{e.payload.id===this._formId&&(this._devtoolsSubmissionOverride=!0,this.handleSubmit(),this._devtoolsSubmissionOverride=!1)}),i=()=>{r(),n(),t(),e.unsubscribe(),Nc.emit(`form-unmounted`,{id:this._formId})};this.options.listeners?.onMount?.({formApi:this});let{onMount:a}=this.options.validators||{};
10return Nc.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options}),a&&this.validateSync(`mount`),i},this.update=e=>{if(!e)return;let t=this.options;this.options=e;let n=e.defaultValues&&!Jc(e.defaultValues,t.defaultValues)&&!this.state.isTouched,r=!Jc(e.defaultState,t.defaultState)&&!this.state.isTouched;if(!(!n&&!r)){if(Sc(()=>{this.baseStore.setState(()=>dl(Object.assign({},this.state,r?e.defaultState:{},n?{values:e.defaultValues}:{})))}),n){let e=ul(this);for(let t of Object.keys(this.fieldInfo))Array.isArray(this.getFieldValue(t))&&e.bumpArrayVersion(t)}Nc.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}},this.reset=(e,t)=>{let{fieldMeta:n}=this.state,r=this.resetFieldMeta(n);e&&!t?.keepDefaultValues&&(this.options={...this.options,defaultValues:e}),this.baseStore.setState(()=>{let t=e??this.options.defaultValues??this.options.defaultState?.values;return e||Object.values(this.fieldInfo).forEach(e=>{e.instance&&e.instance.options.defaultValue!==void 0&&(t=Ic(t,e.instance.name,e.instance.options.defaultValue))}),dl({...this.options.defaultState,values:t,fieldMetaBase:r})})},this.validateAllFields=async e=>{let t=[];return Sc(()=>{Object.values(this.fieldInfo).forEach(n=>{if(!n.instance)return;let r=n.instance;t.push(Promise.resolve().then(()=>r.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.instance.store.state.meta.isTouched||n.instance.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null,a=[`${e}[${t}]`];for(let n=t+1;n<=(i??0);n++)a.push(`${e}[${n}]`);let o=Object.keys(this.fieldInfo).filter(e=>a.some(t=>e.startsWith(t))),s=[];return Sc(()=>{o.forEach(e=>{s.push(Promise.resolve().then(()=>this.validateField(e,n)))})}),(await Promise.all(s)).flat()},this.validateField=(e,t)=>{let n=this.fieldInfo[e]?.instance;if(!n){let{hasErrored:n}=this.validateSync(t);return n&&!this.options.asyncAlways?this.getFieldMeta(e)?.errors??[]:this.validateAsync(t).then(()=>this.getFieldMeta(e)?.errors??[])}return n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0})),n.validate(t)},this.validateSync=(e,t)=>{let n=Gc(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||al}),r=!1,i={};return Sc(()=>{for(let e of n){if(!e.validate)continue;let{formError:n,fieldErrors:a}=pl(this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`},type:`validate`})),o=z(e.cause),s=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(a||{})]);t?.filterFieldNames&&(s=new Set([...s].filter(t.filterFieldNames)));for(let e of s){if(this.baseStore.state.fieldMetaBase[e]===void 0&&!a?.[e])continue;let{errorMap:t,errorSourceMap:n}=this.getFieldMeta(e)??ll,r=a?.[e],{newErrorValue:s,newSource:c}=Yc({newFormValidatorError:r,isPreviousErrorFromFormValidator:n?.[o]===`form`,previousErrorValue:t?.[o]});c===`form`&&(i[e]={...i[e],[o]:r}),t?.[o]!==s&&this.setFieldMeta(e,(e=ll)=>({...e,errorMap:{...e.errorMap,[o]:s},errorSourceMap:{...e.errorSourceMap,[o]:c}}))}t?.dontUpdateFormErrorMap||this.state.errorMap?.[o]!==n&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:n}})),(n||a)&&(r=!0)}if(t?.dontUpdateFormErrorMap)return;let a=z(`submit`);this.state.errorMap?.[a]&&e!==`submit`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[a]:void 0}}));let o=z(`server`);this.state.errorMap?.[o]&&e!==`server`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:void 0}}))}),{hasErrored:r,fieldsErrorMap:i}},this.validateAsync=async(e,t)=>{let n=Kc(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||al});this.state.isFormValidating||this.baseStore.setState(e=>({...e,isFormValidating:!0}));let r=[],i;for(let e of n){if(!e.validate)continue;let n=z(e.cause);this.state.validationMetaMap[n]?.lastAbortController.abort();let a=new AbortController;this.state.validationMetaMap[n]={lastAbortController:a},r.push(new Promise(async n=>{let r;try{r=await new Promise((t,n)=>{setTimeout(async()=>
10{if(a.signal.aborted)return t(void 0);try{t(await this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`,signal:a.signal},type:`validateAsync`}))}catch(e){n(e)}},e.debounceMs)})}catch(e){r=e}let{formError:o,fieldErrors:s}=pl(r);s&&(i=i?{...i,...s}:s);let c=z(e.cause),l=Object.keys(this.state.fieldMeta);t?.filterFieldNames&&(l=l.filter(t.filterFieldNames));for(let e of l){if(this.baseStore.state.fieldMetaBase[e]===void 0)continue;let t=this.getFieldMeta(e);if(!t)continue;let{errorMap:n,errorSourceMap:r}=t,a=i?.[e],{newErrorValue:o,newSource:s}=Yc({newFormValidatorError:a,isPreviousErrorFromFormValidator:r?.[c]===`form`,previousErrorValue:n?.[c]});n?.[c]!==o&&this.setFieldMeta(e,e=>({...e,errorMap:{...e.errorMap,[c]:o},errorSourceMap:{...e.errorSourceMap,[c]:s}}))}t?.dontUpdateFormErrorMap||this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[c]:o}})),n(i?{fieldErrors:i,errorMapKey:c}:void 0)}))}let a=[],o={};if(r.length){a=await Promise.all(r);for(let e of a)if(e?.fieldErrors){let{errorMapKey:t}=e;for(let[n,r]of Object.entries(e.fieldErrors))o[n]={...o[n]||{},[t]:r}}}return this.baseStore.setState(e=>({...e,isFormValidating:!1})),o},this.validate=(e,t)=>{let{hasErrored:n,fieldsErrorMap:r}=this.validateSync(e,t);return n&&!this.options.asyncAlways?r:this.validateAsync(e,t)},this._handleSubmit=async e=>{this.baseStore.setState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),Sc(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance&&(e.instance.store.state.meta.isTouched||e.instance.setMeta(e=>({...e,isTouched:!0})))})});let t=e??this.options.onSubmitMeta;if(!this.state.canSubmit&&!this._devtoolsSubmissionOverride){this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t});return}this.baseStore.setState(e=>({...e,isSubmitting:!0}));let n=()=>{this.baseStore.setState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.state.isFieldsValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),Nc.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validateAllFields`,errors:Object.values(this.state.fieldMeta).map(e=>e.errors).flat()});return}if(await this.validate(`submit`),!this.state.isValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),Nc.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validate`,errors:this.state.errors});return}Sc(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance?.triggerOnSubmitListener()})}),this.options.listeners?.onSubmit?.({formApi:this,meta:t});try{await this.options.onSubmit?.({value:this.state.values,formApi:this,meta:t}),Sc(()=>{this.baseStore.setState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),Nc.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!0}),n()})}catch(e){throw this.baseStore.setState(e=>({...e,isSubmitSuccessful:!1})),Nc.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`inflight`,onError:e}),n(),e}},this.getFieldValue=e=>Fc(this.state.values,e),this.getFieldMeta=e=>this.state.fieldMeta[e],this.getFormGroupMeta=e=>this.formGroupMetaDerived.state[e],this.getFieldInfo=e=>this.fieldInfo[e]||={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.setFieldMeta=(e,t)=>{this.baseStore.setState(n=>({...n,fieldMetaBase:{...n.fieldMetaBase,[e]:Pc(t,n.fieldMetaBase[e])}}))},this.resetFieldMeta=e=>Object.keys(e).reduce((e,t)=>{let n=t;return e[n]=ll,e},{}),this.setFieldValue=(e,t,n)=>{let r=n?.dontUpdateMeta??!1,i=n?.dontRunListeners??!1,a=n?.dontValidate??!1;Sc(()=>{r||this.setFieldMeta(e,e=>({...e,isTouched:!0,isDirty:!0,errorMap:{...e?.errorMap,onMount:void 0}})),this.baseStore.setState(n=>({...n,values:Ic(n.values,e,t)}))}),i||this.getFieldInfo(e).instance?.triggerOnChangeListener(),a||this.validateField(e,`change`)},this.deleteField=e=>{let t=[...Object.keys(this.fieldInfo).filter(t=>{let n=e.toString();return t!==n&&t.startsWith(n)}),e];this.baseStore.setState(e=>{let n={...e};
10return t.forEach(e=>{n.values=Lc(n.values,e),delete this.fieldInfo[e],delete n.fieldMetaBase[e]}),n})},this.pushFieldValue=(e,t,n)=>{this.setFieldValue(e,e=>[...Array.isArray(e)?e:[],t],n),ul(this).bumpArrayVersion(e)},this.insertFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>[...e.slice(0,t),n,...e.slice(t)],Zc(r,{dontValidate:!0}));let i=r?.dontValidate??!1;i||await this.validateField(e,`change`),ul(this).handleArrayInsert(e,t),i||await this.validateArrayFieldsStartingFrom(e,t,`change`)},this.replaceFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>e.map((e,r)=>r===t?n:e),Zc(r,{dontValidate:!0})),ul(this).bumpArrayVersion(e),(r?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.removeFieldValue=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null;if(this.setFieldValue(e,e=>e.filter((e,n)=>n!==t),Zc(n,{dontValidate:!0})),ul(this).handleArrayRemove(e,t),i!==null){let t=`${e}[${i}]`;this.deleteField(t)}(n?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.swapFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=e[t],i=e[n];return Ic(Ic(e,`${t}`,i),`${n}`,r)},Zc(r,{dontValidate:!0})),ul(this).handleArraySwap(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.moveFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},Zc(r,{dontValidate:!0})),ul(this).handleArrayMove(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.clearFieldValues=(e,t)=>{let n=this.getFieldValue(e),r=Array.isArray(n)?Math.max(n.length-1,0):null;if(this.setFieldValue(e,[],Zc(t,{dontValidate:!0})),ul(this).bumpArrayVersion(e),r!==null)for(let t=0;t<=r;t++){let n=`${e}[${t}]`;this.deleteField(n)}(t?.dontValidate??!1)||this.validateField(e,`change`)},this.resetField=e=>{this.baseStore.setState(t=>{let n=this.getFieldInfo(e).instance?.options.defaultValue,r=Fc(this.options.defaultValues,e),i=n??r;return{...t,fieldMetaBase:{...t.fieldMetaBase,[e]:ll},values:i===void 0?t.values:Ic(t.values,e,i)}})},this.setErrorMap=e=>{Sc(()=>{Object.entries(e).forEach(([e,t])=>{let n=e;if(qc(t)){let{formError:e,fieldErrors:r}=pl(t);for(let e of Object.keys(this.fieldInfo))this.getFieldMeta(e)&&this.setFieldMeta(e,t=>({...t,errorMap:{...t.errorMap,[n]:r?.[e]},errorSourceMap:{...t.errorSourceMap,[n]:`form`}}));this.baseStore.setState(t=>({...t,errorMap:{...t.errorMap,[n]:e}}))}else this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[n]:t}}))})})},this.getAllErrors=()=>({form:{errors:this.state.errors,errorMap:this.state.errorMap},fields:Object.entries(this.state.fieldMeta).reduce((e,[t,n])=>(Object.keys(n).length&&n.errors.length&&(e[t]={errors:n.errors,errorMap:n.errorMap}),e),{})}),this.parseValuesWithSchema=e=>R.validate({value:this.state.values,validationSource:`form`},e),this.parseValuesWithSchemaAsync=e=>R.validateAsync({value:this.state.values,validationSource:`form`},e),this.timeoutIds={validations:{},listeners:{},formListeners:{}},this._formId=e?.formId??tl(),this._devtoolsSubmissionOverride=!1;let t=dl({...e?.defaultState,values:e?.defaultValues??e?.defaultState?.values});if(e?.transform){t=e.transform({state:t}).state;for(let e of Object.keys(t.errorMap)){let n=t.errorMap[e];if(!(n===void 0||!qc(n)))for(let r of Object.keys(n.fields)){let i=n.fields[r];if(i===void 0)continue;let a=t.fieldMetaBase[r];t.fieldMetaBase[r]={isTouched:!1,isValidating:!1,isBlurred:!1,isDirty:!1,_arrayVersion:0,...a??{},errorSourceMap:{...a?.errorSourceMap??{},onChange:`form`},errorMap:{...a?.errorMap??{},[e]:i}}}}}this.baseStore=kc(t);let n;this.fieldMetaDerived=kc(e=>{let t=this.baseStore.get(),r=0,i={};for(let a of Object.keys(t.fieldMetaBase)){let o=t.fieldMetaBase[a],s=n?.fieldMetaBase[a],c=e?.[a],l=Fc(t.values,a),u=c?.errors;if(!s||o.errorMap!==s.errorMap){u=Object.values(o.errorMap??{}).filter(e=>e!==void 0);let e=this.getFieldInfo(a)?.instance;(!e||!e.options.disableErrorFlat)&&(u=u.flat(1))}let d=!Wc(u),f=!o.isDirty,p=Jc(l,this.getFieldInfo(a)?.instance?.options.defaultValue??Fc(this.options.defaultValues,a));if(c&&c.isPristine===f&&c.isValid===d&&c.isDefaultValue===p&&c.errors===u&&o===s){i[a]=c,r++;continue}i[a]={...o,errors:u??[],isPristine:f,isValid:d,isDefaultValue:p}}return Object.keys(t.fieldMetaBase).length?e&&r===Object.keys(t.fieldMetaBase).length?e:(n=this.baseStore.get(),i):i}),this.formGroupMetaDerived=kc(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),r={};for(let i of this.formGroupApis){let a=i.name,o=t.formGroupStateBase[a]??{isSubmitted:!1,isSubmitting:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1},s=n[a],c=!1,l=!0,u=!1,d=!1,f=!0,p=!1;for(let e in n){if(e===a||!il(a,e))continue;let t=n[e];t&&(t.isValidating&&(c=!0),t.isValid||(l=!1),t.isTouched&&(u=!0),t.isBlurred&&(d=!0),t.isDefaultValue||(f=!1),t.isDirty&&(p=!0))}
10let m=!p,h=!!c||o.isValidating,g=s?.errorMap??{},_=s?.errorSourceMap??{},v=!!(g.onMount||Object.entries(n).some(([e,t])=>t&&e!==a&&il(a,e)&&t.errorMap.onMount)),y=e?.[a],b=y?.errors??[];(!y||y.__srcErrorMap!==g)&&(b=Object.values(g).reduce((e,t)=>{if(t===void 0)return e;if(t&&typeof t==`object`&&`fields`in t){let n=t.group;return n!==void 0&&e.push(n),e}return e.push(t),e},[]));let x=b.length===0,S=l&&x,C=i.options.canSubmitWhenInvalid??!1,ee=o.submissionAttempts===0&&!u&&!v||!h&&!o.isSubmitting&&S||C;if(y&&y.errorMap===g&&y.errorSourceMap===_&&y.errors===b&&y.isFieldsValidating===c&&y.isFieldsValid===l&&y.isGroupValid===x&&y.isValid===S&&y.canSubmit===ee&&y.isTouched===u&&y.isBlurred===d&&y.isPristine===m&&y.isDefaultValue===f&&y.isDirty===p&&y.isValidating===h&&y.isSubmitting===o.isSubmitting&&y.isSubmitted===o.isSubmitted&&y.submissionAttempts===o.submissionAttempts&&y.isSubmitSuccessful===o.isSubmitSuccessful){r[a]=y;continue}let te={...o,errorMap:g,errorSourceMap:_,_arrayVersion:s?._arrayVersion??0,isTouched:u,isBlurred:d,isDirty:p,isPristine:m,isDefaultValue:f,isValid:S,errors:b,isValidating:h,isFieldsValidating:c,isFieldsValid:l,isGroupValid:x,canSubmit:ee};Object.defineProperty(te,"__srcErrorMap",{value:g,enumerable:!1,configurable:!0}),r[a]=te}return r});let r;this.store=kc(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),i=Object.values(n).filter(Boolean),a=i.some(e=>e.isValidating),o=i.every(e=>e.isValid),s=i.some(e=>e.isTouched),c=i.some(e=>e.isBlurred),l=i.every(e=>e.isDefaultValue),u=s&&t.errorMap?.onMount,d=i.some(e=>e.isDirty),f=!d,p=!!(t.errorMap?.onMount||i.some(e=>e?.errorMap?.onMount)),m=!!a,h=e?.errors??[];(!r||t.errorMap!==r.errorMap)&&(h=Object.values(t.errorMap).reduce((e,t)=>t===void 0?e:t&&qc(t)?(e.push(t.form),e):(e.push(t),e),[]));let g=h.length===0,_=o&&g,v=this.options.canSubmitWhenInvalid??!1,y=t.submissionAttempts===0&&!s&&!p||!m&&!t.isSubmitting&&_||v,b=t.errorMap;if(u&&(h=h.filter(e=>e!==t.errorMap.onMount),b=Object.assign(b,{onMount:void 0})),e&&r&&e.errorMap===b&&e.fieldMeta===this.fieldMetaDerived.state&&e.errors===h&&e.isFieldsValidating===a&&e.isFieldsValid===o&&e.isFormValid===g&&e.isValid===_&&e.canSubmit===y&&e.isTouched===s&&e.isBlurred===c&&e.isPristine===f&&e.isDefaultValue===l&&e.isDirty===d&&Jc(r,t))return e;let x={...t,errorMap:b,fieldMeta:this.fieldMetaDerived.state,errors:h,isFieldsValidating:a,isFieldsValid:o,isFormValid:g,isValid:_,canSubmit:y,isTouched:s,isBlurred:c,isPristine:f,isDefaultValue:l,isDirty:d};return r=this.baseStore.get(),x}),this.handleSubmit=this.handleSubmit.bind(this),this.update(e||{})}get state(){return this.store.state}get formId(){return this._formId}runValidator(e){return cl(e.validate)?R[e.type](e.value,e.validate):e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function pl(e){return e?qc(e)?{formError:pl(e.form).formError,fieldErrors:e.fields}:{formError:e}:{formError:void 0}}function z(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}var ml=class e{constructor(t){this.options={},this.mount=()=>{this.options.defaultValue!==void 0&&!this.getMeta().isTouched&&this.form.setFieldValue(this.name,this.options.defaultValue,{dontUpdateMeta:!0});let e=this.getInfo();e.instance=this,this.update(this.options);let{onMount:t}=this.options.validators||{};if(t){let e=this.runValidator({validate:t,value:{value:this.state.value,fieldApi:this,validationSource:`field`},type:`validate`});e&&this.setMeta(t=>({...t,errorMap:{...t?.errorMap,onMount:e},errorSourceMap:{...t?.errorSourceMap,onMount:`field`}}))}return this.options.listeners?.onMount?.({value:this.state.value,fieldApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);let e=this.form.fieldInfo[this.name];if(e&&e.instance===this){for(let[t,n]of Object.entries(e.validationMetaMap))n?.lastAbortController.abort(),e.validationMetaMap[t]=void 0;this.form.baseStore.setState(e=>({...e,fieldMetaBase:{...e.fieldMetaBase,[this.name]:{...ll,isTouched:e.fieldMetaBase[this.name]?.isTouched??ll.isTouched,isBlurred:e.fieldMetaBase[this.name]?.isBlurred??ll.isBlurred,isDirty:e.fieldMetaBase[this.name]?.isDirty??ll.
10isDirty}}})),e.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,fieldApi:this}),this.form.options.listeners?.onFieldUnmount?.({formApi:this.form,fieldApi:this})}}},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(Jc(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,this.state.meta)},this.getValue=()=>this.form.getFieldValue(this.name),this.setValue=(e,t)=>{this.form.setFieldValue(this.name,e,Zc(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.form.getFieldInfo(this.name),this.pushValue=(e,t)=>{this.form.pushFieldValue(this.name,e,Zc(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.insertValue=(e,t,n)=>{this.form.insertFieldValue(this.name,e,t,Zc(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.replaceValue=(e,t,n)=>{this.form.replaceFieldValue(this.name,e,t,Zc(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.removeValue=(e,t)=>{this.form.removeFieldValue(this.name,e,Zc(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.swapValues=(e,t,n)=>{this.form.swapFieldValues(this.name,e,t,Zc(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.moveValue=(e,t,n)=>{this.form.moveFieldValues(this.name,e,t,Zc(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.clearValues=e=>{this.form.clearFieldValues(this.name,Zc(e,{dontRunListeners:!0})),e?.dontRunListeners||this.triggerOnChangeListener()},this.getLinkedFields=t=>{let n=Object.values(this.form.fieldInfo),r=[];for(let i of n){if(!i.instance||!(i.instance instanceof e))continue;let{onChangeListenTo:n,onBlurListenTo:a}=i.instance.options.validators||{};t===`change`&&n?.includes(this.name)&&r.push(i.instance),t===`blur`&&a?.includes(this.name)&&r.push(i.instance)}return r},this.validateSync=(e,t)=>{let n=Gc(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||al}),r=this.getLinkedFields(e).reduce((t,n)=>{let r=Gc(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||al});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),i=!1;Sc(()=>{let e=(e,n)=>{let r=gl(n.cause),a=n.validate?hl(e.runValidator({validate:n.validate,value:{value:e.store.state.value,validationSource:`field`,fieldApi:e},type:`validate`})):void 0,o=t[r],{newErrorValue:s,newSource:c}=Xc({formLevelError:o,fieldLevelError:a});e.state.meta.errorMap?.[r]!==s&&e.setMeta(e=>({...e,errorMap:{...e.errorMap,[r]:s},errorSourceMap:{...e.errorSourceMap,[r]:c}})),s&&(i=!0)};for(let t of n)e(this,t);for(let t of r)t.validate&&e(t.field,t)});let a=gl(`submit`);return this.state.meta.errorMap?.[a]&&e!==`submit`&&!i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[a]:void 0},errorSourceMap:{...e.errorSourceMap,[a]:void 0}})),{hasErrored:i}},this.validateAsync=async(e,t)=>{let n=Kc(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||al}),r=await t,i=this.getLinkedFields(e),a=i.reduce((t,n)=>{let r=Kc(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||al});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),o=[],s=[],c=n.some(e=>e.validate)||a.some(e=>e.validate);if(c){this.state.meta.isValidating||this.setMeta(e=>({...e,isValidating:!0}));for(let e of i)e.setMeta(e=>({...e,isValidating:!0}))}let l=(e,t,n)=>{let i=gl(t.cause),a=e.getInfo();a.validationMetaMap[i]?.lastAbortController.abort();let o=new AbortController;a.validationMetaMap[i]={lastAbortController:o},n.push(new Promise(async n=>{let a;try{a=await new Promise((n,r)=>{e.timeoutIds.validations[t.cause]&&clearTimeout(e.timeoutIds.validations[t.cause]),e.timeoutIds.validations[t.cause]=setTimeout(async()=>
10{if(o.signal.aborted)return n(void 0);try{n(await this.runValidator({validate:t.validate,value:{value:e.store.state.value,fieldApi:e,signal:o.signal,validationSource:`field`},type:`validateAsync`}))}catch(e){r(e)}},t.debounceMs)})}catch(e){a=e}if(o.signal.aborted)return n(void 0);let s=hl(a),c=r[e.name]?.[i],{newErrorValue:l,newSource:u}=Xc({formLevelError:c,fieldLevelError:s});if(e.getInfo().instance!==e)return n(void 0);e.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:l},errorSourceMap:{...e.errorSourceMap,[i]:u}})),n(l)}))};for(let e of n)e.validate&&l(this,e,o);for(let e of a)e.validate&&l(e.field,e,s);let u=[];if((o.length||s.length)&&(u=await Promise.all(o),await Promise.all(s)),c){this.setMeta(e=>({...e,isValidating:!1}));for(let e of i)e.setMeta(e=>({...e,isValidating:!1}))}return u.filter(Boolean)},this.validate=(e,t)=>{if(!this.state.meta.isTouched)return[];let n=t?.skipGroupValidation?[]:Array.from(this.form.formGroupApis).filter(e=>this.name.startsWith(e.name)),r=(t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e)).fieldsErrorMap[this.name]??{};if(!t?.skipFormValidation)for(let t of n){if(t.state.meta.submissionAttempts===0)continue;let{fieldsErrorMap:n}=this.form.validateSync(e,{group:t,dontUpdateFormErrorMap:!0,filterFieldNames:e=>il(t.name,e)});r={...r,...n[this.name]??{}}}let{hasErrored:i}=this.validateSync(e,r),a=new WeakMap;for(let t of n){let{hasErrored:n}=t.validateSync(e,{},{skipRelatedFieldValidation:!0});a.set(t,n)}if(i&&!this.options.asyncAlways){this.getInfo().validationMetaMap[gl(e)]?.lastAbortController.abort();let t=[];for(let r of n)r.getInfo().validationMetaMap[gl(e)]?.lastAbortController.abort(),t.push(r.state.meta.errors);return[...this.state.meta.errors,...t.flat()]}let o=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e),s=this.validateAsync(e,o),c=[];for(let t of n)a.get(t)&&!t.options.asyncAlways||c.push(t.validateAsync(e,o,{skipRelatedFieldValidation:!0}));return c.length===0?s:Promise.all([s,...c]).then(e=>e.flat())},this.handleChange=e=>{this.setValue(e)},this.handleBlur=()=>{this.state.meta.isTouched||this.setMeta(e=>({...e,isTouched:!0})),this.state.meta.isBlurred||this.setMeta(e=>({...e,isBlurred:!0})),this.validate(`blur`),this.triggerOnBlurListener()},this.setErrorMap=e=>{this.setMeta(t=>({...t,errorMap:{...t.errorMap,...e}}))},this.parseValueWithSchema=e=>R.validate({value:this.state.value,validationSource:`field`},e),this.parseValueWithSchemaAsync=e=>R.validateAsync({value:this.state.value,validationSource:`field`},e),this.triggerOnBlurListener=()=>{let e=this.form.options.listeners?.onBlurDebounceMs;e&&e>0?(this.timeoutIds.formListeners.blur&&clearTimeout(this.timeoutIds.formListeners.blur),this.timeoutIds.formListeners.blur=setTimeout(()=>{this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onBlurDebounceMs;t&&t>0?(this.timeoutIds.listeners.blur&&clearTimeout(this.timeoutIds.listeners.blur),this.timeoutIds.listeners.blur=setTimeout(()=>{this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this});for(let e of this.form.formGroupApis)il(e.name,this.name)&&e.triggerOnChangeListener()},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,fieldApi:this})},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.store=kc(e=>{this.form.store.get();let n=this.form.getFieldMeta(this.name)??{...ll,...t.defaultMeta},r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!Jc(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}})}get state(){return this.store.state}runValidator(e){return cl(e.validate)?R[e.type](e.value,e.validate):e.validate(e.value)}};function hl(e){if(e)return e}function gl(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}function _l(e){return{isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1}}function vl(e){return{...ll,...e,errors:[],isPristine:!0,isValid:!0,isDefaultValue:!0,isFieldsValidating:!1,isFieldsValid:!0,isGroupValid:!0,canSubmit:!0,isSubmitting:!1,isSubmitted:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1}}var yl=class e{constructor(t){this.options={},this.setFormGroupState=e=>{this.form.baseStore.setState(t=>{let n=t.formGroupStateBase[this.name]??_l({});return{...t,formGroupStateBase:{...t.formGroupStateBase,[this.name]:e(n)}}})},this._lastDistributedFieldNames={},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(Jc(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,{...ll,...this.options.defaultMeta})},this.mount=()=>{this.update(this.options),this.form.formGroupApis.add(this),this.fieldInfo.instance=this,this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:e.formGroupStateBase[this.name]??_l({...this.options.defaultState})}}));let{onMount:e}=this.options.validators||{};if(e){let t=this.runValidator({validate:e,value:{value:this.state.value,groupApi:this,validationSource:`form`},type:`validate`}),n=t,r;xl(t)&&(n=t.group,r=t.fields);let i=bl(n);i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,onMount:i},errorSourceMap:{...e.errorSourceMap,onMount:`field`}})),this.distributeFieldErrors(`onMount`,r)}return this.options.listeners?.onMount?.({value:this.state.value,groupApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);if(this.fieldInfo.instance===this){for(let[e,t]of Object.entries(this.fieldInfo.validationMetaMap))t?.lastAbortController.abort(),this.fieldInfo.validationMetaMap[e]=void 0;this.form.formGroupApis.delete(this),this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:_l({})}})),this.fieldInfo.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,groupApi:this})}}},this.setValue=(e,t)=>
10{this.form.setFieldValue(this.name,e,Zc(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.fieldInfo,this.getRelatedFields=()=>{let e=Object.values(this.form.fieldInfo),t=[];for(let n of e)n.instance&&n.instance instanceof ml&&n.instance.name.startsWith(this.name)&&t.push(n.instance);return t},this.getRelatedFieldMetasDerived=()=>{let e=Object.entries(this.form.fieldMetaDerived.state),t=[];for(let[n,r]of e)n!==this.name&&il(this.name,n)&&t.push({...r,name:n});return t},this.buildChildFieldName=e=>e===``?this.name:e.startsWith(`[`)?`${this.name}${e}`:`${this.name}.${e}`,this.distributeFieldErrors=(e,t)=>{let n=this._lastDistributedFieldNames[e]??new Set,r=new Set;if(t)for(let[e,n]of Object.entries(t))n==null||n===!1||r.add(this.buildChildFieldName(e));let i=new Set([...n,...r]),a=!1;for(let n of i){let r=n.startsWith(this.name+`[`)?n.slice(this.name.length):n.slice(this.name.length+1),i=t?.[r],o=this.form.getFieldMeta(n);if(!o&&!i)continue;let s=o?.errorMap[e],{newErrorValue:c,newSource:l}=Yc({newFormValidatorError:i,isPreviousErrorFromFormValidator:o?.errorSourceMap[e]===`form`,previousErrorValue:s});c&&(a=!0),!(s===c&&o?.errorSourceMap[e]===l)&&this.form.setFieldMeta(n,t=>({...t,errorMap:{...t.errorMap,[e]:c},errorSourceMap:{...t.errorSourceMap,[e]:l}}))}return this._lastDistributedFieldNames[e]=r,a},this.validateSync=(t,n,r={})=>{let i=Gc(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||al}),a=(r.skipRelatedFieldValidation?[]:this.getRelatedFields()).reduce((e,n)=>{let r=Gc(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||al});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),o=!1;Sc(()=>{let t=(t,r)=>{let i=Cl(r.cause),a=t===this,s;r.validate&&(s=t.runValidator({validate:r.validate,value:{value:t.store.state.value,validationSource:a?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validate`}));let c=s,l;a&&xl(s)&&(c=s.group,l=s.fields);let u=bl(c),d=n[i],{newErrorValue:f,newSource:p}=Xc({formLevelError:d,fieldLevelError:u});t.state.meta.errorMap?.[i]!==f&&t.setMeta(e=>({...e,errorMap:{...e.errorMap,[i]:f},errorSourceMap:{...e.errorSourceMap,[i]:p}})),f&&(o=!0),a&&this.distributeFieldErrors(i,l)&&(o=!0)};for(let e of i)t(this,e);for(let e of a)e.validate&&t(e.field,e)});let s=Cl(`submit`);return this.state.meta.errorMap?.[s]&&t!==`submit`&&!o&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[s]:void 0},errorSourceMap:{...e.errorSourceMap,[s]:void 0}})),{hasErrored:o}},this.validateAsync=async(t,n,r={})=>{let i=Kc(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||al}),a=await n,o=r.skipRelatedFieldValidation?[]:this.getRelatedFields(),s=o.reduce((e,n)=>{let r=Kc(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||al});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),c=[],l=[],u=i.some(e=>e.validate)||s.some(e=>e.validate);if(u){this.state.meta.isValidating||this.setMeta(e=>({...e,isValidating:!0}));for(let e of o)e.setMeta(e=>({...e,isValidating:!0}))}let d=(t,n,r)=>{let i=Cl(n.cause),o=t.getInfo();o.validationMetaMap[i]?.lastAbortController.abort();let s=new AbortController;o.validationMetaMap[i]={lastAbortController:s};let c=t===this;r.push(new Promise(async r=>{let o;try{o=await new Promise((r,i)=>{t.timeoutIds.validations[n.cause]&&clearTimeout(t.timeoutIds.validations[n.cause]),t.timeoutIds.validations[n.cause]=setTimeout(async()=>{if(s.signal.aborted)return r(void 0);try{r(await this.runValidator({validate:n.validate,value:{value:t.store.state.value,signal:s.signal,validationSource:c?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validateAsync`}))}catch(e){i(e)}},n.debounceMs)})}catch(e){o=e}if(s.signal.aborted)return r(void 0);let l=o,u;c&&xl(o)&&(l=o.group,u=o.fields);let d=bl(l),f=a[t.name]?.[i],{newErrorValue:p,newSource:m}=Xc({formLevelError:f,fieldLevelError:d});if(t.getInfo().instance!==t)return r(void 0);t.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:p},errorSourceMap:{...e.errorSourceMap,[i]:m}})),c&&this.distributeFieldErrors(i,u),r(p)}))};for(let e of i)e.validate&&d(this,e,c);
10for(let e of s)e.validate&&d(e.field,e,l);let f=[];if((c.length||l.length)&&(f=await Promise.all(c),await Promise.all(l)),u){this.setMeta(e=>({...e,isValidating:!1}));for(let e of o)e.setMeta(e=>({...e,isValidating:!1}))}return f.filter(Boolean)},this.validateAllFields=async e=>{let t=[];return Sc(()=>{Object.values(this.getRelatedFields()).forEach(n=>{t.push(Promise.resolve().then(()=>n.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=(e,t,n)=>this.form.validateArrayFieldsStartingFrom(e,t,n),this.validateField=(e,t)=>this.form.validateField(e,t),this.getFieldValue=e=>this.form.getFieldValue(e),this.getFieldMeta=e=>this.form.getFieldMeta(e),this.setFieldMeta=(e,t)=>this.form.setFieldMeta(e,t),this.setFieldValue=(e,t)=>this.form.setFieldValue(e,t),this.deleteField=e=>this.form.deleteField(e),this.pushFieldValue=(e,t)=>this.form.pushFieldValue(e,t),this.insertFieldValue=(e,t,n)=>this.form.insertFieldValue(e,t,n),this.replaceFieldValue=(e,t,n)=>this.form.replaceFieldValue(e,t,n),this.swapFieldValues=(e,t,n)=>this.form.swapFieldValues(e,t,n),this.moveFieldValues=(e,t,n)=>this.form.moveFieldValues(e,t,n),this.clearFieldValues=e=>this.form.clearFieldValues(e),this.resetField=e=>this.form.resetField(e),this.removeFieldValue=(e,t)=>this.form.removeFieldValue(e,t),this.areRelatedFieldsValid=()=>Object.values(this.getRelatedFields()).every(e=>e.state.meta.isValid),this.validate=(e,t)=>{let{fieldsErrorMap:n}=t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>il(this.name,e)}),{hasErrored:r}=this.validateSync(e,n[this.name]??{},{skipRelatedFieldValidation:t?.skipRelatedFieldValidation});if(r&&!this.options.asyncAlways)return this.getInfo().validationMetaMap[Cl(e)]?.lastAbortController.abort(),this.state.meta.errors;let i=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>il(this.name,e)});return this.validateAsync(e,i,{skipRelatedFieldValidation:t?.skipRelatedFieldValidation})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeGroupDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this})},e)):this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,groupApi:this})},this._handleSubmit=async e=>{this.setFormGroupState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),Sc(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.state.meta.isTouched||e.setMeta(e=>({...e,isTouched:!0}))})});let t=e??this.options.onSubmitMeta;this.setFormGroupState(e=>({...e,isSubmitting:!0}));let n=()=>{this.setFormGroupState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.areRelatedFieldsValid()){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}if(await this.validate(`submit`,{skipRelatedFieldValidation:!0}),!this.areRelatedFieldsValid()||!this.state.meta.isValid){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}Sc(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.options.listeners?.onGroupSubmit?.({value:e.state.value,fieldApi:e})})}),this.options.listeners?.onSubmit?.({groupApi:this,value:this.state.value});try{await this.options.onGroupSubmit?.({value:this.state.value,groupApi:this,meta:t}),Sc(()=>{this.setFormGroupState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),n()})}catch(e){throw this.setFormGroupState(e=>({...e,isSubmitSuccessful:!1})),n(),e}},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.fieldInfo={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.store=kc(e=>{this.form.formGroupMetaDerived.get(),this.form.baseStore.get();let n=this.form.getFormGroupMeta(this.name)??vl(t.defaultMeta),r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!Jc(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}}),this.handleSubmit=this.handleSubmit.bind(this)}get state(){return this.store.state}runValidator(e){if(cl(e.validate)){let t=R[e.type](e.value,e.validate);return e.type===`validate`?Sl(t):t.then(Sl)}return e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function bl(e){if(e)return e}function xl(e){return!!e&&typeof e==`object`&&`fields`in e}function Sl(e){if(!e||typeof e!=`object`||!(`form`in e)&&!(`fields`in e))return e;let{form:t,fields:n,...r}=e;return{...r,group:t,fields:n}}function Cl(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}function wl(e,t){if(!t)return;let n=Object.assign({},e,{state:rl(e.state)});t(n),n.fieldInfo!==e.fieldInfo&&(e.fieldInfo=n.fieldInfo),n.options!==e.options&&(e.options=n.options);let r=Object.keys({values:null,validationMetaMap:null,fieldMetaBase:null,formGroupStateBase:null,isSubmitting:null,isSubmitted:null,isValidating:null,submissionAttempts:null,isSubmitSuccessful:null,_force_re_eval:null}).reduce((t,r)=>(e.state[r]!==n.state[r]&&(t[r]=n.state[r]),t),{});return Sc(()=>{Object.keys(r).length&&e.baseStore.setState(e=>({...e,...r})),n.state.errorMap!==e.state.errorMap&&e.setErrorMap(n.state.errorMap)}),n}var Tl=Le();function El(e,t){return e===t}function Dl(e,t=e=>e,n){let r=n?.compare??El,i=(0,k.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,k.useCallback)(()=>e.get(),[e]);return(0,Tl.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var B=(e,t=e=>e,n)=>Dl(e,t,{compare:n}),Ol=typeof window<`u`?k.useLayoutEffect:k.useEffect;function kl(e){let[t,n]=(0,k.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,k.useState)(()=>new ml({...e}));(t.form!==e.form||t.name!==e.name)&&(i(new ml({...e})),n({form:e.form,name:e.name}));let a=B(r.store,e.mode===`array`?e=>e.meta._arrayVersion||0:e=>e.value),o=B(r.store,e=>e.meta.isTouched),s=B(r.store,e=>e.meta.isBlurred),c=B(r.store,e=>e.meta.isDirty),l=B(r.store,e=>
10e.meta.errorMap),u=B(r.store,e=>e.meta.errorSourceMap),d=B(r.store,e=>e.meta.isValidating),f=(0,k.useMemo)(()=>({...r,get state(){return{value:e.mode===`array`?r.state.value:a,get meta(){return{...r.state.meta,isTouched:o,isBlurred:s,isDirty:c,errorMap:l,errorSourceMap:u,isValidating:d}}}}}),[r,e.mode,a,o,s,c,l,u,d]);return Ol(r.mount,[r]),Ol(()=>{r.update(e)}),f}var Al=(({children:e,...t})=>{let n=kl(t);return(0,A.jsx)(A.Fragment,{children:(0,k.useMemo)(()=>Pc(e,n),[e,n])})});function jl(){return(0,k.useState)(()=>tl())[0]}var Ml=k,Nl=`19.2.5`.split(`.`)[0]===`17`?jl:Ml.useId;function Pl(e){let[t,n]=(0,k.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,k.useState)(()=>new yl({...e}));(t.form!==e.form||t.name!==e.name)&&(i(new yl({...e})),n({form:e.form,name:e.name}));let a=B(r.store,e=>e.value),o=B(r.store,e=>e.meta.isTouched),s=B(r.store,e=>e.meta.isBlurred),c=B(r.store,e=>e.meta.isDirty),l=B(r.store,e=>e.meta.errorMap),u=B(r.store,e=>e.meta.errorSourceMap),d=B(r.store,e=>e.meta.isValidating),f=B(r.store,e=>e.meta.isSubmitting),p=B(r.store,e=>e.meta.isSubmitted),m=B(r.store,e=>e.meta.submissionAttempts),h=B(r.store,e=>e.meta.isSubmitSuccessful),g=B(r.store,e=>e.meta.canSubmit),_=B(r.store,e=>e.meta.isValid),v=B(r.store,e=>e.meta.isFieldsValid),y=B(r.store,e=>e.meta.isFieldsValidating),b=B(r.store,e=>e.meta.isGroupValid),x=(0,k.useMemo)(()=>({...r,handleSubmit:((...e)=>r._handleSubmit(...e)),get state(){return{...r.state,value:a,get meta(){return{...r.state.meta,isTouched:o,isBlurred:s,isDirty:c,errorMap:l,errorSourceMap:u,isValidating:d,isSubmitting:f,isSubmitted:p,submissionAttempts:m,isSubmitSuccessful:h,canSubmit:g,isValid:_,isFieldsValid:v,isFieldsValidating:y,isGroupValid:b}}}}}),[r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b]);return Ol(r.mount,[r]),Ol(()=>{r.update(e)}),x}var Fl=(({children:e,...t})=>{let n=Pl(t);return(0,A.jsx)(A.Fragment,{children:(0,k.useMemo)(()=>Pc(e,n),[e,n])})});function Il({form:e,selector:t=e=>e,children:n}){return(0,A.jsx)(A.Fragment,{children:Pc(n,B(e.store,t))})}function Ll(e){let t=Nl(),[n,r]=(0,k.useState)(e?.formId),[i,a]=(0,k.useState)(()=>new fl({...e,formId:e?.formId??t}));if(n!==e?.formId){let n=e?.formId??t;a(new fl({...e,formId:n})),r(n)}let o=(0,k.useMemo)(()=>{let e={...i,handleSubmit:((...e)=>i._handleSubmit(...e)),get formId(){return i._formId},get state(){return i.store.state}};return e.Field=function(e){return(0,A.jsx)(Al,{...e,form:i})},e.FormGroup=function(e){return(0,A.jsx)(Fl,{...e,form:i})},e.Subscribe=function(e){return(0,A.jsx)(Il,{form:i,selector:e.selector,children:e.children})},e},[i]);Ol(i.mount,[]),Ol(()=>{i.update(e)});let s=(0,k.useRef)(!1);return Ol(()=>{s.current&&e?.transform&&wl(i,e.transform)},[i,e?.transform]),Ol(()=>{s.current=!0}),o}Object.freeze({status:`aborted`});function V(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var Rl=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},zl=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Bl={};function Vl(e){return e&&Object.assign(Bl,e),Bl}function Hl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function H(e,t){return typeof t==`bigint`?t.toString():t}function U(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function W(e){return e==null}function G(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function K(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var Ul=Symbol(`evaluating`);function q(e,t,n){let r;
vendor: 4,863 bytes, line 10
10Object.defineProperty(e,t,{get(){if(r!==Ul)return r===void 0&&(r=Ul,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Wl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gl(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Kl(e){return JSON.stringify(e)}function ql(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Jl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Yl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Xl=U(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Zl(e){if(Yl(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Yl(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Ql(e){return Zl(e)?{...e}:Array.isArray(e)?[...e]:e}var $l=new Set([`string`,`number`,`symbol`]);function eu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function tu(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function J(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function nu(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ru={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function iu(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return tu(e,Gl(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Wl(this,`shape`,e),e},checks:[]}))}function au(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return tu(e,Gl(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Wl(this,`shape`,r),r},checks:[]}))}function ou(e,t){if(!Zl(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return tu(e,Gl(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Wl(this,`shape`,n),n}}))}function su(e,t){if(!Zl(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return tu(e,Gl(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Wl(this,`shape`,n),n}}))}function cu(e,t){return tu(e,Gl(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Wl(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function lu(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return tu(t,Gl(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Wl(this,`shape`,i),i},checks:[]}))}function uu(e,t,n){return tu(t,Gl(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Wl(this,`shape`,i),i}}))}function du(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function fu(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function pu(e){return typeof e==`string`?e:e?.message}function mu(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=pu(e.inst?._zod.def?.error?.(e))??pu(t?.error?.(e))??pu(n.customError?.(e))??pu(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function hu(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function gu(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var _u=(e,t)=>
10{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,H,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vu=V(`$ZodError`,_u),yu=V(`$ZodError`,_u,{Parent:Error});function bu(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function xu(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var Su=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Rl;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>mu(e,a,Vl())));throw Jl(t,i?.callee),t}return o.value},Cu=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>mu(e,a,Vl())));throw Jl(t,i?.callee),t}return o.value},wu=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Rl;return a.issues.length?{success:!1,error:new(e??vu)(a.issues.map(e=>mu(e,i,Vl())))}:{success:!0,data:a.value}},Tu=wu(yu),Eu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>mu(e,i,Vl())))}:{success:!0,data:a.value}},Du=Eu(yu),Ou=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Su(e)(t,n,i)},ku=e=>(t,n,r)=>Su(e)(t,n,r),Au=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Cu(e)(t,n,i)},ju=e=>async(t,n,r)=>Cu(e)(t,n,r),Mu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return wu(e)(t,n,i)},Nu=e=>(t,n,r)=>wu(e)(t,n,r),Pu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Eu(e)(t,n,i)},Fu=e=>async(t,n,r)=>Eu(e)(t,n,r),Iu=/^[cC][^\s-]{8,}$/,Lu=/^[0-9a-z]+$/,Ru=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,zu=/^[0-9a-vA-V]{20}$/,Bu=/^[A-Za-z0-9]{27}$/,Vu=/^[a-zA-Z0-9_-]{21}$/,Hu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Uu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Wu=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Gu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ku=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Y(){return new RegExp(Ku,`u`)}var qu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ju=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Yu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Xu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zu=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 8,348 bytes, lines 10-12
10)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Qu=/^[A-Za-z0-9_-]*$/,$u=/^\+[1-9]\d{6,14}$/,ed=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,td=RegExp(`^${ed}$`);function nd(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rd(e){return RegExp(`^${nd(e)}$`)}function id(e){let t=nd({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${ed}T(?:${r})$`)}var ad=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},od=/^-?\d+$/,sd=/^-?\d+(?:\.\d+)?$/,cd=/^[^A-Z]*$/,ld=/^[^a-z]*$/,ud=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dd={number:`number`,bigint:`bigint`,object:`date`},fd=V(`$ZodCheckLessThan`,(e,t)=>{ud.init(e,t);let n=dd[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pd=V(`$ZodCheckGreaterThan`,(e,t)=>{ud.init(e,t);let n=dd[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),md=V(`$ZodCheckMultipleOf`,(e,t)=>{ud.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):K(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),hd=V(`$ZodCheckNumberFormat`,(e,t)=>{ud.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ru[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=od)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),gd=V(`$ZodCheckMaxLength`,(e,t)=>{var n;ud.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!W(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=hu(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_d=V(`$ZodCheckMinLength`,(e,t)=>{var n;ud.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!W(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=hu(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),vd=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;ud.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!W(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=hu(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),yd=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;ud.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),bd=V(`$ZodCheckRegex`,(e,t)=>{yd.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),xd=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=cd,yd.init(e,t)}),X=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ld,yd.init(e,t)}),Sd=V(`$ZodCheckIncludes`,(e,t)=>{ud.init(e,t);let n=eu(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Cd=V(`$ZodCheckStartsWith`,(e,t)=>{ud.init(e,t);let n=RegExp(`^${eu(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),wd=V(`$ZodCheckEndsWith`,(e,t)=>{ud.init(e,t);let n=RegExp(`.*${eu(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Td=V(`$ZodCheckOverwrite`,(e,t)=>{ud.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Ed=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
11`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>`  ${e}`)];return new e(...t,n.join(`
12`))}},Dd={major:4,minor:3,patch:6},Od=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Dd;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=du(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Rl;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=du(e,t))});else{if(e.issues.length===t)continue;r||=du(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(du(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Rl;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>
vendor: 5,884 bytes, line 12
12{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Rl;return o.then(e=>t(e,r,a))}return t(o,r,a)}}q(e,`~standard`,()=>({validate:t=>{try{let n=Tu(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Du(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),kd=V(`$ZodString`,(e,t)=>{Od.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ad(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ad=V(`$ZodStringFormat`,(e,t)=>{yd.init(e,t),kd.init(e,t)}),jd=V(`$ZodGUID`,(e,t)=>{t.pattern??=Uu,Ad.init(e,t)}),Md=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Wu(e)}else t.pattern??=Wu();Ad.init(e,t)}),Nd=V(`$ZodEmail`,(e,t)=>{t.pattern??=Gu,Ad.init(e,t)}),Pd=V(`$ZodURL`,(e,t)=>{Ad.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Z=V(`$ZodEmoji`,(e,t)=>{t.pattern??=Y(),Ad.init(e,t)}),Fd=V(`$ZodNanoID`,(e,t)=>{t.pattern??=Vu,Ad.init(e,t)}),Id=V(`$ZodCUID`,(e,t)=>{t.pattern??=Iu,Ad.init(e,t)}),Ld=V(`$ZodCUID2`,(e,t)=>{t.pattern??=Lu,Ad.init(e,t)}),Rd=V(`$ZodULID`,(e,t)=>{t.pattern??=Ru,Ad.init(e,t)}),zd=V(`$ZodXID`,(e,t)=>{t.pattern??=zu,Ad.init(e,t)}),Bd=V(`$ZodKSUID`,(e,t)=>{t.pattern??=Bu,Ad.init(e,t)}),Vd=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=id(t),Ad.init(e,t)}),Hd=V(`$ZodISODate`,(e,t)=>{t.pattern??=td,Ad.init(e,t)}),Ud=V(`$ZodISOTime`,(e,t)=>{t.pattern??=rd(t),Ad.init(e,t)}),Wd=V(`$ZodISODuration`,(e,t)=>{t.pattern??=Hu,Ad.init(e,t)}),Gd=V(`$ZodIPv4`,(e,t)=>{t.pattern??=qu,Ad.init(e,t),e._zod.bag.format=`ipv4`}),Kd=V(`$ZodIPv6`,(e,t)=>{t.pattern??=Ju,Ad.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),qd=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Yu,Ad.init(e,t)}),Jd=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Xu,Ad.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Yd(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Xd=V(`$ZodBase64`,(e,t)=>{t.pattern??=Zu,Ad.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Yd(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Zd(e){if(!Qu.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Yd(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Qd=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=Qu,Ad.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Zd(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),$d=V(`$ZodE164`,(e,t)=>{t.pattern??=$u,Ad.init(e,t)});function ef(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var tf=V(`$ZodJWT`,(e,t)=>{Ad.init(e,t),e._zod.check=n=>{ef(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),nf=V(`$ZodNumber`,(e,t)=>{Od.init(e,t),e._zod.pattern=e._zod.bag.pattern??sd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),rf=V(`$ZodNumberFormat`,(e,t)=>{hd.init(e,t),nf.init(e,t)}),af=V(`$ZodUnknown`,(e,t)=>{Od.init(e,t),e._zod.parse=e=>e}),of=V(`$ZodNever`,(e,t)=>{Od.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function sf(e,t,n){e.issues.length&&t.issues.push(...fu(n,e.issues)),t.value[n]=e.value}var cf=V(`$ZodArray`,(e,t)=>{Od.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>sf(t,n,e))):sf(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function lf(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...fu(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function uf(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=nu(e.shape);
vendor: 11,357 bytes, lines 12-46
12return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function df(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>lf(e,n,i,t,u))):lf(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var ff=V(`$ZodObject`,(e,t)=>{if(Od.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=U(()=>uf(t));q(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Yl,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>lf(n,t,e,s,r))):lf(i,t,e,s,r)}return i?df(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),pf=V(`$ZodObjectJIT`,(e,t)=>{ff.init(e,t);let n=e._zod.parse,r=U(()=>uf(t)),i=e=>{let t=new Ed([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Kl(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Kl(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
13        if (${n}.issues.length) {
14          if (${o} in input) {
15            payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
16              ...iss,
17              path: iss.path ? [${o}, ...iss.path] : [${o}]
18            })));
19          }
20        }
21        
22        if (${n}.value === undefined) {
23          if (${o} in input) {
24            newResult[${o}] = undefined;
25          }
26        } else {
27          newResult[${o}] = ${n}.value;
28        }
29        
30      `):t.write(`
31        if (${n}.issues.length) {
32          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
33            ...iss,
34            path: iss.path ? [${o}, ...iss.path] : [${o}]
35          })));
36        }
37        
38        if (${n}.value === undefined) {
39          if (${o} in input) {
40            newResult[${o}] = undefined;
41          }
42        } else {
43          newResult[${o}] = ${n}.value;
44        }
45        
46      `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Yl,s=!Bl.jitless,c=s&&Xl.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?df([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function mf(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!du(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>mu(e,r,Vl())))}),t)}var hf=V(`$ZodUnion`,(e,t)=>{Od.init(e,t),q(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),q(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),q(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),q(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>G(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>mf(t,i,e,a)):mf(s,i,e,a)}}),gf=V(`$ZodIntersection`,(e,t)=>{Od.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>vf(e,t,n)):vf(e,i,a)}});function _f(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Zl(e)&&Zl(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=_f(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=_f(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function vf(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),du(e))return e;let o=_f(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var yf=V(`$ZodEnum`,(e,t)=>{Od.init(e,t);let n=Hl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>$l.has(typeof e)).map(e=>typeof e==`string`?eu(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),bf=V(`$ZodTransform`,(e,t)=>{Od.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new zl(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Rl;return n.value=i,n}});function xf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Sf=V(`$ZodOptional`,(e,t)=>{Od.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,q(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${G(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>xf(t,e.value)):xf(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Cf=V(`$ZodExactOptional`,(e,t)=>{Sf.init(e,t),q(e._zod,`values`,()=>t.innerType._zod.values),q(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),wf=V(`$ZodNullable`,(e,t)=>{Od.init(e,t),q(e._zod,`optin`,()=>t.innerType._zod.optin),q(e._zod,`optout`,()=>t.innerType._zod.optout),q(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${G(e.source)}|null)$`):void 0}),q(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Tf=V(`$ZodDefault`,(e,t)=>{Od.init(e,t),e._zod.optin=`optional`,q(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ef(e,t)):Ef(r,t)}});function Ef(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Df=V(`$ZodPrefault`,(e,t)=>{Od.init(e,t),e._zod.optin=`optional`,q(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Of=V(`$ZodNonOptional`,(e,t)=>{Od.init(e,t),q(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>kf(t,e)):kf(i,e)}});function kf(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Af=V(`$ZodCatch`,(e,t)=>{Od.init(e,t),q(e._zod,`optin`,()=>t.innerType._zod.optin),q(e._zod,`optout`,()=>t.innerType._zod.optout),q(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>mu(e,n,Vl()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>mu(e,n,Vl()))},input:e.value}),e.issues=[]),e)}}),jf=V(`$ZodPipe`,(e,t)=>{Od.init(e,t),q(e._zod,`values`,()=>t.in._zod.values),q(e._zod,`optin`,()=>t.in._zod.optin),q(e._zod,`optout`,()=>t.out._zod.optout),q(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Mf(e,t.in,n)):Mf(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Mf(e,t.out,n)):Mf(r,t.out,n)}});function Mf(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Nf=V(`$ZodReadonly`,(e,t)=>{Od.init(e,t),q(e._zod,`propValues`,()=>t.innerType._zod.propValues),q(e._zod,`values`,()=>t.innerType._zod.values),q(e._zod,`optin`,()=>t.innerType?._zod?.optin),q(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Pf):Pf(r)}});function Pf(e){return e.value=Object.freeze(e.value),e}var Ff=V(`$ZodCustom`,(e,t)=>{ud.init(e,t),Od.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>If(t,n,r,e));If(i,n,r,e)}});function If(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(gu(e))}}var Lf,Rf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function zf(){return new Rf}(Lf=globalThis).__zod_globalRegistry??(Lf.__zod_globalRegistry=zf());var Bf=globalThis.__zod_globalRegistry;function Vf(e,t){return new e({type:`string`,...J(t)})}function Hf(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...J
vendor: 8,957 bytes, lines 46-48
46(t)})}function Uf(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...J(t)})}function Wf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...J(t)})}function Gf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...J(t)})}function Kf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...J(t)})}function qf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...J(t)})}function Jf(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...J(t)})}function Yf(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...J(t)})}function Xf(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...J(t)})}function Zf(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...J(t)})}function Qf(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...J(t)})}function $f(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...J(t)})}function ep(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...J(t)})}function tp(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...J(t)})}function np(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...J(t)})}function rp(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...J(t)})}function ip(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...J(t)})}function ap(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...J(t)})}function op(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...J(t)})}function sp(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...J(t)})}function cp(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...J(t)})}function lp(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...J(t)})}function up(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...J(t)})}function dp(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...J(t)})}function fp(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...J(t)})}function pp(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...J(t)})}function mp(e,t){return new e({type:`number`,coerce:!0,checks:[],...J(t)})}function hp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...J(t)})}function gp(e){return new e({type:`unknown`})}function _p(e,t){return new e({type:`never`,...J(t)})}function vp(e,t){return new fd({check:`less_than`,...J(t),value:e,inclusive:!1})}function yp(e,t){return new fd({check:`less_than`,...J(t),value:e,inclusive:!0})}function bp(e,t){return new pd({check:`greater_than`,...J(t),value:e,inclusive:!1})}function xp(e,t){return new pd({check:`greater_than`,...J(t),value:e,inclusive:!0})}function Sp(e,t){return new md({check:`multiple_of`,...J(t),value:e})}function Cp(e,t){return new gd({check:`max_length`,...J(t),maximum:e})}function wp(e,t){return new _d({check:`min_length`,...J(t),minimum:e})}function Tp(e,t){return new vd({check:`length_equals`,...J(t),length:e})}function Ep(e,t){return new bd({check:`string_format`,format:`regex`,...J(t),pattern:e})}function Dp(e){return new xd({check:`string_format`,format:`lowercase`,...J(e)})}function Op(e){return new X({check:`string_format`,format:`uppercase`,...J(e)})}function kp(e,t){return new Sd({check:`string_format`,format:`includes`,...J(t),includes:e})}function Ap(e,t){return new Cd({check:`string_format`,format:`starts_with`,...J(t),prefix:e})}function jp(e,t){return new wd({check:`string_format`,format:`ends_with`,...J(t),suffix:e})}function Mp(e){return new Td({check:`overwrite`,tx:e})}function Np(e){return Mp(t=>t.normalize(e))}function Pp(){return Mp(e=>e.trim())}function Fp(){return Mp(e=>e.toLowerCase())}function Ip(){return Mp(e=>e.toUpperCase())}function Lp(){return Mp(e=>ql(e))}function Rp(e,t,n){return new e({type:`array`,element:t,...J(n)})}function zp(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...J(n)})}function Bp(e){let t=Vp(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(gu(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(gu(r))}},e(n.value,n)));return t}function Vp(e,t){let n=new ud({check:`custom`,...J(t)});return n._zod.check=e,n}function Hp(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Bf,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Up(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Up(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Kp(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Wp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
47
48Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Gp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>
vendor: 6,287 bytes, line 48
480&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Jp(t,`input`,e.processors),output:Jp(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Kp(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Kp(r.element,n);if(r.type===`set`)return Kp(r.valueType,n);if(r.type===`lazy`)return Kp(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Kp(r.innerType,n);if(r.type===`intersection`)return Kp(r.left,n)||Kp(r.right,n);if(r.type===`record`||r.type===`map`)return Kp(r.keyType,n)||Kp(r.valueType,n);if(r.type===`pipe`)return Kp(r.in,n)||Kp(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Kp(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Kp(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Kp(e,n))return!0;return!!(r.rest&&Kp(r.rest,n))}return!1}var qp=(e,t={})=>n=>{let r=Hp({...n,processors:t});return Up(e,r),Wp(r,e),Gp(r,e)},Jp=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Hp({...i??{},target:a,io:t,processors:n});return Up(e,o),Wp(o,e),Gp(o,e)},Yp={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Xp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Yp[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Zp=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Qp=(e,t,n,r)=>{n.not={}},$p=(e,t,n,r)=>{let i=e._zod.def,a=Hl(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},em=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},tm=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},nm=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Up(a.element,t,{...r,path:[...r.path,`items`]})},rm=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Up(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Up(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},im=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Up(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},am=(e,t,n,r)=>{let i=e._zod.def,a=Up(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Up(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},om=(e,t,n,r)=>{let i=e._zod.def,a=Up(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},sm=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},cm=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},lm=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},um=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},dm=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Up(a,t,r);let o=t.seen.get(e);o.ref=a},fm=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},pm=(e,t,n,r)=>{let i=e._zod.def;Up(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mm=V(`ZodISODateTime`,(e,t)=>{Vd.init(e,t),Bm.init(e,t)});function hm(e){return up(mm,e)}var gm=V(`ZodISODate`,(e,t)=>{Hd.init(e,t),Bm.init(e,t)});function _m(e){return dp(gm,e)}var vm=V(`ZodISOTime`,(e,t)=>{Ud.init(e,t),Bm.init(e,t)});function ym(e){return fp(vm,e)}var bm=V(`ZodISODuration`,(e,t)=>{Wd.init(e,t),Bm.init(e,t)});function xm(e){return pp(bm,e)}var Sm=(e,t)=>{vu.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>xu(e,t)},flatten:{value:t=>bu(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,H,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,H,2)}},isEmpty:{get(){return e.issues.length===0}}})};V(`ZodError`,Sm);var Cm=V(`ZodError`,Sm,{Parent:Error}),wm=Su(Cm),Tm=Cu(Cm),Em=wu(Cm),Dm=Eu(Cm),Om=Ou(Cm),km=ku(Cm),Am=Au(Cm),jm=ju(Cm),Mm=Mu(Cm),Nm=Nu(Cm),Pm=Pu(Cm),Fm=Fu(Cm),Im=V(`ZodT
48ype`,(e,t)=>(Od.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Jp(e,`input`),output:Jp(e,`output`)}}),e.toJSONSchema=qp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Gl(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>tu(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>wm(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Em(e,t,n),e.parseAsync=async(t,n)=>Tm(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Dm(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Om(e,t,n),e.decode=(t,n)=>km(e,t,n),e.encodeAsync=async(t,n)=>Am(e,t,n),e.decodeAsync=async(t,n)=>jm(e,t,n),e.safeEncode=(t,n)=>Mm(e,t,n),e.safeDecode=(t,n)=>Nm(e,t,n),e.safeEncodeAsync=async(t,n)=>Pm(e,t,n),e.safeDecodeAsync=async(t,n)=>Fm(e,t,n),e.refine=(t,n)=>e.check(Wh(t,n)),e.superRefine=t=>e.check(Gh(t)),e.overwrite=t=>e.check(Mp(t)),e.optional=()=>Eh(e),e.exactOptional=()=>Oh(e),e.nullable=()=>Ah(e),e.nullish=()=>Eh(Ah(e)),e.nonoptional=t=>Ih(e,t),e.array=()=>mh(e),e.or=t=>vh([e,t]),e.and=t=>bh(e,t),e.transform=t=>Bh(e,wh(t)),e.default=t=>Mh(e,t),e.prefault=t=>Ph(e,t),e.catch=t=>Rh(e,t),e.pipe=t=>Bh(e,t),e.readonly=()=>Hh(e),e.describe=t=>{let n=e.clone();return Bf.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Bf.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Bf.get(e);let n=e.clone();return Bf.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Lm=V(`_ZodString`,(e,t)=>{kd.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xp(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Ep(...t)),e.includes=(...t)=>e.check(kp(...t)),e.startsWith=(...t)=>e.check(Ap(...t)),e.endsWith=(...t)=>e.check(jp(...t)),e.min=(...t)=>e.check(wp(...t)),e.max=(...t)=>e.check(Cp(...t)),e.length=(...t)=>e.check(Tp(...t)),e.nonempty=(...t)=>e.check(wp(1,...t)),e.lowercase=t=>e.check(Dp(t)),e.uppercase=t=>e.check(Op(t)),e.trim=()=>e.check(Pp()),e.normalize=(...t)=>e.check(Np(...t)),e.toLowerCase=()=>e.check(Fp()),e.toUpperCase=()=>e.check(Ip()),e.slugify=()=>e.check(Lp())}),Rm=V(`ZodString`,(e,t)=>{kd.init(e,t),Lm.init(e,t),e.email=t=>e.check(Hf(Vm,t)),e.url=t=>e.check(Jf(Wm,t)),e.jwt=t=>e.check(lp(ah,t)),e.emoji=t=>e.check(Yf(Gm,t)),e.guid=t=>e.check(Uf(Hm,t)),e.uuid=t=>e.check(Wf(Um,t)),e.uuidv4=t=>e.check(Gf(Um,t)),e.uuidv6=t=>e.check(Kf(Um,t)),e.uuidv7=t=>e.check(qf(Um,t)),e.nanoid=t=>e.check(Xf(Km,t)),e.guid=t=>e.check(Uf(Hm,t)),e.cuid=t=>e.check(Zf(qm,t)),e.cuid2=t=>e.check(Qf(Jm,t)),e.ulid=t=>e.check($f(Ym,t)),e.base64=t=>e.check(op(nh,t)),e.base64url=t=>e.check(sp(rh,t)),e.xid=t=>e.check(ep(Xm,t)),e.ksuid=t=>e.check(tp(Zm,t)),e.ipv4=t=>e.check(np(Qm,t)),e.ipv6=t=>e.check(rp($m,t)),e.cidrv4=t=>e.check(ip(eh,t)),e.cidrv6=t=>e.check(ap(th,t)),e.e164=t=>e.check(cp(ih,t)),e.datetime=t=>e.check(hm(t)),e.date=t=>e.check(_m(t)),e.time=t=>e.check(ym(t)),e.duration=t=>e.check(xm(t))});function zm(e){return Vf(Rm,e)}var Bm=V(`ZodStringFormat`,(e,t)=>{Ad.init(e,t),Lm.init(e,t)}),Vm=V(`ZodEmail`,(e,t)=>{Nd.init(e,t),Bm.init(e,t)}),Hm=V(`ZodGUID`,(e,t)=>{jd.init(e,t),Bm.init(e,t)}),Um=V(`ZodUUID`,(e,t)=>{Md.init(e,t),Bm.init(e,t)}),Wm=V(`ZodURL`,(e,t)=>{Pd.init(e,t),Bm.init(e,t)}),Gm=V(`ZodEmoji`,(e,t)=>{Z.init(e,t),Bm.init(e,t)}),Km=V(`ZodNanoID`,(e,t)=>{Fd.init(e,t),Bm.init(e,t)}),qm=V(`ZodCUID`,(e,t)=>{Id.init(e,t),Bm.init(e,t)}),Jm=V(`ZodCUID2`,(e,t)=>{Ld.init(e,t),Bm.init(e,t)}),Ym=V(`ZodULID`,(e,t)=>{Rd.init(e,t),Bm.init(e,t)}),Xm=V(`ZodXID`,(e,t)=>{zd.init(e,t),Bm.init(e,t)}),Zm=V(`ZodKSUID`,(e,t)=>{Bd.init(e,t),Bm.init(e,t)}),Qm=V(`ZodIPv4`,(e,t)=>{Gd.init(e,t),Bm.init(e,t)}),$m=V(`ZodIPv6`,(e,t)=>{Kd.init(e,t),Bm.init(e,t)}),eh=V(`ZodCIDRv4`,(e,t)=>{qd.init(e,t),Bm.init(e,t)}),th=V(`ZodCIDRv6`,(e,t)=>{Jd.init(e,t),Bm.init(e,t)}),nh=V(`ZodBase64`,(e,t)=>{Xd.init(e,t),Bm.init(e,t)}),rh=V(`ZodBase64URL`,(e,t)=>{Qd.init(e,t),Bm.init(e,t)}),ih=V(`ZodE164`,(e,t)=>{$d.init(e,t),Bm.init(e,t)}),ah=V(`ZodJWT`,(e,t)=>{tf.init(e,t),Bm.init(e,t)}),oh=V(`ZodNumber`,(e,t)=>{nf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zp(e,t,n,r),e.gt=(t,n)=>e.check(bp(t,n)),e.gte=(t,n)=>e.check(xp(t,n)),e.min=(t,n)=>e.check(xp(t,n)),e.lt=(t,n)=>e.check(vp(t,n)),e.lte=(t,n)=>e.check(yp(t,n)),e.max=(t,n)=>e.check(yp(t,n)),e.int=t=>e.check(ch(t)),e.safe=t=>e.check(ch(t)),e.positive=t=>e.check(bp(0,t)),e.nonnegative=t=>e.check(xp(0,t)),e.negative=t=>e.check(vp(0,t)),e.nonpositive=t=>e.check(yp(0,t)),e.multipleOf=(t,n)=>e.check(Sp(t,n)),e.step=(t,n)=>e.check(Sp(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),sh=V(`ZodNumberFormat`,(e,t)=>{rf.init(e,t),oh.init(e,t)});function ch(e){return hp(sh,e)}var lh=V(`ZodUnknown`,(e,t)=>{af.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function uh(){return gp(lh)}var dh=V(`ZodNever`,(e,t)=>{of.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qp(e,t,n,r)});function fh(e){return _p(dh,e)}var ph=V(`ZodArray`,(e,t)=>{cf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nm(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(wp(t,n)),e.nonempty=t=>e.check(wp(1,t)),e.max=(t,n)=>e.check(Cp(t,n)),e.length=(t,n)=>e.check(Tp(t,n)),e.unwrap=()=>e.element});function mh(e,t){return Rp(ph,e,t)}var hh=V(`ZodObject`,(e,t)=>{pf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rm(e,t,n,r),q(e,`shape`,()=>t.shape),e.keyof=()=>Sh(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:uh()}),e.loose=()=>e.clone({...e._zod.def,catchall:uh()}),e.strict=()=>e.clone({...e._zod.def,catchall:fh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ou(e,t),e.safeExtend=t=>su(e,t),e.merge=t=>cu(e,t),e.pick=t=>iu(e,t),e.omit=t=>au(e,t),e.partial=(...t)=>lu(Th,e,t[0]),e.required=(...t)=>uu(Fh,e,t[0])});function gh(e,t){return new hh({type:`object`,shape:e??{},...J(t)})}var _h=V(`ZodUnion`,(e,t)=>{hf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>im(e,t,n,r),e.options=t.options});function vh(e,t){return new _h({type:`union`,options:e,...J(t)})}var yh=V(`ZodIntersection`,(e,t)=>{gf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>am(e,t,n,r)});function bh(e,t){return new yh({type:`intersection`,left:e,right:t})}var xh=V(`ZodEnum`,(e,t)=>{yf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$p(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new xh({...t,checks:[],...J(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new xh({...t,checks:[],...J(r),entries:i})}});function Sh(e,t){return new xh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...J(t)})}var Ch=V(`ZodTransform`,(e,t)=>{bf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tm(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new zl(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(gu(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(gu(t))}};
48let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function wh(e){return new Ch({type:`transform`,transform:e})}var Th=V(`ZodOptional`,(e,t)=>{Sf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Eh(e){return new Th({type:`optional`,innerType:e})}var Dh=V(`ZodExactOptional`,(e,t)=>{Cf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Oh(e){return new Dh({type:`optional`,innerType:e})}var kh=V(`ZodNullable`,(e,t)=>{wf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>om(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ah(e){return new kh({type:`nullable`,innerType:e})}var jh=V(`ZodDefault`,(e,t)=>{Tf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mh(e,t){return new jh({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ql(t)}})}var Nh=V(`ZodPrefault`,(e,t)=>{Df.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ph(e,t){return new Nh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ql(t)}})}var Fh=V(`ZodNonOptional`,(e,t)=>{Of.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ih(e,t){return new Fh({type:`nonoptional`,innerType:e,...J(t)})}var Lh=V(`ZodCatch`,(e,t)=>{Af.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>um(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Rh(e,t){return new Lh({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var zh=V(`ZodPipe`,(e,t)=>{jf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dm(e,t,n,r),e.in=t.in,e.out=t.out});function Bh(e,t){return new zh({type:`pipe`,in:e,out:t})}var Vh=V(`ZodReadonly`,(e,t)=>{Nf.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Hh(e){return new Vh({type:`readonly`,innerType:e})}var Uh=V(`ZodCustom`,(e,t)=>{Ff.init(e,t),Im.init(e,t),e._zod.processJSONSchema=(t,n,r)=>em(e,t,n,r)});function Wh(e,t={}){return zp(Uh,e,t)}function Gh(e){return Bp(e)}function Kh(e){return mp(oh,e)}function qh({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`field-group`,className:a(`group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4`,e),...t})}var Jh=Hr(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function Yh({className:e,orientation:t=`vertical`,...n}){return(0,A.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":t,className:a(Jh({orientation:t}),e),...n})}function Xh({className:e,...t}){return(0,A.jsx)(vi,{"data-slot":`field-label`,className:a(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,e),...t})}function Zh({className:e,...t}){return(0,A.jsx)(`p`,{"data-slot":`field-description`,className:a(`text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a]:underline [&>a]:underline-offset-4 [&>
48a:hover]:text-primary`,e),...t})}var Qh=k.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,...d}=e,{state:f,name:p,disabled:m,setTouched:h,setDirty:g,validityData:_,setFocused:v,setFilled:y,validationMode:b,validation:x}=xi(),S=m||s,C=p??a,ee={...f,disabled:S},{labelId:te}=yi(),ne=bi({id:i});Vr(()=>{let e=o!=null;x.inputRef.current?.value||e&&o!==``?y(!0):e&&o===``&&y(!1)},[x.inputRef,y,o]);let re=k.useRef(null);Vr(()=>{u&&re.current===Kr(qr(re.current))&&v(!0)},[u,v]);let[ie]=Si({controlled:o,default:l,name:`FieldControl`,state:`value`}),ae=o!==void 0,oe=ae?ie:void 0;return wi({id:ne,name:C,commit:x.commit,value:oe,getValue:()=>x.inputRef.current?.value,controlRef:x.inputRef}),Br(`input`,e,{ref:[t,re],state:ee,props:[{id:ne,disabled:S,name:C,ref:x.inputRef,"aria-labelledby":te,autoFocus:u,...ae?{value:oe}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Gr(Wr,e.nativeEvent)),g(t!==_.initialValue),y(t!==``)},onFocus(){v(!0)},onBlur(e){h(!0),v(!1),b===`onBlur`&&x.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(h(!0),x.commit(e.currentTarget.value))}},x.getInputValidationProps(),d],stateAttributesMapping:Ci})}),$h=k.forwardRef(function(e,t){return(0,A.jsx)(Qh,{ref:t,...e})});function eg({className:e,type:t,...n}){return(0,A.jsx)($h,{type:t,"data-slot":`input`,className:a(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}function tg(e){if(!e.state.meta.isTouched)return null;let t=e.state.meta.errors;if(!t?.length)return null;let n=t[0];return typeof n==`string`?n:n&&typeof n==`object`&&`message`in n?String(n.message):String(n)}function ng({field:e,label:t,type:n=`text`,placeholder:r,autoComplete:i,required:a,disabled:o}){let s=tg(e);return(0,A.jsxs)(Yh,{children:[(0,A.jsx)(Xh,{htmlFor:e.name,children:t}),(0,A.jsx)(eg,{id:e.name,name:e.name,type:n,value:e.state.value??``,onChange:t=>e.handleChange(t.target.value),onBlur:e.handleBlur,placeholder:r,autoComplete:i,required:a,disabled:o,"aria-invalid":s?!0:void 0}),s&&(0,A.jsx)(`p`,{className:`text-destructive text-sm`,children:s})]})}function rg({title:e,children:t}){return(0,A.jsxs)(`li`,{className:`flex items-start gap-3 text-left text-sm leading-6 text-white/72`,children:[(0,A.jsx)(`span`,{className:`mt-1 grid size-4 shrink-0 place-items-center text-[#f6cd54]`,children:(0,A.jsx)(ei,{className:`size-3`})}),(0,A.jsxs)(`span`,{className:`min-w-0`,children:[(0,A.jsx)(`strong`,{className:`font-semibold text-[#f6cd54]`,children:e}),(0,A.jsx)(`span`,{className:`mt-0.5 block text-white/62`,children:t})]})]})}function ig({children:e,title:t,description:n,showBenefits:r=!0,showBrand:i=!0,className:o}){return(0,A.jsxs)(`section`,{className:a(`dark relative flex w-full max-w-[980px] gap-5 overflow-hidden rounded-3xl border border-white/8 bg-[#232323] p-5 text-white [color-scheme:dark] shadow-[0_30px_100px_rgba(0,0,0,0.55)] max-md:p-0`,o),children:[(0,A.jsxs)(`div`,{className:`relative hidden w-[36%] shrink-0 overflow-hidden rounded-2xl bg-[#0d1118] md:block`,children:[(0,A.jsx)(`video`,{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:`auto`,"aria-hidden":`true`,className:`absolute inset-0 size-full object-cover`,children:(0,A.jsx)(`source`,{src:`/videos/auth-showcase-wave.mp4`,type:`video/mp4`})}),(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,rgba(7,8,12,0.04),rgba(7,8,12,0.18))]`})]}),(0,A.jsx)(`div`,{className:`flex min-h-[600px] min-w-0 flex-1 flex-col justify-center px-6 py-8 sm:px-10 md:px-12`,children:(0,A.jsxs)(`div`,{className:`mx-auto w-full max-w-md`,children:[i?(0,A.jsx)(`p`,{className:`text-xs font-bold tracking-[0.18em] text-[#f6cd54] uppercase`,children:Nr.app_name}):null,(0,A.jsx)(`h1`,{className:a(`text-3xl leading-tight font-semibold tracking-tight text-white`,i&&`mt-3`),children:t}),n?(0,A.jsx)(`p`,{className:`mt-3 text-sm leading-6 text-white/55`,children:n}):null,r?(0,A.jsxs)(`ul`,{className:`mt-6 grid gap-4`,children:[(0,A.jsx)(rg,{title:jn(),children:(0,A.jsx)(`span`,{className:`font-semibold text-[#f6cd54]`,children:Gt()})}),(0,A.jsx)(rg,{title:fn(),children:(0,A.jsx)(`span`,{className:`font-semibold text-[#f6cd54]`,children:Bn()})}),(0,A.jsx)(rg,{title:On(),children:Un()}),(0,A.jsx)(rg,{title:tn(),children:Be()})]}):null,(0,A.jsx)(`div`,{className:`mt-7 [&_[data-slot=input]]:border-white/20 [&_[data-slot=input]]:bg-white/[0.07] [&_[data-slot=input]]:text-white [&_[data-slot=input]]:shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] [&_[data-slot=input]]:placeholder:text-white/45 [&_[data-slot=input]]:hover:border-white/30 [&_[data-slot=input]]:hover:bg-white/[0.09] [&_[data-slot=input]]:focus-visible:border-[#f6cd54]/70 [&_[data-slot=input]]:focus-visible:ring-[#f6cd54]/20`,children:e})]})})]})}function ag({children:e,title:t,description:n}){return(0,A.jsxs)(`main`,{className:`fixed inset-0 z-20 flex min-h-svh items-center justify-center overflow-y-auto bg-[#090a0d] p-4 sm:p-8`,children:[(0,A.jsx)(`div`,{className:`absolute inset-0 bg-[radial-gradient(circle_at_20%_15%,rgba(255,112,78,0.14),transparent_32%),radial-gradient(circle_at_85%_85%,rgba(170,84,255,0.12),transparent_30%)]`}),(0,A.jsx)(ig,{title:t,description:n,showBenefits:!1,className:`z-10`,children:e})]})}
48var og=gh({email:zm().email(ct()),password:zm().min(1)}),sg=gh({name:zm().min(1),email:zm().email(ct()),password:zm().min(8),inviteCode:zm()});function cg(e,t){t?.(),window.location.assign(Wn(Er(e)))}function lg({error:e}){return e?(0,A.jsx)(`div`,{role:`alert`,className:`rounded-xl border border-red-400/25 bg-red-400/[0.08] p-3 text-sm text-red-100`,children:e}):null}function ug({configs:e,configsLoaded:t,callbackUrl:n,setView:r,onSuccess:i}){let[a,o]=(0,k.useState)(null),s=e.google_auth_enabled===`true`&&!!e.google_client_id,c=e.github_auth_enabled===`true`,l=e.email_auth_enabled!==`false`,u=e.email_otp_enabled===`true`,d=e.initial_credits_enabled===`false`?0:Number.parseInt(e.initial_credits_amount||``,10);(0,k.useEffect)(()=>{mi(`signup_offer_dialog_impression`,{surface:`auth_offer`})},[]);async function f(e){if(!a){o(e),mi(`signup_method_selected`,{method:e,surface:`auth_offer`});try{let t=await Pr.social({provider:e,callbackURL:Wn(Er(n))});if(t?.error)throw Error(t.error.message||nt());i?.()}catch(e){fi.error(e instanceof Error?e.message:nt()),o(null)}}}let p=s||c||l||u;return(0,A.jsxs)(ig,{title:(0,A.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,A.jsx)(`span`,{children:St()}),(0,A.jsx)(`span`,{className:`text-[#e8ab3a]`,children:Nr.app_name}),(0,A.jsx)(`span`,{className:`rounded bg-[#f6cd54] px-1.5 py-0.5 align-middle text-[10px] leading-none font-black text-[#28200d]`,children:Vt()})]}),description:Number.isFinite(d)&&d>0?zt({credits:d}):Lt(),showBrand:!1,children:[t?p?(0,A.jsxs)(`div`,{className:`grid gap-3`,children:[(0,A.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded-xl border border-[#f6cd54]/22 bg-[#f6cd54]/[0.07] px-3 py-2.5`,children:[(0,A.jsx)(ui,{className:`mt-0.5 size-4 shrink-0 text-[#f6cd54]`}),(0,A.jsx)(`div`,{className:`min-w-0`,children:(0,A.jsx)(`p`,{className:`text-xs leading-5 font-semibold text-[#ffe07a]`,children:zn()})})]}),l?(0,A.jsxs)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:[(0,A.jsxs)(`button`,{type:`button`,onClick:()=>{mi(`signup_method_selected`,{method:`email_password_signin`,surface:`auth_offer`}),r(`password-sign-in`)},className:`inline-flex h-12 items-center justify-center gap-2 rounded-xl border border-white/18 bg-white/[0.04] px-3 text-sm font-semibold text-white transition hover:-translate-y-0.5 hover:border-[#f6cd54]/55 hover:bg-white/[0.08]`,children:[(0,A.jsx)(ci,{className:`size-4 text-[#f6cd54]`}),tt()]}),(0,A.jsxs)(`button`,{type:`button`,onClick:()=>{mi(`signup_method_selected`,{method:`email_password_signup`,surface:`auth_offer`}),r(`password-sign-up`)},className:`inline-flex h-12 items-center justify-center gap-2 rounded-xl border border-[#ffe17a] bg-[#f6cd54] px-3 text-sm font-bold text-[#211b0e] shadow-[0_10px_28px_rgba(246,205,84,0.14)] transition hover:-translate-y-0.5 hover:bg-[#ffda63]`,children:[(0,A.jsx)(cc,{className:`size-4`}),Number.isFinite(d)&&d>0?lt({credits:d}):Rt()]})]}):null,u?(0,A.jsxs)(`button`,{type:`button`,onClick:()=>{mi(`signup_method_selected`,{method:`email_otp`,surface:`auth_offer`}),r(`email-otp`)},className:`inline-flex h-11 items-center justify-center gap-2 rounded-xl border border-white/12 bg-white/[0.04] px-4 text-sm font-semibold text-white transition hover:bg-white/[0.08]`,children:[(0,A.jsx)(oc,{className:`size-4 text-[#ffab91]`}),Pt()]}
48):null,(s||c)&&(l||u)?(0,A.jsxs)(`div`,{className:`flex items-center gap-3 py-1`,"aria-hidden":`true`,children:[(0,A.jsx)(`span`,{className:`h-px flex-1 bg-white/10`}),(0,A.jsx)(`span`,{className:`text-[10px] font-semibold tracking-[0.16em] text-white/45 uppercase`,children:We()}),(0,A.jsx)(`span`,{className:`h-px flex-1 bg-white/10`})]}):null,s?(0,A.jsxs)(`button`,{type:`button`,disabled:!!a,onClick:()=>void f(`google`),className:`inline-flex h-12 w-full items-center justify-center gap-3 rounded-xl border border-white/18 bg-white/[0.06] px-4 text-sm font-semibold text-white transition hover:border-white/28 hover:bg-white/[0.1] disabled:opacity-60`,children:[a===`google`?(0,A.jsx)(si,{className:`size-4 animate-spin`}):(0,A.jsx)(`span`,{className:`text-base font-black`,children:`G`}),Ct()]}):null,c?(0,A.jsxs)(`button`,{type:`button`,disabled:!!a,onClick:()=>void f(`github`),className:`inline-flex h-11 w-full items-center justify-center gap-3 rounded-xl border border-white/12 bg-white/[0.04] px-4 text-sm font-semibold text-white transition hover:bg-white/[0.08] disabled:opacity-60`,children:[a===`github`?(0,A.jsx)(si,{className:`size-4 animate-spin`}):(0,A.jsx)(rc,{className:`size-4`}),ut()]}):null]}):(0,A.jsx)(`div`,{className:`rounded-xl border border-dashed border-white/15 p-6 text-center text-sm text-white/60`,children:rt()}):(0,A.jsx)(`div`,{className:`flex h-24 items-center justify-center text-white/55`,children:(0,A.jsx)(si,{className:`size-5 animate-spin`})}),(0,A.jsxs)(`p`,{className:`mt-5 text-center text-xs leading-5 text-white/38`,children:[ir(),` `,(0,A.jsx)(xe,{href:`/terms-of-service`,className:`text-white/60 hover:text-white`,children:wt()}),` `,dt(),` `,(0,A.jsx)(xe,{href:`/privacy-policy`,className:`text-white/60 hover:text-white`,children:it()})]}),(0,A.jsx)(`p`,{className:`mt-1.5 text-center text-[11px] text-[#f6cd54]/62`,children:st()})]})}function dg({configs:e,callbackUrl:t,setView:n,onSuccess:r}){let i=ye(),[a,o]=(0,k.useState)(``),s=e.password_reset_enabled===`true`,c=Ll({defaultValues:{email:``,password:``},validators:{onSubmit:og},onSubmit:async({value:e})=>{o(``);try{let n=await Pr.email({email:e.email.trim().toLowerCase(),password:e.password});if(n.error){let a=n.error.code,s=n.error.message||``;if(a===`EMAIL_NOT_VERIFIED`||n.error.status===403&&/not verified/i.test(s)){let n=`/verify-email?sent=1&email=${encodeURIComponent(e.email)}&callbackUrl=${encodeURIComponent(t)}`;Rr.sendVerificationEmail({email:e.email,callbackURL:Wn(t)}),r?.(),i.push(n);return}o(s||nt());return}mi(`signin_completed`,{method:`email_password`,surface:`auth_offer`}),cg(t,r)}catch(e){o(e instanceof Error?e.message:nt())}}});return(0,A.jsxs)(ig,{title:Bt(),description:It(),showBenefits:!1,children:[(0,A.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e=>{e.preventDefault(),c.handleSubmit()},children:[(0,A.jsx)(lg,{error:a}),(0,A.jsx)(c.Field,{name:`email`,children:e=>(0,A.jsx)(ng,{field:e,label:Rn(),type:`email`,autoComplete:`email`,required:!0,placeholder:ct()})}),(0,A.jsx)(c.Field,{name:`password`,children:e=>(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsxs)(`div`,{className:`flex items-center justify-between text-sm`,children:[(0,A.jsx)(`span`,{children:et()}),s?(0,A.jsx)(xe,{href:`/forgot-password?callbackUrl=${encodeURIComponent(t)}`,onClick:r,className:`text-white/65 underline underline-offset-4 hover:text-white`,children:Ze()}):null]}),(0,A.jsx)(ng,{field:e,label:``,type:`password`,autoComplete:`current-password`,required:!0,placeholder:Nt()})]})}),(0,A.jsx)(c.Subscribe,{selector:e=>e.isSubmitting,children:e=>(0,A.jsxs)(Ur,{type:`submit`,disabled:e,className:`h-11 rounded-xl bg-white text-[#17181d] hover:bg-white/90`,children:[e?(0,A.jsx)(si,{className:`animate-spin`}):null,Bt()]})})]}),(0,A.jsxs)(`div`,{className:`mt-5 flex items-center justify-center gap-3 border-t border-white/10 pt-5 text-xs text-white/50`,children:[(0,A.jsx)(`button`,{type:`button`,onClick:()=>n(`showcase`),className:`hover:text-white`,children:Ge()}),(0,A.jsx)(`span`,{children:`·`}),(0,A.jsx)(`button`,{type:`button`,onClick:()=>n(`password-sign-up`),className:`text-white/75 underline`,children:Rt()})]})]})}function fg({configs:e,callbackUrl:t,setView:n,onSuccess:r}){let i=ye(),[a,o]=(0,k.useState)(``),s=e.invite_code_required===`true`,c=e.email_verification_enabled===`true`,l=Ll({defaultValues:{name:``,email:``,password:``,invite
48Code:``},validators:{onSubmit:sg},onSubmit:async({value:e})=>{o(``);let n=e.inviteCode.trim();if(s&&!n){o(Qt());return}try{s&&await hi(`/api/invite-codes/validate`,{code:n});let a=await Lr.email({name:e.name.trim(),email:e.email.trim().toLowerCase(),password:e.password});if(a.error){o(a.error.message||Mt());return}if(mi(`signup_completed`,{method:`email_password`,surface:`auth_offer`}),s)try{await hi(`/api/invite-codes/redeem`,{code:n})}catch{}if(c){let n=`/verify-email?sent=1&email=${encodeURIComponent(e.email)}&callbackUrl=${encodeURIComponent(t)}`;Rr.sendVerificationEmail({email:e.email,callbackURL:Wn(t)}),r?.(),i.push(n);return}cg(t,r)}catch(e){o(e instanceof Error?e.message:Mt())}}});return(0,A.jsxs)(ig,{title:Rt(),description:ot(),showBenefits:!1,children:[(0,A.jsxs)(`form`,{className:`grid gap-3`,onSubmit:e=>{e.preventDefault(),l.handleSubmit()},children:[(0,A.jsx)(lg,{error:a}),(0,A.jsx)(l.Field,{name:`name`,children:e=>(0,A.jsx)(ng,{field:e,label:jt(),required:!0})}),(0,A.jsx)(l.Field,{name:`email`,children:e=>(0,A.jsx)(ng,{field:e,label:Rn(),type:`email`,autoComplete:`email`,required:!0})}),(0,A.jsx)(l.Field,{name:`password`,children:e=>(0,A.jsx)(ng,{field:e,label:et(),type:`password`,autoComplete:`new-password`,required:!0})}),s?(0,A.jsx)(l.Field,{name:`inviteCode`,children:e=>(0,A.jsx)(ng,{field:e,label:Pn(),required:!0})}):null,(0,A.jsx)(l.Subscribe,{selector:e=>e.isSubmitting,children:e=>(0,A.jsxs)(Ur,{type:`submit`,disabled:e,className:`h-11 rounded-xl bg-white text-[#17181d] hover:bg-white/90`,children:[e?(0,A.jsx)(si,{className:`animate-spin`}):null,Rt()]})})]}),(0,A.jsxs)(`div`,{className:`mt-5 flex items-center justify-center gap-3 border-t border-white/10 pt-5 text-xs text-white/50`,children:[(0,A.jsx)(`button`,{type:`button`,onClick:()=>n(`showcase`),className:`hover:text-white`,children:Ge()}),(0,A.jsx)(`span`,{children:`·`}),(0,A.jsx)(`button`,{type:`button`,onClick:()=>n(`password-sign-in`),className:`text-white/75 underline`,children:Bt()})]})]})}function pg({callbackUrl:e,setView:t,onSuccess:n}){let[r,i]=(0,k.useState)(``),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1),[l,u]=(0,k.useState)(!1),[d,f]=(0,k.useState)(``);(0,k.useEffect)(()=>{let e=Tr();e&&(i(e.email),c(jr(e)))},[]);async function p(){let t=r.trim().toLowerCase();if(f(``),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){f(Qe());return}u(!0);try{let n=await Rr.emailOtp.sendVerificationOtp({email:t,type:`sign-in`});if(n.error)throw Error(n.error.message);i(t),c(!0),Dr({email:t,callbackUrl:e,codeSentAt:Date.now()}),fi.success(ht())}catch(e){f(e instanceof Error?e.message:pt())}finally{u(!1)}}async function m(){if(!a.trim()){f(gn());return}u(!0),f(``);try{let t=await Pr.emailOtp({email:r,otp:a.trim(),name:r.split(`@`)[0]||`Lem Gen User`});if(t.error)throw Error(t.error.message);mi(`auth_otp_completed`,{method:`email_otp`,surface:`auth_offer`}
48),kr(),cg(e,n)}catch(e){f(e instanceof Error?e.message:He()),u(!1)}}return(0,A.jsxs)(ig,{title:Pt(),description:kt(),showBenefits:!1,children:[(0,A.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e=>{e.preventDefault(),s?m():p()},children:[(0,A.jsx)(lg,{error:d}),(0,A.jsxs)(`label`,{className:`grid gap-2 text-sm`,children:[Rn(),(0,A.jsx)(`input`,{type:`email`,value:r,onChange:t=>{let n=t.target.value;i(n),c(!1),o(``),Dr({email:n,callbackUrl:e,codeSentAt:0})},autoComplete:`email`,className:`h-11 rounded-xl border border-white/12 bg-white/[0.06] px-3 text-white outline-none placeholder:text-white/35 focus:border-white/35`})]}),s?(0,A.jsxs)(`label`,{className:`grid gap-2 text-sm`,children:[yt(),(0,A.jsx)(`input`,{type:`text`,inputMode:`numeric`,value:a,onChange:e=>o(e.target.value.replace(/\D/g,``).slice(0,6)),autoComplete:`one-time-code`,className:`h-11 rounded-xl border border-white/12 bg-white/[0.06] px-3 text-center text-lg tracking-[0.35em] text-white outline-none focus:border-white/35`})]}):null,(0,A.jsxs)(Ur,{type:`submit`,disabled:l,className:`h-11 rounded-xl bg-white text-[#17181d] hover:bg-white/90`,children:[l?(0,A.jsx)(si,{className:`animate-spin`}):null,s?vt():yn()]}),s?(0,A.jsx)(`button`,{type:`button`,disabled:l,onClick:()=>void p(),className:`text-xs text-white/50 hover:text-white disabled:opacity-50`,children:Ye()}):null]}),(0,A.jsx)(`button`,{type:`button`,onClick:()=>{kr(),t(`showcase`)},className:`mt-5 w-full border-t border-white/10 pt-5 text-center text-xs text-white/55 hover:text-white`,children:Ge()})]})}function mg({initialView:e=`showcase`,callbackUrl:t=`/`,onSuccess:n,onViewChange:r}){let{data:i}=Fr(),a=_i(),[o,s]=(0,k.useState)(e),c=Er(t);function l(e){e===`email-otp`?Tr()||Dr({email:``,callbackUrl:c,codeSentAt:0}):o===`email-otp`&&kr(),s(e),r?.(e)}(0,k.useEffect)(()=>{let t=Tr()?`email-otp`:e;s(t),r?.(t)},[e,r]),(0,k.useEffect)(()=>{i?.user&&n?.()},[n,i?.user]);let u=a.data??{},d=u.email_auth_enabled!==`false`,f=u.email_otp_enabled===`true`;return a.isSuccess?(o===`password-sign-in`||o===`password-sign-up`)&&!d||o===`email-otp`&&!f?(0,A.jsx)(ug,{configs:u,configsLoaded:!0,callbackUrl:c,setView:l,onSuccess:n}):o===`password-sign-in`?(0,A.jsx)(dg,{configs:u,callbackUrl:c,setView:l,onSuccess:n}):o===`password-sign-up`?(0,A.jsx)(fg,{configs:u,callbackUrl:c,setView:l,onSuccess:n}):o===`email-otp`?(0,A.jsx)(pg,{callbackUrl:c,setView:l,onSuccess:n}):(0,A.jsx)(ug,{configs:u,configsLoaded:a.isSuccess,callbackUrl:c,setView:l,onSuccess:n}):(0,A.jsx)(ug,{configs:u,configsLoaded:!1,callbackUrl:c,setView:l,onSuccess:n})}function hg(){let e=fe({select:({pathname:e,searchStr:t,hash:n})=>({pathname:e,search:t,hash:n})}),{data:t,isPending:n}=Fr(),{isAuthOpen:r,authView:i,callbackUrl:a,openAuth:o,closeAuth:s,setAuthView:c}=wr();(0,k.useEffect)(()=>{if(n||t?.user)return;let i=new URLSearchParams(e.search);if(i.get(`auth`)===`1`){let e=Tr(),t=i.get(`authView`),n=e?`email-otp`:t===`password-sign-in`||t===`password-sign-up`||t===`email-otp`?t:`showcase`;o(e?.callbackUrl||i.get(`callbackUrl`)||`/`,n);return}if(!r){let e=Tr();e&&o(e.callbackUrl,`email-otp`)}},[r,n,e.search,o,t?.user]);let l=(0,k.useCallback)(()=>{let t=new URLSearchParams(e.search).get(`auth`)===`1`;kr(),s(),t&&window.location.replace(Wn(Ar(e.pathname,e.search,e.hash)))},[s,e]);return(0,k.useEffect)(()=>{t?.user&&r&&(kr(),s())},[s,r,t?.user]),(0,A.jsx)(Xr,{open:r&&!n&&!t?.user,onOpenChange:e=>{e||l()},children:(0,A.jsxs)(Jr,{showCloseButton:!0,className:`max-h-[calc(100dvh-2rem)] max-w-[980px] overflow-y-auto border-0 bg-transparent p-0 text-white ring-0 sm:max-w-[980px]`,children:[(0,A.jsx)(Yr,{className:`sr-only`,children:Bt()}),(0,A.jsx)(mg,{initialView:i,callbackUrl:a,onSuccess:s,onViewChange:c})]})})}var gg=`lemgen-guest-signin-reward-dismissed-until-v2`,_g=`lemgen-guest-signin-reward-shown-v2`,vg=4e3,yg=12e3,bg=45e3,xg=280,Sg=7,Cg=new Set([`/sign-in`,`/sign-up`,`/forgot-password`,`/reset-password`,`/verify-email`,`/redeem-invite`]),wg=[`/admin`,`/settings`];function Tg(e){return Cg.has(e)||wg.some(t=>e===t||e.startsWith(`${t}/`))}function Eg(){try{return Number(window.localStorage.getItem(gg)||0)>Date.now()}catch{return!1}}function Dg(){try{window.localStorage.setItem(gg,String(Date.now()+Sg*24*60*60*1e3))}catch{}}function Og(){try{return window.sessionStorage.getItem(_g)===`true`}catch{return!1}}function kg(){try{window.sessionStorage.setItem(_g,`true`)}catch{}}
48function Ag(){let e=ge(),{data:t,isPending:n}=Fr(),{openAuth:r,isAuthOpen:i}=wr(),o=_i(),[s,c]=(0,k.useState)(`hidden`),l=yr({queryKey:[`checkin-status`,`anonymous`,`default`],queryFn:()=>gi(`/api/checkin/status`),enabled:!n&&!t?.user&&!Tg(e),staleTime:6e4}),u=(0,k.useCallback)(e=>{e&&(Dg(),mi(`signup_offer_dismissed`,{surface:`guest_teaser`})),c(e=>e===`hidden`?`hidden`:`closing`)},[]);if((0,k.useEffect)(()=>{if(n||t?.user||i||Tg(e)){c(`hidden`);return}if(Eg()||Og())return;let r=window.setTimeout(()=>{kg(),c(`open`),mi(`signup_offer_impression`,{surface:`guest_teaser`})},e===`/`?vg:yg);return()=>window.clearTimeout(r)},[i,n,e,t?.user]),(0,k.useEffect)(()=>{if(s!==`open`)return;let e=window.setTimeout(()=>u(!1),bg);return()=>window.clearTimeout(e)},[u,s]),(0,k.useEffect)(()=>{if(s!==`closing`)return;let e=window.setTimeout(()=>c(`hidden`),xg);return()=>window.clearTimeout(e)},[s]),s===`hidden`)return null;let d=o.data??{},f=d.initial_credits_enabled===`false`?0:Number.parseInt(d.initial_credits_amount||``,10),p=l.data?.nextRewardCredits;return(0,A.jsxs)(`aside`,{"aria-labelledby":`guest-signin-reward-title`,"aria-live":`polite`,className:a(`fixed top-[calc(env(safe-area-inset-top)+4.5rem)] right-3 left-3 z-40 w-auto will-change-transform sm:top-[calc(env(safe-area-inset-top)+5rem)] sm:right-5 sm:left-auto sm:w-[316px]`,s===`open`?`motion-safe:animate-[lemgen-guest-reward-in_420ms_cubic-bezier(.16,1,.3,1)_both]`:`pointer-events-none motion-safe:animate-[lemgen-guest-reward-out_280ms_cubic-bezier(.4,0,1,1)_both]`),children:[(0,A.jsxs)(`section`,{className:`border-border bg-card/96 text-card-foreground relative isolate overflow-hidden rounded-2xl border p-4 shadow-[0_18px_55px_rgba(27,33,25,0.16),0_1px_0_rgba(255,255,255,0.5)_inset] backdrop-blur-xl dark:shadow-[0_18px_55px_rgba(0,0,0,0.38)]`,children:[(0,A.jsx)(`div`,{className:`pointer-events-none absolute -top-20 -left-12 -z-10 size-44 rounded-full bg-[#79f36a]/12 blur-3xl`}),(0,A.jsx)(`button`,{type:`button`,onClick:()=>u(!0),"aria-label":Xn(),className:`text-muted-foreground hover:bg-accent hover:text-foreground absolute top-2.5 right-2.5 rounded-full p-1.5 transition`,children:(0,A.jsx)(di,{className:`size-3.5`})}),(0,A.jsxs)(`div`,{className:`flex items-center gap-3 pr-7`,children:[(0,A.jsx)(`div`,{className:`flex size-14 shrink-0 items-center justify-center rounded-xl border border-[#2f6f58]/20 bg-[#edf7e9] text-[#2f6f58] dark:border-[#79f36a]/20 dark:bg-[#1d3020] dark:text-[#79f36a]`,children:(0,A.jsx)(nc,{className:`size-7`,strokeWidth:1.8})}),(0,A.jsx)(`div`,{className:`min-w-0`,children:(0,A.jsx)(`h2`,{id:`guest-signin-reward-title`,className:`text-base leading-5 font-bold`,children:Ot()})})]}),(0,A.jsxs)(`div`,{className:`border-border bg-muted/45 text-muted-foreground mt-3 space-y-2 rounded-xl border p-3 text-[13px] leading-5 font-medium`,children:[f>0?(0,A.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(`span`,{className:`size-1.5 rounded-full bg-[#2f6f58] dark:bg-[#79f36a]`}),p&&p>0?Et({signup:f,checkin:p}):$n({credits:f})]}):p&&p>0?(0,A.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(`span`,{className:`size-1.5 rounded-full bg-[#4f8f74] dark:bg-[#79f36a]`}),qe({credits:p})]}):null,(0,A.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(`span`,{className:`size-1.5 rounded-full bg-[#6ca873] dark:bg-[#79f36a]`}),tr()]}),(0,A.jsxs)(`p`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(`span`,{className:`size-1.5 rounded-full bg-[#8fd14f] dark:bg-[#79f36a]`}),Jt()]})]}),(0,A.jsx)(`button`,{type:`button`,onClick:()=>{Dg(),mi(`signup_offer_clicked`,{surface:`guest_teaser`}),r(`${e}${window.location.search}`)},className:`bg-primary text-primary-foreground hover:bg-primary/90 mt-3 h-9 w-full rounded-xl px-4 text-sm font-semibold transition`,children:rr()})]}),(0,A.jsx)(`style`,{children:`
49        @keyframes lemgen-guest-reward-in { from { opacity: 0; transform: translate3d(calc(100% + 2rem), 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
50        @keyframes lemgen-guest-reward-out { from { opacity: 1; transform: translate3d(0, 0, 0); } to { opacity: 0; transform: translate3d(calc(100% + 2rem), 0, 0); } }
51      `})]})}var jg=768;function Mg(){let[e,t]=k.useState(void 0);return k.useEffect(()=>{let e=window.matchMedia(`(max-width: ${jg-1}px)`),n=()=>{t(window.innerWidth<jg)};return e.addEventListener(`change`,n),t(window.innerWidth<jg),()=>e.removeEventListener(`change`,n)},[]),!!e}var Ng=100,Pg=30,Fg=`lemgen-low-credit-growth-snooze`,Ig=[`/sign-in`,`/sign-up`,`/forgot-password`,`/reset-password`,`/verify-email`,`/admin`,`/settings`];function Lg(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}
51function Rg(){let e=ge(),t=Mg(),{data:n,isPending:r}=Fr(),{isAuthOpen:i}=wr(),a=_r(),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(!1),[u,d]=(0,k.useState)(0),f=n?.user?.id,p=(0,k.useMemo)(()=>`${Fg}:${f||`guest`}`,[f]),m=yr({queryKey:[`credits`],queryFn:()=>gi(`/api/credits`),enabled:o&&!t&&!r&&!!f,staleTime:3e4}),h=Cr({mutationFn:()=>hi(`/api/checkin/claim`,{timeZone:Lg()}),onSuccess:async e=>{e.success?fi.success(qn({credits:e.credits})):e.alreadyCheckedIn&&fi.info(In()),await Promise.all([a.invalidateQueries({queryKey:[`credits`]}),a.invalidateQueries({queryKey:[`user-credits`]}),a.invalidateQueries({queryKey:[`checkin-status`]})])},onError:e=>fi.error(e.message||Cn())});(0,k.useEffect)(()=>s(!0),[]),(0,k.useEffect)(()=>{if(!(!o||t||!f)){try{d(Number(window.localStorage.getItem(p)||0))}catch{d(0)}l(!1)}},[t,o,p,f]);function g(){let e=Date.now()+Pg*60*1e3;try{window.localStorage.setItem(p,String(e))}catch{}d(e),l(!0)}let _=m.data?.balance,v=Ig.some(t=>e===t||e.startsWith(`${t}/`));return o&&!t&&!r&&f&&!i&&!v&&!c&&u<=Date.now()&&typeof _==`number`&&_<Ng?(0,A.jsxs)(`aside`,{className:`fixed right-5 bottom-5 z-40 w-[390px] motion-safe:animate-[lemgen-low-credit-pop_420ms_cubic-bezier(.16,1,.3,1)_both]`,children:[(0,A.jsxs)(`section`,{role:`status`,className:`border-border bg-card/96 text-card-foreground relative overflow-hidden rounded-3xl border p-4 shadow-[0_24px_90px_rgba(27,33,25,0.18)] backdrop-blur-xl dark:shadow-[0_24px_90px_rgba(0,0,0,0.5)]`,children:[(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 rounded-3xl bg-[radial-gradient(circle_at_18%_0%,rgba(121,243,106,0.14),transparent_34%),radial-gradient(circle_at_92%_10%,rgba(47,111,88,0.12),transparent_30%)]`}),(0,A.jsx)(`button`,{type:`button`,onClick:g,"aria-label":Xt(),className:`text-muted-foreground hover:bg-accent hover:text-foreground absolute top-3 right-3 z-10 rounded-full p-1.5 transition`,children:(0,A.jsx)(di,{className:`size-5`})}),(0,A.jsxs)(`div`,{className:`relative`,children:[(0,A.jsxs)(`div`,{className:`flex items-start gap-4 pr-8`,children:[(0,A.jsx)(`div`,{className:`flex size-14 shrink-0 items-center justify-center rounded-2xl bg-[#edf7e9] text-[#2f6f58] shadow-lg shadow-[#2f6f58]/10 dark:bg-[#1d3020] dark:text-[#79f36a]`,children:(0,A.jsx)(ri,{className:`size-7`})}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`h2`,{className:`text-xl leading-tight font-bold`,children:Ut()}),(0,A.jsx)(`p`,{className:`text-muted-foreground mt-1 text-base`,children:cn({credits:_})})]})]}),(0,A.jsxs)(`div`,{className:`mt-5 grid gap-3`,children:[(0,A.jsx)(`div`,{className:`rounded-2xl border border-[#2f6f58]/20 bg-[#edf7e9] p-4 dark:border-[#79f36a]/15 dark:bg-[#1d3020]`,children:(0,A.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,A.jsx)(tc,{className:`mt-0.5 size-5 shrink-0 text-[#2f6f58] dark:text-[#79f36a]`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`h3`,{className:`text-foreground font-semibold`,children:un()}),(0,A.jsx)(`p`,{className:`text-muted-foreground mt-1 text-sm leading-6`,children:En()})]})]})}),(0,A.jsx)(`div`,{className:`border-border bg-muted/50 rounded-2xl border p-4`,children:(0,A.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,A.jsx)(ni,{className:`mt-0.5 size-5 shrink-0 text-[#4f8f74] dark:text-[#79f36a]`}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`h3`,{className:`text-foreground font-semibold`,children:Fn()}),(0,A.jsx)(`p`,{className:`text-muted-foreground mt-1 text-sm leading-6`,children:an()})]})]})})]}),(0,A.jsxs)(`div`,{className:`mt-5 grid grid-cols-2 gap-3`,children:[(0,A.jsxs)(`button`,{type:`button`,onClick:()=>h.mutate(),disabled:h.isPending,className:`border-border bg-background text-foreground hover:bg-accent inline-flex h-9 items-center justify-center gap-2 rounded-lg border px-3 text-sm font-medium transition disabled:opacity-60`,children:[h.isPending?(0,A.jsx)(si,{className:`size-4 animate-spin`}):(0,A.jsx)(ti,{className:`size-4`}),$t()]}),(0,A.jsxs)(xe,{href:`/pricing`,onClick:g,className:`bg-primary text-primary-foreground hover:bg-primary/90 inline-flex h-9 items-center justify-center gap-2 rounded-lg px-3 text-sm font-bold shadow-lg transition`,children:[(0,A.jsx)(ri,{className:`size-4`}),Kn()]})]}),(0,A.jsx)(`p`,{className:`text-muted-foreground mt-4 text-center text-xs`,children:Sn({minutes:Pg})})]})]}),(0,A.jsx)(`style`,{children:`@keyframes lemgen-low-credit-pop{0%{opacity:0;transform:translate3d(0,18px,0) scale(.96)}100%{opacity:1;transform:none}}`})]}):null}function zg({projectId:e}){let t=e.replace(/[^a-zA-Z0-9]/g,``);return(0,k.useEffect)(()=>
51{if(!t||document.getElementById(`clarity-loader`))return;let e=e=>typeof e==`string`&&(e.includes(`ResizeObserver loop completed with undelivered notifications`)||e.includes(`ResizeObserver loop limit exceeded`)),n=t=>{e(t.message)&&(t.preventDefault(),t.stopImmediatePropagation())},r=t=>{e(t.reason)&&t.preventDefault()};window.addEventListener(`error`,n,!0),window.addEventListener(`unhandledrejection`,r,!0);let i=window;i.clarity=i.clarity||function(...e){let t=i.clarity;t&&(t.q=t.q||[]).push(e)};let a=document.createElement(`script`);return a.id=`clarity-loader`,a.async=!0,a.src=`https://www.clarity.ms/tag/${t}`,document.head.appendChild(a),()=>{window.removeEventListener(`error`,n,!0),window.removeEventListener(`unhandledrejection`,r,!0)}},[t]),null}function Bg({measurementId:e}){return e?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`script`,{id:`ga-loader`,src:`https://www.googletagmanager.com/gtag/js?id=${e}`,async:!0}),(0,A.jsx)(`script`,{id:`ga-init`,async:!0,dangerouslySetInnerHTML:{__html:`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','${e}');`}})]}):null}function Vg({domain:e,src:t=`https://plausible.io/js/script.js`}){return e?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`script`,{id:`plausible-init`,async:!0,dangerouslySetInnerHTML:{__html:`window.plausible=window.plausible||function(){(window.plausible.q=window.plausible.q||[]).push(arguments)};`}}),(0,A.jsx)(`script`,{id:`plausible-loader`,"data-domain":e,src:t,defer:!0,async:!0})]}):null}function Hg({websiteId:e}){return e?(0,A.jsx)(`script`,{id:`crisp-widget`,async:!0,dangerouslySetInnerHTML:{__html:`window.$crisp=[];window.CRISP_WEBSITE_ID="${e}";(function(){var d=document;var s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();`}}):null}function Ug({propertyId:e,widgetId:t}){return!e||!t?null:(0,A.jsx)(`script`,{id:`tawk-widget`,async:!0,dangerouslySetInnerHTML:{__html:`var Tawk_API=Tawk_API||{},Tawk_LoadStart=new Date();(function(){var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];s1.async=true;s1.src="https://embed.tawk.to/${e}/${t}";s1.charset="UTF-8";s1.setAttribute("crossorigin","*");s0.parentNode.insertBefore(s1,s0);})();`}})}function Wg({crispWebsiteId:e,tawkPropertyId:t,tawkWidgetId:n}){return(0,A.jsxs)(A.Fragment,{children:[e?(0,A.jsx)(Hg,{websiteId:e}):null,t&&n?(0,A.jsx)(Ug,{propertyId:t,widgetId:n}):null]})}function Gg(){let{data:e,isPending:t}=Fr(),{data:n}=_i(),r=(0,k.useRef)(!1);return(0,k.useEffect)(()=>{r.current||n&&(t||e?.user||n.google_one_tap_enabled!==`true`||!n.google_client_id||(r.current=!0,Ir(n).oneTap?.({callbackURL:Wn(`/`),onPromptNotification:()=>{}}
51).catch(()=>{})))},[n,e,t]),null}var Kg=({...e})=>{let{theme:t=`system`}=Ls();return(0,A.jsx)(pi,{theme:t,className:`toaster group`,icons:{success:(0,A.jsx)(ti,{className:`size-4`}),info:(0,A.jsx)(ac,{className:`size-4`}),warning:(0,A.jsx)(ai,{className:`size-4`}),error:(0,A.jsx)(sc,{className:`size-4`}),loading:(0,A.jsx)(si,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e})},qg=(0,k.lazy)(()=>I(()=>import(`./support-widget-DqrBxLl2.js`).then(e=>({default:e.SupportWidget})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))),Jg=u().handler(c(`cbd81923ae1249d4c007f69579597cf1e79f1f7b8675cc608ba82e8926b5bb59`)),Q=Qo({loader:()=>Jg(),head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:Nr.app_name},{name:`description`,content:Nr.app_description}],links:[{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:``},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Caveat+Brush&family=Nunito+Sans:wght@800;900&display=swap`},{rel:`icon`,href:`/favicon.svg`,type:`image/svg+xml`},{rel:`icon`,href:`/favicon-32x32.png`,sizes:`32x32`},{rel:`icon`,href:`/favicon-16x16.png`,sizes:`16x16`},{rel:`apple-touch-icon`,href:`/apple-touch-icon.png`},{rel:`manifest`,href:`/site.webmanifest`}]}),component:Yg,shellComponent:Xg,notFoundComponent:Zg,errorComponent:Qg});function Yg(){let e=Q.useLoaderData();return(0,A.jsxs)(gr,{client:qs(),children:[(0,A.jsx)(Rs,{attribute:`class`,defaultTheme:`light`,enableSystem:!0,disableTransitionOnChange:!0,children:(0,A.jsxs)(Mr,{children:[(0,A.jsx)(cs,{}),(0,A.jsx)(k.Suspense,{fallback:null,children:(0,A.jsx)(qg,{})}),(0,A.jsx)(ec,{}),(0,A.jsx)(hg,{}),(0,A.jsx)(Ag,{}),(0,A.jsx)(Rg,{}),(0,A.jsx)(Kg,{position:`top-center`,richColors:!0}),(0,A.jsx)(Gg,{}),e?.gaId?(0,A.jsx)(Bg,{measurementId:e.gaId}):null,e?.plausibleDomain?(0,A.jsx)(Vg,{domain:e.plausibleDomain,src:e.plausibleSrc||void 0}):null,e?.clarityId?(0,A.jsx)(zg,{projectId:e.clarityId}):null,(0,A.jsx)(Wg,{crispWebsiteId:e?.crispWebsiteId||void 0,tawkPropertyId:e?.tawkPropertyId||void 0,tawkWidgetId:e?.tawkWidgetId||void 0})]})}),!1]})}function Xg({children:e}){return(0,A.jsxs)(`html`,{lang:D(),suppressHydrationWarning:!0,children:[(0,A.jsx)(`head`,{children:(0,A.jsx)(xs,{})}),(0,A.jsxs)(`body`,{className:`font-sans antialiased`,children:[e,(0,A.jsx)(Ss,{})]})]})}function Zg(){return(0,A.jsxs)(`div`,{className:`bg-background text-foreground flex min-h-screen flex-col items-center justify-center gap-4`,children:[(0,A.jsx)(`h1`,{className:`text-6xl font-bold`,children:`404`}),(0,A.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),(0,A.jsx)(`a`,{href:Wn(`/`),className:`text-sm underline underline-offset-4`,children:`Back to home`})]})}function Qg({error:e,reset:t}){return(0,A.jsxs)(`div`,{className:`bg-background text-foreground flex min-h-screen flex-col items-center justify-center gap-4`,children:[(0,A.jsx)(`h1`,{className:`text-4xl font-bold`,children:`Oops`}),(0,A.jsx)(`p`,{className:`text-muted-foreground`,children:`Something went wrong. Please try again.`}),!1,(0,A.jsx)(`button`,{type:`button`,onClick:t,className:`text-sm underline underline-offset-4`,children:`Try again`})]})}var $g=`/brand/lem-gen-brand-board.png`;function e_(e){if(/^https?:\/\//i.test(e))return e;let t=e.startsWith(`/`)?e:`/${e}`;return`${Nr.app_url.replace(/\/$/,``)}${t}`}function t_(e,t){let n=e.startsWith(`/`)?e:`/${e}`;return kn(`${Nr.app_url}${n}`,{locale:t}).href}function n_(e,t){return[{rel:`canonical`,href:t_(e,t)},...nn.map(t=>({rel:`alternate`,hrefLang:t,href:t_(e,t)})),{rel:`alternate`,hrefLang:`x-default`,href:t_(e,`en`)}]}function r_({title:e,description:t,path:n,image:r=$g,locale:i=`en`,type:a=`website`}){let o=t_(n,i),s=e_(r);return[{title:e},{name:`description`,content:t},{property:`og:type`,content:a},{property:`og:title`,content:e},{property:`og:description`,content:t},{property:`og:url`,content:o},{property:`og:image`,content:s},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:e},{name:`twitter:description`,content:t},{name:`twitter:image`,content:s}]}function i_(){return[{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}function a_(e,t=155){let n=e.replace(/\s+/g,` `).trim();return n.length<=t?n:`${n.slice(0,t-1).trimEnd()}…`}function o_(e){return JSON.stringify(e).replace(/</g,`\\u003c`)}var s_=()=>I(()=>import(`./workspace-CcWClEJ9.js`),__vite__mapDeps([29,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44,45,46,47,48,49,50,51,52,53,21,54,55,17,56,57,58,59,60,61,62,15,63,64,65,66,67,68,69,70,71,72,23,73,74,75,76,77,26,78,79])),c_=u().handler(c(`04a62104b87f303406dd312b14ad86d02f22726abb3bcfde4b16b60e126a3579`)),l_=P(`/workspace`)({validateSearch:e=>e,loader:async()=>{let e=await c_();return{locale:D(),siteAssetBaseUrl:e.siteAssetBaseUrl}},head:({loaderData:e})=>{let t=e?.locale??`en`;return{meta:[...r_({title:t===`zh`?`Lem Gen 工作台 - AI 图片与视频生成`:`Lem Gen Workspace - AI Image and Video Generation`,description:t===`zh`?`使用 Lem Gen 工作台生成 AI 图片、AI 视频、图生视频和图片编辑作品。`:`Create AI images, AI videos, image-to-vi
51deo clips, and edited images in the Lem Gen workspace.`,path:`/workspace`,locale:t}),{name:`robots`,content:`noindex,follow`},{name:`googlebot`,content:`noindex,follow`}],links:n_(`/workspace`,t)}},component:F(s_,`component`)}),u_=u().handler(c(`08521913076d7b770cca528ab92aae1077ca3f83dc45c80a82c9f17206173a28`)),d_=null;async function f_(){return typeof window>`u`?u_():(d_||=u_().catch(e=>{throw d_=null,e}),d_)}function p_({mode:e,siteAssetBaseUrl:t}){return(0,A.jsx)(oi,{mode:e,siteAssetBaseUrl:t})}var m_=P(`/video-to-video`)({loader:async()=>({locale:D(),...await f_()}),head:({loaderData:e})=>{let t=e?.locale||`en`;return{meta:[...r_({title:t===`zh`?`AI 视频转视频`:`AI Video to Video`,description:t===`zh`?`使用 Lem Gen 重新创作和转换视频。`:`Transform and restyle videos with Lem Gen.`,path:`/video-to-video`,locale:t}),...i_()],links:n_(`/video-to-video`,t)}},component:F(()=>I(()=>import(`./video-to-video-BJx-1MFr.js`),__vite__mapDeps([80,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44])),`component`)}),h_=P(`/text-to-video`)({loader:async()=>({locale:D(),...await f_()}),head:({loaderData:e})=>{let t=e?.locale||`en`;return{meta:[...r_({title:t===`zh`?`AI 文生视频`:`AI Text to Video`,description:t===`zh`?`使用 Lem Gen 根据文字提示生成 AI 视频。`:`Create AI videos from text prompts with Lem Gen.`,path:`/text-to-video`,locale:t}),...i_()],links:n_(`/text-to-video`,t)}},component:F(()=>I(()=>import(`./text-to-video-DjjfsR6f.js`),__vite__mapDeps([81,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44])),`component`)}),g_=P(`/text-to-speech`)({loader:()=>{let e=D();return{title:Ln({app:Nr.app_name},{locale:e}),description:on({},{locale:e})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./text-to-speech-Cy37C1zg.js`),__vite__mapDeps([82,1,12,50,14,6,7,10,51,52,38,53,21,40,54,83,11,68,9,84,2,85,26,62,86,70,71,87,65,32,4,5,33,34,36,37,66,17,28,88,89,56,90,39,91,16,92,13,35,27,93,78,94])),`component`)}),__=P(`/text-to-image`)({loader:async()=>({locale:D(),...await f_()}),head:({loaderData:e})=>{let t=e?.locale||`en`;return{meta:[...r_({title:t===`zh`?`AI 文生图`:`AI Text to Image`,description:t===`zh`?`使用 Lem Gen 根据文字提示生成 AI 图片。`:`Create AI images from text prompts with Lem Gen.`,path:`/text-to-image`,locale:t}),...i_()],links:n_(`/text-to-image`,t)}},component:F(()=>I(()=>import(`./text-to-image-BgEq0Zja.js`),__vite__mapDeps([95,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44])),`component`)}),v_=P(`/pricing`)({loader:()=>{let e=D();return{locale:e,title:xn({},{locale:e}),description:Yt({},{locale:e})}},head:({loaderData:e})=>e?{meta:r_({title:`${e.title} | Lem Gen`,description:e.description,path:`/pricing`,locale:e.locale}),links:n_(`/pricing`,e.locale)}:{},component:F(()=>I(()=>import(`./pricing-BSoT0veC.js`),__vite__mapDeps([96,1,87,12,14,6,7,65,32,2,4,5,33,34,10,36,37,66,17,54,28,97,11,51,68,9,73,74,75,13,27,76,77,84,85,26,98,30,3,8,31,35,38,39,16,40,19,41,42,43,44])),`component`)}),y_=P(`/image-to-video`)({loader:async()=>({locale:D(),...await f_()}),head:({loaderData:e})=>{let t=e?.locale||`en`;return{meta:[...r_({title:t===`zh`?`AI 图生视频`:`AI Image to Video`,description:t===`zh`?`使用 Lem Gen 将图片生成 AI 视频。`:`Turn images into AI videos with Lem Gen.`,path:`/image-to-video`,locale:t}),...i_()],links:n_(`/image-to-video`,t)}},component:F(()=>I(()=>import(`./image-to-video-FKrNv9da.js`),__vite__mapDeps([99,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44])),`component`)}),b_=P(`/image-editor`)({loader:async()=>({locale:D(),...await f_()}),head:({loaderData:e})=>{let t=e?.locale||`en`;return{meta:[...r_({title:t===`zh`?`AI 图片编辑器`:`AI Image Editor`,description:t===`zh`?`使用 Lem Gen 编辑和重新创作图片。`:`Edit and transform images with Lem Gen.`,path:`/image-editor`,locale:t}),...i_()],links:n_(`/image-editor`,t)}},component:F(()=>I(()=>
51import(`./image-editor-B2ti9qnq.js`),__vite__mapDeps([100,1,30,2,3,4,5,6,7,8,9,10,31,32,33,34,11,12,13,35,14,36,37,38,39,16,40,19,41,27,42,43,44])),`component`)}),x_=`/gpt-image-2-5`,S_={locale:`en`,meta:{title:`GPT Image 2.5 Free Image Generator | Lem Gen`,description:`Try a GPT Image 2.5 free image generator workflow for sharper details and precise edits. Start with free credits and create images in your browser.`},hero:{eyebrow:`GPT Image 2.5 · Free to start`,title:`GPT Image 2.5 Free Image Generator`,description:`Turn detailed prompts into polished visuals with an image workflow built for the new GPT Image 2.5 era. Explore unlimited ideas, start with free Lem Gen credits, and move from concept to usable creative without leaving your browser.`,primaryCta:`Try the image generator`,secondaryCta:`See what changed`,highlights:[`Sharper fine details`,`More precise image edits`,`Natural light and richer texture`]},status:{title:`Clear model status`,description:`OpenAI announced GPT Image 2.5 on September 8, 2026. The embedded Lem Gen tool below currently runs our available GPT Image 2 workflow. GPT Image 2.5 will only be enabled after provider access has been verified. We label the active model inside the generator so you always know what you are using.`,sourceLabel:`Read the official GPT Image 2.5 announcement`},generator:{eyebrow:`Create online`,title:`Start your GPT Image 2.5-style workflow`,description:`Describe the subject, composition, lighting, text, materials, and constraints you need. The generator is free to try with account credits; higher resolutions and continued generation use credits shown before you submit.`},capabilities:{eyebrow:`What is new`,title:`Why creators are moving to GPT Image 2.5`,description:`The official release focuses on production details that matter after the first impressive draft: cleaner rendering, controllable revisions, visual consistency, and faster iteration.`,items:[{title:`Sharper visual details`,description:`Preserve small product features, material texture, edges, and typography with fewer muddy areas when a prompt contains many specific requirements.`},{title:`More precise editing`,description:`Change a targeted object, color, pose, background, or line of text while asking the rest of the composition to remain stable.`},{title:`Better continuity`,description:`Keep identities, important visual cues, and the overall scene more consistent across a sequence of multi-turn image edits.`},{title:`Faster iteration`,description:`OpenAI reports up to 50% lower latency than Images 2.0, making prompt refinement and edit-review loops feel more immediate.`}]},useCases:{eyebrow:`Built for real work`,title:`One image generator, many creative jobs`,items:[{title:`Product marketing`,description:`Create campaign concepts, ecommerce scenes, packaging mockups, social variants, and clean product compositions from a structured brief.`},{title:`Brand and design`,description:`Explore key art, posters, editorial graphics, presentation visuals, and art directions while protecting the details that define the concept.`},{title:`Character continuity`,description:`Develop a character across poses, outfits, locations, and story beats with explicit identity and continuity constraints in each prompt.`},{title:`Targeted image editing`,description:`Replace backgrounds, clean up distractions, restyle materials, revise copy, or adjust lighting without rebuilding the entire image from scratch.`}]},workflow:{eyebrow:`How it works`,title:`Generate a stronger image in three steps`,description:`A good GPT Image 2.5 free image generator workflow is less about adding random adjectives and more about giving the model an ordered creative brief.`,steps:[{title:`Write the visual brief`,description:`Name the subject and goal first, then specify composition, camera, lighting, materials, color, text, aspect ratio, and anything that must not change.`},{title:`Choose output settings`,description:`Select an aspect ratio and resolution that match the final placement. Use a compact size for exploration and a higher resolution for approved assets.`},{title:`Review and revise`,description:`Evaluate accuracy before style. Make one focused change per edit so the next result tells you exactly which instruction improved the image.`}]},comparison:{eyebrow:`Model comparison`,title:`GPT Image 2.5 vs GPT Image 2`,description:`GPT Image 2 remains a capable generation option. GPT Image 2.5 is positioned as the refinement for teams that need more fidelity and control in production workflows.`,headers:[`Capability`,`GPT Image 2.5`,`GPT Image 2`],rows:[{label:`Fine detail`,current:`Sharper details and richer textures`,previous:`Strong general rendering`},{label:`Editing control`,current:`More precise targeted edits`,previous:`Useful broad and local edits`},{label:`Multi-turn consistency`,current:`Improved identity and scene continuity`,previous:`May drift across repeated revisions`},{label:`Speed`,current:`Up to 50% lower latency than Images 2.0`,previous:`Previous-generation baseline`}]},promptGuide:{eyebrow:`Prompt guide`,title:`Write prompts GPT Image 2.5 can follow`,description:`Use concrete nouns and relationships. Separate creative intent from requirements, and state which elements must stay unchanged when editing an existing image.`,formulaLabel:`Prompt formula`,formula:`[goal] + [subject] + [composition] + [environment] + [lighting] + [materials and color] + [text] + [camera or style] + [constraints]`,exampleLabel:`Example prompt`,example:`Create a premium studio product photo of a translucent amber perfume bottle on pale limestone. Three-quarter close-up, soft window light from the left, realistic glass refraction, restrained warm shadows, ivory and charc
51oal palette, 4:5 composition, no hands, no extra bottles, leave clean negative space above the product for ad copy.`,tips:[`Put the business goal and main subject in the first sentence.`,`Describe spatial relationships instead of listing disconnected keywords.`,`Quote required visible text and keep it short.`,`For edits, identify both the requested change and the protected elements.`],libraryLink:`Browse 12 free GPT Image 2.5 prompts`},pricingTitle:`Choose the right plan for your image workflow`,pricingNote:`Lem Gen is free to start with account credits. It does not promise unlimited zero-cost generations; every paid option shows its credit allowance before checkout.`,faq:{eyebrow:`Frequently asked questions`,title:`GPT Image 2.5 generator FAQ`,description:`Straight answers about access, free usage, prompting, editing, quality, and commercial workflows.`,items:[{question:`Is the GPT Image 2.5 image generator free and unlimited?`,answer:`Lem Gen is free to start with account credits and may offer a daily free allowance. Generation is not unlimited at zero cost: usage, model, and resolution determine the credits required, and the exact amount is shown before submission. “Unlimited” on this page refers to creative possibilities, not an uncapped free entitlement.`},{question:`Is GPT Image 2.5 available in the Lem Gen generator now?`,answer:`The page tracks GPT Image 2.5 and its official capabilities, but the embedded tool currently uses the available GPT Image 2 workflow. The model selector inside the generator is the source of truth. We will only relabel it after verified provider support is live.`},{question:`What improved in GPT Image 2.5?`,answer:`OpenAI highlights sharper details, more precise editing, natural lighting, richer textures, better reference identity, improved multi-turn consistency, and up to 50% lower latency compared with Images 2.0.`},{question:`Can I edit an existing image?`,answer:`Yes. Open the image editor, upload a supported reference image, describe the exact change, and list the elements that must stay fixed. Focused edit instructions usually make review easier than a long list of unrelated changes.`},{question:`How do I get more accurate text and product details?`,answer:`Quote short visible text, describe its location and hierarchy, and name distinctive product details explicitly. Ask for accuracy before decorative style, then fix one issue per revision.`},{question:`Which aspect ratio should I choose?`,answer:`Use 1:1 for marketplace cards, 4:5 for social feeds, 16:9 for wide banners and video frames, and 9:16 for stories or vertical ads. Match the final placement before generating to reduce later cropping.`},{question:`Can I use generated images commercially?`,answer:`Commercial use depends on the applicable model and Lem Gen terms, plus the rights in your prompts, uploads, logos, people, and references. Review the current terms and do not upload or imitate material you are not authorized to use.`}]},finalCta:{title:`Turn your next idea into a production-ready visual`,description:`Start with a structured prompt, generate a draft, and refine the details that matter to your campaign.`,button:`Create an image now`}},C_={locale:`zh`,meta:{title:`GPT Image 2.5 免费图片生成器 | Lem Gen`,description:`体验 GPT Image 2.5 免费图片生成器工作流,获得更清晰的细节与更精准的编辑。领取免费积分,直接在浏览器中创作 AI 图片。`},hero:{eyebrow:`GPT Image 2.5 · 免费开始`,title:`GPT Image 2.5 免费图片生成器`,description:`用详细提示词把想法变成可用视觉素材。围绕 GPT Image 2.5 新能力组织工作流,免费积分即可开始,在浏览器内完成构思、生成和细节迭代。创意可以无限,实际生成以页面显示的积分规则为准。`,primaryCta:`试用图片生成器`,secondaryCta:`了解升级能力`,highlights:[`更清晰的细节`,`更精准的局部编辑`,`更自然的光线与材质`]},status:{title:`模型状态透明说明`,description:`OpenAI 于 2026 年 9 月 8 日发布 GPT Image 2.5。下方 Lem Gen 生成器目前仍运行已接入的 GPT Image 2 工作流;只有服务商的 GPT Image 2.5 能力完成验证后才会启用。生成器内会始终显示实际使用的模型,避免误导。`,sourceLabel:`查看 GPT Image 2.5 官方发布说明`},generator:{eyebrow:`在线创作`,title:`开始 GPT Image 2.5 风格图片工作流`,description:`写清主体、构图、光线、文字、材质和限制条件。注册账户可用免费积分试用;高分辨率与持续生成会消耗积分,提交前均会明确显示。`},capabilities:{eyebrow:`核心升级`,title:`为什么创作者关注 GPT Image 2.5`,description:`这次升级聚焦首张惊艳效果之后的生产问题:画面细节、可控修改、连续一致性与迭代速度。`,items:[{title:`更清晰的视觉细节`,description:`面对包含多项要求的提示词时,更好地保留商品结构、材质纹理、边缘和文字,减
51少模糊与信息丢失。`},{title:`更精准的图片编辑`,description:`针对物体、颜色、姿势、背景或文案做局部修改,并明确要求画面其余部分保持稳定。`},{title:`更好的连续一致性`,description:`在多轮编辑中尽量保持人物身份、关键视觉特征与整体场景,适合角色和系列素材。`},{title:`更快的迭代`,description:`OpenAI 表示,相比 Images 2.0,延迟最高可降低 50%,提示词调整与审稿循环更顺畅。`}]},useCases:{eyebrow:`真实创作场景`,title:`一个图片生成器,覆盖多种视觉任务`,items:[{title:`商品营销`,description:`根据结构化 brief 生成广告概念、电商场景、包装样机、社媒变体和干净的商品构图。`},{title:`品牌与设计`,description:`探索主视觉、海报、编辑插图、演示素材与艺术方向,同时保留定义概念的关键细节。`},{title:`角色一致性`,description:`通过明确身份与连续性限制,让同一角色出现在不同姿势、服装、地点和故事节点中。`},{title:`精准图片编辑`,description:`替换背景、清理干扰、调整材质与文案或重做光线,无需每次从零重建整张图片。`}]},workflow:{eyebrow:`使用方法`,title:`三步生成更可靠的图片`,description:`GPT Image 2.5 免费图片生成器工作流的关键不是堆砌形容词,而是把创意需求整理成有顺序的 brief。`,steps:[{title:`写清视觉 brief`,description:`先说明主体与目标,再补充构图、镜头、光线、材质、颜色、文字、比例,以及绝对不能改变的元素。`},{title:`选择输出参数`,description:`根据最终投放位置选择比例和分辨率。探索阶段先用较小尺寸,确认方向后再生成高分辨率素材。`},{title:`审查并逐步修改`,description:`先检查准确性,再看风格。每轮只做一个重点修改,更容易判断是哪条指令改善了结果。`}]},comparison:{eyebrow:`模型对比`,title:`GPT Image 2.5 与 GPT Image 2 对比`,description:`GPT Image 2 仍是成熟的生成选择;GPT Image 2.5 更适合对细节还原、编辑控制和生产一致性要求更高的团队。`,headers:[`能力`,`GPT Image 2.5`,`GPT Image 2`],rows:[{label:`精细细节`,current:`细节更清晰、纹理更丰富`,previous:`通用渲染能力强`},{label:`编辑控制`,current:`局部编辑更加精准`,previous:`支持常规整体与局部修改`},{label:`多轮一致性`,current:`身份与场景连续性更好`,previous:`反复修改时可能出现漂移`},{label:`速度`,current:`相比 Images 2.0 延迟最高降低 50%`,previous:`上一代速度基线`}]},promptGuide:{eyebrow:`提示词指南`,title:`写出 GPT Image 2.5 更容易执行的提示词`,description:`使用明确名词和空间关系,把创意方向与硬性要求分开;编辑现有图片时,必须同时说明修改项和保护项。`,formulaLabel:`提示词公式`,formula:`[目标] + [主体] + [构图] + [环境] + [光线] + [材质与颜色] + [文字] + [镜头或风格] + [限制条件]`,exampleLabel:`示例提示词`,example:`生成一张高端棚拍商品图:半透明琥珀色香水瓶放在浅色石灰岩台面上,四分之三近景,柔和窗光从左侧照入,真实玻璃折射,克制的暖色阴影,象牙白与炭灰配色,4:5 构图,不要手和多余瓶子,在商品上方保留干净留白用于广告文案。`,tips:[`第一句话就写清商业目标与主体。`,`描述元素之间的位置关系,不要只堆关键词。`,`需要显示的文字用引号标出,并尽量简短。`,`做图片编辑时,同时写明要改变和必须保持的内容。`],libraryLink:`浏览 12 个 GPT Image 2.5 免费提示词`},pricingTitle:`为你的图片工作流选择合适方案`,pricingNote:`Lem Gen 提供账户免费积分,但不承诺零成本无限生成;每个付费方案都会在结账前明确展示积分额度。`,faq:{eyebrow:`常见问题`,title:`GPT Image 2.5 图片生成器 FAQ`,description:`关于免费使用、模型接入、提示词、图片编辑、画质与商用的直接回答。`,items:[{question:`GPT Image 2.5 图片生成器真的免费且无限制吗?`,answer:`Lem Gen 可用账户免费积分开始体验,也可能提供每日免费额度,但零成本生成并非无限。实际消耗取决于模型和分辨率,提交前会显示所需积分。本页“无限”描述的是创意空间,不是无限免费权益。`},{question:`Lem Gen 现在已经接入 GPT Image 2.5 了吗?`,answer:`本页会跟进 GPT Image 2.5 及其官方能力,但内嵌工具目前使用已接入的 GPT Image 2 工作流。请以生成器内的模型选择器为准;只有服务商支持完成验证并正式上线后,才会更新模型名称。`},{question:`GPT Image 2.5 主要升级了什么?`,answer:`OpenAI 强调了更清晰的细节、更精准的编辑、更自然的光线、更丰富的纹理、更好的参考身份与多轮一致性,以及相比 Images 2.0 最高 50% 的延迟降低。`}
51,{question:`可以编辑已有图片吗?`,answer:`可以。打开图片编辑器,上传支持的参考图,说明需要改变的具体内容,并列出必须保持不变的元素。聚焦的一次修改通常比同时提出许多无关要求更易审查。`},{question:`怎样让文字和商品细节更准确?`,answer:`把短文案用引号标出,描述它的位置和层级,并明确列出商品的独特结构。先要求准确,再补充装饰风格;每一轮只修一个主要问题。`},{question:`应该选择什么图片比例?`,answer:`商品卡片可用 1:1,社媒信息流可用 4:5,横幅与视频画面可用 16:9,Stories 或竖版广告可用 9:16。生成前匹配最终版位,可减少后续裁切。`},{question:`生成的图片可以商用吗?`,answer:`商用需要同时遵守适用模型与 Lem Gen 条款,并确保你对提示词、上传图片、Logo、人物与参考素材拥有相应权利。请查看当前条款,不要上传或模仿无权使用的内容。`}]},finalCta:{title:`把下一个想法变成可交付的视觉素材`,description:`从结构化提示词开始,生成初稿,再逐步完善真正影响项目的细节。`,button:`立即生成图片`}};function w_(e){return e===`zh`?C_:S_}var T_=P(`/gpt-image-2-5`)({loader:async()=>{let e=D(),t=w_(e),{siteAssetBaseUrl:n}=await f_();return{locale:e,content:t,siteAssetBaseUrl:n}},head:({loaderData:e})=>{if(!e)return{};let{locale:t,content:n}=e,r=t_(x_,t),i=t_(`/`,t),a={"@context":`https://schema.org`,"@graph":[{"@type":`SoftwareApplication`,"@id":`${r}#app`,name:n.hero.title,url:r,description:n.meta.description,applicationCategory:`MultimediaApplication`,applicationSubCategory:`AI image generator`,operatingSystem:`Web`,browserRequirements:`Requires a modern web browser`,inLanguage:t===`zh`?`zh-CN`:`en-US`,isAccessibleForFree:!0,featureList:n.hero.highlights,provider:{"@type":`Organization`,name:`Lem Gen`,url:i}},{"@type":`FAQPage`,"@id":`${r}#faq`,mainEntity:n.faq.items.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))},{"@type":`BreadcrumbList`,"@id":`${r}#breadcrumb`,itemListElement:[{"@type":`ListItem`,position:1,name:`Lem Gen`,item:i},{"@type":`ListItem`,position:2,name:n.hero.title,item:r}]}]};return{meta:r_({title:n.meta.title,description:n.meta.description,path:x_,locale:t}),links:n_(x_,t),scripts:[{type:`application/ld+json`,children:o_(a)}]}},component:F(()=>I(()=>import(`./gpt-image-2-5-CPgjYE-v.js`),__vite__mapDeps([101,1,102,2,4,5,6,7,33,46,47,10,36,37,51,103,30,3,8,9,31,32,34,11,12,13,35,14,38,39,16,40,19,41,27,42,43,44,15,45,48,49,50,52,53,21,54,55,17,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,23,73,74,75,76,77,26,78,79,104,87,28,97,84,85,98])),`component`)}),E_=P(`/ai-script-generator`)({loader:()=>{let e=D();return{title:en({app:Nr.app_name},{locale:e}),description:Jn({},{locale:e})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./ai-script-generator-BU7i8xal.js`),__vite__mapDeps([105,1,14,12,6,7,50,10,51,52,38,53,21,40,54,83,11,68,9,84,2,85,26,60,16,106,107,72,56,87,65,32,4,5,33,34,36,37,66,17,28,88,89,92,13,35,27,93])),`component`)}),D_=P(`/ai-music-generator`)({loader:()=>{let e=D();return{title:dn({app:Nr.app_name},{locale:e}),description:Dn({},{locale:e})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./ai-music-generator-DTiDvG_d.js`),__vite__mapDeps([108,1,10,83,11,14,12,6,7,50,51,52,38,53,21,40,54,68,9,84,2,85,26,62,86,70,109,110,111,43,94,87,65,32,4,5,33,34,36,37,66,17,28,88,89,56,90,39,91,16,71,92,13,35,27,93,78])),`component`)}),O_=P(`/ai-movie-generator`)({loader:()=>{let e=D();return{title:Ft({},{locale:e}),description:At({},{locale:e})}},head:({loaderData:e})=>({meta:[{title:e?.title}
51,{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./ai-movie-generator-BMknWJ1o.js`),__vite__mapDeps([112,1,11,12,13,35,10,113,51,36,83,14,6,7,50,52,38,53,21,40,54,68,9,84,2,85,26,62,64,114,16,86,70,107,72,23,109,110,111,43,94,19,87,65,32,4,5,33,34,37,66,17,28,88,89,56,27,93])),`component`)}),k_=P(`/settings`)({component:F(()=>I(()=>import(`./route-Dte2KNaI.js`),__vite__mapDeps([115,1,12,10,61,38,53,116,117,74,2,4,5,6,7,32,33,34,8,31,11,13,14,36,118,66,75,27,85,104,9,119,26,120,54])),`component`)}),A_=P(`/admin`)({component:F(()=>I(()=>import(`./route-bUmpMSJG.js`),__vite__mapDeps([121,1,12,10,38,53,117,74,2,4,5,6,7,32,33,34,8,31,11,13,14,36,118,66,75,27,85,104,9,119,26,120,17,69,76,77,54])),`component`)}),j_=P(`/(pages)`)({component:F(()=>I(()=>import(`./route-ZkV6xJ-w.js`),__vite__mapDeps([122,1,12,14,6,7,113,10,123])),`component`)}),M_=()=>I(()=>import(`./routes-CnEofu_o.js`),__vite__mapDeps([124,1,125,2,32,4,5,6,7,33,34,10,46,47,36,37,3,8,9,48,49,11,12,13,35,14,113,51,55,30,31,38,39,16,40,19,41,27,42,43,44,52,17,56,126,127,128,62,118,129,15,65,66,53,114,75,104,130,70,107,131,18,77,72,24,25,26,78,79])),N_=u().handler(c(`6e2408fb6d223a5cd67427c26334d68f6c0203587127f139a31ebf69d5ea216e`));function P_(e){return e===`zh`?{title:`Lem Gen - GPT Image 2、Nano Banana 与 Seedance 2 提示词库`,description:`精选 Free GPT Image 2 prompt、Nano Banana Prompt、Seedance 2 prompt 案例,一键复制、改写并生成 AI 图片或视频。`}:{title:`Lem Gen - Free GPT Image 2, Nano Banana & Seedance 2 Prompts`,description:`Browse Free GPT Image 2 prompts, Nano Banana prompts, and Seedance 2 prompts. Copy model-ready AI image and video prompt examples.`}}var F_=P(`/`)({loader:async()=>{let e=D();return{locale:e,initialCards:await N_({data:{locale:e}})}},head:({loaderData:e})=>{let t=e?.locale??`en`,{title:n,description:r}=P_(t),i={"@context":`https://schema.org`,"@type":`WebSite`,name:`Lem Gen`,url:t_(`/`,t),description:r,inLanguage:t===`zh`?`zh-CN`:`en-US`};return{meta:r_({title:n,description:r,path:`/`,locale:t}),links:n_(`/`,t),scripts:[{type:`application/ld+json`,children:o_(i)}]}},component:F(M_,`component`)}),I_=P(`/video-tools/`)({loader:()=>{let e=D();return{title:gt({},{locale:e}),description:mt({},{locale:e})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./video-tools-CZPmM8G7.js`),__vite__mapDeps([132,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),L_=P(`/video-effects/`)({loader:()=>{let e=D();return{title:ft({},{locale:e}),description:at({},{locale:e})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./video-effects-BMquSZc0.js`),__vite__mapDeps([133,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),R_=P(`/photo-effects/`)({loader:()=>{let e=D();return{title:$e({},{locale:e}),description:bt({},{locale:e})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./photo-effects-Bqmv2La3.js`),__vite__mapDeps([134,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),z_=P(`/image-tools/`)({loader:()=>{let e=D();return{title:_n({},{locale:e}),description:Ue({},{locale:e})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./image-tools-DKv0Q-a8.js`),__vite__mapDeps([135,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),B_=u().handler(c(`139369ba08645c08201ff69bd24b596cdc0f7784b8b3ffd8c6a14f47bbeac9cf`)),V_=u().handler(c(`b19d1425e0192068330144e802eeba64d1a59e4653703cc76476349d6a195d71`)),H_=P(`/blog/`)({loader:async()=>{let e=D();return{locale:e,posts:await B_({data:{locale:e}})}},head:({loaderData:e})=>{let t=e?.locale??`en`;return{meta:r_({title:`${Zn({},{locale:t})} | Lem Gen`,description:Wt({},{locale:t}),path:`/blog`,locale:t}),links:n_(`/blog`,t)}},component:F(()=>I(()=>import(`./blog-CygxSu2B.js`),__vite__mapDeps([136,1,12,14,6,7,137,10,87,65,32,2,4,5,33,34,36,37,66,17,54,28,97,11,51,68,9,73,74,75,13,27,76,77,84,85,26])),`component`)}),U_=u({method:`GET`}).handler(c(`e6d06852b173224c8a8f16a7be6edab0d6e4ad45f9d3e6ed18d7649e29e51d6c`)),W_=P(`/video-tools/$slug`)({loader:async({params:e})=>{let t=Di.get(e.slug);
51if(!t)throw ke();let n=D(),r={...t,title:Ti(t.title,n),description:Ei(t.description,t.title,n,`video-tools/${t.slug}`),marketing:await U_({data:{category:`video-tools`,slug:t.slug,locale:n}})},i=r.slug===`ai-ad-generator`;return{item:r,title:i?Gn({},{locale:n}):Hn({title:r.title,app:Nr.app_name},{locale:n}),description:i?rn({},{locale:n}):Vn({title:r.title},{locale:n})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./_slug-x6dHSe84.js`),__vite__mapDeps([138,1,11,12,13,35,14,6,7,50,10,51,52,38,53,21,40,54,113,36,37,127,83,68,9,84,2,85,26,39,139,62,64,114,16,72,23,87,65,32,4,5,33,34,66,17,28,88,140,131,90,141,110,142,27,78,79,93,143])),`component`)}),G_=P(`/video-effects/$slug`)({loader:async({params:e})=>{let t=Pi.get(e.slug);if(!t)throw ke();let n=D(),r={...t,title:Ti(t.title,n),description:Ei(t.description,t.title,n,`video-effects/${t.slug}`),marketing:await U_({data:{category:`video-effects`,slug:t.slug,locale:n}})};return{effect:r,title:wn({title:r.title,app:Nr.app_name},{locale:n}),description:Kt({title:r.title},{locale:n})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./_slug-CARWH5zT.js`),__vite__mapDeps([144,1,11,12,13,35,14,6,7,50,10,51,52,38,53,21,40,54,127,83,68,9,84,2,85,26,62,114,16,23,109,110,111,43,94,87,65,32,4,5,33,34,36,37,66,17,28,88,140,113,131,90,39,142,27,78,93])),`component`)}),K_=`/prompts/gpt-image-2-5`,q_={locale:`en`,meta:{title:`Free GPT Image 2.5 Prompts: 12 Copyable Examples | Lem Gen`,description:`Copy 12 free GPT Image 2.5 prompts for products, portraits, posters, characters and precise edits. Learn the prompt formula and try each brief online.`},hero:{eyebrow:`Free prompt library · Copy, adapt, create`,title:`Free GPT Image 2.5 Prompts`,description:`Skip the blank page. Start with 12 practical GPT Image 2.5 prompt examples for product shots, portraits, posters, characters, layouts, and targeted edits. Copy any brief for free, replace the bracketed details, and test it in the Lem Gen image workflow.`,primaryCta:`Browse free prompts`,secondaryCta:`Learn the prompt formula`,stats:[{value:`12`,label:`copyable prompts`},{value:`6`,label:`visual workflows`},{value:`Free`,label:`to browse and copy`}]},status:{title:`Prompt library and active model status`,description:`These free GPT Image 2.5 prompts are structured around the capabilities in OpenAI’s September 8, 2026 announcement. Lem Gen’s embedded tool currently uses its available GPT Image 2 workflow. The model name shown inside the generator is always the source of truth; verified GPT Image 2.5 access will be labeled only when it is live.`,sourceLabel:`Read the official release`},library:{eyebrow:`Prompt examples`,title:`12 GPT Image 2.5 prompts you can copy free`,description:`Each prompt is an editable production brief, not a magic keyword list. Replace brand names, copy, colors, subjects, and constraints with details you are authorized to use.`,copy:`Copy prompt`,copied:`Copied`,tryPrompt:`Try this prompt`,items:[{id:`studio-product`,category:`Product`,title:`Premium studio product shot`,useCase:`Ecommerce hero image`,prompt:`Create a premium studio product photograph of [PRODUCT] standing on pale limestone. Three-quarter close-up, camera at product height, soft window light from the left, realistic material texture and restrained warm shadows. Use an ivory, charcoal, and [BRAND COLOR] palette. Keep the label spelling exactly “[LABEL TEXT]”. 4:5 composition, clean negative space above the product, no hands, no duplicate objects, no invented badges, no watermark.`},{id:`editorial-portrait`,category:`Portrait`,title:`Natural editorial portrait`,useCase:`Profile or campaign portrait`,prompt:`Create an editorial portrait of [SUBJECT DESCRIPTION] beside a large north-facing window. Waist-up framing with relaxed posture and direct eye contact, 85mm lens feel, soft daylight, natural skin texture, subtle catchlights, neutral wardrobe, and a warm gray studio background. Preserve facial proportions and distinctive features. Avoid plastic skin, heavy retouching, extra fingers, warped jewelry, logos, and text. Output in a vertical 4:5 crop.`},{id:`typography-poster`,category:`Typography`,title:`Event poster with clear text`,useCase:`Poster and social announcement`,prompt:`Design a bold vertical event poster for [EVENT]. Place the exact headline “[HEADLINE]” large at the top, the exact date “[DATE]” below it, and “[LOCATION]” in a small footer. Use a strong three-level type hierarchy, generous margins, one geometric focal shape, and a limited palette of [COLOR 1], [COLOR 2], and cream. Modern editorial design, crisp letterforms, 4:5 aspect ratio. Do not add extra words, fake sponsors, QR codes, or watermarks.`},{id:`food-campaign`,category:`Food`,title:`Appetizing food campaign image`,useCase:`Menu and social creative`,prompt:`Photograph [DISH] on a handmade ceramic plate at a sunlit café table. Show the real ingredients clearly: [INGREDIENTS]. Three-quarter overhead angle, fresh steam, crisp garnish, realistic sauce texture, soft morning light, gentle falloff, and a muted terracotta background. Leave negative space on the right for approved copy. 4:5 crop. No cutlery crossing the food, no impossible ingredients, no text, no hands, no excessive gloss.`},{id:`character-sheet`,category:`Character`,title:`Consistent character sheet`,useCase:`Story and animation reference`,prompt:`Create a clean character turnaround sheet for [CHARACTER]: full-body front view, three-quarter view, side view, back view, and four facial expressions. Preserve the same face, hairstyle, body proportions, clothing construction, color palette, and accessories in every panel. Neutral standing pose, even studio lighting, light gray background, labeled panel spacing but no written labels. Wide 16:9 canvas, no cropped feet, no duplicate limbs, no style drift.`},{id:`book-cover`,category:`Publishing`,title:`Atmospheric book cover`,useCase:`Cover concept`,prompt:`Create a front book-cover concept for a [GENRE] novel titled exactly “[TITLE]” by “[AUTHOR]”. Central visual: [SYMBOL OR SCENE], seen through [COMPOSITION DEVICE]. Mood is [MOOD], with cinematic depth, controlled contrast, and a palette of [COLORS]. Title is the largest element, author name is clearly smaller, both fully legible at thumbnail size. 2:3 portrait layout. No spine, no mockup, no review quotes, no publisher logo, no extra text.`},{id:`transparent-icon`,category:`Design`,title:`Transparent 3D icon set`,useCase:`App and presentation assets`,prompt:`Create a cohesive set of six 3D icons representing [CONCEPTS]. Use rounded geometry, matte [MATERIAL], soft bevels, consistent isometric camera angle, and one [ACCENT COLOR] detail per icon. Arrange the icons in a precise 3-by-2 grid with equal scale and spacing. Transparent background, soft contact shadows contained beneath each icon, no labels, no logos, no border, no cropped objects. Deliver as one square composition.`},{id:`interior-concept`,category:`Interior`,title:`Editorial interior concept`,useCase:`Moodboard and design direction`,prompt:`Visualize a [ROOM TYPE] designed in a calm contemporary style. Include [KEY FURNITURE], limewashed walls, natural oak, woven linen, and brushed metal accents. Eye-level camera from the entrance, balanced asymmetrical composition, believable circulation space, late-afternoon side light, and realistic material joins. Wide 16:9 framing. Keep windows, doors, and furniture at plausible scale; no fisheye distortion, floating objects, people, text, or watermark.`},{id:`background-edit`,category:`Editing`,title:`Replace only the background`,useCase:`Targeted product edit`,prompt:`Edit the uploaded image by replacing only the background with [NEW BACKGROUND]. Keep the main subject, silhouette, pose, crop, camera angle, product geometry, label text, colors, reflections, and all foreground details unchanged. Match the new environment’s light direction and contact shadow to the existing subject without altering the subject itself. Do not add props, remove details, retouch the label, change perspective, or introduce extra text.`}
51,{id:`wardrobe-edit`,category:`Editing`,title:`Change wardrobe, preserve identity`,useCase:`Focused portrait edit`,prompt:`Edit the uploaded portrait by changing only the outfit to [WARDROBE DESCRIPTION]. Preserve the person’s identity, facial features, hairstyle, expression, pose, hands, body proportions, camera position, background, and lighting exactly. Make the new fabric drape naturally over the existing pose with believable seams and shadows. Do not alter age, skin texture, jewelry, framing, or color grade. Add no text or logos.`},{id:`social-ad`,category:`Marketing`,title:`Conversion-focused social ad`,useCase:`Paid social creative`,prompt:`Create a clean 4:5 social ad for [PRODUCT OR SERVICE]. Show one clear hero subject in the lower two-thirds and reserve the top third for the exact headline “[HEADLINE]”. Add one small button-shaped element reading “[CTA]”. Use [BRAND COLORS], high contrast, realistic depth, and a simple visual path from headline to subject to CTA. No fake ratings, no unsupported claims, no extra copy, no platform logo, no watermark.`},{id:`data-infographic`,category:`Information`,title:`Simple three-step infographic`,useCase:`Educational visual`,prompt:`Design a vertical infographic titled exactly “[TITLE]” that explains three steps: “1. [STEP ONE]”, “2. [STEP TWO]”, and “3. [STEP THREE]”. Give each step one simple icon and one short supporting line. Use a clear top-to-bottom reading order, large accessible type, generous white space, [COLOR PALETTE], and consistent line icons. 4:5 layout. Do not invent statistics, sources, logos, extra steps, decorative paragraphs, or fine print.`}]},formula:{eyebrow:`Prompt framework`,title:`Write a visual brief, not a pile of keywords`,description:`The most reusable GPT Image 2.5 prompt format moves from the creative goal to visible decisions, then ends with what must remain fixed. This makes the first generation clearer and later edits easier to diagnose.`,parts:[{number:`01`,title:`Goal and subject`,description:`State what you are making, who or what is central, and where the asset will be used.`},{number:`02`,title:`Composition and camera`,description:`Define crop, viewpoint, focal point, spacing, lens feel, and aspect ratio.`},{number:`03`,title:`Light, material, and style`,description:`Describe observable light direction, surface behavior, palette, and rendering language.`},{number:`04`,title:`Text and constraints`,description:`Quote required words, protect essential details, and exclude specific failure modes.`}],templateLabel:`Reusable template`,template:`Create [ASSET TYPE] for [GOAL]. Main subject: [SUBJECT]. Environment: [SETTING]. Composition: [CROP, ANGLE, SPACING, ASPECT RATIO]. Lighting: [DIRECTION, QUALITY, CONTRAST]. Materials and palette: [DETAILS]. Show the exact text “[COPY]” at [LOCATION]. Preserve [FIXED ELEMENTS]. Avoid [SPECIFIC FAILURES].`},generator:{eyebrow:`Test a prompt`,title:`Move from prompt example to image draft`,description:`Choose “Try this prompt” on any card to load a free GPT Image 2.5 prompt below, customize the bracketed fields, confirm the active model and credit cost, then generate your draft.`,selectedLabel:`Loaded prompt`},guide:{eyebrow:`Better prompting`,title:`Four rules for more controllable results`,description:`Longer is not automatically better. A strong GPT Image 2.5 prompt removes ambiguity and gives every sentence a visible job.`,items:[{title:`Use concrete relationships`,description:`Write “bottle centered on a low stone plinth” instead of disconnected words such as “bottle, stone, premium.”`},{title:`Quote exact visible copy`,description:`Keep text short, put it in quotation marks, and specify location and hierarchy so it can be reviewed precisely.`},{title:`Protect what must not change`,description:`For edits, name the subject, layout, lighting, product geometry, or identity details that must remain fixed.`},{title:`Revise one variable at a time`,description:`Change one material, object, line of copy, or lighting decision per edit so you can tell what improved the result.`}]},pricingTitle:`Choose credits for continued image creation`,pricingNote:`Browsing and copying every GPT Image 2.5 prompt on this page is free. Lem Gen is free to start with account credits, but image generations are not unlimited at zero cost; the generator displays the active model and credit requirement before submission.`,faq:{eyebrow:`Prompt FAQ`,title:`Free GPT Image 2.5 prompt questions`,description:`Practical answers about copying, customizing, testing, editing, and using these prompt examples responsibly.`,items:[{question:`Are these GPT Image 2.5 prompts free to copy?`,answer:`Yes. You can browse, copy, and customize every prompt example on this page without paying. Generating an image is a separate action: Lem Gen offers free starting credits, while continued use depends on the active model, resolution, and credit balance shown in the generator.`},{question:`Is there a free unlimited GPT Image 2.5 prompt generator?`,answer:`The prompt library itself is free and gives you unlimited ways to rewrite the examples. Image generation is not an unlimited zero-cost entitlement. Check the model selector and displayed credit cost before submitting any generation.`},{question:`What is the best GPT Image 2.5 prompt formula?`,answer:`Start with the asset goal and subject, then define composition, environment, lighting, materials, palette, required text, and constraints. For edits, finish by naming both the requested change and every element that must stay unchanged.`},{question:`How long should a GPT Image 2.5 prompt be?`,answer:`Use as many words as needed to resolve visible decisions, but remove adjectives that do not change the image. One compact paragraph is often enough for a new image; focused edits are usually shorter because they should describe one change and the protected details.`},{question:`How do I improve text inside an AI-generated image?`,answer:`Quote the exact copy, keep it short, specify its position and size hierarchy, and explicitly prohibit extra words. Review spelling before style, then correct one text issue per editing turn.`},{question:`Can I use these prompts for image editing?`,answer:`Yes. Use the editing examples as a pattern: say exactly what should change, then list the identity, composition, lighting, text, product, or background details that must remain unchanged.`},{question:`Does Lem Gen currently generate with GPT Image 2.5?`,answer:`The page covers GPT Image 2.5 prompting, but the embedded Lem Gen tool currently uses the available GPT Image 2 workflow. The active model label inside the generator is the source of truth and will only change after provider access has been verified.`},{question:`Can I use images made from these prompts commercially?`,answer:`Your ability to use an output depends on the applicable model and Lem Gen terms, plus your rights to every uploaded image, person, logo, product, trademark, and reference. Replace placeholders with authorized details and review the final asset before publishing.`}]},finalCta:{title:`Turn one free prompt into your own visual brief`,description:`Choose a GPT Image 2.5 prompt, replace the placeholders, and refine one visible decision at a time.`,button:`Return to the prompt library`,generatorLink:`Explore the GPT Image 2.5 generator page`}},J_={locale:`zh`,meta:{title:`GPT Image 2.5 免费提示词:12 个可复制案例 | Lem Gen`,description:`免费复制 12 个 GPT Image 2.5 提示词,覆盖商品、人像、海报、角色与精准编辑。学习提示词公式,并在线试用每个视觉 brief。`},hero:{eyebrow:`免费提示词库 · 复制、改写、创作`,title:`GPT Image 2.5 免费提示词`,description:`不用再面对空白输入框。从 12 个 GPT Image 2.5 提示词案例开始,覆盖商品图、人像、海报、角色、版式与局部编辑。所有提示词均可免费复制,替换方括号里的信息后,即可放进 Lem Gen 图片工作流测试。`,primaryCta:`浏览免费提示词`,secondaryCta:`学习提示词公式`,stats:[{value:`12`,label:`个可复制提示词`},{value:`6`,label:`类视觉工作流`},{value:`免费`,label:`浏览与复制`}]},status:{title:`提示词资料与实际模型状态`,description:`这些 GPT Image 2.5 免费提示词按照 OpenAI 2026 年 9 月 8 日发布的能力方向组织。Lem Gen 内嵌工具目前使用已经接入的 GPT Image 2 工作流;生成器内显示的模型名称始终是实际依据,只有服务商的 GPT Image 2.5 能力完成验证并上线后才会更新标识。`,s
51ourceLabel:`查看官方发布说明`},library:{eyebrow:`提示词案例`,title:`12 个可免费复制的 GPT Image 2.5 提示词`,description:`每一条都是可以继续编辑的制作 brief,不是所谓“魔法关键词”。请把品牌、文案、颜色、人物和限制条件替换成你有权使用的真实信息。`,copy:`复制提示词`,copied:`已复制`,tryPrompt:`试用此提示词`,items:[{id:`studio-product`,category:`商品`,title:`高端棚拍商品主图`,useCase:`电商主视觉`,prompt:`为 [商品] 制作一张高端棚拍商品照片,商品竖立在浅色石灰岩台面上。三分之四近景,镜头与商品等高,左侧柔和窗光,材质纹理真实,暖色阴影克制。使用象牙白、炭黑与 [品牌色] 配色;标签必须准确显示“[标签文字]”。4:5 构图,商品上方保留干净留白;不要出现手、重复商品、虚构徽章或水印。`},{id:`editorial-portrait`,category:`人像`,title:`自然编辑人像`,useCase:`头像或品牌人物照`,prompt:`创作一张 [人物描述] 站在朝北大窗旁的编辑人像。半身构图,姿态放松,直视镜头,85mm 镜头感,柔和自然光,保留真实皮肤纹理与细微眼神光,穿中性色服装,背景为暖灰色影棚。保持五官比例和独特特征;避免塑料皮肤、过度修图、多余手指、扭曲首饰、Logo 与文字。输出 4:5 竖图。`},{id:`typography-poster`,category:`文字版式`,title:`文字清晰的活动海报`,useCase:`海报与社媒通知`,prompt:`为 [活动] 设计一张醒目的竖版海报。顶部以最大字号准确显示标题“[主标题]”,下方显示准确日期“[日期]”,底部小字显示“[地点]”。采用清晰的三级文字层级、充足页边距、一个几何视觉焦点,配色仅用 [颜色 1]、[颜色 2] 和米白。现代编辑设计,字形清楚,4:5 比例;不要增加其他文字、虚构赞助商、二维码或水印。`},{id:`food-campaign`,category:`食品`,title:`有食欲感的食品广告图`,useCase:`菜单与社媒素材`,prompt:`拍摄 [菜品],置于阳光照射的咖啡馆桌面和手工陶盘上。清楚呈现真实食材:[食材列表]。三分之四俯拍角度,有新鲜热气、清爽点缀、真实酱汁质感、柔和晨光与自然明暗过渡,背景为低饱和陶土色。右侧为审核后的文案保留留白,4:5 裁切;餐具不要遮挡食物,不要出现不可能的食材、文字、手或过度油亮。`},{id:`character-sheet`,category:`角色`,title:`一致的角色设定表`,useCase:`故事与动画参考`,prompt:`为 [角色] 制作一张干净的角色转面设定表:全身正面、四分之三面、侧面、背面,以及四种面部表情。每个格子保持完全相同的脸、发型、身体比例、服装结构、配色与配饰。中性站姿,均匀影棚光,浅灰背景,保留清晰分格但不写标签。16:9 横幅,脚部完整;不要出现重复肢体、裁切或风格漂移。`},{id:`book-cover`,category:`出版`,title:`氛围感图书封面`,useCase:`封面概念稿`,prompt:`为一本 [类型] 小说制作正面封面概念,书名必须准确显示“[书名]”,作者名准确显示“[作者]”。核心画面为 [符号或场景],通过 [构图装置] 观看;整体气氛为 [氛围],具有电影感空间层次、可控对比度与 [颜色] 配色。书名是最大元素,作者名明显更小,两者在缩略图下仍清楚。2:3 竖版;不要书脊、样机、评论语、出版社 Logo 或其他文字。`},{id:`transparent-icon`,category:`设计`,title:`透明背景 3D 图标组`,useCase:`应用与演示素材`,prompt:`制作一组六个统一的 3D 图标,分别表达 [概念列表]。使用圆润几何、哑光 [材质]、柔和倒角、统一等距视角,每个图标只保留一个 [强调色] 细节。按精确的三列两行网格排列,尺寸和间距一致。透明背景,每个图标下方只保留局部柔和接触阴影;不要标签、Logo、边框或裁切。输出为一张正方形构图。`},{id:`interior-concept`,category:`室内`,title:`编辑感室内概念图`,useCase:`情绪板与设计方向`,prompt:`呈现一个平静当代风格的 [房间类型]。包含 [关键家具]、石灰刷墙面、天然橡木、编织亚麻与拉丝金属点缀。从入口处以平视镜头拍摄,构图平衡但不对称,动线可信,傍晚侧光,材质连接真实。16:9 横构图;门窗和家具比例必须合理,不要鱼眼畸变、漂浮物、人物、文字或水印。`},{id:`background-edit`,category:`编辑`,title:`只替换图片背景`,useCase:`商品局部编辑`,prompt:`编辑上传图片,只把背景替换成 [新背景]。主体、轮廓、姿势、裁切、镜头角度、商品结构、标签文字、颜色、反光与所有前景细节必须保持不变。让新环境的光线方向和接触阴影自然匹配现有主体,但不要修改主体本身。不要增加道具、删除细节、重绘标签、改变透视或添加文字。`},{id:`wardrobe-edit`,category:`编辑`,title:`换服装但保持人物身份`,useCase:`人像精准编辑`,prompt:`编辑上传人像,只把服装改成 [服装描述]。人物身份、五官、发型、表情、姿势、手部、身体比例、镜头位置、背景与光线必须完全保持。新面料应顺着现有姿势自然垂坠,缝线和阴影可信;不要修改年龄、皮肤纹理、首饰、画面裁切或调色,也不要加入文字与 Logo。`},{id:`social-ad`,category:`营销`,title:`以转化为目标的社媒广告`,useCase:`付费社媒素材`,prompt:`为 [商品或服务] 制作一张干净的 4:5 社媒广告。下方三分之二区域只放一个清晰主角,上方三分之一准确显示标题“[主标题]”,并添加一个小型按钮元素,文字为“[行动按钮]”。使用 [品牌色]、高对比与真实空间层次,视觉路径从标题到主体再到按钮。不要虚构评分、未经证实的承诺、额外文案、平台 Logo 或水印。`},{id:`data-infographic`,category:`信息`,title:`简洁三步信息图`,useCase:`教育型视觉`,prompt:`设计一张竖版信息图,标题准确显示“[标题]”,并说明三个步骤:“1. [步骤一]”“2. [步骤二]”“3. [步骤三]”。每步配一个简单图标与一行简短说明。使用清晰的从上到下阅读顺序、大号易读字体、充足留白、[配色] 与统一线性图标,4:5 版式。不要虚构统计、来源、Logo、额外步骤、装饰性长段落或细小免责声明。`}]},formula:{eyebrow:`提示词框架`,title:`写视觉 brief,不要堆砌关键词`,description:`更易复用的 GPT Image 2.5 提示词应该从创作目标走向可见决策,最后写清不能改变的内容。这样首轮生成更明确,后续编辑也更容易判断问题。`,parts:[{number:`01`,title:`目标与主体`,description:`先说明要制作什么、主角是谁或是什么,以及图片最终用在哪里。`},{number:`02`,title:`构图与镜头`,description:`定义裁切、视角、焦点、留白、镜头感与最终宽高比。`},{number:`03`,title:`光线、材质与风格`,description:`描述可观察的光线方向、表面反应、配色与渲染语言。`},{number:`04`,title:`文字与限制条件`,description:`给必须显示的文字加引号,保护关键细节,并排除具体错误。`}],templateLabel:`通用模板`,template:`为 [目标] 创作一张 [素材类型]。主体:[主体]。环境:[场景]。构图:[裁切、角度、留白、比例]。光线:[方向、软硬、对比]。材质与配色:[细节]。在 [位置] 准确显示“[文案]”。必须保持 [固定元素]。避免 [具体错误]。`},generator:{eyebrow:`测试提示词`,title:`把提示词案例变成图片草稿`,description:`在任意卡片点击“试用此提示词”即可载入下方生成器。替换方括号内容,确认实际模型与积分消耗后,再提交生成。`,selectedLabel:`已载入提示词`},guide:{eyebrow:`提升可控性`,title:`让生成结果更稳定的四条规则`,description:`GPT Image 2.5 提示词并非越长越好。有效提示词会减少歧义,并让每句话都对应一项可见决策。`,items:[{title:`描述具体关系`,description:`写“瓶子居中放在低çŸ
51®çŸ³å°ä¸Šâ€ï¼Œä¸è¦åªå †â€œç“¶å­ã€çŸ³å¤´ã€é«˜çº§æ„Ÿâ€ç­‰å½¼æ­¤åˆ†ç¦»çš„词。`},{title:`给准确文案加引号`,description:`文字尽量短,使用引号,并说明位置和层级,方便逐项检查拼写与版式。`},{title:`保护不能改变的内容`,description:`编辑图片时,明确人物、版式、光线、商品结构或身份特征中必须保持的部分。`},{title:`每轮只改一个变量`,description:`每次只修改一种材质、物体、文案或光线决策,才能判断哪条指令真正改善了结果。`}]},pricingTitle:`选择适合持续创作的积分方案`,pricingNote:`浏览和复制本页全部 GPT Image 2.5 提示词完全免费。Lem Gen 提供账户免费积分开始体验,但图片生成并非零成本无限使用;提交前请以生成器显示的实际模型与积分消耗为准。`,faq:{eyebrow:`提示词常见问题`,title:`GPT Image 2.5 免费提示词 FAQ`,description:`关于复制、改写、测试、图片编辑和合规使用这些提示词案例的直接回答。`,items:[{question:`这些 GPT Image 2.5 提示词可以免费复制吗?`,answer:`可以。本页每个提示词都能免费浏览、复制和改写。生成图片是另一项操作:Lem Gen 提供免费起始积分,后续使用取决于生成器中显示的实际模型、分辨率和积分余额。`},{question:`有免费且无限制的 GPT Image 2.5 提示词生成器吗?`,answer:`本页提示词资料库可以免费使用,你可以无限改写这些案例;但图片生成不是零成本无限权益。提交生成前,请检查模型选择器和页面显示的积分消耗。`},{question:`GPT Image 2.5 最好用的提示词公式是什么?`,answer:`从素材目标和主体开始,再依次写构图、环境、光线、材质、配色、必要文字和限制条件。编辑图片时,最后同时写清需要改变的部分与必须保持的部分。`},{question:`GPT Image 2.5 提示词应该写多长?`,answer:`写到所有关键视觉决策不再含糊即可,同时删除不会真正改变画面的形容词。新图片通常一个紧凑段落就够;局部编辑往往应该更短,只描述一个改动和需要保护的细节。`},{question:`怎样提高 AI 图片中文字的准确度?`,answer:`ç»
51™å‡†ç¡®æ–‡æ¡ˆåŠ å¼•å·ï¼Œå°½é‡ç¼©çŸ­æ–‡å­—ï¼ŒæŒ‡å®šä½ç½®å’Œå­—å·å±‚çº§ï¼Œå¹¶æ˜Žç¡®ç¦æ­¢é¢å¤–æ–‡å­—ã€‚å…ˆæ£€æŸ¥æ‹¼å†™ï¼Œå†åˆ¤æ–­é£Žæ ¼ï¼›æ¯è½®ç¼–è¾‘åªä¿®ä¸€ä¸ªæ–‡å­—é—®é¢˜ã€‚`},{question:`这些提示词可以用于图片编辑吗?`,answer:`可以。参考本页编辑类案例:先明确只需要改变什么,再列出人物身份、构图、光线、文字、商品或背景中必须保持不变的内容。`},{question:`Lem Gen 现在实际使用 GPT Image 2.5 生成吗?`,answer:`本页介绍 GPT Image 2.5 提示词写法,但内嵌的 Lem Gen 工具目前运行已经接入的 GPT Image 2 工作流。生成器内部的实际模型标识是唯一依据,服务商能力完成验证后才会更新。`},{question:`用这些提示词生成的图片可以商用吗?`,answer:`能否商用取决于实际模型和 Lem Gen 条款,以及你对上传图片、人物、Logo、商品、商标和参考素材是否拥有相应权利。请使用有授权的信息替换占位内容,并在发布前人工审核结果。`}]},finalCta:{title:`把一个免费提示词变成你的视觉 brief`,description:`选择一个 GPT Image 2.5 提示词,替换占位内容,每次只优化一项可见决策。`,button:`返回提示词库`,generatorLink:`查看 GPT Image 2.5 生成器页面`}};function Y_(e){return e===`zh`?J_:q_}var X_=P(`/prompts/gpt-image-2-5`)({loader:async()=>{let e=D(),t=Y_(e),{siteAssetBaseUrl:n}=await f_();return{locale:e,content:t,siteAssetBaseUrl:n}},head:({loaderData:e})=>{if(!e)return{};let{locale:t,content:n}=e,r=t_(K_,t),i=t_(`/`,t),a={"@context":`https://schema.org`,"@graph":[{"@type":`CollectionPage`,"@id":`${r}#collection`,name:n.hero.title,url:r,description:n.meta.description,inLanguage:t===`zh`?`zh-CN`:`en-US`,isAccessibleForFree:!0,mainEntity:{"@type":`ItemList`,numberOfItems:n.library.items.length,itemListElement:n.library.items.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.title,description:e.prompt,url:`${r}#${e.id}`}))}},{"@type":`FAQPage`,"@id":`${r}#faq`,mainEntity:n.faq.items.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))},{"@type":`BreadcrumbList`,"@id":`${r}#breadcrumb`,itemListElement:[{"@type":`ListItem`,position:1,name:`Lem Gen`,item:i},{"@type":`ListItem`,position:2,name:n.hero.title,item:r}]}]};return{meta:r_({title:n.meta.title,description:n.meta.description,path:K_,locale:t}),links:n_(K_,t),scripts:[{type:`application/ld+json`,children:o_(a)}]}},component:F(()=>I(()=>import(`./gpt-image-2-5-Cqbcmi_2.js`),__vite__mapDeps([145,1,102,2,4,5,6,7,33,46,47,10,36,37,51,103,55,3,8,9,12,13,35,30,31,32,34,11,14,38,39,16,40,19,41,27,42,43,44,52,17,56,58,60,15,45,48,49,50,53,21,54,57,59,61,62,63,64,65,66,67,68,69,70,71,72,23,73,74,75,76,77,26,78,79,104,87,28,97,84,85,98])),`component`)}),Z_=`/prompts/faymas-ai-prompt`,Q_=`2026-09-18`,$_=`2026-09-18`,ev=`/faymas-ai-prompts/hero-faymas-ai-prompts.webp`,tv=[{id:`golden-hour-sari-portrait`,category:`Portrait`,year:`Golden hour`,title:`Golden-hour sari portrait`,summary:`A warm rooftop portrait with natural fabric texture, believable skin, and a quiet city backdrop.`,image:`/faymas-ai-prompts/golden-hour-sari.webp`,imageAlt:`AI-created preview of a fictional adult woman in a maroon sari at golden hour`,prompt:`Use the uploaded photo as the identity reference. Preserve the same recognizable adult face, facial proportions, skin tone, apparent age, expression, and hair texture. Create a natural rooftop portrait at golden hour. Dress the subject in a tasteful deep-maroon sari with a narrow woven border and small metal earrings. Use warm side light, a softly layered city background, realistic skin texture, gentle wind in the hair, and a chest-up 4:5 composition. Keep the pose relaxed and the hands anatomically correct. Do not reshape the face, lighten the skin, add text, logos, watermark, plastic skin, fantasy jewelry, or extra people.`},{id:`rainy-city-photo`,category:`Street`,year:`Blue hour`,title:`Rainy city street portrait`,summary:`A restrained blue-hour street frame using wet pavement and warm window light instead of neon clichés.`,image:`/faymas-ai-prompts/rainy-street.webp`,imageAlt:`AI-created preview of a fictional adult man on a rainy city street`,prompt:`Use the uploaded portrait as the identity reference. Keep the adult subject’s face, skin tone, age, gaze, hairline, and body proportions unchanged. Place the subject on a quiet rain-soaked city side street at blue hour, wearing a charcoal coat and textured scarf. Light the face with soft overcast sky and one warm shop-window reflection. Show wet pavement, subtle depth, natural raindrops on the coat, and realistic documentary color in a vertical 4:5 frame. Avoid neon signs, cyberpunk styling, dramatic smoke, readable text, brand marks, beauty retouching, watermark, or distorted hands.`},{id:`clean-studio-editorial`,category:`Studio`,year:`Editorial`,title:`Clean studio editorial portrait`,summary:`A simple, professional portrait built from soft light, a cobalt backdrop, and true-to-life facial detail.`,image:`/faymas-ai-prompts/studio-portrait.webp`,imageAlt:`AI-created preview of a fictional adult woman in a cream suit against a cobalt backdrop`,prompt:`Use the uploaded photo as the identity reference. Preserve the adult subject’s exact facial structure, skin tone, apparent age, natural hair, expression, and body shape. Create a polished but believable studio editorial portrait against a muted cobalt-blue seamless backdrop. Style the subject in a clean cream blazer over a matching top. Use a large soft key light from camera left, faint fill, natural catchlights, realistic pores, subtle film grain, and a waist-up 4:5 composition. Keep both hands natural if visible. No face reshaping, excessive makeup, skin smoothing, text, logos, jewelry branding, watermark, or artificial lens flare.`},{id:`road-trip-couple-photo`,category:`Couple`,year:`Road trip`,title:`Sun-faded road-trip couple`,summary:`A relaxed roadside photograph that keeps both adults distinct and avoids campaign-style posing.`,image:`/faymas-ai-prompts/road-trip-couple.webp`,imageAlt:`AI-created preview of a fictional adult couple on a road trip`,prompt:`Use the uploaded couple photo as the identity reference. Preserve exactly two adults, both recognizable faces, their separate skin tones, apparent ages, relative heights, and natural relationship. Place them beside a slightly weathered boxy car on an open road in late-afternoon sun. Dress them in simple c
51otton and denim with no visible brands. Capture an unforced waist-up moment with one person leaning lightly toward the other, natural hands, sun-faded color, mild 35mm grain, and distant dry hills. Do not merge faces, add people, change ethnicity, exaggerate romance, add readable plates, logos, watermark, or fashion-ad polish.`},{id:`night-petrol-station`,category:`Night photo`,year:`Practical light`,title:`Quiet petrol-station night portrait`,summary:`A cinematic night scene grounded by practical light, natural posture, and ordinary roadside detail.`,image:`/faymas-ai-prompts/petrol-station.webp`,imageAlt:`AI-created preview of a fictional adult man at a petrol station at night`,prompt:`Use the uploaded portrait as the identity reference. Preserve the same adult face, skin tone, apparent age, hair, expression, and body proportions. Create a candid night portrait beside a parked car at a quiet petrol station. Use a dark casual jacket, warm overhead practical lights, cool ambient shadows, wet asphalt reflections, and a takeaway cup held naturally. Frame from mid-thigh up in 4:5 with realistic high-ISO texture and restrained cinematic contrast. Keep the location ordinary and believable. No readable signs, fuel brands, dramatic neon, weapons, extra fingers, face beautification, text, logos, or watermark.`},{id:`cafe-friends-candid`,category:`Friends`,year:`Candid`,title:`Warm café friends candid`,summary:`A lively but plausible group photo with separated faces, natural hands, and soft window light.`,image:`/faymas-ai-prompts/cafe-friends.webp`,imageAlt:`AI-created preview of fictional adult friends sharing a candid moment in a cafe`,prompt:`Use the uploaded group photo as the identity reference. Preserve the exact number of adults and keep every face separate, recognizable, and unobstructed. Recreate the group at a warm independent café during late afternoon, seated close enough to share a spontaneous laugh. Use soft window light, practical lamps, ceramic cups, simple casual clothing, natural hand placement, shallow depth of field, and realistic documentary color. Keep the composition candid rather than staged. Do not add or remove people, duplicate faces, fuse hands, add children, readable menus, brand marks, text, logos, watermark, or commercial stock-photo polish.`},{id:`monsoon-balcony-portrait`,category:`Lifestyle`,year:`Monsoon`,title:`Monsoon balcony portrait`,summary:`A soft rainy-day portrait that uses reflected daylight and a simple residential setting.`,image:`/faymas-ai-prompts/golden-hour-sari.webp`,imageAlt:`AI-created style preview for a fictional adult monsoon balcony portrait`,prompt:`Use the uploaded photo as the identity reference and preserve the same recognizable adult face, skin tone, age, hair texture, and proportions. Place the subject on a modest covered balcony during monsoon rain, wearing a slate-blue cotton kurta with minimal jewelry. Use soft reflected daylight, blurred rain beyond the railing, damp leaves, natural skin texture, and a quiet three-quarter portrait. Keep the expression thoughtful and the hands relaxed. Avoid dramatic storm effects, transparent clothing, face reshaping, skin lightening, fantasy architecture, readable text, logos, watermark, or added people.`},{id:`black-and-white-profile`,category:`Monochrome`,year:`B&W`,title:`Window-light black-and-white profile`,summary:`A restrained monochrome portrait with clear tonal separation and no artificial aging effects.`,image:`/faymas-ai-prompts/studio-portrait.webp`,imageAlt:`AI-created style preview for a fictional adult black-and-white studio portrait`,prompt:`Use the uploaded portrait as the identity reference. Preserve the adult subject’s face, skin texture, age, hairline, expression, and body proportions. Create a timeless black-and-white profile portrait near a large window, with the subject turning slightly back toward camera. Use one soft directional light, a plain dark background, gentle shadow detail, realistic micro-contrast, and fine monochrome grain. Crop from the chest up and keep visible hands anatomically correct. No vintage scratches, fake film borders, face slimming, skin smoothing, heavy makeup, text, logos, watermark, or props.`},{id:`mirror-selfie-couple`,category:`Couple`,year:`At home`,title:`Natural at-home mirror photo`,summary:`A casual couple image with a readable pose, ordinary room detail, and controlled reflections.`,image:`/faymas-ai-prompts/road-trip-couple.webp`,imageAlt:`AI-created style preview for a fictional adult couple mirror photograph`,prompt:`Use the uploaded couple photo as the identity reference. Keep exactly two adults, both faces recognizable and separate, with unchanged skin tones, ages, body proportions, and relative height. Recreate them taking a casual mirror photo in a tidy lived-in apartment. Use comfortable neutral clothes, soft morning window light, a simple wooden mirror, and a phone that does not cover either face. Make the reflection physically consistent and the hands natural. No luxury showroom interior, extra people, duplicate limbs, impossible reflection, visible app interface, readable messages, brands, logos, watermark, or face replacement.`},{id:`1980s-film-portrait`,category:`Retro`,year:`1980s`,title:`Understated 1980s film portrait`,summary:`A period-aware portrait that favors believable wardrobe and camera behavior over a generic retro filter.`,image:`/faymas-ai-prompts/rainy-street.webp`,imageAlt:`AI-created style preview for a fictional adult 1980s film portrait`,prompt:`Use the uploaded photo as the identity reference. Preserve the same adult face, facial proportions, skin tone, apparent age, expression, and body shape. Recreate the subject in an understated 1986 neighborhood portrait: a plain knit top, high-waisted trousers, a practical raincoat, older storefronts with blank signs, and a period compact car softly out of focus. Use restrained direct flash mixed with cool dusk, fine 35mm color grain, mild optical softness, and slightly faded highlights. No modern phone, LED display, recent vehicle, neon cyberpunk look, costume styling, text, logos, watermark, or face reshaping.`},{id:`professional-linkedin-portrait`,category:`Professional`,year:`Headshot`,title:`Approachable professional headshot`,summary:`A credible profile photograph with clean light, neutral styling, and no synthetic corporate background.`,image:`/faymas-ai-prompts/petrol-station.webp`,imageAlt:`AI-created style preview for a fictional adult professional headshot`,prompt:`Use the uploaded photo as the identity reference. Keep the adult subject’s face, skin tone, age, hair texture, body proportions, and natural expression unchanged. Create an approachable professional headshot in a real modern office near a window. Use a charcoal overshirt over a plain crew-neck top, soft daylight, a warm neutral wall, subtle depth, realistic skin texture, and a chest-up eye-level composition. Aim for calm competence rather than a broad stock-photo smile. No fake office skyline, business logos, text, watermark, suit-and-tie stereotype, excessive retouching, face slimming, or plastic skin.`},{id:`solo-travel-overlook`,category:`Travel`,year:`Outdoor`,title:`Solo travel overlook portrait`,summary:`An environmental travel image that keeps the person primary while retaining a believable sense of place.`,image:`/faymas-ai-prompts/cafe-friends.webp`,imageAlt:`AI-created style preview for a fictional adult solo travel portrait`,prompt:`Use the uploaded photo as the identity reference. Preserve the same recognizable adult face, skin tone, apparent age, hair, and body proportions. Place the subject at a quiet mountain overlook just after sunrise, wearing a practical rust-colored jacket and small daypack. Use layered blue hills, light morning haze, gentle side light, natural wind, and a knee-up environmental composition. Keep the pose unforced and both hands anatomically correct. No dangerous cliff pose, oversized hiking gear, flags, crowds, fantasy peaks, text, brands, logos, watermark, artificial HDR, or face beautification.`}],nv=tv.map((e,t)=>{let n=[{category:`人像`,title:`黄金时刻纱丽人像`,summary:`用自然面料、真实肤质与安静城市背景完成的暖色屋顶人像。`,imageAlt:`AI 生成的虚构成年女性黄金时刻栗色纱丽人像示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的可辨识脸部、五官比例、肤色、年龄感、表情和发质。生成一张黄金时刻的自然屋顶人像,人物穿得体的深栗色纱丽,带窄织边和小巧金属耳饰。使用温暖侧光、具有层次但柔焦的城市背景、真实皮肤纹理和轻微风吹发丝,采用胸像 4:5 构图。姿势放松,手部结构正确。不要重塑脸部、提亮肤色、添加文字、Logo、水印、塑料皮肤、幻想珠宝或多余人物。`},{category:`街拍`,title:`雨天城市街头人像`,summary:`用湿地反光和暖色窗光完成克制的蓝调时
51刻街拍,避免霓虹套路。`,imageAlt:`AI 生成的虚构成年男性雨天城市街头人像示例`,prompt:`以上传人像作为身份参考,保持成年人物的脸、肤色、年龄、视线、发际线和身体比例不变。让人物穿炭灰色外套和有纹理的围巾,站在蓝调时刻安静、被雨水打湿的城市支路。用阴天柔光和一处暖色橱窗反光照亮脸部,表现湿润路面、自然景深、外套上的真实雨滴和克制的纪实色彩,采用 4:5 竖构图。不要霓虹招牌、赛博朋克、夸张烟雾、可读文字、品牌、美颜、水印或畸形手部。`},{category:`影棚`,title:`简洁影棚编辑人像`,summary:`以柔光、钴蓝背景和真实面部细节构成的简洁职业人像。`,imageAlt:`AI 生成的虚构成年女性米白西装钴蓝背景人像示例`,prompt:`以上传照片作为身份参考,保持成年人物准确的脸部结构、肤色、年龄感、自然头发、表情和体型。生成一张精致但可信的影棚编辑人像,背景为低饱和钴蓝无缝纸,人物穿简洁的米白西装外套与同色内搭。相机左侧使用大面积柔光并轻微补光,保留自然眼神光、真实毛孔、细微胶片颗粒和半身 4:5 构图。手部如出现在画面中必须自然。不要改变脸型、浓妆、磨皮、文字、Logo、品牌珠宝、水印或假光晕。`},{category:`情侣`,title:`阳光褪色的公路情侣照`,summary:`保留两位成年人独立身份、避免广告式摆拍的自然路边照片。`,imageAlt:`AI 生成的虚构成年情侣公路旅行照片示例`,prompt:`以上传情侣照片作为身份参考,只保留两位成年人,保持两张脸独立可辨识,并保持肤色、年龄感、相对身高和自然关系。让他们站在午后开放公路旁一辆略有使用痕迹的方正旧车边,穿无品牌的简洁棉布和牛仔服装。捕捉一位轻靠另一位的自然半身瞬间,手部真实,色彩略微日晒褪色,带轻度 35mm 颗粒和远处干燥山丘。不要融合脸部、添加人物、改变族裔、夸大亲密动作、生成可读车牌、Logo、水印或时装广告质感。`},{category:`夜景`,title:`安静加油站夜景人像`,summary:`用实景灯、自然站姿和普通路边细节完成有电影感但可信的夜景。`,imageAlt:`AI 生成的虚构成年男性夜间加油站人像示例`,prompt:`以上传人像作为身份参考,保持同一个成年人的脸、肤色、年龄感、头发、表情和身体比例。生成一张夜间安静加油站旁的抓拍人像,人物穿深色休闲外套,站在停放的汽车旁,自然拿着外带杯。使用暖色顶灯、冷色环境阴影、湿沥青反光和克制的电影对比度,以 4:5 构图拍到大腿中部,并保留真实高感纹理。场地保持普通可信。不要可读招牌、油站品牌、夸张霓虹、武器、多余手指、美颜、文字、Logo 或水印。`},{category:`朋友`,title:`温暖咖啡馆朋友抓拍`,summary:`脸部彼此独立、手部自然、由柔和窗光构成的可信多人照片。`,imageAlt:`AI 生成的虚构成年朋友咖啡馆抓拍示例`,prompt:`以上传多人照片作为身份参考,保持完全相同的成年人数,让每张脸都独立、清楚、可辨识且无遮挡。把他们安排在傍晚有暖意的独立咖啡馆里,坐得足够近并自然发笑。使用柔和窗光、实景灯、陶瓷杯、简洁休闲服装、自然手部、浅景深和真实纪实色彩。构图应像抓拍而不是摆拍。不要增加或删除人物、复制脸部、融合手部、添加儿童、可读菜单、品牌、文字、Logo、水印或商业图库质感。`},{category:`生活方式`,title:`季风雨阳台人像`,summary:`利用雨天反射光和普通住宅环境完成的柔和人像。`,imageAlt:`AI 生成的虚构成年人季风雨阳台人像风格示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的可辨识脸部、肤色、年龄、发质和身体比例。让人物穿灰蓝色棉质库尔塔和极简饰品,站在季风雨中的普通有顶阳台。使用柔和反射日光、栏杆外虚化雨丝、湿润植物、真实皮肤纹理和安静的四分之三身构图。表情沉静,双手放松。不要夸张暴风雨、透明衣物、脸部重塑、提亮肤色、幻想建筑、可读文字、Logo、水印或多余人物。`},{category:`黑白`,title:`窗光黑白侧面人像`,summary:`有清晰明暗层次、不依赖假做旧效果的克制黑白人像。`,imageAlt:`AI 生成的虚构成年人黑白影棚人像风格示例`,prompt:`以上传人像作为身份参考,保持成年人物的脸、肤质、年龄、发际线、表情和身体比例。让人物站在大窗附近,略微回头看向相机,生成经典黑白侧面人像。使用单一柔和方向光、纯净深色背景、保留阴影细节、真实微对比和细腻黑白颗粒。画面裁到胸部,出现的手必须结构正确。不要旧划痕、假胶片边框、瘦脸、磨皮、浓妆、文字、Logo、水印或多余道具。`}
51,{category:`情侣`,title:`自然居家镜子合照`,summary:`姿势清楚、房间普通、镜面关系正确的轻松情侣照片。`,imageAlt:`AI 生成的虚构成年情侣镜子合照风格示例`,prompt:`以上传情侣照片作为身份参考,只保留两位成年人,确保两张脸独立可辨识,并保持肤色、年龄、身体比例和相对身高不变。把两人重现为在整洁但有人生活的公寓里拍镜子合照,穿舒适的中性色衣服,使用柔和晨间窗光和简单木框镜子。手机不能遮住任何一张脸,镜面关系必须正确,手部自然。不要豪宅样板间、多余人物、重复肢体、错误反射、可见应用界面、可读消息、品牌、Logo、水印或换脸。`},{category:`复古`,title:`克制的 1980 年代胶片人像`,summary:`用可信服装和相机表现替代通用复古滤镜的年代人像。`,imageAlt:`AI 生成的虚构成年人 1980 年代胶片人像风格示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的脸、五官比例、肤色、年龄感、表情和体型。把人物重现为 1986 年社区人像:素色针织上衣、高腰长裤、实用雨衣、招牌空白的旧店铺和背景中轻微虚化的年代小汽车。使用克制直闪混合冷色黄昏光、细腻 35mm 彩色颗粒、轻微镜头柔化和略微褪色高光。不要现代手机、LED 屏、新款汽车、赛博霓虹、戏服感、文字、Logo、水印或脸部重塑。`},{category:`职业形象`,title:`亲和的职业头像`,summary:`光线干净、造型中性、不依赖合成企业背景的可信职业照片。`,imageAlt:`AI 生成的虚构成年人职业头像风格示例`,prompt:`以上传照片作为身份参考,保持成年人物的脸、肤色、年龄、发质、身体比例和自然表情不变。在真实现代办公室窗边生成一张亲和职业头像。人物穿炭灰色衬衫外套和素色圆领上衣,使用柔和日光、暖中性色墙面、轻微景深、真实皮肤纹理和平视胸像构图。目标是沉静可信,而不是图库式大笑。不要虚构办公室天际线、企业 Logo、文字、水印、西装领带刻板造型、过度修图、瘦脸或塑料皮肤。`},{category:`旅行`,title:`独自旅行山景人像`,summary:`人物仍是主体,同时保留可信地点感的环境旅行照片。`,imageAlt:`AI 生成的虚构成年人独自旅行山景人像风格示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的可辨识脸部、肤色、年龄、头发和身体比例。让人物穿实用的铁锈色夹克、背小型日用背包,站在日出后的安静山景观景点。使用层叠蓝色山丘、清晨薄雾、柔和侧光、自然风动和膝盖以上的环境构图。姿势不刻意,双手结构正确。不要危险悬崖姿势、夸张登山装备、旗帜、人群、幻想山峰、文字、品牌、Logo、水印、虚假 HDR 或美颜。`}];return{...e,...n[t]}}),rv={locale:`en`,meta:{title:`Faymas AI Prompt Alternatives: 12 Photo Prompts | Lem Gen`,description:`Copy 12 original Faymas AI prompt alternatives for portraits, couples, 1980s photos, travel and social images. Upload a photo and customize each prompt in Lem Gen.`},hero:{image:ev,eyebrow:`Independent Faymas AI prompt alternatives`,title:`12 Original Faymas AI Prompt Alternatives for Photos`,description:`Looking for a Faymas AI prompt you can adapt instead of a vague one-line caption? This independent collection gives you complete identity, scene, lighting, composition, and exclusion instructions for portraits, couples, retro photos, travel, and social images.`,primaryCta:`Browse all 12 prompts`,secondaryCta:`Try a prompt with your photo`,disclosure:`All previews show fictional adults created with AI. Faymas and Faymas.in are third-party names; Lem Gen is not affiliated with or endorsed by them. These prompts are original Lem Gen alternatives, not copied marketplace prompts.`,imageAlt:`AI-created collage of fictional adults showing six original photo prompt directions`,stats:[{value:`12`,label:`original prompts`},{value:`6`,label:`photo directions`},{value:`Free`,label:`to copy`}]}
51,answer:{title:`What is a useful Faymas AI photo prompt?`,description:`A useful prompt does more than name a mood. It identifies what must remain unchanged, describes one scene and light source, sets the framing, and excludes the most common failure modes. Choose a complete template below, keep the identity clause, and replace only the scene details you actually want to change.`},library:{eyebrow:`Copy-and-customize library`,title:`Faymas-style photo prompt alternatives by scene`,description:`Every template is written from scratch. The prompt, preview, and troubleshooting instructions stay on the same page so you can compare the visible result with the words that control it.`,copy:`Copy prompt`,copied:`Copied`,tryPrompt:`Use in Lem Gen`,promptLabel:`Full prompt`,items:tv},authenticity:{eyebrow:`Prompt anatomy`,title:`Five controls that make a photo prompt usable`,description:`Short trend prompts often leave identity and anatomy to chance. These controls make the intended change explicit.`,items:[{title:`Identity first`,description:`Lock the recognizable face, skin tone, age, hair, body proportions, number of people, and relative height before changing style.`},{title:`One clear scene`,description:`Choose one location and moment. Combining a studio, rainy street, festival, and road trip usually weakens all four.`},{title:`Visible light source`,description:`Name window light, overcast sky, direct flash, golden sun, or practical lamps so the shadows have a reason.`},{title:`Camera and framing`,description:`State portrait orientation, crop, viewpoint, depth, grain, or motion only when it supports the scene.`},{title:`Failure exclusions`,description:`For groups and reflections, explicitly block extra people, fused faces, impossible hands, readable fake text, logos, and watermarks.`}]},howTo:{eyebrow:`Three-step workflow`,title:`How to use a Faymas-style prompt with your photo`,description:`Use a source image you are allowed to edit, keep the identity constraints intact, and change one variable at a time.`,steps:[{title:`Choose a compatible source`,description:`Start with a clear adult portrait or group photo. Match the number of people and approximate crop to the template you select.`},{title:`Personalize the visible details`,description:`Change the garment, location, weather, or color while preserving the identity, anatomy, and exclusion clauses.`},{title:`Inspect before sharing`,description:`Check every face, hand, reflection, sign, and brand mark. Correct one concrete problem instead of adding more style words.`}]},generator:{eyebrow:`Try it online`,title:`Upload a photo and start from a complete prompt`,description:`Select a prompt above, upload a photo you own or may edit, and use the image editor to keep the person while changing the scene.`,selectedLabel:`Selected prompt`,uploadNote:`Review the active model, credit cost, and final output before saving or sharing.`},related:{title:`Related Lem Gen prompt resources`,links:[{href:`/prompts/portrait-photography`,title:`Portrait photography prompts`,description:`Explore more lighting, lens, pose, and identity controls.`},{href:`/prompts/1980s-photo`,title:`1980s photo prompts`,description:`Use period-specific prompts for portraits, couples, and family photos.`},{href:`/prompts/gpt-image-2-5`,title:`GPT Image 2.5 prompts`,description:`Copy structured prompts for image generation and precise edits.`}]},faq:{eyebrow:`Faymas AI prompt FAQ`,title:`Common questions before you copy a prompt`,description:`Straight answers about the name, the templates, and using your own photo safely.`,items:[{question:`Is Lem Gen affiliated with Faymas or Faymas.in?`,answer:`No. Faymas and Faymas.in are third-party names. This page is an independent Lem Gen resource created for people comparing or searching for Faymas AI photo prompts. The prompts and preview images here are original and are not copied from Faymas creators or marketplace listings.`},{question:`What should I include in a Faymas AI photo prompt?`,answer:`Start with identity preservation, then specify one scene, wardrobe, light source, composition, camera character, and a short list of exclusions. For couples or groups, state the exact number of adults and require every face to remain separate and recognizable.`},{question:`How do I keep my face recognizable in an AI photo?`,answer:`Put the identity instructions at the beginning. Preserve facial proportions, skin tone, apparent age, expression, hairline, and body proportions; then tell the editor exactly which scene or clothing details may change. A clear, front-visible source face also helps.`},{question:`Can I use these prompts in other AI image tools?`,answer:`Yes. They are plain-language templates and can be adapted to image editors that accept a reference photo. Upload rules, model behavior, safety policies, and output quality vary, so keep the identity and exclusion clauses while adju
51sting the tool-specific format.`},{question:`Why do couple or group photos produce mixed faces or extra hands?`,answer:`Crowded or overlapping source photos make separation harder. State the exact number of adults, preserve each person independently, keep faces unobstructed, and request natural hands. If one error remains, correct that error specifically instead of rewriting the whole scene.`}]}},iv={...rv,locale:`zh`,meta:{title:`Faymas AI 提示词替代方案:12 个原创照片模板 | Lem Gen`,description:`免费复制 12 个原创 Faymas AI 照片提示词替代方案,覆盖人像、情侣、80 年代、旅行和社交照片;上传图片即可在 Lem Gen 中修改。`},hero:{image:ev,eyebrow:`独立制作的 Faymas AI 提示词替代方案`,title:`12 个原创 Faymas AI 照片提示词替代方案`,description:`如果你需要的不是一句模糊风格词,而是可以直接修改的完整 Faymas AI 照片提示词,这组模板会分别写清身份、场景、光线、构图和排除项,覆盖人像、情侣、复古、旅行和社交照片。`,primaryCta:`查看 12 个提示词`,secondaryCta:`上传照片试用`,disclosure:`所有预览图均为 AI 生成的虚构成年人。Faymas 与 Faymas.in 为第三方名称;Lem Gen 与其不存在隶属或背书关系。本页内容是 Lem Gen 原创替代方案,不复制平台创作者提示词。`,imageAlt:`AI 生成的六种原创照片提示词方向虚构成年人拼图`,stats:[{value:`12`,label:`原创提示词`},{value:`6`,label:`照片方向`},{value:`免费`,label:`浏览和复制`}]},answer:{title:`什么样的 Faymas AI 照片提示词真正有用?`,description:`有用的提示词不只写氛围,而会先说明哪些内容必须保持不变,再描述一个场景和光源、限定构图,并排除常见错误。你可以从下方选择完整模板,保留身份约束,只替换自己确实想改变的场景细节。`},library:{eyebrow:`可复制、可修改的提示词库`,title:`按场景整理的 Faymas 风格照片提示词替代方案`,description:`所有模板均为原创。提示词、预览图和排错说明放在同一页,方便直接对照画面与控制画面的文字。`,copy:`复制提示词`,copied:`已复制`,tryPrompt:`在 Lem Gen 使用`,promptLabel:`完整提示词`,items:nv},authenticity:{eyebrow:`提示词结构`,title:`让照片提示词可控的五个要点`,description:`简短趋势词经常把身份和手部结构交给随机结果。下面五项能把预期变化写清楚。`,items:[{title:`先锁定身份`,description:`改变风格之前先保持脸部、肤色、年龄、头发、身体比例、人物数量和相对身高。`},{title:`只选一个场景`,description:`确定一个地点和时刻;同时混入影棚、雨街、节日和公路旅行,往往会让每个方向都变弱。`},{title:`写明可见光源`,description:`写清窗光、阴天、直闪、黄金时刻或实景灯,让阴影和色彩有真实依据。`},{title:`限定镜头与构图`,description:`写明横竖方向、裁切、视角、景深、颗粒或动态,但只保留真正服务场景的参数。`},{title:`排除失败项`,description:`多人和镜面场景要明确禁止多余人物、融合脸、错误手部、可读伪文字、Logo 和水印。`}]},howTo:{eyebrow:`三步工作流`,title:`如何用自己的照片套用 Faymas 风格提示词`,description:`使用你有权编辑的原图,保留身份约束,每次只改变一个变量。`,steps:[{title:`选择匹配的原图`,description:`从清晰的成年人人像或合照开始,让人物数量和大致裁切与所选模板相匹配。`},{title:`修改可见细节`,description:`可以替换服装、地点、天气或颜色,但要保留身份、结构和排除项。`},{title:`分享前逐项检查`,description:`检查每张脸、每只手、镜面、招牌和品牌;出现问题时只修正一个明确错误。`}]},generator:{eyebrow:`在线试用`,title:`上传照片,从完整提示词开始`,description:`在上方选择提示词,上传你拥有或获准编辑的照片,通过图片编辑模式保留人物并替换场景。`,selectedLabel:`当前提示词`,uploadNote:`保存或分享前,请核对实际模型、积分消耗和最终输出。`},related:{title:`Lem Gen 相关提示词资源`,links:[{href:`/prompts/portrait-photography`,title:`人像摄影提示词`,description:`继续探索光线、镜头、姿势和身份控制。`},{href:`/prompts/1980s-photo`,title:`1980 年代照片提示词`,description:`使用适合人像、情侣和家庭照片的年代化模板。`},{href:`/prompts/gpt-image-2-5`,title:`GPT Image 2.5 提示词`,description:`复制适合图片生成和精准编辑的结构化提示词。`}]},faq:{eyebrow:`Faymas AI 提示词问答`,title:`复制提示词前的常见问题`,description:`直接说明名称关系、模板用法和个人照片编辑注意事项。`,items:[{question:`Lem Gen 与 Faymas 或 Faymas.in 有合作关系吗?`,answer:`没有。Faymas 与 Faymas.in 是第三方名称。本页是 Lem Gen 为搜索和比较 Faymas AI 照片提示词的用户独立制作的资源,页面中的提示词和预览图均为原创,不复制 Faymas 创作者或市场商品。`},{question:`Faymas AI 照片提示词应该包含什么?`,answer:`先写身份保持,再写一个场景、服装、光源、构图、相机质感和简短排除项。情侣或多人照片应明确成年人数,并要求每张脸独立、清楚、可辨识。`},{question:`怎样让 AI 照片保持像本人?`,answer:`把身份约束放在开头,要求保持五官比例、肤色、年龄感、表情、发际线和身体比例,再明确哪些场景或服装可以变化。脸部清晰、无遮挡的原图也更有利。`},{question:`这些提示词能用于其他 AI 图片工具吗?`,answer:`可以。它们是自然语言模板,可适配支持参考图的图片编辑工具。不同服务的上传规则、模型表现、安全政策和输出质量不同,迁移时应保留身份和排除条款,并调整工具专用格式。`},{question:`为什么情侣或合照容易混脸、多手?`,answer:`拥挤或人物互相遮挡的原图更难分离。请写清成年人数,要求分别保持每个人,确保脸部无遮挡,并指定自然手部。如果只剩一个错误,针对该错误修改,不要重写整个场景。`}]}};function av(e){return e===`zh`?iv:rv}var ov=P(`/prompts/faymas-ai-prompt`)({loader:async()=>{let e=D(),t=av(e),{siteAssetBaseUrl:n}=await f_();return{locale:e,content:t,siteAssetBaseUrl:n}},head:({loaderData:e})=>
51{if(!e)return{};let{locale:t,content:n}=e,r=t_(Z_,t),i=t_(`/`,t),a=e_(ev),o=t===`zh`?`zh-CN`:`en-US`,s={"@context":`https://schema.org`,"@graph":[{"@type":`CollectionPage`,"@id":`${r}#collection`,name:n.hero.title,url:r,description:n.meta.description,inLanguage:o,datePublished:Q_,dateModified:$_,isAccessibleForFree:!0,image:a,primaryImageOfPage:{"@type":`ImageObject`,contentUrl:a,width:1536,height:1024,caption:n.hero.imageAlt},author:{"@type":`Organization`,name:`Lem Gen`,url:i},mainEntity:{"@type":`ItemList`,numberOfItems:n.library.items.length,itemListElement:n.library.items.map((e,t)=>({"@type":`ListItem`,position:t+1,url:`${r}#${e.id}`,item:{"@type":`CreativeWork`,name:e.title,description:e.summary,text:e.prompt,image:e_(e.image),inLanguage:o}}))}},{"@type":`HowTo`,"@id":`${r}#how-to`,name:n.howTo.title,description:n.howTo.description,inLanguage:o,step:n.howTo.steps.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e.title,text:e.description}))},{"@type":`FAQPage`,"@id":`${r}#faq`,inLanguage:o,mainEntity:n.faq.items.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))},{"@type":`BreadcrumbList`,"@id":`${r}#breadcrumb`,itemListElement:[{"@type":`ListItem`,position:1,name:t===`zh`?`Lem Gen 首页`:`Lem Gen Home`,item:i},{"@type":`ListItem`,position:2,name:n.hero.title,item:r}]}]};return{meta:r_({title:n.meta.title,description:n.meta.description,path:Z_,image:ev,locale:t}).concat([{name:`robots`,content:`index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1`},{name:`googlebot`,content:`index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1`}]),links:n_(Z_,t),scripts:[{type:`application/ld+json`,children:o_(s)}]}},component:F(()=>I(()=>import(`./faymas-ai-prompt-WteBvN0E.js`),__vite__mapDeps([146,1,147,102,2,4,5,6,7,33,46,47,10,36,37,14,12,51,126,58,30,3,8,9,31,32,34,11,13,35,38,39,16,40,19,41,27,42,43,44,60,45,48,49,50,52,53,21,54,55,17,56,57,59,61,62,15,63,64,65,66,67,68,69,70,71,72,23,73,74,75,76,77,26,78,79,114,87,28,97,84,85])),`component`)}),sv=`/prompts/1980s-photo`,cv=`2026-09-14`,lv=`2026-09-14`,uv=`/1980s-photo-prompts/hero-1980s-photo-collage.webp`,dv=[{id:`1985-yearbook-portrait`,category:`Studio portrait`,year:`1985`,title:`Classic 1985 yearbook portrait`,summary:`A restrained school-studio portrait with a mottled backdrop, soft direct flash, and believable print texture.`,image:`/1980s-photo-prompts/1985-yearbook-portrait.webp`,imageAlt:`AI-created preview of a fictional adult in a 1985 yearbook-style studio portrait`,prompt:`Use the uploaded photo as the identity reference. Create a realistic school-studio portrait photographed in 1985. Preserve the same recognizable adult face, facial proportions, skin tone, apparent age, expression, and gaze. Restyle only the hair, clothing, background, and photographic finish: softly feathered period hair, a modest cobalt knit sweater, small plain earrings, and a mottled blue-gray backdrop. Use a chest-up centered composition, direct soft studio flash, natural skin texture, fine 35mm color-film grain, mild optical softness, and slightly faded print color. Keep comfortable space above the hair. Do not beautify or reshape the face. No modern clothing, text, logos, watermark, plastic skin, or exaggerated retro effects.`},{id:`1987-birthday-snapshot`,category:`Friends`,year:`1987`,title:`Candid apartment birthday snapshot`,summary:`A warm, imperfect compact-camera moment with household tungsten light and on-camera flash.`,image:`/1980s-photo-prompts/1987-birthday-snapshot.webp`,imageAlt:`AI-created preview of fictional adult friends at a 1987 apartment birthday party`,prompt:`Use the uploaded group photo as the identity reference. Preserve the exact number of adults and keep every face separate and recognizable. Recreate the moment as a candid apartment birthday snapshot taken in 1987. Place the group around a homemade cake in a modest wood-paneled living room with a floral sofa, table lamp, paper decorations, and an analog stereo. Use relaxed period-correct cotton shirts, knitwear, and denim. Photograph with a consumer 35mm compact camera: direct on-camera flash mixed with warm tungsten light, gentle flash falloff, fine grain, slightly faded color, and imperfect candid framing. Keep faces visible and hands natural. Do not add or remove people. No children, modern electronics, readable text, brands, logos, watermark, or polished studio lighting.`},{id:`1986-road-trip-couple`,category:`Couples`,year:`1986`,title:`Sun-faded road-trip couple photo`,summary:`A relaxed personal travel photo with an era-correct sedan, open landscape, and faded afternoon highlights.`,image:`/1980s-photo-prompts/1986-road-trip-couple.webp`,imageAlt:`AI-created preview of a fictional adult couple in a 1986 road-trip photograph`,prompt:`Use the uploaded couple photo as the identity reference. Preserve both adults, their separate faces, skin tones, apparent ages, relative heights, and natural relationship. Create a believable road-trip photograph from 1986. Pose them casually against a boxy mid-1980s sedan beside a desert lake, with red-rock hills and an open road behind them. Dress them in plain white cotton tops and high-waisted faded denim, adapting hair length and texture into natural period volume. Use a knees-up 4:5 composition, hard late-afternoon sunlight, softly faded highlights, subtle 35mm grain, and gentle lens halation. Keep natural hands and an unforced smile. No modern vehicle, smartphone, contemporary accessories, logos, text, watermark, fashion-campaign polish, or face reshaping.`}
51,{id:`1984-arcade-friends`,category:`Nightlife`,year:`1984`,title:`Direct-flash arcade friends`,summary:`A lively arcade snapshot that balances facial flash with muted colored reflections instead of cyberpunk styling.`,image:`/1980s-photo-prompts/1984-arcade-friends.webp`,imageAlt:`AI-created preview of two fictional adult friends in a 1984 video arcade`,prompt:`Use the uploaded photo as the identity reference and preserve both adults exactly, without blending or replacing either face. Place them in a dim 1984 video arcade while they play one cabinet game together. Use period-correct denim jackets, simple crew-neck shirts, patterned carpet, and softly glowing game cabinets with no readable titles. Frame a candid medium shot with both faces visible and hands naturally using the controls. Mix direct compact-camera flash on the faces with restrained cyan, amber, and magenta reflections in the room. Add authentic high-speed color-film grain, slightly lifted black levels, mild motion blur, and natural skin texture. No modern gaming hardware, LED strips, cyberpunk exaggeration, readable text, logos, watermark, plastic skin, or extra people in the foreground.`},{id:`1988-hong-kong-street`,category:`Street photography`,year:`1988`,title:`Rainy Hong Kong night portrait`,summary:`A documentary street frame with wet pavement, food-stall steam, mixed practical light, and period city details.`,image:`/1980s-photo-prompts/1988-hong-kong-street.webp`,imageAlt:`AI-created preview of a fictional adult in a rainy 1988 Hong Kong street photograph`,prompt:`Use the uploaded portrait as the identity reference. Preserve the adult subject’s recognizable face, skin tone, apparent age, expression, and body proportions. Recreate the scene as a documentary street photograph made in Hong Kong in 1988. Place the subject beside a period red taxi on a wet neighborhood street with older facades, food-stall steam, and dense vertical shop signs containing only abstract, unreadable markings. Add a practical red windbreaker and high-waisted dark trousers while respecting the original hair texture. Use a medium-wide 4:5 frame, mixed fluorescent storefront light, warm sodium streetlight, reflected reds and greens, fine high-ISO film grain, and slight motion blur. No modern skyline, smartphones, LED billboards, cyberpunk fantasy, readable text, logos, or watermark.`},{id:`1983-disco-snapshot`,category:`Party`,year:`1983`,title:`Unposed disco dance-floor snapshot`,summary:`A compact-camera party photo with direct facial flash, satin highlights, and believable motion blur.`,image:`/1980s-photo-prompts/1983-disco-snapshot.webp`,imageAlt:`AI-created preview of a fictional adult dancing in a 1983 disco club`,prompt:`Use the uploaded photo as the identity reference. Keep the same recognizable adult face, age, skin tone, body proportions, and natural expression. Create an unposed dance-floor photograph taken in a small disco club in 1983. Dress the subject in a petrol-blue satin shirt and black pleated trousers, adapting the styling naturally to the person. Capture a joyful mid-dance gesture in a three-quarter-body 4:5 frame. Behind the subject, show a mirror ball, mirrored wall, amber practical lights, and a softly blurred crowd. Use direct on-camera flash on the face, warm flash falloff, satin highlights, visible color-film grain, slightly faded blacks, and mild motion blur. No modern nightclub screens, LED walls, contemporary fashion, text, logos, watermark, plastic skin, or staged fashion posing.`},{id:`1986-office-portrait`,category:`Professional`,year:`1986`,title:`1986 professional office portrait`,summary:`A composed workplace portrait surrounded by era-correct office equipment and warm wood textures.`,image:`/1980s-photo-prompts/1986-office-portrait.webp`,imageAlt:`AI-created preview of a fictional adult in a professional 1986 office portrait`,prompt:`Use the uploaded photo as the identity reference. Preserve the subject’s exact recognizable adult face, facial asymmetry, skin tone, apparent age, expression, and body proportions. Create a professional environmental portrait photographed in 1986. Seat the subject at a warm wooden desk in a period office with paper folders, venetian blinds, a beige CRT computer with a blank screen, and a rotary telephone. Use a charcoal structured-shoulder blazer over an ivory blouse, adapted to the subject. Frame a waist-up eye-level portrait with soft window light and restrained bounce flash. Add natural skin texture, fine color-film grain, and mild analog softness. No laptop, smartphone, flat-screen display, modern minimalist furniture, readable text, logos, watermark, or face beautification.`}
51,{id:`1984-roller-rink`,category:`Leisure`,year:`1984`,title:`Pastel roller-rink portrait`,summary:`A playful full-body rink photograph with period quad skates, gentle flash, and scuffed floor texture.`,image:`/1980s-photo-prompts/1984-roller-rink.webp`,imageAlt:`AI-created preview of a fictional adult at a pastel 1984 roller rink`,prompt:`Use the uploaded photo as the identity reference. Preserve the same recognizable adult face, skin tone, apparent age, body shape, and natural smile. Place the subject beside the rail of a pastel indoor roller rink in 1984, wearing a sky-blue ringer shirt, coral athletic shorts, tall white socks, and white quad skates. Keep the pose comfortable and non-sexualized. Show the full body and both skates in a 4:5 frame, with softly blurred skaters and period geometric wall colors behind. Use even overhead rink light with mild direct flash, softly faded color, subtle 35mm grain, and a realistically scuffed wood floor. No modern inline skates, LED strips, smartphones, text, logos, watermark, distorted anatomy, or plastic skin.`},{id:`1987-formal-dance-couple`,category:`Formal portrait`,year:`1987`,title:`Formal dance couple portrait`,summary:`A soft-flash event portrait with period formalwear, a simple fabric backdrop, and natural facial detail.`,image:`/1980s-photo-prompts/1987-formal-dance-couple.webp`,imageAlt:`AI-created preview of a fictional adult couple at a 1987 formal dance`,prompt:`Use the uploaded couple photo as the identity reference. Preserve exactly two adults with separate recognizable faces, skin tones, apparent ages, relative heights, and natural expressions. Create a formal dance portrait photographed in 1987. Dress one person in a tasteful lilac taffeta outfit with period volume and the other in a charcoal broad-shouldered suit, adapting presentation without changing identity. Pose them comfortably against midnight-blue fabric with an understated balloon arrangement and warm out-of-focus event lights. Use a waist-up 4:5 composition, soft direct event flash, fine analog grain, mild print softness, and natural skin texture. Keep hands believable and faces unobstructed. No modern wedding styling, excessive retouching, text, logos, watermark, face blending, or added people.`},{id:`1982-family-album`,category:`Family`,year:`1982`,title:`Multigenerational family-album photo`,summary:`A warm home portrait with clear individual faces, everyday clothing, and restrained analog imperfections.`,image:`/1980s-photo-prompts/1982-family-album.webp`,imageAlt:`AI-created preview of five fictional adults in a multigenerational 1982 family photograph`,prompt:`Use the uploaded family photo as the identity reference. Preserve the exact number of adults, every individual face, skin tone, apparent age, relative height, and family arrangement. Do not add, remove, duplicate, or blend anyone. Recreate the group as a family-album portrait taken at home in 1982. Use a modest living room with lace curtains, wood furniture, floral upholstery, a ceramic tea set, and a small CRT television. Adapt each person into understated period knitwear, blouses, shirts, or trousers while respecting their presentation. Arrange people at different heights with unobstructed faces and natural hands. Mix soft window daylight with a small on-camera flash, slight color fading, and fine 35mm grain. No children unless present in the reference, modern electronics, readable text, brands, logos, watermark, or commercial polish.`},{id:`1988-tokyo-street`,category:`Street portrait`,year:`1988`,title:`Tokyo neighborhood at dusk`,summary:`A calm environmental portrait with cool dusk, warm storefront light, utility lines, and period street texture.`,image:`/1980s-photo-prompts/1988-tokyo-street.webp`,imageAlt:`AI-created preview of a fictional adult in a 1988 Tokyo neighborhood street portrait`,prompt:`Use the uploaded portrait as the identity reference. Preserve the same recognizable adult face, skin tone, apparent age, expression, hairline, and body proportions. Create a documentary neighborhood portrait photographed in Tokyo in 1988. Place the subject on a compact shopping street with bicycles, older storefronts, overhead utility lines, and period vending fixtures with blank panels. Dress the subject in a charcoal bomber jacket over a cream knit shirt and pleated trousers, adapting the fit naturally. Use a medium-wide 4:5 environmental frame at cool dusk, mixed with warm shop-window light and restrained direct flash. Add realistic skin, worn pavement texture, subtle high-ISO grain, and slight halation. No modern skyline, smartphones, LED screens, cyberpunk styling, anime treatment, readable text, logos, or watermark.`},{id:`1986-seaside-holiday`,category:`Holiday`,year:`1986`,title:`Golden-hour seaside holiday photo`,summary:`A relaxed vacation snapshot with windblown hair, cotton and denim, period street details, and warm side light.`,image:`/1980s-photo-prompts/1986-seaside-holiday.webp`,imageAlt:`AI-created preview of a fictional adult in a 1986 seaside holiday photograph`,prompt:`Use the uploaded photo as the identity reference. Preserve the subject’s recognizable adult face, skin tone, apparent age, expression, body proportions, and natural hair texture. Create a candid seaside holiday photograph from 1986. Show the subject walking along a palm-lined promenade beside a low seawall, with a soft blue ocean, period bicycles, and distant compact cars. Use a coral cotton shirt with rolled sleeves, a plain white top, and high-waisted denim shorts, adapted without changing identity. Frame a knees-up 4:5 walking moment in warm golden side light, with natural wind movement, softly faded highlights, realistic skin, and fine 35mm grain. No modern cars, smartphones, influencer posing, oversexualized styling, text, logos, watermark, CGI, or beauty retouching.`}],fv=[{...dv[0],category:`影棚人像`,title:`1985 年经典毕业纪念照`,summary:`低调的学校影棚人像,结合斑驳背景、柔和直闪与可信的旧相纸质感。`,imageAlt:`AI 生成的虚构成年人 1985 年毕业纪念照风格示例`,prompt:`以上传照片作为人物身份参考,生成一张拍摄于 1985 年的真实学校影棚纪念照。保持同一个成年人的可辨识五官、脸部比例、肤色、年龄感、表情和视线;只调整发型、服装、背景和摄影质感。使用自然蓬松的年代发型、低调的钴蓝色针织衫、小巧无品牌耳饰和蓝灰色斑驳背景。采用居中的胸像构图,头顶留出舒适空间,以柔和的正面影棚闪光拍摄,保留真实皮肤纹理、细腻的 35mm 彩色胶片颗粒、轻微镜头柔化和略微褪色的相纸色彩。不要美化或重塑脸部;不要现代服装、文字、Logo、水印、塑料皮肤或夸张复古滤镜。`},{...dv[1],category:`朋友聚会`,title:`1987 年公寓生日抓拍`,summary:`家用钨丝灯与机顶闪光混合形成的温暖、不完美随手拍。`,imageAlt:`AI 生成的虚构成年朋友 1987 年公寓生日聚会示例`,prompt:`以上传的多人照片作为身份参考,保持完全相同的成年人数,让每张脸都独立、清楚、可辨识。把这一刻重现为 1987 年公寓生日聚会的随手抓拍:大家围在自制蛋糕旁,身处带木墙板、碎花沙发、台灯、纸质装饰和老式音响的普通客厅ã€
51‚服装使用符合年代的棉质衬衫、针织衫与牛仔布。以家用 35mm 傻瓜相机拍摄,机顶直闪与暖色钨丝灯混合,保留闪光衰减、细颗粒、略微褪色和不刻意的构图。所有脸都要可见,手部自然;不要增加或删除人物。不要儿童、现代电子产品、可读文字、品牌、Logo、水印或精致影棚光。`},{...dv[2],category:`情侣`,title:`1986 年阳光褪色的公路旅行照`,summary:`带年代轿车、开阔风景与午后褪色高光的自然旅行照片。`,imageAlt:`AI 生成的虚构成年情侣 1986 年公路旅行照片示例`,prompt:`以上传的情侣照片作为身份参考,保持两位成年人各自独立的脸、肤色、年龄感、相对身高和自然关系。生成一张可信的 1986 年公路旅行照片:两人随意靠在一辆方正的 1980 年代中期轿车旁,背景是沙漠湖泊、红色岩丘和公路。穿简洁白色棉质上衣与高腰褪色牛仔裤,在不改变原有发长和发质的前提下增加自然的年代蓬松感。采用膝盖以上的 4:5 构图、偏硬的午后阳光、柔和褪色高光、细微 35mm 颗粒和轻度光晕。手部自然,笑容不要摆拍。不要现代汽车、手机、当代配饰、Logo、文字、水印、广告大片质感或脸部重塑。`},{...dv[3],category:`夜生活`,title:`1984 年游戏厅直闪合照`,summary:`用面部直闪配合克制的彩色反光,避免做成赛博朋克场景。`,imageAlt:`AI 生成的两位虚构成年人 1984 年游戏厅照片示例`,prompt:`以上传照片作为身份参考,完整保留两位成年人,不要融合或替换任何一张脸。让他们置身于 1984 年光线昏暗的电子游戏厅,共同操作一台街机。使用符合年代的牛仔夹克、素色圆领上衣、花纹地毯和柔和发光的街机柜,屏幕和机身不要出现可读标题。采用两张脸都清楚可见的中景抓拍,双手自然接触操纵杆与按键。面部使用傻瓜相机直闪,环境只有克制的青色、琥珀色和洋红反光;加入高速彩色胶片颗粒、略微抬高的黑位、轻微运动模糊和真实皮肤纹理。不要现代游戏设备、LED 灯带、赛博朋克夸张、可读文字、Logo、水印、塑料皮肤或前景多余人物。`},{...dv[4],category:`街头摄影`,title:`1988 年雨夜香港街头人像`,summary:`湿地反光、食摊蒸汽、混合实景光与年代城市细节共同构成的纪实画面。`,imageAlt:`AI 生成的虚构成年人 1988 年香港雨夜街头摄影示例`,prompt:`以上传人像作为身份参考,保持成年人物可辨识的脸、肤色、年龄感、表情和身体比例。把场景重现为 1988 年香港的纪实街头摄影:人物站在一辆年代正确的红色出租车旁,周围是潮湿的社区街道、旧楼立面、食摊蒸汽和密集竖向店招,招牌只保留抽象且不可读的字形。人物穿实用的红色防风夹克和高腰深色长裤,并尊重原有发质。采用中远景 4:5 构图,混合店铺荧光灯、暖色钠灯以及红绿路面反光,加入细腻的高感胶片颗粒和轻微运动模糊。不要现代天际线、手机、LED 大屏、赛博朋克幻想、可读文字、Logo 或水印。`},{...dv[5],category:`派对`,title:`1983 年迪斯科舞池抓拍`,summary:`带直接面部闪光、缎面高光与真实动态模糊的派对随手拍。`,imageAlt:`AI 生成的虚构成年人 1983 年迪斯科舞池照片示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的可辨识脸部、年龄感、肤色、身体比例和自然表情。生成一张 1983 年小型迪斯科舞厅里的非摆拍照片。人物穿石油蓝缎面衬衫与黑色褶裥长裤,服装根据人物自然适配。用 4:5 的四分之三身构图捕捉开心的舞蹈动作,背景出现镜面球、镜墙、琥珀色实景灯和轻微虚化的人群。面部使用机顶直闪,保留温暖的闪光衰减、缎面反射、可见彩色胶片颗粒、略微褪色的黑位和轻度动态模糊。不要现代夜店屏幕、LED 墙、当代时装、文字、Logo、水印、塑料皮肤或刻意时装摆拍。`},{...dv[6],category:`职业形象`,title:`1986 年办公室职业人像`,summary:`在年代办公设备和暖木质感中完成的沉稳环境人像。`,imageAlt:`AI 生成的虚构成年人 1986 年办公室职业人像示例`,prompt:`以上传照片作为身份参考,准确保留人物可辨识的成年脸部、面部不对称、肤色、年龄感、表情和身体比例。生成一张拍摄于 1986 年的职业环境人像:人物坐在暖木色办公桌前,办公室中有纸质文件、百叶窗、屏幕空白的米色 CRT 电脑和旋转拨号电话。服装改为炭灰色宽肩西装外套与象牙白衬衫,并根据人物自然适配。采用å¹
51³è§†åŠèº«æž„图,柔和窗光搭配克制的反射闪光,保留真实皮肤纹理、细腻彩色胶片颗粒和轻微模拟柔化。不要笔记本电脑、手机、平板显示器、现代极简家具、可读文字、Logo、水印或脸部美化。`},{...dv[7],category:`休闲生活`,title:`1984 年粉彩旱冰场人像`,summary:`使用年代双排轮滑鞋、轻微闪光和磨损地板质感的自然全身照。`,imageAlt:`AI 生成的虚构成年人 1984 年粉彩旱冰场照片示例`,prompt:`以上传照片作为身份参考,保持同一个成年人的可辨识脸部、肤色、年龄感、体型和自然笑容。让人物站在 1984 年粉彩室内旱冰场的护栏旁,穿天蓝色滚边 T 恤、珊瑚色运动短裤、白色长袜和白色双排轮滑鞋。姿势舒适且不性感化。使用 4:5 全身构图,完整显示两只轮滑鞋,背景是轻微虚化的滑行者和年代几何墙面。采用均匀顶灯与轻度正面闪光、柔和褪色色彩、细微 35mm 颗粒和真实磨损木地板。不要现代直排轮、LED 灯带、手机、文字、Logo、水印、身体畸变或塑料皮肤。`},{...dv[8],category:`正式合影`,title:`1987 年舞会情侣合影`,summary:`柔和活动闪光、年代正装、简单布景与自然面部细节组成的合影。`,imageAlt:`AI 生成的虚构成年情侣 1987 年正式舞会照片示例`,prompt:`以上传情侣照片作为身份参考,只保留两位成年人,确保两张脸独立可辨识,并保持肤色、年龄感、相对身高和自然表情。生成一张拍摄于 1987 年正式舞会的人像:一位穿有年代体积感但得体的淡紫色塔夫绸礼服,另一位穿炭灰色宽肩西装,根据两人的表达方式自然适配且不改变身份。两人舒适地站在深蓝色布幕前,旁边只有低调气球装饰和背景暖色虚化灯光。采用 4:5 半身构图、柔和正面活动闪光、细微模拟颗粒、轻度相纸柔化和真实皮肤纹理。手部可信,脸部无遮挡。不要现代婚礼造型、过度修图、文字、Logo、水印、脸部融合或新增人物。`},{...dv[9],category:`家庭合照`,title:`1982 年多代家庭相册照片`,summary:`脸部清楚、服装日常、模拟瑕疵克制的温暖居家合影。`,imageAlt:`AI 生成的五位虚构成年人 1982 年多代家庭合照示例`,prompt:`以上传家庭照片作为身份参考,保持完全相同的成年人数、每个人的脸、肤色、年龄感、相对身高和家庭站位。不要新增、删除、复制或融合任何人。把合影重现为 1982 年在家拍摄的家庭相册照片,环境包括蕾丝窗帘、木制家具、碎花软装、陶瓷茶具和小型 CRT 电视。根据每个人原有表达方式,换成低调的年代针织衫、衬衫、上衣或长裤。人物以不同高度自然排列,脸部无遮挡,手部自然。柔和窗光混合小型机顶闪光,保留轻微褪色和细腻 35mm 颗粒。除非参考图中原本有儿童,否则不要添加;不要现代电子设备、可读文字、品牌、Logo、水印或商业广告质感。`},{...dv[10],category:`街头人像`,title:`1988 年东京社区黄昏人像`,summary:`冷色黄昏、暖色店铺光、电线与年代街道质感构成的安静环境人像。`,imageAlt:`AI 生成的虚构成年人 1988 年东京社区街头人像示例`,prompt:`以上传人像作为身份参考,保持同一个成年人的可辨识脸部、肤色、年龄感、表情、发际线和身体比例。生成一张 1988 年东京社区纪实人像:人物站在紧凑的商业街上,周围有自行车、旧店铺、架空电线和面板空白的年代自动售货设备。穿炭灰色飞行夹克、米白针织上衣和褶裥长裤,版型根据人物自然适配。采用中远景 4:5 环境构图,冷色黄昏混合暖色橱窗光和克制的正面闪光,保留真实皮肤、磨损路面纹理、细微高感颗粒和轻度光晕。不要现代天际线、手机、LED 屏幕、赛博朋克造型、动漫处理、可读文字、Logo 或水印。`},{...dv[11],category:`度假照片`,title:`1986 年海边黄金时刻度假照`,summary:`结合风吹头发、棉布牛仔、年代街景和暖侧光的轻松旅行抓拍。`,imageAlt:`AI 生成的虚构成年人 1986 年海边度假照片示例`,prompt:`以上传照片作为身份参考,保持人物可辨识的成年脸部、肤色、年龄感、表情、身体比例和自然发质。生成一张 1986 年海边度假的抓拍照片:人物沿棕榈树旁的步道行走,身边是低矮海墙、柔和蓝色海面、年代自行车和远处的小型旧车。穿珊瑚色卷袖棉衬衫、素白上衣和高腰牛仔短裤,但不改变人物身份。
51采用膝盖以上的 4:5 行走构图,使用温暖黄金侧光、自然风动、柔和褪色高光、真实皮肤和细腻 35mm 颗粒。不要现代汽车、手机、网红摆拍、过度性感化、文字、Logo、水印、CGI 或美颜修图。`}],pv={locale:`en`,meta:{title:`12 Best 1980s Photo Prompts for ChatGPT | Lem Gen`,description:`Copy 12 tested 1980s photo prompts for portraits, couples, families, yearbooks and street scenes. Upload your photo and create the 80s look in Lem Gen.`},hero:{eyebrow:`Free 1980s AI photo prompt collection`,title:`12 Best 1980s Photo Prompts`,description:`Turn a current portrait, couple photo, or family picture into a believable 1980s photograph. These free, copyable prompts preserve identity while changing the clothing, setting, light, and analog finish—without reducing the decade to a neon filter.`,primaryCta:`Copy the prompts`,secondaryCta:`Upload a photo`,disclosure:`All previews show fictional adults created with AI. They are style demonstrations, not archival photographs.`,imageAlt:`AI-created collage of fictional adults in four authentic-looking 1980s photo styles`,stats:[{value:`12`,label:`copyable prompts`},{value:`1982–88`,label:`period references`},{value:`Free`,label:`to browse and copy`}]},answer:{title:`What prompt creates a convincing 1980s AI photo?`,description:`A useful 1980s photo prompt locks the person’s identity first, then names one photographic situation, period-appropriate styling, practical lighting, analog texture, and the modern objects to exclude. Choose a complete example below, upload a photo you have permission to edit, and change only the scene details you need.`},library:{eyebrow:`Copy-and-paste collection`,title:`1980s AI photo prompts by scene`,description:`Each prompt is a complete image-editing brief. The year, camera behavior, wardrobe, environment, and exclusions agree with one another so the result feels like a photograph rather than a costume filter.`,copy:`Copy prompt`,copied:`Copied`,tryPrompt:`Use in Lem Gen`,promptLabel:`Full prompt`,items:dv},howTo:{eyebrow:`Three-step workflow`,title:`How to make an 80s photo with your own picture`,description:`Start from a clear source photo, keep the identity instructions intact, and refine one visible problem at a time.`,steps:[{title:`Upload a clear photo`,description:`Use a photo you own or have permission to edit. Choose a well-lit face and avoid heavy filters or overlapping people.`},{title:`Choose one photographic situation`,description:`Pick a yearbook, family snapshot, street portrait, party, or travel photo. Do not combine every 1980s stereotype in one frame.`},{title:`Compare identity and period details`,description:`Check each face, hand, garment, vehicle, sign, and electronic device. Ask for one targeted correction instead of regenerating everything.`}]},authenticity:{eyebrow:`Prompt anatomy`,title:`Five details that make the decade believable`,description:`“Make it vintage” leaves too much to chance. A controlled prompt separates what must stay recognizable from what should travel back in time.`,items:[{title:`Identity lock`,description:`Preserve the face, age, skin tone, expression, body proportions, number of people, and relative heights before changing style.`},{title:`Specific photo type`,description:`Name one format—yearbook portrait, compact-camera snapshot, event photo, documentary street frame, or vacation print.`},{title:`Period environment`,description:`Use plausible furniture, electronics, vehicles, architecture, clothing, and accessories for the chosen year and place.`},{title:`Camera character`,description:`Describe direct flash, tungsten spill, grain, soft focus, halation, faded highlights, or mild motion blur only when the scene supports it.`},{title:`Modern exclusions`,description:`Remove smartphones, flat screens, LED walls, recent cars, current fashion, plastic skin, readable fake brands, and watermarks.`}]},generator:{eyebrow:`Try a prompt online`,title:`Upload your photo and create the 1980s look`,description:`Choose a prompt above, upload an image you are allowed to edit, and use the image editor to preserve the person while changing the era.`,selectedLabel:`Selected prompt`,uploadNote:`The editor requires a source image. Review the active model, credit cost, and final output before sharing.`},related:{title:`Related Lem Gen prompt resources`,links:[{href:`/prompts/faymas-ai-prompt`,title:`Faymas AI prompt alternatives`,description:`Browse original portrait, couple, travel, and social photo prompts.`},{href:`/prompts/portrait-photography`,title:`Portrait photography prompts`,description:`Control pose, lens feel, light, wardrobe, and identity.`},{href:`/prompts/nano-banana`,title:`Nano Banana prompts`,description:`Explore reference-based image editing workflows.`},{href:`/prompts/gpt-image-2-5`,title:`GPT Image 2.5 prompts`,description:`Copy structured prompts for images and precise edits.`}]},faq:{eyebrow:`1980s photo prompt FAQ`,title:`Common questions about the 80s AI photo trend`,description:`Practical answers for preserving identity and avoiding a modern-looking result.`,items:[{question:`What is the best prompt for the ChatGPT 1980s photo trend?`,answer:`The best prompt identifies what must remain unchanged, selects one specific 1980s photo type, and describes period styling, practical light, analog texture, and modern exclusions. The yearbook prompt on this page is a reliable starting point for one-person portraits.`},{question:`How do I keep my face recognizable?`,answer:`Place identity instructions first. Ask the editor to preserve facial proportions, skin tone, apparent age, expression, and gaze, and to change only hair, clothing, background, and photographic treatment. For groups, state the exact number of people and forbid blended or duplicated faces.`},{question:`Why does my result look like a modern photo with a retro filter?`,answer:`A generic “80s” instruction often changes only color. Name the photo type, year, camera behavior, lighting source, setting, clothing, and analog imperfections, then exclude smartphones, flat screens, recent cars, LED lighting, plastic skin, and overly clean digital sharpness.`},{question:`Can I use these prompts in ChatGPT, Gemini, or other image tools?`,answer:`Yes. These are natural-language image-editing prompts and can be adapted for tools that accept an uploaded reference image. Upload controls, model behavior, safety rules, and results vary by service, so keep the identity and exclusion clauses while adju
51sting the format to the selected tool.`},{question:`Are the preview images real photographs from the 1980s?`,answer:`No. Every preview on this page was generated with AI using fictional adult subjects. The images demonstrate prompt direction and are not presented as historical or archival evidence.`},{question:`Can I edit someone else’s photo?`,answer:`Only upload images you own or have permission to edit. Consider consent, privacy, publicity rights, trademarks, and the rules of the image model and publishing platform before sharing or using an output commercially.`}]}},mv={locale:`zh`,meta:{title:`12 个 1980 年代照片提示词,可直接复制 | Lem Gen`,description:`免费复制 12 个 1980 年代照片提示词,覆盖人像、情侣、家庭、毕业照和街拍。上传自己的照片,在 Lem Gen 生成真实自然的 80 年代效果。`},hero:{eyebrow:`免费 1980 年代 AI 照片提示词合集`,title:`12 个真实自然的 1980 年代照片提示词`,description:`把现在的人像、情侣照或家庭照变成可信的 1980 年代照片。这些可免费复制的提示词先保持人物身份,再改变服装、环境、光线和胶片质感,而不是简单套一层霓虹滤镜。`,primaryCta:`查看全部提示词`,secondaryCta:`上传照片生成`,disclosure:`所有示例图均由 AI 生成,人物为虚构成年人;它们用于展示风格,不是历史档案照片。`,imageAlt:`AI 生成的四种 1980 年代照片风格虚构成年人拼贴示例`,stats:[{value:`12`,label:`个可复制提示词`},{value:`1982–88`,label:`年代场景参考`},{value:`免费`,label:`浏览与复制`}]},answer:{title:`怎样写出可信的 1980 年代 AI 照片提示词?`,description:`好用的 1980 年代照片提示词会先锁定人物身份,再指定一种明确的拍摄场景、符合年代的造型、真实光源、模拟胶片质感,以及必须排除的现代物件。选择下面一个完整案例,上传你有权编辑的照片,只修改需要变化的场景细节即可。`},library:{eyebrow:`可直接复制使用`,title:`按场景整理的 1980 年代 AI 照片提示词`,description:`每一条都是完整的图片编辑 brief。年份、相机表现、服装、环境和排除项互相一致,让结果更像真实旧照片,而不是主题派对滤镜。`,copy:`复制提示词`,copied:`已复制`,tryPrompt:`在 Lem Gen 使用`,promptLabel:`完整提示词`,items:fv},howTo:{eyebrow:`三步完成`,title:`怎样用自己的照片生成 80 年代效果`,description:`从清晰原图开始,保留身份约束,每次只修正一个看得见的问题。`,steps:[{title:`上传清晰照片`,description:`只使用你拥有或获得编辑授权的照片。优先选择脸部光线清楚、没有重滤镜、人物之间不重叠的图片。`},{title:`只选一种拍摄场景`,description:`从毕业照、家庭抓拍、街头人像、派对或旅行照中选择一种,不要把所有 80 年代符号塞进同一画面。`},{title:`核对身份与年代细节`,description:`逐一检查脸、手、服装、汽车、招牌和电子设备;发现问题时提出单点修正,不要整张重新生成。`}]},authenticity:{eyebrow:`提示词结构`,title:`让 80 年代效果可信的五个细节`,description:`只说“做成复古照片”会留下太多猜测空间。更可控的提示词会把必须保持的人物信息和需要回到过去的环境信息分开。`,items:[{title:`身份锁定`,description:`先保持脸部、年龄感、肤色、表情、身体比例、人物数量和相对身高,再改变造型。`},{title:`明确照片类型`,description:`只指定一种形式:毕业纪念照、傻瓜相机抓拍、活动合影、纪实街拍或旅行相纸。`},{title:`符合年代的环境`,description:`围绕选定年份和地点,使用可信的家具、电子设备、汽车、建筑、服装和配饰。`},{title:`相机与光线表现`,description:`根据场景选择直闪、钨丝灯混光、颗粒、轻柔焦、光晕、褪色高光或轻微运动模糊。`},{title:`排除现代物件`,description:`明确去掉手机、平板屏幕、LED 墙、新款汽车、当代服装、塑料皮肤、虚构品牌和水印。`}]},generator:{eyebrow:`在线试用提示词`,title:`上传照片,生成你的 1980 年代版本`,description:`在上方选择一个提示词,上传你有权编辑的图片,通过图片编辑模式保持人物身份并改变年代。`,selectedLabel:`当前提示词`,uploadNote:`图片编辑需要上传原图;分享前请核对实际模型、积分消耗和最终结果。`},related:{title:`Lem Gen 相关提示词资源`,links:[{href:`/prompts/faymas-ai-prompt`,title:`Faymas AI 提示词替代方案`,description:`查看原创人像、情侣、旅行和社交照片提示词。`},{href:`/prompts/portrait-photography`,title:`人像摄影提示词`,description:`控制姿势、镜头感、光线、服装和人物一致性。`},{href:`/prompts/nano-banana`,title:`Nano Banana 提示词`,description:`查看基于参考图的图片编辑工作流。`},{href:`/prompts/gpt-image-2-5`,title:`GPT Image 2.5 提示词`,description:`复制适合图片生成和精准编辑的结构化提示词。`}]},faq:{eyebrow:`1980 年代照片提示词问答`,title:`关于 80 年代 AI 照片趋势的常见问题`,description:`帮助ä
51½ ä¿æŒäººç‰©èº«ä»½ï¼Œå¹¶é¿å…ç»“果看起来只是现代照片加复古滤镜。`,items:[{question:`ChatGPT 1980 年代照片趋势最好用的提示词是什么?`,answer:`好用的提示词会明确哪些内容不能改变,只选择一种 1980 年代照片类型,再补充年代造型、真实光源、模拟质感和现代物件排除项。对于单人照片,可以从本页的 1985 年毕业纪念照提示词开始。`},{question:`怎样让生成结果保持像本人?`,answer:`把身份约束放在提示词最前面,要求保持脸部比例、肤色、年龄感、表情和视线,只修改发型、服装、背景和摄影质感。多人照片还要写清人数,并明确禁止融合、复制或替换脸部。`},{question:`为什么生成结果像现代照片套了复古滤镜?`,answer:`只写“80 年代”通常只会改变颜色。应明确照片类型、年份、相机表现、光源、场景、服装和模拟瑕疵,同时排除手机、平板屏幕、新款汽车、LED 灯、塑料皮肤和过于干净的数字锐度。`},{question:`这些提示词可以用于 ChatGPT、Gemini 或其他图片工具吗?`,answer:`可以。这些是自然语言图片编辑提示词,适合支持上传参考图的工具。不同服务的上传方式、模型表现、安全规则和结果会有差异;迁移时应保留身份约束和排除项,再按实际工具调整格式。`},{question:`页面里的示例图是真实 1980 年代照片吗?`,answer:`不是。页面中所有示例图均由 AI 生成,人物为虚构成年人,仅用于展示提示词的视觉方向,不作为历史或档案证据。`},{question:`可以上传别人的照片进行编辑吗?`,answer:`只上传你拥有或获得编辑授权的照片。分享或商业使用前,还需要考虑当事人同意、隐私、肖像权、商标,以及图片模型和发布平台的具体规则。`}]}};function hv(e){return e===`zh`?mv:pv}var gv=P(`/prompts/1980s-photo`)({loader:async()=>{let e=D(),t=hv(e),{siteAssetBaseUrl:n}=await f_();return{locale:e,content:t,siteAssetBaseUrl:n}},head:({loaderData:e})=>{if(!e)return{};let{locale:t,content:n}=e,r=t_(sv,t),i=t_(`/`,t),a=e_(uv),o=t===`zh`?`zh-CN`:`en-US`,s={"@context":`https://schema.org`,"@graph":[{"@type":`CollectionPage`,"@id":`${r}#collection`,name:n.hero.title,url:r,description:n.meta.description,inLanguage:o,datePublished:cv,dateModified:lv,isAccessibleForFree:!0,image:a,primaryImageOfPage:{"@type":`ImageObject`,contentUrl:a,width:1536,height:1024,caption:n.hero.imageAlt},author:{"@type":`Organization`,name:`Lem Gen`,url:i},mainEntity:{"@type":`ItemList`,numberOfItems:n.library.items.length,itemListElement:n.library.items.map((e,t)=>({"@type":`ListItem`,position:t+1,url:`${r}#${e.id}`,item:{"@type":`CreativeWork`,name:e.title,description:e.summary,text:e.prompt,image:e_(e.image),inLanguage:o}}))}},{"@type":`HowTo`,"@id":`${r}#how-to`,name:n.howTo.title,description:n.howTo.description,inLanguage:o,step:n.howTo.steps.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e.title,text:e.description}))},{"@type":`FAQPage`,"@id":`${r}#faq`,inLanguage:o,mainEntity:n.faq.items.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))},{"@type":`BreadcrumbList`,"@id":`${r}#breadcrumb`,itemListElement:[{"@type":`ListItem`,position:1,name:t===`zh`?`Lem Gen 首页`:`Lem Gen Home`,item:i},{"@type":`ListItem`,position:2,name:n.hero.title,item:r}]}]};return{meta:r_({title:n.meta.title,description:n.meta.description,path:sv,image:uv,locale:t}).concat([{name:`robots`,content:`index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1`},{name:`googlebot`,content:`index,follow,max-image-preview:large,max-snippet:-1,max-video-preview:-1`}]),links:n_(sv,t),scripts:[{type:`application/ld+json`,children:o_(s)}]}},component:F(()=>I(()=>import(`./1980s-photo-BeLZbiW-.js`),__vite__mapDeps([148,1,147,102,2,4,5,6,7,33,46,47,10,36,37,14,12,51,126,58,30,3,8,9,31,32,34,11,13,35,38,39,16,40,19,41,27,42,43,44,60,45,48,49,50,52,53,21,54,55,17,56,57,59,61,62,15,63,64,65,66,67,68,69,70,71,72,23,73,74,75,76,77,26,78,79,114,87,28,97,84,85])),`component`)}),_v=[{path:`/prompt/sci-fi-sketch-in-watercolor-sci-fi-f05dd3e6-0fe2-4159-b7f0-ba59862548fb`,locale:`en`},{path:`/prompt/artistic-illustration-in-colored-ink-featuring-a-a561c924-9e6f-446b-8610-8f48fef9b052`,locale:`en`},{path:`/prompt/a-striking-cyberpunk-profile-portrait-of-a-55b9086c-5a9b-411a-afce-466a9c091af5`,locale:`en`},{path:`/prompt/a-stylish-woman-with-a-short-textured-fc45777a-c402-491f-a9b6-92f8f7604611`,locale:`en`}
51,{path:`/prompt/creative-visuals-a5f3da70-9e87-4012-b6a1-c8b80feae753`,locale:`en`},{path:`/prompt/subject-action-f80cc943-99a3-4a2e-b392-17b110f08803`,locale:`en`},{path:`/prompt/a-hyper-realistic-cinematic-close-up-portrait-f673671a-1c5c-4ab5-b7a3-a16fbcc835e3`,locale:`en`},{path:`/prompt/fifa-game-style-hyper-realistic-sports-simulation-6966cc8f-6529-440d-883a-4afecbf2e9a0`,locale:`en`},{path:`/prompt/visual-style-a-masterpiece-of-high-baroque-ef0aabf5-77b4-4344-8deb-4e55b2b460eb`,locale:`en`},{path:`/prompt/a-vibrant-cinematic-media-marketing-advertisement-banner-85d68c4a-719e-4dab-b9d1-1ff344a09310`,locale:`en`},{path:`/prompt/a-striking-magazine-cover-style-vertical-promotional-81f118b2-a8ee-4ebb-b028-b0732f67deb7`,locale:`en`},{path:`/prompt/digital-close-up-photo-of-a-woman-db928224-77ab-4788-a228-b886724d585b`,locale:`en`},{path:`/prompt/create-a-cinematic-adventurous-couple-portrait-captured-0d81931f-8ee5-47ab-ac92-25a3f4017d79`,locale:`en`},{path:`/prompt/use-the-uploaded-photo-as-the-main-2071985996397187455`,locale:`en`},{path:`/prompt/brand-logo-design-2071981941570641990`,locale:`zh`},{path:`/prompt/subject-formed-entirely-from-graceful-flowing-smoke-2071974327629557937`,locale:`en`},{path:`/prompt/product-ads-2071961809360408618`,locale:`zh`},{path:`/prompt/argument-name-person-default-a-75646553-f2e8-425c-9e0c-5fb0e79169e4`,locale:`zh`},{path:`/prompt/masterpiece-best-quality-highres-1-3-ultra-9198de92-1fdc-45b2-afe0-c96ee312df9c`,locale:`en`},{path:`/prompt/close-up-shot-of-a-border-collie-3c2050eb-d683-48cf-a3b8-fd4c7e1a2778`,locale:`en`},{path:`/prompt/artist-mazjojo-0-75-artist-pigeon666-0-a6509790-1866-4feb-9910-ea7fea09d041`,locale:`en`},{path:`/prompt/a-hyper-realistic-8k-studio-portrait-captured-2071933787936846062`,locale:`en`},{path:`/prompt/create-a-premium-arabic-calligraphy-artwork-featuring-2071927983384789166`,locale:`en`},{path:`/prompt/creative-visuals-2071874213569307096`,locale:`zh`},{path:`/prompt/create-a-clean-but-dramatic-3d-render-2071873624768733392`,locale:`en`},{path:`/prompt/kv-aia-21-9-8a6e7c07-cfe2-4f3f-9985-510d261a58f9`,locale:`zh`},{path:`/prompt/ultra-realistic-black-white-cinematic-portrait-of-2071810945991823657`,locale:`en`},{path:`/prompt/a-cinematic-35mm-photograph-of-a-stunningly-2071792635446960147`,locale:`en`},{path:`/prompt/16-9-2x2-grid-do-this-for-2071750312142971091`,locale:`en`},{path:`/prompt/netherlands-futuristic-cyberpunk-neon-style-1e1be74c-7834-44c8-840f-792042996155`,locale:`en`},{path:`/prompt/3-4-y2k-editorial-4c7214ea-639c-44b8-8bc5-4825342f96a4`,locale:`zh`},{path:`/prompt/a-young-african-boy-wearing-a-traditional-51fea1cc-864d-4d91-8926-eff8f35d4918`,locale:`en`},{path:`/prompt/do-this-for-argentina-world-cup-2026-2071629767795937759`,locale:`en`},{path:`/prompt/a-cinematic-macro-shot-of-a-small-8f3611c1-57d2-4421-abf9-b4bb5c339299`,locale:`en`},{path:`/prompt/a-young-african-boy-wearing-a-traditional-26d8262b-a72f-4e83-91f3-6eb2311bad77`,locale:`en`},{path:`/prompt/other-2071600260263395423`,locale:`zh`},{path:`/prompt/21-9-graphic-desi-8c8b5c44-b6f0-4270-80cc-661009faf006`,locale:`zh`},{path:`/prompt/a-massive-flying-pirate-ship-approaching-the-2071549909183197575`,locale:`en`},{path:`/prompt/creative-visuals-3e43f321-9f75-4cf0-9ae6-95e10400253d`,locale:`zh`},{path:`/prompt/a-whimsical-handmade-paper-artwork-on-a-22e1e30e-dd94-48f7-a204-89c9741a4df6`,locale:`en`},{path:`/prompt/illustration-3d-2071495207112372492`,locale:`zh`},{path:`/prompt/portrait-photography-2071395305694871613`,locale:`zh`},{path:`/prompt/seedream-5-0-lite-a8e13021-f237-4687-9968-f1781901e348`,locale:`zh`},{path:`/prompt/bradhamel-art-style-deep-colors-sharp-chiaroscuro-7921ae1d-2c9d-4461-848c-39125c447906`,locale:`en`},{path:`/prompt/create-a-crisp-clean-infographic-storyboard-poster-2071194105254949135`,locale:`en`},{path:`/prompt/portrait-photography-eeb32b8c-77c2-4984-8c5b-e399cbe84ac5`,locale:`zh`},{path:`/prompt/ultra-realistic-fifa-world-cup-2026-match-e9c5a0cf-54d3-4d72-a16d-bdd28807c7e3`,locale:`en`},{path:`/prompt/gpt-2071173959328968845`,locale:`zh`},{path:`/prompt/this-midjourney-style-reference-combines-expressive-carto-2071172880532906065`,locale:`en`},{path:`/prompt/1-midjourney-sref-271502886-2071141603901595957`,locale:`en`},{path:`/prompt/hyper-photorealistic-portrait-of-a-fashionable-young-a00bf3e0-5b0d-4dde-9e28-cd4d0ff14ed5`,locale:`en`},{path:`/prompt/creative-visuals-2070907091188085148`,locale:`zh`},{path:`/prompt/portrait-half-body-female-french-concubine-with-712893f1-75ce-4a39-9808-df8e5c4629e4`,locale:`en`},{path:`/prompt/1girl-cute-face-beautiful-eyes-soft-lips-f7d08034-ac56-499e-8403-64285a7e8325`,locale:`en`},{path:`/prompt/transform-the-uploaded-photo-into-a-cute-57aa8f0a-c230-4d97-ab5e-c7bb2257160b`,locale:`en`},{path:`/prompt/illustration-3d-be5ae302-dd11-450a-b9ac-29fd71a65cbc`,locale:`zh`},{path:`/prompt/create-a-1970s-black-white-close-up-1dffd881-3244-4650-9148-bab17df3906d`,locale:`en`},{path:`/prompt/product-ads-2070303665773310258`,locale:`zh`},{path:`/prompt/this-expanded-version-maintains-the-core-mood-07a10d4d-e6b9-4e47-8535-6f5973297dd6`,locale:`en`},{path:`/prompt/1girl-solo-beautiful-woman-goddess-mythological-motif-d806e9a2-a2e7-4ec2-b617-2e9dd1b88a
515f`,locale:`en`},{path:`/prompt/reate-an-ultra-premium-oversized-t-shirt-cecc74b6-4bea-4fb0-b251-221670a667e0`,locale:`en`},{path:`/prompt/algeria-abstract-illustration-contemporary-algeria-art-a36a398e-f8be-4911-8e69-0894cd63b9ff`,locale:`en`},{path:`/prompt/portrait-of-a-stylish-young-man-in-1344026d-d5f0-4d3a-9ecd-6272a378659f`,locale:`en`},{path:`/prompt/a-man-likely-in-his-early-thirties-7e05fa5a-2f64-46ad-8d4f-5f7d8bd66d4e`,locale:`en`},{path:`/prompt/an-eclectic-rustic-interior-features-a-corner-d355c940-abdc-4fcb-bfee-3281be29f0cc`,locale:`en`},{path:`/prompt/create-an-ultra-realistic-3d-holographic-sticker-2071952191984648682`,locale:`en`},{path:`/prompt/creative-visuals-2072007690604388498`,locale:`en`},{path:`/prompt/transform-the-into-a-monumental-handcrafted-ceramic-1c94e927-4448-44a6-966f-7430cb5786e3`,locale:`en`},{path:`/prompt/vibrant-digital-art-swirling-neon-colors-abstract-65cc35b4-25bb-4b9d-888d-5065ba36f8ba`,locale:`en`},{path:`/prompt/starfield-stylevertical-9-16-poster-of-world-27abbd60-67bb-4b71-94dc-2cb76dc3719e`,locale:`en`},{path:`/prompt/the-visual-style-resembles-a-classical-digital-68fcba71-b8f7-4b57-8a7b-71ff24d794e4`,locale:`en`},{path:`/prompt/character-design-64d3e3e6-54ce-4214-b5fc-aa54120f0264`,locale:`en`},{path:`/prompt/the-portrait-is-viewed-through-stacked-glass-f814cfbb-8bbf-4ef4-b6d9-30b5aa44d644`,locale:`en`},{path:`/prompt/create-a-luxury-travel-fashion-editorial-portrait-2071925398749978763`,locale:`en`},{path:`/prompt/create-a-gentle-intimate-black-white-portrait-6edaf0d4-233a-46f8-ba8d-20efa93e8239`,locale:`en`},{path:`/prompt/ultra-realistic-imax-level-netflix-style-cinematic-2071981861778432387`,locale:`en`},{path:`/prompt/brand-logo-design-2071973321839677513`,locale:`zh`},{path:`/prompt/a-theatrical-shadow-puppet-scene-of-a-2071911155950665729`,locale:`en`},{path:`/prompt/product-ads-2071855339222253944`,locale:`zh`},{path:`/prompt/creative-visuals-2ed7bf35-9e4e-4b35-a8c5-4f12dcf2f40a`,locale:`zh`},{path:`/prompt/ultra-realistic-photorealistic-commercial-product-photog-d4c7bac4-cd5b-4c78-b3e5-ddfbe14d6ce5`,locale:`en`},{path:`/prompt/create-a-luxury-editorial-eyewear-portrait-featuring-36c1e81a-7c03-4f63-aee3-aed61e97b9bd`,locale:`en`},{path:`/prompt/league-of-legends-stylevertical-9-16-poster-2ef37088-ddc1-4b60-97d7-94445b14e76e`,locale:`en`},{path:`/prompt/a-high-end-commercial-product-assembly-featuring-6a03aa95-648c-417a-bd37-960aa5633314`,locale:`en`},{path:`/prompt/dynamic-football-match-day-poster-lamine-yamal-7c10595a-fc12-4679-ba22-c5adafe60cbe`,locale:`en`},{path:`/prompt/a-sophisticated-editorial-close-up-featuring-elegant-0040e72e-4232-438f-ab7f-2927e9ab4349`,locale:`en`},{path:`/prompt/subject-created-entirely-from-flowing-luminous-white-2071516454445343082`,locale:`en`},{path:`/prompt/vertical-close-up-shot-spain-football-jersey-a507e1c5-bb1a-4b67-ab68-1cda44451393`,locale:`en`},{path:`/prompt/subject-identity-a5184166-3149-4750-b79c-f808255b06e5`,locale:`en`},{path:`/prompt/vertical-top-down-macro-shot-lots-of-2d99cdfa-1e4a-4753-bb65-21903b3fffc5`,locale:`en`},{path:`/prompt/fashion-editorial-portrait-of-young-woman-with-2071874962034700434`,locale:`en`},{path:`/prompt/a-dramatic-expressionist-linocut-print-on-raw-2071618707424752121`,locale:`en`},{path:`/prompt/create-a-bold-retro-pop-art-poster-2071881665434337530`,locale:`en`},{path:`/prompt/convert-this-into-a-3-4-official-290a52bd-bf04-4457-8ab4-b8f6f8d40fd8`,locale:`en`},{path:`/prompt/ultra-wide-cinematic-aerial-shot-during-blue-2070355225911906435`,locale:`en`},{path:`/prompt/cinematic-3d-animated-style-ultra-realistic-textures-2070315771813884044`,locale:`en`},{path:`/prompt/15-second-cinematic-short-original-character-in-2070275091393552511`,locale:`en`},{path:`/prompt/the-camera-dives-through-an-opening-in-2070264773107965982`,locale:`en`},{path:`/prompt/create-a-cinematic-fantasy-scene-above-the-2070235633826570483`,locale:`en`},{path:`/prompt/kad-n-vlogger-selfie-modunda-kameraya-donuyor-2070232114641924258`,locale:`en`},{path:`/prompt/create-a-professional-cinematic-commercial-storyboard-in-2070157678790496574`,locale:`en`},{path:`/prompt/seedance-2-0-15-seconds-16-9-2070152447373488265`,locale:`en`},{path:`/prompt/a-cinematic-lifestyle-fashion-featuring-a-beautiful-2070051671057809832`,locale:`en`},{path:`/prompt/ultra-realistic-cinematic-jungle-sequence-filmed-like-2070044467974054302`,locale:`en`},{path:`/prompt/15-second-continuous-single-shot-ultra-photorealis-2070041120948813883`,locale:`en`},{path:`/prompt/hyper-realistic-cinematic-super-speed-fight-scene-2070020240457732410`,locale:`en`},{path:`/prompt/setting-busy-moroccan-souk-at-golden-hour-2069946607811072010`,locale:`en`},{path:`/prompt/rotagonist-a-male-wasteland-drifter-wearing-a-2069823346406219787`,locale:`en`},{path:`/prompt/15-second-high-intensity-motorcycle-commercial-ultra-2069783667615088706`,locale:`en`},{path:`/prompt/cinematic-high-octane-action-sequence-a-futuristic-2069649046688637361`,locale:`en`}
51,{path:`/prompt/ultra-realistic-cinematic-live-action-inspired-by-2069634741926867051`,locale:`en`},{path:`/prompt/a-cinematic-desert-journey-at-golden-sunset-2069632189613113795`,locale:`en`},{path:`/prompt/cinematic-action-sequence-in-a-dark-rainy-2069631592667242609`,locale:`en`},{path:`/prompt/a-luxury-beauty-commercial-for-a-hydrating-2069625178347426286`,locale:`en`},{path:`/prompt/create-a-cinematic-sci-fi-film-sequence-2069503276651819388`,locale:`en`},{path:`/prompt/use-the-exact-same-character-from-the-2069398956354798010`,locale:`en`},{path:`/prompt/a-colossal-dark-horned-monster-towers-over-2069293817568919964`,locale:`en`},{path:`/prompt/epic-anime-battle-scene-fierce-young-man-28a931de-4554-4523-b93a-e8dd995b5991`,locale:`en`}],vv=new Map,yv=new Set;for(let e of _v){let t=bv(e.path);if(!t)throw Error(`SEO corpus path is missing a stable key: ${e.path}`);if(vv.has(t))throw Error(`Duplicate SEO corpus key: ${t}`);vv.set(t,e),yv.add(`${e.locale}:${e.path}`)}function bv(e){return e.match(/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i)?.[0]?.toLowerCase()||e.match(/\d{12,}/)?.[0]||``}function xv(e){return vv.get(e.toLowerCase())?.path}function Sv(e,t){let n=e.replace(/^https?:\/\/[^/]+/i,``).replace(/^\/zh(?=\/)/,``).split(/[?#]/,1)[0].replace(/\/$/,``);return yv.has(`${t}:${n}`)}var Cv=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,wv=/\d{12,}/,Tv={"商业广告 & 产品":`product-ads`,"品牌设计 & Logo":`brand-logo-design`,视频:`ai-video`,"插画 & 3D":`illustration-3d`,创意视觉:`creative-visuals`,人像摄影:`portrait-photography`,电商主图:`ecommerce-product-images`,Ecommerce:`ecommerce-product-images`,女装:`womens-fashion`,"Women's Fashion":`womens-fashion`,男装:`mens-fashion`,"Men's Fashion":`mens-fashion`,童装:`kids-fashion`,"Kids Fashion":`kids-fashion`,壁纸:`wallpapers`,Wallpaper:`wallpapers`,Community:`ai-image-prompt`,Seedance:`ai-video`},Ev=new Set([`ai`,`and`,`image`,`meigen`,`meigenai`,`cdanceai`,`cdance`,`community`,`prompt`,`submission`,`source`,`twitter`,`video`]);function Dv(e){return e.replace(/meigen(?:\s*[-_.]?\s*ai)?/gi,` `).replace(/c\s*[-_.]?\s*dance\s*[-_.]?\s*ai/gi,` `).replace(/cdance\s*[-_.]?\s*ai/gi,` `).replace(/cdanceai/gi,` `).replace(/community/gi,` `).replace(/submission/gi,` `)}function Ov(e){return Dv(e).normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/&/g,` and `).replace(/[^a-zA-Z0-9]+/g,`-`).toLowerCase().split(`-`).filter(e=>e&&!Ev.has(e)).slice(0,7).join(`-`)}function kv(e){return e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).replace(/&/g,` and `).replace(/[^a-zA-Z0-9]+/g,`-`).toLowerCase().split(`-`).filter(
51Boolean).slice(0,12).join(`-`)}function Av(e){return e.tag&&Tv[e.tag]?Tv[e.tag]:e.mediaType===`video`||e.model&&/video|seedance|veo|kling|sora/i.test(e.model)?`ai-video-prompt`:`ai-image-prompt`}function jv(e){return e?e.split(`-`).filter(Boolean).length<2||e.length<8:!0}function Mv(e){if(!e)return``;let t=Nv(e),n=t.match(Cv)?.[0];return n?n.toLowerCase():t.match(wv)?.[0]||kv(t).slice(0,80)}function Nv(e){try{return decodeURIComponent(e)}catch{return e}}function Pv(e){return Mv(e.id)||Mv(e.sourceId)||Ov(e.id).slice(0,80)}function Fv(e){let t=Ov(e.title||``),n=e.tag?Tv[e.tag]||Ov(e.tag):``,r=Ov(e.model||``),i=jv(t)?n||r||Av(e):t,a=Pv(e),o=xv(a);if(o)return o.slice(8);let s=`${i||Av(e)}-${a}`.replace(/-+/g,`-`);return qv(s)?`${Av(e)}-${a}`.replace(/-+/g,`-`):s}function Iv(e){return`/prompt/${Fv(e)}`}function Lv(e,t){return Nv(e)===Fv(t)}function Rv(e){let t=`${e.title||``} ${e.prompt||``}`,n=t.match(/[\u3400-\u9fff]/g)?.length||0,r=n+(t.match(/[a-z]/gi)?.length||0);return n>=8&&(r===0||n/r>=.08)?`zh`:`en`}var zv={"商业广告 & 产品":{en:`product advertising`,zh:`商品广告`},"品牌设计 & Logo":{en:`brand and logo design`,zh:`品牌与 Logo 设计`},视频:{en:`AI video`,zh:`AI 视频`},"插画 & 3D":{en:`illustration and 3D`,zh:`插画与 3D`},创意视觉:{en:`creative visual`,zh:`创意视觉`},人像摄影:{en:`portrait photography`,zh:`人像摄影`},电商主图:{en:`ecommerce product image`,zh:`电商主图`},食品:{en:`food photography`,zh:`食品摄影`},"食品 & 饮料":{en:`food and beverage`,zh:`食品与饮料`},女装:{en:`women's fashion`,zh:`女装`},男装:{en:`men's fashion`,zh:`男装`},童装:{en:`kids' fashion`,zh:`童装`},壁纸:{en:`wallpaper design`,zh:`壁纸设计`},"FIFA 2026":{en:`FIFA 2026 visual`,zh:`FIFA 2026 视觉`},Seedance:{en:`Seedance video`,zh:`Seedance 视频`}},Bv={other:`AI Image`,"flux2-klein":`FLUX 2 Klein`,"grok-image":`Grok Image`,"seedream-5.0-lite":`Seedream 5.0 Lite`,"z-image-turbo":`Z-Image Turbo`,"agnes-image-2.1-flash":`Agnes Image 2.1`};function Vv(e,t){return e?zv[e]?.[t]||e:t===`zh`?`AI 创作`:`AI creative`}function Hv(e){return e?Wv(Bv[e]||e,24):`AI`}function Uv(e){return(e||``).replace(/\{argument\s+name=(?:["'][^"']+["']|[^\s}]+)\s+default=["']([^"']+)["']\}/gi,`$1`).replace(/\{[^}]*$/g,` `).replace(/[*_#`]+/g,` `).replace(/\s*(?:\.\.\.|…)+\s*$/g,``).replace(/\s+/g,` `).replace(/^[,.:;|/\\-]+|[,.:;|/\\-]+$/g,``).trim()}function Wv(e,t){if(e.length<=t)return e;let n=e.slice(0,t+1),r=Math.max(n.lastIndexOf(` `),n.lastIndexOf(`,`),n.lastIndexOf(`,`));return(r>=Math.floor(t*.55)?n.slice(0,r):e.slice(0,t)).replace(/[,.:;,。:;|/\\-]+$/g,``).trim()}function Gv(e){let t=e.toLowerCase(),n=t.split(/\s+/).filter(Boolean);return e.length<12||n.length<3||/^(?:other|subject(?: and)? action|argument name|masterpiece best quality|visual style|1girl)/i.test(t)}function Kv(e,t){let n=e===`zh`?`zh`:`en`,r=Hv(t.model),i=Vv(t.tag,n),a=t.mediaType===`video`?n===`zh`?`视频`:`video`:null,o=Uv(t.title),s=n===`zh`?`${i}${a||`创作`}案例`:`${i.replace(/^./,e=>e.toUpperCase())} ${a||`concept`}`,c=Gv(o)?s:o,l=n===`zh`?`|${r} 提示词`:` | ${r} Prompt`,u=Wv(c,Math.max(22,60-l.length)),d=`${u}${l}`,f=n===`zh`?`复制并改写这条用于“${u}”的 ${r} ${i}提示词。可调整主体、构图、镜头、光线和参考素材,并在 Lem Gen 中继续生成。`:`Use this ${r} ${i} prompt for ${u}. Copy the full prompt, customize the subject, composition, camera, lighting, and references, then remix it in Lem Gen.`;return{title:d,description:f.length<=155?f:`${Wv(f,154)}…`,topic:u,model:r,tag:i}}function qv(e){return/meigen|cdance|c-dance|community|submission/i.test(e)}function Jv(e,t){return t===`zh`?e.zh:e.en}function Yv(e){return e.publicPath||Iv({id:e.id,sourceId:e.sourceId,title:e.title,model:e.model,tag:e.tag,mediaType:e.mediaType})}function Xv(e){let t=Yv(e);return Rv(e)===`zh`?`/zh${t}`:t}var Zv=[{slug:`gpt-image`,path:`/prompts/gpt-image`,contentLocale:`zh`,query:{category:`GPT Image`},en:{title:`GPT Image Prompts for Practical AI Image Creation`,description:`Browse curated GPT Image prompts for product scenes, portraits, posters, brand visuals, and commercial image workflows.`,eyebrow:`GPT Image prompt library`,intro:`These examples show how creators describe the subject, composition, lighting, materials, typography, and output constraints that matter in GPT Image.`,tips:[`Replace the subject, product, and brand details before changing the visual structure.`,`Keep composition and lighting instructions separate so each can be refined.`,`Review generated text, logos, hands, reflections, and product details before publishing.`]},zh:{title:`实用 GPT Image 图片生成提示词`,description:`浏览精选 GPT Image 提示词,覆盖商品图、人像、海报、品牌视觉与商业图片生成场景。`,eyebrow:`GPT Image 提示词库`,intro:`这些案例重点展示如何描述主体、构图、光线、材质、文字和输出限制,方便在 GPT Image 中替换业务信息后继续迭代。`,tips:[`先替换ä¸
51»ä½“、商品和品牌信息,再调整整体视觉结构。`,`把构图与光线要求分开写,后续修改会更可控。`,`发布前检查文字、Logo、手部、反光和商品细节。`]}},{slug:`seedance`,path:`/prompts/seedance`,contentLocale:`en`,query:{category:`Seedance`},en:{title:`Seedance Video Prompts with Clear Motion and Camera Direction`,description:`Explore Seedance video prompt examples for camera movement, subject motion, continuity, transitions, and short-form video scenes.`,eyebrow:`Seedance video prompt library`,intro:`A useful Seedance prompt explains what moves, how the camera behaves, what must remain consistent, and how the shot should end.`,tips:[`Describe subject motion and camera motion as two separate instructions.`,`State which identity, clothing, product, or background details must stay consistent.`,`Use one clear shot objective before adding transitions or secondary actions.`]},zh:{title:`运动与镜头方向清晰的 Seedance 视频提示词`,description:`浏览 Seedance 视频提示词案例,覆盖镜头运动、主体动作、连续性、转场和短视频场景。`,eyebrow:`Seedance 视频提示词库`,intro:`好用的 Seedance 提示词需要交代谁在动、镜头怎么动、哪些细节必须保持一致,以及镜头最终停在哪里。`,tips:[`把主体动作和镜头运动拆成两条要求。`,`明确人物身份、服装、商品或背景中必须保持一致的细节。`,`先确定一个镜头目标,再增加转场和次要动作。`]}},{slug:`product-ads`,path:`/prompts/product-ads`,contentLocale:`en`,query:{tag:`商业广告 & 产品`},en:{title:`AI Product Advertising Prompts for Commercial Visuals`,description:`Find AI product ad prompts for hero shots, packaging, campaign posters, social ads, and ecommerce-ready commercial visuals.`,eyebrow:`Product advertising prompts`,intro:`Use these prompts as production frameworks: preserve the hierarchy and camera logic, then replace the product, audience, claims, and brand system with verified details.`,tips:[`Specify product geometry, material, label placement, and non-negotiable brand details.`,`Choose one campaign message and one primary focal point.`,`Do not invent certifications, prices, ingredients, or performance claims.`]},zh:{title:`用于商业视觉的 AI 商品广告提示词`,description:`查找 AI 商品广告提示词,覆盖主视觉、包装、活动海报、社交广告和电商商业图片。`,eyebrow:`商品广告提示词`,intro:`可以把这些案例当成制作框架:保留信息层级与镜头逻辑,再替换成经过核实的商品、受众、卖点和品牌规范。`,tips:[`写清商品形状、材质、标签位置和不能改变的品牌细节。`,`一次只突出一个活动信息和一个视觉焦点。`,`不要虚构认证、价格、成分或效果承诺。`]}},{slug:`portrait-photography`,path:`/prompts/portrait-photography`,contentLocale:`en`,query:{tag:`人像摄影`},en:{title:`AI Portrait Photography Prompts for Controlled Results`,description:`Browse AI portrait prompts with practical direction for pose, framing, lens feel, lighting, wardrobe, background, and facial consistency.`,eyebrow:`Portrait photography prompts`,intro:`Portrait prompts become easier to control when identity, pose, camera, light, styling, and background are described independently.`,tips:[`Describe identity-preserving details before styling or atmosphere.`,`Use a clear crop, camera angle, and lighting direction.`,`Avoid unnecessary appearance labels; describe visible, editable details instead.`]},zh:{title:`结果更可控的 AI 人像摄影提示词`,description:`浏览 AI 人像提示词,学习描述姿势、景别、镜头感、光线、服装、背景和面部一致性。`,eyebrow:`人像摄影提示词`,intro:`把人物身份、姿势、镜头、光线、造型与背景分别描述,人像提示词会更容易修改和控制。`,tips:[`先写需要保持的人物特征,再补充造型和氛围。`,`明确景别、拍摄角度和光线方向。`,`少用无关的外貌标签,优先描述可观察、可编辑的细节。`]}},{slug:`nano-banana`,path:`/prompts/nano-banana`,contentLocale:`en`,query:{category:`N
51anobanana Pro`},en:{title:`Nano Banana Prompts for Image Editing and Generation`,description:`Browse practical Nano Banana prompts for image editing, reference-based generation, product visuals, portraits, and creative compositions.`,eyebrow:`Nano Banana prompt library`,intro:`These examples show how to preserve important reference details while changing the subject, environment, lighting, materials, layout, or visual style.`,tips:[`State which identity, product, logo, or layout details must remain unchanged.`,`Separate required edits from background, lighting, and style instructions.`,`Check text, hands, reflections, product geometry, and reference consistency.`]},zh:{title:`用于图片编辑与生成的 Nano Banana 提示词`,description:`浏览实用 Nano Banana 提示词,覆盖图片编辑、参考图生成、商品视觉、人像与创意构图。`,eyebrow:`Nano Banana 提示词库`,intro:`这些案例展示如何保留参考图中的关键细节,同时修改主体、环境、光线、材质、版式或视觉风格。`,tips:[`明确哪些人物、商品、Logo 或版式细节必须保持不变。`,`把必要修改与背景、光线和风格要求分开描述。`,`检查文字、手部、反光、商品结构与参考图一致性。`]}},{slug:`brand-logo-design`,path:`/prompts/brand-logo-design`,contentLocale:`en`,query:{tag:`品牌设计 & Logo`},en:{title:`AI Brand and Logo Design Prompts for Visual Systems`,description:`Explore AI brand and logo prompts for identity concepts, typography, packaging, campaign assets, and consistent visual systems.`,eyebrow:`Brand and logo design prompts`,intro:`Use these prompts to define a visual direction before production. Replace placeholder brands with verified assets and treat generated marks as concepts that still need professional review.`,tips:[`Provide the approved brand name, spelling, colors, and reference assets.`,`Describe symbol, typography, spacing, material, and usage context separately.`,`Verify trademark availability and redraw final logo geometry before use.`]},zh:{title:`用于视觉系统设计的 AI 品牌与 Logo 提示词`,description:`浏览 AI 品牌与 Logo 提示词,覆盖标识概念、字体、包装、活动素材和一致的视觉系统。`,eyebrow:`品牌与 Logo 设计提示词`,intro:`先用这些案例定义视觉方向,再进入正式制作。请使用经过确认的品牌资料,并把生成标识视为仍需专业复核的概念稿。`,tips:[`提供已确认的品牌名称、拼写、颜色和参考素材。`,`分别描述符号、字体、间距、材质和应用场景。`,`正式使用前检查商标可用性,并重新绘制最终几何。`]}},{slug:`illustration-3d`,path:`/prompts/illustration-3d`,contentLocale:`en`,query:{tag:`插画 & 3D`},en:{title:`AI Illustration and 3D Prompts with Art Direction`,description:`Find AI illustration and 3D prompts with useful direction for composition, materials, depth, lighting, rendering, and visual storytelling.`,eyebrow:`Illustration and 3D prompts`,intro:`Strong illustration and 3D prompts separate the concept, camera, geometry, material system, lighting, and finishing requirements so each decision can be revised.`,tips:[`Name the medium, geometry, surface materials, and rendering approach.`,`Set one focal point and explain foreground, subject, and background depth.`,`Use style references as direction, not as a request to copy a living artist.`]},zh:{title:`带有明确美术指导的 AI 插画与 3D 提示词`,description:`查找 AI 插画与 3D 提示词,学习描述构图、材质、空间、光线、渲染和视觉叙事。`,eyebrow:`插画与 3D 提示词`,intro:`把创意、镜头、几何、材质系统、光线和收尾要求拆开æ
51è¿°ï¼Œæ’画与 3D 提示词会更容易修改。`,tips:[`写清媒介、几何结构、表面材质和渲染方式。`,`设置一个焦点,并说明前景、主体和背景的空间关系。`,`把风格参考作为方向,不要要求复制在世艺术家的作品。`]}},{slug:`food-beverage`,path:`/prompts/food-beverage`,contentLocale:`en`,query:{tag:`食品 & 饮料`},en:{title:`AI Food and Beverage Prompts for Commercial Images`,description:`Browse AI food and beverage prompts for menu images, packaging, product shots, social campaigns, and appetizing commercial photography.`,eyebrow:`Food and beverage prompts`,intro:`Food visuals become more believable when the prompt defines ingredients, freshness cues, styling, camera angle, light quality, surface, and serving context.`,tips:[`Describe visible ingredients, texture, temperature, garnish, and portion size.`,`Choose a camera angle and lighting setup that supports the intended use.`,`Do not invent ingredients, nutrition facts, certifications, or health claims.`]},zh:{title:`用于商业图片的 AI 食品与饮料提示词`,description:`浏览 AI 食品与饮料提示词,覆盖菜单图、包装、商品图、社交活动和具有食欲感的商业摄影。`,eyebrow:`食品与饮料提示词`,intro:`提示词写清原料、新鲜感、造型、机位、光线、台面和食用场景,食品视觉通常会更可信。`,tips:[`描述可见原料、质感、温度、点缀和份量。`,`根据最终用途选择机位和光线方案。`,`不要虚构配料、营养信息、认证或健康效果。`]}}];function Qv(e){return Zv.find(t=>t.slug===e)}function $v(e){return e.contentLocale===`zh`?`/zh${e.path}`:e.path}var ey=()=>I(()=>import(`./_slug-CgPsD9xF.js`),__vite__mapDeps([149,1,87,12,14,6,7,65,32,2,4,5,33,34,10,36,37,66,17,54,28,97,11,51,68,9,73,74,75,13,27,76,77,84,85,26])),ty=u().handler(c(`bf51fa747752fe3030acbde1155a50ba435a79217c74186fed545f05b9332f60`)),ny=P(`/prompts/$slug`)({loader:async({params:e})=>{let t=Qv(e.slug);if(!t)throw ke();return{locale:D(),hub:t,cards:await ty({data:{slug:e.slug}})}},head:({loaderData:e})=>{if(!e)return{};let{locale:t,hub:n,cards:r}=e,i=Jv(n,t),a=$v(n),o=t===n.contentLocale&&r.length>=6,s={"@context":`https://schema.org`,"@type":`CollectionPage`,name:i.title,description:i.description,url:e_(a),inLanguage:t===`zh`?`zh-CN`:`en-US`,mainEntity:{"@type":`ItemList`,itemListElement:r.slice(0,12).map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.title,url:e_(Xv(e))}))}};return{meta:r_({title:`${i.title} | Lem Gen`,description:i.description,path:n.path,locale:t}).concat({name:`robots`,content:o?`index,follow,max-image-preview:large`:`noindex,follow`}),links:[{rel:`canonical`,href:e_(a)}],scripts:[{type:`application/ld+json`,children:o_(s)}]}},component:F(ey,`component`)});function ry(e,t){return t?Kv(e,t):e===`zh`?{title:`AI 图片提示词预览 - Lem Gen`,description:`查看提示词详情,复制、改写并在 Lem Gen 中继续生成 AI 图片或视频。`}:{title:`AI Image Prompt Preview - Lem Gen`,description:`View prompt details, copy the prompt, and remix it in Lem Gen.`}}var iy=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`],ay=200;function oy(e){if(!e)return null;try{let t=new URL(e,`https://lemgen.local`);if(t.origin!==`https://lemgen.local`)return null;let n=t.pathname.replace(/^\/zh(?=\/|$)/,``);if(n!==`/`)return null;let r=new Set([`category`,`tag`,`sort`,`q`]);for(let e of t.searchParams.keys())if(!r.has(e))return null;return`${n}${t.search}`}catch{return null}}function sy(e){let t=e.trim();return!t||t.length>ay?null:t}function cy(e){let t=e.startsWith(`?`)?e.slice(1):e,n=new URLSearchParams(t),r=new URLSearchParams,i=new Set,a=!1,o=null;for(let[e,t]of n.entries()){if(i.has(e)){a=!0;continue}if(i.add(e),e===`returnTo`){o=oy(t),o||(a=!0);continue}if(iy.includes(e)){let n=sy(t);n?r.set(e,n):a=!0;continue}a=!0}return{returnTo:o,trackingParams:r,hasUnsupportedSearch:a}}function ly(e,t){let n=new URLSearchParams;t.returnTo&&n.set(`returnTo`,t.returnTo);for(let e of iy){let r=t.trackingParams.get(e);r&&n.set(e,r)}let r=n.toString();return r?`${e}?${r}`:e}var uy=()=>I(()=>import(`./_id-q1rJGeui.js`),__vite__mapDeps([150,1,125,2,32,4,5,6,7,33,34,10,46,47,36,37,3,8,9,48,49,11,12,13,35,14,113,51,55,30,31,38,39,16,40,19,41,27,42,43,44,52,17,56,126,127,128,62,118,129,15,65,66,53,114,75,104,130,70,107,131,18,77,72,24,25,26,78,79])),dy=u().handler(c(`090188d4cff81dee4bacad4c24d4f335ecaaf22a437bd373741be53af54cff57`)),f
51y=P(`/prompt/$id`)({loader:async({params:e,location:t})=>{let n=D(),r=await dy({data:{id:e.id}}),i=r?.prompt,a=cy(t.searchStr||``);if(i&&(a.hasUnsupportedSearch||!Lv(e.id,{id:i.id,title:i.title,model:i.model,tag:i.tag,mediaType:i.mediaType}))){let e=i.publicPath||`/prompt/${i.id}`;throw Oe({href:ly(t.pathname.startsWith(`/zh/`)?`/zh${e}`:e,a),statusCode:301})}return{locale:n,id:i?.id||e.id,prompt:i,relatedCards:r?.relatedCards||[]}},head:({loaderData:e})=>{let t=e?.locale??`en`,n=e?.id??``,r=e?.prompt,i=r?.publicPath||`/prompt/${n}`,{title:a,description:o}=ry(t,r),s=r?Rv(r):t,c=!!(r?.seoIndexable&&t===s&&Sv(i,s)),l=r?r.mediaType===`video`&&r.videoUrl?{"@context":`https://schema.org`,"@type":`VideoObject`,name:r.title,description:o,thumbnailUrl:r.image?e_(r.image):void 0,contentUrl:e_(r.videoUrl),uploadDate:r.uploadDate,author:{"@type":`Person`,name:r.author},keywords:[r.model,r.tag,`AI video prompt`,`Lem Gen`],url:t_(i,s),inLanguage:s===`zh`?`zh-CN`:`en-US`}:{"@context":`https://schema.org`,"@type":`CreativeWork`,name:r.title,description:o,text:r.prompt,image:r.image?e_(r.image):void 0,author:{"@type":`Person`,name:r.author},keywords:[r.model,r.tag,`AI image prompt`,`Lem Gen`],url:t_(i,s),inLanguage:s===`zh`?`zh-CN`:`en-US`}:null;return{meta:[...r_({title:a,description:o,path:i,image:r?.image,locale:s}),...r?[{name:`robots`,content:c?`index,follow,max-image-preview:large`:`noindex,follow`}]:[{name:`robots`,content:`noindex,follow`}]],links:r?[{rel:`canonical`,href:t_(i,s)}]:n_(i,t),scripts:l?[{type:`application/ld+json`,children:o_(l)}]:void 0}},component:F(uy,`component`)}),py=P(`/photo-effects/$slug`)({loader:async({params:e})=>{let t=ji.get(e.slug);if(!t)throw ke();let n=D(),r={...t,title:Ti(t.title,n),description:Ei(t.description,t.title,n,`photo-effects/${t.slug}`),marketing:await U_({data:{category:`photo-effects`,slug:t.slug,locale:n}})};return{item:r,title:Zt({title:r.title,app:Nr.app_name},{locale:n}),description:mn({title:r.title},{locale:n})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./_slug-DUQRz_3x.js`),__vite__mapDeps([151,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,139,13,35,127,62,64,114,16,72,23,87,65,32,4,5,33,34,36,37,66,17,28,88,140,113,131,90,39,141,110,142,27,78,79,93])),`component`)}),my=P(`/image-tools/$slug`)({loader:async({params:e})=>{let t=Mi.get(e.slug);if(!t)throw ke();let n=D(),r={...t,title:Ti(t.title,n),description:Ei(t.description,t.title,n,`image-tools/${t.slug}`),marketing:await U_({data:{category:`image-tools`,slug:t.slug,locale:n}})};return{item:r,title:Mn({title:r.title,app:Nr.app_name},{locale:n}),description:An({title:r.title},{locale:n})}},head:({loaderData:e})=>({meta:e?[{title:e.title},{name:`description`,content:e.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]:[]}),component:F(()=>I(()=>import(`./_slug-CRhKtHhl.js`),__vite__mapDeps([152,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,139,13,35,127,62,64,114,16,72,23,87,65,32,4,5,33,34,36,37,66,17,28,88,140,113,131,90,39,141,110,142,27,78,79,93])),`component`)}),hy=P(`/blog/$slug`)({loader:async({params:e})=>{let t=D(),n=await V_({data:{slug:e.slug,locale:t}});if(!n)throw ke();return{locale:t,post:n}},head:({loaderData:e})=>{if(!e)return{};let{locale:t,post:n}=e,r=`/blog/${n.slug}`,i={"@context":`https://schema.org`,"@graph":[{"@type":`BlogPosting`,headline:n.title,description:n.description,image:n.image?[e_(n.image)]:void 0,datePublished:n.createdAt,dateModified:n.createdAt,author:{"@type":`Organization`,name:n.authorName||Nr.app_name,url:Nr.app_url},publisher:{"@type":`Organization`,name:Nr.app_name,url:Nr.app_url,logo:{"@type":`ImageObject`,url:e_(`/logo.png`)}},mainEntityOfPage:{"@type":`WebPage`,"@id":t_(r,t)},url:t_(r,t),inLanguage:t===`zh`?`zh-CN`:`en-US`,keywords:n.keywords?.join(`, `)},...n.faq?.length?[{"@type":`FAQPage`,mainEntity:n.faq.map(e=>
51({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))}]:[],...n.howToSteps?.length?[{"@type":`HowTo`,name:n.title,description:n.description,image:n.image?e_(n.image):void 0,step:n.howToSteps.map((e,n)=>({"@type":`HowToStep`,position:n+1,name:e.name,text:e.text,url:`${t_(r,t)}#step-${n+1}`}))}]:[]]};return{meta:[...r_({title:`${n.title} | ${Nr.app_name}`,description:n.description,path:r,image:n.image,locale:t,type:`article`}),{name:`robots`,content:`index, follow`}],links:n_(r,t),scripts:[{type:`application/ld+json`,children:o_(i)}]}},component:F(()=>I(()=>import(`./_slug-Ddqye8vo.js`),__vite__mapDeps([153,1,12,14,6,7,154,113,10,137,87,65,32,2,4,5,33,34,36,37,66,17,54,28,97,11,51,68,9,73,74,75,13,27,76,77,84,85,26,123])),`component`)}),gy=P(`/(auth)/verify-email`)({validateSearch:e=>({email:typeof e.email==`string`?e.email:``,callbackUrl:typeof e.callbackUrl==`string`?e.callbackUrl:`/`}),head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:F(()=>I(()=>import(`./verify-email-CwaXrAPt.js`),__vite__mapDeps([155,1,2,11,12,14,6,7,10,16,26])),`component`)}),_y=P(`/(auth)/sign-up`)({validateSearch:e=>({callbackUrl:typeof e.callbackUrl==`string`?e.callbackUrl:`/`}),head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:F(()=>I(()=>import(`./sign-up-D-nbzdvH.js`),__vite__mapDeps([156,1])),`component`)}),vy=()=>I(()=>import(`./sign-in-DJ7LAi8J.js`),[]);function yy(e,t){return Or(e,t)}var by=P(`/(auth)/sign-in`)({validateSearch:e=>({callbackUrl:typeof e.callbackUrl==`string`?e.callbackUrl:`/`,method:typeof e.method==`string`?e.method:``}),beforeLoad:({search:e})=>{let t=e.method===`email`?`password-sign-in`:`showcase`;throw Oe({href:Wn(yy(e.callbackUrl,t)),replace:!0,statusCode:302})},head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:F(vy,`component`)}),xy=P(`/(auth)/reset-password`)({validateSearch:e=>({token:typeof e.token==`string`?e.token:void 0,callbackUrl:typeof e.callbackUrl==`string`?e.callbackUrl:`/`,error:typeof e.error==`string`?e.error:void 0}),head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:F(()=>I(()=>import(`./reset-password-DWkLmnuF.js`),__vite__mapDeps([157,1,158,2,11,12,14,6,7,113,10,16,17,26,41,13,27])),`component`)}),Sy=P(`/(auth)/redeem-invite`)({component:F(()=>I(()=>import(`./redeem-invite-D9aO08DJ.js`),__vite__mapDeps([159,1,2,11,12,14,6,7,54])),`component`)}),Cy=P(`/(auth)/forgot-password`)({validateSearch:e=>({callbackUrl:typeof e.callbackUrl==`string`?e.callbackUrl:`/`,email:typeof e.email==`string`?e.email:``}),head:()=>({meta:[{name:`robots`,content:`noindex, nofollow`}]}),component:F(()=>I(()=>import(`./forgot-password-hr0O0LiG.js`),__vite__mapDeps([160,1,158,2,11,12,14,6,7,113,10,16,17,26,41,13,27])),`component`)}),wy=P(`/settings/`)({component:F(()=>I(()=>import(`./settings-aiBW9Q-c.js`),__vite__mapDeps([161,1,11,12,13,10,38,116,27])),`component`)}),Ty=P(`/settings/tickets`)({component:F(()=>I(()=>import(`./tickets-CXk4bvQu.js`),__vite__mapDeps([162,1,74,2,4,5,6,7,3,8,9,10,12,13,163,57,34,22,131,164,165,107,19,20,21,23,24,25,143,27])),`component`)}),Ey=P(`/settings/profile`)({component:F(()=>I(()=>import(`./profile-BnYqjK_Y.js`),__vite__mapDeps([166,1,2,12,13,35,19,6,20,21,10,22,23,9,24,27])),`component`)}),Dy=P(`/settings/payments`)({component:F(()=>I(()=>import(`./payments-B3Sf1mmF.js`),__vite__mapDeps([167,1,12,13,163,2,57,10,34,22,131,164,15,143,27])),`component`)}),Oy=P(`/settings/credits`)({component:F(()=>I(()=>import(`./credits-C-hqXuIa.js`),__vite__mapDeps([168,1,2,12,13,14,6,7,163,57,10,34,22,131,164,61,143,27])),`component`)}),ky=P(`/settings/creations`)({beforeLoad:()=>{throw Oe({href:`/?view=history`,statusCode:302})}}),Ay=P(`/settings/billing`)({component:F(()=>I(()=>import(`./billing-C6XnQcjB.js`),__vite__mapDeps([169,1,2,32,4,5,6,7,33,34,10,3,8,9,12,13,35,14,163,57,22,131,164,59,129,63,120,17,130,19,143,27,28])),`component`)}),jy=P(`/settings/apikeys`)({component:F(()=>I(()=>import(`./apikeys-BpJtV3O_.js`),__vite__mapDeps([170,1,2,3,4,5,6,7,8,9,10,12,13,35,163,57,34,22,131,164,107,72,19,24,27])),`component`)}),My=P(`/admin/`)({component:F(()=>I(()=>import(`./admin-Sy73mVZd.js`),__vite__mapDeps([171,1,12,13,10,77,27])),`component`)}),Ny=P(`/admin/users`)({component:F(()=>I(()=>import(`./users-TGySkmQI.js`),__vite__mapDeps([172,1,74,2,4,5,6,7,173,47,49,36,10,32,33,34,3,8,9,12,13,35,163,57,22,131,164,61,129,77,19,27,174])),`component`)}),Py=P(`/admin/tickets`)({component:F(()=>I(()=>import(`./tickets-Dso4ysif.js`),__vite__mapDeps([175,1,74,2,4,5,6,7,173,47,49,36,10,3,8,9,12,13,163,57,34,22,131,164,165,19,20,21,23,24,25,143,27])),`component`)}),Fy=P(`/admin/support-email`)({component:F(()=>I(()=>import(`./support-email-w5PhK5Pi.js`),__vite__mapDeps([176,1,2,17,10,18,19,6,24,25,27])),`component`)}),Iy=P(`/admin/subscriptions`)({component:F(()=>I(()=>import(`./subscriptions-CI2DVCAx.js`),__vite__mapDeps([177,1,12,13,163,2,57,10,34,22,131,164,143,27])),`component`)}),Ly=P(`/admin/settings`)({component:F(()=>I(()=>import(`./settings-B8YXcjzB.js`),__vite__mapDeps([178,1,2,173,4,5,6,7,47,49,36,10,46,33,37,3,8,9,48,12,13,35,58,59,16,106,107,19,24,143,27,44])),`component`)}),Ry=()=>I(()=>import(`./roles-BmtmDxzD.js`),__vite__mapDeps([179,1,2,173,4,5,6,7,47,49,36,10,3,8,9,12,13,35,163,57,34,22,131,164,130,107,72,19,27]));gh({name:zm().min(1),title:zm().min(1),description:zm()});var zy=P(`/admin/roles`)({component:F(Ry,`component`)}),By=()=>I(()=>import(`./posts-DJI0WvmG.js`),__vite__mapDeps([180,1,2,46,4,5,6,7,33,47,10,36,37,3,8,9,12,13,35,163,57,34,22,131,164,154,21,67,16,106,130,107,72,19,24,143,27]));gh({slug:zm().min(1),title:zm().min(1),description:zm(),content:zm(),categories:zm(),authorName:zm(),status:zm()});var Vy=P(`/admin/posts`)({component:F(By,`component`)}),Hy=P(`/admin/permissions`)({component:F(()=>I(()=>import(`./permissions-Yef3tvyc.js`),__vite__mapDeps([181,1,2,3,4,5,6,7,8,9,10,12,13,35,163,57,34,22,131,164,130,107,72,19,24,27])),`component`)}),Uy=P(`/admin/payments`)({component:F(()=>I(()=>import(`./payments-puDDi3e3.js`),__vite__mapDeps([182,1,12,13,163,2,57,10,34,22,131,164,143,27,174])),`component`)});function Wy(e){if(e==null||e===``)return`—`;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?`—`:new Intl.DateTimeFormat(D().startsWith(`zh`)?`zh-CN`:`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}).format(t)}
51function Gy(e,t,n){return[e,...t].filter((e,t,n)=>!!e&&n.indexOf(e)===t).find(e=>!n.has(e))}function Ky(e){return Br(e.defaultTagName??`div`,e,e)}var qy=Hr(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function Jy({className:e,variant:t=`default`,render:n,...r}){return Ky({defaultTagName:`span`,props:zr({className:a(qy({variant:t}),e)},r),render:n,state:{slot:`badge`,variant:t}})}function Yy({className:e,size:t=`default`,...n}){return(0,A.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:a(`group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function Xy({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`card-header`,className:a(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function Zy({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`card-title`,className:a(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function Qy({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`card-description`,className:a(`text-sm text-muted-foreground`,e),...t})}function $y({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`card-content`,className:a(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}function eb({className:e,...t}){return(0,A.jsx)(`div`,{"data-slot":`card-footer`,className:a(`flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3`,e),...t})}var tb=[`pending`,`selected`,`rejected`,`all`];function nb(e){return{pending:_t(),selected:Je(),rejected:Xe(),all:vn()}[e]||e}function rb(e){return e===`selected`?`default`:e===`rejected`?`destructive`:`secondary`}function ib(){let e=_r(),[t,n]=(0,k.useState)(`pending`),r=yr({queryKey:[`admin-lemgen-submissions`,t],queryFn:()=>{let e=new URLSearchParams;return t!==`all`&&e.set(`status`,t),gi(`/api/admin/lemgen/submissions?${e}`)}}),i=Cr({mutationFn:e=>hi(`/api/admin/lemgen/submissions`,e),onSuccess:()=>{fi.success(nr()),e.invalidateQueries({queryKey:[`admin-lemgen-submissions`]})},onError:e=>fi.error(e.message)}),o=r.data||[];return(0,A.jsxs)(`div`,{className:`space-y-6 p-6`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`h1`,{className:`text-2xl font-bold`,children:hn()}),(0,A.jsx)(`p`,{className:`text-muted-foreground`,children:Ve()})]}),(0,A.jsx)(`div`,{className:`border-border flex gap-1 overflow-x-auto overflow-y-hidden border-b`,children:tb.map(e=>(0,A.jsx)(`button`,{type:`button`,onClick:()=>n(e),className:a(`-mb-px border-b-2 px-4 py-2 text-sm font-medium whitespace-nowrap transition-colors`,t===e?`border-primary text-foreground`:`text-muted-foreground hover:text-foreground border-transparent`),children:nb(e)},e))}),(0,A.jsx)(Yy,{children:(0,A.jsx)($y,{className:`space-y-4`,children:r.isFetching?(0,A.jsx)(`div`,{className:`text-muted-foreground py-10 text-center text-sm`,children:Dt()}):o.length?o.map(e=>(0,A.jsx)(ab,{item:e,reviewing:i.isPending,onReview:t=>i.mutate({id:e.id,status:t})},e.id)):(0,A.jsx)(`div`,{className:`text-muted-foreground py-10 text-center text-sm`,children:Qn()})})})]})}function ab({item:e,reviewing:t,onReview:n}){let r=e.referenceImages||[],[i,a]=(0,k.useState)(()=>new Set),o=(0,k.useRef)(null),s=Gy(e.imageUrl,r,i),c=(0,k.useCallback)(e=>{a(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})},[]);return(0,k.useEffect)(()=>{let e=o.current;
51s&&e?.complete&&e.naturalWidth===0&&c(s)},[s,c]),(0,A.jsxs)(`article`,{className:`grid gap-4 rounded-xl border p-4 md:grid-cols-[160px_1fr]`,children:[(0,A.jsx)(`div`,{className:`bg-muted overflow-hidden rounded-xl`,children:s?(0,A.jsx)(`img`,{ref:o,src:s,alt:``,className:`aspect-square w-full object-cover md:aspect-[4/5]`,onError:()=>c(s)}):(0,A.jsxs)(`div`,{className:`text-muted-foreground flex aspect-square flex-col items-center justify-center gap-2 px-4 text-center text-sm md:aspect-[4/5]`,children:[(0,A.jsx)(ic,{className:`size-6`}),(0,A.jsx)(`span`,{children:Ke()})]})}),(0,A.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[(0,A.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,A.jsxs)(`div`,{className:`min-w-0`,children:[(0,A.jsxs)(`div`,{className:`mb-2 flex items-center gap-2`,children:[(0,A.jsx)(Jy,{variant:rb(e.status),children:nb(e.status)}),(0,A.jsx)(`span`,{className:`text-muted-foreground text-xs whitespace-nowrap tabular-nums`,children:Wy(e.createdAt)})]}),(0,A.jsx)($r,{text:e.prompt||e.note||e.workUrl||``,className:`text-sm leading-6 whitespace-pre-wrap`,collapsedClassName:`line-clamp-3`,buttonClassName:`mt-1.5 text-xs text-foreground`,threshold:180,collapsedLines:3})]}),(0,A.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,A.jsxs)(Ur,{size:`sm`,disabled:t||e.status===`selected`&&!!e.rewardGrantedAt,onClick:()=>n(`selected`),children:[(0,A.jsx)(ei,{className:`size-4`}),Tt()]}),(0,A.jsxs)(Ur,{size:`sm`,variant:`secondary`,disabled:t||e.status===`pending`,onClick:()=>n(`pending`),children:[(0,A.jsx)(li,{className:`size-4`}),er()]}),(0,A.jsxs)(Ur,{size:`sm`,variant:`destructive`,disabled:t||e.status===`rejected`,onClick:()=>n(`rejected`),children:[(0,A.jsx)(di,{className:`size-4`}),qt()]})]})]}),(0,A.jsxs)(`div`,{className:`grid gap-3 text-sm md:grid-cols-2`,children:[(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`div`,{className:`text-muted-foreground mb-1 text-xs`,children:Yn()}),e.communityUrl?(0,A.jsxs)(`a`,{href:e.communityUrl,target:`_blank`,rel:`noreferrer`,className:`inline-flex max-w-full items-center gap-1 truncate underline underline-offset-4`,children:[(0,A.jsx)(`span`,{className:`truncate`,children:e.communityUrl}),(0,A.jsx)(ii,{className:`size-3.5 shrink-0`})]}):(0,A.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})]}),(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`div`,{className:`text-muted-foreground mb-1 text-xs`,children:Ht()}),(0,A.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,A.jsxs)(`span`,{children:[e.rewardCredits,` /`,` `,e.rewardGrantedAt?sn():ln()]}),e.publishedPromptId?(0,A.jsxs)(`a`,{href:Iv({id:e.publishedPromptId,title:e.note||e.prompt,model:`Community`,tag:`Community`,prompt:e.prompt}),target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-xs font-medium underline underline-offset-4`,children:[Nn(),(0,A.jsx)(ii,{className:`size-3`})]}):null]})]})]}),r.length?(0,A.jsxs)(`div`,{children:[(0,A.jsx)(`div`,{className:`text-muted-foreground mb-2 text-xs`,children:Tn()}),(0,A.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:r.map(e=>(0,A.jsx)(`img`,{src:e,alt:``,className:`size-16 rounded-lg object-cover`},e))})]}):null]})]})}var ob=P(`/admin/lemgen-submissions`)({component:ib}),sb=()=>I(()=>import(`./invite-codes-gtp0fFor.js`),__vite__mapDeps([183,1,2,3,4,5,6,7,8,9,10,12,13,35,163,57,34,22,131,164,128,107,72,19,24,143,27]));gh({count:Kh().min(1),maxUses:Kh().min(1),trialDays:Kh().min(1),note:zm(),expiresAt:zm()});var cb=P(`/admin/invite-codes`)({component:F(sb,`component`)}),lb=P(`/admin/expert-requests`)({component:F(()=>I(()=>import(`./expert-requests-D9TgZ8Nk.js`),__vite__mapDeps([184,1,2,13,35,163,12,57,10,34,22,131,164,19,6,27])),`component`)}),ub=P(`/admin/credits`)({component:F(()=>I(()=>import(`./credits-B2SfKiQj.js`),__vite__mapDeps([185,1,12,13,163,2,57,10,34,22,131,164,143,27])),`component`)}),db=()=>I(()=>import(`./categories-Ctz3qrbi.js`),__vite__mapDeps([186,1,2,3,4,5,6,7,8,9,10,12,13,35,163,57,34,22,131,164,130,107,72,19,27]));gh({slug:zm().min(1),title:zm().min(1),description:zm()});var fb=P(`/admin/categories`)({component:F(db,`component`)}),pb=P(`/admin/analytics`)({validateSearch:e=>({range:e.range===`7d`||e.range===`90d`?e.range:`30d`}),component:F(()=>I(()=>import(`./analytics-B0qPjcOm.js`),__vite__mapDeps([187,1,2,12,13,14,6,7,22,10,164,27])),`component`)}),mb=P(`/(pages)/terms-zh`)({beforeLoad:()=>{throw Oe({href:`/zh/terms-of-service`,statusCode:301})}}),hb={},gb=k.createContext(hb);function $(e){let t=k.useContext(gb);return k.useMemo(function(){return typeof e==`function`?e(t):{...t,...e}},[t,e])}function _b(e){let t;return t=e.disableParentContext?typeof e.components==`function`?e.components(hb):e.components||hb:$
51(e.components),k.createElement(gb.Provider,{value:t},e.children)}var vb=i({default:()=>xb,meta:()=>yb}),yb={title:`About LemGen`,description:`Learn how LemGen helps teams turn structured ideas into polished AI images.`,updated_at:`2026-08-22`};function bb(e){let t={a:`a`,h2:`h2`,p:`p`,strong:`strong`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`A practical workspace for visual ideas`}),`
52`,(0,A.jsx)(t.p,{children:`LemGen helps creators, marketers, and small teams move from a rough brief to a usable visual without losing the human decisions that make the work distinctive.`}),`
53`,(0,A.jsx)(t.p,{children:`You can explore prompt workflows, create images, review variations, and keep the strongest results close to the brief that produced them.`}),`
54`,(0,A.jsx)(t.h2,{children:`Built for iteration`}),`
55`,(0,A.jsx)(t.p,{children:`Good visual work rarely arrives in one pass. LemGen keeps prompts, references, and results connected so you can compare directions, refine the brief, and return to a useful idea later.`}),`
56`,(0,A.jsx)(t.h2,{children:`Credits and account clarity`}),`
57`,(0,A.jsxs)(t.p,{children:[`Current plans and credit options are listed on `,(0,A.jsx)(t.a,{href:`/pricing`,children:`Pricing`}),`. Before starting a paid generation, check the displayed credit cost and the selected workflow.`]}),`
58`,(0,A.jsx)(t.h2,{children:`Trust and support`}),`
59`,(0,A.jsxs)(t.p,{children:[`For account, billing, credit, or generation questions, email `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),`. Include your account email, order number, task ID, screenshots, and a short description when possible.`]}),`
60`,(0,A.jsx)(t.p,{children:`Please make sure you have the right to use any uploaded images, logos, people, and brand materials.`})]})}function xb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(bb,{...e})}):bb(e)}var Sb=i({default:()=>Tb,meta:()=>Cb}),Cb={title:`关于 LemGen`,description:`了解 LemGen 如何帮助团队把结构化想法变成更成熟的 AI 图片。`,updated_at:`2026-08-22`};function wb(e){let t={a:`a`,h2:`h2`,p:`p`,strong:`strong`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`为视觉创作准备的实用工作台`}),`
61`,(0,A.jsx)(t.p,{children:`LemGen 帮助创作者、营销人员和小团队把模糊的想法整理成可执行的视觉方案,同时保留真正重要的人为判断。`}),`
62`,(0,A.jsx)(t.p,{children:`你可以探索提示词工作流、生成图片、比较不同版本,并让提示词、参考素材和结果保持关联。`}),`
63`,(0,A.jsx)(t.h2,{children:`为反复打磨而设计`}),`
64`,(0,A.jsx)(t.p,{children:`好的视觉作品很少一次完成。LemGen 让提示词、参考图和生成结果保持在同一条工作流中,方便比较方向、调整描述,并在之后继续完善。`}),`
65`,(0,A.jsx)(t.h2,{children:`积分与账户说明`}),`
66`,(0,A.jsxs)(t.p,{children:[`当前套餐和积分选项请查看`,(0,A.jsx)(t.a,{href:`/pricing`,children:`价格页面`}),`。开始付费生成前,请确认页面显示的积分消耗和所选工作流。`]}),`
67`,(0,A.jsx)(t.h2,{children:`信任与支持`}),`
68`,(0,A.jsxs)(t.p,{children:[`如果你遇到账户、账单、积分或生成问题,请发送邮件至 `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),`。建议附上账户邮箱、订单号、任务 ID、截图和简短说明。`]}),`
69`,(0,A.jsx)(t.p,{children:`请确认你拥有上传图片、Logo、人物和品牌素材的合法使用权。`})]})}function Tb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(wb,{...e})}):wb(e)}var Eb=i({default:()=>kb,meta:()=>Db}),Db={title:`Acceptable Use Policy`,description:`Lem Gen rules for AI content standards, moderation, reporting, and enforcement.`,updated_at:`2026-08-14`};function Ob(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`1. Scope`}),`
70`,(0,A.jsx)(t.p,{children:`Lem Gen is committed to providing safe, lawful, and responsible AI content services. This Policy applies to all content searched, entered, uploaded, generated, edited, published, distributed, or stored through Lem Gen, including prompts, text, images, illustrations, audio, video, reference materials, generated outputs, and associated metadata. Every user must comply with this Policy.`}),`
71`,(0,A.jsx)(t.h2,{children:`2. Content Standards and Prohibited Categories`}),`
72`,(0,A.jsx)(t.p,{children:`Lem Gen prohibits generating, distributing, or facilitating the following six categories:`}),`
73`,(0,A.jsxs)(t.ul,{children:[`
74`,(0,A.jsx)(t.li,{children:`Pornography, explicit sexual material, or other NSFW content.`}),`
75`,(0,A.jsx)(t.li,{children:`Violence, severe gore, dismemberment, or content intended to facilitate harm.`}),`
76`,(0,A.jsx)(t.li,{children:`Hate speech or content promoting discrimination, harassment, or violence based on protected characteristics.`}),`
77`,(0,A.jsx)(t.li,{children:`Child-unsafe content, including child sexual abuse material (CSAM).`}),`
78`,(0,A.jsx)(t.li,{children:`Non-consensual deepfakes, impersonation, or deceptive synthetic media targeting real people.`}),`
79`,(0,A.jsx)(t.li,{children:`Content infringing copyright, trademarks, publicity, privacy, or other third-party rights.`}),`
80`]}),`
81`,(0,A.jsx)(t.h3,{children:`2.1 Absolutely Prohibited—Zero Tolerance`}),`
82`,(0,A.jsx)(t.p,{children:`The following content will be actioned immediately and may be reported to the appropriate authorities:`}),`
83`,(0,A.jsxs)(t.ul,{children:[`
84`,(0,A.jsx)(t.li,{children:`CSAM, any sexual content involving minors, or sexualized depictions of real, fictional, synthetic, or age-amb
84iguous minors.`}),`
85`,(0,A.jsx)(t.li,{children:`Content promoting, recruiting for, or facilitating terrorism, extremism, or mass violence.`}),`
86`,(0,A.jsx)(t.li,{children:`Technical instructions for weapons of mass destruction.`}),`
87`,(0,A.jsx)(t.li,{children:`Content inciting genocide, ethnic hatred, or violence against a protected group.`}),`
88`,(0,A.jsx)(t.li,{children:`Non-consensual deepfake sexual content targeting a real person.`}),`
89`,(0,A.jsx)(t.li,{children:`Other content that violates applicable law or creates an imminent risk of serious real-world harm.`}),`
90`]}),`
91`,(0,A.jsx)(t.h3,{children:`2.2 Restricted—Subject to Review`}),`
92`,(0,A.jsxs)(t.ul,{children:[`
93`,(0,A.jsx)(t.li,{children:`Non-graphic violent material with a clear journalistic, educational, historical, medical, or artistic context.`}),`
94`,(0,A.jsx)(t.li,{children:`Politically sensitive content or synthetic media that may mislead the public.`}),`
95`,(0,A.jsx)(t.li,{children:`Medical, legal, or financial information, which must not impersonate a licensed professional or be presented as personalized professional advice.`}),`
96`]}),`
97`,(0,A.jsx)(t.p,{children:`Pornography and NSFW material are prohibited, not restricted content.`}),`
98`,(0,A.jsx)(t.h3,{children:`2.3 Generally Prohibited Conduct`}),`
99`,(0,A.jsxs)(t.ul,{children:[`
100`,(0,A.jsx)(t.li,{children:`Creating or spreading misinformation, disproven claims, or deceptive commercial content.`}),`
101`,(0,A.jsx)(t.li,{children:`Impersonating a real person, brand, organization, or government entity.`}),`
102`,(0,A.jsx)(t.li,{children:`Deliberately passing AI-generated content off as human-created to deceive or harm others.`}),`
103`,(0,A.jsx)(t.li,{children:`Bulk-generating spam, phishing content, malware, or instructions for bypassing security controls.`}),`
104`,(0,A.jsx)(t.li,{children:`Using jailbreak prompts, fragmented instructions, encoding, or other techniques to evade safety controls.`}),`
105`,(0,A.jsx)(t.li,{children:`Uploading or using personal data, confidential information, or protected material you are not authorized to process.`}),`
106`]}),`
107`,(0,A.jsx)(t.h2,{children:`3. Content Moderation`}),`
108`,(0,A.jsx)(t.p,{children:`We use layered moderation combining automated checks, human review, and periodic audits.`}),`
109`,(0,A.jsx)(t.h3,{children:`3.1 Automated Review`}),`
110`,(0,A.jsxs)(t.ul,{children:[`
111`,(0,A.jsx)(t.li,{children:`Prompts may be checked for risky keywords, semantic meaning, and intent.`}),`
112`,(0,A.jsx)(t.li,{children:`Inputs and generated outputs may be reviewed through AI-provider and platform safety controls.`}),`
113`,(0,A.jsx)(t.li,{children:`We may analyze anomalous request volume, repeated circumvention, and other high-risk usage patterns.`}),`
114`,(0,A.jsx)(t.li,{children:`High-risk requests may be rejected before generation or restricted afterward.`}),`
115`]}),`
116`,(0,A.jsx)(t.h3,{children:`3.2 Human Review`}),`
117`,(0,A.jsxs)(t.ul,{children:[`
118`,(0,A.jsx)(t.li,{children:`Automatically flagged, user-reported, or payment-partner-referred content may enter human review.`}),`
119`,(0,A.jsx)(t.li,{children:`Reviewers access relevant content only as needed for investigation, safety, dispute resolution, or legal compliance.`}),`
120`,(0,A.jsx)(t.li,{children:`Automated systems can make mistakes; users may request review through the channels below.`}),`
121`]}),`
122`,(0,A.jsx)(t.h3,{children:`3.3 Periodic Audits`}),`
123`,(0,A.jsx)(t.p,{children:`Based on risk and service scale, we may sample public and flagged content and evaluate the accuracy of safety controls. Moderation measures may change in response to new abuse patterns, legal duties, or partner requirements.`}),`
124`,(0,A.jsx)(t.h3,{children:`3.4 Severity Levels`}),`
125`,(0,A.jsx)(t.p,{children:`| Level       | Example                                                 | Review                                     | Action                                    |
126| ----------- | ------------------------------------------------------- | ------------------------------------------ | ----------------------------------------- |
127| L1—Critical | Child safety, terrorism, credible mass-violence threats | Auto-block and priority human confirmation | Immediate ban and legally required report |
128| L2—High     | Severe violence, non-consensual deepfakes, major fraud  | Auto-flag and priority review              | Remove c
128ontent and suspend account        |
129| L3—Medium   | General infringement, hate, impersonation, or deception | Human review                               | Warning, removal, or feature restriction  |
130| L4—Low      | Minor or first-time violation                           | Report-triggered or sampled                | Warning and required edit                 |`}),`
131`,(0,A.jsx)(t.h2,{children:`4. Reporting`}),`
132`,(0,A.jsx)(t.p,{children:`You may report content or behavior that violates this Policy, critical child-safety or terrorism risks, AI impersonation, or infringement of your copyright, trademark, publicity, or privacy rights.`}),`
133`,(0,A.jsx)(t.p,{children:`Our reporting principles are:`}),`
134`,(0,A.jsxs)(t.ul,{children:[`
135`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Confidentiality:`}),` We protect reporter identity and contact details to the extent permitted by law.`]}),`
136`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Impartiality:`}),` Reports are objectively reviewed based on the available evidence.`]}),`
137`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Anti-abuse:`}),` Malicious, harassing, or knowingly false reports may be recorded and restricted.`]}),`
138`]}),`
139`,(0,A.jsx)(t.h2,{children:`5. Reporting Channels`}),`
140`,(0,A.jsxs)(t.ul,{children:[`
141`,(0,A.jsxs)(t.li,{children:[`Submit a `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`support ticket`}),` after signing in.`]}),`
142`,(0,A.jsxs)(t.li,{children:[`Email `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` with “Content Safety Report” in the subject line.`]}),`
143`]}),`
144`,(0,A.jsx)(t.p,{children:`Where possible, provide the content URL, screenshots, relevant account, description, date, and evidence of any rights you assert. If anyone is in immediate danger, also contact the appropriate local law-enforcement or emergency authority.`}),`
145`,(0,A.jsx)(t.h2,{children:`6. Response and Processing Targets`}),`
146`,(0,A.jsx)(t.p,{children:`| Severity    | Target initial response | Target resolution       |
147| ----------- | ----------------------- | ----------------------- |
148| L1—Critical | Within 2 hours          | Within 24 hours         |
149| L2—High     | Within 24 hours         | Within 3 business days  |
150| L3—Medium   | Within 3 business days  | Within 7 business days  |
151| L4—Low      | Within 5 business days  | Within 15 business days |`}),`
152`,(0,A.jsx)(t.p,{children:`These are targets under normal conditions. Complex, cross-border, or third-party-dependent matters may require additional time; where practical, we will notify the reporter. The usual workflow is receipt, triage, automated and human review, decision, enforcement, and notification.`}),`
153`,(0,A.jsx)(t.h2,{children:`7. Enforcement Actions`}),`
154`,(0,A.jsx)(t.p,{children:`Depending on the nature, severity, impact, and history of a violation, we may take one or more of the following actions:`}),`
155`,(0,A.jsxs)(t.ol,{children:[`
156`,(0,A.jsx)(t.li,{children:`Issue a written warning and require an edit or an end to the conduct.`}),`
157`,(0,A.jsx)(t.li,{children:`Refuse generation, hide, remove, or restrict violating content.`}),`
158`,(0,A.jsx)(t.li,{children:`Restrict model, credit, payment, sharing, or other features.`}),`
159`,(0,A.jsx)(t.li,{children:`Temporarily suspend an account while an investigation is pending.`}),`
160`,(0,A.jsx)(t.li,{children:`Permanently terminate an account for L1 or repeated severe violations and prevent circumvention or repeat registration.`}),`
161`,(0,A.jsx)(t.li,{children:`Preserve necessary evidence, cooperate with rights holders, payment partners, or law enforcement, and report suspected criminal L1 violations where required or permitted by law.`}),`
162`]}),`
163`,(0,A.jsx)(t.p,{children:`We may act immediately without prior warning for serious, repeated, or deliberate violations. Unused credits, subscription benefits, and refunds will be handled under applicable law, the Terms, and the Refund Policy.`}),`
164`,(0,A.jsx)(t.h2,{children:`8. Appeals`}),`
165`,(0,A.jsxs)(t.p,{children:[`An affected user may appeal within 14 days of receiving a decision by submitting a `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`support ticket`}),` or emailing `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` with relevant order, content, context, and supporting evidence. We normally review appeals within 10 business days and, where practical, use a reviewer who did not make the original decision. An appeal does not automatically pause temporary measures needed to protect users or public safety.`]}),`
166`,(0,A.jsx)(t.h2,{children:`9. Policy Updates`}),`
167`,(0,A.jsx)(t.p,{children:`We may update this Policy as the product, risks, law, or partner requirements change. Material changes will normally be announced through the site or service at least 15 days in advance, except where urgent safety or legal requirements require immediate effect. Continued use of Lem Gen constitutes acceptance of the updated Policy.`}),`
168`,(0,A.jsx)(t.h2,{children:`10. Contact Us`}),`
169`,(0,A.jsxs)(t.p,{children:[`Content safety, reporting, and appeals: `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})]}),`
170`,(0,A.jsxs)(t.p,{children:[`Online support: `,(0,A.jsx)(t.a,{href:`https://lemgen.org/settings/tickets`,children:`https://lemgen.org/settings/tickets`})]})]})}function kb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Ob,{...e})}):Ob(e)}var Ab=i({default:()=>Nb,meta:()=>jb}),jb={title:`可接受使用政策`,description:`Lem Gen 的 AI 内容标准、审核、举报与违规处置规则。`,updated_at:`2026-08-14`};function Mb(e){let t={a:`a`,h2:`h2`,h3:`h3`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`1. 适用范围`}),`
171`,(0,A.jsx)(t.p,{children:`Lem Gen 致力于提供安全、合法且负责任的 AI 内容服务。本政策适用于通过 Lem Gen 搜索、输入、上传、生成、编辑、发布、分发或存储的所有内容,包括提示词、文字、图片、插图、音频、视频、参考素材、生成结果以及相关元数据。所有用户均须遵守本政策。`}),`
172`,(0,A.jsx)(t.h2,{children:`2. 内容标准与禁止类别`}),`
173`,(0,A.jsx)(t.p,{children:`Lem Gen 禁止生成、传播或协助制作以下六类内容:`}),`
174`,(0,A.jsxs)(t.ul,{children:[`
175`,(0,A.jsx)(t.li,{children:`色情、露骨性内容或其他 NSFW 内容。`}),`
176`,(0,A.jsx)(t.li,{children:`暴力、严重血腥、肢解或以伤害为目的的内容。`}),`
177`,(0,A.jsx)(t.li,{children:`仇恨言论,或基于受保护特征煽动歧视、骚扰或暴力的内容。`}),`
178`,(0,A.jsx)(t.li,{children:`危害儿童安全的内容,包括儿童性虐待材料(CSAM)。`}),`
179`,(0,A.jsx)(t.li,{children:`未经同意针对真实人物的深度伪造、冒充或欺骗性合成内容。`}),`
180`,(0,A.jsx)(t.li,{children:`侵犯著作权、商标权、肖像权、隐私权或其他第三方权利的内容。`}),`
181`]}),`
182`,(0,A.jsx)(t.h3,{children:`2.1 绝对禁止——零容忍`}),`
183`,(0,A.jsx)(t.p,{children:`以下内容将被立即处置,并可能依法报告有关机构:`}),`
184`,(0,A.jsxs)(t.ul,{children:[`
185`,(0,A.jsx)(t.li,{children:`CSAM、任何涉及未成年人的性内容,或以性方式呈现真实、虚构、合成或年龄不明确的未成年人。`}),`
186`,(0,A.jsx)(t.li,{children:`宣扬、招募、协助恐怖主义、极端主义或大规模暴力的内容。`}),`
187`,(0,A.jsx)(t.li,{children:`制造或使用大规模杀伤性武器的技术指令。`}),`
188`,(0,A.jsx)(t.li,{children:`煽动种族灭绝、民族仇恨或针对受保护群体的暴力。`}),`
189`,(0,A.jsx)(t.li,{children:`针对真实人物的非自愿深度伪造色情内容。`}),`
190`,(0,A.jsx)(t.li,{children:`其他违反适用法律或可能造成迫在眉睫的严重现实伤害的内容。`}),`
191`]}),`
192`,(0,A.jsx)(t.h3,{children:`2.2 受限内容——须经审查`}),`
193`,(0,A.jsxs)(t.ul,{children:[`
194`,(0,A.jsx)(t.li,{children:`具有明确新闻、教育、历史、医学或艺术背景的非露骨暴力内容。`}),`
195`,(0,A.jsx)(t.li,{children:`可能误导公众的政治敏感内容或合成媒体。`}),`
196`,(0,A.jsx)(t.li,{children:`医疗、法律或金融信息;不得冒充持牌专业人士,也不得作为个性化专业意见使用。`}),`
197`]}),`
198`,(0,A.jsx)(t.p,{children:`色情或 NSFW 内容不属于受限内容,而是完全禁止内容。`}),`
199`,(0,A.jsx)(t.h3,{children:`2.3 一般禁止行为`}),`
200`,(0,A.jsxs)(t.ul,{children:[`
201`,(0,A.jsx)(t.li,{children:`制造或传播虚假信息、已被证伪的主张或欺骗性商业内容。`}),`
202`,(0,A.jsx)(t.li,{children:`冒充真实个人、品牌、组织或政府机构。`}),`
203`,(0,A.jsx)(t.li,{children:`将 AI 生成内容故意伪装为真人创作,以欺骗或损害他人。`}),`
204`,(0,A.jsx)(t.li,{children:`批量生成垃圾信息、钓鱼内容、恶意软件或用于规避安全措施的指令。`}),`
205`,(0,A.jsx)(t.li,{children:`使用越狱提示词、拆分指令、编码或其他方式绕过平台安全控制。`}),`
206`,(0,A.jsx)(t.li,{children:`上传或使用您无权处理的个人资料、机密信息或受保护素材。`}),`
207`]}),`
208`,(0,A.jsx)(t.h2,{children:`3. 内容审核`}),`
209`,(0,A.jsx)(t.p,{children:`我们采用自动检查、人工复核和定期抽查相结合的分层审核机制。`}),`
210`,(0,A.jsx)(t.h3,{children:`3.1 自动检查`}),`
211`,(0,A.jsxs)(t.ul,{children:[`
212`,(0,A.jsx)(t.li,{children:`对提示词进行关键词、语义和意图风险检测。`}),`
213`,(0,A.jsx)(t.li,{children:`使用 AI 模型服务商及平台安全机制检查输入和生成结果。`}),`
214`,(0,A.jsx)(t.li,{children:`分析异常请求频率、重复绕过行为和其他高风险使用模式。`}),`
215`,(0,A.jsx)(t.li,{children:`在生成前拒绝高风险请求,或在生成后限制相关内容。`}),`
216`]}),`
217`,(0,A.jsx)(t.h3,{children:`3.2 人工复核`}),`
218`,(0,A.jsxs)(t.ul,{children:[`
219`,(0,A.jsx)(t.li,{children:`自动标记、用户举报或支付合作伙伴转交的内容可进入人工复核。`}),`
220`,(0,A.jsx)(t.li,{children:`复核人员仅在调查、安全、争议处理或法律要求所需范围内访问相关内容。`}),`
221`,(0,A.jsx)(t.li,{children:`自动化审核可能出现误判;用户可以通过本政策列明的渠道申请复核。`}),`
222`]}),`
223`,(0,A.jsx)(t.h3,{children:`3.3 定期检查`}),`
224`,(0,A.jsx)(t.p,{children:`我们会根据风险和业务规模抽查公开内容及被标记内容,并持续评估安全规则和检测准确性。我们可根据新的滥用方式、法律要求或合作伙伴规则调整审核措施。`}),`
225`,(0,A.jsx)(t.h3,{children:`3.4 风险等级`}),`
226`,(0,A.jsx)(t.p,{children:`| 等级      | 示例                                     | 审核方式               | 处置                 |
227| --------- | ---------------------------------------- | ---------------------- | -------------------- |
228| L1—严重   | 儿童安全、恐怖主义、可信的大规模暴力威胁 | 自动阻止并优先人工确认 | 立即封禁并依法报告   |
229| L2—高风险 | 严重暴力、非自愿深度伪造、重大欺诈       | 自动标记并优先复核     | 删除内容并暂停账户   |
230| L3—中风险 | 一般侵权、仇恨、冒充或欺骗行为           | 人工复核               | 警告、删除或限制功能 |
231| L4—低风险 | 轻微或首次违规                           | 举报触发或抽查         | 警告并要求修改       |`}),`
232`,(0,A.jsx)(t.h2,{children:`4. 用户举报`}),`
233`,(0,A.jsx)(t.p,{children:`您可以举报违反本政策的内容或行为、涉及儿童安全或恐怖主义的严重风险、AI 冒充,以及侵犯您著作权、商标权、肖像权或隐私权的内容。`}),`
234`,(0,A.jsx)(t.p,{children:`我们遵循以下原则:`}),`
235`,(0,A.jsxs)(t.ul,{children:[`
236`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`保密性:`}),` 在法律允许的范围内保护举报人的身份和联系方式。`]}),`
237`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`公正性:`}),` 根据可获得的证据对举报进行客观审查。`]}),`
238`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`反滥用:`}),` 恶意、骚扰性或明知虚假的举报可能被记录并受到限制。`]}),`
239`]}),`
240`,(0,A.jsx)(t.h2,{children:`5. 举报渠道`}),`
241`,(0,A.jsxs)(t.ul,{children:[`
242`,(0,A.jsxs)(t.li,{children:[`登录后提交 `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`支持工单`}),`。`]}),`
243`,(0,A.jsxs)(t.li,{children:[`发送邮件至 `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`,主题注明“内容安全举报”。`]}),`
244`]}),`
245`,(0,A.jsx)(t.p,{children:`请尽可能提供内容链接、截图、相关账户、问题说明、发生时间及权利证明。若有人面临即时危é
245™©ï¼Œè¯·åŒæ—¶è”系当地执法或紧急服务机构。`}),`
246`,(0,A.jsx)(t.h2,{children:`6. 响应与处理时限`}),`
247`,(0,A.jsx)(t.p,{children:`| 风险等级  | 目标首次响应 | 目标处理时间  |
248| --------- | ------------ | ------------- |
249| L1—严重   | 2 小时内     | 24 小时内     |
250| L2—高风险 | 24 小时内    | 3 个工作日内  |
251| L3—中风险 | 3 个工作日内 | 7 个工作日内  |
252| L4—低风险 | 5 个工作日内 | 15 个工作日内 |`}),`
253`,(0,A.jsx)(t.p,{children:`上述时间为正常情况下的处理目标。复杂案件、跨境请求或需要第三方配合的案件可能需要更长时间;我们会在可行时告知举报人。处理流程通常为:接收、分类、自动与人工复核、决定、执行和通知。`}),`
254`,(0,A.jsx)(t.h2,{children:`7. 违规处置`}),`
255`,(0,A.jsx)(t.p,{children:`根据违规性质、严重程度、影响和历史记录,我们可以采取以下一项或多项措施:`}),`
256`,(0,A.jsxs)(t.ol,{children:[`
257`,(0,A.jsx)(t.li,{children:`发出书面警告并要求修改或停止相关行为。`}),`
258`,(0,A.jsx)(t.li,{children:`拒绝生成、隐藏、删除或限制违规内容。`}),`
259`,(0,A.jsx)(t.li,{children:`限制模型、积分、支付、分享或其他功能。`}),`
260`,(0,A.jsx)(t.li,{children:`在调查期间暂时暂停账户。`}),`
261`,(0,A.jsx)(t.li,{children:`对 L1 或重复严重违规永久终止账户,并阻止规避或重复注册。`}),`
262`,(0,A.jsx)(t.li,{children:`保留必要证据,配合权利人、支付合作伙伴或执法机构,并依法报告涉嫌犯罪的严重违规。`}),`
263`]}),`
264`,(0,A.jsx)(t.p,{children:`对于严重、重复或蓄意违规,我们可以不经事先警告立即行动。未使用积分、订阅权益或退款将按照适用法律、服务条款和退款政策处理。`}),`
265`,(0,A.jsx)(t.h2,{children:`8. 申诉`}),`
266`,(0,A.jsxs)(t.p,{children:[`被处置用户可以在收到决定后 14 日内,通过 `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`支持工单`}),` 或 `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` 提交申诉,并提供相关订单、内容、上下文和证明材料。我们通常会在 10 个工作日内重新审查;在可行时由未作出原决定的人员复核。申诉期间不自动暂停为保护用户或公众安全而采取的临时措施。`]}),`
267`,(0,A.jsx)(t.h2,{children:`9. 政策更新`}),`
268`,(0,A.jsx)(t.p,{children:`我们可能根据产品、风险、法律或合作伙伴要求更新本政策。重大变更通常会至少提前 15 日通过网站或服务通知;因紧急安全或法律要求必须立即生效的变更除外。继续使用 Lem Gen 即表示您接受更新后的政策。`}),`
269`,(0,A.jsx)(t.h2,{children:`10. 联系我们`}),`
270`,(0,A.jsxs)(t.p,{children:[`内容安全、举报和申诉邮箱:`,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})]}),`
271`,(0,A.jsxs)(t.p,{children:[`在线支持:`,(0,A.jsx)(t.a,{href:`https://lemgen.org/settings/tickets`,children:`https://lemgen.org/settings/tickets`})]})]})}function Nb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Mb,{...e})}):Mb(e)}var Pb=i({default:()=>Lb,meta:()=>Fb}),Fb={title:`Contact LemGen`,description:`Contact LemGen for account, billing, credit, generation, and partnership questions.`,updated_at:`2026-08-22`};function Ib(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`Support email`}),`
272`,(0,A.jsxs)(t.p,{children:[`For account, billing, credit, or generation questions, email `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),`.`]}),`
273`,(0,A.jsx)(t.p,{children:`To help us review your request faster, include:`}),`
274`,(0,A.jsxs)(t.ul,{children:[`
275`,(0,A.jsx)(t.li,{children:`The email address on your account`}),`
276`,(0,A.jsx)(t.li,{children:`Your order number or payment receipt email for billing questions`}),`
277`,(0,A.jsx)(t.li,{children:`Your task ID or a screenshot of the generation`}),`
278`,(0,A.jsx)(t.li,{children:`The model, settings, and reference materials involved`}),`
279`,(0,A.jsx)(t.li,{children:`A short description of what happened`}),`
280`]}),`
281`,(0,A.jsx)(t.h2,{children:`Partnerships and media`}),`
282`,(0,A.jsxs)(t.p,{children:[`For partnerships, media requests, affiliate questions, API ideas, or workflow collaborations, contact `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),` with a short description and the best way to reach you.`]}),`
283`,(0,A.jsx)(t.p,{children:`For billing safety, never email passwords, card numbers, or private payment credentials.`})]})}
283function Lb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Ib,{...e})}):Ib(e)}var Rb=i({default:()=>Vb,meta:()=>zb}),zb={title:`联系 LemGen`,description:`联系 LemGen,咨询账户、账单、积分、生成、合作与支持问题。`,updated_at:`2026-08-22`};function Bb(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`支持邮箱`}),`
284`,(0,A.jsxs)(t.p,{children:[`账户、账单、积分或生成问题,请发送邮件至 `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),`。`]}),`
285`,(0,A.jsx)(t.p,{children:`为了更快核查,建议附上:`}),`
286`,(0,A.jsxs)(t.ul,{children:[`
287`,(0,A.jsx)(t.li,{children:`账户邮箱`}),`
288`,(0,A.jsx)(t.li,{children:`账单问题对应的订单号或支付凭证邮箱`}),`
289`,(0,A.jsx)(t.li,{children:`任务 ID 或生成页面截图`}),`
290`,(0,A.jsx)(t.li,{children:`使用的模型、参数和参考素材`}),`
291`,(0,A.jsx)(t.li,{children:`对问题的简短描述`}),`
292`]}),`
293`,(0,A.jsx)(t.h2,{children:`合作与媒体`}),`
294`,(0,A.jsxs)(t.p,{children:[`合作、媒体、联盟推广、API 想法或工作流协作,请通过 `,(0,A.jsx)(t.strong,{children:(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`})}),` 联系我们,并简单说明合作方向和联系方式。`]}),`
295`,(0,A.jsx)(t.p,{children:`出于账单安全考虑,请不要通过邮件发送密码、银行卡号或其他私密支付凭证。`})]})}function Vb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Bb,{...e})}):Bb(e)}var Hb=i({default:()=>Gb,meta:()=>Ub}),Ub={title:`Featured Listings`,description:`Product discovery and editorial platforms that have listed or featured LemGen.`,updated_at:`2026-07-29`};function Wb(e){let t={p:`p`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.p,{children:`LemGen has been listed, featured, or referenced by the following independent
296product discovery and editorial platforms.`}),`
297`,(0,A.jsxs)(`div`,{className:`not-prose mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3`,children:[(0,A.jsx)(`a`,{href:`https://dang.ai`,target:`_blank`,rel:`dofollow noopener`,style:{display:`inline-block`,textDecoration:`none`},children:(0,A.jsx)(`img`,{src:`https://assets.dang.ai/badges/dang-verified-dark.png`,alt:`Verified on DANG!`,width:260,height:94,style:{display:`block`,width:`260px`,maxWidth:`100%`,height:`auto`,border:0,outline:`none`,textDecoration:`none`}})}),(0,A.jsx)(`a`,{href:`https://fazier.com`,target:`_blank`,children:(0,A.jsx)(`img`,{src:`https://fazier.com/api/v1//public/badges/launch_badges.svg?badge_type=launched&theme=light`,width:120,alt:`Fazier badge`})})]}),`
298`,(0,A.jsx)(t.p,{children:`These references do not imply an endorsement or formal partnership.`})]})}function Gb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Wb,{...e})}):Wb(e)}var Kb=i({default:()=>Yb,meta:()=>qb}),qb={title:`收录平台`,description:`曾收录、展示或提及 LemGen 的产品发现与媒体平台。`,updated_at:`2026-07-29`};function Jb(e){let t={p:`p`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.p,{children:`以下独立产品发现与媒体平台曾收录、展示或提及 LemGen。`}),`
299`,(0,A.jsxs)(`div`,{className:`not-prose mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3`,children:[(0,A.jsx)(`a`,{href:`https://dang.ai`,target:`_blank`,rel:`dofollow noopener`,style:{display:`inline-block`,textDecoration:`none`},children:(0,A.jsx)(`img`,{src:`https://assets.dang.ai/badges/dang-verified-dark.png`,alt:`Verified on DANG!`,width:260,height:94,style:{display:`block`,width:`260px`,maxWidth:`100%`,height:`auto`,border:0,outline:`none`,textDecoration:`none`}})}),(0,A.jsx)(`a`,{href:`https://fazier.com`,target:`_blank`,children:(0,A.jsx)(`img`,{src:`https://fazier.com/api/v1//public/badges/launch_badges.svg?badge_type=launched&theme=light`,width:120,alt:`Fazier badge`})})]}),`
300`,(0,A.jsx)(t.p,{children:`上述信息不代表 LemGen 与这些平台存在正式合作或相互背书关系。`})]})}function Yb(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Jb,{...e})}):Jb(e)}var Xb=i({default:()=>$b,meta:()=>Zb}
300),Zb={title:`Privacy Policy`,description:`How we collect, use, and protect your personal information.`,updated_at:`2026-08-14`};function Qb(e){let t={a:`a`,h2:`h2`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`Introduction`}),`
301`,(0,A.jsx)(t.p,{children:`We respect your privacy and are committed to protecting your personal data. This Privacy Policy explains how we collect, use, and safeguard your information when you use our service.`}),`
302`,(0,A.jsx)(t.h2,{children:`Information We Collect`}),`
303`,(0,A.jsx)(t.p,{children:`We collect the following types of information to provide and improve our service:`}),`
304`,(0,A.jsxs)(t.ol,{children:[`
305`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Account Information`}),` — Your name, email address, and other details you provide when creating an account.`]}),`
306`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Usage Data`}),` — Information about how you interact with the service, including features accessed, frequency of use, and interaction patterns.`]}),`
307`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Device Information`}),` — Device type, operating system, and browser type, used to optimize compatibility and performance.`]}),`
308`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Cookies`}),` — Small data files stored on your device to remember preferences and improve your experience.`]}),`
309`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Payment Information`}),` — Billing details handled by trusted third-party payment processors. We do not store full card numbers on our servers.`]}),`
310`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Creation and Moderation Data`}),` — Prompts, uploaded reference materials, generation settings, generated outputs, user reports, and records produced by automated safety checks or human review.`]}),`
311`]}),`
312`,(0,A.jsx)(t.h2,{children:`How We Use Your Information`}),`
313`,(0,A.jsx)(t.p,{children:`We use the data we collect to:`}),`
314`,(0,A.jsxs)(t.ul,{children:[`
315`,(0,A.jsx)(t.li,{children:`Provide, maintain, and improve the service.`}),`
316`,(0,A.jsx)(t.li,{children:`Process transactions and send related confirmations.`}),`
317`,(0,A.jsx)(t.li,{children:`Send technical notices, security alerts, and support messages.`}),`
318`,(0,A.jsx)(t.li,{children:`Respond to your questions, feedback, and support requests.`}),`
319`,(0,A.jsx)(t.li,{children:`Detect, prevent, and address fraud and abuse.`}),`
320`,(0,A.jsx)(t.li,{children:`Enforce content-safety rules, investigate reports, handle appeals, and comply with applicable law.`}),`
321`]}),`
322`,(0,A.jsx)(t.h2,{children:`AI Content and Uploaded Materials`}),`
323`,(0,A.jsx)(t.p,{children:`To provide AI image, video, and prompt tools, prompts, reference materials, and generation settings you submit may be transmitted to selected AI model or infrastru
323cture providers. We process this data only as needed to provide the service, perform safety review, troubleshoot problems, and meet legal obligations.`}),`
324`,(0,A.jsx)(t.p,{children:`Do not upload personal data, confidential information, identity documents, or protected third-party material that you are not authorized to use. Content suspected of violating the law, third-party rights, or our Terms, together with related safety records, may be retained for the period needed to investigate, handle appeals, prevent fraud, resolve disputes, or comply with legal obligations.`}),`
325`,(0,A.jsx)(t.h2,{children:`Data Sharing`}),`
326`,(0,A.jsx)(t.p,{children:`We do not sell your personal information. We may share data only in these limited cases:`}),`
327`,(0,A.jsxs)(t.ul,{children:[`
328`,(0,A.jsx)(t.li,{children:`With service providers who help us operate the service, under confidentiality agreements.`}),`
329`,(0,A.jsx)(t.li,{children:`To comply with legal obligations or respond to lawful requests from public authorities.`}),`
330`,(0,A.jsx)(t.li,{children:`To protect our rights, property, or safety, or that of our users.`}),`
331`]}),`
332`,(0,A.jsx)(t.h2,{children:`Data Security`}),`
333`,(0,A.jsx)(t.p,{children:`We implement industry-standard security measures including encryption in transit, access controls, and regular reviews. No method of transmission over the Internet is 100% secure, but we work continuously to protect your information.`}),`
334`,(0,A.jsx)(t.h2,{children:`Your Rights`}),`
335`,(0,A.jsx)(t.p,{children:`You have the right to access, update, export, or delete your personal information. You can do this through your account settings or by contacting us at the email address below.`}),`
336`,(0,A.jsx)(t.h2,{children:`Changes to This Policy`}),`
337`,(0,A.jsx)(t.p,{children:`We may update this Privacy Policy from time to time. We will notify you of any material changes by updating the date at the top of this page and, where appropriate, sending a notice through the service.`}),`
338`,(0,A.jsx)(t.h2,{children:`Contact Us`}),`
339`,(0,A.jsxs)(t.p,{children:[`If you have questions about this Privacy Policy or how personal data is handled, submit a `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`support ticket`}),` or contact `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]})]})}function $b(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(Qb,{...e})}):Qb(e)}var ex=i({default:()=>rx,meta:()=>tx}),tx={title:`隐私政策`,description:`我们如何收集、使用和保护您的个人信息。`,updated_at:`2026-08-14`};function nx(e){let t={a:`a`,h2:`h2`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`简介`}),`
340`,(0,A.jsx)(t.p,{children:`我们尊重您的隐私,并致力于保护您的个人数据。本《隐私政策》说明了在您使用我们的服务时,我们如何收集、使用和保护您的信息。`}),`
341`,(0,A.jsx)(t.h2,{children:`我们收集的信息`}),`
342`,(0,A.jsx)(t.p,{children:`为了提供和改进服务,我们会收集以下类型的信息:`}),`
343`,(0,A.jsxs)(t.ol,{children:[`
344`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`账户信息`}),` —— 您在创建账户时提供的姓名、电子邮箱及其他资料。`]}),`
345`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`使用数据`}),` —— 您与服务交互的信息,包括使用的功能、使用频率和交互模式。`]}),`
346`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`设备信息`}),` —— 设备类型、操作系统、浏览器类型,用于优化兼容性与性能。`]}),`
347`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`Cookie`}),` —— 存储在您设备上的小型数据文件,用于记住偏好并改善体验。`]}),`
348`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`支付信息`}),` —— 由可信的第三方支付处理方负责处理。我们不会在服务器上存储完整的银行卡号。`]}),`
349`,(0,A.jsxs)(t.li,{children:[(0,A.jsx)(t.strong,{children:`创作与审核数据`}),` —— 您提交的提示词、上传的参考素材、生成参数、生成结果、举报内容,以及自动安全检测或人工复核产生的记录。`]}),`
350`]}),`
351`,(0,A.jsx)(t.h2,{children:`我们如何使用这些信息`}),`
352`,(0,A.jsx)(t.p,{children:`我们使用收集到的数据用于:`}),`
353`,(0,A.jsxs)(t.ul,{children:[`
354`,(0,A.jsx)(t.li,{children:`提供、维护并改进服务。`}),`
355`,(0,A.jsx)(t.li,{children:`处理交易并发送相关确认。`}),`
356`,(0,A.jsx)(t.li,{children:`发送技术通知、安全提醒和支持信息。`}),`
357`,(0,A.jsx)(t.li,{children:`回复您的问题、反馈和技术支持请求。`}),`
358`,(0,A.jsx)(t.li,{children:`检测、预防和处理欺诈与滥用行为。`}),`
359`,(0,A.jsx)(t.li,{children:`执行内容安全规则,调查举报、处理申诉并遵守适用法律。`}),`
360`]}),`
361`,(0,A.jsx)(t.h2,{children:`AI 内容与上传素材`}),`
362`,(0,A.jsx)(t.p,{children:`为提供 AI 图片、视频和提示词工具,您提交的提示词、参考素材和生成参数可能会被传输给我们选用的 AI 模型或基础设施服务商。我们仅会在提供服务、安全审核、故障排查和履行法律义务所需的范围内处理这些数据。`}),`
363`,(0,A.jsx)(t.p,{children:`请勿上传您无权使用的个人资料、机密信息、身份文件或第三方受保护内容。涉嫌违法、侵权或违反服务条款的内容及相关安全记录,可能会在调查、申诉、反欺诈、争议处理或法律要求所需的期限内保留。`}),`
364`,(0,A.jsx)(t.h2,{children:`信息共享`}),`
365`,(0,A.jsx)(t.p,{children:`我们不会出售您的个人信息。仅在以下有限情况下,我们才会共享数据:`}),`
366`,(0,A.jsxs)(t.ul,{children:[`
367`,(0,A.jsx)(t.li,{children:`与协助我们运营服务的供应商共享,并签署保密协议。`}),`
368`,(0,A.jsx)(t.li,{children:`为遵守法律义务或响应公共
368部门的合法请求。`}),`
369`,(0,A.jsx)(t.li,{children:`为保护我们或用户的权利、财产和安全。`}),`
370`]}),`
371`,(0,A.jsx)(t.h2,{children:`数据安全`}),`
372`,(0,A.jsx)(t.p,{children:`我们采用业界标准的安全措施,包括传输加密、访问控制以及定期审查。互联网传输无法做到 100% 安全,但我们会持续努力保护您的信息。`}),`
373`,(0,A.jsx)(t.h2,{children:`您的权利`}),`
374`,(0,A.jsx)(t.p,{children:`您有权访问、更新、导出或删除您的个人信息。您可以通过账户设置进行操作,或通过本页底部提供的方式与我们联系。`}),`
375`,(0,A.jsx)(t.h2,{children:`政策变更`}),`
376`,(0,A.jsx)(t.p,{children:`我们可能会不时更新本《隐私政策》。如有重大变更,我们将更新页面顶部的日期,并在必要时通过服务通知您。`}),`
377`,(0,A.jsx)(t.h2,{children:`联系我们`}),`
378`,(0,A.jsxs)(t.p,{children:[`如果您对本《隐私政策》或个人数据处理有任何疑问,请通过`,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`支持工单`}),`或 `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` 与我们联系。`]})]})}function rx(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(nx,{...e})}):nx(e)}var ix=i({default:()=>sx,meta:()=>ax}),ax={title:`Refund Policy`,description:`How refunds are handled for Lem Gen purchases and credits.`,updated_at:`2026-06-22`};function ox(e){let t={h2:`h2`,p:`p`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`Refund Eligibility`}),`
379`,(0,A.jsx)(t.p,{children:`Refunds are reviewed case by case. If a paid order was duplicated, failed to deliver credits, or was charged incorrectly, contact support with your order email and payment reference.`}),`
380`,(0,A.jsx)(t.h2,{children:`Non-Refundable Usage`}),`
381`,(0,A.jsx)(t.p,{children:`Consumed credits, completed generations, and successfully delivered digital services are generally non-refundable.`}),`
382`,(0,A.jsx)(t.h2,{children:`Review Process`}),`
383`,(0,A.jsx)(t.p,{children:`We may request account and payment details to verify the order. Approved refunds are returned through the original payment method when possible.`}),`
384`,(0,A.jsx)(t.h2,{children:`Contact`}),`
385`,(0,A.jsx)(t.p,{children:`For refund questions, contact support through the email listed on the website.`})]})}function sx(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(ox,{...e})}):ox(e)}var cx=i({default:()=>dx,meta:()=>lx}),lx={title:`退款政策`,description:`Lem Gen 购买与积分退款的处理方式。`,updated_at:`2026-06-22`};function ux(e){let t={h2:`h2`,p:`p`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`退款适用范围`}),`
386`,(0,A.jsx)(t.p,{children:`退款会按具体情况审核。如果出现重复扣款、积分未到账或订单金额异常,请带上订单邮箱和支付凭证联系支持。`}),`
387`,(0,A.jsx)(t.h2,{children:`不支持退款的情况`}),`
388`,(0,A.jsx)(t.p,{children:`已消耗的积分、已完成的生成任务以及已经成功交付的数字服务通常不支持退款。`}),`
389`,(0,A.jsx)(t.h2,{children:`审核流程`}),`
390`,(0,A.jsx)(t.p,{children:`我们可能会要求您提供账户与支付信息以核验订单。审核通过后,退款会尽可能原路退回。`}),`
391`,(0,A.jsx)(t.h2,{children:`联系方式`}),`
392`,(0,A.jsx)(t.p,{children:`如有退款问题,请通过网站上提供的邮箱联系我们。`})]})}function dx(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(ux,{...e})}):ux(e)}var fx=i({default:()=>hx,meta:()=>px}),px={title:`Terms of Service`,description:`Terms for using Lem Gen prompts, credits, and AI image and video generation tools.`,updated_at:`2026-08-14`};function mx(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`Acceptance of Terms`}),`
393`,(0,A.jsx)(t.p,{children:`By accessing or using this service, you agree to be bound by these Terms of Service. If you do not agree, please do not use the service.`}),`
394`,(0,A.jsx)(t.h2,{children:`Description of Service`}),`
395`,(0,A.jsx)(t.p,{children:`Lem Gen provides an AI prompt gallery, remix tools, credits, and supported image or video generation workflows. We may modify, suspend, or discontinue any part of the service at any time, with reasonable notice where possible.`}),`
396`,(0,A.jsx)(t.h2,{children:`User Accounts`}),`
397`,(0,A.jsx)(t.p,{children:`You are responsible for maintaining the confidentiality of your account credentials and for all activities under your account. Notify us immediately of any unauthorized use or security breach.`}),`
398`,(0,A.jsx)(t.h2,{children:`Acceptable Use`}),`
399`,(0,A.jsx)(t.p,{children:`You agree not to:`}),`
400`,(0,A.jsxs)(t.ul,{children:[`
401`,(0,A.jsx)(t.li,{children:`Violate any applicable laws or regulations.`}),`
402`,(0,A.jsx)(t.li,{children:`Infringe on the intellectual property or other rights of any party.`}),`
403`,(0,A.jsx)(t.li,{children:`Attempt to gain unauthorized access to our systems or data.`}),`
404`,(0,A.jsx)(t.li,{children:`Interfere with or disrupt the integrity or performance of the service.`}),`
405`,(0,A.jsx)(t.li,{children:`Use the service to send spam, malware, or other harmful content.`}),`
406`]}),`
407`,(0,A.jsx)(t.h2,{children:`AI Content Safety`}),`
408`,(0,A.jsxs)(t.p,{children:[`All prompts, uploads, and AI-generated content must comply with our `,(0,A.jsx)(t.a,{href:`/acceptable-use-policy`,children:`Acceptable Use Policy`}),`. Lem Gen expressly prohibits generating pornography or NSFW material, violence or severe gore, hate speech, child-unsafe content or CSAM, non-consensual deepfakes or impersonation of real people, and content that infringes copyright or trademarks.`]}),`
409`,(0,A.jsxs)(t.p,{children:[`We may use automated detection, human review, user reports, and periodic audits to review input
409s and generated outputs. Users may report content or appeal a moderation decision through a `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`support ticket`}),` or `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Depending on severity, we may refuse generation, remove content, restrict features, suspend or permanently terminate an account, and make legally required or permitted reports to the appropriate authorities.`]}),`
410`,(0,A.jsx)(t.h2,{children:`Payment and Billing`}),`
411`,(0,A.jsxs)(t.p,{children:[`Paid features are billed in advance for the selected billing period. You are responsible for providing accurate billing information. Memberships and credits are digital services delivered to your account after successful payment. Refunds are handled on a case-by-case basis under our `,(0,A.jsx)(t.a,{href:`/refund-policy`,children:`Refund Policy`}),`.`]}),`
412`,(0,A.jsx)(t.h2,{children:`Intellectual Property`}),`
413`,(0,A.jsx)(t.p,{children:`The service and its original content, features, and functionality are owned by us and are protected by international copyright, trademark, and other intellectual property laws.`}),`
414`,(0,A.jsx)(t.h2,{children:`Termination`}),`
415`,(0,A.jsx)(t.p,{children:`We may suspend or terminate your access to the service at any time if you violate these terms. You may close your account at any time through your account settings.`}),`
416`,(0,A.jsx)(t.h2,{children:`Limitation of Liability`}),`
417`,(0,A.jsx)(t.p,{children:`To the maximum extent permitted by law, we shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising out of your use of or inability to use the service.`}),`
418`,(0,A.jsx)(t.h2,{children:`Changes to These Terms`}),`
419`,(0,A.jsx)(t.p,{children:`We may modify these Terms at any time. We will notify users of any material changes by updating the date at the top of this page and, where appropriate, sending a notice through the service.`}),`
420`,(0,A.jsx)(t.h2,{children:`Contact`}),`
421`,(0,A.jsxs)(t.p,{children:[`If you have questions about these Terms, submit a `,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`support ticket`}),` or contact `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]})]})}function hx(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(mx,{...e})}):mx(e)}var gx=i({default:()=>yx,meta:()=>_x}),_x={title:`服务条款`,description:`使用 Lem Gen 提示词、积分与 AI 图片和视频生成工具的相关条款。`,updated_at:`2026-08-14`};function vx(e){let t={a:`a`,h2:`h2`,li:`li`,p:`p`,ul:`ul`,...$(),...e.components};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(t.h2,{children:`接受条款`}),`
422`,(0,A.jsx)(t.p,{children:`访问或使用本服务即表示您同意受本《服务条款》约束。如不同意,请勿使用本服务。`}),`
423`,(0,A.jsx)(t.h2,{children:`服务说明`}),`
424`,(0,A.jsx)(t.p,{children:`Lem Gen 提供 AI 提示词图库、提示词改写工具、生成额度,以及受支持的图片和视频生成流程。我们可能随时修改、暂停或终止服务的任何部分,并在可能的情况下提前合理告知。`}),`
425`,(0,A.jsx)(t.h2,{children:`用户账户`}),`
426`,(0,A.jsx)(t.p,{children:`您有责任妥善保管账户凭据,并对账户下发生的所有活动负责。如发现未授权使用或安全漏洞,请立即通知我们。`}),`
427`,(0,A.jsx)(t.h2,{children:`可接受的使用`}),`
428`,(0,A.jsx)(t.p,{children:`您同意不会:`}),`
429`,(0,A.jsxs)(t.ul,{children:[`
430`,(0,A.jsx)(t.li,{children:`违反任何适用的法律或法规。`}),`
431`,(0,A.jsx)(t.li,{children:`侵犯任何方的知识产权或其他权利。`}),`
432`,(0,A.jsx)(t.li,{children:`试图未经授权访问我们的系统或数据。`}),`
433`,(0,A.jsx)(t.li,{children:`干扰或破坏服务的完整性或性能。`}),`
434`,(0,A.jsx)(t.li,{children:`通过本服务发送垃圾信息、恶意软件或其他有害内容。`}),`
435`]}),`
436`,(0,A.jsx)(t.h2,{children:`AI 内容安全`}),`
437`,(0,A.jsxs)(t.p,{children:[`所有提示词、上传素材和 AI 生成内容均须遵守我们的`,(0,A.jsx)(t.a,{href:`/acceptable-use-policy`,children:`可接受使用政策`}),`。Lem Gen 明确禁止生成色情或 NSFW 内容、暴力或严重血腥内容、仇恨言论、儿童不安全内å
437®¹æˆ– CSAM、未经同意针对真实人物的深度伪造或冒充内容,以及侵犯著作权或商标权的内容。`]}),`
438`,(0,A.jsxs)(t.p,{children:[`我们可以使用自动检测、人工复核、用户举报和定期抽查审核输入与生成结果。用户可以通过`,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`支持工单`}),`或 `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` 举报违规内容或申诉审核决定。根据严重程度,我们可以拒绝生成、删除内容、限制功能、暂停或永久终止账户,并在法律要求或允许时向有关机构报告。`]}),`
439`,(0,A.jsx)(t.h2,{children:`支付与计费`}),`
440`,(0,A.jsxs)(t.p,{children:[`付费功能按所选计费周期预付。您有责任提供准确的计费信息。会员和积分属于在线交付的数字服务,支付成功后会发放至您的账户。退款将根据我们的`,(0,A.jsx)(t.a,{href:`/refund-policy`,children:`退款政策`}),`按具体情况处理。`]}),`
441`,(0,A.jsx)(t.h2,{children:`知识产权`}),`
442`,(0,A.jsx)(t.p,{children:`本服务及其原创内容、功能和特性归我们所有,受国际版权、商标和其他知识产权法律保护。`}),`
443`,(0,A.jsx)(t.h2,{children:`账户终止`}),`
444`,(0,A.jsx)(t.p,{children:`如您违反本条款,我们可随时暂停或终止您对服务的访问。您也可以通过账户设置随时关闭账户。`}),`
445`,(0,A.jsx)(t.h2,{children:`责任限制`}),`
446`,(0,A.jsx)(t.p,{children:`在法律允许的最大范围内,我们对因您使用或无法使用本服务而引起的任何间接、附带、特殊、衍生或惩罚性损害不承担责任。`}),`
447`,(0,A.jsx)(t.h2,{children:`条款变更`}),`
448`,(0,A.jsx)(t.p,{children:`我们可能随时修改本《服务条款》。如有重大变更,我们将更新页面顶部的日期,并在必要时通过服务通知您。`}),`
449`,(0,A.jsx)(t.h2,{children:`联系我们`}),`
450`,(0,A.jsxs)(t.p,{children:[`如果您对本《服务条款》有任何疑问,请通过`,(0,A.jsx)(t.a,{href:`/settings/tickets`,children:`支持工单`}),`或 `,(0,A.jsx)(t.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` 与我们联系。`]})]})}function yx(e={}){let{wrapper:t}={...$(),...e.components};return t?(0,A.jsx)(t,{...e,children:(0,A.jsx)(vx,{...e})}):vx(e)}var bx=Object.assign({"/src/content/pages/about.en.mdx":vb,"/src/content/pages/about.zh.mdx":Sb,"/src/content/pages/acceptable-use-policy.en.mdx":Eb,"/src/content/pages/acceptable-use-policy.zh.mdx":Ab,"/src/content/pages/contact.en.mdx":Pb,"/src/content/pages/contact.zh.mdx":Rb,"/src/content/pages/featured-on.en.mdx":Hb,"/src/content/pages/featured-on.zh.mdx":Kb,"/src/content/pages/privacy-policy.en.mdx":Xb,"/src/content/pages/privacy-policy.zh.mdx":ex,"/src/content/pages/refund-policy.en.mdx":ix,"/src/content/pages/refund-policy.zh.mdx":cx,"/src/content/pages/terms-of-service.en.mdx":fx,"/src/content/pages/terms-of-service.zh.mdx":gx});function xx(e,t){return bx[`/src/content/pages/${e}.${t}.mdx`]??bx[`/src/content/pages/${e}.en.mdx`]??null}function Sx(e){return{loader:()=>{let t=D(),n=xx(e,t);if(!n)throw ke();return{meta:n.meta,slug:e,locale:t}},head:({loaderData:t})=>{if(!t)return{};let{meta:n,locale:r}=t,i=`/${e}`;return{meta:r_({title:`${n.title} | ${Nr.app_name}`,description:n.description,path:i,locale:r}),links:n_(i,r)}},component:Cx}}function Cx(){let{meta:e,slug:t,locale:n}=Uo({strict:!1}),r=xx(t,n).default;return(0,A.jsxs)(`article`,{children:[(0,A.jsxs)(`header`,{className:`border-border mb-6 border-b pb-5`,children:[(0,A.jsx)(`h1`,{className:`text-foreground text-3xl font-semibold tracking-tight md:text-4xl`,children:e.title}),(0,A.jsx)(`p`,{className:`text-muted-foreground mt-2 text-sm`,children:e.description}),(0,A.jsxs)(`p`,{className:`text-muted-foreground mt-2 text-xs`,children:[pn(),`: `,e.updated_at]})]}),(0,A.jsx)(`div`,{className:`text-foreground/90 text-[15px] leading-7`,children:(0,A.jsx)(r,{})})]})}var wx=P(`/(pages)/terms-of-service`)(Sx(`terms-of-service`)),Tx=P(`/(pages)/refund-policy-zh`)({beforeLoad:()=>{throw Oe({href:`/zh/refund-policy`,statusCode:301})}}),Ex=P(`/(pages)/refund-policy`)(Sx(`refund-policy`)),Dx=P(`/(pages)/privacy-policy-zh`)({beforeLoad:()=>{throw Oe({href:`/zh/privacy-policy`,statusCode:301})}}),Ox=P(`/(pages)/privacy-policy`)(Sx(`privacy-policy`)),kx=P(`/(pages)/featured-on`)(Sx(`featured-on`)),Ax=P(`/(pages)/contact`)(Sx(`contact`)),jx=P(`/(pages)/acceptable-use-policy`)(Sx(`acceptable-use-policy`)),Mx=P(`/(pages)/about`)(Sx(`about`));function Nx({items:e,page:t,pageCount:n,categoryCopy:r}){return(0,A.jsxs)(`div`,{className:`mx-auto w-full max-w-[1120px] px-2 pb-16 md:px-6 xl:px-4 xl:pt-10`,children:[(0,A.jsx)(Ri,{activeCategory:`photo-effects`,copy:r}),(0,A.jsx)(`div`,{className:`[column-gap:16px] [column-count:1] sm:[column-count:2] md:[column-count:3] lg:[column-count:4] xl:[column-count:5]`,children:e.map(e=>(0,A.jsx)(`article`,{className:`mb-4 inline-block w-full break-inside-avoid`,children:(0,A.jsxs)(xe,{href:`/photo-effects/${e.slug}`,"aria-label":r.openItem(e.title),className:`group focus-visible:ring-offset-background relative block overflow-hidden rounded-lg bg-[var(--textideo-panel-raised)] focus-visible:ring-2 focus-visible:ring-[var(--textideo-focus)] focus-visible:ring-offset-2 focus-visible:outline-none`,children:[(0,A.jsx)(ze,{src:e.galleryImage,alt:e.title,loading:`lazy`,className:`block h-auto w-full bg-[var(--textideo-panel-raised)] object-cover`,fallbackClassName:`aspect-[4/5]`}),(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 bg-gradient-to-t from-black/70 via-trans
450parent to-transparent`}),(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center bg-[rgba(47,111,88,.76)] opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-visible:opacity-100`,children:(0,A.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-full bg-white text-[var(--textideo-accent-text)] shadow-lg`,children:(0,A.jsx)(Qr,{className:`size-5`})})}),(0,A.jsx)(`p`,{className:`pointer-events-none absolute right-2 bottom-3 left-2 text-center text-[16px] leading-5 font-bold text-white drop-shadow-[0_1px_3px_rgba(0,0,0,.8)]`,children:e.title})]})},e.slug))}),(0,A.jsx)(Ii,{categoryPath:`/photo-effects`,page:t,pageCount:n,copy:r})]})}function Px({activeCategory:e,title:t,items:n,page:r,pageCount:i,categoryCopy:a}){let o=`/${e}`;return(0,A.jsxs)(`div`,{className:`mx-auto w-full max-w-[1120px] px-2 pb-16 md:px-6 xl:px-2`,children:[(0,A.jsx)(Ri,{activeCategory:e,copy:a}),(0,A.jsx)(`h1`,{className:`mb-4 text-left text-2xl font-bold text-[var(--textideo-text)]`,children:t}),(0,A.jsx)(`div`,{className:`grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4`,children:n.map(e=>(0,A.jsx)(xe,{href:`${o}/${e.slug}`,"aria-label":e.title,className:`group relative flex min-h-[148px] items-center justify-center rounded-xl border border-[var(--textideo-border)] bg-[var(--textideo-canvas)] p-2 transition-all duration-200 hover:-translate-y-0.5 hover:border-[var(--textideo-border-strong)] hover:bg-[var(--textideo-panel-raised)] hover:shadow-[0_10px_30px_var(--textideo-glow)] focus-visible:ring-2 focus-visible:ring-[var(--textideo-focus)] focus-visible:outline-none`,children:(0,A.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-3 sm:gap-4`,children:[(0,A.jsx)(`div`,{className:`mr-3 w-20 shrink-0 overflow-hidden rounded-lg bg-[var(--textideo-field)] sm:w-28`,children:(0,A.jsx)(ze,{src:e.galleryImage,alt:e.title,loading:`lazy`,className:`aspect-video size-full object-cover`,fallbackClassName:`aspect-video`})}),(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col justify-center gap-1`,children:[(0,A.jsx)(`h3`,{className:`text-sm leading-tight font-medium text-[var(--textideo-text)] sm:text-base sm:leading-6`,children:e.title}),(0,A.jsx)(`p`,{className:`text-xs leading-5 text-[var(--textideo-text-muted)] sm:text-sm`,children:e.description})]})]})},e.slug))}),(0,A.jsx)(Ii,{categoryPath:o,page:r,pageCount:i,copy:a})]})}var Fx=50;function Ix({page:e=1}){let t=D(),n=Li();return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Nx,{items:Oi.slice((e-1)*Fx,e*Fx).map(e=>({...e,title:Ti(e.title,t),description:Ei(e.description,e.title,t,`photo-effects/${e.slug}`)})),page:e,pageCount:Math.ceil(Oi.length/Fx),categoryCopy:n.category}),e>1?(0,A.jsx)(Fi,{name:n.category.photoEffect}):null]})}function Lx({page:e=1}){let t=D(),n=Li();return(0,A.jsx)(Px,{activeCategory:`video-tools`,title:n.category.videoTool,items:Ai.slice((e-1)*Fx,e*Fx).map(e=>({...e,title:Ti(e.title,t),description:Ei(e.description,e.title,t,`video-tools/${e.slug}`)})),page:e,pageCount:Math.ceil(Ai.length/Fx),categoryCopy:n.category})}function Rx({page:e=1}){let t=D(),n=Li();return(0,A.jsx)(Px,{activeCategory:`image-tools`,title:n.category.imageTool,items:ki.slice((e-1)*Fx,e*Fx).map(e=>({...e,title:Ti(e.title,t),description:Ei(e.description,e.title,t,`image-tools/${e.slug}`)})),page:e,pageCount:Math.ceil(ki.length/Fx),categoryCopy:n.category})}var zx=Math.ceil(Oi.length/Fx),Bx=Math.ceil(Ai.length/Fx),Vx=Math.ceil(ki.length/Fx),Hx=P(`/video-tools/page/$page`)({loader:({params:e})=>{let t=Number(e.page);if(!Number.isInteger(t)||t<2||t>Bx)throw ke();let n=D();return{page:t,title:bn({title:gt({},{locale:n}),page:t},{locale:n}),description:mt({},{locale:n})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./_page-B0HU9Ld8.js`),__vite__mapDeps([188,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)});function Ux({effects:e,page:t,pageCount:n,activeCategory:r,categoryCopy:i}){return(0,A.jsxs)(`div`,{className:`mx-auto w-full max-w-[1120px] px-2 pb-16 md:px-6 xl:px-4 xl:pt-10`,children:[(0,A.jsx)(Ri,{activeCategory:r,copy:i}),(0,A.jsx)(`div`,{className:`[column-gap:16px] [column-count:1] sm:[column-count:2] md:[column-count:3] lg:[column-count:4] xl:[column-count:5]`,children:e.map(e=>(0,A.jsx)(Wx,{effect:e,copy:i},e.slug))}),(0,A.jsx)(Ii,{categoryPath:`/video-effects`,page:t,pageCount:n,copy:i})]})}function Wx({effect:e,copy:t}){let[n,r]=(0,k.useState)(!1);return(0,A.jsx)(`article`,{className:`mb-4 inline-block w-full break-inside-avoid [contain-intrinsic-size:280px_360px] [content-visibility:auto]`,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocusCapture:()=>r(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||r(!1)},children:(0,A.jsxs)(xe,{href:`/video-effects/${e.slug}`,"aria-label":t.openItem(e.title),className:`group focus-visible:ring-offset-background relative block overflow-hidden rounded-lg bg-[var(--textideo-panel-raised)] shadow-[0_8px_24px_rgba(0,0,0,.2)] focus-visible:ring-2 focus-visible:ring-[var(--textideo-focus)] focus-visible:ring-offset-2 focus-visible:outline-none`,children:[n?(0,A.jsx)(Re,{src:e.galleryVideo,poster:e.galleryPoster,fallbackAlt:e.title,fallbackClassName:`aspect-[4/5]`,autoPlay:!0,muted:!0,loop:!0,playsInl
450ine:!0,preload:`metadata`,className:`block h-auto w-full bg-[var(--textideo-panel-raised)]`}):(0,A.jsx)(ze,{src:e.galleryPoster,alt:e.title,loading:`lazy`,decoding:`async`,fallbackClassName:`aspect-[4/5]`,className:`block h-auto w-full bg-[var(--textideo-panel-raised)]`}),(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 bg-gradient-to-t from-black/75 via-transparent to-transparent`}),(0,A.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center bg-black/45 opacity-0 backdrop-blur-[1px] transition-opacity duration-200 group-hover:opacity-100 group-focus-visible:opacity-100`,children:(0,A.jsx)(`span`,{className:`flex size-11 items-center justify-center rounded-full bg-[var(--textideo-accent)] text-[var(--textideo-on-accent)] shadow-lg`,children:(0,A.jsx)(Qr,{className:`size-5`})})}),(0,A.jsx)(`p`,{className:`pointer-events-none absolute right-2 bottom-3 left-2 text-center text-[16px] leading-5 font-semibold text-white drop-shadow-[0_1px_3px_rgba(0,0,0,.8)]`,children:e.title})]})})}var Gx=50,Kx=Math.ceil(Ni.length/Gx);function qx({page:e=1}){let t=D(),n=Ni.slice((e-1)*Gx,e*Gx).map(e=>({...e,title:Ti(e.title,t),description:Ei(e.description,e.title,t,`video-effects/${e.slug}`)})),r=Li();return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ux,{effects:n,page:e,pageCount:Kx,activeCategory:`video-effects`,categoryCopy:r.category}),e>1?(0,A.jsx)(Fi,{name:r.category.videoEffect}):null,(0,A.jsx)(zi,{})]})}var Jx=Kx,Yx=P(`/video-effects/page/$page`)({loader:({params:e})=>{let t=Number(e.page);if(!Number.isInteger(t)||t<2||t>Jx)throw ke();let n=D();return{page:t,title:bn({title:ft({},{locale:n}),page:t},{locale:n}),description:at({},{locale:n})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./_page-CZKrCe-2.js`),__vite__mapDeps([189,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),Xx=P(`/photo-effects/page/$page`)({loader:({params:e})=>{let t=Number(e.page);if(!Number.isInteger(t)||t<2||t>zx)throw ke();let n=D();return{page:t,title:bn({title:$e({},{locale:n}),page:t},{locale:n}),description:bt({},{locale:n})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./_page-Bb0fRP9x.js`),__vite__mapDeps([190,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),Zx=P(`/image-tools/page/$page`)({loader:({params:e})=>{let t=Number(e.page);if(!Number.isInteger(t)||t<2||t>Vx)throw ke();let n=D();return{page:t,title:bn({title:_n({},{locale:n}),page:t},{locale:n}),description:Ue({},{locale:n})}},head:({loaderData:e})=>({meta:[{title:e?.title},{name:`description`,content:e?.description},{name:`robots`,content:`noindex, follow`},{name:`googlebot`,content:`noindex, follow`}]}),component:F(()=>I(()=>import(`./_page-Bgq7JTuw.js`),__vite__mapDeps([191,1,83,11,14,12,6,7,50,10,51,52,38,53,21,40,54,68,9,84,2,85,26,88])),`component`)}),Qx=l_.update({id:`/workspace`,path:`/workspace`,getParentRoute:()=>Q}),$x=m_.update({id:`/video-to-video`,path:`/video-to-video`,getParentRoute:()=>Q}),eS=h_.update({id:`/text-to-video`,path:`/text-to-video`,getParentRoute:()=>Q}),tS=g_.update({id:`/text-to-speech`,path:`/text-to-speech`,getParentRoute:()=>Q}),nS=__.update({id:`/text-to-image`,path:`/text-to-image`,getParentRoute:()=>Q}),rS=v_.update({id:`/pricing`,path:`/pricing`,getParentRoute:()=>Q}),iS=y_.update({id:`/image-to-video`,path:`/image-to-video`,getParentRoute:()=>Q}),aS=b_.update({id:`/image-editor`,path:`/image-editor`,getParentRoute:()=>Q}),oS=T_.update({id:`/gpt-image-2-5`,path:`/gpt-image-2-5`,getParentRoute:()=>Q}),sS=E_.update({id:`/ai-script-generator`,path:`/ai-script-generator`,getParentRoute:()=>Q}),cS=D_.update({id:`/ai-music-generator`,path:`/ai-music-generator`,getParentRoute:()=>Q}),lS=O_.update({id:`/ai-movie-generator`,path:`/ai-movie-generator`,getParentRoute:()=>Q}),uS=k_.update({id:`/settings`,path:`/settings`,getParentRoute:()=>Q}),dS=A_.update({id:`/admin`,path:`/admin`,getParentRoute:()=>Q}),fS=j_.update({id:`/(pages)`,getParentRoute:()=>Q}),pS=F_.update({id:`/`,path:`/`,getParentRoute:()=>Q}),mS=I_.update({id:`/video-tools/`,path:`/video-tools/`,getParentRoute:()=>Q}),hS=L_.update({id:`/video-effects/`,path:`/video-effects/`,getParentRoute:()=>Q}),gS=R_.update({id:`/photo-effects/`,path:`/photo-effects/`,getParentRoute:()=>Q}),_S=z_.update({id:`/image-tools/`,path:`/image-tools/`,getParentRoute:()=>Q}),vS=H_.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>Q}),yS=W_.update({id:`/video-tools/$slug`,path:`/video-tools/$slug`,getParentRoute:()=>Q}),bS=G_.update({id:`/video-effects/$slug`,path:`/video-effects/$slug`,getParentRoute:()=>Q}),xS=X_.update({id:`/prompts/gpt-image-2-5`,path:`/prompts/gpt-image-2-5`,getParentRoute:()=>Q}),SS=ov.update({id:`/prompts/faymas-ai-prompt`,path:`/prompts/faymas-ai-prompt`,getParentRoute:()=>Q}),CS=gv.update({id:`/prompts/1980s-photo`,path:`/prompts/1980s-photo`,getParentRoute:()=>Q}),wS=ny.update({id:`/prompts/$slug`,path:`/prompts/$slug`,getParentRoute:()=>Q}),TS=fy.update({id:`/prompt/$id`,path:`/prompt/$id`,getParentRoute:()=>Q}),ES=py.update({id:`/photo-effects/$slug`,path:`/photo-effects/$slug`,getParentRoute:()=>Q}),DS=my.update({id:`/image-tools/$slug`,path:`/image-tools/$slug`,getParentRoute:()=>Q}),OS=hy.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>Q}),kS=gy.update({id:`/(auth)/verify-email`,path:`/verify-email`,getParentRoute:()=>Q}),AS=_y.update({id:`/(auth)/sign-up`,path:`/sign-up`,getParentRoute:()=>Q}),jS=by.update({id:`/(auth)/sign-in`,path:`/sign-in`,getParentRoute:()=>Q}),MS=xy.update({id:`/(auth)/reset-password`,path:`/reset-password`,getParentRoute:()=>Q}),NS=Sy.update({id:`/(auth)/redeem-invite`,path:`/redeem-invite`,getParentRoute:()=>Q}),PS=Cy.update({id:`/(auth)/forgot-password`,path:`/forgot-password`,getParentRoute:()=>Q}),FS=wy.update({id:`/`,path:`/`,getParentRoute:()=>uS}),IS=Ty.update({id:`/tickets`,path:`/tickets`,getParentRoute:()=>uS}),LS=Ey.update({id:`/profile`,path:`/profile`,getParentRoute:()=>uS}),RS=Dy.update({id:`/payments`,path:`/payments`,getParentRoute:()=>uS}),zS=Oy.update({id:`/credits`,path:`/credits`,getParentRoute:()=>uS}),BS=ky.update({id:`/creations`,path:`/creations`,getParentRoute:()=>uS}),VS=Ay.update({id:`/billing`,path:`/billing`,getParentRoute:()=>uS}),HS=jy.update({id:`/apikeys`,path:`/apikeys`,getParentRoute:()=>uS}),US=My.update({id:`/`,path:`/`,getParentRoute:()=>dS}),WS=Ny.update({id:`/users`,path:`/users`,getParentRoute:()=>dS}),GS=Py.update({id:`/tickets`,path:`/tickets`,getParentRoute:()=>dS}),KS=Fy.update({id:`/support-email`,path:`/support-email`,getParentRoute:()=>dS}),qS=Iy.update({id:`/subscriptions`,path:`/subscriptions`,getParentRoute:()=>dS}),JS=Ly.update({id:`/settings`,path:`/settings`,getParentRoute:()=>dS}),YS=zy.update({id:`/roles`,path:`/roles`,getParentRoute:()=>dS}),XS=Vy.update({id:`/posts`,path:`/posts`,getParentRoute:()=>dS}),ZS=Hy.update({id:`/permissions`,path:`/permissions`,getParentRoute:()=>dS}),QS=Uy.update({id:`/payments`,path:`/payments`,getParentRoute:()=>dS}),$S=ob.update({id:`/lemgen-submissions`,path:`/lemgen-submissions`,getParentRoute:()=>dS}),eC=cb.update({id:`/invite-codes`,path:`/invite-codes`,getParentRoute:()=>dS}),tC=lb.update({id:`/expert-requests`,path:`/expert-requests`,getParentRoute:()=>dS}),nC=ub.update({id:`/credits`,path:`/credits`,getParentRoute:()=>dS}),rC=fb.update({id:`/categories`,path:`/categories`,getParentRoute:()=>dS}),iC=pb.update({id:`/analytics`,path:`/analytics`,getParentRoute:()=>dS}),aC=mb.update({id:`/terms-zh`,path:`/terms-zh`,getParentRoute:()=>fS}),oC=wx.update({id:`/terms-of-service`,path:`/terms-of-service`,getParentRoute:()=>fS}),sC=Tx.update({id:`/refund-policy-zh`,path:`/refund-policy-zh`,getParentRoute:()=>fS}),cC=Ex.update({id:`/refund-policy`,path:`/refund-policy`,getParentRoute:()=>fS}),lC=Dx.update({id:`/privacy-policy-zh`,path:`/privacy-policy-zh`,getParentRoute:()=>fS}),uC=Ox.update({id:`/privacy-policy`,path:`/privacy-policy`,getParentRoute:()=>fS}),dC=kx.update({id:`/featured-on`,path:`/featured-on`,getParentRoute:()=>fS}),fC=Ax.update({id:`/contact`,path:`/contact`,getParentRoute:()=>fS}),pC=jx.update({id:`/acceptable-use-policy`,path:`/acceptable-use-policy`,getParentRoute:()=>fS}),mC=Mx.update({id:`/about`,path:`/about`,getParentRoute:()=>fS}),hC=Hx.update({id:`/video-tools/page/$page`,path:`/video-tools/page/$page`,getParentRoute:()=>Q}),gC=Yx.update({id:`/video-effects/page/$page`,path:`/video-effects/page/$page`,getParentRoute:()=>Q}),_C=Xx.update({id:`/photo-effects/page/$page`,path:`/photo-effects/page/$page`,getParentRoute:()=>Q}),vC=Zx.update({id:`/image-tools/page/$page`,path:`/image-tools/page/$page`,getParentRoute:()=>Q}),yC={pagesAboutRoute:mC,pagesAcceptableUsePolicyRoute:pC,pagesContactRoute:fC,pagesFeaturedOnRoute:dC,pagesPrivacyPolicyRoute:uC,pagesPrivacyPolicyZhRoute:lC,pagesRefundPolicyRoute:cC,pagesRefundPolicyZhRoute:sC,pagesTermsOfServiceRoute:oC,pagesTermsZhRoute:aC},bC=fS._addFileChildren(yC),xC={AdminAnalyticsRoute:iC,AdminCategoriesRoute:rC,AdminCreditsR
450oute:nC,AdminExpertRequestsRoute:tC,AdminInviteCodesRoute:eC,AdminLemgenSubmissionsRoute:$S,AdminPaymentsRoute:QS,AdminPermissionsRoute:ZS,AdminPostsRoute:XS,AdminRolesRoute:YS,AdminSettingsRoute:JS,AdminSubscriptionsRoute:qS,AdminSupportEmailRoute:KS,AdminTicketsRoute:GS,AdminUsersRoute:WS,AdminIndexRoute:US},SC=dS._addFileChildren(xC),CC={SettingsApikeysRoute:HS,SettingsBillingRoute:VS,SettingsCreationsRoute:BS,SettingsCreditsRoute:zS,SettingsPaymentsRoute:RS,SettingsProfileRoute:LS,SettingsTicketsRoute:IS,SettingsIndexRoute:FS},wC={IndexRoute:pS,pagesRouteRoute:bC,AdminRouteRoute:SC,SettingsRouteRoute:uS._addFileChildren(CC),AiMovieGeneratorRoute:lS,AiMusicGeneratorRoute:cS,AiScriptGeneratorRoute:sS,GptImage25Route:oS,ImageEditorRoute:aS,ImageToVideoRoute:iS,PricingRoute:rS,TextToImageRoute:nS,TextToSpeechRoute:tS,TextToVideoRoute:eS,VideoToVideoRoute:$x,WorkspaceRoute:Qx,authForgotPasswordRoute:PS,authRedeemInviteRoute:NS,authResetPasswordRoute:MS,authSignInRoute:jS,authSignUpRoute:AS,authVerifyEmailRoute:kS,BlogSlugRoute:OS,ImageToolsSlugRoute:DS,PhotoEffectsSlugRoute:ES,PromptIdRoute:TS,PromptsSlugRoute:wS,Prompts1980sPhotoRoute:CS,PromptsFaymasAiPromptRoute:SS,PromptsGptImage25Route:xS,VideoEffectsSlugRoute:bS,VideoToolsSlugRoute:yS,BlogIndexRoute:vS,ImageToolsIndexRoute:_S,PhotoEffectsIndexRoute:gS,VideoEffectsIndexRoute:hS,VideoToolsIndexRoute:mS,ImageToolsPagePageRoute:vC,PhotoEffectsPagePageRoute:_C,VideoEffectsPagePageRoute:gC,VideoToolsPagePageRoute:hC},TC=Q._addFileChildren(wC);function EC(){return ps({routeTree:TC,defaultPreload:`intent`,scrollRestoration:!0,scrollToTopSelectors:[`#lemgen-prompt-detail-scroll`],rewrite:{input:({url:e})=>xt(e),output:({url:e})=>kn(e)}})}async function DC(){let e=await EC(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(ho),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await vo(e),e}var OC=DC;async function kC(){let e=await OC();return window.$_TSR?.h(),e}var AC;function jC(){return AC||=kC(),(0,A.jsx)(bo,{promise:AC,children:e=>(0,A.jsx)(gs,{router:e})})}var MC=Ui();(0,k.startTransition)(()=>{(0,MC.hydrateRoot)(document,(0,A.jsx)(k.StrictMode,{children:(0,A.jsx)(jC,{})}))});export{mg as $,ny as A,W_ as B,_y as C,py as D,my as E,Kv as F,y_ as G,F_ as H,gv as I,m_ as J,__ as K,ov as L,Jv as M,Iv as N,fy as O,Fv as P,Mg as Q,X_ as R,xy as S,hy as T,T_ as U,H_ as V,b_ as W,l_ as X,p_ as Y,a_ as Z,Zy as _,Hx as a,qh as at,Wy as b,Lx as c,Sh as ct,pb as d,Ll as dt,ag as et,Yy as f,oc as ft,Xy as g,cs as gt,eb as h,Ls as ht,qx as i,Zh as it,Xv as j,ry as k,_b as l,gh as lt,Qy as m,nc as mt,Xx as n,eg as nt,Rx as o,Xh as ot,$y as p,rc as pt,h_ as q,Yx as r,Yh as rt,Ix as s,Kh as st,Zx as t,ng as tt,$ as u,zm as ut,Jy as v,gy as w,Cy as x,Ky as y,G_ as z};

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.