diff --git a/Fable.Form.Simple.Bulma/components/fieldset.html b/Fable.Form.Simple.Bulma/components/fieldset.html index a3151ff..dde70b9 100644 --- a/Fable.Form.Simple.Bulma/components/fieldset.html +++ b/Fable.Form.Simple.Bulma/components/fieldset.html @@ -1,4 +1,4 @@ -Fable.Form · Fieldset / Groups

Wraps a list of fields inside of a group with a label on top.


Showcase

Teacher

Code

<!-- Wrap your field in a fieldset with the class 'fieldset' -->
+Fable.Form · Fieldset / Groups

Wraps a list of fields inside of a group with a label on top.


Showcase

Teacher

Code

<!-- Wrap your field in a fieldset with the class 'fieldset' -->
 <fieldset class="fieldset">
     <!-- Use the the legend element to control what text to show at the top of the group -->
     <legend>Teacher</legend>
diff --git a/Fable.Form.Simple.Bulma/components/form-list.html b/Fable.Form.Simple.Bulma/components/form-list.html
index 7ff3978..435cf0f 100644
--- a/Fable.Form.Simple.Bulma/components/form-list.html
+++ b/Fable.Form.Simple.Bulma/components/form-list.html
@@ -1,4 +1,4 @@
-Fable.Form · Form list

Wraps a list of fields inside of a box.


Showcase

Code


 <!-- Wrap your fields in a div with the class 'form-list' -->
 <div class="form-list">
diff --git a/Fable.Form.Simple.Bulma/installation.html b/Fable.Form.Simple.Bulma/installation.html
index 48b1d18..b88c447 100644
--- a/Fable.Form.Simple.Bulma/installation.html
+++ b/Fable.Form.Simple.Bulma/installation.html
@@ -1,4 +1,4 @@
-Fable.Form · Installation

Fable.Form.Simple offers custom fields that are not supported by default by Bulma.

