PageSourceSearch

https://tuneft.ru/_nuxt/B3vEz1LG.js

js tuneft.ru collected 2026-10-03 00:18:00 UTC 11,667 bytes, 1 lines download raw bytes

1import{i as Q,a as Z}from"./CDN5sYe4.js";import{f as ee,u as te,b as K,o as ne,g as se}from"./CRseocqy.js";import{d as re,e as oe,a as T,f as x,g as ae}from"./BRnScjpf.js";import{l as O,H as g,w as H,a9 as ie,Y as P,a6 as ue,d as _,m as F,n as I,x as M,I as N,J as $,M as W,u as D,aa as le,r as z,ab as ce,a2 as de}from"./zfjMcWBe.js";import{P as V}from"./CKlELXCI.js";import{g as w}from"./FUKBWQwh.js";function Y(e,n,t){const s=t.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&s.addEventListener(e,n,{once:!0}),s.dispatchEvent(u)}const fe=oe(()=>{const e=g(new Map),n=g(),t=O(()=>{for(const v of e.value.values())if(v)return!0;return!1}),s=Q({scrollBody:g(!0)});let u=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",x&&u?.(),n.value=void 0};return H(t,(v,c)=>{if(!T)return;if(!v){c&&l();return}n.value===void 0&&(n.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,m={padding:d,margin:0},a=s.scrollBody?.value?typeof s.scrollBody.value=="object"?ie({padding:s.scrollBody.value.padding===!0?d:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?d:s.scrollBody.value.margin},m):m:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof a.padding=="number"?`${a.padding}px`:String(a.padding),document.body.style.marginRight=typeof a.margin=="number"?`${a.margin}px`:String(a.margin),document.documentElement.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),x&&(u=ee(document,"touchmove",r=>ve(r),{passive:!1})),P(()=>{t.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function We(e){const n=Math.random().toString(36).substring(2,7),t=fe();t.value.set(n,e??!1);const s=O({get:()=>t.value.get(n)??!1,set:u=>t.value.set(n,u)});return re(()=>{t.value.delete(n)}),s}function j(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(t instanceof Element)||t.tagName==="BODY"?!1:j(t)}}function ve(e){const n=e||window.event,t=n.target;return t instanceof Element&&j(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.cancelable&&n.preventDefault(),!1)}var pe=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},S=new WeakMap,L=new WeakMap,C={},B=0,X=function(e){return e&&(e.host||X(e.parentNode))},me=function(e,n){return n.map(function(t){if(e.contains(t))return t;var s=X(t);return s&&e.contains(s)?s:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},ye=function(e,n,t,s){var u=me(n,Array.isArray(e)?e:[e]);C[t]||(C[t]=new WeakMap);var l=C[t],v=[],c=new Set,d=new Set(u),m=function(r){!r||c.has(r)||(c.add(r),m(r.parentNode))};u.forEach(m);var a=function(r){!r||d.has(r)||Array.prototype.forEach.call(r.children,function(i){if(c.has(i))a(i);else try{var o=i.getAttribute(s),f=o!==null&&o!=="false",p=(S.get(i)||0)+1,y=(l.get(i)||0)+1;S.set(i,p),l.set(i,y),v.push(i),p===1&&f&&L.set(i,!0),y===1&&i.setAttribute(t,"true"),f||i.setAttribute(s,"true")}catch(E){console.error("aria-hidden: cannot operate on ",i,E)}})};return a(n),c.clear(),B++,function(){v.forEach(function(r){var i=S.get(r)-1,o=l.get(r)-1;S.set(r,i),l.set(r,o),i||(L.has(r)||r.removeAttribute(s),L.delete(r)),o||r.removeAttribute(t)}),B--,B||(S=new WeakMap,S=new WeakMap,L=new WeakMap,C={})}},he=function(e,n,t){t===void 0&&(t="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),u=pe(e);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),ye(s,u,t,"aria-hidden")):function(){return null}};function xe(e){let n;H(()=>te(e),t=>{let s=!1;try{s=!!t?.closest("[popover]:not(:popover-open)")}catch{}t&&!s?n=he(t):n&&n()}),ue(()=>{n&&n()})}const Ee="dismissableLayer.pointerDownOutside",be="dismissableLayer.focusOutside";function G(e,n){if(!(n instanceof Element))return!1;const t=n.closest("[data-dismissable-layer]"),s=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),u=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&(s===t||u.indexOf(s)<u.indexOf(t)))}function ge(e,n,t=!0){const s=n?.value?.ownerDocument??globalThis?.document,u=g(!1),l=g(()=>{});return _(v=>{if(!T||!F(t))return;const c=async m=>{const a=m.target;if(!(!n?.value||!a)){if(G(n.value,a)){u.value=!1;return}if(m.target&&!u.value){let i=function(){Y(Ee,e,r)};const r={originalEvent:m};m.pointerType==="touch"?(s.removeEventListener("click",l.value),l.value=i,s.addEventListener("click",l.value,{once:!0})):i()}else s.removeEventListener("click",l.value);u.value=!1}},d=window.setTimeout(()=>{s.addEventListener("pointerdown",c)},0);v(()=>{window.clearTimeout(d),s.removeEventListener("pointerdown",c),s.removeEventListener("click",l.value)})}),{onPointerDownCapture:()=>{F(t)&&(u.value=!0)}}}function we(e,n,t=!0){const s=n?.value?.ownerDocument??globalThis?.document,u=g(!1);return _(l=>{if(!T||!F(t))return;const v=async c=>{if(!n?.value)return;await P(),await P();const d=c.target;!n.value||!d||G(n.value,d)||c.target&&!u.value&&Y(be,e,{originalEvent:c})};s.addEventListener("focusin",v),l(()=>s.removeEventListener("focusin",v))}),{onFocusCapture:()=>{F(t)&&(u.value=!0)},onBlurCapture:()=>{F(t)&&(u.value=!1)}}}const h=z({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var Oe=I({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:n}){const t=e,s=n,{forwardRef:u,currentElement:l}=K(),v=O(()=>l.value?.ownerDocument??globalThis.document),c=O(()=>h.layersRoot),d=O(()=>l.value?Array.from(c.value).indexOf(l.value):-1),m=O(()=>h.layersWithOutsidePointerEventsDisabled.size>0),a=O(()=>{const o=Array.from(c.value),[f]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),p=o.indexOf(f);return d.value>=p}),r=ge(async o=>{const f=[...h.branches].some(p=>p?.contains(o.target));!a.value||f||(s("pointerDownOutside",o),s("interactOutside",o),await P(),o.defaultPrevented||s("dismiss"))},l),i=we(o=>{[...h.branches].some(p=>p?.contains(o.target))||(s("focusOutside",o),s("interactOutside",o),o.defaultPrevented||s("dismiss"))},l);return ne("Escape",o=>{d.value===c.value.size-1&&(s("escapeKeyDown",o),o.defaultPrevented||s("dismiss"))}),_(o=>{l.value&&(t.disableOutsidePointerEvents&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(h.originalBodyPointerEvents=v.value.body.style.pointerEvents,v.value.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(l.value)),c.value.add(l.value),o(()=>{t.disableOutsidePointerEvents&&h.layersWithOutsidePointerEventsDisabled.size===1&&!Z(h.originalBodyPointerEvents)&&(v.value.body.style.pointerEvents=h.originalBodyPointerEvents)}))}),_(o=>{o(()=>{l.value&&(c.value.delete(l.value),h.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(o,f)=>(M(),N(D(V),{ref:D(u),"as-child":o.asChild,as:o.as,"data-dismissable-layer":"",style:le({pointerEvents:m.value?a.value?"auto":"none":void 0}),onFocusCapture:D(i).onFocusCapture,onBlurCapture:D(i).onBlurCapture,onPointerdownCapture:D(r).onPointerDownCapture},{default:$(()=>[W(o.$slots,"default")]),_:3}
1,8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Re=Oe;const De=ae(()=>g([]));function Se(){const e=De();return{add(n){const t=e.value[0];n!==t&&t?.pause(),e.value=R(e.value,n),e.value.unshift(n)},remove(n){e.value=R(e.value,n),e.value[0]?.resume()}}}function R(e,n){const t=[...e],s=t.indexOf(n);return s!==-1&&t.splice(s,1),t}const k="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0};function _e(e,{select:n=!1}={}){const t=w();for(const s of e)if(b(s,{select:n}),w()!==t)return!0}function Fe(e){const n=J(e),t=q(n,e),s=q(n.reverse(),e);return[t,s]}function J(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function q(e,n){for(const t of e)if(!Pe(t,{upTo:n}))return t}function Pe(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Le(e){return e instanceof HTMLInputElement&&"select"in e}function b(e,{select:n=!1}={}){if(e&&e.focus){const t=w();e.focus({preventScroll:!0}),e!==t&&Le(e)&&n&&e.select()}}var Ce=I({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:n}){const t=e,s=n,{currentRef:u,currentElement:l}=K(),v=g(null),c=Se(),d=z({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});_(a=>{if(!T)return;const r=l.value;if(!t.trapped)return;function i(y){if(d.paused||!r)return;const E=y.target;r.contains(E)?v.value=E:b(v.value,{select:!0})}function o(y){if(d.paused||!r)return;const E=y.relatedTarget;E!==null&&(r.contains(E)||b(v.value,{select:!0}))}function f(y){r.contains(v.value)||b(r)}document.addEventListener("focusin",i),document.addEventListener("focusout",o);const p=new MutationObserver(f);r&&p.observe(r,{childList:!0,subtree:!0}),a(()=>{document.removeEventListener("focusin",i),document.removeEventListener("focusout",o),p.disconnect()})}),_(async a=>{const r=l.value;if(await P(),!r)return;c.add(d);const i=w();if(!r.contains(i)){const f=new CustomEvent(k,U);r.addEventListener(k,p=>s("mountAutoFocus",p)),r.dispatchEvent(f),f.defaultPrevented||(_e(J(r),{select:!0}),w()===i&&b(r))}a(()=>{r.removeEventListener(k,y=>s("mountAutoFocus",y));const f=new CustomEvent(A,U),p=y=>{s("unmountAutoFocus",y)};r.addEventListener(A,p),r.dispatchEvent(f),setTimeout(()=>{f.defaultPrevented||b(i??document.body,{select:!0}),r.removeEventListener(A,p),c.remove(d)},0)})});function m(a){if(!t.loop&&!t.trapped||d.paused)return;const r=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,i=w();if(r&&i){const o=a.currentTarget,[f,p]=Fe(o);f&&p?!a.shiftKey&&i===p?(a.preventDefault(),t.loop&&b(f,{select:!0})):a.shiftKey&&i===f&&(a.preventDefault(),t.loop&&b(p,{select:!0})):i===o&&a.preventDefault()}}return(a,r)=>(M(),N(D(V),{ref_key:"currentRef",ref:u,tabindex:"-1","as-child":a.asChild,as:a.as,onKeydown:m},{default:$(()=>[W(a.$slots,"default")]),_:3},8,["as-child","as"]))}}),Ue=Ce;function qe(e){return e?"open":"closed"}function Ke(e){const n=w();for(const t of e)if(t===n||(t.focus(),w()!==n))return}var Te=I({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const n=se();return(t,s)=>D(n)||t.forceMount?(M(),N(ce,{key:0,to:t.to,disabled:t.disabled,defer:t.defer},[W(t.$slots,"default")],8,["to","disabled","defer"])):de("v-if",!0)}}),He=Te;export{Re as D,Ue as F,He as T,We as a,Ke as f,qe as g,Y as h,xe as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.