(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b85bb7b5dc83f935fd7d75fdf93418434f2e0da2"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="16754207-88fb-4fea-a619-e70d0707595a",e._sentryDebugIdIdentifier="sentry-dbid-16754207-88fb-4fea-a619-e70d0707595a")})()}catch{}let s={};const m=e=>{if(!e||!e.query&&!e.mergeQuery)return"";const t=e.query??e.mergeQuery,f=e.mergeQuery!==void 0,E=r=>r===!0?"1":r===!1?"0":r.toString(),a=new URLSearchParams(f&&typeof window<"u"?window.location.search:"");for(const r in t){if(t[r]===void 0||t[r]===null){a.delete(r);continue}if(Array.isArray(t[r]))a.has(`${r}[]`)&&a.delete(`${r}[]`),t[r].forEach(g=>{a.append(`${r}[]`,g.toString())});else if(typeof t[r]=="object"){a.forEach((g,_)=>{_.startsWith(`${r}[`)&&a.delete(_)});for(const g in t[r])typeof t[r][g]>"u"||["string","number","boolean"].includes(typeof t[r][g])&&a.set(`${r}[${g}]`,E(t[r][g]))}else a.set(r,E(t[r]))}const D=a.toString();return D.length>0?`?${D}`:""},A=e=>{const t={...e??{}};for(const f in s)t[f]===void 0&&s[f]!==void 0&&(t[f]=s[f]);return t},o=e=>({url:o.url(e),method:"get"});o.definition={methods:["get","head"],url:"/login"};o.url=e=>o.definition.url+m(e);o.get=e=>({url:o.url(e),method:"get"});o.head=e=>({url:o.url(e),method:"head"});const c=e=>({action:o.url(e),method:"get"});c.get=e=>({action:o.url(e),method:"get"});c.head=e=>({action:o.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});o.form=c;const h=e=>({url:h.url(e),method:"post"});h.definition={methods:["post"],url:"/logout"};h.url=e=>h.definition.url+m(e);h.post=e=>({url:h.url(e),method:"post"});const p=e=>({action:h.url(e),method:"post"});p.post=e=>({action:h.url(e),method:"post"});h.form=p;const u=e=>({url:u.url(e),method:"get"});u.definition={methods:["get","head"],url:"/register"};u.url=e=>u.definition.url+m(e);u.get=e=>({url:u.url(e),method:"get"});u.head=e=>({url:u.url(e),method:"head"});const y=e=>({action:u.url(e),method:"get"});y.get=e=>({action:u.url(e),method:"get"});y.head=e=>({action:u.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});u.form=y;const d=e=>({url:d.url(e),method:"get"});d.definition={methods:["get","head"],url:"/"};d.url=e=>d.definition.url+m(e);d.get=e=>({url:d.url(e),method:"get"});d.head=e=>({url:d.url(e),method:"head"});const b=e=>({action:d.url(e),method:"get"});b.get=e=>({action:d.url(e),method:"get"});b.head=e=>({action:d.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});d.form=b;const n=e=>({url:n.url(e),method:"get"});n.definition={methods:["get","head"],url:"/dashboard"};n.url=e=>n.definition.url+m(e);n.get=e=>({url:n.url(e),method:"get"});n.head=e=>({url:n.url(e),method:"head"});const Q=e=>({action:n.url(e),method:"get"});Q.get=e=>({action:n.url(e),method:"get"});Q.head=e=>({action:n.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});n.form=Q;const l=e=>({url:l.url(e),method:"get"});l.definition={methods:["get","head"],url:"/softphone"};l.url=e=>l.definition.url+m(e);l.get=e=>({url:l.url(e),method:"get"});l.head=e=>({url:l.url(e),method:"head"});const q=e=>({action:l.url(e),method:"get"});q.get=e=>({action:l.url(e),method:"get"});q.head=e=>({action:l.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});l.form=q;const i=e=>({url:i.url(e),method:"get"});i.definition={methods:["get","head"],url:"/my-calls"};i.url=e=>i.definition.url+m(e);i.get=e=>({url:i.url(e),method:"get"});i.head=e=>({url:i.url(e),method:"head"});const w=e=>({action:i.url(e),method:"get"});w.get=e=>({action:i.url(e),method:"get"});w.head=e=>({action:i.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});i.form=w;export{o as a,A as b,n as d,d as h,h as l,m as q,u as r};
//# sourceMappingURL=index-DK5ap2Wf.js.map
