PageSourceSearch

https://www.challenges.fr/assets/_nuxt/78pp9Xf9.js

js challenges.fr collected 2026-09-24 08:42:11 UTC 5,147 bytes, 1 lines download raw bytes

1import{o as p,u as g}from"./Cp2CR22i.js";import{c as b}from"./CDbAB8Pg.js";import{aw as y,e as N,a5 as S}from"./XkwEEkUh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"d210c48b75ce1823600e30878a558f237a2d4016"}}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"d210c48b75ce1823600e30878a558f237a2d4016"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="579f006a-4289-43da-8ee6-a9cd53a5d8d9",e._sentryDebugIdIdentifier="sentry-dbid-579f006a-4289-43da-8ee6-a9cd53a5d8d9")}catch{}})();function L(e){if(b.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=p(e);if(t)return t.ownerDocument}return document}let E=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var x=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(x||{}),F=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(F||{}),A=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(A||{});function I(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(E)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(h||{});function P(e,t=0){var r;return e===((r=L(e))==null?void 0:r.body)?!1:g(t,{0(){return e.matches(E)},1(){let u=e;for(;u!==null;){if(u.matches(E))return!0;u=u.parentElement}return!1}})}var T=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(T||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function U(e){e?.focus({preventScroll:!0})}let M=["textarea","input"].join(",");function O(e){var t,r;return(r=(t=e?.matches)==null?void 0:t.call(e,M))!=null?r:!1}function _(e,t=r=>r){return e.slice().sort((r,u)=>{let a=t(r),n=t(u);if(a===null||n===null)return 0;let i=a.compareDocumentPosition(n);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function C(e,t,{sorted:r=!0,relativeTo:u=null,skipElements:a=[]}={}){var n;let i=(n=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?n:document,o=Array.isArray(e)?r?_(e):e:I(e);a.length>0&&o.length>1&&(o=o.filter(s=>!a.includes(s))),u=u??i.activeElement;let w=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(u))-1;if(t&4)return Math.max(0,o.indexOf(u))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=t&32?{preventScroll:!0}:{},m=0,f=o.length,c;do{if(m>=f||m+f<=0)return 0;let s=d+m;if(t&16)s=(s+f)%f;else{if(s<0)return 3;if(s>=f)return 1}c=o[s],c?.focus(l),m+=w}while(c!==i.activeElement);return t&6&&O(c)&&c.select(),2}function D(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function R(){return/Android/gi.test(window.navigator.userAgent)}function $(){return D()||R()}function v(e,t,r){b.isServer||y(u=>{document.addEventListener(e,t,r),u(()=>document.removeEventListener(e,t,r))})}function k(e,t,r){b.isServer||y(u=>{window.addEventListener(e,t,r),u(()=>window.removeEventListener(e,t,r))})}function V(e,t,r=N(()=>!0)){function u(n,i){if(!r.value||n.defaultPrevented)return;let o=i(n);if(o===null||!o.getRootNode().contains(o))return;let w=(function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]})(e);for(let d of w){if(d===null)continue;let l=d instanceof HTMLElement?d:p(d);if(l!=null&&l.contains(o)||n.composed&&n.composedPath().includes(l))return}return!P(o,h.Loose)&&o.tabIndex!==-1&&n.preventDefault(),t(n,o)}let a=S(null);v("pointerdown",n=>{var i,o;
1r.value&&(a.value=((o=(i=n.composedPath)==null?void 0:i.call(n))==null?void 0:o[0])||n.target)},!0),v("mousedown",n=>{var i,o;r.value&&(a.value=((o=(i=n.composedPath)==null?void 0:i.call(n))==null?void 0:o[0])||n.target)},!0),v("click",n=>{$()||a.value&&(u(n,()=>a.value),a.value=null)},!0),v("touchend",n=>u(n,()=>n.target instanceof HTMLElement?n.target:null),!0),k("blur",n=>u(n,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}export{I as E,x as N,_ as O,C as P,U as S,F as T,V as a,P as b,h,L as i,$ as n,D as t,k as w};

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.