2026-10-20 16:52:05 +03:30
|
|
|
import{ah as W,az as re,d as $,ad as x,i as k,ak as xe,x as Ee,z as Z,aP as le,B as Ce,y as he,e as g,b9 as _e,ag as Oe,ac as Te,am as v,j as Re,aG as be,J as pe,aH as ke,af as we,ai as De,au as Me}from"./index-1ba0f9ec.js";import{P as $e,C as Ae,D as Ie}from"./isSymbol-355a1404.js";import{K as se}from"./shallowequal-e0d9eafb.js";import{o as Le}from"./omit-f5d28cd3.js";import{p as Be}from"./pickAttrs-0ddf9a54.js";import{w as ue,i as Ne}from"./_plugin-vue_export-helper-31e07528.js";import{_ as We,a as Ve}from"./index-8f2b7e91.js";var G;function ee(r){if(typeof document>"u")return 0;if(r||G===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var o=e.offsetWidth;t.style.overflow="scroll";var a=e.offsetWidth;o===a&&(a=t.clientWidth),document.body.removeChild(t),G=o-a}return G}function ce(r){var e=r.match(/^(.*)px$/),t=Number(e==null?void 0:e[1]);return Number.isNaN(t)?ee():t}function it(r){if(typeof document>"u"||!r||!(r instanceof Element))return{width:0,height:0};var e=getComputedStyle(r,"::-webkit-scrollbar"),t=e.width,n=e.height;return{width:ce(t),height:ce(n)}}function R(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.element,n=t===void 0?document.body:t,o={},a=Object.keys(r);return a.forEach(function(f){o[f]=n.style[f]}),a.forEach(function(f){n.style[f]=r[f]}),o}function ze(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var q={};const fe=function(r){if(!(!ze()&&!r)){var e="ant-scrolling-effect",t=new RegExp("".concat(e),"g"),n=document.body.className;if(r){if(!t.test(n))return;R(q),q={},document.body.className=n.replace(t,"").trim();return}var o=ee();if(o&&(q=R({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!t.test(n))){var a="".concat(n," ").concat(e);document.body.className=a.trim()}}};var S=[],Se="ant-scrolling-effect",J=new RegExp("".concat(Se),"g"),je=0,Q=new Map,Fe=We(function r(e){var t=this;Ve(this,r),W(this,"getContainer",function(){var n;return(n=t.options)===null||n===void 0?void 0:n.container}),W(this,"reLock",function(n){var o=S.find(function(a){var f=a.target;return f===t.lockTarget});o&&t.unLock(),t.options=n,o&&(o.options=n,t.lock())}),W(this,"lock",function(){var n;if(!S.some(function(s){var d=s.target;return d===t.lockTarget})){if(S.some(function(s){var d,h=s.options;return(h==null?void 0:h.container)===((d=t.options)===null||d===void 0?void 0:d.container)})){S=[].concat(re(S),[{target:t.lockTarget,options:t.options}]);return}var o=0,a=((n=t.options)===null||n===void 0?void 0:n.container)||document.body;(a===document.body&&window.innerWidth-document.documentElement.clientWidth>0||a.scrollHeight>a.clientHeight)&&(o=ee());var f=a.className;if(S.filter(function(s){var d,h=s.options;return(h==null?void 0:h.container)===((d=t.options)===null||d===void 0?void 0:d.container)}).length===0&&Q.set(a,R({width:o!==0?"calc(100% - ".concat(o,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:a})),!J.test(f)){var m="".concat(f," ").concat(Se);a.className=m.trim()}S=[].concat(re(S),[{target:t.lockTarget,options:t.options}])}}),W(this,"unLock",function(){var n,o=S.find(function(m){var s=m.target;return s===t.lockTarget});if(S=S.filter(function(m){var s=m.target;return s!==t.lockTarget}),!(!o||S.some(function(m){var s,d=m.options;return(d==null?void 0:d.container)===((s=o.options)===null||s===void 0?void 0:s.container)}))){var a=((n=t.options)===null||n===void 0?void 0:n.container)||document.body,f=a.className;J.test(f)&&(R(Q.get(a),{element:a}),Q.delete(a),a.className=a.className.replace(J,"").trim())}}),this.lockTarget=je++,this.options=e}),_=0,M=_e(),V={},T=function(e){if(!M)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(Oe(
|