PageSourceSearch

https://smartguys.ai/_next/static/chunks/app/layout-e4085ab355edaf6d.js

js smartguys.ai collected 2026-10-05 15:07:00 UTC 26,185 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(31238),a=n(61359);i.Ay.use(a.r9).init({resources:{"zh-CN":{translation:{explore:{apps:{allCategories:"全部分类"}},level:{junior:"初级",middle:"中级",senior:"高级",expert:"正高级"},team:{label:"团队"}}},en:{translation:{explore:{apps:{allCategories:"All Categories"}},level:{junior:"Junior",middle:"Middle",senior:"Senior",expert:"Expert"},team:{label:"Team"}}}},lng:"zh-CN",fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1},debug:!1});let o=i.Ay},12449:(e,t,n)=>{"use strict";n.d(t,{DA:()=>x,L0:()=>_,UZ:()=>a,Zb:()=>p,_n:()=>o,a4:()=>r,cF:()=>f,cl:()=>l,d$:()=>m,dS:()=>v,dq:()=>E,ez:()=>s,fU:()=>h,iS:()=>g,iW:()=>u,kq:()=>d,mb:()=>w,rY:()=>y,yO:()=>b});var i=n(37887),a=function(e){return e.ALL="all",e.VERSION="version",e.SYSTEM="system",e.TASK="task",e}({}),o=function(e){return e.VERSION_UPDATE="version_update",e.PLATFORM_MAINTENANCE="platform_maintenance",e.PLATFORM_PROMOTION="platform_promotion",e.NEW_AI_EMPLOYEE="new_ai_employee",e.TASK_COMPLETED="task_completed",e}({}),s=function(e){return e.SCHEDULED="scheduled",e.PUBLISHED="published",e.ARCHIVED="archived",e}({}),r=function(e){return e.READ="read",e.UNREAD="unread",e}({});let c=e=>Object.entries(e).reduce((e,t)=>{let[n,i]=t;return("string"==typeof i||"number"==typeof i)&&(e[n]=i),e},{}),l=async e=>await (0,i.bE)("/admin/notifications/broadcasts",e),d=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await (0,i.Jt)("/admin/notifications/broadcasts",{params:c(e)})},u=async e=>await (0,i.Jt)("/admin/notifications/broadcasts/".concat(e)),m=async(e,t)=>await (0,i.yJ)("/admin/notifications/broadcasts/".concat(e),t),f=async e=>await (0,i.yH)("/admin/notifications/broadcasts/".concat(e)),g=async e=>await (0,i.bE)("/admin/notifications/templates",e),h=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await (0,i.DL)("/admin/notifications/templates",{method:"GET",params:c(e)})},p=async e=>await (0,i.Jt)("/admin/notifications/templates/".concat(e)),v=async(e,t)=>await (0,i.yJ)("/admin/notifications/templates/".concat(e),t),y=async e=>await (0,i.yH)("/admin/notifications/templates/".concat(e)),b=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await (0,i.DL)("/notifications/feed",{method:"GET",params:c(e)})},x=async()=>await (0,i.DL)("/notifications/tab-counts"),w=async()=>await (0,i.Jt)("/notifications/unread-count"),_=async e=>await (0,i.bE)("/notifications/read",e),E=async e=>await (0,i.bE)("/notifications/read-all",{params:c(e)})},15835:(e,t,n)=>{"use strict";n.d(t,{$I:()=>c,Y0:()=>r,u3:()=>s});var i=n(51784),a=n(97941);let o="goagent_account_state",s={get:()=>{try{return localStorage.getItem(o)}catch(e){return null}},set:e=>{try{localStorage.setItem(o,e)}catch(e){}},remove:()=>{try{localStorage.removeItem(o)}catch(e){}}},r=e=>{s.set(e.account_state),e.access_token?a.S.set(e.access_token):a.S.remove()},c=()=>{let e=s.get();return!e||e===i.vL.READY}},21165:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(12267),a=n(41073),o=n(63177),s=n(55628),r=n(52614),c=n(99026),l=n(1031),d=n(97941),u=n(91684),m=n.n(u),f=n(67057),g=function(e){return e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED",e}(g||{}),h=function(e){return e.SUCCESS="SUCCESS",e.WARNING="WARNING",e.ERROR="ERROR",e}(h||{});let p=m()((e,t)=>{if(!t.includes("/notifications/ws-notification"))switch(e){case"SUCCESS":l.o.success(t);break;case"WARNING":l.o.warning(t);break;case"ERROR":l.o.error(t)}},0),v=e=>{let t="".concat("/api/v1").concat(e),n=d.S.get(),i=(0,c.UK)(),a=new URL(t,"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?f.env.PUBLIC_API_URL:window.location.origin);return n&&a.searchParams.set("token","Bearer ".concat(encodeURIComponent(n))),i&&a.searchParams.set("language",i),a.toString()},y=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;await new Promise(t=>setTimeout(t,1e3*e))};class b{static getInstance(){return b.instance||(b.instance=new b),b.instance}async createConnection(e){let{key:t=(0,o.Oq)(),endpoint:n,handleMessage:s,restoreData:r,initialReconnectCount:c=0,intialIsReconnecting:d=!1}=e,u=this.connections.get(t);if("".concat(n,"-").concat(t),u&&u.socket.readyState!==WebSocket.CLOSED)return u.socket;let m=new WebSocket(v(n)),f=t;a.zv.includes(t)&&(f="".concat(t,"-").concat(Math.random().toString(36).substring(2,15))),this.connections.set(t,{socket:m,endpoint:n,handleMessage:s,isReconnecting:d,reconnectCount:c}
1),this.newChatSessionItems.push({key:f,sessionId:""});let g=()=>{m.removeEventListener("message",h),m.removeEventListener("open",p),m.removeEventListener("close",b),m.removeEventListener("error",x)},h=e=>{var n,a;let r=(0,o.Gl)(e.data,{}),c=this.getUsedKey(t,f);if((null==r?void 0:r.type)==="pong"){this.handlePong({key:t,onlyKey:f});return}if("session_conflict"===r.type){let e=(null===(n=r.content)||void 0===n?void 0:n.message)||"此对话正在其他标签页中使用,请选择其他操作";l.o.warning(e);return}if("max_connections_exceeded"===r.type){let e=(null===(a=r.content)||void 0===a?void 0:a.message)||"当前账户已达到最大连接数限制,请关闭其他标签页后重试";l.o.warning(e);return}if("task_status_changed"===r.type)try{{let e=r.content||{};window.dispatchEvent(new CustomEvent("goagent-task-status-changed",{detail:e}))}}catch(e){}s(r,c);let{agentState:d,updateAgentState:u}=i.Lo.getState();r.content.connection_id&&r.content.connection_id!==d.connectionId&&u({connectionId:r.content.connection_id})},p=()=>{this.startHeartbeat({key:t,onlyKey:f,callback:g,restoreData:r})},b=()=>{this.reconnect({key:t,onlyKey:f,callback:g,restoreData:r})},x=e=>{};return m.addEventListener("message",h),m.addEventListener("open",p),m.addEventListener("close",b),m.addEventListener("error",x),new Promise((e,i)=>{let a=()=>{m.removeEventListener("open",o),m.removeEventListener("error",s)},o=async()=>{a(),await y(1),e(m)},s=e=>{a(),i(Error("WebSocket connection error for ".concat(n,"-").concat(t)))};m.addEventListener("open",o),m.addEventListener("error",s)})}getConnection(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.Oq)();return null===(e=this.connections.get(t))||void 0===e?void 0:e.socket}isConnected(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.Oq)();return(null===(e=this.connections.get(t))||void 0===e?void 0:e.socket.readyState)===1}getConnections(){return this.connections}getUsedKey(e,t){var n;return(null===(n=this.newChatSessionItems.find(e=>e.key===t))||void 0===n?void 0:n.sessionId)||e}async sendMessage(e){let{key:t=(0,o.Oq)(),message:n}=e,i=this.connections.get(t),a=null==i?void 0:i.socket.readyState;if(!i||3===a)return p("WARNING",(0,s.t)(r.g["网络连接异常,请尝试刷新页面"])),!1;if(0===a&&await y(2),1===a)try{i.socket.send(JSON.stringify(n)),await y(1)}catch(e){}}changeCollectionKey(e){let{oldKey:t,newKey:n}=e;if(this.connections.has(t)){let e=this.connections.get(t);this.connections.set(n,e),this.connections.delete(t);let i=this.newChatSessionItems.findLastIndex(e=>e.key.includes(t));-1!==i&&(this.newChatSessionItems[i].sessionId=n)}}closeConnection(e){let{key:t,onlyKey:n}=e,i=this.getUsedKey(t,n);if(this.connections.get(i)){var a;null===(a=this.connections.get(i))||void 0===a||a.socket.close(),this.stopHeartbeat({key:t,onlyKey:n}),this.connections.delete(i)}}getConnectionCount(){return this.connections.size}startHeartbeat(e){let{key:t,onlyKey:n,callback:i,restoreData:a}=e,o=this.getUsedKey(t,n),s=this.connections.get(o);s&&(this.stopHeartbeat({key:t,onlyKey:n}),"".concat(s.endpoint,"-").concat(t),s.heartbeatTimer=setInterval(()=>{if(1===(null==s?void 0:s.socket.readyState))try{s.socket.send(JSON.stringify({type:"ping"})),s.pongTimeoutTimer=setTimeout(()=>{this.reconnect({key:t,onlyKey:n,callback:i,restoreData:a})},12e4)}catch(e){}},5e3))}stopHeartbeat(e){let{key:t,onlyKey:n}=e,i=this.getUsedKey(t,n),a=this.connections.get(i);a&&(a.heartbeatTimer&&(clearInterval(a.heartbeatTimer),a.heartbeatTimer=void 0),a.pongTimeoutTimer&&(clearTimeout(a.pongTimeoutTimer),a.pongTimeoutTimer=void 0))}handlePong(e){let{key:t,onlyKey:n}=e,i=this.getUsedKey(t,n),a=this.connections.get(i);a&&a.pongTimeoutTimer&&(clearTimeout(a.pongTimeoutTimer),a.pongTimeoutTimer=void 0)}async reconnect(e){let{key:t,onlyKey:n,callback:i,restoreData:a}=e,o=this.getUsedKey(t,n),c=this.connections.get(o);if(!c)return;let{endpoint:l,handleMessage:d}=c;if(c.isReconnecting)return;let u=(c.reconnectCount||0)+1;if(u>10){"".concat(c.endpoint,"-").concat(o),p("ERROR",(0,s.t)(r.g["WebSocket连接失败,已重试{{count}}次,请刷新页面重试"],{count:10})),this.closeConnection({key:t,onlyKey:n}),"function"==typeof i&&i();return}let m="".concat(c.endpoint,"-").concat(o);c.isReconnecting=!0;let f=Math.min(Math.max(2e3*2**(u-1),5e3),3e4),g=.2*f*(2*Math.random()-1),h=Math.max(2e3,Math.min(3e4,Math.round(f+g)));await y(h/1e3),p("WARNING",(0,s.t)(r.g["端点 {{socketName}} 开始第 {{currentCount}}/{{maxCount}} 次重连,等待 {{seconds}} 秒..."],{socketName:m,currentCount:u,maxCount:10,seconds:Math.ceil(h/1e3)})),this.closeConnection({key:t,onlyKey:n}),"function"==typeof i&&i();try{await this.createConnection({key:o,endpoint:l,handleMessage:d,restoreData:a,initialReconnectCount:u,intialIsReconnecting:!0});let e=this.connections.get(o);if(e){let t=(0,s.t)(r.g["端点 {{socketName}} 已恢复连接"],{socketName:m});p("SUCCESS",t),e.reconnectCount=0,e.isReconnecting=!1,"function"==typeof a&&a(o,!0)}}catch(e){}finally{let e=this.connections.get(o);e&&(e.isReconnecting=!1)}}constructor(){this.connections=new Map,this.newChatSessionItems=[]}}let x=b},46435:(e,t,n)=>{"use strict";n.d(t,{g:()=>a,r:()=>r});let i=e=>"string"==typeof e?e.trim():"",a=function(e){var t,n,a;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||"object"!=typeof e)return"dynamic_team";let c=[e.team_code,e.teamCode,e.agent_category,e.agent_type,null===(t=e.team)||void 0===t?void 0:t.code,null===(n=e.team)||void 0===n?void 0:n.team_code,e.role].map(i).filter(
1Boolean),l=c.find(e=>r.some(t=>t.code===e));if(l)return l;let d=i(e.team_name||e.teamName||(null===(a=e.team)||void 0===a?void 0:a.team_name)),u=d?r.find(e=>e.team_name===d):null;if(null==u?void 0:u.code)return u.code;let m=o(e.team_members);if(m.length>0){let e=r.find(e=>s(m,o(e.team_members)));if(null==e?void 0:e.code)return e.code}let f=r.find(e=>{let t=o(e.team_members);return t.length>0&&m.length>0&&m.every(e=>t.includes(e))});if(null==f?void 0:f.code)return f.code;let g=c.find(e=>"dynamic_team"!==e&&"custom"!==e);return g||"dynamic_team"},o=e=>Array.isArray(e)?Array.from(new Set(e.map(e=>"string"==typeof e?e.trim():e&&"object"==typeof e?i(e.code||e.agent_type||e.agentType||e.name):"").filter(Boolean))).sort():[],s=(e,t)=>0!==e.length&&e.length===t.length&&e.every((e,n)=>e===t[n]),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=a(e,t);return t.find(e=>e.code===n)||null}},48349:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var i=n(49711),a=n(45787);let o="!bg-goagent-natural-grey-background-0";function s(){let e=(0,a.usePathname)();return(0,i.useEffect)(()=>{if(null==e?void 0:e.startsWith("/admin")){document.body.classList.remove(o);return}return document.body.classList.add(o),()=>{document.body.classList.remove(o)}},[e]),null}},51784:(e,t,n)=>{"use strict";n.d(t,{iD:()=>o,kz:()=>r,p3:()=>s,vL:()=>a});var i=n(37887),a=function(e){return e.EMAIL_UNVERIFIED="email_unverified",e.BETA_PENDING="beta_pending",e.BETA_REJECTED="beta_rejected",e.READY="ready",e}({});let o=async e=>await (0,i.bE)("/login",e),s=async e=>await (0,i.bE)("/google-login",e),r=async e=>await (0,i.bE)("/register",e)},54903:()=>{},55333:(e,t,n)=>{"use strict";n.d(t,{HP:()=>l,M8:()=>r});var i=n(91951),a=n(1392),o=n(98939),s=n(53233),r=function(e){return e.initInviteData="initInviteData",e.auditStatusMap="auditStatusMap",e.aiAssistantExpMap="aiAssistantExpMap",e}({});let c=(0,i.v)()((0,a.D)(e=>({auditStatusMap:{},aiAssistantExpMap:{},initInviteData:async()=>{let t=await (0,o.YD)();if(t){let{audit_status:n,ai_assistant_exp:i}=t,a={},o={};for(let e of n)a[e.code]=e.name;for(let e of i)o[e.code]=e.name;e({auditStatusMap:a,aiAssistantExpMap:o})}}}))),l=(0,s.h)(c)},55479:(e,t,n)=>{"use strict";n.d(t,{default:()=>$});var i=n(98887),a=n(54752),o=n(62060),s=n(36282),r=n(19065),c=n(8080),l=n(52614);let d=e=>{let{...t}=e,{t:n}=(0,c.o)();return(0,i.jsx)(r.l$,{className:"toast-container",position:"top-center",expand:!0,visibleToasts:1,containerAriaLabel:n(l.g.通知消息),icons:{success:(0,i.jsx)("iconpark-icon",{name:"check",width:"18",height:"18"}),error:(0,i.jsx)("iconpark-icon",{name:"error",width:"18",height:"18"}),info:(0,i.jsx)("iconpark-icon",{name:"information",width:"18",height:"18"}),warning:(0,i.jsx)("iconpark-icon",{name:"warning",width:"18",height:"18"})},toastOptions:{classNames:{toast:"relative !min-h-[54px] !w-fit !min-w-[220px] !max-w-[360px] !items-center !gap-[10px] !px-[18px] !py-[14px] !pr-[48px] !rounded-[14px] border !border-goagent-natural-grey-background-8 !bg-goagent-natural-grey-background-4",description:"fz14-w400-goagent-natural-grey-main-text-65",title:"fz16-w400-goagent-natural-grey-title-85 !leading-[22px] !text-center",closeButton:"!absolute !left-auto !right-[5px] !top-[5px] !m-0 !h-5 !w-5 !bg-goagent-natural-grey-background-4 !border-none !text-white hover:!bg-goagent-natural-grey-background-8",icon:"!m-0 !shrink-0"},duration:3e3,closeButton:!0,closeButtonAriaLabel:n(l.g.关闭)},...t})};var u=n(49711),m=n(45787),f=n(97941),g=n(73176);let h=["/login","/privacy-policy","/user-agreement","/invite","/invite/active","/google-callback","/reset-password","/auth-error","/open/chat","/open/team"];var p=n(30677),v=n(15835),y=n(51784);function b(e){let{children:t}=e,[n,a]=(0,u.useState)(!0),{getParams:o}=(0,p.P)(),{callbackUrl:s,error:r}=o(),c=(0,m.useRouter)(),l=(0,m.usePathname)();return((0,u.useEffect)(()=>{(async()=>{if(s&&r){c.push("/auth-error?error=".concat(r));return}let e=f.S.has(),t="/"===l||"/home"===l,n=h.includes(l),i=v.u3.get();if(e&&i&&i!==y.vL.READY&&!n){c.push("/login");return}if(!e&&!t&&!n){c.push(s||"/");return}a(!1)})()},[l,s,r,c]),n)?(0,i.jsx)("div",{className:"flex justify-center items-center w-full min-h-screen bg-goagent-natural-grey-background-0",children:(0,i.jsx)(g.R,{size:80})}):(0,i.jsx)(i.Fragment,{children:t})}var x=n(84187);function w(e){let{children:t}=e,n=(0,m.useRouter)(),a=(0,m.usePathname)(),[o,s]=(0,u.useState)(!0);(0,u.useEffect)(()=>{r()},[a,n]);let r=async()=>{let e=x.x.has(),t="/admin/login"===a;if(e&&t){n.push("/admin");return}if(!e&&!t){n.push("/admin/login");return}s(!1)};return o?(0,i.jsx)("div",{className:"flex justify-center items-center w-full min-h-screen bg-goagent-natural-grey-background-0",children:(0,i.jsx)(g.A,{size:80,speed:5,textSize:20})}):(0,i.jsx)(i.Fragment,{children:t})}var _=n(12532),E=n(83870),S=n(26227),k=n(57500),C=n(97927),I=n(41073),j=n(12267);function N(e){let{children:t}=e,{packageList:n,subscription:a,knowledgeCapacity:o,setUserPackage:s,initUserInfo:r,initUserKnowledgeCapacity:c,initUserPointsBalance:l,initUserSubscription:d,initUserPackageList:m}=(0,C.As)([C.P4.packageList,C.P4.subscription,C.P4.knowledgeCapacity,C.P4.setUserPackage,C.P4.initUserInfo,C.P4.initUserKnowledgeCapacity,C.P4.initUserPointsBalance,C.P4.initUserSubscription,C.P4.initUserPackageList]),{initRoles:f}=(0,I.zn)([I.oy.initRoles]),{initChatSessions:g}=(0,j.Y_)([j.pB.initChatSessions]),h=(0,u.useRef)(!1),p=(0,u.useRef)(!1),v=(0,u.useCallback)(async()=>
1{if(!p.current&&!h.current){p.current=!0;try{await Promise.all([r(),f(),d()]);let e=()=>{Promise.all([c(),l(),m()]).catch(console.error)},t=()=>{Promise.all([g()]).catch(console.error)};"requestIdleCallback"in window?(window.requestIdleCallback(e,{timeout:100}),window.requestIdleCallback(t,{timeout:200})):(setTimeout(e,100),setTimeout(t,200)),h.current=!0}catch(e){}finally{p.current=!1}}},[r,c,l,d,m,f,g]);return(0,u.useEffect)(()=>{v()},[v]),(0,u.useEffect)(()=>{(null==n?void 0:n.length)&&a&&s({package:n.find(e=>e.type===a.package_type),knowledgeCapacity:o,subscription:a})},[n,a,o,s]),(0,i.jsx)(i.Fragment,{children:t})}var T=n(1031),P=n(46435);let R=(e,t)=>{var n,i;if("string"==typeof e||"number"==typeof e){let n=String(e);return t.find(e=>String(e.id)===n||e.code===n||e.name===n||e.title===n)||{id:n,code:n,name:n}}let a=null!==(i=null!==(n=null==e?void 0:e.id)&&void 0!==n?n:null==e?void 0:e.role_id)&&void 0!==i?i:null==e?void 0:e.agent_id,o=(null==e?void 0:e.agent_type)||(null==e?void 0:e.agentType)||(null==e?void 0:e.code)||(null==e?void 0:e.role),s=(null==e?void 0:e.name)||(null==e?void 0:e.title);return t.find(e=>null!=a&&String(e.id)===String(a)||o&&e.code===o||s&&(e.name===s||e.title===s))||e};function A(e){let{children:t}=e,{t:n}=(0,c.o)(),a=(0,m.usePathname)(),{getParams:o}=(0,p.P)(),{token:s,from:r}=o(),d="story_space"===r,{initRoles:f,roles:g,teams:h}=(0,I.zn)([I.oy.initRoles,I.oy.roles,I.oy.teams]),{initOpenShare:v,setSelectedEmployee:y,setSelectedTeam:b,setSessionId:x,initFileResources:w,shareData:_}=(0,j.Y_)([j.pB.initOpenShare,j.pB.setSelectedEmployee,j.pB.setSelectedTeam,j.pB.setSessionId,j.pB.initFileResources,j.pB.shareData]);(0,u.useEffect)(()=>{f()},[]),(0,u.useEffect)(()=>{_&&w(_.session_info.id)},[_]);let E=a.includes("/open/team");return(0,u.useEffect)(()=>{s&&g.length>0&&v({params:{token:s},isFromStorySpace:d,callbackSuccess:e=>{let{session_info:t}=e,{role:n,id:i}=t,a=(0,P.r)(t,h);if(a&&E)b(a),y(null);else if(E){var o;let e=Array.isArray(null==t?void 0:t.team_members)?t.team_members:[];b({code:"dynamic_team",team_name:(null==t?void 0:t.team_name)||(null==t?void 0:t.title)||(null==t?void 0:null===(o=t.team)||void 0===o?void 0:o.team_name)||"Dynamic Team",team_description:"",team_avatar:"",team_level:"1",team_category:"",welcome:"",team_members:e.map(e=>R(e,g)).filter(Boolean)}),y(null)}else if(!E){let e=g.find(e=>e.code===n);e&&y(e)}x(i)},callbackError:e=>{["This share is private and cannot be accessed via public link","Share not found"].includes(e.message)&&(T.o.warning(n(l.g["分享链接已失效,正在跳转到首页"])),setTimeout(()=>{window.location.href="/"},3e3))}})},[s,g,h,E]),(0,i.jsx)(i.Fragment,{children:t})}var L=n(55333);function O(e){let{children:t}=e,{initInviteData:n}=(0,L.HP)([L.M8.initInviteData]);return(0,u.useEffect)(()=>{n()},[]),(0,i.jsx)(i.Fragment,{children:t})}var D=n(4551),M=n(43079),U=n(14134),B=n(21165),F=n(12449);let z=e=>"object"==typeof e&&null!==e&&e.type===F._n.TASK_COMPLETED,W=e=>{var t,n;let i=null==e?void 0:null===(t=e.session_id)||void 0===t?void 0:t.trim(),a=null==e?void 0:null===(n=e.role)||void 0===n?void 0:n.trim();if(!i||!a)return null;let o=new URLSearchParams;return"mrgogo"===a.toLowerCase().replace(/[._-]/g,"")?(o.set("team_code","dynamic_team"),o.set("id",i),{sessionId:i,href:"/team?".concat(o.toString())}):(o.set("role",a),o.set("id",i),{sessionId:i,href:"/chats?".concat(o.toString())})};function G(e){let{children:t}=e,n=(0,m.useRouter)(),a=(0,m.useSearchParams)(),{setNotificationApi:o,openNotification:s,setNotificationUnreadTotal:r}=(0,M.PC)([M.o3.setNotificationApi,M.o3.openNotification,M.o3.setNotificationUnreadTotal]),[c,l]=D.Ay.useNotification({maxCount:3}),d=f.S.get(),g=a.get("id"),h=(0,u.useRef)({sessionId:g});(0,u.useEffect)(()=>{h.current={sessionId:g}},[g]);let p=(0,u.useCallback)(e=>{var t,i,a,o;if((null==e?void 0:e.type)==="unread_count_update"){let t=null===(a=e.content)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.total;"number"==typeof t&&r(t);return}if((null==e?void 0:e.type)==="notification"){let t=null===(o=e.content)||void 0===o?void 0:o.count;"number"==typeof t&&r(t)}let c=null==e?void 0:null===(t=e.content)||void 0===t?void 0:t.data;if(c){let{content:e,tag_color:t}=c,i=z(c)?W(c.variables):null;e&&s({content:e,tagColor:t,onClick:i?()=>{h.current.sessionId!==i.sessionId&&n.push(i.href)}:void 0})}},[s,n,r]);return(0,u.useEffect)(()=>{d&&B.A.getInstance().createConnection({endpoint:U.Q.NOTIFICATION_ENDPOINT,key:"notification",handleMessage:p})},[d,p]),(0,u.useEffect)(()=>
1{if(!d){r(0);return}(0,F.mb)().then(e=>{r(e.total||0)}).catch(e=>{})},[d,r]),(0,u.useEffect)(()=>{c&&o(c)},[c,o]),(0,i.jsxs)(i.Fragment,{children:[l,t]})}_.Ay.config({maxCount:1,duration:3});let H={colorBgDefault:"#141414",colorBgSpotlight:"#141414",colorTextLightSolid:"#ffffff",fontSize:12},K=e=>{let{children:t}=e,{locale:n}=(0,c.o)();return(0,i.jsx)(E.Ay,{locale:"zh"===n?o.A:s.A,theme:{components:{Slider:{handleSize:14},Tooltip:{...H},Checkbox:{colorPrimary:"#7c86ff"},Notification:{progressBg:"linear-gradient(90deg, #DCDCDC 0%, #6257F9 100%)"}}},children:(0,i.jsx)(a.Z,{children:(0,i.jsx)(b,{children:t})})})},q=e=>{let{session:t,children:n}=e;return(0,i.jsx)(k.SessionProvider,{session:t,refetchInterval:300,refetchOnWindowFocus:!0,children:(0,i.jsx)(c.I,{children:(0,i.jsx)(K,{children:n})})})},J=e=>{let{session:t,children:n}=e;return(0,i.jsx)(k.SessionProvider,{session:t,children:(0,i.jsx)(c.I,{children:(0,i.jsx)(a.Z,{children:n})})})},Y=["/","/home","/team","/chats","/supermarket","/datasets","/preview","/invite/active"],V=e=>Y.some(t=>"/"===t?"/"===e:e===t||e.startsWith("".concat(t,"/"))),Z=e=>{let{children:t,session:n}=e;return(0,i.jsx)(q,{session:n,children:(0,i.jsx)(S.f,{children:(0,i.jsxs)(G,{children:[f.S.get()&&(0,v.$I)()?(0,i.jsx)(N,{children:t}):t,(0,i.jsx)(d,{})]})})})};function $(e){let{children:t,session:n}=e,a=(0,m.usePathname)(),o=(0,m.useRouter)(),{initInviteData:s}=(0,L.HP)([L.M8.initInviteData]);return((0,u.useEffect)(()=>{s()},[s]),(0,u.useEffect)(()=>{if("/team"===a)return;let e=()=>{o.prefetch("/team")};if("requestIdleCallback"in window){let t=window.requestIdleCallback(e,{timeout:300});return()=>window.cancelIdleCallback(t)}let t=globalThis.setTimeout(e,0);return()=>globalThis.clearTimeout(t)},[a,o]),a.includes("/admin"))?(0,i.jsx)(O,{children:(0,i.jsxs)(c.I,{children:[(0,i.jsx)(w,{children:t}),(0,i.jsx)(d,{})]})}):h.includes(a)||V(a)?h.includes(a)?a.includes("/open/chat")||a.includes("/open/team")?(0,i.jsx)(q,{session:n,children:(0,i.jsxs)(S.f,{children:[(0,i.jsx)(A,{children:t}),(0,i.jsx)(d,{})]})}):(0,i.jsxs)(q,{session:n,children:[(0,i.jsx)(d,{})," ",t]}):(0,i.jsx)(Z,{session:n,children:t}):(0,i.jsx)(J,{session:n,children:t})}},66179:()=>{},66388:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var i=n(98887),a=n(22678);let o="data-iconpark-fallback";function s(){var e;return!!(null===(e=window.customElements)||void 0===e?void 0:e.get("iconpark-icon"))&&!!(window.__iconpark__&&Object.keys(window.__iconpark__).length)}function r(){if("undefined"==typeof document||s()||document.querySelector("script[".concat(o,"]")))return;let e=document.createElement("script");e.src="/js/iconpark.js",e.async=!0,e.setAttribute(o,"true"),document.body.appendChild(e)}function c(){return(0,i.jsx)(a.default,{src:"https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_42500_132.70e983b487b362bdb28750a3a7dd07cf.js",strategy:"afterInteractive",onError:r,onReady:()=>{s()||r()}})}},73176:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,R:()=>o});var i=n(98887),a=n(49711);let o=e=>{let{size:t=180}=e,[n,o]=(0,a.useState)("Initializing");(0,a.useEffect)(()=>{let e=["Loading...","Fetching Data..","Syncing...","Processing..","Optimizing..."],t=0,n=setInterval(()=>{t=(t+1)%e.length,o(e[t])},1e3);return()=>clearInterval(n)},[]);let s=Math.max(16,Math.floor(.3*t));return(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[260px] gap-10",children:[(0,i.jsxs)("div",{className:"flex relative justify-center items-center",style:{width:100,height:100},children:[(0,i.jsx)("div",{className:"absolute inset-0 rounded-full blur-2xl animate-pulse",style:{background:"rgba(98,87,249,0.18)"}}),(0,i.jsx)("div",{className:"absolute inset-0 rounded-full border border-dashed animate-[spin_10s_linear_infinite]",style:{borderColor:"rgba(98,87,249,0.35)"}}),(0,i.jsx)("div",{className:"absolute inset-1 rounded-full border-2 border-transparent animate-[spin_2s_linear_infinite]",style:{borderTopColor:"#6257F9",boxShadow:"0 0 10px rgba(98,87,249,0.55)"}}),(0,i.jsx)("div",{className:"absolute inset-3 rounded-full border-2 border-transparent animate-[spin_3s_linear_infinite_reverse]",style:{borderBottomColor:"#403B78",boxShadow:"0 0 8px rgba(64,59,120,0.5)"}}),(0,i.jsx)("div",{className:"absolute inset-5 rounded-full border border-transparent animate-[spin_1s_ease-in-out_infinite]",style:{borderLeftColor:"rgba(150,142,255,0.6)"}}),(0,i.jsx)("div",{className:"absolute inset-0 animate-[spin_4s_linear_infinite]",children:(0,i.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-1.5 h-1.5 rounded-full",style:{background:"#968EFF",boxShadow:"0 0 6px rgba(150,142,255,0.9)"}})}),(0,i.jsx)("img",{src:"/icons/logo-single.svg",width:s,height:s,alt:"Loading",style:{opacity:.92,filter:"brightness(0) invert(1)"}})]}),(0,i.jsx)("div",{className:"flex flex-col gap-1 justify-center items-center h-8",children:(0,i.jsx)("span",{className:"text-[16px] font-medium tracking-[0.3em] uppercase animate-in fade-in slide-in-from-bottom-2 duration-500",style:{color:"#968EFF"},children:n},n)})]})},s=o}
1,98314:(e,t,n)=>{Promise.resolve().then(n.bind(n,48349)),Promise.resolve().then(n.bind(n,66388)),Promise.resolve().then(n.bind(n,2042)),Promise.resolve().then(n.t.bind(n,65659,23)),Promise.resolve().then(n.t.bind(n,50349,23)),Promise.resolve().then(n.bind(n,55479)),Promise.resolve().then(n.t.bind(n,66179,23)),Promise.resolve().then(n.t.bind(n,54903,23))},98939:(e,t,n)=>{"use strict";n.d(t,{YD:()=>o,wt:()=>a});var i=n(37887);let a=async e=>await (0,i.bE)("/invite/apply",e),o=async()=>await (0,i.Jt)("/invite/enums")}},e=>{var t=t=>e(e.s=t);e.O(0,[6497,5997,7968,8009,4184,7590,602,9342,7137,6568,4133,9173,6859,8940,1059,3376,1719,6259,1083,8369,778,4326,3641,9065,9267,172,2561,7500,1024,5105,5628,2267,3239,6119,5372,8660,5054,1122,5445,8044,1086,7358],()=>t(98314)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.