PageSourceSearch

https://prompthub.xin/_next/static/chunks/144-f83db60dd4be9c45.js

js prompthub.xin collected 2026-09-24 12:30:47 UTC 21,555 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{10992:(e,t,a)=>{a.d(t,{KI:()=>r});let s={"ai-assistant":"生产力",copywriting:"创意写作",programming:"编程开发",design:"图像生成","data-analysis":"数据分析",education:"教育学习","business-analysis":"商业营销",lifestyle:"生活娱乐","mcp-tools":"MCP工具",business:"商业分析",image:"图像生成",agent:"生产力",mcp:"MCP工具",writing:"创意写作"};function r(e){return s[e]||e||"未分类"}},29710:(e,t,a)=>{a.d(t,{v:()=>r});var s=a(52923);function r(e,t){let a=e.startsWith("/")?e:"/".concat(e);return t===s.q?a:"/".concat(t).concat(a)}},60144:(e,t,a)=>{a.d(t,{Q:()=>C});var s=a(95155),r=a(12115),n=a(34663),o=a(71626),i=a(86948),c=a(11647),l=a(85921),d=a(83457),u=a(57828),h=a(20508),p=a(5917),m=a(75426),g=a(10992),f=a(90960),x=a(57020),y=a(22663),w=a(22122),v=a(96093),b=a(29710),j=a(52619),N=a.n(j);function k(e){let{prompt:t,onClick:a,onImageLoad:n}=e,j=(0,o.Ym)(),{isAuthenticated:k}=(0,x.A)(),[C,E]=(0,r.useState)(!1),[T,P]=(0,r.useState)(!1),[_,M]=(0,r.useState)(!1),[R,A]=(0,r.useState)(t.isLiked||!1),[S,L]=(0,r.useState)(t.likes||0),[U,I]=(0,r.useState)(t.downloads||0),[H,W]=(0,r.useState)(!1),[F,O]=(0,r.useState)(!1),[z,J]=(0,r.useState)(!1),[D,Y]=(0,r.useState)(0);(0,r.useEffect)(()=>{A(t.isLiked||!1),L(t.likes||0),I(t.downloads||0)},[t.isLiked,t.likes,t.downloads]);let G=async e=>{if(e.stopPropagation(),!k){y.Ay.error("请先登录后再点赞"),setTimeout(()=>{window.location.href=(0,b.v)("/auth/login",j)},2e3);return}if(!H){W(!0);try{let e=await fetch("".concat(f.JR,"/prompts/").concat(t.id,"/like"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"}),a=await e.json();if(!a.success)throw Error(a.message||"操作失败");A(a.data.isLiked),L(a.data.likesCount),y.Ay.success(a.data.isLiked?"点赞成功":"取消点赞")}catch(e){y.Ay.error("操作失败,请重试")}finally{W(!1)}}},q=async e=>{if(e.stopPropagation(),!k){y.Ay.error("请先登录后再复制"),setTimeout(()=>{window.location.href=(0,b.v)("/auth/login",j)},2e3);return}if(!H){W(!0);try{var a;let e=await fetch("".concat(f.JR,"/prompts/").concat(t.id,"/copy"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"}),s=await e.json();if(!s.success&&403===e.status&&(null==(a=s.data)?void 0:a.needUpgrade)){Y(s.data.remainingCount||0),J(!0),y.Ay.error(s.message||"今日免费使用次数已达上限"),W(!1);return}if(!s.success)throw Error(s.message||"复制失败");await navigator.clipboard.writeText(t.content),s.data&&I(s.data.downloads),O(!0),y.Ay.success("提示词已复制到剪贴板"),setTimeout(()=>{O(!1)},2e3)}catch(e){y.Ay.error(e.message||"复制失败,请重试")}finally{W(!1)}}};if(t.isPlaceholder){let e=Math.max(160,Math.min(t.placeholderHeight||200,420));return(0,s.jsx)("div",{className:"relative w-full bg-gray-200/80 rounded-lg overflow-hidden animate-pulse",style:{height:e},children:(0,s.jsxs)("div",{className:"absolute inset-0 p-4 flex flex-col gap-3",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300/80 rounded w-3/4"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("div",{className:"h-3 bg-gray-300/70 rounded"}),(0,s.jsx)("div",{className:"h-3 bg-gray-300/70 rounded w-5/6"})]}),(0,s.jsxs)("div",{className:"mt-auto flex justify-between items-center",children:[(0,s.jsx)("div",{className:"h-3 bg-gray-300/70 rounded w-1/4"}),(0,s.jsx)("div",{className:"h-3 bg-gray-300/70 rounded w-1/6"})]})]})})}let K=t.categoryDisplayName||(0,g.KI)(t.category),Z=e=>!(!e||e.includes(".mp4")&&!e.includes("_thumb.jpg")),B=t.featured_image&&!_&&Z(t.featured_image),Q=t.featured_image&&!_&&Z(t.featured_image)?(0,v.s4)(t.featured_image):null;return B?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp,{className:"group relative overflow-hidden cursor-pointer p-0 w-full active:scale-[0.98] touch-manipulation transition-all duration-300 border-0 rounded-2xl ".concat(C?"shadow-[0_20px_40px_-12px_rgba(0,0,0,0.2)] translate-y-[-4px]":"shadow-[0_8px_20px_-8px_rgba(0,0,0,0.1)]"),onClick:a,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:(0,s.jsxs)("div",{className:"relative w-full h-full overflow-hidden bg-gray-100",children:[Q&&(0,s.jsx)("img",{src:Q,alt:t.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-700 ease-out ".concat(C?"scale-105":"scale-100"),onLoad:()=>{P(!0),null==n||n()},onError:()=>{M(!0)}}),!T&&Q&&(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-200 animate-pulse"}),"video"===t.type&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,s.jsx)("div",{className:"bg-white/20 backdrop-blur-md rounded-full p-3 transition-transform duration-300 border border-white/30 ".concat(C?"scale-110":"scale-100"),children:(0,s.jsx)(l.A,{className:"w-6 h-6 text-white fill-white"})})}),(0,s.jsxs)("div",{className:"absolute top-3 inset-x-3 flex justify-between items-start z-10",children:[(0,s.jsx)(c.E,{className:"bg-white/90 backdrop-blur-md text-gray-900 text-[10px] font-semibold px-2 py-0.5 
1shadow-sm border-0 hover:bg-white transition-colors cursor-default",children:K}),(0,s.jsxs)("div",{className:"flex items-center gap-1 bg-black/40 backdrop-blur-md rounded-full px-2 py-1 text-white/90 shadow-sm border border-white/10",children:[(0,s.jsx)(d.A,{className:"w-3 h-3 ".concat(R?"fill-red-500 text-red-500":"")}),(0,s.jsx)("span",{className:"text-[10px] font-medium",children:t.likes||0})]})]}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent transition-opacity duration-300 ".concat(C?"opacity-100":"opacity-0 sm:opacity-0 opacity-100"),children:(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-3 sm:p-4 text-white transform transition-transform duration-300 translate-y-0 sm:translate-y-2 sm:group-hover:translate-y-0",children:[(0,s.jsx)("h3",{className:"font-bold text-sm leading-snug mb-1 line-clamp-2 drop-shadow-sm",children:t.title}),t.tags&&t.tags.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1 mb-2",children:t.tags.slice(0,3).map((e,t)=>(0,s.jsx)("span",{className:"px-1.5 py-0.5 bg-white/20 text-white text-[10px] rounded backdrop-blur-sm hover:bg-white/30 transition-colors",children:e},t))}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-xs text-white/80",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:t.authorName&&t.authorUsername?(0,s.jsx)(N(),{href:(0,b.v)("/user/".concat(t.authorUsername),j),prefetch:!1,onClick:e=>e.stopPropagation(),className:"truncate hover:text-white transition-colors cursor-pointer hover:underline",children:t.authorName}):(0,s.jsx)("span",{children:t.authorName||"匿名"})}),(0,s.jsx)("button",{onClick:G,className:"p-1.5 rounded-full bg-white/10 hover:bg-white/20 backdrop-blur-md transition-colors text-white",children:(0,s.jsx)(d.A,{className:"w-3.5 h-3.5 ".concat(R?"fill-red-500 text-red-500":"text-white")})})]})]})})]})}),(0,s.jsx)(w.k,{isOpen:z,onClose:()=>J(!1),remainingCount:D})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Zp,{className:"group relative flex flex-col w-full h-full bg-white border-0 rounded-2xl cursor-pointer overflow-hidden transition-all duration-300 active:scale-[0.98] touch-manipulation p-0 gap-0 ".concat(C?"shadow-[0_12px_30px_-10px_rgba(0,0,0,0.08)] translate-y-[-4px]":"shadow-[0_2px_8px_-2px_rgba(0,0,0,0.04)] hover:shadow-[0_8px_24px_-6px_rgba(0,0,0,0.06)]"),onClick:a,onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),children:(0,s.jsxs)("div",{className:"p-3 flex flex-col h-full gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(c.E,{variant:"secondary",className:"text-[10px] font-medium bg-violet-50 text-violet-600 hover:bg-violet-100 px-2 py-0.5 border-0 rounded-md",children:K}),(0,s.jsx)("div",{className:"flex items-center gap-2 text-gray-400 text-xs",children:(0,s.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,s.jsx)(u.A,{className:"w-3 h-3"}),(0,s.jsx)("span",{children:t.views||0})]})})]}),(0,s.jsx)("h3",{className:"font-bold text-gray-900 text-sm leading-snug line-clamp-2 group-hover:text-violet-600 transition-colors",children:t.title}),(0,s.jsx)("div",{className:"flex-1 min-h-0",children:(0,s.jsx)("p",{className:"text-xs text-gray-500 leading-relaxed line-clamp-3",children:t.content||"暂无内容预览..."})}),t.tags&&t.tags.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1 mt-1",children:t.tags.slice(0,2).map((e,t)=>(0,s.jsxs)("span",{className:"text-[10px] text-gray-500 px-1.5 py-0.5 bg-gray-50 rounded-md border border-gray-100",children:["#",e]},t))}),(0,s.jsx)("div",{className:"h-px w-full bg-gray-50 my-1"}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,s.jsx)(h.A,{className:"w-3 h-3 text-gray-400"}),t.authorName&&t.authorUsername?(0,s.jsx)(N(),{href:(0,b.v)("/user/".concat(t.authorUsername),j),prefetch:!1,onClick:e=>e.stopPropagation(),className:"truncate max-w-[80px] hover:text-gray-900 transition-colors cursor-pointer hover:underline",children:t.authorName}):(0,s.jsx)("span",{className:"truncate max-w-[80px]",children:t.authorName||"匿名"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{className:"p-1 rounded-full transition-all duration-200 ".concat(R?"bg-red-50 text-red-500":"bg-transparent text-gray-400 hover:bg-gray-50 hover:text-red-500"),onClick:G,title:"点赞",children:(0,s.jsx)(d.A,{className:"w-3.5 h-3.5 ".concat(R?"fill-current":"")})}),(0,s.jsx)("button",{className:"p-1 rounded-full transition-all duration-200 ".concat(F?"bg-green-50 text-green-500":"bg-transparent text-gray-400 hover:bg-gray-50 hover:text-blue-500"),onClick:q,title:"复制",children:F?(0,s.jsx)(p.A,{className:"w-3.5 h-3.5"}):(0,s.jsx)(m.A,{className:"w-3.5 h-3.5"})})]})]})]})}),(0,s.jsx)(w.k,{isOpen:z,onClose:()=>J(!1),remainingCount:D})]})}function C(e){let{items:t,onLoadMore:a,hasMore:i=!1,isLoadingMore:c=!1,onFirstLayoutComplete:l,onLayoutMetrics:d,isInitialRender:u=!1,onCardClick:h}=e,p=(0,o.Ym)(),m=(0,n.rd)(),g=(0,r.useRef)(null),f=(0,r.useRef)(null),x=(0,r.useRef)(new Map),y=(0,r.useRef)(new Set),[w,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>v(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let j=w?12:16,[N,C]=(0,r.useState)(0),[E,T]=(0,r.useState)(!1),P=(0,r.useRef)(!1),_=(0,r.useRef)(!1),M=(0,r.useRef)(!1),R=(0,r.useRef)(0),A=(0,r.useRef)(0),S=(0,r.useCallback)(()=>
1{if(!g.current)return{cols:5,columnWidth:280};let e=g.current.clientWidth;if(e<640)return{cols:2,columnWidth:Math.floor((e-j)/2)};let t=Math.floor(e/(280+j));return e<1024?{cols:Math.max(2,Math.min(t,3)),columnWidth:280}:{cols:Math.max(2,Math.min(t,6)),columnWidth:280}},[j,w]),L=(0,r.useCallback)((e,t)=>{var a,s,r,n,o,i,c;if(e.isPlaceholder)return Math.max(160,Math.min(e.placeholderHeight||200,420));let l=e.featured_image&&""!==e.featured_image.trim();if(("image"===e.type||"video"===e.type)&&!l)return 140;switch(e.type){case"image":return 200+Math.min(25*Math.floor((((null==(a=e.title)?void 0:a.length)||0)+((null==(s=e.description)?void 0:s.length)||0))/200),100);case"video":return t/(16/9)+Math.min(20*Math.floor((((null==(r=e.title)?void 0:r.length)||0)+((null==(n=e.description)?void 0:n.length)||0))/200),80)+100;default:return 120+Math.min(15*Math.floor((((null==(o=e.title)?void 0:o.length)||0)+((null==(i=e.content)?void 0:i.length)||0)+((null==(c=e.description)?void 0:c.length)||0))/300),60)}},[]),U=(0,r.useCallback)(async()=>{let e=A.current,a=0,s=0;if(P.current){_.current=!0,console.log("↪️ 已在布局中,本次调用合并为待执行");return}if(P.current=!0,console.log("\uD83C\uDFA8 MasonryLayout layoutItems 开始:",{itemsCount:t.length,hasContainer:!!g.current}),!g.current||0===t.length){console.log("⚠️ layoutItems 跳过: 容器不存在或items为空"),P.current=!1;return}if(0===t.reduce((e,t)=>e+ +!!x.current.get(t.id),0)){console.log("⏳ 等待 item refs 就绪(0 ready):",{expected:t.length}),P.current=!1,setTimeout(()=>{A.current===e&&U()},16);return}let{cols:r,columnWidth:n}=S(),o=r*n+(r-1)*j,i=g.current.clientWidth,c=w?0:Math.max(0,(i-o)/2),u=Array(r).fill(0),h=t.reduce((e,t)=>e+ +!!t.isPlaceholder,0);console.log("� layoutItems 统计:",{total:t.length,placeholderCount:h,cols:r,columnWidth:n,gap:j});let p=!1,m=!1;for(let e=0;e<t.length;e++){let r=t[e],o=x.current.get(r.id);if(!o){m=!0,console.log("⚠️ 卡片 ".concat(r.id," 的DOM元素不存在"));continue}o.style.width="".concat(n,"px"),o.style.position="absolute",o.style.transition="none",await new Promise(e=>requestAnimationFrame(e));let i=o.getBoundingClientRect().height||L(r,n),l=0,d=0,h=u.indexOf(Math.min(...u));r.isPlaceholder&&!p&&(console.log("\uD83E\uDDE9 占位符首个布局: 与已有内容错落混排",{columnHeights:[...u]}),p=!0),l=c+h*(n+j),d=u[h],u[h]+=i+j,o.style.left="".concat(l,"px"),o.style.top="".concat(d,"px"),o.style.visibility="visible",console.log("✅ 卡片 ".concat(r.id," 布局完成:"),{left:l,top:d,height:i}),r.isPlaceholder||(a+=i,s+=1)}let f=Math.max(...u);if(C(f),console.log("\uD83D\uDCE6 容器高度更新:",f),s>0){let e=a/s,n=t.reduce((e,t)=>e+ +!!t.isPlaceholder,0);null==d||d({avgHeight:e,cols:r,count:s,placeholders:n})}console.log("\uD83C\uDFC1 MasonryLayout layoutItems 完成"),M.current||(M.current=!0,T(!0),R.current=Date.now()+800,null==l||l()),P.current=!1,(m||_.current)&&(_.current=!1,setTimeout(()=>{A.current===e&&U()},16))},[t,S,L,j,d,w,l]);(0,r.useEffect)(()=>{if(A.current+=1,console.log("\uD83D\uDD04 MasonryLayout items 变化:",{itemsCount:t.length,isInitialRender:u}),0===t.length)return void console.log("⚠️ items为空,跳过布局");if(u&&!M.current){let e=setTimeout(()=>{console.log("⚡ 首次真实渲染:立即执行首次布局"),U()},0);return()=>clearTimeout(e)}let e=setTimeout(()=>{console.log("⏰ 延迟50ms后执行 layoutItems"),U()},50);return()=>{console.log("\uD83E\uDDF9 清理定时器"),clearTimeout(e)}},[t,u,U]);let I=(0,r.useRef)(0);(0,r.useEffect)(()=>{if(!f.current||!i||!a||!E)return;let e=f.current,t=new IntersectionObserver(e=>{let s=e[0];if(s.isIntersecting&&!c&&i){let e=Date.now();if(e-I.current<500)return;I.current=e,t.unobserve(s.target),a()}},{threshold:.1});return t.observe(e),()=>t.disconnect()},[i,c,a,E]),(0,r.useEffect)(()=>{let e=()=>{_.current=!0;let e=A.current;setTimeout(()=>{A.current===e&&U()},80)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[U]);let H=(0,r.useCallback)(()=>{if(u&&M.current&&Date.now()<R.current)return;_.current=!0;let e=A.current;setTimeout(()=>{A.current===e&&U()},50)},[u,U]);return(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{ref:g,className:"relative w-full mx-auto",style:{height:N,minHeight:0,width:"100%"},children:t.map(e=>(0,s.jsx)("div",{ref:t=>{t?(x.current.set(e.id,t),y.current.has(e.id)||(t.style.visibility="hidden",y.current.add(e.id))):x.current.delete(e.id)},className:"absolute",children:(0,s.jsx)(k,{prompt:e,onClick:()=>{h?h(e):/mobile|android|iphone|ipad|phone/i.test(navigator.userAgent)?m.push("/prompts/".concat(e.id)):window.open((0,b.v)("/prompts/".concat(e.id),p),"_blank")},onImageLoad:H})},e.id))}),i&&E&&(0,s.jsx)("div",{ref:f,className:"w-full h-20 flex items-center justify-center mt-8",children:c&&!t.some(e=>e.isPlaceholder)?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-violet-600"}),(0,s.jsx)("span",{className:"text-gray-600",children:"加载更多..."})]}):(0,s.jsx)("div",{className:"text-gray-400",children:"滚动加载更多"})})]})}},80344:(e,t,a)=>{a.d(t,{FH:()=>i,JR:()=>s,YG:()=>r,uE:()=>o}),a(95704);let s="/api",r=e=>e?e.startsWith("http://")||e.startsWith("https://")?e:e.includes(".aliyuncs.com")?"https://".concat(e):e.includes("static.prompthub.xin")||e.includes("media.prompthub.xin")?e.startsWith("http")?e:"https://".concat(e):e:"";class n{getAuthHeaders(){return{"Content-Type":"application/json"}}async handleResponse(e){try{let t=await e.json();if(!e.ok){let a=Error(t.message||"HTTP ".concat(e.status));throw a.status=e.status,a.isAuthError=401===e.status,a.errorType=t.errorType,a.pointsRefunded=t.pointsRefunded,a.refundedPoints=t.refundedPoints,a.response={data:t},401===e.status&&console.warn("\uD83D\uDEAB API请求认证失败 (401),token可能已过期"),a}if(!t.success){let e=Error(t.message||"请求失败");throw e.errorType=t.errorType,e.pointsRefunded=t.pointsRefunded,e.refundedPoints=t.refundedPoints,e.response={data:t},e}return t.data}catch(e){if(e instanceof SyntaxError)throw Error("服务器响应格式错误");throw e}}async get(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let a=t?this.getAuthHeaders():{"Content-Type":"application/json"},s=await fetch("".concat(this.baseUrl).concat(e),{method:"GET",headers:a,credentials:"include",cache:"no-store"});return await this.handleResponse(s)}catch(e){if(e instanceof Error&&"Failed to fetch"===e.message)throw Error("网络连接失败,请检查网络或稍后重试");throw e}}async post(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{let s=a?this.getAuthHeaders():{"Content-Type":"application/json"},r=await fetch("".concat(this.baseUrl).concat(e),{method:"POST",headers:s,body:t?JSON.stringify(t):void 0,credentials:"include"});return await this.handleResponse(r)}catch(e){if(e instanceof Error&&"Failed to fetch"===e.message)throw Error("网络连接失败,请检查网络或稍后重试");throw e}}async put(e,t){let a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];try{let s=a?this.getAuthHeaders():{"Content-Type":"application/json"},r=await fetch("".concat(this.baseUrl).concat(e),{method:"PUT",headers:s,body:t?JSON.stringify(t):void 0,credentials:"include"});return await this.handleResponse(r)}catch(e){if(e instanceof Error&&"Failed to fetch"===e.message)throw Error("网络连接失败,请检查网络或稍后重试");throw e}}async delete(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{let a=t?this.getAuthHeaders():{"Content-Type":"application/json"},s=await fetch("".concat(this.baseUrl).concat(e),{method:"DELETE",headers:a,credentials:"include"});return await this.handleResponse(s)}catch(e){if(e instanceof Error&&"Failed to fetch"===e.message)throw Error("网络连接失败,请检查网络或稍后重试");throw e}}async getPublicPrompts(){return this.get("/prompts/public")}async getMyPrompts(){return this.get("/prompts/my",!0)}async createPrompt(e){return this.post("/prompts",e,!0)}async updatePrompt(e,t){return this.put("/prompts/".concat(e),t,!0)}async deletePrompt(e){return this.delete("/prompts/".concat(e),!0)}async getCurrentUser(){return this.get("/auth/me",!0)}async validateToken(){try{return await this.getCurrentUser(),!0}catch(e){if(401===e.status)return console.log("\uD83D\uDD12 Token验证失败:401 Unauthorized"),!1;return console.log("\uD83C\uDF10 Token验证时遇到网络或其他错误,假设token有效"),!0}}constructor(){this.baseUrl=s}}let o=new n,i={prompts:{public:"".concat(s,"/prompts/public"),list:"".concat(s,"/prompts"),myList:"".concat(s,"/prompts/my"),create:"".concat(s,"/prompts"),update:e=>"".concat(s,"/prompts/").concat(e),delete:e=>"".concat(s,"/prompts/").concat(e)},mediaPackages:{list:"".concat(s,"/media-packages"),upload:"".concat(s,"/media-packages/upload"),detail:e=>"".concat(s,"/media-packages/").concat(e),update:e=>"".concat(s,"/media-packages/").concat(e),delete:e=>"".concat(s,"/media-packages/").concat(e),file:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"original";return"".concat(s,"/media-packages/").concat(e,"/file?itemIndex=").concat(t,"&variant=").concat(a)}},adminMediaPackages:{list:"".concat(s,"/admin/media-packages"),upload:"".concat(s,"/admin/media-packages/upload"),update:e=>"".concat(s,"/admin/media-packages/").concat(e),delete:e=>"".concat(s,"/admin/media-packages/").concat(e)},faceTools:{record:"".concat(s,"/face-tools/record")},auth:{login:"".concat(s,"/auth/login"),register:"".concat(s,"/auth/register")},categories:{list:"".concat(s,"/categories"),stats:"".concat(s,"/categories/stats")},snippets:{list:"".concat(s,"/snippets"),categories:"".concat(s,"/snippets/categories"),search:"".concat(s,"/snippets/search"),detail:e=>"".concat(s,"/snippets/").concat(e),use:e=>"".concat(s,"/snippets/").concat(e,"/use")},skills:{list:"".concat(s,"/skills"),categories:"".concat(s,"/skills/categories"),catalogs:"".concat(s,"/skills/catalogs"),detail:e=>"".concat(s,"/skills/").concat(encodeURIComponent(String(e))),files:e=>"".concat(s,"/skills/").concat(encodeURIComponent(String(e)),"/files")},dshPlugins:{list:"".concat(s,"/dsh/plugins"),categories:"".concat(s,"/dsh/plugins/categories"),detail:e=>"".concat(s,"/dsh/plugins/").concat(encodeURIComponent(e)),registry:"".concat(s,"/dsh/plugins/registry.json")},friendlyLinks:{list:"".concat(s,"/friendly-links"),create:"".concat(s,"/friendly-links"),update:"".concat(s,"/friendly-links"),delete:"".concat(s,"/friendly-links")}}},90960:(e,t,a)=>{a.d(t,{FH:()=>s.FH,JR:()=>s.JR,YG:()=>s.YG});var s=a(80344)}}]);
2//# sourceMappingURL=144-f83db60dd4be9c45.js.map

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.