Files
machartaa_admin_dist/dist/assets/index-ffafd876.js
T

121 lines
420 KiB
JavaScript
Raw Normal View History

2026-07-04 17:32:23 +03:30
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function ta(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const we={},qn=[],dt=()=>{},Bh=()=>!1,Hh=/^on[^a-z]/,Zs=e=>Hh.test(e),na=e=>e.startsWith("onUpdate:"),Te=Object.assign,ra=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qh=Object.prototype.hasOwnProperty,fe=(e,t)=>qh.call(e,t),G=Array.isArray,Vn=e=>ns(e)==="[object Map]",nr=e=>ns(e)==="[object Set]",al=e=>ns(e)==="[object Date]",se=e=>typeof e=="function",Se=e=>typeof e=="string",Fr=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Tu=e=>ye(e)&&se(e.then)&&se(e.catch),xu=Object.prototype.toString,ns=e=>xu.call(e),Vh=e=>ns(e).slice(8,-1),Pu=e=>ns(e)==="[object Object]",sa=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ss=ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ei=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Kh=/-(\w)/g,St=ei(e=>e.replace(Kh,(t,n)=>n?n.toUpperCase():"")),Wh=/\B([A-Z])/g,xn=ei(e=>e.replace(Wh,"-$1").toLowerCase()),ti=ei(e=>e.charAt(0).toUpperCase()+e.slice(1)),ji=ei(e=>e?`on${ti(e)}`:""),Ur=(e,t)=>!Object.is(e,t),Cs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ns=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zh=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let ll;const lo=()=>ll||(ll=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ni(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?Qh(r):ni(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Se(e))return e;if(ye(e))return e}}const Gh=/;(?![^(]*\))/g,Jh=/:([^]+)/,Yh=/\/\*[^]*?\*\//g;function Qh(e){const t={};return e.replace(Yh,"").split(Gh).forEach(n=>{if(n){const r=n.split(Jh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ri(e){let t="";if(Se(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=ri(e[n]);r&&(t+=r+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function sC(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Se(t)&&(e.class=ri(t)),n&&(e.style=ni(n)),e}const Xh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zh=ta(Xh);function Au(e){return!!e||e===""}function ep(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Cn(e[r],t[r]);return n}function Cn(e,t){if(e===t)return!0;let n=al(e),r=al(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Fr(e),r=Fr(t),n||r)return e===t;if(n=G(e),r=G(t),n||r)return n&&r?ep(e,t):!1;if(n=ye(e),r=ye(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Cn(e[o],t[o]))return!1}}return String(e)===String(t)}function ia(e,t){return e.findIndex(n=>Cn(n,t))}const iC=e=>Se(e)?e:e==null?"":G(e)||ye(e)&&(e.toString===xu||!se(e.toString))?JSON.stringify(e,ku,2):String(e),ku=(e,t)=>t&&t.__v_isRef?ku(e,t.value):Vn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:nr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!G(t)&&!Pu(t)?String(t):t;let Xe;class Ru{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.clean
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xl(e,t){return Km(e)||Wm(e,t)||Lf(e,t)||zm()}function Gm(e){if(Array.isArray(e))return wo(e)}function Jm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ym(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qs(e){return Gm(e)||Jm(e)||Lf(e)||Ym()}var Qm=function(t){return t!=null&&t!==""};const Xm=Qm;var Zm=function(t){for(var n=Object.keys(t),r={},s={},i={},o=0,a=n.length;o<a;o++){var l=n[o];Fm(l)?(r[l[2].toLowerCase()+l.slice(3)]=t[l],s[l]=t[l]):i[l]=t[l]}return{onEvents:s,events:r,extraAttrs:i}},ev=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},s=/;(?![^(]*\))/g,i=/:(.+)/;return Nt(t)==="object"?t:(t.split(s).forEach(function(o){if(o){var a=o.split(i);if(a.length>1){var l=n?Ra(a[0].trim()):a[0].trim();r[l]=a[1].trim()}}}),r)},OC=function(t,n){return t[n]!==void 0},xs=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(t)?t:[t],s=[];return r.forEach(function(i){Array.isArray(i)?s.push.apply(s,qs(e(i,n))):i&&i.type===Ie?s.push.apply(s,qs(e(i.children,n))):i&&Ct(i)?n&&!Nf(i)?s.push(i):n||s.push(i):Xm(i)&&s.push(i)}),s},TC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Ct(t))return t.type===Ie?n==="default"?xs(t.children):[]:t.children&&t.children[n]?xs(t.children[n](r)):[];var s=t.$slots[n]&&t.$slots[n](r);return xs(s)},xC=function(t){for(var n,r=(t==null||(n=t.vnode)===null||n===void 0?void 0:n.el)||t&&(t.$el||t);r&&!r.tagName;)r=r.nextSibling;return r},PC=function(t){var n={};if(t.$&&t.$.vnode){var r=t.$.vnode.props||{};Object.keys(t.$props).forEach(function(a){var l=t.$props[a],c=Hm(a);(l!==void 0||c in r)&&(n[a]=l)})}else if(Ct(t)&&Nt(t.type)==="object"){var s=t.props||{},i={};Object.keys(s).forEach(function(a){i[Ra(a)]=s[a]});var o=t.type.props||{};Object.keys(o).forEach(function(a){var l=Vm(o,i,a,i[a]);(l!==void 0||a in i)&&(n[a]=l)})}return n},AC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(t.$){var o=t[n];if(o!==void 0)return typeof o=="function"&&s?o(r):o;i=t.$slots[n],i=s&&i?i(r):i}else if(Ct(t)){var a=t.props&&t.props[n];if(a!==void 0&&t.props!==null)return typeof a=="function"&&s?a(r):a;t.type===Ie?i=t.children:t.children&&t.children[n]&&(i=t.children[n],i=s&&i?i(r):i)}return Array.isArray(i)&&(i=xs(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function kC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=re(re({},n),e.$attrs):n=re(re({},n),e.props),Zm(n)[t?"onEvents":"events"]}function RC(e){var t=(Ct(e)?e.props:e.$attrs)||{},n=t.class||{},r={};return typeof n=="string"?n.split(" ").forEach(function(s){r[s.trim()]=!0}):Array.isArray(n)?or(n).split(" ").forEach(function(s){r[s.trim()]=!0}):r=re(re({},r),n),r}function jC(e,t){var n=(Ct(e)?e.props:e.$attrs)||{},r=n.style||{};if(typeof r=="string")r=ev(r,t);else if(t&&r){var s={};return Object.keys(r).forEach(function(i){return s[Ra(i)]=r[i]}),s}return r}function IC(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Nf(e){return e&&(e.type===et||e.type===Ie&&e.children.length===0||e.type===ir&&e.children.trim()==="")}function $C(e){return e&&e.type===ir}function ja(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,qs(n)):(n==null?void 0:n.type)===Ie?t.push.apply(t,qs(ja(n.children))):t.push(n)}),t.filter(function(n){return!Nf(n)})}function MC(e){if(e){var t=ja(e);return t.length?t:void 0}else return e}function LC(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&Nt(e.type)!=="symbol"}function NC(e,t){var n,r,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=t[s])!==null&&n!==void 0?n:(r=e[s])===null||r===void 0?void 0:r.call(e)}var tv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)
* `);return c.length=0,n===!1?(Fe(u),s):u}}return s}function tt(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(s){return s!==void 0||this.default?Qn(s)||Pn(this,s,!0)===!0?(this.default=Yn(s)?function(){return[].concat(s)}:Tn(s)?function(){return Object.assign({},s)}:s,this):(Fe(this._vueTypes_name+' - invalid default value: "'+s+'"'),this):this}}}),r=n.validator;return Qn(r)&&(n.validator=Ia(r,n)),n}function Ot(e,t){var n=tt(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Qn(this.validator)&&Fe(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
`+JSON.stringify(this)),this.validator=Ia(r,this),this}})}function rc(e,t,n){var r,s,i=(r=t,s={},Object.getOwnPropertyNames(r).forEach(function(f){s[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},s));if(i._vueTypes_name=e,!Tn(n))return i;var o,a,l=n.validator,c=Wf(n,["validator"]);if(Qn(l)){var u=i.validator;u&&(u=(a=(o=u).__original)!==null&&a!==void 0?a:o),i.validator=Ia(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,i)}return Object.assign(i,c)}function mi(e){return e.replace(/^(?!\s*$)/gm," ")}var pv=function(){return Ot("any",{})},gv=function(){return Ot("function",{type:Function})},mv=function(){return Ot("boolean",{type:Boolean})},vv=function(){return Ot("string",{type:String})},yv=function(){return Ot("number",{type:Number})},bv=function(){return Ot("array",{type:Array})},_v=function(){return Ot("object",{type:Object})},wv=function(){return tt("integer",{type:Number,validator:function(e){return hv(e)}})},Ev=function(){return tt("symbol",{validator:function(e){return typeof e=="symbol"}})};function Sv(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return tt(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Fe(this._vueTypes_name+" - "+t),r}})}function Cv(e){if(!Yn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,s){if(s!=null){var i=s.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return tt("oneOf",{type:n.length>0?n:void 0,validator:function(r){var s=e.indexOf(r)!==-1;return s||Fe(t),s}})}function Ov(e){if(!Yn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var s=e[r];if(Yf(s)){if(Ks(s)&&s._vueTypes_name==="oneOf"){n=n.concat(s.type);continue}if(Qn(s.validator)&&(t=!0),s.type!==!0&&s.type){n=n.concat(s.type);continue}}n.push(s)}return n=n.filter(function(i,o){return n.indexOf(i)===o}),tt("oneOfType",t?{type:n,validator:function(i){var o=[],a=e.some(function(l){var c=Pn(Ks(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return a||Fe("oneOfType - provided value does not match any of the "+o.length+` passed-in validators:
`+mi(o.join(`
`))),a}}:{type:n})}function Tv(e){return tt("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(s){return(n=Pn(e,s,!0))===!0});return r||Fe(`arrayOf - value validation error:
`+mi(n)),r}})}function xv(e){return tt("instanceOf",{type:e})}function Pv(e){return tt("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(s){return(n=Pn(e,t[s],!0))===!0});return r||Fe(`objectOf - value validation error:
`+mi(n)),r}})}function Av(e){var t=Object.keys(e),n=t.filter(function(s){var i;return!!(!((i=e[s])===null||i===void 0)&&i.required)}),r=tt("shape",{type:Object,validator:function(s){var i=this;if(!Tn(s))return!1;var o=Object.keys(s);if(n.length>0&&n.some(function(l){return o.indexOf(l)===-1})){var a=n.filter(function(l){return o.indexOf(l)===-1});return Fe(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(t.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(Fe('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Pn(e[l],s[l],!0);return typeof c=="string"&&Fe('shape - "'+l+`" property validation error:
`+mi(c)),c===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var vt=function(){function e(){}return e.extend=function(t){var n=this;if(Yn(t))return t.forEach(function(f){return n.extend(f)}),this;var r=t.name,s=t.validate,i=s!==void 0&&s,o=t.getter,a=o!==void 0&&o,l=Wf(t,["name","validate","getter"]);if(Yr(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var c,u=l.type;return Ks(u)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return rc(r,u,l)}}:{value:function(){var f,d=rc(r,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=a?{get:function(){var f=Object.assign({},l);return i?Ot(r,f):tt(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=i?Ot(r,h):tt(r,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,c))},Vf(e,null,[{key:"any",get:function(){return pv()}},{key:"func",get:function(){return gv().def(this.defaults.func)}},{key:"bool",get:function(){return mv().def(this.defaults.bool)}},{key:"string",get:function(){return vv().def(this.defaults.string)}},{key:"number",get:function(){return yv().def(this.defaults.number)}},{key:"array",get:function(){return bv().def(this.defaults.array)}},{key:"object",get:function(){return _v().def(this.defaults.object)}},{key:"integer",get:function(){return wv().def(this.defaults.integer)}},{key:"symbol",get:function(){return Ev()}}]),e}();function Qf(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return Kf(r,n),Vf(r,null,[{key:"sensibleDefaults",get:function(){return Ps({},this.defaults)},set:function(s){this.defaults=s!==!1?Ps({},s!==!0?s:e):{}}}]),r}(vt)).defaults=Ps({},e),t}vt.defaults={},vt.custom=Sv,vt.oneOf=Cv,vt.instanceOf=xv,vt.oneOfType=Ov,vt.arrayOf=Tv,vt.objectOf=Pv,vt.shape=Av,vt.utils={validate:function(e,t){return Pn(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Ot(e,t):tt(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return Kf(t,e),t})(Qf());var Xf=Qf({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Xf.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function UC(e){return e.default=void 0,e}const sc=Xf;var kv=["image","description","imageStyle","class"],Zf=M(cv,null,null),ed=M(uv,null,null),ar=function(t,n){var r,s=n.slots,i=s===void 0?{}:s,o=n.attrs,a=vi("empty",t),l=a.direction,c=a.prefixCls,u=c.value,f=re(re({},t),o),d=f.image,h=d===void 0?Zf:d,p=f.description,v=p===void 0?((r=i.description)===null||r===void 0?void 0:r.call(i))||void 0:p,b=f.imageStyle,w=f.class,y=w===void 0?"":w,E=Ff(f,kv);return M(Bf,{componentName:"Empty",children:function(N){var D,U=typeof v<"u"?v:N.description,k=typeof U=="string"?U:"empty",I=null;return typeof h=="string"?I=M("img",{alt:k,src:h},null):I=h,M("div",re({class:or(u,y,(D={},Dt(D,"".concat(u,"-normal"),h===ed),Dt(D,"".concat(u,"-rtl"),l.value==="rtl"),D))},E),[M("div",{class:"".concat(u,"-image"),style:b},[I]),U&&M("p",{class:"".concat(u,"-description")},[U]),i.default&&M("div",{class:"".concat(u,"-footer")},[ja(i.default())])])}},null)};ar.displayName="AEmpty";ar.PRESENTED_IMAGE_DEFAULT=Zf;ar.PRESENTED_IMAGE_SIMPLE=ed;ar.inheritAttrs=!1;ar.props={prefixCls:String,image:sc.any,description:sc.any,imageStyle:{type:Object,default:void 0}};const mr=Df(ar);var Rv=function(t){var n=vi("empty",t),r=n.prefixCls,s=function(o){switch(o){case"Table":case"List":return M(mr,{image:mr.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M(mr,{image:mr.PRESENTED_IMAGE_SIMPLE,class
2026-06-07 15:06:40 +03:30
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2026-07-04 17:32:23 +03:30
`,yc=!1,cy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ly;ai(function(){yc||(typeof window<"u"&&window.document&&window.document.documentElement&&oy(t,{prepend:!0}),yc=!0)})},uy=["icon","primaryColor","secondaryColor"];function fy(e,t){if(e==null)return{};var n=dy(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){hy(e,s,n[s])})}return e}function hy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function py(e){var t=e.primaryColor,n=e.secondaryColor;Rr.primaryColor=t,Rr.secondaryColor=n||ld(t),Rr.calculated=!!n}function gy(){return ks({},Rr)}var lr=function(t,n){var r=ks({},t,n.attrs),s=r.icon,i=r.primaryColor,o=r.secondaryColor,a=fy(r,uy),l=Rr;if(i&&(l={primaryColor:i,secondaryColor:o||ld(i)}),cy(),vc(s),!vc(s))return null;var c=s;return c&&typeof c.icon=="function"&&(c=ks({},c,{icon:c.icon(l.primaryColor,l.secondaryColor)})),xo(c.icon,"svg-".concat(c.name),ks({},a,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};lr.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};lr.inheritAttrs=!1;lr.displayName="IconBase";lr.getTwoToneColors=gy;lr.setTwoToneColors=py;const $a=lr;function my(e,t){return _y(e)||by(e,t)||yy(e,t)||vy()}function vy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yy(e,t){if(e){if(typeof e=="string")return bc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bc(e,t)}}function bc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function by(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function _y(e){if(Array.isArray(e))return e}function ud(e){var t=cd(e),n=my(t,2),r=n[0],s=n[1];return $a.setTwoToneColors({primaryColor:r,secondaryColor:s})}function wy(){var e=$a.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ey=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Sy(e,t){return xy(e)||Ty(e,t)||Oy(e,t)||Cy()}function Cy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oy(e,t){if(e){if(typeof e=="string")return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _c(e,t)}}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ty(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function xy(e){if(Array.isArray(e))return e}function wc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Po(e,s,n[s])})}return e}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Py(e,t){if(e==null)return{};var n=Ay(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ay(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}ud("#1890ff");var cr=function(t,n){var r,s=wc({},t,n.attrs),i=s.class,o=s.icon,a=s.spin,l=s.rotate,c=s.tabindex,u=s.twoToneColor,f=s.onClick,d=Py(s,Ey),h=(r={anticon:!0},Po(r,"anticon-".concat(o.name),!!o.name),Po(r,i,i),r),p=a===""||a||o.name==="loading"?"anticon-spin":"",v=c;v===void 0&&f&&(v=-1,d.tabindex=v);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=cd(u),y=Sy(w,2),E=y[0],C=y[1];return M("span",wc({role:"img","aria-label":o.name},d,{onClick:f,class:h}),[M($a,{class:p,icon:o,primaryColor:E,secondaryColor:C,style:b},null)])};cr.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};cr.displayName="AntdIcon";cr.inheritAttrs=!1;cr.getTwoToneColor=wy;cr.setTwoToneColor=ud;const Tt=cr;function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){ky(e,s,n[s])})}return e}function ky(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ma=function(t,n){var r=Ec({},t,n.attrs);return M(Tt,Ec({},r,{icon:Bv}),null)};Ma.displayName="LoadingOutlined";Ma.inheritAttrs=!1;const Ry=Ma;var jy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Iy=jy;function Sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){$y(e,s,n[s])})}return e}function $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var La=function(t,n){var r=Sc({},t,n.attrs);return M(Tt,Sc({},r,{icon:Iy}),null)};La.displayName="ExclamationCircleFilled";La.inheritAttrs=!1;const My=La;var Ly={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusa
2026-06-07 15:06:40 +03:30
:root {
`.concat(l.join(`
`),`
}
2026-07-04 17:32:23 +03:30
`),"".concat(Db,"-dynamic-theme")):Nb(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var kd=Symbol("GlobalFormContextKey"),Ub=function(t){En(kd,t)},WC=function(){return Ne(kd,{validateMessages:ie(function(){})})},Bb=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},Hb="ant";function Wn(){return Ze.prefixCls||Hb}var jo=We({}),Rd=We({}),Ze=We({});ui(function(){On(Ze,jo,Rd),Ze.prefixCls=Wn(),Ze.getPrefixCls=function(e,t){return t||(e?"".concat(Ze.prefixCls,"-").concat(e):Ze.prefixCls)},Ze.getRootPrefixCls=function(e,t){return e||(Ze.prefixCls?Ze.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):Wn())}});var Wi,qb=function(t){Wi&&Wi(),Wi=ui(function(){On(Rd,We(t)),On(Ze,We(t))}),t.theme&&Fb(Wn(),t.theme)},Vb=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(Wn(),"-").concat(n):Wn())},getRootPrefixCls:function(n,r){return n||(Ze.prefixCls?Ze.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):Wn())}}},jr=Ft({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:Bb(),setup:function(t,n){var r=n.slots,s=function(f,d){var h=t.prefixCls,p=h===void 0?"ant":h;return d||(f?"".concat(p,"-").concat(f):p)},i=function(f){var d=t.renderEmpty||r.renderEmpty||td;return d(f)},o=function(f,d){var h=t.prefixCls;if(d)return d;var p=h||s("");return f?"".concat(p,"-").concat(f):p},a=We(re(re({},t),{},{getPrefixCls:o,renderEmpty:i}));Object.keys(t).forEach(function(u){$t(function(){return t[u]},function(){a[u]=t[u]})}),t.notUpdateGlobalConfig||(On(jo,a),$t(a,function(){On(jo,a)}));var l=ie(function(){var u={};if(t.locale){var f,d;u=((f=t.locale.Form)===null||f===void 0?void 0:f.defaultValidateMessages)||((d=Vs.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||{}}return t.form&&t.form.validateMessages&&(u=re(re({},u),t.form.validateMessages)),u});Ub({validateMessages:l}),En("configProvider",a);var c=function(f){var d;return M(Mv,{locale:t.locale||f,ANT_MARK__:Eo},{default:function(){return[(d=r.default)===null||d===void 0?void 0:d.call(r)]}})};return ui(function(){t.direction&&(Rs.config({rtl:t.direction==="rtl"}),Ib.config({rtl:t.direction==="rtl"}))}),function(){return M(Bf,{children:function(f,d,h){return c(h)}},null)}}}),Kb=We({getPrefixCls:function(t,n){return n||(t?"ant-".concat(t):"ant")},renderEmpty:td,direction:"ltr"});jr.config=qb;jr.install=function(e){e.component(jr.name,jr)};const jd=jr,vi=function(e,t){var n=Ne("configProvider",Kb),r=ie(function(){return n.getPrefixCls(e,t.prefixCls)}),s=ie(function(){var y;return(y=t.direction)!==null&&y!==void 0?y:n.direction}),i=ie(function(){return n.getPrefixCls()}),o=ie(function(){return n.autoInsertSpaceInButton}),a=ie(function(){return n.renderEmpty}),l=ie(function(){return n.space}),c=ie(function(){return n.pageHeader}),u=ie(function(){return n.form}),f=ie(function(){return t.getTargetContainer||n.getTargetContainer}),d=ie(function(){return t.getPopupContainer||n.getPopupContainer}),h=ie(function(){var y;return(y=t.dropdownMatchSelectWidth)!==null&&y!==void 0?y:n.dropdownMatchSelectWidth}),p=ie(function(){return(t.virtual===void 0?n.virtual!==!1:t.virtual!==!1)&&h.value!==!1}),v=ie(function(){return t.size||n.componentSize}),b=ie(function(){var y;return t.autocomplete||((y=n.input)===null||y===void 0?void 0:y.autocomplete)}),w=ie(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:s,size:v,getTargetContainer:f,getPopupContainer:d,space:l,pageHeader:c,form:u,autoInsertSpaceInButton:o,renderEmpty:a,virtual:p,dropdownMatchSelectWidth:h,rootPrefixC
2026-06-07 15:06:40 +03:30
* vue-router v4.2.2
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-07-04 17:32:23 +03:30
*/const Fn=typeof window<"u";function Wb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const me=Object.assign;function zi(e,t){const n={};for(const r in t){const s=t[r];n[r]=ht(s)?s.map(e):e(s)}return n}const Ir=()=>{},ht=Array.isArray,zb=/\/$/,Gb=e=>e.replace(zb,"");function Gi(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Xb(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Jb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ic(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Yb(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Xn(t.matched[r],n.matched[s])&&Id(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Id(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qb(e[n],t[n]))return!1;return!0}function Qb(e,t){return ht(e)?$c(e,t):ht(t)?$c(t,e):e===t}function $c(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Zr;(function(e){e.pop="pop",e.push="push"})(Zr||(Zr={}));var $r;(function(e){e.back="back",e.forward="forward",e.unknown=""})($r||($r={}));function Zb(e){if(!e)if(Fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gb(e)}const e_=/^[^#]+#/;function t_(e,t){return e.replace(e_,"#")+t}function n_(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const yi=()=>({left:window.pageXOffset,top:window.pageYOffset});function r_(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=n_(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Mc(e,t){return(history.state?history.state.position-t:-1)+e}const Io=new Map;function s_(e,t){Io.set(e,t)}function i_(e){const t=Io.get(e);return Io.delete(e),t}let o_=()=>location.protocol+"//"+location.host;function $d(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Ic(l,"")}return Ic(n,e)+r+s}function a_(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const h=$d(e,location),p=n.value,v=t.value;let b=0;if(d){if(n.value=h,t.value=d,o&&o===p){o=null;return}b=v?d.position-v.position:0}else r(h);s.forEach(w=>{w(n.value,p,{delta:b,type:Zr.pop,direction:b?b>0?$r.forward:$r.back:$r.unknown})})};function l(){o=n.value}function c(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(me({},d.state,{scroll:yi()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Lc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?yi():null}}function l_(e){const{history:t,location:n}=window,r={value:$d(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replace
2026-06-07 15:06:40 +03:30
* pinia v2.1.3
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-07-08 14:38:52 +03:30
*/let Vd;const _i=e=>Vd=e,Kd=Symbol();function Lo(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mr||(Mr={}));function u0(){const e=ju(!0),t=e.run(()=>pt({}));let n=[],r=[];const s=ii({install(i){_i(s),s._a=i,i.provide(Kd,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Z_?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Wd=()=>{};function Yc(e,t,n,r=Wd){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&oa()&&Iu(s),s}function jn(e,...t){e.slice().forEach(n=>{n(...t)})}const f0=e=>e();function No(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Lo(s)&&Lo(r)&&e.hasOwnProperty(n)&&!Ce(r)&&!en(r)?e[n]=No(s,r):e[n]=r}return e}const d0=Symbol();function h0(e){return!Lo(e)||!e.hasOwnProperty(d0)}const{assign:zt}=Object;function p0(e){return!!(Ce(e)&&e.effect)}function g0(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=Mp(n.state.value[e]);return zt(u,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=ii(ie(()=>{_i(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=zd(e,c,t,n,r,!0),l}function zd(e,t,n={},r,s,i){let o;const a=zt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),pt({});let v;function b(k){let I;c=u=!1,typeof k=="function"?(k(r.state.value[e]),I={type:Mr.patchFunction,storeId:e,events:h}):(No(r.state.value[e],k),I={type:Mr.patchObject,payload:k,storeId:e,events:h});const J=v=Symbol();ai().then(()=>{v===J&&(c=!0)}),u=!0,jn(f,I,r.state.value[e])}const w=i?function(){const{state:I}=n,J=I?I():{};this.$patch(oe=>{zt(oe,J)})}:Wd;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function E(k,I){return function(){_i(r);const J=Array.from(arguments),oe=[],q=[];function ae(S){oe.push(S)}function xe(S){q.push(S)}jn(d,{args:J,name:k,store:N,after:ae,onError:xe});let $;try{$=I.apply(this&&this.$id===e?this:N,J)}catch(S){throw jn(q,S),S}return $ instanceof Promise?$.then(S=>(jn(oe,S),S)).catch(S=>(jn(q,S),Promise.reject(S))):(jn(oe,$),$)}}const C={_p:r,$id:e,$onAction:Yc.bind(null,d),$patch:b,$reset:w,$subscribe(k,I={}){const J=Yc(f,k,I.detached,()=>oe()),oe=o.run(()=>$t(()=>r.state.value[e],q=>{(I.flush==="sync"?u:c)&&k({storeId:e,type:Mr.direct,events:h},q)},zt({},l,I)));return J},$dispose:y},N=We(C);r._s.set(e,N);const D=r._a&&r._a.runWithContext||f0,U=r._e.run(()=>(o=ju(),D(()=>o.run(t))));for(const k in U){const I=U[k];if(Ce(I)&&!p0(I)||en(I))i||(p&&h0(I)&&(Ce(I)?I.value=p[k]:No(I,p[k])),r.state.value[e][k]=I);else if(typeof I=="function"){const J=E(k,I);U[k]=J,a.actions[k]=I}}return zt(N,U),zt(ue(N),U),Object.defineProperty(N,"$state",{get:()=>r.state.value[e],set:k=>{b(I=>{zt(I,k)})}}),r._p.forEach(k=>{zt(N,o.run(()=>k({store:N,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(N.$state,p),c=!0,u=!0,N}function Gd(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=wg();return a=a||(c?Ne(Kd,null):null),a&&_i(a),a=Vd,a._s.has(r)||(i?zd(r,t,s,a):g0(r,s,a)),a._s.get(r)}return o.$id=r,o}const Jd=Gd("router",()=>({routes:pt([])}));function m0(e){const t=Jd(),n=z_({history:c_("/"),routes:t.routes,scrollBehavior:(r,s,i)=>{if(r.hash){if(r.hash==="#")return{top:0,behavior:"smooth"};const o=document.querySelector(r.hash);if(o){const a=parseFloat(getComputedStyle(o).scrollMarginTop);return o instanceof HTMLElement&&o.focus(),{el:r.hash,behavior:"smooth",top:a}}return{el:r.hash,behavior:"smooth"}}if(i)return i;if(r.path!==s.path)return{top:0}}});return e.use(n),n}function v0(e){return{router:m0(e)}}function Do(){return localStorage.getItem("tamin_token")}async function JC(e){localStorage.setItem("tamin_token",e)}function
2026-07-04 17:32:23 +03:30
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&nE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ru=Symbol("internals");function _r(e){return e&&String(e).trim().toLowerCase()}function $s(e){return e===!1||e==null?e:T.isArray(e)?e.map($s):String(e)}function sE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const iE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qi(e,t,n,r,s){if(T.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function oE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function aE(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class Ti{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const u=_r(l);if(!u)throw new Error("header name must be a non-empty string");const f=T.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=$s(a))}const o=(a,l)=>T.forEach(a,(c,u)=>i(c,u,l));return T.isPlainObject(t)||t instanceof this.constructor?o(t,n):T.isString(t)&&(t=t.trim())&&!iE(t)?o(rE(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=_r(t),t){const r=T.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return sE(s);if(T.isFunction(n))return n.call(this,s,r);if(T.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_r(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=_r(o),o){const a=T.findKey(r,o);a&&(!n||Qi(r,r[a],a,n))&&(delete r[a],s=!0)}}return T.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Qi(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return T.forEach(this,(s,i)=>{const o=T.findKey(r,i);if(o){n[o]=$s(s),delete n[i];return}const a=t?oE(i):String(i).trim();a!==i&&delete n[i],n[a]=$s(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ru]=this[ru]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=_r(o);r[a]||(aE(s,o),r[a]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}}Ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.freezeMethods(Ti.prototype);T.freezeMethods(Ti);const Mt=Ti;function Xi(e,t){const n=this||Ya,r=t||n,s=Mt.from(r.headers);let i=r.data;return T.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function fh(e){return!!(e&&e.__CANCEL__)}function is(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(is,de,{__CANCEL__:!0});function lE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cE=Et.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),T.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),T.isString(i)&&l.push("path="+i),T.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function uE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function dh(e,t){return e&&!uE(t)?fE(e,t):t}const dE=Et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const a=T.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function hE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pE(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[s]=l,r[s]=c;let f=i,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function su(e,t){let n=0;const r=pE(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const gE=typeof XMLHttpRequest<"u",mE=gE&&function(e){return new Promise(function(n,r){let s=e.data;const i=Mt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}T.isFormData(s)&&(Et.isStandardBrowserEnv||Et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=dh(e.baseURL,e.url);c.open(e.method.toUpperCase(),lh(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const h=Mt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};lE
2026-06-07 15:06:40 +03:30
import ws from "ws"
new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
2026-07-04 17:32:23 +03:30
Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const XE="2.15.5",ZE=`realtime-js/${XE}`,eS="1.0.0",Ko=1e4,tS=1e3,nS=100;var Lr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Lr||(Lr={}));var ke;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ke||(ke={}));var ct;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ct||(ct={}));var Wo;(function(e){e.websocket="websocket"})(Wo||(Wo={}));var yn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(yn||(yn={}));class rS{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Th{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var _e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(_e||(_e={}));const fu=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=sS(o,e,t,s),i),{})},sS=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?xh(i,o):zo(o)},xh=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return lS(t,n)}switch(e){case _e.bool:return iS(t);case _e.float4:case _e.float8:case _e.int2:case _e.int4:case _e.int8:case _e.numeric:case _e.oid:return oS(t);case _e.json:case _e.jsonb:return aS(t);case _e.timestamp:return cS(t);case _e.abstime:case _e.date:case _e.daterange:case _e.int4range:case _e.int8range:case _e.money:case _e.reltime:case _e.text:case _e.time:case _e.timestamptz:case _e.timetz:case _e.tsrange:case _e.tstzrange:return zo(t);default:return zo(t)}},zo=e=>e,iS=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},oS=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},aS=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},lS=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>xh(t,a))}return e},cS=e=>typeof e=="string"?e.replace(" ","T"):e,Ph=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class eo{constructor(t,n,r={},s=Ko){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("ti
2026-06-07 15:06:40 +03:30
addEventListener("message", (e) => {
if (e.data.event === "start") {
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
}
2026-07-04 17:32:23 +03:30
});`;class hS{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Ko,this.transport=null,this.heartbeatIntervalMs=_s.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=to,this.ref=0,this.reconnectTimer=null,this.logger=to,this.conn=null,this.sendBuffer=[],this.serializer=new rS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>z(()=>Promise.resolve().then(()=>fr),void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Wo.websocket}`,this.httpEndpoint=Ph(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=QE.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
2026-06-07 15:06:40 +03:30
To use Realtime in Node.js, you need to provide a WebSocket implementation:
Option 1: Use Node.js 22+ which has native WebSocket support
Option 2: Install and provide the "ws" package:
npm install ws
import ws from "ws"
const client = new RealtimeClient(url, {
...options,
transport: ws
2026-07-04 17:32:23 +03:30
})`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:eS}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Lr.connecting:return yn.Connecting;case Lr.open:return yn.Open;case Lr.closing:return yn.Closing;default:return yn.Closed}}isConnected(){return this.connectionState()===yn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new tl(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(tS,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},_s.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.on
\r=`.split(""),e1=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<vu.length;t+=1)e[vu[t].charCodeAt(0)]=-2;for(let t=0;t<Ys.length;t+=1)e[Ys[t].charCodeAt(0)]=t;return e})();function yu(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ys[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Ys[r]),t.queuedBits-=6}}function $h(e,t,n){const r=e1[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function bu(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{r1(o,r,n)};for(let o=0;o<e.length;o+=1)$h(e.charCodeAt(o),s,i);return t.join("")}function t1(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function n1(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}t1(r,t)}}function r1(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function s1(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)$h(e.charCodeAt(s),n,r);return new Uint8Array(t)}function i1(e){const t=[];return n1(e,n=>t.push(n)),new Uint8Array(t)}function o1(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>yu(s,n,r)),yu(null,n,r),t.join("")}function a1(e){return Math.round(Date.now()/1e3)+e}function l1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const rt=()=>typeof window<"u"&&typeof document<"u",fn={tested:!1,writable:!1},Mh=()=>{if(!rt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(fn.tested)return fn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),fn.tested=!0,fn.writable=!0}catch{fn.tested=!0,fn.writable=!1}return fn.writable};function c1(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const Lh=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>z(()=>Promise.resolve().then(()=>fr),void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},u1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Bn=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},dn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Kt=async(e,t)=>{await e.removeItem(t)};class Ri{constructor(){this.promise=new Ri.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ri.promiseConstructor=Promise;function io(e){const t=e.split(".");if(t.length!==3)throw new ea("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!GS.test(t[r]))throw new ea("JWT not in base64url format");return{header:JSON.parse(bu(t[0])),payload:JSON.parse(bu(t[1])),signature:s1(t[2]),raw:{header:t[0],payload:t[1]}}}async function f1(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function d1(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)
`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=Dh(e.address),p=u?`${u}://${r}`:r,v=e.statement?`${e.statement}
2026-06-07 15:06:40 +03:30
`:"",b=`${p} wants you to sign in with your Ethereum account:
${h}
${v}`;let w=`URI: ${f}
Version: ${d}
Chain ID: ${n}${o?`
Nonce: ${o}`:""}
Issued At: ${i.toISOString()}`;if(s&&(w+=`
Expiration Time: ${s.toISOString()}`),a&&(w+=`
Not Before: ${a.toISOString()}`),l&&(w+=`
Request ID: ${l}`),c){let y=`
Resources:`;for(const E of c){if(!E||typeof E!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${E}`);y+=`
- ${E}`}w+=y}return`${b}
2026-07-04 17:32:23 +03:30
${w}`}j1();const D1={url:KS,storageKey:WS,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:zS,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Cu(e,t,n){return await n()}const Nn={};class ts{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ts.nextInstanceID,ts.nextInstanceID+=1,this.instanceID>0&&rt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},D1),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new R1({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Lh(s.fetch),this.lock=s.lock||Cu,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:rt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=$1:this.lock=Cu,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:Mh()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Su(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Su(this.memoryStorage)),rt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=Nn[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Nn[this.storageKey]=Object.assign(Object.assign({},Nn[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Nn[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Nn[this.storageKey]=Object.assign(Object.assign({},Nn[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Rh}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=c1(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),rt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),ZS(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{e
`);const D=await C.signMessage(new TextEncoder().encode(p),"utf8");if(!D||!(D instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=D}}try{const{data:b,error:w}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:o1(v)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:yt});if(w)throw w;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Er}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:w})}catch(b){if(ne(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const n=await dn(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:yt});if(await Kt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Er}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(ne(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:yt}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Er}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(ne(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await $n(this.storage,this.storageKey));const{error:f}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new ws("You must provide either an email or phone number.")}catch(a){if(ne(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:yt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(ne(s