Files
machartaa_admin_dist/dist/assets/vnode-eb3fa2ea.js
T
2026-06-20 14:40:19 +03:30

2 lines
10 KiB
JavaScript

import{d as V,r as k,v as I,aC as q,aA as N,E as U,aL as K,at as C,ai as b,V as Y,b1 as J,az as Q,b5 as X,ax as Z}from"./index-04b55c40.js";var P=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];n.call(r,s[1],s[0])}},t}()}(),R=typeof window<"u"&&typeof document<"u"&&window.document===document,g=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ee=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(g):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),te=2;function ne(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function s(){ee(o)}function a(){var u=Date.now();if(n){if(u-i<te)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=u}return a}var re=20,ie=["top","right","bottom","left","width","height","size","weight"],oe=typeof MutationObserver<"u",se=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ne(this.refresh.bind(this),re)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!R||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!R||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=ie.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),W=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||g},D=y(0,0,0,0);function m(e){return parseFloat(e)||0}function S(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+m(o)},0)}function ae(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=m(s)}return n}function ue(e){var t=e.getBBox();return y(0,0,t.width,t.height)}function fe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return D;var r=l(e).getComputedStyle(e),i=ae(r),o=i.left+i.right,s=i.top+i.bottom,a=m(r.width),u=m(r.height);if(r.boxSizing==="border-box"&&(Math.round(a+o)!==t&&(a-=S(r,"left","right")+o),Math.round(u+s)!==n&&(u-=S(r,"top","bottom")+s)),!he(e)){var p=Math.round(a+o)-t,c=Math.round(u+s)-n;Math.abs(p)!==1&&(a-=p),Math.abs(c)!==1&&(u-=c)}return y(i.left,i.top,a,u)}var ce=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&typeof e.getBBox=="function"}}();function he(e){return e===l(e).document.documentElement}function de(e){return R?ce(e)?ue(e):fe(e):D}function le(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return W(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ve=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=de(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),pe=function(){function e(t,n){var r=le(n);W(this,{target:t,contentRect:r})}return e}(),be=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new P,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new pe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),H=typeof WeakMap<"u"?new WeakMap:new P,$=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=se.getInstance(),r=new be(t,n,this);H.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){$.prototype[e]=function(){var t;return(t=H.get(this))[e].apply(t,arguments)}});var ge=function(){return typeof g.ResizeObserver<"u"?g.ResizeObserver:$}();const me=ge;var _e=typeof global=="object"&&global&&global.Object===Object&&global;const ye=_e;var Oe=typeof self=="object"&&self&&self.Object===Object&&self,we=ye||Oe||Function("return this")();const Ee=we;var Re=Ee.Symbol;const _=Re;var G=Object.prototype,Me=G.hasOwnProperty,Te=G.toString,v=_?_.toStringTag:void 0;function ze(e){var t=Me.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch{}var i=Te.call(e);return r&&(t?e[v]=n:delete e[v]),i}var Ae=Object.prototype,Se=Ae.toString;function je(e){return Se.call(e)}var xe="[object Null]",Ce="[object Undefined]",j=_?_.toStringTag:void 0;function We(e){return e==null?e===void 0?Ce:xe:j&&j in Object(e)?ze(e):je(e)}function De(e,t){return function(n){return e(t(n))}}function He(e){return e!=null&&typeof e=="object"}const $e=V({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(t,n){var r=n.slots,i=k({width:0,height:0,offsetHeight:0,offsetWidth:0}),o=null,s=null,a=function(){s&&(s.disconnect(),s=null)},u=function(O){var f=t.onResize,d=O[0].target,M=d.getBoundingClientRect(),B=M.width,F=M.height,w=d.offsetWidth,E=d.offsetHeight,T=Math.floor(B),z=Math.floor(F);if(i.width!==T||i.height!==z||i.offsetWidth!==w||i.offsetHeight!==E){var A={width:T,height:z,offsetWidth:w,offsetHeight:E};C(i,A),f&&Promise.resolve().then(function(){f(b(b({},A),{},{offsetWidth:w,offsetHeight:E}),d)})}},p=Y(),c=function(){var O=t.disabled;if(O){a();return}var f=K(p),d=f!==o;d&&(a(),o=f),!s&&f&&(s=new me(u),s.observe(f))};return I(function(){c()}),q(function(){c()}),N(function(){a()}),U(function(){return t.disabled},function(){c()},{flush:"post"}),function(){var h;return(h=r.default)===null||h===void 0?void 0:h.call(r)[0]}}});function Ge(e,t){for(var n=C({},e),r=0;r<t.length;r+=1){var i=t[r];delete n[i]}return n}function L(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=e;if(Array.isArray(e)&&(i=J(e)[0]),!i)return null;var o=Q(i,t,r);return o.props=n?b(b({},o.props),t):o.props,X(Z(o.props.class)!=="object","class must be string"),o}function Le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(function(r){return L(r,t,n)})}function x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(function(o){return x(o,t,n,r)});var i=L(e,t,n,r);return Array.isArray(i.children)&&(i.children=x(i.children)),i}export{$e as R,_ as S,me as a,We as b,L as c,De as d,x as e,ye as f,Le as g,He as i,Ge as o,Ee as r};