(a) The reasonable costs incurred in judicial proceedings under this title shall be paid by the subject of the proceedings or the subject's estate or by the subject's responsible relatives and shall be a charge upon the estate of those liable.
(b) The reasonable costs incurred in judicial proceedings filed by the chief officer of a department facility to have a guardian or conservator appointed under title 34, shall be paid by the subject of the proceedings in conformity with that law.
(c)
(1) If a subject of proceedings under this title is indigent and does not have responsible relatives able to pay the costs or if a subject of guardianship or conservatorship proceedings filed by the chief officer of a department facility is indigent under the guardianship or conservatorship law under title 34, the state shall pay the costs.
(2) For the purpose of subdivision (c)(1), the supreme court shall prescribe by rule the nature of costs for which reimbursement may be allowed, and limitations on and conditions for reimbursement of costs as it deems appropriate in the public interest, subject to this section. The rules shall also specify the form and content of applications for reimbursement of costs to be filed under this section. The administrative director of the courts shall administer this subsection (c) and rules adopted under this subsection (c), and shall audit and review all applications for reimbursement of costs. Upon finding payment to be in order, the administrative director of the courts shall process the payment from money appropriated for that purpose.
(d) In any case where the subject of the proceedings is judicially determined not to be involuntarily hospitalized, committed, or transferred, the costs may be taxed against the person who seeks hospitalization, commitment, or transfer of the subject of the proceedings.
(e) The court may require any petitioner to file an undertaking with surety to be approved by the court in an amount the court considers proper to assure the payment of costs and expenses and to save harmless the respondent by reason of costs incurred, including attorney's fees, if any, and damages suffered by the respondent as a result of the action.
(f) Witnesses subpoenaed to appear in proceedings held under this title shall be paid fees and mileage as provided by law for witnesses generally.