1import{e as a,E as o}from"./index-BhKFgU4O.js";const n=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],z=a("heart",n);async function i(){const r=await o("/v1/monitors");if(!r.ok)throw new Error("Failed to load monitors");return r.json()}async function c(r){const t=await o("/v1/monitors",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||e?.error?.message||`Create failed (${t.status})`)}return t.json()}async function w(r){const t=await o("/v1/monitors/resolve-url",{method:"POST",body:JSON.stringify({url:r})});if(!t.ok)throw new Error("Could not resolve short URL");return(await t.json()).resolved_url}async function h(r){const t=await o("/v1/monitors/keyword",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||e?.error?.message||`Create failed (${t.status})`)}return t.json()}async function u(r,t){const e=await o(`/v1/monitors/${r}`,{method:"PATCH",body:JSON.stringify(t)});if(!e.ok)throw new Error("Failed to update monitor");return e.json()}async function d(r){if(!(await o(`/v1/monitors/${r}`,{method:"DELETE"})).ok)throw new Error("Failed to delete monitor")}async function f(r,t=0,e=50){const s=await o(`/v1/monitors/${r}/posts?offset=${t}&limit=${e}`);if(!s.ok)throw new Error("Failed to load posts");return s.json()}async function m(r){if(!(await o(`/v1/monitors/${r}/reset-count`,{method:"POST"})).ok)throw new Error("Failed to reset count")}async function l(r){const t=await o(`/v1/monitors/${r}/refresh`,{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Refresh failed (${t.status})`)}return t.json()}async function v(r){const t=r?`?list_id=${r}`:"",e=await o(`/v1/monitors/watchers${t}`);if(!e.ok)throw new Error("Failed to load watchers");return e.json()}async function y(r){const t=await o("/v1/monitors/watchers",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Failed to create watcher (${t.status})`)}return t.json()}async function E(r){if(!(await o(`/v1/monitors/watchers/${r}/pause`,{method:"POST"})).ok)throw new Error("Failed to pause watcher")}async function p(r){if(!(await o(`/v1/monitors/watchers/${r}/resume`,{method:"POST"})).ok)throw new Error("Failed to resume watcher")}async function $(r){if(!(await o(`/v1/monitors/watchers/${r}`,{method:"DELETE"})).ok)throw new Error("Failed to delete watcher")}async function k(r){const t=await o(`/v1/monitors/watchers/${r}/refresh`,{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Refresh failed (${t.status})`)}return t.json()}async function j(r){const e=await o("/v1/monitors/event-watchers");if(!e.ok)throw new Error("Failed to load event watchers");return e.json()}async function S(r){const t=await o("/v1/monitors/event-watchers",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Failed to create event watcher (${t.status})`)}return t.json()}async function O(r){if(!(await o(`/v1/monitors/event-watchers/${r}/pause`,{method:"POST"})).ok)throw new Error("Failed to pause event watcher")}async function g(r){if(!(await o(`/v1/monitors/event-watchers/${r}/resume`,{method:"POST"})).ok)throw new Error("Failed to resume event watcher")}async function F(r){if(!(await o(`/v1/monitors/event-watchers/${r}`,{method:"DELETE"})).ok)throw new Error("Failed to delete event watcher")}async function T(r){const t=await o(`/v1/monitors/event-watchers/${r}/refresh`,{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Refresh failed (${t.status})`)}return t.json()}async function P(){const r=await o("/v1/monitors/group-watchers");if(!r.ok)throw new Error("Failed to load group watchers");return r.json()}async function W(r){const t=await o("/v1/monitors/group-watchers",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Failed to create group watcher (${t.status})`)}return t.json()}async function b(r){if(!(await o(`/v1/monitors/group-watchers/${r}/pause`,{method:"POST"})).ok)throw new Error("Failed to pause group watcher")}async function A(r){if(!(await o(`/v1/monitors/group-watchers/${r}/resume`,{method:"POST"})).ok)throw new Error("Failed to resume group watcher")}async function N(r){if(!(await o(`/v1/monitors/group-watchers/${r}`,{method:"DELETE"})).ok)throw new Error("Failed to delete group watcher")}async function G(r){const t=await o(`/v1/monitors/group-watchers/${r}/refresh`,{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Refresh failed (${t.status})`)}return t.json()}async function J(r,t=0,e=50){const s=await o(`/v1/monitors/group-watchers/${r}/posts?offset=${t}&limit=${e}`);if(!s.ok)throw new Error("Failed to load group watcher posts");return s.json()}async function L(r){if(!(await o(`/v1/monitors/group-watchers/${r}/reset-count`,{method:"POST"})).ok)throw new Error("Failed to reset count")}
1async function M(){const r=await o("/v1/monitors/activity-watchers");if(!r.ok)throw new Error("Failed to load activity watchers");return r.json()}async function _(r){const t=await o("/v1/monitors/activity-watchers",{method:"POST",body:JSON.stringify(r)});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Failed to create activity watcher (${t.status})`)}return t.json()}async function C(r){if(!(await o(`/v1/monitors/activity-watchers/${r}/pause`,{method:"POST"})).ok)throw new Error("Failed to pause activity watcher")}async function D(r){if(!(await o(`/v1/monitors/activity-watchers/${r}/resume`,{method:"POST"})).ok)throw new Error("Failed to resume activity watcher")}async function R(r){if(!(await o(`/v1/monitors/activity-watchers/${r}`,{method:"DELETE"})).ok)throw new Error("Failed to delete activity watcher")}async function q(r,t=0,e=50){const s=await o(`/v1/monitors/activity-watchers/${r}/posts?offset=${t}&limit=${e}`);if(!s.ok)throw new Error("Failed to load activity watcher posts");return s.json()}async function H(r){const t=await o(`/v1/monitors/activity-watchers/${r}/refresh`,{method:"POST"});if(!t.ok){const e=await t.json().catch(()=>({}));throw new Error(e?.detail||`Refresh failed (${t.status})`)}return t.json()}const I=Object.freeze(Object.defineProperty({__proto__:null,createActivityWatcher:_,createEventWatcher:S,createGroupWatcher:W,createKeywordMonitor:h,createMonitor:c,createWatcher:y,deleteActivityWatcher:R,deleteEventWatcher:F,deleteGroupWatcher:N,deleteMonitor:d,deleteWatcher:$,getActivityWatcherPosts:q,getGroupWatcherPosts:J,getMonitorPosts:f,listActivityWatchers:M,listEventWatchers:j,listGroupWatchers:P,listMonitors:i,listWatchers:v,pauseActivityWatcher:C,pauseEventWatcher:O,pauseGroupWatcher:b,pauseWatcher:E,refreshActivityWatcher:H,refreshEventWatcher:T,refreshGroupWatcher:G,refreshMonitor:l,refreshWatcher:k,resetGroupWatcherCount:L,resetNewCount:m,resolveShortUrl:w,resumeActivityWatcher:D,resumeEventWatcher:g,resumeGroupWatcher:A,resumeWatcher:p,updateMonitor:u},Symbol.toStringTag,{value:"Module"}));export{C as A,D as B,H as C,R as D,q as E,_ as F,S as G,z as H,y as I,W as J,h as K,I as L,v as a,j as b,P as c,M as d,c as e,l as f,f as g,d as h,m as i,p as j,k,i as l,$ as m,O as n,g as o,E as p,T as q,w as r,F as s,b as t,u,A as v,G as w,N as x,J as y,L 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.