1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7f6104efdd47da0bb2857cdb8a677ea4f62df042`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:dzmm-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f1648524-3401-4e96-8e07-1efb4a897370`,e._sentryDebugIdIdentifier=`sentry-dbid-f1648524-3401-4e96-8e07-1efb4a897370`)}catch{}})();function e(e){if(!e.success)throw Error(e.error)}function t(e,t){return e==null?void 0:e.filter(e=>e.id!==t)}var n=10080*60*1e3;function r(e){let t=Date.parse(e);return Number.isFinite(t)?new Date(t).toISOString():null}async function i(e){var t,n,i;let{client:u,chatroomId:d,accountId:f,isOwner:p}=e;if(p)return u.leave.mutate({chatroomId:d});if(!f)throw a();let m=(t=e.storage)==null?window.localStorage:t,h=(n=(i=e.now)==null?void 0:i.call(e))==null?Date.now():n,g=`dzmm:group-leave:v1:${f}:${d}`,_=o(m,g,f,d,h);if(!_){var v,y;let t=await u.previewLeave.query({chatroomId:d});if(t.isOwner)throw a();if(!t.membershipJoinedAt)return u.leave.mutate({chatroomId:d});let n=r(t.membershipJoinedAt);if(!n)throw Error(`群èå å
¥æ¶é´æ ¼å¼æ æï¼è¯·å·æ°åéè¯`);_={accountId:f,chatroomId:d,operationId:(v=(y=e.createOperationId)==null?void 0:y.call(e))==null?crypto.randomUUID():v,expectedJoinedAt:n,createdAt:h},s(m,g,_)}let b={chatroomId:d,operationId:_.operationId,expectedJoinedAt:_.expectedJoinedAt};try{let e=await u.leaveV2.mutate(b);return c(m,g,_.operationId),e}catch(e){if(l(e))throw c(m,g,_.operationId),e;try{let e=await u.leaveV2.mutate(b);return c(m,g,_.operationId),e}catch(e){throw l(e)&&c(m,g,_.operationId),e}}}function a(){return Error(`群è身份已ååï¼è¯·å·æ°åéæ°ç¡®è®¤é群æ¹å¼`)}function o(e,t,i,a,o){try{let s=e.getItem(t);if(!s)return null;let c=JSON.parse(s);if(c.accountId!==i||c.chatroomId!==a||typeof c.operationId!=`string`||typeof c.expectedJoinedAt!=`string`||typeof c.createdAt!=`number`||o-c.createdAt>n)return e.removeItem(t),null;let l=r(c.expectedJoinedAt);return l?{...c,expectedJoinedAt:l}:(e.removeItem(t),null)}catch{return null}}function s(e,t,n){try{e.setItem(t,JSON.stringify(n))}catch{}}function c(e,t,n){try{let r=e.getItem(t);if(!r)return;JSON.parse(r).operationId===n&&e.removeItem(t)}catch{}}function l(e){var t,n;if(!e||typeof e!=`object`)return!1;let r=e,i=(t=r.data)==null?(n=r.shape)==null?void 0:n.data:t;return i?typeof i.httpStatus==`number`?[408,425,429].includes(i.httpStatus)||i.httpStatus>=500?!1:i.httpStatus>=400:typeof i.code==`string`&&![`INTERNAL_SERVER_ERROR`,`TIMEOUT`].includes(i.code):!1}export{i as n,t as r,e as t};
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.