In order, to support them, Fable.Form.Simple.Bulma comes with an npm package fable-form-simple-bulma that you need to install.

  • Add the NuGet package to your project

    # .NET CLI
    +Fable.Form · Installation

    Fable.Form.Simple offers custom fields that are not supported by default by Bulma.

    In order, to support them, Fable.Form.Simple.Bulma comes with an npm package fable-form-simple-bulma that you need to install.

    • Add the NuGet package to your project

      # .NET CLI
       dotnet add yourProject.fsproj package Fable.Form.Simple.Bulma
       
       # Paket CLI
      diff --git a/Fable.Form.Simple/customisation.html b/Fable.Form.Simple/customisation.html
      index d8267dc..d169f11 100644
      --- a/Fable.Form.Simple/customisation.html
      +++ b/Fable.Form.Simple/customisation.html
      @@ -1,4 +1,4 @@
      -Fable.Form · Custom view templates

      Fable.Form.Simple allows you to adapt the view code to make your form match your application looks.

      If you are using Bulma in your application you should use Fable.Form.Simple.Bulma.

      However, if you need to customize the view code, you should start from this file structure:

      // Have the name of your implementation as a suffix of Fable.Form.Simple
      +Fable.Form · Custom view templates

      Fable.Form.Simple allows you to adapt the view code to make your form match your application looks.

      If you are using Bulma in your application you should use Fable.Form.Simple.Bulma.

      However, if you need to customize the view code, you should start from this file structure:

      // Have the name of your implementation as a suffix of Fable.Form.Simple
       namespace Fable.Form.Simple.MyImplementation
       
       // Force the user to use qualified access from here
      diff --git a/Fable.Form.Simple/features.html b/Fable.Form.Simple/features.html
      index 0077d06..e90012c 100644
      --- a/Fable.Form.Simple/features.html
      +++ b/Fable.Form.Simple/features.html
      @@ -1 +1 @@
      -Fable.Form · Features

      Here is a list of all the fields supported by Fable.Form.Simple:

      Standard HTML fields

      • Text input
        • Password
        • Email
        • Raw
      • Textarea
      • Radio button
      • Checkbox
      • Select

      Custom fields

      Group

      Wraps a form in a group.

      It can result in rendering the fields differently. For example, Fable.Form.Simple.Feliz renders groups of field horizontally

      See sign-up example

      Section

      Wraps a form in a section an area with a title.

      See dynamic example

      List of form

      Build a variable list of forms, which support adding and removing form.

      See form list

      Custom action

      Fable.Form.Simple supports to type of Action:

      • SubmitOnly of string: which generates a submit button with the provided label

      • Custom of (State -> Elmish.Dispatch<'Msg> -> ReactElement): which allows you full control over the action area.

        This makes it possible for you to add a submit button and a cancel button for example.

        You can also use this feature to customize the look of the action area if the default is not good for you.

        When using, the custom option make sure to have a button of type <button type="submit"></button> so the form can capture the submit event.

        See Custom actions example for a demo.

      \ No newline at end of file +Fable.Form · Features

      Here is a list of all the fields supported by Fable.Form.Simple:

      Standard HTML fields

      • Text input
        • Password
        • Email
        • Raw
      • Textarea
      • Radio button
      • Checkbox
      • Select

      Custom fields

      Group

      Wraps a form in a group.

      It can result in rendering the fields differently. For example, Fable.Form.Simple.Feliz renders groups of field horizontally

      See sign-up example

      Section

      Wraps a form in a section an area with a title.

      See dynamic example

      List of form

      Build a variable list of forms, which support adding and removing form.

      See form list

      Custom action

      Fable.Form.Simple supports to type of Action:

      • SubmitOnly of string: which generates a submit button with the provided label

      • Custom of (State -> Elmish.Dispatch<'Msg> -> ReactElement): which allows you full control over the action area.

        This makes it possible for you to add a submit button and a cancel button for example.

        You can also use this feature to customize the look of the action area if the default is not good for you.

        When using, the custom option make sure to have a button of type <button type="submit"></button> so the form can capture the submit event.

        See Custom actions example for a demo.

      \ No newline at end of file diff --git a/Fable.Form/how_to_use.html b/Fable.Form/how_to_use.html index 6a9590a..46f7f16 100644 --- a/Fable.Form/how_to_use.html +++ b/Fable.Form/how_to_use.html @@ -1,4 +1,4 @@ -Fable.Form · How to use ?

      In this section, we are going to focus on the easiest way to use Fable.Form.

      We are going to create a login form similar to this one

      We are assuming that you already have an Elmish application set up with Bulma

      If needed, you can use Fulma minimal template as a starting point

      Later, it will be explained how you can customise the view to fit your application style.

      • Add Fable.Form.Simple.Bulma to your project

        # .NET CLI
        +Fable.Form · How to use ?

        In this section, we are going to focus on the easiest way to use Fable.Form.

        We are going to create a login form similar to this one

        We are assuming that you already have an Elmish application set up with Bulma

        If needed, you can use Fulma minimal template as a starting point

        Later, it will be explained how you can customise the view to fit your application style.

        • Add Fable.Form.Simple.Bulma to your project

          # .NET CLI
           dotnet add yourProject.fsproj package Fable.Form.Simple.Bulma
           
           # Paket CLI
          diff --git a/Fable.Form/use_what_you_need.html b/Fable.Form/use_what_you_need.html
          index 85cd807..c381bd4 100644
          --- a/Fable.Form/use_what_you_need.html
          +++ b/Fable.Form/use_what_you_need.html
          @@ -1 +1 @@
          -Fable.Form · Use what you need

          Fable.Form has been designed with modularity/customisation in mind.

          It consist of 3 layers:

          1. A core library defining the Base types and functions needed to represents / manipulate a form.

            This correspond to Fable.Form

          2. A logic library, which implements how a form is represented, what fields are supported.

            This correspond to Fable.Form.Simple

          3. A view library, whichs implements how a form should be rendered.

            This correspond to Fable.Form.Simple.Bulma

          Only Fable.Form is mandatory, see below how to choose what you should use depending on your needs.

          What should I use?

          Click here to see the list of supported field by Fable.Form.Simple

          What to use schema

          \ No newline at end of file +Fable.Form · Use what you need

          Fable.Form has been designed with modularity/customisation in mind.

          It consist of 3 layers:

          1. A core library defining the Base types and functions needed to represents / manipulate a form.

            This correspond to Fable.Form

          2. A logic library, which implements how a form is represented, what fields are supported.

            This correspond to Fable.Form.Simple

          3. A view library, whichs implements how a form should be rendered.

            This correspond to Fable.Form.Simple.Bulma

          Only Fable.Form is mandatory, see below how to choose what you should use depending on your needs.

          What should I use?

          Click here to see the list of supported field by Fable.Form.Simple

          What to use schema

          \ No newline at end of file diff --git a/changelogs/Fable.Form.Simple.Bulma.html b/changelogs/Fable.Form.Simple.Bulma.html index 50e27a7..09966f2 100644 --- a/changelogs/Fable.Form.Simple.Bulma.html +++ b/changelogs/Fable.Form.Simple.Bulma.html @@ -1 +1 @@ -Fable.Form · Fable.Form.Simple.Bulma
          • 4.0.0Jun 2022
          • Changed
          • Upgrade to Fable 4 and Feliz 2

          • 3.0.0Mar 2022
          • Added
          • Fix #24: Allows to customise the actions of the form.

          • 2.0.0Oct 2021
          • Added
          • Add support for more field type:

            • Color
            • Date
            • DateTimeLocal
            • Email
            • Number
            • Search
            • Tel
            • Time
          • Allow to pass any attributes to an input field using the new HtmlAttributes property

          • 1.1.0Jun 2021
          • Changed
          • Lower FSharp.Core requirement

          • 1.0.1May 2021
          • Fixed
          • Publish the *.fsi fiels inside fable folder

          • 1.0.0May 2021
          • Added
          • Initial release

          \ No newline at end of file +Fable.Form · Fable.Form.Simple.Bulma
          • 4.1.0Feb 2024
          • Added
          • Add FileField (by @amine-mejaouel) (GH-43)

          • 4.0.0Jun 2022
          • Changed
          • Upgrade to Fable 4 and Feliz 2

          • 3.0.0Mar 2022
          • Added
          • Fix #24: Allows to customise the actions of the form.

          • 2.0.0Oct 2021
          • Added
          • Add support for more field type:

            • Color
            • Date
            • DateTimeLocal
            • Email
            • Number
            • Search
            • Tel
            • Time
          • Allow to pass any attributes to an input field using the new HtmlAttributes property

          • 1.1.0Jun 2021
          • Changed
          • Lower FSharp.Core requirement

          • 1.0.1May 2021
          • Fixed
          • Publish the *.fsi fiels inside fable folder

          • 1.0.0May 2021
          • Added
          • Initial release

          \ No newline at end of file diff --git a/changelogs/Fable.Form.Simple.html b/changelogs/Fable.Form.Simple.html index 9fb0a78..f89f699 100644 --- a/changelogs/Fable.Form.Simple.html +++ b/changelogs/Fable.Form.Simple.html @@ -1,4 +1,4 @@ -Fable.Form · Fable.Form.Simple
          • 4.0.0Jun 2022
          • Changed
          • Upgrade to Fable 4 and Feliz 2

          • 3.1.0Jul 2022
          • Fixed
          • Fix #32: Add Form.disable

          • 3.0.0Mar 2022
          • Changed
          • Fix #24: Allows to customise the actions of the form.

          • Here is how to migrate your old code:

                {
            +Fable.Form · Fable.Form.Simple
            • 4.1.0Feb 2024
            • Added
            • Add FileField (by @amine-mejaouel) (GH-43)

            • 4.0.0Jun 2022
            • Changed
            • Upgrade to Fable 4 and Feliz 2

            • 3.1.0Jul 2022
            • Fixed
            • Fix #32: Add Form.disable

            • 3.0.0Mar 2022
            • Changed
            • Fix #24: Allows to customise the actions of the form.

            • Here is how to migrate your old code:

                  {
                       Dispatch = dispatch
                       OnChange = FormChanged
               -       Action = "Sign in"
              diff --git a/changelogs/Fable.Form.html b/changelogs/Fable.Form.html
              index b5625c6..d2c0caa 100644
              --- a/changelogs/Fable.Form.html
              +++ b/changelogs/Fable.Form.html
              @@ -1 +1 @@
              -Fable.Form · Fable.Form
              • 2.0.0Jun 2022
              • Changed
              • Upgrade to Fable 4

              • 1.2.0Jul 2022
              • Fixed
              • Fix #32: Add Form.disable

              • 1.1.0Jun 2021
              • Changed
              • Lower FSharp.Core requirement

              • 1.0.1May 2021
              • Fixed
              • Publish the *.fsi fiels inside fable folder

              • 1.0.0May 2021
              • Added
              • Initial release

              \ No newline at end of file +Fable.Form · Fable.Form
              • 2.0.0Jun 2022
              • Changed
              • Upgrade to Fable 4

              • 1.2.0Jul 2022
              • Fixed
              • Fix #32: Add Form.disable

              • 1.1.0Jun 2021
              • Changed
              • Lower FSharp.Core requirement

              • 1.0.1May 2021
              • Fixed
              • Publish the *.fsi fiels inside fable folder

              • 1.0.0May 2021
              • Added
              • Initial release

              \ No newline at end of file diff --git a/changelogs/fable-form-simple-bulma.html b/changelogs/fable-form-simple-bulma.html index 2f1a1f6..4dc9a8f 100644 --- a/changelogs/fable-form-simple-bulma.html +++ b/changelogs/fable-form-simple-bulma.html @@ -1 +1 @@ -Fable.Form · fable-form-simple-bulma
              • 1.0.0May 2021
              • Added
              • Initial release

              \ No newline at end of file +Fable.Form · fable-form-simple-bulma
              • 1.0.0May 2021
              • Added
              • Initial release

              \ No newline at end of file diff --git a/examples/dist/index.js b/examples/dist/index.js index 695dd25..ee34d2b 100644 --- a/examples/dist/index.js +++ b/examples/dist/index.js @@ -1,6 +1,6 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Jt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Im(e){return e!=null&&typeof e.GetEnumerator=="function"}function $m(e){return e!=null&&typeof e.CompareTo=="function"}function Rm(e){return e!=null&&typeof e.Equals=="function"}function Lm(e){return e!=null&&typeof e.GetHashCode=="function"}function Vm(e){return e!=null&&typeof e.Dispose=="function"}function Ee(e){Vm(e)&&e.Dispose()}function Et(){return null}function Ji(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Om{constructor(t){this.iter=t,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ie(e){return Im(e)?e.GetEnumerator():new Om(e[Symbol.iterator]())}function $o(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function Gt(e,t){let n=e.toString(10);for(;n.lengthon(r));return Ro(n)}else return zs(_n.id(e))}}}function jm(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;re(n)(r);return Zu.set(t,e),t}function Sn(e){return Zu.get(e)??(t=>n=>e(t,n))}function Mr(e){return Zu.get(e)??(t=>n=>r=>e(t,n,r))}function Gm(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ct(r);else if(t===100){n+="; ...";break}else n+="; "+Ct(r);t++}return n+"]"}function Ct(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Gm(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([l,i])=>l+" = "+Ct(i,t+1)).join(` - `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Qm(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ct(t[0]),r=n.indexOf(" ")>=0):n=t.map(l=>Ct(l)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class G{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Qm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>on(n));return t.splice(0,0,zs(this.tag)),Ro(t)}Equals(t){return this===t?!0:Ji(this,t)&&this.tag===t.tag?od(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ji(this,t)?this.tag===t.tag?ud(this.fields,t.fields):this.tagt+" = "+Ct(n)).join(` - `)+" }"}function Xm(e){const t=Object.values(e).map(n=>on(n));return Ro(t)}function Zm(e,t){if(e===t)return!0;if(Ji(e,t)){const n=Object.keys(e);for(let r=0;rt,this.setter=r=>{t=r})}}const Zr=Symbol("numeric");function ad(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zr])}function bm(e,t){return typeof e=="number"||typeof e=="bigint"?et?1:0:e.CompareTo(t)}function js(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zr]().multiply(t)}function Mi(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zr]().toFixed(t)}function qi(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zr]().toPrecision(t)}function bi(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zr]().toExponential(t)}function eo(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zr]().toHex()}class Ur{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return on(this.value)}Equals(t){return t==null?!1:nt(this.value,t instanceof Ur?t.value:t)}CompareTo(t){return t==null?1:qt(this.value,t instanceof Ur?t.value:t)}}function k(e){if(e==null)throw new Error("Option has no value");return e instanceof Ur?e.value:e}function dt(e){return e==null||e instanceof Ur?new Ur(e):e}function to(e,t){return e!=null?k(e):t}function e0(e,t){return e!=null?k(e):t()}function lr(e,t){return t!=null?dt(e(k(t))):void 0}function cd(e){return new W(0,[e])}function fd(e){return new W(1,[e])}class W extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ju(e,t){return t.tag===0?cd(e(t.fields[0])):fd(t.fields[0])}function t0(e,t){return t.tag===0?cd(t.fields[0]):fd(e(t.fields[0]))}let n0=class extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmailAddress"]}};function Lo(e){return e.fields[0]}function Vo(e){return e.indexOf("@")>=0?new W(0,[new n0(e)]):new W(1,["The e-mail address must contain a '@' symbol"])}function r0(e,t){return t.then(n=>Ju(e,n))}class l0{constructor(){}}function i0(){return new l0}function o0(e,t){return{then:(n,r)=>{try{return t().then(n,r)}catch(l){if(r==null)return Promise.reject(l);try{const i=r(l);return Promise.resolve(i)}catch(i){return Promise.reject(i)}}},catch:n=>{try{return t().catch(n)}catch(r){try{const l=n(r);return Promise.resolve(l)}catch(l){return Promise.reject(l)}}}}}function s0(e,t){return t.then(n=>n)}const pc=i0();let u0=class extends O{constructor(t,n,r,l){super(),this.Email=t,this.Name=n,this.Password=r,this.IsProfilePublic=l}};function a0(e){return s0(pc,o0(pc,()=>new Promise(t=>setTimeout(t,1e3)).then(()=>Lo(e)==="warded@mail.com"?Promise.resolve(new W(0,[d0(e)])):Promise.resolve(new W(1,["The e-mail address is taken. Try this one: warded@mail.com"])))))}class c0 extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ValidEmail"]}}function f0(e){return Lo(e.fields[0])}function d0(e){return new c0(e)}class h0 extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function qu(e){return e.fields[0]}function bu(e){return e.length<2?new W(1,["The name must have at least 2 characters"]):new W(0,[new h0(e)])}class p0 extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Password"]}}function ea(e){return e.fields[0]}function ta(e){return e.length<4?new W(1,["The password must have at least 4 characters"]):new W(0,[new p0(e)])}function m0(e,t,n,r){return r0(l=>new u0(l,t,n,r),a0(e))}class hl extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["RequiredFieldIsEmpty","ValidationFailed","External"]}}function na(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Gt(n,2)+":"+Gt(r,2)}function no(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function y0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Gt(e.getFullYear(),4)+"-"+Gt(e.getMonth()+1,2)+"-"+Gt(e.getDate(),2)+"T"+Gt(e.getHours(),2)+":"+Gt(e.getMinutes(),2)+":"+Gt(e.getSeconds(),2)+"."+Gt(e.getMilliseconds(),3)+(n?na(e.getTimezoneOffset()*-6e4):"")}}function g0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+na(t)}function dd(e,t,n){return t.replace(/(\w)\1*/g,r=>{let l=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();l=r.length<4?i%100:i;break;case"M":l=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":l=n?e.getUTCDate():e.getDate();break;case"H":l=n?e.getUTCHours():e.getHours();break;case"h":const o=n?e.getUTCHours():e.getHours();l=o>12?o%12:o;break;case"m":l=n?e.getUTCMinutes():e.getMinutes();break;case"s":l=n?e.getUTCSeconds():e.getSeconds();break;case"f":l=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(l)?r:Gt(l,r.length)})}function w0(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+na(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return no(n,"first");case"T":case"t":return no(n,"second");case"O":case"o":return g0(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return dd(n,t,!0)}function v0(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?no(e,"first"):e.toLocaleDateString();case"T":case"t":return n?no(e,"second"):e.toLocaleTimeString();case"O":case"o":return y0(e,n);default:throw new Error("Unrecognized Date print format")}else return dd(e,t,n)}function hd(e,t,n){return e.offset!=null?w0(e,t):v0(e,t)}function S0(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}const rl=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,E0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function pd(e,t){return bm(e,t)<0}function Il(e){return{input:e,cont:k0(e)}}function md(e,t){return typeof t=="string"?e(t):t.cont(e)}function C0(e){return md(t=>console.log(t),e)}function ro(e){return md(t=>t,e)}function _0(e,t,n,r,l){let i="";if(t=t||"",l=l||"",ad(e))switch(l.toLowerCase()!=="x"&&(pd(e,0)?(e=js(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),l){case"f":case"F":r=r??6,e=Mi(e,r);break;case"g":case"G":e=r!=null?qi(e,r):qi(e);break;case"e":case"E":e=r!=null?bi(e,r):bi(e);break;case"x":e=eo(e);break;case"X":e=eo(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=hd(e):e=Ct(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,s=t.indexOf("-")>=0,u=s||!o?" ":"0";u==="0"?(e=$l(e,n-i.length,u,s),e=i+e):e=$l(i+e,n,u,s)}return e}function yd(e,t,n,r="",l=-1){return(...i)=>{let o=r;const s=t.slice(),u=n.slice();for(const a of i){const[,,f,p,y,w]=u[0];let g=p;if(l>=0)g=l,l=-1;else if(g==="*"){if(a<0)throw new Error("Non-negative number required");l=a;continue}o+=s[0],o+=_0(a,f,g,y,w),s.splice(0,1),u.splice(0,1)}return u.length===0?(o+=s[0],e(o)):yd(e,s,u,o,l)}}function k0(e){return t=>{rl.lastIndex=0;const n=[],r=[];let l=0,i=rl.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(l,o).replace(/%%/g,"%")),r.push(i),l=rl.lastIndex,rl.lastIndex-=1,i=rl.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(l).replace(/%%/g,"%")),yd(t,n,r))}}function x0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(E0,(r,l,i,o,s,u)=>{if(l<0||l>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[l];if(ad(a))switch(s=s==null?null:parseInt(s,10),o){case"f":case"F":s=s??2,a=Mi(a,s);break;case"g":case"G":a=s!=null?qi(a,s):qi(a);break;case"e":case"E":a=s!=null?bi(a,s):bi(a);break;case"p":case"P":s=s??2,a=Mi(js(a,100),s)+" %";break;case"d":case"D":a=s!=null?us(String(a),s,"0"):String(a);break;case"x":case"X":a=s!=null?us(eo(a),s,"0"):eo(a),o==="X"&&(a=a.toUpperCase());break;default:if(u){let f="";a=u.replace(/([0#,]+)(\.[0#]+)?/,(p,y,w)=>{pd(a,0)&&(a=js(a,-1),f="-"),w=w==null?"":w.substring(1),a=Mi(a,Math.max(w.length,0));let[g,v]=a.split(".");v||(v="");const T=y.replace(/,/g,"").replace(/^#+/,"").length;g=us(g,T,"0");const d=w.replace(/#+$/,"").length;if(d>v.length?v=N0(v,d,"0"):d0){const c=g.length%3,m=Math.floor(g.length/3);let S=c>0?g.substr(0,c)+(m>0?",":""):"";for(let F=0;F0?g+"."+v:g}),a=f+a}}else a instanceof Date?a=hd(a,u||o):a=Ct(a);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(a=$l(String(a),Math.abs(i)," ",i<0)),a})}function Oo(e){return typeof e!="string"||e.length===0}function pr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function $l(e,t,n,r){n=n||" ",t=t-e.length;for(let l=0;le.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}const gd="Collection was empty.",A0="The input must be non-negative.",wd="The input sequence has an insufficient number of elements.";function vd(e,t){return typeof e=="function"?new e(t):new Array(t)}function mc(e,t){return e>t?e:t}function Sd(e,t,n,r){const l=t|0;return e.fill(r,l,l+n)}function T0(e,t){const n=vd(t,1);return n[0]=e,n}function P0(e,t,n){let r=0;for(;ro)return!1;if(ie(l,r),n)}class De extends O{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+pr("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((l,i)=>{e:for(;;){const o=l,s=i,u=o.tail,a=s.tail;if(u!=null)if(a!=null){const f=k(u),p=k(a);if(nt(o.head,s.head)){l=f,i=p;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,l,i)=>{e:for(;;){const o=r,s=l,u=i,a=u.tail;if(a!=null){const f=k(a);if(o>18)return s|0;r=o+1,l=(s<<1)+on(u.head)+631*o,i=f;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((l,i)=>{e:for(;;){const o=l,s=i,u=o.tail,a=s.tail;if(u!=null)if(a!=null){const f=k(u),p=k(a),y=qt(o.head,s.head)|0;if(y===0){l=f,i=p;continue e}else return y|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return R0(this)}[Symbol.iterator](){return $o(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}}class $0{constructor(t){this.xs=t,this.it=this.xs,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=k(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Et()}Dispose(){}}function R0(e){return new $0(e)}function se(){return new De(Et(),void 0)}function ti(e,t){return new De(e,t)}function Vn(e){return e.tail==null}function Ed(e){return((n,r)=>{e:for(;;){const l=n,o=r.tail;if(o!=null){n=l+1,r=k(o);continue e}else return l|0}})(0,e)|0}function jr(e){if(e.tail!=null)return e.head;throw new Error(gd+"\\nParameter name: list")}function $e(e){const t=e.tail;if(t!=null)return k(t);throw new Error(gd+"\\nParameter name: list")}function B(){return se()}function b(e,t){return ti(e,t)}function U(e){return ti(e,se())}function Z(e){return Vn(e)}function ra(e){return Ed(e)}function D(e){return jr(e)}function X(e){return $e(e)}function L0(e){const t=Ed(e)|0,n=Sd(new Array(t),0,t,null);return((l,i)=>{e:for(;;){const o=l,s=i;if(!Vn(s)){n[o]=jr(s),l=o+1,i=$e(s);continue e}break}})(0,e),n}function xt(e,t,n){let r=t,l=n;for(;!Vn(l);)r=e(r,D(l)),l=$e(l);return r}function Cd(e){return xt((t,n)=>ti(n,t),se(),e)}function _d(e,t,n){return I0(e,L0(t),n)}function V0(e,t,n){return((l,i,o)=>{e:for(;;){const s=l,u=i,a=o;if(Vn(a))return u;l=s+1,i=e(s,u,jr(a)),o=$e(a);continue e}})(0,t,n)}function Rl(e,t){xt((n,r)=>{e(r)},void 0,t)}function de(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ti(e[r],n);return n}function _(e){return de(e,se())}function O0(e){let t,n;if(Jt(e))return _(e);if(e instanceof De)return e;{const r=se();let l=r;const i=Ie(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();l=(t=l,n=new De(u,void 0),t.tail=n,n)}}finally{Ee(i)}const o=l,s=se();return o.tail=s,$e(r)}}function D0(e){const t=se();let n=t;const r=o=>{n=xt((s,u)=>{const a=new De(u,void 0);return s.tail=a,a},n,o)};if(Jt(e))e.forEach(r);else if(e instanceof De)Rl(r,e);else{const o=Ie(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ee(o)}}const l=n,i=se();return l.tail=i,$e(t)}function Nn(e,t){return xt((n,r)=>ti(r,n),t,Cd(e))}function Bs(e,t){let n,r;const l=se();let i=l,o=t;for(;!Vn(o);){let a=e(jr(o));for(;!Vn(a);)i=(n=i,r=new De(jr(a),void 0),n.tail=r,r),a=$e(a);o=$e(o)}const s=i,u=se();return s.tail=u,$e(l)}function Hs(e,t){const n=se(),r=V0((i,o,s)=>{const u=new De(e(i,s),void 0);return o.tail=u,u},n,t),l=se();return r.tail=l,$e(n)}function Me(e,t){const n=se(),r=xt((i,o)=>{const s=new De(e(o),void 0);return i.tail=s,s},n,t),l=se();return r.tail=l,$e(n)}function z0(e,t){const n=se(),r=xt((i,o)=>{if(e(o)){const s=new De(o,void 0);return i.tail=s,s}else return i},n,t),l=se();return r.tail=l,$e(n)}function U0(e,t){const n=se(),r=se(),l=n,i=xt((u,a)=>{let f,p;const y=u[0],w=u[1];return e(a)?[(f=new De(a,void 0),y.tail=f,f),w]:[y,(p=new De(a,void 0),w.tail=p,p)]},[l,r],t),o=se();i[0].tail=o;const s=se();return i[1].tail=s,[$e(l),$e(r)]}function j0(e,t){const n=se(),r=xt((i,o)=>{const s=e(o);if(s==null)return i;{const u=new De(k(s),void 0);return i.tail=u,u}},n,t),l=se();return r.tail=l,$e(n)}function B0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Vn(r))throw new Error(wd+"\\nParameter name: list");e=n-1,t=$e(r);continue e}}function kd(e,t){if(e<0)throw new Error(A0+"\\nParameter name: count");const n=(o,s,u)=>{let a;e:for(;;){const f=o,p=s,y=u;if(f<=0)return p;if(Vn(y))throw new Error(wd+"\\nParameter name: list");o=f-1,s=(a=new De(jr(y),void 0),p.tail=a,a),u=$e(y);continue e}},r=se(),l=n(e,r,t),i=se();return l.tail=i,$e(r)}function gc(e,t,n){const r=ra(n)|0;let l;const i=to(e,0)|0;l=i<0?0:i;let o;const s=to(t,r-1)|0;return o=s>=r?r-1:s,o{e:for(;;){const i=r,o=l;let s,u;switch(Z(o)||i===0?(s=0,u=o):s=1,s){case 0:return u;default:{r=i-1,l=X(o);continue e}}}};return e>0?n(e,t):t}function G0(e,t,n){return ra(n)>e&&e>=0?Nn(gc(0,e-1,n),b(t,gc(e+1,void 0,n))):n}class xd extends O{constructor(t,n,r){super(),this.Value=t,this.Update=n,this.Attributes=r}}function ci(e,t){return new xd(t.Value,n=>e(t.Update(n)),t.Attributes)}class Fn extends O{constructor(t,n,r){super(),this.State=t,this.Error=n,this.IsDisabled=r}}class Yt extends O{constructor(t,n,r){super(),this.Fields=t,this.Result=n,this.IsEmpty=r}}class zn extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Form"]}}class te extends O{constructor(t,n,r,l,i){super(),this.Parser=t,this.Value=n,this.Update=r,this.Error=l,this.Attributes=i}}class la extends O{constructor(t,n,r){super(),this.State=t,this.Result=n,this.IsEmpty=r}}function Q0(e){return new zn(t=>new Yt(B(),new W(0,[e]),!0))}function bt(e){return e.fields[0]}function ia(e){return new zn(t=>{let n;const r=e(t);return new Yt(U(new Fn(r.State,r.IsEmpty?new hl(0,[]):(n=r.Result,n.tag===1?n.fields[0][0]:void 0),!1)),r.Result,r.IsEmpty)})}function Nd(e){return new zn(t=>bt(e(t))(t))}function K0(e,t){let n;return new zn((n=bt(t),r=>n(e(r))))}function Y0(e,t){return new zn(n=>{const r=bt(t)(n);return new Yt(Me(l=>new Fn(e(l.State),l.Error,l.IsDisabled),r.Fields),r.Result,r.IsEmpty)})}function X0(e,t){return new zn(n=>{const r=bt(e)(n),l=bt(t)(n),i=Nn(l.Fields,r.Fields),o=l.IsEmpty&&r.IsEmpty,s=l.Result;if(s.tag===1){const u=s.fields[0][1],a=s.fields[0][0],f=r.Result;return f.tag===1?new Yt(i,new W(1,[[a,Nn(u,b(f.fields[0][0],f.fields[0][1]))]]),o):new Yt(i,new W(1,[[a,u]]),o)}else return new Yt(i,Ju(s.fields[0],r.Result),o)})}function Z0(e,t){return new zn(n=>{const r=bt(t)(n),l=r.Result;if(l.tag===1)return new Yt(r.Fields,new W(1,[l.fields[0]]),r.IsEmpty);{const i=bt(e(l.fields[0]))(n);return new Yt(Nn(r.Fields,i.Fields),i.Result,r.IsEmpty&&i.IsEmpty)}})}function Do(e,t,n){return new zn(r=>{let l,i,o;const s=r;o=H0(a=>to(lr(f=>new W(1,[[new hl(2,[f]),B()]]),n.Error(s)),new W(0,[a])),(l=n.Value(s),e(l)?new W(1,[[new hl(0,[]),B()]]):t0(a=>[new hl(1,[a]),B()],n.Parser(l))));let u;if(o.tag===1){const a=o.fields[0][0];u=[a,nt(a,new hl(0,[]))]}else u=[void 0,!1];return new Yt(U(new Fn((i=r,t(new xd(n.Value(i),a=>n.Update(a,i),n.Attributes))),u[0],!1)),o,u[1])})}let ue=class extends O{constructor(t,n,r){super(),this.Label=t,this.Placeholder=n,this.HtmlAttributes=r}};function oa(){return e=>t=>Do(Oo,e,t)}let Fd=class extends O{constructor(t,n){super(),this.Label=t,this.Options=n}};function J0(){return e=>t=>Do(Oo,e,t)}let q0=class extends O{constructor(t){super(),this.Text=t}};function b0(){return e=>t=>Do(n=>!1,e,t)}let e1=class extends O{constructor(t,n,r){super(),this.Label=t,this.Placeholder=n,this.Options=r}};function t1(){return e=>t=>Do(Oo,e,t)}class Ad extends O{constructor(t,n){super(),this.Fields=t,this.Delete=n}}class n1 extends O{constructor(t,n,r){super(),this.Label=t,this.Add=n,this.Delete=r}}class Td extends O{constructor(t,n,r){super(),this.Forms=t,this.Add=n,this.Attributes=r}}class r1 extends O{constructor(t,n,r,l){super(),this.Value=t,this.Update=n,this.Default=r,this.Attributes=l}}class l1 extends O{constructor(t,n,r,l){super(),this.Index=t|0,this.Update=n,this.Values=r,this.ElementValues=l}}function i1(e,t,n){return ia(r=>{const l=t.Value(r),i=Hs((u,a)=>n(new l1(u,(f,p)=>t.Update(G0(u,f,l),p),r,a)),l),o=_d((u,a)=>{const f=u.Result;if(f.tag===1){const p=f.fields[0][0],y=f.fields[0][1];return a.tag===1?new W(1,[[p,Nn(y,b(a.fields[0][0],a.fields[0][1]))]]):new W(1,[[p,y]])}else return Ju(p=>b(f.fields[0],p),a)},i,new W(0,[B()])),s=xt((u,a)=>a.IsEmpty&&u,!1,i);return new la(e(new Td(Hs((u,a)=>new Ad(a.Fields,()=>t.Update(Nn(kd(u,l),W0(u+1,l)),r)),i),()=>t.Update(Nn(l,U(t.Default)),r),t.Attributes)),o,s)})}function o1(e){throw new Error(e)}const s1="Enumeration already finished.",u1="Enumeration has not started. Call MoveNext.",Pd="The input sequence has an insufficient number of elements.",a1="Reset is not supported on this enumerator.";function c1(){throw new Error(a1)}function sa(){throw new Error(u1)}function Ws(){throw new Error(s1)}class f1{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const l=Ie(t);try{for(;n<4&&l["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ct(l["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ee(l)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $o(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function d1(e){return new f1(e)}class h1{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){c1()}Dispose(){this.dispose()}}function zo(e,t,n){return new h1(e,t,n)}function p1(e){let t,n,r=!1,l=!1,i;const o=()=>{if(l=!0,n!=null){const s=k(n);try{Ee(s)}finally{n=void 0}}if(t!=null){const s=k(t);try{Ee(s)}finally{t=void 0}}};return zo(()=>(r?l&&Ws():sa(),i!=null?k(i):Ws()),()=>{let s;if(r||(r=!0),l)return!1;{let u;for(;u==null;){const a=t,f=n;if(a!=null)if(f!=null){const p=k(f);if(p["System.Collections.IEnumerator.MoveNext"]())i=dt(p["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{Ee(p)}finally{n=void 0}}else{const p=k(a);p["System.Collections.IEnumerator.MoveNext"]()?n=(s=p["System.Collections.Generic.IEnumerator`1.get_Current"](),Ie(s)):(o(),u=!1)}else t=Ie(e)}return k(u)}},()=>{l||o()})}function m1(e,t){return zo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ee(t)}finally{e()}})}function Md(e,t,n){let r=!1,l,i=dt(e());const o=()=>{if(i!=null){const u=k(i);try{n(u)}finally{i=void 0}}},s=()=>{try{o()}finally{l=void 0}};return zo(()=>(r||sa(),l!=null?k(l):Ws()),()=>{if(r||(r=!0),i!=null){const u=k(i);let a;try{a=t(u)}catch(f){throw s(),f}return a!=null?(l=a,!0):(s(),!1)}else return!1},o)}function y1(e,t){let n,r=t;return zo(()=>{if(n!=null){const l=k(n)[0];return k(n)[1],l}else return sa()},()=>(n=e(r),n!=null?(k(n)[0],r=k(n)[1],!0):!1),()=>{})}function g1(e,t){t==null&&o1(e)}function Jr(e){return d1(e)}function ur(e){return g1("source",e),Ie(e)}function A(e){return Jr(()=>Ie(e()))}function Id(e){return Jr(()=>p1(e))}function w1(e,t){return Jr(()=>y1(e,t))}function Dt(){return A(()=>new Array(0))}function I(e){return A(()=>T0(e))}function Ge(e){return Jt(e)?_(e):e instanceof De?e:O0(e)}function $d(e,t,n){return Jr(()=>Md(e,t,n))}function v1(e,t,n){return Jr(()=>{let r=-1;return Md(e,l=>(r=r+1|0,t(r,l)),n)})}function z(e,t){return Id([e,t])}function S1(e,t){return $d(()=>ur(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Ee(n)})}function E1(e,t,n){const r=ur(t);try{const l=ur(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),s=l["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&s;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),l["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),s=l["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:s?-1:0)|0}finally{Ee(l)}}finally{Ee(r)}}function C1(e,t,n){const r=ur(n);try{let l=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)l=e(l,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return l}finally{Ee(r)}}function Rd(e,t){C1((n,r)=>{e(r)},void 0,t)}function Kt(e,t){return $d(()=>ur(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?dt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ee(n)})}function _1(e,t){return Jr(()=>{const n=ur(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Pd+"\\nParameter name: source");return m1(()=>{},n)}catch(r){throw Ee(n),r}})}function k1(e,t){return v1(()=>ur(t),(n,r)=>{if(n{Ee(n)})}function x1(e,t){return A(()=>Id(Kt(e,t)))}class Ld{constructor(t){this.k=t}}function ot(e){return new Ld(e)}function j(e){return e.k}class ee extends Ld{constructor(t,n,r,l){super(t),this.left=n,this.right=r,this.h=l|0}}function st(e,t,n,r){return new ee(e,t,n,r)}function le(e){return e.left}function re(e){return e.right}function wr(e){return e.h}function Vd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const l=k(n);if(l instanceof ee){const i=l;e=le(i),t=Vd(re(i),r+1);continue e}else return r+1|0}else return r|0}}function N1(e){return Vd(e,0)}function Ft(e,t,n){let r,l,i;const o=e;if(o!=null){const f=k(o);i=f instanceof ee?(r=f,wr(r)):1}else i=0;let s;const u=n;if(u!=null){const f=k(u);s=f instanceof ee?(l=f,wr(l)):1}else s=0;const a=(ip+2){const v=k(n);if(v instanceof ee){const T=v;if(i=le(T),(i!=null?(o=k(i),o instanceof ee?(s=o,wr(s)):1):0)>p+1){const d=k(le(T));if(d instanceof ee){const c=d;return Ft(Ft(e,t,le(c)),j(c),Ft(re(c),j(T),re(T)))}else throw new Error("internal error: Set.rebalance")}else return Ft(Ft(e,t,le(T)),j(T),re(T))}else throw new Error("internal error: Set.rebalance")}else if(p>w+2){const v=k(e);if(v instanceof ee){const T=v;if(u=re(T),(u!=null?(a=k(u),a instanceof ee?(f=a,wr(f)):1):0)>w+1){const d=k(re(T));if(d instanceof ee){const c=d;return Ft(Ft(le(T),j(T),le(c)),j(c),Ft(re(c),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ft(le(T),j(T),Ft(re(T),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ft(e,t,n)}function Br(e,t,n){if(n!=null){const r=k(n),l=e.Compare(t,j(r))|0;if(r instanceof ee){const i=r;return l<0?wc(Br(e,t,le(i)),j(i),re(i)):l===0?n:wc(le(i),j(i),Br(e,t,re(i)))}else{const i=e.Compare(t,j(r))|0;return i<0?st(t,void 0,n,2):i===0?n:st(t,n,void 0,2)}}else return ot(t)}function Od(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=k(i),s=r.Compare(l,j(o))|0;if(o instanceof ee){const u=o;if(s<0){e=r,t=l,n=le(u);continue e}else{if(s===0)return!0;e=r,t=l,n=re(u);continue e}}else return s===0}else return!1}}function Dd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=k(r);if(l instanceof ee){const i=l;Dd(n,le(i)),n(j(i)),e=n,t=re(i);continue e}else n(j(l))}break}}class F1 extends O{constructor(t,n){super(),this.stack=t,this.started=n}}function zd(e){e:for(;;){const t=e;if(Z(t))return B();{const n=D(t),r=X(t);if(n!=null){const l=k(n);if(l instanceof ee){const i=l;e=de([le(i),ot(j(i)),re(i)],r);continue e}else return t}else{e=r;continue e}}}}function vc(e){return new F1(zd(U(e)),!1)}function A1(){throw new Error("Enumeration not started")}function T1(){throw new Error("Enumeration already started")}function Sc(e){if(e.started){const t=e.stack;if(Z(t))return T1();if(D(t)!=null){const n=k(D(t));return j(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return A1()}function P1(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(D(t)!=null){if(k(D(t))instanceof ee)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=zd(X(t)),!Z(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function Ec(e){let t=vc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Sc(t)},"System.Collections.IEnumerator.get_Current"(){return Sc(t)},"System.Collections.IEnumerator.MoveNext"(){return P1(t)},"System.Collections.IEnumerator.Reset"(){t=vc(e)},Dispose(){}}}function M1(e,t,n){e:for(;;){const r=e,l=t,i=n;if(Z(l))return Z(i)?0:-1;if(Z(i))return 1;if(D(i)!=null)if(D(l)!=null){const o=k(D(l)),s=k(D(i));if(o instanceof ee){const u=o;if(le(u)==null)if(s instanceof ee){const a=s;if(le(a)==null){const f=r.Compare(j(u),j(a))|0;if(f!==0)return f|0;e=r,t=b(re(u),X(l)),n=b(re(a),X(i));continue e}else{let f,p,y,w,g;switch(Z(l)?Z(i)?f=2:D(i)!=null?(f=1,w=X(i),g=k(D(i))):f=2:D(l)!=null?(f=0,p=X(l),y=k(D(l))):Z(i)?f=2:D(i)!=null?(f=1,w=X(i),g=k(D(i))):f=2,f){case 0:if(y instanceof ee){const v=y;e=r,t=de([le(v),st(j(v),void 0,re(v),0)],p),n=i;continue e}else{e=r,t=de([void 0,ot(j(y))],p),n=i;continue e}case 1:if(g instanceof ee){const v=g;e=r,t=l,n=de([le(v),st(j(v),void 0,re(v),0)],w);continue e}else{e=r,t=l,n=de([void 0,ot(j(g))],w);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(j(u),j(s))|0;if(a!==0)return a|0;e=r,t=b(re(u),X(l)),n=b(void 0,X(i));continue e}else{let a,f,p,y,w;switch(Z(l)?Z(i)?a=2:D(i)!=null?(a=1,y=X(i),w=k(D(i))):a=2:D(l)!=null?(a=0,f=X(l),p=k(D(l))):Z(i)?a=2:D(i)!=null?(a=1,y=X(i),w=k(D(i))):a=2,a){case 0:if(p instanceof ee){const g=p;e=r,t=de([le(g),st(j(g),void 0,re(g),0)],f),n=i;continue e}else{e=r,t=de([void 0,ot(j(p))],f),n=i;continue e}case 1:if(w instanceof ee){const g=w;e=r,t=l,n=de([le(g),st(j(g),void 0,re(g),0)],y);continue e}else{e=r,t=l,n=de([void 0,ot(j(w))],y);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(s instanceof ee){const u=s;if(le(u)==null){const a=r.Compare(j(o),j(u))|0;if(a!==0)return a|0;e=r,t=b(void 0,X(l)),n=b(re(u),X(i));continue e}else{let a,f,p,y,w;switch(Z(l)?Z(i)?a=2:D(i)!=null?(a=1,y=X(i),w=k(D(i))):a=2:D(l)!=null?(a=0,f=X(l),p=k(D(l))):Z(i)?a=2:D(i)!=null?(a=1,y=X(i),w=k(D(i))):a=2,a){case 0:if(p instanceof ee){const g=p;e=r,t=de([le(g),st(j(g),void 0,re(g),0)],f),n=i;continue e}else{e=r,t=de([void 0,ot(j(p))],f),n=i;continue e}case 1:if(w instanceof ee){const g=w;e=r,t=l,n=de([le(g),st(j(g),void 0,re(g),0)],y);continue e}else{e=r,t=l,n=de([void 0,ot(j(w))],y);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(j(o),j(s))|0;if(u!==0)return u|0;e=r,t=X(l),n=X(i);continue e}}else{k(D(i));let o,s,u,a,f;switch(Z(l)?Z(i)?o=2:D(i)!=null?(o=1,a=X(i),f=k(D(i))):o=2:D(l)!=null?(o=0,s=X(l),u=k(D(l))):Z(i)?o=2:D(i)!=null?(o=1,a=X(i),f=k(D(i))):o=2,o){case 0:if(u instanceof ee){const p=u;e=r,t=de([le(p),st(j(p),void 0,re(p),0)],s),n=i;continue e}else{e=r,t=de([void 0,ot(j(u))],s),n=i;continue e}case 1:if(f instanceof ee){const p=f;e=r,t=l,n=de([le(p),st(j(p),void 0,re(p),0)],a);continue e}else{e=r,t=l,n=de([void 0,ot(j(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(l)!=null){k(D(l));let o,s,u,a,f;switch(Z(l)?Z(i)?o=2:D(i)!=null?(o=1,a=X(i),f=k(D(i))):o=2:D(l)!=null?(o=0,s=X(l),u=k(D(l))):Z(i)?o=2:D(i)!=null?(o=1,a=X(i),f=k(D(i))):o=2,o){case 0:if(u instanceof ee){const p=u;e=r,t=de([le(p),st(j(p),void 0,re(p),0)],s),n=i;continue e}else{e=r,t=de([void 0,ot(j(u))],s),n=i;continue e}case 1:if(f instanceof ee){const p=f;e=r,t=l,n=de([le(p),st(j(p),void 0,re(p),0)],a);continue e}else{e=r,t=l,n=de([void 0,ot(j(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=X(l),n=X(i);continue e}}}function Cc(e,t,n){return t==null?n==null?0:-1:n==null?1:M1(e,U(t),U(n))|0}function I1(e,t,n){let r=n;Dd(l=>{t[r]=l,r=r+1|0},e)}function $1(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Br(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),l),n=i;continue e}else return l}}function R1(e,t){return M0((n,r)=>Br(e,r,n),void 0,t)}function L1(e,t){return xt((n,r)=>Br(e,r,n),void 0,t)}function V1(e,t){if(Jt(t))return R1(e,t);if(t instanceof De)return L1(e,t);{const n=Ie(t);try{return $1(e,void 0,n)}finally{Ee(n)}}}class ua{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return z1(this)|0}Equals(t){let n;const r=this;return t instanceof ua&&(n=t,Cc(Ir(r),Mt(r),Mt(n))===0)}toString(){return"set ["+pr("; ",Kt(n=>Ct(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Cc(Ir(n),Mt(n),Mt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Od(Ir(n),t,Mt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){I1(Mt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return cs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return cs(this)|0}GetEnumerator(){return Ec(Mt(this))}[Symbol.iterator](){return $o(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ec(Mt(this))}get size(){return cs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Ud(this,t)}keys(){return Kt(n=>n,this)}values(){return Kt(n=>n,this)}entries(){return Kt(n=>[n,n],this)}forEach(t,n){const r=this;Rd(l=>{t(l,l,r)},r)}}function aa(e,t){return new ua(e,t)}function Ir(e){return e.comparer}function Mt(e){return e.tree}function O1(e){return aa(e,void 0)}function D1(e,t){return aa(Ir(e),Br(Ir(e),t,Mt(e)))}function cs(e){return N1(Mt(e))}function Ud(e,t){return Od(Ir(e),t,Mt(e))}function z1(e){let t=0;const n=Ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+on(r)+631|0}}finally{Ee(n)}return Math.abs(t)|0}function lo(e,t){return Ud(t,e)}function jd(e,t){return D1(t,e)}function Bd(e){return O1(e)}function U1(e,t){return aa(t,V1(t,e))}class ca extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["TextColor","TextDate","TextDateTimeLocal","TextEmail","TextNumber","TextPassword","TextSearch","TextTel","TextRaw","TextTime","TextArea"]}}class He extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Radio","Checkbox","Select","Group","Section","List"]}}function ht(e){return Q0(e)}function q(e,t){return X0(e,t)}function j1(e,t){return Z0(e,t)}function Fe(e){return oa()(t=>new He(0,[new ca(8,[]),t]))(e)}function Ll(e){return oa()(t=>new He(0,[new ca(5,[]),t]))(e)}function B1(e){return oa()(t=>new He(0,[new ca(10,[]),t]))(e)}function H1(e){return b0()(t=>new He(2,[t]))(e)}function Hd(e){return J0()(t=>new He(1,[t]))(e)}function W1(e){return t1()(t=>new He(3,[t]))(e)}function G1(e){return ia(t=>{const n=bt(e)(t);return new la(new He(4,[n.Fields]),n.Result,n.IsEmpty)})}function Wd(e,t){return ia(n=>{const r=bt(t)(n);return new la(new He(5,[e,r.Fields]),r.Result,r.IsEmpty)})}function Gd(e,t){const n=bt(e)(t);return{Fields:n.Fields,IsEmpty:n.IsEmpty,Result:n.Result}}function El(e,t,n){const r=l=>e(l,t);switch(n.tag){case 1:return new He(1,[ci(r,n.fields[0])]);case 2:return new He(2,[ci(r,n.fields[0])]);case 3:return new He(3,[ci(r,n.fields[0])]);case 4:return new He(4,[Me(l=>new Fn(El(e,t,l.State),l.Error,l.IsDisabled),n.fields[0])]);case 5:return new He(5,[n.fields[0],Me(l=>new Fn(El(e,t,l.State),l.Error,l.IsDisabled),n.fields[1])]);case 6:{const l=n.fields[0];return new He(6,[new Td(Me(i=>new Ad(Me(o=>new Fn(El(e,t,o.State),o.Error,o.IsDisabled),i.Fields),()=>e(i.Delete(),t)),l.Forms),()=>e(l.Add(),t),l.Attributes)])}default:return new He(0,[n.fields[0],ci(r,n.fields[1])])}}function Q1(e,t){return i1(n=>new He(6,[n]),e,n=>{const r=Gd(t(n.Index),n.ElementValues);return new Yt(Me(l=>new Fn(El(n.Update,n.Values,l.State),l.Error,l.IsDisabled),r.Fields),r.Result,r.IsEmpty)})}function K1(e){return Nd(e)}class Y1 extends O{constructor(t,n){super(),this.Value=t,this.Update=n}}function X1(e,t){return Nd(n=>Y0(r=>El(e.Update,n,r),K0(e.Value,t)))}class sn extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Idle","Loading","Error","Success"]}}class Gs extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ErrorTracking"]}}class ir extends O{constructor(t,n,r){super(),this.Values=t,this.State=n,this.ErrorTracking=r}}class un extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ValidateOnBlur","ValidateOnSubmit"]}}class Un extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SubmitOnly","Custom"]}}class jn extends O{constructor(t,n,r,l){super(),this.Dispatch=t,this.OnChange=n,this.Action=r,this.Validation=l}}class Z1 extends O{constructor(t,n,r,l,i){super(),this.Dispatch=t,this.OnSubmit=n,this.State=r,this.Action=l,this.Fields=i}}class J1 extends O{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class q1 extends O{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class b1 extends O{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class ey extends O{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class ty extends O{constructor(t,n,r,l,i){super(),this.Dispatch=t,this.Forms=n,this.Label=r,this.Add=l,this.Disabled=i}}class ny extends O{constructor(t,n,r,l){super(),this.Dispatch=t,this.Fields=n,this.Delete=r,this.Disabled=l}}function Bn(e){return new ir(e,new sn(0,[]),new Gs({ShowAllErrors:!1,ShowFieldError:Bd({Compare:Us})}))}function ry(e){return new ir(e.Values,new sn(1,[]),e.ErrorTracking)}class ly extends O{constructor(t,n,r,l,i,o,s,u,a,f,p,y,w,g,v,T,d,c,m){super(),this.Form=t,this.TextField=n,this.PasswordField=r,this.EmailField=l,this.ColorField=i,this.DateField=o,this.DateTimeLocalField=s,this.NumberField=u,this.SearchField=a,this.TelField=f,this.TimeField=p,this.TextAreaField=y,this.CheckboxField=w,this.RadioField=g,this.SelectField=v,this.Group=T,this.Section=d,this.FormList=c,this.FormListItem=m}}class Qs extends O{constructor(t,n,r,l){super(),this.OnChange=t,this.OnBlur=n,this.Disabled=r,this.ShowError=l}}class Ut extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Password","Email","Color","Date","DateTimeLocal","Number","Search","Tel","Time"]}}function iy(e){switch(e.tag){case 1:return e.fields[0];case 2:return e.fields[0];default:return"This field is required"}}function _c(e,t){return e==null?new Fn(t.State,void 0,t.IsDisabled):t}function Ii(e,t,n,r){const l=o=>lr(s=>s(o),n.OnBlur),i=r.State;switch(i.tag){case 2:{const o=i.fields[0];return t.CheckboxField(new q1(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Text),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Text),o.Attributes))}case 1:{const o=i.fields[0];return t.RadioField(new b1(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Label),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Label),o.Attributes))}case 3:{const o=i.fields[0];return t.SelectField(new ey(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Label),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Label),o.Attributes))}case 4:return t.Group(Me(o=>{let s;return(s=new Qs(n.OnChange,n.OnBlur,o.IsDisabled?!0:n.Disabled,n.ShowError),u=>Ii(e,t,s,u))(_c(o.Error,o))},i.fields[0]));case 5:return t.Section(i.fields[0],Me(o=>{let s;return(s=new Qs(n.OnChange,n.OnBlur,o.IsDisabled?!0:n.Disabled,n.ShowError),u=>Ii(e,t,s,u))(_c(o.Error,o))},i.fields[1]));case 6:{const o=i.fields[0].Attributes;return t.FormList(new ty(e,Me(s=>t.FormListItem(new ny(e,Me(u=>Ii(e,t,n,u),s.Fields),lr(u=>({Action:()=>n.OnChange(s.Delete()),Label:u}),o.Delete),r.IsDisabled?!0:n.Disabled)),i.fields[0].Forms),o.Label,lr(s=>({Action:()=>n.OnChange(i.fields[0].Add()),Label:s}),o.Add),r.IsDisabled?!0:n.Disabled))}default:{const o=i.fields[0],s=i.fields[1],u=new J1(e,a=>n.OnChange(s.Update(a)),l(s.Attributes.Label),r.IsDisabled?!0:n.Disabled,s.Value,r.Error,n.ShowError(s.Attributes.Label),s.Attributes);switch(o.tag){case 5:return t.PasswordField(u);case 10:return t.TextAreaField(u);case 3:return t.EmailField(u);case 0:return t.ColorField(u);case 1:return t.DateField(u);case 2:return t.DateTimeLocalField(u);case 4:return t.NumberField(u);case 6:return t.SearchField(u);case 7:return t.TelField(u);case 9:return t.TimeField(u);default:return t.TextField(u)}}}}function oy(e,t,n,r){let l,i;const o=Gd(n,r.Values);i=[o.Fields,o.Result];const s=i[1],u=r.ErrorTracking.fields[0];return e.Form(new Z1(t.Dispatch,s.tag===1?u.ShowAllErrors?void 0:dt(t.OnChange(new ir(r.Values,r.State,new Gs({ShowAllErrors:!0,ShowFieldError:u.ShowFieldError})))):nt(r.State,new sn(1,[]))?void 0:dt(s.fields[0]),r.State,t.Action,Me((l=new Qs(a=>t.OnChange(new ir(a,r.State,r.ErrorTracking)),t.Validation.tag===0?a=>t.OnChange(new ir(r.Values,r.State,new Gs({ShowAllErrors:u.ShowAllErrors,ShowFieldError:jd(a,u.ShowFieldError)}))):void 0,nt(r.State,new sn(1,[])),a=>u.ShowAllErrors?!0:lo(a,u.ShowFieldError)),a=>Ii(t.Dispatch,e,l,a)),i[0])))}function sy(e,t){console.error(dt(e),t)}function kc(e,t,n){Rl(r=>{try{r(t)}catch(l){e(l)}},n)}function L(){return B()}function Ve(e,t){return Me(n=>r=>{n(l=>{r(e(l))})},t)}function xc(e){return U(e)}function uy(e,t,n){return U(r=>{e(t).then(l=>r(n(l)))})}function ay(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qd={exports:{}},K={};/** +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Jt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Dp(e){return e!=null&&typeof e.GetEnumerator=="function"}function Op(e){return e!=null&&typeof e.CompareTo=="function"}function zp(e){return e!=null&&typeof e.Equals=="function"}function Up(e){return e!=null&&typeof e.GetHashCode=="function"}function jp(e){return e!=null&&typeof e.Dispose=="function"}function Ce(e){jp(e)&&e.Dispose()}function _t(){return null}function qi(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Bp{constructor(t){this.iter=t,this.current=_t()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Le(e){return Dp(e)?e.GetEnumerator():new Bp(e[Symbol.iterator]())}function Vo(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function Gt(e,t){let n=e.toString(10);for(;n.lengthcn(r));return Lo(n)}else return Us(Tn.id(e))}}}function Qp(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;re(n)(r);return qu.set(t,e),t}function Fn(e){return qu.get(e)??(t=>n=>e(t,n))}function Mr(e){return qu.get(e)??(t=>n=>r=>e(t,n,r))}function Zp(e){let t=0,n="[";for(const r of e){if(t===0)n+=kt(r);else if(t===100){n+="; ...";break}else n+="; "+kt(r);t++}return n+"]"}function kt(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Zp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([l,i])=>l+" = "+kt(i,t+1)).join(` + `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Jp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=kt(t[0]),r=n.indexOf(" ")>=0):n=t.map(l=>kt(l)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class B{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Jp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>cn(n));return t.splice(0,0,Us(this.tag)),Lo(t)}Equals(t){return this===t?!0:qi(this,t)&&this.tag===t.tag?cd(this.fields,t.fields):!1}CompareTo(t){return this===t?0:qi(this,t)?this.tag===t.tag?dd(this.fields,t.fields):this.tagt+" = "+kt(n)).join(` + `)+" }"}function e0(e){const t=Object.values(e).map(n=>cn(n));return Lo(t)}function t0(e,t){if(e===t)return!0;if(qi(e,t)){const n=Object.keys(e);for(let r=0;rt,this.setter=r=>{t=r})}}const Zr=Symbol("numeric");function hd(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zr])}function l0(e,t){return typeof e=="number"||typeof e=="bigint"?et?1:0:e.CompareTo(t)}function Bs(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zr]().multiply(t)}function $i(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zr]().toFixed(t)}function eo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zr]().toPrecision(t)}function to(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zr]().toExponential(t)}function no(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zr]().toHex()}class Ur{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return cn(this.value)}Equals(t){return t==null?!1:nt(this.value,t instanceof Ur?t.value:t)}CompareTo(t){return t==null?1:bt(this.value,t instanceof Ur?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof Ur?e.value:e}function mt(e){return e==null||e instanceof Ur?new Ur(e):e}function ro(e,t){return e!=null?x(e):t}function i0(e,t){return e!=null?x(e):t()}function ir(e,t){return t!=null?mt(e(x(t))):void 0}function md(e){return new G(0,[e])}function pd(e){return new G(1,[e])}class G extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ea(e,t){return t.tag===0?md(e(t.fields[0])):pd(t.fields[0])}function o0(e,t){return t.tag===0?md(t.fields[0]):pd(e(t.fields[0]))}let s0=class extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmailAddress"]}};function Do(e){return e.fields[0]}function Oo(e){return e.indexOf("@")>=0?new G(0,[new s0(e)]):new G(1,["The e-mail address must contain a '@' symbol"])}function u0(e,t){return t.then(n=>ea(e,n))}class a0{constructor(){}}function c0(){return new a0}function f0(e,t){return{then:(n,r)=>{try{return t().then(n,r)}catch(l){if(r==null)return Promise.reject(l);try{const i=r(l);return Promise.resolve(i)}catch(i){return Promise.reject(i)}}},catch:n=>{try{return t().catch(n)}catch(r){try{const l=n(r);return Promise.resolve(l)}catch(l){return Promise.reject(l)}}}}}function d0(e,t){return t.then(n=>n)}const gc=c0();let h0=class extends D{constructor(t,n,r,l){super(),this.Email=t,this.Name=n,this.Password=r,this.IsProfilePublic=l}};function m0(e){return d0(gc,f0(gc,()=>new Promise(t=>setTimeout(t,1e3)).then(()=>Do(e)==="warded@mail.com"?Promise.resolve(new G(0,[g0(e)])):Promise.resolve(new G(1,["The e-mail address is taken. Try this one: warded@mail.com"])))))}class p0 extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ValidEmail"]}}function y0(e){return Do(e.fields[0])}function g0(e){return new p0(e)}class w0 extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function ta(e){return e.fields[0]}function na(e){return e.length<2?new G(1,["The name must have at least 2 characters"]):new G(0,[new w0(e)])}class v0 extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Password"]}}function ra(e){return e.fields[0]}function la(e){return e.length<4?new G(1,["The password must have at least 4 characters"]):new G(0,[new v0(e)])}function E0(e,t,n,r){return u0(l=>new h0(l,t,n,r),m0(e))}class ml extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["RequiredFieldIsEmpty","ValidationFailed","External"]}}function ia(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Gt(n,2)+":"+Gt(r,2)}function lo(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function S0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Gt(e.getFullYear(),4)+"-"+Gt(e.getMonth()+1,2)+"-"+Gt(e.getDate(),2)+"T"+Gt(e.getHours(),2)+":"+Gt(e.getMinutes(),2)+":"+Gt(e.getSeconds(),2)+"."+Gt(e.getMilliseconds(),3)+(n?ia(e.getTimezoneOffset()*-6e4):"")}}function C0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ia(t)}function yd(e,t,n){return t.replace(/(\w)\1*/g,r=>{let l=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();l=r.length<4?i%100:i;break;case"M":l=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":l=n?e.getUTCDate():e.getDate();break;case"H":l=n?e.getUTCHours():e.getHours();break;case"h":const o=n?e.getUTCHours():e.getHours();l=o>12?o%12:o;break;case"m":l=n?e.getUTCMinutes():e.getMinutes();break;case"s":l=n?e.getUTCSeconds():e.getSeconds();break;case"f":l=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(l)?r:Gt(l,r.length)})}function _0(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+ia(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return lo(n,"first");case"T":case"t":return lo(n,"second");case"O":case"o":return C0(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return yd(n,t,!0)}function k0(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?lo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?lo(e,"second"):e.toLocaleTimeString();case"O":case"o":return S0(e,n);default:throw new Error("Unrecognized Date print format")}else return yd(e,t,n)}function gd(e,t,n){return e.offset!=null?_0(e,t):k0(e,t)}function x0(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}const rl=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,F0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function wd(e,t){return l0(e,t)<0}function $l(e){return{input:e,cont:T0(e)}}function vd(e,t){return typeof t=="string"?e(t):t.cont(e)}function A0(e){return vd(t=>console.log(t),e)}function io(e){return vd(t=>t,e)}function N0(e,t,n,r,l){let i="";if(t=t||"",l=l||"",hd(e))switch(l.toLowerCase()!=="x"&&(wd(e,0)?(e=Bs(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),l){case"f":case"F":r=r??6,e=$i(e,r);break;case"g":case"G":e=r!=null?eo(e,r):eo(e);break;case"e":case"E":e=r!=null?to(e,r):to(e);break;case"x":e=no(e);break;case"X":e=no(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=gd(e):e=kt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const o=t.indexOf("0")>=0,s=t.indexOf("-")>=0,u=s||!o?" ":"0";u==="0"?(e=Rl(e,n-i.length,u,s),e=i+e):e=Rl(i+e,n,u,s)}return e}function Ed(e,t,n,r="",l=-1){return(...i)=>{let o=r;const s=t.slice(),u=n.slice();for(const a of i){const[,,d,m,y,w]=u[0];let g=m;if(l>=0)g=l,l=-1;else if(g==="*"){if(a<0)throw new Error("Non-negative number required");l=a;continue}o+=s[0],o+=N0(a,d,g,y,w),s.splice(0,1),u.splice(0,1)}return u.length===0?(o+=s[0],e(o)):Ed(e,s,u,o,l)}}function T0(e){return t=>{rl.lastIndex=0;const n=[],r=[];let l=0,i=rl.exec(e);for(;i;){const o=i.index+(i[1]||"").length;n.push(e.substring(l,o).replace(/%%/g,"%")),r.push(i),l=rl.lastIndex,rl.lastIndex-=1,i=rl.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(l).replace(/%%/g,"%")),Ed(t,n,r))}}function P0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(F0,(r,l,i,o,s,u)=>{if(l<0||l>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[l];if(hd(a))switch(s=s==null?null:parseInt(s,10),o){case"f":case"F":s=s??2,a=$i(a,s);break;case"g":case"G":a=s!=null?eo(a,s):eo(a);break;case"e":case"E":a=s!=null?to(a,s):to(a);break;case"p":case"P":s=s??2,a=$i(Bs(a,100),s)+" %";break;case"d":case"D":a=s!=null?as(String(a),s,"0"):String(a);break;case"x":case"X":a=s!=null?as(no(a),s,"0"):no(a),o==="X"&&(a=a.toUpperCase());break;default:if(u){let d="";a=u.replace(/([0#,]+)(\.[0#]+)?/,(m,y,w)=>{wd(a,0)&&(a=Bs(a,-1),d="-"),w=w==null?"":w.substring(1),a=$i(a,Math.max(w.length,0));let[g,v]=a.split(".");v||(v="");const P=y.replace(/,/g,"").replace(/^#+/,"").length;g=as(g,P,"0");const h=w.replace(/#+$/,"").length;if(h>v.length?v=M0(v,h,"0"):h0){const c=g.length%3,p=Math.floor(g.length/3);let S=c>0?g.substr(0,c)+(p>0?",":""):"";for(let T=0;T0?g+"."+v:g}),a=d+a}}else a instanceof Date?a=gd(a,u||o):a=kt(a);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(a=Rl(String(a),Math.abs(i)," ",i<0)),a})}function zo(e){return typeof e!="string"||e.length===0}function Gn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Rl(e,t,n,r){n=n||" ",t=t-e.length;for(let l=0;le.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}const Sd="Collection was empty.",$0="The input must be non-negative.",Cd="The input sequence has an insufficient number of elements.";function Uo(e,t){return typeof e=="function"?new e(t):new Array(t)}function wc(e,t){return e>t?e:t}function _d(e,t,n,r){const l=t|0;return e.fill(r,l,l+n)}function R0(e,t,n){const r=t.length|0,l=Uo(n,r);for(let i=0;i<=r-1;i++)l[i]=e(t[i]);return l}function V0(e,t){const n=Uo(t,1);return n[0]=e,n}function L0(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Uo(n,e);for(let l=0;l<=e-1;l++)r[l]=t(l);return r}function D0(e,t,n){let r=0;for(;ro)return!1;if(ie(l,r),n)}class je extends D{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Gn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((l,i)=>{e:for(;;){const o=l,s=i,u=o.tail,a=s.tail;if(u!=null)if(a!=null){const d=x(u),m=x(a);if(nt(o.head,s.head)){l=d,i=m;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,l,i)=>{e:for(;;){const o=r,s=l,u=i,a=u.tail;if(a!=null){const d=x(a);if(o>18)return s|0;r=o+1,l=(s<<1)+cn(u.head)+631*o,i=d;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((l,i)=>{e:for(;;){const o=l,s=i,u=o.tail,a=s.tail;if(u!=null)if(a!=null){const d=x(u),m=x(a),y=bt(o.head,s.head)|0;if(y===0){l=d,i=m;continue e}else return y|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return B0(this)}[Symbol.iterator](){return Vo(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class j0{constructor(t){this.xs=t,this.it=this.xs,this.current=_t()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=x(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=_t()}Dispose(){}}function B0(e){return new j0(e)}function ue(){return new je(_t(),void 0)}function ni(e,t){return new je(e,t)}function Bn(e){return e.tail==null}function kd(e){return((n,r)=>{e:for(;;){const l=n,o=r.tail;if(o!=null){n=l+1,r=x(o);continue e}else return l|0}})(0,e)|0}function jr(e){if(e.tail!=null)return e.head;throw new Error(Sd+"\\nParameter name: list")}function De(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Sd+"\\nParameter name: list")}function H(){return ue()}function q(e,t){return ni(e,t)}function U(e){return ni(e,ue())}function Z(e){return Bn(e)}function oa(e){return kd(e)}function z(e){return jr(e)}function X(e){return De(e)}function H0(e){const t=kd(e)|0,n=_d(new Array(t),0,t,null);return((l,i)=>{e:for(;;){const o=l,s=i;if(!Bn(s)){n[o]=jr(s),l=o+1,i=De(s);continue e}break}})(0,e),n}function At(e,t,n){let r=t,l=n;for(;!Bn(l);)r=e(r,z(l)),l=De(l);return r}function xd(e){return At((t,n)=>ni(n,t),ue(),e)}function Fd(e,t,n){return U0(e,H0(t),n)}function W0(e,t,n){return((l,i,o)=>{e:for(;;){const s=l,u=i,a=o;if(Bn(a))return u;l=s+1,i=e(s,u,jr(a)),o=De(a);continue e}})(0,t,n)}function Vl(e,t){At((n,r)=>{e(r)},void 0,t)}function de(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ni(e[r],n);return n}function C(e){return de(e,ue())}function G0(e){let t,n;if(Jt(e))return C(e);if(e instanceof je)return e;{const r=ue();let l=r;const i=Le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();l=(t=l,n=new je(u,void 0),t.tail=n,n)}}finally{Ce(i)}const o=l,s=ue();return o.tail=s,De(r)}}function Q0(e){const t=ue();let n=t;const r=o=>{n=At((s,u)=>{const a=new je(u,void 0);return s.tail=a,a},n,o)};if(Jt(e))e.forEach(r);else if(e instanceof je)Vl(r,e);else{const o=Le(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ce(o)}}const l=n,i=ue();return l.tail=i,De(t)}function In(e,t){return At((n,r)=>ni(r,n),t,xd(e))}function Hs(e,t){let n,r;const l=ue();let i=l,o=t;for(;!Bn(o);){let a=e(jr(o));for(;!Bn(a);)i=(n=i,r=new je(jr(a),void 0),n.tail=r,r),a=De(a);o=De(o)}const s=i,u=ue();return s.tail=u,De(l)}function Ws(e,t){const n=ue(),r=W0((i,o,s)=>{const u=new je(e(i,s),void 0);return o.tail=u,u},n,t),l=ue();return r.tail=l,De(n)}function Te(e,t){const n=ue(),r=At((i,o)=>{const s=new je(e(o),void 0);return i.tail=s,s},n,t),l=ue();return r.tail=l,De(n)}function K0(e,t){const n=ue(),r=At((i,o)=>{if(e(o)){const s=new je(o,void 0);return i.tail=s,s}else return i},n,t),l=ue();return r.tail=l,De(n)}function Y0(e,t){const n=ue(),r=ue(),l=n,i=At((u,a)=>{let d,m;const y=u[0],w=u[1];return e(a)?[(d=new je(a,void 0),y.tail=d,d),w]:[y,(m=new je(a,void 0),w.tail=m,m)]},[l,r],t),o=ue();i[0].tail=o;const s=ue();return i[1].tail=s,[De(l),De(r)]}function X0(e,t){const n=ue(),r=At((i,o)=>{const s=e(o);if(s==null)return i;{const u=new je(x(s),void 0);return i.tail=u,u}},n,t),l=ue();return r.tail=l,De(n)}function Z0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Bn(r))throw new Error(Cd+"\\nParameter name: list");e=n-1,t=De(r);continue e}}function Ad(e,t){if(e<0)throw new Error($0+"\\nParameter name: count");const n=(o,s,u)=>{let a;e:for(;;){const d=o,m=s,y=u;if(d<=0)return m;if(Bn(y))throw new Error(Cd+"\\nParameter name: list");o=d-1,s=(a=new je(jr(y),void 0),m.tail=a,a),u=De(y);continue e}},r=ue(),l=n(e,r,t),i=ue();return l.tail=i,De(r)}function Ec(e,t,n){const r=oa(n)|0;let l;const i=ro(e,0)|0;l=i<0?0:i;let o;const s=ro(t,r-1)|0;return o=s>=r?r-1:s,o{e:for(;;){const i=r,o=l;let s,u;switch(Z(o)||i===0?(s=0,u=o):s=1,s){case 0:return u;default:{r=i-1,l=X(o);continue e}}}};return e>0?n(e,t):t}function q0(e,t,n){return oa(n)>e&&e>=0?In(Ec(0,e-1,n),q(t,Ec(e+1,void 0,n))):n}class Nd extends D{constructor(t,n,r){super(),this.Value=t,this.Update=n,this.Attributes=r}}function ll(e,t){return new Nd(t.Value,n=>e(t.Update(n)),t.Attributes)}class $n extends D{constructor(t,n,r){super(),this.State=t,this.Error=n,this.IsDisabled=r}}class Yt extends D{constructor(t,n,r){super(),this.Fields=t,this.Result=n,this.IsEmpty=r}}class Qn extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Form"]}}class te extends D{constructor(t,n,r,l,i){super(),this.Parser=t,this.Value=n,this.Update=r,this.Error=l,this.Attributes=i}}class sa extends D{constructor(t,n,r){super(),this.State=t,this.Result=n,this.IsEmpty=r}}function e1(e){return new Qn(t=>new Yt(H(),new G(0,[e]),!0))}function qt(e){return e.fields[0]}function ua(e){return new Qn(t=>{let n;const r=e(t);return new Yt(U(new $n(r.State,r.IsEmpty?new ml(0,[]):(n=r.Result,n.tag===1?n.fields[0][0]:void 0),!1)),r.Result,r.IsEmpty)})}function Td(e){return new Qn(t=>qt(e(t))(t))}function t1(e,t){let n;return new Qn((n=qt(t),r=>n(e(r))))}function n1(e,t){return new Qn(n=>{const r=qt(t)(n);return new Yt(Te(l=>new $n(e(l.State),l.Error,l.IsDisabled),r.Fields),r.Result,r.IsEmpty)})}function r1(e,t){return new Qn(n=>{const r=qt(e)(n),l=qt(t)(n),i=In(l.Fields,r.Fields),o=l.IsEmpty&&r.IsEmpty,s=l.Result;if(s.tag===1){const u=s.fields[0][1],a=s.fields[0][0],d=r.Result;return d.tag===1?new Yt(i,new G(1,[[a,In(u,q(d.fields[0][0],d.fields[0][1]))]]),o):new Yt(i,new G(1,[[a,u]]),o)}else return new Yt(i,ea(s.fields[0],r.Result),o)})}function l1(e,t){return new Qn(n=>{const r=qt(t)(n),l=r.Result;if(l.tag===1)return new Yt(r.Fields,new G(1,[l.fields[0]]),r.IsEmpty);{const i=qt(e(l.fields[0]))(n);return new Yt(In(r.Fields,i.Fields),i.Result,r.IsEmpty&&i.IsEmpty)}})}function ri(e,t,n){return new Qn(r=>{let l,i,o;const s=r;o=J0(a=>ro(ir(d=>new G(1,[[new ml(2,[d]),H()]]),n.Error(s)),new G(0,[a])),(l=n.Value(s),e(l)?new G(1,[[new ml(0,[]),H()]]):o0(a=>[new ml(1,[a]),H()],n.Parser(l))));let u;if(o.tag===1){const a=o.fields[0][0];u=[a,nt(a,new ml(0,[]))]}else u=[void 0,!1];return new Yt(U(new $n((i=r,t(new Nd(n.Value(i),a=>n.Update(a,i),n.Attributes))),u[0],!1)),o,u[1])})}let ae=class extends D{constructor(t,n,r){super(),this.Label=t,this.Placeholder=n,this.HtmlAttributes=r}};function aa(){return e=>t=>ri(zo,e,t)}let Pd=class extends D{constructor(t,n){super(),this.Label=t,this.Options=n}};function i1(){return e=>t=>ri(zo,e,t)}let o1=class extends D{constructor(t){super(),this.Text=t}};function s1(){return e=>t=>ri(n=>!1,e,t)}let u1=class extends D{constructor(t,n,r){super(),this.Label=t,this.Placeholder=n,this.Options=r}};function a1(){return e=>t=>ri(zo,e,t)}class c1 extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Any","Specific"]}}class f1 extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Custom"]}}let d1=class extends D{constructor(t,n,r,l,i){super(),this.Label=t,this.InputLabel=n,this.Accept=r,this.FileIconClassName=l,this.Multiple=i}};function h1(){return e=>t=>ri(n=>n.length===0,e,t)}class Md extends D{constructor(t,n){super(),this.Fields=t,this.Delete=n}}class m1 extends D{constructor(t,n,r){super(),this.Label=t,this.Add=n,this.Delete=r}}class Id extends D{constructor(t,n,r){super(),this.Forms=t,this.Add=n,this.Attributes=r}}class p1 extends D{constructor(t,n,r,l){super(),this.Value=t,this.Update=n,this.Default=r,this.Attributes=l}}class y1 extends D{constructor(t,n,r,l){super(),this.Index=t|0,this.Update=n,this.Values=r,this.ElementValues=l}}function g1(e,t,n){return ua(r=>{const l=t.Value(r),i=Ws((u,a)=>n(new y1(u,(d,m)=>t.Update(q0(u,d,l),m),r,a)),l),o=Fd((u,a)=>{const d=u.Result;if(d.tag===1){const m=d.fields[0][0],y=d.fields[0][1];return a.tag===1?new G(1,[[m,In(y,q(a.fields[0][0],a.fields[0][1]))]]):new G(1,[[m,y]])}else return ea(m=>q(d.fields[0],m),a)},i,new G(0,[H()])),s=At((u,a)=>a.IsEmpty&&u,!1,i);return new sa(e(new Id(Ws((u,a)=>new Md(a.Fields,()=>t.Update(In(Ad(u,l),b0(u+1,l)),r)),i),()=>t.Update(In(l,U(t.Default)),r),t.Attributes)),o,s)})}function w1(e){throw new Error(e)}const v1="Enumeration already finished.",E1="Enumeration has not started. Call MoveNext.",$d="The input sequence has an insufficient number of elements.",S1="Reset is not supported on this enumerator.";function C1(){throw new Error(S1)}function ca(){throw new Error(E1)}function Gs(){throw new Error(v1)}class _1{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const l=Le(t);try{for(;n<4&&l["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+kt(l["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ce(l)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Vo(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function k1(e){return new _1(e)}class x1{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){C1()}Dispose(){this.dispose()}}function jo(e,t,n){return new x1(e,t,n)}function F1(e){let t,n,r=!1,l=!1,i;const o=()=>{if(l=!0,n!=null){const s=x(n);try{Ce(s)}finally{n=void 0}}if(t!=null){const s=x(t);try{Ce(s)}finally{t=void 0}}};return jo(()=>(r?l&&Gs():ca(),i!=null?x(i):Gs()),()=>{let s;if(r||(r=!0),l)return!1;{let u;for(;u==null;){const a=t,d=n;if(a!=null)if(d!=null){const m=x(d);if(m["System.Collections.IEnumerator.MoveNext"]())i=mt(m["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{Ce(m)}finally{n=void 0}}else{const m=x(a);m["System.Collections.IEnumerator.MoveNext"]()?n=(s=m["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(s)):(o(),u=!1)}else t=Le(e)}return x(u)}},()=>{l||o()})}function A1(e,t){return jo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ce(t)}finally{e()}})}function Rd(e,t,n){let r=!1,l,i=mt(e());const o=()=>{if(i!=null){const u=x(i);try{n(u)}finally{i=void 0}}},s=()=>{try{o()}finally{l=void 0}};return jo(()=>(r||ca(),l!=null?x(l):Gs()),()=>{if(r||(r=!0),i!=null){const u=x(i);let a;try{a=t(u)}catch(d){throw s(),d}return a!=null?(l=a,!0):(s(),!1)}else return!1},o)}function N1(e,t){let n,r=t;return jo(()=>{if(n!=null){const l=x(n)[0];return x(n)[1],l}else return ca()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function T1(e,t){t==null&&w1(e)}function Jr(e){return k1(e)}function ar(e){return T1("source",e),Le(e)}function A(e){return Jr(()=>Le(e()))}function Vd(e){return Jr(()=>F1(e))}function P1(e,t){return Jr(()=>N1(e,t))}function rt(){return A(()=>new Array(0))}function N(e){return A(()=>V0(e))}function xe(e){return Jt(e)?C(e):e instanceof je?e:G0(e)}function Ld(e,t,n){return Jr(()=>Rd(e,t,n))}function M1(e,t,n){return Jr(()=>{let r=-1;return Rd(e,l=>(r=r+1|0,t(r,l)),n)})}function L(e,t){return Vd([e,t])}function I1(e,t){return Ld(()=>ar(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Ce(n)})}function $1(e,t,n){const r=ar(t);try{const l=ar(n);try{let i=0,o=r["System.Collections.IEnumerator.MoveNext"](),s=l["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&o&&s;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),l["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),s=l["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:o?1:s?-1:0)|0}finally{Ce(l)}}finally{Ce(r)}}function R1(e,t,n){const r=ar(n);try{let l=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)l=e(l,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return l}finally{Ce(r)}}function Dd(e,t){R1((n,r)=>{e(r)},void 0,t)}function Kt(e,t){return Ld(()=>ar(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?mt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ce(n)})}function V1(e,t){return Jr(()=>{const n=ar(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($d+"\\nParameter name: source");return A1(()=>{},n)}catch(r){throw Ce(n),r}})}function L1(e,t){return M1(()=>ar(t),(n,r)=>{if(n{Ce(n)})}function D1(e,t){return A(()=>Vd(Kt(e,t)))}class Od{constructor(t){this.k=t}}function ut(e){return new Od(e)}function j(e){return e.k}class ee extends Od{constructor(t,n,r,l){super(t),this.left=n,this.right=r,this.h=l|0}}function at(e,t,n,r){return new ee(e,t,n,r)}function ie(e){return e.left}function re(e){return e.right}function wr(e){return e.h}function zd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const l=x(n);if(l instanceof ee){const i=l;e=ie(i),t=zd(re(i),r+1);continue e}else return r+1|0}else return r|0}}function O1(e){return zd(e,0)}function Tt(e,t,n){let r,l,i;const o=e;if(o!=null){const d=x(o);i=d instanceof ee?(r=d,wr(r)):1}else i=0;let s;const u=n;if(u!=null){const d=x(u);s=d instanceof ee?(l=d,wr(l)):1}else s=0;const a=(im+2){const v=x(n);if(v instanceof ee){const P=v;if(i=ie(P),(i!=null?(o=x(i),o instanceof ee?(s=o,wr(s)):1):0)>m+1){const h=x(ie(P));if(h instanceof ee){const c=h;return Tt(Tt(e,t,ie(c)),j(c),Tt(re(c),j(P),re(P)))}else throw new Error("internal error: Set.rebalance")}else return Tt(Tt(e,t,ie(P)),j(P),re(P))}else throw new Error("internal error: Set.rebalance")}else if(m>w+2){const v=x(e);if(v instanceof ee){const P=v;if(u=re(P),(u!=null?(a=x(u),a instanceof ee?(d=a,wr(d)):1):0)>w+1){const h=x(re(P));if(h instanceof ee){const c=h;return Tt(Tt(ie(P),j(P),ie(c)),j(c),Tt(re(c),t,n))}else throw new Error("internal error: Set.rebalance")}else return Tt(ie(P),j(P),Tt(re(P),t,n))}else throw new Error("internal error: Set.rebalance")}else return Tt(e,t,n)}function Br(e,t,n){if(n!=null){const r=x(n),l=e.Compare(t,j(r))|0;if(r instanceof ee){const i=r;return l<0?Sc(Br(e,t,ie(i)),j(i),re(i)):l===0?n:Sc(ie(i),j(i),Br(e,t,re(i)))}else{const i=e.Compare(t,j(r))|0;return i<0?at(t,void 0,n,2):i===0?n:at(t,n,void 0,2)}}else return ut(t)}function Ud(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=x(i),s=r.Compare(l,j(o))|0;if(o instanceof ee){const u=o;if(s<0){e=r,t=l,n=ie(u);continue e}else{if(s===0)return!0;e=r,t=l,n=re(u);continue e}}else return s===0}else return!1}}function jd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=x(r);if(l instanceof ee){const i=l;jd(n,ie(i)),n(j(i)),e=n,t=re(i);continue e}else n(j(l))}break}}class z1 extends D{constructor(t,n){super(),this.stack=t,this.started=n}}function Bd(e){e:for(;;){const t=e;if(Z(t))return H();{const n=z(t),r=X(t);if(n!=null){const l=x(n);if(l instanceof ee){const i=l;e=de([ie(i),ut(j(i)),re(i)],r);continue e}else return t}else{e=r;continue e}}}}function Cc(e){return new z1(Bd(U(e)),!1)}function U1(){throw new Error("Enumeration not started")}function j1(){throw new Error("Enumeration already started")}function _c(e){if(e.started){const t=e.stack;if(Z(t))return j1();if(z(t)!=null){const n=x(z(t));return j(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return U1()}function B1(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(z(t)!=null){if(x(z(t))instanceof ee)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Bd(X(t)),!Z(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function kc(e){let t=Cc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _c(t)},"System.Collections.IEnumerator.get_Current"(){return _c(t)},"System.Collections.IEnumerator.MoveNext"(){return B1(t)},"System.Collections.IEnumerator.Reset"(){t=Cc(e)},Dispose(){}}}function H1(e,t,n){e:for(;;){const r=e,l=t,i=n;if(Z(l))return Z(i)?0:-1;if(Z(i))return 1;if(z(i)!=null)if(z(l)!=null){const o=x(z(l)),s=x(z(i));if(o instanceof ee){const u=o;if(ie(u)==null)if(s instanceof ee){const a=s;if(ie(a)==null){const d=r.Compare(j(u),j(a))|0;if(d!==0)return d|0;e=r,t=q(re(u),X(l)),n=q(re(a),X(i));continue e}else{let d,m,y,w,g;switch(Z(l)?Z(i)?d=2:z(i)!=null?(d=1,w=X(i),g=x(z(i))):d=2:z(l)!=null?(d=0,m=X(l),y=x(z(l))):Z(i)?d=2:z(i)!=null?(d=1,w=X(i),g=x(z(i))):d=2,d){case 0:if(y instanceof ee){const v=y;e=r,t=de([ie(v),at(j(v),void 0,re(v),0)],m),n=i;continue e}else{e=r,t=de([void 0,ut(j(y))],m),n=i;continue e}case 1:if(g instanceof ee){const v=g;e=r,t=l,n=de([ie(v),at(j(v),void 0,re(v),0)],w);continue e}else{e=r,t=l,n=de([void 0,ut(j(g))],w);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(j(u),j(s))|0;if(a!==0)return a|0;e=r,t=q(re(u),X(l)),n=q(void 0,X(i));continue e}else{let a,d,m,y,w;switch(Z(l)?Z(i)?a=2:z(i)!=null?(a=1,y=X(i),w=x(z(i))):a=2:z(l)!=null?(a=0,d=X(l),m=x(z(l))):Z(i)?a=2:z(i)!=null?(a=1,y=X(i),w=x(z(i))):a=2,a){case 0:if(m instanceof ee){const g=m;e=r,t=de([ie(g),at(j(g),void 0,re(g),0)],d),n=i;continue e}else{e=r,t=de([void 0,ut(j(m))],d),n=i;continue e}case 1:if(w instanceof ee){const g=w;e=r,t=l,n=de([ie(g),at(j(g),void 0,re(g),0)],y);continue e}else{e=r,t=l,n=de([void 0,ut(j(w))],y);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(s instanceof ee){const u=s;if(ie(u)==null){const a=r.Compare(j(o),j(u))|0;if(a!==0)return a|0;e=r,t=q(void 0,X(l)),n=q(re(u),X(i));continue e}else{let a,d,m,y,w;switch(Z(l)?Z(i)?a=2:z(i)!=null?(a=1,y=X(i),w=x(z(i))):a=2:z(l)!=null?(a=0,d=X(l),m=x(z(l))):Z(i)?a=2:z(i)!=null?(a=1,y=X(i),w=x(z(i))):a=2,a){case 0:if(m instanceof ee){const g=m;e=r,t=de([ie(g),at(j(g),void 0,re(g),0)],d),n=i;continue e}else{e=r,t=de([void 0,ut(j(m))],d),n=i;continue e}case 1:if(w instanceof ee){const g=w;e=r,t=l,n=de([ie(g),at(j(g),void 0,re(g),0)],y);continue e}else{e=r,t=l,n=de([void 0,ut(j(w))],y);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(j(o),j(s))|0;if(u!==0)return u|0;e=r,t=X(l),n=X(i);continue e}}else{x(z(i));let o,s,u,a,d;switch(Z(l)?Z(i)?o=2:z(i)!=null?(o=1,a=X(i),d=x(z(i))):o=2:z(l)!=null?(o=0,s=X(l),u=x(z(l))):Z(i)?o=2:z(i)!=null?(o=1,a=X(i),d=x(z(i))):o=2,o){case 0:if(u instanceof ee){const m=u;e=r,t=de([ie(m),at(j(m),void 0,re(m),0)],s),n=i;continue e}else{e=r,t=de([void 0,ut(j(u))],s),n=i;continue e}case 1:if(d instanceof ee){const m=d;e=r,t=l,n=de([ie(m),at(j(m),void 0,re(m),0)],a);continue e}else{e=r,t=l,n=de([void 0,ut(j(d))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(z(l)!=null){x(z(l));let o,s,u,a,d;switch(Z(l)?Z(i)?o=2:z(i)!=null?(o=1,a=X(i),d=x(z(i))):o=2:z(l)!=null?(o=0,s=X(l),u=x(z(l))):Z(i)?o=2:z(i)!=null?(o=1,a=X(i),d=x(z(i))):o=2,o){case 0:if(u instanceof ee){const m=u;e=r,t=de([ie(m),at(j(m),void 0,re(m),0)],s),n=i;continue e}else{e=r,t=de([void 0,ut(j(u))],s),n=i;continue e}case 1:if(d instanceof ee){const m=d;e=r,t=l,n=de([ie(m),at(j(m),void 0,re(m),0)],a);continue e}else{e=r,t=l,n=de([void 0,ut(j(d))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=X(l),n=X(i);continue e}}}function xc(e,t,n){return t==null?n==null?0:-1:n==null?1:H1(e,U(t),U(n))|0}function W1(e,t,n){let r=n;jd(l=>{t[r]=l,r=r+1|0},e)}function G1(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Br(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),l),n=i;continue e}else return l}}function Q1(e,t){return O0((n,r)=>Br(e,r,n),void 0,t)}function K1(e,t){return At((n,r)=>Br(e,r,n),void 0,t)}function Y1(e,t){if(Jt(t))return Q1(e,t);if(t instanceof je)return K1(e,t);{const n=Le(t);try{return G1(e,void 0,n)}finally{Ce(n)}}}class fa{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return J1(this)|0}Equals(t){let n;const r=this;return t instanceof fa&&(n=t,xc(Ir(r),$t(r),$t(n))===0)}toString(){return"set ["+Gn("; ",Kt(n=>kt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return xc(Ir(n),$t(n),$t(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ud(Ir(n),t,$t(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){W1($t(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return fs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return fs(this)|0}GetEnumerator(){return kc($t(this))}[Symbol.iterator](){return Vo(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return kc($t(this))}get size(){return fs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Hd(this,t)}keys(){return Kt(n=>n,this)}values(){return Kt(n=>n,this)}entries(){return Kt(n=>[n,n],this)}forEach(t,n){const r=this;Dd(l=>{t(l,l,r)},r)}}function da(e,t){return new fa(e,t)}function Ir(e){return e.comparer}function $t(e){return e.tree}function X1(e){return da(e,void 0)}function Z1(e,t){return da(Ir(e),Br(Ir(e),t,$t(e)))}function fs(e){return O1($t(e))}function Hd(e,t){return Ud(Ir(e),t,$t(e))}function J1(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+cn(r)+631|0}}finally{Ce(n)}return Math.abs(t)|0}function oo(e,t){return Hd(t,e)}function Wd(e,t){return Z1(t,e)}function Gd(e){return X1(e)}function b1(e,t){return da(t,Y1(t,e))}class ha extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["TextColor","TextDate","TextDateTimeLocal","TextEmail","TextNumber","TextPassword","TextSearch","TextTel","TextRaw","TextTime","TextArea"]}}class Re extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Radio","Checkbox","Select","File","Group","Section","List"]}}function st(e){return e1(e)}function J(e,t){return r1(e,t)}function q1(e,t){return l1(e,t)}function Me(e){return aa()(t=>new Re(0,[new ha(8,[]),t]))(e)}function Ll(e){return aa()(t=>new Re(0,[new ha(5,[]),t]))(e)}function ey(e){return aa()(t=>new Re(0,[new ha(10,[]),t]))(e)}function ty(e){return s1()(t=>new Re(2,[t]))(e)}function Qd(e){return i1()(t=>new Re(1,[t]))(e)}function ny(e){return a1()(t=>new Re(3,[t]))(e)}function ry(e){return h1()(t=>new Re(4,[t]))(e)}function ly(e){return ua(t=>{const n=qt(e)(t);return new sa(new Re(5,[n.Fields]),n.Result,n.IsEmpty)})}function Kd(e,t){return ua(n=>{const r=qt(t)(n);return new sa(new Re(6,[e,r.Fields]),r.Result,r.IsEmpty)})}function Yd(e,t){const n=qt(e)(t);return{Fields:n.Fields,IsEmpty:n.IsEmpty,Result:n.Result}}function Cl(e,t,n){const r=l=>e(l,t);switch(n.tag){case 1:return new Re(1,[ll(r,n.fields[0])]);case 2:return new Re(2,[ll(r,n.fields[0])]);case 3:return new Re(3,[ll(r,n.fields[0])]);case 4:return new Re(4,[ll(r,n.fields[0])]);case 5:return new Re(5,[Te(l=>new $n(Cl(e,t,l.State),l.Error,l.IsDisabled),n.fields[0])]);case 6:return new Re(6,[n.fields[0],Te(l=>new $n(Cl(e,t,l.State),l.Error,l.IsDisabled),n.fields[1])]);case 7:{const l=n.fields[0];return new Re(7,[new Id(Te(i=>new Md(Te(o=>new $n(Cl(e,t,o.State),o.Error,o.IsDisabled),i.Fields),()=>e(i.Delete(),t)),l.Forms),()=>e(l.Add(),t),l.Attributes)])}default:return new Re(0,[n.fields[0],ll(r,n.fields[1])])}}function iy(e,t){return g1(n=>new Re(7,[n]),e,n=>{const r=Yd(t(n.Index),n.ElementValues);return new Yt(Te(l=>new $n(Cl(n.Update,n.Values,l.State),l.Error,l.IsDisabled),r.Fields),r.Result,r.IsEmpty)})}function oy(e){return Td(e)}class sy extends D{constructor(t,n){super(),this.Value=t,this.Update=n}}function uy(e,t){return Td(n=>n1(r=>Cl(e.Update,n,r),t1(e.Value,t)))}class fn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Idle","Loading","Error","Success"]}}class Qs extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ErrorTracking"]}}class or extends D{constructor(t,n,r){super(),this.Values=t,this.State=n,this.ErrorTracking=r}}class en extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ValidateOnBlur","ValidateOnSubmit"]}}class yn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SubmitOnly","Custom"]}}class gn extends D{constructor(t,n,r,l){super(),this.Dispatch=t,this.OnChange=n,this.Action=r,this.Validation=l}}class ay extends D{constructor(t,n,r,l,i){super(),this.Dispatch=t,this.OnSubmit=n,this.State=r,this.Action=l,this.Fields=i}}class cy extends D{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class fy extends D{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class dy extends D{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class hy extends D{constructor(t,n,r,l,i,o,s,u){super(),this.Dispatch=t,this.OnChange=n,this.OnBlur=r,this.Disabled=l,this.Value=i,this.Error=o,this.ShowError=s,this.Attributes=u}}class my extends D{constructor(t,n,r,l,i,o,s){super(),this.Dispatch=t,this.OnChange=n,this.Disabled=r,this.Value=l,this.Error=i,this.ShowError=o,this.Attributes=s}}class py extends D{constructor(t,n,r,l,i){super(),this.Dispatch=t,this.Forms=n,this.Label=r,this.Add=l,this.Disabled=i}}class yy extends D{constructor(t,n,r,l){super(),this.Dispatch=t,this.Fields=n,this.Delete=r,this.Disabled=l}}function wn(e){return new or(e,new fn(0,[]),new Qs({ShowAllErrors:!1,ShowFieldError:Gd({Compare:js})}))}function gy(e){return new or(e.Values,new fn(1,[]),e.ErrorTracking)}class wy extends D{constructor(t,n,r,l,i,o,s,u,a,d,m,y,w,g,v,P,h,c,p,S){super(),this.Form=t,this.TextField=n,this.PasswordField=r,this.EmailField=l,this.ColorField=i,this.DateField=o,this.DateTimeLocalField=s,this.NumberField=u,this.SearchField=a,this.TelField=d,this.TimeField=m,this.TextAreaField=y,this.CheckboxField=w,this.RadioField=g,this.SelectField=v,this.FileField=P,this.Group=h,this.Section=c,this.FormList=p,this.FormListItem=S}}class Ks extends D{constructor(t,n,r,l){super(),this.OnChange=t,this.OnBlur=n,this.Disabled=r,this.ShowError=l}}class jt extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Password","Email","Color","Date","DateTimeLocal","Number","Search","Tel","Time"]}}function vy(e){switch(e.tag){case 1:return e.fields[0];case 2:return e.fields[0];default:return"This field is required"}}function Fc(e,t){return e==null?new $n(t.State,void 0,t.IsDisabled):t}function Ri(e,t,n,r){const l=o=>ir(s=>s(o),n.OnBlur),i=r.State;switch(i.tag){case 2:{const o=i.fields[0];return t.CheckboxField(new fy(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Text),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Text),o.Attributes))}case 1:{const o=i.fields[0];return t.RadioField(new dy(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Label),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Label),o.Attributes))}case 3:{const o=i.fields[0];return t.SelectField(new hy(e,s=>n.OnChange(o.Update(s)),l(o.Attributes.Label),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Label),o.Attributes))}case 4:{const o=i.fields[0];return t.FileField(new my(e,s=>n.OnChange(o.Update(s)),r.IsDisabled?!0:n.Disabled,o.Value,r.Error,n.ShowError(o.Attributes.Label),o.Attributes))}case 5:return t.Group(Te(o=>{let s;return(s=new Ks(n.OnChange,n.OnBlur,o.IsDisabled?!0:n.Disabled,n.ShowError),u=>Ri(e,t,s,u))(Fc(o.Error,o))},i.fields[0]));case 6:return t.Section(i.fields[0],Te(o=>{let s;return(s=new Ks(n.OnChange,n.OnBlur,o.IsDisabled?!0:n.Disabled,n.ShowError),u=>Ri(e,t,s,u))(Fc(o.Error,o))},i.fields[1]));case 7:{const o=i.fields[0].Attributes;return t.FormList(new py(e,Te(s=>t.FormListItem(new yy(e,Te(u=>Ri(e,t,n,u),s.Fields),ir(u=>({Action:()=>n.OnChange(s.Delete()),Label:u}),o.Delete),r.IsDisabled?!0:n.Disabled)),i.fields[0].Forms),o.Label,ir(s=>({Action:()=>n.OnChange(i.fields[0].Add()),Label:s}),o.Add),r.IsDisabled?!0:n.Disabled))}default:{const o=i.fields[0],s=i.fields[1],u=new cy(e,a=>n.OnChange(s.Update(a)),l(s.Attributes.Label),r.IsDisabled?!0:n.Disabled,s.Value,r.Error,n.ShowError(s.Attributes.Label),s.Attributes);switch(o.tag){case 5:return t.PasswordField(u);case 10:return t.TextAreaField(u);case 3:return t.EmailField(u);case 0:return t.ColorField(u);case 1:return t.DateField(u);case 2:return t.DateTimeLocalField(u);case 4:return t.NumberField(u);case 6:return t.SearchField(u);case 7:return t.TelField(u);case 9:return t.TimeField(u);default:return t.TextField(u)}}}}function Ey(e,t,n,r){let l,i;const o=Yd(n,r.Values);i=[o.Fields,o.Result];const s=i[1],u=r.ErrorTracking.fields[0];return e.Form(new ay(t.Dispatch,s.tag===1?u.ShowAllErrors?void 0:mt(t.OnChange(new or(r.Values,r.State,new Qs({ShowAllErrors:!0,ShowFieldError:u.ShowFieldError})))):nt(r.State,new fn(1,[]))?void 0:mt(s.fields[0]),r.State,t.Action,Te((l=new Ks(a=>t.OnChange(new or(a,r.State,r.ErrorTracking)),t.Validation.tag===0?a=>t.OnChange(new or(r.Values,r.State,new Qs({ShowAllErrors:u.ShowAllErrors,ShowFieldError:Wd(a,u.ShowFieldError)}))):void 0,nt(r.State,new fn(1,[])),a=>u.ShowAllErrors?!0:oo(a,u.ShowFieldError)),a=>Ri(t.Dispatch,e,l,a)),i[0])))}function Sy(e,t){console.error(mt(e),t)}function Ac(e,t,n){Vl(r=>{try{r(t)}catch(l){e(l)}},n)}function R(){return H()}function Fe(e,t){return Te(n=>r=>{n(l=>{r(e(l))})},t)}function Nc(e){return U(e)}function Cy(e,t,n){return U(r=>{e(t).then(l=>r(n(l)))})}function _y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xd={exports:{}},K={};/** * @license React * react.production.min.js * @@ -8,7 +8,16 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ni=Symbol.for("react.element"),cy=Symbol.for("react.portal"),fy=Symbol.for("react.fragment"),dy=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),py=Symbol.for("react.provider"),my=Symbol.for("react.context"),yy=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),wy=Symbol.for("react.memo"),vy=Symbol.for("react.lazy"),Nc=Symbol.iterator;function Sy(e){return e===null||typeof e!="object"?null:(e=Nc&&e[Nc]||e["@@iterator"],typeof e=="function"?e:null)}var Kd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yd=Object.assign,Xd={};function qr(e,t,n){this.props=e,this.context=t,this.refs=Xd,this.updater=n||Kd}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zd(){}Zd.prototype=qr.prototype;function fa(e,t,n){this.props=e,this.context=t,this.refs=Xd,this.updater=n||Kd}var da=fa.prototype=new Zd;da.constructor=fa;Yd(da,qr.prototype);da.isPureReactComponent=!0;var Fc=Array.isArray,Jd=Object.prototype.hasOwnProperty,ha={current:null},qd={key:!0,ref:!0,__self:!0,__source:!0};function bd(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Jd.call(t,r)&&!qd.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1=s&&o<=u&&(o=o<<32-r>>32-r);const[a,f]=Tc(n,r);if(o>=a&&o<=f)return o}}throw new Error("Input string was not in a correct format.")}const E=xy;function eh(e){return xt((t,n)=>{const r=t[0],l=t[1],i=n;return i[0]==="className"?[b(Ct(i[1]),r),l]:[r,b(n,l)]},[B(),B()],Cd(e))}function N(e,t){const n=eh(t);return b(["className",pr(" ",b(e,n[0]))],n[1])}function th(e){return h.createElement("label",x(N("label",U(["children",e]))))}function Ys(e){return h.createElement("p",x(N("help",_([["className","is-danger"],["children",e]]))))}function My(e,t){let n,r;switch(t!=null&&t.tag===2?(n=0,r=t.fields[0]):n=1,n){case 0:return Ys(r);default:return e?to(lr(Ys,lr(iy,t)),h.createElement("p",x(N("help",B())))):h.createElement("p",x(N("help",B())))}}function nh(e){return h.createElement("div",x(N("field",U(["children",E.Children.toArray(Array.from(e))]))))}function Uo(e,t,n,r){return nh(_([th(e),h.createElement("div",{className:"control",children:E.Children.toArray([r])}),My(t,n)]))}function jt(e,t){const n=t.ShowError,r=t.Error,l=t.Dispatch,i=t.Attributes;return Uo(i.Label,n,r,(e.tag===1?o=>h.createElement("input",x(b(["type","password"],N("input",o)))):e.tag===2?o=>h.createElement("input",x(b(["type","email"],N("input",o)))):e.tag===3?o=>h.createElement("input",x(b(["type","color"],N("input",o)))):e.tag===4?o=>h.createElement("input",x(b(["type","date"],N("input",o)))):e.tag===5?o=>h.createElement("input",x(b(["type","datetime-local"],N("input",o)))):e.tag===6?o=>h.createElement("input",x(b(["type","number"],N("input",o)))):e.tag===7?o=>h.createElement("input",x(b(["type","search"],N("input",o)))):e.tag===8?o=>h.createElement("input",x(b(["type","tel"],N("input",o)))):e.tag===9?o=>h.createElement("input",x(b(["type","time"],N("input",o)))):o=>h.createElement("input",x(b(["type","text"],N("input",o)))))(Ge(A(()=>z(I(["onChange",o=>{l(t.OnChange(o.target.value))}]),A(()=>{let o,s;return z((o=t.OnBlur,o==null?Dt():(s=k(o),I(["onBlur",u=>{l(s)}]))),A(()=>z(I(["disabled",t.Disabled]),A(()=>z(I(["value",t.Value]),A(()=>z(I(["placeholder",i.Placeholder]),A(()=>z(n&&r!=null?I(["className","is-danger"]):Dt(),A(()=>i.HtmlAttributes))))))))))}))))))}function Iy(e){const t=e.ShowError,n=e.Error,r=e.Dispatch,l=e.Attributes;return Uo(l.Label,t,n,h.createElement("textarea",x(N("textarea",Ge(A(()=>z(I(["onChange",i=>{r(e.OnChange(i.target.value))}]),A(()=>{let i,o;return z((i=e.OnBlur,i==null?Dt():(o=k(i),I(["onBlur",s=>{r(o)}]))),A(()=>z(I(["disabled",e.Disabled]),A(()=>z(I(["value",e.Value]),A(()=>z(I(["placeholder",l.Placeholder]),A(()=>z(t&&n!=null?I(["className","is-danger"]):Dt(),A(()=>l.HtmlAttributes))))))))))}))))))))}function $y(e){let t,n;const r=e.Dispatch;return nh(U((t=U(h.createElement("label",x(N("checkbox",U((n=[h.createElement("input",x(b(["type","checkbox"],N("checkbox",Ge(A(()=>z(I(["onChange",l=>{r(e.OnChange(l.target.checked))}]),A(()=>{let l,i;return z((l=e.OnBlur,l==null?Dt():(i=k(l),I(["onBlur",o=>{r(i)}]))),A(()=>z(I(["disabled",e.Disabled]),A(()=>I(["checked",e.Value])))))})))))))),e.Attributes.Text],["children",E.Children.toArray(Array.from(n))])))))),h.createElement("div",{className:"control",children:E.Children.toArray(Array.from(t))}))))}function Ry(e){let t;const n=e.Dispatch,r=e.Attributes;return Uo(r.Label,e.ShowError,e.Error,h.createElement("div",x(N("control",U((t=Me(l=>{const i=l[0],o=_([h.createElement("input",x(b(["type","radio"],N("radio",Ge(A(()=>z(I(["name",r.Label]),A(()=>z(I(["checked",i===e.Value]),A(()=>z(I(["disabled",e.Disabled]),A(()=>z(I(["onChange",s=>{s.target.checked,n(e.OnChange(i))}]),A(()=>{const s=e.OnBlur;if(s==null)return Dt();{const u=k(s);return I(["onBlur",a=>{n(u)}])}})))))))))))))),l[1]]);return h.createElement("label",{className:"radio",children:E.Children.toArray(Array.from(o))})},r.Options),["children",E.Children.toArray(Array.from(t))]))))))}function Ly(e){let t,n;const r=e.Dispatch,l=e.Attributes,i=h.createElement("option",{disabled:!0,value:"",children:"-- "+l.Placeholder+" --"});return Uo(l.Label,e.ShowError,e.Error,(t=eh(Ge(A(()=>z(I(["disabled",e.Disabled]),A(()=>z(I(["onChange",o=>{r(e.OnChange(o.target.value))}]),A(()=>{let o,s;return z((o=e.OnBlur,o==null?Dt():(s=k(o),I(["onBlur",u=>{r(s)}]))),A(()=>z(I(["value",e.Value]),A(()=>{let u;return I((u=Ge(A(()=>z(I(i),A(()=>Me(a=>h.createElement("option",{value:a[0],children:a[1]}),l.Options))))),["children",E.Children.toArray(Array.from(u))]))}))))}))))))),h.createElement("div",x(_([["className",pr(" ",b("select",t[0]))],(n=[h.createElement("select",x(t[1]))],["children",E.Children.toArray(Array.from(n))])])))))}function Vy(e){let t;const n=U(h.createElement("div",x(N("columns",U((t=Me(r=>h.createElement("div",{className:"column",children:E.Children.toArray([r])}),e),["children",E.Children.toArray(Array.from(t))]))))));return h.createElement("div",{className:"field",children:E.Children.toArray(Array.from(n))})}function Oy(e,t){let n;return h.createElement("fieldset",x(_([["className","fieldset"],(n=Ge(A(()=>z(I(h.createElement("legend",{children:e})),A(()=>t)))),["children",E.Children.toArray(Array.from(n))])])))}function Dy(e){let t,n,r;const l=e.Add;let i,o;switch(e.Disabled?o=1:l!=null?o=0:o=1,o){case 0:{const u=l;i=h.createElement("a",x(N("button",_([["onClick",a=>{e.Dispatch(u.Action())}],(t=[h.createElement("span",x(N("icon",_([["className","is-small"],(n=[h.createElement("i",{className:"fas fa-plus"})],["children",E.Children.toArray(Array.from(n))])])))),h.createElement("span",{children:[u.Label]})],["children",E.Children.toArray(Array.from(t))])]))));break}default:i=Et()}const s=U((r=Ge(A(()=>z(I(th(e.Label)),A(()=>z(e.Forms,A(()=>I(i))))))),h.createElement("div",{className:"control",children:E.Children.toArray(Array.from(r))})));return h.createElement("div",{className:"field",children:E.Children.toArray(Array.from(s))})}function zy(e){let t,n;const r=e.Delete;let l,i;switch(e.Disabled?i=1:r!=null?i=0:i=1,i){case 0:{const o=r;l=h.createElement("a",x(N("button",_([["onClick",s=>{e.Dispatch(o.Action())}],(t=Ge(A(()=>{let s;return z(I(h.createElement("span",x(N("icon",_([["className","is-small"],(s=[h.createElement("i",{className:"fas fa-times"})],["children",E.Children.toArray(Array.from(s))])]))))),A(()=>o.Label!==""?I(h.createElement("span",{children:[o.Label]})):Dt()))})),["children",E.Children.toArray(Array.from(t))])]))));break}default:l=Et()}return h.createElement("div",x(_([["className","form-list"],(n=Ge(A(()=>z(e.Fields,A(()=>{let o;return I(h.createElement("div",x(N("field",_([["className","is-grouped"],["className","is-grouped-right"],(o=[h.createElement("div",{className:"control",children:E.Children.toArray([l])})],["children",E.Children.toArray(Array.from(o))])])))))})))),["children",E.Children.toArray(Array.from(n))])])))}function Uy(e){let t;const n=e.State,r=e.Dispatch;return h.createElement("form",x(_([["onSubmit",l=>{l.stopPropagation(),l.preventDefault(),e0(lr(r,e.OnSubmit),()=>{})}],(t=Ge(A(()=>z(e.Fields,A(()=>{let l,i;return z((l=n,l.tag===3?I((i=U(h.createElement("div",x(N("control",_([["className","has-text-centered"],["className","has-text-success"],["className","has-text-weight-bold"],["children",l.fields[0]]]))))),h.createElement("div",{className:"field",children:E.Children.toArray(Array.from(i))}))):l.tag===1||l.tag===0?I(Et()):I(Ys(l.fields[0]))),A(()=>{let o,s;const u=e.Action;return u.tag===1?I(u.fields[0](n,r)):I(h.createElement("div",x(N("field",_([["className","is-grouped"],["className","is-grouped-right"],(o=[(s=U(h.createElement("button",x(N("button",Ge(A(()=>z(I(["type","submit"]),A(()=>z(I(["className","is-primary"]),A(()=>z(I(["children",u.fields[0]]),A(()=>nt(n,new sn(1,[]))?I(["className","is-loading"]):Dt())))))))))))),h.createElement("div",{className:"control",children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(o))])])))))}))})))),["children",E.Children.toArray(Array.from(t))])])))}function jy(){return new ly(Uy,e=>jt(new Ut(0,[]),e),e=>jt(new Ut(1,[]),e),e=>jt(new Ut(2,[]),e),e=>jt(new Ut(3,[]),e),e=>jt(new Ut(4,[]),e),e=>jt(new Ut(5,[]),e),e=>jt(new Ut(6,[]),e),e=>jt(new Ut(7,[]),e),e=>jt(new Ut(8,[]),e),e=>jt(new Ut(9,[]),e),Iy,$y,Ry,Ly,Vy,Oy,Dy,zy)}function Hn(e){return t=>n=>oy(jy(),e,t,n)}class rh{constructor(t,n){this.k=t,this.v=n}}function io(e,t){return new rh(e,t)}function Ze(e){return e.k}function at(e){return e.v}class ke extends rh{constructor(t,n,r,l,i){super(t,n),this.left=r,this.right=l,this.h=i|0}}function Li(e,t,n,r,l){return new ke(e,t,n,r,l)}function Ye(e){return e.left}function Xe(e){return e.right}function er(e){return e.h}function lh(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=k(r);if(l instanceof ke){const i=l;e=lh(n+1,Ye(i)),t=Xe(i);continue e}else return n+1|0}else return n|0}}function By(e){return lh(0,e)}function At(e,t,n,r){let l,i,o;const s=e;if(s!=null){const p=k(s);o=p instanceof ke?(l=p,er(l)):1}else o=0;let u;const a=r;if(a!=null){const p=k(a);u=p instanceof ke?(i=p,er(i)):1}else u=0;const f=(oy+2){const T=k(r);if(T instanceof ke){const d=T;if(o=Ye(d),(o!=null?(s=k(o),s instanceof ke?(u=s,er(u)):1):0)>y+1){const c=k(Ye(d));if(c instanceof ke){const m=c;return At(At(e,t,n,Ye(m)),Ze(m),at(m),At(Xe(m),Ze(d),at(d),Xe(d)))}else throw new Error("internal error: Map.rebalance")}else return At(At(e,t,n,Ye(d)),Ze(d),at(d),Xe(d))}else throw new Error("internal error: Map.rebalance")}else if(y>g+2){const T=k(e);if(T instanceof ke){const d=T;if(a=Xe(d),(a!=null?(f=k(a),f instanceof ke?(p=f,er(p)):1):0)>g+1){const c=k(Xe(d));if(c instanceof ke){const m=c;return At(At(Ye(d),Ze(d),at(d),Ye(m)),Ze(m),at(m),At(Xe(m),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(Ye(d),Ze(d),at(d),At(Xe(d),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return At(e,t,n,r)}function Vl(e,t,n,r){if(r!=null){const l=k(r),i=e.Compare(t,Ze(l))|0;if(l instanceof ke){const o=l;return i<0?Pc(Vl(e,t,n,Ye(o)),Ze(o),at(o),Xe(o)):i===0?Li(t,n,Ye(o),Xe(o),er(o)):Pc(Ye(o),Ze(o),at(o),Vl(e,t,n,Xe(o)))}else return i<0?Li(t,n,void 0,r,2):i===0?io(t,n):Li(t,n,r,void 0,2)}else return io(t,n)}function Hy(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=k(i),s=r.Compare(l,Ze(o))|0;if(s===0)return dt(at(o));if(o instanceof ke){const u=o;e=r,t=l,n=s<0?Ye(u):Xe(u);continue e}else return}else return}}function Wy(e,t,n){const r=Hy(e,t,n);if(r==null)throw new Error;return k(r)}function Gy(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=k(i),s=r.Compare(l,Ze(o))|0;if(o instanceof ke){const u=o;if(s<0){e=r,t=l,n=Ye(u);continue e}else{if(s===0)return!0;e=r,t=l,n=Xe(u);continue e}}else return s===0}else return!1}}function ih(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=k(r);if(l instanceof ke){const i=l;ih(n,Ye(i)),n(Ze(i),at(i)),e=n,t=Xe(i);continue e}else n(Ze(l),at(l))}break}}function Qy(e,t){ih(e,t)}function Ky(e,t,n){let r=n;Qy((l,i)=>{t[r]=[l,i],r=r+1|0},e)}function Yy(e,t){return xt((n,r)=>Vl(e,r[0],r[1],n),void 0,t)}function Xy(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Vl(r,o[0],o[1],l),n=i;continue e}else return l}}function Zy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const l=t[r];n=Vl(e,l[0],l[1],n)}return n}function Jy(e,t){if(Jt(t))return Zy(e,t);if(t instanceof De)return Yy(e,t);{const n=Ie(t);try{return Xy(e,void 0,n)}finally{Ee(n)}}}class qy extends O{constructor(t,n){super(),this.stack=t,this.started=n}}function oh(e){e:for(;;){const t=e;if(Z(t))return B();{const n=X(t),r=D(t);if(r!=null){const l=k(r);if(l instanceof ke){const i=l;e=de([Ye(i),io(Ze(i),at(i)),Xe(i)],n);continue e}else return t}else{e=n;continue e}}}}function Mc(e){return new qy(oh(U(e)),!1)}function by(){throw new Error("enumeration not started")}function eg(){throw new Error("enumeration already finished")}function Ic(e){if(e.started){const t=e.stack;if(Z(t))return eg();if(D(t)!=null){const n=k(D(t));if(n instanceof ke)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ze(n),at(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return by()}function tg(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(D(t)!=null){if(k(D(t))instanceof ke)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=oh(X(t)),!Z(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function $c(e){let t=Mc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.MoveNext"(){return tg(t)},"System.Collections.IEnumerator.Reset"(){t=Mc(e)},Dispose(){}}}class oo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return rg(this)|0}Equals(t){const n=this;if(t instanceof oo){const r=t,l=Ie(n);try{const i=Ie(r);try{const o=()=>{const s=l["System.Collections.IEnumerator.MoveNext"]();if(s===i["System.Collections.IEnumerator.MoveNext"]())if(s){const u=l["System.Collections.Generic.IEnumerator`1.get_Current"](),a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return nt(u[0],a[0])&&nt(u[1],a[1])?o():!1}else return!0;else return!1};return o()}finally{Ee(i)}}finally{Ee(l)}}else return!1}toString(){return"map ["+pr("; ",Kt(n=>x0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return $c(this.tree)}[Symbol.iterator](){return $o(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return $c(this.tree)}CompareTo(t){const n=this;if(t instanceof oo)return E1((l,i)=>{const o=n.comparer.Compare(l[0],i[0])|0;return(o!==0?o:qt(l[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Lc(n,t[0])&&nt(Rc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Ky(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ds(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ds(this)|0}get size(){return ds(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Kt(n=>[n[0],n[1]],this)}get(t){return Rc(this,t)}has(t){return Lc(this,t)}keys(){return Kt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Kt(n=>n[1],this)}forEach(t,n){const r=this;Rd(l=>{t(l[1],l[0],r)},r)}}function sh(e,t){return new oo(e,t)}function ng(e){return sh(e,void 0)}function Rc(e,t){return Wy(e.comparer,t,e.tree)}function ds(e){return By(e.tree)}function Lc(e,t){return Gy(e.comparer,t,e.tree)}function rg(e){const t=(l,i)=>(l<<1)+i+631;let n=0;const r=Ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,on(l[0]))|0,n=t(n,on(l[1]))|0}}finally{Ee(r)}return n|0}function lg(e,t){return sh(t,Jy(t,e))}function ig(e){return ng(e)}function Vc(e,t){let n,r,l;switch(e!=null&&t!=null?(n=0,r=k(e),l=k(t)):n=1,n){case 0:return[r,l];default:return}}function hs(e,t){try{return dt(e(t))}catch{return}}class jo extends O{constructor(t,n,r,l){super(),this.visited=t,this.unvisited=n,this.args=r,this.value=l}}function og(e,t,n,r){return new jo(e,t,n,r)}function sg(e,t){return new jo(t.visited,t.unvisited,t.args,e(t.value))}function Tt(e){return t=>{const n=t.unvisited;if(Z(n))return B();{const r=D(n);return r===e?U(og(b(r,t.visited),X(n),t.args,t.value)):B()}}}function Bt(e,t){return n=>Me(r=>sg(n.value,r),t(new jo(n.visited,n.unvisited,n.args,e)))}function ug(e,t){return Bs(n=>n(t),e)}function ag(e){return U(e)}function cg(e){e:for(;;){const t=e;if(Z(t))return;{const n=D(t),r=n.unvisited;let l;switch(Z(r)?l=0:D(r)===""&&Z(X(r))?l=1:l=2,l){case 0:return dt(n.value);case 1:return dt(n.value);default:{e=X(t);continue e}}}}}function fg(e){const t=_(e.split("/"));let n,r,l;switch(Z(t)?(n=1,l=t):D(t)===""?(n=0,r=X(t)):(n=1,l=t),n){case 0:return r;default:return l}}function dg(e,t,n){return cg(e(new jo(B(),fg(t),n,r=>r)))}function hg(e){let t;const n=e.split("=");let r;switch(!yc((l,i)=>l===i,n,Et())&&n.length===2?r=0:!yc((l,i)=>l===i,n,Et())&&n.length===1?(t=n[0],e.indexOf(t)===0?r=1:r=2):r=2,r){case 0:{const l=n[1];return Vc(hs(decodeURIComponent,n[0]),hs(decodeURIComponent,l))}case 1:return Vc(hs(decodeURIComponent,n[0]),"");default:return}}function pg(e){return Oo(e)?ig({Compare:Us}):lg(S1(t=>t,Kt(hg,e.split("&"))),{Compare:Us})}function mg(){return B()}function yg(e){return D0(e)}function gg(e,t,n){return Me(r=>[b(e,r[0]),l=>r[1](i=>{l(t(i))})],n)}function ma(e){return pr("/",e)}function wg(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ma(t),n])}function uh(e,t,n){try{Ee(n)}catch(r){e(["Error stopping subscription: "+ma(t),r])}}function vg(e,t,n,r){try{return[n,r(t)]}catch(l){e(["Error starting subscription: "+ma(n),l]);return}}function Sg(e,t){Rl(n=>{uh(e,n[0],n[1])},t)}function Oc(e,t,n,r,l,i){return Rl(o=>{wg(e,o)},n),Rl(o=>{uh(e,o[0],o[1])},r),Nn(l,j0(o=>vg(e,t,o[0],o[1]),i))}function Eg(){return[B(),Bd({Compare:qt}),B()]}function Cg(e,t,n,r,l){return lo(e,r)?[b(e,n),r,l]:[n,jd(e,r),b([e,t],l)]}function _g(e){return _d((t,n)=>Cg(t[0],t[1],n[0],n[1],n[2]),e,Eg())}const kg=B();function Dc(e,t){const n=U1(Me(o=>o[0],e),{Compare:qt}),r=_g(t),l=r[1],i=r[0];if(n.Equals(l))return[i,B(),e,B()];{const o=U0(s=>lo(s[0],l),e);return[i,o[1],o[0],z0(s=>!lo(s[0],n),r[2])]}}function xg(e,t,n,r){const l=qt(e,n)|0;if(l===0)throw new Error("The step of a range cannot be zero");const i=l>0;return o=>{const s=qt(o,t)|0;return i&&s<=0||!i&&s>=0?[o,r(o,e)]:void 0}}function Ng(e,t,n,r,l){const i=xg(t,n,r,l);return A(()=>w1(i,e))}function Fg(e,t,n){return Ng(e,t,n,0,(r,l)=>r+l)}class $r extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Ag{constructor(t){this.state=new $r(0,[Sd(new Array(mc(t,10)),0,mc(t,10),null),0])}}function Tg(e){return new Ag(e)}function zc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,l=t.fields[0],i=(r+1)%l.length|0;return i===n?e.state=new $r(0,[l,n]):e.state=new $r(1,[l,n,i]),dt(l[r])}else return}function Pg(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,l=n.fields[2]|0,i=n.fields[0];i[r]=t;const o=(r+1)%i.length|0;o===l?e.state=new $r(1,[Mg(e,l,i),i.length,0]):e.state=new $r(1,[i,o,l])}else{const r=n.fields[1]|0,l=n.fields[0];l[r]=t;const i=(r+1)%l.length|0;e.state=new $r(1,[l,i,r])}}function Mg(e,t,n){return Array.from(A(()=>z(_1(t,n),A(()=>z(k1(t,n),A(()=>x1(r=>I(Et()),Fg(0,1,n.length))))))))}class ya extends O{constructor(t,n,r,l,i,o,s){super(),this.init=t,this.update=n,this.subscribe=r,this.view=l,this.setState=i,this.onError=o,this.termination=s}}function Ig(e,t,n){return new ya(e,t,r=>mg(),n,Lt(r=>{const l=Sn(n)(r);return i=>{l(i)}}),r=>{sy(r[0],r[1])},[r=>!1,r=>{}])}function $g(e,t){return new ya(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Uc(e){return Sn(e.view)}function Rg(e,t,n,r,l,i,o){const s=Sn(e)(o.init),u=Mr(t)(Sn(o.update)),a=Mr(n)(Sn(o.view)),f=Mr(r)(Sn(o.setState));return new ya(s,Lt(u),Sn(l)(o.subscribe),Lt(a),Lt(f),o.onError,i(o.termination))}function Lg(e,t,n){let r;const l=n.init(t),i=l[0],o=n.subscribe(i),s=n.termination,u=Tg(10);let a=!1,f=i,p=kg,y=!1;const w=T=>{y||(Pg(u,T),a||(a=!0,v(),a=!1))},g=Sn(e)(w),v=()=>{let T,d=zc(u);for(;!y&&d!=null;){const c=k(d);if(s[0](c))Sg(n.onError,p),s[1](f),y=!0;else{const m=n.update(c,f),S=m[0],F=n.subscribe(S);n.setState(S,g),kc($=>{n.onError([ro(Il("Error handling the message: %A"))(c),$])},g,m[1]),f=S,p=(T=Dc(p,F),Oc(n.onError,g,T[0],T[1],T[2],T[3])),d=zc(u)}}};a=!0,n.setState(i,g),kc(T=>{n.onError([ro(Il("Error intitializing:")),T])},g,l[1]),p=(r=Dc(p,o),Oc(n.onError,g,r[0],r[1],r[2],r[3])),v(),a=!1}function Vg(e,t){Lg(Lt(n=>n),e,t)}function Og(e){Vg(void 0,e)}class ll extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Change","UserMsg"]}}function Dg(e,t,n){const r=new qm(i=>{throw new Error("`onChangeRef` has not been initialized.\nThis should not happen, please open an issue if the problem persist")}),l=i=>[i[0],Ve(o=>new ll(1,[o]),i[1])];return Rg((i,o)=>l(i(e(window.location))),(i,o,s)=>l(o.tag===1?i(o.fields[0])(s):t(e(o.fields[0]),s)),(i,o,s)=>i(o)(u=>{s(new ll(1,[u]))}),(i,o,s)=>{i(o)(u=>{s(new ll(1,[u]))})},(i,o)=>yg(_([U([U("onLocationChange"),s=>{let u;return r.contents=a=>{let f;switch(u!=null&&u===window.location.href?f=0:f=1,f){case 0:break;case 1:{u=window.location.href,s(new ll(0,[window.location]));break}}},window.addEventListener("popstate",r.contents),window.addEventListener("hashchange",r.contents),window.addEventListener("NavigatedEvent",r.contents),{Dispose(){window.removeEventListener("popstate",r.contents),window.removeEventListener("hashchange",r.contents),window.removeEventListener("NavigatedEvent",r.contents)}}}]),gg("user",s=>new ll(1,[s]),i(o))])),i=>[o=>o.tag===1?i[0](o.fields[0]):!1,o=>{window.removeEventListener("popstate",r.contents),window.removeEventListener("hashchange",r.contents),window.removeEventListener("NavigatedEvent",r.contents),i[1](o)}],n)}class so extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Simple","WithConfiguration"]}}function zg(e){return e.tag===1?"with-configuration":"simple"}class Te extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","SignUp","Login","DynamicForm","FormList","Composability","ValidationStrategies","CustomAction","NotFound"]}}function Ug(e){return"#"+(e.tag===1?"sign-up":e.tag===2?"login":e.tag===8?"not-found":e.tag===3?"dynamic-form":e.tag===5?"composability/"+zg(e.fields[0]):e.tag===6?"validation-strategies":e.tag===7?"custom-actions":e.tag===4?"form-list":"home")}const jg=(()=>{let e,t,n,r;const l=_([Bt(new Te(0,[]),Tt("home")),Bt(new Te(1,[]),Tt("sign-up")),Bt(new Te(2,[]),Tt("login")),Bt(new Te(3,[]),Tt("dynamic-form")),Bt(new Te(4,[]),Tt("form-list")),Bt(new Te(6,[]),Tt("validation-strategies")),Bt(new Te(7,[]),Tt("custom-actions")),Bt(new Te(5,[new so(0,[])]),(e=Tt("composability"),t=Tt("simple"),i=>Bs(t,e(i)))),Bt(new Te(5,[new so(1,[])]),(n=Tt("composability"),r=Tt("with-configuration"),i=>Bs(r,n(i)))),Bt(new Te(0,[]),ag)]);return i=>ug(l,i)})();function Bg(e){return["href",Ug(e)]}function Hg(e,t){return e}const Wg=ro(Il("https://github.com/MangelMaxime/Fable.Form/blob/%s/"))("master");function Wn(e,t){return Wg+pr("/",P0(n=>n!=="examples",F0(e,"\\","/").split("/")))+"/"+t}let Gn=class extends O{constructor(t,n,r,l,i,o){super(),this.Title=t,this.Description=n,this.Route=r,this.Remark=l,this.Code=i,this.GithubLink=o}};class Gg extends O{constructor(t,n){super(),this.Value=t,this.Error=n}}class ah extends O{constructor(t){super(),this.Email=t}}let Qg=class extends O{constructor(t,n,r,l){super(),this.Email=t,this.Password=n,this.Name=r,this.MakePublic=l}},bn=class extends O{constructor(t,n,r,l,i,o){super(),this.Email=t,this.Password=n,this.RepeatPassword=r,this.Name=l,this.MakePublic=i,this.Errors=o}},pl=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","SignedUp"]}},Bo=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","SignUp","SignupAttempted","ResetTheDemo"]}};function ch(){return[new pl(0,[Bn(new bn("","","","","",new ah(void 0)))]),L()]}function Kg(e,t){switch(e.tag){case 1:return t.tag===0?[new pl(0,[ry(t.fields[0])]),uy(()=>m0(e.fields[0].Email,e.fields[0].Name,e.fields[0].Password,e.fields[0].MakePublic),void 0,n=>new Bo(2,[n]))]:[t,L()];case 2:if(e.fields[0].tag===1)if(t.tag===0){const n=t.fields[0],r=n.Values;return[new pl(0,[new ir(new bn(r.Email,r.Password,r.RepeatPassword,r.Name,r.MakePublic,new ah(new Gg(r.Email,e.fields[0].fields[0]))),new sn(0,[]),n.ErrorTracking)]),L()]}else return[t,L()];else return[new pl(1,[e.fields[0].fields[0]]),L()];case 3:return ch();default:return t.tag===0?[new pl(0,[e.fields[0]]),L()]:[t,L()]}}function Yg(e){switch(e){case"option-yes":return!0;default:return!1}}const Xg=(()=>{let e;const t=Fe(new te(Vo,i=>i.Email,(i,o)=>new bn(i,o.Password,o.RepeatPassword,o.Name,o.MakePublic,o.Errors),i=>{const o=i.Errors.Email;if(o!=null){const s=o;return i.Email===s.Value?s.Error:void 0}},new ue("Email","some@email.com",B()))),n=Fe(new te(bu,i=>i.Name,(i,o)=>new bn(o.Email,o.Password,o.RepeatPassword,i,o.MakePublic,o.Errors),i=>{},new ue("Name","Your name",B()))),r=Ll(new te(ta,i=>i.Password,(i,o)=>new bn(o.Email,i,o.RepeatPassword,o.Name,o.MakePublic,o.Errors),i=>{},new ue("Password","Your password",B()))),l=K1(i=>Ll(new te(o=>o===i.Password?new W(0,[void 0]):new W(1,["The passwords do not match"]),o=>o.RepeatPassword,(o,s)=>new bn(s.Email,s.Password,o,s.Name,s.MakePublic,s.Errors),o=>{},new ue("Repeat password","Your password again...",B()))));return q(Hd(new te(i=>new W(0,[i]),i=>i.MakePublic,(i,o)=>new bn(o.Email,o.Password,o.RepeatPassword,o.Name,i,o.Errors),i=>{},new Fd("Make your profile public ?",_([["option-yes","Yes"],["option-no","No"]])))),(e=q(n,q(t,ht(i=>o=>s=>u=>new Bo(1,[new Qg(i,s,o,Yg(u))])))),q(G1(q(l,q(r,ht(i=>()=>i)))),e)))})();function di(e,t){const n=_([h.createElement("td",{children:[e]}),h.createElement("td",{children:[t]})]);return h.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function Zg(e,t){let n,r,l,i,o,s;const u=_([h.createElement("article",x(N("message",_([["className","is-success"],(n=[h.createElement("div",x(N("message-body",U(["children","User signed up with the following informations"]))))],["children",E.Children.toArray(Array.from(n))])])))),h.createElement("table",x(N("table",_([["className","is-striped"],(r=[(l=U((i=_([h.createElement("th",{children:["Field"]}),h.createElement("th",{children:["Value"]})]),h.createElement("tr",{children:E.Children.toArray(Array.from(i))}))),h.createElement("thead",{children:E.Children.toArray(Array.from(l))})),(o=_([di("Email",f0(e.Email)),di("Name",qu(e.Name)),di("Password",ea(e.Password)),di("Is profil public?",Ct(e.IsProfilePublic))]),h.createElement("tbody",{children:E.Children.toArray(Array.from(o))}))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(s=[h.createElement("button",x(N("button",_([["onClick",a=>{t(new Bo(3,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(s))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(u))})}function Jg(e,t){return e.tag===1?Zg(e.fields[0],t):Hn(new jn(t,n=>new Bo(0,[n]),new Un(0,["Sign up"]),new un(1,[])))(Xg)(e.fields[0])}const jc=new Gn("Sign up","A form demonstrating how to handle external errors",new Te(1,[]),void 0,` + */var li=Symbol.for("react.element"),ky=Symbol.for("react.portal"),xy=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),Ay=Symbol.for("react.profiler"),Ny=Symbol.for("react.provider"),Ty=Symbol.for("react.context"),Py=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Iy=Symbol.for("react.memo"),$y=Symbol.for("react.lazy"),Tc=Symbol.iterator;function Ry(e){return e===null||typeof e!="object"?null:(e=Tc&&e[Tc]||e["@@iterator"],typeof e=="function"?e:null)}var Zd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jd=Object.assign,bd={};function br(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Zd}br.prototype.isReactComponent={};br.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qd(){}qd.prototype=br.prototype;function ma(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Zd}var pa=ma.prototype=new qd;pa.constructor=ma;Jd(pa,br.prototype);pa.isPureReactComponent=!0;var Pc=Array.isArray,eh=Object.prototype.hasOwnProperty,ya={current:null},th={key:!0,ref:!0,__self:!0,__source:!0};function nh(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)eh.call(t,r)&&!th.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1=s&&o<=u&&(o=o<<32-r>>32-r);const[a,d]=Ic(n,r);if(o>=a&&o<=d)return o}}throw new Error("Input string was not in a correct format.")}const E=zy;function rh(e){return At((t,n)=>{const r=t[0],l=t[1],i=n;return i[0]==="className"?[q(kt(i[1]),r),l]:[r,q(n,l)]},[H(),H()],xd(e))}function F(e,t){const n=rh(t);return q(["className",Gn(" ",q(e,n[0]))],n[1])}function lh(e){return f.createElement("label",k(F("label",U(["children",e]))))}function Xs(e){return f.createElement("p",k(F("help",C([["className","is-danger"],["children",e]]))))}function Gy(e,t){let n,r;switch(t!=null&&t.tag===2?(n=0,r=t.fields[0]):n=1,n){case 0:return Xs(r);default:return e?ro(ir(Xs,ir(vy,t)),f.createElement("p",k(F("help",H())))):f.createElement("p",k(F("help",H())))}}function ih(e){return f.createElement("div",k(F("field",U(["children",E.Children.toArray(Array.from(e))]))))}function ii(e,t,n,r){return ih(C([lh(e),f.createElement("div",{className:"control",children:E.Children.toArray([r])}),Gy(t,n)]))}function Bt(e,t){const n=t.ShowError,r=t.Error,l=t.Dispatch,i=t.Attributes;return ii(i.Label,n,r,(e.tag===1?o=>f.createElement("input",k(q(["type","password"],F("input",o)))):e.tag===2?o=>f.createElement("input",k(q(["type","email"],F("input",o)))):e.tag===3?o=>f.createElement("input",k(q(["type","color"],F("input",o)))):e.tag===4?o=>f.createElement("input",k(q(["type","date"],F("input",o)))):e.tag===5?o=>f.createElement("input",k(q(["type","datetime-local"],F("input",o)))):e.tag===6?o=>f.createElement("input",k(q(["type","number"],F("input",o)))):e.tag===7?o=>f.createElement("input",k(q(["type","search"],F("input",o)))):e.tag===8?o=>f.createElement("input",k(q(["type","tel"],F("input",o)))):e.tag===9?o=>f.createElement("input",k(q(["type","time"],F("input",o)))):o=>f.createElement("input",k(q(["type","text"],F("input",o)))))(xe(A(()=>L(N(["onChange",o=>{l(t.OnChange(o.target.value))}]),A(()=>{let o,s;return L((o=t.OnBlur,o==null?rt():(s=x(o),N(["onBlur",u=>{l(s)}]))),A(()=>L(N(["disabled",t.Disabled]),A(()=>L(N(["value",t.Value]),A(()=>L(N(["placeholder",i.Placeholder]),A(()=>L(n&&r!=null?N(["className","is-danger"]):rt(),A(()=>i.HtmlAttributes))))))))))}))))))}function Qy(e){const t=e.ShowError,n=e.Error,r=e.Dispatch,l=e.Attributes;return ii(l.Label,t,n,f.createElement("textarea",k(F("textarea",xe(A(()=>L(N(["onChange",i=>{r(e.OnChange(i.target.value))}]),A(()=>{let i,o;return L((i=e.OnBlur,i==null?rt():(o=x(i),N(["onBlur",s=>{r(o)}]))),A(()=>L(N(["disabled",e.Disabled]),A(()=>L(N(["value",e.Value]),A(()=>L(N(["placeholder",l.Placeholder]),A(()=>L(t&&n!=null?N(["className","is-danger"]):rt(),A(()=>l.HtmlAttributes))))))))))}))))))))}function Ky(e){let t,n;const r=e.Dispatch;return ih(U((t=U(f.createElement("label",k(F("checkbox",U((n=[f.createElement("input",k(q(["type","checkbox"],F("checkbox",xe(A(()=>L(N(["onChange",l=>{r(e.OnChange(l.target.checked))}]),A(()=>{let l,i;return L((l=e.OnBlur,l==null?rt():(i=x(l),N(["onBlur",o=>{r(i)}]))),A(()=>L(N(["disabled",e.Disabled]),A(()=>N(["checked",e.Value])))))})))))))),e.Attributes.Text],["children",E.Children.toArray(Array.from(n))])))))),f.createElement("div",{className:"control",children:E.Children.toArray(Array.from(t))}))))}function Yy(e){let t;const n=e.Dispatch,r=e.Attributes;return ii(r.Label,e.ShowError,e.Error,f.createElement("div",k(F("control",U((t=Te(l=>{const i=l[0],o=C([f.createElement("input",k(q(["type","radio"],F("radio",xe(A(()=>L(N(["name",r.Label]),A(()=>L(N(["checked",i===e.Value]),A(()=>L(N(["disabled",e.Disabled]),A(()=>L(N(["onChange",s=>{s.target.checked,n(e.OnChange(i))}]),A(()=>{const s=e.OnBlur;if(s==null)return rt();{const u=x(s);return N(["onBlur",a=>{n(u)}])}})))))))))))))),l[1]]);return f.createElement("label",{className:"radio",children:E.Children.toArray(Array.from(o))})},r.Options),["children",E.Children.toArray(Array.from(t))]))))))}function Xy(e){let t,n;const r=e.Dispatch,l=e.Attributes,i=f.createElement("option",{disabled:!0,value:"",children:"-- "+l.Placeholder+" --"});return ii(l.Label,e.ShowError,e.Error,(t=rh(xe(A(()=>L(N(["disabled",e.Disabled]),A(()=>L(N(["onChange",o=>{r(e.OnChange(o.target.value))}]),A(()=>{let o,s;return L((o=e.OnBlur,o==null?rt():(s=x(o),N(["onBlur",u=>{r(s)}]))),A(()=>L(N(["value",e.Value]),A(()=>{let u;return N((u=xe(A(()=>L(N(i),A(()=>Te(a=>f.createElement("option",{value:a[0],children:a[1]}),l.Options))))),["children",E.Children.toArray(Array.from(u))]))}))))}))))))),f.createElement("div",k(C([["className",Gn(" ",q("select",t[0]))],(n=[f.createElement("select",k(t[1]))],["children",E.Children.toArray(Array.from(n))])])))))}function Zy(e){const t=e.Value,n=e.Attributes;return ii(n.Label,e.ShowError,e.Error,f.createElement("div",k(F("file",xe(A(()=>L(t.length!==0?N(["className","has-name"]):rt(),A(()=>{let r,l;return N((r=[(l=xe(A(()=>L(N(f.createElement("input",k(q(["type","file"],F("file-input",xe(A(()=>L(N(["onInput",i=>{const o=i.currentTarget.files;e.Dispatch(e.OnChange(L0(o.length,s=>o[s])))}]),A(()=>L(N(["multiple",n.Multiple]),A(()=>{let i;return L((i=n.Accept,i.tag===1?N(["accept",Gn(",",i.fields[0])]):rt()),A(()=>N(["disabled",e.Disabled])))}))))))))))),A(()=>{let i;return L(N((i=xe(A(()=>{let o,s,u;return L((o=n.FileIconClassName,o.tag===1?N((s=U(f.createElement("i",{className:o.fields[0]})),f.createElement("span",{className:"file-icon",children:E.Children.toArray(Array.from(s))}))):N(f.createElement("span",k(F("file-icon",U((u=` + + + + +`,["dangerouslySetInnerHTML",{__html:u}]))))))),A(()=>N(f.createElement("span",k(F("file-label",U(["children",n.InputLabel])))))))})),f.createElement("span",{className:"file-cta",children:E.Children.toArray(Array.from(i))}))),A(()=>t.length!==0?N(f.createElement("span",k(F("file-name",U(["children",z0(t).name]))))):rt()))})))),f.createElement("label",{className:"file-label",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(r))]))}))))))))}function Jy(e){let t;const n=U(f.createElement("div",k(F("columns",U((t=Te(r=>f.createElement("div",{className:"column",children:E.Children.toArray([r])}),e),["children",E.Children.toArray(Array.from(t))]))))));return f.createElement("div",{className:"field",children:E.Children.toArray(Array.from(n))})}function by(e,t){let n;return f.createElement("fieldset",k(C([["className","fieldset"],(n=xe(A(()=>L(N(f.createElement("legend",{children:e})),A(()=>t)))),["children",E.Children.toArray(Array.from(n))])])))}function qy(e){let t,n,r;const l=e.Add;let i,o;switch(e.Disabled?o=1:l!=null?o=0:o=1,o){case 0:{const u=l;i=f.createElement("a",k(F("button",C([["onClick",a=>{e.Dispatch(u.Action())}],(t=[f.createElement("span",k(F("icon",C([["className","is-small"],(n=[f.createElement("i",{className:"fas fa-plus"})],["children",E.Children.toArray(Array.from(n))])])))),f.createElement("span",{children:[u.Label]})],["children",E.Children.toArray(Array.from(t))])]))));break}default:i=_t()}const s=U((r=xe(A(()=>L(N(lh(e.Label)),A(()=>L(e.Forms,A(()=>N(i))))))),f.createElement("div",{className:"control",children:E.Children.toArray(Array.from(r))})));return f.createElement("div",{className:"field",children:E.Children.toArray(Array.from(s))})}function eg(e){let t,n;const r=e.Delete;let l,i;switch(e.Disabled?i=1:r!=null?i=0:i=1,i){case 0:{const o=r;l=f.createElement("a",k(F("button",C([["onClick",s=>{e.Dispatch(o.Action())}],(t=xe(A(()=>{let s;return L(N(f.createElement("span",k(F("icon",C([["className","is-small"],(s=[f.createElement("i",{className:"fas fa-times"})],["children",E.Children.toArray(Array.from(s))])]))))),A(()=>o.Label!==""?N(f.createElement("span",{children:[o.Label]})):rt()))})),["children",E.Children.toArray(Array.from(t))])]))));break}default:l=_t()}return f.createElement("div",k(C([["className","form-list"],(n=xe(A(()=>L(e.Fields,A(()=>{let o;return N(f.createElement("div",k(F("field",C([["className","is-grouped"],["className","is-grouped-right"],(o=[f.createElement("div",{className:"control",children:E.Children.toArray([l])})],["children",E.Children.toArray(Array.from(o))])])))))})))),["children",E.Children.toArray(Array.from(n))])])))}function tg(e){let t;const n=e.State,r=e.Dispatch;return f.createElement("form",k(C([["onSubmit",l=>{l.stopPropagation(),l.preventDefault(),i0(ir(r,e.OnSubmit),()=>{})}],(t=xe(A(()=>L(e.Fields,A(()=>{let l,i;return L((l=n,l.tag===3?N((i=U(f.createElement("div",k(F("control",C([["className","has-text-centered"],["className","has-text-success"],["className","has-text-weight-bold"],["children",l.fields[0]]]))))),f.createElement("div",{className:"field",children:E.Children.toArray(Array.from(i))}))):l.tag===1||l.tag===0?N(_t()):N(Xs(l.fields[0]))),A(()=>{let o,s;const u=e.Action;return u.tag===1?N(u.fields[0](n,r)):N(f.createElement("div",k(F("field",C([["className","is-grouped"],["className","is-grouped-right"],(o=[(s=U(f.createElement("button",k(F("button",xe(A(()=>L(N(["type","submit"]),A(()=>L(N(["className","is-primary"]),A(()=>L(N(["children",u.fields[0]]),A(()=>nt(n,new fn(1,[]))?N(["className","is-loading"]):rt())))))))))))),f.createElement("div",{className:"control",children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(o))])])))))}))})))),["children",E.Children.toArray(Array.from(t))])])))}function ng(){return new wy(tg,e=>Bt(new jt(0,[]),e),e=>Bt(new jt(1,[]),e),e=>Bt(new jt(2,[]),e),e=>Bt(new jt(3,[]),e),e=>Bt(new jt(4,[]),e),e=>Bt(new jt(5,[]),e),e=>Bt(new jt(6,[]),e),e=>Bt(new jt(7,[]),e),e=>Bt(new jt(8,[]),e),e=>Bt(new jt(9,[]),e),Qy,Ky,Yy,Xy,Zy,Jy,by,qy,eg)}function vn(e){return t=>n=>Ey(ng(),e,t,n)}class oh{constructor(t,n){this.k=t,this.v=n}}function so(e,t){return new oh(e,t)}function Ze(e){return e.k}function ft(e){return e.v}class Ae extends oh{constructor(t,n,r,l,i){super(t,n),this.left=r,this.right=l,this.h=i|0}}function Di(e,t,n,r,l){return new Ae(e,t,n,r,l)}function Ye(e){return e.left}function Xe(e){return e.right}function tr(e){return e.h}function sh(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=x(r);if(l instanceof Ae){const i=l;e=sh(n+1,Ye(i)),t=Xe(i);continue e}else return n+1|0}else return n|0}}function rg(e){return sh(0,e)}function Pt(e,t,n,r){let l,i,o;const s=e;if(s!=null){const m=x(s);o=m instanceof Ae?(l=m,tr(l)):1}else o=0;let u;const a=r;if(a!=null){const m=x(a);u=m instanceof Ae?(i=m,tr(i)):1}else u=0;const d=(oy+2){const P=x(r);if(P instanceof Ae){const h=P;if(o=Ye(h),(o!=null?(s=x(o),s instanceof Ae?(u=s,tr(u)):1):0)>y+1){const c=x(Ye(h));if(c instanceof Ae){const p=c;return Pt(Pt(e,t,n,Ye(p)),Ze(p),ft(p),Pt(Xe(p),Ze(h),ft(h),Xe(h)))}else throw new Error("internal error: Map.rebalance")}else return Pt(Pt(e,t,n,Ye(h)),Ze(h),ft(h),Xe(h))}else throw new Error("internal error: Map.rebalance")}else if(y>g+2){const P=x(e);if(P instanceof Ae){const h=P;if(a=Xe(h),(a!=null?(d=x(a),d instanceof Ae?(m=d,tr(m)):1):0)>g+1){const c=x(Xe(h));if(c instanceof Ae){const p=c;return Pt(Pt(Ye(h),Ze(h),ft(h),Ye(p)),Ze(p),ft(p),Pt(Xe(p),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Pt(Ye(h),Ze(h),ft(h),Pt(Xe(h),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Pt(e,t,n,r)}function Dl(e,t,n,r){if(r!=null){const l=x(r),i=e.Compare(t,Ze(l))|0;if(l instanceof Ae){const o=l;return i<0?$c(Dl(e,t,n,Ye(o)),Ze(o),ft(o),Xe(o)):i===0?Di(t,n,Ye(o),Xe(o),tr(o)):$c(Ye(o),Ze(o),ft(o),Dl(e,t,n,Xe(o)))}else return i<0?Di(t,n,void 0,r,2):i===0?so(t,n):Di(t,n,r,void 0,2)}else return so(t,n)}function lg(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=x(i),s=r.Compare(l,Ze(o))|0;if(s===0)return mt(ft(o));if(o instanceof Ae){const u=o;e=r,t=l,n=s<0?Ye(u):Xe(u);continue e}else return}else return}}function ig(e,t,n){const r=lg(e,t,n);if(r==null)throw new Error;return x(r)}function og(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i!=null){const o=x(i),s=r.Compare(l,Ze(o))|0;if(o instanceof Ae){const u=o;if(s<0){e=r,t=l,n=Ye(u);continue e}else{if(s===0)return!0;e=r,t=l,n=Xe(u);continue e}}else return s===0}else return!1}}function uh(e,t){e:for(;;){const n=e,r=t;if(r!=null){const l=x(r);if(l instanceof Ae){const i=l;uh(n,Ye(i)),n(Ze(i),ft(i)),e=n,t=Xe(i);continue e}else n(Ze(l),ft(l))}break}}function sg(e,t){uh(e,t)}function ug(e,t,n){let r=n;sg((l,i)=>{t[r]=[l,i],r=r+1|0},e)}function ag(e,t){return At((n,r)=>Dl(e,r[0],r[1],n),void 0,t)}function cg(e,t,n){e:for(;;){const r=e,l=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Dl(r,o[0],o[1],l),n=i;continue e}else return l}}function fg(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const l=t[r];n=Dl(e,l[0],l[1],n)}return n}function dg(e,t){if(Jt(t))return fg(e,t);if(t instanceof je)return ag(e,t);{const n=Le(t);try{return cg(e,void 0,n)}finally{Ce(n)}}}class hg extends D{constructor(t,n){super(),this.stack=t,this.started=n}}function ah(e){e:for(;;){const t=e;if(Z(t))return H();{const n=X(t),r=z(t);if(r!=null){const l=x(r);if(l instanceof Ae){const i=l;e=de([Ye(i),so(Ze(i),ft(i)),Xe(i)],n);continue e}else return t}else{e=n;continue e}}}}function Rc(e){return new hg(ah(U(e)),!1)}function mg(){throw new Error("enumeration not started")}function pg(){throw new Error("enumeration already finished")}function Vc(e){if(e.started){const t=e.stack;if(Z(t))return pg();if(z(t)!=null){const n=x(z(t));if(n instanceof Ae)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ze(n),ft(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return mg()}function yg(e){if(e.started){const t=e.stack;if(Z(t))return!1;if(z(t)!=null){if(x(z(t))instanceof Ae)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ah(X(t)),!Z(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Z(e.stack)}function Lc(e){let t=Rc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Vc(t)},"System.Collections.IEnumerator.get_Current"(){return Vc(t)},"System.Collections.IEnumerator.MoveNext"(){return yg(t)},"System.Collections.IEnumerator.Reset"(){t=Rc(e)},Dispose(){}}}class uo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return wg(this)|0}Equals(t){const n=this;if(t instanceof uo){const r=t,l=Le(n);try{const i=Le(r);try{const o=()=>{const s=l["System.Collections.IEnumerator.MoveNext"]();if(s===i["System.Collections.IEnumerator.MoveNext"]())if(s){const u=l["System.Collections.Generic.IEnumerator`1.get_Current"](),a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return nt(u[0],a[0])&&nt(u[1],a[1])?o():!1}else return!0;else return!1};return o()}finally{Ce(i)}}finally{Ce(l)}}else return!1}toString(){return"map ["+Gn("; ",Kt(n=>P0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Lc(this.tree)}[Symbol.iterator](){return Vo(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Lc(this.tree)}CompareTo(t){const n=this;if(t instanceof uo)return $1((l,i)=>{const o=n.comparer.Compare(l[0],i[0])|0;return(o!==0?o:bt(l[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Oc(n,t[0])&&nt(Dc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ug(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return hs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return hs(this)|0}get size(){return hs(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Kt(n=>[n[0],n[1]],this)}get(t){return Dc(this,t)}has(t){return Oc(this,t)}keys(){return Kt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Kt(n=>n[1],this)}forEach(t,n){const r=this;Dd(l=>{t(l[1],l[0],r)},r)}}function ch(e,t){return new uo(e,t)}function gg(e){return ch(e,void 0)}function Dc(e,t){return ig(e.comparer,t,e.tree)}function hs(e){return rg(e.tree)}function Oc(e,t){return og(e.comparer,t,e.tree)}function wg(e){const t=(l,i)=>(l<<1)+i+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,cn(l[0]))|0,n=t(n,cn(l[1]))|0}}finally{Ce(r)}return n|0}function vg(e,t){return ch(t,dg(t,e))}function Eg(e){return gg(e)}function zc(e,t){let n,r,l;switch(e!=null&&t!=null?(n=0,r=x(e),l=x(t)):n=1,n){case 0:return[r,l];default:return}}function ms(e,t){try{return mt(e(t))}catch{return}}class Bo extends D{constructor(t,n,r,l){super(),this.visited=t,this.unvisited=n,this.args=r,this.value=l}}function Sg(e,t,n,r){return new Bo(e,t,n,r)}function Cg(e,t){return new Bo(t.visited,t.unvisited,t.args,e(t.value))}function wt(e){return t=>{const n=t.unvisited;if(Z(n))return H();{const r=z(n);return r===e?U(Sg(q(r,t.visited),X(n),t.args,t.value)):H()}}}function Mt(e,t){return n=>Te(r=>Cg(n.value,r),t(new Bo(n.visited,n.unvisited,n.args,e)))}function _g(e,t){return Hs(n=>n(t),e)}function kg(e){return U(e)}function xg(e){e:for(;;){const t=e;if(Z(t))return;{const n=z(t),r=n.unvisited;let l;switch(Z(r)?l=0:z(r)===""&&Z(X(r))?l=1:l=2,l){case 0:return mt(n.value);case 1:return mt(n.value);default:{e=X(t);continue e}}}}}function Fg(e){const t=C(e.split("/"));let n,r,l;switch(Z(t)?(n=1,l=t):z(t)===""?(n=0,r=X(t)):(n=1,l=t),n){case 0:return r;default:return l}}function Ag(e,t,n){return xg(e(new Bo(H(),Fg(t),n,r=>r)))}function Ng(e){let t;const n=e.split("=");let r;switch(!vc((l,i)=>l===i,n,_t())&&n.length===2?r=0:!vc((l,i)=>l===i,n,_t())&&n.length===1?(t=n[0],e.indexOf(t)===0?r=1:r=2):r=2,r){case 0:{const l=n[1];return zc(ms(decodeURIComponent,n[0]),ms(decodeURIComponent,l))}case 1:return zc(ms(decodeURIComponent,n[0]),"");default:return}}function Tg(e){return zo(e)?Eg({Compare:js}):vg(I1(t=>t,Kt(Ng,e.split("&"))),{Compare:js})}function Pg(){return H()}function Mg(e){return Q0(e)}function Ig(e,t,n){return Te(r=>[q(e,r[0]),l=>r[1](i=>{l(t(i))})],n)}function wa(e){return Gn("/",e)}function $g(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+wa(t),n])}function fh(e,t,n){try{Ce(n)}catch(r){e(["Error stopping subscription: "+wa(t),r])}}function Rg(e,t,n,r){try{return[n,r(t)]}catch(l){e(["Error starting subscription: "+wa(n),l]);return}}function Vg(e,t){Vl(n=>{fh(e,n[0],n[1])},t)}function Uc(e,t,n,r,l,i){return Vl(o=>{$g(e,o)},n),Vl(o=>{fh(e,o[0],o[1])},r),In(l,X0(o=>Rg(e,t,o[0],o[1]),i))}function Lg(){return[H(),Gd({Compare:bt}),H()]}function Dg(e,t,n,r,l){return oo(e,r)?[q(e,n),r,l]:[n,Wd(e,r),q([e,t],l)]}function Og(e){return Fd((t,n)=>Dg(t[0],t[1],n[0],n[1],n[2]),e,Lg())}const zg=H();function jc(e,t){const n=b1(Te(o=>o[0],e),{Compare:bt}),r=Og(t),l=r[1],i=r[0];if(n.Equals(l))return[i,H(),e,H()];{const o=Y0(s=>oo(s[0],l),e);return[i,o[1],o[0],K0(s=>!oo(s[0],n),r[2])]}}function Ug(e,t,n,r){const l=bt(e,n)|0;if(l===0)throw new Error("The step of a range cannot be zero");const i=l>0;return o=>{const s=bt(o,t)|0;return i&&s<=0||!i&&s>=0?[o,r(o,e)]:void 0}}function jg(e,t,n,r,l){const i=Ug(t,n,r,l);return A(()=>P1(i,e))}function Bg(e,t,n){return jg(e,t,n,0,(r,l)=>r+l)}class $r extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Hg{constructor(t){this.state=new $r(0,[_d(new Array(wc(t,10)),0,wc(t,10),null),0])}}function Wg(e){return new Hg(e)}function Bc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,l=t.fields[0],i=(r+1)%l.length|0;return i===n?e.state=new $r(0,[l,n]):e.state=new $r(1,[l,n,i]),mt(l[r])}else return}function Gg(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,l=n.fields[2]|0,i=n.fields[0];i[r]=t;const o=(r+1)%i.length|0;o===l?e.state=new $r(1,[Qg(e,l,i),i.length,0]):e.state=new $r(1,[i,o,l])}else{const r=n.fields[1]|0,l=n.fields[0];l[r]=t;const i=(r+1)%l.length|0;e.state=new $r(1,[l,i,r])}}function Qg(e,t,n){return Array.from(A(()=>L(V1(t,n),A(()=>L(L1(t,n),A(()=>D1(r=>N(_t()),Bg(0,1,n.length))))))))}class va extends D{constructor(t,n,r,l,i,o,s){super(),this.init=t,this.update=n,this.subscribe=r,this.view=l,this.setState=i,this.onError=o,this.termination=s}}function Kg(e,t,n){return new va(e,t,r=>Pg(),n,Dt(r=>{const l=Fn(n)(r);return i=>{l(i)}}),r=>{Sy(r[0],r[1])},[r=>!1,r=>{}])}function Yg(e,t){return new va(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Hc(e){return Fn(e.view)}function Xg(e,t,n,r,l,i,o){const s=Fn(e)(o.init),u=Mr(t)(Fn(o.update)),a=Mr(n)(Fn(o.view)),d=Mr(r)(Fn(o.setState));return new va(s,Dt(u),Fn(l)(o.subscribe),Dt(a),Dt(d),o.onError,i(o.termination))}function Zg(e,t,n){let r;const l=n.init(t),i=l[0],o=n.subscribe(i),s=n.termination,u=Wg(10);let a=!1,d=i,m=zg,y=!1;const w=P=>{y||(Gg(u,P),a||(a=!0,v(),a=!1))},g=Fn(e)(w),v=()=>{let P,h=Bc(u);for(;!y&&h!=null;){const c=x(h);if(s[0](c))Vg(n.onError,m),s[1](d),y=!0;else{const p=n.update(c,d),S=p[0],T=n.subscribe(S);n.setState(S,g),Ac($=>{n.onError([io($l("Error handling the message: %A"))(c),$])},g,p[1]),d=S,m=(P=jc(m,T),Uc(n.onError,g,P[0],P[1],P[2],P[3])),h=Bc(u)}}};a=!0,n.setState(i,g),Ac(P=>{n.onError([io($l("Error intitializing:")),P])},g,l[1]),m=(r=jc(m,o),Uc(n.onError,g,r[0],r[1],r[2],r[3])),v(),a=!1}function Jg(e,t){Zg(Dt(n=>n),e,t)}function bg(e){Jg(void 0,e)}class il extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Change","UserMsg"]}}function qg(e,t,n){const r=new r0(i=>{throw new Error("`onChangeRef` has not been initialized.\nThis should not happen, please open an issue if the problem persist")}),l=i=>[i[0],Fe(o=>new il(1,[o]),i[1])];return Xg((i,o)=>l(i(e(window.location))),(i,o,s)=>l(o.tag===1?i(o.fields[0])(s):t(e(o.fields[0]),s)),(i,o,s)=>i(o)(u=>{s(new il(1,[u]))}),(i,o,s)=>{i(o)(u=>{s(new il(1,[u]))})},(i,o)=>Mg(C([U([U("onLocationChange"),s=>{let u;return r.contents=a=>{let d;switch(u!=null&&u===window.location.href?d=0:d=1,d){case 0:break;case 1:{u=window.location.href,s(new il(0,[window.location]));break}}},window.addEventListener("popstate",r.contents),window.addEventListener("hashchange",r.contents),window.addEventListener("NavigatedEvent",r.contents),{Dispose(){window.removeEventListener("popstate",r.contents),window.removeEventListener("hashchange",r.contents),window.removeEventListener("NavigatedEvent",r.contents)}}}]),Ig("user",s=>new il(1,[s]),i(o))])),i=>[o=>o.tag===1?i[0](o.fields[0]):!1,o=>{window.removeEventListener("popstate",r.contents),window.removeEventListener("hashchange",r.contents),window.removeEventListener("NavigatedEvent",r.contents),i[1](o)}],n)}class ao extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Simple","WithConfiguration"]}}function ew(e){return e.tag===1?"with-configuration":"simple"}class _e extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","SignUp","Login","File","DynamicForm","FormList","Composability","ValidationStrategies","CustomAction","NotFound"]}}function tw(e){return"#"+(e.tag===1?"sign-up":e.tag===2?"login":e.tag===3?"file":e.tag===9?"not-found":e.tag===4?"dynamic-form":e.tag===6?"composability/"+ew(e.fields[0]):e.tag===7?"validation-strategies":e.tag===8?"custom-actions":e.tag===5?"form-list":"home")}const nw=(()=>{let e,t,n,r;const l=C([Mt(new _e(0,[]),wt("home")),Mt(new _e(1,[]),wt("sign-up")),Mt(new _e(2,[]),wt("login")),Mt(new _e(3,[]),wt("file")),Mt(new _e(4,[]),wt("dynamic-form")),Mt(new _e(5,[]),wt("form-list")),Mt(new _e(7,[]),wt("validation-strategies")),Mt(new _e(8,[]),wt("custom-actions")),Mt(new _e(6,[new ao(0,[])]),(e=wt("composability"),t=wt("simple"),i=>Hs(t,e(i)))),Mt(new _e(6,[new ao(1,[])]),(n=wt("composability"),r=wt("with-configuration"),i=>Hs(r,n(i)))),Mt(new _e(0,[]),kg)]);return i=>_g(l,i)})();function rw(e){return["href",tw(e)]}function lw(e,t){return e}const iw=io($l("https://github.com/MangelMaxime/Fable.Form/blob/%s/"))("master");function En(e,t){return iw+Gn("/",D0(n=>n!=="examples",I0(e,"\\","/").split("/")))+"/"+t}let Sn=class extends D{constructor(t,n,r,l,i,o){super(),this.Title=t,this.Description=n,this.Route=r,this.Remark=l,this.Code=i,this.GithubLink=o}};class ow extends D{constructor(t,n){super(),this.Value=t,this.Error=n}}class dh extends D{constructor(t){super(),this.Email=t}}let sw=class extends D{constructor(t,n,r,l){super(),this.Email=t,this.Password=n,this.Name=r,this.MakePublic=l}},er=class extends D{constructor(t,n,r,l,i,o){super(),this.Email=t,this.Password=n,this.RepeatPassword=r,this.Name=l,this.MakePublic=i,this.Errors=o}},pl=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","SignedUp"]}},Ho=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","SignUp","SignupAttempted","ResetTheDemo"]}};function hh(){return[new pl(0,[wn(new er("","","","","",new dh(void 0)))]),R()]}function uw(e,t){switch(e.tag){case 1:return t.tag===0?[new pl(0,[gy(t.fields[0])]),Cy(()=>E0(e.fields[0].Email,e.fields[0].Name,e.fields[0].Password,e.fields[0].MakePublic),void 0,n=>new Ho(2,[n]))]:[t,R()];case 2:if(e.fields[0].tag===1)if(t.tag===0){const n=t.fields[0],r=n.Values;return[new pl(0,[new or(new er(r.Email,r.Password,r.RepeatPassword,r.Name,r.MakePublic,new dh(new ow(r.Email,e.fields[0].fields[0]))),new fn(0,[]),n.ErrorTracking)]),R()]}else return[t,R()];else return[new pl(1,[e.fields[0].fields[0]]),R()];case 3:return hh();default:return t.tag===0?[new pl(0,[e.fields[0]]),R()]:[t,R()]}}function aw(e){switch(e){case"option-yes":return!0;default:return!1}}const cw=(()=>{let e;const t=Me(new te(Oo,i=>i.Email,(i,o)=>new er(i,o.Password,o.RepeatPassword,o.Name,o.MakePublic,o.Errors),i=>{const o=i.Errors.Email;if(o!=null){const s=o;return i.Email===s.Value?s.Error:void 0}},new ae("Email","some@email.com",H()))),n=Me(new te(na,i=>i.Name,(i,o)=>new er(o.Email,o.Password,o.RepeatPassword,i,o.MakePublic,o.Errors),i=>{},new ae("Name","Your name",H()))),r=Ll(new te(la,i=>i.Password,(i,o)=>new er(o.Email,i,o.RepeatPassword,o.Name,o.MakePublic,o.Errors),i=>{},new ae("Password","Your password",H()))),l=oy(i=>Ll(new te(o=>o===i.Password?new G(0,[void 0]):new G(1,["The passwords do not match"]),o=>o.RepeatPassword,(o,s)=>new er(s.Email,s.Password,o,s.Name,s.MakePublic,s.Errors),o=>{},new ae("Repeat password","Your password again...",H()))));return J(Qd(new te(i=>new G(0,[i]),i=>i.MakePublic,(i,o)=>new er(o.Email,o.Password,o.RepeatPassword,o.Name,i,o.Errors),i=>{},new Pd("Make your profile public ?",C([["option-yes","Yes"],["option-no","No"]])))),(e=J(n,J(t,st(i=>o=>s=>u=>new Ho(1,[new sw(i,s,o,aw(u))])))),J(ly(J(l,J(r,st(i=>()=>i)))),e)))})();function mi(e,t){const n=C([f.createElement("td",{children:[e]}),f.createElement("td",{children:[t]})]);return f.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function fw(e,t){let n,r,l,i,o,s;const u=C([f.createElement("article",k(F("message",C([["className","is-success"],(n=[f.createElement("div",k(F("message-body",U(["children","User signed up with the following informations"]))))],["children",E.Children.toArray(Array.from(n))])])))),f.createElement("table",k(F("table",C([["className","is-striped"],(r=[(l=U((i=C([f.createElement("th",{children:["Field"]}),f.createElement("th",{children:["Value"]})]),f.createElement("tr",{children:E.Children.toArray(Array.from(i))}))),f.createElement("thead",{children:E.Children.toArray(Array.from(l))})),(o=C([mi("Email",y0(e.Email)),mi("Name",ta(e.Name)),mi("Password",ra(e.Password)),mi("Is profil public?",kt(e.IsProfilePublic))]),f.createElement("tbody",{children:E.Children.toArray(Array.from(o))}))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(s=[f.createElement("button",k(F("button",C([["onClick",a=>{t(new Ho(3,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(s))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(u))})}function dw(e,t){return e.tag===1?fw(e.fields[0],t):vn(new gn(t,n=>new Ho(0,[n]),new yn(0,["Sign up"]),new en(1,[])))(cw)(e.fields[0])}const Wc=new Sn("Sign up","A form demonstrating how to handle external errors",new _e(1,[]),void 0,` Form.succeed onSubmit |> Form.append emailField |> Form.append nameField @@ -20,12 +29,15 @@ Form.succeed onSubmit |> Form.group ) |> Form.append makePublicField - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","SignUp.fs"));let Vi=class extends O{constructor(t,n,r){super(),this.Email=t,this.Password=n,this.RememberMe=r}},fh=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","LogIn"]}};function qg(){return[Bn(new Vi("","",!1)),L()]}function bg(e,t){return e.tag===1?(C0(Il("%A"))(e.fields[1]),[new ir(t.Values,new sn(3,["You have been logged in successfully"]),t.ErrorTracking),L()]):[e.fields[0],L()]}const ew=(()=>{const e=Fe(new te(Vo,n=>n.Email,(n,r)=>new Vi(n,r.Password,r.RememberMe),n=>{},new ue("Email","some@email.com",U(["autoComplete","email"])))),t=Ll(new te(n=>new W(0,[n]),n=>n.Password,(n,r)=>new Vi(r.Email,n,r.RememberMe),n=>{},new ue("Password","Your password",U(["autoComplete","current-password"]))));return q(H1(new te(n=>new W(0,[n]),n=>n.RememberMe,(n,r)=>new Vi(r.Email,r.Password,n),n=>{},new q0("Remember me"))),q(t,q(e,ht(n=>r=>l=>new fh(1,[n,r,l])))))})();function tw(e,t){return Hn(new jn(t,n=>new fh(0,[n]),new Un(0,["Sign in"]),new un(1,[])))(ew)(e)}const Bc=new Gn("Login","A simple login form with 3 fields",new Te(2,[]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","SignUp.fs"));let Oi=class extends D{constructor(t,n,r){super(),this.Email=t,this.Password=n,this.RememberMe=r}},mh=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","LogIn"]}};function hw(){return[wn(new Oi("","",!1)),R()]}function mw(e,t){return e.tag===1?(A0($l("%A"))(e.fields[1]),[new or(t.Values,new fn(3,["You have been logged in successfully"]),t.ErrorTracking),R()]):[e.fields[0],R()]}const pw=(()=>{const e=Me(new te(Oo,n=>n.Email,(n,r)=>new Oi(n,r.Password,r.RememberMe),n=>{},new ae("Email","some@email.com",U(["autoComplete","email"])))),t=Ll(new te(n=>new G(0,[n]),n=>n.Password,(n,r)=>new Oi(r.Email,n,r.RememberMe),n=>{},new ae("Password","Your password",U(["autoComplete","current-password"]))));return J(ty(new te(n=>new G(0,[n]),n=>n.RememberMe,(n,r)=>new Oi(r.Email,r.Password,n),n=>{},new o1("Remember me"))),J(t,J(e,st(n=>r=>l=>new mh(1,[n,r,l])))))})();function yw(e,t){return vn(new gn(t,n=>new mh(0,[n]),new yn(0,["Sign in"]),new en(1,[])))(pw)(e)}const Gc=new Sn("Login","A simple login form with 3 fields",new _e(2,[]),void 0,` Form.succeed onSubmit |> Form.append emailField |> Form.append passwordField |> Form.append rememberMe - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","Login.fs"));let Ol=class extends O{constructor(t,n,r){super(),this.UserType=t,this.Name=n,this.Subject=r}};class Hc extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Student","Teacher"]}}function dh(e){switch(e){case"student":return new W(0,[new Hc(0,[])]);case"teacher":return new W(0,[new Hc(1,[])]);default:return new W(1,["Invalid user type"])}}let Oi=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","CreatedATeacher","CreatedAStudent"]}},Ho=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","NewStudent","NewTeacher","ResetDemo"]}};function hh(){return[new Oi(0,[Bn(new Ol("","",""))]),L()]}function nw(e,t){switch(e.tag){case 1:switch(t.tag){case 2:case 1:return[t,L()];default:return[new Oi(2,[e.fields[0]]),L()]}case 2:switch(t.tag){case 2:case 1:return[t,L()];default:return[new Oi(1,[e.fields[0],e.fields[1]]),L()]}case 3:return hh();default:switch(t.tag){case 2:case 1:return[t,L()];default:return[new Oi(0,[e.fields[0]]),L()]}}}const rw=Wd("Student",q(Fe(new te(e=>new W(0,[e]),e=>e.Name,(e,t)=>new Ol(t.UserType,e,t.Subject),e=>{},new ue("Name","Student name",B()))),ht(e=>new Ho(1,[e])))),lw=(()=>{const e=Fe(new te(t=>new W(0,[t]),t=>t.Name,(t,n)=>new Ol(n.UserType,t,n.Subject),t=>{},new ue("Name","Teacher name",B())));return Wd("Teacher",q(Fe(new te(t=>new W(0,[t]),t=>t.Subject,(t,n)=>new Ol(n.UserType,n.Name,t),t=>{},new ue("Subject","Taught subject",B()))),q(e,ht(t=>n=>new Ho(2,[t,n])))))})(),iw=j1(e=>e.tag===1?lw:rw,W1(new te(dh,e=>e.UserType,(e,t)=>new Ol(e,t.Name,t.Subject),e=>{},new e1("Type of user","Choose a user type",_([["student","Student"],["teacher","Teacher"]])))));function ph(e,t){let n;const r=_([h.createElement("article",x(N("message",_([["className","is-success"],["children",E.Children.toArray([e])]])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(n=[h.createElement("button",x(N("button",_([["onClick",l=>{t(new Ho(3,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(n))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(r))})}function ow(e,t){let n;return ph((n=_(["A new student has been created",h.createElement("br",{}),"His name is: ",h.createElement("b",{children:[e]})]),h.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(n))})),t)}function sw(e,t,n){let r;return ph((r=_(["A new teacher has been created",h.createElement("br",{}),"His name is: ",h.createElement("b",{children:[e]}),h.createElement("br",{}),"He is teaching: ",h.createElement("b",{children:[t]})]),h.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(r))})),n)}function uw(e,t){let n;switch(e.tag){case 2:return ow(e.fields[0],t);case 1:return sw(e.fields[0],e.fields[1],t);default:{const r=e.fields[0];return Hn(new jn(t,l=>new Ho(0,[l]),new Un(0,[(n=dh(r.Values.UserType),n.tag===1?"Create":n.fields[0].tag===1?"Create teacher":"Create student")]),new un(1,[])))(iw)(r)}}}const Wc=new Gn("Dynamic form","A form that changes dynamically based on its own values",new Te(3,[]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","Login.fs"));let ph=class extends D{constructor(t){super(),this.Files=t}},Zs=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","FileUploaded"]}},Js=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","SendFiles","ResetDemo"]}};function yh(){return[new Zs(0,[wn(new ph(new Array(0)))]),R()]}function gw(e,t){switch(e.tag){case 1:return[new Zs(1,[C(R0(n=>n.name,e.fields[0]))]),R()];case 2:return yh();default:return t.tag===1?[t,R()]:[new Zs(0,[e.fields[0]]),R()]}}const ww=J(ry(new te(e=>new G(0,[e]),e=>e.Files,(e,t)=>new ph(e),e=>{},new d1("Invoices","Choose one or more PDF files",new c1(1,[U(".pdf")]),new f1(0,[]),!0))),st(e=>new Js(1,[e])));function vw(e,t){let n,r,l,i;if(e.tag===1){const o=C([f.createElement("div",k(F("",C([["className","is-size-6"],["className","has-text-weight-bold"],["children","List of files uploaded"]])))),(n=U((r=Te(s=>f.createElement("li",{children:E.Children.toArray([s])}),e.fields[0]),f.createElement("ul",{children:E.Children.toArray(Array.from(r))}))),f.createElement("div",{children:E.Children.toArray(Array.from(n))})),f.createElement("br",{}),f.createElement("p",k(F("",C([["className","has-text-centered"],(l=[f.createElement("button",k(F("button",C([["onClick",s=>{t(new Js(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(l))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(o))})}else{const o=C([f.createElement("article",k(F("message",C([["className","is-info"],(i=[f.createElement("div",{className:"message-body",children:E.Children.toArray(["Files are not uploaded to the server, we are faking it for the demo"])})],["children",E.Children.toArray(Array.from(i))])])))),vn(new gn(t,s=>new Js(0,[s]),new yn(0,["Send"]),new en(1,[])))(ww)(e.fields[0])]);return f.createElement("div",{children:E.Children.toArray(Array.from(o))})}}const Qc=new Sn("File upload","A simple file upload form",new _e(3,[]),void 0,` +Form.succeed onSubmit +|> Form.append fileField + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","File.fs"));let Ol=class extends D{constructor(t,n,r){super(),this.UserType=t,this.Name=n,this.Subject=r}};class Kc extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Student","Teacher"]}}function gh(e){switch(e){case"student":return new G(0,[new Kc(0,[])]);case"teacher":return new G(0,[new Kc(1,[])]);default:return new G(1,["Invalid user type"])}}let zi=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","CreatedATeacher","CreatedAStudent"]}},Wo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","NewStudent","NewTeacher","ResetDemo"]}};function wh(){return[new zi(0,[wn(new Ol("","",""))]),R()]}function Ew(e,t){switch(e.tag){case 1:switch(t.tag){case 2:case 1:return[t,R()];default:return[new zi(2,[e.fields[0]]),R()]}case 2:switch(t.tag){case 2:case 1:return[t,R()];default:return[new zi(1,[e.fields[0],e.fields[1]]),R()]}case 3:return wh();default:switch(t.tag){case 2:case 1:return[t,R()];default:return[new zi(0,[e.fields[0]]),R()]}}}const Sw=Kd("Student",J(Me(new te(e=>new G(0,[e]),e=>e.Name,(e,t)=>new Ol(t.UserType,e,t.Subject),e=>{},new ae("Name","Student name",H()))),st(e=>new Wo(1,[e])))),Cw=(()=>{const e=Me(new te(t=>new G(0,[t]),t=>t.Name,(t,n)=>new Ol(n.UserType,t,n.Subject),t=>{},new ae("Name","Teacher name",H())));return Kd("Teacher",J(Me(new te(t=>new G(0,[t]),t=>t.Subject,(t,n)=>new Ol(n.UserType,n.Name,t),t=>{},new ae("Subject","Taught subject",H()))),J(e,st(t=>n=>new Wo(2,[t,n])))))})(),_w=q1(e=>e.tag===1?Cw:Sw,ny(new te(gh,e=>e.UserType,(e,t)=>new Ol(e,t.Name,t.Subject),e=>{},new u1("Type of user","Choose a user type",C([["student","Student"],["teacher","Teacher"]])))));function vh(e,t){let n;const r=C([f.createElement("article",k(F("message",C([["className","is-success"],["children",E.Children.toArray([e])]])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(n=[f.createElement("button",k(F("button",C([["onClick",l=>{t(new Wo(3,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(n))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(r))})}function kw(e,t){let n;return vh((n=C(["A new student has been created",f.createElement("br",{}),"His name is: ",f.createElement("b",{children:[e]})]),f.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(n))})),t)}function xw(e,t,n){let r;return vh((r=C(["A new teacher has been created",f.createElement("br",{}),"His name is: ",f.createElement("b",{children:[e]}),f.createElement("br",{}),"He is teaching: ",f.createElement("b",{children:[t]})]),f.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(r))})),n)}function Fw(e,t){let n;switch(e.tag){case 2:return kw(e.fields[0],t);case 1:return xw(e.fields[0],e.fields[1],t);default:{const r=e.fields[0];return vn(new gn(t,l=>new Wo(0,[l]),new yn(0,[(n=gh(r.Values.UserType),n.tag===1?"Create":n.fields[0].tag===1?"Create teacher":"Create student")]),new en(1,[])))(_w)(r)}}}const Yc=new Sn("Dynamic form","A form that changes dynamically based on its own values",new _e(4,[]),void 0,` userTypeField |> Form.andThen ( function @@ -35,7 +47,7 @@ userTypeField | Teacher -> teacherForm ) - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","DynamicForm.fs"));class aw extends O{constructor(t,n,r){super(),this.Title=t,this.Author=n,this.Summary=r}}class Cl extends O{constructor(t,n,r){super(),this.Title=t,this.Author=n,this.Summary=r}}let Xs=class extends O{constructor(t,n){super(),this.Name=t,this.Books=n}},Zs=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","FormFilled"]}},ga=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function mh(){return[new Zs(0,[Bn(new Xs("",U(new Cl("The warded man","Peter V. Brett","The Painted Man, book one of the Demon Cycle, is a captivating and thrilling fantasy adventure, pulling the reader into a world of demons, darkness and heroes."))))]),L()]}function cw(e,t){switch(e.tag){case 1:return t.tag===1?[t,L()]:[new Zs(1,[e.fields[0],e.fields[1]]),L()];case 2:return mh();default:return t.tag===1?[t,L()]:[new Zs(0,[e.fields[0]]),L()]}}function fw(e){const t=Fe(new te(r=>new W(0,[r]),r=>r.Title,(r,l)=>new Cl(r,l.Author,l.Summary),r=>{},new ue("Name of book #"+Sl(e+1),"",B()))),n=Fe(new te(r=>new W(0,[r]),r=>r.Author,(r,l)=>new Cl(l.Title,r,l.Summary),r=>{},new ue("Author of book #"+Sl(e+1),"",B())));return q(B1(new te(r=>new W(0,[r]),r=>r.Summary,(r,l)=>new Cl(l.Title,l.Author,r),r=>{},new ue("Summary of book #"+Sl(e+1),"",B()))),q(n,q(t,ht(r=>l=>i=>new aw(r,l,i)))))}const dw=(()=>{const e=q(Fe(new te(t=>new W(0,[t]),t=>t.Name,(t,n)=>new Xs(t,n.Books),t=>{},new ue("Name","Your name",B()))),ht(t=>n=>new ga(1,[t,n])));return q(Q1(new r1(t=>t.Books,(t,n)=>new Xs(n.Name,t),new Cl("","",""),new n1("Books","Add book","Remove book")),fw),e)})();function hw(e,t){let n;const r=_([(n=U(h.createElement("b",{children:[Sl(e+1)]})),h.createElement("td",{children:E.Children.toArray(Array.from(n))})),h.createElement("td",{children:[t.Title]}),h.createElement("td",{children:[t.Author]}),h.createElement("td",{children:[t.Summary]})]);return h.createElement("tr",{children:E.Children.toArray(Array.from(r))})}function pw(e,t,n){let r,l,i,o,s,u,a;const f=_([h.createElement("article",x(N("message",_([["className","is-success"],(r=[(l=_(["Thank you ",h.createElement("b",{children:[e]})," for creating those ",h.createElement("b",{children:[Sl(ra(t))]})," book(s)"]),h.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("table",x(N("table",_([["className","is-striped"],["className","is-vcentered-cells"],(i=[(o=U((s=_([h.createElement("th",{children:["#"]}),h.createElement("th",{children:["Title"]}),h.createElement("th",{children:["Author"]}),h.createElement("th",{children:["Description"]})]),h.createElement("tr",{children:E.Children.toArray(Array.from(s))}))),h.createElement("thead",{children:E.Children.toArray(Array.from(o))})),(u=Hs(hw,t),h.createElement("tbody",{children:E.Children.toArray(Array.from(u))}))],["children",E.Children.toArray(Array.from(i))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(a=[h.createElement("button",x(N("button",_([["onClick",p=>{n(new ga(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(a))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(f))})}function mw(e,t){return e.tag===1?pw(e.fields[0],e.fields[1],t):Hn(new jn(t,n=>new ga(0,[n]),new Un(0,["Submit"]),new un(1,[])))(dw)(e.fields[0])}const Gc=new Gn("Form list","A form where you can add and remove a list of forms",new Te(4,[]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","DynamicForm.fs"));class Aw extends D{constructor(t,n,r){super(),this.Title=t,this.Author=n,this.Summary=r}}class _l extends D{constructor(t,n,r){super(),this.Title=t,this.Author=n,this.Summary=r}}let bs=class extends D{constructor(t,n){super(),this.Name=t,this.Books=n}},qs=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","FormFilled"]}},Ea=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function Eh(){return[new qs(0,[wn(new bs("",U(new _l("The warded man","Peter V. Brett","The Painted Man, book one of the Demon Cycle, is a captivating and thrilling fantasy adventure, pulling the reader into a world of demons, darkness and heroes."))))]),R()]}function Nw(e,t){switch(e.tag){case 1:return t.tag===1?[t,R()]:[new qs(1,[e.fields[0],e.fields[1]]),R()];case 2:return Eh();default:return t.tag===1?[t,R()]:[new qs(0,[e.fields[0]]),R()]}}function Tw(e){const t=Me(new te(r=>new G(0,[r]),r=>r.Title,(r,l)=>new _l(r,l.Author,l.Summary),r=>{},new ae("Name of book #"+Sl(e+1),"",H()))),n=Me(new te(r=>new G(0,[r]),r=>r.Author,(r,l)=>new _l(l.Title,r,l.Summary),r=>{},new ae("Author of book #"+Sl(e+1),"",H())));return J(ey(new te(r=>new G(0,[r]),r=>r.Summary,(r,l)=>new _l(l.Title,l.Author,r),r=>{},new ae("Summary of book #"+Sl(e+1),"",H()))),J(n,J(t,st(r=>l=>i=>new Aw(r,l,i)))))}const Pw=(()=>{const e=J(Me(new te(t=>new G(0,[t]),t=>t.Name,(t,n)=>new bs(t,n.Books),t=>{},new ae("Name","Your name",H()))),st(t=>n=>new Ea(1,[t,n])));return J(iy(new p1(t=>t.Books,(t,n)=>new bs(n.Name,t),new _l("","",""),new m1("Books","Add book","Remove book")),Tw),e)})();function Mw(e,t){let n;const r=C([(n=U(f.createElement("b",{children:[Sl(e+1)]})),f.createElement("td",{children:E.Children.toArray(Array.from(n))})),f.createElement("td",{children:[t.Title]}),f.createElement("td",{children:[t.Author]}),f.createElement("td",{children:[t.Summary]})]);return f.createElement("tr",{children:E.Children.toArray(Array.from(r))})}function Iw(e,t,n){let r,l,i,o,s,u,a;const d=C([f.createElement("article",k(F("message",C([["className","is-success"],(r=[(l=C(["Thank you ",f.createElement("b",{children:[e]})," for creating those ",f.createElement("b",{children:[Sl(oa(t))]})," book(s)"]),f.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("table",k(F("table",C([["className","is-striped"],["className","is-vcentered-cells"],(i=[(o=U((s=C([f.createElement("th",{children:["#"]}),f.createElement("th",{children:["Title"]}),f.createElement("th",{children:["Author"]}),f.createElement("th",{children:["Description"]})]),f.createElement("tr",{children:E.Children.toArray(Array.from(s))}))),f.createElement("thead",{children:E.Children.toArray(Array.from(o))})),(u=Ws(Mw,t),f.createElement("tbody",{children:E.Children.toArray(Array.from(u))}))],["children",E.Children.toArray(Array.from(i))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(a=[f.createElement("button",k(F("button",C([["onClick",m=>{n(new Ea(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(a))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(d))})}function $w(e,t){return e.tag===1?Iw(e.fields[0],e.fields[1],t):vn(new gn(t,n=>new Ea(0,[n]),new yn(0,["Submit"]),new en(1,[])))(Pw)(e.fields[0])}const Xc=new Sn("Form list","A form where you can add and remove a list of forms",new _e(5,[]),void 0,` Form.succeed onSubmit |> Form.append nameField |> Form.append ( @@ -61,7 +73,7 @@ Form.succeed onSubmit } bookForm ) - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","FormList.fs"));let Di=class extends O{constructor(t,n,r){super(),this.ValidationStrategy=t,this.Email=n,this.Password=r}},Js=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","FormFilled"]}},wa=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function yh(){return[new Js(0,[Bn(new Di("onBlur","",""))]),L()]}function yw(e,t){switch(e.tag){case 1:return t.tag===1?[t,L()]:[new Js(1,[e.fields[0],e.fields[1]]),L()];case 2:return yh();default:return t.tag===1?[t,L()]:[new Js(0,[e.fields[0]]),L()]}}const gw=(()=>{const e=Hd(new te(n=>new W(0,[n]),n=>n.ValidationStrategy,(n,r)=>new Di(n,r.Email,r.Password),n=>Hg(void 0),new Fd("Validation strategy",_([["onSubmit","Validate on form submit"],["onBlur","Validate on field blur"]])))),t=Fe(new te(Vo,n=>n.Email,(n,r)=>new Di(r.ValidationStrategy,n,r.Password),n=>{},new ue("Email","some@email.com",B())));return q(Ll(new te(ta,n=>n.Password,(n,r)=>new Di(r.ValidationStrategy,r.Email,n),n=>{},new ue("Password","Your password",B()))),q(t,q(e,ht(n=>r=>l=>new wa(1,[r,l])))))})();function ww(e,t,n){let r,l,i;const o=_([h.createElement("article",x(N("message",_([["className","is-success"],(r=[(l=_(["You, ",h.createElement("b",{children:[Lo(e)]}),", have been signed in using the following password ",h.createElement("b",{children:[ea(t)]})]),h.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(i=[h.createElement("button",x(N("button",_([["onClick",s=>{n(new wa(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(i))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(o))})}function vw(e,t){if(e.tag===1)return ww(e.fields[0],e.fields[1],t);{const n=e.fields[0];return Hn(new jn(t,r=>new wa(0,[r]),new Un(0,["Sign in"]),n.Values.ValidationStrategy==="onSubmit"?new un(1,[]):new un(0,[])))(gw)(n)}}const Qc=new Gn("Validation strategies","A form to demonstrate the 2 validation strategies: 'onSubmit' or 'onBlur'.",new Te(6,[]),h.createElement("div",x(N("content",_([["className","has-text-centered"],(()=>{const e=["This feature depends on the view implementation, here it is offered by ",h.createElement("b",{children:["Fable.Form.Simple"]})," package"];return["children",E.Children.toArray(Array.from(e))]})()])))),` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","FormList.fs"));let Ui=class extends D{constructor(t,n,r){super(),this.ValidationStrategy=t,this.Email=n,this.Password=r}},eu=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","FormFilled"]}},Sa=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function Sh(){return[new eu(0,[wn(new Ui("onBlur","",""))]),R()]}function Rw(e,t){switch(e.tag){case 1:return t.tag===1?[t,R()]:[new eu(1,[e.fields[0],e.fields[1]]),R()];case 2:return Sh();default:return t.tag===1?[t,R()]:[new eu(0,[e.fields[0]]),R()]}}const Vw=(()=>{const e=Qd(new te(n=>new G(0,[n]),n=>n.ValidationStrategy,(n,r)=>new Ui(n,r.Email,r.Password),n=>lw(void 0),new Pd("Validation strategy",C([["onSubmit","Validate on form submit"],["onBlur","Validate on field blur"]])))),t=Me(new te(Oo,n=>n.Email,(n,r)=>new Ui(r.ValidationStrategy,n,r.Password),n=>{},new ae("Email","some@email.com",H())));return J(Ll(new te(la,n=>n.Password,(n,r)=>new Ui(r.ValidationStrategy,r.Email,n),n=>{},new ae("Password","Your password",H()))),J(t,J(e,st(n=>r=>l=>new Sa(1,[r,l])))))})();function Lw(e,t,n){let r,l,i;const o=C([f.createElement("article",k(F("message",C([["className","is-success"],(r=[(l=C(["You, ",f.createElement("b",{children:[Do(e)]}),", have been signed in using the following password ",f.createElement("b",{children:[ra(t)]})]),f.createElement("div",{className:"message-body",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(i=[f.createElement("button",k(F("button",C([["onClick",s=>{n(new Sa(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(i))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(o))})}function Dw(e,t){if(e.tag===1)return Lw(e.fields[0],e.fields[1],t);{const n=e.fields[0];return vn(new gn(t,r=>new Sa(0,[r]),new yn(0,["Sign in"]),n.Values.ValidationStrategy==="onSubmit"?new en(1,[]):new en(0,[])))(Vw)(n)}}const Zc=new Sn("Validation strategies","A form to demonstrate the 2 validation strategies: 'onSubmit' or 'onBlur'.",new _e(7,[]),f.createElement("div",k(F("content",C([["className","has-text-centered"],(()=>{const e=["This feature depends on the view implementation, here it is offered by ",f.createElement("b",{children:["Fable.Form.Simple"]})," package"];return["children",E.Children.toArray(Array.from(e))]})()])))),` let form = Form.succeed onSubmit |> Form.append emailField @@ -81,7 +93,7 @@ Form.View.asHtml } form model - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","ValidationStrategies.fs"));class Sw extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Country"]}}function Ew(e){return new Sw(e)}function gh(e){return e.fields[0]}function wh(e){return new W(0,[Ew(e)])}class Cw extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function vh(e){return e.fields[0]}function _w(e){return new Cw(e)}function Sh(e){return new W(0,[_w(e)])}class kw extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PostalCode"]}}function Eh(e){return e.fields[0]}function xw(e){return new kw(e)}function Ch(e){return new W(0,[xw(e)])}let Nw=class extends O{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};function _h(e,t,n){return new Nw(e,t,n)}let zi=class extends O{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};const Fw=new zi("","",""),Aw=(()=>{const e=Fe(new te(wh,n=>n.Country,(n,r)=>new zi(n,r.City,r.PostalCode),n=>{},new ue("Country","",B()))),t=Fe(new te(Sh,n=>n.City,(n,r)=>new zi(r.Country,n,r.PostalCode),n=>{},new ue("City","",B())));return q(Fe(new te(Ch,n=>n.PostalCode,(n,r)=>new zi(r.Country,r.City,n),n=>{},new ue("PostalCode","",B()))),q(t,q(e,ht(n=>r=>l=>_h(n,r,l)))))})();let qs=class extends O{constructor(t,n){super(),this.Name=t,this.Address=n}},bs=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","Submitted"]}},va=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function kh(){return[new bs(0,[Bn(new qs("",Fw))]),L()]}function Tw(e,t){switch(e.tag){case 1:return t.tag===1?[t,L()]:[new bs(1,[e.fields[0],e.fields[1]]),L()];case 2:return kh();default:return t.tag===1?[t,L()]:[new bs(0,[e.fields[0]]),L()]}}const Pw=(()=>{const e=q(Fe(new te(bu,t=>t.Name,(t,n)=>new qs(t,n.Address),t=>{},new ue("Name","Your name",B()))),ht(t=>n=>new va(1,[t,n])));return q(X1(new Y1(t=>t.Address,(t,n)=>new qs(n.Name,t)),Aw),e)})();function hi(e,t){const n=_([h.createElement("td",{children:[e]}),h.createElement("td",{children:[t]})]);return h.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function Mw(e,t,n){let r,l,i,o,s,u;const a=_([h.createElement("article",x(N("message",_([["className","is-success"],(r=[h.createElement("div",x(N("message-body",U(["children","Entry has been created"]))))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("table",x(N("table",_([["className","is-striped"],(l=[(i=U((o=_([h.createElement("th",{children:["Field"]}),h.createElement("th",{children:["Value"]})]),h.createElement("tr",{children:E.Children.toArray(Array.from(o))}))),h.createElement("thead",{children:E.Children.toArray(Array.from(i))})),(s=_([hi("Name",qu(e)),hi("Country",gh(t.Country)),hi("City",vh(t.City)),hi("Postal code",Eh(t.PostalCode))]),h.createElement("tbody",{children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(l))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(u=[h.createElement("button",x(N("button",_([["onClick",f=>{n(new va(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(u))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}function Iw(e,t){return e.tag===1?Mw(e.fields[0],e.fields[1],t):Hn(new jn(t,n=>new va(0,[n]),new Un(0,["Submit"]),new un(1,[])))(Pw)(e.fields[0])}const Kc=new Gn("Composability","Demonstrate how you can re-use a form the 'simple way'",new Te(5,[new so(0,[])]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","ValidationStrategies.fs"));class Ow extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Country"]}}function zw(e){return new Ow(e)}function Ch(e){return e.fields[0]}function _h(e){return new G(0,[zw(e)])}class Uw extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function kh(e){return e.fields[0]}function jw(e){return new Uw(e)}function xh(e){return new G(0,[jw(e)])}class Bw extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PostalCode"]}}function Fh(e){return e.fields[0]}function Hw(e){return new Bw(e)}function Ah(e){return new G(0,[Hw(e)])}let Ww=class extends D{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};function Nh(e,t,n){return new Ww(e,t,n)}let ji=class extends D{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};const Gw=new ji("","",""),Qw=(()=>{const e=Me(new te(_h,n=>n.Country,(n,r)=>new ji(n,r.City,r.PostalCode),n=>{},new ae("Country","",H()))),t=Me(new te(xh,n=>n.City,(n,r)=>new ji(r.Country,n,r.PostalCode),n=>{},new ae("City","",H())));return J(Me(new te(Ah,n=>n.PostalCode,(n,r)=>new ji(r.Country,r.City,n),n=>{},new ae("PostalCode","",H()))),J(t,J(e,st(n=>r=>l=>Nh(n,r,l)))))})();let tu=class extends D{constructor(t,n){super(),this.Name=t,this.Address=n}},nu=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","Submitted"]}},Ca=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function Th(){return[new nu(0,[wn(new tu("",Gw))]),R()]}function Kw(e,t){switch(e.tag){case 1:return t.tag===1?[t,R()]:[new nu(1,[e.fields[0],e.fields[1]]),R()];case 2:return Th();default:return t.tag===1?[t,R()]:[new nu(0,[e.fields[0]]),R()]}}const Yw=(()=>{const e=J(Me(new te(na,t=>t.Name,(t,n)=>new tu(t,n.Address),t=>{},new ae("Name","Your name",H()))),st(t=>n=>new Ca(1,[t,n])));return J(uy(new sy(t=>t.Address,(t,n)=>new tu(n.Name,t)),Qw),e)})();function pi(e,t){const n=C([f.createElement("td",{children:[e]}),f.createElement("td",{children:[t]})]);return f.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function Xw(e,t,n){let r,l,i,o,s,u;const a=C([f.createElement("article",k(F("message",C([["className","is-success"],(r=[f.createElement("div",k(F("message-body",U(["children","Entry has been created"]))))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("table",k(F("table",C([["className","is-striped"],(l=[(i=U((o=C([f.createElement("th",{children:["Field"]}),f.createElement("th",{children:["Value"]})]),f.createElement("tr",{children:E.Children.toArray(Array.from(o))}))),f.createElement("thead",{children:E.Children.toArray(Array.from(i))})),(s=C([pi("Name",ta(e)),pi("Country",Ch(t.Country)),pi("City",kh(t.City)),pi("Postal code",Fh(t.PostalCode))]),f.createElement("tbody",{children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(l))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(u=[f.createElement("button",k(F("button",C([["onClick",d=>{n(new Ca(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(u))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}function Zw(e,t){return e.tag===1?Xw(e.fields[0],e.fields[1],t):vn(new gn(t,n=>new Ca(0,[n]),new yn(0,["Submit"]),new en(1,[])))(Yw)(e.fields[0])}const Jc=new Sn("Composability","Demonstrate how you can re-use a form the 'simple way'",new _e(6,[new ao(0,[])]),void 0,` Form.succeed onSubmit |> Form.append nameField |> Form.append ( @@ -95,7 +107,7 @@ Form.succeed onSubmit } AddressForm.form ) - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page/Composability","Simple.fs"));let Ui=class extends O{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};const $w=new Ui("","","");class Rw extends O{constructor(t,n){super(),this.Value=t,this.Update=n}}function Lw(e){const t=e.Value,n=(i,o,s)=>e.Update(i(o)(t(s)),s),r=Fe(new te(wh,i=>t(i).Country,Lt(Mr(n)(i=>o=>new Ui(i,o.City,o.PostalCode))),i=>{},new ue("Country","",B()))),l=Fe(new te(Sh,i=>t(i).City,Lt(Mr(n)(i=>o=>new Ui(o.Country,i,o.PostalCode))),i=>{},new ue("City","",B())));return q(Fe(new te(Ch,i=>t(i).PostalCode,Lt(Mr(n)(i=>o=>new Ui(o.Country,o.City,i))),i=>{},new ue("PostalCode","",B()))),q(l,q(r,ht(i=>o=>s=>_h(i,o,s)))))}let eu=class extends O{constructor(t,n){super(),this.Name=t,this.Address=n}},tu=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","Submitted"]}},Sa=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function xh(){return[new tu(0,[Bn(new eu("",$w))]),L()]}function Vw(e,t){switch(e.tag){case 1:return t.tag===1?[t,L()]:[new tu(1,[e.fields[0],e.fields[1]]),L()];case 2:return xh();default:return t.tag===1?[t,L()]:[new tu(0,[e.fields[0]]),L()]}}const Ow=(()=>{const e=q(Fe(new te(bu,t=>t.Name,(t,n)=>new eu(t,n.Address),t=>{},new ue("Name","Your name",B()))),ht(t=>n=>new Sa(1,[t,n])));return q(Lw(new Rw(t=>t.Address,(t,n)=>new eu(n.Name,t))),e)})();function pi(e,t){const n=_([h.createElement("td",{children:[e]}),h.createElement("td",{children:[t]})]);return h.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function Dw(e,t,n){let r,l,i,o,s,u;const a=_([h.createElement("article",x(N("message",_([["className","is-success"],(r=[h.createElement("div",x(N("message-body",U(["children","Entry has been created"]))))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("table",x(N("table",_([["className","is-striped"],(l=[(i=U((o=_([h.createElement("th",{children:["Field"]}),h.createElement("th",{children:["Value"]})]),h.createElement("tr",{children:E.Children.toArray(Array.from(o))}))),h.createElement("thead",{children:E.Children.toArray(Array.from(i))})),(s=_([pi("Name",qu(e)),pi("Country",gh(t.Country)),pi("City",vh(t.City)),pi("Postal code",Eh(t.PostalCode))]),h.createElement("tbody",{children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(l))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(u=[h.createElement("button",x(N("button",_([["onClick",f=>{n(new Sa(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(u))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}function zw(e,t){return e.tag===1?Dw(e.fields[0],e.fields[1],t):Hn(new jn(t,n=>new Sa(0,[n]),new Un(0,["Submit"]),new un(1,[])))(Ow)(e.fields[0])}const Yc=new Gn("Composability","Demonstrate how you can re-use a form using a 'configuration object'",new Te(5,[new so(1,[])]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page/Composability","Simple.fs"));let Bi=class extends D{constructor(t,n,r){super(),this.Country=t,this.City=n,this.PostalCode=r}};const Jw=new Bi("","","");class bw extends D{constructor(t,n){super(),this.Value=t,this.Update=n}}function qw(e){const t=e.Value,n=(i,o,s)=>e.Update(i(o)(t(s)),s),r=Me(new te(_h,i=>t(i).Country,Dt(Mr(n)(i=>o=>new Bi(i,o.City,o.PostalCode))),i=>{},new ae("Country","",H()))),l=Me(new te(xh,i=>t(i).City,Dt(Mr(n)(i=>o=>new Bi(o.Country,i,o.PostalCode))),i=>{},new ae("City","",H())));return J(Me(new te(Ah,i=>t(i).PostalCode,Dt(Mr(n)(i=>o=>new Bi(o.Country,o.City,i))),i=>{},new ae("PostalCode","",H()))),J(l,J(r,st(i=>o=>s=>Nh(i,o,s)))))}let ru=class extends D{constructor(t,n){super(),this.Name=t,this.Address=n}},lu=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","Submitted"]}},_a=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","Submit","ResetDemo"]}};function Ph(){return[new lu(0,[wn(new ru("",Jw))]),R()]}function ev(e,t){switch(e.tag){case 1:return t.tag===1?[t,R()]:[new lu(1,[e.fields[0],e.fields[1]]),R()];case 2:return Ph();default:return t.tag===1?[t,R()]:[new lu(0,[e.fields[0]]),R()]}}const tv=(()=>{const e=J(Me(new te(na,t=>t.Name,(t,n)=>new ru(t,n.Address),t=>{},new ae("Name","Your name",H()))),st(t=>n=>new _a(1,[t,n])));return J(qw(new bw(t=>t.Address,(t,n)=>new ru(n.Name,t))),e)})();function yi(e,t){const n=C([f.createElement("td",{children:[e]}),f.createElement("td",{children:[t]})]);return f.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function nv(e,t,n){let r,l,i,o,s,u;const a=C([f.createElement("article",k(F("message",C([["className","is-success"],(r=[f.createElement("div",k(F("message-body",U(["children","Entry has been created"]))))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("table",k(F("table",C([["className","is-striped"],(l=[(i=U((o=C([f.createElement("th",{children:["Field"]}),f.createElement("th",{children:["Value"]})]),f.createElement("tr",{children:E.Children.toArray(Array.from(o))}))),f.createElement("thead",{children:E.Children.toArray(Array.from(i))})),(s=C([yi("Name",ta(e)),yi("Country",Ch(t.Country)),yi("City",kh(t.City)),yi("Postal code",Fh(t.PostalCode))]),f.createElement("tbody",{children:E.Children.toArray(Array.from(s))}))],["children",E.Children.toArray(Array.from(l))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(u=[f.createElement("button",k(F("button",C([["onClick",d=>{n(new _a(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(u))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}function rv(e,t){return e.tag===1?nv(e.fields[0],e.fields[1],t):vn(new gn(t,n=>new _a(0,[n]),new yn(0,["Submit"]),new en(1,[])))(tv)(e.fields[0])}const bc=new Sn("Composability","Demonstrate how you can re-use a form using a 'configuration object'",new _e(6,[new ao(1,[])]),void 0,` Form.succeed onSubmit |> Form.append nameField |> Form.append ( @@ -108,7 +120,7 @@ Form.succeed onSubmit { values with Address = newValue } } ) - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page/Composability","WithConfiguration.fs"));class Uw extends O{constructor(t,n){super(),this.Email=t,this.Password=n}}class nu extends O{constructor(t,n){super(),this.Email=t,this.Password=n}}let ml=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","LoggedIn","Cancelled"]}},ri=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","LogIn","ResetTheDemo","CancelTheForm","TickResetDelay"]}};function ru(){return[new ml(0,[Bn(new nu("",""))]),L()]}function Xc(e){setTimeout(()=>{e(new ri(4,[]))},1e3)}function jw(e,t){switch(e.tag){case 1:return t.tag===0?[new ml(1,[e.fields[0]]),L()]:[t,L()];case 3:return[new ml(2,[3]),xc(n=>{Xc(n)})];case 4:if(t.tag===2){const n=t.fields[0]-1|0;return n>0?[new ml(2,[n]),xc(r=>{Xc(r)})]:ru()}else return[t,L()];case 2:return ru();default:return t.tag===0?[new ml(0,[e.fields[0]]),L()]:[t,L()]}}const Bw=(()=>{const e=Fe(new te(Vo,t=>t.Email,(t,n)=>new nu(t,n.Password),t=>{},new ue("Email","some@email.com",U(["autoComplete","email"]))));return q(Ll(new te(ta,t=>t.Password,(t,n)=>new nu(n.Email,t),t=>{},new ue("Password","Your password",U(["autoComplete","current-password"])))),q(e,ht(t=>n=>new ri(1,[new Uw(t,n)]))))})();function Zc(e,t){const n=_([h.createElement("td",{children:[e]}),h.createElement("td",{children:[t]})]);return h.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function Hw(e,t){let n,r,l,i,o,s;const u=_([h.createElement("article",x(N("message",_([["className","is-success"],(n=[h.createElement("div",x(N("message-body",U(["children","User logged in with the following informations"]))))],["children",E.Children.toArray(Array.from(n))])])))),h.createElement("table",x(N("table",_([["className","is-striped"],(r=[(l=U((i=_([h.createElement("th",{children:["Field"]}),h.createElement("th",{children:["Value"]})]),h.createElement("tr",{children:E.Children.toArray(Array.from(i))}))),h.createElement("thead",{children:E.Children.toArray(Array.from(l))})),(o=_([Zc("Email",Lo(e.Email)),Zc("Password",ea(e.Password))]),h.createElement("tbody",{children:E.Children.toArray(Array.from(o))}))],["children",E.Children.toArray(Array.from(r))])])))),h.createElement("p",x(N("",_([["className","has-text-centered"],(s=[h.createElement("button",x(N("button",_([["onClick",a=>{t(new ri(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(s))])]))))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(u))})}function Ww(e){const t=U(h.createElement("article",x(N("message",Ge(A(()=>z(I(["className","is-info"]),A(()=>{let n;return I((n=[h.createElement("div",x(N("message-body",U(["children",ro(Il("You cancelled the form, it will be reset in %i seconds"))(e)]))))],["children",E.Children.toArray(Array.from(n))]))}))))))));return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(t))})}function Gw(e,t){let n,r,l;return h.createElement("div",x(N("field",_([["className","is-grouped"],["className","is-grouped-centered"],(n=[(r=U(h.createElement("button",x(N("button",Ge(A(()=>z(I(["type","submit"]),A(()=>z(I(["className","is-primary"]),A(()=>z(I(["children","Sign up"]),A(()=>nt(e,new sn(1,[]))?I(["className","is-loading"]):Dt())))))))))))),h.createElement("div",{className:"control",children:E.Children.toArray(Array.from(r))})),(l=U(h.createElement("button",x(N("button",Ge(A(()=>z(I(["children","Cancel"]),A(()=>z(nt(e,new sn(1,[]))?I(["className","is-loading"]):Dt(),A(()=>I(["onClick",i=>{t(new ri(3,[]))}]))))))))))),h.createElement("div",{className:"control",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(n))])]))))}function Qw(e,t){switch(e.tag){case 1:return Hw(e.fields[0],t);case 2:return Ww(e.fields[0]);default:return Hn(new jn(t,n=>new ri(0,[n]),new Un(1,[Gw]),new un(1,[])))(Bw)(e.fields[0])}}const Jc=new Gn("Custom actions","A form demonstrating how you can customize the actions, can be used to add a cancel button for example.",new Te(7,[]),void 0,` + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page/Composability","WithConfiguration.fs"));class lv extends D{constructor(t,n){super(),this.Email=t,this.Password=n}}class iu extends D{constructor(t,n){super(),this.Email=t,this.Password=n}}let yl=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FillingForm","LoggedIn","Cancelled"]}},oi=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FormChanged","LogIn","ResetTheDemo","CancelTheForm","TickResetDelay"]}};function ou(){return[new yl(0,[wn(new iu("",""))]),R()]}function qc(e){setTimeout(()=>{e(new oi(4,[]))},1e3)}function iv(e,t){switch(e.tag){case 1:return t.tag===0?[new yl(1,[e.fields[0]]),R()]:[t,R()];case 3:return[new yl(2,[3]),Nc(n=>{qc(n)})];case 4:if(t.tag===2){const n=t.fields[0]-1|0;return n>0?[new yl(2,[n]),Nc(r=>{qc(r)})]:ou()}else return[t,R()];case 2:return ou();default:return t.tag===0?[new yl(0,[e.fields[0]]),R()]:[t,R()]}}const ov=(()=>{const e=Me(new te(Oo,t=>t.Email,(t,n)=>new iu(t,n.Password),t=>{},new ae("Email","some@email.com",U(["autoComplete","email"]))));return J(Ll(new te(la,t=>t.Password,(t,n)=>new iu(n.Email,t),t=>{},new ae("Password","Your password",U(["autoComplete","current-password"])))),J(e,st(t=>n=>new oi(1,[new lv(t,n)]))))})();function ef(e,t){const n=C([f.createElement("td",{children:[e]}),f.createElement("td",{children:[t]})]);return f.createElement("tr",{children:E.Children.toArray(Array.from(n))})}function sv(e,t){let n,r,l,i,o,s;const u=C([f.createElement("article",k(F("message",C([["className","is-success"],(n=[f.createElement("div",k(F("message-body",U(["children","User logged in with the following informations"]))))],["children",E.Children.toArray(Array.from(n))])])))),f.createElement("table",k(F("table",C([["className","is-striped"],(r=[(l=U((i=C([f.createElement("th",{children:["Field"]}),f.createElement("th",{children:["Value"]})]),f.createElement("tr",{children:E.Children.toArray(Array.from(i))}))),f.createElement("thead",{children:E.Children.toArray(Array.from(l))})),(o=C([ef("Email",Do(e.Email)),ef("Password",ra(e.Password))]),f.createElement("tbody",{children:E.Children.toArray(Array.from(o))}))],["children",E.Children.toArray(Array.from(r))])])))),f.createElement("p",k(F("",C([["className","has-text-centered"],(s=[f.createElement("button",k(F("button",C([["onClick",a=>{t(new oi(2,[]))}],["className","is-primary"],["children","Reset the demo"]]))))],["children",E.Children.toArray(Array.from(s))])]))))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(u))})}function uv(e){const t=U(f.createElement("article",k(F("message",xe(A(()=>L(N(["className","is-info"]),A(()=>{let n;return N((n=[f.createElement("div",k(F("message-body",U(["children",io($l("You cancelled the form, it will be reset in %i seconds"))(e)]))))],["children",E.Children.toArray(Array.from(n))]))}))))))));return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(t))})}function av(e,t){let n,r,l;return f.createElement("div",k(F("field",C([["className","is-grouped"],["className","is-grouped-centered"],(n=[(r=U(f.createElement("button",k(F("button",xe(A(()=>L(N(["type","submit"]),A(()=>L(N(["className","is-primary"]),A(()=>L(N(["children","Sign up"]),A(()=>nt(e,new fn(1,[]))?N(["className","is-loading"]):rt())))))))))))),f.createElement("div",{className:"control",children:E.Children.toArray(Array.from(r))})),(l=U(f.createElement("button",k(F("button",xe(A(()=>L(N(["children","Cancel"]),A(()=>L(nt(e,new fn(1,[]))?N(["className","is-loading"]):rt(),A(()=>N(["onClick",i=>{t(new oi(3,[]))}]))))))))))),f.createElement("div",{className:"control",children:E.Children.toArray(Array.from(l))}))],["children",E.Children.toArray(Array.from(n))])]))))}function cv(e,t){switch(e.tag){case 1:return sv(e.fields[0],t);case 2:return uv(e.fields[0]);default:return vn(new gn(t,n=>new oi(0,[n]),new yn(1,[av]),new en(1,[])))(ov)(e.fields[0])}}const tf=new Sn("Custom actions","A form demonstrating how you can customize the actions, can be used to add a cancel button for example.",new _e(8,[]),void 0,` let form = Form.succeed onSubmit |> Form.append emailField @@ -129,7 +141,7 @@ Form.View.asHtml } form values - `,Wn("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","CustomActions.fs"));function Ue(e,t,n){return[e(t),n]}function pn(e,t,n){return[t,e(n)]}var Nh={exports:{}},mt={},Fh={exports:{}},Ah={};/** + `,En("/Users/mmangel/Workspaces/Github/MangelMaxime/Fable.Form/examples/src/Page","CustomActions.fs"));function $e(e,t,n){return[e(t),n]}function tn(e,t,n){return[t,e(n)]}var Mh={exports:{}},yt={},Ih={exports:{}},$h={};/** * @license React * scheduler.production.min.js * @@ -137,7 +149,7 @@ Form.View.asHtml * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(M,H){var Q=M.length;M.push(H);e:for(;0>>1,Ae=M[we];if(0>>1;wel(ss,Q))Znl(ai,ss)?(M[we]=ai,M[Zn]=Q,we=Zn):(M[we]=ss,M[Xn]=Q,we=Xn);else if(Znl(ai,Q))M[we]=ai,M[Zn]=Q,we=Zn;else break e}}return H}function l(M,H){var Q=M.sortIndex-H.sortIndex;return Q!==0?Q:M.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],f=1,p=null,y=3,w=!1,g=!1,v=!1,T=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=M)r(a),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(a)}}function S(M){if(v=!1,m(M),!g)if(n(u)!==null)g=!0,is(F);else{var H=n(a);H!==null&&os(S,H.startTime-M)}}function F(M,H){g=!1,v&&(v=!1,d(V),V=-1),w=!0;var Q=y;try{for(m(H),p=n(u);p!==null&&(!(p.expirationTime>H)||M&&!Nt());){var we=p.callback;if(typeof we=="function"){p.callback=null,y=p.priorityLevel;var Ae=we(p.expirationTime<=H);H=e.unstable_now(),typeof Ae=="function"?p.callback=Ae:p===n(u)&&r(u),m(H)}else r(u);p=n(u)}if(p!==null)var ui=!0;else{var Xn=n(a);Xn!==null&&os(S,Xn.startTime-H),ui=!1}return ui}finally{p=null,y=Q,w=!1}}var $=!1,R=null,V=-1,ge=5,Y=-1;function Nt(){return!(e.unstable_now()-YM||125we?(M.sortIndex=Q,t(a,M),n(u)===null&&M===n(a)&&(v?(d(V),V=-1):v=!0,os(S,Q-we))):(M.sortIndex=Ae,t(u,M),g||w||(g=!0,is(F))),M},e.unstable_shouldYield=Nt,e.unstable_wrapCallback=function(M){var H=y;return function(){var Q=y;y=H;try{return M.apply(this,arguments)}finally{y=Q}}}})(Ah);Fh.exports=Ah;var Kw=Fh.exports;/** + */(function(e){function t(I,W){var Q=I.length;I.push(W);e:for(;0>>1,Ie=I[Ee];if(0>>1;Eel(us,Q))Jnl(di,us)?(I[Ee]=di,I[Jn]=Q,Ee=Jn):(I[Ee]=us,I[Zn]=Q,Ee=Zn);else if(Jnl(di,Q))I[Ee]=di,I[Jn]=Q,Ee=Jn;else break e}}return W}function l(I,W){var Q=I.sortIndex-W.sortIndex;return Q!==0?Q:I.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],d=1,m=null,y=3,w=!1,g=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(I){for(var W=n(a);W!==null;){if(W.callback===null)r(a);else if(W.startTime<=I)r(a),W.sortIndex=W.expirationTime,t(u,W);else break;W=n(a)}}function S(I){if(v=!1,p(I),!g)if(n(u)!==null)g=!0,os(T);else{var W=n(a);W!==null&&ss(S,W.startTime-I)}}function T(I,W){g=!1,v&&(v=!1,h(O),O=-1),w=!0;var Q=y;try{for(p(W),m=n(u);m!==null&&(!(m.expirationTime>W)||I&&!Nt());){var Ee=m.callback;if(typeof Ee=="function"){m.callback=null,y=m.priorityLevel;var Ie=Ee(m.expirationTime<=W);W=e.unstable_now(),typeof Ie=="function"?m.callback=Ie:m===n(u)&&r(u),p(W)}else r(u);m=n(u)}if(m!==null)var fi=!0;else{var Zn=n(a);Zn!==null&&ss(S,Zn.startTime-W),fi=!1}return fi}finally{m=null,y=Q,w=!1}}var $=!1,V=null,O=-1,ve=5,Y=-1;function Nt(){return!(e.unstable_now()-YI||125Ee?(I.sortIndex=Q,t(a,I),n(u)===null&&I===n(a)&&(v?(h(O),O=-1):v=!0,ss(S,Q-Ee))):(I.sortIndex=Ie,t(u,I),g||w||(g=!0,os(T))),I},e.unstable_shouldYield=Nt,e.unstable_wrapCallback=function(I){var W=y;return function(){var Q=y;y=W;try{return I.apply(this,arguments)}finally{y=Q}}}})($h);Ih.exports=$h;var fv=Ih.exports;/** * @license React * react-dom.production.min.js * @@ -145,11 +157,11 @@ Form.View.asHtml * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Th=h,pt=Kw;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lu=Object.prototype.hasOwnProperty,Yw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qc={},bc={};function Xw(e){return lu.call(bc,e)?!0:lu.call(qc,e)?!1:Yw.test(e)?bc[e]=!0:(qc[e]=!0,!1)}function Zw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jw(e,t,n,r){if(t===null||typeof t>"u"||Zw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ea=/[\-:]([a-z])/g;function Ca(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ea,Ca);ze[t]=new be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ea,Ca);ze[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ea,Ca);ze[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function _a(e,t,n,r){var l=ze.hasOwnProperty(t)?ze[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),su=Object.prototype.hasOwnProperty,dv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nf={},rf={};function hv(e){return su.call(rf,e)?!0:su.call(nf,e)?!1:dv.test(e)?rf[e]=!0:(nf[e]=!0,!1)}function mv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pv(e,t,n,r){if(t===null||typeof t>"u"||mv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qe(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Be[e]=new qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Be[t]=new qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Be[e]=new qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Be[e]=new qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Be[e]=new qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Be[e]=new qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Be[e]=new qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Be[e]=new qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Be[e]=new qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ka=/[\-:]([a-z])/g;function xa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ka,xa);Be[t]=new qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ka,xa);Be[t]=new qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ka,xa);Be[t]=new qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Be[e]=new qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Be.xlinkHref=new qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Be[e]=new qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fa(e,t,n,r){var l=Be.hasOwnProperty(t)?Be[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yl(e):""}function qw(e){switch(e.tag){case 5:return yl(e.type);case 16:return yl("Lazy");case 13:return yl("Suspense");case 19:return yl("SuspenseList");case 0:case 2:case 15:return e=ys(e.type,!1),e;case 11:return e=ys(e.type.render,!1),e;case 1:return e=ys(e.type,!0),e;default:return""}}function uu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sr:return"Fragment";case vr:return"Portal";case iu:return"Profiler";case ka:return"StrictMode";case ou:return"Suspense";case su:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ih:return(e.displayName||"Context")+".Consumer";case Mh:return(e._context.displayName||"Context")+".Provider";case xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Na:return t=e.displayName||null,t!==null?t:uu(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return uu(e(t))}catch{}}return null}function bw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return uu(t);case 8:return t===ka?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ev(e){var t=Rh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=ev(e))}function Lh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Rh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function uo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function au(e,t){var n=t.checked;return me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=On(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vh(e,t){t=t.checked,t!=null&&_a(e,"checked",t,!1)}function cu(e,t){Vh(e,t);var n=On(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fu(e,t.type,n):t.hasOwnProperty("defaultValue")&&fu(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fu(e,t,n){(t!=="number"||uo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gl=Array.isArray;function Rr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _l={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tv=["Webkit","ms","Moz","O"];Object.keys(_l).forEach(function(e){tv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_l[t]=_l[e]})});function Uh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_l.hasOwnProperty(e)&&_l[e]?(""+t).trim():t+"px"}function jh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Uh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var nv=me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pu(e,t){if(t){if(nv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function mu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yu=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gu=null,Lr=null,Vr=null;function of(e){if(e=oi(e)){if(typeof gu!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Yo(t),gu(e.stateNode,e.type,t))}}function Bh(e){Lr?Vr?Vr.push(e):Vr=[e]:Lr=e}function Hh(){if(Lr){var e=Lr,t=Vr;if(Vr=Lr=null,of(e),t)for(e=0;e>>=0,e===0?32:31-(hv(e)/pv|0)|0}var wi=64,vi=4194304;function wl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ho(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wl(s):(i&=o,i!==0&&(r=wl(i)))}else o=n&~l,o!==0?r=wl(o):i!==0&&(r=wl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function li(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function wv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=xl),mf=String.fromCharCode(32),yf=!1;function ap(e,t){switch(e){case"keyup":return Qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function Yv(e,t){switch(e){case"compositionend":return cp(t);case"keypress":return t.which!==32?null:(yf=!0,mf);case"textInput":return e=t.data,e===mf&&yf?null:e;default:return null}}function Xv(e,t){if(Er)return e==="compositionend"||!La&&ap(e,t)?(e=sp(),Bi=Ia=kn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sf(n)}}function pp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mp(){for(var e=window,t=uo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function Va(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lS(e){var t=mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pp(n.ownerDocument.documentElement,n)){if(r!==null&&Va(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ef(n,i);var o=Ef(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,_u=null,Fl=null,ku=!1;function Cf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ku||Cr==null||Cr!==uo(r)||(r=Cr,"selectionStart"in r&&Va(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fl&&Gl(Fl,r)||(Fl=r,r=yo(_u,"onSelect"),0xr||(e.current=Pu[xr],Pu[xr]=null,xr--)}function ie(e,t){xr++,Pu[xr]=e.current,e.current=t}var Dn={},Qe=Kn(Dn),rt=Kn(!1),ar=Dn;function Wr(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function lt(e){return e=e.childContextTypes,e!=null}function wo(){ae(rt),ae(Qe)}function Tf(e,t,n){if(Qe.current!==Dn)throw Error(C(168));ie(Qe,t),ie(rt,n)}function kp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(C(108,bw(e)||"Unknown",l));return me({},n,r)}function vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ar=Qe.current,ie(Qe,e),ie(rt,rt.current),!0}function Pf(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=kp(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,ae(rt),ae(Qe),ie(Qe,e)):ae(rt),ie(rt,n)}var tn=null,Xo=!1,Ps=!1;function xp(e){tn===null?tn=[e]:tn.push(e)}function yS(e){Xo=!0,xp(e)}function Yn(){if(!Ps&&tn!==null){Ps=!0;var e=0,t=ne;try{var n=tn;for(ne=1;e>=o,l-=o,nn=1<<32-Vt(t)+l|n<V?(ge=R,R=null):ge=R.sibling;var Y=y(d,R,m[V],S);if(Y===null){R===null&&(R=ge);break}e&&R&&Y.alternate===null&&t(d,R),c=i(Y,c,V),$===null?F=Y:$.sibling=Y,$=Y,R=ge}if(V===m.length)return n(d,R),fe&&Jn(d,V),F;if(R===null){for(;VV?(ge=R,R=null):ge=R.sibling;var Nt=y(d,R,Y.value,S);if(Nt===null){R===null&&(R=ge);break}e&&R&&Nt.alternate===null&&t(d,R),c=i(Nt,c,V),$===null?F=Nt:$.sibling=Nt,$=Nt,R=ge}if(Y.done)return n(d,R),fe&&Jn(d,V),F;if(R===null){for(;!Y.done;V++,Y=m.next())Y=p(d,Y.value,S),Y!==null&&(c=i(Y,c,V),$===null?F=Y:$.sibling=Y,$=Y);return fe&&Jn(d,V),F}for(R=r(d,R);!Y.done;V++,Y=m.next())Y=w(R,d,V,Y.value,S),Y!==null&&(e&&Y.alternate!==null&&R.delete(Y.key===null?V:Y.key),c=i(Y,c,V),$===null?F=Y:$.sibling=Y,$=Y);return e&&R.forEach(function(tl){return t(d,tl)}),fe&&Jn(d,V),F}function T(d,c,m,S){if(typeof m=="object"&&m!==null&&m.type===Sr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:e:{for(var F=m.key,$=c;$!==null;){if($.key===F){if(F=m.type,F===Sr){if($.tag===7){n(d,$.sibling),c=l($,m.props.children),c.return=d,d=c;break e}}else if($.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===wn&&Of(F)===$.type){n(d,$.sibling),c=l($,m.props),c.ref=cl(d,$,m),c.return=d,d=c;break e}n(d,$);break}else t(d,$);$=$.sibling}m.type===Sr?(c=sr(m.props.children,d.mode,S,m.key),c.return=d,d=c):(S=Zi(m.type,m.key,m.props,null,d.mode,S),S.ref=cl(d,c,m),S.return=d,d=S)}return o(d);case vr:e:{for($=m.key;c!==null;){if(c.key===$)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(d,c.sibling),c=l(c,m.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Ds(m,d.mode,S),c.return=d,d=c}return o(d);case wn:return $=m._init,T(d,c,$(m._payload),S)}if(gl(m))return g(d,c,m,S);if(il(m))return v(d,c,m,S);Ni(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,m),c.return=d,d=c):(n(d,c),c=Os(m,d.mode,S),c.return=d,d=c),o(d)):n(d,c)}return T}var Qr=$p(!0),Rp=$p(!1),si={},Zt=Kn(si),Xl=Kn(si),Zl=Kn(si);function rr(e){if(e===si)throw Error(C(174));return e}function Ga(e,t){switch(ie(Zl,t),ie(Xl,e),ie(Zt,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hu(t,e)}ae(Zt),ie(Zt,t)}function Kr(){ae(Zt),ae(Xl),ae(Zl)}function Lp(e){rr(Zl.current);var t=rr(Zt.current),n=hu(t,e.type);t!==n&&(ie(Xl,e),ie(Zt,n))}function Qa(e){Xl.current===e&&(ae(Zt),ae(Xl))}var he=Kn(0);function xo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ms=[];function Ka(){for(var e=0;en?n:4,e(!0);var r=Is.transition;Is.transition={};try{e(!1),t()}finally{ne=n,Is.transition=r}}function Jp(){return kt().memoizedState}function SS(e,t,n){var r=Rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qp(e))bp(t,n);else if(n=Tp(e,t,n,r),n!==null){var l=Je();Ot(n,e,r,l),em(n,t,r)}}function ES(e,t,n){var r=Rn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qp(e))bp(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,zt(s,o)){var u=t.interleaved;u===null?(l.next=l,Ha(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Tp(e,t,l,r),n!==null&&(l=Je(),Ot(n,e,r,l),em(n,t,r))}}function qp(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function bp(e,t){Al=No=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function em(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ta(e,n)}}var Fo={readContext:_t,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},CS={readContext:_t,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=SS.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Df,useDebugValue:qa,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Df(!1),t=e[0];return e=vS.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,l=Wt();if(fe){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),Re===null)throw Error(C(349));fr&30||Dp(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,zf(Up.bind(null,r,i,e),[e]),r.flags|=2048,bl(9,zp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Re.identifierPrefix;if(fe){var n=rn,r=nn;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jl++,0")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{ys=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gl(e):""}function yv(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function fu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Er:return"Fragment";case vr:return"Portal";case uu:return"Profiler";case Aa:return"StrictMode";case au:return"Suspense";case cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dh:return(e.displayName||"Context")+".Consumer";case Lh:return(e._context.displayName||"Context")+".Provider";case Na:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ta:return t=e.displayName||null,t!==null?t:fu(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return fu(e(t))}catch{}}return null}function gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fu(t);case 8:return t===Aa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wv(e){var t=zh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wi(e){e._valueTracker||(e._valueTracker=wv(e))}function Uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function co(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function du(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jh(e,t){t=t.checked,t!=null&&Fa(e,"checked",t,!1)}function hu(e,t){jh(e,t);var n=Hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mu(e,t.type,n):t.hasOwnProperty("defaultValue")&&mu(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mu(e,t,n){(t!=="number"||co(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wl=Array.isArray;function Rr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vv=["Webkit","ms","Moz","O"];Object.keys(kl).forEach(function(e){vv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kl[t]=kl[e]})});function Gh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kl.hasOwnProperty(e)&&kl[e]?(""+t).trim():t+"px"}function Qh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Gh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ev=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gu(e,t){if(t){if(Ev[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function wu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vu=null;function Pa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,Vr=null,Lr=null;function cf(e){if(e=ai(e)){if(typeof Eu!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Xo(t),Eu(e.stateNode,e.type,t))}}function Kh(e){Vr?Lr?Lr.push(e):Lr=[e]:Vr=e}function Yh(){if(Vr){var e=Vr,t=Lr;if(Lr=Vr=null,cf(e),t)for(e=0;e>>=0,e===0?32:31-(Mv(e)/Iv|0)|0}var Ei=64,Si=4194304;function vl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vl(s):(i&=o,i!==0&&(r=vl(i)))}else o=n&~l,o!==0?r=vl(o):i!==0&&(r=vl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function Lv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fl),vf=String.fromCharCode(32),Ef=!1;function mm(e,t){switch(e){case"keyup":return cE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function dE(e,t){switch(e){case"compositionend":return pm(t);case"keypress":return t.which!==32?null:(Ef=!0,vf);case"textInput":return e=t.data,e===vf&&Ef?null:e;default:return null}}function hE(e,t){if(Sr)return e==="compositionend"||!Oa&&mm(e,t)?(e=dm(),Wi=Va=Pn=null,Sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kf(n)}}function vm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Em(){for(var e=window,t=co();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=co(e.document)}return t}function za(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function CE(e){var t=Em(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vm(n.ownerDocument.documentElement,n)){if(r!==null&&za(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=xf(n,i);var o=xf(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,Fu=null,Nl=null,Au=!1;function Ff(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Au||Cr==null||Cr!==co(r)||(r=Cr,"selectionStart"in r&&za(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nl&&Ql(Nl,r)||(Nl=r,r=wo(Fu,"onSelect"),0xr||(e.current=$u[xr],$u[xr]=null,xr--)}function oe(e,t){xr++,$u[xr]=e.current,e.current=t}var Wn={},Qe=Yn(Wn),lt=Yn(!1),cr=Wn;function Wr(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function it(e){return e=e.childContextTypes,e!=null}function Eo(){ce(lt),ce(Qe)}function $f(e,t,n){if(Qe.current!==Wn)throw Error(_(168));oe(Qe,t),oe(lt,n)}function Tm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,gv(e)||"Unknown",l));return ye({},n,r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,cr=Qe.current,oe(Qe,e),oe(lt,lt.current),!0}function Rf(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Tm(e,t,cr),r.__reactInternalMemoizedMergedChildContext=e,ce(lt),ce(Qe),oe(Qe,e)):ce(lt),oe(lt,n)}var on=null,Zo=!1,Ms=!1;function Pm(e){on===null?on=[e]:on.push(e)}function RE(e){Zo=!0,Pm(e)}function Xn(){if(!Ms&&on!==null){Ms=!0;var e=0,t=ne;try{var n=on;for(ne=1;e>=o,l-=o,sn=1<<32-Ot(t)+l|n<O?(ve=V,V=null):ve=V.sibling;var Y=y(h,V,p[O],S);if(Y===null){V===null&&(V=ve);break}e&&V&&Y.alternate===null&&t(h,V),c=i(Y,c,O),$===null?T=Y:$.sibling=Y,$=Y,V=ve}if(O===p.length)return n(h,V),fe&&bn(h,O),T;if(V===null){for(;OO?(ve=V,V=null):ve=V.sibling;var Nt=y(h,V,Y.value,S);if(Nt===null){V===null&&(V=ve);break}e&&V&&Nt.alternate===null&&t(h,V),c=i(Nt,c,O),$===null?T=Nt:$.sibling=Nt,$=Nt,V=ve}if(Y.done)return n(h,V),fe&&bn(h,O),T;if(V===null){for(;!Y.done;O++,Y=p.next())Y=m(h,Y.value,S),Y!==null&&(c=i(Y,c,O),$===null?T=Y:$.sibling=Y,$=Y);return fe&&bn(h,O),T}for(V=r(h,V);!Y.done;O++,Y=p.next())Y=w(V,h,O,Y.value,S),Y!==null&&(e&&Y.alternate!==null&&V.delete(Y.key===null?O:Y.key),c=i(Y,c,O),$===null?T=Y:$.sibling=Y,$=Y);return e&&V.forEach(function(tl){return t(h,tl)}),fe&&bn(h,O),T}function P(h,c,p,S){if(typeof p=="object"&&p!==null&&p.type===Er&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case gi:e:{for(var T=p.key,$=c;$!==null;){if($.key===T){if(T=p.type,T===Er){if($.tag===7){n(h,$.sibling),c=l($,p.props.children),c.return=h,h=c;break e}}else if($.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===kn&&jf(T)===$.type){n(h,$.sibling),c=l($,p.props),c.ref=fl(h,$,p),c.return=h,h=c;break e}n(h,$);break}else t(h,$);$=$.sibling}p.type===Er?(c=ur(p.props.children,h.mode,S,p.key),c.return=h,h=c):(S=bi(p.type,p.key,p.props,null,h.mode,S),S.ref=fl(h,c,p),S.return=h,h=S)}return o(h);case vr:e:{for($=p.key;c!==null;){if(c.key===$)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=l(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=zs(p,h.mode,S),c.return=h,h=c}return o(h);case kn:return $=p._init,P(h,c,$(p._payload),S)}if(wl(p))return g(h,c,p,S);if(ol(p))return v(h,c,p,S);Ni(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=l(c,p),c.return=h,h=c):(n(h,c),c=Os(p,h.mode,S),c.return=h,h=c),o(h)):n(h,c)}return P}var Qr=Om(!0),zm=Om(!1),ci={},Zt=Yn(ci),Zl=Yn(ci),Jl=Yn(ci);function lr(e){if(e===ci)throw Error(_(174));return e}function Ya(e,t){switch(oe(Jl,t),oe(Zl,e),oe(Zt,ci),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yu(t,e)}ce(Zt),oe(Zt,t)}function Kr(){ce(Zt),ce(Zl),ce(Jl)}function Um(e){lr(Jl.current);var t=lr(Zt.current),n=yu(t,e.type);t!==n&&(oe(Zl,e),oe(Zt,n))}function Xa(e){Zl.current===e&&(ce(Zt),ce(Zl))}var me=Yn(0);function Ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Is=[];function Za(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{ne=n,$s.transition=r}}function np(){return Ft().memoizedState}function OE(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rp(e))lp(t,n);else if(n=Rm(e,t,n,r),n!==null){var l=Je();zt(n,e,r,l),ip(n,t,r)}}function zE(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rp(e))lp(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Ut(s,o)){var u=t.interleaved;u===null?(l.next=l,Qa(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Rm(e,t,l,r),n!==null&&(l=Je(),zt(n,e,r,l),ip(n,t,r))}}function rp(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function lp(e,t){Tl=No=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ip(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ia(e,n)}}var To={readContext:xt,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},UE={readContext:xt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Hf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,Jm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=OE.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Bf,useDebugValue:tc,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Bf(!1),t=e[0];return e=DE.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,l=Wt();if(fe){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Oe===null)throw Error(_(349));dr&30||Hm(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Hf(Gm.bind(null,r,i,e),[e]),r.flags|=2048,ei(9,Wm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Oe.identifierPrefix;if(fe){var n=un,r=sn;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qt]=t,e[Yl]=r,am(e,t,!1,!1),t.stateNode=e;e:{switch(o=mu(n,r),n){case"dialog":oe("cancel",e),oe("close",e),l=r;break;case"iframe":case"object":case"embed":oe("load",e),l=r;break;case"video":case"audio":for(l=0;lXr&&(t.flags|=128,r=!0,fl(i,!1),t.lanes=4194304)}else{if(!r)if(e=xo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!fe)return Be(t),null}else 2*Se()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,fl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Se(),t.sibling=null,n=he.current,ie(he,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return lc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function PS(e,t){switch(Da(t),t.tag){case 1:return lt(t.type)&&wo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kr(),ae(rt),ae(Qe),Ka(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qa(t),null;case 13:if(ae(he),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(he),null;case 4:return Kr(),null;case 10:return Ba(t.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Ai=!1,We=!1,MS=typeof WeakSet=="function"?WeakSet:Set,P=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function Bu(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Yf=!1;function IS(e,t){if(xu=po,e=mp(),Va(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,f=0,p=e,y=null;t:for(;;){for(var w;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(w=p.firstChild)!==null;)y=p,p=w;for(;;){if(p===e)break t;if(y===n&&++a===l&&(s=o),y===i&&++f===r&&(u=o),(w=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nu={focusedElem:e,selectionRange:n},po=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,T=g.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:It(t.type,v),T);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(S){ye(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return g=Yf,Yf=!1,g}function Tl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Bu(t,n,i)}l=l.next}while(l!==r)}}function qo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Hu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[Yl],delete t[Tu],delete t[pS],delete t[mS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hm(e){return e.tag===5||e.tag===3||e.tag===4}function Xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=go));else if(r!==4&&(e=e.child,e!==null))for(Wu(e,t,n),e=e.sibling;e!==null;)Wu(e,t,n),e=e.sibling}function Gu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gu(e,t,n),e=e.sibling;e!==null;)Gu(e,t,n),e=e.sibling}var Le=null,$t=!1;function mn(e,t,n){for(n=n.child;n!==null;)pm(e,t,n),n=n.sibling}function pm(e,t,n){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Wo,n)}catch{}switch(n.tag){case 5:We||Tr(n,t);case 6:var r=Le,l=$t;Le=null,mn(e,t,n),Le=r,$t=l,Le!==null&&($t?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&($t?(e=Le,n=n.stateNode,e.nodeType===8?Ts(e.parentNode,n):e.nodeType===1&&Ts(e,n),Hl(e)):Ts(Le,n.stateNode));break;case 4:r=Le,l=$t,Le=n.stateNode.containerInfo,$t=!0,mn(e,t,n),Le=r,$t=l;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Bu(n,t,o),l=l.next}while(l!==r)}mn(e,t,n);break;case 1:if(!We&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ye(n,t,s)}mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,mn(e,t,n),We=r):mn(e,t,n);break;default:mn(e,t,n)}}function Zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new MS),t.forEach(function(r){var l=jS.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RS(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Po=0,J&6)throw Error(C(331));var l=J;for(J|=4,P=e.current;P!==null;){var i=P,o=i.child;if(P.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uSe()-nc?or(e,0):tc|=n),it(e,t)}function Cm(e,t){t===0&&(e.mode&1?(t=vi,vi<<=1,!(vi&130023424)&&(vi=4194304)):t=1);var n=Je();e=fn(e,t),e!==null&&(li(e,t,n),it(e,n))}function US(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cm(e,n)}function jS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Cm(e,n)}var _m;_m=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,AS(e,t,n);tt=!!(e.flags&131072)}else tt=!1,fe&&t.flags&1048576&&Np(t,Eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ki(e,t),e=t.pendingProps;var l=Wr(t,Qe.current);Dr(t,n),l=Xa(null,t,r,e,l,n);var i=Za();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(i=!0,vo(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Wa(t),l.updater=Zo,t.stateNode=l,l._reactInternals=t,Lu(t,r,e,n),t=Du(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Oa(t),Ke(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ki(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=HS(r),e=It(r,e),l){case 0:t=Ou(null,t,r,e,n);break e;case 1:t=Gf(null,t,r,e,n);break e;case 11:t=Hf(null,t,r,e,n);break e;case 14:t=Wf(null,t,r,It(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),Ou(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),Gf(e,t,r,l,n);case 3:e:{if(om(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Pp(e,t),ko(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Yr(Error(C(423)),t),t=Qf(e,t,r,n,l);break e}else if(r!==l){l=Yr(Error(C(424)),t),t=Qf(e,t,r,n,l);break e}else for(ct=Mn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,Rt=null,n=Rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===l){t=dn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return Lp(t),e===null&&Iu(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Fu(r,l)?o=null:i!==null&&Fu(r,i)&&(t.flags|=32),im(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&Iu(t),null;case 13:return sm(e,t,n);case 4:return Ga(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qr(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),Hf(e,t,r,l,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,ie(Co,r._currentValue),r._currentValue=o,i!==null)if(zt(i.value,o)){if(i.children===l.children&&!rt.current){t=dn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ln(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),$u(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(C(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),$u(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ke(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dr(t,n),l=_t(l),r=r(l),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,l=It(r,t.pendingProps),l=It(r.type,l),Wf(e,t,r,l,n);case 15:return rm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),Ki(e,t),t.tag=1,lt(r)?(e=!0,vo(t)):e=!1,Dr(t,n),Ip(t,r,l),Lu(t,r,l,n),Du(null,t,r,!0,e,n);case 19:return um(e,t,n);case 22:return lm(e,t,n)}throw Error(C(156,t.tag))};function km(e,t){return Zh(e,t)}function BS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new BS(e,t,n,r)}function oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HS(e){if(typeof e=="function")return oc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xa)return 11;if(e===Na)return 14}return 2}function Ln(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")oc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Sr:return sr(n.children,l,i,t);case ka:o=8,l|=8;break;case iu:return e=vt(12,n,t,l|2),e.elementType=iu,e.lanes=i,e;case ou:return e=vt(13,n,t,l),e.elementType=ou,e.lanes=i,e;case su:return e=vt(19,n,t,l),e.elementType=su,e.lanes=i,e;case $h:return es(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mh:o=10;break e;case Ih:o=9;break e;case xa:o=11;break e;case Na:o=14;break e;case wn:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=vt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function es(e,t,n,r){return e=vt(22,e,r,t),e.elementType=$h,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WS(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ws(0),this.expirationTimes=ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ws(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function sc(e,t,n,r,l,i,o,s,u){return e=new WS(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wa(i),e}function GS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Am)}catch(e){console.error(e)}}Am(),Nh.exports=mt;var Tm=Nh.exports,Pm,ld=Tm;Pm=ld.createRoot,ld.hydrateRoot;class ZS extends O{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class JS extends h.Component{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function qS(e,t,n,r){const l=new ZS(n,()=>t(n,r),e);return h.createElement(JS,l)}const bS=(()=>{try{return Py(h.version.slice(void 0,1+1),511,!1,32)>=18}catch{return!1}})();function eE(e,t,n){let r;return $g(Lt(bS?(r=Pm(document.getElementById(t)),l=>i=>{r.render(e(o=>s=>o===s,Uc(n),l,i))}):l=>i=>{Tm.render(e(o=>s=>o===s,Uc(n),l,i),document.getElementById(t))}),n)}function tE(e,t){return eE((n,r,l,i)=>qS(Lt(n),Lt(r),l,i),e,t)}function nE(e,t){let n;const r=t.hash.length>1?as(t.hash,1):"";if(r.indexOf("?")>=0){const l=as(r,0,r.indexOf("?"));n=[l,as(r,l.length)]}else n=[r,"?"];return dg(e,n[0],pg(n[1]))}class Ce extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","SignUp","Login","DynamicForm","FormList","ValidationStrategies","ComposabilitySimple","ComposabilityWithConfiguration","CustomAction","NotFound"]}}class ce extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetRoute","SignUpMsg","LoginMsg","DynamicFormMsg","FormListMsg","ValidationStrategiesMsg","ComposabilitySimpleMsg","ComposabilityWithConfigurationMsg","CustomActionMsg"]}}class ve extends O{constructor(t,n){super(),this.CurrentRoute=t,this.ActivePage=n}}function fc(e,t){const n=new ve(e,t.ActivePage);if(e!=null){const r=e;switch(r.tag){case 2:{const l=qg();return[new ve(n.CurrentRoute,new Ce(2,[l[0]])),Ve(i=>new ce(2,[i]),l[1])]}case 3:{const l=hh();return[new ve(n.CurrentRoute,new Ce(3,[l[0]])),Ve(i=>new ce(3,[i]),l[1])]}case 4:{const l=mh();return[new ve(n.CurrentRoute,new Ce(4,[l[0]])),Ve(i=>new ce(4,[i]),l[1])]}case 6:{const l=yh();return[new ve(n.CurrentRoute,new Ce(5,[l[0]])),Ve(i=>new ce(5,[i]),l[1])]}case 5:if(r.fields[0].tag===1){const l=xh();return[new ve(n.CurrentRoute,new Ce(7,[l[0]])),Ve(i=>new ce(7,[i]),l[1])]}else{const l=kh();return[new ve(n.CurrentRoute,new Ce(6,[l[0]])),Ve(i=>new ce(6,[i]),l[1])]}case 7:{const l=ru();return[new ve(n.CurrentRoute,new Ce(8,[l[0]])),Ve(i=>new ce(8,[i]),l[1])]}case 0:return[new ve(n.CurrentRoute,new Ce(0,[])),L()];case 8:return[new ve(n.CurrentRoute,new Ce(9,[])),L()];default:{const l=ch();return[new ve(n.CurrentRoute,new Ce(1,[l[0]])),Ve(i=>new ce(1,[i]),l[1])]}}}else return[new ve(n.CurrentRoute,new Ce(9,[])),L()]}function rE(e,t){switch(e.tag){case 1:{const n=t.ActivePage;if(n.tag===1){let r,l;const i=Kg(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(1,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(1,[s]),o),r[0],r[1])}else return[t,L()]}case 2:{const n=t.ActivePage;if(n.tag===2){let r,l;const i=bg(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(2,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(2,[s]),o),r[0],r[1])}else return[t,L()]}case 3:{const n=t.ActivePage;if(n.tag===3){let r,l;const i=nw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(3,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(3,[s]),o),r[0],r[1])}else return[t,L()]}case 4:{const n=t.ActivePage;if(n.tag===4){let r,l;const i=cw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(4,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(4,[s]),o),r[0],r[1])}else return[t,L()]}case 6:{const n=t.ActivePage;if(n.tag===6){let r,l;const i=Tw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(6,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(6,[s]),o),r[0],r[1])}else return[t,L()]}case 7:{const n=t.ActivePage;if(n.tag===7){let r,l;const i=Vw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(7,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(7,[s]),o),r[0],r[1])}else return[t,L()]}case 5:{const n=t.ActivePage;if(n.tag===5){let r,l;const i=yw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(5,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(5,[s]),o),r[0],r[1])}else return[t,L()]}case 8:{const n=t.ActivePage;if(n.tag===8){let r,l;const i=jw(e.fields[0],n.fields[0]);return l=Ue(o=>new Ce(8,[o]),i[0],i[1]),r=Ue(o=>new ve(t.CurrentRoute,o),l[0],l[1]),pn(o=>Ve(s=>new ce(8,[s]),o),r[0],r[1])}else return[t,L()]}default:return fc(e.fields[0],t)}}function lE(e){return fc(e,new ve(void 0,new Ce(0,[])))}function yn(e){const t=_([h.createElement("a",x(_([Bg(e.Route),["children",e.Title]]))),h.createElement("div",x(N("content",U(["children",e.Description]))))]);return h.createElement("li",{children:E.Children.toArray(Array.from(t))})}function gn(e,t){const n=Ge(A(()=>z(I(h.createElement("br",{})),A(()=>{let r;return z(I(h.createElement("div",x(N("content",_([["className","has-text-centered"],(r=[h.createElement("h5",x(N("title is-5",_([["className","is-5"],["children",e.Title]]))))],["children",E.Children.toArray(Array.from(r))])]))))),A(()=>{let l;return z((l=e.Remark,l==null?I(Et()):I(l)),A(()=>z(I(h.createElement("hr",{})),A(()=>{let i;return z(I(h.createElement("pre",x(_([["className","code-preview"],(i=[h.createElement("code",{children:e.Code.trim()})],["children",E.Children.toArray(Array.from(i))])])))),A(()=>{let o;return z(I(h.createElement("div",x(N("",_([["className","has-text-centered"],(o=[h.createElement("a",{href:e.GithubLink,children:"Full source code"})],["children",E.Children.toArray(Array.from(o))])]))))),A(()=>z(I(h.createElement("hr",{})),A(()=>I(t)))))}))}))))}))}))));return h.createElement("div",{children:E.Children.toArray(Array.from(n))})}function iE(e,t){let n,r,l,i,o,s,u;switch(e.tag){case 1:return gn(jc,Jg(e.fields[0],a=>{t(new ce(1,[a]))}));case 2:return gn(Bc,tw(e.fields[0],a=>{t(new ce(2,[a]))}));case 3:return gn(Wc,uw(e.fields[0],a=>{t(new ce(3,[a]))}));case 4:return gn(Gc,mw(e.fields[0],a=>{t(new ce(4,[a]))}));case 5:return gn(Qc,vw(e.fields[0],a=>{t(new ce(5,[a]))}));case 6:return gn(Kc,Iw(e.fields[0],a=>{t(new ce(6,[a]))}));case 7:return gn(Yc,zw(e.fields[0],a=>{t(new ce(7,[a]))}));case 8:return gn(Jc,Qw(e.fields[0],a=>{t(new ce(8,[a]))}));case 9:return"Page not found";default:{const a=_([h.createElement("br",{}),h.createElement("div",x(N("content",_([["className","has-text-centered"],(n=[h.createElement("h5",x(N("title is-5",_([["className","is-5"],["children","List of examples"]]))))],["children",E.Children.toArray(Array.from(n))])])))),h.createElement("hr",{}),(r=_([h.createElement("p",x(N("subtitle",_([["className","is-5"],["children","Basic"]])))),(l=_(["The features demonstrated in this section are available for all the library based on ",h.createElement("b",{children:["Fable.Form"]})]),h.createElement("p",{children:E.Children.toArray(Array.from(l))}))]),h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(r))})),(i=_([yn(Bc),yn(jc),yn(Wc),yn(Gc),yn(Kc),yn(Yc)]),h.createElement("ul",{children:E.Children.toArray(Array.from(i))})),(o=_([h.createElement("p",x(N("subtitle",_([["className","is-5"],["children","Advanced"]])))),(s="The features demonstrated in this section depends on the library which provides the view implementation",h.createElement("p",{children:[s]})),h.createElement("p",{children:["The goal here is to demonstrate advanced usage that you could need when implementing your own view"]})]),h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(o))})),(u=_([yn(Qc),yn(Jc)]),h.createElement("ul",{children:E.Children.toArray(Array.from(u))}))]);return h.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}}}function oE(e,t){const n=U(h.createElement("div",x(N("column",_([["className","is-8"],["className","is-offset-2"],["children",iE(e.ActivePage,t)]])))));return h.createElement("div",{className:"columns",children:E.Children.toArray(Array.from(n))})}Og(tE("root",Dg(e=>nE(jg,e),fc,Ig(lE,rE,oE)))); +`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HE=typeof WeakMap=="function"?WeakMap:Map;function op(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mo||(Mo=!0,Xu=r),zu(e,t)},n}function sp(e,t,n){n=an(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){zu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){zu(e,t),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Wf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HE;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=rS.bind(null,e,t,n),t.then(e,e))}function Gf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qf(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e)}var WE=Cn.ReactCurrentOwner,tt=!1;function Ke(e,t,n,r){t.child=e===null?zm(t,null,n,r):Qr(t,e.child,n,r)}function Kf(e,t,n,r,l){n=n.render;var i=t.ref;return Or(t,l),r=ba(e,t,n,r,i,l),n=qa(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,pn(e,t,l)):(fe&&n&&Ua(t),t.flags|=1,Ke(e,t,r,l),t.child)}function Yf(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!ac(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,up(e,t,i,r,l)):(e=bi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(o,r)&&e.ref===t.ref)return pn(e,t,l)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function up(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Ql(i,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,pn(e,t,l)}return Uu(e,t,n,r,l)}function ap(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},oe(Pr,ct),ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,oe(Pr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,oe(Pr,ct),ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,oe(Pr,ct),ct|=r;return Ke(e,t,l,n),t.child}function cp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uu(e,t,n,r,l){var i=it(n)?cr:Qe.current;return i=Wr(t,i),Or(t,l),n=ba(e,t,n,r,i,l),r=qa(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,pn(e,t,l)):(fe&&r&&Ua(t),t.flags|=1,Ke(e,t,n,l),t.child)}function Xf(e,t,n,r,l){if(it(n)){var i=!0;So(t)}else i=!1;if(Or(t,l),t.stateNode===null)Xi(e,t),Dm(t,n,r),Ou(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=xt(a):(a=it(n)?cr:Qe.current,a=Wr(t,a));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Uf(t,o,r,a),xn=!1;var y=t.memoizedState;o.state=y,Fo(t,r,o,l),u=t.memoizedState,s!==r||y!==u||lt.current||xn?(typeof d=="function"&&(Du(t,n,d,r),u=t.memoizedState),(s=xn||zf(t,n,s,r,y,u,a))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vm(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:Rt(t.type,s),o.props=a,m=t.pendingProps,y=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=xt(u):(u=it(n)?cr:Qe.current,u=Wr(t,u));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==m||y!==u)&&Uf(t,o,r,u),xn=!1,y=t.memoizedState,o.state=y,Fo(t,r,o,l);var g=t.memoizedState;s!==m||y!==g||lt.current||xn?(typeof w=="function"&&(Du(t,n,w,r),g=t.memoizedState),(a=xn||zf(t,n,a,r,y,g,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ju(e,t,n,r,i,l)}function ju(e,t,n,r,l,i){cp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Rf(t,n,!1),pn(e,t,i);r=t.stateNode,WE.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Qr(t,e.child,null,i),t.child=Qr(t,null,s,i)):Ke(e,t,s,i),t.memoizedState=r.state,l&&Rf(t,n,!0),t.child}function fp(e){var t=e.stateNode;t.pendingContext?$f(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$f(e,t.context,!1),Ya(e,t.containerInfo)}function Zf(e,t,n,r,l){return Gr(),Ba(l),t.flags|=256,Ke(e,t,n,r),t.child}var Bu={dehydrated:null,treeContext:null,retryLane:0};function Hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function dp(e,t,n){var r=t.pendingProps,l=me.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),oe(me,l&1),e===null)return Vu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ts(o,r,0,null),e=ur(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hu(n),t.memoizedState=Bu,e):nc(t,o));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return GE(e,t,o,r,s,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=jn(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?i=jn(s,i):(i=ur(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Hu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Bu,r}return i=e.child,e=i.sibling,r=jn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nc(e,t){return t=ts({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ti(e,t,n,r){return r!==null&&Ba(r),Qr(t,e.child,null,n),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GE(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Ls(Error(_(422))),Ti(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=ts({mode:"visible",children:r.children},l,0,null),i=ur(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Qr(t,e.child,null,o),t.child.memoizedState=Hu(o),t.memoizedState=Bu,i);if(!(t.mode&1))return Ti(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=Ls(i,r,void 0),Ti(e,t,o,r)}if(s=(o&e.childLanes)!==0,tt||s){if(r=Oe,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,mn(e,l),zt(r,e,l,-1))}return uc(),r=Ls(Error(_(421))),Ti(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,dt=Dn(l.nextSibling),ht=t,fe=!0,Lt=null,e!==null&&(vt[Et++]=sn,vt[Et++]=un,vt[Et++]=fr,sn=e.id,un=e.overflow,fr=t),t=nc(t,r.children),t.flags|=4096,t)}function Jf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lu(e.return,t,n)}function Ds(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function hp(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Ke(e,t,r.children,n),r=me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jf(e,n,t);else if(e.tag===19)Jf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oe(me,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ao(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ds(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ao(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ds(t,!0,n,null,i);break;case"together":Ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function QE(e,t,n){switch(t.tag){case 3:fp(t),Gr();break;case 5:Um(t);break;case 1:it(t.type)&&So(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;oe(ko,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(oe(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?dp(e,t,n):(oe(me,me.current&1),e=pn(e,t,n),e!==null?e.sibling:null);oe(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hp(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),oe(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,n)}return pn(e,t,n)}var mp,Wu,pp,yp;mp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Wu=function(){};pp=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,lr(Zt.current);var i=null;switch(n){case"input":l=du(e,l),r=du(e,r),i=[];break;case"select":l=ye({},l,{value:void 0}),r=ye({},r,{value:void 0}),i=[];break;case"textarea":l=pu(e,l),r=pu(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vo)}gu(n,r);var o;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var s=l[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zl.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(zl.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&se("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};yp=function(e,t,n,r){n!==r&&(t.flags|=4)};function dl(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function KE(e,t,n){var r=t.pendingProps;switch(ja(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return it(t.type)&&Eo(),We(t),null;case 3:return r=t.stateNode,Kr(),ce(lt),ce(Qe),Za(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(bu(Lt),Lt=null))),Wu(e,t),We(t),null;case 5:Xa(t);var l=lr(Jl.current);if(n=t.type,e!==null&&t.stateNode!=null)pp(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return We(t),null}if(e=lr(Zt.current),Ai(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Qt]=t,r[Xl]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qt]=t,e[Xl]=r,mp(e,t,!1,!1),t.stateNode=e;e:{switch(o=wu(n,r),n){case"dialog":se("cancel",e),se("close",e),l=r;break;case"iframe":case"object":case"embed":se("load",e),l=r;break;case"video":case"audio":for(l=0;lXr&&(t.flags|=128,r=!0,dl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),dl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!fe)return We(t),null}else 2*Se()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,dl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Se(),t.sibling=null,n=me.current,oe(me,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return sc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function YE(e,t){switch(ja(t),t.tag){case 1:return it(t.type)&&Eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kr(),ce(lt),ce(Qe),Za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xa(t),null;case 13:if(ce(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(me),null;case 4:return Kr(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return sc(),null;case 24:return null;default:return null}}var Pi=!1,Ge=!1,XE=typeof WeakSet=="function"?WeakSet:Set,M=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Gu(e,t,n){try{n()}catch(r){we(e,t,r)}}var bf=!1;function ZE(e,t){if(Nu=yo,e=Em(),za(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,d=0,m=e,y=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(u=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(w=m.firstChild)!==null;)y=m,m=w;for(;;){if(m===e)break t;if(y===n&&++a===l&&(s=o),y===i&&++d===r&&(u=o),(w=m.nextSibling)!==null)break;m=y,y=m.parentNode}m=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tu={focusedElem:e,selectionRange:n},yo=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,P=g.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rt(t.type,v),P);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){we(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=bf,bf=!1,g}function Pl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Gu(t,n,i)}l=l.next}while(l!==r)}}function qo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[Xl],delete t[Iu],delete t[IE],delete t[$E])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wp(e){return e.tag===5||e.tag===3||e.tag===4}function qf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ku(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vo));else if(r!==4&&(e=e.child,e!==null))for(Ku(e,t,n),e=e.sibling;e!==null;)Ku(e,t,n),e=e.sibling}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}var ze=null,Vt=!1;function _n(e,t,n){for(n=n.child;n!==null;)vp(e,t,n),n=n.sibling}function vp(e,t,n){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Go,n)}catch{}switch(n.tag){case 5:Ge||Tr(n,t);case 6:var r=ze,l=Vt;ze=null,_n(e,t,n),ze=r,Vt=l,ze!==null&&(Vt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Vt?(e=ze,n=n.stateNode,e.nodeType===8?Ps(e.parentNode,n):e.nodeType===1&&Ps(e,n),Wl(e)):Ps(ze,n.stateNode));break;case 4:r=ze,l=Vt,ze=n.stateNode.containerInfo,Vt=!0,_n(e,t,n),ze=r,Vt=l;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Gu(n,t,o),l=l.next}while(l!==r)}_n(e,t,n);break;case 1:if(!Ge&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){we(n,t,s)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,_n(e,t,n),Ge=r):_n(e,t,n);break;default:_n(e,t,n)}}function ed(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XE),t.forEach(function(r){var l=iS.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bE(r/1960))-r,10e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,Io=0,b&6)throw Error(_(331));var l=b;for(b|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uSe()-ic?sr(e,0):lc|=n),ot(e,t)}function Ap(e,t){t===0&&(e.mode&1?(t=Si,Si<<=1,!(Si&130023424)&&(Si=4194304)):t=1);var n=Je();e=mn(e,t),e!==null&&(si(e,t,n),ot(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ap(e,n)}function iS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Ap(e,n)}var Np;Np=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,QE(e,t,n);tt=!!(e.flags&131072)}else tt=!1,fe&&t.flags&1048576&&Mm(t,_o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var l=Wr(t,Qe.current);Or(t,n),l=ba(null,t,r,e,l,n);var i=qa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(i=!0,So(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ka(t),l.updater=Jo,t.stateNode=l,l._reactInternals=t,Ou(t,r,e,n),t=ju(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Ua(t),Ke(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=sS(r),e=Rt(r,e),l){case 0:t=Uu(null,t,r,e,n);break e;case 1:t=Xf(null,t,r,e,n);break e;case 11:t=Kf(null,t,r,e,n);break e;case 14:t=Yf(null,t,r,Rt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rt(r,l),Uu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rt(r,l),Xf(e,t,r,l,n);case 3:e:{if(fp(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vm(e,t),Fo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Yr(Error(_(423)),t),t=Zf(e,t,r,n,l);break e}else if(r!==l){l=Yr(Error(_(424)),t),t=Zf(e,t,r,n,l);break e}else for(dt=Dn(t.stateNode.containerInfo.firstChild),ht=t,fe=!0,Lt=null,n=zm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===l){t=pn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return Um(t),e===null&&Vu(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Pu(r,l)?o=null:i!==null&&Pu(r,i)&&(t.flags|=32),cp(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&Vu(t),null;case 13:return dp(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qr(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rt(r,l),Kf(e,t,r,l,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,oe(ko,r._currentValue),r._currentValue=o,i!==null)if(Ut(i.value,o)){if(i.children===l.children&&!lt.current){t=pn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=an(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Lu(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(_(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Lu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ke(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Or(t,n),l=xt(l),r=r(l),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,l=Rt(r,t.pendingProps),l=Rt(r.type,l),Yf(e,t,r,l,n);case 15:return up(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rt(r,l),Xi(e,t),t.tag=1,it(r)?(e=!0,So(t)):e=!1,Or(t,n),Dm(t,r,l),Ou(t,r,l,n),ju(null,t,r,!0,e,n);case 19:return hp(e,t,n);case 22:return ap(e,t,n)}throw Error(_(156,t.tag))};function Tp(e,t){return tm(e,t)}function oS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new oS(e,t,n,r)}function ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sS(e){if(typeof e=="function")return ac(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Na)return 11;if(e===Ta)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ac(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Er:return ur(n.children,l,i,t);case Aa:o=8,l|=8;break;case uu:return e=St(12,n,t,l|2),e.elementType=uu,e.lanes=i,e;case au:return e=St(13,n,t,l),e.elementType=au,e.lanes=i,e;case cu:return e=St(19,n,t,l),e.elementType=cu,e.lanes=i,e;case Oh:return ts(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lh:o=10;break e;case Dh:o=9;break e;case Na:o=11;break e;case Ta:o=14;break e;case kn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=St(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function ur(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function ts(e,t,n,r){return e=St(22,e,r,t),e.elementType=Oh,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function zs(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uS(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vs(0),this.expirationTimes=vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vs(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function cc(e,t,n,r,l,i,o,s,u){return e=new uS(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=St(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ka(i),e}function aS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($p)}catch(e){console.error(e)}}$p(),Mh.exports=yt;var Rp=Mh.exports,Vp,ud=Rp;Vp=ud.createRoot,ud.hydrateRoot;class mS extends D{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class pS extends f.Component{constructor(t){super(t)}shouldComponentUpdate(t,n){const r=this;return!r.props.equal(r.props.model,t.model)}render(){return this.props.render()}}function yS(e,t,n,r){const l=new mS(n,()=>t(n,r),e);return f.createElement(pS,l)}const gS=(()=>{try{return Wy(f.version.slice(void 0,1+1),511,!1,32)>=18}catch{return!1}})();function wS(e,t,n){let r;return Yg(Dt(gS?(r=Vp(document.getElementById(t)),l=>i=>{r.render(e(o=>s=>o===s,Hc(n),l,i))}):l=>i=>{Rp.render(e(o=>s=>o===s,Hc(n),l,i),document.getElementById(t))}),n)}function vS(e,t){return wS((n,r,l,i)=>yS(Dt(n),Dt(r),l,i),e,t)}function ES(e,t){let n;const r=t.hash.length>1?cs(t.hash,1):"";if(r.indexOf("?")>=0){const l=cs(r,0,r.indexOf("?"));n=[l,cs(r,l.length)]}else n=[r,"?"];return Ag(e,n[0],Tg(n[1]))}class ge extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","SignUp","Login","File","DynamicForm","FormList","ValidationStrategies","ComposabilitySimple","ComposabilityWithConfiguration","CustomAction","NotFound"]}}class le extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetRoute","SignUpMsg","LoginMsg","FileMsg","DynamicFormMsg","FormListMsg","ValidationStrategiesMsg","ComposabilitySimpleMsg","ComposabilityWithConfigurationMsg","CustomActionMsg"]}}class he extends D{constructor(t,n){super(),this.CurrentRoute=t,this.ActivePage=n}}function mc(e,t){const n=new he(e,t.ActivePage);if(e!=null){const r=e;switch(r.tag){case 2:{const l=hw();return[new he(n.CurrentRoute,new ge(2,[l[0]])),Fe(i=>new le(2,[i]),l[1])]}case 3:{const l=yh();return[new he(n.CurrentRoute,new ge(3,[l[0]])),Fe(i=>new le(3,[i]),l[1])]}case 4:{const l=wh();return[new he(n.CurrentRoute,new ge(4,[l[0]])),Fe(i=>new le(4,[i]),l[1])]}case 5:{const l=Eh();return[new he(n.CurrentRoute,new ge(5,[l[0]])),Fe(i=>new le(5,[i]),l[1])]}case 7:{const l=Sh();return[new he(n.CurrentRoute,new ge(6,[l[0]])),Fe(i=>new le(6,[i]),l[1])]}case 6:if(r.fields[0].tag===1){const l=Ph();return[new he(n.CurrentRoute,new ge(8,[l[0]])),Fe(i=>new le(8,[i]),l[1])]}else{const l=Th();return[new he(n.CurrentRoute,new ge(7,[l[0]])),Fe(i=>new le(7,[i]),l[1])]}case 8:{const l=ou();return[new he(n.CurrentRoute,new ge(9,[l[0]])),Fe(i=>new le(9,[i]),l[1])]}case 0:return[new he(n.CurrentRoute,new ge(0,[])),R()];case 9:return[new he(n.CurrentRoute,new ge(10,[])),R()];default:{const l=hh();return[new he(n.CurrentRoute,new ge(1,[l[0]])),Fe(i=>new le(1,[i]),l[1])]}}}else return[new he(n.CurrentRoute,new ge(10,[])),R()]}function SS(e,t){switch(e.tag){case 1:{const n=t.ActivePage;if(n.tag===1){let r,l;const i=uw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(1,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(1,[s]),o),r[0],r[1])}else return[t,R()]}case 2:{const n=t.ActivePage;if(n.tag===2){let r,l;const i=mw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(2,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(2,[s]),o),r[0],r[1])}else return[t,R()]}case 3:{const n=t.ActivePage;if(n.tag===3){let r,l;const i=gw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(3,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(3,[s]),o),r[0],r[1])}else return[t,R()]}case 4:{const n=t.ActivePage;if(n.tag===4){let r,l;const i=Ew(e.fields[0],n.fields[0]);return l=$e(o=>new ge(4,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(4,[s]),o),r[0],r[1])}else return[t,R()]}case 5:{const n=t.ActivePage;if(n.tag===5){let r,l;const i=Nw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(5,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(5,[s]),o),r[0],r[1])}else return[t,R()]}case 7:{const n=t.ActivePage;if(n.tag===7){let r,l;const i=Kw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(7,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(7,[s]),o),r[0],r[1])}else return[t,R()]}case 8:{const n=t.ActivePage;if(n.tag===8){let r,l;const i=ev(e.fields[0],n.fields[0]);return l=$e(o=>new ge(8,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(8,[s]),o),r[0],r[1])}else return[t,R()]}case 6:{const n=t.ActivePage;if(n.tag===6){let r,l;const i=Rw(e.fields[0],n.fields[0]);return l=$e(o=>new ge(6,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(6,[s]),o),r[0],r[1])}else return[t,R()]}case 9:{const n=t.ActivePage;if(n.tag===9){let r,l;const i=iv(e.fields[0],n.fields[0]);return l=$e(o=>new ge(9,[o]),i[0],i[1]),r=$e(o=>new he(t.CurrentRoute,o),l[0],l[1]),tn(o=>Fe(s=>new le(9,[s]),o),r[0],r[1])}else return[t,R()]}default:return mc(e.fields[0],t)}}function CS(e){return mc(e,new he(void 0,new ge(0,[])))}function nn(e){const t=C([f.createElement("a",k(C([rw(e.Route),["children",e.Title]]))),f.createElement("div",k(F("content",U(["children",e.Description]))))]);return f.createElement("li",{children:E.Children.toArray(Array.from(t))})}function rn(e,t){const n=xe(A(()=>L(N(f.createElement("br",{})),A(()=>{let r;return L(N(f.createElement("div",k(F("content",C([["className","has-text-centered"],(r=[f.createElement("h5",k(F("title is-5",C([["className","is-5"],["children",e.Title]]))))],["children",E.Children.toArray(Array.from(r))])]))))),A(()=>{let l;return L((l=e.Remark,l==null?N(_t()):N(l)),A(()=>L(N(f.createElement("hr",{})),A(()=>{let i;return L(N(f.createElement("pre",k(C([["className","code-preview"],(i=[f.createElement("code",{children:e.Code.trim()})],["children",E.Children.toArray(Array.from(i))])])))),A(()=>{let o;return L(N(f.createElement("div",k(F("",C([["className","has-text-centered"],(o=[f.createElement("a",{href:e.GithubLink,children:"Full source code"})],["children",E.Children.toArray(Array.from(o))])]))))),A(()=>L(N(f.createElement("hr",{})),A(()=>N(t)))))}))}))))}))}))));return f.createElement("div",{children:E.Children.toArray(Array.from(n))})}function _S(e,t){let n,r,l,i,o,s,u;switch(e.tag){case 1:return rn(Wc,dw(e.fields[0],a=>{t(new le(1,[a]))}));case 2:return rn(Gc,yw(e.fields[0],a=>{t(new le(2,[a]))}));case 3:return rn(Qc,vw(e.fields[0],a=>{t(new le(3,[a]))}));case 4:return rn(Yc,Fw(e.fields[0],a=>{t(new le(4,[a]))}));case 5:return rn(Xc,$w(e.fields[0],a=>{t(new le(5,[a]))}));case 6:return rn(Zc,Dw(e.fields[0],a=>{t(new le(6,[a]))}));case 7:return rn(Jc,Zw(e.fields[0],a=>{t(new le(7,[a]))}));case 8:return rn(bc,rv(e.fields[0],a=>{t(new le(8,[a]))}));case 9:return rn(tf,cv(e.fields[0],a=>{t(new le(9,[a]))}));case 10:return"Page not found";default:{const a=C([f.createElement("br",{}),f.createElement("div",k(F("content",C([["className","has-text-centered"],(n=[f.createElement("h5",k(F("title is-5",C([["className","is-5"],["children","List of examples"]]))))],["children",E.Children.toArray(Array.from(n))])])))),f.createElement("hr",{}),(r=C([f.createElement("p",k(F("subtitle",C([["className","is-5"],["children","Basic"]])))),(l=C(["The features demonstrated in this section are available for all the library based on ",f.createElement("b",{children:["Fable.Form"]})]),f.createElement("p",{children:E.Children.toArray(Array.from(l))}))]),f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(r))})),(i=C([nn(Gc),nn(Wc),nn(Qc),nn(Yc),nn(Xc),nn(Jc),nn(bc)]),f.createElement("ul",{children:E.Children.toArray(Array.from(i))})),(o=C([f.createElement("p",k(F("subtitle",C([["className","is-5"],["children","Advanced"]])))),(s="The features demonstrated in this section depends on the library which provides the view implementation",f.createElement("p",{children:[s]})),f.createElement("p",{children:["The goal here is to demonstrate advanced usage that you could need when implementing your own view"]})]),f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(o))})),(u=C([nn(Zc),nn(tf)]),f.createElement("ul",{children:E.Children.toArray(Array.from(u))}))]);return f.createElement("div",{className:"content",children:E.Children.toArray(Array.from(a))})}}}function kS(e,t){const n=U(f.createElement("div",k(F("column",C([["className","is-8"],["className","is-offset-2"],["children",_S(e.ActivePage,t)]])))));return f.createElement("div",{className:"columns",children:E.Children.toArray(Array.from(n))})}bg(vS("root",qg(e=>ES(nw,e),mc,Kg(CS,SS,kS)))); diff --git a/examples/index.html b/examples/index.html index 825df4e..6c6ded6 100644 --- a/examples/index.html +++ b/examples/index.html @@ -1 +1 @@ -Fable.Form
              \ No newline at end of file +Fable.Form
              \ No newline at end of file diff --git a/index.html b/index.html index 274281e..0830a1f 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -Fable.Form · Introduction

              Fable.Form allows you to build forms that are:

              • Composable: they can be extended and embedded into other forms
              • Type safe: makes the most of F# compiler to tie everything together
              • Scalable: you don't need a Msg for each field neither repeat your view code
              • Terse: your field logic is defined in a single place
              • Modular: you can create your own fields and customize how existing fields are rendered
              let form : Form.Form<Values, Msg, _> =
              +Fable.Form · Introduction

              Fable.Form allows you to build forms that are:

              • Composable: they can be extended and embedded into other forms
              • Type safe: makes the most of F# compiler to tie everything together
              • Scalable: you don't need a Msg for each field neither repeat your view code
              • Terse: your field logic is defined in a single place
              • Modular: you can create your own fields and customize how existing fields are rendered
              let form : Form.Form<Values, Msg, _> =
                   let emailField =
                       Form.textField
                           {
              diff --git a/sponsors.html b/sponsors.html
              index 7abe094..7a99945 100644
              --- a/sponsors.html
              +++ b/sponsors.html
              @@ -1 +1 @@
              -Fable.Form · Sponsors & Backers

              The development of this project is made possible thanks to the support of these awesome sponsors & backers.

              Become a backer or sponsor on Patreon

              If you prefer one time donation, you can do it via Paypal

              \ No newline at end of file +Fable.Form · Sponsors & Backers

              The development of this project is made possible thanks to the support of these awesome sponsors & backers.

              Become a backer or sponsor on Patreon

              If you prefer one time donation, you can do it via Paypal

              \ No newline at end of file