<div class="vt" data-vt-cat="work-visas" data-vt-code="H-2A"> <div class="vt-crumbs"><nav class="vt-wrap" aria-label="Breadcrumb"><a href="/">Home</a><span>›</span><a href="/work-visas">Work & business</a><span>›</span><span>H-2A</span></nav></div> <section class="vt-dhead"><div class="vt-wrap"> <div class="vt-badges"><span>Nonimmigrant</span><span>Employment-based</span><span>No annual cap</span><span>Labor certification</span><span>Seasonal</span></div> <h1><span>H-2A</span> Temporary Agricultural Worker</h1> <p class="vt-lede">For foreign workers filling temporary or seasonal farm jobs when U.S. workers are not available. The employer needs a Department of Labor certification first; there is no annual cap.</p> <div class="vt-dmeta"><span>Last reviewed <strong>Oct 1, 2026</strong></span><span>Sources: USCIS · DOL · Federal Register</span><a href="/corrections?page=/visa/h-2a">Report an error</a></div> </div></section> <section class="vt-dbody"> <nav class="vt-jump" aria-label="On this page"><a href="#overview">Overview</a><a href="#qualify">Who qualifies</a><a href="#duration">Duration</a><a href="#fees">Fees</a><a href="#processing">Processing</a><a href="#steps">Steps</a><a href="#documents">Documents</a><a href="#dependents">Dependents</a><a href="#greencard">Green card</a><a href="#related">Related</a><a href="#faq">FAQ</a><a href="#sources">Sources</a><a href="#changes">Changes</a></nav> <nav class="vt-toc" aria-label="On this page"><div class="h">On this page</div><ul><li><a href="#overview">Overview</a></li><li><a href="#qualify">Who qualifies</a></li><li><a href="#duration">Duration & extensions</a></li><li><a href="#fees">Fees</a></li><li><a href="#processing">Processing time</a></li><li><a href="#steps">Application steps</a></li><li><a href="#documents">Required documents</a></li><li><a href="#dependents">Dependents & family</a></li><li><a href="#greencard">Path to a green card</a></li><li><a href="#related">Related visas</a></li><li><a href="#faq">Common questions</a></li><li><a href="#sources">Official sources</a></li><li><a href="#changes">Recent changes</a></li></ul></nav> <article class="vt-art"> <div class="vt-glance"><h2>At a glance</h2><dl><div><dt>Annual cap</dt><dd>None</dd></div><div><dt>Period of stay</dt><dd>Length of the labor certification</dd></div><div><dt>Extensions</dt><dd>Up to 1 year at a time</dd></div><div><dt>Maximum stay</dt><dd>3 years, then 60 days outside</dd></div><div><dt>DOL application</dt><dd>At least 45 days before the date of need</dd></div><div><dt>Premium processing</dt><dd>Not available</dd></div></dl></div> <div class="vt-callout"><strong>H-2A wage rates under court review.</strong> A Department of Labor <a href="https://www.govinfo.gov/content/pkg/FR-2025-10-02/html/2025-19365.htm" target="_blank" rel="noopener">interim final rule effective Oct. 2, 2025</a> changed how the Adverse Effect Wage Rate (AEWR) is set, using BLS OEWS data with two skill levels and a housing adjustment. In <em>United Farm Workers v. DOL</em> (E.D. Cal.), the court <a href="https://www.govinfo.gov/content/pkg/USCOURTS-caed-1_25-cv-01614/pdf/USCOURTS-caed-1_25-cv-01614-20.pdf" target="_blank" rel="noopener">found the rule unlawful on Aug. 25, 2026</a> but did not immediately vacate it, leaving current AEWRs in place while DOL writes a new methodology. DOL <a href="https://www.dol.gov/agencies/eta/foreign-labor/news" target="_blank" rel="noopener">announced on Sept. 2, 2026</a> that employers may later be required to make wage adjustment payments for work after that date, though no payment obligation exists yet. On <a href="https://www.govinfo.gov/content/pkg/USCOURTS-caed-1_25-cv-01614/pdf/USCOURTS-caed-1_25-cv-01614-21.pdf" target="_blank" rel="noopener">Sept. 17, 2026</a> the court rejected DOL’s proposed 9–12 month timeline and is weighing whether to vacate the rule.</div> <h2 id="overview" class="s">Overview</h2> <p class="b">The H-2A program lets U.S. agricultural employers bring in foreign nationals for temporary or seasonal farm work. The employer must show there are not enough U.S. workers who are able, willing, qualified and available, and that hiring H-2A workers will not adversely affect the wages and working conditions of similarly employed U.S. workers.</p> <p class="b">Before USCIS can approve a petition, the Department of Labor must issue a <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">temporary labor certification (TLC)</a>. Employers must pay at least the highest applicable wage rate, including the AEWR, provide <a href="https://www.ecfr.gov/current/title-20/section-655.122" target="_blank" rel="noopener">housing at no cost</a> to workers who cannot reasonably return home each day, cover inbound travel once the worker completes half the contract, and guarantee work for at least three-fourths of the contract hours.</p> <p class="b">There is no annual numerical cap. Since <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">Jan. 17, 2025</a>, USCIS no longer limits H-2A workers to nationals of countries on a designated-country list.</p> <h2 id="qualify" class="s">Who qualifies</h2> <h3 class="s">The employer must show</h3> <ul class="b"><li>The job is temporary or seasonal agricultural work.</li><li>There are not enough U.S. workers who are able, willing, qualified and available.</li><li>Employing H-2A workers will not adversely affect U.S. workers’ wages and working conditions.</li><li>A valid temporary labor certification from the Department of Labor (submitted with the petition).</li><li>No prohibited recruitment or placement fees have been or will be collected from workers.</li></ul> <h3 class="s">The worker must</h3> <ul class="b"><li>Meet the minimum job requirements stated in the labor certification (for named workers, as of the date the TLC was filed).</li><li>For commercial motor vehicle jobs, show English proficiency if the job requires it (Executive Order 14286, Apr. 28, 2025).</li></ul> <h2 id="duration" class="s">Duration & extensions</h2> <table class="vt-kv"><tbody><tr><th scope="row">Initial period</th><td>Up to the period <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">authorized on the labor certification</a></td></tr><tr><th scope="row">Extensions</th><td>In <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">increments of up to 1 year</a></td></tr><tr><th scope="row">Maximum stay</th><td><a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">3 years</a>; time in other H or L classifications counts</td></tr><tr><th scope="row">Resetting the clock</th><td>After 3 years, the worker must spend an uninterrupted <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">60 days outside the U.S.</a> before returning in H-2A status</td></tr><tr><th scope="row">Grace periods</th><td>Up to <a href="https://www.uscis.gov/archive/dhs-helps-companies-fill-more-jobs-strengthens-worker-protections-in-the-h-2-programs-with-final" target="_blank" rel="noopener">10 days before and 30 days after</a> the petition period, and up to 60 days after employment ends</td></tr></tbody></table> <h2 id="fees" class="s">Fees</h2> <p class="vt-feesintro">The employer pays the USCIS petition fees. No job placement fee or other fee related to H-2A employment may be collected from workers. Amounts from the <a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">USCIS fee schedule (Form G-1055, edition 10/01/26)</a>.</p> <div class="vt-scroll"><table class="vt-fees"><thead><tr><th>Fee</th><th class="amt">Amount</th><th>Who pays</th><th>Notes</th></tr></thead><tbody> <tr><td>Form I-129 / I-129H2A — named workers</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$1,090</a></td><td>Employer</td><td>$1,040 online; $545 for small employers (25 or fewer full-time-equivalent employees) and nonprofits. Up to 25 named workers per petition.</td></tr> <tr><td>Form I-129 / I-129H2A — unnamed workers</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$530</a></td><td>Employer</td><td>$480 online; $460 small employers and nonprofits. No limit on the number of workers.</td></tr> <tr><td>Asylum Program Fee</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$600</a></td><td>Employer</td><td>$300 small employers; $0 nonprofits.</td></tr> <tr><td>Visa application (MRV) fee</td><td class="amt"><a href="https://travel.state.gov/content/travel/en/us-visas/visa-information-resources/fees/fees-visa-services.html" target="_blank" rel="noopener">$205</a></td><td>Worker</td><td>H category fee paid at the consulate. A reciprocity issuance fee may also apply by nationality.</td></tr> </tbody></table></div> <p class="vt-foot">Premium processing is not offered for H-2A (<a href="https://www.uscis.gov/forms/all-forms/how-do-i-request-premium-processing" target="_blank" rel="noopener">not on USCIS’s list</a>), but USCIS <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">expedites H-2A petitions</a>. <a href="https://www.congress.gov/119/plaws/publ21/PLAW-119publ21.pdf" target="_blank" rel="noopener">Public Law 119-21</a> created a Visa Integrity Fee of at least $250 on nonimmigrant visa issuance, but as of Oct. 1, 2026 it does not appear on the State Department’s <a href="https://travel.state.gov/content/travel/en/us-visas/visa-information-resources/fees/fees-visa-services.html" target="_blank" rel="noopener">visa fees page</a>.</p> <h2 id="processing" class="s">Processing time</h2> <dl class="vt-cards"><div><dt>Job order to the state workforce agency</dt><dd>60–75 days before need</dd><dd class="n"><a href="https://www.dol.gov/agencies/eta/foreign-labor/programs/h-2a" target="_blank" rel="noopener">Form ETA-790/790A</a> filed through DOL’s FLAG system.</dd></div><div><dt>Labor certification application</dt><dd>At least 45 days before need</dd><dd class="n"><a href="https://www.dol.gov/agencies/eta/foreign-labor/programs/h-2a" target="_blank" rel="noopener">Form ETA-9142A</a> filed with DOL.</dd></div></dl> <p class="b">USCIS processing times vary; see <a href="https://egov.uscis.gov/processing-times/" target="_blank" rel="noopener">USCIS processing times</a>. The online Form I-129H2A can be filed once DOL issues its Notice of Acceptance. Nationals of the 19 countries under full restrictions in the <a href="https://www.whitehouse.gov/presidential-actions/2025/12/restricting-and-limiting-the-entry-of-foreign-nationals-to-protect-the-security-of-the-united-states/" target="_blank" rel="noopener">Dec. 16, 2025 travel proclamation</a> (effective Jan. 1, 2026) cannot currently be issued nonimmigrant visas, including this one, unless an exception applies.</p> <h2 id="steps" class="s">Application steps</h2> <ol class="vt-steps"><li><span class="num">1</span><div><div class="tt">Submit the job order</div><div class="tx">60 to 75 days before the first date of need, the employer files the agricultural clearance order (Form ETA-790/790A) through DOL’s FLAG system.</div></div></li><li><span class="num">2</span><div><div class="tt">Apply for labor certification</div><div class="tx">At least 45 days before the date of need, the employer files Form ETA-9142A with DOL and recruits U.S. workers.</div></div></li><li><span class="num">3</span><div><div class="tt">File with USCIS</div><div class="tx">After DOL approval, the employer files Form I-129 by paper, or the online Form I-129H2A (which may be filed once DOL issues a Notice of Acceptance).</div></div></li><li><span class="num">4</span><div><div class="tt">Visa or admission</div><div class="tx">Workers apply for H-2A visas at a U.S. consulate or, where visa-exempt, seek admission at a port of entry.</div></div></li><li><span class="num">5</span><div><div class="tt">Report changes</div><div class="tx">Within 2 workdays, the employer notifies USCIS if a worker does not report within 5 workdays of the start date, stops reporting for 5 consecutive workdays, is terminated early or finishes more than 30 days early.</div></div></li></ol> <h2 id="documents" class="s">Required documents</h2> <div class="vt-docs"><div><h3>From the employer</h3><ul><li><span>Approved temporary labor certification (or DOL Notice of Acceptance for online filing)</span></li><li><span>Form I-129 or I-129H2A</span></li><li><span>Evidence that named workers meet the job’s minimum requirements</span></li><li><span>Work contract or job order disclosed to workers</span></li></ul></div><div><h3>From the worker</h3><ul><li><span>Valid passport</span></li><li><span>Visa application (where a visa is required)</span></li><li><span>Proof of meeting any stated job requirements</span></li></ul></div></div> <h2 id="dependents" class="s">Dependents & family</h2> <p class="b">Spouses and unmarried children under 21 may accompany the worker in <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">H-4 status</a>. H-4 family members of H-2A workers may not work in the United States.</p> <h2 id="greencard" class="s">Path to a green card</h2> <p class="b">H-2A is a temporary program and is not a dual-intent classification. There is no built-in path to permanent residence.</p> <p class="b">An H-2A worker who later qualifies for a green card generally does so through a separate immigrant category, such as employer sponsorship or family, under its own rules.</p> <h2 id="related" class="s">Related visas</h2> <div class="vt-rel"><a href="/visa/h-2b"><div class="c">H-2B</div><div class="n">Temporary non-agricultural worker</div><div class="tx">The non-farm counterpart, with an annual cap.</div></a><a href="/visa/eb-3"><div class="c">EB-3</div><div class="n">Skilled and other workers</div><div class="tx">Employer-sponsored green card, including some farm jobs.</div></a><a href="/visa/tn"><div class="c">TN</div><div class="n">USMCA professionals</div><div class="tx">Includes some agricultural professional roles.</div></a><a href="/visa/j-1"><div class="c">J-1</div><div class="n">Exchange visitor</div><div class="tx">Agricultural trainee and intern programs.</div></a></div> <h2 id="faq" class="s">Common questions</h2> <div class="vt-faq"><details><summary>Is there a cap on H-2A visas?</summary><p>No. There is no annual numerical limit, but every petition needs an approved Department of Labor temporary labor certification.</p></details><details><summary>What wage must H-2A workers be paid?</summary><p>At least the highest applicable rate, which includes the Adverse Effect Wage Rate set by DOL. The AEWR method changed on Oct. 2, 2025 and is now under a court-ordered rewrite; employers may later owe adjustment payments for the interim period.</p></details><details><summary>How long can an H-2A worker stay?</summary><p>For the period on the labor certification, with extensions of up to one year at a time, to a maximum of 3 years. The worker must then remain outside the U.S. for 60 uninterrupted days before returning in H-2A status.</p></details><details><summary>Can H-2A workers change employers?</summary><p>Yes, through a new employer’s petition. Under the January 2025 rule, eligible workers can start with the new employer as soon as it properly files the petition.</p></details></div> <h2 id="sources" class="s">Official sources</h2> <ul class="vt-src"><li><a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener"><span><strong>USCIS</strong> · H-2A Temporary Agricultural Workers</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.dol.gov/agencies/eta/foreign-labor/programs/h-2a" target="_blank" rel="noopener"><span><strong>DOL</strong> · H-2A Temporary Agricultural Program</span><span>dol.gov ↗</span></a></li><li><a href="https://www.govinfo.gov/content/pkg/FR-2025-10-02/html/2025-19365.htm" target="_blank" rel="noopener"><span><strong>Federal Register</strong> · AEWR Methodology for H-2A Non-Range Occupations (IFR, Oct. 2, 2025)</span><span>govinfo.gov ↗</span></a></li><li><a href="https://www.dol.gov/agencies/eta/foreign-labor/news" target="_blank" rel="noopener"><span><strong>DOL</strong> · OFLC Announcements</span><span>dol.gov ↗</span></a></li><li><a href="https://www.uscis.gov/archive/dhs-helps-companies-fill-more-jobs-strengthens-worker-protections-in-the-h-2-programs-with-final" target="_blank" rel="noopener"><span><strong>USCIS</strong> · H-2 Final Rule news release (Dec. 17, 2024)</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener"><span><strong>USCIS</strong> · Fee Schedule (Form G-1055)</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.dol.gov/agencies/whd/agriculture/h2a/nprm" target="_blank" rel="noopener"><span><strong>DOL WHD</strong> · NPRM: Rescission of the 2024 Farmworker Protection Rule</span><span>dol.gov ↗</span></a></li><li><a href="https://www.ecfr.gov/current/title-20/section-655.122" target="_blank" rel="noopener"><span><strong>eCFR</strong> · 20 CFR 655.122 — H-2A job order contents</span><span>ecfr.gov ↗</span></a></li></ul> <h2 id="changes" class="s">Recent changes</h2> <ul class="vt-chg"><li><span class="d">Sep 17, 2026</span><div class="x"><strong>Court rejects DOL’s timeline for new AEWR method.</strong> The court found DOL’s proposed 9–12 month schedule not prompt, ordered a further status report by Sept. 28 and set a status conference for Oct. 1, 2026, including on whether to vacate the interim rule. <a href="https://www.govinfo.gov/content/pkg/USCOURTS-caed-1_25-cv-01614/pdf/USCOURTS-caed-1_25-cv-01614-21.pdf" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Sep 2, 2026</span><div class="x"><strong>Court finds AEWR rule unlawful, leaves wage rates in place.</strong> OFLC gave the court-ordered notice in United Farm Workers v. DOL (No. 25-cv-01614): the interim rule was found unlawful but not vacated, current AEWRs stay in place, and employers may later owe wage adjustment payments for work after Sept. 2, 2026; no payment obligation exists yet. <a href="https://www.dol.gov/agencies/eta/foreign-labor/news" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Aug 25, 2026</span><div class="x"><strong>AEWR interim rule held unlawful.</strong> The court found the 2025 AEWR rule arbitrary and capricious and procedurally defective, remanded it without immediate vacatur, and ordered DOL to promptly issue a new methodology and new AEWRs. <a href="https://www.govinfo.gov/content/pkg/USCOURTS-caed-1_25-cv-01614/pdf/USCOURTS-caed-1_25-cv-01614-20.pdf" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Oct 2, 2025</span><div class="x"><strong>New AEWR methodology (interim final rule).</strong> AEWRs for non-range jobs now come from BLS OEWS data, with two skill levels per occupation and an adjustment for employer-provided housing. Effective immediately. <a href="https://www.govinfo.gov/content/pkg/FR-2025-10-02/html/2025-19365.htm" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Oct 2, 2025</span><div class="x"><strong>Earlier filing of online H-2A petitions.</strong> Lets employers e-file Form I-129H2A for unnamed workers once DOL accepts the labor certification application, before it is approved; USCIS cannot approve the petition until DOL certifies. <a href="https://www.federalregister.gov/documents/2025/10/02/2025-19235/facilitating-earlier-filing-of-certain-electronically-submitted-h-2a-petitions" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jul 4, 2025</span><div class="x"><strong>Visa Integrity Fee enacted.</strong> Public Law 119-21 requires a fee of at least $250 at issuance of any nonimmigrant visa. <a href="https://www.congress.gov/119/plaws/publ21/PLAW-119publ21.pdf" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jul 2, 2025</span><div class="x"><strong>Proposed rescission of 2024 Farmworker Protection Rule.</strong> DOL proposed rescinding most of the April 29, 2024 rule; WHD had suspended enforcement of its new provisions on June 20, 2025. <a href="https://www.dol.gov/agencies/whd/agriculture/h2a/nprm" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Apr 28, 2025</span><div class="x"><strong>English proficiency for truck drivers.</strong> Under Executive Order 14286, petitions for commercial motor vehicle jobs that require English must show named workers are proficient. <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/h-2a-temporary-agricultural-workers" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jan 17, 2025</span><div class="x"><strong>H-2 modernization rule takes effect.</strong> Adds grace periods and portability, whistleblower protections, stronger penalties for prohibited fees, a uniform 60-day absence to reset the 3-year limit, and ends the eligible-countries list. <a href="https://www.uscis.gov/archive/dhs-helps-companies-fill-more-jobs-strengthens-worker-protections-in-the-h-2-programs-with-final" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Apr 29, 2024</span><div class="x"><strong>Farmworker Protection Rule published.</strong> Added worker-voice and anti-retaliation protections to H-2A; WHD suspended enforcement of its new provisions on June 20, 2025. <a href="https://www.dol.gov/agencies/whd/agriculture/h2a/nprm" target="_blank" rel="noopener">Source ↗</a></div></li></ul> <div class="vt-disc">This page is general reference material compiled from the official sources above and is not legal advice. Eligibility depends on individual facts; rules and fees change, so confirm with the agency before you file. VisaTypes.com is not affiliated with USCIS, the Department of State or any government agency. Spotted an error? <a href="/corrections?page=/visa/h-2a">Tell us</a>.</div> </article></section></div> <script type="application/ld+json">[{"\u0040context": "https://schema.org", "\u0040type": "BreadcrumbList", "itemListElement": [{"\u0040type": "ListItem", "position": 1, "name": "Home", "item": "https://visatypes.com/"}, {"\u0040type": "ListItem", "position": 2, "name": "Work & business", "item": "https://visatypes.com/work-visas"}, {"\u0040type": "ListItem", "position": 3, "name": "H-2A", "item": "https://visatypes.com/visa/h-2a"}]}, {"\u0040context": "https://schema.org", "\u0040type": "FAQPage", "mainEntity": [{"\u0040type": "Question", "name": "Is there a cap on H-2A visas?", "acceptedAnswer": {"\u0040type": "Answer", "text": "No. There is no annual numerical limit, but every petition needs an approved Department of Labor temporary labor certification."}}, {"\u0040type": "Question", "name": "What wage must H-2A workers be paid?", "acceptedAnswer": {"\u0040type": "Answer", "text": "At least the highest applicable rate, which includes the Adverse Effect Wage Rate set by DOL. The AEWR method changed on Oct. 2, 2025 and is now under a court-ordered rewrite; employers may later owe adjustment payments for the interim period."}}, {"\u0040type": "Question", "name": "How long can an H-2A worker stay?", "acceptedAnswer": {"\u0040type": "Answer", "text": "For the period on the labor certification, with extensions of up to one year at a time, to a maximum of 3 years. The worker must then remain outside the U.S. for 60 uninterrupted days before returning in H-2A status."}}, {"\u0040type": "Question", "name": "Can H-2A workers change employers?", "acceptedAnswer": {"\u0040type": "Answer", "text": "Yes, through a new employer’s petition. Under the January 2025 rule, eligible workers can start with the new employer as soon as it properly files the petition."}}]}]</script> <script>(function(){var l=[].slice.call(document.querySelectorAll('.vt-toc a'));if(!l.length||!window.IntersectionObserver)return;var m={};l.forEach(function(a){m[a.getAttribute('href').slice(1)]=a});var cur=null;function on(id){if(cur)cur.classList.remove('on');cur=m[id];if(cur)cur.classList.add('on')}on(l[0].getAttribute('href').slice(1));var io=new IntersectionObserver(function(es){es.forEach(function(x){if(x.isIntersecting)on(x.target.id)})},{rootMargin:'0px 0px -70% 0px'});Object.keys(m).forEach(function(id){var el=document.getElementById(id);el&&io.observe(el)})})();</script>