import{r as a,m as g}from"./index.lP_uh0LI.js";/*! js-cookie v3.0.5 | MIT */function p(e){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var f in s)e[f]=s[f]}return e}var h={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function d(e,i){function s(r,c,n){if(!(typeof document>"u")){n=p({},i,n),typeof n.expires=="number"&&(n.expires=new Date(Date.now()+n.expires*864e5)),n.expires&&(n.expires=n.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var t in n)n[t]&&(o+="; "+t,n[t]!==!0&&(o+="="+n[t].split(";")[0]));return document.cookie=r+"="+e.write(c,r)+o}}function f(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var c=document.cookie?document.cookie.split("; "):[],n={},o=0;o<c.length;o++){var t=c[o].split("="),l=t.slice(1).join("=");try{var u=decodeURIComponent(t[0]);if(n[u]=e.read(l,u),r===u)break}catch{}}return r?n[r]:n}}return Object.create({set:s,get:f,remove:function(r,c){s(r,"",p({},c,{expires:-1}))},withAttributes:function(r){return d(this.converter,p({},this.attributes,r))},withConverter:function(r){return d(p({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}var C=d(h,{path:"/"});function w(e){return a({url:`${g.system}login/`,method:"post",data:e})}function x(e){return a({url:`${g.system}user/login_change_password/`,method:"post",data:e})}export{C as a,x as b,w as l};
