Except as provided in subdivision 2, no dissolution shall be granted unless:
(1) one of the parties has resided in this state, or has been a member of the armed services stationed in this state, for not less than 180 days immediately preceding the commencement of the proceeding; or
(2) one of the parties has been a domiciliary of this state for not less than 180 days immediately preceding commencement of the proceeding.
(a) If neither party to the civil marriage is a resident of this state at the commencement of the proceeding, a court of this state has jurisdiction over the dissolution if:
(1) the civil marriage was performed in this state; and
(2) neither party to the civil marriage resides in a jurisdiction that will maintain an action for dissolution by the parties because of the sex or sexual orientation of the spouses.
(b) There is a rebuttable presumption that a jurisdiction will not maintain an action for dissolution if the jurisdiction does not recognize the civil marriage.
(c) An action for dissolution authorized by this subdivision must be adjudicated in accordance with the laws of this state.