Content inside supertokenslib
(The raw file follows this syntax highlighted file.)
(()=>{var hf=Object.defineProperty;var yf=(n,r)=>{for(var t in r)hf(n,t,{get:r[t],enumerable:!0})};var Cn={};yf(Cn,{F:()=>io,T:()=>uo,__:()=>fo,add:()=>br,addIndex:()=>so,addIndexRight:()=>co,adjust:()=>Vt,all:()=>Xt,allPass:()=>Jt,always:()=>Sr,and:()=>Gt,andThen:()=>Qi,any:()=>go,anyPass:()=>Yt,ap:()=>Gr,aperture:()=>xo,append:()=>$t,apply:()=>Yr,applySpec:()=>wo,applyTo:()=>Io,ascend:()=>bo,assoc:()=>Rr,assocPath:()=>$r,binary:()=>Ao,bind:()=>Zt,both:()=>Oo,call:()=>ee,chain:()=>ne,clamp:()=>Po,clone:()=>rt,collectBy:()=>Eo,comparator:()=>To,complement:()=>Ot,compose:()=>Wr,composeWith:()=>Wo,concat:()=>nt,cond:()=>No,construct:()=>Bo,constructN:()=>ue,converge:()=>fe,count:()=>Co,countBy:()=>Lo,curry:()=>ot,curryN:()=>S,dec:()=>jo,defaultTo:()=>at,descend:()=>Do,difference:()=>kt,differenceWith:()=>Rt,dissoc:()=>pe,dissocPath:()=>ce,divide:()=>qo,drop:()=>le,dropLast:()=>Fo,dropLastWhile:()=>Uo,dropRepeats:()=>zo,dropRepeatsBy:()=>Vo,dropRepeatsWith:()=>ut,dropWhile:()=>Xo,either:()=>Ko,empty:()=>he,endsWith:()=>Ho,eqBy:()=>Pt,eqProps:()=>Qo,equals:()=>B,evolve:()=>Zo,filter:()=>Zr,find:()=>Jo,findIndex:()=>Go,findLast:()=>Yo,findLastIndex:()=>$o,flatten:()=>ra,flip:()=>ve,forEach:()=>ta,forEachObjIndexed:()=>ea,fromPairs:()=>na,groupBy:()=>oa,groupWith:()=>aa,gt:()=>ia,gte:()=>ua,has:()=>fa,hasIn:()=>sa,hasPath:()=>xe,head:()=>ae,identical:()=>pa,identity:()=>pr,ifElse:()=>la,inc:()=>ma,includes:()=>Et,indexBy:()=>da,indexOf:()=>ha,init:()=>ya,innerJoin:()=>va,insert:()=>ga,insertAll:()=>xa,intersection:()=>_a,intersperse:()=>wa,into:()=>Ia,invert:()=>ba,invertObj:()=>Aa,invoker:()=>hr,is:()=>Kr,isEmpty:()=>Tt,isNil:()=>er,isNotNil:()=>Ie,join:()=>Oa,juxt:()=>be,keys:()=>D,keysIn:()=>Sa,last:()=>me,lastIndexOf:()=>ka,length:()=>Ae,lens:()=>Cr,lensIndex:()=>Ra,lensPath:()=>Pa,lensProp:()=>Ea,lift:()=>Er,liftN:()=>te,lt:()=>Ta,lte:()=>Wa,map:()=>L,mapAccum:()=>Na,mapAccumRight:()=>Ba,mapObjIndexed:()=>Wt,match:()=>Ca,mathMod:()=>La,max:()=>Q,maxBy:()=>ja,mean:()=>Re,median:()=>Da,memoizeWith:()=>Ma,mergeAll:()=>qa,mergeDeepLeft:()=>Fa,mergeDeepRight:()=>Pe,mergeDeepWith:()=>Ua,mergeDeepWithKey:()=>Lr,mergeLeft:()=>Nt,mergeRight:()=>Ee,mergeWith:()=>za,mergeWithKey:()=>ct,min:()=>Te,minBy:()=>Va,modify:()=>Xa,modifyPath:()=>We,modulo:()=>Ka,move:()=>Ha,multiply:()=>Ne,nAry:()=>Pr,negate:()=>Za,none:()=>Ja,not:()=>oe,nth:()=>J,nthArg:()=>Ga,o:()=>Ya,objOf:()=>we,of:()=>$a,omit:()=>ri,on:()=>ti,once:()=>ei,or:()=>de,otherwise:()=>ni,over:()=>Be,pair:()=>ai,partial:()=>ii,partialObject:()=>Qa,partialRight:()=>ui,partition:()=>fi,path:()=>fr,pathEq:()=>si,pathOr:()=>ci,pathSatisfies:()=>pi,paths:()=>Se,pick:()=>li,pickAll:()=>Ce,pickBy:()=>mi,pipe:()=>St,pipeWith:()=>ie,pluck:()=>mr,prepend:()=>Le,product:()=>di,project:()=>hi,promap:()=>yi,prop:()=>G,propEq:()=>vi,propIs:()=>gi,propOr:()=>xi,propSatisfies:()=>_i,props:()=>wi,range:()=>Ii,reduce:()=>X,reduceBy:()=>Nr,reduceRight:()=>De,reduceWhile:()=>bi,reduced:()=>Ai,reject:()=>Or,remove:()=>se,repeat:()=>Oi,replace:()=>Si,reverse:()=>et,scan:()=>Pi,sequence:()=>qe,set:()=>Ei,slice:()=>M,sort:()=>Ti,sortBy:()=>Wi,sortWith:()=>Ni,split:()=>Bi,splitAt:()=>Ci,splitEvery:()=>Li,splitWhen:()=>ji,splitWhenever:()=>Di,startsWith:()=>Mi,subtract:()=>qi,sum:()=>ke,swap:()=>Ui,symmetricDifference:()=>zi,symmetricDifferenceWith:()=>Vi,tail:()=>tt,take:()=>it,takeLast:()=>ye,takeLastWhile:()=>Xi,takeWhile:()=>Ki,tap:()=>jt,test:()=>Hi,thunkify:()=>Iu,times:()=>Me,toLower:()=>Zi,toPairs:()=>Ji,toPairsIn:()=>Gi,toString:()=>H,toUpper:()=>Yi,transduce:()=>$i,transpose:()=>ru,traverse:()=>tu,trim:()=>eu,tryCatch:()=>nu,type:()=>Ur,unapply:()=>ou,unary:()=>au,uncurryN:()=>iu,unfold:()=>uu,union:()=>fu,unionWith:()=>su,uniq:()=>ft,uniqBy:()=>_e,uniqWith:()=>Fe,unless:()=>cu,unnest:()=>Ue,until:()=>pu,unwind:()=>lu,update:()=>Oe,useWith:()=>je,values:()=>re,valuesIn:()=>mu,view:()=>du,when:()=>Mt,where:()=>ze,whereAny:()=>hu,whereEq:()=>Ve,without:()=>yu,xor:()=>vu,xprod:()=>gu,zip:()=>xu,zipObj:()=>_u,zipWith:()=>wu});var vf=function(){return!1},io=vf;var gf=function(){return!0},uo=gf;var fo={"@@functional/placeholder":!0};function T(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function p(n){return function r(t){return arguments.length===0||T(t)?r:n.apply(this,arguments)}}function f(n){return function r(t,o){switch(arguments.length){case 0:return r;case 1:return T(t)?r:p(function(a){return n(t,a)});default:return T(t)&&T(o)?r:T(t)?p(function(a){return n(a,o)}):T(o)?p(function(a){return n(t,a)}):n(t,o)}}}var xf=f(function(r,t){return Number(r)+Number(t)}),br=xf;function C(n,r){n=n||[],r=r||[];var t,o=n.length,a=r.length,i=[];for(t=0;t<o;)i[i.length]=n[t],t+=1;for(t=0;t<a;)i[i.length]=r[t],t+=1;return i}function U(n,r){switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,o){return r.apply(this,arguments)};case 3:return function(t,o,a){return r.apply(this,arguments)};case 4:return function(t,o,a,i){return r.apply(this,arguments)};case 5:return function(t,o,a,i,u){return r.apply(this,arguments)};case 6:return function(t,o,a,i,u,c){return r.apply(this,arguments)};case 7:return function(t,o,a,i,u,c,s){return r.apply(this,arguments)};case 8:return function(t,o,a,i,u,c,s,d){return r.apply(this,arguments)};case 9:return function(t,o,a,i,u,c,s,d,m){return r.apply(this,arguments)};case 10:return function(t,o,a,i,u,c,s,d,m,h){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function or(n,r,t){return function(){for(var o=[],a=0,i=n,u=0,c=!1;u<r.length||a<arguments.length;){var s;u<r.length&&(!T(r[u])||a>=arguments.length)?s=r[u]:(s=arguments[a],a+=1),o[u]=s,T(s)?c=!0:i-=1,u+=1}return!c&&i<=0?t.apply(this,o):U(Math.max(0,i),or(n,o,t))}}var _f=f(function(r,t){return r===1?p(t):U(r,or(r,[],t))}),S=_f;var wf=p(function(r){return S(r.length,function(){var t=0,o=arguments[0],a=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=o.apply(this,C(arguments,[t,a]));return t+=1,u},r.apply(this,i)})}),so=wf;var If=p(function(r){return S(r.length,function(){var t=arguments[0],o=arguments[arguments.length-1],a=o.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=t.apply(this,C(arguments,[a,o]));return a-=1,u},r.apply(this,i)})}),co=If;function l(n){return function r(t,o,a){switch(arguments.length){case 0:return r;case 1:return T(t)?r:f(function(i,u){return n(t,i,u)});case 2:return T(t)&&T(o)?r:T(t)?f(function(i,u){return n(i,o,u)}):T(o)?f(function(i,u){return n(t,i,u)}):p(function(i){return n(t,o,i)});default:return T(t)&&T(o)&&T(a)?r:T(t)&&T(o)?f(function(i,u){return n(i,u,a)}):T(t)&&T(a)?f(function(i,u){return n(i,o,u)}):T(o)&&T(a)?f(function(i,u){return n(t,i,u)}):T(t)?p(function(i){return n(i,o,a)}):T(o)?p(function(i){return n(t,i,a)}):T(a)?p(function(i){return n(t,o,i)}):n(t,o,a)}}}var bf=l(function(r,t,o){var a=o.length;if(r>=a||r<-a)return o;var i=(a+r)%a,u=C(o);return u[i]=t(o[i]),u}),Vt=bf;var P=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function qr(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function _(n,r,t){return function(){if(arguments.length===0)return t();var o=arguments[arguments.length-1];if(!P(o)){for(var a=0;a<n.length;){if(typeof o[n[a]]=="function")return o[n[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(qr(o)){var i=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(o)}}return t.apply(this,arguments)}}function V(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var y={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};var Af=function(){function n(r,t){this.xf=t,this.f=r,this.all=!0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.all&&(r=this.xf["@@transducer/step"](r,!0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)||(this.all=!1,r=V(this.xf["@@transducer/step"](r,!1))),r},n}();function tn(n){return function(r){return new Af(n,r)}}var Of=f(_(["all"],tn,function(r,t){for(var o=0;o<t.length;){if(!r(t[o]))return!1;o+=1}return!0})),Xt=Of;function Kt(n){for(var r=[],t;!(t=n.next()).done;)r.push(t.value);return r}function rr(n,r,t){for(var o=0,a=t.length;o<a;){if(n(r,t[o]))return!0;o+=1}return!1}function en(n){var r=String(n).match(/^function (\w*)/);return r==null?"":r[1]}function k(n,r){return Object.prototype.hasOwnProperty.call(r,n)}function Sf(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}var Fr=typeof Object.is=="function"?Object.is:Sf;var po=Object.prototype.toString,kf=function(){return po.call(arguments)==="[object Arguments]"?function(r){return po.call(r)==="[object Arguments]"}:function(r){return k("callee",r)}}(),Ht=kf;var Rf=!{toString:null}.propertyIsEnumerable("toString"),lo=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],mo=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Pf=function(r,t){for(var o=0;o<r.length;){if(r[o]===t)return!0;o+=1}return!1},Ef=typeof Object.keys=="function"&&!mo?p(function(r){return Object(r)!==r?[]:Object.keys(r)}):p(function(r){if(Object(r)!==r)return[];var t,o,a=[],i=mo&&Ht(r);for(t in r)k(t,r)&&(!i||t!=="length")&&(a[a.length]=t);if(Rf)for(o=lo.length-1;o>=0;)t=lo[o],k(t,r)&&!Pf(a,t)&&(a[a.length]=t),o-=1;return a}),D=Ef;var Tf=p(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)}),Ur=Tf;function ho(n,r,t,o){var a=Kt(n),i=Kt(r);function u(c,s){return yt(c,s,t.slice(),o.slice())}return!rr(function(c,s){return!rr(u,s,c)},i,a)}function yt(n,r,t,o){if(Fr(n,r))return!0;var a=Ur(n);if(a!==Ur(r))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof r.equals=="function")return typeof n.equals=="function"&&n.equals(r)&&typeof r.equals=="function"&&r.equals(n);switch(a){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&en(n.constructor)==="Promise")return n===r;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof r&&Fr(n.valueOf(),r.valueOf())))return!1;break;case"Date":if(!Fr(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(!(n.source===r.source&&n.global===r.global&&n.ignoreCase===r.ignoreCase&&n.multiline===r.multiline&&n.sticky===r.sticky&&n.unicode===r.unicode))return!1;break}for(var i=t.length-1;i>=0;){if(t[i]===n)return o[i]===r;i-=1}switch(a){case"Map":return n.size!==r.size?!1:ho(n.entries(),r.entries(),t.concat([n]),o.concat([r]));case"Set":return n.size!==r.size?!1:ho(n.values(),r.values(),t.concat([n]),o.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=D(n);if(u.length!==D(r).length)return!1;var c=t.concat([n]),s=o.concat([r]);for(i=u.length-1;i>=0;){var d=u[i];if(!(k(d,r)&&yt(r[d],n[d],c,s)))return!1;i-=1}return!0}var Wf=f(function(r,t){return yt(r,t,[],[])}),B=Wf;function vt(n,r,t){var o,a;if(typeof n.indexOf=="function")switch(typeof r){case"number":if(r===0){for(o=1/r;t<n.length;){if(a=n[t],a===0&&1/a===o)return t;t+=1}return-1}else if(r!==r){for(;t<n.length;){if(a=n[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return n.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(r,t);case"object":if(r===null)return n.indexOf(r,t)}for(;t<n.length;){if(B(n[t],r))return t;t+=1}return-1}function Ar(n,r){return vt(r,n,0)>=0}function tr(n,r){for(var t=0,o=r.length,a=Array(o);t<o;)a[t]=n(r[t]),t+=1;return a}function gt(n){var r=n.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+r.replace(/"/g,'\\"')+'"'}var xt=function(r){return(r<10?"0":"")+r},Nf=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+xt(r.getUTCMonth()+1)+"-"+xt(r.getUTCDate())+"T"+xt(r.getUTCHours())+":"+xt(r.getUTCMinutes())+":"+xt(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},yo=Nf;function _t(n){return function(){return!n.apply(this,arguments)}}function sr(n,r,t){for(var o=0,a=t.length;o<a;)r=n(r,t[o]),o+=1;return r}function zr(n,r){for(var t=0,o=r.length,a=[];t<o;)n(r[t])&&(a[a.length]=r[t]),t+=1;return a}function ar(n){return Object.prototype.toString.call(n)==="[object Object]"}var Bf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},n}();function nn(n){return function(r){return new Bf(n,r)}}var Cf=f(_(["fantasy-land/filter","filter"],nn,function(n,r){return ar(r)?sr(function(t,o){return n(r[o])&&(t[o]=r[o]),t},{},D(r)):zr(n,r)})),Zr=Cf;var Lf=f(function(r,t){return Zr(_t(r),t)}),Or=Lf;function Jr(n,r){var t=function(u){var c=r.concat([n]);return Ar(u,c)?"<Circular>":Jr(u,c)},o=function(i,u){return tr(function(c){return gt(c)+": "+t(i[c])},u.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+tr(t,n).join(", ")+"))";case"[object Array]":return"["+tr(t,n).concat(o(n,Or(function(i){return/^\d+$/.test(i)},D(n)))).join(", ")+"]";case"[object Boolean]":return typeof n=="object"?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):gt(yo(n)))+")";case"[object Map]":return"new Map("+t(Array.from(n))+")";case"[object Null]":return"null";case"[object Number]":return typeof n=="object"?"new Number("+t(n.valueOf())+")":1/n===-1/0?"-0":n.toString(10);case"[object Set]":return"new Set("+t(Array.from(n).sort())+")";case"[object String]":return typeof n=="object"?"new String("+t(n.valueOf())+")":gt(n);case"[object Undefined]":return"undefined";default:if(typeof n.toString=="function"){var a=n.toString();if(a!=="[object Object]")return a}return"{"+o(n,D(n)).join(", ")+"}"}}var jf=p(function(r){return Jr(r,[])}),H=jf;var Df=f(function(r,t){if(r===t)return t;function o(s,d){if(s>d!=d>s)return d>s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=H(r),c=o(u,H(t));return c!==void 0&&c===u?r:t}),Q=Df;var Mf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},n}(),qf=function(r){return function(t){return new Mf(r,t)}},Qt=qf;var Ff=f(_(["fantasy-land/map","map"],Qt,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return S(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return sr(function(o,a){return o[a]=r(t[a]),o},{},D(t));default:return tr(r,t)}})),L=Ff;var K=Number.isInteger||function(r){return r<<0===r};function Z(n){return Object.prototype.toString.call(n)==="[object String]"}var Uf=f(function(r,t){var o=r<0?t.length+r:r;return Z(t)?t.charAt(o):t[o]}),J=Uf;var zf=f(function(r,t){if(t!=null)return K(r)?J(r,t):t[r]}),G=zf;var Vf=f(function(r,t){return L(G(r),t)}),mr=Vf;var Xf=p(function(r){return P(r)?!0:!r||typeof r!="object"||Z(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),xr=Xf;var vo=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function wt(n,r,t){return function(a,i,u){if(xr(u))return n(a,i,u);if(u==null)return i;if(typeof u["fantasy-land/reduce"]=="function")return r(a,i,u,"fantasy-land/reduce");if(u[vo]!=null)return t(a,i,u[vo]());if(typeof u.next=="function")return t(a,i,u);if(typeof u.reduce=="function")return r(a,i,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function It(n,r,t){for(var o=0,a=t.length;o<a;){if(r=n["@@transducer/step"](r,t[o]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o+=1}return n["@@transducer/result"](r)}var Kf=f(function(r,t){return U(r.length,function(){return r.apply(t,arguments)})}),Zt=Kf;function Hf(n,r,t){for(var o=t.next();!o.done;){if(r=n["@@transducer/step"](r,o.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=t.next()}return n["@@transducer/result"](r)}function Qf(n,r,t,o){return n["@@transducer/result"](t[o](Zt(n["@@transducer/step"],n),r))}var Zf=wt(It,Qf,Hf),Y=Zf;var Jf=function(){function n(r){this.f=r}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(r){return r},n.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},n}();function _r(n){return new Jf(n)}var Gf=l(function(n,r,t){return Y(typeof n=="function"?_r(n):n,r,t)}),X=Gf;var Yf=p(function(r){return S(X(Q,0,mr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(!r[t].apply(this,arguments))return!1;t+=1}return!0})}),Jt=Yf;var $f=p(function(r){return function(){return r}}),Sr=$f;var rs=f(function(r,t){return r&&t}),Gt=rs;var ts=function(){function n(r,t){this.xf=t,this.f=r,this.any=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.any||(r=this.xf["@@transducer/step"](r,!1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.any=!0,r=V(this.xf["@@transducer/step"](r,!0))),r},n}();function on(n){return function(r){return new ts(n,r)}}var es=f(_(["any"],on,function(r,t){for(var o=0;o<t.length;){if(r(t[o]))return!0;o+=1}return!1})),go=es;var ns=p(function(r){return S(X(Q,0,mr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(r[t].apply(this,arguments))return!0;t+=1}return!1})}),Yt=ns;function os(n,r,t){for(var o=t.next();!o.done;)r=n(r,o.value),o=t.next();return r}function as(n,r,t,o){return t[o](n,r)}var is=wt(sr,as,os),kr=is;var us=f(function(r,t){return typeof t["fantasy-land/ap"]=="function"?t["fantasy-land/ap"](r):typeof r.ap=="function"?r.ap(t):typeof r=="function"?function(o){return r(o)(t(o))}:kr(function(o,a){return C(o,L(a,t))},[],r)}),Gr=us;function an(n,r){for(var t=0,o=r.length-(n-1),a=new Array(o>=0?o:0);t<o;)a[t]=Array.prototype.slice.call(r,t,t+n),t+=1;return a}var fs=function(){function n(r,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.store(t),this.full?this.xf["@@transducer/step"](r,this.getCopy()):r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return C(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}();function un(n){return function(r){return new fs(n,r)}}var ss=f(_([],un,an)),xo=ss;var cs=f(function(r,t){return C(t,[r])}),$t=cs;var ps=f(function(r,t){return r.apply(this,t)}),Yr=ps;var ls=p(function(r){for(var t=D(r),o=t.length,a=[],i=0;i<o;)a[i]=r[t[i]],i+=1;return a}),re=ls;function _o(n,r){return P(r)?r.map(n):D(r).reduce(function(t,o){return t[o]=n(r[o]),t},{})}var ms=p(function n(r){return r=_o(function(t){return typeof t=="function"?t:n(t)},r),S(X(Q,0,mr("length",re(r))),function(){var t=arguments;return _o(function(o){return Yr(o,t)},r)})}),wo=ms;var ds=f(function(r,t){return t(r)}),Io=ds;var hs=l(function(r,t,o){var a=r(t),i=r(o);return a<i?-1:a>i?1:0}),bo=hs;function Vr(n,r,t){if(K(n)&&P(t)){var o=[].concat(t);return o[n]=r,o}var a={};for(var i in t)a[i]=t[i];return a[n]=r,a}var ys=p(function(r){return r==null}),er=ys;var vs=l(function n(r,t,o){if(r.length===0)return t;var a=r[0];if(r.length>1){var i=!er(o)&&k(a,o)&&typeof o[a]=="object"?o[a]:K(r[1])?[]:{};t=n(Array.prototype.slice.call(r,1),t,i)}return Vr(a,t,o)}),$r=vs;var gs=l(function(r,t,o){return $r([r],t,o)}),Rr=gs;var xs=f(function(r,t){switch(r){case 0:return function(){return t.call(this)};case 1:return function(o){return t.call(this,o)};case 2:return function(o,a){return t.call(this,o,a)};case 3:return function(o,a,i){return t.call(this,o,a,i)};case 4:return function(o,a,i,u){return t.call(this,o,a,i,u)};case 5:return function(o,a,i,u,c){return t.call(this,o,a,i,u,c)};case 6:return function(o,a,i,u,c,s){return t.call(this,o,a,i,u,c,s)};case 7:return function(o,a,i,u,c,s,d){return t.call(this,o,a,i,u,c,s,d)};case 8:return function(o,a,i,u,c,s,d,m){return t.call(this,o,a,i,u,c,s,d,m)};case 9:return function(o,a,i,u,c,s,d,m,h){return t.call(this,o,a,i,u,c,s,d,m,h)};case 10:return function(o,a,i,u,c,s,d,m,h,g){return t.call(this,o,a,i,u,c,s,d,m,h,g)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Pr=xs;var _s=p(function(r){return Pr(2,r)}),Ao=_s;function ir(n){var r=Object.prototype.toString.call(n);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var ws=f(function(r,t){var o=S(r,t);return S(r,function(){return sr(Gr,L(o,arguments[0]),Array.prototype.slice.call(arguments,1))})}),te=ws;var Is=p(function(r){return te(r.length,r)}),Er=Is;var bs=f(function(r,t){return ir(r)?function(){return r.apply(this,arguments)&&t.apply(this,arguments)}:Er(Gt)(r,t)}),Oo=bs;var As=p(function(r){return r.apply(this,Array.prototype.slice.call(arguments,1))}),ee=As;function bt(n){return function r(t){for(var o,a,i,u=[],c=0,s=t.length;c<s;){if(xr(t[c]))for(o=n?r(t[c]):t[c],i=0,a=o.length;i<a;)u[u.length]=o[i],i+=1;else u[u.length]=t[c];c+=1}return u}}function fn(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}}var So="@@transducer/init",sn="@@transducer/step",ko="@@transducer/result",Os=function(){function n(r){this.xf=r}return n.prototype[So]=y.init,n.prototype[ko]=y.result,n.prototype[sn]=function(r,t){var o=this.xf[sn](r,t);return o["@@transducer/reduced"]?fn(o):o},n}(),Ss=function(){function n(r){this.xf=new Os(r)}return n.prototype[So]=y.init,n.prototype[ko]=y.result,n.prototype[sn]=function(r,t){return xr(t)?Y(this.xf,r,t):It(this.xf,r,[t])},n}(),ks=function(r){return new Ss(r)},Ro=ks;function cn(n){return function(r){return Qt(n)(Ro(r))}}var Rs=f(_(["fantasy-land/chain","chain"],cn,function(r,t){return typeof t=="function"?function(o){return r(t(o))(o)}:bt(!1)(L(r,t))})),ne=Rs;var Ps=l(function(r,t,o){if(r>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return o<r?r:o>t?t:o}),Po=Ps;function At(n){return new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""))}function Tr(n,r,t){if(t||(t=new Ts),Es(n))return n;var o=function(i){var u=t.get(n);if(u)return u;t.set(n,i);for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i[c]=r?Tr(n[c],!0,t):n[c]);return i};switch(Ur(n)){case"Object":return o(Object.create(Object.getPrototypeOf(n)));case"Array":return o([]);case"Date":return new Date(n.valueOf());case"RegExp":return At(n);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return n.slice();default:return n}}function Es(n){var r=typeof n;return n==null||r!="object"&&r!="function"}var Ts=function(){function n(){this.map={},this.length=0}return n.prototype.set=function(r,t){let o=this.hash(r),a=this.map[o];a||(this.map[o]=a=[]),a.push([r,t]),this.length+=1},n.prototype.hash=function(r){let t=[];for(var o in r)t.push(Object.prototype.toString.call(r[o]));return t.join()},n.prototype.get=function(r){if(this.length<=180){for(let a in this.map){let i=this.map[a];for(let u=0;u<i.length;u+=1){let c=i[u];if(c[0]===r)return c[1]}}return}let t=this.hash(r),o=this.map[t];if(o)for(let a=0;a<o.length;a+=1){let i=o[a];if(i[0]===r)return i[1]}},n}();var Ws=p(function(r){return r!=null&&typeof r.clone=="function"?r.clone():Tr(r,!0)}),rt=Ws;var Ns=f(function(r,t){var o=kr(function(u,c){var s=r(c);return u[s]===void 0&&(u[s]=[]),u[s].push(c),u},{},t),a=[];for(var i in o)a.push(o[i]);return a}),Eo=Ns;var Bs=p(function(r){return function(t,o){return r(t,o)?-1:r(o,t)?1:0}}),To=Bs;var Cs=p(function(r){return!r}),oe=Cs;var Ls=Er(oe),Ot=Ls;function pn(n,r){return function(){return r.call(this,n.apply(this,arguments))}}function cr(n,r){return function(){var t=arguments.length;if(t===0)return r();var o=arguments[t-1];return P(o)||typeof o[n]!="function"?r.apply(this,arguments):o[n].apply(o,Array.prototype.slice.call(arguments,0,t-1))}}var js=l(cr("slice",function(r,t,o){return Array.prototype.slice.call(o,r,t)})),M=js;var Ds=p(cr("tail",M(1,1/0))),tt=Ds;function St(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return U(arguments[0].length,X(pn,arguments[0],tt(arguments)))}var Ms=p(function(r){return Z(r)?r.split("").reverse().join(""):Array.prototype.slice.call(r,0).reverse()}),et=Ms;function Wr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return St.apply(this,et(arguments))}var qs=J(0),ae=qs;function ur(n){return n}var Fs=p(ur),pr=Fs;var Us=f(function(r,t){if(t.length<=0)return pr;var o=ae(t),a=tt(t);return U(o.length,function(){return kr(function(i,u){return r.call(this,u,i)},o.apply(this,arguments),a)})}),ie=Us;var zs=f(function(r,t){return ie.apply(this,[r,et(t)])}),Wo=zs;var Vs=f(function(r,t){if(P(r)){if(P(t))return r.concat(t);throw new TypeError(H(t)+" is not an array")}if(Z(r)){if(Z(t))return r+t;throw new TypeError(H(t)+" is not a string")}if(r!=null&&ir(r["fantasy-land/concat"]))return r["fantasy-land/concat"](t);if(r!=null&&ir(r.concat))return r.concat(t);throw new TypeError(H(r)+' does not have a method named "concat" or "fantasy-land/concat"')}),nt=Vs;var Xs=p(function(r){var t=X(Q,0,L(function(o){return o[0].length},r));return U(t,function(){for(var o=0;o<r.length;){if(r[o][0].apply(this,arguments))return r[o][1].apply(this,arguments);o+=1}})}),No=Xs;var Ks=p(function(r){return S(r.length,r)}),ot=Ks;var Hs=f(function(r,t){if(r>10)throw new Error("Constructor with greater than ten arguments");return r===0?function(){return new t}:ot(Pr(r,function(o,a,i,u,c,s,d,m,h,g){switch(r){case 1:return new t(o);case 2:return new t(o,a);case 3:return new t(o,a,i);case 4:return new t(o,a,i,u);case 5:return new t(o,a,i,u,c);case 6:return new t(o,a,i,u,c,s);case 7:return new t(o,a,i,u,c,s,d);case 8:return new t(o,a,i,u,c,s,d,m);case 9:return new t(o,a,i,u,c,s,d,m,h);case 10:return new t(o,a,i,u,c,s,d,m,h,g)}}))}),ue=Hs;var Qs=p(function(r){return ue(r.length,r)}),Bo=Qs;var Zs=f(function(r,t){return S(X(Q,0,mr("length",t)),function(){var o=arguments,a=this;return r.apply(a,tr(function(i){return i.apply(a,o)},t))})}),fe=Zs;var Js=ot(function(n,r){return kr(function(t,o){return n(o)?t+1:t},0,r)}),Co=Js;var Gs=function(){function n(r,t,o,a){this.valueFn=r,this.valueAcc=t,this.keyFn=o,this.xf=a,this.inputs={}}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){var t;for(t in this.inputs)if(k(t,this.inputs)&&(r=this.xf["@@transducer/step"](r,this.inputs[t]),r["@@transducer/reduced"])){r=r["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){var o=this.keyFn(t);return this.inputs[o]=this.inputs[o]||[o,Tr(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],t),r},n}();function ln(n,r,t){return function(o){return new Gs(n,r,t,o)}}var Ys=or(4,[],_([],ln,function(r,t,o,a){var i=_r(function(u,c){var s=o(c),d=r(k(s,u)?u[s]:Tr(t,!1),c);return d&&d["@@transducer/reduced"]?V(u):(u[s]=d,u)});return Y(i,{},a)})),Nr=Ys;var $s=Nr(function(n,r){return n+1},0),Lo=$s;var rc=br(-1),jo=rc;var tc=f(function(r,t){return t==null||t!==t?r:t}),at=tc;var ec=l(function(r,t,o){var a=r(t),i=r(o);return a>i?-1:a<i?1:0}),Do=ec;var nc=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(r){return!Mo(r,!0,this)},n.prototype.has=function(r){return Mo(r,!1,this)},n}();function Mo(n,r,t){var o=typeof n,a,i;switch(o){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(r&&(t._items["-0"]=!0),!1):t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?n in t._items[o]?!0:(r&&(t._items[o][n]=!0),!1):(r&&(t._items[o]={},t._items[o][n]=!0),!1);case"boolean":if(o in t._items){var u=n?1:0;return t._items[o][u]?!0:(r&&(t._items[o][u]=!0),!1)}else return r&&(t._items[o]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?Ar(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1);case"undefined":return t._items[o]?!0:(r&&(t._items[o]=!0),!1);case"object":if(n===null)return t._items.null?!0:(r&&(t._items.null=!0),!1);default:return o=Object.prototype.toString.call(n),o in t._items?Ar(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1)}}var dr=nc;var oc=f(function(r,t){for(var o=[],a=0,i=r.length,u=t.length,c=new dr,s=0;s<u;s+=1)c.add(t[s]);for(;a<i;)c.add(r[a])&&(o[o.length]=r[a]),a+=1;return o}),kt=oc;var ac=l(function(r,t,o){for(var a=[],i=0,u=t.length;i<u;)!rr(r,t[i],o)&&!rr(r,t[i],a)&&a.push(t[i]),i+=1;return a}),Rt=ac;var ic=l(function(r,t,o){var a=Array.prototype.slice.call(o,0);return a.splice(r,t),a}),se=ic;function mn(n,r){if(r==null)return r;if(K(n)&&P(r))return se(n,1,r);var t={};for(var o in r)t[o]=r[o];return delete t[n],t}function uc(n,r){if(K(n)&&P(r))return[].concat(r);var t={};for(var o in r)t[o]=r[o];return t}var fc=f(function n(r,t){if(t==null)return t;switch(r.length){case 0:return t;case 1:return mn(r[0],t);default:var o=r[0],a=Array.prototype.slice.call(r,1);return t[o]==null?uc(o,t):Rr(o,n(a,t[o]),t)}}),ce=fc;var sc=f(function(r,t){return ce([r],t)}),pe=sc;var cc=f(function(r,t){return r/t}),qo=cc;var pc=function(){function n(r,t){this.xf=t,this.n=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.n>0?(this.n-=1,r):this.xf["@@transducer/step"](r,t)},n}();function dn(n){return function(r){return new pc(n,r)}}var lc=f(_(["drop"],dn,function(r,t){return M(Math.max(0,r),1/0,t)})),le=lc;var mc=function(){function n(r,t){this.xf=t,this.n=r,this.i=0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){this.i+=1;var o=this.n===0?r:this.xf["@@transducer/step"](r,t);return this.n>=0&&this.i>=this.n?V(o):o},n}();function hn(n){return function(r){return new mc(n,r)}}var dc=f(_(["take"],hn,function(r,t){return M(0,r<0?1/0:r,t)})),it=dc;function yn(n,r){return it(n<r.length?r.length-n:0,r)}var hc=function(){function n(r,t){if(r<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.full&&(r=this.xf["@@transducer/step"](r,this.acc[this.pos])),this.store(t),r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n}();function vn(n){return function(r){return new hc(n,r)}}var yc=f(_([],vn,yn)),Fo=yc;function gn(n,r){for(var t=r.length-1;t>=0&&n(r[t]);)t-=1;return M(0,t+1,r)}var vc=function(){function n(r,t){this.f=r,this.retained=[],this.xf=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.retained=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.retain(r,t):this.flush(r,t)},n.prototype.flush=function(r,t){return r=Y(this.xf,r,this.retained),this.retained=[],this.xf["@@transducer/step"](r,t)},n.prototype.retain=function(r,t){return this.retained.push(t),r},n}();function xn(n){return function(r){return new vc(n,r)}}var gc=f(_([],xn,gn)),Uo=gc;var xc=function(){function n(r,t){this.xf=t,this.pred=r,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){var o=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(o=!0):this.seenFirstValue=!0,this.lastValue=t,o?r:this.xf["@@transducer/step"](r,t)},n}();function Xr(n){return function(r){return new xc(n,r)}}var _c=J(-1),me=_c;var wc=f(_([],Xr,function(r,t){var o=[],a=1,i=t.length;if(i!==0)for(o[0]=t[0];a<i;)r(me(o),t[a])||(o[o.length]=t[a]),a+=1;return o})),ut=wc;var Ic=p(_([],function(){return Xr(B)},ut(B))),zo=Ic;var bc=l(function(r,t,o){return B(r(t),r(o))}),Pt=bc;var Ac=f(function(n,r){return _([],function(){return Xr(Pt(n))},ut(Pt(n)))(r)}),Vo=Ac;var Oc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){if(this.f){if(this.f(t))return r;this.f=null}return this.xf["@@transducer/step"](r,t)},n}();function _n(n){return function(r){return new Oc(n,r)}}var Sc=f(_(["dropWhile"],_n,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(o,1/0,t)})),Xo=Sc;var kc=f(function(r,t){return r||t}),de=kc;var Rc=f(function(r,t){return ir(r)?function(){return r.apply(this,arguments)||t.apply(this,arguments)}:Er(de)(r,t)}),Ko=Rc;function wn(n){var r=Object.prototype.toString.call(n);return r==="[object Uint8ClampedArray]"||r==="[object Int8Array]"||r==="[object Uint8Array]"||r==="[object Int16Array]"||r==="[object Uint16Array]"||r==="[object Int32Array]"||r==="[object Uint32Array]"||r==="[object Float32Array]"||r==="[object Float64Array]"||r==="[object BigInt64Array]"||r==="[object BigUint64Array]"}var Pc=p(function(r){return r!=null&&typeof r["fantasy-land/empty"]=="function"?r["fantasy-land/empty"]():r!=null&&r.constructor!=null&&typeof r.constructor["fantasy-land/empty"]=="function"?r.constructor["fantasy-land/empty"]():r!=null&&typeof r.empty=="function"?r.empty():r!=null&&r.constructor!=null&&typeof r.constructor.empty=="function"?r.constructor.empty():P(r)?[]:Z(r)?"":ar(r)?{}:Ht(r)?function(){return arguments}():wn(r)?r.constructor.from(""):void 0}),he=Pc;var Ec=f(function(r,t){return le(r>=0?t.length-r:0,t)}),ye=Ec;var Tc=f(function(n,r){return B(ye(n.length,r),n)}),Ho=Tc;var Wc=l(function(r,t,o){return B(t[r],o[r])}),Qo=Wc;var Nc=f(function n(r,t){if(!ar(t)&&!P(t))return t;var o=t instanceof Array?[]:{},a,i,u;for(i in t)a=r[i],u=typeof a,o[i]=u==="function"?a(t[i]):a&&u==="object"?n(a,t[i]):t[i];return o}),Zo=Nc;var Bc=function(){function n(r,t){this.xf=t,this.f=r,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,t))),r},n}();function In(n){return function(r){return new Bc(n,r)}}var Cc=f(_(["find"],In,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return t[o];o+=1}})),Jo=Cc;var Lc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,-1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,this.idx))),r},n}();function bn(n){return function(r){return new Lc(n,r)}}var jc=f(_([],bn,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return o;o+=1}return-1})),Go=jc;var Dc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.last))},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.last=t),r},n}();function An(n){return function(r){return new Dc(n,r)}}var Mc=f(_([],An,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return t[o];o-=1}})),Yo=Mc;var qc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.lastIdx))},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),r},n}();function On(n){return function(r){return new qc(n,r)}}var Fc=f(_([],On,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return o;o-=1}return-1})),$o=Fc;var Uc=p(bt(!0)),ra=Uc;var zc=p(function(r){return S(r.length,function(t,o){var a=Array.prototype.slice.call(arguments,0);return a[0]=o,a[1]=t,r.apply(this,a)})}),ve=zc;var Vc=f(cr("forEach",function(r,t){for(var o=t.length,a=0;a<o;)r(t[a]),a+=1;return t})),ta=Vc;var Xc=f(function(r,t){for(var o=D(t),a=0;a<o.length;){var i=o[a];r(t[i],i,t),a+=1}return t}),ea=Xc;var Kc=p(function(r){for(var t={},o=0;o<r.length;)t[r[o][0]]=r[o][1],o+=1;return t}),na=Kc;var Hc=f(cr("groupBy",Nr(function(n,r){return n.push(r),n},[]))),oa=Hc;var Qc=f(function(n,r){for(var t=[],o=0,a=r.length;o<a;){for(var i=o+1;i<a&&n(r[i-1],r[i]);)i+=1;t.push(r.slice(o,i)),o=i}return t}),aa=Qc;var Zc=f(function(r,t){return r>t}),ia=Zc;var Jc=f(function(r,t){return r>=t}),ua=Jc;var Gc=f(function(r,t){if(r.length===0||er(t))return!1;for(var o=t,a=0;a<r.length;)if(!er(o)&&k(r[a],o))o=o[r[a]],a+=1;else return!1;return!0}),xe=Gc;var Yc=f(function(r,t){return xe([r],t)}),fa=Yc;var $c=f(function(r,t){return er(t)?!1:r in t}),sa=$c;var ca=function(n,r){switch(arguments.length){case 0:return ca;case 1:return function(){return function t(o){switch(arguments.length){case 0:return t;default:return Fr(n,o)}}}();default:return Fr(n,r)}},pa=ca;var rp=l(function(r,t,o){return S(Math.max(r.length,t.length,o.length),function(){return r.apply(this,arguments)?t.apply(this,arguments):o.apply(this,arguments)})}),la=rp;var tp=br(1),ma=tp;var ep=f(Ar),Et=ep;var np=Nr(function(n,r){return r},null),da=np;var op=f(function(r,t){return typeof t.indexOf=="function"&&!P(t)?t.indexOf(r):vt(t,r,0)}),ha=op;var ap=M(0,-1),ya=ap;var ip=l(function(r,t,o){return zr(function(a){return rr(r,a,o)},t)}),va=ip;var up=l(function(r,t,o){r=r<o.length&&r>=0?r:o.length;var a=Array.prototype.slice.call(o,0);return a.splice(r,0,t),a}),ga=up;var fp=l(function(r,t,o){return r=r<o.length&&r>=0?r:o.length,[].concat(Array.prototype.slice.call(o,0,r),t,Array.prototype.slice.call(o,r))}),xa=fp;var sp=function(){function n(r,t){this.xf=t,this.f=r,this.set=new dr}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](r,t):r},n}();function Sn(n){return function(r){return new sp(n,r)}}var cp=f(_([],Sn,function(n,r){for(var t=new dr,o=[],a=0,i,u;a<r.length;)u=r[a],i=n(u),t.add(i)&&o.push(u),a+=1;return o})),_e=cp;var pp=_e(pr),ft=pp;var lp=f(function(r,t){for(var o=new dr,a=0;a<r.length;a+=1)o.add(r[a]);return ft(zr(o.has.bind(o),t))}),_a=lp;var mp=f(cr("intersperse",function(r,t){for(var o=[],a=0,i=t.length;a<i;)a===i-1?o.push(t[a]):o.push(t[a],r),a+=1;return o})),wa=mp;function dp(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(n),t=1,o=arguments.length;t<o;){var a=arguments[t];if(a!=null)for(var i in a)k(i,a)&&(r[i]=a[i]);t+=1}return r}var Br=typeof Object.assign=="function"?Object.assign:dp;var hp=f(function(r,t){var o={};return o[r]=t,o}),we=hp;var yp={"@@transducer/init":Array,"@@transducer/step":function(n,r){return n.push(r),n},"@@transducer/result":ur},vp={"@@transducer/init":String,"@@transducer/step":function(n,r){return n+r},"@@transducer/result":ur},gp={"@@transducer/init":Object,"@@transducer/step":function(n,r){return Br(n,xr(r)?we(r[0],r[1]):r)},"@@transducer/result":ur};function kn(n){if(qr(n))return n;if(xr(n))return yp;if(typeof n=="string")return vp;if(typeof n=="object")return gp;throw new Error("Cannot create transformer for "+n)}var xp=l(function(r,t,o){var a=t(qr(r)?r:kn(r));return Y(a,a["@@transducer/init"](),o)}),Ia=xp;var _p=p(function(r){for(var t=D(r),o=t.length,a=0,i={};a<o;){var u=t[a],c=r[u],s=k(c,i)?i[c]:i[c]=[];s[s.length]=u,a+=1}return i}),ba=_p;var wp=p(function(r){for(var t=D(r),o=t.length,a=0,i={};a<o;){var u=t[a];i[r[u]]=u,a+=1}return i}),Aa=wp;var Ip=f(function(r,t){return S(r+1,function(){var o=arguments[r];if(o!=null&&ir(o[t]))return o[t].apply(o,Array.prototype.slice.call(arguments,0,r));throw new TypeError(H(o)+' does not have a method named "'+t+'"')})}),hr=Ip;var bp=f(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),Kr=bp;var Ap=p(function(r){return r!=null&&B(r,he(r))}),Tt=Ap;var Op=p(function(r){return!er(r)}),Ie=Op;var Sp=hr(1,"join"),Oa=Sp;var kp=p(function(r){return fe(function(){return Array.prototype.slice.call(arguments,0)},r)}),be=kp;var Rp=p(function(r){var t,o=[];for(t in r)o[o.length]=t;return o}),Sa=Rp;var Pp=f(function(r,t){if(typeof t.lastIndexOf=="function"&&!P(t))return t.lastIndexOf(r);for(var o=t.length-1;o>=0;){if(B(t[o],r))return o;o-=1}return-1}),ka=Pp;function st(n){return Object.prototype.toString.call(n)==="[object Number]"}var Ep=p(function(r){return r!=null&&st(r.length)?r.length:NaN}),Ae=Ep;var Tp=f(function(r,t){return function(o){return function(a){return L(function(i){return t(i,a)},o(r(a)))}}}),Cr=Tp;var Wp=l(function(r,t,o){return Vt(r,Sr(t),o)}),Oe=Wp;var Np=p(function(r){return Cr(J(r),Oe(r))}),Ra=Np;var Bp=f(function(r,t){return r.map(function(o){for(var a=t,i=0,u;i<o.length;){if(a==null)return;u=o[i],a=K(u)?J(u,a):a[u],i+=1}return a})}),Se=Bp;var Cp=f(function(r,t){return Se([r],t)[0]}),fr=Cp;var Lp=p(function(r){return Cr(fr(r),$r(r))}),Pa=Lp;var jp=p(function(r){return Cr(G(r),Rr(r))}),Ea=jp;var Dp=f(function(r,t){return r<t}),Ta=Dp;var Mp=f(function(r,t){return r<=t}),Wa=Mp;var qp=l(function(r,t,o){for(var a=0,i=o.length,u=[],c=[t];a<i;)c=r(c[0],o[a]),u[a]=c[1],a+=1;return[c[0],u]}),Na=qp;var Fp=l(function(r,t,o){for(var a=o.length-1,i=[],u=[t];a>=0;)u=r(u[0],o[a]),i[a]=u[1],a-=1;return[u[0],i]}),Ba=Fp;var Up=f(function(r,t){return sr(function(o,a){return o[a]=r(t[a],a,t),o},{},D(t))}),Wt=Up;var zp=f(function(r,t){return t.match(r)||[]}),Ca=zp;var Vp=f(function(r,t){return K(r)?!K(t)||t<1?NaN:(r%t+t)%t:NaN}),La=Vp;var Xp=l(function(r,t,o){var a=r(o);return Q(r(t),a)===a?o:t}),ja=Xp;var Kp=X(br,0),ke=Kp;var Hp=p(function(r){return ke(r)/r.length}),Re=Hp;var Qp=p(function(r){var t=r.length;if(t===0)return NaN;var o=2-t%2,a=(t-o)/2;return Re(Array.prototype.slice.call(r,0).sort(function(i,u){return i<u?-1:i>u?1:0}).slice(a,a+o))}),Da=Qp;var Zp=f(function(r,t){var o={};return U(t.length,function(){var a=r.apply(this,arguments);return k(a,o)||(o[a]=t.apply(this,arguments)),o[a]})}),Ma=Zp;var Jp=p(function(r){return Br.apply(null,[{}].concat(r))}),qa=Jp;var Gp=l(function(r,t,o){var a={},i;t=t||{},o=o||{};for(i in t)k(i,t)&&(a[i]=k(i,o)?r(i,t[i],o[i]):t[i]);for(i in o)k(i,o)&&!k(i,a)&&(a[i]=o[i]);return a}),ct=Gp;var Yp=l(function n(r,t,o){return ct(function(a,i,u){return ar(i)&&ar(u)?n(r,i,u):r(a,i,u)},t,o)}),Lr=Yp;var $p=f(function(r,t){return Lr(function(o,a,i){return a},r,t)}),Fa=$p;var rl=f(function(r,t){return Lr(function(o,a,i){return i},r,t)}),Pe=rl;var tl=l(function(r,t,o){return Lr(function(a,i,u){return r(i,u)},t,o)}),Ua=tl;var el=f(function(r,t){return Br({},t,r)}),Nt=el;var nl=f(function(r,t){return Br({},r,t)}),Ee=nl;var ol=l(function(r,t,o){return ct(function(a,i,u){return r(i,u)},t,o)}),za=ol;var al=f(function(r,t){if(r===t)return r;function o(s,d){if(s<d!=d<s)return d<s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=H(r),c=o(u,H(t));return c!==void 0?c===u?r:t:r}),Te=al;var il=l(function(r,t,o){var a=r(o);return Te(r(t),a)===a?o:t}),Va=il;function Rn(n,r,t){if(K(n)&&P(t)){var o=[].concat(t);return o[n]=r(o[n]),o}var a={};for(var i in t)a[i]=t[i];return a[n]=r(a[n]),a}var ul=l(function n(r,t,o){if(!ar(o)&&!P(o))return o;if(r.length===0)return t(o);var a=r[0];if(!k(a,o))return o;if(r.length===1)return Rn(a,t,o);var i=n(Array.prototype.slice.call(r,1),t,o[a]);return i===o[a]?o:Vr(a,i,o)}),We=ul;var fl=l(function(r,t,o){return We([r],t,o)}),Xa=fl;var sl=f(function(r,t){return r%t}),Ka=sl;var cl=l(function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=a.splice(i,1);return i<0||i>=t.length||u<0||u>=t.length?t:[].concat(a.slice(0,u)).concat(c).concat(a.slice(u,t.length))}),Ha=cl;var pl=f(function(r,t){return r*t}),Ne=pl;var ll=f((n,r)=>t=>n.call(void 0,Pe(r,t))),Qa=ll;var ml=p(function(r){return-r}),Za=ml;var dl=f(function(r,t){return Xt(_t(r),t)}),Ja=dl;var hl=p(function(r){var t=r<0?1:r+1;return S(t,function(){return J(r,arguments)})}),Ga=hl;var yl=l(function(r,t,o){return r(t(o))}),Ya=yl;var vl=f(function(r,t){return typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"](t):typeof r.of=="function"?r.of(t):[t]}),$a=vl;var gl=f(function(r,t){for(var o={},a={},i=0,u=r.length;i<u;)a[r[i]]=1,i+=1;for(var c in t)a.hasOwnProperty(c)||(o[c]=t[c]);return o}),ri=gl;var xl=or(4,[],function(r,t,o,a){return r(t(o),t(a))}),ti=xl;var _l=p(function(r){var t=!1,o;return U(r.length,function(){return t||(t=!0,o=r.apply(this,arguments)),o})}),ei=_l;function Bt(n,r){if(r==null||!ir(r.then))throw new TypeError("`"+n+"` expected a Promise, received "+Jr(r,[]))}var wl=f(function(r,t){return Bt("otherwise",t),t.then(null,r)}),ni=wl;var oi=function(n){return{value:n,map:function(r){return oi(r(n))}}},Il=l(function(r,t,o){return r(function(a){return oi(t(a))})(o).value}),Be=Il;var bl=f(function(r,t){return[r,t]}),ai=bl;function Ct(n){return f(function(r,t){return U(Math.max(0,r.length-t.length),function(){return r.apply(this,n(t,arguments))})})}var Al=Ct(C),ii=Al;var Ol=Ct(ve(C)),ui=Ol;var Sl=be([Zr,Or]),fi=Sl;var kl=l(function(r,t,o){return B(fr(t,o),r)}),si=kl;var Rl=l(function(r,t,o){return at(r,fr(t,o))}),ci=Rl;var Pl=l(function(r,t,o){return r(fr(t,o))}),pi=Pl;var El=f(function(r,t){for(var o={},a=0;a<r.length;)r[a]in t&&(o[r[a]]=t[r[a]]),a+=1;return o}),li=El;var Tl=f(function(r,t){for(var o={},a=0,i=r.length;a<i;){var u=r[a];o[u]=t[u],a+=1}return o}),Ce=Tl;var Wl=f(function(r,t){var o={};for(var a in t)r(t[a],a,t)&&(o[a]=t[a]);return o}),mi=Wl;var Nl=f(function(r,t){return C([r],t)}),Le=Nl;var Bl=X(Ne,1),di=Bl;var Cl=f(function(r,t){return S(t.length,function(){for(var o=[],a=0;a<t.length;)o.push(t[a].call(this,arguments[a])),a+=1;return r.apply(this,o.concat(Array.prototype.slice.call(arguments,t.length)))})}),je=Cl;var Ll=je(tr,[Ce,pr]),hi=Ll;function Lt(n,r,t){return function(o){return r(t(n(o)))}}var jl=function(){function n(r,t,o){this.xf=o,this.f=r,this.g=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,Lt(this.f,this.g,t))},n}();function Pn(n,r){return function(t){return new jl(n,r,t)}}var Dl=l(_(["fantasy-land/promap","promap"],Pn,Lt)),yi=Dl;var Ml=l(function(r,t,o){return B(r,G(t,o))}),vi=Ml;var ql=l(function(r,t,o){return Kr(r,G(t,o))}),gi=ql;var Fl=l(function(r,t,o){return at(r,G(t,o))}),xi=Fl;var Ul=l(function(r,t,o){return r(G(t,o))}),_i=Ul;var zl=f(function(r,t){return r.map(function(o){return fr([o],t)})}),wi=zl;var Vl=f(function(r,t){if(!(st(r)&&st(t)))throw new TypeError("Both arguments to range must be numbers");for(var o=[],a=r;a<t;)o.push(a),a+=1;return o}),Ii=Vl;var Xl=l(function(r,t,o){for(var a=o.length-1;a>=0;){if(t=r(o[a],t),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}a-=1}return t}),De=Xl;var Kl=or(4,[],function(r,t,o,a){var i=_r(function(u,c){return r(u,c)?t(u,c):V(u)});return Y(i,o,a)}),bi=Kl;var Hl=p(V),Ai=Hl;var Ql=f(function(r,t){var o=Number(t),a=0,i;if(o<0||isNaN(o))throw new RangeError("n must be a non-negative number");for(i=[];a<o;)i.push(r(a)),a+=1;return i}),Me=Ql;var Zl=f(function(r,t){return Me(Sr(r),t)}),Oi=Zl;var Jl=l(function(r,t,o){return o.replace(r,t)}),Si=Jl;var ki="@@transducer/init",En="@@transducer/step",Gl=function(){function n(r,t,o){this.xf=o,this.f=r,this.acc=t}return n.prototype[ki]=function(){return this.xf[En](this.xf[ki](),this.acc)},n.prototype["@@transducer/result"]=y.result,n.prototype[En]=function(r,t){return r["@@transducer/reduced"]?r:(this.acc=this.f(this.acc,t),this.xf[En](r,this.acc))},n}(),Yl=l(function(r,t,o){return new Gl(r,t,o)}),Ri=Yl;var $l=l(_([],Ri,function(r,t,o){for(var a=0,i=o.length,u=[t];a<i;)t=r(t,o[a]),u[a+1]=t,a+=1;return u})),Pi=$l;var rm=f(function(r,t){var o=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,a={"fantasy-land/of":o};return typeof t["fantasy-land/traverse"]=="function"?t["fantasy-land/traverse"](a,ur):typeof t.traverse=="function"?t.traverse(a,ur):De(function(i,u){return Gr(L(Le,i),u)},o([]),t)}),qe=rm;var tm=l(function(r,t,o){return Be(r,Sr(t),o)}),Ei=tm;var em=f(function(r,t){return Array.prototype.slice.call(t,0).sort(r)}),Ti=em;var nm=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){var i=r(o),u=r(a);return i<u?-1:i>u?1:0})}),Wi=nm;var om=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){for(var i=0,u=0;i===0&&u<r.length;)i=r[u](o,a),u+=1;return i})}),Ni=om;var am=hr(1,"split"),Bi=am;var im=f(function(r,t){return[M(0,r,t),M(r,Ae(t),t)]}),Ci=im;var um=f(function(r,t){if(r<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var o=[],a=0;a<t.length;)o.push(M(a,a+=r,t));return o}),Li=um;var fm=f(function(r,t){for(var o=0,a=t.length,i=[];o<a&&!r(t[o]);)i.push(t[o]),o+=1;return[i,Array.prototype.slice.call(t,o)]}),ji=fm;var sm=or(2,[],function(r,t){for(var o=[],a=[],i=0;i<t.length;i=i+1)r(t[i])||a.push(t[i]),(i<t.length-1&&r(t[i+1])||i===t.length-1)&&a.length>0&&(o.push(a),a=[]);return o}),Di=sm;var cm=f(function(n,r){return B(it(n.length,r),n)}),Mi=cm;var pm=f(function(r,t){return Number(r)-Number(t)}),qi=pm;var lm=function(n,r,t){var o=rt(t),a=Object.getOwnPropertyNames(o);if(a.includes(n)&&a.includes(r)){var i=o[n];o[n]=o[r],o[r]=i}return o},Fi=function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=Math.min(i,u),s=Math.max(i,u);return i<0||i>o||u<0||u>o||i===u||(a=[].concat(a.slice(0,c)).concat([a[s]]).concat(a.slice(c+1,s)).concat([a[c]]).concat(a.slice(s+1,o))),a},mm=function(n,r,t){var o=Fi(n,r,t);return P(o)?o.join(""):o},dm=l(function(n,r,t){return P(t)?Fi(n,r,t):Z(t)?mm(n,r,t):lm(n,r,t)}),Ui=dm;var hm=f(function(r,t){return nt(kt(r,t),kt(t,r))}),zi=hm;var ym=l(function(r,t,o){return nt(Rt(r,t,o),Rt(r,o,t))}),Vi=ym;var vm=f(function(r,t){for(var o=t.length-1;o>=0&&r(t[o]);)o-=1;return M(o+1,1/0,t)}),Xi=vm;var gm=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):V(r)},n}();function Tn(n){return function(r){return new gm(n,r)}}var xm=f(_(["takeWhile"],Tn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(0,o,t)})),Ki=xm;var _m=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t),this.xf["@@transducer/step"](r,t)},n}();function Wn(n){return function(r){return new _m(n,r)}}var wm=f(_([],Wn,function(r,t){return r(t),t})),jt=wm;function Nn(n){return Object.prototype.toString.call(n)==="[object RegExp]"}var Im=f(function(r,t){if(!Nn(r))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+H(r));return At(r).test(t)}),Hi=Im;var bm=f(function(r,t){return Bt("andThen",t),t.then(r)}),Qi=bm;var Am=hr(0,"toLowerCase"),Zi=Am;var Om=p(function(r){var t=[];for(var o in r)k(o,r)&&(t[t.length]=[o,r[o]]);return t}),Ji=Om;var Sm=p(function(r){var t=[];for(var o in r)t[t.length]=[o,r[o]];return t}),Gi=Sm;var km=hr(0,"toUpperCase"),Yi=km;var Rm=S(4,function(r,t,o,a){return Y(r(typeof t=="function"?_r(t):t),o,a)}),$i=Rm;var Pm=p(function(r){for(var t=0,o=[];t<r.length;){for(var a=r[t],i=0;i<a.length;)typeof o[i]>"u"&&(o[i]=[]),o[i].push(a[i]),i+=1;t+=1}return o}),ru=Pm;var Em=l(function(r,t,o){var a=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,i={"fantasy-land/of":a};return typeof o["fantasy-land/traverse"]=="function"?o["fantasy-land/traverse"](i,t):typeof o.traverse=="function"?o.traverse(i,t):qe(i,L(t,o))}),tu=Em;var Dt=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Tm="\u200B",Wm=typeof String.prototype.trim=="function",Nm=!Wm||Dt.trim()||!Tm.trim()?p(function(r){var t=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return r.replace(t,"").replace(o,"")}):p(function(r){return r.trim()}),eu=Nm;var Bm=f(function(r,t){return U(r.length,function(){try{return r.apply(this,arguments)}catch(o){return t.apply(this,C([o],arguments))}})}),nu=Bm;var Cm=p(function(r){return function(){return r(Array.prototype.slice.call(arguments,0))}}),ou=Cm;var Lm=p(function(r){return Pr(1,r)}),au=Lm;var jm=f(function(r,t){return S(r,function(){for(var o=1,a=t,i=0,u;o<=r&&typeof a=="function";)u=o===r?arguments.length:i+a.length,a=a.apply(this,Array.prototype.slice.call(arguments,i,u)),o+=1,i=u;return a})}),iu=jm;var Dm=f(function(r,t){for(var o=r(t),a=[];o&&o.length;)a[a.length]=o[0],o=r(o[1]);return a}),uu=Dm;var Mm=f(Wr(ft,C)),fu=Mm;var qm=function(){function n(r,t){this.xf=t,this.pred=r,this.items=[]}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return rr(this.pred,t,this.items)?r:(this.items.push(t),this.xf["@@transducer/step"](r,t))},n}();function Bn(n){return function(r){return new qm(n,r)}}var Fm=f(_([],Bn,function(n,r){for(var t=0,o=r.length,a=[],i;t<o;)i=r[t],rr(n,i,a)||(a[a.length]=i),t+=1;return a})),Fe=Fm;var Um=l(function(r,t,o){return Fe(r,C(t,o))}),su=Um;var zm=l(function(r,t,o){return r(o)?o:t(o)}),cu=zm;var Vm=ne(ur),Ue=Vm;var Xm=l(function(r,t,o){for(var a=o;!r(a);)a=t(a);return a}),pu=Xm;var Km=f(function(n,r){return n in r&&P(r[n])?tr(function(t){return Vr(n,t,r)},r[n]):[r]}),lu=Km;var Hm=p(function(r){var t,o=[];for(t in r)o[o.length]=r[t];return o}),mu=Hm;var Qm=function(n){return{value:n,"fantasy-land/map":function(){return this}}},Zm=f(function(r,t){return r(Qm)(t).value}),du=Zm;var Jm=l(function(r,t,o){return r(o)?t(o):o}),Mt=Jm;var Gm=f(function(r,t){for(var o in r)if(k(o,r)&&!r[o](t[o]))return!1;return!0}),ze=Gm;var Ym=f(function(r,t){for(var o in r)if(k(o,r)&&r[o](t[o]))return!0;return!1}),hu=Ym;var $m=f(function(r,t){return ze(L(B,r),t)}),Ve=$m;var rd=f(function(r,t){for(var o=new dr,a=0;a<r.length;a+=1)o.add(r[a]);return Or(o.has.bind(o),t)}),yu=rd;var td=f(function(r,t){return!!(!r^!t)}),vu=td;var ed=f(function(r,t){for(var o=0,a=r.length,i,u=t.length,c=[];o<a;){for(i=0;i<u;)c[c.length]=[r[o],t[i]],i+=1;o+=1}return c}),gu=ed;var nd=f(function(r,t){for(var o=[],a=0,i=Math.min(r.length,t.length);a<i;)o[a]=[r[a],t[a]],a+=1;return o}),xu=nd;var od=f(function(r,t){for(var o=0,a=Math.min(r.length,t.length),i={};o<a;)i[r[o]]=t[o],o+=1;return i}),_u=od;var ad=l(function(r,t,o){for(var a=[],i=0,u=Math.min(t.length,o.length);i<u;)a[i]=r(t[i],o[i]),i+=1;return a}),wu=ad;var id=p(function(r){return S(r.length,function(){var o=arguments;return function(){return r.apply(this,o)}})}),Iu=id;var Ru={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Mn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},ud=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Xe={CSS:{},springs:{}};function yr(n,r,t){return Math.min(Math.max(n,r),t)}function qt(n,r){return n.indexOf(r)>-1}function Ln(n,r){return n.apply(null,r)}var v={arr:function(n){return Array.isArray(n)},obj:function(n){return qt(Object.prototype.toString.call(n),"Object")},pth:function(n){return v.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||v.svg(n)},str:function(n){return typeof n=="string"},fnc:function(n){return typeof n=="function"},und:function(n){return typeof n>"u"},nil:function(n){return v.und(n)||n===null},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return v.hex(n)||v.rgb(n)||v.hsl(n)},key:function(n){return!Ru.hasOwnProperty(n)&&!Mn.hasOwnProperty(n)&&n!=="targets"&&n!=="keyframes"}};function Pu(n){var r=/\(([^)]+)\)/.exec(n);return r?r[1].split(",").map(function(t){return parseFloat(t)}):[]}function Eu(n,r){var t=Pu(n),o=yr(v.und(t[0])?1:t[0],.1,100),a=yr(v.und(t[1])?100:t[1],.1,100),i=yr(v.und(t[2])?10:t[2],.1,100),u=yr(v.und(t[3])?0:t[3],.1,100),c=Math.sqrt(a/o),s=i/(2*Math.sqrt(a*o)),d=s<1?c*Math.sqrt(1-s*s):0,m=1,h=s<1?(s*c+-u)/d:-u+c;function g(O){var x=r?r*O/1e3:O;return s<1?x=Math.exp(-x*s*c)*(m*Math.cos(d*x)+h*Math.sin(d*x)):x=(m+h*x)*Math.exp(-x*c),O===0||O===1?O:1-x}function W(){var O=Xe.springs[n];if(O)return O;for(var x=1/6,b=0,j=0;;)if(b+=x,g(b)===1){if(j++,j>=16)break}else j=0;var z=b*x*1e3;return Xe.springs[n]=z,z}return r?g:W}function fd(n){return n===void 0&&(n=10),function(r){return Math.ceil(yr(r,1e-6,1)*n)*(1/n)}}var sd=function(){var n=11,r=1/(n-1);function t(m,h){return 1-3*h+3*m}function o(m,h){return 3*h-6*m}function a(m){return 3*m}function i(m,h,g){return((t(h,g)*m+o(h,g))*m+a(h))*m}function u(m,h,g){return 3*t(h,g)*m*m+2*o(h,g)*m+a(h)}function c(m,h,g,W,O){var x,b,j=0;do b=h+(g-h)/2,x=i(b,W,O)-m,x>0?g=b:h=b;while(Math.abs(x)>1e-7&&++j<10);return b}function s(m,h,g,W){for(var O=0;O<4;++O){var x=u(h,g,W);if(x===0)return h;var b=i(h,g,W)-m;h-=b/x}return h}function d(m,h,g,W){if(!(0<=m&&m<=1&&0<=g&&g<=1))return;var O=new Float32Array(n);if(m!==h||g!==W)for(var x=0;x<n;++x)O[x]=i(x*r,m,g);function b(j){for(var z=0,w=1,A=n-1;w!==A&&O[w]<=j;++w)z+=r;--w;var N=(j-O[w])/(O[w+1]-O[w]),$=z+N*r,q=u($,m,g);return q>=.001?s(j,$,m,g):q===0?$:c(j,z,z+r,m,g)}return function(j){return m===h&&g===W||j===0||j===1?j:i(b(j),h,W)}}return d}(),Tu=function(){var n={linear:function(){return function(o){return o}}},r={Sine:function(){return function(o){return 1-Math.cos(o*Math.PI/2)}},Circ:function(){return function(o){return 1-Math.sqrt(1-o*o)}},Back:function(){return function(o){return o*o*(3*o-2)}},Bounce:function(){return function(o){for(var a,i=4;o<((a=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((a*3-2)/22-o,2)}},Elastic:function(o,a){o===void 0&&(o=1),a===void 0&&(a=.5);var i=yr(o,1,10),u=yr(a,.1,2);return function(c){return c===0||c===1?c:-i*Math.pow(2,10*(c-1))*Math.sin((c-1-u/(Math.PI*2)*Math.asin(1/i))*(Math.PI*2)/u)}}},t=["Quad","Cubic","Quart","Quint","Expo"];return t.forEach(function(o,a){r[o]=function(){return function(i){return Math.pow(i,a+2)}}}),Object.keys(r).forEach(function(o){var a=r[o];n["easeIn"+o]=a,n["easeOut"+o]=function(i,u){return function(c){return 1-a(i,u)(1-c)}},n["easeInOut"+o]=function(i,u){return function(c){return c<.5?a(i,u)(c*2)/2:1-a(i,u)(c*-2+2)/2}},n["easeOutIn"+o]=function(i,u){return function(c){return c<.5?(1-a(i,u)(1-c*2))/2:(a(i,u)(c*2-1)+1)/2}}}),n}();function qn(n,r){if(v.fnc(n))return n;var t=n.split("(")[0],o=Tu[t],a=Pu(n);switch(t){case"spring":return Eu(n,r);case"cubicBezier":return Ln(sd,a);case"steps":return Ln(fd,a);default:return Ln(o,a)}}function Wu(n){try{var r=document.querySelectorAll(n);return r}catch{return}}function Ke(n,r){for(var t=n.length,o=arguments.length>=2?arguments[1]:void 0,a=[],i=0;i<t;i++)if(i in n){var u=n[i];r.call(o,u,i,n)&&a.push(u)}return a}function He(n){return n.reduce(function(r,t){return r.concat(v.arr(t)?He(t):t)},[])}function bu(n){return v.arr(n)?n:(v.str(n)&&(n=Wu(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function Fn(n,r){return n.some(function(t){return t===r})}function Un(n){var r={};for(var t in n)r[t]=n[t];return r}function jn(n,r){var t=Un(n);for(var o in n)t[o]=r.hasOwnProperty(o)?r[o]:n[o];return t}function Qe(n,r){var t=Un(n);for(var o in r)t[o]=v.und(n[o])?r[o]:n[o];return t}function cd(n){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);return r?"rgba("+r[1]+",1)":n}function pd(n){var r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t=n.replace(r,function(c,s,d,m){return s+s+d+d+m+m}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),a=parseInt(o[1],16),i=parseInt(o[2],16),u=parseInt(o[3],16);return"rgba("+a+","+i+","+u+",1)"}function ld(n){var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),t=parseInt(r[1],10)/360,o=parseInt(r[2],10)/100,a=parseInt(r[3],10)/100,i=r[4]||1;function u(g,W,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?g+(W-g)*6*O:O<1/2?W:O<2/3?g+(W-g)*(2/3-O)*6:g}var c,s,d;if(o==0)c=s=d=a;else{var m=a<.5?a*(1+o):a+o-a*o,h=2*a-m;c=u(h,m,t+1/3),s=u(h,m,t),d=u(h,m,t-1/3)}return"rgba("+c*255+","+s*255+","+d*255+","+i+")"}function md(n){if(v.rgb(n))return cd(n);if(v.hex(n))return pd(n);if(v.hsl(n))return ld(n)}function wr(n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(r)return r[1]}function dd(n){if(qt(n,"translate")||n==="perspective")return"px";if(qt(n,"rotate")||qt(n,"skew"))return"deg"}function Dn(n,r){return v.fnc(n)?n(r.target,r.id,r.total):n}function vr(n,r){return n.getAttribute(r)}function zn(n,r,t){var o=wr(r);if(Fn([t,"deg","rad","turn"],o))return r;var a=Xe.CSS[r+t];if(!v.und(a))return a;var i=100,u=document.createElement(n.tagName),c=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;c.appendChild(u),u.style.position="absolute",u.style.width=i+t;var s=i/u.offsetWidth;c.removeChild(u);var d=s*parseFloat(r);return Xe.CSS[r+t]=d,d}function Nu(n,r,t){if(r in n.style){var o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[r]||getComputedStyle(n).getPropertyValue(o)||"0";return t?zn(n,a,t):a}}function Vn(n,r){if(v.dom(n)&&!v.inp(n)&&(!v.nil(vr(n,r))||v.svg(n)&&n[r]))return"attribute";if(v.dom(n)&&Fn(ud,r))return"transform";if(v.dom(n)&&r!=="transform"&&Nu(n,r))return"css";if(n[r]!=null)return"object"}function Bu(n){if(v.dom(n)){for(var r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,o=new Map,a;a=t.exec(r);)o.set(a[1],a[2]);return o}}function hd(n,r,t,o){var a=qt(r,"scale")?1:0+dd(r),i=Bu(n).get(r)||a;return t&&(t.transforms.list.set(r,i),t.transforms.last=r),o?zn(n,i,o):i}function Xn(n,r,t,o){switch(Vn(n,r)){case"transform":return hd(n,r,o,t);case"css":return Nu(n,r,t);case"attribute":return vr(n,r);default:return n[r]||0}}function Kn(n,r){var t=/^(\*=|\+=|-=)/.exec(n);if(!t)return n;var o=wr(n)||0,a=parseFloat(r),i=parseFloat(n.replace(t[0],""));switch(t[0][0]){case"+":return a+i+o;case"-":return a-i+o;case"*":return a*i+o}}function Cu(n,r){if(v.col(n))return md(n);if(/\s/g.test(n))return n;var t=wr(n),o=t?n.substr(0,n.length-t.length):n;return r?o+r:o}function Hn(n,r){return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}function yd(n){return Math.PI*2*vr(n,"r")}function vd(n){return vr(n,"width")*2+vr(n,"height")*2}function gd(n){return Hn({x:vr(n,"x1"),y:vr(n,"y1")},{x:vr(n,"x2"),y:vr(n,"y2")})}function Lu(n){for(var r=n.points,t=0,o,a=0;a<r.numberOfItems;a++){var i=r.getItem(a);a>0&&(t+=Hn(o,i)),o=i}return t}function xd(n){var r=n.points;return Lu(n)+Hn(r.getItem(r.numberOfItems-1),r.getItem(0))}function ju(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return yd(n);case"rect":return vd(n);case"line":return gd(n);case"polyline":return Lu(n);case"polygon":return xd(n)}}function _d(n){var r=ju(n);return n.setAttribute("stroke-dasharray",r),r}function wd(n){for(var r=n.parentNode;v.svg(r)&&v.svg(r.parentNode);)r=r.parentNode;return r}function Du(n,r){var t=r||{},o=t.el||wd(n),a=o.getBoundingClientRect(),i=vr(o,"viewBox"),u=a.width,c=a.height,s=t.viewBox||(i?i.split(" "):[0,0,u,c]);return{el:o,viewBox:s,x:s[0]/1,y:s[1]/1,w:u,h:c,vW:s[2],vH:s[3]}}function Id(n,r){var t=v.str(n)?Wu(n)[0]:n,o=r||100;return function(a){return{property:a,el:t,svg:Du(t),totalLength:ju(t)*(o/100)}}}function bd(n,r,t){function o(m){m===void 0&&(m=0);var h=r+m>=1?r+m:0;return n.el.getPointAtLength(h)}var a=Du(n.el,n.svg),i=o(),u=o(-1),c=o(1),s=t?1:a.w/a.vW,d=t?1:a.h/a.vH;switch(n.property){case"x":return(i.x-a.x)*s;case"y":return(i.y-a.y)*d;case"angle":return Math.atan2(c.y-u.y,c.x-u.x)*180/Math.PI}}function Au(n,r){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,o=Cu(v.pth(n)?n.totalLength:n,r)+"";return{original:o,numbers:o.match(t)?o.match(t).map(Number):[0],strings:v.str(n)||r?o.split(t):[]}}function Qn(n){var r=n?He(v.arr(n)?n.map(bu):bu(n)):[];return Ke(r,function(t,o,a){return a.indexOf(t)===o})}function Mu(n){var r=Qn(n);return r.map(function(t,o){return{target:t,id:o,total:r.length,transforms:{list:Bu(t)}}})}function Ad(n,r){var t=Un(r);if(/^spring/.test(t.easing)&&(t.duration=Eu(t.easing)),v.arr(n)){var o=n.length,a=o===2&&!v.obj(n[0]);a?n={value:n}:v.fnc(r.duration)||(t.duration=r.duration/o)}var i=v.arr(n)?n:[n];return i.map(function(u,c){var s=v.obj(u)&&!v.pth(u)?u:{value:u};return v.und(s.delay)&&(s.delay=c?0:r.delay),v.und(s.endDelay)&&(s.endDelay=c===i.length-1?r.endDelay:0),s}).map(function(u){return Qe(u,t)})}function Od(n){for(var r=Ke(He(n.map(function(i){return Object.keys(i)})),function(i){return v.key(i)}).reduce(function(i,u){return i.indexOf(u)<0&&i.push(u),i},[]),t={},o=function(i){var u=r[i];t[u]=n.map(function(c){var s={};for(var d in c)v.key(d)?d==u&&(s.value=c[d]):s[d]=c[d];return s})},a=0;a<r.length;a++)o(a);return t}function Sd(n,r){var t=[],o=r.keyframes;o&&(r=Qe(Od(o),r));for(var a in r)v.key(a)&&t.push({name:a,tweens:Ad(r[a],n)});return t}function kd(n,r){var t={};for(var o in n){var a=Dn(n[o],r);v.arr(a)&&(a=a.map(function(i){return Dn(i,r)}),a.length===1&&(a=a[0])),t[o]=a}return t.duration=parseFloat(t.duration),t.delay=parseFloat(t.delay),t}function Rd(n,r){var t;return n.tweens.map(function(o){var a=kd(o,r),i=a.value,u=v.arr(i)?i[1]:i,c=wr(u),s=Xn(r.target,n.name,c,r),d=t?t.to.original:s,m=v.arr(i)?i[0]:d,h=wr(m)||wr(s),g=c||h;return v.und(u)&&(u=d),a.from=Au(m,g),a.to=Au(Kn(u,m),g),a.start=t?t.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=qn(a.easing,a.duration),a.isPath=v.pth(i),a.isPathTargetInsideSVG=a.isPath&&v.svg(r.target),a.isColor=v.col(a.from.original),a.isColor&&(a.round=1),t=a,a})}var qu={css:function(n,r,t){return n.style[r]=t},attribute:function(n,r,t){return n.setAttribute(r,t)},object:function(n,r,t){return n[r]=t},transform:function(n,r,t,o,a){if(o.list.set(r,t),r===o.last||a){var i="";o.list.forEach(function(u,c){i+=c+"("+u+") "}),n.style.transform=i}}};function Fu(n,r){var t=Mu(n);t.forEach(function(o){for(var a in r){var i=Dn(r[a],o),u=o.target,c=wr(i),s=Xn(u,a,c,o),d=c||wr(s),m=Kn(Cu(i,d),s),h=Vn(u,a);qu[h](u,a,m,o.transforms,!0)}})}function Pd(n,r){var t=Vn(n.target,r.name);if(t){var o=Rd(r,n),a=o[o.length-1];return{type:t,property:r.name,animatable:n,tweens:o,duration:a.end,delay:o[0].delay,endDelay:a.endDelay}}}function Ed(n,r){return Ke(He(n.map(function(t){return r.map(function(o){return Pd(t,o)})})),function(t){return!v.und(t)})}function Uu(n,r){var t=n.length,o=function(i){return i.timelineOffset?i.timelineOffset:0},a={};return a.duration=t?Math.max.apply(Math,n.map(function(i){return o(i)+i.duration})):r.duration,a.delay=t?Math.min.apply(Math,n.map(function(i){return o(i)+i.delay})):r.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(i){return o(i)+i.duration-i.endDelay})):r.endDelay,a}var Ou=0;function Td(n){var r=jn(Ru,n),t=jn(Mn,n),o=Sd(t,n),a=Mu(n.targets),i=Ed(a,o),u=Uu(i,t),c=Ou;return Ou++,Qe(r,{id:c,children:[],animatables:a,animations:i,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var lr=[],zu=function(){var n;function r(){!n&&(!Su()||!F.suspendWhenDocumentHidden)&&lr.length>0&&(n=requestAnimationFrame(t))}function t(a){for(var i=lr.length,u=0;u<i;){var c=lr[u];c.paused?(lr.splice(u,1),i--):(c.tick(a),u++)}n=u>0?requestAnimationFrame(t):void 0}function o(){F.suspendWhenDocumentHidden&&(Su()?n=cancelAnimationFrame(n):(lr.forEach(function(a){return a._onDocumentVisibility()}),zu()))}return typeof document<"u"&&document.addEventListener("visibilitychange",o),r}();function Su(){return!!document&&document.hidden}function F(n){n===void 0&&(n={});var r=0,t=0,o=0,a,i=0,u=null;function c(w){var A=window.Promise&&new Promise(function(N){return u=N});return w.finished=A,A}var s=Td(n),d=c(s);function m(){var w=s.direction;w!=="alternate"&&(s.direction=w!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,a.forEach(function(A){return A.reversed=s.reversed})}function h(w){return s.reversed?s.duration-w:w}function g(){r=0,t=h(s.currentTime)*(1/F.speed)}function W(w,A){A&&A.seek(w-A.timelineOffset)}function O(w){if(s.reversePlayback)for(var N=i;N--;)W(w,a[N]);else for(var A=0;A<i;A++)W(w,a[A])}function x(w){for(var A=0,N=s.animations,$=N.length;A<$;){var q=N[A],Hr=q.animatable,gr=q.tweens,E=gr.length-1,I=gr[E];E&&(I=Ke(gr,function(df){return w<df.end})[0]||I);for(var Ir=yr(w-I.start-I.delay,0,I.duration)/I.duration,nr=isNaN(Ir)?1:I.easing(Ir),Mr=I.to.strings,Ye=I.round,$e=[],mf=I.to.numbers.length,Qr=void 0,mt=0;mt<mf;mt++){var dt=void 0,eo=I.to.numbers[mt],no=I.from.numbers[mt]||0;I.isPath?dt=bd(I.value,nr*eo,I.isPathTargetInsideSVG):dt=no+nr*(eo-no),Ye&&(I.isColor&&mt>2||(dt=Math.round(dt*Ye)/Ye)),$e.push(dt)}var oo=Mr.length;if(!oo)Qr=$e[0];else{Qr=Mr[0];for(var ht=0;ht<oo;ht++){var mh=Mr[ht],ao=Mr[ht+1],rn=$e[ht];isNaN(rn)||(ao?Qr+=rn+ao:Qr+=rn+" ")}}qu[q.type](Hr.target,q.property,Qr,Hr.transforms),q.currentValue=Qr,A++}}function b(w){s[w]&&!s.passThrough&&s[w](s)}function j(){s.remaining&&s.remaining!==!0&&s.remaining--}function z(w){var A=s.duration,N=s.delay,$=A-s.endDelay,q=h(w);s.progress=yr(q/A*100,0,100),s.reversePlayback=q<s.currentTime,a&&O(q),!s.began&&s.currentTime>0&&(s.began=!0,b("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,b("loopBegin")),q<=N&&s.currentTime!==0&&x(0),(q>=$&&s.currentTime!==A||!A)&&x(A),q>N&&q<$?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,b("changeBegin")),b("change"),x(q)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,b("changeComplete")),s.currentTime=yr(q,0,A),s.began&&b("update"),w>=A&&(t=0,j(),s.remaining?(r=o,b("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&m()):(s.paused=!0,s.completed||(s.completed=!0,b("loopComplete"),b("complete"),!s.passThrough&&"Promise"in window&&(u(),d=c(s)))))}return s.reset=function(){var w=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=w==="reverse",s.remaining=s.loop,a=s.children,i=a.length;for(var A=i;A--;)s.children[A].reset();(s.reversed&&s.loop!==!0||w==="alternate"&&s.loop===1)&&s.remaining++,x(s.reversed?s.duration:0)},s._onDocumentVisibility=g,s.set=function(w,A){return Fu(w,A),s},s.tick=function(w){o=w,r||(r=o),z((o+(t-r))*F.speed)},s.seek=function(w){z(h(w))},s.pause=function(){s.paused=!0,g()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,lr.push(s),g(),zu())},s.reverse=function(){m(),s.completed=!s.reversed,g()},s.restart=function(){s.reset(),s.play()},s.remove=function(w){var A=Qn(w);Vu(A,s)},s.reset(),s.autoplay&&s.play(),s}function ku(n,r){for(var t=r.length;t--;)Fn(n,r[t].animatable.target)&&r.splice(t,1)}function Vu(n,r){var t=r.animations,o=r.children;ku(n,t);for(var a=o.length;a--;){var i=o[a],u=i.animations;ku(n,u),!u.length&&!i.children.length&&o.splice(a,1)}!t.length&&!o.length&&r.pause()}function Wd(n){for(var r=Qn(n),t=lr.length;t--;){var o=lr[t];Vu(r,o)}}function Nd(n,r){r===void 0&&(r={});var t=r.direction||"normal",o=r.easing?qn(r.easing):null,a=r.grid,i=r.axis,u=r.from||0,c=u==="first",s=u==="center",d=u==="last",m=v.arr(n),h=parseFloat(m?n[0]:n),g=m?parseFloat(n[1]):0,W=wr(m?n[1]:n)||0,O=r.start||0+(m?h:0),x=[],b=0;return function(j,z,w){if(c&&(u=0),s&&(u=(w-1)/2),d&&(u=w-1),!x.length){for(var A=0;A<w;A++){if(!a)x.push(Math.abs(u-A));else{var N=s?(a[0]-1)/2:u%a[0],$=s?(a[1]-1)/2:Math.floor(u/a[0]),q=A%a[0],Hr=Math.floor(A/a[0]),gr=N-q,E=$-Hr,I=Math.sqrt(gr*gr+E*E);i==="x"&&(I=-gr),i==="y"&&(I=-E),x.push(I)}b=Math.max.apply(Math,x)}o&&(x=x.map(function(nr){return o(nr/b)*b})),t==="reverse"&&(x=x.map(function(nr){return i?nr<0?nr*-1:-nr:Math.abs(b-nr)}))}var Ir=m?(g-h)/b:h;return O+Ir*(Math.round(x[z]*100)/100)+W}}function Bd(n){n===void 0&&(n={});var r=F(n);return r.duration=0,r.add=function(t,o){var a=lr.indexOf(r),i=r.children;a>-1&&lr.splice(a,1);function u(g){g.passThrough=!0}for(var c=0;c<i.length;c++)u(i[c]);var s=Qe(t,jn(Mn,n));s.targets=s.targets||n.targets;var d=r.duration;s.autoplay=!1,s.direction=r.direction,s.timelineOffset=v.und(o)?d:Kn(o,d),u(r),r.seek(s.timelineOffset);var m=F(s);u(m),i.push(m);var h=Uu(i,n);return r.delay=h.delay,r.endDelay=h.endDelay,r.duration=h.duration,r.seek(0),r.reset(),r.autoplay&&r.play(),r},r}F.version="3.2.1";F.speed=1;F.suspendWhenDocumentHidden=!0;F.running=lr;F.remove=Wd;F.get=Xn;F.set=Fu;F.convertPx=zn;F.path=Id;F.setDashoffset=_d;F.stagger=Nd;F.timeline=Bd;F.easing=qn;F.penner=Tu;F.random=function(n,r){return Math.floor(Math.random()*(r-n+1))+n};var jr=F;var Hu=0,Qu=Object.create(null),Cd=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let n of Cd)for(let r of["-webkit-","-ms-","-moz-","-o-",""])Qu[r+n]=!0;function Zn(n,r){return n.replace(/&/g,r)}function Xu(n){return n.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Ld(n){let r=5381,t=n.length;for(;t--;)r=r*33^n.charCodeAt(t);return(r>>>0).toString(36)}function jd(n,r){return n.indexOf("&")===-1?`${r} ${n}`:Zn(n,r)}function Ku(n,r){return n[0]>r[0]?1:n[0]<r[0]?-1:n[2]-r[2]}function Dd([n,r]){return typeof r=="number"&&r&&!Qu[n]?`${n}:${r}px`:`${n}:${String(r)}`}function Zu(n,r,t,o,a){let i=[],u=[];for(let x of Object.keys(o)){let b=o[x];if(x.charCodeAt(0)!==36&&b!=null)if(Array.isArray(b)){let j=Xu(x);for(let z=0;z<b.length;z++){let w=b[z];w!=null&&i.push([j,w,z])}}else typeof b=="object"?u.push([x,b,0]):i.push([Xu(x),b,0])}let c=!!o.$unique,s=o.$global?"":a,d=s?u:u.sort(Ku),m=i.sort(Ku).map(Dd).join(";"),h=m,g=s,W=n,O=r;t.charCodeAt(0)===64?(W=[],O=[],s&&m&&O.push({selector:g,style:m,isUnique:c}),n.push({selector:t,rules:W,styles:O,style:s?"":m})):(g=s?t?jd(t,s):s:t,m&&r.push({selector:g,style:m,isUnique:c}));for(let[x,b]of d)h+=`|${x}#${Zu(W,O,x,b,g)}`;return h}function Ju(n,r,t,o,a){for(let{selector:i,style:u,isUnique:c}of t){let s=Zn(i,a),d=new Gn(u,c?(++Hu).toString(36):o);d.add(new Jn(s)),n.add(d)}for(let{selector:i,style:u,rules:c,styles:s}of r){let d=Zn(i,a),m=new Yn(d,u,o);Ju(m,c,s,o,a),n.add(m)}}function Gu(n){let r="";for(let t=0;t<n.length;t++)r+=n[t];return r}var Ft=class n{constructor(r){this.changes=r,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(r){let t=r.id,o=this._counters[t]||0,a=this._children[t]||r.clone();if(this._counters[t]=o+1,o===0)this._children[t]=a,this._keys.push(t),this.sheet.push(a.getStyles()),this.changeId++,this.changes&&this.changes.add(a,this._keys.length-1);else if(a instanceof n&&r instanceof n){let i=a.changeId;if(a.merge(r),a.changeId!==i){let u=this._keys.indexOf(t);this.sheet.splice(u,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,u,u)}}}remove(r){let t=r.id,o=this._counters[t];if(o){this._counters[t]=o-1;let a=this._children[t],i=this._keys.indexOf(t);if(o===1)delete this._counters[t],delete this._children[t],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes&&this.changes.remove(a,i);else if(a instanceof n&&r instanceof n){let u=a.changeId;a.unmerge(r),a.changeId!==u&&(this.sheet.splice(i,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,i,i))}}}values(){return this._keys.map(r=>this._children[r])}merge(r){for(let t of r.values())this.add(t);return this}unmerge(r){for(let t of r.values())this.remove(t);return this}clone(){return new n().merge(this)}},Jn=class{constructor(r){this.selector=r}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Gn=class n extends Ft{constructor(r,t){super(),this.style=r,this.pid=t}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new n(this.style,this.pid).merge(this)}},Yn=class n extends Ft{constructor(r,t,o){super(),this.rule=r,this.style=t,this.pid=o}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${Gu(this.sheet)}}`}clone(){return new n(this.rule,this.style,this.pid).merge(this)}},$n=class n extends Ft{constructor(r,t){super(t),this.id=r}registerStyle(r){let t=[],o=[],a=Zu(t,o,"",r,".&"),i=`f${Ld(a)}`;return Ju(this,t,o,i,i),i}getStyles(){return Gu(this.sheet)}clone(){return new n(this.id,this.changes).merge(this)}};function Yu(n){return new $n(`f${(++Hu).toString(36)}`,n)}var Md=console.log,Ze=Jt([Ie,Ot(Tt)]),Ut=Yt([er,Tt]),qd=(n,r=pr,t=pr,...o)=>{let a=n,i=o;return{get state(){return a},mod:u=>{let c=rt(a),s=t(Ee(a,r(u,c)),c);return Ot(B)(s,a)&&(a=s,L(ee,i)),{onceAfter:d=>Ut(d)?()=>{}:d(a)}},subscribe:u=>i=$t(u,i)}},lt=document,Je=n=>lt.createElement(n),$u=n=>lt.createTextNode(n),rf=n=>lt.head.appendChild(n),tf=n=>lt.body.appendChild(n),Dr="lcc"+crypto.randomUUID(),Fd=jt(n=>{Ut(n[Dr].added)&&Ut(n[Dr].removed)||new MutationObserver((r,t)=>L(o=>{Et(n,o.addedNodes)&&Ze(n[Dr].added)&&n[Dr].added(n),Et(n,o.removedNodes)&&Ze(n[Dr].removed)&&(t.disconnect(),n[Dr].removed(n))})(r)).observe(window.document,{childList:!0,subtree:!0})}),ef=(n,r,...t)=>{let o=Je(n);return Wt((a,i)=>Ut(a)?delete o[i]:o[i]=a,pe("lifecycle",r)),o[Dr]={},Wt((a,i)=>o[Dr][i]=a,r.lifecycle),L(a=>{a&&o.appendChild(Kr(String,a)?$u(a):a)},Mt(Kr(Array),Ue,t)),Fd(o)},Ud=(n,r,t)=>{let o=ef(n,r);return o.innerHTML=t,o},pt=n=>lt.getElementById(n),nf=n=>{n.preventDefault(),n.stopPropagation()},of=n=>(r,t=!0)=>o=>{n(o)&&(r(o),t&&nf(o))},zd=n=>{Ze(pt(n))&&pt(n).offsetParent!=null&&pt(n).focus()},Vd=n=>{let r=Je("script");r.setAttribute("src",n),r.async=!1,tf(r)},af=n=>{let r=Yu(),t=r.registerStyle(n),o=Je("style");return o.textContent=r.getStyles(),rf(o),t},Xd=Wr(Yr(Wr),L(jt)),Kd=n=>pt(n).value,Hd=n=>Nt({[`disabled${n}`]:!0}),Qd=n=>Nt({[`disabled${n}`]:!1}),Zd=n=>Mt(r=>n.state[`disabled${r.id}`],Rr("disabled",!0)),Jd=n=>pt(n).value="",uf=n=>{let r=null;return t=>{r&&clearTimeout(r),r=setTimeout(t,n)}},Gd=window.localStorage,Yd=JSON.parse,$d=JSON.stringify,rh=of(Ve({key:"Enter",keyCode:13}));af({$global:!0,body:{margin:0,padding:0,letterSpacing:"0.2px",fontSize:"14pt",boxSizing:"border-box"},"a,a:visited,a:hover,a:active":{color:"LinkText"}},!0);var ro=1e3,th=ro*6,eh=n=>()=>{jr({targets:n,translateY:["-100%",0],duration:ro,easing:"easeInOutQuad",complete:()=>{jr({targets:n,top:[0,"-100%"],duration:ro,delay:th,easing:"easeInOutQuad",complete:()=>{jr.remove(n)}})}})},to=1e3,nh=to*2,oh=n=>()=>{jr({targets:n,opacity:["0%","100%"],duration:to,easing:"easeInOutQuad",complete:()=>{jr({targets:n,opacity:["100%","0%"],duration:to,delay:nh,easing:"easeInOutQuad",complete:()=>{jr.remove(n)}})}})},ah=uf(1e3);Object.assign(globalThis,{R:Cn,anime:jr,l:Md,neon:Ze,eon:Ut,store:qd,d:lt,dce:Je,dctn:$u,dhac:rf,dbac:tf,e:ef,innere:Ud,ge:pt,stopEvent:nf,onEFN:of,onEnter:rh,focusIfVisible:zd,addjs:Vd,addcss:af,callall:Xd,valueByID:Kd,disableID:Hd,enableID:Qd,clearValueByID:Jd,disableable:Zd,debounce:uf,runAfterOneSecondPause:ah,wls:Gd,jp:Yd,js:$d,slideDownUp:eh,fadeInOut:oh});var zt=n=>"{{.Cfg.SuperTokensWebLibBase}}"+n;addjs(zt("/website.js"));addjs(zt("/supertokens.js"));addjs(zt("/session.js"));addjs(zt("/passwordless.js"));addjs(zt("/emailverification.js"));var ih=addcss({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),uh=addcss({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),pf={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},l3=addcss(pf),Ge=addcss(R.mergeRight(pf,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),fh=addcss({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),sh=addcss({width:"24px",height:"24px"}),ff=addcss({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),sf=addcss({textAlign:"center"}),ch=addcss({opacity:"0%"}),cf=addcss({marginTop:"10px"}),lf={display:"flex",alignItems:"center"},m3=addcss(lf),ph=addcss(R.mergeRight(lf,{width:"32px",height:"32px",justifyContent:"center"})),lh=R.replace(/(.)[^@]*(.)@(.).*(.\.[^.]+)/,"$1-$2@$3-$4");window.onload=()=>{let n=R.equals("{{.Cfg.PlainUI}}","true"),r=E=>"{{.Cfg.APIBasePath}}"+E,t=()=>R.equals("{{.LoggedIn}}","true"),o=()=>"{{.UserEmail}}",a=()=>"{{.UserID}}",i="st"+crypto.randomUUID(),u=store({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[]}),c=()=>{globalThis.stAuth.sendOTP(valueByID(i+"email")),disableID(i+"email"),disableID(i+"emailButton")},s=()=>{globalThis.stAuth.verifyOTP(valueByID(i+"otp")),disableID(i+"otp"),disableID(i+"otpButton")},d=()=>{u.setState(R.mergeRight(u.state,{stState:"init",displayState:m.init()})),N.state("loggedOut")},m={init:()=>null,enterEmail:()=>e("div",{className:ff},e("input",disableable(u)({id:i+"email",type:"email",placeholder:"your.email@address.com",onkeyup:onEnter(c),className:sf})),e("button",disableable(u)({id:i+"emailButton",onclick:c}),"Request one-time code"),e("button",{className:cf,onclick:d},"Close")),enterOTP:()=>e("div",{className:ff},e("input",disableable(u)({id:i+"otp",type:"text",placeholder:"One-time code in email",onkeyup:onEnter(s),className:sf})),e("button",disableable(u)({id:i+"otpButton",onclick:s}),"Verify code"),e("button",{className:cf,onclick:d},"Close")),showEmail:()=>n?null:e("div",{className:ph},e("div",{id:i+"userEmail",className:ch},o()),e("button",{className:fh,onclick:fadeInOut("#"+i+"userEmail")},e("img",{className:sh,src:t()?r("/person_outline.svg"):null})))},h=E=>({init:R.identity,loggedOut:R.identity,checkEmail:R.mergeLeft({displayState:m.enterOTP()}),wrongOTP:R.identity,oldOTP:R.identity,failedOTP:R.identity,signUpSuccess:R.tap(()=>window.location.reload()),signInSuccess:R.tap(()=>window.location.reload()),loggedIn:R.mergeLeft({displayState:m.showEmail()}),logoutCompleted:R.tap(()=>window.location.reload())})[E.stState](E),g=()=>{t()||d(),u.mod({showMenu:!u.state.showMenu})},W=()=>u.mod({showMenu:!1}),O=()=>{W(),u.state.stState==="loggedOut"?u.mod({displayState:m.enterEmail()}):u.state.stState==="loggedIn"&&globalThis.stAuth.logout()},x=null,b=E=>{neon(x)&&!x.contains(E.target)&&W()},j=E=>{x=E,document.removeEventListener("click",b,!0)},z=E=>{x=E,j(E),document.addEventListener("click",b,!0)},w=E=>u.mod({menuItems:R.map(([I,Ir])=>e("div",{},e("a",{href:"#",className:Ge,onclick:()=>{W(),Ir()}},I)),R.reject(eon,E))}),A=()=>e("div",{id:i,className:ih,style:"opacity:"+(u.state.stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:W,lifecycle:{added:z,removed:j}},e("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:g},e("img",{style:"width:32px;height:32px",src:r("/menu.svg")})),u.state.displayState,u.state.showMenu?e("div",{className:uh},t()?null:e("div",{},e("a",{href:"#",className:Ge,onclick:O},"login")),t()?e("div",{className:Ge,style:"cursor:default;font-variant:normal"},lh(o())):null,...u.state.menuItems,t()?e("div",{},e("a",{href:"#",className:Ge,onclick:O},"logout")):null):null);u.subscribe(()=>{ge(i).replaceWith(A()),focusIfVisible(i+"email"),focusIfVisible(i+"otp")}),dbac(A());let N={catch:(E,I)=>showError(E,I),state:(E,I)=>u.mod({stState:E,stData:I})},$=(E,I)=>N.catch(E+(I.isSuperTokensGeneralError?" (some other failure)":""),I);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let q=async E=>{try{(await supertokensPasswordless.createCode({email:E})).status!="SIGN_IN_UP_NOT_ALLOWED"&&N.state("checkEmail")}catch(I){$("sendOTP",I)}},Hr=async E=>{try{let I=await supertokensPasswordless.consumeCode({userInputCode:E});I.status==="OK"?I.createdNewRecipeUser&&I.user.loginMethods.length===1?N.state("signUpSuccess",I.user.id):N.state("signInSuccess",I.user.id):I.status==="INCORRECT_USER_INPUT_CODE_ERROR"?N.state("wrongOTP"):I.status==="EXPIRED_USER_INPUT_CODE_ERROR"?N.state("oldOTP"):N.state("failedOTP")}catch(I){$("handleOTP",I)}},gr=async()=>{await supertokensSession.signOut(),N.state("logoutCompleted")};globalThis.stAuth={sendOTP:q,verifyOTP:Hr,logout:gr,isLoggedIn:t,userEmail:o,userID:a,setMenuItems:w},neon(globalThis.authHooks)&&globalThis.authHooks.forEach(([E,I])=>{let Ir=N[E];N[E]=(nr,Mr)=>{Ir(nr,Mr),I(nr,Mr)}}),neon(globalThis.menuItems)&&w(globalThis.menuItems),t()?N.state("loggedIn",o()):N.state("loggedOut"),anime({targets:"#"+i,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>anime.remove("#"+i)})};})();
(()=>{var hf=Object.defineProperty;var yf=(n,r)=>{for(var t in r)hf(n,t,{get:r[t],enumerable:!0})};var Cn={};yf(Cn,{F:()=>io,T:()=>uo,__:()=>fo,add:()=>br,addIndex:()=>so,addIndexRight:()=>co,adjust:()=>Vt,all:()=>Xt,allPass:()=>Jt,always:()=>Sr,and:()=>Gt,andThen:()=>Qi,any:()=>go,anyPass:()=>Yt,ap:()=>Gr,aperture:()=>xo,append:()=>$t,apply:()=>Yr,applySpec:()=>wo,applyTo:()=>Io,ascend:()=>bo,assoc:()=>Rr,assocPath:()=>$r,binary:()=>Ao,bind:()=>Zt,both:()=>Oo,call:()=>ee,chain:()=>ne,clamp:()=>Po,clone:()=>rt,collectBy:()=>Eo,comparator:()=>To,complement:()=>Ot,compose:()=>Wr,composeWith:()=>Wo,concat:()=>nt,cond:()=>No,construct:()=>Bo,constructN:()=>ue,converge:()=>fe,count:()=>Co,countBy:()=>Lo,curry:()=>ot,curryN:()=>S,dec:()=>jo,defaultTo:()=>at,descend:()=>Do,difference:()=>kt,differenceWith:()=>Rt,dissoc:()=>pe,dissocPath:()=>ce,divide:()=>qo,drop:()=>le,dropLast:()=>Fo,dropLastWhile:()=>Uo,dropRepeats:()=>zo,dropRepeatsBy:()=>Vo,dropRepeatsWith:()=>ut,dropWhile:()=>Xo,either:()=>Ko,empty:()=>he,endsWith:()=>Ho,eqBy:()=>Pt,eqProps:()=>Qo,equals:()=>B,evolve:()=>Zo,filter:()=>Zr,find:()=>Jo,findIndex:()=>Go,findLast:()=>Yo,findLastIndex:()=>$o,flatten:()=>ra,flip:()=>ve,forEach:()=>ta,forEachObjIndexed:()=>ea,fromPairs:()=>na,groupBy:()=>oa,groupWith:()=>aa,gt:()=>ia,gte:()=>ua,has:()=>fa,hasIn:()=>sa,hasPath:()=>xe,head:()=>ae,identical:()=>pa,identity:()=>pr,ifElse:()=>la,inc:()=>ma,includes:()=>Et,indexBy:()=>da,indexOf:()=>ha,init:()=>ya,innerJoin:()=>va,insert:()=>ga,insertAll:()=>xa,intersection:()=>_a,intersperse:()=>wa,into:()=>Ia,invert:()=>ba,invertObj:()=>Aa,invoker:()=>hr,is:()=>Kr,isEmpty:()=>Tt,isNil:()=>er,isNotNil:()=>Ie,join:()=>Oa,juxt:()=>be,keys:()=>D,keysIn:()=>Sa,last:()=>me,lastIndexOf:()=>ka,length:()=>Ae,lens:()=>Cr,lensIndex:()=>Ra,lensPath:()=>Pa,lensProp:()=>Ea,lift:()=>Er,liftN:()=>te,lt:()=>Ta,lte:()=>Wa,map:()=>L,mapAccum:()=>Na,mapAccumRight:()=>Ba,mapObjIndexed:()=>Wt,match:()=>Ca,mathMod:()=>La,max:()=>Q,maxBy:()=>ja,mean:()=>Re,median:()=>Da,memoizeWith:()=>Ma,mergeAll:()=>qa,mergeDeepLeft:()=>Fa,mergeDeepRight:()=>Pe,mergeDeepWith:()=>Ua,mergeDeepWithKey:()=>Lr,mergeLeft:()=>Nt,mergeRight:()=>Ee,mergeWith:()=>za,mergeWithKey:()=>ct,min:()=>Te,minBy:()=>Va,modify:()=>Xa,modifyPath:()=>We,modulo:()=>Ka,move:()=>Ha,multiply:()=>Ne,nAry:()=>Pr,negate:()=>Za,none:()=>Ja,not:()=>oe,nth:()=>J,nthArg:()=>Ga,o:()=>Ya,objOf:()=>we,of:()=>$a,omit:()=>ri,on:()=>ti,once:()=>ei,or:()=>de,otherwise:()=>ni,over:()=>Be,pair:()=>ai,partial:()=>ii,partialObject:()=>Qa,partialRight:()=>ui,partition:()=>fi,path:()=>fr,pathEq:()=>si,pathOr:()=>ci,pathSatisfies:()=>pi,paths:()=>Se,pick:()=>li,pickAll:()=>Ce,pickBy:()=>mi,pipe:()=>St,pipeWith:()=>ie,pluck:()=>mr,prepend:()=>Le,product:()=>di,project:()=>hi,promap:()=>yi,prop:()=>G,propEq:()=>vi,propIs:()=>gi,propOr:()=>xi,propSatisfies:()=>_i,props:()=>wi,range:()=>Ii,reduce:()=>X,reduceBy:()=>Nr,reduceRight:()=>De,reduceWhile:()=>bi,reduced:()=>Ai,reject:()=>Or,remove:()=>se,repeat:()=>Oi,replace:()=>Si,reverse:()=>et,scan:()=>Pi,sequence:()=>qe,set:()=>Ei,slice:()=>M,sort:()=>Ti,sortBy:()=>Wi,sortWith:()=>Ni,split:()=>Bi,splitAt:()=>Ci,splitEvery:()=>Li,splitWhen:()=>ji,splitWhenever:()=>Di,startsWith:()=>Mi,subtract:()=>qi,sum:()=>ke,swap:()=>Ui,symmetricDifference:()=>zi,symmetricDifferenceWith:()=>Vi,tail:()=>tt,take:()=>it,takeLast:()=>ye,takeLastWhile:()=>Xi,takeWhile:()=>Ki,tap:()=>jt,test:()=>Hi,thunkify:()=>Iu,times:()=>Me,toLower:()=>Zi,toPairs:()=>Ji,toPairsIn:()=>Gi,toString:()=>H,toUpper:()=>Yi,transduce:()=>$i,transpose:()=>ru,traverse:()=>tu,trim:()=>eu,tryCatch:()=>nu,type:()=>Ur,unapply:()=>ou,unary:()=>au,uncurryN:()=>iu,unfold:()=>uu,union:()=>fu,unionWith:()=>su,uniq:()=>ft,uniqBy:()=>_e,uniqWith:()=>Fe,unless:()=>cu,unnest:()=>Ue,until:()=>pu,unwind:()=>lu,update:()=>Oe,useWith:()=>je,values:()=>re,valuesIn:()=>mu,view:()=>du,when:()=>Mt,where:()=>ze,whereAny:()=>hu,whereEq:()=>Ve,without:()=>yu,xor:()=>vu,xprod:()=>gu,zip:()=>xu,zipObj:()=>_u,zipWith:()=>wu});var vf=function(){return!1},io=vf;var gf=function(){return!0},uo=gf;var fo={"@@functional/placeholder":!0};function T(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function p(n){return function r(t){return arguments.length===0||T(t)?r:n.apply(this,arguments)}}function f(n){return function r(t,o){switch(arguments.length){case 0:return r;case 1:return T(t)?r:p(function(a){return n(t,a)});default:return T(t)&&T(o)?r:T(t)?p(function(a){return n(a,o)}):T(o)?p(function(a){return n(t,a)}):n(t,o)}}}var xf=f(function(r,t){return Number(r)+Number(t)}),br=xf;function C(n,r){n=n||[],r=r||[];var t,o=n.length,a=r.length,i=[];for(t=0;t<o;)i[i.length]=n[t],t+=1;for(t=0;t<a;)i[i.length]=r[t],t+=1;return i}function U(n,r){switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,o){return r.apply(this,arguments)};case 3:return function(t,o,a){return r.apply(this,arguments)};case 4:return function(t,o,a,i){return r.apply(this,arguments)};case 5:return function(t,o,a,i,u){return r.apply(this,arguments)};case 6:return function(t,o,a,i,u,c){return r.apply(this,arguments)};case 7:return function(t,o,a,i,u,c,s){return r.apply(this,arguments)};case 8:return function(t,o,a,i,u,c,s,d){return r.apply(this,arguments)};case 9:return function(t,o,a,i,u,c,s,d,m){return r.apply(this,arguments)};case 10:return function(t,o,a,i,u,c,s,d,m,h){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function or(n,r,t){return function(){for(var o=[],a=0,i=n,u=0,c=!1;u<r.length||a<arguments.length;){var s;u<r.length&&(!T(r[u])||a>=arguments.length)?s=r[u]:(s=arguments[a],a+=1),o[u]=s,T(s)?c=!0:i-=1,u+=1}return!c&&i<=0?t.apply(this,o):U(Math.max(0,i),or(n,o,t))}}var _f=f(function(r,t){return r===1?p(t):U(r,or(r,[],t))}),S=_f;var wf=p(function(r){return S(r.length,function(){var t=0,o=arguments[0],a=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=o.apply(this,C(arguments,[t,a]));return t+=1,u},r.apply(this,i)})}),so=wf;var If=p(function(r){return S(r.length,function(){var t=arguments[0],o=arguments[arguments.length-1],a=o.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=t.apply(this,C(arguments,[a,o]));return a-=1,u},r.apply(this,i)})}),co=If;function l(n){return function r(t,o,a){switch(arguments.length){case 0:return r;case 1:return T(t)?r:f(function(i,u){return n(t,i,u)});case 2:return T(t)&&T(o)?r:T(t)?f(function(i,u){return n(i,o,u)}):T(o)?f(function(i,u){return n(t,i,u)}):p(function(i){return n(t,o,i)});default:return T(t)&&T(o)&&T(a)?r:T(t)&&T(o)?f(function(i,u){return n(i,u,a)}):T(t)&&T(a)?f(function(i,u){return n(i,o,u)}):T(o)&&T(a)?f(function(i,u){return n(t,i,u)}):T(t)?p(function(i){return n(i,o,a)}):T(o)?p(function(i){return n(t,i,a)}):T(a)?p(function(i){return n(t,o,i)}):n(t,o,a)}}}var bf=l(function(r,t,o){var a=o.length;if(r>=a||r<-a)return o;var i=(a+r)%a,u=C(o);return u[i]=t(o[i]),u}),Vt=bf;var P=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function qr(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function _(n,r,t){return function(){if(arguments.length===0)return t();var o=arguments[arguments.length-1];if(!P(o)){for(var a=0;a<n.length;){if(typeof o[n[a]]=="function")return o[n[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(qr(o)){var i=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(o)}}return t.apply(this,arguments)}}function V(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var y={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};var Af=function(){function n(r,t){this.xf=t,this.f=r,this.all=!0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.all&&(r=this.xf["@@transducer/step"](r,!0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)||(this.all=!1,r=V(this.xf["@@transducer/step"](r,!1))),r},n}();function tn(n){return function(r){return new Af(n,r)}}var Of=f(_(["all"],tn,function(r,t){for(var o=0;o<t.length;){if(!r(t[o]))return!1;o+=1}return!0})),Xt=Of;function Kt(n){for(var r=[],t;!(t=n.next()).done;)r.push(t.value);return r}function rr(n,r,t){for(var o=0,a=t.length;o<a;){if(n(r,t[o]))return!0;o+=1}return!1}function en(n){var r=String(n).match(/^function (\w*)/);return r==null?"":r[1]}function k(n,r){return Object.prototype.hasOwnProperty.call(r,n)}function Sf(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}var Fr=typeof Object.is=="function"?Object.is:Sf;var po=Object.prototype.toString,kf=function(){return po.call(arguments)==="[object Arguments]"?function(r){return po.call(r)==="[object Arguments]"}:function(r){return k("callee",r)}}(),Ht=kf;var Rf=!{toString:null}.propertyIsEnumerable("toString"),lo=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],mo=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Pf=function(r,t){for(var o=0;o<r.length;){if(r[o]===t)return!0;o+=1}return!1},Ef=typeof Object.keys=="function"&&!mo?p(function(r){return Object(r)!==r?[]:Object.keys(r)}):p(function(r){if(Object(r)!==r)return[];var t,o,a=[],i=mo&&Ht(r);for(t in r)k(t,r)&&(!i||t!=="length")&&(a[a.length]=t);if(Rf)for(o=lo.length-1;o>=0;)t=lo[o],k(t,r)&&!Pf(a,t)&&(a[a.length]=t),o-=1;return a}),D=Ef;var Tf=p(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)}),Ur=Tf;function ho(n,r,t,o){var a=Kt(n),i=Kt(r);function u(c,s){return yt(c,s,t.slice(),o.slice())}return!rr(function(c,s){return!rr(u,s,c)},i,a)}function yt(n,r,t,o){if(Fr(n,r))return!0;var a=Ur(n);if(a!==Ur(r))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof r.equals=="function")return typeof n.equals=="function"&&n.equals(r)&&typeof r.equals=="function"&&r.equals(n);switch(a){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&en(n.constructor)==="Promise")return n===r;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof r&&Fr(n.valueOf(),r.valueOf())))return!1;break;case"Date":if(!Fr(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(!(n.source===r.source&&n.global===r.global&&n.ignoreCase===r.ignoreCase&&n.multiline===r.multiline&&n.sticky===r.sticky&&n.unicode===r.unicode))return!1;break}for(var i=t.length-1;i>=0;){if(t[i]===n)return o[i]===r;i-=1}switch(a){case"Map":return n.size!==r.size?!1:ho(n.entries(),r.entries(),t.concat([n]),o.concat([r]));case"Set":return n.size!==r.size?!1:ho(n.values(),r.values(),t.concat([n]),o.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=D(n);if(u.length!==D(r).length)return!1;var c=t.concat([n]),s=o.concat([r]);for(i=u.length-1;i>=0;){var d=u[i];if(!(k(d,r)&&yt(r[d],n[d],c,s)))return!1;i-=1}return!0}var Wf=f(function(r,t){return yt(r,t,[],[])}),B=Wf;function vt(n,r,t){var o,a;if(typeof n.indexOf=="function")switch(typeof r){case"number":if(r===0){for(o=1/r;t<n.length;){if(a=n[t],a===0&&1/a===o)return t;t+=1}return-1}else if(r!==r){for(;t<n.length;){if(a=n[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return n.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(r,t);case"object":if(r===null)return n.indexOf(r,t)}for(;t<n.length;){if(B(n[t],r))return t;t+=1}return-1}function Ar(n,r){return vt(r,n,0)>=0}function tr(n,r){for(var t=0,o=r.length,a=Array(o);t<o;)a[t]=n(r[t]),t+=1;return a}function gt(n){var r=n.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+r.replace(/"/g,'\\"')+'"'}var xt=function(r){return(r<10?"0":"")+r},Nf=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+xt(r.getUTCMonth()+1)+"-"+xt(r.getUTCDate())+"T"+xt(r.getUTCHours())+":"+xt(r.getUTCMinutes())+":"+xt(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},yo=Nf;function _t(n){return function(){return!n.apply(this,arguments)}}function sr(n,r,t){for(var o=0,a=t.length;o<a;)r=n(r,t[o]),o+=1;return r}function zr(n,r){for(var t=0,o=r.length,a=[];t<o;)n(r[t])&&(a[a.length]=r[t]),t+=1;return a}function ar(n){return Object.prototype.toString.call(n)==="[object Object]"}var Bf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},n}();function nn(n){return function(r){return new Bf(n,r)}}var Cf=f(_(["fantasy-land/filter","filter"],nn,function(n,r){return ar(r)?sr(function(t,o){return n(r[o])&&(t[o]=r[o]),t},{},D(r)):zr(n,r)})),Zr=Cf;var Lf=f(function(r,t){return Zr(_t(r),t)}),Or=Lf;function Jr(n,r){var t=function(u){var c=r.concat([n]);return Ar(u,c)?"<Circular>":Jr(u,c)},o=function(i,u){return tr(function(c){return gt(c)+": "+t(i[c])},u.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+tr(t,n).join(", ")+"))";case"[object Array]":return"["+tr(t,n).concat(o(n,Or(function(i){return/^\d+$/.test(i)},D(n)))).join(", ")+"]";case"[object Boolean]":return typeof n=="object"?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):gt(yo(n)))+")";case"[object Map]":return"new Map("+t(Array.from(n))+")";case"[object Null]":return"null";case"[object Number]":return typeof n=="object"?"new Number("+t(n.valueOf())+")":1/n===-1/0?"-0":n.toString(10);case"[object Set]":return"new Set("+t(Array.from(n).sort())+")";case"[object String]":return typeof n=="object"?"new String("+t(n.valueOf())+")":gt(n);case"[object Undefined]":return"undefined";default:if(typeof n.toString=="function"){var a=n.toString();if(a!=="[object Object]")return a}return"{"+o(n,D(n)).join(", ")+"}"}}var jf=p(function(r){return Jr(r,[])}),H=jf;var Df=f(function(r,t){if(r===t)return t;function o(s,d){if(s>d!=d>s)return d>s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=H(r),c=o(u,H(t));return c!==void 0&&c===u?r:t}),Q=Df;var Mf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},n}(),qf=function(r){return function(t){return new Mf(r,t)}},Qt=qf;var Ff=f(_(["fantasy-land/map","map"],Qt,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return S(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return sr(function(o,a){return o[a]=r(t[a]),o},{},D(t));default:return tr(r,t)}})),L=Ff;var K=Number.isInteger||function(r){return r<<0===r};function Z(n){return Object.prototype.toString.call(n)==="[object String]"}var Uf=f(function(r,t){var o=r<0?t.length+r:r;return Z(t)?t.charAt(o):t[o]}),J=Uf;var zf=f(function(r,t){if(t!=null)return K(r)?J(r,t):t[r]}),G=zf;var Vf=f(function(r,t){return L(G(r),t)}),mr=Vf;var Xf=p(function(r){return P(r)?!0:!r||typeof r!="object"||Z(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),xr=Xf;var vo=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function wt(n,r,t){return function(a,i,u){if(xr(u))return n(a,i,u);if(u==null)return i;if(typeof u["fantasy-land/reduce"]=="function")return r(a,i,u,"fantasy-land/reduce");if(u[vo]!=null)return t(a,i,u[vo]());if(typeof u.next=="function")return t(a,i,u);if(typeof u.reduce=="function")return r(a,i,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function It(n,r,t){for(var o=0,a=t.length;o<a;){if(r=n["@@transducer/step"](r,t[o]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o+=1}return n["@@transducer/result"](r)}var Kf=f(function(r,t){return U(r.length,function(){return r.apply(t,arguments)})}),Zt=Kf;function Hf(n,r,t){for(var o=t.next();!o.done;){if(r=n["@@transducer/step"](r,o.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=t.next()}return n["@@transducer/result"](r)}function Qf(n,r,t,o){return n["@@transducer/result"](t[o](Zt(n["@@transducer/step"],n),r))}var Zf=wt(It,Qf,Hf),Y=Zf;var Jf=function(){function n(r){this.f=r}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(r){return r},n.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},n}();function _r(n){return new Jf(n)}var Gf=l(function(n,r,t){return Y(typeof n=="function"?_r(n):n,r,t)}),X=Gf;var Yf=p(function(r){return S(X(Q,0,mr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(!r[t].apply(this,arguments))return!1;t+=1}return!0})}),Jt=Yf;var $f=p(function(r){return function(){return r}}),Sr=$f;var rs=f(function(r,t){return r&&t}),Gt=rs;var ts=function(){function n(r,t){this.xf=t,this.f=r,this.any=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.any||(r=this.xf["@@transducer/step"](r,!1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.any=!0,r=V(this.xf["@@transducer/step"](r,!0))),r},n}();function on(n){return function(r){return new ts(n,r)}}var es=f(_(["any"],on,function(r,t){for(var o=0;o<t.length;){if(r(t[o]))return!0;o+=1}return!1})),go=es;var ns=p(function(r){return S(X(Q,0,mr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(r[t].apply(this,arguments))return!0;t+=1}return!1})}),Yt=ns;function os(n,r,t){for(var o=t.next();!o.done;)r=n(r,o.value),o=t.next();return r}function as(n,r,t,o){return t[o](n,r)}var is=wt(sr,as,os),kr=is;var us=f(function(r,t){return typeof t["fantasy-land/ap"]=="function"?t["fantasy-land/ap"](r):typeof r.ap=="function"?r.ap(t):typeof r=="function"?function(o){return r(o)(t(o))}:kr(function(o,a){return C(o,L(a,t))},[],r)}),Gr=us;function an(n,r){for(var t=0,o=r.length-(n-1),a=new Array(o>=0?o:0);t<o;)a[t]=Array.prototype.slice.call(r,t,t+n),t+=1;return a}var fs=function(){function n(r,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.store(t),this.full?this.xf["@@transducer/step"](r,this.getCopy()):r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return C(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}();function un(n){return function(r){return new fs(n,r)}}var ss=f(_([],un,an)),xo=ss;var cs=f(function(r,t){return C(t,[r])}),$t=cs;var ps=f(function(r,t){return r.apply(this,t)}),Yr=ps;var ls=p(function(r){for(var t=D(r),o=t.length,a=[],i=0;i<o;)a[i]=r[t[i]],i+=1;return a}),re=ls;function _o(n,r){return P(r)?r.map(n):D(r).reduce(function(t,o){return t[o]=n(r[o]),t},{})}var ms=p(function n(r){return r=_o(function(t){return typeof t=="function"?t:n(t)},r),S(X(Q,0,mr("length",re(r))),function(){var t=arguments;return _o(function(o){return Yr(o,t)},r)})}),wo=ms;var ds=f(function(r,t){return t(r)}),Io=ds;var hs=l(function(r,t,o){var a=r(t),i=r(o);return a<i?-1:a>i?1:0}),bo=hs;function Vr(n,r,t){if(K(n)&&P(t)){var o=[].concat(t);return o[n]=r,o}var a={};for(var i in t)a[i]=t[i];return a[n]=r,a}var ys=p(function(r){return r==null}),er=ys;var vs=l(function n(r,t,o){if(r.length===0)return t;var a=r[0];if(r.length>1){var i=!er(o)&&k(a,o)&&typeof o[a]=="object"?o[a]:K(r[1])?[]:{};t=n(Array.prototype.slice.call(r,1),t,i)}return Vr(a,t,o)}),$r=vs;var gs=l(function(r,t,o){return $r([r],t,o)}),Rr=gs;var xs=f(function(r,t){switch(r){case 0:return function(){return t.call(this)};case 1:return function(o){return t.call(this,o)};case 2:return function(o,a){return t.call(this,o,a)};case 3:return function(o,a,i){return t.call(this,o,a,i)};case 4:return function(o,a,i,u){return t.call(this,o,a,i,u)};case 5:return function(o,a,i,u,c){return t.call(this,o,a,i,u,c)};case 6:return function(o,a,i,u,c,s){return t.call(this,o,a,i,u,c,s)};case 7:return function(o,a,i,u,c,s,d){return t.call(this,o,a,i,u,c,s,d)};case 8:return function(o,a,i,u,c,s,d,m){return t.call(this,o,a,i,u,c,s,d,m)};case 9:return function(o,a,i,u,c,s,d,m,h){return t.call(this,o,a,i,u,c,s,d,m,h)};case 10:return function(o,a,i,u,c,s,d,m,h,g){return t.call(this,o,a,i,u,c,s,d,m,h,g)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Pr=xs;var _s=p(function(r){return Pr(2,r)}),Ao=_s;function ir(n){var r=Object.prototype.toString.call(n);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var ws=f(function(r,t){var o=S(r,t);return S(r,function(){return sr(Gr,L(o,arguments[0]),Array.prototype.slice.call(arguments,1))})}),te=ws;var Is=p(function(r){return te(r.length,r)}),Er=Is;var bs=f(function(r,t){return ir(r)?function(){return r.apply(this,arguments)&&t.apply(this,arguments)}:Er(Gt)(r,t)}),Oo=bs;var As=p(function(r){return r.apply(this,Array.prototype.slice.call(arguments,1))}),ee=As;function bt(n){return function r(t){for(var o,a,i,u=[],c=0,s=t.length;c<s;){if(xr(t[c]))for(o=n?r(t[c]):t[c],i=0,a=o.length;i<a;)u[u.length]=o[i],i+=1;else u[u.length]=t[c];c+=1}return u}}function fn(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}}var So="@@transducer/init",sn="@@transducer/step",ko="@@transducer/result",Os=function(){function n(r){this.xf=r}return n.prototype[So]=y.init,n.prototype[ko]=y.result,n.prototype[sn]=function(r,t){var o=this.xf[sn](r,t);return o["@@transducer/reduced"]?fn(o):o},n}(),Ss=function(){function n(r){this.xf=new Os(r)}return n.prototype[So]=y.init,n.prototype[ko]=y.result,n.prototype[sn]=function(r,t){return xr(t)?Y(this.xf,r,t):It(this.xf,r,[t])},n}(),ks=function(r){return new Ss(r)},Ro=ks;function cn(n){return function(r){return Qt(n)(Ro(r))}}var Rs=f(_(["fantasy-land/chain","chain"],cn,function(r,t){return typeof t=="function"?function(o){return r(t(o))(o)}:bt(!1)(L(r,t))})),ne=Rs;var Ps=l(function(r,t,o){if(r>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return o<r?r:o>t?t:o}),Po=Ps;function At(n){return new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""))}function Tr(n,r,t){if(t||(t=new Ts),Es(n))return n;var o=function(i){var u=t.get(n);if(u)return u;t.set(n,i);for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i[c]=r?Tr(n[c],!0,t):n[c]);return i};switch(Ur(n)){case"Object":return o(Object.create(Object.getPrototypeOf(n)));case"Array":return o([]);case"Date":return new Date(n.valueOf());case"RegExp":return At(n);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return n.slice();default:return n}}function Es(n){var r=typeof n;return n==null||r!="object"&&r!="function"}var Ts=function(){function n(){this.map={},this.length=0}return n.prototype.set=function(r,t){let o=this.hash(r),a=this.map[o];a||(this.map[o]=a=[]),a.push([r,t]),this.length+=1},n.prototype.hash=function(r){let t=[];for(var o in r)t.push(Object.prototype.toString.call(r[o]));return t.join()},n.prototype.get=function(r){if(this.length<=180){for(let a in this.map){let i=this.map[a];for(let u=0;u<i.length;u+=1){let c=i[u];if(c[0]===r)return c[1]}}return}let t=this.hash(r),o=this.map[t];if(o)for(let a=0;a<o.length;a+=1){let i=o[a];if(i[0]===r)return i[1]}},n}();var Ws=p(function(r){return r!=null&&typeof r.clone=="function"?r.clone():Tr(r,!0)}),rt=Ws;var Ns=f(function(r,t){var o=kr(function(u,c){var s=r(c);return u[s]===void 0&&(u[s]=[]),u[s].push(c),u},{},t),a=[];for(var i in o)a.push(o[i]);return a}),Eo=Ns;var Bs=p(function(r){return function(t,o){return r(t,o)?-1:r(o,t)?1:0}}),To=Bs;var Cs=p(function(r){return!r}),oe=Cs;var Ls=Er(oe),Ot=Ls;function pn(n,r){return function(){return r.call(this,n.apply(this,arguments))}}function cr(n,r){return function(){var t=arguments.length;if(t===0)return r();var o=arguments[t-1];return P(o)||typeof o[n]!="function"?r.apply(this,arguments):o[n].apply(o,Array.prototype.slice.call(arguments,0,t-1))}}var js=l(cr("slice",function(r,t,o){return Array.prototype.slice.call(o,r,t)})),M=js;var Ds=p(cr("tail",M(1,1/0))),tt=Ds;function St(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return U(arguments[0].length,X(pn,arguments[0],tt(arguments)))}var Ms=p(function(r){return Z(r)?r.split("").reverse().join(""):Array.prototype.slice.call(r,0).reverse()}),et=Ms;function Wr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return St.apply(this,et(arguments))}var qs=J(0),ae=qs;function ur(n){return n}var Fs=p(ur),pr=Fs;var Us=f(function(r,t){if(t.length<=0)return pr;var o=ae(t),a=tt(t);return U(o.length,function(){return kr(function(i,u){return r.call(this,u,i)},o.apply(this,arguments),a)})}),ie=Us;var zs=f(function(r,t){return ie.apply(this,[r,et(t)])}),Wo=zs;var Vs=f(function(r,t){if(P(r)){if(P(t))return r.concat(t);throw new TypeError(H(t)+" is not an array")}if(Z(r)){if(Z(t))return r+t;throw new TypeError(H(t)+" is not a string")}if(r!=null&&ir(r["fantasy-land/concat"]))return r["fantasy-land/concat"](t);if(r!=null&&ir(r.concat))return r.concat(t);throw new TypeError(H(r)+' does not have a method named "concat" or "fantasy-land/concat"')}),nt=Vs;var Xs=p(function(r){var t=X(Q,0,L(function(o){return o[0].length},r));return U(t,function(){for(var o=0;o<r.length;){if(r[o][0].apply(this,arguments))return r[o][1].apply(this,arguments);o+=1}})}),No=Xs;var Ks=p(function(r){return S(r.length,r)}),ot=Ks;var Hs=f(function(r,t){if(r>10)throw new Error("Constructor with greater than ten arguments");return r===0?function(){return new t}:ot(Pr(r,function(o,a,i,u,c,s,d,m,h,g){switch(r){case 1:return new t(o);case 2:return new t(o,a);case 3:return new t(o,a,i);case 4:return new t(o,a,i,u);case 5:return new t(o,a,i,u,c);case 6:return new t(o,a,i,u,c,s);case 7:return new t(o,a,i,u,c,s,d);case 8:return new t(o,a,i,u,c,s,d,m);case 9:return new t(o,a,i,u,c,s,d,m,h);case 10:return new t(o,a,i,u,c,s,d,m,h,g)}}))}),ue=Hs;var Qs=p(function(r){return ue(r.length,r)}),Bo=Qs;var Zs=f(function(r,t){return S(X(Q,0,mr("length",t)),function(){var o=arguments,a=this;return r.apply(a,tr(function(i){return i.apply(a,o)},t))})}),fe=Zs;var Js=ot(function(n,r){return kr(function(t,o){return n(o)?t+1:t},0,r)}),Co=Js;var Gs=function(){function n(r,t,o,a){this.valueFn=r,this.valueAcc=t,this.keyFn=o,this.xf=a,this.inputs={}}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){var t;for(t in this.inputs)if(k(t,this.inputs)&&(r=this.xf["@@transducer/step"](r,this.inputs[t]),r["@@transducer/reduced"])){r=r["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){var o=this.keyFn(t);return this.inputs[o]=this.inputs[o]||[o,Tr(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],t),r},n}();function ln(n,r,t){return function(o){return new Gs(n,r,t,o)}}var Ys=or(4,[],_([],ln,function(r,t,o,a){var i=_r(function(u,c){var s=o(c),d=r(k(s,u)?u[s]:Tr(t,!1),c);return d&&d["@@transducer/reduced"]?V(u):(u[s]=d,u)});return Y(i,{},a)})),Nr=Ys;var $s=Nr(function(n,r){return n+1},0),Lo=$s;var rc=br(-1),jo=rc;var tc=f(function(r,t){return t==null||t!==t?r:t}),at=tc;var ec=l(function(r,t,o){var a=r(t),i=r(o);return a>i?-1:a<i?1:0}),Do=ec;var nc=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(r){return!Mo(r,!0,this)},n.prototype.has=function(r){return Mo(r,!1,this)},n}();function Mo(n,r,t){var o=typeof n,a,i;switch(o){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(r&&(t._items["-0"]=!0),!1):t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?n in t._items[o]?!0:(r&&(t._items[o][n]=!0),!1):(r&&(t._items[o]={},t._items[o][n]=!0),!1);case"boolean":if(o in t._items){var u=n?1:0;return t._items[o][u]?!0:(r&&(t._items[o][u]=!0),!1)}else return r&&(t._items[o]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?Ar(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1);case"undefined":return t._items[o]?!0:(r&&(t._items[o]=!0),!1);case"object":if(n===null)return t._items.null?!0:(r&&(t._items.null=!0),!1);default:return o=Object.prototype.toString.call(n),o in t._items?Ar(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1)}}var dr=nc;var oc=f(function(r,t){for(var o=[],a=0,i=r.length,u=t.length,c=new dr,s=0;s<u;s+=1)c.add(t[s]);for(;a<i;)c.add(r[a])&&(o[o.length]=r[a]),a+=1;return o}),kt=oc;var ac=l(function(r,t,o){for(var a=[],i=0,u=t.length;i<u;)!rr(r,t[i],o)&&!rr(r,t[i],a)&&a.push(t[i]),i+=1;return a}),Rt=ac;var ic=l(function(r,t,o){var a=Array.prototype.slice.call(o,0);return a.splice(r,t),a}),se=ic;function mn(n,r){if(r==null)return r;if(K(n)&&P(r))return se(n,1,r);var t={};for(var o in r)t[o]=r[o];return delete t[n],t}function uc(n,r){if(K(n)&&P(r))return[].concat(r);var t={};for(var o in r)t[o]=r[o];return t}var fc=f(function n(r,t){if(t==null)return t;switch(r.length){case 0:return t;case 1:return mn(r[0],t);default:var o=r[0],a=Array.prototype.slice.call(r,1);return t[o]==null?uc(o,t):Rr(o,n(a,t[o]),t)}}),ce=fc;var sc=f(function(r,t){return ce([r],t)}),pe=sc;var cc=f(function(r,t){return r/t}),qo=cc;var pc=function(){function n(r,t){this.xf=t,this.n=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.n>0?(this.n-=1,r):this.xf["@@transducer/step"](r,t)},n}();function dn(n){return function(r){return new pc(n,r)}}var lc=f(_(["drop"],dn,function(r,t){return M(Math.max(0,r),1/0,t)})),le=lc;var mc=function(){function n(r,t){this.xf=t,this.n=r,this.i=0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){this.i+=1;var o=this.n===0?r:this.xf["@@transducer/step"](r,t);return this.n>=0&&this.i>=this.n?V(o):o},n}();function hn(n){return function(r){return new mc(n,r)}}var dc=f(_(["take"],hn,function(r,t){return M(0,r<0?1/0:r,t)})),it=dc;function yn(n,r){return it(n<r.length?r.length-n:0,r)}var hc=function(){function n(r,t){if(r<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.full&&(r=this.xf["@@transducer/step"](r,this.acc[this.pos])),this.store(t),r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n}();function vn(n){return function(r){return new hc(n,r)}}var yc=f(_([],vn,yn)),Fo=yc;function gn(n,r){for(var t=r.length-1;t>=0&&n(r[t]);)t-=1;return M(0,t+1,r)}var vc=function(){function n(r,t){this.f=r,this.retained=[],this.xf=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.retained=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.retain(r,t):this.flush(r,t)},n.prototype.flush=function(r,t){return r=Y(this.xf,r,this.retained),this.retained=[],this.xf["@@transducer/step"](r,t)},n.prototype.retain=function(r,t){return this.retained.push(t),r},n}();function xn(n){return function(r){return new vc(n,r)}}var gc=f(_([],xn,gn)),Uo=gc;var xc=function(){function n(r,t){this.xf=t,this.pred=r,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){var o=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(o=!0):this.seenFirstValue=!0,this.lastValue=t,o?r:this.xf["@@transducer/step"](r,t)},n}();function Xr(n){return function(r){return new xc(n,r)}}var _c=J(-1),me=_c;var wc=f(_([],Xr,function(r,t){var o=[],a=1,i=t.length;if(i!==0)for(o[0]=t[0];a<i;)r(me(o),t[a])||(o[o.length]=t[a]),a+=1;return o})),ut=wc;var Ic=p(_([],function(){return Xr(B)},ut(B))),zo=Ic;var bc=l(function(r,t,o){return B(r(t),r(o))}),Pt=bc;var Ac=f(function(n,r){return _([],function(){return Xr(Pt(n))},ut(Pt(n)))(r)}),Vo=Ac;var Oc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){if(this.f){if(this.f(t))return r;this.f=null}return this.xf["@@transducer/step"](r,t)},n}();function _n(n){return function(r){return new Oc(n,r)}}var Sc=f(_(["dropWhile"],_n,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(o,1/0,t)})),Xo=Sc;var kc=f(function(r,t){return r||t}),de=kc;var Rc=f(function(r,t){return ir(r)?function(){return r.apply(this,arguments)||t.apply(this,arguments)}:Er(de)(r,t)}),Ko=Rc;function wn(n){var r=Object.prototype.toString.call(n);return r==="[object Uint8ClampedArray]"||r==="[object Int8Array]"||r==="[object Uint8Array]"||r==="[object Int16Array]"||r==="[object Uint16Array]"||r==="[object Int32Array]"||r==="[object Uint32Array]"||r==="[object Float32Array]"||r==="[object Float64Array]"||r==="[object BigInt64Array]"||r==="[object BigUint64Array]"}var Pc=p(function(r){return r!=null&&typeof r["fantasy-land/empty"]=="function"?r["fantasy-land/empty"]():r!=null&&r.constructor!=null&&typeof r.constructor["fantasy-land/empty"]=="function"?r.constructor["fantasy-land/empty"]():r!=null&&typeof r.empty=="function"?r.empty():r!=null&&r.constructor!=null&&typeof r.constructor.empty=="function"?r.constructor.empty():P(r)?[]:Z(r)?"":ar(r)?{}:Ht(r)?function(){return arguments}():wn(r)?r.constructor.from(""):void 0}),he=Pc;var Ec=f(function(r,t){return le(r>=0?t.length-r:0,t)}),ye=Ec;var Tc=f(function(n,r){return B(ye(n.length,r),n)}),Ho=Tc;var Wc=l(function(r,t,o){return B(t[r],o[r])}),Qo=Wc;var Nc=f(function n(r,t){if(!ar(t)&&!P(t))return t;var o=t instanceof Array?[]:{},a,i,u;for(i in t)a=r[i],u=typeof a,o[i]=u==="function"?a(t[i]):a&&u==="object"?n(a,t[i]):t[i];return o}),Zo=Nc;var Bc=function(){function n(r,t){this.xf=t,this.f=r,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,t))),r},n}();function In(n){return function(r){return new Bc(n,r)}}var Cc=f(_(["find"],In,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return t[o];o+=1}})),Jo=Cc;var Lc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,-1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,this.idx))),r},n}();function bn(n){return function(r){return new Lc(n,r)}}var jc=f(_([],bn,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return o;o+=1}return-1})),Go=jc;var Dc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.last))},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.last=t),r},n}();function An(n){return function(r){return new Dc(n,r)}}var Mc=f(_([],An,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return t[o];o-=1}})),Yo=Mc;var qc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.lastIdx))},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),r},n}();function On(n){return function(r){return new qc(n,r)}}var Fc=f(_([],On,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return o;o-=1}return-1})),$o=Fc;var Uc=p(bt(!0)),ra=Uc;var zc=p(function(r){return S(r.length,function(t,o){var a=Array.prototype.slice.call(arguments,0);return a[0]=o,a[1]=t,r.apply(this,a)})}),ve=zc;var Vc=f(cr("forEach",function(r,t){for(var o=t.length,a=0;a<o;)r(t[a]),a+=1;return t})),ta=Vc;var Xc=f(function(r,t){for(var o=D(t),a=0;a<o.length;){var i=o[a];r(t[i],i,t),a+=1}return t}),ea=Xc;var Kc=p(function(r){for(var t={},o=0;o<r.length;)t[r[o][0]]=r[o][1],o+=1;return t}),na=Kc;var Hc=f(cr("groupBy",Nr(function(n,r){return n.push(r),n},[]))),oa=Hc;var Qc=f(function(n,r){for(var t=[],o=0,a=r.length;o<a;){for(var i=o+1;i<a&&n(r[i-1],r[i]);)i+=1;t.push(r.slice(o,i)),o=i}return t}),aa=Qc;var Zc=f(function(r,t){return r>t}),ia=Zc;var Jc=f(function(r,t){return r>=t}),ua=Jc;var Gc=f(function(r,t){if(r.length===0||er(t))return!1;for(var o=t,a=0;a<r.length;)if(!er(o)&&k(r[a],o))o=o[r[a]],a+=1;else return!1;return!0}),xe=Gc;var Yc=f(function(r,t){return xe([r],t)}),fa=Yc;var $c=f(function(r,t){return er(t)?!1:r in t}),sa=$c;var ca=function(n,r){switch(arguments.length){case 0:return ca;case 1:return function(){return function t(o){switch(arguments.length){case 0:return t;default:return Fr(n,o)}}}();default:return Fr(n,r)}},pa=ca;var rp=l(function(r,t,o){return S(Math.max(r.length,t.length,o.length),function(){return r.apply(this,arguments)?t.apply(this,arguments):o.apply(this,arguments)})}),la=rp;var tp=br(1),ma=tp;var ep=f(Ar),Et=ep;var np=Nr(function(n,r){return r},null),da=np;var op=f(function(r,t){return typeof t.indexOf=="function"&&!P(t)?t.indexOf(r):vt(t,r,0)}),ha=op;var ap=M(0,-1),ya=ap;var ip=l(function(r,t,o){return zr(function(a){return rr(r,a,o)},t)}),va=ip;var up=l(function(r,t,o){r=r<o.length&&r>=0?r:o.length;var a=Array.prototype.slice.call(o,0);return a.splice(r,0,t),a}),ga=up;var fp=l(function(r,t,o){return r=r<o.length&&r>=0?r:o.length,[].concat(Array.prototype.slice.call(o,0,r),t,Array.prototype.slice.call(o,r))}),xa=fp;var sp=function(){function n(r,t){this.xf=t,this.f=r,this.set=new dr}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](r,t):r},n}();function Sn(n){return function(r){return new sp(n,r)}}var cp=f(_([],Sn,function(n,r){for(var t=new dr,o=[],a=0,i,u;a<r.length;)u=r[a],i=n(u),t.add(i)&&o.push(u),a+=1;return o})),_e=cp;var pp=_e(pr),ft=pp;var lp=f(function(r,t){for(var o=new dr,a=0;a<r.length;a+=1)o.add(r[a]);return ft(zr(o.has.bind(o),t))}),_a=lp;var mp=f(cr("intersperse",function(r,t){for(var o=[],a=0,i=t.length;a<i;)a===i-1?o.push(t[a]):o.push(t[a],r),a+=1;return o})),wa=mp;function dp(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(n),t=1,o=arguments.length;t<o;){var a=arguments[t];if(a!=null)for(var i in a)k(i,a)&&(r[i]=a[i]);t+=1}return r}var Br=typeof Object.assign=="function"?Object.assign:dp;var hp=f(function(r,t){var o={};return o[r]=t,o}),we=hp;var yp={"@@transducer/init":Array,"@@transducer/step":function(n,r){return n.push(r),n},"@@transducer/result":ur},vp={"@@transducer/init":String,"@@transducer/step":function(n,r){return n+r},"@@transducer/result":ur},gp={"@@transducer/init":Object,"@@transducer/step":function(n,r){return Br(n,xr(r)?we(r[0],r[1]):r)},"@@transducer/result":ur};function kn(n){if(qr(n))return n;if(xr(n))return yp;if(typeof n=="string")return vp;if(typeof n=="object")return gp;throw new Error("Cannot create transformer for "+n)}var xp=l(function(r,t,o){var a=t(qr(r)?r:kn(r));return Y(a,a["@@transducer/init"](),o)}),Ia=xp;var _p=p(function(r){for(var t=D(r),o=t.length,a=0,i={};a<o;){var u=t[a],c=r[u],s=k(c,i)?i[c]:i[c]=[];s[s.length]=u,a+=1}return i}),ba=_p;var wp=p(function(r){for(var t=D(r),o=t.length,a=0,i={};a<o;){var u=t[a];i[r[u]]=u,a+=1}return i}),Aa=wp;var Ip=f(function(r,t){return S(r+1,function(){var o=arguments[r];if(o!=null&&ir(o[t]))return o[t].apply(o,Array.prototype.slice.call(arguments,0,r));throw new TypeError(H(o)+' does not have a method named "'+t+'"')})}),hr=Ip;var bp=f(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),Kr=bp;var Ap=p(function(r){return r!=null&&B(r,he(r))}),Tt=Ap;var Op=p(function(r){return!er(r)}),Ie=Op;var Sp=hr(1,"join"),Oa=Sp;var kp=p(function(r){return fe(function(){return Array.prototype.slice.call(arguments,0)},r)}),be=kp;var Rp=p(function(r){var t,o=[];for(t in r)o[o.length]=t;return o}),Sa=Rp;var Pp=f(function(r,t){if(typeof t.lastIndexOf=="function"&&!P(t))return t.lastIndexOf(r);for(var o=t.length-1;o>=0;){if(B(t[o],r))return o;o-=1}return-1}),ka=Pp;function st(n){return Object.prototype.toString.call(n)==="[object Number]"}var Ep=p(function(r){return r!=null&&st(r.length)?r.length:NaN}),Ae=Ep;var Tp=f(function(r,t){return function(o){return function(a){return L(function(i){return t(i,a)},o(r(a)))}}}),Cr=Tp;var Wp=l(function(r,t,o){return Vt(r,Sr(t),o)}),Oe=Wp;var Np=p(function(r){return Cr(J(r),Oe(r))}),Ra=Np;var Bp=f(function(r,t){return r.map(function(o){for(var a=t,i=0,u;i<o.length;){if(a==null)return;u=o[i],a=K(u)?J(u,a):a[u],i+=1}return a})}),Se=Bp;var Cp=f(function(r,t){return Se([r],t)[0]}),fr=Cp;var Lp=p(function(r){return Cr(fr(r),$r(r))}),Pa=Lp;var jp=p(function(r){return Cr(G(r),Rr(r))}),Ea=jp;var Dp=f(function(r,t){return r<t}),Ta=Dp;var Mp=f(function(r,t){return r<=t}),Wa=Mp;var qp=l(function(r,t,o){for(var a=0,i=o.length,u=[],c=[t];a<i;)c=r(c[0],o[a]),u[a]=c[1],a+=1;return[c[0],u]}),Na=qp;var Fp=l(function(r,t,o){for(var a=o.length-1,i=[],u=[t];a>=0;)u=r(u[0],o[a]),i[a]=u[1],a-=1;return[u[0],i]}),Ba=Fp;var Up=f(function(r,t){return sr(function(o,a){return o[a]=r(t[a],a,t),o},{},D(t))}),Wt=Up;var zp=f(function(r,t){return t.match(r)||[]}),Ca=zp;var Vp=f(function(r,t){return K(r)?!K(t)||t<1?NaN:(r%t+t)%t:NaN}),La=Vp;var Xp=l(function(r,t,o){var a=r(o);return Q(r(t),a)===a?o:t}),ja=Xp;var Kp=X(br,0),ke=Kp;var Hp=p(function(r){return ke(r)/r.length}),Re=Hp;var Qp=p(function(r){var t=r.length;if(t===0)return NaN;var o=2-t%2,a=(t-o)/2;return Re(Array.prototype.slice.call(r,0).sort(function(i,u){return i<u?-1:i>u?1:0}).slice(a,a+o))}),Da=Qp;var Zp=f(function(r,t){var o={};return U(t.length,function(){var a=r.apply(this,arguments);return k(a,o)||(o[a]=t.apply(this,arguments)),o[a]})}),Ma=Zp;var Jp=p(function(r){return Br.apply(null,[{}].concat(r))}),qa=Jp;var Gp=l(function(r,t,o){var a={},i;t=t||{},o=o||{};for(i in t)k(i,t)&&(a[i]=k(i,o)?r(i,t[i],o[i]):t[i]);for(i in o)k(i,o)&&!k(i,a)&&(a[i]=o[i]);return a}),ct=Gp;var Yp=l(function n(r,t,o){return ct(function(a,i,u){return ar(i)&&ar(u)?n(r,i,u):r(a,i,u)},t,o)}),Lr=Yp;var $p=f(function(r,t){return Lr(function(o,a,i){return a},r,t)}),Fa=$p;var rl=f(function(r,t){return Lr(function(o,a,i){return i},r,t)}),Pe=rl;var tl=l(function(r,t,o){return Lr(function(a,i,u){return r(i,u)},t,o)}),Ua=tl;var el=f(function(r,t){return Br({},t,r)}),Nt=el;var nl=f(function(r,t){return Br({},r,t)}),Ee=nl;var ol=l(function(r,t,o){return ct(function(a,i,u){return r(i,u)},t,o)}),za=ol;var al=f(function(r,t){if(r===t)return r;function o(s,d){if(s<d!=d<s)return d<s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=H(r),c=o(u,H(t));return c!==void 0?c===u?r:t:r}),Te=al;var il=l(function(r,t,o){var a=r(o);return Te(r(t),a)===a?o:t}),Va=il;function Rn(n,r,t){if(K(n)&&P(t)){var o=[].concat(t);return o[n]=r(o[n]),o}var a={};for(var i in t)a[i]=t[i];return a[n]=r(a[n]),a}var ul=l(function n(r,t,o){if(!ar(o)&&!P(o))return o;if(r.length===0)return t(o);var a=r[0];if(!k(a,o))return o;if(r.length===1)return Rn(a,t,o);var i=n(Array.prototype.slice.call(r,1),t,o[a]);return i===o[a]?o:Vr(a,i,o)}),We=ul;var fl=l(function(r,t,o){return We([r],t,o)}),Xa=fl;var sl=f(function(r,t){return r%t}),Ka=sl;var cl=l(function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=a.splice(i,1);return i<0||i>=t.length||u<0||u>=t.length?t:[].concat(a.slice(0,u)).concat(c).concat(a.slice(u,t.length))}),Ha=cl;var pl=f(function(r,t){return r*t}),Ne=pl;var ll=f((n,r)=>t=>n.call(void 0,Pe(r,t))),Qa=ll;var ml=p(function(r){return-r}),Za=ml;var dl=f(function(r,t){return Xt(_t(r),t)}),Ja=dl;var hl=p(function(r){var t=r<0?1:r+1;return S(t,function(){return J(r,arguments)})}),Ga=hl;var yl=l(function(r,t,o){return r(t(o))}),Ya=yl;var vl=f(function(r,t){return typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"](t):typeof r.of=="function"?r.of(t):[t]}),$a=vl;var gl=f(function(r,t){for(var o={},a={},i=0,u=r.length;i<u;)a[r[i]]=1,i+=1;for(var c in t)a.hasOwnProperty(c)||(o[c]=t[c]);return o}),ri=gl;var xl=or(4,[],function(r,t,o,a){return r(t(o),t(a))}),ti=xl;var _l=p(function(r){var t=!1,o;return U(r.length,function(){return t||(t=!0,o=r.apply(this,arguments)),o})}),ei=_l;function Bt(n,r){if(r==null||!ir(r.then))throw new TypeError("`"+n+"` expected a Promise, received "+Jr(r,[]))}var wl=f(function(r,t){return Bt("otherwise",t),t.then(null,r)}),ni=wl;var oi=function(n){return{value:n,map:function(r){return oi(r(n))}}},Il=l(function(r,t,o){return r(function(a){return oi(t(a))})(o).value}),Be=Il;var bl=f(function(r,t){return[r,t]}),ai=bl;function Ct(n){return f(function(r,t){return U(Math.max(0,r.length-t.length),function(){return r.apply(this,n(t,arguments))})})}var Al=Ct(C),ii=Al;var Ol=Ct(ve(C)),ui=Ol;var Sl=be([Zr,Or]),fi=Sl;var kl=l(function(r,t,o){return B(fr(t,o),r)}),si=kl;var Rl=l(function(r,t,o){return at(r,fr(t,o))}),ci=Rl;var Pl=l(function(r,t,o){return r(fr(t,o))}),pi=Pl;var El=f(function(r,t){for(var o={},a=0;a<r.length;)r[a]in t&&(o[r[a]]=t[r[a]]),a+=1;return o}),li=El;var Tl=f(function(r,t){for(var o={},a=0,i=r.length;a<i;){var u=r[a];o[u]=t[u],a+=1}return o}),Ce=Tl;var Wl=f(function(r,t){var o={};for(var a in t)r(t[a],a,t)&&(o[a]=t[a]);return o}),mi=Wl;var Nl=f(function(r,t){return C([r],t)}),Le=Nl;var Bl=X(Ne,1),di=Bl;var Cl=f(function(r,t){return S(t.length,function(){for(var o=[],a=0;a<t.length;)o.push(t[a].call(this,arguments[a])),a+=1;return r.apply(this,o.concat(Array.prototype.slice.call(arguments,t.length)))})}),je=Cl;var Ll=je(tr,[Ce,pr]),hi=Ll;function Lt(n,r,t){return function(o){return r(t(n(o)))}}var jl=function(){function n(r,t,o){this.xf=o,this.f=r,this.g=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,Lt(this.f,this.g,t))},n}();function Pn(n,r){return function(t){return new jl(n,r,t)}}var Dl=l(_(["fantasy-land/promap","promap"],Pn,Lt)),yi=Dl;var Ml=l(function(r,t,o){return B(r,G(t,o))}),vi=Ml;var ql=l(function(r,t,o){return Kr(r,G(t,o))}),gi=ql;var Fl=l(function(r,t,o){return at(r,G(t,o))}),xi=Fl;var Ul=l(function(r,t,o){return r(G(t,o))}),_i=Ul;var zl=f(function(r,t){return r.map(function(o){return fr([o],t)})}),wi=zl;var Vl=f(function(r,t){if(!(st(r)&&st(t)))throw new TypeError("Both arguments to range must be numbers");for(var o=[],a=r;a<t;)o.push(a),a+=1;return o}),Ii=Vl;var Xl=l(function(r,t,o){for(var a=o.length-1;a>=0;){if(t=r(o[a],t),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}a-=1}return t}),De=Xl;var Kl=or(4,[],function(r,t,o,a){var i=_r(function(u,c){return r(u,c)?t(u,c):V(u)});return Y(i,o,a)}),bi=Kl;var Hl=p(V),Ai=Hl;var Ql=f(function(r,t){var o=Number(t),a=0,i;if(o<0||isNaN(o))throw new RangeError("n must be a non-negative number");for(i=[];a<o;)i.push(r(a)),a+=1;return i}),Me=Ql;var Zl=f(function(r,t){return Me(Sr(r),t)}),Oi=Zl;var Jl=l(function(r,t,o){return o.replace(r,t)}),Si=Jl;var ki="@@transducer/init",En="@@transducer/step",Gl=function(){function n(r,t,o){this.xf=o,this.f=r,this.acc=t}return n.prototype[ki]=function(){return this.xf[En](this.xf[ki](),this.acc)},n.prototype["@@transducer/result"]=y.result,n.prototype[En]=function(r,t){return r["@@transducer/reduced"]?r:(this.acc=this.f(this.acc,t),this.xf[En](r,this.acc))},n}(),Yl=l(function(r,t,o){return new Gl(r,t,o)}),Ri=Yl;var $l=l(_([],Ri,function(r,t,o){for(var a=0,i=o.length,u=[t];a<i;)t=r(t,o[a]),u[a+1]=t,a+=1;return u})),Pi=$l;var rm=f(function(r,t){var o=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,a={"fantasy-land/of":o};return typeof t["fantasy-land/traverse"]=="function"?t["fantasy-land/traverse"](a,ur):typeof t.traverse=="function"?t.traverse(a,ur):De(function(i,u){return Gr(L(Le,i),u)},o([]),t)}),qe=rm;var tm=l(function(r,t,o){return Be(r,Sr(t),o)}),Ei=tm;var em=f(function(r,t){return Array.prototype.slice.call(t,0).sort(r)}),Ti=em;var nm=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){var i=r(o),u=r(a);return i<u?-1:i>u?1:0})}),Wi=nm;var om=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){for(var i=0,u=0;i===0&&u<r.length;)i=r[u](o,a),u+=1;return i})}),Ni=om;var am=hr(1,"split"),Bi=am;var im=f(function(r,t){return[M(0,r,t),M(r,Ae(t),t)]}),Ci=im;var um=f(function(r,t){if(r<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var o=[],a=0;a<t.length;)o.push(M(a,a+=r,t));return o}),Li=um;var fm=f(function(r,t){for(var o=0,a=t.length,i=[];o<a&&!r(t[o]);)i.push(t[o]),o+=1;return[i,Array.prototype.slice.call(t,o)]}),ji=fm;var sm=or(2,[],function(r,t){for(var o=[],a=[],i=0;i<t.length;i=i+1)r(t[i])||a.push(t[i]),(i<t.length-1&&r(t[i+1])||i===t.length-1)&&a.length>0&&(o.push(a),a=[]);return o}),Di=sm;var cm=f(function(n,r){return B(it(n.length,r),n)}),Mi=cm;var pm=f(function(r,t){return Number(r)-Number(t)}),qi=pm;var lm=function(n,r,t){var o=rt(t),a=Object.getOwnPropertyNames(o);if(a.includes(n)&&a.includes(r)){var i=o[n];o[n]=o[r],o[r]=i}return o},Fi=function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=Math.min(i,u),s=Math.max(i,u);return i<0||i>o||u<0||u>o||i===u||(a=[].concat(a.slice(0,c)).concat([a[s]]).concat(a.slice(c+1,s)).concat([a[c]]).concat(a.slice(s+1,o))),a},mm=function(n,r,t){var o=Fi(n,r,t);return P(o)?o.join(""):o},dm=l(function(n,r,t){return P(t)?Fi(n,r,t):Z(t)?mm(n,r,t):lm(n,r,t)}),Ui=dm;var hm=f(function(r,t){return nt(kt(r,t),kt(t,r))}),zi=hm;var ym=l(function(r,t,o){return nt(Rt(r,t,o),Rt(r,o,t))}),Vi=ym;var vm=f(function(r,t){for(var o=t.length-1;o>=0&&r(t[o]);)o-=1;return M(o+1,1/0,t)}),Xi=vm;var gm=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):V(r)},n}();function Tn(n){return function(r){return new gm(n,r)}}var xm=f(_(["takeWhile"],Tn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(0,o,t)})),Ki=xm;var _m=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t),this.xf["@@transducer/step"](r,t)},n}();function Wn(n){return function(r){return new _m(n,r)}}var wm=f(_([],Wn,function(r,t){return r(t),t})),jt=wm;function Nn(n){return Object.prototype.toString.call(n)==="[object RegExp]"}var Im=f(function(r,t){if(!Nn(r))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+H(r));return At(r).test(t)}),Hi=Im;var bm=f(function(r,t){return Bt("andThen",t),t.then(r)}),Qi=bm;var Am=hr(0,"toLowerCase"),Zi=Am;var Om=p(function(r){var t=[];for(var o in r)k(o,r)&&(t[t.length]=[o,r[o]]);return t}),Ji=Om;var Sm=p(function(r){var t=[];for(var o in r)t[t.length]=[o,r[o]];return t}),Gi=Sm;var km=hr(0,"toUpperCase"),Yi=km;var Rm=S(4,function(r,t,o,a){return Y(r(typeof t=="function"?_r(t):t),o,a)}),$i=Rm;var Pm=p(function(r){for(var t=0,o=[];t<r.length;){for(var a=r[t],i=0;i<a.length;)typeof o[i]>"u"&&(o[i]=[]),o[i].push(a[i]),i+=1;t+=1}return o}),ru=Pm;var Em=l(function(r,t,o){var a=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,i={"fantasy-land/of":a};return typeof o["fantasy-land/traverse"]=="function"?o["fantasy-land/traverse"](i,t):typeof o.traverse=="function"?o.traverse(i,t):qe(i,L(t,o))}),tu=Em;var Dt=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Tm="\u200B",Wm=typeof String.prototype.trim=="function",Nm=!Wm||Dt.trim()||!Tm.trim()?p(function(r){var t=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return r.replace(t,"").replace(o,"")}):p(function(r){return r.trim()}),eu=Nm;var Bm=f(function(r,t){return U(r.length,function(){try{return r.apply(this,arguments)}catch(o){return t.apply(this,C([o],arguments))}})}),nu=Bm;var Cm=p(function(r){return function(){return r(Array.prototype.slice.call(arguments,0))}}),ou=Cm;var Lm=p(function(r){return Pr(1,r)}),au=Lm;var jm=f(function(r,t){return S(r,function(){for(var o=1,a=t,i=0,u;o<=r&&typeof a=="function";)u=o===r?arguments.length:i+a.length,a=a.apply(this,Array.prototype.slice.call(arguments,i,u)),o+=1,i=u;return a})}),iu=jm;var Dm=f(function(r,t){for(var o=r(t),a=[];o&&o.length;)a[a.length]=o[0],o=r(o[1]);return a}),uu=Dm;var Mm=f(Wr(ft,C)),fu=Mm;var qm=function(){function n(r,t){this.xf=t,this.pred=r,this.items=[]}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return rr(this.pred,t,this.items)?r:(this.items.push(t),this.xf["@@transducer/step"](r,t))},n}();function Bn(n){return function(r){return new qm(n,r)}}var Fm=f(_([],Bn,function(n,r){for(var t=0,o=r.length,a=[],i;t<o;)i=r[t],rr(n,i,a)||(a[a.length]=i),t+=1;return a})),Fe=Fm;var Um=l(function(r,t,o){return Fe(r,C(t,o))}),su=Um;var zm=l(function(r,t,o){return r(o)?o:t(o)}),cu=zm;var Vm=ne(ur),Ue=Vm;var Xm=l(function(r,t,o){for(var a=o;!r(a);)a=t(a);return a}),pu=Xm;var Km=f(function(n,r){return n in r&&P(r[n])?tr(function(t){return Vr(n,t,r)},r[n]):[r]}),lu=Km;var Hm=p(function(r){var t,o=[];for(t in r)o[o.length]=r[t];return o}),mu=Hm;var Qm=function(n){return{value:n,"fantasy-land/map":function(){return this}}},Zm=f(function(r,t){return r(Qm)(t).value}),du=Zm;var Jm=l(function(r,t,o){return r(o)?t(o):o}),Mt=Jm;var Gm=f(function(r,t){for(var o in r)if(k(o,r)&&!r[o](t[o]))return!1;return!0}),ze=Gm;var Ym=f(function(r,t){for(var o in r)if(k(o,r)&&r[o](t[o]))return!0;return!1}),hu=Ym;var $m=f(function(r,t){return ze(L(B,r),t)}),Ve=$m;var rd=f(function(r,t){for(var o=new dr,a=0;a<r.length;a+=1)o.add(r[a]);return Or(o.has.bind(o),t)}),yu=rd;var td=f(function(r,t){return!!(!r^!t)}),vu=td;var ed=f(function(r,t){for(var o=0,a=r.length,i,u=t.length,c=[];o<a;){for(i=0;i<u;)c[c.length]=[r[o],t[i]],i+=1;o+=1}return c}),gu=ed;var nd=f(function(r,t){for(var o=[],a=0,i=Math.min(r.length,t.length);a<i;)o[a]=[r[a],t[a]],a+=1;return o}),xu=nd;var od=f(function(r,t){for(var o=0,a=Math.min(r.length,t.length),i={};o<a;)i[r[o]]=t[o],o+=1;return i}),_u=od;var ad=l(function(r,t,o){for(var a=[],i=0,u=Math.min(t.length,o.length);i<u;)a[i]=r(t[i],o[i]),i+=1;return a}),wu=ad;var id=p(function(r){return S(r.length,function(){var o=arguments;return function(){return r.apply(this,o)}})}),Iu=id;var Ru={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Mn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},ud=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Xe={CSS:{},springs:{}};function yr(n,r,t){return Math.min(Math.max(n,r),t)}function qt(n,r){return n.indexOf(r)>-1}function Ln(n,r){return n.apply(null,r)}var v={arr:function(n){return Array.isArray(n)},obj:function(n){return qt(Object.prototype.toString.call(n),"Object")},pth:function(n){return v.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||v.svg(n)},str:function(n){return typeof n=="string"},fnc:function(n){return typeof n=="function"},und:function(n){return typeof n>"u"},nil:function(n){return v.und(n)||n===null},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return v.hex(n)||v.rgb(n)||v.hsl(n)},key:function(n){return!Ru.hasOwnProperty(n)&&!Mn.hasOwnProperty(n)&&n!=="targets"&&n!=="keyframes"}};function Pu(n){var r=/\(([^)]+)\)/.exec(n);return r?r[1].split(",").map(function(t){return parseFloat(t)}):[]}function Eu(n,r){var t=Pu(n),o=yr(v.und(t[0])?1:t[0],.1,100),a=yr(v.und(t[1])?100:t[1],.1,100),i=yr(v.und(t[2])?10:t[2],.1,100),u=yr(v.und(t[3])?0:t[3],.1,100),c=Math.sqrt(a/o),s=i/(2*Math.sqrt(a*o)),d=s<1?c*Math.sqrt(1-s*s):0,m=1,h=s<1?(s*c+-u)/d:-u+c;function g(O){var x=r?r*O/1e3:O;return s<1?x=Math.exp(-x*s*c)*(m*Math.cos(d*x)+h*Math.sin(d*x)):x=(m+h*x)*Math.exp(-x*c),O===0||O===1?O:1-x}function W(){var O=Xe.springs[n];if(O)return O;for(var x=1/6,b=0,j=0;;)if(b+=x,g(b)===1){if(j++,j>=16)break}else j=0;var z=b*x*1e3;return Xe.springs[n]=z,z}return r?g:W}function fd(n){return n===void 0&&(n=10),function(r){return Math.ceil(yr(r,1e-6,1)*n)*(1/n)}}var sd=function(){var n=11,r=1/(n-1);function t(m,h){return 1-3*h+3*m}function o(m,h){return 3*h-6*m}function a(m){return 3*m}function i(m,h,g){return((t(h,g)*m+o(h,g))*m+a(h))*m}function u(m,h,g){return 3*t(h,g)*m*m+2*o(h,g)*m+a(h)}function c(m,h,g,W,O){var x,b,j=0;do b=h+(g-h)/2,x=i(b,W,O)-m,x>0?g=b:h=b;while(Math.abs(x)>1e-7&&++j<10);return b}function s(m,h,g,W){for(var O=0;O<4;++O){var x=u(h,g,W);if(x===0)return h;var b=i(h,g,W)-m;h-=b/x}return h}function d(m,h,g,W){if(!(0<=m&&m<=1&&0<=g&&g<=1))return;var O=new Float32Array(n);if(m!==h||g!==W)for(var x=0;x<n;++x)O[x]=i(x*r,m,g);function b(j){for(var z=0,w=1,A=n-1;w!==A&&O[w]<=j;++w)z+=r;--w;var N=(j-O[w])/(O[w+1]-O[w]),$=z+N*r,q=u($,m,g);return q>=.001?s(j,$,m,g):q===0?$:c(j,z,z+r,m,g)}return function(j){return m===h&&g===W||j===0||j===1?j:i(b(j),h,W)}}return d}(),Tu=function(){var n={linear:function(){return function(o){return o}}},r={Sine:function(){return function(o){return 1-Math.cos(o*Math.PI/2)}},Circ:function(){return function(o){return 1-Math.sqrt(1-o*o)}},Back:function(){return function(o){return o*o*(3*o-2)}},Bounce:function(){return function(o){for(var a,i=4;o<((a=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((a*3-2)/22-o,2)}},Elastic:function(o,a){o===void 0&&(o=1),a===void 0&&(a=.5);var i=yr(o,1,10),u=yr(a,.1,2);return function(c){return c===0||c===1?c:-i*Math.pow(2,10*(c-1))*Math.sin((c-1-u/(Math.PI*2)*Math.asin(1/i))*(Math.PI*2)/u)}}},t=["Quad","Cubic","Quart","Quint","Expo"];return t.forEach(function(o,a){r[o]=function(){return function(i){return Math.pow(i,a+2)}}}),Object.keys(r).forEach(function(o){var a=r[o];n["easeIn"+o]=a,n["easeOut"+o]=function(i,u){return function(c){return 1-a(i,u)(1-c)}},n["easeInOut"+o]=function(i,u){return function(c){return c<.5?a(i,u)(c*2)/2:1-a(i,u)(c*-2+2)/2}},n["easeOutIn"+o]=function(i,u){return function(c){return c<.5?(1-a(i,u)(1-c*2))/2:(a(i,u)(c*2-1)+1)/2}}}),n}();function qn(n,r){if(v.fnc(n))return n;var t=n.split("(")[0],o=Tu[t],a=Pu(n);switch(t){case"spring":return Eu(n,r);case"cubicBezier":return Ln(sd,a);case"steps":return Ln(fd,a);default:return Ln(o,a)}}function Wu(n){try{var r=document.querySelectorAll(n);return r}catch{return}}function Ke(n,r){for(var t=n.length,o=arguments.length>=2?arguments[1]:void 0,a=[],i=0;i<t;i++)if(i in n){var u=n[i];r.call(o,u,i,n)&&a.push(u)}return a}function He(n){return n.reduce(function(r,t){return r.concat(v.arr(t)?He(t):t)},[])}function bu(n){return v.arr(n)?n:(v.str(n)&&(n=Wu(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function Fn(n,r){return n.some(function(t){return t===r})}function Un(n){var r={};for(var t in n)r[t]=n[t];return r}function jn(n,r){var t=Un(n);for(var o in n)t[o]=r.hasOwnProperty(o)?r[o]:n[o];return t}function Qe(n,r){var t=Un(n);for(var o in r)t[o]=v.und(n[o])?r[o]:n[o];return t}function cd(n){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);return r?"rgba("+r[1]+",1)":n}function pd(n){var r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t=n.replace(r,function(c,s,d,m){return s+s+d+d+m+m}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),a=parseInt(o[1],16),i=parseInt(o[2],16),u=parseInt(o[3],16);return"rgba("+a+","+i+","+u+",1)"}function ld(n){var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),t=parseInt(r[1],10)/360,o=parseInt(r[2],10)/100,a=parseInt(r[3],10)/100,i=r[4]||1;function u(g,W,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?g+(W-g)*6*O:O<1/2?W:O<2/3?g+(W-g)*(2/3-O)*6:g}var c,s,d;if(o==0)c=s=d=a;else{var m=a<.5?a*(1+o):a+o-a*o,h=2*a-m;c=u(h,m,t+1/3),s=u(h,m,t),d=u(h,m,t-1/3)}return"rgba("+c*255+","+s*255+","+d*255+","+i+")"}function md(n){if(v.rgb(n))return cd(n);if(v.hex(n))return pd(n);if(v.hsl(n))return ld(n)}function wr(n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(r)return r[1]}function dd(n){if(qt(n,"translate")||n==="perspective")return"px";if(qt(n,"rotate")||qt(n,"skew"))return"deg"}function Dn(n,r){return v.fnc(n)?n(r.target,r.id,r.total):n}function vr(n,r){return n.getAttribute(r)}function zn(n,r,t){var o=wr(r);if(Fn([t,"deg","rad","turn"],o))return r;var a=Xe.CSS[r+t];if(!v.und(a))return a;var i=100,u=document.createElement(n.tagName),c=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;c.appendChild(u),u.style.position="absolute",u.style.width=i+t;var s=i/u.offsetWidth;c.removeChild(u);var d=s*parseFloat(r);return Xe.CSS[r+t]=d,d}function Nu(n,r,t){if(r in n.style){var o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[r]||getComputedStyle(n).getPropertyValue(o)||"0";return t?zn(n,a,t):a}}function Vn(n,r){if(v.dom(n)&&!v.inp(n)&&(!v.nil(vr(n,r))||v.svg(n)&&n[r]))return"attribute";if(v.dom(n)&&Fn(ud,r))return"transform";if(v.dom(n)&&r!=="transform"&&Nu(n,r))return"css";if(n[r]!=null)return"object"}function Bu(n){if(v.dom(n)){for(var r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,o=new Map,a;a=t.exec(r);)o.set(a[1],a[2]);return o}}function hd(n,r,t,o){var a=qt(r,"scale")?1:0+dd(r),i=Bu(n).get(r)||a;return t&&(t.transforms.list.set(r,i),t.transforms.last=r),o?zn(n,i,o):i}function Xn(n,r,t,o){switch(Vn(n,r)){case"transform":return hd(n,r,o,t);case"css":return Nu(n,r,t);case"attribute":return vr(n,r);default:return n[r]||0}}function Kn(n,r){var t=/^(\*=|\+=|-=)/.exec(n);if(!t)return n;var o=wr(n)||0,a=parseFloat(r),i=parseFloat(n.replace(t[0],""));switch(t[0][0]){case"+":return a+i+o;case"-":return a-i+o;case"*":return a*i+o}}function Cu(n,r){if(v.col(n))return md(n);if(/\s/g.test(n))return n;var t=wr(n),o=t?n.substr(0,n.length-t.length):n;return r?o+r:o}function Hn(n,r){return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}function yd(n){return Math.PI*2*vr(n,"r")}function vd(n){return vr(n,"width")*2+vr(n,"height")*2}function gd(n){return Hn({x:vr(n,"x1"),y:vr(n,"y1")},{x:vr(n,"x2"),y:vr(n,"y2")})}function Lu(n){for(var r=n.points,t=0,o,a=0;a<r.numberOfItems;a++){var i=r.getItem(a);a>0&&(t+=Hn(o,i)),o=i}return t}function xd(n){var r=n.points;return Lu(n)+Hn(r.getItem(r.numberOfItems-1),r.getItem(0))}function ju(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return yd(n);case"rect":return vd(n);case"line":return gd(n);case"polyline":return Lu(n);case"polygon":return xd(n)}}function _d(n){var r=ju(n);return n.setAttribute("stroke-dasharray",r),r}function wd(n){for(var r=n.parentNode;v.svg(r)&&v.svg(r.parentNode);)r=r.parentNode;return r}function Du(n,r){var t=r||{},o=t.el||wd(n),a=o.getBoundingClientRect(),i=vr(o,"viewBox"),u=a.width,c=a.height,s=t.viewBox||(i?i.split(" "):[0,0,u,c]);return{el:o,viewBox:s,x:s[0]/1,y:s[1]/1,w:u,h:c,vW:s[2],vH:s[3]}}function Id(n,r){var t=v.str(n)?Wu(n)[0]:n,o=r||100;return function(a){return{property:a,el:t,svg:Du(t),totalLength:ju(t)*(o/100)}}}function bd(n,r,t){function o(m){m===void 0&&(m=0);var h=r+m>=1?r+m:0;return n.el.getPointAtLength(h)}var a=Du(n.el,n.svg),i=o(),u=o(-1),c=o(1),s=t?1:a.w/a.vW,d=t?1:a.h/a.vH;switch(n.property){case"x":return(i.x-a.x)*s;case"y":return(i.y-a.y)*d;case"angle":return Math.atan2(c.y-u.y,c.x-u.x)*180/Math.PI}}function Au(n,r){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,o=Cu(v.pth(n)?n.totalLength:n,r)+"";return{original:o,numbers:o.match(t)?o.match(t).map(Number):[0],strings:v.str(n)||r?o.split(t):[]}}function Qn(n){var r=n?He(v.arr(n)?n.map(bu):bu(n)):[];return Ke(r,function(t,o,a){return a.indexOf(t)===o})}function Mu(n){var r=Qn(n);return r.map(function(t,o){return{target:t,id:o,total:r.length,transforms:{list:Bu(t)}}})}function Ad(n,r){var t=Un(r);if(/^spring/.test(t.easing)&&(t.duration=Eu(t.easing)),v.arr(n)){var o=n.length,a=o===2&&!v.obj(n[0]);a?n={value:n}:v.fnc(r.duration)||(t.duration=r.duration/o)}var i=v.arr(n)?n:[n];return i.map(function(u,c){var s=v.obj(u)&&!v.pth(u)?u:{value:u};return v.und(s.delay)&&(s.delay=c?0:r.delay),v.und(s.endDelay)&&(s.endDelay=c===i.length-1?r.endDelay:0),s}).map(function(u){return Qe(u,t)})}function Od(n){for(var r=Ke(He(n.map(function(i){return Object.keys(i)})),function(i){return v.key(i)}).reduce(function(i,u){return i.indexOf(u)<0&&i.push(u),i},[]),t={},o=function(i){var u=r[i];t[u]=n.map(function(c){var s={};for(var d in c)v.key(d)?d==u&&(s.value=c[d]):s[d]=c[d];return s})},a=0;a<r.length;a++)o(a);return t}function Sd(n,r){var t=[],o=r.keyframes;o&&(r=Qe(Od(o),r));for(var a in r)v.key(a)&&t.push({name:a,tweens:Ad(r[a],n)});return t}function kd(n,r){var t={};for(var o in n){var a=Dn(n[o],r);v.arr(a)&&(a=a.map(function(i){return Dn(i,r)}),a.length===1&&(a=a[0])),t[o]=a}return t.duration=parseFloat(t.duration),t.delay=parseFloat(t.delay),t}function Rd(n,r){var t;return n.tweens.map(function(o){var a=kd(o,r),i=a.value,u=v.arr(i)?i[1]:i,c=wr(u),s=Xn(r.target,n.name,c,r),d=t?t.to.original:s,m=v.arr(i)?i[0]:d,h=wr(m)||wr(s),g=c||h;return v.und(u)&&(u=d),a.from=Au(m,g),a.to=Au(Kn(u,m),g),a.start=t?t.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=qn(a.easing,a.duration),a.isPath=v.pth(i),a.isPathTargetInsideSVG=a.isPath&&v.svg(r.target),a.isColor=v.col(a.from.original),a.isColor&&(a.round=1),t=a,a})}var qu={css:function(n,r,t){return n.style[r]=t},attribute:function(n,r,t){return n.setAttribute(r,t)},object:function(n,r,t){return n[r]=t},transform:function(n,r,t,o,a){if(o.list.set(r,t),r===o.last||a){var i="";o.list.forEach(function(u,c){i+=c+"("+u+") "}),n.style.transform=i}}};function Fu(n,r){var t=Mu(n);t.forEach(function(o){for(var a in r){var i=Dn(r[a],o),u=o.target,c=wr(i),s=Xn(u,a,c,o),d=c||wr(s),m=Kn(Cu(i,d),s),h=Vn(u,a);qu[h](u,a,m,o.transforms,!0)}})}function Pd(n,r){var t=Vn(n.target,r.name);if(t){var o=Rd(r,n),a=o[o.length-1];return{type:t,property:r.name,animatable:n,tweens:o,duration:a.end,delay:o[0].delay,endDelay:a.endDelay}}}function Ed(n,r){return Ke(He(n.map(function(t){return r.map(function(o){return Pd(t,o)})})),function(t){return!v.und(t)})}function Uu(n,r){var t=n.length,o=function(i){return i.timelineOffset?i.timelineOffset:0},a={};return a.duration=t?Math.max.apply(Math,n.map(function(i){return o(i)+i.duration})):r.duration,a.delay=t?Math.min.apply(Math,n.map(function(i){return o(i)+i.delay})):r.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(i){return o(i)+i.duration-i.endDelay})):r.endDelay,a}var Ou=0;function Td(n){var r=jn(Ru,n),t=jn(Mn,n),o=Sd(t,n),a=Mu(n.targets),i=Ed(a,o),u=Uu(i,t),c=Ou;return Ou++,Qe(r,{id:c,children:[],animatables:a,animations:i,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var lr=[],zu=function(){var n;function r(){!n&&(!Su()||!F.suspendWhenDocumentHidden)&&lr.length>0&&(n=requestAnimationFrame(t))}function t(a){for(var i=lr.length,u=0;u<i;){var c=lr[u];c.paused?(lr.splice(u,1),i--):(c.tick(a),u++)}n=u>0?requestAnimationFrame(t):void 0}function o(){F.suspendWhenDocumentHidden&&(Su()?n=cancelAnimationFrame(n):(lr.forEach(function(a){return a._onDocumentVisibility()}),zu()))}return typeof document<"u"&&document.addEventListener("visibilitychange",o),r}();function Su(){return!!document&&document.hidden}function F(n){n===void 0&&(n={});var r=0,t=0,o=0,a,i=0,u=null;function c(w){var A=window.Promise&&new Promise(function(N){return u=N});return w.finished=A,A}var s=Td(n),d=c(s);function m(){var w=s.direction;w!=="alternate"&&(s.direction=w!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,a.forEach(function(A){return A.reversed=s.reversed})}function h(w){return s.reversed?s.duration-w:w}function g(){r=0,t=h(s.currentTime)*(1/F.speed)}function W(w,A){A&&A.seek(w-A.timelineOffset)}function O(w){if(s.reversePlayback)for(var N=i;N--;)W(w,a[N]);else for(var A=0;A<i;A++)W(w,a[A])}function x(w){for(var A=0,N=s.animations,$=N.length;A<$;){var q=N[A],Hr=q.animatable,gr=q.tweens,E=gr.length-1,I=gr[E];E&&(I=Ke(gr,function(df){return w<df.end})[0]||I);for(var Ir=yr(w-I.start-I.delay,0,I.duration)/I.duration,nr=isNaN(Ir)?1:I.easing(Ir),Mr=I.to.strings,Ye=I.round,$e=[],mf=I.to.numbers.length,Qr=void 0,mt=0;mt<mf;mt++){var dt=void 0,eo=I.to.numbers[mt],no=I.from.numbers[mt]||0;I.isPath?dt=bd(I.value,nr*eo,I.isPathTargetInsideSVG):dt=no+nr*(eo-no),Ye&&(I.isColor&&mt>2||(dt=Math.round(dt*Ye)/Ye)),$e.push(dt)}var oo=Mr.length;if(!oo)Qr=$e[0];else{Qr=Mr[0];for(var ht=0;ht<oo;ht++){var mh=Mr[ht],ao=Mr[ht+1],rn=$e[ht];isNaN(rn)||(ao?Qr+=rn+ao:Qr+=rn+" ")}}qu[q.type](Hr.target,q.property,Qr,Hr.transforms),q.currentValue=Qr,A++}}function b(w){s[w]&&!s.passThrough&&s[w](s)}function j(){s.remaining&&s.remaining!==!0&&s.remaining--}function z(w){var A=s.duration,N=s.delay,$=A-s.endDelay,q=h(w);s.progress=yr(q/A*100,0,100),s.reversePlayback=q<s.currentTime,a&&O(q),!s.began&&s.currentTime>0&&(s.began=!0,b("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,b("loopBegin")),q<=N&&s.currentTime!==0&&x(0),(q>=$&&s.currentTime!==A||!A)&&x(A),q>N&&q<$?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,b("changeBegin")),b("change"),x(q)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,b("changeComplete")),s.currentTime=yr(q,0,A),s.began&&b("update"),w>=A&&(t=0,j(),s.remaining?(r=o,b("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&m()):(s.paused=!0,s.completed||(s.completed=!0,b("loopComplete"),b("complete"),!s.passThrough&&"Promise"in window&&(u(),d=c(s)))))}return s.reset=function(){var w=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=w==="reverse",s.remaining=s.loop,a=s.children,i=a.length;for(var A=i;A--;)s.children[A].reset();(s.reversed&&s.loop!==!0||w==="alternate"&&s.loop===1)&&s.remaining++,x(s.reversed?s.duration:0)},s._onDocumentVisibility=g,s.set=function(w,A){return Fu(w,A),s},s.tick=function(w){o=w,r||(r=o),z((o+(t-r))*F.speed)},s.seek=function(w){z(h(w))},s.pause=function(){s.paused=!0,g()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,lr.push(s),g(),zu())},s.reverse=function(){m(),s.completed=!s.reversed,g()},s.restart=function(){s.reset(),s.play()},s.remove=function(w){var A=Qn(w);Vu(A,s)},s.reset(),s.autoplay&&s.play(),s}function ku(n,r){for(var t=r.length;t--;)Fn(n,r[t].animatable.target)&&r.splice(t,1)}function Vu(n,r){var t=r.animations,o=r.children;ku(n,t);for(var a=o.length;a--;){var i=o[a],u=i.animations;ku(n,u),!u.length&&!i.children.length&&o.splice(a,1)}!t.length&&!o.length&&r.pause()}function Wd(n){for(var r=Qn(n),t=lr.length;t--;){var o=lr[t];Vu(r,o)}}function Nd(n,r){r===void 0&&(r={});var t=r.direction||"normal",o=r.easing?qn(r.easing):null,a=r.grid,i=r.axis,u=r.from||0,c=u==="first",s=u==="center",d=u==="last",m=v.arr(n),h=parseFloat(m?n[0]:n),g=m?parseFloat(n[1]):0,W=wr(m?n[1]:n)||0,O=r.start||0+(m?h:0),x=[],b=0;return function(j,z,w){if(c&&(u=0),s&&(u=(w-1)/2),d&&(u=w-1),!x.length){for(var A=0;A<w;A++){if(!a)x.push(Math.abs(u-A));else{var N=s?(a[0]-1)/2:u%a[0],$=s?(a[1]-1)/2:Math.floor(u/a[0]),q=A%a[0],Hr=Math.floor(A/a[0]),gr=N-q,E=$-Hr,I=Math.sqrt(gr*gr+E*E);i==="x"&&(I=-gr),i==="y"&&(I=-E),x.push(I)}b=Math.max.apply(Math,x)}o&&(x=x.map(function(nr){return o(nr/b)*b})),t==="reverse"&&(x=x.map(function(nr){return i?nr<0?nr*-1:-nr:Math.abs(b-nr)}))}var Ir=m?(g-h)/b:h;return O+Ir*(Math.round(x[z]*100)/100)+W}}function Bd(n){n===void 0&&(n={});var r=F(n);return r.duration=0,r.add=function(t,o){var a=lr.indexOf(r),i=r.children;a>-1&&lr.splice(a,1);function u(g){g.passThrough=!0}for(var c=0;c<i.length;c++)u(i[c]);var s=Qe(t,jn(Mn,n));s.targets=s.targets||n.targets;var d=r.duration;s.autoplay=!1,s.direction=r.direction,s.timelineOffset=v.und(o)?d:Kn(o,d),u(r),r.seek(s.timelineOffset);var m=F(s);u(m),i.push(m);var h=Uu(i,n);return r.delay=h.delay,r.endDelay=h.endDelay,r.duration=h.duration,r.seek(0),r.reset(),r.autoplay&&r.play(),r},r}F.version="3.2.1";F.speed=1;F.suspendWhenDocumentHidden=!0;F.running=lr;F.remove=Wd;F.get=Xn;F.set=Fu;F.convertPx=zn;F.path=Id;F.setDashoffset=_d;F.stagger=Nd;F.timeline=Bd;F.easing=qn;F.penner=Tu;F.random=function(n,r){return Math.floor(Math.random()*(r-n+1))+n};var jr=F;var Hu=0,Qu=Object.create(null),Cd=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let n of Cd)for(let r of["-webkit-","-ms-","-moz-","-o-",""])Qu[r+n]=!0;function Zn(n,r){return n.replace(/&/g,r)}function Xu(n){return n.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Ld(n){let r=5381,t=n.length;for(;t--;)r=r*33^n.charCodeAt(t);return(r>>>0).toString(36)}function jd(n,r){return n.indexOf("&")===-1?`${r} ${n}`:Zn(n,r)}function Ku(n,r){return n[0]>r[0]?1:n[0]<r[0]?-1:n[2]-r[2]}function Dd([n,r]){return typeof r=="number"&&r&&!Qu[n]?`${n}:${r}px`:`${n}:${String(r)}`}function Zu(n,r,t,o,a){let i=[],u=[];for(let x of Object.keys(o)){let b=o[x];if(x.charCodeAt(0)!==36&&b!=null)if(Array.isArray(b)){let j=Xu(x);for(let z=0;z<b.length;z++){let w=b[z];w!=null&&i.push([j,w,z])}}else typeof b=="object"?u.push([x,b,0]):i.push([Xu(x),b,0])}let c=!!o.$unique,s=o.$global?"":a,d=s?u:u.sort(Ku),m=i.sort(Ku).map(Dd).join(";"),h=m,g=s,W=n,O=r;t.charCodeAt(0)===64?(W=[],O=[],s&&m&&O.push({selector:g,style:m,isUnique:c}),n.push({selector:t,rules:W,styles:O,style:s?"":m})):(g=s?t?jd(t,s):s:t,m&&r.push({selector:g,style:m,isUnique:c}));for(let[x,b]of d)h+=`|${x}#${Zu(W,O,x,b,g)}`;return h}function Ju(n,r,t,o,a){for(let{selector:i,style:u,isUnique:c}of t){let s=Zn(i,a),d=new Gn(u,c?(++Hu).toString(36):o);d.add(new Jn(s)),n.add(d)}for(let{selector:i,style:u,rules:c,styles:s}of r){let d=Zn(i,a),m=new Yn(d,u,o);Ju(m,c,s,o,a),n.add(m)}}function Gu(n){let r="";for(let t=0;t<n.length;t++)r+=n[t];return r}var Ft=class n{constructor(r){this.changes=r,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(r){let t=r.id,o=this._counters[t]||0,a=this._children[t]||r.clone();if(this._counters[t]=o+1,o===0)this._children[t]=a,this._keys.push(t),this.sheet.push(a.getStyles()),this.changeId++,this.changes&&this.changes.add(a,this._keys.length-1);else if(a instanceof n&&r instanceof n){let i=a.changeId;if(a.merge(r),a.changeId!==i){let u=this._keys.indexOf(t);this.sheet.splice(u,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,u,u)}}}remove(r){let t=r.id,o=this._counters[t];if(o){this._counters[t]=o-1;let a=this._children[t],i=this._keys.indexOf(t);if(o===1)delete this._counters[t],delete this._children[t],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes&&this.changes.remove(a,i);else if(a instanceof n&&r instanceof n){let u=a.changeId;a.unmerge(r),a.changeId!==u&&(this.sheet.splice(i,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,i,i))}}}values(){return this._keys.map(r=>this._children[r])}merge(r){for(let t of r.values())this.add(t);return this}unmerge(r){for(let t of r.values())this.remove(t);return this}clone(){return new n().merge(this)}},Jn=class{constructor(r){this.selector=r}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Gn=class n extends Ft{constructor(r,t){super(),this.style=r,this.pid=t}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new n(this.style,this.pid).merge(this)}},Yn=class n extends Ft{constructor(r,t,o){super(),this.rule=r,this.style=t,this.pid=o}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${Gu(this.sheet)}}`}clone(){return new n(this.rule,this.style,this.pid).merge(this)}},$n=class n extends Ft{constructor(r,t){super(t),this.id=r}registerStyle(r){let t=[],o=[],a=Zu(t,o,"",r,".&"),i=`f${Ld(a)}`;return Ju(this,t,o,i,i),i}getStyles(){return Gu(this.sheet)}clone(){return new n(this.id,this.changes).merge(this)}};function Yu(n){return new $n(`f${(++Hu).toString(36)}`,n)}var Md=console.log,Ze=Jt([Ie,Ot(Tt)]),Ut=Yt([er,Tt]),qd=(n,r=pr,t=pr,...o)=>{let a=n,i=o;return{get state(){return a},mod:u=>{let c=rt(a),s=t(Ee(a,r(u,c)),c);return Ot(B)(s,a)&&(a=s,L(ee,i)),{onceAfter:d=>Ut(d)?()=>{}:d(a)}},subscribe:u=>i=$t(u,i)}},lt=document,Je=n=>lt.createElement(n),$u=n=>lt.createTextNode(n),rf=n=>lt.head.appendChild(n),tf=n=>lt.body.appendChild(n),Dr="lcc"+crypto.randomUUID(),Fd=jt(n=>{Ut(n[Dr].added)&&Ut(n[Dr].removed)||new MutationObserver((r,t)=>L(o=>{Et(n,o.addedNodes)&&Ze(n[Dr].added)&&n[Dr].added(n),Et(n,o.removedNodes)&&Ze(n[Dr].removed)&&(t.disconnect(),n[Dr].removed(n))})(r)).observe(window.document,{childList:!0,subtree:!0})}),ef=(n,r,...t)=>{let o=Je(n);return Wt((a,i)=>Ut(a)?delete o[i]:o[i]=a,pe("lifecycle",r)),o[Dr]={},Wt((a,i)=>o[Dr][i]=a,r.lifecycle),L(a=>{a&&o.appendChild(Kr(String,a)?$u(a):a)},Mt(Kr(Array),Ue,t)),Fd(o)},Ud=(n,r,t)=>{let o=ef(n,r);return o.innerHTML=t,o},pt=n=>lt.getElementById(n),nf=n=>{n.preventDefault(),n.stopPropagation()},of=n=>(r,t=!0)=>o=>{n(o)&&(r(o),t&&nf(o))},zd=n=>{Ze(pt(n))&&pt(n).offsetParent!=null&&pt(n).focus()},Vd=n=>{let r=Je("script");r.setAttribute("src",n),r.async=!1,tf(r)},af=n=>{let r=Yu(),t=r.registerStyle(n),o=Je("style");return o.textContent=r.getStyles(),rf(o),t},Xd=Wr(Yr(Wr),L(jt)),Kd=n=>pt(n).value,Hd=n=>Nt({[`disabled${n}`]:!0}),Qd=n=>Nt({[`disabled${n}`]:!1}),Zd=n=>Mt(r=>n.state[`disabled${r.id}`],Rr("disabled",!0)),Jd=n=>pt(n).value="",uf=n=>{let r=null;return t=>{r&&clearTimeout(r),r=setTimeout(t,n)}},Gd=window.localStorage,Yd=JSON.parse,$d=JSON.stringify,rh=of(Ve({key:"Enter",keyCode:13}));af({$global:!0,body:{margin:0,padding:0,letterSpacing:"0.2px",fontSize:"14pt",boxSizing:"border-box"},"a,a:visited,a:hover,a:active":{color:"LinkText"}},!0);var ro=1e3,th=ro*6,eh=n=>()=>{jr({targets:n,translateY:["-100%",0],duration:ro,easing:"easeInOutQuad",complete:()=>{jr({targets:n,top:[0,"-100%"],duration:ro,delay:th,easing:"easeInOutQuad",complete:()=>{jr.remove(n)}})}})},to=1e3,nh=to*2,oh=n=>()=>{jr({targets:n,opacity:["0%","100%"],duration:to,easing:"easeInOutQuad",complete:()=>{jr({targets:n,opacity:["100%","0%"],duration:to,delay:nh,easing:"easeInOutQuad",complete:()=>{jr.remove(n)}})}})},ah=uf(1e3);Object.assign(globalThis,{R:Cn,anime:jr,l:Md,neon:Ze,eon:Ut,store:qd,d:lt,dce:Je,dctn:$u,dhac:rf,dbac:tf,e:ef,innere:Ud,ge:pt,stopEvent:nf,onEFN:of,onEnter:rh,focusIfVisible:zd,addjs:Vd,addcss:af,callall:Xd,valueByID:Kd,disableID:Hd,enableID:Qd,clearValueByID:Jd,disableable:Zd,debounce:uf,runAfterOneSecondPause:ah,wls:Gd,jp:Yd,js:$d,slideDownUp:eh,fadeInOut:oh});var zt=n=>"{{.Cfg.SuperTokensWebLibBase}}"+n;addjs(zt("/website.js"));addjs(zt("/supertokens.js"));addjs(zt("/session.js"));addjs(zt("/passwordless.js"));addjs(zt("/emailverification.js"));var ih=addcss({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),uh=addcss({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),pf={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},l3=addcss(pf),Ge=addcss(R.mergeRight(pf,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),fh=addcss({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),sh=addcss({width:"24px",height:"24px"}),ff=addcss({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),sf=addcss({textAlign:"center"}),ch=addcss({opacity:"0%"}),cf=addcss({marginTop:"10px"}),lf={display:"flex",alignItems:"center"},m3=addcss(lf),ph=addcss(R.mergeRight(lf,{width:"32px",height:"32px",justifyContent:"center"})),lh=R.replace(/(.)[^@]*(.)@(.).*(.\.[^.]+)/,"$1-$2@$3-$4");window.onload=()=>{let n=R.equals("{{.Cfg.PlainUI}}","true"),r=E=>"{{.Cfg.APIBasePath}}"+E,t=()=>R.equals("{{.LoggedIn}}","true"),o=()=>"{{.UserEmail}}",a=()=>"{{.UserID}}",i="st"+crypto.randomUUID(),u=store({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[]}),c=()=>{globalThis.stAuth.sendOTP(valueByID(i+"email")),disableID(i+"email"),disableID(i+"emailButton")},s=()=>{globalThis.stAuth.verifyOTP(valueByID(i+"otp")),disableID(i+"otp"),disableID(i+"otpButton")},d=()=>{u.setState(R.mergeRight(u.state,{stState:"init",displayState:m.init()})),N.state("loggedOut")},m={init:()=>null,enterEmail:()=>e("div",{className:ff},e("input",disableable(u)({id:i+"email",type:"email",placeholder:"your.email@address.com",onkeyup:onEnter(c),className:sf})),e("button",disableable(u)({id:i+"emailButton",onclick:c}),"Request one-time code"),e("button",{className:cf,onclick:d},"Close")),enterOTP:()=>e("div",{className:ff},e("input",disableable(u)({id:i+"otp",type:"text",placeholder:"One-time code in email",onkeyup:onEnter(s),className:sf})),e("button",disableable(u)({id:i+"otpButton",onclick:s}),"Verify code"),e("button",{className:cf,onclick:d},"Close")),showEmail:()=>n?null:e("div",{className:ph},e("div",{id:i+"userEmail",className:ch},o()),e("button",{className:fh,onclick:fadeInOut("#"+i+"userEmail")},e("img",{className:sh,src:t()?r("/person_outline.svg"):null})))},h=E=>({init:R.identity,loggedOut:R.identity,checkEmail:R.mergeLeft({displayState:m.enterOTP()}),wrongOTP:R.identity,oldOTP:R.identity,failedOTP:R.identity,signUpSuccess:R.tap(()=>window.location.reload()),signInSuccess:R.tap(()=>window.location.reload()),loggedIn:R.mergeLeft({displayState:m.showEmail()}),logoutCompleted:R.tap(()=>window.location.reload())})[E.stState](E),g=()=>{t()||d(),u.mod({showMenu:!u.state.showMenu})},W=()=>u.mod({showMenu:!1}),O=()=>{W(),u.state.stState==="loggedOut"?u.mod({displayState:m.enterEmail()}):u.state.stState==="loggedIn"&&globalThis.stAuth.logout()},x=null,b=E=>{neon(x)&&!x.contains(E.target)&&W()},j=E=>{x=E,document.removeEventListener("click",b,!0)},z=E=>{x=E,j(E),document.addEventListener("click",b,!0)},w=E=>u.mod({menuItems:R.map(([I,Ir])=>e("div",{},e("a",{href:"#",className:Ge,onclick:()=>{W(),Ir()}},I)),R.reject(eon,E))}),A=()=>e("div",{id:i,className:ih,style:"opacity:"+(u.state.stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:W,lifecycle:{added:z,removed:j}},e("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:g},e("img",{style:"width:32px;height:32px",src:r("/menu.svg")})),u.state.displayState,u.state.showMenu?e("div",{className:uh},t()?null:e("div",{},e("a",{href:"#",className:Ge,onclick:O},"login")),t()?e("div",{className:Ge,style:"cursor:default;font-variant:normal"},lh(o())):null,...u.state.menuItems,t()?e("div",{},e("a",{href:"#",className:Ge,onclick:O},"logout")):null):null);u.subscribe(()=>{ge(i).replaceWith(A()),focusIfVisible(i+"email"),focusIfVisible(i+"otp")}),dbac(A());let N={catch:(E,I)=>showError(E,I),state:(E,I)=>u.mod({stState:E,stData:I})},$=(E,I)=>N.catch(E+(I.isSuperTokensGeneralError?" (some other failure)":""),I);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let q=async E=>{try{(await supertokensPasswordless.createCode({email:E})).status!="SIGN_IN_UP_NOT_ALLOWED"&&N.state("checkEmail")}catch(I){$("sendOTP",I)}},Hr=async E=>{try{let I=await supertokensPasswordless.consumeCode({userInputCode:E});I.status==="OK"?I.createdNewRecipeUser&&I.user.loginMethods.length===1?N.state("signUpSuccess",I.user.id):N.state("signInSuccess",I.user.id):I.status==="INCORRECT_USER_INPUT_CODE_ERROR"?N.state("wrongOTP"):I.status==="EXPIRED_USER_INPUT_CODE_ERROR"?N.state("oldOTP"):N.state("failedOTP")}catch(I){$("handleOTP",I)}},gr=async()=>{await supertokensSession.signOut(),N.state("logoutCompleted")};globalThis.stAuth={sendOTP:q,verifyOTP:Hr,logout:gr,isLoggedIn:t,userEmail:o,userID:a,setMenuItems:w},neon(globalThis.authHooks)&&globalThis.authHooks.forEach(([E,I])=>{let Ir=N[E];N[E]=(nr,Mr)=>{Ir(nr,Mr),I(nr,Mr)}}),neon(globalThis.menuItems)&&w(globalThis.menuItems),t()?N.state("loggedIn",o()):N.state("loggedOut"),anime({targets:"#"+i,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>anime.remove("#"+i)})};})();