<div class="vt" data-vt-cat="family-visas" data-vt-code="CR-1"> <div class="vt-crumbs"><nav class="vt-wrap" aria-label="Breadcrumb"><a href="/">Home</a><span>›</span><a href="/family-visas">Family</a><span>›</span><span>CR-1</span></nav></div> <section class="vt-dhead"><div class="vt-wrap"> <div class="vt-badges"><span>Immigrant</span><span>Immediate relative</span><span>Conditional residence</span><span>Form I-130</span><span>Form I-751</span></div> <h1><span>CR-1</span> Conditional Spouse of a U.S. Citizen</h1> <p class="vt-lede">An immigrant visa for the foreign spouse of a U.S. citizen when the marriage is less than 2 years old at visa issuance; it leads to a 2-year conditional Green Card.</p> <div class="vt-dmeta"><span>Last reviewed <strong>Oct 1, 2026</strong></span><span>Sources: USCIS · Department of State</span><a href="/corrections?page=/visa/cr-1">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">After arrival</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">After you arrive</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>Who files</dt><dd>U.S. citizen spouse, Form I-130</dd></div><div><dt>Marriage length</dt><dd>Under 2 years when the visa is issued</dd></div><div><dt>Green Card</dt><dd>Conditional, valid 2 years</dd></div><div><dt>Remove conditions</dt><dd>Form I-751 in the last 90 days</dd></div><div><dt>I-751 fee</dt><dd><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$750 paper / $700 online</a></dd></div><div><dt>Visa fee</dt><dd><a href="https://www.ecfr.gov/current/title-22/chapter-I/subchapter-C/part-22/section-22.1" target="_blank" rel="noopener">$325</a></dd></div></dl></div> <div class="vt-callout"><strong>Entry restrictions for 39 nationalities.</strong> Under <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">Proclamation 10998</a> (effective Jan. 1, 2026), immigrant entry is suspended for nationals of all 39 listed countries and for Palestinian Authority travel-document holders, and family members of people in the United States are no longer a categorical exception. Remaining exceptions include dual nationals travelling on a non-listed country’s passport and case-by-case national-interest exceptions; the proclamation applies to people outside the United States without a valid visa on the effective date. A separate State Department pause on immigrant visa issuance to nationals of 75 countries (from Jan. 21, 2026) is, per the <a href="https://travel.state.gov/content/travel/en/News/visas-news/immigrant-visa-processing-updates-for-nationalities-at-high-risk-of-public-benefits-usage.html" target="_blank" rel="noopener">State Department</a>, no longer in effect as of Aug. 21, 2026 following the court’s order in CLINIC v. Rubio.</div> <h2 id="overview" class="s">Overview</h2> <p class="b">The CR-1 is the immigrant visa for a citizen’s spouse whose marriage is less than two years old on the day the visa is issued. INA 216, added by the Immigration Marriage Fraud Amendments of 1986, makes residence based on a recent marriage conditional (<a href="https://fam.state.gov/FAM/09FAM/09FAM050202.html" target="_blank" rel="noopener">9 FAM 502.2-2(D)</a>).</p> <p class="b">Apart from the conditional status, the process is identical to the IR-1: the same I-130, the same National Visa Center steps and fees, and no wait for a visa number because spouses of citizens are immediate relatives.</p> <p class="b">The conditional Green Card expires after 2 years. To keep permanent residence, the couple must file Form I-751 jointly in the 90 days before it expires, or the immigrant must file alone with a waiver (<a href="https://www.uscis.gov/green-card/after-we-grant-your-green-card/conditional-permanent-residence/removing-conditions-on-permanent-residence-based-on-marriage" target="_blank" rel="noopener">USCIS</a>).</p> <h2 id="qualify" class="s">Who qualifies</h2> <h3 class="s">The petitioner and spouse must</h3> <ul class="b"><li>Petitioner is a U.S. citizen.</li><li>The marriage is legally valid, recognized for immigration purposes and bona fide.</li><li>The marriage is less than 2 years old when the visa is issued (otherwise IR-1).</li><li>The spouse is admissible, or eligible for a waiver.</li></ul> <h3 class="s">Financial sponsorship</h3> <ul class="b"><li>The petitioner must sign Form I-864 and show income of at least 125% of the HHS poverty guidelines — for a household of two in the 48 contiguous states, <a href="https://www.uscis.gov/i-864p" target="_blank" rel="noopener">$27,050</a> under the guidelines effective March 1, 2026 (100%, or $21,640, for active-duty military petitioning for a spouse or child). A joint sponsor may be used if the petitioner’s income is insufficient. The affidavit is a legally enforceable contract.</li></ul> <h2 id="duration" class="s">Duration & extensions</h2> <table class="vt-kv"><tbody><tr><th scope="row">Conditional residence</th><td>2 years from admission</td></tr><tr><th scope="row">I-751 filing window</th><td>The 90 days before the card expires (joint filing)</td></tr><tr><th scope="row">While I-751 is pending</th><td>The receipt notice extends the card for 48 months past its expiration date (<a href="https://www.uscis.gov/green-card/after-we-grant-your-green-card/conditional-permanent-residence/removing-conditions-on-permanent-residence-based-on-marriage" target="_blank" rel="noopener">USCIS</a>)</td></tr><tr><th scope="row">After approval</th><td>10-year Green Card</td></tr><tr><th scope="row">Naturalization</th><td>After 3 years as an LPR if married to and living with the citizen spouse</td></tr></tbody></table> <h2 id="fees" class="s">Fees</h2> <p class="vt-feesintro">USCIS fees from the 10/01/26 fee schedule; State Department fees from 22 CFR 22.1.</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-130 petition</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$675 paper / $625 online</a></td><td>U.S. citizen</td><td>One petition per beneficiary.</td></tr> <tr><td>Immigrant visa application fee</td><td class="amt"><a href="https://www.ecfr.gov/current/title-22/chapter-I/subchapter-C/part-22/section-22.1" target="_blank" rel="noopener">$325</a></td><td>Beneficiary</td><td>Immediate relative and family preference applications, 22 CFR 22.1 item 32(a); paid through the National Visa Center.</td></tr> <tr><td>Affidavit of Support review</td><td class="amt"><a href="https://www.ecfr.gov/current/title-22/chapter-I/subchapter-C/part-22/section-22.1" target="_blank" rel="noopener">$120</a></td><td>Sponsor</td><td>Charged only when the I-864 is reviewed domestically (22 CFR 22.1 item 34).</td></tr> <tr><td>USCIS Immigrant Fee</td><td class="amt"><a href="https://www.uscis.gov/forms/filing-fees/uscis-immigrant-fee" target="_blank" rel="noopener">$235</a></td><td>Immigrant</td><td>Paid online after visa issuance; the Green Card is not produced until it is paid.</td></tr> <tr><td>Panel-physician medical exam</td><td class="amt">Varies</td><td>Beneficiary</td><td>Paid directly to the panel physician.</td></tr> <tr><td>Form I-485 (if in the U.S.)</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$1,440 paper / $1,390 online</a></td><td>Beneficiary</td><td>Instead of the visa and Immigrant Fee; $950/$900 for a child under 14 filing with a parent. Only the <a href="https://www.uscis.gov/i-485" target="_blank" rel="noopener">09/18/26 edition</a> is accepted for filings on or after Sept. 18, 2026.</td></tr> <tr><td>Form I-751 (removal of conditions)</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$750 paper / $700 online</a></td><td>Immigrant</td><td>$0 for a waiver based on battery or extreme cruelty.</td></tr> </tbody></table></div> <p class="vt-foot">The $250 Visa Integrity Fee in Public Law 119-21 applies only to nonimmigrant visas.</p> <h2 id="processing" class="s">Processing time</h2> <dl class="vt-cards"><div><dt>Visa number wait</dt><dd>None</dd><dd class="n">An immigrant visa is always available for immediate relatives.</dd></div></dl> <p class="b">I-130 times vary by office and are published at <a href="https://egov.uscis.gov/processing-times/" target="_blank" rel="noopener">egov.uscis.gov/processing-times</a>. National Visa Center and consular interview scheduling times are separate and vary by post.</p> <h2 id="steps" class="s">Application steps</h2> <ol class="vt-steps"><li><span class="num">1</span><div><div class="tt">File Form I-130</div><div class="tx">The citizen files Form I-130 with Form I-130A, selecting consular processing.</div></div></li><li><span class="num">2</span><div><div class="tt">National Visa Center</div><div class="tx">Pay the $325 visa fee and submit DS-260, civil documents and Form I-864.</div></div></li><li><span class="num">3</span><div><div class="tt">Interview and visa</div><div class="tx">After the medical exam and interview, the consulate issues a CR-1 if the marriage is under 2 years old.</div></div></li><li><span class="num">4</span><div><div class="tt">Enter as a conditional resident</div><div class="tx">Pay the $235 Immigrant Fee; the 2-year Green Card is mailed after admission.</div></div></li><li><span class="num">5</span><div><div class="tt">File Form I-751</div><div class="tx">File jointly in the 90 days before the card expires, with evidence the marriage continued; USCIS may interview.</div></div></li><li><span class="num">6</span><div><div class="tt">Receive the 10-year card</div><div class="tx">Approval removes the conditions.</div></div></li></ol> <h2 id="documents" class="s">Required documents</h2> <div class="vt-docs"><div><h3>From the U.S. citizen</h3><ul><li><span>Proof of citizenship (birth certificate, naturalization certificate, CRBA or passport).</span></li><li><span>Marriage certificate and proof prior marriages ended.</span></li><li><span>Evidence the marriage is bona fide (joint finances, residence, children, communication).</span></li><li><span>Form I-864 with tax returns or transcripts and proof of income.</span></li></ul></div><div><h3>From the spouse</h3><ul><li><span>Passport, birth certificate and police certificates.</span></li><li><span>Form DS-260 confirmation.</span></li><li><span>Panel physician’s medical report.</span></li></ul></div></div> <h2 id="dependents" class="s">Dependents & family</h2> <p class="b">The CR-1 has no derivatives. The spouse’s children need their own Form I-130; stepchildren whose relationship is based on a marriage under 2 years old receive CR-2 visas and also remove conditions with Form I-751.</p> <h2 id="greencard" class="s">After you arrive</h2> <p class="b">CR-1 immigrants are permanent residents from admission, but their status ends automatically if conditions are not removed on time.</p> <div class="vt-gsteps"><div><div class="k">Step 1</div><div class="tt">Joint I-751</div><div class="tx">Filed by both spouses in the 90-day window; a late filing needs a written explanation of good cause.</div></div><div><div class="k">Step 2</div><div class="tt">Waiver filing</div><div class="tx">Filed alone, before or after the 90-day window and up until a final removal order, if the spouse died, the good-faith marriage ended in divorce or annulment, there was battery or extreme cruelty, or removal would cause extreme hardship (<a href="https://www.uscis.gov/green-card/after-we-grant-your-green-card/conditional-permanent-residence/removing-conditions-on-permanent-residence-based-on-marriage" target="_blank" rel="noopener">USCIS</a>).</div></div><div><div class="k">Step 3</div><div class="tt">Missed deadline</div><div class="tx">Status terminates automatically and USCIS issues a Notice to Appear.</div></div></div> <p class="b">Children who became conditional residents at the same time as the parent, or within 90 days, can be included on the parent’s I-751 (<a href="https://www.uscis.gov/green-card/after-we-grant-your-green-card/conditional-permanent-residence/removing-conditions-on-permanent-residence-based-on-marriage" target="_blank" rel="noopener">USCIS</a>).</p> <h2 id="related" class="s">Related visas</h2> <div class="vt-rel"><a href="/visa/ir-1"><div class="c">IR-1</div><div class="n">Spouse married 2+ years</div><div class="tx">Same process with an unconditional 10-year card.</div></a><a href="/visa/k-1"><div class="c">K-1 / K-2</div><div class="n">Fiancé(e) of a U.S. citizen</div><div class="tx">Marry in the U.S. and adjust status instead.</div></a><a href="/visa/k-3"><div class="c">K-3 / K-4</div><div class="n">Spouse (nonimmigrant)</div><div class="tx">Rarely issued alternative while the I-130 is pending.</div></a><a href="/visa/ir-2"><div class="c">IR-2 / CR-2</div><div class="n">Child or stepchild of a U.S. citizen</div><div class="tx">CR-2 for stepchildren through a recent marriage.</div></a><a href="/visa/f2a"><div class="c">F2A</div><div class="n">Spouse of a permanent resident</div><div class="tx">If the petitioner is not yet a citizen.</div></a></div> <h2 id="faq" class="s">Common questions</h2> <div class="vt-faq"><details><summary>When exactly do I file Form I-751?</summary><p>In the 90 days immediately before the 2-year card expires, if filing jointly. Filing earlier may be rejected; a waiver filing can be made before or after that window, up until a final removal order.</p></details><details><summary>What if we divorce before removing conditions?</summary><p>The immigrant can file Form I-751 alone with a waiver request, showing the marriage was entered in good faith.</p></details><details><summary>Can I travel and work while the I-751 is pending?</summary><p>Yes. The I-751 receipt notice, with the expired card, serves as evidence of status for 48 months past the card’s expiration date.</p></details><details><summary>Can we avoid conditional status?</summary><p>Only by having the visa issued after the second wedding anniversary; the classification depends on marriage length at issuance.</p></details></div> <h2 id="sources" class="s">Official sources</h2> <ul class="vt-src"><li><a href="https://www.uscis.gov/i-130" target="_blank" rel="noopener"><span><strong>USCIS</strong> · I-130, Petition for Alien Relative</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.uscis.gov/green-card/after-we-grant-your-green-card/conditional-permanent-residence/removing-conditions-on-permanent-residence-based-on-marriage" target="_blank" rel="noopener"><span><strong>USCIS</strong> · Removing Conditions on Permanent Residence Based on Marriage</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.uscis.gov/i-751" target="_blank" rel="noopener"><span><strong>USCIS</strong> · I-751, Petition to Remove Conditions on Residence</span><span>uscis.gov ↗</span></a></li><li><a href="https://fam.state.gov/FAM/09FAM/09FAM050202.html" target="_blank" rel="noopener"><span><strong>Department of State</strong> · 9 FAM 502.2 — Family-Based IV Classifications</span><span>fam.state.gov ↗</span></a></li><li><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener"><span><strong>USCIS</strong> · Form G-1055, Fee Schedule (edition 10/01/26)</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.ecfr.gov/current/title-22/chapter-I/subchapter-C/part-22/section-22.1" target="_blank" rel="noopener"><span><strong>eCFR</strong> · 22 CFR 22.1 — Schedule of fees for consular services</span><span>ecfr.gov ↗</span></a></li><li><a href="https://www.uscis.gov/i-864p" target="_blank" rel="noopener"><span><strong>USCIS</strong> · I-864P, HHS Poverty Guidelines for Affidavit of Support</span><span>uscis.gov ↗</span></a></li><li><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"><span><strong>White House</strong> · Proclamation 10998: Restricting and Limiting the Entry of Foreign Nationals</span><span>whitehouse.gov ↗</span></a></li></ul> <h2 id="changes" class="s">Recent changes</h2> <ul class="vt-chg"><li><span class="d">Aug 31, 2026</span><div class="x"><strong>New Form I-864 edition (08/24/26) required from Oct. 1, 2026.</strong> USCIS published a new edition of the Affidavit of Support with a credit-report privacy release. After a 30-day grace period, USCIS accepts only the 08/24/26 edition for filings postmarked or submitted on or after Oct. 1, 2026. <a href="https://www.uscis.gov/i-864" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Aug 24, 2026</span><div class="x"><strong>Court enjoins USCIS adjudication holds for nationals of 39 countries.</strong> In Red Eagle Law v. Edlow (N.D. Cal.), the court enjoined PM-602-0192 and PM-602-0194 and certified a class; USCIS says it will adjudicate covered applications in the normal course while litigation continues. <a href="https://www.uscis.gov/newsroom/alerts/recent-court-order-on-hold-policies" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Aug 21, 2026</span><div class="x"><strong>75-country immigrant visa issuance pause no longer in effect.</strong> The State Department paused immigrant visa issuance to nationals of 75 countries from Jan. 21, 2026, citing public-charge review. Following the court’s order in CLINIC v. Rubio, the State Department says the pause is no longer in effect as of Aug. 21, 2026. <a href="https://travel.state.gov/content/travel/en/News/visas-news/immigrant-visa-processing-updates-for-nationalities-at-high-risk-of-public-benefits-usage.html" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jul 20, 2026</span><div class="x"><strong>DHS rescinds the 2022 public charge rule (effective Sept. 18, 2026).</strong> Final rule restoring broader officer discretion in public charge determinations. It applies to applications for admission made, and adjustment applications postmarked or submitted, on or after Sept. 18, 2026. <a href="https://www.federalregister.gov/documents/2026/07/20/2026-14539/public-charge-ground-of-inadmissibility" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jun 5, 2026</span><div class="x"><strong>Court vacates USCIS hold policies on pending applications.</strong> In Dorcas International Institute of Rhode Island v. USCIS (D.R.I.), the court vacated PM-602-0192, PM-602-0194 and PA-2025-26 (final judgment June 11, 2026). USCIS says it will follow the order pending possible further review. <a href="https://www.uscis.gov/newsroom/alerts/court-order-on-hold-policies" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Dec 16, 2025</span><div class="x"><strong>Proclamation 10998 expands entry restrictions to 39 countries (effective Jan. 1, 2026).</strong> Suspends immigrant entry for nationals of every listed country and removes the broad family-based immigrant visa exception that Proclamation 10949 had contained; remaining exceptions are narrow, plus case-by-case national-interest exceptions. <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">Source ↗</a></div></li><li><span class="d">Oct 17, 2025</span><div class="x"><strong>Policy alert PA-2025-23 on spousal petitions.</strong> USCIS Policy Manual guidance on which marriages are recognized (including proxy and virtual marriages) and on reviewing marriage bona fides at both the petition and adjustment stages; effective immediately for pending and new petitions. <a href="https://www.uscis.gov/sites/default/files/document/policy-manual-updates/20251017-RecognizedMarriages.pdf" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Aug 1, 2025</span><div class="x"><strong>USCIS family-based petition guidance.</strong> Policy Manual update on screening, interviews and decisions for family-based petitions; clarifies that USCIS may issue a Notice to Appear if a beneficiary is otherwise removable, because an I-130 grants no status. <a href="https://www.uscis.gov/newsroom/alerts/uscis-issues-guidance-regarding-family-based-immigration-policy" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jun 4, 2025</span><div class="x"><strong>Proclamation 10949 restricts entry from 19 countries (effective June 9, 2025).</strong> Originally exempted immediate-relative immigrant visas (IR-1/CR-1, IR-2/CR-2, IR-5) with clear and convincing evidence of the relationship, and adoption visas (IR-3, IR-4, IH-3, IH-4). Those exceptions were superseded by Proclamation 10998. <a href="https://www.whitehouse.gov/presidential-actions/2025/06/restricting-the-entry-of-foreign-nationals-to-protect-the-united-states-from-foreign-terrorists-and-other-national-security-and-public-safety-threats/" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Apr 1, 2024</span><div class="x"><strong>USCIS fee rule takes effect.</strong> The fee schedule final rule (89 FR 6194, published Jan. 31, 2024) set current family-based fees, including separate online and paper fees for Form I-130 and folding biometrics into the filing fees. <a href="https://www.federalregister.gov/documents/2024/01/31/2024-01427/us-citizenship-and-immigration-services-fee-schedule-and-changes-to-certain-other-immigration" 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/cr-1">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": "Family", "item": "https://visatypes.com/family-visas"}, {"\u0040type": "ListItem", "position": 3, "name": "CR-1", "item": "https://visatypes.com/visa/cr-1"}]}, {"\u0040context": "https://schema.org", "\u0040type": "FAQPage", "mainEntity": [{"\u0040type": "Question", "name": "When exactly do I file Form I-751?", "acceptedAnswer": {"\u0040type": "Answer", "text": "In the 90 days immediately before the 2-year card expires, if filing jointly. Filing earlier may be rejected; a waiver filing can be made before or after that window, up until a final removal order."}}, {"\u0040type": "Question", "name": "What if we divorce before removing conditions?", "acceptedAnswer": {"\u0040type": "Answer", "text": "The immigrant can file Form I-751 alone with a waiver request, showing the marriage was entered in good faith."}}, {"\u0040type": "Question", "name": "Can I travel and work while the I-751 is pending?", "acceptedAnswer": {"\u0040type": "Answer", "text": "Yes. The I-751 receipt notice, with the expired card, serves as evidence of status for 48 months past the card’s expiration date."}}, {"\u0040type": "Question", "name": "Can we avoid conditional status?", "acceptedAnswer": {"\u0040type": "Answer", "text": "Only by having the visa issued after the second wedding anniversary; the classification depends on marriage length at issuance."}}]}]</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>