vendor: 8,401 bytes, line 1
1(()=>{var yi=Object.defineProperty;var Ti=(e,t,o)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var w=(e,t,o)=>Ti(e,typeof t!="symbol"?t+"":t,o);var Yt,j,kr,wi,Fe,Tr,qr,Fr,Co,Wt,ht,Sr,Po,jo,Oo,zr,Ut={},Zt=[],Ii=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Kt=Array.isArray;function ye(e,t){for(var o in t)e[o]=t[o];return e}function Do(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ki(e,t,o){var r,i,n,s={};for(n in t)n=="key"?r=t[n]:n=="ref"?i=t[n]:s[n]=t[n];if(arguments.length>2&&(s.children=arguments.length>3?Yt.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(n in e.defaultProps)s[n]===void 0&&(s[n]=e.defaultProps[n]);return Nt(e,s,r,i,null)}function Nt(e,t,o,r,i){var n={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++kr,__i:-1,__u:0};return i==null&&j.vnode!=null&&j.vnode(n),n}function he(e){return e.children}function Ht(e,t){this.props=e,this.context=t}function Ze(e,t){if(t==null)return e.__?Ze(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?Ze(e):null}function qi(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],i=[],n=ye({},t);n.__v=t.__v+1,j.vnode&&j.vnode(n),Lo(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,o??Ze(t),!!(32&t.__u),i),n.__v=t.__v,n.__.__k[n.__i]=n,Or(r,n,i),t.__e=t.__=null,n.__e!=o&&Mr(n)}}function Mr(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Mr(e)}function Ro(e){(!e.__d&&(e.__d=!0)&&Fe.push(e)&&!Gt.__r++||Tr!=j.debounceRendering)&&((Tr=j.debounceRendering)||qr)(Gt)}function Gt(){try{for(var e,t=1;Fe.length;)Fe.length>t&&Fe.sort(Fr),e=Fe.shift(),t=Fe.length,qi(e)}finally{Fe.length=Gt.__r=0}}function Cr(e,t,o,r,i,n,s,a,l,m,p){var u,f,x,b,q,R,C,M=r&&r.__k||Zt,qe=t.length;for(l=Fi(o,t,M,l,qe),u=0;u<qe;u++)(x=o.__k[u])!=null&&(f=x.__i!=-1&&M[x.__i]||Ut,x.__i=u,R=Lo(e,x,f,i,n,s,a,l,m,p),b=x.__e,x.ref&&f.ref!=x.ref&&(f.ref&&$o(f.ref,null,x),p.push(x.ref,x.__c||b,x)),q==null&&b!=null&&(q=b),(C=!!(4&x.__u))||f.__k===x.__k?(l=jr(x,l,e,C),C&&f.__e&&(f.__e=null)):typeof x.type=="function"&&R!==void 0?l=R:b&&(l=b.nextSibling),x.__u&=-7);return o.__e=q,l}function Fi(e,t,o,r,i){var n,s,a,l,m,p=o.length,u=p,f=0;for(e.__k=new Array(i),n=0;n<i;n++)(s=t[n])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[n]=Nt(null,s,null,null,null):Kt(s)?s=e.__k[n]=Nt(he,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[n]=Nt(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[n]=s,l=n+f,s.__=e,s.__b=e.__b+1,a=null,(m=s.__i=Si(s,o,l,u))!=-1&&(u--,(a=o[m])&&(a.__u|=2)),a==null||a.__v==null?(m==-1&&(i>p?f--:i<p&&f++),typeof s.type!="function"&&(s.__u|=4)):m!=l&&(m==l-1?f--:m==l+1?f++:(m>l?f--:f++,s.__u|=4))):e.__k[n]=null;if(u)for(n=0;n<p;n++)(a=o[n])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Ze(a)),Br(a,a));return r}function jr(e,t,o,r){var i,n;if(typeof e.type=="function"){for(i=e.__k,n=0;i&&n<i.length;n++)i[n]&&(i[n].__=e,t=jr(i[n],t,o,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ze(e)),o.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Si(e,t,o,r){var i,n,s,a=e.key,l=e.type,m=t[o],p=m!=null&&(2&m.__u)==0;if(m===null&&a==null||p&&a==m.key&&l==m.type)return o;if(r>(p?1:0)){for(i=o-1,n=o+1;i>=0||n<t.length;)if((m=t[s=i>=0?i--:n++])!=null&&(2&m.__u)==0&&a==m.key&&l==m.type)return s}return-1}function wr(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||Ii.test(t)?o:o+"px"}function $t(e,t,o,r,i){var n,s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||wr(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||wr(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")n=t!=(t=t.replace(Sr,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+n]=o,o?r?o[ht]=r[ht]:(o[ht]=Po,e.addEventListener(t,n?Oo:jo,n)):e.removeEventListener(t,n?Oo:jo,n);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function Ir(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t[Wt]==null)t[Wt]=Po++;else if(t[Wt]<o[ht])return;return o(j.event?j.event(t):t)}}}function Lo(e,t,o,r,i,n,s,a,l,m){var p,u,f,x,b,q,R,C,M,qe,Ce,ft,yr,Lt,Mo,fe=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(l=!!(32&o.__u),n=[a=t.__e=o.__e]),(p=j.__b)&&p(t);e:if(typeof fe=="function")try{if(C=t.props,M=fe.prototype&&fe.prototype.render,qe=(p=fe.contextType)&&r[p.__c],Ce=p?qe?qe.props.value:p.__:r,o.__c?R=(u=t.__c=o.__c).__=u.__E:(M?t.__c=u=new fe(C,Ce):(t.__c=u=new Ht(C,Ce),u.constructor=fe,u.render=Mi),qe&&qe.sub(u),u.state||(u.state={}),u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),M&&u.__s==null&&(u.__s=u.state),M&&fe.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ye({},u.__s)),ye(u.__s,fe.getDerivedStateFromProps(C,u.__s))),x=u.props,b=u.state,u.__v=t,f)M&&fe.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),M&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(M&&fe.getDerivedStateFromProps==null&&C!==x&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,Ce),t.__v==o.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,Ce)===!1){t.__v!=o.__v&&(u.props=C,u.state=u.__s,u.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(Ue){Ue&&(Ue.__=t)}),Zt.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,Ce),M&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(x,b,q)})}if(u.context=Ce,u.props=C,u.__P=e,u.__e=!1,ft=j.__r,yr=0,M)u.state=u.__s,u.__d=!1,ft&&ft(t),p=u.render(u.props,u.state,u.context),Zt.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,ft&&ft(t),p=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++yr<25);u.state=u.__s,u.getChildContext!=null&&(r=ye(ye({},r),u.getChildContext())),M&&!f&&u.getSnapshotBeforeUpdate!=null&&(q=u.getSnapshotBeforeUpdate(x,b)),Lt=p!=null&&p.type===he&&p.key==null?Rr(p.props.children):p,a=Cr(e,Kt(Lt)?Lt:[Lt],t,o,r,i,n,s,a,l,m),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),R&&(u.__E=u.__=null)}catch(Ue){if(t.__v=null,l||n!=null)if(Ue.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;n[n.indexOf(a)]=null,t.__e=a}else{for(Mo=n.length;Mo--;)Do(n[Mo]);Bo(t)}else t.__e=o.__e,t.__k=o.__k,Ue.then||Bo(t);j.__e(Ue,t,o)}else n==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):a=t.__e=zi(o.__e,t,o,r,i,n,s,l,m);return(p=j.diffed)&&p(t),128&t.__u?void 0:a}function Bo(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Bo))}function Or(e,t,o){for(var r=0;r<o.length;r++)$o(o[r],o[++r],o[++r]);j.__c&&j.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(n){n.call(i)})}catch(n){j.__e(n,i.__v)}})}function Rr(e){return typeof e!="object"||e==null||e.__b>0?e:Kt(e)?e.map(Rr):e.constructor!==void 0?null:ye({},e)}function zi(e,t,o,r,i,n,s,a,l){var m,p,u,f,x,b,q,R=o.props||Ut,C=t.props,M=t.type;if(M=="svg"?i="http://www.w3.org/2000/svg":M=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),n!=null){for(m=0;m<n.length;m++)if((x=n[m])&&"setAttribute"in x==!!M&&(M?x.localName==M:x.nodeType==3)){e=x,n[m]=null;break}}if(e==null){if(M==null)return document.createTextNode(C);e=document.createElementNS(i,M,C.is&&C),a&&(j.__m&&j.__m(t,n),a=!1),n=null}if(M==null)R===C||a&&e.data==C||(e.data=C);else{if(n=M=="textarea"&&C.defaultValue!=null?null:n&&Yt.call(e.childNodes),!a&&n!=null)for(R={},m=0;m<e.attributes.length;m++)R[(x=e.attributes[m]).name]=x.value;for(m in R)x=R[m],m=="dangerouslySetInnerHTML"?u=x:m=="children"||m in C||m=="value"&&"defaultValue"in C||m=="checked"&&"defaultChecked"in C||$t(e,m,null,x,i);for(m in C)x=C[m],m=="children"?f=x:m=="dangerouslySetInnerHTML"?p=x:m=="value"?b=x:m
vendor: 2,725 bytes, line 1
1=="checked"?q=x:a&&typeof x!="function"||R[m]===x||$t(e,m,x,R[m],i);if(p)a||u&&(p.__html==u.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(u&&(e.innerHTML=""),Cr(t.type=="template"?e.content:e,Kt(f)?f:[f],t,o,r,M=="foreignObject"?"http://www.w3.org/1999/xhtml":i,n,s,n?n[0]:o.__k&&Ze(o,0),a,l),n!=null)for(m=n.length;m--;)Do(n[m]);a&&M!="textarea"||(m="value",M=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[m]||M=="progress"&&!b||M=="option"&&b!=R[m])&&$t(e,m,b,R[m],i),m="checked",q!=null&&q!=e[m]&&$t(e,m,q,R[m],i))}return e}function $o(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){j.__e(i,o)}}function Br(e,t,o){var r,i;if(j.unmount&&j.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||$o(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){j.__e(n,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Br(r[i],t,o||typeof e.type!="function");o||Do(e.__e),e.__c=e.__=e.__e=void 0}function Mi(e,t,o){return this.constructor(e,o)}function Pr(e,t,o){var r,i,n,s;t==document&&(t=document.documentElement),j.__&&j.__(e,t),i=(r=typeof o=="function")?null:o&&o.__k||t.__k,n=[],s=[],Lo(t,e=(!r&&o||t).__k=ki(he,null,[e]),i||Ut,Ut,t.namespaceURI,!r&&o?[o]:i?null:t.firstChild?Yt.call(t.childNodes):null,n,!r&&o?o:i?i.__e:t.firstChild,r,s),Or(n,e,s)}function Ge(e){function t(o){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&r.forEach(function(s){s.__e=!0,Ro(s)})},this.sub=function(n){r.add(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),s&&s.call(n)}}),o.children}return t.__c="__cC"+zr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}Yt=Zt.slice,j={__e:function(e,t,o,r){for(var i,n,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((n=i.constructor)&&n.getDerivedStateFromError!=null&&(i.setState(n.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},kr=0,wi=function(e){return e!=null&&e.constructor===void 0},Ht.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ye({},this.state),typeof e=="function"&&(e=e(ye({},o),this.props)),e&&ye(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ro(this))},Ht.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ro(this))},Ht.prototype.render=he,Fe=[],qr=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Fr=function(e,t){return e.__v.__b-t.__v.__b},Gt.__r=0,Co=Math.random().toString(8),Wt="__d"+Co,ht="__a"+Co,Sr=/(PointerCapture)$|Capture$/i,Po=0,jo=Ir(!1),Oo=Ir(!0),zr=0;var Ci=0;function c(e,t,o,r,i,n){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var m={type:e,props:l,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ci,__i:-1,__u:0,__source:i,__self:n};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return j.vnode&&j.vnode(m),m}var H;(function(e){e.ofN=(...t)=>t,e.prepend=t=>o=>[o,...t],e.append=t=>o=>[...t,o],e.concat=(t,o)=>[...t,...o]})(H||(H={}));var d;(function(e){e.impossible=t=>t,e.never=(t="up")=>{throw new Error(t)},e.identity=t=>t,e.constant=t=>o=>t,e.constantC=t=>o=>t,e.apply=(t,o)=>o(t),e.applyC=t=>o=>o(t),e.flip=t=>o=>r=>t(r)(o),e.pure=e.constant,e.flatMap=t=>o=>r=>o(t(r))(r),e.delay=t=>o=>t()(o),e.lazy=t=>{let o=null;return r=>(o===null&&(o=t()),o(r))},e.andThen=(t,o)=>r=>o(t(r)),e.andThen3=(t,o,r)=>e.andThen(e.andThen(t,o),r),e.andThen4=(t,o,r,i)=>e.andThen(e.andThen(e.andThen(t,o),r),i),e.andThen5=(t,o,r,i,n)=>e.andThen(e.andThen(e.andThen(e.andThen(t,o),r),i),n),e.andThen6=(t,o,r,i,n,s)=>e.andThen(e.andThen(e.andThen(e.andThen(e.andThen(t,o),r),i),n),s),e.andThenN=(...t)=>t.reduce((o,r)=>i=>r(o(i))),e.map=e.andThen,e.compose=(t,o)=>e.andThen(o,t),e.compose3=(t,o,r)=>e.andThen3(r,o,t),e.compose4=(t,o,r,i)=>e.andThen4(i,r,o,t),e.compose5=(t,o,r,i,n)=>e.andThen5(n,i,r,o,t),e.compose6=(t,o,r,i,n,s)=>e.andThen6(s,n,i,r,o,t),e.composeN=(...t)=>t.reduce((o,r)=>i=>o(r(i))),e.contraMap=e.compose,e.applied=t=>o=>{let r={};for(let[i,n]of Object.entries(t))r[i]=n(o[i]);return r},e.tap=t=>o=>(t(o),o),e.memoize=t=>()=>{let o=new Map;return r=>{if(o.has(r))return o.get(r);{let i=t(r);return o.set(r,i),i}}}})(d||(d={}));var P;(function(e){e.builtin=(t,o)=>t===o,e.builtinOf=()=>e.builtin,e.builtinBy=t=>e.contraMap(e.builtin)(t),e.not=t=>(o,r)=>!t(o,r),e.and=(t,o)=>(r,i)=>t(r,i)&&o(r,i),e.or=(t,o)=>(r,i)=>t(r,i)||o(r,i),e.fromComparator=t=>(o,r)=>t(o,r)===0,e.contraMap=t=>o=>(r,i)=>t(o(r),o(i))})(P||(P={}));var I;(function(e){e.builtin=(t,o)=>t>o?1:t<o?-1:0,e.builtinOf=()=>e.builtin,e.builtinBy=t=>e.contraMap(e.builtin)(t),e.contraMap=t=>o=>(r,i)=>t(o(r),o(i)),e.trivial=()=>(t,o)=>0,e.concat=(t,o)=>(r,i)=>t(r,i)||o(r,i),e.join=t=>(o,r)=>{for(let i of t){let n=i(o,r);if(n!==0)return n}return 0},e.joinN=(...t)=>e.join(t),e.reverse=t=>(o,r)=>t(r,o),e.maximum=t=>(o,r)=>t(o,r)>0?o:r,e.minimum=t=>(o,r)=>t(o,r)<0?o:r,e.monoid=()=>({empty:e.trivial(),concat:e.concat})})(I||(I={}));var T;(function(e){e.clamp=(t,o,r)=>t<o?o:t>r?r:t,e.roundTo=(t,o)=>Math.round(t/o)*o,e.intDigits=(t,o)=>(t<0?"-":"")+Math.abs(Math.round(t)).toString().padStart(o,"0"),e.randomInt=t=>{if(t<0)throw new TypeError(`limit has to be >= 0 but got ${t}`);return Math.floor(Math.random()*t)},e.equal=P.builtin,e.compare=I.builtin,e.sum={empty:0,concat:(t,o)=>t+o,inverse:t=>-t,concatInverse:(t,o)=>t-o},e.product={empty:1,concat:(t,o)=>t*o,inverse:t=>1/t,concatInverse:(t,o)=>t/o},e.min={empty:1/0,concat:(t,o)=>Math.min(t,o)},e.max={empty:-1/0,concat:(t,o)=>Math.max(t,o)}})(T||(T={}));var Se;(function(e){e.is=t=>t!==null,e.unsafe=t=>{if(t===null)throw new Error("unexpected null value");return t}})(Se||(Se={}));var Te;(function(e){e.always=()=>t=>!0,e.never=()=>t=>!1,e.not=t=>o=>!t(o),e.and=(t,o)=>r=>t(r)&&o(r),e.or=(t,o)=>r=>t(r)||o(r),e.conjunction=()=>({empty:e.always(),concat:e.and}),e.disjunction=()=>({empty:e.never(),concat:e.or}),e.andMonoid=e.conjunction,e.orMonoid=e.disjunction,e.every=t=>o=>t.every(r=>r(o)),e.some=t=>o=>t.some(r=>r(o)),e.contraMap=t=>o=>r=>t(o(r))})(Te||(Te={}));var g;(function(e){e.valid=t=>({tag:"Valid",value:t}),e.invalid=t=>({tag:"Invalid",errors:t}),e.isValid=t=>t.tag==="Valid",e.isInvalid=t=>t.tag==="Invalid",e.cata=t=>(o,r)=>e.isValid(t)?r(t.value):o(t.errors),e.visit=t=>o=>e.cata(t)(o.invalid,o.valid),e.invalid1=t=>e.invalid([t]),e.when=t=>o=>r=>o?e.valid(t):e.invalid(r),e.when1=t=>o=>r=>o?e.valid(t):e.invalid1(r),e.test=t=>o=>r=>o(t)?e.valid(t):e.invalid(r),e.test1=t=>o=>r=>o(t)?e.valid(t):e.invalid1(r),e.testIs=t=>o=>r=>o(t)?e.valid(t):e.invalid(r),e.testIs1=t=>o=>r=>o(t)?e.valid(t):e.invalid1(r),e.tryCatch=t=>{try{return e.pure(t())}
1catch(o){return e.invalid1(o)}},e.tryCatchWith=t=>o=>e.mapFailure(e.tryCatch(t))(o),e.fromErrors=t=>t.length!==0?e.invalid(t):e.valid(void 0),e.unlessErrors=t=>o=>t.length!==0?e.invalid(z.unsafeFromArray(t)):e.valid(o),e.fromNullable=t=>o=>t!==null?e.pure(t):e.invalid1(o),e.toNullable=t=>e.isValid(t)?t.value:null,e.fromMaybe=t=>o=>h.isSome(t)?e.valid(t.value):e.invalid1(o),e.toMaybe=t=>e.isValid(t)?h.some(t.value):h.none(),e.toArray=t=>e.isValid(t)?[t.value]:[],e.toEither=t=>e.isValid(t)?k.right(t.value):k.left(t.errors),e.fromEither1=t=>k.isRight(t)?e.valid(t.value):e.invalid1(t.error),e.fromEither=t=>k.isRight(t)?e.valid(t.value):e.invalid(t.error),e.includes=t=>o=>e.exists(t)(r=>r===o),e.exists=t=>o=>e.isValid(t)?o(t.value):!1,e.forall=t=>o=>e.isValid(t)?o(t.value):!0,e.some=e.exists,e.every=e.forall,e.fail=e.invalid1,e.mapFailure=t=>o=>e.isInvalid(t)?e.invalid(z.map(t.errors)(o)):t,e.errorsToNullable=t=>e.isInvalid(t)?t.errors:null,e.unsafeGetErrors=t=>{if(e.isInvalid(t))return t.errors;throw new Error(`unexpected Valid: ${String(t.value)}`)},e.forEach=t=>o=>{e.isValid(t)&&o(t.value)},e.get=t=>o=>e.isValid(t)?t.value:o,e.unsafeGet=t=>{if(e.isValid(t))return t.value;throw new Error("unexpected Invalid: "+t.errors.join(", "))},e.orThrowWith=t=>o=>{if(e.isValid(t))return t.value;throw o(t.errors)},e.orElse=t=>o=>e.isInvalid(t)&&e.isInvalid(o)?e.invalid(z.concat(t.errors,o.errors)):e.isValid(t)?t:o,e.filterIs=t=>o=>r=>e.isInvalid(t)?t:o(t.value)?e.valid(t.value):e.invalid(r),e.filterIs1=t=>o=>r=>e.filterIs(t)(o)([r]),e.map=t=>o=>e.isValid(t)?e.valid(o(t.value)):t,e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.tupleBy=t=>o=>e.map(t)(r=>[r,o(r)]),e.pure=e.valid,e.ap=t=>o=>e.map2(o,t)((r,i)=>r(i)),e.map2=(t,o)=>r=>e.isInvalid(t)&&e.isInvalid(o)?e.invalid(z.concat(t.errors,o.errors)):e.isInvalid(t)?t:e.isInvalid(o)?o:e.valid(r(t.value,o.value)),e.tuple2=(t,o)=>e.map2(t,o)(H.ofN),e.tupleN=(t,...o)=>e.mapN(t,...o)(H.ofN),e.mapN=(t,...o)=>r=>{let i=[],n=[],s=[t,...o];for(let a of s)e.isValid(a)?i.push(a.value):_.pushAll(n)(a.errors);return e.unlessErrors(n)(r(...i))},e.object=t=>{let o=[],r={};for(let i in t){let n=t[i];e.isValid(n)?r[i]=n.value:_.pushAll(o)(n.errors)}return e.unlessErrors(o)(r)},e.mapObject=(t,o)=>e.map(e.object(t))(o),e.thenAp=t=>o=>e.isInvalid(t)?t:e.isInvalid(o)?o:e.valid(o.value(t.value)),e.then=t=>o=>e.isValid(t)?o(t.value):t,e.thenFlat=t=>e.then(t)(d.identity),e.thenObject=(t,o)=>e.then(e.object(t))(o),e.traverseKleisli=t=>o=>r=>e.isValid(t)?e.valid(o(t.value)(r)):t,e.sequenceKleisli=t=>e.traverseKleisli(t)(d.identity),e.traverseNullable=t=>o=>e.isValid(t)?G.then(o(t.value))(r=>e.valid(r)):t,e.sequenceNullable=t=>e.traverseNullable(t)(d.identity),e.traverseArray=t=>o=>e.isValid(t)?o(t.value).map(r=>e.valid(r)):[t],e.sequenceArray=t=>e.traverseArray(t)(d.identity),e.traverseNea=t=>o=>e.isValid(t)?z.map(o(t.value))(r=>e.valid(r)):z.single(t),e.sequenceNea=t=>e.traverseNea(t)(d.identity),e.traverseMaybe=t=>o=>e.isValid(t)?h.map(o(t.value))(r=>e.valid(r)):h.some(t),e.sequenceMaybe=t=>e.traverseMaybe(t)(d.identity),e.traverseEither=t=>o=>e.isValid(t)?k.map(o(t.value))(r=>e.valid(r)):k.right(t),e.sequenceEither=t=>e.traverseEither(t)(d.identity),e.traverseValidated=t=>o=>e.isValid(t)?e.map(o(t.value))(r=>e.valid(r)):e.valid(t),e.sequenceValidated=t=>e.traverseValidated(t)(d.identity),e.traversePromise=t=>o=>e.isValid(t)?o(t.value).then(r=>e.valid(r)):Promise.resolve(t),e.sequencePromise=t=>e.traversePromise(t)(d.identity),e.traverseSync=t=>o=>()=>e.isValid(t)?e.valid(o(t.value)()):t,e.sequenceSync=t=>e.traverseSync(t)(d.identity),e.traverseAsync=t=>o=>()=>e.traversePromise(t)(r=>o(r)()),e.sequenceAsync=t=>e.traverseAsync(t)(d.identity),e.traverseZio=t=>o=>r=>e.traversePromise(t)(i=>o(i)(r)),e.sequenceZio=t=>e.traverseZio(t)(d.identity)})(g||(g={}));var k;(function(e){e.right=t=>({tag:"Right",value:t}),e.left=t=>({tag:"Left",error:t}),e.isRight=t=>t.tag==="Right",e.isLeft=t=>t.tag==="Left",e.cata=t=>(o,r)=>e.isRight(t)?r(t.value):o(t.error),e.visit=t=>o=>e.cata(t)(o.left,o.right),e.when=t=>o=>r=>o?e.right(t):e.left(r),e.test=t=>o=>r=>o(t)?e.right(t):e.left(r),e.testIs=t=>o=>r=>o(t)?e.right(t):e.left(r),e.tryCatch=t=>{try{return e.pure(t())}catch(o){return e.left(o)}},e.tryCatchWith=t=>o=>e.mapFailure(e.tryCatch(t))(o),e.fromNullable=t=>o=>t!==null?e.right(t):e.left(o),e.toNullable=t=>e.isRight(t)?t.value:null,e.fromMaybe=t=>o=>h.isSome(t)?e.right(t.value):e.left(o),e.toMaybe=t=>e.isRight(t)?h.some(t.value):h.none(),e.toArray=t=>e.isRight(t)?[t.value]:[],e.includes=t=>o=>e.exists(t)(r=>r===o),e.exists=t=>o=>e.isRight(t)?o(t.value):!1,e.forall=t=>o=>e.isRight(t)?o(t.value):!0,e.some=e.exists,e.every=e.forall,e.fail
1=e.left,e.mapFailure=t=>o=>e.isLeft(t)?e.left(o(t.error)):t,e.errorToNullable=t=>e.isLeft(t)?t.error:null,e.unsafeGetError=t=>{if(e.isLeft(t))return t.error;throw new Error(`unexpected Right: ${String(t.value)}`)},e.swap=t=>e.isRight(t)?e.left(t.value):e.right(t.error),e.bimap=t=>(o,r)=>e.isRight(t)?e.right(r(t.value)):e.left(o(t.error)),e.merge=t=>e.isRight(t)?t.value:t.error,e.forEach=t=>o=>{e.isRight(t)&&o(t.value)},e.get=t=>o=>e.isRight(t)?t.value:o,e.orElse=t=>o=>e.isRight(t)?t:o,e.unsafeGet=t=>{if(e.isRight(t))return t.value;throw new Error(`unexpected Left: ${String(t.error)}`)},e.orThrowWith=t=>o=>{if(e.isRight(t))return t.value;throw o(t.error)},e.filterIs=t=>o=>r=>e.isLeft(t)?t:o(t.value)?e.right(t.value):e.left(r),e.map=t=>o=>e.isRight(t)?e.right(o(t.value)):t,e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.tupleBy=t=>o=>e.map(t)(r=>[r,o(r)]),e.pure=e.right,e.ap=t=>o=>e.flatMap(o)(e.map(t)),e.map2=(t,o)=>r=>e.isLeft(t)?t:e.isLeft(o)?o:e.right(r(t.value,o.value)),e.tuple2=(t,o)=>e.map2(t,o)(H.ofN),e.tupleN=(t,...o)=>e.mapN(t,...o)(H.ofN),e.mapN=(t,...o)=>r=>{if(e.isLeft(t))return e.left(t.error);let i=t.value,n=[];for(let s of o){if(e.isLeft(s))return e.left(s.error);n.push(s.value)}return e.right(r(i,...n))},e.object=t=>{let o={};for(let r in t){let i=t[r];if(e.isLeft(i))return i;o[r]=i.value}return e.right(o)},e.mapObject=(t,o)=>e.map(e.object(t))(o),e.flatMap=t=>o=>e.isRight(t)?o(t.value):t,e.flatten=t=>e.flatMap(t)(d.identity),e.flatMapObject=(t,o)=>e.flatMap(e.object(t))(o),e.traverseKleisli=t=>o=>r=>e.isRight(t)?e.right(o(t.value)(r)):t,e.sequenceKleisli=t=>e.traverseKleisli(t)(d.identity),e.traverseNullable=t=>o=>e.isRight(t)?G.then(o(t.value))(r=>e.right(r)):t,e.sequenceNullable=t=>e.traverseNullable(t)(d.identity),e.traverseArray=t=>o=>e.isRight(t)?o(t.value).map(r=>e.right(r)):[t],e.sequenceArray=t=>e.traverseArray(t)(d.identity),e.traverseNea=t=>o=>e.isRight(t)?z.map(o(t.value))(r=>e.right(r)):z.single(t),e.sequenceNea=t=>e.traverseNea(t)(d.identity),e.traverseMaybe=t=>o=>e.isRight(t)?h.map(o(t.value))(r=>e.right(r)):h.some(t),e.sequenceMaybe=t=>e.traverseMaybe(t)(d.identity),e.traverseEither=t=>o=>e.isRight(t)?e.map(o(t.value))(r=>e.right(r)):e.right(t),e.sequenceEither=t=>e.traverseEither(t)(d.identity),e.traverseValidated=t=>o=>e.isRight(t)?g.map(o(t.value))(r=>e.right(r)):g.valid(t),e.sequenceValidated=t=>e.traverseValidated(t)(d.identity),e.traversePromise=t=>o=>e.isRight(t)?o(t.value).then(r=>e.right(r)):Promise.resolve(t),e.sequencePromise=t=>e.traversePromise(t)(d.identity),e.traverseSync=t=>o=>()=>e.isRight(t)?e.right(o(t.value)()):t,e.sequenceSync=t=>e.traverseSync(t)(d.identity),e.traverseAsync=t=>o=>()=>e.traversePromise(t)(r=>o(r)()),e.sequenceAsync=t=>e.traverseAsync(t)(d.identity),e.traverseZio=t=>o=>r=>e.traversePromise(t)(i=>o(i)(r)),e.sequenceZio=t=>e.traverseZio(t)(d.identity)})(k||(k={}));var h;(function(e){e.some=t=>({tag:"Some",value:t}),e.none=()=>({tag:"None"}),e.isSome=t=>t.tag==="Some",e.isNone=t=>t.tag==="None",e.cata=t=>(o,r)=>e.isSome(t)?r(t.value):o(),e.visit=t=>o=>e.cata(t)(o.none,o.some),e.when=t=>o=>o?e.some(t):e.none(),e.test=t=>o=>o(t)?e.some(t):e.none(),e.testIs=t=>o=>o(t)?e.some(t):e.none(),e.fromNullable=t=>t!==null?e.some(t):e.none(),e.toNullable=t=>e.isSome(t)?t.value:null,e.toArray=t=>e.isSome(t)?[t.value]:[],e.toSet=t=>new Set(e.toArray(t)),e.includes=t=>o=>e.exists(t)(r=>r===o),e.exists=t=>o=>e.isSome(t)?o(t.value):!1,e.forall=t=>o=>e.isSome(t)?o(t.value):!0,e.every=e.forall,e.filter=t=>o=>e.isNone(t)||o(t.value)?t:e.none(),e.filterNot=t=>o=>e.filter(t)(Te.not(o)),e.partition=t=>o=>[e.filter(t)(o),e.filterNot(t)(o)],e.collapseNullable=t=>e.filterIs(t)(Se.is),e.collapseMapNullable=t=>o=>e.collapseNullable(e.map(t)(o)),e.filterIs=t=>o=>e.isSome(t)&&o(t.value)?e.some(t.value):e.none(),e.fail=e.none,e.forEach=t=>o=>{e.isSome(t)&&o(t.value)},e.unsafeGet=t=>{if(e.isSome(t))return t.value;throw new Error("unexpected None")},e.orElse=t=>o=>e.isSome(t)?t:o,e.getOr=t=>o=>e.isSome(t)?t.value:o,e.mapOr=t=>o=>r=>e.isSome(t)?o(t.value):r,e.map=t=>o=>e.isSome(t)?e.some(o(t.value)):t,e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.tupleBy=t=>o=>e.map(t)(r=>[r,o(r)]),e.pure=e.some,e.ap=t=>o=>e.flatMap(o)(e.map(t)),e.map2=(t,o)=>r=>e.isSome(t)&&e.isSome(o)?e.some(r(t.value,o.value)):e.none(),e.tuple2=(t,o)=>e.map2(t,o)(H.ofN),e.tupleN=(t,...o)=>e.mapN(t,...o)(H.ofN),e.mapN=(t,...o)=>r=>{if(e.isNone(t))return e.none();let i=t.value,n=[];for(let s of o){if(e.isNone(s))return e.none();n.push(s.value)}return e.some(r(i,...n))},e.object=t=>{let o={};for(let r in t){let i=t[r];
1if(e.isNone(i))return i;o[r]=i.value}return e.some(o)},e.mapObject=(t,o)=>e.map(e.object(t))(o),e.flatMap=t=>o=>e.isSome(t)?o(t.value):t,e.flatten=t=>e.flatMap(t)(d.identity),e.flatMapObject=(t,o)=>e.flatMap(e.object(t))(o),e.traverseKleisli=t=>o=>r=>e.isSome(t)?e.some(o(t.value)(r)):t,e.sequenceKleisli=t=>e.traverseKleisli(t)(d.identity),e.traverseArray=t=>o=>e.isSome(t)?o(t.value).map(e.some):[e.none()],e.sequenceArray=t=>e.traverseArray(t)(d.identity),e.traverseNullable=t=>o=>e.isSome(t)?G.then(o(t.value))(e.some):e.none(),e.sequenceNullable=t=>e.traverseNullable(t)(d.identity),e.traverseNea=t=>o=>e.isSome(t)?z.map(o(t.value))(e.some):z.single(e.none()),e.sequenceNea=t=>e.traverseNea(t)(d.identity),e.traverseMaybe=t=>o=>e.isSome(t)?e.map(o(t.value))(e.some):e.some(e.none()),e.sequenceMaybe=t=>e.traverseMaybe(t)(d.identity),e.traverseEither=t=>o=>e.isSome(t)?k.map(o(t.value))(e.some):k.right(e.none()),e.sequenceEither=t=>e.traverseEither(t)(d.identity),e.traverseValidated=t=>o=>e.isSome(t)?g.map(o(t.value))(e.some):g.valid(e.none()),e.sequenceValidated=t=>e.traverseValidated(t)(d.identity),e.traversePromise=t=>o=>e.isSome(t)?o(t.value).then(e.some):Promise.resolve(e.none()),e.sequencePromise=t=>e.traversePromise(t)(d.identity),e.traverseSync=t=>o=>()=>e.isSome(t)?e.some(o(t.value)()):t,e.sequenceSync=t=>e.traverseSync(t)(d.identity),e.traverseAsync=t=>o=>()=>e.traversePromise(t)(r=>o(r)()),e.sequenceAsync=t=>e.traverseAsync(t)(d.identity),e.traverseZio=t=>o=>r=>e.traversePromise(t)(i=>o(i)(r)),e.sequenceZio=t=>e.traverseZio(t)(d.identity),e.fold=t=>o=>e.isSome(t)?t.value:o.empty,e.foldMap=t=>o=>r=>e.isSome(t)?o(t.value):r.empty,e.equalOf=t=>(o,r)=>e.isNone(o)&&e.isNone(r)?!0:e.isSome(o)&&e.isSome(r)?t(o.value,r.value):!1,e.equalOfBuiltin=()=>e.equalOf(P.builtin),e.monoid=t=>({empty:e.none(),concat:(o,r)=>e.isSome(o)&&e.isSome(r)?e.some(t.concat(o.value,r.value)):e.isSome(o)?o:e.isSome(r)?r:e.none()})})(h||(h={}));var ge;(function(e){e.readonly=t=>t,e.unsafeMutable=t=>t,e.empty=()=>new Map,e.single=(t,o)=>new Map([[t,o]]),e.clone=t=>new Map(t),e.keySet=t=>new Set(t.keys()),e.keyArray=t=>[...t.keys()],e.valueSet=t=>new Set(t.values()),e.valueArray=t=>[...t.values()],e.fromPairs=t=>new Map(t),e.toPairs=t=>Array.from(t.entries()),e.pairedArray=t=>o=>{let r=[];for(let[i,n]of t)r.push(o(i,n));return r},e.has=t=>o=>t.has(o),e.get=t=>o=>t.has(o)?h.some(t.get(o)):h.none(),e.getOr=t=>o=>r=>t.has(o)?t.get(o):r,e.getOrNull=t=>o=>t.has(o)?t.get(o):null,e.unsafeGet=t=>o=>{if(!t.has(o))throw new Error(`key ${String(o)} not found`);return t.get(o)},e.throughPairs=t=>o=>e.fromPairs(o(e.toPairs(t))),e.mapEntries=t=>o=>{let r=new Map;for(let[i,n]of t.entries()){let[s,a]=o(i,n);r.set(s,a)}return r},e.mapValues=t=>o=>{let r=new Map;for(let[i,n]of t)r.set(i,o(n));return r},e.mapValuesWithKey=t=>o=>{let r=new Map;for(let[i,n]of t)r.set(i,o(i,n));return r},e.collapseMapValues=t=>o=>{let r=new Map;for(let[i,n]of t){let s=o(n);h.isSome(s)&&r.set(i,s.value)}return r},e.filterKeys=t=>o=>{let r=new Map;for(let[i,n]of t)o(i)&&r.set(i,n);return r},e.filterKeysIs=t=>o=>{let r=new Map;for(let[i,n]of t)o(i)&&r.set(i,n);return r},e.filterValues=t=>o=>{let r=new Map;for(let[i,n]of t)o(n)&&r.set(i,n);return r},e.filterValuesWithKey=t=>o=>{let r=new Map;for(let[i,n]of t)o(i,n)&&r.set(i,n);return r},e.filterValuesIs=t=>o=>{let r=new Map;for(let[i,n]of t)o(n)&&r.set(i,n);return r},e.set=t=>o=>r=>{let i=e.clone(t);return i.set(o,r),i},e.modify=t=>o=>r=>{let i=e.clone(t);return i.has(o)&&i.set(o,r(i.get(o))),i},e.remove=t=>o=>{let r=e.clone(t);return r.delete(o),r},e.setMember=t=>o=>r=>h.isSome(r)?e.set(t)(o)(r.value):e.remove(t)(o),e.modifyMember=t=>o=>r=>e.setMember(t)(o)(r(e.get(t)(o))),e.prepend=t=>(o,r)=>e.concat(e.single(o,r),t),e.append=t=>(o,r)=>e.concat(t,e.single(o,r)),e.concat=(t,o)=>new Map([...t,...o]),e.getOrInsert=t=>o=>r=>{if(t.has(o))return t.get(o);{let i=r();return t.set(o,i),i}},e.concatenatedMut=()=>({empty:e.empty(),concat:e.concat}),e.concatenatedRo=()=>({empty:e.empty(),concat:e.concat})})(ge||(ge={}));var Xt;(function(e){e.greater=1,e.same=0,e.smaller=-1,e.normalize=t=>t<0?e.smaller:t>0?e.greater:e.same,e.inverse=t=>t<0?e.greater:t>0?e.smaller:e.same})(Xt||(Xt={}));var L;(function(e){e.joinN=(...o)=>e.join(o),e.join=o=>e.joinWith(o,""),e.joinWith=(o,r)=>
1o.join(r),e.mapJoin=(o,r)=>e.join(o.map(r)),e.mapJoinWith=(o,r,i)=>e.joinWith(o.map(i),r),e.firstIndexOfOrNull=o=>r=>t(o.indexOf(r)),e.lastIndexOfOrNull=o=>r=>t(o.lastIndexOf(r)),e.firstIndexOf=o=>r=>h.fromNullable(e.firstIndexOfOrNull(o)(r)),e.lastIndexOf=o=>r=>h.fromNullable(e.lastIndexOfOrNull(o)(r));let t=o=>o!==-1?o:null;e.splitAt=o=>r=>[o.substring(0,r),o.substring(r)],e.takeLeft=o=>r=>o.slice(0,r),e.takeRight=o=>r=>o.slice(o.length-r,o.length),e.dropLeft=o=>r=>o.slice(r,o.length),e.dropRight=o=>r=>o.slice(0,o.length-r),e.cutPrefix=o=>r=>o.startsWith(r)?e.dropLeft(o)(r.length):null,e.cutSuffix=o=>r=>o.endsWith(r)?e.dropRight(o)(r.length):null,e.equal=P.builtin,e.compare=I.builtin,e.joined={empty:"",concat:(o,r)=>o+r},e.collatorCompare=o=>(r,i)=>Xt.normalize(o.compare(r,i)),e.collatorEqual=o=>(r,i)=>o.compare(r,i)===0,e.localeCompare=o=>e.collatorCompare(new Intl.Collator(o.locales,o.options)),e.localeEqual=o=>e.collatorEqual(new Intl.Collator(o.locales,o.options))})(L||(L={}));var Jt;(function(e){e.equal=P.builtin,e.compare=I.builtin,e.sum={empty:0n,concat:(t,o)=>t+o,inverse:t=>-t,concatInverse:(t,o)=>t-o},e.product={empty:1n,concat:(t,o)=>t*o,inverse:t=>1n/t,concatInverse:(t,o)=>t/o}})(Jt||(Jt={}));var At;(function(e){e.not=t=>!t,e.and=(t,o)=>t&&o,e.or=(t,o)=>t||o,e.equal=P.builtin,e.compare=I.builtin,e.conjunction={empty:!0,concat:e.and},e.disjunction={empty:!1,concat:e.or},e.andMonoid=e.conjunction,e.orMonoid=e.disjunction})(At||(At={}));var re;(function(e){e.fromPartial=t=>({years:t.years??0,months:t.months??0,days:t.days??0,minutes:t.minutes??0,hours:t.hours??0,seconds:t.seconds??0,millis:t.millis??0}),e.negate=t=>({years:-t.years,months:-t.months,days:-t.days,hours:-t.hours,minutes:-t.minutes,seconds:-t.seconds,millis:-t.millis}),e.zero={years:0,months:0,days:0,hours:0,minutes:0,seconds:0,millis:0},e.equal=(t,o)=>t.years===o.years&&t.months===o.months&&t.days===o.days&&t.hours===o.hours&&t.minutes===o.minutes&&t.seconds===o.seconds&&t.millis===o.millis,e.compare=(t,o)=>t.years<o.years?-1:t.years>o.years?1:t.months<o.months?-1:t.months>o.months?1:t.days<o.days?-1:t.days>o.days?1:t.hours<o.hours?-1:t.hours>o.hours?1:t.minutes<o.minutes?-1:t.minutes>o.minutes?1:t.seconds<o.seconds?-1:t.seconds>o.seconds?1:t.millis<o.millis?-1:t.millis>o.millis?1:0})(re||(re={}));var Et;(function(e){e.fromWeekDayNumber=o=>e.values[o-1],e.toWeekDayNumber=o=>t[o],e.values=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];let t={monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6,sunday:7}})(Et||(Et={}));var gt;(function(e){e.fromSundayBasedIndex=t=>(t+6)%7+1,e.values=[1,2,3,4,5,6,7]})(gt||(gt={}));var F;(function(e){e.brand=t=>t,e.unbrand=t=>t})(F||(F={}));var le;(function(e){e.is=t=>t!==void 0,e.unsafe=t=>{if(t===void 0)throw new Error("unexpected undefined value");return t}})(le||(le={}));var ee;(function(e){e.typed=t=>{}})(ee||(ee={}));var ve;(function(e){e.brand=F.brand,e.is=t=>Number.isInteger(t),e.fromMillis=t=>e.brand(Math.round(t)),e.fromSeconds=t=>e.fromMillis(t*1e3),e.fromMinutes=t=>e.fromSeconds(t*60),e.fromHours=t=>e.fromMinutes(t*60),e.fromDays=t=>e.fromHours(t*24),e.toMillis=t=>t,e.toSeconds=t=>e.toMillis(t)/1e3,e.toMinutes=t=>e.toSeconds(t)/60,e.toHours=t=>e.toMinutes(t)/60,e.toDays=t=>e.toHours(t)/24,e.milli=e.fromMillis(1),e.second=e.fromSeconds(1),e.minute=e.fromMinutes(1),e.hour=e.fromHours(1),e.day=e.fromDays(1),e.fromUnitString=t=>{let o=/^(?<value>(0|[1-9][0-9]*)([.][0-9]+)?)\s*(?<unit>d|h|m|s|ms)$/.exec(t);if(o===null)return null;let r=le.unsafe(o.groups),i=le.unsafe(r.unit),n=i==="d"?e.fromDays:i==="h"?e.fromHours:i==="m"?e.fromMinutes:i==="s"?e.fromSeconds:i==="ms"?e.fromMillis:d.never(),s=le.unsafe(r.value),a=parseFloat(s);return n(a)},e.fromNumber=e.fromMillis,e.toNumber=e.toMillis,e.zero=e.brand(0),e.negate=t=>e.brand(-t),e.add=(t,o)=>e.brand(t+o),e.subtract=(t,o)=>e.brand(t-o),e.scaleUp=(t,o)=>e.fromMillis(t*o),e.scaleDown=(t,o)=>e.fromMillis(t/o),e.equal=T.equal,e.compare=T.compare,e.sum={empty:e.zero,concat:e.add,inverse:e.negate,concatInverse:e.subtract}})(ve||(ve={}));ee.typed(ve);var $;(function(e){e.epoch=new Date(0),e.now=()=>new Date,e.elapsedSince=o=>ve.brand(Date.now()-o.getTime()),e.clone=o=>new Date(o.getTime()),e.validOrNull=o=>e.isValid(o)?o:null,e.isValid=o=>!e.isValid(o),e.isInvalid=o=>Number.isNaN(o.getTime()),e.equal=P.builtinBy(o=>o.getTime()),e.compare=I.builtin;let t=(o,r)=>({earlier:(i,n)=>o(i,re.negate(re.fromPartial(n))),later:(i,n)=>o(i,re.fromPartial(n)),past:i=>o(e.now(),re.negate(re.fromPartial(i))),future:i=>o(e.now(),re.fromPartial(i)),weekdayName:i=>Et.fromWeekDayNumber(r(i)),weekdayNumber:r});e.local=t((o,r)=>{let i=e.clone(o);return i.setFullYear(i.getFullYear()+r.years),i.setMonth(i.getMonth()+r.months,i.getDate()+r.days),i.setHours(i.getHours()+r.hours),i.setMinutes(i.getMinutes()+r.minutes),i.setSeconds(i.getSeconds()+r.seconds),i.setMilliseconds(i.getMilliseconds()+r.millis),i},o=>gt.fromSundayBasedIndex(o.getDay())),e.utc=t((o,r)=>{let i=e.clone(o);return i.setUTCFullYear(i.getUTCFullYear()+r.years),i.setUTCMonth(i.getUTCMonth()+r.months,i.getUTCDate()+r.days),i.setUTCHours(i.getUTCHours()+r.hours),i.setUTCMinutes(i.getUTCMinutes()+r.minutes),i.setUTCSeconds(i.getUTCSeconds()+r.seconds),i.setUTCMilliseconds(i.getUTCMilliseconds()+r.millis),i},o=>gt.fromSundayBasedIndex(o.getUTCDay()))})($||($={}));var _;(function(e){e.readonly=n=>n,e.readonlyN=(...n)=>n,e.unsafeMutable=n=>n,e.empty=()=>[],e.single=n=>[n],e.zeroUntil=n=>e.ofLength(n)(d.identity),e.inclusiveRange=(n,s)=>s>=n?e.ofLength(s-n+1)(a=>n+a):e.ofLength(n-s+1)(a=>n-a),e.replicate=n=>s=>e.ofLength(n)(d.constant(s)),e.ofLength=n=>s=>Array.from({length:n},(a,l)=>s(l)),e.fromNullable=n=>n!==null?e.pure(n):e.empty(),e.when=n=>s=>s?e.pure(n):e.empty(),e.test=n=>s=>s(n)?e.pure(n):e.empty(),e.testIs=n=>s=>s(n)?e.pure(n):e.empty(),e.singleIf=(n,s)=>e.when(s)(n),e.isItemOf=n=>s=>n.includes(s),e.includes=n=>s=>n.includes(s),e.count=n=>s=>{let a=0;for(let l of n)s(l)&&(a+=1);return a},e.forall=n=>s=>n.every(s),e.exists=n=>s=>n.some(s),e.some=e.exists,e.every=e.forall,e.firstIndexOfOrNull=n=>(s,a)=>t(n.indexOf(s,a)),e.lastIndexOfOrNull=n=>(s,a)=>t(n.lastIndexOf(s,a)),e.firstIndexOf=n=>(s,a)=>o(n.indexOf(s,a)),e.lastIndexOf=n=>(s,a)=>o(n.lastIndexOf(s,a)),e.findFirstIndexOrNull=(n,s)=>a=>{let l=s??0;for(let m=l;m<n.length;m++)if(a(n[m]))return m;return null},e.findLastIndexOrNull=(n,s)=>a=>{let l=s??n.length-1;for(let m=l;m>=0;
1m--)if(a(n[m]))return m;return null},e.findFirstIndex=(n,s)=>a=>h.fromNullable(e.findFirstIndexOrNull(n,s)(a)),e.findLastIndex=(n,s)=>a=>h.fromNullable(e.findLastIndexOrNull(n,s)(a)),e.find=n=>s=>r(n.find(s)),e.findIndex=n=>s=>o(n.findIndex(s));let t=n=>n!==-1?n:null,o=n=>n!==-1?h.some(n):h.none(),r=n=>n!==void 0?h.some(n):h.none();e.at=n=>s=>h.when(n[s])(s>=0&&s<n.length),e.zeroOneMore=n=>s=>n.length===0?s.zero():n.length===1?s.one(n[0]):s.more(n),e.only=n=>h.when(n[0])(n.length===1),e.head=n=>h.when(n[0])(n.length!==0),e.last=n=>h.when(n[n.length-1])(n.length!==0),e.onlyOrNull=n=>n.length===1?n[0]:null,e.headOrNull=n=>n.length!==0?n[0]:null,e.lastOrNull=n=>n.length!==0?n[n.length-1]:null,e.unsafeOnly=n=>{if(n.length!==1)throw new Error(`expected exactly one element but got ${n.length}`);return n[0]},e.unsafeHead=n=>{if(n.length<1)throw new Error("expected at least one element");return n[0]},e.unsafeLast=n=>{if(n.length<1)throw new Error("expected at least one element");return n[n.length-1]},e.onlyOrThrow=(n,s)=>{if(n.length!==1)throw s(n.length);return n[0]},e.headOrThrow=(n,s)=>{if(n.length===0)throw s();return n[0]},e.lastOrThrow=(n,s)=>{if(n.length===0)throw s();return n[n.length-1]},e.onlyOrAll=n=>n.length===1?k.right(n[0]):k.left(n),e.init=n=>n.slice(0,n.length-1),e.tail=n=>n.slice(1,n.length),e.reverse=n=>{let s=n.slice(0);return s.reverse(),s},e.takeLeft=n=>s=>n.slice(0,s),e.takeRight=n=>s=>n.slice(n.length-s,n.length),e.dropLeft=n=>s=>n.slice(s,n.length),e.dropRight=n=>s=>n.slice(0,n.length-s),e.takeLeftWhile=n=>s=>{let a=e.findFirstIndexOrNull(n)(l=>!s(l));return a===null?n:n.slice(0,a)},e.takeRightWhile=n=>s=>{let a=e.findLastIndexOrNull(n)(l=>!s(l));return a===null?n:n.slice(a+1)},e.dropLeftWhile=n=>s=>{let a=e.findFirstIndexOrNull(n)(l=>!s(l));return a===null?[]:n.slice(a)},e.dropRightWhile=n=>s=>{let a=e.findLastIndexOrNull(n)(l=>!s(l));return a===null?[]:n.slice(0,a+1)},e.append=n=>s=>n.concat([s]),e.prepend=n=>s=>[s].concat(n),e.concat=(n,s)=>n.concat(s),e.append_=d.flip(e.append),e.prepend_=d.flip(e.prepend),e.intercalate=n=>s=>{let a=[];for(let l=0;l<n.length;l++)l!==0&&a.push(s),a.push(n[l]);return a},e.gapped=n=>s=>{if(n.length===0)return[s(h.none(),h.none())];let a=[],l=n.length-1;a.push(s(h.none(),h.some(n[0])));for(let m=0;m<l;m++)a.push(s(h.some(n[m]),h.some(n[m+1])));return a.push(s(h.some(n[l]),h.none())),a},e.padStart=n=>s=>a=>n.length<a?e.concat(e.replicate(a-n.length)(s),n):Array.from(n),e.padEnd=n=>s=>a=>n.length<a?e.concat(n,e.replicate(a-n.length)(s)):Array.from(n),e.pluck=n=>s=>n.map(a=>a[s]),e.filter=n=>s=>n.filter(s),e.filterNot=n=>s=>n.filter(Te.not(s)),e.partition=n=>s=>[n.filter(s),n.filter(Te.not(s))],e.partitionValidated=n=>{let s=[],a=[];for(let l of n)g.isValid(l)?a.push(l.value):s.push(l.errors);return[s,a]},e.partitionEither=n=>{let s=[],a=[];for(let l of n)k.isRight(l)?a.push(l.value):s.push(l.error);return[s,a]},e.filterIs=n=>s=>n.filter(s),e.collapse=n=>e.flatMap(n)(h.toArray),e.collapseMap=n=>s=>e.flatMap(n)(d.andThen(s,h.toArray)),e.collapseNullable=n=>e.filterIs(n)(Se.is),e.collapseMapNullable=n=>s=>e.collapseNullable(n.map(s)),e.collapseFirst=n=>{for(let s of n)if(h.isSome(s))return s;return h.none()},e.collapseMapFirst=n=>s=>{for(let a of n){let l=s(a);if(h.isSome(l))return l}return h.none()},e.collapseFirstNullable=n=>{for(let s of n)if(s!==null)return s;return null},e.collapseMapFirstNullable=n=>s=>{for(let a of n){let l=s(a);if(l!==null)return l}return null},e.map=n=>s=>n.map(s),e.mapConstant=n=>s=>e.map(n)(()=>s),e.mapVoid=n=>e.map(n)(()=>{}),e.tupleBy=n=>s=>e.map(n)(a=>[a,s(a)]),e.zipWithIndex=n=>n.map((s,a)=>[s,a]),e.pure=e.single,e.ap=n=>s=>e.flatMap(s)(e.map(n)),e.map2=(n,s)=>a=>e.flatMap(n)(l=>e.map(s)(m=>a(l,m))),e.tuple2=(n,s)=>e.map2(n,s)(H.ofN),e.tupleN=(n,...s)=>e.mapN(n,...s)(H.ofN),e.mapN=(n,...s)=>a=>s.length===0?n.map(a):n.flatMap(l=>{let m=(...p)=>a(l,...p);return e.mapN(...s)(m)}),e.flatMap=n=>s=>n.flatMap(s),e.flatten=n=>n.flat(),e.andThen=(n,s)=>a=>e.flatMap(n(a))(s),e.andThen3=(n,s,a)=>e.andThen(n,e.andThen(s,a)),e.andThen4=(n,s,a,l)=>e.andThen(n,e.andThen(s,e.andThen(a,l))),e.zipAp=n=>s=>e.zipMap2(s,n)((a,l)=>a(l)),e.zipMap2=(n,s)=>a=>{let l=[];for(let m=0;m<n.length&&m<s.length;m++)l.push(a(n[m],s[m]));return l},e.zipTuple2=(n,s)=>e.zipMap2(n,s)(H.ofN),e.zip=e.zipTuple2,e.zipN=(n,...s)=>e.zipMapN(n,...s)(H.ofN),e.zipMapN=(n,...s)=>a=>{if(s.length===0)return[];let l=[],m=0;for(;;){if(m>=n.length)return l;let p=[];for(let u of s){if(m>=u.length)return l;p.push(u[m])}
1l.push(a(n[m],...p)),m++}},e.unzip=n=>[n.map(([s,a])=>s),n.map(([s,a])=>a)],e.unzip3=n=>[n.map(([s,a,l])=>s),n.map(([s,a,l])=>a),n.map(([s,a,l])=>l)],e.unzip4=n=>[n.map(([s,a,l,m])=>s),n.map(([s,a,l,m])=>a),n.map(([s,a,l,m])=>l),n.map(([s,a,l,m])=>m)],e.equalWith=(n,s)=>a=>{if(n===s)return!0;if(n.length!==s.length)return!1;for(let l=0;l<n.length;l++)if(!a(n[l],s[l]))return!1;return!0},e.equalBuiltin=(n,s)=>e.equalWith(n,s)(P.builtin),e.distinctWith=n=>s=>{let a=[];for(let l of n)a.some(p=>s(p,l))||a.push(l);return a},e.distinctBuiltin=n=>e.distinctWith(n)(P.builtin),e.distinctBuiltinByField=n=>s=>e.distinctWith(n)((a,l)=>a[s]===l[s]),e.distinctBuiltinFast=n=>Array.from(new Set(n)),e.distinctBuiltinBy=n=>s=>{let a=new Set,l=[];for(let m of n){let p=s(m);a.has(p)||(a.add(p),l.push(m))}return l},e.fold=n=>s=>n.reduce(s.concat,s.empty),e.foldMap=n=>s=>a=>e.fold(n.map(s))(a),e.foldMapIntercalated=n=>s=>a=>l=>e.fold(e.intercalate(n.map(s))(a))(l),e.sortWith=n=>s=>{let a=n.slice();return a.sort(s),a},e.sortByWith=n=>s=>a=>e.sortWith(n)(I.contraMap(a)(s)),e.sortBuiltin=n=>e.sortWith(n)(I.builtin),e.sortBuiltinBy=n=>s=>e.sortWith(n)(I.builtinBy(s)),e.sortStrings=n=>e.sortWith(n)(L.compare),e.sortNumbers=n=>e.sortWith(n)(T.compare),e.sortBigints=n=>e.sortWith(n)(Jt.compare),e.sortBooleans=n=>e.sortWith(n)(At.compare),e.sortDates=n=>e.sortWith(n)($.compare),e.minimumWith=n=>s=>n.length!==0?h.some(n.reduce(I.minimum(s))):h.none(),e.maximumWith=n=>s=>n.length!==0?h.some(n.reduce(I.maximum(s))):h.none(),e.minimumOrNullWith=n=>s=>h.toNullable(e.minimumWith(n)(s)),e.maximumOrNullWith=n=>s=>h.toNullable(e.maximumWith(n)(s)),e.allMinimumWith=n=>s=>i(n,s,-1),e.allMaximumWith=n=>s=>i(n,s,1);let i=(n,s,a)=>{let l=[];for(let m of n){if(l.length===0){l=[m];continue}let p=s(m,l[0]);p===a?l=[m]:p===0&&l.push(m)}return l};e.traverseKleisli=n=>s=>a=>n.map(l=>s(l)(a)),e.sequenceKleisli=n=>e.traverseKleisli(n)(d.identity),e.flatTraverseKleisli=n=>s=>a=>e.flatten(e.traverseKleisli(n)(s)(a)),e.traverseNullable=n=>s=>{let a=[];for(let l of n){let m=s(l);if(m===null)return null;a.push(m)}return a},e.sequenceNullable=n=>e.traverseNullable(n)(d.identity),e.flatTraverseNullable=n=>s=>G.then(e.traverseNullable(n)(s))(e.flatten),e.traverseArray=n=>s=>{let a=[];for(let l of n){let m=s(l);for(let p=0;p<m.length;p++)a.length<=p&&a.push([]),a[p].push(m[p])}return a},e.sequenceArray=n=>e.traverseArray(n)(d.identity),e.flatTraverseArray=n=>s=>e.traverseArray(n)(s).map(e.flatten),e.traverseMaybe=n=>s=>{let a=[];for(let l of n){let m=s(l);if(h.isNone(m))return m;a.push(m.value)}return h.some(a)},e.sequenceMaybe=n=>e.traverseMaybe(n)(d.identity),e.flatTraverseMaybe=n=>s=>h.map(e.traverseMaybe(n)(s))(e.flatten),e.traverseEither=n=>s=>{let a=[];for(let l of n){let m=s(l);if(k.isLeft(m))return m;a.push(m.value)}return k.right(a)},e.sequenceEither=n=>e.traverseEither(n)(d.identity),e.flatTraverseEither=n=>s=>k.map(e.traverseEither(n)(s))(e.flatten),e.traverseValidated=n=>s=>{let a=[],l=[];for(let m of n){let p=s(m);g.isValid(p)?a.push(p.value):e.pushAll(l)(p.errors)}return g.unlessErrors(l)(a)},e.sequenceValidated=n=>e.traverseValidated(n)(d.identity),e.flatTraverseValidated=n=>s=>g.map(e.traverseValidated(n)(s))(e.flatten),e.traversePromise=n=>async s=>{let a=[];for(let l of n)a.push(await s(l));return a},e.sequencePromise=n=>e.traversePromise(n)(d.identity),e.flatTraversePromise=n=>s=>e.traversePromise(n)(s).then(e.flatten),e.parTraversePromise=n=>s=>Promise.all(n.map(s)),e.parSequencePromise=n=>Promise.all(n),e.parFlatTraversePromise=n=>s=>e.parTraversePromise(n)(s).then(e.flatten),e.traverseSync=n=>s=>()=>n.map(a=>s(a)()),e.sequenceSync=n=>e.traverseSync(n)(d.identity),e.flatTraverseSync=n=>s=>()=>n.flatMap(a=>s(a)()),e.traverseAsync=n=>s=>()=>e.traversePromise(n)(a=>s(a)()),e.sequenceAsync=n=>e.traverseAsync(n)(d.identity),e.flatTraverseAsync=n=>s=>()=>e.traverseAsync(n)(s)().then(e.flatten),e.parTraverseAsync=n=>s=>()=>e.parTraversePromise(n)(a=>s(a)()),e.parSequenceAsync=n=>e.parTraverseAsync(n)(d.identity),e.parFlatTraverseAsync=n=>s=>()=>e.parTraverseAsync(n)(s)().then(e.flatten),e.traverseZio=n=>s=>a=>e.traversePromise(n)(l=>s(l)(a)),e.sequenceZio=n=>e.traverseZio(n)(d.identity),e.flatTraverseZio=n=>s=>a=>e.traversePromise(n)(l=>s(l)(a)).then(e.flatten),e.parTraverseZio=n=>s=>a=>e.parTraversePromise(n)(l=>s(l)(a)),e.parSequenceZio=n=>e.parTraverseZio(n)(d.identity),e.parFlatTraverseZio=n=>s=>a=>e.parTraversePromise(n)(l=>s(l)(a)).then(e.flatten),e.insertAtIndex=n=>s=>a=>[...n.slice(0,s),a,...n.slice(s)],e.removeAtIndex=n=>s=>[...n.slice(0,s),...n.slice(s+1)],e.removeWhere=n=>s=>n.filter(a=>!s(a)),e.replaceAtIndex=n=>s=>a=>s<0||s>n.length?[...n]:[...n.slice(0,s),a,...n.slice(s+1)],e.replaceAtIndices=n=>s=>a=>s.reduce((l,m)=>e.replaceAtIndex(l)(m)(a),n),e.replaceWhere=n=>s=>a=>n.map(l=>s(l)?a:l),e.modifyAtIndex=n=>s=>a=>s<0||s>=n.length?[...n]:[...n.slice(0,s),a(n[s]),...n.slice(s+1)],e.modifyAtIndices=n=>s=>a=>s.reduce((l,m)=>e.modifyAtIndex(l)(m)(a),n),e.modifyWhere=n=>s=>a=>n.map(l=>s(l)?a(l):l),e.moveItem=n=>(s,a)=>{let l=n.slice(0),m=l[s];return l.splice(s,1),l.splice(a,0,m),l},e.aggregate=(n,s,a)=>{let l=[],m=n;for(;m.length!==0;){let p=m[0],[u,f]=e.partition(m)(b=>s(p,b)),x=a(p,z.unsafeFromArray(u));l.push(x),m=f}return l},e.aggregateByField=(n,s,a)=>e.aggregate(n,(l,m)=>l[s]===m[s],a),e.mappedSet=n=>s=>new Set(n.map(s)),e.valueMap=n=>s=>new Map(n.map(a=>[a,s(a)])),e.histogram=n=>s=>{let a=new Map;for(let l of n){let m=s(l),p=a.get(m)??0;a.set(m,p+1)}return a},e.singleMapFromTuples=n=>new Map(n),e.singleKeyMap=n=>s=>e.singleMap(n)(a=>[s(a),a]),e.singleMap=n=>s=>e.singleMapFilter(n)(s),e.singleMapFilter=n=>s=>{let a=new Map;for(let l of n){let m=s(l);if(m===null)continue;let[p,u]=m;a.set(p,u)}return a},e.multiMapFromTuples=n=>e.multiMap(n)(d.identity),e.multiKeyMap=n=>s=>e.multiMap(n)(a=>[s(a),a]),e.multiMap=n=>s=>e.multiMapFilter(n)(s),e.multiMapFilter=n=>s=>{let a=new Map;for(let l of n){let m=s(l);if(m===null)continue;let[p,u]=m,f=a.get(p);f===void 0?a.set(p,[u]):f.push(u)}return a},e.multiMapThen=n=>s=>a=>ge.mapValues(e.multiMap(n)(s))(a),e.multiMapThenCollapse=n=>s=>a=>ge.collapseMapValues(e.multiMap(n)(s))(a),e.recordByDiscriminator=(n,s)=>{let a={};for(let l of n){let m=l[s],p=a[m];p!==void 0?p.push(l):a[m]=[l]}return a},e.chunksMut=n=>s=>{if(s<=0)throw new Error("chunk size must be at least 1");let a=[];for(let l=0;l<n.length;l+=s)a.push(n.slice(l,l+s));return a},e.chunks=n=>s=>e.chunksMut(n)(s),e.splitAt=n=>s=>[n.slice(0,s),n.slice(s)],e.randomShuffle=n=>{let s=n.slice(),a=n.length;for(;a>0;){let l=T.randomInt(a);a--;let m=s[a];s[a]=s[l],s[l]=m}return s},e.randomSelect=n=>n[T.randomInt(n.length)],e.equalOf=n=>(s,a)=>e.equalWith(s,a)(n),e.equalOfBuiltin=()=>e.equalOf(P.builtin),e.compareShorterFirst=n=>(s,a)=>
1{if(s===a)return 0;for(let l=0;l<s.length&&l<a.length;l++){let m=n(s[l],a[l]);if(m!==0)return m}return T.compare(s.length,a.length)},e.compareLongerFirst=n=>(s,a)=>{if(s===a)return 0;for(let l=0;l<s.length&&l<a.length;l++){let m=n(s[l],a[l]);if(m!==0)return m}return T.compare(a.length,s.length)},e.concatenatedMut=()=>({empty:[],concat:e.concat}),e.concatenatedRo=()=>({empty:[],concat:e.concat}),e.pushAll=n=>s=>{for(let a of s)n.push(a)}})(_||(_={}));var z;(function(e){e.is=t=>t.length!==0,e.isNot=t=>t.length===0,e.single=t=>[t],e.fromArray=t=>t.length!==0?t:null,e.unsafeFromArray=t=>{if(t.length===0)throw new Error("input array is unexpectedly empty");return t},e.fromNullable=t=>t!==null?[t]:null,e.toArray=t=>Array.from(t),e.includes=t=>o=>t.includes(o),e.count=t=>o=>_.count(t)(o),e.forall=t=>o=>t.every(o),e.exists=t=>o=>t.some(o),e.some=e.exists,e.every=e.forall,e.everyIs=(t,o)=>t.every(o),e.firstIndexOfOrNull=t=>(o,r)=>_.firstIndexOfOrNull(t)(o,r),e.lastIndexOfOrNull=t=>(o,r)=>_.lastIndexOfOrNull(t)(o,r),e.firstIndexOf=t=>(o,r)=>_.firstIndexOf(t)(o,r),e.lastIndexOf=t=>(o,r)=>_.lastIndexOf(t)(o,r),e.findFirstIndexOrNull=(t,o)=>r=>_.findFirstIndexOrNull(t,o)(r),e.findLastIndexOrNull=(t,o)=>r=>_.findLastIndexOrNull(t,o)(r),e.findFirstIndex=(t,o)=>r=>_.findFirstIndex(t,o)(r),e.findLastIndex=(t,o)=>r=>_.findLastIndex(t,o)(r),e.find=t=>o=>_.find(t)(o),e.findIndex=t=>o=>_.findIndex(t)(o),e.append=t=>o=>[...t,o],e.prepend=t=>o=>[o,...t],e.concat=(t,o)=>[...t,...o],e.head=t=>t[0],e.last=t=>t[t.length-1],e.init=t=>t.slice(0,t.length-1),e.tail=t=>t.slice(1,t.length),e.headAndTail=t=>[e.head(t),e.tail(t)],e.initAndLast=t=>[e.init(t),e.last(t)],e.reverse=t=>e.unsafeFromArray(_.reverse(t)),e.intercalate=t=>o=>e.unsafeFromArray(_.intercalate(t)(o)),e.map=t=>o=>e.unsafeFromArray(t.map(o)),e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.tupleBy=t=>o=>e.unsafeFromArray(_.tupleBy(t)(o)),e.zipWithIndex=t=>e.unsafeFromArray(_.zipWithIndex(t)),e.pure=e.single,e.ap=t=>o=>e.flatMap(o)(e.map(t)),e.map2=(t,o)=>r=>e.unsafeFromArray(_.map2(t,o)(r)),e.tuple2=(t,o)=>e.unsafeFromArray(_.tuple2(t,o)),e.tupleN=(t,...o)=>e.unsafeFromArray(_.tupleN(t,...o)),e.mapN=(t,...o)=>r=>e.unsafeFromArray(_.mapN(t,...o)(r)),e.flatMap=t=>o=>e.unsafeFromArray(t.flatMap(o)),e.flatten=t=>e.unsafeFromArray(t.flat()),e.andThen=(t,o)=>r=>e.flatMap(t(r))(o),e.andThen3=(t,o,r)=>e.andThen(t,e.andThen(o,r)),e.andThen4=(t,o,r,i)=>e.andThen(t,e.andThen(o,e.andThen(r,i))),e.zipAp=t=>o=>e.unsafeFromArray(_.zipAp(t)(o)),e.zipMap2=(t,o)=>r=>e.unsafeFromArray(_.zipMap2(t,o)(r)),e.zipTuple2=(t,o)=>e.unsafeFromArray(_.zip(t,o)),e.zip=e.zipTuple2,e.zipN=(t,...o)=>e.unsafeFromArray(_.zipN(t,...o)),e.zipMapN=(t,...o)=>r=>e.unsafeFromArray(_.zipMapN(t,...o)(r)),e.unzip=t=>_.unzip(t),e.unzip3=t=>_.unzip3(t),e.unzip4=t=>_.unzip4(t),e.traverseKleisli=t=>o=>r=>e.map(t)(i=>o(i)(r)),e.sequenceKleisli=t=>e.traverseKleisli(t)(d.identity),e.traverseNullable=t=>o=>_.traverseNullable(t)(o),e.sequenceNullable=t=>e.traverseNullable(t)(d.identity),e.traverseNea=t=>o=>_.traverseArray(t)(o),e.sequenceNea=t=>e.traverseNea(t)(d.identity),e.traverseMaybe=t=>o=>_.traverseMaybe(t)(o),e.sequenceMaybe=t=>e.traverseMaybe(t)(d.identity),e.traverseEither=t=>o=>_.traverseEither(t)(o),e.sequenceEither=t=>e.traverseEither(t)(d.identity),e.traverseValidated=t=>o=>_.traverseValidated(t)(o),e.sequenceValidated=t=>e.traverseValidated(t)(d.identity),e.traversePromise=t=>o=>_.traversePromise(t)(o),e.sequencePromise=t=>e.traversePromise(t)(d.identity),e.parTraversePromise=t=>o=>_.parTraversePromise(t)(o),e.parSequencePromise=t=>e.parTraversePromise(t)(d.identity),e.traverseSync=t=>o=>_.traverseSync(t)(o),e.sequenceSync=t=>e.traverseSync(t)(d.identity),e.traverseAsync=t=>o=>_.traverseAsync(t)(o),e.sequenceAsync=t=>e.traverseAsync(t)(d.identity),e.parTraverseAsync=t=>o=>_.parTraverseAsync(t)(o),e.parSequenceAsync=t=>e.parTraverseAsync(t)(d.identity),e.traverseZio=t=>o=>_.traverseZio(t)(o),e.sequenceZio=t=>e.traverseZio(t)(d.identity),e.parTraverseZio=t=>o=>_.parTraverseZio(t)(o),e.parSequenceZio=t=>e.parTraverseZio(t)(d.identity),e.equalWith=(t,o)=>r=>_.equalWith(t,o)(r),e.equalBuiltin=(t,o)=>_.equalBuiltin(t,o),e.distinctWith=t=>o=>e.unsafeFromArray(_.distinctWith(t)(o)),e.distinctBuiltin=t=>e.unsafeFromArray(_.distinctBuiltin(t)),e.distinctBuiltinByField=t=>o=>e.unsafeFromArray(_.distinctBuiltinByField(t)(o)),e.distinctBuiltin
1Fast=t=>e.unsafeFromArray(_.distinctBuiltinFast(t)),e.fold1=t=>o=>t.reduce(o.concat),e.foldMap1=t=>o=>r=>e.fold1(e.map(t)(o))(r),e.foldMapIntercalated1=t=>o=>r=>i=>e.fold1(e.intercalate(e.map(t)(o))(r))(i),e.concatenated=()=>({concat:e.concat}),e.sortWith=t=>o=>e.unsafeFromArray(_.sortWith(t)(o)),e.sortByWith=t=>o=>r=>e.unsafeFromArray(_.sortByWith(t)(o)(r)),e.sortBuiltin=t=>e.unsafeFromArray(_.sortBuiltin(t)),e.sortBuiltinBy=t=>o=>e.unsafeFromArray(_.sortBuiltinBy(t)(o)),e.sortStrings=t=>e.unsafeFromArray(_.sortStrings(t)),e.sortNumbers=t=>e.unsafeFromArray(_.sortNumbers(t)),e.sortBigints=t=>e.unsafeFromArray(_.sortBigints(t)),e.sortBooleans=t=>e.unsafeFromArray(_.sortBooleans(t)),e.sortDates=t=>e.unsafeFromArray(_.sortDates(t)),e.minimumWith=t=>o=>t.reduce(I.minimum(o)),e.maximumWith=t=>o=>t.reduce(I.maximum(o)),e.allMaximumWith=t=>o=>e.unsafeFromArray(_.allMaximumWith(t)(o)),e.allMinimumWith=t=>o=>e.unsafeFromArray(_.allMinimumWith(t)(o)),e.chunks=t=>o=>_.chunks(t)(o),e.forEach=t=>o=>{t.forEach(o)},e.mapWithIndex=t=>o=>e.unsafeFromArray(t.map(o)),e.randomShuffle=t=>e.unsafeFromArray(_.randomShuffle(t)),e.randomSelect=t=>t[T.randomInt(t.length)],e.equalOf=t=>_.equalOf(t),e.equalOfBuiltin=()=>_.equalOfBuiltin(),e.compareShorterFirst=t=>_.compareShorterFirst(t),e.compareLongerFirst=t=>_.compareLongerFirst(t)})(z||(z={}));var G;(function(e){e.when=t=>o=>o?t:null,e.test=t=>o=>e.when(t)(o(t)),e.valueIf=(t,o)=>e.when(o)(t),e.orElse=t=>o=>t!==null?t:o,e.unsafeGet=t=>{if(t===null)throw new Error("unexpected null");return t},e.getOr=t=>o=>t!==null?t:o,e.mapOr=t=>o=>r=>t!==null?o(t):r,e.includes=t=>o=>e.exists(t)(r=>r===o),e.exists=t=>o=>t!==null&&o(t),e.forall=t=>o=>t===null||o(t),e.some=e.exists,e.every=e.forall,e.filter=t=>o=>t!==null&&o(t)?t:null,e.filterNot=t=>o=>t!==null&&!o(t)?t:null,e.filterIs=t=>o=>t!==null&&o(t)?t:null,e.forEach=t=>o=>{t!==null&&o(t)},e.combine=(t,o)=>r=>t!==null&&o!==null?r(t,o):null,e.combineN=(t,...o)=>r=>t===null||o.some(i=>i===null)?null:r(t,...o),e.map2=(t,o)=>r=>t!==null&&o!==null?r(t,o):null,e.tupleN=(t,...o)=>e.mapN(t,...o)(H.ofN),e.mapN=(t,...o)=>r=>t===null||o.some(i=>i===null)?null:r(t,...o),e.object=t=>{let o={};for(let r in t){let i=t[r];if(i===null)return null;o[r]=i}return o},e.then=t=>o=>t!==null?o(t):null,e.andThen=(t,o)=>r=>e.then(t(r))(o),e.andThen3=(t,o,r)=>e.andThen(t,e.andThen(o,r)),e.andThen4=(t,o,r,i)=>e.andThen(t,e.andThen(o,e.andThen(r,i))),e.traverseKleisli=t=>o=>r=>t!==null?o(t)(r):null,e.sequenceKleisli=t=>e.traverseKleisli(t)(d.identity),e.traverseArray=t=>o=>t!==null?[...o(t)]:[null],e.sequenceArray=t=>e.traverseArray(t)(d.identity),e.traverseNea=t=>o=>t!==null?o(t):z.single(null),e.sequenceNea=t=>e.traverseNea(t)(d.identity),e.traverseMaybe=t=>o=>t!==null?o(t):h.some(null),e.sequenceMaybe=t=>e.traverseMaybe(t)(d.identity),e.traverseEither=t=>o=>t!==null?o(t):k.right(null),e.sequenceEither=t=>e.traverseEither(t)(d.identity),e.traverseValidated=t=>o=>t!==null?o(t):g.valid(null),e.sequenceValidated=t=>e.traverseValidated(t)(d.identity),e.traversePromise=t=>o=>t!==null?o(t):Promise.resolve(null),e.sequencePromise=t=>e.traversePromise(t)(d.identity),e.traverseSync=t=>o=>()=>t!==null?o(t)():null,e.sequenceSync=t=>e.traverseSync(t)(d.identity),e.traverseAsync=t=>o=>()=>t!==null?o(t)():Promise.resolve(null),e.sequenceAsync=t=>e.traverseAsync(t)(d.identity),e.traverseZio=t=>o=>r=>e.traversePromise(t)(i=>o(i)(r)),e.sequenceZio=t=>e.traverseZio(t)(d.identity),e.fold=t=>o=>t!==null?t:o.empty,e.foldMap=t=>o=>r=>t!==null?o(t):r.empty,e.equalOf=t=>(o,r)=>o===null&&r===null?!0:o===null||r===null?!1:t(o,r),e.equalOfBuiltin=()=>e.equalOf(P.builtin),e.compareNullFirst=t=>(o,r)=>o===null&&r===null?0:o===null?-1:r===null?1:t(o,r),e.compareNullLast=t=>(o,r)=>o===null&&r===null?0:o===null?1:r===null?-1:t(o,r)})(G||(G={}));var je,D,Wo,Dr,Vt=0,Gr=[],U=j,Lr=U.__b,$r=U.__r,Wr=U.diffed,Nr=U.__c,Hr=U.unmount,Ur=U.__;function vt(e,t){U.__h&&U.__h(D,e,Vt||t),Vt=0;var o=D.__H||(D.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function Yr(e){return Vt=1,ji(Xr,e)}function ji(e,t,o){var r=vt(je++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):Xr(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],m=r.t(l,a);l!==m&&(r.__N=[m,r.__[1]],r.__c.setState({}))}],r.__c=D,!D.__f)){var i=function(a,l,m){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(f){return f.__c});if(p.every(function(f){return!f.__N}))return!n||n.call(this,a,l,m);var u=r.__c.props!==a;return p.some(function(f){if(f.__N){var x=f.__[0];f.__=f.__N,f.__N=void 0,x!==f.__[0]&&(u=!0)}}),n&&n.call(this,a,l,m)||u};D.__f=!0;var n=D.shouldComponentUpdate,s=D.componentWillUpdate;D.componentWillUpdate=function(a,l,m){if(this.__e){var p=n;n=void 0,i(a,l,m),n=p}s&&s.call(this,a,l,m)},D.shouldComponentUpdate=i}return r.__N||r.__}function eo(e,t){var o=vt(je++,3);!U.__s&&Kr(o.__H,t)&&(o.__=e,o.u=t,D.__H.__h.push(o))}function to(e){return Vt=5,Oi(function(){return{current:e}},[])}function Oi(e,t){var o=vt(je++,7);return Kr(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function Ye(e){var t=D.context[e.__c],o=vt(je++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(D)),t.props.value):e.__}function xe(){var e=vt(je++,11);if(!e.__){for(var t=D.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function Ri(){for(var e;e=Gr.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Qt),t.__h.some(No),t.__h=[]}catch(o){t.__h=[],U.__e(o,e.__v)}}}U.__b=function(e){D=null,Lr&&Lr(e)},U.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ur&&Ur(e,t)},U.__r=function(e){$r&&$r(e),je=0;var t=(D=e.__c).__H;t&&(Wo===D?(t.__h=[],D.__h=[],t.__.some(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.some(Qt),t.__h.some(No),t.__h=[],je=0)),Wo=D},U.diffed=function(e){Wr&&Wr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gr.push(t)!==1&&Dr===U.requestAnimationFrame||((Dr=U.requestAnimationFrame)||Bi)(Ri)),t.__H.__.some(function(o){o.u&&(o.__H=o.u),o.u=void 0})),Wo=D=null}
1,U.__c=function(e,t){t.some(function(o){try{o.__h.some(Qt),o.__h=o.__h.filter(function(r){return!r.__||No(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],U.__e(r,o.__v)}}),Nr&&Nr(e,t)},U.unmount=function(e){Hr&&Hr(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.some(function(r){try{Qt(r)}catch(i){t=i}}),o.__H=void 0,t&&U.__e(t,o.__v))};var Zr=typeof requestAnimationFrame=="function";function Bi(e){var t,o=function(){clearTimeout(r),Zr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,35);Zr&&(t=requestAnimationFrame(o))}function Qt(e){var t=D,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),D=t}function No(e){var t=D;e.__c=e.__(),D=t}function Kr(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function Xr(e,t){return typeof t=="function"?t(e):t}var Ke;(function(e){e.install=({container:t,initial:o,component:r})=>{let i=null;return Pr(c(()=>{let[s,a]=Yr(o);return i=a,r(s,a)},{}),t),i},e.notInstalled=()=>()=>{console.error("cannot refresh before the root component is installed")}})(Ke||(Ke={}));var xt;(function(e){e.isJson=r=>e.isJsonScalar(r)||e.isJsonArray(r)||e.isJsonObject(r),e.isJsonScalar=r=>e.isJsonString(r)||e.isJsonNumber(r)||e.isJsonBoolean(r)||e.isJsonNull(r),e.isJsonString=r=>typeof r=="string",e.isJsonNumber=r=>typeof r=="number"&&Number.isFinite(r),e.isJsonBoolean=r=>typeof r=="boolean",e.isJsonNull=r=>r===null,e.isJsonArray=r=>e.isBaseArray(r)&&r.every(e.isJson),e.isJsonObject=r=>e.isBaseObject(r)&&Object.values(r).every(e.isJson),e.isBaseArray=r=>Array.isArray(r)&&Reflect.getPrototypeOf(r)===o,e.isBaseObject=r=>r!==null&&typeof r=="object"&&Reflect.getPrototypeOf(r)===t;let t=Reflect.getPrototypeOf({}),o=Reflect.getPrototypeOf([])})(xt||(xt={}));var we;(function(e){e.readonly=t=>t,e.unsafeTypedKeys=t=>Object.keys(t),e.unsafeTypedEntries=t=>Object.entries(t),e.unsafeTypedFromEntries=t=>Object.fromEntries(t),e.single=t=>o=>({[t]:o}),e.field=(t,o)=>t[o],e.fieldNamed=t=>o=>o[t],e.maybeField=(t,o)=>e.hasOwn(t,o)?h.some(t[o]):h.none(),e.hasOwn=(t,o)=>Object.hasOwn(t,o),e.hasField=(t,o)=>Object.hasOwn(t,o),e.fieldIs=(t,o,r)=>r(t[o]),e.set=t=>(o,r)=>({...o,[t]:r}),e.modifyAtKey=t=>o=>r=>({...t,[o]:r(t[o])}),e.merge=t=>Object.assign({},...t),e.mergeN=(...t)=>e.merge(t),e.extend=(t,o)=>({...t,...o(t)}),e.extendC=t=>o=>({...t,...o(t)})})(we||(we={}));var O;(function(e){e.delay=t=>d.delay(t),e.lazy=t=>d.lazy(t),e.pure=t=>d.constant(g.pure(t)),e.identity=()=>g.pure,e.lift=t=>d.andThen(t,g.pure),e.preset=t=>g.cata(t)(e.failMany,e.lift),e.predicate=(t,o)=>r=>t(r)?g.pure(r):g.fail(o),e.fromMaybeKleisli=(t,o)=>r=>g.fromMaybe(t(r))(o),e.orElse=(t,o)=>r=>g.orElse(t(r))(o(r)),e.fail=t=>d.constant(g.fail(t)),e.failMany=t=>d.constant(g.invalid(t)),e.mapFailure=t=>o=>r=>g.mapFailure(t(r))(o),e.failureOnly=t=>o=>g.map(t(o))(d.constant(o)),e.contraMap=t=>o=>d.andThen(o,t),e.map=t=>o=>r=>g.map(t(r))(o),e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.tupleBy=t=>o=>e.map(t)(r=>[r,o(r)]),e.map2=(t,o)=>r=>i=>g.mapN(t(i),o(i))(r),e.tuple2=(t,o)=>e.map2(t,o)(H.ofN),e.andThen=(t,o)=>r=>g.then(t(r))(o),e.andThen3=(t,o,r)=>e.andThen(t,e.andThen(o,r)),e.andThen4=(t,o,r,i)=>e.andThen(t,e.andThen(o,e.andThen(r,i)))})(O||(O={}));var ne;(function(e){e.delay=r=>O.delay(r),e.lazy=r=>O.lazy(r),e.identity=()=>O.identity(),e.constant=r=>O.pure(r),e.orElse=(r,i)=>O.orElse(r,i),e.mapProblems=r=>i=>O.mapFailure(r)(i),e.rebrandProblems=(r,i)=>O.mapFailure(r)(t(`expected a valid ${i}`)),e.contraMap=r=>i=>O.contraMap(r)(i),e.map=r=>i=>O.map(r)(i),e.mapConstant=r=>i=>e.map(r)(()=>i),e.mapVoid=r=>e.map(r)(()=>{}),e.tupleBy=r=>i=>e.map(r)(n=>[n,i(n)]),e.unfailing=r=>O.lift(r),e.merge=(r,i)=>O.map2(r,i)((n,s)=>({...n,...s})),e.map2=(r,i)=>n=>O.map2(r,i)(n),e.tuple2=(r,i)=>O.tuple2(r,i),e.object=r=>i=>{let n={};for(let s in r){let a=i[s],l=r[s](a),m=g.mapFailure(l)(p=>`field "${s}": ${p}`);n[s]=m}return g.object(n)},e.mapObject=(r,i)=>e.map(e.object(r))(i),e.andThen=(r,i)=>O.andThen(r,i),e.andThen3=(r,i,n)=>O.andThen3(r,i,n),e.andThen4=(r,i,n,s)=>O.andThen4(r,i,n,s),e.failureOnly=r=>O.failureOnly(r),e.fields=(r,i)=>n=>{let s={};for(let a in r){let l=i(a)(n),m=g.then(l)(r[a]),p=g.mapFailure(m)(u=>`field "${a}": ${u}`);s[a]=p}return g.object(s)},e.array=r=>i=>_.sequenceValidated(i.map((n,s)=>g.mapFailure(r(n))(a=>`element ${s}: ${a}`))),e.nea=r=>i=>z.sequenceValidated(z.mapWithIndex(i)((n,s)=>g.mapFailure(r(n))(a=>`element ${s}: ${a}`))),e.maybe=r=>i=>h.traverseValidated(i)(r),e.oneOf=(...r)=>i=>{let n=[],s=0;for(let a of r){let m=a(i);if(g.isValid(m))return m;let p=m.errors.map(u=>`alternative ${s}: ${u}`);_.pushAll(n)(p),s++}return g.invalid(z.unsafeFromArray(n))},e.nullable=r=>i=>i!==null?r(i):g.valid(null),e.notNull=r=>
1r!==null?g.valid(r):g.invalid1("expected non-null value"),e.notUndefined=r=>r!==void 0?g.valid(r):g.invalid1("expected non-undefined value"),e.subType=(r,i)=>n=>g.testIs1(n)(r)(`expected a value of the subtype ${i}`),e.exactly=r=>i=>i===r?g.valid(r):g.invalid1(`expected exactly ${o(r)}, but got ${o(i)}`),e.enumValue=r=>i=>r.includes(i)?g.valid(i):g.invalid1(`expected one of ${r.map(o).join(", ")}`),e.enumValueNamed=(r,i)=>n=>i.includes(n)?g.valid(n):g.invalid1(`expected a valid ${r}`),e.mapGet=(r,i)=>n=>i.has(n)?g.valid(i.get(n)):g.invalid1(`key ${n.toString()} not found in ${r}`),e.setHas=(r,i)=>n=>i.has(n)?g.valid(n):g.invalid1(`key ${n.toString()} not found in ${r}`),e.fromNullResult=(r,i)=>n=>g.fromNullable(r(n))(i),e.fromMaybeResult=(r,i)=>O.fromMaybeKleisli(r,i),e.rejectWith=r=>i=>g.unlessErrors(r(i))(i),e.rejectWhen=(r,i)=>O.predicate(Te.not(r),i),e.rejectUnless=(r,i)=>O.predicate(r,i),e.filterIs=(r,i)=>n=>r(n)?g.valid(n):g.invalid1(i),e.constrainNumber=(r,i)=>e.rejectWith(n=>{let s=[];return r!==null&&n<r&&s.push(`expected at least ${r}`),i!==null&&n>i&&s.push(`expected at most ${i}`),s}),e.oneElement=r=>_.zeroOneMore(r)({zero:()=>g.invalid1("expected exactly one element, but got 0"),one:i=>g.valid(i),more:i=>g.invalid1(`expected exactly one element, but got ${i.length}`)}),e.zeroOrOneElement=r=>_.zeroOneMore(r)({zero:()=>g.valid(null),one:i=>g.valid(i),more:i=>g.invalid1(`expected at most one element, but got ${i.length}`)}),e.oneOrMoreElement=r=>_.zeroOneMore(r)({zero:()=>g.invalid1("expected at least one element, but got 0"),one:i=>g.valid([i]),more:i=>g.valid(i)}),e.annotateKey=r=>{let i={};for(let n in r){let s=r[n],a=g.mapFailure(s)(l=>`field "${n}": ${l}`);i[n]=a}return i},e.annotateIndex=r=>r.map((i,n)=>g.mapFailure(i)(s=>`element ${n}: ${s}`)),e.annotateValue=r=>i=>g.mapFailure(r(i))(n=>`${n}: got value ${o(i)}`);let t=r=>i=>`${r}: ${i}`,o=r=>String(r)})(ne||(ne={}));var Bl=ne.constant(void 0);var Jr=e=>O.andThen(Ar,ne.enumValue(e));var Ar=e=>xt.isJsonString(e)?g.valid(e):g.invalid1("expected a string"),Pi=e=>xt.isJsonNumber(e)?g.valid(e):g.invalid1("expected a number");var Xe=e=>O.andThen(Ar,e),Er=e=>O.andThen(Pi,e);var Pl=globalThis.btoa,Dl=globalThis.atob,Ll=globalThis.URL,$l=globalThis.setTimeout,Wl=globalThis.clearTimeout,Nl=globalThis.setInterval,Hl=globalThis.clearInterval,Ul=globalThis.performance,en=globalThis.console,tn=globalThis.crypto,Qr;(function(e){e.create=()=>new globalThis.TextEncoder})(Qr||(Qr={}));var Vr;(function(e){e.create=()=>new globalThis.TextDecoder,e.createConfigured=(t,o)=>
1new globalThis.TextDecoder(t,o),e.Labels=["unicode-1-1-utf-8","utf-8","utf8","866","cp866","csibm866","ibm866","csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2","csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3","csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4","csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso88595","iso_8859-5","iso_8859-5:1988","arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987","csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek","csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual","csiso88598i","iso-8859-8-i","logical","csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6","iso-8859-13","iso8859-13","iso885913","iso-8859-14","iso8859-14","iso885914","csisolatin9","iso-8859-15","iso8859-15","iso885915","l9","latin9","iso-8859-16","cskoi8r","koi","koi8","koi8-r","koi8_r","koi8-u","csmacintosh","mac","macintosh","x-mac-roman","dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874","cp1250","windows-1250","x-cp1250","cp1251","windows-1251","x-cp1251","ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252","cp1253","windows-1253","x-cp1253","cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254","cp1255","windows-1255","x-cp1255","cp1256","windows-1256","x-cp1256","cp1257","windows-1257","x-cp1257","cp1258","windows-1258","x-cp1258","x-mac-cyrillic","x-mac-ukrainian","chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk","gb18030","hz-gb-2312","big5","big5-hkscs","cn-big5","csbig5","x-x-big5","cseucpkdfmtjapanese","euc-jp","x-euc-jp","csiso2022jp","iso-2022-jp","csshiftjis","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis","cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949","csiso2022kr","iso-2022-kr","utf-16be","utf-16","utf-16le","x-user-defined","iso-2022-cn","iso-2022-cn-ext"]})(Vr||(Vr={}));var oo;(function(e){e.Level=["error","warn","info","debug"],e.isLevel=n=>e.Level.includes(n),e.create=n=>({debug:t(n,i,"debug"),info:t(n,i,"info"),warn:t(n,i,"warn"),error:t(n,i,"error")});let t=(n,s,a)=>(...l)=>{o[a]>=o[n.minimumLevel]&&s(...r(a,n),...l)},o={debug:1,info:2,warn:3,error:4},r=(n,s)=>[...s.withTimestamp?[new Date().toISOString()]:[],`[${n.toUpperCase()}]`,`[${s.tag}]`],i=(...n)=>{en.log(...n)};e.ignore={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}}})(oo||(oo={}));var Je={create:e=>oo.create({tag:e,minimumLevel:"debug",withTimestamp:!0})};var on=Je.create("i18n"),ro;(function(e){e.unsafeOf=r=>r,e.valueOrDefault=r=>r===null?(on.error("No language was received, so default language de is chosen"),"de"):r==="de"||r==="en"||r==="it"?r:(on.error(`Unexpected language ${r} was received, so default language de is chosen`),"de");let o=r=>g.valid(e.valueOrDefault(r));e.json=Xe(o),e.query=o})(ro||(ro={}));var rn;(function(e){e.brand=F.brand,e.fromString=o=>o!==""?e.brand(o):null;let t=ne.fromNullResult(e.fromString,"expected a valid country id");e.json=Xe(t),e.query=t})(rn||(rn={}));var E;(function(e){e.readonly=t=>t,e.unsafeMutable=t=>t,e.empty=()=>new Set,e.single=t=>new Set([t]),e.of=t=>new Set(t),e.ofN=(...t)=>e.of(t),e.fromNullable=t=>t!==null?e.single(t):e.empty(),e.clone=t=>new Set(t),e.toArray=t=>Array.from(t),e.throughArray=t=>o=>e.of(o(e.toArray(t))),e.isItemOf=t=>o=>t.has(o),e.has=t=>o=>t.has(o),e.forall=t=>o=>{for(let r of t)if(!o(r))return!1;return!0},e.exists=t=>o=>
1{for(let r of t)if(o(r))return!0;return!1},e.some=e.exists,e.every=e.forall,e.add=t=>o=>{let r=e.clone(t);return r.add(o),r},e.remove=t=>o=>{let r=e.clone(t);return r.delete(o),r},e.setMember=t=>o=>r=>{let i=t.has(o),n=e.clone(t);return r&&!i?n.add(o):i&&!r&&n.delete(o),n},e.modifyMember=t=>o=>r=>e.setMember(t)(o)(r(e.has(t)(o))),e.toggle=t=>o=>e.modifyMember(t)(o)(r=>!r),e.union=(t,o)=>new Set([...t,...o]),e.intersection=(t,o)=>e.throughArray(t)(r=>r.filter(i=>o.has(i))),e.difference=(t,o)=>e.throughArray(t)(r=>r.filter(i=>!o.has(i))),e.intersects=(t,o)=>Array.from(t).some(r=>o.has(r)),e.pluck=t=>o=>e.map(t)(r=>r[o]),e.filter=t=>o=>e.throughArray(t)(r=>r.filter(o)),e.filterIs=t=>o=>e.throughArray(t)(r=>r.filter(o)),e.collapse=t=>e.flatMap(t)(h.toSet),e.collapseMap=t=>o=>e.flatMap(t)(d.andThen(o,h.toSet)),e.collapseNullable=t=>e.filterIs(t)(Se.is),e.collapseMapNullable=t=>o=>e.collapseNullable(e.map(t)(o)),e.map=t=>o=>e.throughArray(t)(r=>r.map(o)),e.mapConstant=t=>o=>e.map(t)(()=>o),e.mapVoid=t=>e.map(t)(()=>{}),e.pure=e.single,e.ap=t=>o=>e.flatMap(o)(e.map(t)),e.flatMap=t=>o=>e.flatten(e.map(t)(o)),e.flatten=t=>e.throughArray(t)(o=>_.flatMap(o)(e.toArray)),e.equalOfBuiltin=()=>(t,o)=>{if(t===o)return!0;if(t.size!==o.size)return!1;for(let r of t)if(!o.has(r))return!1;return!0},e.unionedMut=()=>({empty:e.empty(),concat:(t,o)=>e.union(t,o)}),e.unionedRo=()=>({empty:e.empty(),concat:(t,o)=>e.union(t,o)})})(E||(E={}));var pm=ne.constant(void 0);var Li=ne.identity(),nn=e=>O.andThen(Li,ne.enumValue(e));var Oe;(function(e){e.of=(...s)=>t(s);let t=s=>{let a=o(s);return{...a,...r(a)}},o=s=>{let a=E.of(s),l=p=>a.has(p),m=s.length===a.size?s:Array.from(a);return{brand:p=>p,fromString:p=>l(p)?p:null,toString:p=>p,validateString:ne.enumValue(m),is:l,value:p=>p,values:m,valueSet:a,choose:(...p)=>i(p),reject:(...p)=>i(n(m,p)),partition:(...p)=>[i(p),i(n(m,p))],query:nn(m),json:Jr(m),flagsToSet:p=>{let u=[];for(let f of m)p[f]&&u.push(f);return u},setToFlags:p=>{let u={};for(let f of m)u[f]=p.includes(f);return u}}},r=s=>({extend:l=>{let m={...s,...l(s)};return{...m,...r(m)}}}),i=s=>{let a=E.of(s);return{is:l=>a.has(l),value:l=>l,values:s,valueSet:a,asEnum:()=>t(s)}},n=(s,a)=>s.filter(l=>!a.includes(l))})(Oe||(Oe={}));var Z;(function(e){e.accept=()=>t=>[],e.reject=t=>o=>[t],e.predicate=(t,o)=>r=>t(r)?[]:[o],e.concat=(t,o)=>r=>[...t(r),...o(r)],e.test=(t,o)=>!z.is(t(o))})(Z||(Z={}));var y;(function(e){e.branded=n=>t(n,Z.accept()),e.fromBase=(n,s,a)=>{let l=Z.predicate(s.is,a),m={...s,...o(n,s.brand,l),...r(n,l)};return{...m,...i(m)}};let t=(n,s)=>{let a=F.brand,m={...{name:n,brand:a,is:u=>Z.test(s,u),fromString:u=>Z.test(s,u)?a(u):null,toString:d.identity,equal:P.builtinOf()},...o(n,a,s),...r(n,s)};return{...m,...i(m)}},o=(n,s,a)=>{let l=m=>{let p=a(m);return z.is(p)?g.invalid(z.map(p)(u=>`${n}: ${u}`)):g.valid(s(m))};return{rejecter:a,validateString:l,query:l,json:Xe(l),unbrand:m=>m}},r=(n,s)=>{let a=u=>t(u,s),l=u=>t(n,Z.concat(u,s));return{rebrand:a,constrain:l,test:(u,f)=>l(Z.predicate(u,f)),match:(u,f)=>l(Z.predicate(x=>u.test(x),f))}},i=n=>({extend:a=>{let l={...n,...a(n)};return{...l,...i(l)}}})})(y||(y={}));var Re;(function(e){e.brand=F.brand,e.is=t=>Number.isSafeInteger(t)&&!Object.is(t,-0)&&t>=0,e.fromNumber=t=>e.is(t)?e.brand(t):null,e.toNumber=t=>t,e.fromFin=t=>e.is(t)?e.brand(t):null,e.fromInt=t=>t>=0?e.brand(t):null,e.fromNat=t=>t,e.fromPos=t=>e.brand(t),e.zero=e.brand(0),e.one=e.brand(1),e.add=(t,o)=>e.brand(t+o),e.multiply=(t,o)=>e.brand(t*o),e.increment=t=>e.add(t,e.one),e.minimum=e.brand(0),e.maximum=e.brand(Number.MAX_SAFE_INTEGER),e.equal=T.equal,e.compare=T.compare,e.sum={empty:e.zero,concat:e.add},e.product={empty:e.one,concat:e.multiply}})(Re||(Re={}));ee.typed(Re);var Y;(function(e){e.branded=n=>t(n,Z.accept()),e.fromBase=(n,s,a)=>{let l=Z.predicate(s.is,a),m={...s,...o(n,s.brand,l),...r(n,l)};return{...m,...i(m)}};let t=(n,s)=>{let a=F.brand,m={...{name:n,brand:a,is:u=>Z.test(s,u),fromNumber:u=>Z.test(s,u)?a(u):null,toNumber:d.identity,equal:P.builtinOf(),compare:I.builtinOf()},...o(n,a,s),...r(n,s)};return{...m,...i(m)}},o=(n,s,a)=>{let l=p=>{let u=a(p);return z.is(u)?g.invalid(z.map(u)(f=>`${n}: ${f}`)):g.valid(s(p))},m=p=>/^-?(0|[1-9][0-9]*)(\.[0-9]+)?$/.test(p)?l(parseFloat(p)):g.invali
1d1(`${n}: must be a number`);return{validateString:m,fromString:p=>g.toNullable(m(p)),toString:p=>p.toString(),rejecter:a,validateNumber:l,query:m,json:Er(l),unbrand:p=>p}},r=(n,s)=>{let a=b=>t(b,s),l=b=>t(n,Z.concat(b,s)),m=(b,q)=>l(Z.predicate(b,q));return{rebrand:a,constrain:l,test:m,atLeast:b=>m(q=>q>=b,`value must be at least ${b}`),atMost:b=>m(q=>q<=b,`value must be at most ${b}`),between:(b,q)=>l(Z.concat(Z.predicate(R=>R>=b,`value must be at least ${b}`),Z.predicate(R=>R<=q,`value must be at most ${q}`))),preventNZ:()=>m(b=>!Object.is(b,-0),"value must not be a negative zero")}},i=n=>({extend:a=>{let l={...n,...a(n)};return{...l,...i(l)}}})})(Y||(Y={}));var Q=Y.fromBase("NaturalNumber",Re,"must be a whole, non-negative number");var bt;(function(e){e.brand=F.brand,e.is=t=>Number.isSafeInteger(t)&&t>0,e.fromNumber=t=>e.is(t)?e.brand(t):null,e.toNumber=t=>t,e.fromFin=t=>e.is(t)?e.brand(t):null,e.fromInt=t=>t>0?e.brand(t):null,e.fromNat=t=>t>0?e.brand(t):null,e.fromPos=t=>t,e.one=e.brand(1),e.add=(t,o)=>e.brand(t+o),e.multiply=(t,o)=>e.brand(t*o),e.minimum=e.brand(1),e.maximum=e.brand(Number.MAX_SAFE_INTEGER),e.equal=T.equal,e.compare=T.compare,e.sum={concat:e.add},e.product={empty:e.one,concat:e.multiply}})(bt||(bt={}));ee.typed(bt);var Ym=Y.fromBase("NonZeroNaturalNumber",bt,"must be a whole, positive number");var yt;(function(e){e.brand=F.brand,e.is=t=>Number.isSafeInteger(t)&&!Object.is(t,-0),e.fromNumber=t=>e.is(t)?e.brand(t):null,e.toNumber=t=>t,e.fromFin=t=>e.is(t)?e.brand(t):null,e.fromInt=t=>t,e.fromNat=t=>e.brand(t),e.fromPos=t=>e.brand(t),e.zero=e.brand(0),e.one=e.brand(1),e.negate=t=>e.brand(-t),e.add=(t,o)=>e.brand(t+o),e.subtract=(t,o)=>e.brand(t-o),e.multiply=(t,o)=>e.brand(t*o),e.increment=t=>e.add(t,e.one),e.decrement=t=>e.subtract(t,e.one),e.minimum=e.brand(Number.MIN_SAFE_INTEGER),e.maximum=e.brand(Number.MAX_SAFE_INTEGER),e.equal=T.equal,e.compare=T.compare,e.sum={empty:e.zero,concat:e.add,inverse:e.negate,concatInverse:e.subtract},e.product={empty:e.one,concat:e.multiply}})(yt||(yt={}));ee.typed(yt);var sn=Y.fromBase("Integer",yt,"must be a whole number");var Tt;(function(e){e.brand=F.brand,e.is=t=>Number.isFinite(t),e.fromNumber=t=>e.is(t)?e.brand(t):null,e.toNumber=t=>t,e.fromFin=t=>t,e.fromInt=t=>e.brand(t),e.fromNat=t=>e.brand(t),e.fromPos=t=>e.brand(t),e.zero=e.brand(0),e.one=e.brand(1),e.negate=t=>e.brand(-t),e.add=(t,o)=>e.brand(t+o),e.subtract=(t,o)=>e.brand(t-o),e.invert=t=>e.brand(1/t),e.multiply=(t,o)=>e.brand(t*o),e.divide=(t,o)=>e.brand(t*o),e.minimum=e.brand(Number.MIN_VALUE),e.maximum=e.brand(Number.MAX_VALUE),e.equal=T.equal,e.compare=T.compare,e.sum={empty:e.zero,concat:e.add,inverse:e.negate,concatInverse:e.subtract},e.product={empty:e.one,concat:e.multiply,inverse:e.invert,concatInverse:e.divide}})(Tt||(Tt={}));ee.typed(Tt);var wt=Y.fromBase("FiniteNumber",Tt,"must be a finite number");var ze;(function(e){e.typed=t=>{}})(ze||(ze={}));var It;(function(e){e.brand=F.brand,e.is=t=>t!=="",e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.concat=(t,o)=>e.brand(t+o),e.equal=L.equal,e.compare=L.compare,e.joined={concat:e.concat}})(It||(It={}));ze.typed(It);var Ae=y.fromBase("nonEmptyString",It,"must be a non-empty string");var Wi=y.branded("EmailAddress").match(/^[a-zA-Z0-9.!#$%&*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"must be a simple email address without name or comments"),Ho;(function(e){e.toNonEmptyString=Ae.brand})(Ho||(Ho={}));var an={...Ho,...Wi};var bc=y.branded("PhoneNumber").match(/\S/,"must be a non-empty phone number without blanks");var no;(function(e){e.brand=F.brand,e.is=t=>/^[a-zA-Z0-9!#$%&'()*+./:<=>?@[\]^_`{|}~-]*$/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(no||(no={}));var io=y.fromBase("CookieValue",no,"must be an RFC 6265 cookie value");var ln=y.branded("Token").match(/^[0-9a-f]{64}$/,"must be a hex-encoded token"),Uo;(function(e){e.fromCookieValue=t=>ln.fromString(t),e.toCookieValue=t=>io.brand(t)})(Uo||(Uo={}));var Mc={...Uo,...ln};var so;(function(e){e.brand=F.brand,e.is=t=>/^[a-zA-Z0-9!#$%&'*+.^_`|~-]*$/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(so||(so={}));var Dc=y.fromBase("CookieName",so,"must be an RFC 6265 cookie name");var Nc=Y.fromBase("PortNumber",Re,"must be a port number between 0 and 65535").between(0,65335);var Ni=y.branded("Secret"),Zo;(function(e){e.toCookieValue=t=>io.brand(encodeURIComponent(t))})(Zo||(Zo={}));var Gc={...Zo,...Ni};var mn=y.branded("DnsLabel").match(/^[a-z0-9_]([a-z0-9_-]*[a-z0-9_])?$/,"must be a lowercase dns label"),Go;(function(e){e.reallyParse=t=>mn.fromString(t.toLowerCase()),e.toDnsDomain=t=>lo.brand(t)})(Go||(Go={}));var ao={...Go,...mn};var mo=y.branded("DnsDomain").match(/^[a-z0-9_]([a-z0-9_-]*[a-z0-9_])?(\.[a-z0-9_]([a-z0-9_-]*[a-z0-9_])?)*$/,"must be a lowercase dns domain"),Yo;(function(e){e.reallyParse=t=>mo.fromString(t.toLowerCase()),e.prepend=(t,o)=>mo.brand(`${t}.${o}`),e.getChild=t=>{let o=t.indexOf(".");return ao.brand(o===-1?t:t.substring(0,o))},e.getParent=t=>{let o=t.indexOf(".");return o===-1?null:mo.brand(t.substring(o+1))}})(Yo||(Yo={}));var lo={...Yo,...mo};var cn=y.branded("HostLabel").match(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"must be a lowercase host label"),Ko;(function(e){e.reallyParse=t=>cn.fromString(t.toLowerCase()),e.toHostDomain=t=>pn.brand(t),e.toDnsLabel=t=>ao.brand(t)})(Ko||(Ko={}));var un={...Ko,...cn};var co=y.branded("HostDomain").match(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/,"must be a lowercase host domain"),Xo;(function(e){e.reallyParse=t=>co.fromString(t.toLowerCase()),e.prepend=(t,o)=>co.brand(`${t}.${o}`),e.getChild=t=>{let o=t.indexOf(".");return un.brand(o===-1?t:t.substring(0,o))},e.getParent=t=>{let o=t.indexOf(".");return o===-1?null:co.brand(t.substring(o+1))},e.toDnsDomain=t=>lo.brand(t)})(Xo||(Xo={}));var pn={...Xo,...co};var lu=y.branded("IpV4").match(/^(0|[1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.(0|[1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}
1$/,"must be an ip address version 4");var dn=y.branded("IpV6").test(e=>Hi(e),"must be an ip address version 6"),Hi=e=>{let t=e.split("::").map(Ui);switch(t.length){case 1:let o=t[0];return o!==null&&o===8;case 2:let r=t[0],i=t[1];return r!==null&&i!==null&&r+i<8;default:return!1}},Ui=e=>{if(e==="")return 0;let t=e.split(":");return t.every(r=>/^[0-9a-f]{1,4}$/.test(r))?t.length:null},Jo;(function(e){e.reallyParse=t=>dn.fromString(t.toLowerCase())})(Jo||(Jo={}));var uu={...Jo,...dn};var Ao=y.branded("HexColor").match(/^#[a-f0-9]{6}$/,"must be a # sign followed by 6 hexadecimal characters"),Eo;(function(e){e.black=Ao.brand("#000000"),e.white=Ao.brand("#ffffff")})(Eo||(Eo={}));var fn={...Eo,...Ao};var v=class v{constructor(){w(this,"hex","#000000");w(this,"rgb_r",0);w(this,"rgb_g",0);w(this,"rgb_b",0);w(this,"xyz_x",0);w(this,"xyz_y",0);w(this,"xyz_z",0);w(this,"luv_l",0);w(this,"luv_u",0);w(this,"luv_v",0);w(this,"lch_l",0);w(this,"lch_c",0);w(this,"lch_h",0);w(this,"hsluv_h",0);w(this,"hsluv_s",0);w(this,"hsluv_l",0);w(this,"hpluv_h",0);w(this,"hpluv_p",0);w(this,"hpluv_l",0);w(this,"r0s",0);w(this,"r0i",0);w(this,"r1s",0);w(this,"r1i",0);w(this,"g0s",0);w(this,"g0i",0);w(this,"g1s",0);w(this,"g1i",0);w(this,"b0s",0);w(this,"b0i",0);w(this,"b1s",0);w(this,"b1i",0)}
1static fromLinear(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}static toLinear(t){return t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92}static yToL(t){return t<=v.epsilon?t/v.refY*v.kappa:116*Math.pow(t/v.refY,1/3)-16}static lToY(t){return t<=8?v.refY*t/v.kappa:v.refY*Math.pow((t+16)/116,3)}static rgbChannelToHex(t){let o=Math.round(t*255),r=o%16,i=(o-r)/16|0;return v.hexChars.charAt(i)+v.hexChars.charAt(r)}static hexToRgbChannel(t,o){let r=v.hexChars.indexOf(t.charAt(o)),i=v.hexChars.indexOf(t.charAt(o+1));return(r*16+i)/255}static distanceFromOriginAngle(t,o,r){let i=o/(Math.sin(r)-t*Math.cos(r));return i<0?1/0:i}static distanceFromOrigin(t,o){return Math.abs(o)/Math.sqrt(Math.pow(t,2)+1)}static min6(t,o,r,i,n,s){return Math.min(t,Math.min(o,Math.min(r,Math.min(i,Math.min(n,s)))))}rgbToHex(){this.hex="#",this.hex+=v.rgbChannelToHex(this.rgb_r),this.hex+=v.rgbChannelToHex(this.rgb_g),this.hex+=v.rgbChannelToHex(this.rgb_b)}hexToRgb(){this.hex=this.hex.toLowerCase(),this.rgb_r=v.hexToRgbChannel(this.hex,1),this.rgb_g=v.hexToRgbChannel(this.hex,3),this.rgb_b=v.hexToRgbChannel(this.hex,5)}xyzToRgb(){this.rgb_r=v.fromLinear(v.m_r0*this.xyz_x+v.m_r1*this.xyz_y+v.m_r2*this.xyz_z),this.rgb_g=v.fromLinear(v.m_g0*this.xyz_x+v.m_g1*this.xyz_y+v.m_g2*this.xyz_z),this.rgb_b=v.fromLinear(v.m_b0*this.xyz_x+v.m_b1*this.xyz_y+v.m_b2*this.xyz_z)}rgbToXyz(){let t=v.toLinear(this.rgb_r),o=v.toLinear(this.rgb_g),r=v.toLinear(this.rgb_b);this.xyz_x=.41239079926595*t+.35758433938387*o+.18048078840183*r,this.xyz_y=.21263900587151*t+.71516867876775*o+.072192315360733*r,this.xyz_z=.019330818715591*t+.11919477979462*o+.95053215224966*r}xyzToLuv(){let t=this.xyz_x+15*this.xyz_y+3*this.xyz_z,o=4*this.xyz_x,r=9*this.xyz_y;t!==0?(o/=t,r/=t):(o=NaN,r=NaN),this.luv_l=v.yToL(this.xyz_y),this.luv_l===0?(this.luv_u=0,this.luv_v=0):(this.luv_u=13*this.luv_l*(o-v.refU),this.luv_v=13*this.luv_l*(r-v.refV))}luvToXyz(){if(this.luv_l===0){this.xyz_x=0,this.xyz_y=0,this.xyz_z=0;return}let t=this.luv_u/(13*this.luv_l)+v.refU,o=this.luv_v/(13*this.luv_l)+v.refV;this.xyz_y=v.lToY(this.luv_l),this.xyz_x=0-9*this.xyz_y*t/((t-4)*o-t*o),this.xyz_z=(9*this.xyz_y-15*o*this.xyz_y-o*this.xyz_x)/(3*o)}luvToLch(){if(this.lch_l=this.luv_l,this.lch_c=Math.sqrt(this.luv_u*this.luv_u+this.luv_v*this.luv_v),this.lch_c<1e-8)this.lch_h=0;else{let t=Math.atan2(this.luv_v,this.luv_u);this.lch_h=t*180/Math.PI,this.lch_h<0&&(this.lch_h=360+this.lch_h)}}lchToLuv(){let t=this.lch_h/180*Math.PI;this.luv_l=this.lch_l,this.luv_u=Math.cos(t)*this.lch_c,this.luv_v=Math.sin(t)*this.lch_c}calculateBoundingLines(t){let o=Math.pow(t+16,3)/1560896,r=o>v.epsilon?o:t/v.kappa,i=r*(284517*v.m_r0-94839*v.m_r2),n=r*(838422*v.m_r2+769860*v.m_r1+731718*v.m_r0),s=r*(632260*v.m_r2-126452*v.m_r1),a=r*(284517*v.m_g0-94839*v.m_g2),l=r*(838422*v.m_g2+769860*v.m_g1+731718*v.m_g0),m=r*(632260*v.m_g2-126452*v.m_g1),p=r*(284517*v.m_b0-94839*v.m_b2),u=r*(838422*v.m_b2+769860*v.m_b1+731718*v.m_b0),f=r*(632260*v.m_b2-126452*v.m_b1);this.r0s=i/s,this.r0i=n*t/s,this.r1s=i/(s+126452),this.r1i=(n-769860)*t/(s+126452),this.g0s=a/m,this.g0i=l*t/m,this.g1s=a/(m+126452),this.g1i=(l-769860)*t/(m+126452),this.b0s=p/f,this.b0i=u*t/f,this.b1s=p/(f+126452),this.b1i=(u-769860)*t/(f+126452)}calcMaxChromaHpluv(){let t=v.distanceFromOrigin(this.r0s,this.r0i),o=v.distanceFromOrigin(this.r1s,this.r1i),r=v.distanceFromOrigin(this.g0s,this.g0i),i=v.distanceFromOrigin(this.g1s,this.g1i),n=v.distanceFromOrigin(this.b0s,this.b0i),s=v.distanceFromOrigin(this.b1s,this.b1i);return v.min6(t,o,r,i,n,s)}calcMaxChromaHsluv(t){let o=t/360*Math.PI*2,r=v.distanceFromOriginAngle(this.r0s,this.r0i,o),i=v.distanceFromOriginAngle(this.r1s,this.r1i,o),n=v.distanceFromOriginAngle(this.g0s,this.g0i,o),s=v.distanceFromOriginAngle(this.g1s,this.g1i,o),a=v.distanceFromOriginAngle(this.b0s,this.b0i,o),l=v.distanceFromOriginAngle(this.b1s,this.b1i,o);return v.min6(r,i,n,s,a,l)}hsluvToLch(){if(this.hsluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hsluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hsluv_l,this.calculateBoundingLines(this.hsluv_l);let t=this.calcMaxChromaHsluv(this.hsluv_h);this.lch_c=t/100*this.hsluv_s}this.lch_h=this.hsluv_h}lchToHsluv(){if(this.lch_l>99.9999999)this.hsluv_s=0,this.hsluv_l=100;else if(this.lch_l<1e-8)this.hsluv_s=0,this.hsluv_l=0;else{this.calculateBoundingLines(this.lch_l);let t=this.calcMaxChromaHsluv(this.lch_h);this.hsluv_s=this.lch_c/t*100,this.hsluv_l=this.lch_l}this.hsluv_h=this.lch_h}hpluvToLch(){if(this.hpluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hpluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hpluv_l,this.calculateBoundingLines(this.hpluv_l);let t=this.calcMaxChromaHpluv();this.lch_c=t/100*this.hpluv_p}this.lch_h=this.hpluv_h}lchToHpluv(){if(this.lch_l>99.9999999)this.hpluv_p=0,this.hpluv_l=100;else if(this.lch_l<1e-8)this.hpluv_p=0,this.hpluv_l=0;else{this.calculateBoundingLines(this.lch_l);let t=this.calcMaxChromaHpluv();this.hpluv_p=this.lch_c/t*100,this.hpluv_l=this.lch_l}this.hpluv_h=this.lch_h}hsluvToRgb(){this.hsluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hpluvToRgb(){this.hpluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hsluvToHex(){this.hsluvToRgb(),this.rgbToHex()}hpluvToHex(){this.hpluvToRgb(),this.rgbToHex()}rgbToHsluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHsluv()}rgbToHpluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHpluv()}hexToHsluv(){this.hexToRgb(),this.rgbToHsluv()}hexToHpluv(){this.hexToRgb(),this.rgbToHpluv()}};w(v,"hexChars","0123456789abcdef"),w(v,"refY",1),w(v,"refU",.19783000664283),w(v,"refV",.46831999493879),w(v,"kappa",903.2962962),w(v,"epsilon",.0088564516),w(v,"m_r0",3.240969941904521),w(v,"m_r1",-1.537383177570093),w(v,"m_r2",-.498610760293),w(v,"m_g0",-.96924363628087),w(v,"m_g1",1.87596750150772),w(v,"m_g2",.041555057407175),w(v,"m_b0",.055630079696993),w(v,"m_b1",-.20397695888897),w(v,"m_b2",1.056971514242878);var uo=v;var hn;(function(e){e.toHex=t=>{let o=new uo;return o.hsluv_h=t.hue,o.hsluv_s=t.saturation,o.hsluv_l=t.lightness,o.hsluvToHex(),fn.brand(o.hex)}})(hn||(hn={}));var kt;(function(e){e.fresh=()=>e.brand(tn.randomUUID()),e.reallyParse=t=>e.fromString(t.toLowerCase()),e.brand=F.brand,e.is=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(kt||(kt={}));ze.typed(kt);var Fu=y.fromBase("UuidV4",kt,"must be an uuid v4");var qt;(function(e){e.reallyParse=t=>e.fromString(t.toLowerCase()),e.brand=F.brand,e.is=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(qt||(qt={}));ze.typed(qt);var Bu=y.fromBase("UuidV5",qt,"must be an uuid v5");var po;(function(e){e.brand=F.brand,e.is=t=>/^[a-zA-Z0-9\-._~+/]+=*$/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(po||(po={}));var Hu=y.fromBase("BearerToken",po,"must be an RFC 6750 b64token");var fo;(function(e){e.brand=F.brand,e.is=t=>!/[\x00-\x1f\x7f:]/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(fo||(fo={}));var Ju=y.fromBase("BasicAuthUser",fo,"must be a RFC 7617 basic auth user id");var ho;(function(e){e.brand=F.brand,e.is=t=>!/[\x00-\x1f\x7f]/.test(t),e.fromString=t=>e.is(t)?e.brand(t):null,e.toString=t=>t,e.equal=L.equal})(ho||(ho={}));var op=y.fromBase("BasicAuthPassword",ho,"must be a RFC 7617 basic auth password");var Ee;(function(e){e.regexp=Object.freeze(/^(?:[A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/])*(?:[A-Za-z0-9+/][A-Za-z0-9+/]==|[A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/]=)?$/),e.encode=r=>{let i=[];for(let s=0;s<r.length;s+=3){let a=r[s+0],l=r[s+1],m=r[s+2],p=a>>2&63,u=a<<4&48|l>>4&15,f=l<<2&60|m>>6&3,x=m<<0&63;i.push(t[p]),i.push(t[u]),i.push(t[f]),i.push(t[x])}let n=r.length%3;return n===1?(i[i.length-1]="=",i[i.length-2]="="):n===2&&(i[i.length-1]="="),i.join("")},e.decodeWs=r=>e.decode(e.removeWs(r)),e.decode=r=>{let i=r.length/4;if(!Number.isSafeInteger(i))return null;let n=r.endsWith("==")?2:r.endsWith("=")?1:0,s=i*3-n,a=new Uint8Array(s);for(let l=0;l<i;l++){let m=o[r.charCodeAt(l*4+0)],p=o[r.charCodeAt(l*4+1)],u=o[r.charCodeAt(l*4+2)],f=o[r.charCodeAt(l*4+3)];if(m===void 0||p===void 0||u===void 0||f===void 0||m===255||p===255||u===255||f===255)return null;let x=m<<2&252|p>>4&3,b=p<<4&240|u>>2&15,q=u<<6&192|f>>
10&63,R=l===i-1;if(R&&n===1){if(m===254||p===254||u===254)return null;a[l*3+0]=x,a[l*3+1]=b}else if(R&&n===2){if(m===254||p===254)return null;a[l*3+0]=x}else{if(m===254||p===254||u===254||f===254)return null;a[l*3+0]=x,a[l*3+1]=b,a[l*3+2]=q}}return a},e.removeWs=r=>r.replace(/\s/g,"");let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=(()=>{let r=new Uint8Array(256);for(let i=0;i<256;i++)r[i]=t.indexOf(String.fromCharCode(i));return r[61]=254,r})()})(Ee||(Ee={}));var gn=y.branded("Base64String").match(Ee.regexp,"must be an RFC 4648 base64 string"),Qo;(function(e){e.fromUint8Array=t=>gn.brand(Ee.encode(t)),e.toUint8Array=t=>G.unsafeGet(Ee.decode(t))})(Qo||(Qo={}));var lp={...Qo,...gn};var Wp=Q.rebrand("DestinationId"),Np=Q.rebrand("HotelId"),vn=Q.rebrand("RegionId"),xn=Q.rebrand("TerritoryId"),_n=Q.rebrand("ExampleRouteId"),Hp=Ae.rebrand("AccessCode"),Up=Q.rebrand("CarCategoryId"),Zp=Q.rebrand("HotelCategoryId"),Gp=Q.rebrand("HotelSiteId"),Yp=Oe.of("driving","static"),Kp=wt.rebrand("Latitude"),Xp=wt.rebrand("Longitude"),Jp=wt.rebrand("SecondDuration"),Ap=wt.rebrand("MeterDistance"),Ep=y.branded("HtmlSnippet"),Qp=Oe.of("m","w","d"),Ft=y.branded("FirstName").test(e=>e.length<=50,"must have a maximum of 50 characters"),St=y.branded("LastName").test(e=>e.length<=50,"must have a maximum of 50 characters"),W=y.branded("Title").test(e=>e.length<=10,"must have a maximum of 10 characters"),Vo=an.rebrand("EmailAddressLtd").test(e=>e.length<=50,"must have a maximum of 50 characters"),bn=y.branded("Telephone").test(e=>e.length<=50,"must have a maximum of 50 characters"),Vp=y.branded("PostCode").test(e=>e.length<=16,"must have a maximum of 16 characters"),ed=y.branded("ParameterValue").test(e=>e.length<=1e3,"must have a maximum of 1000 characters");var yn=()=>{let e=G.then(document.body.getAttribute("data-route"))(_n.fromString),t=G.then(document.body.getAttribute("data-region"))(vn.fromString),o=G.then(document.body.getAttribute("data-territory"))(xn.fromString);return e!==null&&t===null?{type:"route",routeId:e}:e!==null&&t!==null?{type:"region",routeId:e,regionId:t}:o!==null?{type:"territory",territoryId:o}:{type:"front"}};var Be="rundreisen",K={website:"https://www.geotoura.com",wordpressBase:Be,email:{info:"[email protected]",reisen:"[email protected]"},phone:{human:"+49 6221 653 079-0",machine:"+4962216530790"},page:{main:`/${Be}/`,privacyHint:`/${Be}/datenschutz-hinweis/`,privacy:`/${Be}/datenschutz/`,newsletter:`/${Be}/newsletter/`,arb:`/${Be}/allgemeine-reisebedingungen/`,impressum:`/${Be}/impressum/`},pdf:{privacyHint:"/content/uploads/Datentschutzhinweis-Geotoura-Stand-16-05-2018.pdf",form:"/content/uploads/Formblatt.pdf",arb:"/content/uploads/arb-geotoura.pdf"}};var Tn={privacyHint:{href:K.page.privacyHint,text:"Datenschutz-Hinweis"},featured:[{href:`/${K.wordpressBase}/geotoura-reiselabor/`,text:"Reiselabor"},{href:`/${K.wordpressBase}/reisen-mit-dem-eigenen-auto/`,text:"Touren mit dem eigenen Auto"}]},zt={phone:{href:`tel:${K.phone.machine}`,text:K.phone.human},email:{info:{href:`mailto:${K.email.info}`,text:K.email.info},reisen:{href:`mailto:${K.email.reisen}`,text:K.email.reisen}},page:Tn,privacyAgreement:{pre:"Den ",link:Tn.privacyHint,post:" habe ich gelesen und akzeptiere ihn."}};var wn={form:{fieldRequired:"Dieses Feld ist ein Pflichtfeld.",fieldInvalid:"Der Wert dieses Feldes ist ung\xFCltig.",privacyAgreement:zt.privacyAgreement,title:{label:"Titel",choices:[W.brand("Dr."),W.brand("Mag."),W.brand("Prof."),W.brand("Prof. Dr.")]},gender:{label:"Geschlecht",choices:{u:"",m:"m\xE4nnlich",w:"weiblich",d:"divers"}},firstName:"Vorname",lastName:"Nachname",email:{label:"E-Mail",placeholder:"Ihre E-Mail-Adresse"},phone:{label:"Telefon",placeholder:"Ihre Telefonnummer"}},privacy:{title:"Cookie-Einstellungen",intro:{pre:"Neben den technisch notwendigen Cookies verwenden wir Cookies, um die Nutzung unserer Website zu analysieren. Unter Statistik und Marketing f\xFChren wir und unser Partner folgende Datenverarbeitungsprozesse durch: Personalisierte Werbung und Inhalte, Messungen und Werbeleistungen und Performance von Inhalten sowie das Speichern von oder Zugriff auf Informationen auf einem Endger\xE4t durch technische Cookies. Sie k\xF6nnen der Nutzung hier oder \xFCber unsere ",link:{href:K.page.privacy,text:"Datenschutz-Seite"},post:"jederzeit widersprechen."},essential:"Technisch notwendig",nonessential:{pre:"Statistik und Marketing (",link:{href:K.page.privacy,text:"weitere Informationen"},post:")"},saveSettings:"Einstellungen speichern",acceptAll:"Alle akzeptieren",imprint:{pre:"",link:{href:K.page.impressum,text:"Impressum"},post:""}}
1};var In={app:{title:"Schnellstart",inquiry1:"Angebot",inquiry2:"anfragen",planner1:"Individuell",planner2:"planen",meeting1:"Pers\xF6nlich",meeting2:"beraten"},form:wn.form,inquiry:{introGeneral:"Bitte senden Sie mir ein kostenloses und unverbindliches Reiseangebot.",introRoute:"Bitte senden Sie mir ein kostenloses und unverbindliches Angebot f\xFCr die Route",date:{label:"Reisetermin",placeholder:"Wann wollen Sie reisen?"},notes:{label:"Meine W\xFCnsche",placeholder:"Hier ist Platz f\xFCr Ihre W\xFCnsche: Orte, die Sie besuchen m\xF6chten, besondere Anforderungen usw."},submitLabel:"Angebot zusenden"},meeting:{intro:"Vereinbaren Sie eine pers\xF6nliche Reiseberatung (Montag bis Freitag 9:30\u202F\u2013\u202F18:00 Uhr)",or:"oder",booking:{href:"https://bookings.cloud.microsoft/book/[email protected]/s/HRLWy05VqEeoRHNskKz6fQ2?ismsaljsauthenabled",text:"Beratungstermin vereinbaren"},notes:{label:"Termin und W\xFCnsche",placeholder:"Bitte nennen Sie uns Ihren Wunschtermin und gerne auch schon das Thema (Reiseziel, Reiseart\u202F\u2026), f\xFCr das Sie sich interessieren"},contactWay:{label:"Wie m\xF6chten Sie am liebsten mit uns sprechen?",email:"E-Mail",phone:"Telefon",video:"Video-Konferenz"},submitLabelOld:"Beratung vereinbaren",submitLabelNew:"Per E-Mail beraten"},planner:{text1:"Nutzen Sie unseren Urlaubsplaner! Entwerfen Sie Ihre Wunschreise nach Ihren ganz pers\xF6nlichen Vorstellungen.",text2:"Auf einer interaktiven Karte stellen Sie Reiseziele, \xDCbernachtungen und Extras spielend leicht zusammen.",text3:"Individueller kann Urlaub nicht sein!",textmobile1:"Entwerfen Sie Ihre Wunschreise nach Ihren ganz pers\xF6nlichen Vorstellungen.",textmobile2:"Auf einer interaktiven Karte stellen Sie Reiseziele, \xDCbernachtungen und Extras spielend leicht zusammen.",linkLabel:"Jetzt Urlaubsplaner starten",wordpressBase:K.wordpressBase,imgAlt:"Screenshot eines Routenplaners. Er zeigt einen Kartenausschnitts auf dem Reiseziele mit gelben und gr\xFCnen Markern eingezeichnet sind. Einige davon sind mit einer roten Linie zu einer Route verbunden. Daneben befindet sich eine Ansicht mit einem Foto (Meer und Palmen), Text zum ausgew\xE4hlten Ort (Costa de Sol West), Hotels und eine Toolbar mit Buttons."},util:{success:{title:"Ihre Nachricht wurde verschickt",text:"Vielen Dank f\xFCr Ihre Anfrage. Wir werden diese baldm\xF6glichst beantworten."},error:{title:"Ein Fehler ist aufgetreten",text1:"Ihre Nachricht konnte leider nicht verschickt werden. Bitte probieren Sie es sp\xE4ter noch einmal, kontaktieren uns per E-Mail unter",mail:zt.email.info,text2:"oder rufen Sie uns einfach an unter",tel:zt.phone},signature:"Ihr Geotoura-Team",close:"Schlie\xDFen"}};var X={website:"https://www.geotoura.com",wordpressBase:"en",email:{info:"[email protected]",reisen:"[email protected]"},phone:{human:"+49 6221 653 079-0",machine:"+4962216530790"},page:{main:"/en/",privacyHint:"/en/privacy-notice/",privacy:"/en/privacy/",newsletter:"/en/newsletter/",arb:"/en/general-terms-and-conditions-of-travel/",impressum:"/en/imprint/"},pdf:{privacyHint:"/content/uploads/Datentschutzhinweis-Geotoura-Stand-16-05-2018.pdf",form:"/content/uploads/Formblatt-en.pdf",arb:"/content/uploads/arb-geotoura-en.pdf"}};var kn={privacyHint:{href:X.page.privacyHint,text:"privacy notice"},featured:[{href:`/${X.wordpressBase}/travel-lab/`,text:"Travel lab"},{href:`/${X.wordpressBase}/tours-with-your-own-car/`,text:"Tours with your own car"}]},Mt={phone:{href:`tel:${X.phone.machine}`,text:X.phone.human},email:{info:{href:`mailto:${X.email.info}`,text:X.email.info},reisen:{href:`mailto:${X.email.reisen}`,text:X.email.reisen}},page:kn,privacyAgreement:{pre:"I have read and accept the ",link:kn.privacyHint,post:"."}};var qn={form:{fieldRequired:"This field is mandatory.",fieldInvalid:"The value of this field is invalid.",privacyAgreement:Mt.privacyAgreement,title:{label:"Title",choices:[W.brand("Dr."),W.brand("Mag."),W.brand("Prof.")]},gender:{label:"Gender",choices:{u:"",m:"male",w:"female",d:"diverse"}},firstName:"First name",lastName:"Last name",email:{label:"E-Mail",placeholder:"Your e-mail address"},phone:{label:"Telephone",placeholder:"Your telephone number"}},privacy:{title:"Cookie settings",intro:{pre:"In addition to the cookies that are technically necessary, we use cookies to analyse the use of our website. Under statistics and marketing, we and our partner carry out the following data processing activities: personalized advertising and content, measurement and performance of ads and content, as well as storing or accessing information on a device through technical cookies. You can object to the use of cookies here or via our ",link:{href:X.page.privacy,text:"privacy page"},post:"at any time."},essential:"Technically necessary",nonessential:{pre:"Statistics and marketing (",link:{href:X.page.privacy,text:"further information"},post:")"},saveSettings:"Save settings",acceptAll:"Accept all",imprint:{pre:"",link:{href:X.page.impressum,text:"Legal notice"},post:""}}
1};var Fn={app:{title:"Quick start",inquiry1:"Request",inquiry2:"offer",planner1:"Plan",planner2:"individually",meeting1:"Consult",meeting2:"personally"},form:qn.form,inquiry:{introGeneral:"Please send me a free and non-binding travel offer.",introRoute:"Please send me a free and non-binding offer for the route",date:{label:"Travel date",placeholder:"When do you want to travel?"},notes:{label:"My wishes",placeholder:"There is space here for your wishes: places you would like to visit, special requirements, etc."},submitLabel:"Send offer"},meeting:{intro:"Arrange a personal travel consultation (Monday to Friday from 9.30\u202Fa.m. to 6\u202Fp.m.)",or:"or",booking:{href:"https://outlook.office.com/book/[email protected]/s/-ZQEcEG-PEq5xr5hTNWcpQ2?ismsaljsauthenabled",text:"Schedule a consultation"},notes:{label:"Date and wishes",placeholder:"Please let us know your preferred date and the topic (destination, type of trip\u202F\u2026) you are interested in"},contactWay:{label:"How would you prefer to speak to us?",email:"E-mail",phone:"Telephone",video:"Video conference"},submitLabelOld:"Arrange a consultation",submitLabelNew:"Consult via email"},planner:{text1:"Use our holiday planner! Design your dream holiday according to your own personal ideas.",text2:"On an interactive map, you can easily put together travel destinations, overnight stays and extras.",text3:"A holiday couldn't be more individual!",textmobile1:"Design your dream holiday according to your own personal ideas.",textmobile2:"On an interactive map, you can easily put together travel destinations, overnight stays and extras.",linkLabel:"Start your holiday planner now",wordpressBase:X.wordpressBase,imgAlt:"Screenshot of a route planner. It shows a map section on which travel destinations are marked with yellow and green markers. Some of them are connected to a route with a red line. Next to it is a view with a photo (sea and palm trees), text about the selected location (Costa de Sol West), hotels and a toolbar with buttons."},util:{success:{title:"Your message has been sent",text:"Thank you for your enquiry. We will reply as soon as possible."},error:{title:"An error has occurred",text1:"Sorry, your message could not be sent. Please try again later, contact us by e-mail at",mail:Mt.email.info,text2:"or simply give us a call at",tel:Mt.phone},signature:"Your Geotoura team",close:"Close"}};var Pe="viaggi",te={website:"https://www.geotoura.it",wordpressBase:Pe,email:{info:"[email protected]",reisen:"[email protected]"},phone:{human:"0942 264 463",machine:"+390942264463"},page:{main:`/${Pe}/`,privacyHint:`/${Pe}/informativa-sulla-protezione-dei-dati/`,privacy:`/${Pe}/protezione-dei-dati/`,newsletter:`/${Pe}/newsletter/`,arb:`/${Pe}/condizioni-generali-di-viaggio/`,impressum:`/${Pe}/note-legali/`},pdf:{privacyHint:"/content/uploads/informativa-sulla-protezione-dei-dati.pdf",form:"/content/uploads/modulo.pdf",arb:"/content/uploads/arb.pdf"}};var Sn={privacyHint:{href:te.page.privacyHint,text:"l'informativa sulla protezione dei dati"},featured:[]},Ct={phone:{href:`tel:${te.phone.machine}`,text:te.phone.human},email:{info:{href:`mailto:${te.email.info}`,text:te.email.info},reisen:{href:`mailto:${te.email.reisen}`,text:te.email.reisen}},page:Sn,privacyAgreement:{pre:"Letto ",link:Sn.privacyHint,post:"e accettato."}};var zn={form:{fieldRequired:"Questo campo \xE8 obbligatorio.",fieldInvalid:"Il valore di questo campo non \xE8 valido.",privacyAgreement:Ct.privacyAgreement,title:{label:"Titel",choices:[W.brand("Dott."),W.brand("Dotta."),W.brand("Prof."),W.brand("Prof.ssa"),W.brand("Prof. Dott."),W.brand("Prof.ssa Dott.ssa")]},gender:{label:"Genere",choices:{u:"",m:"maschile",w:"femminile",d:"altro"}},firstName:"Nome",lastName:"Cognome",email:{label:"E-mail",placeholder:"Il tuo indirizzo e-mail"},phone:{label:"Telefono",placeholder:"Il tuo numero di telefono"}},privacy:{title:"Le impostazioni dei Cookie",intro:{pre:"Oltre ai cookie che sono tecnicamente necessari, utilizziamo i cookie per analizzare l\u2019uso del nostro sito web. Nell'ambito delle statistiche e del marketing, noi e il nostro partner svolgiamo i seguenti processi di trattamento dei dati: pubblicit\xE0 e contenuti personalizzati, misurazione e performance di annunci e contenuti, nonch\xE9 memorizzazione o accesso alle informazioni su un dispositivo tramite cookie tecnici. Potete ritirare il consenso al loro utilizzo qui o tramite la nostra ",link:{href:te.page.privacy,text:"pagina sulla protezione dei dati"},post:"in qualsiasi momento."},essential:"Cookie tecnici",nonessential:{pre:"Statistica e Marketing (",link:{href:te.page.privacy,text:"Ulteriori informazioni"},post:")"},saveSettings:"Salvare le impostazioni",acceptAll:"Accettare tutto",imprint:{pre:"",link:{href:te.page.impressum,text:"Note legali"},post:""}}
1};var Mn={app:{title:"Iniziare subito",inquiry1:"Richiedere",inquiry2:"un\u2019offerta",planner1:"Pianificare",planner2:"",meeting1:"Consigli",meeting2:"personalizzati"},form:zn.form,inquiry:{introGeneral:"Per favore inviatemi un\u2019offerta gratuita e non vincolante.",introRoute:"Per favore inviatemi un\u2019offerta gratuita e non vincolante per questo itinerario",date:{label:"Date di viaggio",placeholder:"Quando desideri viaggiare?"},notes:{label:"I miei desideri",placeholder:"Qui c\u2019\xE8 posto per i tuoi desideri: luoghi che desideri visitare, esigenze speciali, ecc."},submitLabel:"\u200CInviare l\u2019offerta"},meeting:{intro:"Richiedi una consulenza di viaggio (Da luned\xEC a venerd\xEC 9:30\u202F\u2013\u202F18:00)",or:"oder",booking:{href:"https://bookings.cloud.microsoft/book/[email protected]/s/HRLWy05VqEeoRHNskKz6fQ2?ismsaljsauthenabled",text:"Richiedi una consulenza"},notes:{label:"Appuntamento e desideri",placeholder:"Ci puoi comunicare la data che preferisci e, se vuoi, l\u2019argomento (destinazione, tipo di viaggio\u202F\u2026) che ti interessa."},contactWay:{label:"Come preferisci comunicare con noi?",email:"E-mail",phone:"Telefono",video:"Video conferenza"},submitLabelOld:"Richiedi una consulenza",submitLabelNew:"Consultazione via e-mail"},planner:{text1:"Utilizza il nostro pianificatore per le vacanze! Progetta il tuo viaggio da s
1ogno a seconda delle tue idee personali.",text2:"Puoi facilmente mettere insieme destinazioni, pernottamenti ed extra su una mappa interattiva.",text3:"Le vacanze non possono essere pi\xF9 individuali di cos\xEC!",textmobile1:"Progetta il tuo viaggio da sogno secondo le tue idee personali.",textmobile2:"Su una mappa interattiva si possono facilmente mettere insieme destinazioni, pernottamenti ed extra.",linkLabel:"Inizia a pianificare le vacanze adesso",wordpressBase:te.wordpressBase,imgAlt:"Screenshot di un pianificatore di percorso. Mostra una sezione della mappa in cui le destinazioni di viaggio sono contrassegnate con indicatori gialli e verdi. Alcuni di essi sono collegati da un percorso contrassegnato da una linea rossa. Accanto c'\xE8 una vista con una foto (mare e palme), un testo sulla localit\xE0 selezionata (Costa del Sol Ovest), gli hotel e una barra degli strumenti con i pulsanti."},util:{success:{title:"Il tuo messaggio \xE8 stato inviato",text:"Grazie per la tua richiesta. Risponderemo al pi\xF9 presto."},error:{title:"Si \xE8 verificato un errore",text1:"Purtroppo il tuo messaggio non \xE8 stato inviato. Prego riprovare pi\xF9 tardi, contattarci al seguente indirizzo e-mail",mail:Ct.email.info,text2:"o chiamarci al",tel:Ct.phone},signature:"Il tuo Team Geotoura",close:"Chiudi"}};var Qe;(function(e){e.of={de:In,en:Fn,it:Mn}})(Qe||(Qe={}));var B;(function(e){e.identity=()=>d.identity,e.cast=()=>t=>o=>t(o),e.when=t=>o=>r=>t(r)?o(r):r,e.is=t=>o=>r=>t(r)?o(r):r,e.atKey=t=>o=>r=>({...r,[t]:o(r[t])}),e.atIndexMut=t=>o=>r=>t>=0&&t<r.length?[...r.slice(0,t),o(r[t]),...r.slice(t+1)]:r,e.atIndexRo=t=>o=>r=>t>=0&&t<r.length?[...r.slice(0,t),o(r[t]),...r.slice(t+1)]:r,e.eachMut=()=>t=>o=>o.map(t),e.eachRo=()=>t=>o=>o.map(t),e.notNull=()=>t=>o=>o!==null?t(o):null,e.some=()=>t=>o=>h.map(o)(t),e.valid=()=>t=>o=>g.map(o)(t),e.right=()=>t=>o=>k.map(o)(t),e.left=()=>t=>o=>k.mapFailure(o)(t),e.whereMut=t=>o=>r=>r.map(i=>t(i)?o(i):i),e.whereRo=t=>o=>r=>r.map(i=>t(i)?o(i):i),e.whereIndexMut=t=>o=>r=>r.map((i,n)=>t(n)?o(i):i),e.whereIndexRo=t=>o=>r=>r.map((i,n)=>t(n)?o(i):i),e.whereValueIndexLengthMut=t=>o=>r=>r.map((i,n)=>t(i,n,r.length)?o(i):i),e.whereValueIndexLengthRo=t=>o=>r=>r.map((i,n)=>t(i,n,r.length)?o(i):i),e.mapAtKeyMut=t=>o=>r=>ge.modify(r)(t)(o),e.mapAtKeyRo=t=>o=>r=>ge.modify(r)(t)(o),e.mapMaybeAtKeyMut=t=>o=>r=>ge.modifyMember(r)(t)(o),e.mapMaybeAtKeyRo=t=>o=>r=>ge.modifyMember(r)(t)(o),e.setAtValueMut=t=>o=>r=>E.modifyMember(r)(t)(o),e.setAtValueRo=t=>o=>r=>E.modifyMember(r)(t)(o),e.partialObject=()=>t=>o=>({...o,...t(o)})})(B||(B={}));var Ve=class e{constructor(t){w(this,"mod");this.mod=t}static on(){return new e(d.identity)}static of(t){return new e(t)}static contextual(t){return e.of(o=>r=>t(r).mod(o)(r))}cast(){return this}when(t){return this.zoom(B.when(t))}is(t){return this.zoom(B.is(t))}atKey(t){return this.zoom(B.atKey(t))}atIndexMut(t){return this.anyZoom(B.atIndexMut(t))}atIndexRo(t){return this.anyZoom(B.atIndexRo(t))}eachMut(){return this.anyZoom(B.eachMut())}eachRo(){return this.anyZoom(B.eachRo())}notNull(){return this.anyZoom(B.notNull())}some(){return this.anyZoom(B.some())}valid(){return this.anyZoom(B.valid())}right(){return this.anyZoom(B.right())}left(){return this.anyZoom(B.left())}whereMut(t){return this.anyZoom(B.whereMut(t))}whereRo(t){return this.anyZoom(B.whereRo(t))}whereIndexMut(t){return this.anyZoom(B.whereIndexMut(t))}whereIndexRo(t){return this.anyZoom(B.whereIndexRo(t))}whereValueIndexLengthMut(t){return this.anyZoom(B.whereValueIndexLengthMut(t))}whereValueIndexLengthRo(t){return this.anyZoom(B.whereValueIndexLengthRo(t))}mapAtKeyMut(t){return this.anyZoom(B.mapAtKeyMut(t))}mapAtKeyRo(t){return this.anyZoom(B.mapAtKeyRo(t))}mapMaybeAtKeyMut(t){return this.anyZoom(B.mapMaybeAtKeyMut(t))}mapMaybeAtKeyRo(t){return this.anyZoom(B.mapMaybeAtKeyRo(t))}setAtValueMut(t){return this.anyZoom(B.setAtValueMut(t))}setAtValueRo(t){return this.anyZoom(B.setAtValueRo(t))}partialObject(){return this.anyZoom(B.partialObject())}tapBefore(t){return e.of(o=>this.mod(d.andThen(d.tap(t),o)))}tapAfter(t){return e.of(o=>this.mod(d.andThen(o,d.tap(t))))}then(t){return this.zoom(t.mod)}zoom(t){return e.of(d.compose(this.mod,t))}contextualThen(t){return this.then(e.contextual(t))}set(t){return this.mod(d.constant(t))}execute(t){return this.tapAfter(t).void()}contextMod(t){return o=>this.mod(t(o))(o)}contextSet(t){return o=>this.set(t(o))(o)}void(){return this.mod(d.identity)}anyZoom(t){return e.of(d.compose(this.mod,t))}};var J;(function(e){e.of=t=>{let o=m=>t.parse(m.value),r=()=>De.init(t.unparse(t.initial)),i=m=>De.init(t.unparse(m)),n=m=>k.toMaybe(o(m)),s=m=>k.isRight(o(m)),a=m=>m.touched&&!s(m),l=m=>k.toNullable(k.swap(o(m)));return{initial:r,extract:n,inject:i,touch:De.touch,untouch:De.untouch,required:t.required,restricted:t.restricted,valid:s,showError:a,problem:l}},e.unrestricted=t=>e.of({initial:t,required:!1,restricted:!1,parse:ie.noProblem,unparse:d.identity})})(J||(J={}));var De;(function(e){e.init=t=>({value:t,touched:!1}),e.edit=t=>o=>({value:t.value,touched:o.touched||t.touching}),e.touch=t=>({value:t.value,touched:!0}),e.untouch=t=>({value:t.value,touched:!1}),e.copy=t=>e.init(t.value)})(De||(De={}));var go;(function(e){e.of=t=>(o,r)=>({schema:tr.of(t),model:o,onEdit:i=>r(De.edit(i))})})(go||(go={}));var tr;(function(e){e.of=t=>t})(tr||(tr={}));var ie;(function(e){e.noProblem=t=>k.right(t),e.nullIsInvalid=t=>k.fromNullable(t)("invalid"),e.noneIsMissing=t=>k.fromMaybe(t)("missing")})(ie||(ie={}));var et;(function(e){e.of=u=>({fields:u,initial:()=>t(u),inject:o(u),injectPartial:r(u),extract:i(u),extractNullable:d.andThen(i(u),h.toNullable),individual:n(u),touch:s(u),untouch:a(u),valid:l(u),editorProps:m(u)});let t=u=>{let f={};for(let x in u)f[x]=u[x].initial();return f},o=u=>f=>{let x={};for(let b in u){let q=u[b].inject(f[b]);x[b]=q}return x}
1,r=u=>f=>x=>{let b={};for(let q in u){if(!we.hasOwn(f,q))continue;let R=u[q].inject(f[q]);b[q]=R}return{...x,...b}},i=u=>f=>{let x={};for(let b in u){let q=u[b].extract(f[b]);if(h.isNone(q))return h.none();x[b]=q.value}return h.some(x)},n=u=>f=>{let x={};for(let b in u){let q=u[b].extract(f[b]);x[b]=q}return x},s=u=>f=>{let x={};for(let b in u)x[b]=u[b].touch(f[b]);return x},a=u=>f=>{let x={};for(let b in u)x[b]=u[b].untouch(f[b]);return x},l=u=>f=>{for(let x in u)if(!u[x].valid(f[x]))return!1;return!0},m=u=>(f,x)=>{let b={};for(let q in u)b[q]=p(u,q)(f,x);return b},p=(u,f)=>(x,b)=>{let q=u[f],R=x[f],C=M=>b(Ve.on().atKey(f).mod(M));return go.of(q)(R,C)}})(et||(et={}));var jt;(function(e){e.exposeFirstError=(t,o)=>{let r=t.querySelector(`${o??""} .FormField--invalid`);if(r===null)return;let i=r.querySelector(".FormField-focusTarget"),n=r.querySelector(".FormField-error"),a=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth";i!==null&&i.focus({preventScroll:!0}),i!==null&&i.scrollIntoView({block:"nearest",behavior:a}),n!==null&&n.scrollIntoView({block:"nearest",behavior:a})}})(jt||(jt={}));var Gi=y.branded("IsoDate").match(/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/,"must be an iso-8601 date in YYYY-MM-DD format"),or;(function(e){e.compare=I.builtinOf()})(or||(or={}));var Ie={...or,...Gi};var Yi=y.branded("IsoTimeS").match(/^([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,"must be an iso-8601 time in hh:mm:ss format"),rr;(function(e){e.getIsoTimeM=t=>ot.brand(t.slice(0,5)),e.compare=I.builtinOf()})(rr||(rr={}));var tt={...rr,...Yi};var Ki=y.branded("IsoTimeM").match(/^([0-1][0-9]|2[0-3]):[0-5][0-9]$/,"must be an iso-8601 time in hh:mm format"),nr;(function(e){e.padToIsoTimeS=t=>tt.brand(`${t}:00`),e.compare=I.builtinOf()})(nr||(nr={}));var ot={...nr,...Ki};var Ot;(function(e){e.brand=F.brand,e.is=t=>Number.isInteger(t),e.fromEpochMillis=t=>Number.isInteger(t)?e.brand(t):null,e.toEpochMillis=t=>t,e.fromNumber=e.fromEpochMillis,e.toNumber=e.toEpochMillis,e.fromDate=t=>e.brand(t.getTime()),e.toDate=t=>new Date(t),e.now=()=>e.brand($.now().getTime()),e.epoch=e.brand(0),e.later=(t,o)=>e.brand(t+o),e.earlier=(t,o)=>e.brand(t-o),e.duration=(t,o)=>ve.brand(o-t),e.equal=T.equal,e.compare=T.compare})(Ot||(Ot={}));ee.typed(Ot);var ir=Y.fromBase("Instant",Ot,"must be a unix time in milliseconds");var Cn=y.branded("IsoDateTimeS").match(/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,"must be an iso-8601 datetime in YYYY-MM-DD'T'hh:mm:ss format"),sr;(function(e){e.fromIsoDateAndTime=(t,o)=>Cn.brand(`${t}T${o}`),e.toIsoDateAndTime=t=>[e.getIsoDate(t),e.getIsoTimeS(t)],e.getIsoDate=t=>Ie.brand(t.slice(0,10)),e.getIsoTimeS=t=>tt.brand(t.slice(11)),e.getIsoDateTimeM=t=>rt.brand(t.slice(0,16)),e.padToIsoTimestampF=t=>vo.brand(`${t}.000Z`),e.localFromDate=t=>Rt.brand([T.intDigits(t.getFullYear(),4),"-",T.intDigits(t.getMonth()+1,2),"-",T.intDigits(t.getDate(),2),"T",T.intDigits(t.getHours(),2),":",T.intDigits(t.getMinutes(),2),":",T.intDigits(t.getSeconds(),2)].join("")),e.localToDate=t=>new Date(parseInt(t.substring(0,4)),parseInt(t.substring(5,7))-1,parseInt(t.substring(8,10)),parseInt(t.substring(11,13)),parseInt(t.substring(14,16)),parseInt(t.substring(17,19))),e.compare=I.builtinOf()})(sr||(sr={}));var Rt={...sr,...Cn};var jn=y.branded("IsoDateTimeM").match(/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]$/,"must be an iso-8601 datetime in YYYY-MM-DD'T'hh:mm format"),ar;(function(e){e.fromIsoDateAndTime=(t,o)=>jn.brand(`${t}T${o}`),e.toIsoDateAndTime=t=>[e.getIsoDate(t),e.getIsoTimeM(t)],e.getIsoDate=t=>Ie.brand(t.slice(0,10)),e.getIsoTimeM=t=>ot.brand(t.slice(11)),e.padToIsoDateTimeS=t=>Rt.brand(`${t}:00`),e.padToIsoTimestampF=t=>vo.brand(`${t}:00.000Z`),e.localFromDate=t=>rt.brand([T.intDigits(t.getFullYear(),4),"-",T.intDigits(t.getMonth()+1,2),"-",T.intDigits(t.getDate(),2),"T",T.intDigits(t.getHours(),2),":",T.intDigits(t.getMinutes(),2)].join("")),e.localToDate=t=>new Date(parseInt(t.substring(0,4)),parseInt(t.substring(5,7))-1,parseInt(t.substring(8,10)),parseInt(t.substring(11,13)),parseInt(t.substring(14,16))
1),e.compare=I.builtinOf()})(ar||(ar={}));var rt={...ar,...jn};var On=y.branded("IsoTimestampF").match(/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\.\d{3}Z$/,"must be an iso-8601 datetime in YYYY-MM-DD'T'hh:mm:ss.sss'Z' format"),lr;(function(e){e.fromDate=t=>On.brand(t.toISOString()),e.toDate=t=>new Date(t),e.epoch=e.fromDate($.epoch),e.now=()=>e.fromDate($.now()),e.fromInstant=d.andThen(ir.toDate,e.fromDate),e.toInstant=d.andThen(e.toDate,ir.fromDate),e.getIsoDateTimeM=t=>rt.brand(t.substring(0,16)),e.getIsoDateTimeS=t=>Rt.brand(t.substring(0,19)),e.getIsoDate=t=>Ie.brand(t.substring(0,10)),e.getIsoTimeM=t=>ot.brand(t.substring(11,16)),e.getIsoTimeS=t=>tt.brand(t.substring(11,19)),e.laterOffset=(t,o)=>e.fromDate($.utc.later(e.toDate(t),o)),e.earlierOffset=(t,o)=>e.fromDate($.utc.earlier(e.toDate(t),o)),e.compare=I.builtinOf()})(lr||(lr={}));var vo={...lr,...On};var Xi=Y.fromBase("Duration",ve,"must be a time difference in milliseconds"),mr;(function(e){e.validateUnitString=t=>g.fromNullable(ve.fromUnitString(t))("must be a number followed by a unit of d, h, m, s or ms")})(mr||(mr={}));var Rn={...mr,...Xi};var Le;(function(e){e.normalized=r=>e.isNormal(r)?r:null,e.isNormal=r=>e.equal(r,e.utc.normalize(r)),e.weekdayName=r=>$.utc.weekdayName(e.utc.toDate(r)),e.equal=(r,i)=>r.year===i.year&&r.month===i.month&&r.day===i.day&&r.hour===i.hour&&r.minute===i.minute&&r.second===i.second&&r.milli===i.milli,e.compare=(r,i)=>r.year<i.year?-1:r.year>i.year?1:r.month<i.month?-1:r.month>i.month?1:r.day<i.day?-1:r.day>i.day?1:r.hour<i.hour?-1:r.hour>i.hour?1:r.minute<i.minute?-1:r.minute>i.minute?1:r.second<i.second?-1:r.second>i.second?1:r.milli<i.milli?-1:r.milli>i.milli?1:0,e.floorTo=(r,i)=>({milli:["milli"].includes(i)?r.milli:0,second:["second","milli"].includes(i)?r.second:0,minute:["minute","second","milli"].includes(i)?r.minute:0,hour:["hour","minute","second","milli"].includes(i)?r.hour:0,day:["day","hour","minute","second","milli"].includes(i)?r.day:0,month:["month","day","hour","minute","second","milli"].includes(i)?r.month:0,year:["year","month","day","hour","minute","second","milli"].includes(i)?r.year:0}),e.later=(r,i)=>t(r,re.fromPartial(i)),e.earlier=(r,i)=>t(r,re.negate(re.fromPartial(i)));let t=(r,i)=>e.utc.normalize({year:r.year+i.years,month:r.month+i.months,day:r.day+i.days,hour:r.hour+i.hours,minute:r.minute+i.minutes,second:r.second+i.seconds,milli:r.milli+i.millis}),o=(r,i)=>({fromDate:r,toDate:i,normalize:n=>r(i(n))});e.local=o(r=>({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),milli:r.getMilliseconds()}),r=>{if(r.year>=100)return new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.milli);{let i=new Date;return i.setFullYear(r.year),i.setMonth(r.month-1,r.day),i.setHours(r.hour),i.setMinutes(r.minute),i.setSeconds(r.second),i.setMilliseconds(r.milli),i}}),e.utc=o(r=>({year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),milli:r.getUTCMilliseconds()}),r=>{if(r.year>=100)return new Date(Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.milli));{let i=new Date;return i.setUTCFullYear(r.year),i.setUTCMonth(r.month-1,r.day),i.setUTCHours(r.hour),i.setUTCMinutes(r.minute),i.setUTCSeconds(r.second),i.setUTCMilliseconds(r.milli),i}})})(Le||(Le={}));var de;(function(e){e.fromIsoDate=t=>{let o=t.split(/[^\d]+/);if(o.length!==3)throw new Error(`unexpected iso date ${t}`);let[r,i,n]=o.map(s=>parseInt(s));return{day:n,month:i,year:r}},e.toIsoDate=t=>Ie.brand([T.intDigits(t.year,4),T.intDigits(t.month,2),T.intDigits(t.day,2)].join("-")),e.ofDateTime=t=>({year:t.year,month:t.month,day:t.day}),e.padToDateTime=t=>({year:t.year,month:t.month,day:t.day,hour:0,minute:0,second:0,milli:0}),e.utc={fromDate:t=>e.ofDateTime(Le.utc.fromDate(t)),toDate:t=>Le.utc.toDate(e.padToDateTime(t))},e.local={fromDate:t=>e.ofDateTime(Le.local.fromDate(t)),toDate:t=>Le.local.toDate(e.padToDateTime(t))},e.equal=(t,o)=>t.year===o.year&&t.month===o.month&&t.day===o.day,e.compare=I.joinN(I.contraMap(T.compare)(t=>t.year),I.contraMap(T.compare)(t=>t.month),I.contraMap(T.compare)(t=>t.day))})(de||(de={}));var xo;(function(e){e.fromIsoWeek=t=>{let o=t.split("-W"),r=parseInt(o[0]),i=parseInt(o[1]);return{year:r,week:i}},e.toIsoWeek=t=>Bn.brand(`${T.intDigits(t.year,4)}-W${T.intDigits(t.week,2)}`),e.ofGregorian=t=>{let o=de.utc.toDate(t),r=$.utc.later(o,{days:4-$.utc.weekdayNumber(o)}),i=r.getUTCFullYear();if(i>t.year)return{year:i,week:1};if(i<t.year)return{year:i,week:e.numberInYear(i)};{let n=de.utc.toDate({day:1,month:1,year:i}),s=$.utc.later(n,{days:(11-$.utc.weekdayNumber(n))%7}),a=(r.getTime()-s.getTime())/Rn.day/7,l=Math.round(a)+1;return{year:i,week:l}}},e.asGregorianRange=t=>{let r=de.utc.toDate({day:1,month:1,year:t.year}),i=de.utc.toDate({day:4,month:1,year:t.year}),n=t.week*7+1-($.utc.weekdayNumber(i)+4),s=$.utc.later(r,{days:n}),a=$.utc.later(s,{days:6});return{start:de.utc.fromDate(s),end:de.utc.fromDate(a)}},e.numberInYear=t=>{let o=de.utc.toDate({year:t,month:1,day:1}),r=de.utc.toDate({year:t,month:12,day:31}),i=$.utc.weekdayNumber(o),n=$.utc.weekdayNumber(r);return i===4||n===4?53:52},e.equal=(t,o)=>t.year===o.year&&t.week===o.week,e.compare=I.concat(I.contraMap(T.compare)(t=>t.year),I.contraMap(T.compare)(t=>t.week))})(xo||(xo={}));var Ji=e=>{if(!/^\d{4}-W(0[1-9]|[1-4][0-9]|5[0-3])$/.test(e))return!1;let o=e.split("-W"),r=parseInt(o[0]),i=parseInt(o[1]),n=xo.numberInYear(r);return!(i>n)},Ai=y.branded("IsoWeek").test(Ji,"must be an iso-8601 calendar week in YYYY-'W'WW format"),cr;(function(e){e.compare=I.builtinOf()})(cr||(cr={}));var Bn={...cr,...Ai};var wh=Q.rebrand("Hour").between(0,23);var qh=Q.rebrand("Minute").between(0,59);var zh=Q.rebrand("Second").between(0,59);var nt=sn.rebrand("DayInterval"),ur;(function(e){e.zero=nt.brand(0),e.one=nt.brand(1),e.negate=t=>nt.brand(-t),e.add=(t,o)=>nt.brand(t+o),e.subtract=(t,o)=>nt.brand(t-o)})(ur||(ur={}));var jh={...ur,...nt};var Pn=Ae.rebrand("TimezoneName"),pr;(function(e){e.utc=Pn.brand("UTC")})(pr||(pr={}));var Bh={...pr,...Pn};var dr=e=>J.of({initial:e,required:!0,restricted:!1,parse:t=>t?k.right(null):k.left("missing"),unparse:d.identity});var Ln=e=>J.of({initial:e,required:!1,restricted:!1,parse:ie.noProblem,unparse:d.identity});var Bt=e=>J.of({initial:e,required:!1,restricted:!1,parse:ie.noneIsMissing,unparse:t=>h.some(t)});var _o=e=>J.unrestricted(e),Pt=e=>t=>J.of({initial:t,required:!1,restricted:!0,parse:o=>ie.nullIsInvalid(e.fromString(o)),unparse:o=>o!==null?e.toString(o):""});var bo=e=>t=>J.of({initial:t,required:!0,restricted:!0,parse:o=>o===""?k.left("missing"):ie.nullIsInvalid(e.fromString(o)),unparse:o=>o!==null?e.toString(o):""});var yo;(function(e){e.fromFunction=t=>({concat:t})})(yo||(yo={}));var $e;(function(e){e.of=r=>({choices:r,label:i=>o(r,i).label,key:i=>o(r,i).key,model:i=>t(r,i).model}),e.append=r=>i=>e.concat(r,e.single(i)),e.prepend=r=>i=>e.concat(e.single(i),r),e.concat=(r,i)=>e.of([...r.choices,...i.choices]),e.single=r=>e.of([r]);let t=(r,i)=>h.unsafeGet(_.find(r)(n=>n.key===i)),o=(r,i)=>h.unsafeGet(_.find(r)(n=>n.model===i));e.semigroup=()=>yo.fromFunction(e.concat)})($e||($e={}));var st=et.of({title:Bt(W.brand("")),gender:Bt(null),firstName:Pt(Ft)(Ft.brand("")),lastName:Pt(St)(St.brand("")),email:bo(Vo)(null),date:_o(""),notes:_o(""),privacy:dr(!1)}),_e=et.of({title:Bt(W.brand("")),gender:Bt(null),firstName:Pt(Ft)(Ft.brand("")),lastName:Pt(St)(St.brand("")),email:bo(Vo)(null),notes:_o(""),contactWay:Ln("email"),privacy:dr(!1)}),We=et.of({phone:bo(bn)(null)}),$n=e=>$e.of([{key:"telephone",model:"telephone",label:e.meeting.contactWay.phone},{key:"video",model:"video",label:e.meeting.contactWay.video},{key:"email",model:"email",label:e.meeting.contactWay.email}]),it;(function(e){e.initial=t=>({open:null,routeName:null,pageInfo:t,inquiry:{data:st.initial(),state:"form"},meeting:{data:{general:_e.initial(),phone:We.initial()},state:"form"}}),e.extractMeetingData=t=>{let o=_e.extract(t.meeting.data.general);return t.meeting.data.general.contactWay.value==="telephone"?h.object({general:o,phone:We.extract(t.meeting.data.phone)}):h.object({general:o,phone:h.some({phone:""})})}})(it||(it={}));var S;(function(e){e.classes=(...t)=>t.filter(o=>o!==!1&&o!==!0&&o!==null&&o!==void 0).join(" ")})(S||(S={}));var Wn=Ge(E.empty()),Nn=Wn.Provider,Hn=()=>Ye(Wn);var fr={brand:F.brand};var To;(function(e){e.of=()=>o=>{let r=we.unsafeTypedFromEntries(we.unsafeTypedKeys(o).map(a=>[a,fr.brand(a)])),i=t(o),n=a=>{let l=a===Un?E.ofN(Un):E.of(a.roles);return E.flatMap(l)(i)};return{permissions:r,availablePermissions:n,accessAllowed:a=>l=>n(a).has(l)}};let t=o=>{let r=we.unsafeTypedEntries(o).flatMap(([s,a])=>a.map(l=>[l,s])),i=_.multiMapThen(r)(d.identity)(s=>_.mappedSet(s)(fr.brand));return s=>i.get(s)??E.empty()}})(To||(To={}));var Un=Symbol("Unauthenticated");var{permissions:me,availablePermissions:Zn,accessAllowed:ov}=To.of()({useBooking:["customer"],useWebsite:["customer"]}),rv=Oe.of("customer");var Gn=Ge("de"),Yn=Gn.Provider,at=()=>Ye(Gn);var Kn=Ge(Qe.of.de),Xn=Kn.Provider,A=()=>Ye(Kn);var wo;(function(e){e.isScalar=t=>t===null||typeof t!="object",e.isArray=t=>Array.isArray(t),e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),e.parse=t=>{try{return k.right(JSON.parse(t))}catch(o){if(o instanceof SyntaxError)return k.left(o);throw o}},e.unsafeParse=t=>JSON.parse(t),e.stringify=(t,o)=>JSON.stringify(t,null,o),e.deepEqual=(t,o)=>{if(t===o)return!0;
1if(t===null||o===null||typeof t!="object"||typeof o!="object")return!1;if(Array.isArray(t)&&Array.isArray(o)){let r=t,i=o;if(r.length!==i.length)return!1;for(let n=0;n<r.length;n++)if(!e.deepEqual(r[n],i[n]))return!1;return!0}else if(!Array.isArray(t)&&!Array.isArray(o)){let r=Object.keys(t),i=Object.keys(o);if(r.length!==i.length)return!1;let n=t,s=o;for(let a of r)if(!Object.prototype.hasOwnProperty.call(o,a)||!e.deepEqual(n[a],s[a]))return!1;return!0}return!1},e.sortKeys=t=>{if(e.isArray(t))return t.map(e.sortKeys);if(e.isObject(t)){let o={},r=Object.keys(t);r.sort();for(let i of r)o[i]=e.sortKeys(t[i]);return o}else return t}})(wo||(wo={}));var Dt;(function(e){e.fullString=(t,o,r)=>{let i=e.pairs(t),n=r==="sorted"?e.sortPairs(i):r==="unsorted"?i:d.impossible(r),s=o==="never"?!1:o==="always"?!0:o==="non-empty"?n.length!==0:d.impossible(o);return e.questionMark(s)+e.render(n)},e.string=t=>e.render(e.pairs(t)),e.pairs=t=>{let o=[];for(let[r,i]of Object.entries(t)){let n=Array.isArray(i)?[...i]:[i];for(let s of n)s!==null&&o.push([r,s.toString()])}return o},e.sortPairs=t=>_.sortByWith(t)(([o,r])=>o)(L.compare),e.questionMark=t=>t?"?":"",e.render=t=>e.joinPairs(t.map(e.renderPair)),e.joinPairs=t=>t.join("&"),e.renderPair=([t,o])=>encodeURIComponent(t)+"="+encodeURIComponent(o)})(Dt||(Dt={}));var Jn=Je.create("Server");var An=e=>Vn("/api/inquiry",e),En=e=>Vn("/api/meeting",e);var Qn=e=>Vi("/api/routename",e);var hr=new Map,Vi=(e,t)=>new Promise((o,r)=>{let i=e+Dt.fullString(t,"non-empty","sorted");hr.has(i)?o(hr.get(i)):es(e,t).then(n=>{hr.set(i,n),o(n)}).catch(n=>r(n))}),es=(e,t)=>new Promise((o,r)=>{let i=e+Dt.fullString(t,"non-empty","unsorted"),n=new XMLHttpRequest;n.open("GET",i,!0),n.onload=()=>{n.status>=200&&n.status<400?o(JSON.parse(n.responseText)):(Jn.error(`Request Failed with status ${n.status}: ${n.toString()}`),r(n))},n.onerror=()=>{Jn.error(`Request Failed: ${n.toString()}`),r(n)},n.send()}),Vn=(e,t)=>new Promise((o,r)=>{let i=new XMLHttpRequest;i.open("POST",e,!0),i.onreadystatechange=()=>{i.readyState>=4&&(i.status===200?o(JSON.parse(i.responseText)):r(i))},i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type","application/json; charset=UTF-8"),i.send(wo.stringify(t))});var Io=e=>{};var xr=Je.create("floater-actions"),ei=Ke.notInstalled(),ti=e=>{ei=e},ce=e=>ei(e),Ne=Ve.on(),oi=Ne.atKey("open"),ri=Ne.atKey("inquiry").atKey("data"),gr=Ne.atKey("inquiry").atKey("state"),ni=Ne.atKey("meeting").atKey("data").atKey("general"),_r=Ne.atKey("meeting").atKey("data").atKey("phone"),vr=Ne.atKey("meeting").atKey("state"),He=(e,t)=>{Io({action:`${e}-toggledialog`,category:e,label:t==="attached"?`${e}-floaterbutton`:`${e}-pagebutton`,value:1}),ce(oi.mod(o=>o===null||o.content!==e?{content:e,display:t}:null))},lt=()=>ce(oi.set(null)),ii=async(e,t)=>{try{let o=await Qn({lang:e,id:t});ce(Ne.atKey("routeName").set(o.name))}catch(o){xr.error("Could not fetch routeName, ",o)}},si=d.andThen(ri.mod,ce),ai=e=>ce(t=>h.cata(rs(e,t))(()=>(window.setTimeout(()=>jt.exposeFirstError(document),100),ri.mod(st.touch)),o=>(ns(o),gr.set("enroute")))(t)),rs=(e,t)=>h.map(st.extract(t.inquiry.data))(o=>({lang:e,email:o.email,gender:o.gender,title:o.title,firstName:o.firstName,lastName:o.lastName,date:o.date,notes:o.notes,privacy:"",territoryId:t.pageInfo.type==="territory"?t.pageInfo.territoryId:null,regionId:t.pageInfo.type==="region"?t.pageInfo.regionId:null,routeId:t.pageInfo.type==="region"||t.pageInfo.type==="route"?t.pageInfo.routeId:null,url:window.location.href})),ns=async e=>{try{let t=await An(e);Io({action:"inquiry-submit",category:"inquiry",label:e.url,value:10}),ce(gr.set(t.return))}catch(t){xr.error("caught",t),ce(gr.set("error"))}},li=e=>{ce(t=>{let o=ni.mod(e)(t),r=h.unsafeGet(_e.fields.contactWay.extract(t.meeting.data.general.contactWay)),i=h.unsafeGet(_e.fields.contactWay.extract(o.meeting.data.general.contactWay));return r!==i?_r.mod(We.untouch)(o):o})},mi=d.andThen(_r.mod,ce),ko=e=>ce(t=>h.cata(is(e,t))(()=>(window.setTimeout(()=>jt.exposeFirstError(document),100),d.andThen(ni.mod(_e.touch),_r.mod(We.touch))),o=>(ss(o),vr.set("enroute")))(t)),is=(e,t)=>h.map(it.extractMeetingData(t))(o=>({lang:e,email:o.general.email,title:o.general.title,gender:o.general.gender,firstName:o.general.firstName,lastName:o.general.lastName,phone:o.phone.phone,notes:o.general.notes,contactWay:o.general.contactWay,territoryId:t.pageInfo.type==="territory"?t.pageInfo.territoryId:null,regionId:t.pageInfo.type==="region"?t.pageInfo.regionId:null,routeId:t.pageInfo.type==="region"||t.pageInfo.type==="route"?t.pageInfo.routeId:null,privacy:""})),ss=async e=>{try{let t=await En(e);Io({action:"meeting-submit",category:"meeting",label:e.contactWay,value:10}),ce(vr.set(t.return))}catch(t){xr.error("caught",t),ce(vr.set("error"))}};var ci=()=>console.warn("action not allowed");var ui={accessAllowed:(e,t)=>t===ls||e.has(t)},ls=Symbol("GuiOnly");var pi=e=>ui.accessAllowed(Hn(),e);var ms=e=>e.layout!=="always-label",qo=e=>c("span",{class:S.classes("Decor",`Decor--style-${e.style}`,`Decor--size-${e.size??"normal"}`,`Decor--layout-${e.layout}`,["always-both","keep-label","keep-icon","switch"].includes(e.layout)&&"Decor--content-both"),title:cs(e.label,e.hint),children:[ms(e)&&c("span",{class:S.classes("Decor-icon","fa",e.icon)}),c("span",{class:"Decor-label",children:e.label}),e.hint!==void 0&&c("span",{class:"Decor-hint",children:e.hint})]}),cs=(e,t)=>[e.toString(),t??""].filter(o=>o!=="").join(` 2 3`);var ue=e=>{let{customClass:t,enabled:o,permission:r,action:i}=e,n=pi(r)&&(o??!0);return c("button",{type:"button",class:S.classes("Button","Decorated","interactive",t),onClick:n?s=>{i(),s.stopPropagation()}:ci,disabled:!n,children:c(qo,{...e})})};var se=({width:e,children:t})=>c("div",{class:S.classes("ButtonBar",`ButtonBar--width-${e}`),children:t});var ae=e=>{let{href:t,customClass:o}=e;return c("a",{class:S.classes("ExternalLink","Decorated","interactive",o),href:t,target:"_blank",children:c(qo,{...e})})};var mt=({customClass:e,children:t})=>c("div",{class:S.classes("FormWrapper",e),children:t});var N=({customClass:e,children:t})=>c("div",{class:S.classes("FormRow",e),children:t});var V=({type:e,customClass:t,children:o})=>c("div",{class:S.classes("FormCell",`FormCell--${e}`,t),children:o});var be=({forId:e,problem:t,missing:o,invalid:r})=>c("output",{class:"FormField-error",for:e,children:us(t,o,r)}),us=(e,t,o)=>e===null?"":e==="missing"?t:e==="invalid"?o:d.impossible(e);
3var ct=({label:e,hint:t,placeholder:o,missing:r,invalid:i,schema:n,model:s,onEdit:a,requestFocus:l,customClass:m})=>{let p=xe(),u=to(null);return eo(()=>{l===!0&&u.current?.focus()},[l]),c("div",{class:S.classes("FormField","FormField--area",n.required&&"FormField--required",n.showError(s)&&"FormField--invalid",m),children:[c("label",{class:"FormField-label input-label",for:p,children:e}),c("div",{class:"FormField-wrapper",children:[c("div",{class:"FormField-editor",children:[c("textarea",{id:p,ref:u,class:"FormField-focusTarget FormField-error-outline input-textarea",placeholder:o,required:n.required,value:s.value,onInput:f=>a({value:f.currentTarget.value,touching:!1}),onChange:f=>a({value:f.currentTarget.value,touching:!0}),autocomplete:"off",spellcheck:!1}),(n.required||n.restricted)&&c(be,{forId:p,problem:n.problem(s),missing:r,invalid:i})]}),le.is(t)&&c("div",{class:"FormField-hint",children:t})]})]})};var ut=({label:e,missing:t,invalid:o,schema:r,model:i,onEdit:n,customClass:s})=>{let a=xe();return c("div",{class:S.classes("FormField","FormField--checkbox",r.required&&"FormField--required",r.showError(i)&&"FormField--invalid",s),children:c("div",{class:"FormField-editor input-checkbox-wrapper",children:[c("input",{id:a,class:"FormField-focusTarget FormField-error-outline input-checkbox",type:"checkbox",required:r.required,checked:i.value,onChange:l=>n({value:l.currentTarget.checked,touching:!0}),autocomplete:"off"}),(r.required||r.restricted)&&c(be,{forId:a,problem:r.problem(i),missing:t,invalid:o}),c("label",{class:"input-checkbox-label",for:a,children:e})]})})};var oe=({type:e,label:t,hint:o,placeholder:r,missing:i,invalid:n,schema:s,model:a,onEdit:l,requestFocus:m,customClass:p})=>{let u=xe(),f=to(null);return eo(()=>{m===!0&&f.current?.focus()},[m]),c("div",{class:S.classes("FormField","FormField--text",s.required&&"FormField--required",s.showError(a)&&"FormField--invalid",p),children:[c("label",{class:"FormField-label input-label",for:u,children:t}),c("div",{class:"FormField-editor",children:[c("input",{ref:f,id:u,class:"FormField-focusTarget FormField-error-outline input-text",type:e,placeholder:r,required:s.required,value:a.value,onInput:x=>l({value:x.currentTarget.value,touching:!1}),onChange:x=>l({value:x.currentTarget.value,touching:!0}),autocomplete:"off",spellcheck:!1}),(s.required||s.restricted)&&c(be,{forId:u,problem:s.problem(a),missing:i,invalid:n})]}),le.is(o)&&c("div",{class:"FormField-hint",children:o})]})};var ke=({label:e,hint:t,placeholder:o,missing:r,invalid:i,choices:n,schema:s,model:a,onEdit:l,customClass:m})=>{let p=xe();return c("div",{class:S.classes("FormField","FormField--select",s.required&&"FormField--required",s.showError(a)&&"FormField--invalid",m),children:[c("label",{class:"FormField-label input-label",for:p,children:e}),c("div",{class:"FormField-wrapper",children:[c("div",{class:"FormField-editor input-select-wrapper",children:[c("select",{id:p,class:"FormField-focusTarget FormField-error-outline input-select",required:s.required,value:br(n,a.value),onChange:u=>l({value:ps(n,u.currentTarget.value),touching:!0}),autocomplete:"off",children:[s.required&&c("option",{value:br(n,h.none()),children:o}),n.choices.map(u=>c("option",{value:br(n,h.some(u.model)),children:u.label}))]}),c("div",{class:"fa fa-caret-down"}),(s.required||s.restricted)&&c(be,{forId:p,problem:s.problem(a),missing:r,invalid:i}
3)]}),le.is(t)&&c("div",{class:"FormField-hint",children:t})]})]})},br=(e,t)=>h.cata(t)(()=>"-",o=>"+"+e.key(o)),ps=(e,t)=>t==="-"?h.none():h.some(e.model(t.slice(1)));var pt=e=>$e.of([{key:"-",model:W.brand(""),label:""},...e.map((t,o)=>({key:o.toString(),model:t,label:t}))]),dt=e=>$e.of([{key:"u",model:null,label:e.u},{key:"m",model:"m",label:e.m},{key:"w",model:"w",label:e.w},{key:"d",model:"d",label:e.d}]);var pe=({text1:e,text2:t})=>{let o=A();return c("div",{class:"floater-headline",children:[c("h2",{class:"hl hl-3",children:[c("span",{class:"hl-text1",children:e}),t!==void 0&&t!==""&&c(he,{children:[c("span",{children:" "}),c("span",{class:"hl-text2",children:t})]})]}),c(ue,{label:o.util.close,icon:"fa-close",layout:"always-icon",style:"hoverinvert",permission:me.useWebsite,action:()=>lt()})]})};var Fo=()=>{let e=A();return c("div",{class:"floater-error",children:[c(pe,{text1:e.util.error.title}),c("p",{children:[e.util.error.text1," ",c(ae,{label:e.util.error.mail.text,layout:"always-label",style:"link",href:e.util.error.mail.href})," ",e.util.error.text2," ",c(ae,{label:e.util.error.tel.text,layout:"always-label",style:"link",href:e.util.error.tel.href})]}),c("div",{class:"signature",children:e.util.signature}),c(se,{width:"auto",children:c(ue,{label:e.util.close,layout:"always-label",style:"primary",permission:me.useWebsite,action:()=>lt()})})]})};var So=({conversionType:e})=>{let t=A();return c("div",{class:S.classes("floater-success",e),children:[c(pe,{text1:t.util.success.title}),c("p",{children:t.util.success.text}),c("div",{class:"signature",children:t.util.signature}),c(se,{width:"auto",children:c(ue,{label:t.util.close,layout:"always-label",style:"primary",permission:me.useWebsite,action:()=>lt()})})]})};var di=({data:e,state:t,routeName:o,pageInfo:r,modifyInquiryForm:i})=>{let n=st.editorProps(e,i),s=at(),a=A();return c("div",{class:"floater-dialog inquiry",children:[t==="error"&&c(Fo,{}),t==="ok"&&c(So,{conversionType:"conversion-inquiry"}),t==="form"&&c(mt,{children:[c(pe,{text1:a.app.inquiry1,text2:a.app.inquiry2}),c("div",{class:"floater-dialog-intro",children:c("p",{children:(r.type==="route"||r.type==="region")&&o!==null?`${a.inquiry.introRoute} "${o}". `:a.inquiry.introGeneral})}),c(N,{children:c(oe,{customClass:"conversion-mail conversion-mail-inquiry",type:"email",missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,label:a.form.email.label,placeholder:a.form.email.placeholder,...n.email})}),c(N,{children:[c(V,{type:"equal",children:c(ke,{label:a.form.t
3itle.label,missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,choices:pt(a.form.title.choices),...n.title})}),c(V,{type:"equal",children:c(ke,{label:a.form.gender.label,missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,choices:dt(a.form.gender.choices),...n.gender})})]}),c(N,{children:[c(V,{type:"equal",children:c(oe,{type:"text",missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,label:a.form.firstName,placeholder:"",...n.firstName})}),c(V,{type:"equal",children:c(oe,{type:"text",missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,label:a.form.lastName,placeholder:"",...n.lastName})})]}),c(N,{children:c(oe,{type:"text",missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,label:a.inquiry.date.label,placeholder:a.inquiry.date.placeholder,...n.date})}),c(N,{children:c(ct,{label:a.inquiry.notes.label,missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,placeholder:a.inquiry.notes.placeholder,...n.notes})}),c(N,{children:c(ut,{label:c("span",{children:[a.form.privacyAgreement.pre,c(ae,{label:a.form.privacyAgreement.link.text,layout:"always-label",style:"link",href:a.form.privacyAgreement.link.href}),a.form.privacyAgreement.post]}),missing:a.form.fieldRequired,invalid:a.form.fieldInvalid,...n.privacy})}),c(se,{width:"auto",children:c(ue,{label:a.inquiry.submitLabel,layout:"always-label",style:"primary",permission:me.useWebsite,action:()=>ai(s)})})]})]})};var fi={offer:"offer",planner:"planner"};var hi=({pageInfo:e})=>{let t=A(),o=e.type==="territory"?`?territory=${e.territoryId}`:e.type==="region"?`?region=${e.regionId}`:e.type==="route"?`?exampleRouteId=${e.routeId}`:"",r=`/${t.planner.wordpressBase}/${fi.planner}/${o}`;return c("div",{class:"floater-dialog planner",children:[c(pe,{text1:t.app.planner1,text2:t.app.planner2}),c("div",{class:"floater-columns",children:[c("div",{class:"floater-col-1",children:c("img",{class:"floater-image",src:"/img/floater/planner-example.png",alt:t.planner.imgAlt})}),c("div",{class:"floater-col-2",children:[c("div",{class:"floater-p-wrapper",children:[c("p",{children:t.planner.text1}),c("p",{children:t.planner.text2}),c("p",{class:"floater-p-emphasis",children:t.planner.text3})]}),c(se,{width:"full",children:c(ae,{label:t.planner.linkLabel,layout:"always-label",style:"primary",href:r})})]})]}),c("div",{class:"floater-columns-mobile",children:[c("img",{class:"floater-image-mobile",src:"/img/floater/planner-example-mobile.png",alt:""}),c("div",{class:"floater-p-wrapper-mobile",children:[c("p",{children:t.planner.textmobile1}),c("p",{children:t.planner.textmobile2})]}),c(se,{width:"full",children:c(ae,{label:t.planner.linkLabel,layout:"always-label",style:"primary",href:r})})]})]})};var gi=({label:e,missing:t,invalid:o,choices:r,schema:i,model:n,onEdit:s,customClass:a})=>{let l=xe();return c("div",{role:"radiogroup","aria-labelledby":l,class:S.classes("FormField","FormField--radio",i.required&&"FormField--required",i.showError(n)&&"FormField--invalid",a),children:[c("div",{class:"FormField-label input-label",id:l,children:e}),c("div",{class:"FormField-editor",children:[c("button",{type:"button",class:"FormField-focusTarget FormField-focusSink"}),r.choices.map(m=>c("div",{class:"input-radio-wrapper",children:[c("input",{id:l+"-"+m.key,class:"input-radio",type:"radio",required:i.required,value:m.key,checked:n.value===m.model,onChange:()=>s({value:m.model,touching:!0}),autocomplete:"off"}),c("label",{class:"input-radio-label",for:l+"-"+m.key,children:m.label})]})),(i.required||i.restricted)&&c(be,{forId:l,problem:i.problem(n),missing:t,invalid:o})]})]})};var vi=({data:e,modifyGeneral:t,modifyPhone:o})=>{let r=_e.editorProps(e.general,t),i=We.editorProps(e.phone,o),n=at(),s=A();return c(mt,{children:[c(pe,{text1:s.app.meeting1,text2:s.app.meeting2}),c("div",{class:"floater-dialog-intro",children:s.meeting.intro}),c(N,{children:c(gi,{label:s.meeting.contactWay.label,missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,choices:$n(s),...r.contactWay})}),c(N,{children:c(oe,{customClass:"conversion-mail conversion-mail-meeting",type:"email",missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,label:s.form.email.label,placeholder:s.form.email.placeholder,...r.email})}),c(N,{children:[c(V,{type:"equal",children:c(ke,{label:s.form.title.label,missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,choices:pt(s.form.title.choices),...r.title})}),c(V,{type:"equal",children:c(ke,{label:s.form.gender.label,missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,choices:dt(s.form.gender.choices),...r.gender})})]}),c(N,{children:[c(V,{type:"equal",children:c(oe,{type:"text",missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,label:s.form.firstName,placeholder:"",...r.firstName})}),c(V,{type:"equal",children:c(oe,{type:"text",missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,label:s.form.lastName,placeholder:"",...r.lastName})})]}),e.general.contactWay.value==="telephone"&&c(N,{children:c(oe,{type:"tel",missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,label:s.form.phone.label,placeholder:s.form.phone.placeholder,...i.phone})}),c(N,{children:c(ct,{label:s.meeting.notes.label,missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,placeholder:s.meeting.notes.placeholder,...r.notes})}),c(N,{children:c(ut,{label:c("span",{children:[s.form.privacyAgreement.pre,c(ae,{label:s.form.privacyAgreement.link.text,layout:"always-label",style:"link",href:s.form.privacyAgreement.link.href}),s.form.privacyAgreement.post]}),missing:s.form.fieldRequired,invalid:s.form.fieldInvalid,...r.privacy})}),c(se,{width:"auto",children:c(ue,{label:s.meeting.submitLabelOld,layout:"always-label",style:"primary",permission:me.useWebsite,action:()=>ko(n)})})]})};var xi=({data:e,modifyGeneral:t})=>{let o=_e.editorProps(e.general,t),r=at(),i=A();return c(he,{children:[c(pe,{text1:i.app.meeting1,text2:i.app.meeting2}),c("div",{children:i.meeting.intro}),c("div",{class:"floater-meeting-layout",children:[c("div",{class:"floater-meeting-layout-cell floater-meeting-booking",children:[c("img",{class:"floater-meeting-booking-image",src:"/img/floater/online-meeting.svg",alt:""}),c(ae,{label:i.meeting.booking.text,layout:"always-label",style:"primary",href:i.meeting.booking.href})]}),c("div",{class:"floater-meeting-layout-separator",children:[c("div",{class:"floater-meeting-layout-separator-line"}),c("div",{children:i.meeting.or}),c("div",{class:"floater-meeting-layout-separator-line"})]}),c("div",{class:"floater-meeting-layout-cell",children:c(mt,{children:[c(N,{children:c(oe,{customClass:"conversion-mail conversion-mail-meeting",type:"email",missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,label:i.form.email.label,placeholder:i.form.email.placeholder,...o.email})}),c(N,{children:[c(V,{type:"equal",children:c(ke,{label:i.form.title.label,missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,choices:pt(i.form.title.choices),...o.title})}),c(V,{type:"equal",children:c(ke,{label:i.form.gender.label,missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,choices:dt(i.form.gender.choices),...o.gender})})]}),c(N,{children:[c(V,{type:"equal",children:c(oe,{type:"text",missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,label:i.form.firstName,placeholder:"",...o.firstName})}),c(V,{type:"equal",children:c(oe,{type:"text",missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,label:i.form.lastName,placeholder:"",...o.lastName})})]}),c(N,{children:c(ct,{label:i.meeting.notes.label,missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,placeholder:i.meeting.notes.placeholder,...o.notes})}),c(N,{children:c(ut,{label:c("span",{children:[i.form.privacyAgreement.pre,c(ae,{label:i.form.privacyAgreement.link.text,layout:"always-label",style:"link",href:i.form.privacyAgreement.link.href}),i.form.privacyAgreement.post]}),missing:i.form.fieldRequired,invalid:i.form.fieldInvalid,...o.privacy})}),c(se,{width:"auto",children:c(ue,{label:i.meeting.submitLabelNew,layout:"always-label",style:"primary",permission:me.useWebsite,action:()=>ko(r)})})]})})]})]})};var _i=({data:e,state:t,modifyGeneral:o,modifyPhone:r})=>{let i=A();return c("div",{class:"floater-dialog meeting",children:[t==="error"&&c(Fo,{}),t==="ok"&&c(So,{conversionType:"conversion-meeting"}),t==="form"&&i.meeting.booking.href!==""&&c(xi,{data:e,modifyGeneral:o}),t==="form"&&i.meeting.booking.href===""&&c(vi,{data:e,modifyGeneral:o,modifyPhone:r})]})};var zo=({icon:e,text1:t,text2:o,open:r,action:i})=>c("button",{class:S.classes("floater-button",r&&"expanded"),onClick:i,children:[c("div",{class:`fa-light fa-${e}`}),c("div",{class:"floater-button-text",children:[c("div",{class:"floater-button-text-1",children:t}),c("div",{class:"floater-button-text-2",children:o})]})]});var bi=({languageCode:e,msg:t,model:o})=>c(Nn,{value:ds,children:c(Yn,{value:e,children:c(Xn,{value:t,children:c("div",{class:S.classes("floater-inner",o.open!==null&&"expanded",o.open!==null&&o.open.display),children:[c("div",{class:"floater-backdrop",children:c("div",{class:"floater-dialog-wrapper",children:[o.open!==null&&o.open.content==="inquiry"&&c(di,{data:o.inquiry.data,state:o.inquiry.state,routeName:o.routeName,pageInfo:o.pageInfo,modifyInquiryForm:si}),o.open!==null&&o.open.content==="planner"&&c(hi,{pageInfo:o.pageInfo}),o.open!==null&&o.open.content==="meeting"&&c(_i,{data:o.meeting.data,state:o.meeting.state,modifyGeneral:li,modifyPhone:mi})]})}),c("div",{class:"floater-buttonbar",children:[c("div",{class:"floater-start",children:c("div",{class:"floater-start-text",children:t.app.title})}),c(zo,{icon:"envelope",text1:t.app.inquiry1,text2:t.app.inquiry2,open:o.open!==null&&o.open.content==="inquiry",action:()=>He("inquiry","attached")}),c(zo,{icon:"magnifying-glass-location",text1:t.app.planner1,text2:t.app.planner2,open:o.open!==null&&o.open.content==="planner",action:()=>He("planner","attached")}),c(zo,{icon:"comments-question-check",text1:t.app.meeting1,text2:t.app.meeting2,open:o.open!==null&&o.open.content==="meeting",action:()=>He("meeting","attached")})]})]})})})}),ds=Zn({roles:["customer"]});var fs=()=>{let e=ro.valueOrDefault(document.documentElement.getAttribute("lang")),t=yn(),o=Qe.of[e],r=G.unsafeGet(document.querySelector("#floater")),i=Ke.install({container:r,initial:it.initial(t),component:n=>c(bi,{languageCode:e,msg:o,model:n})});ti(i),t.type==="route"&&t.routeId!==null&&ii(e,t.routeId),document.querySelectorAll(".js-open-meeting").forEach(n=>n.addEventListener("click",()=>He("meeting","centered"))),document.querySelectorAll(".js-open-inquiry").forEach(n=>n.addEventListener("click",()=>He("inquiry","centered")))};
3window.addEventListener("DOMContentLoaded",fs);})(); 4//# sourceMappingURL=index-4f489daaa97162070b70847ec969822abf85fc0a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.